From 2988d3768e21d983dcc2228dc5a5d449d5f7217e Mon Sep 17 00:00:00 2001 From: chiguyong Date: Sat, 13 Jun 2026 02:32:29 +0800 Subject: [PATCH 01/12] feat(gui): add Design Token system and theme configuration (U1) - Create tokens.css with CSS custom properties for colors, spacing, radius, fonts, shadows, transitions, and code theme - Create theme.ts mapping tokens to Ant Design Vue ConfigProvider - Create styles/index.ts as unified entry point - Inject theme into App.vue ConfigProvider - Import styles in main.ts Primary color unified to #7c3aed (purple gradient brand color). --- src/agentkit/server/frontend/src/App.vue | 3 +- src/agentkit/server/frontend/src/main.ts | 1 + .../server/frontend/src/styles/index.ts | 8 ++ .../server/frontend/src/styles/theme.ts | 81 +++++++++++ .../server/frontend/src/styles/tokens.css | 136 ++++++++++++++++++ 5 files changed, 228 insertions(+), 1 deletion(-) create mode 100644 src/agentkit/server/frontend/src/styles/index.ts create mode 100644 src/agentkit/server/frontend/src/styles/theme.ts create mode 100644 src/agentkit/server/frontend/src/styles/tokens.css diff --git a/src/agentkit/server/frontend/src/App.vue b/src/agentkit/server/frontend/src/App.vue index 5ea2222..91809fc 100644 --- a/src/agentkit/server/frontend/src/App.vue +++ b/src/agentkit/server/frontend/src/App.vue @@ -1,5 +1,5 @@ @@ -8,6 +8,7 @@ import { ConfigProvider as AConfigProvider } from 'ant-design-vue' import zhCN from 'ant-design-vue/es/locale/zh_CN' import AppLayout from './components/layout/AppLayout.vue' +import { themeConfig } from './styles' diff --git a/src/agentkit/server/frontend/src/components/layout/QuadrantPanel.vue b/src/agentkit/server/frontend/src/components/layout/QuadrantPanel.vue new file mode 100644 index 0000000..84887f7 --- /dev/null +++ b/src/agentkit/server/frontend/src/components/layout/QuadrantPanel.vue @@ -0,0 +1,154 @@ + + + + + diff --git a/src/agentkit/server/frontend/src/components/layout/SplitPane.vue b/src/agentkit/server/frontend/src/components/layout/SplitPane.vue new file mode 100644 index 0000000..5179031 --- /dev/null +++ b/src/agentkit/server/frontend/src/components/layout/SplitPane.vue @@ -0,0 +1,174 @@ + + + + + diff --git a/src/agentkit/server/frontend/src/components/layout/TopNav.vue b/src/agentkit/server/frontend/src/components/layout/TopNav.vue new file mode 100644 index 0000000..a963ac0 --- /dev/null +++ b/src/agentkit/server/frontend/src/components/layout/TopNav.vue @@ -0,0 +1,138 @@ + + + + + diff --git a/src/agentkit/server/frontend/src/router/index.ts b/src/agentkit/server/frontend/src/router/index.ts index 9421ffe..842a6ed 100644 --- a/src/agentkit/server/frontend/src/router/index.ts +++ b/src/agentkit/server/frontend/src/router/index.ts @@ -2,96 +2,135 @@ import { createRouter, createWebHistory } from 'vue-router' import type { RouteRecordRaw } from 'vue-router' const routes: RouteRecordRaw[] = [ + // Agent-First 四象限布局 (新) + { + path: '/agent', + name: 'agent', + component: () => import('@/components/layout/AgentLayout.vue'), + meta: { title: 'AgentKit' }, + children: [ + { + path: '', + redirect: '/agent/chat', + }, + { + path: 'chat', + name: 'agent-chat', + meta: { title: '对话', quadrant: 'tl', tab: 'chat' }, + component: () => import('@/views/ChatView.vue'), + }, + { + path: 'code', + name: 'agent-code', + meta: { title: '代码', quadrant: 'tr', tab: 'code' }, + component: () => import('@/views/ChatView.vue'), + }, + { + path: 'terminal', + name: 'agent-terminal', + meta: { title: '终端', quadrant: 'bl', tab: 'terminal' }, + component: () => import('@/views/TerminalView.vue'), + }, + { + path: 'monitor', + name: 'agent-monitor', + meta: { title: '监控', quadrant: 'br', tab: 'monitor' }, + component: () => import('@/views/EvolutionView.vue'), + }, + ], + }, + + // Default redirect to agent layout { path: '/', - name: 'chat', - component: () => import('@/views/ChatView.vue'), - meta: { title: '智能对话' }, + redirect: '/agent', }, + + // Legacy route redirects → agent quadrant routes { path: '/workflow', - name: 'workflow', - component: () => import('@/views/WorkflowView.vue'), - meta: { title: '工作流' }, + redirect: '/agent/code?tab=workflow', }, { path: '/knowledge', - name: 'knowledge', - component: () => import('@/views/KnowledgeBaseView.vue'), - meta: { title: '知识库' }, + redirect: '/agent/code?tab=knowledge', }, { path: '/skills', - name: 'skills', - component: () => import('@/views/SkillsView.vue'), - meta: { title: '技能' }, + redirect: '/agent/monitor?tab=skills', + }, + { + path: '/evolution', + redirect: '/agent/monitor?tab=monitor', + }, + { + path: '/settings', + redirect: '/agent/monitor?tab=settings', }, { path: '/terminal', - name: 'terminal', - component: () => import('@/views/TerminalView.vue'), - meta: { title: '终端' }, + redirect: '/agent/terminal', }, + + // Computer Use (保留独立路由,显示"即将推出") { path: '/computer-use', name: 'computer-use', component: () => import('@/views/ComputerUseView.vue'), meta: { title: 'Computer Use' }, }, + + // Legacy layout (fallback) { - path: '/evolution', - name: 'evolution', - component: () => import('@/views/EvolutionView.vue'), - meta: { title: '自进化' }, + path: '/legacy', + name: 'legacy', + component: () => import('@/components/layout/AppLayout.vue'), + meta: { title: 'Fischer AgentKit (Legacy)' }, children: [ { - path: '', - redirect: '/evolution/overview', + path: 'chat', + name: 'legacy-chat', + component: () => import('@/views/ChatView.vue'), + meta: { title: '智能对话' }, }, { - path: 'overview', - name: 'evolution-overview', - component: () => import('@/components/evolution/DashboardOverview.vue'), - meta: { title: '概览 - 自进化' }, + path: 'workflow', + name: 'legacy-workflow', + component: () => import('@/views/WorkflowView.vue'), + meta: { title: '工作流' }, }, { - path: 'experiences', - name: 'evolution-experiences', - component: () => import('@/components/evolution/ExperiencePanel.vue'), - meta: { title: '经验记录 - 自进化' }, + path: 'knowledge', + name: 'legacy-knowledge', + component: () => import('@/views/KnowledgeBaseView.vue'), + meta: { title: '知识库' }, }, { - path: 'metrics', - name: 'evolution-metrics', - component: () => import('@/components/evolution/MetricsPanel.vue'), - meta: { title: '指标趋势 - 自进化' }, + path: 'skills', + name: 'legacy-skills', + component: () => import('@/views/SkillsView.vue'), + meta: { title: '技能' }, }, { - path: 'pitfalls', - name: 'evolution-pitfalls', - component: () => import('@/components/evolution/PitfallRoutePanel.vue'), - meta: { title: '避坑预警 - 自进化' }, + path: 'terminal', + name: 'legacy-terminal', + component: () => import('@/views/TerminalView.vue'), + meta: { title: '终端' }, }, { - path: 'optimizations', - name: 'evolution-optimizations', - component: () => import('@/components/evolution/OptimizationPanel.vue'), - meta: { title: '路径优化 - 自进化' }, + path: 'evolution', + name: 'legacy-evolution', + component: () => import('@/views/EvolutionView.vue'), + meta: { title: '自进化' }, }, { - path: 'usage', - name: 'evolution-usage', - component: () => import('@/components/evolution/UsagePanel.vue'), - meta: { title: '用量统计 - 自进化' }, + path: 'settings', + name: 'legacy-settings', + component: () => import('@/views/SettingsView.vue'), + meta: { title: '设置' }, }, ], }, - { - path: '/settings', - name: 'settings', - component: () => import('@/views/SettingsView.vue'), - meta: { title: '设置' }, - }, ] const router = createRouter({ From 6d5a08cb0c73960dc1c764d4b84a2e127a4add5b Mon Sep 17 00:00:00 2001 From: chiguyong Date: Sat, 13 Jun 2026 02:38:37 +0800 Subject: [PATCH 03/12] feat(gui): refactor chat panel with Markdown rendering and tool indicators (U3) - ChatMessage: replace v-html with markdown-it, add ToolCallIndicator - ChatInput: add ContextPill support for file/skill context - ChatSidebar: make collapsible (default collapsed) - Create ToolCallIndicator.vue with color-coded tool type badges - Create ContextPill.vue for context references - Replace all hardcoded colors with Design Token references - Install markdown-it for Markdown rendering --- .../server/frontend/package-lock.json | 2503 +++++++++++++++++ src/agentkit/server/frontend/package.json | 2 + .../src/components/chat/ChatInput.vue | 83 +- .../src/components/chat/ChatMessage.vue | 160 +- .../src/components/chat/ChatSidebar.vue | 122 +- .../src/components/chat/ContextPill.vue | 72 + .../src/components/chat/ToolCallIndicator.vue | 79 + .../server/frontend/src/views/ChatView.vue | 41 +- 8 files changed, 2948 insertions(+), 114 deletions(-) create mode 100644 src/agentkit/server/frontend/package-lock.json create mode 100644 src/agentkit/server/frontend/src/components/chat/ContextPill.vue create mode 100644 src/agentkit/server/frontend/src/components/chat/ToolCallIndicator.vue diff --git a/src/agentkit/server/frontend/package-lock.json b/src/agentkit/server/frontend/package-lock.json new file mode 100644 index 0000000..09600c8 --- /dev/null +++ b/src/agentkit/server/frontend/package-lock.json @@ -0,0 +1,2503 @@ +{ + "name": "agentkit-portal", + "version": "0.1.0", + "lockfileVersion": 3, + "requires": true, + "packages": { + "": { + "name": "agentkit-portal", + "version": "0.1.0", + "dependencies": { + "@ant-design/icons-vue": "^7.0.0", + "@vue-flow/background": "^1.3.0", + "@vue-flow/controls": "^1.1.0", + "@vue-flow/core": "^1.41.0", + "ant-design-vue": "^4.2.0", + "markdown-it": "^14.2.0", + "pinia": "^2.2.0", + "vue": "^3.5.0", + "vue-router": "^4.4.0" + }, + "devDependencies": { + "@types/markdown-it": "^14.1.2", + "@vitejs/plugin-vue": "^5.1.0", + "echarts": "^6.1.0", + "typescript": "^5.6.0", + "unplugin-auto-import": "^21.0.0", + "unplugin-vue-components": "^32.1.0", + "vite": "^5.4.0", + "vue-tsc": "^2.1.0" + } + }, + "node_modules/@ant-design/colors": { + "version": "6.0.0", + "resolved": "https://registry.npmmirror.com/@ant-design/colors/-/colors-6.0.0.tgz", + "integrity": "sha512-qAZRvPzfdWHtfameEGP2Qvuf838NhergR35o+EuVyB5XvSA98xod5r4utvi4TJ3ywmevm290g9nsCG5MryrdWQ==", + "license": "MIT", + "dependencies": { + "@ctrl/tinycolor": "^3.4.0" + } + }, + "node_modules/@ant-design/icons-svg": { + "version": "4.4.2", + "resolved": "https://registry.npmmirror.com/@ant-design/icons-svg/-/icons-svg-4.4.2.tgz", + "integrity": "sha512-vHbT+zJEVzllwP+CM+ul7reTEfBR0vgxFe7+lREAsAA7YGsYpboiq2sQNeQeRvh09GfQgs/GyFEvZpJ9cLXpXA==", + "license": "MIT" + }, + "node_modules/@ant-design/icons-vue": { + "version": "7.0.1", + "resolved": "https://registry.npmmirror.com/@ant-design/icons-vue/-/icons-vue-7.0.1.tgz", + "integrity": "sha512-eCqY2unfZK6Fe02AwFlDHLfoyEFreP6rBwAZMIJ1LugmfMiVgwWDYlp1YsRugaPtICYOabV1iWxXdP12u9U43Q==", + "license": "MIT", + "dependencies": { + "@ant-design/colors": "^6.0.0", + "@ant-design/icons-svg": "^4.2.1" + }, + "peerDependencies": { + "vue": ">=3.0.3" + } + }, + "node_modules/@babel/helper-string-parser": { + "version": "7.29.7", + "resolved": "https://registry.npmmirror.com/@babel/helper-string-parser/-/helper-string-parser-7.29.7.tgz", + "integrity": "sha512-Pb5ijPrZ89GDH8223L4UP8i6QApWxs04RbPQJTeWDV0/keR2E36MeKnyr6LYmUUvqRRI+Iv87SuF1W6ErINzYw==", + "license": "MIT", + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-validator-identifier": { + "version": "7.29.7", + "resolved": "https://registry.npmmirror.com/@babel/helper-validator-identifier/-/helper-validator-identifier-7.29.7.tgz", + "integrity": "sha512-qehxGkRj55h/ff8EMaJ+cYhyaKlHIxqYDn682wQD7RNp9UujOQsHog2uS0r2vzr4pW+sXf90NeeayjcNaX3fFg==", + "license": "MIT", + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/parser": { + "version": "7.29.7", + "resolved": "https://registry.npmmirror.com/@babel/parser/-/parser-7.29.7.tgz", + "integrity": "sha512-hnORnjP/1P/zFEndoeX+n+t1RwWRJiJpM/jO7FW32Kn9r5+sJB2JWOdYo4L6k78j15eCwY3Gm/7364B1EMwtNg==", + "license": "MIT", + "dependencies": { + "@babel/types": "^7.29.7" + }, + "bin": { + "parser": "bin/babel-parser.js" + }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@babel/runtime": { + "version": "7.29.7", + "resolved": "https://registry.npmmirror.com/@babel/runtime/-/runtime-7.29.7.tgz", + "integrity": "sha512-Nq8OhGWiZIZGV6hLHoyAKLLcJihP/xFeBMGJoUrxTX2psI8dCifzLhZISFb+VWS3wFMRDmCGw5R+dOySCqPLhw==", + "license": "MIT", + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/types": { + "version": "7.29.7", + "resolved": "https://registry.npmmirror.com/@babel/types/-/types-7.29.7.tgz", + "integrity": "sha512-4zBIxpPzowiZpusoFkyGVwakdRJUyuH5PxQ/PrqghfdFWWasvnCdPfQXHrenDai+gyLARulZjZowCOj6fjT4pA==", + "license": "MIT", + "dependencies": { + "@babel/helper-string-parser": "^7.29.7", + "@babel/helper-validator-identifier": "^7.29.7" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@ctrl/tinycolor": { + "version": "3.6.1", + "resolved": "https://registry.npmmirror.com/@ctrl/tinycolor/-/tinycolor-3.6.1.tgz", + "integrity": "sha512-SITSV6aIXsuVNV3f3O0f2n/cgyEDWoSqtZMYiAmcsYHydcKrOz3gUxB/iXd/Qf08+IZX4KpgNbvUdMBmWz+kcA==", + "license": "MIT", + "engines": { + "node": ">=10" + } + }, + "node_modules/@emotion/hash": { + "version": "0.9.2", + "resolved": "https://registry.npmmirror.com/@emotion/hash/-/hash-0.9.2.tgz", + "integrity": "sha512-MyqliTZGuOm3+5ZRSaaBGP3USLw6+EGykkwZns2EPC5g8jJ4z9OrdZY9apkl3+UP9+sdz76YYkwCKP5gh8iY3g==", + "license": "MIT" + }, + "node_modules/@emotion/unitless": { + "version": "0.8.1", + "resolved": "https://registry.npmmirror.com/@emotion/unitless/-/unitless-0.8.1.tgz", + "integrity": "sha512-KOEGMu6dmJZtpadb476IsZBclKvILjopjUii3V+7MnXIQCYh8W3NgNcgwo21n9LXZX6EDIKvqfjYxXebDwxKmQ==", + "license": "MIT" + }, + "node_modules/@esbuild/aix-ppc64": { + "version": "0.21.5", + "resolved": "https://registry.npmmirror.com/@esbuild/aix-ppc64/-/aix-ppc64-0.21.5.tgz", + "integrity": "sha512-1SDgH6ZSPTlggy1yI6+Dbkiz8xzpHJEVAlF/AM1tHPLsf5STom9rwtjE4hKAF20FfXXNTFqEYXyJNWh1GiZedQ==", + "cpu": [ + "ppc64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "aix" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/android-arm": { + "version": "0.21.5", + "resolved": "https://registry.npmmirror.com/@esbuild/android-arm/-/android-arm-0.21.5.tgz", + "integrity": "sha512-vCPvzSjpPHEi1siZdlvAlsPxXl7WbOVUBBAowWug4rJHb68Ox8KualB+1ocNvT5fjv6wpkX6o/iEpbDrf68zcg==", + "cpu": [ + "arm" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/android-arm64": { + "version": "0.21.5", + "resolved": "https://registry.npmmirror.com/@esbuild/android-arm64/-/android-arm64-0.21.5.tgz", + "integrity": "sha512-c0uX9VAUBQ7dTDCjq+wdyGLowMdtR/GoC2U5IYk/7D1H1JYC0qseD7+11iMP2mRLN9RcCMRcjC4YMclCzGwS/A==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/android-x64": { + "version": "0.21.5", + "resolved": "https://registry.npmmirror.com/@esbuild/android-x64/-/android-x64-0.21.5.tgz", + "integrity": "sha512-D7aPRUUNHRBwHxzxRvp856rjUHRFW1SdQATKXH2hqA0kAZb1hKmi02OpYRacl0TxIGz/ZmXWlbZgjwWYaCakTA==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/darwin-arm64": { + "version": "0.21.5", + "resolved": "https://registry.npmmirror.com/@esbuild/darwin-arm64/-/darwin-arm64-0.21.5.tgz", + "integrity": "sha512-DwqXqZyuk5AiWWf3UfLiRDJ5EDd49zg6O9wclZ7kUMv2WRFr4HKjXp/5t8JZ11QbQfUS6/cRCKGwYhtNAY88kQ==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/darwin-x64": { + "version": "0.21.5", + "resolved": "https://registry.npmmirror.com/@esbuild/darwin-x64/-/darwin-x64-0.21.5.tgz", + "integrity": "sha512-se/JjF8NlmKVG4kNIuyWMV/22ZaerB+qaSi5MdrXtd6R08kvs2qCN4C09miupktDitvh8jRFflwGFBQcxZRjbw==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/freebsd-arm64": { + "version": "0.21.5", + "resolved": "https://registry.npmmirror.com/@esbuild/freebsd-arm64/-/freebsd-arm64-0.21.5.tgz", + "integrity": "sha512-5JcRxxRDUJLX8JXp/wcBCy3pENnCgBR9bN6JsY4OmhfUtIHe3ZW0mawA7+RDAcMLrMIZaf03NlQiX9DGyB8h4g==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "freebsd" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/freebsd-x64": { + "version": "0.21.5", + "resolved": "https://registry.npmmirror.com/@esbuild/freebsd-x64/-/freebsd-x64-0.21.5.tgz", + "integrity": "sha512-J95kNBj1zkbMXtHVH29bBriQygMXqoVQOQYA+ISs0/2l3T9/kj42ow2mpqerRBxDJnmkUDCaQT/dfNXWX/ZZCQ==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "freebsd" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/linux-arm": { + "version": "0.21.5", + "resolved": "https://registry.npmmirror.com/@esbuild/linux-arm/-/linux-arm-0.21.5.tgz", + "integrity": "sha512-bPb5AHZtbeNGjCKVZ9UGqGwo8EUu4cLq68E95A53KlxAPRmUyYv2D6F0uUI65XisGOL1hBP5mTronbgo+0bFcA==", + "cpu": [ + "arm" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/linux-arm64": { + "version": "0.21.5", + "resolved": "https://registry.npmmirror.com/@esbuild/linux-arm64/-/linux-arm64-0.21.5.tgz", + "integrity": "sha512-ibKvmyYzKsBeX8d8I7MH/TMfWDXBF3db4qM6sy+7re0YXya+K1cem3on9XgdT2EQGMu4hQyZhan7TeQ8XkGp4Q==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/linux-ia32": { + "version": "0.21.5", + "resolved": "https://registry.npmmirror.com/@esbuild/linux-ia32/-/linux-ia32-0.21.5.tgz", + "integrity": "sha512-YvjXDqLRqPDl2dvRODYmmhz4rPeVKYvppfGYKSNGdyZkA01046pLWyRKKI3ax8fbJoK5QbxblURkwK/MWY18Tg==", + "cpu": [ + "ia32" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/linux-loong64": { + "version": "0.21.5", + "resolved": "https://registry.npmmirror.com/@esbuild/linux-loong64/-/linux-loong64-0.21.5.tgz", + "integrity": "sha512-uHf1BmMG8qEvzdrzAqg2SIG/02+4/DHB6a9Kbya0XDvwDEKCoC8ZRWI5JJvNdUjtciBGFQ5PuBlpEOXQj+JQSg==", + "cpu": [ + "loong64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/linux-mips64el": { + "version": "0.21.5", + "resolved": "https://registry.npmmirror.com/@esbuild/linux-mips64el/-/linux-mips64el-0.21.5.tgz", + "integrity": "sha512-IajOmO+KJK23bj52dFSNCMsz1QP1DqM6cwLUv3W1QwyxkyIWecfafnI555fvSGqEKwjMXVLokcV5ygHW5b3Jbg==", + "cpu": [ + "mips64el" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/linux-ppc64": { + "version": "0.21.5", + "resolved": "https://registry.npmmirror.com/@esbuild/linux-ppc64/-/linux-ppc64-0.21.5.tgz", + "integrity": "sha512-1hHV/Z4OEfMwpLO8rp7CvlhBDnjsC3CttJXIhBi+5Aj5r+MBvy4egg7wCbe//hSsT+RvDAG7s81tAvpL2XAE4w==", + "cpu": [ + "ppc64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/linux-riscv64": { + "version": "0.21.5", + "resolved": "https://registry.npmmirror.com/@esbuild/linux-riscv64/-/linux-riscv64-0.21.5.tgz", + "integrity": "sha512-2HdXDMd9GMgTGrPWnJzP2ALSokE/0O5HhTUvWIbD3YdjME8JwvSCnNGBnTThKGEB91OZhzrJ4qIIxk/SBmyDDA==", + "cpu": [ + "riscv64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/linux-s390x": { + "version": "0.21.5", + "resolved": "https://registry.npmmirror.com/@esbuild/linux-s390x/-/linux-s390x-0.21.5.tgz", + "integrity": "sha512-zus5sxzqBJD3eXxwvjN1yQkRepANgxE9lgOW2qLnmr8ikMTphkjgXu1HR01K4FJg8h1kEEDAqDcZQtbrRnB41A==", + "cpu": [ + "s390x" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/linux-x64": { + "version": "0.21.5", + "resolved": "https://registry.npmmirror.com/@esbuild/linux-x64/-/linux-x64-0.21.5.tgz", + "integrity": "sha512-1rYdTpyv03iycF1+BhzrzQJCdOuAOtaqHTWJZCWvijKD2N5Xu0TtVC8/+1faWqcP9iBCWOmjmhoH94dH82BxPQ==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/netbsd-x64": { + "version": "0.21.5", + "resolved": "https://registry.npmmirror.com/@esbuild/netbsd-x64/-/netbsd-x64-0.21.5.tgz", + "integrity": "sha512-Woi2MXzXjMULccIwMnLciyZH4nCIMpWQAs049KEeMvOcNADVxo0UBIQPfSmxB3CWKedngg7sWZdLvLczpe0tLg==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "netbsd" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/openbsd-x64": { + "version": "0.21.5", + "resolved": "https://registry.npmmirror.com/@esbuild/openbsd-x64/-/openbsd-x64-0.21.5.tgz", + "integrity": "sha512-HLNNw99xsvx12lFBUwoT8EVCsSvRNDVxNpjZ7bPn947b8gJPzeHWyNVhFsaerc0n3TsbOINvRP2byTZ5LKezow==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "openbsd" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/sunos-x64": { + "version": "0.21.5", + "resolved": "https://registry.npmmirror.com/@esbuild/sunos-x64/-/sunos-x64-0.21.5.tgz", + "integrity": "sha512-6+gjmFpfy0BHU5Tpptkuh8+uw3mnrvgs+dSPQXQOv3ekbordwnzTVEb4qnIvQcYXq6gzkyTnoZ9dZG+D4garKg==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "sunos" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/win32-arm64": { + "version": "0.21.5", + "resolved": "https://registry.npmmirror.com/@esbuild/win32-arm64/-/win32-arm64-0.21.5.tgz", + "integrity": "sha512-Z0gOTd75VvXqyq7nsl93zwahcTROgqvuAcYDUr+vOv8uHhNSKROyU961kgtCD1e95IqPKSQKH7tBTslnS3tA8A==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/win32-ia32": { + "version": "0.21.5", + "resolved": "https://registry.npmmirror.com/@esbuild/win32-ia32/-/win32-ia32-0.21.5.tgz", + "integrity": "sha512-SWXFF1CL2RVNMaVs+BBClwtfZSvDgtL//G/smwAc5oVK/UPu2Gu9tIaRgFmYFFKrmg3SyAjSrElf0TiJ1v8fYA==", + "cpu": [ + "ia32" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/win32-x64": { + "version": "0.21.5", + "resolved": "https://registry.npmmirror.com/@esbuild/win32-x64/-/win32-x64-0.21.5.tgz", + "integrity": "sha512-tQd/1efJuzPC6rCFwEvLtci/xNFcTZknmXs98FYDfGE4wP9ClFV98nyKrzJKVPMhdDnjzLhdUyMX4PsQAPjwIw==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@jridgewell/gen-mapping": { + "version": "0.3.13", + "resolved": "https://registry.npmmirror.com/@jridgewell/gen-mapping/-/gen-mapping-0.3.13.tgz", + "integrity": "sha512-2kkt/7niJ6MgEPxF0bYdQ6etZaA+fQvDcLKckhy1yIQOzaoKjBBjSj63/aLVjYE3qhRt5dvM+uUyfCg6UKCBbA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jridgewell/sourcemap-codec": "^1.5.0", + "@jridgewell/trace-mapping": "^0.3.24" + } + }, + "node_modules/@jridgewell/remapping": { + "version": "2.3.5", + "resolved": "https://registry.npmmirror.com/@jridgewell/remapping/-/remapping-2.3.5.tgz", + "integrity": "sha512-LI9u/+laYG4Ds1TDKSJW2YPrIlcVYOwi2fUC6xB43lueCjgxV4lffOCZCtYFiH6TNOX+tQKXx97T4IKHbhyHEQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jridgewell/gen-mapping": "^0.3.5", + "@jridgewell/trace-mapping": "^0.3.24" + } + }, + "node_modules/@jridgewell/resolve-uri": { + "version": "3.1.2", + "resolved": "https://registry.npmmirror.com/@jridgewell/resolve-uri/-/resolve-uri-3.1.2.tgz", + "integrity": "sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@jridgewell/sourcemap-codec": { + "version": "1.5.5", + "resolved": "https://registry.npmmirror.com/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.5.5.tgz", + "integrity": "sha512-cYQ9310grqxueWbl+WuIUIaiUaDcj7WOq5fVhEljNVgRfOUhY9fy2zTvfoqWsnebh8Sl70VScFbICvJnLKB0Og==", + "license": "MIT" + }, + "node_modules/@jridgewell/trace-mapping": { + "version": "0.3.31", + "resolved": "https://registry.npmmirror.com/@jridgewell/trace-mapping/-/trace-mapping-0.3.31.tgz", + "integrity": "sha512-zzNR+SdQSDJzc8joaeP8QQoCQr8NuYx2dIIytl1QeBEZHJ9uW6hebsrYgbz8hJwUQao3TWCMtmfV8Nu1twOLAw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jridgewell/resolve-uri": "^3.1.0", + "@jridgewell/sourcemap-codec": "^1.4.14" + } + }, + "node_modules/@rollup/rollup-android-arm-eabi": { + "version": "4.61.1", + "resolved": "https://registry.npmmirror.com/@rollup/rollup-android-arm-eabi/-/rollup-android-arm-eabi-4.61.1.tgz", + "integrity": "sha512-JnBB8MdXj45cajvTuO5FmPlvFVJRQgvrz1uSEl3NwqFnReAPGwb8EanbGi4z2nRaqLzjJSv5/JmycoTKlRZxHA==", + "cpu": [ + "arm" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "android" + ] + }, + "node_modules/@rollup/rollup-android-arm64": { + "version": "4.61.1", + "resolved": "https://registry.npmmirror.com/@rollup/rollup-android-arm64/-/rollup-android-arm64-4.61.1.tgz", + "integrity": "sha512-Jx2g7iSjw4AOT0HDPHM9RV3GNjRXwybWtSFZiZAYUTjUwjVrYIwq3kBf+LnhqJlzXFAqTAh2F7IGI+O568exPw==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "android" + ] + }, + "node_modules/@rollup/rollup-darwin-arm64": { + "version": "4.61.1", + "resolved": "https://registry.npmmirror.com/@rollup/rollup-darwin-arm64/-/rollup-darwin-arm64-4.61.1.tgz", + "integrity": "sha512-0F1L/Z3Eqv8mT2n3dCpeO8GcTvHvVqkP5/t6DMsn0KzhYVcg+s7Ncl5DS8qjKYEeio6Az0Gt6nyBORay5qIlCA==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ] + }, + "node_modules/@rollup/rollup-darwin-x64": { + "version": "4.61.1", + "resolved": "https://registry.npmmirror.com/@rollup/rollup-darwin-x64/-/rollup-darwin-x64-4.61.1.tgz", + "integrity": "sha512-qLttcH871ujY4YcVfUSShhOw+CsoTatYz8gRbHO7Bb92QH059/P0y5do1KMs41fY0BpD2x4AJH/gID0zFiqVKQ==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ] + }, + "node_modules/@rollup/rollup-freebsd-arm64": { + "version": "4.61.1", + "resolved": "https://registry.npmmirror.com/@rollup/rollup-freebsd-arm64/-/rollup-freebsd-arm64-4.61.1.tgz", + "integrity": "sha512-fUI4RapGE0Oh3mb8mgfvC1O2nU1RpDZUKnDQm3xB1Ipg7C2wTs5Kstz7G2uWK99a8S2yTMq8/P4uycwNa0nJyw==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "freebsd" + ] + }, + "node_modules/@rollup/rollup-freebsd-x64": { + "version": "4.61.1", + "resolved": "https://registry.npmmirror.com/@rollup/rollup-freebsd-x64/-/rollup-freebsd-x64-4.61.1.tgz", + "integrity": "sha512-H5YrdvJaDtI/U9/emrD4b++xkvp3y/JvOe4rizHbxvkyMfRS/CiRYdji+Pl8D0brEaNFWUh1drQxgAGIl6Xudw==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "freebsd" + ] + }, + "node_modules/@rollup/rollup-linux-arm-gnueabihf": { + "version": "4.61.1", + "resolved": "https://registry.npmmirror.com/@rollup/rollup-linux-arm-gnueabihf/-/rollup-linux-arm-gnueabihf-4.61.1.tgz", + "integrity": "sha512-Q8CBCCQtDFrYtXoeUXSrnFXKOnyUhx6bz+SkL6A0E7V8kAiCJ5pamq1WtbfpVGhR5TSpXY6ak3avmDc5fHTyJA==", + "cpu": [ + "arm" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-arm-musleabihf": { + "version": "4.61.1", + "resolved": "https://registry.npmmirror.com/@rollup/rollup-linux-arm-musleabihf/-/rollup-linux-arm-musleabihf-4.61.1.tgz", + "integrity": "sha512-nwnhk1581l0FBVellGcVCAT0Oi06onEA3WB53sf01VO3I0UPBkMH9sXONYME2K0ovXcNayJfNtHfm6mpJElatQ==", + "cpu": [ + "arm" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-arm64-gnu": { + "version": "4.61.1", + "resolved": "https://registry.npmmirror.com/@rollup/rollup-linux-arm64-gnu/-/rollup-linux-arm64-gnu-4.61.1.tgz", + "integrity": "sha512-x5Xr49hwt3hdW75UOZm3395YwwzPyauktslv29KpWL/T+vVAzoT3azLcTWv0eMciBNrx+DYjH4paehHoLpPvpg==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-arm64-musl": { + "version": "4.61.1", + "resolved": "https://registry.npmmirror.com/@rollup/rollup-linux-arm64-musl/-/rollup-linux-arm64-musl-4.61.1.tgz", + "integrity": "sha512-unMS3H73DpaoPyyEVPjGKleM/s0mkmsauTENpw4INQY8y4+IuLNjkueQ5QCtC0D3N38Y38yhAU8OoZ20S2Tm6w==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-loong64-gnu": { + "version": "4.61.1", + "resolved": "https://registry.npmmirror.com/@rollup/rollup-linux-loong64-gnu/-/rollup-linux-loong64-gnu-4.61.1.tgz", + "integrity": "sha512-zNZzGRnAhwjFEYmvphJRV5XaQGjs62cCmeYYHUT//NbvEnHauw+I85nGG+SiVg5ld4GX8D1IbKIX+ozITQnhMQ==", + "cpu": [ + "loong64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-loong64-musl": { + "version": "4.61.1", + "resolved": "https://registry.npmmirror.com/@rollup/rollup-linux-loong64-musl/-/rollup-linux-loong64-musl-4.61.1.tgz", + "integrity": "sha512-LdpWGL8X209B2SIvWjqlc8VZgM6PKfontSerGepuldQmHYrAOtnMCXeJkxXGbC+PPZVOuu5czJo7fNV6aeW8rQ==", + "cpu": [ + "loong64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-ppc64-gnu": { + "version": "4.61.1", + "resolved": "https://registry.npmmirror.com/@rollup/rollup-linux-ppc64-gnu/-/rollup-linux-ppc64-gnu-4.61.1.tgz", + "integrity": "sha512-EC5kTtNaNGOmbMGqar8dvJy6y/hg99GAwjfBz++pxZhQATXGcRjd6c5en5wcbru0vkRmiMGsQKdMJOOf6sza4g==", + "cpu": [ + "ppc64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-ppc64-musl": { + "version": "4.61.1", + "resolved": "https://registry.npmmirror.com/@rollup/rollup-linux-ppc64-musl/-/rollup-linux-ppc64-musl-4.61.1.tgz", + "integrity": "sha512-8hiwp6D4acEcNK78I4rP0/XtS1sknWIAMJBPdR4l6zUtyTm5KiTDr5bXmWt4foY7nAN7AThDHgkLIEZOWKbzWw==", + "cpu": [ + "ppc64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-riscv64-gnu": { + "version": "4.61.1", + "resolved": "https://registry.npmmirror.com/@rollup/rollup-linux-riscv64-gnu/-/rollup-linux-riscv64-gnu-4.61.1.tgz", + "integrity": "sha512-10dh/h/BqA7DuMPWSxkR8uks18FRwnwOEqr5zOTEl+NOwP/OMzKX8OFR/Of9xxDA7D5qef1Nzar5WDD2kCCr1g==", + "cpu": [ + "riscv64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-riscv64-musl": { + "version": "4.61.1", + "resolved": "https://registry.npmmirror.com/@rollup/rollup-linux-riscv64-musl/-/rollup-linux-riscv64-musl-4.61.1.tgz", + "integrity": "sha512-YKJ5lg35DP17gcAOggnihe+APw9HLyj1Xn7gsmGumBJAUDa6NGXNixJzmkWLhcK9TOuuyQjdamzvJefkO7qHZQ==", + "cpu": [ + "riscv64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-s390x-gnu": { + "version": "4.61.1", + "resolved": "https://registry.npmmirror.com/@rollup/rollup-linux-s390x-gnu/-/rollup-linux-s390x-gnu-4.61.1.tgz", + "integrity": "sha512-Mlil5G2Jj6a7B3LWGctg+XPL9vdXYuzCtNXfxOQ0nPjc2m6ueUktocPGH9bnAM0bNRKb/bAWTujUU7IJQdQA+g==", + "cpu": [ + "s390x" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-x64-gnu": { + "version": "4.61.1", + "resolved": "https://registry.npmmirror.com/@rollup/rollup-linux-x64-gnu/-/rollup-linux-x64-gnu-4.61.1.tgz", + "integrity": "sha512-bVWIOIk6pV01p4CdUbPP7CJ/434z+OooYjDuFcR+44N35YvKUC66G8MGnvcWx5mWKW3g61J+t74l3Kj15Kwn2Q==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-x64-musl": { + "version": "4.61.1", + "resolved": "https://registry.npmmirror.com/@rollup/rollup-linux-x64-musl/-/rollup-linux-x64-musl-4.61.1.tgz", + "integrity": "sha512-qy5pBvZbqNFheBz61R1rzsezjm0J7O2oNGoWtGoY89SZYLUfxAJTBAqDChqAIdB4rCiIbi9nF7yZ83GnNiLwSw==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-openbsd-x64": { + "version": "4.61.1", + "resolved": "https://registry.npmmirror.com/@rollup/rollup-openbsd-x64/-/rollup-openbsd-x64-4.61.1.tgz", + "integrity": "sha512-E83TXjI4zm0+5f2qO+UOudaCYIhYwpJ5jq6YCZNIZ+6CbfhKrkAGezeiASBL9ElxAxFsRS9ZhESv8mfnj6TKeg==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "openbsd" + ] + }, + "node_modules/@rollup/rollup-openharmony-arm64": { + "version": "4.61.1", + "resolved": "https://registry.npmmirror.com/@rollup/rollup-openharmony-arm64/-/rollup-openharmony-arm64-4.61.1.tgz", + "integrity": "sha512-fbWnKqVkjrJN38vNe3ahkbk6iejS/3b0Nt7EEtPpE6RBacZcGXNKbzfHN3GUUlXOPghUg0j6XUGrtjX9z1sIvA==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "openharmony" + ] + }, + "node_modules/@rollup/rollup-win32-arm64-msvc": { + "version": "4.61.1", + "resolved": "https://registry.npmmirror.com/@rollup/rollup-win32-arm64-msvc/-/rollup-win32-arm64-msvc-4.61.1.tgz", + "integrity": "sha512-ArMl38iVAbk0New1ogihQNY6iphLi4ZaRsa037gUzv5yeKPY8TD3Dmy4x2RNC1VztU/uqm+G+/RwFrSka3Oy2g==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ] + }, + "node_modules/@rollup/rollup-win32-ia32-msvc": { + "version": "4.61.1", + "resolved": "https://registry.npmmirror.com/@rollup/rollup-win32-ia32-msvc/-/rollup-win32-ia32-msvc-4.61.1.tgz", + "integrity": "sha512-0mYtjHS9ucAbcATycCNK9IGBk/cCe/ma7EmSLGZdsxnOA8cjRIyU04wDpVAD9NiOfLUR9KTxdiO53uOkherqjQ==", + "cpu": [ + "ia32" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ] + }, + "node_modules/@rollup/rollup-win32-x64-gnu": { + "version": "4.61.1", + "resolved": "https://registry.npmmirror.com/@rollup/rollup-win32-x64-gnu/-/rollup-win32-x64-gnu-4.61.1.tgz", + "integrity": "sha512-gK1iCEPfpoSG9wfBihXxvBMi8ZfcWffYkEsC/Eih+iFENTaewvNcrEQ69lIOWYO5pePHKLHHO7nq5AILGO/HQQ==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ] + }, + "node_modules/@rollup/rollup-win32-x64-msvc": { + "version": "4.61.1", + "resolved": "https://registry.npmmirror.com/@rollup/rollup-win32-x64-msvc/-/rollup-win32-x64-msvc-4.61.1.tgz", + "integrity": "sha512-X+zaP2x+j4RXGfbp/seSoRHWnPxzApilDszisZxbYH5C/jTxFhCtDNdPGZb9lJyYPs24wGxruPF7Y+sIXt9Gzw==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ] + }, + "node_modules/@simonwep/pickr": { + "version": "1.8.2", + "resolved": "https://registry.npmmirror.com/@simonwep/pickr/-/pickr-1.8.2.tgz", + "integrity": "sha512-/l5w8BIkrpP6n1xsetx9MWPWlU6OblN5YgZZphxan0Tq4BByTCETL6lyIeY8lagalS2Nbt4F2W034KHLIiunKA==", + "license": "MIT", + "dependencies": { + "core-js": "^3.15.1", + "nanopop": "^2.1.0" + } + }, + "node_modules/@types/estree": { + "version": "1.0.9", + "resolved": "https://registry.npmmirror.com/@types/estree/-/estree-1.0.9.tgz", + "integrity": "sha512-GhdPgy1el4/ImP05X05Uw4cw2/M93BCUmnEvWZNStlCzEKME4Fkk+YpoA5OiHNQmoS7Cafb8Xa3Pya8m1Qrzeg==", + "dev": true, + "license": "MIT" + }, + "node_modules/@types/linkify-it": { + "version": "5.0.0", + "resolved": "https://registry.npmmirror.com/@types/linkify-it/-/linkify-it-5.0.0.tgz", + "integrity": "sha512-sVDA58zAw4eWAffKOaQH5/5j3XeayukzDk+ewSsnv3p4yJEZHCCzMDiZM8e0OUrRvmpGZ85jf4yDHkHsgBNr9Q==", + "dev": true, + "license": "MIT" + }, + "node_modules/@types/markdown-it": { + "version": "14.1.2", + "resolved": "https://registry.npmmirror.com/@types/markdown-it/-/markdown-it-14.1.2.tgz", + "integrity": "sha512-promo4eFwuiW+TfGxhi+0x3czqTYJkG8qB17ZUJiVF10Xm7NLVRSLUsfRTU/6h1e24VvRnXCx+hG7li58lkzog==", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/linkify-it": "^5", + "@types/mdurl": "^2" + } + }, + "node_modules/@types/mdurl": { + "version": "2.0.0", + "resolved": "https://registry.npmmirror.com/@types/mdurl/-/mdurl-2.0.0.tgz", + "integrity": "sha512-RGdgjQUZba5p6QEFAVx2OGb8rQDL/cPRG7GiedRzMcJ1tYnUANBncjbSB1NRGwbvjcPeikRABz2nshyPk1bhWg==", + "dev": true, + "license": "MIT" + }, + "node_modules/@types/web-bluetooth": { + "version": "0.0.20", + "resolved": "https://registry.npmmirror.com/@types/web-bluetooth/-/web-bluetooth-0.0.20.tgz", + "integrity": "sha512-g9gZnnXVq7gM7v3tJCWV/qw7w+KeOlSHAhgF9RytFyifW6AF61hdT2ucrYhPq9hLs5JIryeupHV3qGk95dH9ow==", + "license": "MIT" + }, + "node_modules/@vitejs/plugin-vue": { + "version": "5.2.4", + "resolved": "https://registry.npmmirror.com/@vitejs/plugin-vue/-/plugin-vue-5.2.4.tgz", + "integrity": "sha512-7Yx/SXSOcQq5HiiV3orevHUFn+pmMB4cgbEkDYgnkUWb0WfeQ/wa2yFv6D5ICiCQOVpjA7vYDXrC7AGO8yjDHA==", + "dev": true, + "license": "MIT", + "engines": { + "node": "^18.0.0 || >=20.0.0" + }, + "peerDependencies": { + "vite": "^5.0.0 || ^6.0.0", + "vue": "^3.2.25" + } + }, + "node_modules/@volar/language-core": { + "version": "2.4.15", + "resolved": "https://registry.npmmirror.com/@volar/language-core/-/language-core-2.4.15.tgz", + "integrity": "sha512-3VHw+QZU0ZG9IuQmzT68IyN4hZNd9GchGPhbD9+pa8CVv7rnoOZwo7T8weIbrRmihqy3ATpdfXFnqRrfPVK6CA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@volar/source-map": "2.4.15" + } + }, + "node_modules/@volar/source-map": { + "version": "2.4.15", + "resolved": "https://registry.npmmirror.com/@volar/source-map/-/source-map-2.4.15.tgz", + "integrity": "sha512-CPbMWlUN6hVZJYGcU/GSoHu4EnCHiLaXI9n8c9la6RaI9W5JHX+NqG+GSQcB0JdC2FIBLdZJwGsfKyBB71VlTg==", + "dev": true, + "license": "MIT" + }, + "node_modules/@volar/typescript": { + "version": "2.4.15", + "resolved": "https://registry.npmmirror.com/@volar/typescript/-/typescript-2.4.15.tgz", + "integrity": "sha512-2aZ8i0cqPGjXb4BhkMsPYDkkuc2ZQ6yOpqwAuNwUoncELqoy5fRgOQtLR9gB0g902iS0NAkvpIzs27geVyVdPg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@volar/language-core": "2.4.15", + "path-browserify": "^1.0.1", + "vscode-uri": "^3.0.8" + } + }, + "node_modules/@vue-flow/background": { + "version": "1.3.2", + "resolved": "https://registry.npmmirror.com/@vue-flow/background/-/background-1.3.2.tgz", + "integrity": "sha512-eJPhDcLj1wEo45bBoqTXw1uhl0yK2RaQGnEINqvvBsAFKh/camHJd5NPmOdS1w+M9lggc9igUewxaEd3iCQX2w==", + "license": "MIT", + "peerDependencies": { + "@vue-flow/core": "^1.23.0", + "vue": "^3.3.0" + } + }, + "node_modules/@vue-flow/controls": { + "version": "1.1.3", + "resolved": "https://registry.npmmirror.com/@vue-flow/controls/-/controls-1.1.3.tgz", + "integrity": "sha512-XCf+G+jCvaWURdFlZmOjifZGw3XMhN5hHlfMGkWh9xot+9nH9gdTZtn+ldIJKtarg3B21iyHU8JjKDhYcB6JMw==", + "license": "MIT", + "peerDependencies": { + "@vue-flow/core": "^1.23.0", + "vue": "^3.3.0" + } + }, + "node_modules/@vue-flow/core": { + "version": "1.48.2", + "resolved": "https://registry.npmmirror.com/@vue-flow/core/-/core-1.48.2.tgz", + "integrity": "sha512-raxhgKWE+G/mcEvXJjGFUDYW9rAI3GOtiHR3ZkNpwBWuIaCC1EYiBmKGwJOoNzVFgwO7COgErnK7i08i287AFA==", + "license": "MIT", + "dependencies": { + "@vueuse/core": "^10.5.0", + "d3-drag": "^3.0.0", + "d3-interpolate": "^3.0.1", + "d3-selection": "^3.0.0", + "d3-zoom": "^3.0.0" + }, + "peerDependencies": { + "vue": "^3.3.0" + } + }, + "node_modules/@vue/compiler-core": { + "version": "3.5.38", + "resolved": "https://registry.npmmirror.com/@vue/compiler-core/-/compiler-core-3.5.38.tgz", + "integrity": "sha512-s99aGxWYig9ErHbct27KXEGhrBYlRI6c4MwAgXErOAbX9xiW37/uMa+XUDO69zLz83dng8UUZ70CTOJrLrYrEQ==", + "license": "MIT", + "dependencies": { + "@babel/parser": "^7.29.7", + "@vue/shared": "3.5.38", + "entities": "^7.0.1", + "estree-walker": "^2.0.2", + "source-map-js": "^1.2.1" + } + }, + "node_modules/@vue/compiler-core/node_modules/estree-walker": { + "version": "2.0.2", + "resolved": "https://registry.npmmirror.com/estree-walker/-/estree-walker-2.0.2.tgz", + "integrity": "sha512-Rfkk/Mp/DL7JVje3u18FxFujQlTNR2q6QfMSMB7AvCBx91NGj/ba3kCfza0f6dVDbw7YlRf/nDrn7pQrCCyQ/w==", + "license": "MIT" + }, + "node_modules/@vue/compiler-dom": { + "version": "3.5.38", + "resolved": "https://registry.npmmirror.com/@vue/compiler-dom/-/compiler-dom-3.5.38.tgz", + "integrity": "sha512-JTqp25l8aFfJYF7/KmsXZjAxJz7T+SjmTJLoXVjHtc2BrSgSiW2n9Aem/cWq1OPe68A8JL06B3eVdhlP0H4TVw==", + "license": "MIT", + "dependencies": { + "@vue/compiler-core": "3.5.38", + "@vue/shared": "3.5.38" + } + }, + "node_modules/@vue/compiler-sfc": { + "version": "3.5.38", + "resolved": "https://registry.npmmirror.com/@vue/compiler-sfc/-/compiler-sfc-3.5.38.tgz", + "integrity": "sha512-DuA2GiZawSEW442iw/9+Fkol8hTgb4Ke5KkhmSry65QA7YuyMbIdy8p0XZRMvNwJdgRz307W8g1CSzdvS4nuNg==", + "license": "MIT", + "dependencies": { + "@babel/parser": "^7.29.7", + "@vue/compiler-core": "3.5.38", + "@vue/compiler-dom": "3.5.38", + "@vue/compiler-ssr": "3.5.38", + "@vue/shared": "3.5.38", + "estree-walker": "^2.0.2", + "magic-string": "^0.30.21", + "postcss": "^8.5.15", + "source-map-js": "^1.2.1" + } + }, + "node_modules/@vue/compiler-sfc/node_modules/estree-walker": { + "version": "2.0.2", + "resolved": "https://registry.npmmirror.com/estree-walker/-/estree-walker-2.0.2.tgz", + "integrity": "sha512-Rfkk/Mp/DL7JVje3u18FxFujQlTNR2q6QfMSMB7AvCBx91NGj/ba3kCfza0f6dVDbw7YlRf/nDrn7pQrCCyQ/w==", + "license": "MIT" + }, + "node_modules/@vue/compiler-ssr": { + "version": "3.5.38", + "resolved": "https://registry.npmmirror.com/@vue/compiler-ssr/-/compiler-ssr-3.5.38.tgz", + "integrity": "sha512-7s+W5Gc42FGxZMcuwl8H5B29T8BJPMdBT7KHFE+BbAuZ/iTEdTtv7z2XiMjiaUUw4w3ZcCEdHs36RuYJ2VA7bA==", + "license": "MIT", + "dependencies": { + "@vue/compiler-dom": "3.5.38", + "@vue/shared": "3.5.38" + } + }, + "node_modules/@vue/compiler-vue2": { + "version": "2.7.16", + "resolved": "https://registry.npmmirror.com/@vue/compiler-vue2/-/compiler-vue2-2.7.16.tgz", + "integrity": "sha512-qYC3Psj9S/mfu9uVi5WvNZIzq+xnXMhOwbTFKKDD7b1lhpnn71jXSFdTQ+WsIEk0ONCd7VV2IMm7ONl6tbQ86A==", + "dev": true, + "license": "MIT", + "dependencies": { + "de-indent": "^1.0.2", + "he": "^1.2.0" + } + }, + "node_modules/@vue/devtools-api": { + "version": "6.6.4", + "resolved": "https://registry.npmmirror.com/@vue/devtools-api/-/devtools-api-6.6.4.tgz", + "integrity": "sha512-sGhTPMuXqZ1rVOk32RylztWkfXTRhuS7vgAKv0zjqk8gbsHkJ7xfFf+jbySxt7tWObEJwyKaHMikV/WGDiQm8g==", + "license": "MIT" + }, + "node_modules/@vue/language-core": { + "version": "2.2.12", + "resolved": "https://registry.npmmirror.com/@vue/language-core/-/language-core-2.2.12.tgz", + "integrity": "sha512-IsGljWbKGU1MZpBPN+BvPAdr55YPkj2nB/TBNGNC32Vy2qLG25DYu/NBN2vNtZqdRbTRjaoYrahLrToim2NanA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@volar/language-core": "2.4.15", + "@vue/compiler-dom": "^3.5.0", + "@vue/compiler-vue2": "^2.7.16", + "@vue/shared": "^3.5.0", + "alien-signals": "^1.0.3", + "minimatch": "^9.0.3", + "muggle-string": "^0.4.1", + "path-browserify": "^1.0.1" + }, + "peerDependencies": { + "typescript": "*" + }, + "peerDependenciesMeta": { + "typescript": { + "optional": true + } + } + }, + "node_modules/@vue/reactivity": { + "version": "3.5.38", + "resolved": "https://registry.npmmirror.com/@vue/reactivity/-/reactivity-3.5.38.tgz", + "integrity": "sha512-pG6LV/NDNRbKizcUjFFLAfjaL8mcv4DmR9avNcUw2gDHBzZneuS2TWCmp633ynzxz9YYKNeEPK2I8Wraqy2HUQ==", + "license": "MIT", + "dependencies": { + "@vue/shared": "3.5.38" + } + }, + "node_modules/@vue/runtime-core": { + "version": "3.5.38", + "resolved": "https://registry.npmmirror.com/@vue/runtime-core/-/runtime-core-3.5.38.tgz", + "integrity": "sha512-iyW8WVfF1CpCXxncZY5Ei6rSd6oZr5DgEom//fUjRBRl56AXPD+s9ATvukRt77ZFTuYlnVA1bxY+dJB94tWVYw==", + "license": "MIT", + "dependencies": { + "@vue/reactivity": "3.5.38", + "@vue/shared": "3.5.38" + } + }, + "node_modules/@vue/runtime-dom": { + "version": "3.5.38", + "resolved": "https://registry.npmmirror.com/@vue/runtime-dom/-/runtime-dom-3.5.38.tgz", + "integrity": "sha512-apX2wt9sdfDshS+a2xueFZLVpt0GkRJZSoPmrW/SA4yzXTznhfcMVW59gr7h4YQeY0vJhdJkk2rsIDwgfFgC5A==", + "license": "MIT", + "dependencies": { + "@vue/reactivity": "3.5.38", + "@vue/runtime-core": "3.5.38", + "@vue/shared": "3.5.38", + "csstype": "^3.2.3" + } + }, + "node_modules/@vue/server-renderer": { + "version": "3.5.38", + "resolved": "https://registry.npmmirror.com/@vue/server-renderer/-/server-renderer-3.5.38.tgz", + "integrity": "sha512-vue8vbf2QlV4quHqzwmJy6dWfmRhP1J8l4wtZg60CL6VoKqcPY2oe7may3+1d9qfpedjK5PRLFqd5k3Isj9mUw==", + "license": "MIT", + "dependencies": { + "@vue/compiler-ssr": "3.5.38", + "@vue/shared": "3.5.38" + }, + "peerDependencies": { + "vue": "3.5.38" + } + }, + "node_modules/@vue/shared": { + "version": "3.5.38", + "resolved": "https://registry.npmmirror.com/@vue/shared/-/shared-3.5.38.tgz", + "integrity": "sha512-FTW0AFZNaK5/mOqvGBwVfUlNLU38TiQn4+DQgIFUnrBBJQ1crMJ82yeGQLV5jyKFsO8yRukpbuP7x+nRbH6aug==", + "license": "MIT" + }, + "node_modules/@vueuse/core": { + "version": "10.11.1", + "resolved": "https://registry.npmmirror.com/@vueuse/core/-/core-10.11.1.tgz", + "integrity": "sha512-guoy26JQktXPcz+0n3GukWIy/JDNKti9v6VEMu6kV2sYBsWuGiTU8OWdg+ADfUbHg3/3DlqySDe7JmdHrktiww==", + "license": "MIT", + "dependencies": { + "@types/web-bluetooth": "^0.0.20", + "@vueuse/metadata": "10.11.1", + "@vueuse/shared": "10.11.1", + "vue-demi": ">=0.14.8" + }, + "funding": { + "url": "https://github.com/sponsors/antfu" + } + }, + "node_modules/@vueuse/metadata": { + "version": "10.11.1", + "resolved": "https://registry.npmmirror.com/@vueuse/metadata/-/metadata-10.11.1.tgz", + "integrity": "sha512-IGa5FXd003Ug1qAZmyE8wF3sJ81xGLSqTqtQ6jaVfkeZ4i5kS2mwQF61yhVqojRnenVew5PldLyRgvdl4YYuSw==", + "license": "MIT", + "funding": { + "url": "https://github.com/sponsors/antfu" + } + }, + "node_modules/@vueuse/shared": { + "version": "10.11.1", + "resolved": "https://registry.npmmirror.com/@vueuse/shared/-/shared-10.11.1.tgz", + "integrity": "sha512-LHpC8711VFZlDaYUXEBbFBCQ7GS3dVU9mjOhhMhXP6txTV4EhYQg/KGnQuvt/sPAtoUKq7VVUnL6mVtFoL42sA==", + "license": "MIT", + "dependencies": { + "vue-demi": ">=0.14.8" + }, + "funding": { + "url": "https://github.com/sponsors/antfu" + } + }, + "node_modules/acorn": { + "version": "8.17.0", + "resolved": "https://registry.npmmirror.com/acorn/-/acorn-8.17.0.tgz", + "integrity": "sha512-xRQbDb9BnwDafYNn6Vwl839DYVjqXYb1XVGtWAZ1kcDc6iwAL4hg3B1dZlRiuENFeO2H53gFG3in621AdERVAg==", + "dev": true, + "license": "MIT", + "bin": { + "acorn": "bin/acorn" + }, + "engines": { + "node": ">=0.4.0" + } + }, + "node_modules/alien-signals": { + "version": "1.0.13", + "resolved": "https://registry.npmmirror.com/alien-signals/-/alien-signals-1.0.13.tgz", + "integrity": "sha512-OGj9yyTnJEttvzhTUWuscOvtqxq5vrhF7vL9oS0xJ2mK0ItPYP1/y+vCFebfxoEyAz0++1AIwJ5CMr+Fk3nDmg==", + "dev": true, + "license": "MIT" + }, + "node_modules/ant-design-vue": { + "version": "4.2.6", + "resolved": "https://registry.npmmirror.com/ant-design-vue/-/ant-design-vue-4.2.6.tgz", + "integrity": "sha512-t7eX13Yj3i9+i5g9lqFyYneoIb3OzTvQjq9Tts1i+eiOd3Eva/6GagxBSXM1fOCjqemIu0FYVE1ByZ/38epR3Q==", + "license": "MIT", + "dependencies": { + "@ant-design/colors": "^6.0.0", + "@ant-design/icons-vue": "^7.0.0", + "@babel/runtime": "^7.10.5", + "@ctrl/tinycolor": "^3.5.0", + "@emotion/hash": "^0.9.0", + "@emotion/unitless": "^0.8.0", + "@simonwep/pickr": "~1.8.0", + "array-tree-filter": "^2.1.0", + "async-validator": "^4.0.0", + "csstype": "^3.1.1", + "dayjs": "^1.10.5", + "dom-align": "^1.12.1", + "dom-scroll-into-view": "^2.0.0", + "lodash": "^4.17.21", + "lodash-es": "^4.17.15", + "resize-observer-polyfill": "^1.5.1", + "scroll-into-view-if-needed": "^2.2.25", + "shallow-equal": "^1.0.0", + "stylis": "^4.1.3", + "throttle-debounce": "^5.0.0", + "vue-types": "^3.0.0", + "warning": "^4.0.0" + }, + "engines": { + "node": ">=12.22.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/ant-design-vue" + }, + "peerDependencies": { + "vue": ">=3.2.0" + } + }, + "node_modules/argparse": { + "version": "2.0.1", + "resolved": "https://registry.npmmirror.com/argparse/-/argparse-2.0.1.tgz", + "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==", + "license": "Python-2.0" + }, + "node_modules/array-tree-filter": { + "version": "2.1.0", + "resolved": "https://registry.npmmirror.com/array-tree-filter/-/array-tree-filter-2.1.0.tgz", + "integrity": "sha512-4ROwICNlNw/Hqa9v+rk5h22KjmzB1JGTMVKP2AKJBOCgb0yL0ASf0+YvCcLNNwquOHNX48jkeZIJ3a+oOQqKcw==", + "license": "MIT" + }, + "node_modules/async-validator": { + "version": "4.2.5", + "resolved": "https://registry.npmmirror.com/async-validator/-/async-validator-4.2.5.tgz", + "integrity": "sha512-7HhHjtERjqlNbZtqNqy2rckN/SpOOlmDliet+lP7k+eKZEjPk3DgyeU9lIXLdeLz0uBbbVp+9Qdow9wJWgwwfg==", + "license": "MIT" + }, + "node_modules/balanced-match": { + "version": "1.0.2", + "resolved": "https://registry.npmmirror.com/balanced-match/-/balanced-match-1.0.2.tgz", + "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==", + "dev": true, + "license": "MIT" + }, + "node_modules/brace-expansion": { + "version": "2.1.1", + "resolved": "https://registry.npmmirror.com/brace-expansion/-/brace-expansion-2.1.1.tgz", + "integrity": "sha512-WR1cURNjuvBLMZBMbqM0UoE+WAfdUcEV1ccD8PVBVOI+Z3ND4+SZbN8RsfT2bMuG1qwz5RFvPukSZm5fF2D5eA==", + "dev": true, + "license": "MIT", + "dependencies": { + "balanced-match": "^1.0.0" + } + }, + "node_modules/chokidar": { + "version": "5.0.0", + "resolved": "https://registry.npmmirror.com/chokidar/-/chokidar-5.0.0.tgz", + "integrity": "sha512-TQMmc3w+5AxjpL8iIiwebF73dRDF4fBIieAqGn9RGCWaEVwQ6Fb2cGe31Yns0RRIzii5goJ1Y7xbMwo1TxMplw==", + "dev": true, + "license": "MIT", + "dependencies": { + "readdirp": "^5.0.0" + }, + "engines": { + "node": ">= 20.19.0" + }, + "funding": { + "url": "https://paulmillr.com/funding/" + } + }, + "node_modules/compute-scroll-into-view": { + "version": "1.0.20", + "resolved": "https://registry.npmmirror.com/compute-scroll-into-view/-/compute-scroll-into-view-1.0.20.tgz", + "integrity": "sha512-UCB0ioiyj8CRjtrvaceBLqqhZCVP+1B8+NWQhmdsm0VXOJtobBCf1dBQmebCCo34qZmUwZfIH2MZLqNHazrfjg==", + "license": "MIT" + }, + "node_modules/confbox": { + "version": "0.2.4", + "resolved": "https://registry.npmmirror.com/confbox/-/confbox-0.2.4.tgz", + "integrity": "sha512-ysOGlgTFbN2/Y6Cg3Iye8YKulHw+R2fNXHrgSmXISQdMnomY6eNDprVdW9R5xBguEqI954+S6709UyiO7B+6OQ==", + "dev": true, + "license": "MIT" + }, + "node_modules/core-js": { + "version": "3.49.0", + "resolved": "https://registry.npmmirror.com/core-js/-/core-js-3.49.0.tgz", + "integrity": "sha512-es1U2+YTtzpwkxVLwAFdSpaIMyQaq0PBgm3YD1W3Qpsn1NAmO3KSgZfu+oGSWVu6NvLHoHCV/aYcsE5wiB7ALg==", + "hasInstallScript": true, + "license": "MIT", + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/core-js" + } + }, + "node_modules/csstype": { + "version": "3.2.3", + "resolved": "https://registry.npmmirror.com/csstype/-/csstype-3.2.3.tgz", + "integrity": "sha512-z1HGKcYy2xA8AGQfwrn0PAy+PB7X/GSj3UVJW9qKyn43xWa+gl5nXmU4qqLMRzWVLFC8KusUX8T/0kCiOYpAIQ==", + "license": "MIT" + }, + "node_modules/d3-color": { + "version": "3.1.0", + "resolved": "https://registry.npmmirror.com/d3-color/-/d3-color-3.1.0.tgz", + "integrity": "sha512-zg/chbXyeBtMQ1LbD/WSoW2DpC3I0mpmPdW+ynRTj/x2DAWYrIY7qeZIHidozwV24m4iavr15lNwIwLxRmOxhA==", + "license": "ISC", + "engines": { + "node": ">=12" + } + }, + "node_modules/d3-dispatch": { + "version": "3.0.1", + "resolved": "https://registry.npmmirror.com/d3-dispatch/-/d3-dispatch-3.0.1.tgz", + "integrity": "sha512-rzUyPU/S7rwUflMyLc1ETDeBj0NRuHKKAcvukozwhshr6g6c5d8zh4c2gQjY2bZ0dXeGLWc1PF174P2tVvKhfg==", + "license": "ISC", + "engines": { + "node": ">=12" + } + }, + "node_modules/d3-drag": { + "version": "3.0.0", + "resolved": "https://registry.npmmirror.com/d3-drag/-/d3-drag-3.0.0.tgz", + "integrity": "sha512-pWbUJLdETVA8lQNJecMxoXfH6x+mO2UQo8rSmZ+QqxcbyA3hfeprFgIT//HW2nlHChWeIIMwS2Fq+gEARkhTkg==", + "license": "ISC", + "dependencies": { + "d3-dispatch": "1 - 3", + "d3-selection": "3" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/d3-ease": { + "version": "3.0.1", + "resolved": "https://registry.npmmirror.com/d3-ease/-/d3-ease-3.0.1.tgz", + "integrity": "sha512-wR/XK3D3XcLIZwpbvQwQ5fK+8Ykds1ip7A2Txe0yxncXSdq1L9skcG7blcedkOX+ZcgxGAmLX1FrRGbADwzi0w==", + "license": "BSD-3-Clause", + "engines": { + "node": ">=12" + } + }, + "node_modules/d3-interpolate": { + "version": "3.0.1", + "resolved": "https://registry.npmmirror.com/d3-interpolate/-/d3-interpolate-3.0.1.tgz", + "integrity": "sha512-3bYs1rOD33uo8aqJfKP3JWPAibgw8Zm2+L9vBKEHJ2Rg+viTR7o5Mmv5mZcieN+FRYaAOWX5SJATX6k1PWz72g==", + "license": "ISC", + "dependencies": { + "d3-color": "1 - 3" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/d3-selection": { + "version": "3.0.0", + "resolved": "https://registry.npmmirror.com/d3-selection/-/d3-selection-3.0.0.tgz", + "integrity": "sha512-fmTRWbNMmsmWq6xJV8D19U/gw/bwrHfNXxrIN+HfZgnzqTHp9jOmKMhsTUjXOJnZOdZY9Q28y4yebKzqDKlxlQ==", + "license": "ISC", + "engines": { + "node": ">=12" + } + }, + "node_modules/d3-timer": { + "version": "3.0.1", + "resolved": "https://registry.npmmirror.com/d3-timer/-/d3-timer-3.0.1.tgz", + "integrity": "sha512-ndfJ/JxxMd3nw31uyKoY2naivF+r29V+Lc0svZxe1JvvIRmi8hUsrMvdOwgS1o6uBHmiz91geQ0ylPP0aj1VUA==", + "license": "ISC", + "engines": { + "node": ">=12" + } + }, + "node_modules/d3-transition": { + "version": "3.0.1", + "resolved": "https://registry.npmmirror.com/d3-transition/-/d3-transition-3.0.1.tgz", + "integrity": "sha512-ApKvfjsSR6tg06xrL434C0WydLr7JewBB3V+/39RMHsaXTOG0zmt/OAXeng5M5LBm0ojmxJrpomQVZ1aPvBL4w==", + "license": "ISC", + "dependencies": { + "d3-color": "1 - 3", + "d3-dispatch": "1 - 3", + "d3-ease": "1 - 3", + "d3-interpolate": "1 - 3", + "d3-timer": "1 - 3" + }, + "engines": { + "node": ">=12" + }, + "peerDependencies": { + "d3-selection": "2 - 3" + } + }, + "node_modules/d3-zoom": { + "version": "3.0.0", + "resolved": "https://registry.npmmirror.com/d3-zoom/-/d3-zoom-3.0.0.tgz", + "integrity": "sha512-b8AmV3kfQaqWAuacbPuNbL6vahnOJflOhexLzMMNLga62+/nh0JzvJ0aO/5a5MVgUFGS7Hu1P9P03o3fJkDCyw==", + "license": "ISC", + "dependencies": { + "d3-dispatch": "1 - 3", + "d3-drag": "2 - 3", + "d3-interpolate": "1 - 3", + "d3-selection": "2 - 3", + "d3-transition": "2 - 3" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/dayjs": { + "version": "1.11.21", + "resolved": "https://registry.npmmirror.com/dayjs/-/dayjs-1.11.21.tgz", + "integrity": "sha512-98IT+HOahAisibz/yjKbzuOBwYcjJ7BCLPzARyHiyEBmRz4fatF+KPJszEHXsGYjUG234aH/cOjW1wwTbKUZlA==", + "license": "MIT" + }, + "node_modules/de-indent": { + "version": "1.0.2", + "resolved": "https://registry.npmmirror.com/de-indent/-/de-indent-1.0.2.tgz", + "integrity": "sha512-e/1zu3xH5MQryN2zdVaF0OrdNLUbvWxzMbi+iNA6Bky7l1RoP8a2fIbRocyHclXt/arDrrR6lL3TqFD9pMQTsg==", + "dev": true, + "license": "MIT" + }, + "node_modules/dom-align": { + "version": "1.12.4", + "resolved": "https://registry.npmmirror.com/dom-align/-/dom-align-1.12.4.tgz", + "integrity": "sha512-R8LUSEay/68zE5c8/3BDxiTEvgb4xZTF0RKmAHfiEVN3klfIpXfi2/QCoiWPccVQ0J/ZGdz9OjzL4uJEP/MRAw==", + "license": "MIT" + }, + "node_modules/dom-scroll-into-view": { + "version": "2.0.1", + "resolved": "https://registry.npmmirror.com/dom-scroll-into-view/-/dom-scroll-into-view-2.0.1.tgz", + "integrity": "sha512-bvVTQe1lfaUr1oFzZX80ce9KLDlZ3iU+XGNE/bz9HnGdklTieqsbmsLHe+rT2XWqopvL0PckkYqN7ksmm5pe3w==", + "license": "MIT" + }, + "node_modules/echarts": { + "version": "6.1.0", + "resolved": "https://registry.npmmirror.com/echarts/-/echarts-6.1.0.tgz", + "integrity": "sha512-q0yaFPggC9FUdsWH4blavRWFmxdrIodbkoKNAjJudAI6CA9gNPxHtV2RcZNEepZVlk4yvBYkOkbk6HIVpIyHZA==", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "tslib": "2.3.0", + "zrender": "6.1.0" + } + }, + "node_modules/entities": { + "version": "7.0.1", + "resolved": "https://registry.npmmirror.com/entities/-/entities-7.0.1.tgz", + "integrity": "sha512-TWrgLOFUQTH994YUyl1yT4uyavY5nNB5muff+RtWaqNVCAK408b5ZnnbNAUEWLTCpum9w6arT70i1XdQ4UeOPA==", + "license": "BSD-2-Clause", + "engines": { + "node": ">=0.12" + }, + "funding": { + "url": "https://github.com/fb55/entities?sponsor=1" + } + }, + "node_modules/esbuild": { + "version": "0.21.5", + "resolved": "https://registry.npmmirror.com/esbuild/-/esbuild-0.21.5.tgz", + "integrity": "sha512-mg3OPMV4hXywwpoDxu3Qda5xCKQi+vCTZq8S9J/EpkhB2HzKXq4SNFZE3+NK93JYxc8VMSep+lOUSC/RVKaBqw==", + "dev": true, + "hasInstallScript": true, + "license": "MIT", + "bin": { + "esbuild": "bin/esbuild" + }, + "engines": { + "node": ">=12" + }, + "optionalDependencies": { + "@esbuild/aix-ppc64": "0.21.5", + "@esbuild/android-arm": "0.21.5", + "@esbuild/android-arm64": "0.21.5", + "@esbuild/android-x64": "0.21.5", + "@esbuild/darwin-arm64": "0.21.5", + "@esbuild/darwin-x64": "0.21.5", + "@esbuild/freebsd-arm64": "0.21.5", + "@esbuild/freebsd-x64": "0.21.5", + "@esbuild/linux-arm": "0.21.5", + "@esbuild/linux-arm64": "0.21.5", + "@esbuild/linux-ia32": "0.21.5", + "@esbuild/linux-loong64": "0.21.5", + "@esbuild/linux-mips64el": "0.21.5", + "@esbuild/linux-ppc64": "0.21.5", + "@esbuild/linux-riscv64": "0.21.5", + "@esbuild/linux-s390x": "0.21.5", + "@esbuild/linux-x64": "0.21.5", + "@esbuild/netbsd-x64": "0.21.5", + "@esbuild/openbsd-x64": "0.21.5", + "@esbuild/sunos-x64": "0.21.5", + "@esbuild/win32-arm64": "0.21.5", + "@esbuild/win32-ia32": "0.21.5", + "@esbuild/win32-x64": "0.21.5" + } + }, + "node_modules/escape-string-regexp": { + "version": "5.0.0", + "resolved": "https://registry.npmmirror.com/escape-string-regexp/-/escape-string-regexp-5.0.0.tgz", + "integrity": "sha512-/veY75JbMK4j1yjvuUxuVsiS/hr/4iHs9FTT6cgTexxdE0Ly/glccBAkloH/DofkjRbZU3bnoj38mOmhkZ0lHw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/estree-walker": { + "version": "3.0.3", + "resolved": "https://registry.npmmirror.com/estree-walker/-/estree-walker-3.0.3.tgz", + "integrity": "sha512-7RUKfXgSMMkzt6ZuXmqapOurLGPPfgj6l9uRZ7lRGolvk0y2yocc35LdcxKC5PQZdn2DMqioAQ2NoWcrTKmm6g==", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/estree": "^1.0.0" + } + }, + "node_modules/exsolve": { + "version": "1.0.8", + "resolved": "https://registry.npmmirror.com/exsolve/-/exsolve-1.0.8.tgz", + "integrity": "sha512-LmDxfWXwcTArk8fUEnOfSZpHOJ6zOMUJKOtFLFqJLoKJetuQG874Uc7/Kki7zFLzYybmZhp1M7+98pfMqeX8yA==", + "dev": true, + "license": "MIT" + }, + "node_modules/fdir": { + "version": "6.5.0", + "resolved": "https://registry.npmmirror.com/fdir/-/fdir-6.5.0.tgz", + "integrity": "sha512-tIbYtZbucOs0BRGqPJkshJUYdL+SDH7dVM8gjy+ERp3WAUjLEFJE+02kanyHtwjWOnwrKYBiwAmM0p4kLJAnXg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=12.0.0" + }, + "peerDependencies": { + "picomatch": "^3 || ^4" + }, + "peerDependenciesMeta": { + "picomatch": { + "optional": true + } + } + }, + "node_modules/fsevents": { + "version": "2.3.3", + "resolved": "https://registry.npmmirror.com/fsevents/-/fsevents-2.3.3.tgz", + "integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==", + "dev": true, + "hasInstallScript": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": "^8.16.0 || ^10.6.0 || >=11.0.0" + } + }, + "node_modules/he": { + "version": "1.2.0", + "resolved": "https://registry.npmmirror.com/he/-/he-1.2.0.tgz", + "integrity": "sha512-F/1DnUGPopORZi0ni+CvrCgHQ5FyEAHRLSApuYWMmrbSwoN2Mn/7k+Gl38gJnR7yyDZk6WLXwiGod1JOWNDKGw==", + "dev": true, + "license": "MIT", + "bin": { + "he": "bin/he" + } + }, + "node_modules/is-plain-object": { + "version": "3.0.1", + "resolved": "https://registry.npmmirror.com/is-plain-object/-/is-plain-object-3.0.1.tgz", + "integrity": "sha512-Xnpx182SBMrr/aBik8y+GuR4U1L9FqMSojwDQwPMmxyC6bvEqly9UBCxhauBF5vNh2gwWJNX6oDV7O+OM4z34g==", + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/js-tokens": { + "version": "9.0.1", + "resolved": "https://registry.npmmirror.com/js-tokens/-/js-tokens-9.0.1.tgz", + "integrity": "sha512-mxa9E9ITFOt0ban3j6L5MpjwegGz6lBQmM1IJkWeBZGcMxto50+eWdjC/52xDbS2vy0k7vIMK0Fe2wfL9OQSpQ==", + "dev": true, + "license": "MIT" + }, + "node_modules/linkify-it": { + "version": "5.0.1", + "resolved": "https://registry.npmmirror.com/linkify-it/-/linkify-it-5.0.1.tgz", + "integrity": "sha512-wVoTjP4Q6R0NW5hiZkVJaFZPWgtXfoGF+6LucL3/FtiNjmcHhYjEr5f1Kqjirc1nBW07J/ZuRFumqr2oqccEWg==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/puzrin" + }, + { + "type": "github", + "url": "https://github.com/sponsors/markdown-it" + } + ], + "license": "MIT", + "dependencies": { + "uc.micro": "^2.0.0" + } + }, + "node_modules/local-pkg": { + "version": "1.2.1", + "resolved": "https://registry.npmmirror.com/local-pkg/-/local-pkg-1.2.1.tgz", + "integrity": "sha512-++gUqRDEvcnN6Zhqrr+y/CkVEHhlrR96vZn3nZZPYzMcBUyBtTKzB9NadClFIsIVSsu+3i9tfk/erqy9kAmt7Q==", + "dev": true, + "license": "MIT", + "dependencies": { + "mlly": "^1.7.4", + "pkg-types": "^2.3.0", + "quansync": "^0.2.11" + }, + "engines": { + "node": ">=14" + }, + "funding": { + "url": "https://github.com/sponsors/antfu" + } + }, + "node_modules/lodash": { + "version": "4.18.1", + "resolved": "https://registry.npmmirror.com/lodash/-/lodash-4.18.1.tgz", + "integrity": "sha512-dMInicTPVE8d1e5otfwmmjlxkZoUpiVLwyeTdUsi/Caj/gfzzblBcCE5sRHV/AsjuCmxWrte2TNGSYuCeCq+0Q==", + "license": "MIT" + }, + "node_modules/lodash-es": { + "version": "4.18.1", + "resolved": "https://registry.npmmirror.com/lodash-es/-/lodash-es-4.18.1.tgz", + "integrity": "sha512-J8xewKD/Gk22OZbhpOVSwcs60zhd95ESDwezOFuA3/099925PdHJ7OFHNTGtajL3AlZkykD32HykiMo+BIBI8A==", + "license": "MIT" + }, + "node_modules/loose-envify": { + "version": "1.4.0", + "resolved": "https://registry.npmmirror.com/loose-envify/-/loose-envify-1.4.0.tgz", + "integrity": "sha512-lyuxPGr/Wfhrlem2CL/UcnUc1zcqKAImBDzukY7Y5F/yQiNdko6+fRLevlw1HgMySw7f611UIY408EtxRSoK3Q==", + "license": "MIT", + "dependencies": { + "js-tokens": "^3.0.0 || ^4.0.0" + }, + "bin": { + "loose-envify": "cli.js" + } + }, + "node_modules/loose-envify/node_modules/js-tokens": { + "version": "4.0.0", + "resolved": "https://registry.npmmirror.com/js-tokens/-/js-tokens-4.0.0.tgz", + "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==", + "license": "MIT" + }, + "node_modules/magic-string": { + "version": "0.30.21", + "resolved": "https://registry.npmmirror.com/magic-string/-/magic-string-0.30.21.tgz", + "integrity": "sha512-vd2F4YUyEXKGcLHoq+TEyCjxueSeHnFxyyjNp80yg0XV4vUhnDer/lvvlqM/arB5bXQN5K2/3oinyCRyx8T2CQ==", + "license": "MIT", + "dependencies": { + "@jridgewell/sourcemap-codec": "^1.5.5" + } + }, + "node_modules/markdown-it": { + "version": "14.2.0", + "resolved": "https://registry.npmmirror.com/markdown-it/-/markdown-it-14.2.0.tgz", + "integrity": "sha512-1TGiQiJVRQ3NPmZH6sx5Cfnmg6GQm9jvC1ch4TK511NjSJvjzKLzn5pPfZRNZkRPZP0HqCioSndqH8v2nRaWVQ==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/puzrin" + }, + { + "type": "github", + "url": "https://github.com/sponsors/markdown-it" + } + ], + "license": "MIT", + "dependencies": { + "argparse": "^2.0.1", + "entities": "^4.4.0", + "linkify-it": "^5.0.1", + "mdurl": "^2.0.0", + "punycode.js": "^2.3.1", + "uc.micro": "^2.1.0" + }, + "bin": { + "markdown-it": "bin/markdown-it.mjs" + } + }, + "node_modules/markdown-it/node_modules/entities": { + "version": "4.5.0", + "resolved": "https://registry.npmmirror.com/entities/-/entities-4.5.0.tgz", + "integrity": "sha512-V0hjH4dGPh9Ao5p0MoRY6BVqtwCjhz6vI5LT8AJ55H+4g9/4vbHx1I54fS0XuclLhDHArPQCiMjDxjaL8fPxhw==", + "license": "BSD-2-Clause", + "engines": { + "node": ">=0.12" + }, + "funding": { + "url": "https://github.com/fb55/entities?sponsor=1" + } + }, + "node_modules/mdurl": { + "version": "2.0.0", + "resolved": "https://registry.npmmirror.com/mdurl/-/mdurl-2.0.0.tgz", + "integrity": "sha512-Lf+9+2r+Tdp5wXDXC4PcIBjTDtq4UKjCPMQhKIuzpJNW0b96kVqSwW0bT7FhRSfmAiFYgP+SCRvdrDozfh0U5w==", + "license": "MIT" + }, + "node_modules/minimatch": { + "version": "9.0.9", + "resolved": "https://registry.npmmirror.com/minimatch/-/minimatch-9.0.9.tgz", + "integrity": "sha512-OBwBN9AL4dqmETlpS2zasx+vTeWclWzkblfZk7KTA5j3jeOONz/tRCnZomUyvNg83wL5Zv9Ss6HMJXAgL8R2Yg==", + "dev": true, + "license": "ISC", + "dependencies": { + "brace-expansion": "^2.0.2" + }, + "engines": { + "node": ">=16 || 14 >=14.17" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/mlly": { + "version": "1.8.2", + "resolved": "https://registry.npmmirror.com/mlly/-/mlly-1.8.2.tgz", + "integrity": "sha512-d+ObxMQFmbt10sretNDytwt85VrbkhhUA/JBGm1MPaWJ65Cl4wOgLaB1NYvJSZ0Ef03MMEU/0xpPMXUIQ29UfA==", + "dev": true, + "license": "MIT", + "dependencies": { + "acorn": "^8.16.0", + "pathe": "^2.0.3", + "pkg-types": "^1.3.1", + "ufo": "^1.6.3" + } + }, + "node_modules/mlly/node_modules/confbox": { + "version": "0.1.8", + "resolved": "https://registry.npmmirror.com/confbox/-/confbox-0.1.8.tgz", + "integrity": "sha512-RMtmw0iFkeR4YV+fUOSucriAQNb9g8zFR52MWCtl+cCZOFRNL6zeB395vPzFhEjjn4fMxXudmELnl/KF/WrK6w==", + "dev": true, + "license": "MIT" + }, + "node_modules/mlly/node_modules/pkg-types": { + "version": "1.3.1", + "resolved": "https://registry.npmmirror.com/pkg-types/-/pkg-types-1.3.1.tgz", + "integrity": "sha512-/Jm5M4RvtBFVkKWRu2BLUTNP8/M2a+UwuAX+ae4770q1qVGtfjG+WTCupoZixokjmHiry8uI+dlY8KXYV5HVVQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "confbox": "^0.1.8", + "mlly": "^1.7.4", + "pathe": "^2.0.1" + } + }, + "node_modules/muggle-string": { + "version": "0.4.1", + "resolved": "https://registry.npmmirror.com/muggle-string/-/muggle-string-0.4.1.tgz", + "integrity": "sha512-VNTrAak/KhO2i8dqqnqnAHOa3cYBwXEZe9h+D5h/1ZqFSTEFHdM65lR7RoIqq3tBBYavsOXV84NoHXZ0AkPyqQ==", + "dev": true, + "license": "MIT" + }, + "node_modules/nanoid": { + "version": "3.3.12", + "resolved": "https://registry.npmmirror.com/nanoid/-/nanoid-3.3.12.tgz", + "integrity": "sha512-ZB9RH/39qpq5Vu6Y+NmUaFhQR6pp+M2Xt76XBnEwDaGcVAqhlvxrl3B2bKS5D3NH3QR76v3aSrKaF/Kiy7lEtQ==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "license": "MIT", + "bin": { + "nanoid": "bin/nanoid.cjs" + }, + "engines": { + "node": "^10 || ^12 || ^13.7 || ^14 || >=15.0.1" + } + }, + "node_modules/nanopop": { + "version": "2.4.2", + "resolved": "https://registry.npmmirror.com/nanopop/-/nanopop-2.4.2.tgz", + "integrity": "sha512-NzOgmMQ+elxxHeIha+OG/Pv3Oc3p4RU2aBhwWwAqDpXrdTbtRylbRLQztLy8dMMwfl6pclznBdfUhccEn9ZIzw==", + "license": "MIT" + }, + "node_modules/obug": { + "version": "2.1.3", + "resolved": "https://registry.npmmirror.com/obug/-/obug-2.1.3.tgz", + "integrity": "sha512-9miFgM2OFba7hB+pRgvtV84pYTBaoTHohvmIgiRt6dRIzbwEOIaNaP+dIlGs2fNFoB0SeISs0Jz5WFVRid6Xyg==", + "dev": true, + "funding": [ + "https://github.com/sponsors/sxzz", + "https://opencollective.com/debug" + ], + "license": "MIT", + "engines": { + "node": ">=12.20.0" + } + }, + "node_modules/path-browserify": { + "version": "1.0.1", + "resolved": "https://registry.npmmirror.com/path-browserify/-/path-browserify-1.0.1.tgz", + "integrity": "sha512-b7uo2UCUOYZcnF/3ID0lulOJi/bafxa1xPe7ZPsammBSpjSWQkjNxlt635YGS2MiR9GjvuXCtz2emr3jbsz98g==", + "dev": true, + "license": "MIT" + }, + "node_modules/pathe": { + "version": "2.0.3", + "resolved": "https://registry.npmmirror.com/pathe/-/pathe-2.0.3.tgz", + "integrity": "sha512-WUjGcAqP1gQacoQe+OBJsFA7Ld4DyXuUIjZ5cc75cLHvJ7dtNsTugphxIADwspS+AraAUePCKrSVtPLFj/F88w==", + "dev": true, + "license": "MIT" + }, + "node_modules/picocolors": { + "version": "1.1.1", + "resolved": "https://registry.npmmirror.com/picocolors/-/picocolors-1.1.1.tgz", + "integrity": "sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==", + "license": "ISC" + }, + "node_modules/picomatch": { + "version": "4.0.4", + "resolved": "https://registry.npmmirror.com/picomatch/-/picomatch-4.0.4.tgz", + "integrity": "sha512-QP88BAKvMam/3NxH6vj2o21R6MjxZUAd6nlwAS/pnGvN9IVLocLHxGYIzFhg6fUQ+5th6P4dv4eW9jX3DSIj7A==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/jonschlinkert" + } + }, + "node_modules/pinia": { + "version": "2.3.1", + "resolved": "https://registry.npmmirror.com/pinia/-/pinia-2.3.1.tgz", + "integrity": "sha512-khUlZSwt9xXCaTbbxFYBKDc/bWAGWJjOgvxETwkTN7KRm66EeT1ZdZj6i2ceh9sP2Pzqsbc704r2yngBrxBVug==", + "license": "MIT", + "dependencies": { + "@vue/devtools-api": "^6.6.3", + "vue-demi": "^0.14.10" + }, + "funding": { + "url": "https://github.com/sponsors/posva" + }, + "peerDependencies": { + "typescript": ">=4.4.4", + "vue": "^2.7.0 || ^3.5.11" + }, + "peerDependenciesMeta": { + "typescript": { + "optional": true + } + } + }, + "node_modules/pkg-types": { + "version": "2.3.1", + "resolved": "https://registry.npmmirror.com/pkg-types/-/pkg-types-2.3.1.tgz", + "integrity": "sha512-y+ichcgc2LrADuhLNAx8DFjVfgz91pRxfZdI3UDhxHvcVEZsenLO+7XaU5vOp0u/7V/wZ+plyuQxtrDlZJ+yeg==", + "dev": true, + "license": "MIT", + "dependencies": { + "confbox": "^0.2.4", + "exsolve": "^1.0.8", + "pathe": "^2.0.3" + } + }, + "node_modules/postcss": { + "version": "8.5.15", + "resolved": "https://registry.npmmirror.com/postcss/-/postcss-8.5.15.tgz", + "integrity": "sha512-FfR8sjd4em2T6fb3I2MwAJU7HWVMr9zba+enmQeeWFfCbm+UOC/0X4DS8XtpUTMwWMGbjKYP7xjfNekzyGmB3A==", + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/postcss/" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/postcss" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "license": "MIT", + "dependencies": { + "nanoid": "^3.3.12", + "picocolors": "^1.1.1", + "source-map-js": "^1.2.1" + }, + "engines": { + "node": "^10 || ^12 || >=14" + } + }, + "node_modules/punycode.js": { + "version": "2.3.1", + "resolved": "https://registry.npmmirror.com/punycode.js/-/punycode.js-2.3.1.tgz", + "integrity": "sha512-uxFIHU0YlHYhDQtV4R9J6a52SLx28BCjT+4ieh7IGbgwVJWO+km431c4yRlREUAsAmt/uMjQUyQHNEPf0M39CA==", + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/quansync": { + "version": "0.2.11", + "resolved": "https://registry.npmmirror.com/quansync/-/quansync-0.2.11.tgz", + "integrity": "sha512-AifT7QEbW9Nri4tAwR5M/uzpBuqfZf+zwaEM/QkzEjj7NBuFD2rBuy0K3dE+8wltbezDV7JMA0WfnCPYRSYbXA==", + "dev": true, + "funding": [ + { + "type": "individual", + "url": "https://github.com/sponsors/antfu" + }, + { + "type": "individual", + "url": "https://github.com/sponsors/sxzz" + } + ], + "license": "MIT" + }, + "node_modules/readdirp": { + "version": "5.0.0", + "resolved": "https://registry.npmmirror.com/readdirp/-/readdirp-5.0.0.tgz", + "integrity": "sha512-9u/XQ1pvrQtYyMpZe7DXKv2p5CNvyVwzUB6uhLAnQwHMSgKMBR62lc7AHljaeteeHXn11XTAaLLUVZYVZyuRBQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 20.19.0" + }, + "funding": { + "type": "individual", + "url": "https://paulmillr.com/funding/" + } + }, + "node_modules/resize-observer-polyfill": { + "version": "1.5.1", + "resolved": "https://registry.npmmirror.com/resize-observer-polyfill/-/resize-observer-polyfill-1.5.1.tgz", + "integrity": "sha512-LwZrotdHOo12nQuZlHEmtuXdqGoOD0OhaxopaNFxWzInpEgaLWoVuAMbTzixuosCx2nEG58ngzW3vxdWoxIgdg==", + "license": "MIT" + }, + "node_modules/rollup": { + "version": "4.61.1", + "resolved": "https://registry.npmmirror.com/rollup/-/rollup-4.61.1.tgz", + "integrity": "sha512-I4KW6iuRpuu2uHBLraZ1wNZe0DP7lnRha+VJ9tNaYVaVgKhW0aI3h4RYnoRPeql0flHm/Co55b7snEDcOfOJrA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/estree": "1.0.9" + }, + "bin": { + "rollup": "dist/bin/rollup" + }, + "engines": { + "node": ">=18.0.0", + "npm": ">=8.0.0" + }, + "optionalDependencies": { + "@rollup/rollup-android-arm-eabi": "4.61.1", + "@rollup/rollup-android-arm64": "4.61.1", + "@rollup/rollup-darwin-arm64": "4.61.1", + "@rollup/rollup-darwin-x64": "4.61.1", + "@rollup/rollup-freebsd-arm64": "4.61.1", + "@rollup/rollup-freebsd-x64": "4.61.1", + "@rollup/rollup-linux-arm-gnueabihf": "4.61.1", + "@rollup/rollup-linux-arm-musleabihf": "4.61.1", + "@rollup/rollup-linux-arm64-gnu": "4.61.1", + "@rollup/rollup-linux-arm64-musl": "4.61.1", + "@rollup/rollup-linux-loong64-gnu": "4.61.1", + "@rollup/rollup-linux-loong64-musl": "4.61.1", + "@rollup/rollup-linux-ppc64-gnu": "4.61.1", + "@rollup/rollup-linux-ppc64-musl": "4.61.1", + "@rollup/rollup-linux-riscv64-gnu": "4.61.1", + "@rollup/rollup-linux-riscv64-musl": "4.61.1", + "@rollup/rollup-linux-s390x-gnu": "4.61.1", + "@rollup/rollup-linux-x64-gnu": "4.61.1", + "@rollup/rollup-linux-x64-musl": "4.61.1", + "@rollup/rollup-openbsd-x64": "4.61.1", + "@rollup/rollup-openharmony-arm64": "4.61.1", + "@rollup/rollup-win32-arm64-msvc": "4.61.1", + "@rollup/rollup-win32-ia32-msvc": "4.61.1", + "@rollup/rollup-win32-x64-gnu": "4.61.1", + "@rollup/rollup-win32-x64-msvc": "4.61.1", + "fsevents": "~2.3.2" + } + }, + "node_modules/scroll-into-view-if-needed": { + "version": "2.2.31", + "resolved": "https://registry.npmmirror.com/scroll-into-view-if-needed/-/scroll-into-view-if-needed-2.2.31.tgz", + "integrity": "sha512-dGCXy99wZQivjmjIqihaBQNjryrz5rueJY7eHfTdyWEiR4ttYpsajb14rn9s5d4DY4EcY6+4+U/maARBXJedkA==", + "license": "MIT", + "dependencies": { + "compute-scroll-into-view": "^1.0.20" + } + }, + "node_modules/scule": { + "version": "1.3.0", + "resolved": "https://registry.npmmirror.com/scule/-/scule-1.3.0.tgz", + "integrity": "sha512-6FtHJEvt+pVMIB9IBY+IcCJ6Z5f1iQnytgyfKMhDKgmzYG+TeH/wx1y3l27rshSbLiSanrR9ffZDrEsmjlQF2g==", + "dev": true, + "license": "MIT" + }, + "node_modules/shallow-equal": { + "version": "1.2.1", + "resolved": "https://registry.npmmirror.com/shallow-equal/-/shallow-equal-1.2.1.tgz", + "integrity": "sha512-S4vJDjHHMBaiZuT9NPb616CSmLf618jawtv3sufLl6ivK8WocjAo58cXwbRV1cgqxH0Qbv+iUt6m05eqEa2IRA==", + "license": "MIT" + }, + "node_modules/source-map-js": { + "version": "1.2.1", + "resolved": "https://registry.npmmirror.com/source-map-js/-/source-map-js-1.2.1.tgz", + "integrity": "sha512-UXWMKhLOwVKb728IUtQPXxfYU+usdybtUrK/8uGE8CQMvrhOpwvzDBwj0QhSL7MQc7vIsISBG8VQ8+IDQxpfQA==", + "license": "BSD-3-Clause", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/strip-literal": { + "version": "3.1.0", + "resolved": "https://registry.npmmirror.com/strip-literal/-/strip-literal-3.1.0.tgz", + "integrity": "sha512-8r3mkIM/2+PpjHoOtiAW8Rg3jJLHaV7xPwG+YRGrv6FP0wwk/toTpATxWYOW0BKdWwl82VT2tFYi5DlROa0Mxg==", + "dev": true, + "license": "MIT", + "dependencies": { + "js-tokens": "^9.0.1" + }, + "funding": { + "url": "https://github.com/sponsors/antfu" + } + }, + "node_modules/stylis": { + "version": "4.4.0", + "resolved": "https://registry.npmmirror.com/stylis/-/stylis-4.4.0.tgz", + "integrity": "sha512-5Z9ZpRzfuH6l/UAvCPAPUo3665Nk2wLaZU3x+TLHKVzIz33+sbJqbtrYoC3KD4/uVOr2Zp+L0LySezP9OHV9yA==", + "license": "MIT" + }, + "node_modules/throttle-debounce": { + "version": "5.0.2", + "resolved": "https://registry.npmmirror.com/throttle-debounce/-/throttle-debounce-5.0.2.tgz", + "integrity": "sha512-B71/4oyj61iNH0KeCamLuE2rmKuTO5byTOSVwECM5FA7TiAiAW+UqTKZ9ERueC4qvgSttUhdmq1mXC3kJqGX7A==", + "license": "MIT", + "engines": { + "node": ">=12.22" + } + }, + "node_modules/tinyglobby": { + "version": "0.2.17", + "resolved": "https://registry.npmmirror.com/tinyglobby/-/tinyglobby-0.2.17.tgz", + "integrity": "sha512-wXR/dYpcqKmfWpEdZjiKJOwCNFndD0DMnrW/cYjVGttEkBfVgcLFHoNrlj47mjOVic9yyNu65alsgF4NQyTa2g==", + "dev": true, + "license": "MIT", + "dependencies": { + "fdir": "^6.5.0", + "picomatch": "^4.0.4" + }, + "engines": { + "node": ">=12.0.0" + }, + "funding": { + "url": "https://github.com/sponsors/SuperchupuDev" + } + }, + "node_modules/tslib": { + "version": "2.3.0", + "resolved": "https://registry.npmmirror.com/tslib/-/tslib-2.3.0.tgz", + "integrity": "sha512-N82ooyxVNm6h1riLCoyS9e3fuJ3AMG2zIZs2Gd1ATcSFjSA23Q0fzjjZeh0jbJvWVDZ0cJT8yaNNaaXHzueNjg==", + "dev": true, + "license": "0BSD" + }, + "node_modules/typescript": { + "version": "5.9.3", + "resolved": "https://registry.npmmirror.com/typescript/-/typescript-5.9.3.tgz", + "integrity": "sha512-jl1vZzPDinLr9eUt3J/t7V6FgNEw9QjvBPdysz9KfQDD41fQrC2Y4vKQdiaUpFT4bXlb1RHhLpp8wtm6M5TgSw==", + "devOptional": true, + "license": "Apache-2.0", + "bin": { + "tsc": "bin/tsc", + "tsserver": "bin/tsserver" + }, + "engines": { + "node": ">=14.17" + } + }, + "node_modules/uc.micro": { + "version": "2.1.0", + "resolved": "https://registry.npmmirror.com/uc.micro/-/uc.micro-2.1.0.tgz", + "integrity": "sha512-ARDJmphmdvUk6Glw7y9DQ2bFkKBHwQHLi2lsaH6PPmz/Ka9sFOBsBluozhDltWmnv9u/cF6Rt87znRTPV+yp/A==", + "license": "MIT" + }, + "node_modules/ufo": { + "version": "1.6.4", + "resolved": "https://registry.npmmirror.com/ufo/-/ufo-1.6.4.tgz", + "integrity": "sha512-JFNbkD1Svwe0KvGi8GOeLcP4kAWQ609twvCdcHxq1oSL8svv39ZuSvajcD8B+5D0eL4+s1Is2D/O6KN3qcTeRA==", + "dev": true, + "license": "MIT" + }, + "node_modules/unimport": { + "version": "5.7.0", + "resolved": "https://registry.npmmirror.com/unimport/-/unimport-5.7.0.tgz", + "integrity": "sha512-njnL6sp8lEA8QQbZrt+52p/g4X0rw3bnGGmUcJnt1jeG8+iiqO779aGz0PirCtydAIVcuTBRlJ52F0u46z309Q==", + "dev": true, + "license": "MIT", + "dependencies": { + "acorn": "^8.16.0", + "escape-string-regexp": "^5.0.0", + "estree-walker": "^3.0.3", + "local-pkg": "^1.1.2", + "magic-string": "^0.30.21", + "mlly": "^1.8.0", + "pathe": "^2.0.3", + "picomatch": "^4.0.3", + "pkg-types": "^2.3.0", + "scule": "^1.3.0", + "strip-literal": "^3.1.0", + "tinyglobby": "^0.2.15", + "unplugin": "^2.3.11", + "unplugin-utils": "^0.3.1" + }, + "engines": { + "node": ">=18.12.0" + } + }, + "node_modules/unplugin": { + "version": "2.3.11", + "resolved": "https://registry.npmmirror.com/unplugin/-/unplugin-2.3.11.tgz", + "integrity": "sha512-5uKD0nqiYVzlmCRs01Fhs2BdkEgBS3SAVP6ndrBsuK42iC2+JHyxM05Rm9G8+5mkmRtzMZGY8Ct5+mliZxU/Ww==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jridgewell/remapping": "^2.3.5", + "acorn": "^8.15.0", + "picomatch": "^4.0.3", + "webpack-virtual-modules": "^0.6.2" + }, + "engines": { + "node": ">=18.12.0" + } + }, + "node_modules/unplugin-auto-import": { + "version": "21.0.0", + "resolved": "https://registry.npmmirror.com/unplugin-auto-import/-/unplugin-auto-import-21.0.0.tgz", + "integrity": "sha512-vWuC8SwqJmxZFYwPojhOhOXDb5xFhNNcEVb9K/RFkyk/3VnfaOjzitWN7v+8DEKpMjSsY2AEGXNgt6I0yQrhRQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "local-pkg": "^1.1.2", + "magic-string": "^0.30.21", + "picomatch": "^4.0.3", + "unimport": "^5.6.0", + "unplugin": "^2.3.11", + "unplugin-utils": "^0.3.1" + }, + "engines": { + "node": ">=20.19.0" + }, + "funding": { + "url": "https://github.com/sponsors/antfu" + }, + "peerDependencies": { + "@nuxt/kit": "^4.0.0", + "@vueuse/core": "*" + }, + "peerDependenciesMeta": { + "@nuxt/kit": { + "optional": true + }, + "@vueuse/core": { + "optional": true + } + } + }, + "node_modules/unplugin-utils": { + "version": "0.3.1", + "resolved": "https://registry.npmmirror.com/unplugin-utils/-/unplugin-utils-0.3.1.tgz", + "integrity": "sha512-5lWVjgi6vuHhJ526bI4nlCOmkCIF3nnfXkCMDeMJrtdvxTs6ZFCM8oNufGTsDbKv/tJ/xj8RpvXjRuPBZJuJog==", + "dev": true, + "license": "MIT", + "dependencies": { + "pathe": "^2.0.3", + "picomatch": "^4.0.3" + }, + "engines": { + "node": ">=20.19.0" + }, + "funding": { + "url": "https://github.com/sponsors/sxzz" + } + }, + "node_modules/unplugin-vue-components": { + "version": "32.1.0", + "resolved": "https://registry.npmmirror.com/unplugin-vue-components/-/unplugin-vue-components-32.1.0.tgz", + "integrity": "sha512-YiUkSxuRjab18XFOrX5VsIxXzccrfmHVGsGeJgSgklb829DQmCy9E4vvDUE4tuvZZdxyFJZX0Oc4TPnnxiiMyg==", + "dev": true, + "license": "MIT", + "dependencies": { + "chokidar": "^5.0.0", + "local-pkg": "^1.2.0", + "magic-string": "^0.30.21", + "mlly": "^1.8.2", + "obug": "^2.1.1", + "picomatch": "^4.0.4", + "tinyglobby": "^0.2.16", + "unplugin": "^3.0.0", + "unplugin-utils": "^0.3.1" + }, + "engines": { + "node": ">=20.19.0" + }, + "funding": { + "url": "https://github.com/sponsors/antfu" + }, + "peerDependencies": { + "@nuxt/kit": "^3.2.2 || ^4.0.0", + "vue": "^3.0.0" + }, + "peerDependenciesMeta": { + "@nuxt/kit": { + "optional": true + } + } + }, + "node_modules/unplugin-vue-components/node_modules/unplugin": { + "version": "3.0.0", + "resolved": "https://registry.npmmirror.com/unplugin/-/unplugin-3.0.0.tgz", + "integrity": "sha512-0Mqk3AT2TZCXWKdcoaufeXNukv2mTrEZExeXlHIOZXdqYoHHr4n51pymnwV8x2BOVxwXbK2HLlI7usrqMpycdg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jridgewell/remapping": "^2.3.5", + "picomatch": "^4.0.3", + "webpack-virtual-modules": "^0.6.2" + }, + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/vite": { + "version": "5.4.21", + "resolved": "https://registry.npmmirror.com/vite/-/vite-5.4.21.tgz", + "integrity": "sha512-o5a9xKjbtuhY6Bi5S3+HvbRERmouabWbyUcpXXUA1u+GNUKoROi9byOJ8M0nHbHYHkYICiMlqxkg1KkYmm25Sw==", + "dev": true, + "license": "MIT", + "dependencies": { + "esbuild": "^0.21.3", + "postcss": "^8.4.43", + "rollup": "^4.20.0" + }, + "bin": { + "vite": "bin/vite.js" + }, + "engines": { + "node": "^18.0.0 || >=20.0.0" + }, + "funding": { + "url": "https://github.com/vitejs/vite?sponsor=1" + }, + "optionalDependencies": { + "fsevents": "~2.3.3" + }, + "peerDependencies": { + "@types/node": "^18.0.0 || >=20.0.0", + "less": "*", + "lightningcss": "^1.21.0", + "sass": "*", + "sass-embedded": "*", + "stylus": "*", + "sugarss": "*", + "terser": "^5.4.0" + }, + "peerDependenciesMeta": { + "@types/node": { + "optional": true + }, + "less": { + "optional": true + }, + "lightningcss": { + "optional": true + }, + "sass": { + "optional": true + }, + "sass-embedded": { + "optional": true + }, + "stylus": { + "optional": true + }, + "sugarss": { + "optional": true + }, + "terser": { + "optional": true + } + } + }, + "node_modules/vscode-uri": { + "version": "3.1.0", + "resolved": "https://registry.npmmirror.com/vscode-uri/-/vscode-uri-3.1.0.tgz", + "integrity": "sha512-/BpdSx+yCQGnCvecbyXdxHDkuk55/G3xwnC0GqY4gmQ3j+A+g8kzzgB4Nk/SINjqn6+waqw3EgbVF2QKExkRxQ==", + "dev": true, + "license": "MIT" + }, + "node_modules/vue": { + "version": "3.5.38", + "resolved": "https://registry.npmmirror.com/vue/-/vue-3.5.38.tgz", + "integrity": "sha512-vAMKHfImQlYSy0C+PBue4s3ERZ2xGKfgZg5GXAsLInq1dyh2H78ILVP5sK0KPFPVW4kv+OGCIvBEondcjpZp7A==", + "license": "MIT", + "dependencies": { + "@vue/compiler-dom": "3.5.38", + "@vue/compiler-sfc": "3.5.38", + "@vue/runtime-dom": "3.5.38", + "@vue/server-renderer": "3.5.38", + "@vue/shared": "3.5.38" + }, + "peerDependencies": { + "typescript": "*" + }, + "peerDependenciesMeta": { + "typescript": { + "optional": true + } + } + }, + "node_modules/vue-demi": { + "version": "0.14.10", + "resolved": "https://registry.npmmirror.com/vue-demi/-/vue-demi-0.14.10.tgz", + "integrity": "sha512-nMZBOwuzabUO0nLgIcc6rycZEebF6eeUfaiQx9+WSk8e29IbLvPU9feI6tqW4kTo3hvoYAJkMh8n8D0fuISphg==", + "hasInstallScript": true, + "license": "MIT", + "bin": { + "vue-demi-fix": "bin/vue-demi-fix.js", + "vue-demi-switch": "bin/vue-demi-switch.js" + }, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/antfu" + }, + "peerDependencies": { + "@vue/composition-api": "^1.0.0-rc.1", + "vue": "^3.0.0-0 || ^2.6.0" + }, + "peerDependenciesMeta": { + "@vue/composition-api": { + "optional": true + } + } + }, + "node_modules/vue-router": { + "version": "4.6.4", + "resolved": "https://registry.npmmirror.com/vue-router/-/vue-router-4.6.4.tgz", + "integrity": "sha512-Hz9q5sa33Yhduglwz6g9skT8OBPii+4bFn88w6J+J4MfEo4KRRpmiNG/hHHkdbRFlLBOqxN8y8gf2Fb0MTUgVg==", + "license": "MIT", + "dependencies": { + "@vue/devtools-api": "^6.6.4" + }, + "funding": { + "url": "https://github.com/sponsors/posva" + }, + "peerDependencies": { + "vue": "^3.5.0" + } + }, + "node_modules/vue-tsc": { + "version": "2.2.12", + "resolved": "https://registry.npmmirror.com/vue-tsc/-/vue-tsc-2.2.12.tgz", + "integrity": "sha512-P7OP77b2h/Pmk+lZdJ0YWs+5tJ6J2+uOQPo7tlBnY44QqQSPYvS0qVT4wqDJgwrZaLe47etJLLQRFia71GYITw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@volar/typescript": "2.4.15", + "@vue/language-core": "2.2.12" + }, + "bin": { + "vue-tsc": "bin/vue-tsc.js" + }, + "peerDependencies": { + "typescript": ">=5.0.0" + } + }, + "node_modules/vue-types": { + "version": "3.0.2", + "resolved": "https://registry.npmmirror.com/vue-types/-/vue-types-3.0.2.tgz", + "integrity": "sha512-IwUC0Aq2zwaXqy74h4WCvFCUtoV0iSWr0snWnE9TnU18S66GAQyqQbRf2qfJtUuiFsBf6qp0MEwdonlwznlcrw==", + "license": "MIT", + "dependencies": { + "is-plain-object": "3.0.1" + }, + "engines": { + "node": ">=10.15.0" + }, + "peerDependencies": { + "vue": "^3.0.0" + } + }, + "node_modules/warning": { + "version": "4.0.3", + "resolved": "https://registry.npmmirror.com/warning/-/warning-4.0.3.tgz", + "integrity": "sha512-rpJyN222KWIvHJ/F53XSZv0Zl/accqHR8et1kpaMTD/fLCRxtV8iX8czMzY7sVZupTI3zcUTg8eycS2kNF9l6w==", + "license": "MIT", + "dependencies": { + "loose-envify": "^1.0.0" + } + }, + "node_modules/webpack-virtual-modules": { + "version": "0.6.2", + "resolved": "https://registry.npmmirror.com/webpack-virtual-modules/-/webpack-virtual-modules-0.6.2.tgz", + "integrity": "sha512-66/V2i5hQanC51vBQKPH4aI8NMAcBW59FVBs+rC7eGHupMyfn34q7rZIE+ETlJ+XTevqfUhVVBgSUNSW2flEUQ==", + "dev": true, + "license": "MIT" + }, + "node_modules/zrender": { + "version": "6.1.0", + "resolved": "https://registry.npmmirror.com/zrender/-/zrender-6.1.0.tgz", + "integrity": "sha512-oEGMDB6pOP2S6OwRR4PdVv610zrjnA3Bh+JnSG12fYJlBKjtNAoEb5fSUoCOOINlH96I2fU38/A2UpRKs67xYQ==", + "dev": true, + "license": "BSD-3-Clause", + "dependencies": { + "tslib": "2.3.0" + } + } + } +} diff --git a/src/agentkit/server/frontend/package.json b/src/agentkit/server/frontend/package.json index b6e7c17..c17e88a 100644 --- a/src/agentkit/server/frontend/package.json +++ b/src/agentkit/server/frontend/package.json @@ -14,11 +14,13 @@ "@vue-flow/controls": "^1.1.0", "@vue-flow/core": "^1.41.0", "ant-design-vue": "^4.2.0", + "markdown-it": "^14.2.0", "pinia": "^2.2.0", "vue": "^3.5.0", "vue-router": "^4.4.0" }, "devDependencies": { + "@types/markdown-it": "^14.1.2", "@vitejs/plugin-vue": "^5.1.0", "echarts": "^6.1.0", "typescript": "^5.6.0", diff --git a/src/agentkit/server/frontend/src/components/chat/ChatInput.vue b/src/agentkit/server/frontend/src/components/chat/ChatInput.vue index 0f6b5a8..f0fa4b5 100644 --- a/src/agentkit/server/frontend/src/components/chat/ChatInput.vue +++ b/src/agentkit/server/frontend/src/components/chat/ChatInput.vue @@ -1,33 +1,51 @@ diff --git a/src/agentkit/server/frontend/src/components/chat/ChatSidebar.vue b/src/agentkit/server/frontend/src/components/chat/ChatSidebar.vue index 030b5ef..ce6d958 100644 --- a/src/agentkit/server/frontend/src/components/chat/ChatSidebar.vue +++ b/src/agentkit/server/frontend/src/components/chat/ChatSidebar.vue @@ -1,31 +1,38 @@ + + diff --git a/src/agentkit/server/frontend/src/components/chat/ToolCallIndicator.vue b/src/agentkit/server/frontend/src/components/chat/ToolCallIndicator.vue new file mode 100644 index 0000000..fa49469 --- /dev/null +++ b/src/agentkit/server/frontend/src/components/chat/ToolCallIndicator.vue @@ -0,0 +1,79 @@ + + + + + diff --git a/src/agentkit/server/frontend/src/views/ChatView.vue b/src/agentkit/server/frontend/src/views/ChatView.vue index 11e34c4..3203ce7 100644 --- a/src/agentkit/server/frontend/src/views/ChatView.vue +++ b/src/agentkit/server/frontend/src/views/ChatView.vue @@ -119,7 +119,7 @@ function handleSend(message: string): void { display: flex; flex-direction: column; overflow: hidden; - background: #f5f5f5; + background: var(--bg-secondary); } .chat-view__empty { @@ -132,7 +132,7 @@ function handleSend(message: string): void { .chat-view__messages { flex: 1; overflow-y: auto; - padding: 16px 0; + padding: var(--space-4) 0; } .chat-view__welcome { @@ -141,45 +141,48 @@ function handleSend(message: string): void { align-items: center; justify-content: center; height: 100%; - color: #999999; + color: var(--text-placeholder); } .chat-view__welcome-icon { font-size: 48px; - color: #1677ff; - margin-bottom: 16px; + background: var(--gradient-brand); + -webkit-background-clip: text; + -webkit-text-fill-color: transparent; + background-clip: text; + margin-bottom: var(--space-4); } .chat-view__welcome h2 { - color: #333333; - font-size: 24px; - margin-bottom: 8px; + color: var(--text-primary); + font-size: var(--font-xl); + margin-bottom: var(--space-2); } .chat-view__welcome p { - font-size: 14px; - color: #999999; + font-size: var(--font-base); + color: var(--text-tertiary); } .chat-view__steps { - padding: 8px 16px; - margin: 0 16px; - background: #ffffff; - border-radius: 8px; - border: 1px solid #f0f0f0; + padding: var(--space-2) var(--space-4); + margin: 0 var(--space-4); + background: var(--bg-primary); + border-radius: var(--radius-lg); + border: 1px solid var(--border-color); } .chat-view__step { display: flex; align-items: center; - gap: 6px; + gap: var(--space-1); padding: 2px 0; - font-size: 13px; - color: #666666; + font-size: var(--font-sm); + color: var(--text-secondary); } .chat-view__step-icon { font-size: 10px; - color: #1677ff; + color: var(--color-primary); } From 79a400afe82df335fad4955fad34e3ffb15bd9ea Mon Sep 17 00:00:00 2001 From: chiguyong Date: Sat, 13 Jun 2026 02:40:14 +0800 Subject: [PATCH 04/12] feat(gui): add code/preview panel with diff viewer and file tree (U4) - Create CodeDiffViewer.vue with line-level diff highlighting - Create FileTree.vue with status badges (added/modified/deleted) - Update WorkflowView.vue: replace hardcoded colors with Design Tokens - Update KnowledgeBaseView.vue: replace hardcoded colors with Design Tokens --- .../src/components/code/CodeDiffViewer.vue | 146 ++++++++++++++++ .../frontend/src/components/code/FileTree.vue | 162 ++++++++++++++++++ .../frontend/src/views/KnowledgeBaseView.vue | 4 +- .../frontend/src/views/WorkflowView.vue | 63 ++++--- 4 files changed, 341 insertions(+), 34 deletions(-) create mode 100644 src/agentkit/server/frontend/src/components/code/CodeDiffViewer.vue create mode 100644 src/agentkit/server/frontend/src/components/code/FileTree.vue diff --git a/src/agentkit/server/frontend/src/components/code/CodeDiffViewer.vue b/src/agentkit/server/frontend/src/components/code/CodeDiffViewer.vue new file mode 100644 index 0000000..6f8dc16 --- /dev/null +++ b/src/agentkit/server/frontend/src/components/code/CodeDiffViewer.vue @@ -0,0 +1,146 @@ + + + + + diff --git a/src/agentkit/server/frontend/src/components/code/FileTree.vue b/src/agentkit/server/frontend/src/components/code/FileTree.vue new file mode 100644 index 0000000..bdc4890 --- /dev/null +++ b/src/agentkit/server/frontend/src/components/code/FileTree.vue @@ -0,0 +1,162 @@ + + + + + diff --git a/src/agentkit/server/frontend/src/views/KnowledgeBaseView.vue b/src/agentkit/server/frontend/src/views/KnowledgeBaseView.vue index 2af8457..4c5ab84 100644 --- a/src/agentkit/server/frontend/src/views/KnowledgeBaseView.vue +++ b/src/agentkit/server/frontend/src/views/KnowledgeBaseView.vue @@ -32,8 +32,8 @@ onMounted(() => { diff --git a/src/agentkit/server/frontend/src/views/WorkflowView.vue b/src/agentkit/server/frontend/src/views/WorkflowView.vue index 6d0abee..02b735b 100644 --- a/src/agentkit/server/frontend/src/views/WorkflowView.vue +++ b/src/agentkit/server/frontend/src/views/WorkflowView.vue @@ -315,55 +315,54 @@ function handleBack() { display: flex; flex-direction: column; height: 100%; - padding: 16px; + padding: var(--space-4); } .list-header { display: flex; align-items: center; justify-content: space-between; - margin-bottom: 16px; + margin-bottom: var(--space-4); } .list-header h3 { margin: 0; - font-size: 16px; + font-size: var(--font-md); } .list-body { display: flex; flex-direction: column; - gap: 8px; + gap: var(--space-2); } .workflow-item { display: flex; align-items: center; - padding: 12px 16px; - background: #fff; - border: 1px solid #e8e8e8; - border-radius: 8px; + padding: var(--space-3) var(--space-4); + background: var(--bg-primary); + border: 1px solid var(--border-color); + border-radius: var(--radius-lg); cursor: pointer; - transition: all 0.2s; - gap: 12px; + transition: all var(--transition-fast); + gap: var(--space-3); } .workflow-item:hover { - border-color: #1890ff; - box-shadow: 0 2px 8px rgba(24, 144, 255, 0.12); + border-color: var(--color-primary); + box-shadow: var(--shadow-md); } .item-name { - font-weight: 500; - font-size: 14px; - flex: 1; + font-weight: var(--font-weight-medium); + font-size: var(--font-base); } .item-meta { display: flex; - gap: 8px; - font-size: 12px; - color: #999; + gap: var(--space-2); + font-size: var(--font-xs); + color: var(--text-tertiary); } .editor-main { @@ -382,8 +381,8 @@ function handleBack() { } .execution-history { - border-top: 1px solid #f0f0f0; - background: #fafafa; + border-top: 1px solid var(--border-color); + background: var(--bg-secondary); flex-shrink: 0; } @@ -391,20 +390,20 @@ function handleBack() { display: flex; align-items: center; justify-content: space-between; - padding: 8px 16px; + padding: var(--space-2) var(--space-4); cursor: pointer; - font-size: 13px; - font-weight: 500; - color: #666; + font-size: var(--font-sm); + font-weight: var(--font-weight-medium); + color: var(--text-secondary); user-select: none; } .history-header:hover { - background: #f0f0f0; + background: var(--bg-tertiary); } .history-body { - padding: 0 16px 8px; + padding: 0 var(--space-4) var(--space-2); } .back-bar { @@ -414,16 +413,16 @@ function handleBack() { right: 300px; display: flex; align-items: center; - gap: 8px; - padding: 8px 12px; + gap: var(--space-2); + padding: var(--space-2) var(--space-3); background: rgba(255, 255, 255, 0.95); - border-bottom: 1px solid #f0f0f0; + border-bottom: 1px solid var(--border-color); z-index: 20; } .workflow-name { - font-weight: 600; - font-size: 14px; - color: #333; + font-weight: var(--font-weight-semibold); + font-size: var(--font-base); + color: var(--text-primary); } From 3dc5c68135d4196676d396b75f5562155f1d2845 Mon Sep 17 00:00:00 2001 From: chiguyong Date: Sat, 13 Jun 2026 02:41:46 +0800 Subject: [PATCH 05/12] feat(gui): refactor terminal panel with One Dark Pro theme and Ant Design Modal (U5) - TerminalView: replace native HTML confirmation with Ant Design Modal, make command history sidebar collapsible (default collapsed) - TerminalEmulator: use One Dark Pro CSS variables for ANSI colors, replace all hardcoded colors with Design Tokens - CommandHistory: replace all hardcoded colors with Design Tokens --- .../components/terminal/CommandHistory.vue | 59 +++-- .../components/terminal/TerminalEmulator.vue | 54 +++-- .../frontend/src/views/TerminalView.vue | 204 +++++++----------- 3 files changed, 139 insertions(+), 178 deletions(-) diff --git a/src/agentkit/server/frontend/src/components/terminal/CommandHistory.vue b/src/agentkit/server/frontend/src/components/terminal/CommandHistory.vue index 4b83816..2a3ef10 100644 --- a/src/agentkit/server/frontend/src/components/terminal/CommandHistory.vue +++ b/src/agentkit/server/frontend/src/components/terminal/CommandHistory.vue @@ -15,8 +15,7 @@ >
{{ record.exit_code === 0 ? '✓' : '✗' }} @@ -37,6 +36,7 @@ @@ -95,38 +97,38 @@ function ansiToHtml(text: string): string { display: flex; flex-direction: column; height: 100%; - background: #1e1e1e; - border-radius: 6px; + background: var(--code-bg); + border-radius: var(--radius-md); overflow: hidden; - font-family: 'Menlo', 'Monaco', 'Courier New', monospace; + font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', Menlo, Consolas, monospace; } .terminal-emulator__output { flex: 1; overflow-y: auto; - padding: 12px; - font-size: 13px; - line-height: 1.5; - color: #d4d4d4; + padding: var(--space-3); + font-size: var(--font-sm); + line-height: var(--leading-normal); + color: var(--code-fg); } .terminal-emulator__welcome { - color: #888; + color: var(--code-comment); font-style: italic; } .terminal-emulator__input { display: flex; align-items: center; - padding: 8px 12px; - border-top: 1px solid #333; - background: #252526; + padding: var(--space-2) var(--space-3); + border-top: 1px solid rgba(255, 255, 255, 0.1); + background: rgba(0, 0, 0, 0.2); } .terminal-emulator__prompt { - color: #4caf50; - margin-right: 8px; - font-size: 13px; + color: var(--code-string); + margin-right: var(--space-2); + font-size: var(--font-sm); white-space: nowrap; } @@ -135,17 +137,25 @@ function ansiToHtml(text: string): string { background: transparent; border: none; outline: none; - color: #d4d4d4; + color: var(--code-fg); font-family: inherit; - font-size: 13px; + font-size: var(--font-sm); } .terminal-emulator__input-field::placeholder { - color: #555; + color: var(--code-comment); } .terminal-line { white-space: pre-wrap; word-break: break-all; } + +/* ANSI color classes using One Dark Pro palette */ +.terminal-line :deep(.ansi-green) { color: var(--code-string); } +.terminal-line :deep(.ansi-yellow) { color: var(--code-number); } +.terminal-line :deep(.ansi-red) { color: var(--code-variable); } +.terminal-line :deep(.ansi-cyan) { color: var(--code-function); } +.terminal-line :deep(.ansi-blue) { color: var(--code-function); } +.terminal-line :deep(.ansi-magenta) { color: var(--code-keyword); } diff --git a/src/agentkit/server/frontend/src/views/TerminalView.vue b/src/agentkit/server/frontend/src/views/TerminalView.vue index fd40ff6..dcead2b 100644 --- a/src/agentkit/server/frontend/src/views/TerminalView.vue +++ b/src/agentkit/server/frontend/src/views/TerminalView.vue @@ -2,59 +2,56 @@
- -
-
-
- - 命令确认 -
-
- {{ terminalStore.pendingConfirmation.command }} -
-
- {{ terminalStore.pendingConfirmation.reason }} -
-
- -
- - -
-
-
+
+
+ +
+
-
- -
+ + +
+
+ {{ terminalStore.pendingConfirmation?.command }} +
+
+ {{ terminalStore.pendingConfirmation?.reason }} +
+ + 添加到会话白名单 + +
+
From 4d051c2f25a21f5a55aa99c4de1657473b78a398 Mon Sep 17 00:00:00 2001 From: chiguyong Date: Sat, 13 Jun 2026 02:47:51 +0800 Subject: [PATCH 07/12] feat(gui): add transitions, responsive breakpoints and bug fixes (U7) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Add transitions.css with fade, slide, collapse, scale, stagger-list, skeleton-pulse, pulse-dot animations - Add responsive.css with breakpoints (≥1440px full, 1280-1439px compact, <1280px prompt) - Add small-screen prompt in AgentLayout with DesktopOutlined icon - Fix SPA serving in app.py for Vue build output - Fix TypeScript errors in kb.ts, skills.ts, workflow.ts, FlowCanvas.vue, SideNav.vue - Fix unused imports in ExperienceTimeline, PathOptimizerPanel, PitfallPanel --- src/agentkit/server/app.py | 24 + src/agentkit/server/frontend/src/api/kb.ts | 1 + .../server/frontend/src/api/skills.ts | 30 + .../evolution/ExperienceTimeline.vue | 4 +- .../evolution/PathOptimizerPanel.vue | 2 +- .../src/components/evolution/PitfallPanel.vue | 2 +- .../src/components/layout/AgentLayout.vue | 6 + .../src/components/layout/SideNav.vue | 4 +- .../src/components/workflow/FlowCanvas.vue | 22 +- .../server/frontend/src/stores/workflow.ts | 25 +- .../server/frontend/src/styles/index.ts | 2 + .../server/frontend/src/styles/responsive.css | 89 ++ .../frontend/src/styles/transitions.css | 132 +++ src/agentkit/server/static/index.html | 917 +----------------- 14 files changed, 323 insertions(+), 937 deletions(-) create mode 100644 src/agentkit/server/frontend/src/styles/responsive.css create mode 100644 src/agentkit/server/frontend/src/styles/transitions.css diff --git a/src/agentkit/server/app.py b/src/agentkit/server/app.py index eabfb14..133131b 100644 --- a/src/agentkit/server/app.py +++ b/src/agentkit/server/app.py @@ -680,6 +680,7 @@ def create_app( if gui_mode: from pathlib import Path as _Path from fastapi.responses import HTMLResponse, FileResponse + from fastapi.staticfiles import StaticFiles _static_dir = _Path(__file__).parent / "static" @@ -691,4 +692,27 @@ def create_app( return FileResponse(str(index_path)) return HTMLResponse("

AgentKit GUI not found

", status_code=404) + # SPA fallback: serve index.html for all non-API, non-static routes + @app.get("/{path:path}", response_class=HTMLResponse, include_in_schema=False) + async def spa_fallback(path: str): + """Serve index.html for SPA client-side routing.""" + # Don't intercept API routes + if path.startswith("api/"): + return HTMLResponse("

Not Found

", status_code=404) + # Try to serve a real static file first + file_path = _static_dir / path + if file_path.is_file(): + return FileResponse(str(file_path)) + # Fallback to index.html for SPA routing + index_path = _static_dir / "index.html" + if index_path.exists(): + return FileResponse(str(index_path)) + return HTMLResponse("

Not Found

", status_code=404) + + # Mount static assets last (js, css, images, etc.) + # mount() is checked after route matching, so API routes take priority + assets_dir = _static_dir / "assets" + if assets_dir.exists(): + app.mount("/assets", StaticFiles(directory=str(assets_dir)), name="static-assets") + return app diff --git a/src/agentkit/server/frontend/src/api/kb.ts b/src/agentkit/server/frontend/src/api/kb.ts index 82319d4..1b70373 100644 --- a/src/agentkit/server/frontend/src/api/kb.ts +++ b/src/agentkit/server/frontend/src/api/kb.ts @@ -11,6 +11,7 @@ export interface IKbSource { status: string document_count: number last_synced: string | null + config?: Record } export interface IAddSourceRequest { diff --git a/src/agentkit/server/frontend/src/api/skills.ts b/src/agentkit/server/frontend/src/api/skills.ts index d34794b..d3bdbbb 100644 --- a/src/agentkit/server/frontend/src/api/skills.ts +++ b/src/agentkit/server/frontend/src/api/skills.ts @@ -71,6 +71,36 @@ class SkillsApiClient extends BaseApiClient { return this.request<{ capabilities: ICapabilityInfo[] }>('/capabilities') } + /** Install a skill by name (searches GitHub) or from a source URL */ + async installSkill( + name: string, + source?: string + ): Promise<{ status: string; name: string; path: string }> { + // The install endpoint is on /api/v1/skills/install, not under skill-management + const url = `/api/v1/skills/install` + const resp = await fetch(url, { + method: 'POST', + headers: { 'Content-Type': 'application/json' }, + body: JSON.stringify({ name, source }), + }) + if (!resp.ok) { + const err = await resp.json().catch(() => ({ detail: resp.statusText })) + throw new Error(err.detail ?? resp.statusText) + } + return resp.json() + } + + /** Uninstall a skill */ + async uninstallSkill(skillName: string): Promise<{ status: string; name: string }> { + const url = `/api/v1/skills/${encodeURIComponent(skillName)}` + const resp = await fetch(url, { method: 'DELETE' }) + if (!resp.ok) { + const err = await resp.json().catch(() => ({ detail: resp.statusText })) + throw new Error(err.detail ?? resp.statusText) + } + return resp.json() + } + /** Reload a skill */ async reloadSkill( skillName: string diff --git a/src/agentkit/server/frontend/src/components/evolution/ExperienceTimeline.vue b/src/agentkit/server/frontend/src/components/evolution/ExperienceTimeline.vue index 6139cec..b1270cc 100644 --- a/src/agentkit/server/frontend/src/components/evolution/ExperienceTimeline.vue +++ b/src/agentkit/server/frontend/src/components/evolution/ExperienceTimeline.vue @@ -61,11 +61,11 @@ diff --git a/src/agentkit/server/frontend/src/components/workflow/FlowCanvas.vue b/src/agentkit/server/frontend/src/components/workflow/FlowCanvas.vue index 5d954c9..6a758d4 100644 --- a/src/agentkit/server/frontend/src/components/workflow/FlowCanvas.vue +++ b/src/agentkit/server/frontend/src/components/workflow/FlowCanvas.vue @@ -21,8 +21,8 @@
() @@ -69,15 +67,13 @@ const emit = defineEmits<{ save: [] execute: [] clear: [] - 'update:nodes': [nodes: any[]] - 'update:edges': [edges: any[]] 'node-select': [nodeId: string | null] 'node-drop': [nodeType: string, position: { x: number; y: number }] }>() const canvasRef = ref() -const nodeTypes = { +const nodeTypes: Record = { skill: markRaw(SkillNode), condition: markRaw(ConditionNode), approval: markRaw(ApprovalNode), @@ -164,17 +160,17 @@ onUnmounted(() => { function onValidate() { // Basic validation - if (props.nodes.length === 0) { + if (store.flowNodes.length === 0) { message.warning('工作流为空,请添加节点') return } // Check for nodes without connections (except the first) - const connectedSources = new Set(props.edges.map((e: any) => e.source)) - const connectedTargets = new Set(props.edges.map((e: any) => e.target)) + const connectedSources = new Set(store.flowEdges.map((e: any) => e.source)) + const connectedTargets = new Set(store.flowEdges.map((e: any) => e.target)) const allConnected = new Set([...connectedSources, ...connectedTargets]) - const orphanNodes = props.nodes.filter((n: any) => !allConnected.has(n.id)) - if (orphanNodes.length > 0 && props.nodes.length > 1) { + const orphanNodes = store.flowNodes.filter((n: any) => !allConnected.has(n.id)) + if (orphanNodes.length > 0 && store.flowNodes.length > 1) { message.warning(`存在未连接的节点: ${orphanNodes.map((n: any) => n.data?.label).join(', ')}`) return } diff --git a/src/agentkit/server/frontend/src/stores/workflow.ts b/src/agentkit/server/frontend/src/stores/workflow.ts index 55a821a..16e5d64 100644 --- a/src/agentkit/server/frontend/src/stores/workflow.ts +++ b/src/agentkit/server/frontend/src/stores/workflow.ts @@ -30,9 +30,9 @@ export const useWorkflowStore = defineStore('workflow', () => { const isLoading = ref(false) const error = ref(null) - // Vue Flow state - const flowNodes = ref[]>([]) - const flowEdges = ref([]) + // Vue Flow state — use any[] to avoid @vue-flow/core deep type recursion with Vue 3.5+ + const flowNodes = ref([]) + const flowEdges = ref([]) const selectedNodeId = ref(null) // Undo/Redo state @@ -51,9 +51,9 @@ export const useWorkflowStore = defineStore('workflow', () => { const executionHistoryTotal = ref(0) // --- Getters --- - const selectedNode = computed | null>(() => { + const selectedNode = computed(() => { if (!selectedNodeId.value) return null - return flowNodes.value.find((n) => n.id === selectedNodeId.value) || null + return flowNodes.value.find((n: any) => n.id === selectedNodeId.value) || null }) const selectedNodeData = computed(() => { @@ -65,12 +65,12 @@ export const useWorkflowStore = defineStore('workflow', () => { // --- Internal mutation methods (no command tracking) --- - function _addNodeDirect(node: Node): void { - flowNodes.value = [...flowNodes.value, node] + function _addNodeDirect(node: any): void { + flowNodes.value.push(node) } - function _removeNodeDirect(nodeId: string): { node: Node; edges: Edge[] } | null { - const node = flowNodes.value.find((n) => n.id === nodeId) + function _removeNodeDirect(nodeId: string): { node: any; edges: any[] } | null { + const node = flowNodes.value.find((n: any) => n.id === nodeId) if (!node) return null const removedEdges = flowEdges.value.filter( (e) => e.source === nodeId || e.target === nodeId @@ -97,11 +97,12 @@ export const useWorkflowStore = defineStore('workflow', () => { } function _updateNodeDataDirect(nodeId: string, data: Partial): void { - const index = flowNodes.value.findIndex((n) => n.id === nodeId) + const index = flowNodes.value.findIndex((n: any) => n.id === nodeId) if (index !== -1) { + const existing = flowNodes.value[index] flowNodes.value[index] = { - ...flowNodes.value[index], - data: { ...flowNodes.value[index].data, ...data }, + ...existing, + data: { ...existing.data, ...data }, } } } diff --git a/src/agentkit/server/frontend/src/styles/index.ts b/src/agentkit/server/frontend/src/styles/index.ts index b063da7..ca09a45 100644 --- a/src/agentkit/server/frontend/src/styles/index.ts +++ b/src/agentkit/server/frontend/src/styles/index.ts @@ -5,4 +5,6 @@ */ import './tokens.css' +import './transitions.css' +import './responsive.css' export { themeConfig } from './theme' diff --git a/src/agentkit/server/frontend/src/styles/responsive.css b/src/agentkit/server/frontend/src/styles/responsive.css new file mode 100644 index 0000000..be282f2 --- /dev/null +++ b/src/agentkit/server/frontend/src/styles/responsive.css @@ -0,0 +1,89 @@ +/** + * Fischer AgentKit Responsive Breakpoints + * + * ≥1440px: Four quadrants fully visible + * 1280-1440px: Bottom-right quadrant auto-collapsed + * <1280px: Prompt to use larger screen + */ + +/* ── Full four-quadrant layout ── */ +@media (min-width: 1440px) { + .agent-layout__body { + display: flex; + } +} + +/* ── Compact: bottom-right quadrant collapsed ── */ +@media (min-width: 1280px) and (max-width: 1439px) { + .agent-layout__body { + display: flex; + } + + /* Auto-collapse bottom-right quadrant via CSS */ + .quadrant-panel--bottom-right-collapsed { + height: auto !important; + } +} + +/* ── Too small: show prompt ── */ +@media (max-width: 1279px) { + .agent-layout__body { + display: none; + } + + .agent-layout__small-screen { + display: flex; + } +} + +/* ── Default: hide small screen prompt ── */ +.agent-layout__small-screen { + display: none; + flex-direction: column; + align-items: center; + justify-content: center; + height: 100%; + gap: var(--space-4); + color: var(--text-tertiary); + text-align: center; + padding: var(--space-8); +} + +.agent-layout__small-screen h2 { + font-size: var(--font-lg); + color: var(--text-primary); +} + +.agent-layout__small-screen p { + font-size: var(--font-base); + max-width: 400px; +} + +/* ── Quadrant min-size for readability ── */ +.quadrant-panel { + min-width: var(--quadrant-min-size); + min-height: var(--quadrant-min-size); +} + +/* ── TopNav responsive ── */ +@media (max-width: 768px) { + .top-nav__center { + display: none; + } +} + +/* ── Chat sidebar responsive ── */ +@media (max-width: 1024px) { + .chat-sidebar:not(.chat-sidebar--collapsed) { + width: 200px; + } +} + +/* ── Print: hide interactive elements ── */ +@media print { + .top-nav, + .split-pane__handle, + .quadrant-panel__collapse-btn { + display: none !important; + } +} diff --git a/src/agentkit/server/frontend/src/styles/transitions.css b/src/agentkit/server/frontend/src/styles/transitions.css new file mode 100644 index 0000000..7d8eb20 --- /dev/null +++ b/src/agentkit/server/frontend/src/styles/transitions.css @@ -0,0 +1,132 @@ +/** + * Fischer AgentKit Transition Animations + * + * Unified transition classes for Vue components. + * All durations reference Design Token variables for consistency. + */ + +/* ── Fade ── */ +.fade-enter-active, +.fade-leave-active { + transition: opacity var(--transition-fast); +} + +.fade-enter-from, +.fade-leave-to { + opacity: 0; +} + +/* ── Slide Up ── */ +.slide-up-enter-active, +.slide-up-leave-active { + transition: transform var(--transition-normal), opacity var(--transition-fast); +} + +.slide-up-enter-from, +.slide-up-leave-to { + transform: translateY(8px); + opacity: 0; +} + +/* ── Slide Down ── */ +.slide-down-enter-active, +.slide-down-leave-active { + transition: transform var(--transition-normal), opacity var(--transition-fast); +} + +.slide-down-enter-from, +.slide-down-leave-to { + transform: translateY(-8px); + opacity: 0; +} + +/* ── Slide Right ── */ +.slide-right-enter-active, +.slide-right-leave-active { + transition: transform var(--transition-normal), opacity var(--transition-fast); +} + +.slide-right-enter-from, +.slide-right-leave-to { + transform: translateX(-8px); + opacity: 0; +} + +/* ── Collapse (height) ── */ +.collapse-enter-active, +.collapse-leave-active { + transition: max-height var(--transition-slow) ease, opacity var(--transition-fast); + overflow: hidden; +} + +.collapse-enter-from, +.collapse-leave-to { + max-height: 0; + opacity: 0; +} + +.collapse-enter-to, +.collapse-leave-from { + max-height: 500px; + opacity: 1; +} + +/* ── Scale ── */ +.scale-enter-active, +.scale-leave-active { + transition: transform var(--transition-fast), opacity var(--transition-fast); +} + +.scale-enter-from, +.scale-leave-to { + transform: scale(0.95); + opacity: 0; +} + +/* ── Stagger list items ── */ +.stagger-list-enter-active { + transition: transform var(--transition-normal), opacity var(--transition-fast); +} + +.stagger-list-leave-active { + transition: transform var(--transition-fast), opacity var(--transition-fast); +} + +.stagger-list-enter-from, +.stagger-list-leave-to { + transform: translateY(8px); + opacity: 0; +} + +.stagger-list-move { + transition: transform var(--transition-normal); +} + +/* ── Skeleton pulse ── */ +@keyframes skeleton-pulse { + 0% { opacity: 1; } + 50% { opacity: 0.4; } + 100% { opacity: 1; } +} + +.skeleton-loading { + animation: skeleton-pulse 1.5s ease-in-out infinite; + background: linear-gradient( + 90deg, + var(--bg-tertiary) 25%, + var(--border-color) 50%, + var(--bg-tertiary) 75% + ); + background-size: 200% 100%; + border-radius: var(--radius-sm); +} + +/* ── Pulse dot (running status) ── */ +@keyframes pulse-dot { + 0%, 100% { opacity: 1; } + 50% { opacity: 0.3; } +} + +.pulse-dot { + animation: pulse-dot 1.5s ease-in-out infinite; +} diff --git a/src/agentkit/server/static/index.html b/src/agentkit/server/static/index.html index cf42de2..1cfb518 100644 --- a/src/agentkit/server/static/index.html +++ b/src/agentkit/server/static/index.html @@ -1,909 +1,14 @@ - - - -AgentKit - - - - - - - - -
- - - - - -
-
- - AgentKit - 未连接 - -
-
-
-
🤖
-

欢迎使用 AgentKit

-

开始一段新对话,或从侧边栏选择已有会话。

-
-
-
-
- - -
-
-
- - - -
- - - + + + + + Fischer AgentKit + + + + +
+ From c60e0b9971bc36ea4f8651febdc5fb6e4a2bf877 Mon Sep 17 00:00:00 2001 From: chiguyong Date: Sat, 13 Jun 2026 03:01:13 +0800 Subject: [PATCH 08/12] refactor(gui): migrate hardcoded colors to Design Tokens across all components MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Migrate 15+ component files from Ant Design default colors to Design Token system - Workflow nodes (Skill/Parallel/Condition/Approval): #1890ff→var(--color-primary), #52c41a→var(--color-success), etc. - Evolution panels (Dashboard/Metrics/Usage/Timeline/Pitfall/PathOptimizer): all CSS colors→var() tokens - Skills components (SkillCard/SkillDetail): link/text colors→Design Tokens - KB component (SearchTest): bg/border/text colors→Design Tokens - JS/inline styles use new palette hex values (#7c3aed primary, #10b981 success, #f59e0b warning) - Provider brand colors (OpenAI/Anthropic/Azure/DeepSeek/Zhipu) preserved as-is - Remaining ~27 hex values are in JS/template contexts where CSS vars cannot be used --- .../evolution/DashboardOverview.vue | 26 ++-- .../components/evolution/ExperiencePanel.vue | 4 +- .../evolution/ExperienceTimeline.vue | 24 +-- .../src/components/evolution/MetricsChart.vue | 16 +- .../src/components/evolution/MetricsPanel.vue | 4 +- .../evolution/OptimizationPanel.vue | 4 +- .../evolution/PathOptimizerPanel.vue | 22 +-- .../src/components/evolution/PitfallPanel.vue | 10 +- .../evolution/PitfallRoutePanel.vue | 4 +- .../src/components/evolution/UsagePanel.vue | 18 +-- .../frontend/src/components/kb/SearchTest.vue | 10 +- .../src/components/layout/AppLayout.vue | 2 +- .../src/components/skills/SkillCard.vue | 10 +- .../src/components/skills/SkillDetail.vue | 4 +- .../src/components/workflow/ApprovalNode.vue | 36 ++--- .../src/components/workflow/ConditionNode.vue | 54 +++---- .../src/components/workflow/FlowCanvas.vue | 6 +- .../src/components/workflow/NodePalette.vue | 26 ++-- .../src/components/workflow/ParallelNode.vue | 46 +++--- .../src/components/workflow/PropertyPanel.vue | 8 +- .../src/components/workflow/SkillNode.vue | 46 +++--- .../static/assets/AgentLayout-4LUhAboc.css | 1 + .../static/assets/AgentLayout-BTmu8UQm.js | 1 + .../static/assets/AppLayout-ChVEHFqE.js | 1 + .../static/assets/AppLayout-D3vb9nEe.css | 1 + .../assets/AppstoreOutlined-BuRUmkq3.js | 1 + .../server/static/assets/ChatView-BQlsnIIs.js | 31 ++++ .../static/assets/ChatView-D21rRrKq.css | 1 + .../server/static/assets/Checkbox-C1b034xJ.js | 1 + .../static/assets/ComputerUseView-CNxrLPiM.js | 1 + .../assets/ComputerUseView-DLnWxFj5.css | 1 + .../static/assets/DeleteOutlined-BPP2kbR8.js | 105 +++++++++++++ .../static/assets/DesktopOutlined-CoQCwQyg.js | 1 + .../server/static/assets/Dropdown-BUKifQVF.js | 24 +++ .../static/assets/EvolutionView-BhOD-ngQ.js | 40 +++++ .../static/assets/EvolutionView-DokvaL7M.css | 1 + .../assets/FolderOpenOutlined-DV9WKc_3.js | 1 + .../static/assets/FormItemContext-D_7H_KA_.js | 1 + .../assets/KnowledgeBaseView-B7BP9eFg.css | 1 + .../assets/KnowledgeBaseView-DM5c3M3U.js | 14 ++ .../static/assets/LeftOutlined-CXpCfAZF.js | 1 + .../static/assets/SettingOutlined-CL42n2eQ.js | 1 + .../static/assets/SettingsView-C1a5n3Uj.js | 1 + .../static/assets/SettingsView-DU8lFOKb.css | 1 + .../static/assets/SkillsView-C1h55c-o.css | 1 + .../static/assets/SkillsView-q_2-8csR.js | 1 + .../static/assets/TerminalView-BibxhXp4.js | 1 + .../static/assets/TerminalView-C8cu2qRi.css | 1 + .../static/assets/UserOutlined-BMs4GNfR.js | 1 + .../static/assets/WorkflowView-D3Pe6eXM.js | 26 ++++ .../static/assets/WorkflowView-D_CnUZD8.css | 1 + .../_plugin-vue_export-helper-CBXJ7-XR.js | 1 + .../server/static/assets/base-B4siOKZE.js | 1 + .../server/static/assets/chat-dMZvRo2f.js | 1 + .../server/static/assets/index-3crJqV8H.js | 1 + .../server/static/assets/index-B5q-1V92.js | 18 +++ .../server/static/assets/index-BLB5C8KY.js | 3 + .../server/static/assets/index-BMkziFFN.js | 1 + .../server/static/assets/index-CIdKTsyN.js | 3 + .../server/static/assets/index-CIzBtwkp.js | 17 +++ .../server/static/assets/index-CKNOcsSD.js | 7 + .../server/static/assets/index-Cec7QIaL.js | 19 +++ .../server/static/assets/index-Ci55MVrK.js | 141 ++++++++++++++++++ .../server/static/assets/index-CuVGmFKn.js | 7 + .../server/static/assets/index-CzM1ezFC.js | 1 + .../server/static/assets/index-D6JhFblJ.js | 23 +++ .../server/static/assets/index-DBR_iMr9.js | 2 + .../server/static/assets/index-DJ0mAqy8.js | 1 + .../server/static/assets/index-Da8dBU05.js | 13 ++ .../server/static/assets/index-DaJ9bCD1.js | 1 + .../server/static/assets/index-Dr_Qcbdk.js | 1 + .../server/static/assets/index-vR_mL1Yy.css | 1 + .../server/static/assets/index-yRXoO2C0.js | 1 + .../static/assets/pickAttrs-Crnv5AEc.js | 18 +++ .../assets/responsiveObserve-CDxZiPRN.js | 1 + .../static/assets/styleChecker-CUnokkun.js | 1 + .../server/static/assets/zoom-C2fVs05p.js | 14 ++ src/agentkit/server/static/index.html | 2 +- 78 files changed, 753 insertions(+), 191 deletions(-) create mode 100644 src/agentkit/server/static/assets/AgentLayout-4LUhAboc.css create mode 100644 src/agentkit/server/static/assets/AgentLayout-BTmu8UQm.js create mode 100644 src/agentkit/server/static/assets/AppLayout-ChVEHFqE.js create mode 100644 src/agentkit/server/static/assets/AppLayout-D3vb9nEe.css create mode 100644 src/agentkit/server/static/assets/AppstoreOutlined-BuRUmkq3.js create mode 100644 src/agentkit/server/static/assets/ChatView-BQlsnIIs.js create mode 100644 src/agentkit/server/static/assets/ChatView-D21rRrKq.css create mode 100644 src/agentkit/server/static/assets/Checkbox-C1b034xJ.js create mode 100644 src/agentkit/server/static/assets/ComputerUseView-CNxrLPiM.js create mode 100644 src/agentkit/server/static/assets/ComputerUseView-DLnWxFj5.css create mode 100644 src/agentkit/server/static/assets/DeleteOutlined-BPP2kbR8.js create mode 100644 src/agentkit/server/static/assets/DesktopOutlined-CoQCwQyg.js create mode 100644 src/agentkit/server/static/assets/Dropdown-BUKifQVF.js create mode 100644 src/agentkit/server/static/assets/EvolutionView-BhOD-ngQ.js create mode 100644 src/agentkit/server/static/assets/EvolutionView-DokvaL7M.css create mode 100644 src/agentkit/server/static/assets/FolderOpenOutlined-DV9WKc_3.js create mode 100644 src/agentkit/server/static/assets/FormItemContext-D_7H_KA_.js create mode 100644 src/agentkit/server/static/assets/KnowledgeBaseView-B7BP9eFg.css create mode 100644 src/agentkit/server/static/assets/KnowledgeBaseView-DM5c3M3U.js create mode 100644 src/agentkit/server/static/assets/LeftOutlined-CXpCfAZF.js create mode 100644 src/agentkit/server/static/assets/SettingOutlined-CL42n2eQ.js create mode 100644 src/agentkit/server/static/assets/SettingsView-C1a5n3Uj.js create mode 100644 src/agentkit/server/static/assets/SettingsView-DU8lFOKb.css create mode 100644 src/agentkit/server/static/assets/SkillsView-C1h55c-o.css create mode 100644 src/agentkit/server/static/assets/SkillsView-q_2-8csR.js create mode 100644 src/agentkit/server/static/assets/TerminalView-BibxhXp4.js create mode 100644 src/agentkit/server/static/assets/TerminalView-C8cu2qRi.css create mode 100644 src/agentkit/server/static/assets/UserOutlined-BMs4GNfR.js create mode 100644 src/agentkit/server/static/assets/WorkflowView-D3Pe6eXM.js create mode 100644 src/agentkit/server/static/assets/WorkflowView-D_CnUZD8.css create mode 100644 src/agentkit/server/static/assets/_plugin-vue_export-helper-CBXJ7-XR.js create mode 100644 src/agentkit/server/static/assets/base-B4siOKZE.js create mode 100644 src/agentkit/server/static/assets/chat-dMZvRo2f.js create mode 100644 src/agentkit/server/static/assets/index-3crJqV8H.js create mode 100644 src/agentkit/server/static/assets/index-B5q-1V92.js create mode 100644 src/agentkit/server/static/assets/index-BLB5C8KY.js create mode 100644 src/agentkit/server/static/assets/index-BMkziFFN.js create mode 100644 src/agentkit/server/static/assets/index-CIdKTsyN.js create mode 100644 src/agentkit/server/static/assets/index-CIzBtwkp.js create mode 100644 src/agentkit/server/static/assets/index-CKNOcsSD.js create mode 100644 src/agentkit/server/static/assets/index-Cec7QIaL.js create mode 100644 src/agentkit/server/static/assets/index-Ci55MVrK.js create mode 100644 src/agentkit/server/static/assets/index-CuVGmFKn.js create mode 100644 src/agentkit/server/static/assets/index-CzM1ezFC.js create mode 100644 src/agentkit/server/static/assets/index-D6JhFblJ.js create mode 100644 src/agentkit/server/static/assets/index-DBR_iMr9.js create mode 100644 src/agentkit/server/static/assets/index-DJ0mAqy8.js create mode 100644 src/agentkit/server/static/assets/index-Da8dBU05.js create mode 100644 src/agentkit/server/static/assets/index-DaJ9bCD1.js create mode 100644 src/agentkit/server/static/assets/index-Dr_Qcbdk.js create mode 100644 src/agentkit/server/static/assets/index-vR_mL1Yy.css create mode 100644 src/agentkit/server/static/assets/index-yRXoO2C0.js create mode 100644 src/agentkit/server/static/assets/pickAttrs-Crnv5AEc.js create mode 100644 src/agentkit/server/static/assets/responsiveObserve-CDxZiPRN.js create mode 100644 src/agentkit/server/static/assets/styleChecker-CUnokkun.js create mode 100644 src/agentkit/server/static/assets/zoom-C2fVs05p.js diff --git a/src/agentkit/server/frontend/src/components/evolution/DashboardOverview.vue b/src/agentkit/server/frontend/src/components/evolution/DashboardOverview.vue index e037c2d..7150ecf 100644 --- a/src/agentkit/server/frontend/src/components/evolution/DashboardOverview.vue +++ b/src/agentkit/server/frontend/src/components/evolution/DashboardOverview.vue @@ -5,7 +5,7 @@ @@ -14,7 +14,7 @@ @@ -23,7 +23,7 @@ @@ -34,7 +34,7 @@ title="质量通过率" :value="metrics ? (metrics.success_rate * 100).toFixed(1) : '0.0'" suffix="%" - :value-style="{ color: '#52c41a' }" + :value-style="{ color: '#10b981' }" > @@ -183,7 +183,7 @@ function riskLabel(level: string): string { .overview-card__footer { font-size: 12px; - color: #8c8c8c; + color: var(--text-tertiary); } .overview-sections { @@ -195,8 +195,8 @@ function riskLabel(level: string): string { } .overview-section { - background: #fff; - border: 1px solid #f0f0f0; + background: var(--bg-primary); + border: 1px solid var(--border-color-split); border-radius: 8px; padding: 16px; display: flex; @@ -235,7 +235,7 @@ function riskLabel(level: string): string { align-items: center; gap: 8px; padding: 6px 0; - border-bottom: 1px solid #f5f5f5; + border-bottom: 1px solid var(--bg-tertiary); } .experience-item:last-child { @@ -250,11 +250,11 @@ function riskLabel(level: string): string { } .experience-item__dot--success { - background: #52c41a; + background: var(--color-success); } .experience-item__dot--failure { - background: #ff4d4f; + background: var(--color-error); } .experience-item__info { @@ -274,7 +274,7 @@ function riskLabel(level: string): string { .experience-item__meta { font-size: 12px; - color: #8c8c8c; + color: var(--text-tertiary); } .pitfall-item { @@ -282,7 +282,7 @@ function riskLabel(level: string): string { align-items: center; gap: 8px; padding: 6px 0; - border-bottom: 1px solid #f5f5f5; + border-bottom: 1px solid var(--bg-tertiary); } .pitfall-item:last-child { @@ -297,7 +297,7 @@ function riskLabel(level: string): string { .pitfall-item__rate { font-size: 12px; - color: #ff4d4f; + color: var(--color-error); font-weight: 600; } diff --git a/src/agentkit/server/frontend/src/components/evolution/ExperiencePanel.vue b/src/agentkit/server/frontend/src/components/evolution/ExperiencePanel.vue index 8e9153c..76e5f54 100644 --- a/src/agentkit/server/frontend/src/components/evolution/ExperiencePanel.vue +++ b/src/agentkit/server/frontend/src/components/evolution/ExperiencePanel.vue @@ -21,8 +21,8 @@ function onExperienceFilter(outcome: string) { diff --git a/src/agentkit/server/frontend/src/components/evolution/MetricsChart.vue b/src/agentkit/server/frontend/src/components/evolution/MetricsChart.vue index 63d0fe6..b0acb08 100644 --- a/src/agentkit/server/frontend/src/components/evolution/MetricsChart.vue +++ b/src/agentkit/server/frontend/src/components/evolution/MetricsChart.vue @@ -18,19 +18,19 @@
成功率
-
+
{{ metrics ? (metrics.success_rate * 100).toFixed(1) + '%' : '-' }}
平均耗时
-
+
{{ metrics ? formatDuration(metrics.avg_duration) : '-' }}
重试率
-
+
{{ metrics ? (metrics.retry_rate * 100).toFixed(1) + '%' : '-' }}
@@ -129,7 +129,7 @@ function updateChart() { type: 'line', data: props.trends.map(t => +(t.success_rate * 100).toFixed(1)), smooth: true, - itemStyle: { color: '#52c41a' }, + itemStyle: { color: '#10b981' }, symbol: 'circle', symbolSize: 6, }, @@ -138,7 +138,7 @@ function updateChart() { type: 'line', data: props.trends.map(t => +(t.retry_rate * 100).toFixed(1)), smooth: true, - itemStyle: { color: '#fa8c16' }, + itemStyle: { color: '#f59e0b' }, symbol: 'circle', symbolSize: 6, }, @@ -148,7 +148,7 @@ function updateChart() { yAxisIndex: 1, data: props.trends.map(t => +(t.avg_duration).toFixed(0)), smooth: true, - itemStyle: { color: '#1890ff' }, + itemStyle: { color: '#7c3aed' }, lineStyle: { type: 'dashed' }, symbol: 'circle', symbolSize: 6, @@ -220,7 +220,7 @@ watch(() => [props.trends, props.period], updateChart, { deep: true }) .summary-card { flex: 1; - background: #fafafa; + background: var(--bg-secondary); border-radius: 6px; padding: 8px 12px; text-align: center; @@ -228,7 +228,7 @@ watch(() => [props.trends, props.period], updateChart, { deep: true }) .summary-label { font-size: 12px; - color: #8c8c8c; + color: var(--text-tertiary); margin-bottom: 2px; } diff --git a/src/agentkit/server/frontend/src/components/evolution/MetricsPanel.vue b/src/agentkit/server/frontend/src/components/evolution/MetricsPanel.vue index d59243c..dd1aab7 100644 --- a/src/agentkit/server/frontend/src/components/evolution/MetricsPanel.vue +++ b/src/agentkit/server/frontend/src/components/evolution/MetricsPanel.vue @@ -23,8 +23,8 @@ function onPeriodChange(period: string) { diff --git a/src/agentkit/server/frontend/src/components/evolution/PitfallPanel.vue b/src/agentkit/server/frontend/src/components/evolution/PitfallPanel.vue index f0b7260..8194706 100644 --- a/src/agentkit/server/frontend/src/components/evolution/PitfallPanel.vue +++ b/src/agentkit/server/frontend/src/components/evolution/PitfallPanel.vue @@ -124,8 +124,8 @@ function riskLabel(level: string): string { } .pitfall-item { - background: #fafafa; - border: 1px solid #f0f0f0; + background: var(--bg-secondary); + border: 1px solid var(--border-color-split); border-radius: 6px; padding: 10px 12px; margin-bottom: 8px; @@ -145,20 +145,20 @@ function riskLabel(level: string): string { .pitfall-item__rate { font-size: 12px; - color: #8c8c8c; + color: var(--text-tertiary); margin-bottom: 4px; } .pitfall-item__reason { font-size: 12px; - color: #595959; + color: var(--text-secondary); line-height: 1.5; margin-bottom: 4px; } .pitfall-item__suggestion { font-size: 12px; - color: #1890ff; + color: var(--color-primary); line-height: 1.5; } diff --git a/src/agentkit/server/frontend/src/components/evolution/PitfallRoutePanel.vue b/src/agentkit/server/frontend/src/components/evolution/PitfallRoutePanel.vue index 17863f6..7f14975 100644 --- a/src/agentkit/server/frontend/src/components/evolution/PitfallRoutePanel.vue +++ b/src/agentkit/server/frontend/src/components/evolution/PitfallRoutePanel.vue @@ -22,8 +22,8 @@ function onPitfallCheck(taskType: string) { diff --git a/src/agentkit/server/frontend/src/components/skills/SkillCard.vue b/src/agentkit/server/frontend/src/components/skills/SkillCard.vue index 0eb4bf7..84df04b 100644 --- a/src/agentkit/server/frontend/src/components/skills/SkillCard.vue +++ b/src/agentkit/server/frontend/src/components/skills/SkillCard.vue @@ -60,12 +60,12 @@ defineEmits<{ } .skill-card__icon { - color: #1677ff; + color: var(--color-primary); } .skill-card__desc { font-size: 13px; - color: #666; + color: var(--text-secondary); margin-bottom: 8px; line-height: 1.5; display: -webkit-box; @@ -90,12 +90,12 @@ defineEmits<{ .skill-card__deps-label { font-size: 12px; - color: #999; + color: var(--text-placeholder); } .skill-card__more { font-size: 12px; - color: #999; + color: var(--text-placeholder); } .skill-card__footer { @@ -106,6 +106,6 @@ defineEmits<{ .skill-card__version { font-size: 12px; - color: #999; + color: var(--text-placeholder); } diff --git a/src/agentkit/server/frontend/src/components/skills/SkillDetail.vue b/src/agentkit/server/frontend/src/components/skills/SkillDetail.vue index 49a3f85..3cdd1be 100644 --- a/src/agentkit/server/frontend/src/components/skills/SkillDetail.vue +++ b/src/agentkit/server/frontend/src/components/skills/SkillDetail.vue @@ -103,12 +103,12 @@ async function handleHealthCheck(): Promise { } .skill-detail__empty { - color: #999; + color: var(--text-placeholder); font-size: 13px; } .skill-detail__config { - background: #f5f5f5; + background: var(--bg-tertiary); border-radius: 6px; padding: 12px; overflow-x: auto; diff --git a/src/agentkit/server/frontend/src/components/workflow/ApprovalNode.vue b/src/agentkit/server/frontend/src/components/workflow/ApprovalNode.vue index af6a275..8207cbe 100644 --- a/src/agentkit/server/frontend/src/components/workflow/ApprovalNode.vue +++ b/src/agentkit/server/frontend/src/components/workflow/ApprovalNode.vue @@ -43,8 +43,8 @@ const isPaused = computed(() => { diff --git a/src/agentkit/server/frontend/src/components/workflow/ConditionNode.vue b/src/agentkit/server/frontend/src/components/workflow/ConditionNode.vue index 7a29a4d..d838d37 100644 --- a/src/agentkit/server/frontend/src/components/workflow/ConditionNode.vue +++ b/src/agentkit/server/frontend/src/components/workflow/ConditionNode.vue @@ -43,46 +43,46 @@ defineProps<{ } .diamond-shape { - background: #fff; - border: 2px solid #faad14; + background: var(--bg-primary); + border: 2px solid var(--color-warning); border-radius: 8px; padding: 8px 12px; - box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08); + box-shadow: var(--shadow-sm); transform: none; transition: border-color 0.3s, box-shadow 0.3s; } .condition-node:hover .diamond-shape { - box-shadow: 0 4px 12px rgba(250, 173, 20, 0.25); + box-shadow: 0 4px 12px rgba(245, 158, 11, 0.25); } .condition-node.selected .diamond-shape { - border-color: #d48806; - box-shadow: 0 0 0 3px rgba(250, 173, 20, 0.2); + border-color: var(--color-warning); + box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.2); } /* Execution status styles */ .condition-node.status-running .diamond-shape { - border-color: #1890ff; - box-shadow: 0 0 8px rgba(24, 144, 255, 0.5); + border-color: var(--color-info); + box-shadow: 0 0 8px rgba(59, 130, 246, 0.5); animation: pulse 1.5s ease-in-out infinite; } .condition-node.status-completed .diamond-shape { - border-color: #52c41a; + border-color: var(--color-success); } .condition-node.status-failed .diamond-shape { - border-color: #ff4d4f; + border-color: var(--color-error); } .condition-node.status-waiting_approval .diamond-shape { - border-color: #faad14; + border-color: var(--color-warning); } @keyframes pulse { - 0%, 100% { box-shadow: 0 0 4px rgba(24, 144, 255, 0.3); } - 50% { box-shadow: 0 0 12px rgba(24, 144, 255, 0.7); } + 0%, 100% { box-shadow: 0 0 4px rgba(59, 130, 246, 0.3); } + 50% { box-shadow: 0 0 12px rgba(59, 130, 246, 0.7); } } /* Status indicator icon */ @@ -96,7 +96,7 @@ defineProps<{ display: flex; align-items: center; justify-content: center; - background: #fff; + background: var(--bg-primary); box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15); z-index: 1; } @@ -106,20 +106,20 @@ defineProps<{ } .running-icon { - color: #1890ff; + color: var(--color-info); animation: spin 1s linear infinite; } .completed-icon { - color: #52c41a; + color: var(--color-success); } .failed-icon { - color: #ff4d4f; + color: var(--color-error); } .waiting-icon { - color: #faad14; + color: var(--color-warning); } @keyframes spin { @@ -134,24 +134,24 @@ defineProps<{ } .node-icon { - color: #faad14; + color: var(--color-warning); font-size: 14px; } .node-title { font-weight: 600; - color: #333; + color: var(--text-primary); font-size: 13px; } .condition-expr { margin-top: 4px; padding: 2px 8px; - background: #fffbe6; - border: 1px solid #ffe58f; + background: var(--color-warning-light); + border: 1px solid var(--color-warning-light); border-radius: 4px; font-size: 11px; - color: #8c6900; + color: var(--color-warning); max-width: 180px; overflow: hidden; text-overflow: ellipsis; @@ -159,11 +159,11 @@ defineProps<{ } .handle-true { - background: #52c41a; + background: var(--color-success); } .handle-false { - background: #ff4d4f; + background: var(--color-error); } .label-true { @@ -171,7 +171,7 @@ defineProps<{ right: -22px; top: 50%; transform: translateY(-50%); - color: #52c41a; + color: var(--color-success); font-size: 11px; font-weight: 600; } @@ -181,7 +181,7 @@ defineProps<{ bottom: -18px; left: 50%; transform: translateX(-50%); - color: #ff4d4f; + color: var(--color-error); font-size: 11px; font-weight: 600; } diff --git a/src/agentkit/server/frontend/src/components/workflow/FlowCanvas.vue b/src/agentkit/server/frontend/src/components/workflow/FlowCanvas.vue index 6a758d4..96af376 100644 --- a/src/agentkit/server/frontend/src/components/workflow/FlowCanvas.vue +++ b/src/agentkit/server/frontend/src/components/workflow/FlowCanvas.vue @@ -124,7 +124,7 @@ function onConnect(params: any) { sourceHandle: params.sourceHandle, targetHandle: params.targetHandle, animated: true, - style: { stroke: '#1890ff', strokeWidth: 2 }, + style: { stroke: '#7c3aed', strokeWidth: 2 }, } store.addEdge(newEdge) } @@ -190,8 +190,8 @@ function onValidate() { .canvas-toolbar { padding: 8px 12px; - background: #fff; - border-bottom: 1px solid #f0f0f0; + background: var(--bg-primary); + border-bottom: 1px solid var(--border-color-split); display: flex; align-items: center; z-index: 10; diff --git a/src/agentkit/server/frontend/src/components/workflow/NodePalette.vue b/src/agentkit/server/frontend/src/components/workflow/NodePalette.vue index 7b954ce..83f6d63 100644 --- a/src/agentkit/server/frontend/src/components/workflow/NodePalette.vue +++ b/src/agentkit/server/frontend/src/components/workflow/NodePalette.vue @@ -33,28 +33,28 @@ const nodeTypes = [ name: '技能节点', desc: '引用已注册的技能', icon: ThunderboltOutlined, - color: '#1890ff', + color: '#7c3aed', }, { type: 'condition', name: '条件节点', desc: 'If/else 条件分支', icon: BranchesOutlined, - color: '#faad14', + color: '#f59e0b', }, { type: 'approval', name: '审批节点', desc: '人工审批关卡', icon: UserOutlined, - color: '#722ed1', + color: '#7c3aed', }, { type: 'parallel', name: '并行节点', desc: '并行执行组', icon: ForkOutlined, - color: '#52c41a', + color: '#10b981', }, ] @@ -69,8 +69,8 @@ function onDragStart(event: DragEvent, nodeType: string) { diff --git a/src/agentkit/server/frontend/src/components/workflow/ParallelNode.vue b/src/agentkit/server/frontend/src/components/workflow/ParallelNode.vue index aff62af..7a900c4 100644 --- a/src/agentkit/server/frontend/src/components/workflow/ParallelNode.vue +++ b/src/agentkit/server/frontend/src/components/workflow/ParallelNode.vue @@ -33,48 +33,48 @@ defineProps<{ diff --git a/src/agentkit/server/frontend/src/components/workflow/PropertyPanel.vue b/src/agentkit/server/frontend/src/components/workflow/PropertyPanel.vue index a6b327b..e6a0ce2 100644 --- a/src/agentkit/server/frontend/src/components/workflow/PropertyPanel.vue +++ b/src/agentkit/server/frontend/src/components/workflow/PropertyPanel.vue @@ -177,8 +177,8 @@ function updateConfig(key: string, value: unknown) { diff --git a/src/agentkit/server/static/assets/AgentLayout-4LUhAboc.css b/src/agentkit/server/static/assets/AgentLayout-4LUhAboc.css new file mode 100644 index 0000000..e3099fa --- /dev/null +++ b/src/agentkit/server/static/assets/AgentLayout-4LUhAboc.css @@ -0,0 +1 @@ +.top-nav[data-v-a50f1ac5]{display:flex;align-items:center;justify-content:space-between;height:var(--topnav-height);padding:0 var(--space-4);background:var(--bg-primary);border-bottom:1px solid var(--border-color);flex-shrink:0;z-index:var(--z-sticky)}.top-nav__left[data-v-a50f1ac5]{display:flex;align-items:center;gap:var(--space-3)}.top-nav__logo[data-v-a50f1ac5]{display:flex;align-items:center;gap:var(--space-2);cursor:pointer;-webkit-user-select:none;user-select:none}.top-nav__logo-text[data-v-a50f1ac5]{font-size:var(--font-lg);font-weight:var(--font-weight-bold);background:var(--gradient-brand);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text}.top-nav__logo-badge[data-v-a50f1ac5]{font-size:var(--font-xs);font-weight:var(--font-weight-medium);color:var(--text-inverse);background:var(--gradient-brand);padding:1px var(--space-2);border-radius:var(--radius-full);letter-spacing:.5px}.top-nav__center[data-v-a50f1ac5]{display:flex;align-items:center}.top-nav__task-select[data-v-a50f1ac5]{min-width:200px}.top-nav__right[data-v-a50f1ac5]{display:flex;align-items:center;gap:var(--space-3)}.top-nav__status[data-v-a50f1ac5]{font-size:var(--font-xs)}.top-nav__status[data-v-a50f1ac5] .ant-badge-status-text{color:var(--text-tertiary);font-size:var(--font-xs)}.top-nav__icon-btn[data-v-a50f1ac5]{display:flex;align-items:center;justify-content:center;width:32px;height:32px;border:none;background:transparent;color:var(--text-tertiary);cursor:pointer;border-radius:var(--radius-md);transition:all var(--transition-fast)}.top-nav__icon-btn[data-v-a50f1ac5]:hover{color:var(--text-primary);background:var(--bg-tertiary)}.split-pane[data-v-21cc2387]{display:flex;width:100%;height:100%;overflow:hidden}.split-pane--horizontal[data-v-21cc2387]{flex-direction:row}.split-pane--vertical[data-v-21cc2387]{flex-direction:column}.split-pane__first[data-v-21cc2387],.split-pane__second[data-v-21cc2387]{overflow:hidden;min-width:0;min-height:0}.split-pane__handle[data-v-21cc2387]{flex-shrink:0;z-index:10;display:flex;align-items:center;justify-content:center;transition:background-color var(--transition-fast)}.split-pane--horizontal>.split-pane__handle[data-v-21cc2387]{width:6px;cursor:col-resize;flex-direction:column}.split-pane--vertical>.split-pane__handle[data-v-21cc2387]{height:6px;cursor:row-resize;flex-direction:row}.split-pane__handle[data-v-21cc2387]:hover,.split-pane--dragging .split-pane__handle[data-v-21cc2387]{background-color:var(--color-primary)}.split-pane__handle-line[data-v-21cc2387]{background-color:var(--border-color);border-radius:var(--radius-full);transition:background-color var(--transition-fast)}.split-pane--horizontal>.split-pane__handle>.split-pane__handle-line[data-v-21cc2387]{width:2px;height:24px}.split-pane--vertical>.split-pane__handle>.split-pane__handle-line[data-v-21cc2387]{height:2px;width:24px}.split-pane__handle:hover .split-pane__handle-line[data-v-21cc2387],.split-pane--dragging .split-pane__handle-line[data-v-21cc2387]{background-color:transparent}.split-pane--dragging[data-v-21cc2387]{-webkit-user-select:none;user-select:none}.quadrant-panel[data-v-ecb67fb1]{display:flex;flex-direction:column;height:100%;overflow:hidden;background:var(--bg-primary);border:1px solid var(--border-color);border-radius:var(--radius-lg)}.quadrant-panel--collapsed[data-v-ecb67fb1]{height:auto!important}.quadrant-panel__header[data-v-ecb67fb1]{display:flex;align-items:center;justify-content:space-between;height:36px;padding:0 var(--space-2);border-bottom:1px solid var(--border-color);background:var(--bg-secondary);flex-shrink:0}.quadrant-panel__tabs[data-v-ecb67fb1]{display:flex;gap:var(--space-1);overflow-x:auto;scrollbar-width:none}.quadrant-panel__tabs[data-v-ecb67fb1]::-webkit-scrollbar{display:none}.quadrant-panel__tab[data-v-ecb67fb1]{display:flex;align-items:center;gap:var(--space-1);padding:var(--space-1) var(--space-2);border:none;background:transparent;color:var(--text-tertiary);font-size:var(--font-xs);cursor:pointer;border-radius:var(--radius-sm);white-space:nowrap;transition:all var(--transition-fast)}.quadrant-panel__tab[data-v-ecb67fb1]:hover{color:var(--text-secondary);background:var(--bg-tertiary)}.quadrant-panel__tab--active[data-v-ecb67fb1]{color:var(--color-primary);background:var(--color-primary-light);font-weight:var(--font-weight-medium)}.quadrant-panel__tab-icon[data-v-ecb67fb1]{font-size:12px}.quadrant-panel__collapse-btn[data-v-ecb67fb1]{display:flex;align-items:center;justify-content:center;width:24px;height:24px;border:none;background:transparent;color:var(--text-tertiary);cursor:pointer;border-radius:var(--radius-sm);flex-shrink:0;transition:all var(--transition-fast)}.quadrant-panel__collapse-btn[data-v-ecb67fb1]:hover{color:var(--text-secondary);background:var(--bg-tertiary)}.quadrant-panel__body[data-v-ecb67fb1]{flex:1;overflow:hidden}.quadrant-panel__content[data-v-ecb67fb1]{height:100%;overflow:auto}.agent-layout[data-v-9b65fb25]{display:flex;flex-direction:column;height:100vh;width:100vw;overflow:hidden;background:var(--bg-secondary)}.agent-layout__body[data-v-9b65fb25]{flex:1;padding:var(--space-2);gap:0;overflow:hidden}.agent-layout__placeholder[data-v-9b65fb25]{display:flex;flex-direction:column;align-items:center;justify-content:center;height:100%;gap:var(--space-3);color:var(--text-placeholder);font-size:var(--font-sm)} diff --git a/src/agentkit/server/static/assets/AgentLayout-BTmu8UQm.js b/src/agentkit/server/static/assets/AgentLayout-BTmu8UQm.js new file mode 100644 index 0000000..aac4c3b --- /dev/null +++ b/src/agentkit/server/static/assets/AgentLayout-BTmu8UQm.js @@ -0,0 +1 @@ +import{c as r,I as x,d as y,u as Q,o as d,a as m,b as s,e as p,f as F,w as l,g as $,r as v,n as S,h as D,i as z,F as q,j as A,k,l as X,t as Y,m as j,v as V}from"./index-Ci55MVrK.js";import{u as U,C as G,M as J}from"./chat-dMZvRo2f.js";import{B as Z}from"./index-3crJqV8H.js";import{A as tt}from"./base-B4siOKZE.js";import{S as I,A as et,B as at}from"./SettingOutlined-CL42n2eQ.js";import{_ as O}from"./_plugin-vue_export-helper-CBXJ7-XR.js";import{P as nt}from"./index-D6JhFblJ.js";import ot from"./ChatView-BQlsnIIs.js";import rt from"./TerminalView-BibxhXp4.js";import st from"./WorkflowView-D3Pe6eXM.js";import it from"./KnowledgeBaseView-DM5c3M3U.js";import lt from"./EvolutionView-BhOD-ngQ.js";import ct from"./SkillsView-q_2-8csR.js";import ut from"./SettingsView-C1a5n3Uj.js";import{D as dt}from"./DesktopOutlined-CoQCwQyg.js";import{A as pt}from"./AppstoreOutlined-BuRUmkq3.js";import"./zoom-C2fVs05p.js";import"./FormItemContext-D_7H_KA_.js";import"./index-Dr_Qcbdk.js";import"./LeftOutlined-CXpCfAZF.js";import"./FolderOpenOutlined-DV9WKc_3.js";import"./responsiveObserve-CDxZiPRN.js";import"./index-BMkziFFN.js";import"./UserOutlined-BMs4GNfR.js";import"./index-yRXoO2C0.js";import"./index-DaJ9bCD1.js";import"./styleChecker-CUnokkun.js";import"./index-CuVGmFKn.js";import"./pickAttrs-Crnv5AEc.js";import"./index-CKNOcsSD.js";import"./Checkbox-C1b034xJ.js";import"./index-CzM1ezFC.js";import"./index-Cec7QIaL.js";import"./Dropdown-BUKifQVF.js";import"./index-B5q-1V92.js";import"./DeleteOutlined-BPP2kbR8.js";import"./index-DBR_iMr9.js";import"./index-Da8dBU05.js";import"./index-BLB5C8KY.js";import"./index-DJ0mAqy8.js";import"./index-CIzBtwkp.js";import"./index-CIdKTsyN.js";var mt={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"};function B(a){for(var t=1;te.isWsConnected);return(o,i)=>(d(),m("header",ht,[s("div",yt,[s("div",{class:"top-nav__logo",onClick:i[0]||(i[0]=u=>p(t).push("/agent"))},[...i[2]||(i[2]=[s("span",{class:"top-nav__logo-text"},"Fischer",-1),s("span",{class:"top-nav__logo-badge"},"AgentKit",-1)])])]),s("div",Ot,[F("",!0)]),s("div",kt,[s("div",wt,[r(p(Z),{status:n.value?"success":"error",text:n.value?"已连接":"未连接"},null,8,["status","text"])]),r(p(tt),{title:"设置"},{default:l(()=>[s("button",{class:"top-nav__icon-btn",onClick:i[1]||(i[1]=u=>p(t).push("/agent/monitor?tab=settings"))},[r(p(I))])]),_:1})])]))}}),St=O($t,[["__scopeId","data-v-a50f1ac5"]]),zt=y({__name:"SplitPane",props:{direction:{default:"horizontal"},defaultRatio:{default:.5},minRatio:{default:.2},maxRatio:{default:.8},storageKey:{}},setup(a){const t=a,e=v(null),n=v(!1),o=t.storageKey?parseFloat(localStorage.getItem(t.storageKey)||String(t.defaultRatio)):t.defaultRatio,i=v(Math.min(t.maxRatio,Math.max(t.minRatio,o))),u=$(()=>t.direction==="horizontal"?{width:`${i.value*100}%`}:{height:`${i.value*100}%`}),_=$(()=>t.direction==="horizontal"?{width:`${(1-i.value)*100}%`}:{height:`${(1-i.value)*100}%`});function c(f){f.preventDefault(),n.value=!0;const g=t.direction==="horizontal"?f.clientX:f.clientY,H=t.direction==="horizontal"?e.value.offsetWidth:e.value.offsetHeight,N=i.value;function C(T){const K=((t.direction==="horizontal"?T.clientX:T.clientY)-g)/H,W=Math.min(t.maxRatio,Math.max(t.minRatio,N+K));i.value=W}function R(){n.value=!1,t.storageKey&&localStorage.setItem(t.storageKey,String(i.value)),window.dispatchEvent(new Event("resize")),document.removeEventListener("mousemove",C),document.removeEventListener("mouseup",R)}document.addEventListener("mousemove",C),document.addEventListener("mouseup",R)}return(f,g)=>(d(),m("div",{ref_key:"containerRef",ref:e,class:S(["split-pane",`split-pane--${a.direction}`,{"split-pane--dragging":n.value}])},[s("div",{class:"split-pane__first",style:D(u.value)},[z(f.$slots,"first",{},void 0,!0)],4),s("div",{class:"split-pane__handle",onMousedown:c},[...g[0]||(g[0]=[s("div",{class:"split-pane__handle-line"},null,-1)])],32),s("div",{class:"split-pane__second",style:D(_.value)},[z(f.$slots,"second",{},void 0,!0)],4)],2))}}),w=O(zt,[["__scopeId","data-v-21cc2387"]]),xt={class:"quadrant-panel__header"},Mt={class:"quadrant-panel__tabs"},Pt=["onClick"],Ct=["title"],Rt={class:"quadrant-panel__body"},Tt=y({__name:"QuadrantPanel",props:{tabs:{},defaultTab:{default:""},storageKey:{}},setup(a){var i;const t=a,e=t.storageKey&&localStorage.getItem(t.storageKey)||t.defaultTab,n=v(e||(((i=t.tabs[0])==null?void 0:i.key)??"")),o=v(!1);return(u,_)=>(d(),m("div",{class:S(["quadrant-panel",{"quadrant-panel--collapsed":o.value}])},[s("div",xt,[s("div",Mt,[(d(!0),m(q,null,A(a.tabs,c=>(d(),m("button",{key:c.key,class:S(["quadrant-panel__tab",{"quadrant-panel__tab--active":n.value===c.key}]),onClick:f=>n.value=c.key},[c.icon?(d(),k(X(c.icon),{key:0,class:"quadrant-panel__tab-icon"})):F("",!0),s("span",null,Y(c.label),1)],10,Pt))),128))]),s("button",{class:"quadrant-panel__collapse-btn",onClick:_[0]||(_[0]=c=>o.value=!o.value),title:o.value?"展开":"折叠"},[o.value?(d(),k(p(nt),{key:1})):(d(),k(p(P),{key:0}))],8,Ct)]),j(s("div",Rt,[(d(!0),m(q,null,A(a.tabs,c=>j((d(),m("div",{key:c.key,class:"quadrant-panel__content"},[z(u.$slots,c.key,{},void 0,!0)])),[[V,n.value===c.key]])),128))],512),[[V,!o.value]])],2))}}),b=O(Tt,[["__scopeId","data-v-ecb67fb1"]]),Dt={class:"agent-layout"},qt={class:"agent-layout__body"},At={class:"agent-layout__placeholder"},jt={class:"agent-layout__small-screen"},Vt=y({__name:"AgentLayout",setup(a){const t=[{key:"chat",label:"对话",icon:J}],e=[{key:"terminal",label:"终端",icon:G}],n=[{key:"code",label:"代码",icon:h},{key:"workflow",label:"工作流",icon:et},{key:"knowledge",label:"知识库",icon:at}],o=[{key:"monitor",label:"监控",icon:M},{key:"skills",label:"技能",icon:pt},{key:"settings",label:"设置",icon:I}];return(i,u)=>(d(),m("div",Dt,[r(St),s("div",qt,[r(w,{direction:"horizontal","default-ratio":.5,"storage-key":"agent-h-split"},{first:l(()=>[r(w,{direction:"vertical","default-ratio":.6,"storage-key":"agent-left-v-split"},{first:l(()=>[r(b,{tabs:t,"default-tab":"chat","storage-key":"quadrant-tl-tab"},{chat:l(()=>[r(ot)]),_:1})]),second:l(()=>[r(b,{tabs:e,"default-tab":"terminal","storage-key":"quadrant-bl-tab"},{terminal:l(()=>[r(rt)]),_:1})]),_:1})]),second:l(()=>[r(w,{direction:"vertical","default-ratio":.6,"storage-key":"agent-right-v-split"},{first:l(()=>[r(b,{tabs:n,"default-tab":"code","storage-key":"quadrant-tr-tab"},{code:l(()=>[s("div",At,[r(p(h),{style:{"font-size":"32px",color:"var(--text-placeholder)"}}),u[0]||(u[0]=s("p",null,"代码预览",-1))])]),workflow:l(()=>[r(st)]),knowledge:l(()=>[r(it)]),_:1})]),second:l(()=>[r(b,{tabs:o,"default-tab":"monitor","storage-key":"quadrant-br-tab"},{monitor:l(()=>[r(lt)]),skills:l(()=>[r(ct)]),settings:l(()=>[r(ut)]),_:1})]),_:1})]),_:1})]),s("div",jt,[r(p(dt),{style:{"font-size":"48px",color:"var(--text-placeholder)"}}),u[1]||(u[1]=s("h2",null,"请使用更大的屏幕",-1)),u[2]||(u[2]=s("p",null,"Fischer AgentKit 四象限布局需要至少 1280px 宽度的屏幕才能正常使用。",-1))])]))}}),xe=O(Vt,[["__scopeId","data-v-9b65fb25"]]);export{xe as default}; diff --git a/src/agentkit/server/static/assets/AppLayout-ChVEHFqE.js b/src/agentkit/server/static/assets/AppLayout-ChVEHFqE.js new file mode 100644 index 0000000..cf18f53 --- /dev/null +++ b/src/agentkit/server/static/assets/AppLayout-ChVEHFqE.js @@ -0,0 +1 @@ +import{p as ye,q as be,_ as $,d as w,z as N,c as r,g as te,r as ne,y as oe,I as re,G as P,A as I,B as xe,Q as Se,N as X,E as G,x as Ce,P as y,af as V,u as $e,ag as ke,o as ae,k as le,e as d,w as c,b as h,ah as we}from"./index-Ci55MVrK.js";import{u as Oe,M as _e,C as Be}from"./chat-dMZvRo2f.js";import{S as ie,a as He,A as x,b as Le,M as Ae}from"./index-B5q-1V92.js";import{i as ze,_ as se}from"./_plugin-vue_export-helper-CBXJ7-XR.js";import{i as Pe,B as Te}from"./index-3crJqV8H.js";import{L as Z,R as Q}from"./LeftOutlined-CXpCfAZF.js";import{A as Me,B as Re,S as Ee}from"./SettingOutlined-CL42n2eQ.js";import{A as Ie}from"./AppstoreOutlined-BuRUmkq3.js";import{D as Ne}from"./DesktopOutlined-CoQCwQyg.js";import"./base-B4siOKZE.js";import"./zoom-C2fVs05p.js";const De=e=>{const{componentCls:n,colorBgContainer:t,colorBgBody:l,colorText:a}=e;return{[`${n}-sider-light`]:{background:t,[`${n}-sider-trigger`]:{color:a,background:t},[`${n}-sider-zero-width-trigger`]:{color:a,background:t,border:`1px solid ${l}`,borderInlineStart:0}}}},je=e=>{const{antCls:n,componentCls:t,colorText:l,colorTextLightSolid:a,colorBgHeader:m,colorBgBody:g,colorBgTrigger:u,layoutHeaderHeight:o,layoutHeaderPaddingInline:v,layoutHeaderColor:S,layoutFooterPadding:i,layoutTriggerHeight:p,layoutZeroTriggerSize:C,motionDurationMid:O,motionDurationSlow:s,fontSize:b,borderRadius:f}=e;return{[t]:$($({display:"flex",flex:"auto",flexDirection:"column",color:l,minHeight:0,background:g,"&, *":{boxSizing:"border-box"},[`&${t}-has-sider`]:{flexDirection:"row",[`> ${t}, > ${t}-content`]:{width:0}},[`${t}-header, &${t}-footer`]:{flex:"0 0 auto"},[`${t}-header`]:{height:o,paddingInline:v,color:S,lineHeight:`${o}px`,background:m,[`${n}-menu`]:{lineHeight:"inherit"}},[`${t}-footer`]:{padding:i,color:l,fontSize:b,background:g},[`${t}-content`]:{flex:"auto",minHeight:0},[`${t}-sider`]:{position:"relative",minWidth:0,background:m,transition:`all ${O}, background 0s`,"&-children":{height:"100%",marginTop:-.1,paddingTop:.1,[`${n}-menu${n}-menu-inline-collapsed`]:{width:"auto"}},"&-has-trigger":{paddingBottom:p},"&-right":{order:1},"&-trigger":{position:"fixed",bottom:0,zIndex:1,height:p,color:a,lineHeight:`${p}px`,textAlign:"center",background:u,cursor:"pointer",transition:`all ${O}`},"&-zero-width":{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:o,insetInlineEnd:-C,zIndex:1,width:C,height:C,color:a,fontSize:e.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:m,borderStartStartRadius:0,borderStartEndRadius:f,borderEndEndRadius:f,borderEndStartRadius:0,cursor:"pointer",transition:`background ${s} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${s}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:-C,borderStartStartRadius:f,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:f}}}}},De(e)),{"&-rtl":{direction:"rtl"}})}},We=ye("Layout",e=>{const{colorText:n,controlHeightSM:t,controlHeight:l,controlHeightLG:a,marginXXS:m}=e,g=a*1.25,u=be(e,{layoutHeaderHeight:l*2,layoutHeaderPaddingInline:g,layoutHeaderColor:n,layoutFooterPadding:`${t}px ${g}px`,layoutTriggerHeight:a+m*2,layoutZeroTriggerSize:a});return[je(u)]},e=>{const{colorBgLayout:n}=e;return{colorBgHeader:"#001529",colorBgBody:n,colorBgTrigger:"#002140"}}),D=()=>({prefixCls:String,hasSider:{type:Boolean,default:void 0},tagName:String});function H(e){let{suffixCls:n,tagName:t,name:l}=e;return a=>w({compatConfig:{MODE:3},name:l,props:D(),setup(g,u){let{slots:o}=u;const{prefixCls:v}=N(n,g);return()=>{const S=$($({},g),{prefixCls:v.value,tagName:t});return r(a,S,o)}}})}const j=w({compatConfig:{MODE:3},props:D(),setup(e,n){let{slots:t}=n;return()=>r(e.tagName,{class:e.prefixCls},t)}}),Fe=w({compatConfig:{MODE:3},inheritAttrs:!1,props:D(),setup(e,n){let{slots:t,attrs:l}=n;const{prefixCls:a,direction:m}=N("",e),[g,u]=We(a),o=ne([]);oe(ie,{addSider:i=>{o.value=[...o.value,i]},removeSider:i=>{o.value=o.value.filter(p=>p!==i)}});const S=te(()=>{const{prefixCls:i,hasSider:p}=e;return{[u.value]:!0,[`${i}`]:!0,[`${i}-has-sider`]:typeof p=="boolean"?p:o.value.length>0,[`${i}-rtl`]:m.value==="rtl"}});return()=>{const{tagName:i}=e;return g(r(i,$($({},l),{class:[S.value,l.class]}),t))}}}),T=H({suffixCls:"layout",tagName:"section",name:"ALayout"})(Fe),M=H({suffixCls:"layout-header",tagName:"header",name:"ALayoutHeader"})(j),R=H({suffixCls:"layout-footer",tagName:"footer",name:"ALayoutFooter"})(j),E=H({suffixCls:"layout-content",tagName:"main",name:"ALayoutContent"})(j);var Ke={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"};function q(e){for(var n=1;n({prefixCls:String,collapsible:{type:Boolean,default:void 0},collapsed:{type:Boolean,default:void 0},defaultCollapsed:{type:Boolean,default:void 0},reverseArrow:{type:Boolean,default:void 0},zeroWidthTriggerStyle:{type:Object,default:void 0},trigger:y.any,width:y.oneOfType([y.number,y.string]),collapsedWidth:y.oneOfType([y.number,y.string]),breakpoint:y.oneOf(V("xs","sm","md","lg","xl","xxl","xxxl")),theme:y.oneOf(V("light","dark")).def("dark"),onBreakpoint:Function,onCollapse:Function}),Ge=(()=>{let e=0;return function(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return e+=1,`${n}${e}`}})(),B=w({compatConfig:{MODE:3},name:"ALayoutSider",inheritAttrs:!1,props:ze(Xe(),{collapsible:!1,defaultCollapsed:!1,reverseArrow:!1,width:200,collapsedWidth:80}),emits:["breakpoint","update:collapsed","collapse"],setup(e,n){let{emit:t,attrs:l,slots:a}=n;const{prefixCls:m}=N("layout-sider",e),g=Ce(ie,void 0),u=P(!!(e.collapsed!==void 0?e.collapsed:e.defaultCollapsed)),o=P(!1);I(()=>e.collapsed,()=>{u.value=!!e.collapsed}),oe(He,u);const v=(s,b)=>{e.collapsed===void 0&&(u.value=s),t("update:collapsed",s),t("collapse",s,b)},S=P(s=>{o.value=s.matches,t("breakpoint",s.matches),u.value!==s.matches&&v(s.matches,"responsive")});let i;function p(s){return S.value(s)}const C=Ge("ant-sider-");g&&g.addSider(C),xe(()=>{I(()=>e.breakpoint,()=>{try{i==null||i.removeEventListener("change",p)}catch{i==null||i.removeListener(p)}if(typeof window<"u"){const{matchMedia:s}=window;if(s&&e.breakpoint&&e.breakpoint in J){i=s(`(max-width: ${J[e.breakpoint]})`);try{i.addEventListener("change",p)}catch{i.addListener(p)}p(i)}}},{immediate:!0})}),Se(()=>{try{i==null||i.removeEventListener("change",p)}catch{i==null||i.removeListener(p)}g&&g.removeSider(C)});const O=()=>{v(!u.value,"clickTrigger")};return()=>{var s,b;const f=m.value,{collapsedWidth:K,width:de,reverseArrow:L,zeroWidthTriggerStyle:ue,trigger:_=(s=a.trigger)===null||s===void 0?void 0:s.call(a),collapsible:U,theme:ce}=e,A=u.value?K:de,k=Pe(A)?`${A}px`:String(A),z=parseFloat(String(K||0))===0?r("span",{onClick:O,class:X(`${f}-zero-width-trigger`,`${f}-zero-width-trigger-${L?"right":"left"}`),style:ue},[_||r(W,null,null)]):null,ge={expanded:L?r(Q,null,null):r(Z,null,null),collapsed:L?r(Z,null,null):r(Q,null,null)},pe=u.value?"collapsed":"expanded",fe=ge[pe],me=_!==null?z||r("div",{class:`${f}-trigger`,onClick:O,style:{width:k}},[_||fe]):null,he=[l.style,{flex:`0 0 ${k}`,maxWidth:k,minWidth:k,width:k}],ve=X(f,`${f}-${ce}`,{[`${f}-collapsed`]:!!u.value,[`${f}-has-trigger`]:U&&_!==null&&!z,[`${f}-below`]:!!o.value,[`${f}-zero-width`]:parseFloat(k)===0},l.class);return r("aside",G(G({},l),{},{class:ve,style:he}),[r("div",{class:`${f}-children`},[(b=a.default)===null||b===void 0?void 0:b.call(a)]),U||o.value&&z?me:null])}}}),Ve=B,Y=$(T,{Header:M,Footer:R,Content:E,Sider:B,install:e=>(e.component(T.name,T),e.component(M.name,M),e.component(R.name,R),e.component(B.name,B),e.component(E.name,E),e)});var Ze={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M917 211.1l-199.2 24c-6.6.8-9.4 8.9-4.7 13.6l59.3 59.3-226 226-101.8-101.7c-6.3-6.3-16.4-6.2-22.6 0L100.3 754.1a8.03 8.03 0 000 11.3l45 45.2c3.1 3.1 8.2 3.1 11.3 0L433.3 534 535 635.7c6.3 6.2 16.4 6.2 22.6 0L829 364.5l59.3 59.3a8.01 8.01 0 0013.6-4.7l24-199.2c.7-5.1-3.7-9.5-8.9-8.8z"}}]},name:"rise",theme:"outlined"};function ee(e){for(var n=1;nl.isWsConnected);I(()=>t.path,u=>{a.value=[u]});function g({key:u}){n.push(String(u))}return(u,o)=>(ae(),le(d(Ve),{class:"side-nav",width:240,theme:"dark",trigger:null},{default:c(()=>[o[9]||(o[9]=h("div",{class:"side-nav__logo"},[h("h1",{class:"side-nav__title"},"Fischer AgentKit")],-1)),r(d(Ae),{selectedKeys:a.value,"onUpdate:selectedKeys":o[0]||(o[0]=v=>a.value=v),theme:"dark",mode:"inline",onClick:g},{default:c(()=>[r(d(x),{key:"/"},{icon:c(()=>[r(d(_e))]),default:c(()=>[o[1]||(o[1]=h("span",null,"智能对话",-1))]),_:1}),r(d(x),{key:"/workflow"},{icon:c(()=>[r(d(Me))]),default:c(()=>[o[2]||(o[2]=h("span",null,"工作流",-1))]),_:1}),r(d(x),{key:"/knowledge"},{icon:c(()=>[r(d(Re))]),default:c(()=>[o[3]||(o[3]=h("span",null,"知识库",-1))]),_:1}),r(d(x),{key:"/skills"},{icon:c(()=>[r(d(Ie))]),default:c(()=>[o[4]||(o[4]=h("span",null,"技能",-1))]),_:1}),r(d(x),{key:"/terminal"},{icon:c(()=>[r(d(Be))]),default:c(()=>[o[5]||(o[5]=h("span",null,"终端",-1))]),_:1}),r(d(x),{key:"/computer-use"},{icon:c(()=>[r(d(Ne))]),default:c(()=>[o[6]||(o[6]=h("span",null,"Computer Use",-1))]),_:1}),r(d(x),{key:"/evolution"},{icon:c(()=>[r(d(F))]),default:c(()=>[o[7]||(o[7]=h("span",null,"自进化",-1))]),_:1}),r(d(Le)),r(d(x),{key:"/settings"},{icon:c(()=>[r(d(Ee))]),default:c(()=>[o[8]||(o[8]=h("span",null,"设置",-1))]),_:1})]),_:1},8,["selectedKeys"]),h("div",qe,[r(d(Te),{status:m.value?"success":"error",text:m.value?"已连接":"未连接"},null,8,["status","text"])])]),_:1}))}}),Ye=se(Je,[["__scopeId","data-v-ffaa5764"]]),et=w({__name:"AppLayout",setup(e){return(n,t)=>{const l=we("router-view");return ae(),le(d(Y),{class:"app-layout"},{default:c(()=>[r(Ye),r(d(Y),{class:"app-layout__main"},{default:c(()=>[r(l)]),_:1})]),_:1})}}}),gt=se(et,[["__scopeId","data-v-1f8febf9"]]);export{gt as default}; diff --git a/src/agentkit/server/static/assets/AppLayout-D3vb9nEe.css b/src/agentkit/server/static/assets/AppLayout-D3vb9nEe.css new file mode 100644 index 0000000..10f2f87 --- /dev/null +++ b/src/agentkit/server/static/assets/AppLayout-D3vb9nEe.css @@ -0,0 +1 @@ +.side-nav[data-v-ffaa5764]{height:100vh;overflow-y:auto;display:flex;flex-direction:column}.side-nav[data-v-ffaa5764] .ant-layout-sider-children{display:flex;flex-direction:column;height:100%}.side-nav__logo[data-v-ffaa5764]{height:64px;display:flex;align-items:center;justify-content:center;border-bottom:1px solid rgba(255,255,255,.1)}.side-nav__title[data-v-ffaa5764]{color:#fff;font-size:18px;font-weight:600;margin:0;white-space:nowrap}.side-nav__footer[data-v-ffaa5764]{margin-top:auto;padding:16px 24px;border-top:1px solid rgba(255,255,255,.1)}.side-nav__footer[data-v-ffaa5764] .ant-badge-status-text{color:#ffffffa6;font-size:12px}.app-layout[data-v-1f8febf9]{height:100vh;width:100vw}.app-layout__main[data-v-1f8febf9]{flex:1;overflow:hidden;background:var(--bg-tertiary)} diff --git a/src/agentkit/server/static/assets/AppstoreOutlined-BuRUmkq3.js b/src/agentkit/server/static/assets/AppstoreOutlined-BuRUmkq3.js new file mode 100644 index 0000000..ce93457 --- /dev/null +++ b/src/agentkit/server/static/assets/AppstoreOutlined-BuRUmkq3.js @@ -0,0 +1 @@ +import{c as i,I as u}from"./index-Ci55MVrK.js";var l={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M464 144H160c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V160c0-8.8-7.2-16-16-16zm-52 268H212V212h200v200zm452-268H560c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V160c0-8.8-7.2-16-16-16zm-52 268H612V212h200v200zM464 544H160c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V560c0-8.8-7.2-16-16-16zm-52 268H212V612h200v200zm452-268H560c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V560c0-8.8-7.2-16-16-16zm-52 268H612V612h200v200z"}}]},name:"appstore",theme:"outlined"};function a(r){for(var t=1;t{const{antCls:e,componentCls:t,iconCls:n,avatarBg:r,avatarColor:c,containerSize:i,containerSizeLG:o,containerSizeSM:a,textFontSize:s,textFontSizeLG:l,textFontSizeSM:f,borderRadius:h,borderRadiusLG:d,borderRadiusSM:p,lineWidth:C,lineType:k}=u,E=(m,b,x)=>({width:m,height:m,lineHeight:`${m-C*2}px`,borderRadius:"50%",[`&${t}-square`]:{borderRadius:x},[`${t}-string`]:{position:"absolute",left:{_skip_check_:!0,value:"50%"},transformOrigin:"0 center"},[`&${t}-icon`]:{fontSize:b,[`> ${n}`]:{margin:0}}});return{[t]:v(v(v(v({},Et(u)),{position:"relative",display:"inline-block",overflow:"hidden",color:c,whiteSpace:"nowrap",textAlign:"center",verticalAlign:"middle",background:r,border:`${C}px ${k} transparent`,"&-image":{background:"transparent"},[`${e}-image-img`]:{display:"block"}}),E(i,s,h)),{"&-lg":v({},E(o,l,d)),"&-sm":v({},E(a,f,p)),"> img":{display:"block",width:"100%",height:"100%",objectFit:"cover"}})}},rn=u=>{const{componentCls:e,groupBorderColor:t,groupOverlapping:n,groupSpace:r}=u;return{[`${e}-group`]:{display:"inline-flex",[`${e}`]:{borderColor:t},"> *:not(:first-child)":{marginInlineStart:n}},[`${e}-group-popover`]:{[`${e} + ${e}`]:{marginInlineStart:r}}}},M0=D0("Avatar",u=>{const{colorTextLightSolid:e,colorTextPlaceholder:t}=u,n=Dt(u,{avatarBg:t,avatarColor:e});return[nn(n),rn(n)]},u=>{const{controlHeight:e,controlHeightLG:t,controlHeightSM:n,fontSize:r,fontSizeLG:c,fontSizeXL:i,fontSizeHeading3:o,marginXS:a,marginXXS:s,colorBorderBg:l}=u;return{containerSize:e,containerSizeLG:t,containerSizeSM:n,textFontSize:Math.round((c+i)/2),textFontSizeLG:o,textFontSizeSM:r,groupSpace:s,groupOverlapping:-a,groupBorderColor:l}}),R0=Symbol("AvatarContextKey"),cn=()=>At(R0,{}),on=u=>Ft(R0,u),an=()=>({prefixCls:String,shape:{type:String,default:"circle"},size:{type:[Number,String,Object],default:()=>"default"},src:String,srcset:String,icon:St.any,alt:String,gap:Number,draggable:{type:Boolean,default:void 0},crossOrigin:String,loadError:{type:Function}}),_u=Q({compatConfig:{MODE:3},name:"AAvatar",inheritAttrs:!1,props:an(),slots:Object,setup(u,e){let{slots:t,attrs:n}=e;const r=Au(!0),c=Au(!1),i=Au(1),o=Au(null),a=Au(null),{prefixCls:s}=oe("avatar",u),[l,f]=M0(s),h=cn(),d=Z(()=>u.size==="default"?h.size:u.size),p=Gt(),C=Xt(()=>{if(typeof u.size!="object")return;const b=Qt.find(g=>p.value[g]);return u.size[b]}),k=b=>C.value?{width:`${C.value}px`,height:`${C.value}px`,lineHeight:`${C.value}px`,fontSize:`${b?C.value/2:18}px`}:{},E=()=>{if(!o.value||!a.value)return;const b=o.value.offsetWidth,x=a.value.offsetWidth;if(b!==0&&x!==0){const{gap:g=4}=u;g*2{const{loadError:b}=u;(b==null?void 0:b())!==!1&&(r.value=!1)};return yu(()=>u.src,()=>{gu(()=>{r.value=!0,i.value=1})}),yu(()=>u.gap,()=>{gu(()=>{E()})}),Hu(()=>{gu(()=>{E(),c.value=!0})}),()=>{var b,x;const{shape:g,src:D,alt:T,srcset:B,draggable:L,crossOrigin:N}=u,K=(b=h.shape)!==null&&b!==void 0?b:g,au=E0(t,u,"icon"),G=s.value,bu={[`${n.class}`]:!!n.class,[G]:!0,[`${G}-lg`]:d.value==="large",[`${G}-sm`]:d.value==="small",[`${G}-${K}`]:!0,[`${G}-image`]:D&&r.value,[`${G}-icon`]:au,[f.value]:!0},y=typeof d.value=="number"?{width:`${d.value}px`,height:`${d.value}px`,lineHeight:`${d.value}px`,fontSize:au?`${d.value/2}px`:"18px"}:{},A=(x=t.default)===null||x===void 0?void 0:x.call(t);let F;if(D&&r.value)F=_("img",{draggable:L,src:D,srcset:B,onError:m,alt:T,crossorigin:N},null);else if(au)F=au;else if(c.value||i.value!==1){const I=`scale(${i.value}) translateX(-50%)`,R={msTransform:I,WebkitTransform:I,transform:I},tu=typeof d.value=="number"?{lineHeight:`${d.value}px`}:{};F=_(I0,{onResize:E},{default:()=>[_("span",{class:`${G}-string`,ref:o,style:v(v({},tu),R)},[A])]})}else F=_("span",{class:`${G}-string`,ref:o,style:{opacity:0}},[A]);return l(_("span",H(H({},n),{},{ref:a,class:bu,style:[y,k(!!au),n.style]}),[F]))}}}),sn=()=>({prefixCls:String,maxCount:Number,maxStyle:{type:Object,default:void 0},maxPopoverPlacement:{type:String,default:"top"},maxPopoverTrigger:String,size:{type:[Number,String,Object],default:"default"},shape:{type:String,default:"circle"}}),Fe=Q({compatConfig:{MODE:3},name:"AAvatarGroup",inheritAttrs:!1,props:sn(),setup(u,e){let{slots:t,attrs:n}=e;const{prefixCls:r,direction:c}=oe("avatar",u),i=Z(()=>`${r.value}-group`),[o,a]=M0(r);return A0(()=>{const s={size:u.size,shape:u.shape};on(s)}),()=>{const{maxPopoverPlacement:s="top",maxCount:l,maxStyle:f,maxPopoverTrigger:h="hover",shape:d}=u,p={[i.value]:!0,[`${i.value}-rtl`]:c.value==="rtl",[`${n.class}`]:!!n.class,[a.value]:!0},C=E0(t,u),k=wt(C).map((m,b)=>Kt(m,{key:`avatar-key-${b}`})),E=k.length;if(l&&l[_(_u,{style:f,shape:d},{default:()=>[`+${E-l}`]})]})),o(_("div",H(H({},n),{},{class:p,style:n.style}),[m]))}return o(_("div",H(H({},n),{},{class:p,style:n.style}),[k]))}}});_u.Group=Fe;_u.install=function(u){return u.component(_u.name,_u),u.component(Fe.name,Fe),u};var ln=function(u,e){var t={};for(var n in u)Object.prototype.hasOwnProperty.call(u,n)&&e.indexOf(n)<0&&(t[n]=u[n]);if(u!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,n=Object.getOwnPropertySymbols(u);r{const{keyCode:d}=h;d===Pu.ENTER&&h.preventDefault()},a=h=>{const{keyCode:d}=h;d===Pu.ENTER&&n("click",h)},s=h=>{n("click",h)},l=()=>{i.value&&i.value.focus()},f=()=>{i.value&&i.value.blur()};return Hu(()=>{u.autofocus&&l()}),c({focus:l,blur:f}),()=>{var h;const{noStyle:d,disabled:p}=u,C=ln(u,["noStyle","disabled"]);let k={};return d||(k=v({},fn)),p&&(k.pointerEvents="none"),_("div",H(H(H({role:"button",tabindex:0,ref:i},C),r),{},{onClick:s,onKeydown:o,onKeyup:a,style:v(v({},k),r.style||{})}),[(h=t.default)===null||h===void 0?void 0:h.call(t)])}}});var dn={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"};function Je(u){for(var e=1;e{const{sizeMarginHeadingVerticalEnd:r,fontWeightStrong:c}=n;return{marginBottom:r,color:t,fontWeight:c,fontSize:u,lineHeight:e}},bn=u=>{const e=[1,2,3,4,5],t={};return e.forEach(n=>{t[` + h${n}&, + div&-h${n}, + div&-h${n} > textarea, + h${n} + `]=hn(u[`fontSizeHeading${n}`],u[`lineHeightHeading${n}`],u.colorTextHeading,u)}),t},mn=u=>{const{componentCls:e}=u;return{"a&, a":v(v({},B0(u)),{textDecoration:u.linkDecoration,"&:active, &:hover":{textDecoration:u.linkHoverDecoration},[`&[disabled], &${e}-disabled`]:{color:u.colorTextDisabled,cursor:"not-allowed","&:active, &:hover":{color:u.colorTextDisabled},"&:active":{pointerEvents:"none"}}})}},xn=()=>({code:{margin:"0 0.2em",paddingInline:"0.4em",paddingBlock:"0.2em 0.1em",fontSize:"85%",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%",background:"rgba(150, 150, 150, 0.06)",border:"1px solid rgba(100, 100, 100, 0.2)",borderBottomWidth:2,borderRadius:3},mark:{padding:0,backgroundColor:Tt[2]},"u, ins":{textDecoration:"underline",textDecorationSkipInk:"auto"},"s, del":{textDecoration:"line-through"},strong:{fontWeight:600},"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,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}}),gn=u=>{const{componentCls:e}=u,n=jt(u).inputPaddingVertical+1;return{"&-edit-content":{position:"relative","div&":{insetInlineStart:-u.paddingSM,marginTop:-n,marginBottom:`calc(1em - ${n}px)`},[`${e}-edit-content-confirm`]:{position:"absolute",insetInlineEnd:u.marginXS+2,insetBlockEnd:u.marginXS,color:u.colorTextDescription,fontWeight:"normal",fontSize:u.fontSize,fontStyle:"normal",pointerEvents:"none"},textarea:{margin:"0!important",MozTransition:"none",height:"1em"}}}},_n=u=>({"&-copy-success":{"\n &,\n &:hover,\n &:focus":{color:u.colorSuccess}}}),yn=()=>({"\n a&-ellipsis,\n span&-ellipsis\n ":{display:"inline-block",maxWidth:"100%"},"&-single-line":{whiteSpace:"nowrap"},"&-ellipsis-single-line":{overflow:"hidden",textOverflow:"ellipsis","a&, span&":{verticalAlign:"bottom"}},"&-ellipsis-multiple-line":{display:"-webkit-box",overflow:"hidden",WebkitLineClamp:3,WebkitBoxOrient:"vertical"}}),kn=u=>{const{componentCls:e,sizeMarginHeadingVerticalStart:t}=u;return{[e]:v(v(v(v(v(v(v(v(v({color:u.colorText,wordBreak:"break-word",lineHeight:u.lineHeight,[`&${e}-secondary`]:{color:u.colorTextDescription},[`&${e}-success`]:{color:u.colorSuccess},[`&${e}-warning`]:{color:u.colorWarning},[`&${e}-danger`]:{color:u.colorError,"a&:active, a&:focus":{color:u.colorErrorActive},"a&:hover":{color:u.colorErrorHover}},[`&${e}-disabled`]:{color:u.colorTextDisabled,cursor:"not-allowed",userSelect:"none"},"\n div&,\n p\n ":{marginBottom:"1em"}},bn(u)),{[` + & + h1${e}, + & + h2${e}, + & + h3${e}, + & + h4${e}, + & + h5${e} + `]:{marginTop:t},"\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:t}}}),xn()),mn(u)),{[` + ${e}-expand, + ${e}-edit, + ${e}-copy + `]:v(v({},B0(u)),{marginInlineStart:u.marginXXS})}),gn(u)),_n(u)),yn()),{"&-rtl":{direction:"rtl"}})}},$0=D0("Typography",u=>[kn(u)],{sizeMarginHeadingVerticalStart:"1.2em",sizeMarginHeadingVerticalEnd:"0.5em"}),Cn=()=>({prefixCls:String,value:String,maxlength:Number,autoSize:{type:[Boolean,Object]},onSave:Function,onCancel:Function,onEnd:Function,onChange:Function,originContent:String,direction:String,component:String}),vn=Q({compatConfig:{MODE:3},name:"Editable",inheritAttrs:!1,props:Cn(),setup(u,e){let{emit:t,slots:n,attrs:r}=e;const{prefixCls:c}=Ot(u),i=F0({current:u.value||"",lastKeyCode:void 0,inComposition:!1,cancelFlag:!1});yu(()=>u.value,m=>{i.current=m});const o=ku();Hu(()=>{var m;if(o.value){const b=(m=o.value)===null||m===void 0?void 0:m.resizableTextArea,x=b==null?void 0:b.textArea;x.focus();const{length:g}=x.value;x.setSelectionRange(g,g)}});function a(m){o.value=m}function s(m){let{target:{value:b}}=m;i.current=b.replace(/[\r\n]/g,""),t("change",i.current)}function l(){i.inComposition=!0}function f(){i.inComposition=!1}function h(m){const{keyCode:b}=m;b===Pu.ENTER&&m.preventDefault(),!i.inComposition&&(i.lastKeyCode=b)}function d(m){const{keyCode:b,ctrlKey:x,altKey:g,metaKey:D,shiftKey:T}=m;i.lastKeyCode===b&&!i.inComposition&&!x&&!g&&!D&&!T&&(b===Pu.ENTER?(C(),t("end")):b===Pu.ESC&&(i.current=u.originContent,t("cancel")))}function p(){C()}function C(){t("save",i.current.trim())}const[k,E]=$0(c);return()=>{const m=S0({[`${c.value}`]:!0,[`${c.value}-edit-content`]:!0,[`${c.value}-rtl`]:u.direction==="rtl",[u.component?`${c.value}-${u.component}`:""]:!0},r.class,E.value);return k(_("div",H(H({},r),{},{class:m}),[_(Ht,{ref:a,maxlength:u.maxlength,value:i.current,onChange:s,onKeydown:h,onKeyup:d,onCompositionstart:l,onCompositionend:f,onBlur:p,rows:1,autoSize:u.autoSize===void 0||u.autoSize},null),n.enterIcon?n.enterIcon({className:`${u.prefixCls}-edit-content-confirm`}):_(Oe,{class:`${u.prefixCls}-edit-content-confirm`},null)]))}}}),Dn=3,En=8;let q;const _e={padding:0,margin:0,display:"inline",lineHeight:"inherit"};function L0(u,e){u.setAttribute("aria-hidden","true");const t=window.getComputedStyle(e),n=Ut(t);u.setAttribute("style",n),u.style.position="fixed",u.style.left="0",u.style.height="auto",u.style.minHeight="auto",u.style.maxHeight="auto",u.style.paddingTop="0",u.style.paddingBottom="0",u.style.borderTopWidth="0",u.style.borderBottomWidth="0",u.style.top="-999999px",u.style.zIndex="-1000",u.style.textOverflow="clip",u.style.whiteSpace="normal",u.style.webkitLineClamp="none"}function An(u){const e=document.createElement("div");L0(e,u),e.appendChild(document.createTextNode("text")),document.body.appendChild(e);const t=e.getBoundingClientRect().height;return document.body.removeChild(e),t}const Fn=(u,e,t,n,r)=>{q||(q=document.createElement("div"),q.setAttribute("aria-hidden","true"),document.body.appendChild(q));const{rows:c,suffix:i=""}=e,o=An(u),a=Math.round(o*c*100)/100;L0(q,u);const s=zt({render(){return _("div",{style:_e},[_("span",{style:_e},[t,i]),_("span",{style:_e},[n])])}});s.mount(q);function l(){return Math.round(q.getBoundingClientRect().height*100)/100-.1<=a}if(l())return s.unmount(),{content:t,text:q.innerHTML,ellipsis:!1};const f=Array.prototype.slice.apply(q.childNodes[0].childNodes[0].cloneNode(!0).childNodes).filter(b=>{let{nodeType:x,data:g}=b;return x!==En&&g!==""}),h=Array.prototype.slice.apply(q.childNodes[0].childNodes[1].cloneNode(!0).childNodes);s.unmount();const d=[];q.innerHTML="";const p=document.createElement("span");q.appendChild(p);const C=document.createTextNode(r+i);p.appendChild(C),h.forEach(b=>{q.appendChild(b)});function k(b){p.insertBefore(b,C)}function E(b,x){let g=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,D=arguments.length>3&&arguments[3]!==void 0?arguments[3]:x.length,T=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0;const B=Math.floor((g+D)/2),L=x.slice(0,B);if(b.textContent=L,g>=D-1)for(let N=D;N>=g;N-=1){const K=x.slice(0,N);if(b.textContent=K,l()||!K)return N===x.length?{finished:!1,vNode:x}:{finished:!0,vNode:K}}return l()?E(b,x,B,D,B):E(b,x,g,B,T)}function m(b){if(b.nodeType===Dn){const g=b.textContent||"",D=document.createTextNode(g);return k(D),E(D,g)}return{finished:!1,vNode:null}}return f.some(b=>{const{finished:x,vNode:g}=m(b);return g&&d.push(g),x}),{content:d,text:q.innerHTML,ellipsis:!0}};var Sn=function(u,e){var t={};for(var n in u)Object.prototype.hasOwnProperty.call(u,n)&&e.indexOf(n)<0&&(t[n]=u[n]);if(u!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,n=Object.getOwnPropertySymbols(u);r({prefixCls:String,direction:String,component:String}),j=Q({name:"ATypography",inheritAttrs:!1,props:wn(),setup(u,e){let{slots:t,attrs:n}=e;const{prefixCls:r,direction:c}=oe("typography",u),[i,o]=$0(r);return()=>{var a;const s=v(v({},u),n),{prefixCls:l,direction:f,component:h="article"}=s,d=Sn(s,["prefixCls","direction","component"]);return i(_(h,H(H({},d),{},{class:S0(r.value,{[`${r.value}-rtl`]:c.value==="rtl"},n.class,o.value)}),{default:()=>[(a=t.default)===null||a===void 0?void 0:a.call(t)]}))}}}),Tn=()=>{const u=document.getSelection();if(!u.rangeCount)return function(){};let e=document.activeElement;const t=[];for(let n=0;n"u"){a&&console.warn("unable to use e.clipboardData"),a&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();const f=Qe[e.format]||Qe.default;window.clipboardData.setData(f,u)}else l.clipboardData.clearData(),l.clipboardData.setData(e.format,u);e.onCopy&&(l.preventDefault(),e.onCopy(l.clipboardData))}),document.body.appendChild(i),r.selectNodeContents(i),c.addRange(r),!document.execCommand("copy"))throw new Error("copy command was unsuccessful");o=!0}catch(s){a&&console.error("unable to copy using execCommand: ",s),a&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(e.format||"text",u),e.onCopy&&e.onCopy(window.clipboardData),o=!0}catch(l){a&&console.error("unable to copy using clipboardData: ",l),a&&console.error("falling back to prompt"),t=zn("message"in e?e.message:On),window.prompt(t,u)}}finally{c&&(typeof c.removeRange=="function"?c.removeRange(r):c.removeAllRanges()),i&&document.body.removeChild(i),n()}return o}var In={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"};function Ke(u){for(var e=1;e({editable:{type:[Boolean,Object],default:void 0},copyable:{type:[Boolean,Object],default:void 0},prefixCls:String,component:String,type:String,disabled:{type:Boolean,default:void 0},ellipsis:{type:[Boolean,Object],default:void 0},code:{type:Boolean,default:void 0},mark:{type:Boolean,default:void 0},underline:{type:Boolean,default:void 0},delete:{type:Boolean,default:void 0},strong:{type:Boolean,default:void 0},keyboard:{type:Boolean,default:void 0},content:String,"onUpdate:content":Function}),Vu=Q({compatConfig:{MODE:3},name:"TypographyBase",inheritAttrs:!1,props:Uu(),setup(u,e){let{slots:t,attrs:n,emit:r}=e;const{prefixCls:c,direction:i}=oe("typography",u),o=F0({copied:!1,ellipsisText:"",ellipsisContent:null,isEllipsis:!1,expanded:!1,clientRendered:!1,expandStr:"",copyStr:"",copiedStr:"",editStr:"",copyId:void 0,rafId:void 0,prevProps:void 0,originContent:""}),a=ku(),s=ku(),l=Z(()=>{const y=u.ellipsis;return y?v({rows:1,expandable:!1},typeof y=="object"?y:null):{}});Hu(()=>{o.clientRendered=!0,B()}),Bt(()=>{clearTimeout(o.copyId),me.cancel(o.rafId)}),yu([()=>l.value.rows,()=>u.content],()=>{gu(()=>{D()})},{flush:"post",deep:!0}),A0(()=>{u.content===void 0&&(We(!u.editable),We(!u.ellipsis))});function f(){var y;return u.ellipsis||u.editable?u.content:(y=be(a.value))===null||y===void 0?void 0:y.innerText}function h(y){const{onExpand:A}=l.value;o.expanded=!0,A==null||A(y)}function d(y){y.preventDefault(),o.originContent=u.content,g(!0)}function p(y){C(y),g(!1)}function C(y){const{onChange:A}=m.value;y!==u.content&&(r("update:content",y),A==null||A(y))}function k(){var y,A;(A=(y=m.value).onCancel)===null||A===void 0||A.call(y),g(!1)}function E(y){y.preventDefault(),y.stopPropagation();const{copyable:A}=u,F=v({},typeof A=="object"?A:null);F.text===void 0&&(F.text=f()),Bn(F.text||""),o.copied=!0,gu(()=>{F.onCopy&&F.onCopy(y),o.copyId=setTimeout(()=>{o.copied=!1},3e3)})}const m=Z(()=>{const y=u.editable;return y?v({},typeof y=="object"?y:null):{editing:!1}}),[b,x]=Vt(!1,{value:Z(()=>m.value.editing)});function g(y){const{onStart:A}=m.value;y&&A&&A(),x(y)}yu(b,y=>{var A;y||(A=s.value)===null||A===void 0||A.focus()},{flush:"post"});function D(y){if(y){const{width:A,height:F}=y;if(!A||!F)return}me.cancel(o.rafId),o.rafId=me(()=>{B()})}const T=Z(()=>{const{rows:y,expandable:A,suffix:F,onEllipsis:I,tooltip:R}=l.value;return F||R||u.editable||u.copyable||A||I?!1:y===1?Nn:Ln}),B=()=>{const{ellipsisText:y,isEllipsis:A}=o,{rows:F,suffix:I,onEllipsis:R}=l.value;if(!F||F<0||!be(a.value)||o.expanded||u.content===void 0||T.value)return;const{content:tu,text:vu,ellipsis:mu}=Fn(be(a.value),{rows:F,suffix:I},u.content,bu(!0),u0);(y!==vu||o.isEllipsis!==mu)&&(o.ellipsisText=vu,o.ellipsisContent=tu,o.isEllipsis=mu,A!==mu&&R&&R(mu))};function L(y,A){let{mark:F,code:I,underline:R,delete:tu,strong:vu,keyboard:mu}=y,Iu=A;function lu(Yu,Y){if(!Yu)return;const ue=function(){return Iu}();Iu=_(Y,null,{default:()=>[ue]})}return lu(vu,"strong"),lu(R,"u"),lu(tu,"del"),lu(I,"code"),lu(F,"mark"),lu(mu,"kbd"),Iu}function N(y){const{expandable:A,symbol:F}=l.value;if(!A||!y&&(o.expanded||!o.isEllipsis))return null;const I=(t.ellipsisSymbol?t.ellipsisSymbol():F)||o.expandStr;return _("a",{key:"expand",class:`${c.value}-expand`,onClick:h,"aria-label":o.expandStr},[I])}function K(){if(!u.editable)return;const{tooltip:y,triggerType:A=["icon"]}=u.editable,F=t.editableIcon?t.editableIcon():_(ie,{role:"button"},null),I=t.editableTooltip?t.editableTooltip():o.editStr,R=typeof I=="string"?I:"";return A.indexOf("icon")!==-1?_(xe,{key:"edit",title:y===!1?"":I},{default:()=>[_(Xe,{ref:s,class:`${c.value}-edit`,onClick:d,"aria-label":R},{default:()=>[F]})]}):null}function au(){if(!u.copyable)return;const{tooltip:y}=u.copyable,A=o.copied?o.copiedStr:o.copyStr,F=t.copyableTooltip?t.copyableTooltip({copied:o.copied}):A,I=typeof F=="string"?F:"",R=o.copied?_(Zt,null,null):_(ze,null,null),tu=t.copyableIcon?t.copyableIcon({copied:!!o.copied}):R;return _(xe,{key:"copy",title:y===!1?"":F},{default:()=>[_(Xe,{class:[`${c.value}-copy`,{[`${c.value}-copy-success`]:o.copied}],onClick:E,"aria-label":I},{default:()=>[tu]})]})}function G(){const{class:y,style:A}=n,{maxlength:F,autoSize:I,onEnd:R}=m.value;return _(vn,{class:y,style:A,prefixCls:c.value,value:u.content,originContent:o.originContent,maxlength:F,autoSize:I,onSave:p,onChange:C,onCancel:k,onEnd:R,direction:i.value,component:u.component},{enterIcon:t.editableEnterIcon})}function bu(y){return[N(y),K(),au()].filter(A=>A)}return()=>{var y;const{triggerType:A=["icon"]}=m.value,F=u.ellipsis||u.editable?u.content!==void 0?u.content:(y=t.default)===null||y===void 0?void 0:y.call(t):t.default?t.default():u.content;return b.value?G():_(Pt,{componentName:"Text",children:I=>{const R=v(v({},u),n),{type:tu,disabled:vu,content:mu,class:Iu,style:lu}=R,Yu=$n(R,["type","disabled","content","class","style"]),{rows:Y,suffix:ue,tooltip:he}=l.value,{edit:pt,copy:ht,copied:bt,expand:mt}=I;o.editStr=pt,o.copyStr=ht,o.copiedStr=bt,o.expandStr=mt;const xt=zu(Yu,["prefixCls","editable","copyable","ellipsis","mark","code","delete","underline","strong","keyboard","onUpdate:content"]),ee=T.value,gt=Y===1&&ee,Ue=Y&&Y>1&ⅇlet Du=F,_t;if(Y&&o.isEllipsis&&!o.expanded&&!ee){const{title:Ve}=Yu;let Eu=Ve||"";!Ve&&(typeof F=="string"||typeof F=="number")&&(Eu=String(F)),Eu=Eu==null?void 0:Eu.slice(String(o.ellipsisContent||"").length),Du=_(pu,null,[It(o.ellipsisContent),_("span",{title:Eu,"aria-hidden":"true"},[u0]),ue])}else Du=_(pu,null,[F,ue]);Du=L(u,Du);const yt=he&&Y&&o.isEllipsis&&!o.expanded&&!ee,kt=t.ellipsisTooltip?t.ellipsisTooltip():he;return _(I0,{onResize:D,disabled:!Y},{default:()=>[_(j,H({ref:a,class:[{[`${c.value}-${tu}`]:tu,[`${c.value}-disabled`]:vu,[`${c.value}-ellipsis`]:Y,[`${c.value}-single-line`]:Y===1&&!o.isEllipsis,[`${c.value}-ellipsis-single-line`]:gt,[`${c.value}-ellipsis-multiple-line`]:Ue},Iu],style:v(v({},lu),{WebkitLineClamp:Ue?Y:void 0}),"aria-label":_t,direction:i.value,onClick:A.indexOf("text")!==-1?d:()=>{}},xt),{default:()=>[yt?_(xe,{title:he===!0?F:kt},{default:()=>[_("span",null,[Du])]}):Du,bu()]})]})}},null)}}});var qn=function(u,e){var t={};for(var n in u)Object.prototype.hasOwnProperty.call(u,n)&&e.indexOf(n)<0&&(t[n]=u[n]);if(u!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,n=Object.getOwnPropertySymbols(u);rzu(v(v({},Uu()),{ellipsis:{type:Boolean,default:void 0}}),["component"]),Zu=(u,e)=>{let{slots:t,attrs:n}=e;const r=v(v({},u),n),{ellipsis:c,rel:i}=r,o=qn(r,["ellipsis","rel"]),a=v(v({},o),{rel:i===void 0&&o.target==="_blank"?"noopener noreferrer":i,ellipsis:!!c,component:"a"});return delete a.navigate,_(Vu,a,t)};Zu.displayName="ATypographyLink";Zu.inheritAttrs=!1;Zu.props=jn();const Hn=()=>zu(Uu(),["component"]),Wu=(u,e)=>{let{slots:t,attrs:n}=e;const r=v(v(v({},u),{component:"div"}),n);return _(Vu,r,t)};Wu.displayName="ATypographyParagraph";Wu.inheritAttrs=!1;Wu.props=Hn();const Un=()=>v(v({},zu(Uu(),["component"])),{ellipsis:{type:[Boolean,Object],default:void 0}}),Gu=(u,e)=>{let{slots:t,attrs:n}=e;const{ellipsis:r}=u,c=v(v(v({},u),{ellipsis:r&&typeof r=="object"?zu(r,["expandable","rows"]):r,component:"span"}),n);return _(Vu,c,t)};Gu.displayName="ATypographyText";Gu.inheritAttrs=!1;Gu.props=Un();var Vn=function(u,e){var t={};for(var n in u)Object.prototype.hasOwnProperty.call(u,n)&&e.indexOf(n)<0&&(t[n]=u[n]);if(u!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,n=Object.getOwnPropertySymbols(u);rv(v({},zu(Uu(),["component","strong"])),{level:Number}),Xu=(u,e)=>{let{slots:t,attrs:n}=e;const{level:r=1}=u,c=Vn(u,["level"]);let i;Zn.includes(r)?i=`h${r}`:i="h1";const o=v(v(v({},c),{component:i}),n);return _(Vu,o,t)};Xu.displayName="ATypographyTitle";Xu.inheritAttrs=!1;Xu.props=Wn();j.Text=Gu;j.Title=Xu;j.Paragraph=Wu;j.Link=Zu;j.Base=Vu;j.install=function(u){return u.component(j.name,j),u.component(j.Text.displayName,Gu),u.component(j.Title.displayName,Xu),u.component(j.Paragraph.displayName,Wu),u.component(j.Link.displayName,Zu),u};var Gn={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 42h216v494zM544 472c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v108H372c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h108v108c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V644h108c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H544V472z"}}]},name:"file-add",theme:"outlined"};function e0(u){for(var e=1;e(w(),z("div",{class:Mu(["chat-sidebar",{"chat-sidebar--collapsed":n.value}])},[n.value?uu("",!0):(w(),z("div",tr,[$("div",nr,[_(S(Te),{type:"primary",block:"",size:"small",onClick:r},{icon:X(()=>[_(S(z0))]),default:X(()=>[a[1]||(a[1]=Fu(" 新建对话 ",-1))]),_:1})]),$("div",rr,[u.conversations.length===0?(w(),V(S(w0),{key:0,description:"暂无对话","image-style":{height:"40px"}})):uu("",!0),(w(!0),z(pu,null,Ru(u.conversations,s=>(w(),z("div",{key:s.id,class:Mu(["chat-sidebar__item",{"chat-sidebar__item--active":s.id===u.currentId}]),onClick:l=>c(s.id)},[_(S(Ct),{class:"chat-sidebar__item-icon"}),$("span",or,nu(s.title),1),$("span",ir,nu(i(s.updated_at)),1)],10,cr))),128))])])),$("button",{class:"chat-sidebar__toggle",onClick:a[0]||(a[0]=s=>n.value=!n.value),title:n.value?"展开":"折叠"},[n.value?(w(),V(S(O0),{key:0})):(w(),V(S(qt),{key:1}))],8,ar)],2))}}),lr=Ou(sr,[["__scopeId","data-v-4642eb28"]]),c0={};function fr(u){let e=c0[u];if(e)return e;e=c0[u]=[];for(let t=0;t<128;t++){const n=String.fromCharCode(t);e.push(n)}for(let t=0;t=55296&&l<=57343?r+="���":r+=String.fromCharCode(l),c+=6;continue}}if((o&248)===240&&c+91114111?r+="����":(f-=65536,r+=String.fromCharCode(55296+(f>>10),56320+(f&1023))),c+=9;continue}}r+="�"}return r})}wu.defaultChars=";/?:@&=+$,#";wu.componentChars="";const o0={};function dr(u){let e=o0[u];if(e)return e;e=o0[u]=[];for(let t=0;t<128;t++){const n=String.fromCharCode(t);/^[0-9a-z]$/i.test(n)?e.push(n):e.push("%"+("0"+t.toString(16).toUpperCase()).slice(-2))}for(let t=0;t"u"&&(t=!0);const n=dr(e);let r="";for(let c=0,i=u.length;c=55296&&o<=57343){if(o>=55296&&o<=56319&&c+1=56320&&a<=57343){r+=encodeURIComponent(u[c]+u[c+1]),c++;continue}}r+="%EF%BF%BD";continue}r+=encodeURIComponent(u[c])}return r}Ju.defaultChars=";/?:@&=+$,-_.!~*'()#";Ju.componentChars="-_.!~*'()";function Me(u){let e="";return e+=u.protocol||"",e+=u.slashes?"//":"",e+=u.auth?u.auth+"@":"",u.hostname&&u.hostname.indexOf(":")!==-1?e+="["+u.hostname+"]":e+=u.hostname||"",e+=u.port?":"+u.port:"",e+=u.pathname||"",e+=u.search||"",e+=u.hash||"",e}function re(){this.protocol=null,this.slashes=null,this.auth=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.pathname=null}const pr=/^([a-z0-9.+-]+:)/i,hr=/:[0-9]*$/,br=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,mr=["<",">",'"',"`"," ","\r",` +`," "],xr=["{","}","|","\\","^","`"].concat(mr),gr=["'"].concat(xr),i0=["%","/","?",";","#"].concat(gr),a0=["/","?","#"],_r=255,s0=/^[+a-z0-9A-Z_-]{0,63}$/,yr=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,l0={javascript:!0,"javascript:":!0},f0={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};function Re(u,e){if(u&&u instanceof re)return u;const t=new re;return t.parse(u,e),t}re.prototype.parse=function(u,e){let t,n,r,c=u;if(c=c.trim(),!e&&u.split("#").length===1){const s=br.exec(c);if(s)return this.pathname=s[1],s[2]&&(this.search=s[2]),this}let i=pr.exec(c);if(i&&(i=i[0],t=i.toLowerCase(),this.protocol=i,c=c.substr(i.length)),(e||i||c.match(/^\/\/[^@\/]+@[^@\/]+/))&&(r=c.substr(0,2)==="//",r&&!(i&&l0[i])&&(c=c.substr(2),this.slashes=!0)),!l0[i]&&(r||i&&!f0[i])){let s=-1;for(let p=0;p127?m+="x":m+=E[b];if(!m.match(s0)){const b=p.slice(0,C),x=p.slice(C+1),g=E.match(yr);g&&(b.push(g[1]),x.unshift(g[2])),x.length&&(c=x.join(".")+c),this.hostname=b.join(".");break}}}}this.hostname.length>_r&&(this.hostname=""),d&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}const o=c.indexOf("#");o!==-1&&(this.hash=c.substr(o),c=c.slice(0,o));const a=c.indexOf("?");return a!==-1&&(this.search=c.substr(a),c=c.slice(0,a)),c&&(this.pathname=c),f0[t]&&this.hostname&&!this.pathname&&(this.pathname=""),this};re.prototype.parseHost=function(u){let e=hr.exec(u);e&&(e=e[0],e!==":"&&(this.port=e.substr(1)),u=u.substr(0,u.length-e.length)),u&&(this.hostname=u)};const kr=Object.freeze(Object.defineProperty({__proto__:null,decode:wu,encode:Ju,format:Me,parse:Re},Symbol.toStringTag,{value:"Module"})),N0=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,q0=/[\0-\x1F\x7F-\x9F]/,Cr=/[\xAD\u0600-\u0605\u061C\u06DD\u070F\u0890\u0891\u08E2\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804[\uDCBD\uDCCD]|\uD80D[\uDC30-\uDC3F]|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/,$e=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061D-\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1B7D\u1B7E\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52-\u2E5D\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDEAD\uDF55-\uDF59\uDF86-\uDF89]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5A\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDEB9\uDF3C-\uDF3E]|\uD806[\uDC3B\uDD44-\uDD46\uDDE2\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2\uDF00-\uDF09]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8\uDF43-\uDF4F\uDFFF]|\uD809[\uDC70-\uDC74]|\uD80B[\uDFF1\uDFF2]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A\uDFE2]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/,j0=/[\$\+<->\^`\|~\xA2-\xA6\xA8\xA9\xAC\xAE-\xB1\xB4\xB8\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0384\u0385\u03F6\u0482\u058D-\u058F\u0606-\u0608\u060B\u060E\u060F\u06DE\u06E9\u06FD\u06FE\u07F6\u07FE\u07FF\u0888\u09F2\u09F3\u09FA\u09FB\u0AF1\u0B70\u0BF3-\u0BFA\u0C7F\u0D4F\u0D79\u0E3F\u0F01-\u0F03\u0F13\u0F15-\u0F17\u0F1A-\u0F1F\u0F34\u0F36\u0F38\u0FBE-\u0FC5\u0FC7-\u0FCC\u0FCE\u0FCF\u0FD5-\u0FD8\u109E\u109F\u1390-\u1399\u166D\u17DB\u1940\u19DE-\u19FF\u1B61-\u1B6A\u1B74-\u1B7C\u1FBD\u1FBF-\u1FC1\u1FCD-\u1FCF\u1FDD-\u1FDF\u1FED-\u1FEF\u1FFD\u1FFE\u2044\u2052\u207A-\u207C\u208A-\u208C\u20A0-\u20C0\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F\u218A\u218B\u2190-\u2307\u230C-\u2328\u232B-\u2426\u2440-\u244A\u249C-\u24E9\u2500-\u2767\u2794-\u27C4\u27C7-\u27E5\u27F0-\u2982\u2999-\u29D7\u29DC-\u29FB\u29FE-\u2B73\u2B76-\u2B95\u2B97-\u2BFF\u2CE5-\u2CEA\u2E50\u2E51\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFF\u3004\u3012\u3013\u3020\u3036\u3037\u303E\u303F\u309B\u309C\u3190\u3191\u3196-\u319F\u31C0-\u31E3\u31EF\u3200-\u321E\u322A-\u3247\u3250\u3260-\u327F\u328A-\u32B0\u32C0-\u33FF\u4DC0-\u4DFF\uA490-\uA4C6\uA700-\uA716\uA720\uA721\uA789\uA78A\uA828-\uA82B\uA836-\uA839\uAA77-\uAA79\uAB5B\uAB6A\uAB6B\uFB29\uFBB2-\uFBC2\uFD40-\uFD4F\uFDCF\uFDFC-\uFDFF\uFE62\uFE64-\uFE66\uFE69\uFF04\uFF0B\uFF1C-\uFF1E\uFF3E\uFF40\uFF5C\uFF5E\uFFE0-\uFFE6\uFFE8-\uFFEE\uFFFC\uFFFD]|\uD800[\uDD37-\uDD3F\uDD79-\uDD89\uDD8C-\uDD8E\uDD90-\uDD9C\uDDA0\uDDD0-\uDDFC]|\uD802[\uDC77\uDC78\uDEC8]|\uD805\uDF3F|\uD807[\uDFD5-\uDFF1]|\uD81A[\uDF3C-\uDF3F\uDF45]|\uD82F\uDC9C|\uD833[\uDF50-\uDFC3]|\uD834[\uDC00-\uDCF5\uDD00-\uDD26\uDD29-\uDD64\uDD6A-\uDD6C\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDDEA\uDE00-\uDE41\uDE45\uDF00-\uDF56]|\uD835[\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85\uDE86]|\uD838[\uDD4F\uDEFF]|\uD83B[\uDCAC\uDCB0\uDD2E\uDEF0\uDEF1]|\uD83C[\uDC00-\uDC2B\uDC30-\uDC93\uDCA0-\uDCAE\uDCB1-\uDCBF\uDCC1-\uDCCF\uDCD1-\uDCF5\uDD0D-\uDDAD\uDDE6-\uDE02\uDE10-\uDE3B\uDE40-\uDE48\uDE50\uDE51\uDE60-\uDE65\uDF00-\uDFFF]|\uD83D[\uDC00-\uDED7\uDEDC-\uDEEC\uDEF0-\uDEFC\uDF00-\uDF76\uDF7B-\uDFD9\uDFE0-\uDFEB\uDFF0]|\uD83E[\uDC00-\uDC0B\uDC10-\uDC47\uDC50-\uDC59\uDC60-\uDC87\uDC90-\uDCAD\uDCB0\uDCB1\uDD00-\uDE53\uDE60-\uDE6D\uDE70-\uDE7C\uDE80-\uDE88\uDE90-\uDEBD\uDEBF-\uDEC5\uDECE-\uDEDB\uDEE0-\uDEE8\uDEF0-\uDEF8\uDF00-\uDF92\uDF94-\uDFCA]/,H0=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/,vr=Object.freeze(Object.defineProperty({__proto__:null,Any:N0,Cc:q0,Cf:Cr,P:$e,S:j0,Z:H0},Symbol.toStringTag,{value:"Module"})),Dr=new Uint16Array('ᵁ<Õıʊҝջאٵ۞ޢߖࠏ੊ઑඡ๭༉༦჊ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ὾⁠↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms„‹•˜¦³¹ÈÏlig耻Æ䃆P耻&䀦cute耻Á䃁reve;䄂Āiyx}rc耻Â䃂;䐐r;쀀𝔄rave耻À䃀pha;䎑acr;䄀d;橓Āgp¡on;䄄f;쀀𝔸plyFunction;恡ing耻Å䃅Ācs¾Ãr;쀀𝒜ign;扔ilde耻Ã䃃ml耻Ä䃄ЀaceforsuåûþėĜĢħĪĀcrêòkslash;或Ŷöø;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀𝔅pf;쀀𝔹eve;䋘còēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻©䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻Ç䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷òſi;䎧rcleȀDMPTLJNjǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀𝒞pĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀𝔇Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀𝔻ƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲ΂ϏϢϸontourIntegraìȹoɴ͹\0\0ͻ»͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔eåˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀𝒟rok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻Ð䃐cute耻É䃉ƀaiyӒӗӜron;䄚rc耻Ê䃊;䐭ot;䄖r;쀀𝔈rave耻È䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀𝔼silon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՗՚r;愰m;橳a;䎗ml耻Ë䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲ׌y;䐤r;쀀𝔉lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀𝔽All;戀riertrf;愱cò׋؀JTabcdfgorstר׬ׯ׺؀ؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d׷׸䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀𝔊;拙pf;쀀𝔾eater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀𝒢;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇܎ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lieóϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀𝕀a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻Ï䃏ʀcfosuެ޷޼߂ߐĀiyޱ޵rc;䄴;䐙r;쀀𝔍pf;쀀𝕁ǣ߇\0ߌr;쀀𝒥rcy;䐈kcy;䐄΀HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶߻dil;䄶;䐚r;쀀𝔎pf;쀀𝕂cr;쀀𝒦րJTaceflmostࠥࠩࠬࡐࡣ঳সে্਷ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗ࡜ࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४Ānrࢃ࢏gleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ightáΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀𝔏Ā;eঽা拘ftarrow;懚idot;䄿ƀnpw৔ਖਛgȀLRlr৞৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀𝕃erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼੝੠੷੼અઋ઎p;椅y;䐜Ādl੥੯iumSpace;恟lintrf;愳r;쀀𝔐nusPlus;戓pf;쀀𝕄cò੶;䎜ҀJacefostuણધભીଔଙඑ඗ඞcy;䐊cute;䅃ƀaey઴હાron;䅇dil;䅅;䐝ƀgswે૰଎ativeƀMTV૓૟૨ediumSpace;怋hiĀcn૦૘ë૙eryThiî૙tedĀGL૸ଆreaterGreateòٳessLesóੈLine;䀊r;쀀𝔑ȀBnptଢନଷ଺reak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪୼஡௫ఄ౞಄ದ೘ൡඅ櫬Āou୛୤ngruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊ஛ement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater΀;EFGLSTஶஷ஽௉௓௘௥扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲௽ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ೒拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨೹setĀ;E೰ೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀𝒩ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂ෉෕ෛ෠෧෼ขภยา฿ไlig;䅒cute耻Ó䃓Āiy෎ීrc耻Ô䃔;䐞blac;䅐r;쀀𝔒rave耻Ò䃒ƀaei෮ෲ෶cr;䅌ga;䎩cron;䎟pf;쀀𝕆enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀𝒪ash耻Ø䃘iŬื฼de耻Õ䃕es;樷ml耻Ö䃖erĀBP๋๠Āar๐๓r;怾acĀek๚๜;揞et;掴arenthesis;揜Ҁacfhilors๿ງຊຏຒດຝະ໼rtialD;戂y;䐟r;쀀𝔓i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ໠໤檻cedesȀ;EST່້໏໚扺qual;檯lantEqual;扼ilde;找me;怳Ādp໩໮uct;戏ortionĀ;aȥ໹l;戝Āci༁༆r;쀀𝒫;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀𝔔pf;愚cr;쀀𝒬؀BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVa࿁࿫࿳ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL࿜࿝࿡憒ar;懥eftArrow;懄eiling;按oǵ࿹\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀𝔖ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»࿝pArrow;憑gma;䎣allCircle;战pf;쀀𝕊ɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀𝒮ar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄ቉ቕ቞ቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHc቎ቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀𝔗Āeiቻ኉Dzኀ\0ኇefore;戴a;䎘Ācn኎ኘkSpace;쀀  Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀𝕋ipleDot;惛Āctዖዛr;쀀𝒯rok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0᏿ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\0጖y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀𝔘rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻፿on;䅲f;쀀𝕌ЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀𝒰ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀𝔙pf;쀀𝕍cr;쀀𝒱dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀𝔚pf;쀀𝕎cr;쀀𝒲Ȁfiosᓋᓐᓒᓘr;쀀𝔛;䎞pf;쀀𝕏cr;쀀𝒳ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀𝔜pf;쀀𝕐cr;쀀𝒴ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidtè૙a;䎖r;愨pf;愤cr;쀀𝒵௡ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀𝔞rave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚΀;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀𝕒΀;Eaeiop዁ᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;e዁ᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀𝒶;䀪mpĀ;e዁ᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰ᜼ᝃᝈ᝸᝽០៦ᠹᡐᜍ᤽᥈ᥰot;櫭Ācrᛶ᜞kȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e᜚᜛戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;t፜᜷brk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓ᝛ᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯ᝱ᝳ;䎲;愶een;扬r;쀀𝔟g΀costuvwឍឝឳេ៕៛៞ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀako៭ᠦᠵĀcn៲ᠣkƀlst៺֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘᠝斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀𝕓Ā;tᏋᡣom»Ꮜtie;拈؀DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬ᣿ᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教΀;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ᣷᣹᣻᣽;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ᤟;敛;敘;攘;攔΀;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģ᥂bar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀𝒷mi;恏mĀ;e᜚᜜lƀ;bhᥨᥩᥫ䁜;槅sub;柈Ŭᥴ᥾lĀ;e᥹᥺怢t»᥺pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭍᭒\0᯽\0ᰌƀcpr᦭ᦲ᧝ute;䄇̀;abcdsᦿᧀᧄ᧊᧕᧙戩nd;橄rcup;橉Āau᧏᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀𝔠ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r΀;Ecefms᩟᩠ᩢᩫ᪤᪪᪮旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖᪚᪟»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇᫔᫺\0ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ᫙\0\0᫢aĀ;t᫞᫟䀬;䁀ƀ;fl᫨᫩᫫戁îᅠeĀmx᫱᫶ent»᫩eóɍǧ᫾\0ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀𝕔oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀𝒸Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯΀delprvw᭠᭬᭷ᮂᮬᯔ᯹arrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;p᭿ᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒreã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰸᰻᰿ᱝᱩᱵᲊᲞᲬᲷ᳻᳿ᴍᵻᶑᶫᶻ᷆᷍rò΁ar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀𝔡arĀlrᲳᲵ»ࣜ»သʀaegsv᳂͸᳖᳜᳠mƀ;oș᳊᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀𝕕ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀𝒹;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄ὎὚ĀDoḆᴴoôᲉĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀𝔢ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀𝕖ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\0\0ỻíՈantĀglἂἆtr»ṝess»Ṻƀaeiἒ἖Ἒls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀𝔣lig;耀filig;쀀fjƀaltῙ῜ῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀𝕗ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao‌⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧‪‬\0‮耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻¾䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀𝒻ࢀEabcdefgijlnorstv₂₉₟₥₰₴⃰⃵⃺⃿℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕ₝ute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽⃉ƀ;qsؾٌ⃄lanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀𝔤Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀𝕘Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqr׮ⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0↎proø₞r;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀𝔥sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\0⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢␧␭␱␵␻ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀஀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼rò৆òΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonó྘quigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d྘➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ᠛旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐௏쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop඄⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roø඄urĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻 ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓΀;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨í஘istĀ;s஠டr;쀀𝔫ȀEest௅⩦⩹⩼ƀ;qs஼⩭௡ƀ;qs஼௅⩴lanô௢ií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚΀AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs఻⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs఻⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀𝕟膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast୻⭕⭚⭟lleì୻l;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖ΀chimpqu⮽⯍⯙⬄୸⯤⯯Ȁ;cerല⯆ഷ⯉uå൅;쀀𝓃ortɭ⬅\0\0⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭å೸åഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñ೗Ā;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰⳴ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥ⵲ⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;c᪞ⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācr⵩⵭ir;榿;쀀𝔬ͯ⵹\0\0⵼\0ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕ⶘ⶥⶨrò᪀Āir⶝ⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔ⷗ǒr;榷rp;榹΀;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ⹞\0⹽\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ⹧⹲຅脀¶;l⹭⹮䂶leìЃɩ⹸\0\0⹻m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳⻴ᤈ⻹⻽⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp໬⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t໻⾴ï໻rel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⿚⋢⿟⿥⿫⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei⿾々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔઀ABHabcdefhilmnoprstux぀けさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤΀cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstw࿜ガクシスゼゾダッデナp;極Ā;f࿠ゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes㄂㄄;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ì࿲âヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘㇤㇮rrowĀ;t࿜ㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowó࿪arpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓rò࿪aòՑ;怏oustĀ;a㈞㈟掱che»㈟mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦΀Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼਴t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜iäᑤaraì⹯耻­䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;q኱ኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫ਩war;椪lig耻ß䃟௡㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄rë๟ƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproø዁im»ኬsðኞĀas㚺㚮ð዁rn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈ΀adempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xô᝷headĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜΀eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roð໻tré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚΀cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜ៟tré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌'.split("").map(u=>u.charCodeAt(0))),Er=new Uint16Array("Ȁaglq \x1Bɭ\0\0p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map(u=>u.charCodeAt(0)));var ye;const Ar=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]),Fr=(ye=String.fromCodePoint)!==null&&ye!==void 0?ye:function(u){let e="";return u>65535&&(u-=65536,e+=String.fromCharCode(u>>>10&1023|55296),u=56320|u&1023),e+=String.fromCharCode(u),e};function Sr(u){var e;return u>=55296&&u<=57343||u>1114111?65533:(e=Ar.get(u))!==null&&e!==void 0?e:u}var M;(function(u){u[u.NUM=35]="NUM",u[u.SEMI=59]="SEMI",u[u.EQUALS=61]="EQUALS",u[u.ZERO=48]="ZERO",u[u.NINE=57]="NINE",u[u.LOWER_A=97]="LOWER_A",u[u.LOWER_F=102]="LOWER_F",u[u.LOWER_X=120]="LOWER_X",u[u.LOWER_Z=122]="LOWER_Z",u[u.UPPER_A=65]="UPPER_A",u[u.UPPER_F=70]="UPPER_F",u[u.UPPER_Z=90]="UPPER_Z"})(M||(M={}));const wr=32;var du;(function(u){u[u.VALUE_LENGTH=49152]="VALUE_LENGTH",u[u.BRANCH_LENGTH=16256]="BRANCH_LENGTH",u[u.JUMP_TABLE=127]="JUMP_TABLE"})(du||(du={}));function Se(u){return u>=M.ZERO&&u<=M.NINE}function Tr(u){return u>=M.UPPER_A&&u<=M.UPPER_F||u>=M.LOWER_A&&u<=M.LOWER_F}function Or(u){return u>=M.UPPER_A&&u<=M.UPPER_Z||u>=M.LOWER_A&&u<=M.LOWER_Z||Se(u)}function zr(u){return u===M.EQUALS||Or(u)}var P;(function(u){u[u.EntityStart=0]="EntityStart",u[u.NumericStart=1]="NumericStart",u[u.NumericDecimal=2]="NumericDecimal",u[u.NumericHex=3]="NumericHex",u[u.NamedEntity=4]="NamedEntity"})(P||(P={}));var su;(function(u){u[u.Legacy=0]="Legacy",u[u.Strict=1]="Strict",u[u.Attribute=2]="Attribute"})(su||(su={}));class Br{constructor(e,t,n){this.decodeTree=e,this.emitCodePoint=t,this.errors=n,this.state=P.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=su.Strict}startEntity(e){this.decodeMode=e,this.state=P.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(e,t){switch(this.state){case P.EntityStart:return e.charCodeAt(t)===M.NUM?(this.state=P.NumericStart,this.consumed+=1,this.stateNumericStart(e,t+1)):(this.state=P.NamedEntity,this.stateNamedEntity(e,t));case P.NumericStart:return this.stateNumericStart(e,t);case P.NumericDecimal:return this.stateNumericDecimal(e,t);case P.NumericHex:return this.stateNumericHex(e,t);case P.NamedEntity:return this.stateNamedEntity(e,t)}}stateNumericStart(e,t){return t>=e.length?-1:(e.charCodeAt(t)|wr)===M.LOWER_X?(this.state=P.NumericHex,this.consumed+=1,this.stateNumericHex(e,t+1)):(this.state=P.NumericDecimal,this.stateNumericDecimal(e,t))}addToNumericResult(e,t,n,r){if(t!==n){const c=n-t;this.result=this.result*Math.pow(r,c)+parseInt(e.substr(t,c),r),this.consumed+=c}}stateNumericHex(e,t){const n=t;for(;t>14;for(;t>14,c!==0){if(i===M.SEMI)return this.emitNamedEntityData(this.treeIndex,c,this.consumed+this.excess);this.decodeMode!==su.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var e;const{result:t,decodeTree:n}=this,r=(n[t]&du.VALUE_LENGTH)>>14;return this.emitNamedEntityData(t,r,this.consumed),(e=this.errors)===null||e===void 0||e.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(e,t,n){const{decodeTree:r}=this;return this.emitCodePoint(t===1?r[e]&~du.VALUE_LENGTH:r[e+1],n),t===3&&this.emitCodePoint(r[e+2],n),n}end(){var e;switch(this.state){case P.NamedEntity:return this.result!==0&&(this.decodeMode!==su.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case P.NumericDecimal:return this.emitNumericEntity(0,2);case P.NumericHex:return this.emitNumericEntity(0,3);case P.NumericStart:return(e=this.errors)===null||e===void 0||e.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case P.EntityStart:return 0}}}function U0(u){let e="";const t=new Br(u,n=>e+=Fr(n));return function(r,c){let i=0,o=0;for(;(o=r.indexOf("&",o))>=0;){e+=r.slice(i,o),t.startEntity(c);const s=t.write(r,o+1);if(s<0){i=o+t.end();break}i=o+s,o=s===0?i+1:i}const a=e+r.slice(i);return e="",a}}function Ir(u,e,t,n){const r=(e&du.BRANCH_LENGTH)>>7,c=e&du.JUMP_TABLE;if(r===0)return c!==0&&n===c?t:-1;if(c){const a=n-c;return a<0||a>=r?-1:u[t+a]-1}let i=t,o=i+r-1;for(;i<=o;){const a=i+o>>>1,s=u[a];if(sn)o=a-1;else return u[a+r]}return-1}const V0=U0(Dr);U0(Er);function Pr(u,e=su.Legacy){return V0(u,e)}function Mr(u){return V0(u,su.Strict)}function Rr(u){return Object.prototype.toString.call(u)}function Le(u){return Rr(u)==="[object String]"}const $r=Object.prototype.hasOwnProperty;function Lr(u,e){return $r.call(u,e)}function se(u){return Array.prototype.slice.call(arguments,1).forEach(function(t){if(t){if(typeof t!="object")throw new TypeError(t+"must be object");Object.keys(t).forEach(function(n){u[n]=t[n]})}}),u}function Z0(u,e,t){return[].concat(u.slice(0,e),t,u.slice(e+1))}function Ne(u){return!(u>=55296&&u<=57343||u>=64976&&u<=65007||(u&65535)===65535||(u&65535)===65534||u>=0&&u<=8||u===11||u>=14&&u<=31||u>=127&&u<=159||u>1114111)}function $u(u){if(u>65535){u-=65536;const e=55296+(u>>10),t=56320+(u&1023);return String.fromCharCode(e,t)}return String.fromCharCode(u)}const W0=/\\([!"#$%&'()*+,\-./:;<=>?@[\\\]^_`{|}~])/g,Nr=/&([a-z#][a-z0-9]{1,31});/gi,qr=new RegExp(W0.source+"|"+Nr.source,"gi"),jr=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))$/i;function Hr(u,e){if(e.charCodeAt(0)===35&&jr.test(e)){const n=e[1].toLowerCase()==="x"?parseInt(e.slice(2),16):parseInt(e.slice(1),10);return Ne(n)?$u(n):u}const t=Pr(u);return t!==u?t:u}function Ur(u){return u.indexOf("\\")<0?u:u.replace(W0,"$1")}function Tu(u){return u.indexOf("\\")<0&&u.indexOf("&")<0?u:u.replace(qr,function(e,t,n){return t||Hr(e,n)})}const Vr=/[&<>"]/,Zr=/[&<>"]/g,Wr={"&":"&","<":"<",">":">",'"':"""};function Gr(u){return Wr[u]}function hu(u){return Vr.test(u)?u.replace(Zr,Gr):u}const Xr=/[.?*+^$[\]\\(){}|-]/g;function Jr(u){return u.replace(Xr,"\\$&")}function O(u){switch(u){case 9:case 32:return!0}return!1}function Lu(u){if(u>=8192&&u<=8202)return!0;switch(u){case 9:case 10:case 11:case 12:case 13:case 32:case 160:case 5760:case 8239:case 8287:case 12288:return!0}return!1}function G0(u){return $e.test(u)||j0.test(u)}function Nu(u){return G0($u(u))}function qu(u){switch(u){case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 124:case 125:case 126:return!0;default:return!1}}function le(u){return u=u.trim().replace(/\s+/g," "),"ẞ".toLowerCase()==="Ṿ"&&(u=u.replace(/ẞ/g,"ß")),u.toLowerCase().toUpperCase()}function d0(u){return u===32||u===9||u===10||u===13}function fe(u){let e=0;for(;e=e&&d0(u.charCodeAt(t));t--);return u.slice(e,t+1)}const Qr={mdurl:kr,ucmicro:vr},Kr=Object.freeze(Object.defineProperty({__proto__:null,arrayReplaceAt:Z0,asciiTrim:fe,assign:se,escapeHtml:hu,escapeRE:Jr,fromCodePoint:$u,has:Lr,isMdAsciiPunct:qu,isPunctChar:G0,isPunctCharCode:Nu,isSpace:O,isString:Le,isValidEntityCode:Ne,isWhiteSpace:Lu,lib:Qr,normalizeReference:le,unescapeAll:Tu,unescapeMd:Ur},Symbol.toStringTag,{value:"Module"}));function Yr(u,e,t){let n,r,c,i;const o=u.posMax,a=u.pos;for(u.pos=e+1,n=1;u.pos32))return c;if(n===41){if(i===0)break;i--}r++}return e===r||i!==0||(c.str=Tu(u.slice(e,r)),c.pos=r,c.ok=!0),c}function ec(u,e,t,n){let r,c=e;const i={ok:!1,can_continue:!1,pos:0,str:"",marker:0};if(n)i.str=n.str,i.marker=n.marker;else{if(c>=t)return i;let o=u.charCodeAt(c);if(o!==34&&o!==39&&o!==40)return i;e++,c++,o===40&&(o=41),i.marker=o}for(;c"+hu(c.content)+""};ou.code_block=function(u,e,t,n,r){const c=u[e];return""+hu(u[e].content)+` +`};ou.fence=function(u,e,t,n,r){const c=u[e],i=c.info?Tu(c.info).trim():"";let o="",a="";if(i){const l=i.split(/(\s+)/g);o=l[0],a=l.slice(2).join("")}let s;if(t.highlight?s=t.highlight(c.content,o,a)||hu(c.content):s=hu(c.content),s.indexOf("${s} +`}return`
${s}
+`};ou.image=function(u,e,t,n,r){const c=u[e];return c.attrs[c.attrIndex("alt")][1]=r.renderInlineAsText(c.children,t,n),r.renderToken(u,e,t)};ou.hardbreak=function(u,e,t){return t.xhtmlOut?`
+`:`
+`};ou.softbreak=function(u,e,t){return t.breaks?t.xhtmlOut?`
+`:`
+`:` +`};ou.text=function(u,e){return hu(u[e].content)};ou.html_block=function(u,e){return u[e].content};ou.html_inline=function(u,e){return u[e].content};function Bu(){this.rules=se({},ou)}Bu.prototype.renderAttrs=function(e){let t,n,r;if(!e.attrs)return"";for(r="",t=0,n=e.attrs.length;t +`:">",c};Bu.prototype.renderInline=function(u,e,t){let n="";const r=this.rules;for(let c=0,i=u.length;c=0&&(n=this.attrs[t][1]),n};eu.prototype.attrJoin=function(e,t){const n=this.attrIndex(e);n<0?this.attrPush([e,t]):this.attrs[n][1]=this.attrs[n][1]+" "+t};function X0(u,e,t){this.src=u,this.env=t,this.tokens=[],this.inlineMode=!1,this.md=e}X0.prototype.Token=eu;const nc=/\r\n?|\n/g,rc=/\0/g;function cc(u){let e;e=u.src.replace(nc,` +`),e=e.replace(rc,"�"),u.src=e}function oc(u){let e;u.inlineMode?(e=new u.Token("inline","",0),e.content=u.src,e.map=[0,1],e.children=[],u.tokens.push(e)):u.md.block.parse(u.src,u.md,u.env,u.tokens)}function ic(u){const e=u.tokens;for(let t=0,n=e.length;t\s]/i.test(u)}function sc(u){return/^<\/a\s*>/i.test(u)}function lc(u){const e=u.tokens;if(u.md.options.linkify)for(let t=0,n=e.length;t=0;i--){const o=r[i];if(o.type==="link_close"){for(i--;r[i].level!==o.level&&r[i].type!=="link_open";)i--;continue}if(o.type==="html_inline"&&(ac(o.content)&&c>0&&c--,sc(o.content)&&c++),!(c>0)&&o.type==="text"&&u.md.linkify.test(o.content)){const a=o.content;let s=u.md.linkify.match(a);const l=[];let f=o.level,h=0;s.length>0&&s[0].index===0&&i>0&&r[i-1].type==="text_special"&&(s=s.slice(1));for(let d=0;dh){const g=new u.Token("text","",0);g.content=a.slice(h,E),g.level=f,l.push(g)}const m=new u.Token("link_open","a",1);m.attrs=[["href",C]],m.level=f++,m.markup="linkify",m.info="auto",l.push(m);const b=new u.Token("text","",0);b.content=k,b.level=f,l.push(b);const x=new u.Token("link_close","a",-1);x.level=--f,x.markup="linkify",x.info="auto",l.push(x),h=s[d].lastIndex}if(h=0;t--){const n=u[t];n.type==="text"&&!e&&(n.content=n.content.replace(dc,hc)),n.type==="link_open"&&n.info==="auto"&&e--,n.type==="link_close"&&n.info==="auto"&&e++}}function mc(u){let e=0;for(let t=u.length-1;t>=0;t--){const n=u[t];n.type==="text"&&!e&&J0.test(n.content)&&(n.content=n.content.replace(/\+-/g,"±").replace(/\.{2,}/g,"…").replace(/([?!])…/g,"$1..").replace(/([?!]){4,}/g,"$1$1$1").replace(/,{2,}/g,",").replace(/(^|[^-])---(?=[^-]|$)/mg,"$1—").replace(/(^|\s)--(?=\s|$)/mg,"$1–").replace(/(^|[^-\s])--(?=[^-\s]|$)/mg,"$1–")),n.type==="link_open"&&n.info==="auto"&&e--,n.type==="link_close"&&n.info==="auto"&&e++}}function xc(u){let e;if(u.md.options.typographer)for(e=u.tokens.length-1;e>=0;e--)u.tokens[e].type==="inline"&&(fc.test(u.tokens[e].content)&&bc(u.tokens[e].children),J0.test(u.tokens[e].content)&&mc(u.tokens[e].children))}const gc=/['"]/,p0=/['"]/g,h0="’";function te(u,e,t,n){u[e]||(u[e]=[]),u[e].push({pos:t,ch:n})}function _c(u,e){let t="",n=0;e.sort((r,c)=>r.pos-c.pos);for(let r=0;r=0&&!(n[t].level<=o);t--);if(n.length=t+1,i.type!=="text")continue;const a=i.content;let s=0;const l=a.length;u:for(;s=0)C=a.charCodeAt(f.index-1);else for(t=c-1;t>=0&&!(u[t].type==="softbreak"||u[t].type==="hardbreak");t--)if(u[t].content){C=u[t].content.charCodeAt(u[t].content.length-1);break}let k=32;if(s=48&&C<=57&&(d=h=!1),h&&d&&(h=E,d=m),!h&&!d){p&&te(r,c,f.index,h0);continue}if(d)for(t=n.length-1;t>=0;t--){let g=n[t];if(n[t].level=0;e--)u.tokens[e].type!=="inline"||!gc.test(u.tokens[e].content)||yc(u.tokens[e].children,u)}function Cc(u){let e,t;const n=u.tokens,r=n.length;for(let c=0;c0&&this.level++,this.tokens.push(n),n};iu.prototype.isEmpty=function(e){return this.bMarks[e]+this.tShift[e]>=this.eMarks[e]};iu.prototype.skipEmptyLines=function(e){for(let t=this.lineMax;et;)if(!O(this.src.charCodeAt(--e)))return e+1;return e};iu.prototype.skipChars=function(e,t){for(let n=this.src.length;en;)if(t!==this.src.charCodeAt(--e))return e+1;return e};iu.prototype.getLines=function(e,t,n,r){if(e>=t)return"";const c=new Array(t-e);for(let i=0,o=e;on?c[i]=new Array(a-n+1).join(" ")+this.src.slice(l,f):c[i]=this.src.slice(l,f)}return c.join("")};iu.prototype.Token=eu;const vc=65536;function Ce(u,e){const t=u.bMarks[e]+u.tShift[e],n=u.eMarks[e];return u.src.slice(t,n)}function b0(u){const e=[],t=u.length;let n=0,r=u.charCodeAt(n),c=!1,i=0,o="";for(;nt)return!1;let r=e+1;if(u.sCount[r]=4)return!1;let c=u.bMarks[r]+u.tShift[r];if(c>=u.eMarks[r])return!1;const i=u.src.charCodeAt(c++);if(i!==124&&i!==45&&i!==58||c>=u.eMarks[r])return!1;const o=u.src.charCodeAt(c++);if(o!==124&&o!==45&&o!==58&&!O(o)||i===45&&O(o))return!1;for(;c=4)return!1;s=b0(a),s.length&&s[0]===""&&s.shift(),s.length&&s[s.length-1]===""&&s.pop();const f=s.length;if(f===0||f!==l.length)return!1;if(n)return!0;const h=u.parentType;u.parentType="table";const d=u.md.block.ruler.getRules("blockquote"),p=u.push("table_open","table",1),C=[e,0];p.map=C;const k=u.push("thead_open","thead",1);k.map=[e,e+1];const E=u.push("tr_open","tr",1);E.map=[e,e+1];for(let x=0;x=4||(s=b0(a),s.length&&s[0]===""&&s.shift(),s.length&&s[s.length-1]===""&&s.pop(),b+=f-s.length,b>vc))break;if(r===e+2){const D=u.push("tbody_open","tbody",1);D.map=m=[e+2,0]}const g=u.push("tr_open","tr",1);g.map=[r,r+1];for(let D=0;D=4){n++,r=n;continue}break}u.line=r;const c=u.push("code_block","code",0);return c.content=u.getLines(e,r,4+u.blkIndent,!1)+` +`,c.map=[e,u.line],!0}function Ac(u,e,t,n){let r=u.bMarks[e]+u.tShift[e],c=u.eMarks[e];if(u.sCount[e]-u.blkIndent>=4||r+3>c)return!1;const i=u.src.charCodeAt(r);if(i!==126&&i!==96)return!1;let o=r;r=u.skipChars(r,i);let a=r-o;if(a<3)return!1;const s=u.src.slice(o,r),l=u.src.slice(r,c);if(i===96&&l.indexOf(String.fromCharCode(i))>=0)return!1;if(n)return!0;let f=e,h=!1;for(;f++,!(f>=t||(r=o=u.bMarks[f]+u.tShift[f],c=u.eMarks[f],r=4)&&(r=u.skipChars(r,i),!(r-o=4||u.src.charCodeAt(r)!==62)return!1;if(n)return!0;const o=[],a=[],s=[],l=[],f=u.md.block.ruler.getRules("blockquote"),h=u.parentType;u.parentType="blockquote";let d=!1,p;for(p=e;p=c)break;if(u.src.charCodeAt(r++)===62&&!b){let g=u.sCount[p]+1,D,T;u.src.charCodeAt(r)===32?(r++,g++,T=!1,D=!0):u.src.charCodeAt(r)===9?(D=!0,(u.bsCount[p]+g)%4===3?(r++,g++,T=!1):T=!0):D=!1;let B=g;for(o.push(u.bMarks[p]),u.bMarks[p]=r;r=c,a.push(u.bsCount[p]),u.bsCount[p]=u.sCount[p]+1+(D?1:0),s.push(u.sCount[p]),u.sCount[p]=B-g,l.push(u.tShift[p]),u.tShift[p]=r-u.bMarks[p];continue}if(d)break;let x=!1;for(let g=0,D=f.length;g";const E=[e,0];k.map=E,u.md.block.tokenize(u,e,p);const m=u.push("blockquote_close","blockquote",-1);m.markup=">",u.lineMax=i,u.parentType=h,E[1]=u.line;for(let b=0;b=4)return!1;let c=u.bMarks[e]+u.tShift[e];const i=u.src.charCodeAt(c++);if(i!==42&&i!==45&&i!==95)return!1;let o=1;for(;c=n)return-1;let c=u.src.charCodeAt(r++);if(c<48||c>57)return-1;for(;;){if(r>=n)return-1;if(c=u.src.charCodeAt(r++),c>=48&&c<=57){if(r-t>=10)return-1;continue}if(c===41||c===46)break;return-1}return r=4||u.listIndent>=0&&u.sCount[a]-u.listIndent>=4&&u.sCount[a]=u.blkIndent&&(l=!0);let f,h,d;if((d=x0(u,a))>=0){if(f=!0,i=u.bMarks[a]+u.tShift[a],h=Number(u.src.slice(i,d-1)),l&&h!==1)return!1}else if((d=m0(u,a))>=0)f=!1;else return!1;if(l&&u.skipSpaces(d)>=u.eMarks[a])return!1;if(n)return!0;const p=u.src.charCodeAt(d-1),C=u.tokens.length;f?(o=u.push("ordered_list_open","ol",1),h!==1&&(o.attrs=[["start",h]])):o=u.push("bullet_list_open","ul",1);const k=[a,0];o.map=k,o.markup=String.fromCharCode(p);let E=!1;const m=u.md.block.ruler.getRules("list"),b=u.parentType;for(u.parentType="list";a=r?T=1:T=g-x,T>4&&(T=1);const B=x+T;o=u.push("list_item_open","li",1),o.markup=String.fromCharCode(p);const L=[a,0];o.map=L,f&&(o.info=u.src.slice(i,d-1));const N=u.tight,K=u.tShift[a],au=u.sCount[a],G=u.listIndent;if(u.listIndent=u.blkIndent,u.blkIndent=B,u.tight=!0,u.tShift[a]=D-u.bMarks[a],u.sCount[a]=g,D>=r&&u.isEmpty(a+1)?u.line=Math.min(u.line+2,t):u.md.block.tokenize(u,a,t,!0),(!u.tight||E)&&(s=!1),E=u.line-a>1&&u.isEmpty(u.line-1),u.blkIndent=u.listIndent,u.listIndent=G,u.tShift[a]=K,u.sCount[a]=au,u.tight=N,o=u.push("list_item_close","li",-1),o.markup=String.fromCharCode(p),a=u.line,L[1]=a,a>=t||u.sCount[a]=4)break;let bu=!1;for(let y=0,A=m.length;y=4||u.src.charCodeAt(r)!==91)return!1;function o(m){const b=u.lineMax;if(m>=b||u.isEmpty(m))return null;let x=!1;if(u.sCount[m]-u.blkIndent>3&&(x=!0),u.sCount[m]<0&&(x=!0),!x){const T=u.md.block.ruler.getRules("reference"),B=u.parentType;u.parentType="reference";let L=!1;for(let N=0,K=T.length;N"u"&&(u.env.references={}),typeof u.env.references[E]>"u"&&(u.env.references[E]={title:k,href:f}),u.line=i),!0):!1}const zc=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],Bc="[a-zA-Z_:][a-zA-Z0-9:._-]*",Ic="[^\"'=<>`\\x00-\\x20]+",Pc="'[^']*'",Mc='"[^"]*"',Rc="(?:"+Ic+"|"+Pc+"|"+Mc+")",$c="(?:\\s+"+Bc+"(?:\\s*=\\s*"+Rc+")?)",Q0="<[A-Za-z][A-Za-z0-9\\-]*"+$c+"*\\s*\\/?>",K0="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",Lc="",Nc="<[?][\\s\\S]*?[?]>",qc="]*>",jc="",Hc=new RegExp("^(?:"+Q0+"|"+K0+"|"+Lc+"|"+Nc+"|"+qc+"|"+jc+")"),Uc=new RegExp("^(?:"+Q0+"|"+K0+")"),xu=[[/^<(script|pre|style|textarea)(?=(\s|>|$))/i,/<\/(script|pre|style|textarea)>/i,!0],[/^/,!0],[/^<\?/,/\?>/,!0],[/^/,!0],[/^/,!0],[new RegExp("^|$))","i"),/^$/,!0],[new RegExp(Uc.source+"\\s*$"),/^$/,!1]];function Vc(u,e,t,n){let r=u.bMarks[e]+u.tShift[e],c=u.eMarks[e];if(u.sCount[e]-u.blkIndent>=4||!u.md.options.html||u.src.charCodeAt(r)!==60)return!1;let i=u.src.slice(r,c),o=0;for(;o=4)return!1;let i=u.src.charCodeAt(r);if(i!==35||r>=c)return!1;let o=1;for(i=u.src.charCodeAt(++r);i===35&&r6||rr&&O(u.src.charCodeAt(a-1))&&(c=a),u.line=e+1;const s=u.push("heading_open","h"+String(o),1);s.markup="########".slice(0,o),s.map=[e,u.line];const l=u.push("inline","",0);l.content=fe(u.src.slice(r,c)),l.map=[e,u.line],l.children=[];const f=u.push("heading_close","h"+String(o),-1);return f.markup="########".slice(0,o),!0}function Wc(u,e,t){const n=u.md.block.ruler.getRules("paragraph");if(u.sCount[e]-u.blkIndent>=4)return!1;const r=u.parentType;u.parentType="paragraph";let c=0,i,o=e+1;for(;o3)continue;if(u.sCount[o]>=u.blkIndent){let d=u.bMarks[o]+u.tShift[o];const p=u.eMarks[o];if(d=p))){c=i===61?1:2;break}}if(u.sCount[o]<0)continue;let h=!1;for(let d=0,p=n.length;d3||u.sCount[c]<0)continue;let s=!1;for(let l=0,f=n.length;l=t||u.sCount[i]=c){u.line=t;break}const a=u.line;let s=!1;for(let l=0;l=u.line)throw new Error("block rule didn't increment state.line");break}if(!s)throw new Error("none of the block rules matched");u.tight=!o,u.isEmpty(u.line-1)&&(o=!0),i=u.line,i0&&(this.level++,this._prev_delimiters.push(this.delimiters),this.delimiters=[],r={delimiters:this.delimiters}),this.pendingLevel=this.level,this.tokens.push(n),this.tokens_meta.push(r),n};Qu.prototype.scanDelims=function(u,e){const t=this.posMax,n=this.src.charCodeAt(u);let r;if(u===0)r=32;else if(u===1)r=this.src.charCodeAt(0),(r&63488)===55296&&(r=65533);else if(r=this.src.charCodeAt(u-1),(r&64512)===56320){const k=this.src.charCodeAt(u-2);r=(k&64512)===55296?65536+(k-55296<<10)+(r-56320):65533}else(r&64512)===55296&&(r=65533);let c=u;for(;c0)return!1;const t=u.pos,n=u.posMax;if(t+3>n||u.src.charCodeAt(t)!==58||u.src.charCodeAt(t+1)!==47||u.src.charCodeAt(t+2)!==47)return!1;const r=u.pending.match(Qc);if(!r)return!1;const c=r[1],i=u.md.linkify.matchAtStart(u.src.slice(t-c.length));if(!i)return!1;let o=i.url;if(o.length<=c.length)return!1;let a=o.length;for(;a>0&&o.charCodeAt(a-1)===42;)a--;a!==o.length&&(o=o.slice(0,a));const s=u.md.normalizeLink(o);if(!u.md.validateLink(s))return!1;if(!e){u.pending=u.pending.slice(0,-c.length);const l=u.push("link_open","a",1);l.attrs=[["href",s]],l.markup="linkify",l.info="auto";const f=u.push("text","",0);f.content=u.md.normalizeLinkText(o);const h=u.push("link_close","a",-1);h.markup="linkify",h.info="auto"}return u.pos+=o.length-c.length,!0}function Yc(u,e){let t=u.pos;if(u.src.charCodeAt(t)!==10)return!1;const n=u.pending.length-1,r=u.posMax;if(!e)if(n>=0&&u.pending.charCodeAt(n)===32)if(n>=1&&u.pending.charCodeAt(n-1)===32){let c=n-1;for(;c>=1&&u.pending.charCodeAt(c-1)===32;)c--;u.pending=u.pending.slice(0,c),u.push("hardbreak","br",0)}else u.pending=u.pending.slice(0,-1),u.push("softbreak","br",0);else u.push("softbreak","br",0);for(t++;t?@[]^_`{|}~-".split("").forEach(function(u){je[u.charCodeAt(0)]=1});function uo(u,e){let t=u.pos;const n=u.posMax;if(u.src.charCodeAt(t)!==92||(t++,t>=n))return!1;let r=u.src.charCodeAt(t);if(r===10){for(e||u.push("hardbreak","br",0),t++;t=55296&&r<=56319&&t+1=56320&&o<=57343&&(c+=u.src[t+1],t++)}const i="\\"+c;if(!e){const o=u.push("text_special","",0);r<256&&je[r]!==0?o.content=c:o.content=i,o.markup=i,o.info="escape"}return u.pos=t+1,!0}function eo(u,e){let t=u.pos;if(u.src.charCodeAt(t)!==96)return!1;const r=t;t++;const c=u.posMax;for(;t=0;n--){const r=e[n];if(r.marker!==95&&r.marker!==42||r.end===-1)continue;const c=e[r.end],i=n>0&&e[n-1].end===r.end+1&&e[n-1].marker===r.marker&&e[n-1].token===r.token-1&&e[r.end+1].token===c.token+1,o=String.fromCharCode(r.marker),a=u.tokens[r.token];a.type=i?"strong_open":"em_open",a.tag=i?"strong":"em",a.nesting=1,a.markup=i?o+o:o,a.content="";const s=u.tokens[c.token];s.type=i?"strong_close":"em_close",s.tag=i?"strong":"em",s.nesting=-1,s.markup=i?o+o:o,s.content="",i&&(u.tokens[e[n-1].token].content="",u.tokens[e[r.end+1].token].content="",n--)}}function co(u){const e=u.tokens_meta,t=u.tokens_meta.length;_0(u,u.delimiters);for(let n=0;n=f)return!1;if(a=p,r=u.md.helpers.parseLinkDestination(u.src,p,u.posMax),r.ok){for(i=u.md.normalizeLink(r.str),u.md.validateLink(i)?p=r.pos:i="",a=p;p=f||u.src.charCodeAt(p)!==41)&&(s=!0),p++}if(s){if(typeof u.env.references>"u")return!1;if(p=0?n=u.src.slice(a,p++):p=d+1):p=d+1,n||(n=u.src.slice(h,d)),c=u.env.references[le(n)],!c)return u.pos=l,!1;i=c.href,o=c.title}if(!e){u.pos=h,u.posMax=d;const C=u.push("link_open","a",1),k=[["href",i]];C.attrs=k,o&&k.push(["title",o]),u.linkLevel++,u.md.inline.tokenize(u),u.linkLevel--,u.push("link_close","a",-1)}return u.pos=p,u.posMax=f,!0}function io(u,e){let t,n,r,c,i,o,a,s,l="";const f=u.pos,h=u.posMax;if(u.src.charCodeAt(u.pos)!==33||u.src.charCodeAt(u.pos+1)!==91)return!1;const d=u.pos+2,p=u.md.helpers.parseLinkLabel(u,u.pos+1,!1);if(p<0)return!1;if(c=p+1,c=h)return!1;for(s=c,o=u.md.helpers.parseLinkDestination(u.src,c,u.posMax),o.ok&&(l=u.md.normalizeLink(o.str),u.md.validateLink(l)?c=o.pos:l=""),s=c;c=h||u.src.charCodeAt(c)!==41)return u.pos=f,!1;c++}else{if(typeof u.env.references>"u")return!1;if(c=0?r=u.src.slice(s,c++):c=p+1):c=p+1,r||(r=u.src.slice(d,p)),i=u.env.references[le(r)],!i)return u.pos=f,!1;l=i.href,a=i.title}if(!e){n=u.src.slice(d,p);const C=[];u.md.inline.parse(n,u.md,u.env,C);const k=u.push("image","img",0),E=[["src",l],["alt",""]];k.attrs=E,k.children=C,k.content=n,a&&E.push(["title",a])}return u.pos=c,u.posMax=h,!0}const ao=/^([a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*)$/,so=/^([a-zA-Z][a-zA-Z0-9+.-]{1,31}):([^<>\x00-\x20]*)$/;function lo(u,e){let t=u.pos;if(u.src.charCodeAt(t)!==60)return!1;const n=u.pos,r=u.posMax;for(;;){if(++t>=r)return!1;const i=u.src.charCodeAt(t);if(i===60)return!1;if(i===62)break}const c=u.src.slice(n+1,t);if(so.test(c)){const i=u.md.normalizeLink(c);if(!u.md.validateLink(i))return!1;if(!e){const o=u.push("link_open","a",1);o.attrs=[["href",i]],o.markup="autolink",o.info="auto";const a=u.push("text","",0);a.content=u.md.normalizeLinkText(c);const s=u.push("link_close","a",-1);s.markup="autolink",s.info="auto"}return u.pos+=c.length+2,!0}if(ao.test(c)){const i=u.md.normalizeLink("mailto:"+c);if(!u.md.validateLink(i))return!1;if(!e){const o=u.push("link_open","a",1);o.attrs=[["href",i]],o.markup="autolink",o.info="auto";const a=u.push("text","",0);a.content=u.md.normalizeLinkText(c);const s=u.push("link_close","a",-1);s.markup="autolink",s.info="auto"}return u.pos+=c.length+2,!0}return!1}function fo(u){return/^\s]/i.test(u)}function po(u){return/^<\/a\s*>/i.test(u)}function ho(u){const e=u|32;return e>=97&&e<=122}function bo(u,e){if(!u.md.options.html)return!1;const t=u.posMax,n=u.pos;if(u.src.charCodeAt(n)!==60||n+2>=t)return!1;const r=u.src.charCodeAt(n+1);if(r!==33&&r!==63&&r!==47&&!ho(r))return!1;const c=u.src.slice(n).match(Hc);if(!c)return!1;if(!e){const i=u.push("html_inline","",0);i.content=c[0],fo(i.content)&&u.linkLevel++,po(i.content)&&u.linkLevel--}return u.pos+=c[0].length,!0}const mo=/^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,xo=/^&([a-z][a-z0-9]{1,31});/i;function go(u,e){const t=u.pos,n=u.posMax;if(u.src.charCodeAt(t)!==38||t+1>=n)return!1;if(u.src.charCodeAt(t+1)===35){const c=u.src.slice(t).match(mo);if(c){if(!e){const i=c[1][0].toLowerCase()==="x"?parseInt(c[1].slice(1),16):parseInt(c[1],10),o=u.push("text_special","",0);o.content=Ne(i)?$u(i):$u(65533),o.markup=c[0],o.info="entity"}return u.pos+=c[0].length,!0}}else{const c=u.src.slice(t).match(xo);if(c){const i=Mr(c[0]);if(i!==c[0]){if(!e){const o=u.push("text_special","",0);o.content=i,o.markup=c[0],o.info="entity"}return u.pos+=c[0].length,!0}}}return!1}function y0(u){const e={},t=u.length;if(!t)return;let n=0,r=-2;const c=[];for(let i=0;ia;s-=c[s]+1){const f=u[s];if(f.marker===o.marker&&f.open&&f.end<0){let h=!1;if((f.close||o.open)&&(f.length+o.length)%3===0&&(f.length%3!==0||o.length%3!==0)&&(h=!0),!h){const d=s>0&&!u[s-1].open?c[s-1]+1:0;c[i]=i-s+d,c[s]=d,o.open=!1,f.end=i,f.close=!1,l=-1,r=-2;break}}}l!==-1&&(e[o.marker][(o.open?3:0)+(o.length||0)%3]=l)}}function _o(u){const e=u.tokens_meta,t=u.tokens_meta.length;y0(u.delimiters);for(let n=0;n0&&n++,r[e].type==="text"&&e+1=u.pos)throw new Error("inline rule didn't increment state.pos");break}}else u.pos=u.posMax;i||u.pos++,c[e]=u.pos};Ku.prototype.tokenize=function(u){const e=this.ruler.getRules(""),t=e.length,n=u.posMax,r=u.md.options.maxNesting;for(;u.pos=u.pos)throw new Error("inline rule didn't increment state.pos");break}}if(i){if(u.pos>=n)break;continue}u.pending+=u.src[u.pos++]}u.pending&&u.pushPending()};Ku.prototype.parse=function(u,e,t,n){const r=new this.State(u,e,t,n);this.tokenize(r);const c=this.ruler2.getRules(""),i=c.length;for(let o=0;o|$))",e.tpl_email_fuzzy="(^|"+t+'|"|\\(|'+e.src_ZCc+")("+e.src_email_name+"@"+e.tpl_host_fuzzy_strict+")",e.tpl_link_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+e.src_ZPCc+"))((?![$+<=>^`||])"+e.tpl_host_port_fuzzy_strict+e.src_path+")",e.tpl_link_no_ip_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+e.src_ZPCc+"))((?![$+<=>^`||])"+e.tpl_host_port_no_ip_fuzzy_strict+e.src_path+")",e}function we(u){return Array.prototype.slice.call(arguments,1).forEach(function(t){t&&Object.keys(t).forEach(function(n){u[n]=t[n]})}),u}function pe(u){return Object.prototype.toString.call(u)}function Co(u){return pe(u)==="[object String]"}function vo(u){return pe(u)==="[object Object]"}function Do(u){return pe(u)==="[object RegExp]"}function k0(u){return pe(u)==="[object Function]"}function Eo(u){return u.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}const et={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};function Ao(u){return Object.keys(u||{}).reduce(function(e,t){return e||et.hasOwnProperty(t)},!1)}const Fo={"http:":{validate:function(u,e,t){const n=u.slice(e);return t.re.http||(t.re.http=new RegExp("^\\/\\/"+t.re.src_auth+t.re.src_host_port_strict+t.re.src_path,"i")),t.re.http.test(n)?n.match(t.re.http)[0].length:0}},"https:":"http:","ftp:":"http:","//":{validate:function(u,e,t){const n=u.slice(e);return t.re.no_http||(t.re.no_http=new RegExp("^"+t.re.src_auth+"(?:localhost|(?:(?:"+t.re.src_domain+")\\.)+"+t.re.src_domain_root+")"+t.re.src_port+t.re.src_host_terminator+t.re.src_path,"i")),t.re.no_http.test(n)?e>=3&&u[e-3]===":"||e>=3&&u[e-3]==="/"?0:n.match(t.re.no_http)[0].length:0}},"mailto:":{validate:function(u,e,t){const n=u.slice(e);return t.re.mailto||(t.re.mailto=new RegExp("^"+t.re.src_email_name+"@"+t.re.src_host_strict,"i")),t.re.mailto.test(n)?n.match(t.re.mailto)[0].length:0}}},So="a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]",wo="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");function To(u){return function(e,t){const n=e.slice(t);return u.test(n)?n.match(u)[0].length:0}}function C0(){return function(u,e){e.normalize(u)}}function ce(u){const e=u.re=ko(u.__opts__),t=u.__tlds__.slice();u.onCompile(),u.__tlds_replaced__||t.push(So),t.push(e.src_xn),e.src_tlds=t.join("|");function n(o){return o.replace("%TLDS%",e.src_tlds)}e.email_fuzzy=RegExp(n(e.tpl_email_fuzzy),"i"),e.email_fuzzy_global=RegExp(n(e.tpl_email_fuzzy),"ig"),e.link_fuzzy=RegExp(n(e.tpl_link_fuzzy),"i"),e.link_fuzzy_global=RegExp(n(e.tpl_link_fuzzy),"ig"),e.link_no_ip_fuzzy=RegExp(n(e.tpl_link_no_ip_fuzzy),"i"),e.link_no_ip_fuzzy_global=RegExp(n(e.tpl_link_no_ip_fuzzy),"ig"),e.host_fuzzy_test=RegExp(n(e.tpl_host_fuzzy_test),"i");const r=[];u.__compiled__={};function c(o,a){throw new Error('(LinkifyIt) Invalid schema "'+o+'": '+a)}Object.keys(u.__schemas__).forEach(function(o){const a=u.__schemas__[o];if(a===null)return;const s={validate:null,link:null};if(u.__compiled__[o]=s,vo(a)){Do(a.validate)?s.validate=To(a.validate):k0(a.validate)?s.validate=a.validate:c(o,a),k0(a.normalize)?s.normalize=a.normalize:a.normalize?c(o,a):s.normalize=C0();return}if(Co(a)){r.push(o);return}c(o,a)}),r.forEach(function(o){u.__compiled__[u.__schemas__[o]]&&(u.__compiled__[o].validate=u.__compiled__[u.__schemas__[o]].validate,u.__compiled__[o].normalize=u.__compiled__[u.__schemas__[o]].normalize)}),u.__compiled__[""]={validate:null,normalize:C0()};const i=Object.keys(u.__compiled__).filter(function(o){return o.length>0&&u.__compiled__[o]}).map(Eo).join("|");u.re.schema_test=RegExp("(^|(?!_)(?:[><|]|"+e.src_ZPCc+"))("+i+")","i"),u.re.schema_search=RegExp("(^|(?!_)(?:[><|]|"+e.src_ZPCc+"))("+i+")","ig"),u.re.schema_at_start=RegExp("^"+u.re.schema_search.source,"i"),u.re.pretest=RegExp("("+u.re.schema_test.source+")|("+u.re.host_fuzzy_test.source+")|@","i")}function tt(u,e,t,n){const r=u.slice(t,n);this.schema=e.toLowerCase(),this.index=t,this.lastIndex=n,this.raw=r,this.text=r,this.url=r}function W(u,e){if(!(this instanceof W))return new W(u,e);e||Ao(u)&&(e=u,u={}),this.__opts__=we({},et,e),this.__schemas__=we({},Fo,u),this.__compiled__={},this.__tlds__=wo,this.__tlds_replaced__=!1,this.re={},ce(this)}W.prototype.add=function(e,t){return this.__schemas__[e]=t,ce(this),this};W.prototype.set=function(e){return this.__opts__=we(this.__opts__,e),this};W.prototype.test=function(e){if(!e.length)return!1;let t,n;if(this.re.schema_test.test(e)){for(n=this.re.schema_search,n.lastIndex=0;(t=n.exec(e))!==null;)if(this.testSchemaAt(e,t[2],n.lastIndex))return!0}return!!(this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&e.search(this.re.host_fuzzy_test)>=0&&e.match(this.__opts__.fuzzyIP?this.re.link_fuzzy:this.re.link_no_ip_fuzzy)!==null||this.__opts__.fuzzyEmail&&this.__compiled__["mailto:"]&&e.indexOf("@")>=0&&e.match(this.re.email_fuzzy)!==null)};W.prototype.pretest=function(e){return this.re.pretest.test(e)};W.prototype.testSchemaAt=function(e,t,n){return this.__compiled__[t.toLowerCase()]?this.__compiled__[t.toLowerCase()].validate(e,n,this):0};W.prototype.match=function(e){const t=[],n=[],r=[],c=[];let i,o,a;function s(h,d){return h?d?h.index!==d.index?h.index=d.lastIndex?h:d:h:d}if(!e.length)return null;if(this.re.schema_test.test(e))for(a=this.re.schema_search,a.lastIndex=0;(i=a.exec(e))!==null;)o=this.testSchemaAt(e,i[2],a.lastIndex),o&&n.push({schema:i[2],index:i.index+i[1].length,lastIndex:i.index+i[0].length+o});if(this.__opts__.fuzzyLink&&this.__compiled__["http:"])for(a=this.__opts__.fuzzyIP?this.re.link_fuzzy_global:this.re.link_no_ip_fuzzy_global,a.lastIndex=0;(i=a.exec(e))!==null;)r.push({schema:"",index:i.index+i[1].length,lastIndex:i.index+i[0].length});if(this.__opts__.fuzzyEmail&&this.__compiled__["mailto:"])for(a=this.re.email_fuzzy_global,a.lastIndex=0;(i=a.exec(e))!==null;)c.push({schema:"mailto:",index:i.index+i[1].length,lastIndex:i.index+i[0].length});const l=[0,0,0];let f=0;for(;;){const h=[n[l[0]],c[l[1]],r[l[2]]],d=s(s(h[0],h[1]),h[2]);if(!d)break;if(d===h[0]?l[0]++:d===h[1]?l[1]++:l[2]++,d.index= 0x80 (not a basic code point)","invalid-input":"Invalid input"},Ee=ru-He,cu=Math.floor,Ae=String.fromCharCode;function fu(u){throw new RangeError(Mo[u])}function Ro(u,e){const t=[];let n=u.length;for(;n--;)t[n]=e(u[n]);return t}function ot(u,e){const t=u.split("@");let n="";t.length>1&&(n=t[0]+"@",u=t[1]),u=u.replace(Po,".");const r=u.split("."),c=Ro(r,e).join(".");return n+c}function it(u){const e=[];let t=0;const n=u.length;for(;t=55296&&r<=56319&&tString.fromCodePoint(...u),Lo=function(u){return u>=48&&u<58?26+(u-48):u>=65&&u<91?u-65:u>=97&&u<123?u-97:ru},v0=function(u,e){return u+22+75*(u<26)-((e!=0)<<5)},at=function(u,e,t){let n=0;for(u=t?cu(u/zo):u>>1,u+=cu(u/e);u>Ee*ju>>1;n+=ru)u=cu(u/Ee);return cu(n+(Ee+1)*u/(u+Oo))},st=function(u){const e=[],t=u.length;let n=0,r=rt,c=nt,i=u.lastIndexOf(ct);i<0&&(i=0);for(let o=0;o=128&&fu("not-basic"),e.push(u.charCodeAt(o));for(let o=i>0?i+1:0;o=t&&fu("invalid-input");const h=Lo(u.charCodeAt(o++));h>=ru&&fu("invalid-input"),h>cu((Su-n)/l)&&fu("overflow"),n+=h*l;const d=f<=c?He:f>=c+ju?ju:f-c;if(hcu(Su/p)&&fu("overflow"),l*=p}const s=e.length+1;c=at(n-a,s,a==0),cu(n/s)>Su-r&&fu("overflow"),r+=cu(n/s),n%=s,e.splice(n++,0,r)}return String.fromCodePoint(...e)},lt=function(u){const e=[];u=it(u);const t=u.length;let n=rt,r=0,c=nt;for(const a of u)a<128&&e.push(Ae(a));const i=e.length;let o=i;for(i&&e.push(ct);o=n&&lcu((Su-r)/s)&&fu("overflow"),r+=(a-n)*s,n=a;for(const l of u)if(lSu&&fu("overflow"),l===n){let f=r;for(let h=ru;;h+=ru){const d=h<=c?He:h>=c+ju?ju:h-c;if(f=0))try{e.hostname=ft.toASCII(e.hostname)}catch{}return Ju(Me(e))}function Jo(u){const e=Re(u,!0);if(e.hostname&&(!e.protocol||dt.indexOf(e.protocol)>=0))try{e.hostname=ft.toUnicode(e.hostname)}catch{}return wu(Me(e),wu.defaultChars+"%")}function J(u,e){if(!(this instanceof J))return new J(u,e);e||Le(u)||(e=u||{},u="default"),this.inline=new Ku,this.block=new de,this.core=new qe,this.renderer=new Bu,this.linkify=new W,this.validateLink=Go,this.normalizeLink=Xo,this.normalizeLinkText=Jo,this.utils=Kr,this.helpers=se({},tc),this.options={},this.configure(u),e&&this.set(e)}J.prototype.set=function(u){return se(this.options,u),this};J.prototype.configure=function(u){const e=this;if(Le(u)){const t=u;if(u=Vo[t],!u)throw new Error('Wrong `markdown-it` preset "'+t+'", check name')}if(!u)throw new Error("Wrong `markdown-it` preset, can't be empty");return u.options&&e.set(u.options),u.components&&Object.keys(u.components).forEach(function(t){u.components[t].rules&&e[t].ruler.enableOnly(u.components[t].rules),u.components[t].rules2&&e[t].ruler2.enableOnly(u.components[t].rules2)}),this};J.prototype.enable=function(u,e){let t=[];Array.isArray(u)||(u=[u]),["core","block","inline"].forEach(function(r){t=t.concat(this[r].ruler.enable(u,!0))},this),t=t.concat(this.inline.ruler2.enable(u,!0));const n=u.filter(function(r){return t.indexOf(r)<0});if(n.length&&!e)throw new Error("MarkdownIt. Failed to enable unknown rule(s): "+n);return this};J.prototype.disable=function(u,e){let t=[];Array.isArray(u)||(u=[u]),["core","block","inline"].forEach(function(r){t=t.concat(this[r].ruler.disable(u,!0))},this),t=t.concat(this.inline.ruler2.disable(u,!0));const n=u.filter(function(r){return t.indexOf(r)<0});if(n.length&&!e)throw new Error("MarkdownIt. Failed to disable unknown rule(s): "+n);return this};J.prototype.use=function(u){const e=[this].concat(Array.prototype.slice.call(arguments,1));return u.apply(u,e),this};J.prototype.parse=function(u,e){if(typeof u!="string")throw new Error("Input data should be a String");const t=new this.core.State(u,this,e);return this.core.process(t),t.tokens};J.prototype.render=function(u,e){return e=e||{},this.renderer.render(this.parse(u,e),this.options,e)};J.prototype.parseInline=function(u,e){const t=new this.core.State(u,this,e);return t.inlineMode=!0,this.core.process(t),t.tokens};J.prototype.renderInline=function(u,e){return e=e||{},this.renderer.render(this.parseInline(u,e),this.options,e)};const Qo={class:"tool-call-indicator__label"},Ko=Q({__name:"ToolCallIndicator",props:{type:{},name:{}},setup(u){const e=u,t={read:Ie,edit:ie,bash:Ze,write:Be,search:Ge,grep:Ge,glob:Jt},n=Z(()=>t[e.type]||Ze);return(r,c)=>(w(),z("span",{class:Mu(["tool-call-indicator",`tool-call-indicator--${u.type}`])},[(w(),V(T0(n.value),{class:"tool-call-indicator__icon"})),$("span",Qo,nu(u.name),1)],2))}}),Yo=Ou(Ko,[["__scopeId","data-v-40bd3149"]]),ui={class:"chat-message__avatar"},ei={class:"chat-message__body"},ti={key:0,class:"chat-message__tools"},ni=["innerHTML"],ri={key:1},ci={key:1,class:"chat-message__routing"},oi={class:"chat-message__time"},ii=Q({__name:"ChatMessage",props:{message:{}},setup(u){const e=new J({html:!1,linkify:!0,breaks:!0}),t=u,n=Z(()=>t.message.role==="assistant"&&t.message.status==="pending"&&!t.message.content),r=Z(()=>t.message.role==="assistant"&&t.message.matched_skill),c=Z(()=>new Date(t.message.timestamp).toLocaleTimeString("zh-CN",{hour:"2-digit",minute:"2-digit"})),i=Z(()=>t.message.content?e.render(t.message.content):""),o=Z(()=>{const a=[],s=t.message.content||"",l=/\[(Read|Edit|Bash|Write|Search|Grep|Glob)\]/g;let f;for(;(f=l.exec(s))!==null;){const h=f[1].toLowerCase();a.push({type:h,name:f[1]})}return a});return(a,s)=>(w(),z("div",{class:Mu(["chat-message",[`chat-message--${u.message.role}`]])},[$("div",ui,[u.message.role==="assistant"?(w(),V(S(_u),{key:0,size:32,class:"chat-message__avatar--assistant"},{icon:X(()=>[_(S(ae))]),_:1})):(w(),V(S(_u),{key:1,size:32,class:"chat-message__avatar--user"},{icon:X(()=>[_(S(un))]),_:1}))]),$("div",ei,[o.value.length>0?(w(),z("div",ti,[(w(!0),z(pu,null,Ru(o.value,(l,f)=>(w(),V(Yo,{key:f,type:l.type,name:l.name},null,8,["type","name"]))),128))])):uu("",!0),$("div",{class:Mu(["chat-message__content",[`chat-message__content--${u.message.role}`]])},[u.message.role==="assistant"?(w(),z("div",{key:0,class:"chat-message__markdown",innerHTML:i.value},null,8,ni)):(w(),z("span",ri,nu(u.message.content),1)),n.value?(w(),V(S(tn),{key:2,size:"small",class:"chat-message__loading"})):uu("",!0)],2),r.value?(w(),z("div",ci,[_(S(ge),{color:"purple"},{default:X(()=>[_(S(en)),Fu(" "+nu(u.message.matched_skill),1)]),_:1}),u.message.confidence!==void 0?(w(),V(S(ge),{key:0,color:"green"},{default:X(()=>[Fu(" 置信度: "+nu((u.message.confidence*100).toFixed(1))+"% ",1)]),_:1})):uu("",!0),u.message.routing_method?(w(),V(S(ge),{key:1,color:"default"},{default:X(()=>[Fu(nu(u.message.routing_method),1)]),_:1})):uu("",!0)])):uu("",!0),$("div",oi,nu(c.value),1)])],2))}}),ai=Ou(ii,[["__scopeId","data-v-759781a1"]]),si={class:"context-pill"},li={class:"context-pill__label"},fi=Q({__name:"ContextPill",props:{label:{},icon:{},removable:{type:Boolean}},emits:["remove"],setup(u){return(e,t)=>(w(),z("span",si,[(w(),V(T0(u.icon),{class:"context-pill__icon"})),$("span",li,nu(u.label),1),u.removable?(w(),z("button",{key:0,class:"context-pill__remove",onClick:t[0]||(t[0]=Rt(n=>e.$emit("remove"),["stop"]))},[_(S($t))])):uu("",!0)]))}}),di=Ou(fi,[["__scopeId","data-v-6f381f53"]]),pi={class:"chat-input"},hi={key:0,class:"chat-input__pills"},bi={class:"chat-input__row"},mi=Q({__name:"ChatInput",props:{disabled:{type:Boolean,default:!1},placeholder:{default:"输入消息,按 Enter 发送..."}},emits:["send"],setup(u,{emit:e}){const t=Wt.TextArea,n=u,r=e,c=ku(""),i=ku([]),o=Z(()=>c.value.trim().length>0&&!n.disabled);function a(){const f=c.value.trim();!f||n.disabled||(r("send",f),c.value="")}function s(f){f.shiftKey||(f.preventDefault(),a())}function l(f){i.value.splice(f,1)}return(f,h)=>(w(),z("div",pi,[i.value.length>0?(w(),z("div",hi,[(w(!0),z(pu,null,Ru(i.value,(d,p)=>(w(),V(di,{key:p,label:d.label,icon:d.icon,removable:d.removable,onRemove:C=>l(p)},null,8,["label","icon","removable","onRemove"]))),128))])):uu("",!0),$("div",bi,[_(S(t),{value:c.value,"onUpdate:value":h[0]||(h[0]=d=>c.value=d),placeholder:u.placeholder,"auto-size":{minRows:1,maxRows:4},disabled:u.disabled,onPressEnter:s,class:"chat-input__textarea"},null,8,["value","placeholder","disabled"]),_(S(Te),{type:"primary",disabled:!o.value,loading:u.disabled,onClick:a,class:"chat-input__send"},{icon:X(()=>[_(S(Pe))]),_:1},8,["disabled","loading"])])]))}}),xi=Ou(mi,[["__scopeId","data-v-4de32b43"]]),gi={class:"chat-view"},_i={class:"chat-view__main"},yi={key:0,class:"chat-view__empty"},ki={key:0,class:"chat-view__welcome"},Ci={key:1,class:"chat-view__steps"},vi=Q({__name:"ChatView",setup(u){const e=j.Text,t=vt(),n=ku(null);Hu(()=>{t.loadConversations(),t.connectWebSocket()}),Lt(()=>{t.disconnectWebSocket()}),yu(()=>t.currentMessages.length,async()=>{await gu(),r()}),yu(()=>t.streamingSteps.length,async()=>{await gu(),r()});function r(){n.value&&(n.value.scrollTop=n.value.scrollHeight)}function c(i){t.isWsConnected?t.sendWsMessage(i):t.sendMessage(i)}return(i,o)=>(w(),z("div",gi,[_(lr,{conversations:S(t).conversations,"current-id":S(t).currentConversationId,onCreate:S(t).createConversation,onSelect:S(t).selectConversation},null,8,["conversations","current-id","onCreate","onSelect"]),$("div",_i,[S(t).currentConversationId?(w(),z(pu,{key:1},[$("div",{class:"chat-view__messages",ref_key:"messagesContainer",ref:n},[S(t).currentMessages.length===0?(w(),z("div",ki,[_(S(ae),{class:"chat-view__welcome-icon"}),o[1]||(o[1]=$("h2",null,"Fischer AgentKit",-1)),o[2]||(o[2]=$("p",null,"企业级 AI 智能体平台,输入消息开始对话",-1))])):uu("",!0),(w(!0),z(pu,null,Ru(S(t).currentMessages,a=>(w(),V(ai,{key:a.id,message:a},null,8,["message"]))),128)),S(t).streamingSteps.length>0?(w(),z("div",Ci,[_(S(e),{type:"secondary"},{default:X(()=>[_(S(Nt)),o[3]||(o[3]=Fu(" 处理中... ",-1))]),_:1}),(w(!0),z(pu,null,Ru(S(t).streamingSteps,(a,s)=>(w(),z("div",{key:s,class:"chat-view__step"},[_(S(O0),{class:"chat-view__step-icon"}),$("span",null,nu(a),1)]))),128))])):uu("",!0)],512),_(xi,{disabled:S(t).isLoading,onSend:c},null,8,["disabled"])],64)):(w(),z("div",yi,[_(S(w0),{description:"选择一个对话或创建新对话开始聊天"},{default:X(()=>[_(S(Te),{type:"primary",onClick:S(t).createConversation},{icon:X(()=>[_(S(z0))]),default:X(()=>[o[0]||(o[0]=Fu(" 新建对话 ",-1))]),_:1},8,["onClick"])]),_:1})]))])]))}}),Ni=Ou(vi,[["__scopeId","data-v-e924e120"]]);export{Ni as default}; diff --git a/src/agentkit/server/static/assets/ChatView-D21rRrKq.css b/src/agentkit/server/static/assets/ChatView-D21rRrKq.css new file mode 100644 index 0000000..1e9b2b5 --- /dev/null +++ b/src/agentkit/server/static/assets/ChatView-D21rRrKq.css @@ -0,0 +1 @@ +.chat-sidebar[data-v-4642eb28]{display:flex;height:100%;background:var(--bg-primary);border-right:1px solid var(--border-color);transition:width var(--transition-normal)}.chat-sidebar--collapsed[data-v-4642eb28]{width:32px}.chat-sidebar[data-v-4642eb28]:not(.chat-sidebar--collapsed){width:240px}.chat-sidebar__content[data-v-4642eb28]{flex:1;display:flex;flex-direction:column;overflow:hidden}.chat-sidebar__header[data-v-4642eb28]{padding:var(--space-3);border-bottom:1px solid var(--border-color)}.chat-sidebar__list[data-v-4642eb28]{flex:1;overflow-y:auto;padding:var(--space-2)}.chat-sidebar__item[data-v-4642eb28]{display:flex;align-items:center;gap:var(--space-2);padding:var(--space-2) var(--space-3);border-radius:var(--radius-md);cursor:pointer;transition:background var(--transition-fast)}.chat-sidebar__item[data-v-4642eb28]:hover{background:var(--bg-tertiary)}.chat-sidebar__item--active[data-v-4642eb28],.chat-sidebar__item--active[data-v-4642eb28]:hover{background:var(--color-primary-light)}.chat-sidebar__item-icon[data-v-4642eb28]{color:var(--text-placeholder);font-size:var(--font-sm);flex-shrink:0}.chat-sidebar__item--active .chat-sidebar__item-icon[data-v-4642eb28]{color:var(--color-primary)}.chat-sidebar__item-title[data-v-4642eb28]{flex:1;font-size:var(--font-sm);color:var(--text-primary);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.chat-sidebar__item-time[data-v-4642eb28]{font-size:var(--font-xs);color:var(--text-placeholder);flex-shrink:0}.chat-sidebar__toggle[data-v-4642eb28]{display:flex;align-items:center;justify-content:center;width:32px;height:100%;border:none;background:transparent;color:var(--text-tertiary);cursor:pointer;flex-shrink:0;transition:all var(--transition-fast)}.chat-sidebar__toggle[data-v-4642eb28]:hover{color:var(--text-primary);background:var(--bg-tertiary)}.tool-call-indicator[data-v-40bd3149]{display:inline-flex;align-items:center;gap:3px;padding:1px var(--space-2);border-radius:var(--radius-full);font-size:11px;font-weight:var(--font-weight-medium);line-height:1.6}.tool-call-indicator__icon[data-v-40bd3149]{font-size:10px}.tool-call-indicator--read[data-v-40bd3149]{background:var(--color-info-light);color:var(--color-info)}.tool-call-indicator--edit[data-v-40bd3149]{background:var(--color-warning-light);color:var(--color-warning)}.tool-call-indicator--bash[data-v-40bd3149]{background:var(--color-primary-light);color:var(--color-primary)}.tool-call-indicator--write[data-v-40bd3149]{background:var(--color-success-light);color:var(--color-success)}.tool-call-indicator--search[data-v-40bd3149],.tool-call-indicator--grep[data-v-40bd3149],.tool-call-indicator--glob[data-v-40bd3149]{background:var(--color-primary-light);color:var(--color-primary)}.chat-message[data-v-759781a1]{display:flex;gap:var(--space-3);padding:var(--space-3) var(--space-4)}.chat-message--user[data-v-759781a1]{flex-direction:row-reverse}.chat-message__avatar[data-v-759781a1]{flex-shrink:0}.chat-message__avatar--assistant[data-v-759781a1]{background:var(--gradient-brand)!important}.chat-message__avatar--user[data-v-759781a1]{background-color:var(--color-success)!important}.chat-message__body[data-v-759781a1]{max-width:75%;display:flex;flex-direction:column;gap:var(--space-1)}.chat-message--user .chat-message__body[data-v-759781a1]{align-items:flex-end}.chat-message__tools[data-v-759781a1]{display:flex;gap:var(--space-1);flex-wrap:wrap}.chat-message__content[data-v-759781a1]{padding:var(--space-2) var(--space-3);border-radius:var(--radius-lg);line-height:var(--leading-normal);font-size:var(--font-base);word-break:break-word}.chat-message__content--user[data-v-759781a1]{background:var(--color-primary);color:var(--text-inverse);border-bottom-right-radius:var(--radius-sm)}.chat-message__content--assistant[data-v-759781a1]{background:var(--bg-primary);color:var(--text-primary);border:1px solid var(--border-color);border-bottom-left-radius:var(--radius-sm)}.chat-message__markdown[data-v-759781a1]{overflow-x:auto}.chat-message__markdown[data-v-759781a1] p{margin-bottom:var(--space-2)}.chat-message__markdown[data-v-759781a1] p:last-child{margin-bottom:0}.chat-message__markdown[data-v-759781a1] pre{background:var(--code-bg);color:var(--code-fg);padding:var(--space-3);border-radius:var(--radius-md);overflow-x:auto;margin:var(--space-2) 0;font-size:var(--font-sm)}.chat-message__markdown[data-v-759781a1] code{font-family:SF Mono,Fira Code,Cascadia Code,Menlo,Consolas,monospace;font-size:var(--font-sm)}.chat-message__markdown[data-v-759781a1] :not(pre)>code{background:var(--color-primary-light);color:var(--color-primary);padding:1px var(--space-1);border-radius:var(--radius-sm)}.chat-message__markdown[data-v-759781a1] ul,.chat-message__markdown[data-v-759781a1] ol{padding-left:var(--space-5);margin-bottom:var(--space-2)}.chat-message__markdown[data-v-759781a1] h1,.chat-message__markdown[data-v-759781a1] h2,.chat-message__markdown[data-v-759781a1] h3{margin-top:var(--space-3);margin-bottom:var(--space-2)}.chat-message__loading[data-v-759781a1]{margin-left:var(--space-2)}.chat-message__routing[data-v-759781a1]{display:flex;gap:var(--space-1);flex-wrap:wrap}.chat-message__time[data-v-759781a1]{font-size:var(--font-xs);color:var(--text-placeholder)}.context-pill[data-v-6f381f53]{display:inline-flex;align-items:center;gap:var(--space-1);padding:2px var(--space-2);background:var(--bg-tertiary);border:1px solid var(--border-color);border-radius:var(--radius-full);font-size:var(--font-xs);color:var(--text-secondary);max-width:160px}.context-pill__icon[data-v-6f381f53]{font-size:10px;color:var(--text-tertiary);flex-shrink:0}.context-pill__label[data-v-6f381f53]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.context-pill__remove[data-v-6f381f53]{display:flex;align-items:center;justify-content:center;width:14px;height:14px;border:none;background:transparent;color:var(--text-placeholder);cursor:pointer;border-radius:var(--radius-full);flex-shrink:0;padding:0;transition:all var(--transition-fast)}.context-pill__remove[data-v-6f381f53]:hover{color:var(--color-error);background:var(--color-error-light)}.chat-input[data-v-4de32b43]{display:flex;flex-direction:column;padding:var(--space-2) var(--space-3);background:var(--bg-primary);border-top:1px solid var(--border-color)}.chat-input__pills[data-v-4de32b43]{display:flex;gap:var(--space-1);flex-wrap:wrap;padding-bottom:var(--space-2)}.chat-input__row[data-v-4de32b43]{display:flex;align-items:flex-end;gap:var(--space-2)}.chat-input__textarea[data-v-4de32b43]{flex:1}.chat-input__send[data-v-4de32b43]{flex-shrink:0;height:40px}.chat-view[data-v-e924e120]{display:flex;height:100%;overflow:hidden}.chat-view__main[data-v-e924e120]{flex:1;display:flex;flex-direction:column;overflow:hidden;background:var(--bg-secondary)}.chat-view__empty[data-v-e924e120]{flex:1;display:flex;align-items:center;justify-content:center}.chat-view__messages[data-v-e924e120]{flex:1;overflow-y:auto;padding:var(--space-4) 0}.chat-view__welcome[data-v-e924e120]{display:flex;flex-direction:column;align-items:center;justify-content:center;height:100%;color:var(--text-placeholder)}.chat-view__welcome-icon[data-v-e924e120]{font-size:48px;background:var(--gradient-brand);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text;margin-bottom:var(--space-4)}.chat-view__welcome h2[data-v-e924e120]{color:var(--text-primary);font-size:var(--font-xl);margin-bottom:var(--space-2)}.chat-view__welcome p[data-v-e924e120]{font-size:var(--font-base);color:var(--text-tertiary)}.chat-view__steps[data-v-e924e120]{padding:var(--space-2) var(--space-4);margin:0 var(--space-4);background:var(--bg-primary);border-radius:var(--radius-lg);border:1px solid var(--border-color)}.chat-view__step[data-v-e924e120]{display:flex;align-items:center;gap:var(--space-1);padding:2px 0;font-size:var(--font-sm);color:var(--text-secondary)}.chat-view__step-icon[data-v-e924e120]{font-size:10px;color:var(--color-primary)} diff --git a/src/agentkit/server/static/assets/Checkbox-C1b034xJ.js b/src/agentkit/server/static/assets/Checkbox-C1b034xJ.js new file mode 100644 index 0000000..ea4defd --- /dev/null +++ b/src/agentkit/server/static/assets/Checkbox-C1b034xJ.js @@ -0,0 +1 @@ +import{d as q,r as f,A as V,_ as o,N as W,c as h,E as F,P as I}from"./index-Ci55MVrK.js";import{i as M}from"./_plugin-vue_export-helper-CBXJ7-XR.js";var R=function(t,l){var c={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&l.indexOf(n)<0&&(c[n]=t[n]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(t);at.checked,()=>{d.value=t.checked}),a({focus(){var e;(e=s.value)===null||e===void 0||e.focus()},blur(){var e;(e=s.value)===null||e===void 0||e.blur()}});const i=f(),y=e=>{if(t.disabled)return;t.checked===void 0&&(d.value=e.target.checked),e.shiftKey=i.value;const u={target:o(o({},t),{checked:e.target.checked}),stopPropagation(){e.stopPropagation()},preventDefault(){e.preventDefault()},nativeEvent:e};t.checked!==void 0&&(s.value.checked=!!t.checked),n("change",u),i.value=!1},k=e=>{n("click",e),i.value=e.shiftKey};return()=>{const{prefixCls:e,name:u,id:g,type:m,disabled:b,readonly:x,tabindex:C,autofocus:O,value:P,required:S}=t,_=R(t,["prefixCls","name","id","type","disabled","readonly","tabindex","autofocus","value","required"]),{class:j,onFocus:B,onBlur:N,onKeydown:K,onKeypress:w,onKeyup:A}=c,v=o(o({},_),c),D=Object.keys(v).reduce((p,r)=>((r.startsWith("data-")||r.startsWith("aria-")||r==="role")&&(p[r]=v[r]),p),{}),E=W(e,j,{[`${e}-checked`]:d.value,[`${e}-disabled`]:b}),$=o(o({name:u,id:g,type:m,readonly:x,disabled:b,tabindex:C,class:`${e}-input`,checked:!!d.value,autofocus:O,value:P},D),{onChange:y,onClick:k,onFocus:B,onBlur:N,onKeydown:K,onKeypress:w,onKeyup:A,required:S});return h("span",{class:E},[h("input",F({ref:s},$),null),h("span",{class:`${e}-inner`},null)])}}});export{H as V}; diff --git a/src/agentkit/server/static/assets/ComputerUseView-CNxrLPiM.js b/src/agentkit/server/static/assets/ComputerUseView-CNxrLPiM.js new file mode 100644 index 0000000..aa7ab6f --- /dev/null +++ b/src/agentkit/server/static/assets/ComputerUseView-CNxrLPiM.js @@ -0,0 +1 @@ +import{D as b}from"./DesktopOutlined-CoQCwQyg.js";import{c as l,I as x,p as I,q as H,d as z,z as y,E as D,g as T,ab as V,ac as O,ad as N,P as p,N as P,a as W,w as A,ae as R,e as g,o as G,X as L}from"./index-Ci55MVrK.js";import{B as U}from"./index-Dr_Qcbdk.js";import{_ as X}from"./_plugin-vue_export-helper-CBXJ7-XR.js";var q={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"};function j(t){for(var n=1;nl("svg",{width:"252",height:"294"},[l("defs",null,[l("path",{d:"M0 .387h251.772v251.772H0z"},null)]),l("g",{fill:"none","fill-rule":"evenodd"},[l("g",{transform:"translate(0 .012)"},[l("mask",{fill:"#fff"},null),l("path",{d:"M0 127.32v-2.095C0 56.279 55.892.387 124.838.387h2.096c68.946 0 124.838 55.892 124.838 124.838v2.096c0 68.946-55.892 124.838-124.838 124.838h-2.096C55.892 252.16 0 196.267 0 127.321",fill:"#E4EBF7",mask:"url(#b)"},null)]),l("path",{d:"M39.755 130.84a8.276 8.276 0 1 1-16.468-1.66 8.276 8.276 0 0 1 16.468 1.66",fill:"#FFF"},null),l("path",{d:"M36.975 134.297l10.482 5.943M48.373 146.508l-12.648 10.788",stroke:"#FFF","stroke-width":"2"},null),l("path",{d:"M39.875 159.352a5.667 5.667 0 1 1-11.277-1.136 5.667 5.667 0 0 1 11.277 1.136M57.588 143.247a5.708 5.708 0 1 1-11.358-1.145 5.708 5.708 0 0 1 11.358 1.145M99.018 26.875l29.82-.014a4.587 4.587 0 1 0-.003-9.175l-29.82.013a4.587 4.587 0 1 0 .003 9.176M110.424 45.211l29.82-.013a4.588 4.588 0 0 0-.004-9.175l-29.82.013a4.587 4.587 0 1 0 .004 9.175",fill:"#FFF"},null),l("path",{d:"M112.798 26.861v-.002l15.784-.006a4.588 4.588 0 1 0 .003 9.175l-15.783.007v-.002a4.586 4.586 0 0 0-.004-9.172M184.523 135.668c-.553 5.485-5.447 9.483-10.931 8.93-5.485-.553-9.483-5.448-8.93-10.932.552-5.485 5.447-9.483 10.932-8.93 5.485.553 9.483 5.447 8.93 10.932",fill:"#FFF"},null),l("path",{d:"M179.26 141.75l12.64 7.167M193.006 156.477l-15.255 13.011",stroke:"#FFF","stroke-width":"2"},null),l("path",{d:"M184.668 170.057a6.835 6.835 0 1 1-13.6-1.372 6.835 6.835 0 0 1 13.6 1.372M203.34 153.325a6.885 6.885 0 1 1-13.7-1.382 6.885 6.885 0 0 1 13.7 1.382",fill:"#FFF"},null),l("path",{d:"M151.931 192.324a2.222 2.222 0 1 1-4.444 0 2.222 2.222 0 0 1 4.444 0zM225.27 116.056a2.222 2.222 0 1 1-4.445 0 2.222 2.222 0 0 1 4.444 0zM216.38 151.08a2.223 2.223 0 1 1-4.446-.001 2.223 2.223 0 0 1 4.446 0zM176.917 107.636a2.223 2.223 0 1 1-4.445 0 2.223 2.223 0 0 1 4.445 0zM195.291 92.165a2.223 2.223 0 1 1-4.445 0 2.223 2.223 0 0 1 4.445 0zM202.058 180.711a2.223 2.223 0 1 1-4.446 0 2.223 2.223 0 0 1 4.446 0z",stroke:"#FFF","stroke-width":"2"},null),l("path",{stroke:"#FFF","stroke-width":"2",d:"M214.404 153.302l-1.912 20.184-10.928 5.99M173.661 174.792l-6.356 9.814h-11.36l-4.508 6.484M174.941 125.168v-15.804M220.824 117.25l-12.84 7.901-15.31-7.902V94.39"},null),l("path",{d:"M166.588 65.936h-3.951a4.756 4.756 0 0 1-4.743-4.742 4.756 4.756 0 0 1 4.743-4.743h3.951a4.756 4.756 0 0 1 4.743 4.743 4.756 4.756 0 0 1-4.743 4.742",fill:"#FFF"},null),l("path",{d:"M174.823 30.03c0-16.281 13.198-29.48 29.48-29.48 16.28 0 29.48 13.199 29.48 29.48 0 16.28-13.2 29.48-29.48 29.48-16.282 0-29.48-13.2-29.48-29.48",fill:"#1890FF"},null),l("path",{d:"M205.952 38.387c.5.5.785 1.142.785 1.928s-.286 1.465-.785 1.964c-.572.5-1.214.75-2 .75-.785 0-1.429-.285-1.929-.785-.572-.5-.82-1.143-.82-1.929s.248-1.428.82-1.928c.5-.5 1.144-.75 1.93-.75.785 0 1.462.25 1.999.75m4.285-19.463c1.428 1.249 2.143 2.963 2.143 5.142 0 1.712-.427 3.13-1.219 4.25-.067.096-.137.18-.218.265-.416.429-1.41 1.346-2.956 2.699a5.07 5.07 0 0 0-1.428 1.75 5.207 5.207 0 0 0-.536 2.357v.5h-4.107v-.5c0-1.357.215-2.536.714-3.5.464-.964 1.857-2.464 4.178-4.536l.43-.5c.643-.785.964-1.643.964-2.535 0-1.18-.358-2.108-1-2.785-.678-.68-1.643-1.001-2.858-1.001-1.536 0-2.642.464-3.357 1.43-.37.5-.621 1.135-.76 1.904a1.999 1.999 0 0 1-1.971 1.63h-.004c-1.277 0-2.257-1.183-1.98-2.43.337-1.518 1.02-2.78 2.073-3.784 1.536-1.5 3.607-2.25 6.25-2.25 2.32 0 4.214.607 5.642 1.894",fill:"#FFF"},null),l("path",{d:"M52.04 76.131s21.81 5.36 27.307 15.945c5.575 10.74-6.352 9.26-15.73 4.935-10.86-5.008-24.7-11.822-11.577-20.88",fill:"#FFB594"},null),l("path",{d:"M90.483 67.504l-.449 2.893c-.753.49-4.748-2.663-4.748-2.663l-1.645.748-1.346-5.684s6.815-4.589 8.917-5.018c2.452-.501 9.884.94 10.7 2.278 0 0 1.32.486-2.227.69-3.548.203-5.043.447-6.79 3.132-1.747 2.686-2.412 3.624-2.412 3.624",fill:"#FFC6A0"},null),l("path",{d:"M128.055 111.367c-2.627-7.724-6.15-13.18-8.917-15.478-3.5-2.906-9.34-2.225-11.366-4.187-1.27-1.231-3.215-1.197-3.215-1.197s-14.98-3.158-16.828-3.479c-2.37-.41-2.124-.714-6.054-1.405-1.57-1.907-2.917-1.122-2.917-1.122l-7.11-1.383c-.853-1.472-2.423-1.023-2.423-1.023l-2.468-.897c-1.645 9.976-7.74 13.796-7.74 13.796 1.795 1.122 15.703 8.3 15.703 8.3l5.107 37.11s-3.321 5.694 1.346 9.109c0 0 19.883-3.743 34.921-.329 0 0 3.047-2.546.972-8.806.523-3.01 1.394-8.263 1.736-11.622.385.772 2.019 1.918 3.14 3.477 0 0 9.407-7.365 11.052-14.012-.832-.723-1.598-1.585-2.267-2.453-.567-.736-.358-2.056-.765-2.717-.669-1.084-1.804-1.378-1.907-1.682",fill:"#FFF"},null),l("path",{d:"M101.09 289.998s4.295 2.041 7.354 1.021c2.821-.94 4.53.668 7.08 1.178 2.55.51 6.874 1.1 11.686-1.26-.103-5.51-6.889-3.98-11.96-6.713-2.563-1.38-3.784-4.722-3.598-8.799h-9.402s-1.392 10.52-1.16 14.573",fill:"#CBD1D1"},null),l("path",{d:"M101.067 289.826s2.428 1.271 6.759.653c3.058-.437 3.712.481 7.423 1.031 3.712.55 10.724-.069 11.823-.894.413 1.1-.343 2.063-.343 2.063s-1.512.603-4.812.824c-2.03.136-5.8.291-7.607-.503-1.787-1.375-5.247-1.903-5.728-.241-3.918.95-7.355-.286-7.355-.286l-.16-2.647z",fill:"#2B0849"},null),l("path",{d:"M108.341 276.044h3.094s-.103 6.702 4.536 8.558c-4.64.618-8.558-2.303-7.63-8.558",fill:"#A4AABA"},null),l("path",{d:"M57.542 272.401s-2.107 7.416-4.485 12.306c-1.798 3.695-4.225 7.492 5.465 7.492 6.648 0 8.953-.48 7.423-6.599-1.53-6.12.266-13.199.266-13.199h-8.669z",fill:"#CBD1D1"},null),l("path",{d:"M51.476 289.793s2.097 1.169 6.633 1.169c6.083 0 8.249-1.65 8.249-1.65s.602 1.114-.619 2.165c-.993.855-3.597 1.591-7.39 1.546-4.145-.048-5.832-.566-6.736-1.168-.825-.55-.687-1.58-.137-2.062",fill:"#2B0849"},null),l("path",{d:"M58.419 274.304s.033 1.519-.314 2.93c-.349 1.42-1.078 3.104-1.13 4.139-.058 1.151 4.537 1.58 5.155.034.62-1.547 1.294-6.427 1.913-7.252.619-.825-4.903-2.119-5.624.15",fill:"#A4AABA"},null),l("path",{d:"M99.66 278.514l13.378.092s1.298-54.52 1.853-64.403c.554-9.882 3.776-43.364 1.002-63.128l-12.547-.644-22.849.78s-.434 3.966-1.195 9.976c-.063.496-.682.843-.749 1.365-.075.585.423 1.354.32 1.966-2.364 14.08-6.377 33.104-8.744 46.677-.116.666-1.234 1.009-1.458 2.691-.04.302.211 1.525.112 1.795-6.873 18.744-10.949 47.842-14.277 61.885l14.607-.014s2.197-8.57 4.03-16.97c2.811-12.886 23.111-85.01 23.111-85.01l3.016-.521 1.043 46.35s-.224 1.234.337 2.02c.56.785-.56 1.123-.392 2.244l.392 1.794s-.449 7.178-.898 11.89c-.448 4.71-.092 39.165-.092 39.165",fill:"#7BB2F9"},null),l("path",{d:"M76.085 221.626c1.153.094 4.038-2.019 6.955-4.935M106.36 225.142s2.774-1.11 6.103-3.883",stroke:"#648BD8","stroke-width":"1.051","stroke-linecap":"round","stroke-linejoin":"round"},null),l("path",{d:"M107.275 222.1s2.773-1.11 6.102-3.884",stroke:"#648BD8","stroke-linecap":"round","stroke-linejoin":"round"},null),l("path",{d:"M74.74 224.767s2.622-.591 6.505-3.365M86.03 151.634c-.27 3.106.3 8.525-4.336 9.123M103.625 149.88s.11 14.012-1.293 15.065c-2.219 1.664-2.99 1.944-2.99 1.944M99.79 150.438s.035 12.88-1.196 24.377M93.673 175.911s7.212-1.664 9.431-1.664M74.31 205.861a212.013 212.013 0 0 1-.979 4.56s-1.458 1.832-1.009 3.776c.449 1.944-.947 2.045-4.985 15.355-1.696 5.59-4.49 18.591-6.348 27.597l-.231 1.12M75.689 197.807a320.934 320.934 0 0 1-.882 4.754M82.591 152.233L81.395 162.7s-1.097.15-.5 2.244c.113 1.346-2.674 15.775-5.18 30.43M56.12 274.418h13.31",stroke:"#648BD8","stroke-width":"1.051","stroke-linecap":"round","stroke-linejoin":"round"},null),l("path",{d:"M116.241 148.22s-17.047-3.104-35.893.2c.158 2.514-.003 4.15-.003 4.15s14.687-2.818 35.67-.312c.252-2.355.226-4.038.226-4.038",fill:"#192064"},null),l("path",{d:"M106.322 151.165l.003-4.911a.81.81 0 0 0-.778-.815c-2.44-.091-5.066-.108-7.836-.014a.818.818 0 0 0-.789.815l-.003 4.906a.81.81 0 0 0 .831.813c2.385-.06 4.973-.064 7.73.017a.815.815 0 0 0 .842-.81",fill:"#FFF"},null),l("path",{d:"M105.207 150.233l.002-3.076a.642.642 0 0 0-.619-.646 94.321 94.321 0 0 0-5.866-.01.65.65 0 0 0-.63.647v3.072a.64.64 0 0 0 .654.644 121.12 121.12 0 0 1 5.794.011c.362.01.665-.28.665-.642",fill:"#192064"},null),l("path",{d:"M100.263 275.415h12.338M101.436 270.53c.006 3.387.042 5.79.111 6.506M101.451 264.548a915.75 915.75 0 0 0-.015 4.337M100.986 174.965l.898 44.642s.673 1.57-.225 2.692c-.897 1.122 2.468.673.898 2.243-1.57 1.57.897 1.122 0 3.365-.596 1.489-.994 21.1-1.096 35.146",stroke:"#648BD8","stroke-width":"1.051","stroke-linecap":"round","stroke-linejoin":"round"},null),l("path",{d:"M46.876 83.427s-.516 6.045 7.223 5.552c11.2-.712 9.218-9.345 31.54-21.655-.786-2.708-2.447-4.744-2.447-4.744s-11.068 3.11-22.584 8.046c-6.766 2.9-13.395 6.352-13.732 12.801M104.46 91.057l.941-5.372-8.884-11.43-5.037 5.372-1.74 7.834a.321.321 0 0 0 .108.32c.965.8 6.5 5.013 14.347 3.544a.332.332 0 0 0 .264-.268",fill:"#FFC6A0"},null),l("path",{d:"M93.942 79.387s-4.533-2.853-2.432-6.855c1.623-3.09 4.513 1.133 4.513 1.133s.52-3.642 3.121-3.642c.52-1.04 1.561-4.162 1.561-4.162s11.445 2.601 13.526 3.121c0 5.203-2.304 19.424-7.84 19.861-8.892.703-12.449-9.456-12.449-9.456",fill:"#FFC6A0"},null),l("path",{d:"M113.874 73.446c2.601-2.081 3.47-9.722 3.47-9.722s-2.479-.49-6.64-2.05c-4.683-2.081-12.798-4.747-17.48.976-9.668 3.223-2.05 19.823-2.05 19.823l2.713-3.021s-3.935-3.287-2.08-6.243c2.17-3.462 3.92 1.073 3.92 1.073s.637-2.387 3.581-3.342c.355-.71 1.036-2.674 1.432-3.85a1.073 1.073 0 0 1 1.263-.704c2.4.558 8.677 2.019 11.356 2.662.522.125.871.615.82 1.15l-.305 3.248z",fill:"#520038"},null),l("path",{d:"M104.977 76.064c-.103.61-.582 1.038-1.07.956-.489-.083-.801-.644-.698-1.254.103-.61.582-1.038 1.07-.956.488.082.8.644.698 1.254M112.132 77.694c-.103.61-.582 1.038-1.07.956-.488-.083-.8-.644-.698-1.254.103-.61.582-1.038 1.07-.956.488.082.8.643.698 1.254",fill:"#552950"},null),l("path",{stroke:"#DB836E","stroke-width":"1.118","stroke-linecap":"round","stroke-linejoin":"round",d:"M110.13 74.84l-.896 1.61-.298 4.357h-2.228"},null),l("path",{d:"M110.846 74.481s1.79-.716 2.506.537",stroke:"#5C2552","stroke-width":"1.118","stroke-linecap":"round","stroke-linejoin":"round"},null),l("path",{d:"M92.386 74.282s.477-1.114 1.113-.716c.637.398 1.274 1.433.558 1.99-.717.556.159 1.67.159 1.67",stroke:"#DB836E","stroke-width":"1.118","stroke-linecap":"round","stroke-linejoin":"round"},null),l("path",{d:"M103.287 72.93s1.83 1.113 4.137.954",stroke:"#5C2552","stroke-width":"1.118","stroke-linecap":"round","stroke-linejoin":"round"},null),l("path",{d:"M103.685 81.762s2.227 1.193 4.376 1.193M104.64 84.308s.954.398 1.511.318M94.693 81.205s2.308 7.4 10.424 7.639",stroke:"#DB836E","stroke-width":"1.118","stroke-linecap":"round","stroke-linejoin":"round"},null),l("path",{d:"M81.45 89.384s.45 5.647-4.935 12.787M69 82.654s-.726 9.282-8.204 14.206",stroke:"#E4EBF7","stroke-width":"1.101","stroke-linecap":"round","stroke-linejoin":"round"},null),l("path",{d:"M129.405 122.865s-5.272 7.403-9.422 10.768",stroke:"#E4EBF7","stroke-width":"1.051","stroke-linecap":"round","stroke-linejoin":"round"},null),l("path",{d:"M119.306 107.329s.452 4.366-2.127 32.062",stroke:"#E4EBF7","stroke-width":"1.101","stroke-linecap":"round","stroke-linejoin":"round"},null),l("path",{d:"M150.028 151.232h-49.837a1.01 1.01 0 0 1-1.01-1.01v-31.688c0-.557.452-1.01 1.01-1.01h49.837c.558 0 1.01.453 1.01 1.01v31.688a1.01 1.01 0 0 1-1.01 1.01",fill:"#F2D7AD"},null),l("path",{d:"M150.29 151.232h-19.863v-33.707h20.784v32.786a.92.92 0 0 1-.92.92",fill:"#F4D19D"},null),l("path",{d:"M123.554 127.896H92.917a.518.518 0 0 1-.425-.816l6.38-9.113c.193-.277.51-.442.85-.442h31.092l-7.26 10.371z",fill:"#F2D7AD"},null),l("path",{fill:"#CC9B6E",d:"M123.689 128.447H99.25v-.519h24.169l7.183-10.26.424.298z"},null),l("path",{d:"M158.298 127.896h-18.669a2.073 2.073 0 0 1-1.659-.83l-7.156-9.541h19.965c.49 0 .95.23 1.244.622l6.69 8.92a.519.519 0 0 1-.415.83",fill:"#F4D19D"},null),l("path",{fill:"#CC9B6E",d:"M157.847 128.479h-19.384l-7.857-10.475.415-.31 7.7 10.266h19.126zM130.554 150.685l-.032-8.177.519-.002.032 8.177z"},null),l("path",{fill:"#CC9B6E",d:"M130.511 139.783l-.08-21.414.519-.002.08 21.414zM111.876 140.932l-.498-.143 1.479-5.167.498.143zM108.437 141.06l-2.679-2.935 2.665-3.434.41.318-2.397 3.089 2.384 2.612zM116.607 141.06l-.383-.35 2.383-2.612-2.397-3.089.41-.318 2.665 3.434z"},null),l("path",{d:"M154.316 131.892l-3.114-1.96.038 3.514-1.043.092c-1.682.115-3.634.23-4.789.23-1.902 0-2.693 2.258 2.23 2.648l-2.645-.596s-2.168 1.317.504 2.3c0 0-1.58 1.217.561 2.58-.584 3.504 5.247 4.058 7.122 3.59 1.876-.47 4.233-2.359 4.487-5.16.28-3.085-.89-5.432-3.35-7.238",fill:"#FFC6A0"},null),l("path",{d:"M153.686 133.577s-6.522.47-8.36.372c-1.836-.098-1.904 2.19 2.359 2.264 3.739.15 5.451-.044 5.451-.044",stroke:"#DB836E","stroke-width":"1.051","stroke-linecap":"round","stroke-linejoin":"round"},null),l("path",{d:"M145.16 135.877c-1.85 1.346.561 2.355.561 2.355s3.478.898 6.73.617",stroke:"#DB836E","stroke-width":"1.051","stroke-linecap":"round","stroke-linejoin":"round"},null),l("path",{d:"M151.89 141.71s-6.28.111-6.73-2.132c-.223-1.346.45-1.402.45-1.402M146.114 140.868s-1.103 3.16 5.44 3.533M151.202 129.932v3.477M52.838 89.286c3.533-.337 8.423-1.248 13.582-7.754",stroke:"#DB836E","stroke-width":"1.051","stroke-linecap":"round","stroke-linejoin":"round"},null),l("path",{d:"M168.567 248.318a6.647 6.647 0 0 1-6.647-6.647v-66.466a6.647 6.647 0 1 1 13.294 0v66.466a6.647 6.647 0 0 1-6.647 6.647",fill:"#5BA02E"},null),l("path",{d:"M176.543 247.653a6.647 6.647 0 0 1-6.646-6.647v-33.232a6.647 6.647 0 1 1 13.293 0v33.232a6.647 6.647 0 0 1-6.647 6.647",fill:"#92C110"},null),l("path",{d:"M186.443 293.613H158.92a3.187 3.187 0 0 1-3.187-3.187v-46.134a3.187 3.187 0 0 1 3.187-3.187h27.524a3.187 3.187 0 0 1 3.187 3.187v46.134a3.187 3.187 0 0 1-3.187 3.187",fill:"#F2D7AD"},null),l("path",{d:"M88.979 89.48s7.776 5.384 16.6 2.842",stroke:"#E4EBF7","stroke-width":"1.101","stroke-linecap":"round","stroke-linejoin":"round"},null)])]),Y=()=>l("svg",{width:"254",height:"294"},[l("defs",null,[l("path",{d:"M0 .335h253.49v253.49H0z"},null),l("path",{d:"M0 293.665h253.49V.401H0z"},null)]),l("g",{fill:"none","fill-rule":"evenodd"},[l("g",{transform:"translate(0 .067)"},[l("mask",{fill:"#fff"},null),l("path",{d:"M0 128.134v-2.11C0 56.608 56.273.334 125.69.334h2.11c69.416 0 125.69 56.274 125.69 125.69v2.11c0 69.417-56.274 125.69-125.69 125.69h-2.11C56.273 253.824 0 197.551 0 128.134",fill:"#E4EBF7",mask:"url(#b)"},null)]),l("path",{d:"M39.989 132.108a8.332 8.332 0 1 1-16.581-1.671 8.332 8.332 0 0 1 16.58 1.671",fill:"#FFF"},null),l("path",{d:"M37.19 135.59l10.553 5.983M48.665 147.884l-12.734 10.861",stroke:"#FFF","stroke-width":"2"},null),l("path",{d:"M40.11 160.816a5.706 5.706 0 1 1-11.354-1.145 5.706 5.706 0 0 1 11.354 1.145M57.943 144.6a5.747 5.747 0 1 1-11.436-1.152 5.747 5.747 0 0 1 11.436 1.153M99.656 27.434l30.024-.013a4.619 4.619 0 1 0-.004-9.238l-30.024.013a4.62 4.62 0 0 0 .004 9.238M111.14 45.896l30.023-.013a4.62 4.62 0 1 0-.004-9.238l-30.024.013a4.619 4.619 0 1 0 .004 9.238",fill:"#FFF"},null),l("path",{d:"M113.53 27.421v-.002l15.89-.007a4.619 4.619 0 1 0 .005 9.238l-15.892.007v-.002a4.618 4.618 0 0 0-.004-9.234M150.167 70.091h-3.979a4.789 4.789 0 0 1-4.774-4.775 4.788 4.788 0 0 1 4.774-4.774h3.979a4.789 4.789 0 0 1 4.775 4.774 4.789 4.789 0 0 1-4.775 4.775",fill:"#FFF"},null),l("path",{d:"M171.687 30.234c0-16.392 13.289-29.68 29.681-29.68 16.392 0 29.68 13.288 29.68 29.68 0 16.393-13.288 29.681-29.68 29.681s-29.68-13.288-29.68-29.68",fill:"#FF603B"},null),l("path",{d:"M203.557 19.435l-.676 15.035a1.514 1.514 0 0 1-3.026 0l-.675-15.035a2.19 2.19 0 1 1 4.377 0m-.264 19.378c.513.477.77 1.1.77 1.87s-.257 1.393-.77 1.907c-.55.476-1.21.733-1.943.733a2.545 2.545 0 0 1-1.87-.77c-.55-.514-.806-1.136-.806-1.87 0-.77.256-1.393.806-1.87.513-.513 1.137-.733 1.87-.733.77 0 1.43.22 1.943.733",fill:"#FFF"},null),l("path",{d:"M119.3 133.275c4.426-.598 3.612-1.204 4.079-4.778.675-5.18-3.108-16.935-8.262-25.118-1.088-10.72-12.598-11.24-12.598-11.24s4.312 4.895 4.196 16.199c1.398 5.243.804 14.45.804 14.45s5.255 11.369 11.78 10.487",fill:"#FFB594"},null),l("path",{d:"M100.944 91.61s1.463-.583 3.211.582c8.08 1.398 10.368 6.706 11.3 11.368 1.864 1.282 1.864 2.33 1.864 3.496.365.777 1.515 3.03 1.515 3.03s-7.225 1.748-10.954 6.758c-1.399-6.41-6.936-25.235-6.936-25.235",fill:"#FFF"},null),l("path",{d:"M94.008 90.5l1.019-5.815-9.23-11.874-5.233 5.581-2.593 9.863s8.39 5.128 16.037 2.246",fill:"#FFB594"},null),l("path",{d:"M82.931 78.216s-4.557-2.868-2.445-6.892c1.632-3.107 4.537 1.139 4.537 1.139s.524-3.662 3.139-3.662c.523-1.046 1.569-4.184 1.569-4.184s11.507 2.615 13.6 3.138c-.001 5.23-2.317 19.529-7.884 19.969-8.94.706-12.516-9.508-12.516-9.508",fill:"#FFC6A0"},null),l("path",{d:"M102.971 72.243c2.616-2.093 3.489-9.775 3.489-9.775s-2.492-.492-6.676-2.062c-4.708-2.092-12.867-4.771-17.575.982-9.54 4.41-2.062 19.93-2.062 19.93l2.729-3.037s-3.956-3.304-2.092-6.277c2.183-3.48 3.943 1.08 3.943 1.08s.64-2.4 3.6-3.36c.356-.714 1.04-2.69 1.44-3.872a1.08 1.08 0 0 1 1.27-.707c2.41.56 8.723 2.03 11.417 2.676.524.126.876.619.825 1.156l-.308 3.266z",fill:"#520038"},null),l("path",{d:"M101.22 76.514c-.104.613-.585 1.044-1.076.96-.49-.082-.805-.646-.702-1.26.104-.613.585-1.044 1.076-.961.491.083.805.647.702 1.26M94.26 75.074c-.104.613-.585 1.044-1.076.96-.49-.082-.805-.646-.702-1.26.104-.613.585-1.044 1.076-.96.491.082.805.646.702 1.26",fill:"#552950"},null),l("path",{stroke:"#DB836E","stroke-width":"1.063","stroke-linecap":"round","stroke-linejoin":"round",d:"M99.206 73.644l-.9 1.62-.3 4.38h-2.24"},null),l("path",{d:"M99.926 73.284s1.8-.72 2.52.54",stroke:"#5C2552","stroke-width":"1.117","stroke-linecap":"round","stroke-linejoin":"round"},null),l("path",{d:"M81.367 73.084s.48-1.12 1.12-.72c.64.4 1.28 1.44.56 2s.16 1.68.16 1.68",stroke:"#DB836E","stroke-width":"1.117","stroke-linecap":"round","stroke-linejoin":"round"},null),l("path",{d:"M92.326 71.724s1.84 1.12 4.16.96",stroke:"#5C2552","stroke-width":"1.117","stroke-linecap":"round","stroke-linejoin":"round"},null),l("path",{d:"M92.726 80.604s2.24 1.2 4.4 1.2M93.686 83.164s.96.4 1.52.32M83.687 80.044s1.786 6.547 9.262 7.954",stroke:"#DB836E","stroke-width":"1.063","stroke-linecap":"round","stroke-linejoin":"round"},null),l("path",{d:"M95.548 91.663s-1.068 2.821-8.298 2.105c-7.23-.717-10.29-5.044-10.29-5.044",stroke:"#E4EBF7","stroke-width":"1.136","stroke-linecap":"round","stroke-linejoin":"round"},null),l("path",{d:"M78.126 87.478s6.526 4.972 16.47 2.486c0 0 9.577 1.02 11.536 5.322 5.36 11.77.543 36.835 0 39.962 3.496 4.055-.466 8.483-.466 8.483-15.624-3.548-35.81-.6-35.81-.6-4.849-3.546-1.223-9.044-1.223-9.044L62.38 110.32c-2.485-15.227.833-19.803 3.549-20.743 3.03-1.049 8.04-1.282 8.04-1.282.496-.058 1.08-.076 1.37-.233 2.36-1.282 2.787-.583 2.787-.583",fill:"#FFF"},null),l("path",{d:"M65.828 89.81s-6.875.465-7.59 8.156c-.466 8.857 3.03 10.954 3.03 10.954s6.075 22.102 16.796 22.957c8.39-2.176 4.758-6.702 4.661-11.42-.233-11.304-7.108-16.897-7.108-16.897s-4.212-13.75-9.789-13.75",fill:"#FFC6A0"},null),l("path",{d:"M71.716 124.225s.855 11.264 9.828 6.486c4.765-2.536 7.581-13.828 9.789-22.568 1.456-5.768 2.58-12.197 2.58-12.197l-4.973-1.709s-2.408 5.516-7.769 12.275c-4.335 5.467-9.144 11.11-9.455 17.713",fill:"#FFC6A0"},null),l("path",{d:"M108.463 105.191s1.747 2.724-2.331 30.535c2.376 2.216 1.053 6.012-.233 7.51",stroke:"#E4EBF7","stroke-width":"1.085","stroke-linecap":"round","stroke-linejoin":"round"},null),l("path",{d:"M123.262 131.527s-.427 2.732-11.77 1.981c-15.187-1.006-25.326-3.25-25.326-3.25l.933-5.8s.723.215 9.71-.068c11.887-.373 18.714-6.07 24.964-1.022 4.039 3.263 1.489 8.16 1.489 8.16",fill:"#FFC6A0"},null),l("path",{d:"M70.24 90.974s-5.593-4.739-11.054 2.68c-3.318 7.223.517 15.284 2.664 19.578-.31 3.729 2.33 4.311 2.33 4.311s.108.895 1.516 2.68c4.078-7.03 6.72-9.166 13.711-12.546-.328-.656-1.877-3.265-1.825-3.767.175-1.69-1.282-2.623-1.282-2.623s-.286-.156-1.165-2.738c-.788-2.313-2.036-5.177-4.895-7.575",fill:"#FFF"},null),l("path",{d:"M90.232 288.027s4.855 2.308 8.313 1.155c3.188-1.063 5.12.755 8.002 1.331 2.881.577 7.769 1.243 13.207-1.424-.117-6.228-7.786-4.499-13.518-7.588-2.895-1.56-4.276-5.336-4.066-9.944H91.544s-1.573 11.89-1.312 16.47",fill:"#CBD1D1"},null),l("path",{d:"M90.207 287.833s2.745 1.437 7.639.738c3.456-.494 3.223.66 7.418 1.282 4.195.621 13.092-.194 14.334-1.126.466 1.242-.388 2.33-.388 2.33s-1.709.682-5.438.932c-2.295.154-8.098.276-10.14-.621-2.02-1.554-4.894-1.515-6.06-.234-4.427 1.075-7.184-.31-7.184-.31l-.181-2.991z",fill:"#2B0849"},null),l("path",{d:"M98.429 272.257h3.496s-.117 7.574 5.127 9.671c-5.244.7-9.672-2.602-8.623-9.671",fill:"#A4AABA"},null),l("path",{d:"M44.425 272.046s-2.208 7.774-4.702 12.899c-1.884 3.874-4.428 7.854 5.729 7.854 6.97 0 9.385-.503 7.782-6.917-1.604-6.415.279-13.836.279-13.836h-9.088z",fill:"#CBD1D1"},null),l("path",{d:"M38.066 290.277s2.198 1.225 6.954 1.225c6.376 0 8.646-1.73 8.646-1.73s.63 1.168-.649 2.27c-1.04.897-3.77 1.668-7.745 1.621-4.347-.05-6.115-.593-7.062-1.224-.864-.577-.72-1.657-.144-2.162",fill:"#2B0849"},null),l("path",{d:"M45.344 274.041s.035 1.592-.329 3.07c-.365 1.49-1.13 3.255-1.184 4.34-.061 1.206 4.755 1.657 5.403.036.65-1.622 1.357-6.737 2.006-7.602.648-.865-5.14-2.222-5.896.156",fill:"#A4AABA"},null),l("path",{d:"M89.476 277.57l13.899.095s1.349-56.643 1.925-66.909c.576-10.267 3.923-45.052 1.042-65.585l-13.037-.669-23.737.81s-.452 4.12-1.243 10.365c-.065.515-.708.874-.777 1.417-.078.608.439 1.407.332 2.044-2.455 14.627-5.797 32.736-8.256 46.837-.121.693-1.282 1.048-1.515 2.796-.042.314.22 1.584.116 1.865-7.14 19.473-12.202 52.601-15.66 67.19l15.176-.015s2.282-10.145 4.185-18.871c2.922-13.389 24.012-88.32 24.012-88.32l3.133-.954-.158 48.568s-.233 1.282.35 2.098c.583.815-.581 1.167-.408 2.331l.408 1.864s-.466 7.458-.932 12.352c-.467 4.895 1.145 40.69 1.145 40.69",fill:"#7BB2F9"},null),l("path",{d:"M64.57 218.881c1.197.099 4.195-2.097 7.225-5.127M96.024 222.534s2.881-1.152 6.34-4.034",stroke:"#648BD8","stroke-width":"1.085","stroke-linecap":"round","stroke-linejoin":"round"},null),l("path",{d:"M96.973 219.373s2.882-1.153 6.34-4.034",stroke:"#648BD8","stroke-width":"1.032","stroke-linecap":"round","stroke-linejoin":"round"},null),l("path",{d:"M63.172 222.144s2.724-.614 6.759-3.496M74.903 146.166c-.281 3.226.31 8.856-4.506 9.478M93.182 144.344s.115 14.557-1.344 15.65c-2.305 1.73-3.107 2.02-3.107 2.02M89.197 144.923s.269 13.144-1.01 25.088M83.525 170.71s6.81-1.051 9.116-1.051M46.026 270.045l-.892 4.538M46.937 263.289l-.815 4.157M62.725 202.503c-.33 1.618-.102 1.904-.449 3.438 0 0-2.756 1.903-2.29 3.923.466 2.02-.31 3.424-4.505 17.252-1.762 5.807-4.233 18.922-6.165 28.278-.03.144-.521 2.646-1.14 5.8M64.158 194.136c-.295 1.658-.6 3.31-.917 4.938M71.33 146.787l-1.244 10.877s-1.14.155-.519 2.33c.117 1.399-2.778 16.39-5.382 31.615M44.242 273.727H58.07",stroke:"#648BD8","stroke-width":"1.085","stroke-linecap":"round","stroke-linejoin":"round"},null),l("path",{d:"M106.18 142.117c-3.028-.489-18.825-2.744-36.219.2a.625.625 0 0 0-.518.644c.063 1.307.044 2.343.015 2.995a.617.617 0 0 0 .716.636c3.303-.534 17.037-2.412 35.664-.266.347.04.66-.214.692-.56.124-1.347.16-2.425.17-3.029a.616.616 0 0 0-.52-.62",fill:"#192064"},null),l("path",{d:"M96.398 145.264l.003-5.102a.843.843 0 0 0-.809-.847 114.104 114.104 0 0 0-8.141-.014.85.85 0 0 0-.82.847l-.003 5.097c0 .476.388.857.864.845 2.478-.064 5.166-.067 8.03.017a.848.848 0 0 0 .876-.843",fill:"#FFF"},null),l("path",{d:"M95.239 144.296l.002-3.195a.667.667 0 0 0-.643-.672c-1.9-.061-3.941-.073-6.094-.01a.675.675 0 0 0-.654.672l-.002 3.192c0 .376.305.677.68.669 1.859-.042 3.874-.043 6.02.012.376.01.69-.291.691-.668",fill:"#192064"},null),l("path",{d:"M90.102 273.522h12.819M91.216 269.761c.006 3.519-.072 5.55 0 6.292M90.923 263.474c-.009 1.599-.016 2.558-.016 4.505M90.44 170.404l.932 46.38s.7 1.631-.233 2.796c-.932 1.166 2.564.7.932 2.33-1.63 1.633.933 1.166 0 3.497-.618 1.546-1.031 21.921-1.138 36.513",stroke:"#648BD8","stroke-width":"1.085","stroke-linecap":"round","stroke-linejoin":"round"},null),l("path",{d:"M73.736 98.665l2.214 4.312s2.098.816 1.865 2.68l.816 2.214M64.297 116.611c.233-.932 2.176-7.147 12.585-10.488M77.598 90.042s7.691 6.137 16.547 2.72",stroke:"#E4EBF7","stroke-width":"1.085","stroke-linecap":"round","stroke-linejoin":"round"},null),l("path",{d:"M91.974 86.954s5.476-.816 7.574-4.545c1.297-.345.72 2.212-.33 3.671-.7.971-1.01 1.554-1.01 1.554s.194.31.155.816c-.053.697-.175.653-.272 1.048-.081.335.108.657 0 1.049-.046.17-.198.5-.382.878-.12.249-.072.687-.2.948-.231.469-1.562 1.87-2.622 2.855-3.826 3.554-5.018 1.644-6.001-.408-.894-1.865-.661-5.127-.874-6.875-.35-2.914-2.622-3.03-1.923-4.429.343-.685 2.87.69 3.263 1.748.757 2.04 2.952 1.807 2.622 1.69",fill:"#FFC6A0"},null),l("path",{d:"M99.8 82.429c-.465.077-.35.272-.97 1.243-.622.971-4.817 2.932-6.39 3.224-2.589.48-2.278-1.56-4.254-2.855-1.69-1.107-3.562-.638-1.398 1.398.99.932.932 1.107 1.398 3.205.335 1.506-.64 3.67.7 5.593",stroke:"#DB836E","stroke-width":".774","stroke-linecap":"round","stroke-linejoin":"round"},null),l("path",{d:"M79.543 108.673c-2.1 2.926-4.266 6.175-5.557 8.762",stroke:"#E59788","stroke-width":".774","stroke-linecap":"round","stroke-linejoin":"round"},null),l("path",{d:"M87.72 124.768s-2.098-1.942-5.127-2.719c-3.03-.777-3.574-.155-5.516.078-1.942.233-3.885-.932-3.652.7.233 1.63 5.05 1.01 5.206 2.097.155 1.087-6.37 2.796-8.313 2.175-.777.777.466 1.864 2.02 2.175.233 1.554 2.253 1.554 2.253 1.554s.699 1.01 2.641 1.088c2.486 1.32 8.934-.7 10.954-1.554 2.02-.855-.466-5.594-.466-5.594",fill:"#FFC6A0"},null),l("path",{d:"M73.425 122.826s.66 1.127 3.167 1.418c2.315.27 2.563.583 2.563.583s-2.545 2.894-9.07 2.272M72.416 129.274s3.826.097 4.933-.718M74.98 130.75s1.961.136 3.36-.505M77.232 131.916s1.748.019 2.914-.505M73.328 122.321s-.595-1.032 1.262-.427c1.671.544 2.833.055 5.128.155 1.389.061 3.067-.297 3.982.15 1.606.784 3.632 2.181 3.632 2.181s10.526 1.204 19.033-1.127M78.864 108.104s-8.39 2.758-13.168 12.12",stroke:"#E59788","stroke-width":".774","stroke-linecap":"round","stroke-linejoin":"round"},null),l("path",{d:"M109.278 112.533s3.38-3.613 7.575-4.662",stroke:"#E4EBF7","stroke-width":"1.085","stroke-linecap":"round","stroke-linejoin":"round"},null),l("path",{d:"M107.375 123.006s9.697-2.745 11.445-.88",stroke:"#E59788","stroke-width":".774","stroke-linecap":"round","stroke-linejoin":"round"},null),l("path",{d:"M194.605 83.656l3.971-3.886M187.166 90.933l3.736-3.655M191.752 84.207l-4.462-4.56M198.453 91.057l-4.133-4.225M129.256 163.074l3.718-3.718M122.291 170.039l3.498-3.498M126.561 163.626l-4.27-4.27M132.975 170.039l-3.955-3.955",stroke:"#BFCDDD","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},null),l("path",{d:"M190.156 211.779h-1.604a4.023 4.023 0 0 1-4.011-4.011V175.68a4.023 4.023 0 0 1 4.01-4.01h1.605a4.023 4.023 0 0 1 4.011 4.01v32.088a4.023 4.023 0 0 1-4.01 4.01",fill:"#A3B4C6"},null),l("path",{d:"M237.824 212.977a4.813 4.813 0 0 1-4.813 4.813h-86.636a4.813 4.813 0 0 1 0-9.626h86.636a4.813 4.813 0 0 1 4.813 4.813",fill:"#A3B4C6"},null),l("mask",{fill:"#fff"},null),l("path",{fill:"#A3B4C6",mask:"url(#d)",d:"M154.098 190.096h70.513v-84.617h-70.513z"},null),l("path",{d:"M224.928 190.096H153.78a3.219 3.219 0 0 1-3.208-3.209V167.92a3.219 3.219 0 0 1 3.208-3.21h71.148a3.219 3.219 0 0 1 3.209 3.21v18.967a3.219 3.219 0 0 1-3.21 3.209M224.928 130.832H153.78a3.218 3.218 0 0 1-3.208-3.208v-18.968a3.219 3.219 0 0 1 3.208-3.209h71.148a3.219 3.219 0 0 1 3.209 3.21v18.967a3.218 3.218 0 0 1-3.21 3.208",fill:"#BFCDDD",mask:"url(#d)"},null),l("path",{d:"M159.563 120.546a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M166.98 120.546a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M174.397 120.546a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M222.539 120.546h-22.461a.802.802 0 0 1-.802-.802v-3.208c0-.443.359-.803.802-.803h22.46c.444 0 .803.36.803.803v3.208c0 .443-.36.802-.802.802",fill:"#FFF",mask:"url(#d)"},null),l("path",{d:"M224.928 160.464H153.78a3.218 3.218 0 0 1-3.208-3.209v-18.967a3.219 3.219 0 0 1 3.208-3.209h71.148a3.219 3.219 0 0 1 3.209 3.209v18.967a3.218 3.218 0 0 1-3.21 3.209",fill:"#BFCDDD",mask:"url(#d)"},null),l("path",{d:"M173.455 130.832h49.301M164.984 130.832h6.089M155.952 130.832h6.75M173.837 160.613h49.3M165.365 160.613h6.089M155.57 160.613h6.751",stroke:"#7C90A5","stroke-width":"1.124","stroke-linecap":"round","stroke-linejoin":"round",mask:"url(#d)"},null),l("path",{d:"M159.563 151.038a2.407 2.407 0 1 1 0-4.814 2.407 2.407 0 0 1 0 4.814M166.98 151.038a2.407 2.407 0 1 1 0-4.814 2.407 2.407 0 0 1 0 4.814M174.397 151.038a2.407 2.407 0 1 1 .001-4.814 2.407 2.407 0 0 1 0 4.814M222.539 151.038h-22.461a.802.802 0 0 1-.802-.802v-3.209c0-.443.359-.802.802-.802h22.46c.444 0 .803.36.803.802v3.209c0 .443-.36.802-.802.802M159.563 179.987a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M166.98 179.987a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M174.397 179.987a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M222.539 179.987h-22.461a.802.802 0 0 1-.802-.802v-3.209c0-.443.359-.802.802-.802h22.46c.444 0 .803.36.803.802v3.209c0 .443-.36.802-.802.802",fill:"#FFF",mask:"url(#d)"},null),l("path",{d:"M203.04 221.108h-27.372a2.413 2.413 0 0 1-2.406-2.407v-11.448a2.414 2.414 0 0 1 2.406-2.407h27.372a2.414 2.414 0 0 1 2.407 2.407V218.7a2.413 2.413 0 0 1-2.407 2.407",fill:"#BFCDDD",mask:"url(#d)"},null),l("path",{d:"M177.259 207.217v11.52M201.05 207.217v11.52",stroke:"#A3B4C6","stroke-width":"1.124","stroke-linecap":"round","stroke-linejoin":"round",mask:"url(#d)"},null),l("path",{d:"M162.873 267.894a9.422 9.422 0 0 1-9.422-9.422v-14.82a9.423 9.423 0 0 1 18.845 0v14.82a9.423 9.423 0 0 1-9.423 9.422",fill:"#5BA02E",mask:"url(#d)"},null),l("path",{d:"M171.22 267.83a9.422 9.422 0 0 1-9.422-9.423v-3.438a9.423 9.423 0 0 1 18.845 0v3.438a9.423 9.423 0 0 1-9.422 9.423",fill:"#92C110",mask:"url(#d)"},null),l("path",{d:"M181.31 293.666h-27.712a3.209 3.209 0 0 1-3.209-3.21V269.79a3.209 3.209 0 0 1 3.209-3.21h27.711a3.209 3.209 0 0 1 3.209 3.21v20.668a3.209 3.209 0 0 1-3.209 3.209",fill:"#F2D7AD",mask:"url(#d)"},null)])]),Z=()=>l("svg",{width:"251",height:"294"},[l("g",{fill:"none","fill-rule":"evenodd"},[l("path",{d:"M0 129.023v-2.084C0 58.364 55.591 2.774 124.165 2.774h2.085c68.574 0 124.165 55.59 124.165 124.165v2.084c0 68.575-55.59 124.166-124.165 124.166h-2.085C55.591 253.189 0 197.598 0 129.023",fill:"#E4EBF7"},null),l("path",{d:"M41.417 132.92a8.231 8.231 0 1 1-16.38-1.65 8.231 8.231 0 0 1 16.38 1.65",fill:"#FFF"},null),l("path",{d:"M38.652 136.36l10.425 5.91M49.989 148.505l-12.58 10.73",stroke:"#FFF","stroke-width":"2"},null),l("path",{d:"M41.536 161.28a5.636 5.636 0 1 1-11.216-1.13 5.636 5.636 0 0 1 11.216 1.13M59.154 145.261a5.677 5.677 0 1 1-11.297-1.138 5.677 5.677 0 0 1 11.297 1.138M100.36 29.516l29.66-.013a4.562 4.562 0 1 0-.004-9.126l-29.66.013a4.563 4.563 0 0 0 .005 9.126M111.705 47.754l29.659-.013a4.563 4.563 0 1 0-.004-9.126l-29.66.013a4.563 4.563 0 1 0 .005 9.126",fill:"#FFF"},null),l("path",{d:"M114.066 29.503V29.5l15.698-.007a4.563 4.563 0 1 0 .004 9.126l-15.698.007v-.002a4.562 4.562 0 0 0-.004-9.122M185.405 137.723c-.55 5.455-5.418 9.432-10.873 8.882-5.456-.55-9.432-5.418-8.882-10.873.55-5.455 5.418-9.432 10.873-8.882 5.455.55 9.432 5.418 8.882 10.873",fill:"#FFF"},null),l("path",{d:"M180.17 143.772l12.572 7.129M193.841 158.42L178.67 171.36",stroke:"#FFF","stroke-width":"2"},null),l("path",{d:"M185.55 171.926a6.798 6.798 0 1 1-13.528-1.363 6.798 6.798 0 0 1 13.527 1.363M204.12 155.285a6.848 6.848 0 1 1-13.627-1.375 6.848 6.848 0 0 1 13.626 1.375",fill:"#FFF"},null),l("path",{d:"M152.988 194.074a2.21 2.21 0 1 1-4.42 0 2.21 2.21 0 0 1 4.42 0zM225.931 118.217a2.21 2.21 0 1 1-4.421 0 2.21 2.21 0 0 1 4.421 0zM217.09 153.051a2.21 2.21 0 1 1-4.421 0 2.21 2.21 0 0 1 4.42 0zM177.84 109.842a2.21 2.21 0 1 1-4.422 0 2.21 2.21 0 0 1 4.421 0zM196.114 94.454a2.21 2.21 0 1 1-4.421 0 2.21 2.21 0 0 1 4.421 0zM202.844 182.523a2.21 2.21 0 1 1-4.42 0 2.21 2.21 0 0 1 4.42 0z",stroke:"#FFF","stroke-width":"2"},null),l("path",{stroke:"#FFF","stroke-width":"2",d:"M215.125 155.262l-1.902 20.075-10.87 5.958M174.601 176.636l-6.322 9.761H156.98l-4.484 6.449M175.874 127.28V111.56M221.51 119.404l-12.77 7.859-15.228-7.86V96.668"},null),l("path",{d:"M180.68 29.32C180.68 13.128 193.806 0 210 0c16.193 0 29.32 13.127 29.32 29.32 0 16.194-13.127 29.322-29.32 29.322-16.193 0-29.32-13.128-29.32-29.321",fill:"#A26EF4"},null),l("path",{d:"M221.45 41.706l-21.563-.125a1.744 1.744 0 0 1-1.734-1.754l.071-12.23a1.744 1.744 0 0 1 1.754-1.734l21.562.125c.964.006 1.74.791 1.735 1.755l-.071 12.229a1.744 1.744 0 0 1-1.754 1.734",fill:"#FFF"},null),l("path",{d:"M215.106 29.192c-.015 2.577-2.049 4.654-4.543 4.64-2.494-.014-4.504-2.115-4.489-4.693l.04-6.925c.016-2.577 2.05-4.654 4.543-4.64 2.494.015 4.504 2.116 4.49 4.693l-.04 6.925zm-4.53-14.074a6.877 6.877 0 0 0-6.916 6.837l-.043 7.368a6.877 6.877 0 0 0 13.754.08l.042-7.368a6.878 6.878 0 0 0-6.837-6.917zM167.566 68.367h-3.93a4.73 4.73 0 0 1-4.717-4.717 4.73 4.73 0 0 1 4.717-4.717h3.93a4.73 4.73 0 0 1 4.717 4.717 4.73 4.73 0 0 1-4.717 4.717",fill:"#FFF"},null),l("path",{d:"M168.214 248.838a6.611 6.611 0 0 1-6.61-6.611v-66.108a6.611 6.611 0 0 1 13.221 0v66.108a6.611 6.611 0 0 1-6.61 6.61",fill:"#5BA02E"},null),l("path",{d:"M176.147 248.176a6.611 6.611 0 0 1-6.61-6.61v-33.054a6.611 6.611 0 1 1 13.221 0v33.053a6.611 6.611 0 0 1-6.61 6.611",fill:"#92C110"},null),l("path",{d:"M185.994 293.89h-27.376a3.17 3.17 0 0 1-3.17-3.17v-45.887a3.17 3.17 0 0 1 3.17-3.17h27.376a3.17 3.17 0 0 1 3.17 3.17v45.886a3.17 3.17 0 0 1-3.17 3.17",fill:"#F2D7AD"},null),l("path",{d:"M81.972 147.673s6.377-.927 17.566-1.28c11.729-.371 17.57 1.086 17.57 1.086s3.697-3.855.968-8.424c1.278-12.077 5.982-32.827.335-48.273-1.116-1.339-3.743-1.512-7.536-.62-1.337.315-7.147-.149-7.983-.1l-15.311-.347s-3.487-.17-8.035-.508c-1.512-.113-4.227-1.683-5.458-.338-.406.443-2.425 5.669-1.97 16.077l8.635 35.642s-3.141 3.61 1.219 7.085",fill:"#FFF"},null),l("path",{d:"M75.768 73.325l-.9-6.397 11.982-6.52s7.302-.118 8.038 1.205c.737 1.324-5.616.993-5.616.993s-1.836 1.388-2.615 2.5c-1.654 2.363-.986 6.471-8.318 5.986-1.708.284-2.57 2.233-2.57 2.233",fill:"#FFC6A0"},null),l("path",{d:"M52.44 77.672s14.217 9.406 24.973 14.444c1.061.497-2.094 16.183-11.892 11.811-7.436-3.318-20.162-8.44-21.482-14.496-.71-3.258 2.543-7.643 8.401-11.76M141.862 80.113s-6.693 2.999-13.844 6.876c-3.894 2.11-10.137 4.704-12.33 7.988-6.224 9.314 3.536 11.22 12.947 7.503 6.71-2.651 28.999-12.127 13.227-22.367",fill:"#FFB594"},null),l("path",{d:"M76.166 66.36l3.06 3.881s-2.783 2.67-6.31 5.747c-7.103 6.195-12.803 14.296-15.995 16.44-3.966 2.662-9.754 3.314-12.177-.118-3.553-5.032.464-14.628 31.422-25.95",fill:"#FFC6A0"},null),l("path",{d:"M64.674 85.116s-2.34 8.413-8.912 14.447c.652.548 18.586 10.51 22.144 10.056 5.238-.669 6.417-18.968 1.145-20.531-.702-.208-5.901-1.286-8.853-2.167-.87-.26-1.611-1.71-3.545-.936l-1.98-.869zM128.362 85.826s5.318 1.956 7.325 13.734c-.546.274-17.55 12.35-21.829 7.805-6.534-6.94-.766-17.393 4.275-18.61 4.646-1.121 5.03-1.37 10.23-2.929",fill:"#FFF"},null),l("path",{d:"M78.18 94.656s.911 7.41-4.914 13.078",stroke:"#E4EBF7","stroke-width":"1.051","stroke-linecap":"round","stroke-linejoin":"round"},null),l("path",{d:"M87.397 94.68s3.124 2.572 10.263 2.572c7.14 0 9.074-3.437 9.074-3.437",stroke:"#E4EBF7","stroke-width":".932","stroke-linecap":"round","stroke-linejoin":"round"},null),l("path",{d:"M117.184 68.639l-6.781-6.177s-5.355-4.314-9.223-.893c-3.867 3.422 4.463 2.083 5.653 4.165 1.19 2.082.848 1.143-2.083.446-5.603-1.331-2.082.893 2.975 5.355 2.091 1.845 6.992.955 6.992.955l2.467-3.851z",fill:"#FFC6A0"},null),l("path",{d:"M105.282 91.315l-.297-10.937-15.918-.027-.53 10.45c-.026.403.17.788.515.999 2.049 1.251 9.387 5.093 15.799.424.287-.21.443-.554.431-.91",fill:"#FFB594"},null),l("path",{d:"M107.573 74.24c.817-1.147.982-9.118 1.015-11.928a1.046 1.046 0 0 0-.965-1.055l-4.62-.365c-7.71-1.044-17.071.624-18.253 6.346-5.482 5.813-.421 13.244-.421 13.244s1.963 3.566 4.305 6.791c.756 1.041.398-3.731 3.04-5.929 5.524-4.594 15.899-7.103 15.899-7.103",fill:"#5C2552"},null),l("path",{d:"M88.426 83.206s2.685 6.202 11.602 6.522c7.82.28 8.973-7.008 7.434-17.505l-.909-5.483c-6.118-2.897-15.478.54-15.478.54s-.576 2.044-.19 5.504c-2.276 2.066-1.824 5.618-1.824 5.618s-.905-1.922-1.98-2.321c-.86-.32-1.897.089-2.322 1.98-1.04 4.632 3.667 5.145 3.667 5.145",fill:"#FFC6A0"},null),l("path",{stroke:"#DB836E","stroke-width":"1.145","stroke-linecap":"round","stroke-linejoin":"round",d:"M100.843 77.099l1.701-.928-1.015-4.324.674-1.406"},null),l("path",{d:"M105.546 74.092c-.022.713-.452 1.279-.96 1.263-.51-.016-.904-.607-.882-1.32.021-.713.452-1.278.96-1.263.51.016.904.607.882 1.32M97.592 74.349c-.022.713-.452 1.278-.961 1.263-.509-.016-.904-.607-.882-1.32.022-.713.452-1.279.961-1.263.51.016.904.606.882 1.32",fill:"#552950"},null),l("path",{d:"M91.132 86.786s5.269 4.957 12.679 2.327",stroke:"#DB836E","stroke-width":"1.145","stroke-linecap":"round","stroke-linejoin":"round"},null),l("path",{d:"M99.776 81.903s-3.592.232-1.44-2.79c1.59-1.496 4.897-.46 4.897-.46s1.156 3.906-3.457 3.25",fill:"#DB836E"},null),l("path",{d:"M102.88 70.6s2.483.84 3.402.715M93.883 71.975s2.492-1.144 4.778-1.073",stroke:"#5C2552","stroke-width":"1.526","stroke-linecap":"round","stroke-linejoin":"round"},null),l("path",{d:"M86.32 77.374s.961.879 1.458 2.106c-.377.48-1.033 1.152-.236 1.809M99.337 83.719s1.911.151 2.509-.254",stroke:"#DB836E","stroke-width":"1.145","stroke-linecap":"round","stroke-linejoin":"round"},null),l("path",{d:"M87.782 115.821l15.73-3.012M100.165 115.821l10.04-2.008",stroke:"#E4EBF7","stroke-width":"1.051","stroke-linecap":"round","stroke-linejoin":"round"},null),l("path",{d:"M66.508 86.763s-1.598 8.83-6.697 14.078",stroke:"#E4EBF7","stroke-width":"1.114","stroke-linecap":"round","stroke-linejoin":"round"},null),l("path",{d:"M128.31 87.934s3.013 4.121 4.06 11.785",stroke:"#E4EBF7","stroke-width":"1.051","stroke-linecap":"round","stroke-linejoin":"round"},null),l("path",{d:"M64.09 84.816s-6.03 9.912-13.607 9.903",stroke:"#DB836E","stroke-width":".795","stroke-linecap":"round","stroke-linejoin":"round"},null),l("path",{d:"M112.366 65.909l-.142 5.32s5.993 4.472 11.945 9.202c4.482 3.562 8.888 7.455 10.985 8.662 4.804 2.766 8.9 3.355 11.076 1.808 4.071-2.894 4.373-9.878-8.136-15.263-4.271-1.838-16.144-6.36-25.728-9.73",fill:"#FFC6A0"},null),l("path",{d:"M130.532 85.488s4.588 5.757 11.619 6.214",stroke:"#DB836E","stroke-width":".75","stroke-linecap":"round","stroke-linejoin":"round"},null),l("path",{d:"M121.708 105.73s-.393 8.564-1.34 13.612",stroke:"#E4EBF7","stroke-width":"1.051","stroke-linecap":"round","stroke-linejoin":"round"},null),l("path",{d:"M115.784 161.512s-3.57-1.488-2.678-7.14",stroke:"#648BD8","stroke-width":"1.051","stroke-linecap":"round","stroke-linejoin":"round"},null),l("path",{d:"M101.52 290.246s4.326 2.057 7.408 1.03c2.842-.948 4.564.673 7.132 1.186 2.57.514 6.925 1.108 11.772-1.269-.104-5.551-6.939-4.01-12.048-6.763-2.582-1.39-3.812-4.757-3.625-8.863h-9.471s-1.402 10.596-1.169 14.68",fill:"#CBD1D1"},null),l("path",{d:"M101.496 290.073s2.447 1.281 6.809.658c3.081-.44 3.74.485 7.479 1.039 3.739.554 10.802-.07 11.91-.9.415 1.108-.347 2.077-.347 2.077s-1.523.608-4.847.831c-2.045.137-5.843.293-7.663-.507-1.8-1.385-5.286-1.917-5.77-.243-3.947.958-7.41-.288-7.41-.288l-.16-2.667z",fill:"#2B0849"},null),l("path",{d:"M108.824 276.19h3.116s-.103 6.751 4.57 8.62c-4.673.624-8.62-2.32-7.686-8.62",fill:"#A4AABA"},null),l("path",{d:"M57.65 272.52s-2.122 7.47-4.518 12.396c-1.811 3.724-4.255 7.548 5.505 7.548 6.698 0 9.02-.483 7.479-6.648-1.541-6.164.268-13.296.268-13.296H57.65z",fill:"#CBD1D1"},null),l("path",{d:"M51.54 290.04s2.111 1.178 6.682 1.178c6.128 0 8.31-1.662 8.31-1.662s.605 1.122-.624 2.18c-1 .862-3.624 1.603-7.444 1.559-4.177-.049-5.876-.57-6.786-1.177-.831-.554-.692-1.593-.138-2.078",fill:"#2B0849"},null),l("path",{d:"M58.533 274.438s.034 1.529-.315 2.95c-.352 1.431-1.087 3.127-1.139 4.17-.058 1.16 4.57 1.592 5.194.035.623-1.559 1.303-6.475 1.927-7.306.622-.831-4.94-2.135-5.667.15",fill:"#A4AABA"},null),l("path",{d:"M100.885 277.015l13.306.092s1.291-54.228 1.843-64.056c.552-9.828 3.756-43.13.997-62.788l-12.48-.64-22.725.776s-.433 3.944-1.19 9.921c-.062.493-.677.838-.744 1.358-.075.582.42 1.347.318 1.956-2.35 14.003-6.343 32.926-8.697 46.425-.116.663-1.227 1.004-1.45 2.677-.04.3.21 1.516.112 1.785-6.836 18.643-10.89 47.584-14.2 61.551l14.528-.014s2.185-8.524 4.008-16.878c2.796-12.817 22.987-84.553 22.987-84.553l3-.517 1.037 46.1s-.223 1.228.334 2.008c.558.782-.556 1.117-.39 2.233l.39 1.784s-.446 7.14-.892 11.826c-.446 4.685-.092 38.954-.092 38.954",fill:"#7BB2F9"},null),l("path",{d:"M77.438 220.434c1.146.094 4.016-2.008 6.916-4.91M107.55 223.931s2.758-1.103 6.069-3.862",stroke:"#648BD8","stroke-width":"1.051","stroke-linecap":"round","stroke-linejoin":"round"},null),l("path",{d:"M108.459 220.905s2.759-1.104 6.07-3.863",stroke:"#648BD8","stroke-linecap":"round","stroke-linejoin":"round"},null),l("path",{d:"M76.099 223.557s2.608-.587 6.47-3.346M87.33 150.82c-.27 3.088.297 8.478-4.315 9.073M104.829 149.075s.11 13.936-1.286 14.983c-2.207 1.655-2.975 1.934-2.975 1.934M101.014 149.63s.035 12.81-1.19 24.245M94.93 174.965s7.174-1.655 9.38-1.655M75.671 204.754c-.316 1.55-.64 3.067-.973 4.535 0 0-1.45 1.822-1.003 3.756.446 1.934-.943 2.034-4.96 15.273-1.686 5.559-4.464 18.49-6.313 27.447-.078.38-4.018 18.06-4.093 18.423M77.043 196.743a313.269 313.269 0 0 1-.877 4.729M83.908 151.414l-1.19 10.413s-1.091.148-.496 2.23c.111 1.34-2.66 15.692-5.153 30.267M57.58 272.94h13.238",stroke:"#648BD8","stroke-width":"1.051","stroke-linecap":"round","stroke-linejoin":"round"},null),l("path",{d:"M117.377 147.423s-16.955-3.087-35.7.199c.157 2.501-.002 4.128-.002 4.128s14.607-2.802 35.476-.31c.251-2.342.226-4.017.226-4.017",fill:"#192064"},null),l("path",{d:"M107.511 150.353l.004-4.885a.807.807 0 0 0-.774-.81c-2.428-.092-5.04-.108-7.795-.014a.814.814 0 0 0-.784.81l-.003 4.88c0 .456.371.82.827.808a140.76 140.76 0 0 1 7.688.017.81.81 0 0 0 .837-.806",fill:"#FFF"},null),l("path",{d:"M106.402 149.426l.002-3.06a.64.64 0 0 0-.616-.643 94.135 94.135 0 0 0-5.834-.009.647.647 0 0 0-.626.643l-.001 3.056c0 .36.291.648.651.64 1.78-.04 3.708-.041 5.762.012.36.009.662-.279.662-.64",fill:"#192064"},null),l("path",{d:"M101.485 273.933h12.272M102.652 269.075c.006 3.368.04 5.759.11 6.47M102.667 263.125c-.009 1.53-.015 2.98-.016 4.313M102.204 174.024l.893 44.402s.669 1.561-.224 2.677c-.892 1.116 2.455.67.893 2.231-1.562 1.562.893 1.116 0 3.347-.592 1.48-.988 20.987-1.09 34.956",stroke:"#648BD8","stroke-width":"1.051","stroke-linecap":"round","stroke-linejoin":"round"},null)])]),K=t=>{const{componentCls:n,lineHeightHeading3:s,iconCls:o,padding:e,paddingXL:r,paddingXS:i,paddingLG:a,marginXS:u,lineHeight:d}=t;return{[n]:{padding:`${a*2}px ${r}px`,"&-rtl":{direction:"rtl"}},[`${n} ${n}-image`]:{width:t.imageWidth,height:t.imageHeight,margin:"auto"},[`${n} ${n}-icon`]:{marginBottom:a,textAlign:"center",[`& > ${o}`]:{fontSize:t.resultIconFontSize}},[`${n} ${n}-title`]:{color:t.colorTextHeading,fontSize:t.resultTitleFontSize,lineHeight:s,marginBlock:u,textAlign:"center"},[`${n} ${n}-subtitle`]:{color:t.colorTextDescription,fontSize:t.resultSubtitleFontSize,lineHeight:d,textAlign:"center"},[`${n} ${n}-content`]:{marginTop:a,padding:`${a}px ${e*2.5}px`,backgroundColor:t.colorFillAlter},[`${n} ${n}-extra`]:{margin:t.resultExtraMargin,textAlign:"center","& > *":{marginInlineEnd:i,"&:last-child":{marginInlineEnd:0}}}}},l1=t=>{const{componentCls:n,iconCls:s}=t;return{[`${n}-success ${n}-icon > ${s}`]:{color:t.resultSuccessIconColor},[`${n}-error ${n}-icon > ${s}`]:{color:t.resultErrorIconColor},[`${n}-info ${n}-icon > ${s}`]:{color:t.resultInfoIconColor},[`${n}-warning ${n}-icon > ${s}`]:{color:t.resultWarningIconColor}}},t1=t=>[K(t),l1(t)],n1=t=>t1(t),s1=I("Result",t=>{const{paddingLG:n,fontSizeHeading3:s}=t,o=t.fontSize,e=`${n}px 0 0 0`,r=t.colorInfo,i=t.colorError,a=t.colorSuccess,u=t.colorWarning,d=H(t,{resultTitleFontSize:s,resultSubtitleFontSize:o,resultIconFontSize:s*3,resultExtraMargin:e,resultInfoIconColor:r,resultErrorIconColor:i,resultSuccessIconColor:a,resultWarningIconColor:u});return[n1(d)]},{imageWidth:250,imageHeight:295}),e1={success:N,error:O,info:V,warning:m},M={404:Q,500:Y,403:Z},o1=Object.keys(M),a1=()=>({prefixCls:String,icon:p.any,status:{type:[Number,String],default:"info"},title:p.any,subTitle:p.any,extra:p.any}),r1=(t,n)=>{let{status:s,icon:o}=n;if(o1.includes(`${s}`)){const i=M[s];return l("div",{class:`${t}-icon ${t}-image`},[l(i,null,null)])}const e=e1[s],r=o||l(e,null,null);return l("div",{class:`${t}-icon`},[r])},i1=(t,n)=>n&&l("div",{class:`${t}-extra`},[n]),c=z({compatConfig:{MODE:3},name:"AResult",inheritAttrs:!1,props:a1(),slots:Object,setup(t,n){let{slots:s,attrs:o}=n;const{prefixCls:e,direction:r}=y("result",t),[i,a]=s1(e),u=T(()=>P(e.value,a.value,`${e.value}-${t.status}`,{[`${e.value}-rtl`]:r.value==="rtl"}));return()=>{var d,k,F,f,v,B,E,C;const $=(d=t.title)!==null&&d!==void 0?d:(k=s.title)===null||k===void 0?void 0:k.call(s),w=(F=t.subTitle)!==null&&F!==void 0?F:(f=s.subTitle)===null||f===void 0?void 0:f.call(s),S=(v=t.icon)!==null&&v!==void 0?v:(B=s.icon)===null||B===void 0?void 0:B.call(s),_=(E=t.extra)!==null&&E!==void 0?E:(C=s.extra)===null||C===void 0?void 0:C.call(s),h=e.value;return i(l("div",D(D({},o),{},{class:[u.value,o.class]}),[r1(h,{status:t.status,icon:S}),l("div",{class:`${h}-title`},[$]),w&&l("div",{class:`${h}-subtitle`},[w]),i1(h,_),s.default&&l("div",{class:`${h}-content`},[s.default()])]))}}});c.PRESENTED_IMAGE_403=M[403];c.PRESENTED_IMAGE_404=M[404];c.PRESENTED_IMAGE_500=M[500];c.install=function(t){return t.component(c.name,c),t};const d1={class:"placeholder-view"},c1=z({__name:"ComputerUseView",setup(t){return(n,s)=>(G(),W("div",d1,[l(g(c),{icon:R(g(b)),title:"Computer Use","sub-title":"计算机视觉与操作,即将上线"},{extra:A(()=>[l(g(U),{type:"primary",disabled:""},{default:A(()=>[...s[0]||(s[0]=[L("即将推出",-1)])]),_:1})]),_:1},8,["icon"])]))}}),k1=X(c1,[["__scopeId","data-v-baa4efd2"]]);export{k1 as default}; diff --git a/src/agentkit/server/static/assets/ComputerUseView-DLnWxFj5.css b/src/agentkit/server/static/assets/ComputerUseView-DLnWxFj5.css new file mode 100644 index 0000000..65e3c7a --- /dev/null +++ b/src/agentkit/server/static/assets/ComputerUseView-DLnWxFj5.css @@ -0,0 +1 @@ +.placeholder-view[data-v-baa4efd2]{display:flex;align-items:center;justify-content:center;height:100%} diff --git a/src/agentkit/server/static/assets/DeleteOutlined-BPP2kbR8.js b/src/agentkit/server/static/assets/DeleteOutlined-BPP2kbR8.js new file mode 100644 index 0000000..5b37538 --- /dev/null +++ b/src/agentkit/server/static/assets/DeleteOutlined-BPP2kbR8.js @@ -0,0 +1,105 @@ +import{P as ye,a4 as Oe,aI as Ye,a8 as He,_ as g,aW as oa,p as nn,q as on,s as Rt,aX as Sn,d as be,z as St,c as m,E as Y,N as ie,g as w,aD as It,x as Je,G as oe,y as Qe,M as ct,B as ft,a9 as jn,ao as Zo,aP as Nt,aY as el,H as ze,r as $e,I as Ue,aZ as la,X as Hn,a_ as kt,a$ as aa,b0 as ra,b1 as Xt,aG as tl,a7 as Ie,az as lt,aM as We,aj as Fe,b2 as ia,aF as sa,A as _e,J as nl,b3 as Lt,b4 as ca,S as da,$ as ol,F as dt,Q as wt,b5 as ua,C as pt,b6 as fa,L as un,b7 as ro,aE as pa,m as va,v as ma,T as io,a0 as ha,b8 as ga,aL as ya,W as so,aT as ba,aU as Tt,aS as xa,aJ as Ca}from"./index-Ci55MVrK.js";import{i as Sa}from"./styleChecker-CUnokkun.js";import{e as Ve,u as ll,F as wa,o as $a}from"./FolderOpenOutlined-DV9WKc_3.js";import{i as Pa,c as Ut,b as Wn,d as gt,s as Oa,g as co,e as Ia,K as it}from"./zoom-C2fVs05p.js";import{s as Ka,d as Ea,e as ka,f as Ta,i as uo,E as Na,u as Da,h as Ra,r as _a,M as Gt,c as Ba,g as Aa}from"./index-B5q-1V92.js";import{w as yt,i as $t,d as Xe,c as al,e as za,f as Fa}from"./_plugin-vue_export-helper-CBXJ7-XR.js";import{b as Ma,r as La,c as ja,d as Ha,f as fo,R as rl,A as Wa}from"./base-B4siOKZE.js";import{B as il,i as Va,g as Xa,c as Ua,d as po,u as Ga,I as qa,S as Ya}from"./index-D6JhFblJ.js";import{b as Ja,i as vo,c as Qa,S as qt,s as sl,D as Za,L as er}from"./Dropdown-BUKifQVF.js";import{b as tr,B as Dt,u as bt}from"./index-Dr_Qcbdk.js";import{p as Vn}from"./pickAttrs-Crnv5AEc.js";import{S as nr}from"./index-yRXoO2C0.js";import{R as Yt,L as mo}from"./LeftOutlined-CXpCfAZF.js";import{o as _t}from"./FormItemContext-D_7H_KA_.js";import{C as Jt,g as or}from"./index-CKNOcsSD.js";import{R as cl}from"./index-DBR_iMr9.js";import{d as lr}from"./index-Cec7QIaL.js";function ar(e,t,n,o){const l=n-t;return e/=o/2,e<1?l/2*e*e*e+t:l/2*((e-=2)*e*e+2)+t}function wn(e){return e!=null&&e===e.window}function rr(e,t){var n,o;if(typeof window>"u")return 0;const l="scrollTop";let a=0;return wn(e)?a=e.scrollY:e instanceof Document?a=e.documentElement[l]:(e instanceof HTMLElement||e)&&(a=e[l]),e&&!wn(e)&&typeof a!="number"&&(a=(o=((n=e.ownerDocument)!==null&&n!==void 0?n:e).documentElement)===null||o===void 0?void 0:o[l]),a}function ir(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{getContainer:n=()=>window,callback:o,duration:l=450}=t,a=n(),r=rr(a),i=Date.now(),s=()=>{const d=Date.now()-i,u=ar(d>l?l:d,r,e,l);wn(a)?a.scrollTo(window.scrollX,u):a instanceof Document?a.documentElement.scrollTop=u:a.scrollTop=u,d({arrow:He([Boolean,Object]),trigger:{type:[Array,String]},menu:Ye(),overlay:ye.any,visible:Oe(),open:Oe(),disabled:Oe(),danger:Oe(),autofocus:Oe(),align:Ye(),getPopupContainer:Function,prefixCls:String,transitionName:String,placement:String,overlayClassName:String,overlayStyle:Ye(),forceRender:Oe(),mouseEnterDelay:Number,mouseLeaveDelay:Number,openClassName:String,minOverlayWidthMatchTrigger:Oe(),destroyPopupOnHide:Oe(),onVisibleChange:{type:Function},"onUpdate:visible":{type:Function},onOpenChange:{type:Function},"onUpdate:open":{type:Function}}),fn=tr(),cr=()=>g(g({},dl()),{type:fn.type,size:String,htmlType:fn.htmlType,href:String,disabled:Oe(),prefixCls:String,icon:ye.any,title:String,loading:fn.loading,onClick:oa()}),dr=e=>{const{componentCls:t,antCls:n,paddingXS:o,opacityLoading:l}=e;return{[`${t}-button`]:{whiteSpace:"nowrap",[`&${n}-btn-group > ${n}-btn`]:{[`&-loading, &-loading + ${n}-btn`]:{cursor:"default",pointerEvents:"none",opacity:l},[`&:last-child:not(:first-child):not(${n}-btn-icon-only)`]:{paddingInline:o}}}}},ur=e=>{const{componentCls:t,menuCls:n,colorError:o,colorTextLightSolid:l}=e,a=`${n}-item`;return{[`${t}, ${t}-menu-submenu`]:{[`${n} ${a}`]:{[`&${a}-danger:not(${a}-disabled)`]:{color:o,"&:hover":{color:l,backgroundColor:o}}}}}},fr=e=>{const{componentCls:t,menuCls:n,zIndexPopup:o,dropdownArrowDistance:l,dropdownArrowOffset:a,sizePopupArrow:r,antCls:i,iconCls:s,motionDurationMid:f,dropdownPaddingVertical:d,fontSize:u,dropdownEdgeChildPadding:y,colorTextDisabled:x,fontSizeIcon:b,controlPaddingHorizontal:v,colorBgElevated:c,boxShadowPopoverArrow:p}=e;return[{[t]:g(g({},Rt(e)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:o,display:"block","&::before":{position:"absolute",insetBlock:-l+r/2,zIndex:-9999,opacity:1e-4,content:'""'},[`${t}-wrap`]:{position:"relative",[`${i}-btn > ${s}-down`]:{fontSize:b},[`${s}-down::before`]:{transition:`transform ${f}`}},[`${t}-wrap-open`]:{[`${s}-down::before`]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},[` + &-show-arrow${t}-placement-topLeft, + &-show-arrow${t}-placement-top, + &-show-arrow${t}-placement-topRight + `]:{paddingBottom:l},[` + &-show-arrow${t}-placement-bottomLeft, + &-show-arrow${t}-placement-bottom, + &-show-arrow${t}-placement-bottomRight + `]:{paddingTop:l},[`${t}-arrow`]:g({position:"absolute",zIndex:1,display:"block"},La(r,e.borderRadiusXS,e.borderRadiusOuter,c,p)),[` + &-placement-top > ${t}-arrow, + &-placement-topLeft > ${t}-arrow, + &-placement-topRight > ${t}-arrow + `]:{bottom:l,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top > ${t}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},[`&-placement-topLeft > ${t}-arrow`]:{left:{_skip_check_:!0,value:a}},[`&-placement-topRight > ${t}-arrow`]:{right:{_skip_check_:!0,value:a}},[` + &-placement-bottom > ${t}-arrow, + &-placement-bottomLeft > ${t}-arrow, + &-placement-bottomRight > ${t}-arrow + `]:{top:l,transform:"translateY(-100%)"},[`&-placement-bottom > ${t}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateY(-100%) translateX(-50%)"},[`&-placement-bottomLeft > ${t}-arrow`]:{left:{_skip_check_:!0,value:a}},[`&-placement-bottomRight > ${t}-arrow`]:{right:{_skip_check_:!0,value:a}},[`&${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:Ta},[`&${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:ka},[`&${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:Ea},[`&${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:Ka}})},{[`${t} ${n}`]:{position:"relative",margin:0},[`${n}-submenu-popup`]:{position:"absolute",zIndex:o,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul,li":{listStyle:"none"},ul:{marginInline:"0.3em"}},[`${t}, ${t}-menu-submenu`]:{[n]:g(g({padding:y,listStyleType:"none",backgroundColor:c,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary},Sn(e)),{[`${n}-item-group-title`]:{padding:`${d}px ${v}px`,color:e.colorTextDescription,transition:`all ${f}`},[`${n}-item`]:{position:"relative",display:"flex",alignItems:"center",borderRadius:e.borderRadiusSM},[`${n}-item-icon`]:{minWidth:u,marginInlineEnd:e.marginXS,fontSize:e.fontSizeSM},[`${n}-title-content`]:{flex:"auto","> a":{color:"inherit",transition:`all ${f}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}}},[`${n}-item, ${n}-submenu-title`]:g(g({clear:"both",margin:0,padding:`${d}px ${v}px`,color:e.colorText,fontWeight:"normal",fontSize:u,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${f}`,"&:hover, &-active":{backgroundColor:e.controlItemBgHover}},Sn(e)),{"&-selected":{color:e.colorPrimary,backgroundColor:e.controlItemBgActive,"&:hover, &-active":{backgroundColor:e.controlItemBgActiveHover}},"&-disabled":{color:x,cursor:"not-allowed","&:hover":{color:x,backgroundColor:c,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${e.marginXXS}px 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.colorTextDescription,fontSize:b,fontStyle:"normal"}}}),[`${n}-item-group-list`]:{margin:`0 ${e.marginXS}px`,padding:0,listStyle:"none"},[`${n}-submenu-title`]:{paddingInlineEnd:v+e.fontSizeSM},[`${n}-submenu-vertical`]:{position:"relative"},[`${n}-submenu${n}-submenu-disabled ${t}-menu-submenu-title`]:{[`&, ${t}-menu-submenu-arrow-icon`]:{color:x,backgroundColor:c,cursor:"not-allowed"}},[`${n}-submenu-selected ${t}-menu-submenu-title`]:{color:e.colorPrimary}})}},[uo(e,"slide-up"),uo(e,"slide-down"),vo(e,"move-up"),vo(e,"move-down"),Pa(e,"zoom-big")]]},ul=nn("Dropdown",(e,t)=>{let{rootPrefixCls:n}=t;const{marginXXS:o,sizePopupArrow:l,controlHeight:a,fontSize:r,lineHeight:i,paddingXXS:s,componentCls:f,borderRadiusOuter:d,borderRadiusLG:u}=e,y=(a-r*i)/2,{dropdownArrowOffset:x}=Ma({sizePopupArrow:l,contentRadius:u,borderRadiusOuter:d}),b=on(e,{menuCls:`${f}-menu`,rootPrefixCls:n,dropdownArrowDistance:l/2+o,dropdownArrowOffset:x,dropdownPaddingVertical:y,dropdownEdgeChildPadding:s});return[fr(b),dr(b),ur(b)]},e=>({zIndexPopup:e.zIndexPopupBase+50}));var pr=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var l=0,o=Object.getOwnPropertySymbols(e);l{l("update:visible",y),l("visibleChange",y),l("update:open",y),l("openChange",y)},{prefixCls:r,direction:i,getPopupContainer:s}=St("dropdown",e),f=w(()=>`${r.value}-button`),[d,u]=ul(r);return()=>{var y,x;const b=g(g({},e),o),{type:v="default",disabled:c,danger:p,loading:$,htmlType:h,class:P="",overlay:E=(y=n.overlay)===null||y===void 0?void 0:y.call(n),trigger:B,align:I,open:A,visible:C,onVisibleChange:O,placement:D=i.value==="rtl"?"bottomLeft":"bottomRight",href:z,title:F,icon:Q=((x=n.icon)===null||x===void 0?void 0:x.call(n))||m(Na,null,null),mouseEnterDelay:le,mouseLeaveDelay:de,overlayClassName:me,overlayStyle:W,destroyPopupOnHide:J,onClick:L,"onUpdate:open":Z}=b,R=pr(b,["type","disabled","danger","loading","htmlType","class","overlay","trigger","align","open","visible","onVisibleChange","placement","href","title","icon","mouseEnterDelay","mouseLeaveDelay","overlayClassName","overlayStyle","destroyPopupOnHide","onClick","onUpdate:open"]),H={align:I,disabled:c,trigger:c?[]:B,placement:D,getPopupContainer:s==null?void 0:s.value,onOpenChange:a,mouseEnterDelay:le,mouseLeaveDelay:de,open:A??C,overlayClassName:me,overlayStyle:W,destroyPopupOnHide:J},M=m(Dt,{danger:p,type:v,disabled:c,loading:$,onClick:L,htmlType:h,href:z,title:F},{default:n.default}),U=m(Dt,{danger:p,type:v,icon:Q},null);return d(m(vr,Y(Y({},R),{},{class:ie(f.value,P,u.value)}),{default:()=>[n.leftButton?n.leftButton({button:M}):M,m(ut,H,{default:()=>[n.rightButton?n.rightButton({button:U}):U],overlay:()=>E})]}))}}}),ut=be({compatConfig:{MODE:3},name:"ADropdown",inheritAttrs:!1,props:$t(dl(),{mouseEnterDelay:.15,mouseLeaveDelay:.1,placement:"bottomLeft",trigger:"hover"}),slots:Object,setup(e,t){let{slots:n,attrs:o,emit:l}=t;const{prefixCls:a,rootPrefixCls:r,direction:i,getPopupContainer:s}=St("dropdown",e),[f,d]=ul(a),u=w(()=>{const{placement:c="",transitionName:p}=e;return p!==void 0?p:c.includes("top")?`${r.value}-slide-down`:`${r.value}-slide-up`});Da({prefixCls:w(()=>`${a.value}-menu`),expandIcon:w(()=>m("span",{class:`${a.value}-menu-submenu-arrow`},[m(Yt,{class:`${a.value}-menu-submenu-arrow-icon`},null)])),mode:w(()=>"vertical"),selectable:w(()=>!1),onClick:()=>{},validator:c=>{let{mode:p}=c}});const y=()=>{var c,p,$;const h=e.overlay||((c=n.overlay)===null||c===void 0?void 0:c.call(n)),P=Array.isArray(h)?h[0]:h;if(!P)return null;const E=P.props||{};Xe(!E.mode||E.mode==="vertical","Dropdown",`mode="${E.mode}" is not supported for Dropdown's Menu.`);const{selectable:B=!1,expandIcon:I=($=(p=P.children)===null||p===void 0?void 0:p.expandIcon)===null||$===void 0?void 0:$.call(p)}=E,A=typeof I<"u"&&It(I)?I:m("span",{class:`${a.value}-menu-submenu-arrow`},[m(Yt,{class:`${a.value}-menu-submenu-arrow-icon`},null)]);return It(P)?Ut(P,{mode:"vertical",selectable:B,expandIcon:()=>A}):P},x=w(()=>{const c=e.placement;if(!c)return i.value==="rtl"?"bottomRight":"bottomLeft";if(c.includes("Center")){const p=c.slice(0,c.indexOf("Center"));return Xe(!c.includes("Center"),"Dropdown",`You are using '${c}' placement in Dropdown, which is deprecated. Try to use '${p}' instead.`),p}return c}),b=w(()=>typeof e.visible=="boolean"?e.visible:e.open),v=c=>{l("update:visible",c),l("visibleChange",c),l("update:open",c),l("openChange",c)};return()=>{var c,p;const{arrow:$,trigger:h,disabled:P,overlayClassName:E}=e,B=(c=n.default)===null||c===void 0?void 0:c.call(n)[0],I=Ut(B,g({class:ie((p=B==null?void 0:B.props)===null||p===void 0?void 0:p.class,{[`${a.value}-rtl`]:i.value==="rtl"},`${a.value}-trigger`)},P?{disabled:P}:{})),A=ie(E,d.value,{[`${a.value}-rtl`]:i.value==="rtl"}),C=P?[]:h;let O;C&&C.includes("contextmenu")&&(O=!0);const D=ja({arrowPointAtCenter:typeof $=="object"&&$.pointAtCenter,autoAdjustOverflow:!0}),z=_t(g(g(g({},e),o),{visible:b.value,builtinPlacements:D,overlayClassName:A,arrow:!!$,alignPoint:O,prefixCls:a.value,getPopupContainer:s==null?void 0:s.value,transitionName:u.value,trigger:C,onVisibleChange:v,placement:x.value}),["overlay","onUpdate:visible"]);return f(m(Qa,z,{default:()=>[I],overlay:y}))}}});ut.Button=Qt;const fl=Symbol("TreeContextKey"),mr=be({compatConfig:{MODE:3},name:"TreeContext",props:{value:{type:Object}},setup(e,t){let{slots:n}=t;return Qe(fl,w(()=>e.value)),()=>{var o;return(o=n.default)===null||o===void 0?void 0:o.call(n)}}}),Xn=()=>Je(fl,w(()=>({}))),pl=Symbol("KeysStateKey"),hr=e=>{Qe(pl,e)},vl=()=>Je(pl,{expandedKeys:oe([]),selectedKeys:oe([]),loadedKeys:oe([]),loadingKeys:oe([]),checkedKeys:oe([]),halfCheckedKeys:oe([]),expandedKeysSet:w(()=>new Set),selectedKeysSet:w(()=>new Set),loadedKeysSet:w(()=>new Set),loadingKeysSet:w(()=>new Set),checkedKeysSet:w(()=>new Set),halfCheckedKeysSet:w(()=>new Set),flattenNodes:oe([])}),gr=e=>{let{prefixCls:t,level:n,isStart:o,isEnd:l}=e;const a=`${t}-indent-unit`,r=[];for(let i=0;i({prefixCls:String,focusable:{type:Boolean,default:void 0},activeKey:[Number,String],tabindex:Number,children:ye.any,treeData:{type:Array},fieldNames:{type:Object},showLine:{type:[Boolean,Object],default:void 0},showIcon:{type:Boolean,default:void 0},icon:ye.any,selectable:{type:Boolean,default:void 0},expandAction:[String,Boolean],disabled:{type:Boolean,default:void 0},multiple:{type:Boolean,default:void 0},checkable:{type:Boolean,default:void 0},checkStrictly:{type:Boolean,default:void 0},draggable:{type:[Function,Boolean]},defaultExpandParent:{type:Boolean,default:void 0},autoExpandParent:{type:Boolean,default:void 0},defaultExpandAll:{type:Boolean,default:void 0},defaultExpandedKeys:{type:Array},expandedKeys:{type:Array},defaultCheckedKeys:{type:Array},checkedKeys:{type:[Object,Array]},defaultSelectedKeys:{type:Array},selectedKeys:{type:Array},allowDrop:{type:Function},dropIndicatorRender:{type:Function},onFocus:{type:Function},onBlur:{type:Function},onKeydown:{type:Function},onContextmenu:{type:Function},onClick:{type:Function},onDblclick:{type:Function},onScroll:{type:Function},onExpand:{type:Function},onCheck:{type:Function},onSelect:{type:Function},onLoad:{type:Function},loadData:{type:Function},loadedKeys:{type:Array},onMouseenter:{type:Function},onMouseleave:{type:Function},onRightClick:{type:Function},onDragstart:{type:Function},onDragenter:{type:Function},onDragover:{type:Function},onDragleave:{type:Function},onDragend:{type:Function},onDrop:{type:Function},onActiveChange:{type:Function},filterTreeNode:{type:Function},motion:ye.any,switcherIcon:ye.any,height:Number,itemHeight:Number,virtual:{type:Boolean,default:void 0},direction:{type:String},rootClassName:String,rootStyle:Object});var br=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var l=0,o=Object.getOwnPropertySymbols(e);l"`v-slot:"+K+"` ")}instead`);const a=oe(!1),r=Xn(),{expandedKeysSet:i,selectedKeysSet:s,loadedKeysSet:f,loadingKeysSet:d,checkedKeysSet:u,halfCheckedKeysSet:y}=vl(),{dragOverNodeKey:x,dropPosition:b,keyEntities:v}=r.value,c=w(()=>jt(e.eventKey,{expandedKeysSet:i.value,selectedKeysSet:s.value,loadedKeysSet:f.value,loadingKeysSet:d.value,checkedKeysSet:u.value,halfCheckedKeysSet:y.value,dragOverNodeKey:x,dropPosition:b,keyEntities:v})),p=Ve(()=>c.value.expanded),$=Ve(()=>c.value.selected),h=Ve(()=>c.value.checked),P=Ve(()=>c.value.loaded),E=Ve(()=>c.value.loading),B=Ve(()=>c.value.halfChecked),I=Ve(()=>c.value.dragOver),A=Ve(()=>c.value.dragOverGapTop),C=Ve(()=>c.value.dragOverGapBottom),O=Ve(()=>c.value.pos),D=oe(),z=w(()=>{const{eventKey:K}=e,{keyEntities:S}=r.value,{children:k}=S[K]||{};return!!(k||[]).length}),F=w(()=>{const{isLeaf:K}=e,{loadData:S}=r.value,k=z.value;return K===!1?!1:K||!S&&!k||S&&P.value&&!k}),Q=w(()=>F.value?null:p.value?ho:go),le=w(()=>{const{disabled:K}=e,{disabled:S}=r.value;return!!(S||K)}),de=w(()=>{const{checkable:K}=e,{checkable:S}=r.value;return!S||K===!1?!1:S}),me=w(()=>{const{selectable:K}=e,{selectable:S}=r.value;return typeof K=="boolean"?K:S}),W=w(()=>{const{data:K,active:S,checkable:k,disableCheckbox:ee,disabled:fe,selectable:Ce}=e;return g(g({active:S,checkable:k,disableCheckbox:ee,disabled:fe,selectable:Ce},K),{dataRef:K,data:K,isLeaf:F.value,checked:h.value,expanded:p.value,loading:E.value,selected:$.value,halfChecked:B.value})}),J=Zo(),L=w(()=>{const{eventKey:K}=e,{keyEntities:S}=r.value,{parent:k}=S[K]||{};return g(g({},Ht(g({},e,c.value))),{parent:k})}),Z=ct({eventData:L,eventKey:w(()=>e.eventKey),selectHandle:D,pos:O,key:J.vnode.key});l(Z);const R=K=>{const{onNodeDoubleClick:S}=r.value;S(K,L.value)},H=K=>{if(le.value)return;const{onNodeSelect:S}=r.value;K.preventDefault(),S(K,L.value)},M=K=>{if(le.value)return;const{disableCheckbox:S}=e,{onNodeCheck:k}=r.value;if(!de.value||S)return;K.preventDefault();const ee=!h.value;k(K,L.value,ee)},U=K=>{const{onNodeClick:S}=r.value;S(K,L.value),me.value?H(K):M(K)},X=K=>{const{onNodeMouseEnter:S}=r.value;S(K,L.value)},Se=K=>{const{onNodeMouseLeave:S}=r.value;S(K,L.value)},se=K=>{const{onNodeContextMenu:S}=r.value;S(K,L.value)},Ee=K=>{const{onNodeDragStart:S}=r.value;K.stopPropagation(),a.value=!0,S(K,Z);try{K.dataTransfer.setData("text/plain","")}catch{}},ke=K=>{const{onNodeDragEnter:S}=r.value;K.preventDefault(),K.stopPropagation(),S(K,Z)},De=K=>{const{onNodeDragOver:S}=r.value;K.preventDefault(),K.stopPropagation(),S(K,Z)},Be=K=>{const{onNodeDragLeave:S}=r.value;K.stopPropagation(),S(K,Z)},je=K=>{const{onNodeDragEnd:S}=r.value;K.stopPropagation(),a.value=!1,S(K,Z)},Te=K=>{const{onNodeDrop:S}=r.value;K.preventDefault(),K.stopPropagation(),a.value=!1,S(K,Z)},Ne=K=>{const{onNodeExpand:S}=r.value;E.value||S(K,L.value)},V=()=>{const{data:K}=e,{draggable:S}=r.value;return!!(S&&(!S.nodeDraggable||S.nodeDraggable(K)))},ue=()=>{const{draggable:K,prefixCls:S}=r.value;return K&&(K!=null&&K.icon)?m("span",{class:`${S}-draggable-icon`},[K.icon]):null},q=()=>{var K,S,k;const{switcherIcon:ee=o.switcherIcon||((K=r.value.slots)===null||K===void 0?void 0:K[(k=(S=e.data)===null||S===void 0?void 0:S.slots)===null||k===void 0?void 0:k.switcherIcon])}=e,{switcherIcon:fe}=r.value,Ce=ee||fe;return typeof Ce=="function"?Ce(W.value):Ce},ae=()=>{const{loadData:K,onNodeLoad:S}=r.value;E.value||K&&p.value&&!F.value&&!z.value&&!P.value&&S(L.value)};ft(()=>{ae()}),jn(()=>{ae()});const ce=()=>{const{prefixCls:K}=r.value,S=q();if(F.value)return S!==!1?m("span",{class:ie(`${K}-switcher`,`${K}-switcher-noop`)},[S]):null;const k=ie(`${K}-switcher`,`${K}-switcher_${p.value?ho:go}`);return S!==!1?m("span",{onClick:Ne,class:k},[S]):null},Pe=()=>{var K,S;const{disableCheckbox:k}=e,{prefixCls:ee}=r.value,fe=le.value;return de.value?m("span",{class:ie(`${ee}-checkbox`,h.value&&`${ee}-checkbox-checked`,!h.value&&B.value&&`${ee}-checkbox-indeterminate`,(fe||k)&&`${ee}-checkbox-disabled`),onClick:M},[(S=(K=r.value).customCheckable)===null||S===void 0?void 0:S.call(K)]):null},re=()=>{const{prefixCls:K}=r.value;return m("span",{class:ie(`${K}-iconEle`,`${K}-icon__${Q.value||"docu"}`,E.value&&`${K}-icon_loading`)},null)},pe=()=>{const{disabled:K,eventKey:S}=e,{draggable:k,dropLevelOffset:ee,dropPosition:fe,prefixCls:Ce,indent:T,dropIndicatorRender:N,dragOverNodeKey:_,direction:j}=r.value;return!K&&k!==!1&&_===S?N({dropPosition:fe,dropLevelOffset:ee,indent:T,prefixCls:Ce,direction:j}):null},Ke=()=>{var K,S,k,ee,fe,Ce;const{icon:T=o.icon,data:N}=e,_=o.title||((K=r.value.slots)===null||K===void 0?void 0:K[(k=(S=e.data)===null||S===void 0?void 0:S.slots)===null||k===void 0?void 0:k.title])||((ee=r.value.slots)===null||ee===void 0?void 0:ee.title)||e.title,{prefixCls:j,showIcon:te,icon:ne,loadData:G}=r.value,he=le.value,we=`${j}-node-content-wrapper`;let ve;if(te){const Ae=T||((fe=r.value.slots)===null||fe===void 0?void 0:fe[(Ce=N==null?void 0:N.slots)===null||Ce===void 0?void 0:Ce.icon])||ne;ve=Ae?m("span",{class:ie(`${j}-iconEle`,`${j}-icon__customize`)},[typeof Ae=="function"?Ae(W.value):Ae]):re()}else G&&E.value&&(ve=re());let ge;typeof _=="function"?ge=_(W.value):ge=_,ge=ge===void 0?xr:ge;const xe=m("span",{class:`${j}-title`},[ge]);return m("span",{ref:D,title:typeof _=="string"?_:"",class:ie(`${we}`,`${we}-${Q.value||"normal"}`,!he&&($.value||a.value)&&`${j}-node-selected`),onMouseenter:X,onMouseleave:Se,onContextmenu:se,onClick:U,onDblclick:R},[ve,xe,pe()])};return()=>{const K=g(g({},e),n),{eventKey:S,isLeaf:k,isStart:ee,isEnd:fe,domRef:Ce,active:T,data:N,onMousemove:_,selectable:j}=K,te=br(K,["eventKey","isLeaf","isStart","isEnd","domRef","active","data","onMousemove","selectable"]),{prefixCls:ne,filterTreeNode:G,keyEntities:he,dropContainerKey:we,dropTargetKey:ve,draggingNodeKey:ge}=r.value,xe=le.value,Ae=Vn(te,{aria:!0,data:!0}),{level:Me}=he[S]||{},Le=fe[fe.length-1],Re=V(),Ge=!xe&&Re,at=ge===S,vt=j!==void 0?{"aria-selected":!!j}:void 0;return m("div",Y(Y({ref:Ce,class:ie(n.class,`${ne}-treenode`,{[`${ne}-treenode-disabled`]:xe,[`${ne}-treenode-switcher-${p.value?"open":"close"}`]:!k,[`${ne}-treenode-checkbox-checked`]:h.value,[`${ne}-treenode-checkbox-indeterminate`]:B.value,[`${ne}-treenode-selected`]:$.value,[`${ne}-treenode-loading`]:E.value,[`${ne}-treenode-active`]:T,[`${ne}-treenode-leaf-last`]:Le,[`${ne}-treenode-draggable`]:Ge,dragging:at,"drop-target":ve===S,"drop-container":we===S,"drag-over":!xe&&I.value,"drag-over-gap-top":!xe&&A.value,"drag-over-gap-bottom":!xe&&C.value,"filter-node":G&&G(L.value)}),style:n.style,draggable:Ge,"aria-grabbed":at,onDragstart:Ge?Ee:void 0,onDragenter:Re?ke:void 0,onDragover:Re?De:void 0,onDragleave:Re?Be:void 0,onDrop:Re?Te:void 0,onDragend:Re?je:void 0,onMousemove:_},vt),Ae),[m(gr,{prefixCls:ne,level:Me,isStart:ee,isEnd:fe},null),ue(),ce(),Pe(),Ke()])}}});function qe(e,t){if(!e)return[];const n=e.slice(),o=n.indexOf(t);return o>=0&&n.splice(o,1),n}function tt(e,t){const n=(e||[]).slice();return n.indexOf(t)===-1&&n.push(t),n}function Un(e){return e.split("-")}function gl(e,t){return`${e}-${t}`}function Cr(e){return e&&e.type&&e.type.isTreeNode}function Sr(e,t){const n=[],o=t[e];function l(){(arguments.length>0&&arguments[0]!==void 0?arguments[0]:[]).forEach(r=>{let{key:i,children:s}=r;n.push(i),l(s)})}return l(o.children),n}function wr(e){if(e.parent){const t=Un(e.pos);return Number(t[t.length-1])===e.parent.children.length-1}return!1}function $r(e){const t=Un(e.pos);return Number(t[t.length-1])===0}function yo(e,t,n,o,l,a,r,i,s,f){var d;const{clientX:u,clientY:y}=e,{top:x,height:b}=e.target.getBoundingClientRect(),c=((f==="rtl"?-1:1)*(((l==null?void 0:l.x)||0)-u)-12)/o;let p=i[n.eventKey];if(yF.key===p.key),D=O<=0?0:O-1,z=r[D].key;p=i[z]}const $=p.key,h=p,P=p.key;let E=0,B=0;if(!s.has($))for(let O=0;O-1.5?a({dragNode:I,dropNode:A,dropPosition:1})?E=1:C=!1:a({dragNode:I,dropNode:A,dropPosition:0})?E=0:a({dragNode:I,dropNode:A,dropPosition:1})?E=1:C=!1:a({dragNode:I,dropNode:A,dropPosition:1})?E=1:C=!1,{dropPosition:E,dropLevelOffset:B,dropTargetKey:p.key,dropTargetPos:p.pos,dragOverNodeKey:P,dropContainerKey:E===0?null:((d=p.parent)===null||d===void 0?void 0:d.key)||null,dropAllowed:C}}function bo(e,t){if(!e)return;const{multiple:n}=t;return n?e.slice():e.length?[e[0]]:e}function pn(e){if(!e)return null;let t;if(Array.isArray(e))t={checkedKeys:e,halfCheckedKeys:void 0};else if(typeof e=="object")t={checkedKeys:e.checked||void 0,halfCheckedKeys:e.halfChecked||void 0};else return null;return t}function Pn(e,t){const n=new Set;function o(l){if(n.has(l))return;const a=t[l];if(!a)return;n.add(l);const{parent:r,node:i}=a;i.disabled||r&&o(r.key)}return(e||[]).forEach(l=>{o(l)}),[...n]}var Pr=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var l=0,o=Object.getOwnPropertySymbols(e);l0&&arguments[0]!==void 0?arguments[0]:[];return Nt(n).map(l=>{var a,r,i,s;if(!Cr(l))return null;const f=l.children||{},d=l.key,u={};for(const[O,D]of Object.entries(l.props))u[el(O)]=D;const{isLeaf:y,checkable:x,selectable:b,disabled:v,disableCheckbox:c}=u,p={isLeaf:y||y===""||void 0,checkable:x||x===""||void 0,selectable:b||b===""||void 0,disabled:v||v===""||void 0,disableCheckbox:c||c===""||void 0},$=g(g({},u),p),{title:h=(a=f.title)===null||a===void 0?void 0:a.call(f,$),icon:P=(r=f.icon)===null||r===void 0?void 0:r.call(f,$),switcherIcon:E=(i=f.switcherIcon)===null||i===void 0?void 0:i.call(f,$)}=u,B=Pr(u,["title","icon","switcherIcon"]),I=(s=f.default)===null||s===void 0?void 0:s.call(f),A=g(g(g({},B),{title:h,icon:P,switcherIcon:E,key:d,isLeaf:y}),p),C=t(I);return C.length&&(A.children=C),A})}return t(e)}function Or(e,t,n){const{_title:o,key:l,children:a}=ln(n),r=new Set(t===!0?[]:t),i=[];function s(f){let d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return f.map((u,y)=>{const x=gl(d?d.pos:"0",y),b=Bt(u[l],x);let v;for(let p=0;py[a]:typeof a=="function"&&(d=y=>a(y)):d=(y,x)=>Bt(y[i],x);function u(y,x,b,v){const c=y?y[f]:e,p=y?gl(b.pos,x):"0",$=y?[...v,y]:[];if(y){const h=d(y,p),P={node:y,index:x,pos:p,key:h,parentPos:b.node?b.pos:null,level:b.level+1,nodes:$};t(P)}c&&c.forEach((h,P)=>{u(h,P,{node:y,pos:p,level:b?b.level+1:-1},$)})}u(null)}function Gn(e){let{initWrapper:t,processEntity:n,onProcessFinished:o,externalGetKey:l,childrenPropName:a,fieldNames:r}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=arguments.length>2?arguments[2]:void 0;const s=l||i,f={},d={};let u={posEntities:f,keyEntities:d};return t&&(u=t(u)||u),Ir(e,y=>{const{node:x,index:b,pos:v,key:c,parentPos:p,level:$,nodes:h}=y,P={node:x,nodes:h,index:b,key:c,pos:v,level:$},E=Bt(c,v);f[v]=P,d[E]=P,P.parent=f[p],P.parent&&(P.parent.children=P.parent.children||[],P.parent.children.push(P)),n&&n(P,u)},{externalGetKey:s,childrenPropName:a,fieldNames:r}),o&&o(u),u}function jt(e,t){let{expandedKeysSet:n,selectedKeysSet:o,loadedKeysSet:l,loadingKeysSet:a,checkedKeysSet:r,halfCheckedKeysSet:i,dragOverNodeKey:s,dropPosition:f,keyEntities:d}=t;const u=d[e];return{eventKey:e,expanded:n.has(e),selected:o.has(e),loaded:l.has(e),loading:a.has(e),checked:r.has(e),halfChecked:i.has(e),pos:String(u?u.pos:""),parent:u.parent,dragOver:s===e&&f===0,dragOverGapTop:s===e&&f===-1,dragOverGapBottom:s===e&&f===1}}function Ht(e){const{data:t,expanded:n,selected:o,checked:l,loaded:a,loading:r,halfChecked:i,dragOver:s,dragOverGapTop:f,dragOverGapBottom:d,pos:u,active:y,eventKey:x}=e,b=g(g({dataRef:t},t),{expanded:n,selected:o,checked:l,loaded:a,loading:r,halfChecked:i,dragOver:s,dragOverGapTop:f,dragOverGapBottom:d,pos:u,active:y,eventKey:x,key:x});return"props"in b||Object.defineProperty(b,"props",{get(){return e}}),b}function yl(e,t){const n=new Set;return e.forEach(o=>{t.has(o)||n.add(o)}),n}function Kr(e){const{disabled:t,disableCheckbox:n,checkable:o}=e||{};return!!(t||n)||o===!1}function Er(e,t,n,o){const l=new Set(e),a=new Set;for(let i=0;i<=n;i+=1)(t.get(i)||new Set).forEach(f=>{const{key:d,node:u,children:y=[]}=f;l.has(d)&&!o(u)&&y.filter(x=>!o(x.node)).forEach(x=>{l.add(x.key)})});const r=new Set;for(let i=n;i>=0;i-=1)(t.get(i)||new Set).forEach(f=>{const{parent:d,node:u}=f;if(o(u)||!f.parent||r.has(f.parent.key))return;if(o(f.parent.node)){r.add(d.key);return}let y=!0,x=!1;(d.children||[]).filter(b=>!o(b.node)).forEach(b=>{let{key:v}=b;const c=l.has(v);y&&!c&&(y=!1),!x&&(c||a.has(v))&&(x=!0)}),y&&l.add(d.key),x&&a.add(d.key),r.add(d.key)});return{checkedKeys:Array.from(l),halfCheckedKeys:Array.from(yl(a,l))}}function kr(e,t,n,o,l){const a=new Set(e);let r=new Set(t);for(let s=0;s<=o;s+=1)(n.get(s)||new Set).forEach(d=>{const{key:u,node:y,children:x=[]}=d;!a.has(u)&&!r.has(u)&&!l(y)&&x.filter(b=>!l(b.node)).forEach(b=>{a.delete(b.key)})});r=new Set;const i=new Set;for(let s=o;s>=0;s-=1)(n.get(s)||new Set).forEach(d=>{const{parent:u,node:y}=d;if(l(y)||!d.parent||i.has(d.parent.key))return;if(l(d.parent.node)){i.add(u.key);return}let x=!0,b=!1;(u.children||[]).filter(v=>!l(v.node)).forEach(v=>{let{key:c}=v;const p=a.has(c);x&&!p&&(x=!1),!b&&(p||r.has(c))&&(b=!0)}),x||a.delete(u.key),b&&r.add(u.key),i.add(u.key)});return{checkedKeys:Array.from(a),halfCheckedKeys:Array.from(yl(r,a))}}function Pt(e,t,n,o,l,a){let r;a?r=a:r=Kr;const i=new Set(e.filter(f=>!!n[f]));let s;return t===!0?s=Er(i,l,o,r):s=kr(i,t.halfCheckedKeys,l,o,r),s}function bl(e){const t=$e(0),n=oe();return ze(()=>{const o=new Map;let l=0;const a=e.value||{};for(const r in a)if(Object.prototype.hasOwnProperty.call(a,r)){const i=a[r],{level:s}=i;let f=o.get(s);f||(f=new Set,o.set(s,f)),f.add(i),l=Math.max(l,s)}t.value=l,n.value=o}),{maxLevel:t,levelEntities:n}}ut.Button=Qt;ut.install=function(e){return e.component(ut.name,ut),e.component(Qt.name,Qt),e};var Tr={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"};function xo(e){for(var t=1;t{const l=g(g(g({},e),{size:"small"}),n);return m(qt,l,o)}}}),Br=be({name:"MiddleSelect",inheritAttrs:!1,props:sl(),Option:qt.Option,setup(e,t){let{attrs:n,slots:o}=t;return()=>{const l=g(g(g({},e),{size:"middle"}),n);return m(qt,l,o)}}}),mt=be({compatConfig:{MODE:3},name:"Pager",inheritAttrs:!1,props:{rootPrefixCls:String,page:Number,active:{type:Boolean,default:void 0},last:{type:Boolean,default:void 0},locale:ye.object,showTitle:{type:Boolean,default:void 0},itemRender:{type:Function,default:()=>{}},onClick:{type:Function},onKeypress:{type:Function}},eimt:["click","keypress"],setup(e,t){let{emit:n,attrs:o}=t;const l=()=>{n("click",e.page)},a=r=>{n("keypress",r,l,e.page)};return()=>{const{showTitle:r,page:i,itemRender:s}=e,{class:f,style:d}=o,u=`${e.rootPrefixCls}-item`,y=ie(u,`${u}-${e.page}`,{[`${u}-active`]:e.active,[`${u}-disabled`]:!e.page},f);return m("li",{onClick:l,onKeypress:a,title:r?String(i):null,tabindex:"0",class:y,style:d},[s({page:i,type:"page",originalElement:m("a",{rel:"nofollow"},[i])})])}}}),ht={ENTER:13,ARROW_UP:38,ARROW_DOWN:40},Ar=be({compatConfig:{MODE:3},props:{disabled:{type:Boolean,default:void 0},changeSize:Function,quickGo:Function,selectComponentClass:ye.any,current:Number,pageSizeOptions:ye.array.def(["10","20","50","100"]),pageSize:Number,buildOptionText:Function,locale:ye.object,rootPrefixCls:String,selectPrefixCls:String,goButton:ye.any},setup(e){const t=$e(""),n=w(()=>!t.value||isNaN(t.value)?void 0:Number(t.value)),o=s=>`${s.value} ${e.locale.items_per_page}`,l=s=>{const{value:f}=s.target;t.value!==f&&(t.value=f)},a=s=>{const{goButton:f,quickGo:d,rootPrefixCls:u}=e;if(!(f||t.value===""))if(s.relatedTarget&&(s.relatedTarget.className.indexOf(`${u}-item-link`)>=0||s.relatedTarget.className.indexOf(`${u}-item`)>=0)){t.value="";return}else d(n.value),t.value=""},r=s=>{t.value!==""&&(s.keyCode===ht.ENTER||s.type==="click")&&(e.quickGo(n.value),t.value="")},i=w(()=>{const{pageSize:s,pageSizeOptions:f}=e;return f.some(d=>d.toString()===s.toString())?f:f.concat([s.toString()]).sort((d,u)=>{const y=isNaN(Number(d))?0:Number(d),x=isNaN(Number(u))?0:Number(u);return y-x})});return()=>{const{rootPrefixCls:s,locale:f,changeSize:d,quickGo:u,goButton:y,selectComponentClass:x,selectPrefixCls:b,pageSize:v,disabled:c}=e,p=`${s}-options`;let $=null,h=null,P=null;if(!d&&!u)return null;if(d&&x){const E=e.buildOptionText||o,B=i.value.map((I,A)=>m(x.Option,{key:A,value:I},{default:()=>[E({value:I})]}));$=m(x,{disabled:c,prefixCls:b,showSearch:!1,class:`${p}-size-changer`,optionLabelProp:"children",value:(v||i.value[0]).toString(),onChange:I=>d(Number(I)),getPopupContainer:I=>I.parentNode},{default:()=>[B]})}return u&&(y&&(P=typeof y=="boolean"?m("button",{type:"button",onClick:r,onKeyup:r,disabled:c,class:`${p}-quick-jumper-button`},[f.jump_to_confirm]):m("span",{onClick:r,onKeyup:r},[y])),h=m("div",{class:`${p}-quick-jumper`},[f.jump_to,m(il,{disabled:c,type:"text",value:t.value,onInput:l,onChange:l,onKeyup:r,onBlur:a},null),f.page,P])),m("li",{class:`${p}`},[$,h])}}});var zr=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var l=0,o=Object.getOwnPropertySymbols(e);l"u"?t.statePageSize:e;return Math.floor((n.total-1)/o)+1}const Lr=be({compatConfig:{MODE:3},name:"Pagination",mixins:[Ha],inheritAttrs:!1,props:{disabled:{type:Boolean,default:void 0},prefixCls:ye.string.def("rc-pagination"),selectPrefixCls:ye.string.def("rc-select"),current:Number,defaultCurrent:ye.number.def(1),total:ye.number.def(0),pageSize:Number,defaultPageSize:ye.number.def(10),hideOnSinglePage:{type:Boolean,default:!1},showSizeChanger:{type:Boolean,default:void 0},showLessItems:{type:Boolean,default:!1},selectComponentClass:ye.any,showPrevNextJumpers:{type:Boolean,default:!0},showQuickJumper:ye.oneOfType([ye.looseBool,ye.object]).def(!1),showTitle:{type:Boolean,default:!0},pageSizeOptions:ye.arrayOf(ye.oneOfType([ye.number,ye.string])),buildOptionText:Function,showTotal:Function,simple:{type:Boolean,default:void 0},locale:ye.object.def(ra),itemRender:ye.func.def(Mr),prevIcon:ye.any,nextIcon:ye.any,jumpPrevIcon:ye.any,jumpNextIcon:ye.any,totalBoundaryShowSizeChanger:ye.number.def(50)},data(){const e=this.$props;let t=fo([this.current,this.defaultCurrent]);const n=fo([this.pageSize,this.defaultPageSize]);return t=Math.min(t,et(n,void 0,e)),{stateCurrent:t,stateCurrentInputValue:t,statePageSize:n}},watch:{current(e){this.setState({stateCurrent:e,stateCurrentInputValue:e})},pageSize(e){const t={};let n=this.stateCurrent;const o=et(e,this.$data,this.$props);n=n>o?o:n,kt(this,"current")||(t.stateCurrent=n,t.stateCurrentInputValue=n),t.statePageSize=e,this.setState(t)},stateCurrent(e,t){this.$nextTick(()=>{if(this.$refs.paginationNode){const n=this.$refs.paginationNode.querySelector(`.${this.prefixCls}-item-${t}`);n&&document.activeElement===n&&n.blur()}})},total(){const e={},t=et(this.pageSize,this.$data,this.$props);if(kt(this,"current")){const n=Math.min(this.current,t);e.stateCurrent=n,e.stateCurrentInputValue=n}else{let n=this.stateCurrent;n===0&&t>0?n=1:n=Math.min(this.stateCurrent,t),e.stateCurrent=n}this.setState(e)}},methods:{getJumpPrevPage(){return Math.max(1,this.stateCurrent-(this.showLessItems?3:5))},getJumpNextPage(){return Math.min(et(void 0,this.$data,this.$props),this.stateCurrent+(this.showLessItems?3:5))},getItemIcon(e,t){const{prefixCls:n}=this.$props;return aa(this,e,this.$props)||m("button",{type:"button","aria-label":t,class:`${n}-item-link`},null)},getValidValue(e){const t=e.target.value,n=et(void 0,this.$data,this.$props),{stateCurrentInputValue:o}=this.$data;let l;return t===""?l=t:isNaN(Number(t))?l=o:t>=n?l=n:l=Number(t),l},isValid(e){return Fr(e)&&e!==this.stateCurrent},shouldDisplayQuickJumper(){const{showQuickJumper:e,pageSize:t,total:n}=this.$props;return n<=t?!1:e},handleKeyDown(e){(e.keyCode===ht.ARROW_UP||e.keyCode===ht.ARROW_DOWN)&&e.preventDefault()},handleKeyUp(e){const t=this.getValidValue(e),n=this.stateCurrentInputValue;t!==n&&this.setState({stateCurrentInputValue:t}),e.keyCode===ht.ENTER?this.handleChange(t):e.keyCode===ht.ARROW_UP?this.handleChange(t-1):e.keyCode===ht.ARROW_DOWN&&this.handleChange(t+1)},changePageSize(e){let t=this.stateCurrent;const n=t,o=et(e,this.$data,this.$props);t=t>o?o:t,o===0&&(t=this.stateCurrent),typeof e=="number"&&(kt(this,"pageSize")||this.setState({statePageSize:e}),kt(this,"current")||this.setState({stateCurrent:t,stateCurrentInputValue:t})),this.__emit("update:pageSize",e),t!==n&&this.__emit("update:current",t),this.__emit("showSizeChange",t,e),this.__emit("change",t,e)},handleChange(e){const{disabled:t}=this.$props;let n=e;if(this.isValid(n)&&!t){const o=et(void 0,this.$data,this.$props);return n>o?n=o:n<1&&(n=1),kt(this,"current")||this.setState({stateCurrent:n,stateCurrentInputValue:n}),this.__emit("update:current",n),this.__emit("change",n,this.statePageSize),n}return this.stateCurrent},prev(){this.hasPrev()&&this.handleChange(this.stateCurrent-1)},next(){this.hasNext()&&this.handleChange(this.stateCurrent+1)},jumpPrev(){this.handleChange(this.getJumpPrevPage())},jumpNext(){this.handleChange(this.getJumpNextPage())},hasPrev(){return this.stateCurrent>1},hasNext(){return this.stateCurrentn},runIfEnter(e,t){if(e.key==="Enter"||e.charCode===13){e.preventDefault();for(var n=arguments.length,o=new Array(n>2?n-2:0),l=2;l0?p-1:0,de=p+1=Q*2&&p!==3&&(I[0]=m(mt,{locale:l,rootPrefixCls:e,onClick:this.handleChange,onKeypress:this.runIfEnter,key:U,page:U,class:`${e}-item-after-jump-prev`,active:!1,showTitle:this.showTitle,itemRender:d},null),I.unshift(A)),B-p>=Q*2&&p!==B-2&&(I[I.length-1]=m(mt,{locale:l,rootPrefixCls:e,onClick:this.handleChange,onKeypress:this.runIfEnter,key:X,page:X,class:`${e}-item-before-jump-next`,active:!1,showTitle:this.showTitle,itemRender:d},null),I.push(C)),U!==1&&I.unshift(O),X!==B&&I.push(D)}let J=null;s&&(J=m("li",{class:`${e}-total-text`},[s(o,[o===0?0:(p-1)*$+1,p*$>o?o:p*$])]));const L=!me||!B,Z=!W||!B,R=this.buildOptionText||this.$slots.buildOptionText;return m("ul",Y(Y({unselectable:"on",ref:"paginationNode"},E),{},{class:ie({[`${e}`]:!0,[`${e}-disabled`]:t},P)}),[J,m("li",{title:i?l.prev_page:null,onClick:this.prev,tabindex:L?null:0,onKeypress:this.runIfEnterPrev,class:ie(`${e}-prev`,{[`${e}-disabled`]:L}),"aria-disabled":L},[this.renderPrev(le)]),I,m("li",{title:i?l.next_page:null,onClick:this.next,tabindex:Z?null:0,onKeypress:this.runIfEnterNext,class:ie(`${e}-next`,{[`${e}-disabled`]:Z}),"aria-disabled":Z},[this.renderNext(de)]),m(Ar,{disabled:t,locale:l,rootPrefixCls:e,selectComponentClass:b,selectPrefixCls:v,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:p,pageSize:$,pageSizeOptions:c,buildOptionText:R||null,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:F},null)])}}),jr=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}-mini`]:{[` + &:hover ${t}-item:not(${t}-item-active), + &:active ${t}-item:not(${t}-item-active), + &:hover ${t}-item-link, + &:active ${t}-item-link + `]:{backgroundColor:"transparent"}},[`${t}-item`]:{cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},a:{color:e.colorTextDisabled,backgroundColor:"transparent",border:"none",cursor:"not-allowed"},"&-active":{borderColor:e.colorBorder,backgroundColor:e.paginationItemDisabledBgActive,"&:hover, &:active":{backgroundColor:e.paginationItemDisabledBgActive},a:{color:e.paginationItemDisabledColorActive}}},[`${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}}},[`&${t}-simple`]:{[`${t}-prev, ${t}-next`]:{[`&${t}-disabled ${t}-item-link`]:{"&:hover, &:active":{backgroundColor:"transparent"}}}}}},Hr=e=>{const{componentCls:t}=e;return{[`&${t}-mini ${t}-total-text, &${t}-mini ${t}-simple-pager`]:{height:e.paginationItemSizeSM,lineHeight:`${e.paginationItemSizeSM}px`},[`&${t}-mini ${t}-item`]:{minWidth:e.paginationItemSizeSM,height:e.paginationItemSizeSM,margin:0,lineHeight:`${e.paginationItemSizeSM-2}px`},[`&${t}-mini ${t}-item:not(${t}-item-active)`]:{backgroundColor:"transparent",borderColor:"transparent","&:hover":{backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive}},[`&${t}-mini ${t}-prev, &${t}-mini ${t}-next`]:{minWidth:e.paginationItemSizeSM,height:e.paginationItemSizeSM,margin:0,lineHeight:`${e.paginationItemSizeSM}px`,[`&: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.paginationItemSizeSM,lineHeight:`${e.paginationItemSizeSM}px`}},[`&${t}-mini ${t}-jump-prev, &${t}-mini ${t}-jump-next`]:{height:e.paginationItemSizeSM,marginInlineEnd:0,lineHeight:`${e.paginationItemSizeSM}px`},[`&${t}-mini ${t}-options`]:{marginInlineStart:e.paginationMiniOptionsMarginInlineStart,"&-size-changer":{top:e.paginationMiniOptionsSizeChangerTop},"&-quick-jumper":{height:e.paginationItemSizeSM,lineHeight:`${e.paginationItemSizeSM}px`,input:g(g({},Ua(e)),{width:e.paginationMiniQuickJumperInputWidth,height:e.controlHeightSM})}}}},Wr=e=>{const{componentCls:t}=e;return{[` + &${t}-simple ${t}-prev, + &${t}-simple ${t}-next + `]:{height:e.paginationItemSizeSM,lineHeight:`${e.paginationItemSizeSM}px`,verticalAlign:"top",[`${t}-item-link`]:{height:e.paginationItemSizeSM,backgroundColor:"transparent",border:0,"&:hover":{backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive},"&::after":{height:e.paginationItemSizeSM,lineHeight:`${e.paginationItemSizeSM}px`}}},[`&${t}-simple ${t}-simple-pager`]:{display:"inline-block",height:e.paginationItemSizeSM,marginInlineEnd:e.marginXS,input:{boxSizing:"border-box",height:"100%",marginInlineEnd:e.marginXS,padding:`0 ${e.paginationItemPaddingInline}px`,textAlign:"center",backgroundColor:e.paginationItemInputBg,border:`${e.lineWidth}px ${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:`${e.inputOutlineOffset}px 0 ${e.controlOutlineWidth}px ${e.controlOutline}`},"&[disabled]":{color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,cursor:"not-allowed"}}}}},Vr=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,fontFamily:"Arial, Helvetica, sans-serif",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}},"&:focus-visible":g({[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0}},Xt(e))},[` + ${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.paginationItemSize,height:e.paginationItemSize,color:e.colorText,fontFamily:e.paginationFontFamily,lineHeight:`${e.paginationItemSize}px`,textAlign:"center",verticalAlign:"middle",listStyle:"none",borderRadius:e.borderRadius,cursor:"pointer",transition:`all ${e.motionDurationMid}`},[`${t}-prev, ${t}-next`]:{fontFamily:"Arial, Helvetica, sans-serif",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:`${e.lineWidth}px ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:"none",transition:`all ${e.motionDurationMid}`},[`&:focus-visible ${t}-item-link`]:g({},Xt(e)),[`&: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.-select":{display:"inline-block",width:"auto"},"&-quick-jumper":{display:"inline-block",height:e.controlHeight,marginInlineStart:e.marginXS,lineHeight:`${e.controlHeight}px`,verticalAlign:"top",input:g(g({},Xa(e)),{width:e.controlHeightLG*1.25,height:e.controlHeight,boxSizing:"border-box",margin:0,marginInlineStart:e.marginXS,marginInlineEnd:e.marginXS})}}}},Xr=e=>{const{componentCls:t}=e;return{[`${t}-item`]:g(g({display:"inline-block",minWidth:e.paginationItemSize,height:e.paginationItemSize,marginInlineEnd:e.marginXS,fontFamily:e.paginationFontFamily,lineHeight:`${e.paginationItemSize-2}px`,textAlign:"center",verticalAlign:"middle",listStyle:"none",backgroundColor:"transparent",border:`${e.lineWidth}px ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:0,cursor:"pointer",userSelect:"none",a:{display:"block",padding:`0 ${e.paginationItemPaddingInline}px`,color:e.colorText,transition:"none","&:hover":{textDecoration:"none"}},[`&:not(${t}-item-active)`]:{"&:hover":{transition:`all ${e.motionDurationMid}`,backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive}}},Sn(e)),{"&-active":{fontWeight:e.paginationFontWeightActive,backgroundColor:e.paginationItemBgActive,borderColor:e.colorPrimary,a:{color:e.colorPrimary},"&:hover":{borderColor:e.colorPrimaryHover},"&:hover a":{color:e.colorPrimaryHover}}})}},Ur=e=>{const{componentCls:t}=e;return{[t]:g(g(g(g(g(g(g(g({},Rt(e)),{"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.paginationItemSize,marginInlineEnd:e.marginXS,lineHeight:`${e.paginationItemSize-2}px`,verticalAlign:"middle"}}),Xr(e)),Vr(e)),Wr(e)),Hr(e)),jr(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"}}},Gr=e=>{const{componentCls:t}=e;return{[`${t}${t}-disabled`]:{"&, &: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.paginationItemDisabledBgActive}},[`${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}-prev, ${t}-next`]:{"&:hover button":{borderColor:e.colorPrimaryHover,backgroundColor:e.paginationItemBg},[`${t}-item-link`]:{backgroundColor:e.paginationItemLinkBg,borderColor:e.colorBorder},[`&:hover ${t}-item-link`]:{borderColor:e.colorPrimary,backgroundColor:e.paginationItemBg,color:e.colorPrimary},[`&${t}-disabled`]:{[`${t}-item-link`]:{borderColor:e.colorBorder,color:e.colorTextDisabled}}},[`${t}-item`]:{backgroundColor:e.paginationItemBg,border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,[`&:hover:not(${t}-item-active)`]:{borderColor:e.colorPrimary,backgroundColor:e.paginationItemBg,a:{color:e.colorPrimary}},"&-active":{borderColor:e.colorPrimary}}}}},qr=nn("Pagination",e=>{const t=on(e,{paginationItemSize:e.controlHeight,paginationFontFamily:e.fontFamily,paginationItemBg:e.colorBgContainer,paginationItemBgActive:e.colorBgContainer,paginationFontWeightActive:e.fontWeightStrong,paginationItemSizeSM:e.controlHeightSM,paginationItemInputBg:e.colorBgContainer,paginationMiniOptionsSizeChangerTop:0,paginationItemDisabledBgActive:e.controlItemBgActiveDisabled,paginationItemDisabledColorActive:e.colorTextDisabled,paginationItemLinkBg:e.colorBgContainer,inputOutlineOffset:"0 0",paginationMiniOptionsMarginInlineStart:e.marginXXS/2,paginationMiniQuickJumperInputWidth:e.controlHeightLG*1.1,paginationItemPaddingInline:e.marginXXS*1.5,paginationEllipsisLetterSpacing:e.marginXXS/2,paginationSlashMarginInlineStart:e.marginXXS,paginationSlashMarginInlineEnd:e.marginSM,paginationEllipsisTextIndent:"0.13em"},Va(e));return[Ur(t),e.wireframe&&Gr(t)]});var Yr=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var l=0,o=Object.getOwnPropertySymbols(e);l({total:Number,defaultCurrent:Number,disabled:Oe(),current:Number,defaultPageSize:Number,pageSize:Number,hideOnSinglePage:Oe(),showSizeChanger:Oe(),pageSizeOptions:We(),buildOptionText:Ie(),showQuickJumper:He([Boolean,Object]),showTotal:Ie(),size:lt(),simple:Oe(),locale:Object,prefixCls:String,selectPrefixCls:String,totalBoundaryShowSizeChanger:Number,selectComponentClass:String,itemRender:Ie(),role:String,responsive:Boolean,showLessItems:Oe(),onChange:Ie(),onShowSizeChange:Ie(),"onUpdate:current":Ie(),"onUpdate:pageSize":Ie()}),Qr=be({compatConfig:{MODE:3},name:"APagination",inheritAttrs:!1,props:Jr(),setup(e,t){let{slots:n,attrs:o}=t;const{prefixCls:l,configProvider:a,direction:r,size:i}=St("pagination",e),[s,f]=qr(l),d=w(()=>a.getPrefixCls("select",e.selectPrefixCls)),u=ll(),[y]=tl("Pagination",ia,Fe(e,"locale")),x=b=>{const v=m("span",{class:`${b}-item-ellipsis`},[Hn("•••")]),c=m("button",{class:`${b}-item-link`,type:"button",tabindex:-1},[r.value==="rtl"?m(Yt,null,null):m(mo,null,null)]),p=m("button",{class:`${b}-item-link`,type:"button",tabindex:-1},[r.value==="rtl"?m(mo,null,null):m(Yt,null,null)]),$=m("a",{rel:"nofollow",class:`${b}-item-link`},[m("div",{class:`${b}-item-container`},[r.value==="rtl"?m(en,{class:`${b}-item-link-icon`},null):m(Zt,{class:`${b}-item-link-icon`},null),v])]),h=m("a",{rel:"nofollow",class:`${b}-item-link`},[m("div",{class:`${b}-item-container`},[r.value==="rtl"?m(Zt,{class:`${b}-item-link-icon`},null):m(en,{class:`${b}-item-link-icon`},null),v])]);return{prevIcon:c,nextIcon:p,jumpPrevIcon:$,jumpNextIcon:h}};return()=>{var b;const{itemRender:v=n.itemRender,buildOptionText:c=n.buildOptionText,selectComponentClass:p,responsive:$}=e,h=Yr(e,["itemRender","buildOptionText","selectComponentClass","responsive"]),P=i.value==="small"||!!(!((b=u.value)===null||b===void 0)&&b.xs&&!i.value&&$),E=g(g(g(g(g({},h),x(l.value)),{prefixCls:l.value,selectPrefixCls:d.value,selectComponentClass:p||(P?_r:Br),locale:y.value,buildOptionText:c}),o),{class:ie({[`${l.value}-mini`]:P,[`${l.value}-rtl`]:r.value==="rtl"},o.class,f.value),itemRender:v});return s(m(Lr,E,null))}}}),Zr=sa(Qr),xl=Symbol("TableContextProps"),ei=e=>{Qe(xl,e)},Ze=()=>Je(xl,{}),ti="RC_TABLE_KEY";function Cl(e){return e==null?[]:Array.isArray(e)?e:[e]}function Sl(e,t){if(!t&&typeof t!="number")return e;const n=Cl(t);let o=e;for(let l=0;l{const{key:l,dataIndex:a}=o||{};let r=l||Cl(a).join("-")||ti;for(;n[r];)r=`${r}_next`;n[r]=!0,t.push(r)}),t}function ni(){const e={};function t(a,r){r&&Object.keys(r).forEach(i=>{const s=r[i];s&&typeof s=="object"?(a[i]=a[i]||{},t(a[i],s)):a[i]=s})}for(var n=arguments.length,o=new Array(n),l=0;l{t(e,a)}),e}function In(e){return e!=null}const wl=Symbol("SlotsContextProps"),oi=e=>{Qe(wl,e)},qn=()=>Je(wl,w(()=>({}))),$l=Symbol("ContextProps"),li=e=>{Qe($l,e)},ai=()=>Je($l,{onResizeColumn:()=>{}}),Ot="RC_TABLE_INTERNAL_COL_DEFINE",Pl=Symbol("HoverContextProps"),ri=e=>{Qe(Pl,e)},ii=()=>Je(Pl,{startRow:oe(-1),endRow:oe(-1),onHover(){}}),Kn=oe(!1),si=()=>{ft(()=>{Kn.value=Kn.value||Sa("position","sticky")})},ci=()=>Kn;var di=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var l=0,o=Object.getOwnPropertySymbols(e);l=n}function fi(e){return e&&typeof e=="object"&&!Array.isArray(e)&&!Lt(e)}const rn=be({name:"Cell",props:["prefixCls","record","index","renderIndex","dataIndex","customRender","component","colSpan","rowSpan","fixLeft","fixRight","firstFixLeft","lastFixLeft","firstFixRight","lastFixRight","appendNode","additionalProps","ellipsis","align","rowType","isSticky","column","cellType","transformCellText"],setup(e,t){let{slots:n}=t;const o=qn(),{onHover:l,startRow:a,endRow:r}=ii(),i=w(()=>{var v,c,p,$;return(p=(v=e.colSpan)!==null&&v!==void 0?v:(c=e.additionalProps)===null||c===void 0?void 0:c.colSpan)!==null&&p!==void 0?p:($=e.additionalProps)===null||$===void 0?void 0:$.colspan}),s=w(()=>{var v,c,p,$;return(p=(v=e.rowSpan)!==null&&v!==void 0?v:(c=e.additionalProps)===null||c===void 0?void 0:c.rowSpan)!==null&&p!==void 0?p:($=e.additionalProps)===null||$===void 0?void 0:$.rowspan}),f=Ve(()=>{const{index:v}=e;return ui(v,s.value||1,a.value,r.value)}),d=ci(),u=(v,c)=>{var p;const{record:$,index:h,additionalProps:P}=e;$&&l(h,h+c-1),(p=P==null?void 0:P.onMouseenter)===null||p===void 0||p.call(P,v)},y=v=>{var c;const{record:p,additionalProps:$}=e;p&&l(-1,-1),(c=$==null?void 0:$.onMouseleave)===null||c===void 0||c.call($,v)},x=v=>{const c=Nt(v)[0];return Lt(c)?c.type===ca?c.children:Array.isArray(c.children)?x(c.children):void 0:c},b=oe(null);return _e([f,()=>e.prefixCls,b],()=>{const v=da(b.value);v&&(f.value?Ra(v,`${e.prefixCls}-cell-row-hover`):_a(v,`${e.prefixCls}-cell-row-hover`))}),()=>{var v,c,p,$,h,P;const{prefixCls:E,record:B,index:I,renderIndex:A,dataIndex:C,customRender:O,component:D="td",fixLeft:z,fixRight:F,firstFixLeft:Q,lastFixLeft:le,firstFixRight:de,lastFixRight:me,appendNode:W=(v=n.appendNode)===null||v===void 0?void 0:v.call(n),additionalProps:J={},ellipsis:L,align:Z,rowType:R,isSticky:H,column:M={},cellType:U}=e,X=`${E}-cell`;let Se,se;const Ee=(c=n.default)===null||c===void 0?void 0:c.call(n);if(In(Ee)||U==="header")se=Ee;else{const K=Sl(B,C);if(se=K,O){const S=O({text:K,value:K,record:B,index:I,renderIndex:A,column:M.__originColumn__});fi(S)?(se=S.children,Se=S.props):se=S}if(!(Ot in M)&&U==="body"&&o.value.bodyCell&&!(!((p=M.slots)===null||p===void 0)&&p.customRender)){const S=Wn(o.value,"bodyCell",{text:K,value:K,record:B,index:I,column:M.__originColumn__},()=>{const k=se===void 0?K:se;return[typeof k=="object"&&It(k)||typeof k!="object"?k:null]});se=nl(S)}e.transformCellText&&(se=e.transformCellText({text:se,record:B,index:I,column:M.__originColumn__}))}typeof se=="object"&&!Array.isArray(se)&&!Lt(se)&&(se=null),L&&(le||de)&&(se=m("span",{class:`${X}-content`},[se])),Array.isArray(se)&&se.length===1&&(se=se[0]);const ke=Se||{},{colSpan:De,rowSpan:Be,style:je,class:Te}=ke,Ne=di(ke,["colSpan","rowSpan","style","class"]),V=($=De!==void 0?De:i.value)!==null&&$!==void 0?$:1,ue=(h=Be!==void 0?Be:s.value)!==null&&h!==void 0?h:1;if(V===0||ue===0)return null;const q={},ae=typeof z=="number"&&d.value,ce=typeof F=="number"&&d.value;ae&&(q.position="sticky",q.left=`${z}px`),ce&&(q.position="sticky",q.right=`${F}px`);const Pe={};Z&&(Pe.textAlign=Z);let re;const pe=L===!0?{showTitle:!0}:L;pe&&(pe.showTitle||R==="header")&&(typeof se=="string"||typeof se=="number"?re=se.toString():Lt(se)&&(re=x([se])));const Ke=g(g(g({title:re},Ne),J),{colSpan:V!==1?V:null,rowSpan:ue!==1?ue:null,class:ie(X,{[`${X}-fix-left`]:ae&&d.value,[`${X}-fix-left-first`]:Q&&d.value,[`${X}-fix-left-last`]:le&&d.value,[`${X}-fix-right`]:ce&&d.value,[`${X}-fix-right-first`]:de&&d.value,[`${X}-fix-right-last`]:me&&d.value,[`${X}-ellipsis`]:L,[`${X}-with-append`]:W,[`${X}-fix-sticky`]:(ae||ce)&&H&&d.value},J.class,Te),onMouseenter:K=>{u(K,ue)},onMouseleave:y,style:[J.style,Pe,q,je]});return m(D,Y(Y({},Ke),{},{ref:b}),{default:()=>[W,se,(P=n.dragHandle)===null||P===void 0?void 0:P.call(n)]})}}});function Yn(e,t,n,o,l){const a=n[e]||{},r=n[t]||{};let i,s;a.fixed==="left"?i=o.left[e]:r.fixed==="right"&&(s=o.right[t]);let f=!1,d=!1,u=!1,y=!1;const x=n[t+1],b=n[e-1];return l==="rtl"?i!==void 0?y=!(b&&b.fixed==="left"):s!==void 0&&(u=!(x&&x.fixed==="right")):i!==void 0?f=!(x&&x.fixed==="left"):s!==void 0&&(d=!(b&&b.fixed==="right")),{fixLeft:i,fixRight:s,lastFixLeft:f,firstFixRight:d,lastFixRight:u,firstFixLeft:y,isSticky:o.isSticky}}const So={mouse:{move:"mousemove",stop:"mouseup"},touch:{move:"touchmove",stop:"touchend"}},wo=50,pi=be({compatConfig:{MODE:3},name:"DragHandle",props:{prefixCls:String,width:{type:Number,required:!0},minWidth:{type:Number,default:wo},maxWidth:{type:Number,default:1/0},column:{type:Object,default:void 0}},setup(e){let t=0,n={remove:()=>{}},o={remove:()=>{}};const l=()=>{n.remove(),o.remove()};ol(()=>{l()}),ze(()=>{Xe(!isNaN(e.width),"Table","width must be a number when use resizable")});const{onResizeColumn:a}=ai(),r=w(()=>typeof e.minWidth=="number"&&!isNaN(e.minWidth)?e.minWidth:wo),i=w(()=>typeof e.maxWidth=="number"&&!isNaN(e.maxWidth)?e.maxWidth:1/0),s=Zo();let f=0;const d=oe(!1);let u;const y=h=>{let P=0;h.touches?h.touches.length?P=h.touches[0].pageX:P=h.changedTouches[0].pageX:P=h.pageX;const E=t-P;let B=Math.max(f-E,r.value);B=Math.min(B,i.value),yt.cancel(u),u=yt(()=>{a(B,e.column.__originColumn__)})},x=h=>{y(h)},b=h=>{d.value=!1,y(h),l()},v=(h,P)=>{d.value=!0,l(),f=s.vnode.el.parentNode.getBoundingClientRect().width,!(h instanceof MouseEvent&&h.which!==1)&&(h.stopPropagation&&h.stopPropagation(),t=h.touches?h.touches[0].pageX:h.pageX,n=gt(document.documentElement,P.move,x),o=gt(document.documentElement,P.stop,b))},c=h=>{h.stopPropagation(),h.preventDefault(),v(h,So.mouse)},p=h=>{h.stopPropagation(),h.preventDefault(),v(h,So.touch)},$=h=>{h.stopPropagation(),h.preventDefault()};return()=>{const{prefixCls:h}=e,P={[Oa?"onTouchstartPassive":"onTouchstart"]:E=>p(E)};return m("div",Y(Y({class:`${h}-resize-handle ${d.value?"dragging":""}`,onMousedown:c},P),{},{onClick:$}),[m("div",{class:`${h}-resize-handle-line`},null)])}}}),vi=be({name:"HeaderRow",props:["cells","stickyOffsets","flattenColumns","rowComponent","cellComponent","index","customHeaderRow"],setup(e){const t=Ze();return()=>{const{prefixCls:n,direction:o}=t,{cells:l,stickyOffsets:a,flattenColumns:r,rowComponent:i,cellComponent:s,customHeaderRow:f,index:d}=e;let u;f&&(u=f(l.map(x=>x.column),d));const y=an(l.map(x=>x.column));return m(i,u,{default:()=>[l.map((x,b)=>{const{column:v}=x,c=Yn(x.colStart,x.colEnd,r,a,o);let p;v&&v.customHeaderCell&&(p=x.column.customHeaderCell(v));const $=v;return m(rn,Y(Y(Y({},x),{},{cellType:"header",ellipsis:v.ellipsis,align:v.align,component:s,prefixCls:n,key:y[b]},c),{},{additionalProps:p,rowType:"header",column:v}),{default:()=>v.title,dragHandle:()=>$.resizable?m(pi,{prefixCls:n,width:$.width,minWidth:$.minWidth,maxWidth:$.maxWidth,column:$},null):null})})]})}}});function mi(e){const t=[];function n(l,a){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;t[r]=t[r]||[];let i=a;return l.filter(Boolean).map(f=>{const d={key:f.key,class:ie(f.className,f.class),column:f,colStart:i};let u=1;const y=f.children;return y&&y.length>0&&(u=n(y,i,r+1).reduce((x,b)=>x+b,0),d.hasSubColumns=!0),"colSpan"in f&&({colSpan:u}=f),"rowSpan"in f&&(d.rowSpan=f.rowSpan),d.colSpan=u,d.colEnd=d.colStart+u-1,t[r].push(d),i+=u,u})}n(e,0);const o=t.length;for(let l=0;l{!("rowSpan"in a)&&!a.hasSubColumns&&(a.rowSpan=o-l)});return t}const $o=be({name:"TableHeader",inheritAttrs:!1,props:["columns","flattenColumns","stickyOffsets","customHeaderRow"],setup(e){const t=Ze(),n=w(()=>mi(e.columns));return()=>{const{prefixCls:o,getComponent:l}=t,{stickyOffsets:a,flattenColumns:r,customHeaderRow:i}=e,s=l(["header","wrapper"],"thead"),f=l(["header","row"],"tr"),d=l(["header","cell"],"th");return m(s,{class:`${o}-thead`},{default:()=>[n.value.map((u,y)=>m(vi,{key:y,flattenColumns:r,cells:u,stickyOffsets:a,rowComponent:f,cellComponent:d,customHeaderRow:i,index:y},null))]})}}}),Ol=Symbol("ExpandedRowProps"),hi=e=>{Qe(Ol,e)},gi=()=>Je(Ol,{}),Il=be({name:"ExpandedRow",inheritAttrs:!1,props:["prefixCls","component","cellComponent","expanded","colSpan","isEmpty"],setup(e,t){let{slots:n,attrs:o}=t;const l=Ze(),a=gi(),{fixHeader:r,fixColumn:i,componentWidth:s,horizonScroll:f}=a;return()=>{const{prefixCls:d,component:u,cellComponent:y,expanded:x,colSpan:b,isEmpty:v}=e;return m(u,{class:o.class,style:{display:x?null:"none"}},{default:()=>[m(rn,{component:y,prefixCls:d,colSpan:b},{default:()=>{var c;let p=(c=n.default)===null||c===void 0?void 0:c.call(n);return(v?f.value:i.value)&&(p=m("div",{style:{width:`${s.value-(r.value?l.scrollbarSize:0)}px`,position:"sticky",left:0,overflow:"hidden"},class:`${d}-expanded-row-fixed`},[p])),p}})]})}}}),yi=be({name:"MeasureCell",props:["columnKey"],setup(e,t){let{emit:n}=t;const o=$e();return ft(()=>{o.value&&n("columnResize",e.columnKey,o.value.offsetWidth)}),()=>m(rl,{onResize:l=>{let{offsetWidth:a}=l;n("columnResize",e.columnKey,a)}},{default:()=>[m("td",{ref:o,style:{padding:0,border:0,height:0}},[m("div",{style:{height:0,overflow:"hidden"}},[Hn(" ")])])]})}}),Kl=Symbol("BodyContextProps"),bi=e=>{Qe(Kl,e)},El=()=>Je(Kl,{}),xi=be({name:"BodyRow",inheritAttrs:!1,props:["record","index","renderIndex","recordKey","expandedKeys","rowComponent","cellComponent","customRow","rowExpandable","indent","rowKey","getRowKey","childrenColumnName"],setup(e,t){let{attrs:n}=t;const o=Ze(),l=El(),a=oe(!1),r=w(()=>e.expandedKeys&&e.expandedKeys.has(e.recordKey));ze(()=>{r.value&&(a.value=!0)});const i=w(()=>l.expandableType==="row"&&(!e.rowExpandable||e.rowExpandable(e.record))),s=w(()=>l.expandableType==="nest"),f=w(()=>e.childrenColumnName&&e.record&&e.record[e.childrenColumnName]),d=w(()=>i.value||s.value),u=(c,p)=>{l.onTriggerExpand(c,p)},y=w(()=>{var c;return((c=e.customRow)===null||c===void 0?void 0:c.call(e,e.record,e.index))||{}}),x=function(c){var p,$;l.expandRowByClick&&d.value&&u(e.record,c);for(var h=arguments.length,P=new Array(h>1?h-1:0),E=1;E{const{record:c,index:p,indent:$}=e,{rowClassName:h}=l;return typeof h=="string"?h:typeof h=="function"?h(c,p,$):""}),v=w(()=>an(l.flattenColumns));return()=>{const{class:c,style:p}=n,{record:$,index:h,rowKey:P,indent:E=0,rowComponent:B,cellComponent:I}=e,{prefixCls:A,fixedInfoList:C,transformCellText:O}=o,{flattenColumns:D,expandedRowClassName:z,indentSize:F,expandIcon:Q,expandedRowRender:le,expandIconColumnIndex:de}=l,me=m(B,Y(Y({},y.value),{},{"data-row-key":P,class:ie(c,`${A}-row`,`${A}-row-level-${E}`,b.value,y.value.class),style:[p,y.value.style],onClick:x}),{default:()=>[D.map((J,L)=>{const{customRender:Z,dataIndex:R,className:H}=J,M=v[L],U=C[L];let X;J.customCell&&(X=J.customCell($,h,J));const Se=L===(de||0)&&s.value?m(dt,null,[m("span",{style:{paddingLeft:`${F*E}px`},class:`${A}-row-indent indent-level-${E}`},null),Q({prefixCls:A,expanded:r.value,expandable:f.value,record:$,onExpand:u})]):null;return m(rn,Y(Y({cellType:"body",class:H,ellipsis:J.ellipsis,align:J.align,component:I,prefixCls:A,key:M,record:$,index:h,renderIndex:e.renderIndex,dataIndex:R,customRender:Z},U),{},{additionalProps:X,column:J,transformCellText:O,appendNode:Se}),null)})]});let W;if(i.value&&(a.value||r.value)){const J=le({record:$,index:h,indent:E+1,expanded:r.value}),L=z&&z($,h,E);W=m(Il,{expanded:r.value,class:ie(`${A}-expanded-row`,`${A}-expanded-row-level-${E+1}`,L),prefixCls:A,component:B,cellComponent:I,colSpan:D.length,isEmpty:!1},{default:()=>[J]})}return m(dt,null,[me,W])}}});function kl(e,t,n,o,l,a){const r=[];r.push({record:e,indent:t,index:a});const i=l(e),s=o==null?void 0:o.has(i);if(e&&Array.isArray(e[n])&&s)for(let f=0;f{const a=t.value,r=n.value,i=e.value;if(r!=null&&r.size){const s=[];for(let f=0;f<(i==null?void 0:i.length);f+=1){const d=i[f];s.push(...kl(d,0,a,r,o.value,f))}return s}return i==null?void 0:i.map((s,f)=>({record:s,indent:0,index:f}))})}const Tl=Symbol("ResizeContextProps"),Si=e=>{Qe(Tl,e)},wi=()=>Je(Tl,{onColumnResize:()=>{}}),$i=be({name:"TableBody",props:["data","getRowKey","measureColumnWidth","expandedKeys","customRow","rowExpandable","childrenColumnName"],setup(e,t){let{slots:n}=t;const o=wi(),l=Ze(),a=El(),r=Ci(Fe(e,"data"),Fe(e,"childrenColumnName"),Fe(e,"expandedKeys"),Fe(e,"getRowKey")),i=oe(-1),s=oe(-1);let f;return ri({startRow:i,endRow:s,onHover:(d,u)=>{clearTimeout(f),f=setTimeout(()=>{i.value=d,s.value=u},100)}}),()=>{var d;const{data:u,getRowKey:y,measureColumnWidth:x,expandedKeys:b,customRow:v,rowExpandable:c,childrenColumnName:p}=e,{onColumnResize:$}=o,{prefixCls:h,getComponent:P}=l,{flattenColumns:E}=a,B=P(["body","wrapper"],"tbody"),I=P(["body","row"],"tr"),A=P(["body","cell"],"td");let C;u.length?C=r.value.map((D,z)=>{const{record:F,indent:Q,index:le}=D,de=y(F,z);return m(xi,{key:de,rowKey:de,record:F,recordKey:de,index:z,renderIndex:le,rowComponent:I,cellComponent:A,expandedKeys:b,customRow:v,getRowKey:y,rowExpandable:c,childrenColumnName:p,indent:Q},null)}):C=m(Il,{expanded:!0,class:`${h}-placeholder`,prefixCls:h,component:I,cellComponent:A,colSpan:E.length,isEmpty:!0},{default:()=>[(d=n.emptyNode)===null||d===void 0?void 0:d.call(n)]});const O=an(E);return m(B,{class:`${h}-tbody`},{default:()=>[x&&m("tr",{"aria-hidden":"true",class:`${h}-measure-row`,style:{height:0,fontSize:0}},[O.map(D=>m(yi,{key:D,columnKey:D,onColumnResize:$},null))]),C]})}}}),st={};var Pi=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var l=0,o=Object.getOwnPropertySymbols(e);l{const{fixed:o}=n,l=o===!0?"left":o,a=n.children;return a&&a.length>0?[...t,...En(a).map(r=>g({fixed:l},r))]:[...t,g(g({},n),{fixed:l})]},[])}function Oi(e){return e.map(t=>{const{fixed:n}=t,o=Pi(t,["fixed"]);let l=n;return n==="left"?l="right":n==="right"&&(l="left"),g({fixed:l},o)})}function Ii(e,t){let{prefixCls:n,columns:o,expandable:l,expandedKeys:a,getRowKey:r,onTriggerExpand:i,expandIcon:s,rowExpandable:f,expandIconColumnIndex:d,direction:u,expandRowByClick:y,expandColumnWidth:x,expandFixed:b}=e;const v=qn(),c=w(()=>{if(l.value){let h=o.value.slice();if(!h.includes(st)){const F=d.value||0;F>=0&&h.splice(F,0,st)}const P=h.indexOf(st);h=h.filter((F,Q)=>F!==st||Q===P);const E=o.value[P];let B;(b.value==="left"||b.value)&&!d.value?B="left":(b.value==="right"||b.value)&&d.value===o.value.length?B="right":B=E?E.fixed:null;const I=a.value,A=f.value,C=s.value,O=n.value,D=y.value,z={[Ot]:{class:`${n.value}-expand-icon-col`,columnType:"EXPAND_COLUMN"},title:Wn(v.value,"expandColumnTitle",{},()=>[""]),fixed:B,class:`${n.value}-row-expand-icon-cell`,width:x.value,customRender:F=>{let{record:Q,index:le}=F;const de=r.value(Q,le),me=I.has(de),W=A?A(Q):!0,J=C({prefixCls:O,expanded:me,expandable:W,record:Q,onExpand:i});return D?m("span",{onClick:L=>L.stopPropagation()},[J]):J}};return h.map(F=>F===st?z:F)}return o.value.filter(h=>h!==st)}),p=w(()=>{let h=c.value;return t.value&&(h=t.value(h)),h.length||(h=[{customRender:()=>null}]),h}),$=w(()=>u.value==="rtl"?Oi(En(p.value)):En(p.value));return[p,$]}function Nl(e){const t=oe(e);let n;const o=oe([]);function l(a){o.value.push(a),yt.cancel(n),n=yt(()=>{const r=o.value;o.value=[],r.forEach(i=>{t.value=i(t.value)})})}return wt(()=>{yt.cancel(n)}),[t,l]}function Ki(e){const t=$e(null),n=$e();function o(){clearTimeout(n.value)}function l(r){t.value=r,o(),n.value=setTimeout(()=>{t.value=null,n.value=void 0},100)}function a(){return t.value}return wt(()=>{o()}),[l,a]}function Ei(e,t,n){return w(()=>{const l=[],a=[];let r=0,i=0;const s=e.value,f=t.value,d=n.value;for(let u=0;u=0;i-=1){const s=t[i],f=n&&n[i],d=f&&f[Ot];if(s||d||r){const u=d||{},{columnType:y}=u,x=ki(u,["columnType"]);l.unshift(m("col",Y({key:i,style:{width:typeof s=="number"?`${s}px`:s}},x),null)),r=!0}}return m("colgroup",null,[l])}function kn(e,t){let{slots:n}=t;var o;return m("div",null,[(o=n.default)===null||o===void 0?void 0:o.call(n)])}kn.displayName="Panel";let Ti=0;const Ni=be({name:"TableSummary",props:["fixed"],setup(e,t){let{slots:n}=t;const o=Ze(),l=`table-summary-uni-key-${++Ti}`,a=w(()=>e.fixed===""||e.fixed);return ze(()=>{o.summaryCollect(l,a.value)}),wt(()=>{o.summaryCollect(l,!1)}),()=>{var r;return(r=n.default)===null||r===void 0?void 0:r.call(n)}}}),Di=be({compatConfig:{MODE:3},name:"ATableSummaryRow",setup(e,t){let{slots:n}=t;return()=>{var o;return m("tr",null,[(o=n.default)===null||o===void 0?void 0:o.call(n)])}}}),Rl=Symbol("SummaryContextProps"),Ri=e=>{Qe(Rl,e)},_i=()=>Je(Rl,{}),Bi=be({name:"ATableSummaryCell",props:["index","colSpan","rowSpan","align"],setup(e,t){let{attrs:n,slots:o}=t;const l=Ze(),a=_i();return()=>{const{index:r,colSpan:i=1,rowSpan:s,align:f}=e,{prefixCls:d,direction:u}=l,{scrollColumnIndex:y,stickyOffsets:x,flattenColumns:b}=a,c=r+i-1+1===y?i+1:i,p=Yn(r,r+c-1,b,x,u);return m(rn,Y({class:n.class,index:r,component:"td",prefixCls:d,record:null,dataIndex:null,align:f,colSpan:c,rowSpan:s,customRender:()=>{var $;return($=o.default)===null||$===void 0?void 0:$.call(o)}},p),null)}}}),Mt=be({name:"TableFooter",inheritAttrs:!1,props:["stickyOffsets","flattenColumns"],setup(e,t){let{slots:n}=t;const o=Ze();return Ri(ct({stickyOffsets:Fe(e,"stickyOffsets"),flattenColumns:Fe(e,"flattenColumns"),scrollColumnIndex:w(()=>{const l=e.flattenColumns.length-1,a=e.flattenColumns[l];return a!=null&&a.scrollbar?l:null})})),()=>{var l;const{prefixCls:a}=o;return m("tfoot",{class:`${a}-summary`},[(l=n.default)===null||l===void 0?void 0:l.call(n)])}}}),Ai=Ni;function zi(e){let{prefixCls:t,record:n,onExpand:o,expanded:l,expandable:a}=e;const r=`${t}-row-expand-icon`;if(!a)return m("span",{class:[r,`${t}-row-spaced`]},null);const i=s=>{o(n,s),s.stopPropagation()};return m("span",{class:{[r]:!0,[`${t}-row-expanded`]:l,[`${t}-row-collapsed`]:!l},onClick:i},null)}function Fi(e,t,n){const o=[];function l(a){(a||[]).forEach((r,i)=>{o.push(t(r,i)),l(r[n])})}return l(e),o}const Mi=be({name:"StickyScrollBar",inheritAttrs:!1,props:["offsetScroll","container","scrollBodyRef","scrollBodySizeInfo"],emits:["scroll"],setup(e,t){let{emit:n,expose:o}=t;const l=Ze(),a=oe(0),r=oe(0),i=oe(0);ze(()=>{a.value=e.scrollBodySizeInfo.scrollWidth||0,r.value=e.scrollBodySizeInfo.clientWidth||0,i.value=a.value&&r.value*(r.value/a.value)},{flush:"post"});const s=oe(),[f,d]=Nl({scrollLeft:0,isHiddenScrollBar:!0}),u=$e({delta:0,x:0}),y=oe(!1),x=()=>{y.value=!1},b=I=>{u.value={delta:I.pageX-f.value.scrollLeft,x:0},y.value=!0,I.preventDefault()},v=I=>{const{buttons:A}=I||(window==null?void 0:window.event);if(!y.value||A===0){y.value&&(y.value=!1);return}let C=u.value.x+I.pageX-u.value.x-u.value.delta;C<=0&&(C=0),C+i.value>=r.value&&(C=r.value-i.value),n("scroll",{scrollLeft:C/r.value*(a.value+2)}),u.value.x=I.pageX},c=()=>{if(!e.scrollBodyRef.value)return;const I=po(e.scrollBodyRef.value).top,A=I+e.scrollBodyRef.value.offsetHeight,C=e.container===window?document.documentElement.scrollTop+window.innerHeight:po(e.container).top+e.container.clientHeight;A-co()<=C||I>=C-e.offsetScroll?d(O=>g(g({},O),{isHiddenScrollBar:!0})):d(O=>g(g({},O),{isHiddenScrollBar:!1}))};o({setScrollLeft:I=>{d(A=>g(g({},A),{scrollLeft:I/a.value*r.value||0}))}});let $=null,h=null,P=null,E=null;ft(()=>{$=gt(document.body,"mouseup",x,!1),h=gt(document.body,"mousemove",v,!1),P=gt(window,"resize",c,!1)}),ua(()=>{pt(()=>{c()})}),ft(()=>{setTimeout(()=>{_e([i,y],()=>{c()},{immediate:!0,flush:"post"})})}),_e(()=>e.container,()=>{E==null||E.remove(),E=gt(e.container,"scroll",c,!1)},{immediate:!0,flush:"post"}),wt(()=>{$==null||$.remove(),h==null||h.remove(),E==null||E.remove(),P==null||P.remove()}),_e(()=>g({},f.value),(I,A)=>{I.isHiddenScrollBar!==(A==null?void 0:A.isHiddenScrollBar)&&!I.isHiddenScrollBar&&d(C=>{const O=e.scrollBodyRef.value;return O?g(g({},C),{scrollLeft:O.scrollLeft/O.scrollWidth*O.clientWidth}):C})},{immediate:!0});const B=co();return()=>{if(a.value<=r.value||!i.value||f.value.isHiddenScrollBar)return null;const{prefixCls:I}=l;return m("div",{style:{height:`${B}px`,width:`${r.value}px`,bottom:`${e.offsetScroll}px`},class:`${I}-sticky-scroll`},[m("div",{onMousedown:b,ref:s,class:ie(`${I}-sticky-scroll-bar`,{[`${I}-sticky-scroll-bar-active`]:y.value}),style:{width:`${i.value}px`,transform:`translate3d(${f.value.scrollLeft}px, 0, 0)`}},null)])}}}),Po=fa()?window:null;function Li(e,t){return w(()=>{const{offsetHeader:n=0,offsetSummary:o=0,offsetScroll:l=0,getContainer:a=()=>Po}=typeof e.value=="object"?e.value:{},r=a()||Po,i=!!e.value;return{isSticky:i,stickyClassName:i?`${t.value}-sticky-holder`:"",offsetHeader:n,offsetSummary:o,offsetScroll:l,container:r}})}function ji(e,t){return w(()=>{const n=[],o=e.value,l=t.value;for(let a=0;aa.isSticky&&!e.fixHeader?0:a.scrollbarSize),i=$e(),s=v=>{const{currentTarget:c,deltaX:p}=v;p&&(l("scroll",{currentTarget:c,scrollLeft:c.scrollLeft+p}),v.preventDefault())},f=$e();ft(()=>{pt(()=>{f.value=gt(i.value,"wheel",s)})}),wt(()=>{var v;(v=f.value)===null||v===void 0||v.remove()});const d=w(()=>e.flattenColumns.every(v=>v.width&&v.width!==0&&v.width!=="0px")),u=$e([]),y=$e([]);ze(()=>{const v=e.flattenColumns[e.flattenColumns.length-1],c={fixed:v?v.fixed:null,scrollbar:!0,customHeaderCell:()=>({class:`${a.prefixCls}-cell-scrollbar`})};u.value=r.value?[...e.columns,c]:e.columns,y.value=r.value?[...e.flattenColumns,c]:e.flattenColumns});const x=w(()=>{const{stickyOffsets:v,direction:c}=e,{right:p,left:$}=v;return g(g({},v),{left:c==="rtl"?[...$.map(h=>h+r.value),0]:$,right:c==="rtl"?p:[...p.map(h=>h+r.value),0],isSticky:a.isSticky})}),b=ji(Fe(e,"colWidths"),Fe(e,"columCount"));return()=>{var v;const{noData:c,columCount:p,stickyTopOffset:$,stickyBottomOffset:h,stickyClassName:P,maxContentScroll:E}=e,{isSticky:B}=a;return m("div",{style:g({overflow:"hidden"},B?{top:`${$}px`,bottom:`${h}px`}:{}),ref:i,class:ie(n.class,{[P]:!!P})},[m("table",{style:{tableLayout:"fixed",visibility:c||b.value?null:"hidden"}},[(!c||!E||d.value)&&m(Dl,{colWidths:b.value?[...b.value,r.value]:[],columCount:p+1,columns:y.value},null),(v=o.default)===null||v===void 0?void 0:v.call(o,g(g({},e),{stickyOffsets:x.value,columns:u.value,flattenColumns:y.value}))])])}}});function Io(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o[l,Fe(e,l)])))}const Hi=[],Wi={},Tn="rc-table-internal-hook",Vi=be({name:"VcTable",inheritAttrs:!1,props:["prefixCls","data","columns","rowKey","tableLayout","scroll","rowClassName","title","footer","id","showHeader","components","customRow","customHeaderRow","direction","expandFixed","expandColumnWidth","expandedRowKeys","defaultExpandedRowKeys","expandedRowRender","expandRowByClick","expandIcon","onExpand","onExpandedRowsChange","onUpdate:expandedRowKeys","defaultExpandAllRows","indentSize","expandIconColumnIndex","expandedRowClassName","childrenColumnName","rowExpandable","sticky","transformColumns","internalHooks","internalRefs","canExpandable","onUpdateInternalRefs","transformCellText"],emits:["expand","expandedRowsChange","updateInternalRefs","update:expandedRowKeys"],setup(e,t){let{attrs:n,slots:o,emit:l}=t;const a=w(()=>e.data||Hi),r=w(()=>!!a.value.length),i=w(()=>ni(e.components,{})),s=(S,k)=>Sl(i.value,S)||k,f=w(()=>{const S=e.rowKey;return typeof S=="function"?S:k=>k&&k[S]}),d=w(()=>e.expandIcon||zi),u=w(()=>e.childrenColumnName||"children"),y=w(()=>e.expandedRowRender?"row":e.canExpandable||a.value.some(S=>S&&typeof S=="object"&&S[u.value])?"nest":!1),x=oe([]);ze(()=>{e.defaultExpandedRowKeys&&(x.value=e.defaultExpandedRowKeys),e.defaultExpandAllRows&&(x.value=Fi(a.value,f.value,u.value))})();const v=w(()=>new Set(e.expandedRowKeys||x.value||[])),c=S=>{const k=f.value(S,a.value.indexOf(S));let ee;const fe=v.value.has(k);fe?(v.value.delete(k),ee=[...v.value]):ee=[...v.value,k],x.value=ee,l("expand",!fe,S),l("update:expandedRowKeys",ee),l("expandedRowsChange",ee)},p=$e(0),[$,h]=Ii(g(g({},un(e)),{expandable:w(()=>!!e.expandedRowRender),expandedKeys:v,getRowKey:f,onTriggerExpand:c,expandIcon:d}),w(()=>e.internalHooks===Tn?e.transformColumns:null)),P=w(()=>({columns:$.value,flattenColumns:h.value})),E=$e(),B=$e(),I=$e(),A=$e({scrollWidth:0,clientWidth:0}),C=$e(),[O,D]=bt(!1),[z,F]=bt(!1),[Q,le]=Nl(new Map),de=w(()=>an(h.value)),me=w(()=>de.value.map(S=>Q.value.get(S))),W=w(()=>h.value.length),J=Ei(me,W,Fe(e,"direction")),L=w(()=>e.scroll&&In(e.scroll.y)),Z=w(()=>e.scroll&&In(e.scroll.x)||!!e.expandFixed),R=w(()=>Z.value&&h.value.some(S=>{let{fixed:k}=S;return k})),H=$e(),M=Li(Fe(e,"sticky"),Fe(e,"prefixCls")),U=ct({}),X=w(()=>{const S=Object.values(U)[0];return(L.value||M.value.isSticky)&&S}),Se=(S,k)=>{k?U[S]=k:delete U[S]},se=$e({}),Ee=$e({}),ke=$e({});ze(()=>{L.value&&(Ee.value={overflowY:"scroll",maxHeight:ro(e.scroll.y)}),Z.value&&(se.value={overflowX:"auto"},L.value||(Ee.value={overflowY:"hidden"}),ke.value={width:e.scroll.x===!0?"auto":ro(e.scroll.x),minWidth:"100%"})});const De=(S,k)=>{za(E.value)&&le(ee=>{if(ee.get(S)!==k){const fe=new Map(ee);return fe.set(S,k),fe}return ee})},[Be,je]=Ki();function Te(S,k){if(!k)return;if(typeof k=="function"){k(S);return}const ee=k.$el||k;ee.scrollLeft!==S&&(ee.scrollLeft=S)}const Ne=S=>{let{currentTarget:k,scrollLeft:ee}=S;var fe;const Ce=e.direction==="rtl",T=typeof ee=="number"?ee:k.scrollLeft,N=k||Wi;if((!je()||je()===N)&&(Be(N),Te(T,B.value),Te(T,I.value),Te(T,C.value),Te(T,(fe=H.value)===null||fe===void 0?void 0:fe.setScrollLeft)),k){const{scrollWidth:_,clientWidth:j}=k;Ce?(D(-T<_-j),F(-T>0)):(D(T>0),F(T<_-j))}},V=()=>{Z.value&&I.value?Ne({currentTarget:I.value}):(D(!1),F(!1))};let ue;const q=S=>{S!==p.value&&(V(),p.value=E.value?E.value.offsetWidth:S)},ae=S=>{let{width:k}=S;if(clearTimeout(ue),p.value===0){q(k);return}ue=setTimeout(()=>{q(k)},100)};_e([Z,()=>e.data,()=>e.columns],()=>{Z.value&&V()},{flush:"post"});const[ce,Pe]=bt(0);si(),ft(()=>{pt(()=>{var S,k;V(),Pe(Ia(I.value).width),A.value={scrollWidth:((S=I.value)===null||S===void 0?void 0:S.scrollWidth)||0,clientWidth:((k=I.value)===null||k===void 0?void 0:k.clientWidth)||0}})}),jn(()=>{pt(()=>{var S,k;const ee=((S=I.value)===null||S===void 0?void 0:S.scrollWidth)||0,fe=((k=I.value)===null||k===void 0?void 0:k.clientWidth)||0;(A.value.scrollWidth!==ee||A.value.clientWidth!==fe)&&(A.value={scrollWidth:ee,clientWidth:fe})})}),ze(()=>{e.internalHooks===Tn&&e.internalRefs&&e.onUpdateInternalRefs({body:I.value?I.value.$el||I.value:null})},{flush:"post"});const re=w(()=>e.tableLayout?e.tableLayout:R.value?e.scroll.x==="max-content"?"auto":"fixed":L.value||M.value.isSticky||h.value.some(S=>{let{ellipsis:k}=S;return k})?"fixed":"auto"),pe=()=>{var S;return r.value?null:((S=o.emptyText)===null||S===void 0?void 0:S.call(o))||"No Data"};ei(ct(g(g({},un(Io(e,"prefixCls","direction","transformCellText"))),{getComponent:s,scrollbarSize:ce,fixedInfoList:w(()=>h.value.map((S,k)=>Yn(k,k,h.value,J.value,e.direction))),isSticky:w(()=>M.value.isSticky),summaryCollect:Se}))),bi(ct(g(g({},un(Io(e,"rowClassName","expandedRowClassName","expandRowByClick","expandedRowRender","expandIconColumnIndex","indentSize"))),{columns:$,flattenColumns:h,tableLayout:re,expandIcon:d,expandableType:y,onTriggerExpand:c}))),Si({onColumnResize:De}),hi({componentWidth:p,fixHeader:L,fixColumn:R,horizonScroll:Z});const Ke=()=>m($i,{data:a.value,measureColumnWidth:L.value||Z.value||M.value.isSticky,expandedKeys:v.value,rowExpandable:e.rowExpandable,getRowKey:f.value,customRow:e.customRow,childrenColumnName:u.value},{emptyNode:pe}),K=()=>m(Dl,{colWidths:h.value.map(S=>{let{width:k}=S;return k}),columns:h.value},null);return()=>{var S;const{prefixCls:k,scroll:ee,tableLayout:fe,direction:Ce,title:T=o.title,footer:N=o.footer,id:_,showHeader:j,customHeaderRow:te}=e,{isSticky:ne,offsetHeader:G,offsetSummary:he,offsetScroll:we,stickyClassName:ve,container:ge}=M.value,xe=s(["table"],"table"),Ae=s(["body"]),Me=(S=o.summary)===null||S===void 0?void 0:S.call(o,{pageData:a.value});let Le=()=>null;const Re={colWidths:me.value,columCount:h.value.length,stickyOffsets:J.value,customHeaderRow:te,fixHeader:L.value,scroll:ee};if(L.value||ne){let vt=()=>null;typeof Ae=="function"?(vt=()=>Ae(a.value,{scrollbarSize:ce.value,ref:I,onScroll:Ne}),Re.colWidths=h.value.map((rt,dn)=>{let{width:Ft}=rt;const Kt=dn===$.value.length-1?Ft-ce.value:Ft;return typeof Kt=="number"&&!Number.isNaN(Kt)?Kt:0})):vt=()=>m("div",{style:g(g({},se.value),Ee.value),onScroll:Ne,ref:I,class:ie(`${k}-body`)},[m(xe,{style:g(g({},ke.value),{tableLayout:re.value})},{default:()=>[K(),Ke(),!X.value&&Me&&m(Mt,{stickyOffsets:J.value,flattenColumns:h.value},{default:()=>[Me]})]})]);const zt=g(g(g({noData:!a.value.length,maxContentScroll:Z.value&&ee.x==="max-content"},Re),P.value),{direction:Ce,stickyClassName:ve,onScroll:Ne});Le=()=>m(dt,null,[j!==!1&&m(Oo,Y(Y({},zt),{},{stickyTopOffset:G,class:`${k}-header`,ref:B}),{default:rt=>m(dt,null,[m($o,rt,null),X.value==="top"&&m(Mt,rt,{default:()=>[Me]})])}),vt(),X.value&&X.value!=="top"&&m(Oo,Y(Y({},zt),{},{stickyBottomOffset:he,class:`${k}-summary`,ref:C}),{default:rt=>m(Mt,rt,{default:()=>[Me]})}),ne&&I.value&&m(Mi,{ref:H,offsetScroll:we,scrollBodyRef:I,onScroll:Ne,container:ge,scrollBodySizeInfo:A.value},null)])}else Le=()=>m("div",{style:g(g({},se.value),Ee.value),class:ie(`${k}-content`),onScroll:Ne,ref:I},[m(xe,{style:g(g({},ke.value),{tableLayout:re.value})},{default:()=>[K(),j!==!1&&m($o,Y(Y({},Re),P.value),null),Ke(),Me&&m(Mt,{stickyOffsets:J.value,flattenColumns:h.value},{default:()=>[Me]})]})]);const Ge=Vn(n,{aria:!0,data:!0}),at=()=>m("div",Y(Y({},Ge),{},{class:ie(k,{[`${k}-rtl`]:Ce==="rtl",[`${k}-ping-left`]:O.value,[`${k}-ping-right`]:z.value,[`${k}-layout-fixed`]:fe==="fixed",[`${k}-fixed-header`]:L.value,[`${k}-fixed-column`]:R.value,[`${k}-scroll-horizontal`]:Z.value,[`${k}-has-fix-left`]:h.value[0]&&h.value[0].fixed,[`${k}-has-fix-right`]:h.value[W.value-1]&&h.value[W.value-1].fixed==="right",[n.class]:n.class}),style:n.style,id:_,ref:E}),[T&&m(kn,{class:`${k}-title`},{default:()=>[T(a.value)]}),m("div",{class:`${k}-container`},[Le()]),N&&m(kn,{class:`${k}-footer`},{default:()=>[N(a.value)]})]);return Z.value?m(rl,{onResize:ae},{default:at}):at()}}});function Xi(){const e=g({},arguments.length<=0?void 0:arguments[0]);for(let t=1;t{const l=n[o];l!==void 0&&(e[o]=l)})}return e}const Nn=10;function Ui(e,t){const n={current:e.current,pageSize:e.pageSize};return Object.keys(t&&typeof t=="object"?t:{}).forEach(l=>{const a=e[l];typeof a!="function"&&(n[l]=a)}),n}function Gi(e,t,n){const o=w(()=>t.value&&typeof t.value=="object"?t.value:{}),l=w(()=>o.value.total||0),[a,r]=bt(()=>({current:"defaultCurrent"in o.value?o.value.defaultCurrent:1,pageSize:"defaultPageSize"in o.value?o.value.defaultPageSize:Nn})),i=w(()=>{const d=Xi(a.value,o.value,{total:l.value>0?l.value:e.value}),u=Math.ceil((l.value||e.value)/d.pageSize);return d.current>u&&(d.current=u||1),d}),s=(d,u)=>{t.value!==!1&&r({current:d??1,pageSize:u||i.value.pageSize})},f=(d,u)=>{var y,x;t.value&&((x=(y=o.value).onChange)===null||x===void 0||x.call(y,d,u)),s(d,u),n(d,u||i.value.pageSize)};return[w(()=>t.value===!1?{}:g(g({},i.value),{onChange:f})),s]}function qi(e,t,n){const o=oe({});_e([e,t,n],()=>{const a=new Map,r=n.value,i=t.value;function s(f){f.forEach((d,u)=>{const y=r(d,u);a.set(y,d),d&&typeof d=="object"&&i in d&&s(d[i]||[])})}s(e.value),o.value={kvMap:a}},{deep:!0,immediate:!0});function l(a){return o.value.kvMap.get(a)}return[l]}const nt={},Dn="SELECT_ALL",Rn="SELECT_INVERT",_n="SELECT_NONE",Yi=[];function _l(e,t){let n=[];return(t||[]).forEach(o=>{n.push(o),o&&typeof o=="object"&&e in o&&(n=[...n,..._l(e,o[e])])}),n}function Ji(e,t){const n=w(()=>{const C=e.value||{},{checkStrictly:O=!0}=C;return g(g({},C),{checkStrictly:O})}),[o,l]=Ga(n.value.selectedRowKeys||n.value.defaultSelectedRowKeys||Yi,{value:w(()=>n.value.selectedRowKeys)}),a=oe(new Map),r=C=>{if(n.value.preserveSelectedRowKeys){const O=new Map;C.forEach(D=>{let z=t.getRecordByKey(D);!z&&a.value.has(D)&&(z=a.value.get(D)),O.set(D,z)}),a.value=O}};ze(()=>{r(o.value)});const i=w(()=>n.value.checkStrictly?null:Gn(t.data.value,{externalGetKey:t.getRowKey.value,childrenPropName:t.childrenColumnName.value}).keyEntities),s=w(()=>_l(t.childrenColumnName.value,t.pageData.value)),f=w(()=>{const C=new Map,O=t.getRowKey.value,D=n.value.getCheckboxProps;return s.value.forEach((z,F)=>{const Q=O(z,F),le=(D?D(z):null)||{};C.set(Q,le)}),C}),{maxLevel:d,levelEntities:u}=bl(i),y=C=>{var O;return!!(!((O=f.value.get(t.getRowKey.value(C)))===null||O===void 0)&&O.disabled)},x=w(()=>{if(n.value.checkStrictly)return[o.value||[],[]];const{checkedKeys:C,halfCheckedKeys:O}=Pt(o.value,!0,i.value,d.value,u.value,y);return[C||[],O]}),b=w(()=>x.value[0]),v=w(()=>x.value[1]),c=w(()=>{const C=n.value.type==="radio"?b.value.slice(0,1):b.value;return new Set(C)}),p=w(()=>n.value.type==="radio"?new Set:new Set(v.value)),[$,h]=bt(null),P=C=>{let O,D;r(C);const{preserveSelectedRowKeys:z,onChange:F}=n.value,{getRecordByKey:Q}=t;z?(O=C,D=C.map(le=>a.value.get(le))):(O=[],D=[],C.forEach(le=>{const de=Q(le);de!==void 0&&(O.push(le),D.push(de))})),l(O),F==null||F(O,D)},E=(C,O,D,z)=>{const{onSelect:F}=n.value,{getRecordByKey:Q}=t||{};if(F){const le=D.map(de=>Q(de));F(Q(C),O,le,z)}P(D)},B=w(()=>{const{onSelectInvert:C,onSelectNone:O,selections:D,hideSelectAll:z}=n.value,{data:F,pageData:Q,getRowKey:le,locale:de}=t;return!D||z?null:(D===!0?[Dn,Rn,_n]:D).map(W=>W===Dn?{key:"all",text:de.value.selectionAll,onSelect(){P(F.value.map((J,L)=>le.value(J,L)).filter(J=>{const L=f.value.get(J);return!(L!=null&&L.disabled)||c.value.has(J)}))}}:W===Rn?{key:"invert",text:de.value.selectInvert,onSelect(){const J=new Set(c.value);Q.value.forEach((Z,R)=>{const H=le.value(Z,R),M=f.value.get(H);M!=null&&M.disabled||(J.has(H)?J.delete(H):J.add(H))});const L=Array.from(J);C&&(Xe(!1,"Table","`onSelectInvert` will be removed in future. Please use `onChange` instead."),C(L)),P(L)}}:W===_n?{key:"none",text:de.value.selectNone,onSelect(){O==null||O(),P(Array.from(c.value).filter(J=>{const L=f.value.get(J);return L==null?void 0:L.disabled}))}}:W)}),I=w(()=>s.value.length);return[C=>{var O;const{onSelectAll:D,onSelectMultiple:z,columnWidth:F,type:Q,fixed:le,renderCell:de,hideSelectAll:me,checkStrictly:W}=n.value,{prefixCls:J,getRecordByKey:L,getRowKey:Z,expandType:R,getPopupContainer:H}=t;if(!e.value)return C.filter(q=>q!==nt);let M=C.slice();const U=new Set(c.value),X=s.value.map(Z.value).filter(q=>!f.value.get(q).disabled),Se=X.every(q=>U.has(q)),se=X.some(q=>U.has(q)),Ee=()=>{const q=[];Se?X.forEach(ce=>{U.delete(ce),q.push(ce)}):X.forEach(ce=>{U.has(ce)||(U.add(ce),q.push(ce))});const ae=Array.from(U);D==null||D(!Se,ae.map(ce=>L(ce)),q.map(ce=>L(ce))),P(ae)};let ke;if(Q!=="radio"){let q;if(B.value){const pe=m(Gt,{getPopupContainer:H.value},{default:()=>[B.value.map((Ke,K)=>{const{key:S,text:k,onSelect:ee}=Ke;return m(Gt.Item,{key:S||K,onClick:()=>{ee==null||ee(X)}},{default:()=>[k]})})]});q=m("div",{class:`${J.value}-selection-extra`},[m(ut,{overlay:pe,getPopupContainer:H.value},{default:()=>[m("span",null,[m(Za,null,null)])]})])}const ae=s.value.map((pe,Ke)=>{const K=Z.value(pe,Ke),S=f.value.get(K)||{};return g({checked:U.has(K)},S)}).filter(pe=>{let{disabled:Ke}=pe;return Ke}),ce=!!ae.length&&ae.length===I.value,Pe=ce&&ae.every(pe=>{let{checked:Ke}=pe;return Ke}),re=ce&&ae.some(pe=>{let{checked:Ke}=pe;return Ke});ke=!me&&m("div",{class:`${J.value}-selection`},[m(Jt,{checked:ce?Pe:!!I.value&&Se,indeterminate:ce?!Pe&&re:!Se&&se,onChange:Ee,disabled:I.value===0||ce,"aria-label":q?"Custom selection":"Select all",skipGroup:!0},null),q])}let De;Q==="radio"?De=q=>{let{record:ae,index:ce}=q;const Pe=Z.value(ae,ce),re=U.has(Pe);return{node:m(cl,Y(Y({},f.value.get(Pe)),{},{checked:re,onClick:pe=>pe.stopPropagation(),onChange:pe=>{U.has(Pe)||E(Pe,!0,[Pe],pe.nativeEvent)}}),null),checked:re}}:De=q=>{let{record:ae,index:ce}=q;var Pe;const re=Z.value(ae,ce),pe=U.has(re),Ke=p.value.has(re),K=f.value.get(re);let S;return R.value==="nest"?(S=Ke,Xe(typeof(K==null?void 0:K.indeterminate)!="boolean","Table","set `indeterminate` using `rowSelection.getCheckboxProps` is not allowed with tree structured dataSource.")):S=(Pe=K==null?void 0:K.indeterminate)!==null&&Pe!==void 0?Pe:Ke,{node:m(Jt,Y(Y({},K),{},{indeterminate:S,checked:pe,skipGroup:!0,onClick:k=>k.stopPropagation(),onChange:k=>{let{nativeEvent:ee}=k;const{shiftKey:fe}=ee;let Ce=-1,T=-1;if(fe&&W){const N=new Set([$.value,re]);X.some((_,j)=>{if(N.has(_))if(Ce===-1)Ce=j;else return T=j,!0;return!1})}if(T!==-1&&Ce!==T&&W){const N=X.slice(Ce,T+1),_=[];pe?N.forEach(te=>{U.has(te)&&(_.push(te),U.delete(te))}):N.forEach(te=>{U.has(te)||(_.push(te),U.add(te))});const j=Array.from(U);z==null||z(!pe,j.map(te=>L(te)),_.map(te=>L(te))),P(j)}else{const N=b.value;if(W){const _=pe?qe(N,re):tt(N,re);E(re,!pe,_,ee)}else{const _=Pt([...N,re],!0,i.value,d.value,u.value,y),{checkedKeys:j,halfCheckedKeys:te}=_;let ne=j;if(pe){const G=new Set(j);G.delete(re),ne=Pt(Array.from(G),{halfCheckedKeys:te},i.value,d.value,u.value,y).checkedKeys}E(re,!pe,ne,ee)}}h(re)}}),null),checked:pe}};const Be=q=>{let{record:ae,index:ce}=q;const{node:Pe,checked:re}=De({record:ae,index:ce});return de?de(re,ae,ce,Pe):Pe};if(!M.includes(nt))if(M.findIndex(q=>{var ae;return((ae=q[Ot])===null||ae===void 0?void 0:ae.columnType)==="EXPAND_COLUMN"})===0){const[q,...ae]=M;M=[q,nt,...ae]}else M=[nt,...M];const je=M.indexOf(nt);M=M.filter((q,ae)=>q!==nt||ae===je);const Te=M[je-1],Ne=M[je+1];let V=le;V===void 0&&((Ne==null?void 0:Ne.fixed)!==void 0?V=Ne.fixed:(Te==null?void 0:Te.fixed)!==void 0&&(V=Te.fixed)),V&&Te&&((O=Te[Ot])===null||O===void 0?void 0:O.columnType)==="EXPAND_COLUMN"&&Te.fixed===void 0&&(Te.fixed=V);const ue={fixed:V,width:F,className:`${J.value}-selection-column`,title:n.value.columnTitle||ke,customRender:Be,[Ot]:{class:`${J.value}-selection-col`}};return M.map(q=>q===nt?ue:q)},c]}var Qi={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"};function Ko(e){for(var t=1;t0&&arguments[0]!==void 0?arguments[0]:[];const t=nl(e),n=[];return t.forEach(o=>{var l,a,r,i;if(!o)return;const s=o.key,f=((l=o.props)===null||l===void 0?void 0:l.style)||{},d=((a=o.props)===null||a===void 0?void 0:a.class)||"",u=o.props||{};for(const[c,p]of Object.entries(u))u[el(c)]=p;const y=o.children||{},{default:x}=y,b=ns(y,["default"]),v=g(g(g({},b),u),{style:f,class:d});if(s&&(v.key=s),!((r=o.type)===null||r===void 0)&&r.__ANT_TABLE_COLUMN_GROUP)v.children=Bl(typeof x=="function"?x():x);else{const c=(i=o.children)===null||i===void 0?void 0:i.default;v.customRender=v.customRender||c}n.push(v)}),n}const Wt="ascend",vn="descend";function tn(e){return typeof e.sorter=="object"&&typeof e.sorter.multiple=="number"?e.sorter.multiple:!1}function ko(e){return typeof e=="function"?e:e&&typeof e=="object"&&e.compare?e.compare:!1}function os(e,t){return t?e[e.indexOf(t)+1]:e[0]}function Bn(e,t,n){let o=[];function l(a,r){o.push({column:a,key:xt(a,r),multiplePriority:tn(a),sortOrder:a.sortOrder})}return(e||[]).forEach((a,r)=>{const i=At(r,n);a.children?("sortOrder"in a&&l(a,i),o=[...o,...Bn(a.children,t,i)]):a.sorter&&("sortOrder"in a?l(a,i):t&&a.defaultSortOrder&&o.push({column:a,key:xt(a,i),multiplePriority:tn(a),sortOrder:a.defaultSortOrder}))}),o}function Al(e,t,n,o,l,a,r,i){return(t||[]).map((s,f)=>{const d=At(f,i);let u=s;if(u.sorter){const y=u.sortDirections||l,x=u.showSorterTooltip===void 0?r:u.showSorterTooltip,b=xt(u,d),v=n.find(C=>{let{key:O}=C;return O===b}),c=v?v.sortOrder:null,p=os(y,c),$=y.includes(Wt)&&m(Qn,{class:ie(`${e}-column-sorter-up`,{active:c===Wt}),role:"presentation"},null),h=y.includes(vn)&&m(Jn,{role:"presentation",class:ie(`${e}-column-sorter-down`,{active:c===vn})},null),{cancelSort:P,triggerAsc:E,triggerDesc:B}=a||{};let I=P;p===vn?I=B:p===Wt&&(I=E);const A=typeof x=="object"?x:{title:I};u=g(g({},u),{className:ie(u.className,{[`${e}-column-sort`]:c}),title:C=>{const O=m("div",{class:`${e}-column-sorters`},[m("span",{class:`${e}-column-title`},[Zn(s.title,C)]),m("span",{class:ie(`${e}-column-sorter`,{[`${e}-column-sorter-full`]:!!($&&h)})},[m("span",{class:`${e}-column-sorter-inner`},[$,h])])]);return x?m(Wa,A,{default:()=>[O]}):O},customHeaderCell:C=>{const O=s.customHeaderCell&&s.customHeaderCell(C)||{},D=O.onClick,z=O.onKeydown;return O.onClick=F=>{o({column:s,key:b,sortOrder:p,multiplePriority:tn(s)}),D&&D(F)},O.onKeydown=F=>{F.keyCode===it.ENTER&&(o({column:s,key:b,sortOrder:p,multiplePriority:tn(s)}),z==null||z(F))},c&&(O["aria-sort"]=c==="ascend"?"ascending":"descending"),O.class=ie(O.class,`${e}-column-has-sorters`),O.tabindex=0,O}})}return"children"in u&&(u=g(g({},u),{children:Al(e,u.children,n,o,l,a,r,d)})),u})}function To(e){const{column:t,sortOrder:n}=e;return{column:t,order:n,field:t.dataIndex,columnKey:t.key}}function No(e){const t=e.filter(n=>{let{sortOrder:o}=n;return o}).map(To);return t.length===0&&e.length?g(g({},To(e[e.length-1])),{column:void 0}):t.length<=1?t[0]||{}:t}function An(e,t,n){const o=t.slice().sort((r,i)=>i.multiplePriority-r.multiplePriority),l=e.slice(),a=o.filter(r=>{let{column:{sorter:i},sortOrder:s}=r;return ko(i)&&s});return a.length?l.sort((r,i)=>{for(let s=0;s{const i=r[n];return i?g(g({},r),{[n]:An(i,t,n)}):r}):l}function ls(e){let{prefixCls:t,mergedColumns:n,onSorterChange:o,sortDirections:l,tableLocale:a,showSorterTooltip:r}=e;const[i,s]=bt(Bn(n.value,!0)),f=w(()=>{let b=!0;const v=Bn(n.value,!1);if(!v.length)return i.value;const c=[];function p(h){b?c.push(h):c.push(g(g({},h),{sortOrder:null}))}let $=null;return v.forEach(h=>{$===null?(p(h),h.sortOrder&&(h.multiplePriority===!1?b=!1:$=!0)):($&&h.multiplePriority!==!1||(b=!1),p(h))}),c}),d=w(()=>{const b=f.value.map(v=>{let{column:c,sortOrder:p}=v;return{column:c,order:p}});return{sortColumns:b,sortColumn:b[0]&&b[0].column,sortOrder:b[0]&&b[0].order}});function u(b){let v;b.multiplePriority===!1||!f.value.length||f.value[0].multiplePriority===!1?v=[b]:v=[...f.value.filter(c=>{let{key:p}=c;return p!==b.key}),b],s(v),o(No(v),v)}const y=b=>Al(t.value,b,f.value,u,l.value,a.value,r.value),x=w(()=>No(f.value));return[y,f,d,x]}var as={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"};function Do(e){for(var t=1;t{const{keyCode:t}=e;t===it.ENTER&&e.stopPropagation()},ss=(e,t)=>{let{slots:n}=t;var o;return m("div",{onClick:l=>l.stopPropagation(),onKeydown:is},[(o=n.default)===null||o===void 0?void 0:o.call(n)])},Ro=be({compatConfig:{MODE:3},name:"FilterSearch",inheritAttrs:!1,props:{value:lt(),onChange:Ie(),filterSearch:He([Boolean,Function]),tablePrefixCls:lt(),locale:Ye()},setup(e){return()=>{const{value:t,onChange:n,filterSearch:o,tablePrefixCls:l,locale:a}=e;return o?m("div",{class:`${l}-filter-dropdown-search`},[m(qa,{placeholder:a.filterSearchPlaceholder,onChange:n,value:t,htmlSize:1,class:`${l}-filter-dropdown-search-input`},{prefix:()=>m(Ya,null,null)})]):null}}});var _o=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var l=0,o=Object.getOwnPropertySymbols(e);le.motion?e.motion:Ba()),s=(f,d)=>{var u,y,x,b;d==="appear"?(y=(u=i.value)===null||u===void 0?void 0:u.onAfterEnter)===null||y===void 0||y.call(u,f):d==="leave"&&((b=(x=i.value)===null||x===void 0?void 0:x.onAfterLeave)===null||b===void 0||b.call(x,f)),r.value||e.onMotionEnd(),r.value=!0};return _e(()=>e.motionNodes,()=>{e.motionNodes&&e.motionType==="hide"&&l.value&&pt(()=>{l.value=!1})},{immediate:!0,flush:"post"}),ft(()=>{e.motionNodes&&e.onMotionStart()}),wt(()=>{e.motionNodes&&s()}),()=>{const{motion:f,motionNodes:d,motionType:u,active:y,eventKey:x}=e,b=_o(e,["motion","motionNodes","motionType","active","eventKey"]);return d?m(pa,Y(Y({},i.value),{},{appear:u==="show",onAfterAppear:v=>s(v,"appear"),onAfterLeave:v=>s(v,"leave")}),{default:()=>[va(m("div",{class:`${a.value.prefixCls}-treenode-motion`},[d.map(v=>{const c=_o(v.data,[]),{title:p,key:$,isStart:h,isEnd:P}=v;return delete c.children,m($n,Y(Y({},c),{},{title:p,active:y,data:v.data,key:$,eventKey:$,isStart:h,isEnd:P}),o)})]),[[ma,l.value]])]}):m($n,Y(Y({class:n.class,style:n.style},b),{},{active:y,eventKey:x}),o)}}});function ds(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];const n=e.length,o=t.length;if(Math.abs(n-o)!==1)return{add:!1,key:null};function l(a,r){const i=new Map;a.forEach(f=>{i.set(f,!0)});const s=r.filter(f=>!i.has(f));return s.length===1?s[0]:null}return nr.key===n),l=e[o+1],a=t.findIndex(r=>r.key===n);if(l){const r=t.findIndex(i=>i.key===l.key);return t.slice(a+1,r)}return t.slice(a+1)}var Ao=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var l=0,o=Object.getOwnPropertySymbols(e);l{},Ct=`RC_TREE_MOTION_${Math.random()}`,zn={key:Ct},zl={key:Ct,level:0,index:0,pos:"0",node:zn,nodes:[zn]},Fo={parent:null,children:[],pos:zl.pos,data:zn,title:null,key:Ct,isStart:[],isEnd:[]};function Mo(e,t,n,o){return t===!1||!n?e:e.slice(0,Math.ceil(n/o)+1)}function Lo(e){const{key:t,pos:n}=e;return Bt(t,n)}function fs(e){let t=String(e.key),n=e;for(;n.parent;)n=n.parent,t=`${n.key} > ${t}`;return t}const ps=be({compatConfig:{MODE:3},name:"NodeList",inheritAttrs:!1,props:yr,setup(e,t){let{expose:n,attrs:o}=t;const l=$e(),a=$e(),{expandedKeys:r,flattenNodes:i}=vl();n({scrollTo:v=>{l.value.scrollTo(v)},getIndentWidth:()=>a.value.offsetWidth});const s=oe(i.value),f=oe([]),d=$e(null);function u(){s.value=i.value,f.value=[],d.value=null,e.onListChangeEnd()}const y=Xn();_e([()=>r.value.slice(),i],(v,c)=>{let[p,$]=v,[h,P]=c;const E=ds(h,p);if(E.key!==null){const{virtual:B,height:I,itemHeight:A}=e;if(E.add){const C=P.findIndex(z=>{let{key:F}=z;return F===E.key}),O=Mo(Bo(P,$,E.key),B,I,A),D=P.slice();D.splice(C+1,0,Fo),s.value=D,f.value=O,d.value="show"}else{const C=$.findIndex(z=>{let{key:F}=z;return F===E.key}),O=Mo(Bo($,P,E.key),B,I,A),D=$.slice();D.splice(C+1,0,Fo),s.value=D,f.value=O,d.value="hide"}}else P!==$&&(s.value=$)}),_e(()=>y.value.dragging,v=>{v||u()});const x=w(()=>e.motion===void 0?s.value:i.value),b=()=>{e.onActiveChange(null)};return()=>{const v=g(g({},e),o),{prefixCls:c,selectable:p,checkable:$,disabled:h,motion:P,height:E,itemHeight:B,virtual:I,focusable:A,activeItem:C,focused:O,tabindex:D,onKeydown:z,onFocus:F,onBlur:Q,onListChangeStart:le,onListChangeEnd:de}=v,me=Ao(v,["prefixCls","selectable","checkable","disabled","motion","height","itemHeight","virtual","focusable","activeItem","focused","tabindex","onKeydown","onFocus","onBlur","onListChangeStart","onListChangeEnd"]);return m(dt,null,[O&&C&&m("span",{style:zo,"aria-live":"assertive"},[fs(C)]),m("div",null,[m("input",{style:zo,disabled:A===!1||h,tabindex:A!==!1?D:null,onKeydown:z,onFocus:F,onBlur:Q,value:"",onChange:us,"aria-label":"for screen reader"},null)]),m("div",{class:`${c}-treenode`,"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden"}},[m("div",{class:`${c}-indent`},[m("div",{ref:a,class:`${c}-indent-unit`},null)])]),m(er,Y(Y({},_t(me,["onActiveChange"])),{},{data:x.value,itemKey:Lo,height:E,fullHeight:!1,virtual:I,itemHeight:B,prefixCls:`${c}-list`,ref:l,onVisibleChange:(W,J)=>{const L=new Set(W);J.filter(R=>!L.has(R)).some(R=>Lo(R)===Ct)&&u()}}),{default:W=>{const{pos:J}=W,L=Ao(W.data,[]),{title:Z,key:R,isStart:H,isEnd:M}=W,U=Bt(R,J);return delete L.key,delete L.children,m(cs,Y(Y({},L),{},{eventKey:U,title:Z,active:!!C&&R===C.key,data:W.data,isStart:H,isEnd:M,motion:P,motionNodes:R===Ct?f.value:null,motionType:d.value,onMotionStart:le,onMotionEnd:u,onMousemove:b}),null)}})])}}});function vs(e){let{dropPosition:t,dropLevelOffset:n,indent:o}=e;const l={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:"2px"};switch(t){case-1:l.top=0,l.left=`${-n*o}px`;break;case 1:l.bottom=0,l.left=`${-n*o}px`;break;case 0:l.bottom=0,l.left=`${o}`;break}return m("div",{style:l},null)}const ms=10,hs=be({compatConfig:{MODE:3},name:"Tree",inheritAttrs:!1,props:$t(hl(),{prefixCls:"vc-tree",showLine:!1,showIcon:!0,selectable:!0,multiple:!1,checkable:!1,disabled:!1,checkStrictly:!1,draggable:!1,expandAction:!1,defaultExpandParent:!0,autoExpandParent:!1,defaultExpandAll:!1,defaultExpandedKeys:[],defaultCheckedKeys:[],defaultSelectedKeys:[],dropIndicatorRender:vs,allowDrop:()=>!0}),setup(e,t){let{attrs:n,slots:o,expose:l}=t;const a=oe(!1);let r={};const i=oe(),s=oe([]),f=oe([]),d=oe([]),u=oe([]),y=oe([]),x=oe([]),b={},v=ct({draggingNodeKey:null,dragChildrenKeys:[],dropTargetKey:null,dropPosition:null,dropContainerKey:null,dropLevelOffset:null,dropTargetPos:null,dropAllowed:!0,dragOverNodeKey:null}),c=oe([]);_e([()=>e.treeData,()=>e.children],()=>{c.value=e.treeData!==void 0?e.treeData.slice():On(io(e.children))},{immediate:!0,deep:!0});const p=oe({}),$=oe(!1),h=oe(null),P=oe(!1),E=w(()=>ln(e.fieldNames)),B=oe();let I=null,A=null,C=null;const O=w(()=>({expandedKeysSet:D.value,selectedKeysSet:z.value,loadedKeysSet:F.value,loadingKeysSet:Q.value,checkedKeysSet:le.value,halfCheckedKeysSet:de.value,dragOverNodeKey:v.dragOverNodeKey,dropPosition:v.dropPosition,keyEntities:p.value})),D=w(()=>new Set(x.value)),z=w(()=>new Set(s.value)),F=w(()=>new Set(u.value)),Q=w(()=>new Set(y.value)),le=w(()=>new Set(f.value)),de=w(()=>new Set(d.value));ze(()=>{if(c.value){const T=Gn(c.value,{fieldNames:E.value});p.value=g({[Ct]:zl},T.keyEntities)}});let me=!1;_e([()=>e.expandedKeys,()=>e.autoExpandParent,p],(T,N)=>{let[_,j]=T,[te,ne]=N,G=x.value;if(e.expandedKeys!==void 0||me&&j!==ne)G=e.autoExpandParent||!me&&e.defaultExpandParent?Pn(e.expandedKeys,p.value):e.expandedKeys;else if(!me&&e.defaultExpandAll){const he=g({},p.value);delete he[Ct],G=Object.keys(he).map(we=>he[we].key)}else!me&&e.defaultExpandedKeys&&(G=e.autoExpandParent||e.defaultExpandParent?Pn(e.defaultExpandedKeys,p.value):e.defaultExpandedKeys);G&&(x.value=G),me=!0},{immediate:!0});const W=oe([]);ze(()=>{W.value=Or(c.value,x.value,E.value)}),ze(()=>{e.selectable&&(e.selectedKeys!==void 0?s.value=bo(e.selectedKeys,e):!me&&e.defaultSelectedKeys&&(s.value=bo(e.defaultSelectedKeys,e)))});const{maxLevel:J,levelEntities:L}=bl(p);ze(()=>{if(e.checkable){let T;if(e.checkedKeys!==void 0?T=pn(e.checkedKeys)||{}:!me&&e.defaultCheckedKeys?T=pn(e.defaultCheckedKeys)||{}:c.value&&(T=pn(e.checkedKeys)||{checkedKeys:f.value,halfCheckedKeys:d.value}),T){let{checkedKeys:N=[],halfCheckedKeys:_=[]}=T;e.checkStrictly||({checkedKeys:N,halfCheckedKeys:_}=Pt(N,!0,p.value,J.value,L.value)),f.value=N,d.value=_}}}),ze(()=>{e.loadedKeys&&(u.value=e.loadedKeys)});const Z=()=>{g(v,{dragOverNodeKey:null,dropPosition:null,dropLevelOffset:null,dropTargetKey:null,dropContainerKey:null,dropTargetPos:null,dropAllowed:!1})},R=T=>{B.value.scrollTo(T)};_e(()=>e.activeKey,()=>{e.activeKey!==void 0&&(h.value=e.activeKey)},{immediate:!0}),_e(h,T=>{pt(()=>{T!==null&&R({key:T})})},{immediate:!0,flush:"post"});const H=T=>{e.expandedKeys===void 0&&(x.value=T)},M=()=>{v.draggingNodeKey!==null&&g(v,{draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),I=null,C=null},U=(T,N)=>{const{onDragend:_}=e;v.dragOverNodeKey=null,M(),_==null||_({event:T,node:N.eventData}),A=null},X=T=>{U(T,null),window.removeEventListener("dragend",X)},Se=(T,N)=>{const{onDragstart:_}=e,{eventKey:j,eventData:te}=N;A=N,I={x:T.clientX,y:T.clientY};const ne=qe(x.value,j);v.draggingNodeKey=j,v.dragChildrenKeys=Sr(j,p.value),i.value=B.value.getIndentWidth(),H(ne),window.addEventListener("dragend",X),_&&_({event:T,node:te})},se=(T,N)=>{const{onDragenter:_,onExpand:j,allowDrop:te,direction:ne}=e,{pos:G,eventKey:he}=N;if(C!==he&&(C=he),!A){Z();return}const{dropPosition:we,dropLevelOffset:ve,dropTargetKey:ge,dropContainerKey:xe,dropTargetPos:Ae,dropAllowed:Me,dragOverNodeKey:Le}=yo(T,A,N,i.value,I,te,W.value,p.value,D.value,ne);if(v.dragChildrenKeys.indexOf(ge)!==-1||!Me){Z();return}if(r||(r={}),Object.keys(r).forEach(Re=>{clearTimeout(r[Re])}),A.eventKey!==N.eventKey&&(r[G]=window.setTimeout(()=>{if(v.draggingNodeKey===null)return;let Re=x.value.slice();const Ge=p.value[N.eventKey];Ge&&(Ge.children||[]).length&&(Re=tt(x.value,N.eventKey)),H(Re),j&&j(Re,{node:N.eventData,expanded:!0,nativeEvent:T})},800)),A.eventKey===ge&&ve===0){Z();return}g(v,{dragOverNodeKey:Le,dropPosition:we,dropLevelOffset:ve,dropTargetKey:ge,dropContainerKey:xe,dropTargetPos:Ae,dropAllowed:Me}),_&&_({event:T,node:N.eventData,expandedKeys:x.value})},Ee=(T,N)=>{const{onDragover:_,allowDrop:j,direction:te}=e;if(!A)return;const{dropPosition:ne,dropLevelOffset:G,dropTargetKey:he,dropContainerKey:we,dropAllowed:ve,dropTargetPos:ge,dragOverNodeKey:xe}=yo(T,A,N,i.value,I,j,W.value,p.value,D.value,te);v.dragChildrenKeys.indexOf(he)!==-1||!ve||(A.eventKey===he&&G===0?v.dropPosition===null&&v.dropLevelOffset===null&&v.dropTargetKey===null&&v.dropContainerKey===null&&v.dropTargetPos===null&&v.dropAllowed===!1&&v.dragOverNodeKey===null||Z():ne===v.dropPosition&&G===v.dropLevelOffset&&he===v.dropTargetKey&&we===v.dropContainerKey&&ge===v.dropTargetPos&&ve===v.dropAllowed&&xe===v.dragOverNodeKey||g(v,{dropPosition:ne,dropLevelOffset:G,dropTargetKey:he,dropContainerKey:we,dropTargetPos:ge,dropAllowed:ve,dragOverNodeKey:xe}),_&&_({event:T,node:N.eventData}))},ke=(T,N)=>{C===N.eventKey&&!T.currentTarget.contains(T.relatedTarget)&&(Z(),C=null);const{onDragleave:_}=e;_&&_({event:T,node:N.eventData})},De=function(T,N){let _=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;var j;const{dragChildrenKeys:te,dropPosition:ne,dropTargetKey:G,dropTargetPos:he,dropAllowed:we}=v;if(!we)return;const{onDrop:ve}=e;if(v.dragOverNodeKey=null,M(),G===null)return;const ge=g(g({},jt(G,io(O.value))),{active:((j=k.value)===null||j===void 0?void 0:j.key)===G,data:p.value[G].node});te.indexOf(G);const xe=Un(he),Ae={event:T,node:Ht(ge),dragNode:A?A.eventData:null,dragNodesKeys:[A.eventKey].concat(te),dropToGap:ne!==0,dropPosition:ne+Number(xe[xe.length-1])};_||ve==null||ve(Ae),A=null},Be=(T,N)=>{const{expanded:_,key:j}=N,te=W.value.filter(G=>G.key===j)[0],ne=Ht(g(g({},jt(j,O.value)),{data:te.data}));H(_?qe(x.value,j):tt(x.value,j)),pe(T,ne)},je=(T,N)=>{const{onClick:_,expandAction:j}=e;j==="click"&&Be(T,N),_&&_(T,N)},Te=(T,N)=>{const{onDblclick:_,expandAction:j}=e;(j==="doubleclick"||j==="dblclick")&&Be(T,N),_&&_(T,N)},Ne=(T,N)=>{let _=s.value;const{onSelect:j,multiple:te}=e,{selected:ne}=N,G=N[E.value.key],he=!ne;he?te?_=tt(_,G):_=[G]:_=qe(_,G);const we=p.value,ve=_.map(ge=>{const xe=we[ge];return xe?xe.node:null}).filter(ge=>ge);e.selectedKeys===void 0&&(s.value=_),j&&j(_,{event:"select",selected:he,node:N,selectedNodes:ve,nativeEvent:T})},V=(T,N,_)=>{const{checkStrictly:j,onCheck:te}=e,ne=N[E.value.key];let G;const he={event:"check",node:N,checked:_,nativeEvent:T},we=p.value;if(j){const ve=_?tt(f.value,ne):qe(f.value,ne),ge=qe(d.value,ne);G={checked:ve,halfChecked:ge},he.checkedNodes=ve.map(xe=>we[xe]).filter(xe=>xe).map(xe=>xe.node),e.checkedKeys===void 0&&(f.value=ve)}else{let{checkedKeys:ve,halfCheckedKeys:ge}=Pt([...f.value,ne],!0,we,J.value,L.value);if(!_){const xe=new Set(ve);xe.delete(ne),{checkedKeys:ve,halfCheckedKeys:ge}=Pt(Array.from(xe),{halfCheckedKeys:ge},we,J.value,L.value)}G=ve,he.checkedNodes=[],he.checkedNodesPositions=[],he.halfCheckedKeys=ge,ve.forEach(xe=>{const Ae=we[xe];if(!Ae)return;const{node:Me,pos:Le}=Ae;he.checkedNodes.push(Me),he.checkedNodesPositions.push({node:Me,pos:Le})}),e.checkedKeys===void 0&&(f.value=ve,d.value=ge)}te&&te(G,he)},ue=T=>{const N=T[E.value.key],_=new Promise((j,te)=>{const{loadData:ne,onLoad:G}=e;if(!ne||F.value.has(N)||Q.value.has(N))return null;ne(T).then(()=>{const we=tt(u.value,N),ve=qe(y.value,N);G&&G(we,{event:"load",node:T}),e.loadedKeys===void 0&&(u.value=we),y.value=ve,j()}).catch(we=>{const ve=qe(y.value,N);if(y.value=ve,b[N]=(b[N]||0)+1,b[N]>=ms){const ge=tt(u.value,N);e.loadedKeys===void 0&&(u.value=ge),j()}te(we)}),y.value=tt(y.value,N)});return _.catch(()=>{}),_},q=(T,N)=>{const{onMouseenter:_}=e;_&&_({event:T,node:N})},ae=(T,N)=>{const{onMouseleave:_}=e;_&&_({event:T,node:N})},ce=(T,N)=>{const{onRightClick:_}=e;_&&(T.preventDefault(),_({event:T,node:N}))},Pe=T=>{const{onFocus:N}=e;$.value=!0,N&&N(T)},re=T=>{const{onBlur:N}=e;$.value=!1,S(null),N&&N(T)},pe=(T,N)=>{let _=x.value;const{onExpand:j,loadData:te}=e,{expanded:ne}=N,G=N[E.value.key];if(P.value)return;_.indexOf(G);const he=!ne;if(he?_=tt(_,G):_=qe(_,G),H(_),j&&j(_,{node:N,expanded:he,nativeEvent:T}),he&&te){const we=ue(N);we&&we.then(()=>{}).catch(ve=>{const ge=qe(x.value,G);H(ge),Promise.reject(ve)})}},Ke=()=>{P.value=!0},K=()=>{setTimeout(()=>{P.value=!1})},S=T=>{const{onActiveChange:N}=e;h.value!==T&&(e.activeKey!==void 0&&(h.value=T),T!==null&&R({key:T}),N&&N(T))},k=w(()=>h.value===null?null:W.value.find(T=>{let{key:N}=T;return N===h.value})||null),ee=T=>{let N=W.value.findIndex(j=>{let{key:te}=j;return te===h.value});N===-1&&T<0&&(N=W.value.length),N=(N+T+W.value.length)%W.value.length;const _=W.value[N];if(_){const{key:j}=_;S(j)}else S(null)},fe=w(()=>Ht(g(g({},jt(h.value,O.value)),{data:k.value.data,active:!0}))),Ce=T=>{const{onKeydown:N,checkable:_,selectable:j}=e;switch(T.which){case it.UP:{ee(-1),T.preventDefault();break}case it.DOWN:{ee(1),T.preventDefault();break}}const te=k.value;if(te&&te.data){const ne=te.data.isLeaf===!1||!!(te.data.children||[]).length,G=fe.value;switch(T.which){case it.LEFT:{ne&&D.value.has(h.value)?pe({},G):te.parent&&S(te.parent.key),T.preventDefault();break}case it.RIGHT:{ne&&!D.value.has(h.value)?pe({},G):te.children&&te.children.length&&S(te.children[0].key),T.preventDefault();break}case it.ENTER:case it.SPACE:{_&&!G.disabled&&G.checkable!==!1&&!G.disableCheckbox?V({},G,!le.value.has(h.value)):!_&&j&&!G.disabled&&G.selectable!==!1&&Ne({},G);break}}}N&&N(T)};return l({onNodeExpand:pe,scrollTo:R,onKeydown:Ce,selectedKeys:w(()=>s.value),checkedKeys:w(()=>f.value),halfCheckedKeys:w(()=>d.value),loadedKeys:w(()=>u.value),loadingKeys:w(()=>y.value),expandedKeys:w(()=>x.value)}),ol(()=>{window.removeEventListener("dragend",X),a.value=!0}),hr({expandedKeys:x,selectedKeys:s,loadedKeys:u,loadingKeys:y,checkedKeys:f,halfCheckedKeys:d,expandedKeysSet:D,selectedKeysSet:z,loadedKeysSet:F,loadingKeysSet:Q,checkedKeysSet:le,halfCheckedKeysSet:de,flattenNodes:W}),()=>{const{draggingNodeKey:T,dropLevelOffset:N,dropContainerKey:_,dropTargetKey:j,dropPosition:te,dragOverNodeKey:ne}=v,{prefixCls:G,showLine:he,focusable:we,tabindex:ve=0,selectable:ge,showIcon:xe,icon:Ae=o.icon,switcherIcon:Me,draggable:Le,checkable:Re,checkStrictly:Ge,disabled:at,motion:vt,loadData:zt,filterTreeNode:rt,height:dn,itemHeight:Ft,virtual:Kt,dropIndicatorRender:Gl,onContextmenu:ql,onScroll:Yl,direction:Jl,rootClassName:Ql,rootStyle:Zl}=e,{class:ea,style:ta}=n,na=Vn(g(g({},e),n),{aria:!0,data:!0});let Et;return Le?typeof Le=="object"?Et=Le:typeof Le=="function"?Et={nodeDraggable:Le}:Et={}:Et=!1,m(mr,{value:{prefixCls:G,selectable:ge,showIcon:xe,icon:Ae,switcherIcon:Me,draggable:Et,draggingNodeKey:T,checkable:Re,customCheckable:o.checkable,checkStrictly:Ge,disabled:at,keyEntities:p.value,dropLevelOffset:N,dropContainerKey:_,dropTargetKey:j,dropPosition:te,dragOverNodeKey:ne,dragging:T!==null,indent:i.value,direction:Jl,dropIndicatorRender:Gl,loadData:zt,filterTreeNode:rt,onNodeClick:je,onNodeDoubleClick:Te,onNodeExpand:pe,onNodeSelect:Ne,onNodeCheck:V,onNodeLoad:ue,onNodeMouseEnter:q,onNodeMouseLeave:ae,onNodeContextMenu:ce,onNodeDragStart:Se,onNodeDragEnter:se,onNodeDragOver:Ee,onNodeDragLeave:ke,onNodeDragEnd:U,onNodeDrop:De,slots:o}},{default:()=>[m("div",{role:"tree",class:ie(G,ea,Ql,{[`${G}-show-line`]:he,[`${G}-focused`]:$.value,[`${G}-active-focused`]:h.value!==null}),style:Zl},[m(ps,Y({ref:B,prefixCls:G,style:ta,disabled:at,selectable:ge,checkable:!!Re,motion:vt,height:dn,itemHeight:Ft,virtual:Kt,focusable:we,focused:$.value,tabindex:ve,activeItem:k.value,onFocus:Pe,onBlur:re,onKeydown:Ce,onActiveChange:S,onListChangeStart:Ke,onListChangeEnd:K,onContextmenu:ql,onScroll:Yl},na),null)])]})}}});var gs={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"};function jo(e){for(var t=1;t({[`.${e}-switcher-icon`]:{display:"inline-block",fontSize:10,verticalAlign:"baseline",svg:{transition:`transform ${t.motionDurationSlow}`}}}),Es=(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:`${t.lineWidthBold}px solid ${t.colorPrimary}`,borderRadius:"50%",content:'""'}}}),ks=(e,t)=>{const{treeCls:n,treeNodeCls:o,treeNodePadding:l,treeTitleHeight:a}=t,r=(a-t.fontSizeLG)/2,i=t.paddingXS;return{[n]:g(g({},Rt(t)),{background:t.colorBgContainer,borderRadius:t.borderRadius,transition:`background-color ${t.motionDurationSlow}`,[`&${n}-rtl`]:{[`${n}-switcher`]:{"&_close":{[`${n}-switcher-icon`]:{svg:{transform:"rotate(90deg)"}}}}},[`&-focused:not(:hover):not(${n}-active-focused)`]:g({},Xt(t)),[`${n}-list-holder-inner`]:{alignItems:"flex-start"},[`&${n}-block-node`]:{[`${n}-list-holder-inner`]:{alignItems:"stretch",[`${n}-node-content-wrapper`]:{flex:"auto"},[`${o}.dragging`]:{position:"relative","&:after":{position:"absolute",top:0,insetInlineEnd:0,bottom:l,insetInlineStart:0,border:`1px solid ${t.colorPrimary}`,opacity:0,animationName:Is,animationDuration:t.motionDurationSlow,animationPlayState:"running",animationFillMode:"forwards",content:'""',pointerEvents:"none"}}}},[`${o}`]:{display:"flex",alignItems:"flex-start",padding:`0 0 ${l}px 0`,outline:"none","&-rtl":{direction:"rtl"},"&-disabled":{[`${n}-node-content-wrapper`]:{color:t.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"}}},[`&-active ${n}-node-content-wrapper`]:g({},Xt(t)),[`&:not(${o}-disabled).filter-node ${n}-title`]:{color:"inherit",fontWeight:500},"&-draggable":{[`${n}-draggable-icon`]:{width:a,lineHeight:`${a}px`,textAlign:"center",visibility:"visible",opacity:.2,transition:`opacity ${t.motionDurationSlow}`,[`${o}:hover &`]:{opacity:.45}},[`&${o}-disabled`]:{[`${n}-draggable-icon`]:{visibility:"hidden"}}}},[`${n}-indent`]:{alignSelf:"stretch",whiteSpace:"nowrap",userSelect:"none","&-unit":{display:"inline-block",width:a}},[`${n}-draggable-icon`]:{visibility:"hidden"},[`${n}-switcher`]:g(g({},Ks(e,t)),{position:"relative",flex:"none",alignSelf:"stretch",width:a,margin:0,lineHeight:`${a}px`,textAlign:"center",cursor:"pointer",userSelect:"none","&-noop":{cursor:"default"},"&_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:a/2,bottom:-l,marginInlineStart:-1,borderInlineEnd:`1px solid ${t.colorBorder}`,content:'""'},"&:after":{position:"absolute",width:a/2*.8,height:a/2,borderBottom:`1px solid ${t.colorBorder}`,content:'""'}}}),[`${n}-checkbox`]:{top:"initial",marginInlineEnd:i,marginBlockStart:r},[`${n}-node-content-wrapper, ${n}-checkbox + span`]:{position:"relative",zIndex:"auto",minHeight:a,margin:0,padding:`0 ${t.paddingXS/2}px`,color:"inherit",lineHeight:`${a}px`,background:"transparent",borderRadius:t.borderRadius,cursor:"pointer",transition:`all ${t.motionDurationMid}, border 0s, line-height 0s, box-shadow 0s`,"&:hover":{backgroundColor:t.controlItemBgHover},[`&${n}-node-selected`]:{backgroundColor:t.controlItemBgActive},[`${n}-iconEle`]:{display:"inline-block",width:a,height:a,lineHeight:`${a}px`,textAlign:"center",verticalAlign:"top","&:empty":{display:"none"}}},[`${n}-unselectable ${n}-node-content-wrapper:hover`]:{backgroundColor:"transparent"},[`${n}-node-content-wrapper`]:g({lineHeight:`${a}px`,userSelect:"none"},Es(e,t)),[`${o}.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:a/2,bottom:-l,borderInlineEnd:`1px solid ${t.colorBorder}`,content:'""'},"&-end":{"&:before":{display:"none"}}}},[`${n}-switcher`]:{background:"transparent","&-line-icon":{verticalAlign:"-0.15em"}}},[`${o}-leaf-last`]:{[`${n}-switcher`]:{"&-leaf-line":{"&:before":{top:"auto !important",bottom:"auto !important",height:`${a/2}px !important`}}}}})}},Ts=e=>{const{treeCls:t,treeNodeCls:n,treeNodePadding:o}=e;return{[`${t}${t}-directory`]:{[n]:{position:"relative","&:before":{position:"absolute",top:0,insetInlineEnd:0,bottom:o,insetInlineStart:0,transition:`background-color ${e.motionDurationMid}`,content:'""',pointerEvents:"none"},"&:hover":{"&:before":{background:e.controlItemBgHover}},"> *":{zIndex:1},[`${t}-switcher`]:{transition:`color ${e.motionDurationMid}`},[`${t}-node-content-wrapper`]:{borderRadius:0,userSelect:"none","&:hover":{background:"transparent"},[`&${t}-node-selected`]:{color:e.colorTextLightSolid,background:"transparent"}},"&-selected":{"\n &:hover::before,\n &::before\n ":{background:e.colorPrimary},[`${t}-switcher`]:{color:e.colorTextLightSolid},[`${t}-node-content-wrapper`]:{color:e.colorTextLightSolid,background:"transparent"}}}}}},Ns=(e,t)=>{const n=`.${e}`,o=`${n}-treenode`,l=t.paddingXS/2,a=t.controlHeightSM,r=on(t,{treeCls:n,treeNodeCls:o,treeNodePadding:l,treeTitleHeight:a});return[ks(e,r),Ts(r)]},Ds=nn("Tree",(e,t)=>{let{prefixCls:n}=t;return[{[e.componentCls]:or(`${n}-checkbox`,e)},Ns(n,e),Aa(e)]}),Fl=()=>{const e=hl();return g(g({},e),{showLine:He([Boolean,Object]),multiple:Oe(),autoExpandParent:Oe(),checkStrictly:Oe(),checkable:Oe(),disabled:Oe(),defaultExpandAll:Oe(),defaultExpandParent:Oe(),defaultExpandedKeys:We(),expandedKeys:We(),checkedKeys:He([Array,Object]),defaultCheckedKeys:We(),selectedKeys:We(),defaultSelectedKeys:We(),selectable:Oe(),loadedKeys:We(),draggable:Oe(),showIcon:Oe(),icon:Ie(),switcherIcon:ye.any,prefixCls:String,replaceFields:Ye(),blockNode:Oe(),openAnimation:ye.any,onDoubleclick:e.onDblclick,"onUpdate:selectedKeys":Ie(),"onUpdate:checkedKeys":Ie(),"onUpdate:expandedKeys":Ie()})},Vt=be({compatConfig:{MODE:3},name:"ATree",inheritAttrs:!1,props:$t(Fl(),{checkable:!1,selectable:!0,showIcon:!1,blockNode:!1}),slots:Object,setup(e,t){let{attrs:n,expose:o,emit:l,slots:a}=t;al(!(e.treeData===void 0&&a.default));const{prefixCls:r,direction:i,virtual:s}=St("tree",e),[f,d]=Ds(r),u=$e();o({treeRef:u,onNodeExpand:function(){var c;(c=u.value)===null||c===void 0||c.onNodeExpand(...arguments)},scrollTo:c=>{var p;(p=u.value)===null||p===void 0||p.scrollTo(c)},selectedKeys:w(()=>{var c;return(c=u.value)===null||c===void 0?void 0:c.selectedKeys}),checkedKeys:w(()=>{var c;return(c=u.value)===null||c===void 0?void 0:c.checkedKeys}),halfCheckedKeys:w(()=>{var c;return(c=u.value)===null||c===void 0?void 0:c.halfCheckedKeys}),loadedKeys:w(()=>{var c;return(c=u.value)===null||c===void 0?void 0:c.loadedKeys}),loadingKeys:w(()=>{var c;return(c=u.value)===null||c===void 0?void 0:c.loadingKeys}),expandedKeys:w(()=>{var c;return(c=u.value)===null||c===void 0?void 0:c.expandedKeys})}),ze(()=>{Xe(e.replaceFields===void 0,"Tree","`replaceFields` is deprecated, please use fieldNames instead")});const x=(c,p)=>{l("update:checkedKeys",c),l("check",c,p)},b=(c,p)=>{l("update:expandedKeys",c),l("expand",c,p)},v=(c,p)=>{l("update:selectedKeys",c),l("select",c,p)};return()=>{const{showIcon:c,showLine:p,switcherIcon:$=a.switcherIcon,icon:h=a.icon,blockNode:P,checkable:E,selectable:B,fieldNames:I=e.replaceFields,motion:A=e.openAnimation,itemHeight:C=28,onDoubleclick:O,onDblclick:D}=e,z=g(g(g({},n),_t(e,["onUpdate:checkedKeys","onUpdate:expandedKeys","onUpdate:selectedKeys","onDoubleclick"])),{showLine:!!p,dropIndicatorRender:Os,fieldNames:I,icon:h,itemHeight:C}),F=a.default?Nt(a.default()):void 0;return f(m(hs,Y(Y({},z),{},{virtual:s.value,motion:A,ref:u,prefixCls:r.value,class:ie({[`${r.value}-icon-hide`]:!c,[`${r.value}-block-node`]:P,[`${r.value}-unselectable`]:!B,[`${r.value}-rtl`]:i.value==="rtl"},n.class,d.value),direction:i.value,checkable:E,selectable:B,switcherIcon:Q=>Ps(r.value,$,Q,a.leafIcon,p),onCheck:x,onExpand:b,onSelect:v,onDblclick:D||O,children:F}),g(g({},a),{checkable:()=>m("span",{class:`${r.value}-checkbox-inner`},null)})))}}});var Rs={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"};function Uo(e){for(var t=1;t{if(i===ot.End)return!1;if(s(f)){if(r.push(f),i===ot.None)i=ot.Start;else if(i===ot.Start)return i=ot.End,!1}else i===ot.Start&&r.push(f);return n.includes(f)}),r}function mn(e,t,n){const o=[...t],l=[];return ao(e,n,(a,r)=>{const i=o.indexOf(a);return i!==-1&&(l.push(r),o.splice(i,1)),!!o.length}),l}var As=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var l=0,o=Object.getOwnPropertySymbols(e);lg(g({},Fl()),{expandAction:He([Boolean,String])});function Fs(e){const{isLeaf:t,expanded:n}=e;return t?m(sn,null,null):n?m(wa,null,null):m(lo,null,null)}const hn=be({compatConfig:{MODE:3},name:"ADirectoryTree",inheritAttrs:!1,props:$t(zs(),{showIcon:!0,expandAction:"click"}),slots:Object,setup(e,t){let{attrs:n,slots:o,emit:l,expose:a}=t;var r;const i=$e(e.treeData||On(Nt((r=o.default)===null||r===void 0?void 0:r.call(o))));_e(()=>e.treeData,()=>{i.value=e.treeData}),jn(()=>{pt(()=>{var C;e.treeData===void 0&&o.default&&(i.value=On(Nt((C=o.default)===null||C===void 0?void 0:C.call(o))))})});const s=$e(),f=$e(),d=w(()=>ln(e.fieldNames)),u=$e();a({scrollTo:C=>{var O;(O=u.value)===null||O===void 0||O.scrollTo(C)},selectedKeys:w(()=>{var C;return(C=u.value)===null||C===void 0?void 0:C.selectedKeys}),checkedKeys:w(()=>{var C;return(C=u.value)===null||C===void 0?void 0:C.checkedKeys}),halfCheckedKeys:w(()=>{var C;return(C=u.value)===null||C===void 0?void 0:C.halfCheckedKeys}),loadedKeys:w(()=>{var C;return(C=u.value)===null||C===void 0?void 0:C.loadedKeys}),loadingKeys:w(()=>{var C;return(C=u.value)===null||C===void 0?void 0:C.loadingKeys}),expandedKeys:w(()=>{var C;return(C=u.value)===null||C===void 0?void 0:C.expandedKeys})});const x=()=>{const{keyEntities:C}=Gn(i.value,{fieldNames:d.value});let O;return e.defaultExpandAll?O=Object.keys(C):e.defaultExpandParent?O=Pn(e.expandedKeys||e.defaultExpandedKeys||[],C):O=e.expandedKeys||e.defaultExpandedKeys,O},b=$e(e.selectedKeys||e.defaultSelectedKeys||[]),v=$e(x());_e(()=>e.selectedKeys,()=>{e.selectedKeys!==void 0&&(b.value=e.selectedKeys)},{immediate:!0}),_e(()=>e.expandedKeys,()=>{e.expandedKeys!==void 0&&(v.value=e.expandedKeys)},{immediate:!0});const p=lr((C,O)=>{const{isLeaf:D}=O;D||C.shiftKey||C.metaKey||C.ctrlKey||u.value.onNodeExpand(C,O)},200,{leading:!0}),$=(C,O)=>{e.expandedKeys===void 0&&(v.value=C),l("update:expandedKeys",C),l("expand",C,O)},h=(C,O)=>{const{expandAction:D}=e;D==="click"&&p(C,O),l("click",C,O)},P=(C,O)=>{const{expandAction:D}=e;(D==="dblclick"||D==="doubleclick")&&p(C,O),l("doubleclick",C,O),l("dblclick",C,O)},E=(C,O)=>{const{multiple:D}=e,{node:z,nativeEvent:F}=O,Q=z[d.value.key],le=g(g({},O),{selected:!0}),de=(F==null?void 0:F.ctrlKey)||(F==null?void 0:F.metaKey),me=F==null?void 0:F.shiftKey;let W;D&&de?(W=C,s.value=Q,f.value=W,le.selectedNodes=mn(i.value,W,d.value)):D&&me?(W=Array.from(new Set([...f.value||[],...Bs({treeData:i.value,expandedKeys:v.value,startKey:Q,endKey:s.value,fieldNames:d.value})])),le.selectedNodes=mn(i.value,W,d.value)):(W=[Q],s.value=Q,f.value=W,le.selectedNodes=mn(i.value,W,d.value)),l("update:selectedKeys",W),l("select",W,le),e.selectedKeys===void 0&&(b.value=W)},B=(C,O)=>{l("update:checkedKeys",C),l("check",C,O)},{prefixCls:I,direction:A}=St("tree",e);return()=>{const C=ie(`${I.value}-directory`,{[`${I.value}-directory-rtl`]:A.value==="rtl"},n.class),{icon:O=o.icon,blockNode:D=!0}=e,z=As(e,["icon","blockNode"]);return m(Vt,Y(Y(Y({},n),{},{icon:O||Fs,ref:u,blockNode:D},z),{},{prefixCls:I.value,class:C,expandedKeys:v.value,selectedKeys:b.value,onSelect:E,onClick:h,onDblclick:P,onExpand:$,onCheck:B}),o)}}}),gn=$n,Ms=g(Vt,{DirectoryTree:hn,TreeNode:gn,install:e=>(e.component(Vt.name,Vt),e.component(gn.name,gn),e.component(hn.name,hn),e)});function Go(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;const o=new Set;function l(a,r){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1;const s=o.has(a);if(Fa(!s,"Warning: There may be circular references"),s)return!1;if(a===r)return!0;if(n&&i>1)return!1;o.add(a);const f=i+1;if(Array.isArray(a)){if(!Array.isArray(r)||a.length!==r.length)return!1;for(let d=0;dl(a[u],r[u],f))}return!1}return l(e,t)}const{SubMenu:Ls,Item:js}=Gt;function Hs(e){return e.some(t=>{let{children:n}=t;return n&&n.length>0})}function Ml(e,t){return typeof t=="string"||typeof t=="number"?t==null?void 0:t.toString().toLowerCase().includes(e.trim().toLowerCase()):!1}function Ll(e){let{filters:t,prefixCls:n,filteredKeys:o,filterMultiple:l,searchValue:a,filterSearch:r}=e;return t.map((i,s)=>{const f=String(i.value);if(i.children)return m(Ls,{key:f||s,title:i.text,popupClassName:`${n}-dropdown-submenu`},{default:()=>[Ll({filters:i.children,prefixCls:n,filteredKeys:o,filterMultiple:l,searchValue:a,filterSearch:r})]});const d=l?Jt:cl,u=m(js,{key:i.value!==void 0?f:s},{default:()=>[m(d,{checked:o.includes(f)},null),m("span",null,[i.text])]});return a.trim()?typeof r=="function"?r(a,i)?u:void 0:Ml(a,i.text)?u:void 0:u})}const Ws=be({name:"FilterDropdown",props:["tablePrefixCls","prefixCls","dropdownPrefixCls","column","filterState","filterMultiple","filterMode","filterSearch","columnKey","triggerFilter","locale","getPopupContainer"],setup(e,t){let{slots:n}=t;const o=qn(),l=w(()=>{var R;return(R=e.filterMode)!==null&&R!==void 0?R:"menu"}),a=w(()=>{var R;return(R=e.filterSearch)!==null&&R!==void 0?R:!1}),r=w(()=>e.column.filterDropdownOpen||e.column.filterDropdownVisible),i=w(()=>e.column.onFilterDropdownOpenChange||e.column.onFilterDropdownVisibleChange),s=oe(!1),f=w(()=>{var R;return!!(e.filterState&&(!((R=e.filterState.filteredKeys)===null||R===void 0)&&R.length||e.filterState.forceFiltered))}),d=w(()=>{var R;return cn((R=e.column)===null||R===void 0?void 0:R.filters)}),u=w(()=>{const{filterDropdown:R,slots:H={},customFilterDropdown:M}=e.column;return R||H.filterDropdown&&o.value[H.filterDropdown]||M&&o.value.customFilterDropdown}),y=w(()=>{const{filterIcon:R,slots:H={}}=e.column;return R||H.filterIcon&&o.value[H.filterIcon]||o.value.customFilterIcon}),x=R=>{var H;s.value=R,(H=i.value)===null||H===void 0||H.call(i,R)},b=w(()=>typeof r.value=="boolean"?r.value:s.value),v=w(()=>{var R;return(R=e.filterState)===null||R===void 0?void 0:R.filteredKeys}),c=oe([]),p=R=>{let{selectedKeys:H}=R;c.value=H},$=(R,H)=>{let{node:M,checked:U}=H;e.filterMultiple?p({selectedKeys:R}):p({selectedKeys:U&&M.key?[M.key]:[]})};_e(v,()=>{s.value&&p({selectedKeys:v.value||[]})},{immediate:!0});const h=oe([]),P=oe(),E=R=>{P.value=setTimeout(()=>{h.value=R})},B=()=>{clearTimeout(P.value)};wt(()=>{clearTimeout(P.value)});const I=oe(""),A=R=>{const{value:H}=R.target;I.value=H};_e(s,()=>{s.value||(I.value="")});const C=R=>{const{column:H,columnKey:M,filterState:U}=e,X=R&&R.length?R:null;if(X===null&&(!U||!U.filteredKeys)||Go(X,U==null?void 0:U.filteredKeys,!0))return null;e.triggerFilter({column:H,key:M,filteredKeys:X})},O=()=>{x(!1),C(c.value)},D=function(){let{confirm:R,closeDropdown:H}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{confirm:!1,closeDropdown:!1};R&&C([]),H&&x(!1),I.value="",e.column.filterResetToDefaultFilteredValue?c.value=(e.column.defaultFilteredValue||[]).map(M=>String(M)):c.value=[]},z=function(){let{closeDropdown:R}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{closeDropdown:!0};R&&x(!1),C(c.value)},F=R=>{R&&v.value!==void 0&&(c.value=v.value||[]),x(R),!R&&!u.value&&O()},{direction:Q}=St("",e),le=R=>{if(R.target.checked){const H=d.value;c.value=H}else c.value=[]},de=R=>{let{filters:H}=R;return(H||[]).map((M,U)=>{const X=String(M.value),Se={title:M.text,key:M.value!==void 0?X:U};return M.children&&(Se.children=de({filters:M.children})),Se})},me=R=>{var H;return g(g({},R),{text:R.title,value:R.key,children:((H=R.children)===null||H===void 0?void 0:H.map(M=>me(M)))||[]})},W=w(()=>de({filters:e.column.filters})),J=w(()=>ie({[`${e.dropdownPrefixCls}-menu-without-submenu`]:!Hs(e.column.filters||[])})),L=()=>{const R=c.value,{column:H,locale:M,tablePrefixCls:U,filterMultiple:X,dropdownPrefixCls:Se,getPopupContainer:se,prefixCls:Ee}=e;return(H.filters||[]).length===0?m(so,{image:so.PRESENTED_IMAGE_SIMPLE,description:M.filterEmptyText,imageStyle:{height:24},style:{margin:0,padding:"16px 0"}},null):l.value==="tree"?m(dt,null,[m(Ro,{filterSearch:a.value,value:I.value,onChange:A,tablePrefixCls:U,locale:M},null),m("div",{class:`${U}-filter-dropdown-tree`},[X?m(Jt,{class:`${U}-filter-dropdown-checkall`,onChange:le,checked:R.length===d.value.length,indeterminate:R.length>0&&R.length[M.filterCheckall]}):null,m(Ms,{checkable:!0,selectable:!1,blockNode:!0,multiple:X,checkStrictly:!X,class:`${Se}-menu`,onCheck:$,checkedKeys:R,selectedKeys:R,showIcon:!1,treeData:W.value,autoExpandParent:!0,defaultExpandAll:!0,filterTreeNode:I.value.trim()?ke=>typeof a.value=="function"?a.value(I.value,me(ke)):Ml(I.value,ke.title):void 0},null)])]):m(dt,null,[m(Ro,{filterSearch:a.value,value:I.value,onChange:A,tablePrefixCls:U,locale:M},null),m(Gt,{multiple:X,prefixCls:`${Se}-menu`,class:J.value,onClick:B,onSelect:p,onDeselect:p,selectedKeys:R,getPopupContainer:se,openKeys:h.value,onOpenChange:E},{default:()=>Ll({filters:H.filters||[],filterSearch:a.value,prefixCls:Ee,filteredKeys:c.value,filterMultiple:X,searchValue:I.value})})])},Z=w(()=>{const R=c.value;return e.column.filterResetToDefaultFilteredValue?Go((e.column.defaultFilteredValue||[]).map(H=>String(H)),R,!0):R.length===0});return()=>{var R;const{tablePrefixCls:H,prefixCls:M,column:U,dropdownPrefixCls:X,locale:Se,getPopupContainer:se}=e;let Ee;typeof u.value=="function"?Ee=u.value({prefixCls:`${X}-custom`,setSelectedKeys:Be=>p({selectedKeys:Be}),selectedKeys:c.value,confirm:z,clearFilters:D,filters:U.filters,visible:b.value,column:U.__originColumn__,close:()=>{x(!1)}}):u.value?Ee=u.value:Ee=m(dt,null,[L(),m("div",{class:`${M}-dropdown-btns`},[m(Dt,{type:"link",size:"small",disabled:Z.value,onClick:()=>D()},{default:()=>[Se.filterReset]}),m(Dt,{type:"primary",size:"small",onClick:O},{default:()=>[Se.filterConfirm]})])]);const ke=m(ss,{class:`${M}-dropdown`},{default:()=>[Ee]});let De;return typeof y.value=="function"?De=y.value({filtered:f.value,column:U.__originColumn__}):y.value?De=y.value:De=m(eo,null,null),m("div",{class:`${M}-column`},[m("span",{class:`${H}-column-title`},[(R=n.default)===null||R===void 0?void 0:R.call(n)]),m(ut,{overlay:ke,trigger:["click"],open:b.value,onOpenChange:F,getPopupContainer:se,placement:Q.value==="rtl"?"bottomLeft":"bottomRight"},{default:()=>[m("span",{role:"button",tabindex:-1,class:ie(`${M}-trigger`,{active:f.value}),onClick:Be=>{Be.stopPropagation()}},[De])]})])}}});function Fn(e,t,n){let o=[];return(e||[]).forEach((l,a)=>{var r,i;const s=At(a,n),f=l.filterDropdown||((r=l==null?void 0:l.slots)===null||r===void 0?void 0:r.filterDropdown)||l.customFilterDropdown;if(l.filters||f||"onFilter"in l)if("filteredValue"in l){let d=l.filteredValue;f||(d=(i=d==null?void 0:d.map(String))!==null&&i!==void 0?i:d),o.push({column:l,key:xt(l,s),filteredKeys:d,forceFiltered:l.filtered})}else o.push({column:l,key:xt(l,s),filteredKeys:t&&l.defaultFilteredValue?l.defaultFilteredValue:void 0,forceFiltered:l.filtered});"children"in l&&(o=[...o,...Fn(l.children,t,s)])}),o}function jl(e,t,n,o,l,a,r,i){return n.map((s,f)=>{var d;const u=At(f,i),{filterMultiple:y=!0,filterMode:x,filterSearch:b}=s;let v=s;const c=s.filterDropdown||((d=s==null?void 0:s.slots)===null||d===void 0?void 0:d.filterDropdown)||s.customFilterDropdown;if(v.filters||c){const p=xt(v,u),$=o.find(h=>{let{key:P}=h;return p===P});v=g(g({},v),{title:h=>m(Ws,{tablePrefixCls:e,prefixCls:`${e}-filter`,dropdownPrefixCls:t,column:v,columnKey:p,filterState:$,filterMultiple:y,filterMode:x,filterSearch:b,triggerFilter:a,locale:l,getPopupContainer:r},{default:()=>[Zn(s.title,h)]})})}return"children"in v&&(v=g(g({},v),{children:jl(e,t,v.children,o,l,a,r,u)})),v})}function cn(e){let t=[];return(e||[]).forEach(n=>{let{value:o,children:l}=n;t.push(o),l&&(t=[...t,...cn(l)])}),t}function qo(e){const t={};return e.forEach(n=>{let{key:o,filteredKeys:l,column:a}=n;var r;const i=a.filterDropdown||((r=a==null?void 0:a.slots)===null||r===void 0?void 0:r.filterDropdown)||a.customFilterDropdown,{filters:s}=a;if(i)t[o]=l||null;else if(Array.isArray(l)){const f=cn(s);t[o]=f.filter(d=>l.includes(String(d)))}else t[o]=null}),t}function Yo(e,t){return t.reduce((n,o)=>{const{column:{onFilter:l,filters:a},filteredKeys:r}=o;return l&&r&&r.length?n.filter(i=>r.some(s=>{const f=cn(a),d=f.findIndex(y=>String(y)===String(s)),u=d!==-1?f[d]:s;return l(u,i)})):n},e)}function Hl(e){return e.flatMap(t=>"children"in t?[t,...Hl(t.children||[])]:[t])}function Vs(e){let{prefixCls:t,dropdownPrefixCls:n,mergedColumns:o,locale:l,onFilterChange:a,getPopupContainer:r}=e;const i=w(()=>Hl(o.value)),[s,f]=bt(Fn(i.value,!0)),d=w(()=>{const b=Fn(i.value,!1);if(b.length===0)return b;let v=!0,c=!0;if(b.forEach(p=>{let{filteredKeys:$}=p;$!==void 0?v=!1:c=!1}),v){const p=(i.value||[]).map(($,h)=>xt($,At(h)));return s.value.filter($=>{let{key:h}=$;return p.includes(h)}).map($=>{const h=i.value[p.findIndex(P=>P===$.key)];return g(g({},$),{column:g(g({},$.column),h),forceFiltered:h.filtered})})}return Xe(c,"Table","Columns should all contain `filteredValue` or not contain `filteredValue`."),b}),u=w(()=>qo(d.value)),y=b=>{const v=d.value.filter(c=>{let{key:p}=c;return p!==b.key});v.push(b),f(v),a(qo(v),v)};return[b=>jl(t.value,n.value,b,d.value,l.value,y,r.value),d,u]}function Wl(e,t){return e.map(n=>{const o=g({},n);return o.title=Zn(o.title,t),"children"in o&&(o.children=Wl(o.children,t)),o})}function Xs(e){return[n=>Wl(n,e.value)]}function Us(e){return function(n){let{prefixCls:o,onExpand:l,record:a,expanded:r,expandable:i}=n;const s=`${o}-row-expand-icon`;return m("button",{type:"button",onClick:f=>{l(a,f),f.stopPropagation()},class:ie(s,{[`${s}-spaced`]:!i,[`${s}-expanded`]:i&&r,[`${s}-collapsed`]:i&&!r}),"aria-label":r?e.collapse:e.expand,"aria-expanded":r},null)}}function Vl(e,t){const n=t.value;return e.map(o=>{var l;if(o===nt||o===st)return o;const a=g({},o),{slots:r={}}=a;return a.__originColumn__=o,Xe(!("slots"in a),"Table","`column.slots` is deprecated. Please use `v-slot:headerCell` `v-slot:bodyCell` instead."),Object.keys(r).forEach(i=>{const s=r[i];a[i]===void 0&&n[s]&&(a[i]=n[s])}),t.value.headerCell&&!(!((l=o.slots)===null||l===void 0)&&l.title)&&(a.title=Wn(t.value,"headerCell",{title:o.title,column:o},()=>[o.title])),"children"in a&&Array.isArray(a.children)&&(a.children=Vl(a.children,t)),a})}function Gs(e){return[n=>Vl(n,e)]}const qs=e=>{const{componentCls:t}=e,n=`${e.lineWidth}px ${e.lineType} ${e.tableBorderColor}`,o=(l,a,r)=>({[`&${t}-${l}`]:{[`> ${t}-container`]:{[`> ${t}-content, > ${t}-body`]:{"> table > tbody > tr > td":{[`> ${t}-expanded-row-fixed`]:{margin:`-${a}px -${r+e.lineWidth}px`}}}}}});return{[`${t}-wrapper`]:{[`${t}${t}-bordered`]:g(g(g({[`> ${t}-title`]:{border:n,borderBottom:0},[`> ${t}-container`]:{borderInlineStart:n,[` + > ${t}-content, + > ${t}-header, + > ${t}-body, + > ${t}-summary + `]:{"> table":{"\n > thead > tr > th,\n > tbody > tr > td,\n > tfoot > tr > th,\n > tfoot > tr > td\n ":{borderInlineEnd:n},"> thead":{"> tr:not(:last-child) > th":{borderBottom:n},"> tr > th::before":{backgroundColor:"transparent !important"}},"\n > thead > tr,\n > tbody > tr,\n > tfoot > tr\n ":{[`> ${t}-cell-fix-right-first::after`]:{borderInlineEnd:n}},"> tbody > tr > td":{[`> ${t}-expanded-row-fixed`]:{margin:`-${e.tablePaddingVertical}px -${e.tablePaddingHorizontal+e.lineWidth}px`,"&::after":{position:"absolute",top:0,insetInlineEnd:e.lineWidth,bottom:0,borderInlineEnd:n,content:'""'}}}}},[` + > ${t}-content, + > ${t}-header + `]:{"> table":{borderTop:n}}},[`&${t}-scroll-horizontal`]:{[`> ${t}-container > ${t}-body`]:{"> table > tbody":{[` + > tr${t}-expanded-row, + > tr${t}-placeholder + `]:{"> td":{borderInlineEnd:0}}}}}},o("middle",e.tablePaddingVerticalMiddle,e.tablePaddingHorizontalMiddle)),o("small",e.tablePaddingVerticalSmall,e.tablePaddingHorizontalSmall)),{[`> ${t}-footer`]:{border:n,borderTop:0}}),[`${t}-cell`]:{[`${t}-container:first-child`]:{borderTop:0},"&-scrollbar:not([rowspan])":{boxShadow:`0 ${e.lineWidth}px 0 ${e.lineWidth}px ${e.tableHeaderBg}`}}}}},Ys=e=>{const{componentCls:t}=e;return{[`${t}-wrapper`]:{[`${t}-cell-ellipsis`]:g(g({},ba),{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"}})}}},Js=e=>{const{componentCls:t}=e;return{[`${t}-wrapper`]:{[`${t}-tbody > tr${t}-placeholder`]:{textAlign:"center",color:e.colorTextDisabled,"&:hover > td":{background:e.colorBgContainer}}}}},Qs=e=>{const{componentCls:t,antCls:n,controlInteractiveSize:o,motionDurationSlow:l,lineWidth:a,paddingXS:r,lineType:i,tableBorderColor:s,tableExpandIconBg:f,tableExpandColumnWidth:d,borderRadius:u,fontSize:y,fontSizeSM:x,lineHeight:b,tablePaddingVertical:v,tablePaddingHorizontal:c,tableExpandedRowBg:p,paddingXXS:$}=e,h=o/2-a,P=h*2+a*3,E=`${a}px ${i} ${s}`,B=$-a;return{[`${t}-wrapper`]:{[`${t}-expand-icon-col`]:{width:d},[`${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`]:g(g({},$a(e)),{position:"relative",float:"left",boxSizing:"border-box",width:P,height:P,padding:0,color:"inherit",lineHeight:`${P}px`,background:f,border:E,borderRadius:u,transform:`scale(${o/P})`,transition:`all ${l}`,userSelect:"none","&:focus, &:hover, &:active":{borderColor:"currentcolor"},"&::before, &::after":{position:"absolute",background:"currentcolor",transition:`transform ${l} ease-out`,content:'""'},"&::before":{top:h,insetInlineEnd:B,insetInlineStart:B,height:a},"&::after":{top:B,bottom:B,insetInlineStart:h,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:(y*b-a*3)/2-Math.ceil((x*1.4-a*3)/2),marginInlineEnd:r},[`tr${t}-expanded-row`]:{"&, &:hover":{"> td":{background:p}},[`${n}-descriptions-view`]:{display:"flex",table:{flex:"auto",width:"auto"}}},[`${t}-expanded-row-fixed`]:{position:"relative",margin:`-${v}px -${c}px`,padding:`${v}px ${c}px`}}}},Zs=e=>{const{componentCls:t,antCls:n,iconCls:o,tableFilterDropdownWidth:l,tableFilterDropdownSearchWidth:a,paddingXXS:r,paddingXS:i,colorText:s,lineWidth:f,lineType:d,tableBorderColor:u,tableHeaderIconColor:y,fontSizeSM:x,tablePaddingHorizontal:b,borderRadius:v,motionDurationSlow:c,colorTextDescription:p,colorPrimary:$,tableHeaderFilterActiveBg:h,colorTextDisabled:P,tableFilterDropdownBg:E,tableFilterDropdownHeight:B,controlItemBgHover:I,controlItemBgActive:A,boxShadowSecondary:C}=e,O=`${n}-dropdown`,D=`${t}-filter-dropdown`,z=`${n}-tree`,F=`${f}px ${d} ${u}`;return[{[`${t}-wrapper`]:{[`${t}-filter-column`]:{display:"flex",justifyContent:"space-between"},[`${t}-filter-trigger`]:{position:"relative",display:"flex",alignItems:"center",marginBlock:-r,marginInline:`${r}px ${-b/2}px`,padding:`0 ${r}px`,color:y,fontSize:x,borderRadius:v,cursor:"pointer",transition:`all ${c}`,"&:hover":{color:p,background:h},"&.active":{color:$}}}},{[`${n}-dropdown`]:{[D]:g(g({},Rt(e)),{minWidth:l,backgroundColor:E,borderRadius:v,boxShadow:C,[`${O}-menu`]:{maxHeight:B,overflowX:"hidden",border:0,boxShadow:"none","&:empty::after":{display:"block",padding:`${i}px 0`,color:P,fontSize:x,textAlign:"center",content:'"Not Found"'}},[`${D}-tree`]:{paddingBlock:`${i}px 0`,paddingInline:i,[z]:{padding:0},[`${z}-treenode ${z}-node-content-wrapper:hover`]:{backgroundColor:I},[`${z}-treenode-checkbox-checked ${z}-node-content-wrapper`]:{"&, &:hover":{backgroundColor:A}}},[`${D}-search`]:{padding:i,borderBottom:F,"&-input":{input:{minWidth:a},[o]:{color:P}}},[`${D}-checkall`]:{width:"100%",marginBottom:r,marginInlineStart:r},[`${D}-btns`]:{display:"flex",justifyContent:"space-between",padding:`${i-f}px ${i}px`,overflow:"hidden",backgroundColor:"inherit",borderTop:F}})}},{[`${n}-dropdown ${D}, ${D}-submenu`]:{[`${n}-checkbox-wrapper + span`]:{paddingInlineStart:i,color:s},"> ul":{maxHeight:"calc(100vh - 130px)",overflowX:"hidden",overflowY:"auto"}}}]},ec=e=>{const{componentCls:t,lineWidth:n,colorSplit:o,motionDurationSlow:l,zIndexTableFixed:a,tableBg:r,zIndexTableSticky:i}=e,s=o;return{[`${t}-wrapper`]:{[` + ${t}-cell-fix-left, + ${t}-cell-fix-right + `]:{position:"sticky !important",zIndex:a,background:r},[` + ${t}-cell-fix-left-first::after, + ${t}-cell-fix-left-last::after + `]:{position:"absolute",top:0,right:{_skip_check_:!0,value:0},bottom:-n,width:30,transform:"translateX(100%)",transition:`box-shadow ${l}`,content:'""',pointerEvents:"none"},[`${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:-n,left:{_skip_check_:!0,value:0},width:30,transform:"translateX(-100%)",transition:`box-shadow ${l}`,content:'""',pointerEvents:"none"},[`${t}-container`]:{"&::before, &::after":{position:"absolute",top:0,bottom:0,zIndex:i+1,width:30,transition:`box-shadow ${l}`,content:'""',pointerEvents:"none"},"&::before":{insetInlineStart:0},"&::after":{insetInlineEnd:0}},[`${t}-ping-left`]:{[`&:not(${t}-has-fix-left) ${t}-container`]:{position:"relative","&::before":{boxShadow:`inset 10px 0 8px -8px ${s}`}},[` + ${t}-cell-fix-left-first::after, + ${t}-cell-fix-left-last::after + `]:{boxShadow:`inset 10px 0 8px -8px ${s}`},[`${t}-cell-fix-left-last::before`]:{backgroundColor:"transparent !important"}},[`${t}-ping-right`]:{[`&:not(${t}-has-fix-right) ${t}-container`]:{position:"relative","&::after":{boxShadow:`inset -10px 0 8px -8px ${s}`}},[` + ${t}-cell-fix-right-first::after, + ${t}-cell-fix-right-last::after + `]:{boxShadow:`inset -10px 0 8px -8px ${s}`}}}}},tc=e=>{const{componentCls:t,antCls:n}=e;return{[`${t}-wrapper`]:{[`${t}-pagination${n}-pagination`]:{margin:`${e.margin}px 0`},[`${t}-pagination`]:{display:"flex",flexWrap:"wrap",rowGap:e.paddingXS,"> *":{flex:"none"},"&-left":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-right":{justifyContent:"flex-end"}}}}},nc=e=>{const{componentCls:t,tableRadius:n}=e;return{[`${t}-wrapper`]:{[t]:{[`${t}-title, ${t}-header`]:{borderRadius:`${n}px ${n}px 0 0`},[`${t}-title + ${t}-container`]:{borderStartStartRadius:0,borderStartEndRadius:0,table:{borderRadius:0,"> thead > tr:first-child":{"th:first-child":{borderRadius:0},"th: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 ${n}px ${n}px`}}}}},oc=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`]:{"&::after":{transform:"rotate(-90deg)"},"&-collapsed::before":{transform:"rotate(180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"}}}}},lc=e=>{const{componentCls:t,antCls:n,iconCls:o,fontSizeIcon:l,paddingXS:a,tableHeaderIconColor:r,tableHeaderIconColorHover:i}=e;return{[`${t}-wrapper`]:{[`${t}-selection-col`]:{width:e.tableSelectionColumnWidth},[`${t}-bordered ${t}-selection-col`]:{width:e.tableSelectionColumnWidth+a*2},[` + table tr th${t}-selection-column, + table tr td${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:e.zIndexTableFixed+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:`${e.tablePaddingHorizontal/4}px`,[o]:{color:r,fontSize:l,verticalAlign:"baseline","&:hover":{color:i}}}}}},ac=e=>{const{componentCls:t}=e,n=(o,l,a,r)=>({[`${t}${t}-${o}`]:{fontSize:r,[` + ${t}-title, + ${t}-footer, + ${t}-thead > tr > th, + ${t}-tbody > tr > td, + tfoot > tr > th, + tfoot > tr > td + `]:{padding:`${l}px ${a}px`},[`${t}-filter-trigger`]:{marginInlineEnd:`-${a/2}px`},[`${t}-expanded-row-fixed`]:{margin:`-${l}px -${a}px`},[`${t}-tbody`]:{[`${t}-wrapper:only-child ${t}`]:{marginBlock:`-${l}px`,marginInline:`${e.tableExpandColumnWidth-a}px -${a}px`}},[`${t}-selection-column`]:{paddingInlineStart:`${a/4}px`}}});return{[`${t}-wrapper`]:g(g({},n("middle",e.tablePaddingVerticalMiddle,e.tablePaddingHorizontalMiddle,e.tableFontSizeMiddle)),n("small",e.tablePaddingVerticalSmall,e.tablePaddingHorizontalSmall,e.tableFontSizeSmall))}},rc=e=>{const{componentCls:t}=e;return{[`${t}-wrapper ${t}-resize-handle`]:{position:"absolute",top:0,height:"100% !important",bottom:0,left:" auto !important",right:" -8px",cursor:"col-resize",touchAction:"none",userSelect:"auto",width:"16px",zIndex:1,"&-line":{display:"block",width:"1px",marginLeft:"7px",height:"100% !important",backgroundColor:e.colorPrimary,opacity:0},"&:hover &-line":{opacity:1}},[`${t}-wrapper ${t}-resize-handle.dragging`]:{overflow:"hidden",[`${t}-resize-handle-line`]:{opacity:1},"&:before":{position:"absolute",top:0,bottom:0,content:'" "',width:"200vw",transform:"translateX(-50%)",opacity:0}}}},ic=e=>{const{componentCls:t,marginXXS:n,fontSizeIcon:o,tableHeaderIconColor:l,tableHeaderIconColorHover:a}=e;return{[`${t}-wrapper`]:{[`${t}-thead th${t}-column-has-sorters`]:{outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"&: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},[`${t}-column-sorters`]:{display:"flex",flex:"auto",alignItems:"center",justifyContent:"space-between","&::after":{position:"absolute",inset:0,width:"100%",height:"100%",content:'""'}},[`${t}-column-sorter`]:{marginInlineStart:n,color:l,fontSize:0,transition:`color ${e.motionDurationSlow}`,"&-inner":{display:"inline-flex",flexDirection:"column",alignItems:"center"},"&-up, &-down":{fontSize:o,"&.active":{color:e.colorPrimary}},[`${t}-column-sorter-up + ${t}-column-sorter-down`]:{marginTop:"-0.3em"}},[`${t}-column-sorters:hover ${t}-column-sorter`]:{color:a}}}},sc=e=>{const{componentCls:t,opacityLoading:n,tableScrollThumbBg:o,tableScrollThumbBgHover:l,tableScrollThumbSize:a,tableScrollBg:r,zIndexTableSticky:i}=e,s=`${e.lineWidth}px ${e.lineType} ${e.tableBorderColor}`;return{[`${t}-wrapper`]:{[`${t}-sticky`]:{"&-holder":{position:"sticky",zIndex:i,background:e.colorBgContainer},"&-scroll":{position:"sticky",bottom:0,height:`${a}px !important`,zIndex:i,display:"flex",alignItems:"center",background:r,borderTop:s,opacity:n,"&:hover":{transformOrigin:"center bottom"},"&-bar":{height:a,backgroundColor:o,borderRadius:100,transition:`all ${e.motionDurationSlow}, transform none`,position:"absolute",bottom:0,"&:hover, &-active":{backgroundColor:l}}}}}}},Jo=e=>{const{componentCls:t,lineWidth:n,tableBorderColor:o}=e,l=`${n}px ${e.lineType} ${o}`;return{[`${t}-wrapper`]:{[`${t}-summary`]:{position:"relative",zIndex:e.zIndexTableFixed,background:e.tableBg,"> tr":{"> th, > td":{borderBottom:l}}},[`div${t}-summary`]:{boxShadow:`0 -${n}px 0 ${o}`}}}},cc=e=>{const{componentCls:t,fontWeightStrong:n,tablePaddingVertical:o,tablePaddingHorizontal:l,lineWidth:a,lineType:r,tableBorderColor:i,tableFontSize:s,tableBg:f,tableRadius:d,tableHeaderTextColor:u,motionDurationMid:y,tableHeaderBg:x,tableHeaderCellSplitColor:b,tableRowHoverBg:v,tableSelectedRowBg:c,tableSelectedRowHoverBg:p,tableFooterTextColor:$,tableFooterBg:h,paddingContentVerticalLG:P}=e,E=`${a}px ${r} ${i}`;return{[`${t}-wrapper`]:g(g({clear:"both",maxWidth:"100%"},xa()),{[t]:g(g({},Rt(e)),{fontSize:s,background:f,borderRadius:`${d}px ${d}px 0 0`}),table:{width:"100%",textAlign:"start",borderRadius:`${d}px ${d}px 0 0`,borderCollapse:"separate",borderSpacing:0},[` + ${t}-thead > tr > th, + ${t}-tbody > tr > td, + tfoot > tr > th, + tfoot > tr > td + `]:{position:"relative",padding:`${P}px ${l}px`,overflowWrap:"break-word"},[`${t}-title`]:{padding:`${o}px ${l}px`},[`${t}-thead`]:{"\n > tr > th,\n > tr > td\n ":{position:"relative",color:u,fontWeight:n,textAlign:"start",background:x,borderBottom:E,transition:`background ${y} 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 ${y}`,content:'""'}},"> tr:not(:last-child) > th[colspan]":{borderBottom:0}},[`${t}:not(${t}-bordered)`]:{[`${t}-tbody`]:{"> tr":{"> td":{borderTop:E,borderBottom:"transparent"},"&:last-child > td":{borderBottom:E},[`&:first-child > td, + &${t}-measure-row + tr > td`]:{borderTop:"none",borderTopColor:"transparent"}}}},[`${t}${t}-bordered`]:{[`${t}-tbody`]:{"> tr":{"> td":{borderBottom:E}}}},[`${t}-tbody`]:{"> tr":{"> td":{transition:`background ${y}, border-color ${y}`,[` + > ${t}-wrapper:only-child, + > ${t}-expanded-row-fixed > ${t}-wrapper:only-child + `]:{[t]:{marginBlock:`-${o}px`,marginInline:`${e.tableExpandColumnWidth-l}px -${l}px`,[`${t}-tbody > tr:last-child > td`]:{borderBottom:0,"&:first-child, &:last-child":{borderRadius:0}}}}},[` + &${t}-row:hover > td, + > td${t}-cell-row-hover + `]:{background:v},[`&${t}-row-selected`]:{"> td":{background:c},"&:hover > td":{background:p}}}},[`${t}-footer`]:{padding:`${o}px ${l}px`,color:$,background:h}})}},dc=nn("Table",e=>{const{controlItemBgActive:t,controlItemBgActiveHover:n,colorTextPlaceholder:o,colorTextHeading:l,colorSplit:a,colorBorderSecondary:r,fontSize:i,padding:s,paddingXS:f,paddingSM:d,controlHeight:u,colorFillAlter:y,colorIcon:x,colorIconHover:b,opacityLoading:v,colorBgContainer:c,borderRadiusLG:p,colorFillContent:$,colorFillSecondary:h,controlInteractiveSize:P}=e,E=new Tt(x),B=new Tt(b),I=t,A=2,C=new Tt(h).onBackground(c).toHexString(),O=new Tt($).onBackground(c).toHexString(),D=new Tt(y).onBackground(c).toHexString(),z=on(e,{tableFontSize:i,tableBg:c,tableRadius:p,tablePaddingVertical:s,tablePaddingHorizontal:s,tablePaddingVerticalMiddle:d,tablePaddingHorizontalMiddle:f,tablePaddingVerticalSmall:f,tablePaddingHorizontalSmall:f,tableBorderColor:r,tableHeaderTextColor:l,tableHeaderBg:D,tableFooterTextColor:l,tableFooterBg:D,tableHeaderCellSplitColor:r,tableHeaderSortBg:C,tableHeaderSortHoverBg:O,tableHeaderIconColor:E.clone().setAlpha(E.getAlpha()*v).toRgbString(),tableHeaderIconColorHover:B.clone().setAlpha(B.getAlpha()*v).toRgbString(),tableBodySortBg:D,tableFixedHeaderSortActiveBg:C,tableHeaderFilterActiveBg:$,tableFilterDropdownBg:c,tableRowHoverBg:D,tableSelectedRowBg:I,tableSelectedRowHoverBg:n,zIndexTableFixed:A,zIndexTableSticky:A+1,tableFontSizeMiddle:i,tableFontSizeSmall:i,tableSelectionColumnWidth:u,tableExpandIconBg:c,tableExpandColumnWidth:P+2*e.padding,tableExpandedRowBg:y,tableFilterDropdownWidth:120,tableFilterDropdownHeight:264,tableFilterDropdownSearchWidth:140,tableScrollThumbSize:8,tableScrollThumbBg:o,tableScrollThumbBgHover:l,tableScrollBg:a});return[cc(z),tc(z),Jo(z),ic(z),Zs(z),qs(z),nc(z),Qs(z),Jo(z),Js(z),lc(z),ec(z),sc(z),Ys(z),ac(z),rc(z),oc(z)]}),uc=[],Xl=()=>({prefixCls:lt(),columns:We(),rowKey:He([String,Function]),tableLayout:lt(),rowClassName:He([String,Function]),title:Ie(),footer:Ie(),id:lt(),showHeader:Oe(),components:Ye(),customRow:Ie(),customHeaderRow:Ie(),direction:lt(),expandFixed:He([Boolean,String]),expandColumnWidth:Number,expandedRowKeys:We(),defaultExpandedRowKeys:We(),expandedRowRender:Ie(),expandRowByClick:Oe(),expandIcon:Ie(),onExpand:Ie(),onExpandedRowsChange:Ie(),"onUpdate:expandedRowKeys":Ie(),defaultExpandAllRows:Oe(),indentSize:Number,expandIconColumnIndex:Number,showExpandColumn:Oe(),expandedRowClassName:Ie(),childrenColumnName:lt(),rowExpandable:Ie(),sticky:He([Boolean,Object]),dropdownPrefixCls:String,dataSource:We(),pagination:He([Boolean,Object]),loading:He([Boolean,Object]),size:lt(),bordered:Oe(),locale:Ye(),onChange:Ie(),onResizeColumn:Ie(),rowSelection:Ye(),getPopupContainer:Ie(),scroll:Ye(),sortDirections:We(),showSorterTooltip:He([Boolean,Object],!0),transformCellText:Ie()}),fc=be({name:"InternalTable",inheritAttrs:!1,props:$t(g(g({},Xl()),{contextSlots:Ye()}),{rowKey:"key"}),setup(e,t){let{attrs:n,slots:o,expose:l,emit:a}=t;Xe(!(typeof e.rowKey=="function"&&e.rowKey.length>1),"Table","`index` parameter of `rowKey` function is deprecated. There is no guarantee that it will work as expected."),oi(w(()=>e.contextSlots)),li({onResizeColumn:(V,ue)=>{a("resizeColumn",V,ue)}});const r=ll(),i=w(()=>{const V=new Set(Object.keys(r.value).filter(ue=>r.value[ue]));return e.columns.filter(ue=>!ue.responsive||ue.responsive.some(q=>V.has(q)))}),{size:s,renderEmpty:f,direction:d,prefixCls:u,configProvider:y}=St("table",e),[x,b]=dc(u),v=w(()=>{var V;return e.transformCellText||((V=y.transformCellText)===null||V===void 0?void 0:V.value)}),[c]=tl("Table",Ca.Table,Fe(e,"locale")),p=w(()=>e.dataSource||uc),$=w(()=>y.getPrefixCls("dropdown",e.dropdownPrefixCls)),h=w(()=>e.childrenColumnName||"children"),P=w(()=>p.value.some(V=>V==null?void 0:V[h.value])?"nest":e.expandedRowRender?"row":null),E=ct({body:null}),B=V=>{g(E,V)},I=w(()=>typeof e.rowKey=="function"?e.rowKey:V=>V==null?void 0:V[e.rowKey]),[A]=qi(p,h,I),C={},O=function(V,ue){let q=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;const{pagination:ae,scroll:ce,onChange:Pe}=e,re=g(g({},C),V);q&&(C.resetPagination(),re.pagination.current&&(re.pagination.current=1),ae&&ae.onChange&&ae.onChange(1,re.pagination.pageSize)),ce&&ce.scrollToFirstRowOnChange!==!1&&E.body&&ir(0,{getContainer:()=>E.body}),Pe==null||Pe(re.pagination,re.filters,re.sorter,{currentDataSource:Yo(An(p.value,re.sorterStates,h.value),re.filterStates),action:ue})},D=(V,ue)=>{O({sorter:V,sorterStates:ue},"sort",!1)},[z,F,Q,le]=ls({prefixCls:u,mergedColumns:i,onSorterChange:D,sortDirections:w(()=>e.sortDirections||["ascend","descend"]),tableLocale:c,showSorterTooltip:Fe(e,"showSorterTooltip")}),de=w(()=>An(p.value,F.value,h.value)),me=(V,ue)=>{O({filters:V,filterStates:ue},"filter",!0)},[W,J,L]=Vs({prefixCls:u,locale:c,dropdownPrefixCls:$,mergedColumns:i,onFilterChange:me,getPopupContainer:Fe(e,"getPopupContainer")}),Z=w(()=>Yo(de.value,J.value)),[R]=Gs(Fe(e,"contextSlots")),H=w(()=>{const V={},ue=L.value;return Object.keys(ue).forEach(q=>{ue[q]!==null&&(V[q]=ue[q])}),g(g({},Q.value),{filters:V})}),[M]=Xs(H),U=(V,ue)=>{O({pagination:g(g({},C.pagination),{current:V,pageSize:ue})},"paginate")},[X,Se]=Gi(w(()=>Z.value.length),Fe(e,"pagination"),U);ze(()=>{C.sorter=le.value,C.sorterStates=F.value,C.filters=L.value,C.filterStates=J.value,C.pagination=e.pagination===!1?{}:Ui(X.value,e.pagination),C.resetPagination=Se});const se=w(()=>{if(e.pagination===!1||!X.value.pageSize)return Z.value;const{current:V=1,total:ue,pageSize:q=Nn}=X.value;return Xe(V>0,"Table","`current` should be positive number."),Z.value.lengthq?Z.value.slice((V-1)*q,V*q):Z.value:Z.value.slice((V-1)*q,V*q)});ze(()=>{pt(()=>{const{total:V,pageSize:ue=Nn}=X.value;Z.value.lengthue&&Xe(!1,"Table","`dataSource` length is less than `pagination.total` but large than `pagination.pageSize`. Please make sure your config correct data with async mode.")})},{flush:"post"});const Ee=w(()=>e.showExpandColumn===!1?-1:P.value==="nest"&&e.expandIconColumnIndex===void 0?e.rowSelection?1:0:e.expandIconColumnIndex>0&&e.rowSelection?e.expandIconColumnIndex-1:e.expandIconColumnIndex),ke=$e();_e(()=>e.rowSelection,()=>{ke.value=e.rowSelection?g({},e.rowSelection):e.rowSelection},{deep:!0,immediate:!0});const[De,Be]=Ji(ke,{prefixCls:u,data:Z,pageData:se,getRowKey:I,getRecordByKey:A,expandType:P,childrenColumnName:h,locale:c,getPopupContainer:w(()=>e.getPopupContainer)}),je=(V,ue,q)=>{let ae;const{rowClassName:ce}=e;return typeof ce=="function"?ae=ie(ce(V,ue,q)):ae=ie(ce),ie({[`${u.value}-row-selected`]:Be.value.has(I.value(V,ue))},ae)};l({selectedKeySet:Be});const Te=w(()=>typeof e.indentSize=="number"?e.indentSize:15),Ne=V=>M(De(W(z(R(V)))));return()=>{var V;const{expandIcon:ue=o.expandIcon||Us(c.value),pagination:q,loading:ae,bordered:ce}=e;let Pe,re;if(q!==!1&&(!((V=X.value)===null||V===void 0)&&V.total)){let S;X.value.size?S=X.value.size:S=s.value==="small"||s.value==="middle"?"small":void 0;const k=Ce=>m(Zr,Y(Y({},X.value),{},{class:[`${u.value}-pagination ${u.value}-pagination-${Ce}`,X.value.class],size:S}),null),ee=d.value==="rtl"?"left":"right",{position:fe}=X.value;if(fe!==null&&Array.isArray(fe)){const Ce=fe.find(_=>_.includes("top")),T=fe.find(_=>_.includes("bottom")),N=fe.every(_=>`${_}`=="none");!Ce&&!T&&!N&&(re=k(ee)),Ce&&(Pe=k(Ce.toLowerCase().replace("top",""))),T&&(re=k(T.toLowerCase().replace("bottom","")))}else re=k(ee)}let pe;typeof ae=="boolean"?pe={spinning:ae}:typeof ae=="object"&&(pe=g({spinning:!0},ae));const Ke=ie(`${u.value}-wrapper`,{[`${u.value}-wrapper-rtl`]:d.value==="rtl"},n.class,b.value),K=_t(e,["columns"]);return x(m("div",{class:Ke,style:n.style},[m(nr,Y({spinning:!1},pe),{default:()=>[Pe,m(Vi,Y(Y(Y({},n),K),{},{expandedRowKeys:e.expandedRowKeys,defaultExpandedRowKeys:e.defaultExpandedRowKeys,expandIconColumnIndex:Ee.value,indentSize:Te.value,expandIcon:ue,columns:i.value,direction:d.value,prefixCls:u.value,class:ie({[`${u.value}-middle`]:s.value==="middle",[`${u.value}-small`]:s.value==="small",[`${u.value}-bordered`]:ce,[`${u.value}-empty`]:p.value.length===0}),data:se.value,rowKey:I.value,rowClassName:je,internalHooks:Tn,internalRefs:E,onUpdateInternalRefs:B,transformColumns:Ne,transformCellText:v.value}),g(g({},o),{emptyText:()=>{var S,k;return((S=o.emptyText)===null||S===void 0?void 0:S.call(o))||((k=e.locale)===null||k===void 0?void 0:k.emptyText)||f("Table")}})),re]})]))}}}),yn=be({name:"ATable",inheritAttrs:!1,props:$t(Xl(),{rowKey:"key"}),slots:Object,setup(e,t){let{attrs:n,slots:o,expose:l}=t;const a=$e();return l({table:a}),()=>{var r;const i=e.columns||Bl((r=o.default)===null||r===void 0?void 0:r.call(o));return m(fc,Y(Y(Y({ref:a},n),e),{},{columns:i||[],expandedRowRender:o.expandedRowRender||e.expandedRowRender,contextSlots:g({},o)}),o)}}}),bn=be({name:"ATableColumn",slots:Object,render(){return null}}),xn=be({name:"ATableColumnGroup",slots:Object,__ANT_TABLE_COLUMN_GROUP:!0,render(){return null}}),Mn=Di,Ln=Bi,Cn=g(Ai,{Cell:Ln,Row:Mn,name:"ATableSummary"}),Nc=g(yn,{SELECTION_ALL:Dn,SELECTION_INVERT:Rn,SELECTION_NONE:_n,SELECTION_COLUMN:nt,EXPAND_COLUMN:st,Column:bn,ColumnGroup:xn,Summary:Cn,install:e=>(e.component(Cn.name,Cn),e.component(Ln.name,Ln),e.component(Mn.name,Mn),e.component(yn.name,yn),e.component(bn.name,bn),e.component(xn.name,xn),e)});var pc={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"};function Qo(e){for(var t=1;t1&&arguments[1]!==void 0?arguments[1]:{};const o=[],{label:l,value:i,options:r}=Xt(t,!1);function a(f,u){f.forEach(s=>{const g=s[l];if(u||!(r in s)){const y=s[i];o.push({key:Pt(s,o.length),groupOption:u,data:s,label:g,value:y})}else{let y=g;y===void 0&&n&&(y=s.label),o.push({key:Pt(s,o.length),group:!0,data:s,label:y}),a(s[r],!0)}})}return a(e,!1),o}function nt(e){const t=S({},e);return"props"in t||Object.defineProperty(t,"props",{get(){return t}}),t}function xo(e,t){if(!t||!t.length)return null;let n=!1;function o(i,r){let[a,...f]=r;if(!a)return[i];const u=i.split(a);return n=n||u.length>1,u.reduce((s,g)=>[...s,...o(g,f)],[]).filter(s=>s)}const l=o(e,t);return n?l:null}var Oo=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var l=0,o=Object.getOwnPropertySymbols(e);l{const t=e===!0?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:t,adjustY:1}},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:t,adjustY:1}},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:t,adjustY:1}},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:t,adjustY:1}}}},To=fe({name:"SelectTrigger",inheritAttrs:!1,props:{dropdownAlign:Object,visible:{type:Boolean,default:void 0},disabled:{type:Boolean,default:void 0},dropdownClassName:String,dropdownStyle:C.object,placement:String,empty:{type:Boolean,default:void 0},prefixCls:String,popupClassName:String,animation:String,transitionName:String,getPopupContainer:Function,dropdownRender:Function,containerWidth:Number,dropdownMatchSelectWidth:C.oneOfType([Number,Boolean]).def(!0),popupElement:C.any,direction:String,getTriggerDOMNode:Function,onPopupVisibleChange:Function,onPopupMouseEnter:Function,onPopupFocusin:Function,onPopupFocusout:Function},setup(e,t){let{slots:n,attrs:o,expose:l}=t;const i=V(()=>{const{dropdownMatchSelectWidth:a}=e;return $o(a)}),r=de();return l({getPopupElement:()=>r.value}),()=>{const a=S(S({},e),o),{empty:f=!1}=a,u=Oo(a,["empty"]),{visible:s,dropdownAlign:g,prefixCls:y,popupElement:v,dropdownClassName:p,dropdownStyle:w,direction:I="ltr",placement:x,dropdownMatchSelectWidth:R,containerWidth:N,dropdownRender:P,animation:b,transitionName:D,getPopupContainer:O,getTriggerDOMNode:E,onPopupVisibleChange:L,onPopupMouseEnter:B,onPopupFocusin:_,onPopupFocusout:U}=u,Y=`${y}-dropdown`;let K=v;P&&(K=P({menuNode:v,props:e}));const G=b?`${Y}-${b}`:D,z=S({minWidth:`${N}px`},w);return typeof R=="number"?z.width=`${R}px`:R&&(z.width=`${N}px`),T(Kt,k(k({},e),{},{showAction:L?["click"]:[],hideAction:L?["click"]:[],popupPlacement:x||(I==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:i.value,prefixCls:Y,popupTransitionName:G,popupAlign:g,popupVisible:s,getPopupContainer:O,popupClassName:ue(p,{[`${Y}-empty`]:f}),popupStyle:z,getTriggerDOMNode:E,onPopupVisibleChange:L}),{default:n.default,popup:()=>T("div",{ref:r,onMouseenter:B,onFocusin:_,onFocusout:U},[K])})}}}),Ce=(e,t)=>{let{slots:n}=t;var o;const{class:l,customizeIcon:i,customizeIconProps:r,onMousedown:a,onClick:f}=e;let u;return typeof i=="function"?u=i(r):u=Kn(i)?Ut(i):i,T("span",{class:l,onMousedown:s=>{s.preventDefault(),a&&a(s)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:f,"aria-hidden":!0},[u!==void 0?u:T("span",{class:l.split(/\s+/).map(s=>`${s}-icon`)},[(o=n.default)===null||o===void 0?void 0:o.call(n)])])};Ce.inheritAttrs=!1;Ce.displayName="TransBtn";Ce.props={class:String,customizeIcon:C.any,customizeIconProps:C.any,onMousedown:Function,onClick:Function};const Mo={inputRef:C.any,prefixCls:String,id:String,inputElement:C.VueNode,disabled:{type:Boolean,default:void 0},autofocus:{type:Boolean,default:void 0},autocomplete:String,editable:{type:Boolean,default:void 0},activeDescendantId:String,value:String,open:{type:Boolean,default:void 0},tabindex:C.oneOfType([C.number,C.string]),attrs:C.object,onKeydown:{type:Function},onMousedown:{type:Function},onChange:{type:Function},onPaste:{type:Function},onCompositionstart:{type:Function},onCompositionend:{type:Function},onFocus:{type:Function},onBlur:{type:Function}},qt=fe({compatConfig:{MODE:3},name:"SelectInput",inheritAttrs:!1,props:Mo,setup(e){let t=null;const n=We("VCSelectContainerEvent");return()=>{var o;const{prefixCls:l,id:i,inputElement:r,disabled:a,tabindex:f,autofocus:u,autocomplete:s,editable:g,activeDescendantId:y,value:v,onKeydown:p,onMousedown:w,onChange:I,onPaste:x,onCompositionstart:R,onCompositionend:N,onFocus:P,onBlur:b,open:D,inputRef:O,attrs:E}=e;let L=r||T(so,null,null);const B=L.props||{},{onKeydown:_,onInput:U,onFocus:Y,onBlur:K,onMousedown:G,onCompositionstart:z,onCompositionend:oe,style:ie}=B;return L=ze(L,S(S(S(S(S({type:"search"},B),{id:i,ref:O,disabled:a,tabindex:f,lazy:!1,autocomplete:s||"off",autofocus:u,class:ue(`${l}-selection-search-input`,(o=L==null?void 0:L.props)===null||o===void 0?void 0:o.class),role:"combobox","aria-expanded":D,"aria-haspopup":"listbox","aria-owns":`${i}_list`,"aria-autocomplete":"list","aria-controls":`${i}_list`,"aria-activedescendant":y}),E),{value:g?v:"",readonly:!g,unselectable:g?null:"on",style:S(S({},ie),{opacity:g?null:0}),onKeydown:m=>{p(m),_&&_(m)},onMousedown:m=>{w(m),G&&G(m)},onInput:m=>{I(m),U&&U(m)},onCompositionstart(m){R(m),z&&z(m)},onCompositionend(m){N(m),oe&&oe(m)},onPaste:x,onFocus:function(){clearTimeout(t),Y&&Y(arguments.length<=0?void 0:arguments[0]),P&&P(arguments.length<=0?void 0:arguments[0]),n==null||n.focus(arguments.length<=0?void 0:arguments[0])},onBlur:function(){for(var m=arguments.length,H=new Array(m),M=0;M{K&&K(H[0]),b&&b(H[0]),n==null||n.blur(H[0])},100)}}),L.type==="textarea"?{}:{type:"search"}),!0,!0),L}}}),Po=Symbol("TreeSelectLegacyContextPropsKey");function ut(){return We(Po,{})}const Eo={id:String,prefixCls:String,values:C.array,open:{type:Boolean,default:void 0},searchValue:String,inputRef:C.any,placeholder:C.any,disabled:{type:Boolean,default:void 0},mode:String,showSearch:{type:Boolean,default:void 0},autofocus:{type:Boolean,default:void 0},autocomplete:String,activeDescendantId:String,tabindex:C.oneOfType([C.number,C.string]),compositionStatus:Boolean,removeIcon:C.any,choiceTransitionName:String,maxTagCount:C.oneOfType([C.number,C.string]),maxTagTextLength:Number,maxTagPlaceholder:C.any.def(()=>e=>`+ ${e.length} ...`),tagRender:Function,onToggleOpen:{type:Function},onRemove:Function,onInputChange:Function,onInputPaste:Function,onInputKeyDown:Function,onInputMouseDown:Function,onInputCompositionStart:Function,onInputCompositionEnd:Function},Et=e=>{e.preventDefault(),e.stopPropagation()},Fo=fe({name:"MultipleSelectSelector",inheritAttrs:!1,props:Eo,setup(e){const t=X(),n=X(0),o=X(!1),l=ut(),i=V(()=>`${e.prefixCls}-selection`),r=V(()=>e.open||e.mode==="tags"?e.searchValue:""),a=V(()=>e.mode==="tags"||e.showSearch&&(e.open||o.value)),f=de("");$e(()=>{f.value=r.value}),be(()=>{te(f,()=>{n.value=t.value.scrollWidth},{flush:"post",immediate:!0})});function u(p,w,I,x,R){return T("span",{class:ue(`${i.value}-item`,{[`${i.value}-item-disabled`]:I}),title:typeof p=="string"||typeof p=="number"?p.toString():void 0},[T("span",{class:`${i.value}-item-content`},[w]),x&&T(Ce,{class:`${i.value}-item-remove`,onMousedown:Et,onClick:R,customizeIcon:e.removeIcon},{default:()=>[et("×")]})])}function s(p,w,I,x,R,N){var P;const b=O=>{Et(O),e.onToggleOpen(!open)};let D=N;return l.keyEntities&&(D=((P=l.keyEntities[p])===null||P===void 0?void 0:P.node)||{}),T("span",{key:p,onMousedown:b},[e.tagRender({label:w,value:p,disabled:I,closable:x,onClose:R,option:D})])}function g(p){const{disabled:w,label:I,value:x,option:R}=p,N=!e.disabled&&!w;let P=I;if(typeof e.maxTagTextLength=="number"&&(typeof I=="string"||typeof I=="number")){const D=String(P);D.length>e.maxTagTextLength&&(P=`${D.slice(0,e.maxTagTextLength)}...`)}const b=D=>{var O;D&&D.stopPropagation(),(O=e.onRemove)===null||O===void 0||O.call(e,p)};return typeof e.tagRender=="function"?s(x,P,w,N,b,R):u(I,P,w,N,b)}function y(p){const{maxTagPlaceholder:w=x=>`+ ${x.length} ...`}=e,I=typeof w=="function"?w(p):w;return u(I,I,!1)}const v=p=>{const w=p.target.composing;f.value=p.target.value,w||e.onInputChange(p)};return()=>{const{id:p,prefixCls:w,values:I,open:x,inputRef:R,placeholder:N,disabled:P,autofocus:b,autocomplete:D,activeDescendantId:O,tabindex:E,compositionStatus:L,onInputPaste:B,onInputKeyDown:_,onInputMouseDown:U,onInputCompositionStart:Y,onInputCompositionEnd:K}=e,G=T("div",{class:`${i.value}-search`,style:{width:n.value+"px"},key:"input"},[T(qt,{inputRef:R,open:x,prefixCls:w,id:p,inputElement:null,disabled:P,autofocus:b,autocomplete:D,editable:a.value,activeDescendantId:O,value:f.value,onKeydown:_,onMousedown:U,onChange:v,onPaste:B,onCompositionstart:Y,onCompositionend:K,tabindex:E,attrs:st(e,!0),onFocus:()=>o.value=!0,onBlur:()=>o.value=!1},null),T("span",{ref:t,class:`${i.value}-search-mirror`,"aria-hidden":!0},[f.value,et(" ")])]),z=T(mo,{prefixCls:`${i.value}-overflow`,data:I,renderItem:g,renderRest:y,suffix:G,itemKey:"key",maxCount:e.maxTagCount,key:"overflow"},null);return T(Te,null,[z,!I.length&&!r.value&&!L&&T("span",{class:`${i.value}-placeholder`},[N])])}}}),Do={inputElement:C.any,id:String,prefixCls:String,values:C.array,open:{type:Boolean,default:void 0},searchValue:String,inputRef:C.any,placeholder:C.any,compositionStatus:{type:Boolean,default:void 0},disabled:{type:Boolean,default:void 0},mode:String,showSearch:{type:Boolean,default:void 0},autofocus:{type:Boolean,default:void 0},autocomplete:String,activeDescendantId:String,tabindex:C.oneOfType([C.number,C.string]),activeValue:String,backfill:{type:Boolean,default:void 0},optionLabelRender:Function,onInputChange:Function,onInputPaste:Function,onInputKeyDown:Function,onInputMouseDown:Function,onInputCompositionStart:Function,onInputCompositionEnd:Function},ct=fe({name:"SingleSelector",setup(e){const t=X(!1),n=V(()=>e.mode==="combobox"),o=V(()=>n.value||e.showSearch),l=V(()=>{let s=e.searchValue||"";return n.value&&e.activeValue&&!t.value&&(s=e.activeValue),s}),i=ut();te([n,()=>e.activeValue],()=>{n.value&&(t.value=!1)},{immediate:!0});const r=V(()=>e.mode!=="combobox"&&!e.open&&!e.showSearch?!1:!!l.value||e.compositionStatus),a=V(()=>{const s=e.values[0];return s&&(typeof s.label=="string"||typeof s.label=="number")?s.label.toString():void 0}),f=()=>{if(e.values[0])return null;const s=r.value?{visibility:"hidden"}:void 0;return T("span",{class:`${e.prefixCls}-selection-placeholder`,style:s},[e.placeholder])},u=s=>{s.target.composing||(t.value=!0,e.onInputChange(s))};return()=>{var s,g,y,v;const{inputElement:p,prefixCls:w,id:I,values:x,inputRef:R,disabled:N,autofocus:P,autocomplete:b,activeDescendantId:D,open:O,tabindex:E,optionLabelRender:L,onInputKeyDown:B,onInputMouseDown:_,onInputPaste:U,onInputCompositionStart:Y,onInputCompositionEnd:K}=e,G=x[0];let z=null;if(G&&i.customSlots){const oe=(s=G.key)!==null&&s!==void 0?s:G.value,ie=((g=i.keyEntities[oe])===null||g===void 0?void 0:g.node)||{};z=i.customSlots[(y=ie.slots)===null||y===void 0?void 0:y.title]||i.customSlots.title||G.label,typeof z=="function"&&(z=z(ie))}else z=L&&G?L(G.option):G==null?void 0:G.label;return T(Te,null,[T("span",{class:`${w}-selection-search`},[T(qt,{inputRef:R,prefixCls:w,id:I,open:O,inputElement:p,disabled:N,autofocus:P,autocomplete:b,editable:o.value,activeDescendantId:D,value:l.value,onKeydown:B,onMousedown:_,onChange:u,onPaste:U,onCompositionstart:Y,onCompositionend:K,tabindex:E,attrs:st(e,!0)},null)]),!n.value&&G&&!r.value&&T("span",{class:`${w}-selection-item`,title:a.value},[T(Te,{key:(v=G.key)!==null&&v!==void 0?v:G.value},[z])]),f()])}}});ct.props=Do;ct.inheritAttrs=!1;function Ro(e){return![A.ESC,A.SHIFT,A.BACKSPACE,A.TAB,A.WIN_KEY,A.ALT,A.META,A.WIN_KEY_RIGHT,A.CTRL,A.SEMICOLON,A.EQUALS,A.CAPS_LOCK,A.CONTEXT_MENU,A.F1,A.F2,A.F3,A.F4,A.F5,A.F6,A.F7,A.F8,A.F9,A.F10,A.F11,A.F12].includes(e)}function Qt(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,t=null,n;Ne(()=>{clearTimeout(n)});function o(l){(l||t===null)&&(t=l),clearTimeout(n),n=setTimeout(()=>{t=null},e)}return[()=>t,o]}function Re(){const e=t=>{e.current=t};return e}const Vo=fe({name:"Selector",inheritAttrs:!1,props:{id:String,prefixCls:String,showSearch:{type:Boolean,default:void 0},open:{type:Boolean,default:void 0},values:C.array,multiple:{type:Boolean,default:void 0},mode:String,searchValue:String,activeValue:String,inputElement:C.any,autofocus:{type:Boolean,default:void 0},activeDescendantId:String,tabindex:C.oneOfType([C.number,C.string]),disabled:{type:Boolean,default:void 0},placeholder:C.any,removeIcon:C.any,maxTagCount:C.oneOfType([C.number,C.string]),maxTagTextLength:Number,maxTagPlaceholder:C.any,tagRender:Function,optionLabelRender:Function,tokenWithEnter:{type:Boolean,default:void 0},choiceTransitionName:String,onToggleOpen:{type:Function},onSearch:Function,onSearchSubmit:Function,onRemove:Function,onInputKeyDown:{type:Function},domRef:Function},setup(e,t){let{expose:n}=t;const o=Re(),l=de(!1),[i,r]=Qt(0),a=x=>{const{which:R}=x;(R===A.UP||R===A.DOWN)&&x.preventDefault(),e.onInputKeyDown&&e.onInputKeyDown(x),R===A.ENTER&&e.mode==="tags"&&!l.value&&!e.open&&e.onSearchSubmit(x.target.value),Ro(R)&&e.onToggleOpen(!0)},f=()=>{r(!0)};let u=null;const s=x=>{e.onSearch(x,!0,l.value)!==!1&&e.onToggleOpen(!0)},g=()=>{l.value=!0},y=x=>{l.value=!1,e.mode!=="combobox"&&s(x.target.value)},v=x=>{let{target:{value:R}}=x;if(e.tokenWithEnter&&u&&/[\r\n]/.test(u)){const N=u.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");R=R.replace(N,u)}u=null,s(R)},p=x=>{const{clipboardData:R}=x;u=R.getData("text")},w=x=>{let{target:R}=x;R!==o.current&&(document.body.style.msTouchAction!==void 0?setTimeout(()=>{o.current.focus()}):o.current.focus())},I=x=>{const R=i();x.target!==o.current&&!R&&x.preventDefault(),(e.mode!=="combobox"&&(!e.showSearch||!R)||!e.open)&&(e.open&&e.onSearch("",!0,!1),e.onToggleOpen())};return n({focus:()=>{o.current.focus()},blur:()=>{o.current.blur()}}),()=>{const{prefixCls:x,domRef:R,mode:N}=e,P={inputRef:o,onInputKeyDown:a,onInputMouseDown:f,onInputChange:v,onInputPaste:p,compositionStatus:l.value,onInputCompositionStart:g,onInputCompositionEnd:y},b=N==="multiple"||N==="tags"?T(Fo,k(k({},e),P),null):T(ct,k(k({},e),P),null);return T("div",{ref:R,class:`${x}-selector`,onClick:w,onMousedown:I},[b])}}});function No(e,t,n){function o(l){var i,r,a;let f=l.target;f.shadowRoot&&l.composed&&(f=l.composedPath()[0]||f);const u=[(i=e[0])===null||i===void 0?void 0:i.value,(a=(r=e[1])===null||r===void 0?void 0:r.value)===null||a===void 0?void 0:a.getPopupElement()];t.value&&u.every(s=>s&&!s.contains(f)&&s!==f)&&n(!1)}be(()=>{window.addEventListener("mousedown",o)}),Ne(()=>{window.removeEventListener("mousedown",o)})}function Ho(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10;const t=X(!1);let n;const o=()=>{clearTimeout(n)};return be(()=>{o()}),[t,(i,r)=>{o(),n=setTimeout(()=>{t.value=i,r&&r()},e)},o]}const Zt=Symbol("BaseSelectContextKey");function Lo(e){return lt(Zt,e)}function _o(){return We(Zt,{})}const Ao=()=>{if(typeof navigator>"u"||typeof window>"u")return!1;const 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==null?void 0:e.substring(0,4))};function Jt(e){if(!Wn(e))return Me(e);const t=new Proxy({},{get(n,o,l){return Reflect.get(e.value,o,l)},set(n,o,l){return e.value[o]=l,!0},deleteProperty(n,o){return Reflect.deleteProperty(e.value,o)},has(n,o){return Reflect.has(e.value,o)},ownKeys(){return Object.keys(e.value)},getOwnPropertyDescriptor(){return{enumerable:!0,configurable:!0}}});return Me(t)}var Bo=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var l=0,o=Object.getOwnPropertySymbols(e);l({prefixCls:String,id:String,omitDomProps:Array,displayValues:Array,onDisplayValuesChange:Function,activeValue:String,activeDescendantId:String,onActiveValueChange:Function,searchValue:String,onSearch:Function,onSearchSplit:Function,maxLength:Number,OptionList:C.any,emptyOptions:Boolean}),kt=()=>({showSearch:{type:Boolean,default:void 0},tagRender:{type:Function},optionLabelRender:{type:Function},direction:{type:String},tabindex:Number,autofocus:Boolean,notFoundContent:C.any,placeholder:C.any,onClear:Function,choiceTransitionName:String,mode:String,disabled:{type:Boolean,default:void 0},loading:{type:Boolean,default:void 0},open:{type:Boolean,default:void 0},defaultOpen:{type:Boolean,default:void 0},onDropdownVisibleChange:{type:Function},getInputElement:{type:Function},getRawInputElement:{type:Function},maxTagTextLength:Number,maxTagCount:{type:[String,Number]},maxTagPlaceholder:C.any,tokenSeparators:{type:Array},allowClear:{type:Boolean,default:void 0},showArrow:{type:Boolean,default:void 0},inputIcon:C.any,clearIcon:C.any,removeIcon:C.any,animation:String,transitionName:String,dropdownStyle:{type:Object},dropdownClassName:String,dropdownMatchSelectWidth:{type:[Boolean,Number],default:void 0},dropdownRender:{type:Function},dropdownAlign:Object,placement:{type:String},getPopupContainer:{type:Function},showAction:{type:Array},onBlur:{type:Function},onFocus:{type:Function},onKeyup:Function,onKeydown:Function,onMousedown:Function,onPopupScroll:Function,onInputKeyDown:Function,onMouseenter:Function,onMouseleave:Function,onClick:Function}),Wo=()=>S(S({},Ko()),kt());function en(e){return e==="tags"||e==="multiple"}const jo=fe({compatConfig:{MODE:3},name:"BaseSelect",inheritAttrs:!1,props:ot(Wo(),{showAction:[],notFoundContent:"Not Found"}),setup(e,t){let{attrs:n,expose:o,slots:l}=t;const i=V(()=>en(e.mode)),r=V(()=>e.showSearch!==void 0?e.showSearch:i.value||e.mode==="combobox"),a=X(!1);be(()=>{a.value=Ao()});const f=ut(),u=X(null),s=Re(),g=X(null),y=X(null),v=X(null),p=de(!1),[w,I,x]=Ho();o({focus:()=>{var c;(c=y.value)===null||c===void 0||c.focus()},blur:()=>{var c;(c=y.value)===null||c===void 0||c.blur()},scrollTo:c=>{var d;return(d=v.value)===null||d===void 0?void 0:d.scrollTo(c)}});const P=V(()=>{var c;if(e.mode!=="combobox")return e.searchValue;const d=(c=e.displayValues[0])===null||c===void 0?void 0:c.value;return typeof d=="string"||typeof d=="number"?String(d):""}),b=e.open!==void 0?e.open:e.defaultOpen,D=X(b),O=X(b),E=c=>{D.value=e.open!==void 0?e.open:c,O.value=D.value};te(()=>e.open,()=>{E(e.open)});const L=V(()=>!e.notFoundContent&&e.emptyOptions);$e(()=>{O.value=D.value,(e.disabled||L.value&&O.value&&e.mode==="combobox")&&(O.value=!1)});const B=V(()=>L.value?!1:O.value),_=c=>{const d=c!==void 0?c:!O.value;O.value!==d&&!e.disabled&&(E(d),e.onDropdownVisibleChange&&e.onDropdownVisibleChange(d),!d&&W.value&&(W.value=!1,I(!1,()=>{H.value=!1,p.value=!1})))},U=V(()=>(e.tokenSeparators||[]).some(c=>[` +`,`\r +`].includes(c))),Y=(c,d,F)=>{var $,j;let Q=!0,Z=c;($=e.onActiveValueChange)===null||$===void 0||$.call(e,null);const J=F?null:xo(c,e.tokenSeparators);return e.mode!=="combobox"&&J&&(Z="",(j=e.onSearchSplit)===null||j===void 0||j.call(e,J),_(!1),Q=!1),e.onSearch&&P.value!==Z&&e.onSearch(Z,{source:d?"typing":"effect"}),Q},K=c=>{var d;!c||!c.trim()||(d=e.onSearch)===null||d===void 0||d.call(e,c,{source:"submit"})};te(O,()=>{!O.value&&!i.value&&e.mode!=="combobox"&&Y("",!1,!1)},{immediate:!0,flush:"post"}),te(()=>e.disabled,()=>{D.value&&e.disabled&&E(!1),e.disabled&&!p.value&&I(!1)},{immediate:!0});const[G,z]=Qt(),oe=function(c){var d;const F=G(),{which:$}=c;if($===A.ENTER&&(e.mode!=="combobox"&&c.preventDefault(),O.value||_(!0)),z(!!P.value),$===A.BACKSPACE&&!F&&i.value&&!P.value&&e.displayValues.length){const J=[...e.displayValues];let q=null;for(let le=J.length-1;le>=0;le-=1){const ae=J[le];if(!ae.disabled){J.splice(le,1),q=ae;break}}q&&e.onDisplayValuesChange(J,{type:"remove",values:[q]})}for(var j=arguments.length,Q=new Array(j>1?j-1:0),Z=1;Z1?d-1:0),$=1;${const d=e.displayValues.filter(F=>F!==c);e.onDisplayValuesChange(d,{type:"remove",values:[c]})},H=X(!1),M=function(){I(!0),e.disabled||(e.onFocus&&!H.value&&e.onFocus(...arguments),e.showAction&&e.showAction.includes("focus")&&_(!0)),H.value=!0},W=de(!1),ne=function(){if(W.value||(p.value=!0,I(!1,()=>{H.value=!1,p.value=!1,_(!1)}),e.disabled))return;const c=P.value;c&&(e.mode==="tags"?e.onSearch(c,{source:"submit"}):e.mode==="multiple"&&e.onSearch("",{source:"blur"})),e.onBlur&&e.onBlur(...arguments)},re=()=>{W.value=!0},se=()=>{W.value=!1};lt("VCSelectContainerEvent",{focus:M,blur:ne});const ee=[];be(()=>{ee.forEach(c=>clearTimeout(c)),ee.splice(0,ee.length)}),Ne(()=>{ee.forEach(c=>clearTimeout(c)),ee.splice(0,ee.length)});const ce=function(c){var d,F;const{target:$}=c,j=(d=g.value)===null||d===void 0?void 0:d.getPopupElement();if(j&&j.contains($)){const q=setTimeout(()=>{var le;const ae=ee.indexOf(q);ae!==-1&&ee.splice(ae,1),x(),!a.value&&!j.contains(document.activeElement)&&((le=y.value)===null||le===void 0||le.focus())});ee.push(q)}for(var Q=arguments.length,Z=new Array(Q>1?Q-1:0),J=1;J{};return be(()=>{te(B,()=>{var c;if(B.value){const d=Math.ceil((c=u.value)===null||c===void 0?void 0:c.offsetWidth);pe.value!==d&&!Number.isNaN(d)&&(pe.value=d)}},{immediate:!0,flush:"post"})}),No([u,g],B,_),Lo(Jt(S(S({},jn(e)),{open:O,triggerOpen:B,showSearch:r,multiple:i,toggleOpen:_}))),()=>{const c=S(S({},e),n),{prefixCls:d,id:F,open:$,defaultOpen:j,mode:Q,showSearch:Z,searchValue:J,onSearch:q,allowClear:le,clearIcon:ae,showArrow:He,inputIcon:Le,disabled:Pe,loading:_e,getInputElement:gt,getPopupContainer:fn,placement:pn,animation:mn,transitionName:vn,dropdownStyle:gn,dropdownClassName:hn,dropdownMatchSelectWidth:bn,dropdownRender:yn,dropdownAlign:Sn,showAction:Si,direction:wn,tokenSeparators:wi,tagRender:Cn,optionLabelRender:In,onPopupScroll:Ci,onDropdownVisibleChange:Ii,onFocus:xi,onBlur:Oi,onKeyup:$i,onKeydown:Ti,onMousedown:Mi,onClear:Ge,omitDomProps:Ye,getRawInputElement:ht,displayValues:Ae,onDisplayValuesChange:xn,emptyOptions:On,activeDescendantId:$n,activeValue:Tn,OptionList:Mn}=c,Pn=Bo(c,["prefixCls","id","open","defaultOpen","mode","showSearch","searchValue","onSearch","allowClear","clearIcon","showArrow","inputIcon","disabled","loading","getInputElement","getPopupContainer","placement","animation","transitionName","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","showAction","direction","tokenSeparators","tagRender","optionLabelRender","onPopupScroll","onDropdownVisibleChange","onFocus","onBlur","onKeyup","onKeydown","onMousedown","onClear","omitDomProps","getRawInputElement","displayValues","onDisplayValuesChange","emptyOptions","activeDescendantId","activeValue","OptionList"]),bt=Q==="combobox"&>&>()||null,Ee=typeof ht=="function"&&ht(),Xe=S({},Pn);let yt;Ee&&(yt=we=>{_(we)}),zo.forEach(we=>{delete Xe[we]}),Ye==null||Ye.forEach(we=>{delete Xe[we]});const St=He!==void 0?He:_e||!i.value&&Q!=="combobox";let wt;St&&(wt=T(Ce,{class:ue(`${d}-arrow`,{[`${d}-arrow-loading`]:_e}),customizeIcon:Le,customizeIconProps:{loading:_e,searchValue:P.value,open:O.value,focused:w.value,showSearch:r.value}},null));let Ct;const En=()=>{Ge==null||Ge(),xn([],{type:"clear",values:Ae}),Y("",!1,!1)};!Pe&&le&&(Ae.length||P.value)&&(Ct=T(Ce,{class:`${d}-clear`,onMousedown:En,customizeIcon:ae},{default:()=>[et("×")]}));const Fn=T(Mn,{ref:v},S(S({},f.customSlots),{option:l.option})),Dn=ue(d,n.class,{[`${d}-focused`]:w.value,[`${d}-multiple`]:i.value,[`${d}-single`]:!i.value,[`${d}-allow-clear`]:le,[`${d}-show-arrow`]:St,[`${d}-disabled`]:Pe,[`${d}-loading`]:_e,[`${d}-open`]:O.value,[`${d}-customize-input`]:bt,[`${d}-show-search`]:r.value}),It=T(To,{ref:g,disabled:Pe,prefixCls:d,visible:B.value,popupElement:Fn,containerWidth:pe.value,animation:mn,transitionName:vn,dropdownStyle:gn,dropdownClassName:hn,direction:wn,dropdownMatchSelectWidth:bn,dropdownRender:yn,dropdownAlign:Sn,placement:pn,getPopupContainer:fn,empty:On,getTriggerDOMNode:()=>s.current,onPopupVisibleChange:yt,onPopupMouseEnter:h,onPopupFocusin:re,onPopupFocusout:se},{default:()=>Ee?it(Ee)&&ze(Ee,{ref:s},!1,!0):T(Vo,k(k({},e),{},{domRef:s,prefixCls:d,inputElement:bt,ref:y,id:F,showSearch:r.value,mode:Q,activeDescendantId:$n,tagRender:Cn,optionLabelRender:In,values:Ae,open:O.value,onToggleOpen:_,activeValue:Tn,searchValue:P.value,onSearch:Y,onSearchSubmit:K,onRemove:m,tokenWithEnter:U.value}),null)});let qe;return Ee?qe=It:qe=T("div",k(k({},Xe),{},{class:Dn,ref:u,onMousedown:ce,onKeydown:oe,onKeyup:ie}),[w.value&&!O.value&&T("span",{style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0},"aria-live":"polite"},[`${Ae.map(we=>{let{label:xt,value:Rn}=we;return["number","string"].includes(typeof xt)?xt:Rn}).join(", ")}`]),It,wt,Ct]),qe}}}),Ue=(e,t)=>{let{height:n,offset:o,prefixCls:l,onInnerResize:i}=e,{slots:r}=t;var a;let f={},u={display:"flex",flexDirection:"column"};return o!==void 0&&(f={height:`${n}px`,position:"relative",overflow:"hidden"},u=S(S({},u),{transform:`translateY(${o}px)`,position:"absolute",left:0,right:0,top:0})),T("div",{style:f},[T(Vn,{onResize:s=>{let{offsetHeight:g}=s;g&&i&&i()}},{default:()=>[T("div",{style:u,class:ue({[`${l}-holder-inner`]:l})},[(a=r.default)===null||a===void 0?void 0:a.call(r)])]})])};Ue.displayName="Filter";Ue.inheritAttrs=!1;Ue.props={prefixCls:String,height:Number,offset:Number,onInnerResize:Function};const tn=(e,t)=>{let{setRef:n}=e,{slots:o}=t;var l;const i=Gt((l=o.default)===null||l===void 0?void 0:l.call(o));return i&&i.length?Ut(i[0],{ref:n}):i};tn.props={setRef:{type:Function,default:()=>{}}};const Uo=20;function Ft(e){return"touches"in e?e.touches[0].pageY:e.pageY}const Go=fe({compatConfig:{MODE:3},name:"ScrollBar",inheritAttrs:!1,props:{prefixCls:String,scrollTop:Number,scrollHeight:Number,height:Number,count:Number,onScroll:{type:Function},onStartMove:{type:Function},onStopMove:{type:Function}},setup(){return{moveRaf:null,scrollbarRef:Re(),thumbRef:Re(),visibleTimeout:null,state:Me({dragging:!1,pageY:null,startTop:null,visible:!1})}},watch:{scrollTop:{handler(){this.delayHidden()},flush:"post"}},mounted(){var e,t;(e=this.scrollbarRef.current)===null||e===void 0||e.addEventListener("touchstart",this.onScrollbarTouchStart,he?{passive:!1}:!1),(t=this.thumbRef.current)===null||t===void 0||t.addEventListener("touchstart",this.onMouseDown,he?{passive:!1}:!1)},beforeUnmount(){this.removeEvents(),clearTimeout(this.visibleTimeout)},methods:{delayHidden(){clearTimeout(this.visibleTimeout),this.state.visible=!0,this.visibleTimeout=setTimeout(()=>{this.state.visible=!1},2e3)},onScrollbarTouchStart(e){e.preventDefault()},onContainerMouseDown(e){e.stopPropagation(),e.preventDefault()},patchEvents(){window.addEventListener("mousemove",this.onMouseMove),window.addEventListener("mouseup",this.onMouseUp),this.thumbRef.current.addEventListener("touchmove",this.onMouseMove,he?{passive:!1}:!1),this.thumbRef.current.addEventListener("touchend",this.onMouseUp)},removeEvents(){window.removeEventListener("mousemove",this.onMouseMove),window.removeEventListener("mouseup",this.onMouseUp),this.scrollbarRef.current.removeEventListener("touchstart",this.onScrollbarTouchStart,he?{passive:!1}:!1),this.thumbRef.current&&(this.thumbRef.current.removeEventListener("touchstart",this.onMouseDown,he?{passive:!1}:!1),this.thumbRef.current.removeEventListener("touchmove",this.onMouseMove,he?{passive:!1}:!1),this.thumbRef.current.removeEventListener("touchend",this.onMouseUp)),ve.cancel(this.moveRaf)},onMouseDown(e){const{onStartMove:t}=this.$props;S(this.state,{dragging:!0,pageY:Ft(e),startTop:this.getTop()}),t(),this.patchEvents(),e.stopPropagation(),e.preventDefault()},onMouseMove(e){const{dragging:t,pageY:n,startTop:o}=this.state,{onScroll:l}=this.$props;if(ve.cancel(this.moveRaf),t){const i=Ft(e)-n,r=o+i,a=this.getEnableScrollRange(),f=this.getEnableHeightRange(),u=f?r/f:0,s=Math.ceil(u*a);this.moveRaf=ve(()=>{l(s)})}},onMouseUp(){const{onStopMove:e}=this.$props;this.state.dragging=!1,e(),this.removeEvents()},getSpinHeight(){const{height:e,scrollHeight:t}=this.$props;let n=e/t*100;return n=Math.max(n,Uo),n=Math.min(n,e/2),Math.floor(n)},getEnableScrollRange(){const{scrollHeight:e,height:t}=this.$props;return e-t||0},getEnableHeightRange(){const{height:e}=this.$props,t=this.getSpinHeight();return e-t||0},getTop(){const{scrollTop:e}=this.$props,t=this.getEnableScrollRange(),n=this.getEnableHeightRange();return e===0||t===0?0:e/t*n},showScroll(){const{height:e,scrollHeight:t}=this.$props;return t>e}},render(){const{dragging:e,visible:t}=this.state,{prefixCls:n}=this.$props,o=this.getSpinHeight()+"px",l=this.getTop()+"px",i=this.showScroll(),r=i&&t;return T("div",{ref:this.scrollbarRef,class:ue(`${n}-scrollbar`,{[`${n}-scrollbar-show`]:i}),style:{width:"8px",top:0,bottom:0,right:0,position:"absolute",display:r?void 0:"none"},onMousedown:this.onContainerMouseDown,onMousemove:this.delayHidden},[T("div",{ref:this.thumbRef,class:ue(`${n}-scrollbar-thumb`,{[`${n}-scrollbar-thumb-moving`]:e}),style:{width:"100%",height:o,top:l,left:0,position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:"99px",cursor:"pointer",userSelect:"none"},onMousedown:this.onMouseDown},null)])}});function Yo(e,t,n,o){const l=new Map,i=new Map,r=de(Symbol("update"));te(e,()=>{r.value=Symbol("update")});let a;function f(){ve.cancel(a)}function u(){f(),a=ve(()=>{l.forEach((g,y)=>{if(g&&g.offsetParent){const{offsetHeight:v}=g;i.get(y)!==v&&(r.value=Symbol("update"),i.set(y,g.offsetHeight))}})})}function s(g,y){const v=t(g);l.get(v),y?(l.set(v,y.$el||y),u()):l.delete(v)}return Un(()=>{f()}),[s,u,i,r]}function Xo(e,t,n,o,l,i,r,a){let f;return u=>{if(u==null){a();return}ve.cancel(f);const s=t.value,g=o.itemHeight;if(typeof u=="number")r(u);else if(u&&typeof u=="object"){let y;const{align:v}=u;"index"in u?{index:y}=u:y=s.findIndex(I=>l(I)===u.key);const{offset:p=0}=u,w=(I,x)=>{if(I<0||!e.value)return;const R=e.value.clientHeight;let N=!1,P=x;if(R){const b=x||v;let D=0,O=0,E=0;const L=Math.min(s.length,y);for(let U=0;U<=L;U+=1){const Y=l(s[U]);O=D;const K=n.get(Y);E=O+(K===void 0?g:K),D=E,U===y&&K===void 0&&(N=!0)}const B=e.value.scrollTop;let _=null;switch(b){case"top":_=O-p;break;case"bottom":_=E-R+p;break;default:{const U=B+R;OU&&(P="bottom")}}_!==null&&_!==B&&r(_)}f=ve(()=>{N&&i(),w(I-1,P)},2)};w(5)}}}const qo=typeof navigator=="object"&&/Firefox/i.test(navigator.userAgent),nn=(e,t)=>{let n=!1,o=null;function l(){clearTimeout(o),n=!0,o=setTimeout(()=>{n=!1},50)}return function(i){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const a=i<0&&e.value||i>0&&t.value;return r&&a?(clearTimeout(o),n=!1):(!a||n)&&l(),!n&&a}};function Qo(e,t,n,o){let l=0,i=null,r=null,a=!1;const f=nn(t,n);function u(g){if(!e.value)return;ve.cancel(i);const{deltaY:y}=g;l+=y,r=y,!f(y)&&(qo||g.preventDefault(),i=ve(()=>{o(l*(a?10:1)),l=0}))}function s(g){e.value&&(a=g.detail===r)}return[u,s]}const Zo=14/15;function Jo(e,t,n){let o=!1,l=0,i=null,r=null;const a=()=>{i&&(i.removeEventListener("touchmove",f),i.removeEventListener("touchend",u))},f=y=>{if(o){const v=Math.ceil(y.touches[0].pageY);let p=l-v;l=v,n(p)&&y.preventDefault(),clearInterval(r),r=setInterval(()=>{p*=Zo,(!n(p,!0)||Math.abs(p)<=.1)&&clearInterval(r)},16)}},u=()=>{o=!1,a()},s=y=>{a(),y.touches.length===1&&!o&&(o=!0,l=Math.ceil(y.touches[0].pageY),i=y.target,i.addEventListener("touchmove",f,{passive:!1}),i.addEventListener("touchend",u))},g=()=>{};be(()=>{document.addEventListener("touchmove",g,{passive:!1}),te(e,y=>{t.value.removeEventListener("touchstart",s),a(),clearInterval(r),y&&t.value.addEventListener("touchstart",s,{passive:!1})},{immediate:!0})}),Ne(()=>{document.removeEventListener("touchmove",g)})}var ko=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var l=0,o=Object.getOwnPropertySymbols(e);l{const u=t+f,s=l(a,u,{}),g=r(a);return T(tn,{key:g,setRef:y=>o(a,y)},{default:()=>[s]})})}const ol=fe({compatConfig:{MODE:3},name:"List",inheritAttrs:!1,props:{prefixCls:String,data:C.array,height:Number,itemHeight:Number,fullHeight:{type:Boolean,default:void 0},itemKey:{type:[String,Number,Function],required:!0},component:{type:[String,Object]},virtual:{type:Boolean,default:void 0},children:Function,onScroll:Function,onMousedown:Function,onMouseenter:Function,onVisibleChange:Function},setup(e,t){let{expose:n}=t;const o=V(()=>{const{height:m,itemHeight:H,virtual:M}=e;return!!(M!==!1&&m&&H)}),l=V(()=>{const{height:m,itemHeight:H,data:M}=e;return o.value&&M&&H*M.length>m}),i=Me({scrollTop:0,scrollMoving:!1}),r=V(()=>e.data||el),a=X([]);te(r,()=>{a.value=at(r.value).slice()},{immediate:!0});const f=X(m=>{});te(()=>e.itemKey,m=>{typeof m=="function"?f.value=m:f.value=H=>H==null?void 0:H[m]},{immediate:!0});const u=X(),s=X(),g=X(),y=m=>f.value(m),v={getKey:y};function p(m){let H;typeof m=="function"?H=m(i.scrollTop):H=m;const M=D(H);u.value&&(u.value.scrollTop=M),i.scrollTop=M}const[w,I,x,R]=Yo(a,y),N=Me({scrollHeight:void 0,start:0,end:0,offset:void 0}),P=X(0);be(()=>{De(()=>{var m;P.value=((m=s.value)===null||m===void 0?void 0:m.offsetHeight)||0})}),Gn(()=>{De(()=>{var m;P.value=((m=s.value)===null||m===void 0?void 0:m.offsetHeight)||0})}),te([o,a],()=>{o.value||S(N,{scrollHeight:void 0,start:0,end:a.value.length-1,offset:void 0})},{immediate:!0}),te([o,a,P,l],()=>{o.value&&!l.value&&S(N,{scrollHeight:P.value,start:0,end:a.value.length-1,offset:void 0}),u.value&&(i.scrollTop=u.value.scrollTop)},{immediate:!0}),te([l,o,()=>i.scrollTop,a,R,()=>e.height,P],()=>{if(!o.value||!l.value)return;let m=0,H,M,W;const ne=a.value.length,re=a.value,se=i.scrollTop,{itemHeight:ee,height:ce}=e,pe=se+ce;for(let h=0;h=se&&(H=h,M=m),W===void 0&&$>pe&&(W=h),m=$}H===void 0&&(H=0,M=0,W=Math.ceil(ce/ee)),W===void 0&&(W=ne-1),W=Math.min(W+1,ne),S(N,{scrollHeight:m,start:H,end:W,offset:M})},{immediate:!0});const b=V(()=>N.scrollHeight-e.height);function D(m){let H=m;return Number.isNaN(b.value)||(H=Math.min(H,b.value)),H=Math.max(H,0),H}const O=V(()=>i.scrollTop<=0),E=V(()=>i.scrollTop>=b.value),L=nn(O,E);function B(m){p(m)}function _(m){var H;const{scrollTop:M}=m.currentTarget;M!==i.scrollTop&&p(M),(H=e.onScroll)===null||H===void 0||H.call(e,m)}const[U,Y]=Qo(o,O,E,m=>{p(H=>H+m)});Jo(o,u,(m,H)=>L(m,H)?!1:(U({preventDefault(){},deltaY:m}),!0));function K(m){o.value&&m.preventDefault()}const G=()=>{u.value&&(u.value.removeEventListener("wheel",U,he?{passive:!1}:!1),u.value.removeEventListener("DOMMouseScroll",Y),u.value.removeEventListener("MozMousePixelScroll",K))};$e(()=>{De(()=>{u.value&&(G(),u.value.addEventListener("wheel",U,he?{passive:!1}:!1),u.value.addEventListener("DOMMouseScroll",Y),u.value.addEventListener("MozMousePixelScroll",K))})}),Ne(()=>{G()});const z=Xo(u,a,x,e,y,I,p,()=>{var m;(m=g.value)===null||m===void 0||m.delayHidden()});n({scrollTo:z});const oe=V(()=>{let m=null;return e.height&&(m=S({[e.fullHeight?"height":"maxHeight"]:e.height+"px"},tl),o.value&&(m.overflowY="hidden",i.scrollMoving&&(m.pointerEvents="none"))),m});return te([()=>N.start,()=>N.end,a],()=>{if(e.onVisibleChange){const m=a.value.slice(N.start,N.end+1);e.onVisibleChange(m,a.value)}},{flush:"post"}),{state:i,mergedData:a,componentStyle:oe,onFallbackScroll:_,onScrollBar:B,componentRef:u,useVirtual:o,calRes:N,collectHeight:I,setInstance:w,sharedConfig:v,scrollBarRef:g,fillerInnerRef:s,delayHideScrollBar:()=>{var m;(m=g.value)===null||m===void 0||m.delayHidden()}}},render(){const e=S(S({},this.$props),this.$attrs),{prefixCls:t="rc-virtual-list",height:n,itemHeight:o,fullHeight:l,data:i,itemKey:r,virtual:a,component:f="div",onScroll:u,children:s=this.$slots.default,style:g,class:y}=e,v=ko(e,["prefixCls","height","itemHeight","fullHeight","data","itemKey","virtual","component","onScroll","children","style","class"]),p=ue(t,y),{scrollTop:w}=this.state,{scrollHeight:I,offset:x,start:R,end:N}=this.calRes,{componentStyle:P,onFallbackScroll:b,onScrollBar:D,useVirtual:O,collectHeight:E,sharedConfig:L,setInstance:B,mergedData:_,delayHideScrollBar:U}=this;return T("div",k({style:S(S({},g),{position:"relative"}),class:p},v),[T(f,{class:`${t}-holder`,style:P,ref:"componentRef",onScroll:b,onMouseenter:U},{default:()=>[T(Ue,{prefixCls:t,height:I,offset:x,onInnerResize:E,ref:"fillerInnerRef"},{default:()=>nl(_,R,N,B,s,L)})]}),O&&T(Go,{ref:"scrollBarRef",prefixCls:t,scrollTop:w,height:n,scrollHeight:I,count:_.length,onScroll:D,onStartMove:()=>{this.state.scrollMoving=!0},onStopMove:()=>{this.state.scrollMoving=!1}},null)])}});function ll(e,t,n){const o=de(e());return te(t,(l,i)=>{n?n(l,i)&&(o.value=e()):o.value=e()}),o}function il(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}const on=Symbol("SelectContextKey");function al(e){return lt(on,e)}function rl(){return We(on,{})}var sl=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var l=0,o=Object.getOwnPropertySymbols(e);l`${l.prefixCls}-item`),a=ll(()=>i.flattenOptions,[()=>l.open,()=>i.flattenOptions],b=>b[0]),f=Re(),u=b=>{b.preventDefault()},s=b=>{f.current&&f.current.scrollTo(typeof b=="number"?{index:b}:b)},g=function(b){let D=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;const O=a.value.length;for(let E=0;E1&&arguments[1]!==void 0?arguments[1]:!1;y.activeIndex=b;const O={source:D?"keyboard":"mouse"},E=a.value[b];if(!E){i.onActiveValue(null,-1,O);return}i.onActiveValue(E.value,b,O)};te([()=>a.value.length,()=>l.searchValue],()=>{v(i.defaultActiveFirstOption!==!1?g(0):-1)},{immediate:!0});const p=b=>i.rawValues.has(b)&&l.mode!=="combobox";te([()=>l.open,()=>l.searchValue],()=>{if(!l.multiple&&l.open&&i.rawValues.size===1){const b=Array.from(i.rawValues)[0],D=at(a.value).findIndex(O=>{let{data:E}=O;return E[i.fieldNames.value]===b});D!==-1&&(v(D),De(()=>{s(D)}))}l.open&&De(()=>{var b;(b=f.current)===null||b===void 0||b.scrollTo(void 0)})},{immediate:!0,flush:"post"});const w=b=>{b!==void 0&&i.onSelect(b,{selected:!i.rawValues.has(b)}),l.multiple||l.toggleOpen(!1)},I=b=>typeof b.label=="function"?b.label():b.label;function x(b){const D=a.value[b];if(!D)return null;const O=D.data||{},{value:E}=O,{group:L}=D,B=st(O,!0),_=I(D);return D?T("div",k(k({"aria-label":typeof _=="string"&&!L?_:null},B),{},{key:b,role:L?"presentation":"option",id:`${l.id}_list_${b}`,"aria-selected":p(E)}),[E]):null}return n({onKeydown:b=>{const{which:D,ctrlKey:O}=b;switch(D){case A.N:case A.P:case A.UP:case A.DOWN:{let E=0;if(D===A.UP?E=-1:D===A.DOWN?E=1:il()&&O&&(D===A.N?E=1:D===A.P&&(E=-1)),E!==0){const L=g(y.activeIndex+E,E);s(L),v(L,!0)}break}case A.ENTER:{const E=a.value[y.activeIndex];E&&!E.data.disabled?w(E.value):w(void 0),l.open&&b.preventDefault();break}case A.ESC:l.toggleOpen(!1),l.open&&b.stopPropagation()}},onKeyup:()=>{},scrollTo:b=>{s(b)}}),()=>{const{id:b,notFoundContent:D,onPopupScroll:O}=l,{menuItemSelectedIcon:E,fieldNames:L,virtual:B,listHeight:_,listItemHeight:U}=i,Y=o.option,{activeIndex:K}=y,G=Object.keys(L).map(z=>L[z]);return a.value.length===0?T("div",{role:"listbox",id:`${b}_list`,class:`${r.value}-empty`,onMousedown:u},[D]):T(Te,null,[T("div",{role:"listbox",id:`${b}_list`,style:{height:0,width:0,overflow:"hidden"}},[x(K-1),x(K),x(K+1)]),T(ol,{itemKey:"key",ref:f,data:a.value,height:_,itemHeight:U,fullHeight:!1,onMousedown:u,onScroll:O,virtual:B},{default:(z,oe)=>{var ie;const{group:m,groupOption:H,data:M,value:W}=z,{key:ne}=M,re=typeof z.label=="function"?z.label():z.label;if(m){const ae=(ie=M.title)!==null&&ie!==void 0?ie:Dt(re)&&re;return T("div",{class:ue(r.value,`${r.value}-group`),title:ae},[Y?Y(M):re!==void 0?re:ne])}const{disabled:se,title:ee,children:ce,style:pe,class:h,className:c}=M,d=sl(M,["disabled","title","children","style","class","className"]),F=je(d,G),$=p(W),j=`${r.value}-option`,Q=ue(r.value,j,h,c,{[`${j}-grouped`]:H,[`${j}-active`]:K===oe&&!se,[`${j}-disabled`]:se,[`${j}-selected`]:$}),Z=I(z),J=!E||typeof E=="function"||$,q=typeof Z=="number"?Z:Z||W;let le=Dt(q)?q.toString():void 0;return ee!==void 0&&(le=ee),T("div",k(k({},F),{},{"aria-selected":$,class:Q,title:le,onMousemove:ae=>{d.onMousemove&&d.onMousemove(ae),!(K===oe||se)&&v(oe)},onClick:ae=>{se||w(W),d.onClick&&d.onClick(ae)},style:pe}),[T("div",{class:`${j}-content`},[Y?Y(M):q]),it(E)||$,J&&T(Ce,{class:`${r.value}-option-state`,customizeIcon:E,customizeIconProps:{isSelected:$}},{default:()=>[$?"✓":null]})])}})])}}});var cl=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var l=0,o=Object.getOwnPropertySymbols(e);l1&&arguments[1]!==void 0?arguments[1]:!1;return Gt(e).map((o,l)=>{var i;if(!it(o)||!o.type)return null;const{type:{isSelectOptGroup:r},key:a,children:f,props:u}=o;if(t||!r)return dl(o);const s=f&&f.default?f.default():void 0,g=(u==null?void 0:u.label)||((i=f.label)===null||i===void 0?void 0:i.call(f))||a;return S(S({key:`__RC_SELECT_GRP__${a===null?l:String(a)}__`},u),{label:g,options:ln(s||[])})}).filter(o=>o)}function fl(e,t,n){const o=X(),l=X(),i=X(),r=X([]);return te([e,t],()=>{e.value?r.value=at(e.value).slice():r.value=ln(t.value)},{immediate:!0,deep:!0}),$e(()=>{const a=r.value,f=new Map,u=new Map,s=n.value;function g(y){let v=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;for(let p=0;p0&&arguments[0]!==void 0?arguments[0]:de("");const t=`rc_select_${ml()}`;return e.value||t}function an(e){return Array.isArray(e)?e:e!==void 0?[e]:[]}function Qe(e,t){return an(e).join("").toUpperCase().includes(t)}const gl=(e,t,n,o,l)=>V(()=>{const i=n.value,r=l==null?void 0:l.value,a=o==null?void 0:o.value;if(!i||a===!1)return e.value;const{options:f,label:u,value:s}=t.value,g=[],y=typeof a=="function",v=i.toUpperCase(),p=y?a:(I,x)=>r?Qe(x[r],v):x[f]?Qe(x[u!=="children"?u:"label"],v):Qe(x[s],v),w=y?I=>nt(I):I=>I;return e.value.forEach(I=>{if(I[f]){if(p(i,w(I)))g.push(I);else{const R=I[f].filter(N=>p(i,w(N)));R.length&&g.push(S(S({},I),{[f]:R}))}return}p(i,w(I))&&g.push(I)}),g}),hl=(e,t)=>{const n=X({values:new Map,options:new Map});return[V(()=>{const{values:i,options:r}=n.value,a=e.value.map(s=>{var g;return s.label===void 0?S(S({},s),{label:(g=i.get(s.value))===null||g===void 0?void 0:g.label}):s}),f=new Map,u=new Map;return a.forEach(s=>{f.set(s.value,s),u.set(s.value,t.value.get(s.value)||r.get(s.value))}),n.value.values=f,n.value.options=u,a}),i=>t.value.get(i)||n.value.options.get(i)]},bl=["inputValue"];function rn(){return S(S({},kt()),{prefixCls:String,id:String,backfill:{type:Boolean,default:void 0},fieldNames:Object,inputValue:String,searchValue:String,onSearch:Function,autoClearSearchValue:{type:Boolean,default:void 0},onSelect:Function,onDeselect:Function,filterOption:{type:[Boolean,Function],default:void 0},filterSort:Function,optionFilterProp:String,optionLabelProp:String,options:Array,defaultActiveFirstOption:{type:Boolean,default:void 0},virtual:{type:Boolean,default:void 0},listHeight:Number,listItemHeight:Number,menuItemSelectedIcon:C.any,mode:String,labelInValue:{type:Boolean,default:void 0},value:C.any,defaultValue:C.any,onChange:Function,children:Array})}function yl(e){return!e||typeof e!="object"}const Sl=fe({compatConfig:{MODE:3},name:"VcSelect",inheritAttrs:!1,props:ot(rn(),{prefixCls:"vc-select",autoClearSearchValue:!0,listHeight:200,listItemHeight:20,dropdownMatchSelectWidth:!0}),setup(e,t){let{expose:n,attrs:o,slots:l}=t;const i=vl(ge(e,"id")),r=V(()=>en(e.mode)),a=V(()=>!!(!e.options&&e.children)),f=V(()=>e.filterOption===void 0&&e.mode==="combobox"?!1:e.filterOption),u=V(()=>Xt(e.fieldNames,a.value)),[s,g]=$t("",{value:V(()=>e.searchValue!==void 0?e.searchValue:e.inputValue),postState:h=>h||""}),y=fl(ge(e,"options"),ge(e,"children"),u),{valueOptions:v,labelOptions:p,options:w}=y,I=h=>an(h).map(d=>{var F,$;let j,Q,Z,J;yl(d)?j=d:(Z=d.key,Q=d.label,j=(F=d.value)!==null&&F!==void 0?F:Z);const q=v.value.get(j);return q&&(Q===void 0&&(Q=q==null?void 0:q[e.optionLabelProp||u.value.label]),Z===void 0&&(Z=($=q==null?void 0:q.key)!==null&&$!==void 0?$:j),J=q==null?void 0:q.disabled),{label:Q,value:j,key:Z,disabled:J,option:q}}),[x,R]=$t(e.defaultValue,{value:ge(e,"value")}),N=V(()=>{var h;const c=I(x.value);return e.mode==="combobox"&&!(!((h=c[0])===null||h===void 0)&&h.value)?[]:c}),[P,b]=hl(N,v),D=V(()=>{if(!e.mode&&P.value.length===1){const h=P.value[0];if(h.value===null&&(h.label===null||h.label===void 0))return[]}return P.value.map(h=>{var c;return S(S({},h),{label:(c=typeof h.label=="function"?h.label():h.label)!==null&&c!==void 0?c:h.value})})}),O=V(()=>new Set(P.value.map(h=>h.value)));$e(()=>{var h;if(e.mode==="combobox"){const c=(h=P.value[0])===null||h===void 0?void 0:h.value;c!=null&&g(String(c))}},{flush:"post"});const E=(h,c)=>{const d=c??h;return{[u.value.value]:h,[u.value.label]:d}},L=X();$e(()=>{if(e.mode!=="tags"){L.value=w.value;return}const h=w.value.slice(),c=d=>v.value.has(d);[...P.value].sort((d,F)=>d.value{const F=d.value;c(F)||h.push(E(F,d.label))}),L.value=h});const B=gl(L,u,s,f,ge(e,"optionFilterProp")),_=V(()=>e.mode!=="tags"||!s.value||B.value.some(h=>h[e.optionFilterProp||"value"]===s.value)?B.value:[E(s.value),...B.value]),U=V(()=>e.filterSort?[..._.value].sort((h,c)=>e.filterSort(h,c)):_.value),Y=V(()=>Io(U.value,{fieldNames:u.value,childrenAsData:a.value})),K=h=>{const c=I(h);if(R(c),e.onChange&&(c.length!==P.value.length||c.some((d,F)=>{var $;return(($=P.value[F])===null||$===void 0?void 0:$.value)!==(d==null?void 0:d.value)}))){const d=e.labelInValue?c.map($=>S(S({},$),{originLabel:$.label,label:typeof $.label=="function"?$.label():$.label})):c.map($=>$.value),F=c.map($=>nt(b($.value)));e.onChange(r.value?d:d[0],r.value?F:F[0])}},[G,z]=Mt(null),[oe,ie]=Mt(0),m=V(()=>e.defaultActiveFirstOption!==void 0?e.defaultActiveFirstOption:e.mode!=="combobox"),H=function(h,c){let{source:d="keyboard"}=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};ie(c),e.backfill&&e.mode==="combobox"&&h!==null&&d==="keyboard"&&z(String(h))},M=(h,c)=>{const d=()=>{var F;const $=b(h),j=$==null?void 0:$[u.value.label];return[e.labelInValue?{label:typeof j=="function"?j():j,originLabel:j,value:h,key:(F=$==null?void 0:$.key)!==null&&F!==void 0?F:h}:h,nt($)]};if(c&&e.onSelect){const[F,$]=d();e.onSelect(F,$)}else if(!c&&e.onDeselect){const[F,$]=d();e.onDeselect(F,$)}},W=(h,c)=>{let d;const F=r.value?c.selected:!0;F?d=r.value?[...P.value,h]:[h]:d=P.value.filter($=>$.value!==h),K(d),M(h,F),e.mode==="combobox"?z(""):(!r.value||e.autoClearSearchValue)&&(g(""),z(""))},ne=(h,c)=>{K(h),(c.type==="remove"||c.type==="clear")&&c.values.forEach(d=>{M(d.value,!1)})},re=(h,c)=>{var d;if(g(h),z(null),c.source==="submit"){const F=(h||"").trim();if(F){const $=Array.from(new Set([...O.value,F]));K($),M(F,!0),g("")}return}c.source!=="blur"&&(e.mode==="combobox"&&K(h),(d=e.onSearch)===null||d===void 0||d.call(e,h))},se=h=>{let c=h;e.mode!=="tags"&&(c=h.map(F=>{const $=p.value.get(F);return $==null?void 0:$.value}).filter(F=>F!==void 0));const d=Array.from(new Set([...O.value,...c]));K(d),d.forEach(F=>{M(F,!0)})},ee=V(()=>e.virtual!==!1&&e.dropdownMatchSelectWidth!==!1);al(Jt(S(S({},y),{flattenOptions:Y,onActiveValue:H,defaultActiveFirstOption:m,onSelect:W,menuItemSelectedIcon:ge(e,"menuItemSelectedIcon"),rawValues:O,fieldNames:u,virtual:ee,listHeight:ge(e,"listHeight"),listItemHeight:ge(e,"listItemHeight"),childrenAsData:a})));const ce=de();n({focus(){var h;(h=ce.value)===null||h===void 0||h.focus()},blur(){var h;(h=ce.value)===null||h===void 0||h.blur()},scrollTo(h){var c;(c=ce.value)===null||c===void 0||c.scrollTo(h)}});const pe=V(()=>je(e,["id","mode","prefixCls","backfill","fieldNames","inputValue","searchValue","onSearch","autoClearSearchValue","onSelect","onDeselect","dropdownMatchSelectWidth","filterOption","filterSort","optionFilterProp","optionLabelProp","options","children","defaultActiveFirstOption","menuItemSelectedIcon","virtual","listHeight","listItemHeight","value","defaultValue","labelInValue","onChange"]));return()=>T(jo,k(k(k({},pe.value),o),{},{id:i,prefixCls:e.prefixCls,ref:ce,omitDomProps:bl,mode:e.mode,displayValues:D.value,onDisplayValuesChange:ne,searchValue:s.value,onSearch:re,onSearchSplit:se,dropdownMatchSelectWidth:e.dropdownMatchSelectWidth,OptionList:ul,emptyOptions:!Y.value.length,activeValue:G.value,activeDescendantId:`${i}_list_${oe.value}`}),l)}}),dt=()=>null;dt.isSelectOption=!0;dt.displayName="ASelectOption";const ft=()=>null;ft.isSelectOptGroup=!0;ft.displayName="ASelectOptGroup";var wl={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"};function Vt(e){for(var t=1;t1&&arguments[1]!==void 0?arguments[1]:{};const{loading:n,multiple:o,prefixCls:l,hasFeedback:i,feedbackIcon:r,showArrow:a}=e,f=e.suffixIcon||t.suffixIcon&&t.suffixIcon(),u=e.clearIcon||t.clearIcon&&t.clearIcon(),s=e.menuItemSelectedIcon||t.menuItemSelectedIcon&&t.menuItemSelectedIcon(),g=e.removeIcon||t.removeIcon&&t.removeIcon(),y=u??T(qn,null,null),v=x=>T(Te,null,[a!==!1&&x,i&&r]);let p=null;if(f!==void 0)p=v(f);else if(n)p=v(T(Qn,{spin:!0},null));else{const x=`${l}-suffix`;p=R=>{let{open:N,showSearch:P}=R;return v(N&&P?T(uo,{class:x},null):T(pt,{class:x},null))}}let w=null;s!==void 0?w=s:o?w=T(co,null,null):w=null;let I=null;return g!==void 0?I=g:I=T(Zn,null,null),{clearIcon:y,suffixIcon:p,itemIcon:w,removeIcon:I}}var xl="[object Symbol]";function mt(e){return typeof e=="symbol"||_n(e)&&An(e)==xl}function Ol(e,t){for(var n=-1,o=e==null?0:e.length,l=Array(o);++n0){if(++t>=Ml)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function Dl(e){return function(){return e}}var Ke=function(){try{var e=Bn(Object,"defineProperty");return e({},"",{}),e}catch{}}(),Rl=Ke?function(e,t){return Ke(e,"toString",{configurable:!0,enumerable:!1,value:Dl(t),writable:!0})}:$l,Vl=Fl(Rl);function Nl(e,t,n){t=="__proto__"&&Ke?Ke(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}var Hl=Object.prototype,Ll=Hl.hasOwnProperty;function _i(e,t,n){var o=e[t];(!(Ll.call(e,t)&&Nn(o,n))||n===void 0&&!(t in e))&&Nl(e,t,n)}var Lt=Math.max;function _l(e,t,n){return t=Lt(t===void 0?e.length-1:t,0),function(){for(var o=arguments,l=-1,i=Lt(o.length-t,0),r=Array(i);++l{const{antCls:n}=e,o=`${n}-${t}`,{inKeyframes:l,outKeyframes:i}=si[t];return[ro(o,l,i,e.motionDurationMid),{[` + ${o}-enter, + ${o}-appear + `]:{opacity:0,animationTimingFunction:e.motionEaseOutCirc},[`${o}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},Bt=e=>{const{controlPaddingHorizontal:t}=e;return{position:"relative",display:"block",minHeight:e.controlHeight,padding:`${(e.controlHeight-e.fontSize*e.lineHeight)/2}px ${t}px`,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,lineHeight:e.lineHeight,boxSizing:"border-box"}},ui=e=>{const{antCls:t,componentCls:n}=e,o=`${n}-item`;return[{[`${n}-dropdown`]:S(S({},rt(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,[` + &${t}-slide-up-enter${t}-slide-up-enter-active${n}-dropdown-placement-bottomLeft, + &${t}-slide-up-appear${t}-slide-up-appear-active${n}-dropdown-placement-bottomLeft + `]:{animationName:bo},[` + &${t}-slide-up-enter${t}-slide-up-enter-active${n}-dropdown-placement-topLeft, + &${t}-slide-up-appear${t}-slide-up-appear-active${n}-dropdown-placement-topLeft + `]:{animationName:ho},[`&${t}-slide-up-leave${t}-slide-up-leave-active${n}-dropdown-placement-bottomLeft`]:{animationName:go},[`&${t}-slide-up-leave${t}-slide-up-leave-active${n}-dropdown-placement-topLeft`]:{animationName:vo},"&-hidden":{display:"none"},"&-empty":{color:e.colorTextDisabled},[`${o}-empty`]:S(S({},Bt(e)),{color:e.colorTextDisabled}),[`${o}`]:S(S({},Bt(e)),{cursor:"pointer",transition:`background ${e.motionDurationSlow} ease`,borderRadius:e.borderRadiusSM,"&-group":{color:e.colorTextDescription,fontSize:e.fontSizeSM,cursor:"default"},"&-option":{display:"flex","&-content":S({flex:"auto"},tt),"&-state":{flex:"none"},[`&-active:not(${o}-option-disabled)`]:{backgroundColor:e.controlItemBgHover},[`&-selected:not(${o}-option-disabled)`]:{color:e.colorText,fontWeight:e.fontWeightStrong,backgroundColor:e.controlItemBgActive,[`${o}-option-state`]:{color:e.colorPrimary}},"&-disabled":{[`&${o}-option-selected`]:{backgroundColor:e.colorBgContainerDisabled},color:e.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:e.controlPaddingHorizontal*2}}}),"&-rtl":{direction:"rtl"}})},Tt(e,"slide-up"),Tt(e,"slide-down"),At(e,"move-up"),At(e,"move-down")]},Ie=2;function dn(e){let{controlHeightSM:t,controlHeight:n,lineWidth:o}=e;const l=(n-t)/2-o,i=Math.ceil(l/2);return[l,i]}function Ze(e,t){const{componentCls:n,iconCls:o}=e,l=`${n}-selection-overflow`,i=e.controlHeightSM,[r]=dn(e),a=t?`${n}-${t}`:"";return{[`${n}-multiple${a}`]:{fontSize:e.fontSize,[l]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"100%",display:"inline-flex"}},[`${n}-selector`]:{display:"flex",flexWrap:"wrap",alignItems:"center",padding:`${r-Ie}px ${Ie*2}px`,borderRadius:e.borderRadius,[`${n}-show-search&`]:{cursor:"text"},[`${n}-disabled&`]:{background:e.colorBgContainerDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${Ie}px 0`,lineHeight:`${i}px`,content:'"\\a0"'}},[` + &${n}-show-arrow ${n}-selector, + &${n}-allow-clear ${n}-selector + `]:{paddingInlineEnd:e.fontSizeIcon+e.controlPaddingHorizontal},[`${n}-selection-item`]:{position:"relative",display:"flex",flex:"none",boxSizing:"border-box",maxWidth:"100%",height:i,marginTop:Ie,marginBottom:Ie,lineHeight:`${i-e.lineWidth*2}px`,background:e.colorFillSecondary,border:`${e.lineWidth}px solid ${e.colorSplit}`,borderRadius:e.borderRadiusSM,cursor:"default",transition:`font-size ${e.motionDurationSlow}, line-height ${e.motionDurationSlow}, height ${e.motionDurationSlow}`,userSelect:"none",marginInlineEnd:Ie*2,paddingInlineStart:e.paddingXS,paddingInlineEnd:e.paddingXS/2,[`${n}-disabled&`]:{color:e.colorTextDisabled,borderColor:e.colorBorder,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:e.paddingXS/2,overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":S(S({},Yt()),{display:"inline-block",color:e.colorIcon,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${o}`]:{verticalAlign:"-0.2em"},"&:hover":{color:e.colorIconHover}})},[`${l}-item + ${l}-item`]:{[`${n}-selection-search`]:{marginInlineStart:0}},[`${n}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:e.inputPaddingHorizontalBase-r,"\n &-input,\n &-mirror\n ":{height:i,fontFamily:e.fontFamily,lineHeight:`${i}px`,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.inputPaddingHorizontalBase,insetInlineEnd:e.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${e.motionDurationSlow}`}}}}function ci(e){const{componentCls:t}=e,n=ye(e,{controlHeight:e.controlHeightSM,controlHeightSM:e.controlHeightXS,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS}),[,o]=dn(e);return[Ze(e),Ze(n,"sm"),{[`${t}-multiple${t}-sm`]:{[`${t}-selection-placeholder`]:{insetInlineStart:e.controlPaddingHorizontalSM-e.lineWidth,insetInlineEnd:"auto"},[`${t}-selection-search`]:{marginInlineStart:o}}},Ze(ye(e,{fontSize:e.fontSizeLG,controlHeight:e.controlHeightLG,controlHeightSM:e.controlHeight,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius}),"lg")]}function Je(e,t){const{componentCls:n,inputPaddingHorizontalBase:o,borderRadius:l}=e,i=e.controlHeight-e.lineWidth*2,r=Math.ceil(e.fontSize*1.25),a=t?`${n}-${t}`:"";return{[`${n}-single${a}`]:{fontSize:e.fontSize,[`${n}-selector`]:S(S({},rt(e)),{display:"flex",borderRadius:l,[`${n}-selection-search`]:{position:"absolute",top:0,insetInlineStart:o,insetInlineEnd:o,bottom:0,"&-input":{width:"100%"}},[` + ${n}-selection-item, + ${n}-selection-placeholder + `]:{padding:0,lineHeight:`${i}px`,transition:`all ${e.motionDurationSlow}`,"@supports (-moz-appearance: meterbar)":{lineHeight:`${i}px`}},[`${n}-selection-item`]:{position:"relative",userSelect:"none"},[`${n}-selection-placeholder`]:{transition:"none",pointerEvents:"none"},[["&:after",`${n}-selection-item:after`,`${n}-selection-placeholder:after`].join(",")]:{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}}),[` + &${n}-show-arrow ${n}-selection-item, + &${n}-show-arrow ${n}-selection-placeholder + `]:{paddingInlineEnd:r},[`&${n}-open ${n}-selection-item`]:{color:e.colorTextPlaceholder},[`&:not(${n}-customize-input)`]:{[`${n}-selector`]:{width:"100%",height:e.controlHeight,padding:`0 ${o}px`,[`${n}-selection-search-input`]:{height:i},"&:after":{lineHeight:`${i}px`}}},[`&${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 ${o}px`,"&:after":{display:"none"}}}}}}}function di(e){const{componentCls:t}=e,n=e.controlPaddingHorizontalSM-e.lineWidth;return[Je(e),Je(ye(e,{controlHeight:e.controlHeightSM,borderRadius:e.borderRadiusSM}),"sm"),{[`${t}-single${t}-sm`]:{[`&:not(${t}-customize-input)`]:{[`${t}-selection-search`]:{insetInlineStart:n,insetInlineEnd:n},[`${t}-selector`]:{padding:`0 ${n}px`},[`&${t}-show-arrow ${t}-selection-search`]:{insetInlineEnd:n+e.fontSize*1.5},[` + &${t}-show-arrow ${t}-selection-item, + &${t}-show-arrow ${t}-selection-placeholder + `]:{paddingInlineEnd:e.fontSize*1.5}}}},Je(ye(e,{controlHeight:e.controlHeightLG,fontSize:e.fontSizeLG,borderRadius:e.borderRadiusLG}),"lg")]}const fi=e=>{const{componentCls:t}=e;return{position:"relative",backgroundColor:e.colorBgContainer,border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,input:{cursor:"pointer"},[`${t}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit"}},[`${t}-disabled&`]:{color:e.colorTextDisabled,background:e.colorBgContainerDisabled,cursor:"not-allowed",[`${t}-multiple&`]:{background:e.colorBgContainerDisabled},input:{cursor:"not-allowed"}}}},ke=function(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;const{componentCls:o,borderHoverColor:l,outlineColor:i,antCls:r}=t,a=n?{[`${o}-selector`]:{borderColor:l}}:{};return{[e]:{[`&:not(${o}-disabled):not(${o}-customize-input):not(${r}-pagination-size-changer)`]:S(S({},a),{[`${o}-focused& ${o}-selector`]:{borderColor:l,boxShadow:`0 0 0 ${t.controlOutlineWidth}px ${i}`,borderInlineEndWidth:`${t.controlLineWidth}px !important`,outline:0},[`&:hover ${o}-selector`]:{borderColor:l,borderInlineEndWidth:`${t.controlLineWidth}px !important`}})}}},pi=e=>{const{componentCls:t}=e;return{[`${t}-selection-search-input`]:{margin:0,padding:0,background:"transparent",border:"none",outline:"none",appearance:"none","&::-webkit-search-cancel-button":{display:"none","-webkit-appearance":"none"}}}},mi=e=>{const{componentCls:t,inputPaddingHorizontalBase:n,iconCls:o}=e;return{[t]:S(S({},rt(e)),{position:"relative",display:"inline-block",cursor:"pointer",[`&:not(${t}-customize-input) ${t}-selector`]:S(S({},fi(e)),pi(e)),[`${t}-selection-item`]:S({flex:1,fontWeight:"normal"},tt),[`${t}-selection-placeholder`]:S(S({},tt),{flex:1,color:e.colorTextPlaceholder,pointerEvents:"none"}),[`${t}-arrow`]:S(S({},Yt()),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:n,height:e.fontSizeIcon,marginTop:-e.fontSizeIcon/2,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",[o]:{verticalAlign:"top",transition:`transform ${e.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${t}-suffix)`]:{pointerEvents:"auto"}},[`${t}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${t}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:n,zIndex:1,display:"inline-block",width:e.fontSizeIcon,height:e.fontSizeIcon,marginTop:-e.fontSizeIcon/2,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",background:e.colorBgContainer,cursor:"pointer",opacity:0,transition:`color ${e.motionDurationMid} ease, opacity ${e.motionDurationSlow} ease`,textRendering:"auto","&:before":{display:"block"},"&:hover":{color:e.colorTextTertiary}},"&:hover":{[`${t}-clear`]:{opacity:1}}}),[`${t}-has-feedback`]:{[`${t}-clear`]:{insetInlineEnd:n+e.fontSize+e.paddingXXS}}}},vi=e=>{const{componentCls:t}=e;return[{[t]:{[`&-borderless ${t}-selector`]:{backgroundColor:"transparent !important",borderColor:"transparent !important",boxShadow:"none !important"},[`&${t}-in-form-item`]:{width:"100%"}}},mi(e),di(e),ci(e),ui(e),{[`${t}-rtl`]:{direction:"rtl"}},ke(t,ye(e,{borderHoverColor:e.colorPrimaryHover,outlineColor:e.controlOutline})),ke(`${t}-status-error`,ye(e,{borderHoverColor:e.colorErrorHover,outlineColor:e.colorErrorOutline}),!0),ke(`${t}-status-warning`,ye(e,{borderHoverColor:e.colorWarningHover,outlineColor:e.colorWarningOutline}),!0),wo(e,{borderElCls:`${t}-selector`,focusElCls:`${t}-focused`})]},gi=Jn("Select",(e,t)=>{let{rootPrefixCls:n}=t;const o=ye(e,{rootPrefixCls:n,inputPaddingHorizontalBase:e.paddingSM-1});return[vi(o)]},e=>({zIndexPopup:e.zIndexPopupBase+50})),hi=()=>S(S({},je(rn(),["inputIcon","mode","getInputElement","getRawInputElement","backfill"])),{value:Ot([Array,Object,String,Number]),defaultValue:Ot([Array,Object,String,Number]),notFoundContent:C.any,suffixIcon:C.any,itemIcon:C.any,size:Fe(),mode:Fe(),bordered:to(!0),transitionName:String,choiceTransitionName:Fe(""),popupClassName:String,dropdownClassName:String,placement:Fe(),status:Fe(),"onUpdate:value":eo()}),zt="SECRET_COMBOBOX_MODE_DO_NOT_USE",me=fe({compatConfig:{MODE:3},name:"ASelect",Option:dt,OptGroup:ft,inheritAttrs:!1,props:ot(hi(),{listHeight:256,listItemHeight:24}),SECRET_COMBOBOX_MODE_DO_NOT_USE:zt,slots:Object,setup(e,t){let{attrs:n,emit:o,slots:l,expose:i}=t;const r=de(),a=yo(),f=So.useInject(),u=V(()=>po(f.status,e.status)),s=()=>{var M;(M=r.value)===null||M===void 0||M.focus()},g=()=>{var M;(M=r.value)===null||M===void 0||M.blur()},y=M=>{var W;(W=r.value)===null||W===void 0||W.scrollTo(M)},v=V(()=>{const{mode:M}=e;if(M!=="combobox")return M===zt?"combobox":M}),{prefixCls:p,direction:w,renderEmpty:I,size:x,getPrefixCls:R,getPopupContainer:N,disabled:P,select:b}=kn("select",e),{compactSize:D,compactItemClassnames:O}=Co(p,w),E=V(()=>D.value||x.value),L=no(),B=V(()=>{var M;return(M=P.value)!==null&&M!==void 0?M:L.value}),[_,U]=gi(p),Y=V(()=>R()),K=V(()=>e.placement!==void 0?e.placement:w.value==="rtl"?"bottomRight":"bottomLeft"),G=V(()=>oo(Y.value,lo(K.value),e.transitionName)),z=V(()=>ue({[`${p.value}-lg`]:E.value==="large",[`${p.value}-sm`]:E.value==="small",[`${p.value}-rtl`]:w.value==="rtl",[`${p.value}-borderless`]:!e.bordered,[`${p.value}-in-form-item`]:f.isFormItemInput},fo(p.value,u.value,f.hasFeedback),O.value,U.value)),oe=function(){for(var M=arguments.length,W=new Array(M),ne=0;ne{o("blur",M),a.onFieldBlur()};i({blur:g,focus:s,scrollTo:y});const m=V(()=>v.value==="multiple"||v.value==="tags"),H=V(()=>e.showArrow!==void 0?e.showArrow:e.loading||!(m.value||v.value==="combobox"));return()=>{var M,W,ne,re;const{notFoundContent:se,listHeight:ee=256,listItemHeight:ce=24,popupClassName:pe,dropdownClassName:h,virtual:c,dropdownMatchSelectWidth:d,id:F=a.id.value,placeholder:$=(M=l.placeholder)===null||M===void 0?void 0:M.call(l),showArrow:j}=e,{hasFeedback:Q,feedbackIcon:Z}=f;let J;se!==void 0?J=se:l.notFoundContent?J=l.notFoundContent():v.value==="combobox"?J=null:J=(I==null?void 0:I("Select"))||T(io,{componentName:"Select"},null);const{suffixIcon:q,itemIcon:le,removeIcon:ae,clearIcon:He}=Il(S(S({},e),{multiple:m.value,prefixCls:p.value,hasFeedback:Q,feedbackIcon:Z,showArrow:H.value}),l),Le=je(e,["prefixCls","suffixIcon","itemIcon","removeIcon","clearIcon","size","bordered","status"]),Pe=ue(pe||h,{[`${p.value}-dropdown-${w.value}`]:w.value==="rtl"},U.value);return _(T(Sl,k(k(k({ref:r,virtual:c,dropdownMatchSelectWidth:d},Le),n),{},{showSearch:(W=e.showSearch)!==null&&W!==void 0?W:(ne=b==null?void 0:b.value)===null||ne===void 0?void 0:ne.showSearch,placeholder:$,listHeight:ee,listItemHeight:ce,mode:v.value,prefixCls:p.value,direction:w.value,inputIcon:q,menuItemSelectedIcon:le,removeIcon:ae,clearIcon:He,notFoundContent:J,class:[z.value,n.class],getPopupContainer:N==null?void 0:N.value,dropdownClassName:Pe,onChange:oe,onBlur:ie,id:F,dropdownRender:Le.dropdownRender||l.dropdownRender,transitionName:G.value,children:(re=l.default)===null||re===void 0?void 0:re.call(l),tagRender:e.tagRender||l.tagRender,optionLabelRender:l.optionLabel,maxTagPlaceholder:e.maxTagPlaceholder||l.maxTagPlaceholder,showArrow:Q||j,disabled:B.value}),{option:l.option}))}}});me.install=function(e){return e.component(me.name,me),e.component(me.Option.displayName,me.Option),e.component(me.OptGroup.displayName,me.OptGroup),e};const Ki=me.Option;me.OptGroup;const xe={adjustX:1,adjustY:1},Oe=[0,0],bi={topLeft:{points:["bl","tl"],overflow:xe,offset:[0,-4],targetOffset:Oe},topCenter:{points:["bc","tc"],overflow:xe,offset:[0,-4],targetOffset:Oe},topRight:{points:["br","tr"],overflow:xe,offset:[0,-4],targetOffset:Oe},bottomLeft:{points:["tl","bl"],overflow:xe,offset:[0,4],targetOffset:Oe},bottomCenter:{points:["tc","bc"],overflow:xe,offset:[0,4],targetOffset:Oe},bottomRight:{points:["tr","br"],overflow:xe,offset:[0,4],targetOffset:Oe}};var yi=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var l=0,o=Object.getOwnPropertySymbols(e);le.visible,v=>{v!==void 0&&(i.value=v)});const r=de();l({triggerRef:r});const a=v=>{e.visible===void 0&&(i.value=!1),o("overlayClick",v)},f=v=>{e.visible===void 0&&(i.value=v),o("visibleChange",v)},u=()=>{var v;const p=(v=n.overlay)===null||v===void 0?void 0:v.call(n),w={prefixCls:`${e.prefixCls}-menu`,onClick:a};return T(Te,{key:ao},[e.arrow&&T("div",{class:`${e.prefixCls}-arrow`},null),ze(p,w,!1)])},s=V(()=>{const{minOverlayWidthMatchTrigger:v=!e.alignPoint}=e;return v}),g=()=>{var v;const p=(v=n.default)===null||v===void 0?void 0:v.call(n);return i.value&&p?ze(p[0],{class:e.openClassName||`${e.prefixCls}-open`},!1):p},y=V(()=>!e.hideAction&&e.trigger.indexOf("contextmenu")!==-1?["click"]:e.hideAction);return()=>{const{prefixCls:v,arrow:p,showAction:w,overlayStyle:I,trigger:x,placement:R,align:N,getPopupContainer:P,transitionName:b,animation:D,overlayClassName:O}=e,E=yi(e,["prefixCls","arrow","showAction","overlayStyle","trigger","placement","align","getPopupContainer","transitionName","animation","overlayClassName"]);return T(Kt,k(k({},E),{},{prefixCls:v,ref:r,popupClassName:ue(O,{[`${v}-show-arrow`]:p}),popupStyle:I,builtinPlacements:bi,action:x,showAction:w,hideAction:y.value||[],popupPlacement:R,popupAlign:N,popupTransitionName:b,popupAnimation:D,popupVisible:i.value,stretch:s.value?"minWidth":"",onPopupVisibleChange:f,getPopupContainer:P}),{popup:u,default:g})}}});export{pt as D,ol as L,me as S,Ki as a,Nl as b,Wi as c,Ao as d,un as e,_i as f,Ai as g,zi as h,At as i,Bi as j,mt as k,Vl as l,$l as m,zl as n,_l as o,Ol as p,hi as s,cn as t}; diff --git a/src/agentkit/server/static/assets/EvolutionView-BhOD-ngQ.js b/src/agentkit/server/static/assets/EvolutionView-BhOD-ngQ.js new file mode 100644 index 0000000..cb5498d --- /dev/null +++ b/src/agentkit/server/static/assets/EvolutionView-BhOD-ngQ.js @@ -0,0 +1,40 @@ +import{c as J,p as Cw,q as Mw,_ as dr,s as Aw,d as gi,z as Dw,E as qs,a4 as Iw,a5 as ff,a6 as Lw,a7 as Pw,a8 as l0,B as _u,a9 as Rw,Q as Ew,r as ze,I as uv,a1 as Ow,o as ge,a as me,b as Q,e as fe,w as Ce,aa as kw,t as Pe,X as vt,W as ho,F as Zi,j as qi,n as Wc,u as Bw,g as $d,f as Ui,$ as u0,A as Xd,C as Nw}from"./index-Ci55MVrK.js";import{B as Fw}from"./base-B4siOKZE.js";import{S as zw,C as ts}from"./index-CIzBtwkp.js";import{i as f0,_ as No}from"./_plugin-vue_export-helper-CBXJ7-XR.js";import{o as Gw}from"./FormItemContext-D_7H_KA_.js";import{B as Yc}from"./index-Dr_Qcbdk.js";import{T as bl}from"./index-DaJ9bCD1.js";import{S as Hw,a as cf}from"./Dropdown-BUKifQVF.js";import{I as Vw}from"./index-D6JhFblJ.js";import{A as Uw,a as hf}from"./index-DBR_iMr9.js";import{T as Ww,_ as Yw}from"./index-BLB5C8KY.js";import"./zoom-C2fVs05p.js";import"./pickAttrs-Crnv5AEc.js";import"./index-B5q-1V92.js";import"./Checkbox-C1b034xJ.js";const c0=r=>{const{value:e,formatter:t,precision:n,decimalSeparator:i,groupSeparator:a="",prefixCls:o}=r;let s;if(typeof t=="function")s=t({value:e});else{const l=String(e),u=l.match(/^(-?)(\d*)(\.(\d+))?$/);if(!u)s=l;else{const f=u[1];let c=u[2]||"0",h=u[4]||"";c=c.replace(/\B(?=(\d{3})+(?!\d))/g,a),typeof n=="number"&&(h=h.padEnd(n,"0").slice(0,n>0?n:0)),h&&(h=`${i}${h}`),s=[J("span",{key:"int",class:`${o}-content-value-int`},[f,c]),h&&J("span",{key:"decimal",class:`${o}-content-value-decimal`},[h])]}}return J("span",{class:`${o}-content-value`},[s])};c0.displayName="StatisticNumber";const $w=r=>{const{componentCls:e,marginXXS:t,padding:n,colorTextDescription:i,statisticTitleFontSize:a,colorTextHeading:o,statisticContentFontSize:s,statisticFontFamily:l}=r;return{[`${e}`]:dr(dr({},Aw(r)),{[`${e}-title`]:{marginBottom:t,color:i,fontSize:a},[`${e}-skeleton`]:{paddingTop:n},[`${e}-content`]:{color:o,fontSize:s,fontFamily:l,[`${e}-content-value`]:{display:"inline-block",direction:"ltr"},[`${e}-content-prefix, ${e}-content-suffix`]:{display:"inline-block"},[`${e}-content-prefix`]:{marginInlineEnd:t},[`${e}-content-suffix`]:{marginInlineStart:t}}})}},Xw=Cw("Statistic",r=>{const{fontSizeHeading3:e,fontSize:t,fontFamily:n}=r,i=Mw(r,{statisticTitleFontSize:t,statisticContentFontSize:e,statisticFontFamily:n});return[$w(i)]}),h0=()=>({prefixCls:String,decimalSeparator:String,groupSeparator:String,format:String,value:l0([Number,String,Object]),valueStyle:{type:Object,default:void 0},valueRender:Pw(),formatter:Lw(),precision:Number,prefix:ff(),suffix:ff(),title:ff(),loading:Iw()}),Gt=gi({compatConfig:{MODE:3},name:"AStatistic",inheritAttrs:!1,props:f0(h0(),{decimalSeparator:".",groupSeparator:",",loading:!1}),slots:Object,setup(r,e){let{slots:t,attrs:n}=e;const{prefixCls:i,direction:a}=Dw("statistic",r),[o,s]=Xw(i);return()=>{var l,u,f,c,h,v,d;const{value:p=0,valueStyle:g,valueRender:m}=r,y=i.value,_=(l=r.title)!==null&&l!==void 0?l:(u=t.title)===null||u===void 0?void 0:u.call(t),S=(f=r.prefix)!==null&&f!==void 0?f:(c=t.prefix)===null||c===void 0?void 0:c.call(t),b=(h=r.suffix)!==null&&h!==void 0?h:(v=t.suffix)===null||v===void 0?void 0:v.call(t),w=(d=r.formatter)!==null&&d!==void 0?d:t.formatter;let x=J(c0,qs({"data-for-update":Date.now()},dr(dr({},r),{prefixCls:y,value:p,formatter:w})),null);return m&&(x=m(x)),o(J("div",qs(qs({},n),{},{class:[y,{[`${y}-rtl`]:a.value==="rtl"},n.class,s.value]}),[_&&J("div",{class:`${y}-title`},[_]),J(zw,{paragraph:!1,loading:r.loading},{default:()=>[J("div",{style:g,class:`${y}-content`},[S&&J("span",{class:`${y}-content-prefix`},[S]),x,b&&J("span",{class:`${y}-content-suffix`},[b])])]})]))}}}),Zw=[["Y",1e3*60*60*24*365],["M",1e3*60*60*24*30],["D",1e3*60*60*24],["H",1e3*60*60],["m",1e3*60],["s",1e3],["S",1]];function qw(r,e){let t=r;const n=/\[[^\]]*]/g,i=(e.match(n)||[]).map(l=>l.slice(1,-1)),a=e.replace(n,"[]"),o=Zw.reduce((l,u)=>{let[f,c]=u;if(l.includes(f)){const h=Math.floor(t/c);return t-=h*c,l.replace(new RegExp(`${f}+`,"g"),v=>{const d=v.length;return h.toString().padStart(d,"0")})}return l},a);let s=0;return o.replace(n,()=>{const l=i[s];return s+=1,l})}function Kw(r,e){const{format:t=""}=e,n=new Date(r).getTime(),i=Date.now(),a=Math.max(n-i,0);return qw(a,t)}const Qw=1e3/30;function vf(r){return new Date(r).getTime()}const jw=()=>dr(dr({},h0()),{value:l0([Number,String,Object]),format:String,onFinish:Function,onChange:Function}),Jw=gi({compatConfig:{MODE:3},name:"AStatisticCountdown",props:f0(jw(),{format:"HH:mm:ss"}),setup(r,e){let{emit:t,slots:n}=e;const i=ze(),a=ze(),o=()=>{const{value:c}=r;vf(c)>=Date.now()?s():l()},s=()=>{if(i.value)return;const c=vf(r.value);i.value=setInterval(()=>{a.value.$forceUpdate(),c>Date.now()&&t("change",c-Date.now()),o()},Qw)},l=()=>{const{value:c}=r;i.value&&(clearInterval(i.value),i.value=void 0,vf(c){let{value:h,config:v}=c;const{format:d}=r;return Kw(h,dr(dr({},v),{format:d}))},f=c=>c;return _u(()=>{o()}),Rw(()=>{o()}),Ew(()=>{l()}),()=>{const c=r.value;return J(Gt,qs({ref:a},dr(dr({},Gw(r,["onFinish","onChange"])),{value:c,valueRender:f,formatter:u})),n)}}});Gt.Countdown=Jw;Gt.install=function(r){return r.component(Gt.name,Gt),r.component(Gt.Countdown.name,Gt.Countdown),r};Gt.Countdown;var ex={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"};function Zd(r){for(var e=1;e0&&t.set("steps",e.steps.join(",")),this.request(`/evolution-dashboard/pitfalls?${t.toString()}`)}async getPathOptimizations(e){const t=new URLSearchParams;e!=null&&e.task_type&&t.set("task_type",e.task_type),e!=null&&e.limit&&t.set("limit",String(e.limit));const n=t.toString();return this.request(`/evolution-dashboard/path-optimizations${n?"?"+n:""}`)}async getUsage(e){const t=new URLSearchParams;e!=null&&e.period&&t.set("period",e.period);const n=t.toString();return this.request(`/evolution-dashboard/usage${n?"?"+n:""}`)}createWebSocket(){return super.createWebSocket("/evolution-dashboard/ws")}}const qn=new sx,v0=Ow("evolution",()=>{const r=ze([]),e=ze(null),t=ze([]),n=ze([]),i=ze([]),a=ze("7d"),o=ze(!1),s=ze(null);let l=null,u=0;const f=3,c=5e3;let h=!1,v=null;async function d(S){o.value=!0,s.value=null;try{const b=await qn.getExperiences({outcome:S,limit:50});r.value=b.experiences}catch(b){s.value=b instanceof Error?b.message:"加载经验记录失败",console.error("Failed to load experiences:",b)}finally{o.value=!1}}async function p(S){o.value=!0,s.value=null;const b=S||a.value;try{const w=await qn.getMetrics(b);e.value=w.metrics,t.value=w.trends,a.value=b}catch(w){s.value=w instanceof Error?w.message:"加载指标数据失败",console.error("Failed to load metrics:",w)}finally{o.value=!1}}async function g(S,b){o.value=!0,s.value=null;try{const w=await qn.checkPitfalls({task_type:S,steps:b});n.value=w.warnings}catch(w){s.value=w instanceof Error?w.message:"检查避坑预警失败",console.error("Failed to check pitfalls:",w)}finally{o.value=!1}}async function m(S){o.value=!0,s.value=null;try{const b=await qn.getPathOptimizations({task_type:S,limit:20});i.value=b.optimizations}catch(b){s.value=b instanceof Error?b.message:"加载路径优化记录失败",console.error("Failed to load optimizations:",b)}finally{o.value=!1}}function y(){if(l)return;h=!1;const S=qn.createWebSocket();S.onopen=()=>{u=0,S.send(JSON.stringify({type:"subscribe",channels:["experiences","metrics","pitfalls","optimizations"]}))},S.onmessage=b=>{var w;try{const x=JSON.parse(b.data);switch(x.type){case"experience_added":d();break;case"metrics_updated":p(a.value);break;case"pitfall_detected":n.value=((w=x.data)==null?void 0:w.warnings)??n.value;break;case"optimization_updated":m();break}}catch{}},S.onclose=()=>{l=null,!h&&u{S.close()},l=S}function _(){h=!0,v&&(clearTimeout(v),v=null),l&&(l.onclose=null,l.close(),l=null),u=f}return{experiences:r,metrics:e,trends:t,pitfalls:n,optimizations:i,period:a,isLoading:o,error:s,loadExperiences:d,loadMetrics:p,checkPitfalls:g,loadOptimizations:m,connectWebSocket:y,disconnectWebSocket:_}}),lx={class:"dashboard-overview"},ux={class:"overview-cards"},fx={class:"overview-card__footer"},cx={class:"overview-sections"},hx={class:"overview-section"},vx={class:"overview-section__header"},dx={key:0,class:"overview-section__empty"},px={key:1,class:"overview-section__list"},gx={class:"experience-item__info"},mx={class:"experience-item__goal"},yx={class:"experience-item__meta"},_x={class:"overview-section"},Sx={class:"overview-section__header"},bx={key:0,class:"overview-section__empty"},xx={key:1,class:"overview-section__list"},Tx={class:"pitfall-item__step"},Cx={class:"pitfall-item__rate"},Mx=gi({__name:"DashboardOverview",setup(r){const e=Bw(),t=v0(),n=$d(()=>t.metrics),i=$d(()=>t.experiences.slice(0,5)),a=ze(0),o=ze({total_tokens:0,total_requests:0});_u(async()=>{try{const c=await qn.getUsage({period:"7d"});o.value={total_tokens:c.summary.total_tokens,total_requests:c.summary.total_requests}}catch{}if(t.experiences.length>0){const c=new Set(t.experiences.map(h=>h.task_type));a.value=c.size}});function s(c){e.push(`/evolution/${c}`)}function l(c){if(!c)return"";const h=new Date(c);return`${h.getMonth()+1}/${h.getDate()} ${h.getHours().toString().padStart(2,"0")}:${h.getMinutes().toString().padStart(2,"0")}`}function u(c){switch(c){case"high":return"red";case"medium":return"orange";case"low":return"blue";default:return"default"}}function f(c){switch(c){case"high":return"高";case"medium":return"中";case"low":return"低";default:return c}}return(c,h)=>(ge(),me("div",lx,[Q("div",ux,[J(fe(ts),{hoverable:"",class:"overview-card",onClick:h[0]||(h[0]=v=>s("experiences"))},{default:Ce(()=>{var v;return[J(fe(Gt),{title:"总任务数",value:((v=n.value)==null?void 0:v.total_tasks)??0,"value-style":{color:"#7c3aed"}},{prefix:Ce(()=>[J(fe(kw))]),_:1},8,["value"])]}),_:1}),J(fe(ts),{hoverable:"",class:"overview-card",onClick:h[1]||(h[1]=v=>s("experiences"))},{default:Ce(()=>[J(fe(Gt),{title:"Agent 活跃数",value:a.value,"value-style":{color:"#7c3aed"}},{prefix:Ce(()=>[J(fe(hv))]),_:1},8,["value"])]),_:1}),J(fe(ts),{hoverable:"",class:"overview-card",onClick:h[2]||(h[2]=v=>s("usage"))},{default:Ce(()=>[J(fe(Gt),{title:"LLM 用量",value:o.value.total_tokens,"value-style":{color:"#3b82f6"}},{prefix:Ce(()=>[J(fe(fv))]),_:1},8,["value"]),Q("div",fx,Pe(o.value.total_requests)+" 次请求",1)]),_:1}),J(fe(ts),{hoverable:"",class:"overview-card",onClick:h[3]||(h[3]=v=>s("metrics"))},{default:Ce(()=>[J(fe(Gt),{title:"质量通过率",value:n.value?(n.value.success_rate*100).toFixed(1):"0.0",suffix:"%","value-style":{color:"#10b981"}},{prefix:Ce(()=>[J(fe(cv))]),_:1},8,["value"])]),_:1})]),Q("div",cx,[Q("div",hx,[Q("div",vx,[h[7]||(h[7]=Q("h3",null,"最近经验",-1)),J(fe(Yc),{type:"link",size:"small",onClick:h[4]||(h[4]=v=>s("experiences"))},{default:Ce(()=>[...h[6]||(h[6]=[vt("查看全部",-1)])]),_:1})]),i.value.length===0?(ge(),me("div",dx,[J(fe(ho),{description:"暂无经验记录","image-style":{height:"40px"}})])):(ge(),me("div",px,[(ge(!0),me(Zi,null,qi(i.value,v=>(ge(),me("div",{key:v.id,class:"experience-item"},[Q("div",{class:Wc(["experience-item__dot",`experience-item__dot--${v.outcome}`])},null,2),Q("div",gx,[Q("span",mx,Pe(v.goal||v.task_type),1),Q("span",yx,Pe(v.task_type)+" · "+Pe(l(v.created_at)),1)]),J(fe(bl),{color:v.outcome==="success"?"success":"error",size:"small"},{default:Ce(()=>[vt(Pe(v.outcome==="success"?"成功":"失败"),1)]),_:2},1032,["color"])]))),128))]))]),Q("div",_x,[Q("div",Sx,[h[9]||(h[9]=Q("h3",null,"避坑预警",-1)),J(fe(Yc),{type:"link",size:"small",onClick:h[5]||(h[5]=v=>s("pitfalls"))},{default:Ce(()=>[...h[8]||(h[8]=[vt("查看全部",-1)])]),_:1})]),fe(t).pitfalls.length===0?(ge(),me("div",bx,[J(fe(ho),{description:"暂无预警信息","image-style":{height:"40px"}})])):(ge(),me("div",xx,[(ge(!0),me(Zi,null,qi(fe(t).pitfalls.slice(0,5),(v,d)=>(ge(),me("div",{key:d,class:"pitfall-item"},[J(fe(bl),{color:u(v.risk_level),size:"small"},{default:Ce(()=>[vt(Pe(f(v.risk_level)),1)]),_:2},1032,["color"]),Q("span",Tx,Pe(v.step),1),Q("span",Cx,Pe((v.historical_failure_rate*100).toFixed(0))+"%",1)]))),128))]))])])]))}}),Ax=No(Mx,[["__scopeId","data-v-f22d8816"]]),Dx={class:"experience-timeline"},Ix={class:"timeline-header"},Lx={key:0,class:"timeline-empty"},Px={key:1,class:"timeline-list"},Rx=["onClick"],Ex={class:"timeline-card__header"},Ox={class:"timeline-card__goal"},kx={class:"timeline-card__meta"},Bx={class:"timeline-card__type"},Nx={class:"timeline-card__duration"},Fx={class:"timeline-card__time"},zx={key:0,class:"timeline-card__detail"},Gx={key:0,class:"detail-section"},Hx={class:"detail-text"},Vx={key:1,class:"detail-section"},Ux={class:"detail-list"},Wx={key:2,class:"detail-section"},Yx={class:"detail-list"},$x=gi({__name:"ExperienceTimeline",props:{experiences:{}},emits:["filter"],setup(r,{emit:e}){const t=e,n=ze(null),i=ze("");function a(u){n.value=n.value===u?null:u}function o(){t("filter",i.value)}function s(u){return u<60?`${u.toFixed(1)}秒`:u<3600?`${(u/60).toFixed(1)}分钟`:`${(u/3600).toFixed(1)}小时`}function l(u){if(!u)return"";const f=new Date(u);return`${f.getMonth()+1}/${f.getDate()} ${f.getHours().toString().padStart(2,"0")}:${f.getMinutes().toString().padStart(2,"0")}`}return(u,f)=>(ge(),me("div",Dx,[Q("div",Ix,[f[4]||(f[4]=Q("h3",null,"经验时间线",-1)),J(fe(Hw),{value:i.value,"onUpdate:value":f[0]||(f[0]=c=>i.value=c),style:{width:"120px"},size:"small",onChange:o},{default:Ce(()=>[J(fe(cf),{value:""},{default:Ce(()=>[...f[1]||(f[1]=[vt("全部",-1)])]),_:1}),J(fe(cf),{value:"success"},{default:Ce(()=>[...f[2]||(f[2]=[vt("成功",-1)])]),_:1}),J(fe(cf),{value:"failure"},{default:Ce(()=>[...f[3]||(f[3]=[vt("失败",-1)])]),_:1})]),_:1},8,["value"])]),r.experiences.length===0?(ge(),me("div",Lx,[J(fe(ho),{description:"暂无经验记录"})])):(ge(),me("div",Px,[(ge(!0),me(Zi,null,qi(r.experiences,(c,h)=>{var v,d;return ge(),me("div",{key:c.id,class:Wc(["timeline-item",{"timeline-item--left":h%2===0,"timeline-item--right":h%2!==0}])},[Q("div",{class:Wc(["timeline-dot",`timeline-dot--${c.outcome}`])},null,2),Q("div",{class:"timeline-card",onClick:p=>a(c.id)},[Q("div",Ex,[Q("span",Ox,Pe(c.goal||c.task_type),1),J(fe(bl),{color:c.outcome==="success"?"success":"error",size:"small"},{default:Ce(()=>[vt(Pe(c.outcome==="success"?"成功":"失败"),1)]),_:2},1032,["color"])]),Q("div",kx,[Q("span",Bx,Pe(c.task_type),1),Q("span",Nx,Pe(s(c.duration)),1),Q("span",Fx,Pe(l(c.created_at)),1)]),n.value===c.id?(ge(),me("div",zx,[c.steps_summary?(ge(),me("div",Gx,[f[5]||(f[5]=Q("div",{class:"detail-label"},"步骤摘要",-1)),Q("div",Hx,Pe(c.steps_summary),1)])):Ui("",!0),(v=c.failure_reasons)!=null&&v.length?(ge(),me("div",Vx,[f[6]||(f[6]=Q("div",{class:"detail-label"},"失败原因",-1)),Q("ul",Ux,[(ge(!0),me(Zi,null,qi(c.failure_reasons,(p,g)=>(ge(),me("li",{key:g},Pe(p),1))),128))])])):Ui("",!0),(d=c.optimization_tips)!=null&&d.length?(ge(),me("div",Wx,[f[7]||(f[7]=Q("div",{class:"detail-label"},"优化建议",-1)),Q("ul",Yx,[(ge(!0),me(Zi,null,qi(c.optimization_tips,(p,g)=>(ge(),me("li",{key:g},Pe(p),1))),128))])])):Ui("",!0)])):Ui("",!0)],8,Rx)],2)}),128))]))]))}}),Xx=No($x,[["__scopeId","data-v-c223af1f"]]),Zx={class:"pitfall-panel"},qx={class:"pitfall-input"},Kx={key:0,class:"pitfall-empty"},Qx={key:1,class:"pitfall-list"},jx={class:"pitfall-item__header"},Jx={class:"pitfall-item__step"},eT={class:"pitfall-item__rate"},tT={key:0,class:"pitfall-item__reason"},rT={key:1,class:"pitfall-item__suggestion"},nT=gi({__name:"PitfallPanel",props:{warnings:{},loading:{type:Boolean}},emits:["check"],setup(r,{emit:e}){const t=e,n=ze("");function i(){n.value.trim()&&t("check",n.value.trim())}function a(s){switch(s){case"high":return"red";case"medium":return"orange";case"low":return"blue";default:return"default"}}function o(s){switch(s){case"high":return"高风险";case"medium":return"中风险";case"low":return"低风险";default:return s}}return(s,l)=>(ge(),me("div",Zx,[l[4]||(l[4]=Q("div",{class:"pitfall-header"},[Q("h3",null,"避坑预警")],-1)),Q("div",qx,[J(fe(Vw),{value:n.value,"onUpdate:value":l[0]||(l[0]=u=>n.value=u),placeholder:"输入任务类型",size:"small",style:{flex:"1"},onPressEnter:i},null,8,["value"]),J(fe(Yc),{type:"primary",size:"small",loading:r.loading,onClick:i},{default:Ce(()=>[...l[1]||(l[1]=[vt(" 检查 ",-1)])]),_:1},8,["loading"])]),r.warnings.length===0&&!r.loading?(ge(),me("div",Kx,[J(fe(ho),{description:"暂无预警信息","image-style":{height:"40px"}})])):(ge(),me("div",Qx,[(ge(!0),me(Zi,null,qi(r.warnings,(u,f)=>(ge(),me("div",{key:f,class:"pitfall-item"},[Q("div",jx,[J(fe(bl),{color:a(u.risk_level),size:"small"},{default:Ce(()=>[vt(Pe(o(u.risk_level)),1)]),_:2},1032,["color"]),Q("span",Jx,Pe(u.step),1)]),Q("div",eT,[l[2]||(l[2]=vt(" 历史失败率: ",-1)),Q("strong",null,Pe((u.historical_failure_rate*100).toFixed(1))+"%",1)]),u.reason?(ge(),me("div",tT,Pe(u.reason),1)):Ui("",!0),u.suggestion&&u.suggestion!==u.reason?(ge(),me("div",rT,[l[3]||(l[3]=Q("span",{class:"suggestion-icon"},"💡",-1)),vt(" "+Pe(u.suggestion),1)])):Ui("",!0)]))),128))]))]))}}),iT=No(nT,[["__scopeId","data-v-d211a4c7"]]);/*! ***************************************************************************** +Copyright (c) Microsoft Corporation. + +Permission to use, copy, modify, and/or distribute this software for any +purpose with or without fee is hereby granted. + +THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH +REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY +AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, +INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM +LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR +OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR +PERFORMANCE OF THIS SOFTWARE. +***************************************************************************** */var $c=function(r,e){return $c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])},$c(r,e)};function F(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");$c(r,e);function t(){this.constructor=r}r.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}var aT=function(){function r(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return r}(),oT=function(){function r(){this.browser=new aT,this.node=!1,this.wxa=!1,this.worker=!1,this.svgSupported=!1,this.touchEventsSupported=!1,this.pointerEventsSupported=!1,this.domSupported=!1,this.transformSupported=!1,this.transform3dSupported=!1,this.hasGlobalWindow=typeof window<"u"}return r}(),oe=new oT;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?(oe.wxa=!0,oe.touchEventsSupported=!0):typeof document>"u"&&typeof self<"u"?oe.worker=!0:!oe.hasGlobalWindow||"Deno"in window||typeof navigator<"u"&&typeof navigator.userAgent=="string"&&navigator.userAgent.indexOf("Node.js")>-1?(oe.node=!0,oe.svgSupported=!0):sT(navigator.userAgent,oe);function sT(r,e){var t=e.browser,n=r.match(/Firefox\/([\d.]+)/),i=r.match(/MSIE\s([\d.]+)/)||r.match(/Trident\/.+?rv:(([\d.]+))/),a=r.match(/Edge?\/([\d.]+)/),o=/micromessenger/i.test(r);n&&(t.firefox=!0,t.version=n[1]),i&&(t.ie=!0,t.version=i[1]),a&&(t.edge=!0,t.version=a[1],t.newEdge=+a[1].split(".")[0]>18),o&&(t.weChat=!0),e.svgSupported=typeof SVGRect<"u",e.touchEventsSupported="ontouchstart"in window&&!t.ie&&!t.edge,e.pointerEventsSupported="onpointerdown"in window&&(t.edge||t.ie&&+t.version>=11);var s=e.domSupported=typeof document<"u";if(s){var l=document.documentElement.style;e.transform3dSupported=(t.ie&&"transition"in l||t.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in l)&&!("OTransition"in l),e.transformSupported=e.transform3dSupported||t.ie&&+t.version>=9}}var vv=12,lT="sans-serif",mn=vv+"px "+lT,uT=20,fT=100,cT="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function hT(r){var e={};if(typeof JSON>"u")return e;for(var t=0;t=0)s=o*t.length;else for(var l=0;l=mT&&(df=0),df++}function bu(){for(var r=[],e=0;e>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",n[l]+":0",i[u]+":0",n[1-l]+":auto",i[1-u]+":auto",""].join("!important;"),r.appendChild(o),t.push(o)}return e.clearMarkers=function(){A(t,function(f){f.parentNode&&f.parentNode.removeChild(f)})},t}function GT(r,e,t){for(var n=t?"invTrans":"trans",i=e[n],a=e.srcCoords,o=[],s=[],l=!0,u=0;u<4;u++){var f=r[u].getBoundingClientRect(),c=2*u,h=f.left,v=f.top;o.push(h,v),l=l&&a&&h===a[c]&&v===a[c+1],s.push(r[u].offsetLeft,r[u].offsetTop)}return l&&i?i:(e.srcCoords=o,e[n]=t?jd(s,o):jd(o,s))}function I0(r){return r.nodeName.toUpperCase()==="CANVAS"}var HT=/([&<>"'])/g,VT={"&":"&","<":"<",">":">",'"':""","'":"'"};function ft(r){return r==null?"":(r+"").replace(HT,function(e,t){return VT[t]})}var UT=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,gf=[],WT=oe.browser.firefox&&+oe.browser.version.split(".")[0]<39;function Qc(r,e,t,n){return t=t||{},n?Jd(r,e,t):WT&&e.layerX!=null&&e.layerX!==e.offsetX?(t.zrX=e.layerX,t.zrY=e.layerY):e.offsetX!=null?(t.zrX=e.offsetX,t.zrY=e.offsetY):Jd(r,e,t),t}function Jd(r,e,t){if(oe.domSupported&&r.getBoundingClientRect){var n=e.clientX,i=e.clientY;if(I0(r)){var a=r.getBoundingClientRect();t.zrX=n-a.left,t.zrY=i-a.top;return}else if(Kc(gf,r,n,i)){t.zrX=gf[0],t.zrY=gf[1];return}}t.zrX=t.zrY=0}function bv(r){return r||window.event}function Et(r,e,t){if(e=bv(e),e.zrX!=null)return e;var n=e.type,i=n&&n.indexOf("touch")>=0;if(i){var o=n!=="touchend"?e.targetTouches[0]:e.changedTouches[0];o&&Qc(r,o,e,t)}else{Qc(r,e,e,t);var a=YT(e);e.zrDelta=a?a/120:-(e.detail||0)/3}var s=e.button;return e.which==null&&s!==void 0&&UT.test(e.type)&&(e.which=s&1?1:s&2?3:s&4?2:0),e}function YT(r){var e=r.wheelDelta;if(e)return e;var t=r.deltaX,n=r.deltaY;if(t==null||n==null)return e;var i=Math.abs(n!==0?n:t),a=n>0?-1:n<0?1:t>0?-1:1;return 3*i*a}function $T(r,e,t,n){r.addEventListener(e,t,n)}function XT(r,e,t,n){r.removeEventListener(e,t,n)}var aa=function(r){r.preventDefault(),r.stopPropagation(),r.cancelBubble=!0};function ep(r){return r.which===2||r.which===3}var ZT=function(){function r(){this._track=[]}return r.prototype.recognize=function(e,t,n){return this._doTrack(e,t,n),this._recognize(e)},r.prototype.clear=function(){return this._track.length=0,this},r.prototype._doTrack=function(e,t,n){var i=e.touches;if(i){for(var a={points:[],touches:[],target:t,event:e},o=0,s=i.length;o1&&n&&n.length>1){var a=tp(n)/tp(i);!isFinite(a)&&(a=1),e.pinchScale=a;var o=qT(n);return e.pinchX=o[0],e.pinchY=o[1],{type:"pinch",target:r[0].target,event:e}}}}};function Ut(){return[1,0,0,1,0,0]}function yi(r){return r[0]=1,r[1]=0,r[2]=0,r[3]=1,r[4]=0,r[5]=0,r}function Go(r,e){return r[0]=e[0],r[1]=e[1],r[2]=e[2],r[3]=e[3],r[4]=e[4],r[5]=e[5],r}function ni(r,e,t){var n=e[0]*t[0]+e[2]*t[1],i=e[1]*t[0]+e[3]*t[1],a=e[0]*t[2]+e[2]*t[3],o=e[1]*t[2]+e[3]*t[3],s=e[0]*t[4]+e[2]*t[5]+e[4],l=e[1]*t[4]+e[3]*t[5]+e[5];return r[0]=n,r[1]=i,r[2]=a,r[3]=o,r[4]=s,r[5]=l,r}function Al(r,e,t){return r[0]=e[0],r[1]=e[1],r[2]=e[2],r[3]=e[3],r[4]=e[4]+t[0],r[5]=e[5]+t[1],r}function Tu(r,e,t,n){n===void 0&&(n=[0,0]);var i=e[0],a=e[2],o=e[4],s=e[1],l=e[3],u=e[5],f=Math.sin(t),c=Math.cos(t);return r[0]=i*c+s*f,r[1]=-i*f+s*c,r[2]=a*c+l*f,r[3]=-a*f+c*l,r[4]=c*(o-n[0])+f*(u-n[1])+n[0],r[5]=c*(u-n[1])-f*(o-n[0])+n[1],r}function L0(r,e,t){var n=t[0],i=t[1];return r[0]=e[0]*n,r[1]=e[1]*i,r[2]=e[2]*n,r[3]=e[3]*i,r[4]=e[4]*n,r[5]=e[5]*i,r}function _i(r,e){var t=e[0],n=e[2],i=e[4],a=e[1],o=e[3],s=e[5],l=t*o-a*n;return l?(l=1/l,r[0]=o*l,r[1]=-a*l,r[2]=-n*l,r[3]=t*l,r[4]=(n*s-o*i)*l,r[5]=(a*i-t*s)*l,r):null}function KT(r){var e=Ut();return Go(e,r),e}const QT=Object.freeze(Object.defineProperty({__proto__:null,clone:KT,copy:Go,create:Ut,identity:yi,invert:_i,mul:ni,rotate:Tu,scale:L0,translate:Al},Symbol.toStringTag,{value:"Module"}));var ie=function(){function r(e,t){this.x=e||0,this.y=t||0}return r.prototype.copy=function(e){return this.x=e.x,this.y=e.y,this},r.prototype.clone=function(){return new r(this.x,this.y)},r.prototype.set=function(e,t){return this.x=e,this.y=t,this},r.prototype.equal=function(e){return e.x===this.x&&e.y===this.y},r.prototype.add=function(e){return this.x+=e.x,this.y+=e.y,this},r.prototype.scale=function(e){this.x*=e,this.y*=e},r.prototype.scaleAndAdd=function(e,t){this.x+=e.x*t,this.y+=e.y*t},r.prototype.sub=function(e){return this.x-=e.x,this.y-=e.y,this},r.prototype.dot=function(e){return this.x*e.x+this.y*e.y},r.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},r.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},r.prototype.normalize=function(){var e=this.len();return this.x/=e,this.y/=e,this},r.prototype.distance=function(e){var t=this.x-e.x,n=this.y-e.y;return Math.sqrt(t*t+n*n)},r.prototype.distanceSquare=function(e){var t=this.x-e.x,n=this.y-e.y;return t*t+n*n},r.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},r.prototype.transform=function(e){if(e){var t=this.x,n=this.y;return this.x=e[0]*t+e[2]*n+e[4],this.y=e[1]*t+e[3]*n+e[5],this}},r.prototype.toArray=function(e){return e[0]=this.x,e[1]=this.y,e},r.prototype.fromArray=function(e){this.x=e[0],this.y=e[1]},r.set=function(e,t,n){e.x=t,e.y=n},r.copy=function(e,t){e.x=t.x,e.y=t.y},r.len=function(e){return Math.sqrt(e.x*e.x+e.y*e.y)},r.lenSquare=function(e){return e.x*e.x+e.y*e.y},r.dot=function(e,t){return e.x*t.x+e.y*t.y},r.add=function(e,t,n){e.x=t.x+n.x,e.y=t.y+n.y},r.sub=function(e,t,n){e.x=t.x-n.x,e.y=t.y-n.y},r.scale=function(e,t,n){e.x=t.x*n,e.y=t.y*n},r.scaleAndAdd=function(e,t,n,i){e.x=t.x+n.x*i,e.y=t.y+n.y*i},r.lerp=function(e,t,n,i){var a=1-i;e.x=a*t.x+i*n.x,e.y=a*t.y+i*n.y},r}(),Qn=Math.min,Wi=Math.max,jc=Math.abs,rp=["x","y"],jT=["width","height"],Tn=new ie,Cn=new ie,Mn=new ie,An=new ie,Ct=P0(),Ya=Ct.minTv,Jc=Ct.maxTv,eo=[0,0],te=function(){function r(e,t,n,i){yf(this,e,t,n,i)}return r.set=function(e,t,n,i,a){return i<0&&(t=t+i,i=-i),a<0&&(n=n+a,a=-a),e.x=t,e.y=n,e.width=i,e.height=a,e},r.prototype.union=function(e){var t=Qn(e.x,this.x),n=Qn(e.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=Wi(e.x+e.width,this.x+this.width)-t:this.width=e.width,isFinite(this.y)&&isFinite(this.height)?this.height=Wi(e.y+e.height,this.y+this.height)-n:this.height=e.height,this.x=t,this.y=n},r.prototype.applyTransform=function(e){r.applyTransform(this,this,e)},r.prototype.calculateTransform=function(e){return JT(Ut(),this,e)},r.prototype.intersect=function(e,t,n){return r.intersect(this,e,t,n)},r.intersect=function(e,t,n,i){n&&ie.set(n,0,0);var a=i&&i.outIntersectRect||null,o=i&&i.clamp;if(a&&(a.x=a.y=a.width=a.height=NaN),!e||!t)return!1;e instanceof r||(e=yf(eC,e.x,e.y,e.width,e.height)),t instanceof r||(t=yf(tC,t.x,t.y,t.width,t.height));var s=!!n;Ct.reset(i,s);var l=Ct.touchThreshold,u=e.x+l,f=e.x+e.width-l,c=e.y+l,h=e.y+e.height-l,v=t.x+l,d=t.x+t.width-l,p=t.y+l,g=t.y+t.height-l;if(u>f||c>h||v>d||p>g)return!1;var m=!(f=e.x&&t<=e.x+e.width&&n>=e.y&&n<=e.y+e.height},r.prototype.contain=function(e,t){return r.contain(this,e,t)},r.prototype.clone=function(){return new r(this.x,this.y,this.width,this.height)},r.prototype.copy=function(e){np(this,e)},r.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},r.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},r.prototype.isZero=function(){return this.width===0||this.height===0},r.create=function(e){return new r(e?e.x:0,e?e.y:0,e?e.width:0,e?e.height:0)},r.copy=function(e,t){return e.x=t.x,e.y=t.y,e.width=t.width,e.height=t.height,e},r.applyTransform=function(e,t,n){if(!n){e!==t&&np(e,t);return}if(n[1]<1e-5&&n[1]>-1e-5&&n[2]<1e-5&&n[2]>-1e-5){var i=n[0],a=n[3],o=n[4],s=n[5];e.x=t.x*i+o,e.y=t.y*a+s,e.width=t.width*i,e.height=t.height*a,e.width<0&&(e.x+=e.width,e.width=-e.width),e.height<0&&(e.y+=e.height,e.height=-e.height);return}Tn.x=Mn.x=t.x,Tn.y=An.y=t.y,Cn.x=An.x=t.x+t.width,Cn.y=Mn.y=t.y+t.height,Tn.transform(n),An.transform(n),Cn.transform(n),Mn.transform(n),e.x=Qn(Tn.x,Cn.x,Mn.x,An.x),e.y=Qn(Tn.y,Cn.y,Mn.y,An.y);var l=Wi(Tn.x,Cn.x,Mn.x,An.x),u=Wi(Tn.y,Cn.y,Mn.y,An.y);e.width=l-e.x,e.height=u-e.y},r.calculateTransform=function(e,t,n){var i=n.width/t.width,a=n.height/t.height;return e=yi(e||[]),Al(e,e,Ks(_f,-t.x,-t.y)),L0(e,e,Ks(_f,i,a)),Al(e,e,Ks(_f,n.x,n.y)),e},r}();te.create;var yf=te.set,np=te.copy,JT=te.calculateTransform;te.applyTransform;te.contain;var eC=new te(0,0,0,0),tC=new te(0,0,0,0),_f=[];function ip(r,e,t,n,i,a,o,s){var l=jc(e-t),u=jc(n-r),f=Qn(l,u),c=rp[i],h=rp[1-i],v=jT[i];e=u||!Ct.bidirectional)&&(Ya[c]=-u,Ya[h]=0,Ct.useDir&&Ct.calcDirMTV())))}function P0(){var r=0,e=new ie,t=new ie,n={minTv:new ie,maxTv:new ie,useDir:!1,dirMinTv:new ie,touchThreshold:0,bidirectional:!0,negativeSize:!1,reset:function(a,o){n.touchThreshold=0,a&&a.touchThreshold!=null&&(n.touchThreshold=Wi(0,a.touchThreshold)),n.negativeSize=!1,o&&(n.minTv.set(1/0,1/0),n.maxTv.set(0,0),n.useDir=!1,a&&a.direction!=null&&(n.useDir=!0,n.dirMinTv.copy(n.minTv),t.copy(n.minTv),r=a.direction,n.bidirectional=a.bidirectional==null||!!a.bidirectional,n.bidirectional||e.set(Math.cos(r),Math.sin(r))))},calcDirMTV:function(){var a=n.minTv,o=n.dirMinTv,s=a.y*a.y+a.x*a.x,l=Math.sin(r),u=Math.cos(r),f=l*a.y+u*a.x;if(i(f)){i(a.x)&&i(a.y)&&o.set(0,0);return}if(t.x=s*u/f,t.y=s*l/f,i(t.x)&&i(t.y)){o.set(0,0);return}(n.bidirectional||e.dot(t)>0)&&t.len()=0;c--){var h=a[c];h!==i&&!h.ignore&&!h.ignoreCoarsePointer&&(!h.parent||!h.parent.ignoreCoarsePointer)&&(Sf.copy(h.getBoundingRect()),h.transform&&Sf.applyTransform(h.transform),Sf.intersect(f)&&s.push(h))}if(s.length)for(var v=4,d=Math.PI/12,p=Math.PI*2,g=0;g4)return;this._downPoint=null}this.dispatchToElement(a,r,e)}});function oC(r,e,t){if(r[r.rectHover?"rectContain":"contain"](e,t)){for(var n=r,i=void 0,a=!1;n;){if(n.ignoreClip&&(a=!0),!a){var o=n.getClipPath();if(o&&!o.contain(e,t))return!1}n.silent&&(i=!0);var s=n.__hostTarget;n=s?n.ignoreHostSilent?null:s:n.parent}return i?R0:!0}return!1}function ap(r,e,t,n,i){for(var a=r.length-1;a>=0;a--){var o=r[a],s=void 0;if(o!==i&&!o.ignore&&(s=oC(o,t,n))&&(!e.topTarget&&(e.topTarget=o),s!==R0)){e.target=o;break}}}function O0(r,e,t){var n=r.painter;return e<0||e>n.getWidth()||t<0||t>n.getHeight()}var k0=32,wa=7;function sC(r){for(var e=0;r>=k0;)e|=r&1,r>>=1;return r+e}function op(r,e,t,n){var i=e+1;if(i===t)return 1;if(n(r[i++],r[e])<0){for(;i=0;)i++;return i-e}function lC(r,e,t){for(t--;e>>1,i(a,r[l])<0?s=l:o=l+1;var u=n-o;switch(u){case 3:r[o+3]=r[o+2];case 2:r[o+2]=r[o+1];case 1:r[o+1]=r[o];break;default:for(;u>0;)r[o+u]=r[o+u-1],u--}r[o]=a}}function bf(r,e,t,n,i,a){var o=0,s=0,l=1;if(a(r,e[t+i])>0){for(s=n-i;l0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=i,l+=i}else{for(s=i+1;ls&&(l=s);var u=o;o=i-l,l=i-u}for(o++;o>>1);a(r,e[t+f])>0?o=f+1:l=f}return l}function wf(r,e,t,n,i,a){var o=0,s=0,l=1;if(a(r,e[t+i])<0){for(s=i+1;ls&&(l=s);var u=o;o=i-l,l=i-u}else{for(s=n-i;l=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=i,l+=i}for(o++;o>>1);a(r,e[t+f])<0?l=f:o=f+1}return l}function uC(r,e){var t=wa,n,i,a=0,o=[];n=[],i=[];function s(v,d){n[a]=v,i[a]=d,a+=1}function l(){for(;a>1;){var v=a-2;if(v>=1&&i[v-1]<=i[v]+i[v+1]||v>=2&&i[v-2]<=i[v]+i[v-1])i[v-1]i[v+1])break;f(v)}}function u(){for(;a>1;){var v=a-2;v>0&&i[v-1]=wa||x>=wa);if(T)break;b<0&&(b=0),b+=2}if(t=b,t<1&&(t=1),d===1){for(m=0;m=0;m--)r[w+m]=r[b+m];r[S]=o[_];return}for(var x=t;;){var T=0,C=0,D=!1;do if(e(o[_],r[y])<0){if(r[S--]=r[y--],T++,C=0,--d===0){D=!0;break}}else if(r[S--]=o[_--],C++,T=0,--g===1){D=!0;break}while((T|C)=0;m--)r[w+m]=r[b+m];if(d===0){D=!0;break}}if(r[S--]=o[_--],--g===1){D=!0;break}if(C=g-bf(r[y],o,0,g,g-1,e),C!==0){for(S-=C,_-=C,g-=C,w=S+1,b=_+1,m=0;m=wa||C>=wa);if(D)break;x<0&&(x=0),x+=2}if(t=x,t<1&&(t=1),g===1){for(S-=d,y-=d,w=S+1,b=y+1,m=d-1;m>=0;m--)r[w+m]=r[b+m];r[S]=o[_]}else{if(g===0)throw new Error;for(b=S-(g-1),m=0;ms&&(l=s),sp(r,t,t+l,t+a,e),a=l}o.pushRun(t,a),o.mergeRuns(),i-=a,t+=a}while(i!==0);o.forceMergeRuns()}}var xt=1,$a=2,Hi=4,lp=!1;function xf(){lp||(lp=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function up(r,e){return r.zlevel===e.zlevel?r.z===e.z?r.z2-e.z2:r.z-e.z:r.zlevel-e.zlevel}var fC=function(){function r(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=up}return r.prototype.traverse=function(e,t){for(var n=0;n=0&&this._roots.splice(i,1)},r.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},r.prototype.getRoots=function(){return this._roots},r.prototype.dispose=function(){this._displayList=null,this._roots=null},r}(),Dl;Dl=oe.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(r){return setTimeout(r,16)};var to={linear:function(r){return r},quadraticIn:function(r){return r*r},quadraticOut:function(r){return r*(2-r)},quadraticInOut:function(r){return(r*=2)<1?.5*r*r:-.5*(--r*(r-2)-1)},cubicIn:function(r){return r*r*r},cubicOut:function(r){return--r*r*r+1},cubicInOut:function(r){return(r*=2)<1?.5*r*r*r:.5*((r-=2)*r*r+2)},quarticIn:function(r){return r*r*r*r},quarticOut:function(r){return 1- --r*r*r*r},quarticInOut:function(r){return(r*=2)<1?.5*r*r*r*r:-.5*((r-=2)*r*r*r-2)},quinticIn:function(r){return r*r*r*r*r},quinticOut:function(r){return--r*r*r*r*r+1},quinticInOut:function(r){return(r*=2)<1?.5*r*r*r*r*r:.5*((r-=2)*r*r*r*r+2)},sinusoidalIn:function(r){return 1-Math.cos(r*Math.PI/2)},sinusoidalOut:function(r){return Math.sin(r*Math.PI/2)},sinusoidalInOut:function(r){return .5*(1-Math.cos(Math.PI*r))},exponentialIn:function(r){return r===0?0:Math.pow(1024,r-1)},exponentialOut:function(r){return r===1?1:1-Math.pow(2,-10*r)},exponentialInOut:function(r){return r===0?0:r===1?1:(r*=2)<1?.5*Math.pow(1024,r-1):.5*(-Math.pow(2,-10*(r-1))+2)},circularIn:function(r){return 1-Math.sqrt(1-r*r)},circularOut:function(r){return Math.sqrt(1- --r*r)},circularInOut:function(r){return(r*=2)<1?-.5*(Math.sqrt(1-r*r)-1):.5*(Math.sqrt(1-(r-=2)*r)+1)},elasticIn:function(r){var e,t=.1,n=.4;return r===0?0:r===1?1:(!t||t<1?(t=1,e=n/4):e=n*Math.asin(1/t)/(2*Math.PI),-(t*Math.pow(2,10*(r-=1))*Math.sin((r-e)*(2*Math.PI)/n)))},elasticOut:function(r){var e,t=.1,n=.4;return r===0?0:r===1?1:(!t||t<1?(t=1,e=n/4):e=n*Math.asin(1/t)/(2*Math.PI),t*Math.pow(2,-10*r)*Math.sin((r-e)*(2*Math.PI)/n)+1)},elasticInOut:function(r){var e,t=.1,n=.4;return r===0?0:r===1?1:(!t||t<1?(t=1,e=n/4):e=n*Math.asin(1/t)/(2*Math.PI),(r*=2)<1?-.5*(t*Math.pow(2,10*(r-=1))*Math.sin((r-e)*(2*Math.PI)/n)):t*Math.pow(2,-10*(r-=1))*Math.sin((r-e)*(2*Math.PI)/n)*.5+1)},backIn:function(r){var e=1.70158;return r*r*((e+1)*r-e)},backOut:function(r){var e=1.70158;return--r*r*((e+1)*r+e)+1},backInOut:function(r){var e=2.5949095;return(r*=2)<1?.5*(r*r*((e+1)*r-e)):.5*((r-=2)*r*((e+1)*r+e)+2)},bounceIn:function(r){return 1-to.bounceOut(1-r)},bounceOut:function(r){return r<1/2.75?7.5625*r*r:r<2/2.75?7.5625*(r-=1.5/2.75)*r+.75:r<2.5/2.75?7.5625*(r-=2.25/2.75)*r+.9375:7.5625*(r-=2.625/2.75)*r+.984375},bounceInOut:function(r){return r<.5?to.bounceIn(r*2)*.5:to.bounceOut(r*2-1)*.5+.5}},ns=Math.pow,hn=Math.sqrt,Il=1e-8,B0=1e-4,fp=hn(3),is=1/3,hr=mi(),Bt=mi(),Qi=mi();function an(r){return r>-Il&&rIl||r<-Il}function Je(r,e,t,n,i){var a=1-i;return a*a*(a*r+3*i*e)+i*i*(i*n+3*a*t)}function cp(r,e,t,n,i){var a=1-i;return 3*(((e-r)*a+2*(t-e)*i)*a+(n-t)*i*i)}function Ll(r,e,t,n,i,a){var o=n+3*(e-t)-r,s=3*(t-e*2+r),l=3*(e-r),u=r-i,f=s*s-3*o*l,c=s*l-9*o*u,h=l*l-3*s*u,v=0;if(an(f)&&an(c))if(an(s))a[0]=0;else{var d=-l/s;d>=0&&d<=1&&(a[v++]=d)}else{var p=c*c-4*f*h;if(an(p)){var g=c/f,d=-s/o+g,m=-g/2;d>=0&&d<=1&&(a[v++]=d),m>=0&&m<=1&&(a[v++]=m)}else if(p>0){var y=hn(p),_=f*s+1.5*o*(-c+y),S=f*s+1.5*o*(-c-y);_<0?_=-ns(-_,is):_=ns(_,is),S<0?S=-ns(-S,is):S=ns(S,is);var d=(-s-(_+S))/(3*o);d>=0&&d<=1&&(a[v++]=d)}else{var b=(2*f*s-3*o*c)/(2*hn(f*f*f)),w=Math.acos(b)/3,x=hn(f),T=Math.cos(w),d=(-s-2*x*T)/(3*o),m=(-s+x*(T+fp*Math.sin(w)))/(3*o),C=(-s+x*(T-fp*Math.sin(w)))/(3*o);d>=0&&d<=1&&(a[v++]=d),m>=0&&m<=1&&(a[v++]=m),C>=0&&C<=1&&(a[v++]=C)}}return v}function F0(r,e,t,n,i){var a=6*t-12*e+6*r,o=9*e+3*n-3*r-9*t,s=3*e-3*r,l=0;if(an(o)){if(N0(a)){var u=-s/a;u>=0&&u<=1&&(i[l++]=u)}}else{var f=a*a-4*o*s;if(an(f))i[0]=-a/(2*o);else if(f>0){var c=hn(f),u=(-a+c)/(2*o),h=(-a-c)/(2*o);u>=0&&u<=1&&(i[l++]=u),h>=0&&h<=1&&(i[l++]=h)}}return l}function Pl(r,e,t,n,i,a){var o=(e-r)*i+r,s=(t-e)*i+e,l=(n-t)*i+t,u=(s-o)*i+o,f=(l-s)*i+s,c=(f-u)*i+u;a[0]=r,a[1]=o,a[2]=u,a[3]=c,a[4]=c,a[5]=f,a[6]=l,a[7]=n}function cC(r,e,t,n,i,a,o,s,l,u,f){var c,h=.005,v=1/0,d,p,g,m;hr[0]=l,hr[1]=u;for(var y=0;y<1;y+=.05)Bt[0]=Je(r,t,i,o,y),Bt[1]=Je(e,n,a,s,y),g=ri(hr,Bt),g=0&&g=0&&u<=1&&(i[l++]=u)}}else{var f=o*o-4*a*s;if(an(f)){var u=-o/(2*a);u>=0&&u<=1&&(i[l++]=u)}else if(f>0){var c=hn(f),u=(-o+c)/(2*a),h=(-o-c)/(2*a);u>=0&&u<=1&&(i[l++]=u),h>=0&&h<=1&&(i[l++]=h)}}return l}function z0(r,e,t){var n=r+t-2*e;return n===0?.5:(r-e)/n}function Rl(r,e,t,n,i){var a=(e-r)*n+r,o=(t-e)*n+e,s=(o-a)*n+a;i[0]=r,i[1]=a,i[2]=s,i[3]=s,i[4]=o,i[5]=t}function dC(r,e,t,n,i,a,o,s,l){var u,f=.005,c=1/0;hr[0]=o,hr[1]=s;for(var h=0;h<1;h+=.05){Bt[0]=bt(r,t,i,h),Bt[1]=bt(e,n,a,h);var v=ri(hr,Bt);v=0&&v=1?1:Ll(0,n,a,1,l,s)&&Je(0,i,o,1,s[0])}}}var mC=function(){function r(e){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=e.life||1e3,this._delay=e.delay||0,this.loop=e.loop||!1,this.onframe=e.onframe||qe,this.ondestroy=e.ondestroy||qe,this.onrestart=e.onrestart||qe,e.easing&&this.setEasing(e.easing)}return r.prototype.step=function(e,t){if(this._inited||(this._startTime=e+this._delay,this._inited=!0),this._paused){this._pausedTime+=t;return}var n=this._life,i=e-this._startTime-this._pausedTime,a=i/n;a<0&&(a=0),a=Math.min(a,1);var o=this.easingFunc,s=o?o(a):a;if(this.onframe(s),a===1)if(this.loop){var l=i%n;this._startTime=e-l,this._pausedTime=0,this.onrestart()}else return!0;return!1},r.prototype.pause=function(){this._paused=!0},r.prototype.resume=function(){this._paused=!1},r.prototype.setEasing=function(e){this.easing=e,this.easingFunc=re(e)?e:to[e]||G0(e)},r}(),H0=function(){function r(e){this.value=e}return r}(),yC=function(){function r(){this._len=0}return r.prototype.insert=function(e){var t=new H0(e);return this.insertEntry(t),t},r.prototype.insertEntry=function(e){this.head?(this.tail.next=e,e.prev=this.tail,e.next=null,this.tail=e):this.head=this.tail=e,this._len++},r.prototype.remove=function(e){var t=e.prev,n=e.next;t?t.next=n:this.head=n,n?n.prev=t:this.tail=t,e.next=e.prev=null,this._len--},r.prototype.len=function(){return this._len},r.prototype.clear=function(){this.head=this.tail=null,this._len=0},r}(),oa=function(){function r(e){this._list=new yC,this._maxSize=10,this._map={},this._maxSize=e}return r.prototype.put=function(e,t){var n=this._list,i=this._map,a=null;if(i[e]==null){var o=n.len(),s=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var l=n.head;n.remove(l),delete i[l.key],a=l.value,this._lastRemovedEntry=l}s?s.value=t:s=new H0(t),s.key=e,n.insertEntry(s),i[e]=s}return a},r.prototype.get=function(e){var t=this._map[e],n=this._list;if(t!=null)return t!==n.tail&&(n.remove(t),n.insertEntry(t)),t.value},r.prototype.clear=function(){this._list.clear(),this._map={}},r.prototype.len=function(){return this._list.len()},r}(),vp={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]};function er(r){return r=Math.round(r),r<0?0:r>255?255:r}function _C(r){return r=Math.round(r),r<0?0:r>360?360:r}function po(r){return r<0?0:r>1?1:r}function el(r){var e=r;return e.length&&e.charAt(e.length-1)==="%"?er(parseFloat(e)/100*255):er(parseInt(e,10))}function vn(r){var e=r;return e.length&&e.charAt(e.length-1)==="%"?po(parseFloat(e)/100):po(parseFloat(e))}function Tf(r,e,t){return t<0?t+=1:t>1&&(t-=1),t*6<1?r+(e-r)*t*6:t*2<1?e:t*3<2?r+(e-r)*(2/3-t)*6:r}function on(r,e,t){return r+(e-r)*t}function Pt(r,e,t,n,i){return r[0]=e,r[1]=t,r[2]=n,r[3]=i,r}function eh(r,e){return r[0]=e[0],r[1]=e[1],r[2]=e[2],r[3]=e[3],r}var V0=new oa(20),as=null;function Ci(r,e){as&&eh(as,e),as=V0.put(r,as||e.slice())}function Mt(r,e){if(r){e=e||[];var t=V0.get(r);if(t)return eh(e,t);r=r+"";var n=r.replace(/ /g,"").toLowerCase();if(n in vp)return eh(e,vp[n]),Ci(r,e),e;var i=n.length;if(n.charAt(0)==="#"){if(i===4||i===5){var a=parseInt(n.slice(1,4),16);if(!(a>=0&&a<=4095)){Pt(e,0,0,0,1);return}return Pt(e,(a&3840)>>4|(a&3840)>>8,a&240|(a&240)>>4,a&15|(a&15)<<4,i===5?parseInt(n.slice(4),16)/15:1),Ci(r,e),e}else if(i===7||i===9){var a=parseInt(n.slice(1,7),16);if(!(a>=0&&a<=16777215)){Pt(e,0,0,0,1);return}return Pt(e,(a&16711680)>>16,(a&65280)>>8,a&255,i===9?parseInt(n.slice(7),16)/255:1),Ci(r,e),e}return}var o=n.indexOf("("),s=n.indexOf(")");if(o!==-1&&s+1===i){var l=n.substr(0,o),u=n.substr(o+1,s-(o+1)).split(","),f=1;switch(l){case"rgba":if(u.length!==4)return u.length===3?Pt(e,+u[0],+u[1],+u[2],1):Pt(e,0,0,0,1);f=vn(u.pop());case"rgb":if(u.length>=3)return Pt(e,el(u[0]),el(u[1]),el(u[2]),u.length===3?f:vn(u[3])),Ci(r,e),e;Pt(e,0,0,0,1);return;case"hsla":if(u.length!==4){Pt(e,0,0,0,1);return}return u[3]=vn(u[3]),th(u,e),Ci(r,e),e;case"hsl":if(u.length!==3){Pt(e,0,0,0,1);return}return th(u,e),Ci(r,e),e;default:return}}Pt(e,0,0,0,1)}}function th(r,e){var t=(parseFloat(r[0])%360+360)%360/360,n=vn(r[1]),i=vn(r[2]),a=i<=.5?i*(n+1):i+n-i*n,o=i*2-a;return e=e||[],Pt(e,er(Tf(o,a,t+1/3)*255),er(Tf(o,a,t)*255),er(Tf(o,a,t-1/3)*255),1),r.length===4&&(e[3]=r[3]),e}function SC(r){if(r){var e=r[0]/255,t=r[1]/255,n=r[2]/255,i=Math.min(e,t,n),a=Math.max(e,t,n),o=a-i,s=(a+i)/2,l,u;if(o===0)l=0,u=0;else{s<.5?u=o/(a+i):u=o/(2-a-i);var f=((a-e)/6+o/2)/o,c=((a-t)/6+o/2)/o,h=((a-n)/6+o/2)/o;e===a?l=h-c:t===a?l=1/3+f-h:n===a&&(l=2/3+c-f),l<0&&(l+=1),l>1&&(l-=1)}var v=[l*360,u,s];return r[3]!=null&&v.push(r[3]),v}}function rh(r,e){var t=Mt(r);if(t){for(var n=0;n<3;n++)e<0?t[n]=t[n]*(1-e)|0:t[n]=(255-t[n])*e+t[n]|0,t[n]>255?t[n]=255:t[n]<0&&(t[n]=0);return Sn(t,t.length===4?"rgba":"rgb")}}function bC(r){var e=Mt(r);if(e)return((1<<24)+(e[0]<<16)+(e[1]<<8)+ +e[2]).toString(16).slice(1)}function U0(r,e,t){if(!(!(e&&e.length)||!(r>=0&&r<=1))){t=t||[];var n=r*(e.length-1),i=Math.floor(n),a=Math.ceil(n),o=e[i],s=e[a],l=n-i;return t[0]=er(on(o[0],s[0],l)),t[1]=er(on(o[1],s[1],l)),t[2]=er(on(o[2],s[2],l)),t[3]=po(on(o[3],s[3],l)),t}}var wC=U0;function wv(r,e,t){if(!(!(e&&e.length)||!(r>=0&&r<=1))){var n=r*(e.length-1),i=Math.floor(n),a=Math.ceil(n),o=Mt(e[i]),s=Mt(e[a]),l=n-i,u=Sn([er(on(o[0],s[0],l)),er(on(o[1],s[1],l)),er(on(o[2],s[2],l)),po(on(o[3],s[3],l))],"rgba");return t?{color:u,leftIndex:i,rightIndex:a,value:n}:u}}var xC=wv;function El(r,e,t,n){var i=Mt(r);if(r)return i=SC(i),e!=null&&(i[0]=_C(re(e)?e(i[0]):e)),t!=null&&(i[1]=vn(re(t)?t(i[1]):t)),n!=null&&(i[2]=vn(re(n)?n(i[2]):n)),Sn(th(i),"rgba")}function TC(r,e){var t=Mt(r);if(t&&e!=null)return t[3]=po(e),Sn(t,"rgba")}function Sn(r,e){if(!(!r||!r.length)){var t=r[0]+","+r[1]+","+r[2];return(e==="rgba"||e==="hsva"||e==="hsla")&&(t+=","+r[3]),e+"("+t+")"}}function go(r,e){var t=Mt(r);return t?(.299*t[0]+.587*t[1]+.114*t[2])*t[3]/255+(1-t[3])*e:0}function CC(){return Sn([Math.round(Math.random()*255),Math.round(Math.random()*255),Math.round(Math.random()*255)],"rgb")}var dp=new oa(100);function nh(r){if($(r)){var e=dp.get(r);return e||(e=rh(r,-.1),dp.put(r,e)),e}else if(Fo(r)){var t=k({},r);return t.colorStops=K(r.colorStops,function(n){return{offset:n.offset,color:rh(n.color,-.1)}}),t}return r}const MC=Object.freeze(Object.defineProperty({__proto__:null,fastLerp:U0,fastMapToColor:wC,lerp:wv,lift:rh,liftColor:nh,lum:go,mapToColor:xC,modifyAlpha:TC,modifyHSL:El,parse:Mt,parseCssFloat:vn,parseCssInt:el,random:CC,stringify:Sn,toHex:bC},Symbol.toStringTag,{value:"Module"}));function AC(r){return r.type==="linear"}function DC(r){return r.type==="radial"}(function(){return typeof Buffer<"u"&&typeof Buffer.from=="function"?function(r){return Buffer.from(r).toString("base64")}:typeof btoa=="function"&&typeof unescape=="function"&&typeof encodeURIComponent=="function"?function(r){return btoa(unescape(encodeURIComponent(r)))}:function(r){return null}})();var ih=Array.prototype.slice;function Rr(r,e,t){return(e-r)*t+r}function Cf(r,e,t,n){for(var i=e.length,a=0;an?e:r,a=Math.min(t,n),o=i[a-1]||{color:[0,0,0,0],offset:0},s=a;so;if(s)n.length=o;else for(var l=a;l=1},r.prototype.getAdditiveTrack=function(){return this._additiveTrack},r.prototype.addKeyframe=function(e,t,n){this._needsSort=!0;var i=this.keyframes,a=i.length,o=!1,s=gp,l=t;if(mt(t)){var u=RC(t);s=u,(u===1&&!xe(t[0])||u===2&&!xe(t[0][0]))&&(o=!0)}else if(xe(t)&&!ia(t))s=ss;else if($(t))if(!isNaN(+t))s=ss;else{var f=Mt(t);f&&(l=f,s=Xa)}else if(Fo(t)){var c=k({},l);c.colorStops=K(t.colorStops,function(v){return{offset:v.offset,color:Mt(v.color)}}),AC(t)?s=ah:DC(t)&&(s=oh),l=c}a===0?this.valType=s:(s!==this.valType||s===gp)&&(o=!0),this.discrete=this.discrete||o;var h={time:e,value:l,rawValue:t,percent:0};return n&&(h.easing=n,h.easingFunc=re(n)?n:to[n]||G0(n)),i.push(h),h},r.prototype.prepare=function(e,t){var n=this.keyframes;this._needsSort&&n.sort(function(p,g){return p.time-g.time});for(var i=this.valType,a=n.length,o=n[a-1],s=this.discrete,l=ls(i),u=mp(i),f=0;f=0&&!(o[f].percent<=t);f--);f=h(f,s-2)}else{for(f=c;ft);f++);f=h(f-1,s-2)}d=o[f+1],v=o[f]}if(v&&d){this._lastFr=f,this._lastFrP=t;var g=d.percent-v.percent,m=g===0?1:h((t-v.percent)/g,1);d.easingFunc&&(m=d.easingFunc(m));var y=n?this._additiveValue:u?xa:e[l];if((ls(a)||u)&&!y&&(y=this._additiveValue=[]),this.discrete)e[l]=m<1?v.rawValue:d.rawValue;else if(ls(a))a===nl?Cf(y,v[i],d[i],m):IC(y,v[i],d[i],m);else if(mp(a)){var _=v[i],S=d[i],b=a===ah;e[l]={type:b?"linear":"radial",x:Rr(_.x,S.x,m),y:Rr(_.y,S.y,m),colorStops:K(_.colorStops,function(x,T){var C=S.colorStops[T];return{offset:Rr(x.offset,C.offset,m),color:rl(Cf([],x.color,C.color,m))}}),global:S.global},b?(e[l].x2=Rr(_.x2,S.x2,m),e[l].y2=Rr(_.y2,S.y2,m)):e[l].r=Rr(_.r,S.r,m)}else if(u)Cf(y,v[i],d[i],m),n||(e[l]=rl(y));else{var w=Rr(v[i],d[i],m);n?this._additiveValue=w:e[l]=w}n&&this._addToTarget(e)}}},r.prototype._addToTarget=function(e){var t=this.valType,n=this.propName,i=this._additiveValue;t===ss?e[n]=e[n]+i:t===Xa?(Mt(e[n],xa),os(xa,xa,i,1),e[n]=rl(xa)):t===nl?os(e[n],e[n],i,1):t===W0&&pp(e[n],e[n],i,1)},r}(),xv=function(){function r(e,t,n,i){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=e,this._loop=t,t&&i){bu("Can' use additive animation on looped animation.");return}this._additiveAnimators=i,this._allowDiscrete=n}return r.prototype.getMaxTime=function(){return this._maxTime},r.prototype.getDelay=function(){return this._delay},r.prototype.getLoop=function(){return this._loop},r.prototype.getTarget=function(){return this._target},r.prototype.changeTarget=function(e){this._target=e},r.prototype.when=function(e,t,n){return this.whenWithKeys(e,t,Le(t),n)},r.prototype.whenWithKeys=function(e,t,n,i){for(var a=this._tracks,o=0;o0&&l.addKeyframe(0,tl(u),i),this._trackKeys.push(s)}l.addKeyframe(e,tl(t[s]),i)}return this._maxTime=Math.max(this._maxTime,e),this},r.prototype.pause=function(){this._clip.pause(),this._paused=!0},r.prototype.resume=function(){this._clip.resume(),this._paused=!1},r.prototype.isPaused=function(){return!!this._paused},r.prototype.duration=function(e){return this._maxTime=e,this._force=!0,this},r.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var e=this._doneCbs;if(e)for(var t=e.length,n=0;n0)){this._started=1;for(var t=this,n=[],i=this._maxTime||0,a=0;a1){var s=o.pop();a.addKeyframe(s.time,e[i]),a.prepare(this._maxTime,a.getAdditiveTrack())}}}},r}();function Yi(){return new Date().getTime()}var OC=function(r){F(e,r);function e(t){var n=r.call(this)||this;return n._running=!1,n._time=0,n._pausedTime=0,n._pauseStart=0,n._paused=!1,t=t||{},n.stage=t.stage||{},n}return e.prototype.addClip=function(t){t.animation&&this.removeClip(t),this._head?(this._tail.next=t,t.prev=this._tail,t.next=null,this._tail=t):this._head=this._tail=t,t.animation=this},e.prototype.addAnimator=function(t){t.animation=this;var n=t.getClip();n&&this.addClip(n)},e.prototype.removeClip=function(t){if(t.animation){var n=t.prev,i=t.next;n?n.next=i:this._head=i,i?i.prev=n:this._tail=n,t.next=t.prev=t.animation=null}},e.prototype.removeAnimator=function(t){var n=t.getClip();n&&this.removeClip(n),t.animation=null},e.prototype.update=function(t){for(var n=Yi()-this._pausedTime,i=n-this._time,a=this._head;a;){var o=a.next,s=a.step(n,i);s&&(a.ondestroy(),this.removeClip(a)),a=o}this._time=n,t||(this.trigger("frame",i),this.stage.update&&this.stage.update())},e.prototype._startLoop=function(){var t=this;this._running=!0;function n(){t._running&&(Dl(n),!t._paused&&t.update())}Dl(n)},e.prototype.start=function(){this._running||(this._time=Yi(),this._pausedTime=0,this._startLoop())},e.prototype.stop=function(){this._running=!1},e.prototype.pause=function(){this._paused||(this._pauseStart=Yi(),this._paused=!0)},e.prototype.resume=function(){this._paused&&(this._pausedTime+=Yi()-this._pauseStart,this._paused=!1)},e.prototype.clear=function(){for(var t=this._head;t;){var n=t.next;t.prev=t.next=t.animation=null,t=n}this._head=this._tail=null},e.prototype.isFinished=function(){return this._head==null},e.prototype.animate=function(t,n){n=n||{},this.start();var i=new xv(t,n.loop);return this.addAnimator(i),i},e}(nr),kC=300,Mf=oe.domSupported,Af=function(){var r=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],e=["touchstart","touchend","touchmove"],t={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},n=K(r,function(i){var a=i.replace("mouse","pointer");return t.hasOwnProperty(a)?a:i});return{mouse:r,touch:e,pointer:n}}(),yp={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},_p=!1;function sh(r){var e=r.pointerType;return e==="pen"||e==="touch"}function BC(r){r.touching=!0,r.touchTimer!=null&&(clearTimeout(r.touchTimer),r.touchTimer=null),r.touchTimer=setTimeout(function(){r.touching=!1,r.touchTimer=null},700)}function Df(r){r&&(r.zrByTouch=!0)}function NC(r,e){return Et(r.dom,new FC(r,e),!0)}function Y0(r,e){for(var t=e,n=!1;t&&t.nodeType!==9&&!(n=t.domBelongToZr||t!==e&&t===r.painterRoot);)t=t.parentNode;return n}var FC=function(){function r(e,t){this.stopPropagation=qe,this.stopImmediatePropagation=qe,this.preventDefault=qe,this.type=t.type,this.target=this.currentTarget=e.dom,this.pointerType=t.pointerType,this.clientX=t.clientX,this.clientY=t.clientY}return r}(),jt={mousedown:function(r){r=Et(this.dom,r),this.__mayPointerCapture=[r.zrX,r.zrY],this.trigger("mousedown",r)},mousemove:function(r){r=Et(this.dom,r);var e=this.__mayPointerCapture;e&&(r.zrX!==e[0]||r.zrY!==e[1])&&this.__togglePointerCapture(!0),this.trigger("mousemove",r)},mouseup:function(r){r=Et(this.dom,r),this.__togglePointerCapture(!1),this.trigger("mouseup",r)},mouseout:function(r){r=Et(this.dom,r);var e=r.toElement||r.relatedTarget;Y0(this,e)||(this.__pointerCapturing&&(r.zrEventControl="no_globalout"),this.trigger("mouseout",r))},wheel:function(r){_p=!0,r=Et(this.dom,r),this.trigger("mousewheel",r)},mousewheel:function(r){_p||(r=Et(this.dom,r),this.trigger("mousewheel",r))},touchstart:function(r){r=Et(this.dom,r),Df(r),this.__lastTouchMoment=new Date,this.handler.processGesture(r,"start"),jt.mousemove.call(this,r),jt.mousedown.call(this,r)},touchmove:function(r){r=Et(this.dom,r),Df(r),this.handler.processGesture(r,"change"),jt.mousemove.call(this,r)},touchend:function(r){r=Et(this.dom,r),Df(r),this.handler.processGesture(r,"end"),jt.mouseup.call(this,r),+new Date-+this.__lastTouchMomentwp||r<-wp}var In=[],Mi=[],Lf=Ut(),Pf=Math.abs,Ho=function(){function r(){}return r.prototype.getLocalTransform=function(e){return UC(this,e)},r.prototype.setPosition=function(e){this.x=e[0],this.y=e[1]},r.prototype.setScale=function(e){this.scaleX=e[0],this.scaleY=e[1]},r.prototype.setSkew=function(e){this.skewX=e[0],this.skewY=e[1]},r.prototype.setOrigin=function(e){this.originX=e[0],this.originY=e[1]},r.prototype.needLocalTransform=function(){return Dn(this.rotation)||Dn(this.x)||Dn(this.y)||Dn(this.scaleX-1)||Dn(this.scaleY-1)||Dn(this.skewX)||Dn(this.skewY)},r.prototype.updateTransform=function(){var e=this.parent&&this.parent.transform,t=this.needLocalTransform(),n=this.transform;if(!(t||e)){n&&(bp(n),this.invTransform=null);return}n=n||Ut(),t?this.getLocalTransform(n):bp(n),e&&(t?ni(n,e,n):Go(n,e)),this.transform=n,this._resolveGlobalScaleRatio(n),this.invTransform=this.invTransform||Ut(),_i(this.invTransform,n)},r.prototype._resolveGlobalScaleRatio=function(e){var t=this.globalScaleRatio;if(t!=null&&t!==1){this.getGlobalScale(In);var n=In[0]<0?-1:1,i=In[1]<0?-1:1,a=((In[0]-n)*t+n)/In[0]||0,o=((In[1]-i)*t+i)/In[1]||0;e[0]*=a,e[1]*=a,e[2]*=o,e[3]*=o}},r.prototype.getComputedTransform=function(){for(var e=this,t=[];e;)t.push(e),e=e.parent;for(;e=t.pop();)e.updateTransform();return this.transform},r.prototype.setLocalTransform=function(e){if(e){var t=e[0]*e[0]+e[1]*e[1],n=e[2]*e[2]+e[3]*e[3],i=Math.atan2(e[1],e[0]),a=Math.PI/2+i-Math.atan2(e[3],e[2]);n=Math.sqrt(n)*Math.cos(a),t=Math.sqrt(t),this.skewX=a,this.skewY=0,this.rotation=-i,this.x=+e[4],this.y=+e[5],this.scaleX=t,this.scaleY=n,this.originX=0,this.originY=0}},r.prototype.decomposeTransform=function(){if(this.transform){var e=this.parent,t=this.transform;e&&e.transform&&(e.invTransform=e.invTransform||Ut(),ni(Mi,e.invTransform,t),t=Mi);var n=this.originX,i=this.originY;(n||i)&&(Lf[4]=n,Lf[5]=i,ni(Mi,t,Lf),Mi[4]-=n,Mi[5]-=i,t=Mi),this.setLocalTransform(t)}},r.prototype.getGlobalScale=function(e){var t=this.transform;return e=e||[],t?(e[0]=Math.sqrt(t[0]*t[0]+t[1]*t[1]),e[1]=Math.sqrt(t[2]*t[2]+t[3]*t[3]),t[0]<0&&(e[0]=-e[0]),t[3]<0&&(e[1]=-e[1]),e):(e[0]=1,e[1]=1,e)},r.prototype.transformCoordToLocal=function(e,t){var n=[e,t],i=this.invTransform;return i&&dt(n,n,i),n},r.prototype.transformCoordToGlobal=function(e,t){var n=[e,t],i=this.transform;return i&&dt(n,n,i),n},r.prototype.getLineScale=function(){var e=this.transform;return e&&Pf(e[0]-1)>1e-10&&Pf(e[3]-1)>1e-10?Math.sqrt(Pf(e[0]*e[3]-e[2]*e[1])):1},r.prototype.copyTransform=function(e){kl(this,e)},r.getLocalTransform=function(e,t){t=t||[];var n=e.originX||0,i=e.originY||0,a=e.scaleX,o=e.scaleY,s=e.anchorX,l=e.anchorY,u=e.rotation||0,f=e.x,c=e.y,h=e.skewX?Math.tan(e.skewX):0,v=e.skewY?Math.tan(-e.skewY):0;if(n||i||s||l){var d=n+s,p=i+l;t[4]=-d*a-h*p*o,t[5]=-p*o-v*d*a}else t[4]=t[5]=0;return t[0]=a,t[3]=o,t[1]=v*a,t[2]=h*o,u&&Tu(t,t,u),t[4]+=n+f,t[5]+=i+c,t},r.initDefaultProps=function(){var e=r.prototype;e.scaleX=e.scaleY=e.globalScaleRatio=1,e.x=e.y=e.originX=e.originY=e.skewX=e.skewY=e.rotation=e.anchorX=e.anchorY=0}(),r}(),UC=Ho.getLocalTransform,Cu=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function kl(r,e){return m0(r,e,Cu)}function mr(r){us||(us=new oa(100)),r=r||mn;var e=us.get(r);return e||(e={font:r,strWidthCache:new oa(500),asciiWidthMap:null,asciiWidthMapTried:!1,stWideCharWidth:et.measureText("国",r).width,asciiCharWidth:et.measureText("a",r).width},us.put(r,e)),e}var us;function WC(r){if(!(Rf>=xp)){r=r||mn;for(var e=[],t=+new Date,n=0;n<=127;n++)e[n]=et.measureText(String.fromCharCode(n),r).width;var i=+new Date-t;return i>16?Rf=xp:i>2&&Rf++,e}}var Rf=0,xp=5;function X0(r,e){return r.asciiWidthMapTried||(r.asciiWidthMap=WC(r.font),r.asciiWidthMapTried=!0),0<=e&&e<=127?r.asciiWidthMap!=null?r.asciiWidthMap[e]:r.asciiCharWidth:r.stWideCharWidth}function yr(r,e){var t=r.strWidthCache,n=t.get(e);return n==null&&(n=et.measureText(e,r.font).width,t.put(e,n)),n}function Tp(r,e,t,n){var i=yr(mr(e),r),a=Mu(e),o=sa(0,i,t),s=ii(0,a,n),l=new te(o,s,i,a);return l}function Z0(r,e,t,n){var i=((r||"")+"").split(` +`),a=i.length;if(a===1)return Tp(i[0],e,t,n);for(var o=new te(0,0,0,0),s=0;s=0?parseFloat(r)/100*e:parseFloat(r):r}function Bl(r,e,t){var n=e.position||"inside",i=e.distance!=null?e.distance:5,a=t.height,o=t.width,s=a/2,l=t.x,u=t.y,f="left",c="top";if(n instanceof Array)l+=ui(n[0],t.width),u+=ui(n[1],t.height),f=null,c=null;else switch(n){case"left":l-=i,u+=s,f="right",c="middle";break;case"right":l+=i+o,u+=s,c="middle";break;case"top":l+=o/2,u-=i,f="center",c="bottom";break;case"bottom":l+=o/2,u+=a+i,f="center";break;case"inside":l+=o/2,u+=s,f="center",c="middle";break;case"insideLeft":l+=i,u+=s,c="middle";break;case"insideRight":l+=o-i,u+=s,f="right",c="middle";break;case"insideTop":l+=o/2,u+=i,f="center";break;case"insideBottom":l+=o/2,u+=a-i,f="center",c="bottom";break;case"insideTopLeft":l+=i,u+=i;break;case"insideTopRight":l+=o-i,u+=i,f="right";break;case"insideBottomLeft":l+=i,u+=a-i,c="bottom";break;case"insideBottomRight":l+=o-i,u+=a-i,f="right",c="bottom";break}return r=r||{},r.x=l,r.y=u,r.align=f,r.verticalAlign=c,r}var Ef="__zr_normal__",Of=Cu.concat(["ignore"]),YC=br(Cu,function(r,e){return r[e]=!0,r},{ignore:!1}),Ai={},$C=new te(0,0,0,0),fs=[],al=0,Au=1,Du=function(){function r(e){this.id=gv(),this.animators=[],this.currentStates=[],this.states={},this._init(e)}return r.prototype._init=function(e){this.attr(e)},r.prototype.drift=function(e,t,n){switch(this.draggable){case"horizontal":t=0;break;case"vertical":e=0;break}var i=this.transform;i||(i=this.transform=[1,0,0,1,0,0]),i[4]+=e,i[5]+=t,this.decomposeTransform(),this.markRedraw()},r.prototype.beforeUpdate=function(){},r.prototype.afterUpdate=function(){},r.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},r.prototype.updateInnerText=function(e){var t=this._textContent;if(t&&(!t.ignore||e)){this.textConfig||(this.textConfig={});var n=this.textConfig,i=n.local,a=t.innerTransformable,o=void 0,s=void 0,l=!1;a.parent=i?this:null;var u=!1;a.copyTransform(t);var f=n.position!=null,c=n.autoOverflowArea,h=void 0;if((c||f)&&(h=$C,n.layoutRect?h.copy(n.layoutRect):h.copy(this.getBoundingRect()),i||h.applyTransform(this.transform)),f){this.calculateTextPosition?this.calculateTextPosition(Ai,n,h):Bl(Ai,n,h),a.x=Ai.x,a.y=Ai.y,o=Ai.align,s=Ai.verticalAlign;var v=n.origin;if(v&&n.rotation!=null){var d=void 0,p=void 0;v==="center"?(d=h.width*.5,p=h.height*.5):(d=ui(v[0],h.width),p=ui(v[1],h.height)),u=!0,a.originX=-a.x+d+(i?0:h.x),a.originY=-a.y+p+(i?0:h.y)}}n.rotation!=null&&(a.rotation=n.rotation);var g=n.offset;g&&(a.x+=g[0],a.y+=g[1],u||(a.originX=-g[0],a.originY=-g[1]));var m=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={});if(c){var y=m.overflowRect=m.overflowRect||new te(0,0,0,0);a.getLocalTransform(fs),_i(fs,fs),te.copy(y,h),y.applyTransform(fs)}else m.overflowRect=null;var _=n.inside==null?typeof n.position=="string"&&n.position.indexOf("inside")>=0:n.inside,S=void 0,b=void 0,w=void 0;_&&this.canBeInsideText()?(S=n.insideFill,b=n.insideStroke,(S==null||S==="auto")&&(S=this.getInsideTextFill()),(b==null||b==="auto")&&(b=this.getInsideTextStroke(S),w=!0)):(S=n.outsideFill,b=n.outsideStroke,(S==null||S==="auto")&&(S=this.getOutsideFill()),(b==null||b==="auto")&&(b=this.getOutsideStroke(S),w=!0)),S=S||"#000",(S!==m.fill||b!==m.stroke||w!==m.autoStroke||o!==m.align||s!==m.verticalAlign)&&(l=!0,m.fill=S,m.stroke=b,m.autoStroke=w,m.align=o,m.verticalAlign=s,t.setDefaultTextStyle(m)),t.__dirty|=xt,l&&t.dirtyStyle(!0)}},r.prototype.canBeInsideText=function(){return!0},r.prototype.getInsideTextFill=function(){return"#fff"},r.prototype.getInsideTextStroke=function(e){return"#000"},r.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?ch:fh},r.prototype.getOutsideStroke=function(e){var t=this.__zr&&this.__zr.getBackgroundColor(),n=typeof t=="string"&&Mt(t);n||(n=[255,255,255,1]);for(var i=n[3],a=this.__zr.isDarkMode(),o=0;o<3;o++)n[o]=n[o]*i+(a?0:255)*(1-i);return n[3]=1,Sn(n,"rgba")},r.prototype.traverse=function(e,t){},r.prototype.attrKV=function(e,t){e==="textConfig"?this.setTextConfig(t):e==="textContent"?this.setTextContent(t):e==="clipPath"?this.setClipPath(t):e==="extra"?(this.extra=this.extra||{},k(this.extra,t)):this[e]=t},r.prototype.hide=function(){this.ignore=!0,this.markRedraw()},r.prototype.show=function(){this.ignore=!1,this.markRedraw()},r.prototype.attr=function(e,t){if(typeof e=="string")this.attrKV(e,t);else if(j(e))for(var n=e,i=Le(n),a=0;a0},r.prototype.getState=function(e){return this.states[e]},r.prototype.ensureState=function(e){var t=this.states;return t[e]||(t[e]={}),t[e]},r.prototype.clearStates=function(e){this.useState(Ef,!1,e)},r.prototype.useState=function(e,t,n,i){var a=e===Ef,o=this.hasState();if(!(!o&&a)){var s=this.currentStates,l=this.stateTransition;if(!(ve(s,e)>=0&&(t||s.length===1))){var u;if(this.stateProxy&&!a&&(u=this.stateProxy(e)),u||(u=this.states&&this.states[e]),!u&&!a){bu("State "+e+" not exists.");return}a||this.saveCurrentToNormalState(u);var f=this._textContent,c=Cp(this,f,u,i);c&&!this.__inHover&&(this.__inHover=c),this._applyStateObj(e,u,this._normalState,t,Ap(this,n,l),l);var h=this._textGuide;return f&&f.useState(e,t,n,!!c),h&&h.useState(e,t,n,!!c),a?(this.currentStates=[],this._normalState={}):t?this.currentStates.push(e):this.currentStates=[e],this._updateAnimationTargets(),this.markRedraw(),!c&&this.__inHover&&(this.__inHover=al,this.__dirty&=~xt),u}}},r.prototype.useStates=function(e,t,n){if(!e.length)this.clearStates();else{var i=[],a=this.currentStates,o=e.length,s=o===a.length;if(s){for(var l=0;l=0){var n=this.currentStates.slice();n.splice(t,1),this.useStates(n)}},r.prototype.replaceState=function(e,t,n){var i=this.currentStates.slice(),a=ve(i,e),o=ve(i,t)>=0;a>=0?o?i.splice(a,1):i[a]=t:n&&!o&&i.push(t),this.useStates(i)},r.prototype.toggleState=function(e,t){t?this.useState(e,!0):this.removeState(e)},r.prototype._mergeStates=function(e){for(var t={},n,i=0;i=0&&a.splice(o,1)}),this.animators.push(e),n&&n.animation.addAnimator(e),n&&n.wakeUp()},r.prototype.updateDuringAnimation=function(e){this.markRedraw()},r.prototype.stopAnimation=function(e,t){for(var n=this.animators,i=n.length,a=[],o=0;o0&&t.during&&a[0].during(function(d,p){t.during(p)});for(var h=0;h0||i.force&&!o.length){var T=void 0,C=void 0,D=void 0;if(s){C={},h&&(T={});for(var S=0;S<_;S++){var m=p[S];C[m]=t[m],h?T[m]=n[m]:t[m]=n[m]}}else if(h){D={};for(var S=0;S<_;S++){var m=p[S];D[m]=tl(t[m]),ZC(t,n,m)}}var b=new xv(t,!1,!1,c?We(d,function(L){return L.targetName===e}):null);b.targetName=e,i.scope&&(b.scope=i.scope),h&&T&&b.whenWithKeys(0,T,p),D&&b.whenWithKeys(0,D,p),b.whenWithKeys(u??500,s?C:n,p).delay(f||0),r.addAnimator(b,e),o.push(b)}}function Cp(r,e,t,n){return!(t&&t.hoverLayer||n)||Mp(r)||e&&Mp(e)?al:Au}function Mp(r){return r.type==="text"||r.type==="tspan"}function Ap(r,e,t){return!e&&!r.__inHover&&t&&t.duration>0}var Ge=function(r){F(e,r);function e(t){var n=r.call(this)||this;return n.isGroup=!0,n._children=[],n.attr(t),n}return e.prototype.childrenRef=function(){return this._children},e.prototype.children=function(){return this._children.slice()},e.prototype.childAt=function(t){return this._children[t]},e.prototype.childOfName=function(t){for(var n=this._children,i=0;i=0&&(i.splice(a,0,t),this._doAdd(t))}return this},e.prototype.replace=function(t,n){var i=ve(this._children,t);return i>=0&&this.replaceAt(n,i),this},e.prototype.replaceAt=function(t,n){var i=this._children,a=i[n];if(t&&t!==this&&t.parent!==this&&t!==a){i[n]=t,a.parent=null;var o=this.__zr;o&&a.removeSelfFromZr(o),this._doAdd(t)}return this},e.prototype._doAdd=function(t){t.parent&&t.parent.remove(t),t.parent=this;var n=this.__zr;n&&n!==t.__zr&&t.addSelfToZr(n),n&&n.refresh()},e.prototype.remove=function(t){var n=this.__zr,i=this._children,a=ve(i,t);return a<0?this:(i.splice(a,1),t.parent=null,n&&t.removeSelfFromZr(n),n&&n.refresh(),this)},e.prototype.removeAll=function(){for(var t=this._children,n=this.__zr,i=0;i0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},r.prototype.setSleepAfterStill=function(e){this._sleepAfterStill=e},r.prototype.wakeUp=function(){this._disposed||(this.animation.start(),this._stillFrameAccum=0)},r.prototype.refreshHover=function(){this._needsRefreshHover=!0},r.prototype.refreshHoverImmediately=function(){this._disposed||this._refresh({animUpdate:!1,refresh:!1,refreshHover:!0})},r.prototype.resize=function(e){this._disposed||(e=e||{},this.painter.resize(e.width,e.height),this.handler.resize())},r.prototype.clearAnimation=function(){this._disposed||this.animation.clear()},r.prototype.getWidth=function(){if(!this._disposed)return this.painter.getWidth()},r.prototype.getHeight=function(){if(!this._disposed)return this.painter.getHeight()},r.prototype.setCursorStyle=function(e){this._disposed||this.handler.setCursorStyle(e)},r.prototype.findHover=function(e,t){if(!this._disposed)return this.handler.findHover(e,t)},r.prototype.on=function(e,t,n){return this._disposed||this.handler.on(e,t,n),this},r.prototype.off=function(e,t){this._disposed||this.handler.off(e,t)},r.prototype.trigger=function(e,t){this._disposed||this.handler.trigger(e,t)},r.prototype.clear=function(){if(!this._disposed){for(var e=this.storage.getRoots(),t=0;t0){if(r<=i)return o;if(r>=a)return s}else{if(r>=i)return o;if(r<=a)return s}else{if(r===i)return o;if(r===a)return s}return(r-i)/l*u+o}var Me=uM;function uM(r,e,t){switch(r){case"center":case"middle":r="50%";break;case"left":case"top":r="0%";break;case"right":case"bottom":r="100%";break}return dh(r,e,t)}function dh(r,e,t){return $(r)?fM(r)?parseFloat(r)/100*e+(t||0):parseFloat(r):r==null?NaN:+r}function fM(r){return!!oM(r).match(/%$/)}function ce(r,e,t){return isNaN(e)?t?""+r:+r:(e=Ke(pe(0,e),Nl),r=(+r).toFixed(e),t?r:+r)}function cM(r,e,t){return e==null&&(e=10),ce(r,e,t)}function pr(r){return r.sort(function(e,t){return e-t}),r}function Or(r){if(r=+r,isNaN(r))return 0;if(r>1e-14){for(var e=1,t=0;t<15;t++,e*=10)if(xr(r*e)/e===r)return t}return j0(r)}function j0(r){var e=r.toString().toLowerCase(),t=e.indexOf("e"),n=t>0?+e.slice(t+1):0,i=t>0?t:e.length,a=e.indexOf("."),o=a<0?0:i-1-a;return pe(0,o-n)}function hM(r,e){var t=Tr(fi(r[1]-r[0])/mo),n=xr(fi(Ne(e[1]-e[0]))/mo),i=Ke(pe(-t+n,0),Nl);return isFinite(i)?i:Nl}function J0(r,e,t){var n=Ne(r[1]-r[0]);if(!isFinite(n)||n===0)return NaN;var i=fi(2*Ne(t||1)*Ne(n))/mo,a=fi(Ne(e))/mo,o=pe(0,pa(-i+a));return isFinite(o)||(o=NaN),o}function vM(r,e,t){if(!r[e])return 0;var n=e_(r,t);return n[e]||0}function e_(r,e){var t=br(r,function(v,d){return v+(isNaN(d)?0:d)},0);if(t===0)return[];for(var n=Si(10,e),i=K(r,function(v){return(isNaN(v)?0:v)/t*n*100}),a=n*100,o=K(i,function(v){return Tr(v)}),s=br(o,function(v,d){return v+d},0),l=K(i,function(v,d){return v-o[d]});su&&(u=l[c],f=c);++o[f],l[f]=0,++s}return K(o,function(v){return v/n})}function Zn(r,e){var t=pe(Or(r),Or(e)),n=r+e;return t>Nl?n:ce(n,t)}var ph=Si(2,53)-1;function Tv(r){var e=sM*2;return(r%e+e)%e}function yo(r){return r>-Dp&&r=10&&e++,e}var t_=2;function Lu(r,e){var t=Iu(r),n=Si(10,t),i=r/n,a;return e===t_?a=1:e?i<1.5?a=1:i<2.5?a=2:i<4?a=3:i<7?a=5:a=10:i<1?a=1:i<2?a=2:i<3?a=3:i<5?a=5:a=10,r=a*n,ce(r,-t)}function pM(r,e){var t=(r.length-1)*e+1,n=Tr(t),i=+r[n-1],a=t-n;return a?i+a*(r[n]-i):i}function gM(r){r.sort(function(l,u){return s(l,u,0)?-1:1});for(var e=-1/0,t=1,n=0;nr[1]&&(r[1]=e))}function l_(r,e){Fr(e)&&er[1]&&(r[1]=e)}function NM(r,e){la(e[0],e[1])&&(e[0]r[1]&&(r[1]=e[1]))}function Fr(r){return r!=null&&isFinite(r)}function la(r,e){return Fr(r)&&Fr(e)&&r<=e}function FM(r){var e=r[1]-r[0];return isFinite(e)&&e>=0}function sl(r){la(r[0],r[1])&&r[0]>r[1]&&(r[0]=r[1])}function Iv(){var r="__ec_once_"+zM++;return function(e,t){it(e,r)||(e[r]=1,t())}}var zM=Mv();function Lv(r,e,t){var n=Z(),i=0;A(r,function(a){var o=e(a),s=n.get(o)||0;t&&t(a,s),!s&&!t&&(r[i++]=a),n.set(o,s+1)}),t||(r.length=i)}function GM(r){return r.value+""}function HM(r){return r+""}function VM(r,e){return q(e,!0)?r.seriesIndex+2:0}function f_(r,e,t){var n=r.getData().count();return{progressiveRender:t.progressiveEnabled&&e.incrementalPrepareRender&&n>=t.threshold,large:r.get("large")&&n>=r.get("largeThreshold"),modDataCount:r.get("progressiveChunkMode")==="mod"?r.getData().count():null}}function UM(r,e){return{seriesType:r,overallReset:e}}function Pv(r){return{overallReset:r}}var WM=".",Ln="___EC__COMPONENT__CONTAINER___",c_="___EC__EXTENDED_CLASS___";function gr(r){var e={main:"",sub:""};if(r){var t=r.split(WM);e.main=t[0]||"",e.sub=t[1]||""}return e}function YM(r){wr(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(r),'componentType "'+r+'" illegal')}function $M(r){return!!(r&&r[c_])}function Rv(r,e){r.$constructor=r,r.extend=function(t){var n=this,i;return XM(n)?i=function(a){F(o,a);function o(){return a.apply(this,arguments)||this}return o}(n):(i=function(){(t.$constructor||n).apply(this,arguments)},mv(i,this)),k(i.prototype,t),i[c_]=!0,i.extend=this.extend,i.superCall=KM,i.superApply=QM,i.superClass=n,i}}function XM(r){return re(r)&&/^class\s/.test(Function.prototype.toString.call(r))}function h_(r,e){r.extend=e.extend}var ZM=Math.round(Math.random()*10);function qM(r){var e=["__\0is_clz",ZM++].join("_");r.prototype[e]=!0,r.isInstance=function(t){return!!(t&&t[e])}}function KM(r,e){for(var t=[],n=2;n=0||a&&ve(a,l)<0)){var u=n.getShallow(l,e);u!=null&&(o[r[s][0]]=u)}}return o}}var jM=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],JM=bo(jM),eA=function(){function r(){}return r.prototype.getAreaStyle=function(e,t){return JM(this,e,t)},r}(),yh=new oa(50);function tA(r){if(typeof r=="string"){var e=yh.get(r);return e&&e.image}else return r}function v_(r,e,t,n,i){if(r)if(typeof r=="string"){if(e&&e.__zrImageSrc===r||!t)return e;var a=yh.get(r),o={hostEl:t,cb:n,cbPayload:i};return a?(e=a.image,!Ru(e)&&a.pending.push(o)):(e=et.loadImage(r,Rp,Rp),e.__zrImageSrc=r,yh.put(r,e.__cachedImgObj={image:e,pending:[o]})),e}else return r;else return e}function Rp(){var r=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var e=0;e=s;u++)l-=s;var f=yr(o,t);return f>l&&(t="",f=0),l=r-f,i.ellipsis=t,i.ellipsisWidth=f,i.contentWidth=l,i.containerWidth=r,i}function g_(r,e,t){var n=t.containerWidth,i=t.contentWidth,a=t.fontMeasureInfo;if(!n){r.textLine="",r.isTruncated=!1;return}var o=yr(a,e);if(o<=n){r.textLine=e,r.isTruncated=!1;return}for(var s=0;;s++){if(o<=i||s>=t.maxIterations){e+=t.ellipsis;break}var l=s===0?nA(e,i,a):o>0?Math.floor(e.length*i/o):0;e=e.substr(0,l),o=yr(a,e)}e===""&&(e=t.placeholder),r.textLine=e,r.isTruncated=!0}function nA(r,e,t){for(var n=0,i=0,a=r.length;ig&&v){var _=Math.floor(g/h);d=d||m.length>_,m=m.slice(0,_),y=m.length*h}if(i&&f&&p!=null)for(var S=p_(p,u,e.ellipsis,{minChar:e.truncateMinChar,placeholder:e.placeholder}),b={},w=0;wd&&zf(a,o.substring(d,g),e,v),zf(a,p[2],e,v,p[1]),d=Ff.lastIndex}dc){var B=a.lines.length;L>0?(C.tokens=C.tokens.slice(0,L),x(C,M,D),a.lines=a.lines.slice(0,T+1)):a.lines=a.lines.slice(0,T),a.isTruncated=a.isTruncated||a.lines.length0&&d+n.accumWidth>n.width&&(f=e.split(` +`),u=!0),n.accumWidth=d}else{var p=m_(e,l,n.width,n.breakAll,n.accumWidth);n.accumWidth=p.accumWidth+v,c=p.linesWidths,f=p.lines}}f||(f=e.split(` +`));for(var g=mr(l),m=0;m=32&&e<=591||e>=880&&e<=4351||e>=4608&&e<=5119||e>=7680&&e<=8303}var uA=br(",&?/;] ".split(""),function(r,e){return r[e]=!0,r},{});function fA(r){return lA(r)?!!uA[r]:!0}function m_(r,e,t,n,i){for(var a=[],o=[],s="",l="",u=0,f=0,c=mr(e),h=0;ht:i+f+d>t){f?(s||l)&&(p?(s||(s=l,l="",u=0,f=u),a.push(s),o.push(f-u),l+=v,u+=d,s="",f=u):(l&&(s+=l,l="",u=0),a.push(s),o.push(f),s=v,f=d)):p?(a.push(l),o.push(u),l=v,u=d):(a.push(v),o.push(d));continue}f+=d,p?(l+=v,u+=d):(l&&(s+=l,l="",u=0),s+=v)}return l&&(s+=l),s&&(a.push(s),o.push(f)),a.length===1&&(f+=i),{accumWidth:f,lines:a,linesWidths:o}}function Op(r,e,t,n,i,a){if(r.baseX=t,r.baseY=n,r.outerWidth=r.outerHeight=null,!!e){var o=e.width*2,s=e.height*2;te.set(kp,sa(t,o,i),ii(n,s,a),o,s),te.intersect(e,kp,null,Bp);var l=Bp.outIntersectRect;r.outerWidth=l.width,r.outerHeight=l.height,r.baseX=sa(l.x,l.width,i,!0),r.baseY=ii(l.y,l.height,a,!0)}}var kp=new te(0,0,0,0),Bp={outIntersectRect:{},clamp:!0};function Ev(r){return r!=null?r+="":r=""}function cA(r){var e=Ev(r.text),t=r.font,n=yr(mr(t),e),i=Mu(t);return _h(r,n,i,null)}function _h(r,e,t,n){var i=new te(sa(r.x||0,e,r.textAlign),ii(r.y||0,t,r.textBaseline),e,t),a=n??(y_(r)?r.lineWidth:0);return a>0&&(i.x-=a/2,i.y-=a/2,i.width+=a,i.height+=a),i}function y_(r){var e=r.stroke;return e!=null&&e!=="none"&&r.lineWidth>0}var Sh="__zr_style_"+Math.round(Math.random()*10),ai={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},Eu={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};ai[Sh]=!0;var Np=["z","z2","invisible"],hA=["invisible"],Wo=function(r){F(e,r);function e(t){return r.call(this,t)||this}return e.prototype._init=function(t){for(var n=Le(t),i=0;i1e-4){s[0]=r-t,s[1]=e-n,l[0]=r+t,l[1]=e+n;return}if(cs[0]=Uf(i)*t+r,cs[1]=Vf(i)*n+e,hs[0]=Uf(a)*t+r,hs[1]=Vf(a)*n+e,u(s,cs,hs),f(l,cs,hs),i=i%Pn,i<0&&(i=i+Pn),a=a%Pn,a<0&&(a=a+Pn),i>a&&!o?a+=Pn:ii&&(vs[0]=Uf(v)*t+r,vs[1]=Vf(v)*n+e,u(s,vs,s),f(l,vs,l))}var be={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},Rn=[],En=[],sr=[],$r=[],lr=[],ur=[],Wf=Math.min,Yf=Math.max,On=Math.cos,kn=Math.sin,Dr=Math.abs,bh=Math.PI,Jr=bh*2,$f=typeof Float32Array<"u",Ta=[];function Xf(r){var e=Math.round(r/bh*1e8)/1e8;return e%2*bh}function __(r,e){var t=Xf(r[0]);t<0&&(t+=Jr);var n=t-r[0],i=r[1];i+=n,!e&&i-t>=Jr?i=t+Jr:e&&t-i>=Jr?i=t-Jr:!e&&t>i?i=t+(Jr-Xf(t-i)):e&&t0&&(this._ux=Dr(n/Ol/e)||0,this._uy=Dr(n/Ol/t)||0)},r.prototype.setDPR=function(e){this.dpr=e},r.prototype.setContext=function(e){this._ctx=e},r.prototype.getContext=function(){return this._ctx},r.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},r.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},r.prototype.moveTo=function(e,t){return this._drawPendingPt(),this.addData(be.M,e,t),this._ctx&&this._ctx.moveTo(e,t),this._x0=e,this._y0=t,this._xi=e,this._yi=t,this},r.prototype.lineTo=function(e,t){var n=Dr(e-this._xi),i=Dr(t-this._yi),a=n>this._ux||i>this._uy;if(this.addData(be.L,e,t),this._ctx&&a&&this._ctx.lineTo(e,t),a)this._xi=e,this._yi=t,this._pendingPtDist=0;else{var o=n*n+i*i;o>this._pendingPtDist&&(this._pendingPtX=e,this._pendingPtY=t,this._pendingPtDist=o)}return this},r.prototype.bezierCurveTo=function(e,t,n,i,a,o){return this._drawPendingPt(),this.addData(be.C,e,t,n,i,a,o),this._ctx&&this._ctx.bezierCurveTo(e,t,n,i,a,o),this._xi=a,this._yi=o,this},r.prototype.quadraticCurveTo=function(e,t,n,i){return this._drawPendingPt(),this.addData(be.Q,e,t,n,i),this._ctx&&this._ctx.quadraticCurveTo(e,t,n,i),this._xi=n,this._yi=i,this},r.prototype.arc=function(e,t,n,i,a,o){this._drawPendingPt(),Ta[0]=i,Ta[1]=a,__(Ta,o),i=Ta[0],a=Ta[1];var s=a-i;return this.addData(be.A,e,t,n,n,i,s,0,o?0:1),this._ctx&&this._ctx.arc(e,t,n,i,a,o),this._xi=On(a)*n+e,this._yi=kn(a)*n+t,this},r.prototype.arcTo=function(e,t,n,i,a){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(e,t,n,i,a),this},r.prototype.rect=function(e,t,n,i){return this._drawPendingPt(),this._ctx&&this._ctx.rect(e,t,n,i),this.addData(be.R,e,t,n,i),this},r.prototype.closePath=function(){this._drawPendingPt(),this.addData(be.Z);var e=this._ctx,t=this._x0,n=this._y0;return e&&e.closePath(),this._xi=t,this._yi=n,this},r.prototype.fill=function(e){e&&e.fill(),this.toStatic()},r.prototype.stroke=function(e){e&&e.stroke(),this.toStatic()},r.prototype.len=function(){return this._len},r.prototype.setData=function(e){if(this._saveData){var t=e.length;!(this.data&&this.data.length===t)&&$f&&(this.data=new Float32Array(t));for(var n=0;n0&&o))for(var s=0;sf.length&&(this._expandData(),f=this.data);for(var c=0;c0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},r.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var e=[],t=0;t11&&(this.data=new Float32Array(e)))}},r.prototype.getBoundingRect=function(){sr[0]=sr[1]=lr[0]=lr[1]=Number.MAX_VALUE,$r[0]=$r[1]=ur[0]=ur[1]=-Number.MAX_VALUE;var e=this.data,t=0,n=0,i=0,a=0,o;for(o=0;on||Dr(_)>i||h===t-1)&&(p=Math.sqrt(y*y+_*_),a=g,o=m);break}case be.C:{var S=e[h++],b=e[h++],g=e[h++],m=e[h++],w=e[h++],x=e[h++];p=hC(a,o,S,b,g,m,w,x,10),a=w,o=x;break}case be.Q:{var S=e[h++],b=e[h++],g=e[h++],m=e[h++];p=pC(a,o,S,b,g,m,10),a=g,o=m;break}case be.A:var T=e[h++],C=e[h++],D=e[h++],M=e[h++],L=e[h++],I=e[h++],P=I+L;h+=1,d&&(s=On(L)*D+T,l=kn(L)*M+C),p=Yf(D,M)*Wf(Jr,Math.abs(I)),a=On(P)*D+T,o=kn(P)*M+C;break;case be.R:{s=a=e[h++],l=o=e[h++];var R=e[h++],E=e[h++];p=R*2+E*2;break}case be.Z:{var y=s-a,_=l-o;p=Math.sqrt(y*y+_*_),a=s,o=l;break}}p>=0&&(u[c++]=p,f+=p)}return this._pathLen=f,f},r.prototype.rebuildPath=function(e,t){var n=this.data,i=this._ux,a=this._uy,o=this._len,s,l,u,f,c,h,v=t<1,d,p,g=0,m=0,y,_=0,S,b;if(!(v&&(this._pathSegLen||this._calculateLength(),d=this._pathSegLen,p=this._pathLen,y=t*p,!y)))e:for(var w=0;w0&&(e.lineTo(S,b),_=0),x){case be.M:s=u=n[w++],l=f=n[w++],e.moveTo(u,f);break;case be.L:{c=n[w++],h=n[w++];var C=Dr(c-u),D=Dr(h-f);if(C>i||D>a){if(v){var M=d[m++];if(g+M>y){var L=(y-g)/M;e.lineTo(u*(1-L)+c*L,f*(1-L)+h*L);break e}g+=M}e.lineTo(c,h),u=c,f=h,_=0}else{var I=C*C+D*D;I>_&&(S=c,b=h,_=I)}break}case be.C:{var P=n[w++],R=n[w++],E=n[w++],N=n[w++],O=n[w++],B=n[w++];if(v){var M=d[m++];if(g+M>y){var L=(y-g)/M;Pl(u,P,E,O,L,Rn),Pl(f,R,N,B,L,En),e.bezierCurveTo(Rn[1],En[1],Rn[2],En[2],Rn[3],En[3]);break e}g+=M}e.bezierCurveTo(P,R,E,N,O,B),u=O,f=B;break}case be.Q:{var P=n[w++],R=n[w++],E=n[w++],N=n[w++];if(v){var M=d[m++];if(g+M>y){var L=(y-g)/M;Rl(u,P,E,L,Rn),Rl(f,R,N,L,En),e.quadraticCurveTo(Rn[1],En[1],Rn[2],En[2]);break e}g+=M}e.quadraticCurveTo(P,R,E,N),u=E,f=N;break}case be.A:var G=n[w++],H=n[w++],Y=n[w++],X=n[w++],W=n[w++],ae=n[w++],le=n[w++],He=!n[w++],Ye=Y>X?Y:X,we=Dr(Y-X)>.001,Ee=W+ae,ne=!1;if(v){var M=d[m++];g+M>y&&(Ee=W+ae*(y-g)/M,ne=!0),g+=M}if(we&&e.ellipse?e.ellipse(G,H,Y,X,le,W,Ee,He):e.arc(G,H,Ye,W,Ee,He),ne)break e;T&&(s=On(W)*Y+G,l=kn(W)*X+H),u=On(Ee)*Y+G,f=kn(Ee)*X+H;break;case be.R:s=u=n[w],l=f=n[w+1],c=n[w++],h=n[w++];var ue=n[w++],or=n[w++];if(v){var M=d[m++];if(g+M>y){var $e=y-g;e.moveTo(c,h),e.lineTo(c+Wf($e,ue),h),$e-=ue,$e>0&&e.lineTo(c+ue,h+Wf($e,or)),$e-=or,$e>0&&e.lineTo(c+Yf(ue-$e,0),h+or),$e-=ue,$e>0&&e.lineTo(c,h+Yf(or-$e,0));break e}g+=M}e.rect(c,h,ue,or);break;case be.Z:if(v){var M=d[m++];if(g+M>y){var L=(y-g)/M;e.lineTo(u*(1-L)+s*L,f*(1-L)+l*L);break e}g+=M}e.closePath(),u=s,f=l}}},r.prototype.clone=function(){var e=new r,t=this.data;return e.data=t.slice?t.slice():Array.prototype.slice.call(t),e._len=this._len,e},r.prototype.canSave=function(){return!!this._saveData},r.CMD=be,r.initDefaultProps=function(){var e=r.prototype;e._saveData=!0,e._ux=0,e._uy=0,e._pendingPtDist=0,e._version=0}(),r}();function Di(r,e,t,n,i,a,o){if(i===0)return!1;var s=i,l=0,u=r;if(o>e+s&&o>n+s||or+s&&a>t+s||ae+c&&f>n+c&&f>a+c&&f>s+c||fr+c&&u>t+c&&u>i+c&&u>o+c||ue+u&&l>n+u&&l>a+u||lr+u&&s>t+u&&s>i+u||st||f+ui&&(i+=Ca);var h=Math.atan2(l,s);return h<0&&(h+=Ca),h>=n&&h<=i||h+Ca>=n&&h+Ca<=i}function Er(r,e,t,n,i,a){if(a>e&&a>n||ai?s:0}var Xr=hi.CMD,Bn=Math.PI*2,SA=1e-4;function bA(r,e){return Math.abs(r-e)e&&u>n&&u>a&&u>s||u1&&wA(),v=Je(e,n,a,s,kt[0]),h>1&&(d=Je(e,n,a,s,kt[1]))),h===2?ge&&s>n&&s>a||s=0&&u<=1){for(var f=0,c=bt(e,n,a,u),h=0;ht||s<-t)return 0;var l=Math.sqrt(t*t-s*s);st[0]=-l,st[1]=l;var u=Math.abs(n-i);if(u<1e-4)return 0;if(u>=Bn-1e-4){n=0,i=Bn;var f=a?1:-1;return o>=st[0]+r&&o<=st[1]+r?f:0}if(n>i){var c=n;n=i,i=c}n<0&&(n+=Bn,i+=Bn);for(var h=0,v=0;v<2;v++){var d=st[v];if(d+r>o){var p=Math.atan2(s,d),f=a?1:-1;p<0&&(p=Bn+p),(p>=n&&p<=i||p+Bn>=n&&p+Bn<=i)&&(p>Math.PI/2&&p1&&(t||(s+=Er(l,u,f,c,n,i))),g&&(l=a[d],u=a[d+1],f=l,c=u),p){case Xr.M:f=a[d++],c=a[d++],l=f,u=c;break;case Xr.L:if(t){if(Di(l,u,a[d],a[d+1],e,n,i))return!0}else s+=Er(l,u,a[d],a[d+1],n,i)||0;l=a[d++],u=a[d++];break;case Xr.C:if(t){if(mA(l,u,a[d++],a[d++],a[d++],a[d++],a[d],a[d+1],e,n,i))return!0}else s+=xA(l,u,a[d++],a[d++],a[d++],a[d++],a[d],a[d+1],n,i)||0;l=a[d++],u=a[d++];break;case Xr.Q:if(t){if(yA(l,u,a[d++],a[d++],a[d],a[d+1],e,n,i))return!0}else s+=TA(l,u,a[d++],a[d++],a[d],a[d+1],n,i)||0;l=a[d++],u=a[d++];break;case Xr.A:var m=a[d++],y=a[d++],_=a[d++],S=a[d++],b=a[d++],w=a[d++];d+=1;var x=!!(1-a[d++]);h=Math.cos(b)*_+m,v=Math.sin(b)*S+y,g?(f=h,c=v):s+=Er(l,u,h,v,n,i);var T=(n-m)*S/_+m;if(t){if(_A(m,y,S,b,b+w,x,e,T,i))return!0}else s+=CA(m,y,S,b,b+w,x,T,i);l=Math.cos(b+w)*_+m,u=Math.sin(b+w)*S+y;break;case Xr.R:f=l=a[d++],c=u=a[d++];var C=a[d++],D=a[d++];if(h=f+C,v=c+D,t){if(Di(f,c,h,c,e,n,i)||Di(h,c,h,v,e,n,i)||Di(h,v,f,v,e,n,i)||Di(f,v,f,c,e,n,i))return!0}else s+=Er(h,c,h,v,n,i),s+=Er(f,v,f,c,n,i);break;case Xr.Z:if(t){if(Di(l,u,f,c,e,n,i))return!0}else s+=Er(l,u,f,c,n,i);l=f,u=c;break}}return!t&&!bA(u,c)&&(s+=Er(l,u,f,c,n,i)||0),s!==0}function MA(r,e,t){return S_(r,0,!1,e,t)}function AA(r,e,t,n){return S_(r,e,!0,t,n)}var b_=_e({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},ai),DA={style:_e({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},Eu.style)},Zf=Cu.concat(["invisible","culling","z","z2","zlevel","parent"]),Te=function(r){F(e,r);function e(t){return r.call(this,t)||this}return e.prototype.update=function(){var t=this;r.prototype.update.call(this);var n=this.style;if(n.decal){var i=this._decalEl=this._decalEl||new e;i.buildPath===e.prototype.buildPath&&(i.buildPath=function(l){t.buildPath(l,t.shape)}),i.silent=!0;var a=i.style;for(var o in n)a[o]!==n[o]&&(a[o]=n[o]);a.fill=n.fill?n.decal:null,a.decal=null,a.shadowColor=null,n.strokeFirst&&(a.stroke=null);for(var s=0;s.5?fh:n>.2?VC:ch}else if(t)return ch}return fh},e.prototype.getInsideTextStroke=function(t){var n=this.style.fill;if($(n)){var i=this.__zr,a=!!(i&&i.isDarkMode()),o=go(t,0)0))},e.prototype.hasFill=function(){var t=this.style,n=t.fill;return n!=null&&n!=="none"},e.prototype.getBoundingRect=function(){var t=this._rect,n=this.style,i=!t;if(i){var a=!1;this.path||(a=!0,this.createPathProxy());var o=this.path;(a||this.__dirty&Hi)&&(o.beginPath(),this.buildPath(o,this.shape,!1),this.pathUpdated()),t=o.getBoundingRect()}if(this._rect=t,this.hasStroke()&&this.path&&this.path.len()>0){var s=this._rectStroke||(this._rectStroke=t.clone());if(this.__dirty||i){s.copy(t);var l=n.strokeNoScale?this.getLineScale():1,u=n.lineWidth;if(!this.hasFill()){var f=this.strokeContainThreshold;u=Math.max(u,f??4)}l>1e-10&&(s.width+=u/l,s.height+=u/l,s.x-=u/l/2,s.y-=u/l/2)}return s}return t},e.prototype.contain=function(t,n){var i=this.transformCoordToLocal(t,n),a=this.getBoundingRect(),o=this.style;if(t=i[0],n=i[1],a.contain(t,n)){var s=this.path;if(this.hasStroke()){var l=o.lineWidth,u=o.strokeNoScale?this.getLineScale():1;if(u>1e-10&&(this.hasFill()||(l=Math.max(l,this.strokeContainThreshold)),AA(s,l/u,t,n)))return!0}if(this.hasFill())return MA(s,t,n)}return!1},e.prototype.dirtyShape=function(){this.__dirty|=Hi,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},e.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},e.prototype.animateShape=function(t){return this.animate("shape",t)},e.prototype.updateDuringAnimation=function(t){t==="style"?this.dirtyStyle():t==="shape"?this.dirtyShape():this.markRedraw()},e.prototype.attrKV=function(t,n){t==="shape"?this.setShape(n):r.prototype.attrKV.call(this,t,n)},e.prototype.setShape=function(t,n){var i=this.shape;return i||(i=this.shape={}),typeof t=="string"?i[t]=n:k(i,t),this.dirtyShape(),this},e.prototype.shapeChanged=function(){return!!(this.__dirty&Hi)},e.prototype.createStyle=function(t){return zo(b_,t)},e.prototype._innerSaveToNormal=function(t){r.prototype._innerSaveToNormal.call(this,t);var n=this._normalState;t.shape&&!n.shape&&(n.shape=k({},this.shape))},e.prototype._applyStateObj=function(t,n,i,a,o,s){if(r.prototype._applyStateObj.call(this,t,n,i,a,o,s),this.__inHover!==Au){var l=!(n&&a),u;if(n&&n.shape?o?a?u=n.shape:(u=k({},i.shape),k(u,n.shape)):(u=k({},a?this.shape:i.shape),k(u,n.shape)):l&&(u=i.shape),u)if(o){this.shape=k({},this.shape);for(var f={},c=Le(u),h=0;hi&&(c=s+l,s*=i/c,l*=i/c),u+f>i&&(c=u+f,u*=i/c,f*=i/c),l+u>a&&(c=l+u,l*=a/c,u*=a/c),s+f>a&&(c=s+f,s*=a/c,f*=a/c),r.moveTo(t+s,n),r.lineTo(t+i-l,n),l!==0&&r.arc(t+i-l,n+l,l,-Math.PI/2,0),r.lineTo(t+i,n+a-u),u!==0&&r.arc(t+i-u,n+a-u,u,0,Math.PI/2),r.lineTo(t+f,n+a),f!==0&&r.arc(t+f,n+a-f,f,Math.PI/2,Math.PI),r.lineTo(t,n+s),s!==0&&r.arc(t+s,n+s,s,Math.PI,Math.PI*1.5),r.closePath()}var $i=Math.round;function w_(r,e,t){if(e){var n=e.x1,i=e.x2,a=e.y1,o=e.y2;r.x1=n,r.x2=i,r.y1=a,r.y2=o;var s=t&&t.lineWidth;return s&&($i(n*2)===$i(i*2)&&(r.x1=r.x2=Jn(n,s,!0)),$i(a*2)===$i(o*2)&&(r.y1=r.y2=Jn(a,s,!0))),r}}function x_(r,e,t){if(e){var n=e.x,i=e.y,a=e.width,o=e.height;r.x=n,r.y=i,r.width=a,r.height=o;var s=t&&t.lineWidth;return s&&(r.x=Jn(n,s,!0),r.y=Jn(i,s,!0),r.width=Math.max(Jn(n+a,s,!1)-r.x,a===0?0:1),r.height=Math.max(Jn(i+o,s,!1)-r.y,o===0?0:1)),r}}function Jn(r,e,t){if(!e)return r;var n=$i(r*2);return(n+$i(e))%2===0?n/2:(n+(t?1:-1))/2}var OA=function(){function r(){this.x=0,this.y=0,this.width=0,this.height=0}return r}(),kA={},Ae=function(r){F(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new OA},e.prototype.buildPath=function(t,n){var i,a,o,s;if(this.subPixelOptimize){var l=x_(kA,n,this.style);i=l.x,a=l.y,o=l.width,s=l.height,l.r=n.r,n=l}else i=n.x,a=n.y,o=n.width,s=n.height;n.r?EA(t,n):t.rect(i,a,o,s)},e.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},e}(Te);Ae.prototype.type="rect";var Vp={fill:"#000"},Up=2,fr={},BA={style:_e({fill:!0,stroke:!0,fillOpacity:!0,strokeOpacity:!0,lineWidth:!0,fontSize:!0,lineHeight:!0,width:!0,height:!0,textShadowColor:!0,textShadowBlur:!0,textShadowOffsetX:!0,textShadowOffsetY:!0,backgroundColor:!0,padding:!0,borderColor:!0,borderWidth:!0,borderRadius:!0},Eu.style)},Ue=function(r){F(e,r);function e(t){var n=r.call(this)||this;return n.type="text",n._children=[],n._defaultStyle=Vp,n.attr(t),n}return e.prototype.childrenRef=function(){return this._children},e.prototype.update=function(){r.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var t=0;t0,L=0;L=0&&(P=w[I],P.align==="right");)this._placeToken(P,t,T,m,L,"right",_),C-=P.width,L-=P.width,I--;for(M+=(f-(M-g)-(y-L)-C)/2;D<=I;)P=w[D],this._placeToken(P,t,T,m,M+P.width/2,"center",_),M+=P.width,D++;m+=T}},e.prototype._placeToken=function(t,n,i,a,o,s,l){var u=n.rich[t.styleName]||{};u.text=t.text;var f=t.verticalAlign,c=a+i/2;f==="top"?c=a+t.height/2:f==="bottom"&&(c=a+i-t.height/2);var h=!t.isLineHolder&&qf(u);h&&this._renderBackground(u,n,s==="right"?o-t.width:s==="center"?o-t.width/2:o,c-t.height/2,t.width,t.height);var v=!!u.backgroundColor,d=t.textPadding;d&&(o=qp(o,s,d),c-=t.height/2-d[0]-t.innerHeight/2);var p=this._getOrCreateChild(Fl),g=p.createStyle();p.useStyle(g);var m=this._defaultStyle,y=!1,_=0,S=!1,b=Zp("fill"in u?u.fill:"fill"in n?n.fill:(y=!0,m.fill)),w=Xp("stroke"in u?u.stroke:"stroke"in n?n.stroke:!v&&!l&&(!m.autoStroke||y)?(_=Up,S=!0,m.stroke):null),x=u.textShadowBlur>0||n.textShadowBlur>0;g.text=t.text,g.x=o,g.y=c,x&&(g.shadowBlur=u.textShadowBlur||n.textShadowBlur||0,g.shadowColor=u.textShadowColor||n.textShadowColor||"transparent",g.shadowOffsetX=u.textShadowOffsetX||n.textShadowOffsetX||0,g.shadowOffsetY=u.textShadowOffsetY||n.textShadowOffsetY||0),g.textAlign=s,g.textBaseline="middle",g.font=t.font||mn,g.opacity=cn(u.opacity,n.opacity,1),Yp(g,u),w&&(g.lineWidth=cn(u.lineWidth,n.lineWidth,_),g.lineDash=q(u.lineDash,n.lineDash),g.lineDashOffset=n.lineDashOffset||0,g.stroke=w),b&&(g.fill=b),p.setBoundingRect(_h(g,t.contentWidth,t.contentHeight,S?0:null))},e.prototype._renderBackground=function(t,n,i,a,o,s){var l=t.backgroundColor,u=t.borderWidth,f=t.borderColor,c=l&&l.image,h=l&&!c,v=t.borderRadius,d=this,p,g;if(h||t.lineHeight||u&&f){p=this._getOrCreateChild(Ae),p.useStyle(p.createStyle()),p.style.fill=null;var m=p.shape;m.x=i,m.y=a,m.width=o,m.height=s,m.r=v,p.dirtyShape()}if(h){var y=p.style;y.fill=l||null,y.fillOpacity=q(t.fillOpacity,1)}else if(c){g=this._getOrCreateChild(Vr),g.onload=function(){d.dirtyStyle()};var _=g.style;_.image=l.image,_.x=i,_.y=a,_.width=o,_.height=s}if(u&&f){var y=p.style;y.lineWidth=u,y.stroke=f,y.strokeOpacity=q(t.strokeOpacity,1),y.lineDash=t.borderDash,y.lineDashOffset=t.borderDashOffset||0,p.strokeContainThreshold=0,p.hasFill()&&p.hasStroke()&&(y.strokeFirst=!0,y.lineWidth*=2)}var S=(p||g).style;S.shadowBlur=t.shadowBlur||0,S.shadowColor=t.shadowColor||"transparent",S.shadowOffsetX=t.shadowOffsetX||0,S.shadowOffsetY=t.shadowOffsetY||0,S.opacity=cn(t.opacity,n.opacity,1)},e.makeFont=function(t){var n="";return GA(t)&&(n=[t.fontStyle,t.fontWeight,zA(t.fontSize),t.fontFamily||"sans-serif"].join(" ")),n&&Jt(n)||t.textFont||t.font},e}(Wo),NA={left:!0,right:1,center:1},FA={top:1,bottom:1,middle:1},Wp=["fontStyle","fontWeight","fontSize","fontFamily"];function zA(r){return typeof r=="string"&&(r.indexOf("px")!==-1||r.indexOf("rem")!==-1||r.indexOf("em")!==-1)?r:isNaN(+r)?vv+"px":r+"px"}function Yp(r,e){for(var t=0;t=0,a=!1;if(r instanceof Te){var o=D_(r),s=i&&o.selectFill||o.normalFill,l=i&&o.selectStroke||o.normalStroke;if(Ii(s)||Ii(l)){n=n||{};var u=n.style||{};u.fill==="inherit"?(a=!0,n=k({},n),u=k({},u),u.fill=s):!Ii(u.fill)&&Ii(s)?(a=!0,n=k({},n),u=k({},u),u.fill=nh(s)):!Ii(u.stroke)&&Ii(l)&&(a||(n=k({},n),u=k({},u)),u.stroke=nh(l)),n.style=u}}if(n&&n.z2==null){a||(n=k({},n));var f=r.z2EmphasisLift;n.z2=r.z2+(f??YA)}return n}function QA(r,e,t){if(t&&t.z2==null){t=k({},t);var n=r.z2SelectLift;t.z2=r.z2+(n??$A)}return t}function jA(r,e,t){var n=ve(r.currentStates,e)>=0,i=r.style.opacity,a=n?null:qA(r,["opacity"],e,{opacity:1});t=t||{};var o=t.style||{};return o.opacity==null&&(t=k({},t),o=k({opacity:n?i:a.opacity*.1},o),t.style=o),t}function Kf(r,e){var t=this.states[r];if(this.style){if(r==="emphasis")return KA(this,r,e,t);if(r==="blur")return jA(this,r,t);if(r==="select")return QA(this,r,t)}return t}function JA(r){r.stateProxy=Kf;var e=r.getTextContent(),t=r.getTextGuideLine();e&&(e.stateProxy=Kf),t&&(t.stateProxy=Kf)}function tg(r,e){!k_(r,e)&&!r.__highByOuter&&Ur(r,I_)}function rg(r,e){!k_(r,e)&&!r.__highByOuter&&Ur(r,L_)}function Vl(r,e){r.__highByOuter|=1<<(e||0),Ur(r,I_)}function Ul(r,e){!(r.__highByOuter&=~(1<<(e||0)))&&Ur(r,L_)}function eD(r){Ur(r,Nv)}function R_(r){Ur(r,P_)}function E_(r){Ur(r,XA)}function O_(r){Ur(r,ZA)}function k_(r,e){return r.__highDownSilentOnTouch&&e.zrByTouch}function B_(r){var e=r.getModel(),t=[],n=[];e.eachComponent(function(i,a){var o=Ov(a),s=WA(r,a),l=i==="series";!l&&n.push(s),o.isBlured&&(s.group.traverse(function(u){P_(u)}),l&&t.push(a)),o.isBlured=!1}),A(n,function(i){i&&i.toggleBlurSeries&&i.toggleBlurSeries(t,!1,e)})}function xh(r,e,t,n){var i=n.getModel();t=t||"coordinateSystem";function a(u,f){for(var c=0;c0){var s={dataIndex:o,seriesIndex:t.seriesIndex};a!=null&&(s.dataType=a),e.push(s)}})}),e}function wo(r,e,t){N_(r,!0),Ur(r,JA),sD(r,e,t)}function oD(r){N_(r,!1)}function xo(r,e,t,n){n?oD(r):wo(r,e,t)}function sD(r,e,t){var n=he(r);e!=null?(n.focus=e,n.blurScope=t):n.focus&&(n.focus=null)}var ig=["emphasis","blur","select"],lD={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function Wl(r,e,t,n){t=t||"itemStyle";for(var i=0;i1&&(o*=Qf(d),s*=Qf(d));var p=(i===a?-1:1)*Qf((o*o*(s*s)-o*o*(v*v)-s*s*(h*h))/(o*o*(v*v)+s*s*(h*h)))||0,g=p*o*v/s,m=p*-s*h/o,y=(r+t)/2+gs(c)*g-ps(c)*m,_=(e+n)/2+ps(c)*g+gs(c)*m,S=lg([1,0],[(h-g)/o,(v-m)/s]),b=[(h-g)/o,(v-m)/s],w=[(-1*h-g)/o,(-1*v-m)/s],x=lg(b,w);if(Ah(b,w)<=-1&&(x=Ma),Ah(b,w)>=1&&(x=0),x<0){var T=Math.round(x/Ma*1e6)/1e6;x=Ma*2+T%2*Ma}f.addData(u,y,_,o,s,S,x,c,a)}var dD=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,pD=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function gD(r){var e=new hi;if(!r)return e;var t=0,n=0,i=t,a=n,o,s=hi.CMD,l=r.match(dD);if(!l)return e;for(var u=0;uP*P+R*R&&(T=D,C=M),{cx:T,cy:C,x0:-f,y0:-c,x1:T*(i/b-1),y1:C*(i/b-1)}}function TD(r){var e;if(V(r)){var t=r.length;if(!t)return r;t===1?e=[r[0],r[0],0,0]:t===2?e=[r[0],r[0],r[1],r[1]]:t===3?e=r.concat(r[2]):e=r}else e=[r,r,r,r];return e}function CD(r,e){var t,n=Za(e.r,0),i=Za(e.r0||0,0),a=n>0,o=i>0;if(!(!a&&!o)){if(a||(n=i,i=0),i>n){var s=n;n=i,i=s}var l=e.startAngle,u=e.endAngle;if(!(isNaN(l)||isNaN(u))){var f=e.cx,c=e.cy,h=!!e.clockwise,v=fg(u-l),d=v>jf&&v%jf;if(d>Qt&&(v=d),!(n>Qt))r.moveTo(f,c);else if(v>jf-Qt)r.moveTo(f+n*Pi(l),c+n*Nn(l)),r.arc(f,c,n,l,u,!h),i>Qt&&(r.moveTo(f+i*Pi(u),c+i*Nn(u)),r.arc(f,c,i,u,l,h));else{var p=void 0,g=void 0,m=void 0,y=void 0,_=void 0,S=void 0,b=void 0,w=void 0,x=void 0,T=void 0,C=void 0,D=void 0,M=void 0,L=void 0,I=void 0,P=void 0,R=n*Pi(l),E=n*Nn(l),N=i*Pi(u),O=i*Nn(u),B=v>Qt;if(B){var G=e.cornerRadius;G&&(t=TD(G),p=t[0],g=t[1],m=t[2],y=t[3]);var H=fg(n-i)/2;if(_=cr(H,m),S=cr(H,y),b=cr(H,p),w=cr(H,g),C=x=Za(_,S),D=T=Za(b,w),(x>Qt||T>Qt)&&(M=n*Pi(u),L=n*Nn(u),I=i*Pi(l),P=i*Nn(l),vQt){var we=cr(m,C),Ee=cr(y,C),ne=ms(I,P,R,E,n,we,h),ue=ms(M,L,N,O,n,Ee,h);r.moveTo(f+ne.cx+ne.x0,c+ne.cy+ne.y0),C0&&r.arc(f+ne.cx,c+ne.cy,we,tt(ne.y0,ne.x0),tt(ne.y1,ne.x1),!h),r.arc(f,c,n,tt(ne.cy+ne.y1,ne.cx+ne.x1),tt(ue.cy+ue.y1,ue.cx+ue.x1),!h),Ee>0&&r.arc(f+ue.cx,c+ue.cy,Ee,tt(ue.y1,ue.x1),tt(ue.y0,ue.x0),!h))}else r.moveTo(f+R,c+E),r.arc(f,c,n,l,u,!h);if(!(i>Qt)||!B)r.lineTo(f+N,c+O);else if(D>Qt){var we=cr(p,D),Ee=cr(g,D),ne=ms(N,O,M,L,i,-Ee,h),ue=ms(R,E,I,P,i,-we,h);r.lineTo(f+ne.cx+ne.x0,c+ne.cy+ne.y0),D0&&r.arc(f+ne.cx,c+ne.cy,Ee,tt(ne.y0,ne.x0),tt(ne.y1,ne.x1),!h),r.arc(f,c,i,tt(ne.cy+ne.y1,ne.cx+ne.x1),tt(ue.cy+ue.y1,ue.cx+ue.x1),h),we>0&&r.arc(f+ue.cx,c+ue.cy,we,tt(ue.y1,ue.x1),tt(ue.y0,ue.x0),!h))}else r.lineTo(f+N,c+O),r.arc(f,c,i,u,l,h)}r.closePath()}}}var MD=function(){function r(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0,this.cornerRadius=0}return r}(),Wr=function(r){F(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new MD},e.prototype.buildPath=function(t,n){CD(t,n)},e.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},e}(Te);Wr.prototype.type="sector";var AD=function(){function r(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return r}(),Fu=function(r){F(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new AD},e.prototype.buildPath=function(t,n){var i=n.cx,a=n.cy,o=Math.PI*2;t.moveTo(i+n.r,a),t.arc(i,a,n.r,0,o,!1),t.moveTo(i+n.r0,a),t.arc(i,a,n.r0,0,o,!0)},e}(Te);Fu.prototype.type="ring";function DD(r,e,t,n){var i=[],a=[],o=[],s=[],l,u,f,c;if(n){f=[1/0,1/0],c=[-1/0,-1/0];for(var h=0,v=r.length;h=2){if(n){var a=DD(i,n,t,e.smoothConstraint);r.moveTo(i[0][0],i[0][1]);for(var o=i.length,s=0;s<(t?o:o-1);s++){var l=a[s*2],u=a[s*2+1],f=i[(s+1)%o];r.bezierCurveTo(l[0],l[1],u[0],u[1],f[0],f[1])}}else{r.moveTo(i[0][0],i[0][1]);for(var s=1,c=i.length;szn[1]){if(a=!1,Ze.negativeSize||n)return a;var l=ys(zn[0]-Fn[1]),u=ys(Fn[0]-zn[1]);Jf(l,u)>Ss.len()&&(l=u||!Ze.bidirectional)&&(ie.scale(_s,s,-u*i),Ze.useDir&&Ze.calcDirMTV()))}}return a},r.prototype._getProjMinMaxOnAxis=function(e,t,n){for(var i=this._axes[e],a=this._origin,o=t[0].dot(i)+a[e],s=o,l=o,u=1;u0){var c=f.duration,h=f.delay,v=f.easing,d={duration:c,delay:h||0,easing:v,done:a,force:!!a||!!o,setToFinal:!u,scope:r,during:o};s?e.animateFrom(t,d):e.animateTo(t,d)}else e.stopAnimation(),!s&&e.attr(t),o&&o(1),a&&a()}function ot(r,e,t,n,i,a){Gv("update",r,e,t,n,i,a)}function At(r,e,t,n,i,a){Gv("enter",r,e,t,n,i,a)}function io(r){if(!r.__zr)return!0;for(var e=0;eNe(a[1])?a[0]>0?"right":"left":a[1]>0?"bottom":"top"}function vg(r){return!r.isGroup}function YD(r){return r.shape!=null}function n1(r,e,t){if(!r||!e)return;function n(o){var s={};return o.traverse(function(l){vg(l)&&l.anid&&(s[l.anid]=l)}),s}function i(o){var s={x:o.x,y:o.y,rotation:o.rotation};return YD(o)&&(s.shape=se(o.shape)),s}var a=n(r);e.traverse(function(o){if(vg(o)&&o.anid){var s=a[o.anid];if(s){var l=i(o);o.attr(i(s)),ot(o,l,t,he(o).dataIndex)}}})}function i1(r,e){return K(r,function(t){var n=t[0];n=pe(n,e.x),n=Ke(n,e.x+e.width);var i=t[1];return i=pe(i,e.y),i=Ke(i,e.y+e.height),[n,i]})}function a1(r,e){var t=pe(r.x,e.x),n=Ke(r.x+r.width,e.x+e.width),i=pe(r.y,e.y),a=Ke(r.y+r.height,e.y+e.height);if(n>=t&&a>=i)return{x:t,y:i,width:n-t,height:a-i}}function Hu(r,e,t){var n=k({rectHover:!0},e),i=n.style={strokeNoScale:!0};if(t=t||{x:-1,y:-1,width:2,height:2},r)return r.indexOf("image://")===0?(i.image=r.slice(8),_e(i,t),new Vr(n)):Gu(r.replace("path://",""),n,t,"center")}function $D(r,e,t,n,i){for(var a=0,o=i[i.length-1];a1)return!1;var g=ec(v,d,f,c)/h;return!(g<0||g>1)}function ec(r,e,t,n){return r*n-t*e}function XD(r){return r<=1e-6&&r>=-1e-6}function $l(r,e,t,n,i){return e==null||(xe(e)?De[0]=De[1]=De[2]=De[3]=e:(De[0]=e[0],De[1]=e[1],De[2]=e[2],De[3]=e[3]),n&&(De[0]=pe(0,De[0]),De[1]=pe(0,De[1]),De[2]=pe(0,De[2]),De[3]=pe(0,De[3])),t&&(De[0]=-De[0],De[1]=-De[1],De[2]=-De[2],De[3]=-De[3]),dg(r,De,"x","width",3,1,i&&i[0]||0),dg(r,De,"y","height",0,2,i&&i[1]||0)),r}var De=[0,0,0,0];function dg(r,e,t,n,i,a,o){var s=e[a]+e[i],l=r[n];r[n]+=s,o=pe(0,Ke(o,l)),r[n]=0?-e[i]:e[a]>=0?l+e[a]:Ne(s)>1e-8?(l-o)*e[i]/s:0):r[t]-=e[i]}function Vu(r){var e=r.itemTooltipOption,t=r.componentModel,n=r.itemName,i=$(e)?{formatter:e}:e,a=t.mainType,o=t.componentIndex,s={componentType:a,name:n,$vars:["name"]};s[a+"Index"]=o;var l=r.formatterParamsExtra;l&&A(Le(l),function(f){it(s,f)||(s[f]=l[f],s.$vars.push(f))});var u=he(r.el);u.componentMainType=a,u.componentIndex=o,u.tooltipConfig={name:n,option:_e({content:n,encodeHTMLContent:!0,formatterParams:s},i)}}function Ih(r,e){var t;r.isGroup&&(t=e(r)),t||r.traverse(e)}function Uu(r,e){if(r)if(V(r))for(var t=0;te&&(e=o),oe&&(t=e=0),{min:t,max:e}}function s1(r,e,t){l1(r,e,t,-1/0)}function l1(r,e,t,n){if(r.ignoreModelZ)return n;var i=r.getTextContent(),a=r.getTextGuideLine(),o=r.isGroup;if(o)for(var s=r.childrenRef(),l=0;l=0&&s.push(l)}),s}}function Xu(r,e){return de(de({},r,!0),e,!0)}const v2={time:{month:["January","February","March","April","May","June","July","August","September","October","November","December"],monthAbbr:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayOfWeek:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayOfWeekAbbr:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},legend:{selector:{all:"All",inverse:"Inv"}},toolbox:{brush:{title:{rect:"Box Select",polygon:"Lasso Select",lineX:"Horizontally Select",lineY:"Vertically Select",keep:"Keep Selections",clear:"Clear Selections"}},dataView:{title:"Data View",lang:["Data View","Close","Refresh"]},dataZoom:{title:{zoom:"Zoom",back:"Zoom Reset"}},magicType:{title:{line:"Switch to Line Chart",bar:"Switch to Bar Chart",stack:"Stack",tiled:"Tile"}},restore:{title:"Restore"},saveAsImage:{title:"Save as Image",lang:["Right Click to Save Image"]}},series:{typeNames:{pie:"Pie chart",bar:"Bar chart",line:"Line chart",scatter:"Scatter plot",effectScatter:"Ripple scatter plot",radar:"Radar chart",tree:"Tree",treemap:"Treemap",boxplot:"Boxplot",candlestick:"Candlestick",k:"K line chart",heatmap:"Heat map",map:"Map",parallel:"Parallel coordinate map",lines:"Line graph",graph:"Relationship graph",sankey:"Sankey diagram",funnel:"Funnel chart",gauge:"Gauge",pictorialBar:"Pictorial bar",themeRiver:"Theme River Map",sunburst:"Sunburst",custom:"Custom chart",chart:"Chart"}},aria:{general:{withTitle:'This is a chart about "{title}"',withoutTitle:"This is a chart"},series:{single:{prefix:"",withName:" with type {seriesType} named {seriesName}.",withoutName:" with type {seriesType}."},multiple:{prefix:". It consists of {seriesCount} series count.",withName:" The {seriesId} series is a {seriesType} representing {seriesName}.",withoutName:" The {seriesId} series is a {seriesType}.",separator:{middle:"",end:""}}},data:{allData:"The data is as follows: ",partialData:"The first {displayCnt} items are: ",withName:"the data for {name} is {value}",withoutName:"{value}",separator:{middle:", ",end:". "}}}},d2={time:{month:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],monthAbbr:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],dayOfWeek:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],dayOfWeekAbbr:["日","一","二","三","四","五","六"]},legend:{selector:{all:"全选",inverse:"反选"}},toolbox:{brush:{title:{rect:"矩形选择",polygon:"圈选",lineX:"横向选择",lineY:"纵向选择",keep:"保持选择",clear:"清除选择"}},dataView:{title:"数据视图",lang:["数据视图","关闭","刷新"]},dataZoom:{title:{zoom:"区域缩放",back:"区域缩放还原"}},magicType:{title:{line:"切换为折线图",bar:"切换为柱状图",stack:"切换为堆叠",tiled:"切换为平铺"}},restore:{title:"还原"},saveAsImage:{title:"保存为图片",lang:["右键另存为图片"]}},series:{typeNames:{pie:"饼图",bar:"柱状图",line:"折线图",scatter:"散点图",effectScatter:"涟漪散点图",radar:"雷达图",tree:"树图",treemap:"矩形树图",boxplot:"箱型图",candlestick:"K线图",k:"K线图",heatmap:"热力图",map:"地图",parallel:"平行坐标图",lines:"线图",graph:"关系图",sankey:"桑基图",funnel:"漏斗图",gauge:"仪表盘图",pictorialBar:"象形柱图",themeRiver:"主题河流图",sunburst:"旭日图",custom:"自定义图表",chart:"图表"}},aria:{general:{withTitle:"这是一个关于“{title}”的图表。",withoutTitle:"这是一个图表,"},series:{single:{prefix:"",withName:"图表类型是{seriesType},表示{seriesName}。",withoutName:"图表类型是{seriesType}。"},multiple:{prefix:"它由{seriesCount}个图表系列组成。",withName:"第{seriesId}个系列是一个表示{seriesName}的{seriesType},",withoutName:"第{seriesId}个系列是一个{seriesType},",separator:{middle:";",end:"。"}}},data:{allData:"其数据是——",partialData:"其中,前{displayCnt}项是——",withName:"{name}的数据是{value}",withoutName:"{value}",separator:{middle:",",end:""}}}};var Xl="ZH",Zv="EN",ji=Zv,fl={},qv={},c1=oe.domSupported?function(){var r=(document.documentElement.lang||navigator.language||navigator.browserLanguage||ji).toUpperCase();return r.indexOf(Xl)>-1?Xl:ji}():ji;function Kv(r,e){r=r.toUpperCase(),qv[r]=new Ie(e),fl[r]=e}function p2(r){if($(r)){var e=fl[r.toUpperCase()]||{};return r===Xl||r===Zv?se(e):de(se(e),se(fl[ji]),!1)}else return de(se(r),se(fl[ji]),!1)}function g2(r){return qv[r]}function m2(){return qv[ji]}Kv(Zv,v2);Kv(Xl,d2);var y2=null;function Zu(){return y2}function h1(r,e){e.breakOption;var t=e.breakParsed;return t}function Qv(r){var e=r.brk;return e?e.breaks:[]}function Zl(r){var e=r.brk;return e?e.hasBreaks():!1}var jv=1e3,Jv=jv*60,oo=Jv*60,Ht=oo*24,bg=Ht*365,_2={year:/({yyyy}|{yy})/,month:/({MMMM}|{MMM}|{MM}|{M})/,day:/({dd}|{d})/,hour:/({HH}|{H}|{hh}|{h})/,minute:/({mm}|{m})/,second:/({ss}|{s})/,millisecond:/({SSS}|{S})/},cl={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{HH}:{mm}:{ss} {SSS}"},S2="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}",ws="{yyyy}-{MM}-{dd}",wg={year:"{yyyy}",month:"{yyyy}-{MM}",day:ws,hour:ws+" "+cl.hour,minute:ws+" "+cl.minute,second:ws+" "+cl.second,millisecond:S2},si=["year","month","day","hour","minute","second","millisecond"],b2=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function w2(r){return!$(r)&&!re(r)?x2(r):r}function x2(r){r=r||{};var e={},t=!0;return A(si,function(n){t&&(t=r[n]==null)}),A(si,function(n,i){var a=r[n];e[n]={};for(var o=null,s=i;s>=0;s--){var l=si[s],u=j(a)&&!V(a)?a[l]:a,f=void 0;V(u)?(f=u.slice(),o=f[0]||""):$(u)?(o=u,f=[o]):(o==null?o=cl[n]:_2[l].test(o)||(o=e[l][l][0]+" "+o),f=[o],t&&(f[1]="{primary|"+o+"}")),e[n][l]=f}}),e}function lt(r,e){return r+="","0000".substr(0,e-r.length)+r}function so(r){switch(r){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return r}}function T2(r){return r===so(r)}function C2(r){switch(r){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function Ko(r,e,t,n){var i=Hr(r),a=i[v1(t)](),o=i[ed(t)]()+1,s=Math.floor((o-1)/3)+1,l=i[td(t)](),u=i["get"+(t?"UTC":"")+"Day"](),f=i[rd(t)](),c=(f-1)%12+1,h=i[nd(t)](),v=i[id(t)](),d=i[ad(t)](),p=f>=12?"pm":"am",g=p.toUpperCase(),m=n instanceof Ie?n:g2(n||c1)||m2(),y=m.getModel("time"),_=y.get("month"),S=y.get("monthAbbr"),b=y.get("dayOfWeek"),w=y.get("dayOfWeekAbbr");return(e||"").replace(/{a}/g,p+"").replace(/{A}/g,g+"").replace(/{yyyy}/g,a+"").replace(/{yy}/g,lt(a%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,_[o-1]).replace(/{MMM}/g,S[o-1]).replace(/{MM}/g,lt(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,lt(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,b[u]).replace(/{ee}/g,w[u]).replace(/{e}/g,u+"").replace(/{HH}/g,lt(f,2)).replace(/{H}/g,f+"").replace(/{hh}/g,lt(c+"",2)).replace(/{h}/g,c+"").replace(/{mm}/g,lt(h,2)).replace(/{m}/g,h+"").replace(/{ss}/g,lt(v,2)).replace(/{s}/g,v+"").replace(/{SSS}/g,lt(d,3)).replace(/{S}/g,d+"")}function M2(r,e,t,n,i){var a=null;if($(t))a=t;else if(re(t)){var o={time:r.time,level:r.time?r.time.level:0},s=Zu();s&&s.makeAxisLabelFormatterParamBreak(o,r.break),a=t(r.value,e,o)}else{var l=r.time;if(l){var u=t[l.lowerTimeUnit][l.upperTimeUnit];a=u[Math.min(l.level,u.length-1)]||""}else{var f=hl(r.value,i);a=t[f][f][0]}}return Ko(new Date(r.value),a,i,n)}function hl(r,e){var t=Hr(r),n=t[ed(e)]()+1,i=t[td(e)](),a=t[rd(e)](),o=t[nd(e)](),s=t[id(e)](),l=t[ad(e)](),u=l===0,f=u&&s===0,c=f&&o===0,h=c&&a===0,v=h&&i===1,d=v&&n===1;return d?"year":v?"month":h?"day":c?"hour":f?"minute":u?"second":"millisecond"}function ql(r,e,t){switch(e){case"year":r[d1(t)](0);case"month":r[p1(t)](1);case"day":r[g1(t)](0);case"hour":r[m1(t)](0);case"minute":r[y1(t)](0);case"second":r[_1(t)](0)}return r}function v1(r){return r?"getUTCFullYear":"getFullYear"}function ed(r){return r?"getUTCMonth":"getMonth"}function td(r){return r?"getUTCDate":"getDate"}function rd(r){return r?"getUTCHours":"getHours"}function nd(r){return r?"getUTCMinutes":"getMinutes"}function id(r){return r?"getUTCSeconds":"getSeconds"}function ad(r){return r?"getUTCMilliseconds":"getMilliseconds"}function A2(r){return r?"setUTCFullYear":"setFullYear"}function d1(r){return r?"setUTCMonth":"setMonth"}function p1(r){return r?"setUTCDate":"setDate"}function g1(r){return r?"setUTCHours":"setHours"}function m1(r){return r?"setUTCMinutes":"setMinutes"}function y1(r){return r?"setUTCSeconds":"setSeconds"}function _1(r){return r?"setUTCMilliseconds":"setMilliseconds"}function D2(r,e,t,n,i,a,o,s){var l=new Ue({style:{text:r,font:e,align:t,verticalAlign:n,padding:i,rich:a,overflow:o?"truncate":null,lineHeight:s}});return l.getBoundingRect()}function od(r){if(!r_(r))return $(r)?r:"-";var e=(r+"").split(".");return e[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(e.length>1?"."+e[1]:"")}function sd(r,e){return r=(r||"").toLowerCase().replace(/-(.)/g,function(t,n){return n.toUpperCase()}),e&&r&&(r=r.charAt(0).toUpperCase()+r.slice(1)),r}var Qo=xu;function Lh(r,e,t){var n="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function i(f){return f&&Jt(f)?f:"-"}function a(f){return Yt(f)}var o=e==="time",s=r instanceof Date;if(o||s){var l=o?Hr(r):r;if(isNaN(+l)){if(s)return"-"}else return Ko(l,n,t)}if(e==="ordinal")return wl(r)?i(r):xe(r)&&a(r)?r+"":"-";var u=_o(r);return a(u)?od(u):wl(r)?i(r):typeof r=="boolean"?r+"":"-"}var xg=["a","b","c","d","e","f","g"],nc=function(r,e){return"{"+r+(e??"")+"}"};function ld(r,e,t){V(e)||(e=[e]);var n=e.length;if(!n)return"";for(var i=e[0].$vars||[],a=0;a':'';var o=t.markerId||"markerX";return{renderMode:a,content:"{"+o+"|} ",style:i==="subItem"?{width:4,height:4,borderRadius:2,backgroundColor:n}:{width:10,height:10,borderRadius:5,backgroundColor:n}}}function I2(r,e,t){(r==="week"||r==="month"||r==="quarter"||r==="half-year"||r==="year")&&(r=`MM-dd +yyyy`);var n=Hr(e),i=t?"getUTC":"get",a=n[i+"FullYear"](),o=n[i+"Month"]()+1,s=n[i+"Date"](),l=n[i+"Hours"](),u=n[i+"Minutes"](),f=n[i+"Seconds"](),c=n[i+"Milliseconds"]();return r=r.replace("MM",lt(o,2)).replace("M",o).replace("yyyy",a).replace("yy",lt(a%100+"",2)).replace("dd",lt(s,2)).replace("d",s).replace("hh",lt(l,2)).replace("h",l).replace("mm",lt(u,2)).replace("m",u).replace("ss",lt(f,2)).replace("s",f).replace("SSS",lt(c,3)),r}function L2(r){return r&&r.charAt(0).toUpperCase()+r.substr(1)}function vi(r,e){return e=e||"transparent",$(r)?r:j(r)&&r.colorStops&&(r.colorStops[0]||{}).color||e}function Tg(r,e){if(e==="_blank"||e==="blank"){var t=window.open();t.opener=null,t.location.href=r}else window.open(r,e)}var vl={},ic={},qu=function(){function r(){this._normalMasterList=[],this._nonSeriesBoxMasterList=[]}return r.prototype.create=function(e,t){this._nonSeriesBoxMasterList=n(vl),this._normalMasterList=n(ic);function n(i,a){var o=[];return A(i,function(s,l){var u=s.create(e,t);o=o.concat(u||[])}),o}},r.prototype.update=function(e,t){A(this._normalMasterList,function(n){n.update&&n.update(e,t)})},r.prototype.getCoordinateSystems=function(){return this._normalMasterList.concat(this._nonSeriesBoxMasterList)},r.register=function(e,t){if(e==="matrix"||e==="calendar"){vl[e]=t;return}ic[e]=t},r.get=function(e){return ic[e]||vl[e]},r}();function P2(r){return!!vl[r]}var R2=1,b1=2;function E2(r){w1.set(r.fullType,{getCoord2:void 0}).getCoord2=r.getCoord2}var w1=Z();function x1(r){var e=r.getShallow("coord",!0),t=R2;if(e==null){var n=w1.get(r.type);n&&n.getCoord2&&(t=b1,e=n.getCoord2(r))}return{coord:e,from:t}}var Ji=0,dl=1,O2=2;function k2(r,e){var t=r.getShallow("coordinateSystem"),n=r.getShallow("coordinateSystemUsage",!0),i=Ji;if(t){var a=r.mainType==="series";n==null&&(n=a?"data":"box"),n==="data"?(i=dl,a||(i=Ji)):n==="box"&&(i=O2,!a&&!P2(t)&&(i=Ji))}return{coordSysType:t,kind:i}}function B2(r){var e=r.targetModel,t=r.coordSysType,n=r.coordSysProvider,i=r.isDefaultDataCoordSys,a=k2(e),o=a.kind,s=a.coordSysType;if(i&&o!==dl&&(o=dl,s=t),o===Ji||s!==t)return Ji;var l=n(t,e);return l?(o===dl?e.coordinateSystem=l:e.boxCoordinateSystem=l,o):Ji}var pl=A,N2=["left","right","top","bottom","width","height"],xs=[["width","left","right"],["height","top","bottom"]];function ud(r,e,t,n,i){var a=0,o=0;n==null&&(n=1/0),i==null&&(i=1/0);var s=0;e.eachChild(function(l,u){var f=l.getBoundingRect(),c=e.childAt(u+1),h=c&&c.getBoundingRect(),v,d;if(r==="horizontal"){var p=f.width+(h?-h.x+f.x:0);v=a+p,v>n||l.newline?(a=0,v=p,o+=s+t,s=f.height):s=Math.max(s,f.height)}else{var g=f.height+(h?-h.y+f.y:0);d=o+g,d>i||l.newline?(a+=s+t,o=0,d=g,s=f.width):s=Math.max(s,f.width)}l.newline||(l.x=a,l.y=o,l.markRedraw(),r==="horizontal"?a=v+t:o=d+t)})}var lo=ud;Re(ud,"vertical");Re(ud,"horizontal");function F2(r,e){return{left:r.getShallow("left",e),top:r.getShallow("top",e),right:r.getShallow("right",e),bottom:r.getShallow("bottom",e),width:r.getShallow("width",e),height:r.getShallow("height",e)}}function z2(r,e){var t=jo(r,e,{enableLayoutOnlyByCenter:!0}),n=r.getBoxLayoutParams(),i,a;if(t.type===Ka.point)a=t.refPoint,i=Mr(n,{width:e.getWidth(),height:e.getHeight()});else{var o=r.get("center"),s=V(o)?o:[o,o];i=Mr(n,t.refContainer),a=t.boxCoordFrom===b1?t.refPoint:[Me(s[0],i.width)+i.x,Me(s[1],i.height)+i.y]}return{viewRect:i,center:a}}function G2(r,e){var t=z2(r,e),n=t.viewRect,i=t.center,a=r.get("radius");V(a)||(a=[0,a]);var o=Me(n.width,e.getWidth()),s=Me(n.height,e.getHeight()),l=Math.min(o,s),u=Me(a[0],l/2),f=Me(a[1],l/2);return{cx:i[0],cy:i[1],r0:u,r:f,viewRect:n}}function Mr(r,e,t){t=Qo(t||0);var n=e.width,i=e.height,a=Me(r.left,n),o=Me(r.top,i),s=Me(r.right,n),l=Me(r.bottom,i),u=Me(r.width,n),f=Me(r.height,i),c=t[2]+t[0],h=t[1]+t[3],v=r.aspect;switch(isNaN(u)&&(u=n-s-h-a),isNaN(f)&&(f=i-l-c-o),v!=null&&(isNaN(u)&&isNaN(f)&&(v>n/i?u=n*.8:f=i*.8),isNaN(u)&&(u=v*f),isNaN(f)&&(f=u/v)),isNaN(a)&&(a=n-s-u-h),isNaN(o)&&(o=i-l-f-c),r.left||r.right){case"center":a=n/2-u/2-t[3];break;case"right":a=n-u-h;break}switch(r.top||r.bottom){case"middle":case"center":o=i/2-f/2-t[0];break;case"bottom":o=i-f-c;break}a=a||0,o=o||0,isNaN(u)&&(u=n-h-a-(s||0)),isNaN(f)&&(f=i-c-o-(l||0));var d=new te((e.x||0)+a+t[3],(e.y||0)+o+t[0],u,f);return d.margin=t,d}var Ka={rect:1,point:2};function jo(r,e,t){var n,i,a,o=r.boxCoordinateSystem,s;if(o){var l=x1(r),u=l.coord,f=l.from;if(o.dataToLayout){a=Ka.rect,s=f;var c=o.dataToLayout(u);n=c.contentRect||c.rect}else t&&t.enableLayoutOnlyByCenter&&o.dataToPoint&&(a=Ka.point,s=f,i=o.dataToPoint(u))}return a==null&&(a=Ka.rect),a===Ka.rect&&(n||(n={x:0,y:0,width:e.getWidth(),height:e.getHeight()}),i=[n.x+n.width/2,n.y+n.height/2]),{type:a,refContainer:n,refPoint:i,boxCoordFrom:s}}function Do(r){var e=r.layoutMode||r.constructor.layoutMode;return j(e)?e:e?{type:e}:null}function yn(r,e,t){var n=t&&t.ignoreSize;!V(n)&&(n=[n,n]);var i=o(xs[0],0),a=o(xs[1],1);l(xs[0],r,i),l(xs[1],r,a);function o(u,f){var c={},h=0,v={},d=0,p=2;if(pl(u,function(y){v[y]=r[y]}),pl(u,function(y){it(e,y)&&(c[y]=v[y]=e[y]),s(c,y)&&h++,s(v,y)&&d++}),n[f])return s(e,u[1])?v[u[2]]=null:s(e,u[2])&&(v[u[1]]=null),v;if(d===p||!h)return v;if(h>=p)return c;for(var g=0;g=0;l--)s=de(s,i[l],!0);n.defaultOption=s}return n.defaultOption},e.prototype.getReferringComponents=function(t,n){var i=t+"Index",a=t+"Id";return Uo(this.ecModel,t,{index:this.get(i,!0),id:this.get(a,!0)},n)},e.prototype.getBoxLayoutParams=function(){return F2(this,!1)},e.prototype.getZLevelKey=function(){return""},e.prototype.setZLevel=function(t){this.option.zlevel=t},e.protoInitialize=function(){var t=e.prototype;t.type="component",t.id="",t.name="",t.mainType="",t.subType="",t.componentIndex=0}(),e}(Ie);h_(ye,Ie);Pu(ye);c2(ye);h2(ye,U2);function U2(r){var e=[];return A(ye.getClassesByMainType(r),function(t){e=e.concat(t.dependencies||t.prototype.dependencies||[])}),e=K(e,function(t){return gr(t).main}),r!=="dataset"&&ve(e,"dataset")<=0&&e.unshift("dataset"),e}var U={color:{},darkColor:{},size:{}},Oe=U.color={theme:["#5070dd","#b6d634","#505372","#ff994d","#0ca8df","#ffd10a","#fb628b","#785db0","#3fbe95"],neutral00:"#fff",neutral05:"#f4f7fd",neutral10:"#e8ebf0",neutral15:"#dbdee4",neutral20:"#cfd2d7",neutral25:"#c3c5cb",neutral30:"#b7b9be",neutral35:"#aaacb2",neutral40:"#9ea0a5",neutral45:"#929399",neutral50:"#86878c",neutral55:"#797b7f",neutral60:"#6d6e73",neutral65:"#616266",neutral70:"#54555a",neutral75:"#48494d",neutral80:"#3c3c41",neutral85:"#303034",neutral90:"#232328",neutral95:"#17171b",neutral99:"#000",accent05:"#eff1f9",accent10:"#e0e4f2",accent15:"#d0d6ec",accent20:"#c0c9e6",accent25:"#b1bbdf",accent30:"#a1aed9",accent35:"#91a0d3",accent40:"#8292cc",accent45:"#7285c6",accent50:"#6578ba",accent55:"#5c6da9",accent60:"#536298",accent65:"#4a5787",accent70:"#404c76",accent75:"#374165",accent80:"#2e3654",accent85:"#252b43",accent90:"#1b2032",accent95:"#121521",transparent:"rgba(0,0,0,0)",highlight:"rgba(255,231,130,0.8)"};k(Oe,{primary:Oe.neutral80,secondary:Oe.neutral70,tertiary:Oe.neutral60,quaternary:Oe.neutral50,disabled:Oe.neutral20,border:Oe.neutral30,borderTint:Oe.neutral20,borderShade:Oe.neutral40,background:Oe.neutral05,backgroundTint:"rgba(234,237,245,0.5)",backgroundTransparent:"rgba(255,255,255,0)",backgroundShade:Oe.neutral10,shadow:"rgba(0,0,0,0.2)",shadowTint:"rgba(129,130,136,0.2)",axisLine:Oe.neutral70,axisLineTint:Oe.neutral40,axisTick:Oe.neutral70,axisTickMinor:Oe.neutral60,axisLabel:Oe.neutral70,axisSplitLine:Oe.neutral15,axisMinorSplitLine:Oe.neutral05});for(var Gn in Oe)if(Oe.hasOwnProperty(Gn)){var Cg=Oe[Gn];Gn==="theme"?U.darkColor.theme=Oe.theme.slice():Gn==="highlight"?U.darkColor.highlight="rgba(255,231,130,0.4)":Gn.indexOf("accent")===0?U.darkColor[Gn]=El(Cg,null,function(r){return r*.5},function(r){return Math.min(1,1.3-r)}):U.darkColor[Gn]=El(Cg,null,function(r){return r*.9},function(r){return 1-Math.pow(r,1.5)})}U.size={xxs:2,xs:5,s:10,m:15,l:20,xl:30,xxl:40,xxxl:50};var T1="";typeof navigator<"u"&&(T1=navigator.platform||"");var Ri="rgba(0, 0, 0, 0.2)",C1=U.color.theme[0],W2=El(C1,null,null,.9);const M1={darkMode:"auto",colorBy:"series",color:U.color.theme,gradientColor:[W2,C1],aria:{decal:{decals:[{color:Ri,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:Ri,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:Ri,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:Ri,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:Ri,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:Ri,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:T1.match(/^Win/)?"Microsoft YaHei":"sans-serif",fontSize:12,fontStyle:"normal",fontWeight:"normal"},blendMode:null,stateAnimation:{duration:300,easing:"cubicOut"},animation:"auto",animationDuration:1e3,animationDurationUpdate:500,animationEasing:"cubicInOut",animationEasingUpdate:"cubicInOut",animationThreshold:2e3,progressiveThreshold:3e3,progressive:400,hoverLayerThreshold:3e3,useUTC:!1};var Qe={Must:1,Might:2,Not:3},A1=Se();function Y2(r){A1(r).datasetMap=Z()}function $2(r,e,t){var n={},i=fd(e);if(!i||!r)return n;var a=[],o=[],s=e.ecModel,l=A1(s).datasetMap,u=i.uid+"_"+t.seriesLayoutBy,f,c;r=r.slice(),A(r,function(p,g){var m=j(p)?p:r[g]={name:p};m.type==="ordinal"&&f==null&&(f=g,c=d(m)),n[m.name]=[]});var h=l.get(u)||l.set(u,{categoryWayDim:c,valueWayDim:0});A(r,function(p,g){var m=p.name,y=d(p);if(f==null){var _=h.valueWayDim;v(n[m],_,y),v(o,_,y),h.valueWayDim+=y}else if(f===g)v(n[m],0,y),v(a,0,y);else{var _=h.categoryWayDim;v(n[m],_,y),v(o,_,y),h.categoryWayDim+=y}});function v(p,g,m){for(var y=0;ye)return r[n];return r[t-1]}function j2(r,e,t,n,i,a,o){a=a||r;var s=e(a),l=s.paletteIdx||0,u=s.paletteNameMap=s.paletteNameMap||{};if(u.hasOwnProperty(i))return u[i];var f=o==null||!n?t:Q2(n,o);if(f=f||t,!(!f||!f.length)){var c=f[l];return i&&(u[i]=c),s.paletteIdx=(l+1)%f.length,c}}function J2(r,e){e(r).paletteIdx=0,e(r).paletteNameMap={}}var Ts,Aa,Ag,Dg="\0_ec_inner",eI=1,hd=function(r){F(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.init=function(t,n,i,a,o,s){a=a||{},this.option=null,this._theme=new Ie(a),this._locale=new Ie(o),this._optionManager=s},e.prototype.setOption=function(t,n,i){var a=Pg(n);this._optionManager.setOption(t,i,a),this._resetOption(null,a)},e.prototype.resetOption=function(t,n){return this._resetOption(t,Pg(n))},e.prototype._resetOption=function(t,n){var i=!1,a=this._optionManager;if(!t||t==="recreate"){var o=a.mountOption(t==="recreate");!this.option||t==="recreate"?Ag(this,o):(this.restoreData(),this._mergeOption(o,n)),i=!0}if((t==="timeline"||t==="media")&&this.restoreData(),!t||t==="recreate"||t==="timeline"){var s=a.getTimelineOption(this);s&&(i=!0,this._mergeOption(s,n))}if(!t||t==="recreate"||t==="media"){var l=a.getMediaOption(this);l.length&&A(l,function(u){i=!0,this._mergeOption(u,n)},this)}return i},e.prototype.mergeOption=function(t){this._mergeOption(t,null)},e.prototype._mergeOption=function(t,n){var i=this.option,a=this._componentsMap,o=this._componentsCount,s=[],l=Z(),u=n&&n.replaceMergeMainTypeMap;Y2(this),A(t,function(c,h){c!=null&&(ye.hasClass(h)?h&&(s.push(h),l.set(h,!0)):i[h]=i[h]==null?se(c):de(i[h],c,!0))}),u&&u.each(function(c,h){ye.hasClass(h)&&!l.get(h)&&(s.push(h),l.set(h,!0))}),ye.topologicalTravel(s,ye.getAllClassMainTypes(),f,this);function f(c){var h=K2(this,c,pt(t[c])),v=a.get(c),d=v?u&&u.get(c)?"replaceMerge":"normalMerge":"replaceAll",p=wM(v,h,d);IM(p,c,ye),i[c]=null,a.set(c,null),o.set(c,0);var g=[],m=[],y=0,_;A(p,function(S,b){var w=S.existing,x=S.newOption;if(!x)w&&(w.mergeOption({},this),w.optionUpdated({},!1));else{var T=c==="series",C=ye.getClass(c,S.keyInfo.subType,!T);if(!C)return;if(c==="tooltip"){if(_)return;_=!0}if(w&&w.constructor===C)w.name=S.keyInfo.name,w.mergeOption(x,this),w.optionUpdated(x,!1);else{var D=k({componentIndex:b},S.keyInfo);w=new C(x,this,this,D),k(w,D),S.brandNew&&(w.__requireNewView=!0),w.init(x,this,this),w.optionUpdated(null,!0)}}w?(g.push(w.option),m.push(w),y++):(g.push(void 0),m.push(void 0))},this),i[c]=g,a.set(c,m),o.set(c,y),c==="series"&&Ts(this)}this._seriesIndices||Ts(this)},e.prototype.getOption=function(){var t=se(this.option);return A(t,function(n,i){if(ye.hasClass(i)){for(var a=pt(n),o=a.length,s=!1,l=o-1;l>=0;l--)a[l]&&!So(a[l])?s=!0:(a[l]=null,!s&&o--);a.length=o,t[i]=a}}),delete t[Dg],t},e.prototype.setTheme=function(t){this._theme=new Ie(t),this._resetOption("recreate",null)},e.prototype.getTheme=function(){return this._theme},e.prototype.getLocaleModel=function(){return this._locale},e.prototype.setUpdatePayload=function(t){this._payload=t},e.prototype.getUpdatePayload=function(){return this._payload},e.prototype.getComponent=function(t,n){var i=this._componentsMap.get(t);if(i){var a=i[n||0];if(a)return a;if(n==null){for(var o=0;o=e:t==="max"?r<=e:r===e}function lI(r,e){return r.join(",")===e.join(",")}var Kt=A,Io=j,Rg=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function ac(r){var e=r&&r.itemStyle;if(e)for(var t=0,n=Rg.length;t0?t[o-1].seriesModel:null)}),yI(t)}})}function yI(r){A(r,function(e,t){var n=[],i=[NaN,NaN],a=[e.stackResultDimension,e.stackedOverDimension],o=e.data,s=e.isStackedByIndex,l=e.seriesModel.get("stackStrategy")||"samesign";o.modify(a,function(u,f,c){var h=o.get(e.stackedDimension,c);if(isNaN(h))return i;var v,d;s?d=o.getRawIndex(c):v=o.get(e.stackedByDimension,c);for(var p=NaN,g=t-1;g>=0;g--){var m=r[g];if(s||(d=m.data.rawIndexOf(m.stackedByDimension,v)),d>=0){var y=m.data.getByRawIndex(m.stackResultDimension,d);if(l==="all"||l==="positive"&&y>0||l==="negative"&&y<0||l==="samesign"&&h>=0&&y>0||l==="samesign"&&h<=0&&y<0){h=Zn(h,y),p=y;break}}}return n[0]=h,n[1]=p,n})})}var Ku=function(){function r(e){this.data=e.data||(e.sourceFormat===ir?{}:[]),this.sourceFormat=e.sourceFormat||M_,this.seriesLayoutBy=e.seriesLayoutBy||Sr,this.startIndex=e.startIndex||0,this.dimensionsDetectedCount=e.dimensionsDetectedCount,this.metaRawOption=e.metaRawOption;var t=this.dimensionsDefine=e.dimensionsDefine;if(t)for(var n=0;np&&(p=_)}v[0]=d,v[1]=p}},i=function(){return this._data?this._data.length/this._dimSize:0};zg=(e={},e[at+"_"+Sr]={pure:!0,appendData:a},e[at+"_"+bi]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},e[Zt]={pure:!0,appendData:a},e[ir]={pure:!0,appendData:function(o){var s=this._data;A(o,function(l,u){for(var f=s[u]||(s[u]=[]),c=0;c<(l||[]).length;c++)f.push(l[c])})}},e[Dt]={appendData:a},e[dn]={persistent:!1,pure:!0,appendData:function(o){this._data=o},clean:function(){this._offset+=this.count(),this._data=null}},e);function a(o){for(var s=0;s=0&&(p=o.interpolatedValue[g])}return p!=null?p+"":""})}},r.prototype.getRawValue=function(e,t){return fa(this.getData(t),e)},r.prototype.formatTooltip=function(e,t,n){},r}();function Ug(r){var e,t;return j(r)?r.type&&(t=r):e=r,{text:e,frag:t}}function uo(r){return new AI(r)}var AI=function(){function r(e){e=e||{},this._reset=e.reset,this._plan=e.plan,this._count=e.count,this._onDirty=e.onDirty,this._dirty=!0}return r.prototype.perform=function(e){var t=this._upstream,n=e&&e.skip;if(this._dirty&&t){var i=this.context;i.data=i.outputData=t.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var a;this._plan&&!n&&(a=this._plan(this.context));var o=f(this._modBy),s=this._modDataCount||0,l=f(e&&e.modBy),u=e&&e.modDataCount||0;(o!==l||s!==u)&&(a="reset");function f(y){return!(y>=1)&&(y=1),y}var c;(this._dirty||a==="reset")&&(this._dirty=!1,c=this._doReset(n)),this._modBy=l,this._modDataCount=u;var h=e&&e.step;if(t?this._dueEnd=t._outputDueEnd:this._dueEnd=this._count?this._count(this.context):1/0,this._progress){var v=this._dueIndex,d=Math.min(h!=null?this._dueIndex+h:1/0,this._dueEnd);if(!n&&(c||v1&&n>0?s:o}};return a;function o(){return e=r?null:li?-this._resultLT:0},r}();function z1(r){var e="",t=-1/0,n=-1/0,i=1/0,a=1/0;return r&&(r.g!=null&&(e+="G"+r.g,t=r.g),r.ge!=null&&(e+="GE"+r.ge,n=r.ge),r.l!=null&&(e+="L"+r.l,i=r.l),r.le!=null&&(e+="LE"+r.le,a=r.le)),{key:e,g:t,ge:n,l:i,le:a}}function G1(r,e){return e>r.g&&e>=r.ge&&e65535?FI:zI}function GI(r){var e=r.constructor;return e===Array?r.slice():new e(r)}function $g(r,e,t,n,i){var a=U1[t||"float"];if(i){var o=r[e],s=o&&o.length;if(s!==n){for(var l=new a(n),u=0;ug[1]&&(g[1]=p)}return this._rawCount=this._count=l,{start:s,end:l}},r.prototype._initDataFromProvider=function(e,t,n){for(var i=this._provider,a=this._chunks,o=this._dimensions,s=o.length,l=this._rawExtent,u=K(o,function(y){return y.property}),f=0;fm[1]&&(m[1]=g)}}!i.persistent&&i.clean&&i.clean(),this._rawCount=this._count=t,this._extent=[]},r.prototype.count=function(){return this._count},r.prototype.get=function(e,t){if(!(t>=0&&t=0&&t=this._rawCount||e<0)return-1;if(!this._indices)return e;var t=this._indices,n=t[e];if(n!=null&&ne)a=o-1;else return o}return-1},r.prototype.getIndices=function(){var e,t=this._indices;if(t){var n=t.constructor,i=this._count;if(n===Array){e=new n(i);for(var a=0;a=c&&y<=h||isNaN(y))&&(l[u++]=p),p++}d=!0}else if(a===2){for(var g=v[i[0]],_=v[i[1]],S=e[i[1]][0],b=e[i[1]][1],m=0;m=c&&y<=h||isNaN(y))&&(w>=S&&w<=b||isNaN(w))&&(l[u++]=p),p++}d=!0}}if(!d)if(a===1)for(var m=0;m=c&&y<=h||isNaN(y))&&(l[u++]=x)}else for(var m=0;me[D][1])&&(T=!1)}T&&(l[u++]=t.getRawIndex(m))}return um[1]&&(m[1]=g)}}}},r.prototype.lttbDownSample=function(e,t){var n=this.clone([e],!0),i=n._chunks,a=i[e],o=this.count(),s=0,l=Math.floor(1/t),u=this.getRawIndex(0),f,c,h,v=new(Ei(this._rawCount))(Math.min((Math.ceil(o/l)+2)*2,o));v[s++]=u;for(var d=1;df&&(f=c,h=S)}M>0&&Ms&&(p=s-f);for(var g=0;gd&&(d=y,v=f+g)}var _=this.getRawIndex(c),S=this.getRawIndex(v);cf-d&&(l=f-d,s.length=l);for(var p=0;pc[1]&&(c[1]=m),h[v++]=y}return a._count=v,a._indices=h,a._updateGetRawIdx(),a},r.prototype.each=function(e,t){if(this._count)for(var n=e.length,i=this._chunks,a=0,o=this.count();av&&(v=g))}return l[f]=[h,v]},r.prototype.getRawDataItem=function(e){var t=this.getRawIndex(e);if(this._provider.persistent)return this._provider.getItem(t);for(var n=[],i=this._chunks,a=0;a=0?this._indices[e]:-1},r.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},r.internalField=function(){function e(t,n,i,a){return gl(t[a],this._dimensions[a])}lc={arrayRows:e,objectRows:function(t,n,i,a){return gl(t[n],this._dimensions[a])},keyedColumns:e,original:function(t,n,i,a){var o=t&&(t.value==null?t:t.value);return gl(o instanceof Array?o[a]:o,this._dimensions[a])},typedArray:function(t,n,i,a){return t[a]}}}(),r}(),HI=function(){function r(e){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=e}return r.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},r.prototype._setLocalSource=function(e,t){this._sourceList=e,this._upstreamSignList=t,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},r.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},r.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},r.prototype._createSource=function(){this._setLocalSource([],[]);var e=this._sourceHost,t=this._getUpstreamSourceManagers(),n=!!t.length,i,a;if(Ms(e)){var o=e,s=void 0,l=void 0,u=void 0;if(n){var f=t[0];f.prepareSource(),u=f.getSource(),s=u.data,l=u.sourceFormat,a=[f._getVersionSign()]}else s=o.get("data",!0),l=yt(s)?dn:Dt,a=[];var c=this._getSourceMetaRawOption()||{},h=u&&u.metaRawOption||{},v=q(c.seriesLayoutBy,h.seriesLayoutBy)||null,d=q(c.sourceHeader,h.sourceHeader),p=q(c.dimensions,h.dimensions),g=v!==h.seriesLayoutBy||!!d!=!!h.sourceHeader||p;i=g?[Ph(s,{seriesLayoutBy:v,sourceHeader:d,dimensions:p},l)]:[]}else{var m=e;if(n){var y=this._applyTransform(t);i=y.sourceList,a=y.upstreamSignList}else{var _=m.get("source",!0);i=[Ph(_,this._getSourceMetaRawOption(),null)],a=[]}}this._setLocalSource(i,a)},r.prototype._applyTransform=function(e){var t=this._sourceHost,n=t.get("transform",!0),i=t.get("fromTransformResult",!0);if(i!=null){var a="";e.length!==1&&Xg(a)}var o,s=[],l=[];return A(e,function(u){u.prepareSource();var f=u.getSource(i||0),c="";i!=null&&!f&&Xg(c),s.push(f),l.push(u._getVersionSign())}),n?o=BI(n,s,{datasetIndex:t.componentIndex}):i!=null&&(o=[_I(s[0])]),{sourceList:o,upstreamSignList:l}},r.prototype._isDirty=function(){if(this._dirty)return!0;for(var e=this._getUpstreamSourceManagers(),t=0;t1||t>0&&!r.noHeader;return A(r.blocks,function(i){var a=X1(i);a>=e&&(e=a+ +(n&&(!a||Eh(i)&&!i.noHeader)))}),e}return 0}function YI(r,e,t,n){var i=e.noHeader,a=XI(X1(e)),o=[],s=e.blocks||[];wr(!s||V(s)),s=s||[];var l=r.orderMode;if(e.sortBlocks&&l){s=s.slice();var u={valueAsc:"asc",valueDesc:"desc"};if(it(u,l)){var f=new DI(u[l],null);s.sort(function(p,g){return f.evaluate(p.sortParam,g.sortParam)})}else l==="seriesDesc"&&s.reverse()}A(s,function(p,g){var m=e.valueFormatter,y=$1(p)(m?k(k({},r),{valueFormatter:m}):r,p,g>0?a.html:0,n);y!=null&&o.push(y)});var c=r.renderMode==="richText"?o.join(a.richText):Oh(n,o.join(""),i?t:a.html);if(i)return c;var h=Lh(e.header,"ordinal",r.useUTC),v=Y1(n,r.renderMode).nameStyle,d=W1(n);return r.renderMode==="richText"?Z1(r,h,v)+a.richText+c:Oh(n,'
'+ft(h)+"
"+c,t)}function $I(r,e,t,n){var i=r.renderMode,a=e.noName,o=e.noValue,s=!e.markerType,l=e.name,u=r.useUTC,f=e.valueFormatter||r.valueFormatter||function(S){return S=V(S)?S:[S],K(S,function(b,w){return Lh(b,V(v)?v[w]:v,u)})};if(!(a&&o)){var c=s?"":r.markupStyleCreator.makeTooltipMarker(e.markerType,e.markerColor||U.color.secondary,i),h=a?"":Lh(l,"ordinal",u),v=e.valueType,d=o?[]:f(e.value,e.rawDataIndex),p=!s||!a,g=!s&&a,m=Y1(n,i),y=m.nameStyle,_=m.valueStyle;return i==="richText"?(s?"":c)+(a?"":Z1(r,h,y))+(o?"":KI(r,d,p,g,_)):Oh(n,(s?"":c)+(a?"":ZI(h,!s,y))+(o?"":qI(d,p,g,_)),t)}}function Zg(r,e,t,n,i,a){if(r){var o=$1(r),s={useUTC:i,renderMode:t,orderMode:n,markupStyleCreator:e,valueFormatter:r.valueFormatter};return o(s,r,0,a)}}function XI(r){return{html:UI[r],richText:WI[r]}}function Oh(r,e,t){var n='
',i="margin: "+t+"px 0 0",a=W1(r);return'
'+e+n+"
"}function ZI(r,e,t){var n=e?"margin-left:2px":"";return''+ft(r)+""}function qI(r,e,t,n){var i=t?"10px":"20px",a=e?"float:right;margin-left:"+i:"";return r=V(r)?r:[r],''+K(r,function(o){return ft(o)}).join("  ")+""}function Z1(r,e,t){return r.markupStyleCreator.wrapRichTextStyle(e,t)}function KI(r,e,t,n,i){var a=[i],o=n?10:20;return t&&a.push({padding:[0,0,0,o],align:"right"}),r.markupStyleCreator.wrapRichTextStyle(V(e)?e.join(" "):e,a)}function QI(r,e){var t=r.getData().getItemVisual(e,"style"),n=t[r.visualDrawType];return vi(n)}function q1(r,e){var t=r.get("padding");return t??(e==="richText"?[8,10]:10)}var uc=function(){function r(){this.richTextStyles={},this._nextStyleNameId=Mv()}return r.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},r.prototype.makeTooltipMarker=function(e,t,n){var i=n==="richText"?this._generateStyleName():null,a=S1({color:t,type:e,renderMode:n,markerId:i});return $(a)?a:(this.richTextStyles[i]=a.style,a.content)},r.prototype.wrapRichTextStyle=function(e,t){var n={};V(t)?A(t,function(a){return k(n,a)}):k(n,t);var i=this._generateStyleName();return this.richTextStyles[i]=n,"{"+i+"|"+e+"}"},r}();function jI(r){var e=r.series,t=r.dataIndex,n=r.multipleSeries,i=e.getData(),a=i.mapDimensionsAll("defaultedTooltip"),o=a.length,s=e.getRawValue(t),l=V(s),u=QI(e,t),f,c,h,v;if(o>1||l&&!o){var d=JI(s,e,t,a,u);f=d.inlineValues,c=d.inlineValueTypes,h=d.blocks,v=d.inlineValues[0]}else if(o){var p=i.getDimensionInfo(a[0]);v=f=fa(i,t,a[0]),c=p.type}else v=f=l?s[0]:s;var g=Av(e),m=g&&e.name||"",y=i.getName(t),_=n?m:y;return Lo("section",{header:m,noHeader:n||!g,sortParam:v,blocks:[Lo("nameValue",{markerType:"item",markerColor:u,name:_,noName:!Jt(_),value:f,valueType:c,rawDataIndex:i.getRawIndex(t)})].concat(h||[])})}function JI(r,e,t,n,i){var a=e.getData(),o=br(r,function(c,h,v){var d=a.getDimensionInfo(v);return c=c||d&&d.tooltip!==!1&&d.displayName!=null},!1),s=[],l=[],u=[];n.length?A(n,function(c){f(fa(a,t,c),c)}):A(r,f);function f(c,h){var v=a.getDimensionInfo(h);!v||v.otherDims.tooltip===!1||(o?u.push(Lo("nameValue",{markerType:"subItem",markerColor:i,name:v.displayName,value:c,valueType:v.type})):(s.push(c),l.push(v.type)))}return{inlineValues:s,inlineValueTypes:l,blocks:u}}var Zr=Se();function As(r,e){return r.getName(e)||r.getId(e)}var eL="__universalTransitionEnabled",Tt=function(r){F(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t._selectedDataIndicesMap={},t}return e.prototype.init=function(t,n,i){this.seriesIndex=this.componentIndex,this.dataTask=uo({count:rL,reset:nL}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(t,i);var a=Zr(this).sourceManager=new HI(this);a.prepareSource();var o=this.getInitialData(t,i);Kg(o,this),this.dataTask.context.data=o,Zr(this).dataBeforeProcessed=o,qg(this),this._initSelectedMapFromData(o)},e.prototype.mergeDefaultAndTheme=function(t,n){var i=Do(this),a=i?ma(t):{},o=this.subType;ye.hasClass(o)&&(o+="Series"),de(t,n.getTheme().get(this.subType)),de(t,this.getDefaultOption()),gh(t,"label",["show"]),this.fillDataTextStyle(t.data),i&&yn(t,a,i)},e.prototype.mergeOption=function(t,n){t=de(this.option,t,!0),this.fillDataTextStyle(t.data);var i=Do(this);i&&yn(this.option,t,i);var a=Zr(this).sourceManager;a.dirty(),a.prepareSource();var o=this.getInitialData(t,n);Kg(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,Zr(this).dataBeforeProcessed=o,qg(this),this._initSelectedMapFromData(o)},e.prototype.fillDataTextStyle=function(t){if(t&&!yt(t))for(var n=["show"],i=0;i=0&&h<0)&&(c=b,h=S,v=0),S===h&&(f[v++]=g))}return f.length=v,f},e.prototype.formatTooltip=function(t,n,i){return jI({series:this,dataIndex:t,multipleSeries:n})},e.prototype.isAnimationEnabled=function(){var t=this.ecModel;if(oe.node&&!(t&&t.ssr))return!1;var n=this.getShallow("animation");return n&&this.getData().count()>this.getShallow("animationThreshold")&&(n=!1),!!n},e.prototype.restoreData=function(){this.dataTask.dirty()},e.prototype.getColorFromPalette=function(t,n,i){var a=this.ecModel,o=cd.prototype.getColorFromPalette.call(this,t,n,i);return o||(o=a.getColorFromPalette(t,n,i)),o},e.prototype.coordDimToDataDim=function(t){return this.getRawData().mapDimensionsAll(t)},e.prototype.getProgressive=function(){return this.get("progressive")},e.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},e.prototype.select=function(t,n){this._innerSelect(this.getData(n),t)},e.prototype.unselect=function(t,n){var i=this.option.selectedMap;if(i){var a=this.option.selectedMode,o=this.getData(n);if(a==="series"||i==="all"){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var s=0;s=0&&i.push(o)}return i},e.prototype.isSelected=function(t,n){var i=this.option.selectedMap;if(!i)return!1;var a=this.getData(n);return(i==="all"||i[As(a,t)])&&!a.getItemModel(t).get(["select","disabled"])},e.prototype.isUniversalTransitionEnabled=function(){if(this[eL])return!0;var t=this.option.universalTransition;return t?t===!0?!0:t&&t.enabled:!1},e.prototype._innerSelect=function(t,n){var i,a,o=this.option,s=o.selectedMode,l=n.length;if(!(!s||!l)){if(s==="series")o.selectedMap="all";else if(s==="multiple"){j(o.selectedMap)||(o.selectedMap={});for(var u=o.selectedMap,f=0;f0&&this._innerSelect(t,n)}},e.registerClass=function(t){return ye.registerClass(t)},e.protoInitialize=function(){var t=e.prototype;t.type="series.__base__",t.seriesIndex=0,t.ignoreStyleOnData=!1,t.hasSymbolVisual=!1,t.defaultSymbol="circle",t.visualStyleAccessPath="itemStyle",t.visualDrawType="fill"}(),e}(ye);Xt(Tt,MI);Xt(Tt,cd);h_(Tt,ye);function qg(r){var e=r.name;Av(r)||(r.name=tL(r)||e)}function tL(r){var e=r.getRawData(),t=e.mapDimensionsAll("seriesName"),n=[];return A(t,function(i){var a=e.getDimensionInfo(i);a.displayName&&n.push(a.displayName)}),n.join(" ")}function rL(r){return r.model.getRawData().count()}function nL(r){var e=r.model;return e.setData(e.getRawData().cloneShallow()),iL}function iL(r,e){e.outputData&&r.end>e.outputData.count()&&e.model.getRawData().cloneShallow(e.outputData)}function Kg(r,e){A(x0(r.CHANGABLE_METHODS,r.DOWNSAMPLE_METHODS),function(t){r.wrapMethod(t,Re(aL,e))})}function aL(r,e){var t=kh(r);return t&&t.setOutputEnd((e||this).count()),e}function kh(r){var e=(r.ecModel||{}).scheduler,t=e&&e.getPipeline(r.uid);if(t){var n=t.currentTask;if(n){var i=n.agentStubMap;i&&(n=i.get(r.uid))}return n}}var _t=function(){function r(){this.group=new Ge,this.uid=$u("viewComponent")}return r.prototype.init=function(e,t){},r.prototype.render=function(e,t,n,i){},r.prototype.dispose=function(e,t){},r.prototype.updateView=function(e,t,n,i){},r.prototype.updateLayout=function(e,t,n,i){},r.prototype.updateVisual=function(e,t,n,i){},r.prototype.toggleBlurSeries=function(e,t,n){},r.prototype.eachRendered=function(e){var t=this.group;t&&t.traverse(e)},r}();Rv(_t);Pu(_t);function gd(){var r=Se();return function(e){var t=r(e),n=e.pipelineContext,i=!!t.large,a=!!t.progressiveRender,o=t.large=!!(n&&n.large),s=t.progressiveRender=!!(n&&n.progressiveRender);return(i!==o||a!==s)&&"reset"}}var K1=Se(),oL=gd(),gt=function(){function r(){this.group=new Ge,this.uid=$u("viewChart"),this.renderTask=uo({plan:sL,reset:lL}),this.renderTask.context={view:this}}return r.prototype.init=function(e,t){},r.prototype.render=function(e,t,n,i){},r.prototype.highlight=function(e,t,n,i){var a=e.getData(i&&i.dataType);a&&jg(a,i,"emphasis")},r.prototype.downplay=function(e,t,n,i){var a=e.getData(i&&i.dataType);a&&jg(a,i,"normal")},r.prototype.remove=function(e,t){this.group.removeAll()},r.prototype.dispose=function(e,t){},r.prototype.updateView=function(e,t,n,i){this.render(e,t,n,i)},r.prototype.updateVisual=function(e,t,n,i){this.render(e,t,n,i)},r.prototype.eachRendered=function(e){Uu(this.group,e)},r.markUpdateMethod=function(e,t){K1(e).updateMethod=t},r.protoInitialize=function(){var e=r.prototype;e.type="chart"}(),r}();function Qg(r,e,t){r&&Ch(r)&&(e==="emphasis"?Vl:Ul)(r,t)}function jg(r,e,t){var n=ci(r,e),i=e&&e.highlightKey!=null?uD(e.highlightKey):null;n!=null?A(pt(n),function(a){Qg(r.getItemGraphicEl(a),t,i)}):r.eachItemGraphicEl(function(a){Qg(a,t,i)})}Rv(gt);Pu(gt);function sL(r){return oL(r.model)}function lL(r){var e=r.model,t=r.ecModel,n=r.api,i=r.payload,a=e.pipelineContext.progressiveRender,o=r.view,s=i&&K1(i).updateMethod,l=a?"incrementalPrepareRender":s&&o[s]?s:"render";return l!=="render"&&o[l](e,t,n,i),uL[l]}var uL={incrementalPrepareRender:{progress:function(r,e){e.view.incrementalRender(r,e.model,e.ecModel,e.api,e.payload)}},render:{forceFirstProgress:!0,progress:function(r,e){e.view.render(e.model,e.ecModel,e.api,e.payload)}}},Kl="\0__throttleOriginMethod",Jg="\0__throttleRate",em="\0__throttleType";function Qu(r,e,t){var n,i=0,a=0,o=null,s,l,u,f;e=e||0;function c(){a=new Date().getTime(),o=null,r.apply(l,u||[])}var h=function(){for(var v=[],d=0;d=0?c():o=setTimeout(c,-s),i=n};return h.clear=function(){o&&(clearTimeout(o),o=null)},h.debounceNextCall=function(v){f=v},h}function ju(r,e,t,n){var i=r[e];if(i){var a=i[Kl]||i,o=i[em],s=i[Jg];if(s!==t||o!==n){if(t==null||!n)return r[e]=a;i=r[e]=Qu(a,t,n==="debounce"),i[Kl]=a,i[em]=n,i[Jg]=t}return i}}function Ql(r,e){var t=r[e];t&&t[Kl]&&(t.clear&&t.clear(),r[e]=t[Kl])}var tm=Se(),rm={itemStyle:bo(f1,!0),lineStyle:bo(u1,!0)},fL={lineStyle:"stroke",itemStyle:"fill"};function Q1(r,e){var t=r.visualStyleMapper||rm[e];return t||(console.warn("Unknown style type '"+e+"'."),rm.itemStyle)}function j1(r,e){var t=r.visualDrawType||fL[e];return t||(console.warn("Unknown style type '"+e+"'."),"fill")}var cL={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,e){var t=r.getData(),n=r.visualStyleAccessPath||"itemStyle",i=r.getModel(n),a=Q1(r,n),o=a(i),s=i.getShallow("decal");s&&(t.setVisual("decal",s),s.dirty=!0);var l=j1(r,n),u=o[l],f=re(u)?u:null,c=o.fill==="auto"||o.stroke==="auto";if(!o[l]||f||c){var h=r.getColorFromPalette(r.name,null,e.getSeriesCount());o[l]||(o[l]=h,t.setVisual("colorFromPalette",!0)),o.fill=o.fill==="auto"||re(o.fill)?h:o.fill,o.stroke=o.stroke==="auto"||re(o.stroke)?h:o.stroke}if(t.setVisual("style",o),t.setVisual("drawType",l),!e.isSeriesFiltered(r)&&f)return t.setVisual("colorFromPalette",!1),{dataEach:function(v,d){var p=r.getDataParams(d),g=k({},o);g[l]=f(p),v.setItemVisual(d,"style",g)}}}},Ia=new Ie,hL={createOnAllSeries:!0,reset:function(r,e){if(!r.ignoreStyleOnData){var t=r.getData(),n=r.visualStyleAccessPath||"itemStyle",i=Q1(r,n),a=t.getVisual("drawType");return{dataEach:t.hasItemOption?function(o,s){var l=o.getRawDataItem(s);if(l&&l[n]){Ia.option=l[n];var u=i(Ia),f=o.ensureUniqueItemVisual(s,"style");k(f,u),Ia.option.decal&&(o.setItemVisual(s,"decal",Ia.option.decal),Ia.option.decal.dirty=!0),a in u&&o.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},vL={performRawSeries:!0,overallReset:function(r){var e=Z();r.eachSeries(function(t){if(!t.isColorBySeries()){var n=t.type+"-"+t.getColorBy();tm(t).scope=e.get(n)||e.set(n,{})}}),r.eachSeries(function(t){if(!t.isColorBySeries()){var n=t.getRawData(),i={},a=t.getData(),o=tm(t).scope,s=t.visualStyleAccessPath||"itemStyle",l=j1(t,s);a.each(function(u){var f=a.getRawIndex(u);i[f]=u}),n.each(function(u){var f=i[u],c=a.getItemVisual(f,"colorFromPalette");if(c){var h=a.ensureUniqueItemVisual(f,"style"),v=n.getName(u)||u+"",d=n.count();h[l]=t.getColorFromPalette(v,o,d)}})}})}},Ds=Math.PI;function dL(r,e){e=e||{},_e(e,{text:"loading",textColor:U.color.primary,fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255,255,255,0.8)",showSpinner:!0,color:U.color.theme[0],spinnerRadius:10,lineWidth:5,zlevel:0});var t=new Ge,n=new Ae({style:{fill:e.maskColor},zlevel:e.zlevel,z:1e4});t.add(n);var i=new Ue({style:{text:e.text,fill:e.textColor,fontSize:e.fontSize,fontWeight:e.fontWeight,fontStyle:e.fontStyle,fontFamily:e.fontFamily},zlevel:e.zlevel,z:10001}),a=new Ae({style:{fill:"none"},textContent:i,textConfig:{position:"right",distance:10},zlevel:e.zlevel,z:10001});t.add(a);var o;return e.showSpinner&&(o=new Xo({shape:{startAngle:-Ds/2,endAngle:-Ds/2+.1,r:e.spinnerRadius},style:{stroke:e.color,lineCap:"round",lineWidth:e.lineWidth},zlevel:e.zlevel,z:10001}),o.animateShape(!0).when(1e3,{endAngle:Ds*3/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:Ds*3/2}).delay(300).start("circularInOut"),t.add(o)),t.resize=function(){var s=i.getBoundingRect().width,l=e.showSpinner?e.spinnerRadius:0,u=(r.getWidth()-l*2-(e.showSpinner&&s?10:0)-s)/2-(e.showSpinner&&s?0:5+s/2)+(e.showSpinner?0:s/2)+(s?0:l),f=r.getHeight()/2;e.showSpinner&&o.setShape({cx:u,cy:f}),a.setShape({x:u-l,y:f-l,width:l*2,height:l*2}),n.setShape({x:0,y:0,width:r.getWidth(),height:r.getHeight()})},t.resize(),t}var J1=function(){function r(e,t,n,i){this._stageTaskMap=Z(),this.ecInstance=e,this.api=t,n=this._dataProcessorHandlers=n.slice(),i=this._visualHandlers=i.slice(),this._allHandlers=n.concat(i)}return r.prototype.restoreData=function(e,t){e.restoreData(t),this._stageTaskMap.each(function(n){var i=n.overallTask;i&&i.dirty()})},r.prototype.getPerformArgs=function(e,t){if(e.__pipeline){var n=this._pipelineMap.get(e.__pipeline.id),i=n.context,a=!t&&n.progressiveEnabled&&(!i||i.progressiveRender)&&e.__idxInPipeline>n.blockIndex,o=a?n.step:null,s=i&&i.modDataCount,l=s!=null?Math.ceil(s/o):null;return{step:o,modBy:l,modDataCount:s}}},r.prototype.getPipeline=function(e){return this._pipelineMap.get(e)},r.prototype.updateStreamModes=function(e,t){var n=this._pipelineMap.get(e.uid),i=e.__preparePipelineContext?e.__preparePipelineContext(t,n):f_(e,t,n);e.pipelineContext=n.context=i},r.prototype.restorePipelines=function(e,t){var n=this,i=n._pipelineMap=Z();t.eachSeries(function(a){var o=e.painter.type==="canvas"&&a.getProgressive(),s=a.uid;i.set(s,{id:s,head:null,tail:null,threshold:a.getProgressiveThreshold(),progressiveEnabled:o&&!(a.preventIncremental&&a.preventIncremental()),blockIndex:-1,step:Math.round(o||700),count:0}),n._pipe(a,a.dataTask)})},r.prototype.prepareStageTasks=function(){var e=this._stageTaskMap,t=this.api.getModel(),n=this.api;A(this._allHandlers,function(i){var a=e.get(i.uid)||e.set(i.uid,{}),o="";wr(!(i.reset&&i.overallReset),o),i.reset&&this._createSeriesStageTask(i,a,t,n),i.overallReset&&this._createOverallStageTask(i,a,t,n)},this)},r.prototype.prepareView=function(e,t,n,i){var a=e.renderTask,o=a.context;o.model=t,o.ecModel=n,o.api=i,a.__block=!e.incrementalPrepareRender,this._pipe(t,a)},r.prototype.performDataProcessorTasks=function(e,t){this._performStageTasks(this._dataProcessorHandlers,e,t,{block:!0})},r.prototype.performVisualTasks=function(e,t,n){this._performStageTasks(this._visualHandlers,e,t,n)},r.prototype._performStageTasks=function(e,t,n,i){i=i||{};var a=!1,o=this;A(e,function(l,u){if(!(i.visualType&&i.visualType!==l.visualType)){var f=o._stageTaskMap.get(l.uid),c=f.seriesTaskMap,h=f.overallTask;if(h){var v,d=h.agentStubMap;d.each(function(g){s(i,g)&&(g.dirty(),v=!0)}),v&&h.dirty(),o.updatePayload(h,n);var p=o.getPerformArgs(h,i.block);d.each(function(g){g.perform(p)}),h.perform(p)&&(a=!0)}else c&&c.each(function(g,m){s(i,g)&&g.dirty();var y=o.getPerformArgs(g,i.block);y.skip=!l.performRawSeries&&t.isSeriesFiltered(g.context.model),o.updatePayload(g,n),g.perform(y)&&(a=!0)})}});function s(l,u){return l.setDirty&&(!l.dirtyMap||l.dirtyMap.get(u.__pipeline.id))}this.unfinished=a||this.unfinished},r.prototype.performSeriesTasks=function(e){var t;e.eachSeries(function(n){t=n.dataTask.perform()||t}),this.unfinished=t||this.unfinished},r.prototype.plan=function(){this._pipelineMap.each(function(e){var t=e.tail;do{if(t.__block){e.blockIndex=t.__idxInPipeline;break}t=t.getUpstream()}while(t)})},r.prototype.updatePayload=function(e,t){t!=="remain"&&(e.context.payload=t)},r.prototype._createSeriesStageTask=function(e,t,n,i){var a=this,o=t.seriesTaskMap,s=t.seriesTaskMap=Z(),l=e.seriesType,u=e.getTargetSeries;e.createOnAllSeries?n.eachRawSeries(f):l?n.eachRawSeriesByType(l,f):u&&u(n,i).each(f);function f(c){var h=c.uid,v=s.set(h,o&&o.get(h)||uo({plan:_L,reset:SL,count:wL}));v.context={model:c,ecModel:n,api:i,useClearVisual:e.isVisual&&!e.isLayout,plan:e.plan,reset:e.reset,scheduler:a},a._pipe(c,v)}},r.prototype._createOverallStageTask=function(e,t,n,i){var a=this,o=t.overallTask=t.overallTask||uo({reset:pL});o.context={ecModel:n,api:i,overallReset:e.overallReset,scheduler:a};var s=o.agentStubMap,l=o.agentStubMap=Z(),u=e.seriesType,f=e.getTargetSeries,c=e.dirtyOnOverallProgress,h=!1,v="";wr(!e.createOnAllSeries,v),u?n.eachRawSeriesByType(u,d):f?f(n,i).each(d):A(n.getSeries(),d);function d(p){var g=p.uid,m=l.set(g,s&&s.get(g)||(h=!0,uo({reset:gL,onDirty:yL})));m.context={model:p,dirtyOnOverallProgress:c},m.agent=o,m.__block=c,a._pipe(p,m)}h&&o.dirty()},r.prototype._pipe=function(e,t){var n=e.uid,i=this._pipelineMap.get(n);!i.head&&(i.head=t),i.tail&&i.tail.pipe(t),i.tail=t,t.__idxInPipeline=i.count++,t.__pipeline=i},r.wrapStageHandler=function(e,t){return re(e)&&(e={overallReset:e,seriesType:xL(e)}),e.uid=$u("stageHandler"),t&&(e.visualType=t),e},r}();function pL(r){r.overallReset(r.ecModel,r.api,r.payload)}function gL(r){return r.dirtyOnOverallProgress&&mL}function mL(){this.agent.dirty(),this.getDownstream().dirty()}function yL(){this.agent&&this.agent.dirty()}function _L(r){return r.plan?r.plan(r.model,r.ecModel,r.api,r.payload):null}function SL(r){r.useClearVisual&&r.data.clearAllVisual();var e=r.resetDefines=pt(r.reset(r.model,r.ecModel,r.api,r.payload));return e.length>1?K(e,function(t,n){return eS(n)}):bL}var bL=eS(0);function eS(r){return function(e,t){var n=t.data,i=t.resetDefines[r];if(i&&i.dataEach)for(var a=e.start;a0&&v===u.length-h.length){var d=u.slice(0,v);d!=="data"&&(t.mainType=d,t[h.toLowerCase()]=l,f=!0)}}s.hasOwnProperty(u)&&(n[u]=l,f=!0),f||(i[u]=l)})}return{cptQuery:t,dataQuery:n,otherQuery:i}},r.prototype.filter=function(e,t){var n=this.eventInfo;if(!n)return!0;var i=n.targetEl,a=n.packedEvent,o=n.model,s=n.view;if(!o||!s)return!0;var l=t.cptQuery,u=t.dataQuery;return f(l,o,"mainType")&&f(l,o,"subType")&&f(l,o,"index","componentIndex")&&f(l,o,"name")&&f(l,o,"id")&&f(u,a,"name")&&f(u,a,"dataIndex")&&f(u,a,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(e,t.otherQuery,i,a));function f(c,h,v,d){return c[v]==null||h[d||v]===c[v]}},r.prototype.afterTrigger=function(){this.eventInfo=null},r}(),Bh=["symbol","symbolSize","symbolRotate","symbolOffset"],am=Bh.concat(["symbolKeepAspect"]),CL={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,e){var t=r.getData();if(r.legendIcon&&t.setVisual("legendIcon",r.legendIcon),!r.hasSymbolVisual)return;for(var n={},i={},a=!1,o=0;o=0&&ei(l)?l:.5;var u=r.createRadialGradient(o,s,0,o,s,l);return u}function Nh(r,e,t){for(var n=e.type==="radial"?XL(r,e,t):$L(r,e,t),i=e.colorStops,a=0;a0)?null:r==="dashed"?[4*e,2*e]:r==="dotted"?[e]:xe(r)?[r]:V(r)?r:null}function lS(r){var e=r.style,t=e.lineDash&&e.lineWidth>0&&qL(e.lineDash,e.lineWidth),n=e.lineDashOffset;if(t){var i=e.strokeNoScale&&r.getLineScale?r.getLineScale():1;i&&i!==1&&(t=K(t,function(a){return a/i}),n/=i)}return[t,n]}var KL=new hi(!0);function eu(r){var e=r.stroke;return!(e==null||e==="none"||!(r.lineWidth>0))}function om(r){return typeof r=="string"&&r!=="none"}function tu(r){var e=r.fill;return e!=null&&e!=="none"}function sm(r,e){if(e.fillOpacity!=null&&e.fillOpacity!==1){var t=r.globalAlpha;r.globalAlpha=e.fillOpacity*e.opacity,r.fill(),r.globalAlpha=t}else r.fill()}function lm(r,e){if(e.strokeOpacity!=null&&e.strokeOpacity!==1){var t=r.globalAlpha;r.globalAlpha=e.strokeOpacity*e.opacity,r.stroke(),r.globalAlpha=t}else r.stroke()}function Fh(r,e,t){var n=v_(e.image,e.__image,t);if(Ru(n)){var i=r.createPattern(n,e.repeat||"repeat");if(typeof DOMMatrix=="function"&&i&&i.setTransform){var a=new DOMMatrix;a.translateSelf(e.x||0,e.y||0),a.rotateSelf(0,0,(e.rotation||0)*T0),a.scaleSelf(e.scaleX||1,e.scaleY||1),i.setTransform(a)}return i}}function QL(r,e,t,n,i){var a,o=eu(t),s=tu(t),l=t.strokePercent,u=l<1,f=!e.path;(!e.silent||u)&&f&&e.createPathProxy();var c=e.path||KL,h=e.__dirty;if(!n){var v=t.fill,d=t.stroke,p=s&&!!v.colorStops,g=o&&!!d.colorStops,m=s&&!!v.image,y=o&&!!d.image,_=void 0,S=void 0,b=void 0,w=void 0,x=void 0;(p||g)&&(x=e.getBoundingRect()),p&&(_=h?Nh(r,v,x):e.__canvasFillGradient,e.__canvasFillGradient=_),g&&(S=h?Nh(r,d,x):e.__canvasStrokeGradient,e.__canvasStrokeGradient=S),m&&(b=h||!e.__canvasFillPattern?Fh(r,v,e):e.__canvasFillPattern,e.__canvasFillPattern=b),y&&(w=h||!e.__canvasStrokePattern?Fh(r,d,e):e.__canvasStrokePattern,e.__canvasStrokePattern=w),p?r.fillStyle=_:m&&(b?r.fillStyle=b:s=!1),g?r.strokeStyle=S:y&&(w?r.strokeStyle=w:o=!1)}var T=e.getGlobalScale();c.setScale(T[0],T[1],e.segmentIgnoreThreshold);var C,D;r.setLineDash&&t.lineDash&&(a=lS(e),C=a[0],D=a[1]);var M=!0;(f||h&Hi)&&(c.setDPR(r.dpr),u?c.setContext(null):(c.setContext(r),M=!1),c.reset(),e.buildPath(c,e.shape,n),c.toStatic(),e.pathUpdated()),M&&c.rebuildPath(r,u?l:1),C&&(r.setLineDash(C),r.lineDashOffset=D),n?(i.batchFill=s,i.batchStroke=o):t.strokeFirst?(o&&lm(r,t),s&&sm(r,t)):(s&&sm(r,t),o&&lm(r,t)),C&&r.setLineDash([])}function jL(r,e,t){var n=e.__image=v_(t.image,e.__image,e,e.onload);if(!(!n||!Ru(n))){var i=t.x||0,a=t.y||0,o=e.getWidth(),s=e.getHeight(),l=n.width/n.height;if(o==null&&s!=null?o=s*l:s==null&&o!=null?s=o/l:o==null&&s==null&&(o=n.width,s=n.height),t.sWidth&&t.sHeight){var u=t.sx||0,f=t.sy||0;r.drawImage(n,u,f,t.sWidth,t.sHeight,i,a,o,s)}else if(t.sx&&t.sy){var u=t.sx,f=t.sy,c=o-u,h=s-f;r.drawImage(n,u,f,c,h,i,a,o,s)}else r.drawImage(n,i,a,o,s)}}function JL(r,e,t){var n,i=t.text;if(i!=null&&(i+=""),i){r.font=t.font||mn,r.textAlign=t.textAlign,r.textBaseline=t.textBaseline;var a=void 0,o=void 0;r.setLineDash&&t.lineDash&&(n=lS(e),a=n[0],o=n[1]),a&&(r.setLineDash(a),r.lineDashOffset=o),t.strokeFirst?(eu(t)&&r.strokeText(i,t.x,t.y),tu(t)&&r.fillText(i,t.x,t.y)):(tu(t)&&r.fillText(i,t.x,t.y),eu(t)&&r.strokeText(i,t.x,t.y)),a&&r.setLineDash([])}}var um=["shadowBlur","shadowOffsetX","shadowOffsetY"],fm=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function uS(r,e,t,n,i){var a=!1;if(!n&&(t=t||{},e===t))return!1;if(n||e.opacity!==t.opacity){ht(r,i),a=!0;var o=Math.max(Math.min(e.opacity,1),0);r.globalAlpha=isNaN(o)?ai.opacity:o}(n||e.blend!==t.blend)&&(a||(ht(r,i),a=!0),r.globalCompositeOperation=e.blend||ai.blend);for(var s=0;s0&&t.unfinished);t.unfinished||this._zr.flush()}}},e.prototype.getDom=function(){return this._dom},e.prototype.getId=function(){return this.id},e.prototype.getZr=function(){return this._zr},e.prototype.isSSR=function(){return this._ssr},e.prototype.setOption=function(t,n,i){if(!this[Ve]){if(this._disposed){this.id;return}var a,o,s;if(j(n)&&(i=n.lazyUpdate,a=n.silent,o=n.replaceMerge,s=n.transition,n=n.notMerge),this[Ve]=!0,Ni(this),!this._model||n){var l=new iI(this._api),u=this._theme,f=this._model=new hd;f.scheduler=this._scheduler,f.ssr=this._ssr,f.init(null,null,null,u,this._locale,l)}this._model.setOption(t,{replaceMerge:o},Uh);var c={seriesTransition:s,optionChanged:!0};if(i)this[Xe]={silent:a,updateParams:c},this[Ve]=!1,this.getZr().wakeUp();else{try{Yn(this),Lr.update.call(this,null,c)}catch(h){throw this[Xe]=null,this[Ve]=!1,h}this._ssr||this._zr.flush(),this[Xe]=null,this[Ve]=!1,ki.call(this,a),Bi.call(this,a)}}},e.prototype.setTheme=function(t,n){if(!this[Ve]){if(this._disposed){this.id;return}var i=this._model;if(i){var a=n&&n.silent,o=null;this[Xe]&&(a==null&&(a=this[Xe].silent),o=this[Xe].updateParams,this[Xe]=null),this[Ve]=!0,Ni(this);try{this._updateTheme(t),i.setTheme(this._theme),Yn(this),Lr.update.call(this,{type:"setTheme"},o)}catch(s){throw this[Ve]=!1,s}this[Ve]=!1,ki.call(this,a),Bi.call(this,a)}}},e.prototype._updateTheme=function(t){$(t)&&(t=TS[t]),t&&(t=se(t),t&&P1(t,!0),this._theme=t)},e.prototype.getModel=function(){return this._model},e.prototype.getOption=function(){return this._model&&this._model.getOption()},e.prototype.getWidth=function(){return this._zr.getWidth()},e.prototype.getHeight=function(){return this._zr.getHeight()},e.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||oe.hasGlobalWindow&&window.devicePixelRatio||1},e.prototype.getRenderedCanvas=function(t){return this.renderToCanvas(t)},e.prototype.renderToCanvas=function(t){t=t||{};var n=this._zr.painter;return n.getRenderedCanvas({backgroundColor:t.backgroundColor||this._model.get("backgroundColor"),pixelRatio:t.pixelRatio||this.getDevicePixelRatio()})},e.prototype.renderToSVGString=function(t){t=t||{};var n=this._zr.painter;return n.renderToString({useViewBox:t.useViewBox})},e.prototype.getSvgDataURL=function(){var t=this._zr,n=t.storage.getDisplayList();return A(n,function(i){i.stopAnimation(null,!0)}),t.painter.toDataURL()},e.prototype.getDataURL=function(t){if(this._disposed){this.id;return}t=t||{};var n=t.excludeComponents,i=this._model,a=[],o=this;A(n,function(l){i.eachComponent({mainType:l},function(u){var f=o._componentsMap[u.__viewId];f.group.ignore||(a.push(f),f.group.ignore=!0)})});var s=this._zr.painter.getType()==="svg"?this.getSvgDataURL():this.renderToCanvas(t).toDataURL("image/"+(t&&t.type||"png"));return A(a,function(l){l.group.ignore=!1}),s},e.prototype.getConnectedDataURL=function(t){if(this._disposed){this.id;return}var n=t.type==="svg",i=this.group,a=Math.min,o=Math.max,s=1/0;if(au[i]){var l=s,u=s,f=-s,c=-s,h=[],v=t&&t.pixelRatio||this.getDevicePixelRatio();A(li,function(_,S){if(_.group===i){var b=n?_.getZr().painter.getSvgDom().innerHTML:_.renderToCanvas(se(t)),w=_.getDom().getBoundingClientRect();l=a(w.left,l),u=a(w.top,u),f=o(w.right,f),c=o(w.bottom,c),h.push({dom:b,left:w.left,top:w.top})}}),l*=v,u*=v,f*=v,c*=v;var d=f-l,p=c-u,g=et.createCanvas(),m=hh(g,{renderer:n?"svg":"canvas"});if(m.resize({width:d,height:p}),n){var y="";return A(h,function(_){var S=_.left-l,b=_.top-u;y+=''+_.dom+""}),m.painter.getSvgRoot().innerHTML=y,t.connectedBackgroundColor&&m.painter.setBackgroundColor(t.connectedBackgroundColor),m.refreshImmediately(),m.painter.toDataURL()}else return t.connectedBackgroundColor&&m.add(new Ae({shape:{x:0,y:0,width:d,height:p},style:{fill:t.connectedBackgroundColor}})),A(h,function(_){var S=new Vr({style:{x:_.left*v-l,y:_.top*v-u,image:_.dom}});m.add(S)}),m.refreshImmediately(),g.toDataURL("image/"+(t&&t.type||"png"))}else return this.getDataURL(t)},e.prototype.convertToPixel=function(t,n,i){return Es(this,"convertToPixel",t,n,i)},e.prototype.convertToLayout=function(t,n,i){return Es(this,"convertToLayout",t,n,i)},e.prototype.convertFromPixel=function(t,n,i){return Es(this,"convertFromPixel",t,n,i)},e.prototype.containPixel=function(t,n){if(this._disposed){this.id;return}var i=this._model,a,o=Nf(i,t);return A(o,function(s,l){l.indexOf("Models")>=0&&A(s,function(u){var f=u.coordinateSystem;if(f&&f.containPoint)a=a||!!f.containPoint(n);else if(l==="seriesModels"){var c=this._chartsMap[u.__viewId];c&&c.containPoint&&(a=a||c.containPoint(n,u))}},this)},this),!!a},e.prototype.getVisual=function(t,n){var i=this._model,a=Nf(i,t,{defaultMainType:"series"}),o=a.seriesModel,s=o.getData(),l=a.hasOwnProperty("dataIndexInside")?a.dataIndexInside:a.hasOwnProperty("dataIndex")?s.indexOfRawIndex(a.dataIndex):null;return l!=null?AL(s,l,n):DL(s,n)},e.prototype.getViewOfComponentModel=function(t){return this._componentsMap[t.__viewId]},e.prototype.getViewOfSeriesModel=function(t){return this._chartsMap[t.__viewId]},e.prototype._initEvents=function(){var t=this;A(TP,function(i){var a=function(o){var s=t.getModel(),l=o.target,u,f=i==="globalout";if(f?u={}:l&&ja(l,function(p){var g=he(p);if(g&&g.dataIndex!=null){var m=g.dataModel||s.getSeriesByIndex(g.seriesIndex);return u=m&&m.getDataParams(g.dataIndex,g.dataType,l)||{},!0}else if(g.eventData)return u=k({},g.eventData),!0},!0),u){var c=u.componentType,h=u.componentIndex;(c==="markLine"||c==="markPoint"||c==="markArea")&&(c="series",h=u.seriesIndex);var v=c&&h!=null&&s.getComponent(c,h),d=v&&t[v.mainType==="series"?"_chartsMap":"_componentsMap"][v.__viewId];u.event=o,u.type=i,t._$eventProcessor.eventInfo={targetEl:l,packedEvent:u,model:v,view:d},t.trigger(i,u)}};a.zrEventfulCallAtLast=!0,t._zr.on(i,a,t)});var n=this._messageCenter;A(Hh,function(i,a){n.on(a,function(o){t.trigger(a,o)})}),LL(n,this,this._api)},e.prototype.isDisposed=function(){return this._disposed},e.prototype.clear=function(){if(this._disposed){this.id;return}this.setOption({series:[]},!0)},e.prototype.dispose=function(){if(this._disposed){this.id;return}this._disposed=!0;var t=this.getDom();t&&s_(this.getDom(),Sd,"");var n=this,i=n._api,a=n._model;A(n._componentsViews,function(o){o.dispose(a,i)}),A(n._chartsViews,function(o){o.dispose(a,i)}),n._zr.dispose(),n._dom=n._model=n._chartsMap=n._componentsMap=n._chartsViews=n._componentsViews=n._scheduler=n._api=n._zr=n._throttledZrFlush=n._theme=n._coordSysMgr=n._messageCenter=null,delete li[n.id]},e.prototype.resize=function(t){if(!this[Ve]){if(this._disposed){this.id;return}this._zr.resize(t);var n=this._model;if(this._loadingFX&&this._loadingFX.resize(),!!n){var i=n.resetOption("media"),a=t&&t.silent;this[Xe]&&(a==null&&(a=this[Xe].silent),i=!0,this[Xe]=null),this[Ve]=!0,Ni(this);try{i&&Yn(this),Lr.update.call(this,{type:"resize",animation:k({duration:0},t&&t.animation)})}catch(o){throw this[Ve]=!1,o}this[Ve]=!1,ki.call(this,a),Bi.call(this,a)}}},e.prototype.showLoading=function(t,n){if(this._disposed){this.id;return}if(j(t)&&(n=t,t=""),t=t||"default",this.hideLoading(),!!Wh[t]){var i=Wh[t](this._api,n),a=this._zr;this._loadingFX=i,a.add(i)}},e.prototype.hideLoading=function(){if(this._disposed){this.id;return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},e.prototype.makeActionFromEvent=function(t){var n=k({},t);return n.type=Gh[t.type],n},e.prototype.dispatchAction=function(t,n){if(this._disposed){this.id;return}if(j(n)||(n={silent:!!n}),!!nu[t.type]&&this._model){if(this[Ve]){this._pendingActions.push(t);return}var i=n.silent;pc.call(this,t,i);var a=n.flush;a?this._zr.flush():a!==!1&&oe.browser.weChat&&this._throttledZrFlush(),ki.call(this,i),Bi.call(this,i)}},e.prototype.updateLabelLayout=function(){Rt.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},e.prototype.appendData=function(t){if(this._disposed){this.id;return}var n=t.seriesIndex,i=this.getModel(),a=i.getSeriesByIndex(n);a.appendData(t),this._scheduler.unfinished=!0,this.getZr().wakeUp()},e.internalField=function(){Yn=function(c){RL(c._model);var h=c._scheduler;h.restorePipelines(c._zr,c._model),h.prepareStageTasks(),vc(c,!0),vc(c,!1),h.plan()},vc=function(c,h){for(var v=c._model,d=c._scheduler,p=h?c._componentsViews:c._chartsViews,g=h?c._componentsMap:c._chartsMap,m=c._zr,y=c._api,_=0;_q(h.get("hoverLayerThreshold"),M1.hoverLayerThreshold)&&!oe.node&&!oe.worker;(c._usingTHL||g)&&(h.eachSeries(function(m){if(!m.preventUsingHoverLayer){var y=c._chartsMap[m.__viewId];y.__alive&&y.eachRendered(function(_){var S=_.states.emphasis;S&&S.hoverLayer!==Vv&&(S.hoverLayer=g?K_:q_)})}}),c._usingTHL=g)}}function s(c,h){var v=c.get("blendMode")||null;h.eachRendered(function(d){d.isGroup||(d.style.blend=v)})}function l(c,h){if(!c.preventAutoZ){var v=Ao(c);h.eachRendered(function(d){return s1(d,v.z,v.zlevel),!0})}}function u(c,h){h.eachRendered(function(v){if(!io(v)){var d=v.getTextContent(),p=v.getTextGuideLine();v.stateTransition&&(v.stateTransition=null),d&&d.stateTransition&&(d.stateTransition=null),p&&p.stateTransition&&(p.stateTransition=null),v.hasState()?(v.prevStates=v.currentStates,v.clearStates()):v.prevStates&&(v.prevStates=null)}})}function f(c,h){var v=c.getModel("stateAnimation"),d=c.isAnimationEnabled(),p=v.get("duration"),g=p>0?{duration:p,delay:v.get("delay"),easing:v.get("easing")}:null;h.eachRendered(function(m){if(m.states&&m.states.emphasis){if(io(m))return;if(m instanceof Te&&fD(m),m.__dirty){var y=m.prevStates;y&&m.useStates(y)}if(d){m.stateTransition=g;var _=m.getTextContent(),S=m.getTextGuideLine();_&&(_.stateTransition=g),S&&(S.stateTransition=g)}m.__dirty&&a(m)}})}Tm=function(c){return new(function(h){F(v,h);function v(){return h!==null&&h.apply(this,arguments)||this}return v.prototype.getCoordinateSystems=function(){return c._coordSysMgr.getCoordinateSystems()},v.prototype.getComponentByElement=function(d){for(;d;){var p=d.__ecComponentInfo;if(p!=null)return c._model.getComponent(p.mainType,p.index);d=d.parent}},v.prototype.enterEmphasis=function(d,p){Vl(d,p),Lt(c)},v.prototype.leaveEmphasis=function(d,p){Ul(d,p),Lt(c)},v.prototype.enterBlur=function(d){eD(d),Lt(c)},v.prototype.leaveBlur=function(d){R_(d),Lt(c)},v.prototype.enterSelect=function(d){E_(d),Lt(c)},v.prototype.leaveSelect=function(d){O_(d),Lt(c)},v.prototype.getModel=function(){return c.getModel()},v.prototype.getViewOfComponentModel=function(d){return c.getViewOfComponentModel(d)},v.prototype.getViewOfSeriesModel=function(d){return c.getViewOfSeriesModel(d)},v.prototype.getECUpdateCycleVersion=function(){return c[Ps]},v.prototype.usingTHL=function(){return c._usingTHL},v}(A_))(c)},xS=function(c){function h(v,d){for(var p=0;p=0)){Mm.push(t);var o=J1.wrapStageHandler(t,i);o.__prio=e,o.__raw=t,r.push(o)}}function Md(r,e){Wh[r]=e}function OP(r){d0({createCanvas:r})}function LS(r,e,t){var n=aS("registerMap");n&&n(r,e,t)}function kP(r){var e=aS("getMap");return e&&e(r)}var PS=kI;wn(yd,cL);wn(ef,hL);wn(ef,vL);wn(yd,CL);wn(ef,ML);wn(gS,sP);xd(P1);Td(vP,gI);Md("default",dL);bn({type:oi,event:oi,update:oi},qe);bn({type:ll,event:ll,update:ll},qe);bn({type:Gl,event:Bv,update:Gl,action:qe,refineEvent:Ad,publishNonRefinedEvent:!0});bn({type:wh,event:Bv,update:wh,action:qe,refineEvent:Ad,publishNonRefinedEvent:!0});bn({type:Hl,event:Bv,update:Hl,action:qe,refineEvent:Ad,publishNonRefinedEvent:!0});function Ad(r,e,t,n){return{eventContent:{selected:aD(t),isFromClick:e.isFromClick||!1}}}wd("default",{});wd("dark",nS);var BP={};function Pa(r){return r==null?0:r.length||1}function Am(r){return r}var NP=function(){function r(e,t,n,i,a,o){this._old=e,this._new=t,this._oldKeyGetter=n||Am,this._newKeyGetter=i||Am,this.context=a,this._diffModeMultiple=o==="multiple"}return r.prototype.add=function(e){return this._add=e,this},r.prototype.update=function(e){return this._update=e,this},r.prototype.updateManyToOne=function(e){return this._updateManyToOne=e,this},r.prototype.updateOneToMany=function(e){return this._updateOneToMany=e,this},r.prototype.updateManyToMany=function(e){return this._updateManyToMany=e,this},r.prototype.remove=function(e){return this._remove=e,this},r.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},r.prototype._executeOneToOne=function(){var e=this._old,t=this._new,n={},i=new Array(e.length),a=new Array(t.length);this._initIndexMap(e,null,i,"_oldKeyGetter"),this._initIndexMap(t,n,a,"_newKeyGetter");for(var o=0;o1){var f=l.shift();l.length===1&&(n[s]=l[0]),this._update&&this._update(f,o)}else u===1?(n[s]=null,this._update&&this._update(l,o)):this._remove&&this._remove(o)}this._performRestAdd(a,n)},r.prototype._executeMultiple=function(){var e=this._old,t=this._new,n={},i={},a=[],o=[];this._initIndexMap(e,n,a,"_oldKeyGetter"),this._initIndexMap(t,i,o,"_newKeyGetter");for(var s=0;s1&&h===1)this._updateManyToOne&&this._updateManyToOne(f,u),i[l]=null;else if(c===1&&h>1)this._updateOneToMany&&this._updateOneToMany(f,u),i[l]=null;else if(c===1&&h===1)this._update&&this._update(f,u),i[l]=null;else if(c>1&&h>1)this._updateManyToMany&&this._updateManyToMany(f,u),i[l]=null;else if(c>1)for(var v=0;v1)for(var s=0;s30}var Ra=j,qr=K,WP=typeof Int32Array>"u"?Array:Int32Array,YP="e\0\0",Dm=-1,$P=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],XP=["_approximateExtent"],Im,ks,Ea,Oa,yc,ka,_c,Id=function(){function r(e,t){this.type="list",this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=["cloneShallow","downSample","minmaxDownSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","minmaxDownSample","lttbDownSample"];var n,i=!1;ES(e)?(n=e.dimensions,this._dimOmitted=e.isDimensionOmitted(),this._schema=e):(i=!0,n=e),n=n||["x","y"];for(var a={},o=[],s={},l=!1,u={},f=0;f=t)){var n=this._store,i=n.getProvider();this._updateOrdinalMeta();var a=this._nameList,o=this._idList,s=i.getSource().sourceFormat,l=s===Dt;if(l&&!i.pure)for(var u=[],f=e;f0},r.prototype.ensureUniqueItemVisual=function(e,t){var n=this._itemVisuals,i=n[e];i||(i=n[e]={});var a=i[t];return a==null&&(a=this.getVisual(t),V(a)?a=a.slice():Ra(a)&&(a=k({},a)),i[t]=a),a},r.prototype.setItemVisual=function(e,t,n){var i=this._itemVisuals[e]||{};this._itemVisuals[e]=i,Ra(t)?k(i,t):i[t]=n},r.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},r.prototype.setLayout=function(e,t){Ra(e)?k(this._layout,e):this._layout[e]=t},r.prototype.getLayout=function(e){return this._layout[e]},r.prototype.getItemLayout=function(e){return this._itemLayouts[e]},r.prototype.setItemLayout=function(e,t,n){this._itemLayouts[e]=n?k(this._itemLayouts[e]||{},t):t},r.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},r.prototype.setItemGraphicEl=function(e,t){var n=this.hostModel&&this.hostModel.seriesIndex;VA(n,this.dataType,e,t),this._graphicEls[e]=t},r.prototype.getItemGraphicEl=function(e){return this._graphicEls[e]},r.prototype.eachItemGraphicEl=function(e,t){A(this._graphicEls,function(n,i){n&&e&&e.call(t,n,i)})},r.prototype.cloneShallow=function(e){return e||(e=new r(this._schema?this._schema:qr(this.dimensions,this._getDimInfo,this),this.hostModel)),yc(e,this),e._store=this._store,e},r.prototype.wrapMethod=function(e,t){var n=this[e];re(n)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(e),this[e]=function(){var i=n.apply(this,arguments);return t.apply(this,[i].concat(wu(arguments)))})},r.internalField=function(){Im=function(e){var t=e._invertedIndicesMap;A(t,function(n,i){var a=e._dimInfos[i],o=a.ordinalMeta,s=e._store;if(o){n=t[i]=new WP(o.categories.length);for(var l=0;l1&&(l+="__ec__"+f),i[t]=l}}}(),r}();function ZP(r,e){return Ld(r,e).dimensions}function Ld(r,e){vd(r)||(r=R1(r)),e=e||{};var t=e.coordDimensions||[],n=e.dimensionsDefine||r.dimensionsDefine||[],i=Z(),a=[],o=qP(r,t,n,e.dimensionsCount),s=e.canOmitUnusedDimensions&&kS(o),l=n===r.dimensionsDefine,u=l?OS(r):Dd(n),f=e.encodeDefine;!f&&e.encodeDefaulter&&(f=e.encodeDefaulter(r,o));for(var c=Z(f),h=new V1(o),v=0;v0&&(C.name=C.name+(D-1))}),new RS({source:r,dimensions:a,fullDimensionCount:o,dimensionOmitted:s})}function qP(r,e,t,n){var i=Math.max(r.dimensionsDetectedCount||1,e.length,t.length,n||0);return A(e,function(a){var o;j(a)&&(o=a.dimsDef)&&(i=Math.max(i,o.length))}),i}function KP(r,e,t){if(t||e.hasKey(r)){for(var n=0;e.hasKey(r+n);)n++;r+=n}return e.set(r,!0),r}var QP=function(){function r(e){this.coordSysDims=[],this.axisMap=Z(),this.categoryAxisMap=Z(),this.coordSysName=e}return r}();function jP(r){var e=r.get("coordinateSystem"),t=new QP(e),n=JP[e];if(n)return n(r,t,t.axisMap,t.categoryAxisMap),t}var JP={cartesian2d:function(r,e,t,n){var i=r.getReferringComponents("xAxis",ct).models[0],a=r.getReferringComponents("yAxis",ct).models[0];e.coordSysDims=["x","y"],t.set("x",i),t.set("y",a),Fi(i)&&(n.set("x",i),e.firstCategoryDimIndex=0),Fi(a)&&(n.set("y",a),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=1))},singleAxis:function(r,e,t,n){var i=r.getReferringComponents("singleAxis",ct).models[0];e.coordSysDims=["single"],t.set("single",i),Fi(i)&&(n.set("single",i),e.firstCategoryDimIndex=0)},polar:function(r,e,t,n){var i=r.getReferringComponents("polar",ct).models[0],a=i.findAxisModel("radiusAxis"),o=i.findAxisModel("angleAxis");e.coordSysDims=["radius","angle"],t.set("radius",a),t.set("angle",o),Fi(a)&&(n.set("radius",a),e.firstCategoryDimIndex=0),Fi(o)&&(n.set("angle",o),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=1))},geo:function(r,e,t,n){e.coordSysDims=["lng","lat"]},parallel:function(r,e,t,n){var i=r.ecModel,a=i.getComponent("parallel",r.get("parallelIndex")),o=e.coordSysDims=a.dimensions.slice();A(a.parallelAxisIndex,function(s,l){var u=i.getComponent("parallelAxis",s),f=o[l];t.set(f,u),Fi(u)&&(n.set(f,u),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=l))})},matrix:function(r,e,t,n){var i=r.getReferringComponents("matrix",ct).models[0];e.coordSysDims=["x","y"];var a=i.getDimensionModel("x"),o=i.getDimensionModel("y");t.set("x",a),t.set("y",o),n.set("x",a),n.set("y",o)}};function Fi(r){return r.get("type")==="category"}function BS(r,e,t){t=t||{};var n=t.byIndex,i=t.stackedCoordDimension,a,o,s;eR(e)?a=e:(o=e.schema,a=o.dimensions,s=e.store);var l=!!(r&&r.get("stack")),u,f,c,h,v=!0;function d(S){return S.type!=="ordinal"&&S.type!=="time"}if(A(a,function(S,b){$(S)&&(a[b]=S={name:S}),d(S)||(v=!1)}),A(a,function(S,b){l&&!S.isExtraCoord&&(!n&&!u&&S.ordinalMeta&&(u=S),!f&&d(S)&&(!v||S.coordDim!=="x"&&S.coordDim!=="angle")&&(!i||i===S.coordDim)&&(f=S))}),f&&!n&&!u&&(n=!0),f){c="__\0ecstackresult_"+r.id,h="__\0ecstackedover_"+r.id,u&&(u.createInvertedIndices=!0);var p=f.coordDim,g=f.type,m=0;A(a,function(S){S.coordDim===p&&m++});var y={name:c,coordDim:p,coordDimIndex:m,type:g,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length},_={name:h,coordDim:h,coordDimIndex:m+1,type:g,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length+1};o?(s&&(y.storeDimIndex=s.ensureCalculationDimension(h,g),_.storeDimIndex=s.ensureCalculationDimension(c,g)),o.appendCalculationDimension(y),o.appendCalculationDimension(_)):(a.push(y),a.push(_))}return{stackedDimension:f&&f.name,stackedByDimension:u&&u.name,isStackedByIndex:n,stackedOverDimension:h,stackResultDimension:c}}function eR(r){return!ES(r.schema)}function di(r,e){return!!e&&e===r.getCalculationInfo("stackedDimension")}function NS(r,e){return di(r,e)?r.getCalculationInfo("stackResultDimension"):e}function tR(r,e){var t=r.get("coordinateSystem"),n=qu.get(t),i;return e&&e.coordSysDims&&(i=K(e.coordSysDims,function(a){var o={name:a},s=e.axisMap.get(a);if(s){var l=s.get("type");o.type=GP(l)}return o})),i||(i=n&&(n.getDimensionsInfo?n.getDimensionsInfo():n.dimensions.slice())||["x","y"]),i}function rR(r,e,t){var n,i;return t&&A(r,function(a,o){var s=a.coordDim,l=t.categoryAxisMap.get(s);l&&(n==null&&(n=o),a.ordinalMeta=l.getOrdinalMeta(),e&&(a.createInvertedIndices=!0)),a.otherDims.itemName!=null&&(i=!0)}),!i&&n!=null&&(r[n].otherDims.itemName=0),n}function rf(r,e,t){t=t||{};var n=e.getSourceManager(),i,a=!1;i=n.getSource(),a=i.sourceFormat===Dt;var o=jP(e),s=tR(e,o),l=t.useEncodeDefaulter,u=re(l)?l:l?Re($2,s,e):null,f={coordDimensions:s,generateCoord:t.generateCoord,encodeDefine:e.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!a},c=Ld(i,f),h=rR(c.dimensions,t.createInvertedIndices,o),v=a?null:n.getSharedDataStore(c),d=BS(e,{schema:c,store:v}),p=new Id(c,e);p.setCalculationInfo(d);var g=h!=null&&nR(i)?function(m,y,_,S){return S===h?_:this.defaultDimValueGetter(m,y,_,S)}:null;return p.hasItemOption=!1,p.initData(a?i:v,null,g),p}function nR(r){if(r.sourceFormat===Dt){var e=iR(r.data||[]);return!V(Vo(e))}}function iR(r){for(var e=0;e=e[0]&&r<=e[1]},getExtent:function(){return this._extents[Vt].slice()},getExtentUnsafe:function(r){return this._extents[r]},setExtent:function(r,e){Lm(this._extents,Vt,r,e)},setExtent2:function(r,e,t){var n=this._extents;n[r]||(n[r]=n[Vt].slice()),Lm(n,r,e,t)},freeze:function(){}};function Lm(r,e,t,n){la(t,n)&&(r[e][0]=t,r[e][1]=n)}function HS(r){return lu(r)||ca(r)}function lu(r){return r.type==="interval"}function Jo(r){return r.type==="time"}function ca(r){return r.type==="log"}function It(r){return r.type==="ordinal"}function hR(r){var e=Iu(r),t=Si(10,e),n=xr(r/t);return n?n===2?n=3:n===3?n=5:n*=2:n=1,ce(n*t,-e)}function pi(r){return Or(r)+2}function Bs(r,e){return fi(r)/fi(e)}function Sc(r,e,t){var n=t&&t.lookup;if(n){for(var i=0;i1&&a/o>2&&(i=Math.round(Math.ceil(i/o)*o)),i!==n[0]&&l(n[0],!0,!0);for(var s=i;s<=n[1];s+=o)l(s,!1,s===n[0]||s===n[1]);s-o!==n[1]&&l(n[1],!0,!0);function l(u,f,c){t({value:u,offInterval:f},c)}}var WS=function(r){F(e,r);function e(t){var n=r.call(this)||this;n.type="ordinal",n.parse=e.parse,zS(n,e.decoratedMethods);var i=t.ordinalMeta;i||(i=new Yh({})),V(i)&&(i=new Yh({categories:K(i,function(o){return j(o)?o.value:o})})),n._ordinalMeta=i;var a=Pd(null,null,t.extent||[0,i.categories.length-1]);return n._mapper=a.mapper,GS(n),n}return e.parse=function(t){return t==null?t=NaN:$(t)?(t=this._ordinalMeta.getOrdinal(t),t==null&&(t=NaN)):t=xr(t),t},e.prototype.getTicks=function(){var t=[];return US(this,0,function(n){t.push(n)}),t},e.prototype.getMinorTicks=function(t){},e.prototype.setSortInfo=function(t){if(t==null){this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;return}for(var n=t.ordinalNumbers,i=this._ordinalNumbersByTick=[],a=this._ticksByOrdinalNumber=[],o=0,s=this._ordinalMeta.categories.length,l=Ke(s,n.length);o=0&&t=0&&t=0&&to[0]&&po[1]||!isFinite(p)||!isFinite(o[1]))break}else{if(g>d)break;p=Ke(p,o[1]),g===d&&(p=o[1])}if(c.push({value:p}),p=ce(p+i,s),u){var m=u.calcNiceTickMultiple(p,v);m>=0&&(p=ce(p+m*i,s))}if(c.length>0&&p===c[c.length-1].value)break;if(c.length>h)return[]}var y=c.length?c[c.length-1].value:o[1];return a[1]>y&&c.push({value:t.expandToNicedExtent?ce(y+i,s):a[1]}),c},e.prototype.getMinorTicks=function(t){return Ed(this,t,Qv(this),this._cfg.interval)},e.prototype.getLabel=function(t,n){if(t==null)return"";var i=n&&n.precision;i==null?i=Or(t.value)||0:i==="auto"&&(i=this._cfg.intervalPrecision);var a=ce(t.value,i,!0);return od(a)},e.type="interval",e}(ar);ar.registerClass(ta);var dR=function(r,e,t,n){for(;t>>1;r[i][1]16?16:r>7.5?7:r>3.5?4:r>1.5?2:1}function mR(r){var e=30*Ht;return r/=e,r>6?6:r>3?3:r>2?2:1}function yR(r){return r/=oo,r>12?12:r>6?6:r>3.5?4:r>2?2:1}function Pm(r,e){return r/=e?Jv:jv,r>30?30:r>20?20:r>15?15:r>10?10:r>5?5:r>2?2:1}function _R(r){return pe(Lu(r,!0),1)}function SR(r,e,t){var n=Math.max(0,ve(si,e)-1);return ql(new Date(r),si[n],t).getTime()}function bR(r,e){var t=new Date(0);t[r](1);var n=t.getTime();t[r](1+e);var i=t.getTime()-n;return function(a,o){return Math.max(0,Math.round((o-a)/i))}}function wR(r,e,t,n,i,a){var o=3e3,s=b2,l=0;function u(E,N,O,B,G,H,Y){for(var X=bR(G,E),W=N,ae=new Date(W);Wo));)if(ae[G](ae[B]()+E),W=ae.getTime(),a){var le=a.calcNiceTickMultiple(W,X);le>0&&(ae[G](ae[B]()+le*E),W=ae.getTime())}Y.push({value:W,notAdd:W>n[1]})}function f(E,N,O){var B=[],G=!N.length;if(!pR(so(E),n[0],n[1],t)){G&&(N=[{value:SR(n[0],E,t)},{value:n[1]}]);for(var H=0;H=n[0]&&Y<=n[1]&&u(W,Y,X,ae,le,He,B),E==="year"&&O.length>1&&H===0&&O.unshift({value:O[0].value-W})}}for(var H=0;H=n[0]&&S<=n[1]&&v++)}var b=i/e;if(v>b*1.5&&d>b/1.5||(c.push(y),v>b||r===s[p]))break}h=[]}}}for(var w=We(K(c,function(E){return We(E,function(N){return N.value>=n[0]&&N.value<=n[1]&&!N.notAdd})}),function(E){return E.length>0}),x=w.length-1,T=[],p=0;pn[0])&&T.unshift({value:n[0],time:{level:0,upperTimeUnit:P,lowerTimeUnit:P},notNice:!0}),(!I||I.values&&(a=s);var l=Ns.length,u=Math.min(dR(Ns,a,0,l),l-1),f=Ns[u][1],c=Ns[Math.max(u-1,0)][0];r.setTimeInterval({approxInterval:a,interval:f,minLevelUnit:c})};ar.registerClass(YS);var Fs=0,zs=1,$S=function(r){F(e,r);function e(t){var n=r.call(this)||this;n.type="log",n.parse=ta.parse,n.base=t.logBase||10;var i=[],a=[];n._lookup={from:i,to:a},i[Fs]=i[zs]=a[Fs]=a[zs]=NaN,zS(n,e.mapperMethods),t.breakOption;var o={};return n.powStub=new ta({breakParsed:o.original}),n.intervalStub=new ta({breakParsed:o.transformed}),GS(n,n.intervalStub),n}return e.prototype.getTicks=function(t){var n=this.base,i=this.powStub,a=this.intervalStub,o=a.getExtent(),s=i.getExtent(),l={lookup:{from:o,to:s}};return K(a.getTicks(t||{}),function(u){var f=u.value,c=Sc(f,n,l),h;return{value:c,break:h}},this)},e.prototype.getMinorTicks=function(t){return Ed(this,t,Qv(this.powStub),this.intervalStub.getConfig().interval)},e.prototype.getLabel=function(t,n){return this.intervalStub.getLabel(t,n)},e.type="log",e.mapperMethods={needTransform:function(){return!0},normalize:function(t){return this.intervalStub.normalize(Bs(t,this.base))},scale:function(t){return Sc(this.intervalStub.scale(t),this.base,null)},transformIn:function(t,n){return t=Bs(t,this.base),n&&n.depth===ou?t:this.intervalStub.transformIn(t,n)},transformOut:function(t,n){var i=n?n.depth:null;return Rm.depth=i,Em.lookup=this._lookup,Sc(i===ou?t:this.intervalStub.transformOut(t,Rm),this.base,Em)},contain:function(t){return this.powStub.contain(t)},setExtent:function(t,n){this.setExtent2(Vt,t,n)},setExtent2:function(t,n,i){if(!(!la(n,i)||n<=0||i<=0)){var a=Om,o=Om;if(t===Vt){var s=this._lookup;a=s.to,o=s.from}this.powStub.setExtent2(t,a[Fs]=n,a[zs]=i);var l=this.base;this.intervalStub.setExtent2(t,o[Fs]=Bs(n,l),o[zs]=Bs(i,l))}},getFilter:function(){return{g:0}},sanitize:function(t,n){return la(n[0],n[1])&&Yt(t)&&t<=0&&(t=n[0]),t},getDefaultStartValue:function(){return 1},getExtent:function(){return this.powStub.getExtent()},getExtentUnsafe:function(t,n){return n===null?this.powStub.getExtentUnsafe(t,null):this.intervalStub.getExtentUnsafe(t,n)}},e}(ar);ar.registerClass($S);var Rm={},Em={},Om=[],XS={value:1,category:1,time:1,log:1},ZS=Se();function qS(r){var e=r.get("type");return(e==null||!it(XS,e)&&!ar.getClass(e))&&(e="value"),e}function KS(r,e,t){var n;switch(e){case"category":return new WS({ordinalMeta:r.getOrdinalMeta?r.getOrdinalMeta():r.getCategories(),extent:Nt()});case"time":return new YS({locale:r.ecModel.getLocaleModel(),useUTC:r.ecModel.get("useUTC"),breakOption:n});case"log":return new $S({logBase:r.get("logBase"),breakOption:n});case"value":return new ta({breakOption:n});default:return new(ar.getClass(e)||ta)({})}}function TR(r,e,t){var n=r.getExtentUnsafe(Vt,null),i=n[0],a=n[1];return la(i,a)?i===e||a===e?MR:ie?CR:$h:$h}var CR=1,MR=2,$h=3;function AR(r){ZS(r).noOnMyZero=!0}function DR(r){return ZS(r).noOnMyZero}function af(r){var e=r.getLabelModel().get("formatter");if(r.type==="time"){var t=w2(e);return function(i,a){return r.scale.getFormattedLabel(i,a,t)}}else{if($(e))return function(i){var a=r.scale.getLabel(i),o=e.replace("{value}",a??"");return o};if(re(e)){if(r.type==="category")return function(i,a){return e(uu(r,i),i.value-r.scale.getExtent()[0],null)};var n=Zu();return function(i,a){var o=null;return n&&(o=n.makeAxisLabelFormatterParamBreak(o,i.break)),e(uu(r,i),a,o)}}else return function(i){return r.scale.getLabel(i)}}}function uu(r,e){var t=r.scale;return It(t)?t.getLabel(e):e.value}function Od(r){var e=r.get("interval");return e??"auto"}function IR(r){return r.type==="category"&&Od(r.getLabelModel())===0}function LR(r,e){var t={};return A(r.mapDimensionsAll(e),function(n){t[NS(r,n)]=!0}),Le(t)}function ha(r){return r==="middle"||r==="center"}function Oo(r){return r.getShallow("show")}function PR(r,e,t){var n=r.get("breaks",!0);n==null}function QS(r,e,t,n,i,a){var o=ca(r),s=o?r.intervalStub:r;if(s.setExtent(n[0],n[1]),o){var l=r.powStub,u={depth:ou},f=r.transformOut(n[0],u),c=r.transformOut(n[1],u),h=vR(t,n);e[0]&&!h[0]&&(f=i[0]),e[1]&&!h[1]&&(c=i[1]),l.setExtent(f,c)}s.setConfig(a)}function es(r,e){return It(r)?r.getRawOrdinalNumber(e.value):e.value}function jS(r,e){return It(r)&&!!e.get("boundaryGap")}var JS=function(){function r(){}return r.prototype.needIncludeZero=function(){return!this.option.scale},r.prototype.getCoordSysModel=function(){},r}(),RR=Iv(),Xh="|&",_a=Se(),eb=-2,ER=-1,OR=Se();function tb(r,e){var t=r.model,n=_a(ya(t.ecModel)).keyed,i=n&&n.get(e);return i&&i.get(t.uid)}function kR(r,e){return nb(tb(r,e))}function BR(r,e){var t=[];return rb(r.model.ecModel,function(n){for(var i=0;i0&&c[1]>0&&!h[0]&&(c[0]=0),c[0]<0&&c[1]<0&&!h[1]&&(c[1]=0));var S=!1;c[0]>c[1]&&(c.reverse(),S=!0);var b=Ba(e,t.get("startValue",!0)),w=b!=null;!Yt(b)&&i&&(b=e.getDefaultStartValue?e.getDefaultStartValue():0),Yt(b)&&(w||!y||_)&&(bc[1]&&!h[1]&&(c[1]=b,h[1]=!0));var x=this._i={scale:e,dataMM:f,noZoomEffMM:c,zoomMM:[],fixMM:h,zoomFixMM:[!1,!1],startValue:b,isBlank:m,incl0:_,tggAxInv:S,ctnShp:a};Bm(x,c)}return r.prototype.makeNoZoom=function(){return this._i.noZoomEffMM.slice()},r.prototype.makeFinal=function(){var e=this._i,t=e.zoomMM,n=e.noZoomEffMM,i=e.zoomFixMM,a=e.fixMM,o={fixMM:a,zoomFixMM:i,isBlank:e.isBlank,incl0:e.incl0,tggAxInv:e.tggAxInv,ctnShp:e.ctnShp,effMM:n.slice()},s=o.effMM;return t[0]!=null&&(s[0]=t[0],a[0]=i[0]=!0),t[1]!=null&&(s[1]=t[1],a[1]=i[1]=!0),Bm(e,s),o},r.prototype.makeRenderInfo=function(){return{startValue:this._i.startValue}},r.prototype.setZoomMM=function(e,t){this._i.zoomMM[e]=t},r}();function Bm(r,e){var t=r.scale,n=r.dataMM;t.sanitize&&(e[0]=t.sanitize(e[0],n),e[1]=t.sanitize(e[1],n),sl(e))}function Ba(r,e){return e==null?null:ia(e)?NaN:r.parse(e)}function $R(r,e){var t;if(It(r))t=[0,0];else{var n=e.get("boundaryGap");typeof n=="boolean"&&(n=null),t=V(n)?n:[n,n]}return[Nm(t[0]),Nm(t[1])]}function Nm(r){return ui(typeof r=="boolean"?0:r,1)||0}function lb(r){var e=VR(r.scale);return e.extent||(e.extent=Nt()),e}function XR(r,e){lb(r).dimIdxInCoord=e.get(r.dim)}function ub(r,e){var t=r.scale,n=r.model,i=r.dim;t.rawExtentInfo||ZR(t,r,i,n,e)}function ZR(r,e,t,n,i){var a=lb(e),o=a.extent,s=!1;NR(e,function(f){if(f.boxCoordinateSystem){var c=x1(f).coord,h=a.dimIdxInCoord;if(h>=0){if(V(c)){var v=c[h];v!=null&&!V(v)&&mh(o,r.parse(v))}}}else if(f.coordinateSystem){var d=f.getData();if(d){var p=r.getFilter?r.getFilter():null;A(LR(d,t),function(g){NM(o,d.getApproximateExtent(g,p))})}f.__requireStartValue&&f.__requireStartValue(e)&&(s=!0)}});var l=QR(r,e,n),u=new sb(r,n,o,s,l);fb(r,u,i),a.extent=null}function qR(r,e){var t=r.scale;fb(t,new sb(t,r.model,e,!1,!1),YR)}function fb(r,e,t){r.rawExtentInfo=e,e.from=t}function KR(r,e){Bd.set(r,e)}var Bd=Z();function cb(r,e,t,n,i){r.rawExtentInfo||qR({scale:r,model:e},i||Nt());var a=r.rawExtentInfo.makeFinal(),o=a.effMM;return r.setExtent(o[0],o[1]),r.setBlank(a.isBlank),n&&a.tggAxInv&&t&&!t.get("legacyMinMaxDontInverseAxis")&&(n.inverse=!n.inverse),a}function QR(r,e,t){var n=jS(r,t),i=t.get("containShape",!0);if(i==null&&!n&&(i=!0),!i)return!1;var a=!1;return ab(e,function(o){a=!!Bd.get(o)||a}),a}function jR(r,e,t,n){if(t.ctnShp){var i;if(ab(r,function(s){var l=Bd.get(s);if(l){var u=l(r,n);u&&(i=i||[0,0],l_(i,u[0]),u_(i,u[1]),AR(r))}}),!!i){var a=e.getExtent();if(It(e))r.onBand||e.setExtent2(Ro,Ke(a[0],a[0]+i[0]),pe(a[1],a[1]+i[1]));else{var o=a.slice();t.zoomFixMM[0]||(o[0]=Ke(o[0],e.transformOut(e.transformIn(o[0],null)+i[0],null))),t.zoomFixMM[1]||(o[1]=pe(o[1],e.transformOut(e.transformIn(o[1],null)+i[1],null))),(o[0]a[1])&&e.setExtent2(Ro,o[0],o[1])}}}}function Fm(r,e){var t=ca(r),n=t?r.intervalStub:r,i=e.fixMinMax||[],a=t?r.getExtent():null,o=n.getExtent(),s=VS(o,i,e.rawExtentResult);n.setExtent(s[0],s[1]),s=n.getExtent();var l=t?eE(n,e):JR(n,e),u=l.intervalPrecision,f=l.interval,c=e.userInterval;c!=null&&(l.interval=c,l.intervalPrecision=pi(c)),i[0]||(s[0]=ce(Tr(s[0]/f)*f,u)),i[1]||(s[1]=ce(pa(s[1]/f)*f,u)),c!=null&&(l.niceExtent=s.slice()),QS(r,i,o,s,a,l)}function JR(r,e){var t=Rd(e.splitNumber,5),n=nf(r),i=e.minInterval,a=e.maxInterval,o=Lu(n/t,!0);i!=null&&oa&&(o=a);var s=pi(o),l=r.getExtent(),u=[ce(pa(l[0]/o)*o,s),ce(Tr(l[1]/o)*o,s)];return{interval:o,intervalPrecision:s,niceExtent:u}}function eE(r,e){var t=Rd(e.splitNumber,10),n=r.getExtent(),i=nf(r),a=pe(Cv(i),1),o=t/i*a;o<=.5&&(a*=10);var s=pi(a),l=[ce(pa(n[0]/a)*a,s),ce(Tr(n[1]/a)*a,s)];return{intervalPrecision:s,interval:a,niceExtent:l}}function zm(r){var e=r.scale,t=r.model,n=t.axis,i=t.ecModel;hb(e,t,n,i,null)}function hb(r,e,t,n,i){var a=cb(r,e,n,t,i),o=lu(r)||Jo(r);tE(r,{splitNumber:e.get("splitNumber"),fixMinMax:a.fixMM,userInterval:e.get("interval"),minInterval:o?e.get("minInterval"):null,maxInterval:o?e.get("maxInterval"):null,rawExtentResult:a}),t&&n&&jR(t,r,a,n)}function tE(r,e){rE[r.type](r,e)}var rE={interval:Fm,log:Fm,time:xR,ordinal:qe};function nE(r){return rf(null,r)}var iE={isDimensionStacked:di,enableDataStack:BS,getStackedDimension:NS};function aE(r,e){var t=e;e instanceof Ie||(t=new Ie(e));var n=qS(t),i=KS(t,n);return r[1]=0||(Gm.push(r),re(r)&&(r={install:r}),r.install(uE))}var fE=1e-8;function Hm(r,e){return Math.abs(r-e)i&&(n=o,i=l)}if(n)return hE(n.exterior);var u=this.getBoundingRect();return[u.x+u.width/2,u.y+u.height/2]},e.prototype.getBoundingRect=function(t){var n=this._rect;if(n&&!t)return n;var i=[1/0,1/0],a=[-1/0,-1/0],o=this.geometries;return A(o,function(s){s.type==="polygon"?Um(s.exterior,i,a,t):A(s.points,function(l){Um(l,i,a,t)})}),isFinite(i[0])&&isFinite(i[1])&&isFinite(a[0])&&isFinite(a[1])||(i[0]=i[1]=a[0]=a[1]=0),n=new te(i[0],i[1],a[0]-i[0],a[1]-i[1]),t||(this._rect=n),n},e.prototype.contain=function(t){var n=this.getBoundingRect(),i=this.geometries;if(!n.contain(t[0],t[1]))return!1;e:for(var a=0,o=i.length;a>1^-(s&1),l=l>>1^-(l&1),s+=i,l+=a,i=s,a=l,n.push([s/t,l/t])}return n}function $m(r,e){return r=dE(r),K(We(r.features,function(t){return t.geometry&&t.properties&&t.geometry.coordinates.length>0}),function(t){var n=t.properties,i=t.geometry,a=[];switch(i.type){case"Polygon":var o=i.coordinates;a.push(new Wm(o[0],o.slice(1)));break;case"MultiPolygon":A(i.coordinates,function(l){l[0]&&a.push(new Wm(l[0],l.slice(1)))});break;case"LineString":a.push(new Ym([i.coordinates]));break;case"MultiLineString":a.push(new Ym(i.coordinates))}var s=new vE(n[e||"name"],a,n.cp);return s.properties=n,s})}const pE=Object.freeze(Object.defineProperty({__proto__:null,MAX_SAFE_INTEGER:ph,asc:pr,getPercentWithPrecision:vM,getPixelPrecision:hM,getPrecision:Or,getPrecisionSafe:j0,isNumeric:r_,isRadianAroundZero:yo,linearMap:ke,nice:Lu,numericToNumber:_o,parseDate:Hr,parsePercent:Me,quantile:pM,quantity:Cv,quantityExponent:Iu,reformIntervals:gM,remRadian:Tv,round:cM},Symbol.toStringTag,{value:"Module"})),gE=Object.freeze(Object.defineProperty({__proto__:null,format:Ko,parse:Hr,roundTime:ql},Symbol.toStringTag,{value:"Module"})),mE=Object.freeze(Object.defineProperty({__proto__:null,Arc:Xo,BezierCurve:zu,BoundingRect:te,Circle:Yo,CompoundPath:U_,Ellipse:Nu,Group:Ge,Image:Vr,IncrementalDisplayable:Z_,Line:zr,LinearGradient:zv,Polygon:$o,Polyline:wi,RadialGradient:Y_,Rect:Ae,Ring:Fu,Sector:Wr,Text:Ue,clipPointsByRect:i1,clipRectByRect:a1,createIcon:Hu,extendPath:j_,extendShape:Q_,getShapeClass:J_,getTransform:Yv,initProps:At,makeImage:Uv,makePath:Gu,mergePath:t1,registerShape:qt,resizePath:Wv,updateProps:ot},Symbol.toStringTag,{value:"Module"})),yE=Object.freeze(Object.defineProperty({__proto__:null,addCommas:od,capitalFirst:L2,encodeHTML:ft,formatTime:I2,formatTpl:ld,getTextRect:D2,getTooltipMarker:S1,normalizeCssArray:Qo,toCamelCase:sd,truncateText:rA},Symbol.toStringTag,{value:"Module"})),_E=Object.freeze(Object.defineProperty({__proto__:null,bind:ee,clone:se,curry:Re,defaults:_e,each:A,extend:k,filter:We,indexOf:ve,inherits:mv,isArray:V,isFunction:re,isObject:j,isString:$,map:K,merge:de,reduce:br},Symbol.toStringTag,{value:"Module"}));var SE=Se(),fo=Se(),rr={estimate:1,determine:2};function fu(r){return{out:{noPxChangeTryDetermine:[]},kind:r}}function bE(r,e){var t=r.getLabelModel().get("customValues");if(t){var n=r.scale;return{labels:K(pb(t,n),function(i,a){return{formattedLabel:af(r)(i,a),rawLabel:n.getLabel(i),tick:i}})}}return r.type==="category"?xE(r,e):CE(r)}function wE(r,e,t){var n=r.scale,i=r.getTickModel().get("customValues");return i?{ticks:pb(i,n)}:r.type==="category"?TE(r,e):{ticks:n.getTicks(t)}}function pb(r,e){var t=e.getExtent(),n=[];return A(r,function(i){i=e.parse(i),i>=t[0]&&i<=t[1]&&n.push(i)}),Lv(n,HM,null),pr(n),K(n,function(i){return{value:i}})}function xE(r,e){var t=r.getLabelModel(),n=gb(r,t,e);return!t.get("show")||r.scale.isBlank()?{labels:[]}:n}function gb(r,e,t){var n=AE(r),i=Od(e),a=t.kind===rr.estimate;if(!a){var o=yb(n,i);if(o)return o}var s,l;re(i)?s=cu(r,i,!1):(l=i==="auto"?DE(r,t):i,s=cu(r,l,!1));var u={labels:s,labelCategoryInterval:l};return a?t.out.noPxChangeTryDetermine.push(function(){return Kh(n,i,u),!0}):Kh(n,i,u),u}function TE(r,e){var t=ME(r),n=Od(e),i=yb(t,n);if(i)return i;var a,o;if((!e.get("show")||r.scale.isBlank())&&(a=[]),re(n))a=cu(r,n,!0);else if(n==="auto"){var s=gb(r,r.getLabelModel(),fu(rr.determine));o=s.labelCategoryInterval,a=K(s.labels,function(l){return l.tick})}else o=n,a=cu(r,o,!0);return Kh(t,n,{ticks:a,tickCategoryInterval:o})}function CE(r){var e=r.scale.getTicks(),t=af(r);return{labels:K(e,function(n,i){return{formattedLabel:t(n,i),rawLabel:r.scale.getLabel(n),tick:n}})}}var ME=mb("axisTick"),AE=mb("axisLabel");function mb(r){return function(t){return fo(t)[r]||(fo(t)[r]={list:[]})}}function yb(r,e){for(var t=0;tf&&(u=Math.max(1,Math.floor(l/f)));for(var c=s[0],h=r.dataToCoord(c+1)-r.dataToCoord(c),v=Math.abs(h*Math.cos(a)),d=Math.abs(h*Math.sin(a)),p=0,g=0;c<=s[1];c+=u){var m=0,y=0,_=Z0(i({value:c}),n.font,"center","top");m=_.width*1.3,y=_.height*1.3,p=Math.max(p,m,7),g=Math.max(g,y,7)}var S=p/v,b=g/d;isNaN(S)&&(S=1/0),isNaN(b)&&(b=1/0);var w=Math.max(0,Math.floor(Math.min(S,b)));if(t===rr.estimate)return e.out.noPxChangeTryDetermine.push(ee(LE,null,r,w,l)),w;var x=_b(r,w,l);return x??w}function LE(r,e,t){return _b(r,e,t)==null}function _b(r,e,t){var n=SE(r.model),i=r.getExtent(),a=n.lastAutoInterval,o=n.lastTickCount;if(a!=null&&o!=null&&Math.abs(a-e)<=1&&Math.abs(o-t)<=1&&a>e&&n.axisExtent0===i[0]&&n.axisExtent1===i[1])return a;n.lastTickCount=t,n.lastAutoInterval=e,n.axisExtent0=i[0],n.axisExtent1=i[1]}function PE(r){var e=r.getLabelModel();return{axisRotate:r.getRotate?r.getRotate():r.isHorizontal&&!r.isHorizontal()?90:0,labelRotate:e.get("rotate")||0,font:e.getFont()}}function cu(r,e,t){var n=af(r),i=r.scale,a=[],o=re(e);return US(i,o?0:e,function(s,l){var u=i.getLabel(s);if(o){var f=!!e(s.value,u);if(s.offInterval=!f,!f&&!l)return}a.push(t?s:{formattedLabel:n(s),rawLabel:u,tick:s})}),a}var RE=.8;function Sa(r,e){e=e||{};var t={w:NaN,w2:NaN},n=r.scale,i=e.fromStat,a=e.min,o=uR(n);Yt(o)||(o=NaN);var s=r.getExtent(),l=Ne(s[1]-s[0]);return It(n)?EE(t,r,o,l):i&&OE(t,r,o,l,i),a!=null&&(t.w=Yt(t.w)?pe(a,t.w):a),t}function EE(r,e,t,n){var i=e.onBand,a=t+(i?1:0);a===0&&(a=1),r.w=n/a,!i&&t&&n&&(r.w2=r.w*t/n)}function OE(r,e,t,n,i){var a=!1,o=-1/0;A(i.key?[kR(e,i.key)]:BR(e,i.sers||[]),function(s){var l=s.liPosMinGap;l!=null&&(l>0?(l>o&&(o=l),a=!1):l===eb&&(a=!0))}),Yt(t)&&t>0&&Yt(o)?(r.w=n/t*o,r.w2=o):a&&(r.w=n*RE,r.w2=r.w*t/n)}var Xm=[0,1],Sb=function(){function r(e,t,n){this.onBand=!1,this.inverse=!1,this.dim=e,this.scale=t,this._extent=n||[0,0]}return r.prototype.contain=function(e){var t=this._extent,n=Math.min(t[0],t[1]),i=Math.max(t[0],t[1]);return e>=n&&e<=i},r.prototype.containData=function(e){return this.scale.contain(this.scale.parse(e))},r.prototype.getExtent=function(){return this._extent.slice()},r.prototype.setExtent=function(e,t){var n=this._extent;n[0]=e,n[1]=t},r.prototype.dataToCoord=function(e,t){var n=this.scale;return e=n.normalize(n.parse(e)),ke(e,Xm,Zm(this),t)},r.prototype.coordToData=function(e,t){var n=ke(e,Zm(this),Xm,t);return this.scale.scale(n)},r.prototype.pointToData=function(e,t){},r.prototype.getTicksCoords=function(e){e=e||{};var t=e.tickModel||this.getTickModel(),n=wE(this,t,{breakTicks:e.breakTicks,pruneByBreak:e.pruneByBreak}),i=K(n.ticks,function(s){return{coord:this.dataToCoord(es(this.scale,s)),tick:s}},this),a=t.get("alignWithLabel"),o=kE(this,i,a);return K(i,function(s){return{coord:s.coord,tickValue:s.tick.value,onBand:o}})},r.prototype.getMinorTicksCoords=function(){if(It(this.scale))return[];var e=this.model.getModel("minorTick"),t=e.get("splitNumber");t>0&&t<100||(t=5);var n=this.scale.getMinorTicks(t),i=K(n,function(a){return K(a,function(o){return{coord:this.dataToCoord(o),tickValue:o}},this)},this);return i},r.prototype.getViewLabels=function(e){return e=e||fu(rr.determine),bE(this,e).labels},r.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},r.prototype.getTickModel=function(){return this.model.getModel("axisTick")},r.prototype.getBandWidth=function(){return Sa(this,{min:1}).w},r.prototype.calculateCategoryInterval=function(e){return e=e||fu(rr.determine),IE(this,e)},r}();function Zm(r){var e=r.getExtent();if(r.onBand){var t=e[1]-e[0],n=t/r.scale.count()/2;e[0]+=n,e[1]-=n}return e}function kE(r,e,t){var n=e.length;if(!r.onBand||t||!n)return!1;var i=Sa(r).w;if(!i)return!1;A(e,function(s){s.coord-=i/2});var a=r.scale.getExtent(),o=e[n-1];return o.tick.offInterval&&e.pop(),e.push({coord:o.coord+i,tick:{value:a[1]+1}}),!0}function BE(r){var e=ye.extend(r);return ye.registerClass(e),e}function NE(r){var e=_t.extend(r);return _t.registerClass(e),e}function FE(r){var e=Tt.extend(r);return Tt.registerClass(e),e}function zE(r){var e=gt.extend(r);return gt.registerClass(e),e}function bb(r,e,t,n,i,a,o,s){var l=i-r,u=a-e,f=t-r,c=n-e,h=Math.sqrt(f*f+c*c);f/=h,c/=h;var v=l*f+u*c,d=v/h;d*=h;var p=o[0]=r+d*f,g=o[1]=e+d*c;return Math.sqrt((p-i)*(p-i)+(g-a)*(g-a))}var sn=new ie,Be=new ie,je=new ie,ln=new ie,vr=new ie,hu=[],ut=new ie;function GE(r,e){if(e<=180&&e>0){e=e/180*Math.PI,sn.fromArray(r[0]),Be.fromArray(r[1]),je.fromArray(r[2]),ie.sub(ln,sn,Be),ie.sub(vr,je,Be);var t=ln.len(),n=vr.len();if(!(t<.001||n<.001)){ln.scale(1/t),vr.scale(1/n);var i=ln.dot(vr),a=Math.cos(e);if(a1&&ie.copy(ut,je),ut.toArray(r[1])}}}}function HE(r,e,t){if(t<=180&&t>0){t=t/180*Math.PI,sn.fromArray(r[0]),Be.fromArray(r[1]),je.fromArray(r[2]),ie.sub(ln,Be,sn),ie.sub(vr,je,Be);var n=ln.len(),i=vr.len();if(!(n<.001||i<.001)){ln.scale(1/n),vr.scale(1/i);var a=ln.dot(e),o=Math.cos(t);if(a=l)ie.copy(ut,je);else{ut.scaleAndAdd(vr,s/Math.tan(Math.PI/2-f));var c=je.x!==Be.x?(ut.x-Be.x)/(je.x-Be.x):(ut.y-Be.y)/(je.y-Be.y);if(isNaN(c))return;c<0?ie.copy(ut,Be):c>1&&ie.copy(ut,je)}ut.toArray(r[1])}}}}function xc(r,e,t,n){var i=t==="normal",a=i?r:r.ensureState(t);a.ignore=e;var o=n.get("smooth");o=o===!0?.3:Math.max(+o,0)||0,a.shape=a.shape||{},a.shape.smooth=o;var s=n.getModel("lineStyle").getLineStyle();i?r.useStyle(s):a.style=s}function VE(r,e){var t=e.smooth,n=e.points;if(n)if(r.moveTo(n[0][0],n[0][1]),t>0&&n.length>=3){var i=Cl(n[0],n[1]),a=Cl(n[1],n[2]);if(!i||!a){r.lineTo(n[1][0],n[1][1]),r.lineTo(n[2][0],n[2][1]);return}var o=Math.min(i,a)*t,s=js([],n[1],n[0],o/i),l=js([],n[1],n[2],o/a),u=js([],s,l,.5);r.bezierCurveTo(s[0],s[1],s[0],s[1],u[0],u[1]),r.bezierCurveTo(l[0],l[1],l[0],l[1],n[2][0],n[2][1])}else for(var f=1;f0){S(D*C,0,a);var M=D+x;M<0&&b(-M*C,1)}else b(-x*C,1)}}function S(x,T,C){x!==0&&(f=!0);for(var D=T;D0)for(var M=0;M0;M--){var R=C[M-1]*P;S(-R,M,a)}}}function w(x){var T=x<0?-1:1;x=Math.abs(x);for(var C=Math.ceil(x/(a-1)),D=0;D0?S(C,0,D+1):S(-C,a-D-1,a),x-=C,x<=0)return}return f}function qE(r){var e=[];r.sort(function(u,f){return(f.suggestIgnore?1:0)-(u.suggestIgnore?1:0)||f.priority-u.priority});function t(u){if(!u.ignore){var f=u.ensureState("emphasis");f.ignore==null&&(f.ignore=!1)}u.ignore=!0}for(var n=0;n-1&&(u.style.stroke=u.style.fill,u.style.fill=U.color.neutral00,u.style.lineWidth=2),n},e.type="series.line",e.dependencies=["grid","polar"],e.defaultOption={z:3,coordinateSystem:"cartesian2d",legendHoverLink:!0,clip:!0,label:{position:"top"},endLabel:{show:!1,valueAnimation:!0,distance:8},lineStyle:{width:2,type:"solid"},emphasis:{scale:!0},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:6,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:"clone"},triggerLineEvent:!1,triggerEvent:!1},e}(Tt);function Fd(r,e){var t=r.mapDimensionsAll("defaultedLabel"),n=t.length;if(n===1){var i=fa(r,e,t[0]);return i!=null?i+"":null}else if(n){for(var a=[],o=0;o=0&&n.push(e[a])}return n.join(" ")}var zd=function(r){F(e,r);function e(t,n,i,a){var o=r.call(this)||this;return o.updateData(t,n,i,a),o}return e.prototype._createSymbol=function(t,n,i,a,o,s){this.removeAll();var l=Gr(t,-1,-1,2,2,null,s);l.attr({z2:q(o,100),culling:!0,scaleX:a[0]/2,scaleY:a[1]/2}),l.drift=jE,this._symbolType=t,this.add(l)},e.prototype.stopSymbolAnimation=function(t){this.childAt(0).stopAnimation(null,t)},e.prototype.getSymbolType=function(){return this._symbolType},e.prototype.getSymbolPath=function(){return this.childAt(0)},e.prototype.highlight=function(){Vl(this.childAt(0))},e.prototype.downplay=function(){Ul(this.childAt(0))},e.prototype.setZ=function(t,n){var i=this.childAt(0);i.zlevel=t,i.z=n},e.prototype.setDraggable=function(t,n){var i=this.childAt(0);i.draggable=t,i.cursor=!n&&t?"move":i.cursor},e.prototype.updateData=function(t,n,i,a){this.silent=!1;var o=t.getItemVisual(n,"symbol")||"circle",s=t.hostModel,l=e.getSymbolSize(t,n),u=e.getSymbolZ2(t,n),f=o!==this._symbolType,c=a&&a.disableAnimation;if(f){var h=t.getItemVisual(n,"symbolKeepAspect");this._createSymbol(o,t,n,l,u,h)}else{var v=this.childAt(0);v.silent=!1;var d={scaleX:l[0]/2,scaleY:l[1]/2};c?v.attr(d):ot(v,d,s,n),Hv(v)}if(this._updateCommon(t,n,l,i,a),f){var v=this.childAt(0);if(!c){var d={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:v.style.opacity}};v.scaleX=v.scaleY=0,v.style.opacity=0,At(v,d,s,n)}}c&&this.childAt(0).stopAnimation("leave")},e.prototype._updateCommon=function(t,n,i,a,o){var s=this.childAt(0),l=t.hostModel,u,f,c,h,v,d,p,g,m;if(a&&(u=a.emphasisItemStyle,f=a.blurItemStyle,c=a.selectItemStyle,h=a.focus,v=a.blurScope,p=a.labelStatesModels,g=a.hoverScale,m=a.cursorStyle,d=a.emphasisDisabled),!a||t.hasItemOption){var y=a&&a.itemModel?a.itemModel:t.getItemModel(n),_=y.getModel("emphasis");u=_.getModel("itemStyle").getItemStyle(),c=y.getModel(["select","itemStyle"]).getItemStyle(),f=y.getModel(["blur","itemStyle"]).getItemStyle(),h=_.get("focus"),v=_.get("blurScope"),d=_.get("disabled"),p=qo(y),g=_.getShallow("scale"),m=y.getShallow("cursor")}var S=t.getItemVisual(n,"symbolRotate");s.attr("rotation",(S||0)*Math.PI/180||0);var b=sS(t.getItemVisual(n,"symbolOffset"),i);b&&(s.x=b[0],s.y=b[1]),m&&s.attr("cursor",m);var w=t.getItemVisual(n,"style"),x=w.fill;if(s instanceof Vr){var T=s.style;s.useStyle(k({image:T.image,x:T.x,y:T.y,width:T.width,height:T.height},w))}else s.__isEmptyBrush?s.useStyle(k({},w)):s.useStyle(w),s.style.decal=null,s.setColor(x,o&&o.symbolInnerColor),s.style.strokeNoScale=!0;var C=t.getItemVisual(n,"liftZ"),D=this._z2;C!=null?D==null&&(this._z2=s.z2,s.z2+=C):D!=null&&(s.z2=D,this._z2=null);var M=o&&o.useNameLabel;Zo(s,p,{labelFetcher:l,labelDataIndex:n,defaultText:L,inheritColor:x,defaultOpacity:w.opacity});function L(R){return M?t.getName(R):Fd(t,R)}this._sizeX=i[0]/2,this._sizeY=i[1]/2;var I=s.ensureState("emphasis");I.style=u,s.ensureState("select").style=c,s.ensureState("blur").style=f;var P=g==null||g===!0?Math.max(1.1,3/this._sizeY):isFinite(g)&&g>0?+g:1;I.scaleX=this._sizeX*P,I.scaleY=this._sizeY*P,this.setSymbolScale(1),xo(this,h,v,d)},e.prototype.setSymbolScale=function(t){this.scaleX=this.scaleY=t},e.prototype.fadeOut=function(t,n,i){var a=this.childAt(0),o=he(this).dataIndex,s=i&&i.animation;if(this.silent=a.silent=!0,i&&i.fadeLabel){var l=a.getTextContent();l&&Yl(l,{style:{opacity:0}},n,{dataIndex:o,removeOpt:s,cb:function(){a.removeTextContent()}})}else a.removeTextContent();Yl(a,{style:{opacity:0},scaleX:0,scaleY:0},n,{dataIndex:o,cb:t,removeOpt:s})},e.getSymbolSize=function(t,n){return YL(t.getItemVisual(n,"symbolSize"))},e.getSymbolZ2=function(t,n){return t.getItemVisual(n,"z2")},e}(Ge);function jE(r,e){this.parent.drift(r,e)}function Gs(r,e,t,n){return e&&!isNaN(e[0])&&!isNaN(e[1])&&!(n&&n.isIgnore&&n.isIgnore(t))&&!(n&&n.clipShape&&!n.clipShape.contain(e[0],e[1]))&&r.getItemVisual(t,"symbol")!=="none"}function jm(r){return r!=null&&!j(r)&&(r={isIgnore:r}),r||{}}function Jm(r){var e=r.hostModel,t=e.getModel("emphasis");return{emphasisItemStyle:t.getModel("itemStyle").getItemStyle(),blurItemStyle:e.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:e.getModel(["select","itemStyle"]).getItemStyle(),focus:t.get("focus"),blurScope:t.get("blurScope"),emphasisDisabled:t.get("disabled"),hoverScale:t.get("scale"),labelStatesModels:qo(e),cursorStyle:e.get("cursor")}}function ey(r,e,t,n,i,a,o){var s=new r(e,t,n,i);return s.setPosition(a),e.setItemGraphicEl(t,s),o.add(s),s}var JE=function(){function r(e){this.group=new Ge,this._SymbolCtor=e||zd}return r.prototype.updateData=function(e,t){this._progressiveEls=null,t=jm(t);var n=this.group,i=e.hostModel,a=this._data,o=this._SymbolCtor,s=t.disableAnimation,l=this._seriesScope=Jm(e),u={disableAnimation:s},f=t.getSymbolPoint||function(c){return e.getItemLayout(c)};a||n.removeAll(),e.diff(a).add(function(c){var h=f(c);Gs(e,h,c,t)&&ey(o,e,c,l,u,h,n)}).update(function(c,h){var v=a.getItemGraphicEl(h),d=f(c);if(!Gs(e,d,c,t)){n.remove(v);return}var p=e.getItemVisual(c,"symbol")||"circle",g=v&&v.getSymbolType&&v.getSymbolType();if(!v||g&&g!==p)n.remove(v),v=new o(e,c,l,u),v.setPosition(d);else{v.updateData(e,c,l,u);var m={x:d[0],y:d[1]};s?v.attr(m):ot(v,m,i)}n.add(v),e.setItemGraphicEl(c,v)}).remove(function(c){var h=a.getItemGraphicEl(c);h&&h.fadeOut(function(){n.remove(h)},i)}).execute(),this._getSymbolPoint=f,this._data=e},r.prototype.updateLayout=function(e){var t=this._data;if(t)for(var n=this,i=t.getStore(),a=0,o=i.count();a0?t=n[0]:n[1]<0&&(t=n[1]),t}function Ab(r,e,t,n){var i=NaN;r.stacked&&(i=t.get(t.getCalculationInfo("stackedOverDimension"),n)),isNaN(i)&&(i=r.valueStart);var a=r.baseDataOffset,o=[];return o[a]=t.get(r.baseDim,n),o[1-a]=i,e.dataToPoint(o)}function Wt(r,e){return!isFinite(r)||!isFinite(e)}var tO=typeof Float32Array!==ga?Float32Array:void 0,rO=typeof Float64Array!==ga?Float64Array:void 0;function kr(r){return Gd({ctor:tO},r).arr}function Gd(r,e){var t=r.arr,n=r.ctor;if(e>ph&&(e=ph),!t||r.typed&&t.length=i||p<0)break;if(Wt(m,y)){if(l){p+=a;continue}break}if(p===t)r[a>0?"moveTo":"lineTo"](m,y),c=m,h=y;else{var _=m-u,S=y-f;if(_*_+S*S<.5){p+=a;continue}if(o>0){for(var b=p+a,w=e[b*2],x=e[b*2+1];w===m&&x===y&&g=n||Wt(w,x))v=m,d=y;else{D=w-u,M=x-f;var P=m-u,R=w-m,E=y-f,N=x-y,O=void 0,B=void 0;if(s==="x"){O=Math.abs(P),B=Math.abs(R);var G=D>0?1:-1;v=m-G*O*o,d=y,L=m+G*B*o,I=y}else if(s==="y"){O=Math.abs(E),B=Math.abs(N);var H=M>0?1:-1;v=m,d=y-H*O*o,L=m,I=y+H*B*o}else O=Math.sqrt(P*P+E*E),B=Math.sqrt(R*R+N*N),C=B/(B+O),v=m-D*o*(1-C),d=y-M*o*(1-C),L=m+D*o*C,I=y+M*o*C,L=Kr(L,Qr(w,m)),I=Kr(I,Qr(x,y)),L=Qr(L,Kr(w,m)),I=Qr(I,Kr(x,y)),D=L-m,M=I-y,v=m-D*O/B,d=y-M*O/B,v=Kr(v,Qr(u,m)),d=Kr(d,Qr(f,y)),v=Qr(v,Kr(u,m)),d=Qr(d,Kr(f,y)),D=m-v,M=y-d,L=m+D*B/O,I=y+M*B/O}r.bezierCurveTo(c,h,v,d,m,y),c=L,h=I}else r.lineTo(m,y)}u=m,f=y,p+=a}return g}var Db=function(){function r(){this.smooth=0,this.smoothConstraint=!0}return r}(),aO=function(r){F(e,r);function e(t){var n=r.call(this,t)||this;return n.type="ec-polyline",n}return e.prototype.getDefaultStyle=function(){return{stroke:U.color.neutral99,fill:null}},e.prototype.getDefaultShape=function(){return new Db},e.prototype.buildPath=function(t,n){var i=n.points,a=0,o=i.length/2;if(n.connectNulls){for(;o>0&&Wt(i[o*2-2],i[o*2-1]);o--);for(;a=0){var S=u?(d-l)*_+l:(v-s)*_+s;return u?[t,S]:[S,t]}s=v,l=d;break;case o.C:v=a[c++],d=a[c++],p=a[c++],g=a[c++],m=a[c++],y=a[c++];var b=u?Ll(s,v,p,m,t,f):Ll(l,d,g,y,t,f);if(b>0)for(var w=0;w=0){var S=u?Je(l,d,g,y,x):Je(s,v,p,m,x);return u?[t,S]:[S,t]}}s=m,l=y;break}}},e}(Te),oO=function(r){F(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e}(Db),sO=function(r){F(e,r);function e(t){var n=r.call(this,t)||this;return n.type="ec-polygon",n}return e.prototype.getDefaultShape=function(){return new oO},e.prototype.buildPath=function(t,n){var i=n.points,a=n.stackedOnPoints,o=0,s=i.length/2,l=n.smoothMonotone;if(n.connectNulls){for(;s>0&&Wt(i[s*2-2],i[s*2-1]);s--);for(;oe){a?t.push(o(a,l,e)):i&&t.push(o(i,l,0),o(i,l,e));break}else i&&(t.push(o(i,l,0)),i=null),t.push(l),a=l}return t}function cO(r,e,t){var n=r.getVisual("visualMeta");if(!(!n||!n.length||!r.count())&&e.type==="cartesian2d"){for(var i,a,o=n.length-1;o>=0;o--){var s=r.getDimensionInfo(n[o].dimension);if(i=s&&s.coordDim,i==="x"||i==="y"){a=n[o];break}}if(a){var l=e.getAxis(i),u=K(a.stops,function(_){return{coord:l.toGlobalCoord(l.dataToCoord(_.value)),color:_.color}}),f=u.length,c=a.outerColors.slice();f&&u[0].coord>u[f-1].coord&&(u.reverse(),c.reverse());var h=fO(u,i==="x"?t.getWidth():t.getHeight()),v=h.length;if(!v&&f)return u[0].coord<0?c[1]?c[1]:u[f-1].color:c[0]?c[0]:u[0].color;var d=10,p=h[0].coord-d,g=h[v-1].coord+d,m=g-p;if(m<.001)return"transparent";A(h,function(_){_.offset=(_.coord-p)/m}),h.push({offset:v?h[v-1].offset:.5,color:c[1]||"transparent"}),h.unshift({offset:v?h[0].offset:.5,color:c[0]||"transparent"});var y=new zv(0,0,0,0,h,!0);return y[i]=p,y[i+"2"]=g,y}}}function hO(r,e,t){var n=r.get("showAllSymbol"),i=n==="auto";if(!(n&&!i)){var a=t.getAxesByScale("ordinal")[0];if(a&&!(i&&vO(a,e))){var o=e.mapDimension(a.dim),s={};return A(a.getViewLabels(),function(l){l.tick.offInterval||(s[es(a.scale,l.tick)]=1)}),function(l){return!s.hasOwnProperty(e.get(o,l))}}}}function vO(r,e){var t=r.getExtent(),n=Math.abs(t[1]-t[0])/r.scale.count();isNaN(n)&&(n=0);for(var i=e.count(),a=Math.max(1,Math.round(i/5)),o=0;on)return!1;return!0}function dO(r){for(var e=r.length/2;e>0&&Wt(r[e*2-2],r[e*2-1]);e--);return e-1}function ay(r,e){return[r[e*2],r[e*2+1]]}function pO(r,e,t){for(var n=r.length/2,i=t==="x"?0:1,a,o,s=0,l=-1,u=0;u=e||a>=e&&o<=e){l=u;break}s=u,a=o}return{range:[s,l],t:(e-a)/(o-a)}}function Rb(r){if(r.get(["endLabel","show"]))return!0;for(var e=0;e<$t.length;e++)if(r.get([$t[e],"endLabel","show"]))return!0;return!1}function Cc(r,e,t,n){if(Pb(e,"cartesian2d")){var i=n.getModel("endLabel"),a=i.get("valueAnimation"),o=n.getData(),s={lastFrameIndex:0},l=Rb(n)?function(v,d){r._endLabelOnDuring(v,d,o,s,a,i,e)}:null,u=e.getBaseAxis().isHorizontal(),f=Ib(e,t,n,function(){var v=r._endLabel;v&&t&&s.originalX!=null&&v.attr({x:s.originalX,y:s.originalY})},l);if(!n.get("clip",!0)){var c=f.shape,h=Math.max(c.width,c.height);u?(c.y-=h,c.height+=h*2):(c.x-=h,c.width+=h*2)}return l&&l(1,f),f}else return Lb(e,t,n)}function gO(r,e){var t=e.getBaseAxis(),n=t.isHorizontal(),i=t.inverse,a=n?i?"right":"left":"center",o=n?"middle":i?"top":"bottom";return{normal:{align:r.get("align")||a,verticalAlign:r.get("verticalAlign")||o}}}var mO=function(r){F(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.init=function(){var t=new Ge,n=new JE;this.group.add(n.group),this._symbolDraw=n,this._lineGroup=t,this._changePolyState=ee(this._changePolyState,this)},e.prototype.render=function(t,n,i){var a=t.coordinateSystem,o=this.group,s=t.getData(),l=t.getModel("lineStyle"),u=t.getModel("areaStyle"),f=s.getLayout("points")||[],c=a.type==="polar",h=this._coordSys,v=this._symbolDraw,d=this._polyline,p=this._polygon,g=this._lineGroup,m=!n.ssr&&t.get("animation"),y=!u.isEmpty(),_=u.get("origin"),S=Mb(a,s,_),b=y&&uO(a,s,S),w=t.get("showSymbol"),x=t.get("connectNulls"),T=w&&!c&&hO(t,s,a),C=this._data;C&&C.eachItemGraphicEl(function(we,Ee){we.__temp&&(o.remove(we),C.setItemGraphicEl(Ee,null))}),w||v.remove(),o.add(g);var D=c?!1:t.get("step"),M;a&&a.getArea&&t.get("clip",!0)&&(M=a.getArea(),M.width!=null?(M.x-=.1,M.y-=.1,M.width+=.2,M.height+=.2):M.r0&&(M.r0-=.5,M.r+=.5)),this._clipShapeForSymbol=M;var L=cO(s,a,i)||s.getVisual("style")[s.getVisual("drawType")];if(!(d&&h.type===a.type&&D===this._step))w&&v.updateData(s,{isIgnore:T,clipShape:M,disableAnimation:!0,getSymbolPoint:function(we){return[f[we*2],f[we*2+1]]}}),m&&this._initSymbolLabelAnimation(s,a,M),D&&(b&&(b=jr(b,f,a,D,x)),f=jr(f,null,a,D,x)),d=this._newPolyline(f),y?p=this._newPolygon(f,b):p&&(g.remove(p),p=this._polygon=null),c||this._initOrUpdateEndLabel(t,a,vi(L)),g.setClipPath(Cc(this,a,!0,t));else{y&&!p?p=this._newPolygon(f,b):p&&!y&&(g.remove(p),p=this._polygon=null),c||this._initOrUpdateEndLabel(t,a,vi(L));var I=g.getClipPath();if(I){var P=Cc(this,a,!1,t);At(I,{shape:P.shape},t)}else g.setClipPath(Cc(this,a,!0,t));w&&v.updateData(s,{isIgnore:T,clipShape:M,disableAnimation:!0,getSymbolPoint:function(we){return[f[we*2],f[we*2+1]]}}),(!ty(this._stackedOnPoints,b)||!ty(this._points,f))&&(m?this._doUpdateAnimation(s,b,a,i,D,_,x):(D&&(b&&(b=jr(b,f,a,D,x)),f=jr(f,null,a,D,x)),d.setShape({points:f}),p&&p.setShape({points:f,stackedOnPoints:b})))}var R=t.getModel("emphasis"),E=R.get("focus"),N=R.get("blurScope"),O=R.get("disabled");if(d.useStyle(_e(l.getLineStyle(),{fill:"none",stroke:L,lineJoin:"bevel"})),Wl(d,t,"lineStyle"),d.style.lineWidth>0&&t.get(["emphasis","lineStyle","width"])==="bolder"){var B=d.getState("emphasis").style;B.lineWidth=+d.style.lineWidth+1}he(d).seriesIndex=t.seriesIndex,xo(d,E,N,O);var G=iy(t.get("smooth")),H=t.get("smoothMonotone");if(d.setShape({smooth:G,smoothMonotone:H,connectNulls:x}),p){var Y=s.getCalculationInfo("stackedOnSeries"),X=0;p.useStyle(_e(u.getAreaStyle(),{fill:L,opacity:.7,lineJoin:"bevel",decal:s.getVisual("style").decal})),Y&&(X=iy(Y.get("smooth"))),p.setShape({smooth:G,stackedOnSmooth:X,smoothMonotone:H,connectNulls:x}),Wl(p,t,"areaStyle"),he(p).seriesIndex=t.seriesIndex,xo(p,E,N,O)}var W=this._changePolyState;s.eachItemGraphicEl(function(we){we&&(we.onHoverStateChange=W)}),this._polyline.onHoverStateChange=W,this._data=s,this._coordSys=a,this._stackedOnPoints=b,this._points=f,this._step=D,this._valueOrigin=_;var ae=t.get("triggerEvent"),le=t.get("triggerLineEvent"),He=le===!0||ae===!0||ae==="line",Ye=le===!0||ae===!0||ae==="area";this.packEventData(t,d,He),p&&this.packEventData(t,p,Ye)},e.prototype.packEventData=function(t,n,i){he(n).eventData=i?{componentType:"series",componentSubType:"line",componentIndex:t.componentIndex,seriesIndex:t.seriesIndex,seriesName:t.name,seriesType:"line",selfType:n===this._polygon?"area":"line"}:null},e.prototype.highlight=function(t,n,i,a){var o=t.getData(),s=ci(o,a);if(this._changePolyState("emphasis"),!(s instanceof Array)&&s!=null&&s>=0){var l=o.getLayout("points"),u=o.getItemGraphicEl(s);if(!u){var f=l[s*2],c=l[s*2+1];if(Wt(f,c)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(f,c))return;var h=t.get("zlevel")||0,v=t.get("z")||0;u=new zd(o,s),u.x=f,u.y=c,u.setZ(h,v);var d=u.getSymbolPath().getTextContent();d&&(d.zlevel=h,d.z=v,d.z2=this._polyline.z2+1),u.__temp=!0,o.setItemGraphicEl(s,u),u.stopSymbolAnimation(!0),this.group.add(u)}u.highlight()}else gt.prototype.highlight.call(this,t,n,i,a)},e.prototype.downplay=function(t,n,i,a){var o=t.getData(),s=ci(o,a);if(this._changePolyState("normal"),s!=null&&s>=0){var l=o.getItemGraphicEl(s);l&&(l.__temp?(o.setItemGraphicEl(s,null),this.group.remove(l)):l.downplay())}else gt.prototype.downplay.call(this,t,n,i,a)},e.prototype._changePolyState=function(t){var n=this._polygon;eg(this._polyline,t),n&&eg(n,t)},e.prototype._newPolyline=function(t){var n=this._polyline;return n&&this._lineGroup.remove(n),n=new aO({shape:{points:t},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(n),this._polyline=n,n},e.prototype._newPolygon=function(t,n){var i=this._polygon;return i&&this._lineGroup.remove(i),i=new sO({shape:{points:t,stackedOnPoints:n},segmentIgnoreThreshold:2}),this._lineGroup.add(i),this._polygon=i,i},e.prototype._initSymbolLabelAnimation=function(t,n,i){var a,o,s=n.getBaseAxis(),l=s.inverse;n.type==="cartesian2d"?(a=s.isHorizontal(),o=!1):n.type==="polar"&&(a=s.dim==="angle",o=!0);var u=t.hostModel,f=u.get("animationDuration");re(f)&&(f=f(null));var c=u.get("animationDelay")||0,h=re(c)?c(null):c;t.eachItemGraphicEl(function(v,d){var p=v;if(p){var g=[v.x,v.y],m=void 0,y=void 0,_=void 0;if(i)if(o){var S=i,b=n.pointToCoord(g);a?(m=S.startAngle,y=S.endAngle,_=-b[1]/180*Math.PI):(m=S.r0,y=S.r,_=b[0])}else{var w=i;a?(m=w.x,y=w.x+w.width,_=v.x):(m=w.y+w.height,y=w.y,_=v.y)}var x=y===m?0:(_-m)/(y-m);l&&(x=1-x);var T=re(c)?c(d):f*x+h,C=p.getSymbolPath(),D=C.getTextContent();p.attr({scaleX:0,scaleY:0}),p.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:T}),D&&D.animateFrom({style:{opacity:0}},{duration:300,delay:T}),C.disableLabelAnimation=!0}})},e.prototype._initOrUpdateEndLabel=function(t,n,i){var a=t.getModel("endLabel");if(Rb(t)){var o=t.getData(),s=this._polyline,l=o.getLayout("points");if(!l){s.removeTextContent(),this._endLabel=null;return}var u=this._endLabel;u||(u=this._endLabel=new Ue({z2:200}),u.ignoreClip=!0,s.setTextContent(this._endLabel),s.disableLabelAnimation=!0);var f=dO(l);f>=0&&(Zo(s,qo(t,"endLabel"),{inheritColor:i,labelFetcher:t,labelDataIndex:f,defaultText:function(c,h,v){return v!=null?Cb(o,v):Fd(o,c)},enableTextSetter:!0},gO(a,n)),s.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},e.prototype._endLabelOnDuring=function(t,n,i,a,o,s,l){var u=this._endLabel,f=this._polyline;if(u){t<1&&a.originalX==null&&(a.originalX=u.x,a.originalY=u.y);var c=i.getLayout("points"),h=i.hostModel,v=h.get("connectNulls"),d=s.get("precision"),p=s.get("distance")||0,g=l.getBaseAxis(),m=g.isHorizontal(),y=g.inverse,_=n.shape,S=y?m?_.x:_.y+_.height:m?_.x+_.width:_.y,b=(m?p:0)*(y?-1:1),w=(m?0:-p)*(y?-1:1),x=m?"x":"y",T=pO(c,S,x),C=T.range,D=C[1]-C[0],M=void 0;if(D>=1){if(D>1&&!v){var L=ay(c,C[0]);u.attr({x:L[0]+b,y:L[1]+w}),o&&(M=h.getRawValue(C[0]))}else{var L=f.getPointOn(S,x);L&&u.attr({x:L[0]+b,y:L[1]+w});var I=h.getRawValue(C[0]),P=h.getRawValue(C[1]);o&&(M=BM(i,d,I,P,T.t))}a.lastFrameIndex=C[0]}else{var R=t===1||a.lastFrameIndex>0?C[0]:0,L=ay(c,R);o&&(M=h.getRawValue(R)),u.attr({x:L[0]+b,y:L[1]+w})}if(o){var E=Yu(u);typeof E.setLabelText=="function"&&E.setLabelText(M)}}},e.prototype._doUpdateAnimation=function(t,n,i,a,o,s,l){var u=this._polyline,f=this._polygon,c=t.hostModel,h=iO(this._data,t,this._stackedOnPoints,n,this._coordSys,i,this._valueOrigin),v=h.current,d=h.stackedOnCurrent,p=h.next,g=h.stackedOnNext;if(o&&(d=jr(h.stackedOnCurrent,h.current,i,o,l),v=jr(h.current,null,i,o,l),g=jr(h.stackedOnNext,h.next,i,o,l),p=jr(h.next,null,i,o,l)),ny(v,p)>3e3||f&&ny(d,g)>3e3){u.stopAnimation(),u.setShape({points:p}),f&&(f.stopAnimation(),f.setShape({points:p,stackedOnPoints:g}));return}u.shape.__points=h.current,u.shape.points=v;var m={shape:{points:p}};h.current!==v&&(m.shape.__points=h.next),u.stopAnimation(),ot(u,m,c),f&&(f.setShape({points:v,stackedOnPoints:d}),f.stopAnimation(),ot(f,{shape:{stackedOnPoints:g}},c),u.shape.points!==f.shape.points&&(f.shape.points=u.shape.points));for(var y=[],_=h.status,S=0;S<_.length;S++){var b=_[S].cmd;if(b==="="){var w=t.getItemGraphicEl(_[S].idx1);w&&y.push({el:w,ptIdx:S})}}u.animators&&u.animators.length&&u.animators[0].during(function(){f&&f.dirtyShape();for(var x=u.shape.__points,T=0;Te&&(e=r[t]);return isFinite(e)?e:NaN},min:function(r){for(var e=1/0,t=0;t10&&o.type==="cartesian2d"&&a){var l=o.getBaseAxis(),u=o.getOtherAxis(l),f=l.getExtent(),c=n.getDevicePixelRatio(),h=Math.abs(f[1]-f[0])*(c||1),v=Math.round(s/h);if(isFinite(v)&&v>1){a==="lttb"?e.setData(i.lttbDownSample(i.mapDimension(u.dim),1/v)):a==="minmax"&&e.setData(i.minmaxDownSample(i.mapDimension(u.dim),1/v));var d=void 0;$(a)?d=_O[a]:re(a)&&(d=a),d&&e.setData(i.downSample(i.mapDimension(u.dim),1/v,d,SO))}}}}}function bO(r){r.registerChartView(mO),r.registerSeriesModel(QE),r.registerLayout(yO("line")),r.registerVisual({seriesType:"line",reset:function(e){var t=e.getData(),n=e.getModel("lineStyle").getLineStyle();n&&!n.stroke&&(n.stroke=t.getVisual("style").fill),t.setVisual("legendLineStyle",n)}}),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,Eb("line"))}var wO=function(r){F(e,r);function e(t,n,i,a,o){var s=r.call(this,t,n,i)||this;return s.index=0,s.type=a||"value",s.position=o||"bottom",s}return e.prototype.isHorizontal=function(){var t=this.position;return t==="top"||t==="bottom"},e.prototype.getGlobalExtent=function(t){var n=this.getExtent();return n[0]=this.toGlobalCoord(n[0]),n[1]=this.toGlobalCoord(n[1]),t&&n[0]>n[1]&&n.reverse(),n},e.prototype.pointToData=function(t,n){return this.coordToData(this.toLocalCoord(t[this.dim==="x"?0:1]),n)},e.prototype.setCategorySortInfo=function(t){if(this.type!=="category")return!1;this.model.option.categorySortInfo=t,this.scale.setSortInfo(t)},e}(Sb),xO=null;function TO(){return xO}var CO="expandAxisBreak",un=Math.PI,MO=[[1,2,1,2],[5,3,5,3],[8,3,8,3]],AO=[[0,1,0,1],[0,3,0,3],[0,3,0,3]],va=Se(),Ob=Se(),kb=function(){function r(e){this.recordMap={},this.resolveAxisNameOverlap=e}return r.prototype.ensureRecord=function(e){var t=e.axis.dim,n=e.componentIndex,i=this.recordMap,a=i[t]||(i[t]=[]);return a[n]||(a[n]={ready:{}})},r}();function DO(r,e,t,n){var i=t.axis,a=e.ensureRecord(t),o=[],s,l=Hd(r.axisName)&&ha(r.nameLocation);A(n,function(d){var p=_n(d);if(!(!p||p.label.ignore)){o.push(p);var g=a.transGroup;l&&(g.transform?_i(Na,g.transform):yi(Na),p.transform&&ni(Na,Na,p.transform),te.copy(Hs,p.localRect),Hs.applyTransform(Na),s?s.union(Hs):te.copy(s=new te(0,0,0,0),Hs))}});var u=Math.abs(a.dirVec.x)>.1?"x":"y",f=a.transGroup[u];if(o.sort(function(d,p){return Math.abs(d.label[u]-f)-Math.abs(p.label[u]-f)}),l&&s){var c=i.getExtent(),h=Math.min(c[0],c[1]),v=Math.max(c[0],c[1])-h;s.union(new te(h,0,v,1))}a.stOccupiedRect=s,a.labelInfoList=o}var Na=Ut(),Hs=new te(0,0,0,0),Bb=function(r,e,t,n,i,a){if(ha(r.nameLocation)){var o=a.stOccupiedRect;o&&Nb($E({},o,a.transGroup.transform),n,i)}else Fb(a.labelInfoList,a.dirVec,n,i)};function Nb(r,e,t){var n=new ie;Nd(r,e,n,{direction:Math.atan2(t.y,t.x),bidirectional:!1,touchThreshold:.05})&&XE(e,n)}function Fb(r,e,t,n){for(var i=ie.dot(n,e)>=0,a=0,o=r.length;a0?"top":"bottom",a="center"):yo(i-un)?(o=n>0?"bottom":"top",a="center"):(o="middle",i>0&&i0?"right":"left":a=n>0?"left":"right"),{rotation:i,textAlign:a,textVerticalAlign:o}},r.makeAxisEventDataBase=function(e){var t={componentType:e.mainType,componentIndex:e.componentIndex};return t[e.mainType+"Index"]=e.componentIndex,t},r.isLabelSilent=function(e){var t=e.get("tooltip");return e.get("silent")||!(e.get("triggerEvent")||t&&t.show)},r}(),IO=["axisLine","axisTickLabelEstimate","axisTickLabelDetermine","axisName"],LO={axisLine:function(r,e,t,n,i,a,o){var s=n.get(["axisLine","show"]);if(s==="auto"&&(s=!0,r.raw.axisLineAutoShow!=null&&(s=!!r.raw.axisLineAutoShow)),!!s){var l=n.axis.getExtent(),u=a.transform,f=[l[0],0],c=[l[1],0],h=f[0]>c[0];u&&(dt(f,f,u),dt(c,c,u));var v=k({lineCap:"round"},n.getModel(["axisLine","lineStyle"]).getLineStyle()),d={strokeContainThreshold:r.raw.strokeContainThreshold||5,silent:!0,z2:1,style:v};if(n.get(["axisLine","breakLine"])&&Zl(n.axis.scale))TO().buildAxisBreakLine(n,i,a,d);else{var p=new zr(k({shape:{x1:f[0],y1:f[1],x2:c[0],y2:c[1]}},d));To(p.shape,p.style.lineWidth),p.anid="line",i.add(p)}var g=n.get(["axisLine","symbol"]);if(g!=null){var m=n.get(["axisLine","symbolSize"]);$(g)&&(g=[g,g]),($(m)||xe(m))&&(m=[m,m]);var y=sS(n.get(["axisLine","symbolOffset"])||0,m),_=m[0],S=m[1];A([{rotate:r.rotation+Math.PI/2,offset:y[0],r:0},{rotate:r.rotation-Math.PI/2,offset:y[1],r:Math.sqrt((f[0]-c[0])*(f[0]-c[0])+(f[1]-c[1])*(f[1]-c[1]))}],function(b,w){if(g[w]!=="none"&&g[w]!=null){var x=Gr(g[w],-_/2,-S/2,_,S,v.stroke,!0),T=b.r+b.offset,C=h?c:f;x.attr({rotation:b.rotate,x:C[0]+T*Math.cos(r.rotation),y:C[1]-T*Math.sin(r.rotation),silent:!0,z2:11}),i.add(x)}})}}},axisTickLabelEstimate:function(r,e,t,n,i,a,o,s){var l=sy(e,i,s);l&&oy(r,e,t,n,i,a,o,rr.estimate)},axisTickLabelDetermine:function(r,e,t,n,i,a,o,s){var l=sy(e,i,s);l&&oy(r,e,t,n,i,a,o,rr.determine);var u=OO(r,i,a,n);EO(r,e.labelLayoutList,u),kO(r,i,a,n,r.tickDirection)},axisName:function(r,e,t,n,i,a,o,s){var l=t.ensureRecord(n);e.nameEl&&(i.remove(e.nameEl),e.nameEl=l.nameLayout=l.nameLocation=null);var u=r.axisName;if(Hd(u)){var f=r.nameLocation,c=r.nameDirection,h=n.getModel("nameTextStyle"),v=n.get("nameGap")||0,d=n.axis.getExtent(),p=n.axis.inverse?-1:1,g=new ie(0,0),m=new ie(0,0);f==="start"?(g.x=d[0]-p*v,m.x=-p):f==="end"?(g.x=d[1]+p*v,m.x=p):(g.x=(d[0]+d[1])/2,g.y=r.labelOffset+c*v,m.y=c);var y=Ut();m.transform(Tu(y,y,r.rotation));var _=n.get("nameRotate");_!=null&&(_=_*un/180);var S,b;ha(f)?S=pn.innerTextLayout(r.rotation,_??r.rotation,c):(S=PO(r.rotation,f,_||0,d),b=r.raw.axisNameAvailableWidth,b!=null&&(b=Math.abs(b/Math.sin(S.rotation)),!isFinite(b)&&(b=null)));var w=h.getFont(),x=n.get("nameTruncate",!0)||{},T=x.ellipsis,C=vo(r.raw.nameTruncateMaxWidth,x.maxWidth,b),D=s.nameMarginLevel||0,M=new Ue({x:g.x,y:g.y,rotation:S.rotation,silent:pn.isLabelSilent(n),style:Cr(h,{text:u,font:w,overflow:"truncate",width:C,ellipsis:T,fill:h.getTextColor()||n.get(["axisLine","lineStyle","color"]),align:h.get("align")||S.textAlign,verticalAlign:h.get("verticalAlign")||S.textVerticalAlign}),z2:1});if(Vu({el:M,componentModel:n,itemName:u}),M.__fullText=u,M.anid="name",n.get("triggerEvent")){var L=pn.makeAxisEventDataBase(n);L.targetType="axisName",L.name=u,he(M).eventData=L}a.add(M),M.updateTransform(),e.nameEl=M;var I=l.nameLayout=_n({label:M,priority:M.z2,defaultAttr:{ignore:M.ignore},marginDefault:ha(f)?MO[D]:AO[D]});if(l.nameLocation=f,i.add(M),M.decomposeTransform(),r.shouldNameMoveOverlap&&I){var P=t.ensureRecord(n);t.resolveAxisNameOverlap(r,t,n,I,m,P)}}}};function oy(r,e,t,n,i,a,o,s){Gb(e)||BO(r,e,i,s,n,o);var l=e.labelLayoutList;NO(r,n,l,a),r.rotation;var u=r.optionHideOverlap;RO(n,l,u),u&&qE(We(l,function(f){return f&&!f.label.ignore})),DO(r,t,n,l)}function PO(r,e,t,n){var i=Tv(t-r),a,o,s=n[0]>n[1],l=e==="start"&&!s||e!=="start"&&s;return yo(i-un/2)?(o=l?"bottom":"top",a="center"):yo(i-un*1.5)?(o=l?"top":"bottom",a="center"):(o="middle",iun/2?a=l?"left":"right":a=l?"right":"left"),{rotation:i,textAlign:a,textVerticalAlign:o}}function RO(r,e,t){var n=r.axis,i=r.get(["axisLabel","customValues"]);if(IR(n))return;function a(u,f,c){var h=_n(e[f]),v=_n(e[c]),d=n.scale;if(!(!h||!v)){if(u==null){if(!t&&i)return;var p=va(h.label).labelInfo.tick;if(Jo(d)&&p.notNice||It(d)&&p.offInterval){Vi(h.label);return}}if(u===!1||h.suggestIgnore){Vi(h.label);return}if(v.suggestIgnore){Vi(v.label);return}var g=.1;if(!t){var m=[0,0,0,0];h=Km({marginForce:m},h),v=Km({marginForce:m},v)}Nd(h,v,null,{touchThreshold:g})&&Vi(u?v.label:h.label)}}var o=r.get(["axisLabel","showMinLabel"]),s=r.get(["axisLabel","showMaxLabel"]),l=e.length;a(o,0,1),a(s,l-1,l-2)}function EO(r,e,t){r.showMinorTicks||A(e,function(n){if(n&&n.label.ignore)for(var i=0;i=0&&_(w,S,b.getStore())})}var v=0;if(h(function(_,S,b){n.set(S.uid,1),(!i||!i.hasKey(S.uid))&&(o=!0),v+=b.count()}),(!i||i.keys().length!==n.keys().length)&&(o=!0),!o&&a!=null){e.liPosMinGap=a;return}Gd($n,v);var d=0;h(function(_,S,b){for(var w=0,x=b.count();w0&&y0?eb:ER,t.serUids=n}var $n=Gd({ctor:rO},50);function $O(r){return function(e,t){var n=Sa(e,{fromStat:{key:r}});if(Yt(n.w2))return[-n.w2/2,n.w2/2]}}function of(r,e){return r+Xh+e}function XO(r){return WO(),{liPosMinGap:!It(r.scale)}}var ra="bar";function ZO(r,e,t,n){HR(r,{key:e,seriesType:t,coordSysType:n,getMetrics:XO})}function qO(r){var e=r.scale.rawExtentInfo.makeRenderInfo().startValue;return e}var Hb={left:0,right:0,top:0,bottom:0},gu=["25%","25%"],Nr="cartesian2d",KO=function(r){F(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.mergeDefaultAndTheme=function(t,n){var i=ma(t.outerBounds);r.prototype.mergeDefaultAndTheme.apply(this,arguments),i&&t.outerBounds&&yn(t.outerBounds,i)},e.prototype.mergeOption=function(t,n){r.prototype.mergeOption.apply(this,arguments),this.option.outerBounds&&t.outerBounds&&yn(this.option.outerBounds,t.outerBounds)},e.type="grid",e.dependencies=["xAxis","yAxis"],e.layoutMode="box",e.defaultOption={show:!1,z:0,left:"15%",top:65,right:"10%",bottom:80,containLabel:!1,outerBoundsMode:"auto",outerBounds:Hb,outerBoundsContain:"all",outerBoundsClampWidth:gu[0],outerBoundsClampHeight:gu[1],backgroundColor:U.color.transparent,borderWidth:1,borderColor:U.color.neutral30},e}(ye),QO=Iv(),jO="__ec_stack_";function Vb(r){return r.get("stack")||jO+r.seriesIndex}function JO(r,e){var t=ek(r,e);return t.columnMap=tk(t),t}function ek(r,e){var t=of(e,Nr),n=[],i=Sa(r,{fromStat:{key:t},min:1});return ib(r,t,function(a){n.push({barWidth:Me(a.get("barWidth"),i.w),barMaxWidth:Me(a.get("barMaxWidth"),i.w),barMinWidth:Me(a.get("barMinWidth")||(Ub(a)?.5:1),i.w),barGap:a.get("barGap"),barCategoryGap:a.get("barCategoryGap"),defaultBarGap:a.get("defaultBarGap"),stackId:Vb(a)})}),{bandWidthResult:i,seriesInfo:n}}function tk(r){var e=r.bandWidthResult.w,t=e,n=0,i,a,o=[],s={};A(r.seriesInfo,function(p,g){g||(a=p.defaultBarGap||0);var m=p.stackId;it(s,m)||n++;var y=s[m];y||(y=s[m]={width:0,maxWidth:0},o.push(m));var _=p.barWidth;_&&!y.width&&(y.width=_,_=Ke(t,_),t-=_);var S=p.barMaxWidth;S&&(y.maxWidth=S);var b=p.barMinWidth;b&&(y.minWidth=b);var w=p.barGap;w!=null&&(a=w);var x=p.barCategoryGap;x!=null&&(i=x)}),i==null&&(i=pe(35-o.length*4,15)+"%");var l=Me(i,e),u=Me(a,1),f=(t-l)/(n+(n-1)*u);f=pe(f,0),A(o,function(p){var g=s[p],m=g.maxWidth,y=g.minWidth;if(g.width){var _=g.width;m&&(_=Ke(_,m)),y&&(_=pe(_,y)),g.width=_,t-=_+u*_,n--}else{var _=f;m&&m<_&&(_=Ke(m,t)),y&&y>_&&(_=y),_!==f&&(g.width=_,t-=_+u*_,n--)}}),f=(t-l)/(n+(n-1)*u),f=pe(f,0);var c=0,h;A(o,function(p){var g=s[p];g.width||(g.width=f),h=g,c+=g.width*(1+u)}),h&&(c-=h.width*u);var v={},d=-c/2;return A(o,function(p){var g=s[p];v[p]=v[p]||{bandWidth:e,offset:d,width:g.width},d+=g.width*(1+u)}),v}function rk(r){return{seriesType:r,overallReset:function(e){var t=of(r,Nr);FR(e,t,function(n){var i=JO(n,r);ib(n,t,function(a){var o=i.columnMap[Vb(a)];a.getData().setLayout({bandWidth:o.bandWidth,offset:o.offset,size:o.width})})})}}}function nk(r){return{seriesType:r,plan:gd(),reset:function(e){if(GO(e)){var t=e.getData(),n=e.coordinateSystem,i=n.getBaseAxis(),a=n.getOtherAxis(i),o=t.getDimensionIndex(t.mapDimension(a.dim)),s=t.getDimensionIndex(t.mapDimension(i.dim)),l=e.get("showBackground",!0),u=t.mapDimension(a.dim),f=t.getCalculationInfo("stackResultDimension"),c=di(t,u)&&!!t.getCalculationInfo("stackedOnSeries"),h=a.isHorizontal(),v=a.toGlobalCoord(a.dataToCoord(qO(a))),d=Ub(e),p=e.get("barMinHeight")||0,g=f&&t.getDimensionIndex(f),m=t.getLayout("size"),y=t.getLayout("offset");return{progress:function(_,S){for(var b=_.count,w=d&&kr(b*3),x=d&&l&&kr(b*3),T=d&&kr(b),C=n.master.getRect(),D=h?C.width:C.height,M,L=S.getStore(),I=0;(M=_.next())!=null;){var P=L.get(c?g:o,M),R=L.get(s,M),E=v,N=void 0;c&&(N=+P-L.get(o,M));var O=void 0,B=void 0,G=void 0,H=void 0;if(h){var Y=n.dataToPoint([P,R]);c&&(E=n.dataToPoint([N,R])[0]),O=E,B=Y[1]+y,G=Y[0]-E,H=m,Ne(G)g){_=(w+y)/2;break}b===1&&(S=x-d[0].tickValue)}_==null&&(y?y&&(_=d[d.length-1].coord):_=d[0].coord),s[v]=h.toGlobalCoord(_)}});else{var l=this.getData(),u=l.getLayout("offset"),f=l.getLayout("size"),c=a.getBaseAxis().isHorizontal()?0:1;s[c]+=u+f/2}return s}return[NaN,NaN]},e.prototype.__requireStartValue=function(t){return this.getBaseAxis()!==t},e.type="series.__base_bar__",e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod",defaultBarGap:"10%"},e}(Tt);Tt.registerClass(Jh);var ok=function(r){F(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.getInitialData=function(){return rf(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},e.prototype.getProgressive=function(){return this.get("large")?this.get("progressive"):!1},e.prototype.__preparePipelineContext=function(t,n){var i=f_(this,t,n);return i.progressiveRender&&(i.large=!0),i},e.prototype.brushSelector=function(t,n,i){return i.rect(n.getItemLayout(t))},e.type="series."+ra,e.dependencies=["grid","polar"],e.defaultOption=Xu(Jh.defaultOption,{clip:!0,roundCap:!1,showBackground:!1,backgroundStyle:{color:"rgba(180, 180, 180, 0.2)",borderColor:null,borderWidth:0,borderType:"solid",borderRadius:0,shadowBlur:0,shadowColor:null,shadowOffsetX:0,shadowOffsetY:0,opacity:1},select:{itemStyle:{borderColor:U.color.primary,borderWidth:2}},realtimeSort:!1}),e}(Jh),sk=function(){function r(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return r}(),ly=function(r){F(e,r);function e(t){var n=r.call(this,t)||this;return n.type="sausage",n}return e.prototype.getDefaultShape=function(){return new sk},e.prototype.buildPath=function(t,n){var i=n.cx,a=n.cy,o=Math.max(n.r0||0,0),s=Math.max(n.r,0),l=(s-o)*.5,u=o+l,f=n.startAngle,c=n.endAngle,h=n.clockwise,v=Math.PI*2,d=h?c-fMath.PI/2&&fs)return!0;s=c}return!1},e.prototype._isOrderDifferentInView=function(t,n){for(var i=n.scale,a=i.getExtent(),o=Math.max(0,a[0]),s=Math.min(a[1],i.getOrdinalMeta().categories.length-1);o<=s;++o)if(t.ordinalNumbers[o]!==i.getRawOrdinalNumber(o))return!0},e.prototype._updateSortWithinSameData=function(t,n,i,a){if(this._isOrderChangedWithinSameData(t,n,i)){var o=this._dataSort(t,i,n);this._isOrderDifferentInView(o,i)&&(this._removeOnRenderedListener(a),a.dispatchAction({type:"changeAxisOrder",componentType:i.dim+"Axis",axisId:i.index,sortInfo:o}))}},e.prototype._dispatchInitSort=function(t,n,i){var a=n.baseAxis,o=this._dataSort(t,a,function(s){return t.get(t.mapDimension(n.otherAxis.dim),s)});i.dispatchAction({type:"changeAxisOrder",componentType:a.dim+"Axis",isInitSort:!0,axisId:a.index,sortInfo:o})},e.prototype.remove=function(t,n){this._clear(this._model),this._removeOnRenderedListener(n)},e.prototype.dispose=function(t,n){this._removeOnRenderedListener(n)},e.prototype._removeOnRenderedListener=function(t){this._onRendered&&(t.getZr().off("rendered",this._onRendered),this._onRendered=null)},e.prototype._clear=function(t){var n=this.group,i=this._data;t&&t.isAnimationEnabled()&&i&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],i.eachItemGraphicEl(function(a){ao(a,t,he(a).dataIndex)})):n.removeAll(),this._data=null,this._isFirstFrame=!0},e.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},e.type=ra,e}(gt),uy={cartesian2d:function(r,e){var t=e.width<0?-1:1,n=e.height<0?-1:1;t<0&&(e.x+=e.width,e.width=-e.width),n<0&&(e.y+=e.height,e.height=-e.height);var i=r.x+r.width,a=r.y+r.height,o=Mc(e.x,r.x),s=Ac(e.x+e.width,i),l=Mc(e.y,r.y),u=Ac(e.y+e.height,a),f=si?s:o,e.y=c&&l>a?u:l,e.width=f?0:s-o,e.height=c?0:u-l,t<0&&(e.x+=e.width,e.width=-e.width),n<0&&(e.y+=e.height,e.height=-e.height),f||c},polar:function(r,e){var t=e.r0<=e.r?1:-1;if(t<0){var n=e.r;e.r=e.r0,e.r0=n}var i=Ac(e.r,r.r),a=Mc(e.r0,r.r0);e.r=i,e.r0=a;var o=i-a<0;if(t<0){var n=e.r;e.r=e.r0,e.r0=n}return o}},fy={cartesian2d:function(r,e,t,n,i,a,o,s,l){var u=new Ae({shape:k({},n),z2:1});if(u.__dataIndex=t,u.name="item",a){var f=u.shape,c=i?"height":"width";f[c]=0}return u},polar:function(r,e,t,n,i,a,o,s,l){var u=!i&&l?ly:Wr,f=new u({shape:n,z2:1});f.name="item";var c=Wb(i);if(f.calculateTextPosition=lk(c,{isRoundCap:u===ly}),a){var h=f.shape,v=i?"r":"endAngle",d={};h[v]=i?n.r0:n.startAngle,d[v]=n[v],(s?ot:At)(f,{shape:d},a)}return f}};function ck(r,e){var t=r.get("realtimeSort",!0),n=e.getBaseAxis();if(t&&n.type==="category"&&e.type==="cartesian2d")return{baseAxis:n,otherAxis:e.getOtherAxis(n)}}function cy(r,e,t,n,i,a,o,s){var l,u;a?(u={x:n.x,width:n.width},l={y:n.y,height:n.height}):(u={y:n.y,height:n.height},l={x:n.x,width:n.width}),s||(o?ot:At)(t,{shape:l},e,i,null);var f=e?r.baseAxis.model:null;(o?ot:At)(t,{shape:u},f,i)}function hy(r,e){for(var t=0;t0?1:-1,o=n.height>0?1:-1;return{x:n.x+a*i/2,y:n.y+o*i/2,width:n.width-a*i,height:n.height-o*i}},polar:function(r,e,t){var n=r.getItemLayout(e);return{cx:n.cx,cy:n.cy,r0:n.r0,r:n.r,startAngle:n.startAngle,endAngle:n.endAngle,clockwise:n.clockwise}}};function dk(r){return r.startAngle!=null&&r.endAngle!=null&&r.startAngle===r.endAngle}function Wb(r){return function(e){var t=e?"Arc":"Angle";return function(n){switch(n){case"start":case"insideStart":case"end":case"insideEnd":return n+t;default:return n}}}(r)}function dy(r,e,t,n,i,a,o,s){var l=e.getItemVisual(t,"style");if(s){if(!a.get("roundCap")){var f=r.shape,c=Ja(n.getModel("itemStyle"),f,!0);k(f,c),r.setShape(f)}}else{var u=n.get(["itemStyle","borderRadius"])||0;r.setShape("r",u)}r.useStyle(l);var h=n.getShallow("cursor");h&&r.attr("cursor",h);var v=s?o?i.r>=i.r0?"endArc":"startArc":i.endAngle>=i.startAngle?"endAngle":"startAngle":o?_k(i,a.coordinateSystem):Sk(i,a.coordinateSystem),d=qo(n);Zo(r,d,{labelFetcher:a,labelDataIndex:t,defaultText:Fd(a.getData(),t),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:v});var p=r.getTextContent();if(s&&p){var g=n.get(["label","position"]);r.textConfig.inside=g==="middle"?!0:null,uk(r,g==="outside"?v:g,Wb(o),n.get(["label","rotate"]))}n2(p,d,a.getRawValue(t),function(y){return Cb(e,y)});var m=n.getModel(["emphasis"]);xo(r,m.get("focus"),m.get("blurScope"),m.get("disabled")),Wl(r,n),dk(i)&&(r.style.fill="none",r.style.stroke="none",A(r.states,function(y){y.style&&(y.style.fill=y.style.stroke="none")}))}function pk(r,e){var t=r.get(["itemStyle","borderColor"]);if(!t||t==="none")return 0;var n=r.get(["itemStyle","borderWidth"])||0,i=isNaN(e.width)?Number.MAX_VALUE:Math.abs(e.width),a=isNaN(e.height)?Number.MAX_VALUE:Math.abs(e.height);return Math.min(n,i,a)}var gk=function(){function r(){}return r}(),py=function(r){F(e,r);function e(t){var n=r.call(this,t)||this;return n.type="largeBar",n}return e.prototype.getDefaultShape=function(){return new gk},e.prototype.buildPath=function(t,n){for(var i=n.points,a=this.baseDimIdx,o=1-this.baseDimIdx,s=[],l=[],u=this.barWidth,f=0;f=0?t:null},30,!1);function mk(r,e,t){for(var n=r.baseDimIdx,i=1-n,a=r.shape.points,o=r.largeDataIndices,s=[],l=[],u=r.barWidth,f=0,c=a.length/3;f=s[0]&&e<=s[0]+l[0]&&t>=s[1]&&t<=s[1]+l[1])return o[f]}return-1}function Yb(r,e,t){if(Pb(t,"cartesian2d")){var n=e,i=t.getArea();return{x:r?n.x:i.x,y:r?i.y:n.y,width:r?n.width:i.width,height:r?i.height:n.height}}else{var i=t.getArea(),a=e;return{cx:i.cx,cy:i.cy,r0:r?i.r0:a.r0,r:r?i.r:a.r,startAngle:r?a.startAngle:0,endAngle:r?a.endAngle:Math.PI*2}}}function yk(r,e,t){var n=r.type==="polar"?Wr:Ae;return new n({shape:Yb(e,t,r),silent:!0,z2:0})}function _k(r,e){if(r.height===0){var t=e.getOtherAxis(e.getBaseAxis());return t.inverse?"bottom":"top"}return r.height>0?"bottom":"top"}function Sk(r,e){if(r.width===0){var t=e.getOtherAxis(e.getBaseAxis());return t.inverse?"left":"right"}return r.width>=0?"right":"left"}function bk(r){r.registerChartView(fk),r.registerSeriesModel(ok),r.registerLayout(r.PRIORITY.VISUAL.LAYOUT,rk(ra)),r.registerLayout(r.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,nk(ra)),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,Eb(ra)),r.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},function(e,t){var n=e.componentType||"series";t.eachComponent({mainType:n,query:e},function(i){e.sortInfo&&i.axis.setCategorySortInfo(e.sortInfo)})}),ak(r)}function wk(r){return{seriesType:r,reset:function(e,t){var n=t.findComponents({mainType:"legend"});if(!(!n||!n.length)){var i=e.getData();i.filterSelf(function(a){for(var o=i.getName(a),s=0;s=0},r.prototype.indexOfName=function(e){var t=this._getDataWithEncodedVisual();return t.indexOfName(e)},r.prototype.getItemVisual=function(e,t){var n=this._getDataWithEncodedVisual();return n.getItemVisual(e,t)},r}(),gn="pie",Ck=Se(),$b=function(r){F(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t){r.prototype.init.apply(this,arguments),this.legendVisualProvider=new Tk(ee(this.getData,this),ee(this.getRawData,this)),this._defaultLabelLine(t)},e.prototype.mergeOption=function(){r.prototype.mergeOption.apply(this,arguments)},e.prototype.getInitialData=function(){return xk(this,{coordDimensions:["value"],encodeDefaulter:Re(X2,this)})},e.prototype.getDataParams=function(t){var n=this.getData(),i=Ck(n),a=i.seats;if(!a){var o=[];n.each(n.mapDimension("value"),function(l){o.push(l)}),a=i.seats=e_(o,n.hostModel.get("percentPrecision"))}var s=r.prototype.getDataParams.call(this,t);return s.percent=a[t]||0,s.$vars.push("percent"),s},e.prototype._defaultLabelLine=function(t){gh(t,"labelLine",["show"]);var n=t.labelLine,i=t.emphasis.labelLine;n.show=n.show&&t.label.show,i.show=i.show&&t.emphasis.label.show},e.type="series."+gn,e.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",center:["50%","50%"],radius:[0,"50%"],clockwise:!0,startAngle:90,endAngle:"auto",padAngle:0,minAngle:0,minShowLabelAngle:0,selectedOffset:10,percentPrecision:2,stillShowZeroSum:!0,coordinateSystemUsage:"box",left:0,top:0,right:0,bottom:0,width:null,height:null,label:{rotate:0,show:!0,overflow:"truncate",position:"outer",alignTo:"none",edgeDistance:"25%",distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:30,smooth:!1,minTurnAngle:90,maxSurfaceAngle:90,lineStyle:{width:1,type:"solid"}},itemStyle:{borderWidth:1,borderJoin:"round"},showEmptyCircle:!0,emptyCircleStyle:{color:"lightgray",opacity:1},labelLayout:{hideOverlap:!0},emphasis:{scale:!0,scaleSize:5},avoidLabelOverlap:!0,animationType:"expansion",animationDuration:1e3,animationTypeUpdate:"transition",animationEasingUpdate:"cubicInOut",animationDurationUpdate:500,animationEasing:"cubicInOut"},e}(Tt);E2({fullType:$b.type,getCoord2:function(r){return r.getShallow("center")}});var Mk=Math.PI/180;function yy(r,e,t,n,i,a,o,s,l,u){if(r.length<2)return;function f(p){for(var g=p.rB,m=g*g,y=0;yt?m:g,b=Math.abs(_.label.y-t);if(b>=S.maxY){var w=_.label.x-e-_.len2*i,x=n+_.len,T=Math.abs(w)r.unconstrainedWidth?null:h:null;n.setStyle("width",v)}Zb(a,n)}}}function Zb(r,e){_y.rect=r,Tb(_y,e,Dk)}var Dk={minMarginForce:[null,0,null,0],marginDefault:[1,0,1,0]},_y={};function Dc(r){return r.position==="center"}function Ik(r){var e=r.getData(),t=[],n,i,a=!1,o=(r.get("minShowLabelAngle")||0)*Mk,s=e.getLayout("viewRect"),l=e.getLayout("r"),u=s.width,f=s.x,c=s.y,h=s.height;function v(w){w.ignore=!0}function d(w){if(!w.ignore)return!0;for(var x in w.states)if(w.states[x].ignore===!1)return!0;return!1}e.each(function(w){var x=e.getItemGraphicEl(w),T=x.shape,C=x.getTextContent(),D=x.getTextGuideLine(),M=e.getItemModel(w),L=M.getModel("label"),I=L.get("position")||M.get(["emphasis","label","position"]),P=L.get("distanceToLabelLine"),R=L.get("alignTo"),E=Me(L.get("edgeDistance"),u),N=L.get("bleedMargin");N==null&&(N=Math.min(u,h)>200?10:2);var O=M.getModel("labelLine"),B=O.get("length");B=Me(B,u);var G=O.get("length2");if(G=Me(G,u),Math.abs(T.endAngle-T.startAngle)0?"right":"left":Y>0?"left":"right"}var Yr=Math.PI,Ar=0,xn=L.get("rotate");if(xe(xn))Ar=xn*(Yr/180);else if(I==="center")Ar=0;else if(xn==="radial"||xn===!0){var xw=Y<0?-H+Yr:-H;Ar=xw}else if(xn==="tangential"||xn==="tangential-noflip"&&I!=="outside"&&I!=="outer"){var xi=Math.atan2(Y,X);xi<0&&(xi=Yr*2+xi);var Tw=X>0;Tw&&xn!=="tangential-noflip"&&(xi=Yr+xi),Ar=xi-Yr}if(a=!!Ar,C.x=W,C.y=ae,C.rotation=Ar,C.setStyle({verticalAlign:"middle"}),Ye){C.setStyle({align:He});var uf=C.states.select;uf&&(uf.x+=C.x,uf.y+=C.y)}else{var lf=new te(0,0,0,0);Zb(lf,C),t.push({label:C,labelLine:D,position:I,len:B,len2:G,minTurnAngle:O.get("minTurnAngle"),maxSurfaceAngle:O.get("maxSurfaceAngle"),surfaceNormal:new ie(Y,X),linePoints:le,textAlign:He,labelDistance:P,labelAlignTo:R,edgeDistance:E,bleedMargin:N,rect:lf,unconstrainedWidth:lf.width,labelStyleWidth:C.style.width})}x.setTextConfig({inside:Ye})}}),!a&&r.get("avoidLabelOverlap")&&Ak(t,n,i,l,u,h,f,c);for(var p=0;pO?(G=P+x*O/2,H=G):(G=P+C,H=B-C),n.setItemLayout(N,{angle:O,startAngle:G,endAngle:H,clockwise:_,cx:o,cy:s,r0:u,r:S?ke(E,w,[u,l]):l}),P=B}),L0){for(var f=o.getItemLayout(0),c=1;isNaN(f&&f.startAngle)&&c=a.r0}},e.type=gn,e}(gt);function Ok(r){return{seriesType:r,reset:function(e,t){var n=e.getData();n.filterSelf(function(i){var a=n.mapDimension("value"),o=n.get(a,i);return!(xe(o)&&!isNaN(o)&&o<0)})}}}function kk(r){r.registerChartView(Ek),r.registerSeriesModel($b),IL(gn,r.registerAction),r.registerLayout(Lk),r.registerProcessor(wk(gn)),r.registerProcessor(Ok(gn))}var ev=function(r){F(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",ct).models[0]},e.type="cartesian2dAxis",e}(ye);Xt(ev,JS);var Kb={show:!0,z:0,inverse:!1,name:"",nameLocation:"end",nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:"...",placeholder:"."},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisPointer:{},axisLine:{show:!0,onZero:"auto",onZeroAxisIndex:null,lineStyle:{color:U.color.axisLine,width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15],breakLine:!0},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,fontSize:12,color:U.color.axisLabel,textMargin:[0,3]},splitLine:{show:!0,showMinLine:!0,showMaxLine:!0,lineStyle:{color:U.color.axisSplitLine,width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:[U.color.backgroundTint,U.color.backgroundTransparent]}},breakArea:{show:!0,itemStyle:{color:U.color.neutral00,borderColor:U.color.border,borderWidth:1,borderType:[3,3],opacity:.6},zigzagAmplitude:4,zigzagMinSpan:4,zigzagMaxSpan:20,zigzagZ:100,expandOnClick:!0},breakLabelLayout:{moveOverlap:"auto"}},Bk=de({boundaryGap:!0,deduplication:null,jitter:0,jitterOverlap:!0,jitterMargin:2,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto",show:"auto"},axisLabel:{interval:"auto"}},Kb),Vd=de({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:U.color.axisMinorSplitLine,width:1}}},Kb),Nk=de({splitNumber:6,axisLabel:{rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},Vd),Fk=_e({logBase:10},Vd);const zk={category:Bk,value:Vd,time:Nk,log:Fk};function by(r,e,t,n){A(XS,function(i,a){var o=de(de({},zk[a],!0),n,!0),s=function(l){F(u,l);function u(){var f=l!==null&&l.apply(this,arguments)||this;return f.type=e+"Axis."+a,f}return u.prototype.mergeDefaultAndTheme=function(f,c){var h=Do(this),v=h?ma(f):{},d=c.getTheme();de(f,d.get(a+"Axis")),de(f,this.getDefaultOption()),f.type=wy(f),h&&yn(f,v,h)},u.prototype.optionUpdated=function(){var f=this.option;f.type==="category"&&(this.__ordinalMeta=Yh.createByAxisModel(this))},u.prototype.getCategories=function(f){var c=this.option;if(c.type==="category")return f?c.data:this.__ordinalMeta.categories},u.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},u.prototype.updateAxisBreaks=function(f){return{breaks:[]}},u.type=e+"Axis."+a,u.defaultOption=o,u}(t);r.registerComponentModel(s)}),r.registerSubTypeDefaulter(e+"Axis",wy)}function wy(r){return r.type||(r.data?"category":"value")}var Gk=function(){function r(e){this.type="cartesian",this._dimList=[],this._axes={},this.name=e||""}return r.prototype.getAxis=function(e){return this._axes[e]},r.prototype.getAxes=function(){return K(this._dimList,function(e){return this._axes[e]},this)},r.prototype.getAxesByScale=function(e){return e=e.toLowerCase(),We(this.getAxes(),function(t){return t.scale.type===e})},r.prototype.addAxis=function(e){var t=e.dim;this._axes[t]=e,this._dimList.push(t)},r}(),yl=["x","y"];function xy(r){return(r.type==="interval"||r.type==="time")&&!Zl(r)}var Hk=function(r){F(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=Nr,t.dimensions=yl,t}return e.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var t=this.getAxis("x").scale,n=this.getAxis("y").scale;if(!(!xy(t)||!xy(n))){var i=su(t,null),a=su(n,null),o=this.dataToPoint([i[0],a[0]]),s=this.dataToPoint([i[1],a[1]]),l=i[1]-i[0],u=a[1]-a[0];if(!(!l||!u)){var f=(s[0]-o[0])/l,c=(s[1]-o[1])/u,h=o[0]-i[0]*f,v=o[1]-a[0]*c,d=this._transform=[f,0,0,c,h,v];this._invTransform=_i([],d)}}},e.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},e.prototype.containPoint=function(t){var n=this.getAxis("x"),i=this.getAxis("y");return n.contain(n.toLocalCoord(t[0]))&&i.contain(i.toLocalCoord(t[1]))},e.prototype.containData=function(t){return this.getAxis("x").containData(t[0])&&this.getAxis("y").containData(t[1])},e.prototype.containZone=function(t,n){var i=this.dataToPoint(t),a=this.dataToPoint(n),o=this.getArea(),s=new te(i[0],i[1],a[0]-i[0],a[1]-i[1]);return o.intersect(s)},e.prototype.dataToPoint=function(t,n,i){i=i||[];var a=t[0],o=t[1];if(this._transform&&a!=null&&isFinite(a)&&o!=null&&isFinite(o))return dt(i,t,this._transform);var s=this.getAxis("x"),l=this.getAxis("y");return i[0]=s.toGlobalCoord(s.dataToCoord(a,n)),i[1]=l.toGlobalCoord(l.dataToCoord(o,n)),i},e.prototype.clampData=function(t,n){var i=this.getAxis("x").scale,a=this.getAxis("y").scale,o=i.getExtent(),s=a.getExtent(),l=i.parse(t[0]),u=a.parse(t[1]);return n=n||[],n[0]=Math.min(Math.max(Math.min(o[0],o[1]),l),Math.max(o[0],o[1])),n[1]=Math.min(Math.max(Math.min(s[0],s[1]),u),Math.max(s[0],s[1])),n},e.prototype.pointToData=function(t,n,i){if(i=i||[],this._invTransform)return dt(i,t,this._invTransform);var a=this.getAxis("x"),o=this.getAxis("y");return i[0]=a.coordToData(a.toLocalCoord(t[0]),n),i[1]=o.coordToData(o.toLocalCoord(t[1]),n),i},e.prototype.getOtherAxis=function(t){return this.getAxis(t.dim==="x"?"y":"x")},e.prototype.getArea=function(t){t=t||0;var n=this.getAxis("x").getGlobalExtent(),i=this.getAxis("y").getGlobalExtent(),a=Math.min(n[0],n[1])-t,o=Math.min(i[0],i[1])-t,s=Math.max(n[0],n[1])-a+t,l=Math.max(i[0],i[1])-o+t;return new te(a,o,s,l)},e}(Gk);function Vk(r,e){var t=r.scale,n=r.model,i=cb(t,n,n.ecModel,r,null),a=ca(t),o=ca(e)?e.intervalStub:e,s=a?t.intervalStub:t,l=t.base,u=o.getTicks(),f=o.getTicks({expandToNicedExtent:!0}),c=u.length-1,h,v,d;if(c===1)h=v=0,d=1;else if(c===2){var p=Ne(u[0].value-u[1].value),g=Ne(u[1].value-u[2].value);h=v=0,p===g?d=2:(d=1,p=x[1])return!0})):S[1]?(C=x[1],P(function(){if(O(),I=ce(L-D*d,M),R(),T<=x[0])return!0})):P(function(){I=ce(pa(x[0]/D)*D,M),L=ce(Tr(x[1]/D)*D,M);var Y=xr((L-I)/D);if(Y<=d){var X=d-Y,W=void 0,ae=i.incl0||a;if(ae&&x[0]===0)W=[0,X];else if(ae&&x[1]===0)W=[X,0];else{var le=Tr(X/2);W=X%2===0?[le,le]:T+C=x[1])return!0}})}QS(t,S,w,[T,C],b,{interval:D,intervalCount:d,intervalPrecision:M,niceExtent:[I,L]})}var Ty=[[3,1],[0,2]],Uk=function(){function r(e,t,n){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=yl,this._initCartesian(e,t,n),this.model=e}return r.prototype.getRect=function(){return this._rect},r.prototype.update=function(e,t){var n=this._axesMap;A(this._axesList,function(o){ub(o,UR);var s=o.scale;It(s)&&s.setSortInfo(o.model.get("categorySortInfo"))});function i(o){for(var s=Le(o),l=[],u=s.length-1;u>=0;u--){var f=o[+s[u]];f.__alignTo?l.push(f):zm(f)}A(l,function(c){Yk(c,c.__alignTo)?zm(c):Vk(c,c.__alignTo.scale)})}i(n.x),i(n.y);var a={};A(n.x,function(o){Cy(n,"y",o,a)}),A(n.y,function(o){Cy(n,"x",o,a)}),this.resize(this.model,t)},r.prototype.resize=function(e,t,n){var i=jo(e,t),a=this._rect=Mr(e.getBoxLayoutParams(),i.refContainer),o=this._axesMap,s=this._coordsList,l=e.get("containLabel");if(Qb(o,a),!n){var u=Xk(a,s,o,l,t),f=void 0;if(l)f=Iy(a.clone(),"axisLabel",null,a,o,u,i);else{var c=Zk(e,a,i),h=c.outerBoundsRect,v=c.parsedOuterBoundsContain,d=c.outerBoundsClamp;h&&(f=Iy(h,v,d,a,o,u,i))}jb(a,o,rr.determine,null,f,i),A(this._coordsList,function(p){p.calcAffineTransform()})}},r.prototype.getAxis=function(e,t){var n=this._axesMap[e];if(n!=null)return n[t||0]},r.prototype.getAxes=function(){return this._axesList.slice()},r.prototype.getCartesian=function(e,t){if(e!=null&&t!=null){var n="x"+e+"y"+t;return this._coordsMap[n]}j(e)&&(t=e.yAxisIndex,e=e.xAxisIndex);for(var i=0,a=this._coordsList;i=0;i--){var a=r[+e[i]];HS(a.scale)&&PR(a.model,a.type)==null&&(a.model.get("alignTicks")&&a.model.get("interval")==null?n.push(a):t=a)}t||(t=n.pop()),t&&A(n,function(o){o.__alignTo=t})}function Yk(r,e){return Zl(r.scale)||Zl(e.scale)||e.scale.getTicks().length<2}function $k(r,e){var t=r.getExtent(),n=t[0]+t[1];r.toGlobalCoord=r.dim==="x"?function(i){return i+e}:function(i){return n-i+e},r.toLocalCoord=r.dim==="x"?function(i){return i-e}:function(i){return n-i+e}}function Qb(r,e){A(r.x,function(t){return Dy(t,e.x,e.width)}),A(r.y,function(t){return Dy(t,e.y,e.height)})}function Dy(r,e,t){var n=[0,t],i=r.inverse?1:0;r.setExtent(n[i],n[1-i]),$k(r,e)}function Iy(r,e,t,n,i,a,o){jb(n,i,rr.estimate,e,!1,o);var s=[0,0,0,0];u(0),u(1),f(n,0,NaN),f(n,1,NaN);var l=y0(s,function(h){return h>0})==null;return $l(n,s,!0,!0,t),Qb(i,n),l;function u(h){A(i[tn[h]],function(v){if(Oo(v.model)){var d=a.ensureRecord(v.model),p=d.labelInfoList;if(p)for(var g=0;g0&&!ia(v)&&v>1e-4&&(h/=v),h}}function Xk(r,e,t,n,i){var a=new kb(qk);return A(t,function(o){return A(o,function(s){if(Oo(s.model)){var l=!n;s.axisBuilder=VO(r,e,s.model,i,a,l)}})}),a}function jb(r,e,t,n,i,a){var o=t===rr.determine;A(e,function(u){return A(u,function(f){Oo(f.model)&&(UO(f.axisBuilder,r,f.model),f.axisBuilder.build(o?{axisTickLabelDetermine:!0}:{axisTickLabelEstimate:!0},{noPxChange:i}))})});var s={x:0,y:0};l(0),l(1);function l(u){s[tn[1-u]]=r[ua[u]]<=a.refContainer[ua[u]]*.5?0:1-u===1?2:1}A(e,function(u,f){return A(u,function(c){Oo(c.model)&&((n==="all"||o)&&c.axisBuilder.build({axisName:!0},{nameMarginLevel:s[f]}),o&&c.axisBuilder.build({axisLine:!0}))})})}function Zk(r,e,t){var n,i=r.get("outerBoundsMode",!0);i==="same"?n=e.clone():(i==null||i==="auto")&&(n=Mr(r.get("outerBounds",!0)||Hb,t.refContainer));var a=r.get("outerBoundsContain",!0),o;a==null||a==="auto"||ve(["all","axisLabel"],a)<0?o="all":o=a;var s=[dh(q(r.get("outerBoundsClampWidth",!0),gu[0]),e.width),dh(q(r.get("outerBoundsClampHeight",!0),gu[1]),e.height)];return{outerBoundsRect:n,parsedOuterBoundsContain:o,outerBoundsClamp:s}}var qk=function(r,e,t,n,i,a){var o=t.axis.dim==="x"?"y":"x";Bb(r,e,t,n,i,a),ha(r.nameLocation)||A(e.recordMap[o],function(s){s&&s.labelInfoList&&s.dirVec&&Fb(s.labelInfoList,s.dirVec,n,i)})};function Kk(r,e){var t={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return Qk(t,r,e),t.seriesInvolved&&Jk(t,r),t}function Qk(r,e,t){var n=e.getComponent("tooltip"),i=e.getComponent("axisPointer"),a=i.get("link",!0)||[],o=[];A(t.getCoordinateSystems(),function(s){if(!s.axisPointerEnabled)return;var l=ko(s.model),u=r.coordSysAxesInfo[l]={};r.coordSysMap[l]=s;var f=s.model,c=f.getModel("tooltip",n);if(A(s.getAxes(),Re(p,!1,null)),s.getTooltipAxes&&n&&c.get("show")){var h=c.get("trigger")==="axis",v=c.get(["axisPointer","type"])==="cross",d=s.getTooltipAxes(c.get(["axisPointer","axis"]));(h||v)&&A(d.baseAxes,Re(p,v?"cross":!0,h)),v&&A(d.otherAxes,Re(p,"cross",!1))}function p(g,m,y){var _=y.model.getModel("axisPointer",i),S=_.get("show");if(!(!S||S==="auto"&&!g&&!tv(_))){m==null&&(m=_.get("triggerTooltip")),_=g?jk(y,c,i,e,g,m):_;var b=_.get("snap"),w=_.get("triggerEmphasis"),x=ko(y.model),T=m||b||y.type==="category",C=r.axesInfo[x]={key:x,axis:y,coordSys:s,axisPointerModel:_,triggerTooltip:m,triggerEmphasis:w,involveSeries:T,snap:b,useHandle:tv(_),seriesModels:[],linkGroup:null};u[x]=C,r.seriesInvolved=r.seriesInvolved||T;var D=eB(a,y);if(D!=null){var M=o[D]||(o[D]={axesInfo:{}});M.axesInfo[x]=C,M.mapper=a[D].mapper,C.linkGroup=M}}}})}function jk(r,e,t,n,i,a){var o=e.getModel("axisPointer"),s=["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],l={};A(s,function(h){l[h]=se(o.get(h))}),l.snap=r.type!=="category"&&!!a,o.get("type")==="cross"&&(l.type="line");var u=l.label||(l.label={});if(u.show==null&&(u.show=!1),i==="cross"){var f=o.get(["label","show"]);if(u.show=f??!0,!a){var c=l.lineStyle=o.get("crossStyle");c&&_e(u,c.textStyle)}}return r.model.getModel("axisPointer",new Ie(l,t,n))}function Jk(r,e){e.eachSeries(function(t){var n=t.coordinateSystem,i=t.get(["tooltip","trigger"],!0),a=t.get(["tooltip","show"],!0);!n||!n.model||i==="none"||i===!1||i==="item"||a===!1||t.get(["axisPointer","show"],!0)===!1||A(r.coordSysAxesInfo[ko(n.model)],function(o){var s=o.axis;n.getAxis(s.dim)===s&&(o.seriesModels.push(t),o.seriesDataCount==null&&(o.seriesDataCount=0),o.seriesDataCount+=t.getData().count())})})}function eB(r,e){for(var t=e.model,n=e.dim,i=0;i=0||r===e}function tB(r){var e=Ud(r);if(e){var t=e.axisPointerModel,n=e.axis.scale,i=t.option,a=t.get("status"),o=t.get("value");o!=null&&(o=n.parse(o));var s=tv(t);a==null&&(i.status=s?"show":"hide");var l=n.getExtent();(o==null||o>l[1])&&(o=l[1]),o3?1.4:o>1?1.2:1.1,f=a>0?u:1/u;this._checkTriggerMoveZoom(this,"zoom","zoomOnMouseWheel",t,{scale:f,originX:s,originY:l,isAvailableBehavior:null})}if(i){var c=Math.abs(a),h=(a>0?1:-1)*(c>3?.4:c>1?.15:.05);this._checkTriggerMoveZoom(this,"scrollMove","moveOnMouseWheel",t,{scrollDelta:h,originX:s,originY:l,isAvailableBehavior:null})}}}},e.prototype._pinchHandler=function(t){if(!(Ry(this._zr,"globalPan")||Fa(t))){var n=t.pinchScale>1?1.1:1/1.1;this._checkTriggerMoveZoom(this,"zoom",null,t,{scale:n,originX:t.pinchX,originY:t.pinchY,isAvailableBehavior:null})}},e.prototype._checkTriggerMoveZoom=function(t,n,i,a,o){t._checkPointer(a,o.originX,o.originY)&&(aa(a.event),a.__ecRoamConsumed=!0,Ey(t,n,i,a,o))},e}(nr);function Fa(r){return r.__ecRoamConsumed}var dB=Se();function sf(r){var e=dB(r);return e.roam=e.roam||{},e.uniform=e.uniform||{},e}function za(r,e,t,n){for(var i=sf(r),a=i.roam,o=a[e]=a[e]||[],s=0;sa&&(e[1-n]=Zn(e[n],c.sign*a)),e}function Lc(r,e){var t=r[e]-r[1-e];return{span:Math.abs(t),sign:t>0?-1:t<0?1:e?-1:1}}function zi(r,e){return Math.min(e[1]!=null?e[1]:1/0,Math.max(e[0]!=null?e[0]:-1/0,r))}var Kn=Se(),Oy=se,Pc=ee,mB=function(){function r(){this._dragging=!1,this.animationThreshold=15}return r.prototype.render=function(e,t,n,i){var a=t.get("value"),o=t.get("status");if(this._axisModel=e,this._axisPointerModel=t,this._api=n,!(!i&&this._lastValue===a&&this._lastStatus===o)){this._lastValue=a,this._lastStatus=o;var s=this._group,l=this._handle;if(!o||o==="hide"){s&&s.hide(),l&&l.hide();return}s&&s.show(),l&&l.show();var u={};this.makeElOption(u,a,e,t,n);var f=u.graphicKey;f!==this._lastGraphicKey&&this.clear(n),this._lastGraphicKey=f;var c=this._moveAnimation=this.determineAnimation(e,t);if(!s)s=this._group=new Ge,this.createPointerEl(s,u,e,t),this.createLabelEl(s,u,e,t),n.getZr().add(s);else{var h=Re(ky,t,c);this.updatePointerEl(s,u,h),this.updateLabelEl(s,u,h,t)}Ny(s,t,!0),this._renderHandle(a)}},r.prototype.remove=function(e){this.clear(e)},r.prototype.dispose=function(e){this.clear(e)},r.prototype.determineAnimation=function(e,t){var n=t.get("animation"),i=e.axis,a=i.type==="category",o=t.get("snap");if(!o&&!a)return!1;if(n==="auto"||n==null){var s=this.animationThreshold;if(a&&Sa(i).w>s)return!0;if(o){var l=Ud(e).seriesDataCount,u=i.getExtent();return Math.abs(u[0]-u[1])/l>s}return!1}return n===!0},r.prototype.makeElOption=function(e,t,n,i,a){},r.prototype.createPointerEl=function(e,t,n,i){var a=t.pointer;if(a){var o=Kn(e).pointerEl=new jD[a.type](Oy(t.pointer));e.add(o)}},r.prototype.createLabelEl=function(e,t,n,i){if(t.label){var a=Kn(e).labelEl=new Ue(Oy(t.label));e.add(a),By(a,i)}},r.prototype.updatePointerEl=function(e,t,n){var i=Kn(e).pointerEl;i&&t.pointer&&(i.setStyle(t.pointer.style),n(i,{shape:t.pointer.shape}))},r.prototype.updateLabelEl=function(e,t,n,i){var a=Kn(e).labelEl;a&&(a.setStyle(t.label.style),n(a,{x:t.label.x,y:t.label.y}),By(a,i))},r.prototype._renderHandle=function(e){if(!(this._dragging||!this.updateHandleTransform)){var t=this._axisPointerModel,n=this._api.getZr(),i=this._handle,a=t.getModel("handle"),o=t.get("status");if(!a.get("show")||!o||o==="hide"){i&&n.remove(i),this._handle=null;return}var s;this._handle||(s=!0,i=this._handle=Hu(a.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(u){aa(u.event)},onmousedown:Pc(this._onHandleDragMove,this,0,0),drift:Pc(this._onHandleDragMove,this),ondragend:Pc(this._onHandleDragEnd,this)}),n.add(i)),Ny(i,t,!1),i.setStyle(a.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var l=a.get("size");V(l)||(l=[l,l]),i.scaleX=l[0]/2,i.scaleY=l[1]/2,ju(this,"_doDispatchAxisPointer",a.get("throttle")||0,"fixRate"),this._moveHandleToValue(e,s)}},r.prototype._moveHandleToValue=function(e,t){ky(this._axisPointerModel,!t&&this._moveAnimation,this._handle,Rc(this.getHandleTransform(e,this._axisModel,this._axisPointerModel)))},r.prototype._onHandleDragMove=function(e,t){var n=this._handle;if(n){this._dragging=!0;var i=this.updateHandleTransform(Rc(n),[e,t],this._axisModel,this._axisPointerModel);this._payloadInfo=i,n.stopAnimation(),n.attr(Rc(i)),Kn(n).lastProp=null,this._doDispatchAxisPointer()}},r.prototype._doDispatchAxisPointer=function(){var e=this._handle;if(e){var t=this._payloadInfo,n=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:t.cursorPoint[0],y:t.cursorPoint[1],tooltipOption:t.tooltipOption,axesInfo:[{axisDim:n.axis.dim,axisIndex:n.componentIndex}]})}},r.prototype._onHandleDragEnd=function(){this._dragging=!1;var e=this._handle;if(e){var t=this._axisPointerModel.get("value");this._moveHandleToValue(t),this._api.dispatchAction({type:"hideTip"})}},r.prototype.clear=function(e){this._lastValue=null,this._lastStatus=null;var t=e.getZr(),n=this._group,i=this._handle;t&&n&&(this._lastGraphicKey=null,n&&t.remove(n),i&&t.remove(i),this._group=null,this._handle=null,this._payloadInfo=null),Ql(this,"_doDispatchAxisPointer")},r.prototype.doClear=function(){},r.prototype.buildLabel=function(e,t,n){return n=n||0,{x:e[n],y:e[1-n],width:t[n],height:t[1-n]}},r}();function ky(r,e,t,n){rw(Kn(t).lastProp,n)||(Kn(t).lastProp=n,e?ot(t,n,r):(t.stopAnimation(),t.attr(n)))}function rw(r,e){if(j(r)&&j(e)){var t=!0;return A(e,function(n,i){t=t&&rw(r[i],n)}),!!t}else return r===e}function By(r,e){r[e.get(["label","show"])?"show":"hide"]()}function Rc(r){return{x:r.x||0,y:r.y||0,rotation:r.rotation||0}}function Ny(r,e,t){var n=e.get("z"),i=e.get("zlevel");r&&r.traverse(function(a){a.type!=="group"&&(n!=null&&(a.z=n),i!=null&&(a.zlevel=i),a.silent=t)})}function yB(r){var e=r.get("type"),t=r.getModel(e+"Style"),n;return e==="line"?(n=t.getLineStyle(),n.fill=null):e==="shadow"&&(n=t.getAreaStyle(),n.stroke=null),n}function _B(r,e,t,n,i){var a=t.get("value"),o=nw(a,e.axis,e.ecModel,t.get("seriesDataIndices"),{precision:t.get(["label","precision"]),formatter:t.get(["label","formatter"])}),s=t.getModel("label"),l=Qo(s.get("padding")||0),u=s.getFont(),f=Z0(o,u),c=i.position,h=f.width+l[1]+l[3],v=f.height+l[0]+l[2],d=i.align;d==="right"&&(c[0]-=h),d==="center"&&(c[0]-=h/2);var p=i.verticalAlign;p==="bottom"&&(c[1]-=v),p==="middle"&&(c[1]-=v/2),SB(c,h,v,n);var g=s.get("backgroundColor");(!g||g==="auto")&&(g=e.get(["axisLine","lineStyle","color"])),r.label={x:c[0],y:c[1],style:Cr(s,{text:o,font:u,fill:s.getTextColor(),padding:l,backgroundColor:g}),z2:10}}function SB(r,e,t,n){var i=n.getWidth(),a=n.getHeight();r[0]=Math.min(r[0]+e,i)-e,r[1]=Math.min(r[1]+t,a)-t,r[0]=Math.max(r[0],0),r[1]=Math.max(r[1],0)}function nw(r,e,t,n,i){r=e.scale.parse(r);var a=e.scale.getLabel({value:r},{precision:i.precision}),o=i.formatter;if(o){var s={value:uu(e,{value:r}),axisDimension:e.dim,axisIndex:e.index,seriesData:[]};A(n,function(l){var u=t.getSeriesByIndex(l.seriesIndex),f=l.dataIndexInside,c=u&&u.getDataParams(f);c&&s.seriesData.push(c)}),$(o)?a=o.replace("{value}",a):re(o)&&(a=o(s))}return a}function iw(r,e,t){var n=Ut();return Tu(n,n,t.rotation),Al(n,n,t.position),Co([r.dataToCoord(e),(t.labelOffset||0)+(t.labelDirection||1)*(t.labelMargin||0)],n)}function bB(r,e,t,n,i,a){var o=pn.innerTextLayout(t.rotation,0,t.labelDirection);t.labelMargin=i.get(["label","margin"]),_B(e,n,i,a,{position:iw(n.axis,r,t),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function wB(r,e,t){return t=t||0,{x1:r[t],y1:r[1-t],x2:e[t],y2:e[1-t]}}function xB(r,e,t){return t=t||0,{x:r[t],y:r[1-t],width:e[t],height:e[1-t]}}function TB(r,e,t){return Sa(r,{fromStat:{sers:K(e,function(n){return t.getSeriesByIndex(n.seriesIndex)})},min:1}).w}function CB(r,e,t){return[pe(Ke(e[0],e[1]),r-t/2),Ke(r+t/2,pe(e[0],e[1]))]}var MB=function(r){F(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.makeElOption=function(t,n,i,a,o){var s=i.axis,l=s.grid,u=a.get("type"),f=s.getGlobalExtent(),c=Fy(l,s).getOtherAxis(s).getGlobalExtent(),h=s.toGlobalCoord(s.dataToCoord(n,!0));if(u&&u!=="none"){var v=yB(a),d=AB[u](s,h,f,c,a.get("seriesDataIndices"),a.ecModel);d.style=v,t.graphicKey=d.type,t.pointer=d}var p=pu(l.getRect(),i);bB(n,t,p,i,a,o)},e.prototype.getHandleTransform=function(t,n,i){var a=pu(n.axis.grid.getRect(),n,{labelInside:!1});a.labelMargin=i.get(["handle","margin"]);var o=iw(n.axis,t,a);return{x:o[0],y:o[1],rotation:a.rotation+(a.labelDirection<0?Math.PI:0)}},e.prototype.updateHandleTransform=function(t,n,i,a){var o=i.axis,s=o.grid,l=o.getGlobalExtent(!0),u=Fy(s,o).getOtherAxis(o).getGlobalExtent(),f=o.dim==="x"?0:1,c=[t.x,t.y];c[f]+=n[f],c[f]=Ke(l[1],c[f]),c[f]=pe(l[0],c[f]);var h=(u[1]+u[0])/2,v=[h,h];v[f]=c[f];var d=[{verticalAlign:"middle"},{align:"center"}];return{x:c[0],y:c[1],rotation:t.rotation,cursorPoint:v,tooltipOption:d[f]}},e}(mB);function Fy(r,e){var t={};return t[e.dim+"AxisIndex"]=e.index,r.getCartesian(t)}var AB={line:function(r,e,t,n){var i=wB([e,n[0]],[e,n[1]],zy(r));return{type:"Line",subPixelOptimize:!0,shape:i}},shadow:function(r,e,t,n,i,a){var o=TB(r,i,a),s=n[1]-n[0],l=CB(e,t,o),u=l[0],f=l[1];return{type:"Rect",shape:xB([u,n[0]],[f-u,s],zy(r))}}};function zy(r){return r.dim==="x"?0:1}var DB=function(r){F(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="axisPointer",e.defaultOption={show:"auto",z:50,type:"line",snap:!1,triggerTooltip:!0,triggerEmphasis:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:U.color.border,width:1,type:"dashed"},shadowStyle:{color:U.color.shadowTint},label:{show:!0,formatter:null,precision:"auto",margin:3,color:U.color.neutral00,padding:[5,7,5,7],backgroundColor:U.color.accent60,borderColor:null,borderWidth:0,borderRadius:3},handle:{show:!1,icon:"M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z",size:45,margin:50,color:U.color.accent40,throttle:40}},e}(ye),Br=Se(),IB=A;function aw(r,e,t){if(!oe.node){var n=e.getZr();Br(n).records||(Br(n).records={}),LB(n,e);var i=Br(n).records[r]||(Br(n).records[r]={});i.handler=t}}function LB(r,e){if(Br(r).initialized)return;Br(r).initialized=!0,t("click",Re(Ec,"click")),t("mousemove",Re(Ec,"mousemove")),t("mousewheel",Re(Ec,"mousewheel")),t("globalout",RB);function t(n,i){r.on(n,function(a){var o=EB(e);IB(Br(r).records,function(s){s&&i(s,a,o.dispatchAction)}),PB(o.pendings,e)})}}function PB(r,e){var t=r.showTip.length,n=r.hideTip.length,i;t?i=r.showTip[t-1]:n&&(i=r.hideTip[n-1]),i&&(i.dispatchAction=null,e.dispatchAction(i))}function RB(r,e,t){r.handler("leave",null,t)}function Ec(r,e,t,n){e.handler(r,t,n)}function EB(r){var e={showTip:[],hideTip:[]},t=function(n){var i=e[n.type];i?i.push(n):(n.dispatchAction=t,r.dispatchAction(n))};return{dispatchAction:t,pendings:e}}function nv(r,e){if(!oe.node){var t=e.getZr(),n=(Br(t).records||{})[r];n&&(Br(t).records[r]=null)}}var OB=function(r){F(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,n,i){var a=n.getComponent("tooltip"),o=t.get("triggerOn")||a&&a.get("triggerOn")||"mousemove|click|mousewheel";aw("axisPointer",i,function(s,l,u){o!=="none"&&(s==="leave"||o.indexOf(s)>=0)&&u({type:"updateAxisPointer",currTrigger:s,x:l&&l.offsetX,y:l&&l.offsetY})})},e.prototype.remove=function(t,n){nv("axisPointer",n)},e.prototype.dispose=function(t,n){nv("axisPointer",n)},e.type="axisPointer",e}(_t);function ow(r,e){var t=[],n=r.seriesIndex,i;if(n==null||!(i=e.getSeriesByIndex(n)))return{point:[]};var a=i.getData(),o=ci(a,r);if(o==null||o<0||V(o))return{point:[]};var s=a.getItemGraphicEl(o),l=i.coordinateSystem;if(i.getTooltipPosition)t=i.getTooltipPosition(o)||[];else if(l&&l.dataToPoint)if(r.isStacked){var u=l.getBaseAxis(),f=l.getOtherAxis(u),c=f.dim,h=u.dim,v=c==="x"||c==="radius"?1:0,d=a.mapDimension(h),p=[];p[v]=a.get(d,o),p[1-v]=a.get(a.getCalculationInfo("stackResultDimension"),o),t=l.dataToPoint(p)||[]}else t=l.dataToPoint(a.getValues(K(l.dimensions,function(m){return a.mapDimension(m)}),o))||[];else if(s){var g=s.getBoundingRect().clone();g.applyTransform(s.transform),t=[g.x+g.width/2,g.y+g.height/2]}return{point:t,el:s}}var Gy=Se();function kB(r,e,t){var n=r.currTrigger,i=[r.x,r.y],a=r,o=r.dispatchAction||ee(t.dispatchAction,t),s=e.getComponent("axisPointer").coordSysAxesInfo;if(s){Sl(i)&&(i=ow({seriesIndex:a.seriesIndex,dataIndex:a.dataIndex},e).point);var l=Sl(i),u=a.axesInfo,f=s.axesInfo,c=n==="leave"||Sl(i),h={},v={},d={list:[],map:{}},p={showPointer:Re(NB,v),showTooltip:Re(FB,d)};A(s.coordSysMap,function(m,y){var _=l||m.containPoint(i);A(s.coordSysAxesInfo[y],function(S,b){var w=S.axis,x=VB(u,S);if(!c&&_&&(!u||x)){var T=x&&x.value;T==null&&!l&&(T=w.pointToData(i)),T!=null&&Hy(S,T,p,!1,h)}})});var g={};return A(f,function(m,y){var _=m.linkGroup;_&&!v[y]&&A(_.axesInfo,function(S,b){var w=v[b];if(S!==m&&w){var x=w.value;_.mapper&&(x=m.axis.scale.parse(_.mapper(x,Vy(S),Vy(m)))),g[m.key]=x}})}),A(g,function(m,y){Hy(f[y],m,p,!0,h)}),zB(v,f,h),GB(d,i,r,o),HB(f,o,t),h}}function Hy(r,e,t,n,i){var a=r.axis;if(!(a.scale.isBlank()||!a.containData(e))){if(!r.involveSeries){t.showPointer(r,e);return}var o=BB(e,r),s=o.payloadBatch,l=o.snapToValue;s[0]&&i.seriesIndex==null&&k(i,s[0]),!n&&r.snap&&a.containData(l)&&l!=null&&(e=l),t.showPointer(r,e,s),t.showTooltip(r,o,l)}}function BB(r,e){var t=e.axis,n=t.dim,i=r,a=[],o=Number.MAX_VALUE,s=-1;return A(e.seriesModels,function(l,u){var f=l.getData().mapDimensionsAll(n),c,h;if(l.getAxisTooltipData){var v=l.getAxisTooltipData(f,r,t);h=v.dataIndices,c=v.nestestValue}else{if(h=l.indicesOfNearest(n,f[0],r,t.type==="category"?.5:null),!h.length)return;c=l.getData().get(f[0],h[0])}if(Yt(c)){var d=r-c,p=Math.abs(d);p<=o&&((p=0&&s<0)&&(o=p,s=d,i=c,a.length=0),A(h,function(g){a.push({seriesIndex:l.seriesIndex,dataIndexInside:g,dataIndex:l.getData().getRawIndex(g)})}))}}),{payloadBatch:a,snapToValue:i}}function NB(r,e,t,n){r[e.key]={value:t,payloadBatch:n}}function FB(r,e,t,n){var i=t.payloadBatch,a=e.axis,o=a.model,s=e.axisPointerModel;if(!(!e.triggerTooltip||!i.length)){var l=e.coordSys.model,u=ko(l),f=r.map[u];f||(f=r.map[u]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},r.list.push(f)),f.dataByAxis.push({axisDim:a.dim,axisIndex:o.componentIndex,axisType:o.type,axisId:o.id,value:n,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:i.slice()})}}function zB(r,e,t){var n=t.axesInfo=[];A(e,function(i,a){var o=i.axisPointerModel.option,s=r[a];s?(!i.useHandle&&(o.status="show"),o.value=s.value,o.seriesDataIndices=(s.payloadBatch||[]).slice()):!i.useHandle&&(o.status="hide"),o.status==="show"&&n.push({axisDim:i.axis.dim,axisIndex:i.axis.model.componentIndex,value:o.value})})}function GB(r,e,t,n){if(Sl(e)||!r.list.length){n({type:"hideTip"});return}var i=((r.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};n({type:"showTip",escapeConnect:!0,x:e[0],y:e[1],tooltipOption:t.tooltipOption,position:t.position,dataIndexInside:i.dataIndexInside,dataIndex:i.dataIndex,seriesIndex:i.seriesIndex,dataByCoordSys:r.list})}function HB(r,e,t){var n=t.getZr(),i="axisPointerLastHighlights",a=Gy(n)[i]||{},o=Gy(n)[i]={};A(r,function(f,c){var h=f.axisPointerModel.option;h.status==="show"&&f.triggerEmphasis&&A(h.seriesDataIndices,function(v){o[v.seriesIndex+"|"+v.dataIndex]=v})});var s=[],l=[];function u(f){return{seriesIndex:f.seriesIndex,dataIndex:f.dataIndex}}A(a,function(f,c){!o[c]&&l.push(u(f))}),A(o,function(f,c){!a[c]&&s.push(u(f))}),l.length&&t.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:l}),s.length&&t.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:s})}function VB(r,e){for(var t=0;t<(r||[]).length;t++){var n=r[t];if(e.axis.dim===n.axisDim&&e.axis.model.componentIndex===n.axisIndex)return n}}function Vy(r){var e=r.axis.model,t={},n=t.axisDim=r.axis.dim;return t.axisIndex=t[n+"AxisIndex"]=e.componentIndex,t.axisName=t[n+"AxisName"]=e.name,t.axisId=t[n+"AxisId"]=e.id,t}function Sl(r){return!r||r[0]==null||isNaN(r[0])||r[1]==null||isNaN(r[1])}function sw(r){Jb.registerAxisPointerClass("CartesianAxisPointer",MB),r.registerComponentModel(DB),r.registerComponentView(OB),r.registerPreprocessor(function(e){if(e){(!e.axisPointer||e.axisPointer.length===0)&&(e.axisPointer={});var t=e.axisPointer.link;t&&!V(t)&&(e.axisPointer.link=[t])}}),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,{overallReset:function(e,t){e.getComponent("axisPointer").coordSysAxesInfo=Kk(e,t)}}),r.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},kB)}function UB(r){tr(uB),tr(sw)}var Uy=["x","y","radius","angle","single"],WB=Se(),YB=["cartesian2d","polar","singleAxis"];function $B(r){var e=r.get("coordinateSystem");return ve(YB,e)>=0}function fn(r){return r+"Axis"}function XB(r,e){var t=Z(),n=[],i=Z();r.eachComponent({mainType:"dataZoom",query:e},function(f){i.get(f.uid)||s(f)});var a;do a=!1,r.eachComponent("dataZoom",o);while(a);function o(f){!i.get(f.uid)&&l(f)&&(s(f),a=!0)}function s(f){i.set(f.uid,!0),n.push(f),u(f)}function l(f){var c=!1;return f.eachTargetAxis(function(h,v){var d=t.get(h);d&&d[v]&&(c=!0)}),c}function u(f){f.eachTargetAxis(function(c,h){(t.get(c)||t.set(c,[]))[h]=!0})}return n}function lw(r){var e=r.ecModel,t={infoList:[],infoMap:Z()};return r.eachTargetAxis(function(n,i){var a=e.getComponent(fn(n),i);if(a){var o=a.getCoordSysModel();if(o){var s=o.uid,l=t.infoMap.get(s);l||(l={model:o,axisModels:[]},t.infoList.push(l),t.infoMap.set(s,l)),l.axisModels.push(a)}}}),t}function uw(r){var e=WB(oS(r));return e.axisProxyMap||(e.axisProxyMap=Z())}function mu(r){if(r)return uw(r.ecModel).get(r.uid)}function ZB(r,e){uw(r.ecModel).set(r.uid,e)}function fw(r,e){var t=e.getAxisModel().axis.__alignTo;return t&&r.getAxisProxy(t.dim,t.model.componentIndex)?mu(t.model):null}var Oc=function(){function r(){this.indexList=[],this.indexMap=[]}return r.prototype.add=function(e){this.indexMap[e]||(this.indexList.push(e),this.indexMap[e]=!0)},r}(),yu=function(r){F(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t._autoThrottle=!0,t._noTarget=!0,t._rangePropMode=["percent","percent"],t}return e.prototype.init=function(t,n,i){var a=Wy(t);this.settledOption=a,this.mergeDefaultAndTheme(t,i),this._doInit(a)},e.prototype.mergeOption=function(t){var n=Wy(t);de(this.option,t,!0),de(this.settledOption,n,!0),this._doInit(n)},e.prototype._doInit=function(t){var n=this.option;this._setDefaultThrottle(t),this._updateRangeUse(t);var i=this.settledOption;A([["start","startValue"],["end","endValue"]],function(a,o){this._rangePropMode[o]==="value"&&(n[a[0]]=i[a[0]]=null)},this),this._resetTarget()},e.prototype._resetTarget=function(){var t=this.get("orient",!0),n=this._targetAxisInfoMap=Z(),i=this._fillSpecifiedTargetAxis(n);i?this._orient=t||this._makeAutoOrientByTargetAxis():(this._orient=t||"horizontal",this._fillAutoTargetAxisByOrient(n,this._orient)),this._noTarget=!0,n.each(function(a){a.indexList.length&&(this._noTarget=!1)},this)},e.prototype._fillSpecifiedTargetAxis=function(t){var n=!1;return A(Uy,function(i){var a=this.getReferringComponents(fn(i),RM);if(a.specified){n=!0;var o=new Oc;A(a.models,function(s){o.add(s.componentIndex)}),t.set(i,o)}},this),n},e.prototype._fillAutoTargetAxisByOrient=function(t,n){var i=this.ecModel,a=!0;if(a){var o=n==="vertical"?"y":"x",s=i.findComponents({mainType:o+"Axis"});l(s,o)}if(a){var s=i.findComponents({mainType:"singleAxis",filter:function(f){return f.get("orient",!0)===n}});l(s,"single")}function l(u,f){var c=u[0];if(c){var h=new Oc;if(h.add(c.componentIndex),t.set(f,h),a=!1,f==="x"||f==="y"){var v=c.getReferringComponents("grid",ct).models[0];v&&A(u,function(d){c.componentIndex!==d.componentIndex&&v===d.getReferringComponents("grid",ct).models[0]&&h.add(d.componentIndex)})}}}a&&A(Uy,function(u){if(a){var f=i.findComponents({mainType:fn(u),filter:function(h){return h.get("type",!0)==="category"}});if(f[0]){var c=new Oc;c.add(f[0].componentIndex),t.set(u,c),a=!1}}},this)},e.prototype._makeAutoOrientByTargetAxis=function(){var t;return this.eachTargetAxis(function(n){!t&&(t=n)},this),t==="y"?"vertical":"horizontal"},e.prototype._setDefaultThrottle=function(t){if(t.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle){var n=this.ecModel.option;this.option.throttle=n.animation&&n.animationDurationUpdate>0?100:20}},e.prototype._updateRangeUse=function(t){var n=this._rangePropMode,i=this.get("rangeMode");A([["start","startValue"],["end","endValue"]],function(a,o){var s=t[a[0]]!=null,l=t[a[1]]!=null;s&&!l?n[o]="percent":!s&&l?n[o]="value":i?n[o]=i[o]:s&&(n[o]="percent")})},e.prototype.noTarget=function(){return this._noTarget},e.prototype.getFirstTargetAxisModel=function(){var t;return this.eachTargetAxis(function(n,i){t==null&&(t=this.ecModel.getComponent(fn(n),i))},this),t},e.prototype.eachTargetAxis=function(t,n){this._targetAxisInfoMap.each(function(i,a){A(i.indexList,function(o){t.call(n,a,o)})})},e.prototype.getAxisProxy=function(t,n){return mu(this.getAxisModel(t,n))},e.prototype.getAxisModel=function(t,n){var i=this._targetAxisInfoMap.get(t);if(i&&i.indexMap[n])return this.ecModel.getComponent(fn(t),n)},e.prototype.setRawRange=function(t){var n=this.option,i=this.settledOption;A([["start","startValue"],["end","endValue"]],function(a){(t[a[0]]!=null||t[a[1]]!=null)&&(n[a[0]]=i[a[0]]=t[a[0]],n[a[1]]=i[a[1]]=t[a[1]])},this),this._updateRangeUse(t)},e.prototype.setCalculatedRange=function(t){var n=this.option;A(["start","startValue","end","endValue"],function(i){n[i]=t[i]})},e.prototype.getPercentRange=function(){var t=this.findRepresentativeAxisProxy();if(t)return t.getWindow().percent},e.prototype.getValueRange=function(t,n){if(t==null&&n==null){var i=this.findRepresentativeAxisProxy();if(i)return i.getWindow().value}else return this.getAxisProxy(t,n).getWindow().value},e.prototype.findRepresentativeAxisProxy=function(t){if(t)return mu(t);for(var n,i=this._targetAxisInfoMap.keys(),a=0;ao[1];if(_&&!S&&!b)return!0;_&&(g=!0),S&&(d=!0),b&&(p=!0)}return g&&d&&p})}else A(f,function(v){if(a==="empty")l.setData(u=u.map(v,function(p){return s(p)?p:NaN}));else{var d={};d[v]=o,u.selectRange(d)}});A(f,function(v){u.setApproximateExtent(o,v)})}});function s(l){return l>=o[0]&&l<=o[1]}},r.prototype._updateMinMaxSpan=function(){var e=this._minMaxSpan={},t=this._dataZoomModel,n=this._extent;A(["min","max"],function(i){var a=t.get(i+"Span"),o=t.get(i+"ValueSpan");o!=null&&(o=this.getAxisModel().axis.scale.parse(o)),o!=null?a=ke(n[0]+o,n,[0,100],!0):a!=null&&(o=ke(a,[0,100],n,!0)-n[0]),e[i+"Span"]=a,e[i+"ValueSpan"]=o},this)},r}(),KB={dirtyOnOverallProgress:!0,getTargetSeries:function(r){function e(i){r.eachComponent("dataZoom",function(a){a.eachTargetAxis(function(o,s){var l=r.getComponent(fn(o),s);i(o,s,l,a)})})}var t=[];e(function(i,a,o,s){if(!mu(o)){var l=new qB(i,a,s,r);t.push(l),ZB(o,l)}});var n=Z();return A(t,function(i){A(i.getTargetSeriesModels(),function(a){n.set(a.uid,a)})}),n},overallReset:function(r,e){r.eachComponent("dataZoom",function(t){var n=[];t.eachTargetAxis(function(i,a){var o=t.getAxisProxy(i,a),s=fw(t,o);s?n.push([o,s]):o.reset(t,null)}),A(n,function(i){i[0].reset(t,i[1].getWindow().percentInverted)}),t.eachTargetAxis(function(i,a){t.getAxisProxy(i,a).filterData(t,e)})}),r.eachComponent("dataZoom",function(t){var n=t.findRepresentativeAxisProxy();if(n){var i=n.getWindow(),a=i.percent,o=i.value;t.setCalculatedRange({start:a[0],end:a[1],startValue:o[0],endValue:o[1]})}})}};function QB(r){r.registerAction("dataZoom",function(e,t){var n=XB(t,e);A(n,function(i){i.setRawRange({start:e.start,end:e.end,startValue:e.startValue,endValue:e.endValue})})})}var jB=Iv();function hw(r){jB(r,function(){r.registerProcessor(r.PRIORITY.PROCESSOR.FILTER,KB),QB(r),r.registerSubTypeDefaulter("dataZoom",function(){return"slider"})})}function JB(r,e){var t=Qo(e.get("padding")),n=e.getItemStyle(["color","opacity"]);n.fill=e.get("backgroundColor");var i=new Ae({shape:{x:r.x-t[3],y:r.y-t[0],width:r.width+t[1]+t[3],height:r.height+t[0]+t[2],r:e.get("borderRadius")},style:n,silent:!0,z2:-1});return i}var eN=function(r){F(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="tooltip",e.dependencies=["axisPointer"],e.defaultOption={z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click|mousewheel",alwaysShowContent:!1,renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,displayTransition:!0,enterable:!1,backgroundColor:U.color.neutral00,shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,defaultBorderColor:U.color.border,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:U.color.borderShade,width:1,type:"dashed",textStyle:{}}},textStyle:{color:U.color.tertiary,fontSize:14}},e}(ye);function vw(r){var e=r.get("confine");return e!=null?!!e:r.get("renderMode")==="richText"}function dw(r){if(oe.domSupported){for(var e=document.documentElement.style,t=0,n=r.length;t-1?(s+="top:50%",l+="translateY(-50%) rotate("+(u=a==="left"?-225:-45)+"deg)"):(s+="left:50%",l+="translateX(-50%) rotate("+(u=a==="top"?225:45)+"deg)");var f=u*Math.PI/180,c=o+i,h=c*Math.abs(Math.cos(f))+c*Math.abs(Math.sin(f)),v=Math.round(((h-Math.SQRT2*i)/2+Math.SQRT2*i-(h-c)/2)*100)/100;s+=";"+a+":-"+v+"px";var d=e+" solid "+i+"px;",p=["position:absolute;width:"+o+"px;height:"+o+"px;z-index:-1;",s+";"+l+";","border-bottom:"+d,"border-right:"+d,"background-color:"+n+";"];return'
'}function sN(r,e,t){var n="cubic-bezier(0.23,1,0.32,1)",i="",a="";return t&&(i=" "+r/2+"s "+n,a="opacity"+i+",visibility"+i),e||(i=" "+r+"s "+n,a+=(a.length?",":"")+(oe.transformSupported?""+Wd+i:",left"+i+",top"+i)),nN+":"+a}function Yy(r,e,t){var n=r.toFixed(0)+"px",i=e.toFixed(0)+"px";if(!oe.transformSupported)return t?"top:"+i+";left:"+n+";":[["top",i],["left",n]];var a=oe.transform3dSupported,o="translate"+(a?"3d":"")+"("+n+","+i+(a?",0":"")+")";return t?"top:0;left:0;"+Wd+":"+o+";":[["top",0],["left",0],[pw,o]]}function lN(r){var e=[],t=r.get("fontSize"),n=r.getTextColor();n&&e.push("color:"+n),e.push("font:"+r.getFont());var i=q(r.get("lineHeight"),Math.round(t*3/2));t&&e.push("line-height:"+i+"px");var a=r.get("textShadowColor"),o=r.get("textShadowBlur")||0,s=r.get("textShadowOffsetX")||0,l=r.get("textShadowOffsetY")||0;return a&&o&&e.push("text-shadow:"+s+"px "+l+"px "+o+"px "+a),A(["decoration","align"],function(u){var f=r.get(u);f&&e.push("text-"+u+":"+f)}),e.join(";")}function uN(r,e,t,n){var i=[],a=r.get("transitionDuration"),o=r.get("backgroundColor"),s=r.get("shadowBlur"),l=r.get("shadowColor"),u=r.get("shadowOffsetX"),f=r.get("shadowOffsetY"),c=r.getModel("textStyle"),h=q1(r,"html"),v=u+"px "+f+"px "+s+"px "+l;return i.push("box-shadow:"+v),e&&a>0&&i.push(sN(a,t,n)),o&&i.push("background-color:"+o),A(["width","color","radius"],function(d){var p="border-"+d,g=sd(p),m=r.get(g);m!=null&&i.push(p+":"+m+(d==="color"?"":"px"))}),i.push(lN(c)),h!=null&&i.push("padding:"+Qo(h).join("px ")+"px"),i.join(";")+";"}function $y(r,e,t,n,i){var a=e&&e.painter;if(t){var o=a&&a.getViewportRoot();o&&NT(r,o,t,n,i)}else{r[0]=n,r[1]=i;var s=a&&a.getViewportRootOffset();s&&(r[0]+=s.offsetLeft,r[1]+=s.offsetTop)}r[2]=r[0]/e.getWidth(),r[3]=r[1]/e.getHeight()}var fN=function(){function r(e,t){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,oe.wxa)return null;var n=document.createElement("div");n.domBelongToZr=!0,this.el=n;var i=this._zr=e.getZr(),a=t.appendTo,o=a&&($(a)?document.querySelector(a):na(a)?a:re(a)&&a(e.getDom()));$y(this._styleCoord,i,o,e.getWidth()/2,e.getHeight()/2),(o||e.getDom()).appendChild(n),this._api=e,this._container=o;var s=this;n.onmouseenter=function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0},n.onmousemove=function(l){if(l=l||window.event,!s._enterable){var u=i.handler,f=i.painter.getViewportRoot();Et(f,l,!0),u.dispatch("mousemove",l)}},n.onmouseleave=function(){s._inContent=!1,s._enterable&&s._show&&s.hideLater(s._hideDelay)}}return r.prototype.update=function(e){if(!this._container){var t=this._api.getDom(),n=rN(t,"position"),i=t.style;i.position!=="absolute"&&n!=="absolute"&&(i.position="relative")}var a=e.get("alwaysShowContent");a&&this._moveIfResized(),this._alwaysShowContent=a,this._enableDisplayTransition=e.get("displayTransition")&&e.get("transitionDuration")>0,this.el.className=e.get("className")||""},r.prototype.show=function(e,t){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var n=this.el,i=n.style,a=this._styleCoord;n.innerHTML?i.cssText=iN+uN(e,!this._firstShow,this._longHide,this._enableDisplayTransition)+Yy(a[0],a[1],!0)+("border-color:"+vi(t)+";")+(e.get("extraCssText")||"")+(";pointer-events:"+(this._enterable?"auto":"none")):i.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},r.prototype.setContent=function(e,t,n,i,a){var o=this.el;if(e==null){o.innerHTML="";return}var s="";if($(a)&&n.get("trigger")==="item"&&!vw(n)&&(s=oN(n,i,a)),$(e))o.innerHTML=e+s;else if(e){o.innerHTML="",V(e)||(e=[e]);for(var l=0;l=0?this._tryShow(a,o):i==="leave"&&this._hide(o))},this))},e.prototype._keepShow=function(){var t=this._tooltipModel,n=this._ecModel,i=this._api,a=t.get("triggerOn");if(t.get("trigger")!=="axis"&&(this._lastDataByCoordSys=null,this._cbParamsList=null),this._lastX!=null&&this._lastY!=null&&a!=="none"&&a!=="click"){var o=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!i.isDisposed()&&o.manuallyShowTip(t,n,i,{x:o._lastX,y:o._lastY,dataByCoordSys:o._lastDataByCoordSys})})}},e.prototype.manuallyShowTip=function(t,n,i,a){if(!(a.from===this.uid||oe.node||!i.getDom())){var o=qy(a,i);this._ticket="";var s=a.dataByCoordSys,l=mN(a,n,i);if(l){var u=l.el.getBoundingRect().clone();u.applyTransform(l.el.transform),this._tryShow({offsetX:u.x+u.width/2,offsetY:u.y+u.height/2,target:l.el,position:a.position,positionDefault:"bottom"},o)}else if(a.tooltip&&a.x!=null&&a.y!=null){var f=hN;f.x=a.x,f.y=a.y,f.update(),he(f).tooltipConfig={name:null,option:a.tooltip},this._tryShow({offsetX:a.x,offsetY:a.y,target:f},o)}else if(s)this._tryShow({offsetX:a.x,offsetY:a.y,position:a.position,dataByCoordSys:s,tooltipOption:a.tooltipOption},o);else if(a.seriesIndex!=null){if(this._manuallyAxisShowTip(t,n,i,a))return;var c=ow(a,n),h=c.point[0],v=c.point[1];h!=null&&v!=null&&this._tryShow({offsetX:h,offsetY:v,target:c.el,position:a.position,positionDefault:"bottom"},o)}else a.x!=null&&a.y!=null&&(i.dispatchAction({type:"updateAxisPointer",x:a.x,y:a.y}),this._tryShow({offsetX:a.x,offsetY:a.y,position:a.position,target:i.getZr().findHover(a.x,a.y).target},o))}},e.prototype.manuallyHideTip=function(t,n,i,a){var o=this._tooltipContent;this._tooltipModel&&o.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,this._cbParamsList=null,a.from!==this.uid&&this._hide(qy(a,i))},e.prototype._manuallyAxisShowTip=function(t,n,i,a){var o=a.seriesIndex,s=a.dataIndex,l=n.getComponent("axisPointer").coordSysAxesInfo;if(!(o==null||s==null||l==null)){var u=n.getSeriesByIndex(o);if(u){var f=u.getData(),c=Ha([f.getItemModel(s),u,(u.coordinateSystem||{}).model],this._tooltipModel);if(c.get("trigger")==="axis")return i.dispatchAction({type:"updateAxisPointer",seriesIndex:o,dataIndex:s,position:a.position}),!0}}},e.prototype._tryShow=function(t,n){var i=t.target,a=this._tooltipModel;if(a){this._lastX=t.offsetX,this._lastY=t.offsetY;var o=t.dataByCoordSys;if(o&&o.length)this._showAxisTooltip(o,t);else if(i){var s=he(i);if(s.ssrType==="legend")return;this._lastDataByCoordSys=null,this._cbParamsList=null;var l,u;ja(i,function(f){if(f.tooltipDisabled)return l=u=null,!0;l||u||(he(f).dataIndex!=null?l=f:he(f).tooltipConfig!=null&&(u=f))},!0),l?this._showSeriesItemTooltip(t,l,n):u?this._showComponentItemTooltip(t,u,n):this._hide(n)}else this._lastDataByCoordSys=null,this._cbParamsList=null,this._hide(n)}},e.prototype._showOrMove=function(t,n){var i=t.get("showDelay");n=ee(n,this),clearTimeout(this._showTimout),i>0?this._showTimout=setTimeout(n,i):n()},e.prototype._showAxisTooltip=function(t,n){var i=this._ecModel,a=this._tooltipModel,o=[n.offsetX,n.offsetY],s=Ha([n.tooltipOption],a),l=this._renderMode,u=[],f=Lo("section",{blocks:[],noHeader:!0}),c=[],h=new uc;A(t,function(y){A(y.dataByAxis,function(_){var S=i.getComponent(_.axisDim+"Axis",_.axisIndex),b=_.value,w=S.axis,x=w.scale.parse(b);if(!(!S||b==null)){var T=nw(b,w,i,_.seriesDataIndices,_.valueLabelOpt),C=Lo("section",{header:T,noHeader:!Jt(T),sortBlocks:!0,blocks:[]});f.blocks.push(C),A(_.seriesDataIndices,function(D){var M=i.getSeriesByIndex(D.seriesIndex),L=D.dataIndexInside,I=M.getDataParams(L);if(!(I.dataIndex<0)){I.axisDim=_.axisDim,I.axisIndex=_.axisIndex,I.axisType=_.axisType,I.axisId=_.axisId,I.axisValue=uu(S.axis,{value:x}),I.axisValueLabel=T,I.marker=h.makeTooltipMarker("item",vi(I.color),l);var P=Ug(M.formatTooltip(L,!0,null)),R=P.frag;if(R){var E=Ha([M],a).get("valueFormatter");C.blocks.push(E?k({valueFormatter:E},R):R)}P.text&&c.push(P.text),u.push(I)}})}})}),f.blocks.reverse(),c.reverse();var v=n.position,d=s.get("order"),p=Zg(f,h,l,d,i.get("useUTC"),s.get("textStyle"));p&&c.unshift(p);var g=l==="richText"?` + +`:"
",m=c.join(g);this._showOrMove(s,function(){this._updateContentNotChangedOnAxis(t,u)?this._updatePosition(s,v,o[0],o[1],this._tooltipContent,u):this._showTooltipContent(s,m,u,Math.random()+"",o[0],o[1],v,null,h)})},e.prototype._showSeriesItemTooltip=function(t,n,i){var a=this._ecModel,o=he(n),s=o.seriesIndex,l=a.getSeriesByIndex(s),u=o.dataModel||l,f=o.dataIndex,c=o.dataType,h=u.getData(c),v=this._renderMode,d=t.positionDefault,p=Ha([h.getItemModel(f),u,l&&(l.coordinateSystem||{}).model],this._tooltipModel,d?{position:d}:null),g=p.get("trigger");if(!(g!=null&&g!=="item")){var m=u.getDataParams(f,c),y=new uc;m.marker=y.makeTooltipMarker("item",vi(m.color),v);var _=Ug(u.formatTooltip(f,!1,c)),S=p.get("order"),b=p.get("valueFormatter"),w=_.frag,x=w?Zg(b?k({valueFormatter:b},w):w,y,v,S,a.get("useUTC"),p.get("textStyle")):_.text,T="item_"+u.name+"_"+f;this._showOrMove(p,function(){this._showTooltipContent(p,x,m,T,t.offsetX,t.offsetY,t.position,t.target,y)}),i({type:"showTip",dataIndexInside:f,dataIndex:h.getRawIndex(f),seriesIndex:s,from:this.uid})}},e.prototype._showComponentItemTooltip=function(t,n,i){var a=this._renderMode==="html",o=he(n),s=o.tooltipConfig,l=s.option||{},u=l.encodeHTMLContent;if($(l)){var f=l;l={content:f,formatter:f},u=!0}u&&a&&l.content&&(l=se(l),l.content=ft(l.content));var c=[l],h=this._ecModel.getComponent(o.componentMainType,o.componentIndex);h&&c.push(h),c.push({formatter:l.content});var v=t.positionDefault,d=Ha(c,this._tooltipModel,v?{position:v}:null),p=d.get("content"),g=Math.random()+"",m=new uc;this._showOrMove(d,function(){var y=se(d.get("formatterParams")||{});this._showTooltipContent(d,p,y,g,t.offsetX,t.offsetY,t.position,n,m)}),i({type:"showTip",from:this.uid})},e.prototype._showTooltipContent=function(t,n,i,a,o,s,l,u,f){if(this._ticket="",!(!t.get("showContent")||!t.get("show"))){var c=this._tooltipContent;c.setEnterable(t.get("enterable"));var h=t.get("formatter");l=l||t.get("position");var v=n,d=this._getNearestPoint([o,s],i,t.get("trigger"),t.get("borderColor"),t.get("defaultBorderColor",!0)),p=d.color;if(h)if($(h)){var g=t.ecModel.get("useUTC"),m=V(i)?i[0]:i,y=m&&m.axisType&&m.axisType.indexOf("time")>=0;v=h,y&&(v=Ko(m.axisValue,v,g)),v=ld(v,i,!0)}else if(re(h)){var _=ee(function(S,b){S===this._ticket&&(c.setContent(b,f,t,p,l),this._updatePosition(t,l,o,s,c,i,u))},this);this._ticket=a,v=h(i,a,_)}else v=h;c.setContent(v,f,t,p,l),c.show(t,p),this._updatePosition(t,l,o,s,c,i,u)}},e.prototype._getNearestPoint=function(t,n,i,a,o){if(i==="axis"||V(n))return{color:a||o};if(!V(n))return{color:a||n.color||n.borderColor}},e.prototype._updatePosition=function(t,n,i,a,o,s,l){var u=this._api.getWidth(),f=this._api.getHeight();n=n||t.get("position");var c=o.getSize(),h=t.get("align"),v=t.get("verticalAlign"),d=l&&l.getBoundingRect().clone();if(l&&d.applyTransform(l.transform),re(n)&&(n=n([i,a],s,o.el,d,{viewSize:[u,f],contentSize:c.slice()})),V(n))i=Me(n[0],u),a=Me(n[1],f);else if(j(n)){var p=n;p.width=c[0],p.height=c[1];var g=Mr(p,{width:u,height:f});i=g.x,a=g.y,h=null,v=null}else if($(n)&&l){var m=gN(n,d,c,t.get("borderWidth"));i=m[0],a=m[1]}else{var m=dN(i,a,o,u,f,h?null:20,v?null:20);i=m[0],a=m[1]}if(h&&(i-=Ky(h)?c[0]/2:h==="right"?c[0]:0),v&&(a-=Ky(v)?c[1]/2:v==="bottom"?c[1]:0),vw(t)){var m=pN(i,a,o,u,f);i=m[0],a=m[1]}o.moveTo(i,a)},e.prototype._updateContentNotChangedOnAxis=function(t,n){var i=this._lastDataByCoordSys,a=this._cbParamsList,o=!!i&&i.length===t.length;return o&&A(i,function(s,l){var u=s.dataByAxis||[],f=t[l]||{},c=f.dataByAxis||[];o=o&&u.length===c.length,o&&A(u,function(h,v){var d=c[v]||{},p=h.seriesDataIndices||[],g=d.seriesDataIndices||[];o=o&&h.value===d.value&&h.axisType===d.axisType&&h.axisId===d.axisId&&p.length===g.length,o&&A(p,function(m,y){var _=g[y];o=o&&m.seriesIndex===_.seriesIndex&&m.dataIndex===_.dataIndex}),a&&A(h.seriesDataIndices,function(m){var y=m.seriesIndex,_=n[y],S=a[y];_&&S&&S.data!==_.data&&(o=!1)})})}),this._lastDataByCoordSys=t,this._cbParamsList=n,!!o},e.prototype._hide=function(t){this._lastDataByCoordSys=null,this._cbParamsList=null,t({type:"hideTip",from:this.uid})},e.prototype.dispose=function(t,n){oe.node||!n.getDom()||(Ql(this,"_updatePosition"),this._tooltipContent.dispose(),nv("itemTooltip",n),this._tooltipContent=null,this._tooltipModel=null,this._lastDataByCoordSys=null,this._cbParamsList=null)},e.type="tooltip",e}(_t);function Ha(r,e,t){var n=e.ecModel,i;t?(i=new Ie(t,n,n),i=new Ie(e.option,i,n)):i=e;for(var a=r.length-1;a>=0;a--){var o=r[a];o&&(o instanceof Ie&&(o=o.get("tooltip",!0)),$(o)&&(o={formatter:o}),o&&(i=new Ie(o,i,n)))}return i}function qy(r,e){return r.dispatchAction||ee(e.dispatchAction,e)}function dN(r,e,t,n,i,a,o){var s=t.getSize(),l=s[0],u=s[1];return a!=null&&(r+l+a+2>n?r-=l+a:r+=a),o!=null&&(e+u+o>i?e-=u+o:e+=o),[r,e]}function pN(r,e,t,n,i){var a=t.getSize(),o=a[0],s=a[1];return r=Math.min(r+o,n)-o,e=Math.min(e+s,i)-s,r=Math.max(r,0),e=Math.max(e,0),[r,e]}function gN(r,e,t,n){var i=t[0],a=t[1],o=Math.ceil(Math.SQRT2*n)+8,s=0,l=0,u=e.width,f=e.height;switch(r){case"inside":s=e.x+u/2-i/2,l=e.y+f/2-a/2;break;case"top":s=e.x+u/2-i/2,l=e.y-a-o;break;case"bottom":s=e.x+u/2-i/2,l=e.y+f+o;break;case"left":s=e.x-i-o,l=e.y+f/2-a/2;break;case"right":s=e.x+u+o,l=e.y+f/2-a/2}return[s,l]}function Ky(r){return r==="center"||r==="middle"}function mN(r,e,t){var n=Dv(r).queryOptionMap,i=n.keys()[0];if(!(!i||i==="series")){var a=Uo(e,i,n.get(i),{useDefault:!1,enableAll:!1,enableNone:!1}),o=a.models[0];if(o){var s=t.getViewOfComponentModel(o),l;if(s.group.traverse(function(u){var f=he(u).tooltipConfig;if(f&&f.name===r.name)return l=u,!0}),l)return{componentMainType:i,componentIndex:o.componentIndex,el:l}}}}function yN(r){tr(sw),r.registerComponentModel(eN),r.registerComponentView(vN),r.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},qe),r.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},qe)}var _N=function(r){F(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.layoutMode={type:"box",ignoreSize:!0},t}return e.type="title",e.defaultOption={z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:"center",top:U.size.m,backgroundColor:U.color.transparent,borderColor:U.color.primary,borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bold",color:U.color.primary},subtextStyle:{fontSize:12,color:U.color.quaternary}},e}(ye),SN=function(r){F(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,n,i){if(this.group.removeAll(),!!t.get("show")){var a=this.group,o=t.getModel("textStyle"),s=t.getModel("subtextStyle"),l=t.get("textAlign"),u=q(t.get("textBaseline"),t.get("textVerticalAlign")),f=new Ue({style:Cr(o,{text:t.get("text"),fill:o.getTextColor()},{disableBox:!0}),z2:10}),c=f.getBoundingRect(),h=t.get("subtext"),v=new Ue({style:Cr(s,{text:h,fill:s.getTextColor(),y:c.height+t.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),d=t.get("link"),p=t.get("sublink"),g=t.get("triggerEvent",!0);f.silent=!d&&!g,v.silent=!p&&!g,d&&f.on("click",function(){Tg(d,"_"+t.get("target"))}),p&&v.on("click",function(){Tg(p,"_"+t.get("subtarget"))}),he(f).eventData=he(v).eventData=g?{componentType:"title",componentIndex:t.componentIndex}:null,a.add(f),h&&a.add(v);var m=a.getBoundingRect(),y=t.getBoxLayoutParams();y.width=m.width,y.height=m.height;var _=jo(t,i),S=Mr(y,_.refContainer,t.get("padding"));l||(l=t.get("left")||t.get("right"),l==="middle"&&(l="center"),l==="right"?S.x+=S.width:l==="center"&&(S.x+=S.width/2)),u||(u=t.get("top")||t.get("bottom"),u==="center"&&(u="middle"),u==="bottom"?S.y+=S.height:u==="middle"&&(S.y+=S.height/2),u=u||"top"),a.x=S.x,a.y=S.y,a.markRedraw();var b={align:l,verticalAlign:u};f.setStyle(b),v.setStyle(b),m=a.getBoundingRect();var w=S.margin,x=t.getItemStyle(["color","opacity"]);x.fill=t.get("backgroundColor");var T=new Ae({shape:{x:m.x-w[3],y:m.y-w[0],width:m.width+w[1]+w[3],height:m.height+w[0]+w[2],r:t.get("borderRadius")},style:x,subPixelOptimize:!0,silent:!0});a.add(T)}},e.type="title",e}(_t);function bN(r){r.registerComponentModel(_N),r.registerComponentView(SN)}var wN=function(r,e){if(e==="all")return{type:"all",title:r.getLocaleModel().get(["legend","selector","all"])};if(e==="inverse")return{type:"inverse",title:r.getLocaleModel().get(["legend","selector","inverse"])}},iv=function(r){F(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.layoutMode={type:"box",ignoreSize:!0},t}return e.prototype.init=function(t,n,i){this.mergeDefaultAndTheme(t,i),t.selected=t.selected||{},this._updateSelector(t)},e.prototype.mergeOption=function(t,n){r.prototype.mergeOption.call(this,t,n),this._updateSelector(t)},e.prototype._updateSelector=function(t){var n=t.selector,i=this.ecModel;n===!0&&(n=t.selector=["all","inverse"]),V(n)&&A(n,function(a,o){$(a)&&(a={type:a}),n[o]=de(a,wN(i,a.type))})},e.prototype.optionUpdated=function(){this._updateData(this.ecModel);var t=this._data;if(t[0]&&this.get("selectedMode")==="single"){for(var n=!1,i=0;i=0},e.prototype.getOrient=function(){return this.get("orient")==="vertical"?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},e.type="legend.plain",e.dependencies=["series"],e.defaultOption={z:4,show:!0,orient:"horizontal",left:"center",bottom:U.size.m,align:"auto",backgroundColor:U.color.transparent,borderColor:U.color.border,borderRadius:0,borderWidth:0,padding:5,itemGap:8,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:U.color.disabled,inactiveBorderColor:U.color.disabled,inactiveBorderWidth:"auto",itemStyle:{color:"inherit",opacity:"inherit",borderColor:"inherit",borderWidth:"auto",borderCap:"inherit",borderJoin:"inherit",borderDashOffset:"inherit",borderMiterLimit:"inherit"},lineStyle:{width:"auto",color:"inherit",inactiveColor:U.color.disabled,inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},textStyle:{color:U.color.secondary},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:U.color.tertiary,borderWidth:1,borderColor:U.color.border},emphasis:{selectorLabel:{show:!0,color:U.color.quaternary}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1},triggerEvent:!1},e}(ye),Gi=Re,av=A,$s=Ge,mw=function(r){F(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.newlineDisabled=!1,t}return e.prototype.init=function(){this.group.add(this._contentGroup=new $s),this.group.add(this._selectorGroup=new $s),this._isFirstRender=!0},e.prototype.getContentGroup=function(){return this._contentGroup},e.prototype.getSelectorGroup=function(){return this._selectorGroup},e.prototype.render=function(t,n,i){var a=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),!!t.get("show",!0)){var o=t.get("align"),s=t.get("orient");(!o||o==="auto")&&(o=t.get("left")==="right"&&s==="vertical"?"right":"left");var l=t.get("selector",!0),u=t.get("selectorPosition",!0);l&&(!u||u==="auto")&&(u=s==="horizontal"?"end":"start"),this.renderInner(o,t,n,i,l,s,u);var f=jo(t,i).refContainer,c=t.getBoxLayoutParams(),h=t.get("padding"),v=Mr(c,f,h),d=this.layoutInner(t,o,v,a,l,u),p=Mr(_e({width:d.width,height:d.height},c),f,h);this.group.x=p.x-d.x,this.group.y=p.y-d.y,this.group.markRedraw(),this.group.add(this._backgroundEl=JB(d,t))}},e.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},e.prototype.renderInner=function(t,n,i,a,o,s,l){var u=this.getContentGroup(),f=Z(),c=n.get("selectedMode"),h=n.get("triggerEvent"),v=[];i.eachRawSeries(function(d){!d.get("legendHoverLink")&&v.push(d.id)}),av(n.getData(),function(d,p){var g=this,m=d.get("name");if(!this.newlineDisabled&&(m===""||m===` +`)){var y=new $s;y.newline=!0,u.add(y);return}var _=i.getSeriesByName(m)[0];if(!f.get(m))if(_){var S=_.getData(),b=S.getVisual("legendLineStyle")||{},w=S.getVisual("legendIcon"),x=S.getVisual("style"),T=this._createItem(_,m,p,d,n,t,b,x,w,c,a);T.on("click",Gi(Qy,m,null,a,v)).on("mouseover",Gi(ov,_.name,null,a,v)).on("mouseout",Gi(sv,_.name,null,a,v)),i.ssr&&T.eachChild(function(C){var D=he(C);D.seriesIndex=_.seriesIndex,D.dataIndex=p,D.ssrType="legend"}),h&&T.eachChild(function(C){g.packEventData(C,n,_,p,m)}),f.set(m,!0)}else i.eachRawSeries(function(C){var D=this;if(!f.get(m)&&C.legendVisualProvider){var M=C.legendVisualProvider;if(!M.containName(m))return;var L=M.indexOfName(m),I=M.getItemVisual(L,"style"),P=M.getItemVisual(L,"legendIcon"),R=Mt(I.fill);R&&R[3]===0&&(R[3]=.2,I=k(k({},I),{fill:Sn(R,"rgba")}));var E=this._createItem(C,m,p,d,n,t,{},I,P,c,a);E.on("click",Gi(Qy,null,m,a,v)).on("mouseover",Gi(ov,null,m,a,v)).on("mouseout",Gi(sv,null,m,a,v)),i.ssr&&E.eachChild(function(N){var O=he(N);O.seriesIndex=C.seriesIndex,O.dataIndex=p,O.ssrType="legend"}),h&&E.eachChild(function(N){D.packEventData(N,n,C,p,m)}),f.set(m,!0)}},this)},this),o&&this._createSelector(o,n,a,s,l)},e.prototype.packEventData=function(t,n,i,a,o){var s={componentType:"legend",componentIndex:n.componentIndex,dataIndex:a,value:o,seriesIndex:i.seriesIndex};he(t).eventData=s},e.prototype._createSelector=function(t,n,i,a,o){var s=this.getSelectorGroup();av(t,function(u){var f=u.type,c=new Ue({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){i.dispatchAction({type:f==="all"?"legendAllSelect":"legendInverseSelect",legendId:n.id})}});s.add(c);var h=n.getModel("selectorLabel"),v=n.getModel(["emphasis","selectorLabel"]);Zo(c,{normal:h,emphasis:v},{defaultText:u.title}),wo(c)})},e.prototype._createItem=function(t,n,i,a,o,s,l,u,f,c,h){var v=t.visualDrawType,d=o.get("itemWidth"),p=o.get("itemHeight"),g=o.isSelected(n),m=a.get("symbolRotate"),y=a.get("symbolKeepAspect"),_=a.get("icon");f=_||f||"roundRect";var S=xN(f,a,l,u,v,g,h),b=new $s,w=a.getModel("textStyle");if(re(t.getLegendIcon)&&(!_||_==="inherit"))b.add(t.getLegendIcon({itemWidth:d,itemHeight:p,icon:f,iconRotate:m,itemStyle:S.itemStyle,lineStyle:S.lineStyle,symbolKeepAspect:y}));else{var x=_==="inherit"&&t.getData().getVisual("symbol")?m==="inherit"?t.getData().getVisual("symbolRotate"):m:0;b.add(TN({itemWidth:d,itemHeight:p,icon:f,iconRotate:x,itemStyle:S.itemStyle,symbolKeepAspect:y}))}var T=s==="left"?d+5:-5,C=s,D=o.get("formatter"),M=n;$(D)&&D?M=D.replace("{name}",n??""):re(D)&&(M=D(n));var L=g?w.getTextColor():a.get("inactiveColor");b.add(new Ue({style:Cr(w,{text:M,x:T,y:p/2,fill:L,align:C,verticalAlign:"middle"},{inheritColor:L})}));var I=new Ae({shape:b.getBoundingRect(),style:{fill:"transparent"}}),P=a.getModel("tooltip");return P.get("show")&&Vu({el:I,componentModel:o,itemName:n,itemTooltipOption:P.option}),b.add(I),b.eachChild(function(R){R.silent=!0}),I.silent=!c,this.getContentGroup().add(b),wo(b),b.__legendDataIndex=i,b},e.prototype.layoutInner=function(t,n,i,a,o,s){var l=this.getContentGroup(),u=this.getSelectorGroup();lo(t.get("orient"),l,t.get("itemGap"),i.width,i.height);var f=l.getBoundingRect(),c=[-f.x,-f.y];if(u.markRedraw(),l.markRedraw(),o){lo("horizontal",u,t.get("selectorItemGap",!0));var h=u.getBoundingRect(),v=[-h.x,-h.y],d=t.get("selectorButtonGap",!0),p=t.getOrient().index,g=p===0?"width":"height",m=p===0?"height":"width",y=p===0?"y":"x";s==="end"?v[p]+=f[g]+d:c[p]+=h[g]+d,v[1-p]+=f[m]/2-h[m]/2,u.x=v[0],u.y=v[1],l.x=c[0],l.y=c[1];var _={x:0,y:0};return _[g]=f[g]+d+h[g],_[m]=Math.max(f[m],h[m]),_[y]=Math.min(0,h[y]+v[1-p]),_}else return l.x=c[0],l.y=c[1],this.group.getBoundingRect()},e.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},e.type="legend.plain",e}(_t);function xN(r,e,t,n,i,a,o){function s(g,m){g.lineWidth==="auto"&&(g.lineWidth=m.lineWidth>0?2:0),av(g,function(y,_){g[_]==="inherit"&&(g[_]=m[_])})}var l=e.getModel("itemStyle"),u=l.getItemStyle(),f=r.lastIndexOf("empty",0)===0?"fill":"stroke",c=l.getShallow("decal");u.decal=!c||c==="inherit"?n.decal:zh(c,o),u.fill==="inherit"&&(u.fill=n[i]),u.stroke==="inherit"&&(u.stroke=n[f]),u.opacity==="inherit"&&(u.opacity=(i==="fill"?n:t).opacity),s(u,n);var h=e.getModel("lineStyle"),v=h.getLineStyle();if(s(v,t),u.fill==="auto"&&(u.fill=n.fill),u.stroke==="auto"&&(u.stroke=n.fill),v.stroke==="auto"&&(v.stroke=n.fill),!a){var d=e.get("inactiveBorderWidth"),p=u[f];u.lineWidth=d==="auto"?n.lineWidth>0&&p?2:0:u.lineWidth,u.fill=e.get("inactiveColor"),u.stroke=e.get("inactiveBorderColor"),v.stroke=h.get("inactiveColor"),v.lineWidth=h.get("inactiveWidth")}return{itemStyle:u,lineStyle:v}}function TN(r){var e=r.icon||"roundRect",t=Gr(e,0,0,r.itemWidth,r.itemHeight,r.itemStyle.fill,r.symbolKeepAspect);return t.setStyle(r.itemStyle),t.rotation=(r.iconRotate||0)*Math.PI/180,t.setOrigin([r.itemWidth/2,r.itemHeight/2]),e.indexOf("empty")>-1&&(t.style.stroke=t.style.fill,t.style.fill=U.color.neutral00,t.style.lineWidth=2),t}function Qy(r,e,t,n){sv(r,e,t,n),t.dispatchAction({type:"legendToggleSelect",name:r??e}),ov(r,e,t,n)}function ov(r,e,t,n){t.usingTHL()||t.dispatchAction({type:"highlight",seriesName:r,name:e,excludeSeriesId:n})}function sv(r,e,t,n){t.usingTHL()||t.dispatchAction({type:"downplay",seriesName:r,name:e,excludeSeriesId:n})}function Va(r,e,t){var n=r==="allSelect"||r==="inverseSelect",i={},a=[];t.eachComponent({mainType:"legend",query:e},function(s){n?s[r]():s[r](e.name),jy(s,i),a.push(s.componentIndex)});var o={};return t.eachComponent("legend",function(s){A(i,function(l,u){s[l?"select":"unSelect"](u)}),jy(s,o)}),n?{selected:o,legendIndex:a}:{name:e.name,selected:o}}function jy(r,e){var t=e||{};return A(r.getData(),function(n){var i=n.get("name");if(!(i===` +`||i==="")){var a=r.isSelected(i);it(t,i)?t[i]=t[i]&&a:t[i]=a}}),t}function CN(r){r.registerAction("legendToggleSelect","legendselectchanged",Re(Va,"toggleSelected")),r.registerAction("legendAllSelect","legendselectall",Re(Va,"allSelect")),r.registerAction("legendInverseSelect","legendinverseselect",Re(Va,"inverseSelect")),r.registerAction("legendSelect","legendselected",Re(Va,"select")),r.registerAction("legendUnSelect","legendunselected",Re(Va,"unSelect"))}var MN=Pv(AN);function AN(r){var e=r.findComponents({mainType:"legend"});e&&e.length&&r.filterSeries(function(t){for(var n=0;ni[o],g=[-v.x,-v.y];n||(g[a]=f[u]);var m=[0,0],y=[-d.x,-d.y],_=q(t.get("pageButtonGap",!0),t.get("itemGap",!0));if(p){var S=t.get("pageButtonPosition",!0);S==="end"?y[a]+=i[o]-d[o]:m[a]+=d[o]+_}y[1-a]+=v[s]/2-d[s]/2,f.setPosition(g),c.setPosition(m),h.setPosition(y);var b={x:0,y:0};if(b[o]=p?i[o]:v[o],b[s]=Math.max(v[s],d[s]),b[l]=Math.min(0,d[l]+y[1-a]),c.__rectSize=i[o],p){var w={x:0,y:0};w[o]=Math.max(i[o]-d[o]-_,0),w[s]=b[s],c.setClipPath(new Ae({shape:w})),c.__rectSize=w[o]}else h.eachChild(function(T){T.attr({invisible:!0,silent:!0})});var x=this._getPageInfo(t);return x.pageIndex!=null&&ot(f,{x:x.contentPosition[0],y:x.contentPosition[1]},p?t:null),this._updatePageInfoView(t,x),b},e.prototype._pageGo=function(t,n,i){var a=this._getPageInfo(n)[t];a!=null&&i.dispatchAction({type:"legendScroll",scrollDataIndex:a,legendId:n.id})},e.prototype._updatePageInfoView=function(t,n){var i=this._controllerGroup;A(["pagePrev","pageNext"],function(f){var c=f+"DataIndex",h=n[c]!=null,v=i.childOfName(f);v&&(v.setStyle("fill",h?t.get("pageIconColor",!0):t.get("pageIconInactiveColor",!0)),v.cursor=h?"pointer":"default")});var a=i.childOfName("pageText"),o=t.get("pageFormatter"),s=n.pageIndex,l=s!=null?s+1:0,u=n.pageCount;a&&o&&a.setStyle("text",$(o)?o.replace("{current}",l==null?"":l+"").replace("{total}",u==null?"":u+""):o({current:l,total:u}))},e.prototype._getPageInfo=function(t){var n=t.get("scrollDataIndex",!0),i=this.getContentGroup(),a=this._containerGroup.__rectSize,o=t.getOrient().index,s=kc[o],l=Bc[o],u=this._findTargetItemIndex(n),f=i.children(),c=f[u],h=f.length,v=h?1:0,d={contentPosition:[i.x,i.y],pageCount:v,pageIndex:v-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!c)return d;var p=S(c);d.contentPosition[o]=-p.s;for(var g=u+1,m=p,y=p,_=null;g<=h;++g)_=S(f[g]),(!_&&y.e>m.s+a||_&&!b(_,m.s))&&(y.i>m.i?m=y:m=_,m&&(d.pageNextDataIndex==null&&(d.pageNextDataIndex=m.i),++d.pageCount)),y=_;for(var g=u-1,m=p,y=p,_=null;g>=-1;--g)_=S(f[g]),(!_||!b(y,_.s))&&m.i=x&&w.s<=x+a}},e.prototype._findTargetItemIndex=function(t){if(!this._showController)return 0;var n,i=this.getContentGroup(),a;return i.eachChild(function(o,s){var l=o.__legendDataIndex;a==null&&l!=null&&(a=s),l===t&&(n=s)}),n??a},e.type="legend.scroll",e}(mw);function LN(r){r.registerAction("legendScroll","legendscroll",function(e,t){var n=e.scrollDataIndex;n!=null&&t.eachComponent({mainType:"legend",subType:"scroll",query:e},function(i){i.setScrollDataIndex(n)})})}function PN(r){tr(yw),r.registerComponentModel(DN),r.registerComponentView(IN),LN(r)}function RN(r){tr(yw),tr(PN)}var EN=function(r){F(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="dataZoom.inside",e.defaultOption=Xu(yu.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),e}(yu),Yd=Se();function ON(r,e,t){Yd(r).coordSysRecordMap.each(function(n){var i=n.dataZoomInfoMap.get(e.uid);i&&(i.getRange=t)})}function kN(r,e){for(var t=Yd(r).coordSysRecordMap,n=t.keys(),i=0;ia[i+n]&&(n=c),o=o&&f.get("preventDefaultMouseMove",!0),s=q(f.get("cursorGrab",!0),s),l=q(f.get("cursorGrabbing",!0),l)}),{controlType:n,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!o,api:t,zInfo:{component:e.model},triggerInfo:{roamTrigger:null,isInSelf:e.containsPoint},cursorGrab:s,cursorGrabbing:l}}}function GN(r){r.registerUpdateLifecycle("coordsys:aftercreate",function(e,t){var n=Yd(t),i=n.coordSysRecordMap||(n.coordSysRecordMap=Z());i.each(function(a){a.dataZoomInfoMap=null}),e.eachComponent({mainType:"dataZoom",subType:"inside"},function(a){var o=lw(a);A(o.infoList,function(s){var l=s.model.uid,u=i.get(l)||i.set(l,BN(t,s.model)),f=u.dataZoomInfoMap||(u.dataZoomInfoMap=Z());f.set(a.uid,{dzReferCoordSysInfo:s,model:a,getRange:null})})}),i.each(function(a){var o=a.controller,s,l=a.dataZoomInfoMap;if(l){var u=l.keys()[0];u!=null&&(s=l.get(u))}if(!s){_w(i,a);return}var f=zN(l,a,t);o.enable(f.controlType,f.opt),ju(a,"dispatchAction",s.model.get("throttle",!0),"fixRate")})})}var HN=function(r){F(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="dataZoom.inside",t}return e.prototype.render=function(t,n,i){if(r.prototype.render.apply(this,arguments),t.noTarget()){this._clear();return}this.range=t.getPercentRange(),ON(i,t,{pan:ee(Nc.pan,this),zoom:ee(Nc.zoom,this),scrollMove:ee(Nc.scrollMove,this)})},e.prototype.dispose=function(){this._clear(),r.prototype.dispose.apply(this,arguments)},e.prototype._clear=function(){kN(this.api,this.dataZoomModel),this.range=null},e.type="dataZoom.inside",e}(cw),Nc={zoom:function(r,e,t,n){var i=this.range,a=i.slice(),o=r.axisModels[0];if(o){var s=Fc[e](null,[n.originX,n.originY],o,t,r),l=(s.signal>0?s.pixelStart+s.pixelLength-s.pixel:s.pixel-s.pixelStart)/s.pixelLength*(a[1]-a[0])+a[0],u=Math.max(1/n.scale,0);a[0]=(a[0]-l)*u+l,a[1]=(a[1]-l)*u+l;var f=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();if(Bo(0,a,[0,100],0,f.minSpan,f.maxSpan),this.range=a,i[0]!==a[0]||i[1]!==a[1])return a}},pan:t0(function(r,e,t,n,i,a){var o=Fc[n]([a.oldX,a.oldY],[a.newX,a.newY],e,i,t);return o.signal*(r[1]-r[0])*o.pixel/o.pixelLength}),scrollMove:t0(function(r,e,t,n,i,a){var o=Fc[n]([0,0],[a.scrollDelta,a.scrollDelta],e,i,t);return o.signal*(r[1]-r[0])*a.scrollDelta})};function t0(r){return function(e,t,n,i){var a=this.range,o=a.slice(),s=e.axisModels[0];if(s){var l=r(o,s,e,t,n,i);if(Bo(l,o,[0,100],"all"),this.range=o,a[0]!==o[0]||a[1]!==o[1])return o}}}var Fc={grid:function(r,e,t,n,i){var a=t.axis,o={},s=i.model.coordinateSystem.getRect();return r=r||[0,0],a.dim==="x"?(o.pixel=e[0]-r[0],o.pixelLength=s.width,o.pixelStart=s.x,o.signal=a.inverse?1:-1):(o.pixel=e[1]-r[1],o.pixelLength=s.height,o.pixelStart=s.y,o.signal=a.inverse?-1:1),o},polar:function(r,e,t,n,i){var a=t.axis,o={},s=i.model.coordinateSystem,l=s.getRadiusAxis().getExtent(),u=s.getAngleAxis().getExtent();return r=r?s.pointToCoord(r):[0,0],e=s.pointToCoord(e),t.mainType==="radiusAxis"?(o.pixel=e[0]-r[0],o.pixelLength=l[1]-l[0],o.pixelStart=l[0],o.signal=a.inverse?1:-1):(o.pixel=e[1]-r[1],o.pixelLength=u[1]-u[0],o.pixelStart=u[0],o.signal=a.inverse?-1:1),o},singleAxis:function(r,e,t,n,i){var a=t.axis,o=i.model.coordinateSystem.getRect(),s={};return r=r||[0,0],a.orient==="horizontal"?(s.pixel=e[0]-r[0],s.pixelLength=o.width,s.pixelStart=o.x,s.signal=a.inverse?1:-1):(s.pixel=e[1]-r[1],s.pixelLength=o.height,s.pixelStart=o.y,s.signal=a.inverse?-1:1),s}};function VN(r){hw(r),r.registerComponentModel(EN),r.registerComponentView(HN),GN(r)}var UN=function(r){F(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="dataZoom.slider",e.layoutMode="box",e.defaultOption=Xu(yu.defaultOption,{show:!0,right:"ph",top:"ph",width:"ph",height:"ph",left:null,bottom:null,borderColor:U.color.accent10,borderRadius:0,backgroundColor:U.color.transparent,dataBackground:{lineStyle:{color:U.color.accent30,width:.5},areaStyle:{color:U.color.accent20,opacity:.2}},selectedDataBackground:{lineStyle:{color:U.color.accent40,width:.5},areaStyle:{color:U.color.accent20,opacity:.3}},fillerColor:"rgba(135,175,274,0.2)",handleIcon:"path://M-9.35,34.56V42m0-40V9.5m-2,0h4a2,2,0,0,1,2,2v21a2,2,0,0,1-2,2h-4a2,2,0,0,1-2-2v-21A2,2,0,0,1-11.35,9.5Z",handleSize:"100%",handleStyle:{color:U.color.neutral00,borderColor:U.color.accent20},moveHandleSize:7,moveHandleIcon:"path://M-320.9-50L-320.9-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-348-41-339-50-320.9-50z M-212.3-50L-212.3-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-239.4-41-230.4-50-212.3-50z M-103.7-50L-103.7-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-130.9-41-121.8-50-103.7-50z",moveHandleStyle:{color:U.color.accent40,opacity:.5},showDetail:!0,showDataShadow:"auto",realtime:!0,zoomLock:!1,textStyle:{color:U.color.tertiary},brushSelect:!0,brushStyle:{color:U.color.accent30,opacity:.3},emphasis:{handleLabel:{show:!0},handleStyle:{borderColor:U.color.accent40},moveHandleStyle:{opacity:.8}},defaultLocationEdgeGap:15}),e}(yu),Ua=Ae,WN=1,zc=30,YN=7,Wa="horizontal",r0="vertical",$N=5,XN=["line","bar","candlestick","scatter"],ZN={easing:"cubicOut",duration:100,delay:0},qN=function(r){F(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t._displayables={},t}return e.prototype.init=function(t,n){this.api=n,this._onBrush=ee(this._onBrush,this),this._onBrushEnd=ee(this._onBrushEnd,this)},e.prototype.render=function(t,n,i,a){if(r.prototype.render.apply(this,arguments),ju(this,"_dispatchZoomAction",t.get("throttle"),"fixRate"),this._orient=t.getOrient(),t.get("show")===!1){this.group.removeAll();return}if(t.noTarget()){this._clear(),this.group.removeAll();return}(!a||a.type!=="dataZoom"||a.from!==this.uid)&&this._buildView(),this._updateView()},e.prototype.dispose=function(){this._clear(),r.prototype.dispose.apply(this,arguments)},e.prototype._clear=function(){Ql(this,"_dispatchZoomAction");var t=this.api.getZr();t.off("mousemove",this._onBrush),t.off("mouseup",this._onBrushEnd)},e.prototype._buildView=function(){var t=this.group;t.removeAll(),this._brushing=!1,this._displayables.brushRect=null,this._resetLocation(),this._resetInterval();var n=this._displayables.sliderGroup=new Ge;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),t.add(n),this._positionGroup()},e.prototype._resetLocation=function(){var t=this.dataZoomModel,n=this.api,i=t.get("brushSelect"),a=i?YN:0,o=jo(t,n).refContainer,s=this._findCoordRect(),l=t.get("defaultLocationEdgeGap",!0)||0,u=this._orient===Wa?{right:o.width-s.x-s.width,top:o.height-zc-l-a,width:s.width,height:zc}:{right:l,top:s.y,width:zc,height:s.height},f=ma(t.option);A(["right","top","width","height"],function(h){f[h]==="ph"&&(f[h]=u[h])});var c=Mr(f,o);this._location={x:c.x,y:c.y},this._size=[c.width,c.height],this._orient===r0&&this._size.reverse()},e.prototype._positionGroup=function(){var t=this.group,n=this._location,i=this._orient,a=this.dataZoomModel.getFirstTargetAxisModel(),o=a&&a.get("inverse"),s=this._displayables.sliderGroup,l=(this._dataShadowInfo||{}).otherAxisInverse;s.attr(i===Wa&&!o?{scaleY:l?1:-1,scaleX:1}:i===Wa&&o?{scaleY:l?1:-1,scaleX:-1}:i===r0&&!o?{scaleY:l?-1:1,scaleX:1,rotation:Math.PI/2}:{scaleY:l?-1:1,scaleX:-1,rotation:Math.PI/2});var u=t.getBoundingRect([s]),f=isNaN(u.x)?0:u.x,c=isNaN(u.y)?0:u.y;t.x=n.x-f,t.y=n.y-c,t.markRedraw()},e.prototype._getViewExtent=function(){return[0,this._size[0]]},e.prototype._renderBackground=function(){var t=this.dataZoomModel,n=this._size,i=this._displayables.sliderGroup,a=t.get("brushSelect");i.add(new Ua({silent:!0,shape:{x:0,y:0,width:n[0],height:n[1]},style:{fill:t.get("backgroundColor")},z2:-40}));var o=new Ua({shape:{x:0,y:0,width:n[0],height:n[1]},style:{fill:"transparent"},z2:0,onclick:ee(this._onClickPanel,this)}),s=this.api.getZr();a?(o.on("mousedown",this._onBrushStart,this),o.cursor="crosshair",s.on("mousemove",this._onBrush),s.on("mouseup",this._onBrushEnd)):(s.off("mousemove",this._onBrush),s.off("mouseup",this._onBrushEnd)),i.add(o)},e.prototype._renderDataShadow=function(){var t=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],!t)return;var n=this._size,i=this._shadowSize||[],a=t.series,o=a.getRawData(),s=a.getShadowDim&&a.getShadowDim(),l=s&&o.getDimensionInfo(s)?a.getShadowDim():t.otherDim;if(l==null)return;var u=this._shadowPolygonPts,f=this._shadowPolylinePts;if(o!==this._shadowData||l!==this._shadowDim||n[0]!==i[0]||n[1]!==i[1]){var c=o.getDataExtent(t.thisDim),h=o.getDataExtent(l),v=(h[1]-h[0])*.3;h=[h[0]-v,h[1]+v];var d=[0,n[1]],p=[0,n[0]],g=[[n[0],0],[0,0]],m=[],y=p[1]/Math.max(1,o.count()-1),_=n[0]/(c[1]-c[0]),S=t.thisAxis.type==="time",b=-y,w=Math.round(o.count()/n[0]),x;o.each([t.thisDim,l],function(L,I,P){if(w>0&&P%w){S||(b+=y);return}b=S?(+L-c[0])*_:b+y;var R=I==null||isNaN(I)||I==="",E=R?0:ke(I,h,d,!0);R&&!x&&P?(g.push([g[g.length-1][0],0]),m.push([m[m.length-1][0],0])):!R&&x&&(g.push([b,0]),m.push([b,0])),R||(g.push([b,E]),m.push([b,E])),x=R}),u=this._shadowPolygonPts=g,f=this._shadowPolylinePts=m}this._shadowData=o,this._shadowDim=l,this._shadowSize=[n[0],n[1]];var T=this.dataZoomModel;function C(L){var I=T.getModel(L?"selectedDataBackground":"dataBackground"),P=new Ge,R=new $o({shape:{points:u},segmentIgnoreThreshold:1,style:I.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),E=new wi({shape:{points:f},segmentIgnoreThreshold:1,style:I.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19});return P.add(R),P.add(E),P}for(var D=0;D<3;D++){var M=C(D===1);this._displayables.sliderGroup.add(M),this._displayables.dataShadowSegs.push(M)}},e.prototype._prepareDataShadowInfo=function(){var t=this.dataZoomModel,n=t.get("showDataShadow");if(n!==!1){var i,a=this.ecModel;return t.eachTargetAxis(function(o,s){var l=t.getAxisProxy(o,s).getTargetSeriesModels();A(l,function(u){if(!i&&!(n!==!0&&ve(XN,u.get("type"))<0)){var f=a.getComponent(fn(o),s).axis,c=KN(o),h,v=u.coordinateSystem;c!=null&&v.getOtherAxis&&(h=v.getOtherAxis(f).inverse),c=u.getData().mapDimension(c);var d=u.getData().mapDimension(o);i={thisAxis:f,series:u,thisDim:d,otherDim:c,otherAxisInverse:h}}},this)},this),i}},e.prototype._renderHandle=function(){var t=this.group,n=this._displayables,i=n.handles=[null,null],a=n.handleLabels=[null,null],o=this._displayables.sliderGroup,s=this._size,l=this.dataZoomModel,u=this.api,f=l.get("borderRadius")||0,c=l.get("brushSelect"),h=n.filler=new Ua({silent:c,style:{fill:l.get("fillerColor")},textConfig:{position:"inside"}});o.add(h),o.add(new Ua({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:s[0],height:s[1],r:f},style:{stroke:l.get("dataBackgroundColor")||l.get("borderColor"),lineWidth:WN,fill:U.color.transparent}})),A([0,1],function(_){var S=l.get("handleIcon");!Jl[S]&&S.indexOf("path://")<0&&S.indexOf("image://")<0&&(S="path://"+S);var b=Gr(S,-1,0,2,2,null,!0);b.attr({cursor:QN(this._orient),draggable:!0,drift:ee(this._onDragMove,this,_),ondragend:ee(this._onDragEnd,this),onmouseover:ee(this._onOverDataInfoTriggerArea,this,!0),onmouseout:ee(this._onOverDataInfoTriggerArea,this,!1),z2:5});var w=b.getBoundingRect(),x=l.get("handleSize");this._handleHeight=Me(x,this._size[1]),this._handleWidth=w.width/w.height*this._handleHeight,b.setStyle(l.getModel("handleStyle").getItemStyle()),b.style.strokeNoScale=!0,b.rectHover=!0,b.ensureState("emphasis").style=l.getModel(["emphasis","handleStyle"]).getItemStyle(),wo(b);var T=l.get("handleColor");T!=null&&(b.style.fill=T),o.add(i[_]=b);var C=l.getModel("textStyle"),D=l.get("handleLabel")||{},M=D.show||!1;t.add(a[_]=new Ue({silent:!0,invisible:!M,style:Cr(C,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:C.getTextColor(),font:C.getFont()}),z2:10}))},this);var v=h;if(c){var d=Me(l.get("moveHandleSize"),s[1]),p=n.moveHandle=new Ae({style:l.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:s[1]-.5,height:d}}),g=d*.8,m=n.moveHandleIcon=Gr(l.get("moveHandleIcon"),-g/2,-g/2,g,g,U.color.neutral00,!0);m.silent=!0,m.y=s[1]+d/2-.5,p.ensureState("emphasis").style=l.getModel(["emphasis","moveHandleStyle"]).getItemStyle();var y=Math.min(s[1]/2,Math.max(d,10));v=n.moveZone=new Ae({invisible:!0,shape:{y:s[1]-y,height:d+y}}),v.on("mouseover",function(){u.enterEmphasis(p)}).on("mouseout",function(){u.leaveEmphasis(p)}),o.add(p),o.add(m),o.add(v)}v.attr({draggable:!0,cursor:"grab",drift:ee(this._onActualMoveZoneDrift,this),ondragstart:ee(this._onActualMoveZoneDragStart,this),ondragend:ee(this._onActualMoveZoneDragEnd,this),onmouseover:ee(this._onOverDataInfoTriggerArea,this,!0),onmouseout:ee(this._onOverDataInfoTriggerArea,this,!1)})},e.prototype._resetInterval=function(){var t=this._range=this.dataZoomModel.getPercentRange(),n=this._getViewExtent();this._handleEnds=[ke(t[0],[0,100],n,!0),ke(t[1],[0,100],n,!0)]},e.prototype._updateInterval=function(t,n){var i=this.dataZoomModel,a=this._handleEnds,o=this._getViewExtent(),s=i.findRepresentativeAxisProxy().getMinMaxSpan(),l=[0,100];Bo(n,a,o,i.get("zoomLock")?"all":t,s.minSpan!=null?ke(s.minSpan,l,o,!0):null,s.maxSpan!=null?ke(s.maxSpan,l,o,!0):null);var u=this._range,f=this._range=pr([ke(a[0],o,l,!0),ke(a[1],o,l,!0)]);return!u||u[0]!==f[0]||u[1]!==f[1]},e.prototype._updateView=function(t){var n=this._displayables,i=this._handleEnds,a=pr(i.slice()),o=this._size;A([0,1],function(v){var d=n.handles[v],p=this._handleHeight;d.attr({scaleX:p/2,scaleY:p/2,x:i[v]+(v?-1:1),y:o[1]/2-p/2})},this),n.filler.setShape({x:a[0],y:0,width:a[1]-a[0],height:o[1]});var s={x:a[0],width:a[1]-a[0]};n.moveHandle&&(n.moveHandle.setShape(s),n.moveZone.setShape(s),n.moveZone.getBoundingRect(),n.moveHandleIcon&&n.moveHandleIcon.attr("x",s.x+s.width/2));for(var l=n.dataShadowSegs,u=[0,a[0],a[1],o[0]],f=0;fn[0]||i[1]<0||i[1]>n[1])){var a=this._handleEnds,o=(a[0]+a[1])/2,s=this._updateInterval("all",i[0]-o);this._updateView(),s&&this._dispatchZoomAction(!1)}},e.prototype._onBrushStart=function(t){var n=t.offsetX,i=t.offsetY;this._brushStart=new ie(n,i),this._brushing=!0,this._brushStartTime=+new Date},e.prototype._onBrushEnd=function(t){if(this._brushing){var n=this._displayables.brushRect;if(this._brushing=!1,!!n){n.attr("ignore",!0);var i=n.shape,a=+new Date;if(!(a-this._brushStartTime<200&&Math.abs(i.width)<5)){var o=this._getViewExtent(),s=[0,100],l=this._handleEnds=[i.x,i.x+i.width],u=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();Bo(0,l,o,0,u.minSpan!=null?ke(u.minSpan,s,o,!0):null,u.maxSpan!=null?ke(u.maxSpan,s,o,!0):null),this._range=pr([ke(l[0],o,s,!0),ke(l[1],o,s,!0)]),this._updateView(),this._dispatchZoomAction(!1)}}}},e.prototype._onBrush=function(t){this._brushing&&(aa(t.event),this._updateBrushRect(t.offsetX,t.offsetY))},e.prototype._updateBrushRect=function(t,n){var i=this._displayables,a=this.dataZoomModel,o=i.brushRect;o||(o=i.brushRect=new Ua({silent:!0,style:a.getModel("brushStyle").getItemStyle()}),i.sliderGroup.add(o)),o.attr("ignore",!1);var s=this._brushStart,l=this._displayables.sliderGroup,u=l.transformCoordToLocal(t,n),f=l.transformCoordToLocal(s.x,s.y),c=this._size;u[0]=Math.max(Math.min(c[0],u[0]),0),o.setShape({x:f[0],y:0,width:u[0]-f[0],height:c[1]})},e.prototype._dispatchZoomAction=function(t){var n=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,animation:t?ZN:null,start:n[0],end:n[1]})},e.prototype._findCoordRect=function(){var t,n=lw(this.dataZoomModel).infoList;if(!t&&n.length){var i=n[0].model.coordinateSystem;t=i.getRect&&i.getRect()}if(!t){var a=this.api.getWidth(),o=this.api.getHeight();t={x:a*.2,y:o*.2,width:a*.6,height:o*.6}}return t},e.type="dataZoom.slider",e}(cw);function n0(r,e,t,n){var i=r.get("labelFormatter"),a=r.get("labelPrecision");(a==null||a==="auto")&&(a=t.valuePrecision);var o=t.value[e],s=o==null||isNaN(o)?"":It(n)||Jo(n)?n.getLabel({value:Math.round(o)}):isFinite(a)?ce(o,a,!0):o+"";return re(i)?i(o,s):$(i)?i.replace("{value}",s):s}function KN(r){var e={x:"y",y:"x",radius:"angle",angle:"radius"};return e[r]}function QN(r){return r==="vertical"?"ns-resize":"ew-resize"}function jN(r){r.registerComponentModel(UN),r.registerComponentView(qN),hw(r)}function JN(r){tr(VN),tr(jN)}function i0(r,e,t){var n=et.createCanvas(),i=e.getWidth(),a=e.getHeight(),o=n.style;return o&&(o.position="absolute",o.left="0",o.top="0",o.width=i+"px",o.height=a+"px",n.setAttribute("data-zr-dom-id",r)),n.width=i*t,n.height=a*t,n}function Gc(r){return!r.__cursors.get(X_)}function a0(r){var e=r.__cursors.get(X_);return{startIdx:e?e.startIdx:0,endIdx:e?e.endIdx:0}}var Sw=function(r){F(e,r);function e(t,n,i){var a=r.call(this)||this;a.motionBlur=!1,a.lastFrameAlpha=.7,a.dpr=1,a.virtual=!1,a.config={},a.zlevel=0,a.zlevel2=ul,a.maxRepaintRectCount=5,a.__dirty=!0,a.__firstTimePaint=!0,a.__prevIdx={startIdx:0,endIdx:0};var o;i=i||Ol,typeof t=="string"?o=i0(t,n,i):j(t)&&(o=t,t=o.id),a.id=t,a.dom=o;var s=o.style;return s&&(yv(o),o.onselectstart=function(){return!1},s.padding="0",s.margin="0",s.borderWidth="0"),a.painter=n,a.dpr=i,a}return e.prototype.afterBrush=function(){this.__prevIdx=a0(this)},e.prototype.initContext=function(){this.ctx=this.dom.getContext("2d"),this.ctx.dpr=this.dpr},e.prototype.setUnpainted=function(){this.__firstTimePaint=!0},e.prototype.createBackBuffer=function(){var t=this.dpr;this.domBack=i0("back-"+this.id,this.painter,t),this.ctxBack=this.domBack.getContext("2d"),t!==1&&this.ctxBack.scale(t,t)},e.prototype.createRepaintRects=function(t,n,i,a){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var o=[],s=this.maxRepaintRectCount,l=!1,u=new te(0,0,0,0);function f(S){if(!(!S.isFinite()||S.isZero()))if(o.length===0){var b=new te(0,0,0,0);b.copy(S),o.push(b)}else{for(var w=!1,x=1/0,T=0,C=0;C=s)}}for(var c=a0(this),h=c.startIdx;h=0)&&(o=!0)}),!(!o&&!a.__dirty)){var s=n._opts.useDirtyRect&&!Gc(a)?a.createRepaintRects(e,t,n._width,n._height):null,l=n._i.layerStack[0],u=!0;if(a.__dirty){u=!1,a.__dirty=!1;var f=a.zlevel===l.zl&&a.zlevel2===l.zl2?n._backgroundColor:null;a.clear(!1,f,s)}Xs(a,function(c){var h=n._paintPerCursor(a,c,e,s,u);i=i&&h})}},Zs),oe.wxa&&rt(this._i,function(a){a&&a.ctx&&a.ctx.draw&&a.ctx.draw()}),i},r.prototype._paintPerCursor=function(e,t,n,i,a){var o=e.ctx;if(i)if(!i.length)t.drawIdx=t.endIdx;else for(var s=this.dpr,l=0;l=t.endIdx},r.prototype._paintPerCursorInRect=function(e,t,n,i,a){for(var o={inHover:!1,allClipped:!1,prevEl:null,viewWidth:this._width,viewHeight:this._height,beforeBrushParam:{contentRetained:a}},s=e.ctx,l=Gc(e),u=l&&et.getTime(),f=t.drawIdx,c=t.notClearIdx,h=c>=0?Math.min(c,f):f;h15){h++;break}}}}ea(s,o),t.drawIdx=Math.max(h,f)},r.prototype.getLayer=function(e,t){return this._ensureLayer(e,0,t)},r.prototype._ensureLayer=function(e,t,n){t=t||0;var i=this._singleCanvas;i&&!this._needsManuallyCompositing&&(e=Xn,t=0);var a=Uc(this._i,e)[t];return a||(a=s0("zr_"+e+"."+t,this,e,t),this._layerConfig[e]&&de(a,this._layerConfig[e],!0),(n||i&&e!==Xn)&&(a.virtual=!0),this._insertLayer(a,e,t,!1),a.initContext()),a},r.prototype.insertLayer=function(e,t){this._insertLayer(t,e,0,!1)},r.prototype._insertLayer=function(e,t,n,i){var a=this._i,o=a.layers,s=a.layerStack,l=this._domRoot,u=null;if(!(o[t]&&o[t][n])&&t5(e)){for(var f=s.length,c=0;c0&&(u=Uc(a,s[c-1].zl)[s[c-1].zl2]),s.splice(c,0,{zl:t,zl2:n}),Uc(a,t)[n]=e,!i&&!e.virtual)if(u){var h=u.dom;h.nextSibling?l.insertBefore(e.dom,h.nextSibling):l.appendChild(e.dom)}else l.firstChild?l.insertBefore(e.dom,l.firstChild):l.appendChild(e.dom);e.painter||(e.painter=this)}},r.prototype.eachLayer=function(e,t){return rt(this._i,function(n,i){e.call(t,n,i)})},r.prototype.eachBuiltinLayer=function(e,t){return rt(this._i,function(n,i){e.call(t,n,i)},co)},r.prototype.eachOtherLayer=function(e,t){return rt(this._i,function(n,i){e.call(t,n,i)},lv)},r.prototype.getLayers=function(){var e={};return rt(this._i,function(t,n,i){e[t.id]=t}),e},r.prototype._updateLayerStatus=function(e,t){var n=this;if(n._singleCanvas)for(var i=1;i=0;_--){var S=y.get(m[_]);if(!S.used)g.__dirty=!0,y.removeKey(m[_]),m.splice(_,1);else{var b=S.endIdxNew;(Gc(g)?b=0;i--){var a=t[i];if(a.zl===e){var o=n[e][a.zl2];if(o.__builtin__)continue;if(t.splice(i,1),n[e][a.zl2]=void 0,!o.virtual){var s=o.dom.parentNode;s&&s.removeChild(o.dom)}}}},r.prototype.resize=function(e,t){if(this._domRoot.style){var n=this._domRoot;n.style.display="none";var i=this._opts,a=this.root;e!=null&&(i.width=e),t!=null&&(i.height=t),e=Ls(a,0,i),t=Ls(a,1,i),n.style.display="",(this._width!==e||t!==this._height)&&(n.style.width=e+"px",n.style.height=t+"px",rt(this._i,function(o){o.resize(e,t)}),this.refresh({paintAll:!0})),this._width=e,this._height=t}else{if(e==null||t==null)return;this._width=e,this._height=t,this._ensureLayer(Xn).resize(e,t)}return this},r.prototype.clearLayer=function(e){A(this._i.layers[e],function(t){t&&!t.__builtin__&&t.clear()})},r.prototype.dispose=function(){this.root.innerHTML="",this.root=this.storage=this._domRoot=this._i=null},r.prototype.getRenderedCanvas=function(e){if(e=e||{},this._singleCanvas&&!this._compositeManually)return this._i.layers[Xn][0].dom;var t=new Sw("image",this,e.pixelRatio||this.dpr);t.initContext(),t.clear(!1,e.backgroundColor||this._backgroundColor);var n=t.ctx;if(e.pixelRatio<=this.dpr){this.refresh();var i=t.dom.width,a=t.dom.height;rt(this._i,function(c){c.__builtin__?n.drawImage(c.dom,0,0,i,a):c.renderToCanvas&&(n.save(),c.renderToCanvas(n),n.restore())})}else{for(var o={inHover:!1,viewWidth:this._width,viewHeight:this._height,beforeBrushParam:{}},s=this.storage.getDisplayList(!0),l=0,u=s.length;l=1e6?`${(d/1e6).toFixed(1)}M`:d>=1e3?`${(d/1e3).toFixed(1)}K`:String(d)}function h(){a.value&&(o=KE.init(a.value),v())}function v(){if(!o||!t.value.length)return;const d=new Map,p=new Set;for(const _ of t.value){const S=_.provider||"default";d.has(S)||d.set(S,new Map),d.get(S).set(_.date,(d.get(S).get(_.date)||0)+_.tokens),p.add(_.date)}const g=Array.from(p).sort(),m=Array.from(d.keys()),y=m.map(_=>{const S=d.get(_);return{name:_,type:"line",smooth:!0,data:g.map(b=>S.get(b)||0),itemStyle:{color:l[_]||l.default},symbol:"circle",symbolSize:6}});o.setOption({tooltip:{trigger:"axis",axisPointer:{type:"cross"}},legend:{data:m,bottom:0},grid:{left:"3%",right:"4%",top:"8%",bottom:"15%",containLabel:!0},xAxis:{type:"category",data:g.map(_=>_.slice(5)),boundaryGap:!1},yAxis:{type:"value",name:"Token 数",axisLabel:{formatter:_=>c(_)}},series:y},!0)}return _u(()=>{u(),t.value.length>0&&h(),a.value&&(s=new ResizeObserver(()=>{o&&o.resize()}),s.observe(a.value))}),u0(()=>{o==null||o.dispose(),o=null,s==null||s.disconnect()}),Xd(t,d=>{d.length>0&&!o&&Nw(()=>h())},{deep:!0}),Xd(t,v,{deep:!0}),(d,p)=>(ge(),me("div",s5,[Q("div",l5,[p[4]||(p[4]=Q("h3",null,"LLM 用量统计",-1)),J(fe(Uw),{value:e.value,"onUpdate:value":p[0]||(p[0]=g=>e.value=g),size:"small",onChange:f},{default:Ce(()=>[J(fe(hf),{value:"today"},{default:Ce(()=>[...p[1]||(p[1]=[vt("今天",-1)])]),_:1}),J(fe(hf),{value:"7d"},{default:Ce(()=>[...p[2]||(p[2]=[vt("7天",-1)])]),_:1}),J(fe(hf),{value:"30d"},{default:Ce(()=>[...p[3]||(p[3]=[vt("30天",-1)])]),_:1})]),_:1},8,["value"])]),Q("div",u5,[Q("div",f5,[p[5]||(p[5]=Q("div",{class:"usage-summary__label"},"请求成功率",-1)),Q("div",c5,Pe((n.value.success_rate*100).toFixed(1))+"% ",1)]),Q("div",h5,[p[6]||(p[6]=Q("div",{class:"usage-summary__label"},"平均响应延迟",-1)),Q("div",v5,Pe(n.value.avg_latency_ms.toFixed(0))+" ms ",1)]),Q("div",d5,[p[7]||(p[7]=Q("div",{class:"usage-summary__label"},"总 Token 数",-1)),Q("div",p5,Pe(c(n.value.total_tokens)),1)]),Q("div",g5,[p[8]||(p[8]=Q("div",{class:"usage-summary__label"},"总请求数",-1)),Q("div",m5,Pe(c(n.value.total_requests)),1)])]),t.value.length===0&&!i.value?(ge(),me("div",y5,[J(fe(ho),{description:"暂无用量数据"})])):(ge(),me("div",_5,[Q("div",{ref_key:"chartRef",ref:a,class:"echarts-container"},null,512)]))]))}}),b5=No(S5,[["__scopeId","data-v-74750570"]]),w5={class:"evolution-container"},x5={class:"evolution-panels"},T5=gi({__name:"EvolutionView",setup(r){const e=v0(),t=ze("overview");return _u(()=>{e.loadExperiences(),e.loadMetrics(),e.loadOptimizations(),e.connectWebSocket()}),u0(()=>{e.disconnectWebSocket()}),(n,i)=>{const a=Yw,o=Ww;return ge(),me("div",w5,[J(o,{activeKey:t.value,"onUpdate:activeKey":i[0]||(i[0]=s=>t.value=s),class:"evolution-tabs"},{default:Ce(()=>[J(a,{key:"overview",tab:"概览+指标"},{default:Ce(()=>[J(Ax)]),_:1}),J(a,{key:"experiences",tab:"经验+坑点"},{default:Ce(()=>[Q("div",x5,[J(Xx,{experiences:fe(e).experiences},null,8,["experiences"]),J(iT,{warnings:fe(e).pitfalls},null,8,["warnings"])])]),_:1}),J(a,{key:"usage",tab:"用量"},{default:Ce(()=>[J(b5)]),_:1})]),_:1},8,["activeKey"])])}}}),G5=No(T5,[["__scopeId","data-v-bcf5d3ee"]]);export{G5 as default}; diff --git a/src/agentkit/server/static/assets/EvolutionView-DokvaL7M.css b/src/agentkit/server/static/assets/EvolutionView-DokvaL7M.css new file mode 100644 index 0000000..f5ae1bf --- /dev/null +++ b/src/agentkit/server/static/assets/EvolutionView-DokvaL7M.css @@ -0,0 +1 @@ +.dashboard-overview[data-v-f22d8816]{height:100%;display:flex;flex-direction:column;gap:16px}.overview-cards[data-v-f22d8816]{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}.overview-card[data-v-f22d8816]{cursor:pointer}.overview-card__footer[data-v-f22d8816]{font-size:12px;color:var(--text-tertiary)}.overview-sections[data-v-f22d8816]{flex:1;display:grid;grid-template-columns:1fr 1fr;gap:16px;min-height:0}.overview-section[data-v-f22d8816]{background:var(--bg-primary);border:1px solid var(--border-color-split);border-radius:8px;padding:16px;display:flex;flex-direction:column;overflow:hidden}.overview-section__header[data-v-f22d8816]{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px;flex-shrink:0}.overview-section__header h3[data-v-f22d8816]{margin:0;font-size:15px;font-weight:600}.overview-section__empty[data-v-f22d8816]{flex:1;display:flex;align-items:center;justify-content:center}.overview-section__list[data-v-f22d8816]{flex:1;overflow-y:auto}.experience-item[data-v-f22d8816]{display:flex;align-items:center;gap:8px;padding:6px 0;border-bottom:1px solid var(--bg-tertiary)}.experience-item[data-v-f22d8816]:last-child{border-bottom:none}.experience-item__dot[data-v-f22d8816]{width:8px;height:8px;border-radius:50%;flex-shrink:0}.experience-item__dot--success[data-v-f22d8816]{background:var(--color-success)}.experience-item__dot--failure[data-v-f22d8816]{background:var(--color-error)}.experience-item__info[data-v-f22d8816]{flex:1;min-width:0;display:flex;flex-direction:column}.experience-item__goal[data-v-f22d8816]{font-size:13px;font-weight:500;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.experience-item__meta[data-v-f22d8816]{font-size:12px;color:var(--text-tertiary)}.pitfall-item[data-v-f22d8816]{display:flex;align-items:center;gap:8px;padding:6px 0;border-bottom:1px solid var(--bg-tertiary)}.pitfall-item[data-v-f22d8816]:last-child{border-bottom:none}.pitfall-item__step[data-v-f22d8816]{flex:1;font-size:13px;font-weight:500}.pitfall-item__rate[data-v-f22d8816]{font-size:12px;color:var(--color-error);font-weight:600}.experience-timeline[data-v-c223af1f]{height:100%;display:flex;flex-direction:column}.timeline-header[data-v-c223af1f]{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}.timeline-header h3[data-v-c223af1f]{margin:0;font-size:15px;font-weight:600}.timeline-empty[data-v-c223af1f]{flex:1;display:flex;align-items:center;justify-content:center}.timeline-list[data-v-c223af1f]{flex:1;overflow-y:auto;position:relative;padding-left:20px}.timeline-list[data-v-c223af1f]:before{content:"";position:absolute;left:8px;top:0;bottom:0;width:2px;background:var(--border-color)}.timeline-item[data-v-c223af1f]{position:relative;margin-bottom:12px}.timeline-dot[data-v-c223af1f]{position:absolute;left:-16px;top:12px;width:10px;height:10px;border-radius:50%;border:2px solid var(--bg-primary);z-index:1}.timeline-dot--success[data-v-c223af1f]{background:var(--color-success)}.timeline-dot--failure[data-v-c223af1f]{background:var(--color-error)}.timeline-card[data-v-c223af1f]{background:var(--bg-secondary);border:1px solid var(--border-color-split);border-radius:6px;padding:10px 12px;cursor:pointer;transition:box-shadow .2s}.timeline-card[data-v-c223af1f]:hover{box-shadow:0 2px 8px #00000014}.timeline-card__header[data-v-c223af1f]{display:flex;justify-content:space-between;align-items:center;gap:8px}.timeline-card__goal[data-v-c223af1f]{font-size:13px;font-weight:500;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:1}.timeline-card__meta[data-v-c223af1f]{display:flex;gap:12px;margin-top:4px;font-size:12px;color:var(--text-tertiary)}.timeline-card__type[data-v-c223af1f]{color:var(--color-primary)}.timeline-card__detail[data-v-c223af1f]{margin-top:8px;padding-top:8px;border-top:1px solid var(--border-color-split)}.detail-section[data-v-c223af1f]{margin-bottom:8px}.detail-label[data-v-c223af1f]{font-size:12px;font-weight:600;color:var(--text-secondary);margin-bottom:4px}.detail-text[data-v-c223af1f]{font-size:12px;color:var(--text-tertiary);line-height:1.5}.detail-list[data-v-c223af1f]{margin:0;padding-left:16px;font-size:12px;color:var(--text-tertiary);line-height:1.6}.pitfall-panel[data-v-d211a4c7]{height:100%;display:flex;flex-direction:column}.pitfall-header[data-v-d211a4c7]{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}.pitfall-header h3[data-v-d211a4c7]{margin:0;font-size:15px;font-weight:600}.pitfall-input[data-v-d211a4c7]{display:flex;gap:8px;margin-bottom:12px}.pitfall-empty[data-v-d211a4c7]{flex:1;display:flex;align-items:center;justify-content:center}.pitfall-list[data-v-d211a4c7]{flex:1;overflow-y:auto}.pitfall-item[data-v-d211a4c7]{background:var(--bg-secondary);border:1px solid var(--border-color-split);border-radius:6px;padding:10px 12px;margin-bottom:8px}.pitfall-item__header[data-v-d211a4c7]{display:flex;align-items:center;gap:8px;margin-bottom:4px}.pitfall-item__step[data-v-d211a4c7]{font-size:13px;font-weight:500}.pitfall-item__rate[data-v-d211a4c7]{font-size:12px;color:var(--text-tertiary);margin-bottom:4px}.pitfall-item__reason[data-v-d211a4c7]{font-size:12px;color:var(--text-secondary);line-height:1.5;margin-bottom:4px}.pitfall-item__suggestion[data-v-d211a4c7]{font-size:12px;color:var(--color-primary);line-height:1.5}.suggestion-icon[data-v-d211a4c7]{font-size:12px}.usage-panel[data-v-74750570]{height:100%;display:flex;flex-direction:column;background:var(--bg-primary);border:1px solid var(--border-color-split);border-radius:8px;padding:16px}.usage-panel__header[data-v-74750570]{display:flex;justify-content:space-between;align-items:center;margin-bottom:16px;flex-shrink:0}.usage-panel__header h3[data-v-74750570]{margin:0;font-size:15px;font-weight:600}.usage-summary[data-v-74750570]{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-bottom:16px;flex-shrink:0}.usage-summary__card[data-v-74750570]{background:var(--bg-secondary);border-radius:6px;padding:10px 12px;text-align:center}.usage-summary__label[data-v-74750570]{font-size:12px;color:var(--text-tertiary);margin-bottom:4px}.usage-summary__value[data-v-74750570]{font-size:20px;font-weight:600}.usage-panel__empty[data-v-74750570]{flex:1;display:flex;align-items:center;justify-content:center}.usage-panel__chart[data-v-74750570]{flex:1;min-height:0}.echarts-container[data-v-74750570]{width:100%;height:100%;min-height:300px}.evolution-container[data-v-bcf5d3ee]{height:100%;overflow-y:auto;padding:var(--space-3) var(--space-4);background:var(--bg-primary)}.evolution-tabs[data-v-bcf5d3ee]{height:100%}.evolution-panels[data-v-bcf5d3ee]{display:flex;flex-direction:column;gap:var(--space-4)} diff --git a/src/agentkit/server/static/assets/FolderOpenOutlined-DV9WKc_3.js b/src/agentkit/server/static/assets/FolderOpenOutlined-DV9WKc_3.js new file mode 100644 index 0000000..62e2c6a --- /dev/null +++ b/src/agentkit/server/static/assets/FolderOpenOutlined-DV9WKc_3.js @@ -0,0 +1 @@ +import{u}from"./responsiveObserve-CDxZiPRN.js";import{B as s,$ as i,G as c,H as f,c as p,I as v}from"./index-Ci55MVrK.js";const h=e=>({color:e.colorLink,textDecoration:"none",outline:"none",cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"&:focus, &:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive}});function g(){const e=c({});let t=null;const r=u();return s(()=>{t=r.value.subscribe(n=>{e.value=n})}),i(()=>{r.value.unsubscribe(t)}),e}function H(e){const t=c();return f(()=>{t.value=e()},{flush:"sync"}),t}var d={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"};function a(e){for(var t=1;t1&&arguments[1]!==void 0?arguments[1]:F(()=>!0);const e=x(new Map),t=(m,v)=>{e.value.set(m,v),e.value=new Map(e.value)},l=m=>{e.value.delete(m),e.value=new Map(e.value)};f([o,e],()=>{}),a(r,n),a(s,{addFormItemField:t,removeFormItemField:l})},d={id:F(()=>{}),onFieldBlur:()=>{},onFieldChange:()=>{},clearValidate:()=>{}},u={addFormItemField:()=>{},removeFormItemField:()=>{}},b=()=>{const n=i(s,u),o=Symbol("FormItemFieldKey"),e=C();return n.addFormItemField(o,e.type),p(()=>{n.removeFormItemField(o)}),a(s,u),a(r,d),i(r,d)},K=c({compatConfig:{MODE:3},name:"AFormItemRest",setup(n,o){let{slots:e}=o;return a(s,u),a(r,d),()=>{var t;return(t=e.default)===null||t===void 0?void 0:t.call(e)}}}),g=y({}),M=c({name:"NoFormStatus",setup(n,o){let{slots:e}=o;return g.useProvide({}),()=>{var t;return(t=e.default)===null||t===void 0?void 0:t.call(e)}}});export{g as F,M as N,S as a,K as b,w as o,b as u}; diff --git a/src/agentkit/server/static/assets/KnowledgeBaseView-B7BP9eFg.css b/src/agentkit/server/static/assets/KnowledgeBaseView-B7BP9eFg.css new file mode 100644 index 0000000..a89a994 --- /dev/null +++ b/src/agentkit/server/static/assets/KnowledgeBaseView-B7BP9eFg.css @@ -0,0 +1 @@ +.document-upload[data-v-55410552]{padding:8px 0}.upload-spin[data-v-55410552]{display:block;text-align:center;padding:16px}.document-list[data-v-55410552]{margin-top:16px}.source-config[data-v-752313e6]{padding:8px 0}.source-config__header[data-v-752313e6]{margin-bottom:16px;display:flex;justify-content:flex-end}.search-test[data-v-bfaf0801]{padding:8px 0}.advanced-options[data-v-bfaf0801]{margin-top:12px}.advanced-form[data-v-bfaf0801]{flex-wrap:wrap;gap:8px}.search-results[data-v-bfaf0801]{margin-top:16px}.search-result-item[data-v-bfaf0801]{background:var(--bg-secondary);border:1px solid var(--border-color-split);border-radius:6px;padding:12px 16px;margin-bottom:12px}.search-result-item__header[data-v-bfaf0801]{display:flex;align-items:center;gap:8px;margin-bottom:8px}.search-result-item__index[data-v-bfaf0801]{font-weight:600;color:var(--color-primary)}.search-result-item__score[data-v-bfaf0801]{margin-left:auto;font-size:12px;color:var(--text-placeholder)}.search-result-item__content[data-v-bfaf0801]{font-size:14px;line-height:1.6;color:var(--text-primary);white-space:pre-wrap;max-height:200px;overflow-y:auto}.search-result-item__meta[data-v-bfaf0801]{margin-top:8px;display:flex;flex-wrap:wrap;gap:4px}.kb-view[data-v-e4e6375c]{height:100%;padding:var(--space-4) var(--space-6);overflow-y:auto;background:var(--bg-primary)} diff --git a/src/agentkit/server/static/assets/KnowledgeBaseView-DM5c3M3U.js b/src/agentkit/server/static/assets/KnowledgeBaseView-DM5c3M3U.js new file mode 100644 index 0000000..3c15dc0 --- /dev/null +++ b/src/agentkit/server/static/assets/KnowledgeBaseView-DM5c3M3U.js @@ -0,0 +1,14 @@ +import{P as Ie,a7 as U,a4 as H,az as Y,a8 as le,p as Re,q as We,_ as D,s as Xe,aA as nn,d as V,r as z,A as Ke,z as ve,N as ie,c as l,E as L,aB as on,g as B,J as St,aC as rn,aD as xt,H as Pt,G as he,m as Ve,aE as It,v as qe,aF as Ot,R as an,aj as kt,aG as Dt,aH as ln,ab as sn,aI as ae,a6 as ce,aJ as At,aK as He,F as te,a9 as cn,aL as Ge,ac as un,Z as dn,ad as pn,B as ye,Q as Tt,I as Se,aM as De,aN as fn,aO as mn,a0 as rt,aP as gn,aQ as vn,aR as yn,aS as Rt,aT as Ft,aU as hn,aV as bn,a1 as $n,o as N,a as G,w as x,b as me,e as J,k as ue,f as Q,X,t as Z,ay as q,W as Et,M as at,j as lt}from"./index-Ci55MVrK.js";import{k as wn,f as _n,t as Cn,a as Sn,A as Lt,B as xn}from"./base-B4siOKZE.js";import{a as Pn,b as In,i as de,d as we,_ as Fe}from"./_plugin-vue_export-helper-CBXJ7-XR.js";import{p as On}from"./pickAttrs-Crnv5AEc.js";import{b as kn,F as jt,_ as Ut}from"./index-Cec7QIaL.js";import{c as it,B as Ce}from"./index-Dr_Qcbdk.js";import{u as Bt,C as Dn,E as An,P as Tn,I as Rn,a as Fn,b as En}from"./index-D6JhFblJ.js";import{D as Ln,_ as Mt}from"./DeleteOutlined-BPP2kbR8.js";import{u as jn,T as Un,_ as Bn}from"./index-BLB5C8KY.js";import{g as Nt,c as zt}from"./index-B5q-1V92.js";import{o as Mn,u as Nn}from"./FormItemContext-D_7H_KA_.js";import{_ as Ht}from"./index-DJ0mAqy8.js";import{T as Je}from"./index-DaJ9bCD1.js";import{P as zn}from"./index-BMkziFFN.js";import{c as st,a as Hn,K as Wn}from"./zoom-C2fVs05p.js";import{A as Xn,M as Kn}from"./index-CuVGmFKn.js";import{S as Vn}from"./index-yRXoO2C0.js";import{S as Wt,a as qn}from"./Dropdown-BUKifQVF.js";import{B as Gn}from"./index-3crJqV8H.js";import{S as Jn}from"./index-CzM1ezFC.js";import{R as Qn}from"./LeftOutlined-CXpCfAZF.js";import{_ as Yn}from"./index-Da8dBU05.js";import{A as Zn,a as eo}from"./index-DBR_iMr9.js";import"./responsiveObserve-CDxZiPRN.js";import"./styleChecker-CUnokkun.js";import"./FolderOpenOutlined-DV9WKc_3.js";import"./index-CKNOcsSD.js";import"./Checkbox-C1b034xJ.js";function to(e,t,n,o){for(var a=-1,i=e==null?0:e.length;++a({prefixCls:String,activeKey:le([Array,Number,String]),defaultActiveKey:le([Array,Number,String]),accordion:H(),destroyInactivePanel:H(),bordered:H(),expandIcon:U(),openAnimation:Ie.object,expandIconPosition:Y(),collapsible:Y(),ghost:H(),onChange:U(),"onUpdate:activeKey":U()}),Xt=()=>({openAnimation:Ie.object,prefixCls:String,header:Ie.any,headerClass:String,showArrow:H(),isActive:H(),destroyInactivePanel:H(),disabled:H(),accordion:H(),forceRender:H(),expandIcon:U(),extra:Ie.any,panelKey:le(),collapsible:Y(),role:String,onItemClick:U()}),po=e=>{const{componentCls:t,collapseContentBg:n,padding:o,collapseContentPaddingHorizontal:a,collapseHeaderBg:i,collapseHeaderPadding:r,collapsePanelBorderRadius:c,lineWidth:d,lineType:b,colorBorder:f,colorText:_,colorTextHeading:S,colorTextDisabled:$,fontSize:k,lineHeight:u,marginSM:C,paddingSM:g,motionDurationSlow:s,fontSizeIcon:h}=e,p=`${d}px ${b} ${f}`;return{[t]:D(D({},Xe(e)),{backgroundColor:i,border:p,borderBottom:0,borderRadius:`${c}px`,"&-rtl":{direction:"rtl"},[`& > ${t}-item`]:{borderBottom:p,"&:last-child":{[` + &, + & > ${t}-header`]:{borderRadius:`0 0 ${c}px ${c}px`}},[`> ${t}-header`]:{position:"relative",display:"flex",flexWrap:"nowrap",alignItems:"flex-start",padding:r,color:S,lineHeight:u,cursor:"pointer",transition:`all ${s}, visibility 0s`,[`> ${t}-header-text`]:{flex:"auto"},"&:focus":{outline:"none"},[`${t}-expand-icon`]:{height:k*u,display:"flex",alignItems:"center",paddingInlineEnd:C},[`${t}-arrow`]:D(D({},nn()),{fontSize:h,svg:{transition:`transform ${s}`}}),[`${t}-header-text`]:{marginInlineEnd:"auto"}},[`${t}-header-collapsible-only`]:{cursor:"default",[`${t}-header-text`]:{flex:"none",cursor:"pointer"},[`${t}-expand-icon`]:{cursor:"pointer"}},[`${t}-icon-collapsible-only`]:{cursor:"default",[`${t}-expand-icon`]:{cursor:"pointer"}},[`&${t}-no-arrow`]:{[`> ${t}-header`]:{paddingInlineStart:g}}},[`${t}-content`]:{color:_,backgroundColor:n,borderTop:p,[`& > ${t}-content-box`]:{padding:`${o}px ${a}px`},"&-hidden":{display:"none"}},[`${t}-item:last-child`]:{[`> ${t}-content`]:{borderRadius:`0 0 ${c}px ${c}px`}},[`& ${t}-item-disabled > ${t}-header`]:{"\n &,\n & > .arrow\n ":{color:$,cursor:"not-allowed"}},[`&${t}-icon-position-end`]:{[`& > ${t}-item`]:{[`> ${t}-header`]:{[`${t}-expand-icon`]:{order:1,paddingInlineEnd:0,paddingInlineStart:C}}}}})}},fo=e=>{const{componentCls:t}=e,n=`> ${t}-item > ${t}-header ${t}-arrow svg`;return{[`${t}-rtl`]:{[n]:{transform:"rotate(180deg)"}}}},mo=e=>{const{componentCls:t,collapseHeaderBg:n,paddingXXS:o,colorBorder:a}=e;return{[`${t}-borderless`]:{backgroundColor:n,border:0,[`> ${t}-item`]:{borderBottom:`1px solid ${a}`},[` + > ${t}-item:last-child, + > ${t}-item:last-child ${t}-header + `]:{borderRadius:0},[`> ${t}-item:last-child`]:{borderBottom:0},[`> ${t}-item > ${t}-content`]:{backgroundColor:"transparent",borderTop:0},[`> ${t}-item > ${t}-content > ${t}-content-box`]:{paddingTop:o}}}},go=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}}}}}},vo=Re("Collapse",e=>{const t=We(e,{collapseContentBg:e.colorBgContainer,collapseHeaderBg:e.colorFillAlter,collapseHeaderPadding:`${e.paddingSM}px ${e.padding}px`,collapsePanelBorderRadius:e.borderRadiusLG,collapseContentPaddingHorizontal:16});return[po(t),mo(t),go(t),fo(t),Nt(t)]});function ct(e){let t=e;if(!Array.isArray(t)){const n=typeof t;t=n==="number"||n==="string"?[t]:[]}return t.map(n=>String(n))}const _e=V({compatConfig:{MODE:3},name:"ACollapse",inheritAttrs:!1,props:de(uo(),{accordion:!1,destroyInactivePanel:!1,bordered:!0,expandIconPosition:"start"}),slots:Object,setup(e,t){let{attrs:n,slots:o,emit:a}=t;const i=z(ct(_n([e.activeKey,e.defaultActiveKey])));Ke(()=>e.activeKey,()=>{i.value=ct(e.activeKey)},{deep:!0});const{prefixCls:r,direction:c,rootPrefixCls:d}=ve("collapse",e),[b,f]=vo(r),_=B(()=>{const{expandIconPosition:g}=e;return g!==void 0?g:c.value==="rtl"?"end":"start"}),S=g=>{const{expandIcon:s=o.expandIcon}=e,h=s?s(g):l(Qn,{rotate:g.isActive?90:void 0},null);return l("div",{class:[`${r.value}-expand-icon`,f.value],onClick:()=>["header","icon"].includes(e.collapsible)&&k(g.panelKey)},[xt(Array.isArray(s)?h[0]:h)?st(h,{class:`${r.value}-arrow`},!1):h])},$=g=>{e.activeKey===void 0&&(i.value=g);const s=e.accordion?g[0]:g;a("update:activeKey",s),a("change",s)},k=g=>{let s=i.value;if(e.accordion)s=s[0]===g?[]:[g];else{s=[...s];const h=s.indexOf(g);h>-1?s.splice(h,1):s.push(g)}$(s)},u=(g,s)=>{var h,p,y;if(rn(g))return;const m=i.value,{accordion:P,destroyInactivePanel:T,collapsible:F,openAnimation:R}=e,w=R||zt(`${d.value}-motion-collapse`),I=String((h=g.key)!==null&&h!==void 0?h:s),{header:O=(y=(p=g.children)===null||p===void 0?void 0:p.header)===null||y===void 0?void 0:y.call(p),headerClass:A,collapsible:E,disabled:v}=g.props||{};let j=!1;P?j=m[0]===I:j=m.indexOf(I)>-1;let M=E??F;(v||v==="")&&(M="disabled");const W={key:I,panelKey:I,header:O,headerClass:A,isActive:j,prefixCls:r.value,destroyInactivePanel:T,openAnimation:w,accordion:P,onItemClick:M==="disabled"?null:k,expandIcon:S,collapsible:M};return st(g,W)},C=()=>{var g;return St((g=o.default)===null||g===void 0?void 0:g.call(o)).map(u)};return()=>{const{accordion:g,bordered:s,ghost:h}=e,p=ie(r.value,{[`${r.value}-borderless`]:!s,[`${r.value}-icon-position-${_.value}`]:!0,[`${r.value}-rtl`]:c.value==="rtl",[`${r.value}-ghost`]:!!h,[n.class]:!!n.class},f.value);return b(l("div",L(L({class:p},on(n)),{},{style:n.style,role:g?"tablist":null}),[C()]))}}}),yo=V({compatConfig:{MODE:3},name:"PanelContent",props:Xt(),setup(e,t){let{slots:n}=t;const o=he(!1);return Pt(()=>{(e.isActive||e.forceRender)&&(o.value=!0)}),()=>{var a;if(!o.value)return null;const{prefixCls:i,isActive:r,role:c}=e;return l("div",{class:ie(`${i}-content`,{[`${i}-content-active`]:r,[`${i}-content-inactive`]:!r}),role:c},[l("div",{class:`${i}-content-box`},[(a=n.default)===null||a===void 0?void 0:a.call(n)])])}}}),Ae=V({compatConfig:{MODE:3},name:"ACollapsePanel",inheritAttrs:!1,props:de(Xt(),{showArrow:!0,isActive:!1,onItemClick(){},headerClass:"",forceRender:!1}),slots:Object,setup(e,t){let{slots:n,emit:o,attrs:a}=t;we(e.disabled===void 0,"Collapse.Panel",'`disabled` is deprecated. Please use `collapsible="disabled"` instead.');const{prefixCls:i}=ve("collapse",e),r=()=>{o("itemClick",e.panelKey)},c=d=>{(d.key==="Enter"||d.keyCode===13||d.which===13)&&r()};return()=>{var d,b;const{header:f=(d=n.header)===null||d===void 0?void 0:d.call(n),headerClass:_,isActive:S,showArrow:$,destroyInactivePanel:k,accordion:u,forceRender:C,openAnimation:g,expandIcon:s=n.expandIcon,extra:h=(b=n.extra)===null||b===void 0?void 0:b.call(n),collapsible:p}=e,y=p==="disabled",m=i.value,P=ie(`${m}-header`,{[_]:_,[`${m}-header-collapsible-only`]:p==="header",[`${m}-icon-collapsible-only`]:p==="icon"}),T=ie({[`${m}-item`]:!0,[`${m}-item-active`]:S,[`${m}-item-disabled`]:y,[`${m}-no-arrow`]:!$,[`${a.class}`]:!!a.class});let F=l("i",{class:"arrow"},null);$&&typeof s=="function"&&(F=s(e));const R=Ve(l(yo,{prefixCls:m,isActive:S,forceRender:C,role:u?"tabpanel":null},{default:n.default}),[[qe,S]]),w=D({appear:!1,css:!1},g);return l("div",L(L({},a),{},{class:T}),[l("div",{class:P,onClick:()=>!["header","icon"].includes(p)&&r(),role:u?"tab":"button",tabindex:y?-1:0,"aria-expanded":S,onKeypress:c},[$&&F,l("span",{onClick:()=>p==="header"&&r(),class:`${m}-header-text`},[f]),h&&l("div",{class:`${m}-extra`},[h])]),l(It,w,{default:()=>[!k||S?R:null]})])}}});_e.Panel=Ae;_e.install=function(e){return e.component(_e.name,_e),e.component(Ae.name,Ae),e};const ho=e=>{const{componentCls:t,iconCls:n,zIndexPopup:o,colorText:a,colorWarning:i,marginXS:r,fontSize:c,fontWeightStrong:d,lineHeight:b}=e;return{[t]:{zIndex:o,[`${t}-inner-content`]:{color:a},[`${t}-message`]:{position:"relative",marginBottom:r,color:a,fontSize:c,display:"flex",flexWrap:"nowrap",alignItems:"start",[`> ${t}-message-icon ${n}`]:{color:i,fontSize:c,flex:"none",lineHeight:1,paddingTop:(Math.round(c*b)-c)/2},"&-title":{flex:"auto",marginInlineStart:r},"&-title-only":{fontWeight:d}},[`${t}-description`]:{position:"relative",marginInlineStart:c+r,marginBottom:r,color:a,fontSize:c},[`${t}-buttons`]:{textAlign:"end",button:{marginInlineStart:r}}}}},bo=Re("Popconfirm",e=>ho(e),e=>{const{zIndexPopupBase:t}=e;return{zIndexPopup:t+60}});var $o=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,o=Object.getOwnPropertySymbols(e);aD(D({},Sn()),{prefixCls:String,content:ce(),title:ce(),description:ce(),okType:Y("primary"),disabled:{type:Boolean,default:!1},okText:ce(),cancelText:ce(),icon:ce(),okButtonProps:ae(),cancelButtonProps:ae(),showCancel:{type:Boolean,default:!0},onConfirm:Function,onCancel:Function}),_o=V({compatConfig:{MODE:3},name:"APopconfirm",inheritAttrs:!1,props:de(wo(),D(D({},Cn()),{trigger:"click",placement:"top",mouseEnterDelay:.1,mouseLeaveDelay:.1,arrowPointAtCenter:!1,autoAdjustOverflow:!0,okType:"primary",disabled:!1})),slots:Object,setup(e,t){let{slots:n,emit:o,expose:a,attrs:i}=t;const r=z();an(e.visible===void 0),a({getPopupDomNode:()=>{var m,P;return(P=(m=r.value)===null||m===void 0?void 0:m.getPopupDomNode)===null||P===void 0?void 0:P.call(m)}});const[c,d]=Bt(!1,{value:kt(e,"open")}),b=(m,P)=>{e.open===void 0&&d(m),o("update:open",m),o("openChange",m,P)},f=m=>{b(!1,m)},_=m=>{var P;return(P=e.onConfirm)===null||P===void 0?void 0:P.call(e,m)},S=m=>{var P;b(!1,m),(P=e.onCancel)===null||P===void 0||P.call(e,m)},$=m=>{m.keyCode===Wn.ESC&&c&&b(!1,m)},k=m=>{const{disabled:P}=e;P||b(m)},{prefixCls:u,getPrefixCls:C}=ve("popconfirm",e),g=B(()=>C()),s=B(()=>C("btn")),[h]=bo(u),[p]=Dt("Popconfirm",At.Popconfirm),y=()=>{var m,P,T,F,R;const{okButtonProps:w,cancelButtonProps:I,title:O=(m=n.title)===null||m===void 0?void 0:m.call(n),description:A=(P=n.description)===null||P===void 0?void 0:P.call(n),cancelText:E=(T=n.cancel)===null||T===void 0?void 0:T.call(n),okText:v=(F=n.okText)===null||F===void 0?void 0:F.call(n),okType:j,icon:M=((R=n.icon)===null||R===void 0?void 0:R.call(n))||l(sn,null,null),showCancel:W=!0}=e,{cancelButton:ne,okButton:se}=n,ee=D({onClick:S,size:"small"},I),oe=D(D(D({onClick:_},it(j)),{size:"small"}),w);return l("div",{class:`${u.value}-inner-content`},[l("div",{class:`${u.value}-message`},[M&&l("span",{class:`${u.value}-message-icon`},[M]),l("div",{class:[`${u.value}-message-title`,{[`${u.value}-message-title-only`]:!!A}]},[O])]),A&&l("div",{class:`${u.value}-description`},[A]),l("div",{class:`${u.value}-buttons`},[W?ne?ne(ee):l(Ce,ee,{default:()=>[E||p.value.cancelText]}):null,se?se(oe):l(Xn,{buttonProps:D(D({size:"small"},it(j)),w),actionFn:_,close:f,prefixCls:s.value,quitOnNullishReturnValue:!0,emitEvent:!0},{default:()=>[v||p.value.okText]})])])};return()=>{var m;const{placement:P,overlayClassName:T,trigger:F="click"}=e,R=$o(e,["placement","overlayClassName","trigger"]),w=Mn(R,["title","content","cancelText","okText","onUpdate:open","onConfirm","onCancel","prefixCls"]),I=ie(u.value,T);return h(l(zn,L(L(L({},w),i),{},{trigger:F,placement:P,onOpenChange:k,open:c.value,overlayClassName:I,transitionName:ln(g.value,"zoom-big",e.transitionName),ref:r,"data-popover-inject":!0}),{default:()=>[Hn(((m=n.default)===null||m===void 0?void 0:m.call(n))||[],{onKeydown:O=>{$(O)}},!1)],content:y}))}}}),Kt=Ot(_o),Co=["normal","exception","active","success"],Ee=()=>({prefixCls:String,type:Y(),percent:Number,format:U(),status:Y(),showInfo:H(),strokeWidth:Number,strokeLinecap:Y(),strokeColor:ce(),trailColor:String,width:Number,success:ae(),gapDegree:Number,gapPosition:Y(),size:le([String,Number,Array]),steps:Number,successPercent:Number,title:String,progressStatus:Y()});function ge(e){return!e||e<0?0:e>100?100:e}function Te(e){let{success:t,successPercent:n}=e,o=n;return t&&"progress"in t&&(we(!1,"Progress","`success.progress` is deprecated. Please use `success.percent` instead."),o=t.progress),t&&"percent"in t&&(o=t.percent),o}function So(e){let{percent:t,success:n,successPercent:o}=e;const a=ge(Te({success:n,successPercent:o}));return[a,ge(ge(t)-a)]}function xo(e){let{success:t={},strokeColor:n}=e;const{strokeColor:o}=t;return[o||He.green,n||null]}const Le=(e,t,n)=>{var o,a,i,r;let c=-1,d=-1;if(t==="step"){const b=n.steps,f=n.strokeWidth;typeof e=="string"||typeof e>"u"?(c=e==="small"?2:14,d=f??8):typeof e=="number"?[c,d]=[e,e]:[c=14,d=8]=e,c*=b}else if(t==="line"){const b=n==null?void 0:n.strokeWidth;typeof e=="string"||typeof e>"u"?d=b||(e==="small"?6:8):typeof e=="number"?[c,d]=[e,e]:[c=-1,d=8]=e}else(t==="circle"||t==="dashboard")&&(typeof e=="string"||typeof e>"u"?[c,d]=e==="small"?[60,60]:[120,120]:typeof e=="number"?[c,d]=[e,e]:(c=(a=(o=e[0])!==null&&o!==void 0?o:e[1])!==null&&a!==void 0?a:120,d=(r=(i=e[0])!==null&&i!==void 0?i:e[1])!==null&&r!==void 0?r:120));return{width:c,height:d}};var Po=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,o=Object.getOwnPropertySymbols(e);aD(D({},Ee()),{strokeColor:ce(),direction:Y()}),Oo=e=>{let t=[];return Object.keys(e).forEach(n=>{const o=parseFloat(n.replace(/%/g,""));isNaN(o)||t.push({key:o,value:e[n]})}),t=t.sort((n,o)=>n.key-o.key),t.map(n=>{let{key:o,value:a}=n;return`${a} ${o}%`}).join(", ")},ko=(e,t)=>{const{from:n=He.blue,to:o=He.blue,direction:a=t==="rtl"?"to left":"to right"}=e,i=Po(e,["from","to","direction"]);if(Object.keys(i).length!==0){const r=Oo(i);return{backgroundImage:`linear-gradient(${a}, ${r})`}}return{backgroundImage:`linear-gradient(${a}, ${n}, ${o})`}},Do=V({compatConfig:{MODE:3},name:"ProgressLine",inheritAttrs:!1,props:Io(),setup(e,t){let{slots:n,attrs:o}=t;const a=B(()=>{const{strokeColor:$,direction:k}=e;return $&&typeof $!="string"?ko($,k):{backgroundColor:$}}),i=B(()=>e.strokeLinecap==="square"||e.strokeLinecap==="butt"?0:void 0),r=B(()=>e.trailColor?{backgroundColor:e.trailColor}:void 0),c=B(()=>{var $;return($=e.size)!==null&&$!==void 0?$:[-1,e.strokeWidth||(e.size==="small"?6:8)]}),d=B(()=>Le(c.value,"line",{strokeWidth:e.strokeWidth})),b=B(()=>{const{percent:$}=e;return D({width:`${ge($)}%`,height:`${d.value.height}px`,borderRadius:i.value},a.value)}),f=B(()=>Te(e)),_=B(()=>{const{success:$}=e;return{width:`${ge(f.value)}%`,height:`${d.value.height}px`,borderRadius:i.value,backgroundColor:$==null?void 0:$.strokeColor}}),S={width:d.value.width<0?"100%":d.value.width,height:`${d.value.height}px`};return()=>{var $;return l(te,null,[l("div",L(L({},o),{},{class:[`${e.prefixCls}-outer`,o.class],style:[o.style,S]}),[l("div",{class:`${e.prefixCls}-inner`,style:r.value},[l("div",{class:`${e.prefixCls}-bg`,style:b.value},null),f.value!==void 0?l("div",{class:`${e.prefixCls}-success-bg`,style:_.value},null):null])]),($=n.default)===null||$===void 0?void 0:$.call(n)])}}}),Ao={percent:0,prefixCls:"vc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1},To=e=>{const t=z(null);return cn(()=>{const n=Date.now();let o=!1;e.value.forEach(a=>{const i=(a==null?void 0:a.$el)||a;if(!i)return;o=!0;const r=i.style;r.transitionDuration=".3s, .3s, .3s, .06s",t.value&&n-t.value<100&&(r.transitionDuration="0s, 0s")}),o&&(t.value=Date.now())}),e},Ro={gapDegree:Number,gapPosition:{type:String},percent:{type:[Array,Number]},prefixCls:String,strokeColor:{type:[Object,String,Array]},strokeLinecap:{type:String},strokeWidth:Number,trailColor:String,trailWidth:Number,transition:String};var Fo=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,o=Object.getOwnPropertySymbols(e);a4&&arguments[4]!==void 0?arguments[4]:0,i=arguments.length>5?arguments[5]:void 0;const r=50-o/2;let c=0,d=-r,b=0,f=-2*r;switch(i){case"left":c=-r,d=0,b=2*r,f=0;break;case"right":c=r,d=0,b=-2*r,f=0;break;case"bottom":d=r,f=2*r;break}const _=`M 50,50 m ${c},${d} + a ${r},${r} 0 1 1 ${b},${-f} + a ${r},${r} 0 1 1 ${-b},${f}`,S=Math.PI*2*r,$={stroke:n,strokeDasharray:`${t/100*(S-a)}px ${S}px`,strokeDashoffset:`-${a/2+e/100*(S-a)}px`,transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s, opacity .3s ease 0s"};return{pathString:_,pathStyle:$}}const Eo=V({compatConfig:{MODE:3},name:"VCCircle",props:de(Ro,Ao),setup(e){ut+=1;const t=z(ut),n=B(()=>pt(e.percent)),o=B(()=>pt(e.strokeColor)),[a,i]=jn();To(i);const r=()=>{const{prefixCls:c,strokeWidth:d,strokeLinecap:b,gapDegree:f,gapPosition:_}=e;let S=0;return n.value.map(($,k)=>{const u=o.value[k]||o.value[o.value.length-1],C=Object.prototype.toString.call(u)==="[object Object]"?`url(#${c}-gradient-${t.value})`:"",{pathString:g,pathStyle:s}=ft(S,$,u,d,f,_);S+=$;const h={key:k,d:g,stroke:C,"stroke-linecap":b,"stroke-width":d,opacity:$===0?0:1,"fill-opacity":"0",class:`${c}-circle-path`,style:s};return l("path",L({ref:a(k)},h),null)})};return()=>{const{prefixCls:c,strokeWidth:d,trailWidth:b,gapDegree:f,gapPosition:_,trailColor:S,strokeLinecap:$,strokeColor:k}=e,u=Fo(e,["prefixCls","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","strokeColor"]),{pathString:C,pathStyle:g}=ft(0,100,S,d,f,_);delete u.percent;const s=o.value.find(p=>Object.prototype.toString.call(p)==="[object Object]"),h={d:C,stroke:S,"stroke-linecap":$,"stroke-width":b||d,"fill-opacity":"0",class:`${c}-circle-trail`,style:g};return l("svg",L({class:`${c}-circle`,viewBox:"0 0 100 100"},u),[s&&l("defs",null,[l("linearGradient",{id:`${c}-gradient-${t.value}`,x1:"100%",y1:"0%",x2:"0%",y2:"0%"},[Object.keys(s).sort((p,y)=>dt(p)-dt(y)).map((p,y)=>l("stop",{key:y,offset:p,"stop-color":s[p]},null))])]),l("path",h,null),r().reverse()])}}}),Lo=()=>D(D({},Ee()),{strokeColor:ce()}),jo=3,Uo=e=>jo/e*100,Bo=V({compatConfig:{MODE:3},name:"ProgressCircle",inheritAttrs:!1,props:de(Lo(),{trailColor:null}),setup(e,t){let{slots:n,attrs:o}=t;const a=B(()=>{var u;return(u=e.width)!==null&&u!==void 0?u:120}),i=B(()=>{var u;return(u=e.size)!==null&&u!==void 0?u:[a.value,a.value]}),r=B(()=>Le(i.value,"circle")),c=B(()=>{if(e.gapDegree||e.gapDegree===0)return e.gapDegree;if(e.type==="dashboard")return 75}),d=B(()=>({width:`${r.value.width}px`,height:`${r.value.height}px`,fontSize:`${r.value.width*.15+6}px`})),b=B(()=>{var u;return(u=e.strokeWidth)!==null&&u!==void 0?u:Math.max(Uo(r.value.width),6)}),f=B(()=>e.gapPosition||e.type==="dashboard"&&"bottom"||void 0),_=B(()=>So(e)),S=B(()=>Object.prototype.toString.call(e.strokeColor)==="[object Object]"),$=B(()=>xo({success:e.success,strokeColor:e.strokeColor})),k=B(()=>({[`${e.prefixCls}-inner`]:!0,[`${e.prefixCls}-circle-gradient`]:S.value}));return()=>{var u;const C=l(Eo,{percent:_.value,strokeWidth:b.value,trailWidth:b.value,strokeColor:$.value,strokeLinecap:e.strokeLinecap,trailColor:e.trailColor,prefixCls:e.prefixCls,gapDegree:c.value,gapPosition:f.value},null);return l("div",L(L({},o),{},{class:[k.value,o.class],style:[o.style,d.value]}),[r.value.width<=20?l(Lt,null,{default:()=>[l("span",null,[C])],title:n.default}):l(te,null,[C,(u=n.default)===null||u===void 0?void 0:u.call(n)])])}}}),Mo=()=>D(D({},Ee()),{steps:Number,strokeColor:le(),trailColor:String}),No=V({compatConfig:{MODE:3},name:"Steps",props:Mo(),setup(e,t){let{slots:n}=t;const o=B(()=>Math.round(e.steps*((e.percent||0)/100))),a=B(()=>{var c;return(c=e.size)!==null&&c!==void 0?c:[e.size==="small"?2:14,e.strokeWidth||8]}),i=B(()=>Le(a.value,"step",{steps:e.steps,strokeWidth:e.strokeWidth||8})),r=B(()=>{const{steps:c,strokeColor:d,trailColor:b,prefixCls:f}=e,_=[];for(let S=0;S{var c;return l("div",{class:`${e.prefixCls}-steps-outer`},[r.value,(c=n.default)===null||c===void 0?void 0:c.call(n)])}}}),zo=new Ge("antProgressActive",{"0%":{transform:"translateX(-100%) scaleX(0)",opacity:.1},"20%":{transform:"translateX(-100%) scaleX(0)",opacity:.5},to:{transform:"translateX(0) scaleX(1)",opacity:0}}),Ho=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:D(D({},Xe(e)),{display:"inline-block","&-rtl":{direction:"rtl"},"&-line":{position:"relative",width:"100%",fontSize:e.fontSize,marginInlineEnd:e.marginXS,marginBottom:e.marginXS},[`${t}-outer`]:{display:"inline-block",width:"100%"},[`&${t}-show-info`]:{[`${t}-outer`]:{marginInlineEnd:`calc(-2em - ${e.marginXS}px)`,paddingInlineEnd:`calc(2em + ${e.paddingXS}px)`}},[`${t}-inner`]:{position:"relative",display:"inline-block",width:"100%",overflow:"hidden",verticalAlign:"middle",backgroundColor:e.progressRemainingColor,borderRadius:e.progressLineRadius},[`${t}-inner:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.colorInfo}},[`${t}-success-bg, ${t}-bg`]:{position:"relative",backgroundColor:e.colorInfo,borderRadius:e.progressLineRadius,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOutCirc}`},[`${t}-success-bg`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,backgroundColor:e.colorSuccess},[`${t}-text`]:{display:"inline-block",width:"2em",marginInlineStart:e.marginXS,color:e.progressInfoTextColor,lineHeight:1,whiteSpace:"nowrap",textAlign:"start",verticalAlign:"middle",wordBreak:"normal",[n]:{fontSize:e.fontSize}},[`&${t}-status-active`]:{[`${t}-bg::before`]:{position:"absolute",inset:0,backgroundColor:e.colorBgContainer,borderRadius:e.progressLineRadius,opacity:0,animationName:zo,animationDuration:e.progressActiveMotionDuration,animationTimingFunction:e.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${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}}})}},Wo=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:{[`${t}-circle-trail`]:{stroke:e.progressRemainingColor},[`&${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.colorText,lineHeight:1,whiteSpace:"normal",textAlign:"center",transform:"translateY(-50%)",[n]:{fontSize:`${e.fontSize/e.fontSizeSM}em`}},[`${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"}}}},Xo=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.progressRemainingColor,transition:`all ${e.motionDurationSlow}`,"&-active":{backgroundColor:e.colorInfo}}}}}},Ko=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:{[`${t}-small&-line, ${t}-small&-line ${t}-text ${n}`]:{fontSize:e.fontSizeSM}}}},Vo=Re("Progress",e=>{const t=e.marginXXS/2,n=We(e,{progressLineRadius:100,progressInfoTextColor:e.colorText,progressDefaultColor:e.colorInfo,progressRemainingColor:e.colorFillSecondary,progressStepMarginInlineEnd:t,progressStepMinWidth:t,progressActiveMotionDuration:"2.4s"});return[Ho(n),Wo(n),Xo(n),Ko(n)]});var qo=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,o=Object.getOwnPropertySymbols(e);aArray.isArray(e.strokeColor)?e.strokeColor[0]:e.strokeColor),b=B(()=>{const{percent:k=0}=e,u=Te(e);return parseInt(u!==void 0?u.toString():k.toString(),10)}),f=B(()=>{const{status:k}=e;return!Co.includes(k)&&b.value>=100?"success":k||"normal"}),_=B(()=>{const{type:k,showInfo:u,size:C}=e,g=a.value;return{[g]:!0,[`${g}-inline-circle`]:k==="circle"&&Le(C,"circle").width<=20,[`${g}-${k==="dashboard"&&"circle"||k}`]:!0,[`${g}-status-${f.value}`]:!0,[`${g}-show-info`]:u,[`${g}-${C}`]:C,[`${g}-rtl`]:i.value==="rtl",[c.value]:!0}}),S=B(()=>typeof e.strokeColor=="string"||Array.isArray(e.strokeColor)?e.strokeColor:void 0),$=()=>{const{showInfo:k,format:u,type:C,percent:g,title:s}=e,h=Te(e);if(!k)return null;let p;const y=u||(n==null?void 0:n.format)||(P=>`${P}%`),m=C==="line";return u||n!=null&&n.format||f.value!=="exception"&&f.value!=="success"?p=y(ge(g),ge(h)):f.value==="exception"?p=m?l(un,null,null):l(dn,null,null):f.value==="success"&&(p=m?l(pn,null,null):l(Dn,null,null)),l("span",{class:`${a.value}-text`,title:s===void 0&&typeof p=="string"?p:void 0},[p])};return()=>{const{type:k,steps:u,title:C}=e,{class:g}=o,s=qo(o,["class"]),h=$();let p;return k==="line"?p=u?l(No,L(L({},e),{},{strokeColor:S.value,prefixCls:a.value,steps:u}),{default:()=>[h]}):l(Do,L(L({},e),{},{strokeColor:d.value,prefixCls:a.value,direction:i.value}),{default:()=>[h]}):(k==="circle"||k==="dashboard")&&(p=l(Bo,L(L({},e),{},{prefixCls:a.value,strokeColor:d.value,progressStatus:f.value}),{default:()=>[h]})),r(l("div",L(L({role:"progressbar"},s),{},{class:[_.value,g],title:C}),[p]))}}}),Jo=Ot(Go);function Qo(e,t){const n=`cannot ${e.method} ${e.action} ${t.status}'`,o=new Error(n);return o.status=t.status,o.method=e.method,o.url=e.action,o}function mt(e){const t=e.responseText||e.response;if(!t)return t;try{return JSON.parse(t)}catch{return t}}function Yo(e){const t=new XMLHttpRequest;e.onProgress&&t.upload&&(t.upload.onprogress=function(i){i.total>0&&(i.percent=i.loaded/i.total*100),e.onProgress(i)});const n=new FormData;e.data&&Object.keys(e.data).forEach(a=>{const i=e.data[a];if(Array.isArray(i)){i.forEach(r=>{n.append(`${a}[]`,r)});return}n.append(a,i)}),e.file instanceof Blob?n.append(e.filename,e.file,e.file.name):n.append(e.filename,e.file),t.onerror=function(i){e.onError(i)},t.onload=function(){return t.status<200||t.status>=300?e.onError(Qo(e,t),mt(t)):e.onSuccess(mt(t),t)},t.open(e.method,e.action,!0),e.withCredentials&&"withCredentials"in t&&(t.withCredentials=!0);const o=e.headers||{};return o["X-Requested-With"]!==null&&t.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(o).forEach(a=>{o[a]!==null&&t.setRequestHeader(a,o[a])}),t.send(n),{abort(){t.abort()}}}const Zo=+new Date;let er=0;function Be(){return`vc-upload-${Zo}-${++er}`}const Me=(e,t)=>{if(e&&t){const n=Array.isArray(t)?t:t.split(","),o=e.name||"",a=e.type||"",i=a.replace(/\/.*$/,"");return n.some(r=>{const c=r.trim();if(/^\*(\/\*)?$/.test(r))return!0;if(c.charAt(0)==="."){const d=o.toLowerCase(),b=c.toLowerCase();let f=[b];return(b===".jpg"||b===".jpeg")&&(f=[".jpg",".jpeg"]),f.some(_=>d.endsWith(_))}return/\/\*$/.test(c)?i===c.replace(/\/.*$/,""):!!(a===c||/^\w+$/.test(c))})}return!0};function tr(e,t){const n=e.createReader();let o=[];function a(){n.readEntries(i=>{const r=Array.prototype.slice.apply(i);o=o.concat(r),!r.length?t(o):a()})}a()}const nr=(e,t,n)=>{const o=(a,i)=>{a.path=i||"",a.isFile?a.file(r=>{n(r)&&(a.fullPath&&!r.webkitRelativePath&&(Object.defineProperties(r,{webkitRelativePath:{writable:!0}}),r.webkitRelativePath=a.fullPath.replace(/^\//,""),Object.defineProperties(r,{webkitRelativePath:{writable:!1}})),t([r]))}):a.isDirectory&&tr(a,r=>{r.forEach(c=>{o(c,`${i}${a.name}/`)})})};e.forEach(a=>{o(a.webkitGetAsEntry())})},Vt=()=>({capture:[Boolean,String],multipart:{type:Boolean,default:void 0},name:String,disabled:{type:Boolean,default:void 0},componentTag:String,action:[String,Function],method:String,directory:{type:Boolean,default:void 0},data:[Object,Function],headers:Object,accept:String,multiple:{type:Boolean,default:void 0},onBatchStart:Function,onReject:Function,onStart:Function,onError:Function,onSuccess:Function,onProgress:Function,beforeUpload:Function,customRequest:Function,withCredentials:{type:Boolean,default:void 0},openFileDialogOnClick:{type:Boolean,default:void 0},prefixCls:String,id:String,onMouseenter:Function,onMouseleave:Function,onClick:Function});var or=function(e,t,n,o){function a(i){return i instanceof n?i:new n(function(r){r(i)})}return new(n||(n=Promise))(function(i,r){function c(f){try{b(o.next(f))}catch(_){r(_)}}function d(f){try{b(o.throw(f))}catch(_){r(_)}}function b(f){f.done?i(f.value):a(f.value).then(c,d)}b((o=o.apply(e,t||[])).next())})},rr=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,o=Object.getOwnPropertySymbols(e);aor(this,void 0,void 0,function*(){const{beforeUpload:p}=e;let y=s;if(p){try{y=yield p(s,h)}catch{y=!1}if(y===!1)return{origin:s,parsedFile:null,action:null,data:null}}const{action:m}=e;let P;typeof m=="function"?P=yield m(s):P=m;const{data:T}=e;let F;typeof T=="function"?F=yield T(s):F=T;const R=(typeof y=="object"||typeof y=="string")&&y?y:s;let w;R instanceof File?w=R:w=new File([R],s.name,{type:s.type});const I=w;return I.uid=s.uid,{origin:s,data:F,parsedFile:I,action:P}}),f=s=>{let{data:h,origin:p,action:y,parsedFile:m}=s;if(!d)return;const{onStart:P,customRequest:T,name:F,headers:R,withCredentials:w,method:I}=e,{uid:O}=p,A=T||Yo,E={action:y,filename:F,data:h,file:m,headers:R,withCredentials:w,method:I||"post",onProgress:v=>{const{onProgress:j}=e;j==null||j(v,m)},onSuccess:(v,j)=>{const{onSuccess:M}=e;M==null||M(v,m,j),delete r[O]},onError:(v,j)=>{const{onError:M}=e;M==null||M(v,j,m),delete r[O]}};P(p),r[O]=A(E)},_=()=>{i.value=Be()},S=s=>{if(s){const h=s.uid?s.uid:s;r[h]&&r[h].abort&&r[h].abort(),delete r[h]}else Object.keys(r).forEach(h=>{r[h]&&r[h].abort&&r[h].abort(),delete r[h]})};ye(()=>{d=!0}),Tt(()=>{d=!1,S()});const $=s=>{const h=[...s],p=h.map(y=>(y.uid=Be(),b(y,h)));Promise.all(p).then(y=>{const{onBatchStart:m}=e;m==null||m(y.map(P=>{let{origin:T,parsedFile:F}=P;return{file:T,parsedFile:F}})),y.filter(P=>P.parsedFile!==null).forEach(P=>{f(P)})})},k=s=>{const{accept:h,directory:p}=e,{files:y}=s.target,m=[...y].filter(P=>!p||Me(P,h));$(m),_()},u=s=>{const h=c.value;if(!h)return;const{onClick:p}=e;h.click(),p&&p(s)},C=s=>{s.key==="Enter"&&u(s)},g=s=>{const{multiple:h}=e;if(s.preventDefault(),s.type!=="dragover")if(e.directory)nr(Array.prototype.slice.call(s.dataTransfer.items),$,p=>Me(p,e.accept));else{const p=co(Array.prototype.slice.call(s.dataTransfer.files),P=>Me(P,e.accept));let y=p[0];const m=p[1];h===!1&&(y=y.slice(0,1)),$(y),m.length&&e.onReject&&e.onReject(m)}};return a({abort:S}),()=>{var s;const{componentTag:h,prefixCls:p,disabled:y,id:m,multiple:P,accept:T,capture:F,directory:R,openFileDialogOnClick:w,onMouseenter:I,onMouseleave:O}=e,A=rr(e,["componentTag","prefixCls","disabled","id","multiple","accept","capture","directory","openFileDialogOnClick","onMouseenter","onMouseleave"]),E={[p]:!0,[`${p}-disabled`]:y,[o.class]:!!o.class},v=R?{directory:"directory",webkitdirectory:"webkitdirectory"}:{};return l(h,L(L({},y?{}:{onClick:w?u:()=>{},onKeydown:w?C:()=>{},onMouseenter:I,onMouseleave:O,onDrop:g,onDragover:g,tabindex:"0"}),{},{class:E,role:"button",style:o.style}),{default:()=>[l("input",L(L(L({},On(A,{aria:!0,data:!0})),{},{id:m,type:"file",ref:c,onClick:M=>M.stopPropagation(),onCancel:M=>M.stopPropagation(),key:i.value,style:{display:"none"},accept:T},v),{},{multiple:P,onChange:k},F!=null?{capture:F}:{}),null),(s=n.default)===null||s===void 0?void 0:s.call(n)]})}}});function Ne(){}const gt=V({compatConfig:{MODE:3},name:"Upload",inheritAttrs:!1,props:de(Vt(),{componentTag:"span",prefixCls:"rc-upload",data:{},headers:{},name:"file",multipart:!1,onStart:Ne,onError:Ne,onSuccess:Ne,multiple:!1,beforeUpload:null,customRequest:null,withCredentials:!1,openFileDialogOnClick:!0}),setup(e,t){let{slots:n,attrs:o,expose:a}=t;const i=z();return a({abort:c=>{var d;(d=i.value)===null||d===void 0||d.abort(c)}}),()=>l(ar,L(L(L({},e),o),{},{ref:i}),n)}});var lr={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"};function vt(e){for(var t=1;t{let{uid:i}=a;return i===e.uid});return o===-1?n.push(e):n[o]=e,n}function ze(e,t){const n=e.uid!==void 0?"uid":"name";return t.filter(o=>o[n]===e[n])[0]}function fr(e,t){const n=e.uid!==void 0?"uid":"name",o=t.filter(a=>a[n]!==e[n]);return o.length===t.length?null:o}const mr=function(){const t=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:"").split("/"),o=t[t.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(o)||[""])[0]},Gt=e=>e.indexOf("image/")===0,gr=e=>{if(e.type&&!e.thumbUrl)return Gt(e.type);const t=e.thumbUrl||e.url||"",n=mr(t);return/^data:image\//.test(t)||/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico)$/i.test(n)?!0:!(/^data:/.test(t)||n)},fe=200;function vr(e){return new Promise(t=>{if(!e.type||!Gt(e.type)){t("");return}const n=document.createElement("canvas");n.width=fe,n.height=fe,n.style.cssText=`position: fixed; left: 0; top: 0; width: ${fe}px; height: ${fe}px; z-index: 9999; display: none;`,document.body.appendChild(n);const o=n.getContext("2d"),a=new Image;if(a.onload=()=>{const{width:i,height:r}=a;let c=fe,d=fe,b=0,f=0;i>r?(d=r*(fe/i),f=-(d-c)/2):(c=i*(fe/r),b=-(c-d)/2),o.drawImage(a,b,f,c,d);const _=n.toDataURL();document.body.removeChild(n),t(_)},a.crossOrigin="anonymous",e.type.startsWith("image/svg+xml")){const i=new FileReader;i.addEventListener("load",()=>{i.result&&(a.src=i.result)}),i.readAsDataURL(e)}else a.src=window.URL.createObjectURL(e)})}var yr={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"};function bt(e){for(var t=1;t({prefixCls:String,locale:ae(void 0),file:ae(),items:De(),listType:Y(),isImgUrl:U(),showRemoveIcon:H(),showDownloadIcon:H(),showPreviewIcon:H(),removeIcon:U(),downloadIcon:U(),previewIcon:U(),iconRender:U(),actionIconRender:U(),itemRender:U(),onPreview:U(),onClose:U(),onDownload:U(),progress:ae()}),$r=V({compatConfig:{MODE:3},name:"ListItem",inheritAttrs:!1,props:br(),setup(e,t){let{slots:n,attrs:o}=t;var a;const i=he(!1),r=he();ye(()=>{r.value=setTimeout(()=>{i.value=!0},300)}),Tt(()=>{clearTimeout(r.value)});const c=he((a=e.file)===null||a===void 0?void 0:a.status);Ke(()=>{var f;return(f=e.file)===null||f===void 0?void 0:f.status},f=>{f!=="removed"&&(c.value=f)});const{rootPrefixCls:d}=ve("upload",e),b=B(()=>fn(`${d.value}-fade`));return()=>{var f,_;const{prefixCls:S,locale:$,listType:k,file:u,items:C,progress:g,iconRender:s=n.iconRender,actionIconRender:h=n.actionIconRender,itemRender:p=n.itemRender,isImgUrl:y,showPreviewIcon:m,showRemoveIcon:P,showDownloadIcon:T,previewIcon:F=n.previewIcon,removeIcon:R=n.removeIcon,downloadIcon:w=n.downloadIcon,onPreview:I,onDownload:O,onClose:A}=e,{class:E,style:v}=o,j=s({file:u});let M=l("div",{class:`${S}-text-icon`},[j]);if(k==="picture"||k==="picture-card")if(c.value==="uploading"||!u.thumbUrl&&!u.url){const re={[`${S}-list-item-thumbnail`]:!0,[`${S}-list-item-file`]:c.value!=="uploading"};M=l("div",{class:re},[j])}else{const re=y!=null&&y(u)?l("img",{src:u.thumbUrl||u.url,alt:u.name,class:`${S}-list-item-image`,crossorigin:u.crossOrigin},null):j,en={[`${S}-list-item-thumbnail`]:!0,[`${S}-list-item-file`]:y&&!y(u)};M=l("a",{class:en,onClick:tn=>I(u,tn),href:u.url||u.thumbUrl,target:"_blank",rel:"noopener noreferrer"},[re])}const W={[`${S}-list-item`]:!0,[`${S}-list-item-${c.value}`]:!0},ne=typeof u.linkProps=="string"?JSON.parse(u.linkProps):u.linkProps,se=P?h({customIcon:R?R({file:u}):l(Ln,null,null),callback:()=>A(u),prefixCls:S,title:$.removeFile}):null,ee=T&&c.value==="done"?h({customIcon:w?w({file:u}):l(et,null,null),callback:()=>O(u),prefixCls:S,title:$.downloadFile}):null,oe=k!=="picture-card"&&l("span",{key:"download-delete",class:[`${S}-list-item-actions`,{picture:k==="picture"}]},[ee,se]),pe=`${S}-list-item-name`,be=u.url?[l("a",L(L({key:"view",target:"_blank",rel:"noopener noreferrer",class:pe,title:u.name},ne),{},{href:u.url,onClick:re=>I(u,re)}),[u.name]),oe]:[l("span",{key:"view",class:pe,onClick:re=>I(u,re),title:u.name},[u.name]),oe],Ue={pointerEvents:"none",opacity:.5},Jt=m?l("a",{href:u.url||u.thumbUrl,target:"_blank",rel:"noopener noreferrer",style:u.url||u.thumbUrl?void 0:Ue,onClick:re=>I(u,re),title:$.previewFile},[F?F({file:u}):l(An,null,null)]):null,Qt=k==="picture-card"&&c.value!=="uploading"&&l("span",{class:`${S}-list-item-actions`},[Jt,c.value==="done"&&ee,se]),nt=l("div",{class:W},[M,be,Qt,i.value&&l(It,b.value,{default:()=>[Ve(l("div",{class:`${S}-list-item-progress`},["percent"in u?l(Jo,L(L({},g),{},{type:"line",percent:u.percent}),null):null]),[[qe,c.value==="uploading"]])]})]),Yt={[`${S}-list-item-container`]:!0,[`${E}`]:!!E},Zt=u.response&&typeof u.response=="string"?u.response:((f=u.error)===null||f===void 0?void 0:f.statusText)||((_=u.error)===null||_===void 0?void 0:_.message)||$.uploadError,ot=c.value==="error"?l(Lt,{title:Zt,getPopupContainer:re=>re.parentNode},{default:()=>[nt]}):nt;return l("div",{class:Yt,style:v},[p?p({originNode:ot,file:u,fileList:C,actions:{download:O.bind(null,u),preview:I.bind(null,u),remove:A.bind(null,u)}}):ot])}}}),wr=(e,t)=>{let{slots:n}=t;var o;return gn((o=n.default)===null||o===void 0?void 0:o.call(n))[0]},_r=V({compatConfig:{MODE:3},name:"AUploadList",props:de(pr(),{listType:"text",progress:{strokeWidth:2,showInfo:!1},showRemoveIcon:!0,showDownloadIcon:!1,showPreviewIcon:!0,previewFile:vr,isImageUrl:gr,items:[],appendActionVisible:!0}),setup(e,t){let{slots:n,expose:o}=t;const a=he(!1);ye(()=>{a.value==!0});const i=he([]);Ke(()=>e.items,function(){let u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];i.value=u.slice()},{immediate:!0,deep:!0}),Pt(()=>{if(e.listType!=="picture"&&e.listType!=="picture-card")return;let u=!1;(e.items||[]).forEach((C,g)=>{typeof document>"u"||typeof window>"u"||!window.FileReader||!window.File||!(C.originFileObj instanceof File||C.originFileObj instanceof Blob)||C.thumbUrl!==void 0||(C.thumbUrl="",e.previewFile&&e.previewFile(C.originFileObj).then(s=>{const h=s||"";h!==C.thumbUrl&&(i.value[g].thumbUrl=h,u=!0)}))}),u&&vn(i)});const r=(u,C)=>{if(e.onPreview)return C==null||C.preventDefault(),e.onPreview(u)},c=u=>{typeof e.onDownload=="function"?e.onDownload(u):u.url&&window.open(u.url)},d=u=>{var C;(C=e.onRemove)===null||C===void 0||C.call(e,u)},b=u=>{let{file:C}=u;const g=e.iconRender||n.iconRender;if(g)return g({file:C,listType:e.listType});const s=C.status==="uploading",h=e.isImageUrl&&e.isImageUrl(C)?l(Ye,null,null):l(Ze,null,null);let p=s?l(rt,null,null):l(Qe,null,null);return e.listType==="picture"?p=s?l(rt,null,null):h:e.listType==="picture-card"&&(p=s?e.locale.uploading:h),p},f=u=>{const{customIcon:C,callback:g,prefixCls:s,title:h}=u,p={type:"text",size:"small",title:h,onClick:()=>{g()},class:`${s}-list-item-action`};return xt(C)?l(Ce,p,{icon:()=>C}):l(Ce,p,{default:()=>[l("span",null,[C])]})};o({handlePreview:r,handleDownload:c});const{prefixCls:_,rootPrefixCls:S}=ve("upload",e),$=B(()=>({[`${_.value}-list`]:!0,[`${_.value}-list-${e.listType}`]:!0})),k=B(()=>{const u=D({},zt(`${S.value}-motion-collapse`));delete u.onAfterAppear,delete u.onAfterEnter,delete u.onAfterLeave;const C=D(D({},yn(`${_.value}-${e.listType==="picture-card"?"animate-inline":"animate"}`)),{class:$.value,appear:a.value});return e.listType!=="picture-card"?D(D({},u),C):C});return()=>{const{listType:u,locale:C,isImageUrl:g,showPreviewIcon:s,showRemoveIcon:h,showDownloadIcon:p,removeIcon:y,previewIcon:m,downloadIcon:P,progress:T,appendAction:F,itemRender:R,appendActionVisible:w}=e,I=F==null?void 0:F(),O=i.value;return l(mn,L(L({},k.value),{},{tag:"div"}),{default:()=>[O.map(A=>{const{uid:E}=A;return l($r,{key:E,locale:C,prefixCls:_.value,file:A,items:O,progress:T,listType:u,isImgUrl:g,showPreviewIcon:s,showRemoveIcon:h,showDownloadIcon:p,onPreview:r,onDownload:c,onClose:d,removeIcon:y,previewIcon:m,downloadIcon:P,itemRender:R},D(D({},n),{iconRender:b,actionIconRender:f}))}),F?Ve(l(wr,{key:"__ant_upload_appendAction"},{default:()=>I}),[[qe,!!w]]):null]})}}}),Cr=e=>{const{componentCls:t,iconCls:n}=e;return{[`${t}-wrapper`]:{[`${t}-drag`]:{position:"relative",width:"100%",height:"100%",textAlign:"center",background:e.colorFillAlter,border:`${e.lineWidth}px dashed ${e.colorBorder}`,borderRadius:e.borderRadiusLG,cursor:"pointer",transition:`border-color ${e.motionDurationSlow}`,[t]:{padding:`${e.padding}px 0`},[`${t}-btn`]:{display:"table",width:"100%",height:"100%",outline:"none"},[`${t}-drag-container`]:{display:"table-cell",verticalAlign:"middle"},[`&:not(${t}-disabled):hover`]:{borderColor:e.colorPrimaryHover},[`p${t}-drag-icon`]:{marginBottom:e.margin,[n]:{color:e.colorPrimary,fontSize:e.uploadThumbnailSize}},[`p${t}-text`]:{margin:`0 0 ${e.marginXXS}px`,color:e.colorTextHeading,fontSize:e.fontSizeLG},[`p${t}-hint`]:{color:e.colorTextDescription,fontSize:e.fontSize},[`&${t}-disabled`]:{cursor:"not-allowed",[`p${t}-drag-icon ${n}, + p${t}-text, + p${t}-hint + `]:{color:e.colorTextDisabled}}}}}},Sr=e=>{const{componentCls:t,antCls:n,iconCls:o,fontSize:a,lineHeight:i}=e,r=`${t}-list-item`,c=`${r}-actions`,d=`${r}-action`,b=Math.round(a*i);return{[`${t}-wrapper`]:{[`${t}-list`]:D(D({},Rt()),{lineHeight:e.lineHeight,[r]:{position:"relative",height:e.lineHeight*a,marginTop:e.marginXS,fontSize:a,display:"flex",alignItems:"center",transition:`background-color ${e.motionDurationSlow}`,"&:hover":{backgroundColor:e.controlItemBgHover},[`${r}-name`]:D(D({},Ft),{padding:`0 ${e.paddingXS}px`,lineHeight:i,flex:"auto",transition:`all ${e.motionDurationSlow}`}),[c]:{[d]:{opacity:0},[`${d}${n}-btn-sm`]:{height:b,border:0,lineHeight:1,"> span":{transform:"scale(1)"}},[` + ${d}:focus, + &.picture ${d} + `]:{opacity:1},[o]:{color:e.colorTextDescription,transition:`all ${e.motionDurationSlow}`},[`&:hover ${o}`]:{color:e.colorText}},[`${t}-icon ${o}`]:{color:e.colorTextDescription,fontSize:a},[`${r}-progress`]:{position:"absolute",bottom:-e.uploadProgressOffset,width:"100%",paddingInlineStart:a+e.paddingXS,fontSize:a,lineHeight:0,pointerEvents:"none","> div":{margin:0}}},[`${r}:hover ${d}`]:{opacity:1,color:e.colorText},[`${r}-error`]:{color:e.colorError,[`${r}-name, ${t}-icon ${o}`]:{color:e.colorError},[c]:{[`${o}, ${o}:hover`]:{color:e.colorError},[d]:{opacity:1}}},[`${t}-list-item-container`]:{transition:`opacity ${e.motionDurationSlow}, height ${e.motionDurationSlow}`,"&::before":{display:"table",width:0,height:0,content:'""'}}})}}},$t=new Ge("uploadAnimateInlineIn",{from:{width:0,height:0,margin:0,padding:0,opacity:0}}),wt=new Ge("uploadAnimateInlineOut",{to:{width:0,height:0,margin:0,padding:0,opacity:0}}),xr=e=>{const{componentCls:t}=e,n=`${t}-animate-inline`;return[{[`${t}-wrapper`]:{[`${n}-appear, ${n}-enter, ${n}-leave`]:{animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseInOutCirc,animationFillMode:"forwards"},[`${n}-appear, ${n}-enter`]:{animationName:$t},[`${n}-leave`]:{animationName:wt}}},$t,wt]},Pr=e=>{const{componentCls:t,iconCls:n,uploadThumbnailSize:o,uploadProgressOffset:a}=e,i=`${t}-list`,r=`${i}-item`;return{[`${t}-wrapper`]:{[`${i}${i}-picture, ${i}${i}-picture-card`]:{[r]:{position:"relative",height:o+e.lineWidth*2+e.paddingXS*2,padding:e.paddingXS,border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusLG,"&:hover":{background:"transparent"},[`${r}-thumbnail`]:D(D({},Ft),{width:o,height:o,lineHeight:`${o+e.paddingSM}px`,textAlign:"center",flex:"none",[n]:{fontSize:e.fontSizeHeading2,color:e.colorPrimary},img:{display:"block",width:"100%",height:"100%",overflow:"hidden"}}),[`${r}-progress`]:{bottom:a,width:`calc(100% - ${e.paddingSM*2}px)`,marginTop:0,paddingInlineStart:o+e.paddingXS}},[`${r}-error`]:{borderColor:e.colorError,[`${r}-thumbnail ${n}`]:{"svg path[fill='#e6f7ff']":{fill:e.colorErrorBg},"svg path[fill='#1890ff']":{fill:e.colorError}}},[`${r}-uploading`]:{borderStyle:"dashed",[`${r}-name`]:{marginBottom:a}}}}}},Ir=e=>{const{componentCls:t,iconCls:n,fontSizeLG:o,colorTextLightSolid:a}=e,i=`${t}-list`,r=`${i}-item`,c=e.uploadPicCardSize;return{[`${t}-wrapper${t}-picture-card-wrapper`]:D(D({},Rt()),{display:"inline-block",width:"100%",[`${t}${t}-select`]:{width:c,height:c,marginInlineEnd:e.marginXS,marginBottom:e.marginXS,textAlign:"center",verticalAlign:"top",backgroundColor:e.colorFillAlter,border:`${e.lineWidth}px 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}-item-container`]:{display:"inline-block",width:c,height:c,marginBlock:`0 ${e.marginXS}px`,marginInline:`0 ${e.marginXS}px`,verticalAlign:"top"},"&::after":{display:"none"},[r]:{height:"100%",margin:0,"&::before":{position:"absolute",zIndex:1,width:`calc(100% - ${e.paddingXS*2}px)`,height:`calc(100% - ${e.paddingXS*2}px)`,backgroundColor:e.colorBgMask,opacity:0,transition:`all ${e.motionDurationSlow}`,content:'" "'}},[`${r}:hover`]:{[`&::before, ${r}-actions`]:{opacity:1}},[`${r}-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:o,margin:`0 ${e.marginXXS}px`,fontSize:o,cursor:"pointer",transition:`all ${e.motionDurationSlow}`}},[`${r}-actions, ${r}-actions:hover`]:{[`${n}-eye, ${n}-download, ${n}-delete`]:{color:new hn(a).setAlpha(.65).toRgbString(),"&:hover":{color:a}}},[`${r}-thumbnail, ${r}-thumbnail img`]:{position:"static",display:"block",width:"100%",height:"100%",objectFit:"contain"},[`${r}-name`]:{display:"none",textAlign:"center"},[`${r}-file + ${r}-name`]:{position:"absolute",bottom:e.margin,display:"block",width:`calc(100% - ${e.paddingXS*2}px)`},[`${r}-uploading`]:{[`&${r}`]:{backgroundColor:e.colorFillAlter},[`&::before, ${n}-eye, ${n}-download, ${n}-delete`]:{display:"none"}},[`${r}-progress`]:{bottom:e.marginXL,width:`calc(100% - ${e.paddingXS*2}px)`,paddingInlineStart:0}}})}},Or=e=>{const{componentCls:t}=e;return{[`${t}-rtl`]:{direction:"rtl"}}},kr=e=>{const{componentCls:t,colorTextDisabled:n}=e;return{[`${t}-wrapper`]:D(D({},Xe(e)),{[t]:{outline:0,"input[type='file']":{cursor:"pointer"}},[`${t}-select`]:{display:"inline-block"},[`${t}-disabled`]:{color:n,cursor:"not-allowed"}})}},Dr=Re("Upload",e=>{const{fontSizeHeading3:t,fontSize:n,lineHeight:o,lineWidth:a,controlHeightLG:i}=e,r=Math.round(n*o),c=We(e,{uploadThumbnailSize:t*2,uploadProgressOffset:r/2+a,uploadPicCardSize:i*2.55});return[kr(c),Cr(c),Pr(c),Ir(c),Sr(c),xr(c),Or(c),Nt(c)]});var Ar=function(e,t,n,o){function a(i){return i instanceof n?i:new n(function(r){r(i)})}return new(n||(n=Promise))(function(i,r){function c(f){try{b(o.next(f))}catch(_){r(_)}}function d(f){try{b(o.throw(f))}catch(_){r(_)}}function b(f){f.done?i(f.value):a(f.value).then(c,d)}b((o=o.apply(e,t||[])).next())})},Tr=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,o=Object.getOwnPropertySymbols(e);a{var w;return(w=d.value)!==null&&w!==void 0?w:_.value}),[$,k]=Bt(e.defaultFileList||[],{value:kt(e,"fileList"),postState:w=>{const I=Date.now();return(w??[]).map((O,A)=>(!O.uid&&!Object.isFrozen(O)&&(O.uid=`__AUTO__${I}_${A}__`),O))}}),u=z("drop"),C=z(null);ye(()=>{we(e.fileList!==void 0||o.value===void 0,"Upload","`value` is not a valid prop, do you mean `fileList`?"),we(e.transformFile===void 0,"Upload","`transformFile` is deprecated. Please use `beforeUpload` directly."),we(e.remove===void 0,"Upload","`remove` props is deprecated. Please use `remove` event.")});const g=(w,I,O)=>{var A,E;let v=[...I];e.maxCount===1?v=v.slice(-1):e.maxCount&&(v=v.slice(0,e.maxCount)),k(v);const j={file:w,fileList:v};O&&(j.event=O),(A=e["onUpdate:fileList"])===null||A===void 0||A.call(e,j.fileList),(E=e.onChange)===null||E===void 0||E.call(e,j),i.onFieldChange()},s=(w,I)=>Ar(this,void 0,void 0,function*(){const{beforeUpload:O,transformFile:A}=e;let E=w;if(O){const v=yield O(w,I);if(v===!1)return!1;if(delete w[$e],v===$e)return Object.defineProperty(w,$e,{value:!0,configurable:!0}),!1;typeof v=="object"&&v&&(E=v)}return A&&(E=yield A(E)),E}),h=w=>{const I=w.filter(E=>!E.file[$e]);if(!I.length)return;const O=I.map(E=>xe(E.file));let A=[...$.value];O.forEach(E=>{A=Pe(E,A)}),O.forEach((E,v)=>{let j=E;if(I[v].parsedFile)E.status="uploading";else{const{originFileObj:M}=E;let W;try{W=new File([M],M.name,{type:M.type})}catch{W=new Blob([M],{type:M.type}),W.name=M.name,W.lastModifiedDate=new Date,W.lastModified=new Date().getTime()}W.uid=E.uid,j=W}g(j,A)})},p=(w,I,O)=>{try{typeof w=="string"&&(w=JSON.parse(w))}catch{}if(!ze(I,$.value))return;const A=xe(I);A.status="done",A.percent=100,A.response=w,A.xhr=O;const E=Pe(A,$.value);g(A,E)},y=(w,I)=>{if(!ze(I,$.value))return;const O=xe(I);O.status="uploading",O.percent=w.percent;const A=Pe(O,$.value);g(O,A,w)},m=(w,I,O)=>{if(!ze(O,$.value))return;const A=xe(O);A.error=w,A.response=I,A.status="error";const E=Pe(A,$.value);g(A,E)},P=w=>{let I;const O=e.onRemove||e.remove;Promise.resolve(typeof O=="function"?O(w):O).then(A=>{var E,v;if(A===!1)return;const j=fr(w,$.value);j&&(I=D(D({},w),{status:"removed"}),(E=$.value)===null||E===void 0||E.forEach(M=>{const W=I.uid!==void 0?"uid":"name";M[W]===I[W]&&!Object.isFrozen(M)&&(M.status="removed")}),(v=C.value)===null||v===void 0||v.abort(I),g(I,j))})},T=w=>{var I;u.value=w.type,w.type==="drop"&&((I=e.onDrop)===null||I===void 0||I.call(e,w))};a({onBatchStart:h,onSuccess:p,onProgress:y,onError:m,fileList:$,upload:C});const[F]=Dt("Upload",At.Upload,B(()=>e.locale)),R=(w,I)=>{const{removeIcon:O,previewIcon:A,downloadIcon:E,previewFile:v,onPreview:j,onDownload:M,isImageUrl:W,progress:ne,itemRender:se,iconRender:ee,showUploadList:oe}=e,{showDownloadIcon:pe,showPreviewIcon:be,showRemoveIcon:Ue}=typeof oe=="boolean"?{}:oe;return oe?l(_r,{prefixCls:r.value,listType:e.listType,items:$.value,previewFile:v,onPreview:j,onDownload:M,onRemove:P,showRemoveIcon:!S.value&&Ue,showPreviewIcon:be,showDownloadIcon:pe,removeIcon:O,previewIcon:A,downloadIcon:E,iconRender:ee,locale:F.value,isImageUrl:W,progress:ne,itemRender:se,appendActionVisible:I,appendAction:w},D({},n)):w==null?void 0:w()};return()=>{var w,I,O;const{listType:A,type:E}=e,{class:v,style:j}=o,M=Tr(o,["class","style"]),W=D(D(D({onBatchStart:h,onError:m,onProgress:y,onSuccess:p},M),e),{id:(w=e.id)!==null&&w!==void 0?w:i.id.value,prefixCls:r.value,beforeUpload:s,onChange:void 0,disabled:S.value});delete W.remove,(!n.default||S.value)&&delete W.id;const ne={[`${r.value}-rtl`]:c.value==="rtl"};if(E==="drag"){const pe=ie(r.value,{[`${r.value}-drag`]:!0,[`${r.value}-drag-uploading`]:$.value.some(be=>be.status==="uploading"),[`${r.value}-drag-hover`]:u.value==="dragover",[`${r.value}-disabled`]:S.value,[`${r.value}-rtl`]:c.value==="rtl"},o.class,f.value);return b(l("span",L(L({},o),{},{class:ie(`${r.value}-wrapper`,ne,v,f.value)}),[l("div",{class:pe,onDrop:T,onDragover:T,onDragleave:T,style:o.style},[l(gt,L(L({},W),{},{ref:C,class:`${r.value}-btn`}),L({default:()=>[l("div",{class:`${r.value}-drag-container`},[(I=n.default)===null||I===void 0?void 0:I.call(n)])]},n))]),R()]))}const se=ie(r.value,{[`${r.value}-select`]:!0,[`${r.value}-select-${A}`]:!0,[`${r.value}-disabled`]:S.value,[`${r.value}-rtl`]:c.value==="rtl"}),ee=St((O=n.default)===null||O===void 0?void 0:O.call(n)),oe=pe=>l("div",{class:se,style:pe},[l(gt,L(L({},W),{},{ref:C}),n)]);return b(A==="picture-card"?l("span",L(L({},o),{},{class:ie(`${r.value}-wrapper`,`${r.value}-picture-card-wrapper`,ne,o.class,f.value)}),[R(oe,!!(ee&&ee.length))]):l("span",L(L({},o),{},{class:ie(`${r.value}-wrapper`,ne,o.class,f.value)}),[oe(ee&&ee.length?void 0:{display:"none"}),R()]))}}});var _t=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,o=Object.getOwnPropertySymbols(e);a{const{height:a}=e,i=_t(e,["height"]),{style:r}=o,c=_t(o,["style"]),d=D(D(D({},i),c),{type:"drag",style:D(D({},r),{height:typeof a=="number"?`${a}px`:a})});return l(Oe,d,n)}}}),Rr=ke;D(Oe,{Dragger:ke,LIST_IGNORE:$e,install(e){return e.component(Oe.name,Oe),e.component(ke.name,ke),e}});var Fr={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M885.2 446.3l-.2-.8-112.2-285.1c-5-16.1-19.9-27.2-36.8-27.2H281.2c-17 0-32.1 11.3-36.9 27.6L139.4 443l-.3.7-.2.8c-1.3 4.9-1.7 9.9-1 14.8-.1 1.6-.2 3.2-.2 4.8V830a60.9 60.9 0 0060.8 60.8h627.2c33.5 0 60.8-27.3 60.9-60.8V464.1c0-1.3 0-2.6-.1-3.7.4-4.9 0-9.6-1.3-14.1zm-295.8-43l-.3 15.7c-.8 44.9-31.8 75.1-77.1 75.1-22.1 0-41.1-7.1-54.8-20.6S436 441.2 435.6 419l-.3-15.7H229.5L309 210h399.2l81.7 193.3H589.4zm-375 76.8h157.3c24.3 57.1 76 90.8 140.4 90.8 33.7 0 65-9.4 90.3-27.2 22.2-15.6 39.5-37.4 50.7-63.6h156.5V814H214.4V480.1z"}}]},name:"inbox",theme:"outlined"};function Ct(e){for(var t=1;t{const e=z([]),t=z([]),n=z([]),o=z(!1),a=z(!1),i=z(!1),r=z(null),c=B(()=>e.value.length),d=B(()=>e.value.filter(p=>p.type==="local")),b=B(()=>e.value.filter(p=>p.type!=="local"));async function f(){o.value=!0,r.value=null;try{const p=await Ur();e.value=p.sources}catch(p){r.value=p instanceof Error?p.message:"获取信息源列表失败",console.error("Failed to fetch sources:",p)}finally{o.value=!1}}async function _(p,y,m={}){o.value=!0,r.value=null;try{await Br({name:p,type:y,config:m}),await f()}catch(P){throw r.value=P instanceof Error?P.message:"添加信息源失败",console.error("Failed to add source:",P),P}finally{o.value=!1}}async function S(p){o.value=!0,r.value=null;try{await Mr(p),await f()}catch(y){throw r.value=y instanceof Error?y.message:"删除信息源失败",console.error("Failed to remove source:",y),y}finally{o.value=!1}}async function $(p,y){a.value=!0,r.value=null;try{const m=await Nr(p,y);return await f(),m}catch(m){throw r.value=m instanceof Error?m.message:"上传文档失败",console.error("Failed to upload document:",m),m}finally{a.value=!1}}async function k(p,y,m=5,P="vector"){i.value=!0,r.value=null,n.value=[];try{const T=await zr(p,y,m,P);n.value=T.results}catch(T){r.value=T instanceof Error?T.message:"检索失败",console.error("Failed to search:",T)}finally{i.value=!1}}async function u(p){try{return(await Hr(p)).status}catch(y){return console.error("Failed to check health:",y),"error"}}async function C(p){o.value=!0,r.value=null;try{const y=await Wr(p);t.value=y.documents}catch(y){r.value=y instanceof Error?y.message:"获取文档列表失败",console.error("Failed to fetch documents:",y)}finally{o.value=!1}}async function g(p){try{await Xr(p),t.value=t.value.filter(y=>y.document_id!==p),await f()}catch(y){throw r.value=y instanceof Error?y.message:"删除文档失败",console.error("Failed to delete document:",y),y}}async function s(p){try{return(await Kr(p)).status}catch(y){throw r.value=y instanceof Error?y.message:"同步失败",console.error("Failed to sync source:",y),y}}async function h(p,y){o.value=!0,r.value=null;try{await Vr(p,y),await f()}catch(m){throw r.value=m instanceof Error?m.message:"更新信息源失败",console.error("Failed to update source:",m),m}finally{o.value=!1}}return{sources:e,documents:t,searchResults:n,isLoading:o,isUploading:a,isSearching:i,error:r,sourceCount:c,localSources:d,externalSources:b,fetchSources:f,addSource:_,removeSource:S,uploadDocument:$,search:k,checkHealth:u,fetchDocuments:C,deleteDocument:g,syncSource:s,updateSource:h}}),qr={class:"document-upload"},Gr={class:"ant-upload-drag-icon"},Jr={key:1,class:"document-list"},Qr=V({__name:"DocumentUpload",setup(e){const t=je(),n=[{title:"文件名",dataIndex:"filename",key:"filename"},{title:"状态",dataIndex:"status",key:"status",width:100},{title:"分块数",dataIndex:"chunks",key:"chunks",width:80},{title:"上传时间",dataIndex:"created_at",key:"created_at",width:160},{title:"操作",key:"actions",width:80}];function o(c){try{return new Date(c).toLocaleString("zh-CN")}catch{return c}}function a(c){var f;const d=[".pdf",".docx",".doc",".md",".txt",".html",".csv",".json"],b="."+((f=c.name.split(".").pop())==null?void 0:f.toLowerCase());return d.includes(b)?!0:(q.error(`不支持的文件格式: ${b}`),!1)}async function i(c){var d,b;try{await t.uploadDocument(c.file),q.success(`${c.file.name} 上传成功`),(d=c.onSuccess)==null||d.call(c),await t.fetchDocuments()}catch(f){q.error(`${c.file.name} 上传失败`),(b=c.onError)==null||b.call(c,f)}}async function r(c){try{await t.deleteDocument(c),q.success("文档已删除")}catch{q.error("删除文档失败")}}return ye(()=>{t.fetchDocuments()}),(c,d)=>{const b=Rr,f=Vn,_=Ht,S=Je,$=Ce,k=Kt,u=Mt,C=Et;return N(),G("div",qr,[l(b,{multiple:!0,"custom-request":i,"before-upload":a,"show-upload-list":!1,accept:".pdf,.docx,.doc,.md,.txt,.html,.csv,.json"},{default:x(()=>[me("p",Gr,[l(J(tt))]),d[0]||(d[0]=me("p",{class:"ant-upload-text"},"点击或拖拽文件到此区域上传",-1)),d[1]||(d[1]=me("p",{class:"ant-upload-hint"}," 支持 PDF、Word、Markdown、HTML、纯文本等格式 ",-1))]),_:1}),J(t).isUploading?(N(),ue(f,{key:0,tip:"正在上传处理...",class:"upload-spin"})):Q("",!0),J(t).documents.length>0?(N(),G("div",Jr,[l(_,null,{default:x(()=>[X("文档列表 ("+Z(J(t).documents.length)+")",1)]),_:1}),l(u,{"data-source":J(t).documents,columns:n,loading:J(t).isLoading,"row-key":"document_id",size:"small",pagination:{pageSize:10}},{bodyCell:x(({column:g,record:s})=>[g.key==="status"?(N(),ue(S,{key:0,color:s.status==="indexed"?"green":"orange"},{default:x(()=>[X(Z(s.status==="indexed"?"已索引":"处理中"),1)]),_:2},1032,["color"])):Q("",!0),g.key==="created_at"?(N(),G(te,{key:1},[X(Z(o(s.created_at)),1)],64)):Q("",!0),g.key==="actions"?(N(),ue(k,{key:2,title:"确定删除此文档?",onConfirm:h=>r(s.document_id)},{default:x(()=>[l($,{type:"link",size:"small",danger:""},{default:x(()=>[...d[2]||(d[2]=[X("删除",-1)])]),_:1})]),_:1},8,["onConfirm"])):Q("",!0)]),_:1},8,["data-source","loading"])])):!J(t).isUploading&&!J(t).isLoading?(N(),ue(C,{key:2,description:"暂无文档"})):Q("",!0)])}}}),Yr=Fe(Qr,[["__scopeId","data-v-55410552"]]),Zr={class:"source-config"},ea={class:"source-config__header"},ta=V({__name:"SourceConfig",setup(e){const t=je(),n=z(!1),o=z(!1),a=z(""),i=at({name:"",type:"local",config:{}}),r=at({name:"",type:"local",config:{}}),c={local:"blue",feishu:"green",confluence:"purple",http:"orange"},d={local:"本地文档",feishu:"飞书",confluence:"Confluence",http:"HTTP API"},b=[{title:"名称",dataIndex:"name",key:"name"},{title:"类型",dataIndex:"type",key:"type",width:120},{title:"状态",dataIndex:"status",key:"status",width:100},{title:"文档数",dataIndex:"document_count",key:"document_count",width:80},{title:"最近同步",dataIndex:"last_synced",key:"last_synced",width:160},{title:"操作",key:"actions",width:260}];function f(g){try{return new Date(g).toLocaleString("zh-CN")}catch{return g}}async function _(){if(!i.name){q.warning("请输入信息源名称");return}try{await t.addSource(i.name,i.type,{...i.config}),n.value=!1,i.name="",i.type="local",i.config={},q.success("信息源添加成功")}catch{q.error("添加信息源失败")}}async function S(g){try{await t.removeSource(g),q.success("信息源已删除")}catch{q.error("删除信息源失败")}}async function $(g){const s=await t.checkHealth(g);s==="healthy"?q.success("信息源状态正常"):s==="unknown"?q.warning("健康检查未实现"):q.error("信息源状态异常")}async function k(g){try{await t.syncSource(g)==="syncing"&&q.success("同步已触发")}catch{q.error("同步失败")}}function u(g){a.value=g.id,r.name=g.name,r.type=g.type,r.config={...g.config},o.value=!0}async function C(){if(!r.name){q.warning("请输入信息源名称");return}try{await t.updateSource(a.value,{name:r.name,config:{...r.config}}),o.value=!1,q.success("信息源更新成功")}catch{q.error("更新信息源失败")}}return(g,s)=>{const h=Ce,p=Je,y=Gn,m=Kt,P=Jn,T=Mt,F=Rn,R=Ut,w=qn,I=Wt,O=Fn,A=jt,E=Kn;return N(),G("div",Zr,[me("div",ea,[l(h,{type:"primary",onClick:s[0]||(s[0]=v=>n.value=!0)},{icon:x(()=>[l(J(Tn))]),default:x(()=>[s[24]||(s[24]=X(" 添加信息源 ",-1))]),_:1})]),l(T,{"data-source":J(t).sources,columns:b,loading:J(t).isLoading,"row-key":"id",size:"small",pagination:{pageSize:10}},{bodyCell:x(({column:v,record:j})=>[v.key==="type"?(N(),ue(p,{key:0,color:c[j.type]||"default"},{default:x(()=>[X(Z(d[j.type]||j.type),1)]),_:2},1032,["color"])):Q("",!0),v.key==="status"?(N(),ue(y,{key:1,status:j.status==="active"?"success":"default",text:j.status==="active"?"正常":j.status},null,8,["status","text"])):Q("",!0),v.key==="last_synced"?(N(),G(te,{key:2},[X(Z(j.last_synced?f(j.last_synced):"从未同步"),1)],64)):Q("",!0),v.key==="actions"?(N(),ue(P,{key:3},{default:x(()=>[l(h,{type:"link",size:"small",onClick:M=>k(j.id)},{default:x(()=>[...s[25]||(s[25]=[X(" 同步 ",-1)])]),_:1},8,["onClick"]),l(h,{type:"link",size:"small",onClick:M=>u(j)},{default:x(()=>[...s[26]||(s[26]=[X(" 编辑 ",-1)])]),_:1},8,["onClick"]),l(h,{type:"link",size:"small",onClick:M=>$(j.id)},{default:x(()=>[...s[27]||(s[27]=[X(" 健康检查 ",-1)])]),_:1},8,["onClick"]),l(m,{title:"确定删除此信息源?",onConfirm:M=>S(j.id)},{default:x(()=>[l(h,{type:"link",size:"small",danger:""},{default:x(()=>[...s[28]||(s[28]=[X("删除",-1)])]),_:1})]),_:1},8,["onConfirm"])]),_:2},1024)):Q("",!0)]),_:1},8,["data-source","loading"]),l(E,{open:n.value,"onUpdate:open":s[12]||(s[12]=v=>n.value=v),title:"添加信息源",onOk:_,"confirm-loading":J(t).isLoading},{default:x(()=>[l(A,{model:i,layout:"vertical"},{default:x(()=>[l(R,{label:"名称",required:""},{default:x(()=>[l(F,{value:i.name,"onUpdate:value":s[1]||(s[1]=v=>i.name=v),placeholder:"输入信息源名称"},null,8,["value"])]),_:1}),l(R,{label:"类型",required:""},{default:x(()=>[l(I,{value:i.type,"onUpdate:value":s[2]||(s[2]=v=>i.type=v),placeholder:"选择信息源类型"},{default:x(()=>[l(w,{value:"local"},{default:x(()=>[...s[29]||(s[29]=[X("本地文档",-1)])]),_:1}),l(w,{value:"feishu"},{default:x(()=>[...s[30]||(s[30]=[X("飞书知识库",-1)])]),_:1}),l(w,{value:"confluence"},{default:x(()=>[...s[31]||(s[31]=[X("Confluence",-1)])]),_:1}),l(w,{value:"http"},{default:x(()=>[...s[32]||(s[32]=[X("HTTP API",-1)])]),_:1})]),_:1},8,["value"])]),_:1}),i.type==="feishu"?(N(),G(te,{key:0},[l(R,{label:"App ID"},{default:x(()=>[l(F,{value:i.config.app_id,"onUpdate:value":s[3]||(s[3]=v=>i.config.app_id=v)},null,8,["value"])]),_:1}),l(R,{label:"App Secret"},{default:x(()=>[l(O,{value:i.config.app_secret,"onUpdate:value":s[4]||(s[4]=v=>i.config.app_secret=v)},null,8,["value"])]),_:1}),l(R,{label:"知识库 ID"},{default:x(()=>[l(F,{value:i.config.wiki_space_id,"onUpdate:value":s[5]||(s[5]=v=>i.config.wiki_space_id=v)},null,8,["value"])]),_:1})],64)):Q("",!0),i.type==="confluence"?(N(),G(te,{key:1},[l(R,{label:"Base URL"},{default:x(()=>[l(F,{value:i.config.base_url,"onUpdate:value":s[6]||(s[6]=v=>i.config.base_url=v),placeholder:"https://wiki.example.com"},null,8,["value"])]),_:1}),l(R,{label:"用户名"},{default:x(()=>[l(F,{value:i.config.username,"onUpdate:value":s[7]||(s[7]=v=>i.config.username=v)},null,8,["value"])]),_:1}),l(R,{label:"API Token"},{default:x(()=>[l(O,{value:i.config.api_token,"onUpdate:value":s[8]||(s[8]=v=>i.config.api_token=v)},null,8,["value"])]),_:1}),l(R,{label:"空间 Key"},{default:x(()=>[l(F,{value:i.config.space_key,"onUpdate:value":s[9]||(s[9]=v=>i.config.space_key=v)},null,8,["value"])]),_:1})],64)):Q("",!0),i.type==="http"?(N(),G(te,{key:2},[l(R,{label:"API URL"},{default:x(()=>[l(F,{value:i.config.url,"onUpdate:value":s[10]||(s[10]=v=>i.config.url=v),placeholder:"https://api.example.com/kb"},null,8,["value"])]),_:1}),l(R,{label:"API Key"},{default:x(()=>[l(O,{value:i.config.api_key,"onUpdate:value":s[11]||(s[11]=v=>i.config.api_key=v)},null,8,["value"])]),_:1})],64)):Q("",!0)]),_:1},8,["model"])]),_:1},8,["open","confirm-loading"]),l(E,{open:o.value,"onUpdate:open":s[23]||(s[23]=v=>o.value=v),title:"编辑信息源",onOk:C,"confirm-loading":J(t).isLoading},{default:x(()=>[l(A,{model:r,layout:"vertical"},{default:x(()=>[l(R,{label:"名称",required:""},{default:x(()=>[l(F,{value:r.name,"onUpdate:value":s[13]||(s[13]=v=>r.name=v),placeholder:"输入信息源名称"},null,8,["value"])]),_:1}),l(R,{label:"类型"},{default:x(()=>[l(p,{color:c[r.type]||"default"},{default:x(()=>[X(Z(d[r.type]||r.type),1)]),_:1},8,["color"])]),_:1}),r.type==="feishu"?(N(),G(te,{key:0},[l(R,{label:"App ID"},{default:x(()=>[l(F,{value:r.config.app_id,"onUpdate:value":s[14]||(s[14]=v=>r.config.app_id=v)},null,8,["value"])]),_:1}),l(R,{label:"App Secret"},{default:x(()=>[l(O,{value:r.config.app_secret,"onUpdate:value":s[15]||(s[15]=v=>r.config.app_secret=v)},null,8,["value"])]),_:1}),l(R,{label:"知识库 ID"},{default:x(()=>[l(F,{value:r.config.wiki_space_id,"onUpdate:value":s[16]||(s[16]=v=>r.config.wiki_space_id=v)},null,8,["value"])]),_:1})],64)):Q("",!0),r.type==="confluence"?(N(),G(te,{key:1},[l(R,{label:"Base URL"},{default:x(()=>[l(F,{value:r.config.base_url,"onUpdate:value":s[17]||(s[17]=v=>r.config.base_url=v),placeholder:"https://wiki.example.com"},null,8,["value"])]),_:1}),l(R,{label:"用户名"},{default:x(()=>[l(F,{value:r.config.username,"onUpdate:value":s[18]||(s[18]=v=>r.config.username=v)},null,8,["value"])]),_:1}),l(R,{label:"API Token"},{default:x(()=>[l(O,{value:r.config.api_token,"onUpdate:value":s[19]||(s[19]=v=>r.config.api_token=v)},null,8,["value"])]),_:1}),l(R,{label:"空间 Key"},{default:x(()=>[l(F,{value:r.config.space_key,"onUpdate:value":s[20]||(s[20]=v=>r.config.space_key=v)},null,8,["value"])]),_:1})],64)):Q("",!0),r.type==="http"?(N(),G(te,{key:2},[l(R,{label:"API URL"},{default:x(()=>[l(F,{value:r.config.url,"onUpdate:value":s[21]||(s[21]=v=>r.config.url=v),placeholder:"https://api.example.com/kb"},null,8,["value"])]),_:1}),l(R,{label:"API Key"},{default:x(()=>[l(O,{value:r.config.api_key,"onUpdate:value":s[22]||(s[22]=v=>r.config.api_key=v)},null,8,["value"])]),_:1})],64)):Q("",!0)]),_:1},8,["model"])]),_:1},8,["open","confirm-loading"])])}}}),na=Fe(ta,[["__scopeId","data-v-752313e6"]]),oa={class:"search-test"},ra={key:0,class:"search-results"},aa={class:"search-result-item__header"},la={class:"search-result-item__index"},ia={class:"search-result-item__score"},sa={class:"search-result-item__content"},ca={key:0,class:"search-result-item__meta"},ua=V({__name:"SearchTest",setup(e){const t=je(),n=z(""),o=z(!1),a=z([]),i=z([]),r=z(5),c=z("vector"),d=B(()=>t.sources.map(f=>({label:f.name,value:f.id})));async function b(){if(!n.value.trim())return;o.value=!0;const f=i.value.length>0?i.value:void 0;await t.search(n.value,f,r.value,c.value)}return ye(()=>{t.fetchSources()}),(f,_)=>{const S=En,$=Wt,k=Ut,u=Yn,C=eo,g=Zn,s=jt,h=Ae,p=_e,y=Ht,m=Je,P=Et;return N(),G("div",oa,[l(S,{value:n.value,"onUpdate:value":_[0]||(_[0]=T=>n.value=T),placeholder:"输入查询内容测试检索效果","enter-button":"检索",size:"large",loading:J(t).isSearching,onSearch:b},null,8,["value","loading"]),l(p,{activeKey:a.value,"onUpdate:activeKey":_[4]||(_[4]=T=>a.value=T),class:"advanced-options",ghost:""},{default:x(()=>[l(h,{key:"advanced",header:"高级选项"},{default:x(()=>[l(s,{layout:"inline",class:"advanced-form"},{default:x(()=>[l(k,{label:"信息源"},{default:x(()=>[l($,{value:i.value,"onUpdate:value":_[1]||(_[1]=T=>i.value=T),mode:"multiple",placeholder:"选择信息源(默认全部)",style:{"min-width":"240px"},options:d.value,"allow-clear":""},null,8,["value","options"])]),_:1}),l(k,{label:"返回数量"},{default:x(()=>[l(u,{value:r.value,"onUpdate:value":_[2]||(_[2]=T=>r.value=T),min:1,max:20,style:{width:"80px"}},null,8,["value"])]),_:1}),l(k,{label:"检索策略"},{default:x(()=>[l(g,{value:c.value,"onUpdate:value":_[3]||(_[3]=T=>c.value=T)},{default:x(()=>[l(C,{value:"vector"},{default:x(()=>[..._[5]||(_[5]=[X("向量",-1)])]),_:1}),l(C,{value:"hybrid"},{default:x(()=>[..._[6]||(_[6]=[X("混合",-1)])]),_:1})]),_:1},8,["value"])]),_:1})]),_:1})]),_:1})]),_:1},8,["activeKey"]),J(t).searchResults.length>0?(N(),G("div",ra,[l(y,null,{default:x(()=>[X("检索结果 ("+Z(J(t).searchResults.length)+")",1)]),_:1}),(N(!0),G(te,null,lt(J(t).searchResults,(T,F)=>(N(),G("div",{key:F,class:"search-result-item"},[me("div",aa,[me("span",la,"#"+Z(F+1),1),l(m,{color:"blue"},{default:x(()=>[X(Z(T.source),1)]),_:2},1024),me("span",ia," 相关度: "+Z((T.score*100).toFixed(1))+"% ",1)]),me("div",sa,Z(T.content),1),Object.keys(T.metadata).length>0?(N(),G("div",ca,[(N(!0),G(te,null,lt(T.metadata,(R,w)=>(N(),ue(m,{key:String(w),size:"small"},{default:x(()=>[X(Z(w)+": "+Z(R),1)]),_:2},1024))),128))])):Q("",!0)]))),128))])):o.value&&!J(t).isSearching?(N(),ue(P,{key:1,description:"未找到相关结果"})):Q("",!0)])}}}),da=Fe(ua,[["__scopeId","data-v-bfaf0801"]]),pa={class:"kb-view"},fa=V({__name:"KnowledgeBaseView",setup(e){const t=je(),n=z("documents");return ye(()=>{t.fetchSources()}),(o,a)=>{const i=Bn,r=Un;return N(),G("div",pa,[l(r,{activeKey:n.value,"onUpdate:activeKey":a[0]||(a[0]=c=>n.value=c)},{default:x(()=>[l(i,{key:"documents",tab:"文档管理"},{default:x(()=>[l(Yr)]),_:1}),l(i,{key:"sources",tab:"信息源配置"},{default:x(()=>[l(na)]),_:1}),l(i,{key:"search",tab:"检索测试"},{default:x(()=>[l(da)]),_:1})]),_:1},8,["activeKey"])])}}}),za=Fe(fa,[["__scopeId","data-v-e4e6375c"]]);export{za as default}; diff --git a/src/agentkit/server/static/assets/LeftOutlined-CXpCfAZF.js b/src/agentkit/server/static/assets/LeftOutlined-CXpCfAZF.js new file mode 100644 index 0000000..e4c6723 --- /dev/null +++ b/src/agentkit/server/static/assets/LeftOutlined-CXpCfAZF.js @@ -0,0 +1 @@ +import{c,I as u}from"./index-Ci55MVrK.js";var s={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"};function i(r){for(var t=1;t{const{componentCls:n}=e,l=`${n}-inner`;return{[n]:{[`&${n}-small`]:{minWidth:e.switchMinWidthSM,height:e.switchHeightSM,lineHeight:`${e.switchHeightSM}px`,[`${n}-inner`]:{paddingInlineStart:e.switchInnerMarginMaxSM,paddingInlineEnd:e.switchInnerMarginMinSM,[`${l}-checked`]:{marginInlineStart:`calc(-100% + ${e.switchPinSizeSM+e.switchPadding*2}px - ${e.switchInnerMarginMaxSM*2}px)`,marginInlineEnd:`calc(100% - ${e.switchPinSizeSM+e.switchPadding*2}px + ${e.switchInnerMarginMaxSM*2}px)`},[`${l}-unchecked`]:{marginTop:-e.switchHeightSM,marginInlineStart:0,marginInlineEnd:0}},[`${n}-handle`]:{width:e.switchPinSizeSM,height:e.switchPinSizeSM},[`${n}-loading-icon`]:{top:(e.switchPinSizeSM-e.switchLoadingIconSize)/2,fontSize:e.switchLoadingIconSize},[`&${n}-checked`]:{[`${n}-inner`]:{paddingInlineStart:e.switchInnerMarginMinSM,paddingInlineEnd:e.switchInnerMarginMaxSM,[`${l}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${l}-unchecked`]:{marginInlineStart:`calc(100% - ${e.switchPinSizeSM+e.switchPadding*2}px + ${e.switchInnerMarginMaxSM*2}px)`,marginInlineEnd:`calc(-100% + ${e.switchPinSizeSM+e.switchPadding*2}px - ${e.switchInnerMarginMaxSM*2}px)`}},[`${n}-handle`]:{insetInlineStart:`calc(100% - ${e.switchPinSizeSM+e.switchPadding}px)`}},[`&:not(${n}-disabled):active`]:{[`&:not(${n}-checked) ${l}`]:{[`${l}-unchecked`]:{marginInlineStart:e.marginXXS/2,marginInlineEnd:-e.marginXXS/2}},[`&${n}-checked ${l}`]:{[`${l}-checked`]:{marginInlineStart:-e.marginXXS/2,marginInlineEnd:e.marginXXS/2}}}}}}},xe=e=>{const{componentCls:n}=e;return{[n]:{[`${n}-loading-icon${e.iconCls}`]:{position:"relative",top:(e.switchPinSize-e.fontSize)/2,color:e.switchLoadingIconColor,verticalAlign:"top"},[`&${n}-checked ${n}-loading-icon`]:{color:e.switchColor}}}},Pe=e=>{const{componentCls:n}=e,l=`${n}-handle`;return{[n]:{[l]:{position:"absolute",top:e.switchPadding,insetInlineStart:e.switchPadding,width:e.switchPinSize,height:e.switchPinSize,transition:`all ${e.switchDuration} ease-in-out`,"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:e.colorWhite,borderRadius:e.switchPinSize/2,boxShadow:e.switchHandleShadow,transition:`all ${e.switchDuration} ease-in-out`,content:'""'}},[`&${n}-checked ${l}`]:{insetInlineStart:`calc(100% - ${e.switchPinSize+e.switchPadding}px)`},[`&:not(${n}-disabled):active`]:{[`${l}::before`]:{insetInlineEnd:e.switchHandleActiveInset,insetInlineStart:0},[`&${n}-checked ${l}::before`]:{insetInlineEnd:0,insetInlineStart:e.switchHandleActiveInset}}}}},ke=e=>{const{componentCls:n}=e,l=`${n}-inner`;return{[n]:{[l]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:e.switchInnerMarginMax,paddingInlineEnd:e.switchInnerMarginMin,transition:`padding-inline-start ${e.switchDuration} ease-in-out, padding-inline-end ${e.switchDuration} ease-in-out`,[`${l}-checked, ${l}-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"},[`${l}-checked`]:{marginInlineStart:`calc(-100% + ${e.switchPinSize+e.switchPadding*2}px - ${e.switchInnerMarginMax*2}px)`,marginInlineEnd:`calc(100% - ${e.switchPinSize+e.switchPadding*2}px + ${e.switchInnerMarginMax*2}px)`},[`${l}-unchecked`]:{marginTop:-e.switchHeight,marginInlineStart:0,marginInlineEnd:0}},[`&${n}-checked ${l}`]:{paddingInlineStart:e.switchInnerMarginMin,paddingInlineEnd:e.switchInnerMarginMax,[`${l}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${l}-unchecked`]:{marginInlineStart:`calc(100% - ${e.switchPinSize+e.switchPadding*2}px + ${e.switchInnerMarginMax*2}px)`,marginInlineEnd:`calc(-100% + ${e.switchPinSize+e.switchPadding*2}px - ${e.switchInnerMarginMax*2}px)`}},[`&:not(${n}-disabled):active`]:{[`&:not(${n}-checked) ${l}`]:{[`${l}-unchecked`]:{marginInlineStart:e.switchPadding*2,marginInlineEnd:-e.switchPadding*2}},[`&${n}-checked ${l}`]:{[`${l}-checked`]:{marginInlineStart:-e.switchPadding*2,marginInlineEnd:e.switchPadding*2}}}}}},ze=e=>{const{componentCls:n}=e;return{[n]:z(z(z(z({},j(e)),{position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:e.switchMinWidth,height:e.switchHeight,lineHeight:`${e.switchHeight}px`,verticalAlign:"middle",background:e.colorTextQuaternary,border:"0",borderRadius:100,cursor:"pointer",transition:`all ${e.motionDurationMid}`,userSelect:"none",[`&:hover:not(${n}-disabled)`]:{background:e.colorTextTertiary}}),J(e)),{[`&${n}-checked`]:{background:e.switchColor,[`&:hover:not(${n}-disabled)`]:{background:e.colorPrimaryHover}},[`&${n}-loading, &${n}-disabled`]:{cursor:"not-allowed",opacity:e.switchDisabledOpacity,"*":{boxShadow:"none",cursor:"not-allowed"}},[`&${n}-rtl`]:{direction:"rtl"}})}},Ee=G("Switch",e=>{const n=e.fontSize*e.lineHeight,l=e.controlHeight/2,d=2,w=n-d*2,t=l-d*2,u=X(e,{switchMinWidth:w*2+d*4,switchHeight:n,switchDuration:e.motionDurationMid,switchColor:e.colorPrimary,switchDisabledOpacity:e.opacityLoading,switchInnerMarginMin:w/2,switchInnerMarginMax:w+d+d*2,switchPadding:d,switchPinSize:w,switchBg:e.colorBgContainer,switchMinWidthSM:t*2+d*2,switchHeightSM:l,switchInnerMarginMinSM:t/2,switchInnerMarginMaxSM:t+d+d*2,switchPinSizeSM:t,switchHandleShadow:`0 2px 4px 0 ${new q("#00230b").setAlpha(.2).toRgbString()}`,switchLoadingIconSize:e.fontSizeIcon*.75,switchLoadingIconColor:`rgba(0, 0, 0, ${e.opacityLoading})`,switchHandleActiveInset:"-30%"});return[ze(u),ke(u),Pe(u),xe(u),Me(u)]}),Ue=ie("small","default"),Te=()=>({id:String,prefixCls:String,size:f.oneOf(Ue),disabled:{type:Boolean,default:void 0},checkedChildren:f.any,unCheckedChildren:f.any,tabindex:f.oneOfType([f.string,f.number]),autofocus:{type:Boolean,default:void 0},loading:{type:Boolean,default:void 0},checked:f.oneOfType([f.string,f.number,f.looseBool]),checkedValue:f.oneOfType([f.string,f.number,f.looseBool]).def(!0),unCheckedValue:f.oneOfType([f.string,f.number,f.looseBool]).def(!1),onChange:{type:Function},onClick:{type:Function},onKeydown:{type:Function},onMouseup:{type:Function},"onUpdate:checked":{type:Function},onBlur:Function,onFocus:Function}),Le=R({compatConfig:{MODE:3},name:"ASwitch",__ANT_SWITCH:!0,inheritAttrs:!1,props:Te(),slots:Object,setup(e,n){let{attrs:l,slots:d,expose:w,emit:t}=n;const u=we(),S=Q(),p=E(()=>{var o;return(o=e.disabled)!==null&&o!==void 0?o:S.value});Y(()=>{});const h=y(e.checked!==void 0?e.checked:l.defaultChecked),b=E(()=>h.value===e.checkedValue);Z(()=>e.checked,()=>{h.value=e.checked});const{prefixCls:m,direction:k,size:I}=ee("switch",e),[$,s]=Ee(m),g=y(),_=()=>{var o;(o=g.value)===null||o===void 0||o.focus()};w({focus:_,blur:()=>{var o;(o=g.value)===null||o===void 0||o.blur()}}),F(()=>{ne(()=>{e.autofocus&&!p.value&&g.value.focus()})});const C=(o,M)=>{p.value||(t("update:checked",o),t("change",o,M),u.onFieldChange())},c=o=>{t("blur",o)},N=o=>{_();const M=b.value?e.unCheckedValue:e.checkedValue;C(M,o),t("click",M,o)},K=o=>{o.keyCode===D.LEFT?C(e.unCheckedValue,o):o.keyCode===D.RIGHT&&C(e.checkedValue,o),t("keydown",o)},V=o=>{var M;(M=g.value)===null||M===void 0||M.blur(),t("mouseup",o)},W=E(()=>({[`${m.value}-small`]:I.value==="small",[`${m.value}-loading`]:e.loading,[`${m.value}-checked`]:b.value,[`${m.value}-disabled`]:p.value,[m.value]:!0,[`${m.value}-rtl`]:k.value==="rtl",[s.value]:!0}));return()=>{var o;return $(i(_e,null,{default:()=>[i("button",U(U(U({},ye(e,["prefixCls","checkedChildren","unCheckedChildren","checked","autofocus","checkedValue","unCheckedValue","id","onChange","onUpdate:checked"])),l),{},{id:(o=e.id)!==null&&o!==void 0?o:u.id.value,onKeydown:K,onClick:N,onBlur:c,onMouseup:V,type:"button",role:"switch","aria-checked":h.value,disabled:p.value||e.loading,class:[l.class,W.value],ref:g}),[i("div",{class:`${m.value}-handle`},[e.loading?i(te,{class:`${m.value}-loading-icon`},null):null]),i("span",{class:`${m.value}-inner`},[i("span",{class:`${m.value}-inner-checked`},[B(d,e,"checkedChildren")]),i("span",{class:`${m.value}-inner-unchecked`},[B(d,e,"unCheckedChildren")])])])]}))}}}),Ae=A(Le),Be="/api/v1";class Oe extends se{constructor(n=Be){super(n)}async getLlmConfig(){return this.request("/settings/llm")}async updateLlmConfig(n){return this.request("/settings/llm",{method:"PUT",body:JSON.stringify(n)})}async getSkillsConfig(){return this.request("/settings/skills")}async updateSkillsConfig(n){return this.request("/settings/skills",{method:"PUT",body:JSON.stringify(n)})}async getKbConfig(){return this.request("/settings/kb")}async updateKbConfig(n){return this.request("/settings/kb",{method:"PUT",body:JSON.stringify(n)})}async getGeneralConfig(){return this.request("/settings/general")}async updateGeneralConfig(n){return this.request("/settings/general",{method:"PUT",body:JSON.stringify(n)})}}const x=new Oe,He=ae("settings",()=>{const e=y({provider:"",model:"",api_key:"",base_url:""}),n=y({default_skill:"",auto_routing:!0,paths:[]}),l=y({default_sources:[],top_k:5,retrieval_mode:"standard"}),d=y({rate_limit:60,cors_origins:["*"],logging_level:"INFO",host:"0.0.0.0",port:8001,workers:1,log_format:"text"}),w=y(!1),t=y(!1),u=y(null),S=y(!1);let p=null;const h=E(()=>!!e.value.provider&&!!e.value.model);function b(s){p=s;const g=s.providers[0];if(g){e.value.provider=g.name,e.value.api_key=g.api_key,e.value.base_url=g.base_url;const _=Object.keys(g.models||{});e.value.model=_[0]||""}}function m(s){var _;const g=((_=s.memory)==null?void 0:_.semantic)||{};l.value.default_sources=g.knowledge_base_ids||[],l.value.top_k=g.top_k??5,l.value.retrieval_mode=g.search_mode||"standard"}function k(s){d.value.host=s.host,d.value.port=s.port,d.value.workers=s.workers,d.value.logging_level=s.log_level,d.value.log_format=s.log_format,d.value.rate_limit=s.rate_limit,d.value.cors_origins=s.cors_origins}async function I(){w.value=!0,u.value=null;try{const[s,g,_,P]=await Promise.allSettled([x.getLlmConfig(),x.getSkillsConfig(),x.getKbConfig(),x.getGeneralConfig()]);s.status==="fulfilled"&&b(s.value),g.status==="fulfilled"&&(n.value.paths=g.value.paths,n.value.auto_routing=g.value.auto_discover),_.status==="fulfilled"&&m(_.value),P.status==="fulfilled"&&k(P.value)}catch(s){u.value=s instanceof Error?s.message:"加载设置失败",console.warn("Failed to fetch settings:",s)}finally{w.value=!1}}async function $(){t.value=!0,u.value=null,S.value=!1;try{const s={name:e.value.provider,type:e.value.provider,api_key:e.value.api_key||null,base_url:e.value.base_url};e.value.model&&(s.models={[e.value.model]:{}});const g={providers:[s]};p&&(g.model_aliases=p.model_aliases,g.fallbacks=p.fallbacks);const _={paths:n.value.paths,auto_discover:n.value.auto_routing},P={memory:{semantic:{enabled:l.value.default_sources.length>0,knowledge_base_ids:l.value.default_sources,top_k:l.value.top_k,search_mode:l.value.retrieval_mode}}},C={rate_limit:d.value.rate_limit,cors_origins:d.value.cors_origins,log_level:d.value.logging_level};await Promise.all([x.updateLlmConfig(g),x.updateSkillsConfig(_),x.updateKbConfig(P),x.updateGeneralConfig(C)]),S.value=!0,setTimeout(()=>{S.value=!1},3e3)}catch(s){throw u.value=s instanceof Error?s.message:"保存设置失败",console.error("Failed to save settings:",s),s}finally{t.value=!1}}return{llm:e,skillSettings:n,kbSettings:l,system:d,isLoading:w,isSaving:t,error:u,saveSuccess:S,hasLLMConfig:h,fetchSettings:I,saveSettings:$}}),De={class:"settings-view"},Re={key:0,class:"settings-view__alert"},Fe={key:1,class:"settings-view__alert"},Ne=R({__name:"SettingsView",setup(e){const n=He(),l=y("llm");F(()=>{n.fetchSettings()});async function d(){try{await n.saveSettings(),H.success("设置已保存")}catch{H.error("保存设置失败")}}return(w,t)=>{const u=he,S=me,p=pe,h=$e,b=fe,m=Ce,k=ve,I=Se,$=ge,s=re,g=Ae,_=be,P=oe,C=de;return L(),T("div",De,[i(P,{activeKey:l.value,"onUpdate:activeKey":t[12]||(t[12]=c=>l.value=c),class:"settings-tabs"},{default:a(()=>[i(s,{key:"llm",tab:"LLM 配置"},{default:a(()=>[i($,{layout:"vertical",class:"settings-form"},{default:a(()=>[i(m,{gutter:16},{default:a(()=>[i(h,{span:12},{default:a(()=>[i(p,{label:"Provider"},{default:a(()=>[i(S,{value:r(n).llm.provider,"onUpdate:value":t[0]||(t[0]=c=>r(n).llm.provider=c),placeholder:"选择 LLM 提供商"},{default:a(()=>[i(u,{value:"anthropic"},{default:a(()=>[...t[13]||(t[13]=[v("Anthropic",-1)])]),_:1}),i(u,{value:"openai"},{default:a(()=>[...t[14]||(t[14]=[v("OpenAI",-1)])]),_:1}),i(u,{value:"gemini"},{default:a(()=>[...t[15]||(t[15]=[v("Gemini",-1)])]),_:1}),i(u,{value:"custom"},{default:a(()=>[...t[16]||(t[16]=[v("自定义",-1)])]),_:1})]),_:1},8,["value"])]),_:1})]),_:1}),i(h,{span:12},{default:a(()=>[i(p,{label:"模型"},{default:a(()=>[i(b,{value:r(n).llm.model,"onUpdate:value":t[1]||(t[1]=c=>r(n).llm.model=c),placeholder:"例如: claude-sonnet-4-20250514"},null,8,["value"])]),_:1})]),_:1})]),_:1}),i(m,{gutter:16},{default:a(()=>[i(h,{span:12},{default:a(()=>[i(p,{label:"API Key"},{default:a(()=>[i(k,{value:r(n).llm.api_key,"onUpdate:value":t[2]||(t[2]=c=>r(n).llm.api_key=c),placeholder:"输入 API Key"},null,8,["value"])]),_:1})]),_:1}),i(h,{span:12},{default:a(()=>[i(p,{label:"Base URL"},{default:a(()=>[i(b,{value:r(n).llm.base_url,"onUpdate:value":t[3]||(t[3]=c=>r(n).llm.base_url=c),placeholder:"自定义 API 地址(可选)"},null,8,["value"])]),_:1})]),_:1})]),_:1}),i(I,{type:"primary",loading:r(n).isSaving,onClick:d},{default:a(()=>[...t[17]||(t[17]=[v("保存 LLM 配置",-1)])]),_:1},8,["loading"])]),_:1})]),_:1}),i(s,{key:"skills",tab:"技能管理"},{default:a(()=>[i($,{layout:"vertical",class:"settings-form"},{default:a(()=>[i(m,{gutter:16},{default:a(()=>[i(h,{span:12},{default:a(()=>[i(p,{label:"默认技能"},{default:a(()=>[i(b,{value:r(n).skillSettings.default_skill,"onUpdate:value":t[4]||(t[4]=c=>r(n).skillSettings.default_skill=c),placeholder:"留空则使用自动路由"},null,8,["value"])]),_:1})]),_:1}),i(h,{span:12},{default:a(()=>[i(p,{label:"自动路由"},{default:a(()=>[i(g,{checked:r(n).skillSettings.auto_routing,"onUpdate:checked":t[5]||(t[5]=c=>r(n).skillSettings.auto_routing=c)},null,8,["checked"]),t[18]||(t[18]=le("span",{class:"settings-form__hint"},"启用后自动将消息路由到最匹配的技能",-1))]),_:1})]),_:1})]),_:1}),i(I,{type:"primary",loading:r(n).isSaving,onClick:d},{default:a(()=>[...t[19]||(t[19]=[v("保存技能配置",-1)])]),_:1},8,["loading"])]),_:1})]),_:1}),i(s,{key:"knowledge",tab:"知识库设置"},{default:a(()=>[i($,{layout:"vertical",class:"settings-form"},{default:a(()=>[i(m,{gutter:16},{default:a(()=>[i(h,{span:8},{default:a(()=>[i(p,{label:"默认信息源"},{default:a(()=>[i(S,{value:r(n).kbSettings.default_sources,"onUpdate:value":t[6]||(t[6]=c=>r(n).kbSettings.default_sources=c),mode:"multiple",placeholder:"选择默认信息源"},{default:a(()=>[i(u,{value:"local"},{default:a(()=>[...t[20]||(t[20]=[v("本地文档",-1)])]),_:1}),i(u,{value:"feishu"},{default:a(()=>[...t[21]||(t[21]=[v("飞书",-1)])]),_:1}),i(u,{value:"confluence"},{default:a(()=>[...t[22]||(t[22]=[v("Confluence",-1)])]),_:1})]),_:1},8,["value"])]),_:1})]),_:1}),i(h,{span:8},{default:a(()=>[i(p,{label:"检索数量 (Top K)"},{default:a(()=>[i(_,{value:r(n).kbSettings.top_k,"onUpdate:value":t[7]||(t[7]=c=>r(n).kbSettings.top_k=c),min:1,max:50,style:{width:"100%"}},null,8,["value"])]),_:1})]),_:1}),i(h,{span:8},{default:a(()=>[i(p,{label:"检索模式"},{default:a(()=>[i(S,{value:r(n).kbSettings.retrieval_mode,"onUpdate:value":t[8]||(t[8]=c=>r(n).kbSettings.retrieval_mode=c)},{default:a(()=>[i(u,{value:"standard"},{default:a(()=>[...t[23]||(t[23]=[v("标准",-1)])]),_:1}),i(u,{value:"rerank"},{default:a(()=>[...t[24]||(t[24]=[v("重排序",-1)])]),_:1}),i(u,{value:"compression"},{default:a(()=>[...t[25]||(t[25]=[v("压缩",-1)])]),_:1})]),_:1},8,["value"])]),_:1})]),_:1})]),_:1}),i(I,{type:"primary",loading:r(n).isSaving,onClick:d},{default:a(()=>[...t[26]||(t[26]=[v("保存知识库配置",-1)])]),_:1},8,["loading"])]),_:1})]),_:1}),i(s,{key:"system",tab:"系统设置"},{default:a(()=>[i($,{layout:"vertical",class:"settings-form"},{default:a(()=>[i(m,{gutter:16},{default:a(()=>[i(h,{span:8},{default:a(()=>[i(p,{label:"速率限制 (次/分钟)"},{default:a(()=>[i(_,{value:r(n).system.rate_limit,"onUpdate:value":t[9]||(t[9]=c=>r(n).system.rate_limit=c),min:1,max:1e3,style:{width:"100%"}},null,8,["value"])]),_:1})]),_:1}),i(h,{span:8},{default:a(()=>[i(p,{label:"日志级别"},{default:a(()=>[i(S,{value:r(n).system.logging_level,"onUpdate:value":t[10]||(t[10]=c=>r(n).system.logging_level=c)},{default:a(()=>[i(u,{value:"DEBUG"},{default:a(()=>[...t[27]||(t[27]=[v("DEBUG",-1)])]),_:1}),i(u,{value:"INFO"},{default:a(()=>[...t[28]||(t[28]=[v("INFO",-1)])]),_:1}),i(u,{value:"WARNING"},{default:a(()=>[...t[29]||(t[29]=[v("WARNING",-1)])]),_:1}),i(u,{value:"ERROR"},{default:a(()=>[...t[30]||(t[30]=[v("ERROR",-1)])]),_:1})]),_:1},8,["value"])]),_:1})]),_:1}),i(h,{span:8},{default:a(()=>[i(p,{label:"CORS 来源"},{default:a(()=>[i(S,{value:r(n).system.cors_origins,"onUpdate:value":t[11]||(t[11]=c=>r(n).system.cors_origins=c),mode:"tags",placeholder:"输入 CORS 来源"},null,8,["value"])]),_:1})]),_:1})]),_:1}),i(I,{type:"primary",loading:r(n).isSaving,onClick:d},{default:a(()=>[...t[31]||(t[31]=[v("保存系统配置",-1)])]),_:1},8,["loading"])]),_:1})]),_:1})]),_:1},8,["activeKey"]),r(n).saveSuccess?(L(),T("div",Re,[i(C,{message:"设置已保存",type:"success","show-icon":""})])):O("",!0),r(n).error?(L(),T("div",Fe,[i(C,{message:r(n).error,type:"error","show-icon":""},null,8,["message"])])):O("",!0)])}}}),sn=Ie(Ne,[["__scopeId","data-v-69defdaa"]]);export{sn as default}; diff --git a/src/agentkit/server/static/assets/SettingsView-DU8lFOKb.css b/src/agentkit/server/static/assets/SettingsView-DU8lFOKb.css new file mode 100644 index 0000000..396d7a2 --- /dev/null +++ b/src/agentkit/server/static/assets/SettingsView-DU8lFOKb.css @@ -0,0 +1 @@ +.settings-view[data-v-69defdaa]{height:100%;padding:var(--space-4) var(--space-6);overflow-y:auto;background:var(--bg-primary)}.settings-tabs[data-v-69defdaa]{height:100%}.settings-form[data-v-69defdaa]{max-width:600px}.settings-form__hint[data-v-69defdaa]{margin-left:var(--space-2);color:var(--text-tertiary);font-size:var(--font-sm)}.settings-view__alert[data-v-69defdaa]{margin-top:var(--space-3);max-width:600px} diff --git a/src/agentkit/server/static/assets/SkillsView-C1h55c-o.css b/src/agentkit/server/static/assets/SkillsView-C1h55c-o.css new file mode 100644 index 0000000..332b0c5 --- /dev/null +++ b/src/agentkit/server/static/assets/SkillsView-C1h55c-o.css @@ -0,0 +1 @@ +.skill-card[data-v-f7a7f9c2]{cursor:pointer}.skill-card__title[data-v-f7a7f9c2]{display:flex;align-items:center;gap:6px}.skill-card__icon[data-v-f7a7f9c2]{color:var(--color-primary)}.skill-card__desc[data-v-f7a7f9c2]{font-size:13px;color:var(--text-secondary);margin-bottom:8px;line-height:1.5;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.skill-card__tags[data-v-f7a7f9c2]{display:flex;flex-wrap:wrap;gap:4px;margin-bottom:8px}.skill-card__deps[data-v-f7a7f9c2]{display:flex;align-items:center;gap:4px;flex-wrap:wrap}.skill-card__deps-label[data-v-f7a7f9c2],.skill-card__more[data-v-f7a7f9c2]{font-size:12px;color:var(--text-placeholder)}.skill-card__footer[data-v-f7a7f9c2]{margin-top:8px;display:flex;justify-content:flex-end}.skill-card__version[data-v-f7a7f9c2]{font-size:12px;color:var(--text-placeholder)}.skill-detail__tags[data-v-3ddcc970]{display:flex;flex-wrap:wrap;gap:6px}.skill-detail__empty[data-v-3ddcc970]{color:var(--text-placeholder);font-size:13px}.skill-detail__config[data-v-3ddcc970]{background:var(--bg-tertiary);border-radius:6px;padding:12px;overflow-x:auto}.skill-detail__config pre[data-v-3ddcc970]{margin:0;font-size:12px;line-height:1.5}.skill-detail__actions[data-v-3ddcc970]{margin-top:24px;display:flex;gap:12px}.skills-view[data-v-50d34770]{height:100%;padding:var(--space-4) var(--space-6);overflow-y:auto;background:var(--bg-primary)}.skills-view__header[data-v-50d34770]{display:flex;justify-content:space-between;align-items:center;margin-bottom:var(--space-4)}.skills-view__grid[data-v-50d34770]{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:var(--space-4)} diff --git a/src/agentkit/server/static/assets/SkillsView-q_2-8csR.js b/src/agentkit/server/static/assets/SkillsView-q_2-8csR.js new file mode 100644 index 0000000..49d1554 --- /dev/null +++ b/src/agentkit/server/static/assets/SkillsView-q_2-8csR.js @@ -0,0 +1 @@ +import{c as o,x as Le,F as K,b9 as ot,ba as it,bb as st,_ as B,r as T,p as ze,q as Ae,s as rt,aT as ct,d as Q,z as Re,am as dt,Q as ut,E as z,g as W,P as w,J as ft,y as Fe,aj as Ce,aI as J,a7 as pt,aM as mt,B as Se,C as fe,A as ae,$ as He,N as be,aE as _e,m as $e,v as xe,G as V,aF as vt,D as he,aN as Oe,aH as Pe,Z as yt,I as We,a1 as ht,o as x,a as N,w as b,b as F,t as L,j as se,k as X,X as E,f as G,e as R,ay as ce,W as gt}from"./index-Ci55MVrK.js";import{B as bt}from"./base-B4siOKZE.js";import{C as St}from"./index-CIzBtwkp.js";import{T as Ve}from"./index-DaJ9bCD1.js";import{i as Ie,B as Ue}from"./index-3crJqV8H.js";import{A as kt}from"./AppstoreOutlined-BuRUmkq3.js";import{i as Xe,d as wt,_ as ke}from"./_plugin-vue_export-helper-CBXJ7-XR.js";import{c as Ct,K as _t,P as $t}from"./zoom-C2fVs05p.js";import{o as Ye}from"./FormItemContext-D_7H_KA_.js";import{N as xt,B as Ge}from"./index-Dr_Qcbdk.js";import{u as Ot,r as De}from"./responsiveObserve-CDxZiPRN.js";import{_ as Pt}from"./index-DJ0mAqy8.js";import{S as It,a as Dt}from"./Dropdown-BUKifQVF.js";import{S as Bt}from"./index-CzM1ezFC.js";import{S as Mt}from"./index-yRXoO2C0.js";import{M as Tt}from"./index-CuVGmFKn.js";import{P as Nt,I as jt}from"./index-D6JhFblJ.js";import{F as Et,_ as Lt}from"./index-Cec7QIaL.js";import{_ as zt}from"./index-CIdKTsyN.js";import"./index-BLB5C8KY.js";import"./index-B5q-1V92.js";import"./pickAttrs-Crnv5AEc.js";import"./styleChecker-CUnokkun.js";function ue(e){return e!=null}const ge=e=>{const{itemPrefixCls:t,component:l,span:n,labelStyle:a,contentStyle:c,bordered:s,label:f,content:u,colon:m}=e,v=l;return s?o(v,{class:[{[`${t}-item-label`]:ue(f),[`${t}-item-content`]:ue(u)}],colSpan:n},{default:()=>[ue(f)&&o("span",{style:a},[f]),ue(u)&&o("span",{style:c},[u])]}):o(v,{class:[`${t}-item`],colSpan:n},{default:()=>[o("div",{class:`${t}-item-container`},[(f||f===0)&&o("span",{class:[`${t}-item-label`,{[`${t}-item-no-colon`]:!m}],style:a},[f]),(u||u===0)&&o("span",{class:`${t}-item-content`,style:c},[u])])]})},At=e=>{const t=(m,v,C)=>{let{colon:S,prefixCls:O,bordered:P}=v,{component:y,type:k,showLabel:i,showContent:d,labelStyle:p,contentStyle:I}=C;return m.map((g,_)=>{var M,j;const H=g.props||{},{prefixCls:Y=O,span:Z=1,labelStyle:D=H["label-style"],contentStyle:oe=H["content-style"],label:re=(j=(M=g.children)===null||M===void 0?void 0:M.label)===null||j===void 0?void 0:j.call(M)}=H,ee=ot(g),te=it(g),ne=st(g),{key:le}=g;return typeof y=="string"?o(ge,{key:`${k}-${String(le)||_}`,class:te,style:ne,labelStyle:B(B({},p),D),contentStyle:B(B({},I),oe),span:Z,colon:S,component:y,itemPrefixCls:Y,bordered:P,label:i?re:null,content:d?ee:null},null):[o(ge,{key:`label-${String(le)||_}`,class:te,style:B(B(B({},p),ne),D),span:1,colon:S,component:y[0],itemPrefixCls:Y,bordered:P,label:re},null),o(ge,{key:`content-${String(le)||_}`,class:te,style:B(B(B({},I),ne),oe),span:Z*2-1,component:y[1],itemPrefixCls:Y,bordered:P,content:ee},null)]})},{prefixCls:l,vertical:n,row:a,index:c,bordered:s}=e,{labelStyle:f,contentStyle:u}=Le(Ke,{labelStyle:T({}),contentStyle:T({})});return n?o(K,null,[o("tr",{key:`label-${c}`,class:`${l}-row`},[t(a,e,{component:"th",type:"label",showLabel:!0,labelStyle:f.value,contentStyle:u.value})]),o("tr",{key:`content-${c}`,class:`${l}-row`},[t(a,e,{component:"td",type:"content",showContent:!0,labelStyle:f.value,contentStyle:u.value})])]):o("tr",{key:c,class:`${l}-row`},[t(a,e,{component:s?["th","td"]:"td",type:"item",showLabel:!0,showContent:!0,labelStyle:f.value,contentStyle:u.value})])},Rt=e=>{const{componentCls:t,descriptionsSmallPadding:l,descriptionsDefaultPadding:n,descriptionsMiddlePadding:a,descriptionsBg:c}=e;return{[`&${t}-bordered`]:{[`${t}-view`]:{border:`${e.lineWidth}px ${e.lineType} ${e.colorSplit}`,"> table":{tableLayout:"auto",borderCollapse:"collapse"}},[`${t}-item-label, ${t}-item-content`]:{padding:n,borderInlineEnd:`${e.lineWidth}px ${e.lineType} ${e.colorSplit}`,"&:last-child":{borderInlineEnd:"none"}},[`${t}-item-label`]:{backgroundColor:c,"&::after":{display:"none"}},[`${t}-row`]:{borderBottom:`${e.lineWidth}px ${e.lineType} ${e.colorSplit}`,"&:last-child":{borderBottom:"none"}},[`&${t}-middle`]:{[`${t}-item-label, ${t}-item-content`]:{padding:a}},[`&${t}-small`]:{[`${t}-item-label, ${t}-item-content`]:{padding:l}}}}},Ft=e=>{const{componentCls:t,descriptionsExtraColor:l,descriptionItemPaddingBottom:n,descriptionsItemLabelColonMarginRight:a,descriptionsItemLabelColonMarginLeft:c,descriptionsTitleMarginBottom:s}=e;return{[t]:B(B(B({},rt(e)),Rt(e)),{"&-rtl":{direction:"rtl"},[`${t}-header`]:{display:"flex",alignItems:"center",marginBottom:s},[`${t}-title`]:B(B({},ct),{flex:"auto",color:e.colorText,fontWeight:e.fontWeightStrong,fontSize:e.fontSizeLG,lineHeight:e.lineHeightLG}),[`${t}-extra`]:{marginInlineStart:"auto",color:l,fontSize:e.fontSize},[`${t}-view`]:{width:"100%",borderRadius:e.borderRadiusLG,table:{width:"100%",tableLayout:"fixed"}},[`${t}-row`]:{"> th, > td":{paddingBottom:n},"&:last-child":{borderBottom:"none"}},[`${t}-item-label`]:{color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,lineHeight:e.lineHeight,textAlign:"start","&::after":{content:'":"',position:"relative",top:-.5,marginInline:`${c}px ${a}px`},[`&${t}-item-no-colon::after`]:{content:'""'}},[`${t}-item-no-label`]:{"&::after":{margin:0,content:'""'}},[`${t}-item-content`]:{display:"table-cell",flex:1,color:e.colorText,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"}}},"&-middle":{[`${t}-row`]:{"> th, > td":{paddingBottom:e.paddingSM}}},"&-small":{[`${t}-row`]:{"> th, > td":{paddingBottom:e.paddingXS}}}})}},Ht=ze("Descriptions",e=>{const t=e.colorFillAlter,l=e.fontSizeSM*e.lineHeightSM,n=e.colorText,a=`${e.paddingXS}px ${e.padding}px`,c=`${e.padding}px ${e.paddingLG}px`,s=`${e.paddingSM}px ${e.paddingLG}px`,f=e.padding,u=e.marginXS,m=e.marginXXS/2,v=Ae(e,{descriptionsBg:t,descriptionsTitleMarginBottom:l,descriptionsExtraColor:n,descriptionItemPaddingBottom:f,descriptionsSmallPadding:a,descriptionsDefaultPadding:c,descriptionsMiddlePadding:s,descriptionsItemLabelColonMarginRight:u,descriptionsItemLabelColonMarginLeft:m});return[Ft(v)]});w.any;const Wt=()=>({prefixCls:String,label:w.any,labelStyle:{type:Object,default:void 0},contentStyle:{type:Object,default:void 0},span:{type:Number,default:1}}),qe=Q({compatConfig:{MODE:3},name:"ADescriptionsItem",props:Wt(),setup(e,t){let{slots:l}=t;return()=>{var n;return(n=l.default)===null||n===void 0?void 0:n.call(l)}}}),Je={xxxl:3,xxl:3,xl:3,lg:3,md:3,sm:2,xs:1};function Vt(e,t){if(typeof e=="number")return e;if(typeof e=="object")for(let l=0;lt)&&(n=Ct(e,{span:t})),n}function Ut(e,t){const l=ft(e),n=[];let a=[],c=t;return l.forEach((s,f)=>{var u;const m=(u=s.props)===null||u===void 0?void 0:u.span,v=m||1;if(f===l.length-1){a.push(Be(s,c,m)),n.push(a);return}v({prefixCls:String,bordered:{type:Boolean,default:void 0},size:{type:String,default:"default"},title:w.any,extra:w.any,column:{type:[Number,Object],default:()=>Je},layout:String,colon:{type:Boolean,default:void 0},labelStyle:{type:Object,default:void 0},contentStyle:{type:Object,default:void 0}}),Ke=Symbol("descriptionsContext"),ie=Q({compatConfig:{MODE:3},name:"ADescriptions",inheritAttrs:!1,props:Xt(),slots:Object,Item:qe,setup(e,t){let{slots:l,attrs:n}=t;const{prefixCls:a,direction:c}=Re("descriptions",e);let s;const f=T({}),[u,m]=Ht(a),v=Ot();dt(()=>{s=v.value.subscribe(S=>{typeof e.column=="object"&&(f.value=S)})}),ut(()=>{v.value.unsubscribe(s)}),Fe(Ke,{labelStyle:Ce(e,"labelStyle"),contentStyle:Ce(e,"contentStyle")});const C=W(()=>Vt(e.column,f.value));return()=>{var S,O,P;const{size:y,bordered:k=!1,layout:i="horizontal",colon:d=!0,title:p=(S=l.title)===null||S===void 0?void 0:S.call(l),extra:I=(O=l.extra)===null||O===void 0?void 0:O.call(l)}=e,g=(P=l.default)===null||P===void 0?void 0:P.call(l),_=Ut(g,C.value);return u(o("div",z(z({},n),{},{class:[a.value,{[`${a.value}-${y}`]:y!=="default",[`${a.value}-bordered`]:!!k,[`${a.value}-rtl`]:c.value==="rtl"},n.class,m.value]}),[(p||I)&&o("div",{class:`${a.value}-header`},[p&&o("div",{class:`${a.value}-title`},[p]),I&&o("div",{class:`${a.value}-extra`},[I])]),o("div",{class:`${a.value}-view`},[o("table",null,[o("tbody",null,[_.map((M,j)=>o(At,{key:j,index:j,colon:d,prefixCls:a.value,vertical:i==="vertical",bordered:k,row:M},null))])])])]))}}});ie.install=function(e){return e.component(ie.name,ie),e.component(ie.Item.name,ie.Item),e};const Qe=()=>({prefixCls:String,width:w.oneOfType([w.string,w.number]),height:w.oneOfType([w.string,w.number]),style:{type:Object,default:void 0},class:String,rootClassName:String,rootStyle:J(),placement:{type:String},wrapperClassName:String,level:{type:[String,Array]},levelMove:{type:[Number,Function,Array]},duration:String,ease:String,showMask:{type:Boolean,default:void 0},maskClosable:{type:Boolean,default:void 0},maskStyle:{type:Object,default:void 0},afterVisibleChange:Function,keyboard:{type:Boolean,default:void 0},contentWrapperStyle:mt(),autofocus:{type:Boolean,default:void 0},open:{type:Boolean,default:void 0},motion:pt(),maskMotion:J()}),Yt=()=>B(B({},Qe()),{forceRender:{type:Boolean,default:void 0},getContainer:w.oneOfType([w.string,w.func,w.object,w.looseBool])}),Gt=()=>B(B({},Qe()),{getContainer:Function,getOpenCount:Function,scrollLocker:w.any,inline:Boolean});function qt(e){return Array.isArray(e)?e:[e]}const Jt={transition:"transitionend",WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend"};Object.keys(Jt).filter(e=>{if(typeof document>"u")return!1;const t=document.getElementsByTagName("html")[0];return e in(t?t.style:{})})[0];const Kt=!(typeof window<"u"&&window.document&&window.document.createElement);var Qt=function(e,t){var l={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(l[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a{fe(()=>{var i;const{open:d,getContainer:p,showMask:I,autofocus:g}=e,_=p==null?void 0:p();P(e),d&&(_&&(_.parentNode,document.body),fe(()=>{g&&v()}),I&&((i=e.scrollLocker)===null||i===void 0||i.lock()))})}),ae(()=>e.level,()=>{P(e)},{flush:"post"}),ae(()=>e.open,()=>{const{open:i,getContainer:d,scrollLocker:p,showMask:I,autofocus:g}=e,_=d==null?void 0:d();_&&(_.parentNode,document.body),i?(g&&v(),I&&(p==null||p.lock())):p==null||p.unLock()},{flush:"post"}),He(()=>{var i;const{open:d}=e;d&&(document.body.style.touchAction=""),(i=e.scrollLocker)===null||i===void 0||i.unLock()}),ae(()=>e.placement,i=>{i&&(u.value=null)});const v=()=>{var i,d;(d=(i=c.value)===null||i===void 0?void 0:i.focus)===null||d===void 0||d.call(i)},C=i=>{l("close",i)},S=i=>{i.keyCode===_t.ESC&&(i.stopPropagation(),C(i))},O=()=>{const{open:i,afterVisibleChange:d}=e;d&&d(!!i)},P=i=>{let{level:d,getContainer:p}=i;if(Kt)return;const I=p==null?void 0:p(),g=I?I.parentNode:null;m=[],d==="all"?(g?Array.prototype.slice.call(g.children):[]).forEach(M=>{M.nodeName!=="SCRIPT"&&M.nodeName!=="STYLE"&&M.nodeName!=="LINK"&&M!==I&&m.push(M)}):d&&qt(d).forEach(_=>{document.querySelectorAll(_).forEach(M=>{m.push(M)})})},y=i=>{l("handleClick",i)},k=V(!1);return ae(c,()=>{fe(()=>{k.value=!0})}),()=>{var i,d;const{width:p,height:I,open:g,prefixCls:_,placement:M,level:j,levelMove:H,ease:Y,duration:Z,getContainer:D,onChange:oe,afterVisibleChange:re,showMask:ee,maskClosable:te,maskStyle:ne,keyboard:le,getOpenCount:r,scrollLocker:h,contentWrapperStyle:$,style:A,class:q,rootClassName:me,rootStyle:ve,maskMotion:et,motion:ye,inline:tt}=e,nt=Qt(e,["width","height","open","prefixCls","placement","level","levelMove","ease","duration","getContainer","onChange","afterVisibleChange","showMask","maskClosable","maskStyle","keyboard","getOpenCount","scrollLocker","contentWrapperStyle","style","class","rootClassName","rootStyle","maskMotion","motion","inline"]),de=g&&k.value,lt=be(_,{[`${_}-${M}`]:!0,[`${_}-open`]:de,[`${_}-inline`]:tt,"no-mask":!ee,[me]:!0}),at=typeof ye=="function"?ye(M):ye;return o("div",z(z({},Ye(nt,["autofocus"])),{},{tabindex:-1,class:lt,style:ve,ref:c,onKeydown:de&&le?S:void 0}),[o(_e,et,{default:()=>[ee&&$e(o("div",{class:`${_}-mask`,onClick:te?C:void 0,style:ne,ref:s},null),[[xe,de]])]}),o(_e,z(z({},at),{},{onAfterEnter:O,onAfterLeave:O}),{default:()=>[$e(o("div",{class:`${_}-content-wrapper`,style:[$],ref:a},[o("div",{class:[`${_}-content`,q],style:A,ref:u},[(i=n.default)===null||i===void 0?void 0:i.call(n)]),n.handler?o("div",{onClick:y,ref:f},[(d=n.handler)===null||d===void 0?void 0:d.call(n)]):null]),[[xe,de]])]})])}}});var Te=function(e,t){var l={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(l[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a{},showMask:!0,maskClosable:!0,maskStyle:{},wrapperClassName:"",keyboard:!0,forceRender:!1,autofocus:!0}),emits:["handleClick","close"],setup(e,t){let{emit:l,slots:n}=t;const a=T(null),c=f=>{l("handleClick",f)},s=f=>{l("close",f)};return()=>{const{getContainer:f,wrapperClassName:u,rootClassName:m,rootStyle:v,forceRender:C}=e,S=Te(e,["getContainer","wrapperClassName","rootClassName","rootStyle","forceRender"]);let O=null;if(!f)return o(Me,z(z({},S),{},{rootClassName:m,rootStyle:v,open:e.open,onClose:s,onHandleClick:c,inline:!0}),n);const P=!!n.handler||C;return(P||e.open||a.value)&&(O=o($t,{autoLock:!0,visible:e.open,forceRender:P,getContainer:f,wrapperClassName:u},{default:y=>{var{visible:k,afterClose:i}=y,d=Te(y,["visible","afterClose"]);return o(Me,z(z(z({ref:a},S),d),{},{rootClassName:m,rootStyle:v,open:k!==void 0?k:e.open,afterVisibleChange:i!==void 0?i:e.afterVisibleChange,onClose:s,onHandleClick:c}),n)}})),O}}}),en=e=>{const{componentCls:t,motionDurationSlow:l}=e,n={"&-enter, &-appear, &-leave":{"&-start":{transition:"none"},"&-active":{transition:`all ${l}`}}};return{[t]:{[`${t}-mask-motion`]:{"&-enter, &-appear, &-leave":{"&-active":{transition:`all ${l}`}},"&-enter, &-appear":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}}},[`${t}-panel-motion`]:{"&-left":[n,{"&-enter, &-appear":{"&-start":{transform:"translateX(-100%) !important"},"&-active":{transform:"translateX(0)"}},"&-leave":{transform:"translateX(0)","&-active":{transform:"translateX(-100%)"}}}],"&-right":[n,{"&-enter, &-appear":{"&-start":{transform:"translateX(100%) !important"},"&-active":{transform:"translateX(0)"}},"&-leave":{transform:"translateX(0)","&-active":{transform:"translateX(100%)"}}}],"&-top":[n,{"&-enter, &-appear":{"&-start":{transform:"translateY(-100%) !important"},"&-active":{transform:"translateY(0)"}},"&-leave":{transform:"translateY(0)","&-active":{transform:"translateY(-100%)"}}}],"&-bottom":[n,{"&-enter, &-appear":{"&-start":{transform:"translateY(100%) !important"},"&-active":{transform:"translateY(0)"}},"&-leave":{transform:"translateY(0)","&-active":{transform:"translateY(100%)"}}}]}}}},tn=e=>{const{componentCls:t,zIndexPopup:l,colorBgMask:n,colorBgElevated:a,motionDurationSlow:c,motionDurationMid:s,padding:f,paddingLG:u,fontSizeLG:m,lineHeightLG:v,lineWidth:C,lineType:S,colorSplit:O,marginSM:P,colorIcon:y,colorIconHover:k,colorText:i,fontWeightStrong:d,drawerFooterPaddingVertical:p,drawerFooterPaddingHorizontal:I}=e,g=`${t}-content-wrapper`;return{[t]:{position:"fixed",inset:0,zIndex:l,pointerEvents:"none","&-pure":{position:"relative",background:a,[`&${t}-left`]:{boxShadow:e.boxShadowDrawerLeft},[`&${t}-right`]:{boxShadow:e.boxShadowDrawerRight},[`&${t}-top`]:{boxShadow:e.boxShadowDrawerUp},[`&${t}-bottom`]:{boxShadow:e.boxShadowDrawerDown}},"&-inline":{position:"absolute"},[`${t}-mask`]:{position:"absolute",inset:0,zIndex:l,background:n,pointerEvents:"auto"},[g]:{position:"absolute",zIndex:l,transition:`all ${c}`,"&-hidden":{display:"none"}},[`&-left > ${g}`]:{top:0,bottom:0,left:{_skip_check_:!0,value:0},boxShadow:e.boxShadowDrawerLeft},[`&-right > ${g}`]:{top:0,right:{_skip_check_:!0,value:0},bottom:0,boxShadow:e.boxShadowDrawerRight},[`&-top > ${g}`]:{top:0,insetInline:0,boxShadow:e.boxShadowDrawerUp},[`&-bottom > ${g}`]:{bottom:0,insetInline:0,boxShadow:e.boxShadowDrawerDown},[`${t}-content`]:{width:"100%",height:"100%",overflow:"auto",background:a,pointerEvents:"auto"},[`${t}-wrapper-body`]:{display:"flex",flexDirection:"column",width:"100%",height:"100%"},[`${t}-header`]:{display:"flex",flex:0,alignItems:"center",padding:`${f}px ${u}px`,fontSize:m,lineHeight:v,borderBottom:`${C}px ${S} ${O}`,"&-title":{display:"flex",flex:1,alignItems:"center",minWidth:0,minHeight:0}},[`${t}-extra`]:{flex:"none"},[`${t}-close`]:{display:"inline-block",marginInlineEnd:P,color:y,fontWeight:d,fontSize:m,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",textDecoration:"none",background:"transparent",border:0,outline:0,cursor:"pointer",transition:`color ${s}`,textRendering:"auto","&:focus, &:hover":{color:k,textDecoration:"none"}},[`${t}-title`]:{flex:1,margin:0,color:i,fontWeight:e.fontWeightStrong,fontSize:m,lineHeight:v},[`${t}-body`]:{flex:1,minWidth:0,minHeight:0,padding:u,overflow:"auto"},[`${t}-footer`]:{flexShrink:0,padding:`${p}px ${I}px`,borderTop:`${C}px ${S} ${O}`},"&-rtl":{direction:"rtl"}}}},nn=ze("Drawer",e=>{const t=Ae(e,{drawerFooterPaddingVertical:e.paddingXS,drawerFooterPaddingHorizontal:e.padding});return[tn(t),en(t)]},e=>({zIndexPopup:e.zIndexPopupBase}));var ln=function(e,t){var l={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(l[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a({autofocus:{type:Boolean,default:void 0},closable:{type:Boolean,default:void 0},closeIcon:w.any,destroyOnClose:{type:Boolean,default:void 0},forceRender:{type:Boolean,default:void 0},getContainer:{type:[String,Function,Boolean,Object],default:void 0},maskClosable:{type:Boolean,default:void 0},mask:{type:Boolean,default:void 0},maskStyle:J(),rootClassName:String,rootStyle:J(),size:{type:String},drawerStyle:J(),headerStyle:J(),bodyStyle:J(),contentWrapperStyle:{type:Object,default:void 0},title:w.any,visible:{type:Boolean,default:void 0},open:{type:Boolean,default:void 0},width:w.oneOfType([w.string,w.number]),height:w.oneOfType([w.string,w.number]),zIndex:Number,prefixCls:String,push:w.oneOfType([w.looseBool,{type:Object}]),placement:w.oneOf(an),keyboard:{type:Boolean,default:void 0},extra:w.any,footer:w.any,footerStyle:J(),level:w.any,levelMove:{type:[Number,Array,Function]},handle:w.any,afterVisibleChange:Function,onAfterVisibleChange:Function,onAfterOpenChange:Function,"onUpdate:visible":Function,"onUpdate:open":Function,onClose:Function}),sn=Q({compatConfig:{MODE:3},name:"ADrawer",inheritAttrs:!1,props:Xe(on(),{closable:!0,placement:"right",maskClosable:!0,mask:!0,level:null,keyboard:!0,push:Ne}),slots:Object,setup(e,t){let{emit:l,slots:n,attrs:a}=t;const c=V(!1),s=V(!1),f=V(null),u=V(!1),m=V(!1),v=W(()=>{var r;return(r=e.open)!==null&&r!==void 0?r:e.visible});ae(v,()=>{v.value?u.value=!0:m.value=!1},{immediate:!0}),ae([v,u],()=>{v.value&&u.value&&(m.value=!0)},{immediate:!0});const C=Le("parentDrawerOpts",null),{prefixCls:S,getPopupContainer:O,direction:P}=Re("drawer",e),[y,k]=nn(S),i=W(()=>e.getContainer===void 0&&(O!=null&&O.value)?()=>O.value(document.body):e.getContainer);wt(!e.afterVisibleChange,"Drawer","`afterVisibleChange` prop is deprecated, please use `@afterVisibleChange` event instead"),Fe("parentDrawerOpts",{setPush:()=>{c.value=!0},setPull:()=>{c.value=!1,fe(()=>{I()})}}),Se(()=>{v.value&&C&&C.setPush()}),He(()=>{C&&C.setPull()}),ae(m,()=>{C&&(m.value?C.setPush():C.setPull())},{flush:"post"});const I=()=>{var r,h;(h=(r=f.value)===null||r===void 0?void 0:r.domFocus)===null||h===void 0||h.call(r)},g=r=>{l("update:visible",!1),l("update:open",!1),l("close",r)},_=r=>{var h;r||(s.value===!1&&(s.value=!0),e.destroyOnClose&&(u.value=!1)),(h=e.afterVisibleChange)===null||h===void 0||h.call(e,r),l("afterVisibleChange",r),l("afterOpenChange",r)},M=W(()=>{const{push:r,placement:h}=e;let $;return typeof r=="boolean"?$=r?Ne.distance:0:$=r.distance,$=parseFloat(String($||0)),h==="left"||h==="right"?`translateX(${h==="left"?$:-$}px)`:h==="top"||h==="bottom"?`translateY(${h==="top"?$:-$}px)`:null}),j=W(()=>{var r;return(r=e.width)!==null&&r!==void 0?r:e.size==="large"?736:378}),H=W(()=>{var r;return(r=e.height)!==null&&r!==void 0?r:e.size==="large"?736:378}),Y=W(()=>{const{mask:r,placement:h}=e;if(!m.value&&!r)return{};const $={};return h==="left"||h==="right"?$.width=Ie(j.value)?`${j.value}px`:j.value:$.height=Ie(H.value)?`${H.value}px`:H.value,$}),Z=W(()=>{const{zIndex:r,contentWrapperStyle:h}=e,$=Y.value;return[{zIndex:r,transform:c.value?M.value:void 0},B({},h),$]}),D=r=>{const{closable:h,headerStyle:$}=e,A=he(n,e,"extra"),q=he(n,e,"title");return!q&&!h?null:o("div",{class:be(`${r}-header`,{[`${r}-header-close-only`]:h&&!q&&!A}),style:$},[o("div",{class:`${r}-header-title`},[oe(r),q&&o("div",{class:`${r}-title`},[q])]),A&&o("div",{class:`${r}-extra`},[A])])},oe=r=>{var h;const{closable:$}=e,A=n.closeIcon?(h=n.closeIcon)===null||h===void 0?void 0:h.call(n):e.closeIcon;return $&&o("button",{key:"closer",onClick:g,"aria-label":"Close",class:`${r}-close`},[A===void 0?o(yt,null,null):A])},re=r=>{var h;if(s.value&&!e.forceRender&&!u.value)return null;const{bodyStyle:$,drawerStyle:A}=e;return o("div",{class:`${r}-wrapper-body`,style:A},[D(r),o("div",{key:"body",class:`${r}-body`,style:$},[(h=n.default)===null||h===void 0?void 0:h.call(n)]),ee(r)])},ee=r=>{const h=he(n,e,"footer");if(!h)return null;const $=`${r}-footer`;return o("div",{class:$,style:e.footerStyle},[h])},te=W(()=>be({"no-mask":!e.mask,[`${S.value}-rtl`]:P.value==="rtl"},e.rootClassName,k.value)),ne=W(()=>Oe(Pe(S.value,"mask-motion"))),le=r=>Oe(Pe(S.value,`panel-motion-${r}`));return()=>{const{width:r,height:h,placement:$,mask:A,forceRender:q}=e,me=ln(e,["width","height","placement","mask","forceRender"]),ve=B(B(B({},a),Ye(me,["size","closeIcon","closable","destroyOnClose","drawerStyle","headerStyle","bodyStyle","title","push","onAfterVisibleChange","onClose","onUpdate:visible","onUpdate:open","visible"])),{forceRender:q,onClose:g,afterVisibleChange:_,handler:!1,prefixCls:S.value,open:m.value,showMask:A,placement:$,ref:f});return y(o(xt,null,{default:()=>[o(Zt,z(z({},ve),{},{maskMotion:ne.value,motion:le,width:j.value,height:H.value,getContainer:i.value,rootClassName:te.value,rootStyle:e.rootStyle,contentWrapperStyle:Z.value}),{handler:e.handle?()=>e.handle:n.handle,default:()=>re(S.value)})]}))}}}),rn=vt(sn);var cn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M923 283.6a260.04 260.04 0 00-56.9-82.8 264.4 264.4 0 00-84-55.5A265.34 265.34 0 00679.7 125c-49.3 0-97.4 13.5-139.2 39-10 6.1-19.5 12.8-28.5 20.1-9-7.3-18.5-14-28.5-20.1-41.8-25.5-89.9-39-139.2-39-35.5 0-69.9 6.8-102.4 20.3-31.4 13-59.7 31.7-84 55.5a258.44 258.44 0 00-56.9 82.8c-13.9 32.3-21 66.6-21 101.9 0 33.3 6.8 68 20.3 103.3 11.3 29.5 27.5 60.1 48.2 91 32.8 48.9 77.9 99.9 133.9 151.6 92.8 85.7 184.7 144.9 188.6 147.3l23.7 15.2c10.5 6.7 24 6.7 34.5 0l23.7-15.2c3.9-2.5 95.7-61.6 188.6-147.3 56-51.7 101.1-102.7 133.9-151.6 20.7-30.9 37-61.5 48.2-91 13.5-35.3 20.3-70 20.3-103.3.1-35.3-7-69.6-20.9-101.9zM512 814.8S156 586.7 156 385.5C156 283.6 240.3 201 344.3 201c73.1 0 136.5 40.8 167.7 100.4C543.2 241.8 606.6 201 679.7 201c104 0 188.3 82.6 188.3 184.5 0 201.2-356 429.3-356 429.3z"}}]},name:"heart",theme:"outlined"};function je(e){for(var t=1;t({detail:a.statusText}));throw new Error(c.detail??a.statusText)}return a.json()}async uninstallSkill(t){const l=`/api/v1/skills/${encodeURIComponent(t)}`,n=await fetch(l,{method:"DELETE"});if(!n.ok){const a=await n.json().catch(()=>({detail:n.statusText}));throw new Error(a.detail??n.statusText)}return n.json()}async reloadSkill(t){return this.request(`/skills/${encodeURIComponent(t)}/reload`,{method:"POST"})}}const U=new mn,vn=U.listSkills.bind(U),yn=U.getSkillDetail.bind(U),hn=U.checkSkillHealth.bind(U),gn=U.listCapabilities.bind(U),bn=U.reloadSkill.bind(U),Ze=ht("skills",()=>{const e=T([]),t=T([]),l=T(null),n=T(!1),a=T(null),c=T(0),s=T(1),f=T(20),u=T(null),m=W(()=>e.value.map(i=>i.name));async function v(i,d){n.value=!0,a.value=null;try{const p=i??u.value??void 0,I=d??s.value,g=await vn(p,I,f.value);e.value=g.skills,c.value=g.total,s.value=g.page}catch(p){a.value=p instanceof Error?p.message:"获取技能列表失败",console.error("Failed to fetch skills:",p)}finally{n.value=!1}}async function C(){try{const i=await gn();t.value=i.capabilities}catch(i){console.error("Failed to fetch capabilities:",i)}}async function S(i){n.value=!0,a.value=null;try{const d=await yn(i);l.value=d}catch(d){a.value=d instanceof Error?d.message:"获取技能详情失败",console.error("Failed to fetch skill detail:",d)}finally{n.value=!1}}async function O(i){try{return(await hn(i)).status}catch(d){return console.error("Failed to check skill health:",d),"error"}}async function P(i){var d;try{await bn(i),await v(),((d=l.value)==null?void 0:d.name)===i&&await S(i)}catch(p){throw a.value=p instanceof Error?p.message:"重新加载技能失败",console.error("Failed to reload skill:",p),p}}function y(i){u.value=i,s.value=1}function k(){l.value=null}return{skills:e,capabilities:t,selectedSkill:l,isLoading:n,error:a,totalSkills:c,currentPage:s,pageSize:f,selectedCapability:u,skillNames:m,fetchSkills:v,fetchCapabilities:C,fetchSkillDetail:S,checkHealth:O,reloadSkill:P,setCapabilityFilter:y,clearSelectedSkill:k}}),Sn={class:"skill-card__title"},kn={class:"skill-card__desc"},wn={class:"skill-card__tags"},Cn={key:0,class:"skill-card__deps"},_n={key:0,class:"skill-card__more"},$n={class:"skill-card__footer"},xn={key:0,class:"skill-card__version"},On=Q({__name:"SkillCard",props:{skill:{}},emits:["click"],setup(e){return(t,l)=>{const n=Ue,a=Ve,c=St;return x(),N("div",{class:"skill-card",onClick:l[0]||(l[0]=s=>t.$emit("click"))},[o(c,{hoverable:"",size:"small"},{title:b(()=>[F("div",Sn,[o(R(kt),{class:"skill-card__icon"}),F("span",null,L(e.skill.name),1)])]),extra:b(()=>[o(n,{status:e.skill.status==="active"?"success":"default",text:e.skill.status==="active"?"正常":e.skill.status},null,8,["status","text"])]),default:b(()=>[F("p",kn,L(e.skill.description||"暂无描述"),1),F("div",wn,[(x(!0),N(K,null,se(e.skill.capabilities,s=>(x(),X(a,{key:s,size:"small",color:"blue"},{default:b(()=>[E(L(s),1)]),_:2},1024))),128))]),e.skill.dependencies.length>0?(x(),N("div",Cn,[l[1]||(l[1]=F("span",{class:"skill-card__deps-label"},"依赖:",-1)),(x(!0),N(K,null,se(e.skill.dependencies.slice(0,3),s=>(x(),X(a,{key:s,size:"small"},{default:b(()=>[E(L(s),1)]),_:2},1024))),128)),e.skill.dependencies.length>3?(x(),N("span",_n," +"+L(e.skill.dependencies.length-3),1)):G("",!0)])):G("",!0),F("div",$n,[e.skill.version?(x(),N("span",xn,"v"+L(e.skill.version),1)):G("",!0)])]),_:1})])}}}),Pn=ke(On,[["__scopeId","data-v-f7a7f9c2"]]),In={class:"skill-detail__tags"},Dn={key:0,class:"skill-detail__empty"},Bn={class:"skill-detail__tags"},Mn={key:0,class:"skill-detail__empty"},Tn={key:0,class:"skill-detail__config"},Nn={key:1,class:"skill-detail__empty"},jn={class:"skill-detail__actions"},En=Q({__name:"SkillDetail",props:{visible:{type:Boolean},skill:{}},emits:["close"],setup(e){const t=Ze(),l=T(!1);async function n(){if(t.selectedSkill){l.value=!0;try{await t.reloadSkill(t.selectedSkill.name),ce.success("技能已重新加载")}catch{ce.error("重新加载失败")}finally{l.value=!1}}}async function a(){if(!t.selectedSkill)return;await t.checkHealth(t.selectedSkill.name)==="healthy"?ce.success("技能状态正常"):ce.error("技能状态异常")}return(c,s)=>{var P;const f=qe,u=Ue,m=ie,v=Pt,C=Ve,S=Ge,O=rn;return x(),X(O,{open:e.visible,title:((P=e.skill)==null?void 0:P.name)||"技能详情",width:560,onClose:s[0]||(s[0]=y=>c.$emit("close"))},{default:b(()=>[e.skill?(x(),N(K,{key:0},[o(m,{column:1,bordered:"",size:"small"},{default:b(()=>[o(f,{label:"名称"},{default:b(()=>[E(L(e.skill.name),1)]),_:1}),o(f,{label:"版本"},{default:b(()=>[E(L(e.skill.version||"-"),1)]),_:1}),o(f,{label:"状态"},{default:b(()=>[o(u,{status:e.skill.health_status==="healthy"?"success":"warning",text:e.skill.health_status==="healthy"?"正常":e.skill.health_status},null,8,["status","text"])]),_:1}),o(f,{label:"描述"},{default:b(()=>[E(L(e.skill.description||"暂无描述"),1)]),_:1})]),_:1}),o(v,{orientation:"left"},{default:b(()=>[...s[1]||(s[1]=[E("能力标签",-1)])]),_:1}),F("div",In,[(x(!0),N(K,null,se(e.skill.capabilities,y=>(x(),X(C,{key:y,color:"blue"},{default:b(()=>[E(L(y),1)]),_:2},1024))),128)),e.skill.capabilities.length===0?(x(),N("span",Dn,"暂无能力标签")):G("",!0)]),o(v,{orientation:"left"},{default:b(()=>[...s[2]||(s[2]=[E("依赖",-1)])]),_:1}),F("div",Bn,[(x(!0),N(K,null,se(e.skill.dependencies,y=>(x(),X(C,{key:y},{default:b(()=>[E(L(y),1)]),_:2},1024))),128)),e.skill.dependencies.length===0?(x(),N("span",Mn,"无依赖")):G("",!0)]),o(v,{orientation:"left"},{default:b(()=>[...s[3]||(s[3]=[E("配置",-1)])]),_:1}),Object.keys(e.skill.config).length>0?(x(),N("div",Tn,[F("pre",null,L(JSON.stringify(e.skill.config,null,2)),1)])):(x(),N("div",Nn,"暂无配置信息")),F("div",jn,[o(S,{type:"primary",loading:l.value,onClick:n},{icon:b(()=>[o(R(pe))]),default:b(()=>[s[4]||(s[4]=E(" 重新加载 ",-1))]),_:1},8,["loading"]),o(S,{onClick:a},{icon:b(()=>[o(R(we))]),default:b(()=>[s[5]||(s[5]=E(" 健康检查 ",-1))]),_:1})])],64)):G("",!0)]),_:1},8,["open","title"])}}}),Ln=ke(En,[["__scopeId","data-v-3ddcc970"]]),zn={class:"skills-view"},An={class:"skills-view__header"},Rn={class:"skills-view__grid"},Fn=Q({__name:"SkillsView",setup(e){const t=Ze(),l=T(void 0),n=T(!1),a=T(!1),c=T(""),s=T(""),f=T(!1),u=T(""),m=T("");Se(async()=>{await Promise.all([t.fetchSkills(),t.fetchCapabilities()])});async function v(y){t.setCapabilityFilter(y??null),await t.fetchSkills()}async function C(){await Promise.all([t.fetchSkills(),t.fetchCapabilities()])}async function S(y){await t.fetchSkillDetail(y),n.value=!0}function O(){n.value=!1,t.clearSelectedSkill()}async function P(){if(!c.value.trim()){u.value="请输入技能名称";return}f.value=!0,u.value="",m.value="";try{const y=await U.installSkill(c.value.trim(),s.value.trim()||void 0);m.value=y.name,ce.success(`技能 ${y.name} 安装成功!`),await C()}catch(y){u.value=(y==null?void 0:y.message)||"安装失败"}finally{f.value=!1}}return(y,k)=>{const i=Dt,d=It,p=Ge,I=Bt,g=gt,_=Mt,M=jt,j=Lt,H=Et,Y=zt,Z=Tt;return x(),N("div",zn,[F("div",An,[o(d,{value:l.value,"onUpdate:value":k[0]||(k[0]=D=>l.value=D),placeholder:"按能力标签筛选","allow-clear":"",style:{width:"200px"},onChange:v},{default:b(()=>[(x(!0),N(K,null,se(R(t).capabilities,D=>(x(),X(i,{key:D.name,value:D.name},{default:b(()=>[E(L(D.display_name)+" ("+L(D.skill_count)+") ",1)]),_:2},1032,["value"]))),128))]),_:1},8,["value"]),o(I,null,{default:b(()=>[o(p,{type:"primary",onClick:k[1]||(k[1]=D=>a.value=!0)},{icon:b(()=>[o(R(Nt))]),default:b(()=>[k[5]||(k[5]=E(" 安装技能 ",-1))]),_:1}),o(p,{onClick:C,loading:R(t).isLoading},{icon:b(()=>[o(R(pe))]),default:b(()=>[k[6]||(k[6]=E(" 刷新 ",-1))]),_:1},8,["loading"])]),_:1})]),o(_,{spinning:R(t).isLoading},{default:b(()=>[F("div",Rn,[(x(!0),N(K,null,se(R(t).skills,D=>(x(),X(Pn,{key:D.name,skill:D,onClick:oe=>S(D.name)},null,8,["skill","onClick"]))),128))]),!R(t).isLoading&&R(t).skills.length===0?(x(),X(g,{key:0,description:"暂无已注册技能"})):G("",!0)]),_:1},8,["spinning"]),o(Ln,{visible:n.value,skill:R(t).selectedSkill,onClose:O},null,8,["visible","skill"]),o(Z,{open:a.value,"onUpdate:open":k[4]||(k[4]=D=>a.value=D),title:"安装技能","confirm-loading":f.value,onOk:P,"ok-text":"安装","cancel-text":"取消"},{default:b(()=>[o(H,{layout:"vertical"},{default:b(()=>[o(j,{label:"技能名称",required:""},{default:b(()=>[o(M,{value:c.value,"onUpdate:value":k[2]||(k[2]=D=>c.value=D),placeholder:"例如: find-skills"},null,8,["value"])]),_:1}),o(j,{label:"来源 URL(可选)"},{default:b(()=>[o(M,{value:s.value,"onUpdate:value":k[3]||(k[3]=D=>s.value=D),placeholder:"https://... 或留空自动搜索"},null,8,["value"])]),_:1})]),_:1}),u.value?(x(),X(Y,{key:0,message:u.value,type:"error","show-icon":"",style:{"margin-top":"8px"}},null,8,["message"])):G("",!0),m.value?(x(),X(Y,{key:1,message:`技能 ${m.value} 安装成功!`,type:"success","show-icon":"",style:{"margin-top":"8px"}},null,8,["message"])):G("",!0)]),_:1},8,["open","confirm-loading"])])}}}),ul=ke(Fn,[["__scopeId","data-v-50d34770"]]);export{ul as default}; diff --git a/src/agentkit/server/static/assets/TerminalView-BibxhXp4.js b/src/agentkit/server/static/assets/TerminalView-BibxhXp4.js new file mode 100644 index 0000000..0ac386e --- /dev/null +++ b/src/agentkit/server/static/assets/TerminalView-BibxhXp4.js @@ -0,0 +1 @@ +import{c as w,I as G,a1 as Q,r as m,g as D,d as T,B as Z,A as ee,o as f,a as v,b as r,F as L,j,e as _,f as S,t as b,m as te,a2 as ne,a3 as O,Y as P,C as oe,w as B,X as z,n as A,$ as ae}from"./index-Ci55MVrK.js";import{_ as H}from"./_plugin-vue_export-helper-CBXJ7-XR.js";import{B as se}from"./index-Dr_Qcbdk.js";import{M as ie}from"./index-CuVGmFKn.js";import{C as le}from"./index-CKNOcsSD.js";import"./zoom-C2fVs05p.js";import"./FormItemContext-D_7H_KA_.js";import"./pickAttrs-Crnv5AEc.js";import"./styleChecker-CUnokkun.js";import"./Checkbox-C1b034xJ.js";var re={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M536.1 273H488c-4.4 0-8 3.6-8 8v275.3c0 2.6 1.2 5 3.3 6.5l165.3 120.7c3.6 2.6 8.6 1.9 11.2-1.7l28.6-39c2.7-3.7 1.9-8.7-1.7-11.2L544.1 528.5V281c0-4.4-3.6-8-8-8zm219.8 75.2l156.8 38.3c5 1.2 9.9-2.6 9.9-7.7l.8-161.5c0-6.7-7.7-10.5-12.9-6.3L752.9 334.1a8 8 0 003 14.1zm167.7 301.1l-56.7-19.5a8 8 0 00-10.1 4.8c-1.9 5.1-3.9 10.1-6 15.1-17.8 42.1-43.3 80-75.9 112.5a353 353 0 01-112.5 75.9 352.18 352.18 0 01-137.7 27.8c-47.8 0-94.1-9.3-137.7-27.8a353 353 0 01-112.5-75.9c-32.5-32.5-58-70.4-75.9-112.5A353.44 353.44 0 01171 512c0-47.8 9.3-94.2 27.8-137.8 17.8-42.1 43.3-80 75.9-112.5a353 353 0 01112.5-75.9C430.6 167.3 477 158 524.8 158s94.1 9.3 137.7 27.8A353 353 0 01775 261.7c10.2 10.3 19.8 21 28.6 32.3l59.8-46.8C784.7 146.6 662.2 81.9 524.6 82 285 82.1 92.6 276.7 95 516.4 97.4 751.9 288.9 942 524.8 942c185.5 0 343.5-117.6 403.7-282.3 1.5-4.2-.7-8.9-4.9-10.4z"}}]},name:"history",theme:"outlined"};function V(c){for(var e=1;e{const c=m(null),e=m("~"),n=m([]),i=m([]),o=m(!1),a=m(!1),s=m(null),x=m(null),u=m(null);let d=!1,l=null;const y=D(()=>i.value.slice(-50));function g(t){c.value=t}function $(t){e.value=t}function p(t){n.value.push(t),n.value.length>5e3&&(n.value=n.value.slice(-3e3))}function U(){n.value=[]}function E(t){i.value.push(t),i.value.length>1e3&&(i.value=i.value.slice(-500))}function J(){i.value=[]}function I(){if(s.value&&s.value.readyState===WebSocket.OPEN)return;d=!1;const t=window.location.protocol==="https:"?"wss:":"ws:",C=window.location.host;let k=`${t}//${C}/api/v1/terminal/ws`;c.value&&(k+=`?session_id=${c.value}`);const h=new WebSocket(k);h.onopen=()=>{a.value=!0,p("\x1B[32m已连接到终端服务\x1B[0m")},h.onmessage=M=>{try{const Y=JSON.parse(M.data);X(Y)}catch{p(M.data)}},h.onclose=()=>{a.value=!1,p("\x1B[33m终端连接已断开\x1B[0m"),d||(l=setTimeout(()=>{(!s.value||s.value.readyState===WebSocket.CLOSED)&&I()},3e3))},h.onerror=()=>{a.value=!1,p("\x1B[31m连接错误\x1B[0m")},s.value=h}function F(){d=!0,l&&(clearTimeout(l),l=null),s.value&&(s.value.onclose=null,s.value.close(),s.value=null,a.value=!1)}function R(t){s.value&&s.value.readyState===WebSocket.OPEN&&(s.value.send(JSON.stringify({type:"execute",command:t})),p(`\x1B[36m${e.value}$\x1B[0m ${t}`),o.value=!0)}function K(t,C,k=!1){var h;s.value&&s.value.readyState===WebSocket.OPEN&&(s.value.send(JSON.stringify({type:"confirm",confirmation_id:t,approved:C,add_to_whitelist:k,command:((h=u.value)==null?void 0:h.command)||""})),u.value=null)}function q(t){s.value&&s.value.readyState===WebSocket.OPEN&&s.value.send(JSON.stringify({type:"input",data:t}))}function X(t){switch(t.type){case"connected":t.session_id&&(c.value=t.session_id);break;case"output":t.data&&p(t.data);break;case"result":t.output&&p(t.output),t.cwd&&(e.value=t.cwd),t.exit_code!==void 0&&E({command:t.command||"",exit_code:t.exit_code,output:t.output||"",cwd:e.value,timestamp:Date.now()/1e3,duration_ms:t.duration_ms||0}),o.value=!1;break;case"confirmation_required":u.value={confirmation_id:t.confirmation_id,command:t.command,reason:t.reason||"需要用户确认"},p(`\x1B[33m⚠ 需要确认: ${t.command}\x1B[0m`),p(`\x1B[33m 原因: ${t.reason}\x1B[0m`);break;case"error":p(`\x1B[31m错误: ${t.message}\x1B[0m`),o.value=!1;break}}return{sessionId:c,cwd:e,output:n,history:i,isExecuting:o,isWsConnected:a,ws:s,error:x,pendingConfirmation:u,recentCommands:y,setSessionId:g,setCwd:$,appendOutput:p,clearOutput:U,addHistory:E,clearHistory:J,connectWebSocket:I,disconnectWebSocket:F,sendCommand:R,confirmCommand:K,sendInput:q}}),ue={class:"terminal-emulator",ref:"terminalContainer"},me=["innerHTML"],de={key:0,class:"terminal-emulator__welcome"},_e={class:"terminal-emulator__input"},pe={class:"terminal-emulator__prompt"},fe=["disabled","onKeydown"],ve=T({__name:"TerminalEmulator",setup(c){const e=W(),n=m(""),i=m(null),o=m(null),a=m(-1);Z(()=>{e.connectWebSocket()}),ee(()=>e.output.length,async()=>{await oe(),o.value&&(o.value.scrollTop=o.value.scrollHeight)});function s(){const l=n.value.trim();l&&(e.sendCommand(l),n.value="",a.value=-1)}function x(){const l=e.history;l.length!==0&&a.value0?(a.value--,n.value=e.history[e.history.length-1-a.value].command):(a.value=-1,n.value="")}function d(l){return l.replace(/&/g,"&").replace(//g,">").replace(/\x1b\[32m/g,'').replace(/\x1b\[33m/g,'').replace(/\x1b\[31m/g,'').replace(/\x1b\[36m/g,'').replace(/\x1b\[34m/g,'').replace(/\x1b\[35m/g,'').replace(/\x1b\[0m/g,"")}return(l,y)=>(f(),v("div",ue,[r("div",{class:"terminal-emulator__output",ref_key:"outputContainer",ref:o},[(f(!0),v(L,null,j(_(e).output,(g,$)=>(f(),v("div",{key:$,class:"terminal-line"},[r("span",{innerHTML:d(g)},null,8,me)]))),128)),_(e).output.length===0?(f(),v("div",de," Fischer AgentKit 智能终端 - 输入命令开始 ")):S("",!0)],512),r("div",_e,[r("span",pe,b(_(e).cwd)+"$",1),te(r("input",{ref_key:"inputRef",ref:i,"onUpdate:modelValue":y[0]||(y[0]=g=>n.value=g),class:"terminal-emulator__input-field",placeholder:"输入命令...",disabled:_(e).isExecuting,onKeydown:[O(s,["enter"]),O(P(x,["prevent"]),["up"]),O(P(u,["prevent"]),["down"])]},null,40,fe),[[ne,n.value]])])],512))}}),he=H(ve,[["__scopeId","data-v-364ffc0a"]]),ye={class:"command-history"},ge={class:"command-history__header"},we={class:"command-history__list"},be=["onClick"],xe={class:"command-history__item-header"},Ce={class:"command-history__command"},ke={class:"command-history__item-meta"},Se={key:0,class:"command-history__duration"},$e={key:0,class:"command-history__empty"},Oe=T({__name:"CommandHistory",emits:["select"],setup(c){const e=W();function n(i){try{return new Date(i*1e3).toLocaleTimeString("zh-CN")}catch{return""}}return(i,o)=>(f(),v("div",ye,[r("div",ge,[o[2]||(o[2]=r("span",null,"命令历史",-1)),w(_(se),{type:"link",size:"small",onClick:o[0]||(o[0]=a=>_(e).clearHistory())},{default:B(()=>[...o[1]||(o[1]=[z(" 清空 ",-1)])]),_:1})]),r("div",we,[(f(!0),v(L,null,j(_(e).recentCommands,(a,s)=>(f(),v("div",{key:s,class:"command-history__item",onClick:x=>i.$emit("select",a.command)},[r("div",xe,[r("span",{class:A(["command-history__exit-code",a.exit_code===0?"command-history__exit-code--success":"command-history__exit-code--error"])},b(a.exit_code===0?"✓":"✗"),3),r("span",Ce,b(a.command),1)]),r("div",ke,[r("span",null,b(n(a.timestamp)),1),a.duration_ms?(f(),v("span",Se,b(a.duration_ms)+"ms ",1)):S("",!0)])],8,be))),128)),_(e).recentCommands.length===0?(f(),v("div",$e," 暂无命令历史 ")):S("",!0)])]))}}),Be=H(Oe,[["__scopeId","data-v-d8bc7055"]]),Te={class:"terminal-view"},He={class:"terminal-view__main"},Ne={key:0,class:"terminal-view__sidebar-content"},We={class:"terminal-view__modal-body"},Ee={class:"terminal-view__modal-command"},Ie={class:"terminal-view__modal-reason"},Me=T({__name:"TerminalView",setup(c){const e=W(),n=m(!1),i=m(!0),o=D({get:()=>!!e.pendingConfirmation,set:()=>{}});ae(()=>{e.disconnectWebSocket()});function a(u){e.sendCommand(u)}function s(){const u=e.pendingConfirmation;u&&(e.confirmCommand(u.confirmation_id,!0,n.value),n.value=!1)}function x(){const u=e.pendingConfirmation;u&&(e.confirmCommand(u.confirmation_id,!1),n.value=!1)}return(u,d)=>(f(),v("div",Te,[r("div",He,[w(he)]),r("div",{class:A(["terminal-view__sidebar",{"terminal-view__sidebar--collapsed":i.value}])},[r("button",{class:"terminal-view__sidebar-toggle",onClick:d[0]||(d[0]=l=>i.value=!i.value)},[w(_(N))]),i.value?S("",!0):(f(),v("div",Ne,[w(Be,{onSelect:a})]))],2),w(_(ie),{open:o.value,"onUpdate:open":d[2]||(d[2]=l=>o.value=l),title:"命令确认","ok-text":"确认执行","cancel-text":"拒绝",onOk:s,onCancel:x,"ok-button-props":{danger:!0}},{default:B(()=>{var l,y;return[r("div",We,[r("div",Ee,b((l=_(e).pendingConfirmation)==null?void 0:l.command),1),r("div",Ie,b((y=_(e).pendingConfirmation)==null?void 0:y.reason),1),w(_(le),{checked:n.value,"onUpdate:checked":d[1]||(d[1]=g=>n.value=g)},{default:B(()=>[...d[3]||(d[3]=[z(" 添加到会话白名单 ",-1)])]),_:1},8,["checked"])])]}),_:1},8,["open"])]))}}),Re=H(Me,[["__scopeId","data-v-e0e2611b"]]);export{Re as default}; diff --git a/src/agentkit/server/static/assets/TerminalView-C8cu2qRi.css b/src/agentkit/server/static/assets/TerminalView-C8cu2qRi.css new file mode 100644 index 0000000..8b0c5f3 --- /dev/null +++ b/src/agentkit/server/static/assets/TerminalView-C8cu2qRi.css @@ -0,0 +1 @@ +.terminal-emulator[data-v-364ffc0a]{display:flex;flex-direction:column;height:100%;background:var(--code-bg);border-radius:var(--radius-md);overflow:hidden;font-family:SF Mono,Fira Code,Cascadia Code,Menlo,Consolas,monospace}.terminal-emulator__output[data-v-364ffc0a]{flex:1;overflow-y:auto;padding:var(--space-3);font-size:var(--font-sm);line-height:var(--leading-normal);color:var(--code-fg)}.terminal-emulator__welcome[data-v-364ffc0a]{color:var(--code-comment);font-style:italic}.terminal-emulator__input[data-v-364ffc0a]{display:flex;align-items:center;padding:var(--space-2) var(--space-3);border-top:1px solid rgba(255,255,255,.1);background:#0003}.terminal-emulator__prompt[data-v-364ffc0a]{color:var(--code-string);margin-right:var(--space-2);font-size:var(--font-sm);white-space:nowrap}.terminal-emulator__input-field[data-v-364ffc0a]{flex:1;background:transparent;border:none;outline:none;color:var(--code-fg);font-family:inherit;font-size:var(--font-sm)}.terminal-emulator__input-field[data-v-364ffc0a]::placeholder{color:var(--code-comment)}.terminal-line[data-v-364ffc0a]{white-space:pre-wrap;word-break:break-all}.terminal-line[data-v-364ffc0a] .ansi-green{color:var(--code-string)}.terminal-line[data-v-364ffc0a] .ansi-yellow{color:var(--code-number)}.terminal-line[data-v-364ffc0a] .ansi-red{color:var(--code-variable)}.terminal-line[data-v-364ffc0a] .ansi-cyan,.terminal-line[data-v-364ffc0a] .ansi-blue{color:var(--code-function)}.terminal-line[data-v-364ffc0a] .ansi-magenta{color:var(--code-keyword)}.command-history[data-v-d8bc7055]{display:flex;flex-direction:column;height:100%;background:var(--bg-primary)}.command-history__header[data-v-d8bc7055]{display:flex;justify-content:space-between;align-items:center;padding:var(--space-3) var(--space-4);font-weight:var(--font-weight-semibold);font-size:var(--font-base);border-bottom:1px solid var(--border-color)}.command-history__list[data-v-d8bc7055]{flex:1;overflow-y:auto;padding:var(--space-2)}.command-history__item[data-v-d8bc7055]{padding:var(--space-2) var(--space-3);border-radius:var(--radius-sm);cursor:pointer;margin-bottom:var(--space-1);transition:background var(--transition-fast)}.command-history__item[data-v-d8bc7055]:hover{background:var(--color-primary-light)}.command-history__item-header[data-v-d8bc7055]{display:flex;align-items:center;gap:var(--space-1)}.command-history__exit-code[data-v-d8bc7055]{font-size:var(--font-xs);font-weight:var(--font-weight-semibold)}.command-history__exit-code--success[data-v-d8bc7055]{color:var(--color-success)}.command-history__exit-code--error[data-v-d8bc7055]{color:var(--color-error)}.command-history__command[data-v-d8bc7055]{font-family:SF Mono,Fira Code,Cascadia Code,Menlo,Consolas,monospace;font-size:var(--font-xs);color:var(--text-primary);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.command-history__item-meta[data-v-d8bc7055]{display:flex;gap:var(--space-2);margin-top:2px;font-size:11px;color:var(--text-placeholder)}.command-history__duration[data-v-d8bc7055]{color:var(--color-primary)}.command-history__empty[data-v-d8bc7055]{text-align:center;padding:var(--space-6);color:var(--text-placeholder);font-size:var(--font-sm)}.terminal-view[data-v-e0e2611b]{display:flex;height:100%;overflow:hidden}.terminal-view__main[data-v-e0e2611b]{flex:1;overflow:hidden;padding:var(--space-2);position:relative}.terminal-view__sidebar[data-v-e0e2611b]{display:flex;border-left:1px solid var(--border-color);background:var(--bg-primary);transition:width var(--transition-normal);overflow:hidden}.terminal-view__sidebar--collapsed[data-v-e0e2611b]{width:32px}.terminal-view__sidebar[data-v-e0e2611b]:not(.terminal-view__sidebar--collapsed){width:240px}.terminal-view__sidebar-toggle[data-v-e0e2611b]{display:flex;align-items:center;justify-content:center;width:32px;height:100%;border:none;background:transparent;color:var(--text-tertiary);cursor:pointer;flex-shrink:0;transition:all var(--transition-fast)}.terminal-view__sidebar-toggle[data-v-e0e2611b]:hover{color:var(--text-primary);background:var(--bg-tertiary)}.terminal-view__sidebar-content[data-v-e0e2611b]{flex:1;overflow:hidden;min-width:0}.terminal-view__modal-command[data-v-e0e2611b]{font-family:SF Mono,Fira Code,Cascadia Code,Menlo,Consolas,monospace;font-size:var(--font-sm);color:var(--text-primary);background:var(--bg-tertiary);padding:var(--space-2) var(--space-3);border-radius:var(--radius-md);margin-bottom:var(--space-3);word-break:break-all}.terminal-view__modal-reason[data-v-e0e2611b]{font-size:var(--font-sm);color:var(--text-secondary);margin-bottom:var(--space-3)} diff --git a/src/agentkit/server/static/assets/UserOutlined-BMs4GNfR.js b/src/agentkit/server/static/assets/UserOutlined-BMs4GNfR.js new file mode 100644 index 0000000..53e9217 --- /dev/null +++ b/src/agentkit/server/static/assets/UserOutlined-BMs4GNfR.js @@ -0,0 +1 @@ +import{c as u,I as i}from"./index-Ci55MVrK.js";var s={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M848 359.3H627.7L825.8 109c4.1-5.3.4-13-6.3-13H436c-2.8 0-5.5 1.5-6.9 4L170 547.5c-3.1 5.3.7 12 6.9 12h174.4l-89.4 357.6c-1.9 7.8 7.5 13.3 13.3 7.7L853.5 373c5.2-4.9 1.7-13.7-5.5-13.7zM378.2 732.5l60.3-241H281.1l189.6-327.4h224.6L487 427.4h211L378.2 732.5z"}}]},name:"thunderbolt",theme:"outlined"};function c(r){for(var e=1;e{var u;const r=a.data,l=t.filter(c=>c.target===a.id).map(c=>{var h;const f=e.find(g=>g.id===c.source);return((h=f==null?void 0:f.data)==null?void 0:h.label)||c.source}),s={name:(r==null?void 0:r.label)||a.id,agent:(r==null?void 0:r.agent)||"default",action:(r==null?void 0:r.action)||"",depends_on:l,inputs:{},outputs:[],timeout_seconds:(r==null?void 0:r.timeout_seconds)||300,retry_count:(r==null?void 0:r.retry_count)||0,continue_on_failure:!1,condition:(r==null?void 0:r.condition)||null,type:(r==null?void 0:r.type)||"skill",config:{...(r==null?void 0:r.config)||{}}};if((r==null?void 0:r.type)==="condition"){const c={},f=t.filter(h=>h.source===a.id);for(const h of f){const g=e.find(y=>y.id===h.target);if(g){const y=((u=g.data)==null?void 0:u.label)||h.target;h.sourceHandle==="true"?c.true=y:h.sourceHandle==="false"&&(c.false=y)}}s.config={...s.config,branch_targets:c}}return s});return{workflow_id:o,name:n,version:1,stages:i,triggers:[],variables_schema:{},output_schema:{},created_at:new Date().toISOString(),updated_at:new Date().toISOString()}}function Fa(e){var a;const t=new Map,n={skill:"skill",condition:"condition",approval:"approval",parallel:"parallel"},o=e.stages.map((r,l)=>{const s=`node-${l}`;return t.set(r.name,s),{id:s,type:n[r.type]||"skill",position:{x:100+l*250,y:200},data:{label:r.name,type:r.type,config:r.config,action:r.action,agent:r.agent,timeout_seconds:r.timeout_seconds,retry_count:r.retry_count,condition:r.condition}}}),i=[];for(const r of e.stages){const l=t.get(r.name);if(l)for(const s of r.depends_on){const u=t.get(s);if(!u)continue;const c=e.stages.find(g=>g.name===s);let f="output",h="input";if((c==null?void 0:c.type)==="condition"){const g=(a=c.config)==null?void 0:a.branch_targets;g&&(g.true===r.name?f="true":g.false===r.name&&(f="false"))}i.push({id:`edge-${u}-${l}`,source:u,target:l,sourceHandle:f,targetHandle:h,animated:!0})}}return{nodes:o,edges:i}}const So=na("workflow",()=>{const e=me([]),t=me(null),n=me(null),o=me(!1),i=me(!1),a=me(null),r=me([]),l=me([]),s=me(null),u=me([]),c=me([]);let f=null,h=0;const g=3;let y=null,b=null;const N=me([]),S=me(0),$=te(()=>s.value&&r.value.find(d=>d.id===s.value)||null),_=te(()=>{var d;return((d=$.value)==null?void 0:d.data)||null}),C=te(()=>u.value.length>0),B=te(()=>c.value.length>0);function G(d){r.value.push(d)}function X(d){const p=r.value.find(P=>P.id===d);if(!p)return null;const w=l.value.filter(P=>P.source===d||P.target===d);return r.value=r.value.filter(P=>P.id!==d),l.value=l.value.filter(P=>P.source!==d&&P.target!==d),s.value===d&&(s.value=null),{node:p,edges:w}}function Y(d){l.value=[...l.value,d]}function oe(d){const p=l.value.find(w=>w.id===d);return p?(l.value=l.value.filter(w=>w.id!==d),p):null}function K(d,p){const w=r.value.findIndex(P=>P.id===d);if(w!==-1){const P=r.value[w];r.value[w]={...P,data:{...P.data,...p}}}}function A(d){d.execute(),u.value.push(d),c.value=[]}function k(){const d=u.value.pop();d&&(d.undo(),c.value.push(d))}function ee(){const d=c.value.pop();d&&(d.execute(),u.value.push(d))}function x(){u.value=[],c.value=[]}function I(d,p){const w=r.value.find(P=>{var R,F;return((R=P.data)==null?void 0:R.stage_id)===d||P.id===d||((F=P.data)==null?void 0:F.label)===d});w&&w.data&&(w.data={...w.data,status:p})}function E(d){y=d,h=0,M()}function M(){if(y){T(),f&&(f.onclose=null,f.close(),f=null),h++;try{f=ze.createWorkflowWebSocket(),f.onopen=()=>{h=0,y&&(f==null||f.send(JSON.stringify({type:"subscribe",execution_id:y})))},f.onmessage=d=>{try{const p=JSON.parse(d.data);if(p.execution_id&&p.execution_id!==y)return;switch(p.type){case"stage_started":I(p.stage_id,"running");break;case"stage_completed":I(p.stage_id,"completed");break;case"stage_failed":I(p.stage_id,"failed");break;case"approval_required":I(p.stage_id,"waiting_approval");break;case"execution_completed":case"execution_failed":o.value=!1,V(),y&&ze.getExecution(y).then(w=>{n.value=w}).catch(()=>{});break}}catch{}},f.onclose=()=>{f=null,o.value&&hM(),2e3))},f.onerror=()=>{}}catch{hM(),2e3))}}}function T(){b&&(clearTimeout(b),b=null)}function V(){T(),f&&(f.onclose=null,f.close(),f=null),y=null}function H(){r.value=r.value.map(d=>{var p;if((p=d.data)!=null&&p.status){const{status:w,...P}=d.data;return{...d,data:P}}return d})}async function U(){i.value=!0,a.value=null;try{const d=await ze.listWorkflows();e.value=d.workflows}catch(d){a.value=d instanceof Error?d.message:"加载工作流列表失败",console.error("Failed to load workflows:",d)}finally{i.value=!1}}async function ie(d){i.value=!0,a.value=null;try{const p=await ze.createWorkflow({name:d,stages:[]});return t.value=p,r.value=[],l.value=[],s.value=null,x(),await U(),p}catch(p){return a.value=p instanceof Error?p.message:"创建工作流失败",console.error("Failed to create workflow:",p),null}finally{i.value=!1}}async function le(d){i.value=!0,a.value=null;try{const p=await ze.getWorkflow(d);t.value=p;const{nodes:w,edges:P}=Fa(p);r.value=w,l.value=P,s.value=null,x()}catch(p){a.value=p instanceof Error?p.message:"加载工作流失败",console.error("Failed to load workflow:",p)}finally{i.value=!1}}async function he(){if(!t.value)return!1;i.value=!0,a.value=null;try{const d=La(r.value,l.value,t.value.name,t.value.workflow_id),p=await ze.updateWorkflow(t.value.workflow_id,{name:d.name,stages:d.stages,triggers:d.triggers,variables_schema:d.variables_schema,output_schema:d.output_schema});return t.value=p,await U(),!0}catch(d){return a.value=d instanceof Error?d.message:"保存工作流失败",console.error("Failed to save workflow:",d),!1}finally{i.value=!1}}async function q(d){var p;i.value=!0,a.value=null;try{return await ze.deleteWorkflow(d),((p=t.value)==null?void 0:p.workflow_id)===d&&(t.value=null,r.value=[],l.value=[],s.value=null,x()),await U(),!0}catch(w){return a.value=w instanceof Error?w.message:"删除工作流失败",console.error("Failed to delete workflow:",w),!1}finally{i.value=!1}}async function j(d){if(t.value){o.value=!0,a.value=null,H();try{const p=await ze.executeWorkflow(t.value.workflow_id,d);E(p.execution_id);const w=await ze.getExecution(p.execution_id);n.value=w}catch(p){a.value=p instanceof Error?p.message:"执行工作流失败",console.error("Failed to execute workflow:",p),o.value=!1}}}async function L(d,p,w){try{const P=await ze.approveExecution(d,p,w);n.value=P}catch(P){a.value=P instanceof Error?P.message:"审批操作失败",console.error("Failed to approve execution:",P)}}async function ce(d){try{const p=await ze.cancelExecution(d);n.value=p,o.value=!1,V()}catch(p){a.value=p instanceof Error?p.message:"取消执行失败",console.error("Failed to cancel execution:",p)}}async function _e(d=50,p=0){if(t.value)try{const w=await ze.listExecutions(t.value.workflow_id,d,p);N.value=w.executions,S.value=w.total}catch(w){console.error("Failed to load execution history:",w)}}function de(d,p){const w=`node-${Date.now()}-${Math.random().toString(36).substring(2,7)}`,P=Ra(d),F={id:w,type:{skill:"skill",condition:"condition",approval:"approval",parallel:"parallel"}[d]||"skill",position:p,data:P},Q={execute:()=>G(F),undo:()=>X(F.id),description:`添加节点 ${P.label}`};A(Q)}function ye(d,p){const w=r.value.findIndex(re=>re.id===d);if(w===-1)return;const R=r.value[w].data,F={};for(const re of Object.keys(p))F[re]=R[re];A({execute:()=>K(d,p),undo:()=>K(d,F),description:"更新节点属性"})}function ae(d){var R;const p=r.value.find(F=>F.id===d);if(!p)return;const w=l.value.filter(F=>F.source===d||F.target===d),P={execute:()=>{r.value=r.value.filter(F=>F.id!==d),l.value=l.value.filter(F=>F.source!==d&&F.target!==d),s.value===d&&(s.value=null)},undo:()=>{r.value=[...r.value,p],l.value=[...l.value,...w]},description:`删除节点 ${((R=p.data)==null?void 0:R.label)||d}`};A(P)}function se(d){A({execute:()=>Y(d),undo:()=>oe(d.id),description:"添加连线"})}function m(){r.value=[],l.value=[],s.value=null,x()}function v(d){s.value=d}return{workflows:e,currentWorkflow:t,currentExecution:n,isExecuting:o,isLoading:i,error:a,flowNodes:r,flowEdges:l,selectedNodeId:s,undoStack:u,redoStack:c,executionHistory:N,executionHistoryTotal:S,selectedNode:$,selectedNodeData:_,canUndo:C,canRedo:B,loadWorkflows:U,createWorkflow:ie,loadWorkflow:le,saveWorkflow:he,deleteWorkflow:q,executeWorkflow:j,approveExecution:L,cancelExecution:ce,loadExecutionHistory:_e,addNode:de,updateNodeData:ye,removeNode:ae,addEdge:se,clearCanvas:m,selectNode:v,undo:k,redo:ee,executeCommand:A,clearUndoRedo:x,updateNodeStatus:I,connectExecutionWebSocket:E,disconnectExecutionWebSocket:V,resetNodeStatuses:H}}),Ya={class:"node-palette"},Ga={class:"palette-list"},Wa=["onDragstart"],Xa={class:"item-info"},Ua={class:"item-name"},Za={class:"item-desc"},Ka=we({__name:"NodePalette",setup(e){const t=[{type:"skill",name:"技能节点",desc:"引用已注册的技能",icon:Ri,color:"#7c3aed"},{type:"condition",name:"条件节点",desc:"If/else 条件分支",icon:Dn,color:"#f59e0b"},{type:"approval",name:"审批节点",desc:"人工审批关卡",icon:Li,color:"#7c3aed"},{type:"parallel",name:"并行节点",desc:"并行执行组",icon:_o,color:"#10b981"}];function n(o,i){o.dataTransfer&&(o.dataTransfer.setData("application/vueflow",i),o.dataTransfer.effectAllowed="move")}return(o,i)=>(O(),J("div",Ya,[i[0]||(i[0]=ne("div",{class:"palette-title"},"节点类型",-1)),ne("div",Ga,[(O(),J(De,null,qt(t,a=>ne("div",{key:a.type,class:"palette-item",draggable:"true",onDragstart:r=>n(r,a.type)},[(O(),ve(dt(a.icon),{class:"item-icon",style:He({color:a.color})},null,8,["style"])),ne("div",Xa,[ne("div",Ua,Ne(a.name),1),ne("div",Za,Ne(a.desc),1)])],40,Wa)),64))])]))}}),qa=ct(Ka,[["__scopeId","data-v-e8fc92a2"]]);function Ft(e){return zi()?(dn(e),!0):!1}function je(e){return typeof e=="function"?e():D(e)}const ja=typeof window<"u"&&typeof document<"u",Ja=e=>typeof e<"u",Qa=Object.prototype.toString,el=e=>Qa.call(e)==="[object Object]",tl=()=>{};function nl(e,t){function n(...o){return new Promise((i,a)=>{Promise.resolve(e(()=>t.apply(this,o),{fn:t,thisArg:this,args:o})).then(i).catch(a)})}return n}const Wi=e=>e();function ol(e=Wi){const t=me(!0);function n(){t.value=!1}function o(){t.value=!0}const i=(...a)=>{t.value&&e(...a)};return{isActive:ca(t),pause:n,resume:o,eventFilter:i}}function Go(e,t=!1,n="Timeout"){return new Promise((o,i)=>{setTimeout(t?()=>i(n):o,e)})}function il(e,t,n={}){const{eventFilter:o=Wi,...i}=n;return Ee(e,nl(o,t),i)}function bt(e,t,n={}){const{eventFilter:o,...i}=n,{eventFilter:a,pause:r,resume:l,isActive:s}=ol(o);return{stop:il(e,t,{...i,eventFilter:a}),pause:r,resume:l,isActive:s}}function rl(e,t={}){if(!go(e))return sa(e);const n=Array.isArray(e.value)?Array.from({length:e.value.length}):{};for(const o in e.value)n[o]=ua(()=>({get(){return e.value[o]},set(i){var a;if((a=je(t.replaceRef))!=null?a:!0)if(Array.isArray(e.value)){const l=[...e.value];l[o]=i,e.value=l}else{const l={...e.value,[o]:i};Object.setPrototypeOf(l,Object.getPrototypeOf(e.value)),e.value=l}else e.value[o]=i}}));return n}function Qn(e,t=!1){function n(f,{flush:h="sync",deep:g=!1,timeout:y,throwOnTimeout:b}={}){let N=null;const $=[new Promise(_=>{N=Ee(e,C=>{f(C)!==t&&(N==null||N(),_(C))},{flush:h,deep:g,immediate:!0})})];return y!=null&&$.push(Go(y,b).then(()=>je(e)).finally(()=>N==null?void 0:N())),Promise.race($)}function o(f,h){if(!go(f))return n(C=>C===f,h);const{flush:g="sync",deep:y=!1,timeout:b,throwOnTimeout:N}=h??{};let S=null;const _=[new Promise(C=>{S=Ee([e,f],([B,G])=>{t!==(B===G)&&(S==null||S(),C(B))},{flush:g,deep:y,immediate:!0})})];return b!=null&&_.push(Go(b,N).then(()=>je(e)).finally(()=>(S==null||S(),je(e)))),Promise.race(_)}function i(f){return n(h=>!!h,f)}function a(f){return o(null,f)}function r(f){return o(void 0,f)}function l(f){return n(Number.isNaN,f)}function s(f,h){return n(g=>{const y=Array.from(g);return y.includes(f)||y.includes(je(f))},h)}function u(f){return c(1,f)}function c(f=1,h){let g=-1;return n(()=>(g+=1,g>=f),h)}return Array.isArray(je(e))?{toMatch:n,toContains:s,changed:u,changedTimes:c,get not(){return Qn(e,!t)}}:{toMatch:n,toBe:o,toBeTruthy:i,toBeNull:a,toBeNaN:l,toBeUndefined:r,changed:u,changedTimes:c,get not(){return Qn(e,!t)}}}function eo(e){return Qn(e)}function al(e){var t;const n=je(e);return(t=n==null?void 0:n.$el)!=null?t:n}const Xi=ja?window:void 0;function Ui(...e){let t,n,o,i;if(typeof e[0]=="string"||Array.isArray(e[0])?([n,o,i]=e,t=Xi):[t,n,o,i]=e,!t)return tl;Array.isArray(n)||(n=[n]),Array.isArray(o)||(o=[o]);const a=[],r=()=>{a.forEach(c=>c()),a.length=0},l=(c,f,h,g)=>(c.addEventListener(f,h,g),()=>c.removeEventListener(f,h,g)),s=Ee(()=>[al(t),je(i)],([c,f])=>{if(r(),!c)return;const h=el(f)?{...f}:f;a.push(...n.flatMap(g=>o.map(y=>l(c,g,y,h))))},{immediate:!0,flush:"post"}),u=()=>{s(),r()};return Ft(u),u}function ll(e){return typeof e=="function"?e:typeof e=="string"?t=>t.key===e:Array.isArray(e)?t=>e.includes(t.key):()=>!0}function Wo(...e){let t,n,o={};e.length===3?(t=e[0],n=e[1],o=e[2]):e.length===2?typeof e[1]=="object"?(t=!0,n=e[0],o=e[1]):(t=e[0],n=e[1]):(t=!0,n=e[0]);const{target:i=Xi,eventName:a="keydown",passive:r=!1,dedupe:l=!1}=o,s=ll(t);return Ui(i,a,c=>{c.repeat&&je(l)||s(c)&&n(c)},r)}function sl(e){return JSON.parse(JSON.stringify(e))}function Fn(e,t,n,o={}){var i,a,r;const{clone:l=!1,passive:s=!1,eventName:u,deep:c=!1,defaultValue:f,shouldEmit:h}=o,g=Pt(),y=n||(g==null?void 0:g.emit)||((i=g==null?void 0:g.$emit)==null?void 0:i.bind(g))||((r=(a=g==null?void 0:g.proxy)==null?void 0:a.$emit)==null?void 0:r.bind(g==null?void 0:g.proxy));let b=u;t||(t="modelValue"),b=b||`update:${t.toString()}`;const N=_=>l?typeof l=="function"?l(_):sl(_):_,S=()=>Ja(e[t])?N(e[t]):f,$=_=>{h?h(_)&&y(b,_):y(b,_)};if(s){const _=S(),C=me(_);let B=!1;return Ee(()=>e[t],G=>{B||(B=!0,C.value=N(G),et(()=>B=!1))}),Ee(C,G=>{!B&&(G!==e[t]||c)&&$(G)},{deep:c}),C}else return te({get(){return S()},set(_){$(_)}})}var ul={value:()=>{}};function In(){for(var e=0,t=arguments.length,n={},o;e=0&&(o=n.slice(i+1),n=n.slice(0,i)),n&&!t.hasOwnProperty(n))throw new Error("unknown type: "+n);return{type:n,name:o}})}fn.prototype=In.prototype={constructor:fn,on:function(e,t){var n=this._,o=cl(e+"",n),i,a=-1,r=o.length;if(arguments.length<2){for(;++a0)for(var n=new Array(i),o=0,i,a;o=0&&(t=e.slice(0,n))!=="xmlns"&&(e=e.slice(n+1)),Uo.hasOwnProperty(t)?{space:Uo[t],local:e}:e}function fl(e){return function(){var t=this.ownerDocument,n=this.namespaceURI;return n===to&&t.documentElement.namespaceURI===to?t.createElement(e):t.createElementNS(n,e)}}function hl(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function Zi(e){var t=Pn(e);return(t.local?hl:fl)(t)}function vl(){}function No(e){return e==null?vl:function(){return this.querySelector(e)}}function gl(e){typeof e!="function"&&(e=No(e));for(var t=this._groups,n=t.length,o=new Array(n),i=0;i=_&&(_=$+1);!(B=N[_])&&++_=0;)(r=o[i])&&(a&&r.compareDocumentPosition(a)^4&&a.parentNode.insertBefore(r,a),a=r);return this}function Rl(e){e||(e=Ll);function t(f,h){return f&&h?e(f.__data__,h.__data__):!f-!h}for(var n=this._groups,o=n.length,i=new Array(o),a=0;at?1:e>=t?0:NaN}function Fl(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}function Yl(){return Array.from(this)}function Gl(){for(var e=this._groups,t=0,n=e.length;t1?this.each((t==null?ts:typeof t=="function"?os:ns)(e,t,n??"")):$t(this.node(),e)}function $t(e,t){return e.style.getPropertyValue(t)||Qi(e).getComputedStyle(e,null).getPropertyValue(t)}function rs(e){return function(){delete this[e]}}function as(e,t){return function(){this[e]=t}}function ls(e,t){return function(){var n=t.apply(this,arguments);n==null?delete this[e]:this[e]=n}}function ss(e,t){return arguments.length>1?this.each((t==null?rs:typeof t=="function"?ls:as)(e,t)):this.node()[e]}function er(e){return e.trim().split(/^|\s+/)}function ko(e){return e.classList||new tr(e)}function tr(e){this._node=e,this._names=er(e.getAttribute("class")||"")}tr.prototype={add:function(e){var t=this._names.indexOf(e);t<0&&(this._names.push(e),this._node.setAttribute("class",this._names.join(" ")))},remove:function(e){var t=this._names.indexOf(e);t>=0&&(this._names.splice(t,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(e){return this._names.indexOf(e)>=0}};function nr(e,t){for(var n=ko(e),o=-1,i=t.length;++o=0&&(n=t.slice(o+1),t=t.slice(0,o)),{type:t,name:n}})}function zs(e){return function(){var t=this.__on;if(t){for(var n=0,o=-1,i=t.length,a;n()=>e;function no(e,{sourceEvent:t,subject:n,target:o,identifier:i,active:a,x:r,y:l,dx:s,dy:u,dispatch:c}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:t,enumerable:!0,configurable:!0},subject:{value:n,enumerable:!0,configurable:!0},target:{value:o,enumerable:!0,configurable:!0},identifier:{value:i,enumerable:!0,configurable:!0},active:{value:a,enumerable:!0,configurable:!0},x:{value:r,enumerable:!0,configurable:!0},y:{value:l,enumerable:!0,configurable:!0},dx:{value:s,enumerable:!0,configurable:!0},dy:{value:u,enumerable:!0,configurable:!0},_:{value:c}})}no.prototype.on=function(){var e=this._.on.apply(this._,arguments);return e===this._?this:e};function Xs(e){return!e.ctrlKey&&!e.button}function Us(){return this.parentNode}function Zs(e,t){return t??{x:e.x,y:e.y}}function Ks(){return navigator.maxTouchPoints||"ontouchstart"in this}function qs(){var e=Xs,t=Us,n=Zs,o=Ks,i={},a=In("start","drag","end"),r=0,l,s,u,c,f=0;function h(C){C.on("mousedown.drag",g).filter(o).on("touchstart.drag",N).on("touchmove.drag",S,Ws).on("touchend.drag touchcancel.drag",$).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function g(C,B){if(!(c||!e.call(this,C,B))){var G=_(this,t.call(this,C,B),C,B,"mouse");G&&(Be(C.view).on("mousemove.drag",y,Yt).on("mouseup.drag",b,Yt),ar(C.view),Yn(C),u=!1,l=C.clientX,s=C.clientY,G("start",C))}}function y(C){if(Et(C),!u){var B=C.clientX-l,G=C.clientY-s;u=B*B+G*G>f}i.mouse("drag",C)}function b(C){Be(C.view).on("mousemove.drag mouseup.drag",null),lr(C.view,u),Et(C),i.mouse("end",C)}function N(C,B){if(e.call(this,C,B)){var G=C.changedTouches,X=t.call(this,C,B),Y=G.length,oe,K;for(oe=0;oe>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?tn(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?tn(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=Js.exec(e))?new Pe(t[1],t[2],t[3],1):(t=Qs.exec(e))?new Pe(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=eu.exec(e))?tn(t[1],t[2],t[3],t[4]):(t=tu.exec(e))?tn(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=nu.exec(e))?ei(t[1],t[2]/100,t[3]/100,1):(t=ou.exec(e))?ei(t[1],t[2]/100,t[3]/100,t[4]):Zo.hasOwnProperty(e)?jo(Zo[e]):e==="transparent"?new Pe(NaN,NaN,NaN,0):null}function jo(e){return new Pe(e>>16&255,e>>8&255,e&255,1)}function tn(e,t,n,o){return o<=0&&(e=t=n=NaN),new Pe(e,t,n,o)}function au(e){return e instanceof Jt||(e=mt(e)),e?(e=e.rgb(),new Pe(e.r,e.g,e.b,e.opacity)):new Pe}function oo(e,t,n,o){return arguments.length===1?au(e):new Pe(e,t,n,o??1)}function Pe(e,t,n,o){this.r=+e,this.g=+t,this.b=+n,this.opacity=+o}$o(Pe,oo,sr(Jt,{brighter(e){return e=e==null?yn:Math.pow(yn,e),new Pe(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?Gt:Math.pow(Gt,e),new Pe(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Pe(gt(this.r),gt(this.g),gt(this.b),wn(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:Jo,formatHex:Jo,formatHex8:lu,formatRgb:Qo,toString:Qo}));function Jo(){return`#${vt(this.r)}${vt(this.g)}${vt(this.b)}`}function lu(){return`#${vt(this.r)}${vt(this.g)}${vt(this.b)}${vt((isNaN(this.opacity)?1:this.opacity)*255)}`}function Qo(){const e=wn(this.opacity);return`${e===1?"rgb(":"rgba("}${gt(this.r)}, ${gt(this.g)}, ${gt(this.b)}${e===1?")":`, ${e})`}`}function wn(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function gt(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function vt(e){return e=gt(e),(e<16?"0":"")+e.toString(16)}function ei(e,t,n,o){return o<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Ve(e,t,n,o)}function ur(e){if(e instanceof Ve)return new Ve(e.h,e.s,e.l,e.opacity);if(e instanceof Jt||(e=mt(e)),!e)return new Ve;if(e instanceof Ve)return e;e=e.rgb();var t=e.r/255,n=e.g/255,o=e.b/255,i=Math.min(t,n,o),a=Math.max(t,n,o),r=NaN,l=a-i,s=(a+i)/2;return l?(t===a?r=(n-o)/l+(n0&&s<1?0:r,new Ve(r,l,s,e.opacity)}function su(e,t,n,o){return arguments.length===1?ur(e):new Ve(e,t,n,o??1)}function Ve(e,t,n,o){this.h=+e,this.s=+t,this.l=+n,this.opacity=+o}$o(Ve,su,sr(Jt,{brighter(e){return e=e==null?yn:Math.pow(yn,e),new Ve(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?Gt:Math.pow(Gt,e),new Ve(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,n=this.l,o=n+(n<.5?n:1-n)*t,i=2*n-o;return new Pe(Gn(e>=240?e-240:e+120,i,o),Gn(e,i,o),Gn(e<120?e+240:e-120,i,o),this.opacity)},clamp(){return new Ve(ti(this.h),nn(this.s),nn(this.l),wn(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=wn(this.opacity);return`${e===1?"hsl(":"hsla("}${ti(this.h)}, ${nn(this.s)*100}%, ${nn(this.l)*100}%${e===1?")":`, ${e})`}`}}));function ti(e){return e=(e||0)%360,e<0?e+360:e}function nn(e){return Math.max(0,Math.min(1,e||0))}function Gn(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}const Co=e=>()=>e;function uu(e,t){return function(n){return e+n*t}}function cu(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(o){return Math.pow(e+o*t,n)}}function du(e){return(e=+e)==1?cr:function(t,n){return n-t?cu(t,n,e):Co(isNaN(t)?n:t)}}function cr(e,t){var n=t-e;return n?uu(e,n):Co(isNaN(e)?t:e)}const _n=function e(t){var n=du(t);function o(i,a){var r=n((i=oo(i)).r,(a=oo(a)).r),l=n(i.g,a.g),s=n(i.b,a.b),u=cr(i.opacity,a.opacity);return function(c){return i.r=r(c),i.g=l(c),i.b=s(c),i.opacity=u(c),i+""}}return o.gamma=e,o}(1);function fu(e,t){t||(t=[]);var n=e?Math.min(t.length,e.length):0,o=t.slice(),i;return function(a){for(i=0;in&&(a=t.slice(n,a),l[r]?l[r]+=a:l[++r]=a),(o=o[0])===(i=i[0])?l[r]?l[r]+=i:l[++r]=i:(l[++r]=null,s.push({i:r,x:Ye(o,i)})),n=Wn.lastIndex;return n180?c+=360:c-u>180&&(u+=360),h.push({i:f.push(i(f)+"rotate(",null,o)-2,x:Ye(u,c)})):c&&f.push(i(f)+"rotate("+c+o)}function l(u,c,f,h){u!==c?h.push({i:f.push(i(f)+"skewX(",null,o)-2,x:Ye(u,c)}):c&&f.push(i(f)+"skewX("+c+o)}function s(u,c,f,h,g,y){if(u!==f||c!==h){var b=g.push(i(g)+"scale(",null,",",null,")");y.push({i:b-4,x:Ye(u,f)},{i:b-2,x:Ye(c,h)})}else(f!==1||h!==1)&&g.push(i(g)+"scale("+f+","+h+")")}return function(u,c){var f=[],h=[];return u=e(u),c=e(c),a(u.translateX,u.translateY,c.translateX,c.translateY,f,h),r(u.rotate,c.rotate,f,h),l(u.skewX,c.skewX,f,h),s(u.scaleX,u.scaleY,c.scaleX,c.scaleY,f,h),u=c=null,function(g){for(var y=-1,b=h.length,N;++y=0&&e._call.call(void 0,t),e=e._next;--Ct}function ii(){yt=(xn=Xt.now())+On,Ct=zt=0;try{$u()}finally{Ct=0,Mu(),yt=0}}function Cu(){var e=Xt.now(),t=e-xn;t>vr&&(On-=t,xn=e)}function Mu(){for(var e,t=bn,n,o=1/0;t;)t._call?(o>t._time&&(o=t._time),e=t,t=t._next):(n=t._next,t._next=null,t=e?e._next=n:bn=n);Bt=e,ao(o)}function ao(e){if(!Ct){zt&&(zt=clearTimeout(zt));var t=e-yt;t>24?(e<1/0&&(zt=setTimeout(ii,e-Xt.now()-On)),Tt&&(Tt=clearInterval(Tt))):(Tt||(xn=Xt.now(),Tt=setInterval(Cu,vr)),Ct=1,gr(ii))}}function ri(e,t,n){var o=new En;return t=t==null?0:+t,o.restart(i=>{o.stop(),e(i+t)},t,n),o}var Du=In("start","end","cancel","interrupt"),Iu=[],mr=0,ai=1,lo=2,vn=3,li=4,so=5,gn=6;function Tn(e,t,n,o,i,a){var r=e.__transition;if(!r)e.__transition={};else if(n in r)return;Pu(e,n,{name:t,index:o,group:i,on:Du,tween:Iu,time:a.time,delay:a.delay,duration:a.duration,ease:a.ease,timer:null,state:mr})}function Do(e,t){var n=Re(e,t);if(n.state>mr)throw new Error("too late; already scheduled");return n}function Ze(e,t){var n=Re(e,t);if(n.state>vn)throw new Error("too late; already running");return n}function Re(e,t){var n=e.__transition;if(!n||!(n=n[t]))throw new Error("transition not found");return n}function Pu(e,t,n){var o=e.__transition,i;o[t]=n,n.timer=pr(a,0,n.time);function a(u){n.state=ai,n.timer.restart(r,n.delay,n.time),n.delay<=u&&r(u-n.delay)}function r(u){var c,f,h,g;if(n.state!==ai)return s();for(c in o)if(g=o[c],g.name===n.name){if(g.state===vn)return ri(r);g.state===li?(g.state=gn,g.timer.stop(),g.on.call("interrupt",e,e.__data__,g.index,g.group),delete o[c]):+clo&&o.state=0&&(t=t.slice(0,n)),!t||t==="start"})}function sc(e,t,n){var o,i,a=lc(t)?Do:Ze;return function(){var r=a(this,e),l=r.on;l!==o&&(i=(o=l).copy()).on(t,n),r.on=i}}function uc(e,t){var n=this._id;return arguments.length<2?Re(this.node(),n).on.on(e):this.each(sc(n,e,t))}function cc(e){return function(){var t=this.parentNode;for(var n in this.__transition)if(+n!==e)return;t&&t.removeChild(this)}}function dc(){return this.on("end.remove",cc(this._id))}function fc(e){var t=this._name,n=this._id;typeof e!="function"&&(e=No(e));for(var o=this._groups,i=o.length,a=new Array(i),r=0;r()=>e;function Bc(e,{sourceEvent:t,target:n,transform:o,dispatch:i}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:t,enumerable:!0,configurable:!0},target:{value:n,enumerable:!0,configurable:!0},transform:{value:o,enumerable:!0,configurable:!0},_:{value:i}})}function Je(e,t,n){this.k=e,this.x=t,this.y=n}Je.prototype={constructor:Je,scale:function(e){return e===1?this:new Je(this.k*e,this.x,this.y)},translate:function(e,t){return e===0&t===0?this:new Je(this.k,this.x+this.k*e,this.y+this.k*t)},apply:function(e){return[e[0]*this.k+this.x,e[1]*this.k+this.y]},applyX:function(e){return e*this.k+this.x},applyY:function(e){return e*this.k+this.y},invert:function(e){return[(e[0]-this.x)/this.k,(e[1]-this.y)/this.k]},invertX:function(e){return(e-this.x)/this.k},invertY:function(e){return(e-this.y)/this.k},rescaleX:function(e){return e.copy().domain(e.range().map(this.invertX,this).map(e.invert,e))},rescaleY:function(e){return e.copy().domain(e.range().map(this.invertY,this).map(e.invert,e))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var Mt=new Je(1,0,0);Je.prototype;function Xn(e){e.stopImmediatePropagation()}function At(e){e.preventDefault(),e.stopImmediatePropagation()}function Vc(e){return(!e.ctrlKey||e.type==="wheel")&&!e.button}function Hc(){var e=this;return e instanceof SVGElement?(e=e.ownerSVGElement||e,e.hasAttribute("viewBox")?(e=e.viewBox.baseVal,[[e.x,e.y],[e.x+e.width,e.y+e.height]]):[[0,0],[e.width.baseVal.value,e.height.baseVal.value]]):[[0,0],[e.clientWidth,e.clientHeight]]}function si(){return this.__zoom||Mt}function Rc(e){return-e.deltaY*(e.deltaMode===1?.05:e.deltaMode?1:.002)*(e.ctrlKey?10:1)}function Lc(){return navigator.maxTouchPoints||"ontouchstart"in this}function Fc(e,t,n){var o=e.invertX(t[0][0])-n[0][0],i=e.invertX(t[1][0])-n[1][0],a=e.invertY(t[0][1])-n[0][1],r=e.invertY(t[1][1])-n[1][1];return e.translate(i>o?(o+i)/2:Math.min(0,o)||Math.max(0,i),r>a?(a+r)/2:Math.min(0,a)||Math.max(0,r))}function Yc(){var e=Vc,t=Hc,n=Fc,o=Rc,i=Lc,a=[0,1/0],r=[[-1/0,-1/0],[1/0,1/0]],l=250,s=hn,u=In("start","zoom","end"),c,f,h,g=500,y=150,b=0,N=10;function S(x){x.property("__zoom",si).on("wheel.zoom",Y,{passive:!1}).on("mousedown.zoom",oe).on("dblclick.zoom",K).filter(i).on("touchstart.zoom",A).on("touchmove.zoom",k).on("touchend.zoom touchcancel.zoom",ee).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}S.transform=function(x,I,E,M){var T=x.selection?x.selection():x;T.property("__zoom",si),x!==T?B(x,I,E,M):T.interrupt().each(function(){G(this,arguments).event(M).start().zoom(null,typeof I=="function"?I.apply(this,arguments):I).end()})},S.scaleBy=function(x,I,E,M){S.scaleTo(x,function(){var T=this.__zoom.k,V=typeof I=="function"?I.apply(this,arguments):I;return T*V},E,M)},S.scaleTo=function(x,I,E,M){S.transform(x,function(){var T=t.apply(this,arguments),V=this.__zoom,H=E==null?C(T):typeof E=="function"?E.apply(this,arguments):E,U=V.invert(H),ie=typeof I=="function"?I.apply(this,arguments):I;return n(_($(V,ie),H,U),T,r)},E,M)},S.translateBy=function(x,I,E,M){S.transform(x,function(){return n(this.__zoom.translate(typeof I=="function"?I.apply(this,arguments):I,typeof E=="function"?E.apply(this,arguments):E),t.apply(this,arguments),r)},null,M)},S.translateTo=function(x,I,E,M,T){S.transform(x,function(){var V=t.apply(this,arguments),H=this.__zoom,U=M==null?C(V):typeof M=="function"?M.apply(this,arguments):M;return n(Mt.translate(U[0],U[1]).scale(H.k).translate(typeof I=="function"?-I.apply(this,arguments):-I,typeof E=="function"?-E.apply(this,arguments):-E),V,r)},M,T)};function $(x,I){return I=Math.max(a[0],Math.min(a[1],I)),I===x.k?x:new Je(I,x.x,x.y)}function _(x,I,E){var M=I[0]-E[0]*x.k,T=I[1]-E[1]*x.k;return M===x.x&&T===x.y?x:new Je(x.k,M,T)}function C(x){return[(+x[0][0]+ +x[1][0])/2,(+x[0][1]+ +x[1][1])/2]}function B(x,I,E,M){x.on("start.zoom",function(){G(this,arguments).event(M).start()}).on("interrupt.zoom end.zoom",function(){G(this,arguments).event(M).end()}).tween("zoom",function(){var T=this,V=arguments,H=G(T,V).event(M),U=t.apply(T,V),ie=E==null?C(U):typeof E=="function"?E.apply(T,V):E,le=Math.max(U[1][0]-U[0][0],U[1][1]-U[0][1]),he=T.__zoom,q=typeof I=="function"?I.apply(T,V):I,j=s(he.invert(ie).concat(le/he.k),q.invert(ie).concat(le/q.k));return function(L){if(L===1)L=q;else{var ce=j(L),_e=le/ce[2];L=new Je(_e,ie[0]-ce[0]*_e,ie[1]-ce[1]*_e)}H.zoom(null,L)}})}function G(x,I,E){return!E&&x.__zooming||new X(x,I)}function X(x,I){this.that=x,this.args=I,this.active=0,this.sourceEvent=null,this.extent=t.apply(x,I),this.taps=0}X.prototype={event:function(x){return x&&(this.sourceEvent=x),this},start:function(){return++this.active===1&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(x,I){return this.mouse&&x!=="mouse"&&(this.mouse[1]=I.invert(this.mouse[0])),this.touch0&&x!=="touch"&&(this.touch0[1]=I.invert(this.touch0[0])),this.touch1&&x!=="touch"&&(this.touch1[1]=I.invert(this.touch1[0])),this.that.__zoom=I,this.emit("zoom"),this},end:function(){return--this.active===0&&(delete this.that.__zooming,this.emit("end")),this},emit:function(x){var I=Be(this.that).datum();u.call(x,this.that,new Bc(x,{sourceEvent:this.sourceEvent,target:S,transform:this.that.__zoom,dispatch:u}),I)}};function Y(x,...I){if(!e.apply(this,arguments))return;var E=G(this,I).event(x),M=this.__zoom,T=Math.max(a[0],Math.min(a[1],M.k*Math.pow(2,o.apply(this,arguments)))),V=Fe(x);if(E.wheel)(E.mouse[0][0]!==V[0]||E.mouse[0][1]!==V[1])&&(E.mouse[1]=M.invert(E.mouse[0]=V)),clearTimeout(E.wheel);else{if(M.k===T)return;E.mouse=[V,M.invert(V)],pn(this),E.start()}At(x),E.wheel=setTimeout(H,y),E.zoom("mouse",n(_($(M,T),E.mouse[0],E.mouse[1]),E.extent,r));function H(){E.wheel=null,E.end()}}function oe(x,...I){if(h||!e.apply(this,arguments))return;var E=x.currentTarget,M=G(this,I,!0).event(x),T=Be(x.view).on("mousemove.zoom",ie,!0).on("mouseup.zoom",le,!0),V=Fe(x,E),H=x.clientX,U=x.clientY;ar(x.view),Xn(x),M.mouse=[V,this.__zoom.invert(V)],pn(this),M.start();function ie(he){if(At(he),!M.moved){var q=he.clientX-H,j=he.clientY-U;M.moved=q*q+j*j>b}M.event(he).zoom("mouse",n(_(M.that.__zoom,M.mouse[0]=Fe(he,E),M.mouse[1]),M.extent,r))}function le(he){T.on("mousemove.zoom mouseup.zoom",null),lr(he.view,M.moved),At(he),M.event(he).end()}}function K(x,...I){if(e.apply(this,arguments)){var E=this.__zoom,M=Fe(x.changedTouches?x.changedTouches[0]:x,this),T=E.invert(M),V=E.k*(x.shiftKey?.5:2),H=n(_($(E,V),M,T),t.apply(this,I),r);At(x),l>0?Be(this).transition().duration(l).call(B,H,M,x):Be(this).call(S.transform,H,M,x)}}function A(x,...I){if(e.apply(this,arguments)){var E=x.touches,M=E.length,T=G(this,I,x.changedTouches.length===M).event(x),V,H,U,ie;for(Xn(x),H=0;H(e.Left="left",e.Top="top",e.Right="right",e.Bottom="bottom",e))(Z||{}),Po=(e=>(e.Partial="partial",e.Full="full",e))(Po||{}),ft=(e=>(e.Bezier="default",e.SimpleBezier="simple-bezier",e.Straight="straight",e.Step="step",e.SmoothStep="smoothstep",e))(ft||{}),st=(e=>(e.Strict="strict",e.Loose="loose",e))(st||{}),uo=(e=>(e.Arrow="arrow",e.ArrowClosed="arrowclosed",e))(uo||{}),Rt=(e=>(e.Free="free",e.Vertical="vertical",e.Horizontal="horizontal",e))(Rt||{}),br=(e=>(e.TopLeft="top-left",e.TopCenter="top-center",e.TopRight="top-right",e.BottomLeft="bottom-left",e.BottomCenter="bottom-center",e.BottomRight="bottom-right",e))(br||{});const Gc=["INPUT","SELECT","TEXTAREA"],Wc=typeof document<"u"?document:null;function co(e){var t,n;const o=((n=(t=e.composedPath)==null?void 0:t.call(e))==null?void 0:n[0])||e.target,i=typeof(o==null?void 0:o.hasAttribute)=="function"?o.hasAttribute("contenteditable"):!1,a=typeof(o==null?void 0:o.closest)=="function"?o.closest(".nokey"):null;return Gc.includes(o==null?void 0:o.nodeName)||i||!!a}function Xc(e){return e.ctrlKey||e.metaKey||e.shiftKey||e.altKey}function ui(e,t,n,o){const i=t.replace("+",` +`).replace(` + +`,` ++`).split(` +`).map(r=>r.trim().toLowerCase());if(i.length===1)return e.toLowerCase()===t.toLowerCase();o||n.add(e.toLowerCase());const a=i.every((r,l)=>n.has(r)&&Array.from(n.values())[l]===i[l]);return o&&n.delete(e.toLowerCase()),a}function Uc(e,t){return n=>{if(!n.code&&!n.key)return!1;const o=Zc(n.code,e);return Array.isArray(e)?e.some(i=>ui(n[o],i,t,n.type==="keyup")):ui(n[o],e,t,n.type==="keyup")}}function Zc(e,t){return t.includes(e)?"code":"key"}function Lt(e,t){const n=te(()=>pe(t==null?void 0:t.target)??Wc),o=at(pe(e)===!0);let i=!1;const a=new Set;let r=s(pe(e));Ee(()=>pe(e),(u,c)=>{typeof c=="boolean"&&typeof u!="boolean"&&l(),r=s(u)},{immediate:!0}),Ui(["blur","contextmenu"],l),Wo((...u)=>r(...u),u=>{var c,f;const h=pe(t==null?void 0:t.actInsideInputWithModifier)??!0,g=pe(t==null?void 0:t.preventDefault)??!1;if(i=Xc(u),(!i||i&&!h)&&co(u))return;const b=((f=(c=u.composedPath)==null?void 0:c.call(u))==null?void 0:f[0])||u.target,N=(b==null?void 0:b.nodeName)==="BUTTON"||(b==null?void 0:b.nodeName)==="A";!g&&(i||!N)&&u.preventDefault(),o.value=!0},{eventName:"keydown",target:n}),Wo((...u)=>r(...u),u=>{const c=pe(t==null?void 0:t.actInsideInputWithModifier)??!0;if(o.value){if((!i||i&&!c)&&co(u))return;i=!1,o.value=!1}},{eventName:"keyup",target:n});function l(){i=!1,a.clear(),o.value=pe(e)===!0}function s(u){return u===null?(l(),()=>!1):typeof u=="boolean"?(l(),o.value=u,()=>!1):Array.isArray(u)||typeof u=="string"?Uc(u,a):u}return o}const xr="vue-flow__node-desc",Er="vue-flow__edge-desc",Kc="vue-flow__aria-live",Sr=["Enter"," ","Escape"],Nt={ArrowUp:{x:0,y:-1},ArrowDown:{x:0,y:1},ArrowLeft:{x:-1,y:0},ArrowRight:{x:1,y:0}};function Sn(e){return{...e.computedPosition||{x:0,y:0},width:e.dimensions.width||0,height:e.dimensions.height||0}}function Nn(e,t){const n=Math.max(0,Math.min(e.x+e.width,t.x+t.width)-Math.max(e.x,t.x)),o=Math.max(0,Math.min(e.y+e.height,t.y+t.height)-Math.max(e.y,t.y));return Math.ceil(n*o)}function An(e){return{width:e.offsetWidth,height:e.offsetHeight}}function wt(e,t=0,n=1){return Math.min(Math.max(e,t),n)}function Nr(e,t){return{x:wt(e.x,t[0][0],t[1][0]),y:wt(e.y,t[0][1],t[1][1])}}function ci(e){const t=e.getRootNode();return"elementFromPoint"in t?t:window.document}function ut(e){return e&&typeof e=="object"&&"id"in e&&"source"in e&&"target"in e}function pt(e){return e&&typeof e=="object"&&"id"in e&&"position"in e&&!ut(e)}function Vt(e){return pt(e)&&"computedPosition"in e}function an(e){return!Number.isNaN(e)&&Number.isFinite(e)}function qc(e){return an(e.width)&&an(e.height)&&an(e.x)&&an(e.y)}function jc(e,t,n){const o={id:e.id.toString(),type:e.type??"default",dimensions:lt({width:0,height:0}),computedPosition:lt({z:0,...e.position}),handleBounds:{source:[],target:[]},draggable:void 0,selectable:void 0,connectable:void 0,focusable:void 0,selected:!1,dragging:!1,resizing:!1,initialized:!1,isParent:!1,position:{x:0,y:0},data:Ce(e.data)?e.data:{},events:lt(Ce(e.events)?e.events:{})};return Object.assign(t??o,e,{id:e.id.toString(),parentNode:n})}function kr(e,t,n){var o,i;const a={id:e.id.toString(),type:e.type??(t==null?void 0:t.type)??"default",source:e.source.toString(),target:e.target.toString(),sourceHandle:(o=e.sourceHandle)==null?void 0:o.toString(),targetHandle:(i=e.targetHandle)==null?void 0:i.toString(),updatable:e.updatable??(n==null?void 0:n.updatable),selectable:e.selectable??(n==null?void 0:n.selectable),focusable:e.focusable??(n==null?void 0:n.focusable),data:Ce(e.data)?e.data:{},events:lt(Ce(e.events)?e.events:{}),label:e.label??"",interactionWidth:e.interactionWidth??(n==null?void 0:n.interactionWidth),...n??{}};return Object.assign(t??a,e,{id:e.id.toString()})}function $r(e,t,n,o){const i=typeof e=="string"?e:e.id,a=new Set,r=o==="source"?"target":"source";for(const l of n)l[r]===i&&a.add(l[o]);return t.filter(l=>a.has(l.id))}function Jc(...e){if(e.length===3){const[a,r,l]=e;return $r(a,r,l,"target")}const[t,n]=e,o=typeof t=="string"?t:t.id;return n.filter(a=>ut(a)&&a.source===o).map(a=>n.find(r=>pt(r)&&r.id===a.target))}function Qc(...e){if(e.length===3){const[a,r,l]=e;return $r(a,r,l,"source")}const[t,n]=e,o=typeof t=="string"?t:t.id;return n.filter(a=>ut(a)&&a.target===o).map(a=>n.find(r=>pt(r)&&r.id===a.source))}function Cr({source:e,sourceHandle:t,target:n,targetHandle:o}){return`vueflow__edge-${e}${t??""}-${n}${o??""}`}function ed(e,t){return t.some(n=>ut(n)&&n.source===e.source&&n.target===e.target&&(n.sourceHandle===e.sourceHandle||!n.sourceHandle&&!e.sourceHandle)&&(n.targetHandle===e.targetHandle||!n.targetHandle&&!e.targetHandle))}function Ut({x:e,y:t},{x:n,y:o,zoom:i}){return{x:e*i+n,y:t*i+o}}function Zt({x:e,y:t},{x:n,y:o,zoom:i},a=!1,r=[1,1]){const l={x:(e-n)/i,y:(t-o)/i};return a?zn(l,r):l}function td(e,t){return{x:Math.min(e.x,t.x),y:Math.min(e.y,t.y),x2:Math.max(e.x2,t.x2),y2:Math.max(e.y2,t.y2)}}function Mr({x:e,y:t,width:n,height:o}){return{x:e,y:t,x2:e+n,y2:t+o}}function nd({x:e,y:t,x2:n,y2:o}){return{x:e,y:t,width:n-e,height:o-t}}function Dr(e){let t={x:Number.POSITIVE_INFINITY,y:Number.POSITIVE_INFINITY,x2:Number.NEGATIVE_INFINITY,y2:Number.NEGATIVE_INFINITY};for(let n=0;n0,N=(f??0)*(h??0);(y||b||g>=N||l.dragging)&&r.push(l)}return r}function Pr(e,t){const n=new Set;if(typeof e=="string")n.add(e);else if(e.length>=1)for(const o of e)n.add(o.id);return t.filter(o=>n.has(o.source)||n.has(o.target))}function xt(e,t){if(typeof e=="number")return Math.floor((t-t/(1+e))*.5);if(typeof e=="string"&&e.endsWith("px")){const n=Number.parseFloat(e);if(!Number.isNaN(n))return Math.floor(n)}if(typeof e=="string"&&e.endsWith("%")){const n=Number.parseFloat(e);if(!Number.isNaN(n))return Math.floor(t*n*.01)}return Qt(`The padding value "${e}" is invalid. Please provide a number or a string with a valid unit (px or %).`),0}function od(e,t,n){if(typeof e=="string"||typeof e=="number"){const o=xt(e,n),i=xt(e,t);return{top:o,right:i,bottom:o,left:i,x:i*2,y:o*2}}if(typeof e=="object"){const o=xt(e.top??e.y??0,n),i=xt(e.bottom??e.y??0,n),a=xt(e.left??e.x??0,t),r=xt(e.right??e.x??0,t);return{top:o,right:r,bottom:i,left:a,x:a+r,y:o+i}}return{top:0,right:0,bottom:0,left:0,x:0,y:0}}function id(e,t,n,o,i,a){const{x:r,y:l}=Ut(e,{x:t,y:n,zoom:o}),{x:s,y:u}=Ut({x:e.x+e.width,y:e.y+e.height},{x:t,y:n,zoom:o}),c=i-s,f=a-u;return{left:Math.floor(r),top:Math.floor(l),right:Math.floor(c),bottom:Math.floor(f)}}function di(e,t,n,o,i,a=.1){const r=od(a,t,n),l=(t-r.x)/e.width,s=(n-r.y)/e.height,u=Math.min(l,s),c=wt(u,o,i),f=e.x+e.width/2,h=e.y+e.height/2,g=t/2-f*c,y=n/2-h*c,b=id(e,g,y,c,t,n),N={left:Math.min(b.left-r.left,0),top:Math.min(b.top-r.top,0),right:Math.min(b.right-r.right,0),bottom:Math.min(b.bottom-r.bottom,0)};return{x:g-N.left+N.right,y:y-N.top+N.bottom,zoom:c}}function rd(e,t){return{x:t.x+e.x,y:t.y+e.y,z:(e.z>t.z?e.z:t.z)+1}}function Or(e,t){if(!e.parentNode)return!1;const n=t.get(e.parentNode);return n?n.selected?!0:Or(n,t):!1}function Kt(e,t){return typeof e>"u"?"":typeof e=="string"?e:`${t?`${t}__`:""}${Object.keys(e).sort().map(o=>`${o}=${e[o]}`).join("&")}`}function fi(e){const t=e.ctrlKey&&kn()?10:1;return-e.deltaY*(e.deltaMode===1?.05:e.deltaMode?1:.002)*t}function hi(e,t,n){return en?-wt(Math.abs(e-n),1,t)/t:0}function Tr(e,t,n=15,o=40){const i=hi(e.x,o,t.width-o)*n,a=hi(e.y,o,t.height-o)*n;return[i,a]}function Un(e,t){if(t){const n=e.position.x+e.dimensions.width-t.dimensions.width,o=e.position.y+e.dimensions.height-t.dimensions.height;if(n>0||o>0||e.position.x<0||e.position.y<0){let i={};if(typeof t.style=="function"?i={...t.style(t)}:t.style&&(i={...t.style}),i.width=i.width??`${t.dimensions.width}px`,i.height=i.height??`${t.dimensions.height}px`,n>0)if(typeof i.width=="string"){const a=Number(i.width.replace("px",""));i.width=`${a+n}px`}else i.width+=n;if(o>0)if(typeof i.height=="string"){const a=Number(i.height.replace("px",""));i.height=`${a+o}px`}else i.height+=o;if(e.position.x<0){const a=Math.abs(e.position.x);if(t.position.x=t.position.x-a,typeof i.width=="string"){const r=Number(i.width.replace("px",""));i.width=`${r+a}px`}else i.width+=a;e.position.x=0}if(e.position.y<0){const a=Math.abs(e.position.y);if(t.position.y=t.position.y-a,typeof i.height=="string"){const r=Number(i.height.replace("px",""));i.height=`${r+a}px`}else i.height+=a;e.position.y=0}t.dimensions.width=Number(i.width.toString().replace("px","")),t.dimensions.height=Number(i.height.toString().replace("px","")),typeof t.style=="function"?t.style=a=>{const r=t.style;return{...r(a),...i}}:t.style={...t.style,...i}}}}function vi(e,t){var n,o;const i=e.filter(r=>r.type==="add"||r.type==="remove");for(const r of i)if(r.type==="add")t.findIndex(s=>s.id===r.item.id)===-1&&t.push(r.item);else if(r.type==="remove"){const l=t.findIndex(s=>s.id===r.id);l!==-1&&t.splice(l,1)}const a=t.map(r=>r.id);for(const r of t)for(const l of e)if(l.id===r.id)switch(l.type){case"select":r.selected=l.selected;break;case"position":if(Vt(r)&&(typeof l.position<"u"&&(r.position=l.position),typeof l.dragging<"u"&&(r.dragging=l.dragging),r.expandParent&&r.parentNode)){const s=t[a.indexOf(r.parentNode)];s&&Vt(s)&&Un(r,s)}break;case"dimensions":if(Vt(r)&&(typeof l.dimensions<"u"&&(r.dimensions=l.dimensions),typeof l.updateStyle<"u"&&l.updateStyle&&(r.style={...r.style||{},width:`${(n=l.dimensions)==null?void 0:n.width}px`,height:`${(o=l.dimensions)==null?void 0:o.height}px`}),typeof l.resizing<"u"&&(r.resizing=l.resizing),r.expandParent&&r.parentNode)){const s=t[a.indexOf(r.parentNode)];s&&Vt(s)&&(!!s.dimensions.width&&!!s.dimensions.height?Un(r,s):et(()=>{Un(r,s)}))}break}return t}function it(e,t){return{id:e,type:"select",selected:t}}function gi(e){return{item:e,type:"add"}}function pi(e){return{id:e,type:"remove"}}function mi(e,t,n,o,i){return{id:e,source:t,target:n,sourceHandle:o||null,targetHandle:i||null,type:"remove"}}function rt(e,t=new Set,n=!1){const o=[];for(const[i,a]of e){const r=t.has(i);!(a.selected===void 0&&!r)&&a.selected!==r&&(n&&(a.selected=r),o.push(it(a.id,r)))}return o}const yi=()=>{};function W(e){const t=new Set;let n=yi,o=()=>!1;const i=()=>t.size>0||o(),a=h=>{n=h},r=()=>{n=yi},l=h=>{o=h},s=()=>{o=()=>!1},u=h=>{t.delete(h)};return{on:h=>{t.add(h);const g=()=>u(h);return Ft(g),{off:g}},off:u,trigger:h=>{const g=[n];return i()?g.push(...t):e&&g.push(e),Promise.allSettled(g.map(y=>y(h)))},hasListeners:i,listeners:t,setEmitter:a,removeEmitter:r,setHasEmitListeners:l,removeHasEmitListeners:s}}function wi(e,t,n){let o=e;do{if(o&&o.matches(t))return!0;if(o===n)return!1;o=o.parentElement}while(o);return!1}function ad(e,t,n,o){var i,a;const r=new Map;for(const[l,s]of e)(s.selected||s.id===o)&&(!s.parentNode||!Or(s,e))&&(s.draggable||t&&typeof s.draggable>"u")&&e.get(l)&&r.set(l,{id:s.id,position:s.position||{x:0,y:0},distance:{x:n.x-((i=s.computedPosition)==null?void 0:i.x)||0,y:n.y-((a=s.computedPosition)==null?void 0:a.y)||0},from:{x:s.computedPosition.x,y:s.computedPosition.y},extent:s.extent,parentNode:s.parentNode,dimensions:{...s.dimensions},expandParent:s.expandParent});return Array.from(r.values())}function Zn({id:e,dragItems:t,findNode:n}){const o=[];for(const i of t){const a=n(i.id);a&&o.push(a)}return[e?o.find(i=>i.id===e):o[0],o]}function Ar(e){if(Array.isArray(e))switch(e.length){case 1:return[e[0],e[0],e[0],e[0]];case 2:return[e[0],e[1],e[0],e[1]];case 3:return[e[0],e[1],e[2],e[1]];case 4:return e;default:return[0,0,0,0]}return[e,e,e,e]}function ld(e,t,n){const[o,i,a,r]=typeof e!="string"?Ar(e.padding):[0,0,0,0];return n&&typeof n.computedPosition.x<"u"&&typeof n.computedPosition.y<"u"&&typeof n.dimensions.width<"u"&&typeof n.dimensions.height<"u"?[[n.computedPosition.x+r,n.computedPosition.y+o],[n.computedPosition.x+n.dimensions.width-i,n.computedPosition.y+n.dimensions.height-a]]:!1}function sd(e,t,n,o){let i=e.extent||n;if((i==="parent"||!Array.isArray(i)&&(i==null?void 0:i.range)==="parent")&&!e.expandParent)if(e.parentNode&&o&&e.dimensions.width&&e.dimensions.height){const a=ld(i,e,o);a&&(i=a)}else t(new Ie(Me.NODE_EXTENT_INVALID,e.id)),i=n;else if(Array.isArray(i)){const a=(o==null?void 0:o.computedPosition.x)||0,r=(o==null?void 0:o.computedPosition.y)||0;i=[[i[0][0]+a,i[0][1]+r],[i[1][0]+a,i[1][1]+r]]}else if(i!=="parent"&&(i!=null&&i.range)&&Array.isArray(i.range)){const[a,r,l,s]=Ar(i.padding),u=(o==null?void 0:o.computedPosition.x)||0,c=(o==null?void 0:o.computedPosition.y)||0;i=[[i.range[0][0]+u+s,i.range[0][1]+c+a],[i.range[1][0]+u-r,i.range[1][1]+c-l]]}return i==="parent"?[[Number.NEGATIVE_INFINITY,Number.NEGATIVE_INFINITY],[Number.POSITIVE_INFINITY,Number.POSITIVE_INFINITY]]:i}function ud({width:e,height:t},n){return[n[0],[n[1][0]-(e||0),n[1][1]-(t||0)]]}function Oo(e,t,n,o,i){const a=ud(e.dimensions,sd(e,n,o,i)),r=Nr(t,a);return{position:{x:r.x-((i==null?void 0:i.computedPosition.x)||0),y:r.y-((i==null?void 0:i.computedPosition.y)||0)},computedPosition:r}}function Dt(e,t,n=Z.Left,o=!1){const i=((t==null?void 0:t.x)??0)+e.computedPosition.x,a=((t==null?void 0:t.y)??0)+e.computedPosition.y,{width:r,height:l}=t??hd(e);if(o)return{x:i+r/2,y:a+l/2};switch((t==null?void 0:t.position)??n){case Z.Top:return{x:i+r/2,y:a};case Z.Right:return{x:i+r,y:a+l/2};case Z.Bottom:return{x:i+r/2,y:a+l};case Z.Left:return{x:i,y:a+l/2}}}function _i(e,t){return e&&(t?e.find(n=>n.id===t):e[0])||null}function cd({sourcePos:e,targetPos:t,sourceWidth:n,sourceHeight:o,targetWidth:i,targetHeight:a,width:r,height:l,viewport:s}){const u={x:Math.min(e.x,t.x),y:Math.min(e.y,t.y),x2:Math.max(e.x+n,t.x+i),y2:Math.max(e.y+o,t.y+a)};u.x===u.x2&&(u.x2+=1),u.y===u.y2&&(u.y2+=1);const c=Mr({x:(0-s.x)/s.zoom,y:(0-s.y)/s.zoom,width:r/s.zoom,height:l/s.zoom}),f=Math.max(0,Math.min(c.x2,u.x2)-Math.max(c.x,u.x)),h=Math.max(0,Math.min(c.y2,u.y2)-Math.max(c.y,u.y));return Math.ceil(f*h)>0}function dd(e,t,n=!1){const o=typeof e.zIndex=="number";let i=o?e.zIndex:0;const a=t(e.source),r=t(e.target);return!a||!r?0:(n&&(i=o?e.zIndex:Math.max(a.computedPosition.z||0,r.computedPosition.z||0)),i)}var Me=(e=>(e.MISSING_STYLES="MISSING_STYLES",e.MISSING_VIEWPORT_DIMENSIONS="MISSING_VIEWPORT_DIMENSIONS",e.NODE_INVALID="NODE_INVALID",e.NODE_NOT_FOUND="NODE_NOT_FOUND",e.NODE_MISSING_PARENT="NODE_MISSING_PARENT",e.NODE_TYPE_MISSING="NODE_TYPE_MISSING",e.NODE_EXTENT_INVALID="NODE_EXTENT_INVALID",e.EDGE_INVALID="EDGE_INVALID",e.EDGE_NOT_FOUND="EDGE_NOT_FOUND",e.EDGE_SOURCE_MISSING="EDGE_SOURCE_MISSING",e.EDGE_TARGET_MISSING="EDGE_TARGET_MISSING",e.EDGE_TYPE_MISSING="EDGE_TYPE_MISSING",e.EDGE_SOURCE_TARGET_SAME="EDGE_SOURCE_TARGET_SAME",e.EDGE_SOURCE_TARGET_MISSING="EDGE_SOURCE_TARGET_MISSING",e.EDGE_ORPHANED="EDGE_ORPHANED",e.USEVUEFLOW_OPTIONS="USEVUEFLOW_OPTIONS",e))(Me||{});const bi={MISSING_STYLES:()=>"It seems that you haven't loaded the necessary styles. Please import '@vue-flow/core/dist/style.css' to ensure that the graph is rendered correctly",MISSING_VIEWPORT_DIMENSIONS:()=>"The Vue Flow parent container needs a width and a height to render the graph",NODE_INVALID:e=>`Node is invalid +Node: ${e}`,NODE_NOT_FOUND:e=>`Node not found +Node: ${e}`,NODE_MISSING_PARENT:(e,t)=>`Node is missing a parent +Node: ${e} +Parent: ${t}`,NODE_TYPE_MISSING:e=>`Node type is missing +Type: ${e}`,NODE_EXTENT_INVALID:e=>`Only child nodes can use a parent extent +Node: ${e}`,EDGE_INVALID:e=>`An edge needs a source and a target +Edge: ${e}`,EDGE_SOURCE_MISSING:(e,t)=>`Edge source is missing +Edge: ${e} +Source: ${t}`,EDGE_TARGET_MISSING:(e,t)=>`Edge target is missing +Edge: ${e} +Target: ${t}`,EDGE_TYPE_MISSING:e=>`Edge type is missing +Type: ${e}`,EDGE_SOURCE_TARGET_SAME:(e,t,n)=>`Edge source and target are the same +Edge: ${e} +Source: ${t} +Target: ${n}`,EDGE_SOURCE_TARGET_MISSING:(e,t,n)=>`Edge source or target is missing +Edge: ${e} +Source: ${t} +Target: ${n}`,EDGE_ORPHANED:e=>`Edge was orphaned (suddenly missing source or target) and has been removed +Edge: ${e}`,EDGE_NOT_FOUND:e=>`Edge not found +Edge: ${e}`,USEVUEFLOW_OPTIONS:()=>"The options parameter is deprecated and will be removed in the next major version. Please use the id parameter instead"};class Ie extends Error{constructor(t,...n){var o;super((o=bi[t])==null?void 0:o.call(bi,...n)),this.name="VueFlowError",this.code=t,this.args=n}}function To(e){return"clientX"in e}function fd(e){return"sourceEvent"in e}function Ge(e,t){const n=To(e);let o,i;return n?(o=e.clientX,i=e.clientY):"touches"in e&&e.touches.length>0?(o=e.touches[0].clientX,i=e.touches[0].clientY):"changedTouches"in e&&e.changedTouches.length>0?(o=e.changedTouches[0].clientX,i=e.changedTouches[0].clientY):(o=0,i=0),{x:o-((t==null?void 0:t.left)??0),y:i-((t==null?void 0:t.top)??0)}}const kn=()=>{var e;return typeof navigator<"u"&&((e=navigator==null?void 0:navigator.userAgent)==null?void 0:e.indexOf("Mac"))>=0};function hd(e){var t,n;return{width:((t=e.dimensions)==null?void 0:t.width)??e.width??0,height:((n=e.dimensions)==null?void 0:n.height)??e.height??0}}function zn(e,t=[1,1]){return{x:t[0]*Math.round(e.x/t[0]),y:t[1]*Math.round(e.y/t[1])}}const vd=()=>!0;function Kn(e){e==null||e.classList.remove("valid","connecting","vue-flow__handle-valid","vue-flow__handle-connecting")}function gd(e,t,n){const o=[],i={x:e.x-n,y:e.y-n,width:n*2,height:n*2};for(const a of t.values())Nn(i,Sn(a))>0&&o.push(a);return o}const pd=250;function md(e,t,n,o){var i,a;let r=[],l=Number.POSITIVE_INFINITY;const s=gd(e,n,t+pd);for(const u of s){const c=[...((i=u.handleBounds)==null?void 0:i.source)??[],...((a=u.handleBounds)==null?void 0:a.target)??[]];for(const f of c){if(o.nodeId===f.nodeId&&o.type===f.type&&o.id===f.id)continue;const{x:h,y:g}=Dt(u,f,f.position,!0),y=Math.sqrt((h-e.x)**2+(g-e.y)**2);y>t||(y1){const u=o.type==="source"?"target":"source";return r.find(c=>c.type===u)??r[0]}return r[0]}function xi(e,{handle:t,connectionMode:n,fromNodeId:o,fromHandleId:i,fromType:a,doc:r,lib:l,flowId:s,isValidConnection:u=vd},c,f,h,g){const y=a==="target",b=t?r.querySelector(`.${l}-flow__handle[data-id="${s}-${t==null?void 0:t.nodeId}-${t==null?void 0:t.id}-${t==null?void 0:t.type}"]`):null,{x:N,y:S}=Ge(e),$=r.elementFromPoint(N,S),_=$!=null&&$.classList.contains(`${l}-flow__handle`)?$:b,C={handleDomNode:_,isValid:!1,connection:null,toHandle:null};if(_){const B=zr(void 0,_),G=_.getAttribute("data-nodeid"),X=_.getAttribute("data-handleid"),Y=_.classList.contains("connectable"),oe=_.classList.contains("connectableend");if(!G||!B)return C;const K={source:y?G:o,sourceHandle:y?X:i,target:y?o:G,targetHandle:y?i:X};C.connection=K;const k=Y&&oe&&(n===st.Strict?y&&B==="source"||!y&&B==="target":G!==o||X!==i);C.isValid=k&&u(K,{nodes:f,edges:c,sourceNode:h(K.source),targetNode:h(K.target)}),C.toHandle=Br(G,B,X,g,n,!0)}return C}function zr(e,t){return e||(t!=null&&t.classList.contains("target")?"target":t!=null&&t.classList.contains("source")?"source":null)}function yd(e,t){let n=null;return t?n="valid":e&&!t&&(n="invalid"),n}function wd(e,t){let n=null;return t?n=!0:e&&!t&&(n=!1),n}function Br(e,t,n,o,i,a=!1){var r,l,s;const u=o.get(e);if(!u)return null;const c=i===st.Strict?(r=u.handleBounds)==null?void 0:r[t]:[...((l=u.handleBounds)==null?void 0:l.source)??[],...((s=u.handleBounds)==null?void 0:s.target)??[]],f=(n?c==null?void 0:c.find(h=>h.id===n):c==null?void 0:c[0])??null;return f&&a?{...f,...Dt(u,f,f.position,!0)}:f}const fo={[Z.Left]:Z.Right,[Z.Right]:Z.Left,[Z.Top]:Z.Bottom,[Z.Bottom]:Z.Top},_d=["production","prod"];function Qt(e,...t){Vr()&&console.warn(`[Vue Flow]: ${e}`,...t)}function Vr(){return!_d.includes("production")}function Ei(e,t,n,o,i){const a=t.querySelectorAll(`.vue-flow__handle.${e}`);return a!=null&&a.length?Array.from(a).map(r=>{const l=r.getBoundingClientRect();return{id:r.getAttribute("data-handleid"),type:e,nodeId:i,position:r.getAttribute("data-handlepos"),x:(l.left-n.left)/o,y:(l.top-n.top)/o,...An(r)}}):null}function ho(e,t,n,o,i,a=!1,r){i.value=!1,e.selected?(a||e.selected&&t)&&(o([e]),et(()=>{r.blur()})):n([e])}function Ce(e){return typeof D(e)<"u"}function bd(e,t,n,o){if(!e||!e.source||!e.target)return n(new Ie(Me.EDGE_INVALID,(e==null?void 0:e.id)??"[ID UNKNOWN]")),!1;let i;return ut(e)?i=e:i={...e,id:Cr(e)},i=kr(i,void 0,o),ed(i,t)?!1:i}function xd(e,t,n,o,i){if(!t.source||!t.target)return i(new Ie(Me.EDGE_INVALID,e.id)),!1;if(!n)return i(new Ie(Me.EDGE_NOT_FOUND,e.id)),!1;const{id:a,...r}=e;return{...r,id:o?Cr(t):a,source:t.source,target:t.target,sourceHandle:t.sourceHandle,targetHandle:t.targetHandle}}function Si(e,t,n){const o={},i=[];for(let a=0;al.id===a.parentNode);a.parentNode&&!r&&n(new Ie(Me.NODE_MISSING_PARENT,a.id,a.parentNode)),(a.parentNode||o[a.id])&&(o[a.id]&&(a.isParent=!0),r&&(r.isParent=!0))}return i}function Ni(e,t,n,o,i,a){let r=i;const l=o.get(r)||new Map;o.set(r,l.set(n,t)),r=`${i}-${e}`;const s=o.get(r)||new Map;if(o.set(r,s.set(n,t)),a){r=`${i}-${e}-${a}`;const u=o.get(r)||new Map;o.set(r,u.set(n,t))}}function qn(e,t,n){e.clear();for(const o of n){const{source:i,target:a,sourceHandle:r=null,targetHandle:l=null}=o,s={edgeId:o.id,source:i,target:a,sourceHandle:r,targetHandle:l},u=`${i}-${r}--${a}-${l}`,c=`${a}-${l}--${i}-${r}`;Ni("source",s,c,e,i,r),Ni("target",s,u,e,a,l)}}function ki(e,t){if(e.size!==t.size)return!1;for(const n of e)if(!t.has(n))return!1;return!0}function jn(e,t,n,o,i,a,r,l){const s=[];for(const u of e){const c=ut(u)?u:bd(u,l,i,a);if(!c)continue;const f=n(c.source),h=n(c.target);if(!f||!h){i(new Ie(Me.EDGE_SOURCE_TARGET_MISSING,c.id,c.source,c.target));continue}if(!f){i(new Ie(Me.EDGE_SOURCE_MISSING,c.id,c.source));continue}if(!h){i(new Ie(Me.EDGE_TARGET_MISSING,c.id,c.target));continue}if(t&&!t(c,{edges:l,nodes:r,sourceNode:f,targetNode:h})){i(new Ie(Me.EDGE_INVALID,c.id));continue}const g=o(c.id);s.push({...kr(c,g,a),sourceNode:f,targetNode:h})}return s}const $i=Symbol("vueFlow"),Hr=Symbol("nodeId"),Rr=Symbol("nodeRef"),Ed=Symbol("edgeId"),Sd=Symbol("edgeRef"),Bn=Symbol("slots");function Lr(e){const{vueFlowRef:t,snapToGrid:n,snapGrid:o,noDragClassName:i,nodeLookup:a,nodeExtent:r,nodeDragThreshold:l,viewport:s,autoPanOnNodeDrag:u,autoPanSpeed:c,nodesDraggable:f,panBy:h,findNode:g,multiSelectionActive:y,nodesSelectionActive:b,selectNodesOnDrag:N,removeSelectedElements:S,addSelectedNodes:$,updateNodePositions:_,emits:C}=ke(),{onStart:B,onDrag:G,onStop:X,onClick:Y,el:oe,disabled:K,id:A,selectable:k,dragHandle:ee}=e,x=at(!1);let I=[],E,M=null,T={x:void 0,y:void 0},V={x:0,y:0},H=null,U=!1,ie=!1,le=0,he=!1;const q=$d(),j=({x:ae,y:se})=>{T={x:ae,y:se};let m=!1;if(I=I.map(v=>{const d={x:ae-v.distance.x,y:se-v.distance.y},{computedPosition:p}=Oo(v,n.value?zn(d,o.value):d,C.error,r.value,v.parentNode?g(v.parentNode):void 0);return m=m||v.position.x!==p.x||v.position.y!==p.y,v.position=p,v}),ie=ie||m,!!m&&(_(I,!0,!0),x.value=!0,H)){const[v,d]=Zn({id:A,dragItems:I,findNode:g});G({event:H,node:v,nodes:d})}},L=()=>{if(!M)return;const[ae,se]=Tr(V,M,c.value);if(ae!==0||se!==0){const m={x:(T.x??0)-ae/s.value.zoom,y:(T.y??0)-se/s.value.zoom};h({x:ae,y:se})&&j(m)}le=requestAnimationFrame(L)},ce=(ae,se)=>{U=!0;const m=g(A);!N.value&&!y.value&&m&&(m.selected||S()),m&&pe(k)&&N.value&&ho(m,y.value,$,S,b,!1,se);const v=q(ae.sourceEvent);if(T=v,I=ad(a.value,f.value,v,A),I.length){const[d,p]=Zn({id:A,dragItems:I,findNode:g});B({event:ae.sourceEvent,node:d,nodes:p})}},_e=(ae,se)=>{var m;ae.sourceEvent.type==="touchmove"&&ae.sourceEvent.touches.length>1||(ie=!1,l.value===0&&ce(ae,se),T=q(ae.sourceEvent),M=((m=t.value)==null?void 0:m.getBoundingClientRect())||null,V=Ge(ae.sourceEvent,M))},de=(ae,se)=>{const m=q(ae.sourceEvent);if(!he&&U&&u.value&&(he=!0,L()),!U){const v=m.xSnapped-(T.x??0),d=m.ySnapped-(T.y??0);Math.sqrt(v*v+d*d)>l.value&&ce(ae,se)}(T.x!==m.xSnapped||T.y!==m.ySnapped)&&I.length&&U&&(H=ae.sourceEvent,V=Ge(ae.sourceEvent,M),j(m))},ye=ae=>{let se=!1;if(!U&&!x.value&&!y.value){const m=ae.sourceEvent,v=q(m),d=v.xSnapped-(T.x??0),p=v.ySnapped-(T.y??0),w=Math.sqrt(d*d+p*p);w!==0&&w<=l.value&&(Y==null||Y(m),se=!0)}if(I.length&&!se){ie&&(_(I,!1,!1),ie=!1);const[m,v]=Zn({id:A,dragItems:I,findNode:g});X({event:ae.sourceEvent,node:m,nodes:v})}I=[],x.value=!1,he=!1,U=!1,T={x:void 0,y:void 0},cancelAnimationFrame(le)};return Ee([()=>pe(K),oe],([ae,se],m,v)=>{if(se){const d=Be(se);ae||(E=qs().on("start",p=>_e(p,se)).on("drag",p=>de(p,se)).on("end",p=>ye(p)).filter(p=>{const w=p.target,P=pe(ee);return!p.button&&(!i.value||!wi(w,`.${i.value}`,se)&&(!P||wi(w,P,se)))}),d.call(E)),v(()=>{d.on(".drag",null),E&&(E.on("start",null),E.on("drag",null),E.on("end",null))})}}),x}function Nd(){return{doubleClick:W(),click:W(),mouseEnter:W(),mouseMove:W(),mouseLeave:W(),contextMenu:W(),updateStart:W(),update:W(),updateEnd:W()}}function kd(e,t){const n=Nd();return n.doubleClick.on(o=>{var i,a;t.edgeDoubleClick(o),(a=(i=e.events)==null?void 0:i.doubleClick)==null||a.call(i,o)}),n.click.on(o=>{var i,a;t.edgeClick(o),(a=(i=e.events)==null?void 0:i.click)==null||a.call(i,o)}),n.mouseEnter.on(o=>{var i,a;t.edgeMouseEnter(o),(a=(i=e.events)==null?void 0:i.mouseEnter)==null||a.call(i,o)}),n.mouseMove.on(o=>{var i,a;t.edgeMouseMove(o),(a=(i=e.events)==null?void 0:i.mouseMove)==null||a.call(i,o)}),n.mouseLeave.on(o=>{var i,a;t.edgeMouseLeave(o),(a=(i=e.events)==null?void 0:i.mouseLeave)==null||a.call(i,o)}),n.contextMenu.on(o=>{var i,a;t.edgeContextMenu(o),(a=(i=e.events)==null?void 0:i.contextMenu)==null||a.call(i,o)}),n.updateStart.on(o=>{var i,a;t.edgeUpdateStart(o),(a=(i=e.events)==null?void 0:i.updateStart)==null||a.call(i,o)}),n.update.on(o=>{var i,a;t.edgeUpdate(o),(a=(i=e.events)==null?void 0:i.update)==null||a.call(i,o)}),n.updateEnd.on(o=>{var i,a;t.edgeUpdateEnd(o),(a=(i=e.events)==null?void 0:i.updateEnd)==null||a.call(i,o)}),Object.entries(n).reduce((o,[i,a])=>(o.emit[i]=a.trigger,o.on[i]=a.on,o),{emit:{},on:{}})}function $d(){const{viewport:e,snapGrid:t,snapToGrid:n,vueFlowRef:o}=ke();return i=>{var a;const r=((a=o.value)==null?void 0:a.getBoundingClientRect())??{left:0,top:0},l=fd(i)?i.sourceEvent:i,{x:s,y:u}=Ge(l,r),c=Zt({x:s,y:u},e.value),{x:f,y:h}=n.value?zn(c,t.value):c;return{xSnapped:f,ySnapped:h,...c}}}function ln(){return!0}function Fr({handleId:e,nodeId:t,type:n,isValidConnection:o,edgeUpdaterType:i,onEdgeUpdate:a,onEdgeUpdateEnd:r}){const{id:l,vueFlowRef:s,connectionMode:u,connectionRadius:c,connectOnClick:f,connectionClickStartHandle:h,nodesConnectable:g,autoPanOnConnect:y,autoPanSpeed:b,findNode:N,panBy:S,startConnection:$,updateConnection:_,endConnection:C,emits:B,viewport:G,edges:X,nodes:Y,isValidConnection:oe,nodeLookup:K}=ke();let A=null,k=!1,ee=null;function x(E){var M;const T=pe(n)==="target",V=To(E),H=ci(E.target),U=E.currentTarget;if(U&&(V&&E.button===0||!V)){let ie=function(Q){m=Ge(Q,ye),j=md(Zt(m,G.value,!1,[1,1]),c.value,K.value,p),v||(d(),v=!0);const re=xi(Q,{handle:j,connectionMode:u.value,fromNodeId:pe(t),fromHandleId:pe(e),fromType:T?"target":"source",isValidConnection:q,doc:H,lib:"vue",flowId:l,nodeLookup:K.value},X.value,Y.value,N,K.value);ee=re.handleDomNode,A=re.connection,k=wd(!!j,re.isValid);const ge={...F,isValid:k,to:re.toHandle&&k?Ut({x:re.toHandle.x,y:re.toHandle.y},G.value):m,toHandle:re.toHandle,toPosition:k&&re.toHandle?re.toHandle.position:fo[p.position],toNode:re.toHandle?K.value.get(re.toHandle.nodeId):null};if(k&&j&&(F!=null&&F.toHandle)&&ge.toHandle&&F.toHandle.type===ge.toHandle.type&&F.toHandle.nodeId===ge.toHandle.nodeId&&F.toHandle.id===ge.toHandle.id&&F.to.x===ge.to.x&&F.to.y===ge.to.y)return;const be=j??re.toHandle;if(_(be&&k?Ut({x:be.x,y:be.y},G.value):m,be,yd(!!be,k)),F=ge,!j&&!k&&!ee)return Kn(se);A&&A.source!==A.target&&ee&&(Kn(se),se=ee,ee.classList.add("connecting","vue-flow__handle-connecting"),ee.classList.toggle("valid",!!k),ee.classList.toggle("vue-flow__handle-valid",!!k))},le=function(Q){"touches"in Q&&Q.touches.length>0||((j||ee)&&A&&k&&(a?a(Q,A):B.connect(A)),B.connectEnd(Q),i&&(r==null||r(Q)),Kn(se),cancelAnimationFrame(L),C(Q),v=!1,k=!1,A=null,ee=null,H.removeEventListener("mousemove",ie),H.removeEventListener("mouseup",le),H.removeEventListener("touchmove",ie),H.removeEventListener("touchend",le))};const he=N(pe(t));let q=pe(o)||oe.value||ln;!q&&he&&(q=(T?he.isValidSourcePos:he.isValidTargetPos)||ln);let j,L=0;const{x:ce,y:_e}=Ge(E),de=zr(pe(i),U),ye=(M=s.value)==null?void 0:M.getBoundingClientRect();if(!ye||!de)return;const ae=Br(pe(t),de,pe(e),K.value,u.value);if(!ae)return;let se,m=Ge(E,ye),v=!1;const d=()=>{if(!y.value)return;const[Q,re]=Tr(m,ye,b.value);S({x:Q,y:re}),L=requestAnimationFrame(d)},p={...ae,nodeId:pe(t),type:de,position:ae.position},w=K.value.get(pe(t)),R={inProgress:!0,isValid:null,from:Dt(w,p,Z.Left,!0),fromHandle:p,fromPosition:p.position,fromNode:w,to:m,toHandle:null,toPosition:fo[p.position],toNode:null};$({nodeId:pe(t),id:pe(e),type:de,position:(U==null?void 0:U.getAttribute("data-handlepos"))||Z.Top,...m},{x:ce-ye.left,y:_e-ye.top}),B.connectStart({event:E,nodeId:pe(t),handleId:pe(e),handleType:de});let F=R;H.addEventListener("mousemove",ie),H.addEventListener("mouseup",le),H.addEventListener("touchmove",ie),H.addEventListener("touchend",le)}}function I(E){var M,T;if(!f.value)return;const V=pe(n)==="target";if(!h.value){B.clickConnectStart({event:E,nodeId:pe(t),handleId:pe(e)}),$({nodeId:pe(t),type:pe(n),id:pe(e),position:Z.Top,...Ge(E)},void 0,!0);return}let H=pe(o)||oe.value||ln;const U=N(pe(t));if(!H&&U&&(H=(V?U.isValidSourcePos:U.isValidTargetPos)||ln),U&&(typeof U.connectable>"u"?g.value:U.connectable)===!1)return;const ie=ci(E.target),le=xi(E,{handle:{nodeId:pe(t),id:pe(e),type:pe(n),position:Z.Top,...Ge(E)},connectionMode:u.value,fromNodeId:h.value.nodeId,fromHandleId:h.value.id??null,fromType:h.value.type,isValidConnection:H,doc:ie,lib:"vue",flowId:l,nodeLookup:K.value},X.value,Y.value,N,K.value),he=((M=le.connection)==null?void 0:M.source)===((T=le.connection)==null?void 0:T.target);le.isValid&&le.connection&&!he&&B.connect(le.connection),B.clickConnectEnd(E),C(E,!0)}return{handlePointerDown:x,handleClick:I}}function Cd(){return It(Hr,"")}function Yr(e){const t=e??Cd()??"",n=It(Rr,me(null)),{findNode:o,edges:i,emits:a}=ke(),r=o(t);return r||a.error(new Ie(Me.NODE_NOT_FOUND,t)),{id:t,nodeEl:n,node:r,parentNode:te(()=>o(r.parentNode)),connectedEdges:te(()=>Pr([r],i.value))}}function Md(){return{doubleClick:W(),click:W(),mouseEnter:W(),mouseMove:W(),mouseLeave:W(),contextMenu:W(),dragStart:W(),drag:W(),dragStop:W()}}function Dd(e,t){const n=Md();return n.doubleClick.on(o=>{var i,a;t.nodeDoubleClick(o),(a=(i=e.events)==null?void 0:i.doubleClick)==null||a.call(i,o)}),n.click.on(o=>{var i,a;t.nodeClick(o),(a=(i=e.events)==null?void 0:i.click)==null||a.call(i,o)}),n.mouseEnter.on(o=>{var i,a;t.nodeMouseEnter(o),(a=(i=e.events)==null?void 0:i.mouseEnter)==null||a.call(i,o)}),n.mouseMove.on(o=>{var i,a;t.nodeMouseMove(o),(a=(i=e.events)==null?void 0:i.mouseMove)==null||a.call(i,o)}),n.mouseLeave.on(o=>{var i,a;t.nodeMouseLeave(o),(a=(i=e.events)==null?void 0:i.mouseLeave)==null||a.call(i,o)}),n.contextMenu.on(o=>{var i,a;t.nodeContextMenu(o),(a=(i=e.events)==null?void 0:i.contextMenu)==null||a.call(i,o)}),n.dragStart.on(o=>{var i,a;t.nodeDragStart(o),(a=(i=e.events)==null?void 0:i.dragStart)==null||a.call(i,o)}),n.drag.on(o=>{var i,a;t.nodeDrag(o),(a=(i=e.events)==null?void 0:i.drag)==null||a.call(i,o)}),n.dragStop.on(o=>{var i,a;t.nodeDragStop(o),(a=(i=e.events)==null?void 0:i.dragStop)==null||a.call(i,o)}),Object.entries(n).reduce((o,[i,a])=>(o.emit[i]=a.trigger,o.on[i]=a.on,o),{emit:{},on:{}})}function Gr(){const{getSelectedNodes:e,nodeExtent:t,updateNodePositions:n,findNode:o,snapGrid:i,snapToGrid:a,nodesDraggable:r,emits:l}=ke();return(s,u=!1)=>{const c=a.value?i.value[0]:5,f=a.value?i.value[1]:5,h=u?4:1,g=s.x*c*h,y=s.y*f*h,b=[];for(const N of e.value)if(N.draggable||r&&typeof N.draggable>"u"){const S={x:N.computedPosition.x+g,y:N.computedPosition.y+y},{position:$}=Oo(N,S,l.error,t.value,N.parentNode?o(N.parentNode):void 0);b.push({id:N.id,position:$,from:N.position,distance:{x:s.x,y:s.y},dimensions:N.dimensions})}n(b,!0,!1)}}const sn=.1,Id=e=>((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2;function ot(){return Qt("Viewport not initialized yet."),Promise.resolve(!1)}const Pd={zoomIn:ot,zoomOut:ot,zoomTo:ot,fitView:ot,setCenter:ot,fitBounds:ot,project:e=>e,screenToFlowCoordinate:e=>e,flowToScreenCoordinate:e=>e,setViewport:ot,setTransform:ot,getViewport:()=>({x:0,y:0,zoom:1}),getTransform:()=>({x:0,y:0,zoom:1}),viewportInitialized:!1};function Od(e){function t(o,i){return new Promise(a=>{e.d3Selection&&e.d3Zoom?e.d3Zoom.interpolate((i==null?void 0:i.interpolate)==="linear"?Ht:hn).scaleBy(Jn(e.d3Selection,i==null?void 0:i.duration,i==null?void 0:i.ease,()=>{a(!0)}),o):a(!1)})}function n(o,i,a,r){return new Promise(l=>{var s;const{x:u,y:c}=Nr({x:-o,y:-i},e.translateExtent),f=Mt.translate(-u,-c).scale(a);e.d3Selection&&e.d3Zoom?(s=e.d3Zoom)==null||s.interpolate((r==null?void 0:r.interpolate)==="linear"?Ht:hn).transform(Jn(e.d3Selection,r==null?void 0:r.duration,r==null?void 0:r.ease,()=>{l(!0)}),f):l(!1)})}return te(()=>e.d3Zoom&&e.d3Selection&&e.dimensions.width&&e.dimensions.height?{viewportInitialized:!0,zoomIn:i=>t(1.2,i),zoomOut:i=>t(1/1.2,i),zoomTo:(i,a)=>new Promise(r=>{e.d3Selection&&e.d3Zoom?e.d3Zoom.interpolate((a==null?void 0:a.interpolate)==="linear"?Ht:hn).scaleTo(Jn(e.d3Selection,a==null?void 0:a.duration,a==null?void 0:a.ease,()=>{r(!0)}),i):r(!1)}),setViewport:(i,a)=>n(i.x,i.y,i.zoom,a),setTransform:(i,a)=>n(i.x,i.y,i.zoom,a),getViewport:()=>({x:e.viewport.x,y:e.viewport.y,zoom:e.viewport.zoom}),getTransform:()=>({x:e.viewport.x,y:e.viewport.y,zoom:e.viewport.zoom}),fitView:(i={padding:sn,includeHiddenNodes:!1,duration:0})=>{var a,r;const l=[];for(const h of e.nodes)h.dimensions.width&&h.dimensions.height&&((i==null?void 0:i.includeHiddenNodes)||!h.hidden)&&(!((a=i.nodes)!=null&&a.length)||(r=i.nodes)!=null&&r.length&&i.nodes.includes(h.id))&&l.push(h);if(!l.length)return Promise.resolve(!1);const s=Dr(l),{x:u,y:c,zoom:f}=di(s,e.dimensions.width,e.dimensions.height,i.minZoom??e.minZoom,i.maxZoom??e.maxZoom,i.padding??sn);return n(u,c,f,i)},setCenter:(i,a,r)=>{const l=typeof(r==null?void 0:r.zoom)<"u"?r.zoom:e.maxZoom,s=e.dimensions.width/2-i*l,u=e.dimensions.height/2-a*l;return n(s,u,l,r)},fitBounds:(i,a={padding:sn})=>{const{x:r,y:l,zoom:s}=di(i,e.dimensions.width,e.dimensions.height,e.minZoom,e.maxZoom,a.padding??sn);return n(r,l,s,a)},project:i=>Zt(i,e.viewport,e.snapToGrid,e.snapGrid),screenToFlowCoordinate:i=>{if(e.vueFlowRef){const{x:a,y:r}=e.vueFlowRef.getBoundingClientRect(),l={x:i.x-a,y:i.y-r};return Zt(l,e.viewport,e.snapToGrid,e.snapGrid)}return{x:0,y:0}},flowToScreenCoordinate:i=>{if(e.vueFlowRef){const{x:a,y:r}=e.vueFlowRef.getBoundingClientRect(),l={x:i.x+a,y:i.y+r};return Ut(l,e.viewport)}return{x:0,y:0}}}:Pd)}function Jn(e,t=0,n=Id,o=()=>{}){const i=typeof t=="number"&&t>0;return i||o(),i?e.transition().duration(t).ease(n).on("end",o):e}function Td(e,t,n){const o=Ti(!0);return o.run(()=>{const i=()=>{o.run(()=>{let b,N,S=!!(n.nodes.value.length||n.edges.value.length);b=bt([e.modelValue,()=>{var $,_;return(_=($=e.modelValue)==null?void 0:$.value)==null?void 0:_.length}],([$])=>{$&&Array.isArray($)&&(N==null||N.pause(),n.setElements($),!N&&!S&&$.length?S=!0:N==null||N.resume())}),N=bt([n.nodes,n.edges,()=>n.edges.value.length,()=>n.nodes.value.length],([$,_])=>{var C;(C=e.modelValue)!=null&&C.value&&Array.isArray(e.modelValue.value)&&(b==null||b.pause(),e.modelValue.value=[...$,..._],et(()=>{b==null||b.resume()}))},{immediate:S}),dn(()=>{b==null||b.stop(),N==null||N.stop()})})},a=()=>{o.run(()=>{let b,N,S=!!n.nodes.value.length;b=bt([e.nodes,()=>{var $,_;return(_=($=e.nodes)==null?void 0:$.value)==null?void 0:_.length}],([$])=>{$&&Array.isArray($)&&(N==null||N.pause(),n.setNodes($),!N&&!S&&$.length?S=!0:N==null||N.resume())}),N=bt([n.nodes,()=>n.nodes.value.length],([$])=>{var _;(_=e.nodes)!=null&&_.value&&Array.isArray(e.nodes.value)&&(b==null||b.pause(),e.nodes.value=[...$],et(()=>{b==null||b.resume()}))},{immediate:S}),dn(()=>{b==null||b.stop(),N==null||N.stop()})})},r=()=>{o.run(()=>{let b,N,S=!!n.edges.value.length;b=bt([e.edges,()=>{var $,_;return(_=($=e.edges)==null?void 0:$.value)==null?void 0:_.length}],([$])=>{$&&Array.isArray($)&&(N==null||N.pause(),n.setEdges($),!N&&!S&&$.length?S=!0:N==null||N.resume())}),N=bt([n.edges,()=>n.edges.value.length],([$])=>{var _;(_=e.edges)!=null&&_.value&&Array.isArray(e.edges.value)&&(b==null||b.pause(),e.edges.value=[...$],et(()=>{b==null||b.resume()}))},{immediate:S}),dn(()=>{b==null||b.stop(),N==null||N.stop()})})},l=()=>{o.run(()=>{Ee(()=>t.maxZoom,()=>{t.maxZoom&&Ce(t.maxZoom)&&n.setMaxZoom(t.maxZoom)},{immediate:!0})})},s=()=>{o.run(()=>{Ee(()=>t.minZoom,()=>{t.minZoom&&Ce(t.minZoom)&&n.setMinZoom(t.minZoom)},{immediate:!0})})},u=()=>{o.run(()=>{Ee(()=>t.translateExtent,()=>{t.translateExtent&&Ce(t.translateExtent)&&n.setTranslateExtent(t.translateExtent)},{immediate:!0})})},c=()=>{o.run(()=>{Ee(()=>t.nodeExtent,()=>{t.nodeExtent&&Ce(t.nodeExtent)&&n.setNodeExtent(t.nodeExtent)},{immediate:!0})})},f=()=>{o.run(()=>{Ee(()=>t.applyDefault,()=>{Ce(t.applyDefault)&&(n.applyDefault.value=t.applyDefault)},{immediate:!0})})},h=()=>{o.run(()=>{const b=async N=>{let S=N;typeof t.autoConnect=="function"&&(S=await t.autoConnect(N)),S!==!1&&n.addEdges([S])};Ee(()=>t.autoConnect,()=>{Ce(t.autoConnect)&&(n.autoConnect.value=t.autoConnect)},{immediate:!0}),Ee(n.autoConnect,(N,S,$)=>{N?n.onConnect(b):n.hooks.value.connect.off(b),$(()=>{n.hooks.value.connect.off(b)})},{immediate:!0})})},g=()=>{const b=["id","modelValue","translateExtent","nodeExtent","edges","nodes","maxZoom","minZoom","applyDefault","autoConnect"];for(const N of Object.keys(t)){const S=N;if(!b.includes(S)){const $=Se(()=>t[S]),_=n[S];go(_)&&o.run(()=>{Ee($,C=>{Ce(C)&&(_.value=C)},{immediate:!0})})}}};(()=>{i(),a(),r(),s(),l(),u(),c(),f(),h(),g()})()}),()=>o.stop()}function Ad(){return{edgesChange:W(),nodesChange:W(),nodeDoubleClick:W(),nodeClick:W(),nodeMouseEnter:W(),nodeMouseMove:W(),nodeMouseLeave:W(),nodeContextMenu:W(),nodeDragStart:W(),nodeDrag:W(),nodeDragStop:W(),nodesInitialized:W(),miniMapNodeClick:W(),miniMapNodeDoubleClick:W(),miniMapNodeMouseEnter:W(),miniMapNodeMouseMove:W(),miniMapNodeMouseLeave:W(),connect:W(),connectStart:W(),connectEnd:W(),clickConnectStart:W(),clickConnectEnd:W(),paneReady:W(),init:W(),move:W(),moveStart:W(),moveEnd:W(),selectionDragStart:W(),selectionDrag:W(),selectionDragStop:W(),selectionContextMenu:W(),selectionStart:W(),selectionEnd:W(),viewportChangeStart:W(),viewportChange:W(),viewportChangeEnd:W(),paneScroll:W(),paneClick:W(),paneContextMenu:W(),paneMouseEnter:W(),paneMouseMove:W(),paneMouseLeave:W(),edgeContextMenu:W(),edgeMouseEnter:W(),edgeMouseMove:W(),edgeMouseLeave:W(),edgeDoubleClick:W(),edgeClick:W(),edgeUpdateStart:W(),edgeUpdate:W(),edgeUpdateEnd:W(),updateNodeInternals:W(),error:W(e=>Qt(e.message))}}function zd(e,t){const n=Pt();ra(()=>{for(const[i,a]of Object.entries(t.value)){const r=l=>{e(i,l)};a.setEmitter(r),Ft(a.removeEmitter),a.setHasEmitListeners(()=>o(i)),Ft(a.removeHasEmitListeners)}});function o(i){var a;const r=Bd(i);return!!((a=n==null?void 0:n.vnode.props)==null?void 0:a[r])}}function Bd(e){const[t,...n]=e.split(":");return`on${t.replace(/(?:^|-)(\w)/g,(i,a)=>a.toUpperCase())}${n.length?`:${n.join(":")}`:""}`}function Wr(){return{vueFlowRef:null,viewportRef:null,nodes:[],edges:[],connectionLookup:new Map,nodeTypes:{},edgeTypes:{},initialized:!1,dimensions:{width:0,height:0},viewport:{x:0,y:0,zoom:1},d3Zoom:null,d3Selection:null,d3ZoomHandler:null,minZoom:.5,maxZoom:2,translateExtent:[[Number.NEGATIVE_INFINITY,Number.NEGATIVE_INFINITY],[Number.POSITIVE_INFINITY,Number.POSITIVE_INFINITY]],nodeExtent:[[Number.NEGATIVE_INFINITY,Number.NEGATIVE_INFINITY],[Number.POSITIVE_INFINITY,Number.POSITIVE_INFINITY]],selectionMode:Po.Full,paneDragging:!1,preventScrolling:!0,zoomOnScroll:!0,zoomOnPinch:!0,zoomOnDoubleClick:!0,panOnScroll:!1,panOnScrollSpeed:.5,panOnScrollMode:Rt.Free,paneClickDistance:0,panOnDrag:!0,edgeUpdaterRadius:10,onlyRenderVisibleElements:!1,defaultViewport:{x:0,y:0,zoom:1},nodesSelectionActive:!1,userSelectionActive:!1,userSelectionRect:null,defaultMarkerColor:"#b1b1b7",connectionLineStyle:{},connectionLineType:null,connectionLineOptions:{type:ft.Bezier,style:{}},connectionMode:st.Loose,connectionStartHandle:null,connectionEndHandle:null,connectionClickStartHandle:null,connectionPosition:{x:Number.NaN,y:Number.NaN},connectionRadius:20,connectOnClick:!0,connectionStatus:null,isValidConnection:null,snapGrid:[15,15],snapToGrid:!1,edgesUpdatable:!1,edgesFocusable:!0,nodesFocusable:!0,nodesConnectable:!0,nodesDraggable:!0,nodeDragThreshold:1,elementsSelectable:!0,selectNodesOnDrag:!0,multiSelectionActive:!1,selectionKeyCode:"Shift",multiSelectionKeyCode:kn()?"Meta":"Control",zoomActivationKeyCode:kn()?"Meta":"Control",deleteKeyCode:"Backspace",panActivationKeyCode:"Space",hooks:Ad(),applyDefault:!0,autoConnect:!1,fitViewOnInit:!1,fitViewOnInitDone:!1,noDragClassName:"nodrag",noWheelClassName:"nowheel",noPanClassName:"nopan",defaultEdgeOptions:void 0,elevateEdgesOnSelect:!1,elevateNodesOnSelect:!0,autoPanOnNodeDrag:!0,autoPanOnConnect:!0,autoPanSpeed:15,disableKeyboardA11y:!1,ariaLiveMessage:""}}const Vd=["id","vueFlowRef","viewportRef","initialized","modelValue","nodes","edges","maxZoom","minZoom","translateExtent","hooks","defaultEdgeOptions"];function Hd(e,t,n){const o=Od(e),i=m=>{const v=m??[];e.hooks.updateNodeInternals.trigger(v)},a=m=>Qc(m,e.nodes,e.edges),r=m=>Jc(m,e.nodes,e.edges),l=m=>Pr(m,e.edges),s=({id:m,type:v,nodeId:d})=>{var p;const w=m?`-${v}-${m}`:`-${v}`;return Array.from(((p=e.connectionLookup.get(`${d}${w}`))==null?void 0:p.values())??[])},u=m=>{if(m)return t.value.get(m)},c=m=>{if(m)return n.value.get(m)},f=(m,v,d)=>{var p,w;const P=[];for(const R of m){const F={id:R.id,type:"position",dragging:d,from:R.from};if(v&&(F.position=R.position,R.parentNode)){const Q=u(R.parentNode);F.position={x:F.position.x-(((p=Q==null?void 0:Q.computedPosition)==null?void 0:p.x)??0),y:F.position.y-(((w=Q==null?void 0:Q.computedPosition)==null?void 0:w.y)??0)}}P.push(F)}P!=null&&P.length&&e.hooks.nodesChange.trigger(P)},h=m=>{if(!e.vueFlowRef)return;const v=e.vueFlowRef.querySelector(".vue-flow__transformationpane");if(!v)return;const d=window.getComputedStyle(v),{m22:p}=new window.DOMMatrixReadOnly(d.transform),w=[];for(const P of m){const R=P,F=u(R.id);if(F){const Q=An(R.nodeElement);if(!!(Q.width&&Q.height&&(F.dimensions.width!==Q.width||F.dimensions.height!==Q.height||R.forceUpdate))){const ge=R.nodeElement.getBoundingClientRect();F.dimensions=Q,F.handleBounds.source=Ei("source",R.nodeElement,ge,p,F.id),F.handleBounds.target=Ei("target",R.nodeElement,ge,p,F.id),w.push({id:F.id,type:"dimensions",dimensions:Q})}}}!e.fitViewOnInitDone&&e.fitViewOnInit&&o.value.fitView().then(()=>{e.fitViewOnInitDone=!0}),w.length&&e.hooks.nodesChange.trigger(w)},g=(m,v)=>{const d=new Set,p=new Set;for(const R of m)pt(R)?d.add(R.id):ut(R)&&p.add(R.id);const w=rt(t.value,d,!0),P=rt(n.value,p);if(e.multiSelectionActive){for(const R of d)w.push(it(R,v));for(const R of p)P.push(it(R,v))}w.length&&e.hooks.nodesChange.trigger(w),P.length&&e.hooks.edgesChange.trigger(P)},y=m=>{if(e.multiSelectionActive){const v=m.map(d=>it(d.id,!0));e.hooks.nodesChange.trigger(v);return}e.hooks.nodesChange.trigger(rt(t.value,new Set(m.map(v=>v.id)),!0)),e.hooks.edgesChange.trigger(rt(n.value))},b=m=>{if(e.multiSelectionActive){const v=m.map(d=>it(d.id,!0));e.hooks.edgesChange.trigger(v);return}e.hooks.edgesChange.trigger(rt(n.value,new Set(m.map(v=>v.id)))),e.hooks.nodesChange.trigger(rt(t.value,new Set,!0))},N=m=>{g(m,!0)},S=m=>{const d=(m||e.nodes).map(p=>(p.selected=!1,it(p.id,!1)));e.hooks.nodesChange.trigger(d)},$=m=>{const d=(m||e.edges).map(p=>(p.selected=!1,it(p.id,!1)));e.hooks.edgesChange.trigger(d)},_=m=>{if(!m||!m.length)return g([],!1);const v=m.reduce((d,p)=>{const w=it(p.id,!1);return pt(p)?d.nodes.push(w):d.edges.push(w),d},{nodes:[],edges:[]});v.nodes.length&&e.hooks.nodesChange.trigger(v.nodes),v.edges.length&&e.hooks.edgesChange.trigger(v.edges)},C=m=>{var v;(v=e.d3Zoom)==null||v.scaleExtent([m,e.maxZoom]),e.minZoom=m},B=m=>{var v;(v=e.d3Zoom)==null||v.scaleExtent([e.minZoom,m]),e.maxZoom=m},G=m=>{var v;(v=e.d3Zoom)==null||v.translateExtent(m),e.translateExtent=m},X=m=>{e.nodeExtent=m,i()},Y=m=>{var v;(v=e.d3Zoom)==null||v.clickDistance(m)},oe=m=>{e.nodesDraggable=m,e.nodesConnectable=m,e.elementsSelectable=m},K=m=>{const v=m instanceof Function?m(e.nodes):m;!e.initialized&&!v.length||(e.nodes=Si(v,u,e.hooks.error.trigger))},A=m=>{const v=m instanceof Function?m(e.edges):m;if(!e.initialized&&!v.length)return;const d=jn(v,e.isValidConnection,u,c,e.hooks.error.trigger,e.defaultEdgeOptions,e.nodes,e.edges);qn(e.connectionLookup,n.value,d),e.edges=d},k=m=>{const v=m instanceof Function?m([...e.nodes,...e.edges]):m;!e.initialized&&!v.length||(K(v.filter(pt)),A(v.filter(ut)))},ee=m=>{let v=m instanceof Function?m(e.nodes):m;v=Array.isArray(v)?v:[v];const d=Si(v,u,e.hooks.error.trigger),p=[];for(const w of d)p.push(gi(w));p.length&&e.hooks.nodesChange.trigger(p)},x=m=>{let v=m instanceof Function?m(e.edges):m;v=Array.isArray(v)?v:[v];const d=jn(v,e.isValidConnection,u,c,e.hooks.error.trigger,e.defaultEdgeOptions,e.nodes,e.edges),p=[];for(const w of d)p.push(gi(w));p.length&&e.hooks.edgesChange.trigger(p)},I=(m,v=!0,d=!1)=>{const p=m instanceof Function?m(e.nodes):m,w=Array.isArray(p)?p:[p],P=[],R=[];function F(re){const ge=l(re);for(const be of ge)(!Ce(be.deletable)||be.deletable)&&R.push(mi(be.id,be.source,be.target,be.sourceHandle,be.targetHandle))}function Q(re){const ge=[];for(const be of e.nodes)be.parentNode===re&&ge.push(be);if(ge.length){for(const be of ge)P.push(pi(be.id));v&&F(ge);for(const be of ge)Q(be.id)}}for(const re of w){const ge=typeof re=="string"?u(re):re;ge&&(Ce(ge.deletable)&&!ge.deletable||(P.push(pi(ge.id)),v&&F([ge]),d&&Q(ge.id)))}R.length&&e.hooks.edgesChange.trigger(R),P.length&&e.hooks.nodesChange.trigger(P)},E=m=>{const v=m instanceof Function?m(e.edges):m,d=Array.isArray(v)?v:[v],p=[];for(const w of d){const P=typeof w=="string"?c(w):w;P&&(Ce(P.deletable)&&!P.deletable||p.push(mi(typeof w=="string"?w:w.id,P.source,P.target,P.sourceHandle,P.targetHandle)))}e.hooks.edgesChange.trigger(p)},M=(m,v,d=!0)=>{const p=c(m.id);if(!p)return!1;const w=e.edges.indexOf(p),P=xd(m,v,p,d,e.hooks.error.trigger);if(P){const[R]=jn([P],e.isValidConnection,u,c,e.hooks.error.trigger,e.defaultEdgeOptions,e.nodes,e.edges);return e.edges=e.edges.map((F,Q)=>Q===w?R:F),qn(e.connectionLookup,n.value,[R]),R}return!1},T=(m,v,d={replace:!1})=>{const p=c(m);if(!p)return;const w=typeof v=="function"?v(p):v;p.data=d.replace?w:{...p.data,...w}},V=m=>vi(m,e.nodes),H=m=>{const v=vi(m,e.edges);return qn(e.connectionLookup,n.value,v),v},U=(m,v,d={replace:!1})=>{const p=u(m);if(!p)return;const w=typeof v=="function"?v(p):v;d.replace?e.nodes.splice(e.nodes.indexOf(p),1,w):Object.assign(p,w)},ie=(m,v,d={replace:!1})=>{const p=u(m);if(!p)return;const w=typeof v=="function"?v(p):v;p.data=d.replace?w:{...p.data,...w}},le=(m,v,d=!1)=>{d?e.connectionClickStartHandle=m:e.connectionStartHandle=m,e.connectionEndHandle=null,e.connectionStatus=null,v&&(e.connectionPosition=v)},he=(m,v=null,d=null)=>{e.connectionStartHandle&&(e.connectionPosition=m,e.connectionEndHandle=v,e.connectionStatus=d)},q=(m,v)=>{e.connectionPosition={x:Number.NaN,y:Number.NaN},e.connectionEndHandle=null,e.connectionStatus=null,v?e.connectionClickStartHandle=null:e.connectionStartHandle=null},j=m=>{const v=qc(m),d=v?null:Vt(m)?m:u(m.id);return!v&&!d?[null,null,v]:[v?m:Sn(d),d,v]},L=(m,v=!0,d=e.nodes)=>{const[p,w,P]=j(m);if(!p)return[];const R=[];for(const F of d||e.nodes){if(!P&&(F.id===w.id||!F.computedPosition))continue;const Q=Sn(F),re=Nn(Q,p);(v&&re>0||re>=Q.width*Q.height||re>=Number(p.width)*Number(p.height))&&R.push(F)}return R},ce=(m,v,d=!0)=>{const[p]=j(m);if(!p)return!1;const w=Nn(p,v);return d&&w>0||w>=Number(p.width)*Number(p.height)},_e=m=>{const{viewport:v,dimensions:d,d3Zoom:p,d3Selection:w,translateExtent:P}=e;if(!p||!w||!m.x&&!m.y)return!1;const R=Mt.translate(v.x+m.x,v.y+m.y).scale(v.zoom),F=[[0,0],[d.width,d.height]],Q=p.constrain()(R,F,P),re=e.viewport.x!==Q.x||e.viewport.y!==Q.y||e.viewport.zoom!==Q.k;return p.transform(w,Q),re},de=m=>{const v=m instanceof Function?m(e):m,d=["d3Zoom","d3Selection","d3ZoomHandler","viewportRef","vueFlowRef","dimensions","hooks"];Ce(v.defaultEdgeOptions)&&(e.defaultEdgeOptions=v.defaultEdgeOptions);const p=v.modelValue||v.nodes||v.edges?[]:void 0;p&&(v.modelValue&&p.push(...v.modelValue),v.nodes&&p.push(...v.nodes),v.edges&&p.push(...v.edges),k(p));const w=()=>{Ce(v.maxZoom)&&B(v.maxZoom),Ce(v.minZoom)&&C(v.minZoom),Ce(v.translateExtent)&&G(v.translateExtent)};for(const P of Object.keys(v)){const R=P,F=v[R];![...Vd,...d].includes(R)&&Ce(F)&&(e[R]=F)}eo(()=>e.d3Zoom).not.toBeNull().then(w),e.initialized||(e.initialized=!0)};return{updateNodePositions:f,updateNodeDimensions:h,setElements:k,setNodes:K,setEdges:A,addNodes:ee,addEdges:x,removeNodes:I,removeEdges:E,findNode:u,findEdge:c,updateEdge:M,updateEdgeData:T,updateNode:U,updateNodeData:ie,applyEdgeChanges:H,applyNodeChanges:V,addSelectedElements:N,addSelectedNodes:y,addSelectedEdges:b,setMinZoom:C,setMaxZoom:B,setTranslateExtent:G,setNodeExtent:X,setPaneClickDistance:Y,removeSelectedElements:_,removeSelectedNodes:S,removeSelectedEdges:$,startConnection:le,updateConnection:he,endConnection:q,setInteractive:oe,setState:de,getIntersectingNodes:L,getIncomers:a,getOutgoers:r,getConnectedEdges:l,getHandleConnections:s,isNodeIntersecting:ce,panBy:_e,fitView:m=>o.value.fitView(m),zoomIn:m=>o.value.zoomIn(m),zoomOut:m=>o.value.zoomOut(m),zoomTo:(m,v)=>o.value.zoomTo(m,v),setViewport:(m,v)=>o.value.setViewport(m,v),setTransform:(m,v)=>o.value.setTransform(m,v),getViewport:()=>o.value.getViewport(),getTransform:()=>o.value.getTransform(),setCenter:(m,v,d)=>o.value.setCenter(m,v,d),fitBounds:(m,v)=>o.value.fitBounds(m,v),project:m=>o.value.project(m),screenToFlowCoordinate:m=>o.value.screenToFlowCoordinate(m),flowToScreenCoordinate:m=>o.value.flowToScreenCoordinate(m),toObject:()=>{const m=[],v=[];for(const d of e.nodes){const{computedPosition:p,handleBounds:w,selected:P,dimensions:R,isParent:F,resizing:Q,dragging:re,events:ge,...be}=d;m.push(be)}for(const d of e.edges){const{selected:p,sourceNode:w,targetNode:P,events:R,...F}=d;v.push(F)}return JSON.parse(JSON.stringify({nodes:m,edges:v,position:[e.viewport.x,e.viewport.y],zoom:e.viewport.zoom,viewport:e.viewport}))},fromObject:m=>new Promise(v=>{const{nodes:d,edges:p,position:w,zoom:P,viewport:R}=m;d&&K(d),p&&A(p);const[F,Q]=R!=null&&R.x&&(R!=null&&R.y)?[R.x,R.y]:w??[null,null];if(F&&Q){const re=(R==null?void 0:R.zoom)||P||e.viewport.zoom;return eo(()=>o.value.viewportInitialized).toBe(!0).then(()=>{o.value.setViewport({x:F,y:Q,zoom:re}).then(()=>{v(!0)})})}else v(!0)}),updateNodeInternals:i,viewportHelper:o,$reset:()=>{const m=Wr();if(e.edges=[],e.nodes=[],e.d3Zoom&&e.d3Selection){const v=Mt.translate(m.defaultViewport.x??0,m.defaultViewport.y??0).scale(wt(m.defaultViewport.zoom??1,m.minZoom,m.maxZoom)),d=e.viewportRef.getBoundingClientRect(),p=[[0,0],[d.width,d.height]],w=e.d3Zoom.constrain()(v,p,m.translateExtent);e.d3Zoom.transform(e.d3Selection,w)}de(m)},$destroy:()=>{}}}const Rd=["data-id","data-handleid","data-nodeid","data-handlepos"],Ld={name:"Handle",compatConfig:{MODE:3}},Te=we({...Ld,props:{id:{default:null},type:{},position:{default:()=>Z.Top},isValidConnection:{type:Function},connectable:{type:[Boolean,Number,String,Function],default:void 0},connectableStart:{type:Boolean,default:!0},connectableEnd:{type:Boolean,default:!0}},setup(e,{expose:t}){const n=oa(e,["position","connectable","connectableStart","connectableEnd","id"]),o=Se(()=>n.type??"source"),i=Se(()=>n.isValidConnection??null),{id:a,connectionStartHandle:r,connectionClickStartHandle:l,connectionEndHandle:s,vueFlowRef:u,nodesConnectable:c,noDragClassName:f,noPanClassName:h}=ke(),{id:g,node:y,nodeEl:b,connectedEdges:N}=Yr(),S=me(),$=Se(()=>typeof e.connectableStart<"u"?e.connectableStart:!0),_=Se(()=>typeof e.connectableEnd<"u"?e.connectableEnd:!0),C=Se(()=>{var A,k,ee,x,I,E;return((A=r.value)==null?void 0:A.nodeId)===g&&((k=r.value)==null?void 0:k.id)===e.id&&((ee=r.value)==null?void 0:ee.type)===o.value||((x=s.value)==null?void 0:x.nodeId)===g&&((I=s.value)==null?void 0:I.id)===e.id&&((E=s.value)==null?void 0:E.type)===o.value}),B=Se(()=>{var A,k,ee;return((A=l.value)==null?void 0:A.nodeId)===g&&((k=l.value)==null?void 0:k.id)===e.id&&((ee=l.value)==null?void 0:ee.type)===o.value}),{handlePointerDown:G,handleClick:X}=Fr({nodeId:g,handleId:e.id,isValidConnection:i,type:o}),Y=te(()=>typeof e.connectable=="string"&&e.connectable==="single"?!N.value.some(A=>{const k=A[`${o.value}Handle`];return A[o.value]!==g?!1:k?k===e.id:!0}):typeof e.connectable=="number"?N.value.filter(A=>{const k=A[`${o.value}Handle`];return A[o.value]!==g?!1:k?k===e.id:!0}).length{var A;if(!y.dimensions.width||!y.dimensions.height)return;const k=(A=y.handleBounds[o.value])==null?void 0:A.find(V=>V.id===e.id);if(!u.value||k)return;const ee=u.value.querySelector(".vue-flow__transformationpane");if(!b.value||!S.value||!ee||!e.id)return;const x=b.value.getBoundingClientRect(),I=S.value.getBoundingClientRect(),E=window.getComputedStyle(ee),{m22:M}=new window.DOMMatrixReadOnly(E.transform),T={id:e.id,position:e.position,x:(I.left-x.left)/M,y:(I.top-x.top)/M,type:o.value,nodeId:g,...An(S.value)};y.handleBounds[o.value]=[...y.handleBounds[o.value]??[],T]});function oe(A){const k=To(A);Y.value&&$.value&&(k&&A.button===0||!k)&&G(A)}function K(A){!g||!l.value&&!$.value||Y.value&&X(A)}return t({handleClick:X,handlePointerDown:G,onClick:K,onPointerDown:oe}),(A,k)=>(O(),J("div",{ref_key:"handle",ref:S,"data-id":`${D(a)}-${D(g)}-${e.id}-${o.value}`,"data-handleid":e.id,"data-nodeid":D(g),"data-handlepos":A.position,class:Xe(["vue-flow__handle",[`vue-flow__handle-${A.position}`,`vue-flow__handle-${e.id}`,D(f),D(h),o.value,{connectable:Y.value,connecting:B.value,connectablestart:$.value,connectableend:_.value,connectionindicator:Y.value&&($.value&&!C.value||_.value&&C.value)}]]),onMousedown:oe,onTouchstartPassive:oe,onClick:K},[$e(A.$slots,"default",{id:A.id})],42,Rd))}}),Vn=function({sourcePosition:e=Z.Bottom,targetPosition:t=Z.Top,label:n,connectable:o=!0,isValidTargetPos:i,isValidSourcePos:a,data:r}){const l=r.label??n;return[xe(Te,{type:"target",position:t,connectable:o,isValidConnection:i}),typeof l!="string"&&l?xe(l):xe(De,[l]),xe(Te,{type:"source",position:e,connectable:o,isValidConnection:a})]};Vn.props=["sourcePosition","targetPosition","label","isValidTargetPos","isValidSourcePos","connectable","data"];Vn.inheritAttrs=!1;Vn.compatConfig={MODE:3};const Fd=Vn,Hn=function({targetPosition:e=Z.Top,label:t,connectable:n=!0,isValidTargetPos:o,data:i}){const a=i.label??t;return[xe(Te,{type:"target",position:e,connectable:n,isValidConnection:o}),typeof a!="string"&&a?xe(a):xe(De,[a])]};Hn.props=["targetPosition","label","isValidTargetPos","connectable","data"];Hn.inheritAttrs=!1;Hn.compatConfig={MODE:3};const Yd=Hn,Rn=function({sourcePosition:e=Z.Bottom,label:t,connectable:n=!0,isValidSourcePos:o,data:i}){const a=i.label??t;return[typeof a!="string"&&a?xe(a):xe(De,[a]),xe(Te,{type:"source",position:e,connectable:n,isValidConnection:o})]};Rn.props=["sourcePosition","label","isValidSourcePos","connectable","data"];Rn.inheritAttrs=!1;Rn.compatConfig={MODE:3};const Gd=Rn,Wd=["transform"],Xd=["width","height","x","y","rx","ry"],Ud=["y"],Zd={name:"EdgeText",compatConfig:{MODE:3}},Kd=we({...Zd,props:{x:{},y:{},label:{},labelStyle:{default:()=>({})},labelShowBg:{type:Boolean,default:!0},labelBgStyle:{default:()=>({})},labelBgPadding:{default:()=>[2,4]},labelBgBorderRadius:{default:2}},setup(e){const t=me({x:0,y:0,width:0,height:0}),n=me(null),o=te(()=>`translate(${e.x-t.value.width/2} ${e.y-t.value.height/2})`);Ue(i),Ee([()=>e.x,()=>e.y,n,()=>e.label],i);function i(){if(!n.value)return;const a=n.value.getBBox();(a.width!==t.value.width||a.height!==t.value.height)&&(t.value=a)}return(a,r)=>(O(),J("g",{transform:o.value,class:"vue-flow__edge-textwrapper"},[a.labelShowBg?(O(),J("rect",{key:0,class:"vue-flow__edge-textbg",width:`${t.value.width+2*a.labelBgPadding[0]}px`,height:`${t.value.height+2*a.labelBgPadding[1]}px`,x:-a.labelBgPadding[0],y:-a.labelBgPadding[1],style:He(a.labelBgStyle),rx:a.labelBgBorderRadius,ry:a.labelBgBorderRadius},null,12,Xd)):fe("",!0),ne("text",Vi(a.$attrs,{ref_key:"el",ref:n,class:"vue-flow__edge-text",y:t.value.height/2,dy:"0.3em",style:a.labelStyle}),[$e(a.$slots,"default",{},()=>[typeof a.label!="string"?(O(),ve(dt(a.label),{key:0})):(O(),J(De,{key:1},[Oe(Ne(a.label),1)],64))])],16,Ud)],8,Wd))}}),qd=["id","d","marker-end","marker-start"],jd=["d","stroke-width"],Jd={name:"BaseEdge",inheritAttrs:!1,compatConfig:{MODE:3}},Ln=we({...Jd,props:{id:{},labelX:{},labelY:{},path:{},label:{},markerStart:{},markerEnd:{},interactionWidth:{default:20},labelStyle:{},labelShowBg:{type:Boolean},labelBgStyle:{},labelBgPadding:{},labelBgBorderRadius:{}},setup(e,{expose:t}){const n=me(null),o=me(null),i=me(null),a=da();return t({pathEl:n,interactionEl:o,labelEl:i}),(r,l)=>(O(),J(De,null,[ne("path",Vi(D(a),{id:r.id,ref_key:"pathEl",ref:n,d:r.path,class:"vue-flow__edge-path","marker-end":r.markerEnd,"marker-start":r.markerStart}),null,16,qd),r.interactionWidth?(O(),J("path",{key:0,ref_key:"interactionEl",ref:o,fill:"none",d:r.path,"stroke-width":r.interactionWidth,"stroke-opacity":0,class:"vue-flow__edge-interaction"},null,8,jd)):fe("",!0),r.label&&r.labelX&&r.labelY?(O(),ve(Kd,{key:1,ref_key:"labelEl",ref:i,x:r.labelX,y:r.labelY,label:r.label,"label-show-bg":r.labelShowBg,"label-bg-style":r.labelBgStyle,"label-bg-padding":r.labelBgPadding,"label-bg-border-radius":r.labelBgBorderRadius,"label-style":r.labelStyle},null,8,["x","y","label","label-show-bg","label-bg-style","label-bg-padding","label-bg-border-radius","label-style"])):fe("",!0)],64))}});function Xr({sourceX:e,sourceY:t,targetX:n,targetY:o}){const i=Math.abs(n-e)/2,a=n=0?.5*e:t*25*Math.sqrt(-e)}function Ci({pos:e,x1:t,y1:n,x2:o,y2:i,c:a}){let r,l;switch(e){case Z.Left:r=t-un(t-o,a),l=n;break;case Z.Right:r=t+un(o-t,a),l=n;break;case Z.Top:r=t,l=n-un(n-i,a);break;case Z.Bottom:r=t,l=n+un(i-n,a);break}return[r,l]}function Zr(e){const{sourceX:t,sourceY:n,sourcePosition:o=Z.Bottom,targetX:i,targetY:a,targetPosition:r=Z.Top,curvature:l=.25}=e,[s,u]=Ci({pos:o,x1:t,y1:n,x2:i,y2:a,c:l}),[c,f]=Ci({pos:r,x1:i,y1:a,x2:t,y2:n,c:l}),[h,g,y,b]=Ur({sourceX:t,sourceY:n,targetX:i,targetY:a,sourceControlX:s,sourceControlY:u,targetControlX:c,targetControlY:f});return[`M${t},${n} C${s},${u} ${c},${f} ${i},${a}`,h,g,y,b]}function Mi({pos:e,x1:t,y1:n,x2:o,y2:i}){let a,r;switch(e){case Z.Left:case Z.Right:a=.5*(t+o),r=n;break;case Z.Top:case Z.Bottom:a=t,r=.5*(n+i);break}return[a,r]}function Kr(e){const{sourceX:t,sourceY:n,sourcePosition:o=Z.Bottom,targetX:i,targetY:a,targetPosition:r=Z.Top}=e,[l,s]=Mi({pos:o,x1:t,y1:n,x2:i,y2:a}),[u,c]=Mi({pos:r,x1:i,y1:a,x2:t,y2:n}),[f,h,g,y]=Ur({sourceX:t,sourceY:n,targetX:i,targetY:a,sourceControlX:l,sourceControlY:s,targetControlX:u,targetControlY:c});return[`M${t},${n} C${l},${s} ${u},${c} ${i},${a}`,f,h,g,y]}const Di={[Z.Left]:{x:-1,y:0},[Z.Right]:{x:1,y:0},[Z.Top]:{x:0,y:-1},[Z.Bottom]:{x:0,y:1}};function Qd({source:e,sourcePosition:t=Z.Bottom,target:n}){return t===Z.Left||t===Z.Right?e.xe[f]?-1:1)*x:S[f]=(u[f]>n[f]?-1:1)*x}}if(t!==o){const ee=f==="x"?"y":"x",x=r[f]===l[ee],I=s[ee]>u[ee],E=s[ee]=k?(y=(oe.x+K.x)/2,b=g[0].y):(y=g[0].x,b=(oe.y+K.y)/2)}return[[e,{x:s.x+N.x,y:s.y+N.y},...g,{x:u.x+S.x,y:u.y+S.y},n],y,b,C,B]}function tf(e,t,n,o){const i=Math.min(Ii(e,t)/2,Ii(t,n)/2,o),{x:a,y:r}=t;if(e.x===a&&a===n.x||e.y===r&&r===n.y)return`L${a} ${r}`;if(e.y===r){const u=e.x{let C;return _>0&&_{const[n,o,i]=nf(e);return xe(Ln,{path:n,labelX:o,labelY:i,...t,...e})}}}),rf=of,af=we({name:"SmoothStepEdge",props:["sourcePosition","targetPosition","label","labelStyle","labelShowBg","labelBgStyle","labelBgPadding","labelBgBorderRadius","sourceY","sourceX","targetX","targetY","borderRadius","markerEnd","markerStart","interactionWidth","offset"],compatConfig:{MODE:3},setup(e,{attrs:t}){return()=>{const[n,o,i]=vo({...e,sourcePosition:e.sourcePosition??Z.Bottom,targetPosition:e.targetPosition??Z.Top});return xe(Ln,{path:n,labelX:o,labelY:i,...t,...e})}}}),qr=af,lf=we({name:"StepEdge",props:["sourcePosition","targetPosition","label","labelStyle","labelShowBg","labelBgStyle","labelBgPadding","labelBgBorderRadius","sourceY","sourceX","targetX","targetY","markerEnd","markerStart","interactionWidth"],setup(e,{attrs:t}){return()=>xe(qr,{...e,...t,borderRadius:0})}}),sf=lf,uf=we({name:"BezierEdge",props:["sourcePosition","targetPosition","label","labelStyle","labelShowBg","labelBgStyle","labelBgPadding","labelBgBorderRadius","sourceY","sourceX","targetX","targetY","curvature","markerEnd","markerStart","interactionWidth"],compatConfig:{MODE:3},setup(e,{attrs:t}){return()=>{const[n,o,i]=Zr({...e,sourcePosition:e.sourcePosition??Z.Bottom,targetPosition:e.targetPosition??Z.Top});return xe(Ln,{path:n,labelX:o,labelY:i,...t,...e})}}}),cf=uf,df=we({name:"SimpleBezierEdge",props:["sourcePosition","targetPosition","label","labelStyle","labelShowBg","labelBgStyle","labelBgPadding","labelBgBorderRadius","sourceY","sourceX","targetX","targetY","markerEnd","markerStart","interactionWidth"],compatConfig:{MODE:3},setup(e,{attrs:t}){return()=>{const[n,o,i]=Kr({...e,sourcePosition:e.sourcePosition??Z.Bottom,targetPosition:e.targetPosition??Z.Top});return xe(Ln,{path:n,labelX:o,labelY:i,...t,...e})}}}),ff=df,hf={input:Gd,default:Fd,output:Yd},vf={default:cf,straight:rf,step:sf,smoothstep:qr,simplebezier:ff};function gf(e,t,n){const o=te(()=>b=>t.value.get(b)),i=te(()=>b=>n.value.get(b)),a=te(()=>{const b={...vf,...e.edgeTypes},N=Object.keys(b);for(const S of e.edges)S.type&&!N.includes(S.type)&&(b[S.type]=S.type);return b}),r=te(()=>{const b={...hf,...e.nodeTypes},N=Object.keys(b);for(const S of e.nodes)S.type&&!N.includes(S.type)&&(b[S.type]=S.type);return b}),l=te(()=>e.onlyRenderVisibleElements?Ir(e.nodes,{x:0,y:0,width:e.dimensions.width,height:e.dimensions.height},e.viewport,!0):e.nodes),s=te(()=>{if(e.onlyRenderVisibleElements){const b=[];for(const N of e.edges){const S=t.value.get(N.source),$=t.value.get(N.target);cd({sourcePos:S.computedPosition||{x:0,y:0},targetPos:$.computedPosition||{x:0,y:0},sourceWidth:S.dimensions.width,sourceHeight:S.dimensions.height,targetWidth:$.dimensions.width,targetHeight:$.dimensions.height,width:e.dimensions.width,height:e.dimensions.height,viewport:e.viewport})&&b.push(N)}return b}return e.edges}),u=te(()=>[...l.value,...s.value]),c=te(()=>{const b=[];for(const N of e.nodes)N.selected&&b.push(N);return b}),f=te(()=>{const b=[];for(const N of e.edges)N.selected&&b.push(N);return b}),h=te(()=>[...c.value,...f.value]),g=te(()=>{const b=[];for(const N of e.nodes)N.dimensions.width&&N.dimensions.height&&N.handleBounds!==void 0&&b.push(N);return b}),y=te(()=>l.value.length>0&&g.value.length===l.value.length);return{getNode:o,getEdge:i,getElements:u,getEdgeTypes:a,getNodeTypes:r,getEdges:s,getNodes:l,getSelectedElements:h,getSelectedNodes:c,getSelectedEdges:f,getNodesInitialized:g,areNodesInitialized:y}}class ht{constructor(){this.currentId=0,this.flows=new Map}static getInstance(){var t;const n=(t=Pt())==null?void 0:t.appContext.app,o=(n==null?void 0:n.config.globalProperties.$vueFlowStorage)??ht.instance;return ht.instance=o??new ht,n&&(n.config.globalProperties.$vueFlowStorage=ht.instance),ht.instance}set(t,n){return this.flows.set(t,n)}get(t){return this.flows.get(t)}remove(t){return this.flows.delete(t)}create(t,n){const o=Wr(),i=la(o),a={};for(const[h,g]of Object.entries(i.hooks)){const y=`on${h.charAt(0).toUpperCase()+h.slice(1)}`;a[y]=g.on}const r={};for(const[h,g]of Object.entries(i.hooks))r[h]=g.trigger;const l=te(()=>{const h=new Map;for(const g of i.nodes)h.set(g.id,g);return h}),s=te(()=>{const h=new Map;for(const g of i.edges)h.set(g.id,g);return h}),u=gf(i,l,s),c=Hd(i,l,s);c.setState({...i,...n});const f={...a,...u,...c,...rl(i),nodeLookup:l,edgeLookup:s,emits:r,id:t,vueFlowVersion:"1.48.2",$destroy:()=>{this.remove(t)}};return this.set(t,f),f}getId(){return`vue-flow-${this.currentId++}`}}function ke(e){const t=ht.getInstance(),n=zi(),o=typeof e=="object",i=o?e:{id:e},a=i.id,r=a??(n==null?void 0:n.vueFlowId);let l;if(n){const s=It($i,null);typeof s<"u"&&s!==null&&(!r||s.id===r)&&(l=s)}if(l||r&&(l=t.get(r)),!l||r&&l.id!==r){const s=a??t.getId(),u=t.create(s,i);l=u,(n??Ti(!0)).run(()=>{Ee(u.applyDefault,(f,h,g)=>{const y=N=>{u.applyNodeChanges(N)},b=N=>{u.applyEdgeChanges(N)};f?(u.onNodesChange(y),u.onEdgesChange(b)):(u.hooks.value.nodesChange.off(y),u.hooks.value.edgesChange.off(b)),g(()=>{u.hooks.value.nodesChange.off(y),u.hooks.value.edgesChange.off(b)})},{immediate:!0}),Ft(()=>{if(l){const f=t.get(l.id);f?f.$destroy():Qt(`No store instance found for id ${l.id} in storage.`)}})})}else o&&l.setState(i);if(n&&(kt($i,l),n.vueFlowId=l.id),o){const s=Pt();(s==null?void 0:s.type.name)!=="VueFlow"&&l.emits.error(new Ie(Me.USEVUEFLOW_OPTIONS))}return l}function pf(e){const{emits:t,dimensions:n}=ke();let o;Ue(()=>{const i=()=>{var a,r;if(!e.value||!(((r=(a=e.value).checkVisibility)==null?void 0:r.call(a))??!0))return;const l=An(e.value);(l.width===0||l.height===0)&&t.error(new Ie(Me.MISSING_VIEWPORT_DIMENSIONS)),n.value={width:l.width||500,height:l.height||500}};i(),window.addEventListener("resize",i),e.value&&(o=new ResizeObserver(()=>i()),o.observe(e.value)),Ai(()=>{window.removeEventListener("resize",i),o&&e.value&&o.unobserve(e.value)})})}const mf={name:"UserSelection",compatConfig:{MODE:3}},yf=we({...mf,props:{userSelectionRect:{}},setup(e){return(t,n)=>(O(),J("div",{class:"vue-flow__selection vue-flow__container",style:He({width:`${t.userSelectionRect.width}px`,height:`${t.userSelectionRect.height}px`,transform:`translate(${t.userSelectionRect.x}px, ${t.userSelectionRect.y}px)`})},null,4))}}),wf=["tabIndex"],_f={name:"NodesSelection",compatConfig:{MODE:3}},bf=we({..._f,setup(e){const{emits:t,viewport:n,getSelectedNodes:o,noPanClassName:i,disableKeyboardA11y:a,userSelectionActive:r}=ke(),l=Gr(),s=me(null),u=Lr({el:s,onStart(y){t.selectionDragStart(y),t.nodeDragStart(y)},onDrag(y){t.selectionDrag(y),t.nodeDrag(y)},onStop(y){t.selectionDragStop(y),t.nodeDragStop(y)}});Ue(()=>{var y;a.value||(y=s.value)==null||y.focus({preventScroll:!0})});const c=te(()=>Dr(o.value)),f=te(()=>({width:`${c.value.width}px`,height:`${c.value.height}px`,top:`${c.value.y}px`,left:`${c.value.x}px`}));function h(y){t.selectionContextMenu({event:y,nodes:o.value})}function g(y){a.value||Nt[y.key]&&(y.preventDefault(),l({x:Nt[y.key].x,y:Nt[y.key].y},y.shiftKey))}return(y,b)=>!D(r)&&c.value.width&&c.value.height?(O(),J("div",{key:0,class:Xe(["vue-flow__nodesselection vue-flow__container",D(i)]),style:He({transform:`translate(${D(n).x}px,${D(n).y}px) scale(${D(n).zoom})`})},[ne("div",{ref_key:"el",ref:s,class:Xe([{dragging:D(u)},"vue-flow__nodesselection-rect"]),style:He(f.value),tabIndex:D(a)?void 0:-1,onContextmenu:h,onKeydown:g},null,46,wf)],6)):fe("",!0)}});function xf(e,t){return{x:e.clientX-t.left,y:e.clientY-t.top}}const Ef={name:"Pane",compatConfig:{MODE:3}},Sf=we({...Ef,props:{isSelecting:{type:Boolean},selectionKeyPressed:{type:Boolean}},setup(e){const{vueFlowRef:t,nodes:n,viewport:o,emits:i,userSelectionActive:a,removeSelectedElements:r,userSelectionRect:l,elementsSelectable:s,nodesSelectionActive:u,getSelectedEdges:c,getSelectedNodes:f,removeNodes:h,removeEdges:g,selectionMode:y,deleteKeyCode:b,multiSelectionKeyCode:N,multiSelectionActive:S,edgeLookup:$,nodeLookup:_,connectionLookup:C,defaultEdgeOptions:B,connectionStartHandle:G,panOnDrag:X}=ke(),Y=at(null),oe=at(new Set),K=at(new Set),A=at(null),k=Se(()=>s.value&&(e.isSelecting||a.value)),ee=Se(()=>G.value!==null);let x=!1,I=!1;const E=Lt(b,{actInsideInputWithModifier:!1}),M=Lt(N);Ee(E,q=>{q&&(h(f.value),g(c.value),u.value=!1)}),Ee(M,q=>{S.value=q});function T(q,j){return L=>{L.target===j&&(q==null||q(L))}}function V(q){if(x||ee.value){x=!1;return}i.paneClick(q),r(),u.value=!1}function H(q){var j;if(Array.isArray(X.value)&&((j=X.value)!=null&&j.includes(2))){q.preventDefault();return}i.paneContextMenu(q)}function U(q){i.paneScroll(q)}function ie(q){var j,L,ce;if(A.value=((j=t.value)==null?void 0:j.getBoundingClientRect())??null,!s.value||!e.isSelecting||q.button!==0||q.target!==Y.value||!A.value)return;(ce=(L=q.target)==null?void 0:L.setPointerCapture)==null||ce.call(L,q.pointerId);const{x:_e,y:de}=xf(q,A.value);I=!0,x=!1,r(),l.value={width:0,height:0,startX:_e,startY:de,x:_e,y:de},i.selectionStart(q)}function le(q){var j;if(!A.value||!l.value)return;x=!0;const{x:L,y:ce}=Ge(q,A.value),{startX:_e=0,startY:de=0}=l.value,ye={startX:_e,startY:de,x:L<_e?L:_e,y:cev.id)),K.value=new Set;const m=((j=B.value)==null?void 0:j.selectable)??!0;for(const v of oe.value){const d=C.value.get(v);if(d)for(const{edgeId:p}of d.values()){const w=$.value.get(p);w&&(w.selectable??m)&&K.value.add(p)}}if(!ki(ae,oe.value)){const v=rt(_.value,oe.value,!0);i.nodesChange(v)}if(!ki(se,K.value)){const v=rt($.value,K.value);i.edgesChange(v)}l.value=ye,a.value=!0,u.value=!1}function he(q){var j;q.button!==0||!I||((j=q.target)==null||j.releasePointerCapture(q.pointerId),!a.value&&l.value&&q.target===Y.value&&V(q),a.value=!1,l.value=null,u.value=oe.value.size>0,i.selectionEnd(q),e.selectionKeyPressed&&(x=!1),I=!1)}return(q,j)=>(O(),J("div",{ref_key:"container",ref:Y,class:Xe(["vue-flow__pane vue-flow__container",{selection:q.isSelecting}]),onClick:j[0]||(j[0]=L=>k.value?void 0:T(V,Y.value)(L)),onContextmenu:j[1]||(j[1]=L=>T(H,Y.value)(L)),onWheelPassive:j[2]||(j[2]=L=>T(U,Y.value)(L)),onPointerenter:j[3]||(j[3]=L=>k.value?void 0:D(i).paneMouseEnter(L)),onPointerdown:j[4]||(j[4]=L=>k.value?ie(L):D(i).paneMouseMove(L)),onPointermove:j[5]||(j[5]=L=>k.value?le(L):D(i).paneMouseMove(L)),onPointerup:j[6]||(j[6]=L=>k.value?he(L):void 0),onPointerleave:j[7]||(j[7]=L=>D(i).paneMouseLeave(L))},[$e(q.$slots,"default"),D(a)&&D(l)?(O(),ve(yf,{key:0,"user-selection-rect":D(l)},null,8,["user-selection-rect"])):fe("",!0),D(u)&&D(f).length?(O(),ve(bf,{key:1})):fe("",!0)],34))}}),Nf={name:"Transform",compatConfig:{MODE:3}},kf=we({...Nf,setup(e){const{viewport:t,fitViewOnInit:n,fitViewOnInitDone:o}=ke(),i=te(()=>n.value?!o.value:!1),a=te(()=>`translate(${t.value.x}px,${t.value.y}px) scale(${t.value.zoom})`);return(r,l)=>(O(),J("div",{class:"vue-flow__transformationpane vue-flow__container",style:He({transform:a.value,opacity:i.value?0:void 0})},[$e(r.$slots,"default")],4))}}),$f={name:"Viewport",compatConfig:{MODE:3}},Cf=we({...$f,setup(e){const{minZoom:t,maxZoom:n,defaultViewport:o,translateExtent:i,zoomActivationKeyCode:a,selectionKeyCode:r,panActivationKeyCode:l,panOnScroll:s,panOnScrollMode:u,panOnScrollSpeed:c,panOnDrag:f,zoomOnDoubleClick:h,zoomOnPinch:g,zoomOnScroll:y,preventScrolling:b,noWheelClassName:N,noPanClassName:S,emits:$,connectionStartHandle:_,userSelectionActive:C,paneDragging:B,d3Zoom:G,d3Selection:X,d3ZoomHandler:Y,viewport:oe,viewportRef:K,paneClickDistance:A}=ke();pf(K);const k=at(!1),ee=at(!1);let x=null,I=!1,E=0,M={x:0,y:0,zoom:0};const T=Lt(l),V=Lt(r),H=Lt(a),U=Se(()=>(!V.value||V.value&&r.value===!0)&&(T.value||f.value)),ie=Se(()=>T.value||s.value),le=Se(()=>r.value===!0&&U.value!==!0),he=Se(()=>V.value&&r.value!==!0||C.value||le.value),q=Se(()=>_.value!==null);Ue(()=>{if(!K.value){Qt("Viewport element is missing");return}const de=K.value,ye=de.getBoundingClientRect(),ae=Yc().clickDistance(A.value).scaleExtent([t.value,n.value]).translateExtent(i.value),se=Be(de).call(ae),m=se.on("wheel.zoom"),v=Mt.translate(o.value.x??0,o.value.y??0).scale(wt(o.value.zoom??1,t.value,n.value)),d=[[0,0],[ye.width,ye.height]],p=ae.constrain()(v,d,i.value);ae.transform(se,p),ae.wheelDelta(fi),G.value=ae,X.value=se,Y.value=m,oe.value={x:p.x,y:p.y,zoom:p.k},ae.on("start",w=>{var P;if(!w.sourceEvent)return null;E=w.sourceEvent.button,k.value=!0;const R=ce(w.transform);((P=w.sourceEvent)==null?void 0:P.type)==="mousedown"&&(B.value=!0),M=R,$.viewportChangeStart(R),$.moveStart({event:w,flowTransform:R})}),ae.on("end",w=>{if(!w.sourceEvent)return null;if(k.value=!1,B.value=!1,j(U.value,E??0)&&!I&&$.paneContextMenu(w.sourceEvent),I=!1,L(M,w.transform)){const P=ce(w.transform);M=P,$.viewportChangeEnd(P),$.moveEnd({event:w,flowTransform:P})}}),ae.filter(w=>{var P;const R=H.value||y.value,F=g.value&&w.ctrlKey,Q=w.button,re=w.type==="wheel";if(Q===1&&w.type==="mousedown"&&(_e(w,"vue-flow__node")||_e(w,"vue-flow__edge")))return!0;if(!U.value&&!R&&!ie.value&&!h.value&&!g.value||C.value||q.value&&!re||!h.value&&w.type==="dblclick"||_e(w,N.value)&&re||_e(w,S.value)&&(!re||ie.value&&re&&!H.value)||!g.value&&w.ctrlKey&&re||!R&&!ie.value&&!F&&re)return!1;if(!g&&w.type==="touchstart"&&((P=w.touches)==null?void 0:P.length)>1)return w.preventDefault(),!1;if(!U.value&&(w.type==="mousedown"||w.type==="touchstart")||le.value&&Array.isArray(f.value)&&f.value.includes(0)&&Q===0||Array.isArray(f.value)&&!f.value.includes(Q)&&(w.type==="mousedown"||w.type==="touchstart"))return!1;const ge=Array.isArray(f.value)&&f.value.includes(Q)||r.value===!0&&Array.isArray(f.value)&&!f.value.includes(0)||!Q||Q<=1;return(!w.ctrlKey||T.value||re)&&ge}),Ee([C,U],()=>{C.value&&!k.value?ae.on("zoom",null):C.value||ae.on("zoom",w=>{oe.value={x:w.transform.x,y:w.transform.y,zoom:w.transform.k};const P=ce(w.transform);I=j(U.value,E??0),$.viewportChange(P),$.move({event:w,flowTransform:P})})},{immediate:!0}),Ee([C,ie,u,H,g,b,N],()=>{ie.value&&!H.value&&!C.value?se.on("wheel.zoom",w=>{if(_e(w,N.value))return!1;const P=H.value||y.value,R=g.value&&w.ctrlKey;if(!(!b.value||ie.value||P||R))return!1;w.preventDefault(),w.stopImmediatePropagation();const Q=se.property("__zoom").k||1,re=kn();if(!T.value&&w.ctrlKey&&g.value&&re){const Qr=Fe(w),ea=fi(w),ta=Q*2**ea;ae.scaleTo(se,ta,Qr,w);return}const ge=w.deltaMode===1?20:1;let be=u.value===Rt.Vertical?0:w.deltaX*ge,nt=u.value===Rt.Horizontal?0:w.deltaY*ge;!re&&w.shiftKey&&u.value!==Rt.Vertical&&!be&&nt&&(be=nt,nt=0),ae.translateBy(se,-(be/Q)*c.value,-(nt/Q)*c.value);const Le=ce(se.property("__zoom"));x&&clearTimeout(x),ee.value?($.move({event:w,flowTransform:Le}),$.viewportChange(Le),x=setTimeout(()=>{$.moveEnd({event:w,flowTransform:Le}),$.viewportChangeEnd(Le),ee.value=!1},150)):(ee.value=!0,$.moveStart({event:w,flowTransform:Le}),$.viewportChangeStart(Le))},{passive:!1}):typeof m<"u"&&se.on("wheel.zoom",function(w,P){const R=!b.value&&w.type==="wheel"&&!w.ctrlKey,F=H.value||y.value,Q=g.value&&w.ctrlKey;if(!F&&!s.value&&!Q&&w.type==="wheel"||R||_e(w,N.value))return null;w.preventDefault(),m.call(this,w,P)},{passive:!1})},{immediate:!0})});function j(de,ye){return ye===2&&Array.isArray(de)&&de.includes(2)}function L(de,ye){return de.x!==ye.x&&!Number.isNaN(ye.x)||de.y!==ye.y&&!Number.isNaN(ye.y)||de.zoom!==ye.k&&!Number.isNaN(ye.k)}function ce(de){return{x:de.x,y:de.y,zoom:de.k}}function _e(de,ye){return de.target.closest(`.${ye}`)}return(de,ye)=>(O(),J("div",{ref_key:"viewportRef",ref:K,class:"vue-flow__viewport vue-flow__container"},[z(Sf,{"is-selecting":he.value,"selection-key-pressed":D(V),class:Xe({connecting:q.value,dragging:D(B),draggable:D(f)===!0||Array.isArray(D(f))&&D(f).includes(0)})},{default:ue(()=>[z(kf,null,{default:ue(()=>[$e(de.$slots,"default")]),_:3})]),_:3},8,["is-selecting","selection-key-pressed","class"])],512))}}),Mf=["id"],Df=["id"],If=["id"],Pf={name:"A11yDescriptions",compatConfig:{MODE:3}},Of=we({...Pf,setup(e){const{id:t,disableKeyboardA11y:n,ariaLiveMessage:o}=ke();return(i,a)=>(O(),J(De,null,[ne("div",{id:`${D(xr)}-${D(t)}`,style:{display:"none"}}," Press enter or space to select a node. "+Ne(D(n)?"":"You can then use the arrow keys to move the node around.")+" You can then use the arrow keys to move the node around, press delete to remove it and press escape to cancel. ",9,Mf),ne("div",{id:`${D(Er)}-${D(t)}`,style:{display:"none"}}," Press enter or space to select an edge. You can then press delete to remove it or press escape to cancel. ",8,Df),D(n)?fe("",!0):(O(),J("div",{key:0,id:`${D(Kc)}-${D(t)}`,"aria-live":"assertive","aria-atomic":"true",style:{position:"absolute",width:"1px",height:"1px",margin:"-1px",border:"0",padding:"0",overflow:"hidden",clip:"rect(0px, 0px, 0px, 0px)","clip-path":"inset(100%)"}},Ne(D(o)),9,If))],64))}});function Tf(){const e=ke();Ee(()=>e.viewportHelper.value.viewportInitialized,t=>{t&&setTimeout(()=>{e.emits.init(e),e.emits.paneReady(e)},1)})}function Af(e,t,n){return n===Z.Left?e-t:n===Z.Right?e+t:e}function zf(e,t,n){return n===Z.Top?e-t:n===Z.Bottom?e+t:e}const Ao=function({radius:e=10,centerX:t=0,centerY:n=0,position:o=Z.Top,type:i}){return xe("circle",{class:`vue-flow__edgeupdater vue-flow__edgeupdater-${i}`,cx:Af(t,e,o),cy:zf(n,e,o),r:e,stroke:"transparent",fill:"transparent"})};Ao.props=["radius","centerX","centerY","position","type"];Ao.compatConfig={MODE:3};const Pi=Ao,Bf=we({name:"Edge",compatConfig:{MODE:3},props:["id"],setup(e){const{id:t,addSelectedEdges:n,connectionMode:o,edgeUpdaterRadius:i,emits:a,nodesSelectionActive:r,noPanClassName:l,getEdgeTypes:s,removeSelectedEdges:u,findEdge:c,findNode:f,isValidConnection:h,multiSelectionActive:g,disableKeyboardA11y:y,elementsSelectable:b,edgesUpdatable:N,edgesFocusable:S,hooks:$}=ke(),_=te(()=>c(e.id)),{emit:C,on:B}=kd(_.value,a),G=It(Bn),X=Pt(),Y=me(!1),oe=me(!1),K=me(""),A=me(null),k=me("source"),ee=me(null),x=Se(()=>typeof _.value.selectable>"u"?b.value:_.value.selectable),I=Se(()=>typeof _.value.updatable>"u"?N.value:_.value.updatable),E=Se(()=>typeof _.value.focusable>"u"?S.value:_.value.focusable);kt(Ed,e.id),kt(Sd,ee);const M=te(()=>_.value.class instanceof Function?_.value.class(_.value):_.value.class),T=te(()=>_.value.style instanceof Function?_.value.style(_.value):_.value.style),V=te(()=>{const v=_.value.type||"default",d=G==null?void 0:G[`edge-${v}`];if(d)return d;let p=_.value.template??s.value[v];if(typeof p=="string"&&X){const w=Object.keys(X.appContext.components);w&&w.includes(v)&&(p=Bi(v,!1))}return p&&typeof p!="string"?p:(a.error(new Ie(Me.EDGE_TYPE_MISSING,p)),!1)}),{handlePointerDown:H}=Fr({nodeId:K,handleId:A,type:k,isValidConnection:h,edgeUpdaterType:k,onEdgeUpdate:le,onEdgeUpdateEnd:he});return()=>{const v=f(_.value.source),d=f(_.value.target),p="pathOptions"in _.value?_.value.pathOptions:{};if(!v&&!d)return a.error(new Ie(Me.EDGE_SOURCE_TARGET_MISSING,_.value.id,_.value.source,_.value.target)),null;if(!v)return a.error(new Ie(Me.EDGE_SOURCE_MISSING,_.value.id,_.value.source)),null;if(!d)return a.error(new Ie(Me.EDGE_TARGET_MISSING,_.value.id,_.value.target)),null;if(!_.value||_.value.hidden||v.hidden||d.hidden)return null;let w;o.value===st.Strict?w=v.handleBounds.source:w=[...v.handleBounds.source||[],...v.handleBounds.target||[]];const P=_i(w,_.value.sourceHandle);let R;o.value===st.Strict?R=d.handleBounds.target:R=[...d.handleBounds.target||[],...d.handleBounds.source||[]];const F=_i(R,_.value.targetHandle),Q=(P==null?void 0:P.position)||Z.Bottom,re=(F==null?void 0:F.position)||Z.Top,{x:ge,y:be}=Dt(v,P,Q),{x:nt,y:Le}=Dt(d,F,re);return _.value.sourceX=ge,_.value.sourceY=be,_.value.targetX=nt,_.value.targetY=Le,xe("g",{ref:ee,key:e.id,"data-id":e.id,class:["vue-flow__edge",`vue-flow__edge-${V.value===!1?"default":_.value.type||"default"}`,l.value,M.value,{updating:Y.value,selected:_.value.selected,animated:_.value.animated,inactive:!x.value&&!$.value.edgeClick.hasListeners()}],tabIndex:E.value?0:void 0,"aria-label":_.value.ariaLabel===null?void 0:_.value.ariaLabel??`Edge from ${_.value.source} to ${_.value.target}`,"aria-describedby":E.value?`${Er}-${t}`:void 0,"aria-roledescription":"edge",role:E.value?"group":"img",..._.value.domAttributes,onClick:j,onContextmenu:L,onDblclick:ce,onMouseenter:_e,onMousemove:de,onMouseleave:ye,onKeyDown:E.value?m:void 0},[oe.value?null:xe(V.value===!1?s.value.default:V.value,{id:e.id,sourceNode:v,targetNode:d,source:_.value.source,target:_.value.target,type:_.value.type,updatable:I.value,selected:_.value.selected,animated:_.value.animated,label:_.value.label,labelStyle:_.value.labelStyle,labelShowBg:_.value.labelShowBg,labelBgStyle:_.value.labelBgStyle,labelBgPadding:_.value.labelBgPadding,labelBgBorderRadius:_.value.labelBgBorderRadius,data:_.value.data,events:{..._.value.events,...B},style:T.value,markerStart:`url('#${Kt(_.value.markerStart,t)}')`,markerEnd:`url('#${Kt(_.value.markerEnd,t)}')`,sourcePosition:Q,targetPosition:re,sourceX:ge,sourceY:be,targetX:nt,targetY:Le,sourceHandleId:_.value.sourceHandle,targetHandleId:_.value.targetHandle,interactionWidth:_.value.interactionWidth,...p}),[I.value==="source"||I.value===!0?[xe("g",{onMousedown:ae,onMouseenter:U,onMouseout:ie},xe(Pi,{position:Q,centerX:ge,centerY:be,radius:i.value,type:"source","data-type":"source"}))]:null,I.value==="target"||I.value===!0?[xe("g",{onMousedown:se,onMouseenter:U,onMouseout:ie},xe(Pi,{position:re,centerX:nt,centerY:Le,radius:i.value,type:"target","data-type":"target"}))]:null]])};function U(){Y.value=!0}function ie(){Y.value=!1}function le(v,d){C.update({event:v,edge:_.value,connection:d})}function he(v){C.updateEnd({event:v,edge:_.value}),oe.value=!1}function q(v,d){v.button===0&&(oe.value=!0,K.value=d?_.value.target:_.value.source,A.value=(d?_.value.targetHandle:_.value.sourceHandle)??null,k.value=d?"target":"source",C.updateStart({event:v,edge:_.value}),H(v))}function j(v){var d;const p={event:v,edge:_.value};x.value&&(r.value=!1,_.value.selected&&g.value?(u([_.value]),(d=ee.value)==null||d.blur()):n([_.value])),C.click(p)}function L(v){C.contextMenu({event:v,edge:_.value})}function ce(v){C.doubleClick({event:v,edge:_.value})}function _e(v){C.mouseEnter({event:v,edge:_.value})}function de(v){C.mouseMove({event:v,edge:_.value})}function ye(v){C.mouseLeave({event:v,edge:_.value})}function ae(v){q(v,!0)}function se(v){q(v,!1)}function m(v){var d;!y.value&&Sr.includes(v.key)&&x.value&&(v.key==="Escape"?((d=ee.value)==null||d.blur(),u([c(e.id)])):n([c(e.id)]))}}}),Vf=Bf,Hf=we({name:"ConnectionLine",compatConfig:{MODE:3},setup(){var e;const{id:t,connectionMode:n,connectionStartHandle:o,connectionEndHandle:i,connectionPosition:a,connectionLineType:r,connectionLineStyle:l,connectionLineOptions:s,connectionStatus:u,viewport:c,findNode:f}=ke(),h=(e=It(Bn))==null?void 0:e["connection-line"],g=te(()=>{var $;return f(($=o.value)==null?void 0:$.nodeId)}),y=te(()=>{var $;return f(($=i.value)==null?void 0:$.nodeId)??null}),b=te(()=>({x:(a.value.x-c.value.x)/c.value.zoom,y:(a.value.y-c.value.y)/c.value.zoom})),N=te(()=>s.value.markerStart?`url(#${Kt(s.value.markerStart,t)})`:""),S=te(()=>s.value.markerEnd?`url(#${Kt(s.value.markerEnd,t)})`:"");return()=>{var $,_,C;if(!g.value||!o.value)return null;const B=o.value.id,G=o.value.type,X=g.value.handleBounds;let Y=(X==null?void 0:X[G])??[];if(n.value===st.Loose){const T=(X==null?void 0:X[G==="source"?"target":"source"])??[];Y=[...Y,...T]}if(!Y)return null;const oe=(B?Y.find(T=>T.id===B):Y[0])??null,K=(oe==null?void 0:oe.position)??Z.Top,{x:A,y:k}=Dt(g.value,oe,K);let ee=null;y.value&&(n.value===st.Strict?ee=(($=y.value.handleBounds[G==="source"?"target":"source"])==null?void 0:$.find(T=>{var V;return T.id===((V=i.value)==null?void 0:V.id)}))||null:ee=((_=[...y.value.handleBounds.source??[],...y.value.handleBounds.target??[]])==null?void 0:_.find(T=>{var V;return T.id===((V=i.value)==null?void 0:V.id)}))||null);const x=((C=i.value)==null?void 0:C.position)??(K?fo[K]:null);if(!K||!x)return null;const I=r.value??s.value.type??ft.Bezier;let E="";const M={sourceX:A,sourceY:k,sourcePosition:K,targetX:b.value.x,targetY:b.value.y,targetPosition:x};return I===ft.Bezier?[E]=Zr(M):I===ft.Step?[E]=vo({...M,borderRadius:0}):I===ft.SmoothStep?[E]=vo(M):I===ft.SimpleBezier?[E]=Kr(M):E=`M${A},${k} ${b.value.x},${b.value.y}`,xe("svg",{class:"vue-flow__edges vue-flow__connectionline vue-flow__container"},xe("g",{class:"vue-flow__connection"},h?xe(h,{sourceX:A,sourceY:k,sourcePosition:K,targetX:b.value.x,targetY:b.value.y,targetPosition:x,sourceNode:g.value,sourceHandle:oe,targetNode:y.value,targetHandle:ee,markerEnd:S.value,markerStart:N.value,connectionStatus:u.value}):xe("path",{d:E,class:[s.value.class,u.value,"vue-flow__connection-path"],style:{...l.value,...s.value.style},"marker-end":S.value,"marker-start":N.value})))}}}),Rf=Hf,Lf=["id","markerWidth","markerHeight","markerUnits","orient"],Ff={name:"MarkerType",compatConfig:{MODE:3}},Yf=we({...Ff,props:{id:{},type:{},color:{default:"none"},width:{default:12.5},height:{default:12.5},markerUnits:{default:"strokeWidth"},orient:{default:"auto-start-reverse"},strokeWidth:{default:1}},setup(e){return(t,n)=>(O(),J("marker",{id:t.id,class:"vue-flow__arrowhead",viewBox:"-10 -10 20 20",refX:"0",refY:"0",markerWidth:`${t.width}`,markerHeight:`${t.height}`,markerUnits:t.markerUnits,orient:t.orient},[t.type===D(uo).ArrowClosed?(O(),J("polyline",{key:0,style:He({stroke:t.color,fill:t.color,strokeWidth:t.strokeWidth}),"stroke-linecap":"round","stroke-linejoin":"round",points:"-5,-4 0,0 -5,4 -5,-4"},null,4)):fe("",!0),t.type===D(uo).Arrow?(O(),J("polyline",{key:1,style:He({stroke:t.color,strokeWidth:t.strokeWidth}),"stroke-linecap":"round","stroke-linejoin":"round",fill:"none",points:"-5,-4 0,0 -5,4"},null,4)):fe("",!0)],8,Lf))}}),Gf={class:"vue-flow__marker vue-flow__container","aria-hidden":"true"},Wf={name:"MarkerDefinitions",compatConfig:{MODE:3}},Xf=we({...Wf,setup(e){const{id:t,edges:n,connectionLineOptions:o,defaultMarkerColor:i}=ke(),a=te(()=>{const r=new Set,l=[],s=u=>{if(u){const c=Kt(u,t);r.has(c)||(typeof u=="object"?l.push({...u,id:c,color:u.color||i.value}):l.push({id:c,color:i.value,type:u}),r.add(c))}};for(const u of[o.value.markerEnd,o.value.markerStart])s(u);for(const u of n.value)for(const c of[u.markerStart,u.markerEnd])s(c);return l.sort((u,c)=>u.id.localeCompare(c.id))});return(r,l)=>(O(),J("svg",Gf,[ne("defs",null,[(O(!0),J(De,null,qt(a.value,s=>(O(),ve(Yf,{id:s.id,key:s.id,type:s.type,color:s.color,width:s.width,height:s.height,markerUnits:s.markerUnits,"stroke-width":s.strokeWidth,orient:s.orient},null,8,["id","type","color","width","height","markerUnits","stroke-width","orient"]))),128))])]))}}),Uf={name:"Edges",compatConfig:{MODE:3}},Zf=we({...Uf,setup(e){const{findNode:t,getEdges:n,elevateEdgesOnSelect:o}=ke();return(i,a)=>(O(),J(De,null,[z(Xf),(O(!0),J(De,null,qt(D(n),r=>(O(),J("svg",{key:r.id,class:"vue-flow__edges vue-flow__container",style:He({zIndex:D(dd)(r,D(t),D(o))})},[z(D(Vf),{id:r.id},null,8,["id"])],4))),128)),z(D(Rf))],64))}}),Kf=we({name:"Node",compatConfig:{MODE:3},props:["id","resizeObserver"],setup(e){const{id:t,noPanClassName:n,selectNodesOnDrag:o,nodesSelectionActive:i,multiSelectionActive:a,emits:r,removeSelectedNodes:l,addSelectedNodes:s,updateNodeDimensions:u,onUpdateNodeInternals:c,getNodeTypes:f,nodeExtent:h,elevateNodesOnSelect:g,disableKeyboardA11y:y,ariaLiveMessage:b,snapToGrid:N,snapGrid:S,nodeDragThreshold:$,nodesDraggable:_,elementsSelectable:C,nodesConnectable:B,nodesFocusable:G,hooks:X}=ke(),Y=me(null);kt(Rr,Y),kt(Hr,e.id);const oe=It(Bn),K=Pt(),A=Gr(),{node:k,parentNode:ee}=Yr(e.id),{emit:x,on:I}=Dd(k,r),E=Se(()=>typeof k.draggable>"u"?_.value:k.draggable),M=Se(()=>typeof k.selectable>"u"?C.value:k.selectable),T=Se(()=>typeof k.connectable>"u"?B.value:k.connectable),V=Se(()=>typeof k.focusable>"u"?G.value:k.focusable),H=te(()=>M.value||E.value||X.value.nodeClick.hasListeners()||X.value.nodeDoubleClick.hasListeners()||X.value.nodeMouseEnter.hasListeners()||X.value.nodeMouseMove.hasListeners()||X.value.nodeMouseLeave.hasListeners()),U=Se(()=>!!k.dimensions.width&&!!k.dimensions.height),ie=te(()=>{const d=k.type||"default",p=oe==null?void 0:oe[`node-${d}`];if(p)return p;let w=k.template||f.value[d];if(typeof w=="string"&&K){const P=Object.keys(K.appContext.components);P&&P.includes(d)&&(w=Bi(d,!1))}return w&&typeof w!="string"?w:(r.error(new Ie(Me.NODE_TYPE_MISSING,w)),!1)}),le=Lr({id:e.id,el:Y,disabled:()=>!E.value,selectable:M,dragHandle:()=>k.dragHandle,onStart(d){x.dragStart(d)},onDrag(d){x.drag(d)},onStop(d){x.dragStop(d)},onClick(d){m(d)}}),he=te(()=>k.class instanceof Function?k.class(k):k.class),q=te(()=>{const d=(k.style instanceof Function?k.style(k):k.style)||{},p=k.width instanceof Function?k.width(k):k.width,w=k.height instanceof Function?k.height(k):k.height;return!d.width&&p&&(d.width=typeof p=="string"?p:`${p}px`),!d.height&&w&&(d.height=typeof w=="string"?w:`${w}px`),d}),j=Se(()=>Number(k.zIndex??q.value.zIndex??0));return c(d=>{(d.includes(e.id)||!d.length)&&ce()}),Ue(()=>{Ee(()=>k.hidden,(d=!1,p,w)=>{!d&&Y.value&&(e.resizeObserver.observe(Y.value),w(()=>{Y.value&&e.resizeObserver.unobserve(Y.value)}))},{immediate:!0,flush:"post"})}),Ee([()=>k.type,()=>k.sourcePosition,()=>k.targetPosition],()=>{et(()=>{u([{id:e.id,nodeElement:Y.value,forceUpdate:!0}])})}),Ee([()=>k.position.x,()=>k.position.y,()=>{var d;return(d=ee.value)==null?void 0:d.computedPosition.x},()=>{var d;return(d=ee.value)==null?void 0:d.computedPosition.y},()=>{var d;return(d=ee.value)==null?void 0:d.computedPosition.z},j,()=>k.selected,()=>k.dimensions.height,()=>k.dimensions.width,()=>{var d;return(d=ee.value)==null?void 0:d.dimensions.height},()=>{var d;return(d=ee.value)==null?void 0:d.dimensions.width}],([d,p,w,P,R,F])=>{const Q={x:d,y:p,z:F+(g.value&&k.selected?1e3:0)};typeof w<"u"&&typeof P<"u"?k.computedPosition=rd({x:w,y:P,z:R},Q):k.computedPosition=Q},{flush:"post",immediate:!0}),Ee([()=>k.extent,h],([d,p],[w,P])=>{(d!==w||p!==P)&&L()}),k.extent==="parent"||typeof k.extent=="object"&&"range"in k.extent&&k.extent.range==="parent"?eo(()=>U).toBe(!0).then(L):L(),()=>k.hidden?null:xe("div",{ref:Y,"data-id":k.id,class:["vue-flow__node",`vue-flow__node-${ie.value===!1?"default":k.type||"default"}`,{[n.value]:E.value,dragging:le==null?void 0:le.value,draggable:E.value,selected:k.selected,selectable:M.value,parent:k.isParent},he.value],style:{visibility:U.value?"visible":"hidden",zIndex:k.computedPosition.z??j.value,transform:`translate(${k.computedPosition.x}px,${k.computedPosition.y}px)`,pointerEvents:H.value?"all":"none",...q.value},tabIndex:V.value?0:void 0,role:V.value?"group":void 0,"aria-describedby":y.value?void 0:`${xr}-${t}`,"aria-label":k.ariaLabel,"aria-roledescription":"node",...k.domAttributes,onMouseenter:_e,onMousemove:de,onMouseleave:ye,onContextmenu:ae,onClick:m,onDblclick:se,onKeydown:v},[xe(ie.value===!1?f.value.default:ie.value,{id:k.id,type:k.type,data:k.data,events:{...k.events,...I},selected:k.selected,resizing:k.resizing,dragging:le.value,connectable:T.value,position:k.computedPosition,dimensions:k.dimensions,isValidTargetPos:k.isValidTargetPos,isValidSourcePos:k.isValidSourcePos,parent:k.parentNode,parentNodeId:k.parentNode,zIndex:k.computedPosition.z??j.value,targetPosition:k.targetPosition,sourcePosition:k.sourcePosition,label:k.label,dragHandle:k.dragHandle,onUpdateNodeInternals:ce})]);function L(){const d=k.computedPosition,{computedPosition:p,position:w}=Oo(k,N.value?zn(d,S.value):d,r.error,h.value,ee.value);(k.computedPosition.x!==p.x||k.computedPosition.y!==p.y)&&(k.computedPosition={...k.computedPosition,...p}),(k.position.x!==w.x||k.position.y!==w.y)&&(k.position=w)}function ce(){Y.value&&u([{id:e.id,nodeElement:Y.value,forceUpdate:!0}])}function _e(d){le!=null&&le.value||x.mouseEnter({event:d,node:k})}function de(d){le!=null&&le.value||x.mouseMove({event:d,node:k})}function ye(d){le!=null&&le.value||x.mouseLeave({event:d,node:k})}function ae(d){return x.contextMenu({event:d,node:k})}function se(d){return x.doubleClick({event:d,node:k})}function m(d){M.value&&(!o.value||!E.value||$.value>0)&&ho(k,a.value,s,l,i,!1,Y.value),x.click({event:d,node:k})}function v(d){if(!(co(d)||y.value))if(Sr.includes(d.key)&&M.value){const p=d.key==="Escape";ho(k,a.value,s,l,i,p,Y.value)}else E.value&&k.selected&&Nt[d.key]&&(d.preventDefault(),b.value=`Moved selected node ${d.key.replace("Arrow","").toLowerCase()}. New position, x: ${~~k.position.x}, y: ${~~k.position.y}`,A({x:Nt[d.key].x,y:Nt[d.key].y},d.shiftKey))}}}),qf=Kf;function jf(e={includeHiddenNodes:!1}){const{nodes:t}=ke();return te(()=>{if(t.value.length===0)return!1;for(const n of t.value)if((e.includeHiddenNodes||!n.hidden)&&((n==null?void 0:n.handleBounds)===void 0||n.dimensions.width===0||n.dimensions.height===0))return!1;return!0})}const Jf={class:"vue-flow__nodes vue-flow__container"},Qf={name:"Nodes",compatConfig:{MODE:3}},eh=we({...Qf,setup(e){const{getNodes:t,updateNodeDimensions:n,emits:o}=ke(),i=jf(),a=me();return Ee(i,r=>{r&&et(()=>{o.nodesInitialized(t.value)})},{immediate:!0}),Ue(()=>{a.value=new ResizeObserver(r=>{const l=r.map(s=>({id:s.target.getAttribute("data-id"),nodeElement:s.target,forceUpdate:!0}));et(()=>n(l))})}),Ai(()=>{var r;return(r=a.value)==null?void 0:r.disconnect()}),(r,l)=>(O(),J("div",Jf,[a.value?(O(!0),J(De,{key:0},qt(D(t),(s,u,c,f)=>{const h=[s.id];if(f&&f.key===s.id&&aa(f,h))return f;const g=(O(),ve(D(qf),{id:s.id,key:s.id,"resize-observer":a.value},null,8,["id","resize-observer"]));return g.memo=h,g},l,0),128)):fe("",!0)]))}});function th(){const{emits:e}=ke();Ue(()=>{if(Vr()){const t=document.querySelector(".vue-flow__pane");t&&window.getComputedStyle(t).zIndex!=="1"&&e.error(new Ie(Me.MISSING_STYLES))}})}const nh=ne("div",{class:"vue-flow__edge-labels"},null,-1),oh={name:"VueFlow",compatConfig:{MODE:3}},ih=we({...oh,props:{id:{},modelValue:{},nodes:{},edges:{},edgeTypes:{},nodeTypes:{},connectionMode:{},connectionLineType:{},connectionLineStyle:{default:void 0},connectionLineOptions:{default:void 0},connectionRadius:{},isValidConnection:{type:[Function,null],default:void 0},deleteKeyCode:{default:void 0},selectionKeyCode:{type:[Boolean,null],default:void 0},multiSelectionKeyCode:{default:void 0},zoomActivationKeyCode:{default:void 0},panActivationKeyCode:{default:void 0},snapToGrid:{type:Boolean,default:void 0},snapGrid:{},onlyRenderVisibleElements:{type:Boolean,default:void 0},edgesUpdatable:{type:[Boolean,String],default:void 0},nodesDraggable:{type:Boolean,default:void 0},nodesConnectable:{type:Boolean,default:void 0},nodeDragThreshold:{},elementsSelectable:{type:Boolean,default:void 0},selectNodesOnDrag:{type:Boolean,default:void 0},panOnDrag:{type:[Boolean,Array],default:void 0},minZoom:{},maxZoom:{},defaultViewport:{},translateExtent:{},nodeExtent:{},defaultMarkerColor:{},zoomOnScroll:{type:Boolean,default:void 0},zoomOnPinch:{type:Boolean,default:void 0},panOnScroll:{type:Boolean,default:void 0},panOnScrollSpeed:{},panOnScrollMode:{},paneClickDistance:{},zoomOnDoubleClick:{type:Boolean,default:void 0},preventScrolling:{type:Boolean,default:void 0},selectionMode:{},edgeUpdaterRadius:{},fitViewOnInit:{type:Boolean,default:void 0},connectOnClick:{type:Boolean,default:void 0},applyDefault:{type:Boolean,default:void 0},autoConnect:{type:[Boolean,Function],default:void 0},noDragClassName:{},noWheelClassName:{},noPanClassName:{},defaultEdgeOptions:{},elevateEdgesOnSelect:{type:Boolean,default:void 0},elevateNodesOnSelect:{type:Boolean,default:void 0},disableKeyboardA11y:{type:Boolean,default:void 0},edgesFocusable:{type:Boolean,default:void 0},nodesFocusable:{type:Boolean,default:void 0},autoPanOnConnect:{type:Boolean,default:void 0},autoPanOnNodeDrag:{type:Boolean,default:void 0},autoPanSpeed:{}},emits:["nodesChange","edgesChange","nodesInitialized","paneReady","init","updateNodeInternals","error","connect","connectStart","connectEnd","clickConnectStart","clickConnectEnd","moveStart","move","moveEnd","selectionDragStart","selectionDrag","selectionDragStop","selectionContextMenu","selectionStart","selectionEnd","viewportChangeStart","viewportChange","viewportChangeEnd","paneScroll","paneClick","paneContextMenu","paneMouseEnter","paneMouseMove","paneMouseLeave","edgeUpdate","edgeContextMenu","edgeMouseEnter","edgeMouseMove","edgeMouseLeave","edgeDoubleClick","edgeClick","edgeUpdateStart","edgeUpdateEnd","nodeContextMenu","nodeMouseEnter","nodeMouseMove","nodeMouseLeave","nodeDoubleClick","nodeClick","nodeDragStart","nodeDrag","nodeDragStop","miniMapNodeClick","miniMapNodeDoubleClick","miniMapNodeMouseEnter","miniMapNodeMouseMove","miniMapNodeMouseLeave","update:modelValue","update:nodes","update:edges"],setup(e,{expose:t,emit:n}){const o=e,i=ia(),a=Fn(o,"modelValue",n),r=Fn(o,"nodes",n),l=Fn(o,"edges",n),s=ke(o),u=Td({modelValue:a,nodes:r,edges:l},o,s);return zd(n,s.hooks),Tf(),th(),kt(Bn,i),Oi(u),t(s),(c,f)=>(O(),J("div",{ref:D(s).vueFlowRef,class:"vue-flow"},[z(Cf,null,{default:ue(()=>[z(Zf),nh,z(eh),$e(c.$slots,"zoom-pane")]),_:3}),$e(c.$slots,"default"),z(Of)],512))}}),rh={name:"Panel",compatConfig:{MODE:3}},ah=we({...rh,props:{position:{}},setup(e){const t=e,{userSelectionActive:n}=ke(),o=te(()=>`${t.position}`.split("-"));return(i,a)=>(O(),J("div",{class:Xe(["vue-flow__panel",o.value]),style:He({pointerEvents:D(n)?"none":"all"})},[$e(i.$slots,"default")],6))}});var Qe=(e=>(e.Lines="lines",e.Dots="dots",e))(Qe||{});const jr=function({dimensions:e,size:t,color:n}){return xe("path",{stroke:n,"stroke-width":t,d:`M${e[0]/2} 0 V${e[1]} M0 ${e[1]/2} H${e[0]}`})},Jr=function({radius:e,color:t}){return xe("circle",{cx:e,cy:e,r:e,fill:t})};Qe.Lines+"",Qe.Dots+"";const lh={[Qe.Dots]:"#81818a",[Qe.Lines]:"#eee"},sh=["id","x","y","width","height","patternTransform"],uh={key:2,height:"100",width:"100"},ch=["fill"],dh=["x","y","fill"],fh={name:"Background",compatConfig:{MODE:3}},hh=we({...fh,props:{id:{},variant:{default:()=>Qe.Dots},gap:{default:20},size:{default:1},lineWidth:{default:1},patternColor:{},color:{},bgColor:{},height:{default:100},width:{default:100},x:{default:0},y:{default:0},offset:{default:0}},setup(e){const{id:t,viewport:n}=ke(),o=te(()=>{const r=n.value.zoom,[l,s]=Array.isArray(e.gap)?e.gap:[e.gap,e.gap],u=[l*r||1,s*r||1],c=e.size*r,[f,h]=Array.isArray(e.offset)?e.offset:[e.offset,e.offset],g=[f*r||1+u[0]/2,h*r||1+u[1]/2];return{scaledGap:u,offset:g,size:c}}),i=Se(()=>`pattern-${t}${e.id?`-${e.id}`:""}`),a=Se(()=>e.color||e.patternColor||lh[e.variant||Qe.Dots]);return(r,l)=>(O(),J("svg",{class:"vue-flow__background vue-flow__container",style:He({height:`${r.height>100?100:r.height}%`,width:`${r.width>100?100:r.width}%`})},[$e(r.$slots,"pattern-container",{id:i.value},()=>[ne("pattern",{id:i.value,x:D(n).x%o.value.scaledGap[0],y:D(n).y%o.value.scaledGap[1],width:o.value.scaledGap[0],height:o.value.scaledGap[1],patternTransform:`translate(-${o.value.offset[0]},-${o.value.offset[1]})`,patternUnits:"userSpaceOnUse"},[$e(r.$slots,"pattern",{},()=>[r.variant===D(Qe).Lines?(O(),ve(D(jr),{key:0,size:r.lineWidth,color:a.value,dimensions:o.value.scaledGap},null,8,["size","color","dimensions"])):r.variant===D(Qe).Dots?(O(),ve(D(Jr),{key:1,color:a.value,radius:o.value.size/2},null,8,["color","radius"])):fe("",!0),r.bgColor?(O(),J("svg",uh,[ne("rect",{width:"100%",height:"100%",fill:r.bgColor},null,8,ch)])):fe("",!0)])],8,sh)]),ne("rect",{x:r.x,y:r.y,width:"100%",height:"100%",fill:`url(#${i.value})`},null,8,dh),$e(r.$slots,"default",{id:i.value})],4))}}),vh={name:"ControlButton",compatConfig:{MODE:3}},gh=(e,t)=>{const n=e.__vccOpts||e;for(const[o,i]of t)n[o]=i;return n},ph={type:"button",class:"vue-flow__controls-button"};function mh(e,t,n,o,i,a){return O(),J("button",ph,[$e(e.$slots,"default")])}const cn=gh(vh,[["render",mh]]),yh={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32"},wh=ne("path",{d:"M32 18.133H18.133V32h-4.266V18.133H0v-4.266h13.867V0h4.266v13.867H32z"},null,-1),_h=[wh];function bh(e,t){return O(),J("svg",yh,_h)}const xh={render:bh},Eh={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 5"},Sh=ne("path",{d:"M0 0h32v4.2H0z"},null,-1),Nh=[Sh];function kh(e,t){return O(),J("svg",Eh,Nh)}const $h={render:kh},Ch={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 30"},Mh=ne("path",{d:"M3.692 4.63c0-.53.4-.938.939-.938h5.215V0H4.708C2.13 0 0 2.054 0 4.63v5.216h3.692V4.631zM27.354 0h-5.2v3.692h5.17c.53 0 .984.4.984.939v5.215H32V4.631A4.624 4.624 0 0 0 27.354 0zm.954 24.83c0 .532-.4.94-.939.94h-5.215v3.768h5.215c2.577 0 4.631-2.13 4.631-4.707v-5.139h-3.692v5.139zm-23.677.94a.919.919 0 0 1-.939-.94v-5.138H0v5.139c0 2.577 2.13 4.707 4.708 4.707h5.138V25.77H4.631z"},null,-1),Dh=[Mh];function Ih(e,t){return O(),J("svg",Ch,Dh)}const Ph={render:Ih},Oh={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 25 32"},Th=ne("path",{d:"M21.333 10.667H19.81V7.619C19.81 3.429 16.38 0 12.19 0 8 0 4.571 3.429 4.571 7.619v3.048H3.048A3.056 3.056 0 0 0 0 13.714v15.238A3.056 3.056 0 0 0 3.048 32h18.285a3.056 3.056 0 0 0 3.048-3.048V13.714a3.056 3.056 0 0 0-3.048-3.047zM12.19 24.533a3.056 3.056 0 0 1-3.047-3.047 3.056 3.056 0 0 1 3.047-3.048 3.056 3.056 0 0 1 3.048 3.048 3.056 3.056 0 0 1-3.048 3.047zm4.724-13.866H7.467V7.619c0-2.59 2.133-4.724 4.723-4.724 2.591 0 4.724 2.133 4.724 4.724v3.048z"},null,-1),Ah=[Th];function zh(e,t){return O(),J("svg",Oh,Ah)}const Bh={render:zh},Vh={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 25 32"},Hh=ne("path",{d:"M21.333 10.667H19.81V7.619C19.81 3.429 16.38 0 12.19 0c-4.114 1.828-1.37 2.133.305 2.438 1.676.305 4.42 2.59 4.42 5.181v3.048H3.047A3.056 3.056 0 0 0 0 13.714v15.238A3.056 3.056 0 0 0 3.048 32h18.285a3.056 3.056 0 0 0 3.048-3.048V13.714a3.056 3.056 0 0 0-3.048-3.047zM12.19 24.533a3.056 3.056 0 0 1-3.047-3.047 3.056 3.056 0 0 1 3.047-3.048 3.056 3.056 0 0 1 3.048 3.048 3.056 3.056 0 0 1-3.048 3.047z"},null,-1),Rh=[Hh];function Lh(e,t){return O(),J("svg",Vh,Rh)}const Fh={render:Lh},Yh={name:"Controls",compatConfig:{MODE:3}},Gh=we({...Yh,props:{showZoom:{type:Boolean,default:!0},showFitView:{type:Boolean,default:!0},showInteractive:{type:Boolean,default:!0},fitViewParams:{},position:{default:()=>br.BottomLeft}},emits:["zoomIn","zoomOut","fitView","interactionChange"],setup(e,{emit:t}){const{nodesDraggable:n,nodesConnectable:o,elementsSelectable:i,setInteractive:a,zoomIn:r,zoomOut:l,fitView:s,viewport:u,minZoom:c,maxZoom:f}=ke(),h=Se(()=>n.value||o.value||i.value),g=Se(()=>u.value.zoom<=c.value),y=Se(()=>u.value.zoom>=f.value);function b(){r(),t("zoomIn")}function N(){l(),t("zoomOut")}function S(){s(e.fitViewParams),t("fitView")}function $(){a(!h.value),t("interactionChange",!h.value)}return(_,C)=>(O(),ve(D(ah),{class:"vue-flow__controls",position:_.position},{default:ue(()=>[$e(_.$slots,"top"),_.showZoom?(O(),J(De,{key:0},[$e(_.$slots,"control-zoom-in",{},()=>[z(cn,{class:"vue-flow__controls-zoomin",disabled:y.value,onClick:b},{default:ue(()=>[$e(_.$slots,"icon-zoom-in",{},()=>[(O(),ve(dt(D(xh))))])]),_:3},8,["disabled"])]),$e(_.$slots,"control-zoom-out",{},()=>[z(cn,{class:"vue-flow__controls-zoomout",disabled:g.value,onClick:N},{default:ue(()=>[$e(_.$slots,"icon-zoom-out",{},()=>[(O(),ve(dt(D($h))))])]),_:3},8,["disabled"])])],64)):fe("",!0),_.showFitView?$e(_.$slots,"control-fit-view",{key:1},()=>[z(cn,{class:"vue-flow__controls-fitview",onClick:S},{default:ue(()=>[$e(_.$slots,"icon-fit-view",{},()=>[(O(),ve(dt(D(Ph))))])]),_:3})]):fe("",!0),_.showInteractive?$e(_.$slots,"control-interactive",{key:2},()=>[_.showInteractive?(O(),ve(cn,{key:0,class:"vue-flow__controls-interactive",onClick:$},{default:ue(()=>[h.value?$e(_.$slots,"icon-unlock",{key:0},()=>[(O(),ve(dt(D(Fh))))]):fe("",!0),h.value?fe("",!0):$e(_.$slots,"icon-lock",{key:1},()=>[(O(),ve(dt(D(Bh))))])]),_:3})):fe("",!0)]):fe("",!0),$e(_.$slots,"default")]),_:3},8,["position"]))}}),Wh={class:"node-header"},Xh={class:"node-title"},Uh={class:"node-body"},Zh={key:0,class:"node-detail"},Kh={class:"detail-value"},qh={key:1,class:"node-detail"},jh={class:"detail-value"},Jh={key:0,class:"status-indicator"},Qh=we({__name:"SkillNode",props:{data:{}},setup(e){return(t,n)=>(O(),J("div",{class:Xe(["skill-node",[e.data.selected?"selected":"",e.data.status?`status-${e.data.status}`:""]])},[z(D(Te),{type:"target",position:D(Z).Left,id:"input"},null,8,["position"]),ne("div",Wh,[z(D(Ri),{class:"node-icon"}),ne("span",Xh,Ne(e.data.label),1)]),ne("div",Uh,[e.data.action?(O(),J("div",Zh,[n[0]||(n[0]=ne("span",{class:"detail-label"},"动作:",-1)),ne("span",Kh,Ne(e.data.action),1)])):fe("",!0),e.data.timeout_seconds?(O(),J("div",qh,[n[1]||(n[1]=ne("span",{class:"detail-label"},"超时:",-1)),ne("span",jh,Ne(e.data.timeout_seconds)+"s",1)])):fe("",!0)]),e.data.status?(O(),J("div",Jh,[e.data.status==="running"?(O(),ve(D($n),{key:0,class:"status-icon running-icon"})):e.data.status==="completed"?(O(),ve(D(Cn),{key:1,class:"status-icon completed-icon"})):e.data.status==="failed"?(O(),ve(D(Mn),{key:2,class:"status-icon failed-icon"})):e.data.status==="waiting_approval"?(O(),ve(D(Ot),{key:3,class:"status-icon waiting-icon"})):fe("",!0)])):fe("",!0),z(D(Te),{type:"source",position:D(Z).Right,id:"output"},null,8,["position"])],2))}}),ev=ct(Qh,[["__scopeId","data-v-84e1f214"]]),tv={class:"diamond-shape"},nv={class:"diamond-content"},ov={class:"node-title"},iv={key:0,class:"condition-expr"},rv={key:1,class:"status-indicator"},av=we({__name:"ConditionNode",props:{data:{}},setup(e){return(t,n)=>{var o;return O(),J("div",{class:Xe(["condition-node",[e.data.selected?"selected":"",e.data.status?`status-${e.data.status}`:""]])},[z(D(Te),{type:"target",position:D(Z).Left,id:"input"},null,8,["position"]),ne("div",tv,[ne("div",nv,[z(D(Dn),{class:"node-icon"}),ne("span",ov,Ne(e.data.label),1)])]),(o=e.data.config)!=null&&o.expression?(O(),J("div",iv,Ne(e.data.config.expression),1)):fe("",!0),e.data.status?(O(),J("div",rv,[e.data.status==="running"?(O(),ve(D($n),{key:0,class:"status-icon running-icon"})):e.data.status==="completed"?(O(),ve(D(Cn),{key:1,class:"status-icon completed-icon"})):e.data.status==="failed"?(O(),ve(D(Mn),{key:2,class:"status-icon failed-icon"})):e.data.status==="waiting_approval"?(O(),ve(D(Ot),{key:3,class:"status-icon waiting-icon"})):fe("",!0)])):fe("",!0),z(D(Te),{type:"source",position:D(Z).Right,id:"true",class:"handle-true"},null,8,["position"]),n[0]||(n[0]=ne("span",{class:"label-true"},"是",-1)),z(D(Te),{type:"source",position:D(Z).Bottom,id:"false",class:"handle-false"},null,8,["position"]),n[1]||(n[1]=ne("span",{class:"label-false"},"否",-1))],2)}}}),lv=ct(av,[["__scopeId","data-v-1b09e49e"]]),sv={class:"node-header"},uv={class:"node-title"},cv={class:"node-body"},dv={key:0,class:"node-detail"},fv={class:"detail-value"},hv={key:1,class:"node-detail"},vv={class:"detail-value"},gv={key:0,class:"status-indicator"},pv=we({__name:"ApprovalNode",props:{data:{}},setup(e){const t=e,n=te(()=>{var o;return((o=t.data.config)==null?void 0:o.status)==="paused"});return(o,i)=>{var r,l;const a=po;return O(),J("div",{class:Xe(["approval-node",[e.data.selected?"selected":"",e.data.status?`status-${e.data.status}`:"",n.value?"paused":""]])},[z(D(Te),{type:"target",position:D(Z).Left,id:"input"},null,8,["position"]),ne("div",sv,[z(D(Li),{class:"node-icon"}),ne("span",uv,Ne(e.data.label),1),n.value?(O(),ve(a,{key:0,color:"orange",class:"pause-tag"},{default:ue(()=>[...i[0]||(i[0]=[Oe("等待审批",-1)])]),_:1})):fe("",!0)]),ne("div",cv,[(r=e.data.config)!=null&&r.approver?(O(),J("div",dv,[i[1]||(i[1]=ne("span",{class:"detail-label"},"审批人:",-1)),ne("span",fv,Ne(e.data.config.approver),1)])):fe("",!0),(l=e.data.config)!=null&&l.timeout?(O(),J("div",hv,[i[2]||(i[2]=ne("span",{class:"detail-label"},"超时:",-1)),ne("span",vv,Ne(e.data.config.timeout)+"s",1)])):fe("",!0)]),e.data.status?(O(),J("div",gv,[e.data.status==="running"?(O(),ve(D($n),{key:0,class:"status-icon running-icon"})):e.data.status==="completed"?(O(),ve(D(Cn),{key:1,class:"status-icon completed-icon"})):e.data.status==="failed"?(O(),ve(D(Mn),{key:2,class:"status-icon failed-icon"})):e.data.status==="waiting_approval"?(O(),ve(D(Ot),{key:3,class:"status-icon waiting-icon"})):fe("",!0)])):fe("",!0),z(D(Te),{type:"source",position:D(Z).Right,id:"output"},null,8,["position"])],2)}}}),mv=ct(pv,[["__scopeId","data-v-31a2d3e2"]]),yv={class:"node-header"},wv={class:"node-title"},_v={class:"node-body"},bv={key:0,class:"node-detail"},xv={class:"detail-value"},Ev={key:0,class:"status-indicator"},Sv=we({__name:"ParallelNode",props:{data:{}},setup(e){return(t,n)=>{var o;return O(),J("div",{class:Xe(["parallel-node",[e.data.selected?"selected":"",e.data.status?`status-${e.data.status}`:""]])},[z(D(Te),{type:"target",position:D(Z).Top,id:"input"},null,8,["position"]),ne("div",yv,[z(D(bo),{class:"node-icon"}),ne("span",wv,Ne(e.data.label),1)]),ne("div",_v,[(o=e.data.config)!=null&&o.max_parallel?(O(),J("div",bv,[n[0]||(n[0]=ne("span",{class:"detail-label"},"最大并行数:",-1)),ne("span",xv,Ne(e.data.config.max_parallel),1)])):fe("",!0)]),e.data.status?(O(),J("div",Ev,[e.data.status==="running"?(O(),ve(D($n),{key:0,class:"status-icon running-icon"})):e.data.status==="completed"?(O(),ve(D(Cn),{key:1,class:"status-icon completed-icon"})):e.data.status==="failed"?(O(),ve(D(Mn),{key:2,class:"status-icon failed-icon"})):e.data.status==="waiting_approval"?(O(),ve(D(Ot),{key:3,class:"status-icon waiting-icon"})):fe("",!0)])):fe("",!0),z(D(Te),{type:"source",position:D(Z).Bottom,id:"output"},null,8,["position"])],2)}}}),Nv=ct(Sv,[["__scopeId","data-v-c3e12e75"]]),kv={class:"canvas-toolbar"},$v=we({__name:"FlowCanvas",props:{saving:{type:Boolean},executing:{type:Boolean}},emits:["save","execute","clear","node-select","node-drop"],setup(e,{emit:t}){const n=So(),o=t,i=me(),a={skill:lt(ev),condition:lt(lv),approval:lt(mv),parallel:lt(Nv)},r={animated:!0,style:{stroke:"#1890ff",strokeWidth:2}};function l(y){y.preventDefault(),y.dataTransfer&&(y.dataTransfer.dropEffect="move")}function s(y){var C,B;const b=(C=y.dataTransfer)==null?void 0:C.getData("application/vueflow");if(!b)return;const{left:N,top:S}=((B=i.value)==null?void 0:B.getBoundingClientRect())||{left:0,top:0};let $=y.clientX-N-100,_=y.clientY-S-50;$=Math.round($/15)*15,_=Math.round(_/15)*15,o("node-drop",b,{x:$,y:_})}function u({node:y}){o("node-select",y.id)}function c(){o("node-select",null)}function f(y){const b={id:`edge-${y.source}-${y.target}`,source:y.source,target:y.target,sourceHandle:y.sourceHandle,targetHandle:y.targetHandle,animated:!0,style:{stroke:"#7c3aed",strokeWidth:2}};n.addEdge(b)}function h(y){const b=y.target;if(b.tagName==="INPUT"||b.tagName==="TEXTAREA"||b.isContentEditable)return;const N=(y.ctrlKey||y.metaKey)&&y.key.toLowerCase()==="z"&&!y.shiftKey,S=(y.ctrlKey||y.metaKey)&&y.key.toLowerCase()==="z"&&y.shiftKey||(y.ctrlKey||y.metaKey)&&y.key.toLowerCase()==="y";N?(y.preventDefault(),n.undo()):S&&(y.preventDefault(),n.redo())}Ue(()=>{window.addEventListener("keydown",h)}),Oi(()=>{window.removeEventListener("keydown",h),n.disconnectExecutionWebSocket()});function g(){if(n.flowNodes.length===0){qe.warning("工作流为空,请添加节点");return}const y=new Set(n.flowEdges.map($=>$.source)),b=new Set(n.flowEdges.map($=>$.target)),N=new Set([...y,...b]),S=n.flowNodes.filter($=>!N.has($.id));if(S.length>0&&n.flowNodes.length>1){qe.warning(`存在未连接的节点: ${S.map($=>{var _;return(_=$.data)==null?void 0:_.label}).join(", ")}`);return}qe.success("工作流验证通过")}return(y,b)=>{const N=mo,S=ga;return O(),J("div",{class:"flow-canvas",ref_key:"canvasRef",ref:i,onDrop:s,onDragover:l},[ne("div",kv,[z(S,null,{default:ue(()=>[z(N,{size:"small",onClick:b[0]||(b[0]=$=>y.$emit("save")),loading:e.saving},{icon:ue(()=>[z(D(Eo))]),default:ue(()=>[b[5]||(b[5]=Oe(" 保存 ",-1))]),_:1},8,["loading"]),z(N,{size:"small",type:"primary",onClick:b[1]||(b[1]=$=>y.$emit("execute")),loading:e.executing},{icon:ue(()=>[z(D(xo))]),default:ue(()=>[b[6]||(b[6]=Oe(" 执行 ",-1))]),_:1},8,["loading"]),z(N,{size:"small",onClick:g},{icon:ue(()=>[z(D(fa))]),default:ue(()=>[b[7]||(b[7]=Oe(" 验证 ",-1))]),_:1}),z(N,{size:"small",danger:"",onClick:b[2]||(b[2]=$=>y.$emit("clear"))},{icon:ue(()=>[z(D(yo))]),default:ue(()=>[b[8]||(b[8]=Oe(" 清空 ",-1))]),_:1})]),_:1})]),z(D(ih),{nodes:D(n).flowNodes,"onUpdate:nodes":b[3]||(b[3]=$=>D(n).flowNodes=$),edges:D(n).flowEdges,"onUpdate:edges":b[4]||(b[4]=$=>D(n).flowEdges=$),"node-types":a,"default-edge-options":r,"snap-to-grid":!0,"snap-grid":[15,15],"fit-view-on-init":"",onNodeClick:u,onPaneClick:c,onConnect:f},{default:ue(()=>[z(D(hh),{gap:20,size:1}),z(D(Gh))]),_:1},8,["nodes","edges"])],544)}}}),Cv=ct($v,[["__scopeId","data-v-f6c82275"]]),Mv={class:"property-panel"},Dv={class:"panel-header"},Iv={class:"panel-body"},Pv={key:1,class:"panel-empty"},Ov=we({__name:"PropertyPanel",props:{nodeData:{}},emits:["delete-node"],setup(e){const t=So(),n=e,o=te(()=>{var s;return{skill:"技能节点",condition:"条件节点",approval:"审批节点",parallel:"并行节点"}[((s=n.nodeData)==null?void 0:s.type)||"skill"]||"未知"}),i=te(()=>{var s;return{skill:"blue",condition:"orange",approval:"purple",parallel:"green"}[((s=n.nodeData)==null?void 0:s.type)||"skill"]||"default"});function a(l,s){t.selectedNodeId&&t.updateNodeData(t.selectedNodeId,{[l]:s})}function r(l,s){t.selectedNodeId&&n.nodeData&&t.updateNodeData(t.selectedNodeId,{config:{...n.nodeData.config,[l]:s}})}return(l,s)=>{const u=mo,c=ma,f=Yi,h=po,g=wa,y=Gi,b=Fi,N=Hi;return O(),J("div",Mv,[e.nodeData?(O(),J(De,{key:0},[ne("div",Dv,[s[11]||(s[11]=ne("span",{class:"panel-title"},"节点属性",-1)),z(u,{size:"small",type:"text",danger:"",onClick:s[0]||(s[0]=S=>l.$emit("delete-node",e.nodeData))},{icon:ue(()=>[z(D(yo))]),_:1})]),ne("div",Iv,[z(b,{layout:"vertical",size:"small"},{default:ue(()=>[z(f,{label:"节点名称"},{default:ue(()=>[z(c,{value:e.nodeData.label,"onUpdate:value":s[1]||(s[1]=S=>a("label",S))},null,8,["value"])]),_:1}),z(f,{label:"节点类型"},{default:ue(()=>[z(h,{color:i.value},{default:ue(()=>[Oe(Ne(o.value),1)]),_:1},8,["color"])]),_:1}),e.nodeData.type==="skill"?(O(),J(De,{key:0},[z(f,{label:"技能动作"},{default:ue(()=>[z(c,{value:e.nodeData.action,"onUpdate:value":s[2]||(s[2]=S=>a("action",S)),placeholder:"输入技能动作名称"},null,8,["value"])]),_:1}),z(f,{label:"Agent"},{default:ue(()=>[z(c,{value:e.nodeData.agent,"onUpdate:value":s[3]||(s[3]=S=>a("agent",S)),placeholder:"default"},null,8,["value"])]),_:1}),z(f,{label:"超时时间(秒)"},{default:ue(()=>[z(g,{value:e.nodeData.timeout_seconds,"onUpdate:value":s[4]||(s[4]=S=>a("timeout_seconds",S)),min:1,max:86400,style:{width:"100%"}},null,8,["value"])]),_:1}),z(f,{label:"重试次数"},{default:ue(()=>[z(g,{value:e.nodeData.retry_count,"onUpdate:value":s[5]||(s[5]=S=>a("retry_count",S)),min:0,max:10,style:{width:"100%"}},null,8,["value"])]),_:1})],64)):fe("",!0),e.nodeData.type==="condition"?(O(),J(De,{key:1},[z(f,{label:"条件表达式"},{default:ue(()=>{var S;return[z(y,{value:((S=e.nodeData.config)==null?void 0:S.expression)||"","onUpdate:value":s[6]||(s[6]=$=>r("expression",$)),placeholder:"例: status == 'approved'",rows:3},null,8,["value"])]}),_:1}),z(f,{label:"超时时间(秒)"},{default:ue(()=>[z(g,{value:e.nodeData.timeout_seconds,"onUpdate:value":s[7]||(s[7]=S=>a("timeout_seconds",S)),min:1,max:3600,style:{width:"100%"}},null,8,["value"])]),_:1})],64)):fe("",!0),e.nodeData.type==="approval"?(O(),J(De,{key:2},[z(f,{label:"审批人"},{default:ue(()=>{var S;return[z(c,{value:((S=e.nodeData.config)==null?void 0:S.approver)||"","onUpdate:value":s[8]||(s[8]=$=>r("approver",$)),placeholder:"输入审批人"},null,8,["value"])]}),_:1}),z(f,{label:"审批超时(秒)"},{default:ue(()=>{var S;return[z(g,{value:((S=e.nodeData.config)==null?void 0:S.timeout)||3600,"onUpdate:value":s[9]||(s[9]=$=>r("timeout",$)),min:60,max:86400,style:{width:"100%"}},null,8,["value"])]}),_:1})],64)):fe("",!0),e.nodeData.type==="parallel"?(O(),ve(f,{key:3,label:"最大并行数"},{default:ue(()=>{var S;return[z(g,{value:((S=e.nodeData.config)==null?void 0:S.max_parallel)||5,"onUpdate:value":s[10]||(s[10]=$=>r("max_parallel",$)),min:2,max:20,style:{width:"100%"}},null,8,["value"])]}),_:1})):fe("",!0)]),_:1})])],64)):(O(),J("div",Pv,[z(N,{description:"选择节点查看属性"})]))])}}}),Tv=ct(Ov,[["__scopeId","data-v-78d3d684"]]),Av={class:"workflow-editor"},zv={key:0,class:"workflow-list"},Bv={class:"list-header"},Vv={class:"list-body"},Hv=["onClick"],Rv={class:"item-name"},Lv={class:"item-meta"},Fv={key:1,class:"editor-main"},Yv={class:"canvas-area"},Gv={class:"execution-history"},Wv={key:0,class:"history-body"},Xv={key:2,class:"back-bar"},Uv={class:"workflow-name"},Zv=we({__name:"WorkflowView",setup(e){const t=So(),n=me(!1),o=me("{}"),i=me(!1),a=te(()=>t.executionHistory),r=te(()=>t.executionHistoryTotal),l=[{title:"执行ID",dataIndex:"execution_id",key:"execution_id",ellipsis:!0,width:120},{title:"状态",dataIndex:"status",key:"status",width:80},{title:"开始时间",dataIndex:"started_at",key:"started_at",width:160},{title:"完成时间",dataIndex:"completed_at",key:"completed_at",width:160}],s=te(()=>t.workflows),u=te(()=>t.currentWorkflow),c=te(()=>t.currentExecution),f=te(()=>t.isExecuting),h=te(()=>t.isLoading),g=te({get:()=>t.flowNodes,set:E=>{t.flowNodes=E}}),y=te({get:()=>t.flowEdges,set:E=>{t.flowEdges=E}}),b=te(()=>t.selectedNodeData),N=te(()=>{var M;return{pending:"default",running:"processing",paused:"warning",completed:"success",failed:"error",cancelled:"default"}[((M=c.value)==null?void 0:M.status)||"pending"]||"default"}),S=te(()=>{var M;return{pending:"等待中",running:"运行中",paused:"已暂停",completed:"已完成",failed:"已失败",cancelled:"已取消"}[((M=c.value)==null?void 0:M.status)||"pending"]||"未知"});Ue(()=>{t.loadWorkflows()});function $(E){return{pending:"default",running:"processing",paused:"warning",completed:"success",failed:"error",cancelled:"default"}[E]||"default"}function _(E){return{pending:"等待中",running:"运行中",paused:"已暂停",completed:"已完成",failed:"已失败",cancelled:"已取消"}[E]||"未知"}function C(E){if(!E)return"-";try{return new Date(E).toLocaleString()}catch{return E}}async function B(){const E=`工作流 ${s.value.length+1}`;await t.createWorkflow(E)&&qe.success("工作流已创建")}async function G(E){await t.loadWorkflow(E),t.loadExecutionHistory()}async function X(E){await t.deleteWorkflow(E)&&qe.success("工作流已删除")}async function Y(){await t.saveWorkflow()?qe.success("工作流已保存"):qe.error("保存失败")}function oe(){n.value=!0}async function K(){n.value=!1;try{const E=JSON.parse(o.value);await t.executeWorkflow(E),qe.success("工作流开始执行")}catch{qe.error("变量格式错误,请输入有效的 JSON")}}function A(){t.clearCanvas()}function k(E){t.selectNode(E)}function ee(E,M){t.addNode(E,M)}function x(){t.selectedNodeId&&t.removeNode(t.selectedNodeId)}function I(){t.currentWorkflow=null,t.flowNodes=[],t.flowEdges=[],t.selectedNodeId=null,t.currentExecution=null,t.loadWorkflows()}return(E,M)=>{const T=mo,V=Hi,H=xa,U=po,ie=pa,le=Gi,he=Yi,q=Fi,j=Ea;return O(),J("div",Av,[u.value?(O(),J("div",Fv,[z(qa),ne("div",Yv,[z(Cv,{nodes:g.value,edges:y.value,saving:h.value,executing:f.value,onSave:Y,onExecute:oe,onClear:A,onNodeSelect:k,onNodeDrop:ee,"onUpdate:edges":M[0]||(M[0]=L=>y.value=L)},null,8,["nodes","edges","saving","executing"]),ne("div",Gv,[ne("div",{class:"history-header",onClick:M[1]||(M[1]=L=>i.value=!i.value)},[ne("span",null,"执行历史 ("+Ne(r.value)+")",1),i.value?(O(),ve(D(_a),{key:0})):(O(),ve(D(ba),{key:1}))]),i.value?(O(),J("div",Wv,[z(ie,{"data-source":a.value,columns:l,pagination:!1,size:"small","row-key":"execution_id",scroll:{y:200}},{bodyCell:ue(({column:L,record:ce})=>[L.key==="status"?(O(),ve(U,{key:0,color:$(ce.status)},{default:ue(()=>[Oe(Ne(_(ce.status)),1)]),_:2},1032,["color"])):L.key==="started_at"?(O(),J(De,{key:1},[Oe(Ne(C(ce.started_at)),1)],64)):L.key==="completed_at"?(O(),J(De,{key:2},[Oe(Ne(C(ce.completed_at)),1)],64)):fe("",!0)]),_:1},8,["data-source"])])):fe("",!0)])]),z(Tv,{"node-data":b.value,onDeleteNode:x},null,8,["node-data"])])):(O(),J("div",zv,[ne("div",Bv,[M[5]||(M[5]=ne("h3",null,"工作流列表",-1)),z(T,{type:"primary",size:"small",onClick:B},{icon:ue(()=>[z(D(ya))]),default:ue(()=>[M[4]||(M[4]=Oe(" 新建 ",-1))]),_:1})]),z(H,{spinning:h.value},{default:ue(()=>[ne("div",Vv,[(O(!0),J(De,null,qt(s.value,L=>(O(),J("div",{key:L.workflow_id,class:"workflow-item",onClick:ce=>G(L.workflow_id)},[ne("div",Rv,Ne(L.name),1),ne("div",Lv,[ne("span",null,Ne(L.stage_count)+" 个阶段",1),ne("span",null,"v"+Ne(L.version),1)]),z(T,{size:"small",type:"text",danger:"",onClick:ha(ce=>X(L.workflow_id),["stop"])},{icon:ue(()=>[z(D(yo))]),_:1},8,["onClick"])],8,Hv))),128)),s.value.length===0?(O(),ve(V,{key:0,description:"暂无工作流"})):fe("",!0)])]),_:1},8,["spinning"])])),u.value?(O(),J("div",Xv,[z(T,{size:"small",onClick:I},{icon:ue(()=>[z(D(wo))]),default:ue(()=>[M[6]||(M[6]=Oe(" 返回列表 ",-1))]),_:1}),ne("span",Uv,Ne(u.value.name),1),c.value?(O(),ve(U,{key:0,color:N.value},{default:ue(()=>[Oe(Ne(S.value),1)]),_:1},8,["color"])):fe("",!0)])):fe("",!0),z(j,{open:n.value,"onUpdate:open":M[3]||(M[3]=L=>n.value=L),title:"执行工作流",onOk:K,"ok-text":"执行","cancel-text":"取消"},{default:ue(()=>[z(q,{layout:"vertical"},{default:ue(()=>[z(he,{label:"输入变量 (JSON)"},{default:ue(()=>[z(le,{value:o.value,"onUpdate:value":M[2]||(M[2]=L=>o.value=L),placeholder:'{"key": "value"}',rows:4},null,8,["value"])]),_:1})]),_:1})]),_:1},8,["open"])])}}}),_g=ct(Zv,[["__scopeId","data-v-7459974e"]]);export{_g as default}; diff --git a/src/agentkit/server/static/assets/WorkflowView-D_CnUZD8.css b/src/agentkit/server/static/assets/WorkflowView-D_CnUZD8.css new file mode 100644 index 0000000..3debc7a --- /dev/null +++ b/src/agentkit/server/static/assets/WorkflowView-D_CnUZD8.css @@ -0,0 +1 @@ +.node-palette[data-v-e8fc92a2]{width:200px;border-right:1px solid var(--border-color-split);background:var(--bg-secondary);display:flex;flex-direction:column;height:100%;overflow-y:auto}.palette-title[data-v-e8fc92a2]{padding:12px 16px;font-weight:600;font-size:14px;color:var(--text-primary);border-bottom:1px solid var(--border-color-split)}.palette-list[data-v-e8fc92a2]{padding:8px;display:flex;flex-direction:column;gap:6px}.palette-item[data-v-e8fc92a2]{display:flex;align-items:center;gap:10px;padding:10px 12px;background:var(--bg-primary);border:1px solid var(--border-color);border-radius:6px;cursor:grab;transition:all .2s}.palette-item[data-v-e8fc92a2]:hover{border-color:var(--color-primary);box-shadow:0 2px 8px #1890ff26}.palette-item[data-v-e8fc92a2]:active{cursor:grabbing}.item-icon[data-v-e8fc92a2]{font-size:20px;flex-shrink:0}.item-info[data-v-e8fc92a2]{display:flex;flex-direction:column;gap:2px}.item-name[data-v-e8fc92a2]{font-size:13px;font-weight:500;color:var(--text-primary)}.item-desc[data-v-e8fc92a2]{font-size:11px;color:var(--text-placeholder)}.skill-node[data-v-84e1f214]{background:var(--bg-primary);border:2px solid var(--color-primary);border-radius:8px;padding:8px 12px;min-width:160px;font-size:12px;box-shadow:var(--shadow-sm);transition:border-color .3s,box-shadow .3s;position:relative}.skill-node[data-v-84e1f214]:hover{box-shadow:0 4px 12px #7c3aed40}.skill-node.selected[data-v-84e1f214]{border-color:var(--color-primary-hover);box-shadow:0 0 0 3px #7c3aed33}.skill-node.status-running[data-v-84e1f214]{border-color:var(--color-info);box-shadow:0 0 8px #3b82f680;animation:pulse-84e1f214 1.5s ease-in-out infinite}.skill-node.status-completed[data-v-84e1f214]{border-color:var(--color-success)}.skill-node.status-failed[data-v-84e1f214]{border-color:var(--color-error)}.skill-node.status-waiting_approval[data-v-84e1f214]{border-color:var(--color-warning)}@keyframes pulse-84e1f214{0%,to{box-shadow:0 0 4px #3b82f64d}50%{box-shadow:0 0 12px #3b82f6b3}}.status-indicator[data-v-84e1f214]{position:absolute;top:-8px;right:-8px;width:18px;height:18px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:var(--bg-primary);box-shadow:0 1px 4px #00000026}.status-icon[data-v-84e1f214]{font-size:14px}.running-icon[data-v-84e1f214]{color:var(--color-info);animation:spin-84e1f214 1s linear infinite}.completed-icon[data-v-84e1f214]{color:var(--color-success)}.failed-icon[data-v-84e1f214]{color:var(--color-error)}.waiting-icon[data-v-84e1f214]{color:var(--color-warning)}@keyframes spin-84e1f214{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.node-header[data-v-84e1f214]{display:flex;align-items:center;gap:6px;margin-bottom:4px}.node-icon[data-v-84e1f214]{color:var(--color-primary);font-size:14px}.node-title[data-v-84e1f214]{font-weight:600;color:var(--text-primary);font-size:13px}.node-body[data-v-84e1f214]{display:flex;flex-direction:column;gap:2px}.node-detail[data-v-84e1f214]{display:flex;gap:4px;color:var(--text-secondary);font-size:11px}.detail-label[data-v-84e1f214]{color:var(--text-placeholder)}.detail-value[data-v-84e1f214]{color:var(--text-secondary)}.condition-node[data-v-1b09e49e]{position:relative;display:flex;flex-direction:column;align-items:center;min-width:140px}.diamond-shape[data-v-1b09e49e]{background:var(--bg-primary);border:2px solid var(--color-warning);border-radius:8px;padding:8px 12px;box-shadow:var(--shadow-sm);transform:none;transition:border-color .3s,box-shadow .3s}.condition-node:hover .diamond-shape[data-v-1b09e49e]{box-shadow:0 4px 12px #f59e0b40}.condition-node.selected .diamond-shape[data-v-1b09e49e]{border-color:var(--color-warning);box-shadow:0 0 0 3px #f59e0b33}.condition-node.status-running .diamond-shape[data-v-1b09e49e]{border-color:var(--color-info);box-shadow:0 0 8px #3b82f680;animation:pulse-1b09e49e 1.5s ease-in-out infinite}.condition-node.status-completed .diamond-shape[data-v-1b09e49e]{border-color:var(--color-success)}.condition-node.status-failed .diamond-shape[data-v-1b09e49e]{border-color:var(--color-error)}.condition-node.status-waiting_approval .diamond-shape[data-v-1b09e49e]{border-color:var(--color-warning)}@keyframes pulse-1b09e49e{0%,to{box-shadow:0 0 4px #3b82f64d}50%{box-shadow:0 0 12px #3b82f6b3}}.status-indicator[data-v-1b09e49e]{position:absolute;top:-8px;right:-8px;width:18px;height:18px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:var(--bg-primary);box-shadow:0 1px 4px #00000026;z-index:1}.status-icon[data-v-1b09e49e]{font-size:14px}.running-icon[data-v-1b09e49e]{color:var(--color-info);animation:spin-1b09e49e 1s linear infinite}.completed-icon[data-v-1b09e49e]{color:var(--color-success)}.failed-icon[data-v-1b09e49e]{color:var(--color-error)}.waiting-icon[data-v-1b09e49e]{color:var(--color-warning)}@keyframes spin-1b09e49e{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.diamond-content[data-v-1b09e49e]{display:flex;align-items:center;gap:6px}.node-icon[data-v-1b09e49e]{color:var(--color-warning);font-size:14px}.node-title[data-v-1b09e49e]{font-weight:600;color:var(--text-primary);font-size:13px}.condition-expr[data-v-1b09e49e]{margin-top:4px;padding:2px 8px;background:var(--color-warning-light);border:1px solid var(--color-warning-light);border-radius:4px;font-size:11px;color:var(--color-warning);max-width:180px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.handle-true[data-v-1b09e49e]{background:var(--color-success)}.handle-false[data-v-1b09e49e]{background:var(--color-error)}.label-true[data-v-1b09e49e]{position:absolute;right:-22px;top:50%;transform:translateY(-50%);color:var(--color-success);font-size:11px;font-weight:600}.label-false[data-v-1b09e49e]{position:absolute;bottom:-18px;left:50%;transform:translate(-50%);color:var(--color-error);font-size:11px;font-weight:600}.approval-node[data-v-31a2d3e2]{background:var(--bg-primary);border:2px solid var(--color-primary);border-radius:8px;padding:8px 12px;min-width:160px;font-size:12px;box-shadow:0 2px 8px #00000014;transition:border-color .3s,box-shadow .3s;position:relative}.approval-node[data-v-31a2d3e2]:hover{box-shadow:0 4px 12px #722ed140}.approval-node.selected[data-v-31a2d3e2]{border-color:var(--color-primary-hover);box-shadow:0 0 0 3px #722ed133}.approval-node.paused[data-v-31a2d3e2]{border-color:var(--color-warning);animation:pulse-border-31a2d3e2 2s ease-in-out infinite}.approval-node.status-running[data-v-31a2d3e2]{border-color:var(--color-info);box-shadow:0 0 8px #1890ff80;animation:pulse-31a2d3e2 1.5s ease-in-out infinite}.approval-node.status-completed[data-v-31a2d3e2]{border-color:var(--color-success)}.approval-node.status-failed[data-v-31a2d3e2]{border-color:var(--color-error)}.approval-node.status-waiting_approval[data-v-31a2d3e2]{border-color:var(--color-warning);box-shadow:0 0 8px #faad1480;animation:pulse-waiting-31a2d3e2 2s ease-in-out infinite}@keyframes pulse-31a2d3e2{0%,to{box-shadow:0 0 4px #1890ff4d}50%{box-shadow:0 0 12px #1890ffb3}}@keyframes pulse-waiting-31a2d3e2{0%,to{box-shadow:0 0 4px #faad144d}50%{box-shadow:0 0 12px #faad14b3}}@keyframes pulse-border-31a2d3e2{0%,to{box-shadow:0 2px 8px #00000014}50%{box-shadow:0 0 0 4px #fa8c164d}}.status-indicator[data-v-31a2d3e2]{position:absolute;top:-8px;right:-8px;width:18px;height:18px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:var(--bg-primary);box-shadow:0 1px 4px #00000026}.status-icon[data-v-31a2d3e2]{font-size:14px}.running-icon[data-v-31a2d3e2]{color:var(--color-info);animation:spin-31a2d3e2 1s linear infinite}.completed-icon[data-v-31a2d3e2]{color:var(--color-success)}.failed-icon[data-v-31a2d3e2]{color:var(--color-error)}.waiting-icon[data-v-31a2d3e2]{color:var(--color-warning)}@keyframes spin-31a2d3e2{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.node-header[data-v-31a2d3e2]{display:flex;align-items:center;gap:6px;margin-bottom:4px}.node-icon[data-v-31a2d3e2]{color:var(--color-primary);font-size:14px}.node-title[data-v-31a2d3e2]{font-weight:600;color:var(--text-primary);font-size:13px}.pause-tag[data-v-31a2d3e2]{font-size:10px;line-height:16px;padding:0 4px;margin-left:auto}.node-body[data-v-31a2d3e2]{display:flex;flex-direction:column;gap:2px}.node-detail[data-v-31a2d3e2]{display:flex;gap:4px;color:var(--text-secondary);font-size:11px}.detail-label[data-v-31a2d3e2]{color:var(--text-placeholder)}.detail-value[data-v-31a2d3e2]{color:var(--text-secondary)}.parallel-node[data-v-c3e12e75]{background:var(--bg-primary);border:2px solid var(--color-success);border-radius:8px;padding:8px 12px;min-width:160px;font-size:12px;box-shadow:var(--shadow-sm);transition:border-color .3s,box-shadow .3s;position:relative}.parallel-node[data-v-c3e12e75]:hover{box-shadow:0 4px 12px #10b98140}.parallel-node.selected[data-v-c3e12e75]{border-color:var(--color-success);box-shadow:0 0 0 3px #10b98133}.parallel-node.status-running[data-v-c3e12e75]{border-color:var(--color-info);box-shadow:0 0 8px #3b82f680;animation:pulse-c3e12e75 1.5s ease-in-out infinite}.parallel-node.status-completed[data-v-c3e12e75]{border-color:var(--color-success)}.parallel-node.status-failed[data-v-c3e12e75]{border-color:var(--color-error)}.parallel-node.status-waiting_approval[data-v-c3e12e75]{border-color:var(--color-warning)}@keyframes pulse-c3e12e75{0%,to{box-shadow:0 0 4px #3b82f64d}50%{box-shadow:0 0 12px #3b82f6b3}}.status-indicator[data-v-c3e12e75]{position:absolute;top:-8px;right:-8px;width:18px;height:18px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:var(--bg-primary);box-shadow:0 1px 4px #00000026}.status-icon[data-v-c3e12e75]{font-size:14px}.running-icon[data-v-c3e12e75]{color:var(--color-info);animation:spin-c3e12e75 1s linear infinite}.completed-icon[data-v-c3e12e75]{color:var(--color-success)}.failed-icon[data-v-c3e12e75]{color:var(--color-error)}.waiting-icon[data-v-c3e12e75]{color:var(--color-warning)}@keyframes spin-c3e12e75{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.node-header[data-v-c3e12e75]{display:flex;align-items:center;gap:6px;margin-bottom:4px}.node-icon[data-v-c3e12e75]{color:var(--color-success);font-size:14px}.node-title[data-v-c3e12e75]{font-weight:600;color:var(--text-primary);font-size:13px}.node-body[data-v-c3e12e75]{display:flex;flex-direction:column;gap:2px}.node-detail[data-v-c3e12e75]{display:flex;gap:4px;color:var(--text-secondary);font-size:11px}.detail-label[data-v-c3e12e75]{color:var(--text-placeholder)}.detail-value[data-v-c3e12e75]{color:var(--text-secondary)}.flow-canvas[data-v-f6c82275]{flex:1;display:flex;flex-direction:column;height:100%;position:relative}.canvas-toolbar[data-v-f6c82275]{padding:8px 12px;background:var(--bg-primary);border-bottom:1px solid var(--border-color-split);display:flex;align-items:center;z-index:10}.flow-canvas[data-v-f6c82275] .vue-flow{flex:1}.vue-flow{position:relative;width:100%;height:100%;overflow:hidden;z-index:0;direction:ltr}.vue-flow__container{position:absolute;height:100%;width:100%;left:0;top:0}.vue-flow__pane{z-index:1}.vue-flow__pane.draggable{cursor:grab}.vue-flow__pane.selection{cursor:pointer}.vue-flow__pane.dragging{cursor:grabbing}.vue-flow__transformationpane{transform-origin:0 0;z-index:2;pointer-events:none}.vue-flow__viewport{z-index:4;overflow:clip}.vue-flow__selection{z-index:6}.vue-flow__edge-labels{position:absolute;width:100%;height:100%;pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.vue-flow__nodesselection-rect:focus,.vue-flow__nodesselection-rect:focus-visible{outline:none}.vue-flow .vue-flow__edges{pointer-events:none;overflow:visible}.vue-flow__edge-path,.vue-flow__connection-path{stroke:#b1b1b7;stroke-width:1;fill:none}.vue-flow__edge{pointer-events:visibleStroke;cursor:pointer}.vue-flow__edge.animated path{stroke-dasharray:5;animation:dashdraw .5s linear infinite}.vue-flow__edge.animated path.vue-flow__edge-interaction{stroke-dasharray:none;animation:none}.vue-flow__edge.inactive{pointer-events:none}.vue-flow__edge.selected,.vue-flow__edge:focus,.vue-flow__edge:focus-visible{outline:none}.vue-flow__edge.selected .vue-flow__edge-path,.vue-flow__edge:focus .vue-flow__edge-path,.vue-flow__edge:focus-visible .vue-flow__edge-path{stroke:#555}.vue-flow__edge-textwrapper{pointer-events:all}.vue-flow__edge-text{pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.vue-flow__connection{pointer-events:none}.vue-flow__connection .animated{stroke-dasharray:5;animation:dashdraw .5s linear infinite}.vue-flow__connectionline{z-index:1001}.vue-flow__nodes{pointer-events:none;transform-origin:0 0}.vue-flow__node{position:absolute;-webkit-user-select:none;-moz-user-select:none;user-select:none;pointer-events:all;transform-origin:0 0;box-sizing:border-box;cursor:default}.vue-flow__node.draggable{cursor:grab;pointer-events:all}.vue-flow__node.draggable.dragging{cursor:grabbing}.vue-flow__nodesselection{z-index:3;transform-origin:left top;pointer-events:none}.vue-flow__nodesselection-rect{position:absolute;pointer-events:all;cursor:grab}.vue-flow__nodesselection-rect.dragging{cursor:grabbing}.vue-flow__handle{position:absolute;pointer-events:none;min-width:5px;min-height:5px}.vue-flow__handle.connectable{pointer-events:all;cursor:crosshair}.vue-flow__handle-bottom{left:50%;bottom:0;transform:translate(-50%,50%)}.vue-flow__handle-top{left:50%;top:0;transform:translate(-50%,-50%)}.vue-flow__handle-left{top:50%;left:0;transform:translate(-50%,-50%)}.vue-flow__handle-right{top:50%;right:0;transform:translate(50%,-50%)}.vue-flow__edgeupdater{cursor:move;pointer-events:all}.vue-flow__panel{position:absolute;z-index:5;margin:15px}.vue-flow__panel.top{top:0}.vue-flow__panel.bottom{bottom:0}.vue-flow__panel.left{left:0}.vue-flow__panel.right{right:0}.vue-flow__panel.center{left:50%;transform:translate(-50%)}@keyframes dashdraw{0%{stroke-dashoffset:10}}:root{--vf-node-bg: #fff;--vf-node-text: #222;--vf-connection-path: #b1b1b7;--vf-handle: #555}.vue-flow__edge.updating .vue-flow__edge-path{stroke:#777}.vue-flow__edge-text{font-size:10px}.vue-flow__edge-textbg{fill:#fff}.vue-flow__connection-path{stroke:var(--vf-connection-path)}.vue-flow__node{cursor:grab}.vue-flow__node.selectable:focus,.vue-flow__node.selectable:focus-visible{outline:none}.vue-flow__node-default,.vue-flow__node-input,.vue-flow__node-output{padding:10px;border-radius:3px;width:150px;font-size:12px;text-align:center;border-width:1px;border-style:solid;color:var(--vf-node-text);background-color:var(--vf-node-bg);border-color:var(--vf-node-color)}.vue-flow__node-default.selected,.vue-flow__node-default.selected:hover,.vue-flow__node-input.selected,.vue-flow__node-input.selected:hover,.vue-flow__node-output.selected,.vue-flow__node-output.selected:hover{box-shadow:0 0 0 .5px var(--vf-box-shadow)}.vue-flow__node-default.selected,.vue-flow__node-default:focus,.vue-flow__node-default:focus-visible,.vue-flow__node-input.selected,.vue-flow__node-input:focus,.vue-flow__node-input:focus-visible,.vue-flow__node-output.selected,.vue-flow__node-output:focus,.vue-flow__node-output:focus-visible{outline:none;border:1px solid #555}.vue-flow__node-default .vue-flow__handle,.vue-flow__node-input .vue-flow__handle,.vue-flow__node-output .vue-flow__handle{background:var(--vf-handle)}.vue-flow__node-default.selectable:hover,.vue-flow__node-input.selectable:hover,.vue-flow__node-output.selectable:hover{box-shadow:0 1px 4px 1px #00000014}.vue-flow__node-input{--vf-node-color: var(--vf-node-color, #0041d0);--vf-handle: var(--vf-node-color, #0041d0);--vf-box-shadow: var(--vf-node-color, #0041d0);background:var(--vf-node-bg);border-color:var(--vf-node-color, #0041d0)}.vue-flow__node-input.selected,.vue-flow__node-input:focus,.vue-flow__node-input:focus-visible{outline:none;border:1px solid var(--vf-node-color, #0041d0)}.vue-flow__node-default{--vf-handle: var(--vf-node-color, #1a192b);--vf-box-shadow: var(--vf-node-color, #1a192b);background:var(--vf-node-bg);border-color:var(--vf-node-color, #1a192b)}.vue-flow__node-default.selected,.vue-flow__node-default:focus,.vue-flow__node-default:focus-visible{outline:none;border:1px solid var(--vf-node-color, #1a192b)}.vue-flow__node-output{--vf-handle: var(--vf-node-color, #ff0072);--vf-box-shadow: var(--vf-node-color, #ff0072);background:var(--vf-node-bg);border-color:var(--vf-node-color, #ff0072)}.vue-flow__node-output.selected,.vue-flow__node-output:focus,.vue-flow__node-output:focus-visible{outline:none;border:1px solid var(--vf-node-color, #ff0072)}.vue-flow__nodesselection-rect,.vue-flow__selection{background:#0059dc14;border:1px dotted rgba(0,89,220,.8)}.vue-flow__nodesselection-rect:focus,.vue-flow__nodesselection-rect:focus-visible,.vue-flow__selection:focus,.vue-flow__selection:focus-visible{outline:none}.vue-flow__handle{width:6px;height:6px;background:var(--vf-handle);border:1px solid #fff;border-radius:100%}.vue-flow__controls{box-shadow:0 0 2px 1px #00000014}.vue-flow__controls-button{background:#fefefe;border:none;border-bottom:1px solid #eee;box-sizing:content-box;display:flex;justify-content:center;align-items:center;width:16px;height:16px;cursor:pointer;-webkit-user-select:none;user-select:none;padding:5px}.vue-flow__controls-button svg{width:100%;max-width:12px;max-height:12px}.vue-flow__controls-button:hover{background:#f4f4f4}.vue-flow__controls-button:disabled{pointer-events:none}.vue-flow__controls-button:disabled svg{fill-opacity:.4}.vue-flow .vue-flow__node{transition:border-color .3s ease,box-shadow .3s ease}.property-panel[data-v-78d3d684]{width:300px;border-left:1px solid var(--border-color-split);background:var(--bg-primary);display:flex;flex-direction:column;height:100%;overflow-y:auto}.panel-header[data-v-78d3d684]{display:flex;align-items:center;justify-content:space-between;padding:12px 16px;border-bottom:1px solid var(--border-color-split)}.panel-title[data-v-78d3d684]{font-weight:600;font-size:14px;color:var(--text-primary)}.panel-body[data-v-78d3d684]{padding:12px 16px}.panel-empty[data-v-78d3d684]{display:flex;align-items:center;justify-content:center;height:100%}.workflow-editor[data-v-7459974e]{display:flex;flex-direction:column;height:100%;position:relative}.workflow-list[data-v-7459974e]{display:flex;flex-direction:column;height:100%;padding:var(--space-4)}.list-header[data-v-7459974e]{display:flex;align-items:center;justify-content:space-between;margin-bottom:var(--space-4)}.list-header h3[data-v-7459974e]{margin:0;font-size:var(--font-md)}.list-body[data-v-7459974e]{display:flex;flex-direction:column;gap:var(--space-2)}.workflow-item[data-v-7459974e]{display:flex;align-items:center;padding:var(--space-3) var(--space-4);background:var(--bg-primary);border:1px solid var(--border-color);border-radius:var(--radius-lg);cursor:pointer;transition:all var(--transition-fast);gap:var(--space-3)}.workflow-item[data-v-7459974e]:hover{border-color:var(--color-primary);box-shadow:var(--shadow-md)}.item-name[data-v-7459974e]{font-weight:var(--font-weight-medium);font-size:var(--font-base)}.item-meta[data-v-7459974e]{display:flex;gap:var(--space-2);font-size:var(--font-xs);color:var(--text-tertiary)}.editor-main[data-v-7459974e]{display:flex;flex:1;height:100%;overflow:hidden}.canvas-area[data-v-7459974e]{flex:1;display:flex;flex-direction:column;min-width:0;overflow:hidden}.execution-history[data-v-7459974e]{border-top:1px solid var(--border-color);background:var(--bg-secondary);flex-shrink:0}.history-header[data-v-7459974e]{display:flex;align-items:center;justify-content:space-between;padding:var(--space-2) var(--space-4);cursor:pointer;font-size:var(--font-sm);font-weight:var(--font-weight-medium);color:var(--text-secondary);-webkit-user-select:none;user-select:none}.history-header[data-v-7459974e]:hover{background:var(--bg-tertiary)}.history-body[data-v-7459974e]{padding:0 var(--space-4) var(--space-2)}.back-bar[data-v-7459974e]{position:absolute;top:0;left:200px;right:300px;display:flex;align-items:center;gap:var(--space-2);padding:var(--space-2) var(--space-3);background:#fffffff2;border-bottom:1px solid var(--border-color);z-index:20}.workflow-name[data-v-7459974e]{font-weight:var(--font-weight-semibold);font-size:var(--font-base);color:var(--text-primary)} diff --git a/src/agentkit/server/static/assets/_plugin-vue_export-helper-CBXJ7-XR.js b/src/agentkit/server/static/assets/_plugin-vue_export-helper-CBXJ7-XR.js new file mode 100644 index 0000000..4a9b6b9 --- /dev/null +++ b/src/agentkit/server/static/assets/_plugin-vue_export-helper-CBXJ7-XR.js @@ -0,0 +1 @@ +import{_ as X}from"./index-Ci55MVrK.js";const Tt=(r,t)=>{const e=X({},r);return Object.keys(t).forEach(o=>{const a=e[o];if(a)a.type||a.default?a.default=t[o]:a.def?a.def(t[o]):e[o]={type:a,default:t[o]};else throw new Error(`not have ${o} prop`)}),e};let U=r=>setTimeout(r,16),V=r=>clearTimeout(r);typeof window<"u"&&"requestAnimationFrame"in window&&(U=r=>window.requestAnimationFrame(r),V=r=>window.cancelAnimationFrame(r));let h=0;const w=new Map;function D(r){w.delete(r)}function z(r){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;h+=1;const e=h;function o(a){if(a===0)D(e),r();else{const $=U(()=>{o(a-1)});w.set(e,$)}}return o(t),e}z.cancel=r=>{const t=w.get(r);return D(t),V(t)};let A={};function Q(r,t){}function Y(r,t,e){!t&&!A[e]&&(A[e]=!0)}function Z(r,t){Y(Q,r,t)}const vt=(r,t,e)=>{Z(r,`[ant-design-vue: ${t}] ${e}`)},mt=r=>{if(!r)return!1;if(r.offsetParent)return!0;if(r.getBBox){const t=r.getBBox();if(t.width||t.height)return!0}if(r.getBoundingClientRect){const t=r.getBoundingClientRect();if(t.width||t.height)return!0}return!1};var N=typeof global=="object"&&global&&global.Object===Object&&global,rr=typeof self=="object"&&self&&self.Object===Object&&self,i=N||rr||Function("return this")(),b=i.Symbol,q=Object.prototype,tr=q.hasOwnProperty,er=q.toString,u=b?b.toStringTag:void 0;function nr(r){var t=tr.call(r,u),e=r[u];try{r[u]=void 0;var o=!0}catch{}var a=er.call(r);return o&&(t?r[u]=e:delete r[u]),a}var or=Object.prototype,ar=or.toString;function ir(r){return ar.call(r)}var cr="[object Null]",sr="[object Undefined]",S=b?b.toStringTag:void 0;function g(r){return r==null?r===void 0?sr:cr:S&&S in Object(r)?nr(r):ir(r)}function W(r){var t=typeof r;return r!=null&&(t=="object"||t=="function")}var ur="[object AsyncFunction]",fr="[object Function]",gr="[object GeneratorFunction]",pr="[object Proxy]";function G(r){if(!W(r))return!1;var t=g(r);return t==fr||t==gr||t==ur||t==pr}var l=i["__core-js_shared__"],x=function(){var r=/[^.]+$/.exec(l&&l.keys&&l.keys.IE_PROTO||"");return r?"Symbol(src)_1."+r:""}();function br(r){return!!x&&x in r}var lr=Function.prototype,yr=lr.toString;function c(r){if(r!=null){try{return yr.call(r)}catch{}try{return r+""}catch{}}return""}var dr=/[\\^$.*+?()[\]{}|]/g,jr=/^\[object .+?Constructor\]$/,Tr=Function.prototype,vr=Object.prototype,mr=Tr.toString,wr=vr.hasOwnProperty,Or=RegExp("^"+mr.call(wr).replace(dr,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function $r(r){if(!W(r)||br(r))return!1;var t=G(r)?Or:jr;return t.test(c(r))}function hr(r,t){return r==null?void 0:r[t]}function p(r,t){var e=hr(r,t);return $r(e)?e:void 0}var d=p(i,"Map"),wt=Array.isArray;function O(r){return r!=null&&typeof r=="object"}var Ar="[object Arguments]";function P(r){return O(r)&&g(r)==Ar}var K=Object.prototype,Sr=K.hasOwnProperty,xr=K.propertyIsEnumerable,Ot=P(function(){return arguments}())?P:function(r){return O(r)&&Sr.call(r,"callee")&&!xr.call(r,"callee")};function Pr(){return!1}var L=typeof exports=="object"&&exports&&!exports.nodeType&&exports,I=L&&typeof module=="object"&&module&&!module.nodeType&&module,Ir=I&&I.exports===L,M=Ir?i.Buffer:void 0,Mr=M?M.isBuffer:void 0,$t=Mr||Pr,Er=9007199254740991;function H(r){return typeof r=="number"&&r>-1&&r%1==0&&r<=Er}var _r="[object Arguments]",Br="[object Array]",Fr="[object Boolean]",Cr="[object Date]",kr="[object Error]",Rr="[object Function]",Ur="[object Map]",Vr="[object Number]",Dr="[object Object]",Nr="[object RegExp]",qr="[object Set]",Wr="[object String]",Gr="[object WeakMap]",Kr="[object ArrayBuffer]",Lr="[object DataView]",Hr="[object Float32Array]",Jr="[object Float64Array]",Xr="[object Int8Array]",zr="[object Int16Array]",Qr="[object Int32Array]",Yr="[object Uint8Array]",Zr="[object Uint8ClampedArray]",rt="[object Uint16Array]",tt="[object Uint32Array]",n={};n[Hr]=n[Jr]=n[Xr]=n[zr]=n[Qr]=n[Yr]=n[Zr]=n[rt]=n[tt]=!0;n[_r]=n[Br]=n[Kr]=n[Fr]=n[Lr]=n[Cr]=n[kr]=n[Rr]=n[Ur]=n[Vr]=n[Dr]=n[Nr]=n[qr]=n[Wr]=n[Gr]=!1;function et(r){return O(r)&&H(r.length)&&!!n[g(r)]}function nt(r){return function(t){return r(t)}}var J=typeof exports=="object"&&exports&&!exports.nodeType&&exports,f=J&&typeof module=="object"&&module&&!module.nodeType&&module,ot=f&&f.exports===J,y=ot&&N.process,E=function(){try{var r=f&&f.require&&f.require("util").types;return r||y&&y.binding&&y.binding("util")}catch{}}(),_=E&&E.isTypedArray,ht=_?nt(_):et,at=Object.prototype;function it(r){var t=r&&r.constructor,e=typeof t=="function"&&t.prototype||at;return r===e}function ct(r,t){return function(e){return r(t(e))}}var st=ct(Object.keys,Object),ut=Object.prototype,ft=ut.hasOwnProperty;function At(r){if(!it(r))return st(r);var t=[];for(var e in Object(r))ft.call(r,e)&&e!="constructor"&&t.push(e);return t}function St(r){return r!=null&&H(r.length)&&!G(r)}var j=p(i,"DataView"),T=p(i,"Promise"),v=p(i,"Set"),m=p(i,"WeakMap"),B="[object Map]",gt="[object Object]",F="[object Promise]",C="[object Set]",k="[object WeakMap]",R="[object DataView]",pt=c(j),bt=c(d),lt=c(T),yt=c(v),dt=c(m),s=g;(j&&s(new j(new ArrayBuffer(1)))!=R||d&&s(new d)!=B||T&&s(T.resolve())!=F||v&&s(new v)!=C||m&&s(new m)!=k)&&(s=function(r){var t=g(r),e=t==gt?r.constructor:void 0,o=e?c(e):"";if(o)switch(o){case pt:return R;case bt:return B;case lt:return F;case yt:return C;case dt:return k}return t});const xt=(r,t)=>{const e=r.__vccOpts||r;for(const[o,a]of t)e[o]=a;return e};export{d as M,b as S,xt as _,St as a,wt as b,Q as c,vt as d,mt as e,Z as f,W as g,it as h,Tt as i,O as j,s as k,nt as l,$t as m,E as n,g as o,p,Ot as q,i as r,H as s,ct as t,ht as u,At as v,z as w,v as x}; diff --git a/src/agentkit/server/static/assets/base-B4siOKZE.js b/src/agentkit/server/static/assets/base-B4siOKZE.js new file mode 100644 index 0000000..c3ab570 --- /dev/null +++ b/src/agentkit/server/static/assets/base-B4siOKZE.js @@ -0,0 +1 @@ +var hn=Object.defineProperty;var vn=(t,e,n)=>e in t?hn(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n;var Qt=(t,e,n)=>vn(t,typeof e!="symbol"?e+"":e,n);import{d as j,B as jt,a9 as Ne,$ as Be,A as W,S as rt,_ as g,ao as gn,M as mn,P as T,c as x,aE as kt,E as U,m as He,bz as Ie,bA as bn,J as Ve,N as nt,r as Y,Q as yn,G as $,g as z,bd as tt,C as Ht,aN as wn,v as _n,Y as Jt,aj as On,bB as Pn,aP as Le,b9 as Tn,bC as te,F as Cn,a_ as xn,a$ as Sn,y as An,be as Mn,x as En,H as $n,D as Dn,aI as pt,p as Rn,q as ze,s as Nn,z as Bn,aD as Hn,bD as In,aH as Vn,bb as Ln,aF as zn}from"./index-Ci55MVrK.js";import{w as G,p as Fn,M as Fe,r as Wn,S as ee,b as yt,q as jn,m as It,u as We,a as kn,v as Xn,k as ne,j as oe,e as Yn,i as Un}from"./_plugin-vue_export-helper-CBXJ7-XR.js";import{c as wt,d as st,s as at,P as Gn,i as qn}from"./zoom-C2fVs05p.js";var je=function(){if(typeof Map<"u")return Map;function t(e,n){var o=-1;return e.some(function(i,r){return i[0]===n?(o=r,!0):!1}),o}return function(){function e(){this.__entries__=[]}return Object.defineProperty(e.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),e.prototype.get=function(n){var o=t(this.__entries__,n),i=this.__entries__[o];return i&&i[1]},e.prototype.set=function(n,o){var i=t(this.__entries__,n);~i?this.__entries__[i][1]=o:this.__entries__.push([n,o])},e.prototype.delete=function(n){var o=this.__entries__,i=t(o,n);~i&&o.splice(i,1)},e.prototype.has=function(n){return!!~t(this.__entries__,n)},e.prototype.clear=function(){this.__entries__.splice(0)},e.prototype.forEach=function(n,o){o===void 0&&(o=null);for(var i=0,r=this.__entries__;i0},t.prototype.connect_=function(){!Vt||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),eo?(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)},t.prototype.disconnect_=function(){!Vt||!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)},t.prototype.onTransitionEnd_=function(e){var n=e.propertyName,o=n===void 0?"":n,i=to.some(function(r){return!!~o.indexOf(r)});i&&this.refresh()},t.getInstance=function(){return this.instance_||(this.instance_=new t),this.instance_},t.instance_=null,t}(),ke=function(t,e){for(var n=0,o=Object.keys(e);n"u"||!(Element instanceof Object))){if(!(e instanceof ot(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(e)||(n.set(e,new co(e)),this.controller_.addObserver(this),this.controller_.refresh())}},t.prototype.unobserve=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(e instanceof ot(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(e)&&(n.delete(e),n.size||this.controller_.removeObserver(this))}},t.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},t.prototype.gatherActive=function(){var e=this;this.clearActive(),this.observations_.forEach(function(n){n.isActive()&&e.activeObservations_.push(n)})},t.prototype.broadcastActive=function(){if(this.hasActive()){var e=this.callbackCtx_,n=this.activeObservations_.map(function(o){return new fo(o.target,o.broadcastRect())});this.callback_.call(e,n,e),this.clearActive()}},t.prototype.clearActive=function(){this.activeObservations_.splice(0)},t.prototype.hasActive=function(){return this.activeObservations_.length>0},t}(),Ye=typeof WeakMap<"u"?new WeakMap:new je,Ue=function(){function t(e){if(!(this instanceof t))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=no.getInstance(),o=new po(e,n,this);Ye.set(this,o)}return t}();["observe","unobserve","disconnect"].forEach(function(t){Ue.prototype[t]=function(){var e;return(e=Ye.get(this))[t].apply(e,arguments)}});var Ge=function(){return typeof _t.ResizeObserver<"u"?_t.ResizeObserver:Ue}();const ns=j({compatConfig:{MODE:3},name:"ResizeObserver",props:{disabled:Boolean,onResize:Function},emits:["resize"],setup(t,e){let{slots:n}=e;const o=mn({width:0,height:0,offsetHeight:0,offsetWidth:0});let i=null,r=null;const s=()=>{r&&(r.disconnect(),r=null)},a=c=>{const{onResize:p}=t,f=c[0].target,{width:d,height:h}=f.getBoundingClientRect(),{offsetWidth:m,offsetHeight:_}=f,w=Math.floor(d),y=Math.floor(h);if(o.width!==w||o.height!==y||o.offsetWidth!==m||o.offsetHeight!==_){const O={width:w,height:y,offsetWidth:m,offsetHeight:_};g(o,O),p&&Promise.resolve().then(()=>{p(g(g({},O),{offsetWidth:m,offsetHeight:_}),f)})}},u=gn(),l=()=>{const{disabled:c}=t;if(c){s();return}const p=rt(u);p!==i&&(s(),i=p),!r&&p&&(r=new Ge(a),r.observe(p))};return jt(()=>{l()}),Ne(()=>{l()}),Be(()=>{s()}),W(()=>t.disabled,()=>{l()},{flush:"post"}),()=>{var c;return(c=n.default)===null||c===void 0?void 0:c.call(n)[0]}}}),Pt=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"],ho=(t,e,n,o,i)=>{const r=t/2,s=0,a=r,u=n*1/Math.sqrt(2),l=r-n*(1-1/Math.sqrt(2)),c=r-e*(1/Math.sqrt(2)),p=n*(Math.sqrt(2)-1)+e*(1/Math.sqrt(2)),f=2*r-c,d=p,h=2*r-u,m=l,_=2*r-s,w=a,y=r*Math.sqrt(2)+n*(Math.sqrt(2)-2),O=n*(Math.sqrt(2)-1);return{pointerEvents:"none",width:t,height:t,overflow:"hidden","&::after":{content:'""',position:"absolute",width:y,height:y,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${e}px 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:i,zIndex:0,background:"transparent"},"&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:t,height:t/2,background:o,clipPath:{_multi_value_:!0,value:[`polygon(${O}px 100%, 50% ${O}px, ${2*r-O}px 100%, ${O}px 100%)`,`path('M ${s} ${a} A ${n} ${n} 0 0 0 ${u} ${l} L ${c} ${p} A ${e} ${e} 0 0 1 ${f} ${d} L ${h} ${m} A ${n} ${n} 0 0 0 ${_} ${w} Z')`]},content:'""'}}};function vo(t,e){return Pt.reduce((n,o)=>{const i=t[`${o}-1`],r=t[`${o}-3`],s=t[`${o}-6`],a=t[`${o}-7`];return g(g({},n),e(o,{lightColor:i,lightBorderColor:r,darkColor:s,textColor:a}))},{})}function go(){return""}function mo(t){return t?t.ownerDocument:window.document}function qe(){}const bo=()=>({action:T.oneOfType([T.string,T.arrayOf(T.string)]).def([]),showAction:T.any.def([]),hideAction:T.any.def([]),getPopupClassNameFromAlign:T.any.def(go),onPopupVisibleChange:Function,afterPopupVisibleChange:T.func.def(qe),popup:T.any,arrow:T.bool.def(!0),popupStyle:{type:Object,default:void 0},prefixCls:T.string.def("rc-trigger-popup"),popupClassName:T.string.def(""),popupPlacement:String,builtinPlacements:T.object,popupTransitionName:String,popupAnimation:T.any,mouseEnterDelay:T.number.def(0),mouseLeaveDelay:T.number.def(.1),zIndex:Number,focusDelay:T.number.def(0),blurDelay:T.number.def(.15),getPopupContainer:Function,getDocument:T.func.def(mo),forceRender:{type:Boolean,default:void 0},destroyPopupOnHide:{type:Boolean,default:!1},mask:{type:Boolean,default:!1},maskClosable:{type:Boolean,default:!0},popupAlign:T.object.def(()=>({})),popupVisible:{type:Boolean,default:void 0},defaultPopupVisible:{type:Boolean,default:!1},maskTransitionName:String,maskAnimation:String,stretch:String,alignPoint:{type:Boolean,default:void 0},autoDestroy:{type:Boolean,default:!1},mobile:Object,getTriggerDOMNode:Function}),Xt={visible:Boolean,prefixCls:String,zIndex:Number,destroyPopupOnHide:Boolean,forceRender:Boolean,arrow:{type:Boolean,default:!0},animation:[String,Object],transitionName:String,stretch:{type:String},align:{type:Object},point:{type:Object},getRootDomNode:{type:Function},getClassNameFromAlign:{type:Function},onAlign:{type:Function},onMouseenter:{type:Function},onMouseleave:{type:Function},onMousedown:{type:Function},onTouchstart:{type:Function}},yo=g(g({},Xt),{mobile:{type:Object}}),wo=g(g({},Xt),{mask:Boolean,mobile:{type:Object},maskAnimation:String,maskTransitionName:String});function Ze(t){const{prefixCls:e,visible:n,zIndex:o,mask:i,maskAnimation:r,maskTransitionName:s}=t;if(!i)return null;let a={};return(s||r)&&(a=Ie({prefixCls:e,transitionName:s,animation:r})),x(kt,U({appear:!0},a),{default:()=>[He(x("div",{style:{zIndex:o},class:`${e}-mask`},null),[[bn("if"),n]])]})}Ze.displayName="Mask";const _o=j({compatConfig:{MODE:3},name:"MobilePopupInner",inheritAttrs:!1,props:yo,emits:["mouseenter","mouseleave","mousedown","touchstart","align"],setup(t,e){let{expose:n,slots:o}=e;const i=Y();return n({forceAlign:()=>{},getElement:()=>i.value}),()=>{var r;const{zIndex:s,visible:a,prefixCls:u,mobile:{popupClassName:l,popupStyle:c,popupMotion:p={},popupRender:f}={}}=t,d=g({zIndex:s},c);let h=Ve((r=o.default)===null||r===void 0?void 0:r.call(o));h.length>1&&(h=x("div",{class:`${u}-content`},[h])),f&&(h=f(h));const m=nt(u,l);return x(kt,U({ref:i},p),{default:()=>[a?x("div",{class:m,style:d},[h]):null]})}}});var Oo=function(t,e,n,o){function i(r){return r instanceof n?r:new n(function(s){s(r)})}return new(n||(n=Promise))(function(r,s){function a(c){try{l(o.next(c))}catch(p){s(p)}}function u(c){try{l(o.throw(c))}catch(p){s(p)}}function l(c){c.done?r(c.value):i(c.value).then(a,u)}l((o=o.apply(t,e||[])).next())})};const re=["measure","align",null,"motion"],Po=(t,e)=>{const n=$(null),o=$(),i=$(!1);function r(u){i.value||(n.value=u)}function s(){G.cancel(o.value)}function a(u){s(),o.value=G(()=>{let l=n.value;switch(n.value){case"align":l="motion";break;case"motion":l="stable";break}r(l),u==null||u()})}return W(t,()=>{r("measure")},{immediate:!0,flush:"post"}),jt(()=>{W(n,()=>{switch(n.value){case"measure":e();break}n.value&&(o.value=G(()=>Oo(void 0,void 0,void 0,function*(){const u=re.indexOf(n.value),l=re[u+1];l&&u!==-1&&r(l)})))},{immediate:!0,flush:"post"})}),yn(()=>{i.value=!0,s()}),[n,a]},To=t=>{const e=$({width:0,height:0});function n(i){e.value={width:i.offsetWidth,height:i.offsetHeight}}return[z(()=>{const i={};if(t.value){const{width:r,height:s}=e.value;t.value.indexOf("height")!==-1&&s?i.height=`${s}px`:t.value.indexOf("minHeight")!==-1&&s&&(i.minHeight=`${s}px`),t.value.indexOf("width")!==-1&&r?i.width=`${r}px`:t.value.indexOf("minWidth")!==-1&&r&&(i.minWidth=`${r}px`)}return i}),n]};function se(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,o)}return n}function ae(t){for(var e=1;e=0&&n.left>=0&&n.bottom>n.top&&n.right>n.left?n:null}function Uo(t,e,n,o){var i=b.clone(t),r={width:e.width,height:e.height};return o.adjustX&&i.left=n.left&&i.left+r.width>n.right&&(r.width-=i.left+r.width-n.right),o.adjustX&&i.left+r.width>n.right&&(i.left=Math.max(n.right-r.width,n.left)),o.adjustY&&i.top=n.top&&i.top+r.height>n.bottom&&(r.height-=i.top+r.height-n.bottom),o.adjustY&&i.top+r.height>n.bottom&&(i.top=Math.max(n.bottom-r.height,n.top)),b.mix(i,r)}function qt(t){var e,n,o;if(!b.isWindow(t)&&t.nodeType!==9)e=b.offset(t),n=b.outerWidth(t),o=b.outerHeight(t);else{var i=b.getWindow(t);e={left:b.getWindowScrollLeft(i),top:b.getWindowScrollTop(i)},n=b.viewportWidth(i),o=b.viewportHeight(i)}return e.width=n,e.height=o,e}function ve(t,e){var n=e.charAt(0),o=e.charAt(1),i=t.width,r=t.height,s=t.left,a=t.top;return n==="c"?a+=r/2:n==="b"&&(a+=r),o==="c"?s+=i/2:o==="r"&&(s+=i),{left:s,top:a}}function ht(t,e,n,o,i){var r=ve(e,n[1]),s=ve(t,n[0]),a=[s.left-r.left,s.top-r.top];return{left:Math.round(t.left-a[0]+o[0]-i[0]),top:Math.round(t.top-a[1]+o[1]-i[1])}}function ge(t,e,n){return t.leftn.right}function me(t,e,n){return t.topn.bottom}function Go(t,e,n){return t.left>n.right||t.left+e.widthn.bottom||t.top+e.height=n.right||o.top>=n.bottom}function Zt(t,e,n){var o=n.target||e,i=qt(o),r=!Zo(o,n.overflow&&n.overflow.alwaysByViewport);return rn(t,i,n,r)}Zt.__getOffsetParent=Wt;Zt.__getVisibleRectForElement=Gt;function Ko(t,e,n){var o,i,r=b.getDocument(t),s=r.defaultView||r.parentWindow,a=b.getWindowScrollLeft(s),u=b.getWindowScrollTop(s),l=b.viewportWidth(s),c=b.viewportHeight(s);"pageX"in e?o=e.pageX:o=a+e.clientX,"pageY"in e?i=e.pageY:i=u+e.clientY;var p={left:o,top:i,width:0,height:0},f=o>=0&&o<=a+l&&i>=0&&i<=u+c,d=[n.points[0],"cc"];return rn(t,p,ae(ae({},n),{},{points:d}),f)}function Qo(t,e){return t===e?!0:!t||!e?!1:"pageX"in e&&"pageY"in e?t.pageX===e.pageX&&t.pageY===e.pageY:"clientX"in e&&"clientY"in e?t.clientX===e.clientX&&t.clientY===e.clientY:!1}function Jo(t,e){t!==document.activeElement&&tt(e,t)&&typeof t.focus=="function"&&t.focus()}function we(t,e){let n=null,o=null;function i(s){let[{target:a}]=s;if(!document.documentElement.contains(a))return;const{width:u,height:l}=a.getBoundingClientRect(),c=Math.floor(u),p=Math.floor(l);(n!==c||o!==p)&&Promise.resolve().then(()=>{e({width:c,height:p})}),n=c,o=p}const r=new Ge(i);return t&&r.observe(t),()=>{r.disconnect()}}const ti=(t,e)=>{let n=!1,o=null;function i(){clearTimeout(o)}function r(s){if(!n||s===!0){if(t()===!1)return;n=!0,i(),o=setTimeout(()=>{n=!1},e.value)}else i(),o=setTimeout(()=>{n=!1,r()},e.value)}return[r,()=>{n=!1,i()}]};function ei(){this.__data__=[],this.size=0}function sn(t,e){return t===e||t!==t&&e!==e}function At(t,e){for(var n=t.length;n--;)if(sn(t[n][0],e))return n;return-1}var ni=Array.prototype,oi=ni.splice;function ii(t){var e=this.__data__,n=At(e,t);if(n<0)return!1;var o=e.length-1;return n==o?e.pop():oi.call(e,n,1),--this.size,!0}function ri(t){var e=this.__data__,n=At(e,t);return n<0?void 0:e[n][1]}function si(t){return At(this.__data__,t)>-1}function ai(t,e){var n=this.__data__,o=At(n,t);return o<0?(++this.size,n.push([t,e])):n[o][1]=e,this}function k(t){var e=-1,n=t==null?0:t.length;for(this.clear();++ea))return!1;var l=r.get(t),c=r.get(e);if(l&&c)return l==e&&c==t;var p=-1,f=!0,d=n&Ii?new Ct:void 0;for(r.set(t,e),r.set(e,t);++p-1&&t%1==0&&t{const{disabled:f,target:d,align:h,onAlign:m}=t;if(!f&&d&&r.value){const _=r.value;let w;const y=Ae(d),O=Me(d);i.value.element=y,i.value.point=O,i.value.align=h;const{activeElement:A}=document;return y&&Yn(y)?w=Zt(_,y,h):O&&(w=Ko(_,O,h)),Jo(A,_),m&&w&&m(_,w),!0}return!1},z(()=>t.monitorBufferTime)),u=Y({cancel:()=>{}}),l=Y({cancel:()=>{}}),c=()=>{const f=t.target,d=Ae(f),h=Me(f);r.value!==l.value.element&&(l.value.cancel(),l.value.element=r.value,l.value.cancel=we(r.value,s)),(i.value.element!==d||!Qo(i.value.point,h)||!Or(i.value.align,t.align))&&(s(),u.value.element!==d&&(u.value.cancel(),u.value.element=d,u.value.cancel=we(d,s)))};jt(()=>{Ht(()=>{c()})}),Ne(()=>{Ht(()=>{c()})}),W(()=>t.disabled,f=>{f?a():s()},{immediate:!0,flush:"post"});const p=Y(null);return W(()=>t.monitorWindowResize,f=>{f?p.value||(p.value=st(window,"resize",s)):p.value&&(p.value.remove(),p.value=null)},{flush:"post"}),Be(()=>{u.value.cancel(),l.value.cancel(),p.value&&p.value.remove(),a()}),n({forceAlign:()=>s(!0)}),()=>{const f=o==null?void 0:o.default();return f?wt(f[0],{ref:r},!0,!0):null}}}),Cr=j({compatConfig:{MODE:3},name:"PopupInner",inheritAttrs:!1,props:Xt,emits:["mouseenter","mouseleave","mousedown","touchstart","align"],setup(t,e){let{expose:n,attrs:o,slots:i}=e;const r=$(),s=$(),a=$(),[u,l]=To(On(t,"stretch")),c=()=>{t.stretch&&l(t.getRootDomNode())},p=$(!1);let f;W(()=>t.visible,C=>{clearTimeout(f),C?f=setTimeout(()=>{p.value=t.visible}):p.value=!1},{immediate:!0});const[d,h]=Po(p,c),m=$(),_=()=>t.point?t.point:t.getRootDomNode,w=()=>{var C;(C=r.value)===null||C===void 0||C.forceAlign()},y=(C,H)=>{var M;const D=t.getClassNameFromAlign(H),v=a.value;a.value!==D&&(a.value=D),d.value==="align"&&(v!==D?Promise.resolve().then(()=>{w()}):h(()=>{var P;(P=m.value)===null||P===void 0||P.call(m)}),(M=t.onAlign)===null||M===void 0||M.call(t,C,H))},O=z(()=>{const C=typeof t.animation=="object"?t.animation:Ie(t);return["onAfterEnter","onAfterLeave"].forEach(H=>{const M=C[H];C[H]=D=>{h(),d.value="stable",M==null||M(D)}}),C}),A=()=>new Promise(C=>{m.value=C});W([O,d],()=>{!O.value&&d.value==="motion"&&h()},{immediate:!0}),n({forceAlign:w,getElement:()=>s.value.$el||s.value});const N=z(()=>{var C;return!(!((C=t.align)===null||C===void 0)&&C.points&&(d.value==="align"||d.value==="stable"))});return()=>{var C;const{zIndex:H,align:M,prefixCls:D,destroyPopupOnHide:v,onMouseenter:P,onMouseleave:L,onTouchstart:E=()=>{},onMousedown:B}=t,S=d.value,R=[g(g({},u.value),{zIndex:H,opacity:S==="motion"||S==="stable"||!p.value?null:0,pointerEvents:!p.value&&S!=="stable"?"none":null}),o.style];let Z=Ve((C=i.default)===null||C===void 0?void 0:C.call(i,{visible:t.visible}));Z.length>1&&(Z=x("div",{class:`${D}-content`},[Z]));const X=nt(D,o.class,a.value,!t.arrow&&`${D}-arrow-hidden`),Et=p.value||!t.visible?wn(O.value.name,O.value):{};return x(kt,U(U({ref:s},Et),{},{onBeforeEnter:A}),{default:()=>!v||t.visible?He(x(Tr,{target:_(),key:"popup",ref:r,monitorWindowResize:!0,disabled:N.value,align:M,onAlign:y},{default:()=>x("div",{class:X,onMouseenter:P,onMouseleave:L,onMousedown:Jt(B,["capture"]),[at?"onTouchstartPassive":"onTouchstart"]:Jt(E,["capture"]),style:R},[Z])}),[[_n,p.value]]):null})}}}),xr=j({compatConfig:{MODE:3},name:"Popup",inheritAttrs:!1,props:wo,setup(t,e){let{attrs:n,slots:o,expose:i}=e;const r=$(!1),s=$(!1),a=$(),u=$();return W([()=>t.visible,()=>t.mobile],()=>{r.value=t.visible,t.visible&&t.mobile&&(s.value=!0)},{immediate:!0,flush:"post"}),i({forceAlign:()=>{var l;(l=a.value)===null||l===void 0||l.forceAlign()},getElement:()=>{var l;return(l=a.value)===null||l===void 0?void 0:l.getElement()}}),()=>{const l=g(g(g({},t),n),{visible:r.value}),c=s.value?x(_o,U(U({},l),{},{mobile:t.mobile,ref:a}),{default:o.default}):x(Cr,U(U({},l),{},{ref:a}),{default:o.default});return x("div",{ref:u},[x(Ze,l,null),c])}}});function Sr(t,e,n){return n?t[0]===e[0]:t[0]===e[0]&&t[1]===e[1]}function Ee(t,e,n){const o=t[e]||{};return g(g({},o),n)}function Ar(t,e,n,o){const{points:i}=n,r=Object.keys(t);for(let s=0;s0&&arguments[0]!==void 0?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0,n=typeof t=="function"?t(this.$data,this.$props):t;if(this.getDerivedStateFromProps){const o=this.getDerivedStateFromProps(Pn(this),g(g({},this.$data),n));if(o===null)return;n=g(g({},n),o||{})}g(this.$data,n),this._.isMounted&&this.$forceUpdate(),Ht(()=>{e&&e()})},__emit(){const t=[].slice.call(arguments,0);let e=t[0];e=`on${e[0].toUpperCase()}${e.substring(1)}`;const n=this.$props[e]||this.$attrs[e];if(t.length&&n)if(Array.isArray(n))for(let o=0,i=n.length;o{const{popupPlacement:i,popupAlign:r,builtinPlacements:s}=t;return i&&s?Ee(s,i,r):r}),n=$(null),o=i=>{n.value=i};return{vcTriggerContext:En("vcTriggerContext",{}),popupRef:n,setPopupRef:o,triggerRef:$(null),align:e,focusTime:null,clickOutsideHandler:null,contextmenuOutsideHandler1:null,contextmenuOutsideHandler2:null,touchOutsideHandler:null,attachId:null,delayTimer:null,hasPopupMouseDown:!1,preClickTime:null,preTouchTime:null,mouseDownTimeout:null,childOriginEvents:{}}},data(){const t=this.$props;let e;return this.popupVisible!==void 0?e=!!t.popupVisible:e=!!t.defaultPopupVisible,Er.forEach(n=>{this[`fire${n}`]=o=>{this.fireEvents(n,o)}}),{prevPopupVisible:e,sPopupVisible:e,point:null}},watch:{popupVisible(t){t!==void 0&&(this.prevPopupVisible=this.sPopupVisible,this.sPopupVisible=t)}},created(){An("vcTriggerContext",{onPopupMouseDown:this.onPopupMouseDown,onPopupMouseenter:this.onPopupMouseenter,onPopupMouseleave:this.onPopupMouseleave}),Mn(this)},deactivated(){this.setPopupVisible(!1)},mounted(){this.$nextTick(()=>{this.updatedCal()})},updated(){this.$nextTick(()=>{this.updatedCal()})},beforeUnmount(){this.clearDelayTimer(),this.clearOutsideHandler(),clearTimeout(this.mouseDownTimeout),G.cancel(this.attachId)},methods:{updatedCal(){const t=this.$props;if(this.$data.sPopupVisible){let n;!this.clickOutsideHandler&&(this.isClickToHide()||this.isContextmenuToShow())&&(n=t.getDocument(this.getRootDomNode()),this.clickOutsideHandler=st(n,"mousedown",this.onDocumentClick)),this.touchOutsideHandler||(n=n||t.getDocument(this.getRootDomNode()),this.touchOutsideHandler=st(n,"touchstart",this.onDocumentClick,at?{passive:!1}:!1)),!this.contextmenuOutsideHandler1&&this.isContextmenuToShow()&&(n=n||t.getDocument(this.getRootDomNode()),this.contextmenuOutsideHandler1=st(n,"scroll",this.onContextmenuClose)),!this.contextmenuOutsideHandler2&&this.isContextmenuToShow()&&(this.contextmenuOutsideHandler2=st(window,"blur",this.onContextmenuClose))}else this.clearOutsideHandler()},onMouseenter(t){const{mouseEnterDelay:e}=this.$props;this.fireEvents("onMouseenter",t),this.delaySetPopupVisible(!0,e,e?null:t)},onMouseMove(t){this.fireEvents("onMousemove",t),this.setPoint(t)},onMouseleave(t){this.fireEvents("onMouseleave",t),this.delaySetPopupVisible(!1,this.$props.mouseLeaveDelay)},onPopupMouseenter(){const{vcTriggerContext:t={}}=this;t.onPopupMouseenter&&t.onPopupMouseenter(),this.clearDelayTimer()},onPopupMouseleave(t){var e;if(t&&t.relatedTarget&&!t.relatedTarget.setTimeout&&tt((e=this.popupRef)===null||e===void 0?void 0:e.getElement(),t.relatedTarget))return;this.isMouseLeaveToHide()&&this.delaySetPopupVisible(!1,this.$props.mouseLeaveDelay);const{vcTriggerContext:n={}}=this;n.onPopupMouseleave&&n.onPopupMouseleave(t)},onFocus(t){this.fireEvents("onFocus",t),this.clearDelayTimer(),this.isFocusToShow()&&(this.focusTime=Date.now(),this.delaySetPopupVisible(!0,this.$props.focusDelay))},onMousedown(t){this.fireEvents("onMousedown",t),this.preClickTime=Date.now()},onTouchstart(t){this.fireEvents("onTouchstart",t),this.preTouchTime=Date.now()},onBlur(t){tt(t.target,t.relatedTarget||document.activeElement)||(this.fireEvents("onBlur",t),this.clearDelayTimer(),this.isBlurToHide()&&this.delaySetPopupVisible(!1,this.$props.blurDelay))},onContextmenu(t){t.preventDefault(),this.fireEvents("onContextmenu",t),this.setPopupVisible(!0,t)},onContextmenuClose(){this.isContextmenuToShow()&&this.close()},onClick(t){if(this.fireEvents("onClick",t),this.focusTime){let n;if(this.preClickTime&&this.preTouchTime?n=Math.min(this.preClickTime,this.preTouchTime):this.preClickTime?n=this.preClickTime:this.preTouchTime&&(n=this.preTouchTime),Math.abs(n-this.focusTime)<20)return;this.focusTime=0}this.preClickTime=0,this.preTouchTime=0,this.isClickToShow()&&(this.isClickToHide()||this.isBlurToHide())&&t&&t.preventDefault&&t.preventDefault(),t&&t.domEvent&&t.domEvent.preventDefault();const e=!this.$data.sPopupVisible;(this.isClickToHide()&&!e||e&&this.isClickToShow())&&this.setPopupVisible(!this.$data.sPopupVisible,t)},onPopupMouseDown(){const{vcTriggerContext:t={}}=this;this.hasPopupMouseDown=!0,clearTimeout(this.mouseDownTimeout),this.mouseDownTimeout=setTimeout(()=>{this.hasPopupMouseDown=!1},0),t.onPopupMouseDown&&t.onPopupMouseDown(...arguments)},onDocumentClick(t){if(this.$props.mask&&!this.$props.maskClosable)return;const e=t.target,n=this.getRootDomNode(),o=this.getPopupDomNode();(!tt(n,e)||this.isContextMenuOnly())&&!tt(o,e)&&!this.hasPopupMouseDown&&this.delaySetPopupVisible(!1,.1)},getPopupDomNode(){var t;return((t=this.popupRef)===null||t===void 0?void 0:t.getElement())||null},getRootDomNode(){var t,e,n,o;const{getTriggerDOMNode:i}=this.$props;if(i){const r=((e=(t=this.triggerRef)===null||t===void 0?void 0:t.$el)===null||e===void 0?void 0:e.nodeName)==="#comment"?null:rt(this.triggerRef);return rt(i(r))}try{const r=((o=(n=this.triggerRef)===null||n===void 0?void 0:n.$el)===null||o===void 0?void 0:o.nodeName)==="#comment"?null:rt(this.triggerRef);if(r)return r}catch{}return rt(this)},handleGetPopupClassFromAlign(t){const e=[],n=this.$props,{popupPlacement:o,builtinPlacements:i,prefixCls:r,alignPoint:s,getPopupClassNameFromAlign:a}=n;return o&&i&&e.push(Ar(i,r,t,s)),a&&e.push(a(t)),e.join(" ")},getPopupAlign(){const t=this.$props,{popupPlacement:e,popupAlign:n,builtinPlacements:o}=t;return e&&o?Ee(o,e,n):n},getComponent(){const t={};this.isMouseEnterToShow()&&(t.onMouseenter=this.onPopupMouseenter),this.isMouseLeaveToHide()&&(t.onMouseleave=this.onPopupMouseleave),t.onMousedown=this.onPopupMouseDown,t[at?"onTouchstartPassive":"onTouchstart"]=this.onPopupMouseDown;const{handleGetPopupClassFromAlign:e,getRootDomNode:n,$attrs:o}=this,{prefixCls:i,destroyPopupOnHide:r,popupClassName:s,popupAnimation:a,popupTransitionName:u,popupStyle:l,mask:c,maskAnimation:p,maskTransitionName:f,zIndex:d,stretch:h,alignPoint:m,mobile:_,arrow:w,forceRender:y}=this.$props,{sPopupVisible:O,point:A}=this.$data,N=g(g({prefixCls:i,arrow:w,destroyPopupOnHide:r,visible:O,point:m?A:null,align:this.align,animation:a,getClassNameFromAlign:e,stretch:h,getRootDomNode:n,mask:c,zIndex:d,transitionName:u,maskAnimation:p,maskTransitionName:f,class:s,style:l,onAlign:o.onPopupAlign||qe},t),{ref:this.setPopupRef,mobile:_,forceRender:y});return x(xr,N,{default:this.$slots.popup||(()=>Sn(this,"popup"))})},attachParent(t){G.cancel(this.attachId);const{getPopupContainer:e,getDocument:n}=this.$props,o=this.getRootDomNode();let i;e?(o||e.length===0)&&(i=e(o)):i=n(this.getRootDomNode()).body,i?i.appendChild(t):this.attachId=G(()=>{this.attachParent(t)})},getContainer(){const{$props:t}=this,{getDocument:e}=t,n=e(this.getRootDomNode()).createElement("div");return n.style.position="absolute",n.style.top="0",n.style.left="0",n.style.width="100%",this.attachParent(n),n},setPopupVisible(t,e){const{alignPoint:n,sPopupVisible:o,onPopupVisibleChange:i}=this;this.clearDelayTimer(),o!==t&&(xn(this,"popupVisible")||this.setState({sPopupVisible:t,prevPopupVisible:o}),i&&i(t)),n&&e&&t&&this.setPoint(e)},setPoint(t){const{alignPoint:e}=this.$props;!e||!t||this.setState({point:{pageX:t.pageX,pageY:t.pageY}})},handlePortalUpdate(){this.prevPopupVisible!==this.sPopupVisible&&this.afterPopupVisibleChange(this.sPopupVisible)},delaySetPopupVisible(t,e,n){const o=e*1e3;if(this.clearDelayTimer(),o){const i=n?{pageX:n.pageX,pageY:n.pageY}:null;this.delayTimer=setTimeout(()=>{this.setPopupVisible(t,i),this.clearDelayTimer()},o)}else this.setPopupVisible(t,n)},clearDelayTimer(){this.delayTimer&&(clearTimeout(this.delayTimer),this.delayTimer=null)},clearOutsideHandler(){this.clickOutsideHandler&&(this.clickOutsideHandler.remove(),this.clickOutsideHandler=null),this.contextmenuOutsideHandler1&&(this.contextmenuOutsideHandler1.remove(),this.contextmenuOutsideHandler1=null),this.contextmenuOutsideHandler2&&(this.contextmenuOutsideHandler2.remove(),this.contextmenuOutsideHandler2=null),this.touchOutsideHandler&&(this.touchOutsideHandler.remove(),this.touchOutsideHandler=null)},createTwoChains(t){let e=()=>{};const n=te(this);return this.childOriginEvents[t]&&n[t]?this[`fire${t}`]:(e=this.childOriginEvents[t]||n[t]||e,e)},isClickToShow(){const{action:t,showAction:e}=this.$props;return t.indexOf("click")!==-1||e.indexOf("click")!==-1},isContextMenuOnly(){const{action:t}=this.$props;return t==="contextmenu"||t.length===1&&t[0]==="contextmenu"},isContextmenuToShow(){const{action:t,showAction:e}=this.$props;return t.indexOf("contextmenu")!==-1||e.indexOf("contextmenu")!==-1},isClickToHide(){const{action:t,hideAction:e}=this.$props;return t.indexOf("click")!==-1||e.indexOf("click")!==-1},isMouseEnterToShow(){const{action:t,showAction:e}=this.$props;return t.indexOf("hover")!==-1||e.indexOf("mouseenter")!==-1},isMouseLeaveToHide(){const{action:t,hideAction:e}=this.$props;return t.indexOf("hover")!==-1||e.indexOf("mouseleave")!==-1},isFocusToShow(){const{action:t,showAction:e}=this.$props;return t.indexOf("focus")!==-1||e.indexOf("focus")!==-1},isBlurToHide(){const{action:t,hideAction:e}=this.$props;return t.indexOf("focus")!==-1||e.indexOf("blur")!==-1},forcePopupAlign(){var t;this.$data.sPopupVisible&&((t=this.popupRef)===null||t===void 0||t.forceAlign())},fireEvents(t,e){this.childOriginEvents[t]&&this.childOriginEvents[t](e);const n=this.$props[t]||this.$attrs[t];n&&n(e)},close(){this.setPopupVisible(!1)}},render(){const{$attrs:t}=this,e=Le(Tn(this)),{alignPoint:n,getPopupContainer:o}=this.$props,i=e[0];this.childOriginEvents=te(i);const r={key:"trigger"};this.isContextmenuToShow()?r.onContextmenu=this.onContextmenu:r.onContextmenu=this.createTwoChains("onContextmenu"),this.isClickToHide()||this.isClickToShow()?(r.onClick=this.onClick,r.onMousedown=this.onMousedown,r[at?"onTouchstartPassive":"onTouchstart"]=this.onTouchstart):(r.onClick=this.createTwoChains("onClick"),r.onMousedown=this.createTwoChains("onMousedown"),r[at?"onTouchstartPassive":"onTouchstart"]=this.createTwoChains("onTouchstart")),this.isMouseEnterToShow()?(r.onMouseenter=this.onMouseenter,n&&(r.onMousemove=this.onMouseMove)):r.onMouseenter=this.createTwoChains("onMouseenter"),this.isMouseLeaveToHide()?r.onMouseleave=this.onMouseleave:r.onMouseleave=this.createTwoChains("onMouseleave"),this.isFocusToShow()||this.isBlurToHide()?(r.onFocus=this.onFocus,r.onBlur=this.onBlur):(r.onFocus=this.createTwoChains("onFocus"),r.onBlur=l=>{l&&(!l.relatedTarget||!tt(l.target,l.relatedTarget))&&this.createTwoChains("onBlur")(l)});const s=nt(i&&i.props&&i.props.class,t.class);s&&(r.class=s);const a=wt(i,g(g({},r),{ref:"triggerRef"}),!0,!0),u=x(Gn,{key:"portal",getContainer:o&&(()=>o(this.getRootDomNode())),didUpdate:this.handlePortalUpdate,visible:this.$data.sPopupVisible},{default:this.getComponent});return x(Cn,null,[a,u])}}),I={adjustX:1,adjustY:1},V=[0,0],un={left:{points:["cr","cl"],overflow:I,offset:[-4,0],targetOffset:V},right:{points:["cl","cr"],overflow:I,offset:[4,0],targetOffset:V},top:{points:["bc","tc"],overflow:I,offset:[0,-4],targetOffset:V},bottom:{points:["tc","bc"],overflow:I,offset:[0,4],targetOffset:V},topLeft:{points:["bl","tl"],overflow:I,offset:[0,-4],targetOffset:V},leftTop:{points:["tr","tl"],overflow:I,offset:[-4,0],targetOffset:V},topRight:{points:["br","tr"],overflow:I,offset:[0,-4],targetOffset:V},rightTop:{points:["tl","tr"],overflow:I,offset:[4,0],targetOffset:V},bottomRight:{points:["tr","br"],overflow:I,offset:[0,4],targetOffset:V},rightBottom:{points:["bl","br"],overflow:I,offset:[4,0],targetOffset:V},bottomLeft:{points:["tl","bl"],overflow:I,offset:[0,4],targetOffset:V},leftBottom:{points:["br","bl"],overflow:I,offset:[-4,0],targetOffset:V}},Dr={prefixCls:String,id:String,overlayInnerStyle:T.any},Rr=j({compatConfig:{MODE:3},name:"TooltipContent",props:Dr,setup(t,e){let{slots:n}=e;return()=>{var o;return x("div",{class:`${t.prefixCls}-inner`,id:t.id,role:"tooltip",style:t.overlayInnerStyle},[(o=n.overlay)===null||o===void 0?void 0:o.call(n)])}}});var Nr=function(t,e){var n={};for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&e.indexOf(o)<0&&(n[o]=t[o]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,o=Object.getOwnPropertySymbols(t);i{}),overlayStyle:{type:Object,default:void 0},overlayClassName:String,prefixCls:T.string.def("rc-tooltip"),mouseEnterDelay:T.number.def(.1),mouseLeaveDelay:T.number.def(.1),getPopupContainer:Function,destroyTooltipOnHide:{type:Boolean,default:!1},align:T.object.def(()=>({})),arrowContent:T.any.def(null),tipId:String,builtinPlacements:T.object,overlayInnerStyle:{type:Object,default:void 0},popupVisible:{type:Boolean,default:void 0},onVisibleChange:Function,onPopupAlign:Function,arrow:{type:Boolean,default:!0}},setup(t,e){let{slots:n,attrs:o,expose:i}=e;const r=$(),s=()=>{const{prefixCls:c,tipId:p,overlayInnerStyle:f}=t;return[t.arrow?x("div",{class:`${c}-arrow`,key:"arrow"},[Dn(n,t,"arrowContent")]):null,x(Rr,{key:"content",prefixCls:c,id:p,overlayInnerStyle:f},{overlay:n.overlay})]};i({getPopupDomNode:()=>r.value.getPopupDomNode(),triggerDOM:r,forcePopupAlign:()=>{var c;return(c=r.value)===null||c===void 0?void 0:c.forcePopupAlign()}});const u=$(!1),l=$(!1);return $n(()=>{const{destroyTooltipOnHide:c}=t;if(typeof c=="boolean")u.value=c;else if(c&&typeof c=="object"){const{keepParent:p}=c;u.value=p===!0,l.value=p===!1}}),()=>{const{overlayClassName:c,trigger:p,mouseEnterDelay:f,mouseLeaveDelay:d,overlayStyle:h,prefixCls:m,afterVisibleChange:_,transitionName:w,animation:y,placement:O,align:A,destroyTooltipOnHide:N,defaultVisible:C}=t,H=Nr(t,["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","afterVisibleChange","transitionName","animation","placement","align","destroyTooltipOnHide","defaultVisible"]),M=g({},H);t.visible!==void 0&&(M.popupVisible=t.visible);const D=g(g(g({popupClassName:c,prefixCls:m,action:p,builtinPlacements:un,popupPlacement:O,popupAlign:A,afterPopupVisibleChange:_,popupTransitionName:w,popupAnimation:y,defaultPopupVisible:C,destroyPopupOnHide:u.value,autoDestroy:l.value,mouseLeaveDelay:d,popupStyle:h,mouseEnterDelay:f},M),o),{onPopupVisibleChange:t.onVisibleChange||$e,onPopupAlign:t.onPopupAlign||$e,ref:r,arrow:!!t.arrow,popup:s()});return x($r,D,{default:n.default})}}}),Hr=()=>({trigger:[String,Array],open:{type:Boolean,default:void 0},visible:{type:Boolean,default:void 0},placement:String,color:String,transitionName:String,overlayStyle:pt(),overlayInnerStyle:pt(),overlayClassName:String,openClassName:String,prefixCls:String,mouseEnterDelay:Number,mouseLeaveDelay:Number,getPopupContainer:Function,arrowPointAtCenter:{type:Boolean,default:void 0},arrow:{type:[Boolean,Object],default:!0},autoAdjustOverflow:{type:[Boolean,Object],default:void 0},destroyTooltipOnHide:{type:Boolean,default:void 0},align:pt(),builtinPlacements:pt(),children:Array,onVisibleChange:Function,"onUpdate:visible":Function,onOpenChange:Function,"onUpdate:open":Function}),Ir={adjustX:1,adjustY:1},De={adjustX:0,adjustY:0},Vr=[0,0];function Re(t){return typeof t=="boolean"?t?Ir:De:g(g({},De),t)}function Lr(t){const{arrowWidth:e=4,horizontalArrowShift:n=16,verticalArrowShift:o=8,autoAdjustOverflow:i,arrowPointAtCenter:r}=t,s={left:{points:["cr","cl"],offset:[-4,0]},right:{points:["cl","cr"],offset:[4,0]},top:{points:["bc","tc"],offset:[0,-4]},bottom:{points:["tc","bc"],offset:[0,4]},topLeft:{points:["bl","tc"],offset:[-(n+e),-4]},leftTop:{points:["tr","cl"],offset:[-4,-(o+e)]},topRight:{points:["br","tc"],offset:[n+e,-4]},rightTop:{points:["tl","cr"],offset:[4,-(o+e)]},bottomRight:{points:["tr","bc"],offset:[n+e,4]},rightBottom:{points:["bl","cr"],offset:[4,o+e]},bottomLeft:{points:["tl","bc"],offset:[-(n+e),4]},leftBottom:{points:["br","cl"],offset:[-4,o+e]}};return Object.keys(s).forEach(a=>{s[a]=r?g(g({},s[a]),{overflow:Re(i),targetOffset:Vr}):g(g({},un[a]),{overflow:Re(i)}),s[a].ignoreShake=!0}),s}function zr(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];for(let e=0,n=t.length;e`${t}-inverse`),Wr=["success","processing","error","default","warning"];function jr(t){return(arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0)?[...Fr,...Pt].includes(t):Pt.includes(t)}function os(t){return Wr.includes(t)}function kr(t,e){const n=jr(e),o=nt({[`${t}-${e}`]:e&&n}),i={},r={};return e&&!n&&(i.background=e,r["--antd-arrow-background-color"]=e),{className:o,overlayStyle:i,arrowStyle:r}}function bt(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return t.map(n=>`${e}${n}`).join(",")}const cn=8;function Xr(t){const e=cn,{sizePopupArrow:n,contentRadius:o,borderRadiusOuter:i,limitVerticalRadius:r}=t,s=n/2-Math.ceil(i*(Math.sqrt(2)-1)),a=(o>12?o+2:12)-s,u=r?e-s:a;return{dropdownArrowOffset:a,dropdownArrowOffsetVertical:u}}function Yr(t,e){const{componentCls:n,sizePopupArrow:o,marginXXS:i,borderRadiusXS:r,borderRadiusOuter:s,boxShadowPopoverArrow:a}=t,{colorBg:u,showArrowCls:l,contentRadius:c=t.borderRadiusLG,limitVerticalRadius:p}=e,{dropdownArrowOffsetVertical:f,dropdownArrowOffset:d}=Xr({sizePopupArrow:o,contentRadius:c,borderRadiusOuter:s,limitVerticalRadius:p}),h=o/2+i;return{[n]:{[`${n}-arrow`]:[g(g({position:"absolute",zIndex:1,display:"block"},ho(o,r,s,u,a)),{"&:before":{background:u}})],[[`&-placement-top ${n}-arrow`,`&-placement-topLeft ${n}-arrow`,`&-placement-topRight ${n}-arrow`].join(",")]:{bottom:0,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top ${n}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},[`&-placement-topLeft ${n}-arrow`]:{left:{_skip_check_:!0,value:d}},[`&-placement-topRight ${n}-arrow`]:{right:{_skip_check_:!0,value:d}},[[`&-placement-bottom ${n}-arrow`,`&-placement-bottomLeft ${n}-arrow`,`&-placement-bottomRight ${n}-arrow`].join(",")]:{top:0,transform:"translateY(-100%)"},[`&-placement-bottom ${n}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},[`&-placement-bottomLeft ${n}-arrow`]:{left:{_skip_check_:!0,value:d}},[`&-placement-bottomRight ${n}-arrow`]:{right:{_skip_check_:!0,value:d}},[[`&-placement-left ${n}-arrow`,`&-placement-leftTop ${n}-arrow`,`&-placement-leftBottom ${n}-arrow`].join(",")]:{right:{_skip_check_:!0,value:0},transform:"translateX(100%) rotate(90deg)"},[`&-placement-left ${n}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(100%) rotate(90deg)"},[`&-placement-leftTop ${n}-arrow`]:{top:f},[`&-placement-leftBottom ${n}-arrow`]:{bottom:f},[[`&-placement-right ${n}-arrow`,`&-placement-rightTop ${n}-arrow`,`&-placement-rightBottom ${n}-arrow`].join(",")]:{left:{_skip_check_:!0,value:0},transform:"translateX(-100%) rotate(-90deg)"},[`&-placement-right ${n}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(-100%) rotate(-90deg)"},[`&-placement-rightTop ${n}-arrow`]:{top:f},[`&-placement-rightBottom ${n}-arrow`]:{bottom:f},[bt(["&-placement-topLeft","&-placement-top","&-placement-topRight"].map(m=>m+=":not(&-arrow-hidden)"),l)]:{paddingBottom:h},[bt(["&-placement-bottomLeft","&-placement-bottom","&-placement-bottomRight"].map(m=>m+=":not(&-arrow-hidden)"),l)]:{paddingTop:h},[bt(["&-placement-leftTop","&-placement-left","&-placement-leftBottom"].map(m=>m+=":not(&-arrow-hidden)"),l)]:{paddingRight:{_skip_check_:!0,value:h}},[bt(["&-placement-rightTop","&-placement-right","&-placement-rightBottom"].map(m=>m+=":not(&-arrow-hidden)"),l)]:{paddingLeft:{_skip_check_:!0,value:h}}}}}const Ur=t=>{const{componentCls:e,tooltipMaxWidth:n,tooltipColor:o,tooltipBg:i,tooltipBorderRadius:r,zIndexPopup:s,controlHeight:a,boxShadowSecondary:u,paddingSM:l,paddingXS:c,tooltipRadiusOuter:p}=t;return[{[e]:g(g(g(g({},Nn(t)),{position:"absolute",zIndex:s,display:"block","&":[{width:"max-content"},{width:"intrinsic"}],maxWidth:n,visibility:"visible","&-hidden":{display:"none"},"--antd-arrow-background-color":i,[`${e}-inner`]:{minWidth:a,minHeight:a,padding:`${l/2}px ${c}px`,color:o,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:i,borderRadius:r,boxShadow:u},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${e}-inner`]:{borderRadius:Math.min(r,cn)}},[`${e}-content`]:{position:"relative"}}),vo(t,(f,d)=>{let{darkColor:h}=d;return{[`&${e}-${f}`]:{[`${e}-inner`]:{backgroundColor:h},[`${e}-arrow`]:{"--antd-arrow-background-color":h}}}})),{"&-rtl":{direction:"rtl"}})},Yr(ze(t,{borderRadiusOuter:p}),{colorBg:"var(--antd-arrow-background-color)",showArrowCls:"",contentRadius:r,limitVerticalRadius:!0}),{[`${e}-pure`]:{position:"relative",maxWidth:"none"}}]},Gr=(t,e)=>Rn("Tooltip",o=>{if((e==null?void 0:e.value)===!1)return[];const{borderRadius:i,colorTextLightSolid:r,colorBgDefault:s,borderRadiusOuter:a}=o,u=ze(o,{tooltipMaxWidth:250,tooltipColor:r,tooltipBorderRadius:i,tooltipBg:s,tooltipRadiusOuter:a>4?4:a});return[Ur(u),qn(o,"zoom-big-fast")]},o=>{let{zIndexPopupBase:i,colorBgSpotlight:r}=o;return{zIndexPopup:i+70,colorBgDefault:r}})(t),qr=(t,e)=>{const n={},o=g({},t);return e.forEach(i=>{t&&i in t&&(n[i]=t[i],delete o[i])}),{picked:n,omitted:o}},Zr=()=>g(g({},Hr()),{title:T.any}),is=()=>({trigger:"hover",align:{},placement:"top",mouseEnterDelay:.1,mouseLeaveDelay:.1,arrowPointAtCenter:!1,autoAdjustOverflow:!0}),Kr=j({compatConfig:{MODE:3},name:"ATooltip",inheritAttrs:!1,props:Un(Zr(),{trigger:"hover",align:{},placement:"top",mouseEnterDelay:.1,mouseLeaveDelay:.1,arrowPointAtCenter:!1,autoAdjustOverflow:!0}),slots:Object,setup(t,e){let{slots:n,emit:o,attrs:i,expose:r}=e;const{prefixCls:s,getPopupContainer:a,direction:u,rootPrefixCls:l}=Bn("tooltip",t),c=z(()=>{var v;return(v=t.open)!==null&&v!==void 0?v:t.visible}),p=Y(zr([t.open,t.visible])),f=Y();let d;W(c,v=>{G.cancel(d),d=G(()=>{p.value=!!v})});const h=()=>{var v;const P=(v=t.title)!==null&&v!==void 0?v:n.title;return!P&&P!==0},m=v=>{const P=h();c.value===void 0&&(p.value=P?!1:v),P||(o("update:visible",v),o("visibleChange",v),o("update:open",v),o("openChange",v))};r({getPopupDomNode:()=>f.value.getPopupDomNode(),open:p,forcePopupAlign:()=>{var v;return(v=f.value)===null||v===void 0?void 0:v.forcePopupAlign()}});const w=z(()=>{var v;const{builtinPlacements:P,autoAdjustOverflow:L,arrow:E,arrowPointAtCenter:B}=t;let S=B;return typeof E=="object"&&(S=(v=E.pointAtCenter)!==null&&v!==void 0?v:B),P||Lr({arrowPointAtCenter:S,autoAdjustOverflow:L})}),y=v=>v||v==="",O=v=>{const P=v.type;if(typeof P=="object"&&v.props&&((P.__ANT_BUTTON===!0||P==="button")&&y(v.props.disabled)||P.__ANT_SWITCH===!0&&(y(v.props.disabled)||y(v.props.loading))||P.__ANT_RADIO===!0&&y(v.props.disabled))){const{picked:L,omitted:E}=qr(Ln(v),["position","left","right","top","bottom","float","display","zIndex"]),B=g(g({display:"inline-block"},L),{cursor:"not-allowed",lineHeight:1,width:v.props&&v.props.block?"100%":void 0}),S=g(g({},E),{pointerEvents:"none"}),R=wt(v,{style:S},!0);return x("span",{style:B,class:`${s.value}-disabled-compatible-wrapper`},[R])}return v},A=()=>{var v,P;return(v=t.title)!==null&&v!==void 0?v:(P=n.title)===null||P===void 0?void 0:P.call(n)},N=(v,P)=>{const L=w.value,E=Object.keys(L).find(B=>{var S,R;return L[B].points[0]===((S=P.points)===null||S===void 0?void 0:S[0])&&L[B].points[1]===((R=P.points)===null||R===void 0?void 0:R[1])});if(E){const B=v.getBoundingClientRect(),S={top:"50%",left:"50%"};E.indexOf("top")>=0||E.indexOf("Bottom")>=0?S.top=`${B.height-P.offset[1]}px`:(E.indexOf("Top")>=0||E.indexOf("bottom")>=0)&&(S.top=`${-P.offset[1]}px`),E.indexOf("left")>=0||E.indexOf("Right")>=0?S.left=`${B.width-P.offset[0]}px`:(E.indexOf("right")>=0||E.indexOf("Left")>=0)&&(S.left=`${-P.offset[0]}px`),v.style.transformOrigin=`${S.left} ${S.top}`}},C=z(()=>kr(s.value,t.color)),H=z(()=>i["data-popover-inject"]),[M,D]=Gr(s,z(()=>!H.value));return()=>{var v,P;const{openClassName:L,overlayClassName:E,overlayStyle:B,overlayInnerStyle:S}=t;let R=(P=Le((v=n.default)===null||v===void 0?void 0:v.call(n)))!==null&&P!==void 0?P:null;R=R.length===1?R[0]:R;let Z=p.value;if(c.value===void 0&&h()&&(Z=!1),!R)return null;const X=O(Hn(R)&&!In(R)?R:x("span",null,[R])),Kt=nt({[L||`${s.value}-open`]:!0,[X.props&&X.props.class]:X.props&&X.props.class}),Et=nt(E,{[`${s.value}-rtl`]:u.value==="rtl"},C.value.className,D.value),fn=g(g({},C.value.overlayStyle),S),pn=C.value.arrowStyle,dn=g(g(g({},i),t),{prefixCls:s.value,arrow:!!t.arrow,getPopupContainer:a==null?void 0:a.value,builtinPlacements:w.value,visible:Z,ref:f,overlayClassName:Et,overlayStyle:g(g({},pn),B),overlayInnerStyle:fn,onVisibleChange:m,onPopupAlign:N,transitionName:Vn(l.value,"zoom-big-fast",t.transitionName)});return M(x(Br,dn,{default:()=>[p.value?wt(X,{class:Kt}):X],arrowContent:()=>x("span",{class:`${s.value}-arrow-content`},null),overlay:A}))}}}),rs=zn(Kr);class ss{constructor(e){Qt(this,"baseUrl");this.baseUrl=e}async request(e,n={}){const o=`${this.baseUrl}${e}`,i={...n.headers};n.body instanceof FormData||(i["Content-Type"]="application/json");const r=await fetch(o,{...n,headers:i});if(!r.ok){const s={status:r.status,message:r.statusText};try{const a=await r.json();s.detail=a.detail??a.message,s.message=s.detail??s.message}catch{}throw s}return r.json()}createWebSocket(e){const n=window.location.protocol==="https:"?"wss:":"ws:",o=window.location.host;return new WebSocket(`${n}//${o}${this.baseUrl}${e}`)}}export{rs as A,ss as B,J as M,Pt as P,ns as R,q as S,$r as T,_e as U,Hr as a,Xr as b,Lr as c,Mr as d,vo as e,zr as f,Yr as g,os as h,jr as i,cr as j,hr as k,dr as l,sr as m,tr as n,er as o,Te as p,ln as q,ho as r,or as s,is as t,Ct as u,Bi as v,Or as w,sn as x,Li as y}; diff --git a/src/agentkit/server/static/assets/chat-dMZvRo2f.js b/src/agentkit/server/static/assets/chat-dMZvRo2f.js new file mode 100644 index 0000000..9ecb1d7 --- /dev/null +++ b/src/agentkit/server/static/assets/chat-dMZvRo2f.js @@ -0,0 +1 @@ +import{c as _,I,a1 as q,r as v,g as w}from"./index-Ci55MVrK.js";import{B as x}from"./base-B4siOKZE.js";var B={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"};function M(n){for(var t=1;t{const n=v([]),t=v(null),s=v(!1),c=v(!1),r=v(null),d=v([]),O=w(()=>n.value.find(e=>e.id===t.value)),$=w(()=>{var e;return((e=O.value)==null?void 0:e.messages)??[]});async function D(){try{const e=await b.getConversations();n.value=e}catch(e){console.error("Failed to load conversations:",e)}}function A(e){t.value=e,d.value=[]}function h(){const e={id:m(),title:"新对话",messages:[],created_at:new Date().toISOString(),updated_at:new Date().toISOString()};n.value.unshift(e),t.value=e.id,d.value=[]}async function y(e,o){t.value||h();const a=t.value,i={id:m(),role:"user",content:e,timestamp:new Date().toISOString()};p(a,i);const u={id:m(),role:"assistant",content:"",timestamp:new Date().toISOString(),status:"pending"};p(a,u),s.value=!0;try{const l={message:e,conversation_id:a,sources:o},f=await b.chat(l);g(a,u.id,{content:f.message,matched_skill:f.matched_skill,routing_method:f.routing_method,confidence:f.confidence,task_id:f.task_id,status:f.status});const S=n.value.find(E=>E.id===a);S&&S.messages.length<=2&&(S.title=e.length>20?`${e.substring(0,20)}...`:e)}catch(l){g(a,u.id,{content:`请求失败: ${l instanceof Error?l.message:"未知错误"}`,status:"completed"})}finally{s.value=!1}}function j(e,o){t.value||h();const a=t.value,i={id:m(),role:"user",content:e,timestamp:new Date().toISOString()};p(a,i);const u={id:m(),role:"assistant",content:"",timestamp:new Date().toISOString(),status:"pending"};p(a,u),d.value=[];const l={type:"chat",message:e,sources:o,conversation_id:a};r.value&&r.value.readyState===WebSocket.OPEN?r.value.send(JSON.stringify(l)):y(e,o)}function C(){if(r.value&&r.value.readyState===WebSocket.OPEN)return;const e=b.createWebSocket();e.onopen=()=>{c.value=!0,console.log("WebSocket connected")},e.onmessage=o=>{try{const a=JSON.parse(o.data);N(a)}catch(a){console.error("Failed to parse WebSocket message:",a)}},e.onclose=()=>{c.value=!1,console.log("WebSocket disconnected"),setTimeout(()=>{(!r.value||r.value.readyState===WebSocket.CLOSED)&&C()},3e3)},e.onerror=o=>{console.error("WebSocket error:",o),c.value=!1},r.value=e}function z(){r.value&&(r.value.close(),r.value=null,c.value=!1)}function N(e){const o=t.value;if(!o)return;const a=n.value.find(u=>u.id===o);if(!a)return;const i=[...a.messages].reverse().find(u=>u.role==="assistant");switch(e.type){case"routing":i&&g(o,i.id,{matched_skill:e.skill,confidence:e.confidence,routing_method:e.method}),d.value.push(`路由至: ${e.skill} (置信度: ${(e.confidence*100).toFixed(1)}%)`);break;case"step":d.value.push(e.step);break;case"result":i&&g(o,i.id,{content:e.message,status:"completed"}),s.value=!1,d.value=[];break;case"error":i&&g(o,i.id,{content:`错误: ${e.message}`,status:"completed"}),s.value=!1,d.value=[];break}}function p(e,o){const a=n.value.find(i=>i.id===e);a&&(a.messages.push(o),a.updated_at=new Date().toISOString())}function g(e,o,a){const i=n.value.find(l=>l.id===e);if(!i)return;const u=i.messages.find(l=>l.id===o);u&&Object.assign(u,a)}return{conversations:n,currentConversationId:t,isLoading:s,isWsConnected:c,streamingSteps:d,currentConversation:O,currentMessages:$,loadConversations:D,selectConversation:A,createConversation:h,sendMessage:y,sendWsMessage:j,connectWebSocket:C,disconnectWebSocket:z}});export{W as C,P as M,Q as u}; diff --git a/src/agentkit/server/static/assets/index-3crJqV8H.js b/src/agentkit/server/static/assets/index-3crJqV8H.js new file mode 100644 index 0000000..b49f9b0 --- /dev/null +++ b/src/agentkit/server/static/assets/index-3crJqV8H.js @@ -0,0 +1 @@ +import{d as W,M as lt,A as G,$ as it,_ as i,c as v,g as f,r as R,N as F,P as E,z as L,aP as st,p as ut,q as ct,s as q,aL as O,E as I,D as dt,J as mt,aN as gt,aE as bt,m as ft,v as vt}from"./index-Ci55MVrK.js";import{c as Q}from"./zoom-C2fVs05p.js";import{e as J,i as k}from"./base-B4siOKZE.js";function K(t){let{prefixCls:o,value:a,current:e,offset:n=0}=t,c;return n&&(c={position:"absolute",top:`${n}00%`,left:0}),v("p",{style:c,class:F(`${o}-only-unit`,{current:e})},[a])}function pt(t,o,a){let e=t,n=0;for(;(e+10)%10!==o;)e+=a,n+=a;return n}const $t=W({compatConfig:{MODE:3},name:"SingleNumber",props:{prefixCls:String,value:String,count:Number},setup(t){const o=f(()=>Number(t.value)),a=f(()=>Math.abs(t.count)),e=lt({prevValue:o.value,prevCount:a.value}),n=()=>{e.prevValue=o.value,e.prevCount=a.value},c=R();return G(o,()=>{clearTimeout(c.value),c.value=setTimeout(()=>{n()},1e3)},{flush:"post"}),it(()=>{clearTimeout(c.value)}),()=>{let d,p={};const s=o.value;if(e.prevValue===s||Number.isNaN(s)||Number.isNaN(e.prevValue))d=[K(i(i({},t),{current:!0}))],p={transition:"none"};else{d=[];const $=s+10,m=[];for(let r=s;r<=$;r+=1)m.push(r);const l=m.findIndex(r=>r%10===e.prevValue);d=m.map((r,y)=>{const h=r%10;return K(i(i({},t),{value:h,offset:y-l,current:y===l}))});const u=e.prevCountn()},[d])}}});var ht=function(t,o){var a={};for(var e in t)Object.prototype.hasOwnProperty.call(t,e)&&o.indexOf(e)<0&&(a[e]=t[e]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,e=Object.getOwnPropertySymbols(t);n{var c;const d=i(i({},t),a),{prefixCls:p,count:s,title:$,show:m,component:l="sup",class:u,style:r}=d,y=ht(d,["prefixCls","count","title","show","component","class","style"]),h=i(i({},y),{style:r,"data-show":t.show,class:F(n.value,u),title:$});let g=s;if(s&&Number(s)%1===0){const b=String(s).split("");g=b.map((P,z)=>v($t,{prefixCls:n.value,count:Number(s),value:P,key:b.length-z},null))}r&&r.borderColor&&(h.style=i(i({},r),{boxShadow:`0 0 0 1px ${r.borderColor} inset`}));const S=st((c=e.default)===null||c===void 0?void 0:c.call(e));return S&&S.length?Q(S,{class:F(`${n.value}-custom-component`)},!1):v(l,h,{default:()=>[g]})}}}),Ct=new O("antStatusProcessing",{"0%":{transform:"scale(0.8)",opacity:.5},"100%":{transform:"scale(2.4)",opacity:0}}),xt=new O("antZoomBadgeIn",{"0%":{transform:"scale(0) translate(50%, -50%)",opacity:0},"100%":{transform:"scale(1) translate(50%, -50%)"}}),wt=new O("antZoomBadgeOut",{"0%":{transform:"scale(1) translate(50%, -50%)"},"100%":{transform:"scale(0) translate(50%, -50%)",opacity:0}}),Nt=new O("antNoWrapperZoomBadgeIn",{"0%":{transform:"scale(0)",opacity:0},"100%":{transform:"scale(1)"}}),Ot=new O("antNoWrapperZoomBadgeOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0)",opacity:0}}),Pt=new O("antBadgeLoadingCircle",{"0%":{transformOrigin:"50%"},"100%":{transform:"translate(50%, -50%) rotate(360deg)",transformOrigin:"50%"}}),zt=t=>{const{componentCls:o,iconCls:a,antCls:e,badgeFontHeight:n,badgeShadowSize:c,badgeHeightSm:d,motionDurationSlow:p,badgeStatusSize:s,marginXS:$,badgeRibbonOffset:m}=t,l=`${e}-scroll-number`,u=`${e}-ribbon`,r=`${e}-ribbon-wrapper`,y=J(t,(g,S)=>{let{darkColor:b}=S;return{[`&${o} ${o}-color-${g}`]:{background:b,[`&:not(${o}-count)`]:{color:b}}}}),h=J(t,(g,S)=>{let{darkColor:b}=S;return{[`&${u}-color-${g}`]:{background:b,color:b}}});return{[o]:i(i(i(i({},q(t)),{position:"relative",display:"inline-block",width:"fit-content",lineHeight:1,[`${o}-count`]:{zIndex:t.badgeZIndex,minWidth:t.badgeHeight,height:t.badgeHeight,color:t.badgeTextColor,fontWeight:t.badgeFontWeight,fontSize:t.badgeFontSize,lineHeight:`${t.badgeHeight}px`,whiteSpace:"nowrap",textAlign:"center",background:t.badgeColor,borderRadius:t.badgeHeight/2,boxShadow:`0 0 0 ${c}px ${t.badgeShadowColor}`,transition:`background ${t.motionDurationMid}`,a:{color:t.badgeTextColor},"a:hover":{color:t.badgeTextColor},"a:hover &":{background:t.badgeColorHover}},[`${o}-count-sm`]:{minWidth:d,height:d,fontSize:t.badgeFontSizeSm,lineHeight:`${d}px`,borderRadius:d/2},[`${o}-multiple-words`]:{padding:`0 ${t.paddingXS}px`},[`${o}-dot`]:{zIndex:t.badgeZIndex,width:t.badgeDotSize,minWidth:t.badgeDotSize,height:t.badgeDotSize,background:t.badgeColor,borderRadius:"100%",boxShadow:`0 0 0 ${c}px ${t.badgeShadowColor}`},[`${o}-dot${l}`]:{transition:`background ${p}`},[`${o}-count, ${o}-dot, ${l}-custom-component`]:{position:"absolute",top:0,insetInlineEnd:0,transform:"translate(50%, -50%)",transformOrigin:"100% 0%",[`&${a}-spin`]:{animationName:Pt,animationDuration:"1s",animationIterationCount:"infinite",animationTimingFunction:"linear"}},[`&${o}-status`]:{lineHeight:"inherit",verticalAlign:"baseline",[`${o}-status-dot`]:{position:"relative",top:-1,display:"inline-block",width:s,height:s,verticalAlign:"middle",borderRadius:"50%"},[`${o}-status-success`]:{backgroundColor:t.colorSuccess},[`${o}-status-processing`]:{overflow:"visible",color:t.colorPrimary,backgroundColor:t.colorPrimary,"&::after":{position:"absolute",top:0,insetInlineStart:0,width:"100%",height:"100%",borderWidth:c,borderStyle:"solid",borderColor:"inherit",borderRadius:"50%",animationName:Ct,animationDuration:t.badgeProcessingDuration,animationIterationCount:"infinite",animationTimingFunction:"ease-in-out",content:'""'}},[`${o}-status-default`]:{backgroundColor:t.colorTextPlaceholder},[`${o}-status-error`]:{backgroundColor:t.colorError},[`${o}-status-warning`]:{backgroundColor:t.colorWarning},[`${o}-status-text`]:{marginInlineStart:$,color:t.colorText,fontSize:t.fontSize}}}),y),{[`${o}-zoom-appear, ${o}-zoom-enter`]:{animationName:xt,animationDuration:t.motionDurationSlow,animationTimingFunction:t.motionEaseOutBack,animationFillMode:"both"},[`${o}-zoom-leave`]:{animationName:wt,animationDuration:t.motionDurationSlow,animationTimingFunction:t.motionEaseOutBack,animationFillMode:"both"},[`&${o}-not-a-wrapper`]:{[`${o}-zoom-appear, ${o}-zoom-enter`]:{animationName:Nt,animationDuration:t.motionDurationSlow,animationTimingFunction:t.motionEaseOutBack},[`${o}-zoom-leave`]:{animationName:Ot,animationDuration:t.motionDurationSlow,animationTimingFunction:t.motionEaseOutBack},[`&:not(${o}-status)`]:{verticalAlign:"middle"},[`${l}-custom-component, ${o}-count`]:{transform:"none"},[`${l}-custom-component, ${l}`]:{position:"relative",top:"auto",display:"block",transformOrigin:"50% 50%"}},[`${l}`]:{overflow:"hidden",[`${l}-only`]:{position:"relative",display:"inline-block",height:t.badgeHeight,transition:`all ${t.motionDurationSlow} ${t.motionEaseOutBack}`,WebkitTransformStyle:"preserve-3d",WebkitBackfaceVisibility:"hidden",[`> p${l}-only-unit`]:{height:t.badgeHeight,margin:0,WebkitTransformStyle:"preserve-3d",WebkitBackfaceVisibility:"hidden"}},[`${l}-symbol`]:{verticalAlign:"top"}},"&-rtl":{direction:"rtl",[`${o}-count, ${o}-dot, ${l}-custom-component`]:{transform:"translate(-50%, -50%)"}}}),[`${r}`]:{position:"relative"},[`${u}`]:i(i(i(i({},q(t)),{position:"absolute",top:$,padding:`0 ${t.paddingXS}px`,color:t.colorPrimary,lineHeight:`${n}px`,whiteSpace:"nowrap",backgroundColor:t.colorPrimary,borderRadius:t.borderRadiusSM,[`${u}-text`]:{color:t.colorTextLightSolid},[`${u}-corner`]:{position:"absolute",top:"100%",width:m,height:m,color:"currentcolor",border:`${m/2}px solid`,transform:t.badgeRibbonCornerTransform,transformOrigin:"top",filter:t.badgeRibbonCornerFilter}}),h),{[`&${u}-placement-end`]:{insetInlineEnd:-m,borderEndEndRadius:0,[`${u}-corner`]:{insetInlineEnd:0,borderInlineEndColor:"transparent",borderBlockEndColor:"transparent"}},[`&${u}-placement-start`]:{insetInlineStart:-m,borderEndStartRadius:0,[`${u}-corner`]:{insetInlineStart:0,borderBlockEndColor:"transparent",borderInlineStartColor:"transparent"}},"&-rtl":{direction:"rtl"}})}},tt=ut("Badge",t=>{const{fontSize:o,lineHeight:a,fontSizeSM:e,lineWidth:n,marginXS:c,colorBorderBg:d}=t,p=Math.round(o*a),s=n,$="auto",m=p-2*s,l=t.colorBgContainer,u="normal",r=e,y=t.colorError,h=t.colorErrorHover,g=o,S=e/2,b=e,P=e/2,z=ct(t,{badgeFontHeight:p,badgeShadowSize:s,badgeZIndex:$,badgeHeight:m,badgeTextColor:l,badgeFontWeight:u,badgeFontSize:r,badgeColor:y,badgeColorHover:h,badgeShadowColor:d,badgeHeightSm:g,badgeDotSize:S,badgeFontSizeSm:b,badgeStatusSize:P,badgeProcessingDuration:"1.2s",badgeRibbonOffset:c,badgeRibbonCornerTransform:"scaleY(0.75)",badgeRibbonCornerFilter:"brightness(75%)"});return[zt(z)]});var Bt=function(t,o){var a={};for(var e in t)Object.prototype.hasOwnProperty.call(t,e)&&o.indexOf(e)<0&&(a[e]=t[e]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,e=Object.getOwnPropertySymbols(t);n({prefix:String,color:{type:String},text:E.any,placement:{type:String,default:"end"}}),V=W({compatConfig:{MODE:3},name:"ABadgeRibbon",inheritAttrs:!1,props:It(),slots:Object,setup(t,o){let{attrs:a,slots:e}=o;const{prefixCls:n,direction:c}=L("ribbon",t),[d,p]=tt(n),s=f(()=>k(t.color,!1)),$=f(()=>[n.value,`${n.value}-placement-${t.placement}`,{[`${n.value}-rtl`]:c.value==="rtl",[`${n.value}-color-${t.color}`]:s.value}]);return()=>{var m,l;const{class:u,style:r}=a,y=Bt(a,["class","style"]),h={},g={};return t.color&&!s.value&&(h.background=t.color,g.color=t.color),d(v("div",I({class:`${n.value}-wrapper ${p.value}`},y),[(m=e.default)===null||m===void 0?void 0:m.call(e),v("div",{class:[$.value,u,p.value],style:i(i({},h),r)},[v("span",{class:`${n.value}-text`},[t.text||((l=e.text)===null||l===void 0?void 0:l.call(e))]),v("div",{class:`${n.value}-corner`,style:g},null)])]))}}}),Et=t=>!isNaN(parseFloat(t))&&isFinite(t),Tt=()=>({count:E.any.def(null),showZero:{type:Boolean,default:void 0},overflowCount:{type:Number,default:99},dot:{type:Boolean,default:void 0},prefixCls:String,scrollNumberPrefixCls:String,status:{type:String},size:{type:String,default:"default"},color:String,text:E.any,offset:Array,numberStyle:{type:Object,default:void 0},title:String}),M=W({compatConfig:{MODE:3},name:"ABadge",Ribbon:V,inheritAttrs:!1,props:Tt(),slots:Object,setup(t,o){let{slots:a,attrs:e}=o;const{prefixCls:n,direction:c}=L("badge",t),[d,p]=tt(n),s=f(()=>t.count>t.overflowCount?`${t.overflowCount}+`:t.count),$=f(()=>s.value==="0"||s.value===0),m=f(()=>t.count===null||$.value&&!t.showZero),l=f(()=>(t.status!==null&&t.status!==void 0||t.color!==null&&t.color!==void 0)&&m.value),u=f(()=>t.dot&&!$.value),r=f(()=>u.value?"":s.value),y=f(()=>(r.value===null||r.value===void 0||r.value===""||$.value&&!t.showZero)&&!u.value),h=R(t.count),g=R(r.value),S=R(u.value);G([()=>t.count,r,u],()=>{y.value||(h.value=t.count,g.value=r.value,S.value=u.value)},{immediate:!0});const b=f(()=>k(t.color,!1)),P=f(()=>({[`${n.value}-status-dot`]:l.value,[`${n.value}-status-${t.status}`]:!!t.status,[`${n.value}-color-${t.color}`]:b.value})),z=f(()=>t.color&&!b.value?{background:t.color,color:t.color}:{}),et=f(()=>({[`${n.value}-dot`]:S.value,[`${n.value}-count`]:!S.value,[`${n.value}-count-sm`]:t.size==="small",[`${n.value}-multiple-words`]:!S.value&&g.value&&g.value.toString().length>1,[`${n.value}-status-${t.status}`]:!!t.status,[`${n.value}-color-${t.color}`]:b.value}));return()=>{var T,_;const{offset:N,title:Z,color:X}=t,U=e.style,j=dt(a,t,"text"),x=n.value,C=h.value;let w=mt((T=a.default)===null||T===void 0?void 0:T.call(a));w=w.length?w:null;const A=!!(!y.value||a.count),D=(()=>{if(!N)return i({},U);const B={marginTop:Et(N[1])?`${N[1]}px`:N[1]};return c.value==="rtl"?B.left=`${parseInt(N[0],10)}px`:B.right=`${-parseInt(N[0],10)}px`,i(i({},B),U)})(),ot=Z??(typeof C=="string"||typeof C=="number"?C:void 0),nt=A||!j?null:v("span",{class:`${x}-status-text`},[j]),at=typeof C=="object"||C===void 0&&a.count?Q(C??((_=a.count)===null||_===void 0?void 0:_.call(a)),{style:D},!1):null,Y=F(x,{[`${x}-status`]:l.value,[`${x}-not-a-wrapper`]:!w,[`${x}-rtl`]:c.value==="rtl"},e.class,p.value);if(!w&&l.value){const B=D.color;return d(v("span",I(I({},e),{},{class:Y,style:D}),[v("span",{class:P.value,style:z.value},null),v("span",{style:{color:B},class:`${x}-status-text`},[j])]))}const rt=gt(w?`${x}-zoom`:"",{appear:!1});let H=i(i({},D),t.numberStyle);return X&&!b.value&&(H=H||{},H.background=X),d(v("span",I(I({},e),{},{class:Y}),[w,v(bt,rt,{default:()=>[ft(v(yt,{prefixCls:t.scrollNumberPrefixCls,show:A,class:et.value,count:g.value,title:ot,style:H,key:"scrollNumber"},{default:()=>[at]}),[[vt,A]])]}),nt]))}}});M.install=function(t){return t.component(M.name,M),t.component(V.name,V),t};export{M as B,Et as i}; diff --git a/src/agentkit/server/static/assets/index-B5q-1V92.js b/src/agentkit/server/static/assets/index-B5q-1V92.js new file mode 100644 index 0000000..445b387 --- /dev/null +++ b/src/agentkit/server/static/assets/index-B5q-1V92.js @@ -0,0 +1,18 @@ +import{d as J,x as me,g as m,y as be,P as re,$ as Bt,c as f,E as C,N as ye,r as U,A as oe,G as T,_ as y,aL as ve,I as kt,T as Ue,aj as qe,Q as Oe,J as ft,ao as pt,aD as gt,aI as He,aN as Ft,aE as zt,m as Nt,v as Ht,bx as Qe,F as Fe,D as yt,C as Lt,b1 as jt,aT as Wt,p as Vt,q as Ze,aU as Je,aS as et,s as Xt,aA as Yt,z as Gt,B as Ut,H as Re,by as qt,e as Ce}from"./index-Ci55MVrK.js";import{x as Ae,d as Me,w as Te}from"./_plugin-vue_export-helper-CBXJ7-XR.js";import{R as bt,y as $t,u as Qt,v as Zt,A as Jt,T as en}from"./base-B4siOKZE.js";import{f as tn,c as Le,K as nn,i as on}from"./zoom-C2fVs05p.js";const ht=Symbol("OverflowContextProviderKey"),ze=J({compatConfig:{MODE:3},name:"OverflowContextProvider",inheritAttrs:!1,props:{value:{type:Object}},setup(e,n){let{slots:t}=n;return be(ht,m(()=>e.value)),()=>{var o;return(o=t.default)===null||o===void 0?void 0:o.call(t)}}}),ln=()=>me(ht,m(()=>null));var an=function(e,n){var t={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&n.indexOf(o)<0&&(t[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var l=0,o=Object.getOwnPropertySymbols(e);le.responsive&&!e.display),r=U();o({itemNodeRef:r});function d(a){e.registerSize(e.itemKey,a)}return Bt(()=>{d(null)}),()=>{var a;const{prefixCls:s,invalidate:v,item:u,renderItem:i,responsive:p,registerSize:h,itemKey:g,display:M,order:x,component:D="div"}=e,w=an(e,["prefixCls","invalidate","item","renderItem","responsive","registerSize","itemKey","display","order","component"]),W=(a=t.default)===null||a===void 0?void 0:a.call(t),q=i&&u!==$e?i(u):W;let b;v||(b={opacity:l.value?0:1,height:l.value?0:$e,overflowY:l.value?"hidden":$e,order:p?x:$e,pointerEvents:l.value?"none":$e,position:l.value?"absolute":$e});const K={};return l.value&&(K["aria-hidden"]=!0),f(bt,{disabled:!p,onResize:F=>{let{offsetWidth:H}=F;d(H)}},{default:()=>f(D,C(C(C({class:ye(!v&&s),style:b},K),w),{},{ref:r}),{default:()=>[q]})})}}});var Be=function(e,n){var t={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&n.indexOf(o)<0&&(t[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var l=0,o=Object.getOwnPropertySymbols(e);l{var r;if(!l.value){const{component:i="div"}=e,p=Be(e,["component"]);return f(i,C(C({},p),o),{default:()=>[(r=t.default)===null||r===void 0?void 0:r.call(t)]})}const d=l.value,{className:a}=d,s=Be(d,["className"]),{class:v}=o,u=Be(o,["class"]);return f(ze,{value:null},{default:()=>[f(we,C(C(C({class:ye(a,v)},s),u),e),t)]})}}});var sn=function(e,n){var t={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&n.indexOf(o)<0&&(t[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var l=0,o=Object.getOwnPropertySymbols(e);l({id:String,prefixCls:String,data:Array,itemKey:[String,Number,Function],itemWidth:{type:Number,default:10},renderItem:Function,renderRawItem:Function,maxCount:[Number,String],renderRest:Function,renderRawRest:Function,suffix:re.any,component:String,itemComponent:re.any,onVisibleChange:Function,ssr:String,onMousedown:Function,role:String}),de=J({name:"Overflow",inheritAttrs:!1,props:cn(),emits:["visibleChange"],setup(e,n){let{attrs:t,emit:o,slots:l}=n;const r=m(()=>e.ssr==="full"),d=T(null),a=m(()=>d.value||0),s=T(new Map),v=T(0),u=T(0),i=T(0),p=T(null),h=T(null),g=m(()=>h.value===null&&r.value?Number.MAX_SAFE_INTEGER:h.value||0),M=T(!1),x=m(()=>`${e.prefixCls}-item`),D=m(()=>Math.max(v.value,u.value)),w=m(()=>!!(e.data.length&&e.maxCount===It)),W=m(()=>e.maxCount===St),q=m(()=>w.value||typeof e.maxCount=="number"&&e.data.length>e.maxCount),b=m(()=>{let $=e.data;return w.value?d.value===null&&r.value?$=e.data:$=e.data.slice(0,Math.min(e.data.length,a.value/e.itemWidth)):typeof e.maxCount=="number"&&($=e.data.slice(0,e.maxCount)),$}),K=m(()=>w.value?e.data.slice(g.value+1):e.data.slice(b.value.length)),F=($,_)=>{var A;return typeof e.itemKey=="function"?e.itemKey($):(A=e.itemKey&&($==null?void 0:$[e.itemKey]))!==null&&A!==void 0?A:_},H=m(()=>e.renderItem||($=>$)),X=($,_)=>{h.value=$,_||(M.value=${d.value=_.clientWidth},G=($,_)=>{const A=new Map(s.value);_===null?A.delete($):A.set($,_),s.value=A},Q=($,_)=>{v.value=u.value,u.value=_},ee=($,_)=>{i.value=_},ie=$=>s.value.get(F(b.value[$],$));return oe([a,s,u,i,()=>e.itemKey,b],()=>{if(a.value&&D.value&&b.value){let $=i.value;const _=b.value.length,A=_-1;if(!_){X(0),p.value=null;return}for(let V=0;V<_;V+=1){const L=ie(V);if(L===void 0){X(V-1,!0);break}if($+=L,A===0&&$<=a.value||V===A-1&&$+ie(A)<=a.value){X(A),p.value=null;break}else if($+D.value>a.value){X(V-1),p.value=$-L-i.value+u.value;break}}e.suffix&&ie(0)+i.value>a.value&&(p.value=null)}}),()=>{const $=M.value&&!!K.value.length,{itemComponent:_,renderRawItem:A,renderRawRest:V,renderRest:L,prefixCls:fe="rc-overflow",suffix:S,component:z="div",id:Y,onMousedown:le}=e,{class:ae,style:te}=t,c=sn(t,["class","style"]);let I={};p.value!==null&&w.value&&(I={position:"absolute",left:`${p.value}px`,top:0});const O={prefixCls:x.value,responsive:w.value,component:_,invalidate:W.value},B=A?(N,ne)=>{const pe=F(N,ne);return f(ze,{key:pe,value:y(y({},O),{order:ne,item:N,itemKey:pe,registerSize:G,display:ne<=g.value})},{default:()=>[A(N,ne)]})}:(N,ne)=>{const pe=F(N,ne);return f(we,C(C({},O),{},{order:ne,key:pe,item:N,renderItem:H.value,itemKey:pe,registerSize:G,display:ne<=g.value}),null)};let k=()=>null;const P={order:$?g.value:Number.MAX_SAFE_INTEGER,className:`${x.value} ${x.value}-rest`,registerSize:Q,display:$};if(V)V&&(k=()=>f(ze,{value:y(y({},O),P)},{default:()=>[V(K.value)]}));else{const N=L||un;k=()=>f(we,C(C({},O),P),{default:()=>typeof N=="function"?N(K.value):N})}const Z=()=>{var N;return f(z,C({id:Y,class:ye(!W.value&&fe,ae),style:te,onMousedown:le,role:e.role},c),{default:()=>[b.value.map(B),q.value?k():null,S&&f(we,C(C({},O),{},{order:g.value,class:`${x.value}-suffix`,registerSize:ee,display:!0,style:I}),{default:()=>S}),(N=l.default)===null||N===void 0?void 0:N.call(l)]})};return f(bt,{disabled:!w.value,onResize:R},{default:Z})}}});de.Item=rn;de.RESPONSIVE=It;de.INVALIDATE=St;function dn(){}function mn(e,n,t,o){for(var l=e.length,r=t+-1;++r-1}var yn=1/0,bn=Ae&&1/$t(new Ae([,-0]))[1]==yn?function(e){return new Ae(e)}:dn,$n=200;function hn(e,n,t){var o=-1,l=gn,r=e.length,d=!0,a=[],s=a;if(r>=$n){var v=bn(e);if(v)return $t(v);d=!1,l=Zt,s=new Qt}else s=a;e:for(;++o{const{antCls:t}=e,o=`${t}-${n}`,{inKeyframes:l,outKeyframes:r}=En[n];return[tn(o,l,r,e.motionDurationMid),{[` + ${o}-enter, + ${o}-appear + `]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:e.motionEaseOutQuint},[`${o}-leave`]:{animationTimingFunction:e.motionEaseInQuint}}]},Pn=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`}}});var _n={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"};function nt(e){for(var n=1;nme(Ct,void 0),ao=e=>{var n,t,o;const{prefixCls:l,mode:r,selectable:d,validator:a,onClick:s,expandIcon:v}=xt()||{};be(Ct,{prefixCls:m(()=>{var u,i;return(i=(u=e.prefixCls)===null||u===void 0?void 0:u.value)!==null&&i!==void 0?i:l==null?void 0:l.value}),mode:m(()=>{var u,i;return(i=(u=e.mode)===null||u===void 0?void 0:u.value)!==null&&i!==void 0?i:r==null?void 0:r.value}),selectable:m(()=>{var u,i;return(i=(u=e.selectable)===null||u===void 0?void 0:u.value)!==null&&i!==void 0?i:d==null?void 0:d.value}),validator:(n=e.validator)!==null&&n!==void 0?n:a,onClick:(t=e.onClick)!==null&&t!==void 0?t:s,expandIcon:(o=e.expandIcon)!==null&&o!==void 0?o:v==null?void 0:v.value})};function Rn(e,n,t,o){let l;if(l!==void 0)return!!l;if(e===n)return!0;if(typeof e!="object"||!e||typeof n!="object"||!n)return!1;const r=Object.keys(e),d=Object.keys(n);if(r.length!==d.length)return!1;const a=Object.prototype.hasOwnProperty.bind(n);for(let s=0;s{be(wt,e)},se=()=>me(wt),Mt=Symbol("ForceRenderKey"),An=e=>{be(Mt,e)},Kt=()=>me(Mt,!1),Et=Symbol("menuFirstLevelContextKey"),Pt=e=>{be(Et,e)},Tn=()=>me(Et,!0),Ke=J({compatConfig:{MODE:3},name:"MenuContextProvider",inheritAttrs:!1,props:{mode:{type:String,default:void 0},overflowDisabled:{type:Boolean,default:void 0}},setup(e,n){let{slots:t}=n;const o=se(),l=y({},o);return e.mode!==void 0&&(l.mode=qe(e,"mode")),e.overflowDisabled!==void 0&&(l.overflowDisabled=qe(e,"overflowDisabled")),Ot(l),()=>{var r;return(r=t.default)===null||r===void 0?void 0:r.call(t)}}}),Bn=Symbol("siderCollapsed"),ro=Symbol("siderHookProvider"),xe="$$__vc-menu-more__key",_t=Symbol("KeyPathContext"),We=()=>me(_t,{parentEventKeys:m(()=>[]),parentKeys:m(()=>[]),parentInfo:{}}),kn=(e,n,t)=>{const{parentEventKeys:o,parentKeys:l}=We(),r=m(()=>[...o.value,e]),d=m(()=>[...l.value,n]);return be(_t,{parentEventKeys:r,parentKeys:d,parentInfo:t}),d},Dt=Symbol("measure"),ot=J({compatConfig:{MODE:3},setup(e,n){let{slots:t}=n;return be(Dt,!0),()=>{var o;return(o=t.default)===null||o===void 0?void 0:o.call(t)}}}),Ve=()=>me(Dt,!1);function Rt(e){const{mode:n,rtl:t,inlineIndent:o}=se();return m(()=>n.value!=="inline"?null:t.value?{paddingRight:`${e.value*o.value}px`}:{paddingLeft:`${e.value*o.value}px`})}let Fn=0;const zn=()=>({id:String,role:String,disabled:Boolean,danger:Boolean,title:{type:[String,Boolean],default:void 0},icon:re.any,onMouseenter:Function,onMouseleave:Function,onClick:Function,onKeydown:Function,onFocus:Function,originItemValue:He()}),Se=J({compatConfig:{MODE:3},name:"AMenuItem",inheritAttrs:!1,props:zn(),slots:Object,setup(e,n){let{slots:t,emit:o,attrs:l}=n;const r=pt(),d=Ve(),a=typeof r.vnode.key=="symbol"?String(r.vnode.key):r.vnode.key;Me(typeof r.vnode.key!="symbol","MenuItem",`MenuItem \`:key="${String(a)}"\` not support Symbol type`);const s=`menu_item_${++Fn}_$$_${a}`,{parentEventKeys:v,parentKeys:u}=We(),{prefixCls:i,activeKeys:p,disabled:h,changeActiveKeys:g,rtl:M,inlineCollapsed:x,siderCollapsed:D,onItemClick:w,selectedKeys:W,registerMenuInfo:q,unRegisterMenuInfo:b}=se(),K=Tn(),F=T(!1),H=m(()=>[...u.value,a]);q(s,{eventKey:s,key:a,parentEventKeys:v,parentKeys:u,isLeaf:!0}),Oe(()=>{b(s)}),oe(p,()=>{F.value=!!p.value.find(S=>S===a)},{immediate:!0});const R=m(()=>h.value||e.disabled),G=m(()=>W.value.includes(a)),Q=m(()=>{const S=`${i.value}-item`;return{[`${S}`]:!0,[`${S}-danger`]:e.danger,[`${S}-active`]:F.value,[`${S}-selected`]:G.value,[`${S}-disabled`]:R.value}}),ee=S=>({key:a,eventKey:s,keyPath:H.value,eventKeyPath:[...v.value,s],domEvent:S,item:y(y({},e),l)}),ie=S=>{if(R.value)return;const z=ee(S);o("click",S),w(z)},$=S=>{R.value||(g(H.value),o("mouseenter",S))},_=S=>{R.value||(g([]),o("mouseleave",S))},A=S=>{if(o("keydown",S),S.which===nn.ENTER){const z=ee(S);o("click",S),w(z)}},V=S=>{g(H.value),o("focus",S)},L=(S,z)=>{const Y=f("span",{class:`${i.value}-title-content`},[z]);return(!S||gt(z)&&z.type==="span")&&z&&x.value&&K&&typeof z=="string"?f("div",{class:`${i.value}-inline-collapsed-noicon`},[z.charAt(0)]):Y},fe=Rt(m(()=>H.value.length));return()=>{var S,z,Y,le,ae;if(d)return null;const te=(S=e.title)!==null&&S!==void 0?S:(z=t.title)===null||z===void 0?void 0:z.call(t),c=ft((Y=t.default)===null||Y===void 0?void 0:Y.call(t)),I=c.length;let O=te;typeof te>"u"?O=K&&I?c:"":te===!1&&(O="");const B={title:O};!D.value&&!x.value&&(B.title=null,B.open=!1);const k={};e.role==="option"&&(k["aria-selected"]=G.value);const P=(le=e.icon)!==null&&le!==void 0?le:(ae=t.icon)===null||ae===void 0?void 0:ae.call(t,e);return f(Jt,C(C({},B),{},{placement:M.value?"left":"right",overlayClassName:`${i.value}-inline-collapsed-tooltip`}),{default:()=>[f(de.Item,C(C(C({component:"li"},l),{},{id:e.id,style:y(y({},l.style||{}),fe.value),class:[Q.value,{[`${l.class}`]:!!l.class,[`${i.value}-item-only-child`]:(P?I+1:I)===1}],role:e.role||"menuitem",tabindex:e.disabled?null:-1,"data-menu-id":a,"aria-disabled":e.disabled},k),{},{onMouseenter:$,onMouseleave:_,onClick:ie,onKeydown:A,onFocus:V,title:typeof te=="string"?te:void 0}),{default:()=>[Le(typeof P=="function"?P(e.originItemValue):P,{class:`${i.value}-item-icon`},!1),L(P,c)]})]})}}}),ce={adjustX:1,adjustY:1},Nn={topLeft:{points:["bl","tl"],overflow:ce,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:ce,offset:[0,7]},leftTop:{points:["tr","tl"],overflow:ce,offset:[-4,0]},rightTop:{points:["tl","tr"],overflow:ce,offset:[4,0]}},Hn={topLeft:{points:["bl","tl"],overflow:ce,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:ce,offset:[0,7]},rightTop:{points:["tr","tl"],overflow:ce,offset:[-4,0]},leftTop:{points:["tl","tr"],overflow:ce,offset:[4,0]}},Ln={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"},lt=J({compatConfig:{MODE:3},name:"PopupTrigger",inheritAttrs:!1,props:{prefixCls:String,mode:String,visible:Boolean,popupClassName:String,popupOffset:Array,disabled:Boolean,onVisibleChange:Function},slots:Object,emits:["visibleChange"],setup(e,n){let{slots:t,emit:o}=n;const l=T(!1),{getPopupContainer:r,rtl:d,subMenuOpenDelay:a,subMenuCloseDelay:s,builtinPlacements:v,triggerSubMenuAction:u,forceSubMenuRender:i,motion:p,defaultMotions:h,rootClassName:g}=se(),M=Kt(),x=m(()=>d.value?y(y({},Hn),v.value):y(y({},Nn),v.value)),D=m(()=>Ln[e.mode]),w=T();oe(()=>e.visible,b=>{Te.cancel(w.value),w.value=Te(()=>{l.value=b})},{immediate:!0}),Oe(()=>{Te.cancel(w.value)});const W=b=>{o("visibleChange",b)},q=m(()=>{var b,K;const F=p.value||((b=h.value)===null||b===void 0?void 0:b[e.mode])||((K=h.value)===null||K===void 0?void 0:K.other),H=typeof F=="function"?F():F;return H?Ft(H.name,{css:!0}):void 0});return()=>{const{prefixCls:b,popupClassName:K,mode:F,popupOffset:H,disabled:X}=e;return f(en,{prefixCls:b,popupClassName:ye(`${b}-popup`,{[`${b}-rtl`]:d.value},K,g.value),stretch:F==="horizontal"?"minWidth":null,getPopupContainer:r.value,builtinPlacements:x.value,popupPlacement:D.value,popupVisible:l.value,popupAlign:H&&{offset:H},action:X?[]:[u.value],mouseEnterDelay:a.value,mouseLeaveDelay:s.value,onPopupVisibleChange:W,forceRender:M||i.value,popupAnimation:q.value},{popup:t.popup,default:t.default})}}}),Xe=(e,n)=>{let{slots:t,attrs:o}=n;var l;const{prefixCls:r,mode:d}=se();return f("ul",C(C({},o),{},{class:ye(r.value,`${r.value}-sub`,`${r.value}-${d.value==="inline"?"inline":"vertical"}`),"data-menu-list":!0}),[(l=t.default)===null||l===void 0?void 0:l.call(t)])};Xe.displayName="SubMenuList";const jn=J({compatConfig:{MODE:3},name:"InlineSubMenuList",inheritAttrs:!1,props:{id:String,open:Boolean,keyPath:Array},setup(e,n){let{slots:t}=n;const o=m(()=>"inline"),{motion:l,mode:r,defaultMotions:d}=se(),a=m(()=>r.value===o.value),s=U(!a.value),v=m(()=>a.value?e.open:!1);oe(r,()=>{a.value&&(s.value=!1)},{flush:"post"});const u=m(()=>{var i,p;const h=l.value||((i=d.value)===null||i===void 0?void 0:i[o.value])||((p=d.value)===null||p===void 0?void 0:p.other),g=typeof h=="function"?h():h;return y(y({},g),{appear:e.keyPath.length<=1})});return()=>{var i;return s.value?null:f(Ke,{mode:o.value},{default:()=>[f(zt,u.value,{default:()=>[Nt(f(Xe,{id:e.id},{default:()=>[(i=t.default)===null||i===void 0?void 0:i.call(t)]}),[[Ht,v.value]])]})]})}}});let it=0;const Wn=()=>({icon:re.any,title:re.any,disabled:Boolean,level:Number,popupClassName:String,popupOffset:Array,internalPopupClose:Boolean,eventKey:String,expandIcon:Function,theme:String,onMouseenter:Function,onMouseleave:Function,onTitleClick:Function,originItemValue:He()}),he=J({compatConfig:{MODE:3},name:"ASubMenu",inheritAttrs:!1,props:Wn(),slots:Object,setup(e,n){let{slots:t,attrs:o,emit:l}=n;var r,d;Pt(!1);const a=Ve(),s=pt(),v=typeof s.vnode.key=="symbol"?String(s.vnode.key):s.vnode.key;Me(typeof s.vnode.key!="symbol","SubMenu",`SubMenu \`:key="${String(v)}"\` not support Symbol type`);const u=Qe(v)?v:`sub_menu_${++it}_$$_not_set_key`,i=(r=e.eventKey)!==null&&r!==void 0?r:Qe(v)?`sub_menu_${++it}_$$_${v}`:u,{parentEventKeys:p,parentInfo:h,parentKeys:g}=We(),M=m(()=>[...g.value,u]),x=T([]),D={eventKey:i,key:u,parentEventKeys:p,childrenEventKeys:x,parentKeys:g};(d=h.childrenEventKeys)===null||d===void 0||d.value.push(i),Oe(()=>{var E;h.childrenEventKeys&&(h.childrenEventKeys.value=(E=h.childrenEventKeys)===null||E===void 0?void 0:E.value.filter(j=>j!=i))}),kn(i,u,D);const{prefixCls:w,activeKeys:W,disabled:q,changeActiveKeys:b,mode:K,inlineCollapsed:F,openKeys:H,overflowDisabled:X,onOpenChange:R,registerMenuInfo:G,unRegisterMenuInfo:Q,selectedSubMenuKeys:ee,expandIcon:ie,theme:$}=se(),_=v!=null,A=!a&&(Kt()||!_);An(A),(a&&_||!a&&!_||A)&&(G(i,D),Oe(()=>{Q(i)}));const V=m(()=>`${w.value}-submenu`),L=m(()=>q.value||e.disabled),fe=T(),S=T(),z=m(()=>H.value.includes(u)),Y=m(()=>!X.value&&z.value),le=m(()=>ee.value.includes(u)),ae=T(!1);oe(W,()=>{ae.value=!!W.value.find(E=>E===u)},{immediate:!0});const te=E=>{L.value||(l("titleClick",E,u),K.value==="inline"&&R(u,!z.value))},c=E=>{L.value||(b(M.value),l("mouseenter",E))},I=E=>{L.value||(b([]),l("mouseleave",E))},O=Rt(m(()=>M.value.length)),B=E=>{K.value!=="inline"&&R(u,E)},k=()=>{b(M.value)},P=i&&`${i}-popup`,Z=m(()=>ye(w.value,`${w.value}-${e.theme||$.value}`,e.popupClassName)),N=(E,j)=>{if(!j)return F.value&&!g.value.length&&E&&typeof E=="string"?f("div",{class:`${w.value}-inline-collapsed-noicon`},[E.charAt(0)]):f("span",{class:`${w.value}-title-content`},[E]);const ue=gt(E)&&E.type==="span";return f(Fe,null,[Le(typeof j=="function"?j(e.originItemValue):j,{class:`${w.value}-item-icon`},!1),ue?E:f("span",{class:`${w.value}-title-content`},[E])])},ne=m(()=>K.value!=="inline"&&M.value.length>1?"vertical":K.value),pe=m(()=>K.value==="horizontal"?"vertical":K.value),Tt=m(()=>ne.value==="horizontal"?"vertical":ne.value),Ye=()=>{var E,j;const ue=V.value,_e=(E=e.icon)!==null&&E!==void 0?E:(j=t.icon)===null||j===void 0?void 0:j.call(t,e),Ge=e.expandIcon||t.expandIcon||ie.value,De=N(yt(t,e,"title"),_e);return f("div",{style:O.value,class:`${ue}-title`,tabindex:L.value?null:-1,ref:fe,title:typeof De=="string"?De:null,"data-menu-id":u,"aria-expanded":Y.value,"aria-haspopup":!0,"aria-controls":P,"aria-disabled":L.value,onClick:te,onFocus:k},[De,K.value!=="horizontal"&&Ge?Ge(y(y({},e),{isOpen:Y.value})):f("i",{class:`${ue}-arrow`},null)])};return()=>{var E;if(a)return _?(E=t.default)===null||E===void 0?void 0:E.call(t):null;const j=V.value;let ue=()=>null;if(!X.value&&K.value!=="inline"){const _e=K.value==="horizontal"?[0,8]:[10,0];ue=()=>f(lt,{mode:ne.value,prefixCls:j,visible:!e.internalPopupClose&&Y.value,popupClassName:Z.value,popupOffset:e.popupOffset||_e,disabled:L.value,onVisibleChange:B},{default:()=>[Ye()],popup:()=>f(Ke,{mode:Tt.value},{default:()=>[f(Xe,{id:P,ref:S},{default:t.default})]})})}else ue=()=>f(lt,null,{default:Ye});return f(Ke,{mode:pe.value},{default:()=>[f(de.Item,C(C({component:"li"},o),{},{role:"none",class:ye(j,`${j}-${K.value}`,o.class,{[`${j}-open`]:Y.value,[`${j}-active`]:ae.value,[`${j}-selected`]:le.value,[`${j}-disabled`]:L.value}),onMouseenter:c,onMouseleave:I,"data-submenu-id":u}),{default:()=>f(Fe,null,[ue(),!X.value&&f(jn,{id:P,open:Y.value,keyPath:M.value},{default:t.default})])})]})}}});function At(e,n){return e.classList?e.classList.contains(n):` ${e.className} `.indexOf(` ${n} `)>-1}function at(e,n){e.classList?e.classList.add(n):At(e,n)||(e.className=`${e.className} ${n}`)}function rt(e,n){if(e.classList)e.classList.remove(n);else if(At(e,n)){const t=e.className;e.className=` ${t} `.replace(` ${n} `," ")}}const Vn=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"ant-motion-collapse",n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return{name:e,appear:n,css:!0,onBeforeEnter:t=>{t.style.height="0px",t.style.opacity="0",at(t,e)},onEnter:t=>{Lt(()=>{t.style.height=`${t.scrollHeight}px`,t.style.opacity="1"})},onAfterEnter:t=>{t&&(rt(t,e),t.style.height=null,t.style.opacity=null)},onBeforeLeave:t=>{at(t,e),t.style.height=`${t.offsetHeight}px`,t.style.opacity=null},onLeave:t=>{setTimeout(()=>{t.style.height="0px",t.style.opacity="0"})},onAfterLeave:t=>{t&&(rt(t,e),t.style&&(t.style.height=null,t.style.opacity=null))}}},Xn=()=>({title:re.any,originItemValue:He()}),Ee=J({compatConfig:{MODE:3},name:"AMenuItemGroup",inheritAttrs:!1,props:Xn(),slots:Object,setup(e,n){let{slots:t,attrs:o}=n;const{prefixCls:l}=se(),r=m(()=>`${l.value}-item-group`),d=Ve();return()=>{var a,s;return d?(a=t.default)===null||a===void 0?void 0:a.call(t):f("li",C(C({},o),{},{onClick:v=>v.stopPropagation(),class:r.value}),[f("div",{title:typeof e.title=="string"?e.title:void 0,class:`${r.value}-title`},[yt(t,e,"title")]),f("ul",{class:`${r.value}-list`},[(s=t.default)===null||s===void 0?void 0:s.call(t)])])}}}),Yn=()=>({prefixCls:String,dashed:Boolean}),Pe=J({compatConfig:{MODE:3},name:"AMenuDivider",props:Yn(),setup(e){const{prefixCls:n}=se(),t=m(()=>({[`${n.value}-item-divider`]:!0,[`${n.value}-item-divider-dashed`]:!!e.dashed}));return()=>f("li",{class:t.value},null)}});var Gn=function(e,n){var t={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&n.indexOf(o)<0&&(t[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var l=0,o=Object.getOwnPropertySymbols(e);l{if(o&&typeof o=="object"){const r=o,{label:d,children:a,key:s,type:v}=r,u=Gn(r,["label","children","key","type"]),i=s??`tmp-${l}`,p=t?t.parentKeys.slice():[],h=[],g={eventKey:i,key:i,parentEventKeys:U(p),parentKeys:U(p),childrenEventKeys:U(h),isLeaf:!1};if(a||v==="group"){if(v==="group"){const x=Ne(a,n,t);return f(Ee,C(C({key:i},u),{},{title:d,originItemValue:o}),{default:()=>[x]})}n.set(i,g),t&&t.childrenEventKeys.push(i);const M=Ne(a,n,{childrenEventKeys:h,parentKeys:[].concat(p,i)});return f(he,C(C({key:i},u),{},{title:d,originItemValue:o}),{default:()=>[M]})}return v==="divider"?f(Pe,C({key:i},u),null):(g.isLeaf=!0,n.set(i,g),f(Se,C(C({key:i},u),{},{originItemValue:o}),{default:()=>[d]}))}return null}).filter(o=>o)}function Un(e){const n=T([]),t=T(!1),o=T(new Map);return oe(()=>e.items,()=>{const l=new Map;t.value=!1,e.items?(t.value=!0,n.value=Ne(e.items,l)):n.value=void 0,o.value=l},{immediate:!0,deep:!0}),{itemsNodes:n,store:o,hasItmes:t}}const qn=e=>{const{componentCls:n,motionDurationSlow:t,menuHorizontalHeight:o,colorSplit:l,lineWidth:r,lineType:d,menuItemPaddingInline:a}=e;return{[`${n}-horizontal`]:{lineHeight:`${o}px`,border:0,borderBottom:`${r}px ${d} ${l}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${n}-item, ${n}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:a},[`> ${n}-item:hover, + > ${n}-item-active, + > ${n}-submenu ${n}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${n}-item, ${n}-submenu-title`]:{transition:[`border-color ${t}`,`background ${t}`].join(",")},[`${n}-submenu-arrow`]:{display:"none"}}}},Qn=e=>{let{componentCls:n,menuArrowOffset:t}=e;return{[`${n}-rtl`]:{direction:"rtl"},[`${n}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${n}-rtl${n}-vertical, + ${n}-submenu-rtl ${n}-vertical`]:{[`${n}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(-${t})`},"&::after":{transform:`rotate(45deg) translateY(${t})`}}}}},st=e=>y({},jt(e)),ut=(e,n)=>{const{componentCls:t,colorItemText:o,colorItemTextSelected:l,colorGroupTitle:r,colorItemBg:d,colorSubItemBg:a,colorItemBgSelected:s,colorActiveBarHeight:v,colorActiveBarWidth:u,colorActiveBarBorderSize:i,motionDurationSlow:p,motionEaseInOut:h,motionEaseOut:g,menuItemPaddingInline:M,motionDurationMid:x,colorItemTextHover:D,lineType:w,colorSplit:W,colorItemTextDisabled:q,colorDangerItemText:b,colorDangerItemTextHover:K,colorDangerItemTextSelected:F,colorDangerItemBgActive:H,colorDangerItemBgSelected:X,colorItemBgHover:R,menuSubMenuBg:G,colorItemTextSelectedHorizontal:Q,colorItemBgSelectedHorizontal:ee}=e;return{[`${t}-${n}`]:{color:o,background:d,[`&${t}-root:focus-visible`]:y({},st(e)),[`${t}-item-group-title`]:{color:r},[`${t}-submenu-selected`]:{[`> ${t}-submenu-title`]:{color:l}},[`${t}-item-disabled, ${t}-submenu-disabled`]:{color:`${q} !important`},[`${t}-item:hover, ${t}-submenu-title:hover`]:{[`&:not(${t}-item-selected):not(${t}-submenu-selected)`]:{color:D}},[`&:not(${t}-horizontal)`]:{[`${t}-item:not(${t}-item-selected)`]:{"&:hover":{backgroundColor:R},"&:active":{backgroundColor:s}},[`${t}-submenu-title`]:{"&:hover":{backgroundColor:R},"&:active":{backgroundColor:s}}},[`${t}-item-danger`]:{color:b,[`&${t}-item:hover`]:{[`&:not(${t}-item-selected):not(${t}-submenu-selected)`]:{color:K}},[`&${t}-item:active`]:{background:H}},[`${t}-item a`]:{"&, &:hover":{color:"inherit"}},[`${t}-item-selected`]:{color:l,[`&${t}-item-danger`]:{color:F},"a, a:hover":{color:"inherit"}},[`& ${t}-item-selected`]:{backgroundColor:s,[`&${t}-item-danger`]:{backgroundColor:X}},[`${t}-item, ${t}-submenu-title`]:{[`&:not(${t}-item-disabled):focus-visible`]:y({},st(e))},[`&${t}-submenu > ${t}`]:{backgroundColor:G},[`&${t}-popup > ${t}`]:{backgroundColor:d},[`&${t}-horizontal`]:y(y({},n==="dark"?{borderBottom:0}:{}),{[`> ${t}-item, > ${t}-submenu`]:{top:i,marginTop:-i,marginBottom:0,borderRadius:0,"&::after":{position:"absolute",insetInline:M,bottom:0,borderBottom:`${v}px solid transparent`,transition:`border-color ${p} ${h}`,content:'""'},"&:hover, &-active, &-open":{"&::after":{borderBottomWidth:v,borderBottomColor:Q}},"&-selected":{color:Q,backgroundColor:ee,"&::after":{borderBottomWidth:v,borderBottomColor:Q}}}}),[`&${t}-root`]:{[`&${t}-inline, &${t}-vertical`]:{borderInlineEnd:`${i}px ${w} ${W}`}},[`&${t}-inline`]:{[`${t}-sub${t}-inline`]:{background:a},[`${t}-item, ${t}-submenu-title`]:i&&u?{width:`calc(100% + ${i}px)`}:{},[`${t}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${u}px solid ${l}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${x} ${g}`,`opacity ${x} ${g}`].join(","),content:'""'},[`&${t}-item-danger`]:{"&::after":{borderInlineEndColor:F}}},[`${t}-selected, ${t}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${x} ${h}`,`opacity ${x} ${h}`].join(",")}}}}}},ct=e=>{const{componentCls:n,menuItemHeight:t,itemMarginInline:o,padding:l,menuArrowSize:r,marginXS:d,marginXXS:a}=e,s=l+r+d;return{[`${n}-item`]:{position:"relative"},[`${n}-item, ${n}-submenu-title`]:{height:t,lineHeight:`${t}px`,paddingInline:l,overflow:"hidden",textOverflow:"ellipsis",marginInline:o,marginBlock:a,width:`calc(100% - ${o*2}px)`},[`${n}-submenu`]:{paddingBottom:.02},[`> ${n}-item, + > ${n}-submenu > ${n}-submenu-title`]:{height:t,lineHeight:`${t}px`},[`${n}-item-group-list ${n}-submenu-title, + ${n}-submenu-title`]:{paddingInlineEnd:s}}},Zn=e=>{const{componentCls:n,iconCls:t,menuItemHeight:o,colorTextLightSolid:l,dropdownWidth:r,controlHeightLG:d,motionDurationMid:a,motionEaseOut:s,paddingXL:v,fontSizeSM:u,fontSizeLG:i,motionDurationSlow:p,paddingXS:h,boxShadowSecondary:g}=e,M={height:o,lineHeight:`${o}px`,listStylePosition:"inside",listStyleType:"disc"};return[{[n]:{"&-inline, &-vertical":y({[`&${n}-root`]:{boxShadow:"none"}},ct(e))},[`${n}-submenu-popup`]:{[`${n}-vertical`]:y(y({},ct(e)),{boxShadow:g})}},{[`${n}-submenu-popup ${n}-vertical${n}-sub`]:{minWidth:r,maxHeight:`calc(100vh - ${d*2.5}px)`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${n}-inline`]:{width:"100%",[`&${n}-root`]:{[`${n}-item, ${n}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${p}`,`background ${p}`,`padding ${a} ${s}`].join(","),[`> ${n}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${n}-sub${n}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${n}-submenu > ${n}-submenu-title`]:M,[`& ${n}-item-group-title`]:{paddingInlineStart:v}},[`${n}-item`]:M}},{[`${n}-inline-collapsed`]:{width:o*2,[`&${n}-root`]:{[`${n}-item, ${n}-submenu ${n}-submenu-title`]:{[`> ${n}-inline-collapsed-noicon`]:{fontSize:i,textAlign:"center"}}},[`> ${n}-item, + > ${n}-item-group > ${n}-item-group-list > ${n}-item, + > ${n}-item-group > ${n}-item-group-list > ${n}-submenu > ${n}-submenu-title, + > ${n}-submenu > ${n}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${u}px)`,textOverflow:"clip",[` + ${n}-submenu-arrow, + ${n}-submenu-expand-icon + `]:{opacity:0},[`${n}-item-icon, ${t}`]:{margin:0,fontSize:i,lineHeight:`${o}px`,"+ span":{display:"inline-block",opacity:0}}},[`${n}-item-icon, ${t}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${n}-item-icon, ${t}`]:{display:"none"},"a, a:hover":{color:l}},[`${n}-item-group-title`]:y(y({},Wt),{paddingInline:h})}}]},dt=e=>{const{componentCls:n,fontSize:t,motionDurationSlow:o,motionDurationMid:l,motionEaseInOut:r,motionEaseOut:d,iconCls:a,controlHeightSM:s}=e;return{[`${n}-item, ${n}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${o}`,`background ${o}`,`padding ${o} ${r}`].join(","),[`${n}-item-icon, ${a}`]:{minWidth:t,fontSize:t,transition:[`font-size ${l} ${d}`,`margin ${o} ${r}`,`color ${o}`].join(","),"+ span":{marginInlineStart:s-t,opacity:1,transition:[`opacity ${o} ${r}`,`margin ${o}`,`color ${o}`].join(",")}},[`${n}-item-icon`]:y({},Yt()),[`&${n}-item-only-child`]:{[`> ${a}, > ${n}-item-icon`]:{marginInlineEnd:0}}},[`${n}-item-disabled, ${n}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important"},[`> ${n}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},mt=e=>{const{componentCls:n,motionDurationSlow:t,motionEaseInOut:o,borderRadius:l,menuArrowSize:r,menuArrowOffset:d}=e;return{[`${n}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:e.margin,width:r,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${t} ${o}, opacity ${t}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:r*.6,height:r*.15,backgroundColor:"currentcolor",borderRadius:l,transition:[`background ${t} ${o}`,`transform ${t} ${o}`,`top ${t} ${o}`,`color ${t} ${o}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(-${d})`},"&::after":{transform:`rotate(-45deg) translateY(${d})`}}}}},Jn=e=>{const{antCls:n,componentCls:t,fontSize:o,motionDurationSlow:l,motionDurationMid:r,motionEaseInOut:d,lineHeight:a,paddingXS:s,padding:v,colorSplit:u,lineWidth:i,zIndexPopup:p,borderRadiusLG:h,radiusSubMenuItem:g,menuArrowSize:M,menuArrowOffset:x,lineType:D,menuPanelMaskInset:w}=e;return[{"":{[`${t}`]:y(y({},et()),{"&-hidden":{display:"none"}})},[`${t}-submenu-hidden`]:{display:"none"}},{[t]:y(y(y(y(y(y(y({},Xt(e)),et()),{marginBottom:0,paddingInlineStart:0,fontSize:o,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${l} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${t}-item`]:{flex:"none"}},[`${t}-item, ${t}-submenu, ${t}-submenu-title`]:{borderRadius:e.radiusItem},[`${t}-item-group-title`]:{padding:`${s}px ${v}px`,fontSize:o,lineHeight:a,transition:`all ${l}`},[`&-horizontal ${t}-submenu`]:{transition:[`border-color ${l} ${d}`,`background ${l} ${d}`].join(",")},[`${t}-submenu, ${t}-submenu-inline`]:{transition:[`border-color ${l} ${d}`,`background ${l} ${d}`,`padding ${r} ${d}`].join(",")},[`${t}-submenu ${t}-sub`]:{cursor:"initial",transition:[`background ${l} ${d}`,`padding ${l} ${d}`].join(",")},[`${t}-title-content`]:{transition:`color ${l}`},[`${t}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${t}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:u,borderStyle:D,borderWidth:0,borderTopWidth:i,marginBlock:i,padding:0,"&-dashed":{borderStyle:"dashed"}}}),dt(e)),{[`${t}-item-group`]:{[`${t}-item-group-list`]:{margin:0,padding:0,[`${t}-item, ${t}-submenu-title`]:{paddingInline:`${o*2}px ${v}px`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:p,background:"transparent",borderRadius:h,boxShadow:"none",transformOrigin:"0 0","&::before":{position:"absolute",inset:`${w}px 0 0`,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'}},"&-placement-rightTop::before":{top:0,insetInlineStart:w},[`> ${t}`]:y(y(y({borderRadius:h},dt(e)),mt(e)),{[`${t}-item, ${t}-submenu > ${t}-submenu-title`]:{borderRadius:g},[`${t}-submenu-title::after`]:{transition:`transform ${l} ${d}`}})}}),mt(e)),{[`&-inline-collapsed ${t}-submenu-arrow, + &-inline ${t}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${x})`},"&::after":{transform:`rotate(45deg) translateX(-${x})`}},[`${t}-submenu-open${t}-submenu-inline > ${t}-submenu-title > ${t}-submenu-arrow`]:{transform:`translateY(-${M*.2}px)`,"&::after":{transform:`rotate(-45deg) translateX(-${x})`},"&::before":{transform:`rotate(45deg) translateX(${x})`}}})},{[`${n}-layout-header`]:{[t]:{lineHeight:"inherit"}}}]},eo=(e,n)=>Vt("Menu",(o,l)=>{let{overrideComponentToken:r}=l;if((n==null?void 0:n.value)===!1)return[];const{colorBgElevated:d,colorPrimary:a,colorError:s,colorErrorHover:v,colorTextLightSolid:u}=o,{controlHeightLG:i,fontSize:p}=o,h=p/7*5,g=Ze(o,{menuItemHeight:i,menuItemPaddingInline:o.margin,menuArrowSize:h,menuHorizontalHeight:i*1.15,menuArrowOffset:`${h*.25}px`,menuPanelMaskInset:-7,menuSubMenuBg:d}),M=new Je(u).setAlpha(.65).toRgbString(),x=Ze(g,{colorItemText:M,colorItemTextHover:u,colorGroupTitle:M,colorItemTextSelected:u,colorItemBg:"#001529",colorSubItemBg:"#000c17",colorItemBgActive:"transparent",colorItemBgSelected:a,colorActiveBarWidth:0,colorActiveBarHeight:0,colorActiveBarBorderSize:0,colorItemTextDisabled:new Je(u).setAlpha(.25).toRgbString(),colorDangerItemText:s,colorDangerItemTextHover:v,colorDangerItemTextSelected:u,colorDangerItemBgActive:s,colorDangerItemBgSelected:s,menuSubMenuBg:"#001529",colorItemTextSelectedHorizontal:u,colorItemBgSelectedHorizontal:a},y({},r));return[Jn(g),qn(g),Zn(g),ut(g,"light"),ut(x,"dark"),Qn(g),Pn(g),tt(g,"slide-up"),tt(g,"slide-down"),on(g,"zoom-big")]},o=>{const{colorPrimary:l,colorError:r,colorTextDisabled:d,colorErrorBg:a,colorText:s,colorTextDescription:v,colorBgContainer:u,colorFillAlter:i,colorFillContent:p,lineWidth:h,lineWidthBold:g,controlItemBgActive:M,colorBgTextHover:x}=o;return{dropdownWidth:160,zIndexPopup:o.zIndexPopupBase+50,radiusItem:o.borderRadiusLG,radiusSubMenuItem:o.borderRadiusSM,colorItemText:s,colorItemTextHover:s,colorItemTextHoverHorizontal:l,colorGroupTitle:v,colorItemTextSelected:l,colorItemTextSelectedHorizontal:l,colorItemBg:u,colorItemBgHover:x,colorItemBgActive:p,colorSubItemBg:i,colorItemBgSelected:M,colorItemBgSelectedHorizontal:"transparent",colorActiveBarWidth:0,colorActiveBarHeight:g,colorActiveBarBorderSize:h,colorItemTextDisabled:d,colorDangerItemText:r,colorDangerItemTextHover:r,colorDangerItemTextSelected:r,colorDangerItemBgActive:a,colorDangerItemBgSelected:a,itemMarginInline:o.marginXXS}})(e),to=()=>({id:String,prefixCls:String,items:Array,disabled:Boolean,inlineCollapsed:Boolean,disabledOverflow:Boolean,forceSubMenuRender:Boolean,openKeys:Array,selectedKeys:Array,activeKey:String,selectable:{type:Boolean,default:!0},multiple:{type:Boolean,default:!1},tabindex:{type:[Number,String]},motion:Object,role:String,theme:{type:String,default:"light"},mode:{type:String,default:"vertical"},inlineIndent:{type:Number,default:24},subMenuOpenDelay:{type:Number,default:0},subMenuCloseDelay:{type:Number,default:.1},builtinPlacements:{type:Object},triggerSubMenuAction:{type:String,default:"hover"},getPopupContainer:Function,expandIcon:Function,onOpenChange:Function,onSelect:Function,onDeselect:Function,onClick:[Function,Array],onFocus:Function,onBlur:Function,onMousedown:Function,"onUpdate:openKeys":Function,"onUpdate:selectedKeys":Function,"onUpdate:activeKey":Function}),vt=[],ge=J({compatConfig:{MODE:3},name:"AMenu",inheritAttrs:!1,props:to(),slots:Object,setup(e,n){let{slots:t,emit:o,attrs:l}=n;const{direction:r,getPrefixCls:d}=Gt("menu",e),a=xt(),s=m(()=>{var c;return d("menu",e.prefixCls||((c=a==null?void 0:a.prefixCls)===null||c===void 0?void 0:c.value))}),[v,u]=eo(s,m(()=>!a)),i=T(new Map),p=me(Bn,U(void 0)),h=m(()=>p.value!==void 0?p.value:e.inlineCollapsed),{itemsNodes:g}=Un(e),M=T(!1);Ut(()=>{M.value=!0}),Re(()=>{Me(!(e.inlineCollapsed===!0&&e.mode!=="inline"),"Menu","`inlineCollapsed` should only be used when `mode` is inline."),Me(!(p.value!==void 0&&e.inlineCollapsed===!0),"Menu","`inlineCollapsed` not control Menu under Sider. Should set `collapsed` on Sider instead.")});const x=U([]),D=U([]),w=U({});oe(i,()=>{const c={};for(const I of i.value.values())c[I.key]=I;w.value=c},{flush:"post"}),Re(()=>{if(e.activeKey!==void 0){let c=[];const I=e.activeKey?w.value[e.activeKey]:void 0;I&&e.activeKey!==void 0?c=ke([].concat(Ce(I.parentKeys),e.activeKey)):c=[],Ie(x.value,c)||(x.value=c)}}),oe(()=>e.selectedKeys,c=>{c&&(D.value=c.slice())},{immediate:!0,deep:!0});const W=U([]);oe([w,D],()=>{let c=[];D.value.forEach(I=>{const O=w.value[I];O&&(c=c.concat(Ce(O.parentKeys)))}),c=ke(c),Ie(W.value,c)||(W.value=c)},{immediate:!0});const q=c=>{if(e.selectable){const{key:I}=c,O=D.value.includes(I);let B;e.multiple?O?B=D.value.filter(P=>P!==I):B=[...D.value,I]:B=[I];const k=y(y({},c),{selectedKeys:B});Ie(B,D.value)||(e.selectedKeys===void 0&&(D.value=B),o("update:selectedKeys",B),O&&e.multiple?o("deselect",k):o("select",k))}R.value!=="inline"&&!e.multiple&&b.value.length&&ee(vt)},b=U([]);oe(()=>e.openKeys,function(){let c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:b.value;Ie(b.value,c)||(b.value=c.slice())},{immediate:!0,deep:!0});let K;const F=c=>{clearTimeout(K),K=setTimeout(()=>{e.activeKey===void 0&&(x.value=c),o("update:activeKey",c[c.length-1])})},H=m(()=>!!e.disabled),X=m(()=>r.value==="rtl"),R=U("vertical"),G=T(!1);Re(()=>{var c;(e.mode==="inline"||e.mode==="vertical")&&h.value?(R.value="vertical",G.value=h.value):(R.value=e.mode,G.value=!1),!((c=a==null?void 0:a.mode)===null||c===void 0)&&c.value&&(R.value=a.mode.value)});const Q=m(()=>R.value==="inline"),ee=c=>{b.value=c,o("update:openKeys",c),o("openChange",c)},ie=U(b.value),$=T(!1);oe(b,()=>{Q.value&&(ie.value=b.value)},{immediate:!0}),oe(Q,()=>{if(!$.value){$.value=!0;return}Q.value?b.value=ie.value:ee(vt)},{immediate:!0});const _=m(()=>({[`${s.value}`]:!0,[`${s.value}-root`]:!0,[`${s.value}-${R.value}`]:!0,[`${s.value}-inline-collapsed`]:G.value,[`${s.value}-rtl`]:X.value,[`${s.value}-${e.theme}`]:!0})),A=m(()=>d()),V=m(()=>({horizontal:{name:`${A.value}-slide-up`},inline:Vn(`${A.value}-motion-collapse`),other:{name:`${A.value}-zoom-big`}}));Pt(!0);const L=function(){let c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];const I=[],O=i.value;return c.forEach(B=>{const{key:k,childrenEventKeys:P}=O.get(B);I.push(k,...L(Ce(P)))}),I},fe=c=>{var I;o("click",c),q(c),(I=a==null?void 0:a.onClick)===null||I===void 0||I.call(a)},S=(c,I)=>{var O;const B=((O=w.value[c])===null||O===void 0?void 0:O.childrenEventKeys)||[];let k=b.value.filter(P=>P!==c);if(I)k.push(c);else if(R.value!=="inline"){const P=L(Ce(B));k=ke(k.filter(Z=>!P.includes(Z)))}Ie(b,k)||ee(k)},z=(c,I)=>{i.value.set(c,I),i.value=new Map(i.value)},Y=c=>{i.value.delete(c),i.value=new Map(i.value)},le=U(0),ae=m(()=>{var c;return e.expandIcon||t.expandIcon||!((c=a==null?void 0:a.expandIcon)===null||c===void 0)&&c.value?I=>{let O=e.expandIcon||t.expandIcon;return O=typeof O=="function"?O(I):O,Le(O,{class:`${s.value}-submenu-expand-icon`},!1)}:null});Ot({prefixCls:s,activeKeys:x,openKeys:b,selectedKeys:D,changeActiveKeys:F,disabled:H,rtl:X,mode:R,inlineIndent:m(()=>e.inlineIndent),subMenuCloseDelay:m(()=>e.subMenuCloseDelay),subMenuOpenDelay:m(()=>e.subMenuOpenDelay),builtinPlacements:m(()=>e.builtinPlacements),triggerSubMenuAction:m(()=>e.triggerSubMenuAction),getPopupContainer:m(()=>e.getPopupContainer),inlineCollapsed:G,theme:m(()=>e.theme),siderCollapsed:p,defaultMotions:m(()=>M.value?V.value:null),motion:m(()=>M.value?e.motion:null),overflowDisabled:T(void 0),onOpenChange:S,onItemClick:fe,registerMenuInfo:z,unRegisterMenuInfo:Y,selectedSubMenuKeys:W,expandIcon:ae,forceSubMenuRender:m(()=>e.forceSubMenuRender),rootClassName:u});const te=()=>{var c;return g.value||ft((c=t.default)===null||c===void 0?void 0:c.call(t))};return()=>{var c;const I=te(),O=le.value>=I.length-1||R.value!=="horizontal"||e.disabledOverflow,B=P=>R.value!=="horizontal"||e.disabledOverflow?P:P.map((Z,N)=>f(Ke,{key:Z.key,overflowDisabled:N>le.value},{default:()=>Z})),k=((c=t.overflowedIndicator)===null||c===void 0?void 0:c.call(t))||f(je,null,null);return v(f(de,C(C({},l),{},{onMousedown:e.onMousedown,prefixCls:`${s.value}-overflow`,component:"ul",itemComponent:Se,class:[_.value,l.class,u.value],role:"menu",id:e.id,data:B(I),renderRawItem:P=>P,renderRawRest:P=>{const Z=P.length,N=Z?I.slice(-Z):null;return f(Fe,null,[f(he,{eventKey:xe,key:xe,title:k,disabled:O,internalPopupClose:Z===0},{default:()=>N}),f(ot,null,{default:()=>[f(he,{eventKey:xe,key:xe,title:k,disabled:O,internalPopupClose:Z===0},{default:()=>N})]})])},maxCount:R.value!=="horizontal"||e.disabledOverflow?de.INVALIDATE:de.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:P=>{le.value=P}}),{default:()=>[f(qt,{to:"body"},{default:()=>[f("div",{style:{display:"none"},"aria-hidden":!0},[f(ot,null,{default:()=>[B(te())]})])]})]}))}}});ge.install=function(e){return e.component(ge.name,ge),e.component(Se.name,Se),e.component(he.name,he),e.component(Pe.name,Pe),e.component(Ee.name,Ee),e};ge.Item=Se;ge.Divider=Pe;ge.SubMenu=he;ge.ItemGroup=Ee;export{Se as A,je as E,ge as M,de as O,ro as S,Bn as a,Pe as b,Vn as c,Sn as d,Cn as e,In as f,Pn as g,at as h,tt as i,mn as j,gn as k,rt as r,xn as s,ao as u}; diff --git a/src/agentkit/server/static/assets/index-BLB5C8KY.js b/src/agentkit/server/static/assets/index-BLB5C8KY.js new file mode 100644 index 0000000..023258e --- /dev/null +++ b/src/agentkit/server/static/assets/index-BLB5C8KY.js @@ -0,0 +1,3 @@ +import{G as W,Q as ke,d as le,c as m,N as ie,r as V,g as H,H as Ce,_ as T,P as we,B as Te,A as oe,a7 as j,x as pt,y as ft,bp as ht,E as te,aI as me,b7 as he,p as mt,q as gt,s as tt,aT as $t,aX as at,J as yt,aD as xt,aY as St,z as _t,aM as Ct,az as xe,a4 as Tt,a8 as wt,Z as Pt}from"./index-Ci55MVrK.js";import{g as Xe,w as ge,i as nt,d as De}from"./_plugin-vue_export-helper-CBXJ7-XR.js";import{K as J,c as Rt}from"./zoom-C2fVs05p.js";import{u as It,E as Et,M as Bt,A as Lt,i as Fe}from"./index-B5q-1V92.js";import{e as ot,t as At,f as Dt,g as Mt,h as kt,j as Nt,c as Ot,d as Wt}from"./Dropdown-BUKifQVF.js";import{u as D}from"./index-Dr_Qcbdk.js";import{j as Ht,R as je}from"./base-B4siOKZE.js";import{u as Ve,P as zt}from"./index-D6JhFblJ.js";import{o as Kt}from"./FormItemContext-D_7H_KA_.js";function Gt(e,t,a,i){if(!Xe(e))return e;t=ot(t,e);for(var o=-1,l=t.length,n=l-1,s=e;s!=null&&++o{e(...l)}))}return ke(()=>{a.value=!0,ge.cancel(t.value)}),i}function Vt(e){const t=W([]),a=W(typeof e=="function"?e():e),i=jt(()=>{let l=a.value;t.value.forEach(n=>{l=n(l)}),t.value=[],a.value=l});function o(l){t.value.push(l),i()}return[a,o]}const Yt=le({compatConfig:{MODE:3},name:"TabNode",props:{id:{type:String},prefixCls:{type:String},tab:{type:Object},active:{type:Boolean},closable:{type:Boolean},editable:{type:Object},onClick:{type:Function},onResize:{type:Function},renderWrapper:{type:Function},removeAriaLabel:{type:String},onFocus:{type:Function}},emits:["click","resize","remove","focus"],setup(e,t){let{expose:a,attrs:i}=t;const o=V();function l(v){var c;!((c=e.tab)===null||c===void 0)&&c.disabled||e.onClick(v)}a({domRef:o});function n(v){var c;v.preventDefault(),v.stopPropagation(),e.editable.onEdit("remove",{key:(c=e.tab)===null||c===void 0?void 0:c.key,event:v})}const s=H(()=>{var v;return e.editable&&e.closable!==!1&&!(!((v=e.tab)===null||v===void 0)&&v.disabled)});return()=>{var v;const{prefixCls:c,id:p,active:_,tab:{key:h,tab:d,disabled:y,closeIcon:x},renderWrapper:w,removeAriaLabel:C,editable:M,onFocus:K}=e,k=`${c}-tab`,r=m("div",{key:h,ref:o,class:ie(k,{[`${k}-with-remove`]:s.value,[`${k}-active`]:_,[`${k}-disabled`]:y}),style:i.style,onClick:l},[m("div",{role:"tab","aria-selected":_,id:p&&`${p}-tab-${h}`,class:`${k}-btn`,"aria-controls":p&&`${p}-panel-${h}`,"aria-disabled":y,tabindex:y?null:0,onClick:g=>{g.stopPropagation(),l(g)},onKeydown:g=>{[J.SPACE,J.ENTER].includes(g.which)&&(g.preventDefault(),l(g))},onFocus:K},[typeof d=="function"?d():d]),s.value&&m("button",{type:"button","aria-label":C||"remove",tabindex:0,class:`${k}-remove`,onClick:g=>{g.stopPropagation(),n(g)}},[(x==null?void 0:x())||((v=M.removeIcon)===null||v===void 0?void 0:v.call(M))||"×"])]);return w?w(r):r}}}),Ye={width:0,height:0,left:0,top:0};function Ut(e,t){const a=V(new Map);return Ce(()=>{var i,o;const l=new Map,n=e.value,s=t.value.get((i=n[0])===null||i===void 0?void 0:i.key)||Ye,v=s.left+s.width;for(let c=0;c{const{prefixCls:l,editable:n,locale:s}=e;return!n||n.showAdd===!1?null:m("button",{ref:o,type:"button",class:`${l}-nav-add`,style:i.style,"aria-label":(s==null?void 0:s.addAriaLabel)||"Add tab",onClick:v=>{n.onEdit("add",{event:v})}},[n.addIcon?n.addIcon():"+"])}}}),Zt={prefixCls:{type:String},id:{type:String},tabs:{type:Object},rtl:{type:Boolean},tabBarGutter:{type:Number},activeKey:{type:[String,Number]},mobile:{type:Boolean},moreIcon:we.any,moreTransitionName:{type:String},editable:{type:Object},locale:{type:Object,default:void 0},removeAriaLabel:String,onTabClick:{type:Function},popupClassName:String,getPopupContainer:j()},qt=le({compatConfig:{MODE:3},name:"OperationNode",inheritAttrs:!1,props:Zt,emits:["tabClick"],slots:Object,setup(e,t){let{attrs:a,slots:i}=t;const[o,l]=D(!1),[n,s]=D(null),v=d=>{const y=e.tabs.filter(C=>!C.disabled);let x=y.findIndex(C=>C.key===n.value)||0;const w=y.length;for(let C=0;C{const{which:y}=d;if(!o.value){[J.DOWN,J.SPACE,J.ENTER].includes(y)&&(l(!0),d.preventDefault());return}switch(y){case J.UP:v(-1),d.preventDefault();break;case J.DOWN:v(1),d.preventDefault();break;case J.ESC:l(!1);break;case J.SPACE:case J.ENTER:n.value!==null&&e.onTabClick(n.value,d);break}},p=H(()=>`${e.id}-more-popup`),_=H(()=>n.value!==null?`${p.value}-${n.value}`:null),h=(d,y)=>{d.preventDefault(),d.stopPropagation(),e.editable.onEdit("remove",{key:y,event:d})};return Te(()=>{oe(n,()=>{const d=document.getElementById(_.value);d&&d.scrollIntoView&&d.scrollIntoView(!1)},{flush:"post",immediate:!0})}),oe(o,()=>{o.value||s(null)}),It({}),()=>{var d;const{prefixCls:y,id:x,tabs:w,locale:C,mobile:M,moreIcon:K=((d=i.moreIcon)===null||d===void 0?void 0:d.call(i))||m(Et,null,null),moreTransitionName:k,editable:r,tabBarGutter:g,rtl:u,onTabClick:$,popupClassName:E}=e;if(!w.length)return null;const R=`${y}-dropdown`,G=C==null?void 0:C.dropdownAriaLabel,re={[u?"marginRight":"marginLeft"]:g};w.length||(re.visibility="hidden",re.order=1);const se=ie({[`${R}-rtl`]:u,[`${E}`]:!0}),de=M?null:m(Ot,{prefixCls:R,trigger:["hover"],visible:o.value,transitionName:k,onVisibleChange:l,overlayClassName:se,mouseEnterDelay:.1,mouseLeaveDelay:.1,getPopupContainer:e.getPopupContainer},{overlay:()=>m(Bt,{onClick:I=>{let{key:Q,domEvent:N}=I;$(Q,N),l(!1)},id:p.value,tabindex:-1,role:"listbox","aria-activedescendant":_.value,selectedKeys:[n.value],"aria-label":G!==void 0?G:"expanded dropdown"},{default:()=>[w.map(I=>{var Q,N;const Y=r&&I.closable!==!1&&!I.disabled;return m(Lt,{key:I.key,id:`${p.value}-${I.key}`,role:"option","aria-controls":x&&`${x}-panel-${I.key}`,disabled:I.disabled},{default:()=>[m("span",null,[typeof I.tab=="function"?I.tab():I.tab]),Y&&m("button",{type:"button","aria-label":e.removeAriaLabel||"remove",tabindex:0,class:`${R}-menu-item-remove`,onClick:U=>{U.stopPropagation(),h(U,I.key)}},[((Q=I.closeIcon)===null||Q===void 0?void 0:Q.call(I))||((N=r.removeIcon)===null||N===void 0?void 0:N.call(r))||"×"])]})})]}),default:()=>m("button",{type:"button",class:`${y}-nav-more`,style:re,tabindex:-1,"aria-hidden":"true","aria-haspopup":"listbox","aria-controls":p.value,id:`${x}-more`,"aria-expanded":o.value,onKeydown:c},[K])});return m("div",{class:ie(`${y}-nav-operations`,a.class),style:a.style},[de,m(lt,{prefixCls:y,locale:C,editable:r},null)])}}}),rt=Symbol("tabsContextKey"),Jt=e=>{ft(rt,e)},st=()=>pt(rt,{tabs:V([]),prefixCls:V()}),Qt=.1,Ue=.01,Se=20,Ze=Math.pow(.995,Se);function ea(e,t){const[a,i]=D(),[o,l]=D(0),[n,s]=D(0),[v,c]=D(),p=V();function _(r){const{screenX:g,screenY:u}=r.touches[0];i({x:g,y:u}),clearInterval(p.value)}function h(r){if(!a.value)return;r.preventDefault();const{screenX:g,screenY:u}=r.touches[0],$=g-a.value.x,E=u-a.value.y;t($,E),i({x:g,y:u});const R=Date.now();s(R-o.value),l(R),c({x:$,y:E})}function d(){if(!a.value)return;const r=v.value;if(i(null),c(null),r){const g=r.x/n.value,u=r.y/n.value,$=Math.abs(g),E=Math.abs(u);if(Math.max($,E){if(Math.abs(R)R?($=g,y.value="x"):($=u,y.value="y"),t(-$,-$)&&r.preventDefault()}const w=V({onTouchStart:_,onTouchMove:h,onTouchEnd:d,onWheel:x});function C(r){w.value.onTouchStart(r)}function M(r){w.value.onTouchMove(r)}function K(r){w.value.onTouchEnd(r)}function k(r){w.value.onWheel(r)}Te(()=>{var r,g;document.addEventListener("touchmove",M,{passive:!1}),document.addEventListener("touchend",K,{passive:!1}),(r=e.value)===null||r===void 0||r.addEventListener("touchstart",C,{passive:!1}),(g=e.value)===null||g===void 0||g.addEventListener("wheel",k,{passive:!1})}),ke(()=>{document.removeEventListener("touchmove",M),document.removeEventListener("touchend",K)})}function qe(e,t){const a=V(e);function i(o){const l=typeof o=="function"?o(a.value):o;l!==a.value&&t(l,a.value),a.value=l}return[a,i]}const ta=()=>{const e=V(new Map),t=a=>i=>{e.value.set(a,i)};return ht(()=>{e.value=new Map}),[t,e]},Je={width:0,height:0,left:0,top:0,right:0},aa=()=>({id:{type:String},tabPosition:{type:String},activeKey:{type:[String,Number]},rtl:{type:Boolean},animated:me(),editable:me(),moreIcon:we.any,moreTransitionName:{type:String},mobile:{type:Boolean},tabBarGutter:{type:Number},renderTabBar:{type:Function},locale:me(),popupClassName:String,getPopupContainer:j(),onTabClick:{type:Function},onTabScroll:{type:Function}}),na=(e,t)=>{const{offsetWidth:a,offsetHeight:i,offsetTop:o,offsetLeft:l}=e,{width:n,height:s,x:v,y:c}=e.getBoundingClientRect();return Math.abs(n-a)<1?[n,s,v-t.x,c-t.y]:[a,i,l,o]},Qe=le({compatConfig:{MODE:3},name:"TabNavList",inheritAttrs:!1,props:aa(),slots:Object,emits:["tabClick","tabScroll"],setup(e,t){let{attrs:a,slots:i}=t;const{tabs:o,prefixCls:l}=st(),n=W(),s=W(),v=W(),c=W(),[p,_]=ta(),h=H(()=>e.tabPosition==="top"||e.tabPosition==="bottom"),[d,y]=qe(0,(f,b)=>{h.value&&e.onTabScroll&&e.onTabScroll({direction:f>b?"left":"right"})}),[x,w]=qe(0,(f,b)=>{!h.value&&e.onTabScroll&&e.onTabScroll({direction:f>b?"top":"bottom"})}),[C,M]=D(0),[K,k]=D(0),[r,g]=D(null),[u,$]=D(null),[E,R]=D(0),[G,re]=D(0),[se,de]=Vt(new Map),I=Ut(o,se),Q=H(()=>`${l.value}-nav-operations-hidden`),N=W(0),Y=W(0);Ce(()=>{h.value?e.rtl?(N.value=0,Y.value=Math.max(0,C.value-r.value)):(N.value=Math.min(0,r.value-C.value),Y.value=0):(N.value=Math.min(0,u.value-K.value),Y.value=0)});const U=f=>fY.value?Y.value:f,ue=W(),[z,ve]=D(),be=()=>{ve(Date.now())},pe=()=>{clearTimeout(ue.value)},$e=(f,b)=>{f(S=>U(S+b))};ea(n,(f,b)=>{if(h.value){if(r.value>=C.value)return!1;$e(y,f)}else{if(u.value>=K.value)return!1;$e(w,b)}return pe(),be(),!0}),oe(z,()=>{pe(),z.value&&(ue.value=setTimeout(()=>{ve(0)},100))});const ce=function(){let f=arguments.length>0&&arguments[0]!==void 0?arguments[0]:e.activeKey;const b=I.value.get(f)||{width:0,height:0,left:0,right:0,top:0};if(h.value){let S=d.value;e.rtl?b.rightd.value+r.value&&(S=b.right+b.width-r.value):b.left<-d.value?S=-b.left:b.left+b.width>-d.value+r.value&&(S=-(b.left+b.width-r.value)),w(0),y(U(S))}else{let S=x.value;b.top<-x.value?S=-b.top:b.top+b.height>-x.value+u.value&&(S=-(b.top+b.height-u.value)),y(0),w(U(S))}},Pe=W(0),Re=W(0);Ce(()=>{let f,b,S,P,L,B;const Z=I.value;["top","bottom"].includes(e.tabPosition)?(f="width",P=r.value,L=C.value,B=E.value,b=e.rtl?"right":"left",S=Math.abs(d.value)):(f="height",P=u.value,L=C.value,B=G.value,b="top",S=-x.value);let O=P;L+B>P&&LS+O){ne=X-1;break}}let A=0;for(let X=q-1;X>=0;X-=1)if((Z.get(F[X].key)||Je)[b]{de(()=>{var f;const b=new Map,S=(f=s.value)===null||f===void 0?void 0:f.getBoundingClientRect();return o.value.forEach(P=>{let{key:L}=P;const B=_.value.get(L),Z=(B==null?void 0:B.$el)||B;if(Z){const[O,F,q,ne]=na(Z,S);b.set(L,{width:O,height:F,left:q,top:ne})}}),b})};oe(()=>o.value.map(f=>f.key).join("%%"),()=>{Ne()},{flush:"post"});const Ie=()=>{var f,b,S,P,L;const B=((f=n.value)===null||f===void 0?void 0:f.offsetWidth)||0,Z=((b=n.value)===null||b===void 0?void 0:b.offsetHeight)||0,O=((S=c.value)===null||S===void 0?void 0:S.$el)||{},F=O.offsetWidth||0,q=O.offsetHeight||0;g(B),$(Z),R(F),re(q);const ne=(((P=s.value)===null||P===void 0?void 0:P.offsetWidth)||0)-F,A=(((L=s.value)===null||L===void 0?void 0:L.offsetHeight)||0)-q;M(ne),k(A),Ne()},Oe=H(()=>[...o.value.slice(0,Pe.value),...o.value.slice(Re.value+1)]),[dt,ut]=D(),ae=H(()=>I.value.get(e.activeKey)),We=W(),He=()=>{ge.cancel(We.value)};oe([ae,h,()=>e.rtl],()=>{const f={};ae.value&&(h.value?(e.rtl?f.right=he(ae.value.right):f.left=he(ae.value.left),f.width=he(ae.value.width)):(f.top=he(ae.value.top),f.height=he(ae.value.height))),He(),We.value=ge(()=>{ut(f)})}),oe([()=>e.activeKey,ae,I,h],()=>{ce()},{flush:"post"}),oe([()=>e.rtl,()=>e.tabBarGutter,()=>e.activeKey,()=>o.value],()=>{Ie()},{flush:"post"});const Ee=f=>{let{position:b,prefixCls:S,extra:P}=f;if(!P)return null;const L=P==null?void 0:P({position:b});return L?m("div",{class:`${S}-extra-content`},[L]):null};return ke(()=>{pe(),He()}),()=>{const{id:f,animated:b,activeKey:S,rtl:P,editable:L,locale:B,tabPosition:Z,tabBarGutter:O,onTabClick:F}=e,{class:q,style:ne}=a,A=l.value,X=!!Oe.value.length,ee=`${A}-nav-wrap`;let Be,Le,ze,Ke;h.value?P?(Le=d.value>0,Be=d.value+r.value{const{key:fe}=Ae;return m(Yt,{id:f,prefixCls:A,key:fe,tab:Ae,style:vt===0?void 0:ye,closable:Ae.closable,editable:L,active:fe===S,removeAriaLabel:B==null?void 0:B.removeAriaLabel,ref:p(fe),onClick:bt=>{F(fe,bt)},onFocus:()=>{ce(fe),be(),n.value&&(P||(n.value.scrollLeft=0),n.value.scrollTop=0)}},i)});return m("div",{role:"tablist",class:ie(`${A}-nav`,q),style:ne,onKeydown:()=>{be()}},[m(Ee,{position:"left",prefixCls:A,extra:i.leftExtra},null),m(je,{onResize:Ie},{default:()=>[m("div",{class:ie(ee,{[`${ee}-ping-left`]:Be,[`${ee}-ping-right`]:Le,[`${ee}-ping-top`]:ze,[`${ee}-ping-bottom`]:Ke}),ref:n},[m(je,{onResize:Ie},{default:()=>[m("div",{ref:s,class:`${A}-nav-list`,style:{transform:`translate(${d.value}px, ${x.value}px)`,transition:z.value?"none":void 0}},[Ge,m(lt,{ref:c,prefixCls:A,locale:B,editable:L,style:T(T({},Ge.length===0?void 0:ye),{visibility:X?"hidden":null})},null),m("div",{class:ie(`${A}-ink-bar`,{[`${A}-ink-bar-animated`]:b.inkBar}),style:dt.value},null)])]})])]}),m(qt,te(te({},e),{},{removeAriaLabel:B==null?void 0:B.removeAriaLabel,ref:v,prefixCls:A,tabs:Oe.value,class:!X&&Q.value}),it(i,["moreIcon"])),m(Ee,{position:"right",prefixCls:A,extra:i.rightExtra},null),m(Ee,{position:"right",prefixCls:A,extra:i.tabBarExtraContent},null)])}}}),oa=le({compatConfig:{MODE:3},name:"TabPanelList",inheritAttrs:!1,props:{activeKey:{type:[String,Number]},id:{type:String},rtl:{type:Boolean},animated:{type:Object,default:void 0},tabPosition:{type:String},destroyInactiveTabPane:{type:Boolean}},setup(e){const{tabs:t,prefixCls:a}=st();return()=>{const{id:i,activeKey:o,animated:l,tabPosition:n,rtl:s,destroyInactiveTabPane:v}=e,c=l.tabPane,p=a.value,_=t.value.findIndex(h=>h.key===o);return m("div",{class:`${p}-content-holder`},[m("div",{class:[`${p}-content`,`${p}-content-${n}`,{[`${p}-content-animated`]:c}],style:_&&c?{[s?"marginRight":"marginLeft"]:`-${_}00%`}:null},[t.value.map(h=>Rt(h.node,{key:h.key,prefixCls:p,tabKey:h.key,id:i,animated:c,active:h.key===o,destroyInactiveTabPane:v}))])])}}}),ia=e=>{const{componentCls:t,motionDurationSlow:a}=e;return[{[t]:{[`${t}-switch`]:{"&-appear, &-enter":{transition:"none","&-start":{opacity:0},"&-active":{opacity:1,transition:`opacity ${a}`}},"&-leave":{position:"absolute",transition:"none",inset:0,"&-start":{opacity:1},"&-active":{opacity:0,transition:`opacity ${a}`}}}}},[Fe(e,"slide-up"),Fe(e,"slide-down")]]},la=e=>{const{componentCls:t,tabsCardHorizontalPadding:a,tabsCardHeadBackground:i,tabsCardGutter:o,colorSplit:l}=e;return{[`${t}-card`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{margin:0,padding:a,background:i,border:`${e.lineWidth}px ${e.lineType} ${l}`,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`},[`${t}-tab-active`]:{color:e.colorPrimary,background:e.colorBgContainer},[`${t}-ink-bar`]:{visibility:"hidden"}},[`&${t}-top, &${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginLeft:{_skip_check_:!0,value:`${o}px`}}}},[`&${t}-top`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`${e.borderRadiusLG}px ${e.borderRadiusLG}px 0 0`},[`${t}-tab-active`]:{borderBottomColor:e.colorBgContainer}}},[`&${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`0 0 ${e.borderRadiusLG}px ${e.borderRadiusLG}px`},[`${t}-tab-active`]:{borderTopColor:e.colorBgContainer}}},[`&${t}-left, &${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginTop:`${o}px`}}},[`&${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${e.borderRadiusLG}px 0 0 ${e.borderRadiusLG}px`}},[`${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 ${e.borderRadiusLG}px ${e.borderRadiusLG}px 0`}},[`${t}-tab-active`]:{borderLeftColor:{_skip_check_:!0,value:e.colorBgContainer}}}}}}},ra=e=>{const{componentCls:t,tabsHoverColor:a,dropdownEdgeChildVerticalPadding:i}=e;return{[`${t}-dropdown`]:T(T({},tt(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:`${i}px 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":T(T({},$t),{display:"flex",alignItems:"center",minWidth:e.tabsDropdownWidth,margin:0,padding:`${e.paddingXXS}px ${e.paddingSM}px`,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.colorTextDescription,fontSize:e.fontSizeSM,background:"transparent",border:0,cursor:"pointer","&:hover":{color:a}},"&:hover":{background:e.controlItemBgHover},"&-disabled":{"&, &:hover":{color:e.colorTextDisabled,background:"transparent",cursor:"not-allowed"}}})}})}},sa=e=>{const{componentCls:t,margin:a,colorSplit:i}=e;return{[`${t}-top, ${t}-bottom`]:{flexDirection:"column",[`> ${t}-nav, > div > ${t}-nav`]:{margin:`0 0 ${a}px 0`,"&::before":{position:"absolute",right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},borderBottom:`${e.lineWidth}px ${e.lineType} ${i}`,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:`${a}px`,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:e.controlHeight*1.25,[`${t}-tab`]:{padding:`${e.paddingXS}px ${e.paddingLG}px`,textAlign:"center"},[`${t}-tab + ${t}-tab`]:{margin:`${e.margin}px 0 0 0`},[`${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:`-${e.lineWidth}px`},borderLeft:{_skip_check_:!0,value:`${e.lineWidth}px ${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:-e.lineWidth},borderRight:{_skip_check_:!0,value:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingRight:{_skip_check_:!0,value:e.paddingLG}}}}}},ca=e=>{const{componentCls:t,padding:a}=e;return{[t]:{"&-small":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:`${e.paddingXS}px 0`,fontSize:e.fontSize}}},"&-large":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:`${a}px 0`,fontSize:e.fontSizeLG}}}},[`${t}-card`]:{[`&${t}-small`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:`${e.paddingXXS*1.5}px ${a}px`}},[`&${t}-bottom`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`0 0 ${e.borderRadius}px ${e.borderRadius}px`}},[`&${t}-top`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`${e.borderRadius}px ${e.borderRadius}px 0 0`}},[`&${t}-right`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${e.borderRadius}px ${e.borderRadius}px 0`}}},[`&${t}-left`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${e.borderRadius}px 0 0 ${e.borderRadius}px`}}}},[`&${t}-large`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:`${e.paddingXS}px ${a}px ${e.paddingXXS*1.5}px`}}}}}},da=e=>{const{componentCls:t,tabsActiveColor:a,tabsHoverColor:i,iconCls:o,tabsHorizontalGutter:l}=e,n=`${t}-tab`;return{[n]:{position:"relative",display:"inline-flex",alignItems:"center",padding:`${e.paddingSM}px 0`,fontSize:`${e.fontSize}px`,background:"transparent",border:0,outline:"none",cursor:"pointer","&-btn, &-remove":T({"&:focus:not(:focus-visible), &:active":{color:a}},at(e)),"&-btn":{outline:"none",transition:"all 0.3s"},"&-remove":{flex:"none",marginRight:{_skip_check_:!0,value:-e.marginXXS},marginLeft:{_skip_check_:!0,value:e.marginXS},color:e.colorTextDescription,fontSize:e.fontSizeSM,background:"transparent",border:"none",outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"&:hover":{color:e.colorTextHeading}},"&:hover":{color:i},[`&${n}-active ${n}-btn`]:{color:e.colorPrimary,textShadow:e.tabsActiveTextShadow},[`&${n}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${n}-disabled ${n}-btn, &${n}-disabled ${t}-remove`]:{"&:focus, &:active":{color:e.colorTextDisabled}},[`& ${n}-remove ${o}`]:{margin:0},[o]:{marginRight:{_skip_check_:!0,value:e.marginSM}}},[`${n} + ${n}`]:{margin:{_skip_check_:!0,value:`0 0 0 ${l}px`}}}},ua=e=>{const{componentCls:t,tabsHorizontalGutter:a,iconCls:i,tabsCardGutter:o}=e;return{[`${t}-rtl`]:{direction:"rtl",[`${t}-nav`]:{[`${t}-tab`]:{margin:{_skip_check_:!0,value:`0 0 0 ${a}px`},[`${t}-tab:last-of-type`]:{marginLeft:{_skip_check_:!0,value:0}},[i]:{marginRight:{_skip_check_:!0,value:0},marginLeft:{_skip_check_:!0,value:`${e.marginSM}px`}},[`${t}-tab-remove`]:{marginRight:{_skip_check_:!0,value:`${e.marginXS}px`},marginLeft:{_skip_check_:!0,value:`-${e.marginXXS}px`},[i]:{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:`${o}px`},marginLeft:{_skip_check_:!0,value:0}}}}},[`${t}-dropdown-rtl`]:{direction:"rtl"},[`${t}-menu-item`]:{[`${t}-dropdown-rtl`]:{textAlign:{_skip_check_:!0,value:"right"}}}}},va=e=>{const{componentCls:t,tabsCardHorizontalPadding:a,tabsCardHeight:i,tabsCardGutter:o,tabsHoverColor:l,tabsActiveColor:n,colorSplit:s}=e;return{[t]:T(T(T(T({},tt(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:a,background:"transparent",border:0,"&::after":{position:"absolute",right:{_skip_check_:!0,value:0},bottom:0,left:{_skip_check_:!0,value:0},height:e.controlHeightLG/8,transform:"translateY(100%)",content:"''"}},[`${t}-nav-add`]:T({minWidth:`${i}px`,marginLeft:{_skip_check_:!0,value:`${o}px`},padding:`0 ${e.paddingXS}px`,background:"transparent",border:`${e.lineWidth}px ${e.lineType} ${s}`,borderRadius:`${e.borderRadiusLG}px ${e.borderRadiusLG}px 0 0`,outline:"none",cursor:"pointer",color:e.colorText,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`,"&:hover":{color:l},"&:active, &:focus:not(:focus-visible)":{color:n}},at(e))},[`${t}-extra-content`]:{flex:"none"},[`${t}-ink-bar`]:{position:"absolute",background:e.colorPrimary,pointerEvents:"none"}}),da(e)),{[`${t}-content`]:{position:"relative",display:"flex",width:"100%","&-animated":{transition:"margin 0.3s"}},[`${t}-content-holder`]:{flex:"auto",minWidth:0,minHeight:0},[`${t}-tabpane`]:{outline:"none",flex:"none",width:"100%"}}),[`${t}-centered`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-nav-wrap`]:{[`&:not([class*='${t}-nav-wrap-ping'])`]:{justifyContent:"center"}}}}}},ba=mt("Tabs",e=>{const t=e.controlHeightLG,a=gt(e,{tabsHoverColor:e.colorPrimaryHover,tabsActiveColor:e.colorPrimaryActive,tabsCardHorizontalPadding:`${(t-Math.round(e.fontSize*e.lineHeight))/2-e.lineWidth}px ${e.padding}px`,tabsCardHeight:t,tabsCardGutter:e.marginXXS/2,tabsHorizontalGutter:32,tabsCardHeadBackground:e.colorFillAlter,dropdownEdgeChildVerticalPadding:e.paddingXXS,tabsActiveTextShadow:"0 0 0.25px currentcolor",tabsDropdownHeight:200,tabsDropdownWidth:120});return[ca(a),ua(a),sa(a),ra(a),la(a),va(a),ia(a)]},e=>({zIndexPopup:e.zIndexPopupBase+50}));let et=0;const ct=()=>({prefixCls:{type:String},id:{type:String},popupClassName:String,getPopupContainer:j(),activeKey:{type:[String,Number]},defaultActiveKey:{type:[String,Number]},direction:xe(),animated:wt([Boolean,Object]),renderTabBar:j(),tabBarGutter:{type:Number},tabBarStyle:me(),tabPosition:xe(),destroyInactiveTabPane:Tt(),hideAdd:Boolean,type:xe(),size:xe(),centered:Boolean,onEdit:j(),onChange:j(),onTabClick:j(),onTabScroll:j(),"onUpdate:activeKey":j(),locale:me(),onPrevClick:j(),onNextClick:j(),tabBarExtraContent:we.any});function pa(e){return e.map(t=>{if(xt(t)){const a=T({},t.props||{});for(const[h,d]of Object.entries(a))delete a[h],a[St(h)]=d;const i=t.children||{},o=t.key!==void 0?t.key:void 0,{tab:l=i.tab,disabled:n,forceRender:s,closable:v,animated:c,active:p,destroyInactiveTabPane:_}=a;return T(T({key:o},a),{node:t,closeIcon:i.closeIcon,tab:l,disabled:n===""||n,forceRender:s===""||s,closable:v===""||v,animated:c===""||c,active:p===""||p,destroyInactiveTabPane:_===""||_})}return null}).filter(t=>t)}const fa=le({compatConfig:{MODE:3},name:"InternalTabs",inheritAttrs:!1,props:T(T({},nt(ct(),{tabPosition:"top",animated:{inkBar:!0,tabPane:!1}})),{tabs:Ct()}),slots:Object,setup(e,t){let{attrs:a,slots:i}=t;De(e.onPrevClick===void 0&&e.onNextClick===void 0,"Tabs","`onPrevClick / @prevClick` and `onNextClick / @nextClick` has been removed. Please use `onTabScroll / @tabScroll` instead."),De(e.tabBarExtraContent===void 0,"Tabs","`tabBarExtraContent` prop has been removed. Please use `rightExtra` slot instead."),De(i.tabBarExtraContent===void 0,"Tabs","`tabBarExtraContent` slot is deprecated. Please use `rightExtra` slot instead.");const{prefixCls:o,direction:l,size:n,rootPrefixCls:s,getPopupContainer:v}=_t("tabs",e),[c,p]=ba(o),_=H(()=>l.value==="rtl"),h=H(()=>{const{animated:u,tabPosition:$}=e;return u===!1||["left","right"].includes($)?{inkBar:!1,tabPane:!1}:u===!0?{inkBar:!0,tabPane:!0}:T({inkBar:!0,tabPane:!1},typeof u=="object"?u:{})}),[d,y]=D(!1);Te(()=>{y(Wt())});const[x,w]=Ve(()=>{var u;return(u=e.tabs[0])===null||u===void 0?void 0:u.key},{value:H(()=>e.activeKey),defaultValue:e.defaultActiveKey}),[C,M]=D(()=>e.tabs.findIndex(u=>u.key===x.value));Ce(()=>{var u;let $=e.tabs.findIndex(E=>E.key===x.value);$===-1&&($=Math.max(0,Math.min(C.value,e.tabs.length-1)),w((u=e.tabs[$])===null||u===void 0?void 0:u.key)),M($)});const[K,k]=Ve(null,{value:H(()=>e.id)}),r=H(()=>d.value&&!["left","right"].includes(e.tabPosition)?"top":e.tabPosition);Te(()=>{e.id||(k(`rc-tabs-${et}`),et+=1)});const g=(u,$)=>{var E,R;(E=e.onTabClick)===null||E===void 0||E.call(e,u,$);const G=u!==x.value;w(u),G&&((R=e.onChange)===null||R===void 0||R.call(e,u))};return Jt({tabs:H(()=>e.tabs),prefixCls:o}),()=>{const{id:u,type:$,tabBarGutter:E,tabBarStyle:R,locale:G,destroyInactiveTabPane:re,renderTabBar:se=i.renderTabBar,onTabScroll:de,hideAdd:I,centered:Q}=e,N={id:K.value,activeKey:x.value,animated:h.value,tabPosition:r.value,rtl:_.value,mobile:d.value};let Y;$==="editable-card"&&(Y={onEdit:(ve,be)=>{let{key:pe,event:$e}=be;var ce;(ce=e.onEdit)===null||ce===void 0||ce.call(e,ve==="add"?$e:pe,ve)},removeIcon:()=>m(Pt,null,null),addIcon:i.addIcon?i.addIcon:()=>m(zt,null,null),showAdd:I!==!0});let U;const ue=T(T({},N),{moreTransitionName:`${s.value}-slide-up`,editable:Y,locale:G,tabBarGutter:E,onTabClick:g,onTabScroll:de,style:R,getPopupContainer:v.value,popupClassName:ie(e.popupClassName,p.value)});se?U=se(T(T({},ue),{DefaultTabBar:Qe})):U=m(Qe,ue,it(i,["moreIcon","leftExtra","rightExtra","tabBarExtraContent"]));const z=o.value;return c(m("div",te(te({},a),{},{id:u,class:ie(z,`${z}-${r.value}`,{[p.value]:!0,[`${z}-${n.value}`]:n.value,[`${z}-card`]:["card","editable-card"].includes($),[`${z}-editable-card`]:$==="editable-card",[`${z}-centered`]:Q,[`${z}-mobile`]:d.value,[`${z}-editable`]:$==="editable-card",[`${z}-rtl`]:_.value},a.class)}),[U,m(oa,te(te({destroyInactiveTabPane:re},N),{},{animated:h.value}),null)]))}}}),_e=le({compatConfig:{MODE:3},name:"ATabs",inheritAttrs:!1,props:nt(ct(),{tabPosition:"top",animated:{inkBar:!0,tabPane:!1}}),slots:Object,setup(e,t){let{attrs:a,slots:i,emit:o}=t;const l=n=>{o("update:activeKey",n),o("change",n)};return()=>{var n;const s=pa(yt((n=i.default)===null||n===void 0?void 0:n.call(i)));return m(fa,te(te(te({},Kt(e,["onUpdate:activeKey"])),a),{},{onChange:l,tabs:s}),i)}}}),ha=()=>({tab:we.any,disabled:{type:Boolean},forceRender:{type:Boolean},closable:{type:Boolean},animated:{type:Boolean},active:{type:Boolean},destroyInactiveTabPane:{type:Boolean},prefixCls:{type:String},tabKey:{type:[String,Number]},id:{type:String}}),Me=le({compatConfig:{MODE:3},name:"ATabPane",inheritAttrs:!1,__ANT_TAB_PANE:!0,props:ha(),slots:Object,setup(e,t){let{attrs:a,slots:i}=t;const o=V(e.forceRender);oe([()=>e.active,()=>e.destroyInactiveTabPane],()=>{e.active?o.value=!0:e.destroyInactiveTabPane&&(o.value=!1)},{immediate:!0});const l=H(()=>e.active?{}:e.animated?{visibility:"hidden",height:0,overflowY:"hidden"}:{display:"none"});return()=>{var n;const{prefixCls:s,forceRender:v,id:c,active:p,tabKey:_}=e;return m("div",{id:c&&`${c}-panel-${_}`,role:"tabpanel",tabindex:p?0:-1,"aria-labelledby":c&&`${c}-tab-${_}`,"aria-hidden":!p,style:[l.value,a.style],class:[`${s}-tabpane`,p&&`${s}-tabpane-active`,a.class]},[(p||o.value||v)&&((n=i.default)===null||n===void 0?void 0:n.call(i))])}}});_e.TabPane=Me;_e.install=function(e){return e.component(_e.name,_e),e.component(Me.name,Me),e};export{_e as T,Me as _,ta as u}; diff --git a/src/agentkit/server/static/assets/index-BMkziFFN.js b/src/agentkit/server/static/assets/index-BMkziFFN.js new file mode 100644 index 0000000..349cf5a --- /dev/null +++ b/src/agentkit/server/static/assets/index-BMkziFFN.js @@ -0,0 +1 @@ +import{p as y,q as S,_ as d,s as w,aF as B,d as T,R as k,z as A,N,c as f,E as P,aH as _,r as z,g as D,aP as $,F as I,a6 as C}from"./index-Ci55MVrK.js";import{g as W,P as E,A as H,t as R,a as M}from"./base-B4siOKZE.js";import{o as j}from"./FormItemContext-D_7H_KA_.js";import{i as F}from"./zoom-C2fVs05p.js";import{i as L}from"./_plugin-vue_export-helper-CBXJ7-XR.js";const O=t=>{const{componentCls:o,popoverBg:r,popoverColor:e,width:a,fontWeightStrong:s,popoverPadding:l,boxShadowSecondary:c,colorTextHeading:g,borderRadiusLG:u,zIndexPopup:p,marginXS:m,colorBgElevated:n}=t;return[{[o]:d(d({},w(t)),{position:"absolute",top:0,left:{_skip_check_:!0,value:0},zIndex:p,fontWeight:"normal",whiteSpace:"normal",textAlign:"start",cursor:"auto",userSelect:"text","--antd-arrow-background-color":n,"&-rtl":{direction:"rtl"},"&-hidden":{display:"none"},[`${o}-content`]:{position:"relative"},[`${o}-inner`]:{backgroundColor:r,backgroundClip:"padding-box",borderRadius:u,boxShadow:c,padding:l},[`${o}-title`]:{minWidth:a,marginBottom:m,color:g,fontWeight:s},[`${o}-inner-content`]:{color:e}})},W(t,{colorBg:"var(--antd-arrow-background-color)"}),{[`${o}-pure`]:{position:"relative",maxWidth:"none",[`${o}-content`]:{display:"inline-block"}}}]},q=t=>{const{componentCls:o}=t;return{[o]:E.map(r=>{const e=t[`${r}-6`];return{[`&${o}-${r}`]:{"--antd-arrow-background-color":e,[`${o}-inner`]:{backgroundColor:e},[`${o}-arrow`]:{background:"transparent"}}}})}},G=t=>{const{componentCls:o,lineWidth:r,lineType:e,colorSplit:a,paddingSM:s,controlHeight:l,fontSize:c,lineHeight:g,padding:u}=t,p=l-Math.round(c*g),m=p/2,n=p/2-r,i=u;return{[o]:{[`${o}-inner`]:{padding:0},[`${o}-title`]:{margin:0,padding:`${m}px ${i}px ${n}px`,borderBottom:`${r}px ${e} ${a}`},[`${o}-inner-content`]:{padding:`${s}px ${i}px`}}}},V=y("Popover",t=>{const{colorBgElevated:o,colorText:r,wireframe:e}=t,a=S(t,{popoverBg:o,popoverColor:r,popoverPadding:12});return[O(a),q(a),e&&G(a),F(a,"zoom-big")]},t=>{let{zIndexPopupBase:o}=t;return{zIndexPopup:o+30,width:177}}),X=()=>d(d({},M()),{content:C(),title:C()}),Z=T({compatConfig:{MODE:3},name:"APopover",inheritAttrs:!1,props:L(X(),d(d({},R()),{trigger:"hover",placement:"top",mouseEnterDelay:.1,mouseLeaveDelay:.1})),setup(t,o){let{expose:r,slots:e,attrs:a}=o;const s=z();k(t.visible===void 0),r({getPopupDomNode:()=>{var n,i;return(i=(n=s.value)===null||n===void 0?void 0:n.getPopupDomNode)===null||i===void 0?void 0:i.call(n)}});const{prefixCls:l,configProvider:c}=A("popover",t),[g,u]=V(l),p=D(()=>c.getPrefixCls()),m=()=>{var n,i;const{title:v=$((n=e.title)===null||n===void 0?void 0:n.call(e)),content:h=$((i=e.content)===null||i===void 0?void 0:i.call(e))}=t,x=!!(Array.isArray(v)?v.length:v),b=!!(Array.isArray(h)?h.length:v);return!x&&!b?null:f(I,null,[x&&f("div",{class:`${l.value}-title`},[v]),f("div",{class:`${l.value}-inner-content`},[h])])};return()=>{const n=N(t.overlayClassName,u.value);return g(f(H,P(P(P({},j(t,["title","content"])),a),{},{prefixCls:l.value,ref:s,overlayClassName:n,transitionName:_(p.value,"zoom-big",t.transitionName),"data-popover-inject":!0}),{title:m,default:e.default}))}}}),oo=B(Z);export{oo as P}; diff --git a/src/agentkit/server/static/assets/index-CIdKTsyN.js b/src/agentkit/server/static/assets/index-CIdKTsyN.js new file mode 100644 index 0000000..6c39e82 --- /dev/null +++ b/src/agentkit/server/static/assets/index-CIdKTsyN.js @@ -0,0 +1,3 @@ +import{p as J,q as K,_ as B,s as Q,aF as U,d as Y,z as oo,bm as eo,bn as no,bo as lo,aa as to,ab as io,ac as ao,bf as so,ad as ro,N as co,c as s,Z as uo,aD as go,aN as po,m as mo,v as fo,E as R,aE as vo,G as w,g as $o,P as v,af as yo}from"./index-Ci55MVrK.js";import{c as ho}from"./zoom-C2fVs05p.js";const _=(o,e,n,i,a)=>({backgroundColor:o,border:`${i.lineWidth}px ${i.lineType} ${e}`,[`${a}-icon`]:{color:n}}),Co=o=>{const{componentCls:e,motionDurationSlow:n,marginXS:i,marginSM:a,fontSize:u,fontSizeLG:r,lineHeight:g,borderRadiusLG:$,motionEaseInOutCirc:c,alertIconSizeLG:d,colorText:m,paddingContentVerticalSM:f,alertPaddingHorizontal:y,paddingMD:C,paddingContentHorizontalLG:S}=o;return{[e]:B(B({},Q(o)),{position:"relative",display:"flex",alignItems:"center",padding:`${f}px ${y}px`,wordWrap:"break-word",borderRadius:$,[`&${e}-rtl`]:{direction:"rtl"},[`${e}-content`]:{flex:1,minWidth:0},[`${e}-icon`]:{marginInlineEnd:i,lineHeight:0},"&-description":{display:"none",fontSize:u,lineHeight:g},"&-message":{color:m},[`&${e}-motion-leave`]:{overflow:"hidden",opacity:1,transition:`max-height ${n} ${c}, opacity ${n} ${c}, + padding-top ${n} ${c}, padding-bottom ${n} ${c}, + margin-bottom ${n} ${c}`},[`&${e}-motion-leave-active`]:{maxHeight:0,marginBottom:"0 !important",paddingTop:0,paddingBottom:0,opacity:0}}),[`${e}-with-description`]:{alignItems:"flex-start",paddingInline:S,paddingBlock:C,[`${e}-icon`]:{marginInlineEnd:a,fontSize:d,lineHeight:0},[`${e}-message`]:{display:"block",marginBottom:i,color:m,fontSize:r},[`${e}-description`]:{display:"block"}},[`${e}-banner`]:{marginBottom:0,border:"0 !important",borderRadius:0}}},So=o=>{const{componentCls:e,colorSuccess:n,colorSuccessBorder:i,colorSuccessBg:a,colorWarning:u,colorWarningBorder:r,colorWarningBg:g,colorError:$,colorErrorBorder:c,colorErrorBg:d,colorInfo:m,colorInfoBorder:f,colorInfoBg:y}=o;return{[e]:{"&-success":_(a,i,n,o,e),"&-info":_(y,f,m,o,e),"&-warning":_(g,r,u,o,e),"&-error":B(B({},_(d,c,$,o,e)),{[`${e}-description > pre`]:{margin:0,padding:0}})}}},bo=o=>{const{componentCls:e,iconCls:n,motionDurationMid:i,marginXS:a,fontSizeIcon:u,colorIcon:r,colorIconHover:g}=o;return{[e]:{"&-action":{marginInlineStart:a},[`${e}-close-icon`]:{marginInlineStart:a,padding:0,overflow:"hidden",fontSize:u,lineHeight:`${u}px`,backgroundColor:"transparent",border:"none",outline:"none",cursor:"pointer",[`${n}-close`]:{color:r,transition:`color ${i}`,"&:hover":{color:g}}},"&-close-text":{color:r,transition:`color ${i}`,"&:hover":{color:g}}}}},xo=o=>[Co(o),So(o),bo(o)],Io=J("Alert",o=>{const{fontSizeHeading3:e}=o,n=K(o,{alertIconSizeLG:e,alertPaddingHorizontal:12});return[xo(n)]}),wo={success:ro,info:so,error:ao,warning:io},_o={success:to,info:lo,error:no,warning:eo},Bo=yo("success","info","warning","error"),Ho=()=>({type:v.oneOf(Bo),closable:{type:Boolean,default:void 0},closeText:v.any,message:v.any,description:v.any,afterClose:Function,showIcon:{type:Boolean,default:void 0},prefixCls:String,banner:{type:Boolean,default:void 0},icon:v.any,closeIcon:v.any,onClose:Function}),To=Y({compatConfig:{MODE:3},name:"AAlert",inheritAttrs:!1,props:Ho(),setup(o,e){let{slots:n,emit:i,attrs:a,expose:u}=e;const{prefixCls:r,direction:g}=oo("alert",o),[$,c]=Io(r),d=w(!1),m=w(!1),f=w(),y=t=>{t.preventDefault();const p=f.value;p.style.height=`${p.offsetHeight}px`,p.style.height=`${p.offsetHeight}px`,d.value=!0,i("close",t)},C=()=>{var t;d.value=!1,m.value=!0,(t=o.afterClose)===null||t===void 0||t.call(o)},S=$o(()=>{const{type:t}=o;return t!==void 0?t:o.banner?"warning":"info"});u({animationEnd:C});const V=w({});return()=>{var t,p,H,T,E,z,A,O,F,L;const{banner:P,closeIcon:G=(t=n.closeIcon)===null||t===void 0?void 0:t.call(n)}=o;let{closable:D,showIcon:h}=o;const M=(p=o.closeText)!==null&&p!==void 0?p:(H=n.closeText)===null||H===void 0?void 0:H.call(n),b=(T=o.description)!==null&&T!==void 0?T:(E=n.description)===null||E===void 0?void 0:E.call(n),N=(z=o.message)!==null&&z!==void 0?z:(A=n.message)===null||A===void 0?void 0:A.call(n),x=(O=o.icon)!==null&&O!==void 0?O:(F=n.icon)===null||F===void 0?void 0:F.call(n),W=(L=n.action)===null||L===void 0?void 0:L.call(n);h=P&&h===void 0?!0:h;const j=(b?_o:wo)[S.value]||null;M&&(D=!0);const l=r.value,k=co(l,{[`${l}-${S.value}`]:!0,[`${l}-closing`]:d.value,[`${l}-with-description`]:!!b,[`${l}-no-icon`]:!h,[`${l}-banner`]:!!P,[`${l}-closable`]:D,[`${l}-rtl`]:g.value==="rtl",[c.value]:!0}),X=D?s("button",{type:"button",onClick:y,class:`${l}-close-icon`,tabindex:0},[M?s("span",{class:`${l}-close-text`},[M]):G===void 0?s(uo,null,null):G]):null,q=x&&(go(x)?ho(x,{class:`${l}-icon`}):s("span",{class:`${l}-icon`},[x]))||s(j,{class:`${l}-icon`},null),Z=po(`${l}-motion`,{appear:!1,css:!0,onAfterLeave:C,onBeforeLeave:I=>{I.style.maxHeight=`${I.offsetHeight}px`},onLeave:I=>{I.style.maxHeight="0px"}});return $(m.value?null:s(vo,Z,{default:()=>[mo(s("div",R(R({role:"alert"},a),{},{style:[a.style,V.value],class:[a.class,k],"data-show":!d.value,ref:f}),[h?q:null,s("div",{class:`${l}-content`},[N?s("div",{class:`${l}-message`},[N]):null,b?s("div",{class:`${l}-description`},[b]):null]),W?s("div",{class:`${l}-action`},[W]):null,X]),[[fo,!d.value]])]}))}}}),Ao=U(To);export{Ao as _}; diff --git a/src/agentkit/server/static/assets/index-CIzBtwkp.js b/src/agentkit/server/static/assets/index-CIzBtwkp.js new file mode 100644 index 0000000..fbb64bc --- /dev/null +++ b/src/agentkit/server/static/assets/index-CIzBtwkp.js @@ -0,0 +1,17 @@ +import{p as he,q as me,_ as o,s as Re,aS as N,aT as ve,d as y,c as i,N as x,aL as ze,z as B,E as w,g as G,bc as E,J as Ee,b3 as pe,aC as Le,P as L,D as J,a5 as U}from"./index-Ci55MVrK.js";import{T as fe}from"./index-BLB5C8KY.js";import{e as De}from"./index-D6JhFblJ.js";import{i as ae,d as Ge}from"./_plugin-vue_export-helper-CBXJ7-XR.js";import{o as be}from"./FormItemContext-D_7H_KA_.js";import{b as We}from"./zoom-C2fVs05p.js";const _e=e=>{const{antCls:t,componentCls:n,cardHeadHeight:a,cardPaddingBase:r,cardHeadTabsMarginBottom:l}=e;return o(o({display:"flex",justifyContent:"center",flexDirection:"column",minHeight:a,marginBottom:-1,padding:`0 ${r}px`,color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.fontSizeLG,background:"transparent",borderBottom:`${e.lineWidth}px ${e.lineType} ${e.colorBorderSecondary}`,borderRadius:`${e.borderRadiusLG}px ${e.borderRadiusLG}px 0 0`},N()),{"&-wrapper":{width:"100%",display:"flex",alignItems:"center"},"&-title":o(o({display:"inline-block",flex:1},ve),{[` + > ${n}-typography, + > ${n}-typography-edit-content + `]:{insetInlineStart:0,marginTop:0,marginBottom:0}}),[`${t}-tabs-top`]:{clear:"both",marginBottom:l,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,"&-bar":{borderBottom:`${e.lineWidth}px ${e.lineType} ${e.colorBorderSecondary}`}}})},ke=e=>{const{cardPaddingBase:t,colorBorderSecondary:n,cardShadow:a,lineWidth:r}=e;return{width:"33.33%",padding:t,border:0,borderRadius:0,boxShadow:` + ${r}px 0 0 0 ${n}, + 0 ${r}px 0 0 ${n}, + ${r}px ${r}px 0 0 ${n}, + ${r}px 0 0 0 ${n} inset, + 0 ${r}px 0 0 ${n} inset; + `,transition:`all ${e.motionDurationMid}`,"&-hoverable:hover":{position:"relative",zIndex:1,boxShadow:a}}},Oe=e=>{const{componentCls:t,iconCls:n,cardActionsLiMargin:a,cardActionsIconSize:r,colorBorderSecondary:l}=e;return o(o({margin:0,padding:0,listStyle:"none",background:e.colorBgContainer,borderTop:`${e.lineWidth}px ${e.lineType} ${l}`,display:"flex",borderRadius:`0 0 ${e.borderRadiusLG}px ${e.borderRadiusLG}px `},N()),{"& > li":{margin:a,color:e.colorTextDescription,textAlign:"center","> span":{position:"relative",display:"block",minWidth:e.cardActionsIconSize*2,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.colorTextDescription,lineHeight:`${e.fontSize*e.lineHeight}px`,transition:`color ${e.motionDurationMid}`,"&:hover":{color:e.colorPrimary}},[`> ${n}`]:{fontSize:r,lineHeight:`${r*e.lineHeight}px`}},"&:not(:last-child)":{borderInlineEnd:`${e.lineWidth}px ${e.lineType} ${l}`}}})},Ne=e=>o(o({margin:`-${e.marginXXS}px 0`,display:"flex"},N()),{"&-avatar":{paddingInlineEnd:e.padding},"&-detail":{overflow:"hidden",flex:1,"> div:not(:last-child)":{marginBottom:e.marginXS}},"&-title":o({color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.fontSizeLG},ve),"&-description":{color:e.colorTextDescription}}),je=e=>{const{componentCls:t,cardPaddingBase:n,colorFillAlter:a}=e;return{[`${t}-head`]:{padding:`0 ${n}px`,background:a,"&-title":{fontSize:e.fontSize}},[`${t}-body`]:{padding:`${e.padding}px ${n}px`}}},qe=e=>{const{componentCls:t}=e;return{overflow:"hidden",[`${t}-body`]:{userSelect:"none"}}},Xe=e=>{const{componentCls:t,cardShadow:n,cardHeadPadding:a,colorBorderSecondary:r,boxShadow:l,cardPaddingBase:d}=e;return{[t]:o(o({},Re(e)),{position:"relative",background:e.colorBgContainer,borderRadius:e.borderRadiusLG,[`&:not(${t}-bordered)`]:{boxShadow:l},[`${t}-head`]:_e(e),[`${t}-extra`]:{marginInlineStart:"auto",color:"",fontWeight:"normal",fontSize:e.fontSize},[`${t}-body`]:o({padding:d,borderRadius:` 0 0 ${e.borderRadiusLG}px ${e.borderRadiusLG}px`},N()),[`${t}-grid`]:ke(e),[`${t}-cover`]:{"> *":{display:"block",width:"100%"},img:{borderRadius:`${e.borderRadiusLG}px ${e.borderRadiusLG}px 0 0`}},[`${t}-actions`]:Oe(e),[`${t}-meta`]:Ne(e)}),[`${t}-bordered`]:{border:`${e.lineWidth}px ${e.lineType} ${r}`,[`${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`]:{[`${t}-body`]:{display:"flex",flexWrap:"wrap"},[`&:not(${t}-loading) ${t}-body`]:{marginBlockStart:-e.lineWidth,marginInlineStart:-e.lineWidth,padding:0}},[`${t}-contain-tabs`]:{[`> ${t}-head`]:{[`${t}-head-title, ${t}-extra`]:{paddingTop:a}}},[`${t}-type-inner`]:je(e),[`${t}-loading`]:qe(e),[`${t}-rtl`]:{direction:"rtl"}}},Ke=e=>{const{componentCls:t,cardPaddingSM:n,cardHeadHeightSM:a}=e;return{[`${t}-small`]:{[`> ${t}-head`]:{minHeight:a,padding:`0 ${n}px`,fontSize:e.fontSize,[`> ${t}-head-wrapper`]:{[`> ${t}-extra`]:{fontSize:e.fontSize}}},[`> ${t}-body`]:{padding:n}},[`${t}-small${t}-contain-tabs`]:{[`> ${t}-head`]:{[`${t}-head-title, ${t}-extra`]:{minHeight:a,paddingTop:0,display:"flex",alignItems:"center"}}}}},Fe=he("Card",e=>{const t=me(e,{cardShadow:e.boxShadowCard,cardHeadHeight:e.fontSizeLG*e.lineHeightLG+e.padding*2,cardHeadHeightSM:e.fontSize*e.lineHeight+e.paddingXS*2,cardHeadPadding:e.padding,cardPaddingBase:e.paddingLG,cardHeadTabsMarginBottom:-e.padding-e.lineWidth,cardActionsLiMargin:`${e.paddingSM}px 0`,cardActionsIconSize:e.fontSize,cardPaddingSM:12});return[Xe(t),Ke(t)]}),Ve=()=>({prefixCls:String,width:{type:[Number,String]}}),oe=y({compatConfig:{MODE:3},name:"SkeletonTitle",props:Ve(),setup(e){return()=>{const{prefixCls:t,width:n}=e,a=typeof n=="number"?`${n}px`:n;return i("h3",{class:t,style:{width:a}},null)}}}),Je=()=>({prefixCls:String,width:{type:[Number,String,Array]},rows:Number}),Ue=y({compatConfig:{MODE:3},name:"SkeletonParagraph",props:Je(),setup(e){const t=n=>{const{width:a,rows:r=2}=e;if(Array.isArray(a))return a[n];if(r-1===n)return a};return()=>{const{prefixCls:n,rows:a}=e,r=[...Array(a)].map((l,d)=>{const g=t(d);return i("li",{key:d,style:{width:typeof g=="number"?`${g}px`:g}},null)});return i("ul",{class:n},[r])}}}),j=()=>({prefixCls:String,size:[String,Number],shape:String,active:{type:Boolean,default:void 0}}),W=e=>{const{prefixCls:t,size:n,shape:a}=e,r=x({[`${t}-lg`]:n==="large",[`${t}-sm`]:n==="small"}),l=x({[`${t}-circle`]:a==="circle",[`${t}-square`]:a==="square",[`${t}-round`]:a==="round"}),d=typeof n=="number"?{width:`${n}px`,height:`${n}px`,lineHeight:`${n}px`}:{};return i("span",{class:x(t,r,l),style:d},null)};W.displayName="SkeletonElement";const Qe=new ze("ant-skeleton-loading",{"0%":{transform:"translateX(-37.5%)"},"100%":{transform:"translateX(37.5%)"}}),q=e=>({height:e,lineHeight:`${e}px`}),M=e=>o({width:e},q(e)),Ye=e=>({position:"relative",zIndex:0,overflow:"hidden",background:"transparent","&::after":{position:"absolute",top:0,insetInlineEnd:"-150%",bottom:0,insetInlineStart:"-150%",background:e.skeletonLoadingBackground,animationName:Qe,animationDuration:e.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite",content:'""'}}),Q=e=>o({width:e*5,minWidth:e*5},q(e)),Ze=e=>{const{skeletonAvatarCls:t,color:n,controlHeight:a,controlHeightLG:r,controlHeightSM:l}=e;return{[`${t}`]:o({display:"inline-block",verticalAlign:"top",background:n},M(a)),[`${t}${t}-circle`]:{borderRadius:"50%"},[`${t}${t}-lg`]:o({},M(r)),[`${t}${t}-sm`]:o({},M(l))}},et=e=>{const{controlHeight:t,borderRadiusSM:n,skeletonInputCls:a,controlHeightLG:r,controlHeightSM:l,color:d}=e;return{[`${a}`]:o({display:"inline-block",verticalAlign:"top",background:d,borderRadius:n},Q(t)),[`${a}-lg`]:o({},Q(r)),[`${a}-sm`]:o({},Q(l))}},$e=e=>o({width:e},q(e)),tt=e=>{const{skeletonImageCls:t,imageSizeBase:n,color:a,borderRadiusSM:r}=e;return{[`${t}`]:o(o({display:"flex",alignItems:"center",justifyContent:"center",verticalAlign:"top",background:a,borderRadius:r},$e(n*2)),{[`${t}-path`]:{fill:"#bfbfbf"},[`${t}-svg`]:o(o({},$e(n)),{maxWidth:n*4,maxHeight:n*4}),[`${t}-svg${t}-svg-circle`]:{borderRadius:"50%"}}),[`${t}${t}-circle`]:{borderRadius:"50%"}}},Y=(e,t,n)=>{const{skeletonButtonCls:a}=e;return{[`${n}${a}-circle`]:{width:t,minWidth:t,borderRadius:"50%"},[`${n}${a}-round`]:{borderRadius:t}}},Z=e=>o({width:e*2,minWidth:e*2},q(e)),nt=e=>{const{borderRadiusSM:t,skeletonButtonCls:n,controlHeight:a,controlHeightLG:r,controlHeightSM:l,color:d}=e;return o(o(o(o(o({[`${n}`]:o({display:"inline-block",verticalAlign:"top",background:d,borderRadius:t,width:a*2,minWidth:a*2},Z(a))},Y(e,a,n)),{[`${n}-lg`]:o({},Z(r))}),Y(e,r,`${n}-lg`)),{[`${n}-sm`]:o({},Z(l))}),Y(e,l,`${n}-sm`))},at=e=>{const{componentCls:t,skeletonAvatarCls:n,skeletonTitleCls:a,skeletonParagraphCls:r,skeletonButtonCls:l,skeletonInputCls:d,skeletonImageCls:g,controlHeight:T,controlHeightLG:b,controlHeightSM:m,color:v,padding:p,marginSM:u,borderRadius:s,skeletonTitleHeight:h,skeletonBlockRadius:f,skeletonParagraphLineHeight:S,controlHeightXS:H,skeletonParagraphMarginTop:A}=e;return{[`${t}`]:{display:"table",width:"100%",[`${t}-header`]:{display:"table-cell",paddingInlineEnd:p,verticalAlign:"top",[`${n}`]:o({display:"inline-block",verticalAlign:"top",background:v},M(T)),[`${n}-circle`]:{borderRadius:"50%"},[`${n}-lg`]:o({},M(b)),[`${n}-sm`]:o({},M(m))},[`${t}-content`]:{display:"table-cell",width:"100%",verticalAlign:"top",[`${a}`]:{width:"100%",height:h,background:v,borderRadius:f,[`+ ${r}`]:{marginBlockStart:m}},[`${r}`]:{padding:0,"> li":{width:"100%",height:S,listStyle:"none",background:v,borderRadius:f,"+ li":{marginBlockStart:H}}},[`${r}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${t}-content`]:{[`${a}, ${r} > li`]:{borderRadius:s}}},[`${t}-with-avatar ${t}-content`]:{[`${a}`]:{marginBlockStart:u,[`+ ${r}`]:{marginBlockStart:A}}},[`${t}${t}-element`]:o(o(o(o({display:"inline-block",width:"auto"},nt(e)),Ze(e)),et(e)),tt(e)),[`${t}${t}-block`]:{width:"100%",[`${l}`]:{width:"100%"},[`${d}`]:{width:"100%"}},[`${t}${t}-active`]:{[` + ${a}, + ${r} > li, + ${n}, + ${l}, + ${d}, + ${g} + `]:o({},Ye(e))}}},_=he("Skeleton",e=>{const{componentCls:t}=e,n=me(e,{skeletonAvatarCls:`${t}-avatar`,skeletonTitleCls:`${t}-title`,skeletonParagraphCls:`${t}-paragraph`,skeletonButtonCls:`${t}-button`,skeletonInputCls:`${t}-input`,skeletonImageCls:`${t}-image`,imageSizeBase:e.controlHeight*1.5,skeletonTitleHeight:e.controlHeight/2,skeletonBlockRadius:e.borderRadiusSM,skeletonParagraphLineHeight:e.controlHeight/2,skeletonParagraphMarginTop:e.marginLG+e.marginXXS,borderRadius:100,skeletonLoadingBackground:`linear-gradient(90deg, ${e.color} 25%, ${e.colorGradientEnd} 37%, ${e.color} 63%)`,skeletonLoadingMotionDuration:"1.4s"});return[at(n)]},e=>{const{colorFillContent:t,colorFill:n}=e;return{color:t,colorGradientEnd:n}}),ot=()=>({active:{type:Boolean,default:void 0},loading:{type:Boolean,default:void 0},prefixCls:String,avatar:{type:[Boolean,Object],default:void 0},title:{type:[Boolean,Object],default:void 0},paragraph:{type:[Boolean,Object],default:void 0},round:{type:Boolean,default:void 0}});function ee(e){return e&&typeof e=="object"?e:{}}function rt(e,t){return e&&!t?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}function it(e,t){return!e&&t?{width:"38%"}:e&&t?{width:"50%"}:{}}function lt(e,t){const n={};return(!e||!t)&&(n.width="61%"),!e&&t?n.rows=3:n.rows=2,n}const $=y({compatConfig:{MODE:3},name:"ASkeleton",props:ae(ot(),{avatar:!1,title:!0,paragraph:!0}),setup(e,t){let{slots:n}=t;const{prefixCls:a,direction:r}=B("skeleton",e),[l,d]=_(a);return()=>{var g;const{loading:T,avatar:b,title:m,paragraph:v,active:p,round:u}=e,s=a.value;if(T||e.loading===void 0){const h=!!b||b==="",f=!!m||m==="",S=!!v||v==="";let H;if(h){const I=o(o({prefixCls:`${s}-avatar`},rt(f,S)),ee(b));H=i("div",{class:`${s}-header`},[i(W,I,null)])}let A;if(f||S){let I;if(f){const C=o(o({prefixCls:`${s}-title`},it(h,S)),ee(m));I=i(oe,C,null)}let P;if(S){const C=o(o({prefixCls:`${s}-paragraph`},lt(h,f)),ee(v));P=i(Ue,C,null)}A=i("div",{class:`${s}-content`},[I,P])}const k=x(s,{[`${s}-with-avatar`]:h,[`${s}-active`]:p,[`${s}-rtl`]:r.value==="rtl",[`${s}-round`]:u,[d.value]:!0});return l(i("div",{class:k},[H,A]))}return(g=n.default)===null||g===void 0?void 0:g.call(n)}}}),st=()=>o(o({},j()),{size:String,block:Boolean}),Se=y({compatConfig:{MODE:3},name:"ASkeletonButton",props:ae(st(),{size:"default"}),setup(e){const{prefixCls:t}=B("skeleton",e),[n,a]=_(t),r=G(()=>x(t.value,`${t.value}-element`,{[`${t.value}-active`]:e.active,[`${t.value}-block`]:e.block},a.value));return()=>n(i("div",{class:r.value},[i(W,w(w({},e),{},{prefixCls:`${t.value}-button`}),null)]))}}),ye=y({compatConfig:{MODE:3},name:"ASkeletonInput",props:o(o({},be(j(),["shape"])),{size:String,block:Boolean}),setup(e){const{prefixCls:t}=B("skeleton",e),[n,a]=_(t),r=G(()=>x(t.value,`${t.value}-element`,{[`${t.value}-active`]:e.active,[`${t.value}-block`]:e.block},a.value));return()=>n(i("div",{class:r.value},[i(W,w(w({},e),{},{prefixCls:`${t.value}-input`}),null)]))}}),dt="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",Ce=y({compatConfig:{MODE:3},name:"ASkeletonImage",props:be(j(),["size","shape","active"]),setup(e){const{prefixCls:t}=B("skeleton",e),[n,a]=_(t),r=G(()=>x(t.value,`${t.value}-element`,a.value));return()=>n(i("div",{class:r.value},[i("div",{class:`${t.value}-image`},[i("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",class:`${t.value}-image-svg`},[i("path",{d:dt,class:`${t.value}-image-path`},null)])])]))}}),ct=()=>o(o({},j()),{shape:String}),xe=y({compatConfig:{MODE:3},name:"ASkeletonAvatar",props:ae(ct(),{size:"default",shape:"circle"}),setup(e){const{prefixCls:t}=B("skeleton",e),[n,a]=_(t),r=G(()=>x(t.value,`${t.value}-element`,{[`${t.value}-active`]:e.active},a.value));return()=>n(i("div",{class:r.value},[i(W,w(w({},e),{},{prefixCls:`${t.value}-avatar`}),null)]))}});$.Button=Se;$.Avatar=xe;$.Input=ye;$.Image=Ce;$.Title=oe;$.install=function(e){return e.component($.name,$),e.component($.Button.name,Se),e.component($.Avatar.name,xe),e.component($.Input.name,ye),e.component($.Image.name,Ce),e.component($.Title.name,oe),e};const{TabPane:ut}=fe,gt=()=>({prefixCls:String,title:L.any,extra:L.any,bordered:{type:Boolean,default:!0},bodyStyle:{type:Object,default:void 0},headStyle:{type:Object,default:void 0},loading:{type:Boolean,default:!1},hoverable:{type:Boolean,default:!1},type:{type:String},size:{type:String},actions:L.any,tabList:{type:Array},tabBarExtraContent:L.any,activeTabKey:String,defaultActiveTabKey:String,cover:L.any,onTabChange:{type:Function}}),D=y({compatConfig:{MODE:3},name:"ACard",inheritAttrs:!1,props:gt(),slots:Object,setup(e,t){let{slots:n,attrs:a}=t;const{prefixCls:r,direction:l,size:d}=B("card",e),[g,T]=Fe(r),b=p=>p.map((s,h)=>pe(s)&&!Le(s)||!pe(s)?i("li",{style:{width:`${100/p.length}%`},key:`action-${h}`},[i("span",null,[s])]):null),m=p=>{var u;(u=e.onTabChange)===null||u===void 0||u.call(e,p)},v=function(){let p=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],u;return p.forEach(s=>{s&&De(s.type)&&s.type.__ANT_CARD_GRID&&(u=!0)}),u};return()=>{var p,u,s,h,f,S;const{headStyle:H={},bodyStyle:A={},loading:k,bordered:I=!0,type:P,tabList:C,hoverable:we,activeTabKey:re,defaultActiveTabKey:Be,tabBarExtraContent:ie=E((p=n.tabBarExtraContent)===null||p===void 0?void 0:p.call(n)),title:X=E((u=n.title)===null||u===void 0?void 0:u.call(n)),extra:K=E((s=n.extra)===null||s===void 0?void 0:s.call(n)),actions:F=E((h=n.actions)===null||h===void 0?void 0:h.call(n)),cover:le=E((f=n.cover)===null||f===void 0?void 0:f.call(n))}=e,R=Ee((S=n.default)===null||S===void 0?void 0:S.call(n)),c=r.value,Te={[`${c}`]:!0,[T.value]:!0,[`${c}-loading`]:k,[`${c}-bordered`]:I,[`${c}-hoverable`]:!!we,[`${c}-contain-grid`]:v(R),[`${c}-contain-tabs`]:C&&C.length,[`${c}-${d.value}`]:d.value,[`${c}-type-${P}`]:!!P,[`${c}-rtl`]:l.value==="rtl"},He=i($,{loading:!0,active:!0,paragraph:{rows:4},title:!1},{default:()=>[R]}),se=re!==void 0,Ae={size:"large",[se?"activeKey":"defaultActiveKey"]:se?re:Be,onChange:m,class:`${c}-head-tabs`};let de;const ce=C&&C.length?i(fe,Ae,{default:()=>[C.map(z=>{const{tab:ue,slots:O}=z,ge=O==null?void 0:O.tab;Ge(!O,"Card","tabList slots is deprecated, Please use `customTab` instead.");let V=ue!==void 0?ue:n[ge]?n[ge](z):null;return V=We(n,"customTab",z,()=>[V]),i(ut,{tab:V,key:z.key,disabled:z.disabled},null)})],rightExtra:ie?()=>ie:null}):null;(X||K||ce)&&(de=i("div",{class:`${c}-head`,style:H},[i("div",{class:`${c}-head-wrapper`},[X&&i("div",{class:`${c}-head-title`},[X]),K&&i("div",{class:`${c}-extra`},[K])]),ce]));const Ie=le?i("div",{class:`${c}-cover`},[le]):null,Me=i("div",{class:`${c}-body`,style:A},[k?He:R]),Pe=F&&F.length?i("ul",{class:`${c}-actions`},[b(F)]):null;return g(i("div",w(w({ref:"cardContainerRef"},a),{},{class:[Te,a.class]}),[de,Ie,R&&R.length?Me:null,Pe]))}}}),pt=()=>({prefixCls:String,title:U(),description:U(),avatar:U()}),te=y({compatConfig:{MODE:3},name:"ACardMeta",props:pt(),slots:Object,setup(e,t){let{slots:n}=t;const{prefixCls:a}=B("card",e);return()=>{const r={[`${a.value}-meta`]:!0},l=J(n,e,"avatar"),d=J(n,e,"title"),g=J(n,e,"description"),T=l?i("div",{class:`${a.value}-meta-avatar`},[l]):null,b=d?i("div",{class:`${a.value}-meta-title`},[d]):null,m=g?i("div",{class:`${a.value}-meta-description`},[g]):null,v=b||m?i("div",{class:`${a.value}-meta-detail`},[b,m]):null;return i("div",{class:r},[T,v])}}}),$t=()=>({prefixCls:String,hoverable:{type:Boolean,default:!0}}),ne=y({compatConfig:{MODE:3},name:"ACardGrid",__ANT_CARD_GRID:!0,props:$t(),setup(e,t){let{slots:n}=t;const{prefixCls:a}=B("card",e),r=G(()=>({[`${a.value}-grid`]:!0,[`${a.value}-grid-hoverable`]:e.hoverable}));return()=>{var l;return i("div",{class:r.value},[(l=n.default)===null||l===void 0?void 0:l.call(n)])}}});D.Meta=te;D.Grid=ne;D.install=function(e){return e.component(D.name,D),e.component(te.name,te),e.component(ne.name,ne),e};export{D as C,$ as S}; diff --git a/src/agentkit/server/static/assets/index-CKNOcsSD.js b/src/agentkit/server/static/assets/index-CKNOcsSD.js new file mode 100644 index 0000000..194dc60 --- /dev/null +++ b/src/agentkit/server/static/assets/index-CKNOcsSD.js @@ -0,0 +1,7 @@ +import{p as re,q as oe,aL as te,_ as s,s as _,b1 as le,a4 as m,P as ie,a7 as w,az as se,aM as j,d as X,z as K,H as ce,Q as de,B as ue,R as be,J as ve,N,c as I,E as D,aV as he,x as fe,g as y,r as S,A as U,y as me}from"./index-Ci55MVrK.js";import{V as pe}from"./Checkbox-C1b034xJ.js";import{u as L,F as ge}from"./FormItemContext-D_7H_KA_.js";const xe=new te("antCheckboxEffect",{"0%":{transform:"scale(1)",opacity:.5},"100%":{transform:"scale(1.6)",opacity:0}}),Ce=e=>{const{checkboxCls:a}=e,n=`${a}-wrapper`;return[{[`${a}-group`]:s(s({},_(e)),{display:"inline-flex",flexWrap:"wrap",columnGap:e.marginXS,[`> ${e.antCls}-row`]:{flex:1}}),[n]:s(s({},_(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}}}),[a]:s(s({},_(e)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",alignSelf:"center",[`${a}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${a}-inner`]:s({},le(e))},[`${a}-inner`]:{boxSizing:"border-box",position:"relative",top:0,insetInlineStart:0,display:"block",width:e.checkboxSize,height:e.checkboxSize,direction:"ltr",backgroundColor:e.colorBgContainer,border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,borderCollapse:"separate",transition:`all ${e.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"21.5%",display:"table",width:e.checkboxSize/14*5,height:e.checkboxSize/14*8,border:`${e.lineWidthBold}px 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}})},{[a]:{"&-indeterminate":{[`${a}-inner`]:{"&:after":{top:"50%",insetInlineStart:"50%",width:e.fontSizeLG/2,height:e.fontSizeLG/2,backgroundColor:e.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}}}}},{[`${n}:hover ${a}:after`]:{visibility:"visible"},[` + ${n}:not(${n}-disabled), + ${a}:not(${a}-disabled) + `]:{[`&:hover ${a}-inner`]:{borderColor:e.colorPrimary}},[`${n}:not(${n}-disabled)`]:{[`&:hover ${a}-checked:not(${a}-disabled) ${a}-inner`]:{backgroundColor:e.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${a}-checked:not(${a}-disabled):after`]:{borderColor:e.colorPrimaryHover}}},{[`${a}-checked`]:{[`${a}-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}`}},"&:after":{position:"absolute",top:0,insetInlineStart:0,width:"100%",height:"100%",borderRadius:e.borderRadiusSM,visibility:"hidden",border:`${e.lineWidthBold}px solid ${e.colorPrimary}`,animationName:xe,animationDuration:e.motionDurationSlow,animationTimingFunction:"ease-in-out",animationFillMode:"backwards",content:'""',transition:`all ${e.motionDurationSlow}`}},[` + ${n}-checked:not(${n}-disabled), + ${a}-checked:not(${a}-disabled) + `]:{[`&:hover ${a}-inner`]:{backgroundColor:e.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${a}:after`]:{borderColor:e.colorPrimaryHover}}},{[`${n}-disabled`]:{cursor:"not-allowed"},[`${a}-disabled`]:{[`&, ${a}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${a}-inner`]:{background:e.colorBgContainerDisabled,borderColor:e.colorBorder,"&:after":{borderColor:e.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:e.colorTextDisabled},[`&${a}-indeterminate ${a}-inner::after`]:{background:e.colorTextDisabled}}}]};function $e(e,a){const n=oe(a,{checkboxCls:`.${e}`,checkboxSize:a.controlInteractiveSize});return[Ce(n)]}const q=re("Checkbox",(e,a)=>{let{prefixCls:n}=a;return[$e(n,e)]}),ye=()=>({name:String,prefixCls:String,options:j([]),disabled:Boolean,id:String}),Se=()=>s(s({},ye()),{defaultValue:j(),value:j(),onChange:w(),"onUpdate:value":w()}),we=()=>({prefixCls:String,defaultChecked:m(),checked:m(),disabled:m(),isGroup:m(),value:ie.any,name:String,id:String,indeterminate:m(),type:se("checkbox"),autofocus:m(),onChange:w(),"onUpdate:checked":w(),onClick:w(),skipGroup:m(!1)}),Ie=()=>s(s({},we()),{indeterminate:m(!1)}),J=Symbol("CheckboxGroupContext");var W=function(e,a){var n={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&a.indexOf(t)<0&&(n[t]=e[t]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var d=0,t=Object.getOwnPropertySymbols(e);d(l==null?void 0:l.disabled.value)||V.value);ce(()=>{!e.skipGroup&&l&&l.registerValue(g,e.value)}),de(()=>{l&&l.cancelValue(g)}),ue(()=>{be(!!(e.checked!==void 0||l||e.value===void 0))});const B=r=>{const c=r.target.checked;n("update:checked",c),n("change",r),C.onFieldChange()},x=S();return G({focus:()=>{var r;(r=x.value)===null||r===void 0||r.focus()},blur:()=>{var r;(r=x.value)===null||r===void 0||r.blur()}}),()=>{var r;const c=ve((r=d.default)===null||r===void 0?void 0:r.call(d)),{indeterminate:i,skipGroup:v,id:T=C.id.value}=e,E=W(e,["indeterminate","skipGroup","id"]),{onMouseenter:F,onMouseleave:$,onInput:ke,class:Y,style:Z}=t,ee=W(t,["onMouseenter","onMouseleave","onInput","class","style"]),h=s(s(s(s({},E),{id:T,prefixCls:u.value}),ee),{disabled:M.value});l&&!v?(h.onChange=function(){for(var H=arguments.length,R=new Array(H),O=0;O`${P.value}-group`),[V,z]=q(p),b=S((e.value===void 0?e.defaultValue:e.value)||[]);U(()=>e.value,()=>{b.value=e.value||[]});const f=y(()=>e.options.map(o=>typeof o=="string"||typeof o=="number"?{label:o,value:o}:o)),l=S(Symbol()),g=S(new Map),M=o=>{g.value.delete(o),l.value=Symbol()},B=(o,r)=>{g.value.set(o,r),l.value=Symbol()},x=S(new Map);return U(l,()=>{const o=new Map;for(const r of g.value.values())o.set(r,!0);x.value=o}),me(J,{cancelValue:M,registerValue:B,toggleOption:o=>{const r=b.value.indexOf(o.value),c=[...b.value];r===-1?c.push(o.value):c.splice(r,1),e.value===void 0&&(b.value=c);const i=c.filter(v=>x.value.has(v)).sort((v,T)=>{const E=f.value.findIndex($=>$.value===v),F=f.value.findIndex($=>$.value===T);return E-F});d("update:value",i),d("change",i),C.onFieldChange()},mergedValue:b,name:y(()=>e.name),disabled:y(()=>e.disabled)}),G({mergedValue:b}),()=>{var o;const{id:r=C.id.value}=e;let c=null;return f.value&&f.value.length>0&&(c=f.value.map(i=>{var v;return I(k,{prefixCls:P.value,key:i.value.toString(),disabled:"disabled"in i?i.disabled:e.disabled,indeterminate:i.indeterminate,value:i.value,checked:b.value.indexOf(i.value)!==-1,onChange:i.onChange,class:`${p.value}-item`},{default:()=>[n.label!==void 0?(v=n.label)===null||v===void 0?void 0:v.call(n,i):i.label]})})),V(I("div",D(D({},t),{},{class:[p.value,{[`${p.value}-rtl`]:u.value==="rtl"},t.class,z.value],id:r}),[c||((o=n.default)===null||o===void 0?void 0:o.call(n))]))}}});k.Group=A;k.install=function(e){return e.component(k.name,k),e.component(A.name,A),e};export{k as C,$e as g}; diff --git a/src/agentkit/server/static/assets/index-Cec7QIaL.js b/src/agentkit/server/static/assets/index-Cec7QIaL.js new file mode 100644 index 0000000..ac193dc --- /dev/null +++ b/src/agentkit/server/static/assets/index-Cec7QIaL.js @@ -0,0 +1,19 @@ +import{B as rt,G as te,x as it,g as C,y as at,p as ot,q as Ut,_ as T,d as ve,z as Le,Q as Xt,c as L,E as B,r as Fe,a8 as $e,N as fe,aD as Ln,b8 as Rn,I as Nn,aG as Vn,F as qe,aJ as Dn,s as Kt,A as ue,aR as Wn,aE as Gn,aN as Bn,m as Hn,v as zn,aO as Un,aP as Yt,H as ze,C as Qt,M as Zt,T as Ue,P as he,af as lt,a0 as Xn,ac as Kn,ab as Yn,ad as Qn,e as oe,bq as Zn,a7 as de,a4 as ye,az as yt,a6 as Jn,aI as Ce,br as kn,bs as er}from"./index-Ci55MVrK.js";import{l as tr,k as Re,m as Jt,s as nr,n as rr,o as ir,U as bt,S as kt,p as ar,q as en,u as or,v as $t,A as lr,w as tn}from"./base-B4siOKZE.js";import{k as sr,b as ur,f as nn,l as fr,o as cr,m as rn,g as st,n as an,t as Me,h as dr,p as on,e as ln,j as mr}from"./Dropdown-BUKifQVF.js";import{g as ce,h as sn,a as ut,r as un,S as xt,j as ft,k as ct,l as fn,n as _e,m as gr,b as cn,c as hr,i as vr}from"./_plugin-vue_export-helper-CBXJ7-XR.js";import{p as dn,e as pr}from"./index-D6JhFblJ.js";import{u as yr,r as Ee}from"./responsiveObserve-CDxZiPRN.js";import{d as br}from"./styleChecker-CUnokkun.js";import{j as $r,k as xr,g as wr,c as Fr}from"./index-B5q-1V92.js";import{z as mn}from"./zoom-C2fVs05p.js";import{a as Sr,F as Or,u as Ar,b as Xe}from"./FormItemContext-D_7H_KA_.js";function wt(e){return typeof e=="object"&&e!=null&&e.nodeType===1}function Ft(e,t){return(!t||e!=="hidden")&&e!=="visible"&&e!=="clip"}function De(e,t){if(e.clientHeightt||a>e&&o=t&&l>=n?a-e-r:o>t&&ln?o-t+i:0}var St=function(e,t){var n=window,r=t.scrollMode,i=t.block,a=t.inline,o=t.boundary,l=t.skipOverflowHiddenElements,f=typeof o=="function"?o:function(_n){return _n!==o};if(!wt(e))throw new TypeError("Invalid target");for(var v,d,g=document.scrollingElement||document.documentElement,y=[],b=e;wt(b)&&f(b);){if((b=(d=(v=b).parentElement)==null?v.getRootNode().host||null:d)===g){y.push(b);break}b!=null&&b===document.body&&De(b)&&!De(document.documentElement)||b!=null&&De(b,l)&&y.push(b)}for(var x=n.visualViewport?n.visualViewport.width:innerWidth,c=n.visualViewport?n.visualViewport.height:innerHeight,$=window.scrollX||pageXOffset,m=window.scrollY||pageYOffset,F=e.getBoundingClientRect(),s=F.height,u=F.width,h=F.top,p=F.right,S=F.bottom,O=F.left,j=i==="start"||i==="nearest"?h:i==="end"?S:h+s/2,q=a==="center"?O+u/2:a==="end"?p:O,R=[],_=0;_=0&&O>=0&&S<=c&&p<=x&&h>=A&&S<=N&&O>=z&&p<=I)return R;var K=getComputedStyle(E),J=parseInt(K.borderLeftWidth,10),ie=parseInt(K.borderTopWidth,10),Z=parseInt(K.borderRightWidth,10),w=parseInt(K.borderBottomWidth,10),P=0,V=0,W="offsetWidth"in E?E.offsetWidth-E.clientWidth-J-Z:0,G="offsetHeight"in E?E.offsetHeight-E.clientHeight-ie-w:0,Y="offsetWidth"in E?E.offsetWidth===0?0:X/E.offsetWidth:0,ne="offsetHeight"in E?E.offsetHeight===0?0:Q/E.offsetHeight:0;if(g===E)P=i==="start"?j:i==="end"?j-c:i==="nearest"?Ie(m,m+c,c,ie,w,m+j,m+j+s,s):j-c/2,V=a==="start"?q:a==="center"?q-x/2:a==="end"?q-x:Ie($,$+x,x,J,Z,$+q,$+q+u,u),P=Math.max(0,P+m),V=Math.max(0,V+$);else{P=i==="start"?j-A-ie:i==="end"?j-N+w+G:i==="nearest"?Ie(A,N,Q,ie,w+G,j,j+s,s):j-(A+Q/2)+G/2,V=a==="start"?q-z-J:a==="center"?q-(z+X/2)+W/2:a==="end"?q-I+Z+W:Ie(z,I,X,J,Z+W,q,q+u,u);var re=E.scrollLeft,pe=E.scrollTop;j+=pe-(P=Math.max(0,Math.min(pe+P/ne,E.scrollHeight-Q/ne+G))),q+=re-(V=Math.max(0,Math.min(re+V/Y,E.scrollWidth-X/Y+W)))}R.push({el:E,top:P,left:V})}return R};function gn(e){return e===Object(e)&&Object.keys(e).length!==0}function Cr(e,t){t===void 0&&(t="auto");var n="scrollBehavior"in document.body.style;e.forEach(function(r){var i=r.el,a=r.top,o=r.left;i.scroll&&n?i.scroll({top:a,left:o,behavior:t}):(i.scrollTop=a,i.scrollLeft=o)})}function Er(e){return e===!1?{block:"end",inline:"nearest"}:gn(e)?e:{block:"start",inline:"nearest"}}function Ir(e,t){var n=e.isConnected||e.ownerDocument.documentElement.contains(e);if(gn(t)&&typeof t.behavior=="function")return t.behavior(n?St(e,t):[]);if(n){var r=Er(t);return Cr(St(e,r),r.behavior)}}var Tr=/\s/;function jr(e){for(var t=e.length;t--&&Tr.test(e.charAt(t)););return t}var Pr=/^\s+/;function qr(e){return e&&e.slice(0,jr(e)+1).replace(Pr,"")}var Ot=NaN,Mr=/^[-+]0x[0-9a-f]+$/i,_r=/^0b[01]+$/i,Lr=/^0o[0-7]+$/i,Rr=parseInt;function Ke(e){if(typeof e=="number")return e;if(sr(e))return Ot;if(ce(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=ce(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=qr(e);var n=_r.test(e);return n||Lr.test(e)?Rr(e.slice(2),n?2:8):Mr.test(e)?Ot:+e}var At=1/0,Nr=17976931348623157e292;function Vr(e){if(!e)return e===0?e:0;if(e=Ke(e),e===At||e===-At){var t=e<0?-1:1;return t*Nr}return e===e?e:0}function Dr(e){var t=Vr(e),n=t%1;return t===t?n?t-n:t:0}var Ct=Object.create,Wr=function(){function e(){}return function(t){if(!ce(t))return{};if(Ct)return Ct(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();function Gr(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++ni?0:i+t),n=n>i?i:n,n<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var a=Array(i);++r=t||S<0||g&&O>=a}function m(){var p=We();if($(p))return F(p);l=setTimeout(m,c(p))}function F(p){return l=void 0,y&&r?b(p):(r=i=void 0,o)}function s(){l!==void 0&&clearTimeout(l),v=0,r=f=i=l=void 0}function u(){return l===void 0?o:F(We())}function h(){var p=We(),S=$(p);if(r=arguments,i=this,f=p,S){if(l===void 0)return x(f);if(g)return clearTimeout(l),l=setTimeout(m,t),b(f)}return l===void 0&&(l=setTimeout(m,t)),o}return h.cancel=s,h.flush=u,h}function Ea(e){return ft(e)&&ut(e)}function Ia(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}function Ta(e){return function(t,n,r){var i=Object(t);if(!ut(t)){var a=Fn(n);t=Re(t),n=function(l){return a(i[l],l,i)}}var o=e(t,n,r);return o>-1?i[a?t[o]:o]:void 0}}var ja=Math.max;function Pa(e,t,n){var r=e==null?0:e.length;if(!r)return-1;var i=n==null?0:Dr(n);return i<0&&(i=ja(r+i,0)),$r(e,Fn(t),i)}var qa=Ta(Pa),Ma=Math.min;function _a(e,t,n){for(var r=xr,i=e[0].length,a=e.length,o=a,l=Array(a),f=1/0,v=[];o--;){var d=e[o];f=Ma(d.length,f),l[o]=i>=120&&d.length>=120?new or(o&&d):void 0}d=e[0];var g=-1,y=l[0];e:for(;++g1),a}),Oe(e,pn(e),n),r&&(n=xe(n,Ba|Ha|za,Ga));for(var i=t.length;i--;)Wa(n,t[i]);return n});const Xa=()=>{const e=te(!1);return rt(()=>{e.value=br()}),e},Sn=Symbol("rowContextKey"),Ka=e=>{at(Sn,e)},Ya=()=>it(Sn,{gutter:C(()=>{}),wrap:C(()=>{}),supportFlexGap:C(()=>{})}),Qa=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"}}}},Za=e=>{const{componentCls:t}=e;return{[t]:{position:"relative",maxWidth:"100%",minHeight:1}}},Ja=(e,t)=>{const{componentCls:n,gridColumns:r}=e,i={};for(let a=r;a>=0;a--)a===0?(i[`${n}${t}-${a}`]={display:"none"},i[`${n}-push-${a}`]={insetInlineStart:"auto"},i[`${n}-pull-${a}`]={insetInlineEnd:"auto"},i[`${n}${t}-push-${a}`]={insetInlineStart:"auto"},i[`${n}${t}-pull-${a}`]={insetInlineEnd:"auto"},i[`${n}${t}-offset-${a}`]={marginInlineEnd:0},i[`${n}${t}-order-${a}`]={order:0}):(i[`${n}${t}-${a}`]={display:"block",flex:`0 0 ${a/r*100}%`,maxWidth:`${a/r*100}%`},i[`${n}${t}-push-${a}`]={insetInlineStart:`${a/r*100}%`},i[`${n}${t}-pull-${a}`]={insetInlineEnd:`${a/r*100}%`},i[`${n}${t}-offset-${a}`]={marginInlineStart:`${a/r*100}%`},i[`${n}${t}-order-${a}`]={order:a});return i},Ye=(e,t)=>Ja(e,t),ka=(e,t,n)=>({[`@media (min-width: ${t}px)`]:T({},Ye(e,n))}),eo=ot("Grid",e=>[Qa(e)]),to=ot("Grid",e=>{const t=Ut(e,{gridColumns:24}),n={"-sm":t.screenSMMin,"-md":t.screenMDMin,"-lg":t.screenLGMin,"-xl":t.screenXLMin,"-xxl":t.screenXXLMin};return[Za(t),Ye(t,""),Ye(t,"-xs"),Object.keys(n).map(r=>ka(t,n[r],r)).reduce((r,i)=>T(T({},r),i),{})]}),no=()=>({align:$e([String,Object]),justify:$e([String,Object]),prefixCls:String,gutter:$e([Number,Array,Object],0),wrap:{type:Boolean,default:void 0}}),ro=ve({compatConfig:{MODE:3},name:"ARow",inheritAttrs:!1,props:no(),setup(e,t){let{slots:n,attrs:r}=t;const{prefixCls:i,direction:a}=Le("row",e),[o,l]=eo(i);let f;const v=yr(),d=Fe({xs:!0,sm:!0,md:!0,lg:!0,xl:!0,xxl:!0}),g=Fe({xs:!1,sm:!1,md:!1,lg:!1,xl:!1,xxl:!1}),y=s=>C(()=>{if(typeof e[s]=="string")return e[s];if(typeof e[s]!="object")return"";for(let u=0;u{f=v.value.subscribe(s=>{g.value=s;const u=e.gutter||0;(!Array.isArray(u)&&typeof u=="object"||Array.isArray(u)&&(typeof u[0]=="object"||typeof u[1]=="object"))&&(d.value=s)})}),Xt(()=>{v.value.unsubscribe(f)});const $=C(()=>{const s=[void 0,void 0],{gutter:u=0}=e;return(Array.isArray(u)?u:[u,void 0]).forEach((p,S)=>{if(typeof p=="object")for(let O=0;Oe.wrap)});const m=C(()=>fe(i.value,{[`${i.value}-no-wrap`]:e.wrap===!1,[`${i.value}-${x.value}`]:x.value,[`${i.value}-${b.value}`]:b.value,[`${i.value}-rtl`]:a.value==="rtl"},r.class,l.value)),F=C(()=>{const s=$.value,u={},h=s[0]!=null&&s[0]>0?`${s[0]/-2}px`:void 0,p=s[1]!=null&&s[1]>0?`${s[1]/-2}px`:void 0;return h&&(u.marginLeft=h,u.marginRight=h),c.value?u.rowGap=`${s[1]}px`:p&&(u.marginTop=p,u.marginBottom=p),u});return()=>{var s;return o(L("div",B(B({},r),{},{class:m.value,style:T(T({},F.value),r.style)}),[(s=n.default)===null||s===void 0?void 0:s.call(n)]))}}});function se(){return se=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 Pe(e,t,n){return ao()?Pe=Reflect.construct.bind():Pe=function(i,a,o){var l=[null];l.push.apply(l,a);var f=Function.bind.apply(i,l),v=new f;return o&&Se(v,o.prototype),v},Pe.apply(null,arguments)}function oo(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function Ze(e){var t=typeof Map=="function"?new Map:void 0;return Ze=function(r){if(r===null||!oo(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(typeof t<"u"){if(t.has(r))return t.get(r);t.set(r,i)}function i(){return Pe(r,arguments,Qe(this).constructor)}return i.prototype=Object.create(r.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),Se(i,r)},Ze(e)}var lo=/%[sdj%]/g,so=function(){};function Je(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 ee(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r=a)return l;switch(l){case"%s":return String(n[i++]);case"%d":return Number(n[i++]);case"%j":try{return JSON.stringify(n[i++])}catch{return"[Circular]"}break;default:return l}});return o}return e}function uo(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"}function U(e,t){return!!(e==null||t==="array"&&Array.isArray(e)&&!e.length||uo(t)&&typeof e=="string"&&!e)}function fo(e,t,n){var r=[],i=0,a=e.length;function o(l){r.push.apply(r,l||[]),i++,i===a&&n(r)}e.forEach(function(l){t(l,o)})}function _t(e,t,n){var r=0,i=e.length;function a(o){if(o&&o.length){n(o);return}var l=r;r=r+1,l()\[\]\\.,;:\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,}))$/,hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},be={integer:function(t){return be.number(t)&&parseInt(t,10)===t},float:function(t){return be.number(t)&&!be.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 typeof t=="object"&&!be.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(Vt.email)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(po())},hex:function(t){return typeof t=="string"&&!!t.match(Vt.hex)}},yo=function(t,n,r,i,a){if(t.required&&n===void 0){On(t,n,r,i,a);return}var o=["integer","float","array","regexp","object","method","email","number","date","url","hex"],l=t.type;o.indexOf(l)>-1?be[l](n)||i.push(ee(a.messages.types[l],t.fullField,t.type)):l&&typeof n!==t.type&&i.push(ee(a.messages.types[l],t.fullField,t.type))},bo=function(t,n,r,i,a){var o=typeof t.len=="number",l=typeof t.min=="number",f=typeof t.max=="number",v=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,d=n,g=null,y=typeof n=="number",b=typeof n=="string",x=Array.isArray(n);if(y?g="number":b?g="string":x&&(g="array"),!g)return!1;x&&(d=n.length),b&&(d=n.replace(v,"_").length),o?d!==t.len&&i.push(ee(a.messages[g].len,t.fullField,t.len)):l&&!f&&dt.max?i.push(ee(a.messages[g].max,t.fullField,t.max)):l&&f&&(dt.max)&&i.push(ee(a.messages[g].range,t.fullField,t.min,t.max))},me="enum",$o=function(t,n,r,i,a){t[me]=Array.isArray(t[me])?t[me]:[],t[me].indexOf(n)===-1&&i.push(ee(a.messages[me],t.fullField,t[me].join(", ")))},xo=function(t,n,r,i,a){if(t.pattern){if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(n)||i.push(ee(a.messages.pattern.mismatch,t.fullField,n,t.pattern));else if(typeof t.pattern=="string"){var o=new RegExp(t.pattern);o.test(n)||i.push(ee(a.messages.pattern.mismatch,t.fullField,n,t.pattern))}}},M={required:On,whitespace:vo,type:yo,range:bo,enum:$o,pattern:xo},wo=function(t,n,r,i,a){var o=[],l=t.required||!t.required&&i.hasOwnProperty(t.field);if(l){if(U(n,"string")&&!t.required)return r();M.required(t,n,i,o,a,"string"),U(n,"string")||(M.type(t,n,i,o,a),M.range(t,n,i,o,a),M.pattern(t,n,i,o,a),t.whitespace===!0&&M.whitespace(t,n,i,o,a))}r(o)},Fo=function(t,n,r,i,a){var o=[],l=t.required||!t.required&&i.hasOwnProperty(t.field);if(l){if(U(n)&&!t.required)return r();M.required(t,n,i,o,a),n!==void 0&&M.type(t,n,i,o,a)}r(o)},So=function(t,n,r,i,a){var o=[],l=t.required||!t.required&&i.hasOwnProperty(t.field);if(l){if(n===""&&(n=void 0),U(n)&&!t.required)return r();M.required(t,n,i,o,a),n!==void 0&&(M.type(t,n,i,o,a),M.range(t,n,i,o,a))}r(o)},Oo=function(t,n,r,i,a){var o=[],l=t.required||!t.required&&i.hasOwnProperty(t.field);if(l){if(U(n)&&!t.required)return r();M.required(t,n,i,o,a),n!==void 0&&M.type(t,n,i,o,a)}r(o)},Ao=function(t,n,r,i,a){var o=[],l=t.required||!t.required&&i.hasOwnProperty(t.field);if(l){if(U(n)&&!t.required)return r();M.required(t,n,i,o,a),U(n)||M.type(t,n,i,o,a)}r(o)},Co=function(t,n,r,i,a){var o=[],l=t.required||!t.required&&i.hasOwnProperty(t.field);if(l){if(U(n)&&!t.required)return r();M.required(t,n,i,o,a),n!==void 0&&(M.type(t,n,i,o,a),M.range(t,n,i,o,a))}r(o)},Eo=function(t,n,r,i,a){var o=[],l=t.required||!t.required&&i.hasOwnProperty(t.field);if(l){if(U(n)&&!t.required)return r();M.required(t,n,i,o,a),n!==void 0&&(M.type(t,n,i,o,a),M.range(t,n,i,o,a))}r(o)},Io=function(t,n,r,i,a){var o=[],l=t.required||!t.required&&i.hasOwnProperty(t.field);if(l){if(n==null&&!t.required)return r();M.required(t,n,i,o,a,"array"),n!=null&&(M.type(t,n,i,o,a),M.range(t,n,i,o,a))}r(o)},To=function(t,n,r,i,a){var o=[],l=t.required||!t.required&&i.hasOwnProperty(t.field);if(l){if(U(n)&&!t.required)return r();M.required(t,n,i,o,a),n!==void 0&&M.type(t,n,i,o,a)}r(o)},jo="enum",Po=function(t,n,r,i,a){var o=[],l=t.required||!t.required&&i.hasOwnProperty(t.field);if(l){if(U(n)&&!t.required)return r();M.required(t,n,i,o,a),n!==void 0&&M[jo](t,n,i,o,a)}r(o)},qo=function(t,n,r,i,a){var o=[],l=t.required||!t.required&&i.hasOwnProperty(t.field);if(l){if(U(n,"string")&&!t.required)return r();M.required(t,n,i,o,a),U(n,"string")||M.pattern(t,n,i,o,a)}r(o)},Mo=function(t,n,r,i,a){var o=[],l=t.required||!t.required&&i.hasOwnProperty(t.field);if(l){if(U(n,"date")&&!t.required)return r();if(M.required(t,n,i,o,a),!U(n,"date")){var f;n instanceof Date?f=n:f=new Date(n),M.type(t,f,i,o,a),f&&M.range(t,f.getTime(),i,o,a)}}r(o)},_o=function(t,n,r,i,a){var o=[],l=Array.isArray(n)?"array":typeof n;M.required(t,n,i,o,a,l),r(o)},Ge=function(t,n,r,i,a){var o=t.type,l=[],f=t.required||!t.required&&i.hasOwnProperty(t.field);if(f){if(U(n,o)&&!t.required)return r();M.required(t,n,i,l,a,o),U(n,o)||M.type(t,n,i,l,a)}r(l)},Lo=function(t,n,r,i,a){var o=[],l=t.required||!t.required&&i.hasOwnProperty(t.field);if(l){if(U(n)&&!t.required)return r();M.required(t,n,i,o,a)}r(o)},we={string:wo,method:Fo,number:So,boolean:Oo,regexp:Ao,integer:Co,float:Eo,array:Io,object:To,enum:Po,pattern:qo,date:Mo,url:Ge,hex:Ge,email:Ge,required:_o,any:Lo};function ke(){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",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 et=ke(),Ae=function(){function e(n){this.rules=null,this._messages=et,this.define(n)}var t=e.prototype;return t.define=function(r){var i=this;if(!r)throw new Error("Cannot configure a schema with no rules");if(typeof r!="object"||Array.isArray(r))throw new Error("Rules must be an object");this.rules={},Object.keys(r).forEach(function(a){var o=r[a];i.rules[a]=Array.isArray(o)?o:[o]})},t.messages=function(r){return r&&(this._messages=Nt(ke(),r)),this._messages},t.validate=function(r,i,a){var o=this;i===void 0&&(i={}),a===void 0&&(a=function(){});var l=r,f=i,v=a;if(typeof f=="function"&&(v=f,f={}),!this.rules||Object.keys(this.rules).length===0)return v&&v(null,l),Promise.resolve(l);function d(c){var $=[],m={};function F(u){if(Array.isArray(u)){var h;$=(h=$).concat.apply(h,u)}else $.push(u)}for(var s=0;s3&&arguments[3]!==void 0?arguments[3]:!1;return t.length&&r&&n===void 0&&!An(e,t.slice(0,-1))?e:Cn(e,t,n,r)}function tt(e){return ae(e)}function No(e,t){return An(e,t)}function Vo(e,t,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return Ro(e,t,n,r)}function Do(e,t){return e&&e.some(n=>Go(n,t))}function Dt(e){return typeof e=="object"&&e!==null&&Object.getPrototypeOf(e)===Object.prototype}function En(e,t){const n=Array.isArray(e)?[...e]:T({},e);return t&&Object.keys(t).forEach(r=>{const i=n[r],a=t[r],o=Dt(i)&&Dt(a);n[r]=o?En(i,a||{}):a}),n}function Wo(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;rEn(i,a),e)}function Wt(e,t){let n={};return t.forEach(r=>{const i=No(e,r);n=Vo(n,r,i)}),n}function Go(e,t){return!e||!t||e.length!==t.length?!1:e.every((n,r)=>t[r]===n)}const k="'${name}' is not a valid ${type}",Ne={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:k,method:k,array:k,object:k,number:k,date:k,boolean:k,integer:k,float:k,regexp:k,email:k,url:k,hex:k},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}"}};var Ve=function(e,t,n,r){function i(a){return a instanceof n?a:new n(function(o){o(a)})}return new(n||(n=Promise))(function(a,o){function l(d){try{v(r.next(d))}catch(g){o(g)}}function f(d){try{v(r.throw(d))}catch(g){o(g)}}function v(d){d.done?a(d.value):i(d.value).then(l,f)}v((r=r.apply(e,t||[])).next())})};const Bo=Ae;function Ho(e,t){return e.replace(/\$\{\w+\}/g,n=>{const r=n.slice(2,-1);return t[r]})}function nt(e,t,n,r,i){return Ve(this,void 0,void 0,function*(){const a=T({},n);delete a.ruleIndex,delete a.trigger;let o=null;a&&a.type==="array"&&a.defaultField&&(o=a.defaultField,delete a.defaultField);const l=new Bo({[e]:[a]}),f=Wo({},Ne,r.validateMessages);l.messages(f);let v=[];try{yield Promise.resolve(l.validate({[e]:t},T({},r)))}catch(y){y.errors?v=y.errors.map((b,x)=>{let{message:c}=b;return Ln(c)?Rn(c,{key:`error_${x}`}):c}):(console.error(y),v=[f.default()])}if(!v.length&&o)return(yield Promise.all(t.map((b,x)=>nt(`${e}.${x}`,b,o,r,i)))).reduce((b,x)=>[...b,...x],[]);const d=T(T(T({},n),{name:e,enum:(n.enum||[]).join(", ")}),i);return v.map(y=>typeof y=="string"?Ho(y,d):y)})}function In(e,t,n,r,i,a){const o=e.join("."),l=n.map((v,d)=>{const g=v.validator,y=T(T({},v),{ruleIndex:d});return g&&(y.validator=(b,x,c)=>{let $=!1;const F=g(b,x,function(){for(var s=arguments.length,u=new Array(s),h=0;h{$||c(...u)})});$=F&&typeof F.then=="function"&&typeof F.catch=="function",$&&F.then(()=>{c()}).catch(s=>{c(s||" ")})}),y}).sort((v,d)=>{let{warningOnly:g,ruleIndex:y}=v,{warningOnly:b,ruleIndex:x}=d;return!!g==!!b?y-x:g?1:-1});let f;if(i===!0)f=new Promise((v,d)=>Ve(this,void 0,void 0,function*(){for(let g=0;gnt(o,t,d,r,a).then(g=>({errors:g,rule:d})));f=(i?Uo(v):zo(v)).then(d=>Promise.reject(d))}return f.catch(v=>v),f}function zo(e){return Ve(this,void 0,void 0,function*(){return Promise.all(e).then(t=>[].concat(...t))})}function Uo(e){return Ve(this,void 0,void 0,function*(){let t=0;return new Promise(n=>{e.forEach(r=>{r.then(i=>{i.errors.length&&n([i]),t+=1,t===e.length&&n([])})})})})}const Tn=Symbol("formContextKey"),jn=e=>{at(Tn,e)},gt=()=>it(Tn,{name:C(()=>{}),labelAlign:C(()=>"right"),vertical:C(()=>!1),addField:(e,t)=>{},removeField:e=>{},model:C(()=>{}),rules:C(()=>{}),colon:C(()=>{}),labelWrap:C(()=>{}),labelCol:C(()=>{}),requiredMark:C(()=>!1),validateTrigger:C(()=>{}),onValidate:()=>{},validateMessages:C(()=>Ne)}),Pn=Symbol("formItemPrefixContextKey"),Xo=e=>{at(Pn,e)},Ko=()=>it(Pn,{prefixCls:C(()=>"")});function Yo(e){return typeof e=="number"?`${e} ${e} auto`:/^\d+(\.\d+)?(px|em|rem|%)$/.test(e)?`0 0 ${e}`:e}const Qo=()=>({span:[String,Number],order:[String,Number],offset:[String,Number],push:[String,Number],pull:[String,Number],xs:{type:[String,Number,Object],default:void 0},sm:{type:[String,Number,Object],default:void 0},md:{type:[String,Number,Object],default:void 0},lg:{type:[String,Number,Object],default:void 0},xl:{type:[String,Number,Object],default:void 0},xxl:{type:[String,Number,Object],default:void 0},prefixCls:String,flex:[String,Number]}),Zo=["xs","sm","md","lg","xl","xxl"],qn=ve({compatConfig:{MODE:3},name:"ACol",inheritAttrs:!1,props:Qo(),setup(e,t){let{slots:n,attrs:r}=t;const{gutter:i,supportFlexGap:a,wrap:o}=Ya(),{prefixCls:l,direction:f}=Le("col",e),[v,d]=to(l),g=C(()=>{const{span:b,order:x,offset:c,push:$,pull:m}=e,F=l.value;let s={};return Zo.forEach(u=>{let h={};const p=e[u];typeof p=="number"?h.span=p:typeof p=="object"&&(h=p||{}),s=T(T({},s),{[`${F}-${u}-${h.span}`]:h.span!==void 0,[`${F}-${u}-order-${h.order}`]:h.order||h.order===0,[`${F}-${u}-offset-${h.offset}`]:h.offset||h.offset===0,[`${F}-${u}-push-${h.push}`]:h.push||h.push===0,[`${F}-${u}-pull-${h.pull}`]:h.pull||h.pull===0,[`${F}-rtl`]:f.value==="rtl"})}),fe(F,{[`${F}-${b}`]:b!==void 0,[`${F}-order-${x}`]:x,[`${F}-offset-${c}`]:c,[`${F}-push-${$}`]:$,[`${F}-pull-${m}`]:m},s,r.class,d.value)}),y=C(()=>{const{flex:b}=e,x=i.value,c={};if(x&&x[0]>0){const $=`${x[0]/2}px`;c.paddingLeft=$,c.paddingRight=$}if(x&&x[1]>0&&!a.value){const $=`${x[1]/2}px`;c.paddingTop=$,c.paddingBottom=$}return b&&(c.flex=Yo(b),o.value===!1&&!c.minWidth&&(c.minWidth=0)),c});return()=>{var b;return v(L("div",B(B({},r),{},{class:g.value,style:[y.value,r.style]}),[(b=n.default)===null||b===void 0?void 0:b.call(n)]))}}});var Jo={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"};function Gt(e){for(var t=1;t{let{slots:n,emit:r,attrs:i}=t;var a,o,l,f,v;const{prefixCls:d,htmlFor:g,labelCol:y,labelAlign:b,colon:x,required:c,requiredMark:$}=T(T({},e),i),[m]=Vn("Form"),F=(a=e.label)!==null&&a!==void 0?a:(o=n.label)===null||o===void 0?void 0:o.call(n);if(!F)return null;const{vertical:s,labelAlign:u,labelCol:h,labelWrap:p,colon:S}=gt(),O=y||(h==null?void 0:h.value)||{},j=b||(u==null?void 0:u.value),q=`${d}-item-label`,R=fe(q,j==="left"&&`${q}-left`,O.class,{[`${q}-wrap`]:!!p.value});let _=F;const E=x===!0||(S==null?void 0:S.value)!==!1&&x!==!1;if(E&&!s.value&&typeof F=="string"&&F.trim()!==""&&(_=F.replace(/[:|:]\s*$/,"")),e.tooltip||n.tooltip){const X=L("span",{class:`${d}-item-tooltip`},[L(lr,{title:e.tooltip},{default:()=>[L(ht,null,null)]})]);_=L(qe,null,[_,n.tooltip?(l=n.tooltip)===null||l===void 0?void 0:l.call(n,{class:`${d}-item-tooltip`}):X])}$==="optional"&&!c&&(_=L(qe,null,[_,L("span",{class:`${d}-item-optional`},[((f=m.value)===null||f===void 0?void 0:f.optional)||((v=Dn.Form)===null||v===void 0?void 0:v.optional)])]));const Q=fe({[`${d}-item-required`]:c,[`${d}-item-required-mark-optional`]:$==="optional",[`${d}-item-no-colon`]:!E});return L(qn,B(B({},O),{},{class:R}),{default:()=>[L("label",{for:g,class:Q,title:typeof F=="string"?F:"",onClick:X=>r("click",X)},[_])]})};vt.displayName="FormItemLabel";vt.inheritAttrs=!1;const el=e=>{const{componentCls:t}=e,n=`${t}-show-help`,r=`${t}-show-help-item`;return{[n]:{transition:`opacity ${e.motionDurationSlow} ${e.motionEaseInOut}`,"&-appear, &-enter":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}},[r]:{overflow:"hidden",transition:`height ${e.motionDurationSlow} ${e.motionEaseInOut}, + opacity ${e.motionDurationSlow} ${e.motionEaseInOut}, + transform ${e.motionDurationSlow} ${e.motionEaseInOut} !important`,[`&${r}-appear, &${r}-enter`]:{transform:"translateY(-5px)",opacity:0,"&-active":{transform:"translateY(0)",opacity:1}},[`&${r}-leave-active`]:{transform:"translateY(-5px)"}}}}},tl=e=>({legend:{display:"block",width:"100%",marginBottom:e.marginLG,padding:0,color:e.colorTextDescription,fontSize:e.fontSizeLG,lineHeight:"inherit",border:0,borderBottom:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`},label:{fontSize:e.fontSize},'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 ${e.controlOutlineWidth}px ${e.controlOutline}`},output:{display:"block",paddingTop:15,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight}}),Bt=(e,t)=>{const{formItemCls:n}=e;return{[n]:{[`${n}-label > label`]:{height:t},[`${n}-control-input`]:{minHeight:t}}}},nl=e=>{const{componentCls:t}=e;return{[e.componentCls]:T(T(T({},Kt(e)),tl(e)),{[`${t}-text`]:{display:"inline-block",paddingInlineEnd:e.paddingSM},"&-small":T({},Bt(e,e.controlHeightSM)),"&-large":T({},Bt(e,e.controlHeightLG))})}},rl=e=>{const{formItemCls:t,iconCls:n,componentCls:r,rootPrefixCls:i}=e;return{[t]:T(T({},Kt(e)),{marginBottom:e.marginLG,verticalAlign:"top","&-with-help":{transition:"none"},[`&-hidden, + &-hidden.${i}-row`]:{display:"none"},"&-has-warning":{[`${t}-split`]:{color:e.colorError}},"&-has-error":{[`${t}-split`]:{color:e.colorWarning}},[`${t}-label`]:{display:"inline-block",flexGrow:0,overflow:"hidden",whiteSpace:"nowrap",textAlign:"end",verticalAlign:"middle","&-left":{textAlign:"start"},"&-wrap":{overflow:"unset",lineHeight:`${e.lineHeight} - 0.25em`,whiteSpace:"unset"},"> label":{position:"relative",display:"inline-flex",alignItems:"center",maxWidth:"100%",height:e.controlHeight,color:e.colorTextHeading,fontSize:e.fontSize,[`> ${n}`]:{fontSize:e.fontSize,verticalAlign:"top"},[`&${t}-required:not(${t}-required-mark-optional)::before`]:{display:"inline-block",marginInlineEnd:e.marginXXS,color:e.colorError,fontSize:e.fontSize,fontFamily:"SimSun, sans-serif",lineHeight:1,content:'"*"',[`${r}-hide-required-mark &`]:{display:"none"}},[`${t}-optional`]:{display:"inline-block",marginInlineStart:e.marginXXS,color:e.colorTextDescription,[`${r}-hide-required-mark &`]:{display:"none"}},[`${t}-tooltip`]:{color:e.colorTextDescription,cursor:"help",writingMode:"horizontal-tb",marginInlineStart:e.marginXXS},"&::after":{content:'":"',position:"relative",marginBlock:0,marginInlineStart:e.marginXXS/2,marginInlineEnd:e.marginXS},[`&${t}-no-colon::after`]:{content:'" "'}}},[`${t}-control`]:{display:"flex",flexDirection:"column",flexGrow:1,[`&:first-child:not([class^="'${i}-col-'"]):not([class*="' ${i}-col-'"])`]:{width:"100%"},"&-input":{position:"relative",display:"flex",alignItems:"center",minHeight:e.controlHeight,"&-content":{flex:"auto",maxWidth:"100%"}}},[t]:{"&-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:mn,animationDuration:e.motionDurationMid,animationTimingFunction:e.motionEaseOutBack,pointerEvents:"none","&-success":{color:e.colorSuccess},"&-error":{color:e.colorError},"&-warning":{color:e.colorWarning},"&-validating":{color:e.colorPrimary}}})}},il=e=>{const{componentCls:t,formItemCls:n,rootPrefixCls:r}=e;return{[`${t}-horizontal`]:{[`${n}-label`]:{flexGrow:0},[`${n}-control`]:{flex:"1 1 0",minWidth:0},[`${n}-label.${r}-col-24 + ${n}-control`]:{minWidth:"unset"}}}},al=e=>{const{componentCls:t,formItemCls:n}=e;return{[`${t}-inline`]:{display:"flex",flexWrap:"wrap",[n]:{flex:"none",flexWrap:"nowrap",marginInlineEnd:e.margin,marginBottom:0,"&-with-help":{marginBottom:e.marginLG},[`> ${n}-label, + > ${n}-control`]:{display:"inline-block",verticalAlign:"top"},[`> ${n}-label`]:{flex:"none"},[`${t}-text`]:{display:"inline-block"},[`${n}-has-feedback`]:{display:"inline-block"}}}}},ge=e=>({margin:0,padding:`0 0 ${e.paddingXS}px`,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{display:"none"}}}),ol=e=>{const{componentCls:t,formItemCls:n}=e;return{[`${n} ${n}-label`]:ge(e),[t]:{[n]:{flexWrap:"wrap",[`${n}-label, + ${n}-control`]:{flex:"0 0 100%",maxWidth:"100%"}}}}},ll=e=>{const{componentCls:t,formItemCls:n,rootPrefixCls:r}=e;return{[`${t}-vertical`]:{[n]:{"&-row":{flexDirection:"column"},"&-label > label":{height:"auto"},[`${t}-item-control`]:{width:"100%"}}},[`${t}-vertical ${n}-label, + .${r}-col-24${n}-label, + .${r}-col-xl-24${n}-label`]:ge(e),[`@media (max-width: ${e.screenXSMax}px)`]:[ol(e),{[t]:{[`.${r}-col-xs-24${n}-label`]:ge(e)}}],[`@media (max-width: ${e.screenSMMax}px)`]:{[t]:{[`.${r}-col-sm-24${n}-label`]:ge(e)}},[`@media (max-width: ${e.screenMDMax}px)`]:{[t]:{[`.${r}-col-md-24${n}-label`]:ge(e)}},[`@media (max-width: ${e.screenLGMax}px)`]:{[t]:{[`.${r}-col-lg-24${n}-label`]:ge(e)}}}},pt=ot("Form",(e,t)=>{let{rootPrefixCls:n}=t;const r=Ut(e,{formItemCls:`${e.componentCls}-item`,rootPrefixCls:n});return[nl(r),rl(r),el(r),il(r),al(r),ll(r),wr(r),mn]}),sl=ve({compatConfig:{MODE:3},name:"ErrorList",inheritAttrs:!1,props:["errors","help","onErrorVisibleChanged","helpStatus","warnings"],setup(e,t){let{attrs:n}=t;const{prefixCls:r,status:i}=Ko(),a=C(()=>`${r.value}-item-explain`),o=C(()=>!!(e.errors&&e.errors.length)),l=Fe(i.value),[,f]=pt(r);return ue([o,i],()=>{o.value&&(l.value=i.value)}),()=>{var v,d;const g=Fr(`${r.value}-show-help-item`),y=Wn(`${r.value}-show-help-item`,g);return y.role="alert",y.class=[f.value,a.value,n.class,`${r.value}-show-help`],L(Gn,B(B({},Bn(`${r.value}-show-help`)),{},{onAfterEnter:()=>e.onErrorVisibleChanged(!0),onAfterLeave:()=>e.onErrorVisibleChanged(!1)}),{default:()=>[Hn(L(Un,B(B({},y),{},{tag:"div"}),{default:()=>[(d=e.errors)===null||d===void 0?void 0:d.map((b,x)=>L("div",{key:x,class:l.value?`${a.value}-${l.value}`:""},[b]))]}),[[zn,!!(!((v=e.errors)===null||v===void 0)&&v.length)]])]})}}}),ul=ve({compatConfig:{MODE:3},slots:Object,inheritAttrs:!1,props:["prefixCls","errors","hasFeedback","onDomErrorVisibleChange","wrapperCol","help","extra","status","marginBottom","onErrorVisibleChanged"],setup(e,t){let{slots:n}=t;const r=gt(),{wrapperCol:i}=r,a=T({},r);return delete a.labelCol,delete a.wrapperCol,jn(a),Xo({prefixCls:C(()=>e.prefixCls),status:C(()=>e.status)}),()=>{var o,l,f;const{prefixCls:v,wrapperCol:d,marginBottom:g,onErrorVisibleChanged:y,help:b=(o=n.help)===null||o===void 0?void 0:o.call(n),errors:x=Yt((l=n.errors)===null||l===void 0?void 0:l.call(n)),extra:c=(f=n.extra)===null||f===void 0?void 0:f.call(n)}=e,$=`${v}-item`,m=d||(i==null?void 0:i.value)||{},F=fe(`${$}-control`,m.class);return L(qn,B(B({},m),{},{class:F}),{default:()=>{var s;return L(qe,null,[L("div",{class:`${$}-control-input`},[L("div",{class:`${$}-control-input-content`},[(s=n.default)===null||s===void 0?void 0:s.call(n)])]),g!==null||x.length?L("div",{style:{display:"flex",flexWrap:"nowrap"}},[L(sl,{errors:x,help:b,class:`${$}-explain-connected`,onErrorVisibleChanged:y},null),!!g&&L("div",{style:{width:0,height:`${g}px`}},null)]):null,c?L("div",{class:`${$}-extra`},[c]):null])}})}}});function fl(e){const t=te(e.value.slice());let n=null;return ze(()=>{clearTimeout(n),n=setTimeout(()=>{t.value=e.value},e.value.length?0:10)}),t}lt("success","warning","error","validating","");const cl={success:Qn,warning:Yn,error:Kn,validating:Xn};function Be(e,t,n){let r=e;const i=t;let a=0;try{for(let o=i.length;a({htmlFor:String,prefixCls:String,label:he.any,help:he.any,extra:he.any,labelCol:{type:Object},wrapperCol:{type:Object},hasFeedback:{type:Boolean,default:!1},colon:{type:Boolean,default:void 0},labelAlign:String,prop:{type:[String,Number,Array]},name:{type:[String,Number,Array]},rules:[Array,Object],autoLink:{type:Boolean,default:!0},required:{type:Boolean,default:void 0},validateFirst:{type:Boolean,default:void 0},validateStatus:he.oneOf(lt("","success","warning","error","validating")),validateTrigger:{type:[String,Array]},messageVariables:{type:Object},hidden:Boolean,noStyle:Boolean,tooltip:String});let ml=0;const gl="form_item",hl=ve({compatConfig:{MODE:3},name:"AFormItem",inheritAttrs:!1,__ANT_NEW_FORM_ITEM:!0,props:dl(),slots:Object,setup(e,t){let{slots:n,attrs:r,expose:i}=t;hr(e.prop===void 0);const a=`form-item-${++ml}`,{prefixCls:o}=Le("form",e),[l,f]=pt(o),v=te(),d=gt(),g=C(()=>e.name||e.prop),y=te([]),b=te(!1),x=te(),c=C(()=>{const w=g.value;return tt(w)}),$=C(()=>{if(c.value.length){const w=d.name.value,P=c.value.join("_");return w?`${w}_${P}`:`${gl}_${P}`}else return}),m=()=>{const w=d.model.value;if(!(!w||!g.value))return Be(w,c.value,!0).v},F=C(()=>m()),s=te(je(F.value)),u=C(()=>{let w=e.validateTrigger!==void 0?e.validateTrigger:d.validateTrigger.value;return w=w===void 0?"change":w,ae(w)}),h=C(()=>{let w=d.rules.value;const P=e.rules,V=e.required!==void 0?{required:!!e.required,trigger:u.value}:[],W=Be(w,c.value);w=w?W.o[W.k]||W.v:[];const G=[].concat(P||w||[]);return qa(G,Y=>Y.required)?G:G.concat(V)}),p=C(()=>{const w=h.value;let P=!1;return w&&w.length&&w.every(V=>V.required?(P=!0,!1):!0),P||e.required}),S=te();ze(()=>{S.value=e.validateStatus});const O=C(()=>{let w={};return typeof e.label=="string"?w.label=e.label:e.name&&(w.label=String(e.name)),e.messageVariables&&(w=T(T({},w),e.messageVariables)),w}),j=w=>{if(c.value.length===0)return;const{validateFirst:P=!1}=e,{triggerName:V}=w||{};let W=h.value;if(V&&(W=W.filter(Y=>{const{trigger:ne}=Y;return!ne&&!u.value.length?!0:ae(ne||u.value).includes(V)})),!W.length)return Promise.resolve();const G=In(c.value,F.value,W,T({validateMessages:d.validateMessages.value},w),P,O.value);return S.value="validating",y.value=[],G.catch(Y=>Y).then(function(){let Y=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];if(S.value==="validating"){const ne=Y.filter(re=>re&&re.errors.length);S.value=ne.length?"error":"success",y.value=ne.map(re=>re.errors),d.onValidate(g.value,!y.value.length,y.value.length?Ue(y.value[0]):null)}}),G},q=()=>{j({triggerName:"blur"})},R=()=>{if(b.value){b.value=!1;return}j({triggerName:"change"})},_=()=>{S.value=e.validateStatus,b.value=!1,y.value=[]},E=()=>{var w;S.value=e.validateStatus,b.value=!0,y.value=[];const P=d.model.value||{},V=F.value,W=Be(P,c.value,!0);Array.isArray(V)?W.o[W.k]=[].concat((w=s.value)!==null&&w!==void 0?w:[]):W.o[W.k]=s.value,Qt(()=>{b.value=!1})},H=C(()=>e.htmlFor===void 0?$.value:e.htmlFor),Q=()=>{const w=H.value;if(!w||!x.value)return;const P=x.value.$el.querySelector(`[id="${w}"]`);P&&P.focus&&P.focus()};i({onFieldBlur:q,onFieldChange:R,clearValidate:_,resetField:E}),Sr({id:$,onFieldBlur:()=>{e.autoLink&&q()},onFieldChange:()=>{e.autoLink&&R()},clearValidate:_},C(()=>!!(e.autoLink&&d.model.value&&g.value)));let X=!1;ue(g,w=>{w?X||(X=!0,d.addField(a,{fieldValue:F,fieldId:$,fieldName:g,resetField:E,clearValidate:_,namePath:c,validateRules:j,rules:h})):(X=!1,d.removeField(a))},{immediate:!0}),Xt(()=>{d.removeField(a)});const A=fl(y),I=C(()=>e.validateStatus!==void 0?e.validateStatus:A.value.length?"error":S.value),N=C(()=>({[`${o.value}-item`]:!0,[f.value]:!0,[`${o.value}-item-has-feedback`]:I.value&&e.hasFeedback,[`${o.value}-item-has-success`]:I.value==="success",[`${o.value}-item-has-warning`]:I.value==="warning",[`${o.value}-item-has-error`]:I.value==="error",[`${o.value}-item-is-validating`]:I.value==="validating",[`${o.value}-item-hidden`]:e.hidden})),z=Zt({});Or.useProvide(z),ze(()=>{let w;if(e.hasFeedback){const P=I.value&&cl[I.value];w=P?L("span",{class:fe(`${o.value}-item-feedback-icon`,`${o.value}-item-feedback-icon-${I.value}`)},[L(P,null,null)]):null}T(z,{status:I.value,hasFeedback:e.hasFeedback,feedbackIcon:w,isFormItemInput:!0})});const K=te(null),J=te(!1),ie=()=>{if(v.value){const w=getComputedStyle(v.value);K.value=parseInt(w.marginBottom,10)}};rt(()=>{ue(J,()=>{J.value&&ie()},{flush:"post",immediate:!0})});const Z=w=>{w||(K.value=null)};return()=>{var w,P;if(e.noStyle)return(w=n.default)===null||w===void 0?void 0:w.call(n);const V=(P=e.help)!==null&&P!==void 0?P:n.help?Yt(n.help()):null,W=!!(V!=null&&Array.isArray(V)&&V.length||A.value.length);return J.value=W,l(L("div",{class:[N.value,W?`${o.value}-item-with-help`:"",r.class],ref:v},[L(ro,B(B({},r),{},{class:`${o.value}-item-row`,key:"row"}),{default:()=>{var G,Y;return L(qe,null,[L(vt,B(B({},e),{},{htmlFor:H.value,required:p.value,requiredMark:d.requiredMark.value,prefixCls:o.value,onClick:Q,label:e.label}),{label:n.label,tooltip:n.tooltip}),L(ul,B(B({},e),{},{errors:V!=null?ae(V):A.value,marginBottom:K.value,prefixCls:o.value,status:I.value,ref:x,help:V,extra:(G=e.extra)!==null&&G!==void 0?G:(Y=n.extra)===null||Y===void 0?void 0:Y.call(n),onErrorVisibleChanged:Z}),{default:n.default})])}}),!!K.value&&L("div",{class:`${o.value}-margin-offset`,style:{marginBottom:`-${K.value}px`}},null)]))}}});function Mn(e){let t=!1,n=e.length;const r=[];return e.length?new Promise((i,a)=>{e.forEach((o,l)=>{o.catch(f=>(t=!0,f)).then(f=>{n-=1,r[l]=f,!(n>0)&&(t&&a(r),i(r))})})}):Promise.resolve([])}function Ht(e){let t=!1;return e&&e.length&&e.every(n=>n.required?(t=!0,!1):!0),t}function zt(e){return e==null?[]:Array.isArray(e)?e:[e]}function He(e,t,n){let r=e;t=t.replace(/\[(\w+)\]/g,".$1"),t=t.replace(/^\./,"");const i=t.split(".");let a=0;for(let o=i.length;a1&&arguments[1]!==void 0?arguments[1]:Fe({}),n=arguments.length>2?arguments[2]:void 0;const r=je(oe(e)),i=Zt({}),a=te([]),o=s=>{T(oe(e),T(T({},je(r)),s)),Qt(()=>{Object.keys(i).forEach(u=>{i[u]={autoLink:!1,required:Ht(oe(t)[u])}})})},l=function(){let s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],u=arguments.length>1?arguments[1]:void 0;return u.length?s.filter(h=>{const p=zt(h.trigger||"change");return Ra(p,u).length}):s};let f=null;const v=function(s){let u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},h=arguments.length>2?arguments[2]:void 0;const p=[],S={};for(let q=0;q({name:R,errors:[],warnings:[]})).catch(H=>{const Q=[],X=[];return H.forEach(A=>{let{rule:{warningOnly:I},errors:N}=A;I?X.push(...N):Q.push(...N)}),Q.length?Promise.reject({name:R,errors:Q,warnings:X}):{name:R,errors:Q,warnings:X}}))}const O=Mn(p);f=O;const j=O.then(()=>f===O?Promise.resolve(S):Promise.reject([])).catch(q=>{const R=q.filter(_=>_&&_.errors.length);return R.length?Promise.reject({values:S,errorFields:R,outOfDate:f!==O}):Promise.resolve(S)});return j.catch(q=>q),j},d=function(s,u,h){let p=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const S=In([s],u,h,T({validateMessages:Ne},p),!!p.validateFirst);return i[s]?(i[s].validateStatus="validating",S.catch(O=>O).then(function(){let O=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];var j;if(i[s].validateStatus==="validating"){const q=O.filter(R=>R&&R.errors.length);i[s].validateStatus=q.length?"error":"success",i[s].help=q.length?q.map(R=>R.errors):null,(j=n==null?void 0:n.onValidate)===null||j===void 0||j.call(n,s,!q.length,q.length?Ue(i[s].help[0]):null)}}),S):S.catch(O=>O)},g=(s,u)=>{let h=[],p=!0;s?Array.isArray(s)?h=s:h=[s]:(p=!1,h=a.value);const S=v(h,u||{},p);return S.catch(O=>O),S},y=s=>{let u=[];s?Array.isArray(s)?u=s:u=[s]:u=a.value,u.forEach(h=>{i[h]&&T(i[h],{validateStatus:"",help:null})})},b=s=>{const u={autoLink:!1},h=[],p=Array.isArray(s)?s:[s];for(let S=0;S{const u=[];a.value.forEach(h=>{const p=He(s,h,!1),S=He(x,h,!1);(c&&(n==null?void 0:n.immediate)&&p.isValid||!tn(p.v,S.v))&&u.push(h)}),g(u,{trigger:"change"}),c=!1,x=je(Ue(s))},m=n==null?void 0:n.debounce;let F=!0;return ue(t,()=>{a.value=t?Object.keys(oe(t)):[],!F&&n&&n.validateOnRuleChange&&g(),F=!1},{deep:!0,immediate:!0}),ue(a,()=>{const s={};a.value.forEach(u=>{s[u]=T({},i[u],{autoLink:!1,required:Ht(oe(t)[u])}),delete i[u]});for(const u in i)Object.prototype.hasOwnProperty.call(i,u)&&delete i[u];T(i,s)},{immediate:!0}),ue(e,m&&m.wait?Ca($,m.wait,Ua(m,["wait"])):$,{immediate:n&&!!n.immediate,deep:!0}),{modelRef:e,rulesRef:t,initialModel:r,validateInfos:i,resetFields:o,validate:g,validateField:d,mergeValidateInfo:b,clearValidate:y}}const pl=()=>({layout:he.oneOf(lt("horizontal","inline","vertical")),labelCol:Ce(),wrapperCol:Ce(),colon:ye(),labelAlign:yt(),labelWrap:ye(),prefixCls:String,requiredMark:$e([String,Boolean]),hideRequiredMark:ye(),model:he.object,rules:Ce(),validateMessages:Ce(),validateOnRuleChange:ye(),scrollToFirstError:Jn(),onSubmit:de(),name:String,validateTrigger:$e([String,Array]),size:yt(),disabled:ye(),onValuesChange:de(),onFieldsChange:de(),onFinish:de(),onFinishFailed:de(),onValidate:de()});function yl(e,t){return tn(ae(e),ae(t))}const le=ve({compatConfig:{MODE:3},name:"AForm",inheritAttrs:!1,props:vr(pl(),{layout:"horizontal",hideRequiredMark:!1,colon:!0}),Item:hl,useForm:vl,setup(e,t){let{emit:n,slots:r,expose:i,attrs:a}=t;const{prefixCls:o,direction:l,form:f,size:v,disabled:d}=Le("form",e),g=C(()=>e.requiredMark===""||e.requiredMark),y=C(()=>{var A;return g.value!==void 0?g.value:f&&((A=f.value)===null||A===void 0?void 0:A.requiredMark)!==void 0?f.value.requiredMark:!e.hideRequiredMark});kn(v),er(d);const b=C(()=>{var A,I;return(A=e.colon)!==null&&A!==void 0?A:(I=f.value)===null||I===void 0?void 0:I.colon}),{validateMessages:x}=Zn(),c=C(()=>T(T(T({},Ne),x.value),e.validateMessages)),[$,m]=pt(o),F=C(()=>fe(o.value,{[`${o.value}-${e.layout}`]:!0,[`${o.value}-hide-required-mark`]:y.value===!1,[`${o.value}-rtl`]:l.value==="rtl",[`${o.value}-${v.value}`]:v.value},m.value)),s=Fe(),u={},h=(A,I)=>{u[A]=I},p=A=>{delete u[A]},S=A=>{const I=!!A,N=I?ae(A).map(tt):[];return I?Object.values(u).filter(z=>N.findIndex(K=>yl(K,z.fieldName.value))>-1):Object.values(u)},O=A=>{e.model&&S(A).forEach(I=>{I.resetField()})},j=A=>{S(A).forEach(I=>{I.clearValidate()})},q=A=>{const{scrollToFirstError:I}=e;if(n("finishFailed",A),I&&A.errorFields.length){let N={};typeof I=="object"&&(N=I),_(A.errorFields[0].name,N)}},R=function(){return Q(...arguments)},_=function(A){let I=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const N=S(A?[A]:void 0);if(N.length){const z=N[0].fieldId.value,K=z?document.getElementById(z):null;K&&Ir(K,T({scrollMode:"if-needed",block:"nearest"},I))}},E=function(){let A=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;if(A===!0){const I=[];return Object.values(u).forEach(N=>{let{namePath:z}=N;I.push(z.value)}),Wt(e.model,I)}else return Wt(e.model,A)},H=(A,I)=>{if(!e.model)return Promise.reject("Form `model` is required for validateFields to work.");const N=!!A,z=N?ae(A).map(tt):[],K=[];Object.values(u).forEach(Z=>{var w;if(N||z.push(Z.namePath.value),!(!((w=Z.rules)===null||w===void 0)&&w.value.length))return;const P=Z.namePath.value;if(!N||Do(z,P)){const V=Z.validateRules(T({validateMessages:c.value},I));K.push(V.then(()=>({name:P,errors:[],warnings:[]})).catch(W=>{const G=[],Y=[];return W.forEach(ne=>{let{rule:{warningOnly:re},errors:pe}=ne;re?Y.push(...pe):G.push(...pe)}),G.length?Promise.reject({name:P,errors:G,warnings:Y}):{name:P,errors:G,warnings:Y}}))}});const J=Mn(K);s.value=J;const ie=J.then(()=>s.value===J?Promise.resolve(E(z)):Promise.reject([])).catch(Z=>{const w=Z.filter(P=>P&&P.errors.length);return Promise.reject({values:E(z),errorFields:w,outOfDate:s.value!==J})});return ie.catch(Z=>Z),ie},Q=function(){return H(...arguments)},X=A=>{A.preventDefault(),A.stopPropagation(),n("submit",A),e.model&&H().then(N=>{n("finish",N)}).catch(N=>{q(N)})};return i({resetFields:O,clearValidate:j,validateFields:H,getFieldsValue:E,validate:R,scrollToField:_}),jn({model:C(()=>e.model),name:C(()=>e.name),labelAlign:C(()=>e.labelAlign),labelCol:C(()=>e.labelCol),labelWrap:C(()=>e.labelWrap),wrapperCol:C(()=>e.wrapperCol),vertical:C(()=>e.layout==="vertical"),colon:b,requiredMark:y,validateTrigger:C(()=>e.validateTrigger),rules:C(()=>e.rules),addField:h,removeField:p,onValidate:(A,I,N)=>{n("validate",A,I,N)},validateMessages:c}),ue(()=>e.rules,()=>{e.validateOnRuleChange&&H()}),()=>{var A;return $(L("form",B(B({},a),{},{onSubmit:X,class:[F.value,a.class]}),[(A=r.default)===null||A===void 0?void 0:A.call(r)]))}}});le.useInjectFormItemContext=Ar;le.ItemRest=Xe;le.install=function(e){return e.component(le.name,le),e.component(le.Item.name,le.Item),e.component(Xe.name,Xe),e};export{ro as A,qn as C,le as F,hl as _,Fn as b,Ca as d,Xa as u}; diff --git a/src/agentkit/server/static/assets/index-Ci55MVrK.js b/src/agentkit/server/static/assets/index-Ci55MVrK.js new file mode 100644 index 0000000..62e9176 --- /dev/null +++ b/src/agentkit/server/static/assets/index-Ci55MVrK.js @@ -0,0 +1,141 @@ +const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/AgentLayout-BTmu8UQm.js","assets/chat-dMZvRo2f.js","assets/base-B4siOKZE.js","assets/_plugin-vue_export-helper-CBXJ7-XR.js","assets/zoom-C2fVs05p.js","assets/index-3crJqV8H.js","assets/SettingOutlined-CL42n2eQ.js","assets/index-D6JhFblJ.js","assets/FormItemContext-D_7H_KA_.js","assets/index-Dr_Qcbdk.js","assets/ChatView-BQlsnIIs.js","assets/LeftOutlined-CXpCfAZF.js","assets/FolderOpenOutlined-DV9WKc_3.js","assets/responsiveObserve-CDxZiPRN.js","assets/index-BMkziFFN.js","assets/UserOutlined-BMs4GNfR.js","assets/index-yRXoO2C0.js","assets/index-DaJ9bCD1.js","assets/styleChecker-CUnokkun.js","assets/ChatView-D21rRrKq.css","assets/TerminalView-BibxhXp4.js","assets/index-CuVGmFKn.js","assets/pickAttrs-Crnv5AEc.js","assets/index-CKNOcsSD.js","assets/Checkbox-C1b034xJ.js","assets/TerminalView-C8cu2qRi.css","assets/WorkflowView-D3Pe6eXM.js","assets/index-CzM1ezFC.js","assets/index-Cec7QIaL.js","assets/Dropdown-BUKifQVF.js","assets/index-B5q-1V92.js","assets/DeleteOutlined-BPP2kbR8.js","assets/index-DBR_iMr9.js","assets/index-Da8dBU05.js","assets/WorkflowView-D_CnUZD8.css","assets/KnowledgeBaseView-DM5c3M3U.js","assets/index-BLB5C8KY.js","assets/index-DJ0mAqy8.js","assets/KnowledgeBaseView-B7BP9eFg.css","assets/EvolutionView-BhOD-ngQ.js","assets/index-CIzBtwkp.js","assets/EvolutionView-DokvaL7M.css","assets/SkillsView-q_2-8csR.js","assets/AppstoreOutlined-BuRUmkq3.js","assets/index-CIdKTsyN.js","assets/SkillsView-C1h55c-o.css","assets/SettingsView-C1a5n3Uj.js","assets/SettingsView-DU8lFOKb.css","assets/DesktopOutlined-CoQCwQyg.js","assets/AgentLayout-4LUhAboc.css","assets/ComputerUseView-CNxrLPiM.js","assets/ComputerUseView-DLnWxFj5.css","assets/AppLayout-ChVEHFqE.js","assets/AppLayout-D3vb9nEe.css"])))=>i.map(i=>d[i]); +(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const i of o)if(i.type==="childList")for(const s of i.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&r(s)}).observe(document,{childList:!0,subtree:!0});function n(o){const i={};return o.integrity&&(i.integrity=o.integrity),o.referrerPolicy&&(i.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?i.credentials="include":o.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(o){if(o.ep)return;o.ep=!0;const i=n(o);fetch(o.href,i)}})();/** +* @vue/shared v3.5.38 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**/function ys(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const de={},Ln=[],$t=()=>{},gc=()=>!1,Mo=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),No=e=>e.startsWith("onUpdate:"),xe=Object.assign,bs=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},Ld=Object.prototype.hasOwnProperty,le=(e,t)=>Ld.call(e,t),Y=Array.isArray,Dn=e=>Gr(e)==="[object Map]",mc=e=>Gr(e)==="[object Set]",pa=e=>Gr(e)==="[object Date]",ee=e=>typeof e=="function",he=e=>typeof e=="string",tt=e=>typeof e=="symbol",se=e=>e!==null&&typeof e=="object",vc=e=>(se(e)||ee(e))&&ee(e.then)&&ee(e.catch),yc=Object.prototype.toString,Gr=e=>yc.call(e),Dd=e=>Gr(e).slice(8,-1),bc=e=>Gr(e)==="[object Object]",ko=e=>he(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,xr=ys(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),jo=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},Fd=/-\w/g,Be=jo(e=>e.replace(Fd,t=>t.slice(1).toUpperCase())),Hd=/\B([A-Z])/g,rn=jo(e=>e.replace(Hd,"-$1").toLowerCase()),Lo=jo(e=>e.charAt(0).toUpperCase()+e.slice(1)),si=jo(e=>e?`on${Lo(e)}`:""),ft=(e,t)=>!Object.is(e,t),lo=(e,...t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:r,value:n})},Cs=e=>{const t=parseFloat(e);return isNaN(t)?e:t},Bd=e=>{const t=he(e)?Number(e):NaN;return isNaN(t)?e:t};let ha;const Do=()=>ha||(ha=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function xs(e){if(Y(e)){const t={};for(let n=0;n{if(n){const r=n.split(Vd);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function _s(e){let t="";if(he(e))t=e;else if(Y(e))for(let n=0;n!!(e&&e.__v_isRef===!0),Xd=e=>he(e)?e:e==null?"":Y(e)||se(e)&&(e.toString===yc||!ee(e.toString))?_c(e)?Xd(e.value):JSON.stringify(e,Sc,2):String(e),Sc=(e,t)=>_c(t)?Sc(e,t.value):Dn(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[r,o],i)=>(n[ai(r,i)+" =>"]=o,n),{})}:mc(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>ai(n))}:tt(t)?ai(t):se(t)&&!Y(t)&&!bc(t)?String(t):t,ai=(e,t="")=>{var n;return tt(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};/** +* @vue/reactivity v3.5.38 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**/let we;class wc{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this._warnOnRun=!0,this.__v_skip=!0,!t&&we&&(we.active?(this.parent=we,this.index=(we.scopes||(we.scopes=[])).push(this)-1):(this._active=!1,this._warnOnRun=!1))}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t0&&--this._on===0){if(we===this)we=this.prevScope;else{let t=we;for(;t;){if(t.prevScope===this){t.prevScope=this.prevScope;break}t=t.prevScope}}this.prevScope=void 0}}stop(t){if(this._active){this._active=!1;let n,r;for(n=0,r=this.effects.length;n0)return;if(Sr){let t=Sr;for(Sr=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;_r;){let t=_r;for(_r=void 0;t;){const n=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(r){e||(e=r)}t=n}}if(e)throw e}function $c(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function Ic(e){let t,n=e.depsTail,r=n;for(;r;){const o=r.prevDep;r.version===-1?(r===n&&(n=o),Ps(r),Qd(r)):t=r,r.dep.activeLink=r.prevActiveLink,r.prevActiveLink=void 0,r=o}e.deps=t,e.depsTail=n}function ki(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(Rc(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function Rc(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===Mr)||(e.globalVersion=Mr,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!ki(e))))return;e.flags|=2;const t=e.dep,n=pe,r=dt;pe=e,dt=!0;try{$c(e);const o=e.fn(e._value);(t.version===0||ft(o,e._value))&&(e.flags|=128,e._value=o,t.version++)}catch(o){throw t.version++,o}finally{pe=n,dt=r,Ic(e),e.flags&=-3}}function Ps(e,t=!1){const{dep:n,prevSub:r,nextSub:o}=e;if(r&&(r.nextSub=o,e.prevSub=void 0),o&&(o.prevSub=r,e.nextSub=void 0),n.subs===e&&(n.subs=r,!r&&n.computed)){n.computed.flags&=-5;for(let i=n.computed.deps;i;i=i.nextDep)Ps(i,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function Qd(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let dt=!0;const Mc=[];function Bt(){Mc.push(dt),dt=!1}function zt(){const e=Mc.pop();dt=e===void 0?!0:e}function ga(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=pe;pe=void 0;try{t()}finally{pe=n}}}let Mr=0;class Jd{constructor(t,n){this.sub=t,this.dep=n,this.version=n.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class Fo{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(t){if(!pe||!dt||pe===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==pe)n=this.activeLink=new Jd(pe,this),pe.deps?(n.prevDep=pe.depsTail,pe.depsTail.nextDep=n,pe.depsTail=n):pe.deps=pe.depsTail=n,Nc(n);else if(n.version===-1&&(n.version=this.version,n.nextDep)){const r=n.nextDep;r.prevDep=n.prevDep,n.prevDep&&(n.prevDep.nextDep=r),n.prevDep=pe.depsTail,n.nextDep=void 0,pe.depsTail.nextDep=n,pe.depsTail=n,pe.deps===n&&(pe.deps=r)}return n}trigger(t){this.version++,Mr++,this.notify(t)}notify(t){ws();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{Es()}}}function Nc(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let r=t.deps;r;r=r.nextDep)Nc(r)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}const vo=new WeakMap,vn=Symbol(""),ji=Symbol(""),Nr=Symbol("");function Re(e,t,n){if(dt&&pe){let r=vo.get(e);r||vo.set(e,r=new Map);let o=r.get(n);o||(r.set(n,o=new Fo),o.map=r,o.key=n),o.track()}}function Dt(e,t,n,r,o,i){const s=vo.get(e);if(!s){Mr++;return}const a=l=>{l&&l.trigger()};if(ws(),t==="clear")s.forEach(a);else{const l=Y(e),c=l&&ko(n);if(l&&n==="length"){const u=Number(r);s.forEach((f,d)=>{(d==="length"||d===Nr||!tt(d)&&d>=u)&&a(f)})}else switch((n!==void 0||s.has(void 0))&&a(s.get(n)),c&&a(s.get(Nr)),t){case"add":l?c&&a(s.get("length")):(a(s.get(vn)),Dn(e)&&a(s.get(ji)));break;case"delete":l||(a(s.get(vn)),Dn(e)&&a(s.get(ji)));break;case"set":Dn(e)&&a(s.get(vn));break}}Es()}function Zd(e,t){const n=vo.get(e);return n&&n.get(t)}function An(e){const t=re(e);return t===e?t:(Re(t,"iterate",Nr),Ze(e)?t:t.map(mt))}function Ho(e){return Re(e=re(e),"iterate",Nr),e}function Tt(e,t){return Vt(e)?Wn(Ht(e)?mt(t):t):mt(t)}const ep={__proto__:null,[Symbol.iterator](){return ci(this,Symbol.iterator,e=>Tt(this,e))},concat(...e){return An(this).concat(...e.map(t=>Y(t)?An(t):t))},entries(){return ci(this,"entries",e=>(e[1]=Tt(this,e[1]),e))},every(e,t){return Rt(this,"every",e,t,void 0,arguments)},filter(e,t){return Rt(this,"filter",e,t,n=>n.map(r=>Tt(this,r)),arguments)},find(e,t){return Rt(this,"find",e,t,n=>Tt(this,n),arguments)},findIndex(e,t){return Rt(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return Rt(this,"findLast",e,t,n=>Tt(this,n),arguments)},findLastIndex(e,t){return Rt(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return Rt(this,"forEach",e,t,void 0,arguments)},includes(...e){return ui(this,"includes",e)},indexOf(...e){return ui(this,"indexOf",e)},join(e){return An(this).join(e)},lastIndexOf(...e){return ui(this,"lastIndexOf",e)},map(e,t){return Rt(this,"map",e,t,void 0,arguments)},pop(){return ur(this,"pop")},push(...e){return ur(this,"push",e)},reduce(e,...t){return ma(this,"reduce",e,t)},reduceRight(e,...t){return ma(this,"reduceRight",e,t)},shift(){return ur(this,"shift")},some(e,t){return Rt(this,"some",e,t,void 0,arguments)},splice(...e){return ur(this,"splice",e)},toReversed(){return An(this).toReversed()},toSorted(e){return An(this).toSorted(e)},toSpliced(...e){return An(this).toSpliced(...e)},unshift(...e){return ur(this,"unshift",e)},values(){return ci(this,"values",e=>Tt(this,e))}};function ci(e,t,n){const r=Ho(e),o=r[t]();return r!==e&&!Ze(e)&&(o._next=o.next,o.next=()=>{const i=o._next();return i.done||(i.value=n(i.value)),i}),o}const tp=Array.prototype;function Rt(e,t,n,r,o,i){const s=Ho(e),a=s!==e&&!Ze(e),l=s[t];if(l!==tp[t]){const f=l.apply(e,i);return a?mt(f):f}let c=n;s!==e&&(a?c=function(f,d){return n.call(this,Tt(e,f),d,e)}:n.length>2&&(c=function(f,d){return n.call(this,f,d,e)}));const u=l.call(s,c,r);return a&&o?o(u):u}function ma(e,t,n,r){const o=Ho(e),i=o!==e&&!Ze(e);let s=n,a=!1;o!==e&&(i?(a=r.length===0,s=function(c,u,f){return a&&(a=!1,c=Tt(e,c)),n.call(this,c,Tt(e,u),f,e)}):n.length>3&&(s=function(c,u,f){return n.call(this,c,u,f,e)}));const l=o[t](s,...r);return a?Tt(e,l):l}function ui(e,t,n){const r=re(e);Re(r,"iterate",Nr);const o=r[t](...n);return(o===-1||o===!1)&&Bo(n[0])?(n[0]=re(n[0]),r[t](...n)):o}function ur(e,t,n=[]){Bt(),ws();const r=re(e)[t].apply(e,n);return Es(),zt(),r}const np=ys("__proto__,__v_isRef,__isVue"),kc=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(tt));function rp(e){tt(e)||(e=String(e));const t=re(this);return Re(t,"has",e),t.hasOwnProperty(e)}class jc{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,r){if(n==="__v_skip")return t.__v_skip;const o=this._isReadonly,i=this._isShallow;if(n==="__v_isReactive")return!o;if(n==="__v_isReadonly")return o;if(n==="__v_isShallow")return i;if(n==="__v_raw")return r===(o?i?pp:Hc:i?Fc:Dc).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(r)?t:void 0;const s=Y(t);if(!o){let l;if(s&&(l=ep[n]))return l;if(n==="hasOwnProperty")return rp}const a=Reflect.get(t,n,ge(t)?t:r);if((tt(n)?kc.has(n):np(n))||(o||Re(t,"get",n),i))return a;if(ge(a)){const l=s&&ko(n)?a:a.value;return o&&se(l)?Di(l):l}return se(a)?o?Di(a):gt(a):a}}class Lc extends jc{constructor(t=!1){super(!1,t)}set(t,n,r,o){let i=t[n];const s=Y(t)&&ko(n);if(!this._isShallow){const c=Vt(i);if(!Ze(r)&&!Vt(r)&&(i=re(i),r=re(r)),!s&&ge(i)&&!ge(r))return c||(i.value=r),!0}const a=s?Number(n)e,Jr=e=>Reflect.getPrototypeOf(e);function lp(e,t,n){return function(...r){const o=this.__v_raw,i=re(o),s=Dn(i),a=e==="entries"||e===Symbol.iterator&&s,l=e==="keys"&&s,c=o[e](...r),u=n?Li:t?Wn:mt;return!t&&Re(i,"iterate",l?ji:vn),xe(Object.create(c),{next(){const{value:f,done:d}=c.next();return d?{value:f,done:d}:{value:a?[u(f[0]),u(f[1])]:u(f),done:d}}})}}function Zr(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function cp(e,t){const n={get(o){const i=this.__v_raw,s=re(i),a=re(o);e||(ft(o,a)&&Re(s,"get",o),Re(s,"get",a));const{has:l}=Jr(s),c=t?Li:e?Wn:mt;if(l.call(s,o))return c(i.get(o));if(l.call(s,a))return c(i.get(a));i!==s&&i.get(o)},get size(){const o=this.__v_raw;return!e&&Re(re(o),"iterate",vn),o.size},has(o){const i=this.__v_raw,s=re(i),a=re(o);return e||(ft(o,a)&&Re(s,"has",o),Re(s,"has",a)),o===a?i.has(o):i.has(o)||i.has(a)},forEach(o,i){const s=this,a=s.__v_raw,l=re(a),c=t?Li:e?Wn:mt;return!e&&Re(l,"iterate",vn),a.forEach((u,f)=>o.call(i,c(u),c(f),s))}};return xe(n,e?{add:Zr("add"),set:Zr("set"),delete:Zr("delete"),clear:Zr("clear")}:{add(o){const i=re(this),s=Jr(i),a=re(o),l=!t&&!Ze(o)&&!Vt(o)?a:o;return s.has.call(i,l)||ft(o,l)&&s.has.call(i,o)||ft(a,l)&&s.has.call(i,a)||(i.add(l),Dt(i,"add",l,l)),this},set(o,i){!t&&!Ze(i)&&!Vt(i)&&(i=re(i));const s=re(this),{has:a,get:l}=Jr(s);let c=a.call(s,o);c||(o=re(o),c=a.call(s,o));const u=l.call(s,o);return s.set(o,i),c?ft(i,u)&&Dt(s,"set",o,i):Dt(s,"add",o,i),this},delete(o){const i=re(this),{has:s,get:a}=Jr(i);let l=s.call(i,o);l||(o=re(o),l=s.call(i,o)),a&&a.call(i,o);const c=i.delete(o);return l&&Dt(i,"delete",o,void 0),c},clear(){const o=re(this),i=o.size!==0,s=o.clear();return i&&Dt(o,"clear",void 0,void 0),s}}),["keys","values","entries",Symbol.iterator].forEach(o=>{n[o]=lp(o,e,t)}),n}function Os(e,t){const n=cp(e,t);return(r,o,i)=>o==="__v_isReactive"?!e:o==="__v_isReadonly"?e:o==="__v_raw"?r:Reflect.get(le(n,o)&&o in r?n:r,o,i)}const up={get:Os(!1,!1)},fp={get:Os(!1,!0)},dp={get:Os(!0,!1)};const Dc=new WeakMap,Fc=new WeakMap,Hc=new WeakMap,pp=new WeakMap;function hp(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function gt(e){return Vt(e)?e:Ts(e,!1,ip,up,Dc)}function Bc(e){return Ts(e,!1,ap,fp,Fc)}function Di(e){return Ts(e,!0,sp,dp,Hc)}function Ts(e,t,n,r,o){if(!se(e)||e.__v_raw&&!(t&&e.__v_isReactive)||e.__v_skip||!Object.isExtensible(e))return e;const i=o.get(e);if(i)return i;const s=hp(Dd(e));if(s===0)return e;const a=new Proxy(e,s===2?r:n);return o.set(e,a),a}function Ht(e){return Vt(e)?Ht(e.__v_raw):!!(e&&e.__v_isReactive)}function Vt(e){return!!(e&&e.__v_isReadonly)}function Ze(e){return!!(e&&e.__v_isShallow)}function Bo(e){return e?!!e.__v_raw:!1}function re(e){const t=e&&e.__v_raw;return t?re(t):e}function As(e){return!le(e,"__v_skip")&&Object.isExtensible(e)&&Cc(e,"__v_skip",!0),e}const mt=e=>se(e)?gt(e):e,Wn=e=>se(e)?Di(e):e;function ge(e){return e?e.__v_isRef===!0:!1}function pt(e){return zc(e,!1)}function st(e){return zc(e,!0)}function zc(e,t){return ge(e)?e:new gp(e,t)}class gp{constructor(t,n){this.dep=new Fo,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:re(t),this._value=n?t:mt(t),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(t){const n=this._rawValue,r=this.__v_isShallow||Ze(t)||Vt(t);t=r?t:re(t),ft(t,n)&&(this._rawValue=t,this._value=r?t:mt(t),this.dep.trigger())}}function mp(e){e.dep&&e.dep.trigger()}function Ne(e){return ge(e)?e.value:e}function d1(e){return ee(e)?e():Ne(e)}const vp={get:(e,t,n)=>t==="__v_raw"?e:Ne(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const o=e[t];return ge(o)&&!ge(n)?(o.value=n,!0):Reflect.set(e,t,n,r)}};function Vc(e){return Ht(e)?e:new Proxy(e,vp)}class yp{constructor(t){this.__v_isRef=!0,this._value=void 0;const n=this.dep=new Fo,{get:r,set:o}=t(n.track.bind(n),n.trigger.bind(n));this._get=r,this._set=o}get value(){return this._value=this._get()}set value(t){this._set(t)}}function p1(e){return new yp(e)}function bp(e){const t=Y(e)?new Array(e.length):{};for(const n in e)t[n]=Gc(e,n);return t}class Cp{constructor(t,n,r){this._object=t,this._defaultValue=r,this.__v_isRef=!0,this._value=void 0,this._key=tt(n)?n:String(n),this._raw=re(t);let o=!0,i=t;if(!Y(t)||tt(this._key)||!ko(this._key))do o=!Bo(i)||Ze(i);while(o&&(i=i.__v_raw));this._shallow=o}get value(){let t=this._object[this._key];return this._shallow&&(t=Ne(t)),this._value=t===void 0?this._defaultValue:t}set value(t){if(this._shallow&&ge(this._raw[this._key])){const n=this._object[this._key];if(ge(n)){n.value=t;return}}this._object[this._key]=t}get dep(){return Zd(this._raw,this._key)}}class xp{constructor(t){this._getter=t,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0}get value(){return this._value=this._getter()}}function h1(e,t,n){return ge(e)?e:ee(e)?new xp(e):se(e)&&arguments.length>1?Gc(e,t,n):pt(e)}function Gc(e,t,n){return new Cp(e,t,n)}class _p{constructor(t,n,r){this.fn=t,this.setter=n,this._value=void 0,this.dep=new Fo(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Mr-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=r}notify(){if(this.flags|=16,!(this.flags&8)&&pe!==this)return Ac(this,!0),!0}get value(){const t=this.dep.track();return Rc(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function Sp(e,t,n=!1){let r,o;return ee(e)?r=e:(r=e.get,o=e.set),new _p(r,o,n)}const eo={},yo=new WeakMap;let un;function wp(e,t=!1,n=un){if(n){let r=yo.get(n);r||yo.set(n,r=[]),r.push(e)}}function Ep(e,t,n=de){const{immediate:r,deep:o,once:i,scheduler:s,augmentJob:a,call:l}=n,c=S=>o?S:Ze(S)||o===!1||o===0?Ft(S,1):Ft(S);let u,f,d,p,v=!1,m=!1;if(ge(e)?(f=()=>e.value,v=Ze(e)):Ht(e)?(f=()=>c(e),v=!0):Y(e)?(m=!0,v=e.some(S=>Ht(S)||Ze(S)),f=()=>e.map(S=>{if(ge(S))return S.value;if(Ht(S))return c(S);if(ee(S))return l?l(S,2):S()})):ee(e)?t?f=l?()=>l(e,2):e:f=()=>{if(d){Bt();try{d()}finally{zt()}}const S=un;un=u;try{return l?l(e,3,[p]):e(p)}finally{un=S}}:f=$t,t&&o){const S=f,$=o===!0?1/0:o;f=()=>Ft(S(),$)}const w=Pc(),x=()=>{u.stop(),w&&w.active&&bs(w.effects,u)};if(i&&t){const S=t;t=(...$)=>{const L=S(...$);return x(),L}}let C=m?new Array(e.length).fill(eo):eo;const E=S=>{if(!(!(u.flags&1)||!u.dirty&&!S))if(t){const $=u.run();if(S||o||v||(m?$.some((L,b)=>ft(L,C[b])):ft($,C))){d&&d();const L=un;un=u;try{const b=[$,C===eo?void 0:m&&C[0]===eo?[]:C,p];C=$,l?l(t,3,b):t(...b)}finally{un=L}}}else u.run()};return a&&a(E),u=new Oc(f),u.scheduler=s?()=>s(E,!1):E,p=S=>wp(S,!1,u),d=u.onStop=()=>{const S=yo.get(u);if(S){if(l)l(S,4);else for(const $ of S)$();yo.delete(u)}},t?r?E(!0):C=u.run():s?s(E.bind(null,!0),!0):u.run(),x.pause=u.pause.bind(u),x.resume=u.resume.bind(u),x.stop=x,x}function Ft(e,t=1/0,n){if(t<=0||!se(e)||e.__v_skip||(n=n||new Map,(n.get(e)||0)>=t))return e;if(n.set(e,t),t--,ge(e))Ft(e.value,t,n);else if(Y(e))for(let r=0;r{Ft(r,t,n)});else if(bc(e)){for(const r in e)Ft(e[r],t,n);for(const r of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,r)&&Ft(e[r],t,n)}return e}/** +* @vue/runtime-core v3.5.38 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**/function Wr(e,t,n,r){try{return r?e(...r):e()}catch(o){zo(o,t,n)}}function lt(e,t,n,r){if(ee(e)){const o=Wr(e,t,n,r);return o&&vc(o)&&o.catch(i=>{zo(i,t,n)}),o}if(Y(e)){const o=[];for(let i=0;i>>1,o=De[r],i=kr(o);i=kr(n)?De.push(e):De.splice(Op(t),0,e),e.flags|=1,Uc()}}function Uc(){bo||(bo=Wc.then(qc))}function Tp(e){Y(e)?Fn.push(...e):Jt&&e.id===-1?Jt.splice(In+1,0,e):e.flags&1||(Fn.push(e),e.flags|=1),Uc()}function va(e,t,n=Pt+1){for(;nkr(n)-kr(r));if(Fn.length=0,Jt){Jt.push(...t);return}for(Jt=t,In=0;Ine.id==null?e.flags&2?-1:1/0:e.id;function qc(e){try{for(Pt=0;Pt{r._d&&wo(-1);const i=Co(t);let s;try{s=e(...o)}finally{Co(i),r._d&&wo(1)}return s};return r._n=!0,r._c=!0,r._d=!0,r}function g1(e,t){if(Oe===null)return e;const n=Ko(Oe),r=e.dirs||(e.dirs=[]);for(let o=0;o1)return n&&ee(t)?t.call(r&&r.proxy):t}}function Ap(){return!!(En()||yn)}const $p=Symbol.for("v-scx"),Ip=()=>me($p);function Vo(e,t){return Is(e,null,t)}function We(e,t,n){return Is(e,t,n)}function Is(e,t,n=de){const{immediate:r,deep:o,flush:i,once:s}=n,a=xe({},n),l=t&&r||!t&&i!=="post";let c;if(Lr){if(i==="sync"){const p=Ip();c=p.__watcherHandles||(p.__watcherHandles=[])}else if(!l){const p=()=>{};return p.stop=$t,p.resume=$t,p.pause=$t,p}}const u=Me;a.call=(p,v,m)=>lt(p,u,v,m);let f=!1;i==="post"?a.scheduler=p=>{je(p,u&&u.suspense)}:i!=="sync"&&(f=!0,a.scheduler=(p,v)=>{v?p():$s(p)}),a.augmentJob=p=>{t&&(p.flags|=4),f&&(p.flags|=2,u&&(p.id=u.uid,p.i=u))};const d=Ep(e,t,a);return Lr&&(c?c.push(d):l&&d()),d}function Rp(e,t,n){const r=this.proxy,o=he(e)?e.includes(".")?Qc(r,e):()=>r[e]:e.bind(r,r);let i;ee(t)?i=t:(i=t.handler,n=t);const s=Xr(this),a=Is(o,i.bind(r),n);return s(),a}function Qc(e,t){const n=t.split(".");return()=>{let r=e;for(let o=0;oe.__isTeleport,fn=e=>e&&(e.disabled||e.disabled===""),Mp=e=>e&&(e.defer||e.defer===""),ya=e=>typeof SVGElement<"u"&&e instanceof SVGElement,ba=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,Fi=(e,t)=>{const n=e&&e.to;return he(n)?t?t(n):null:n},Np={name:"Teleport",__isTeleport:!0,process(e,t,n,r,o,i,s,a,l,c){const{mc:u,pc:f,pbc:d,o:{insert:p,querySelector:v,createText:m,createComment:w,parentNode:x}}=c,C=fn(t.props);let{dynamicChildren:E}=t;const S=(b,_,P)=>{b.shapeFlag&16&&u(b.children,_,P,o,i,s,a,l)},$=(b=t)=>{const _=fn(b.props),P=b.target=Fi(b.props,v),U=Hi(P,b,m,p);P&&(s!=="svg"&&ya(P)?s="svg":s!=="mathml"&&ba(P)&&(s="mathml"),o&&o.isCE&&(o.ce._teleportTargets||(o.ce._teleportTargets=new Set)).add(P),_||(S(b,P,U),vr(b,!1)))},L=b=>{const _=()=>{if(Xt.get(b)===_){if(Xt.delete(b),fn(b.props)){const P=x(b.el)||n;S(b,P,b.anchor),vr(b,!0)}$(b)}};Xt.set(b,_),je(_,i)};if(e==null){const b=t.el=m(""),_=t.anchor=m("");if(p(b,n,r),p(_,n,r),Mp(t.props)||i&&i.pendingBranch){L(t);return}C&&(S(t,n,_),vr(t,!0)),$()}else{t.el=e.el;const b=t.anchor=e.anchor,_=Xt.get(e);if(_){_.flags|=8,Xt.delete(e),L(t);return}t.targetStart=e.targetStart;const P=t.target=e.target,U=t.targetAnchor=e.targetAnchor,J=fn(e.props),D=J?n:P,te=J?b:U;if(s==="svg"||ya(P)?s="svg":(s==="mathml"||ba(P))&&(s="mathml"),E?(d(e.dynamicChildren,E,D,o,i,s,a),Hs(e,t,!0)):l||f(e,t,D,te,o,i,s,a,!1),C)J?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):to(t,n,b,c,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const ce=t.target=Fi(t.props,v);ce&&to(t,ce,null,c,0)}else J&&to(t,P,U,c,1);vr(t,C)}},remove(e,t,n,{um:r,o:{remove:o}},i){const{shapeFlag:s,children:a,anchor:l,targetStart:c,targetAnchor:u,target:f,props:d}=e,p=i||!fn(d),v=Xt.get(e);if(v&&(v.flags|=8,Xt.delete(e)),f&&(o(c),o(u)),i&&o(l),!v&&s&16)for(let m=0;m{e.isMounted=!0}),Ns(()=>{e.isUnmounting=!0}),e}const ot=[Function,Array],nu={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:ot,onEnter:ot,onAfterEnter:ot,onEnterCancelled:ot,onBeforeLeave:ot,onLeave:ot,onAfterLeave:ot,onLeaveCancelled:ot,onBeforeAppear:ot,onAppear:ot,onAfterAppear:ot,onAppearCancelled:ot},ru=e=>{const t=e.subTree;return t.component?ru(t.component):t},jp={name:"BaseTransition",props:nu,setup(e,{slots:t}){const n=En(),r=tu();return()=>{const o=t.default&&Rs(t.default(),!0),i=o&&o.length?ou(o):n.subTree?wh():void 0;if(!i)return;const s=re(e),{mode:a}=s;if(r.isLeaving)return fi(i);const l=Ca(i);if(!l)return fi(i);let c=jr(l,s,r,n,f=>c=f);l.type!==Pe&&_n(l,c);let u=n.subTree&&Ca(n.subTree);if(u&&u.type!==Pe&&!dn(u,l)&&ru(n).type!==Pe){let f=jr(u,s,r,n);if(_n(u,f),a==="out-in"&&l.type!==Pe)return r.isLeaving=!0,f.afterLeave=()=>{r.isLeaving=!1,n.job.flags&8||n.update(),delete f.afterLeave,u=void 0},fi(i);a==="in-out"&&l.type!==Pe?f.delayLeave=(d,p,v)=>{const m=iu(r,u);m[String(u.key)]=u,d[it]=()=>{p(),d[it]=void 0,delete c.delayedLeave,u=void 0},c.delayedLeave=()=>{v(),delete c.delayedLeave,u=void 0}}:u=void 0}else u&&(u=void 0);return i}}};function ou(e){let t=e[0];if(e.length>1){for(const n of e)if(n.type!==Pe){t=n;break}}return t}const Lp=jp;function iu(e,t){const{leavingVNodes:n}=e;let r=n.get(t.type);return r||(r=Object.create(null),n.set(t.type,r)),r}function jr(e,t,n,r,o){const{appear:i,mode:s,persisted:a=!1,onBeforeEnter:l,onEnter:c,onAfterEnter:u,onEnterCancelled:f,onBeforeLeave:d,onLeave:p,onAfterLeave:v,onLeaveCancelled:m,onBeforeAppear:w,onAppear:x,onAfterAppear:C,onAppearCancelled:E}=t,S=String(e.key),$=iu(n,e),L=(P,U)=>{P&<(P,r,9,U)},b=(P,U)=>{const J=U[1];L(P,U),Y(P)?P.every(D=>D.length<=1)&&J():P.length<=1&&J()},_={mode:s,persisted:a,beforeEnter(P){let U=l;if(!n.isMounted)if(i)U=w||l;else return;P[it]&&P[it](!0);const J=$[S];J&&dn(e,J)&&J.el[it]&&J.el[it](),L(U,[P])},enter(P){if($[S]===e)return;let U=c,J=u,D=f;if(!n.isMounted)if(i)U=x||c,J=C||u,D=E||f;else return;let te=!1;P[fr]=N=>{te||(te=!0,N?L(D,[P]):L(J,[P]),_.delayedLeave&&_.delayedLeave(),P[fr]=void 0)};const ce=P[fr].bind(null,!1);U?b(U,[P,ce]):ce()},leave(P,U){const J=String(e.key);if(P[fr]&&P[fr](!0),n.isUnmounting)return U();L(d,[P]);let D=!1;P[it]=ce=>{D||(D=!0,U(),ce?L(m,[P]):L(v,[P]),P[it]=void 0,$[J]===e&&delete $[J])};const te=P[it].bind(null,!1);$[J]=e,p?b(p,[P,te]):te()},clone(P){const U=jr(P,t,n,r,o);return o&&o(U),U}};return _}function fi(e){if(Go(e))return e=nn(e),e.children=null,e}function Ca(e){if(!Go(e))return Zc(e.type)&&e.children?ou(e.children):e;if(e.component)return e.component.subTree;const{shapeFlag:t,children:n}=e;if(n){if(t&16)return n[0];if(t&32&&ee(n.default))return n.default()}}function _n(e,t){e.shapeFlag&6&&e.component?(e.transition=t,_n(e.component.subTree,t)):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function Rs(e,t=!1,n){let r=[],o=0;for(let i=0;i1)for(let i=0;iwr(m,t&&(Y(t)?t[w]:t),n,r,o));return}if(Hn(r)&&!o){r.shapeFlag&512&&r.type.__asyncResolved&&r.component.subTree.component&&wr(e,t,n,r.component.subTree);return}const i=r.shapeFlag&4?Ko(r.component):r.el,s=o?null:i,{i:a,r:l}=e,c=t&&t.r,u=a.refs===de?a.refs={}:a.refs,f=a.setupState,d=re(f),p=f===de?gc:m=>xa(u,m)?!1:le(d,m),v=(m,w)=>!(w&&xa(u,w));if(c!=null&&c!==l){if(_a(t),he(c))u[c]=null,p(c)&&(f[c]=null);else if(ge(c)){const m=t;v(c,m.k)&&(c.value=null),m.k&&(u[m.k]=null)}}if(ee(l))Wr(l,a,12,[s,u]);else{const m=he(l),w=ge(l);if(m||w){const x=()=>{if(e.f){const C=m?p(l)?f[l]:u[l]:v()||!e.k?l.value:u[e.k];if(o)Y(C)&&bs(C,i);else if(Y(C))C.includes(i)||C.push(i);else if(m)u[l]=[i],p(l)&&(f[l]=u[l]);else{const E=[i];v(l,e.k)&&(l.value=E),e.k&&(u[e.k]=E)}}else m?(u[l]=s,p(l)&&(f[l]=s)):w&&(v(l,e.k)&&(l.value=s),e.k&&(u[e.k]=s))};if(s){const C=()=>{x(),xo.delete(e)};C.id=-1,xo.set(e,C),je(C,n)}else _a(e),x()}}}function _a(e){const t=xo.get(e);t&&(t.flags|=8,xo.delete(e))}Do().requestIdleCallback;Do().cancelIdleCallback;const Hn=e=>!!e.type.__asyncLoader,Go=e=>e.type.__isKeepAlive;function Dp(e,t){au(e,"a",t)}function Fp(e,t){au(e,"da",t)}function au(e,t,n=Me){const r=e.__wdc||(e.__wdc=()=>{let o=n;for(;o;){if(o.isDeactivated)return;o=o.parent}return e()});if(Wo(t,r,n),n){let o=n.parent;for(;o&&o.parent;)Go(o.parent.vnode)&&Hp(r,t,n,o),o=o.parent}}function Hp(e,t,n,r){const o=Wo(t,e,r,!0);ks(()=>{bs(r[t],o)},n)}function Wo(e,t,n=Me,r=!1){if(n){const o=n[e]||(n[e]=[]),i=t.__weh||(t.__weh=(...s)=>{Bt();const a=Xr(n),l=lt(t,n,e,s);return a(),zt(),l});return r?o.unshift(i):o.push(i),i}}const Wt=e=>(t,n=Me)=>{(!Lr||e==="sp")&&Wo(e,(...r)=>t(...r),n)},lu=Wt("bm"),Kr=Wt("m"),Bp=Wt("bu"),Ms=Wt("u"),Ns=Wt("bum"),ks=Wt("um"),zp=Wt("sp"),Vp=Wt("rtg"),Gp=Wt("rtc");function Wp(e,t=Me){Wo("ec",e,t)}const js="components",Up="directives";function Kp(e,t){return Ls(js,e,!0,t)||e}const cu=Symbol.for("v-ndc");function m1(e){return he(e)?Ls(js,e,!1)||e:e||cu}function v1(e){return Ls(Up,e)}function Ls(e,t,n=!0,r=!1){const o=Oe||Me;if(o){const i=o.type;if(e===js){const a=Rh(i,!1);if(a&&(a===t||a===Be(t)||a===Lo(Be(t))))return i}const s=Sa(o[e]||i[e],t)||Sa(o.appContext[e],t);return!s&&r?i:s}}function Sa(e,t){return e&&(e[t]||e[Be(t)]||e[Lo(Be(t))])}function y1(e,t,n,r){let o;const i=n&&n[r],s=Y(e);if(s||he(e)){const a=s&&Ht(e);let l=!1,c=!1;a&&(l=!Ze(e),c=Vt(e),e=Ho(e)),o=new Array(e.length);for(let u=0,f=e.length;ut(a,l,void 0,i&&i[l]));else{const a=Object.keys(e);o=new Array(a.length);for(let l=0,c=a.length;l0;return t!=="default"&&(n.name=t),So(),Eo(be,null,[A("slot",n,r&&r())],c?-2:64)}let i=e[t];i&&i._c&&(i._d=!1),So();const s=i&&uu(i(n)),a=n.key||s&&s.key,l=Eo(be,{key:(a&&!tt(a)?a:`_${t}`)+(!s&&r?"_fb":"")},s||(r?r():[]),s&&e._===1?64:-2);return!o&&l.scopeId&&(l.slotScopeIds=[l.scopeId+"-s"]),i&&i._c&&(i._d=!0),l}function uu(e){return e.some(t=>vt(t)?!(t.type===Pe||t.type===be&&!uu(t.children)):!0)?e:null}const Bi=e=>e?Iu(e)?Ko(e):Bi(e.parent):null,Er=xe(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>Bi(e.parent),$root:e=>Bi(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>pu(e),$forceUpdate:e=>e.f||(e.f=()=>{$s(e.update)}),$nextTick:e=>e.n||(e.n=Ur.bind(e.proxy)),$watch:e=>Rp.bind(e)}),di=(e,t)=>e!==de&&!e.__isScriptSetup&&le(e,t),qp={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:r,data:o,props:i,accessCache:s,type:a,appContext:l}=e;if(t[0]!=="$"){const d=s[t];if(d!==void 0)switch(d){case 1:return r[t];case 2:return o[t];case 4:return n[t];case 3:return i[t]}else{if(di(r,t))return s[t]=1,r[t];if(o!==de&&le(o,t))return s[t]=2,o[t];if(le(i,t))return s[t]=3,i[t];if(n!==de&&le(n,t))return s[t]=4,n[t];zi&&(s[t]=0)}}const c=Er[t];let u,f;if(c)return t==="$attrs"&&Re(e.attrs,"get",""),c(e);if((u=a.__cssModules)&&(u=u[t]))return u;if(n!==de&&le(n,t))return s[t]=4,n[t];if(f=l.config.globalProperties,le(f,t))return f[t]},set({_:e},t,n){const{data:r,setupState:o,ctx:i}=e;return di(o,t)?(o[t]=n,!0):r!==de&&le(r,t)?(r[t]=n,!0):le(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(i[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:o,props:i,type:s}},a){let l;return!!(n[a]||e!==de&&a[0]!=="$"&&le(e,a)||di(t,a)||le(i,a)||le(r,a)||le(Er,a)||le(o.config.globalProperties,a)||(l=s.__cssModules)&&l[a])},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:le(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function C1(){return fu().slots}function x1(){return fu().attrs}function fu(e){const t=En();return t.setupContext||(t.setupContext=Mu(t))}function wa(e){return Y(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}function _1(e,t){const n={};for(const r in e)t.includes(r)||Object.defineProperty(n,r,{enumerable:!0,get:()=>e[r]});return n}let zi=!0;function Xp(e){const t=pu(e),n=e.proxy,r=e.ctx;zi=!1,t.beforeCreate&&Ea(t.beforeCreate,e,"bc");const{data:o,computed:i,methods:s,watch:a,provide:l,inject:c,created:u,beforeMount:f,mounted:d,beforeUpdate:p,updated:v,activated:m,deactivated:w,beforeDestroy:x,beforeUnmount:C,destroyed:E,unmounted:S,render:$,renderTracked:L,renderTriggered:b,errorCaptured:_,serverPrefetch:P,expose:U,inheritAttrs:J,components:D,directives:te,filters:ce}=t;if(c&&Yp(c,r,null),s)for(const K in s){const ne=s[K];ee(ne)&&(r[K]=ne.bind(n))}if(o){const K=o.call(n,n);se(K)&&(e.data=gt(K))}if(zi=!0,i)for(const K in i){const ne=i[K],Ke=ee(ne)?ne.bind(n,n):ee(ne.get)?ne.get.bind(n,n):$t,Ut=!ee(ne)&&ee(ne.set)?ne.set.bind(n):$t,bt=j({get:Ke,set:Ut});Object.defineProperty(r,K,{enumerable:!0,configurable:!0,get:()=>bt.value,set:Ve=>bt.value=Ve})}if(a)for(const K in a)du(a[K],r,n,K);if(l){const K=ee(l)?l.call(n):l;Reflect.ownKeys(K).forEach(ne=>{at(ne,K[ne])})}u&&Ea(u,e,"c");function B(K,ne){Y(ne)?ne.forEach(Ke=>K(Ke.bind(n))):ne&&K(ne.bind(n))}if(B(lu,f),B(Kr,d),B(Bp,p),B(Ms,v),B(Dp,m),B(Fp,w),B(Wp,_),B(Gp,L),B(Vp,b),B(Ns,C),B(ks,S),B(zp,P),Y(U))if(U.length){const K=e.exposed||(e.exposed={});U.forEach(ne=>{Object.defineProperty(K,ne,{get:()=>n[ne],set:Ke=>n[ne]=Ke,enumerable:!0})})}else e.exposed||(e.exposed={});$&&e.render===$t&&(e.render=$),J!=null&&(e.inheritAttrs=J),D&&(e.components=D),te&&(e.directives=te),P&&su(e)}function Yp(e,t,n=$t){Y(e)&&(e=Vi(e));for(const r in e){const o=e[r];let i;se(o)?"default"in o?i=me(o.from||r,o.default,!0):i=me(o.from||r):i=me(o),ge(i)?Object.defineProperty(t,r,{enumerable:!0,configurable:!0,get:()=>i.value,set:s=>i.value=s}):t[r]=i}}function Ea(e,t,n){lt(Y(e)?e.map(r=>r.bind(t.proxy)):e.bind(t.proxy),t,n)}function du(e,t,n,r){let o=r.includes(".")?Qc(n,r):()=>n[r];if(he(e)){const i=t[e];ee(i)&&We(o,i)}else if(ee(e))We(o,e.bind(n));else if(se(e))if(Y(e))e.forEach(i=>du(i,t,n,r));else{const i=ee(e.handler)?e.handler.bind(n):t[e.handler];ee(i)&&We(o,i,e)}}function pu(e){const t=e.type,{mixins:n,extends:r}=t,{mixins:o,optionsCache:i,config:{optionMergeStrategies:s}}=e.appContext,a=i.get(t);let l;return a?l=a:!o.length&&!n&&!r?l=t:(l={},o.length&&o.forEach(c=>_o(l,c,s,!0)),_o(l,t,s)),se(t)&&i.set(t,l),l}function _o(e,t,n,r=!1){const{mixins:o,extends:i}=t;i&&_o(e,i,n,!0),o&&o.forEach(s=>_o(e,s,n,!0));for(const s in t)if(!(r&&s==="expose")){const a=Qp[s]||n&&n[s];e[s]=a?a(e[s],t[s]):t[s]}return e}const Qp={data:Pa,props:Oa,emits:Oa,methods:yr,computed:yr,beforeCreate:ke,created:ke,beforeMount:ke,mounted:ke,beforeUpdate:ke,updated:ke,beforeDestroy:ke,beforeUnmount:ke,destroyed:ke,unmounted:ke,activated:ke,deactivated:ke,errorCaptured:ke,serverPrefetch:ke,components:yr,directives:yr,watch:Zp,provide:Pa,inject:Jp};function Pa(e,t){return t?e?function(){return xe(ee(e)?e.call(this,this):e,ee(t)?t.call(this,this):t)}:t:e}function Jp(e,t){return yr(Vi(e),Vi(t))}function Vi(e){if(Y(e)){const t={};for(let n=0;nt==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${Be(t)}Modifiers`]||e[`${rn(t)}Modifiers`];function rh(e,t,...n){if(e.isUnmounted)return;const r=e.vnode.props||de;let o=n;const i=t.startsWith("update:"),s=i&&nh(r,t.slice(7));s&&(s.trim&&(o=n.map(u=>he(u)?u.trim():u)),s.number&&(o=n.map(Cs)));let a,l=r[a=si(t)]||r[a=si(Be(t))];!l&&i&&(l=r[a=si(rn(t))]),l&<(l,e,6,o);const c=r[a+"Once"];if(c){if(!e.emitted)e.emitted={};else if(e.emitted[a])return;e.emitted[a]=!0,lt(c,e,6,o)}}const oh=new WeakMap;function gu(e,t,n=!1){const r=n?oh:t.emitsCache,o=r.get(e);if(o!==void 0)return o;const i=e.emits;let s={},a=!1;if(!ee(e)){const l=c=>{const u=gu(c,t,!0);u&&(a=!0,xe(s,u))};!n&&t.mixins.length&&t.mixins.forEach(l),e.extends&&l(e.extends),e.mixins&&e.mixins.forEach(l)}return!i&&!a?(se(e)&&r.set(e,null),null):(Y(i)?i.forEach(l=>s[l]=null):xe(s,i),se(e)&&r.set(e,s),s)}function Uo(e,t){return!e||!Mo(t)?!1:(t=t.slice(2).replace(/Once$/,""),le(e,t[0].toLowerCase()+t.slice(1))||le(e,rn(t))||le(e,t))}function Ta(e){const{type:t,vnode:n,proxy:r,withProxy:o,propsOptions:[i],slots:s,attrs:a,emit:l,render:c,renderCache:u,props:f,data:d,setupState:p,ctx:v,inheritAttrs:m}=e,w=Co(e);let x,C;try{if(n.shapeFlag&4){const S=o||r,$=S;x=At(c.call($,S,u,f,p,d,v)),C=a}else{const S=t;x=At(S.length>1?S(f,{attrs:a,slots:s,emit:l}):S(f,null)),C=t.props?a:ih(a)}}catch(S){Pr.length=0,zo(S,e,1),x=A(Pe)}let E=x;if(C&&m!==!1){const S=Object.keys(C),{shapeFlag:$}=E;S.length&&$&7&&(i&&S.some(No)&&(C=sh(C,i)),E=nn(E,C,!1,!0))}return n.dirs&&(E=nn(E,null,!1,!0),E.dirs=E.dirs?E.dirs.concat(n.dirs):n.dirs),n.transition&&_n(E,n.transition),x=E,Co(w),x}const ih=e=>{let t;for(const n in e)(n==="class"||n==="style"||Mo(n))&&((t||(t={}))[n]=e[n]);return t},sh=(e,t)=>{const n={};for(const r in e)(!No(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function ah(e,t,n){const{props:r,children:o,component:i}=e,{props:s,children:a,patchFlag:l}=t,c=i.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&l>=0){if(l&1024)return!0;if(l&16)return r?Aa(r,s,c):!!s;if(l&8){const u=t.dynamicProps;for(let f=0;fObject.create(vu),bu=e=>Object.getPrototypeOf(e)===vu;function ch(e,t,n,r=!1){const o={},i=yu();e.propsDefaults=Object.create(null),Cu(e,t,o,i);for(const s in e.propsOptions[0])s in o||(o[s]=void 0);n?e.props=r?o:Bc(o):e.type.props?e.props=o:e.props=i,e.attrs=i}function uh(e,t,n,r){const{props:o,attrs:i,vnode:{patchFlag:s}}=e,a=re(o),[l]=e.propsOptions;let c=!1;if((r||s>0)&&!(s&16)){if(s&8){const u=e.vnode.dynamicProps;for(let f=0;f{l=!0;const[d,p]=xu(f,t,!0);xe(s,d),p&&a.push(...p)};!n&&t.mixins.length&&t.mixins.forEach(u),e.extends&&u(e.extends),e.mixins&&e.mixins.forEach(u)}if(!i&&!l)return se(e)&&r.set(e,Ln),Ln;if(Y(i))for(let u=0;ue==="_"||e==="_ctx"||e==="$stable",Fs=e=>Y(e)?e.map(At):[At(e)],dh=(e,t,n)=>{if(t._n)return t;const r=Yc((...o)=>Fs(t(...o)),n);return r._c=!1,r},_u=(e,t,n)=>{const r=e._ctx;for(const o in e){if(Ds(o))continue;const i=e[o];if(ee(i))t[o]=dh(o,i,r);else if(i!=null){const s=Fs(i);t[o]=()=>s}}},Su=(e,t)=>{const n=Fs(t);e.slots.default=()=>n},wu=(e,t,n)=>{for(const r in t)(n||!Ds(r))&&(e[r]=t[r])},ph=(e,t,n)=>{const r=e.slots=yu();if(e.vnode.shapeFlag&32){const o=t._;o?(wu(r,t,n),n&&Cc(r,"_",o,!0)):_u(t,r)}else t&&Su(e,t)},hh=(e,t,n)=>{const{vnode:r,slots:o}=e;let i=!0,s=de;if(r.shapeFlag&32){const a=t._;a?n&&a===1?i=!1:wu(o,t,n):(i=!t.$stable,_u(t,o)),s=t}else t&&(Su(e,t),s={default:1});if(i)for(const a in o)!Ds(a)&&s[a]==null&&delete o[a]},je=bh;function gh(e){return mh(e)}function mh(e,t){const n=Do();n.__VUE__=!0;const{insert:r,remove:o,patchProp:i,createElement:s,createText:a,createComment:l,setText:c,setElementText:u,parentNode:f,nextSibling:d,setScopeId:p=$t,insertStaticContent:v}=e,m=(h,g,y,I=null,M=null,T=null,z=void 0,H=null,F=!!g.dynamicChildren)=>{if(h===g)return;h&&!dn(h,g)&&(I=R(h),Ve(h,M,T,!0),h=null),g.patchFlag===-2&&(F=!1,g.dynamicChildren=null);const{type:k,ref:Q,shapeFlag:G}=g;switch(k){case qr:w(h,g,y,I);break;case Pe:x(h,g,y,I);break;case hi:h==null&&C(g,y,I,z);break;case be:D(h,g,y,I,M,T,z,H,F);break;default:G&1?$(h,g,y,I,M,T,z,H,F):G&6?te(h,g,y,I,M,T,z,H,F):(G&64||G&128)&&k.process(h,g,y,I,M,T,z,H,F,q)}Q!=null&&M?wr(Q,h&&h.ref,T,g||h,!g):Q==null&&h&&h.ref!=null&&wr(h.ref,null,T,h,!0)},w=(h,g,y,I)=>{if(h==null)r(g.el=a(g.children),y,I);else{const M=g.el=h.el;g.children!==h.children&&c(M,g.children)}},x=(h,g,y,I)=>{h==null?r(g.el=l(g.children||""),y,I):g.el=h.el},C=(h,g,y,I)=>{[h.el,h.anchor]=v(h.children,g,y,I,h.el,h.anchor)},E=({el:h,anchor:g},y,I)=>{let M;for(;h&&h!==g;)M=d(h),r(h,y,I),h=M;r(g,y,I)},S=({el:h,anchor:g})=>{let y;for(;h&&h!==g;)y=d(h),o(h),h=y;o(g)},$=(h,g,y,I,M,T,z,H,F)=>{if(g.type==="svg"?z="svg":g.type==="math"&&(z="mathml"),h==null)L(g,y,I,M,T,z,H,F);else{const k=h.el&&h.el._isVueCE?h.el:null;try{k&&k._beginPatch(),P(h,g,M,T,z,H,F)}finally{k&&k._endPatch()}}},L=(h,g,y,I,M,T,z,H)=>{let F,k;const{props:Q,shapeFlag:G,transition:X,dirs:Z}=h;if(F=h.el=s(h.type,T,Q&&Q.is,Q),G&8?u(F,h.children):G&16&&_(h.children,F,null,I,M,pi(h,T),z,H),Z&&an(h,null,I,"created"),b(F,h,h.scopeId,z,I),Q){for(const fe in Q)fe!=="value"&&!xr(fe)&&i(F,fe,null,Q[fe],T,I);"value"in Q&&i(F,"value",null,Q.value,T),(k=Q.onVnodeBeforeMount)&&St(k,I,h)}Z&&an(h,null,I,"beforeMount");const ie=vh(M,X);ie&&X.beforeEnter(F),r(F,g,y),((k=Q&&Q.onVnodeMounted)||ie||Z)&&je(()=>{try{k&&St(k,I,h),ie&&X.enter(F),Z&&an(h,null,I,"mounted")}finally{}},M)},b=(h,g,y,I,M)=>{if(y&&p(h,y),I)for(let T=0;T{for(let k=F;k{const H=g.el=h.el;let{patchFlag:F,dynamicChildren:k,dirs:Q}=g;F|=h.patchFlag&16;const G=h.props||de,X=g.props||de;let Z;if(y&&ln(y,!1),(Z=X.onVnodeBeforeUpdate)&&St(Z,y,g,h),Q&&an(g,h,y,"beforeUpdate"),y&&ln(y,!0),(G.innerHTML&&X.innerHTML==null||G.textContent&&X.textContent==null)&&u(H,""),k?U(h.dynamicChildren,k,H,y,I,pi(g,M),T):z||ne(h,g,H,null,y,I,pi(g,M),T,!1),F>0){if(F&16)J(H,G,X,y,M);else if(F&2&&G.class!==X.class&&i(H,"class",null,X.class,M),F&4&&i(H,"style",G.style,X.style,M),F&8){const ie=g.dynamicProps;for(let fe=0;fe{Z&&St(Z,y,g,h),Q&&an(g,h,y,"updated")},I)},U=(h,g,y,I,M,T,z)=>{for(let H=0;H{if(g!==y){if(g!==de)for(const T in g)!xr(T)&&!(T in y)&&i(h,T,g[T],null,M,I);for(const T in y){if(xr(T))continue;const z=y[T],H=g[T];z!==H&&T!=="value"&&i(h,T,H,z,M,I)}"value"in y&&i(h,"value",g.value,y.value,M)}},D=(h,g,y,I,M,T,z,H,F)=>{const k=g.el=h?h.el:a(""),Q=g.anchor=h?h.anchor:a("");let{patchFlag:G,dynamicChildren:X,slotScopeIds:Z}=g;Z&&(H=H?H.concat(Z):Z),h==null?(r(k,y,I),r(Q,y,I),_(g.children||[],y,Q,M,T,z,H,F)):G>0&&G&64&&X&&h.dynamicChildren&&h.dynamicChildren.length===X.length?(U(h.dynamicChildren,X,y,M,T,z,H),(g.key!=null||M&&g===M.subTree)&&Hs(h,g,!0)):ne(h,g,y,Q,M,T,z,H,F)},te=(h,g,y,I,M,T,z,H,F)=>{g.slotScopeIds=H,h==null?g.shapeFlag&512?M.ctx.activate(g,y,I,z,F):ce(g,y,I,M,T,z,F):N(h,g,F)},ce=(h,g,y,I,M,T,z)=>{const H=h.component=Th(h,I,M);if(Go(h)&&(H.ctx.renderer=q),Ah(H,!1,z),H.asyncDep){if(M&&M.registerDep(H,B,z),!h.el){const F=H.subTree=A(Pe);x(null,F,g,y),h.placeholder=F.el}}else B(H,h,g,y,M,T,z)},N=(h,g,y)=>{const I=g.component=h.component;if(ah(h,g,y))if(I.asyncDep&&!I.asyncResolved){K(I,g,y);return}else I.next=g,I.update();else g.el=h.el,I.vnode=g},B=(h,g,y,I,M,T,z)=>{const H=()=>{if(h.isMounted){let{next:G,bu:X,u:Z,parent:ie,vnode:fe}=h;{const xt=Eu(h);if(xt){G&&(G.el=fe.el,K(h,G,z)),xt.asyncDep.then(()=>{je(()=>{h.isUnmounted||k()},M)});return}}let ue=G,ye;ln(h,!1),G?(G.el=fe.el,K(h,G,z)):G=fe,X&&lo(X),(ye=G.props&&G.props.onVnodeBeforeUpdate)&&St(ye,ie,G,fe),ln(h,!0);const Ee=Ta(h),Ct=h.subTree;h.subTree=Ee,m(Ct,Ee,f(Ct.el),R(Ct),h,M,T),G.el=Ee.el,ue===null&&lh(h,Ee.el),Z&&je(Z,M),(ye=G.props&&G.props.onVnodeUpdated)&&je(()=>St(ye,ie,G,fe),M)}else{let G;const{el:X,props:Z}=g,{bm:ie,m:fe,parent:ue,root:ye,type:Ee}=h,Ct=Hn(g);ln(h,!1),ie&&lo(ie),!Ct&&(G=Z&&Z.onVnodeBeforeMount)&&St(G,ue,g),ln(h,!0);{ye.ce&&ye.ce._hasShadowRoot()&&ye.ce._injectChildStyle(Ee,h.parent?h.parent.type:void 0);const xt=h.subTree=Ta(h);m(null,xt,y,I,h,M,T),g.el=xt.el}if(fe&&je(fe,M),!Ct&&(G=Z&&Z.onVnodeMounted)){const xt=g;je(()=>St(G,ue,xt),M)}(g.shapeFlag&256||ue&&Hn(ue.vnode)&&ue.vnode.shapeFlag&256)&&h.a&&je(h.a,M),h.isMounted=!0,g=y=I=null}};h.scope.on();const F=h.effect=new Oc(H);h.scope.off();const k=h.update=F.run.bind(F),Q=h.job=F.runIfDirty.bind(F);Q.i=h,Q.id=h.uid,F.scheduler=()=>$s(Q),ln(h,!0),k()},K=(h,g,y)=>{g.component=h;const I=h.vnode.props;h.vnode=g,h.next=null,uh(h,g.props,I,y),hh(h,g.children,y),Bt(),va(h),zt()},ne=(h,g,y,I,M,T,z,H,F=!1)=>{const k=h&&h.children,Q=h?h.shapeFlag:0,G=g.children,{patchFlag:X,shapeFlag:Z}=g;if(X>0){if(X&128){Ut(k,G,y,I,M,T,z,H,F);return}else if(X&256){Ke(k,G,y,I,M,T,z,H,F);return}}Z&8?(Q&16&&rt(k,M,T),G!==k&&u(y,G)):Q&16?Z&16?Ut(k,G,y,I,M,T,z,H,F):rt(k,M,T,!0):(Q&8&&u(y,""),Z&16&&_(G,y,I,M,T,z,H,F))},Ke=(h,g,y,I,M,T,z,H,F)=>{h=h||Ln,g=g||Ln;const k=h.length,Q=g.length,G=Math.min(k,Q);let X;for(X=0;XQ?rt(h,M,T,!0,!1,G):_(g,y,I,M,T,z,H,F,G)},Ut=(h,g,y,I,M,T,z,H,F)=>{let k=0;const Q=g.length;let G=h.length-1,X=Q-1;for(;k<=G&&k<=X;){const Z=h[k],ie=g[k]=F?Lt(g[k]):At(g[k]);if(dn(Z,ie))m(Z,ie,y,null,M,T,z,H,F);else break;k++}for(;k<=G&&k<=X;){const Z=h[G],ie=g[X]=F?Lt(g[X]):At(g[X]);if(dn(Z,ie))m(Z,ie,y,null,M,T,z,H,F);else break;G--,X--}if(k>G){if(k<=X){const Z=X+1,ie=ZX)for(;k<=G;)Ve(h[k],M,T,!0),k++;else{const Z=k,ie=k,fe=new Map;for(k=ie;k<=X;k++){const qe=g[k]=F?Lt(g[k]):At(g[k]);qe.key!=null&&fe.set(qe.key,k)}let ue,ye=0;const Ee=X-ie+1;let Ct=!1,xt=0;const cr=new Array(Ee);for(k=0;k=Ee){Ve(qe,M,T,!0);continue}let _t;if(qe.key!=null)_t=fe.get(qe.key);else for(ue=ie;ue<=X;ue++)if(cr[ue-ie]===0&&dn(qe,g[ue])){_t=ue;break}_t===void 0?Ve(qe,M,T,!0):(cr[_t-ie]=k+1,_t>=xt?xt=_t:Ct=!0,m(qe,g[_t],y,null,M,T,z,H,F),ye++)}const ua=Ct?yh(cr):Ln;for(ue=ua.length-1,k=Ee-1;k>=0;k--){const qe=ie+k,_t=g[qe],fa=g[qe+1],da=qe+1{const{el:T,type:z,transition:H,children:F,shapeFlag:k}=h;if(k&6){bt(h.component.subTree,g,y,I);return}if(k&128){h.suspense.move(g,y,I);return}if(k&64){z.move(h,g,y,q);return}if(z===be){r(T,g,y);for(let G=0;GH.enter(T),M));else{const{leave:G,delayLeave:X,afterLeave:Z}=H,ie=()=>{h.ctx.isUnmounted?o(T):r(T,g,y)},fe=()=>{const ue=T._isLeaving||!!T[it];T._isLeaving&&T[it](!0),H.persisted&&!ue?ie():G(T,()=>{ie(),Z&&Z()})};X?X(T,ie,fe):fe()}else r(T,g,y)},Ve=(h,g,y,I=!1,M=!1)=>{const{type:T,props:z,ref:H,children:F,dynamicChildren:k,shapeFlag:Q,patchFlag:G,dirs:X,cacheIndex:Z,memo:ie}=h;if(G===-2&&(M=!1),H!=null&&(Bt(),wr(H,null,y,h,!0),zt()),Z!=null&&(g.renderCache[Z]=void 0),Q&256){g.ctx.deactivate(h);return}const fe=Q&1&&X,ue=!Hn(h);let ye;if(ue&&(ye=z&&z.onVnodeBeforeUnmount)&&St(ye,g,h),Q&6)sn(h.component,y,I);else{if(Q&128){h.suspense.unmount(y,I);return}fe&&an(h,null,g,"beforeUnmount"),Q&64?h.type.remove(h,g,y,q,I):k&&!k.hasOnce&&(T!==be||G>0&&G&64)?rt(k,g,y,!1,!0):(T===be&&G&384||!M&&Q&16)&&rt(F,g,y),I&&On(h)}const Ee=ie!=null&&Z==null;(ue&&(ye=z&&z.onVnodeUnmounted)||fe||Ee)&&je(()=>{ye&&St(ye,g,h),fe&&an(h,null,g,"unmounted"),Ee&&(h.el=null)},y)},On=h=>{const{type:g,el:y,anchor:I,transition:M}=h;if(g===be){Tn(y,I);return}if(g===hi){S(h);return}const T=()=>{o(y),M&&!M.persisted&&M.afterLeave&&M.afterLeave()};if(h.shapeFlag&1&&M&&!M.persisted){const{leave:z,delayLeave:H}=M,F=()=>z(y,T);H?H(h.el,T,F):F()}else T()},Tn=(h,g)=>{let y;for(;h!==g;)y=d(h),o(h),h=y;o(g)},sn=(h,g,y)=>{const{bum:I,scope:M,job:T,subTree:z,um:H,m:F,a:k}=h;Ia(F),Ia(k),I&&lo(I),M.stop(),T&&(T.flags|=8,Ve(z,h,g,y)),H&&je(H,g),je(()=>{h.isUnmounted=!0},g)},rt=(h,g,y,I=!1,M=!1,T=0)=>{for(let z=T;z{if(h.shapeFlag&6)return R(h.component.subTree);if(h.shapeFlag&128)return h.suspense.next();const g=d(h.anchor||h.el),y=g&&g[Jc];return y?d(y):g};let W=!1;const V=(h,g,y)=>{let I;h==null?g._vnode&&(Ve(g._vnode,null,null,!0),I=g._vnode.component):m(g._vnode||null,h,g,null,null,null,y),g._vnode=h,W||(W=!0,va(I),Kc(),W=!1)},q={p:m,um:Ve,m:bt,r:On,mt:ce,mc:_,pc:ne,pbc:U,n:R,o:e};return{render:V,hydrate:void 0,createApp:th(V)}}function pi({type:e,props:t},n){return n==="svg"&&e==="foreignObject"||n==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function ln({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function vh(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Hs(e,t,n=!1){const r=e.children,o=t.children;if(Y(r)&&Y(o))for(let i=0;i>1,e[n[a]]0&&(t[r]=n[i-1]),n[i]=r)}}for(i=n.length,s=n[i-1];i-- >0;)n[i]=s,s=t[s];return n}function Eu(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Eu(t)}function Ia(e){if(e)for(let t=0;te.__isSuspense;function bh(e,t){t&&t.pendingBranch?Y(e)?t.effects.push(...e):t.effects.push(e):Tp(e)}const be=Symbol.for("v-fgt"),qr=Symbol.for("v-txt"),Pe=Symbol.for("v-cmt"),hi=Symbol.for("v-stc"),Pr=[];let He=null;function So(e=!1){Pr.push(He=e?null:[])}function Ch(){Pr.pop(),He=Pr[Pr.length-1]||null}let Un=1;function wo(e,t=!1){Un+=e,e<0&&He&&t&&(He.hasOnce=!0)}function Tu(e){return e.dynamicChildren=Un>0?He||Ln:null,Ch(),Un>0&&He&&He.push(e),e}function S1(e,t,n,r,o,i){return Tu($u(e,t,n,r,o,i,!0))}function Eo(e,t,n,r,o){return Tu(A(e,t,n,r,o,!0))}function vt(e){return e?e.__v_isVNode===!0:!1}function dn(e,t){return e.type===t.type&&e.key===t.key}const Au=({key:e})=>e??null,co=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?he(e)||ge(e)||ee(e)?{i:Oe,r:e,k:t,f:!!n}:e:null);function $u(e,t=null,n=null,r=0,o=null,i=e===be?0:1,s=!1,a=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Au(t),ref:t&&co(t),scopeId:Xc,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:i,patchFlag:r,dynamicProps:o,dynamicChildren:null,appContext:null,ctx:Oe};return a?(Bs(l,n),i&128&&e.normalize(l)):n&&(l.shapeFlag|=he(n)?8:16),Un>0&&!s&&He&&(l.patchFlag>0||i&6)&&l.patchFlag!==32&&He.push(l),l}const A=xh;function xh(e,t=null,n=null,r=0,o=null,i=!1){if((!e||e===cu)&&(e=Pe),vt(e)){const a=nn(e,t,!0);return n&&Bs(a,n),Un>0&&!i&&He&&(a.shapeFlag&6?He[He.indexOf(e)]=a:He.push(a)),a.patchFlag=-2,a}if(Mh(e)&&(e=e.__vccOpts),t){t=_h(t);let{class:a,style:l}=t;a&&!he(a)&&(t.class=_s(a)),se(l)&&(Bo(l)&&!Y(l)&&(l=xe({},l)),t.style=xs(l))}const s=he(e)?1:Ou(e)?128:Zc(e)?64:se(e)?4:ee(e)?2:0;return $u(e,t,n,r,o,s,i,!0)}function _h(e){return e?Bo(e)||bu(e)?xe({},e):e:null}function nn(e,t,n=!1,r=!1){const{props:o,ref:i,patchFlag:s,children:a,transition:l}=e,c=t?Eh(o||{},t):o,u={__v_isVNode:!0,__v_skip:!0,type:e.type,props:c,key:c&&Au(c),ref:t&&t.ref?n&&i?Y(i)?i.concat(co(t)):[i,co(t)]:co(t):i,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:a,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==be?s===-1?16:s|16:s,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:l,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&nn(e.ssContent),ssFallback:e.ssFallback&&nn(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return l&&r&&_n(u,l.clone(u)),u}function Sh(e=" ",t=0){return A(qr,null,e,t)}function wh(e="",t=!1){return t?(So(),Eo(Pe,null,e)):A(Pe,null,e)}function At(e){return e==null||typeof e=="boolean"?A(Pe):Y(e)?A(be,null,e.slice()):vt(e)?Lt(e):A(qr,null,String(e))}function Lt(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:nn(e)}function Bs(e,t){let n=0;const{shapeFlag:r}=e;if(t==null)t=null;else if(Y(t))n=16;else if(typeof t=="object")if(r&65){const o=t.default;o&&(o._c&&(o._d=!1),Bs(e,o()),o._c&&(o._d=!0));return}else{n=32;const o=t._;!o&&!bu(t)?t._ctx=Oe:o===3&&Oe&&(Oe.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else ee(t)?(t={default:t,_ctx:Oe},n=32):(t=String(t),r&64?(n=16,t=[Sh(t)]):n=8);e.children=t,e.shapeFlag|=n}function Eh(...e){const t={};for(let n=0;nMe||Oe;let Po,Wi;{const e=Do(),t=(n,r)=>{let o;return(o=e[n])||(o=e[n]=[]),o.push(r),i=>{o.length>1?o.forEach(s=>s(i)):o[0](i)}};Po=t("__VUE_INSTANCE_SETTERS__",n=>Me=n),Wi=t("__VUE_SSR_SETTERS__",n=>Lr=n)}const Xr=e=>{const t=Me;return Po(e),e.scope.on(),()=>{e.scope.off(),Po(t)}},Ra=()=>{Me&&Me.scope.off(),Po(null)};function Iu(e){return e.vnode.shapeFlag&4}let Lr=!1;function Ah(e,t=!1,n=!1){t&&Wi(t);const{props:r,children:o}=e.vnode,i=Iu(e);ch(e,r,i,t),ph(e,o,n||t);const s=i?$h(e,t):void 0;return t&&Wi(!1),s}function $h(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,qp);const{setup:r}=n;if(r){Bt();const o=e.setupContext=r.length>1?Mu(e):null,i=Xr(e),s=Wr(r,e,0,[e.props,o]),a=vc(s);if(zt(),i(),(a||e.sp)&&!Hn(e)&&su(e),a){if(s.then(Ra,Ra),t)return s.then(l=>{Ma(e,l)}).catch(l=>{zo(l,e,0)});e.asyncDep=s}else Ma(e,s)}else Ru(e)}function Ma(e,t,n){ee(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:se(t)&&(e.setupState=Vc(t)),Ru(e)}function Ru(e,t,n){const r=e.type;e.render||(e.render=r.render||$t);{const o=Xr(e);Bt();try{Xp(e)}finally{zt(),o()}}}const Ih={get(e,t){return Re(e,"get",""),e[t]}};function Mu(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,Ih),slots:e.slots,emit:e.emit,expose:t}}function Ko(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(Vc(As(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in Er)return Er[n](e)},has(t,n){return n in t||n in Er}})):e.proxy}function Rh(e,t=!0){return ee(e)?e.displayName||e.name:e.name||t&&e.__name}function Mh(e){return ee(e)&&"__vccOpts"in e}const j=(e,t)=>Sp(e,t,Lr);function Gt(e,t,n){try{wo(-1);const r=arguments.length;return r===2?se(t)&&!Y(t)?vt(t)?A(e,null,[t]):A(e,t):A(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&vt(n)&&(n=[n]),A(e,t,n))}finally{wo(1)}}function w1(e,t){const n=e.memo;if(n.length!=t.length)return!1;for(let r=0;r0&&He&&He.push(e),!0}const Nh="3.5.38";/** +* @vue/runtime-dom v3.5.38 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**/let Ui;const Na=typeof window<"u"&&window.trustedTypes;if(Na)try{Ui=Na.createPolicy("vue",{createHTML:e=>e})}catch{}const Nu=Ui?e=>Ui.createHTML(e):e=>e,kh="http://www.w3.org/2000/svg",jh="http://www.w3.org/1998/Math/MathML",jt=typeof document<"u"?document:null,ka=jt&&jt.createElement("template"),Lh={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{const o=t==="svg"?jt.createElementNS(kh,e):t==="mathml"?jt.createElementNS(jh,e):n?jt.createElement(e,{is:n}):jt.createElement(e);return e==="select"&&r&&r.multiple!=null&&o.setAttribute("multiple",r.multiple),o},createText:e=>jt.createTextNode(e),createComment:e=>jt.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>jt.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,r,o,i){const s=n?n.previousSibling:t.lastChild;if(o&&(o===i||o.nextSibling))for(;t.insertBefore(o.cloneNode(!0),n),!(o===i||!(o=o.nextSibling)););else{ka.innerHTML=Nu(r==="svg"?`${e}`:r==="mathml"?`${e}`:e);const a=ka.content;if(r==="svg"||r==="mathml"){const l=a.firstChild;for(;l.firstChild;)a.appendChild(l.firstChild);a.removeChild(l)}t.insertBefore(a,n)}return[s?s.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},Kt="transition",dr="animation",Kn=Symbol("_vtc"),ku={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},ju=xe({},nu,ku),Dh=e=>(e.displayName="Transition",e.props=ju,e),E1=Dh((e,{slots:t})=>Gt(Lp,Lu(e),t)),cn=(e,t=[])=>{Y(e)?e.forEach(n=>n(...t)):e&&e(...t)},ja=e=>e?Y(e)?e.some(t=>t.length>1):e.length>1:!1;function Lu(e){const t={};for(const D in e)D in ku||(t[D]=e[D]);if(e.css===!1)return t;const{name:n="v",type:r,duration:o,enterFromClass:i=`${n}-enter-from`,enterActiveClass:s=`${n}-enter-active`,enterToClass:a=`${n}-enter-to`,appearFromClass:l=i,appearActiveClass:c=s,appearToClass:u=a,leaveFromClass:f=`${n}-leave-from`,leaveActiveClass:d=`${n}-leave-active`,leaveToClass:p=`${n}-leave-to`}=e,v=Fh(o),m=v&&v[0],w=v&&v[1],{onBeforeEnter:x,onEnter:C,onEnterCancelled:E,onLeave:S,onLeaveCancelled:$,onBeforeAppear:L=x,onAppear:b=C,onAppearCancelled:_=E}=t,P=(D,te,ce,N)=>{D._enterCancelled=N,Yt(D,te?u:a),Yt(D,te?c:s),ce&&ce()},U=(D,te)=>{D._isLeaving=!1,Yt(D,f),Yt(D,p),Yt(D,d),te&&te()},J=D=>(te,ce)=>{const N=D?b:C,B=()=>P(te,D,ce);cn(N,[te,B]),La(()=>{Yt(te,D?l:i),wt(te,D?u:a),ja(N)||Da(te,r,m,B)})};return xe(t,{onBeforeEnter(D){cn(x,[D]),wt(D,i),wt(D,s)},onBeforeAppear(D){cn(L,[D]),wt(D,l),wt(D,c)},onEnter:J(!1),onAppear:J(!0),onLeave(D,te){D._isLeaving=!0;const ce=()=>U(D,te);wt(D,f),D._enterCancelled?(wt(D,d),Ki(D)):(Ki(D),wt(D,d)),La(()=>{D._isLeaving&&(Yt(D,f),wt(D,p),ja(S)||Da(D,r,w,ce))}),cn(S,[D,ce])},onEnterCancelled(D){P(D,!1,void 0,!0),cn(E,[D])},onAppearCancelled(D){P(D,!0,void 0,!0),cn(_,[D])},onLeaveCancelled(D){U(D),cn($,[D])}})}function Fh(e){if(e==null)return null;if(se(e))return[gi(e.enter),gi(e.leave)];{const t=gi(e);return[t,t]}}function gi(e){return Bd(e)}function wt(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e[Kn]||(e[Kn]=new Set)).add(t)}function Yt(e,t){t.split(/\s+/).forEach(r=>r&&e.classList.remove(r));const n=e[Kn];n&&(n.delete(t),n.size||(e[Kn]=void 0))}function La(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let Hh=0;function Da(e,t,n,r){const o=e._endId=++Hh,i=()=>{o===e._endId&&r()};if(n!=null)return setTimeout(i,n);const{type:s,timeout:a,propCount:l}=Du(e,t);if(!s)return r();const c=s+"end";let u=0;const f=()=>{e.removeEventListener(c,d),i()},d=p=>{p.target===e&&++u>=l&&f()};setTimeout(()=>{u(n[v]||"").split(", "),o=r(`${Kt}Delay`),i=r(`${Kt}Duration`),s=Fa(o,i),a=r(`${dr}Delay`),l=r(`${dr}Duration`),c=Fa(a,l);let u=null,f=0,d=0;t===Kt?s>0&&(u=Kt,f=s,d=i.length):t===dr?c>0&&(u=dr,f=c,d=l.length):(f=Math.max(s,c),u=f>0?s>c?Kt:dr:null,d=u?u===Kt?i.length:l.length:0);const p=u===Kt&&/\b(?:transform|all)(?:,|$)/.test(r(`${Kt}Property`).toString());return{type:u,timeout:f,propCount:d,hasTransform:p}}function Fa(e,t){for(;e.lengthHa(n)+Ha(e[r])))}function Ha(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function Ki(e){return(e?e.ownerDocument:document).body.offsetHeight}function Bh(e,t,n){const r=e[Kn];r&&(t=(t?[t,...r]:[...r]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const Oo=Symbol("_vod"),zs=Symbol("_vsh"),P1={name:"show",beforeMount(e,{value:t},{transition:n}){e[Oo]=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):pr(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:r}){!t!=!n&&(r?t?(r.beforeEnter(e),pr(e,!0),r.enter(e)):r.leave(e,()=>{pr(e,!1)}):pr(e,t))},beforeUnmount(e,{value:t}){pr(e,t)}};function pr(e,t){e.style.display=t?e[Oo]:"none",e[zs]=!t}const zh=Symbol(""),Vh=/(?:^|;)\s*display\s*:/;function Gh(e,t,n){const r=e.style,o=he(n);let i=!1;if(n&&!o){if(t)if(he(t))for(const s of t.split(";")){const a=s.slice(0,s.indexOf(":")).trim();n[a]==null&&br(r,a,"")}else for(const s in t)n[s]==null&&br(r,s,"");for(const s in n){s==="display"&&(i=!0);const a=n[s];a!=null?Uh(e,s,!he(t)&&t?t[s]:void 0,a)||br(r,s,a):br(r,s,"")}}else if(o){if(t!==n){const s=r[zh];s&&(n+=";"+s),r.cssText=n,i=Vh.test(n)}}else t&&e.removeAttribute("style");Oo in e&&(e[Oo]=i?r.display:"",e[zs]&&(r.display="none"))}const Ba=/\s*!important$/;function br(e,t,n){if(Y(n))n.forEach(r=>br(e,t,r));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const r=Wh(e,t);Ba.test(n)?e.setProperty(rn(r),n.replace(Ba,""),"important"):e[r]=n}}const za=["Webkit","Moz","ms"],mi={};function Wh(e,t){const n=mi[t];if(n)return n;let r=Be(t);if(r!=="filter"&&r in e)return mi[t]=r;r=Lo(r);for(let o=0;ovi||(Yh.then(()=>vi=0),vi=Date.now());function Jh(e,t){const n=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=n.attached)return;const o=n.value;if(Y(o)){const i=r.stopImmediatePropagation;r.stopImmediatePropagation=()=>{i.call(r),r._stopped=!0};const s=o.slice(),a=[r];for(let l=0;le.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Zh=(e,t,n,r,o,i)=>{const s=o==="svg";t==="class"?Bh(e,r,s):t==="style"?Gh(e,n,r):Mo(t)?No(t)||qh(e,t,n,r,i):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):eg(e,t,r,s))?(Wa(e,t,r),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&Ga(e,t,r,s,i,t!=="value")):e._isVueCE&&(tg(e,t)||e._def.__asyncLoader&&(/[A-Z]/.test(t)||!he(r)))?Wa(e,Be(t),r,i,t):(t==="true-value"?e._trueValue=r:t==="false-value"&&(e._falseValue=r),Ga(e,t,r,s))};function eg(e,t,n,r){if(r)return!!(t==="innerHTML"||t==="textContent"||t in e&&qa(t)&&ee(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="autocorrect"||t==="sandbox"&&e.tagName==="IFRAME"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const o=e.tagName;if(o==="IMG"||o==="VIDEO"||o==="CANVAS"||o==="SOURCE")return!1}return qa(t)&&he(n)?!1:t in e}function tg(e,t){const n=e._def.props;if(!n)return!1;const r=Be(t);return Array.isArray(n)?n.some(o=>Be(o)===r):Object.keys(n).some(o=>Be(o)===r)}const Fu=new WeakMap,Hu=new WeakMap,To=Symbol("_moveCb"),Xa=Symbol("_enterCb"),ng=e=>(delete e.props.mode,e),rg=ng({name:"TransitionGroup",props:xe({},ju,{tag:String,moveClass:String}),setup(e,{slots:t}){const n=En(),r=tu();let o,i;return Ms(()=>{if(!o.length)return;const s=e.moveClass||`${e.name||"v"}-move`;if(!ag(o[0].el,n.vnode.el,s)){o=[];return}o.forEach(og),o.forEach(ig);const a=o.filter(sg);Ki(n.vnode.el),a.forEach(l=>{const c=l.el,u=c.style;wt(c,s),u.transform=u.webkitTransform=u.transitionDuration="";const f=c[To]=d=>{d&&d.target!==c||(!d||d.propertyName.endsWith("transform"))&&(c.removeEventListener("transitionend",f),c[To]=null,Yt(c,s))};c.addEventListener("transitionend",f)}),o=[]}),()=>{const s=re(e),a=Lu(s);let l=s.tag||be;if(o=[],i)for(let c=0;c{a.split(/\s+/).forEach(l=>l&&r.classList.remove(l))}),n.split(/\s+/).forEach(a=>a&&r.classList.add(a)),r.style.display="none";const i=t.nodeType===1?t:t.parentNode;i.appendChild(r);const{hasTransform:s}=Du(r);return i.removeChild(r),s}const Ya=e=>{const t=e.props["onUpdate:modelValue"]||!1;return Y(t)?n=>lo(t,n):t};function lg(e){e.target.composing=!0}function Qa(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const yi=Symbol("_assign");function Ja(e,t,n){return t&&(e=e.trim()),n&&(e=Cs(e)),e}const O1={created(e,{modifiers:{lazy:t,trim:n,number:r}},o){e[yi]=Ya(o);const i=r||o.props&&o.props.type==="number";Rn(e,t?"change":"input",s=>{s.target.composing||e[yi](Ja(e.value,n,i))}),(n||i)&&Rn(e,"change",()=>{e.value=Ja(e.value,n,i)}),t||(Rn(e,"compositionstart",lg),Rn(e,"compositionend",Qa),Rn(e,"change",Qa))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:r,trim:o,number:i}},s){if(e[yi]=Ya(s),e.composing)return;const a=(i||e.type==="number")&&!/^0\d/.test(e.value)?Cs(e.value):e.value,l=t??"";if(a===l)return;const c=e.getRootNode();(c instanceof Document||c instanceof ShadowRoot)&&c.activeElement===e&&e.type!=="range"&&(r&&t===n||o&&e.value.trim()===l)||(e.value=l)}},cg=["ctrl","shift","alt","meta"],ug={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>cg.some(n=>e[`${n}Key`]&&!t.includes(n))},T1=(e,t)=>{if(!e)return e;const n=e._withMods||(e._withMods={}),r=t.join(".");return n[r]||(n[r]=(o,...i)=>{for(let s=0;s{const n=e._withKeys||(e._withKeys={}),r=t.join(".");return n[r]||(n[r]=o=>{if(!("key"in o))return;const i=rn(o.key);if(t.some(s=>s===i||fg[s]===i))return e(o)})},dg=xe({patchProp:Zh},Lh);let Za;function Vu(){return Za||(Za=gh(dg))}const el=(...e)=>{Vu().render(...e)},pg=(...e)=>{const t=Vu().createApp(...e),{mount:n}=t;return t.mount=r=>{const o=gg(r);if(!o)return;const i=t._component;!ee(i)&&!i.render&&!i.template&&(i.template=o.innerHTML),o.nodeType===1&&(o.textContent="");const s=n(o,!1,hg(o));return o instanceof Element&&(o.removeAttribute("v-cloak"),o.setAttribute("data-v-app","")),s},t};function hg(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function gg(e){return he(e)?document.querySelector(e):e}/*! + * pinia v2.3.1 + * (c) 2025 Eduardo San Martin Morote + * @license MIT + */let Gu;const qo=e=>Gu=e,Wu=Symbol();function qi(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var Or;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(Or||(Or={}));function mg(){const e=Ec(!0),t=e.run(()=>pt({}));let n=[],r=[];const o=As({install(i){qo(o),o._a=i,i.provide(Wu,o),i.config.globalProperties.$pinia=o,r.forEach(s=>n.push(s)),r=[]},use(i){return this._a?n.push(i):r.push(i),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return o}const Uu=()=>{};function tl(e,t,n,r=Uu){e.push(t);const o=()=>{const i=e.indexOf(t);i>-1&&(e.splice(i,1),r())};return!n&&Pc()&&Yd(o),o}function $n(e,...t){e.slice().forEach(n=>{n(...t)})}const vg=e=>e(),nl=Symbol(),bi=Symbol();function Xi(e,t){e instanceof Map&&t instanceof Map?t.forEach((n,r)=>e.set(r,n)):e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(const n in t){if(!t.hasOwnProperty(n))continue;const r=t[n],o=e[n];qi(o)&&qi(r)&&e.hasOwnProperty(n)&&!ge(r)&&!Ht(r)?e[n]=Xi(o,r):e[n]=r}return e}const yg=Symbol();function bg(e){return!qi(e)||!e.hasOwnProperty(yg)}const{assign:Qt}=Object;function Cg(e){return!!(ge(e)&&e.effect)}function xg(e,t,n,r){const{state:o,actions:i,getters:s}=t,a=n.state.value[e];let l;function c(){a||(n.state.value[e]=o?o():{});const u=bp(n.state.value[e]);return Qt(u,i,Object.keys(s||{}).reduce((f,d)=>(f[d]=As(j(()=>{qo(n);const p=n._s.get(e);return s[d].call(p,p)})),f),{}))}return l=Ku(e,c,t,n,r,!0),l}function Ku(e,t,n={},r,o,i){let s;const a=Qt({actions:{}},n),l={deep:!0};let c,u,f=[],d=[],p;const v=r.state.value[e];!i&&!v&&(r.state.value[e]={});let m;function w(_){let P;c=u=!1,typeof _=="function"?(_(r.state.value[e]),P={type:Or.patchFunction,storeId:e,events:p}):(Xi(r.state.value[e],_),P={type:Or.patchObject,payload:_,storeId:e,events:p});const U=m=Symbol();Ur().then(()=>{m===U&&(c=!0)}),u=!0,$n(f,P,r.state.value[e])}const x=i?function(){const{state:P}=n,U=P?P():{};this.$patch(J=>{Qt(J,U)})}:Uu;function C(){s.stop(),f=[],d=[],r._s.delete(e)}const E=(_,P="")=>{if(nl in _)return _[bi]=P,_;const U=function(){qo(r);const J=Array.from(arguments),D=[],te=[];function ce(K){D.push(K)}function N(K){te.push(K)}$n(d,{args:J,name:U[bi],store:$,after:ce,onError:N});let B;try{B=_.apply(this&&this.$id===e?this:$,J)}catch(K){throw $n(te,K),K}return B instanceof Promise?B.then(K=>($n(D,K),K)).catch(K=>($n(te,K),Promise.reject(K))):($n(D,B),B)};return U[nl]=!0,U[bi]=P,U},S={_p:r,$id:e,$onAction:tl.bind(null,d),$patch:w,$reset:x,$subscribe(_,P={}){const U=tl(f,_,P.detached,()=>J()),J=s.run(()=>We(()=>r.state.value[e],D=>{(P.flush==="sync"?u:c)&&_({storeId:e,type:Or.direct,events:p},D)},Qt({},l,P)));return U},$dispose:C},$=gt(S);r._s.set(e,$);const b=(r._a&&r._a.runWithContext||vg)(()=>r._e.run(()=>(s=Ec()).run(()=>t({action:E}))));for(const _ in b){const P=b[_];if(ge(P)&&!Cg(P)||Ht(P))i||(v&&bg(P)&&(ge(P)?P.value=v[_]:Xi(P,v[_])),r.state.value[e][_]=P);else if(typeof P=="function"){const U=E(P,_);b[_]=U,a.actions[_]=P}}return Qt($,b),Qt(re($),b),Object.defineProperty($,"$state",{get:()=>r.state.value[e],set:_=>{w(P=>{Qt(P,_)})}}),r._p.forEach(_=>{Qt($,s.run(()=>_({store:$,app:r._a,pinia:r,options:a})))}),v&&i&&n.hydrate&&n.hydrate($.$state,v),c=!0,u=!0,$}/*! #__NO_SIDE_EFFECTS__ */function $1(e,t,n){let r,o;const i=typeof t=="function";typeof e=="string"?(r=e,o=i?n:t):(o=e,r=e.id);function s(a,l){const c=Ap();return a=a||(c?me(Wu,null):null),a&&qo(a),a=Gu,a._s.has(r)||(i?Ku(r,t,o,a):xg(r,o,a)),a._s.get(r)}return s.$id=r,s}const _g={token:{colorPrimary:"#7c3aed",colorInfo:"#7c3aed",colorSuccess:"#10b981",colorWarning:"#f59e0b",colorError:"#ef4444",colorText:"#171717",colorTextSecondary:"#525252",colorTextTertiary:"#737373",colorTextQuaternary:"#a3a3a3",colorBgContainer:"#ffffff",colorBgLayout:"#fafafa",colorBgElevated:"#ffffff",colorBorder:"#e5e5e5",colorBorderSecondary:"#f0f0f0",fontSize:14,fontSizeSM:12,fontSizeLG:16,fontSizeXL:20,borderRadius:8,borderRadiusSM:6,borderRadiusLG:12,marginXS:4,marginSM:8,margin:16,marginMD:16,marginLG:24,marginXL:32,boxShadow:"0 1px 2px 0 rgba(0, 0, 0, 0.05)",boxShadowSecondary:"0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05)",controlHeight:32,controlHeightSM:24,controlHeightLG:40},components:{Menu:{itemSelectedBg:"#ede9fe",itemSelectedColor:"#7c3aed",itemHoverBg:"#f5f3ff",itemHoverColor:"#7c3aed",itemColor:"#525252"},Tabs:{itemSelectedColor:"#7c3aed",itemHoverColor:"#6d28d9"},Select:{colorPrimary:"#7c3aed",colorPrimaryHover:"#6d28d9"}}};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 Sg(e,t){if(Dr(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Dr(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function wg(e){var t=Sg(e,"string");return Dr(t)=="symbol"?t:t+""}function Eg(e,t,n){return(t=wg(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function rl(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function Te(e){for(var t=1;ttypeof e=="function",Og=Array.isArray,Tg=e=>typeof e=="string",Ag=e=>e!==null&&typeof e=="object",$g=/^on[^a-z]/,Ig=e=>$g.test(e),Vs=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},Rg=/-(\w)/g,qu=Vs(e=>e.replace(Rg,(t,n)=>n?n.toUpperCase():"")),Mg=/\B([A-Z])/g,Ng=Vs(e=>e.replace(Mg,"-$1").toLowerCase()),I1=Vs(e=>e.charAt(0).toUpperCase()+e.slice(1)),kg=Object.prototype.hasOwnProperty,ol=(e,t)=>kg.call(e,t);function jg(e,t,n,r){const o=e[n];if(o!=null){const i=ol(o,"default");if(i&&r===void 0){const s=o.default;r=o.type!==Function&&Pg(s)?s():s}o.type===Boolean&&(!ol(t,n)&&!i?r=!1:r===""&&(r=!0))}return r}function R1(e){return Object.keys(e).reduce((t,n)=>((n.startsWith("data-")||n.startsWith("aria-"))&&(t[n]=e[n]),t),{})}function M1(e){return typeof e=="number"?`${e}px`:e}function kn(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;return typeof e=="function"?e(t):e??n}function Lg(e){let t;const n=new Promise(o=>{t=e(()=>{o(!0)})}),r=()=>{t==null||t()};return r.then=(o,i)=>n.then(o,i),r.promise=n,r}function Ue(){const e=[];for(let t=0;te!=null&&e!=="",Fg=e=>{const t=Object.keys(e),n={},r={},o={};for(let i=0,s=t.length;i0&&arguments[0]!==void 0?arguments[0]:"",t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const n={},r=/;(?![^(]*\))/g,o=/:(.+)/;return typeof e=="object"?e:(e.split(r).forEach(function(i){if(i){const s=i.split(o);if(s.length>1){const a=t?qu(s[0].trim()):s[0].trim();n[a]=s[1].trim()}}}),n)},N1=(e,t)=>e[t]!==void 0,Bg=Symbol("skipFlatten"),Bn=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;const n=Array.isArray(e)?e:[e],r=[];return n.forEach(o=>{Array.isArray(o)?r.push(...Bn(o,t)):o&&o.type===be?o.key===Bg?r.push(o):r.push(...Bn(o.children,t)):o&&vt(o)?t&&!Xu(o)?r.push(o):t||r.push(o):Dg(o)&&r.push(o)}),r},k1=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"default",n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(vt(e))return e.type===be?t==="default"?Bn(e.children):[]:e.children&&e.children[t]?Bn(e.children[t](n)):[];{const r=e.$slots[t]&&e.$slots[t](n);return Bn(r)}},j1=e=>{var t;let n=((t=e==null?void 0:e.vnode)===null||t===void 0?void 0:t.el)||e&&(e.$el||e);for(;n&&!n.tagName;)n=n.nextSibling;return n},L1=e=>{const t={};if(e.$&&e.$.vnode){const n=e.$.vnode.props||{};Object.keys(e.$props).forEach(r=>{const o=e.$props[r],i=Ng(r);(o!==void 0||i in n)&&(t[r]=o)})}else if(vt(e)&&typeof e.type=="object"){const n=e.props||{},r={};Object.keys(n).forEach(i=>{r[qu(i)]=n[i]});const o=e.type.props||{};Object.keys(o).forEach(i=>{const s=jg(o,r,i,r[i]);(s!==void 0||i in r)&&(t[i]=s)})}return t},D1=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"default",n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:e,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0,o;if(e.$){const i=e[t];if(i!==void 0)return typeof i=="function"&&r?i(n):i;o=e.$slots[t],o=r&&o?o(n):o}else if(vt(e)){const i=e.props&&e.props[t];if(i!==void 0&&e.props!==null)return typeof i=="function"&&r?i(n):i;e.type===be?o=e.children:e.children&&e.children[t]&&(o=e.children[t],o=r&&o?o(n):o)}return Array.isArray(o)&&(o=Bn(o),o=o.length===1?o[0]:o,o=o.length===0?void 0:o),o};function F1(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,n={};return e.$?n=O(O({},n),e.$attrs):n=O(O({},n),e.props),Fg(n)[t?"onEvents":"events"]}function H1(e){const n=((vt(e)?e.props:e.$attrs)||{}).class||{};let r={};return typeof n=="string"?n.split(" ").forEach(o=>{r[o.trim()]=!0}):Array.isArray(n)?Ue(n).split(" ").forEach(o=>{r[o.trim()]=!0}):r=O(O({},r),n),r}function B1(e,t){let r=((vt(e)?e.props:e.$attrs)||{}).style||{};return typeof r=="string"&&(r=Hg(r,t)),r}function z1(e){return e.length===1&&e[0].type===be}function Xu(e){return e&&(e.type===Pe||e.type===be&&e.children.length===0||e.type===qr&&e.children.trim()==="")}function Gs(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];const t=[];return e.forEach(n=>{Array.isArray(n)?t.push(...n):(n==null?void 0:n.type)===be?t.push(...Gs(n.children)):t.push(n)}),t.filter(n=>!Xu(n))}function V1(e){if(e){const t=Gs(e);return t.length?t:void 0}else return e}function G1(e){return Array.isArray(e)&&e.length===1&&(e=e[0]),e&&e.__v_isVNode&&typeof e.type!="symbol"}function W1(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"default";var r,o;return(r=t[n])!==null&&r!==void 0?r:(o=e[n])===null||o===void 0?void 0:o.call(e)}const zg=function(){for(var e=arguments.length,t=new Array(e),n=0;n{const t=e;return t.install=function(n){n.component(t.displayName||t.name,e)},e};function K1(){return{type:[Function,Array]}}function Je(e){return{type:Object,default:e}}function Ci(e){return{type:Boolean,default:e}}function q1(e){return{type:Function,default:e}}function Yi(e,t){return{validator:()=>!0,default:e}}function X1(){return{validator:()=>!0}}function il(e){return{type:Array,default:e}}function sl(e){return{type:String,default:e}}function Vg(e,t){return e?{type:e,default:t}:Yi(t)}const Us="anticon",Yu=Symbol("GlobalFormContextKey"),Gg=e=>{at(Yu,e)},Y1=()=>me(Yu,{validateMessages:j(()=>{})}),Wg=()=>({iconPrefixCls:String,getTargetContainer:{type:Function},getPopupContainer:{type:Function},prefixCls:String,getPrefixCls:{type:Function},renderEmpty:{type:Function},transformCellText:{type:Function},csp:Je(),input:Je(),autoInsertSpaceInButton:{type:Boolean,default:void 0},locale:Je(),pageHeader:Je(),componentSize:{type:String},componentDisabled:{type:Boolean,default:void 0},direction:{type:String,default:"ltr"},space:Je(),virtual:{type:Boolean,default:void 0},dropdownMatchSelectWidth:{type:[Number,Boolean],default:!0},form:Je(),pagination:Je(),theme:Je(),select:Je(),wave:Je()}),Ks=Symbol("configProvider"),Qu={getPrefixCls:(e,t)=>t||(e?`ant-${e}`:"ant"),iconPrefixCls:j(()=>Us),getPopupContainer:j(()=>()=>document.body),direction:j(()=>"ltr")},Ju=()=>me(Ks,Qu),Ug=e=>at(Ks,e),Zu=Symbol("DisabledContextKey"),ef=()=>me(Zu,pt(void 0)),Kg=e=>{const t=ef();return at(Zu,j(()=>{var n;return(n=e.value)!==null&&n!==void 0?n:t.value})),e},qg={items_per_page:"/ page",jump_to:"Go to",jump_to_confirm:"confirm",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"},Xg={locale:"en_US",today:"Today",now:"Now",backToToday:"Back to today",ok:"Ok",clear:"Clear",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",yearFormat:"YYYY",dateFormat:"M/D/YYYY",dayFormat:"D",dateTimeFormat:"M/D/YYYY HH:mm:ss",monthBeforeYear:!0,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"},tf={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},al={lang:O({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"]},Xg),timePickerLocale:O({},tf)},Xe="${label} is not a valid ${type}",qn={locale:"en",Pagination:qg,DatePicker:al,TimePicker:tf,Calendar:al,global:{placeholder:"Please select"},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",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"},PageHeader:{back:"Back"},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:Xe,method:Xe,array:Xe,object:Xe,number:Xe,date:Xe,boolean:Xe,integer:Xe,float:Xe,regexp:Xe,email:Xe,url:Xe,hex:Xe},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"}},nf=_e({compatConfig:{MODE:3},name:"LocaleReceiver",props:{componentName:String,defaultLocale:{type:[Object,Function]},children:{type:Function}},setup(e,t){let{slots:n}=t;const r=me("localeData",{}),o=j(()=>{const{componentName:s="global",defaultLocale:a}=e,l=a||qn[s||"global"],{antLocale:c}=r,u=s&&c?c[s]:{};return O(O({},typeof l=="function"?l():l),u||{})}),i=j(()=>{const{antLocale:s}=r,a=s&&s.locale;return s&&s.exist&&!a?qn.locale:a});return()=>{const s=e.children||n.default,{antLocale:a}=r;return s==null?void 0:s(o.value,i.value,a)}}});function Q1(e,t,n){const r=me("localeData",{});return[j(()=>{const{antLocale:i}=r,s=Ne(t)||qn[e||"global"],a=e&&i?i[e]:{};return O(O(O({},typeof s=="function"?s():s),a||{}),Ne(n)||{})})]}function qs(e){for(var t=0,n,r=0,o=e.length;o>=4;++r,o-=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(o){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)}const ll="%";class Yg{constructor(t){this.cache=new Map,this.instanceId=t}get(t){return this.cache.get(Array.isArray(t)?t.join(ll):t)||null}update(t,n){const r=Array.isArray(t)?t.join(ll):t,o=this.cache.get(r),i=n(o);i===null?this.cache.delete(r):this.cache.set(r,i)}}const rf="data-token-hash",bn="data-css-hash",jn="__cssinjs_instance__";function Fr(){const e=Math.random().toString(12).slice(2);if(typeof document<"u"&&document.head&&document.body){const t=document.body.querySelectorAll(`style[${bn}]`)||[],{firstChild:n}=document.head;Array.from(t).forEach(o=>{o[jn]=o[jn]||e,o[jn]===e&&document.head.insertBefore(o,n)});const r={};Array.from(document.querySelectorAll(`style[${bn}]`)).forEach(o=>{var i;const s=o.getAttribute(bn);r[s]?o[jn]===e&&((i=o.parentNode)===null||i===void 0||i.removeChild(o)):r[s]=!0})}return new Yg(e)}const of=Symbol("StyleContextKey"),Qg=()=>{var e,t,n;const r=En();let o;if(r&&r.appContext){const i=(n=(t=(e=r.appContext)===null||e===void 0?void 0:e.config)===null||t===void 0?void 0:t.globalProperties)===null||n===void 0?void 0:n.__ANTDV_CSSINJS_CACHE__;i?o=i:(o=Fr(),r.appContext.config.globalProperties&&(r.appContext.config.globalProperties.__ANTDV_CSSINJS_CACHE__=o))}else o=Fr();return o},sf={cache:Fr(),defaultCache:!0,hashPriority:"low"},Xo=()=>{const e=Qg();return me(of,st(O(O({},sf),{cache:e})))},Jg=e=>{const t=Xo(),n=st(O(O({},sf),{cache:Fr()}));return We([()=>Ne(e),t],()=>{const r=O({},t.value),o=Ne(e);Object.keys(o).forEach(s=>{const a=o[s];o[s]!==void 0&&(r[s]=a)});const{cache:i}=o;r.cache=r.cache||Fr(),r.defaultCache=!i&&t.value.defaultCache,n.value=r},{immediate:!0}),at(of,n),n},Zg=()=>({autoClear:Ci(),mock:sl(),cache:Je(),defaultCache:Ci(),hashPriority:sl(),container:Vg(),ssrInline:Ci(),transformers:il(),linters:il()});Ws(_e({name:"AStyleProvider",inheritAttrs:!1,props:Zg(),setup(e,t){let{slots:n}=t;return Jg(e),()=>{var r;return(r=n.default)===null||r===void 0?void 0:r.call(n)}}}));function af(e,t,n,r){const o=Xo(),i=st(""),s=st();Vo(()=>{i.value=[e,...t.value].join("%")});const a=l=>{o.value.cache.update(l,c=>{const[u=0,f]=c||[];return u-1===0?(r==null||r(f,!1),null):[u-1,f]})};return We(i,(l,c)=>{c&&a(c),o.value.cache.update(l,u=>{const[f=0,d]=u||[],v=d||n();return[f+1,v]}),s.value=o.value.cache.get(i.value)[1]},{immediate:!0}),Ns(()=>{a(i.value)}),s}function rr(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function em(e,t){return e&&e.contains?e.contains(t):!1}const cl="data-vc-order",tm="vc-util-key",Qi=new Map;function lf(){let{mark:e}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return e?e.startsWith("data-")?e:`data-${e}`:tm}function Yo(e){return e.attachTo?e.attachTo:document.querySelector("head")||document.body}function nm(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function cf(e){return Array.from((Qi.get(e)||e).children).filter(t=>t.tagName==="STYLE")}function uf(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!rr())return null;const{csp:n,prepend:r}=t,o=document.createElement("style");o.setAttribute(cl,nm(r)),n!=null&&n.nonce&&(o.nonce=n==null?void 0:n.nonce),o.innerHTML=e;const i=Yo(t),{firstChild:s}=i;if(r){if(r==="queue"){const a=cf(i).filter(l=>["prepend","prependQueue"].includes(l.getAttribute(cl)));if(a.length)return i.insertBefore(o,a[a.length-1].nextSibling),o}i.insertBefore(o,s)}else i.appendChild(o);return o}function ff(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const n=Yo(t);return cf(n).find(r=>r.getAttribute(lf(t))===e)}function df(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const n=ff(e,t);n&&Yo(t).removeChild(n)}function rm(e,t){const n=Qi.get(e);if(!n||!em(document,n)){const r=uf("",t),{parentNode:o}=r;Qi.set(e,o),e.removeChild(r)}}function Ao(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};var r,o,i;const s=Yo(n);rm(s,n);const a=ff(t,n);if(a)return!((r=n.csp)===null||r===void 0)&&r.nonce&&a.nonce!==((o=n.csp)===null||o===void 0?void 0:o.nonce)&&(a.nonce=(i=n.csp)===null||i===void 0?void 0:i.nonce),a.innerHTML!==e&&(a.innerHTML=e),a;const l=uf(e,n);return l.setAttribute(lf(n),t),l}function om(e,t){if(e.length!==t.length)return!1;for(let n=0;n1&&arguments[1]!==void 0?arguments[1]:!1,r={map:this.cache};return t.forEach(o=>{var i;r?r=(i=r==null?void 0:r.map)===null||i===void 0?void 0:i.get(o):r=void 0}),r!=null&&r.value&&n&&(r.value[1]=this.cacheCallTimes++),r==null?void 0:r.value}get(t){var n;return(n=this.internalGet(t,!0))===null||n===void 0?void 0:n[0]}has(t){return!!this.internalGet(t)}set(t,n){if(!this.has(t)){if(this.size()+1>Xn.MAX_CACHE_SIZE+Xn.MAX_CACHE_OFFSET){const[o]=this.keys.reduce((i,s)=>{const[,a]=i;return this.internalGet(s)[1]{if(i===t.length-1)r.set(o,{value:[n,this.cacheCallTimes++]});else{const s=r.get(o);s?s.map||(s.map=new Map):r.set(o,{map:new Map}),r=r.get(o).map}})}deleteByPath(t,n){var r;const o=t.get(n[0]);if(n.length===1)return o.map?t.set(n[0],{map:o.map}):t.delete(n[0]),(r=o.value)===null||r===void 0?void 0:r[0];const i=this.deleteByPath(o.map,n.slice(1));return(!o.map||o.map.size===0)&&!o.value&&t.delete(n[0]),i}delete(t){if(this.has(t))return this.keys=this.keys.filter(n=>!om(n,t)),this.deleteByPath(this.cache,t)}}Xn.MAX_CACHE_SIZE=20;Xn.MAX_CACHE_OFFSET=5;function im(){}let pf=im,ul=0;class hf{constructor(t){this.derivatives=Array.isArray(t)?t:[t],this.id=ul,t.length===0&&pf(t.length>0),ul+=1}getDerivativeToken(t){return this.derivatives.reduce((n,r)=>r(t,n),void 0)}}const xi=new Xn;function gf(e){const t=Array.isArray(e)?e:[e];return xi.has(t)||xi.set(t,new hf(t)),xi.get(t)}const fl=new WeakMap;function $o(e){let t=fl.get(e)||"";return t||(Object.keys(e).forEach(n=>{const r=e[n];t+=n,r instanceof hf?t+=r.id:r&&typeof r=="object"?t+=$o(r):t+=r}),fl.set(e,t)),t}function sm(e,t){return qs(`${t}_${$o(e)}`)}const Tr=`random-${Date.now()}-${Math.random()}`.replace(/\./g,""),mf="_bAmBoO_";function am(e,t,n){var r,o;if(rr()){Ao(e,Tr);const i=document.createElement("div");i.style.position="fixed",i.style.left="0",i.style.top="0",t==null||t(i),document.body.appendChild(i);const s=n?n(i):(r=getComputedStyle(i).content)===null||r===void 0?void 0:r.includes(mf);return(o=i.parentNode)===null||o===void 0||o.removeChild(i),df(Tr),s}return!1}let _i;function lm(){return _i===void 0&&(_i=am(`@layer ${Tr} { .${Tr} { content: "${mf}"!important; } }`,e=>{e.className=Tr})),_i}const dl={},cm="css",pn=new Map;function um(e){pn.set(e,(pn.get(e)||0)+1)}function fm(e,t){typeof document<"u"&&document.querySelectorAll(`style[${rf}="${e}"]`).forEach(r=>{var o;r[jn]===t&&((o=r.parentNode)===null||o===void 0||o.removeChild(r))})}const dm=0;function pm(e,t){pn.set(e,(pn.get(e)||0)-1);const n=Array.from(pn.keys()),r=n.filter(o=>(pn.get(o)||0)<=0);n.length-r.length>dm&&r.forEach(o=>{fm(o,t),pn.delete(o)})}const hm=(e,t,n,r)=>{const o=n.getDerivativeToken(e);let i=O(O({},o),t);return r&&(i=r(i)),i};function gm(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:pt({});const r=Xo(),o=j(()=>O({},...t.value)),i=j(()=>$o(o.value)),s=j(()=>$o(n.value.override||dl));return af("token",j(()=>[n.value.salt||"",e.value.id,i.value,s.value]),()=>{const{salt:l="",override:c=dl,formatToken:u,getComputedToken:f}=n.value,d=f?f(o.value,c,e.value):hm(o.value,c,e.value,u),p=sm(d,l);d._tokenKey=p,um(p);const v=`${cm}-${qs(p)}`;return d._hashId=v,[d,v]},l=>{var c;pm(l[0]._tokenKey,(c=r.value)===null||c===void 0?void 0:c.cache.instanceId)})}var mm={animationIterationCount:1,aspectRatio: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},vf="comm",yf="rule",bf="decl",vm="@import",ym="@namespace",bm="@keyframes",Cm="@layer",xm=Math.abs,Ar=String.fromCharCode;function Cf(e){return e.trim()}function Ji(e,t,n){return e.replace(t,n)}function zn(e,t){return e.charCodeAt(t)|0}function Yn(e,t,n){return e.slice(t,n)}function Ot(e){return e.length}function _m(e){return e.length}function no(e,t){return t.push(e),e}var Qo=1,Qn=1,xf=0,ct=0,Ce=0,or="";function Xs(e,t,n,r,o,i,s,a){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:Qo,column:Qn,length:s,return:"",siblings:a}}function Sm(){return Ce}function wm(){return Ce=ct>0?zn(or,--ct):0,Qn--,Ce===10&&(Qn=1,Qo--),Ce}function ht(){return Ce=ct2||Hr(Ce)>3?"":" "}function Tm(e,t){for(;--t&&ht()&&!(Ce<48||Ce>102||Ce>57&&Ce<65||Ce>70&&Ce<97););return Jo(e,uo()+(t<6&&en()==32&&ht()==32))}function Zi(e){for(;ht();)switch(Ce){case e:return ct;case 34:case 39:e!==34&&e!==39&&Zi(Ce);break;case 40:e===41&&Zi(e);break;case 92:ht();break}return ct}function Am(e,t){for(;ht()&&e+Ce!==57;)if(e+Ce===84&&en()===47)break;return"/*"+Jo(t,ct-1)+"*"+Ar(e===47?e:ht())}function $m(e){for(;!Hr(en());)ht();return Jo(e,ct)}function Im(e){return Pm(fo("",null,null,null,[""],e=Em(e),0,[0],e))}function fo(e,t,n,r,o,i,s,a,l){for(var c=0,u=0,f=s,d=0,p=0,v=0,m=1,w=1,x=1,C=0,E=0,S="",$=o,L=i,b=r,_=S;w;)switch(v=E,E=ht()){case 40:v!=108&&zn(_,f-1)==58?(C++,_+="("):_+=Si(E);break;case 41:C--,_+=")";break;case 34:case 39:case 91:_+=Si(E);break;case 9:case 10:case 13:case 32:if(C>0){_+=Ar(E);break}_+=Om(v);break;case 92:_+=Tm(uo()-1,7);continue;case 47:switch(en()){case 42:case 47:no(Rm(Am(ht(),uo()),t,n,l),l),(Hr(v||1)==5||Hr(en()||1)==5)&&Ot(_)&&Yn(_,-1,void 0)!==" "&&(_+=" ");break;default:_+="/"}break;case 123*m:a[c++]=Ot(_)*x;case 125*m:case 59:case 0:if(C>0&&E){_+=Ar(E);break}switch(E){case 0:case 125:w=0;case 59+u:x==-1&&(_=Ji(_,/\f/g,"")),p>0&&(Ot(_)-f||m===0)&&no(p>32?hl(_+";",r,n,f-1,l):hl(Ji(_," ","")+";",r,n,f-2,l),l);break;case 59:_+=";";default:if(no(b=pl(_,t,n,c,u,o,a,S,$=[],L=[],f,i),i),E===123)if(u===0)fo(_,t,b,b,$,i,f,a,L);else{switch(d){case 99:if(zn(_,3)===110)break;case 108:if(zn(_,2)===97)break;default:u=0;case 100:case 109:case 115:}u?fo(e,b,b,r&&no(pl(e,b,b,0,0,o,a,S,o,$=[],f,L),L),o,L,f,a,r?$:L):fo(_,b,b,b,[""],L,0,a,L)}}c=u=p=0,m=x=1,S=_="",f=s;break;case 58:f=1+Ot(_),p=v;default:if(m<1){if(E==123)--m;else if(E==125&&m++==0&&wm()==125)continue}switch(_+=Ar(E),E*m){case 38:x=u>0?1:(_+="\f",-1);break;case 44:if(C>0)break;a[c++]=(Ot(_)-1)*x,x=1;break;case 64:en()===45&&(_+=Si(ht())),d=en(),u=f=Ot(S=_+=$m(uo())),E++;break;case 45:v===45&&Ot(_)==2&&(m=0)}}return i}function pl(e,t,n,r,o,i,s,a,l,c,u,f){for(var d=o-1,p=o===0?i:[""],v=_m(p),m=0,w=0,x=0;m0?p[C]+" "+E:Ji(E,/&\f/g,p[C])))&&(l[x++]=S);return Xs(e,t,n,o===0?yf:a,l,c,u,f)}function Rm(e,t,n,r){return Xs(e,t,n,vf,Ar(Sm()),Yn(e,2,-2),0,r)}function hl(e,t,n,r,o){return Xs(e,t,n,bf,Yn(e,0,r),Yn(e,r+1,-1),r,o)}function es(e,t){for(var n="",r=0;r{const[i,s]=o.split(":");Cn[i]=s});const r=document.querySelector(`style[${gl}]`);r&&(_f=!1,(e=r.parentNode)===null||e===void 0||e.removeChild(r)),document.body.removeChild(t)}}function jm(e){return km(),!!Cn[e]}function Lm(e){const t=Cn[e];let n=null;if(t&&rr())if(_f)n=Nm;else{const r=document.querySelector(`style[${bn}="${Cn[e]}"]`);r?n=r.innerHTML:delete Cn[e]}return[n,t]}const ml=rr(),Dm="_skip_check_",Sf="_multi_value_";function vl(e){return es(Im(e),Mm).replace(/\{%%%\:[^;];}/g,";")}function Fm(e){return typeof e=="object"&&e&&(Dm in e||Sf in e)}function Hm(e,t,n){if(!t)return e;const r=`.${t}`,o=n==="low"?`:where(${r})`:r;return e.split(",").map(s=>{var a;const l=s.trim().split(/\s+/);let c=l[0]||"";const u=((a=c.match(/^\w+/))===null||a===void 0?void 0:a[0])||"";return c=`${u}${o}${c.slice(u.length)}`,[c,...l.slice(1)].join(" ")}).join(",")}const yl=new Set,ts=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{root:n,injectHash:r,parentSelectors:o}=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{root:!0,parentSelectors:[]};const{hashId:i,layer:s,path:a,hashPriority:l,transformers:c=[],linters:u=[]}=t;let f="",d={};function p(w){const x=w.getName(i);if(!d[x]){const[C]=ts(w.style,t,{root:!1,parentSelectors:o});d[x]=`@keyframes ${w.getName(i)}${C}`}}function v(w){let x=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return w.forEach(C=>{Array.isArray(C)?v(C,x):C&&x.push(C)}),x}if(v(Array.isArray(e)?e:[e]).forEach(w=>{const x=typeof w=="string"&&!n?{}:w;if(typeof x=="string")f+=`${x} +`;else if(x._keyframe)p(x);else{const C=c.reduce((E,S)=>{var $;return(($=S==null?void 0:S.visit)===null||$===void 0?void 0:$.call(S,E))||E},x);Object.keys(C).forEach(E=>{var S;const $=C[E];if(typeof $=="object"&&$&&(E!=="animationName"||!$._keyframe)&&!Fm($)){let L=!1,b=E.trim(),_=!1;(n||r)&&i?b.startsWith("@")?L=!0:b=Hm(E,i,l):n&&!i&&(b==="&"||b==="")&&(b="",_=!0);const[P,U]=ts($,t,{root:_,injectHash:L,parentSelectors:[...o,b]});d=O(O({},d),U),f+=`${b}${P}`}else{let L=function(_,P){const U=_.replace(/[A-Z]/g,D=>`-${D.toLowerCase()}`);let J=P;!mm[_]&&typeof J=="number"&&J!==0&&(J=`${J}px`),_==="animationName"&&(P!=null&&P._keyframe)&&(p(P),J=P.getName(i)),f+=`${U}:${J};`};const b=(S=$==null?void 0:$.value)!==null&&S!==void 0?S:$;typeof $=="object"&&($!=null&&$[Sf])&&Array.isArray(b)?b.forEach(_=>{L(E,_)}):L(E,b)}})}}),!n)f=`{${f}}`;else if(s&&lm()){const w=s.split(",");f=`@layer ${w[w.length-1].trim()} {${f}}`,w.length>1&&(f=`@layer ${s}{%%%:%}${f}`)}return[f,d]};function Bm(e,t){return qs(`${e.join("%")}${t}`)}function ns(e,t){const n=Xo(),r=j(()=>e.value.token._tokenKey),o=j(()=>[r.value,...e.value.path]);let i=ml;return af("style",o,()=>{const{path:s,hashId:a,layer:l,nonce:c,clientOnly:u,order:f=0}=e.value,d=o.value.join("|");if(jm(d)){const[b,_]=Lm(d);if(b)return[b,r.value,_,{},u,f]}const p=t(),{hashPriority:v,container:m,transformers:w,linters:x,cache:C}=n.value,[E,S]=ts(p,{hashId:a,hashPriority:v,layer:l,path:s.join("-"),transformers:w,linters:x}),$=vl(E),L=Bm(o.value,$);if(i){const b={mark:bn,prepend:"queue",attachTo:m,priority:f},_=typeof c=="function"?c():c;_&&(b.csp={nonce:_});const P=Ao($,L,b);P[jn]=C.instanceId,P.setAttribute(rf,r.value),Object.keys(S).forEach(U=>{yl.has(U)||(yl.add(U),Ao(vl(S[U]),`_effect-${U}`,{mark:bn,prepend:"queue",attachTo:m}))})}return[$,r.value,L,S,u,f]},(s,a)=>{let[,,l]=s;(a||n.value.autoClear)&&ml&&df(l,{mark:bn})}),s=>s}class xn{constructor(t,n){this._keyframe=!0,this.name=t,this.style=n}getName(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return t?`${t}-${this.name}`:this.name}}const zm="4.2.6";function $e(e,t){Vm(e)&&(e="100%");var n=Gm(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 ro(e){return Math.min(1,Math.max(0,e))}function Vm(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function Gm(e){return typeof e=="string"&&e.indexOf("%")!==-1}function wf(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function oo(e){return e<=1?"".concat(Number(e)*100,"%"):e}function gn(e){return e.length===1?"0"+e:String(e)}function Wm(e,t,n){return{r:$e(e,255)*255,g:$e(t,255)*255,b:$e(n,255)*255}}function bl(e,t,n){e=$e(e,255),t=$e(t,255),n=$e(n,255);var r=Math.max(e,t,n),o=Math.min(e,t,n),i=0,s=0,a=(r+o)/2;if(r===o)s=0,i=0;else{var l=r-o;switch(s=a>.5?l/(2-r-o):l/(r+o),r){case e:i=(t-n)/l+(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 Um(e,t,n){var r,o,i;if(e=$e(e,360),t=$e(t,100),n=$e(n,100),t===0)o=n,i=n,r=n;else{var s=n<.5?n*(1+t):n+t-n*t,a=2*n-s;r=wi(a,s,e+1/3),o=wi(a,s,e),i=wi(a,s,e-1/3)}return{r:r*255,g:o*255,b:i*255}}function rs(e,t,n){e=$e(e,255),t=$e(t,255),n=$e(n,255);var r=Math.max(e,t,n),o=Math.min(e,t,n),i=0,s=r,a=r-o,l=r===0?0:a/r;if(r===o)i=0;else{switch(r){case e:i=(t-n)/a+(t>16,g:(e&65280)>>8,b:e&255}}var is={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 Mn(e){var t={r:0,g:0,b:0},n=1,r=null,o=null,i=null,s=!1,a=!1;return typeof e=="string"&&(e=Zm(e)),typeof e=="object"&&(Mt(e.r)&&Mt(e.g)&&Mt(e.b)?(t=Wm(e.r,e.g,e.b),s=!0,a=String(e.r).substr(-1)==="%"?"prgb":"rgb"):Mt(e.h)&&Mt(e.s)&&Mt(e.v)?(r=oo(e.s),o=oo(e.v),t=Km(e.h,r,o),s=!0,a="hsv"):Mt(e.h)&&Mt(e.s)&&Mt(e.l)&&(r=oo(e.s),i=oo(e.l),t=Um(e.h,r,i),s=!0,a="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(n=e.a)),n=wf(n),{ok:s,format:e.format||a,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 Qm="[-\\+]?\\d+%?",Jm="[-\\+]?\\d*\\.\\d+%?",tn="(?:".concat(Jm,")|(?:").concat(Qm,")"),Ei="[\\s|\\(]+(".concat(tn,")[,|\\s]+(").concat(tn,")[,|\\s]+(").concat(tn,")\\s*\\)?"),Pi="[\\s|\\(]+(".concat(tn,")[,|\\s]+(").concat(tn,")[,|\\s]+(").concat(tn,")[,|\\s]+(").concat(tn,")\\s*\\)?"),ut={CSS_UNIT:new RegExp(tn),rgb:new RegExp("rgb"+Ei),rgba:new RegExp("rgba"+Pi),hsl:new RegExp("hsl"+Ei),hsla:new RegExp("hsla"+Pi),hsv:new RegExp("hsv"+Ei),hsva:new RegExp("hsva"+Pi),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 Zm(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var t=!1;if(is[e])e=is[e],t=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var n=ut.rgb.exec(e);return n?{r:n[1],g:n[2],b:n[3]}:(n=ut.rgba.exec(e),n?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=ut.hsl.exec(e),n?{h:n[1],s:n[2],l:n[3]}:(n=ut.hsla.exec(e),n?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=ut.hsv.exec(e),n?{h:n[1],s:n[2],v:n[3]}:(n=ut.hsva.exec(e),n?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=ut.hex8.exec(e),n?{r:Qe(n[1]),g:Qe(n[2]),b:Qe(n[3]),a:Cl(n[4]),format:t?"name":"hex8"}:(n=ut.hex6.exec(e),n?{r:Qe(n[1]),g:Qe(n[2]),b:Qe(n[3]),format:t?"name":"hex"}:(n=ut.hex4.exec(e),n?{r:Qe(n[1]+n[1]),g:Qe(n[2]+n[2]),b:Qe(n[3]+n[3]),a:Cl(n[4]+n[4]),format:t?"name":"hex8"}:(n=ut.hex3.exec(e),n?{r:Qe(n[1]+n[1]),g:Qe(n[2]+n[2]),b:Qe(n[3]+n[3]),format:t?"name":"hex"}:!1)))))))))}function Mt(e){return!!ut.CSS_UNIT.exec(String(e))}var Ae=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=Ym(t)),this.originalInput=t;var o=Mn(t);this.originalInput=t,this.r=o.r,this.g=o.g,this.b=o.b,this.a=o.a,this.roundA=Math.round(100*this.a)/100,this.format=(r=n.format)!==null&&r!==void 0?r:o.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=o.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,o,i=t.r/255,s=t.g/255,a=t.b/255;return i<=.03928?n=i/12.92:n=Math.pow((i+.055)/1.055,2.4),s<=.03928?r=s/12.92:r=Math.pow((s+.055)/1.055,2.4),a<=.03928?o=a/12.92:o=Math.pow((a+.055)/1.055,2.4),.2126*n+.7152*r+.0722*o},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(t){return this.a=wf(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=rs(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=rs(this.r,this.g,this.b),n=Math.round(t.h*360),r=Math.round(t.s*100),o=Math.round(t.v*100);return this.a===1?"hsv(".concat(n,", ").concat(r,"%, ").concat(o,"%)"):"hsva(".concat(n,", ").concat(r,"%, ").concat(o,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var t=bl(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=bl(this.r,this.g,this.b),n=Math.round(t.h*360),r=Math.round(t.s*100),o=Math.round(t.l*100);return this.a===1?"hsl(".concat(n,", ").concat(r,"%, ").concat(o,"%)"):"hsla(".concat(n,", ").concat(r,"%, ").concat(o,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(t){return t===void 0&&(t=!1),os(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),qm(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($e(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($e(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="#"+os(this.r,this.g,this.b,!1),n=0,r=Object.entries(is);n=0,i=!n&&o&&(t.startsWith("hex")||t==="name");return i?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=ro(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=ro(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=ro(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=ro(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(),o=new e(t).toRgb(),i=n/100,s={r:(o.r-r.r)*i+r.r,g:(o.g-r.g)*i+r.g,b:(o.b-r.b)*i+r.b,a:(o.a-r.a)*i+r.a};return new e(s)},e.prototype.analogous=function(t,n){t===void 0&&(t=6),n===void 0&&(n=30);var r=this.toHsl(),o=360/n,i=[this];for(r.h=(r.h-(o*t>>1)+720)%360;--t;)r.h=(r.h+o)%360,i.push(new e(r));return i},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,o=n.s,i=n.v,s=[],a=1/t;t--;)s.push(new e({h:r,s:o,v:i})),i=(i+a)%1;return s},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(),o=n.a+r.a*(1-n.a);return new e({r:(n.r*n.a+r.r*r.a*(1-n.a))/o,g:(n.g*n.a+r.g*r.a*(1-n.a))/o,b:(n.b*n.a+r.b*r.a*(1-n.a))/o,a:o})},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,o=[this],i=360/t,s=1;s=60&&Math.round(e.h)<=240?r=n?Math.round(e.h)-io*t:Math.round(e.h)+io*t:r=n?Math.round(e.h)+io*t:Math.round(e.h)-io*t,r<0?r+=360:r>=360&&(r-=360),r}function wl(e,t,n){if(e.h===0&&e.s===0)return e.s;var r;return n?r=e.s-xl*t:t===Pf?r=e.s+xl:r=e.s+e0*t,r>1&&(r=1),n&&t===Ef&&r>.1&&(r=.1),r<.06&&(r=.06),Number(r.toFixed(2))}function El(e,t,n){var r;return n?r=e.v+t0*t:r=e.v-n0*t,r>1&&(r=1),Number(r.toFixed(2))}function Sn(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[],r=Mn(e),o=Ef;o>0;o-=1){var i=_l(r),s=so(Mn({h:Sl(i,o,!0),s:wl(i,o,!0),v:El(i,o,!0)}));n.push(s)}n.push(so(r));for(var a=1;a<=Pf;a+=1){var l=_l(r),c=so(Mn({h:Sl(l,a),s:wl(l,a),v:El(l,a)}));n.push(c)}return t.theme==="dark"?r0.map(function(u){var f=u.index,d=u.opacity,p=so(o0(Mn(t.backgroundColor||"#141414"),Mn(n[f]),d*100));return p}):n}var Oi={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1890FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},$r={},Ti={};Object.keys(Oi).forEach(function(e){$r[e]=Sn(Oi[e]),$r[e].primary=$r[e][5],Ti[e]=Sn(Oi[e],{theme:"dark",backgroundColor:"#141414"}),Ti[e].primary=Ti[e][5]});var J1=$r.gold,i0=$r.blue;const s0=e=>{const{controlHeight:t}=e;return{controlHeightSM:t*.75,controlHeightXS:t*.5,controlHeightLG:t*1.25}};function a0(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 Of={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"},Zo=O(O({},Of),{colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",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'`,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});function l0(e,t){let{generateColorPalettes:n,generateNeutralColorPalettes:r}=t;const{colorSuccess:o,colorWarning:i,colorError:s,colorInfo:a,colorPrimary:l,colorBgBase:c,colorTextBase:u}=e,f=n(l),d=n(o),p=n(i),v=n(s),m=n(a),w=r(c,u);return O(O({},w),{colorPrimaryBg:f[1],colorPrimaryBgHover:f[2],colorPrimaryBorder:f[3],colorPrimaryBorderHover:f[4],colorPrimaryHover:f[5],colorPrimary:f[6],colorPrimaryActive:f[7],colorPrimaryTextHover:f[8],colorPrimaryText:f[9],colorPrimaryTextActive:f[10],colorSuccessBg:d[1],colorSuccessBgHover:d[2],colorSuccessBorder:d[3],colorSuccessBorderHover:d[4],colorSuccessHover:d[4],colorSuccess:d[6],colorSuccessActive:d[7],colorSuccessTextHover:d[8],colorSuccessText:d[9],colorSuccessTextActive:d[10],colorErrorBg:v[1],colorErrorBgHover:v[2],colorErrorBorder:v[3],colorErrorBorderHover:v[4],colorErrorHover:v[5],colorError:v[6],colorErrorActive:v[7],colorErrorTextHover:v[8],colorErrorText:v[9],colorErrorTextActive:v[10],colorWarningBg:p[1],colorWarningBgHover:p[2],colorWarningBorder:p[3],colorWarningBorderHover:p[4],colorWarningHover:p[4],colorWarning:p[6],colorWarningActive:p[7],colorWarningTextHover:p[8],colorWarningText:p[9],colorWarningTextActive:p[10],colorInfoBg:m[1],colorInfoBgHover:m[2],colorInfoBorder:m[3],colorInfoBorderHover:m[4],colorInfoHover:m[4],colorInfo:m[6],colorInfoActive:m[7],colorInfoTextHover:m[8],colorInfoText:m[9],colorInfoTextActive:m[10],colorBgMask:new Ae("#000").setAlpha(.45).toRgbString(),colorWhite:"#fff"})}const c0=e=>{let t=e,n=e,r=e,o=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?o=4:e>=8&&(o=6),{borderRadius:e>16?16:e,borderRadiusXS:r,borderRadiusSM:n,borderRadiusLG:t,borderRadiusOuter:o}};function u0(e){const{motionUnit:t,motionBase:n,borderRadius:r,lineWidth:o}=e;return O({motionDurationFast:`${(n+t).toFixed(1)}s`,motionDurationMid:`${(n+t*2).toFixed(1)}s`,motionDurationSlow:`${(n+t*3).toFixed(1)}s`,lineWidthBold:o+1},c0(r))}const Nt=(e,t)=>new Ae(e).setAlpha(t).toRgbString(),hr=(e,t)=>new Ae(e).darken(t).toHexString(),f0=e=>{const t=Sn(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]}},d0=(e,t)=>{const n=e||"#fff",r=t||"#000";return{colorBgBase:n,colorTextBase:r,colorText:Nt(r,.88),colorTextSecondary:Nt(r,.65),colorTextTertiary:Nt(r,.45),colorTextQuaternary:Nt(r,.25),colorFill:Nt(r,.15),colorFillSecondary:Nt(r,.06),colorFillTertiary:Nt(r,.04),colorFillQuaternary:Nt(r,.02),colorBgLayout:hr(n,4),colorBgContainer:hr(n,0),colorBgElevated:hr(n,0),colorBgSpotlight:Nt(r,.85),colorBorder:hr(n,15),colorBorderSecondary:hr(n,6)}};function p0(e){const t=new Array(10).fill(null).map((n,r)=>{const o=r-1,i=e*Math.pow(2.71828,o/5),s=r>1?Math.floor(i):Math.ceil(i);return Math.floor(s/2)*2});return t[1]=e,t.map(n=>{const r=n+8;return{size:n,lineHeight:r/n}})}const h0=e=>{const t=p0(e),n=t.map(o=>o.size),r=t.map(o=>o.lineHeight);return{fontSizeSM:n[0],fontSize:n[1],fontSizeLG:n[2],fontSizeXL:n[3],fontSizeHeading1:n[6],fontSizeHeading2:n[5],fontSizeHeading3:n[4],fontSizeHeading4:n[3],fontSizeHeading5:n[2],lineHeight:r[1],lineHeightLG:r[2],lineHeightSM:r[0],lineHeightHeading1:r[6],lineHeightHeading2:r[5],lineHeightHeading3:r[4],lineHeightHeading4:r[3],lineHeightHeading5:r[2]}};function g0(e){const t=Object.keys(Of).map(n=>{const r=Sn(e[n]);return new Array(10).fill(1).reduce((o,i,s)=>(o[`${n}-${s+1}`]=r[s],o),{})}).reduce((n,r)=>(n=O(O({},n),r),n),{});return O(O(O(O(O(O(O({},e),t),l0(e,{generateColorPalettes:f0,generateNeutralColorPalettes:d0})),h0(e.fontSize)),a0(e)),s0(e)),u0(e))}function Ai(e){return e>=0&&e<=255}function ao(e,t){const{r:n,g:r,b:o,a:i}=new Ae(e).toRgb();if(i<1)return e;const{r:s,g:a,b:l}=new Ae(t).toRgb();for(let c=.01;c<=1;c+=.01){const u=Math.round((n-s*(1-c))/c),f=Math.round((r-a*(1-c))/c),d=Math.round((o-l*(1-c))/c);if(Ai(u)&&Ai(f)&&Ai(d))return new Ae({r:u,g:f,b:d,a:Math.round(c*100)/100}).toRgbString()}return new Ae({r:n,g:r,b:o,a:1}).toRgbString()}var m0=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 o=0,r=Object.getOwnPropertySymbols(e);o{delete r[p]});const o=O(O({},n),r),i=480,s=576,a=768,l=992,c=1200,u=1600,f=2e3;return O(O(O({},o),{colorLink:o.colorInfoText,colorLinkHover:o.colorInfoHover,colorLinkActive:o.colorInfoActive,colorFillContent:o.colorFillSecondary,colorFillContentHover:o.colorFill,colorFillAlter:o.colorFillQuaternary,colorBgContainerDisabled:o.colorFillTertiary,colorBorderBg:o.colorBgContainer,colorSplit:ao(o.colorBorderSecondary,o.colorBgContainer),colorTextPlaceholder:o.colorTextQuaternary,colorTextDisabled:o.colorTextQuaternary,colorTextHeading:o.colorText,colorTextLabel:o.colorTextSecondary,colorTextDescription:o.colorTextTertiary,colorTextLightSolid:o.colorWhite,colorHighlight:o.colorError,colorBgTextHover:o.colorFillSecondary,colorBgTextActive:o.colorFill,colorIcon:o.colorTextTertiary,colorIconHover:o.colorText,colorErrorOutline:ao(o.colorErrorBg,o.colorBgContainer),colorWarningOutline:ao(o.colorWarningBg,o.colorBgContainer),fontSizeIcon:o.fontSizeSM,lineWidth:o.lineWidth,controlOutlineWidth:o.lineWidth*2,controlInteractiveSize:o.controlHeight/2,controlItemBgHover:o.colorFillTertiary,controlItemBgActive:o.colorPrimaryBg,controlItemBgActiveHover:o.colorPrimaryBgHover,controlItemBgActiveDisabled:o.colorFill,controlTmpOutline:o.colorFillQuaternary,controlOutline:ao(o.colorPrimaryBg,o.colorBgContainer),lineType:o.lineType,borderRadius:o.borderRadius,borderRadiusXS:o.borderRadiusXS,borderRadiusSM:o.borderRadiusSM,borderRadiusLG:o.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:o.sizeXXS,paddingXS:o.sizeXS,paddingSM:o.sizeSM,padding:o.size,paddingMD:o.sizeMD,paddingLG:o.sizeLG,paddingXL:o.sizeXL,paddingContentHorizontalLG:o.sizeLG,paddingContentVerticalLG:o.sizeMS,paddingContentHorizontal:o.sizeMS,paddingContentVertical:o.sizeSM,paddingContentHorizontalSM:o.size,paddingContentVerticalSM:o.sizeXS,marginXXS:o.sizeXXS,marginXS:o.sizeXS,marginSM:o.sizeSM,margin:o.size,marginMD:o.sizeMD,marginLG:o.sizeLG,marginXL:o.sizeXL,marginXXL:o.sizeXXL,boxShadow:` + 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) + `,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:i,screenXSMin:i,screenXSMax:s-1,screenSM:s,screenSMMin:s,screenSMMax:a-1,screenMD:a,screenMDMin:a,screenMDMax:l-1,screenLG:l,screenLGMin:l,screenLGMax:c-1,screenXL:c,screenXLMin:c,screenXLMax:u-1,screenXXL:u,screenXXLMin:u,screenXXLMax:f-1,screenXXXL:f,screenXXXLMin:f,boxShadowPopoverArrow:"3px 3px 7px rgba(0, 0, 0, 0.1)",boxShadowCard:` + 0 1px 2px -2px ${new Ae("rgba(0, 0, 0, 0.16)").toRgbString()}, + 0 3px 6px 0 ${new Ae("rgba(0, 0, 0, 0.12)").toRgbString()}, + 0 5px 12px 4px ${new Ae("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)}const Z1={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},Tf=e=>({boxSizing:"border-box",margin:0,padding:0,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,listStyle:"none",fontFamily:e.fontFamily}),y0=()=>({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"}}),eC=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),b0=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,\n &:hover":{textDecoration:e.linkHoverDecoration,outline:0},"&:focus":{textDecoration:e.linkFocusDecoration,outline:0},"&[disabled]":{color:e.colorTextDisabled,cursor:"not-allowed"}}}),C0=(e,t)=>{const{fontFamily:n,fontSize:r}=e,o=`[class^="${t}"], [class*=" ${t}"]`;return{[o]:{fontFamily:n,fontSize:r,boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"},[o]:{boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}}}}},x0=e=>({outline:`${e.lineWidthBold}px solid ${e.colorPrimaryBorder}`,outlineOffset:1,transition:"outline-offset 0s, outline 0s"}),tC=e=>({"&:focus-visible":O({},x0(e))});function Ys(e,t,n){return r=>{const o=j(()=>r==null?void 0:r.value),[i,s,a]=ti(),{getPrefixCls:l,iconPrefixCls:c}=Ju(),u=j(()=>l()),f=j(()=>({theme:i.value,token:s.value,hashId:a.value,path:["Shared",u.value]}));ns(f,()=>[{"&":b0(s.value)}]);const d=j(()=>({theme:i.value,token:s.value,hashId:a.value,path:[e,o.value,c.value]}));return[ns(d,()=>{const{token:p,flush:v}=S0(s.value),m=typeof n=="function"?n(p):n,w=O(O({},m),s.value[e]),x=`.${o.value}`,C=ei(p,{componentCls:x,prefixCls:o.value,iconCls:`.${c.value}`,antCls:`.${u.value}`},w),E=t(C,{hashId:a.value,prefixCls:o.value,rootPrefixCls:u.value,iconPrefixCls:c.value,overrideComponentToken:s.value[e]});return v(e,w),[C0(s.value,o.value),E]}),a]}}const Af=typeof CSSINJS_STATISTIC<"u";let ss=!0;function ei(){for(var e=arguments.length,t=new Array(e),n=0;n{Object.keys(o).forEach(s=>{Object.defineProperty(r,s,{configurable:!0,enumerable:!0,get:()=>o[s]})})}),ss=!0,r}function _0(){}function S0(e){let t,n=e,r=_0;return Af&&(t=new Set,n=new Proxy(e,{get(o,i){return ss&&t.add(i),o[i]}}),r=(o,i)=>{Array.from(t)}),{token:n,keys:t,flush:r}}const w0=gf(g0),$f={token:Zo,hashed:!0},If=Symbol("DesignTokenContext"),as=st(),E0=e=>{at(If,e),We(e,()=>{as.value=Ne(e),mp(as)},{immediate:!0,deep:!0})},P0=_e({props:{value:Je()},setup(e,t){let{slots:n}=t;return E0(j(()=>e.value)),()=>{var r;return(r=n.default)===null||r===void 0?void 0:r.call(n)}}});function ti(){const e=me(If,j(()=>as.value||$f)),t=j(()=>`${zm}-${e.value.hashed||""}`),n=j(()=>e.value.theme||w0),r=gm(n,j(()=>[Zo,e.value.token]),j(()=>({salt:t.value,override:O({override:e.value.token},e.value.components),formatToken:v0})));return[n,j(()=>r.value[0]),j(()=>e.value.hashed?r.value[1]:"")]}const Qs=_e({compatConfig:{MODE:3},setup(){const[,e]=ti(),t=j(()=>new Ae(e.value.colorBgBase).toHsl().l<.5?{opacity:.65}:{});return()=>A("svg",{style:t.value,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},[A("g",{fill:"none","fill-rule":"evenodd"},[A("g",{transform:"translate(24 31.67)"},[A("ellipse",{"fill-opacity":".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"},null),A("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"},null),A("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)"},null),A("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"},null),A("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"},null)]),A("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"},null),A("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},[A("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"},null),A("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"},null)])])])}});Qs.PRESENTED_IMAGE_DEFAULT=!0;const Rf=_e({compatConfig:{MODE:3},setup(){const[,e]=ti(),t=j(()=>{const{colorFill:n,colorFillTertiary:r,colorFillQuaternary:o,colorBgContainer:i}=e.value;return{borderColor:new Ae(n).onBackground(i).toHexString(),shadowColor:new Ae(r).onBackground(i).toHexString(),contentColor:new Ae(o).onBackground(i).toHexString()}});return()=>A("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},[A("g",{transform:"translate(0 1)",fill:"none","fill-rule":"evenodd"},[A("ellipse",{fill:t.value.shadowColor,cx:"32",cy:"33",rx:"32",ry:"7"},null),A("g",{"fill-rule":"nonzero",stroke:t.value.borderColor},[A("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"},null),A("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:t.value.contentColor},null)])])])}});Rf.PRESENTED_IMAGE_SIMPLE=!0;const O0=e=>{const{componentCls:t,margin:n,marginXS:r,marginXL:o,fontSize:i,lineHeight:s}=e;return{[t]:{marginInline:r,fontSize:i,lineHeight:s,textAlign:"center",[`${t}-image`]:{height:e.emptyImgHeight,marginBottom:r,opacity:e.opacityImage,img:{height:"100%"},svg:{height:"100%",margin:"auto"}},[`${t}-footer`]:{marginTop:n},"&-normal":{marginBlock:o,color:e.colorTextDisabled,[`${t}-image`]:{height:e.emptyImgHeightMD}},"&-small":{marginBlock:r,color:e.colorTextDisabled,[`${t}-image`]:{height:e.emptyImgHeightSM}}}}},T0=Ys("Empty",e=>{const{componentCls:t,controlHeightLG:n}=e,r=ei(e,{emptyImgCls:`${t}-img`,emptyImgHeight:n*2.5,emptyImgHeightMD:n,emptyImgHeightSM:n*.875});return[O0(r)]});var A0=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 o=0,r=Object.getOwnPropertySymbols(e);o({prefixCls:String,imageStyle:Je(),image:Yi(),description:Yi()}),Js=_e({name:"AEmpty",compatConfig:{MODE:3},inheritAttrs:!1,props:$0(),setup(e,t){let{slots:n={},attrs:r}=t;const{direction:o,prefixCls:i}=ni("empty",e),[s,a]=T0(i);return()=>{var l,c;const u=i.value,f=O(O({},e),r),{image:d=((l=n.image)===null||l===void 0?void 0:l.call(n))||Gt(Qs),description:p=((c=n.description)===null||c===void 0?void 0:c.call(n))||void 0,imageStyle:v,class:m=""}=f,w=A0(f,["image","description","imageStyle","class"]),x=typeof d=="function"?d():d,C=typeof x=="object"&&"type"in x&&x.type.PRESENTED_IMAGE_SIMPLE;return s(A(nf,{componentName:"Empty",children:E=>{const S=typeof p<"u"?p:E.description,$=typeof S=="string"?S:"empty";let L=null;return typeof x=="string"?L=A("img",{alt:$,src:x},null):L=x,A("div",Te({class:Ue(u,m,a.value,{[`${u}-normal`]:C,[`${u}-rtl`]:o.value==="rtl"})},w),[A("div",{class:`${u}-image`,style:v},[L]),S&&A("p",{class:`${u}-description`},[S]),n.default&&A("div",{class:`${u}-footer`},[Gs(n.default())])])}},null))}}});Js.PRESENTED_IMAGE_DEFAULT=()=>Gt(Qs);Js.PRESENTED_IMAGE_SIMPLE=()=>Gt(Rf);const gr=Ws(Js),Mf=e=>{const{prefixCls:t}=ni("empty",e);return(r=>{switch(r){case"Table":case"List":return A(gr,{image:gr.PRESENTED_IMAGE_SIMPLE},null);case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return A(gr,{image:gr.PRESENTED_IMAGE_SIMPLE,class:`${t.value}-small`},null);default:return A(gr,null,null)}})(e.componentName)};function I0(e){return A(Mf,{componentName:e},null)}const Nf=Symbol("SizeContextKey"),kf=()=>me(Nf,pt(void 0)),R0=e=>{const t=kf();return at(Nf,j(()=>e.value||t.value)),e},ni=(e,t)=>{const n=kf(),r=ef(),o=me(Ks,O(O({},Qu),{renderEmpty:b=>Gt(Mf,{componentName:b})})),i=j(()=>o.getPrefixCls(e,t.prefixCls)),s=j(()=>{var b,_;return(b=t.direction)!==null&&b!==void 0?b:(_=o.direction)===null||_===void 0?void 0:_.value}),a=j(()=>{var b;return(b=t.iconPrefixCls)!==null&&b!==void 0?b:o.iconPrefixCls.value}),l=j(()=>o.getPrefixCls()),c=j(()=>{var b;return(b=o.autoInsertSpaceInButton)===null||b===void 0?void 0:b.value}),u=o.renderEmpty,f=o.space,d=o.pageHeader,p=o.form,v=j(()=>{var b,_;return(b=t.getTargetContainer)!==null&&b!==void 0?b:(_=o.getTargetContainer)===null||_===void 0?void 0:_.value}),m=j(()=>{var b,_,P;return(_=(b=t.getContainer)!==null&&b!==void 0?b:t.getPopupContainer)!==null&&_!==void 0?_:(P=o.getPopupContainer)===null||P===void 0?void 0:P.value}),w=j(()=>{var b,_;return(b=t.dropdownMatchSelectWidth)!==null&&b!==void 0?b:(_=o.dropdownMatchSelectWidth)===null||_===void 0?void 0:_.value}),x=j(()=>{var b;return(t.virtual===void 0?((b=o.virtual)===null||b===void 0?void 0:b.value)!==!1:t.virtual!==!1)&&w.value!==!1}),C=j(()=>t.size||n.value),E=j(()=>{var b,_,P;return(b=t.autocomplete)!==null&&b!==void 0?b:(P=(_=o.input)===null||_===void 0?void 0:_.value)===null||P===void 0?void 0:P.autocomplete}),S=j(()=>{var b;return(b=t.disabled)!==null&&b!==void 0?b:r.value}),$=j(()=>{var b;return(b=t.csp)!==null&&b!==void 0?b:o.csp}),L=j(()=>{var b,_;return(b=t.wave)!==null&&b!==void 0?b:(_=o.wave)===null||_===void 0?void 0:_.value});return{configProvider:o,prefixCls:i,direction:s,size:C,getTargetContainer:v,getPopupContainer:m,space:f,pageHeader:d,form:p,autoInsertSpaceInButton:c,renderEmpty:u,virtual:x,dropdownMatchSelectWidth:w,rootPrefixCls:l,getPrefixCls:o.getPrefixCls,autocomplete:E,csp:$,iconPrefixCls:a,disabled:S,select:o.select,wave:L}};function M0(e,t){for(var n=0;n=0||(o[n]=e[n]);return o}function Pl(e){return((t=e)!=null&&typeof t=="object"&&Array.isArray(t)===!1)==1&&Object.prototype.toString.call(e)==="[object Object]";var t}var Ff=Object.prototype,Hf=Ff.toString,N0=Ff.hasOwnProperty,Bf=/^\s*function (\w+)/;function Ol(e){var t,n=(t=e==null?void 0:e.type)!==null&&t!==void 0?t:e;if(n){var r=n.toString().match(Bf);return r?r[1]:""}return""}var wn=function(e){var t,n;return Pl(e)!==!1&&typeof(t=e.constructor)=="function"&&Pl(n=t.prototype)!==!1&&n.hasOwnProperty("isPrototypeOf")!==!1},k0=function(e){return e},et=k0,Br=function(e,t){return N0.call(e,t)},j0=Number.isInteger||function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e},Jn=Array.isArray||function(e){return Hf.call(e)==="[object Array]"},Zn=function(e){return Hf.call(e)==="[object Function]"},Io=function(e){return wn(e)&&Br(e,"_vueTypes_name")},zf=function(e){return wn(e)&&(Br(e,"type")||["_vueTypes_name","validator","default","required"].some(function(t){return Br(e,t)}))};function Zs(e,t){return Object.defineProperty(e.bind(t),"__original",{value:e})}function Pn(e,t,n){var r,o=!0,i="";r=wn(e)?e:{type:e};var s=Io(r)?r._vueTypes_name+" - ":"";if(zf(r)&&r.type!==null){if(r.type===void 0||r.type===!0||!r.required&&t===void 0)return o;Jn(r.type)?(o=r.type.some(function(f){return Pn(f,t)===!0}),i=r.type.map(function(f){return Ol(f)}).join(" or ")):o=(i=Ol(r))==="Array"?Jn(t):i==="Object"?wn(t):i==="String"||i==="Number"||i==="Boolean"||i==="Function"?function(f){if(f==null)return"";var d=f.constructor.toString().match(Bf);return d?d[1]:""}(t)===i:t instanceof r.type}if(!o){var a=s+'value "'+t+'" should be of type "'+i+'"';return a}if(Br(r,"validator")&&Zn(r.validator)){var l=et,c=[];if(et=function(f){c.push(f)},o=r.validator(t),et=l,!o){var u=(c.length>1?"* ":"")+c.join(` +* `);return c.length=0,u}}return o}function nt(e,t){var n=Object.defineProperties(t,{_vueTypes_name:{value:e,writable:!0},isRequired:{get:function(){return this.required=!0,this}},def:{value:function(o){return o!==void 0||this.default?Zn(o)||Pn(this,o)===!0?(this.default=Jn(o)?function(){return[].concat(o)}:wn(o)?function(){return Object.assign({},o)}:o,this):(et(this._vueTypes_name+' - invalid default value: "'+o+'"'),this):this}}}),r=n.validator;return Zn(r)&&(n.validator=Zs(r,n)),n}function It(e,t){var n=nt(e,t);return Object.defineProperty(n,"validate",{value:function(r){return Zn(this.validator)&&et(this._vueTypes_name+` - calling .validate() will overwrite the current custom validator function. Validator info: +`+JSON.stringify(this)),this.validator=Zs(r,this),this}})}function Tl(e,t,n){var r,o,i=(r=t,o={},Object.getOwnPropertyNames(r).forEach(function(f){o[f]=Object.getOwnPropertyDescriptor(r,f)}),Object.defineProperties({},o));if(i._vueTypes_name=e,!wn(n))return i;var s,a,l=n.validator,c=Df(n,["validator"]);if(Zn(l)){var u=i.validator;u&&(u=(a=(s=u).__original)!==null&&a!==void 0?a:s),i.validator=Zs(u?function(f){return u.call(this,f)&&l.call(this,f)}:l,i)}return Object.assign(i,c)}function ri(e){return e.replace(/^(?!\s*$)/gm," ")}var L0=function(){return It("any",{})},D0=function(){return It("function",{type:Function})},F0=function(){return It("boolean",{type:Boolean})},H0=function(){return It("string",{type:String})},B0=function(){return It("number",{type:Number})},z0=function(){return It("array",{type:Array})},V0=function(){return It("object",{type:Object})},G0=function(){return nt("integer",{type:Number,validator:function(e){return j0(e)}})},W0=function(){return nt("symbol",{validator:function(e){return typeof e=="symbol"}})};function U0(e,t){if(t===void 0&&(t="custom validation failed"),typeof e!="function")throw new TypeError("[VueTypes error]: You must provide a function as argument");return nt(e.name||"<>",{validator:function(n){var r=e(n);return r||et(this._vueTypes_name+" - "+t),r}})}function K0(e){if(!Jn(e))throw new TypeError("[VueTypes error]: You must provide an array as argument.");var t='oneOf - value should be one of "'+e.join('", "')+'".',n=e.reduce(function(r,o){if(o!=null){var i=o.constructor;r.indexOf(i)===-1&&r.push(i)}return r},[]);return nt("oneOf",{type:n.length>0?n:void 0,validator:function(r){var o=e.indexOf(r)!==-1;return o||et(t),o}})}function q0(e){if(!Jn(e))throw new TypeError("[VueTypes error]: You must provide an array as argument");for(var t=!1,n=[],r=0;r0&&n.some(function(l){return s.indexOf(l)===-1})){var a=n.filter(function(l){return s.indexOf(l)===-1});return et(a.length===1?'shape - required property "'+a[0]+'" is not defined.':'shape - required properties "'+a.join('", "')+'" are not defined.'),!1}return s.every(function(l){if(t.indexOf(l)===-1)return i._vueTypes_isLoose===!0||(et('shape - shape definition does not include a "'+l+'" property. Allowed keys: "'+t.join('", "')+'".'),!1);var c=Pn(e[l],o[l]);return typeof c=="string"&&et('shape - "'+l+`" property validation error: + `+ri(c)),c===!0})}});return Object.defineProperty(r,"_vueTypes_isLoose",{writable:!0,value:!1}),Object.defineProperty(r,"loose",{get:function(){return this._vueTypes_isLoose=!0,this}}),r}var Et=function(){function e(){}return e.extend=function(t){var n=this;if(Jn(t))return t.forEach(function(f){return n.extend(f)}),this;var r=t.name,o=t.validate,i=o!==void 0&&o,s=t.getter,a=s!==void 0&&s,l=Df(t,["name","validate","getter"]);if(Br(this,r))throw new TypeError('[VueTypes error]: Type "'+r+'" already defined');var c,u=l.type;return Io(u)?(delete l.type,Object.defineProperty(this,r,a?{get:function(){return Tl(r,u,l)}}:{value:function(){var f,d=Tl(r,u,l);return d.validator&&(d.validator=(f=d.validator).bind.apply(f,[d].concat([].slice.call(arguments)))),d}})):(c=a?{get:function(){var f=Object.assign({},l);return i?It(r,f):nt(r,f)},enumerable:!0}:{value:function(){var f,d,p=Object.assign({},l);return f=i?It(r,p):nt(r,p),p.validator&&(f.validator=(d=p.validator).bind.apply(d,[f].concat([].slice.call(arguments)))),f},enumerable:!0},Object.defineProperty(this,r,c))},jf(e,null,[{key:"any",get:function(){return L0()}},{key:"func",get:function(){return D0().def(this.defaults.func)}},{key:"bool",get:function(){return F0().def(this.defaults.bool)}},{key:"string",get:function(){return H0().def(this.defaults.string)}},{key:"number",get:function(){return B0().def(this.defaults.number)}},{key:"array",get:function(){return z0().def(this.defaults.array)}},{key:"object",get:function(){return V0().def(this.defaults.object)}},{key:"integer",get:function(){return G0().def(this.defaults.integer)}},{key:"symbol",get:function(){return W0()}}]),e}();function Vf(e){var t;return e===void 0&&(e={func:function(){},bool:!0,string:"",number:0,array:function(){return[]},object:function(){return{}},integer:0}),(t=function(n){function r(){return n.apply(this,arguments)||this}return Lf(r,n),jf(r,null,[{key:"sensibleDefaults",get:function(){return po({},this.defaults)},set:function(o){this.defaults=o!==!1?po({},o!==!0?o:e):{}}}]),r}(Et)).defaults=po({},e),t}Et.defaults={},Et.custom=U0,Et.oneOf=K0,Et.instanceOf=Y0,Et.oneOfType=q0,Et.arrayOf=X0,Et.objectOf=Q0,Et.shape=J0,Et.utils={validate:function(e,t){return Pn(t,e)===!0},toType:function(e,t,n){return n===void 0&&(n=!1),n?It(e,t):nt(e,t)}};(function(e){function t(){return e.apply(this,arguments)||this}return Lf(t,e),t})(Vf());const Gf=Vf({func:void 0,bool:void 0,string:void 0,number:void 0,array:void 0,object:void 0,integer:void 0});Gf.extend([{name:"looseBool",getter:!0,type:Boolean,default:void 0},{name:"style",getter:!0,type:[String,Object],default:void 0},{name:"VueNode",getter:!0,type:null}]);function Z0(e){let{prefixCls:t,animation:n,transitionName:r}=e;return n?{name:`${t}-${n}`}:r?{name:r}:{}}zg("bottomLeft","bottomRight","topLeft","topRight");const nC=e=>e!==void 0&&(e==="topLeft"||e==="topRight")?"slide-down":"slide-up",rC=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return O(e?{name:e,appear:!0,enterFromClass:`${e}-enter ${e}-enter-prepare ${e}-enter-start`,enterActiveClass:`${e}-enter ${e}-enter-prepare`,enterToClass:`${e}-enter ${e}-enter-active`,leaveFromClass:` ${e}-leave`,leaveActiveClass:`${e}-leave ${e}-leave-active`,leaveToClass:`${e}-leave ${e}-leave-active`}:{css:!1},t)},Wf=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return O(e?{name:e,appear:!0,appearActiveClass:`${e}`,appearToClass:`${e}-appear ${e}-appear-active`,enterFromClass:`${e}-appear ${e}-enter ${e}-appear-prepare ${e}-enter-prepare`,enterActiveClass:`${e}`,enterToClass:`${e}-enter ${e}-appear ${e}-appear-active ${e}-enter-active`,leaveActiveClass:`${e} ${e}-leave`,leaveToClass:`${e}-leave-active`}:{css:!1},t)},oC=(e,t,n)=>n!==void 0?n:`${e}-${t}`,Uf=Symbol("PortalContextKey"),ev=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{inTriggerContext:!0};at(Uf,{inTriggerContext:t.inTriggerContext,shouldRender:j(()=>{const{sPopupVisible:n,popupRef:r,forceRender:o,autoDestroy:i}=e||{};let s=!1;return(n||r||o)&&(s=!0),!n&&i&&(s=!1),s})})},tv=()=>{ev({},{inTriggerContext:!1});const e=me(Uf,{shouldRender:j(()=>!1),inTriggerContext:!1});return{shouldRender:j(()=>e.shouldRender.value||e.inTriggerContext===!1)}},nv=_e({compatConfig:{MODE:3},name:"Portal",inheritAttrs:!1,props:{getContainer:Gf.func.isRequired,didUpdate:Function},setup(e,t){let{slots:n}=t,r=!0,o;const{shouldRender:i}=tv();function s(){i.value&&(o=e.getContainer())}lu(()=>{r=!1,s()}),Kr(()=>{o||s()});const a=We(i,()=>{i.value&&!o&&(o=e.getContainer()),o&&a()});return Ms(()=>{Ur(()=>{var l;i.value&&((l=e.didUpdate)===null||l===void 0||l.call(e,e))})}),()=>{var l;return i.value?r?(l=n.default)===null||l===void 0?void 0:l.call(n):o?A(eu,{to:o},n):null:null}}});var rv=Symbol("iconContext"),Kf=function(){return me(rv,{prefixCls:pt("anticon"),rootClassName:pt(""),csp:pt()})};function ea(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function ov(e,t){return e&&e.contains?e.contains(t):!1}var Al="data-vc-order",iv="vc-icon-key",ls=new Map;function qf(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.mark;return t?t.startsWith("data-")?t:"data-".concat(t):iv}function ta(e){if(e.attachTo)return e.attachTo;var t=document.querySelector("head");return t||document.body}function sv(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function Xf(e){return Array.from((ls.get(e)||e).children).filter(function(t){return t.tagName==="STYLE"})}function Yf(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!ea())return null;var n=t.csp,r=t.prepend,o=document.createElement("style");o.setAttribute(Al,sv(r)),n&&n.nonce&&(o.nonce=n.nonce),o.innerHTML=e;var i=ta(t),s=i.firstChild;if(r){if(r==="queue"){var a=Xf(i).filter(function(l){return["prepend","prependQueue"].includes(l.getAttribute(Al))});if(a.length)return i.insertBefore(o,a[a.length-1].nextSibling),o}i.insertBefore(o,s)}else i.appendChild(o);return o}function av(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=ta(t);return Xf(n).find(function(r){return r.getAttribute(qf(t))===e})}function lv(e,t){var n=ls.get(e);if(!n||!ov(document,n)){var r=Yf("",t),o=r.parentNode;ls.set(e,o),e.removeChild(r)}}function cv(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=ta(n);lv(r,n);var o=av(t,n);if(o)return n.csp&&n.csp.nonce&&o.nonce!==n.csp.nonce&&(o.nonce=n.csp.nonce),o.innerHTML!==e&&(o.innerHTML=e),o;var i=Yf(e,n);return i.setAttribute(qf(n),t),i}function $l(e){for(var t=1;t * { + 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); + } +} +`;function Zf(e){return e&&e.getRootNode&&e.getRootNode()}function dv(e){return ea()?Zf(e)instanceof ShadowRoot:!1}function pv(e){return dv(e)?Zf(e):null}var hv=function(){var t=Kf(),n=t.prefixCls,r=t.csp,o=En(),i=fv;n&&(i=i.replace(/anticon/g,n.value)),Ur(function(){if(ea()){var s=o.vnode.el,a=pv(s);cv(i,"@ant-design-vue-icons",{prepend:!0,csp:r.value,attachTo:a})}})},gv=["icon","primaryColor","secondaryColor"];function mv(e,t){if(e==null)return{};var n=vv(e,t),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function vv(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i=0)&&(n[o]=e[o]);return n}function ho(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function kv(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i=0)&&(n[o]=e[o]);return n}ed(i0.primary);var ze=function(t,n){var r,o=Nl({},t,n.attrs),i=o.class,s=o.icon,a=o.spin,l=o.rotate,c=o.tabindex,u=o.twoToneColor,f=o.onClick,d=Nv(o,Tv),p=Kf(),v=p.prefixCls,m=p.rootClassName,w=(r={},Cr(r,m.value,!!m.value),Cr(r,v.value,!0),Cr(r,"".concat(v.value,"-").concat(s.name),!!s.name),Cr(r,"".concat(v.value,"-spin"),!!a||s.name==="loading"),r),x=c;x===void 0&&f&&(x=-1);var C=l?{msTransform:"rotate(".concat(l,"deg)"),transform:"rotate(".concat(l,"deg)")}:void 0,E=Jf(u),S=Av(E,2),$=S[0],L=S[1];return A("span",Nl({role:"img","aria-label":s.name},d,{onClick:f,class:[w,i],tabindex:x}),[A(on,{icon:s,primaryColor:$,secondaryColor:L,style:C},null),A(Ov,null,null)])};ze.props={spin:Boolean,rotate:Number,icon:Object,twoToneColor:[String,Array]};ze.displayName="AntdIcon";ze.inheritAttrs=!1;ze.getTwoToneColor=Pv;ze.setTwoToneColor=ed;var jv={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"};function kl(e){for(var t=1;te.locale,o=>{ny(o&&o.Modal),r.antLocale=O(O({},o),{exist:!0})},{immediate:!0}),()=>{var o;return(o=n.default)===null||o===void 0?void 0:o.call(n)}}});mo.install=function(e){return e.component(mo.name,mo),e};const ry=Ws(mo),td=_e({name:"Notice",inheritAttrs:!1,props:["prefixCls","duration","updateMark","noticeKey","closeIcon","closable","props","onClick","onClose","holder","visible"],setup(e,t){let{attrs:n,slots:r}=t,o,i=!1;const s=j(()=>e.duration===void 0?4.5:e.duration),a=()=>{s.value&&!i&&(o=setTimeout(()=>{c()},s.value*1e3))},l=()=>{o&&(clearTimeout(o),o=null)},c=f=>{f&&f.stopPropagation(),l();const{onClose:d,noticeKey:p}=e;d&&d(p)},u=()=>{l(),a()};return Kr(()=>{a()}),ks(()=>{i=!0,l()}),We([s,()=>e.updateMark,()=>e.visible],(f,d)=>{let[p,v,m]=f,[w,x,C]=d;(p!==w||v!==x||m!==C&&C)&&u()},{flush:"post"}),()=>{var f,d;const{prefixCls:p,closable:v,closeIcon:m=(f=r.closeIcon)===null||f===void 0?void 0:f.call(r),onClick:w,holder:x}=e,{class:C,style:E}=n,S=`${p}-notice`,$=Object.keys(n).reduce((b,_)=>((_.startsWith("data-")||_.startsWith("aria-")||_==="role")&&(b[_]=n[_]),b),{}),L=A("div",Te({class:Ue(S,C,{[`${S}-closable`]:v}),style:E,onMouseenter:l,onMouseleave:a,onClick:w},$),[A("div",{class:`${S}-content`},[(d=r.default)===null||d===void 0?void 0:d.call(r)]),v?A("a",{tabindex:0,onClick:c,class:`${S}-close`},[m||A("span",{class:`${S}-close-x`},null)]):null]);return x?A(eu,{to:x},{default:()=>L}):L}}});var oy=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 o=0,r=Object.getOwnPropertySymbols(e);o{const{prefixCls:u,animation:f="fade"}=e;let d=e.transitionName;return!d&&f&&(d=`${u}-${f}`),Wf(d)}),l=(u,f)=>{const d=u.key||Ul(),p=O(O({},u),{key:d}),{maxCount:v}=e,m=s.value.map(x=>x.notice.key).indexOf(d),w=s.value.concat();m!==-1?w.splice(m,1,{notice:p,holderCallback:f}):(v&&s.value.length>=v&&(p.key=w[0].notice.key,p.updateMark=Ul(),p.userPassKey=d,w.shift()),w.push({notice:p,holderCallback:f})),s.value=w},c=u=>{s.value=re(s.value).filter(f=>{let{notice:{key:d,userPassKey:p}}=f;return(p||d)!==u})};return r({add:l,remove:c,notices:s}),()=>{var u;const{prefixCls:f,closeIcon:d=(u=o.closeIcon)===null||u===void 0?void 0:u.call(o,{prefixCls:f})}=e,p=s.value.map((m,w)=>{let{notice:x,holderCallback:C}=m;const E=w===s.value.length-1?x.updateMark:void 0,{key:S,userPassKey:$}=x,{content:L}=x,b=O(O(O({prefixCls:f,closeIcon:typeof d=="function"?d({prefixCls:f}):d},x),x.props),{key:S,noticeKey:$||S,updateMark:E,onClose:_=>{var P;c(_),(P=x.onClose)===null||P===void 0||P.call(x)},onClick:x.onClick});return C?A("div",{key:S,class:`${f}-hook-holder`,ref:_=>{typeof S>"u"||(_?(i.set(S,_),C(_,b)):i.delete(S))}},null):A(td,Te(Te({},b),{},{class:Ue(b.class,e.hashId)}),{default:()=>[typeof L=="function"?L({prefixCls:f}):L]})}),v={[f]:1,[n.class]:!!n.class,[e.hashId]:!0};return A("div",{class:v,style:n.style||{top:"65px",left:"50%"}},[A(Bu,Te({tag:"div"},a.value),{default:()=>[p]})])}}});Ro.newInstance=function(t,n){const r=t||{},{name:o="notification",getContainer:i,appContext:s,prefixCls:a,rootPrefixCls:l,transitionName:c,hasTransitionName:u,useStyle:f}=r,d=oy(r,["name","getContainer","appContext","prefixCls","rootPrefixCls","transitionName","hasTransitionName","useStyle"]),p=document.createElement("div");i?i().appendChild(p):document.body.appendChild(p);const m=A(_e({compatConfig:{MODE:3},name:"NotificationWrapper",setup(w,x){let{attrs:C}=x;const E=st(),S=j(()=>Ie.getPrefixCls(o,a)),[,$]=f(S);return Kr(()=>{n({notice(L){var b;(b=E.value)===null||b===void 0||b.add(L)},removeNotice(L){var b;(b=E.value)===null||b===void 0||b.remove(L)},destroy(){el(null,p),p.parentNode&&p.parentNode.removeChild(p)},component:E})}),()=>{const L=Ie,b=L.getRootPrefixCls(l,S.value),_=u?c:`${S.value}-${c}`;return A(Gn,Te(Te({},L),{},{prefixCls:b}),{default:()=>[A(Ro,Te(Te({ref:E},C),{},{prefixCls:S.value,transitionName:_,hashId:$.value}),null)]})}}}),d);m.appContext=s||m.appContext,el(m,p)};let Kl=0;const sy=Date.now();function ql(){const e=Kl;return Kl+=1,`rcNotification_${sy}_${e}`}const ay=_e({name:"HookNotification",inheritAttrs:!1,props:["prefixCls","transitionName","animation","maxCount","closeIcon","hashId","remove","notices","getStyles","getClassName","onAllRemoved","getContainer"],setup(e,t){let{attrs:n,slots:r}=t;const o=new Map,i=j(()=>e.notices),s=j(()=>{let u=e.transitionName;if(!u&&e.animation)switch(typeof e.animation){case"string":u=e.animation;break;case"function":u=e.animation().name;break;case"object":u=e.animation.name;break;default:u=`${e.prefixCls}-fade`;break}return Wf(u)}),a=u=>e.remove(u),l=pt({});We(i,()=>{const u={};Object.keys(l.value).forEach(f=>{u[f]=[]}),e.notices.forEach(f=>{const{placement:d="topRight"}=f.notice;d&&(u[d]=u[d]||[],u[d].push(f))}),l.value=u});const c=j(()=>Object.keys(l.value));return()=>{var u;const{prefixCls:f,closeIcon:d=(u=r.closeIcon)===null||u===void 0?void 0:u.call(r,{prefixCls:f})}=e,p=c.value.map(v=>{var m,w;const x=l.value[v],C=(m=e.getClassName)===null||m===void 0?void 0:m.call(e,v),E=(w=e.getStyles)===null||w===void 0?void 0:w.call(e,v),S=x.map((b,_)=>{let{notice:P,holderCallback:U}=b;const J=_===i.value.length-1?P.updateMark:void 0,{key:D,userPassKey:te}=P,{content:ce}=P,N=O(O(O({prefixCls:f,closeIcon:typeof d=="function"?d({prefixCls:f}):d},P),P.props),{key:D,noticeKey:te||D,updateMark:J,onClose:B=>{var K;a(B),(K=P.onClose)===null||K===void 0||K.call(P)},onClick:P.onClick});return U?A("div",{key:D,class:`${f}-hook-holder`,ref:B=>{typeof D>"u"||(B?(o.set(D,B),U(B,N)):o.delete(D))}},null):A(td,Te(Te({},N),{},{class:Ue(N.class,e.hashId)}),{default:()=>[typeof ce=="function"?ce({prefixCls:f}):ce]})}),$={[f]:1,[`${f}-${v}`]:1,[n.class]:!!n.class,[e.hashId]:!0,[C]:!!C};function L(){var b;x.length>0||(Reflect.deleteProperty(l.value,v),(b=e.onAllRemoved)===null||b===void 0||b.call(e))}return A("div",{key:v,class:$,style:n.style||E||{top:"65px",left:"50%"}},[A(Bu,Te(Te({tag:"div"},s.value),{},{onAfterLeave:L}),{default:()=>[S]})])});return A(nv,{getContainer:e.getContainer},{default:()=>[p]})}}});var ly=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 o=0,r=Object.getOwnPropertySymbols(e);odocument.body;let Xl=0;function uy(){const e={};for(var t=arguments.length,n=new Array(t),r=0;r{o&&Object.keys(o).forEach(i=>{const s=o[i];s!==void 0&&(e[i]=s)})}),e}function nd(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{getContainer:t=cy,motion:n,prefixCls:r,maxCount:o,getClassName:i,getStyles:s,onAllRemoved:a}=e,l=ly(e,["getContainer","motion","prefixCls","maxCount","getClassName","getStyles","onAllRemoved"]),c=st([]),u=st(),f=(x,C)=>{const E=x.key||ql(),S=O(O({},x),{key:E}),$=c.value.map(b=>b.notice.key).indexOf(E),L=c.value.concat();$!==-1?L.splice($,1,{notice:S,holderCallback:C}):(o&&c.value.length>=o&&(S.key=L[0].notice.key,S.updateMark=ql(),S.userPassKey=E,L.shift()),L.push({notice:S,holderCallback:C})),c.value=L},d=x=>{c.value=c.value.filter(C=>{let{notice:{key:E,userPassKey:S}}=C;return(S||E)!==x})},p=()=>{c.value=[]},v=()=>A(ay,{ref:u,prefixCls:r,maxCount:o,notices:c.value,remove:d,getClassName:i,getStyles:s,animation:n,hashId:e.hashId,onAllRemoved:a,getContainer:t},null),m=st([]),w={open:x=>{const C=uy(l,x);(C.key===null||C.key===void 0)&&(C.key=`vc-notification-${Xl}`,Xl+=1),m.value=[...m.value,{type:"open",config:C}]},close:x=>{m.value=[...m.value,{type:"close",key:x}]},destroy:()=>{m.value=[...m.value,{type:"destroy"}]}};return We(m,()=>{m.value.length&&(m.value.forEach(x=>{switch(x.type){case"open":f(x.config);break;case"close":d(x.key);break;case"destroy":p();break}}),m.value=[])}),[w,v]}const fy=e=>{const{componentCls:t,iconCls:n,boxShadowSecondary:r,colorBgElevated:o,colorSuccess:i,colorError:s,colorWarning:a,colorInfo:l,fontSizeLG:c,motionEaseInOutCirc:u,motionDurationSlow:f,marginXS:d,paddingXS:p,borderRadiusLG:v,zIndexPopup:m,messageNoticeContentPadding:w}=e,x=new xn("MessageMoveIn",{"0%":{padding:0,transform:"translateY(-100%)",opacity:0},"100%":{padding:p,transform:"translateY(0)",opacity:1}}),C=new xn("MessageMoveOut",{"0%":{maxHeight:e.height,padding:p,opacity:1},"100%":{maxHeight:0,padding:0,opacity:0}});return[{[t]:O(O({},Tf(e)),{position:"fixed",top:d,left:"50%",transform:"translateX(-50%)",width:"100%",pointerEvents:"none",zIndex:m,[`${t}-move-up`]:{animationFillMode:"forwards"},[` + ${t}-move-up-appear, + ${t}-move-up-enter + `]:{animationName:x,animationDuration:f,animationPlayState:"paused",animationTimingFunction:u},[` + ${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:C,animationDuration:f,animationPlayState:"paused",animationTimingFunction:u},[`${t}-move-up-leave${t}-move-up-leave-active`]:{animationPlayState:"running"},"&-rtl":{direction:"rtl",span:{direction:"rtl"}}})},{[`${t}-notice`]:{padding:p,textAlign:"center",[n]:{verticalAlign:"text-bottom",marginInlineEnd:d,fontSize:c},[`${t}-notice-content`]:{display:"inline-block",padding:w,background:o,borderRadius:v,boxShadow:r,pointerEvents:"all"},[`${t}-success ${n}`]:{color:i},[`${t}-error ${n}`]:{color:s},[`${t}-warning ${n}`]:{color:a},[` + ${t}-info ${n}, + ${t}-loading ${n}`]:{color:l}}},{[`${t}-notice-pure-panel`]:{padding:0,textAlign:"start"}}]},rd=Ys("Message",e=>{const t=ei(e,{messageNoticeContentPadding:`${(e.controlHeightLG-e.fontSize*e.lineHeight)/2}px ${e.paddingSM}px`});return[fy(t)]},e=>({height:150,zIndexPopup:e.zIndexPopupBase+10})),dy={info:A(lr,null,null),success:A(sr,null,null),error:A(ir,null,null),warning:A(ar,null,null),loading:A(Yr,null,null)},py=_e({name:"PureContent",inheritAttrs:!1,props:["prefixCls","type","icon"],setup(e,t){let{slots:n}=t;return()=>{var r;return A("div",{class:Ue(`${e.prefixCls}-custom-content`,`${e.prefixCls}-${e.type}`)},[e.icon||dy[e.type],A("span",null,[(r=n.default)===null||r===void 0?void 0:r.call(n)])])}}});var hy=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 o=0,r=Object.getOwnPropertySymbols(e);oi("message",e.prefixCls)),[,l]=rd(a),c=()=>{var m;const w=(m=e.top)!==null&&m!==void 0?m:gy;return{left:"50%",transform:"translateX(-50%)",top:typeof w=="number"?`${w}px`:w}},u=()=>Ue(l.value,e.rtl?`${a.value}-rtl`:""),f=()=>{var m;return Z0({prefixCls:a.value,animation:(m=e.animation)!==null&&m!==void 0?m:"move-up",transitionName:e.transitionName})},d=A("span",{class:`${a.value}-close-x`},[A(Qr,{class:`${a.value}-close-icon`},null)]),[p,v]=nd({getStyles:c,prefixCls:a.value,getClassName:u,motion:f,closable:!1,closeIcon:d,duration:(r=e.duration)!==null&&r!==void 0?r:my,getContainer:(o=e.staticGetContainer)!==null&&o!==void 0?o:s.value,maxCount:e.maxCount,onAllRemoved:e.onAllRemoved});return n(O(O({},p),{prefixCls:a,hashId:l})),v}});let Yl=0;function yy(e){const t=st(null),n=Symbol("messageHolderKey"),r=l=>{var c;(c=t.value)===null||c===void 0||c.close(l)},o=l=>{if(!t.value){const $=()=>{};return $.then=()=>{},$}const{open:c,prefixCls:u,hashId:f}=t.value,d=`${u}-notice`,{content:p,icon:v,type:m,key:w,class:x,onClose:C}=l,E=hy(l,["content","icon","type","key","class","onClose"]);let S=w;return S==null&&(Yl+=1,S=`antd-message-${Yl}`),Lg($=>(c(O(O({},E),{key:S,content:()=>A(py,{prefixCls:u,type:m,icon:typeof v=="function"?v():v},{default:()=>[typeof p=="function"?p():p]}),placement:"top",class:Ue(m&&`${d}-${m}`,f,x),onClose:()=>{C==null||C(),$()}})),()=>{r(S)}))},s={open:o,destroy:l=>{var c;l!==void 0?r(l):(c=t.value)===null||c===void 0||c.destroy()}};return["info","success","warning","error","loading"].forEach(l=>{const c=(u,f,d)=>{let p;u&&typeof u=="object"&&"content"in u?p=u:p={content:u};let v,m;typeof f=="function"?m=f:(v=f,m=d);const w=O(O({onClose:m,duration:v},p),{type:l});return o(w)};s[l]=c}),[s,()=>A(vy,Te(Te({key:n},e),{},{ref:t}),null)]}function by(e){return yy(e)}let od=3,id,Fe,Cy=1,sd="",ad="move-up",ld=!1,cd=()=>document.body,ud,fd=!1;function xy(){return Cy++}function _y(e){e.top!==void 0&&(id=e.top,Fe=null),e.duration!==void 0&&(od=e.duration),e.prefixCls!==void 0&&(sd=e.prefixCls),e.getContainer!==void 0&&(cd=e.getContainer,Fe=null),e.transitionName!==void 0&&(ad=e.transitionName,Fe=null,ld=!0),e.maxCount!==void 0&&(ud=e.maxCount,Fe=null),e.rtl!==void 0&&(fd=e.rtl)}function Sy(e,t){if(Fe){t(Fe);return}Ro.newInstance({appContext:e.appContext,prefixCls:e.prefixCls||sd,rootPrefixCls:e.rootPrefixCls,transitionName:ad,hasTransitionName:ld,style:{top:id},getContainer:cd||e.getPopupContainer,maxCount:ud,name:"message",useStyle:rd},n=>{if(Fe){t(Fe);return}Fe=n,t(n)})}const dd={info:lr,success:sr,error:ir,warning:ar,loading:Yr},wy=Object.keys(dd);function Ey(e){const t=e.duration!==void 0?e.duration:od,n=e.key||xy(),r=new Promise(i=>{const s=()=>(typeof e.onClose=="function"&&e.onClose(),i(!0));Sy(e,a=>{a.notice({key:n,duration:t,style:e.style||{},class:e.class,content:l=>{let{prefixCls:c}=l;const u=dd[e.type],f=u?A(u,null,null):"",d=Ue(`${c}-custom-content`,{[`${c}-${e.type}`]:e.type,[`${c}-rtl`]:fd===!0});return A("div",{class:d},[typeof e.icon=="function"?e.icon():e.icon||f,A("span",null,[typeof e.content=="function"?e.content():e.content])])},onClose:s,onClick:e.onClick})})}),o=()=>{Fe&&Fe.removeNotice(n)};return o.then=(i,s)=>r.then(i,s),o.promise=r,o}function Py(e){return Object.prototype.toString.call(e)==="[object Object]"&&!!e.content}const zr={open:Ey,config:_y,destroy(e){if(Fe)if(e){const{removeNotice:t}=Fe;t(e)}else{const{destroy:t}=Fe;t(),Fe=null}}};function Oy(e,t){e[t]=(n,r,o)=>Py(n)?e.open(O(O({},n),{type:t})):(typeof r=="function"&&(o=r,r=void 0),e.open({content:n,duration:r,type:t,onClose:o}))}wy.forEach(e=>Oy(zr,e));zr.warn=zr.warning;zr.useMessage=by;const Ty=e=>{const{componentCls:t,width:n,notificationMarginEdge:r}=e,o=new xn("antNotificationTopFadeIn",{"0%":{marginTop:"-100%",opacity:0},"100%":{marginTop:0,opacity:1}}),i=new xn("antNotificationBottomFadeIn",{"0%":{marginBottom:"-100%",opacity:0},"100%":{marginBottom:0,opacity:1}}),s=new xn("antNotificationLeftFadeIn",{"0%":{right:{_skip_check_:!0,value:n},opacity:0},"100%":{right:{_skip_check_:!0,value:0},opacity:1}});return{[`&${t}-top, &${t}-bottom`]:{marginInline:0},[`&${t}-top`]:{[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:o}},[`&${t}-bottom`]:{[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:i}},[`&${t}-topLeft, &${t}-bottomLeft`]:{marginInlineEnd:0,marginInlineStart:r,[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:s}}}},Ay=e=>{const{iconCls:t,componentCls:n,boxShadowSecondary:r,fontSizeLG:o,notificationMarginBottom:i,borderRadiusLG:s,colorSuccess:a,colorInfo:l,colorWarning:c,colorError:u,colorTextHeading:f,notificationBg:d,notificationPadding:p,notificationMarginEdge:v,motionDurationMid:m,motionEaseInOut:w,fontSize:x,lineHeight:C,width:E,notificationIconSize:S}=e,$=`${n}-notice`,L=new xn("antNotificationFadeIn",{"0%":{left:{_skip_check_:!0,value:E},opacity:0},"100%":{left:{_skip_check_:!0,value:0},opacity:1}}),b=new xn("antNotificationFadeOut",{"0%":{maxHeight:e.animationMaxHeight,marginBottom:i,opacity:1},"100%":{maxHeight:0,marginBottom:0,paddingTop:0,paddingBottom:0,opacity:0}});return[{[n]:O(O(O(O({},Tf(e)),{position:"fixed",zIndex:e.zIndexPopup,marginInlineEnd:v,[`${n}-hook-holder`]:{position:"relative"},[`&${n}-top, &${n}-bottom`]:{[`${n}-notice`]:{marginInline:"auto auto"}},[`&${n}-topLeft, &${n}-bottomLeft`]:{[`${n}-notice`]:{marginInlineEnd:"auto",marginInlineStart:0}},[`${n}-fade-enter, ${n}-fade-appear`]:{animationDuration:e.motionDurationMid,animationTimingFunction:w,animationFillMode:"both",opacity:0,animationPlayState:"paused"},[`${n}-fade-leave`]:{animationTimingFunction:w,animationFillMode:"both",animationDuration:m,animationPlayState:"paused"},[`${n}-fade-enter${n}-fade-enter-active, ${n}-fade-appear${n}-fade-appear-active`]:{animationName:L,animationPlayState:"running"},[`${n}-fade-leave${n}-fade-leave-active`]:{animationName:b,animationPlayState:"running"}}),Ty(e)),{"&-rtl":{direction:"rtl",[`${n}-notice-btn`]:{float:"left"}}})},{[$]:{position:"relative",width:E,maxWidth:`calc(100vw - ${v*2}px)`,marginBottom:i,marginInlineStart:"auto",padding:p,overflow:"hidden",lineHeight:C,wordWrap:"break-word",background:d,borderRadius:s,boxShadow:r,[`${n}-close-icon`]:{fontSize:x,cursor:"pointer"},[`${$}-message`]:{marginBottom:e.marginXS,color:f,fontSize:o,lineHeight:e.lineHeightLG},[`${$}-description`]:{fontSize:x},[`&${$}-closable ${$}-message`]:{paddingInlineEnd:e.paddingLG},[`${$}-with-icon ${$}-message`]:{marginBottom:e.marginXS,marginInlineStart:e.marginSM+S,fontSize:o},[`${$}-with-icon ${$}-description`]:{marginInlineStart:e.marginSM+S,fontSize:x},[`${$}-icon`]:{position:"absolute",fontSize:S,lineHeight:0,[`&-success${t}`]:{color:a},[`&-info${t}`]:{color:l},[`&-warning${t}`]:{color:c},[`&-error${t}`]:{color:u}},[`${$}-close`]:{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","&:hover":{color:e.colorIconHover,backgroundColor:e.wireframe?"transparent":e.colorFillContent}},[`${$}-btn`]:{float:"right",marginTop:e.marginSM}}},{[`${$}-pure-panel`]:{margin:0}}]},pd=Ys("Notification",e=>{const t=e.paddingMD,n=e.paddingLG,r=ei(e,{notificationBg:e.colorBgElevated,notificationPaddingVertical:t,notificationPaddingHorizontal:n,notificationPadding:`${e.paddingMD}px ${e.paddingContentHorizontalLG}px`,notificationMarginBottom:e.margin,notificationMarginEdge:e.marginLG,animationMaxHeight:150,notificationIconSize:e.fontSizeLG*e.lineHeightLG,notificationCloseButtonSize:e.controlHeightLG*.55});return[Ay(r)]},e=>({zIndexPopup:e.zIndexPopupBase+50,width:384}));function $y(e,t){return t||A("span",{class:`${e}-close-x`},[A(Qr,{class:`${e}-close-icon`},null)])}A(lr,null,null),A(sr,null,null),A(ir,null,null),A(ar,null,null),A(Yr,null,null);const Iy={success:sr,info:lr,error:ir,warning:ar};function Ry(e){let{prefixCls:t,icon:n,type:r,message:o,description:i,btn:s}=e,a=null;if(n)a=A("span",{class:`${t}-icon`},[kn(n)]);else if(r){const l=Iy[r];a=A(l,{class:`${t}-icon ${t}-icon-${r}`},null)}return A("div",{class:Ue({[`${t}-with-icon`]:a}),role:"alert"},[a,A("div",{class:`${t}-message`},[o]),A("div",{class:`${t}-description`},[i]),s&&A("div",{class:`${t}-btn`},[s])])}function hd(e,t,n){let r;switch(t=typeof t=="number"?`${t}px`:t,n=typeof n=="number"?`${n}px`:n,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 My(e){return{name:`${e}-fade`}}var Ny=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 o=0,r=Object.getOwnPropertySymbols(e);oe.prefixCls||r("notification")),s=d=>{var p,v;return hd(d,(p=e.top)!==null&&p!==void 0?p:Ql,(v=e.bottom)!==null&&v!==void 0?v:Ql)},[,a]=pd(i),l=()=>Ue(a.value,{[`${i.value}-rtl`]:e.rtl}),c=()=>My(i.value),[u,f]=nd({prefixCls:i.value,getStyles:s,getClassName:l,motion:c,closable:!0,closeIcon:$y(i.value),duration:ky,getContainer:()=>{var d,p;return((d=e.getPopupContainer)===null||d===void 0?void 0:d.call(e))||((p=o.value)===null||p===void 0?void 0:p.call(o))||document.body},maxCount:e.maxCount,hashId:a.value,onAllRemoved:e.onAllRemoved});return n(O(O({},u),{prefixCls:i.value,hashId:a})),f}});function Ly(e){const t=st(null),n=Symbol("notificationHolderKey"),r=a=>{if(!t.value)return;const{open:l,prefixCls:c,hashId:u}=t.value,f=`${c}-notice`,{message:d,description:p,icon:v,type:m,btn:w,class:x}=a,C=Ny(a,["message","description","icon","type","btn","class"]);return l(O(O({placement:"topRight"},C),{content:()=>A(Ry,{prefixCls:f,icon:typeof v=="function"?v():v,type:m,message:typeof d=="function"?d():d,description:typeof p=="function"?p():p,btn:typeof w=="function"?w():w},null),class:Ue(m&&`${f}-${m}`,u,x)}))},i={open:r,destroy:a=>{var l,c;a!==void 0?(l=t.value)===null||l===void 0||l.close(a):(c=t.value)===null||c===void 0||c.destroy()}};return["success","info","warning","error"].forEach(a=>{i[a]=l=>r(O(O({},l),{type:a}))}),[i,()=>A(jy,Te(Te({key:n},e),{},{ref:t}),null)]}function Dy(e){return Ly(e)}const hn={};let gd=4.5,md="24px",vd="24px",fs="",yd="topRight",bd=()=>document.body,Cd=null,ds=!1,xd;function Fy(e){const{duration:t,placement:n,bottom:r,top:o,getContainer:i,closeIcon:s,prefixCls:a}=e;a!==void 0&&(fs=a),t!==void 0&&(gd=t),n!==void 0&&(yd=n),r!==void 0&&(vd=typeof r=="number"?`${r}px`:r),o!==void 0&&(md=typeof o=="number"?`${o}px`:o),i!==void 0&&(bd=i),s!==void 0&&(Cd=s),e.rtl!==void 0&&(ds=e.rtl),e.maxCount!==void 0&&(xd=e.maxCount)}function Hy(e,t){let{prefixCls:n,placement:r=yd,getContainer:o=bd,top:i,bottom:s,closeIcon:a=Cd,appContext:l}=e;const{getPrefixCls:c}=Jy(),u=c("notification",n||fs),f=`${u}-${r}-${ds}`,d=hn[f];if(d){Promise.resolve(d).then(v=>{t(v)});return}const p=Ue(`${u}-${r}`,{[`${u}-rtl`]:ds===!0});Ro.newInstance({name:"notification",prefixCls:n||fs,useStyle:pd,class:p,style:hd(r,i??md,s??vd),appContext:l,getContainer:o,closeIcon:v=>{let{prefixCls:m}=v;return A("span",{class:`${m}-close-x`},[kn(a,{},A(Qr,{class:`${m}-close-icon`},null))])},maxCount:xd,hasTransitionName:!0},v=>{hn[f]=v,t(v)})}const By={success:na,info:oa,error:ia,warning:ra};function zy(e){const{icon:t,type:n,description:r,message:o,btn:i}=e,s=e.duration===void 0?gd:e.duration;Hy(e,a=>{a.notice({content:l=>{let{prefixCls:c}=l;const u=`${c}-notice`;let f=null;if(t)f=()=>A("span",{class:`${u}-icon`},[kn(t)]);else if(n){const d=By[n];f=()=>A(d,{class:`${u}-icon ${u}-icon-${n}`},null)}return A("div",{class:f?`${u}-with-icon`:""},[f&&f(),A("div",{class:`${u}-message`},[!r&&f?A("span",{class:`${u}-message-single-line-auto-margin`},null):null,kn(o)]),A("div",{class:`${u}-description`},[kn(r)]),i?A("span",{class:`${u}-btn`},[kn(i)]):null])},duration:s,closable:!0,onClose:e.onClose,onClick:e.onClick,key:e.key,style:e.style||{},class:e.class})})}const er={open:zy,close(e){Object.keys(hn).forEach(t=>Promise.resolve(hn[t]).then(n=>{n.removeNotice(e)}))},config:Fy,destroy(){Object.keys(hn).forEach(e=>{Promise.resolve(hn[e]).then(t=>{t.destroy()}),delete hn[e]})}},Vy=["success","info","warning","error"];Vy.forEach(e=>{er[e]=t=>er.open(O(O({},t),{type:e}))});er.warn=er.warning;er.useNotification=Dy;const Gy=`-ant-${Date.now()}-${Math.random()}`;function Wy(e,t){const n={},r=(s,a)=>{let l=s.clone();return l=(a==null?void 0:a(l))||l,l.toRgbString()},o=(s,a)=>{const l=new Ae(s),c=Sn(l.toRgbString());n[`${a}-color`]=r(l),n[`${a}-color-disabled`]=c[1],n[`${a}-color-hover`]=c[4],n[`${a}-color-active`]=c[6],n[`${a}-color-outline`]=l.clone().setAlpha(.2).toRgbString(),n[`${a}-color-deprecated-bg`]=c[0],n[`${a}-color-deprecated-border`]=c[2]};if(t.primaryColor){o(t.primaryColor,"primary");const s=new Ae(t.primaryColor),a=Sn(s.toRgbString());a.forEach((c,u)=>{n[`primary-${u+1}`]=c}),n["primary-color-deprecated-l-35"]=r(s,c=>c.lighten(35)),n["primary-color-deprecated-l-20"]=r(s,c=>c.lighten(20)),n["primary-color-deprecated-t-20"]=r(s,c=>c.tint(20)),n["primary-color-deprecated-t-50"]=r(s,c=>c.tint(50)),n["primary-color-deprecated-f-12"]=r(s,c=>c.setAlpha(c.getAlpha()*.12));const l=new Ae(a[0]);n["primary-color-active-deprecated-f-30"]=r(l,c=>c.setAlpha(c.getAlpha()*.3)),n["primary-color-active-deprecated-d-02"]=r(l,c=>c.darken(2))}return t.successColor&&o(t.successColor,"success"),t.warningColor&&o(t.warningColor,"warning"),t.errorColor&&o(t.errorColor,"error"),t.infoColor&&o(t.infoColor,"info"),` + :root { + ${Object.keys(n).map(s=>`--${e}-${s}: ${n[s]};`).join(` +`)} + } + `.trim()}function Uy(e,t){const n=Wy(e,t);rr()&&Ao(n,`${Gy}-dynamic-theme`)}const Ky=e=>{const[t,n]=ti();return ns(j(()=>({theme:t.value,token:n.value,hashId:"",path:["ant-design-icons",e.value]})),()=>[{[`.${e.value}`]:O(O({},y0()),{[`.${e.value} .${e.value}-icon`]:{display:"block"}})}])};function qy(e,t){const n=j(()=>(e==null?void 0:e.value)||{}),r=j(()=>n.value.inherit===!1||!(t!=null&&t.value)?$f:t.value);return j(()=>{if(!(e!=null&&e.value))return t==null?void 0:t.value;const i=O({},r.value.components);return Object.keys(e.value.components||{}).forEach(s=>{i[s]=O(O({},i[s]),e.value.components[s])}),O(O(O({},r.value),n.value),{token:O(O({},r.value.token),n.value.token),components:i})})}var Xy=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 o=0,r=Object.getOwnPropertySymbols(e);o{O(Ie,sa),Ie.prefixCls=Vn(),Ie.iconPrefixCls=_d(),Ie.getPrefixCls=(e,t)=>t||(e?`${Ie.prefixCls}-${e}`:Ie.prefixCls),Ie.getRootPrefixCls=()=>Ie.prefixCls?Ie.prefixCls:Vn()});let $i;const Qy=e=>{$i&&$i(),$i=Vo(()=>{O(sa,gt(e)),O(Ie,gt(e))}),e.theme&&Uy(Vn(),e.theme)},Jy=()=>({getPrefixCls:(e,t)=>t||(e?`${Vn()}-${e}`:Vn()),getIconPrefixCls:_d,getRootPrefixCls:()=>Ie.prefixCls?Ie.prefixCls:Vn()}),Gn=_e({compatConfig:{MODE:3},name:"AConfigProvider",inheritAttrs:!1,props:Wg(),setup(e,t){let{slots:n}=t;const r=Ju(),o=(N,B)=>{const{prefixCls:K="ant"}=e;if(B)return B;const ne=K||r.getPrefixCls("");return N?`${ne}-${N}`:ne},i=j(()=>e.iconPrefixCls||r.iconPrefixCls.value||Us),s=j(()=>i.value!==r.iconPrefixCls.value),a=j(()=>{var N;return e.csp||((N=r.csp)===null||N===void 0?void 0:N.value)}),l=Ky(i),c=qy(j(()=>e.theme),j(()=>{var N;return(N=r.theme)===null||N===void 0?void 0:N.value})),u=N=>(e.renderEmpty||n.renderEmpty||r.renderEmpty||I0)(N),f=j(()=>{var N,B;return(N=e.autoInsertSpaceInButton)!==null&&N!==void 0?N:(B=r.autoInsertSpaceInButton)===null||B===void 0?void 0:B.value}),d=j(()=>{var N;return e.locale||((N=r.locale)===null||N===void 0?void 0:N.value)});We(d,()=>{sa.locale=d.value},{immediate:!0});const p=j(()=>{var N;return e.direction||((N=r.direction)===null||N===void 0?void 0:N.value)}),v=j(()=>{var N,B;return(N=e.space)!==null&&N!==void 0?N:(B=r.space)===null||B===void 0?void 0:B.value}),m=j(()=>{var N,B;return(N=e.virtual)!==null&&N!==void 0?N:(B=r.virtual)===null||B===void 0?void 0:B.value}),w=j(()=>{var N,B;return(N=e.dropdownMatchSelectWidth)!==null&&N!==void 0?N:(B=r.dropdownMatchSelectWidth)===null||B===void 0?void 0:B.value}),x=j(()=>{var N;return e.getTargetContainer!==void 0?e.getTargetContainer:(N=r.getTargetContainer)===null||N===void 0?void 0:N.value}),C=j(()=>{var N;return e.getPopupContainer!==void 0?e.getPopupContainer:(N=r.getPopupContainer)===null||N===void 0?void 0:N.value}),E=j(()=>{var N;return e.pageHeader!==void 0?e.pageHeader:(N=r.pageHeader)===null||N===void 0?void 0:N.value}),S=j(()=>{var N;return e.input!==void 0?e.input:(N=r.input)===null||N===void 0?void 0:N.value}),$=j(()=>{var N;return e.pagination!==void 0?e.pagination:(N=r.pagination)===null||N===void 0?void 0:N.value}),L=j(()=>{var N;return e.form!==void 0?e.form:(N=r.form)===null||N===void 0?void 0:N.value}),b=j(()=>{var N;return e.select!==void 0?e.select:(N=r.select)===null||N===void 0?void 0:N.value}),_=j(()=>e.componentSize),P=j(()=>e.componentDisabled),U=j(()=>{var N,B;return(N=e.wave)!==null&&N!==void 0?N:(B=r.wave)===null||B===void 0?void 0:B.value}),J={csp:a,autoInsertSpaceInButton:f,locale:d,direction:p,space:v,virtual:m,dropdownMatchSelectWidth:w,getPrefixCls:o,iconPrefixCls:i,theme:j(()=>{var N,B;return(N=c.value)!==null&&N!==void 0?N:(B=r.theme)===null||B===void 0?void 0:B.value}),renderEmpty:u,getTargetContainer:x,getPopupContainer:C,pageHeader:E,input:S,pagination:$,form:L,select:b,componentSize:_,componentDisabled:P,transformCellText:j(()=>e.transformCellText),wave:U},D=j(()=>{const N=c.value||{},{algorithm:B,token:K}=N,ne=Xy(N,["algorithm","token"]),Ke=B&&(!Array.isArray(B)||B.length>0)?gf(B):void 0;return O(O({},ne),{theme:Ke,token:O(O({},Zo),K)})}),te=j(()=>{var N,B;let K={};return d.value&&(K=((N=d.value.Form)===null||N===void 0?void 0:N.defaultValidateMessages)||((B=qn.Form)===null||B===void 0?void 0:B.defaultValidateMessages)||{}),e.form&&e.form.validateMessages&&(K=O(O({},K),e.form.validateMessages)),K});Ug(J),Gg({validateMessages:te}),R0(_),Kg(P);const ce=N=>{var B,K;let ne=s.value?l((B=n.default)===null||B===void 0?void 0:B.call(n)):(K=n.default)===null||K===void 0?void 0:K.call(n);if(e.theme){const Ke=function(){return ne}();ne=A(P0,{value:D.value},{default:()=>[Ke]})}return A(ry,{locale:d.value||N,ANT_MARK__:us},{default:()=>[ne]})};return Vo(()=>{p.value&&(zr.config({rtl:p.value==="rtl"}),er.config({rtl:p.value==="rtl"}))}),()=>A(nf,{children:(N,B,K)=>ce(K)},null)}});Gn.config=Qy;Gn.install=function(e){e.component(Gn.name,Gn)};const Zy={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 页"},eb={locale:"zh_CN",today:"今天",now:"此刻",backToToday:"返回今天",ok:"确定",timeSelect:"选择时间",dateSelect:"选择日期",weekSelect:"选择周",clear:"清除",month:"月",year:"年",previousMonth:"上个月 (翻页上键)",nextMonth:"下个月 (翻页下键)",monthSelect:"选择月份",yearSelect:"选择年份",decadeSelect:"选择年代",yearFormat:"YYYY年",dayFormat:"D日",dateFormat:"YYYY年M月D日",dateTimeFormat:"YYYY年M月D日 HH时mm分ss秒",previousYear:"上一年 (Control键加左方向键)",nextYear:"下一年 (Control键加右方向键)",previousDecade:"上一年代",nextDecade:"下一年代",previousCentury:"上一世纪",nextCentury:"下一世纪"},Sd={placeholder:"请选择时间",rangePlaceholder:["开始时间","结束时间"]},ps={lang:O({placeholder:"请选择日期",yearPlaceholder:"请选择年份",quarterPlaceholder:"请选择季度",monthPlaceholder:"请选择月份",weekPlaceholder:"请选择周",rangePlaceholder:["开始日期","结束日期"],rangeYearPlaceholder:["开始年份","结束年份"],rangeMonthPlaceholder:["开始月份","结束月份"],rangeQuarterPlaceholder:["开始季度","结束季度"],rangeWeekPlaceholder:["开始周","结束周"]},eb),timePickerLocale:O({},Sd)};ps.lang.ok="确定";const Ye="${label}不是一个有效的${type}",tb={locale:"zh-cn",Pagination:Zy,DatePicker:ps,TimePicker:Sd,Calendar:ps,global:{placeholder:"请选择"},Table:{filterTitle:"筛选",filterConfirm:"确定",filterReset:"重置",filterEmptyText:"无筛选项",filterCheckall:"全选",filterSearchPlaceholder:"在筛选项中搜索",selectAll:"全选当页",selectInvert:"反选当页",selectNone:"清空所有",selectionAll:"全选所有",sortTitle:"排序",expand:"展开行",collapse:"关闭行",triggerDesc:"点击降序",triggerAsc:"点击升序",cancelSort:"取消排序"},Tour:{Next:"下一步",Previous:"上一步",Finish:"结束导览"},Modal:{okText:"确定",cancelText:"取消",justOkText:"知道了"},Popconfirm:{cancelText:"取消",okText:"确定"},Transfer:{searchPlaceholder:"请输入搜索内容",itemUnit:"项",itemsUnit:"项",remove:"删除",selectCurrent:"全选当页",removeCurrent:"删除当页",selectAll:"全选所有",removeAll:"删除全部",selectInvert:"反选当页"},Upload:{uploading:"文件上传中",removeFile:"删除文件",uploadError:"上传错误",previewFile:"预览文件",downloadFile:"下载文件"},Empty:{description:"暂无数据"},Icon:{icon:"图标"},Text:{edit:"编辑",copy:"复制",copied:"复制成功",expand:"展开"},PageHeader:{back:"返回"},Form:{optional:"(可选)",defaultValidateMessages:{default:"字段验证错误${label}",required:"请输入${label}",enum:"${label}必须是其中一个[${enum}]",whitespace:"${label}不能为空字符",date:{format:"${label}日期格式无效",parse:"${label}不能转换为日期",invalid:"${label}是一个无效日期"},types:{string:Ye,method:Ye,array:Ye,object:Ye,number:Ye,date:Ye,boolean:Ye,integer:Ye,float:Ye,regexp:Ye,email:Ye,url:Ye,hex:Ye},string:{len:"${label}须为${len}个字符",min:"${label}最少${min}个字符",max:"${label}最多${max}个字符",range:"${label}须在${min}-${max}字符之间"},number:{len:"${label}必须等于${len}",min:"${label}最小值为${min}",max:"${label}最大值为${max}",range:"${label}须在${min}-${max}之间"},array:{len:"须为${len}个${label}",min:"最少${min}个${label}",max:"最多${max}个${label}",range:"${label}数量须在${min}-${max}之间"},pattern:{mismatch:"${label}与模式不匹配${pattern}"}}},Image:{preview:"预览"},QRCode:{expired:"二维码已过期",refresh:"点击刷新",scanned:"已扫描"}},nb=_e({__name:"App",setup(e){return(t,n)=>{const r=Kp("router-view");return So(),Eo(Ne(Gn),{locale:Ne(tb),theme:Ne(_g)},{default:Yc(()=>[A(r)]),_:1},8,["locale","theme"])}}}),rb="modulepreload",ob=function(e){return"/"+e},Jl={},Ge=function(t,n,r){let o=Promise.resolve();if(n&&n.length>0){document.getElementsByTagName("link");const s=document.querySelector("meta[property=csp-nonce]"),a=(s==null?void 0:s.nonce)||(s==null?void 0:s.getAttribute("nonce"));o=Promise.allSettled(n.map(l=>{if(l=ob(l),l in Jl)return;Jl[l]=!0;const c=l.endsWith(".css"),u=c?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${l}"]${u}`))return;const f=document.createElement("link");if(f.rel=c?"stylesheet":rb,c||(f.as="script"),f.crossOrigin="",f.href=l,a&&f.setAttribute("nonce",a),document.head.appendChild(f),c)return new Promise((d,p)=>{f.addEventListener("load",d),f.addEventListener("error",()=>p(new Error(`Unable to preload CSS for ${l}`)))})}))}function i(s){const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=s,window.dispatchEvent(a),!a.defaultPrevented)throw s}return o.then(s=>{for(const a of s||[])a.status==="rejected"&&i(a.reason);return t().catch(i)})};/*! + * vue-router v4.6.4 + * (c) 2025 Eduardo San Martin Morote + * @license MIT + */const Nn=typeof document<"u";function wd(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function ib(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&wd(e.default)}const ae=Object.assign;function Ii(e,t){const n={};for(const r in t){const o=t[r];n[r]=yt(o)?o.map(e):e(o)}return n}const Rr=()=>{},yt=Array.isArray;function Zl(e,t){const n={};for(const r in e)n[r]=r in t?t[r]:e[r];return n}const Ed=/#/g,sb=/&/g,ab=/\//g,lb=/=/g,cb=/\?/g,Pd=/\+/g,ub=/%5B/g,fb=/%5D/g,Od=/%5E/g,db=/%60/g,Td=/%7B/g,pb=/%7C/g,Ad=/%7D/g,hb=/%20/g;function aa(e){return e==null?"":encodeURI(""+e).replace(pb,"|").replace(ub,"[").replace(fb,"]")}function gb(e){return aa(e).replace(Td,"{").replace(Ad,"}").replace(Od,"^")}function hs(e){return aa(e).replace(Pd,"%2B").replace(hb,"+").replace(Ed,"%23").replace(sb,"%26").replace(db,"`").replace(Td,"{").replace(Ad,"}").replace(Od,"^")}function mb(e){return hs(e).replace(lb,"%3D")}function vb(e){return aa(e).replace(Ed,"%23").replace(cb,"%3F")}function yb(e){return vb(e).replace(ab,"%2F")}function Vr(e){if(e==null)return null;try{return decodeURIComponent(""+e)}catch{}return""+e}const bb=/\/$/,Cb=e=>e.replace(bb,"");function Ri(e,t,n="/"){let r,o={},i="",s="";const a=t.indexOf("#");let l=t.indexOf("?");return l=a>=0&&l>a?-1:l,l>=0&&(r=t.slice(0,l),i=t.slice(l,a>0?a:t.length),o=e(i.slice(1))),a>=0&&(r=r||t.slice(0,a),s=t.slice(a,t.length)),r=wb(r??t,n),{fullPath:r+i+s,path:r,query:o,hash:Vr(s)}}function xb(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function ec(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function _b(e,t,n){const r=t.matched.length-1,o=n.matched.length-1;return r>-1&&r===o&&tr(t.matched[r],n.matched[o])&&$d(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function tr(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function $d(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var n in e)if(!Sb(e[n],t[n]))return!1;return!0}function Sb(e,t){return yt(e)?tc(e,t):yt(t)?tc(t,e):(e==null?void 0:e.valueOf())===(t==null?void 0:t.valueOf())}function tc(e,t){return yt(t)?e.length===t.length&&e.every((n,r)=>n===t[r]):e.length===1&&e[0]===t}function wb(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),r=e.split("/"),o=r[r.length-1];(o===".."||o===".")&&r.push("");let i=n.length-1,s,a;for(s=0;s1&&i--;else break;return n.slice(0,i).join("/")+"/"+r.slice(s).join("/")}const qt={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};let gs=function(e){return e.pop="pop",e.push="push",e}({}),Mi=function(e){return e.back="back",e.forward="forward",e.unknown="",e}({});function Eb(e){if(!e)if(Nn){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),Cb(e)}const Pb=/^[^#]+#/;function Ob(e,t){return e.replace(Pb,"#")+t}function Tb(e,t){const n=document.documentElement.getBoundingClientRect(),r=e.getBoundingClientRect();return{behavior:t.behavior,left:r.left-n.left-(t.left||0),top:r.top-n.top-(t.top||0)}}const oi=()=>({left:window.scrollX,top:window.scrollY});function Ab(e){let t;if("el"in e){const n=e.el,r=typeof n=="string"&&n.startsWith("#"),o=typeof n=="string"?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!o)return;t=Tb(o,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.scrollX,t.top!=null?t.top:window.scrollY)}function nc(e,t){return(history.state?history.state.position-t:-1)+e}const ms=new Map;function $b(e,t){ms.set(e,t)}function Ib(e){const t=ms.get(e);return ms.delete(e),t}function Rb(e){return typeof e=="string"||e&&typeof e=="object"}function Id(e){return typeof e=="string"||typeof e=="symbol"}let ve=function(e){return e[e.MATCHER_NOT_FOUND=1]="MATCHER_NOT_FOUND",e[e.NAVIGATION_GUARD_REDIRECT=2]="NAVIGATION_GUARD_REDIRECT",e[e.NAVIGATION_ABORTED=4]="NAVIGATION_ABORTED",e[e.NAVIGATION_CANCELLED=8]="NAVIGATION_CANCELLED",e[e.NAVIGATION_DUPLICATED=16]="NAVIGATION_DUPLICATED",e}({});const Rd=Symbol("");ve.MATCHER_NOT_FOUND+"",ve.NAVIGATION_GUARD_REDIRECT+"",ve.NAVIGATION_ABORTED+"",ve.NAVIGATION_CANCELLED+"",ve.NAVIGATION_DUPLICATED+"";function nr(e,t){return ae(new Error,{type:e,[Rd]:!0},t)}function kt(e,t){return e instanceof Error&&Rd in e&&(t==null||!!(e.type&t))}const Mb=["params","query","hash"];function Nb(e){if(typeof e=="string")return e;if(e.path!=null)return e.path;const t={};for(const n of Mb)n in e&&(t[n]=e[n]);return JSON.stringify(t,null,2)}function kb(e){const t={};if(e===""||e==="?")return t;const n=(e[0]==="?"?e.slice(1):e).split("&");for(let r=0;ro&&hs(o)):[r&&hs(r)]).forEach(o=>{o!==void 0&&(t+=(t.length?"&":"")+n,o!=null&&(t+="="+o))})}return t}function jb(e){const t={};for(const n in e){const r=e[n];r!==void 0&&(t[n]=yt(r)?r.map(o=>o==null?null:""+o):r==null?r:""+r)}return t}const Lb=Symbol(""),oc=Symbol(""),ii=Symbol(""),la=Symbol(""),vs=Symbol("");function mr(){let e=[];function t(r){return e.push(r),()=>{const o=e.indexOf(r);o>-1&&e.splice(o,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function Zt(e,t,n,r,o,i=s=>s()){const s=r&&(r.enterCallbacks[o]=r.enterCallbacks[o]||[]);return()=>new Promise((a,l)=>{const c=d=>{d===!1?l(nr(ve.NAVIGATION_ABORTED,{from:n,to:t})):d instanceof Error?l(d):Rb(d)?l(nr(ve.NAVIGATION_GUARD_REDIRECT,{from:t,to:d})):(s&&r.enterCallbacks[o]===s&&typeof d=="function"&&s.push(d),a())},u=i(()=>e.call(r&&r.instances[o],t,n,c));let f=Promise.resolve(u);e.length<3&&(f=f.then(c)),f.catch(d=>l(d))})}function Ni(e,t,n,r,o=i=>i()){const i=[];for(const s of e)for(const a in s.components){let l=s.components[a];if(!(t!=="beforeRouteEnter"&&!s.instances[a]))if(wd(l)){const c=(l.__vccOpts||l)[t];c&&i.push(Zt(c,n,r,s,a,o))}else{let c=l();i.push(()=>c.then(u=>{if(!u)throw new Error(`Couldn't resolve component "${a}" at "${s.path}"`);const f=ib(u)?u.default:u;s.mods[a]=u,s.components[a]=f;const d=(f.__vccOpts||f)[t];return d&&Zt(d,n,r,s,a,o)()}))}}return i}function Db(e,t){const n=[],r=[],o=[],i=Math.max(t.matched.length,e.matched.length);for(let s=0;str(c,a))?r.push(a):n.push(a));const l=e.matched[s];l&&(t.matched.find(c=>tr(c,l))||o.push(l))}return[n,r,o]}/*! + * vue-router v4.6.4 + * (c) 2025 Eduardo San Martin Morote + * @license MIT + */let Fb=()=>location.protocol+"//"+location.host;function Md(e,t){const{pathname:n,search:r,hash:o}=t,i=e.indexOf("#");if(i>-1){let s=o.includes(e.slice(i))?e.slice(i).length:1,a=o.slice(s);return a[0]!=="/"&&(a="/"+a),ec(a,"")}return ec(n,e)+r+o}function Hb(e,t,n,r){let o=[],i=[],s=null;const a=({state:d})=>{const p=Md(e,location),v=n.value,m=t.value;let w=0;if(d){if(n.value=p,t.value=d,s&&s===v){s=null;return}w=m?d.position-m.position:0}else r(p);o.forEach(x=>{x(n.value,v,{delta:w,type:gs.pop,direction:w?w>0?Mi.forward:Mi.back:Mi.unknown})})};function l(){s=n.value}function c(d){o.push(d);const p=()=>{const v=o.indexOf(d);v>-1&&o.splice(v,1)};return i.push(p),p}function u(){if(document.visibilityState==="hidden"){const{history:d}=window;if(!d.state)return;d.replaceState(ae({},d.state,{scroll:oi()}),"")}}function f(){for(const d of i)d();i=[],window.removeEventListener("popstate",a),window.removeEventListener("pagehide",u),document.removeEventListener("visibilitychange",u)}return window.addEventListener("popstate",a),window.addEventListener("pagehide",u),document.addEventListener("visibilitychange",u),{pauseListeners:l,listen:c,destroy:f}}function ic(e,t,n,r=!1,o=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:o?oi():null}}function Bb(e){const{history:t,location:n}=window,r={value:Md(e,n)},o={value:t.state};o.value||i(r.value,{back:null,current:r.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function i(l,c,u){const f=e.indexOf("#"),d=f>-1?(n.host&&document.querySelector("base")?e:e.slice(f))+l:Fb()+e+l;try{t[u?"replaceState":"pushState"](c,"",d),o.value=c}catch(p){console.error(p),n[u?"replace":"assign"](d)}}function s(l,c){i(l,ae({},t.state,ic(o.value.back,l,o.value.forward,!0),c,{position:o.value.position}),!0),r.value=l}function a(l,c){const u=ae({},o.value,t.state,{forward:l,scroll:oi()});i(u.current,u,!0),i(l,ae({},ic(r.value,l,null),{position:u.position+1},c),!1),r.value=l}return{location:r,state:o,push:a,replace:s}}function zb(e){e=Eb(e);const t=Bb(e),n=Hb(e,t.state,t.location,t.replace);function r(i,s=!0){s||n.pauseListeners(),history.go(i)}const o=ae({location:"",base:e,go:r,createHref:Ob.bind(null,e)},t,n);return Object.defineProperty(o,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(o,"state",{enumerable:!0,get:()=>t.state.value}),o}let mn=function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.Group=2]="Group",e}({});var Se=function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.ParamRegExp=2]="ParamRegExp",e[e.ParamRegExpEnd=3]="ParamRegExpEnd",e[e.EscapeNext=4]="EscapeNext",e}(Se||{});const Vb={type:mn.Static,value:""},Gb=/[a-zA-Z0-9_]/;function Wb(e){if(!e)return[[]];if(e==="/")return[[Vb]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(p){throw new Error(`ERR (${n})/"${c}": ${p}`)}let n=Se.Static,r=n;const o=[];let i;function s(){i&&o.push(i),i=[]}let a=0,l,c="",u="";function f(){c&&(n===Se.Static?i.push({type:mn.Static,value:c}):n===Se.Param||n===Se.ParamRegExp||n===Se.ParamRegExpEnd?(i.length>1&&(l==="*"||l==="+")&&t(`A repeatable param (${c}) must be alone in its segment. eg: '/:ids+.`),i.push({type:mn.Param,value:c,regexp:u,repeatable:l==="*"||l==="+",optional:l==="*"||l==="?"})):t("Invalid state to consume buffer"),c="")}function d(){c+=l}for(;at.length?t.length===1&&t[0]===Le.Static+Le.Segment?1:-1:0}function Nd(e,t){let n=0;const r=e.score,o=t.score;for(;n0&&t[t.length-1]<0}const Yb={strict:!1,end:!0,sensitive:!1};function Qb(e,t,n){const r=qb(Wb(e.path),n),o=ae(r,{record:e,parent:t,children:[],alias:[]});return t&&!o.record.aliasOf==!t.record.aliasOf&&t.children.push(o),o}function Jb(e,t){const n=[],r=new Map;t=Zl(Yb,t);function o(f){return r.get(f)}function i(f,d,p){const v=!p,m=cc(f);m.aliasOf=p&&p.record;const w=Zl(t,f),x=[m];if("alias"in f){const S=typeof f.alias=="string"?[f.alias]:f.alias;for(const $ of S)x.push(cc(ae({},m,{components:p?p.record.components:m.components,path:$,aliasOf:p?p.record:m})))}let C,E;for(const S of x){const{path:$}=S;if(d&&$[0]!=="/"){const L=d.record.path,b=L[L.length-1]==="/"?"":"/";S.path=d.record.path+($&&b+$)}if(C=Qb(S,d,w),p?p.alias.push(C):(E=E||C,E!==C&&E.alias.push(C),v&&f.name&&!uc(C)&&s(f.name)),kd(C)&&l(C),m.children){const L=m.children;for(let b=0;b{s(E)}:Rr}function s(f){if(Id(f)){const d=r.get(f);d&&(r.delete(f),n.splice(n.indexOf(d),1),d.children.forEach(s),d.alias.forEach(s))}else{const d=n.indexOf(f);d>-1&&(n.splice(d,1),f.record.name&&r.delete(f.record.name),f.children.forEach(s),f.alias.forEach(s))}}function a(){return n}function l(f){const d=t1(f,n);n.splice(d,0,f),f.record.name&&!uc(f)&&r.set(f.record.name,f)}function c(f,d){let p,v={},m,w;if("name"in f&&f.name){if(p=r.get(f.name),!p)throw nr(ve.MATCHER_NOT_FOUND,{location:f});w=p.record.name,v=ae(lc(d.params,p.keys.filter(E=>!E.optional).concat(p.parent?p.parent.keys.filter(E=>E.optional):[]).map(E=>E.name)),f.params&&lc(f.params,p.keys.map(E=>E.name))),m=p.stringify(v)}else if(f.path!=null)m=f.path,p=n.find(E=>E.re.test(m)),p&&(v=p.parse(m),w=p.record.name);else{if(p=d.name?r.get(d.name):n.find(E=>E.re.test(d.path)),!p)throw nr(ve.MATCHER_NOT_FOUND,{location:f,currentLocation:d});w=p.record.name,v=ae({},d.params,f.params),m=p.stringify(v)}const x=[];let C=p;for(;C;)x.unshift(C.record),C=C.parent;return{name:w,path:m,params:v,matched:x,meta:e1(x)}}e.forEach(f=>i(f));function u(){n.length=0,r.clear()}return{addRoute:i,resolve:c,removeRoute:s,clearRoutes:u,getRoutes:a,getRecordMatcher:o}}function lc(e,t){const n={};for(const r of t)r in e&&(n[r]=e[r]);return n}function cc(e){const t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:Zb(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}};return Object.defineProperty(t,"mods",{value:{}}),t}function Zb(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const r in e.components)t[r]=typeof n=="object"?n[r]:n;return t}function uc(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function e1(e){return e.reduce((t,n)=>ae(t,n.meta),{})}function t1(e,t){let n=0,r=t.length;for(;n!==r;){const i=n+r>>1;Nd(e,t[i])<0?r=i:n=i+1}const o=n1(e);return o&&(r=t.lastIndexOf(o,r-1)),r}function n1(e){let t=e;for(;t=t.parent;)if(kd(t)&&Nd(e,t)===0)return t}function kd({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function fc(e){const t=me(ii),n=me(la),r=j(()=>{const l=Ne(e.to);return t.resolve(l)}),o=j(()=>{const{matched:l}=r.value,{length:c}=l,u=l[c-1],f=n.matched;if(!u||!f.length)return-1;const d=f.findIndex(tr.bind(null,u));if(d>-1)return d;const p=dc(l[c-2]);return c>1&&dc(u)===p&&f[f.length-1].path!==p?f.findIndex(tr.bind(null,l[c-2])):d}),i=j(()=>o.value>-1&&a1(n.params,r.value.params)),s=j(()=>o.value>-1&&o.value===n.matched.length-1&&$d(n.params,r.value.params));function a(l={}){if(s1(l)){const c=t[Ne(e.replace)?"replace":"push"](Ne(e.to)).catch(Rr);return e.viewTransition&&typeof document<"u"&&"startViewTransition"in document&&document.startViewTransition(()=>c),c}return Promise.resolve()}return{route:r,href:j(()=>r.value.href),isActive:i,isExactActive:s,navigate:a}}function r1(e){return e.length===1?e[0]:e}const o1=_e({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"},viewTransition:Boolean},useLink:fc,setup(e,{slots:t}){const n=gt(fc(e)),{options:r}=me(ii),o=j(()=>({[pc(e.activeClass,r.linkActiveClass,"router-link-active")]:n.isActive,[pc(e.exactActiveClass,r.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const i=t.default&&r1(t.default(n));return e.custom?i:Gt("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:o.value},i)}}}),i1=o1;function s1(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function a1(e,t){for(const n in t){const r=t[n],o=e[n];if(typeof r=="string"){if(r!==o)return!1}else if(!yt(o)||o.length!==r.length||r.some((i,s)=>i.valueOf()!==o[s].valueOf()))return!1}return!0}function dc(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const pc=(e,t,n)=>e??t??n,l1=_e({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const r=me(vs),o=j(()=>e.route||r.value),i=me(oc,0),s=j(()=>{let c=Ne(i);const{matched:u}=o.value;let f;for(;(f=u[c])&&!f.components;)c++;return c}),a=j(()=>o.value.matched[s.value]);at(oc,j(()=>s.value+1)),at(Lb,a),at(vs,o);const l=pt();return We(()=>[l.value,a.value,e.name],([c,u,f],[d,p,v])=>{u&&(u.instances[f]=c,p&&p!==u&&c&&c===d&&(u.leaveGuards.size||(u.leaveGuards=p.leaveGuards),u.updateGuards.size||(u.updateGuards=p.updateGuards))),c&&u&&(!p||!tr(u,p)||!d)&&(u.enterCallbacks[f]||[]).forEach(m=>m(c))},{flush:"post"}),()=>{const c=o.value,u=e.name,f=a.value,d=f&&f.components[u];if(!d)return hc(n.default,{Component:d,route:c});const p=f.props[u],v=p?p===!0?c.params:typeof p=="function"?p(c):p:null,w=Gt(d,ae({},v,t,{onVnodeUnmounted:x=>{x.component.isUnmounted&&(f.instances[u]=null)},ref:l}));return hc(n.default,{Component:w,route:c})||w}}});function hc(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const c1=l1;function u1(e){const t=Jb(e.routes,e),n=e.parseQuery||kb,r=e.stringifyQuery||rc,o=e.history,i=mr(),s=mr(),a=mr(),l=st(qt);let c=qt;Nn&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const u=Ii.bind(null,R=>""+R),f=Ii.bind(null,yb),d=Ii.bind(null,Vr);function p(R,W){let V,q;return Id(R)?(V=t.getRecordMatcher(R),q=W):q=R,t.addRoute(q,V)}function v(R){const W=t.getRecordMatcher(R);W&&t.removeRoute(W)}function m(){return t.getRoutes().map(R=>R.record)}function w(R){return!!t.getRecordMatcher(R)}function x(R,W){if(W=ae({},W||l.value),typeof R=="string"){const y=Ri(n,R,W.path),I=t.resolve({path:y.path},W),M=o.createHref(y.fullPath);return ae(y,I,{params:d(I.params),hash:Vr(y.hash),redirectedFrom:void 0,href:M})}let V;if(R.path!=null)V=ae({},R,{path:Ri(n,R.path,W.path).path});else{const y=ae({},R.params);for(const I in y)y[I]==null&&delete y[I];V=ae({},R,{params:f(y)}),W.params=f(W.params)}const q=t.resolve(V,W),oe=R.hash||"";q.params=u(d(q.params));const h=xb(r,ae({},R,{hash:gb(oe),path:q.path})),g=o.createHref(h);return ae({fullPath:h,hash:oe,query:r===rc?jb(R.query):R.query||{}},q,{redirectedFrom:void 0,href:g})}function C(R){return typeof R=="string"?Ri(n,R,l.value.path):ae({},R)}function E(R,W){if(c!==R)return nr(ve.NAVIGATION_CANCELLED,{from:W,to:R})}function S(R){return b(R)}function $(R){return S(ae(C(R),{replace:!0}))}function L(R,W){const V=R.matched[R.matched.length-1];if(V&&V.redirect){const{redirect:q}=V;let oe=typeof q=="function"?q(R,W):q;return typeof oe=="string"&&(oe=oe.includes("?")||oe.includes("#")?oe=C(oe):{path:oe},oe.params={}),ae({query:R.query,hash:R.hash,params:oe.path!=null?{}:R.params},oe)}}function b(R,W){const V=c=x(R),q=l.value,oe=R.state,h=R.force,g=R.replace===!0,y=L(V,q);if(y)return b(ae(C(y),{state:typeof y=="object"?ae({},oe,y.state):oe,force:h,replace:g}),W||V);const I=V;I.redirectedFrom=W;let M;return!h&&_b(r,q,V)&&(M=nr(ve.NAVIGATION_DUPLICATED,{to:I,from:q}),bt(q,q,!0,!1)),(M?Promise.resolve(M):U(I,q)).catch(T=>kt(T)?kt(T,ve.NAVIGATION_GUARD_REDIRECT)?T:Ut(T):ne(T,I,q)).then(T=>{if(T){if(kt(T,ve.NAVIGATION_GUARD_REDIRECT))return b(ae({replace:g},C(T.to),{state:typeof T.to=="object"?ae({},oe,T.to.state):oe,force:h}),W||I)}else T=D(I,q,!0,g,oe);return J(I,q,T),T})}function _(R,W){const V=E(R,W);return V?Promise.reject(V):Promise.resolve()}function P(R){const W=Tn.values().next().value;return W&&typeof W.runWithContext=="function"?W.runWithContext(R):R()}function U(R,W){let V;const[q,oe,h]=Db(R,W);V=Ni(q.reverse(),"beforeRouteLeave",R,W);for(const y of q)y.leaveGuards.forEach(I=>{V.push(Zt(I,R,W))});const g=_.bind(null,R,W);return V.push(g),rt(V).then(()=>{V=[];for(const y of i.list())V.push(Zt(y,R,W));return V.push(g),rt(V)}).then(()=>{V=Ni(oe,"beforeRouteUpdate",R,W);for(const y of oe)y.updateGuards.forEach(I=>{V.push(Zt(I,R,W))});return V.push(g),rt(V)}).then(()=>{V=[];for(const y of h)if(y.beforeEnter)if(yt(y.beforeEnter))for(const I of y.beforeEnter)V.push(Zt(I,R,W));else V.push(Zt(y.beforeEnter,R,W));return V.push(g),rt(V)}).then(()=>(R.matched.forEach(y=>y.enterCallbacks={}),V=Ni(h,"beforeRouteEnter",R,W,P),V.push(g),rt(V))).then(()=>{V=[];for(const y of s.list())V.push(Zt(y,R,W));return V.push(g),rt(V)}).catch(y=>kt(y,ve.NAVIGATION_CANCELLED)?y:Promise.reject(y))}function J(R,W,V){a.list().forEach(q=>P(()=>q(R,W,V)))}function D(R,W,V,q,oe){const h=E(R,W);if(h)return h;const g=W===qt,y=Nn?history.state:{};V&&(q||g?o.replace(R.fullPath,ae({scroll:g&&y&&y.scroll},oe)):o.push(R.fullPath,oe)),l.value=R,bt(R,W,V,g),Ut()}let te;function ce(){te||(te=o.listen((R,W,V)=>{if(!sn.listening)return;const q=x(R),oe=L(q,sn.currentRoute.value);if(oe){b(ae(oe,{replace:!0,force:!0}),q).catch(Rr);return}c=q;const h=l.value;Nn&&$b(nc(h.fullPath,V.delta),oi()),U(q,h).catch(g=>kt(g,ve.NAVIGATION_ABORTED|ve.NAVIGATION_CANCELLED)?g:kt(g,ve.NAVIGATION_GUARD_REDIRECT)?(b(ae(C(g.to),{force:!0}),q).then(y=>{kt(y,ve.NAVIGATION_ABORTED|ve.NAVIGATION_DUPLICATED)&&!V.delta&&V.type===gs.pop&&o.go(-1,!1)}).catch(Rr),Promise.reject()):(V.delta&&o.go(-V.delta,!1),ne(g,q,h))).then(g=>{g=g||D(q,h,!1),g&&(V.delta&&!kt(g,ve.NAVIGATION_CANCELLED)?o.go(-V.delta,!1):V.type===gs.pop&&kt(g,ve.NAVIGATION_ABORTED|ve.NAVIGATION_DUPLICATED)&&o.go(-1,!1)),J(q,h,g)}).catch(Rr)}))}let N=mr(),B=mr(),K;function ne(R,W,V){Ut(R);const q=B.list();return q.length?q.forEach(oe=>oe(R,W,V)):console.error(R),Promise.reject(R)}function Ke(){return K&&l.value!==qt?Promise.resolve():new Promise((R,W)=>{N.add([R,W])})}function Ut(R){return K||(K=!R,ce(),N.list().forEach(([W,V])=>R?V(R):W()),N.reset()),R}function bt(R,W,V,q){const{scrollBehavior:oe}=e;if(!Nn||!oe)return Promise.resolve();const h=!V&&Ib(nc(R.fullPath,0))||(q||!V)&&history.state&&history.state.scroll||null;return Ur().then(()=>oe(R,W,h)).then(g=>g&&Ab(g)).catch(g=>ne(g,R,W))}const Ve=R=>o.go(R);let On;const Tn=new Set,sn={currentRoute:l,listening:!0,addRoute:p,removeRoute:v,clearRoutes:t.clearRoutes,hasRoute:w,getRoutes:m,resolve:x,options:e,push:S,replace:$,go:Ve,back:()=>Ve(-1),forward:()=>Ve(1),beforeEach:i.add,beforeResolve:s.add,afterEach:a.add,onError:B.add,isReady:Ke,install(R){R.component("RouterLink",i1),R.component("RouterView",c1),R.config.globalProperties.$router=sn,Object.defineProperty(R.config.globalProperties,"$route",{enumerable:!0,get:()=>Ne(l)}),Nn&&!On&&l.value===qt&&(On=!0,S(o.location).catch(q=>{}));const W={};for(const q in qt)Object.defineProperty(W,q,{get:()=>l.value[q],enumerable:!0});R.provide(ii,sn),R.provide(la,Bc(W)),R.provide(vs,l);const V=R.unmount;Tn.add(R),R.unmount=function(){Tn.delete(R),Tn.size<1&&(c=qt,te&&te(),te=null,l.value=qt,On=!1,K=!1),V()}}};function rt(R){return R.reduce((W,V)=>W.then(()=>P(V)),Promise.resolve())}return sn}function sC(){return me(ii)}function aC(e){return me(la)}const f1=[{path:"/agent",name:"agent",component:()=>Ge(()=>import("./AgentLayout-BTmu8UQm.js"),__vite__mapDeps([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,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49])),meta:{title:"AgentKit"},children:[{path:"",redirect:"/agent/chat"},{path:"chat",name:"agent-chat",meta:{title:"对话",quadrant:"tl",tab:"chat"},component:()=>Ge(()=>import("./ChatView-BQlsnIIs.js"),__vite__mapDeps([10,1,2,3,4,9,11,7,8,12,13,14,15,16,17,18,19]))},{path:"code",name:"agent-code",meta:{title:"代码",quadrant:"tr",tab:"code"},component:()=>Ge(()=>import("./ChatView-BQlsnIIs.js"),__vite__mapDeps([10,1,2,3,4,9,11,7,8,12,13,14,15,16,17,18,19]))},{path:"terminal",name:"agent-terminal",meta:{title:"终端",quadrant:"bl",tab:"terminal"},component:()=>Ge(()=>import("./TerminalView-BibxhXp4.js"),__vite__mapDeps([20,3,9,21,4,8,22,18,23,24,25]))},{path:"monitor",name:"agent-monitor",meta:{title:"监控",quadrant:"br",tab:"monitor"},component:()=>Ge(()=>import("./EvolutionView-BhOD-ngQ.js"),__vite__mapDeps([39,2,3,4,40,36,30,29,7,8,9,22,17,32,24,41]))}]},{path:"/",redirect:"/agent"},{path:"/workflow",redirect:"/agent/code?tab=workflow"},{path:"/knowledge",redirect:"/agent/code?tab=knowledge"},{path:"/skills",redirect:"/agent/monitor?tab=skills"},{path:"/evolution",redirect:"/agent/monitor?tab=monitor"},{path:"/settings",redirect:"/agent/monitor?tab=settings"},{path:"/terminal",redirect:"/agent/terminal"},{path:"/computer-use",name:"computer-use",component:()=>Ge(()=>import("./ComputerUseView-CNxrLPiM.js"),__vite__mapDeps([50,48,9,3,51])),meta:{title:"Computer Use"}},{path:"/legacy",name:"legacy",component:()=>Ge(()=>import("./AppLayout-ChVEHFqE.js"),__vite__mapDeps([52,1,2,3,4,30,5,11,6,43,48,53])),meta:{title:"Fischer AgentKit (Legacy)"},children:[{path:"chat",name:"legacy-chat",component:()=>Ge(()=>import("./ChatView-BQlsnIIs.js"),__vite__mapDeps([10,1,2,3,4,9,11,7,8,12,13,14,15,16,17,18,19])),meta:{title:"智能对话"}},{path:"workflow",name:"legacy-workflow",component:()=>Ge(()=>import("./WorkflowView-D3Pe6eXM.js"),__vite__mapDeps([26,2,3,4,15,17,9,27,28,29,7,8,22,30,13,18,31,12,16,11,23,24,32,33,21,34])),meta:{title:"工作流"}},{path:"knowledge",name:"legacy-knowledge",component:()=>Ge(()=>import("./KnowledgeBaseView-DM5c3M3U.js"),__vite__mapDeps([35,2,3,4,22,28,29,7,8,9,30,13,18,31,12,16,11,23,24,32,36,37,17,14,21,5,27,33,38])),meta:{title:"知识库"}},{path:"skills",name:"legacy-skills",component:()=>Ge(()=>import("./SkillsView-q_2-8csR.js"),__vite__mapDeps([42,2,3,4,40,36,30,29,7,8,9,22,17,5,43,13,37,27,28,18,16,21,44,45])),meta:{title:"技能"}},{path:"terminal",name:"legacy-terminal",component:()=>Ge(()=>import("./TerminalView-BibxhXp4.js"),__vite__mapDeps([20,3,9,21,4,8,22,18,23,24,25])),meta:{title:"终端"}},{path:"evolution",name:"legacy-evolution",component:()=>Ge(()=>import("./EvolutionView-BhOD-ngQ.js"),__vite__mapDeps([39,2,3,4,40,36,30,29,7,8,9,22,17,32,24,41])),meta:{title:"自进化"}},{path:"settings",name:"legacy-settings",component:()=>Ge(()=>import("./SettingsView-C1a5n3Uj.js"),__vite__mapDeps([46,2,3,4,36,30,29,7,8,9,22,44,28,13,18,33,47])),meta:{title:"设置"}}]}],jd=u1({history:zb(),routes:f1});jd.beforeEach((e,t,n)=>{const r=e.meta.title;r&&(document.title=`${r} - Fischer AgentKit`),n()});const ca=pg(nb);ca.use(mg());ca.use(jd);ca.mount("#app");export{ks as $,We as A,Kr as B,Ur as C,W1 as D,Te as E,be as F,st as G,Vo as H,ze as I,Bn as J,J1 as K,bp as L,gt as M,Ue as N,pg as O,Gf as P,Ns as Q,pf as R,j1 as S,re as T,nf as U,U1 as V,gr as W,Sh as X,T1 as Y,Qr as Z,O as _,S1 as a,D1 as a$,Yr as a0,$1 as a1,O1 as a2,A1 as a3,Ci as a4,X1 as a5,Yi as a6,q1 as a7,Vg as a8,Ms as a9,y0 as aA,R1 as aB,Xu as aC,G1 as aD,E1 as aE,Ws as aF,Q1 as aG,oC as aH,Je as aI,qn as aJ,Oi as aK,xn as aL,il as aM,rC as aN,Bu as aO,Gs as aP,mp as aQ,Wf as aR,eC as aS,Z1 as aT,Ae as aU,ef as aV,K1 as aW,tC as aX,qu as aY,Fg as aZ,N1 as a_,na as aa,ar as ab,ir as ac,sr as ad,Gt as ae,zg as af,aC as ag,Kp as ah,_1 as ai,h1 as aj,C1 as ak,Ec as al,lu as am,w1 as an,En as ao,Pc as ap,Yd as aq,d1 as ar,ge as as,p1 as at,Di as au,As as av,x1 as aw,Eh as ax,zr as ay,sl as az,$u as b,Zy as b0,x0 as b1,qg as b2,vt as b3,qr as b4,Dp as b5,rr as b6,M1 as b7,nn as b8,k1 as b9,v1 as bA,L1 as bB,F1 as bC,z1 as bD,Pe as bE,Ao as bF,df as bG,nv as bH,H1 as ba,B1 as bb,V1 as bc,em as bd,ev as be,lr as bf,el as bg,Ie as bh,Gn as bi,iC as bj,Ju as bk,I1 as bl,ra as bm,ia as bn,oa as bo,Bp as bp,Y1 as bq,R0 as br,Kg as bs,ti as bt,nC as bu,Mf as bv,Bg as bw,Dg as bx,eu as by,Z0 as bz,A as c,_e as d,Ne as e,wh as f,j as g,xs as h,b1 as i,y1 as j,Eo as k,m1 as l,g1 as m,_s as n,So as o,Ys as p,ei as q,pt as r,Tf as s,Xd as t,sC as u,P1 as v,Yc as w,me as x,at as y,ni as z}; diff --git a/src/agentkit/server/static/assets/index-CuVGmFKn.js b/src/agentkit/server/static/assets/index-CuVGmFKn.js new file mode 100644 index 0000000..8de12b8 --- /dev/null +++ b/src/agentkit/server/static/assets/index-CuVGmFKn.js @@ -0,0 +1,7 @@ +import{aL as xe,P as w,d as N,c as s,E as y,aN as $e,aE as Se,m as he,_ as c,r as K,g as q,C as Ee,v as we,G as h,A as Y,Q as ae,H as De,N as U,bd as We,be as je,p as Ve,q as Ge,s as _e,aX as Xe,aS as Ke,z as Ue,R as Qe,aH as Z,Z as ke,F as qe,aG as ie,aI as G,B as Ye,S as Ze,ab as Je,ac as eo,ad as oo,bf as no,bg as de,bh as to,bi as lo,bj as ao,bk as io,aJ as ro,e as so,as as co}from"./index-Ci55MVrK.js";import{f as uo,K as ue,P as fo,i as mo,d as go,t as po}from"./zoom-C2fVs05p.js";import{o as Te}from"./FormItemContext-D_7H_KA_.js";import{p as vo}from"./pickAttrs-Crnv5AEc.js";import{i as J}from"./_plugin-vue_export-helper-CBXJ7-XR.js";import{B as te,c as Be}from"./index-Dr_Qcbdk.js";import{c as Co}from"./styleChecker-CUnokkun.js";const yo=new xe("antFadeIn",{"0%":{opacity:0},"100%":{opacity:1}}),bo=new xe("antFadeOut",{"0%":{opacity:1},"100%":{opacity:0}}),xo=function(e){let o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const{antCls:t}=e,n=`${t}-fade`,l=o?"&":"";return[uo(n,yo,bo,e.motionDurationMid,o),{[` + ${l}${n}-enter, + ${l}${n}-appear + `]:{opacity:0,animationTimingFunction:"linear"},[`${l}${n}-leave`]:{animationTimingFunction:"linear"}}]};function re(){return{keyboard:{type:Boolean,default:void 0},mask:{type:Boolean,default:void 0},afterClose:Function,closable:{type:Boolean,default:void 0},maskClosable:{type:Boolean,default:void 0},visible:{type:Boolean,default:void 0},destroyOnClose:{type:Boolean,default:void 0},mousePosition:w.shape({x:Number,y:Number}).loose,title:w.any,footer:w.any,transitionName:String,maskTransitionName:String,animation:w.any,maskAnimation:w.any,wrapStyle:{type:Object,default:void 0},bodyStyle:{type:Object,default:void 0},maskStyle:{type:Object,default:void 0},prefixCls:String,wrapClassName:String,rootClassName:String,width:[String,Number],height:[String,Number],zIndex:Number,bodyProps:w.any,maskProps:w.any,wrapProps:w.any,getContainer:w.any,dialogStyle:{type:Object,default:void 0},dialogClass:String,closeIcon:w.any,forceRender:{type:Boolean,default:void 0},getOpenCount:Function,focusTriggerAfterClose:{type:Boolean,default:void 0},onClose:Function,modalRender:Function}}function fe(e,o,t){let n=o;return!n&&t&&(n=`${e}-${t}`),n}let me=-1;function $o(){return me+=1,me}function ge(e,o){let t=e[`page${o?"Y":"X"}Offset`];const n=`scroll${o?"Top":"Left"}`;if(typeof t!="number"){const l=e.document;t=l.documentElement[n],typeof t!="number"&&(t=l.body[n])}return t}function So(e){const o=e.getBoundingClientRect(),t={left:o.left,top:o.top},n=e.ownerDocument,l=n.defaultView||n.parentWindow;return t.left+=ge(l),t.top+=ge(l,!0),t}const ho={width:0,height:0,overflow:"hidden",outline:"none"},wo={outline:"none"},To=N({compatConfig:{MODE:3},name:"DialogContent",inheritAttrs:!1,props:c(c({},re()),{motionName:String,ariaId:String,onVisibleChanged:Function,onMousedown:Function,onMouseup:Function}),setup(e,o){let{expose:t,slots:n,attrs:l}=o;const d=K(),g=K(),v=K();t({focus:()=>{var a;(a=d.value)===null||a===void 0||a.focus({preventScroll:!0})},changeActive:a=>{const{activeElement:r}=document;a&&r===g.value?d.value.focus({preventScroll:!0}):!a&&r===d.value&&g.value.focus({preventScroll:!0})}});const b=K(),f=q(()=>{const{width:a,height:r}=e,p={};return a!==void 0&&(p.width=typeof a=="number"?`${a}px`:a),r!==void 0&&(p.height=typeof r=="number"?`${r}px`:r),b.value&&(p.transformOrigin=b.value),p}),u=()=>{Ee(()=>{if(v.value){const a=So(v.value);b.value=e.mousePosition?`${e.mousePosition.x-a.left}px ${e.mousePosition.y-a.top}px`:""}})},i=a=>{e.onVisibleChanged(a)};return()=>{var a,r,p,x;const{prefixCls:S,footer:m=(a=n.footer)===null||a===void 0?void 0:a.call(n),title:$=(r=n.title)===null||r===void 0?void 0:r.call(n),ariaId:C,closable:T,closeIcon:B=(p=n.closeIcon)===null||p===void 0?void 0:p.call(n),onClose:F,bodyStyle:I,bodyProps:O,onMousedown:z,onMouseup:A,visible:E,modalRender:D=n.modalRender,destroyOnClose:_,motionName:H}=e;let W;m&&(W=s("div",{class:`${S}-footer`},[m]));let j;$&&(j=s("div",{class:`${S}-header`},[s("div",{class:`${S}-title`,id:C},[$])]));let R;T&&(R=s("button",{type:"button",onClick:F,"aria-label":"Close",class:`${S}-close`},[B||s("span",{class:`${S}-close-x`},null)]));const M=s("div",{class:`${S}-content`},[R,j,s("div",y({class:`${S}-body`,style:I},O),[(x=n.default)===null||x===void 0?void 0:x.call(n)]),W]),ee=$e(H);return s(Se,y(y({},ee),{},{onBeforeEnter:u,onAfterEnter:()=>i(!0),onAfterLeave:()=>i(!1)}),{default:()=>[E||!_?he(s("div",y(y({},l),{},{ref:v,key:"dialog-element",role:"document",style:[f.value,l.style],class:[S,l.class],onMousedown:z,onMouseup:A}),[s("div",{tabindex:0,ref:d,style:wo},[D?D({originVNode:M}):M]),s("div",{tabindex:0,ref:g,style:ho},null)]),[[we,E]]):null]})}}}),Bo=N({compatConfig:{MODE:3},name:"DialogMask",props:{prefixCls:String,visible:Boolean,motionName:String,maskProps:Object},setup(e,o){return()=>{const{prefixCls:t,visible:n,maskProps:l,motionName:d}=e,g=$e(d);return s(Se,g,{default:()=>[he(s("div",y({class:`${t}-mask`},l),null),[[we,n]])]})}}}),pe=N({compatConfig:{MODE:3},name:"VcDialog",inheritAttrs:!1,props:J(c(c({},re()),{getOpenCount:Function,scrollLocker:Object}),{mask:!0,visible:!1,keyboard:!0,closable:!0,maskClosable:!0,destroyOnClose:!1,prefixCls:"rc-dialog",getOpenCount:()=>null,focusTriggerAfterClose:!0}),setup(e,o){let{attrs:t,slots:n}=o;const l=h(),d=h(),g=h(),v=h(e.visible),b=h(`vcDialogTitle${$o()}`),f=m=>{var $,C;if(m)We(d.value,document.activeElement)||(l.value=document.activeElement,($=g.value)===null||$===void 0||$.focus());else{const T=v.value;if(v.value=!1,e.mask&&l.value&&e.focusTriggerAfterClose){try{l.value.focus({preventScroll:!0})}catch{}l.value=null}T&&((C=e.afterClose)===null||C===void 0||C.call(e))}},u=m=>{var $;($=e.onClose)===null||$===void 0||$.call(e,m)},i=h(!1),a=h(),r=()=>{clearTimeout(a.value),i.value=!0},p=()=>{a.value=setTimeout(()=>{i.value=!1})},x=m=>{if(!e.maskClosable)return null;i.value?i.value=!1:d.value===m.target&&u(m)},S=m=>{if(e.keyboard&&m.keyCode===ue.ESC){m.stopPropagation(),u(m);return}e.visible&&m.keyCode===ue.TAB&&g.value.changeActive(!m.shiftKey)};return Y(()=>e.visible,()=>{e.visible&&(v.value=!0)},{flush:"post"}),ae(()=>{var m;clearTimeout(a.value),(m=e.scrollLocker)===null||m===void 0||m.unLock()}),De(()=>{var m,$;(m=e.scrollLocker)===null||m===void 0||m.unLock(),v.value&&(($=e.scrollLocker)===null||$===void 0||$.lock())}),()=>{const{prefixCls:m,mask:$,visible:C,maskTransitionName:T,maskAnimation:B,zIndex:F,wrapClassName:I,rootClassName:O,wrapStyle:z,closable:A,maskProps:E,maskStyle:D,transitionName:_,animation:H,wrapProps:W,title:j=n.title}=e,{style:R,class:M}=t;return s("div",y({class:[`${m}-root`,O]},vo(e,{data:!0})),[s(Bo,{prefixCls:m,visible:$&&C,motionName:fe(m,T,B),style:c({zIndex:F},D),maskProps:E},null),s("div",y({tabIndex:-1,onKeydown:S,class:U(`${m}-wrap`,I),ref:d,onClick:x,role:"dialog","aria-labelledby":j?b.value:null,style:c(c({zIndex:F},z),{display:v.value?null:"none"})},W),[s(To,y(y({},Te(e,["scrollLocker"])),{},{style:R,class:M,onMousedown:r,onMouseup:p,ref:g,closable:A,ariaId:b.value,prefixCls:m,visible:C,onClose:u,onVisibleChanged:f,motionName:fe(m,_,H)}),n)])])}}}),Po=re(),Fo=N({compatConfig:{MODE:3},name:"DialogWrap",inheritAttrs:!1,props:J(Po,{visible:!1}),setup(e,o){let{attrs:t,slots:n}=o;const l=K(e.visible);return je({},{inTriggerContext:!1}),Y(()=>e.visible,()=>{e.visible&&(l.value=!0)},{flush:"post"}),()=>{const{visible:d,getContainer:g,forceRender:v,destroyOnClose:b=!1,afterClose:f}=e;let u=c(c(c({},e),t),{ref:"_component",key:"dialog"});return g===!1?s(pe,y(y({},u),{},{getOpenCount:()=>2}),n):!v&&b&&!l.value?null:s(fo,{autoLock:!0,visible:d,forceRender:v,getContainer:g},{default:i=>(u=c(c(c({},u),i),{afterClose:()=>{f==null||f(),l.value=!1}}),s(pe,u,n))})}}});function ve(e){return{position:e,top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0}}const Io=e=>{const{componentCls:o}=e;return[{[`${o}-root`]:{[`${o}${e.antCls}-zoom-enter, ${o}${e.antCls}-zoom-appear`]:{transform:"none",opacity:0,animationDuration:e.motionDurationSlow,userSelect:"none"},[`${o}${e.antCls}-zoom-leave ${o}-content`]:{pointerEvents:"none"},[`${o}-mask`]:c(c({},ve("fixed")),{zIndex:e.zIndexPopupBase,height:"100%",backgroundColor:e.colorBgMask,[`${o}-hidden`]:{display:"none"}}),[`${o}-wrap`]:c(c({},ve("fixed")),{overflow:"auto",outline:0,WebkitOverflowScrolling:"touch"})}},{[`${o}-root`]:xo(e)}]},Mo=e=>{const{componentCls:o}=e;return[{[`${o}-root`]:{[`${o}-wrap`]:{zIndex:e.zIndexPopupBase,position:"fixed",inset:0,overflow:"auto",outline:0,WebkitOverflowScrolling:"touch"},[`${o}-wrap-rtl`]:{direction:"rtl"},[`${o}-centered`]:{textAlign:"center","&::before":{display:"inline-block",width:0,height:"100%",verticalAlign:"middle",content:'""'},[o]:{top:0,display:"inline-block",paddingBottom:0,textAlign:"start",verticalAlign:"middle"}},[`@media (max-width: ${e.screenSMMax})`]:{[o]:{maxWidth:"calc(100vw - 16px)",margin:`${e.marginXS} auto`},[`${o}-centered`]:{[o]:{flex:1}}}}},{[o]:c(c({},_e(e)),{pointerEvents:"none",position:"relative",top:100,width:"auto",maxWidth:`calc(100vw - ${e.margin*2}px)`,margin:"0 auto",paddingBottom:e.paddingLG,[`${o}-title`]:{margin:0,color:e.modalHeadingColor,fontWeight:e.fontWeightStrong,fontSize:e.modalHeaderTitleFontSize,lineHeight:e.modalHeaderTitleLineHeight,wordWrap:"break-word"},[`${o}-content`]:{position:"relative",backgroundColor:e.modalContentBg,backgroundClip:"padding-box",border:0,borderRadius:e.borderRadiusLG,boxShadow:e.boxShadowSecondary,pointerEvents:"auto",padding:`${e.paddingMD}px ${e.paddingContentHorizontalLG}px`},[`${o}-close`]:c({position:"absolute",top:(e.modalHeaderCloseSize-e.modalCloseBtnSize)/2,insetInlineEnd:(e.modalHeaderCloseSize-e.modalCloseBtnSize)/2,zIndex:e.zIndexPopupBase+10,padding:0,color:e.modalCloseColor,fontWeight:e.fontWeightStrong,lineHeight:1,textDecoration:"none",background:"transparent",borderRadius:e.borderRadiusSM,width:e.modalConfirmIconSize,height:e.modalConfirmIconSize,border:0,outline:0,cursor:"pointer",transition:`color ${e.motionDurationMid}, background-color ${e.motionDurationMid}`,"&-x":{display:"block",fontSize:e.fontSizeLG,fontStyle:"normal",lineHeight:`${e.modalCloseBtnSize}px`,textAlign:"center",textTransform:"none",textRendering:"auto"},"&:hover":{color:e.modalIconHoverColor,backgroundColor:e.wireframe?"transparent":e.colorFillContent,textDecoration:"none"},"&:active":{backgroundColor:e.wireframe?"transparent":e.colorFillContentHover}},Xe(e)),[`${o}-header`]:{color:e.colorText,background:e.modalHeaderBg,borderRadius:`${e.borderRadiusLG}px ${e.borderRadiusLG}px 0 0`,marginBottom:e.marginXS},[`${o}-body`]:{fontSize:e.fontSize,lineHeight:e.lineHeight,wordWrap:"break-word"},[`${o}-footer`]:{textAlign:"end",background:e.modalFooterBg,marginTop:e.marginSM,[`${e.antCls}-btn + ${e.antCls}-btn:not(${e.antCls}-dropdown-trigger)`]:{marginBottom:0,marginInlineStart:e.marginXS}},[`${o}-open`]:{overflow:"hidden"}})},{[`${o}-pure-panel`]:{top:"auto",padding:0,display:"flex",flexDirection:"column",[`${o}-content, + ${o}-body, + ${o}-confirm-body-wrapper`]:{display:"flex",flexDirection:"column",flex:"auto"},[`${o}-confirm-body`]:{marginBottom:"auto"}}}]},No=e=>{const{componentCls:o}=e,t=`${o}-confirm`;return{[t]:{"&-rtl":{direction:"rtl"},[`${e.antCls}-modal-header`]:{display:"none"},[`${t}-body-wrapper`]:c({},Ke()),[`${t}-body`]:{display:"flex",flexWrap:"wrap",alignItems:"center",[`${t}-title`]:{flex:"0 0 100%",display:"block",overflow:"hidden",color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.modalHeaderTitleFontSize,lineHeight:e.modalHeaderTitleLineHeight,[`+ ${t}-content`]:{marginBlockStart:e.marginXS,flexBasis:"100%",maxWidth:`calc(100% - ${e.modalConfirmIconSize+e.marginSM}px)`}},[`${t}-content`]:{color:e.colorText,fontSize:e.fontSize},[`> ${e.iconCls}`]:{flex:"none",marginInlineEnd:e.marginSM,fontSize:e.modalConfirmIconSize,[`+ ${t}-title`]:{flex:1},[`+ ${t}-title + ${t}-content`]:{marginInlineStart:e.modalConfirmIconSize+e.marginSM}}},[`${t}-btns`]:{textAlign:"end",marginTop:e.marginSM,[`${e.antCls}-btn + ${e.antCls}-btn`]:{marginBottom:0,marginInlineStart:e.marginXS}}},[`${t}-error ${t}-body > ${e.iconCls}`]:{color:e.colorError},[`${t}-warning ${t}-body > ${e.iconCls}, + ${t}-confirm ${t}-body > ${e.iconCls}`]:{color:e.colorWarning},[`${t}-info ${t}-body > ${e.iconCls}`]:{color:e.colorInfo},[`${t}-success ${t}-body > ${e.iconCls}`]:{color:e.colorSuccess},[`${o}-zoom-leave ${o}-btns`]:{pointerEvents:"none"}}},Oo=e=>{const{componentCls:o}=e;return{[`${o}-root`]:{[`${o}-wrap-rtl`]:{direction:"rtl",[`${o}-confirm-body`]:{direction:"rtl"}}}}},zo=e=>{const{componentCls:o,antCls:t}=e,n=`${o}-confirm`;return{[o]:{[`${o}-content`]:{padding:0},[`${o}-header`]:{padding:e.modalHeaderPadding,borderBottom:`${e.modalHeaderBorderWidth}px ${e.modalHeaderBorderStyle} ${e.modalHeaderBorderColorSplit}`,marginBottom:0},[`${o}-body`]:{padding:e.modalBodyPadding},[`${o}-footer`]:{padding:`${e.modalFooterPaddingVertical}px ${e.modalFooterPaddingHorizontal}px`,borderTop:`${e.modalFooterBorderWidth}px ${e.modalFooterBorderStyle} ${e.modalFooterBorderColorSplit}`,borderRadius:`0 0 ${e.borderRadiusLG}px ${e.borderRadiusLG}px`,marginTop:0}},[n]:{[`${t}-modal-body`]:{padding:`${e.padding*2}px ${e.padding*2}px ${e.paddingLG}px`},[`${n}-body`]:{[`> ${e.iconCls}`]:{marginInlineEnd:e.margin,[`+ ${n}-title + ${n}-content`]:{marginInlineStart:e.modalConfirmIconSize+e.margin}}},[`${n}-btns`]:{marginTop:e.marginLG}}}},Ho=Ve("Modal",e=>{const o=e.padding,t=e.fontSizeHeading5,n=e.lineHeightHeading5,l=Ge(e,{modalBodyPadding:e.paddingLG,modalHeaderBg:e.colorBgElevated,modalHeaderPadding:`${o}px ${e.paddingLG}px`,modalHeaderBorderWidth:e.lineWidth,modalHeaderBorderStyle:e.lineType,modalHeaderTitleLineHeight:n,modalHeaderTitleFontSize:t,modalHeaderBorderColorSplit:e.colorSplit,modalHeaderCloseSize:n*t+o*2,modalContentBg:e.colorBgElevated,modalHeadingColor:e.colorTextHeading,modalCloseColor:e.colorTextDescription,modalFooterBg:"transparent",modalFooterBorderColorSplit:e.colorSplit,modalFooterBorderStyle:e.lineType,modalFooterPaddingVertical:e.paddingXS,modalFooterPaddingHorizontal:e.padding,modalFooterBorderWidth:e.lineWidth,modalConfirmTitleFontSize:e.fontSizeLG,modalIconHoverColor:e.colorIconHover,modalConfirmIconSize:e.fontSize*e.lineHeight,modalCloseBtnSize:e.controlHeightLG*.55});return[Mo(l),No(l),Oo(l),Io(l),e.wireframe&&zo(l),mo(l,"zoom")]});var Ao=function(e,o){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&o.indexOf(n)<0&&(t[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var l=0,n=Object.getOwnPropertySymbols(e);l{le={x:e.pageX,y:e.pageY},setTimeout(()=>le=null,100)};Co()&&go(document.documentElement,"click",Ro,!0);const Lo=()=>({prefixCls:String,visible:{type:Boolean,default:void 0},open:{type:Boolean,default:void 0},confirmLoading:{type:Boolean,default:void 0},title:w.any,closable:{type:Boolean,default:void 0},closeIcon:w.any,onOk:Function,onCancel:Function,"onUpdate:visible":Function,"onUpdate:open":Function,onChange:Function,afterClose:Function,centered:{type:Boolean,default:void 0},width:[String,Number],footer:w.any,okText:w.any,okType:String,cancelText:w.any,icon:w.any,maskClosable:{type:Boolean,default:void 0},forceRender:{type:Boolean,default:void 0},okButtonProps:G(),cancelButtonProps:G(),destroyOnClose:{type:Boolean,default:void 0},wrapClassName:String,maskTransitionName:String,transitionName:String,getContainer:{type:[String,Function,Boolean,Object],default:void 0},zIndex:Number,bodyStyle:G(),maskStyle:G(),mask:{type:Boolean,default:void 0},keyboard:{type:Boolean,default:void 0},wrapProps:Object,focusTriggerAfterClose:{type:Boolean,default:void 0},modalRender:Function,mousePosition:G()}),P=N({compatConfig:{MODE:3},name:"AModal",inheritAttrs:!1,props:J(Lo(),{width:520,confirmLoading:!1,okType:"primary"}),setup(e,o){let{emit:t,slots:n,attrs:l}=o;const[d]=ie("Modal"),{prefixCls:g,rootPrefixCls:v,direction:b,getPopupContainer:f}=Ue("modal",e),[u,i]=Ho(g);Qe(e.visible===void 0);const a=x=>{t("update:visible",!1),t("update:open",!1),t("cancel",x),t("change",!1)},r=x=>{t("ok",x)},p=()=>{var x,S;const{okText:m=(x=n.okText)===null||x===void 0?void 0:x.call(n),okType:$,cancelText:C=(S=n.cancelText)===null||S===void 0?void 0:S.call(n),confirmLoading:T}=e;return s(qe,null,[s(te,y({onClick:a},e.cancelButtonProps),{default:()=>[C||d.value.cancelText]}),s(te,y(y({},Be($)),{},{loading:T,onClick:r},e.okButtonProps),{default:()=>[m||d.value.okText]})])};return()=>{var x,S;const{prefixCls:m,visible:$,open:C,wrapClassName:T,centered:B,getContainer:F,closeIcon:I=(x=n.closeIcon)===null||x===void 0?void 0:x.call(n),focusTriggerAfterClose:O=!0}=e,z=Ao(e,["prefixCls","visible","open","wrapClassName","centered","getContainer","closeIcon","focusTriggerAfterClose"]),A=U(T,{[`${g.value}-centered`]:!!B,[`${g.value}-wrap-rtl`]:b.value==="rtl"});return u(s(Fo,y(y(y({},z),l),{},{rootClassName:i.value,class:U(i.value,l.class),getContainer:F||(f==null?void 0:f.value),prefixCls:g.value,wrapClassName:A,visible:C??$,onClose:a,focusTriggerAfterClose:O,transitionName:Z(v.value,"zoom",e.transitionName),maskTransitionName:Z(v.value,"fade",e.maskTransitionName),mousePosition:(S=z.mousePosition)!==null&&S!==void 0?S:le}),c(c({},n),{footer:n.footer||p,closeIcon:()=>s("span",{class:`${g.value}-close-x`},[I||s(ke,{class:`${g.value}-close-icon`},null)])})))}}}),Eo=()=>{const e=h(!1);return ae(()=>{e.value=!0}),e},Do={type:{type:String},actionFn:Function,close:Function,autofocus:Boolean,prefixCls:String,buttonProps:G(),emitEvent:Boolean,quitOnNullishReturnValue:Boolean};function Ce(e){return!!(e&&e.then)}const ye=N({compatConfig:{MODE:3},name:"ActionButton",props:Do,setup(e,o){let{slots:t}=o;const n=h(!1),l=h(),d=h(!1);let g;const v=Eo();Ye(()=>{e.autofocus&&(g=setTimeout(()=>{var i,a;return(a=(i=Ze(l.value))===null||i===void 0?void 0:i.focus)===null||a===void 0?void 0:a.call(i)}))}),ae(()=>{clearTimeout(g)});const b=function(){for(var i,a=arguments.length,r=new Array(a),p=0;p{Ce(i)&&(d.value=!0,i.then(function(){v.value||(d.value=!1),b(...arguments),n.value=!1},a=>(v.value||(d.value=!1),n.value=!1,Promise.reject(a))))},u=i=>{const{actionFn:a}=e;if(n.value)return;if(n.value=!0,!a){b();return}let r;if(e.emitEvent){if(r=a(i),e.quitOnNullishReturnValue&&!Ce(r)){n.value=!1,b(i);return}}else if(a.length)r=a(e.close),n.value=!1;else if(r=a(),!r){b();return}f(r)};return()=>{const{type:i,prefixCls:a,buttonProps:r}=e;return s(te,y(y(y({},Be(i)),{},{onClick:u,loading:d.value,prefixCls:a},r),{},{ref:l}),t)}}});function V(e){return typeof e=="function"?e():e}const Pe=N({name:"ConfirmDialog",inheritAttrs:!1,props:["icon","onCancel","onOk","close","closable","zIndex","afterClose","visible","open","keyboard","centered","getContainer","maskStyle","okButtonProps","cancelButtonProps","okType","prefixCls","okCancel","width","mask","maskClosable","okText","cancelText","autoFocusButton","transitionName","maskTransitionName","type","title","content","direction","rootPrefixCls","bodyStyle","closeIcon","modalRender","focusTriggerAfterClose","wrapClassName","confirmPrefixCls","footer"],setup(e,o){let{attrs:t}=o;const[n]=ie("Modal");return()=>{const{icon:l,onCancel:d,onOk:g,close:v,okText:b,closable:f=!1,zIndex:u,afterClose:i,keyboard:a,centered:r,getContainer:p,maskStyle:x,okButtonProps:S,cancelButtonProps:m,okCancel:$,width:C=416,mask:T=!0,maskClosable:B=!1,type:F,open:I,title:O,content:z,direction:A,closeIcon:E,modalRender:D,focusTriggerAfterClose:_,rootPrefixCls:H,bodyStyle:W,wrapClassName:j,footer:R}=e;let M=l;if(!l&&l!==null)switch(F){case"info":M=s(no,null,null);break;case"success":M=s(oo,null,null);break;case"error":M=s(eo,null,null);break;default:M=s(Je,null,null)}const ee=e.okType||"primary",oe=e.prefixCls||"ant-modal",X=`${oe}-confirm`,He=t.style||{},se=$??F==="confirm",ce=e.autoFocusButton===null?!1:e.autoFocusButton||"ok",k=`${oe}-confirm`,Ae=U(k,`${k}-${e.type}`,{[`${k}-rtl`]:A==="rtl"},t.class),ne=n.value,Re=se&&s(ye,{actionFn:d,close:v,autofocus:ce==="cancel",buttonProps:m,prefixCls:`${H}-btn`},{default:()=>[V(e.cancelText)||ne.cancelText]});return s(P,{prefixCls:oe,class:Ae,wrapClassName:U({[`${k}-centered`]:!!r},j),onCancel:Le=>v==null?void 0:v({triggerCancel:!0},Le),open:I,title:"",footer:"",transitionName:Z(H,"zoom",e.transitionName),maskTransitionName:Z(H,"fade",e.maskTransitionName),mask:T,maskClosable:B,maskStyle:x,style:He,bodyStyle:W,width:C,zIndex:u,afterClose:i,keyboard:a,centered:r,getContainer:p,closable:f,closeIcon:E,modalRender:D,focusTriggerAfterClose:_},{default:()=>[s("div",{class:`${X}-body-wrapper`},[s("div",{class:`${X}-body`},[V(M),O===void 0?null:s("span",{class:`${X}-title`},[V(O)]),s("div",{class:`${X}-content`},[V(z)])]),R!==void 0?V(R):s("div",{class:`${X}-btns`},[Re,s(ye,{type:ee,actionFn:g,close:v,autofocus:ce==="ok",buttonProps:S,prefixCls:`${H}-btn`},{default:()=>[V(b)||(se?ne.okText:ne.justOkText)]})])])]})}}}),L=[],Q=e=>{const o=document.createDocumentFragment();let t=c(c({},Te(e,["parentContext","appContext"])),{close:d,open:!0}),n=null;function l(){n&&(de(null,o),n=null);for(var f=arguments.length,u=new Array(f),i=0;ir&&r.triggerCancel);e.onCancel&&a&&e.onCancel(()=>{},...u.slice(1));for(let r=0;r{typeof e.afterClose=="function"&&e.afterClose(),l.apply(this,u)}}),t.visible&&delete t.visible,g(t)}function g(f){typeof f=="function"?t=f(t):t=c(c({},t),f),n&&po(n,t,o)}const v=f=>{const u=to,i=u.prefixCls,a=f.prefixCls||`${i}-modal`,r=u.iconPrefixCls,p=ao();return s(lo,y(y({},u),{},{prefixCls:i}),{default:()=>[s(Pe,y(y({},f),{},{rootPrefixCls:i,prefixCls:a,iconPrefixCls:r,locale:p,cancelText:f.cancelText||p.cancelText}),null)]})};function b(f){const u=s(v,c({},f));return u.appContext=e.parentContext||e.appContext||u.appContext,de(u,o),u}return n=b(t),L.push(d),{destroy:d,update:g}};function Fe(e){return c(c({},e),{type:"warning"})}function Ie(e){return c(c({},e),{type:"info"})}function Me(e){return c(c({},e),{type:"success"})}function Ne(e){return c(c({},e),{type:"error"})}function Oe(e){return c(c({},e),{type:"confirm"})}const Wo=()=>({config:Object,afterClose:Function,destroyAction:Function,open:Boolean}),jo=N({name:"HookModal",inheritAttrs:!1,props:J(Wo(),{config:{width:520,okType:"primary"}}),setup(e,o){let{expose:t}=o;var n;const l=q(()=>e.open),d=q(()=>e.config),{direction:g,getPrefixCls:v}=io(),b=v("modal"),f=v(),u=()=>{var p,x;e==null||e.afterClose(),(x=(p=d.value).afterClose)===null||x===void 0||x.call(p)},i=function(){e.destroyAction(...arguments)};t({destroy:i});const a=(n=d.value.okCancel)!==null&&n!==void 0?n:d.value.type==="confirm",[r]=ie("Modal",ro.Modal);return()=>s(Pe,y(y({prefixCls:b,rootPrefixCls:f},d.value),{},{close:i,open:l.value,afterClose:u,okText:d.value.okText||(a?r==null?void 0:r.value.okText:r==null?void 0:r.value.justOkText),direction:d.value.direction||g.value,cancelText:d.value.cancelText||(r==null?void 0:r.value.cancelText)}),null)}});let be=0;const Vo=N({name:"ElementsHolder",inheritAttrs:!1,setup(e,o){let{expose:t}=o;const n=h([]);return t({addModal:d=>(n.value.push(d),n.value=n.value.slice(),()=>{n.value=n.value.filter(g=>g!==d)})}),()=>n.value.map(d=>d())}});function Go(){const e=h(null),o=h([]);Y(o,()=>{o.value.length&&([...o.value].forEach(g=>{g()}),o.value=[])},{immediate:!0});const t=d=>function(v){var b;be+=1;const f=h(!0),u=h(null),i=h(so(v)),a=h({});Y(()=>v,C=>{S(c(c({},co(C)?C.value:C),a.value))});const r=function(){f.value=!1;for(var C=arguments.length,T=new Array(C),B=0;BI&&I.triggerCancel);i.value.onCancel&&F&&i.value.onCancel(()=>{},...T.slice(1))};let p;const x=()=>s(jo,{key:`modal-${be}`,config:d(i.value),ref:u,open:f.value,destroyAction:r,afterClose:()=>{p==null||p()}},null);p=(b=e.value)===null||b===void 0?void 0:b.addModal(x),p&&L.push(p);const S=C=>{i.value=c(c({},i.value),C)};return{destroy:()=>{u.value?r():o.value=[...o.value,r]},update:C=>{a.value=C,u.value?S(C):o.value=[...o.value,()=>S(C)]}}},n=q(()=>({info:t(Ie),success:t(Me),error:t(Ne),warning:t(Fe),confirm:t(Oe)})),l=Symbol("modalHolderKey");return[n.value,()=>s(Vo,{key:l,ref:e},null)]}function ze(e){return Q(Fe(e))}P.useModal=Go;P.info=function(o){return Q(Ie(o))};P.success=function(o){return Q(Me(o))};P.error=function(o){return Q(Ne(o))};P.warning=ze;P.warn=ze;P.confirm=function(o){return Q(Oe(o))};P.destroyAll=function(){for(;L.length;){const o=L.pop();o&&o()}};P.install=function(e){return e.component(P.name,P),e};export{ye as A,P as M}; diff --git a/src/agentkit/server/static/assets/index-CzM1ezFC.js b/src/agentkit/server/static/assets/index-CzM1ezFC.js new file mode 100644 index 0000000..d1a8878 --- /dev/null +++ b/src/agentkit/server/static/assets/index-CzM1ezFC.js @@ -0,0 +1 @@ +import{d as k,z as L,A as M,aP as W,c as m,_ as p,F as q,E as F,r as G,g as s,a4 as H,P as I,af as P,N as J}from"./index-Ci55MVrK.js";import{u as K}from"./index-Cec7QIaL.js";import{a as Q,C as z}from"./index-Dr_Qcbdk.js";const U={small:8,middle:16,large:24},X=()=>({prefixCls:String,size:{type:[String,Number,Array]},direction:I.oneOf(P("horizontal","vertical")).def("horizontal"),align:I.oneOf(P("start","end","center","baseline")),wrap:H()});function Y(e){return typeof e=="string"?U[e]:e||0}const d=k({compatConfig:{MODE:3},name:"ASpace",inheritAttrs:!1,props:X(),slots:Object,setup(e,j){let{slots:o,attrs:f}=j;const{prefixCls:l,space:g,direction:x}=L("space",e),[B,E]=Q(l),h=K(),n=s(()=>{var a,t,i;return(i=(a=e.size)!==null&&a!==void 0?a:(t=g==null?void 0:g.value)===null||t===void 0?void 0:t.size)!==null&&i!==void 0?i:"small"}),y=G(),r=G();M(n,()=>{[y.value,r.value]=(Array.isArray(n.value)?n.value:[n.value,n.value]).map(a=>Y(a))},{immediate:!0});const C=s(()=>e.align===void 0&&e.direction==="horizontal"?"center":e.align),D=s(()=>J(l.value,E.value,`${l.value}-${e.direction}`,{[`${l.value}-rtl`]:x.value==="rtl",[`${l.value}-align-${C.value}`]:C.value})),R=s(()=>x.value==="rtl"?"marginLeft":"marginRight"),T=s(()=>{const a={};return h.value&&(a.columnGap=`${y.value}px`,a.rowGap=`${r.value}px`),p(p({},a),e.wrap&&{flexWrap:"wrap",marginBottom:`${-r.value}px`})});return()=>{var a,t;const{wrap:i,direction:V="horizontal"}=e,b=(a=o.default)===null||a===void 0?void 0:a.call(o),_=W(b),w=_.length;if(w===0)return null;const c=(t=o.split)===null||t===void 0?void 0:t.call(o),A=`${l.value}-item`,N=y.value,S=w-1;return m("div",F(F({},f),{},{class:[D.value,f.class],style:[T.value,f.style]}),[_.map((O,u)=>{let $=b.indexOf(O);$===-1&&($=`$$space-${u}`);let v={};return h.value||(V==="vertical"?u{r.value&&r.value.focus()},blur:()=>{r.value&&r.value.blur()},input:r,setSelectionRange:(l,d,b)=>{var g;(g=r.value)===null||g===void 0||g.setSelectionRange(l,d,b)},select:()=>{var l;(l=r.value)===null||l===void 0||l.select()},getSelectionStart:()=>{var l;return(l=r.value)===null||l===void 0?void 0:l.selectionStart},getSelectionEnd:()=>{var l;return(l=r.value)===null||l===void 0?void 0:l.selectionEnd},getScrollTop:()=>{var l;return(l=r.value)===null||l===void 0?void 0:l.scrollTop}}),()=>{const{tag:l,value:d}=e,b=Et(e,["tag","value"]);return y(l,B(B({},b),{},{ref:r,value:d}),null)}}});function Tn(e){const n=e.getBoundingClientRect(),t=document.documentElement;return{left:n.left+(window.scrollX||t.scrollLeft)-(t.clientLeft||document.body.clientLeft||0),top:n.top+(window.scrollY||t.scrollTop)-(t.clientTop||document.body.clientTop||0)}}function jn(e){return Array.prototype.slice.apply(e).map(t=>`${t}: ${e.getPropertyValue(t)};`).join("")}function _t(e){return Object.keys(e).reduce((n,t)=>{const r=e[t];return typeof r>"u"||r===null||(n+=`${t}: ${e[t]};`),n},"")}var At=function(e,n){var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&n.indexOf(r)<0&&(t[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);oe.value,i],()=>{i.value||(u.value=e.value)},{immediate:!0});const l=a=>{t("change",a)},d=a=>{i.value=!0,a.target.composing=!0,t("compositionstart",a)},b=a=>{i.value=!1,a.target.composing=!1,t("compositionend",a);const x=document.createEvent("HTMLEvents");x.initEvent("input",!0,!0),a.target.dispatchEvent(x),l(a)},g=a=>{if(i.value&&e.lazy){u.value=a.target.value;return}t("input",a)},f=a=>{t("blur",a)},P=a=>{t("focus",a)},z=()=>{s.value&&s.value.focus()},E=()=>{s.value&&s.value.blur()},v=a=>{t("keydown",a)},_=a=>{t("keyup",a)},w=(a,x,$)=>{var R;(R=s.value)===null||R===void 0||R.setSelectionRange(a,x,$)},I=()=>{var a;(a=s.value)===null||a===void 0||a.select()};o({focus:z,blur:E,input:Q(()=>{var a;return(a=s.value)===null||a===void 0?void 0:a.input}),setSelectionRange:w,select:I,getSelectionStart:()=>{var a;return(a=s.value)===null||a===void 0?void 0:a.getSelectionStart()},getSelectionEnd:()=>{var a;return(a=s.value)===null||a===void 0?void 0:a.getSelectionEnd()},getScrollTop:()=>{var a;return(a=s.value)===null||a===void 0?void 0:a.getScrollTop()}});const T=a=>{t("mousedown",a)},h=a=>{t("paste",a)},m=Q(()=>e.style&&typeof e.style!="string"?_t(e.style):e.style);return()=>{const{style:a,lazy:x}=e,$=At(e,["style","lazy"]);return y(Rt,B(B(B({},$),r),{},{style:m.value,onInput:g,onChange:l,onBlur:f,onFocus:P,ref:s,value:u.value,onCompositionstart:d,onCompositionend:b,onKeyup:_,onKeydown:v,onPaste:h,onMousedown:T}),null)}}});function Hn(e,n){const{defaultValue:t,value:r=q()}=n||{};let o=typeof e=="function"?e():e;r.value!==void 0&&(o=pt(r)),t!==void 0&&(o=typeof t=="function"?t():t);const s=q(o),u=q(o);be(()=>{let l=r.value!==void 0?r.value:s.value;n.postState&&(l=n.postState(l)),u.value=l});function i(l){const d=u.value;s.value=l,vt(u.value)!==l&&n.onChange&&n.onChange(l,d)}return te(r,()=>{s.value=r.value}),[u,i]}var Bt={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"};function He(e){for(var n=1;nn||e;var Ft=Ot(Object.getPrototypeOf,Object),Mt="[object Object]",Nt=Function.prototype,Wt=Object.prototype,ke=Nt.toString,Lt=Wt.hasOwnProperty,Vt=ke.call(Object);function Dt(e){if(!It(e)||Pt(e)!=Mt)return!1;var n=Ft(e);if(n===null)return!0;var t=Lt.call(n,"constructor")&&n.constructor;return typeof t=="function"&&t instanceof t&&ke.call(t)==Vt}const Gt=e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),ze=e=>({borderColor:e.inputBorderHoverColor,borderInlineEndWidth:e.lineWidth}),we=e=>({borderColor:e.inputBorderHoverColor,boxShadow:`0 0 0 ${e.controlOutlineWidth}px ${e.controlOutline}`,borderInlineEndWidth:e.lineWidth,outline:0}),Xt=e=>({color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,boxShadow:"none",cursor:"not-allowed",opacity:1,"&:hover":p({},ze(ge(e,{inputBorderHoverColor:e.colorBorder})))}),et=e=>{const{inputPaddingVerticalLG:n,fontSizeLG:t,lineHeightLG:r,borderRadiusLG:o,inputPaddingHorizontalLG:s}=e;return{padding:`${n}px ${s}px`,fontSize:t,lineHeight:r,borderRadius:o}},tt=e=>({padding:`${e.inputPaddingVerticalSM}px ${e.controlPaddingHorizontalSM-1}px`,borderRadius:e.borderRadiusSM}),nt=(e,n)=>{const{componentCls:t,colorError:r,colorWarning:o,colorErrorOutline:s,colorWarningOutline:u,colorErrorBorderHover:i,colorWarningBorderHover:l}=e;return{[`&-status-error:not(${n}-disabled):not(${n}-borderless)${n}`]:{borderColor:r,"&:hover":{borderColor:i},"&:focus, &-focused":p({},we(ge(e,{inputBorderActiveColor:r,inputBorderHoverColor:r,controlOutline:s}))),[`${t}-prefix`]:{color:r}},[`&-status-warning:not(${n}-disabled):not(${n}-borderless)${n}`]:{borderColor:o,"&:hover":{borderColor:l},"&:focus, &-focused":p({},we(ge(e,{inputBorderActiveColor:o,inputBorderHoverColor:o,controlOutline:u}))),[`${t}-prefix`]:{color:o}}}},rt=e=>p(p({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${e.inputPaddingVertical}px ${e.inputPaddingHorizontal}px`,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,backgroundColor:e.colorBgContainer,backgroundImage:"none",borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:e.colorBorder,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid}`},Gt(e.colorTextPlaceholder)),{"&:hover":p({},ze(e)),"&:focus, &-focused":p({},we(e)),"&-disabled, &[disabled]":p({},Xt(e)),"&-borderless":{"&, &:hover, &:focus, &-focused, &-disabled, &[disabled]":{backgroundColor:"transparent",border:"none",boxShadow:"none"}},"textarea&":{maxWidth:"100%",height:"auto",minHeight:e.controlHeight,lineHeight:e.lineHeight,verticalAlign:"bottom",transition:`all ${e.motionDurationSlow}, height 0s`,resize:"vertical"},"&-lg":p({},et(e)),"&-sm":p({},tt(e)),"&-rtl":{direction:"rtl"},"&-textarea-rtl":{direction:"rtl"}}),qt=e=>{const{componentCls:n,antCls:t}=e;return{position:"relative",display:"table",width:"100%",borderCollapse:"separate",borderSpacing:0,"&[class*='col-']":{paddingInlineEnd:e.paddingXS,"&:last-child":{paddingInlineEnd:0}},[`&-lg ${n}, &-lg > ${n}-group-addon`]:p({},et(e)),[`&-sm ${n}, &-sm > ${n}-group-addon`]:p({},tt(e)),[`> ${n}`]:{display:"table-cell","&:not(:first-child):not(:last-child)":{borderRadius:0}},[`${n}-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 ${e.inputPaddingHorizontal}px`,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,textAlign:"center",backgroundColor:e.colorFillAlter,border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadius,transition:`all ${e.motionDurationSlow}`,lineHeight:1,[`${t}-select`]:{margin:`-${e.inputPaddingVertical+1}px -${e.inputPaddingHorizontal}px`,[`&${t}-select-single:not(${t}-select-customize-input)`]:{[`${t}-select-selector`]:{backgroundColor:"inherit",border:`${e.lineWidth}px ${e.lineType} transparent`,boxShadow:"none"}},"&-open, &-focused":{[`${t}-select-selector`]:{color:e.colorPrimary}}},[`${t}-cascader-picker`]:{margin:`-9px -${e.inputPaddingHorizontal}px`,backgroundColor:"transparent",[`${t}-cascader-input`]:{textAlign:"start",border:0,boxShadow:"none"}}},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}},[`${n}`]:{float:"inline-start",width:"100%",marginBottom:0,textAlign:"inherit","&:focus":{zIndex:1,borderInlineEndWidth:1},"&:hover":{zIndex:1,borderInlineEndWidth:1,[`${n}-search-with-button &`]:{zIndex:0}}},[`> ${n}:first-child, ${n}-group-addon:first-child`]:{borderStartEndRadius:0,borderEndEndRadius:0,[`${t}-select ${t}-select-selector`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${n}-affix-wrapper`]:{[`&:not(:first-child) ${n}`]:{borderStartStartRadius:0,borderEndStartRadius:0},[`&:not(:last-child) ${n}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${n}:last-child, ${n}-group-addon:last-child`]:{borderStartStartRadius:0,borderEndStartRadius:0,[`${t}-select ${t}-select-selector`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`${n}-affix-wrapper`]:{"&:not(:last-child)":{borderStartEndRadius:0,borderEndEndRadius:0,[`${n}-search &`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius}},[`&:not(:first-child), ${n}-search &:not(:first-child)`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&${n}-group-compact`]:p(p({display:"block"},ht()),{[`${n}-group-addon, ${n}-group-wrap, > ${n}`]:{"&:not(:first-child):not(:last-child)":{borderInlineEndWidth:e.lineWidth,"&:hover":{zIndex:1},"&:focus":{zIndex:1}}},"& > *":{display:"inline-block",float:"none",verticalAlign:"top",borderRadius:0},[`& > ${n}-affix-wrapper`]:{display:"inline-flex"},[`& > ${t}-picker-range`]:{display:"inline-flex"},"& > *:not(:last-child)":{marginInlineEnd:-e.lineWidth,borderInlineEndWidth:e.lineWidth},[`${n}`]:{float:"none"},[`& > ${t}-select > ${t}-select-selector, + & > ${t}-select-auto-complete ${n}, + & > ${t}-cascader-picker ${n}, + & > ${n}-group-wrapper ${n}`]:{borderInlineEndWidth:e.lineWidth,borderRadius:0,"&:hover":{zIndex:1},"&:focus":{zIndex:1}},[`& > ${t}-select-focused`]:{zIndex:1},[`& > ${t}-select > ${t}-select-arrow`]:{zIndex:1},[`& > *:first-child, + & > ${t}-select:first-child > ${t}-select-selector, + & > ${t}-select-auto-complete:first-child ${n}, + & > ${t}-cascader-picker:first-child ${n}`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius},[`& > *:last-child, + & > ${t}-select:last-child > ${t}-select-selector, + & > ${t}-cascader-picker:last-child ${n}, + & > ${t}-cascader-picker-focused:last-child ${n}`]:{borderInlineEndWidth:e.lineWidth,borderStartEndRadius:e.borderRadius,borderEndEndRadius:e.borderRadius},[`& > ${t}-select-auto-complete ${n}`]:{verticalAlign:"top"},[`${n}-group-wrapper + ${n}-group-wrapper`]:{marginInlineStart:-e.lineWidth,[`${n}-affix-wrapper`]:{borderRadius:0}},[`${n}-group-wrapper:not(:last-child)`]:{[`&${n}-search > ${n}-group`]:{[`& > ${n}-group-addon > ${n}-search-button`]:{borderRadius:0},[`& > ${n}`]:{borderStartStartRadius:e.borderRadius,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:e.borderRadius}}}}),[`&&-sm ${t}-btn`]:{fontSize:e.fontSizeSM,height:e.controlHeightSM,lineHeight:"normal"},[`&&-lg ${t}-btn`]:{fontSize:e.fontSizeLG,height:e.controlHeightLG,lineHeight:"normal"},[`&&-lg ${t}-select-single ${t}-select-selector`]:{height:`${e.controlHeightLG}px`,[`${t}-select-selection-item, ${t}-select-selection-placeholder`]:{lineHeight:`${e.controlHeightLG-2}px`},[`${t}-select-selection-search-input`]:{height:`${e.controlHeightLG}px`}},[`&&-sm ${t}-select-single ${t}-select-selector`]:{height:`${e.controlHeightSM}px`,[`${t}-select-selection-item, ${t}-select-selection-placeholder`]:{lineHeight:`${e.controlHeightSM-2}px`},[`${t}-select-selection-search-input`]:{height:`${e.controlHeightSM}px`}}}},Ut=e=>{const{componentCls:n,controlHeightSM:t,lineWidth:r}=e,s=(t-r*2-16)/2;return{[n]:p(p(p(p({},De(e)),rt(e)),nt(e,n)),{'&[type="color"]':{height:e.controlHeight,[`&${n}-lg`]:{height:e.controlHeightLG},[`&${n}-sm`]:{height:t,paddingTop:s,paddingBottom:s}}})}},Qt=e=>{const{componentCls:n}=e;return{[`${n}-clear-icon`]:{margin:0,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,verticalAlign:-1,cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"&:hover":{color:e.colorTextTertiary},"&:active":{color:e.colorText},"&-hidden":{visibility:"hidden"},"&-has-suffix":{margin:`0 ${e.inputAffixPadding}px`}},"&-textarea-with-clear-btn":{padding:"0 !important",border:"0 !important",[`${n}-clear-icon`]:{position:"absolute",insetBlockStart:e.paddingXS,insetInlineEnd:e.paddingXS,zIndex:1}}}},Yt=e=>{const{componentCls:n,inputAffixPadding:t,colorTextDescription:r,motionDurationSlow:o,colorIcon:s,colorIconHover:u,iconCls:i}=e;return{[`${n}-affix-wrapper`]:p(p(p(p(p({},rt(e)),{display:"inline-flex",[`&:not(${n}-affix-wrapper-disabled):hover`]:p(p({},ze(e)),{zIndex:1,[`${n}-search-with-button &`]:{zIndex:0}}),"&-focused, &:focus":{zIndex:1},"&-disabled":{[`${n}[disabled]`]:{background:"transparent"}},[`> input${n}`]:{padding:0,fontSize:"inherit",border:"none",borderRadius:0,outline:"none","&:focus":{boxShadow:"none !important"}},"&::before":{width:0,visibility:"hidden",content:'"\\a0"'},[`${n}`]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center","> *:not(:last-child)":{marginInlineEnd:e.paddingXS}},"&-show-count-suffix":{color:r},"&-show-count-has-suffix":{marginInlineEnd:e.paddingXXS},"&-prefix":{marginInlineEnd:t},"&-suffix":{marginInlineStart:t}}}),Qt(e)),{[`${i}${n}-password-icon`]:{color:s,cursor:"pointer",transition:`all ${o}`,"&:hover":{color:u}}}),nt(e,`${n}-affix-wrapper`))}},Zt=e=>{const{componentCls:n,colorError:t,colorSuccess:r,borderRadiusLG:o,borderRadiusSM:s}=e;return{[`${n}-group`]:p(p(p({},De(e)),qt(e)),{"&-rtl":{direction:"rtl"},"&-wrapper":{display:"inline-block",width:"100%",textAlign:"start",verticalAlign:"top","&-rtl":{direction:"rtl"},"&-lg":{[`${n}-group-addon`]:{borderRadius:o}},"&-sm":{[`${n}-group-addon`]:{borderRadius:s}},"&-status-error":{[`${n}-group-addon`]:{color:t,borderColor:t}},"&-status-warning":{[`${n}-group-addon:last-child`]:{color:r,borderColor:r}}}})}},Kt=e=>{const{componentCls:n,antCls:t}=e,r=`${n}-search`;return{[r]:{[`${n}`]:{"&:hover, &:focus":{borderColor:e.colorPrimaryHover,[`+ ${n}-group-addon ${r}-button:not(${t}-btn-primary)`]:{borderInlineStartColor:e.colorPrimaryHover}}},[`${n}-affix-wrapper`]:{borderRadius:0},[`${n}-lg`]:{lineHeight:e.lineHeightLG-2e-4},[`> ${n}-group`]:{[`> ${n}-group-addon:last-child`]:{insetInlineStart:-1,padding:0,border:0,[`${r}-button`]:{paddingTop:0,paddingBottom:0,borderStartStartRadius:0,borderStartEndRadius:e.borderRadius,borderEndEndRadius:e.borderRadius,borderEndStartRadius:0},[`${r}-button:not(${t}-btn-primary)`]:{color:e.colorTextDescription,"&:hover":{color:e.colorPrimaryHover},"&:active":{color:e.colorPrimaryActive},[`&${t}-btn-loading::before`]:{insetInlineStart:0,insetInlineEnd:0,insetBlockStart:0,insetBlockEnd:0}}}},[`${r}-button`]:{height:e.controlHeight,"&:hover, &:focus":{zIndex:1}},[`&-large ${r}-button`]:{height:e.controlHeightLG},[`&-small ${r}-button`]:{height:e.controlHeightSM},"&-rtl":{direction:"rtl"},[`&${n}-compact-item`]:{[`&:not(${n}-compact-last-item)`]:{[`${n}-group-addon`]:{[`${n}-search-button`]:{marginInlineEnd:-e.lineWidth,borderRadius:0}}},[`&:not(${n}-compact-first-item)`]:{[`${n},${n}-affix-wrapper`]:{borderRadius:0}},[`> ${n}-group-addon ${n}-search-button, + > ${n}, + ${n}-affix-wrapper`]:{"&:hover,&:focus,&:active":{zIndex:2}},[`> ${n}-affix-wrapper-focused`]:{zIndex:2}}}}};function Jt(e){return ge(e,{inputAffixPadding:e.paddingXXS,inputPaddingVertical:Math.max(Math.round((e.controlHeight-e.fontSize*e.lineHeight)/2*10)/10-e.lineWidth,3),inputPaddingVerticalLG:Math.ceil((e.controlHeightLG-e.fontSizeLG*e.lineHeightLG)/2*10)/10-e.lineWidth,inputPaddingVerticalSM:Math.max(Math.round((e.controlHeightSM-e.fontSize*e.lineHeight)/2*10)/10-e.lineWidth,0),inputPaddingHorizontal:e.paddingSM-e.lineWidth,inputPaddingHorizontalSM:e.paddingXS-e.lineWidth,inputPaddingHorizontalLG:e.controlPaddingHorizontal-e.lineWidth,inputBorderHoverColor:e.colorPrimaryHover,inputBorderActiveColor:e.colorPrimaryHover})}const kt=e=>{const{componentCls:n,inputPaddingHorizontal:t,paddingLG:r}=e,o=`${n}-textarea`;return{[o]:{position:"relative",[`${o}-suffix`]:{position:"absolute",top:0,insetInlineEnd:t,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto"},"&-status-error,\n &-status-warning,\n &-status-success,\n &-status-validating":{[`&${o}-has-feedback`]:{[`${n}`]:{paddingInlineEnd:r}}},"&-show-count":{[`> ${n}`]:{height:"100%"},"&::after":{color:e.colorTextDescription,whiteSpace:"nowrap",content:"attr(data-count)",pointerEvents:"none",float:"right"}},"&-rtl":{"&::after":{float:"left"}}}}},Ee=gt("Input",e=>{const n=Jt(e);return[Ut(n),kt(n),Yt(n),Zt(n),Kt(n),$t(n)]});var en={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"};function Me(e){for(var n=1;ne!=null&&(Array.isArray(e)?Ge(e).length:!0);function Re(e){return le(e.prefix)||le(e.suffix)||le(e.allowClear)}function ve(e){return le(e.addonBefore)||le(e.addonAfter)}function Oe(e){return typeof e>"u"||e===null?"":String(e)}function ie(e,n,t,r){if(!t)return;const o=n;if(n.type==="click"){Object.defineProperty(o,"target",{writable:!0}),Object.defineProperty(o,"currentTarget",{writable:!0});const s=e.cloneNode(!0);o.target=s,o.currentTarget=s,s.value="",t(o);return}if(r!==void 0){Object.defineProperty(o,"target",{writable:!0}),Object.defineProperty(o,"currentTarget",{writable:!0}),o.target=e,o.currentTarget=e,e.value=r,t(o);return}t(o)}function at(e,n){if(!e)return;e.focus(n);const{cursor:t}=n||{};if(t){const r=e.value.length;switch(t){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(r,r);break;default:e.setSelectionRange(0,r)}}}const nn=()=>({addonBefore:F.any,addonAfter:F.any,prefix:F.any,suffix:F.any,clearIcon:F.any,affixWrapperClassName:String,groupClassName:String,wrapperClassName:String,inputClassName:String,allowClear:{type:Boolean,default:void 0}}),lt=()=>p(p({},nn()),{value:{type:[String,Number,Symbol],default:void 0},defaultValue:{type:[String,Number,Symbol],default:void 0},inputElement:F.any,prefixCls:String,disabled:{type:Boolean,default:void 0},focused:{type:Boolean,default:void 0},triggerFocus:Function,readonly:{type:Boolean,default:void 0},handleReset:Function,hidden:{type:Boolean,default:void 0}}),it=()=>p(p({},lt()),{id:String,placeholder:{type:[String,Number]},autocomplete:String,type:bt("text"),name:String,size:{type:String},autofocus:{type:Boolean,default:void 0},lazy:{type:Boolean,default:!0},maxlength:Number,loading:{type:Boolean,default:void 0},bordered:{type:Boolean,default:void 0},showCount:{type:[Boolean,Object]},htmlSize:Number,onPressEnter:Function,onKeydown:Function,onKeyup:Function,onFocus:Function,onBlur:Function,onChange:Function,onInput:Function,"onUpdate:value":Function,onCompositionstart:Function,onCompositionend:Function,valueModifiers:Object,hidden:{type:Boolean,default:void 0},status:String}),rn=K({name:"BaseInput",inheritAttrs:!1,props:lt(),setup(e,n){let{slots:t,attrs:r}=n;const o=q(),s=i=>{var l;if(!((l=o.value)===null||l===void 0)&&l.contains(i.target)){const{triggerFocus:d}=e;d==null||d()}},u=()=>{var i;const{allowClear:l,value:d,disabled:b,readonly:g,handleReset:f,suffix:P=t.suffix,prefixCls:z}=e;if(!l)return null;const E=!b&&!g&&d,v=`${z}-clear-icon`,_=((i=t.clearIcon)===null||i===void 0?void 0:i.call(t))||"*";return y("span",{onClick:f,onMousedown:w=>w.preventDefault(),class:L({[`${v}-hidden`]:!E,[`${v}-has-suffix`]:!!P},v),role:"button",tabindex:-1},[_])};return()=>{var i,l;const{focused:d,value:b,disabled:g,allowClear:f,readonly:P,hidden:z,prefixCls:E,prefix:v=(i=t.prefix)===null||i===void 0?void 0:i.call(t),suffix:_=(l=t.suffix)===null||l===void 0?void 0:l.call(t),addonAfter:w=t.addonAfter,addonBefore:I=t.addonBefore,inputElement:T,affixWrapperClassName:h,wrapperClassName:m,groupClassName:a}=e;let x=ee(T,{value:b,hidden:z});if(Re({prefix:v,suffix:_,allowClear:f})){const $=`${E}-affix-wrapper`,R=L($,{[`${$}-disabled`]:g,[`${$}-focused`]:d,[`${$}-readonly`]:P,[`${$}-input-with-clear-btn`]:_&&f&&b},!ve({addonAfter:w,addonBefore:I})&&r.class,h),M=(_||f)&&y("span",{class:`${E}-suffix`},[u(),_]);x=y("span",{class:R,style:r.style,hidden:!ve({addonAfter:w,addonBefore:I})&&z,onMousedown:s,ref:o},[v&&y("span",{class:`${E}-prefix`},[v]),ee(T,{style:null,value:b,hidden:null}),M])}if(ve({addonAfter:w,addonBefore:I})){const $=`${E}-group`,R=`${$}-addon`,M=L(`${E}-wrapper`,$,m),H=L(`${E}-group-wrapper`,r.class,a);return y("span",{class:H,style:r.style,hidden:z},[y("span",{class:M},[I&&y("span",{class:R},[I]),ee(x,{style:null,hidden:null}),w&&y("span",{class:R},[w])])])}return x}}});var on=function(e,n){var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&n.indexOf(r)<0&&(t[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);oe.value,()=>{u.value=e.value}),te(()=>e.disabled,()=>{e.disabled&&(i.value=!1)});const b=a=>{l.value&&at(l.value.input,a)},g=()=>{var a;(a=l.value.input)===null||a===void 0||a.blur()},f=(a,x,$)=>{var R;(R=l.value.input)===null||R===void 0||R.setSelectionRange(a,x,$)},P=()=>{var a;(a=l.value.input)===null||a===void 0||a.select()};o({focus:b,blur:g,input:Q(()=>{var a;return(a=l.value.input)===null||a===void 0?void 0:a.input}),stateValue:u,setSelectionRange:f,select:P});const z=a=>{s("change",a)},E=(a,x)=>{u.value!==a&&(e.value===void 0?u.value=a:he(()=>{var $;l.value.input.value!==u.value&&(($=d.value)===null||$===void 0||$.$forceUpdate())}),he(()=>{x&&x()}))},v=a=>{const{value:x}=a.target;if(u.value===x)return;const $=a.target.value;ie(l.value.input,a,z),E($)},_=a=>{a.keyCode===13&&s("pressEnter",a),s("keydown",a)},w=a=>{i.value=!0,s("focus",a)},I=a=>{i.value=!1,s("blur",a)},T=a=>{ie(l.value.input,a,z),E("",()=>{b()})},h=()=>{var a,x;const{addonBefore:$=t.addonBefore,addonAfter:R=t.addonAfter,disabled:M,valueModifiers:H={},htmlSize:S,autocomplete:O,prefixCls:j,inputClassName:N,prefix:U=(a=t.prefix)===null||a===void 0?void 0:a.call(t),suffix:Y=(x=t.suffix)===null||x===void 0?void 0:x.call(t),allowClear:c,type:C="text"}=e,A=J(e,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","size","bordered","htmlSize","lazy","showCount","valueModifiers","showCount","affixWrapperClassName","groupClassName","inputClassName","wrapperClassName"]),W=p(p(p({},A),r),{autocomplete:O,onChange:v,onInput:v,onFocus:w,onBlur:I,onKeydown:_,class:L(j,{[`${j}-disabled`]:M},N,!ve({addonAfter:R,addonBefore:$})&&!Re({prefix:U,suffix:Y,allowClear:c})&&r.class),ref:l,key:"ant-input",size:S,type:C,lazy:e.lazy});return H.lazy&&delete W.onInput,W.autofocus||delete W.autofocus,y(Ke,J(W,["size"]),null)},m=()=>{var a;const{maxlength:x,suffix:$=(a=t.suffix)===null||a===void 0?void 0:a.call(t),showCount:R,prefixCls:M}=e,H=Number(x)>0;if($||R){const S=[...Oe(u.value)].length,O=typeof R=="object"?R.formatter({count:S,maxlength:x}):`${S}${H?` / ${x}`:""}`;return y(qe,null,[!!R&&y("span",{class:L(`${M}-show-count-suffix`,{[`${M}-show-count-has-suffix`]:!!$})},[O]),$])}return null};return Xe(()=>{}),()=>{const{prefixCls:a,disabled:x}=e,$=on(e,["prefixCls","disabled"]);return y(rn,B(B(B({},$),r),{},{ref:d,prefixCls:a,inputElement:h(),handleReset:T,value:Oe(u.value),focused:i.value,triggerFocus:b,suffix:m(),disabled:x}),t)}}}),me=()=>J(it(),["wrapperClassName","groupClassName","inputClassName","affixWrapperClassName"]),st=()=>p(p({},J(me(),["prefix","addonBefore","addonAfter","suffix"])),{rows:Number,autosize:{type:[Boolean,Object],default:void 0},autoSize:{type:[Boolean,Object],default:void 0},onResize:{type:Function},onCompositionstart:Be(),onCompositionend:Be(),valueModifiers:Object});var ln=function(e,n){var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&n.indexOf(r)<0&&(t[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);oPe(l.status,e.status)),{direction:b,prefixCls:g,size:f,autocomplete:P}=de("input",e),{compactSize:z,compactItemClassnames:E}=Ct(g,b),v=Q(()=>z.value||f.value),[_,w]=Ee(g),I=Qe();o({focus:S=>{var O;(O=u.value)===null||O===void 0||O.focus(S)},blur:()=>{var S;(S=u.value)===null||S===void 0||S.blur()},input:u,setSelectionRange:(S,O,j)=>{var N;(N=u.value)===null||N===void 0||N.setSelectionRange(S,O,j)},select:()=>{var S;(S=u.value)===null||S===void 0||S.select()}});const x=q([]),$=()=>{x.value.push(setTimeout(()=>{var S,O,j,N;!((S=u.value)===null||S===void 0)&&S.input&&((O=u.value)===null||O===void 0?void 0:O.input.getAttribute("type"))==="password"&&(!((j=u.value)===null||j===void 0)&&j.input.hasAttribute("value"))&&((N=u.value)===null||N===void 0||N.input.removeAttribute("value"))}))};Xe(()=>{$()}),mt(()=>{x.value.forEach(S=>clearTimeout(S))}),Ce(()=>{x.value.forEach(S=>clearTimeout(S))});const R=S=>{$(),s("blur",S),i.onFieldBlur()},M=S=>{$(),s("focus",S)},H=S=>{s("update:value",S.target.value),s("change",S),s("input",S),i.onFieldChange()};return()=>{var S,O,j,N,U,Y;const{hasFeedback:c,feedbackIcon:C}=l,{allowClear:A,bordered:W=!0,prefix:D=(S=t.prefix)===null||S===void 0?void 0:S.call(t),suffix:oe=(O=t.suffix)===null||O===void 0?void 0:O.call(t),addonAfter:ce=(j=t.addonAfter)===null||j===void 0?void 0:j.call(t),addonBefore:ne=(N=t.addonBefore)===null||N===void 0?void 0:N.call(t),id:fe=(U=i.id)===null||U===void 0?void 0:U.value}=e,re=ln(e,["allowClear","bordered","prefix","suffix","addonAfter","addonBefore","id"]),dt=(c||oe)&&y(qe,null,[oe,c&&C]),G=g.value,ct=Re({prefix:D,suffix:oe})||!!c,ft=t.clearIcon||(()=>y(Ue,null,null));return _(y(an,B(B(B({},r),J(re,["onUpdate:value","onChange","onInput"])),{},{onChange:H,id:fe,disabled:(Y=e.disabled)!==null&&Y!==void 0?Y:I.value,ref:u,prefixCls:G,autocomplete:P.value,onBlur:R,onFocus:M,prefix:D,suffix:dt,allowClear:A,addonAfter:ce&&y(je,null,{default:()=>[y(Te,null,{default:()=>[ce]})]}),addonBefore:ne&&y(je,null,{default:()=>[y(Te,null,{default:()=>[ne]})]}),class:[r.class,E.value],inputClassName:L({[`${G}-sm`]:v.value==="small",[`${G}-lg`]:v.value==="large",[`${G}-rtl`]:b.value==="rtl",[`${G}-borderless`]:!W},!ct&&ae(G,d.value),w.value),affixWrapperClassName:L({[`${G}-affix-wrapper-sm`]:v.value==="small",[`${G}-affix-wrapper-lg`]:v.value==="large",[`${G}-affix-wrapper-rtl`]:b.value==="rtl",[`${G}-affix-wrapper-borderless`]:!W},ae(`${G}-affix-wrapper`,d.value,c),w.value),wrapperClassName:L({[`${G}-group-rtl`]:b.value==="rtl"},w.value),groupClassName:L({[`${G}-group-wrapper-sm`]:v.value==="small",[`${G}-group-wrapper-lg`]:v.value==="large",[`${G}-group-wrapper-rtl`]:b.value==="rtl"},ae(`${G}-group-wrapper`,d.value,c),w.value)}),p(p({},t),{clearIcon:ft})))}}}),sn=K({compatConfig:{MODE:3},name:"AInputGroup",inheritAttrs:!1,props:{prefixCls:String,size:{type:String},compact:{type:Boolean,default:void 0}},setup(e,n){let{slots:t,attrs:r}=n;const{prefixCls:o,direction:s,getPrefixCls:u}=de("input-group",e),i=se.useInject();se.useProvide(i,{isFormItemInput:!1});const l=Q(()=>u("input")),[d,b]=Ee(l),g=Q(()=>{const f=o.value;return{[`${f}`]:!0,[b.value]:!0,[`${f}-lg`]:e.size==="large",[`${f}-sm`]:e.size==="small",[`${f}-compact`]:e.compact,[`${f}-rtl`]:s.value==="rtl"}});return()=>{var f;return d(y("span",B(B({},r),{},{class:L(g.value,r.class)}),[(f=t.default)===null||f===void 0?void 0:f.call(t)]))}}});var un=function(e,n){var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&n.indexOf(r)<0&&(t[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{var h;(h=u.value)===null||h===void 0||h.focus()},blur:()=>{var h;(h=u.value)===null||h===void 0||h.blur()}});const b=h=>{s("update:value",h.target.value),h&&h.target&&h.type==="click"&&s("search",h.target.value,h),s("change",h)},g=h=>{var m;document.activeElement===((m=u.value)===null||m===void 0?void 0:m.input)&&h.preventDefault()},f=h=>{var m,a;s("search",(a=(m=u.value)===null||m===void 0?void 0:m.input)===null||a===void 0?void 0:a.stateValue,h)},P=h=>{i.value||e.loading||f(h)},z=h=>{i.value=!0,s("compositionstart",h)},E=h=>{i.value=!1,s("compositionend",h)},{prefixCls:v,getPrefixCls:_,direction:w,size:I}=de("input-search",e),T=Q(()=>_("input",e.inputPrefixCls));return()=>{var h,m,a,x;const{disabled:$,loading:R,addonAfter:M=(h=t.addonAfter)===null||h===void 0?void 0:h.call(t),suffix:H=(m=t.suffix)===null||m===void 0?void 0:m.call(t)}=e,S=un(e,["disabled","loading","addonAfter","suffix"]);let{enterButton:O=(x=(a=t.enterButton)===null||a===void 0?void 0:a.call(t))!==null&&x!==void 0?x:!1}=e;O=O||O==="";const j=typeof O=="boolean"?y(Ie,null,null):null,N=`${v.value}-button`,U=Array.isArray(O)?O[0]:O;let Y;const c=U.type&&Dt(U.type)&&U.type.__ANT_BUTTON;if(c||U.tagName==="button")Y=ee(U,p({onMousedown:g,onClick:f,key:"enterButton"},c?{class:N,size:I.value}:{}),!1);else{const A=j&&!O;Y=y(wt,{class:N,type:O?"primary":void 0,size:I.value,disabled:$,key:"enterButton",onMousedown:g,onClick:f,loading:R,icon:A?j:null},{default:()=>[A?null:j||O]})}M&&(Y=[Y,M]);const C=L(v.value,{[`${v.value}-rtl`]:w.value==="rtl",[`${v.value}-${I.value}`]:!!I.value,[`${v.value}-with-button`]:!!O},r.class);return y(V,B(B(B({ref:u},J(S,["onUpdate:value","onSearch","enterButton"])),r),{},{onPressEnter:P,onCompositionstart:z,onCompositionend:E,size:I.value,prefixCls:T.value,addonAfter:Y,suffix:H,onChange:b,class:C,disabled:$}),t)}}}),Ne=e=>e!=null&&(Array.isArray(e)?Ge(e).length:!0);function cn(e){return Ne(e.addonBefore)||Ne(e.addonAfter)}const fn=["text","input"],pn=K({compatConfig:{MODE:3},name:"ClearableLabeledInput",inheritAttrs:!1,props:{prefixCls:String,inputType:F.oneOf(yt("text","input")),value:k(),defaultValue:k(),allowClear:{type:Boolean,default:void 0},element:k(),handleReset:Function,disabled:{type:Boolean,default:void 0},direction:{type:String},size:{type:String},suffix:k(),prefix:k(),addonBefore:k(),addonAfter:k(),readonly:{type:Boolean,default:void 0},focused:{type:Boolean,default:void 0},bordered:{type:Boolean,default:!0},triggerFocus:{type:Function},hidden:Boolean,status:String,hashId:String},setup(e,n){let{slots:t,attrs:r}=n;const o=se.useInject(),s=i=>{const{value:l,disabled:d,readonly:b,handleReset:g,suffix:f=t.suffix}=e,P=!d&&!b&&l,z=`${i}-clear-icon`;return y(Ue,{onClick:g,onMousedown:E=>E.preventDefault(),class:L({[`${z}-hidden`]:!P,[`${z}-has-suffix`]:!!f},z),role:"button"},null)},u=(i,l)=>{const{value:d,allowClear:b,direction:g,bordered:f,hidden:P,status:z,addonAfter:E=t.addonAfter,addonBefore:v=t.addonBefore,hashId:_}=e,{status:w,hasFeedback:I}=o;if(!b)return ee(l,{value:d,disabled:e.disabled});const T=L(`${i}-affix-wrapper`,`${i}-affix-wrapper-textarea-with-clear-btn`,ae(`${i}-affix-wrapper`,Pe(w,z),I),{[`${i}-affix-wrapper-rtl`]:g==="rtl",[`${i}-affix-wrapper-borderless`]:!f,[`${r.class}`]:!cn({addonAfter:E,addonBefore:v})&&r.class},_);return y("span",{class:T,style:r.style,hidden:P},[ee(l,{style:null,value:d,disabled:e.disabled}),s(i)])};return()=>{var i;const{prefixCls:l,inputType:d,element:b=(i=t.element)===null||i===void 0?void 0:i.call(t)}=e;return d===fn[0]?u(l,b):null}}}),vn=` + 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; +`,gn=["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"],ye={};let Z;function hn(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const t=e.getAttribute("id")||e.getAttribute("data-reactid")||e.getAttribute("name");if(n&&ye[t])return ye[t];const r=window.getComputedStyle(e),o=r.getPropertyValue("box-sizing")||r.getPropertyValue("-moz-box-sizing")||r.getPropertyValue("-webkit-box-sizing"),s=parseFloat(r.getPropertyValue("padding-bottom"))+parseFloat(r.getPropertyValue("padding-top")),u=parseFloat(r.getPropertyValue("border-bottom-width"))+parseFloat(r.getPropertyValue("border-top-width")),l={sizingStyle:gn.map(d=>`${d}:${r.getPropertyValue(d)}`).join(";"),paddingSize:s,borderSize:u,boxSizing:o};return n&&t&&(ye[t]=l),l}function bn(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;Z||(Z=document.createElement("textarea"),Z.setAttribute("tab-index","-1"),Z.setAttribute("aria-hidden","true"),document.body.appendChild(Z)),e.getAttribute("wrap")?Z.setAttribute("wrap",e.getAttribute("wrap")):Z.removeAttribute("wrap");const{paddingSize:o,borderSize:s,boxSizing:u,sizingStyle:i}=hn(e,n);Z.setAttribute("style",`${i};${vn}`),Z.value=e.value||e.placeholder||"";let l,d,b,g=Z.scrollHeight;if(u==="border-box"?g+=s:u==="content-box"&&(g-=o),t!==null||r!==null){Z.value=" ";const P=Z.scrollHeight-o;t!==null&&(l=P*t,u==="border-box"&&(l=l+o+s),g=Math.max(l,g)),r!==null&&(d=P*r,u==="border-box"&&(d=d+o+s),b=g>d?"":"hidden",g=Math.min(d,g))}const f={height:`${g}px`,overflowY:b,resize:"none"};return l&&(f.minHeight=`${l}px`),d&&(f.maxHeight=`${d}px`),f}const xe=0,Se=1,$e=2,mn=K({compatConfig:{MODE:3},name:"ResizableTextArea",inheritAttrs:!1,props:st(),setup(e,n){let{attrs:t,emit:r,expose:o}=n,s,u;const i=q(),l=q({}),d=q($e);Ce(()=>{pe.cancel(s),pe.cancel(u)});const b=()=>{try{if(i.value&&document.activeElement===i.value.input){const m=i.value.getSelectionStart(),a=i.value.getSelectionEnd(),x=i.value.getScrollTop();i.value.setSelectionRange(m,a),i.value.setScrollTop(x)}}catch{}},g=q(),f=q();be(()=>{const m=e.autoSize||e.autosize;m?(g.value=m.minRows,f.value=m.maxRows):(g.value=void 0,f.value=void 0)});const P=Q(()=>!!(e.autoSize||e.autosize)),z=()=>{d.value=xe};te([()=>e.value,g,f,P],()=>{P.value&&z()},{immediate:!0});const E=q();te([d,i],()=>{if(i.value)if(d.value===xe)d.value=Se;else if(d.value===Se){const m=bn(i.value.input,!1,g.value,f.value);d.value=$e,E.value=m}else b()},{immediate:!0,flush:"post"});const v=Ye(),_=q(),w=()=>{pe.cancel(_.value)},I=m=>{d.value===$e&&(r("resize",m),P.value&&(w(),_.value=pe(()=>{z()})))};Ce(()=>{w()}),o({resizeTextarea:()=>{z()},textArea:Q(()=>{var m;return(m=i.value)===null||m===void 0?void 0:m.input}),instance:v}),xt(e.autosize===void 0);const h=()=>{const{prefixCls:m,disabled:a}=e,x=J(e,["prefixCls","onPressEnter","autoSize","autosize","defaultValue","allowClear","type","maxlength","valueModifiers"]),$=L(m,t.class,{[`${m}-disabled`]:a}),R=P.value?E.value:null,M=[t.style,l.value,R],H=p(p(p({},x),t),{style:M,class:$});return(d.value===xe||d.value===Se)&&M.push({overflowX:"hidden",overflowY:"hidden"}),H.autofocus||delete H.autofocus,H.rows===0&&delete H.rows,y(zt,{onResize:I,disabled:!P.value},{default:()=>[y(Ke,B(B({},H),{},{ref:i,tag:"textarea"}),null)]})};return()=>h()}});function ut(e,n){return[...e||""].slice(0,n).join("")}function We(e,n,t,r){let o=t;return e?o=ut(t,r):[...n||""].lengthr&&(o=n),o}const yn=K({compatConfig:{MODE:3},name:"ATextarea",inheritAttrs:!1,props:st(),setup(e,n){let{attrs:t,expose:r,emit:o}=n;var s;const u=Ze(),i=se.useInject(),l=Q(()=>Pe(i.status,e.status)),d=X((s=e.value)!==null&&s!==void 0?s:e.defaultValue),b=X(),g=X(""),{prefixCls:f,size:P,direction:z}=de("input",e),[E,v]=Ee(f),_=Qe(),w=Q(()=>e.showCount===""||e.showCount||!1),I=Q(()=>Number(e.maxlength)>0),T=X(!1),h=X(),m=X(0),a=c=>{T.value=!0,h.value=g.value,m.value=c.currentTarget.selectionStart,o("compositionstart",c)},x=c=>{var C;T.value=!1;let A=c.currentTarget.value;if(I.value){const W=m.value>=e.maxlength+1||m.value===((C=h.value)===null||C===void 0?void 0:C.length);A=We(W,h.value,A,e.maxlength)}A!==g.value&&(H(A),ie(c.currentTarget,c,j,A)),o("compositionend",c)},$=Ye();te(()=>e.value,()=>{var c;"value"in $.vnode.props,d.value=(c=e.value)!==null&&c!==void 0?c:""});const R=c=>{var C;at((C=b.value)===null||C===void 0?void 0:C.textArea,c)},M=()=>{var c,C;(C=(c=b.value)===null||c===void 0?void 0:c.textArea)===null||C===void 0||C.blur()},H=(c,C)=>{d.value!==c&&(e.value===void 0?d.value=c:he(()=>{var A,W,D;b.value.textArea.value!==g.value&&((D=(A=b.value)===null||A===void 0?void 0:(W=A.instance).update)===null||D===void 0||D.call(W))}),he(()=>{C&&C()}))},S=c=>{c.keyCode===13&&o("pressEnter",c),o("keydown",c)},O=c=>{const{onBlur:C}=e;C==null||C(c),u.onFieldBlur()},j=c=>{o("update:value",c.target.value),o("change",c),o("input",c),u.onFieldChange()},N=c=>{ie(b.value.textArea,c,j),H("",()=>{R()})},U=c=>{let C=c.target.value;if(d.value!==C){if(I.value){const A=c.target,W=A.selectionStart>=e.maxlength+1||A.selectionStart===C.length||!A.selectionStart;C=We(W,g.value,C,e.maxlength)}ie(c.currentTarget,c,j,C),H(C)}},Y=()=>{var c,C;const{class:A}=t,{bordered:W=!0}=e,D=p(p(p({},J(e,["allowClear"])),t),{class:[{[`${f.value}-borderless`]:!W,[`${A}`]:A&&!w.value,[`${f.value}-sm`]:P.value==="small",[`${f.value}-lg`]:P.value==="large"},ae(f.value,l.value),v.value],disabled:_.value,showCount:null,prefixCls:f.value,onInput:U,onChange:U,onBlur:O,onKeydown:S,onCompositionstart:a,onCompositionend:x});return!((c=e.valueModifiers)===null||c===void 0)&&c.lazy&&delete D.onInput,y(mn,B(B({},D),{},{id:(C=D==null?void 0:D.id)!==null&&C!==void 0?C:u.id.value,ref:b,maxlength:e.maxlength,lazy:e.lazy}),null)};return r({focus:R,blur:M,resizableTextArea:b}),be(()=>{let c=Oe(d.value);!T.value&&I.value&&(e.value===null||e.value===void 0)&&(c=ut(c,e.maxlength)),g.value=c}),()=>{var c;const{maxlength:C,bordered:A=!0,hidden:W}=e,{style:D,class:oe}=t,ce=p(p(p({},e),t),{prefixCls:f.value,inputType:"text",handleReset:N,direction:z.value,bordered:A,style:w.value?void 0:D,hashId:v.value,disabled:(c=e.disabled)!==null&&c!==void 0?c:_.value});let ne=y(pn,B(B({},ce),{},{value:g.value,status:e.status}),{element:Y});if(w.value||i.hasFeedback){const fe=[...g.value].length;let re="";typeof w.value=="object"?re=w.value.formatter({value:g.value,count:fe,maxlength:C}):re=`${fe}${I.value?` / ${C}`:""}`,ne=y("div",{hidden:W,class:L(`${f.value}-textarea`,{[`${f.value}-textarea-rtl`]:z.value==="rtl",[`${f.value}-textarea-show-count`]:w.value,[`${f.value}-textarea-in-form-item`]:i.isFormItemInput},`${f.value}-textarea-show-count`,oe,v.value),style:D,"data-count":typeof re!="object"?re:void 0},[ne,i.hasFeedback&&y("span",{class:`${f.value}-textarea-suffix`},[i.feedbackIcon])])}return E(ne)}}});var xn={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"};function Le(e){for(var n=1;ne?y(_e,null,null):y(Ae,null,null),Pn=K({compatConfig:{MODE:3},name:"AInputPassword",inheritAttrs:!1,props:p(p({},me()),{prefixCls:String,inputPrefixCls:String,action:{type:String,default:"click"},visibilityToggle:{type:Boolean,default:!0},visible:{type:Boolean,default:void 0},"onUpdate:visible":Function,iconRender:Function}),setup(e,n){let{slots:t,attrs:r,expose:o,emit:s}=n;const u=X(!1),i=()=>{const{disabled:v}=e;v||(u.value=!u.value,s("update:visible",u.value))};be(()=>{e.visible!==void 0&&(u.value=!!e.visible)});const l=X();o({focus:()=>{var v;(v=l.value)===null||v===void 0||v.focus()},blur:()=>{var v;(v=l.value)===null||v===void 0||v.blur()}});const g=v=>{const{action:_,iconRender:w=t.iconRender||In}=e,I=On[_]||"",T=w(u.value),h={[I]:i,class:`${v}-icon`,key:"passwordIcon",onMousedown:m=>{m.preventDefault()},onMouseup:m=>{m.preventDefault()}};return ee(St(T)?T:y("span",null,[T]),h)},{prefixCls:f,getPrefixCls:P}=de("input-password",e),z=Q(()=>P("input",e.inputPrefixCls)),E=()=>{const{size:v,visibilityToggle:_}=e,w=wn(e,["size","visibilityToggle"]),I=_&&g(f.value),T=L(f.value,r.class,{[`${f.value}-${v}`]:!!v}),h=p(p(p({},J(w,["suffix","iconRender","action"])),r),{type:u.value?"text":"password",class:T,prefixCls:z.value,suffix:I});return v&&(h.size=v),y(V,B({ref:l},h),t)};return()=>E()}});V.Group=sn;V.Search=dn;V.TextArea=yn;V.Password=Pn;V.install=function(e){return e.component(V.name,V),e.component(V.Group.name,V.Group),e.component(V.Search.name,V.Search),e.component(V.TextArea.name,V.TextArea),e.component(V.Password.name,V.Password),e};export{Ke as B,Je as C,_e as E,V as I,ot as P,Ie as S,yn as _,Pn as a,dn as b,tt as c,Tn as d,Dt as e,nt as f,rt as g,Gt as h,Jt as i,qt as j,Xt as k,we as l,ze as m,ae as n,Pe as o,Ft as p,jn as s,Hn as u}; diff --git a/src/agentkit/server/static/assets/index-DBR_iMr9.js b/src/agentkit/server/static/assets/index-DBR_iMr9.js new file mode 100644 index 0000000..8da5cb9 --- /dev/null +++ b/src/agentkit/server/static/assets/index-DBR_iMr9.js @@ -0,0 +1,2 @@ +import{x as V,y as L,p as oo,q as eo,_ as I,s as j,aL as to,b1 as K,d as H,z as M,N as U,c as z,E as D,aV as _,g as O,r as F,P as N,a7 as E,a4 as T,A as ro,az as A,aM as no,C as ao}from"./index-Ci55MVrK.js";import{V as io}from"./Checkbox-C1b034xJ.js";import{u as X,o as lo,F as so}from"./FormItemContext-D_7H_KA_.js";const q=Symbol("radioGroupContextKey"),co=o=>{L(q,o)},uo=()=>V(q,void 0),J=Symbol("radioOptionTypeContextKey"),po=o=>{L(J,o)},bo=()=>V(J,void 0),go=new to("antRadioEffect",{"0%":{transform:"scale(1)",opacity:.5},"100%":{transform:"scale(1.6)",opacity:0}}),ho=o=>{const{componentCls:r,antCls:n}=o,t=`${r}-group`;return{[t]:I(I({},j(o)),{display:"inline-block",fontSize:0,[`&${t}-rtl`]:{direction:"rtl"},[`${n}-badge ${n}-badge-count`]:{zIndex:1},[`> ${n}-badge:not(:first-child) > ${n}-button-wrapper`]:{borderInlineStart:"none"}})}},Co=o=>{const{componentCls:r,radioWrapperMarginRight:n,radioCheckedColor:t,radioSize:e,motionDurationSlow:d,motionDurationMid:s,motionEaseInOut:w,motionEaseInOutCirc:C,radioButtonBg:b,colorBorder:B,lineWidth:g,radioDotSize:f,colorBgContainerDisabled:x,colorTextDisabled:c,paddingXS:h,radioDotDisabledColor:a,lineType:m,radioDotDisabledSize:u,wireframe:p,colorWhite:y}=o,i=`${r}-inner`;return{[`${r}-wrapper`]:I(I({},j(o)),{position:"relative",display:"inline-flex",alignItems:"baseline",marginInlineStart:0,marginInlineEnd:n,cursor:"pointer",[`&${r}-wrapper-rtl`]:{direction:"rtl"},"&-disabled":{cursor:"not-allowed",color:o.colorTextDisabled},"&::after":{display:"inline-block",width:0,overflow:"hidden",content:'"\\a0"'},[`${r}-checked::after`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:"100%",height:"100%",border:`${g}px ${m} ${t}`,borderRadius:"50%",visibility:"hidden",animationName:go,animationDuration:d,animationTimingFunction:w,animationFillMode:"both",content:'""'},[r]:I(I({},j(o)),{position:"relative",display:"inline-block",outline:"none",cursor:"pointer",alignSelf:"center"}),[`${r}-wrapper:hover &, + &:hover ${i}`]:{borderColor:t},[`${r}-input:focus-visible + ${i}`]:I({},K(o)),[`${r}:hover::after, ${r}-wrapper:hover &::after`]:{visibility:"visible"},[`${r}-inner`]:{"&::after":{boxSizing:"border-box",position:"absolute",insetBlockStart:"50%",insetInlineStart:"50%",display:"block",width:e,height:e,marginBlockStart:e/-2,marginInlineStart:e/-2,backgroundColor:p?t:y,borderBlockStart:0,borderInlineStart:0,borderRadius:e,transform:"scale(0)",opacity:0,transition:`all ${d} ${C}`,content:'""'},boxSizing:"border-box",position:"relative",insetBlockStart:0,insetInlineStart:0,display:"block",width:e,height:e,backgroundColor:b,borderColor:B,borderStyle:"solid",borderWidth:g,borderRadius:"50%",transition:`all ${s}`},[`${r}-input`]:{position:"absolute",insetBlockStart:0,insetInlineEnd:0,insetBlockEnd:0,insetInlineStart:0,zIndex:1,cursor:"pointer",opacity:0},[`${r}-checked`]:{[i]:{borderColor:t,backgroundColor:p?b:t,"&::after":{transform:`scale(${f/e})`,opacity:1,transition:`all ${d} ${C}`}}},[`${r}-disabled`]:{cursor:"not-allowed",[i]:{backgroundColor:x,borderColor:B,cursor:"not-allowed","&::after":{backgroundColor:a}},[`${r}-input`]:{cursor:"not-allowed"},[`${r}-disabled + span`]:{color:c,cursor:"not-allowed"},[`&${r}-checked`]:{[i]:{"&::after":{transform:`scale(${u/e})`}}}},[`span${r} + *`]:{paddingInlineStart:h,paddingInlineEnd:h}})}},fo=o=>{const{radioButtonColor:r,controlHeight:n,componentCls:t,lineWidth:e,lineType:d,colorBorder:s,motionDurationSlow:w,motionDurationMid:C,radioButtonPaddingHorizontal:b,fontSize:B,radioButtonBg:g,fontSizeLG:f,controlHeightLG:x,controlHeightSM:c,paddingXS:h,borderRadius:a,borderRadiusSM:m,borderRadiusLG:u,radioCheckedColor:p,radioButtonCheckedBg:y,radioButtonHoverColor:i,radioButtonActiveColor:v,radioSolidCheckedColor:R,colorTextDisabled:l,colorBgContainerDisabled:S,radioDisabledButtonCheckedColor:P,radioDisabledButtonCheckedBg:G}=o;return{[`${t}-button-wrapper`]:{position:"relative",display:"inline-block",height:n,margin:0,paddingInline:b,paddingBlock:0,color:r,fontSize:B,lineHeight:`${n-e*2}px`,background:g,border:`${e}px ${d} ${s}`,borderBlockStartWidth:e+.02,borderInlineStartWidth:0,borderInlineEndWidth:e,cursor:"pointer",transition:[`color ${C}`,`background ${C}`,`border-color ${C}`,`box-shadow ${C}`].join(","),a:{color:r},[`> ${t}-button`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,zIndex:-1,width:"100%",height:"100%"},"&:not(:first-child)":{"&::before":{position:"absolute",insetBlockStart:-e,insetInlineStart:-e,display:"block",boxSizing:"content-box",width:1,height:"100%",paddingBlock:e,paddingInline:0,backgroundColor:s,transition:`background-color ${w}`,content:'""'}},"&:first-child":{borderInlineStart:`${e}px ${d} ${s}`,borderStartStartRadius:a,borderEndStartRadius:a},"&:last-child":{borderStartEndRadius:a,borderEndEndRadius:a},"&:first-child:last-child":{borderRadius:a},[`${t}-group-large &`]:{height:x,fontSize:f,lineHeight:`${x-e*2}px`,"&:first-child":{borderStartStartRadius:u,borderEndStartRadius:u},"&:last-child":{borderStartEndRadius:u,borderEndEndRadius:u}},[`${t}-group-small &`]:{height:c,paddingInline:h-e,paddingBlock:0,lineHeight:`${c-e*2}px`,"&:first-child":{borderStartStartRadius:m,borderEndStartRadius:m},"&:last-child":{borderStartEndRadius:m,borderEndEndRadius:m}},"&:hover":{position:"relative",color:p},"&:has(:focus-visible)":I({},K(o)),[`${t}-inner, input[type='checkbox'], input[type='radio']`]:{width:0,height:0,opacity:0,pointerEvents:"none"},[`&-checked:not(${t}-button-wrapper-disabled)`]:{zIndex:1,color:p,background:y,borderColor:p,"&::before":{backgroundColor:p},"&:first-child":{borderColor:p},"&:hover":{color:i,borderColor:i,"&::before":{backgroundColor:i}},"&:active":{color:v,borderColor:v,"&::before":{backgroundColor:v}}},[`${t}-group-solid &-checked:not(${t}-button-wrapper-disabled)`]:{color:R,background:p,borderColor:p,"&:hover":{color:R,background:i,borderColor:i},"&:active":{color:R,background:v,borderColor:v}},"&-disabled":{color:l,backgroundColor:S,borderColor:s,cursor:"not-allowed","&:first-child, &:hover":{color:l,backgroundColor:S,borderColor:s}},[`&-disabled${t}-button-wrapper-checked`]:{color:P,backgroundColor:G,borderColor:s,boxShadow:"none"}}}},Q=oo("Radio",o=>{const{padding:r,lineWidth:n,controlItemBgActiveDisabled:t,colorTextDisabled:e,colorBgContainer:d,fontSizeLG:s,controlOutline:w,colorPrimaryHover:C,colorPrimaryActive:b,colorText:B,colorPrimary:g,marginXS:f,controlOutlineWidth:x,colorTextLightSolid:c,wireframe:h}=o,a=`0 0 0 ${x}px ${w}`,m=a,u=s,p=4,y=u-p*2,i=h?y:u-(p+n)*2,v=g,R=B,l=C,S=b,P=r-n,$=eo(o,{radioFocusShadow:a,radioButtonFocusShadow:m,radioSize:u,radioDotSize:i,radioDotDisabledSize:y,radioCheckedColor:v,radioDotDisabledColor:e,radioSolidCheckedColor:c,radioButtonBg:d,radioButtonCheckedBg:d,radioButtonColor:R,radioButtonHoverColor:l,radioButtonActiveColor:S,radioButtonPaddingHorizontal:P,radioDisabledButtonCheckedBg:t,radioDisabledButtonCheckedColor:e,radioWrapperMarginRight:f});return[ho($),Co($),fo($)]});var vo=function(o,r){var n={};for(var t in o)Object.prototype.hasOwnProperty.call(o,t)&&r.indexOf(t)<0&&(n[t]=o[t]);if(o!=null&&typeof Object.getOwnPropertySymbols=="function")for(var e=0,t=Object.getOwnPropertySymbols(o);e({prefixCls:String,checked:T(),disabled:T(),isGroup:T(),value:N.any,name:String,id:String,autofocus:T(),onChange:E(),onFocus:E(),onBlur:E(),onClick:E(),"onUpdate:checked":E(),"onUpdate:value":E()}),k=H({compatConfig:{MODE:3},name:"ARadio",inheritAttrs:!1,props:Y(),setup(o,r){let{emit:n,expose:t,slots:e,attrs:d}=r;const s=X(),w=so.useInject(),C=bo(),b=uo(),B=_(),g=O(()=>{var l;return(l=h.value)!==null&&l!==void 0?l:B.value}),f=F(),{prefixCls:x,direction:c,disabled:h}=M("radio",o),a=O(()=>(b==null?void 0:b.optionType.value)==="button"||C==="button"?`${x.value}-button`:x.value),m=_(),[u,p]=Q(x);t({focus:()=>{f.value.focus()},blur:()=>{f.value.blur()}});const v=l=>{const S=l.target.checked;n("update:checked",S),n("update:value",S),n("change",l),s.onFieldChange()},R=l=>{n("change",l),b&&b.onChange&&b.onChange(l)};return()=>{var l;const S=b,{prefixCls:P,id:G=s.id.value}=o,W=vo(o,["prefixCls","id"]),$=I(I({prefixCls:a.value,id:G},lo(W,["onUpdate:checked","onUpdate:value"])),{disabled:(l=h.value)!==null&&l!==void 0?l:m.value});S?($.name=S.name.value,$.onChange=R,$.checked=o.value===S.value.value,$.disabled=g.value||S.disabled.value):$.onChange=v;const Z=U({[`${a.value}-wrapper`]:!0,[`${a.value}-wrapper-checked`]:$.checked,[`${a.value}-wrapper-disabled`]:$.disabled,[`${a.value}-wrapper-rtl`]:c.value==="rtl",[`${a.value}-wrapper-in-form-item`]:w.isFormItemInput},d.class,p.value);return u(z("label",D(D({},d),{},{class:Z}),[z(io,D(D({},$),{},{type:"radio",ref:f}),null),e.default&&z("span",null,[e.default()])]))}}}),mo=()=>({prefixCls:String,value:N.any,size:A(),options:no(),disabled:T(),name:String,buttonStyle:A("outline"),id:String,optionType:A("default"),onChange:E(),"onUpdate:value":E()}),So=H({compatConfig:{MODE:3},name:"ARadioGroup",inheritAttrs:!1,props:mo(),setup(o,r){let{slots:n,emit:t,attrs:e}=r;const d=X(),{prefixCls:s,direction:w,size:C}=M("radio",o),[b,B]=Q(s),g=F(o.value),f=F(!1);return ro(()=>o.value,c=>{g.value=c,f.value=!1}),co({onChange:c=>{const h=g.value,{value:a}=c.target;"value"in o||(g.value=a),!f.value&&a!==h&&(f.value=!0,t("update:value",a),t("change",c),d.onFieldChange()),ao(()=>{f.value=!1})},value:g,disabled:O(()=>o.disabled),name:O(()=>o.name),optionType:O(()=>o.optionType)}),()=>{var c;const{options:h,buttonStyle:a,id:m=d.id.value}=o,u=`${s.value}-group`,p=U(u,`${u}-${a}`,{[`${u}-${C.value}`]:C.value,[`${u}-rtl`]:w.value==="rtl"},e.class,B.value);let y=null;return h&&h.length>0?y=h.map(i=>{if(typeof i=="string"||typeof i=="number")return z(k,{key:i,prefixCls:s.value,disabled:o.disabled,value:i,checked:g.value===i},{default:()=>[i]});const{value:v,disabled:R,label:l}=i;return z(k,{key:`radio-group-value-options-${v}`,prefixCls:s.value,disabled:R||o.disabled,value:v,checked:g.value===v},{default:()=>[l]})}):y=(c=n.default)===null||c===void 0?void 0:c.call(n),b(z("div",D(D({},e),{},{class:p,id:m}),[y]))}}}),$o=H({compatConfig:{MODE:3},name:"ARadioButton",inheritAttrs:!1,props:Y(),setup(o,r){let{slots:n,attrs:t}=r;const{prefixCls:e}=M("radio",o);return po("button"),()=>{var d;return z(k,D(D(D({},t),o),{},{prefixCls:e.value}),{default:()=>[(d=n.default)===null||d===void 0?void 0:d.call(n)]})}}});k.Group=So;k.Button=$o;k.install=function(o){return o.component(k.name,k),o.component(k.Group.name,k.Group),o.component(k.Button.name,k.Button),o};export{So as A,k as R,$o as a}; diff --git a/src/agentkit/server/static/assets/index-DJ0mAqy8.js b/src/agentkit/server/static/assets/index-DJ0mAqy8.js new file mode 100644 index 0000000..c4c848a --- /dev/null +++ b/src/agentkit/server/static/assets/index-DJ0mAqy8.js @@ -0,0 +1 @@ +import{p as b,q as w,_ as s,s as z,aF as y,d as C,z as M,J as B,c as u,E as f,g as d}from"./index-Ci55MVrK.js";const I=t=>{const{componentCls:e,sizePaddingEdgeHorizontal:o,colorSplit:r,lineWidth:i}=t;return{[e]:s(s({},z(t)),{borderBlockStart:`${i}px solid ${r}`,"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",margin:`0 ${t.dividerVerticalGutterMargin}px`,verticalAlign:"middle",borderTop:0,borderInlineStart:`${i}px solid ${r}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${t.dividerHorizontalGutterMargin}px 0`},[`&-horizontal${e}-with-text`]:{display:"flex",alignItems:"center",margin:`${t.dividerHorizontalWithTextGutterMargin}px 0`,color:t.colorTextHeading,fontWeight:500,fontSize:t.fontSizeLG,whiteSpace:"nowrap",textAlign:"center",borderBlockStart:`0 ${r}`,"&::before, &::after":{position:"relative",width:"50%",borderBlockStart:`${i}px solid transparent`,borderBlockStartColor:"inherit",borderBlockEnd:0,transform:"translateY(50%)",content:"''"}},[`&-horizontal${e}-with-text-left`]:{"&::before":{width:"5%"},"&::after":{width:"95%"}},[`&-horizontal${e}-with-text-right`]:{"&::before":{width:"95%"},"&::after":{width:"5%"}},[`${e}-inner-text`]:{display:"inline-block",padding:"0 1em"},"&-dashed":{background:"none",borderColor:r,borderStyle:"dashed",borderWidth:`${i}px 0 0`},[`&-horizontal${e}-with-text${e}-dashed`]:{"&::before, &::after":{borderStyle:"dashed none none"}},[`&-vertical${e}-dashed`]:{borderInlineStartWidth:i,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},[`&-plain${e}-with-text`]:{color:t.colorText,fontWeight:"normal",fontSize:t.fontSize},[`&-horizontal${e}-with-text-left${e}-no-default-orientation-margin-left`]:{"&::before":{width:0},"&::after":{width:"100%"},[`${e}-inner-text`]:{paddingInlineStart:o}},[`&-horizontal${e}-with-text-right${e}-no-default-orientation-margin-right`]:{"&::before":{width:"100%"},"&::after":{width:0},[`${e}-inner-text`]:{paddingInlineEnd:o}}})}},_=b("Divider",t=>{const e=w(t,{dividerVerticalGutterMargin:t.marginXS,dividerHorizontalWithTextGutterMargin:t.margin,dividerHorizontalGutterMargin:t.marginLG});return[I(e)]},{sizePaddingEdgeHorizontal:0}),E=()=>({prefixCls:String,type:{type:String,default:"horizontal"},dashed:{type:Boolean,default:!1},orientation:{type:String,default:"center"},plain:{type:Boolean,default:!1},orientationMargin:[String,Number]}),G=C({name:"ADivider",inheritAttrs:!1,compatConfig:{MODE:3},props:E(),setup(t,e){let{slots:o,attrs:r}=e;const{prefixCls:i,direction:m}=M("divider",t),[v,h]=_(i),g=d(()=>t.orientation==="left"&&t.orientationMargin!=null),c=d(()=>t.orientation==="right"&&t.orientationMargin!=null),$=d(()=>{const{type:n,dashed:l,plain:S}=t,a=i.value;return{[a]:!0,[h.value]:!!h.value,[`${a}-${n}`]:!0,[`${a}-dashed`]:!!l,[`${a}-plain`]:!!S,[`${a}-rtl`]:m.value==="rtl",[`${a}-no-default-orientation-margin-left`]:g.value,[`${a}-no-default-orientation-margin-right`]:c.value}}),p=d(()=>{const n=typeof t.orientationMargin=="number"?`${t.orientationMargin}px`:t.orientationMargin;return s(s({},g.value&&{marginLeft:n}),c.value&&{marginRight:n})}),x=d(()=>t.orientation.length>0?"-"+t.orientation:t.orientation);return()=>{var n;const l=B((n=o.default)===null||n===void 0?void 0:n.call(o));return v(u("div",f(f({},r),{},{class:[$.value,l.length?`${i.value}-with-text ${i.value}-with-text${x.value}`:"",r.class],role:"separator"}),[l.length?u("span",{class:`${i.value}-inner-text`,style:p.value},[l]):null]))}}}),W=y(G);export{W as _}; diff --git a/src/agentkit/server/static/assets/index-Da8dBU05.js b/src/agentkit/server/static/assets/index-Da8dBU05.js new file mode 100644 index 0000000..3c4a1b1 --- /dev/null +++ b/src/agentkit/server/static/assets/index-Da8dBU05.js @@ -0,0 +1,13 @@ +import{c as h,I as nt,d as Ee,Q as He,N as j,E as R,a7 as A,r as Ge,G as _,A as ee,_ as v,g as W,a4 as F,a8 as Z,az as we,p as rt,s as Re,aA as at,z as it,aV as lt,P as Se}from"./index-Ci55MVrK.js";import{d as ot,D as st}from"./Dropdown-BUKifQVF.js";import{c as ut,w as Ve}from"./_plugin-vue_export-helper-CBXJ7-XR.js";import{K as le,c as dt}from"./zoom-C2fVs05p.js";import{u as ct,F as ft,o as pt,N as Be}from"./FormItemContext-D_7H_KA_.js";import{i as mt,g as Le,f as Ue,h as gt,j as vt,k as ht,l as bt,m as qe,n as $e,o as St}from"./index-D6JhFblJ.js";import{g as $t,d as Nt,N as Te}from"./index-Dr_Qcbdk.js";var yt={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"};function Fe(e){for(var t=1;tNumber.MAX_SAFE_INTEGER)return String(Ie()?BigInt(e).toString():Number.MAX_SAFE_INTEGER);if(eNumber.MAX_SAFE_INTEGER)return new z(Number.MAX_SAFE_INTEGER);if(a0&&arguments[0]!==void 0?arguments[0]:!0)?this.isInvalidate()?"":Oe(this.number):this.origin}}class q{constructor(t){if(this.origin="",ke(t)){this.empty=!0;return}if(this.origin=String(t),t==="-"||Number.isNaN(t)){this.nan=!0;return}let n=t;if(Pe(n)&&(n=Number(n)),n=typeof n=="string"?n:Oe(n),_e(n)){const a=te(n);this.negative=a.negative;const i=a.trimStr.split(".");this.integer=BigInt(i[0]);const l=i[1]||"0";this.decimal=BigInt(l),this.decimalLen=l.length}else this.nan=!0}getMark(){return this.negative?"-":""}getIntegerStr(){return this.integer.toString()}getDecimalStr(){return this.decimal.toString().padStart(this.decimalLen,"0")}alignDecimal(t){const n=`${this.getMark()}${this.getIntegerStr()}${this.getDecimalStr().padEnd(t,"0")}`;return BigInt(n)}negate(){const t=new q(this.toString());return t.negative=!t.negative,t}add(t){if(this.isInvalidate())return new q(t);const n=new q(t);if(n.isInvalidate())return this;const a=Math.max(this.getDecimalStr().length,n.getDecimalStr().length),i=this.alignDecimal(a),l=n.alignDecimal(a),d=(i+l).toString(),{negativeStr:c,trimStr:f}=te(d),p=`${c}${f.padStart(a+1,"0")}`;return new q(`${p.slice(0,-a)}.${p.slice(-a)}`)}isEmpty(){return this.empty}isNaN(){return this.nan}isInvalidate(){return this.isEmpty()||this.isNaN()}equals(t){return this.toString()===(t==null?void 0:t.toString())}lessEquals(t){return this.add(t.negate().toString()).toNumber()<=0}toNumber(){return this.isNaN()?NaN:Number(this.toString())}toString(){return(arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0)?this.isInvalidate()?"":te(`${this.getMark()}${this.getIntegerStr()}.${this.getDecimalStr()}`).fullStr:this.origin}}function O(e){return Ie()?new q(e):new z(e)}function xe(e,t,n){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(e==="")return"";const{negativeStr:i,integerStr:l,decimalStr:d}=te(e),c=`${t}${d}`,f=`${i}${l}`;if(n>=0){const p=Number(d[n]);if(p>=5&&!a){const s=O(e).add(`${i}0.${"0".repeat(n)}${10-p}`);return xe(s.toString(),t,n,a)}return n===0?f:`${f}${t}${d.padEnd(n,"0").slice(0,n)}`}return c===".0"?f:`${f}${c}`}const It=200,xt=600,Et=Ee({compatConfig:{MODE:3},name:"StepHandler",inheritAttrs:!1,props:{prefixCls:String,upDisabled:Boolean,downDisabled:Boolean,onStep:A()},slots:Object,setup(e,t){let{slots:n,emit:a}=t;const i=Ge(),l=(c,f)=>{c.preventDefault(),a("step",f);function p(){a("step",f),i.value=setTimeout(p,It)}i.value=setTimeout(p,xt)},d=()=>{clearTimeout(i.value)};return He(()=>{d()}),()=>{if(ot())return null;const{prefixCls:c,upDisabled:f,downDisabled:p}=e,s=`${c}-handler`,w=j(s,`${s}-up`,{[`${s}-up-disabled`]:f}),S=j(s,`${s}-down`,{[`${s}-down-disabled`]:p}),x={unselectable:"on",role:"button",onMouseup:d,onMouseleave:d},{upNode:$,downNode:E}=n;return h("div",{class:`${s}-wrap`},[h("span",R(R({},x),{},{onMousedown:D=>{l(D,!0)},"aria-label":"Increase Value","aria-disabled":f,class:w}),[($==null?void 0:$())||h("span",{unselectable:"on",class:`${c}-handler-up-inner`},null)]),h("span",R(R({},x),{},{onMousedown:D=>{l(D,!1)},"aria-label":"Decrease Value","aria-disabled":p,class:S}),[(E==null?void 0:E())||h("span",{unselectable:"on",class:`${c}-handler-down-inner`},null)])])}}});function Ct(e,t){const n=Ge(null);function a(){try{const{selectionStart:l,selectionEnd:d,value:c}=e.value,f=c.substring(0,l),p=c.substring(d);n.value={start:l,end:d,value:c,beforeTxt:f,afterTxt:p}}catch{}}function i(){if(e.value&&n.value&&t.value)try{const{value:l}=e.value,{beforeTxt:d,afterTxt:c,start:f}=n.value;let p=l.length;if(l.endsWith(c))p=l.length-n.value.afterTxt.length;else if(l.startsWith(d))p=d.length;else{const s=d[f-1],w=l.indexOf(s,f-1);w!==-1&&(p=w+1)}e.value.setSelectionRange(p,p)}catch(l){ut(!1,`Something warning of cursor restore. Please fire issue about this: ${l.message}`)}}return[a,i]}const Pt=()=>{const e=_(0),t=()=>{Ve.cancel(e.value)};return He(()=>{t()}),n=>{t(),e.value=Ve(()=>{n()})}};var Ot=function(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,a=Object.getOwnPropertySymbols(e);ie||t.isEmpty()?t.toString():t.toNumber(),je=e=>{const t=O(e);return t.isInvalidate()?null:t},Ke=()=>({stringMode:F(),defaultValue:Z([String,Number]),value:Z([String,Number]),prefixCls:we(),min:Z([String,Number]),max:Z([String,Number]),step:Z([String,Number],1),tabindex:Number,controls:F(!0),readonly:F(),disabled:F(),autofocus:F(),keyboard:F(!0),parser:A(),formatter:A(),precision:Number,decimalSeparator:String,onInput:A(),onChange:A(),onPressEnter:A(),onStep:A(),onBlur:A(),onFocus:A()}),_t=Ee({compatConfig:{MODE:3},name:"InnerInputNumber",inheritAttrs:!1,props:v(v({},Ke()),{lazy:Boolean}),slots:Object,setup(e,t){let{attrs:n,slots:a,emit:i,expose:l}=t;const d=_(),c=_(!1),f=_(!1),p=_(!1),s=_(O(e.value));function w(r){e.value===void 0&&(s.value=r)}const S=(r,o)=>{if(!o)return e.precision>=0?e.precision:Math.max(ne(r),ne(e.step))},x=r=>{const o=String(r);if(e.parser)return e.parser(o);let u=o;return e.decimalSeparator&&(u=u.replace(e.decimalSeparator,".")),u.replace(/[^\w.-]+/g,"")},$=_(""),E=(r,o)=>{if(e.formatter)return e.formatter(r,{userTyping:o,input:String($.value)});let u=typeof r=="number"?Oe(r):r;if(!o){const m=S(u,o);if(_e(u)&&(e.decimalSeparator||m>=0)){const y=e.decimalSeparator||".";u=xe(u,y,m)}}return u},D=(()=>{const r=e.value;return s.value.isInvalidate()&&["string","number"].includes(typeof r)?Number.isNaN(r)?"":r:E(s.value.toString(),!1)})();$.value=D;function C(r,o){$.value=E(r.isInvalidate()?r.toString(!1):r.toString(!o),o)}const P=W(()=>je(e.max)),N=W(()=>je(e.min)),I=W(()=>!P.value||!s.value||s.value.isInvalidate()?!1:P.value.lessEquals(s.value)),V=W(()=>!N.value||!s.value||s.value.isInvalidate()?!1:s.value.lessEquals(N.value)),[k,K]=Ct(d,c),X=r=>P.value&&!r.lessEquals(P.value)?P.value:N.value&&!N.value.lessEquals(r)?N.value:null,oe=r=>!X(r),Q=(r,o)=>{var u;let m=r,y=oe(m)||m.isEmpty();if(!m.isEmpty()&&!o&&(m=X(m)||m,y=!0),!e.readonly&&!e.disabled&&y){const M=m.toString(),L=S(M,o);return L>=0&&(m=O(xe(M,".",L))),m.equals(s.value)||(w(m),(u=e.onChange)===null||u===void 0||u.call(e,m.isEmpty()?null:ze(e.stringMode,m)),e.value===void 0&&C(m,o)),m}return s.value},se=Pt(),Y=r=>{var o;if(k(),$.value=r,!p.value){const u=x(r),m=O(u);m.isNaN()||Q(m,!0)}(o=e.onInput)===null||o===void 0||o.call(e,r),se(()=>{let u=r;e.parser||(u=r.replace(/。/g,".")),u!==r&&Y(u)})},b=()=>{p.value=!0},J=()=>{p.value=!1,Y(d.value.value)},H=r=>{Y(r.target.value)},G=r=>{var o,u;if(r&&I.value||!r&&V.value)return;f.value=!1;let m=O(e.step);r||(m=m.negate());const y=(s.value||O(0)).add(m.toString()),M=Q(y,!1);(o=e.onStep)===null||o===void 0||o.call(e,ze(e.stringMode,M),{offset:e.step,type:r?"up":"down"}),(u=d.value)===null||u===void 0||u.focus()},B=r=>{const o=O(x($.value));let u=o;o.isNaN()?u=s.value:u=Q(o,r),e.value!==void 0?C(s.value,!1):u.isNaN()||C(u,!1)},ue=()=>{f.value=!0},de=r=>{var o;const{which:u}=r;f.value=!0,u===le.ENTER&&(p.value||(f.value=!1),B(!1),(o=e.onPressEnter)===null||o===void 0||o.call(e,r)),e.keyboard!==!1&&!p.value&&[le.UP,le.DOWN].includes(u)&&(G(le.UP===u),r.preventDefault())},ce=()=>{f.value=!1},re=r=>{B(!1),c.value=!1,f.value=!1,i("blur",r)};return ee(()=>e.precision,()=>{s.value.isInvalidate()||C(s.value,!1)},{flush:"post"}),ee(()=>e.value,()=>{const r=O(e.value);s.value=r;const o=O(x($.value));(!r.equals(o)||!f.value||e.formatter)&&C(r,f.value)},{flush:"post"}),ee($,()=>{e.formatter&&K()},{flush:"post"}),ee(()=>e.disabled,r=>{r&&(c.value=!1)}),l({focus:()=>{var r;(r=d.value)===null||r===void 0||r.focus()},blur:()=>{var r;(r=d.value)===null||r===void 0||r.blur()}}),()=>{const r=v(v({},n),e),{prefixCls:o="rc-input-number",min:u,max:m,step:y=1,defaultValue:M,value:L,disabled:ae,readonly:ie,keyboard:g,controls:fe=!0,autofocus:T,stringMode:pe,parser:me,formatter:U,precision:ge,decimalSeparator:ve,onChange:he,onInput:De,onPressEnter:Me,onStep:Bt,lazy:Xe,class:Qe,style:Ye}=r,Je=Ot(r,["prefixCls","min","max","step","defaultValue","value","disabled","readonly","keyboard","controls","autofocus","stringMode","parser","formatter","precision","decimalSeparator","onChange","onInput","onPressEnter","onStep","lazy","class","style"]),{upHandler:Ze,downHandler:et}=a,Ae=`${o}-input`,be={};return Xe?be.onChange=H:be.onInput=H,h("div",{class:j(o,Qe,{[`${o}-focused`]:c.value,[`${o}-disabled`]:ae,[`${o}-readonly`]:ie,[`${o}-not-a-number`]:s.value.isNaN(),[`${o}-out-of-range`]:!s.value.isInvalidate()&&!oe(s.value)}),style:Ye,onKeydown:de,onKeyup:ce},[fe&&h(Et,{prefixCls:o,upDisabled:I.value,downDisabled:V.value,onStep:G},{upNode:Ze,downNode:et}),h("div",{class:`${Ae}-wrap`},[h("input",R(R(R({autofocus:T,autocomplete:"off",role:"spinbutton","aria-valuemin":u,"aria-valuemax":m,"aria-valuenow":s.value.isInvalidate()?null:s.value.toString(),step:y},Je),{},{ref:d,class:Ae,value:$.value,disabled:ae,readonly:ie,onFocus:tt=>{c.value=!0,i("focus",tt)}},be),{},{onBlur:re,onCompositionstart:b,onCompositionend:J,onBeforeinput:ue}),null)])])}}});function Ne(e){return e!=null}const Dt=e=>{const{componentCls:t,lineWidth:n,lineType:a,colorBorder:i,borderRadius:l,fontSizeLG:d,controlHeightLG:c,controlHeightSM:f,colorError:p,inputPaddingHorizontalSM:s,colorTextDescription:w,motionDurationMid:S,colorPrimary:x,controlHeight:$,inputPaddingHorizontal:E,colorBgContainer:D,colorTextDisabled:C,borderRadiusSM:P,borderRadiusLG:N,controlWidth:I,handleVisible:V}=e;return[{[t]:v(v(v(v({},Re(e)),Le(e)),Ue(e,t)),{display:"inline-block",width:I,margin:0,padding:0,border:`${n}px ${a} ${i}`,borderRadius:l,"&-rtl":{direction:"rtl",[`${t}-input`]:{direction:"rtl"}},"&-lg":{padding:0,fontSize:d,borderRadius:N,[`input${t}-input`]:{height:c-2*n}},"&-sm":{padding:0,borderRadius:P,[`input${t}-input`]:{height:f-2*n,padding:`0 ${s}px`}},"&:hover":v({},qe(e)),"&-focused":v({},bt(e)),"&-disabled":v(v({},ht(e)),{[`${t}-input`]:{cursor:"not-allowed"}}),"&-out-of-range":{input:{color:p}},"&-group":v(v(v({},Re(e)),vt(e)),{"&-wrapper":{display:"inline-block",textAlign:"start",verticalAlign:"top",[`${t}-affix-wrapper`]:{width:"100%"},"&-lg":{[`${t}-group-addon`]:{borderRadius:N}},"&-sm":{[`${t}-group-addon`]:{borderRadius:P}}}}),[t]:{"&-input":v(v({width:"100%",height:$-2*n,padding:`0 ${E}px`,textAlign:"start",backgroundColor:"transparent",border:0,borderRadius:l,outline:0,transition:`all ${S} linear`,appearance:"textfield",color:e.colorText,fontSize:"inherit",verticalAlign:"top"},gt(e.colorTextPlaceholder)),{'&[type="number"]::-webkit-inner-spin-button, &[type="number"]::-webkit-outer-spin-button':{margin:0,webkitAppearance:"none",appearance:"none"}})}})},{[t]:{[`&:hover ${t}-handler-wrap, &-focused ${t}-handler-wrap`]:{opacity:1},[`${t}-handler-wrap`]:{position:"absolute",insetBlockStart:0,insetInlineEnd:0,width:e.handleWidth,height:"100%",background:D,borderStartStartRadius:0,borderStartEndRadius:l,borderEndEndRadius:l,borderEndStartRadius:0,opacity:V===!0?1:0,display:"flex",flexDirection:"column",alignItems:"stretch",transition:`opacity ${S} linear ${S}`,[`${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:w,fontWeight:"bold",lineHeight:0,textAlign:"center",cursor:"pointer",borderInlineStart:`${n}px ${a} ${i}`,transition:`all ${S} linear`,"&:active":{background:e.colorFillAlter},"&:hover":{height:"60%",[` + ${t}-handler-up-inner, + ${t}-handler-down-inner + `]:{color:x}},"&-up-inner, &-down-inner":v(v({},at()),{color:w,transition:`all ${S} linear`,userSelect:"none"})},[`${t}-handler-up`]:{borderStartEndRadius:l},[`${t}-handler-down`]:{borderBlockStart:`${n}px ${a} ${i}`,borderEndEndRadius:l},"&-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:C}}},{[`${t}-borderless`]:{borderColor:"transparent",boxShadow:"none",[`${t}-handler-down`]:{borderBlockStartWidth:0}}}]},Mt=e=>{const{componentCls:t,inputPaddingHorizontal:n,inputAffixPadding:a,controlWidth:i,borderRadiusLG:l,borderRadiusSM:d}=e;return{[`${t}-affix-wrapper`]:v(v(v({},Le(e)),Ue(e,`${t}-affix-wrapper`)),{position:"relative",display:"inline-flex",width:i,padding:0,paddingInlineStart:n,"&-lg":{borderRadius:l},"&-sm":{borderRadius:d},[`&:not(${t}-affix-wrapper-disabled):hover`]:v(v({},qe(e)),{zIndex:1}),"&-focused, &:focus":{zIndex:1},"&-disabled":{[`${t}[disabled]`]:{background:"transparent"}},[`> div${t}`]:{width:"100%",border:"none",outline:"none",[`&${t}-focused`]:{boxShadow:"none !important"}},[`input${t}-input`]:{padding:0},"&::before":{width:0,visibility:"hidden",content:'"\\a0"'},[`${t}-handler-wrap`]:{zIndex:2},[t]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center",pointerEvents:"none"},"&-prefix":{marginInlineEnd:a},"&-suffix":{position:"absolute",insetBlockStart:0,insetInlineEnd:0,zIndex:1,height:"100%",marginInlineEnd:n,marginInlineStart:a}}})}},At=rt("InputNumber",e=>{const t=mt(e);return[Dt(t),Mt(t),$t(t)]},e=>({controlWidth:90,handleWidth:e.controlHeightSM-e.lineWidth*2,handleFontSize:e.fontSize/2,handleVisible:"auto"}));var Rt=function(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,a=Object.getOwnPropertySymbols(e);iv(v({},We),{size:we(),bordered:F(!0),placeholder:String,name:String,id:String,type:String,addonBefore:Se.any,addonAfter:Se.any,prefix:Se.any,"onUpdate:value":We.onChange,valueModifiers:Object,status:we()}),ye=Ee({compatConfig:{MODE:3},name:"AInputNumber",inheritAttrs:!1,props:Vt(),slots:Object,setup(e,t){let{emit:n,expose:a,attrs:i,slots:l}=t;var d;const c=ct(),f=ft.useInject(),p=W(()=>St(f.status,e.status)),{prefixCls:s,size:w,direction:S,disabled:x}=it("input-number",e),{compactSize:$,compactItemClassnames:E}=Nt(s,S),D=lt(),C=W(()=>{var b;return(b=x.value)!==null&&b!==void 0?b:D.value}),[P,N]=At(s),I=W(()=>$.value||w.value),V=_((d=e.value)!==null&&d!==void 0?d:e.defaultValue),k=_(!1);ee(()=>e.value,()=>{V.value=e.value});const K=_(null),X=()=>{var b;(b=K.value)===null||b===void 0||b.focus()};a({focus:X,blur:()=>{var b;(b=K.value)===null||b===void 0||b.blur()}});const Q=b=>{e.value===void 0&&(V.value=b),n("update:value",b),n("change",b),c.onFieldChange()},se=b=>{k.value=!1,n("blur",b),c.onFieldBlur()},Y=b=>{k.value=!0,n("focus",b)};return()=>{var b,J,H,G;const{hasFeedback:B,isFormItemInput:ue,feedbackIcon:de}=f,ce=(b=e.id)!==null&&b!==void 0?b:c.id.value,re=v(v(v({},i),e),{id:ce,disabled:C.value}),{class:r,bordered:o,readonly:u,style:m,addonBefore:y=(J=l.addonBefore)===null||J===void 0?void 0:J.call(l),addonAfter:M=(H=l.addonAfter)===null||H===void 0?void 0:H.call(l),prefix:L=(G=l.prefix)===null||G===void 0?void 0:G.call(l),valueModifiers:ae={}}=re,ie=Rt(re,["class","bordered","readonly","style","addonBefore","addonAfter","prefix","valueModifiers"]),g=s.value,fe=j({[`${g}-lg`]:I.value==="large",[`${g}-sm`]:I.value==="small",[`${g}-rtl`]:S.value==="rtl",[`${g}-readonly`]:u,[`${g}-borderless`]:!o,[`${g}-in-form-item`]:ue},$e(g,p.value),r,E.value,N.value);let T=h(_t,R(R({},pt(ie,["size","defaultValue"])),{},{ref:K,lazy:!!ae.lazy,value:V.value,class:fe,prefixCls:g,readonly:u,onChange:Q,onBlur:se,onFocus:Y}),{upHandler:l.upIcon?()=>h("span",{class:`${g}-handler-up-inner`},[l.upIcon()]):()=>h(Ce,{class:`${g}-handler-up-inner`},null),downHandler:l.downIcon?()=>h("span",{class:`${g}-handler-down-inner`},[l.downIcon()]):()=>h(st,{class:`${g}-handler-down-inner`},null)});const pe=Ne(y)||Ne(M),me=Ne(L);if(me||B){const U=j(`${g}-affix-wrapper`,$e(`${g}-affix-wrapper`,p.value,B),{[`${g}-affix-wrapper-focused`]:k.value,[`${g}-affix-wrapper-disabled`]:C.value,[`${g}-affix-wrapper-sm`]:I.value==="small",[`${g}-affix-wrapper-lg`]:I.value==="large",[`${g}-affix-wrapper-rtl`]:S.value==="rtl",[`${g}-affix-wrapper-readonly`]:u,[`${g}-affix-wrapper-borderless`]:!o,[`${r}`]:!pe&&r},N.value);T=h("div",{class:U,style:m,onClick:X},[me&&h("span",{class:`${g}-prefix`},[L]),T,B&&h("span",{class:`${g}-suffix`},[de])])}if(pe){const U=`${g}-group`,ge=`${U}-addon`,ve=y?h("div",{class:ge},[y]):null,he=M?h("div",{class:ge},[M]):null,De=j(`${g}-wrapper`,U,{[`${U}-rtl`]:S.value==="rtl"},N.value),Me=j(`${g}-group-wrapper`,{[`${g}-group-wrapper-sm`]:I.value==="small",[`${g}-group-wrapper-lg`]:I.value==="large",[`${g}-group-wrapper-rtl`]:S.value==="rtl"},$e(`${s}-group-wrapper`,p.value,B),r,N.value);T=h("div",{class:Me,style:m},[h("div",{class:De},[ve&&h(Te,null,{default:()=>[h(Be,null,{default:()=>[ve]})]}),T,he&&h(Te,null,{default:()=>[h(Be,null,{default:()=>[he]})]})])])}return P(dt(T,{style:m}))}}}),Lt=v(ye,{install:e=>(e.component(ye.name,ye),e)});export{Ce as U,Lt as _}; diff --git a/src/agentkit/server/static/assets/index-DaJ9bCD1.js b/src/agentkit/server/static/assets/index-DaJ9bCD1.js new file mode 100644 index 0000000..b0ed4ab --- /dev/null +++ b/src/agentkit/server/static/assets/index-DaJ9bCD1.js @@ -0,0 +1 @@ +import{p as L,q as R,_ as P,s as O,bl as j,d as z,z as F,c as d,E as b,g as m,N as H,H as X,F as U,Z as q,P as B,aW as G,G as V}from"./index-Ci55MVrK.js";import{W as Z}from"./index-Dr_Qcbdk.js";import{e as J,i as K,h as Q}from"./base-B4siOKZE.js";const h=(o,t,l)=>{const r=j(l);return{[`${o.componentCls}-${t}`]:{color:o[`color${l}`],background:o[`color${r}Bg`],borderColor:o[`color${r}Border`],[`&${o.componentCls}-borderless`]:{borderColor:"transparent"}}}},Y=o=>J(o,(t,l)=>{let{textColor:r,lightBorderColor:a,lightColor:e,darkColor:c}=l;return{[`${o.componentCls}-${t}`]:{color:r,background:e,borderColor:a,"&-inverse":{color:o.colorTextLightSolid,background:c,borderColor:c},[`&${o.componentCls}-borderless`]:{borderColor:"transparent"}}}}),oo=o=>{const{paddingXXS:t,lineWidth:l,tagPaddingHorizontal:r,componentCls:a}=o,e=r-l,c=t-l;return{[a]:P(P({},O(o)),{display:"inline-block",height:"auto",marginInlineEnd:o.marginXS,paddingInline:e,fontSize:o.tagFontSize,lineHeight:`${o.tagLineHeight}px`,whiteSpace:"nowrap",background:o.tagDefaultBg,border:`${o.lineWidth}px ${o.lineType} ${o.colorBorder}`,borderRadius:o.borderRadiusSM,opacity:1,transition:`all ${o.motionDurationMid}`,textAlign:"start",[`&${a}-rtl`]:{direction:"rtl"},"&, a, a:hover":{color:o.tagDefaultColor},[`${a}-close-icon`]:{marginInlineStart:c,color:o.colorTextDescription,fontSize:o.tagIconSize,cursor:"pointer",transition:`all ${o.motionDurationMid}`,"&:hover":{color:o.colorTextHeading}},[`&${a}-has-color`]:{borderColor:"transparent",[`&, a, a:hover, ${o.iconCls}-close, ${o.iconCls}-close:hover`]:{color:o.colorTextLightSolid}},"&-checkable":{backgroundColor:"transparent",borderColor:"transparent",cursor:"pointer",[`&:not(${a}-checkable-checked):hover`]:{color:o.colorPrimary,backgroundColor:o.colorFillSecondary},"&:active, &-checked":{color:o.colorTextLightSolid},"&-checked":{backgroundColor:o.colorPrimary,"&:hover":{backgroundColor:o.colorPrimaryHover}},"&:active":{backgroundColor:o.colorPrimaryActive}},"&-hidden":{display:"none"},[`> ${o.iconCls} + span, > span + ${o.iconCls}`]:{marginInlineStart:e}}),[`${a}-borderless`]:{borderColor:"transparent",background:o.tagBorderlessBg}}},D=L("Tag",o=>{const{fontSize:t,lineHeight:l,lineWidth:r,fontSizeIcon:a}=o,e=Math.round(t*l),c=o.fontSizeSM,g=e-r*2,C=o.colorFillAlter,i=o.colorText,n=R(o,{tagFontSize:c,tagLineHeight:g,tagDefaultBg:C,tagDefaultColor:i,tagIconSize:a-2*r,tagPaddingHorizontal:8,tagBorderlessBg:o.colorFillTertiary});return[oo(n),Y(n),h(n,"success","Success"),h(n,"processing","Info"),h(n,"error","Error"),h(n,"warning","Warning")]}),eo=()=>({prefixCls:String,checked:{type:Boolean,default:void 0},onChange:{type:Function},onClick:{type:Function},"onUpdate:checked":Function}),S=z({compatConfig:{MODE:3},name:"ACheckableTag",inheritAttrs:!1,props:eo(),setup(o,t){let{slots:l,emit:r,attrs:a}=t;const{prefixCls:e}=F("tag",o),[c,g]=D(e),C=n=>{const{checked:u}=o;r("update:checked",!u),r("change",!u),r("click",n)},i=m(()=>H(e.value,g.value,{[`${e.value}-checkable`]:!0,[`${e.value}-checkable-checked`]:o.checked}));return()=>{var n;return c(d("span",b(b({},a),{},{class:[i.value,a.class],onClick:C}),[(n=l.default)===null||n===void 0?void 0:n.call(l)]))}}}),lo=()=>({prefixCls:String,color:{type:String},closable:{type:Boolean,default:!1},closeIcon:B.any,visible:{type:Boolean,default:void 0},onClose:{type:Function},onClick:G(),"onUpdate:visible":Function,icon:B.any,bordered:{type:Boolean,default:!0}}),v=z({compatConfig:{MODE:3},name:"ATag",inheritAttrs:!1,props:lo(),slots:Object,setup(o,t){let{slots:l,emit:r,attrs:a}=t;const{prefixCls:e,direction:c}=F("tag",o),[g,C]=D(e),i=V(!0);X(()=>{o.visible!==void 0&&(i.value=o.visible)});const n=s=>{s.stopPropagation(),r("update:visible",!1),r("close",s),!s.defaultPrevented&&o.visible===void 0&&(i.value=!1)},u=m(()=>K(o.color)||Q(o.color)),M=m(()=>H(e.value,C.value,{[`${e.value}-${o.color}`]:u.value,[`${e.value}-has-color`]:o.color&&!u.value,[`${e.value}-hidden`]:!i.value,[`${e.value}-rtl`]:c.value==="rtl",[`${e.value}-borderless`]:!o.bordered})),W=s=>{r("click",s)};return()=>{var s,p,f;const{icon:w=(s=l.icon)===null||s===void 0?void 0:s.call(l),color:$,closeIcon:y=(p=l.closeIcon)===null||p===void 0?void 0:p.call(l),closable:A=!1}=o,N=()=>A?y?d("span",{class:`${e.value}-close-icon`,onClick:n},[y]):d(q,{class:`${e.value}-close-icon`,onClick:n},null):null,_={backgroundColor:$&&!u.value?$:void 0},T=w||null,I=(f=l.default)===null||f===void 0?void 0:f.call(l),k=T?d(U,null,[T,d("span",null,[I])]):I,E=o.onClick!==void 0,x=d("span",b(b({},a),{},{onClick:W,class:[M.value,a.class],style:[_,a.style]}),[k,N()]);return g(E?d(Z,null,{default:()=>[x]}):x)}}});v.CheckableTag=S;v.install=function(o){return o.component(v.name,v),o.component(S.name,S),o};export{v as T}; diff --git a/src/agentkit/server/static/assets/index-Dr_Qcbdk.js b/src/agentkit/server/static/assets/index-Dr_Qcbdk.js new file mode 100644 index 0000000..7860a24 --- /dev/null +++ b/src/agentkit/server/static/assets/index-Dr_Qcbdk.js @@ -0,0 +1 @@ +import{r as Ve,x as Ue,H as Re,M as He,_ as n,y as Xe,p as de,d as P,g as $,N as ue,z as X,J as me,c as p,E as W,a4 as Ce,P as F,af as le,bg as ae,B as pe,Q as K,aE as We,aI as Ke,G as A,S as ie,ao as De,A as Oe,C as Ae,aW as Se,a0 as xe,q as ge,aX as qe,bt as Je,a9 as Qe,b4 as Ye,aV as Ze}from"./index-Ci55MVrK.js";import{a as ke,b as eo,m as oo,u as to,q as ro,k as no,h as lo,v as ao,w as Ie,e as io,d as Le,i as so}from"./_plugin-vue_export-helper-CBXJ7-XR.js";function H(e){const o=typeof e=="function"?e():e,t=Ve(o);function r(l){t.value=l}return[t,r]}function Ne(e){const o=Symbol("contextKey");return{useProvide:(l,s)=>{const a=He({});return Xe(o,a),Re(()=>{n(a,l,s||{})}),a},useInject:()=>Ue(o,e)||{}}}const co=e=>{const{componentCls:o}=e;return{[o]:{display:"inline-flex","&-block":{display:"flex",width:"100%"},"&-vertical":{flexDirection:"column"}}}},uo=e=>{const{componentCls:o}=e;return{[o]:{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"}},[`${o}-item`]:{"&:empty":{display:"none"}}}}},mo=de("Space",e=>[uo(e),co(e)]);var po="[object Map]",go="[object Set]",vo=Object.prototype,fo=vo.hasOwnProperty;function je(e){if(e==null)return!0;if(ke(e)&&(eo(e)||typeof e=="string"||typeof e.splice=="function"||oo(e)||to(e)||ro(e)))return!e.length;var o=no(e);if(o==po||o==go)return!e.size;if(lo(e))return!ao(e).length;for(var t in e)if(fo.call(e,t))return!1;return!0}const bo=()=>({compactSize:String,compactDirection:F.oneOf(le("horizontal","vertical")).def("horizontal"),isFirstItem:Ce(),isLastItem:Ce()}),q=Ne(null),yo=(e,o)=>{const t=q.useInject(),r=$(()=>{if(!t||je(t))return"";const{compactDirection:l,isFirstItem:s,isLastItem:a}=t,d=l==="vertical"?"-vertical-":"-";return ue({[`${e.value}-compact${d}item`]:!0,[`${e.value}-compact${d}first-item`]:s,[`${e.value}-compact${d}last-item`]:a,[`${e.value}-compact${d}item-rtl`]:o.value==="rtl"})});return{compactSize:$(()=>t==null?void 0:t.compactSize),compactDirection:$(()=>t==null?void 0:t.compactDirection),compactItemClassnames:r}},ot=P({name:"NoCompactStyle",setup(e,o){let{slots:t}=o;return q.useProvide(null),()=>{var r;return(r=t.default)===null||r===void 0?void 0:r.call(t)}}}),ho=()=>({prefixCls:String,size:{type:String},direction:F.oneOf(le("horizontal","vertical")).def("horizontal"),align:F.oneOf(le("start","end","center","baseline")),block:{type:Boolean,default:void 0}}),$o=P({name:"CompactItem",props:bo(),setup(e,o){let{slots:t}=o;return q.useProvide(e),()=>{var r;return(r=t.default)===null||r===void 0?void 0:r.call(t)}}}),tt=P({name:"ASpaceCompact",inheritAttrs:!1,props:ho(),setup(e,o){let{attrs:t,slots:r}=o;const{prefixCls:l,direction:s}=X("space-compact",e),a=q.useInject(),[d,m]=mo(l),C=$(()=>ue(l.value,m.value,{[`${l.value}-rtl`]:s.value==="rtl",[`${l.value}-block`]:e.block,[`${l.value}-vertical`]:e.direction==="vertical"}));return()=>{var c;const g=me(((c=r.default)===null||c===void 0?void 0:c.call(r))||[]);return g.length===0?null:d(p("div",W(W({},t),{},{class:[C.value,t.class]}),[g.map((b,R)=>{var I;const E=b&&b.key||`${l.value}-item-${R}`,S=!a||je(a);return p($o,{key:E,compactSize:(I=e.size)!==null&&I!==void 0?I:"middle",compactDirection:e.direction,isFirstItem:R===0&&(S||(a==null?void 0:a.isFirstItem)),isLastItem:R===g.length-1&&(S||(a==null?void 0:a.isLastItem))},{default:()=>[b]})})]))}}});function Co(e,o,t){const{focusElCls:r,focus:l,borderElCls:s}=t,a=s?"> *":"",d=["hover",l?"focus":null,"active"].filter(Boolean).map(m=>`&:${m} ${a}`).join(",");return{[`&-item:not(${o}-last-item)`]:{marginInlineEnd:-e.lineWidth},"&-item":n(n({[d]:{zIndex:2}},r?{[`&${r}`]:{zIndex:2}}:{}),{[`&[disabled] ${a}`]:{zIndex:0}})}}function So(e,o,t){const{borderElCls:r}=t,l=r?`> ${r}`:"";return{[`&-item:not(${o}-first-item):not(${o}-last-item) ${l}`]:{borderRadius:0},[`&-item:not(${o}-last-item)${o}-first-item`]:{[`& ${l}, &${e}-sm ${l}, &${e}-lg ${l}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&-item:not(${o}-first-item)${o}-last-item`]:{[`& ${l}, &${e}-sm ${l}, &${e}-lg ${l}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}}function xo(e){let o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{focus:!0};const{componentCls:t}=e,r=`${t}-compact`;return{[r]:n(n({},Co(e,r,o)),So(t,r,o))}}const Io=e=>{const{componentCls:o,colorPrimary:t}=e;return{[o]:{position:"absolute",background:"transparent",pointerEvents:"none",boxSizing:"border-box",color:`var(--wave-color, ${t})`,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}}}}},Eo=de("Wave",e=>[Io(e)]);function Bo(e){const o=(e||"").match(/rgba?\((\d*), (\d*), (\d*)(, [\d.]*)?\)/);return o&&o[1]&&o[2]&&o[3]?!(o[1]===o[2]&&o[2]===o[3]):!0}function re(e){return e&&e!=="#fff"&&e!=="#ffffff"&&e!=="rgb(255, 255, 255)"&&e!=="rgba(255, 255, 255, 1)"&&Bo(e)&&!/rgba\((?:\d*, ){3}0\)/.test(e)&&e!=="transparent"}function To(e){const{borderTopColor:o,borderColor:t,backgroundColor:r}=getComputedStyle(e);return re(o)?o:re(t)?t:re(r)?r:null}function ne(e){return Number.isNaN(e)?0:e}const wo=P({props:{target:Ke(),className:String},setup(e){const o=A(null),[t,r]=H(null),[l,s]=H([]),[a,d]=H(0),[m,C]=H(0),[c,g]=H(0),[b,R]=H(0),[I,E]=H(!1);function S(){const{target:u}=e,v=getComputedStyle(u);r(To(u));const O=v.position==="static",{borderLeftWidth:Q,borderTopWidth:Y}=v;d(O?u.offsetLeft:ne(-parseFloat(Q))),C(O?u.offsetTop:ne(-parseFloat(Y))),g(u.offsetWidth),R(u.offsetHeight);const{borderTopLeftRadius:Z,borderTopRightRadius:be,borderBottomLeftRadius:ye,borderBottomRightRadius:i}=v;s([Z,be,i,ye].map(f=>ne(parseFloat(f))))}let B,h,z;const D=()=>{clearTimeout(z),Ie.cancel(h),B==null||B.disconnect()},L=()=>{var u;const v=(u=o.value)===null||u===void 0?void 0:u.parentElement;v&&(ae(null,v),v.parentElement&&v.parentElement.removeChild(v))};pe(()=>{D(),z=setTimeout(()=>{L()},5e3);const{target:u}=e;u&&(h=Ie(()=>{S(),E(!0)}),typeof ResizeObserver<"u"&&(B=new ResizeObserver(S),B.observe(u)))}),K(()=>{D()});const J=u=>{u.propertyName==="opacity"&&L()};return()=>{if(!I.value)return null;const u={left:`${a.value}px`,top:`${m.value}px`,width:`${c.value}px`,height:`${b.value}px`,borderRadius:l.value.map(v=>`${v}px`).join(" ")};return t&&(u["--wave-color"]=t.value),p(We,{appear:!0,name:"wave-motion",appearFromClass:"wave-motion-appear",appearActiveClass:"wave-motion-appear",appearToClass:"wave-motion-appear wave-motion-appear-active"},{default:()=>[p("div",{ref:o,class:e.className,style:u,onTransitionend:J},null)]})}}});function zo(e,o){const t=document.createElement("div");return t.style.position="absolute",t.style.left="0px",t.style.top="0px",e==null||e.insertBefore(t,e==null?void 0:e.firstChild),ae(p(wo,{target:e,className:o},null),t),()=>{ae(null,t),t.parentElement&&t.parentElement.removeChild(t)}}function Po(e,o){const t=De();let r;function l(){var s;const a=ie(t);r==null||r(),!(!((s=o==null?void 0:o.value)===null||s===void 0)&&s.disabled||!a)&&(r=zo(a,e.value))}return K(()=>{r==null||r()}),l}const Ro=P({compatConfig:{MODE:3},name:"Wave",props:{disabled:Boolean},setup(e,o){let{slots:t}=o;const r=De(),{prefixCls:l,wave:s}=X("wave",e),[,a]=Eo(l),d=Po($(()=>ue(l.value,a.value)),s);let m;const C=()=>{ie(r).removeEventListener("click",m,!0)};return pe(()=>{Oe(()=>e.disabled,()=>{C(),Ae(()=>{const c=ie(r);c==null||c.removeEventListener("click",m,!0),!(!c||c.nodeType!==1||e.disabled)&&(m=g=>{g.target.tagName==="INPUT"||!io(g.target)||!c.getAttribute||c.getAttribute("disabled")||c.disabled||c.className.includes("disabled")||c.className.includes("-leave")||d()},c.addEventListener("click",m,!0))})},{immediate:!0,flush:"post"})}),K(()=>{C()}),()=>{var c;return(c=t.default)===null||c===void 0?void 0:c.call(t)[0]}}});function rt(e){return e==="danger"?{danger:!0}:{type:e}}const Ho=()=>({prefixCls:String,type:String,htmlType:{type:String,default:"button"},shape:{type:String},size:{type:String},loading:{type:[Boolean,Object],default:()=>!1},disabled:{type:Boolean,default:void 0},ghost:{type:Boolean,default:void 0},block:{type:Boolean,default:void 0},danger:{type:Boolean,default:void 0},icon:F.any,href:String,target:String,title:String,onClick:Se(),onMousedown:Se()}),Ee=e=>{e&&(e.style.width="0px",e.style.opacity="0",e.style.transform="scale(0)")},Be=e=>{Ae(()=>{e&&(e.style.width=`${e.scrollWidth}px`,e.style.opacity="1",e.style.transform="scale(1)")})},Te=e=>{e&&e.style&&(e.style.width=null,e.style.opacity=null,e.style.transform=null)},Wo=P({compatConfig:{MODE:3},name:"LoadingIcon",props:{prefixCls:String,loading:[Boolean,Object],existIcon:Boolean},setup(e){return()=>{const{existIcon:o,prefixCls:t,loading:r}=e;if(o)return p("span",{class:`${t}-loading-icon`},[p(xe,null,null)]);const l=!!r;return p(We,{name:`${t}-loading-icon-motion`,onBeforeEnter:Ee,onEnter:Be,onAfterEnter:Te,onBeforeLeave:Be,onLeave:s=>{setTimeout(()=>{Ee(s)})},onAfterLeave:Te},{default:()=>[l?p("span",{class:`${t}-loading-icon`},[p(xe,null,null)]):null]})}}}),we=(e,o)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:o}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:o}}}}}),Do=e=>{const{componentCls:o,fontSize:t,lineWidth:r,colorPrimaryHover:l,colorErrorHover:s}=e;return{[`${o}-group`]:[{position:"relative",display:"inline-flex",[`> span, > ${o}`]:{"&:not(:last-child)":{[`&, & > ${o}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},"&:not(:first-child)":{marginInlineStart:-r,[`&, & > ${o}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}},[o]:{position:"relative",zIndex:1,"&:hover,\n &:focus,\n &:active":{zIndex:2},"&[disabled]":{zIndex:0}},[`${o}-icon-only`]:{fontSize:t}},we(`${o}-primary`,l),we(`${o}-danger`,s)]}};function Oo(e,o){return{[`&-item:not(${o}-last-item)`]:{marginBottom:-e.lineWidth},"&-item":{"&:hover,&:focus,&:active":{zIndex:2},"&[disabled]":{zIndex:0}}}}function Ao(e,o){return{[`&-item:not(${o}-first-item):not(${o}-last-item)`]:{borderRadius:0},[`&-item${o}-first-item:not(${o}-last-item)`]:{[`&, &${e}-sm, &${e}-lg`]:{borderEndEndRadius:0,borderEndStartRadius:0}},[`&-item${o}-last-item:not(${o}-first-item)`]:{[`&, &${e}-sm, &${e}-lg`]:{borderStartStartRadius:0,borderStartEndRadius:0}}}}function Lo(e){const o=`${e.componentCls}-compact-vertical`;return{[o]:n(n({},Oo(e,o)),Ao(e.componentCls,o))}}const No=e=>{const{componentCls:o,iconCls:t}=e;return{[o]:{outline:"none",position:"relative",display:"inline-block",fontWeight:400,whiteSpace:"nowrap",textAlign:"center",backgroundImage:"none",backgroundColor:"transparent",border:`${e.lineWidth}px ${e.lineType} transparent`,cursor:"pointer",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,userSelect:"none",touchAction:"manipulation",lineHeight:e.lineHeight,color:e.colorText,"> span":{display:"inline-block"},[`> ${t} + span, > span + ${t}`]:{marginInlineStart:e.marginXS},"> a":{color:"currentColor"},"&:not(:disabled)":n({},qe(e)),[`&-icon-only${o}-compact-item`]:{flex:"none"},[`&-compact-item${o}-primary`]:{[`&:not([disabled]) + ${o}-compact-item${o}-primary:not([disabled])`]:{position:"relative","&:before":{position:"absolute",top:-e.lineWidth,insetInlineStart:-e.lineWidth,display:"inline-block",width:e.lineWidth,height:`calc(100% + ${e.lineWidth*2}px)`,backgroundColor:e.colorPrimaryHover,content:'""'}}},"&-compact-vertical-item":{[`&${o}-primary`]:{[`&:not([disabled]) + ${o}-compact-vertical-item${o}-primary:not([disabled])`]:{position:"relative","&:before":{position:"absolute",top:-e.lineWidth,insetInlineStart:-e.lineWidth,display:"inline-block",width:`calc(100% + ${e.lineWidth*2}px)`,height:e.lineWidth,backgroundColor:e.colorPrimaryHover,content:'""'}}}}}}},w=(e,o)=>({"&:not(:disabled)":{"&:hover":e,"&:active":o}}),jo=e=>({minWidth:e.controlHeight,paddingInlineStart:0,paddingInlineEnd:0,borderRadius:"50%"}),_o=e=>({borderRadius:e.controlHeight,paddingInlineStart:e.controlHeight/2,paddingInlineEnd:e.controlHeight/2}),se=e=>({cursor:"not-allowed",borderColor:e.colorBorder,color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,boxShadow:"none"}),V=(e,o,t,r,l,s,a)=>({[`&${e}-background-ghost`]:n(n({color:o||void 0,backgroundColor:"transparent",borderColor:t||void 0,boxShadow:"none"},w(n({backgroundColor:"transparent"},s),n({backgroundColor:"transparent"},a))),{"&:disabled":{cursor:"not-allowed",color:r||void 0,borderColor:l||void 0}})}),ve=e=>({"&:disabled":n({},se(e))}),_e=e=>n({},ve(e)),U=e=>({"&:disabled":{cursor:"not-allowed",color:e.colorTextDisabled}}),Me=e=>n(n(n(n(n({},_e(e)),{backgroundColor:e.colorBgContainer,borderColor:e.colorBorder,boxShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlTmpOutline}`}),w({color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})),V(e.componentCls,e.colorBgContainer,e.colorBgContainer,e.colorTextDisabled,e.colorBorder)),{[`&${e.componentCls}-dangerous`]:n(n(n({color:e.colorError,borderColor:e.colorError},w({color:e.colorErrorHover,borderColor:e.colorErrorBorderHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),V(e.componentCls,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder)),ve(e))}),Mo=e=>n(n(n(n(n({},_e(e)),{color:e.colorTextLightSolid,backgroundColor:e.colorPrimary,boxShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlOutline}`}),w({color:e.colorTextLightSolid,backgroundColor:e.colorPrimaryHover},{color:e.colorTextLightSolid,backgroundColor:e.colorPrimaryActive})),V(e.componentCls,e.colorPrimary,e.colorPrimary,e.colorTextDisabled,e.colorBorder,{color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})),{[`&${e.componentCls}-dangerous`]:n(n(n({backgroundColor:e.colorError,boxShadow:`0 ${e.controlOutlineWidth}px 0 ${e.colorErrorOutline}`},w({backgroundColor:e.colorErrorHover},{backgroundColor:e.colorErrorActive})),V(e.componentCls,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder,{color:e.colorErrorHover,borderColor:e.colorErrorHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),ve(e))}),Go=e=>n(n({},Me(e)),{borderStyle:"dashed"}),Fo=e=>n(n(n({color:e.colorLink},w({color:e.colorLinkHover},{color:e.colorLinkActive})),U(e)),{[`&${e.componentCls}-dangerous`]:n(n({color:e.colorError},w({color:e.colorErrorHover},{color:e.colorErrorActive})),U(e))}),Vo=e=>n(n(n({},w({color:e.colorText,backgroundColor:e.colorBgTextHover},{color:e.colorText,backgroundColor:e.colorBgTextActive})),U(e)),{[`&${e.componentCls}-dangerous`]:n(n({color:e.colorError},U(e)),w({color:e.colorErrorHover,backgroundColor:e.colorErrorBg},{color:e.colorErrorHover,backgroundColor:e.colorErrorBg}))}),Uo=e=>n(n({},se(e)),{[`&${e.componentCls}:hover`]:n({},se(e))}),Xo=e=>{const{componentCls:o}=e;return{[`${o}-default`]:Me(e),[`${o}-primary`]:Mo(e),[`${o}-dashed`]:Go(e),[`${o}-link`]:Fo(e),[`${o}-text`]:Vo(e),[`${o}-disabled`]:Uo(e)}},fe=function(e){let o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const{componentCls:t,iconCls:r,controlHeight:l,fontSize:s,lineHeight:a,lineWidth:d,borderRadius:m,buttonPaddingHorizontal:C}=e,c=Math.max(0,(l-s*a)/2-d),g=C-d,b=`${t}-icon-only`;return[{[`${t}${o}`]:{fontSize:s,height:l,padding:`${c}px ${g}px`,borderRadius:m,[`&${b}`]:{width:l,paddingInlineStart:0,paddingInlineEnd:0,[`&${t}-round`]:{width:"auto"},"> span":{transform:"scale(1.143)"}},[`&${t}-loading`]:{opacity:e.opacityLoading,cursor:"default"},[`${t}-loading-icon`]:{transition:`width ${e.motionDurationSlow} ${e.motionEaseInOut}, opacity ${e.motionDurationSlow} ${e.motionEaseInOut}`},[`&:not(${b}) ${t}-loading-icon > ${r}`]:{marginInlineEnd:e.marginXS}}},{[`${t}${t}-circle${o}`]:jo(e)},{[`${t}${t}-round${o}`]:_o(e)}]},Ko=e=>fe(e),qo=e=>{const o=ge(e,{controlHeight:e.controlHeightSM,padding:e.paddingXS,buttonPaddingHorizontal:8,borderRadius:e.borderRadiusSM});return fe(o,`${e.componentCls}-sm`)},Jo=e=>{const o=ge(e,{controlHeight:e.controlHeightLG,fontSize:e.fontSizeLG,borderRadius:e.borderRadiusLG});return fe(o,`${e.componentCls}-lg`)},Qo=e=>{const{componentCls:o}=e;return{[o]:{[`&${o}-block`]:{width:"100%"}}}},Yo=de("Button",e=>{const{controlTmpOutline:o,paddingContentHorizontal:t}=e,r=ge(e,{colorOutlineDefault:o,buttonPaddingHorizontal:t});return[No(r),qo(r),Ko(r),Jo(r),Qo(r),Xo(r),Do(r),xo(e,{focus:!1}),Lo(e)]}),Zo=()=>({prefixCls:String,size:{type:String}}),Ge=Ne(),ce=P({compatConfig:{MODE:3},name:"AButtonGroup",props:Zo(),setup(e,o){let{slots:t}=o;const{prefixCls:r,direction:l}=X("btn-group",e),[,,s]=Je();Ge.useProvide(He({size:$(()=>e.size)}));const a=$(()=>{const{size:d}=e;let m="";switch(d){case"large":m="lg";break;case"small":m="sm";break;case"middle":case void 0:break;default:Le(!d,"Button.Group","Invalid prop `size`.")}return{[`${r.value}`]:!0,[`${r.value}-${m}`]:m,[`${r.value}-rtl`]:l.value==="rtl",[s.value]:!0}});return()=>{var d;return p("div",{class:a.value},[me((d=t.default)===null||d===void 0?void 0:d.call(t))])}}}),ze=/^[\u4e00-\u9fa5]{2}$/,Pe=ze.test.bind(ze);function M(e){return e==="text"||e==="link"}const G=P({compatConfig:{MODE:3},name:"AButton",inheritAttrs:!1,__ANT_BUTTON:!0,props:so(Ho(),{type:"default"}),slots:Object,setup(e,o){let{slots:t,attrs:r,emit:l,expose:s}=o;const{prefixCls:a,autoInsertSpaceInButton:d,direction:m,size:C}=X("btn",e),[c,g]=Yo(a),b=Ge.useInject(),R=Ze(),I=$(()=>{var i;return(i=e.disabled)!==null&&i!==void 0?i:R.value}),E=A(null),S=A(void 0);let B=!1;const h=A(!1),z=A(!1),D=$(()=>d.value!==!1),{compactSize:L,compactItemClassnames:J}=yo(a,m),u=$(()=>typeof e.loading=="object"&&e.loading.delay?e.loading.delay||!0:!!e.loading);Oe(u,i=>{clearTimeout(S.value),typeof u.value=="number"?S.value=setTimeout(()=>{h.value=i},u.value):h.value=i},{immediate:!0});const v=$(()=>{const{type:i,shape:f="default",ghost:T,block:x,danger:k}=e,y=a.value,N={large:"lg",small:"sm",middle:void 0},j=L.value||(b==null?void 0:b.size)||C.value,_=j&&N[j]||"";return[J.value,{[g.value]:!0,[`${y}`]:!0,[`${y}-${f}`]:f!=="default"&&f,[`${y}-${i}`]:i,[`${y}-${_}`]:_,[`${y}-loading`]:h.value,[`${y}-background-ghost`]:T&&!M(i),[`${y}-two-chinese-chars`]:z.value&&D.value,[`${y}-block`]:x,[`${y}-dangerous`]:!!k,[`${y}-rtl`]:m.value==="rtl"}]}),O=()=>{const i=E.value;if(!i||d.value===!1)return;const f=i.textContent;B&&Pe(f)?z.value||(z.value=!0):z.value&&(z.value=!1)},Q=i=>{if(h.value||I.value){i.preventDefault();return}l("click",i)},Y=i=>{l("mousedown",i)},Z=(i,f)=>{const T=f?" ":"";if(i.type===Ye){let x=i.children.trim();return Pe(x)&&(x=x.split("").join(T)),p("span",null,[x])}return i};return Re(()=>{Le(!(e.ghost&&M(e.type)),"Button","`link` or `text` button can't be a `ghost` button.")}),pe(O),Qe(O),K(()=>{S.value&&clearTimeout(S.value)}),s({focus:()=>{var i;(i=E.value)===null||i===void 0||i.focus()},blur:()=>{var i;(i=E.value)===null||i===void 0||i.blur()}}),()=>{var i,f;const{icon:T=(i=t.icon)===null||i===void 0?void 0:i.call(t)}=e,x=me((f=t.default)===null||f===void 0?void 0:f.call(t));B=x.length===1&&!T&&!M(e.type);const{type:k,htmlType:y,href:N,title:j,target:_}=e,Fe=h.value?"loading":T,ee=n(n({},r),{title:j,disabled:I.value,class:[v.value,r.class,{[`${a.value}-icon-only`]:x.length===0&&!!Fe}],onClick:Q,onMousedown:Y});I.value||delete ee.disabled;const he=T&&!h.value?T:p(Wo,{existIcon:!!T,prefixCls:a.value,loading:!!h.value},null),$e=x.map(te=>Z(te,B&&D.value));if(N!==void 0)return c(p("a",W(W({},ee),{},{href:N,target:_,ref:E}),[he,$e]));let oe=p("button",W(W({},ee),{},{ref:E,type:y}),[he,$e]);if(!M(k)){const te=function(){return oe}();oe=p(Ro,{ref:"wave",disabled:!!h.value},{default:()=>[te]})}return c(oe)}}});G.Group=ce;G.install=function(e){return e.component(G.name,G),e.component(ce.name,ce),e};export{G as B,tt as C,ot as N,Ro as W,mo as a,Ho as b,rt as c,yo as d,Ne as e,xo as g,H as u}; diff --git a/src/agentkit/server/static/assets/index-vR_mL1Yy.css b/src/agentkit/server/static/assets/index-vR_mL1Yy.css new file mode 100644 index 0000000..2f029f2 --- /dev/null +++ b/src/agentkit/server/static/assets/index-vR_mL1Yy.css @@ -0,0 +1 @@ +html,body{width:100%;height:100%}input::-ms-clear,input::-ms-reveal{display:none}*,*:before,*:after{box-sizing:border-box}html{font-family:sans-serif;line-height:1.15;-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%;-ms-overflow-style:scrollbar;-webkit-tap-highlight-color:rgba(0,0,0,0)}@-ms-viewport{width:device-width}body{margin:0}[tabindex="-1"]:focus{outline:none}hr{box-sizing:content-box;height:0;overflow:visible}h1,h2,h3,h4,h5,h6{margin-top:0;margin-bottom:.5em;font-weight:500}p{margin-top:0;margin-bottom:1em}abbr[title],abbr[data-original-title]{-webkit-text-decoration:underline dotted;text-decoration:underline;text-decoration:underline dotted;border-bottom:0;cursor:help}address{margin-bottom:1em;font-style:normal;line-height:inherit}input[type=text],input[type=password],input[type=number],textarea{-webkit-appearance:none}ol,ul,dl{margin-top:0;margin-bottom:1em}ol ol,ul ul,ol ul,ul ol{margin-bottom:0}dt{font-weight:500}dd{margin-bottom:.5em;margin-left:0}blockquote{margin:0 0 1em}dfn{font-style:italic}b,strong{font-weight:bolder}small{font-size:80%}sub,sup{position:relative;font-size:75%;line-height:0;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}pre,code,kbd,samp{font-size:1em;font-family:SFMono-Regular,Consolas,Liberation Mono,Menlo,Courier,monospace}pre{margin-top:0;margin-bottom:1em;overflow:auto}figure{margin:0 0 1em}img{vertical-align:middle;border-style:none}a,area,button,[role=button],input:not([type=range]),label,select,summary,textarea{touch-action:manipulation}table{border-collapse:collapse}caption{padding-top:.75em;padding-bottom:.3em;text-align:left;caption-side:bottom}input,button,select,optgroup,textarea{margin:0;color:inherit;font-size:inherit;font-family:inherit;line-height:inherit}button,input{overflow:visible}button,select{text-transform:none}button,html [type=button],[type=reset],[type=submit]{-webkit-appearance:button}button::-moz-focus-inner,[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner{padding:0;border-style:none}input[type=radio],input[type=checkbox]{box-sizing:border-box;padding:0}input[type=date],input[type=time],input[type=datetime-local],input[type=month]{-webkit-appearance:listbox}textarea{overflow:auto;resize:vertical}fieldset{min-width:0;margin:0;padding:0;border:0}legend{display:block;width:100%;max-width:100%;margin-bottom:.5em;padding:0;color:inherit;font-size:1.5em;line-height:inherit;white-space:normal}progress{vertical-align:baseline}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{outline-offset:-2px;-webkit-appearance:none}[type=search]::-webkit-search-cancel-button,[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{font:inherit;-webkit-appearance:button}output{display:inline-block}summary{display:list-item}template{display:none}[hidden]{display:none!important}mark{padding:.2em;background-color:#feffe6}:root{--color-primary: #7c3aed;--color-primary-hover: #6d28d9;--color-primary-active: #5b21b6;--color-primary-light: #ede9fe;--color-primary-bg: #f5f3ff;--gradient-brand: linear-gradient(135deg, #7c3aed 0%, #1e1b4b 100%);--color-success: #10b981;--color-success-light: #d1fae5;--color-warning: #f59e0b;--color-warning-light: #fef3c7;--color-error: #ef4444;--color-error-light: #fee2e2;--color-info: #3b82f6;--color-info-light: #dbeafe;--color-gray-50: #fafafa;--color-gray-100: #f5f5f5;--color-gray-200: #e5e5e5;--color-gray-300: #d4d4d4;--color-gray-400: #a3a3a3;--color-gray-500: #737373;--color-gray-600: #525252;--color-gray-700: #404040;--color-gray-800: #262626;--color-gray-900: #171717;--bg-primary: #ffffff;--bg-secondary: #fafafa;--bg-tertiary: #f5f5f5;--bg-elevated: #ffffff;--bg-code: #282c34;--text-primary: #171717;--text-secondary: #525252;--text-tertiary: #737373;--text-placeholder: #a3a3a3;--text-inverse: #ffffff;--text-code: #abb2bf;--border-color: #e5e5e5;--border-color-hover: #d4d4d4;--border-color-active: var(--color-primary);--border-color-split: #f0f0f0;--space-1: 4px;--space-2: 8px;--space-3: 12px;--space-4: 16px;--space-5: 20px;--space-6: 24px;--space-8: 32px;--space-10: 40px;--space-12: 48px;--radius-sm: 4px;--radius-md: 6px;--radius-lg: 8px;--radius-xl: 12px;--radius-full: 9999px;--font-xs: 12px;--font-sm: 13px;--font-base: 14px;--font-md: 16px;--font-lg: 20px;--font-xl: 24px;--font-weight-normal: 400;--font-weight-medium: 500;--font-weight-semibold: 600;--font-weight-bold: 700;--leading-tight: 1.25;--leading-normal: 1.5;--leading-relaxed: 1.75;--shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, .05);--shadow-md: 0 4px 6px -1px rgba(0, 0, 0, .07), 0 2px 4px -2px rgba(0, 0, 0, .05);--shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, .08), 0 4px 6px -4px rgba(0, 0, 0, .04);--shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, .08), 0 8px 10px -6px rgba(0, 0, 0, .04);--transition-fast: .15s ease;--transition-normal: .2s ease;--transition-slow: .3s ease;--z-dropdown: 1000;--z-sticky: 1020;--z-fixed: 1030;--z-modal-backdrop: 1040;--z-modal: 1050;--z-popover: 1060;--z-tooltip: 1070;--topnav-height: 48px;--sidebar-width: 280px;--quadrant-min-size: 320px;--code-bg: #282c34;--code-fg: #abb2bf;--code-keyword: #c678dd;--code-string: #98c379;--code-number: #d19a66;--code-comment: #5c6370;--code-function: #61afef;--code-variable: #e06c75;--code-type: #e5c07b;--code-added-bg: rgba(16, 185, 129, .15);--code-removed-bg: rgba(239, 68, 68, .15)}.fade-enter-active,.fade-leave-active{transition:opacity var(--transition-fast)}.fade-enter-from,.fade-leave-to{opacity:0}.slide-up-enter-active,.slide-up-leave-active{transition:transform var(--transition-normal),opacity var(--transition-fast)}.slide-up-enter-from,.slide-up-leave-to{transform:translateY(8px);opacity:0}.slide-down-enter-active,.slide-down-leave-active{transition:transform var(--transition-normal),opacity var(--transition-fast)}.slide-down-enter-from,.slide-down-leave-to{transform:translateY(-8px);opacity:0}.slide-right-enter-active,.slide-right-leave-active{transition:transform var(--transition-normal),opacity var(--transition-fast)}.slide-right-enter-from,.slide-right-leave-to{transform:translate(-8px);opacity:0}.collapse-enter-active,.collapse-leave-active{transition:max-height var(--transition-slow) ease,opacity var(--transition-fast);overflow:hidden}.collapse-enter-from,.collapse-leave-to{max-height:0;opacity:0}.collapse-enter-to,.collapse-leave-from{max-height:500px;opacity:1}.scale-enter-active,.scale-leave-active{transition:transform var(--transition-fast),opacity var(--transition-fast)}.scale-enter-from,.scale-leave-to{transform:scale(.95);opacity:0}.stagger-list-enter-active{transition:transform var(--transition-normal),opacity var(--transition-fast)}.stagger-list-leave-active{transition:transform var(--transition-fast),opacity var(--transition-fast)}.stagger-list-enter-from,.stagger-list-leave-to{transform:translateY(8px);opacity:0}.stagger-list-move{transition:transform var(--transition-normal)}@keyframes skeleton-pulse{0%{opacity:1}50%{opacity:.4}to{opacity:1}}.skeleton-loading{animation:skeleton-pulse 1.5s ease-in-out infinite;background:linear-gradient(90deg,var(--bg-tertiary) 25%,var(--border-color) 50%,var(--bg-tertiary) 75%);background-size:200% 100%;border-radius:var(--radius-sm)}@keyframes pulse-dot{0%,to{opacity:1}50%{opacity:.3}}.pulse-dot{animation:pulse-dot 1.5s ease-in-out infinite}@media (min-width: 1440px){.agent-layout__body{display:flex}}@media (min-width: 1280px) and (max-width: 1439px){.agent-layout__body{display:flex}.quadrant-panel--bottom-right-collapsed{height:auto!important}}@media (max-width: 1279px){.agent-layout__body{display:none}.agent-layout__small-screen{display:flex}}.agent-layout__small-screen{display:none;flex-direction:column;align-items:center;justify-content:center;height:100%;gap:var(--space-4);color:var(--text-tertiary);text-align:center;padding:var(--space-8)}.agent-layout__small-screen h2{font-size:var(--font-lg);color:var(--text-primary)}.agent-layout__small-screen p{font-size:var(--font-base);max-width:400px}.quadrant-panel{min-width:var(--quadrant-min-size);min-height:var(--quadrant-min-size)}@media (max-width: 768px){.top-nav__center{display:none}}@media (max-width: 1024px){.chat-sidebar:not(.chat-sidebar--collapsed){width:200px}}@media print{.top-nav,.split-pane__handle,.quadrant-panel__collapse-btn{display:none!important}}*{margin:0;padding:0;box-sizing:border-box}html,body,#app{height:100%;width:100%;overflow:hidden}body{font-family:-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";-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale} diff --git a/src/agentkit/server/static/assets/index-yRXoO2C0.js b/src/agentkit/server/static/assets/index-yRXoO2C0.js new file mode 100644 index 0000000..9edad5c --- /dev/null +++ b/src/agentkit/server/static/assets/index-yRXoO2C0.js @@ -0,0 +1 @@ +import{p as M,q as L,_ as x,s as P,aL as E,d as X,z as _,G,A,Q as B,c as r,E as I,aP as H,D as j,b3 as T,b8 as N,P as O}from"./index-Ci55MVrK.js";import{i as R}from"./_plugin-vue_export-helper-CBXJ7-XR.js";function V(n,e,c){var t=c||{},i=t.noTrailing,m=i===void 0?!1:i,b=t.noLeading,$=b===void 0?!1:b,y=t.debounceMode,a=y===void 0?void 0:y,o,g=!1,f=0;function D(){o&&clearTimeout(o)}function w(d){var v=d||{},p=v.upcomingOnly,h=p===void 0?!1:p;D(),g=!h}function S(){for(var d=arguments.length,v=new Array(d),p=0;pn?$?(f=Date.now(),m||(o=setTimeout(a?s:u,n))):u():m!==!0&&(o=setTimeout(a?s:u,a===void 0?n-l:n))}return S.cancel=w,S}function F(n,e,c){var t={},i=t.atBegin,m=i===void 0?!1:i;return V(n,e,{debounceMode:m!==!1})}const q=new E("antSpinMove",{to:{opacity:1}}),K=new E("antRotate",{to:{transform:"rotate(405deg)"}}),Q=n=>({[`${n.componentCls}`]:x(x({},P(n)),{position:"absolute",display:"none",color:n.colorPrimary,textAlign:"center",verticalAlign:"middle",opacity:0,transition:`transform ${n.motionDurationSlow} ${n.motionEaseInOutCirc}`,"&-spinning":{position:"static",display:"inline-block",opacity:1},"&-nested-loading":{position:"relative",[`> div > ${n.componentCls}`]:{position:"absolute",top:0,insetInlineStart:0,zIndex:4,display:"block",width:"100%",height:"100%",maxHeight:n.contentHeight,[`${n.componentCls}-dot`]:{position:"absolute",top:"50%",insetInlineStart:"50%",margin:-n.spinDotSize/2},[`${n.componentCls}-text`]:{position:"absolute",top:"50%",width:"100%",paddingTop:(n.spinDotSize-n.fontSize)/2+2,textShadow:`0 1px 2px ${n.colorBgContainer}`},[`&${n.componentCls}-show-text ${n.componentCls}-dot`]:{marginTop:-(n.spinDotSize/2)-10},"&-sm":{[`${n.componentCls}-dot`]:{margin:-n.spinDotSizeSM/2},[`${n.componentCls}-text`]:{paddingTop:(n.spinDotSizeSM-n.fontSize)/2+2},[`&${n.componentCls}-show-text ${n.componentCls}-dot`]:{marginTop:-(n.spinDotSizeSM/2)-10}},"&-lg":{[`${n.componentCls}-dot`]:{margin:-(n.spinDotSizeLG/2)},[`${n.componentCls}-text`]:{paddingTop:(n.spinDotSizeLG-n.fontSize)/2+2},[`&${n.componentCls}-show-text ${n.componentCls}-dot`]:{marginTop:-(n.spinDotSizeLG/2)-10}}},[`${n.componentCls}-container`]:{position:"relative",transition:`opacity ${n.motionDurationSlow}`,"&::after":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:10,width:"100%",height:"100%",background:n.colorBgContainer,opacity:0,transition:`all ${n.motionDurationSlow}`,content:'""',pointerEvents:"none"}},[`${n.componentCls}-blur`]:{clear:"both",opacity:.5,userSelect:"none",pointerEvents:"none","&::after":{opacity:.4,pointerEvents:"auto"}}},"&-tip":{color:n.spinDotDefault},[`${n.componentCls}-dot`]:{position:"relative",display:"inline-block",fontSize:n.spinDotSize,width:"1em",height:"1em","&-item":{position:"absolute",display:"block",width:(n.spinDotSize-n.marginXXS/2)/2,height:(n.spinDotSize-n.marginXXS/2)/2,backgroundColor:n.colorPrimary,borderRadius:"100%",transform:"scale(0.75)",transformOrigin:"50% 50%",opacity:.3,animationName:q,animationDuration:"1s",animationIterationCount:"infinite",animationTimingFunction:"linear",animationDirection:"alternate","&:nth-child(1)":{top:0,insetInlineStart:0},"&: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:K,animationDuration:"1.2s",animationIterationCount:"infinite",animationTimingFunction:"linear"}},[`&-sm ${n.componentCls}-dot`]:{fontSize:n.spinDotSizeSM,i:{width:(n.spinDotSizeSM-n.marginXXS/2)/2,height:(n.spinDotSizeSM-n.marginXXS/2)/2}},[`&-lg ${n.componentCls}-dot`]:{fontSize:n.spinDotSizeLG,i:{width:(n.spinDotSizeLG-n.marginXXS)/2,height:(n.spinDotSizeLG-n.marginXXS)/2}},[`&${n.componentCls}-show-text ${n.componentCls}-text`]:{display:"block"}})}),U=M("Spin",n=>{const e=L(n,{spinDotDefault:n.colorTextDescription,spinDotSize:n.controlHeightLG/2,spinDotSizeSM:n.controlHeightLG*.35,spinDotSizeLG:n.controlHeight});return[Q(e)]},{contentHeight:400});var J=function(n,e){var c={};for(var t in n)Object.prototype.hasOwnProperty.call(n,t)&&e.indexOf(t)<0&&(c[t]=n[t]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,t=Object.getOwnPropertySymbols(n);i({prefixCls:String,spinning:{type:Boolean,default:void 0},size:String,wrapperClassName:String,tip:O.any,delay:Number,indicator:O.any});let C=null;function Y(n,e){return!!n&&!!e&&!isNaN(Number(e))}function Z(n){const e=n.indicator;C=typeof e=="function"?e:()=>r(e,null,null)}const z=X({compatConfig:{MODE:3},name:"ASpin",inheritAttrs:!1,props:R(W(),{size:"default",spinning:!0,wrapperClassName:""}),setup(n,e){let{attrs:c,slots:t}=e;const{prefixCls:i,size:m,direction:b}=_("spin",n),[$,y]=U(i),a=G(n.spinning&&!Y(n.spinning,n.delay));let o;return A([()=>n.spinning,()=>n.delay],()=>{o==null||o.cancel(),o=F(n.delay,()=>{a.value=n.spinning}),o==null||o()},{immediate:!0,flush:"post"}),B(()=>{o==null||o.cancel()}),()=>{var g,f;const{class:D}=c,w=J(c,["class"]),{tip:S=(g=t.tip)===null||g===void 0?void 0:g.call(t)}=n,d=(f=t.default)===null||f===void 0?void 0:f.call(t),v={[y.value]:!0,[i.value]:!0,[`${i.value}-sm`]:m.value==="small",[`${i.value}-lg`]:m.value==="large",[`${i.value}-spinning`]:a.value,[`${i.value}-show-text`]:!!S,[`${i.value}-rtl`]:b.value==="rtl",[D]:!!D};function p(l){const u=`${l}-dot`;let s=j(t,n,"indicator");return s===null?null:(Array.isArray(s)&&(s=s.length===1?s[0]:s),T(s)?N(s,{class:u}):C&&T(C())?N(C(),{class:u}):r("span",{class:`${u} ${l}-dot-spin`},[r("i",{class:`${l}-dot-item`},null),r("i",{class:`${l}-dot-item`},null),r("i",{class:`${l}-dot-item`},null),r("i",{class:`${l}-dot-item`},null)]))}const h=r("div",I(I({},w),{},{class:v,"aria-live":"polite","aria-busy":a.value}),[p(i.value),S?r("div",{class:`${i.value}-text`},[S]):null]);if(d&&H(d).length){const l={[`${i.value}-container`]:!0,[`${i.value}-blur`]:a.value};return $(r("div",{class:[`${i.value}-nested-loading`,n.wrapperClassName,y.value]},[a.value&&r("div",{key:"loading"},[h]),r("div",{class:l,key:"container"},[d])]))}return $(h)}}});z.setDefaultIndicator=Z;z.install=function(n){return n.component(z.name,z),n};export{z as S}; diff --git a/src/agentkit/server/static/assets/pickAttrs-Crnv5AEc.js b/src/agentkit/server/static/assets/pickAttrs-Crnv5AEc.js new file mode 100644 index 0000000..2871ee5 --- /dev/null +++ b/src/agentkit/server/static/assets/pickAttrs-Crnv5AEc.js @@ -0,0 +1,18 @@ +import{_ as i}from"./index-Ci55MVrK.js";const l=`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 for 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`,c=`onCopy onCut onPaste onCompositionend onCompositionstart onCompositionupdate onKeydown + onKeypress onKeyup onFocus onBlur onChange onInput onSubmit onClick onContextmenu onDoubleclick onDblclick + onDrag onDragend onDragenter onDragexit onDragleave onDragover onDragstart onDrop onMousedown + onMouseenter onMouseleave onMousemove onMouseout onMouseover onMouseup onSelect onTouchcancel + onTouchend onTouchmove onTouchstart onTouchstartPassive onTouchmovePassive 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`,r=`${l} ${c}`.split(/[\s\n]+/),d="aria-",u="data-";function s(a,n){return a.indexOf(n)===0}function m(a){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,o;n===!1?o={aria:!0,data:!0,attr:!0}:n===!0?o={aria:!0}:o=i({},n);const t={};return Object.keys(a).forEach(e=>{(o.aria&&(e==="role"||s(e,d))||o.data&&s(e,u)||o.attr&&(r.includes(e)||r.includes(e.toLowerCase())))&&(t[e]=a[e])}),t}export{m as p}; diff --git a/src/agentkit/server/static/assets/responsiveObserve-CDxZiPRN.js b/src/agentkit/server/static/assets/responsiveObserve-CDxZiPRN.js new file mode 100644 index 0000000..bcf1871 --- /dev/null +++ b/src/agentkit/server/static/assets/responsiveObserve-CDxZiPRN.js @@ -0,0 +1 @@ +import{bt as m,g as o,_ as l}from"./index-Ci55MVrK.js";const b=["xxxl","xxl","xl","lg","md","sm","xs"],u=r=>({xs:`(max-width: ${r.screenXSMax}px)`,sm:`(min-width: ${r.screenSM}px)`,md:`(min-width: ${r.screenMD}px)`,lg:`(min-width: ${r.screenLG}px)`,xl:`(min-width: ${r.screenXL}px)`,xxl:`(min-width: ${r.screenXXL}px)`,xxxl:`{min-width: ${r.screenXXXL}px}`});function v(){const[,r]=m();return o(()=>{const n=u(r.value),t=new Map;let a=-1,c={};return{matchHandlers:{},dispatch(e){return c=e,t.forEach(i=>i(c)),t.size>=1},subscribe(e){return t.size||this.register(),a+=1,t.set(a,e),e(c),a},unsubscribe(e){t.delete(e),t.size||this.unregister()},unregister(){Object.keys(n).forEach(e=>{const i=n[e],s=this.matchHandlers[i];s==null||s.mql.removeListener(s==null?void 0:s.listener)}),t.clear()},register(){Object.keys(n).forEach(e=>{const i=n[e],s=h=>{let{matches:x}=h;this.dispatch(l(l({},c),{[e]:x}))},d=window.matchMedia(i);d.addListener(s),this.matchHandlers[i]={mql:d,listener:s},s(d)})},responsiveMap:n}})}export{b as r,v as u}; diff --git a/src/agentkit/server/static/assets/styleChecker-CUnokkun.js b/src/agentkit/server/static/assets/styleChecker-CUnokkun.js new file mode 100644 index 0000000..db82989 --- /dev/null +++ b/src/agentkit/server/static/assets/styleChecker-CUnokkun.js @@ -0,0 +1 @@ +import{b6 as d}from"./index-Ci55MVrK.js";const i=()=>d()&&window.document.documentElement,c=e=>{if(d()&&window.document.documentElement){const t=Array.isArray(e)?e:[e],{documentElement:n}=window.document;return t.some(r=>r in n.style)}return!1},u=(e,t)=>{if(!c(e))return!1;const n=document.createElement("div"),r=n.style[e];return n.style[e]=t,n.style[e]!==r};function s(e,t){return!Array.isArray(e)&&t!==void 0?u(e,t):c(e)}let o;const p=()=>{if(!i())return!1;if(o!==void 0)return o;const e=document.createElement("div");return e.style.display="flex",e.style.flexDirection="column",e.style.rowGap="1px",e.appendChild(document.createElement("div")),e.appendChild(document.createElement("div")),document.body.appendChild(e),o=e.scrollHeight===1,document.body.removeChild(e),o};export{i as c,p as d,s as i}; diff --git a/src/agentkit/server/static/assets/zoom-C2fVs05p.js b/src/agentkit/server/static/assets/zoom-C2fVs05p.js new file mode 100644 index 0000000..b854703 --- /dev/null +++ b/src/agentkit/server/static/assets/zoom-C2fVs05p.js @@ -0,0 +1,14 @@ +import{aP as B,b8 as U,_ as c,R as Z,b3 as _,bE as W,F as x,bg as H,H as V,b6 as g,bF as G,bG as $,g as R,d as j,P as Q,a9 as Y,B as q,A as X,C as k,Q as J,c as ee,bH as te,a4 as ne,G as p,aL as s}from"./index-Ci55MVrK.js";import{w as z}from"./_plugin-vue_export-helper-CBXJ7-XR.js";let T=!1;try{const e=Object.defineProperty({},"passive",{get(){T=!0}});window.addEventListener("testPassive",null,e),window.removeEventListener("testPassive",null,e)}catch{}function Se(e,n,o,t){if(e&&e.addEventListener){let r=t;r===void 0&&T&&(n==="touchstart"||n==="touchmove"||n==="wheel")&&(r={passive:!1}),e.addEventListener(n,o,r)}return{remove:()=>{e&&e.removeEventListener&&e.removeEventListener(n,o)}}}function oe(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,t=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,r=e;if(Array.isArray(e)&&(r=B(e)[0]),!r)return null;const a=U(r,n,t);return a.props=o?c(c({},a.props),n):a.props,Z(typeof a.props.class!="object"),a}function Le(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;return e.map(t=>oe(t,n,o))}function $e(e,n,o){H(U(e,c({},n)),o)}const D=e=>(e||[]).some(n=>_(n)?!(n.type===W||n.type===x&&!D(n.children)):!0)?e:null;function ze(e,n,o,t){var r;const a=(r=e[n])===null||r===void 0?void 0:r.call(e,o);return D(a)?a:t==null?void 0:t()}let b;function M(e){if(typeof document>"u")return 0;if(b===void 0){const n=document.createElement("div");n.style.width="100%",n.style.height="200px";const o=document.createElement("div"),t=o.style;t.position="absolute",t.top="0",t.left="0",t.pointerEvents="none",t.visibility="hidden",t.width="200px",t.height="150px",t.overflow="hidden",o.appendChild(n),document.body.appendChild(o);const r=n.offsetWidth;o.style.overflow="scroll";let a=n.offsetWidth;r===a&&(a=o.clientWidth),document.body.removeChild(o),b=r-a}return b}function N(e){const n=e.match(/^(.*)px$/),o=Number(n==null?void 0:n[1]);return Number.isNaN(o)?M():o}function Ne(e){if(typeof document>"u"||!e||!(e instanceof Element))return{width:0,height:0};const{width:n,height:o}=getComputedStyle(e,"::-webkit-scrollbar");return{width:N(n),height:N(o)}}const ae=`vc-util-locker-${Date.now()}`;let P=0;function re(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}function ie(e){const n=R(()=>!!e&&!!e.value);P+=1;const o=`${ae}_${P}`;V(t=>{if(g()){if(n.value){const r=M(),a=re();G(` +html body { + overflow-y: hidden; + ${a?`width: calc(100% - ${r}px);`:""} +}`,o)}else $(o);t(()=>{$(o)})}},{flush:"post"})}let m=0;const v=g(),F=e=>{if(!v)return null;if(e){if(typeof e=="string")return document.querySelectorAll(e)[0];if(typeof e=="function")return e();if(typeof e=="object"&&e instanceof window.HTMLElement)return e}return document.body},Pe=j({compatConfig:{MODE:3},name:"PortalWrapper",inheritAttrs:!1,props:{wrapperClassName:String,forceRender:{type:Boolean,default:void 0},getContainer:Q.any,visible:{type:Boolean,default:void 0},autoLock:ne(),didUpdate:Function},setup(e,n){let{slots:o}=n;const t=p(),r=p(),a=p(),E=p(1),y=g()&&document.createElement("div"),C=()=>{var i,l;t.value===y&&((l=(i=t.value)===null||i===void 0?void 0:i.parentNode)===null||l===void 0||l.removeChild(t.value)),t.value=null};let f=null;const h=function(){return(arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1)||t.value&&!t.value.parentNode?(f=F(e.getContainer),f?(f.appendChild(t.value),!0):!1):!0},S=()=>v?(t.value||(t.value=y,h(!0)),L(),t.value):null,L=()=>{const{wrapperClassName:i}=e;t.value&&i&&i!==t.value.className&&(t.value.className=i)};return Y(()=>{L(),h()}),ie(R(()=>e.autoLock&&e.visible&&g()&&(t.value===document.body||t.value===y))),q(()=>{let i=!1;X([()=>e.visible,()=>e.getContainer],(l,d)=>{let[w,u]=l,[A,O]=d;v&&(f=F(e.getContainer),f===document.body&&(w&&!A?m+=1:i&&(m-=1))),i&&(typeof u=="function"&&typeof O=="function"?u.toString()!==O.toString():u!==O)&&C(),i=!0},{immediate:!0,flush:"post"}),k(()=>{h()||(a.value=z(()=>{E.value+=1}))})}),J(()=>{const{visible:i}=e;v&&f===document.body&&(m=i&&m?m-1:m),C(),z.cancel(a.value)}),()=>{const{forceRender:i,visible:l}=e;let d=null;const w={getOpenCount:()=>m,getContainer:S};return E.value&&(i||l||r.value)&&(d=ee(te,{getContainer:S,ref:r,didUpdate:e.didUpdate},{default:()=>{var u;return(u=o.default)===null||u===void 0?void 0:u.call(o,w)}})),d}}}),Fe={BACKSPACE:8,TAB:9,ENTER:13,SHIFT:16,CTRL:17,ALT:18,CAPS_LOCK:20,ESC:27,SPACE:32,LEFT:37,UP:38,RIGHT:39,DOWN:40,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},se=e=>({animationDuration:e,animationFillMode:"both"}),le=e=>({animationDuration:e,animationFillMode:"both"}),ue=function(e,n,o,t){const a=(arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1)?"&":"";return{[` + ${a}${e}-enter, + ${a}${e}-appear + `]:c(c({},se(t)),{animationPlayState:"paused"}),[`${a}${e}-leave`]:c(c({},le(t)),{animationPlayState:"paused"}),[` + ${a}${e}-enter${e}-enter-active, + ${a}${e}-appear${e}-appear-active + `]:{animationName:n,animationPlayState:"running"},[`${a}${e}-leave${e}-leave-active`]:{animationName:o,animationPlayState:"running",pointerEvents:"none"}}},me=new s("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),ce=new s("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),I=new s("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),K=new s("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),fe=new s("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),de=new s("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),pe=new s("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),ve=new s("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}}),ge=new s("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),ye=new s("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}}),he=new s("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),we=new s("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}}),Oe={zoom:{inKeyframes:me,outKeyframes:ce},"zoom-big":{inKeyframes:I,outKeyframes:K},"zoom-big-fast":{inKeyframes:I,outKeyframes:K},"zoom-left":{inKeyframes:pe,outKeyframes:ve},"zoom-right":{inKeyframes:ge,outKeyframes:ye},"zoom-up":{inKeyframes:fe,outKeyframes:de},"zoom-down":{inKeyframes:he,outKeyframes:we}},Ie=(e,n)=>{const{antCls:o}=e,t=`${o}-${n}`,{inKeyframes:r,outKeyframes:a}=Oe[n];return[ue(t,r,a,n==="zoom-big-fast"?e.motionDurationFast:e.motionDurationMid),{[` + ${t}-enter, + ${t}-appear + `]:{transform:"scale(0)",opacity:0,animationTimingFunction:e.motionEaseOutCirc,"&-prepare":{transform:"none"}},[`${t}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]};export{Fe as K,Pe as P,Le as a,ze as b,oe as c,Se as d,Ne as e,ue as f,M as g,Ie as i,T as s,$e as t,me as z}; diff --git a/src/agentkit/server/static/index.html b/src/agentkit/server/static/index.html index 1cfb518..76bac81 100644 --- a/src/agentkit/server/static/index.html +++ b/src/agentkit/server/static/index.html @@ -5,7 +5,7 @@ Fischer AgentKit - + From 14f548b56a96c6b527d8e2494d913ec8e77cb93d Mon Sep 17 00:00:00 2001 From: chiguyong Date: Sat, 13 Jun 2026 03:01:31 +0800 Subject: [PATCH 09/12] docs: mark GUI redesign plan as completed All 7 implementation units (U1-U7) plus color migration audit are done. --- ...26-06-13-001-refactor-gui-redesign-plan.md | 417 ++++++++++++++++++ 1 file changed, 417 insertions(+) create mode 100644 docs/plans/2026-06-13-001-refactor-gui-redesign-plan.md diff --git a/docs/plans/2026-06-13-001-refactor-gui-redesign-plan.md b/docs/plans/2026-06-13-001-refactor-gui-redesign-plan.md new file mode 100644 index 0000000..d7914ea --- /dev/null +++ b/docs/plans/2026-06-13-001-refactor-gui-redesign-plan.md @@ -0,0 +1,417 @@ +--- +title: "refactor: Agent-First GUI Redesign" +status: completed +created: 2026-06-13 +origin: docs/brainstorms/2026-06-13-gui-redesign-requirements.md +--- + +# Plan: Agent-First GUI Redesign + +## Summary + +将 Fischer AgentKit GUI 从 SideNav 多页面布局重构为 Agent-First 四象限全屏布局,建立统一 Design Token 体系,采用浅色极简视觉风格。分 3 个迭代渐进式完成,每个迭代可独立部署。 + +## Problem Frame + +当前 GUI 处于"功能可用但视觉粗糙"状态:300 处硬编码颜色、无设计系统、SideNav 多页面布局无法同时展示 Agent 活动、无响应式支持。竞品(Devin/Cursor/v0.dev)已普遍采用 Agent-First 全屏布局 + 统一设计系统。 + +## Requirements Trace + +| R-ID | Requirement | Priority | +|------|-------------|----------| +| R1 | Design Token 体系 | P0 | +| R2 | Agent-First 全屏布局 | P0 | +| R3 | 对话面板重构 | P1 | +| R4 | 代码/预览面板 | P1 | +| R5 | 终端面板重构 | P1 | +| R6 | 状态/监控面板(进化精简) | P1 | +| R7 | 工作流单页化 | P2 | +| R8 | 设置分组化 | P2 | +| R9 | 过渡动画与微交互 | P2 | +| R10 | 响应式断点 | P2 | + +## Key Technical Decisions + +### KTD1: Design Token 双轨制 — CSS 变量 + Ant Design Theme Token + +**决策:** 同时建立 CSS 自定义属性(`var(--color-primary)`)和 Ant Design Vue ConfigProvider theme token,两者通过映射表保持同步。 + +**理由:** Ant Design Vue 4.x 的 CSS-in-JS 架构通过 `theme.token` 控制组件内部样式,但自定义组件和 ECharts 无法读取 antd token。CSS 变量作为通用层,antd token 作为组件层,映射表桥接两者。 + +### KTD2: 四象限布局实现 — CSS Grid + 可拖拽分隔线 + +**决策:** 使用 CSS Grid 实现四象限基础布局,自定义 `SplitPane` 组件实现可拖拽分隔线,比例持久化到 localStorage。 + +**理由:** CSS Grid 天然支持二维布局和 `fr` 单位,比 Flexbox 更适合四象限。自定义 SplitPane 比引入第三方库(如 splitpanes)更轻量,且可精确控制样式。 + +### KTD3: 路由策略 — 保留 Vue Router,页面切换变为象限内容切换 + +**决策:** 保留 Vue Router 但重构路由结构。顶级路由改为象限内容路由(`/chat`、`/code`、`/terminal`、`/monitor`),通过路由参数控制各象限显示内容。旧路由(`/workflow`、`/knowledge`、`/skills`、`/evolution`、`/settings`)重定向到新的象限路由。 + +**理由:** 保留路由可维持 URL 可访问性、浏览器前进/后退、深层链接。象限内容切换比整页跳转更流畅。 + +### KTD4: 视觉风格 — 浅色极简 + Vercel 式紫黑渐变 + +**决策:** 主背景白色/极浅灰,强调色使用紫黑渐变(`#7c3aed` → `#1e1b4b`),代码/终端区域使用深色背景(One Dark Pro 配色)。 + +**理由:** 用户选择浅色极简风格。Vercel/v0.dev 的紫黑渐变是成熟的浅色极简强调色方案,与白色背景形成强对比。 + +## Scope Boundaries + +### In Scope +- Design Token 体系建立 +- 四象限全屏布局重构 +- 所有现有功能迁移 +- 浅色极简视觉风格 +- 过渡动画和微交互 +- 1280px+ 响应式断点 + +### Deferred to Follow-Up Work +- 暗色模式(需 Design Token 暗色变体) +- 移动端适配 +- Computer Use 功能实现 +- Cmd+K 内联编辑 +- @-mention 上下文引用 +- 代码 Diff Accept/Reject 实际回滚 + +### Outside This Product's Identity +- 多用户协作/实时协同编辑 +- 插件市场 +- 代码编辑器(只读预览) + +--- + +## Implementation Units + +### U1. Design Token 体系 + 主题配置 + +**Goal:** 建立统一的设计令牌系统,消除所有硬编码颜色/间距/圆角值。 + +**Requirements:** R1 + +**Dependencies:** 无 + +**Files:** +- Create: `src/agentkit/server/frontend/src/styles/tokens.css` +- Create: `src/agentkit/server/frontend/src/styles/theme.ts` +- Create: `src/agentkit/server/frontend/src/styles/index.ts` +- Modify: `src/agentkit/server/frontend/src/App.vue` +- Modify: `src/agentkit/server/frontend/src/main.ts` + +**Approach:** +1. 创建 `tokens.css`,定义 CSS 自定义属性:颜色(primary/secondary/success/error/warning/灰阶/背景/边框)、间距(4/8/12/16/24/32px)、圆角(4/6/8/12px)、字体(12/13/14/16/20/24px)、阴影(sm/md/lg) +2. 创建 `theme.ts`,定义 Ant Design Vue theme token 映射(将 CSS 变量值映射到 antd token) +3. 在 `App.vue` 的 ConfigProvider 中注入 theme 配置 +4. 在 `main.ts` 中引入 `tokens.css` +5. 统一主色为 `#7c3aed`(紫黑渐变起始色),消除 `#1677ff`/`#1890ff` 混用 + +**Patterns to follow:** Ant Design Vue 4.x theme customization API (ConfigProvider theme prop) + +**Test scenarios:** +- 验证 CSS 变量在浏览器中正确计算(`getComputedStyle(document.documentElement).getPropertyValue('--color-primary')` 返回 `#7c3aed`) +- 验证 Ant Design 组件使用新主题色(Button primary 颜色为 `#7c3aed`) +- 验证自定义组件可通过 `var(--color-primary)` 引用主题色 + +**Verification:** 所有 CSS 变量可计算,Ant Design 组件使用新主题色,无硬编码 `#1677ff`/`#1890ff`。 + +--- + +### U2. 四象限全屏布局 + 顶部导航 + +**Goal:** 将 SideNav 多页面布局重构为四象限全屏布局,顶部极简导航栏。 + +**Requirements:** R2 + +**Dependencies:** U1 + +**Files:** +- Create: `src/agentkit/server/frontend/src/components/layout/AgentLayout.vue` +- Create: `src/agentkit/server/frontend/src/components/layout/SplitPane.vue` +- Create: `src/agentkit/server/frontend/src/components/layout/TopNav.vue` +- Create: `src/agentkit/server/frontend/src/components/layout/QuadrantPanel.vue` +- Modify: `src/agentkit/server/frontend/src/App.vue` +- Modify: `src/agentkit/server/frontend/src/router/index.ts` +- Preserve: `src/agentkit/server/frontend/src/components/layout/AppLayout.vue`(旧布局保留,路由切换) + +**Approach:** +1. 创建 `AgentLayout.vue`:CSS Grid 四象限布局,每个象限是一个 ``,支持折叠/展开 +2. 创建 `SplitPane.vue`:可拖拽分隔线组件,支持水平/垂直方向,比例持久化到 localStorage +3. 创建 `TopNav.vue`:48px 高度顶部导航栏,包含 Logo、任务选择器、Agent 状态指示、模式切换、设置入口 +4. 创建 `QuadrantPanel.vue`:象限容器组件,支持标题栏、折叠按钮、Tab 切换 +5. 修改路由:新增 `/agent` 路由使用 AgentLayout,旧路由保留 AppLayout 作为兼容 +6. 默认路由 `/` 重定向到 `/agent` + +**Patterns to follow:** Devin 四象限布局模式,CSS Grid `grid-template-rows/columns` + `fr` 单位 + +**Test scenarios:** +- 四象限正确渲染,各象限可独立折叠/展开 +- 分隔线可拖拽调整比例,刷新后比例保持 +- 顶部导航栏正确显示 Logo、状态指示、设置入口 +- 1280px 以下右下象限自动折叠 + +**Verification:** 四象限布局可交互,分隔线可拖拽,比例持久化,响应式断点生效。 + +--- + +### U3. 对话面板重构(左上象限) + +**Goal:** 将 ChatView 重构为对话面板,支持 Markdown 渲染和工具调用指示器。 + +**Requirements:** R3 + +**Dependencies:** U1, U2 + +**Files:** +- Modify: `src/agentkit/server/frontend/src/views/ChatView.vue` +- Modify: `src/agentkit/server/frontend/src/components/chat/ChatMessage.vue` +- Modify: `src/agentkit/server/frontend/src/components/chat/ChatInput.vue` +- Modify: `src/agentkit/server/frontend/src/components/chat/ChatSidebar.vue` +- Create: `src/agentkit/server/frontend/src/components/chat/ToolCallIndicator.vue` +- Create: `src/agentkit/server/frontend/src/components/chat/ContextPill.vue` + +**Approach:** +1. ChatMessage:替换 `v-html` 为 Markdown 渲染(使用 `markdown-it` 或 `marked`),添加工具调用指示器(`[Read]`/`[Edit]`/`[Bash]` 彩色标签) +2. ChatInput:添加上下文胶囊(Context Pills),显示当前关联的文件/技能 +3. ChatSidebar:改为可折叠侧栏,默认折叠 +4. 流式输出添加打字机效果 +5. 所有硬编码颜色替换为 Design Token 引用 + +**Patterns to follow:** Claude Code 的 Tool Use Indicators,Trae 的 Context Pills + +**Test scenarios:** +- Markdown 正确渲染(标题、代码块、列表、链接) +- 工具调用指示器正确显示类型和颜色 +- 上下文胶囊显示关联文件名 +- 流式输出打字机效果平滑 + +**Verification:** 对话面板功能完整,Markdown 渲染正确,工具调用可视化,无 `v-html`。 + +--- + +### U4. 代码/预览面板(右上象限) + +**Goal:** 新增代码 Diff 查看和文件预览能力,集成工作流画布和知识库管理。 + +**Requirements:** R4, R7 + +**Dependencies:** U1, U2 + +**Files:** +- Create: `src/agentkit/server/frontend/src/components/code/CodeDiffViewer.vue` +- Create: `src/agentkit/server/frontend/src/components/code/FileTree.vue` +- Modify: `src/agentkit/server/frontend/src/views/WorkflowView.vue`(单页化) +- Modify: `src/agentkit/server/frontend/src/views/KnowledgeBaseView.vue` +- Modify: `src/agentkit/server/frontend/src/components/workflow/FlowCanvas.vue` +- Modify: `src/agentkit/server/frontend/src/components/workflow/NodePalette.vue` +- Modify: `src/agentkit/server/frontend/src/components/workflow/PropertyPanel.vue` + +**Approach:** +1. 创建 `CodeDiffViewer.vue`:只读代码 Diff 展示,支持逐行高亮(红/绿),语法高亮 +2. 创建 `FileTree.vue`:文件树浏览器,展示 Agent 修改的文件列表 +3. 工作流单页化:列表和编辑在同一象限内通过 Tab 切换 +4. 知识库管理集成为此象限的一个 Tab +5. 象限 Tab 切换:代码 / 工作流 / 知识库 +6. 所有硬编码颜色替换为 Design Token + +**Patterns to follow:** Cursor Composer 的 Diff 展示,v0.dev 的 Tab 切换 + +**Test scenarios:** +- 代码 Diff 正确高亮删除/新增行 +- 文件树正确展示文件结构 +- 工作流列表/编辑 Tab 切换流畅 +- 知识库 Tab 正常工作 +- 象限 Tab 切换无闪烁 + +**Verification:** 右上象限支持三种内容切换,代码 Diff 可视化,工作流单页化完成。 + +--- + +### U5. 终端面板重构(左下象限) + +**Goal:** 将 TerminalView 重构为终端面板,使用 Ant Design 组件替代原生 HTML。 + +**Requirements:** R5 + +**Dependencies:** U1, U2 + +**Files:** +- Modify: `src/agentkit/server/frontend/src/views/TerminalView.vue` +- Modify: `src/agentkit/server/frontend/src/components/terminal/TerminalEmulator.vue` +- Modify: `src/agentkit/server/frontend/src/components/terminal/CommandHistory.vue` + +**Approach:** +1. 终端背景改为 One Dark Pro 配色(深色背景 + 语法高亮色) +2. 命令确认弹窗从原生 HTML 改为 Ant Design Modal +3. 命令历史侧栏改为可折叠 +4. 输入框从原生 `` 改为 Ant Design Input +5. 所有硬编码颜色替换为 Design Token + +**Patterns to follow:** One Dark Pro 终端配色,Ant Design Modal 组件 + +**Test scenarios:** +- 终端输出 ANSI 颜色正确渲染 +- 命令确认弹窗使用 Ant Design Modal 样式 +- 命令历史可折叠展开 +- WebSocket 连接/断开正常 + +**Verification:** 终端面板视觉统一,无原生 HTML 弹窗,One Dark Pro 配色生效。 + +--- + +### U6. 状态/监控面板(右下象限)+ 进化精简 + +**Goal:** 将 EvolutionView 精简后集成为右下象限,集成技能和设置。 + +**Requirements:** R6, R8 + +**Dependencies:** U1, U2 + +**Files:** +- Modify: `src/agentkit/server/frontend/src/views/EvolutionView.vue` +- Modify: `src/agentkit/server/frontend/src/components/evolution/DashboardOverview.vue` +- Modify: `src/agentkit/server/frontend/src/components/evolution/MetricsChart.vue` +- Modify: `src/agentkit/server/frontend/src/components/evolution/UsagePanel.vue` +- Modify: `src/agentkit/server/frontend/src/views/SkillsView.vue` +- Modify: `src/agentkit/server/frontend/src/views/SettingsView.vue` +- Delete: `src/agentkit/server/frontend/src/components/evolution/PitfallRoutePanel.vue` +- Delete: `src/agentkit/server/frontend/src/components/evolution/OptimizationPanel.vue` +- Delete: `src/agentkit/server/frontend/src/components/evolution/MetricsPanel.vue` +- Delete: `src/agentkit/server/frontend/src/components/evolution/ExperiencePanel.vue` + +**Approach:** +1. 进化面板精简:6 个子面板合并为 3 个 Tab — 概览+指标、经验+坑点、用量 +2. DashboardOverview:4 列统计卡片改为 2 列,增加趋势迷你图 +3. 设置分组化:4 个 Tab(LLM/技能/知识库/系统),每组独立保存 +4. 象限 Tab 切换:监控 / 技能 / 设置 +5. 删除不再需要的包装组件(PitfallRoutePanel/OptimizationPanel/MetricsPanel/ExperiencePanel) +6. 所有硬编码颜色替换为 Design Token + +**Patterns to follow:** Devin 的 Action Timeline,Ant Design Tabs 分组 + +**Test scenarios:** +- 进化概览+指标 Tab 正确展示 +- 经验+坑点 Tab 合并后功能完整 +- 设置分组 Tab 切换正常,每组独立保存 +- 技能 Tab 正常展示和安装 + +**Verification:** 右下象限支持三种内容切换,进化面板精简完成,设置分组化完成。 + +--- + +### U7. 过渡动画 + 微交互 + 响应式 + +**Goal:** 为所有交互添加过渡动画,实现 1280px+ 响应式断点。 + +**Requirements:** R9, R10 + +**Dependencies:** U1, U2, U3, U4, U5, U6 + +**Files:** +- Create: `src/agentkit/server/frontend/src/styles/transitions.css` +- Create: `src/agentkit/server/frontend/src/styles/responsive.css` +- Modify: `src/agentkit/server/frontend/src/components/layout/AgentLayout.vue` +- Modify: all view and component files (transition additions) + +**Approach:** +1. 创建 `transitions.css`:定义 Vue transition 类(fade/slide/collapse/stagger),统一时长(150ms/200ms/300ms) +2. 象限折叠/展开:平滑过渡 200ms ease +3. Tab 切换:淡入淡出 150ms +4. 列表项加载:交错渐入 stagger 50ms +5. 空状态:品牌化插图 + 引导文案(替代 ``) +6. 加载态:骨架屏替代 `` +7. 创建 `responsive.css`:定义断点(≥1440px 四象限完整,1280-1440px 右下折叠,<1280px 提示) +8. 象限比例记忆:localStorage 保存用户调整的比例 + +**Patterns to follow:** Vue `` 组件,CSS `@media` 断点 + +**Test scenarios:** +- 象限折叠/展开动画平滑无卡顿 +- Tab 切换淡入淡出效果正确 +- 列表项交错渐入效果 +- 1440px+ 四象限完整展示 +- 1280-1440px 右下象限自动折叠 +- <1280px 显示提示信息 +- 刷新后象限比例保持 + +**Verification:** 所有过渡动画生效,响应式断点正确,比例持久化。 + +--- + +## High-Level Technical Design + +### 四象限布局架构 + +``` +┌─────────────────────────────────────────────────────────┐ +│ TopNav (48px) │ +│ [Logo] [TaskSelector] [AgentStatus] [ModeToggle] [⚙] │ +├──────────────────────────┬──────────────────────────────┤ +│ │ │ +│ QuadrantPanel │ QuadrantPanel │ +│ position="top-left" │ position="top-right" │ +│ ┌─ Tabs ────────────┐ │ ┌─ Tabs ────────────────┐ │ +│ │ Chat (default) │ │ │ Code/Diff (default) │ │ +│ │ Agent Log │ │ │ Workflow │ │ +│ └────────────────────┘ │ │ Knowledge Base │ │ +│ │ └────────────────────────┘ │ +│ ← SplitPane (vertical) →│ │ +├──────────────────────────┼──────────────────────────────┤ +│ │ │ +│ QuadrantPanel │ QuadrantPanel │ +│ position="bottom-left" │ position="bottom-right" │ +│ ┌─ Tabs ────────────┐ │ ┌─ Tabs ────────────────┐ │ +│ │ Terminal (default) │ │ │ Monitor (default) │ │ +│ │ Command History │ │ │ Skills │ │ +│ └────────────────────┘ │ │ Settings │ │ +│ │ └────────────────────────┘ │ +└──────────────────────────┴──────────────────────────────┘ +``` + +### Design Token 映射架构 + +``` +tokens.css (CSS Custom Properties) + │ + ├─→ 自定义组件 (via var(--xxx)) + │ + └─→ theme.ts (Ant Design Theme Token Mapping) + │ + └─→ ConfigProvider :theme + │ + └─→ Ant Design 组件 (via CSS-in-JS) +``` + +### 路由重构 + +``` +/ → /agent (AgentLayout) + /agent/chat → 左上象限显示 Chat + /agent/code → 右上象限显示 Code/Diff + /agent/terminal → 左下象限显示 Terminal + /agent/monitor → 右下象限显示 Monitor + +旧路由兼容: + /workflow → /agent/code?tab=workflow + /knowledge → /agent/code?tab=knowledge + /skills → /agent/monitor?tab=skills + /evolution → /agent/monitor?tab=monitor + /settings → /agent/monitor?tab=settings + /terminal → /agent/terminal +``` + +--- + +## Risks & Mitigations + +| Risk | Impact | Mitigation | +|------|--------|------------| +| 300 处硬编码颜色迁移遗漏 | 视觉不一致 | U1 完成后全局搜索 `#[0-9a-fA-F]{3,6}` 验证零残留 | +| Vue Flow 在象限内 resize 问题 | 画布渲染异常 | SplitPane 拖拽结束时触发 window resize 事件 | +| ECharts 颜色需单独处理 | 图表颜色不跟随主题 | 在 ECharts 初始化时从 CSS 变量读取颜色 | +| 大型组件迁移引入回归 | 功能损坏 | 每个单元完成后运行现有测试 + 手动验证 | +| 四象限布局在小屏幕下体验差 | 不可用 | R10 响应式断点确保 1280px+ 可用 | + +## Open Questions + +- Code Diff Viewer 是否需要引入第三方库(如 diff2html)还是手写简单 diff 展示?→ 建议先用简单行级高亮,后续迭代引入 diff2html +- 骨架屏组件是自建还是使用 Ant Design Vue 的 Skeleton?→ 建议使用 antd Skeleton,减少维护成本 From f4e454b7278c054d576db2c7cb9ac8a4f81a9577 Mon Sep 17 00:00:00 2001 From: chiguyong Date: Sat, 13 Jun 2026 09:50:56 +0800 Subject: [PATCH 10/12] fix(review): address code review findings - QuadrantPanel: persist activeTab and collapsed state to localStorage via watch - TopNav: remove v-if="false" dead code for TaskSelector, remove unused ASelect import - SplitPane: add null guard before containerRef.value access in onMouseDown - Router: fix /agent/code route loading ChatView instead of WorkflowView - Router: add default redirect for /legacy to /legacy/chat --- .../frontend/src/components/layout/QuadrantPanel.vue | 12 ++++++++++-- .../frontend/src/components/layout/SplitPane.vue | 5 +++-- .../server/frontend/src/components/layout/TopNav.vue | 11 +---------- src/agentkit/server/frontend/src/router/index.ts | 6 +++++- .../server/static/assets/AgentLayout-4LUhAboc.css | 1 - .../server/static/assets/AgentLayout-BTmu8UQm.js | 1 - .../server/static/assets/AgentLayout-C3jirk5z.js | 1 + .../server/static/assets/AgentLayout-CFKQRBqo.css | 1 + .../{AppLayout-ChVEHFqE.js => AppLayout-BSXe3ZUc.js} | 2 +- ...ined-BuRUmkq3.js => AppstoreOutlined-fAjHecyI.js} | 2 +- .../{ChatView-BQlsnIIs.js => ChatView-VBSqbtQ5.js} | 2 +- .../{Checkbox-C1b034xJ.js => Checkbox-BKRvy9FI.js} | 2 +- ...eView-CNxrLPiM.js => ComputerUseView-CW9s7NtE.js} | 2 +- ...tlined-BPP2kbR8.js => DeleteOutlined-BZTTXnow.js} | 2 +- ...lined-CoQCwQyg.js => DesktopOutlined-DajX3wuP.js} | 2 +- .../{Dropdown-BUKifQVF.js => Dropdown-XbNR4d_F.js} | 4 ++-- ...ionView-BhOD-ngQ.js => EvolutionView-Bf98iUCx.js} | 2 +- ...ed-DV9WKc_3.js => FolderOpenOutlined-DjFpnogK.js} | 2 +- ...ntext-D_7H_KA_.js => FormItemContext-C7YeCp9s.js} | 2 +- ...iew-DM5c3M3U.js => KnowledgeBaseView-DF8sIvYT.js} | 2 +- ...Outlined-CXpCfAZF.js => LeftOutlined-CBUjbbRo.js} | 2 +- ...lined-CL42n2eQ.js => SettingOutlined-BgDlD6Oj.js} | 2 +- ...ingsView-C1a5n3Uj.js => SettingsView-CNi_QVj1.js} | 2 +- ...SkillsView-q_2-8csR.js => SkillsView-vANXhvRv.js} | 2 +- ...inalView-BibxhXp4.js => TerminalView-B49qvo-w.js} | 2 +- ...Outlined-BMs4GNfR.js => UserOutlined-CvCrh-WB.js} | 2 +- ...flowView-D3Pe6eXM.js => WorkflowView-Dv5wD9j5.js} | 2 +- ...7-XR.js => _plugin-vue_export-helper-Da7nhmaa.js} | 2 +- .../assets/{base-B4siOKZE.js => base-DPp00EV9.js} | 2 +- .../assets/{chat-dMZvRo2f.js => chat-pmO9UsHL.js} | 2 +- src/agentkit/server/static/assets/index-3crJqV8H.js | 1 - .../assets/{index-B5q-1V92.js => index-BEjLgAar.js} | 2 +- src/agentkit/server/static/assets/index-BMkziFFN.js | 1 - .../assets/{index-BLB5C8KY.js => index-Bh3tEcch.js} | 2 +- .../assets/{index-CIzBtwkp.js => index-C60lOYOg.js} | 2 +- .../assets/{index-DJ0mAqy8.js => index-CWabtNoR.js} | 2 +- .../assets/{index-CIdKTsyN.js => index-D4-AezQY.js} | 4 ++-- .../assets/{index-Da8dBU05.js => index-D4egOf7T.js} | 6 +++--- .../assets/{index-DBR_iMr9.js => index-DDQQQHWy.js} | 2 +- .../assets/{index-Cec7QIaL.js => index-Dd95JYlE.js} | 2 +- .../assets/{index-CzM1ezFC.js => index-DoEPe2JM.js} | 2 +- src/agentkit/server/static/assets/index-DuhbuVXy.js | 1 + src/agentkit/server/static/assets/index-DwzKHBT7.js | 1 + .../assets/{index-D6JhFblJ.js => index-KxFPh2gJ.js} | 2 +- .../assets/{index-DaJ9bCD1.js => index-RLKibtJr.js} | 2 +- .../assets/{index-Dr_Qcbdk.js => index-YXX8X6VB.js} | 2 +- src/agentkit/server/static/assets/index-fKiBikrc.js | 1 + .../assets/{index-CuVGmFKn.js => index-gcNyH-By.js} | 4 ++-- .../assets/{index-Ci55MVrK.js => index-gqpFY6Qt.js} | 4 ++-- .../assets/{index-CKNOcsSD.js => index-ldpn1699.js} | 4 ++-- src/agentkit/server/static/assets/index-yRXoO2C0.js | 1 - .../{pickAttrs-Crnv5AEc.js => pickAttrs-Ko_UXWn6.js} | 2 +- .../static/assets/responsiveObserve-CDxZiPRN.js | 1 - .../static/assets/responsiveObserve-CWMCg4ra.js | 1 + ...eChecker-CUnokkun.js => styleChecker-B3mut-jB.js} | 2 +- .../assets/{zoom-C2fVs05p.js => zoom-BFNOWbJv.js} | 4 ++-- src/agentkit/server/static/index.html | 2 +- 57 files changed, 74 insertions(+), 70 deletions(-) delete mode 100644 src/agentkit/server/static/assets/AgentLayout-4LUhAboc.css delete mode 100644 src/agentkit/server/static/assets/AgentLayout-BTmu8UQm.js create mode 100644 src/agentkit/server/static/assets/AgentLayout-C3jirk5z.js create mode 100644 src/agentkit/server/static/assets/AgentLayout-CFKQRBqo.css rename src/agentkit/server/static/assets/{AppLayout-ChVEHFqE.js => AppLayout-BSXe3ZUc.js} (79%) rename src/agentkit/server/static/assets/{AppstoreOutlined-BuRUmkq3.js => AppstoreOutlined-fAjHecyI.js} (95%) rename src/agentkit/server/static/assets/{ChatView-BQlsnIIs.js => ChatView-VBSqbtQ5.js} (99%) rename src/agentkit/server/static/assets/{Checkbox-C1b034xJ.js => Checkbox-BKRvy9FI.js} (72%) rename src/agentkit/server/static/assets/{ComputerUseView-CNxrLPiM.js => ComputerUseView-CW9s7NtE.js} (99%) rename src/agentkit/server/static/assets/{DeleteOutlined-BPP2kbR8.js => DeleteOutlined-BZTTXnow.js} (99%) rename src/agentkit/server/static/assets/{DesktopOutlined-CoQCwQyg.js => DesktopOutlined-DajX3wuP.js} (93%) rename src/agentkit/server/static/assets/{Dropdown-BUKifQVF.js => Dropdown-XbNR4d_F.js} (98%) rename src/agentkit/server/static/assets/{EvolutionView-BhOD-ngQ.js => EvolutionView-Bf98iUCx.js} (99%) rename src/agentkit/server/static/assets/{FolderOpenOutlined-DV9WKc_3.js => FolderOpenOutlined-DjFpnogK.js} (92%) rename src/agentkit/server/static/assets/{FormItemContext-D_7H_KA_.js => FormItemContext-C7YeCp9s.js} (84%) rename src/agentkit/server/static/assets/{KnowledgeBaseView-DM5c3M3U.js => KnowledgeBaseView-DF8sIvYT.js} (97%) rename src/agentkit/server/static/assets/{LeftOutlined-CXpCfAZF.js => LeftOutlined-CBUjbbRo.js} (96%) rename src/agentkit/server/static/assets/{SettingOutlined-CL42n2eQ.js => SettingOutlined-BgDlD6Oj.js} (98%) rename src/agentkit/server/static/assets/{SettingsView-C1a5n3Uj.js => SettingsView-CNi_QVj1.js} (94%) rename src/agentkit/server/static/assets/{SkillsView-q_2-8csR.js => SkillsView-vANXhvRv.js} (96%) rename src/agentkit/server/static/assets/{TerminalView-BibxhXp4.js => TerminalView-B49qvo-w.js} (77%) rename src/agentkit/server/static/assets/{UserOutlined-BMs4GNfR.js => UserOutlined-CvCrh-WB.js} (97%) rename src/agentkit/server/static/assets/{WorkflowView-D3Pe6eXM.js => WorkflowView-Dv5wD9j5.js} (99%) rename src/agentkit/server/static/assets/{_plugin-vue_export-helper-CBXJ7-XR.js => _plugin-vue_export-helper-Da7nhmaa.js} (98%) rename src/agentkit/server/static/assets/{base-B4siOKZE.js => base-DPp00EV9.js} (98%) rename src/agentkit/server/static/assets/{chat-dMZvRo2f.js => chat-pmO9UsHL.js} (98%) delete mode 100644 src/agentkit/server/static/assets/index-3crJqV8H.js rename src/agentkit/server/static/assets/{index-B5q-1V92.js => index-BEjLgAar.js} (98%) delete mode 100644 src/agentkit/server/static/assets/index-BMkziFFN.js rename src/agentkit/server/static/assets/{index-BLB5C8KY.js => index-Bh3tEcch.js} (97%) rename src/agentkit/server/static/assets/{index-CIzBtwkp.js => index-C60lOYOg.js} (97%) rename src/agentkit/server/static/assets/{index-DJ0mAqy8.js => index-CWabtNoR.js} (83%) rename src/agentkit/server/static/assets/{index-CIdKTsyN.js => index-D4-AezQY.js} (71%) rename src/agentkit/server/static/assets/{index-Da8dBU05.js => index-D4egOf7T.js} (87%) rename src/agentkit/server/static/assets/{index-DBR_iMr9.js => index-DDQQQHWy.js} (97%) rename src/agentkit/server/static/assets/{index-Cec7QIaL.js => index-Dd95JYlE.js} (98%) rename src/agentkit/server/static/assets/{index-CzM1ezFC.js => index-DoEPe2JM.js} (63%) create mode 100644 src/agentkit/server/static/assets/index-DuhbuVXy.js create mode 100644 src/agentkit/server/static/assets/index-DwzKHBT7.js rename src/agentkit/server/static/assets/{index-D6JhFblJ.js => index-KxFPh2gJ.js} (98%) rename src/agentkit/server/static/assets/{index-DaJ9bCD1.js => index-RLKibtJr.js} (83%) rename src/agentkit/server/static/assets/{index-Dr_Qcbdk.js => index-YXX8X6VB.js} (93%) create mode 100644 src/agentkit/server/static/assets/index-fKiBikrc.js rename src/agentkit/server/static/assets/{index-CuVGmFKn.js => index-gcNyH-By.js} (94%) rename src/agentkit/server/static/assets/{index-Ci55MVrK.js => index-gqpFY6Qt.js} (97%) rename src/agentkit/server/static/assets/{index-CKNOcsSD.js => index-ldpn1699.js} (71%) delete mode 100644 src/agentkit/server/static/assets/index-yRXoO2C0.js rename src/agentkit/server/static/assets/{pickAttrs-Crnv5AEc.js => pickAttrs-Ko_UXWn6.js} (97%) delete mode 100644 src/agentkit/server/static/assets/responsiveObserve-CDxZiPRN.js create mode 100644 src/agentkit/server/static/assets/responsiveObserve-CWMCg4ra.js rename src/agentkit/server/static/assets/{styleChecker-CUnokkun.js => styleChecker-B3mut-jB.js} (92%) rename src/agentkit/server/static/assets/{zoom-C2fVs05p.js => zoom-BFNOWbJv.js} (90%) diff --git a/src/agentkit/server/frontend/src/components/layout/QuadrantPanel.vue b/src/agentkit/server/frontend/src/components/layout/QuadrantPanel.vue index 84887f7..5d255c5 100644 --- a/src/agentkit/server/frontend/src/components/layout/QuadrantPanel.vue +++ b/src/agentkit/server/frontend/src/components/layout/QuadrantPanel.vue @@ -30,7 +30,7 @@