From 4c53dbaaebabbce453793b715dca5bf79382b37a Mon Sep 17 00:00:00 2001 From: chiguyong Date: Sat, 13 Jun 2026 10:48:06 +0800 Subject: [PATCH] =?UTF-8?q?fix(gui):=20=E4=BF=AE=E5=A4=8D=E5=AF=B9?= =?UTF-8?q?=E8=AF=9D=E4=B8=8A=E4=B8=8B=E6=96=87=E6=B3=A8=E5=85=A5=E3=80=81?= =?UTF-8?q?=E8=BE=93=E5=85=A5=E6=A1=86=E6=B8=85=E7=A9=BA=E3=80=81=E5=AF=B9?= =?UTF-8?q?=E9=BD=90=E5=8F=8A=E5=B7=A5=E4=BD=9C=E6=B5=81=E7=A9=BA=E7=8A=B6?= =?UTF-8?q?=E6=80=81=E5=B1=85=E4=B8=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - portal.py: greeting/general 路径注入最近 20 条历史消息,解决对话记忆不连贯 - ChatInput.vue: 移除 disabled 提前 return,确保提交后清空输入框 - ChatInput.vue: textarea 设置 min-height: 40px,与按钮对齐 - WorkflowView.vue: 空状态 a-empty 垂直水平居中 - chat.ts: sendWsMessage 先检查 WS 状态避免重复消息 - types.ts: WsServerMessage 类型匹配后端嵌套 data 结构 - vite.config.ts: 代理添加 ws: true 支持 WebSocket - portal.py/terminal.py: WebSocket accept 顺序修复 --- src/agentkit/server/frontend/src/api/types.ts | 9 +-- .../src/components/chat/ChatInput.vue | 11 +++- .../server/frontend/src/stores/chat.ts | 59 ++++++++++++++----- .../frontend/src/views/WorkflowView.vue | 23 +++++++- src/agentkit/server/frontend/vite.config.ts | 1 + src/agentkit/server/routes/portal.py | 27 +++++++-- src/agentkit/server/routes/terminal.py | 50 +++++++++++----- ...ut-CtYJ1_b1.js => AgentLayout-BjfWaflq.js} | 4 +- ...yout-CVkEttfS.js => AppLayout-C9PVB9qY.js} | 2 +- ...IhpVp5.js => AppstoreOutlined-CK96XqwQ.js} | 2 +- ...tView-DA2wPu1A.js => ChatView-CBFvpIso.js} | 4 +- ...iew-DGuMaiL8.css => ChatView-CFmQzkwB.css} | 2 +- ...ckbox-CGUdikGP.js => Checkbox-r-colYvs.js} | 2 +- ...slO-Pem.js => ComputerUseView-BABiOncW.js} | 2 +- ...C9vx5Gyj.js => DeleteOutlined-CclyZH8N.js} | 2 +- ...lGl-80a.js => DesktopOutlined-B5tFIirw.js} | 2 +- ...pdown-BfmL-5TH.js => Dropdown-EJ9XzwSc.js} | 2 +- ...-Knd2v7RU.js => EvolutionView-BcrIraMF.js} | 2 +- ...nsHZ.js => FolderOpenOutlined-DkHI-22a.js} | 2 +- ...7duC9vx.js => FormItemContext-CIZixMRP.js} | 2 +- ...h4rdM.js => KnowledgeBaseView-DFe-BwZs.js} | 2 +- ...d-Cjp7xl2E.js => LeftOutlined-CAv2mg6T.js} | 2 +- ...d-BZYJdEGN.js => PlusOutlined-CMd58dlX.js} | 2 +- ...1U74h0J.js => SettingOutlined-BPSWwgov.js} | 2 +- ...w-wpl4DuIA.js => SettingsView-DTyyjurU.js} | 2 +- ...iew-TRawAwRE.js => SkillsView-Cw0mKely.js} | 2 +- ...w-CWX3TF8I.js => TerminalView-CVh893sy.js} | 2 +- ...d-C607Q7TU.js => UserOutlined-3o_0Hvh7.js} | 2 +- ...D_CnUZD8.css => WorkflowView-CkW9lcI4.css} | 2 +- ...w-BhS6yKYX.js => WorkflowView-DBRRErEj.js} | 4 +- ... => _plugin-vue_export-helper-CbNEYfqg.js} | 2 +- .../{base-BzUb4EcV.js => base--VGJiuPH.js} | 2 +- .../server/static/assets/chat-DurNpMLt.js | 1 - .../server/static/assets/chat-_tit2gm5.js | 1 + .../{index-CQzZ-h-2.js => index-0ftJ_VhH.js} | 2 +- .../{index-Bw7-qyYZ.js => index-6F6eWDOC.js} | 2 +- .../{index-BMDKnjoj.js => index-BaJrEU40.js} | 2 +- .../{index-B9Cq1xD6.js => index-BjhFFLnY.js} | 2 +- .../{index-DBNRwHot.js => index-BsO-BQWw.js} | 2 +- .../{index-DQ-PTKeR.js => index-BzwcKMhL.js} | 2 +- .../{index-zQkkOnqV.js => index-C-JDvA85.js} | 2 +- .../{index-CPf0IATs.js => index-CIqRW9zM.js} | 2 +- .../{index-DWEEelzT.js => index-CUHLv4kD.js} | 2 +- .../{index-Bhzy1-DW.js => index-Cm4StDv9.js} | 2 +- .../{index-Bm5ZpeOU.js => index-CpcJSnGu.js} | 2 +- .../{index-CivBWDtQ.js => index-Cvavw3q5.js} | 2 +- .../{index-Chz7LVBG.js => index-DVAHMIEx.js} | 2 +- .../{index-CUxjTFZM.js => index-DfYN6Ir9.js} | 2 +- .../{index-DS4F546Z.js => index-DuQZmgYZ.js} | 2 +- .../{index-DUKU9Yum.js => index-DzzgX9TA.js} | 2 +- .../{index-Cdm90D30.js => index-MxXYiP1e.js} | 4 +- .../{index-B8imcus9.js => index-coNRyS0Q.js} | 2 +- .../{index-DlUg5G7X.js => index-p0fEGd1V.js} | 2 +- ...ttrs-cDcy8MZ0.js => pickAttrs-CdccUdli.js} | 2 +- ...5mRNR.js => responsiveObserve-BPXXLIQF.js} | 2 +- ...r-DuXayfgz.js => styleChecker-BO8K1F6-.js} | 2 +- .../{zoom-DFzZ47uz.js => zoom-BTwsIXn4.js} | 2 +- src/agentkit/server/static/index.html | 2 +- 58 files changed, 194 insertions(+), 94 deletions(-) rename src/agentkit/server/static/assets/{AgentLayout-CtYJ1_b1.js => AgentLayout-BjfWaflq.js} (83%) rename src/agentkit/server/static/assets/{AppLayout-CVkEttfS.js => AppLayout-C9PVB9qY.js} (94%) rename src/agentkit/server/static/assets/{AppstoreOutlined-D2IhpVp5.js => AppstoreOutlined-CK96XqwQ.js} (95%) rename src/agentkit/server/static/assets/{ChatView-DA2wPu1A.js => ChatView-CBFvpIso.js} (97%) rename src/agentkit/server/static/assets/{ChatView-DGuMaiL8.css => ChatView-CFmQzkwB.css} (77%) rename src/agentkit/server/static/assets/{Checkbox-CGUdikGP.js => Checkbox-r-colYvs.js} (94%) rename src/agentkit/server/static/assets/{ComputerUseView-BslO-Pem.js => ComputerUseView-BABiOncW.js} (99%) rename src/agentkit/server/static/assets/{DeleteOutlined-C9vx5Gyj.js => DeleteOutlined-CclyZH8N.js} (99%) rename src/agentkit/server/static/assets/{DesktopOutlined-ClGl-80a.js => DesktopOutlined-B5tFIirw.js} (93%) rename src/agentkit/server/static/assets/{Dropdown-BfmL-5TH.js => Dropdown-EJ9XzwSc.js} (99%) rename src/agentkit/server/static/assets/{EvolutionView-Knd2v7RU.js => EvolutionView-BcrIraMF.js} (99%) rename src/agentkit/server/static/assets/{FolderOpenOutlined-aJTansHZ.js => FolderOpenOutlined-DkHI-22a.js} (92%) rename src/agentkit/server/static/assets/{FormItemContext-C7duC9vx.js => FormItemContext-CIZixMRP.js} (89%) rename src/agentkit/server/static/assets/{KnowledgeBaseView-B2lh4rdM.js => KnowledgeBaseView-DFe-BwZs.js} (98%) rename src/agentkit/server/static/assets/{LeftOutlined-Cjp7xl2E.js => LeftOutlined-CAv2mg6T.js} (96%) rename src/agentkit/server/static/assets/{PlusOutlined-BZYJdEGN.js => PlusOutlined-CMd58dlX.js} (93%) rename src/agentkit/server/static/assets/{SettingOutlined-B1U74h0J.js => SettingOutlined-BPSWwgov.js} (98%) rename src/agentkit/server/static/assets/{SettingsView-wpl4DuIA.js => SettingsView-DTyyjurU.js} (95%) rename src/agentkit/server/static/assets/{SkillsView-TRawAwRE.js => SkillsView-Cw0mKely.js} (96%) rename src/agentkit/server/static/assets/{TerminalView-CWX3TF8I.js => TerminalView-CVh893sy.js} (95%) rename src/agentkit/server/static/assets/{UserOutlined-C607Q7TU.js => UserOutlined-3o_0Hvh7.js} (97%) rename src/agentkit/server/static/assets/{WorkflowView-D_CnUZD8.css => WorkflowView-CkW9lcI4.css} (89%) rename src/agentkit/server/static/assets/{WorkflowView-BhS6yKYX.js => WorkflowView-DBRRErEj.js} (94%) rename src/agentkit/server/static/assets/{_plugin-vue_export-helper-BpJgGuqH.js => _plugin-vue_export-helper-CbNEYfqg.js} (98%) rename src/agentkit/server/static/assets/{base-BzUb4EcV.js => base--VGJiuPH.js} (98%) delete mode 100644 src/agentkit/server/static/assets/chat-DurNpMLt.js create mode 100644 src/agentkit/server/static/assets/chat-_tit2gm5.js rename src/agentkit/server/static/assets/{index-CQzZ-h-2.js => index-0ftJ_VhH.js} (97%) rename src/agentkit/server/static/assets/{index-Bw7-qyYZ.js => index-6F6eWDOC.js} (99%) rename src/agentkit/server/static/assets/{index-BMDKnjoj.js => index-BaJrEU40.js} (91%) rename src/agentkit/server/static/assets/{index-B9Cq1xD6.js => index-BjhFFLnY.js} (98%) rename src/agentkit/server/static/assets/{index-DBNRwHot.js => index-BsO-BQWw.js} (97%) rename src/agentkit/server/static/assets/{index-DQ-PTKeR.js => index-BzwcKMhL.js} (87%) rename src/agentkit/server/static/assets/{index-zQkkOnqV.js => index-C-JDvA85.js} (99%) rename src/agentkit/server/static/assets/{index-CPf0IATs.js => index-CIqRW9zM.js} (97%) rename src/agentkit/server/static/assets/{index-DWEEelzT.js => index-CUHLv4kD.js} (98%) rename src/agentkit/server/static/assets/{index-Bhzy1-DW.js => index-Cm4StDv9.js} (98%) rename src/agentkit/server/static/assets/{index-Bm5ZpeOU.js => index-CpcJSnGu.js} (98%) rename src/agentkit/server/static/assets/{index-CivBWDtQ.js => index-Cvavw3q5.js} (99%) rename src/agentkit/server/static/assets/{index-Chz7LVBG.js => index-DVAHMIEx.js} (98%) rename src/agentkit/server/static/assets/{index-CUxjTFZM.js => index-DfYN6Ir9.js} (98%) rename src/agentkit/server/static/assets/{index-DS4F546Z.js => index-DuQZmgYZ.js} (90%) rename src/agentkit/server/static/assets/{index-DUKU9Yum.js => index-DzzgX9TA.js} (99%) rename src/agentkit/server/static/assets/{index-Cdm90D30.js => index-MxXYiP1e.js} (98%) rename src/agentkit/server/static/assets/{index-B8imcus9.js => index-coNRyS0Q.js} (97%) rename src/agentkit/server/static/assets/{index-DlUg5G7X.js => index-p0fEGd1V.js} (99%) rename src/agentkit/server/static/assets/{pickAttrs-cDcy8MZ0.js => pickAttrs-CdccUdli.js} (97%) rename src/agentkit/server/static/assets/{responsiveObserve-Dze5mRNR.js => responsiveObserve-BPXXLIQF.js} (93%) rename src/agentkit/server/static/assets/{styleChecker-DuXayfgz.js => styleChecker-BO8K1F6-.js} (92%) rename src/agentkit/server/static/assets/{zoom-DFzZ47uz.js => zoom-BTwsIXn4.js} (98%) diff --git a/src/agentkit/server/frontend/src/api/types.ts b/src/agentkit/server/frontend/src/api/types.ts index 2a150fd..bb0a0be 100644 --- a/src/agentkit/server/frontend/src/api/types.ts +++ b/src/agentkit/server/frontend/src/api/types.ts @@ -54,7 +54,7 @@ export interface ICapabilitiesResponse { capabilities: ICapabilityInfo[] } -/** WebSocket message types */ +/** WebSocket client message types */ export type WsClientMessage = { type: 'chat' message: string @@ -62,11 +62,12 @@ export type WsClientMessage = { conversation_id?: string } +/** WebSocket server message types — matches backend portal.py protocol */ export type WsServerMessage = | { type: 'routing'; skill: string; confidence: number; method: string } - | { type: 'step'; step: string; detail?: string } - | { type: 'result'; message: string; conversation_id: string } - | { type: 'error'; message: string; code?: string } + | { type: 'step'; data: { event_type: string; step: number; data: Record; timestamp: string } } + | { type: 'result'; data: { message?: string; content?: string; status?: string } } + | { type: 'error'; data: { message: string; code?: string } } /** API error */ export interface IApiError { diff --git a/src/agentkit/server/frontend/src/components/chat/ChatInput.vue b/src/agentkit/server/frontend/src/components/chat/ChatInput.vue index f0fa4b5..435906c 100644 --- a/src/agentkit/server/frontend/src/components/chat/ChatInput.vue +++ b/src/agentkit/server/frontend/src/components/chat/ChatInput.vue @@ -69,7 +69,7 @@ const canSend = computed(() => { function handleSend(): void { const message = inputText.value.trim() - if (!message || props.disabled) return + if (!message) return emit('send', message) inputText.value = '' } @@ -109,10 +109,19 @@ function removePill(idx: number): void { .chat-input__textarea { flex: 1; + min-height: 40px; +} + +.chat-input__textarea :deep(.ant-input) { + min-height: 40px; + line-height: 1.5; + padding-top: 8px; + padding-bottom: 8px; } .chat-input__send { flex-shrink: 0; height: 40px; + min-height: 40px; } diff --git a/src/agentkit/server/frontend/src/stores/chat.ts b/src/agentkit/server/frontend/src/stores/chat.ts index 32ad3df..2caec6e 100644 --- a/src/agentkit/server/frontend/src/stores/chat.ts +++ b/src/agentkit/server/frontend/src/stores/chat.ts @@ -6,7 +6,6 @@ import type { IConversation, IChatRequest, WsClientMessage, - WsServerMessage, } from '@/api/types' function generateId(): string { @@ -131,6 +130,13 @@ export const useChatStore = defineStore('chat', () => { createConversation() } + // Check WebSocket state BEFORE creating messages to avoid duplicates + if (!ws.value || ws.value.readyState !== WebSocket.OPEN) { + // Fallback to REST directly — sendMessage will create its own messages + sendMessage(message, sources) + return + } + const conversationId = currentConversationId.value as string // Add user message @@ -152,6 +158,7 @@ export const useChatStore = defineStore('chat', () => { } appendMessage(conversationId, assistantMessage) + isLoading.value = true streamingSteps.value = [] const wsMessage: WsClientMessage = { @@ -161,12 +168,7 @@ export const useChatStore = defineStore('chat', () => { conversation_id: conversationId, } - if (ws.value && ws.value.readyState === WebSocket.OPEN) { - ws.value.send(JSON.stringify(wsMessage)) - } else { - // Fallback to REST - sendMessage(message, sources) - } + ws.value.send(JSON.stringify(wsMessage)) } /** Connect to WebSocket for real-time streaming */ @@ -184,7 +186,8 @@ export const useChatStore = defineStore('chat', () => { socket.onmessage = (event: MessageEvent) => { try { - const data = JSON.parse(event.data as string) as WsServerMessage + const data = JSON.parse(event.data as string) as Record + console.log('[Chat WS] Received:', data.type, data) handleWsMessage(data) } catch (error) { console.error('Failed to parse WebSocket message:', error) @@ -221,7 +224,7 @@ export const useChatStore = defineStore('chat', () => { // --- Internal helpers --- - function handleWsMessage(data: WsServerMessage): void { + function handleWsMessage(data: Record): void { const conversationId = currentConversationId.value if (!conversationId) return @@ -232,6 +235,10 @@ export const useChatStore = defineStore('chat', () => { .reverse() .find((m) => m.role === 'assistant') + // Backend sends nested data: {type, data: {...}} + // Flatten for easier access + const payload = data.data ?? data + switch (data.type) { case 'routing': if (lastAssistantMsg) { @@ -244,25 +251,49 @@ export const useChatStore = defineStore('chat', () => { streamingSteps.value.push(`路由至: ${data.skill} (置信度: ${(data.confidence * 100).toFixed(1)}%)`) break - case 'step': - streamingSteps.value.push(data.step) + case 'step': { + // Backend sends: {type: "step", data: {event_type, step, data, timestamp}} + const stepInfo = payload + const desc = stepInfo.event_type === 'final_answer' + ? '生成最终回答' + : stepInfo.event_type === 'tool_call' + ? `调用工具: ${stepInfo.data?.tool_name || stepInfo.data?.name || '#'}` + : stepInfo.event_type === 'thinking' + ? '思考中...' + : `步骤 ${stepInfo.step || ''}: ${stepInfo.event_type || ''}` + streamingSteps.value.push(desc) + // Accumulate final_answer content for streaming display + if (stepInfo.event_type === 'final_answer' && lastAssistantMsg) { + const chunk = stepInfo.data?.output || '' + if (chunk) { + updateMessage(conversationId, lastAssistantMsg.id, { + content: (lastAssistantMsg.content || '') + chunk, + }) + } + } break + } - case 'result': + case 'result': { + // Backend sends: {type: "result", data: {message: "..."}} or {data: {status, content}} + const content = payload.message || payload.content || '' if (lastAssistantMsg) { + // Only overwrite if we didn't already stream the content + const finalContent = content || lastAssistantMsg.content || '' updateMessage(conversationId, lastAssistantMsg.id, { - content: data.message, + content: finalContent, status: 'completed', }) } isLoading.value = false streamingSteps.value = [] break + } case 'error': if (lastAssistantMsg) { updateMessage(conversationId, lastAssistantMsg.id, { - content: `错误: ${data.message}`, + content: `错误: ${payload.message || '未知错误'}`, status: 'completed', }) } diff --git a/src/agentkit/server/frontend/src/views/WorkflowView.vue b/src/agentkit/server/frontend/src/views/WorkflowView.vue index 02b735b..d1d5a4e 100644 --- a/src/agentkit/server/frontend/src/views/WorkflowView.vue +++ b/src/agentkit/server/frontend/src/views/WorkflowView.vue @@ -9,8 +9,8 @@ 新建 - -
+ +
None: {"type": "error", "message": "..."} — Error occurred {"type": "pong"} — Heartbeat response """ - # Authentication + # Authentication (accept first, then check — FastAPI requires accept before close) + await websocket.accept() + configured_api_key: str | None = None if hasattr(websocket.app.state, "server_config") and websocket.app.state.server_config: configured_api_key = websocket.app.state.server_config.api_key @@ -355,13 +357,10 @@ async def terminal_websocket(websocket: WebSocket) -> None: if configured_api_key: provided = websocket.query_params.get("api_key") if not hmac.compare_digest((provided or "").encode(), configured_api_key.encode()): - await websocket.accept() await websocket.send_json({"type": "error", "message": "Invalid api_key"}) await websocket.close(code=4001, reason="Invalid api_key") return - await websocket.accept() - # Resolve or create session session_id = websocket.query_params.get("session_id") state = _get_or_create_session(session_id) @@ -407,18 +406,42 @@ async def terminal_websocket(websocket: WebSocket) -> None: "command": command, "reason": safety.get("reason", "需要用户确认"), }) - # Wait for confirmation + # Wait for confirmation by reading messages inline + # (cannot await a future because the main loop is blocked) loop = asyncio.get_running_loop() future: asyncio.Future[bool] = loop.create_future() pending_confirmations[confirmation_id] = future + approved = False + add_to_whitelist_flag = False try: - approved = await asyncio.wait_for(future, timeout=300.0) + # Read messages until we get the confirmation or timeout + deadline = time.monotonic() + 300.0 + while time.monotonic() < deadline: + try: + raw = await asyncio.wait_for( + websocket.receive_text(), + timeout=min(deadline - time.monotonic(), 30.0), + ) + except asyncio.TimeoutError: + continue + + try: + confirm_msg = json.loads(raw) + except json.JSONDecodeError: + continue + + if (confirm_msg.get("type") == "confirm" + and confirm_msg.get("confirmation_id") == confirmation_id): + approved = confirm_msg.get("approved", False) + add_to_whitelist_flag = confirm_msg.get("add_to_whitelist", False) + break + + # Handle other message types while waiting + if confirm_msg.get("type") == "ping": + await websocket.send_json({"type": "pong"}) + except asyncio.TimeoutError: - await websocket.send_json({ - "type": "error", - "message": "确认超时,命令已取消", - }) - continue + pass finally: pending_confirmations.pop(confirmation_id, None) @@ -434,15 +457,12 @@ async def terminal_websocket(websocket: WebSocket) -> None: continue # Add to session whitelist if requested - if msg.get("add_to_whitelist"): + if add_to_whitelist_flag: try: tokens = shlex.split(command) if tokens: binary = os.path.basename(tokens[0]).lower() - # Check if the binary has dangerous flags before adding to whitelist if binary in _DANGEROUS_BINARY_FLAGS: - # Only add the specific command prefix (binary + safe args), not just the binary - # This prevents "rm file.txt" whitelist from allowing "rm -rf /" safe_prefix = tokens[0] state.whitelist.add(safe_prefix) else: diff --git a/src/agentkit/server/static/assets/AgentLayout-CtYJ1_b1.js b/src/agentkit/server/static/assets/AgentLayout-BjfWaflq.js similarity index 83% rename from src/agentkit/server/static/assets/AgentLayout-CtYJ1_b1.js rename to src/agentkit/server/static/assets/AgentLayout-BjfWaflq.js index 0892d7f..7435f0e 100644 --- a/src/agentkit/server/static/assets/AgentLayout-CtYJ1_b1.js +++ b/src/agentkit/server/static/assets/AgentLayout-BjfWaflq.js @@ -1,2 +1,2 @@ -const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/ChatView-DA2wPu1A.js","assets/chat-DurNpMLt.js","assets/index-Cdm90D30.js","assets/index-CqwY2lQz.css","assets/base-BzUb4EcV.js","assets/_plugin-vue_export-helper-BpJgGuqH.js","assets/zoom-DFzZ47uz.js","assets/index-DlUg5G7X.js","assets/devWarning-Ct6dVMcH.js","assets/LeftOutlined-Cjp7xl2E.js","assets/PlusOutlined-BZYJdEGN.js","assets/FolderOpenOutlined-aJTansHZ.js","assets/responsiveObserve-Dze5mRNR.js","assets/index-zQkkOnqV.js","assets/FormItemContext-C7duC9vx.js","assets/index-DQ-PTKeR.js","assets/index-BMDKnjoj.js","assets/UserOutlined-C607Q7TU.js","assets/index-B9Cq1xD6.js","assets/index-DBNRwHot.js","assets/KeyCode-c8YLmrmC.js","assets/styleChecker-DuXayfgz.js","assets/ChatView-DGuMaiL8.css","assets/TerminalView-CWX3TF8I.js","assets/index-Bm5ZpeOU.js","assets/pickAttrs-cDcy8MZ0.js","assets/index-CPf0IATs.js","assets/Checkbox-CGUdikGP.js","assets/TerminalView-Dg1PpXnU.css","assets/WorkflowView-BhS6yKYX.js","assets/index-DS4F546Z.js","assets/index-Bw7-qyYZ.js","assets/Dropdown-BfmL-5TH.js","assets/index-DUKU9Yum.js","assets/DeleteOutlined-C9vx5Gyj.js","assets/index-Chz7LVBG.js","assets/index-CUxjTFZM.js","assets/WorkflowView-D_CnUZD8.css","assets/KnowledgeBaseView-B2lh4rdM.js","assets/index-DWEEelzT.js","assets/index-Bhzy1-DW.js","assets/index-CivBWDtQ.js","assets/KnowledgeBaseView-B7BP9eFg.css","assets/EvolutionView-Knd2v7RU.js","assets/index-CQzZ-h-2.js","assets/EvolutionView-DokvaL7M.css","assets/SkillsView-TRawAwRE.js","assets/AppstoreOutlined-D2IhpVp5.js","assets/index-B8imcus9.js","assets/SkillsView-C1h55c-o.css","assets/SettingsView-wpl4DuIA.js","assets/SettingsView-DU8lFOKb.css"])))=>i.map(i=>d[i]); -import{c,I as j,d as M,u as Z,o as m,a as w,b as u,e as v,w as f,f as $,r as h,n as V,g as N,h as q,i as K,F as W,j as X,k as I,l as ee,m as te,t as ae,p as ne,v as oe,q as S,_ as z,s as re}from"./index-Cdm90D30.js";import{u as le,C as se,M as ie}from"./chat-DurNpMLt.js";import{B as ce}from"./index-CivBWDtQ.js";import{A as ue}from"./base-BzUb4EcV.js";import{S as G,A as de,B as ve}from"./SettingOutlined-B1U74h0J.js";import{_ as L}from"./_plugin-vue_export-helper-BpJgGuqH.js";import{P as fe}from"./PlusOutlined-BZYJdEGN.js";import{D as pe}from"./DesktopOutlined-ClGl-80a.js";import{A as _e}from"./AppstoreOutlined-D2IhpVp5.js";import"./zoom-DFzZ47uz.js";var me={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 Y(n){for(var e=1;et.isWsConnected);return(r,a)=>(m(),w("header",Oe,[u("div",we,[u("div",{class:"top-nav__logo",onClick:a[0]||(a[0]=P=>v(e).push("/agent"))},[...a[2]||(a[2]=[u("span",{class:"top-nav__logo-text"},"Fischer",-1),u("span",{class:"top-nav__logo-badge"},"AgentKit",-1)])])]),a[3]||(a[3]=u("div",{class:"top-nav__center"},null,-1)),u("div",Pe,[u("div",xe,[c(v(ce),{status:o.value?"success":"error",text:o.value?"已连接":"未连接"},null,8,["status","text"])]),c(v(ue),{title:"设置"},{default:f(()=>[u("button",{class:"top-nav__icon-btn",onClick:a[1]||(a[1]=P=>v(e).push("/agent/monitor?tab=settings"))},[c(v(G))])]),_:1})])]))}}),Se=L(De,[["__scopeId","data-v-ebe6166a"]]),ze=["aria-orientation","aria-valuenow"],Ae=M({__name:"SplitPane",props:{direction:{default:"horizontal"},defaultRatio:{default:.5},minRatio:{default:.2},maxRatio:{default:.8},storageKey:{}},setup(n){const e=n,t=h(null),o=h(!1),r=e.storageKey?parseFloat(localStorage.getItem(e.storageKey)||String(e.defaultRatio)):e.defaultRatio,a=h(Math.min(e.maxRatio,Math.max(e.minRatio,r))),P=$(()=>e.direction==="horizontal"?{width:`${a.value*100}%`}:{height:`${a.value*100}%`}),E=$(()=>e.direction==="horizontal"?{width:`${(1-a.value)*100}%`}:{height:`${(1-a.value)*100}%`});function g(l){return Math.min(e.maxRatio,Math.max(e.minRatio,l))}function x(l,_,y,b){const d=(l-_)/b;a.value=g(y+d)}function s(){o.value=!1,e.storageKey&&localStorage.setItem(e.storageKey,String(a.value)),window.dispatchEvent(new Event("resize"))}function p(l){if(l.preventDefault(),!t.value)return;o.value=!0;const _=e.direction==="horizontal"?l.clientX:l.clientY,y=e.direction==="horizontal"?t.value.offsetWidth:t.value.offsetHeight,b=a.value;function d(A){const O=e.direction==="horizontal"?A.clientX:A.clientY;x(O,_,b,y)}function k(){s(),document.removeEventListener("mousemove",d),document.removeEventListener("mouseup",k)}document.addEventListener("mousemove",d),document.addEventListener("mouseup",k)}function i(l){if(!t.value)return;o.value=!0;const _=l.touches[0],y=e.direction==="horizontal"?_.clientX:_.clientY,b=e.direction==="horizontal"?t.value.offsetWidth:t.value.offsetHeight,d=a.value;function k(O){const F=O.touches[0],J=e.direction==="horizontal"?F.clientX:F.clientY;x(J,y,d,b)}function A(){s(),document.removeEventListener("touchmove",k),document.removeEventListener("touchend",A)}document.addEventListener("touchmove",k,{passive:!0}),document.addEventListener("touchend",A)}function D(l){e.direction==="horizontal"?l.key==="ArrowLeft"?(l.preventDefault(),a.value=g(a.value-.02)):l.key==="ArrowRight"&&(l.preventDefault(),a.value=g(a.value+.02)):l.key==="ArrowUp"?(l.preventDefault(),a.value=g(a.value-.02)):l.key==="ArrowDown"&&(l.preventDefault(),a.value=g(a.value+.02)),l.key==="Home"?(l.preventDefault(),a.value=e.minRatio):l.key==="End"&&(l.preventDefault(),a.value=e.maxRatio)}return(l,_)=>(m(),w("div",{ref_key:"containerRef",ref:t,class:V(["split-pane",`split-pane--${n.direction}`,{"split-pane--dragging":o.value}])},[u("div",{class:"split-pane__first",style:N(P.value)},[q(l.$slots,"first",{},void 0,!0)],4),u("div",{class:"split-pane__handle",role:"separator","aria-orientation":n.direction==="horizontal"?"vertical":"horizontal","aria-valuenow":Math.round(a.value*100),"aria-valuemin":"0","aria-valuemax":"100",tabindex:"0",onMousedown:p,onTouchstartPassive:i,onKeydown:D},[..._[0]||(_[0]=[u("div",{class:"split-pane__handle-line"},null,-1)])],40,ze),u("div",{class:"split-pane__second",style:N(E.value)},[q(l.$slots,"second",{},void 0,!0)],4)],2))}}),C=L(Ae,[["__scopeId","data-v-35005667"]]),Ee={class:"quadrant-panel__header"},Te=["aria-label"],$e=["aria-selected","tabindex","onClick"],Re=["title","aria-label"],Me={class:"quadrant-panel__body"},Le=M({__name:"QuadrantPanel",props:{tabs:{},defaultTab:{default:""},storageKey:{}},setup(n,{expose:e}){var x;const t=n,o=t.storageKey&&localStorage.getItem(t.storageKey)||t.defaultTab,r=h(o||(((x=t.tabs[0])==null?void 0:x.key)??"")),a=h(t.storageKey?localStorage.getItem(t.storageKey+"-collapsed")==="true":!1),P=$(()=>t.tabs.filter(s=>s.key===r.value));K(r,s=>{t.storageKey&&localStorage.setItem(t.storageKey,s)}),K(a,s=>{t.storageKey&&localStorage.setItem(t.storageKey+"-collapsed",String(s))});function E(s){t.tabs.some(p=>p.key===s)&&(r.value=s)}function g(s){const p=t.tabs.findIndex(D=>D.key===r.value);let i=p;s.key==="ArrowRight"||s.key==="ArrowDown"?(s.preventDefault(),i=(p+1)%t.tabs.length):s.key==="ArrowLeft"||s.key==="ArrowUp"?(s.preventDefault(),i=(p-1+t.tabs.length)%t.tabs.length):s.key==="Home"?(s.preventDefault(),i=0):s.key==="End"&&(s.preventDefault(),i=t.tabs.length-1),i!==p&&(r.value=t.tabs[i].key)}return e({setActiveTab:E}),(s,p)=>(m(),w("div",{class:V(["quadrant-panel",{"quadrant-panel--collapsed":a.value}])},[u("div",Ee,[u("div",{class:"quadrant-panel__tabs",role:"tablist","aria-label":`${n.storageKey||"panel"} tabs`},[(m(!0),w(W,null,X(n.tabs,i=>(m(),w("button",{key:i.key,class:V(["quadrant-panel__tab",{"quadrant-panel__tab--active":r.value===i.key}]),role:"tab","aria-selected":r.value===i.key,tabindex:r.value===i.key?0:-1,onClick:D=>r.value=i.key,onKeydown:g},[i.icon?(m(),I(ee(i.icon),{key:0,class:"quadrant-panel__tab-icon"})):te("",!0),u("span",null,ae(i.label),1)],42,$e))),128))],8,Te),u("button",{class:"quadrant-panel__collapse-btn",onClick:p[0]||(p[0]=i=>a.value=!a.value),title:a.value?"展开":"折叠","aria-label":a.value?"展开面板":"折叠面板"},[a.value?(m(),I(v(fe),{key:1})):(m(),I(v(H),{key:0}))],8,Re)]),ne(u("div",Me,[(m(!0),w(W,null,X(P.value,i=>(m(),w("div",{key:i.key,role:"tabpanel",class:"quadrant-panel__content"},[q(s.$slots,i.key,{},void 0,!0)]))),128))],512),[[oe,!a.value]])],2))}}),T=L(Le,[["__scopeId","data-v-62aa13cf"]]),Ie={class:"agent-layout"},Ce={class:"agent-layout__body"},Ve={class:"agent-layout__placeholder"},qe={class:"agent-layout__small-screen"},Ke=M({__name:"AgentLayout",setup(n){const e=S(()=>z(()=>import("./ChatView-DA2wPu1A.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]))),t=S(()=>z(()=>import("./TerminalView-CWX3TF8I.js"),__vite__mapDeps([23,2,3,5,7,8,24,20,14,25,6,21,26,27,28]))),o=S(()=>z(()=>import("./WorkflowView-BhS6yKYX.js"),__vite__mapDeps([29,2,3,4,5,6,17,19,7,8,30,31,32,20,13,14,15,25,33,12,21,34,11,18,9,26,27,35,36,24,10,37]))),r=S(()=>z(()=>import("./KnowledgeBaseView-B2lh4rdM.js"),__vite__mapDeps([38,2,3,4,5,6,25,31,32,20,13,14,7,8,15,33,12,21,34,11,18,9,26,27,35,39,10,40,19,16,24,41,30,36,42]))),a=S(()=>z(()=>import("./EvolutionView-Knd2v7RU.js"),__vite__mapDeps([43,2,3,4,5,6,44,39,20,33,8,15,32,13,14,7,25,10,19,35,27,45]))),P=S(()=>z(()=>import("./SkillsView-TRawAwRE.js"),__vite__mapDeps([46,2,3,4,5,6,44,39,20,33,8,15,32,13,14,7,25,10,19,41,47,12,40,30,31,21,18,24,48,49]))),E=S(()=>z(()=>import("./SettingsView-wpl4DuIA.js"),__vite__mapDeps([50,2,3,4,5,6,39,20,33,8,15,32,13,14,7,25,10,48,31,12,21,36,51]))),g=re(),x=[{key:"chat",label:"对话",icon:ie}],s=[{key:"terminal",label:"终端",icon:se}],p=[{key:"code",label:"代码",icon:R},{key:"workflow",label:"工作流",icon:de},{key:"knowledge",label:"知识库",icon:ve}],i=[{key:"monitor",label:"监控",icon:B},{key:"skills",label:"技能",icon:_e},{key:"settings",label:"设置",icon:G}],D=h(null),l=h(null),_=h(null),y=h(null);return K(()=>g.meta,b=>{const d=b.quadrant,k=b.tab;if(d&&k){const O={tl:D,bl:l,tr:_,br:y}[d];O!=null&&O.value&&O.value.setActiveTab(k)}},{immediate:!0}),(b,d)=>(m(),w("div",Ie,[c(Se),u("div",Ce,[c(C,{direction:"horizontal","default-ratio":.5,"storage-key":"agent-h-split"},{first:f(()=>[c(C,{direction:"vertical","default-ratio":.6,"storage-key":"agent-left-v-split"},{first:f(()=>[c(T,{ref_key:"tlPanel",ref:D,tabs:x,"default-tab":"chat","storage-key":"quadrant-tl-tab"},{chat:f(()=>[c(v(e))]),_:1},512)]),second:f(()=>[c(T,{ref_key:"blPanel",ref:l,tabs:s,"default-tab":"terminal","storage-key":"quadrant-bl-tab"},{terminal:f(()=>[c(v(t))]),_:1},512)]),_:1})]),second:f(()=>[c(C,{direction:"vertical","default-ratio":.6,"storage-key":"agent-right-v-split"},{first:f(()=>[c(T,{ref_key:"trPanel",ref:_,tabs:p,"default-tab":"code","storage-key":"quadrant-tr-tab"},{code:f(()=>[u("div",Ve,[c(v(R),{style:{"font-size":"32px",color:"var(--text-placeholder)"}}),d[0]||(d[0]=u("p",null,"代码预览",-1))])]),workflow:f(()=>[c(v(o))]),knowledge:f(()=>[c(v(r))]),_:1},512)]),second:f(()=>[c(T,{ref_key:"brPanel",ref:y,tabs:i,"default-tab":"monitor","storage-key":"quadrant-br-tab"},{monitor:f(()=>[c(v(a))]),skills:f(()=>[c(v(P))]),settings:f(()=>[c(v(E))]),_:1},512)]),_:1})]),_:1})]),u("div",qe,[c(v(pe),{style:{"font-size":"48px",color:"var(--text-placeholder)"}}),d[1]||(d[1]=u("h2",null,"请使用更大的屏幕",-1)),d[2]||(d[2]=u("p",null,"Fischer AgentKit 四象限布局需要至少 1280px 宽度的屏幕才能正常使用。",-1))])]))}}),Ge=L(Ke,[["__scopeId","data-v-510f0b01"]]);export{Ge as default}; +const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/ChatView-CBFvpIso.js","assets/chat-_tit2gm5.js","assets/index-MxXYiP1e.js","assets/index-CqwY2lQz.css","assets/base--VGJiuPH.js","assets/_plugin-vue_export-helper-CbNEYfqg.js","assets/zoom-BTwsIXn4.js","assets/index-p0fEGd1V.js","assets/devWarning-Ct6dVMcH.js","assets/LeftOutlined-CAv2mg6T.js","assets/PlusOutlined-CMd58dlX.js","assets/FolderOpenOutlined-DkHI-22a.js","assets/responsiveObserve-BPXXLIQF.js","assets/index-C-JDvA85.js","assets/FormItemContext-CIZixMRP.js","assets/index-BzwcKMhL.js","assets/index-BaJrEU40.js","assets/UserOutlined-3o_0Hvh7.js","assets/index-BjhFFLnY.js","assets/index-BsO-BQWw.js","assets/KeyCode-c8YLmrmC.js","assets/styleChecker-BO8K1F6-.js","assets/ChatView-CFmQzkwB.css","assets/TerminalView-CVh893sy.js","assets/index-CpcJSnGu.js","assets/pickAttrs-CdccUdli.js","assets/index-CIqRW9zM.js","assets/Checkbox-r-colYvs.js","assets/TerminalView-Dg1PpXnU.css","assets/WorkflowView-DBRRErEj.js","assets/index-DuQZmgYZ.js","assets/index-6F6eWDOC.js","assets/Dropdown-EJ9XzwSc.js","assets/index-DzzgX9TA.js","assets/DeleteOutlined-CclyZH8N.js","assets/index-DVAHMIEx.js","assets/index-DfYN6Ir9.js","assets/WorkflowView-CkW9lcI4.css","assets/KnowledgeBaseView-DFe-BwZs.js","assets/index-CUHLv4kD.js","assets/index-Cm4StDv9.js","assets/index-Cvavw3q5.js","assets/KnowledgeBaseView-B7BP9eFg.css","assets/EvolutionView-BcrIraMF.js","assets/index-0ftJ_VhH.js","assets/EvolutionView-DokvaL7M.css","assets/SkillsView-Cw0mKely.js","assets/AppstoreOutlined-CK96XqwQ.js","assets/index-coNRyS0Q.js","assets/SkillsView-C1h55c-o.css","assets/SettingsView-DTyyjurU.js","assets/SettingsView-DU8lFOKb.css"])))=>i.map(i=>d[i]); +import{c,I as j,d as M,u as Z,o as m,a as w,b as u,e as v,w as f,f as $,r as h,n as V,g as N,h as q,i as K,F as W,j as X,k as I,l as ee,m as te,t as ae,p as ne,v as oe,q as S,_ as z,s as re}from"./index-MxXYiP1e.js";import{u as le,C as se,M as ie}from"./chat-_tit2gm5.js";import{B as ce}from"./index-Cvavw3q5.js";import{A as ue}from"./base--VGJiuPH.js";import{S as G,A as de,B as ve}from"./SettingOutlined-BPSWwgov.js";import{_ as L}from"./_plugin-vue_export-helper-CbNEYfqg.js";import{P as fe}from"./PlusOutlined-CMd58dlX.js";import{D as pe}from"./DesktopOutlined-B5tFIirw.js";import{A as _e}from"./AppstoreOutlined-CK96XqwQ.js";import"./zoom-BTwsIXn4.js";var me={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 Y(n){for(var e=1;et.isWsConnected);return(r,a)=>(m(),w("header",Oe,[u("div",we,[u("div",{class:"top-nav__logo",onClick:a[0]||(a[0]=P=>v(e).push("/agent"))},[...a[2]||(a[2]=[u("span",{class:"top-nav__logo-text"},"Fischer",-1),u("span",{class:"top-nav__logo-badge"},"AgentKit",-1)])])]),a[3]||(a[3]=u("div",{class:"top-nav__center"},null,-1)),u("div",Pe,[u("div",xe,[c(v(ce),{status:o.value?"success":"error",text:o.value?"已连接":"未连接"},null,8,["status","text"])]),c(v(ue),{title:"设置"},{default:f(()=>[u("button",{class:"top-nav__icon-btn",onClick:a[1]||(a[1]=P=>v(e).push("/agent/monitor?tab=settings"))},[c(v(G))])]),_:1})])]))}}),Se=L(De,[["__scopeId","data-v-ebe6166a"]]),ze=["aria-orientation","aria-valuenow"],Ae=M({__name:"SplitPane",props:{direction:{default:"horizontal"},defaultRatio:{default:.5},minRatio:{default:.2},maxRatio:{default:.8},storageKey:{}},setup(n){const e=n,t=h(null),o=h(!1),r=e.storageKey?parseFloat(localStorage.getItem(e.storageKey)||String(e.defaultRatio)):e.defaultRatio,a=h(Math.min(e.maxRatio,Math.max(e.minRatio,r))),P=$(()=>e.direction==="horizontal"?{width:`${a.value*100}%`}:{height:`${a.value*100}%`}),E=$(()=>e.direction==="horizontal"?{width:`${(1-a.value)*100}%`}:{height:`${(1-a.value)*100}%`});function g(l){return Math.min(e.maxRatio,Math.max(e.minRatio,l))}function x(l,_,y,b){const d=(l-_)/b;a.value=g(y+d)}function s(){o.value=!1,e.storageKey&&localStorage.setItem(e.storageKey,String(a.value)),window.dispatchEvent(new Event("resize"))}function p(l){if(l.preventDefault(),!t.value)return;o.value=!0;const _=e.direction==="horizontal"?l.clientX:l.clientY,y=e.direction==="horizontal"?t.value.offsetWidth:t.value.offsetHeight,b=a.value;function d(A){const O=e.direction==="horizontal"?A.clientX:A.clientY;x(O,_,b,y)}function k(){s(),document.removeEventListener("mousemove",d),document.removeEventListener("mouseup",k)}document.addEventListener("mousemove",d),document.addEventListener("mouseup",k)}function i(l){if(!t.value)return;o.value=!0;const _=l.touches[0],y=e.direction==="horizontal"?_.clientX:_.clientY,b=e.direction==="horizontal"?t.value.offsetWidth:t.value.offsetHeight,d=a.value;function k(O){const F=O.touches[0],J=e.direction==="horizontal"?F.clientX:F.clientY;x(J,y,d,b)}function A(){s(),document.removeEventListener("touchmove",k),document.removeEventListener("touchend",A)}document.addEventListener("touchmove",k,{passive:!0}),document.addEventListener("touchend",A)}function D(l){e.direction==="horizontal"?l.key==="ArrowLeft"?(l.preventDefault(),a.value=g(a.value-.02)):l.key==="ArrowRight"&&(l.preventDefault(),a.value=g(a.value+.02)):l.key==="ArrowUp"?(l.preventDefault(),a.value=g(a.value-.02)):l.key==="ArrowDown"&&(l.preventDefault(),a.value=g(a.value+.02)),l.key==="Home"?(l.preventDefault(),a.value=e.minRatio):l.key==="End"&&(l.preventDefault(),a.value=e.maxRatio)}return(l,_)=>(m(),w("div",{ref_key:"containerRef",ref:t,class:V(["split-pane",`split-pane--${n.direction}`,{"split-pane--dragging":o.value}])},[u("div",{class:"split-pane__first",style:N(P.value)},[q(l.$slots,"first",{},void 0,!0)],4),u("div",{class:"split-pane__handle",role:"separator","aria-orientation":n.direction==="horizontal"?"vertical":"horizontal","aria-valuenow":Math.round(a.value*100),"aria-valuemin":"0","aria-valuemax":"100",tabindex:"0",onMousedown:p,onTouchstartPassive:i,onKeydown:D},[..._[0]||(_[0]=[u("div",{class:"split-pane__handle-line"},null,-1)])],40,ze),u("div",{class:"split-pane__second",style:N(E.value)},[q(l.$slots,"second",{},void 0,!0)],4)],2))}}),C=L(Ae,[["__scopeId","data-v-35005667"]]),Ee={class:"quadrant-panel__header"},Te=["aria-label"],$e=["aria-selected","tabindex","onClick"],Re=["title","aria-label"],Me={class:"quadrant-panel__body"},Le=M({__name:"QuadrantPanel",props:{tabs:{},defaultTab:{default:""},storageKey:{}},setup(n,{expose:e}){var x;const t=n,o=t.storageKey&&localStorage.getItem(t.storageKey)||t.defaultTab,r=h(o||(((x=t.tabs[0])==null?void 0:x.key)??"")),a=h(t.storageKey?localStorage.getItem(t.storageKey+"-collapsed")==="true":!1),P=$(()=>t.tabs.filter(s=>s.key===r.value));K(r,s=>{t.storageKey&&localStorage.setItem(t.storageKey,s)}),K(a,s=>{t.storageKey&&localStorage.setItem(t.storageKey+"-collapsed",String(s))});function E(s){t.tabs.some(p=>p.key===s)&&(r.value=s)}function g(s){const p=t.tabs.findIndex(D=>D.key===r.value);let i=p;s.key==="ArrowRight"||s.key==="ArrowDown"?(s.preventDefault(),i=(p+1)%t.tabs.length):s.key==="ArrowLeft"||s.key==="ArrowUp"?(s.preventDefault(),i=(p-1+t.tabs.length)%t.tabs.length):s.key==="Home"?(s.preventDefault(),i=0):s.key==="End"&&(s.preventDefault(),i=t.tabs.length-1),i!==p&&(r.value=t.tabs[i].key)}return e({setActiveTab:E}),(s,p)=>(m(),w("div",{class:V(["quadrant-panel",{"quadrant-panel--collapsed":a.value}])},[u("div",Ee,[u("div",{class:"quadrant-panel__tabs",role:"tablist","aria-label":`${n.storageKey||"panel"} tabs`},[(m(!0),w(W,null,X(n.tabs,i=>(m(),w("button",{key:i.key,class:V(["quadrant-panel__tab",{"quadrant-panel__tab--active":r.value===i.key}]),role:"tab","aria-selected":r.value===i.key,tabindex:r.value===i.key?0:-1,onClick:D=>r.value=i.key,onKeydown:g},[i.icon?(m(),I(ee(i.icon),{key:0,class:"quadrant-panel__tab-icon"})):te("",!0),u("span",null,ae(i.label),1)],42,$e))),128))],8,Te),u("button",{class:"quadrant-panel__collapse-btn",onClick:p[0]||(p[0]=i=>a.value=!a.value),title:a.value?"展开":"折叠","aria-label":a.value?"展开面板":"折叠面板"},[a.value?(m(),I(v(fe),{key:1})):(m(),I(v(H),{key:0}))],8,Re)]),ne(u("div",Me,[(m(!0),w(W,null,X(P.value,i=>(m(),w("div",{key:i.key,role:"tabpanel",class:"quadrant-panel__content"},[q(s.$slots,i.key,{},void 0,!0)]))),128))],512),[[oe,!a.value]])],2))}}),T=L(Le,[["__scopeId","data-v-62aa13cf"]]),Ie={class:"agent-layout"},Ce={class:"agent-layout__body"},Ve={class:"agent-layout__placeholder"},qe={class:"agent-layout__small-screen"},Ke=M({__name:"AgentLayout",setup(n){const e=S(()=>z(()=>import("./ChatView-CBFvpIso.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]))),t=S(()=>z(()=>import("./TerminalView-CVh893sy.js"),__vite__mapDeps([23,2,3,5,7,8,24,20,14,25,6,21,26,27,28]))),o=S(()=>z(()=>import("./WorkflowView-DBRRErEj.js"),__vite__mapDeps([29,2,3,4,5,6,17,19,7,8,30,31,32,20,13,14,15,25,33,12,21,34,11,18,9,26,27,35,36,24,10,37]))),r=S(()=>z(()=>import("./KnowledgeBaseView-DFe-BwZs.js"),__vite__mapDeps([38,2,3,4,5,6,25,31,32,20,13,14,7,8,15,33,12,21,34,11,18,9,26,27,35,39,10,40,19,16,24,41,30,36,42]))),a=S(()=>z(()=>import("./EvolutionView-BcrIraMF.js"),__vite__mapDeps([43,2,3,4,5,6,44,39,20,33,8,15,32,13,14,7,25,10,19,35,27,45]))),P=S(()=>z(()=>import("./SkillsView-Cw0mKely.js"),__vite__mapDeps([46,2,3,4,5,6,44,39,20,33,8,15,32,13,14,7,25,10,19,41,47,12,40,30,31,21,18,24,48,49]))),E=S(()=>z(()=>import("./SettingsView-DTyyjurU.js"),__vite__mapDeps([50,2,3,4,5,6,39,20,33,8,15,32,13,14,7,25,10,48,31,12,21,36,51]))),g=re(),x=[{key:"chat",label:"对话",icon:ie}],s=[{key:"terminal",label:"终端",icon:se}],p=[{key:"code",label:"代码",icon:R},{key:"workflow",label:"工作流",icon:de},{key:"knowledge",label:"知识库",icon:ve}],i=[{key:"monitor",label:"监控",icon:B},{key:"skills",label:"技能",icon:_e},{key:"settings",label:"设置",icon:G}],D=h(null),l=h(null),_=h(null),y=h(null);return K(()=>g.meta,b=>{const d=b.quadrant,k=b.tab;if(d&&k){const O={tl:D,bl:l,tr:_,br:y}[d];O!=null&&O.value&&O.value.setActiveTab(k)}},{immediate:!0}),(b,d)=>(m(),w("div",Ie,[c(Se),u("div",Ce,[c(C,{direction:"horizontal","default-ratio":.5,"storage-key":"agent-h-split"},{first:f(()=>[c(C,{direction:"vertical","default-ratio":.6,"storage-key":"agent-left-v-split"},{first:f(()=>[c(T,{ref_key:"tlPanel",ref:D,tabs:x,"default-tab":"chat","storage-key":"quadrant-tl-tab"},{chat:f(()=>[c(v(e))]),_:1},512)]),second:f(()=>[c(T,{ref_key:"blPanel",ref:l,tabs:s,"default-tab":"terminal","storage-key":"quadrant-bl-tab"},{terminal:f(()=>[c(v(t))]),_:1},512)]),_:1})]),second:f(()=>[c(C,{direction:"vertical","default-ratio":.6,"storage-key":"agent-right-v-split"},{first:f(()=>[c(T,{ref_key:"trPanel",ref:_,tabs:p,"default-tab":"code","storage-key":"quadrant-tr-tab"},{code:f(()=>[u("div",Ve,[c(v(R),{style:{"font-size":"32px",color:"var(--text-placeholder)"}}),d[0]||(d[0]=u("p",null,"代码预览",-1))])]),workflow:f(()=>[c(v(o))]),knowledge:f(()=>[c(v(r))]),_:1},512)]),second:f(()=>[c(T,{ref_key:"brPanel",ref:y,tabs:i,"default-tab":"monitor","storage-key":"quadrant-br-tab"},{monitor:f(()=>[c(v(a))]),skills:f(()=>[c(v(P))]),settings:f(()=>[c(v(E))]),_:1},512)]),_:1})]),_:1})]),u("div",qe,[c(v(pe),{style:{"font-size":"48px",color:"var(--text-placeholder)"}}),d[1]||(d[1]=u("h2",null,"请使用更大的屏幕",-1)),d[2]||(d[2]=u("p",null,"Fischer AgentKit 四象限布局需要至少 1280px 宽度的屏幕才能正常使用。",-1))])]))}}),Ge=L(Ke,[["__scopeId","data-v-510f0b01"]]);export{Ge as default}; diff --git a/src/agentkit/server/static/assets/AppLayout-CVkEttfS.js b/src/agentkit/server/static/assets/AppLayout-C9PVB9qY.js similarity index 94% rename from src/agentkit/server/static/assets/AppLayout-CVkEttfS.js rename to src/agentkit/server/static/assets/AppLayout-C9PVB9qY.js index cb2b126..50ace7c 100644 --- a/src/agentkit/server/static/assets/AppLayout-CVkEttfS.js +++ b/src/agentkit/server/static/assets/AppLayout-C9PVB9qY.js @@ -1 +1 @@ -import{x as ye,y as be,z as $,d as w,D,c as r,f as te,r as ne,C as oe,I as re,K as P,i as I,E as xe,T as Se,R as X,J as V,B as Ce,P as y,aA as Z,u as $e,s as ke,o as ae,k as le,e as d,w as c,b as h,ak as we}from"./index-Cdm90D30.js";import{u as Oe,M as Be,C as _e}from"./chat-DurNpMLt.js";import{S as ie,a as He,A as x,b as Le,M as Ae}from"./index-DUKU9Yum.js";import{i as ze,_ as se}from"./_plugin-vue_export-helper-BpJgGuqH.js";import{i as Pe,B as Te}from"./index-CivBWDtQ.js";import{L as G,R as J}from"./LeftOutlined-Cjp7xl2E.js";import{A as Re,B as Me,S as Ee}from"./SettingOutlined-B1U74h0J.js";import{A as Ie}from"./AppstoreOutlined-D2IhpVp5.js";import{D as De}from"./DesktopOutlined-ClGl-80a.js";import"./base-BzUb4EcV.js";import"./zoom-DFzZ47uz.js";import"./devWarning-Ct6dVMcH.js";import"./index-DQ-PTKeR.js";import"./KeyCode-c8YLmrmC.js";const Ne=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}}}}},Ne(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"}}),N=()=>({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:N(),setup(g,u){let{slots:o}=u;const{prefixCls:v}=D(n,g);return()=>{const S=$($({},g),{prefixCls:v.value,tagName:t});return r(a,S,o)}}})}const j=w({compatConfig:{MODE:3},props:N(),setup(e,n){let{slots:t}=n;return()=>r(e.tagName,{class:e.prefixCls},t)}}),Fe=w({compatConfig:{MODE:3},inheritAttrs:!1,props:N(),setup(e,n){let{slots:t,attrs:l}=n;const{prefixCls:a,direction:m}=D("",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),R=H({suffixCls:"layout-header",tagName:"header",name:"ALayoutHeader"})(j),M=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(Z("xs","sm","md","lg","xl","xxl","xxxl")),theme:y.oneOf(Z("light","dark")).def("dark"),onBreakpoint:Function,onCollapse:Function}),Ve=(()=>{let e=0;return function(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return e+=1,`${n}${e}`}})(),_=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}=D("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=Ve("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 Y){i=s(`(max-width: ${Y[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:B=(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},[B||r(W,null,null)]):null,ge={expanded:L?r(J,null,null):r(G,null,null),collapsed:L?r(G,null,null):r(J,null,null)},pe=u.value?"collapsed":"expanded",fe=ge[pe],me=B!==null?z||r("div",{class:`${f}-trigger`,onClick:O,style:{width:k}},[B||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&&B!==null&&!z,[`${f}-below`]:!!o.value,[`${f}-zero-width`]:parseFloat(k)===0},l.class);return r("aside",V(V({},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])}}}),Ze=_,q=$(T,{Header:R,Footer:M,Content:E,Sider:_,install:e=>(e.component(T.name,T),e.component(R.name,R),e.component(M.name,M),e.component(_.name,_),e.component(E.name,E),e)});var Ge={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(Ze),{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(Be))]),default:c(()=>[o[1]||(o[1]=h("span",null,"智能对话",-1))]),_:1}),r(d(x),{key:"/workflow"},{icon:c(()=>[r(d(Re))]),default:c(()=>[o[2]||(o[2]=h("span",null,"工作流",-1))]),_:1}),r(d(x),{key:"/knowledge"},{icon:c(()=>[r(d(Me))]),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(_e))]),default:c(()=>[o[5]||(o[5]=h("span",null,"终端",-1))]),_:1}),r(d(x),{key:"/computer-use"},{icon:c(()=>[r(d(De))]),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}))}}),qe=se(Ye,[["__scopeId","data-v-ffaa5764"]]),et=w({__name:"AppLayout",setup(e){return(n,t)=>{const l=we("router-view");return ae(),le(d(q),{class:"app-layout"},{default:c(()=>[r(qe),r(d(q),{class:"app-layout__main"},{default:c(()=>[r(l)]),_:1})]),_:1})}}}),mt=se(et,[["__scopeId","data-v-1f8febf9"]]);export{mt as default}; +import{x as ye,y as be,z as $,d as w,D,c as r,f as te,r as ne,C as oe,I as re,K as P,i as I,E as xe,T as Se,R as X,J as V,B as Ce,P as y,aA as Z,u as $e,s as ke,o as ae,k as le,e as d,w as c,b as h,ak as we}from"./index-MxXYiP1e.js";import{u as Oe,M as Be,C as _e}from"./chat-_tit2gm5.js";import{S as ie,a as He,A as x,b as Le,M as Ae}from"./index-DzzgX9TA.js";import{i as ze,_ as se}from"./_plugin-vue_export-helper-CbNEYfqg.js";import{i as Pe,B as Te}from"./index-Cvavw3q5.js";import{L as G,R as J}from"./LeftOutlined-CAv2mg6T.js";import{A as Re,B as Me,S as Ee}from"./SettingOutlined-BPSWwgov.js";import{A as Ie}from"./AppstoreOutlined-CK96XqwQ.js";import{D as De}from"./DesktopOutlined-B5tFIirw.js";import"./base--VGJiuPH.js";import"./zoom-BTwsIXn4.js";import"./devWarning-Ct6dVMcH.js";import"./index-BzwcKMhL.js";import"./KeyCode-c8YLmrmC.js";const Ne=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}}}}},Ne(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"}}),N=()=>({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:N(),setup(g,u){let{slots:o}=u;const{prefixCls:v}=D(n,g);return()=>{const S=$($({},g),{prefixCls:v.value,tagName:t});return r(a,S,o)}}})}const j=w({compatConfig:{MODE:3},props:N(),setup(e,n){let{slots:t}=n;return()=>r(e.tagName,{class:e.prefixCls},t)}}),Fe=w({compatConfig:{MODE:3},inheritAttrs:!1,props:N(),setup(e,n){let{slots:t,attrs:l}=n;const{prefixCls:a,direction:m}=D("",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),R=H({suffixCls:"layout-header",tagName:"header",name:"ALayoutHeader"})(j),M=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(Z("xs","sm","md","lg","xl","xxl","xxxl")),theme:y.oneOf(Z("light","dark")).def("dark"),onBreakpoint:Function,onCollapse:Function}),Ve=(()=>{let e=0;return function(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return e+=1,`${n}${e}`}})(),_=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}=D("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=Ve("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 Y){i=s(`(max-width: ${Y[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:B=(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},[B||r(W,null,null)]):null,ge={expanded:L?r(J,null,null):r(G,null,null),collapsed:L?r(G,null,null):r(J,null,null)},pe=u.value?"collapsed":"expanded",fe=ge[pe],me=B!==null?z||r("div",{class:`${f}-trigger`,onClick:O,style:{width:k}},[B||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&&B!==null&&!z,[`${f}-below`]:!!o.value,[`${f}-zero-width`]:parseFloat(k)===0},l.class);return r("aside",V(V({},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])}}}),Ze=_,q=$(T,{Header:R,Footer:M,Content:E,Sider:_,install:e=>(e.component(T.name,T),e.component(R.name,R),e.component(M.name,M),e.component(_.name,_),e.component(E.name,E),e)});var Ge={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(Ze),{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(Be))]),default:c(()=>[o[1]||(o[1]=h("span",null,"智能对话",-1))]),_:1}),r(d(x),{key:"/workflow"},{icon:c(()=>[r(d(Re))]),default:c(()=>[o[2]||(o[2]=h("span",null,"工作流",-1))]),_:1}),r(d(x),{key:"/knowledge"},{icon:c(()=>[r(d(Me))]),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(_e))]),default:c(()=>[o[5]||(o[5]=h("span",null,"终端",-1))]),_:1}),r(d(x),{key:"/computer-use"},{icon:c(()=>[r(d(De))]),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}))}}),qe=se(Ye,[["__scopeId","data-v-ffaa5764"]]),et=w({__name:"AppLayout",setup(e){return(n,t)=>{const l=we("router-view");return ae(),le(d(q),{class:"app-layout"},{default:c(()=>[r(qe),r(d(q),{class:"app-layout__main"},{default:c(()=>[r(l)]),_:1})]),_:1})}}}),mt=se(et,[["__scopeId","data-v-1f8febf9"]]);export{mt as default}; diff --git a/src/agentkit/server/static/assets/AppstoreOutlined-D2IhpVp5.js b/src/agentkit/server/static/assets/AppstoreOutlined-CK96XqwQ.js similarity index 95% rename from src/agentkit/server/static/assets/AppstoreOutlined-D2IhpVp5.js rename to src/agentkit/server/static/assets/AppstoreOutlined-CK96XqwQ.js index eacb348..72fa13a 100644 --- a/src/agentkit/server/static/assets/AppstoreOutlined-D2IhpVp5.js +++ b/src/agentkit/server/static/assets/AppstoreOutlined-CK96XqwQ.js @@ -1 +1 @@ -import{c as i,I as u}from"./index-Cdm90D30.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:u,componentCls:t,iconCls:n,avatarBg:r,avatarColor:o,containerSize:c,containerSizeLG:i,containerSizeSM:a,textFontSize:l,textFontSizeLG:f,textFontSizeSM:d,borderRadius:m,borderRadiusLG:h,borderRadiusSM:b,lineWidth:v,lineType:A}=e,F=(_,g,x)=>({width:_,height:_,lineHeight:`${_-v*2}px`,borderRadius:"50%",[`&${t}-square`]:{borderRadius:x},[`${t}-string`]:{position:"absolute",left:{_skip_check_:!0,value:"50%"},transformOrigin:"0 center"},[`&${t}-icon`]:{fontSize:g,[`> ${n}`]:{margin:0}}});return{[t]:w(w(w(w({},qr(e)),{position:"relative",display:"inline-block",overflow:"hidden",color:o,whiteSpace:"nowrap",textAlign:"center",verticalAlign:"middle",background:r,border:`${v}px ${A} transparent`,"&-image":{background:"transparent"},[`${u}-image-img`]:{display:"block"}}),F(c,l,m)),{"&-lg":w({},F(i,f,h)),"&-sm":w({},F(a,d,b)),"> img":{display:"block",width:"100%",height:"100%",objectFit:"cover"}})}},Ao=e=>{const{componentCls:u,groupBorderColor:t,groupOverlapping:n,groupSpace:r}=e;return{[`${u}-group`]:{display:"inline-flex",[`${u}`]:{borderColor:t},"> *:not(:first-child)":{marginInlineStart:n}},[`${u}-group-popover`]:{[`${u} + ${u}`]:{marginInlineStart:r}}}},G0=I0("Avatar",e=>{const{colorTextLightSolid:u,colorTextPlaceholder:t}=e,n=Ur(e,{avatarBg:t,avatarColor:u});return[Co(n),Ao(n)]},e=>{const{controlHeight:u,controlHeightLG:t,controlHeightSM:n,fontSize:r,fontSizeLG:o,fontSizeXL:c,fontSizeHeading3:i,marginXS:a,marginXXS:l,colorBorderBg:f}=e;return{containerSize:u,containerSizeLG:t,containerSizeSM:n,textFontSize:Math.round((o+c)/2),textFontSizeLG:i,textFontSizeSM:r,groupSpace:l,groupOverlapping:-a,groupBorderColor:f}}),W0=Symbol("AvatarContextKey"),Do=()=>Gr(W0,{}),vo=e=>Wr(W0,e),So=()=>({prefixCls:String,shape:{type:String,default:"circle"},size:{type:[Number,String,Object],default:()=>"default"},src:String,srcset:String,icon:Vr.any,alt:String,gap:Number,draggable:{type:Boolean,default:void 0},crossOrigin:String,loadError:{type:Function}}),cu=Ae({compatConfig:{MODE:3},name:"AAvatar",inheritAttrs:!1,props:So(),slots:Object,setup(e,u){let{slots:t,attrs:n}=u;const r=yu(!0),o=yu(!1),c=yu(1),i=yu(null),a=yu(null),{prefixCls:l}=gt("avatar",e),[f,d]=G0(l),m=Do(),h=xe(()=>e.size==="default"?m.size:e.size),b=co(),v=ao(()=>{if(typeof e.size!="object")return;const g=go.find(E=>b.value[E]);return e.size[g]}),A=g=>v.value?{width:`${v.value}px`,height:`${v.value}px`,lineHeight:`${v.value}px`,fontSize:`${g?v.value/2:18}px`}:{},F=()=>{if(!i.value||!a.value)return;const g=i.value.offsetWidth,x=a.value.offsetWidth;if(g!==0&&x!==0){const{gap:E=4}=e;E*2{const{loadError:g}=e;(g==null?void 0:g())!==!1&&(r.value=!1)};return au(()=>e.src,()=>{iu(()=>{r.value=!0,c.value=1})}),au(()=>e.gap,()=>{iu(()=>{F()})}),Vu(()=>{iu(()=>{F(),o.value=!0})}),()=>{var g,x;const{shape:E,src:S,alt:M,srcset:$,draggable:ue,crossOrigin:Z}=e,le=(g=m.shape)!==null&&g!==void 0?g:E,ie=M0(t,e,"icon"),fe=l.value,Be={[`${n.class}`]:!!n.class,[fe]:!0,[`${fe}-lg`]:h.value==="large",[`${fe}-sm`]:h.value==="small",[`${fe}-${le}`]:!0,[`${fe}-image`]:S&&r.value,[`${fe}-icon`]:ie,[d.value]:!0},C=typeof h.value=="number"?{width:`${h.value}px`,height:`${h.value}px`,lineHeight:`${h.value}px`,fontSize:ie?`${h.value/2}px`:"18px"}:{},O=(x=t.default)===null||x===void 0?void 0:x.call(t);let R;if(S&&r.value)R=D("img",{draggable:ue,src:S,srcset:$,onError:_,alt:M,crossorigin:Z},null);else if(ie)R=ie;else if(o.value||c.value!==1){const q=`scale(${c.value}) translateX(-50%)`,K={msTransform:q,WebkitTransform:q,transform:q},ye=typeof h.value=="number"?{lineHeight:`${h.value}px`}:{};R=D(U0,{onResize:F},{default:()=>[D("span",{class:`${fe}-string`,ref:i,style:w(w({},ye),K)},[O])]})}else R=D("span",{class:`${fe}-string`,ref:i,style:{opacity:0}},[O]);return f(D("span",he(he({},n),{},{ref:a,class:Be,style:[C,A(!!ie),n.style]}),[R]))}}}),To=()=>({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"}}),nn=Ae({compatConfig:{MODE:3},name:"AAvatarGroup",inheritAttrs:!1,props:To(),setup(e,u){let{slots:t,attrs:n}=u;const{prefixCls:r,direction:o}=gt("avatar",e),c=xe(()=>`${r.value}-group`),[i,a]=G0(r);return P0(()=>{const l={size:e.size,shape:e.shape};vo(l)}),()=>{const{maxPopoverPlacement:l="top",maxCount:f,maxStyle:d,maxPopoverTrigger:m="hover",shape:h}=e,b={[c.value]:!0,[`${c.value}-rtl`]:o.value==="rtl",[`${n.class}`]:!!n.class,[a.value]:!0},v=M0(t,e),A=Zr(v).map((_,g)=>xo(_,{key:`avatar-key-${g}`})),F=A.length;if(f&&f[D(cu,{style:d,shape:h},{default:()=>[`+${F-f}`]})]})),i(D("div",he(he({},n),{},{class:b,style:n.style}),[_]))}return i(D("div",he(he({},n),{},{class:b,style:n.style}),[A]))}}});cu.Group=nn;cu.install=function(e){return e.component(cu.name,cu),e.component(nn.name,nn),e};var Fo=function(e,u){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&u.indexOf(n)<0&&(t[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,n=Object.getOwnPropertySymbols(e);r{const{keyCode:h}=m;h===Bu.ENTER&&m.preventDefault()},a=m=>{const{keyCode:h}=m;h===Bu.ENTER&&n("click",m)},l=m=>{n("click",m)},f=()=>{c.value&&c.value.focus()},d=()=>{c.value&&c.value.blur()};return Vu(()=>{e.autofocus&&f()}),o({focus:f,blur:d}),()=>{var m;const{noStyle:h,disabled:b}=e,v=Fo(e,["noStyle","disabled"]);let A={};return h||(A=w({},wo)),b&&(A.pointerEvents="none"),D("div",he(he(he({role:"button",tabindex:0,ref:c},v),r),{},{onClick:l,onKeydown:i,onKeyup:a,style:w(w({},A),r.style||{})}),[(m=t.default)===null||m===void 0?void 0:m.call(t)])}}});var Oo={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 Gn(e){for(var u=1;u{const{sizeMarginHeadingVerticalEnd:r,fontWeightStrong:o}=n;return{marginBottom:r,color:t,fontWeight:o,fontSize:e,lineHeight:u}},Mo=e=>{const u=[1,2,3,4,5],t={};return u.forEach(n=>{t[` +import{M as Hr,C as Hn,u as jr}from"./chat-_tit2gm5.js";import{B as sn}from"./index-p0fEGd1V.js";import{x as I0,y as Ur,z as w,A as qr,B as Gr,C as Wr,d as Ae,D as gt,i as au,E as Vu,G as iu,H as M0,c as D,J as he,K as yu,f as xe,P as Vr,L as P0,M as Zr,I as lu,N as Yr,O as Xr,Q as z0,R as N0,r as su,S as Kr,T as Jr,U as jn,V as $t,F as Qe,W as Qr,X as eo,Y as uo,a as U,n as $u,b as ne,e as P,w as ke,k as ge,Z as L0,m as ve,j as Hu,o as z,$ as ku,t as Me,l as B0,a0 as to,a1 as no,a2 as ro,a3 as oo}from"./index-MxXYiP1e.js";import{R as $0,L as io}from"./LeftOutlined-CAv2mg6T.js";import{P as H0}from"./PlusOutlined-CMd58dlX.js";import{w as Ht,_ as vu}from"./_plugin-vue_export-helper-CbNEYfqg.js";import{u as co,e as ao,o as j0,F as so}from"./FolderOpenOutlined-DkHI-22a.js";import{i as lo,_ as fo,s as po,u as ho,C as bo,S as Un,I as mo}from"./index-C-JDvA85.js";import{r as go}from"./responsiveObserve-BPXXLIQF.js";import{R as U0}from"./index-BzwcKMhL.js";import{c as xo}from"./zoom-BTwsIXn4.js";import{P as _o}from"./index-BaJrEU40.js";import{U as yo,T as Eo}from"./UserOutlined-3o_0Hvh7.js";import{S as ko}from"./index-BjhFFLnY.js";import{T as jt}from"./index-BsO-BQWw.js";import{K as Bu}from"./KeyCode-c8YLmrmC.js";import{i as q0}from"./styleChecker-BO8K1F6-.js";import{A as Ut}from"./base--VGJiuPH.js";import{o as Su}from"./FormItemContext-CIZixMRP.js";import"./devWarning-Ct6dVMcH.js";const Co=e=>{const{antCls:u,componentCls:t,iconCls:n,avatarBg:r,avatarColor:o,containerSize:c,containerSizeLG:i,containerSizeSM:a,textFontSize:l,textFontSizeLG:f,textFontSizeSM:d,borderRadius:m,borderRadiusLG:h,borderRadiusSM:b,lineWidth:v,lineType:A}=e,F=(_,g,x)=>({width:_,height:_,lineHeight:`${_-v*2}px`,borderRadius:"50%",[`&${t}-square`]:{borderRadius:x},[`${t}-string`]:{position:"absolute",left:{_skip_check_:!0,value:"50%"},transformOrigin:"0 center"},[`&${t}-icon`]:{fontSize:g,[`> ${n}`]:{margin:0}}});return{[t]:w(w(w(w({},qr(e)),{position:"relative",display:"inline-block",overflow:"hidden",color:o,whiteSpace:"nowrap",textAlign:"center",verticalAlign:"middle",background:r,border:`${v}px ${A} transparent`,"&-image":{background:"transparent"},[`${u}-image-img`]:{display:"block"}}),F(c,l,m)),{"&-lg":w({},F(i,f,h)),"&-sm":w({},F(a,d,b)),"> img":{display:"block",width:"100%",height:"100%",objectFit:"cover"}})}},Ao=e=>{const{componentCls:u,groupBorderColor:t,groupOverlapping:n,groupSpace:r}=e;return{[`${u}-group`]:{display:"inline-flex",[`${u}`]:{borderColor:t},"> *:not(:first-child)":{marginInlineStart:n}},[`${u}-group-popover`]:{[`${u} + ${u}`]:{marginInlineStart:r}}}},G0=I0("Avatar",e=>{const{colorTextLightSolid:u,colorTextPlaceholder:t}=e,n=Ur(e,{avatarBg:t,avatarColor:u});return[Co(n),Ao(n)]},e=>{const{controlHeight:u,controlHeightLG:t,controlHeightSM:n,fontSize:r,fontSizeLG:o,fontSizeXL:c,fontSizeHeading3:i,marginXS:a,marginXXS:l,colorBorderBg:f}=e;return{containerSize:u,containerSizeLG:t,containerSizeSM:n,textFontSize:Math.round((o+c)/2),textFontSizeLG:i,textFontSizeSM:r,groupSpace:l,groupOverlapping:-a,groupBorderColor:f}}),W0=Symbol("AvatarContextKey"),Do=()=>Gr(W0,{}),vo=e=>Wr(W0,e),So=()=>({prefixCls:String,shape:{type:String,default:"circle"},size:{type:[Number,String,Object],default:()=>"default"},src:String,srcset:String,icon:Vr.any,alt:String,gap:Number,draggable:{type:Boolean,default:void 0},crossOrigin:String,loadError:{type:Function}}),cu=Ae({compatConfig:{MODE:3},name:"AAvatar",inheritAttrs:!1,props:So(),slots:Object,setup(e,u){let{slots:t,attrs:n}=u;const r=yu(!0),o=yu(!1),c=yu(1),i=yu(null),a=yu(null),{prefixCls:l}=gt("avatar",e),[f,d]=G0(l),m=Do(),h=xe(()=>e.size==="default"?m.size:e.size),b=co(),v=ao(()=>{if(typeof e.size!="object")return;const g=go.find(E=>b.value[E]);return e.size[g]}),A=g=>v.value?{width:`${v.value}px`,height:`${v.value}px`,lineHeight:`${v.value}px`,fontSize:`${g?v.value/2:18}px`}:{},F=()=>{if(!i.value||!a.value)return;const g=i.value.offsetWidth,x=a.value.offsetWidth;if(g!==0&&x!==0){const{gap:E=4}=e;E*2{const{loadError:g}=e;(g==null?void 0:g())!==!1&&(r.value=!1)};return au(()=>e.src,()=>{iu(()=>{r.value=!0,c.value=1})}),au(()=>e.gap,()=>{iu(()=>{F()})}),Vu(()=>{iu(()=>{F(),o.value=!0})}),()=>{var g,x;const{shape:E,src:S,alt:M,srcset:$,draggable:ue,crossOrigin:Z}=e,le=(g=m.shape)!==null&&g!==void 0?g:E,ie=M0(t,e,"icon"),fe=l.value,Be={[`${n.class}`]:!!n.class,[fe]:!0,[`${fe}-lg`]:h.value==="large",[`${fe}-sm`]:h.value==="small",[`${fe}-${le}`]:!0,[`${fe}-image`]:S&&r.value,[`${fe}-icon`]:ie,[d.value]:!0},C=typeof h.value=="number"?{width:`${h.value}px`,height:`${h.value}px`,lineHeight:`${h.value}px`,fontSize:ie?`${h.value/2}px`:"18px"}:{},O=(x=t.default)===null||x===void 0?void 0:x.call(t);let R;if(S&&r.value)R=D("img",{draggable:ue,src:S,srcset:$,onError:_,alt:M,crossorigin:Z},null);else if(ie)R=ie;else if(o.value||c.value!==1){const q=`scale(${c.value}) translateX(-50%)`,K={msTransform:q,WebkitTransform:q,transform:q},ye=typeof h.value=="number"?{lineHeight:`${h.value}px`}:{};R=D(U0,{onResize:F},{default:()=>[D("span",{class:`${fe}-string`,ref:i,style:w(w({},ye),K)},[O])]})}else R=D("span",{class:`${fe}-string`,ref:i,style:{opacity:0}},[O]);return f(D("span",he(he({},n),{},{ref:a,class:Be,style:[C,A(!!ie),n.style]}),[R]))}}}),To=()=>({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"}}),nn=Ae({compatConfig:{MODE:3},name:"AAvatarGroup",inheritAttrs:!1,props:To(),setup(e,u){let{slots:t,attrs:n}=u;const{prefixCls:r,direction:o}=gt("avatar",e),c=xe(()=>`${r.value}-group`),[i,a]=G0(r);return P0(()=>{const l={size:e.size,shape:e.shape};vo(l)}),()=>{const{maxPopoverPlacement:l="top",maxCount:f,maxStyle:d,maxPopoverTrigger:m="hover",shape:h}=e,b={[c.value]:!0,[`${c.value}-rtl`]:o.value==="rtl",[`${n.class}`]:!!n.class,[a.value]:!0},v=M0(t,e),A=Zr(v).map((_,g)=>xo(_,{key:`avatar-key-${g}`})),F=A.length;if(f&&f[D(cu,{style:d,shape:h},{default:()=>[`+${F-f}`]})]})),i(D("div",he(he({},n),{},{class:b,style:n.style}),[_]))}return i(D("div",he(he({},n),{},{class:b,style:n.style}),[A]))}}});cu.Group=nn;cu.install=function(e){return e.component(cu.name,cu),e.component(nn.name,nn),e};var Fo=function(e,u){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&u.indexOf(n)<0&&(t[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,n=Object.getOwnPropertySymbols(e);r{const{keyCode:h}=m;h===Bu.ENTER&&m.preventDefault()},a=m=>{const{keyCode:h}=m;h===Bu.ENTER&&n("click",m)},l=m=>{n("click",m)},f=()=>{c.value&&c.value.focus()},d=()=>{c.value&&c.value.blur()};return Vu(()=>{e.autofocus&&f()}),o({focus:f,blur:d}),()=>{var m;const{noStyle:h,disabled:b}=e,v=Fo(e,["noStyle","disabled"]);let A={};return h||(A=w({},wo)),b&&(A.pointerEvents="none"),D("div",he(he(he({role:"button",tabindex:0,ref:c},v),r),{},{onClick:l,onKeydown:i,onKeyup:a,style:w(w({},A),r.style||{})}),[(m=t.default)===null||m===void 0?void 0:m.call(t)])}}});var Oo={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 Gn(e){for(var u=1;u{const{sizeMarginHeadingVerticalEnd:r,fontWeightStrong:o}=n;return{marginBottom:r,color:t,fontWeight:o,fontSize:e,lineHeight:u}},Mo=e=>{const u=[1,2,3,4,5],t={};return u.forEach(n=>{t[` h${n}&, div&-h${n}, div&-h${n} > textarea, @@ -30,4 +30,4 @@ import{M as Hr,C as Hn,u as jr}from"./chat-DurNpMLt.js";import{B as sn}from"./in `),u=u.replace(Cc,"�"),e.src=u}function Dc(e){let u;e.inlineMode?(u=new e.Token("inline","",0),u.content=e.src,u.map=[0,1],u.children=[],e.tokens.push(u)):e.md.block.parse(e.src,e.md,e.env,e.tokens)}function vc(e){const u=e.tokens;for(let t=0,n=u.length;t\s]/i.test(e)}function Tc(e){return/^<\/a\s*>/i.test(e)}function Fc(e){const u=e.tokens;if(e.md.options.linkify)for(let t=0,n=u.length;t=0;c--){const i=r[c];if(i.type==="link_close"){for(c--;r[c].level!==i.level&&r[c].type!=="link_open";)c--;continue}if(i.type==="html_inline"&&(Sc(i.content)&&o>0&&o--,Tc(i.content)&&o++),!(o>0)&&i.type==="text"&&e.md.linkify.test(i.content)){const a=i.content;let l=e.md.linkify.match(a);const f=[];let d=i.level,m=0;l.length>0&&l[0].index===0&&c>0&&r[c-1].type==="text_special"&&(l=l.slice(1));for(let h=0;hm){const E=new e.Token("text","",0);E.content=a.slice(m,F),E.level=d,f.push(E)}const _=new e.Token("link_open","a",1);_.attrs=[["href",v]],_.level=d++,_.markup="linkify",_.info="auto",f.push(_);const g=new e.Token("text","",0);g.content=A,g.level=d,f.push(g);const x=new e.Token("link_close","a",-1);x.level=--d,x.markup="linkify",x.info="auto",f.push(x),m=l[h].lastIndex}if(m=0;t--){const n=e[t];n.type==="text"&&!u&&(n.content=n.content.replace(Oc,Ic)),n.type==="link_open"&&n.info==="auto"&&u--,n.type==="link_close"&&n.info==="auto"&&u++}}function Pc(e){let u=0;for(let t=e.length-1;t>=0;t--){const n=e[t];n.type==="text"&&!u&&or.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"&&u--,n.type==="link_close"&&n.info==="auto"&&u++}}function zc(e){let u;if(e.md.options.typographer)for(u=e.tokens.length-1;u>=0;u--)e.tokens[u].type==="inline"&&(wc.test(e.tokens[u].content)&&Mc(e.tokens[u].children),or.test(e.tokens[u].content)&&Pc(e.tokens[u].children))}const Nc=/['"]/,a0=/['"]/g,s0="’";function dt(e,u,t,n){e[u]||(e[u]=[]),e[u].push({pos:t,ch:n})}function Lc(e,u){let t="",n=0;u.sort((r,o)=>r.pos-o.pos);for(let r=0;r=0&&!(n[t].level<=i);t--);if(n.length=t+1,c.type!=="text")continue;const a=c.content;let l=0;const f=a.length;e:for(;l=0)v=a.charCodeAt(d.index-1);else for(t=o-1;t>=0&&!(e[t].type==="softbreak"||e[t].type==="hardbreak");t--)if(e[t].content){v=e[t].content.charCodeAt(e[t].content.length-1);break}let A=32;if(l=48&&v<=57&&(h=m=!1),m&&h&&(m=F,h=_),!m&&!h){b&&dt(r,o,d.index,s0);continue}if(h)for(t=n.length-1;t>=0;t--){let E=n[t];if(n[t].level=0;u--)e.tokens[u].type!=="inline"||!Nc.test(e.tokens[u].content)||Bc(e.tokens[u].children,e)}function Hc(e){let u,t;const n=e.tokens,r=n.length;for(let o=0;o0&&this.level++,this.tokens.push(n),n};Le.prototype.isEmpty=function(u){return this.bMarks[u]+this.tShift[u]>=this.eMarks[u]};Le.prototype.skipEmptyLines=function(u){for(let t=this.lineMax;ut;)if(!B(this.src.charCodeAt(--u)))return u+1;return u};Le.prototype.skipChars=function(u,t){for(let n=this.src.length;un;)if(t!==this.src.charCodeAt(--u))return u+1;return u};Le.prototype.getLines=function(u,t,n,r){if(u>=t)return"";const o=new Array(t-u);for(let c=0,i=u;in?o[c]=new Array(a-n+1).join(" ")+this.src.slice(f,d):o[c]=this.src.slice(f,d)}return o.join("")};Le.prototype.Token=Se;const jc=65536;function Vt(e,u){const t=e.bMarks[u]+e.tShift[u],n=e.eMarks[u];return e.src.slice(t,n)}function l0(e){const u=[],t=e.length;let n=0,r=e.charCodeAt(n),o=!1,c=0,i="";for(;nt)return!1;let r=u+1;if(e.sCount[r]=4)return!1;let o=e.bMarks[r]+e.tShift[r];if(o>=e.eMarks[r])return!1;const c=e.src.charCodeAt(o++);if(c!==124&&c!==45&&c!==58||o>=e.eMarks[r])return!1;const i=e.src.charCodeAt(o++);if(i!==124&&i!==45&&i!==58&&!B(i)||c===45&&B(i))return!1;for(;o=4)return!1;l=l0(a),l.length&&l[0]===""&&l.shift(),l.length&&l[l.length-1]===""&&l.pop();const d=l.length;if(d===0||d!==f.length)return!1;if(n)return!0;const m=e.parentType;e.parentType="table";const h=e.md.block.ruler.getRules("blockquote"),b=e.push("table_open","table",1),v=[u,0];b.map=v;const A=e.push("thead_open","thead",1);A.map=[u,u+1];const F=e.push("tr_open","tr",1);F.map=[u,u+1];for(let x=0;x=4||(l=l0(a),l.length&&l[0]===""&&l.shift(),l.length&&l[l.length-1]===""&&l.pop(),g+=d-l.length,g>jc))break;if(r===u+2){const S=e.push("tbody_open","tbody",1);S.map=_=[u+2,0]}const E=e.push("tr_open","tr",1);E.map=[r,r+1];for(let S=0;S=4){n++,r=n;continue}break}e.line=r;const o=e.push("code_block","code",0);return o.content=e.getLines(u,r,4+e.blkIndent,!1)+` `,o.map=[u,e.line],!0}function Gc(e,u,t,n){let r=e.bMarks[u]+e.tShift[u],o=e.eMarks[u];if(e.sCount[u]-e.blkIndent>=4||r+3>o)return!1;const c=e.src.charCodeAt(r);if(c!==126&&c!==96)return!1;let i=r;r=e.skipChars(r,c);let a=r-i;if(a<3)return!1;const l=e.src.slice(i,r),f=e.src.slice(r,o);if(c===96&&f.indexOf(String.fromCharCode(c))>=0)return!1;if(n)return!0;let d=u,m=!1;for(;d++,!(d>=t||(r=i=e.bMarks[d]+e.tShift[d],o=e.eMarks[d],r=4)&&(r=e.skipChars(r,c),!(r-i=4||e.src.charCodeAt(r)!==62)return!1;if(n)return!0;const i=[],a=[],l=[],f=[],d=e.md.block.ruler.getRules("blockquote"),m=e.parentType;e.parentType="blockquote";let h=!1,b;for(b=u;b=o)break;if(e.src.charCodeAt(r++)===62&&!g){let E=e.sCount[b]+1,S,M;e.src.charCodeAt(r)===32?(r++,E++,M=!1,S=!0):e.src.charCodeAt(r)===9?(S=!0,(e.bsCount[b]+E)%4===3?(r++,E++,M=!1):M=!0):S=!1;let $=E;for(i.push(e.bMarks[b]),e.bMarks[b]=r;r=o,a.push(e.bsCount[b]),e.bsCount[b]=e.sCount[b]+1+(S?1:0),l.push(e.sCount[b]),e.sCount[b]=$-E,f.push(e.tShift[b]),e.tShift[b]=r-e.bMarks[b];continue}if(h)break;let x=!1;for(let E=0,S=d.length;E";const F=[u,0];A.map=F,e.md.block.tokenize(e,u,b);const _=e.push("blockquote_close","blockquote",-1);_.markup=">",e.lineMax=c,e.parentType=m,F[1]=e.line;for(let g=0;g=4)return!1;let o=e.bMarks[u]+e.tShift[u];const c=e.src.charCodeAt(o++);if(c!==42&&c!==45&&c!==95)return!1;let i=1;for(;o=n)return-1;let o=e.src.charCodeAt(r++);if(o<48||o>57)return-1;for(;;){if(r>=n)return-1;if(o=e.src.charCodeAt(r++),o>=48&&o<=57){if(r-t>=10)return-1;continue}if(o===41||o===46)break;return-1}return r=4||e.listIndent>=0&&e.sCount[a]-e.listIndent>=4&&e.sCount[a]=e.blkIndent&&(f=!0);let d,m,h;if((h=d0(e,a))>=0){if(d=!0,c=e.bMarks[a]+e.tShift[a],m=Number(e.src.slice(c,h-1)),f&&m!==1)return!1}else if((h=f0(e,a))>=0)d=!1;else return!1;if(f&&e.skipSpaces(h)>=e.eMarks[a])return!1;if(n)return!0;const b=e.src.charCodeAt(h-1),v=e.tokens.length;d?(i=e.push("ordered_list_open","ol",1),m!==1&&(i.attrs=[["start",m]])):i=e.push("bullet_list_open","ul",1);const A=[a,0];i.map=A,i.markup=String.fromCharCode(b);let F=!1;const _=e.md.block.ruler.getRules("list"),g=e.parentType;for(e.parentType="list";a=r?M=1:M=E-x,M>4&&(M=1);const $=x+M;i=e.push("list_item_open","li",1),i.markup=String.fromCharCode(b);const ue=[a,0];i.map=ue,d&&(i.info=e.src.slice(c,h-1));const Z=e.tight,le=e.tShift[a],ie=e.sCount[a],fe=e.listIndent;if(e.listIndent=e.blkIndent,e.blkIndent=$,e.tight=!0,e.tShift[a]=S-e.bMarks[a],e.sCount[a]=E,S>=r&&e.isEmpty(a+1)?e.line=Math.min(e.line+2,t):e.md.block.tokenize(e,a,t,!0),(!e.tight||F)&&(l=!1),F=e.line-a>1&&e.isEmpty(e.line-1),e.blkIndent=e.listIndent,e.listIndent=fe,e.tShift[a]=le,e.sCount[a]=ie,e.tight=Z,i=e.push("list_item_close","li",-1),i.markup=String.fromCharCode(b),a=e.line,ue[1]=a,a>=t||e.sCount[a]=4)break;let Be=!1;for(let C=0,O=_.length;C=4||e.src.charCodeAt(r)!==91)return!1;function i(_){const g=e.lineMax;if(_>=g||e.isEmpty(_))return null;let x=!1;if(e.sCount[_]-e.blkIndent>3&&(x=!0),e.sCount[_]<0&&(x=!0),!x){const M=e.md.block.ruler.getRules("reference"),$=e.parentType;e.parentType="reference";let ue=!1;for(let Z=0,le=M.length;Z"u"&&(e.env.references={}),typeof e.env.references[F]>"u"&&(e.env.references[F]={title:A,href:d}),e.line=c),!0):!1}const Kc=["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"],Jc="[a-zA-Z_:][a-zA-Z0-9:._-]*",Qc="[^\"'=<>`\\x00-\\x20]+",ea="'[^']*'",ua='"[^"]*"',ta="(?:"+Qc+"|"+ea+"|"+ua+")",na="(?:\\s+"+Jc+"(?:\\s*=\\s*"+ta+")?)",ir="<[A-Za-z][A-Za-z0-9\\-]*"+na+"*\\s*\\/?>",cr="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",ra="",oa="<[?][\\s\\S]*?[?]>",ia="]*>",ca="",aa=new RegExp("^(?:"+ir+"|"+cr+"|"+ra+"|"+oa+"|"+ia+"|"+ca+")"),sa=new RegExp("^(?:"+ir+"|"+cr+")"),ru=[[/^<(script|pre|style|textarea)(?=(\s|>|$))/i,/<\/(script|pre|style|textarea)>/i,!0],[/^/,!0],[/^<\?/,/\?>/,!0],[/^/,!0],[/^/,!0],[new RegExp("^|$))","i"),/^$/,!0],[new RegExp(sa.source+"\\s*$"),/^$/,!1]];function la(e,u,t,n){let r=e.bMarks[u]+e.tShift[u],o=e.eMarks[u];if(e.sCount[u]-e.blkIndent>=4||!e.md.options.html||e.src.charCodeAt(r)!==60)return!1;let c=e.src.slice(r,o),i=0;for(;i=4)return!1;let c=e.src.charCodeAt(r);if(c!==35||r>=o)return!1;let i=1;for(c=e.src.charCodeAt(++r);c===35&&r6||rr&&B(e.src.charCodeAt(a-1))&&(o=a),e.line=u+1;const l=e.push("heading_open","h"+String(i),1);l.markup="########".slice(0,i),l.map=[u,e.line];const f=e.push("inline","",0);f.content=kt(e.src.slice(r,o)),f.map=[u,e.line],f.children=[];const d=e.push("heading_close","h"+String(i),-1);return d.markup="########".slice(0,i),!0}function da(e,u,t){const n=e.md.block.ruler.getRules("paragraph");if(e.sCount[u]-e.blkIndent>=4)return!1;const r=e.parentType;e.parentType="paragraph";let o=0,c,i=u+1;for(;i3)continue;if(e.sCount[i]>=e.blkIndent){let h=e.bMarks[i]+e.tShift[i];const b=e.eMarks[i];if(h=b))){o=c===61?1:2;break}}if(e.sCount[i]<0)continue;let m=!1;for(let h=0,b=n.length;h3||e.sCount[o]<0)continue;let l=!1;for(let f=0,d=n.length;f=t||e.sCount[c]=o){e.line=t;break}const a=e.line;let l=!1;for(let f=0;f=e.line)throw new Error("block rule didn't increment state.line");break}if(!l)throw new Error("none of the block rules matched");e.tight=!i,e.isEmpty(e.line-1)&&(i=!0),c=e.line,c0&&(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};ut.prototype.scanDelims=function(e,u){const t=this.posMax,n=this.src.charCodeAt(e);let r;if(e===0)r=32;else if(e===1)r=this.src.charCodeAt(0),(r&63488)===55296&&(r=65533);else if(r=this.src.charCodeAt(e-1),(r&64512)===56320){const A=this.src.charCodeAt(e-2);r=(A&64512)===55296?65536+(A-55296<<10)+(r-56320):65533}else(r&64512)===55296&&(r=65533);let o=e;for(;o0)return!1;const t=e.pos,n=e.posMax;if(t+3>n||e.src.charCodeAt(t)!==58||e.src.charCodeAt(t+1)!==47||e.src.charCodeAt(t+2)!==47)return!1;const r=e.pending.match(ma);if(!r)return!1;const o=r[1],c=e.md.linkify.matchAtStart(e.src.slice(t-o.length));if(!c)return!1;let i=c.url;if(i.length<=o.length)return!1;let a=i.length;for(;a>0&&i.charCodeAt(a-1)===42;)a--;a!==i.length&&(i=i.slice(0,a));const l=e.md.normalizeLink(i);if(!e.md.validateLink(l))return!1;if(!u){e.pending=e.pending.slice(0,-o.length);const f=e.push("link_open","a",1);f.attrs=[["href",l]],f.markup="linkify",f.info="auto";const d=e.push("text","",0);d.content=e.md.normalizeLinkText(i);const m=e.push("link_close","a",-1);m.markup="linkify",m.info="auto"}return e.pos+=i.length-o.length,!0}function xa(e,u){let t=e.pos;if(e.src.charCodeAt(t)!==10)return!1;const n=e.pending.length-1,r=e.posMax;if(!u)if(n>=0&&e.pending.charCodeAt(n)===32)if(n>=1&&e.pending.charCodeAt(n-1)===32){let o=n-1;for(;o>=1&&e.pending.charCodeAt(o-1)===32;)o--;e.pending=e.pending.slice(0,o),e.push("hardbreak","br",0)}else e.pending=e.pending.slice(0,-1),e.push("softbreak","br",0);else e.push("softbreak","br",0);for(t++;t?@[]^_`{|}~-".split("").forEach(function(e){En[e.charCodeAt(0)]=1});function _a(e,u){let t=e.pos;const n=e.posMax;if(e.src.charCodeAt(t)!==92||(t++,t>=n))return!1;let r=e.src.charCodeAt(t);if(r===10){for(u||e.push("hardbreak","br",0),t++;t=55296&&r<=56319&&t+1=56320&&i<=57343&&(o+=e.src[t+1],t++)}const c="\\"+o;if(!u){const i=e.push("text_special","",0);r<256&&En[r]!==0?i.content=o:i.content=c,i.markup=c,i.info="escape"}return e.pos=t+1,!0}function ya(e,u){let t=e.pos;if(e.src.charCodeAt(t)!==96)return!1;const r=t;t++;const o=e.posMax;for(;t=0;n--){const r=u[n];if(r.marker!==95&&r.marker!==42||r.end===-1)continue;const o=u[r.end],c=n>0&&u[n-1].end===r.end+1&&u[n-1].marker===r.marker&&u[n-1].token===r.token-1&&u[r.end+1].token===o.token+1,i=String.fromCharCode(r.marker),a=e.tokens[r.token];a.type=c?"strong_open":"em_open",a.tag=c?"strong":"em",a.nesting=1,a.markup=c?i+i:i,a.content="";const l=e.tokens[o.token];l.type=c?"strong_close":"em_close",l.tag=c?"strong":"em",l.nesting=-1,l.markup=c?i+i:i,l.content="",c&&(e.tokens[u[n-1].token].content="",e.tokens[u[r.end+1].token].content="",n--)}}function Aa(e){const u=e.tokens_meta,t=e.tokens_meta.length;h0(e,e.delimiters);for(let n=0;n=d)return!1;if(a=b,r=e.md.helpers.parseLinkDestination(e.src,b,e.posMax),r.ok){for(c=e.md.normalizeLink(r.str),e.md.validateLink(c)?b=r.pos:c="",a=b;b=d||e.src.charCodeAt(b)!==41)&&(l=!0),b++}if(l){if(typeof e.env.references>"u")return!1;if(b=0?n=e.src.slice(a,b++):b=h+1):b=h+1,n||(n=e.src.slice(m,h)),o=e.env.references[Et(n)],!o)return e.pos=f,!1;c=o.href,i=o.title}if(!u){e.pos=m,e.posMax=h;const v=e.push("link_open","a",1),A=[["href",c]];v.attrs=A,i&&A.push(["title",i]),e.linkLevel++,e.md.inline.tokenize(e),e.linkLevel--,e.push("link_close","a",-1)}return e.pos=b,e.posMax=d,!0}function va(e,u){let t,n,r,o,c,i,a,l,f="";const d=e.pos,m=e.posMax;if(e.src.charCodeAt(e.pos)!==33||e.src.charCodeAt(e.pos+1)!==91)return!1;const h=e.pos+2,b=e.md.helpers.parseLinkLabel(e,e.pos+1,!1);if(b<0)return!1;if(o=b+1,o=m)return!1;for(l=o,i=e.md.helpers.parseLinkDestination(e.src,o,e.posMax),i.ok&&(f=e.md.normalizeLink(i.str),e.md.validateLink(f)?o=i.pos:f=""),l=o;o=m||e.src.charCodeAt(o)!==41)return e.pos=d,!1;o++}else{if(typeof e.env.references>"u")return!1;if(o=0?r=e.src.slice(l,o++):o=b+1):o=b+1,r||(r=e.src.slice(h,b)),c=e.env.references[Et(r)],!c)return e.pos=d,!1;f=c.href,a=c.title}if(!u){n=e.src.slice(h,b);const v=[];e.md.inline.parse(n,e.md,e.env,v);const A=e.push("image","img",0),F=[["src",f],["alt",""]];A.attrs=F,A.children=v,A.content=n,a&&F.push(["title",a])}return e.pos=o,e.posMax=m,!0}const Sa=/^([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])?)*)$/,Ta=/^([a-zA-Z][a-zA-Z0-9+.-]{1,31}):([^<>\x00-\x20]*)$/;function Fa(e,u){let t=e.pos;if(e.src.charCodeAt(t)!==60)return!1;const n=e.pos,r=e.posMax;for(;;){if(++t>=r)return!1;const c=e.src.charCodeAt(t);if(c===60)return!1;if(c===62)break}const o=e.src.slice(n+1,t);if(Ta.test(o)){const c=e.md.normalizeLink(o);if(!e.md.validateLink(c))return!1;if(!u){const i=e.push("link_open","a",1);i.attrs=[["href",c]],i.markup="autolink",i.info="auto";const a=e.push("text","",0);a.content=e.md.normalizeLinkText(o);const l=e.push("link_close","a",-1);l.markup="autolink",l.info="auto"}return e.pos+=o.length+2,!0}if(Sa.test(o)){const c=e.md.normalizeLink("mailto:"+o);if(!e.md.validateLink(c))return!1;if(!u){const i=e.push("link_open","a",1);i.attrs=[["href",c]],i.markup="autolink",i.info="auto";const a=e.push("text","",0);a.content=e.md.normalizeLinkText(o);const l=e.push("link_close","a",-1);l.markup="autolink",l.info="auto"}return e.pos+=o.length+2,!0}return!1}function wa(e){return/^\s]/i.test(e)}function Oa(e){return/^<\/a\s*>/i.test(e)}function Ra(e){const u=e|32;return u>=97&&u<=122}function Ia(e,u){if(!e.md.options.html)return!1;const t=e.posMax,n=e.pos;if(e.src.charCodeAt(n)!==60||n+2>=t)return!1;const r=e.src.charCodeAt(n+1);if(r!==33&&r!==63&&r!==47&&!Ra(r))return!1;const o=e.src.slice(n).match(aa);if(!o)return!1;if(!u){const c=e.push("html_inline","",0);c.content=o[0],wa(c.content)&&e.linkLevel++,Oa(c.content)&&e.linkLevel--}return e.pos+=o[0].length,!0}const Ma=/^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,Pa=/^&([a-z][a-z0-9]{1,31});/i;function za(e,u){const t=e.pos,n=e.posMax;if(e.src.charCodeAt(t)!==38||t+1>=n)return!1;if(e.src.charCodeAt(t+1)===35){const o=e.src.slice(t).match(Ma);if(o){if(!u){const c=o[1][0].toLowerCase()==="x"?parseInt(o[1].slice(1),16):parseInt(o[1],10),i=e.push("text_special","",0);i.content=_n(c)?ju(c):ju(65533),i.markup=o[0],i.info="entity"}return e.pos+=o[0].length,!0}}else{const o=e.src.slice(t).match(Pa);if(o){const c=uc(o[0]);if(c!==o[0]){if(!u){const i=e.push("text_special","",0);i.content=c,i.markup=o[0],i.info="entity"}return e.pos+=o[0].length,!0}}}return!1}function b0(e){const u={},t=e.length;if(!t)return;let n=0,r=-2;const o=[];for(let c=0;ca;l-=o[l]+1){const d=e[l];if(d.marker===i.marker&&d.open&&d.end<0){let m=!1;if((d.close||i.open)&&(d.length+i.length)%3===0&&(d.length%3!==0||i.length%3!==0)&&(m=!0),!m){const h=l>0&&!e[l-1].open?o[l-1]+1:0;o[c]=c-l+h,o[l]=h,i.open=!1,d.end=c,d.close=!1,f=-1,r=-2;break}}}f!==-1&&(u[i.marker][(i.open?3:0)+(i.length||0)%3]=f)}}function Na(e){const u=e.tokens_meta,t=e.tokens_meta.length;b0(e.delimiters);for(let n=0;n0&&n++,r[u].type==="text"&&u+1=e.pos)throw new Error("inline rule didn't increment state.pos");break}}else e.pos=e.posMax;c||e.pos++,o[u]=e.pos};tt.prototype.tokenize=function(e){const u=this.ruler.getRules(""),t=u.length,n=e.posMax,r=e.md.options.maxNesting;for(;e.pos=e.pos)throw new Error("inline rule didn't increment state.pos");break}}if(c){if(e.pos>=n)break;continue}e.pending+=e.src[e.pos++]}e.pending&&e.pushPending()};tt.prototype.parse=function(e,u,t,n){const r=new this.State(e,u,t,n);this.tokenize(r);const o=this.ruler2.getRules(""),c=o.length;for(let i=0;i|$))",u.tpl_email_fuzzy="(^|"+t+'|"|\\(|'+u.src_ZCc+")("+u.src_email_name+"@"+u.tpl_host_fuzzy_strict+")",u.tpl_link_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+u.src_ZPCc+"))((?![$+<=>^`||])"+u.tpl_host_port_fuzzy_strict+u.src_path+")",u.tpl_link_no_ip_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+u.src_ZPCc+"))((?![$+<=>^`||])"+u.tpl_host_port_no_ip_fuzzy_strict+u.src_path+")",u}function on(e){return Array.prototype.slice.call(arguments,1).forEach(function(t){t&&Object.keys(t).forEach(function(n){e[n]=t[n]})}),e}function At(e){return Object.prototype.toString.call(e)}function $a(e){return At(e)==="[object String]"}function Ha(e){return At(e)==="[object Object]"}function ja(e){return At(e)==="[object RegExp]"}function m0(e){return At(e)==="[object Function]"}function Ua(e){return e.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}const lr={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};function qa(e){return Object.keys(e||{}).reduce(function(u,t){return u||lr.hasOwnProperty(t)},!1)}const Ga={"http:":{validate:function(e,u,t){const n=e.slice(u);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(e,u,t){const n=e.slice(u);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)?u>=3&&e[u-3]===":"||u>=3&&e[u-3]==="/"?0:n.match(t.re.no_http)[0].length:0}},"mailto:":{validate:function(e,u,t){const n=e.slice(u);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}}},Wa="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]",Va="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");function Za(e){return function(u,t){const n=u.slice(t);return e.test(n)?n.match(e)[0].length:0}}function g0(){return function(e,u){u.normalize(e)}}function mt(e){const u=e.re=Ba(e.__opts__),t=e.__tlds__.slice();e.onCompile(),e.__tlds_replaced__||t.push(Wa),t.push(u.src_xn),u.src_tlds=t.join("|");function n(i){return i.replace("%TLDS%",u.src_tlds)}u.email_fuzzy=RegExp(n(u.tpl_email_fuzzy),"i"),u.email_fuzzy_global=RegExp(n(u.tpl_email_fuzzy),"ig"),u.link_fuzzy=RegExp(n(u.tpl_link_fuzzy),"i"),u.link_fuzzy_global=RegExp(n(u.tpl_link_fuzzy),"ig"),u.link_no_ip_fuzzy=RegExp(n(u.tpl_link_no_ip_fuzzy),"i"),u.link_no_ip_fuzzy_global=RegExp(n(u.tpl_link_no_ip_fuzzy),"ig"),u.host_fuzzy_test=RegExp(n(u.tpl_host_fuzzy_test),"i");const r=[];e.__compiled__={};function o(i,a){throw new Error('(LinkifyIt) Invalid schema "'+i+'": '+a)}Object.keys(e.__schemas__).forEach(function(i){const a=e.__schemas__[i];if(a===null)return;const l={validate:null,link:null};if(e.__compiled__[i]=l,Ha(a)){ja(a.validate)?l.validate=Za(a.validate):m0(a.validate)?l.validate=a.validate:o(i,a),m0(a.normalize)?l.normalize=a.normalize:a.normalize?o(i,a):l.normalize=g0();return}if($a(a)){r.push(i);return}o(i,a)}),r.forEach(function(i){e.__compiled__[e.__schemas__[i]]&&(e.__compiled__[i].validate=e.__compiled__[e.__schemas__[i]].validate,e.__compiled__[i].normalize=e.__compiled__[e.__schemas__[i]].normalize)}),e.__compiled__[""]={validate:null,normalize:g0()};const c=Object.keys(e.__compiled__).filter(function(i){return i.length>0&&e.__compiled__[i]}).map(Ua).join("|");e.re.schema_test=RegExp("(^|(?!_)(?:[><|]|"+u.src_ZPCc+"))("+c+")","i"),e.re.schema_search=RegExp("(^|(?!_)(?:[><|]|"+u.src_ZPCc+"))("+c+")","ig"),e.re.schema_at_start=RegExp("^"+e.re.schema_search.source,"i"),e.re.pretest=RegExp("("+e.re.schema_test.source+")|("+e.re.host_fuzzy_test.source+")|@","i")}function fr(e,u,t,n){const r=e.slice(t,n);this.schema=u.toLowerCase(),this.index=t,this.lastIndex=n,this.raw=r,this.text=r,this.url=r}function _e(e,u){if(!(this instanceof _e))return new _e(e,u);u||qa(e)&&(u=e,e={}),this.__opts__=on({},lr,u),this.__schemas__=on({},Ga,e),this.__compiled__={},this.__tlds__=Va,this.__tlds_replaced__=!1,this.re={},mt(this)}_e.prototype.add=function(u,t){return this.__schemas__[u]=t,mt(this),this};_e.prototype.set=function(u){return this.__opts__=on(this.__opts__,u),this};_e.prototype.test=function(u){if(!u.length)return!1;let t,n;if(this.re.schema_test.test(u)){for(n=this.re.schema_search,n.lastIndex=0;(t=n.exec(u))!==null;)if(this.testSchemaAt(u,t[2],n.lastIndex))return!0}return!!(this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&u.search(this.re.host_fuzzy_test)>=0&&u.match(this.__opts__.fuzzyIP?this.re.link_fuzzy:this.re.link_no_ip_fuzzy)!==null||this.__opts__.fuzzyEmail&&this.__compiled__["mailto:"]&&u.indexOf("@")>=0&&u.match(this.re.email_fuzzy)!==null)};_e.prototype.pretest=function(u){return this.re.pretest.test(u)};_e.prototype.testSchemaAt=function(u,t,n){return this.__compiled__[t.toLowerCase()]?this.__compiled__[t.toLowerCase()].validate(u,n,this):0};_e.prototype.match=function(u){const t=[],n=[],r=[],o=[];let c,i,a;function l(m,h){return m?h?m.index!==h.index?m.index=h.lastIndex?m:h:m:h}if(!u.length)return null;if(this.re.schema_test.test(u))for(a=this.re.schema_search,a.lastIndex=0;(c=a.exec(u))!==null;)i=this.testSchemaAt(u,c[2],a.lastIndex),i&&n.push({schema:c[2],index:c.index+c[1].length,lastIndex:c.index+c[0].length+i});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;(c=a.exec(u))!==null;)r.push({schema:"",index:c.index+c[1].length,lastIndex:c.index+c[0].length});if(this.__opts__.fuzzyEmail&&this.__compiled__["mailto:"])for(a=this.re.email_fuzzy_global,a.lastIndex=0;(c=a.exec(u))!==null;)o.push({schema:"mailto:",index:c.index+c[1].length,lastIndex:c.index+c[0].length});const f=[0,0,0];let d=0;for(;;){const m=[n[f[0]],o[f[1]],r[f[2]]],h=l(l(m[0],m[1]),m[2]);if(!h)break;if(h===m[0]?f[0]++:h===m[1]?f[1]++:f[2]++,h.index= 0x80 (not a basic code point)","invalid-input":"Invalid input"},Xt=Pe-kn,ze=Math.floor,Kt=String.fromCharCode;function Xe(e){throw new RangeError(es[e])}function us(e,u){const t=[];let n=e.length;for(;n--;)t[n]=u(e[n]);return t}function br(e,u){const t=e.split("@");let n="";t.length>1&&(n=t[0]+"@",e=t[1]),e=e.replace(Qa,".");const r=e.split("."),o=us(r,u).join(".");return n+o}function mr(e){const u=[];let t=0;const n=e.length;for(;t=55296&&r<=56319&&tString.fromCodePoint(...e),ns=function(e){return e>=48&&e<58?26+(e-48):e>=65&&e<91?e-65:e>=97&&e<123?e-97:Pe},x0=function(e,u){return e+22+75*(e<26)-((u!=0)<<5)},gr=function(e,u,t){let n=0;for(e=t?ze(e/Xa):e>>1,e+=ze(e/u);e>Xt*Wu>>1;n+=Pe)e=ze(e/Xt);return ze(n+(Xt+1)*e/(e+Ya))},xr=function(e){const u=[],t=e.length;let n=0,r=pr,o=dr,c=e.lastIndexOf(hr);c<0&&(c=0);for(let i=0;i=128&&Xe("not-basic"),u.push(e.charCodeAt(i));for(let i=c>0?c+1:0;i=t&&Xe("invalid-input");const m=ns(e.charCodeAt(i++));m>=Pe&&Xe("invalid-input"),m>ze((Cu-n)/f)&&Xe("overflow"),n+=m*f;const h=d<=o?kn:d>=o+Wu?Wu:d-o;if(mze(Cu/b)&&Xe("overflow"),f*=b}const l=u.length+1;o=gr(n-a,l,a==0),ze(n/l)>Cu-r&&Xe("overflow"),r+=ze(n/l),n%=l,u.splice(n++,0,r)}return String.fromCodePoint(...u)},_r=function(e){const u=[];e=mr(e);const t=e.length;let n=pr,r=0,o=dr;for(const a of e)a<128&&u.push(Kt(a));const c=u.length;let i=c;for(c&&u.push(hr);i=n&&fze((Cu-r)/l)&&Xe("overflow"),r+=(a-n)*l,n=a;for(const f of e)if(fCu&&Xe("overflow"),f===n){let d=r;for(let m=Pe;;m+=Pe){const h=m<=o?kn:m>=o+Wu?Wu:m-o;if(d=0))try{u.hostname=yr.toASCII(u.hostname)}catch{}return et(bn(u))}function hs(e){const u=mn(e,!0);if(u.hostname&&(!u.protocol||Er.indexOf(u.protocol)>=0))try{u.hostname=yr.toUnicode(u.hostname)}catch{}return Au(bn(u),Au.defaultChars+"%")}function Ce(e,u){if(!(this instanceof Ce))return new Ce(e,u);u||xn(e)||(u=e||{},e="default"),this.inline=new tt,this.block=new Ct,this.core=new yn,this.renderer=new Tu,this.linkify=new _e,this.validateLink=ds,this.normalizeLink=ps,this.normalizeLinkText=hs,this.utils=gc,this.helpers=yt({},Ec),this.options={},this.configure(e),u&&this.set(u)}Ce.prototype.set=function(e){return yt(this.options,e),this};Ce.prototype.configure=function(e){const u=this;if(xn(e)){const t=e;if(e=ss[t],!e)throw new Error('Wrong `markdown-it` preset "'+t+'", check name')}if(!e)throw new Error("Wrong `markdown-it` preset, can't be empty");return e.options&&u.set(e.options),e.components&&Object.keys(e.components).forEach(function(t){e.components[t].rules&&u[t].ruler.enableOnly(e.components[t].rules),e.components[t].rules2&&u[t].ruler2.enableOnly(e.components[t].rules2)}),this};Ce.prototype.enable=function(e,u){let t=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach(function(r){t=t.concat(this[r].ruler.enable(e,!0))},this),t=t.concat(this.inline.ruler2.enable(e,!0));const n=e.filter(function(r){return t.indexOf(r)<0});if(n.length&&!u)throw new Error("MarkdownIt. Failed to enable unknown rule(s): "+n);return this};Ce.prototype.disable=function(e,u){let t=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach(function(r){t=t.concat(this[r].ruler.disable(e,!0))},this),t=t.concat(this.inline.ruler2.disable(e,!0));const n=e.filter(function(r){return t.indexOf(r)<0});if(n.length&&!u)throw new Error("MarkdownIt. Failed to disable unknown rule(s): "+n);return this};Ce.prototype.use=function(e){const u=[this].concat(Array.prototype.slice.call(arguments,1));return e.apply(e,u),this};Ce.prototype.parse=function(e,u){if(typeof e!="string")throw new Error("Input data should be a String");const t=new this.core.State(e,this,u);return this.core.process(t),t.tokens};Ce.prototype.render=function(e,u){return u=u||{},this.renderer.render(this.parse(e,u),this.options,u)};Ce.prototype.parseInline=function(e,u){const t=new this.core.State(e,this,u);return t.inlineMode=!0,this.core.process(t),t.tokens};Ce.prototype.renderInline=function(e,u){return u=u||{},this.renderer.render(this.parseInline(e,u),this.options,u)};/*! @license DOMPurify 3.4.10 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.4.10/LICENSE */function _0(e,u){(u==null||u>e.length)&&(u=e.length);for(var t=0,n=Array(u);t2?n-2:0),o=2;o1?t-1:0),r=1;r"u"?null:X(BigInt.prototype.toString),D0=typeof Symbol>"u"?null:X(Symbol.prototype.toString),se=X(Object.prototype.hasOwnProperty),Nu=X(Object.prototype.toString),te=X(RegExp.prototype.test),ou=Ts(TypeError);function X(e){return function(u){u instanceof RegExp&&(u.lastIndex=0);for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r2&&arguments[2]!==void 0?arguments[2]:Lu;if(y0&&y0(e,null),!Ke(u))return e;let n=u.length;for(;n--;){let r=u[n];if(typeof r=="string"){const o=t(r);o!==r&&(ys(u)||(u[n]=o),r=o)}e[r]=!0}return e}function Fs(e){for(let u=0;u/g),zs=oe(/\${[\w\W]*/g),Ns=oe(/^data-[\-\w.\u00B7-\uFFFF]+$/),Ls=oe(/^aria-[\-\w]+$/),w0=oe(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Bs=oe(/^(?:\w+script|data):/i),$s=oe(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Hs=oe(/^html$/i),js=oe(/^[a-z][.\w]*(-[.\w]+)+$/i),O0=oe(/<[/\w!]/g),Us=oe(/<[/\w]/g),qs=oe(/<\/no(script|embed|frames)/i),Gs=oe(/\/>/i),Re={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,processingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},Ws=function(){return typeof window>"u"?null:window},Vs=function(u,t){if(typeof u!="object"||typeof u.createPolicy!="function")return null;let n=null;const r="data-tt-policy-suffix";t&&t.hasAttribute(r)&&(n=t.getAttribute(r));const o="dompurify"+(n?"#"+n:"");try{return u.createPolicy(o,{createHTML(c){return c},createScriptURL(c){return c}})}catch{return console.warn("TrustedTypes policy "+o+" could not be created."),null}},R0=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},Ye=function(u,t,n,r){return se(u,t)&&Ke(u[t])?N(r.base?ae(r.base):{},u[t],r.transform):n};function Ar(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Ws();const u=k=>Ar(k);if(u.version="3.4.10",u.removed=[],!e||!e.document||e.document.nodeType!==Re.document||!e.Element)return u.isSupported=!1,u;let t=e.document;const n=t,r=n.currentScript;e.DocumentFragment;const o=e.HTMLTemplateElement,c=e.Node,i=e.Element,a=e.NodeFilter,l=e.NamedNodeMap;l===void 0&&(e.NamedNodeMap||e.MozNamedAttrMap),e.HTMLFormElement;const f=e.DOMParser,d=e.trustedTypes,m=i.prototype,h=Ie(m,"cloneNode"),b=Ie(m,"remove"),v=Ie(m,"nextSibling"),A=Ie(m,"childNodes"),F=Ie(m,"parentNode"),_=Ie(m,"shadowRoot"),g=Ie(m,"attributes"),x=c&&c.prototype?Ie(c.prototype,"nodeType"):null,E=c&&c.prototype?Ie(c.prototype,"nodeName"):null;if(typeof o=="function"){const k=t.createElement("template");k.content&&k.content.ownerDocument&&(t=k.content.ownerDocument)}let S,M="",$,ue=!1,Z=0;const le=function(){if(Z>0)throw ou('A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the "DOMPurify and Trusted Types" section of the README.')},ie=function(s){le(),Z++;try{return S.createHTML(s)}finally{Z--}},fe=function(s){le(),Z++;try{return S.createScriptURL(s)}finally{Z--}},Be=function(){return ue||($=Vs(d,r),ue=!0),$},C=t,O=C.implementation,R=C.createNodeIterator,q=C.createDocumentFragment,K=C.getElementsByTagName,ye=n.importNode;let H=R0();u.isSupported=typeof kr=="function"&&typeof F=="function"&&O&&O.createHTMLDocument!==void 0;const $e=Ms,uu=Ps,Te=zs,fu=Ns,me=Ls,du=Bs,pu=$s,Dt=js;let nt=w0,G=null;const Fu=N({},[...v0,...Qt,...en,...un,...S0]);let W=null;const Ge=N({},[...T0,...tn,...F0,...ht]);let j=Object.seal(Eu(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),We=null,He=null;const Fe=Object.seal(Eu(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let rt=!0,wu=!0,Ou=!1,je=!0,Ve=!1,Ru=!0,tu=!1,vt=!1,St=!1,hu=!1,ot=!1,it=!1,Cn=!0,An=!1;const Dn="user-content-";let Tt=!0,Ft=!1,bu={},we=null;const wt=N({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","selectedcontent","style","svg","template","thead","title","video","xmp"]);let vn=null;const Sn=N({},["audio","video","img","source","image","track"]);let Ot=null;const Tn=N({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),ct="http://www.w3.org/1998/Math/MathML",at="http://www.w3.org/2000/svg",Oe="http://www.w3.org/1999/xhtml";let mu=Oe,Rt=!1,It=null;const Dr=N({},[ct,at,Oe],Jt),Fn=re(["mi","mo","mn","ms","mtext"]);let Mt=N({},Fn);const wn=re(["annotation-xml"]);let Pt=N({},wn);const vr=N({},["title","style","font","a","script"]);let Iu=null;const Sr=["application/xhtml+xml","text/html"],Tr="text/html";let V=null,gu=null;const Fr=t.createElement("form"),On=function(s){return s instanceof RegExp||s instanceof Function},zt=function(){let s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(gu&&gu===s)return;(!s||typeof s!="object")&&(s={}),s=ae(s),Iu=Sr.indexOf(s.PARSER_MEDIA_TYPE)===-1?Tr:s.PARSER_MEDIA_TYPE,V=Iu==="application/xhtml+xml"?Jt:Lu,G=Ye(s,"ALLOWED_TAGS",Fu,{transform:V}),W=Ye(s,"ALLOWED_ATTR",Ge,{transform:V}),It=Ye(s,"ALLOWED_NAMESPACES",Dr,{transform:Jt}),Ot=Ye(s,"ADD_URI_SAFE_ATTR",Tn,{transform:V,base:Tn}),vn=Ye(s,"ADD_DATA_URI_TAGS",Sn,{transform:V,base:Sn}),we=Ye(s,"FORBID_CONTENTS",wt,{transform:V}),We=Ye(s,"FORBID_TAGS",ae({}),{transform:V}),He=Ye(s,"FORBID_ATTR",ae({}),{transform:V}),bu=se(s,"USE_PROFILES")?s.USE_PROFILES&&typeof s.USE_PROFILES=="object"?ae(s.USE_PROFILES):s.USE_PROFILES:!1,rt=s.ALLOW_ARIA_ATTR!==!1,wu=s.ALLOW_DATA_ATTR!==!1,Ou=s.ALLOW_UNKNOWN_PROTOCOLS||!1,je=s.ALLOW_SELF_CLOSE_IN_ATTR!==!1,Ve=s.SAFE_FOR_TEMPLATES||!1,Ru=s.SAFE_FOR_XML!==!1,tu=s.WHOLE_DOCUMENT||!1,hu=s.RETURN_DOM||!1,ot=s.RETURN_DOM_FRAGMENT||!1,it=s.RETURN_TRUSTED_TYPE||!1,St=s.FORCE_BODY||!1,Cn=s.SANITIZE_DOM!==!1,An=s.SANITIZE_NAMED_PROPS||!1,Tt=s.KEEP_CONTENT!==!1,Ft=s.IN_PLACE||!1,nt=Os(s.ALLOWED_URI_REGEXP)?s.ALLOWED_URI_REGEXP:w0,mu=typeof s.NAMESPACE=="string"?s.NAMESPACE:Oe,Mt=se(s,"MATHML_TEXT_INTEGRATION_POINTS")&&s.MATHML_TEXT_INTEGRATION_POINTS&&typeof s.MATHML_TEXT_INTEGRATION_POINTS=="object"?ae(s.MATHML_TEXT_INTEGRATION_POINTS):N({},Fn),Pt=se(s,"HTML_INTEGRATION_POINTS")&&s.HTML_INTEGRATION_POINTS&&typeof s.HTML_INTEGRATION_POINTS=="object"?ae(s.HTML_INTEGRATION_POINTS):N({},wn);const p=se(s,"CUSTOM_ELEMENT_HANDLING")&&s.CUSTOM_ELEMENT_HANDLING&&typeof s.CUSTOM_ELEMENT_HANDLING=="object"?ae(s.CUSTOM_ELEMENT_HANDLING):Eu(null);if(j=Eu(null),se(p,"tagNameCheck")&&On(p.tagNameCheck)&&(j.tagNameCheck=p.tagNameCheck),se(p,"attributeNameCheck")&&On(p.attributeNameCheck)&&(j.attributeNameCheck=p.attributeNameCheck),se(p,"allowCustomizedBuiltInElements")&&typeof p.allowCustomizedBuiltInElements=="boolean"&&(j.allowCustomizedBuiltInElements=p.allowCustomizedBuiltInElements),oe(j),Ve&&(wu=!1),ot&&(hu=!0),bu&&(G=N({},S0),W=Eu(null),bu.html===!0&&(N(G,v0),N(W,T0)),bu.svg===!0&&(N(G,Qt),N(W,tn),N(W,ht)),bu.svgFilters===!0&&(N(G,en),N(W,tn),N(W,ht)),bu.mathMl===!0&&(N(G,un),N(W,F0),N(W,ht))),Fe.tagCheck=null,Fe.attributeCheck=null,se(s,"ADD_TAGS")&&(typeof s.ADD_TAGS=="function"?Fe.tagCheck=s.ADD_TAGS:Ke(s.ADD_TAGS)&&(G===Fu&&(G=ae(G)),N(G,s.ADD_TAGS,V))),se(s,"ADD_ATTR")&&(typeof s.ADD_ATTR=="function"?Fe.attributeCheck=s.ADD_ATTR:Ke(s.ADD_ATTR)&&(W===Ge&&(W=ae(W)),N(W,s.ADD_ATTR,V))),se(s,"ADD_URI_SAFE_ATTR")&&Ke(s.ADD_URI_SAFE_ATTR)&&N(Ot,s.ADD_URI_SAFE_ATTR,V),se(s,"FORBID_CONTENTS")&&Ke(s.FORBID_CONTENTS)&&(we===wt&&(we=ae(we)),N(we,s.FORBID_CONTENTS,V)),se(s,"ADD_FORBID_CONTENTS")&&Ke(s.ADD_FORBID_CONTENTS)&&(we===wt&&(we=ae(we)),N(we,s.ADD_FORBID_CONTENTS,V)),Tt&&(G["#text"]=!0),tu&&N(G,["html","head","body"]),G.table&&(N(G,["tbody"]),delete We.tbody),s.TRUSTED_TYPES_POLICY){if(typeof s.TRUSTED_TYPES_POLICY.createHTML!="function")throw ou('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof s.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw ou('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');const y=S;S=s.TRUSTED_TYPES_POLICY;try{M=ie("")}catch(T){throw S=y,T}}else s.TRUSTED_TYPES_POLICY===null?(S=void 0,M=""):(S===void 0&&(S=Be()),S&&typeof M=="string"&&(M=ie("")));(H.uponSanitizeElement.length>0||H.uponSanitizeAttribute.length>0)&&G===Fu&&(G=ae(G)),H.uponSanitizeAttribute.length>0&&W===Ge&&(W=ae(W)),re&&re(s),gu=s},Rn=N({},[...Qt,...en,...Rs]),In=N({},[...un,...Is]),wr=function(s,p,y){return p.namespaceURI===Oe?s==="svg":p.namespaceURI===ct?s==="svg"&&(y==="annotation-xml"||Mt[y]):!!Rn[s]},Or=function(s,p,y){return p.namespaceURI===Oe?s==="math":p.namespaceURI===at?s==="math"&&Pt[y]:!!In[s]},Rr=function(s,p,y){return p.namespaceURI===at&&!Pt[y]||p.namespaceURI===ct&&!Mt[y]?!1:!In[s]&&(vr[s]||!Rn[s])},Ir=function(s){let p=F(s);(!p||!p.tagName)&&(p={namespaceURI:mu,tagName:"template"});const y=Lu(s.tagName),T=Lu(p.tagName);return It[s.namespaceURI]?s.namespaceURI===at?wr(y,p,T):s.namespaceURI===ct?Or(y,p,T):s.namespaceURI===Oe?Rr(y,p,T):!!(Iu==="application/xhtml+xml"&&It[s.namespaceURI]):!1},Ze=function(s){_u(u.removed,{element:s});try{F(s).removeChild(s)}catch{if(b(s),!F(s))throw ou("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place")}},Mn=function(s){const p=A(s);if(p){const T=[];Pu(p,I=>{_u(T,I)}),Pu(T,I=>{try{b(I)}catch{}})}const y=g(s);if(y)for(let T=y.length-1;T>=0;--T){const I=y[T],L=I&&I.name;if(typeof L=="string")try{s.removeAttribute(L)}catch{}}},nu=function(s,p){try{_u(u.removed,{attribute:p.getAttributeNode(s),from:p})}catch{_u(u.removed,{attribute:null,from:p})}if(p.removeAttribute(s),s==="is")if(hu||ot)try{Ze(p)}catch{}else try{p.setAttribute(s,"")}catch{}},Mr=function(s){const p=g(s);if(p)for(let y=p.length-1;y>=0;--y){const T=p[y],I=T&&T.name;if(!(typeof I!="string"||W[V(I)]))try{s.removeAttribute(I)}catch{}}},Pr=function(s){const p=[s];for(;p.length>0;){const y=p.pop();(x?x(y):y.nodeType)===Re.element&&Mr(y);const I=A(y);if(I)for(let L=I.length-1;L>=0;--L)p.push(I[L])}},Pn=function(s){let p=null,y=null;if(St)s=""+s;else{const L=k0(s,/^[\r\n\t ]+/);y=L&&L[0]}Iu==="application/xhtml+xml"&&mu===Oe&&(s=''+s+"");const T=S?ie(s):s;if(mu===Oe)try{p=new f().parseFromString(T,Iu)}catch{}if(!p||!p.documentElement){p=O.createDocument(mu,"template",null);try{p.documentElement.innerHTML=Rt?M:T}catch{}}const I=p.body||p.documentElement;return s&&y&&I.insertBefore(t.createTextNode(y),I.childNodes[0]||null),mu===Oe?K.call(p,tu?"html":"body")[0]:tu?p.documentElement:I},zn=function(s){return R.call(s.ownerDocument||s,s,a.SHOW_ELEMENT|a.SHOW_COMMENT|a.SHOW_TEXT|a.SHOW_PROCESSING_INSTRUCTION|a.SHOW_CDATA_SECTION,null)},st=function(s){return s=zu(s,$e," "),s=zu(s,uu," "),s=zu(s,Te," "),s},Nt=function(s){var p;s.normalize();const y=R.call(s.ownerDocument||s,s,a.SHOW_TEXT|a.SHOW_COMMENT|a.SHOW_CDATA_SECTION|a.SHOW_PROCESSING_INSTRUCTION,null);let T=y.nextNode();for(;T;)T.data=st(T.data),T=y.nextNode();const I=(p=s.querySelectorAll)===null||p===void 0?void 0:p.call(s,"template");I&&Pu(I,L=>{xu(L.content)&&Nt(L.content)})},lt=function(s){const p=E?E(s):null;return typeof p!="string"||V(p)!=="form"?!1:typeof s.nodeName!="string"||typeof s.textContent!="string"||typeof s.removeChild!="function"||s.attributes!==g(s)||typeof s.removeAttribute!="function"||typeof s.setAttribute!="function"||typeof s.namespaceURI!="string"||typeof s.insertBefore!="function"||typeof s.hasChildNodes!="function"||s.nodeType!==x(s)||s.childNodes!==A(s)},xu=function(s){if(!x||typeof s!="object"||s===null)return!1;try{return x(s)===Re.documentFragment}catch{return!1}},Mu=function(s){if(!x||typeof s!="object"||s===null)return!1;try{return typeof x(s)=="number"}catch{return!1}};function Ue(k,s,p){k.length!==0&&Pu(k,y=>{y.call(u,s,p,gu)})}const zr=function(s,p){return!!(Ru&&s.hasChildNodes()&&!Mu(s.firstElementChild)&&te(O0,s.textContent)&&te(O0,s.innerHTML)||Ru&&s.namespaceURI===Oe&&p==="style"&&Mu(s.firstElementChild)||s.nodeType===Re.processingInstruction||Ru&&s.nodeType===Re.comment&&te(Us,s.data))},Nr=function(s,p){if(!We[p]&&Bn(p)&&(j.tagNameCheck instanceof RegExp&&te(j.tagNameCheck,p)||j.tagNameCheck instanceof Function&&j.tagNameCheck(p)))return!1;if(Tt&&!we[p]){const y=F(s),T=A(s);if(T&&y){const I=T.length;for(let L=I-1;L>=0;--L){const J=Ft?T[L]:h(T[L],!0);y.insertBefore(J,v(s))}}}return Ze(s),!0},Nn=function(s){if(Ue(H.beforeSanitizeElements,s,null),lt(s))return Ze(s),!0;const p=V(E?E(s):s.nodeName);if(Ue(H.uponSanitizeElement,s,{tagName:p,allowedTags:G}),zr(s,p))return Ze(s),!0;if(We[p]||!(Fe.tagCheck instanceof Function&&Fe.tagCheck(p))&&!G[p])return Nr(s,p);if((x?x(s):s.nodeType)===Re.element&&!Ir(s)||(p==="noscript"||p==="noembed"||p==="noframes")&&te(qs,s.innerHTML))return Ze(s),!0;if(Ve&&s.nodeType===Re.text){const T=st(s.textContent);s.textContent!==T&&(_u(u.removed,{element:s.cloneNode()}),s.textContent=T)}return Ue(H.afterSanitizeElements,s,null),!1},Ln=function(s,p,y){if(He[p]||Cn&&(p==="id"||p==="name")&&(y in t||y in Fr))return!1;const T=W[p]||Fe.attributeCheck instanceof Function&&Fe.attributeCheck(p,s);if(!(wu&&te(fu,p))){if(!(rt&&te(me,p))){if(T){if(!Ot[p]){if(!te(nt,zu(y,pu,""))){if(!((p==="src"||p==="xlink:href"||p==="href")&&s!=="script"&&C0(y,"data:")===0&&vn[s])){if(!(Ou&&!te(du,zu(y,pu,"")))){if(y)return!1}}}}}else if(!(Bn(s)&&(j.tagNameCheck instanceof RegExp&&te(j.tagNameCheck,s)||j.tagNameCheck instanceof Function&&j.tagNameCheck(s))&&(j.attributeNameCheck instanceof RegExp&&te(j.attributeNameCheck,p)||j.attributeNameCheck instanceof Function&&j.attributeNameCheck(p,s))||p==="is"&&j.allowCustomizedBuiltInElements&&(j.tagNameCheck instanceof RegExp&&te(j.tagNameCheck,y)||j.tagNameCheck instanceof Function&&j.tagNameCheck(y))))return!1}}return!0},Lr=N({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),Bn=function(s){return!Lr[Lu(s)]&&te(Dt,s)},Br=function(s,p,y,T){if(S&&typeof d=="object"&&typeof d.getAttributeType=="function"&&!y)switch(d.getAttributeType(s,p)){case"TrustedHTML":return ie(T);case"TrustedScriptURL":return fe(T)}return T},$r=function(s,p,y,T){try{y?s.setAttributeNS(y,p,T):s.setAttribute(p,T),lt(s)?Ze(s):E0(u.removed)}catch{nu(p,s)}},$n=function(s){Ue(H.beforeSanitizeAttributes,s,null);const p=s.attributes;if(!p||lt(s))return;const y={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:W,forceKeepAttr:void 0};let T=p.length;const I=V(s.nodeName);for(;T--;){const L=p[T],J=L.name,Y=L.namespaceURI,Ee=L.value,De=V(J),Bt=Ee;let ce=J==="value"?Bt:Ds(Bt);if(y.attrName=De,y.attrValue=ce,y.keepAttr=!0,y.forceKeepAttr=void 0,Ue(H.uponSanitizeAttribute,s,y),ce=y.attrValue,An&&(De==="id"||De==="name")&&C0(ce,Dn)!==0&&(nu(J,s),ce=Dn+ce),Ru&&te(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,ce)){nu(J,s);continue}if(De==="attributename"&&k0(ce,"href")){nu(J,s);continue}if(!y.forceKeepAttr){if(!y.keepAttr){nu(J,s);continue}if(!je&&te(Gs,ce)){nu(J,s);continue}if(Ve&&(ce=st(ce)),!Ln(I,De,ce)){nu(J,s);continue}ce=Br(I,De,Y,ce),ce!==Bt&&$r(s,J,Y,ce)}}Ue(H.afterSanitizeAttributes,s,null)},ft=function(s){let p=null;const y=zn(s);for(Ue(H.beforeSanitizeShadowDOM,s,null);p=y.nextNode();)if(Ue(H.uponSanitizeShadowNode,p,null),Nn(p),$n(p),xu(p.content)&&ft(p.content),(x?x(p):p.nodeType)===Re.element){const I=_(p);xu(I)&&(Lt(I),ft(I))}Ue(H.afterSanitizeShadowDOM,s,null)},Lt=function(s){const p=[{node:s,shadow:null}];for(;p.length>0;){const y=p.pop();if(y.shadow){ft(y.shadow);continue}const T=y.node,L=(x?x(T):T.nodeType)===Re.element,J=A(T);if(J)for(let Y=J.length-1;Y>=0;--Y)p.push({node:J[Y],shadow:null});if(L){const Y=E?E(T):null;if(typeof Y=="string"&&V(Y)==="template"){const Ee=T.content;xu(Ee)&&p.push({node:Ee,shadow:null})}}if(L){const Y=_(T);xu(Y)&&p.push({node:null,shadow:Y},{node:Y,shadow:null})}}};return u.sanitize=function(k){let s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},p=null,y=null,T=null,I=null;if(Rt=!k,Rt&&(k=""),typeof k!="string"&&!Mu(k)&&(k=ws(k),typeof k!="string"))throw ou("dirty is not a string, aborting");if(!u.isSupported)return k;vt||zt(s),u.removed=[];const L=Ft&&typeof k!="string"&&Mu(k);if(L){const Ee=E?E(k):k.nodeName;if(typeof Ee=="string"){const De=V(Ee);if(!G[De]||We[De])throw ou("root node is forbidden and cannot be sanitized in-place")}if(lt(k))throw ou("root node is clobbered and cannot be sanitized in-place");try{Lt(k)}catch(De){throw Mn(k),De}}else if(Mu(k))p=Pn(""),y=p.ownerDocument.importNode(k,!0),y.nodeType===Re.element&&y.nodeName==="BODY"||y.nodeName==="HTML"?p=y:p.appendChild(y),Lt(y);else{if(!hu&&!Ve&&!tu&&k.indexOf("<")===-1)return S&&it?ie(k):k;if(p=Pn(k),!p)return hu?null:it?M:""}p&&St&&Ze(p.firstChild);const J=zn(L?k:p);try{for(;T=J.nextNode();)Nn(T),$n(T),xu(T.content)&&ft(T.content)}catch(Ee){throw L&&Mn(k),Ee}if(L)return Pu(u.removed,Ee=>{Ee.element&&Pr(Ee.element)}),Ve&&Nt(k),k;if(hu){if(Ve&&Nt(p),ot)for(I=q.call(p.ownerDocument);p.firstChild;)I.appendChild(p.firstChild);else I=p;return(W.shadowroot||W.shadowrootmode)&&(I=ye.call(n,I,!0)),I}let Y=tu?p.outerHTML:p.innerHTML;return tu&&G["!doctype"]&&p.ownerDocument&&p.ownerDocument.doctype&&p.ownerDocument.doctype.name&&te(Hs,p.ownerDocument.doctype.name)&&(Y=" -`+Y),Ve&&(Y=st(Y)),S&&it?ie(Y):Y},u.setConfig=function(){let k=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};zt(k),vt=!0},u.clearConfig=function(){gu=null,vt=!1,S=$,M=""},u.isValidAttribute=function(k,s,p){gu||zt({});const y=V(k),T=V(s);return Ln(y,T,p)},u.addHook=function(k,s){typeof s=="function"&&_u(H[k],s)},u.removeHook=function(k,s){if(s!==void 0){const p=Cs(H[k],s);return p===-1?void 0:As(H[k],p,1)[0]}return E0(H[k])},u.removeHooks=function(k){H[k]=[]},u.removeAllHooks=function(){H=R0()},u}var Zs=Ar();const Ys={class:"tool-call-indicator__label"},Xs=Ae({__name:"ToolCallIndicator",props:{type:{},name:{}},setup(e){const u=e,t={read:pn,edit:xt,bash:Hn,write:dn,search:Un,grep:Un,glob:so},n=xe(()=>t[u.type]||Hn);return(r,o)=>(z(),U("span",{class:$u(["tool-call-indicator",`tool-call-indicator--${e.type}`])},[(z(),ge(B0(n.value),{class:"tool-call-indicator__icon"})),ne("span",Ys,Me(e.name),1)],2))}}),Ks=vu(Xs,[["__scopeId","data-v-40bd3149"]]),Js={class:"chat-message__avatar"},Qs={class:"chat-message__body"},el={key:0,class:"chat-message__tools"},ul=["innerHTML"],tl={key:1},nl={key:1,class:"chat-message__routing"},rl={class:"chat-message__time"},ol=Ae({__name:"ChatMessage",props:{message:{}},setup(e){const u=new Ce({html:!1,linkify:!0,breaks:!0});function t(l){return Zs.sanitize(l,{ALLOWED_TAGS:["p","br","strong","em","del","code","pre","a","ul","ol","li","h1","h2","h3","h4","blockquote","table","thead","tbody","tr","th","td","span"],ALLOWED_ATTR:["href","target","rel","class"],ALLOW_DATA_ATTR:!1})}const n=e,r=xe(()=>n.message.role==="assistant"&&n.message.status==="pending"&&!n.message.content),o=xe(()=>n.message.role==="assistant"&&n.message.matched_skill),c=xe(()=>new Date(n.message.timestamp).toLocaleTimeString("zh-CN",{hour:"2-digit",minute:"2-digit"})),i=xe(()=>n.message.content?t(u.render(n.message.content)):""),a=xe(()=>{const l=[],f=n.message.content||"",d=/^\[(Read|Edit|Bash|Write|Search|Grep|Glob)\]/gm;let m;for(;(m=d.exec(f))!==null;){const h=m[1].toLowerCase();l.push({type:h,name:m[1]})}return l});return(l,f)=>(z(),U("div",{class:$u(["chat-message",[`chat-message--${e.message.role}`]])},[ne("div",Js,[e.message.role==="assistant"?(z(),ge(P(cu),{key:0,size:32,class:"chat-message__avatar--assistant"},{icon:ke(()=>[D(P(_t))]),_:1})):(z(),ge(P(cu),{key:1,size:32,class:"chat-message__avatar--user"},{icon:ke(()=>[D(P(yo))]),_:1}))]),ne("div",Qs,[a.value.length>0?(z(),U("div",el,[(z(!0),U(Qe,null,Hu(a.value,(d,m)=>(z(),ge(Ks,{key:m,type:d.type,name:d.name},null,8,["type","name"]))),128))])):ve("",!0),ne("div",{class:$u(["chat-message__content",[`chat-message__content--${e.message.role}`]])},[e.message.role==="assistant"?(z(),U("div",{key:0,class:"chat-message__markdown",innerHTML:i.value},null,8,ul)):(z(),U("span",tl,Me(e.message.content),1)),r.value?(z(),ge(P(ko),{key:2,size:"small",class:"chat-message__loading"})):ve("",!0)],2),o.value?(z(),U("div",nl,[D(P(jt),{color:"purple"},{default:ke(()=>[D(P(Eo)),ku(" "+Me(e.message.matched_skill),1)]),_:1}),e.message.confidence!==void 0?(z(),ge(P(jt),{key:0,color:"green"},{default:ke(()=>[ku(" 置信度: "+Me((e.message.confidence*100).toFixed(1))+"% ",1)]),_:1})):ve("",!0),e.message.routing_method?(z(),ge(P(jt),{key:1,color:"default"},{default:ke(()=>[ku(Me(e.message.routing_method),1)]),_:1})):ve("",!0)])):ve("",!0),ne("div",rl,Me(c.value),1)])],2))}}),il=vu(ol,[["__scopeId","data-v-9598d97d"]]),cl={class:"context-pill"},al={class:"context-pill__label"},sl=Ae({__name:"ContextPill",props:{label:{},icon:{},removable:{type:Boolean}},emits:["remove"],setup(e){return(u,t)=>(z(),U("span",cl,[(z(),ge(B0(e.icon),{class:"context-pill__icon"})),ne("span",al,Me(e.label),1),e.removable?(z(),U("button",{key:0,class:"context-pill__remove",onClick:t[0]||(t[0]=to(n=>u.$emit("remove"),["stop"]))},[D(P(no))])):ve("",!0)]))}}),ll=vu(sl,[["__scopeId","data-v-6f381f53"]]),fl={class:"chat-input"},dl={key:0,class:"chat-input__pills"},pl={class:"chat-input__row"},hl=Ae({__name:"ChatInput",props:{disabled:{type:Boolean,default:!1},placeholder:{default:"输入消息,按 Enter 发送..."}},emits:["send"],setup(e,{emit:u}){const t=mo.TextArea,n=e,r=u,o=su(""),c=su([]),i=xe(()=>o.value.trim().length>0&&!n.disabled);function a(){const d=o.value.trim();!d||n.disabled||(r("send",d),o.value="")}function l(d){d.shiftKey||(d.preventDefault(),a())}function f(d){c.value.splice(d,1)}return(d,m)=>(z(),U("div",fl,[c.value.length>0?(z(),U("div",dl,[(z(!0),U(Qe,null,Hu(c.value,(h,b)=>(z(),ge(ll,{key:b,label:h.label,icon:h.icon,removable:h.removable,onRemove:v=>f(b)},null,8,["label","icon","removable","onRemove"]))),128))])):ve("",!0),ne("div",pl,[D(P(t),{value:o.value,"onUpdate:value":m[0]||(m[0]=h=>o.value=h),placeholder:e.placeholder,"auto-size":{minRows:1,maxRows:4},disabled:e.disabled,onPressEnter:l,class:"chat-input__textarea"},null,8,["value","placeholder","disabled"]),D(P(sn),{type:"primary",disabled:!i.value,loading:e.disabled,onClick:a,class:"chat-input__send"},{icon:ke(()=>[D(P(hn))]),_:1},8,["disabled","loading"])])]))}}),bl=vu(hl,[["__scopeId","data-v-4de32b43"]]),ml={class:"chat-view"},gl={class:"chat-view__main"},xl={key:0,class:"chat-view__empty"},_l={key:0,class:"chat-view__welcome"},yl={key:1,class:"chat-view__steps"},El=Ae({__name:"ChatView",setup(e){const u=pe.Text,t=jr(),n=su(null);Vu(()=>{t.loadConversations(),t.connectWebSocket()}),ro(()=>{t.disconnectWebSocket()}),au(()=>t.currentMessages.length,async()=>{await iu(),r()}),au(()=>t.streamingSteps.length,async()=>{await iu(),r()});function r(){n.value&&(n.value.scrollTop=n.value.scrollHeight)}function o(c){t.isWsConnected?t.sendWsMessage(c):t.sendMessage(c)}return(c,i)=>(z(),U("div",ml,[D(Fi,{conversations:P(t).conversations,"current-id":P(t).currentConversationId,onCreate:P(t).createConversation,onSelect:P(t).selectConversation},null,8,["conversations","current-id","onCreate","onSelect"]),ne("div",gl,[P(t).currentConversationId?(z(),U(Qe,{key:1},[ne("div",{class:"chat-view__messages",ref_key:"messagesContainer",ref:n},[P(t).currentMessages.length===0?(z(),U("div",_l,[D(P(_t),{class:"chat-view__welcome-icon"}),i[1]||(i[1]=ne("h2",null,"Fischer AgentKit",-1)),i[2]||(i[2]=ne("p",null,"企业级 AI 智能体平台,输入消息开始对话",-1))])):ve("",!0),(z(!0),U(Qe,null,Hu(P(t).currentMessages,a=>(z(),ge(il,{key:a.id,message:a},null,8,["message"]))),128)),P(t).streamingSteps.length>0?(z(),U("div",yl,[D(P(u),{type:"secondary"},{default:ke(()=>[D(P(oo)),i[3]||(i[3]=ku(" 处理中... ",-1))]),_:1}),(z(!0),U(Qe,null,Hu(P(t).streamingSteps,(a,l)=>(z(),U("div",{key:l,class:"chat-view__step"},[D(P($0),{class:"chat-view__step-icon"}),ne("span",null,Me(a),1)]))),128))])):ve("",!0)],512),D(bl,{disabled:P(t).isLoading,onSend:o},null,8,["disabled"])],64)):(z(),U("div",xl,[D(P(L0),{description:"选择一个对话或创建新对话开始聊天"},{default:ke(()=>[D(P(sn),{type:"primary",onClick:P(t).createConversation},{icon:ke(()=>[D(P(H0))]),default:ke(()=>[i[0]||(i[0]=ku(" 新建对话 ",-1))]),_:1},8,["onClick"])]),_:1})]))])]))}}),jl=vu(El,[["__scopeId","data-v-e924e120"]]);export{jl as default}; +`+Y),Ve&&(Y=st(Y)),S&&it?ie(Y):Y},u.setConfig=function(){let k=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};zt(k),vt=!0},u.clearConfig=function(){gu=null,vt=!1,S=$,M=""},u.isValidAttribute=function(k,s,p){gu||zt({});const y=V(k),T=V(s);return Ln(y,T,p)},u.addHook=function(k,s){typeof s=="function"&&_u(H[k],s)},u.removeHook=function(k,s){if(s!==void 0){const p=Cs(H[k],s);return p===-1?void 0:As(H[k],p,1)[0]}return E0(H[k])},u.removeHooks=function(k){H[k]=[]},u.removeAllHooks=function(){H=R0()},u}var Zs=Ar();const Ys={class:"tool-call-indicator__label"},Xs=Ae({__name:"ToolCallIndicator",props:{type:{},name:{}},setup(e){const u=e,t={read:pn,edit:xt,bash:Hn,write:dn,search:Un,grep:Un,glob:so},n=xe(()=>t[u.type]||Hn);return(r,o)=>(z(),U("span",{class:$u(["tool-call-indicator",`tool-call-indicator--${e.type}`])},[(z(),ge(B0(n.value),{class:"tool-call-indicator__icon"})),ne("span",Ys,Me(e.name),1)],2))}}),Ks=vu(Xs,[["__scopeId","data-v-40bd3149"]]),Js={class:"chat-message__avatar"},Qs={class:"chat-message__body"},el={key:0,class:"chat-message__tools"},ul=["innerHTML"],tl={key:1},nl={key:1,class:"chat-message__routing"},rl={class:"chat-message__time"},ol=Ae({__name:"ChatMessage",props:{message:{}},setup(e){const u=new Ce({html:!1,linkify:!0,breaks:!0});function t(l){return Zs.sanitize(l,{ALLOWED_TAGS:["p","br","strong","em","del","code","pre","a","ul","ol","li","h1","h2","h3","h4","blockquote","table","thead","tbody","tr","th","td","span"],ALLOWED_ATTR:["href","target","rel","class"],ALLOW_DATA_ATTR:!1})}const n=e,r=xe(()=>n.message.role==="assistant"&&n.message.status==="pending"&&!n.message.content),o=xe(()=>n.message.role==="assistant"&&n.message.matched_skill),c=xe(()=>new Date(n.message.timestamp).toLocaleTimeString("zh-CN",{hour:"2-digit",minute:"2-digit"})),i=xe(()=>n.message.content?t(u.render(n.message.content)):""),a=xe(()=>{const l=[],f=n.message.content||"",d=/^\[(Read|Edit|Bash|Write|Search|Grep|Glob)\]/gm;let m;for(;(m=d.exec(f))!==null;){const h=m[1].toLowerCase();l.push({type:h,name:m[1]})}return l});return(l,f)=>(z(),U("div",{class:$u(["chat-message",[`chat-message--${e.message.role}`]])},[ne("div",Js,[e.message.role==="assistant"?(z(),ge(P(cu),{key:0,size:32,class:"chat-message__avatar--assistant"},{icon:ke(()=>[D(P(_t))]),_:1})):(z(),ge(P(cu),{key:1,size:32,class:"chat-message__avatar--user"},{icon:ke(()=>[D(P(yo))]),_:1}))]),ne("div",Qs,[a.value.length>0?(z(),U("div",el,[(z(!0),U(Qe,null,Hu(a.value,(d,m)=>(z(),ge(Ks,{key:m,type:d.type,name:d.name},null,8,["type","name"]))),128))])):ve("",!0),ne("div",{class:$u(["chat-message__content",[`chat-message__content--${e.message.role}`]])},[e.message.role==="assistant"?(z(),U("div",{key:0,class:"chat-message__markdown",innerHTML:i.value},null,8,ul)):(z(),U("span",tl,Me(e.message.content),1)),r.value?(z(),ge(P(ko),{key:2,size:"small",class:"chat-message__loading"})):ve("",!0)],2),o.value?(z(),U("div",nl,[D(P(jt),{color:"purple"},{default:ke(()=>[D(P(Eo)),ku(" "+Me(e.message.matched_skill),1)]),_:1}),e.message.confidence!==void 0?(z(),ge(P(jt),{key:0,color:"green"},{default:ke(()=>[ku(" 置信度: "+Me((e.message.confidence*100).toFixed(1))+"% ",1)]),_:1})):ve("",!0),e.message.routing_method?(z(),ge(P(jt),{key:1,color:"default"},{default:ke(()=>[ku(Me(e.message.routing_method),1)]),_:1})):ve("",!0)])):ve("",!0),ne("div",rl,Me(c.value),1)])],2))}}),il=vu(ol,[["__scopeId","data-v-9598d97d"]]),cl={class:"context-pill"},al={class:"context-pill__label"},sl=Ae({__name:"ContextPill",props:{label:{},icon:{},removable:{type:Boolean}},emits:["remove"],setup(e){return(u,t)=>(z(),U("span",cl,[(z(),ge(B0(e.icon),{class:"context-pill__icon"})),ne("span",al,Me(e.label),1),e.removable?(z(),U("button",{key:0,class:"context-pill__remove",onClick:t[0]||(t[0]=to(n=>u.$emit("remove"),["stop"]))},[D(P(no))])):ve("",!0)]))}}),ll=vu(sl,[["__scopeId","data-v-6f381f53"]]),fl={class:"chat-input"},dl={key:0,class:"chat-input__pills"},pl={class:"chat-input__row"},hl=Ae({__name:"ChatInput",props:{disabled:{type:Boolean,default:!1},placeholder:{default:"输入消息,按 Enter 发送..."}},emits:["send"],setup(e,{emit:u}){const t=mo.TextArea,n=e,r=u,o=su(""),c=su([]),i=xe(()=>o.value.trim().length>0&&!n.disabled);function a(){const d=o.value.trim();d&&(r("send",d),o.value="")}function l(d){d.shiftKey||(d.preventDefault(),a())}function f(d){c.value.splice(d,1)}return(d,m)=>(z(),U("div",fl,[c.value.length>0?(z(),U("div",dl,[(z(!0),U(Qe,null,Hu(c.value,(h,b)=>(z(),ge(ll,{key:b,label:h.label,icon:h.icon,removable:h.removable,onRemove:v=>f(b)},null,8,["label","icon","removable","onRemove"]))),128))])):ve("",!0),ne("div",pl,[D(P(t),{value:o.value,"onUpdate:value":m[0]||(m[0]=h=>o.value=h),placeholder:e.placeholder,"auto-size":{minRows:1,maxRows:4},disabled:e.disabled,onPressEnter:l,class:"chat-input__textarea"},null,8,["value","placeholder","disabled"]),D(P(sn),{type:"primary",disabled:!i.value,loading:e.disabled,onClick:a,class:"chat-input__send"},{icon:ke(()=>[D(P(hn))]),_:1},8,["disabled","loading"])])]))}}),bl=vu(hl,[["__scopeId","data-v-c36a4482"]]),ml={class:"chat-view"},gl={class:"chat-view__main"},xl={key:0,class:"chat-view__empty"},_l={key:0,class:"chat-view__welcome"},yl={key:1,class:"chat-view__steps"},El=Ae({__name:"ChatView",setup(e){const u=pe.Text,t=jr(),n=su(null);Vu(()=>{t.loadConversations(),t.connectWebSocket()}),ro(()=>{t.disconnectWebSocket()}),au(()=>t.currentMessages.length,async()=>{await iu(),r()}),au(()=>t.streamingSteps.length,async()=>{await iu(),r()});function r(){n.value&&(n.value.scrollTop=n.value.scrollHeight)}function o(c){t.isWsConnected?t.sendWsMessage(c):t.sendMessage(c)}return(c,i)=>(z(),U("div",ml,[D(Fi,{conversations:P(t).conversations,"current-id":P(t).currentConversationId,onCreate:P(t).createConversation,onSelect:P(t).selectConversation},null,8,["conversations","current-id","onCreate","onSelect"]),ne("div",gl,[P(t).currentConversationId?(z(),U(Qe,{key:1},[ne("div",{class:"chat-view__messages",ref_key:"messagesContainer",ref:n},[P(t).currentMessages.length===0?(z(),U("div",_l,[D(P(_t),{class:"chat-view__welcome-icon"}),i[1]||(i[1]=ne("h2",null,"Fischer AgentKit",-1)),i[2]||(i[2]=ne("p",null,"企业级 AI 智能体平台,输入消息开始对话",-1))])):ve("",!0),(z(!0),U(Qe,null,Hu(P(t).currentMessages,a=>(z(),ge(il,{key:a.id,message:a},null,8,["message"]))),128)),P(t).streamingSteps.length>0?(z(),U("div",yl,[D(P(u),{type:"secondary"},{default:ke(()=>[D(P(oo)),i[3]||(i[3]=ku(" 处理中... ",-1))]),_:1}),(z(!0),U(Qe,null,Hu(P(t).streamingSteps,(a,l)=>(z(),U("div",{key:l,class:"chat-view__step"},[D(P($0),{class:"chat-view__step-icon"}),ne("span",null,Me(a),1)]))),128))])):ve("",!0)],512),D(bl,{disabled:P(t).isLoading,onSend:o},null,8,["disabled"])],64)):(z(),U("div",xl,[D(P(L0),{description:"选择一个对话或创建新对话开始聊天"},{default:ke(()=>[D(P(sn),{type:"primary",onClick:P(t).createConversation},{icon:ke(()=>[D(P(H0))]),default:ke(()=>[i[0]||(i[0]=ku(" 新建对话 ",-1))]),_:1},8,["onClick"])]),_:1})]))])]))}}),jl=vu(El,[["__scopeId","data-v-e924e120"]]);export{jl as default}; diff --git a/src/agentkit/server/static/assets/ChatView-DGuMaiL8.css b/src/agentkit/server/static/assets/ChatView-CFmQzkwB.css similarity index 77% rename from src/agentkit/server/static/assets/ChatView-DGuMaiL8.css rename to src/agentkit/server/static/assets/ChatView-CFmQzkwB.css index 3ceb3e2..6c0f90c 100644 --- a/src/agentkit/server/static/assets/ChatView-DGuMaiL8.css +++ b/src/agentkit/server/static/assets/ChatView-CFmQzkwB.css @@ -1 +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-9598d97d]{display:flex;gap:var(--space-3);padding:var(--space-3) var(--space-4)}.chat-message--user[data-v-9598d97d]{flex-direction:row-reverse}.chat-message__avatar[data-v-9598d97d]{flex-shrink:0}.chat-message__avatar--assistant[data-v-9598d97d]{background:var(--gradient-brand)!important}.chat-message__avatar--user[data-v-9598d97d]{background-color:var(--color-success)!important}.chat-message__body[data-v-9598d97d]{max-width:75%;display:flex;flex-direction:column;gap:var(--space-1)}.chat-message--user .chat-message__body[data-v-9598d97d]{align-items:flex-end}.chat-message__tools[data-v-9598d97d]{display:flex;gap:var(--space-1);flex-wrap:wrap}.chat-message__content[data-v-9598d97d]{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-9598d97d]{background:var(--color-primary);color:var(--text-inverse);border-bottom-right-radius:var(--radius-sm)}.chat-message__content--assistant[data-v-9598d97d]{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-9598d97d]{overflow-x:auto}.chat-message__markdown[data-v-9598d97d] p{margin-bottom:var(--space-2)}.chat-message__markdown[data-v-9598d97d] p:last-child{margin-bottom:0}.chat-message__markdown[data-v-9598d97d] 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-9598d97d] code{font-family:SF Mono,Fira Code,Cascadia Code,Menlo,Consolas,monospace;font-size:var(--font-sm)}.chat-message__markdown[data-v-9598d97d] :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-9598d97d] ul,.chat-message__markdown[data-v-9598d97d] ol{padding-left:var(--space-5);margin-bottom:var(--space-2)}.chat-message__markdown[data-v-9598d97d] h1,.chat-message__markdown[data-v-9598d97d] h2,.chat-message__markdown[data-v-9598d97d] h3{margin-top:var(--space-3);margin-bottom:var(--space-2)}.chat-message__loading[data-v-9598d97d]{margin-left:var(--space-2)}.chat-message__routing[data-v-9598d97d]{display:flex;gap:var(--space-1);flex-wrap:wrap}.chat-message__time[data-v-9598d97d]{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)} +.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-9598d97d]{display:flex;gap:var(--space-3);padding:var(--space-3) var(--space-4)}.chat-message--user[data-v-9598d97d]{flex-direction:row-reverse}.chat-message__avatar[data-v-9598d97d]{flex-shrink:0}.chat-message__avatar--assistant[data-v-9598d97d]{background:var(--gradient-brand)!important}.chat-message__avatar--user[data-v-9598d97d]{background-color:var(--color-success)!important}.chat-message__body[data-v-9598d97d]{max-width:75%;display:flex;flex-direction:column;gap:var(--space-1)}.chat-message--user .chat-message__body[data-v-9598d97d]{align-items:flex-end}.chat-message__tools[data-v-9598d97d]{display:flex;gap:var(--space-1);flex-wrap:wrap}.chat-message__content[data-v-9598d97d]{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-9598d97d]{background:var(--color-primary);color:var(--text-inverse);border-bottom-right-radius:var(--radius-sm)}.chat-message__content--assistant[data-v-9598d97d]{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-9598d97d]{overflow-x:auto}.chat-message__markdown[data-v-9598d97d] p{margin-bottom:var(--space-2)}.chat-message__markdown[data-v-9598d97d] p:last-child{margin-bottom:0}.chat-message__markdown[data-v-9598d97d] 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-9598d97d] code{font-family:SF Mono,Fira Code,Cascadia Code,Menlo,Consolas,monospace;font-size:var(--font-sm)}.chat-message__markdown[data-v-9598d97d] :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-9598d97d] ul,.chat-message__markdown[data-v-9598d97d] ol{padding-left:var(--space-5);margin-bottom:var(--space-2)}.chat-message__markdown[data-v-9598d97d] h1,.chat-message__markdown[data-v-9598d97d] h2,.chat-message__markdown[data-v-9598d97d] h3{margin-top:var(--space-3);margin-bottom:var(--space-2)}.chat-message__loading[data-v-9598d97d]{margin-left:var(--space-2)}.chat-message__routing[data-v-9598d97d]{display:flex;gap:var(--space-1);flex-wrap:wrap}.chat-message__time[data-v-9598d97d]{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-c36a4482]{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-c36a4482]{display:flex;gap:var(--space-1);flex-wrap:wrap;padding-bottom:var(--space-2)}.chat-input__row[data-v-c36a4482]{display:flex;align-items:flex-end;gap:var(--space-2)}.chat-input__textarea[data-v-c36a4482]{flex:1;min-height:40px}.chat-input__textarea[data-v-c36a4482] .ant-input{min-height:40px;line-height:1.5;padding-top:8px;padding-bottom:8px}.chat-input__send[data-v-c36a4482]{flex-shrink:0;height:40px;min-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-CGUdikGP.js b/src/agentkit/server/static/assets/Checkbox-r-colYvs.js similarity index 94% rename from src/agentkit/server/static/assets/Checkbox-CGUdikGP.js rename to src/agentkit/server/static/assets/Checkbox-r-colYvs.js index bc6309e..506d2b8 100644 --- a/src/agentkit/server/static/assets/Checkbox-CGUdikGP.js +++ b/src/agentkit/server/static/assets/Checkbox-r-colYvs.js @@ -1 +1 @@ -import{d as E,r as f,i as V,z as o,R,c as h,J as W,P as z}from"./index-Cdm90D30.js";import{i as F}from"./_plugin-vue_export-helper-BpJgGuqH.js";var I=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,_=I(t,["prefixCls","name","id","type","disabled","readonly","tabindex","autofocus","value","required"]),{class:j,onFocus:B,onBlur:K,onKeydown:N,onKeypress:w,onKeyup:D}=c,v=o(o({},_),c),$=Object.keys(v).reduce((p,r)=>((r.startsWith("data-")||r.startsWith("aria-")||r==="role")&&(p[r]=v[r]),p),{}),q=R(e,j,{[`${e}-checked`]:d.value,[`${e}-disabled`]:b}),A=o(o({name:u,id:g,type:m,readonly:x,disabled:b,tabindex:C,class:`${e}-input`,checked:!!d.value,autofocus:O,value:P},$),{onChange:y,onClick:k,onFocus:B,onBlur:K,onKeydown:N,onKeypress:w,onKeyup:D,required:S});return h("span",{class:q},[h("input",W({ref:s},A),null),h("span",{class:`${e}-inner`},null)])}}});export{G as V}; +import{d as E,r as f,i as V,z as o,R,c as h,J as W,P as z}from"./index-MxXYiP1e.js";import{i as F}from"./_plugin-vue_export-helper-CbNEYfqg.js";var I=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,_=I(t,["prefixCls","name","id","type","disabled","readonly","tabindex","autofocus","value","required"]),{class:j,onFocus:B,onBlur:K,onKeydown:N,onKeypress:w,onKeyup:D}=c,v=o(o({},_),c),$=Object.keys(v).reduce((p,r)=>((r.startsWith("data-")||r.startsWith("aria-")||r==="role")&&(p[r]=v[r]),p),{}),q=R(e,j,{[`${e}-checked`]:d.value,[`${e}-disabled`]:b}),A=o(o({name:u,id:g,type:m,readonly:x,disabled:b,tabindex:C,class:`${e}-input`,checked:!!d.value,autofocus:O,value:P},$),{onChange:y,onClick:k,onFocus:B,onBlur:K,onKeydown:N,onKeypress:w,onKeyup:D,required:S});return h("span",{class:q},[h("input",W({ref:s},A),null),h("span",{class:`${e}-inner`},null)])}}});export{G as V}; diff --git a/src/agentkit/server/static/assets/ComputerUseView-BslO-Pem.js b/src/agentkit/server/static/assets/ComputerUseView-BABiOncW.js similarity index 99% rename from src/agentkit/server/static/assets/ComputerUseView-BslO-Pem.js rename to src/agentkit/server/static/assets/ComputerUseView-BABiOncW.js index 17c38d6..34eedda 100644 --- a/src/agentkit/server/static/assets/ComputerUseView-BslO-Pem.js +++ b/src/agentkit/server/static/assets/ComputerUseView-BABiOncW.js @@ -1 +1 @@ -import{D as b}from"./DesktopOutlined-ClGl-80a.js";import{c as l,I as x,x as I,y as H,d as z,D as y,J as D,f as T,az as V,ao as O,an as N,P as p,R as P,a as R,w as A,af as W,e as g,o as G,$ as L}from"./index-Cdm90D30.js";import{B as U}from"./index-DlUg5G7X.js";import{_ as X}from"./_plugin-vue_export-helper-BpJgGuqH.js";import"./devWarning-Ct6dVMcH.js";var J={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(),R("div",d1,[l(g(c),{icon:W(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"])]))}}),F1=X(c1,[["__scopeId","data-v-baa4efd2"]]);export{F1 as default}; +import{D as b}from"./DesktopOutlined-B5tFIirw.js";import{c as l,I as x,x as I,y as H,d as z,D as y,J as D,f as T,az as V,ao as O,an as N,P as p,R as P,a as R,w as A,af as W,e as g,o as G,$ as L}from"./index-MxXYiP1e.js";import{B as U}from"./index-p0fEGd1V.js";import{_ as X}from"./_plugin-vue_export-helper-CbNEYfqg.js";import"./devWarning-Ct6dVMcH.js";var J={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(),R("div",d1,[l(g(c),{icon:W(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"])]))}}),F1=X(c1,[["__scopeId","data-v-baa4efd2"]]);export{F1 as default}; diff --git a/src/agentkit/server/static/assets/DeleteOutlined-C9vx5Gyj.js b/src/agentkit/server/static/assets/DeleteOutlined-CclyZH8N.js similarity index 99% rename from src/agentkit/server/static/assets/DeleteOutlined-C9vx5Gyj.js rename to src/agentkit/server/static/assets/DeleteOutlined-CclyZH8N.js index 5fec3e2..bbcaa6a 100644 --- a/src/agentkit/server/static/assets/DeleteOutlined-C9vx5Gyj.js +++ b/src/agentkit/server/static/assets/DeleteOutlined-CclyZH8N.js @@ -1,4 +1,4 @@ -import{P as ye,at as Oe,aK as Ye,ax as He,z as g,aY as oa,x as nn,y as on,A as Rt,aZ as Sn,d as be,D as St,c as m,J as Y,R as ie,f as w,aF as It,B as Je,K as oe,C as Qe,Q as ct,E as ft,ay as jn,ab as Zo,aR as Nt,a_ as el,L as ze,r as $e,I as Ue,a$ as la,$ as Hn,b0 as kt,b1 as aa,b2 as ra,b3 as Xt,aI as tl,aw as Ie,aB as lt,aO as We,a6 as Fe,b4 as ia,aH as sa,i as _e,M as nl,b5 as Lt,b6 as ca,V as da,a2 as ol,F as dt,T as wt,b7 as ua,G as pt,b8 as fa,O as un,b9 as ro,aG as pa,p as va,v as ma,W as io,a3 as ha,ba as ga,aN as ya,Z as so,aV as ba,aW as Tt,aU as xa,aL as Ca}from"./index-Cdm90D30.js";import{i as Sa}from"./styleChecker-DuXayfgz.js";import{e as Ve,u as ll,F as wa,o as $a}from"./FolderOpenOutlined-aJTansHZ.js";import{i as Pa,c as Ut,b as Wn,d as gt,s as Oa,g as co,e as Ia}from"./zoom-DFzZ47uz.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-DUKU9Yum.js";import{w as yt,i as $t,c as za}from"./_plugin-vue_export-helper-BpJgGuqH.js";import{d as Xe,w as al,a as Fa}from"./devWarning-Ct6dVMcH.js";import{R as rl}from"./index-DQ-PTKeR.js";import{B as il,i as Ma,g as La,c as ja,d as fo,u as Ha,I as Wa,S as Va}from"./index-zQkkOnqV.js";import{b as Xa,i as po,c as Ua,S as qt,s as sl,D as Ga,L as qa}from"./Dropdown-BfmL-5TH.js";import{b as Ya,B as Dt,u as bt}from"./index-DlUg5G7X.js";import{p as Vn}from"./pickAttrs-cDcy8MZ0.js";import{S as Ja}from"./index-B9Cq1xD6.js";import{R as Yt,L as vo}from"./LeftOutlined-Cjp7xl2E.js";import{b as Qa,r as Za,c as er,d as tr,f as mo,A as nr}from"./base-BzUb4EcV.js";import{o as _t}from"./FormItemContext-C7duC9vx.js";import{C as Jt,g as or}from"./index-CPf0IATs.js";import{R as cl}from"./index-Chz7LVBG.js";import{K as it}from"./KeyCode-c8YLmrmC.js";import{d as lr}from"./index-Bw7-qyYZ.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=Ya(),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"},[` +import{P as ye,at as Oe,aK as Ye,ax as He,z as g,aY as oa,x as nn,y as on,A as Rt,aZ as Sn,d as be,D as St,c as m,J as Y,R as ie,f as w,aF as It,B as Je,K as oe,C as Qe,Q as ct,E as ft,ay as jn,ab as Zo,aR as Nt,a_ as el,L as ze,r as $e,I as Ue,a$ as la,$ as Hn,b0 as kt,b1 as aa,b2 as ra,b3 as Xt,aI as tl,aw as Ie,aB as lt,aO as We,a6 as Fe,b4 as ia,aH as sa,i as _e,M as nl,b5 as Lt,b6 as ca,V as da,a2 as ol,F as dt,T as wt,b7 as ua,G as pt,b8 as fa,O as un,b9 as ro,aG as pa,p as va,v as ma,W as io,a3 as ha,ba as ga,aN as ya,Z as so,aV as ba,aW as Tt,aU as xa,aL as Ca}from"./index-MxXYiP1e.js";import{i as Sa}from"./styleChecker-BO8K1F6-.js";import{e as Ve,u as ll,F as wa,o as $a}from"./FolderOpenOutlined-DkHI-22a.js";import{i as Pa,c as Ut,b as Wn,d as gt,s as Oa,g as co,e as Ia}from"./zoom-BTwsIXn4.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-DzzgX9TA.js";import{w as yt,i as $t,c as za}from"./_plugin-vue_export-helper-CbNEYfqg.js";import{d as Xe,w as al,a as Fa}from"./devWarning-Ct6dVMcH.js";import{R as rl}from"./index-BzwcKMhL.js";import{B as il,i as Ma,g as La,c as ja,d as fo,u as Ha,I as Wa,S as Va}from"./index-C-JDvA85.js";import{b as Xa,i as po,c as Ua,S as qt,s as sl,D as Ga,L as qa}from"./Dropdown-EJ9XzwSc.js";import{b as Ya,B as Dt,u as bt}from"./index-p0fEGd1V.js";import{p as Vn}from"./pickAttrs-CdccUdli.js";import{S as Ja}from"./index-BjhFFLnY.js";import{R as Yt,L as vo}from"./LeftOutlined-CAv2mg6T.js";import{b as Qa,r as Za,c as er,d as tr,f as mo,A as nr}from"./base--VGJiuPH.js";import{o as _t}from"./FormItemContext-CIZixMRP.js";import{C as Jt,g as or}from"./index-CIqRW9zM.js";import{R as cl}from"./index-DVAHMIEx.js";import{K as it}from"./KeyCode-c8YLmrmC.js";import{d as lr}from"./index-6F6eWDOC.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=Ya(),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 diff --git a/src/agentkit/server/static/assets/DesktopOutlined-ClGl-80a.js b/src/agentkit/server/static/assets/DesktopOutlined-B5tFIirw.js similarity index 93% rename from src/agentkit/server/static/assets/DesktopOutlined-ClGl-80a.js rename to src/agentkit/server/static/assets/DesktopOutlined-B5tFIirw.js index 0544488..6ab29d7 100644 --- a/src/agentkit/server/static/assets/DesktopOutlined-ClGl-80a.js +++ b/src/agentkit/server/static/assets/DesktopOutlined-B5tFIirw.js @@ -1 +1 @@ -import{c as i,I as u}from"./index-Cdm90D30.js";var l={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 140H96c-17.7 0-32 14.3-32 32v496c0 17.7 14.3 32 32 32h380v112H304c-8.8 0-16 7.2-16 16v48c0 4.4 3.6 8 8 8h432c4.4 0 8-3.6 8-8v-48c0-8.8-7.2-16-16-16H548V700h380c17.7 0 32-14.3 32-32V172c0-17.7-14.3-32-32-32zm-40 488H136V212h752v416z"}}]},name:"desktop",theme:"outlined"};function c(r){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:D,containerWidth:N,dropdownRender:P,animation:b,transitionName:R,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}`:R,z=S({minWidth:`${N}px`},w);return typeof D=="number"?z.width=`${D}px`:D&&(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=zn(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:D,onCompositionend:N,onFocus:P,onBlur:b,open:R,inputRef:O,attrs:E}=e;let L=r||T(ro,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":R,"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){D(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,D){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:D,customizeIcon:e.removeIcon},{default:()=>[et("×")]})])}function s(p,w,I,x,D,N){var P;const b=O=>{Et(O),e.onToggleOpen(!open)};let R=N;return l.keyEntities&&(R=((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:D,option:R})])}function g(p){const{disabled:w,label:I,value:x,option:D}=p,N=!e.disabled&&!w;let P=I;if(typeof e.maxTagTextLength=="number"&&(typeof I=="string"||typeof I=="number")){const R=String(P);R.length>e.maxTagTextLength&&(P=`${R.slice(0,e.maxTagTextLength)}...`)}const b=R=>{var O;R&&R.stopPropagation(),(O=e.onRemove)===null||O===void 0||O.call(e,p)};return typeof e.tagRender=="function"?s(x,P,w,N,b,D):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:D,placeholder:N,disabled:P,autofocus:b,autocomplete:R,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:D,open:x,prefixCls:w,id:p,inputElement:null,disabled:P,autofocus:b,autocomplete:R,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(po,{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])])}}}),Ro={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:D,disabled:N,autofocus:P,autocomplete:b,activeDescendantId:R,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:D,prefixCls:w,id:I,open:O,inputElement:p,disabled:N,autofocus:P,autocomplete:b,editable:o.value,activeDescendantId:R,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=Ro;ct.inheritAttrs=!1;function Do(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 De(){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=De(),l=de(!1),[i,r]=Qt(0),a=x=>{const{which:D}=x;(D===A.UP||D===A.DOWN)&&x.preventDefault(),e.onInputKeyDown&&e.onInputKeyDown(x),D===A.ENTER&&e.mode==="tags"&&!l.value&&!e.open&&e.onSearchSubmit(x.target.value),Do(D)&&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:D}}=x;if(e.tokenWithEnter&&u&&/[\r\n]/.test(u)){const N=u.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");D=D.replace(N,u)}u=null,s(D)},p=x=>{const{clipboardData:D}=x;u=D.getData("text")},w=x=>{let{target:D}=x;D!==o.current&&(document.body.style.msTouchAction!==void 0?setTimeout(()=>{o.current.focus()}):o.current.focus())},I=x=>{const D=i();x.target!==o.current&&!D&&x.preventDefault(),(e.mode!=="combobox"&&(!e.showSearch||!D)||!e.open)&&(e.open&&e.onSearch("",!0,!1),e.onToggleOpen())};return n({focus:()=>{o.current.focus()},blur:()=>{o.current.blur()}}),()=>{const{prefixCls:x,domRef:D,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:D,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(!Kn(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=De(),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,R=X(b),O=X(b),E=c=>{R.value=e.open!==void 0?e.open:c,O.value=R.value};te(()=>e.open,()=>{E(e.open)});const L=V(()=>!e.notFoundContent&&e.emptyOptions);$e(()=>{O.value=R.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=>[` +import{T as Kt,x as Vn,M as Wt,m as Nn,w as Hn}from"./base--VGJiuPH.js";import{i as ot,w as ve,f as Ln,k as _n,b as Ve,S as Be,l as An,m as jt,o as Bn}from"./_plugin-vue_export-helper-CbNEYfqg.js";import{z as S,d as fe,P as C,c as T,J as k,R as ue,f as V,r as de,b5 as zn,ba as Ut,B as We,L as $e,E as be,i as te,$ as et,F as Te,K as X,T as Ne,C as lt,ag as Kn,Q as Me,O as Wn,aF as it,M as Gt,a2 as jn,G as Re,ay as Un,W as at,b8 as Gn,a6 as ge,I as Yn,ao as Xn,a3 as qn,a1 as Qn,aN as Se,A as rt,aV as tt,y as ye,aC as Yt,x as Zn,D as Jn,aw as kn,aB as Fe,at as eo,ax as Ot,aX as to,aJ as no,bw as oo,bx as lo,by as io}from"./index-MxXYiP1e.js";import{K as A}from"./KeyCode-c8YLmrmC.js";import{c as ze,s as he,f as ao}from"./zoom-BTwsIXn4.js";import{B as ro,u as $t,S as so,C as uo,n as co,o as fo}from"./index-C-JDvA85.js";import{p as st}from"./pickAttrs-CdccUdli.js";import{O as po,s as mo,d as vo,e as go,f as ho,i as Tt}from"./index-DzzgX9TA.js";import{R as bo}from"./index-BzwcKMhL.js";import{o as je,u as yo,F as So}from"./FormItemContext-CIZixMRP.js";import{u as Mt,g as wo,d as Co}from"./index-p0fEGd1V.js";function Pt(e,t){const{key:n}=e;let o;return"value"in e&&({value:o}=e),n??(o!==void 0?o:`rc-index-key-${t}`)}function Xt(e,t){const{label:n,value:o,options:l}=e||{};return{label:n||(t?"children":"label"),value:o||"value",options:l||"options"}}function Io(e){let{fieldNames:t,childrenAsData:n}=arguments.length>1&&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:D,containerWidth:N,dropdownRender:P,animation:b,transitionName:R,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}`:R,z=S({minWidth:`${N}px`},w);return typeof D=="number"?z.width=`${D}px`:D&&(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=zn(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:D,onCompositionend:N,onFocus:P,onBlur:b,open:R,inputRef:O,attrs:E}=e;let L=r||T(ro,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":R,"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){D(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,D){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:D,customizeIcon:e.removeIcon},{default:()=>[et("×")]})])}function s(p,w,I,x,D,N){var P;const b=O=>{Et(O),e.onToggleOpen(!open)};let R=N;return l.keyEntities&&(R=((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:D,option:R})])}function g(p){const{disabled:w,label:I,value:x,option:D}=p,N=!e.disabled&&!w;let P=I;if(typeof e.maxTagTextLength=="number"&&(typeof I=="string"||typeof I=="number")){const R=String(P);R.length>e.maxTagTextLength&&(P=`${R.slice(0,e.maxTagTextLength)}...`)}const b=R=>{var O;R&&R.stopPropagation(),(O=e.onRemove)===null||O===void 0||O.call(e,p)};return typeof e.tagRender=="function"?s(x,P,w,N,b,D):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:D,placeholder:N,disabled:P,autofocus:b,autocomplete:R,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:D,open:x,prefixCls:w,id:p,inputElement:null,disabled:P,autofocus:b,autocomplete:R,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(po,{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])])}}}),Ro={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:D,disabled:N,autofocus:P,autocomplete:b,activeDescendantId:R,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:D,prefixCls:w,id:I,open:O,inputElement:p,disabled:N,autofocus:P,autocomplete:b,editable:o.value,activeDescendantId:R,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=Ro;ct.inheritAttrs=!1;function Do(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 De(){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=De(),l=de(!1),[i,r]=Qt(0),a=x=>{const{which:D}=x;(D===A.UP||D===A.DOWN)&&x.preventDefault(),e.onInputKeyDown&&e.onInputKeyDown(x),D===A.ENTER&&e.mode==="tags"&&!l.value&&!e.open&&e.onSearchSubmit(x.target.value),Do(D)&&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:D}}=x;if(e.tokenWithEnter&&u&&/[\r\n]/.test(u)){const N=u.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");D=D.replace(N,u)}u=null,s(D)},p=x=>{const{clipboardData:D}=x;u=D.getData("text")},w=x=>{let{target:D}=x;D!==o.current&&(document.body.style.msTouchAction!==void 0?setTimeout(()=>{o.current.focus()}):o.current.focus())},I=x=>{const D=i();x.target!==o.current&&!D&&x.preventDefault(),(e.mode!=="combobox"&&(!e.showSearch||!D)||!e.open)&&(e.open&&e.onSearch("",!0,!1),e.onToggleOpen())};return n({focus:()=>{o.current.focus()},blur:()=>{o.current.blur()}}),()=>{const{prefixCls:x,domRef:D,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:D,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(!Kn(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=De(),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,R=X(b),O=X(b),E=c=>{R.value=e.open!==void 0?e.open:c,O.value=R.value};te(()=>e.open,()=>{E(e.open)});const L=V(()=>!e.notFoundContent&&e.emptyOptions);$e(()=>{O.value=R.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,()=>{R.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({},Wn(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})),Rn=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:Rn,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:Dn}=we;return["number","string"].includes(typeof xt)?xt:Dn}).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(bo,{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:De(),thumbRef:De(),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 jn(()=>{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 D=e.value.clientHeight;let N=!1,P=x;if(D){const b=x||v;let R=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=R;const K=n.get(Y);E=O+(K===void 0?g:K),R=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-D+p;break;default:{const U=B+D;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=R(H);u.value&&(u.value.scrollTop=M),i.scrollTop=M}const[w,I,x,D]=Yo(a,y),N=Me({scrollHeight:void 0,start:0,end:0,offset:void 0}),P=X(0);be(()=>{Re(()=>{var m;P.value=((m=s.value)===null||m===void 0?void 0:m.offsetHeight)||0})}),Un(()=>{Re(()=>{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,D,()=>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 R(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(()=>{Re(()=>{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:D,end:N}=this.calRes,{componentStyle:P,onFallbackScroll:b,onScrollBar:R,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(_,D,N,B,s,L)})]}),O&&T(Go,{ref:"scrollBarRef",prefixCls:t,scrollTop:w,height:n,scrollHeight:I,count:_.length,onScroll:R,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=De(),u=b=>{b.preventDefault()},s=b=>{f.current&&f.current.scrollTo(typeof b=="number"?{index:b}:b)},g=function(b){let R=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:R?"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],R=at(a.value).findIndex(O=>{let{data:E}=O;return E[i.fieldNames.value]===b});R!==-1&&(v(R),Re(()=>{s(R)}))}l.open&&Re(()=>{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 R=a.value[b];if(!R)return null;const O=R.data||{},{value:E}=O,{group:L}=R,B=st(O,!0),_=I(R);return R?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:R,ctrlKey:O}=b;switch(R){case A.N:case A.P:case A.UP:case A.DOWN:{let E=0;if(R===A.UP?E=-1:R===A.DOWN?E=1:il()&&O&&(R===A.N?E=1:R===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:R,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},[R]):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:Rt(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=Rt(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 D=I[f].filter(N=>p(i,w(N)));D.length&&g.push(S(S({},I),{[f]:D}))}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,D]=$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),R=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(D(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:R.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(Xn,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=D=>{let{open:N,showSearch:P}=D;return v(N&&P?T(so,{class:x},null):T(pt,{class:x},null))}}let w=null;s!==void 0?w=s:o?w=T(uo,null,null):w=null;let I=null;return g!==void 0?I=g:I=T(Qn,null,null),{clearIcon:y,suffixIcon:p,itemIcon:w,removeIcon:I}}var xl="[object Symbol]";function mt(e){return typeof e=="symbol"||Ln(e)&&_n(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 Rl(e){return function(){return e}}var Ke=function(){try{var e=An(Object,"defineProperty");return e({},"",{}),e}catch{}}(),Dl=Ke?function(e,t){return Ke(e,"toString",{configurable:!0,enumerable:!1,value:Rl(t),writable:!0})}:$l,Vl=Fl(Dl);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 Bi(e,t,n){var o=e[t];(!(Ll.call(e,t)&&Vn(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[ao(o,l,i,e.motionDurationMid),{[` ${o}-enter, diff --git a/src/agentkit/server/static/assets/EvolutionView-Knd2v7RU.js b/src/agentkit/server/static/assets/EvolutionView-BcrIraMF.js similarity index 99% rename from src/agentkit/server/static/assets/EvolutionView-Knd2v7RU.js rename to src/agentkit/server/static/assets/EvolutionView-BcrIraMF.js index b472b7f..2ddf842 100644 --- a/src/agentkit/server/static/assets/EvolutionView-Knd2v7RU.js +++ b/src/agentkit/server/static/assets/EvolutionView-BcrIraMF.js @@ -1,4 +1,4 @@ -import{c as J,x as Cw,y as Mw,z as dr,A as Aw,d as gi,D as Dw,J as qs,at as Iw,au as ff,av as Lw,aw as Pw,ax as l0,E as _u,ay as Rw,T as Ew,r as ze,I as uv,a4 as Ow,o as ge,a as me,b as Q,e as fe,w as Ce,ap as kw,t as Pe,$ as vt,Z as ho,F as Zi,j as qi,n as Wc,u as Bw,f as $d,m as Ui,a2 as u0,i as Xd,G as Nw}from"./index-Cdm90D30.js";import{B as Fw}from"./base-BzUb4EcV.js";import{S as zw,C as ts}from"./index-CQzZ-h-2.js";import{i as f0,_ as No}from"./_plugin-vue_export-helper-BpJgGuqH.js";import{o as Gw}from"./FormItemContext-C7duC9vx.js";import{B as Yc}from"./index-DlUg5G7X.js";import{T as bl}from"./index-DBNRwHot.js";import{S as Hw,a as cf}from"./Dropdown-BfmL-5TH.js";import{I as Vw}from"./index-zQkkOnqV.js";import{_ as Uw,a as hf}from"./index-Chz7LVBG.js";import{T as Ww,_ as Yw}from"./index-DWEEelzT.js";import"./zoom-DFzZ47uz.js";import"./devWarning-Ct6dVMcH.js";import"./KeyCode-c8YLmrmC.js";import"./pickAttrs-cDcy8MZ0.js";import"./index-DUKU9Yum.js";import"./index-DQ-PTKeR.js";import"./Checkbox-CGUdikGP.js";import"./PlusOutlined-BZYJdEGN.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"]]);/*! ***************************************************************************** +import{c as J,x as Cw,y as Mw,z as dr,A as Aw,d as gi,D as Dw,J as qs,at as Iw,au as ff,av as Lw,aw as Pw,ax as l0,E as _u,ay as Rw,T as Ew,r as ze,I as uv,a4 as Ow,o as ge,a as me,b as Q,e as fe,w as Ce,ap as kw,t as Pe,$ as vt,Z as ho,F as Zi,j as qi,n as Wc,u as Bw,f as $d,m as Ui,a2 as u0,i as Xd,G as Nw}from"./index-MxXYiP1e.js";import{B as Fw}from"./base--VGJiuPH.js";import{S as zw,C as ts}from"./index-0ftJ_VhH.js";import{i as f0,_ as No}from"./_plugin-vue_export-helper-CbNEYfqg.js";import{o as Gw}from"./FormItemContext-CIZixMRP.js";import{B as Yc}from"./index-p0fEGd1V.js";import{T as bl}from"./index-BsO-BQWw.js";import{S as Hw,a as cf}from"./Dropdown-EJ9XzwSc.js";import{I as Vw}from"./index-C-JDvA85.js";import{_ as Uw,a as hf}from"./index-DVAHMIEx.js";import{T as Ww,_ as Yw}from"./index-CUHLv4kD.js";import"./zoom-BTwsIXn4.js";import"./devWarning-Ct6dVMcH.js";import"./KeyCode-c8YLmrmC.js";import"./pickAttrs-CdccUdli.js";import"./index-DzzgX9TA.js";import"./index-BzwcKMhL.js";import"./Checkbox-r-colYvs.js";import"./PlusOutlined-CMd58dlX.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 diff --git a/src/agentkit/server/static/assets/FolderOpenOutlined-aJTansHZ.js b/src/agentkit/server/static/assets/FolderOpenOutlined-DkHI-22a.js similarity index 92% rename from src/agentkit/server/static/assets/FolderOpenOutlined-aJTansHZ.js rename to src/agentkit/server/static/assets/FolderOpenOutlined-DkHI-22a.js index 540b8b1..50750d3 100644 --- a/src/agentkit/server/static/assets/FolderOpenOutlined-aJTansHZ.js +++ b/src/agentkit/server/static/assets/FolderOpenOutlined-DkHI-22a.js @@ -1 +1 @@ -import{u}from"./responsiveObserve-Dze5mRNR.js";import{E as s,a2 as i,K as c,L as f,c as p,I as v}from"./index-Cdm90D30.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;t({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:()=>{}},_=()=>{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,_ as u}; +import{z as I,T as p,B as i,d as c,ab as C,i as f,f as F,r as x,C as a}from"./index-MxXYiP1e.js";import{e as y}from"./index-p0fEGd1V.js";function w(n,o){const e=I({},n);for(let t=0;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:()=>{}},_=()=>{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,_ as u}; diff --git a/src/agentkit/server/static/assets/KnowledgeBaseView-B2lh4rdM.js b/src/agentkit/server/static/assets/KnowledgeBaseView-DFe-BwZs.js similarity index 98% rename from src/agentkit/server/static/assets/KnowledgeBaseView-B2lh4rdM.js rename to src/agentkit/server/static/assets/KnowledgeBaseView-DFe-BwZs.js index 93a00c1..ea85afe 100644 --- a/src/agentkit/server/static/assets/KnowledgeBaseView-B2lh4rdM.js +++ b/src/agentkit/server/static/assets/KnowledgeBaseView-DFe-BwZs.js @@ -1,4 +1,4 @@ -import{P as Ie,aw as j,at as H,aB as Y,ax as le,x as Re,y as We,z as D,A as Ke,aC as nn,d as V,r as N,i as Xe,D as ve,R as ie,c as l,J as L,aD as on,f as B,M as St,aE as rn,aF as xt,L as Pt,K as he,p as Ve,aG as It,v as qe,aH as Ot,U as an,a6 as kt,aI as Dt,aJ as ln,az as sn,aK as ae,av as ce,aL as At,aM as He,F as te,ay as cn,aN as Ge,ao as un,a1 as dn,an as pn,E as ye,T as Tt,I as Se,aO as De,aP as fn,aQ as mn,a3 as rt,aR as gn,aS as vn,aT as yn,aU as Rt,aV as Ft,aW as hn,aX as bn,a4 as $n,o as z,a as G,w as x,b as me,e as J,k as ue,m as Q,$ as K,t as Z,aq as q,Z as Et,Q as at,j as lt}from"./index-Cdm90D30.js";import{k as wn,f as _n,t as Cn,a as Sn,A as Lt,B as xn}from"./base-BzUb4EcV.js";import{a as Pn,b as In,i as de,_ as Fe}from"./_plugin-vue_export-helper-BpJgGuqH.js";import{p as On}from"./pickAttrs-cDcy8MZ0.js";import{b as kn,F as Ut,_ as jt}from"./index-Bw7-qyYZ.js";import{c as it,B as Ce}from"./index-DlUg5G7X.js";import{u as Bt,C as Dn,E as An,I as Tn,a as Rn,b as Fn}from"./index-zQkkOnqV.js";import{D as En,_ as Mt}from"./DeleteOutlined-C9vx5Gyj.js";import{d as we}from"./devWarning-Ct6dVMcH.js";import{u as Ln,T as Un,_ as jn}from"./index-DWEEelzT.js";import{g as zt,c as Nt}from"./index-DUKU9Yum.js";import{o as Bn,u as Mn}from"./FormItemContext-C7duC9vx.js";import{_ as Ht}from"./index-Bhzy1-DW.js";import{T as Je}from"./index-DBNRwHot.js";import{P as zn}from"./index-BMDKnjoj.js";import{K as Nn}from"./KeyCode-c8YLmrmC.js";import{c as st,a as Hn}from"./zoom-DFzZ47uz.js";import{A as Wn,M as Kn}from"./index-Bm5ZpeOU.js";import{S as Xn}from"./index-B9Cq1xD6.js";import{P as Vn}from"./PlusOutlined-BZYJdEGN.js";import{S as Wt,a as qn}from"./Dropdown-BfmL-5TH.js";import{B as Gn}from"./index-CivBWDtQ.js";import{S as Jn}from"./index-DS4F546Z.js";import{R as Qn}from"./LeftOutlined-Cjp7xl2E.js";import{_ as Yn}from"./index-CUxjTFZM.js";import{_ as Zn,a as eo}from"./index-Chz7LVBG.js";import"./responsiveObserve-Dze5mRNR.js";import"./styleChecker-DuXayfgz.js";import"./index-DQ-PTKeR.js";import"./FolderOpenOutlined-aJTansHZ.js";import"./index-CPf0IATs.js";import"./Checkbox-CGUdikGP.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:j(),openAnimation:Ie.object,expandIconPosition:Y(),collapsible:Y(),ghost:H(),onChange:j(),"onUpdate:activeKey":j()}),Kt=()=>({openAnimation:Ie.object,prefixCls:String,header:Ie.any,headerClass:String,showArrow:H(),isActive:H(),destroyInactivePanel:H(),disabled:H(),accordion:H(),forceRender:H(),expandIcon:j(),extra:Ie.any,panelKey:le(),collapsible:Y(),role:String,onItemClick:j()}),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({},Ke(e)),{backgroundColor:i,border:p,borderBottom:0,borderRadius:`${c}px`,"&-rtl":{direction:"rtl"},[`& > ${t}-item`]:{borderBottom:p,"&:last-child":{[` +import{P as Ie,aw as j,at as H,aB as Y,ax as le,x as Re,y as We,z as D,A as Ke,aC as nn,d as V,r as N,i as Xe,D as ve,R as ie,c as l,J as L,aD as on,f as B,M as St,aE as rn,aF as xt,L as Pt,K as he,p as Ve,aG as It,v as qe,aH as Ot,U as an,a6 as kt,aI as Dt,aJ as ln,az as sn,aK as ae,av as ce,aL as At,aM as He,F as te,ay as cn,aN as Ge,ao as un,a1 as dn,an as pn,E as ye,T as Tt,I as Se,aO as De,aP as fn,aQ as mn,a3 as rt,aR as gn,aS as vn,aT as yn,aU as Rt,aV as Ft,aW as hn,aX as bn,a4 as $n,o as z,a as G,w as x,b as me,e as J,k as ue,m as Q,$ as K,t as Z,aq as q,Z as Et,Q as at,j as lt}from"./index-MxXYiP1e.js";import{k as wn,f as _n,t as Cn,a as Sn,A as Lt,B as xn}from"./base--VGJiuPH.js";import{a as Pn,b as In,i as de,_ as Fe}from"./_plugin-vue_export-helper-CbNEYfqg.js";import{p as On}from"./pickAttrs-CdccUdli.js";import{b as kn,F as Ut,_ as jt}from"./index-6F6eWDOC.js";import{c as it,B as Ce}from"./index-p0fEGd1V.js";import{u as Bt,C as Dn,E as An,I as Tn,a as Rn,b as Fn}from"./index-C-JDvA85.js";import{D as En,_ as Mt}from"./DeleteOutlined-CclyZH8N.js";import{d as we}from"./devWarning-Ct6dVMcH.js";import{u as Ln,T as Un,_ as jn}from"./index-CUHLv4kD.js";import{g as zt,c as Nt}from"./index-DzzgX9TA.js";import{o as Bn,u as Mn}from"./FormItemContext-CIZixMRP.js";import{_ as Ht}from"./index-Cm4StDv9.js";import{T as Je}from"./index-BsO-BQWw.js";import{P as zn}from"./index-BaJrEU40.js";import{K as Nn}from"./KeyCode-c8YLmrmC.js";import{c as st,a as Hn}from"./zoom-BTwsIXn4.js";import{A as Wn,M as Kn}from"./index-CpcJSnGu.js";import{S as Xn}from"./index-BjhFFLnY.js";import{P as Vn}from"./PlusOutlined-CMd58dlX.js";import{S as Wt,a as qn}from"./Dropdown-EJ9XzwSc.js";import{B as Gn}from"./index-Cvavw3q5.js";import{S as Jn}from"./index-DuQZmgYZ.js";import{R as Qn}from"./LeftOutlined-CAv2mg6T.js";import{_ as Yn}from"./index-DfYN6Ir9.js";import{_ as Zn,a as eo}from"./index-DVAHMIEx.js";import"./responsiveObserve-BPXXLIQF.js";import"./styleChecker-BO8K1F6-.js";import"./index-BzwcKMhL.js";import"./FolderOpenOutlined-DkHI-22a.js";import"./index-CIqRW9zM.js";import"./Checkbox-r-colYvs.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:j(),openAnimation:Ie.object,expandIconPosition:Y(),collapsible:Y(),ghost:H(),onChange:j(),"onUpdate:activeKey":j()}),Kt=()=>({openAnimation:Ie.object,prefixCls:String,header:Ie.any,headerClass:String,showArrow:H(),isActive:H(),destroyInactivePanel:H(),disabled:H(),accordion:H(),forceRender:H(),expandIcon:j(),extra:Ie.any,panelKey:le(),collapsible:Y(),role:String,onItemClick:j()}),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({},Ke(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, diff --git a/src/agentkit/server/static/assets/LeftOutlined-Cjp7xl2E.js b/src/agentkit/server/static/assets/LeftOutlined-CAv2mg6T.js similarity index 96% rename from src/agentkit/server/static/assets/LeftOutlined-Cjp7xl2E.js rename to src/agentkit/server/static/assets/LeftOutlined-CAv2mg6T.js index bf6493c..8b581e5 100644 --- a/src/agentkit/server/static/assets/LeftOutlined-Cjp7xl2E.js +++ b/src/agentkit/server/static/assets/LeftOutlined-CAv2mg6T.js @@ -1 +1 @@ -import{c,I as u}from"./index-Cdm90D30.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=q(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 X("#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)]}),Te=ie("small","default"),Ue=()=>({id:String,prefixCls:String,size:f.oneOf(Te),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:Ue(),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});Z(()=>{});const h=y(e.checked!==void 0?e.checked:l.defaultChecked),b=E(()=>h.value===e.checkedValue);Y(()=>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",T(T(T({},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`},[H(d,e,"checkedChildren")]),i("span",{class:`${m.value}-inner-unchecked`},[H(d,e,"unCheckedChildren")])])])]}))}}}),Ae=A(Le),He="/api/v1";class Oe extends se{constructor(n=He){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,Be=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=Be(),l=y("llm");F(()=>{n.fetchSettings()});async function d(){try{await n.saveSettings(),B.success("设置已保存")}catch{B.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(),U("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(),U("div",Re,[i(C,{message:"设置已保存",type:"success","show-icon":""})])):O("",!0),r(n).error?(L(),U("div",Fe,[i(C,{message:r(n).error,type:"error","show-icon":""},null,8,["message"])])):O("",!0)])}}}),un=Ie(Ne,[["__scopeId","data-v-69defdaa"]]);export{un as default}; +import{aH as A,x as G,y as q,aW as X,z,A as j,aZ as J,d as R,aX as Q,a9 as Z,r as y,i as Y,D as ee,E as F,G as ne,c as i,J as T,a3 as te,H,f as E,P as f,aA as ie,a4 as ae,a as U,w as a,e as r,m as O,o as L,$ as v,b as le,aq as B}from"./index-MxXYiP1e.js";import{B as se}from"./base--VGJiuPH.js";import{T as oe,_ as re}from"./index-CUHLv4kD.js";import{_ as de}from"./index-coNRyS0Q.js";import{C as ue,A as ce,F as ge,_ as pe}from"./index-6F6eWDOC.js";import{S as me,a as he}from"./Dropdown-EJ9XzwSc.js";import{I as fe,a as ve}from"./index-C-JDvA85.js";import{W as _e,B as Se}from"./index-p0fEGd1V.js";import{K as D}from"./KeyCode-c8YLmrmC.js";import{u as we,o as ye}from"./FormItemContext-CIZixMRP.js";import{_ as be}from"./index-DfYN6Ir9.js";import{_ as Ie}from"./_plugin-vue_export-helper-CbNEYfqg.js";import"./zoom-BTwsIXn4.js";import"./index-DzzgX9TA.js";import"./devWarning-Ct6dVMcH.js";import"./index-BzwcKMhL.js";import"./PlusOutlined-CMd58dlX.js";import"./responsiveObserve-BPXXLIQF.js";import"./styleChecker-BO8K1F6-.js";import"./pickAttrs-CdccUdli.js";const $e=A(ue),Ce=A(ce),Me=e=>{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=q(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 X("#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)]}),Te=ie("small","default"),Ue=()=>({id:String,prefixCls:String,size:f.oneOf(Te),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:Ue(),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});Z(()=>{});const h=y(e.checked!==void 0?e.checked:l.defaultChecked),b=E(()=>h.value===e.checkedValue);Y(()=>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",T(T(T({},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`},[H(d,e,"checkedChildren")]),i("span",{class:`${m.value}-inner-unchecked`},[H(d,e,"unCheckedChildren")])])])]}))}}}),Ae=A(Le),He="/api/v1";class Oe extends se{constructor(n=He){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,Be=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=Be(),l=y("llm");F(()=>{n.fetchSettings()});async function d(){try{await n.saveSettings(),B.success("设置已保存")}catch{B.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(),U("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(),U("div",Re,[i(C,{message:"设置已保存",type:"success","show-icon":""})])):O("",!0),r(n).error?(L(),U("div",Fe,[i(C,{message:r(n).error,type:"error","show-icon":""},null,8,["message"])])):O("",!0)])}}}),un=Ie(Ne,[["__scopeId","data-v-69defdaa"]]);export{un as default}; diff --git a/src/agentkit/server/static/assets/SkillsView-TRawAwRE.js b/src/agentkit/server/static/assets/SkillsView-Cw0mKely.js similarity index 96% rename from src/agentkit/server/static/assets/SkillsView-TRawAwRE.js rename to src/agentkit/server/static/assets/SkillsView-Cw0mKely.js index a06f61a..dfe9b60 100644 --- a/src/agentkit/server/static/assets/SkillsView-TRawAwRE.js +++ b/src/agentkit/server/static/assets/SkillsView-Cw0mKely.js @@ -1 +1 @@ -import{c as a,B as je,F as K,bb as at,bc as it,bd as st,z as B,r as N,x as ze,y as Ae,A as rt,aV as ct,d as Z,D as Re,a9 as dt,T as ut,J as z,f as V,P as C,M as ft,C as Fe,a6 as we,aK as J,aw as pt,aO as mt,E as Se,G as fe,i as oe,a2 as He,R as be,aG as _e,p as $e,v as xe,K as W,aH as vt,H as ge,aP as Oe,aJ as Pe,a1 as yt,I as Ve,a4 as gt,o as x,a as T,w as b,b as F,t as j,j as se,k as X,$ as L,m as G,e as R,aq as ce,Z as ht}from"./index-Cdm90D30.js";import{B as bt}from"./base-BzUb4EcV.js";import{C as St}from"./index-CQzZ-h-2.js";import{T as We}from"./index-DBNRwHot.js";import{i as Ie,B as Ue}from"./index-CivBWDtQ.js";import{A as kt}from"./AppstoreOutlined-D2IhpVp5.js";import{i as Xe,_ as ke}from"./_plugin-vue_export-helper-BpJgGuqH.js";import{K as Ct}from"./KeyCode-c8YLmrmC.js";import{o as qe}from"./FormItemContext-C7duC9vx.js";import{c as wt,P as _t}from"./zoom-DFzZ47uz.js";import{d as $t}from"./devWarning-Ct6dVMcH.js";import{N as xt,B as Ge}from"./index-DlUg5G7X.js";import{u as Ot,r as De}from"./responsiveObserve-Dze5mRNR.js";import{_ as Pt}from"./index-Bhzy1-DW.js";import{S as It,a as Dt}from"./Dropdown-BfmL-5TH.js";import{S as Bt}from"./index-DS4F546Z.js";import{S as Mt}from"./index-B9Cq1xD6.js";import{M as Nt}from"./index-Bm5ZpeOU.js";import{P as Tt}from"./PlusOutlined-BZYJdEGN.js";import{F as Et,_ as Lt}from"./index-Bw7-qyYZ.js";import{I as jt}from"./index-zQkkOnqV.js";import{_ as zt}from"./index-B8imcus9.js";import"./index-DWEEelzT.js";import"./index-DUKU9Yum.js";import"./index-DQ-PTKeR.js";import"./pickAttrs-cDcy8MZ0.js";import"./styleChecker-DuXayfgz.js";function ue(e){return e!=null}const he=e=>{const{itemPrefixCls:t,component:l,span:n,labelStyle:o,contentStyle:d,bordered:s,label:f,content:u,colon:m}=e,v=l;return s?a(v,{class:[{[`${t}-item-label`]:ue(f),[`${t}-item-content`]:ue(u)}],colSpan:n},{default:()=>[ue(f)&&a("span",{style:o},[f]),ue(u)&&a("span",{style:d},[u])]}):a(v,{class:[`${t}-item`],colSpan:n},{default:()=>[a("div",{class:`${t}-item-container`},[(f||f===0)&&a("span",{class:[`${t}-item-label`,{[`${t}-item-no-colon`]:!m}],style:o},[f]),(u||u===0)&&a("span",{class:`${t}-item-content`,style:d},[u])])]})},At=e=>{const t=(m,v,w)=>{let{colon:S,prefixCls:O,bordered:P}=v,{component:y,type:k,showLabel:i,showContent:c,labelStyle:p,contentStyle:I}=w;return m.map((h,_)=>{var M,E;const H=h.props||{},{prefixCls:q=O,span:Q=1,labelStyle:D=H["label-style"],contentStyle:ae=H["content-style"],label:re=(E=(M=h.children)===null||M===void 0?void 0:M.label)===null||E===void 0?void 0:E.call(M)}=H,ee=at(h),te=it(h),ne=st(h),{key:le}=h;return typeof y=="string"?a(he,{key:`${k}-${String(le)||_}`,class:te,style:ne,labelStyle:B(B({},p),D),contentStyle:B(B({},I),ae),span:Q,colon:S,component:y,itemPrefixCls:q,bordered:P,label:i?re:null,content:c?ee:null},null):[a(he,{key:`label-${String(le)||_}`,class:te,style:B(B(B({},p),ne),D),span:1,colon:S,component:y[0],itemPrefixCls:q,bordered:P,label:re},null),a(he,{key:`content-${String(le)||_}`,class:te,style:B(B(B({},I),ne),ae),span:Q*2-1,component:y[1],itemPrefixCls:q,bordered:P,content:ee},null)]})},{prefixCls:l,vertical:n,row:o,index:d,bordered:s}=e,{labelStyle:f,contentStyle:u}=je(Ke,{labelStyle:N({}),contentStyle:N({})});return n?a(K,null,[a("tr",{key:`label-${d}`,class:`${l}-row`},[t(o,e,{component:"th",type:"label",showLabel:!0,labelStyle:f.value,contentStyle:u.value})]),a("tr",{key:`content-${d}`,class:`${l}-row`},[t(o,e,{component:"td",type:"content",showContent:!0,labelStyle:f.value,contentStyle:u.value})])]):a("tr",{key:d,class:`${l}-row`},[t(o,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:o,descriptionsBg:d}=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:d,"&::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:o}},[`&${t}-small`]:{[`${t}-item-label, ${t}-item-content`]:{padding:l}}}}},Ft=e=>{const{componentCls:t,descriptionsExtraColor:l,descriptionItemPaddingBottom:n,descriptionsItemLabelColonMarginRight:o,descriptionsItemLabelColonMarginLeft:d,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:`${d}px ${o}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,o=`${e.paddingXS}px ${e.padding}px`,d=`${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:o,descriptionsDefaultPadding:d,descriptionsMiddlePadding:s,descriptionsItemLabelColonMarginRight:u,descriptionsItemLabelColonMarginLeft:m});return[Ft(v)]});C.any;const Vt=()=>({prefixCls:String,label:C.any,labelStyle:{type:Object,default:void 0},contentStyle:{type:Object,default:void 0},span:{type:Number,default:1}}),Ye=Z({compatConfig:{MODE:3},name:"ADescriptionsItem",props:Vt(),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 Wt(e,t){if(typeof e=="number")return e;if(typeof e=="object")for(let l=0;lt)&&(n=wt(e,{span:t})),n}function Ut(e,t){const l=ft(e),n=[];let o=[],d=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){o.push(Be(s,d,m)),n.push(o);return}v({prefixCls:String,bordered:{type:Boolean,default:void 0},size:{type:String,default:"default"},title:C.any,extra:C.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=Z({compatConfig:{MODE:3},name:"ADescriptions",inheritAttrs:!1,props:Xt(),slots:Object,Item:Ye,setup(e,t){let{slots:l,attrs:n}=t;const{prefixCls:o,direction:d}=Re("descriptions",e);let s;const f=N({}),[u,m]=Ht(o),v=Ot();dt(()=>{s=v.value.subscribe(S=>{typeof e.column=="object"&&(f.value=S)})}),ut(()=>{v.value.unsubscribe(s)}),Fe(Ke,{labelStyle:we(e,"labelStyle"),contentStyle:we(e,"contentStyle")});const w=V(()=>Wt(e.column,f.value));return()=>{var S,O,P;const{size:y,bordered:k=!1,layout:i="horizontal",colon:c=!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,h=(P=l.default)===null||P===void 0?void 0:P.call(l),_=Ut(h,w.value);return u(a("div",z(z({},n),{},{class:[o.value,{[`${o.value}-${y}`]:y!=="default",[`${o.value}-bordered`]:!!k,[`${o.value}-rtl`]:d.value==="rtl"},n.class,m.value]}),[(p||I)&&a("div",{class:`${o.value}-header`},[p&&a("div",{class:`${o.value}-title`},[p]),I&&a("div",{class:`${o.value}-extra`},[I])]),a("div",{class:`${o.value}-view`},[a("table",null,[a("tbody",null,[_.map((M,E)=>a(At,{key:E,index:E,colon:c,prefixCls:o.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 Ze=()=>({prefixCls:String,width:C.oneOfType([C.string,C.number]),height:C.oneOfType([C.string,C.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()}),qt=()=>B(B({},Ze()),{forceRender:{type:Boolean,default:void 0},getContainer:C.oneOfType([C.string,C.func,C.object,C.looseBool])}),Gt=()=>B(B({},Ze()),{getContainer:Function,getOpenCount:Function,scrollLocker:C.any,inline:Boolean});function Yt(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 Zt=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 o=0,n=Object.getOwnPropertySymbols(e);o{fe(()=>{var i;const{open:c,getContainer:p,showMask:I,autofocus:h}=e,_=p==null?void 0:p();P(e),c&&(_&&(_.parentNode,document.body),fe(()=>{h&&v()}),I&&((i=e.scrollLocker)===null||i===void 0||i.lock()))})}),oe(()=>e.level,()=>{P(e)},{flush:"post"}),oe(()=>e.open,()=>{const{open:i,getContainer:c,scrollLocker:p,showMask:I,autofocus:h}=e,_=c==null?void 0:c();_&&(_.parentNode,document.body),i?(h&&v(),I&&(p==null||p.lock())):p==null||p.unLock()},{flush:"post"}),He(()=>{var i;const{open:c}=e;c&&(document.body.style.touchAction=""),(i=e.scrollLocker)===null||i===void 0||i.unLock()}),oe(()=>e.placement,i=>{i&&(u.value=null)});const v=()=>{var i,c;(c=(i=d.value)===null||i===void 0?void 0:i.focus)===null||c===void 0||c.call(i)},w=i=>{l("close",i)},S=i=>{i.keyCode===Ct.ESC&&(i.stopPropagation(),w(i))},O=()=>{const{open:i,afterVisibleChange:c}=e;c&&c(!!i)},P=i=>{let{level:c,getContainer:p}=i;if(Kt)return;const I=p==null?void 0:p(),h=I?I.parentNode:null;m=[],c==="all"?(h?Array.prototype.slice.call(h.children):[]).forEach(M=>{M.nodeName!=="SCRIPT"&&M.nodeName!=="STYLE"&&M.nodeName!=="LINK"&&M!==I&&m.push(M)}):c&&Yt(c).forEach(_=>{document.querySelectorAll(_).forEach(M=>{m.push(M)})})},y=i=>{l("handleClick",i)},k=W(!1);return oe(d,()=>{fe(()=>{k.value=!0})}),()=>{var i,c;const{width:p,height:I,open:h,prefixCls:_,placement:M,level:E,levelMove:H,ease:q,duration:Q,getContainer:D,onChange:ae,afterVisibleChange:re,showMask:ee,maskClosable:te,maskStyle:ne,keyboard:le,getOpenCount:r,scrollLocker:g,contentWrapperStyle:$,style:A,class:Y,rootClassName:me,rootStyle:ve,maskMotion:et,motion:ye,inline:tt}=e,nt=Zt(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=h&&k.value,lt=be(_,{[`${_}-${M}`]:!0,[`${_}-open`]:de,[`${_}-inline`]:tt,"no-mask":!ee,[me]:!0}),ot=typeof ye=="function"?ye(M):ye;return a("div",z(z({},qe(nt,["autofocus"])),{},{tabindex:-1,class:lt,style:ve,ref:d,onKeydown:de&&le?S:void 0}),[a(_e,et,{default:()=>[ee&&$e(a("div",{class:`${_}-mask`,onClick:te?w:void 0,style:ne,ref:s},null),[[xe,de]])]}),a(_e,z(z({},ot),{},{onAfterEnter:O,onAfterLeave:O}),{default:()=>[$e(a("div",{class:`${_}-content-wrapper`,style:[$],ref:o},[a("div",{class:[`${_}-content`,Y],style:A,ref:u},[(i=n.default)===null||i===void 0?void 0:i.call(n)]),n.handler?a("div",{onClick:y,ref:f},[(c=n.handler)===null||c===void 0?void 0:c.call(n)]):null]),[[xe,de]])]})])}}});var Ne=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 o=0,n=Object.getOwnPropertySymbols(e);o{},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 o=N(null),d=f=>{l("handleClick",f)},s=f=>{l("close",f)};return()=>{const{getContainer:f,wrapperClassName:u,rootClassName:m,rootStyle:v,forceRender:w}=e,S=Ne(e,["getContainer","wrapperClassName","rootClassName","rootStyle","forceRender"]);let O=null;if(!f)return a(Me,z(z({},S),{},{rootClassName:m,rootStyle:v,open:e.open,onClose:s,onHandleClick:d,inline:!0}),n);const P=!!n.handler||w;return(P||e.open||o.value)&&(O=a(_t,{autoLock:!0,visible:e.open,forceRender:P,getContainer:f,wrapperClassName:u},{default:y=>{var{visible:k,afterClose:i}=y,c=Ne(y,["visible","afterClose"]);return a(Me,z(z(z({ref:o},S),c),{},{rootClassName:m,rootStyle:v,open:k!==void 0?k:e.open,afterVisibleChange:i!==void 0?i:e.afterVisibleChange,onClose:s,onHandleClick:d}),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:o,motionDurationSlow:d,motionDurationMid:s,padding:f,paddingLG:u,fontSizeLG:m,lineHeightLG:v,lineWidth:w,lineType:S,colorSplit:O,marginSM:P,colorIcon:y,colorIconHover:k,colorText:i,fontWeightStrong:c,drawerFooterPaddingVertical:p,drawerFooterPaddingHorizontal:I}=e,h=`${t}-content-wrapper`;return{[t]:{position:"fixed",inset:0,zIndex:l,pointerEvents:"none","&-pure":{position:"relative",background:o,[`&${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"},[h]:{position:"absolute",zIndex:l,transition:`all ${d}`,"&-hidden":{display:"none"}},[`&-left > ${h}`]:{top:0,bottom:0,left:{_skip_check_:!0,value:0},boxShadow:e.boxShadowDrawerLeft},[`&-right > ${h}`]:{top:0,right:{_skip_check_:!0,value:0},bottom:0,boxShadow:e.boxShadowDrawerRight},[`&-top > ${h}`]:{top:0,insetInline:0,boxShadow:e.boxShadowDrawerUp},[`&-bottom > ${h}`]:{bottom:0,insetInline:0,boxShadow:e.boxShadowDrawerDown},[`${t}-content`]:{width:"100%",height:"100%",overflow:"auto",background:o,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:`${w}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:c,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:`${w}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 o=0,n=Object.getOwnPropertySymbols(e);o({autofocus:{type:Boolean,default:void 0},closable:{type:Boolean,default:void 0},closeIcon:C.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:C.any,visible:{type:Boolean,default:void 0},open:{type:Boolean,default:void 0},width:C.oneOfType([C.string,C.number]),height:C.oneOfType([C.string,C.number]),zIndex:Number,prefixCls:String,push:C.oneOfType([C.looseBool,{type:Object}]),placement:C.oneOf(on),keyboard:{type:Boolean,default:void 0},extra:C.any,footer:C.any,footerStyle:J(),level:C.any,levelMove:{type:[Number,Array,Function]},handle:C.any,afterVisibleChange:Function,onAfterVisibleChange:Function,onAfterOpenChange:Function,"onUpdate:visible":Function,"onUpdate:open":Function,onClose:Function}),sn=Z({compatConfig:{MODE:3},name:"ADrawer",inheritAttrs:!1,props:Xe(an(),{closable:!0,placement:"right",maskClosable:!0,mask:!0,level:null,keyboard:!0,push:Te}),slots:Object,setup(e,t){let{emit:l,slots:n,attrs:o}=t;const d=W(!1),s=W(!1),f=W(null),u=W(!1),m=W(!1),v=V(()=>{var r;return(r=e.open)!==null&&r!==void 0?r:e.visible});oe(v,()=>{v.value?u.value=!0:m.value=!1},{immediate:!0}),oe([v,u],()=>{v.value&&u.value&&(m.value=!0)},{immediate:!0});const w=je("parentDrawerOpts",null),{prefixCls:S,getPopupContainer:O,direction:P}=Re("drawer",e),[y,k]=nn(S),i=V(()=>e.getContainer===void 0&&(O!=null&&O.value)?()=>O.value(document.body):e.getContainer);$t(!e.afterVisibleChange,"Drawer","`afterVisibleChange` prop is deprecated, please use `@afterVisibleChange` event instead"),Fe("parentDrawerOpts",{setPush:()=>{d.value=!0},setPull:()=>{d.value=!1,fe(()=>{I()})}}),Se(()=>{v.value&&w&&w.setPush()}),He(()=>{w&&w.setPull()}),oe(m,()=>{w&&(m.value?w.setPush():w.setPull())},{flush:"post"});const I=()=>{var r,g;(g=(r=f.value)===null||r===void 0?void 0:r.domFocus)===null||g===void 0||g.call(r)},h=r=>{l("update:visible",!1),l("update:open",!1),l("close",r)},_=r=>{var g;r||(s.value===!1&&(s.value=!0),e.destroyOnClose&&(u.value=!1)),(g=e.afterVisibleChange)===null||g===void 0||g.call(e,r),l("afterVisibleChange",r),l("afterOpenChange",r)},M=V(()=>{const{push:r,placement:g}=e;let $;return typeof r=="boolean"?$=r?Te.distance:0:$=r.distance,$=parseFloat(String($||0)),g==="left"||g==="right"?`translateX(${g==="left"?$:-$}px)`:g==="top"||g==="bottom"?`translateY(${g==="top"?$:-$}px)`:null}),E=V(()=>{var r;return(r=e.width)!==null&&r!==void 0?r:e.size==="large"?736:378}),H=V(()=>{var r;return(r=e.height)!==null&&r!==void 0?r:e.size==="large"?736:378}),q=V(()=>{const{mask:r,placement:g}=e;if(!m.value&&!r)return{};const $={};return g==="left"||g==="right"?$.width=Ie(E.value)?`${E.value}px`:E.value:$.height=Ie(H.value)?`${H.value}px`:H.value,$}),Q=V(()=>{const{zIndex:r,contentWrapperStyle:g}=e,$=q.value;return[{zIndex:r,transform:d.value?M.value:void 0},B({},g),$]}),D=r=>{const{closable:g,headerStyle:$}=e,A=ge(n,e,"extra"),Y=ge(n,e,"title");return!Y&&!g?null:a("div",{class:be(`${r}-header`,{[`${r}-header-close-only`]:g&&!Y&&!A}),style:$},[a("div",{class:`${r}-header-title`},[ae(r),Y&&a("div",{class:`${r}-title`},[Y])]),A&&a("div",{class:`${r}-extra`},[A])])},ae=r=>{var g;const{closable:$}=e,A=n.closeIcon?(g=n.closeIcon)===null||g===void 0?void 0:g.call(n):e.closeIcon;return $&&a("button",{key:"closer",onClick:h,"aria-label":"Close",class:`${r}-close`},[A===void 0?a(yt,null,null):A])},re=r=>{var g;if(s.value&&!e.forceRender&&!u.value)return null;const{bodyStyle:$,drawerStyle:A}=e;return a("div",{class:`${r}-wrapper-body`,style:A},[D(r),a("div",{key:"body",class:`${r}-body`,style:$},[(g=n.default)===null||g===void 0?void 0:g.call(n)]),ee(r)])},ee=r=>{const g=ge(n,e,"footer");if(!g)return null;const $=`${r}-footer`;return a("div",{class:$,style:e.footerStyle},[g])},te=V(()=>be({"no-mask":!e.mask,[`${S.value}-rtl`]:P.value==="rtl"},e.rootClassName,k.value)),ne=V(()=>Oe(Pe(S.value,"mask-motion"))),le=r=>Oe(Pe(S.value,`panel-motion-${r}`));return()=>{const{width:r,height:g,placement:$,mask:A,forceRender:Y}=e,me=ln(e,["width","height","placement","mask","forceRender"]),ve=B(B(B({},o),qe(me,["size","closeIcon","closable","destroyOnClose","drawerStyle","headerStyle","bodyStyle","title","push","onAfterVisibleChange","onClose","onUpdate:visible","onUpdate:open","visible"])),{forceRender:Y,onClose:h,afterVisibleChange:_,handler:!1,prefixCls:S.value,open:m.value,showMask:A,placement:$,ref:f});return y(a(xt,null,{default:()=>[a(Qt,z(z({},ve),{},{maskMotion:ne.value,motion:le,width:E.value,height:H.value,getContainer:i.value,rootClassName:te.value,rootStyle:e.rootStyle,contentWrapperStyle:Q.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 Ee(e){for(var t=1;t{const e=N([]),t=N([]),l=N(null),n=N(!1),o=N(null),d=N(0),s=N(1),f=N(20),u=N(null),m=V(()=>e.value.map(i=>i.name));async function v(i,c){n.value=!0,o.value=null;try{const p=i??u.value??void 0,I=c??s.value,h=await vn(p,I,f.value);e.value=h.skills,d.value=h.total,s.value=h.page}catch(p){o.value=p instanceof Error?p.message:"获取技能列表失败",console.error("Failed to fetch skills:",p)}finally{n.value=!1}}async function w(){try{const i=await hn();t.value=i.capabilities}catch(i){console.error("Failed to fetch capabilities:",i)}}async function S(i){n.value=!0,o.value=null;try{const c=await yn(i);l.value=c}catch(c){o.value=c instanceof Error?c.message:"获取技能详情失败",console.error("Failed to fetch skill detail:",c)}finally{n.value=!1}}async function O(i){try{return(await gn(i)).status}catch(c){return console.error("Failed to check skill health:",c),"error"}}async function P(i){var c;try{await bn(i),await v(),((c=l.value)==null?void 0:c.name)===i&&await S(i)}catch(p){throw o.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:o,totalSkills:d,currentPage:s,pageSize:f,selectedCapability:u,skillNames:m,fetchSkills:v,fetchCapabilities:w,fetchSkillDetail:S,checkHealth:O,reloadSkill:P,setCapabilityFilter:y,clearSelectedSkill:k}}),Sn={class:"skill-card__title"},kn={class:"skill-card__desc"},Cn={class:"skill-card__tags"},wn={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=Z({__name:"SkillCard",props:{skill:{}},emits:["click"],setup(e){return(t,l)=>{const n=Ue,o=We,d=St;return x(),T("div",{class:"skill-card",onClick:l[0]||(l[0]=s=>t.$emit("click"))},[a(d,{hoverable:"",size:"small"},{title:b(()=>[F("div",Sn,[a(R(kt),{class:"skill-card__icon"}),F("span",null,j(e.skill.name),1)])]),extra:b(()=>[a(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,j(e.skill.description||"暂无描述"),1),F("div",Cn,[(x(!0),T(K,null,se(e.skill.capabilities,s=>(x(),X(o,{key:s,size:"small",color:"blue"},{default:b(()=>[L(j(s),1)]),_:2},1024))),128))]),e.skill.dependencies.length>0?(x(),T("div",wn,[l[1]||(l[1]=F("span",{class:"skill-card__deps-label"},"依赖:",-1)),(x(!0),T(K,null,se(e.skill.dependencies.slice(0,3),s=>(x(),X(o,{key:s,size:"small"},{default:b(()=>[L(j(s),1)]),_:2},1024))),128)),e.skill.dependencies.length>3?(x(),T("span",_n," +"+j(e.skill.dependencies.length-3),1)):G("",!0)])):G("",!0),F("div",$n,[e.skill.version?(x(),T("span",xn,"v"+j(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"},Nn={key:0,class:"skill-detail__config"},Tn={key:1,class:"skill-detail__empty"},En={class:"skill-detail__actions"},Ln=Z({__name:"SkillDetail",props:{visible:{type:Boolean},skill:{}},emits:["close"],setup(e){const t=Qe(),l=N(!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 o(){if(!t.selectedSkill)return;await t.checkHealth(t.selectedSkill.name)==="healthy"?ce.success("技能状态正常"):ce.error("技能状态异常")}return(d,s)=>{var P;const f=Ye,u=Ue,m=ie,v=Pt,w=We,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=>d.$emit("close"))},{default:b(()=>[e.skill?(x(),T(K,{key:0},[a(m,{column:1,bordered:"",size:"small"},{default:b(()=>[a(f,{label:"名称"},{default:b(()=>[L(j(e.skill.name),1)]),_:1}),a(f,{label:"版本"},{default:b(()=>[L(j(e.skill.version||"-"),1)]),_:1}),a(f,{label:"状态"},{default:b(()=>[a(u,{status:e.skill.health_status==="healthy"?"success":"warning",text:e.skill.health_status==="healthy"?"正常":e.skill.health_status},null,8,["status","text"])]),_:1}),a(f,{label:"描述"},{default:b(()=>[L(j(e.skill.description||"暂无描述"),1)]),_:1})]),_:1}),a(v,{orientation:"left"},{default:b(()=>[...s[1]||(s[1]=[L("能力标签",-1)])]),_:1}),F("div",In,[(x(!0),T(K,null,se(e.skill.capabilities,y=>(x(),X(w,{key:y,color:"blue"},{default:b(()=>[L(j(y),1)]),_:2},1024))),128)),e.skill.capabilities.length===0?(x(),T("span",Dn,"暂无能力标签")):G("",!0)]),a(v,{orientation:"left"},{default:b(()=>[...s[2]||(s[2]=[L("依赖",-1)])]),_:1}),F("div",Bn,[(x(!0),T(K,null,se(e.skill.dependencies,y=>(x(),X(w,{key:y},{default:b(()=>[L(j(y),1)]),_:2},1024))),128)),e.skill.dependencies.length===0?(x(),T("span",Mn,"无依赖")):G("",!0)]),a(v,{orientation:"left"},{default:b(()=>[...s[3]||(s[3]=[L("配置",-1)])]),_:1}),Object.keys(e.skill.config).length>0?(x(),T("div",Nn,[F("pre",null,j(JSON.stringify(e.skill.config,null,2)),1)])):(x(),T("div",Tn,"暂无配置信息")),F("div",En,[a(S,{type:"primary",loading:l.value,onClick:n},{icon:b(()=>[a(R(pe))]),default:b(()=>[s[4]||(s[4]=L(" 重新加载 ",-1))]),_:1},8,["loading"]),a(S,{onClick:o},{icon:b(()=>[a(R(Ce))]),default:b(()=>[s[5]||(s[5]=L(" 健康检查 ",-1))]),_:1})])],64)):G("",!0)]),_:1},8,["open","title"])}}}),jn=ke(Ln,[["__scopeId","data-v-3ddcc970"]]),zn={class:"skills-view"},An={class:"skills-view__header"},Rn={class:"skills-view__grid"},Fn=Z({__name:"SkillsView",setup(e){const t=Qe(),l=N(void 0),n=N(!1),o=N(!1),d=N(""),s=N(""),f=N(!1),u=N(""),m=N("");Se(async()=>{await Promise.all([t.fetchSkills(),t.fetchCapabilities()])});async function v(y){t.setCapabilityFilter(y??null),await t.fetchSkills()}async function w(){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(!d.value.trim()){u.value="请输入技能名称";return}f.value=!0,u.value="",m.value="";try{const y=await U.installSkill(d.value.trim(),s.value.trim()||void 0);m.value=y.name,ce.success(`技能 ${y.name} 安装成功!`),await w()}catch(y){u.value=(y==null?void 0:y.message)||"安装失败"}finally{f.value=!1}}return(y,k)=>{const i=Dt,c=It,p=Ge,I=Bt,h=ht,_=Mt,M=jt,E=Lt,H=Et,q=zt,Q=Nt;return x(),T("div",zn,[F("div",An,[a(c,{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),T(K,null,se(R(t).capabilities,D=>(x(),X(i,{key:D.name,value:D.name},{default:b(()=>[L(j(D.display_name)+" ("+j(D.skill_count)+") ",1)]),_:2},1032,["value"]))),128))]),_:1},8,["value"]),a(I,null,{default:b(()=>[a(p,{type:"primary",onClick:k[1]||(k[1]=D=>o.value=!0)},{icon:b(()=>[a(R(Tt))]),default:b(()=>[k[5]||(k[5]=L(" 安装技能 ",-1))]),_:1}),a(p,{onClick:w,loading:R(t).isLoading},{icon:b(()=>[a(R(pe))]),default:b(()=>[k[6]||(k[6]=L(" 刷新 ",-1))]),_:1},8,["loading"])]),_:1})]),a(_,{spinning:R(t).isLoading},{default:b(()=>[F("div",Rn,[(x(!0),T(K,null,se(R(t).skills,D=>(x(),X(Pn,{key:D.name,skill:D,onClick:ae=>S(D.name)},null,8,["skill","onClick"]))),128))]),!R(t).isLoading&&R(t).skills.length===0?(x(),X(h,{key:0,description:"暂无已注册技能"})):G("",!0)]),_:1},8,["spinning"]),a(jn,{visible:n.value,skill:R(t).selectedSkill,onClose:O},null,8,["visible","skill"]),a(Q,{open:o.value,"onUpdate:open":k[4]||(k[4]=D=>o.value=D),title:"安装技能","confirm-loading":f.value,onOk:P,"ok-text":"安装","cancel-text":"取消"},{default:b(()=>[a(H,{layout:"vertical"},{default:b(()=>[a(E,{label:"技能名称",required:""},{default:b(()=>[a(M,{value:d.value,"onUpdate:value":k[2]||(k[2]=D=>d.value=D),placeholder:"例如: find-skills"},null,8,["value"])]),_:1}),a(E,{label:"来源 URL(可选)"},{default:b(()=>[a(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(q,{key:0,message:u.value,type:"error","show-icon":"",style:{"margin-top":"8px"}},null,8,["message"])):G("",!0),m.value?(x(),X(q,{key:1,message:`技能 ${m.value} 安装成功!`,type:"success","show-icon":"",style:{"margin-top":"8px"}},null,8,["message"])):G("",!0)]),_:1},8,["open","confirm-loading"])])}}}),vl=ke(Fn,[["__scopeId","data-v-50d34770"]]);export{vl as default}; +import{c as a,B as je,F as K,bb as at,bc as it,bd as st,z as B,r as N,x as ze,y as Ae,A as rt,aV as ct,d as Z,D as Re,a9 as dt,T as ut,J as z,f as V,P as C,M as ft,C as Fe,a6 as we,aK as J,aw as pt,aO as mt,E as Se,G as fe,i as oe,a2 as He,R as be,aG as _e,p as $e,v as xe,K as W,aH as vt,H as ge,aP as Oe,aJ as Pe,a1 as yt,I as Ve,a4 as gt,o as x,a as T,w as b,b as F,t as j,j as se,k as X,$ as L,m as G,e as R,aq as ce,Z as ht}from"./index-MxXYiP1e.js";import{B as bt}from"./base--VGJiuPH.js";import{C as St}from"./index-0ftJ_VhH.js";import{T as We}from"./index-BsO-BQWw.js";import{i as Ie,B as Ue}from"./index-Cvavw3q5.js";import{A as kt}from"./AppstoreOutlined-CK96XqwQ.js";import{i as Xe,_ as ke}from"./_plugin-vue_export-helper-CbNEYfqg.js";import{K as Ct}from"./KeyCode-c8YLmrmC.js";import{o as qe}from"./FormItemContext-CIZixMRP.js";import{c as wt,P as _t}from"./zoom-BTwsIXn4.js";import{d as $t}from"./devWarning-Ct6dVMcH.js";import{N as xt,B as Ge}from"./index-p0fEGd1V.js";import{u as Ot,r as De}from"./responsiveObserve-BPXXLIQF.js";import{_ as Pt}from"./index-Cm4StDv9.js";import{S as It,a as Dt}from"./Dropdown-EJ9XzwSc.js";import{S as Bt}from"./index-DuQZmgYZ.js";import{S as Mt}from"./index-BjhFFLnY.js";import{M as Nt}from"./index-CpcJSnGu.js";import{P as Tt}from"./PlusOutlined-CMd58dlX.js";import{F as Et,_ as Lt}from"./index-6F6eWDOC.js";import{I as jt}from"./index-C-JDvA85.js";import{_ as zt}from"./index-coNRyS0Q.js";import"./index-CUHLv4kD.js";import"./index-DzzgX9TA.js";import"./index-BzwcKMhL.js";import"./pickAttrs-CdccUdli.js";import"./styleChecker-BO8K1F6-.js";function ue(e){return e!=null}const he=e=>{const{itemPrefixCls:t,component:l,span:n,labelStyle:o,contentStyle:d,bordered:s,label:f,content:u,colon:m}=e,v=l;return s?a(v,{class:[{[`${t}-item-label`]:ue(f),[`${t}-item-content`]:ue(u)}],colSpan:n},{default:()=>[ue(f)&&a("span",{style:o},[f]),ue(u)&&a("span",{style:d},[u])]}):a(v,{class:[`${t}-item`],colSpan:n},{default:()=>[a("div",{class:`${t}-item-container`},[(f||f===0)&&a("span",{class:[`${t}-item-label`,{[`${t}-item-no-colon`]:!m}],style:o},[f]),(u||u===0)&&a("span",{class:`${t}-item-content`,style:d},[u])])]})},At=e=>{const t=(m,v,w)=>{let{colon:S,prefixCls:O,bordered:P}=v,{component:y,type:k,showLabel:i,showContent:c,labelStyle:p,contentStyle:I}=w;return m.map((h,_)=>{var M,E;const H=h.props||{},{prefixCls:q=O,span:Q=1,labelStyle:D=H["label-style"],contentStyle:ae=H["content-style"],label:re=(E=(M=h.children)===null||M===void 0?void 0:M.label)===null||E===void 0?void 0:E.call(M)}=H,ee=at(h),te=it(h),ne=st(h),{key:le}=h;return typeof y=="string"?a(he,{key:`${k}-${String(le)||_}`,class:te,style:ne,labelStyle:B(B({},p),D),contentStyle:B(B({},I),ae),span:Q,colon:S,component:y,itemPrefixCls:q,bordered:P,label:i?re:null,content:c?ee:null},null):[a(he,{key:`label-${String(le)||_}`,class:te,style:B(B(B({},p),ne),D),span:1,colon:S,component:y[0],itemPrefixCls:q,bordered:P,label:re},null),a(he,{key:`content-${String(le)||_}`,class:te,style:B(B(B({},I),ne),ae),span:Q*2-1,component:y[1],itemPrefixCls:q,bordered:P,content:ee},null)]})},{prefixCls:l,vertical:n,row:o,index:d,bordered:s}=e,{labelStyle:f,contentStyle:u}=je(Ke,{labelStyle:N({}),contentStyle:N({})});return n?a(K,null,[a("tr",{key:`label-${d}`,class:`${l}-row`},[t(o,e,{component:"th",type:"label",showLabel:!0,labelStyle:f.value,contentStyle:u.value})]),a("tr",{key:`content-${d}`,class:`${l}-row`},[t(o,e,{component:"td",type:"content",showContent:!0,labelStyle:f.value,contentStyle:u.value})])]):a("tr",{key:d,class:`${l}-row`},[t(o,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:o,descriptionsBg:d}=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:d,"&::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:o}},[`&${t}-small`]:{[`${t}-item-label, ${t}-item-content`]:{padding:l}}}}},Ft=e=>{const{componentCls:t,descriptionsExtraColor:l,descriptionItemPaddingBottom:n,descriptionsItemLabelColonMarginRight:o,descriptionsItemLabelColonMarginLeft:d,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:`${d}px ${o}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,o=`${e.paddingXS}px ${e.padding}px`,d=`${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:o,descriptionsDefaultPadding:d,descriptionsMiddlePadding:s,descriptionsItemLabelColonMarginRight:u,descriptionsItemLabelColonMarginLeft:m});return[Ft(v)]});C.any;const Vt=()=>({prefixCls:String,label:C.any,labelStyle:{type:Object,default:void 0},contentStyle:{type:Object,default:void 0},span:{type:Number,default:1}}),Ye=Z({compatConfig:{MODE:3},name:"ADescriptionsItem",props:Vt(),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 Wt(e,t){if(typeof e=="number")return e;if(typeof e=="object")for(let l=0;lt)&&(n=wt(e,{span:t})),n}function Ut(e,t){const l=ft(e),n=[];let o=[],d=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){o.push(Be(s,d,m)),n.push(o);return}v({prefixCls:String,bordered:{type:Boolean,default:void 0},size:{type:String,default:"default"},title:C.any,extra:C.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=Z({compatConfig:{MODE:3},name:"ADescriptions",inheritAttrs:!1,props:Xt(),slots:Object,Item:Ye,setup(e,t){let{slots:l,attrs:n}=t;const{prefixCls:o,direction:d}=Re("descriptions",e);let s;const f=N({}),[u,m]=Ht(o),v=Ot();dt(()=>{s=v.value.subscribe(S=>{typeof e.column=="object"&&(f.value=S)})}),ut(()=>{v.value.unsubscribe(s)}),Fe(Ke,{labelStyle:we(e,"labelStyle"),contentStyle:we(e,"contentStyle")});const w=V(()=>Wt(e.column,f.value));return()=>{var S,O,P;const{size:y,bordered:k=!1,layout:i="horizontal",colon:c=!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,h=(P=l.default)===null||P===void 0?void 0:P.call(l),_=Ut(h,w.value);return u(a("div",z(z({},n),{},{class:[o.value,{[`${o.value}-${y}`]:y!=="default",[`${o.value}-bordered`]:!!k,[`${o.value}-rtl`]:d.value==="rtl"},n.class,m.value]}),[(p||I)&&a("div",{class:`${o.value}-header`},[p&&a("div",{class:`${o.value}-title`},[p]),I&&a("div",{class:`${o.value}-extra`},[I])]),a("div",{class:`${o.value}-view`},[a("table",null,[a("tbody",null,[_.map((M,E)=>a(At,{key:E,index:E,colon:c,prefixCls:o.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 Ze=()=>({prefixCls:String,width:C.oneOfType([C.string,C.number]),height:C.oneOfType([C.string,C.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()}),qt=()=>B(B({},Ze()),{forceRender:{type:Boolean,default:void 0},getContainer:C.oneOfType([C.string,C.func,C.object,C.looseBool])}),Gt=()=>B(B({},Ze()),{getContainer:Function,getOpenCount:Function,scrollLocker:C.any,inline:Boolean});function Yt(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 Zt=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 o=0,n=Object.getOwnPropertySymbols(e);o{fe(()=>{var i;const{open:c,getContainer:p,showMask:I,autofocus:h}=e,_=p==null?void 0:p();P(e),c&&(_&&(_.parentNode,document.body),fe(()=>{h&&v()}),I&&((i=e.scrollLocker)===null||i===void 0||i.lock()))})}),oe(()=>e.level,()=>{P(e)},{flush:"post"}),oe(()=>e.open,()=>{const{open:i,getContainer:c,scrollLocker:p,showMask:I,autofocus:h}=e,_=c==null?void 0:c();_&&(_.parentNode,document.body),i?(h&&v(),I&&(p==null||p.lock())):p==null||p.unLock()},{flush:"post"}),He(()=>{var i;const{open:c}=e;c&&(document.body.style.touchAction=""),(i=e.scrollLocker)===null||i===void 0||i.unLock()}),oe(()=>e.placement,i=>{i&&(u.value=null)});const v=()=>{var i,c;(c=(i=d.value)===null||i===void 0?void 0:i.focus)===null||c===void 0||c.call(i)},w=i=>{l("close",i)},S=i=>{i.keyCode===Ct.ESC&&(i.stopPropagation(),w(i))},O=()=>{const{open:i,afterVisibleChange:c}=e;c&&c(!!i)},P=i=>{let{level:c,getContainer:p}=i;if(Kt)return;const I=p==null?void 0:p(),h=I?I.parentNode:null;m=[],c==="all"?(h?Array.prototype.slice.call(h.children):[]).forEach(M=>{M.nodeName!=="SCRIPT"&&M.nodeName!=="STYLE"&&M.nodeName!=="LINK"&&M!==I&&m.push(M)}):c&&Yt(c).forEach(_=>{document.querySelectorAll(_).forEach(M=>{m.push(M)})})},y=i=>{l("handleClick",i)},k=W(!1);return oe(d,()=>{fe(()=>{k.value=!0})}),()=>{var i,c;const{width:p,height:I,open:h,prefixCls:_,placement:M,level:E,levelMove:H,ease:q,duration:Q,getContainer:D,onChange:ae,afterVisibleChange:re,showMask:ee,maskClosable:te,maskStyle:ne,keyboard:le,getOpenCount:r,scrollLocker:g,contentWrapperStyle:$,style:A,class:Y,rootClassName:me,rootStyle:ve,maskMotion:et,motion:ye,inline:tt}=e,nt=Zt(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=h&&k.value,lt=be(_,{[`${_}-${M}`]:!0,[`${_}-open`]:de,[`${_}-inline`]:tt,"no-mask":!ee,[me]:!0}),ot=typeof ye=="function"?ye(M):ye;return a("div",z(z({},qe(nt,["autofocus"])),{},{tabindex:-1,class:lt,style:ve,ref:d,onKeydown:de&&le?S:void 0}),[a(_e,et,{default:()=>[ee&&$e(a("div",{class:`${_}-mask`,onClick:te?w:void 0,style:ne,ref:s},null),[[xe,de]])]}),a(_e,z(z({},ot),{},{onAfterEnter:O,onAfterLeave:O}),{default:()=>[$e(a("div",{class:`${_}-content-wrapper`,style:[$],ref:o},[a("div",{class:[`${_}-content`,Y],style:A,ref:u},[(i=n.default)===null||i===void 0?void 0:i.call(n)]),n.handler?a("div",{onClick:y,ref:f},[(c=n.handler)===null||c===void 0?void 0:c.call(n)]):null]),[[xe,de]])]})])}}});var Ne=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 o=0,n=Object.getOwnPropertySymbols(e);o{},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 o=N(null),d=f=>{l("handleClick",f)},s=f=>{l("close",f)};return()=>{const{getContainer:f,wrapperClassName:u,rootClassName:m,rootStyle:v,forceRender:w}=e,S=Ne(e,["getContainer","wrapperClassName","rootClassName","rootStyle","forceRender"]);let O=null;if(!f)return a(Me,z(z({},S),{},{rootClassName:m,rootStyle:v,open:e.open,onClose:s,onHandleClick:d,inline:!0}),n);const P=!!n.handler||w;return(P||e.open||o.value)&&(O=a(_t,{autoLock:!0,visible:e.open,forceRender:P,getContainer:f,wrapperClassName:u},{default:y=>{var{visible:k,afterClose:i}=y,c=Ne(y,["visible","afterClose"]);return a(Me,z(z(z({ref:o},S),c),{},{rootClassName:m,rootStyle:v,open:k!==void 0?k:e.open,afterVisibleChange:i!==void 0?i:e.afterVisibleChange,onClose:s,onHandleClick:d}),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:o,motionDurationSlow:d,motionDurationMid:s,padding:f,paddingLG:u,fontSizeLG:m,lineHeightLG:v,lineWidth:w,lineType:S,colorSplit:O,marginSM:P,colorIcon:y,colorIconHover:k,colorText:i,fontWeightStrong:c,drawerFooterPaddingVertical:p,drawerFooterPaddingHorizontal:I}=e,h=`${t}-content-wrapper`;return{[t]:{position:"fixed",inset:0,zIndex:l,pointerEvents:"none","&-pure":{position:"relative",background:o,[`&${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"},[h]:{position:"absolute",zIndex:l,transition:`all ${d}`,"&-hidden":{display:"none"}},[`&-left > ${h}`]:{top:0,bottom:0,left:{_skip_check_:!0,value:0},boxShadow:e.boxShadowDrawerLeft},[`&-right > ${h}`]:{top:0,right:{_skip_check_:!0,value:0},bottom:0,boxShadow:e.boxShadowDrawerRight},[`&-top > ${h}`]:{top:0,insetInline:0,boxShadow:e.boxShadowDrawerUp},[`&-bottom > ${h}`]:{bottom:0,insetInline:0,boxShadow:e.boxShadowDrawerDown},[`${t}-content`]:{width:"100%",height:"100%",overflow:"auto",background:o,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:`${w}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:c,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:`${w}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 o=0,n=Object.getOwnPropertySymbols(e);o({autofocus:{type:Boolean,default:void 0},closable:{type:Boolean,default:void 0},closeIcon:C.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:C.any,visible:{type:Boolean,default:void 0},open:{type:Boolean,default:void 0},width:C.oneOfType([C.string,C.number]),height:C.oneOfType([C.string,C.number]),zIndex:Number,prefixCls:String,push:C.oneOfType([C.looseBool,{type:Object}]),placement:C.oneOf(on),keyboard:{type:Boolean,default:void 0},extra:C.any,footer:C.any,footerStyle:J(),level:C.any,levelMove:{type:[Number,Array,Function]},handle:C.any,afterVisibleChange:Function,onAfterVisibleChange:Function,onAfterOpenChange:Function,"onUpdate:visible":Function,"onUpdate:open":Function,onClose:Function}),sn=Z({compatConfig:{MODE:3},name:"ADrawer",inheritAttrs:!1,props:Xe(an(),{closable:!0,placement:"right",maskClosable:!0,mask:!0,level:null,keyboard:!0,push:Te}),slots:Object,setup(e,t){let{emit:l,slots:n,attrs:o}=t;const d=W(!1),s=W(!1),f=W(null),u=W(!1),m=W(!1),v=V(()=>{var r;return(r=e.open)!==null&&r!==void 0?r:e.visible});oe(v,()=>{v.value?u.value=!0:m.value=!1},{immediate:!0}),oe([v,u],()=>{v.value&&u.value&&(m.value=!0)},{immediate:!0});const w=je("parentDrawerOpts",null),{prefixCls:S,getPopupContainer:O,direction:P}=Re("drawer",e),[y,k]=nn(S),i=V(()=>e.getContainer===void 0&&(O!=null&&O.value)?()=>O.value(document.body):e.getContainer);$t(!e.afterVisibleChange,"Drawer","`afterVisibleChange` prop is deprecated, please use `@afterVisibleChange` event instead"),Fe("parentDrawerOpts",{setPush:()=>{d.value=!0},setPull:()=>{d.value=!1,fe(()=>{I()})}}),Se(()=>{v.value&&w&&w.setPush()}),He(()=>{w&&w.setPull()}),oe(m,()=>{w&&(m.value?w.setPush():w.setPull())},{flush:"post"});const I=()=>{var r,g;(g=(r=f.value)===null||r===void 0?void 0:r.domFocus)===null||g===void 0||g.call(r)},h=r=>{l("update:visible",!1),l("update:open",!1),l("close",r)},_=r=>{var g;r||(s.value===!1&&(s.value=!0),e.destroyOnClose&&(u.value=!1)),(g=e.afterVisibleChange)===null||g===void 0||g.call(e,r),l("afterVisibleChange",r),l("afterOpenChange",r)},M=V(()=>{const{push:r,placement:g}=e;let $;return typeof r=="boolean"?$=r?Te.distance:0:$=r.distance,$=parseFloat(String($||0)),g==="left"||g==="right"?`translateX(${g==="left"?$:-$}px)`:g==="top"||g==="bottom"?`translateY(${g==="top"?$:-$}px)`:null}),E=V(()=>{var r;return(r=e.width)!==null&&r!==void 0?r:e.size==="large"?736:378}),H=V(()=>{var r;return(r=e.height)!==null&&r!==void 0?r:e.size==="large"?736:378}),q=V(()=>{const{mask:r,placement:g}=e;if(!m.value&&!r)return{};const $={};return g==="left"||g==="right"?$.width=Ie(E.value)?`${E.value}px`:E.value:$.height=Ie(H.value)?`${H.value}px`:H.value,$}),Q=V(()=>{const{zIndex:r,contentWrapperStyle:g}=e,$=q.value;return[{zIndex:r,transform:d.value?M.value:void 0},B({},g),$]}),D=r=>{const{closable:g,headerStyle:$}=e,A=ge(n,e,"extra"),Y=ge(n,e,"title");return!Y&&!g?null:a("div",{class:be(`${r}-header`,{[`${r}-header-close-only`]:g&&!Y&&!A}),style:$},[a("div",{class:`${r}-header-title`},[ae(r),Y&&a("div",{class:`${r}-title`},[Y])]),A&&a("div",{class:`${r}-extra`},[A])])},ae=r=>{var g;const{closable:$}=e,A=n.closeIcon?(g=n.closeIcon)===null||g===void 0?void 0:g.call(n):e.closeIcon;return $&&a("button",{key:"closer",onClick:h,"aria-label":"Close",class:`${r}-close`},[A===void 0?a(yt,null,null):A])},re=r=>{var g;if(s.value&&!e.forceRender&&!u.value)return null;const{bodyStyle:$,drawerStyle:A}=e;return a("div",{class:`${r}-wrapper-body`,style:A},[D(r),a("div",{key:"body",class:`${r}-body`,style:$},[(g=n.default)===null||g===void 0?void 0:g.call(n)]),ee(r)])},ee=r=>{const g=ge(n,e,"footer");if(!g)return null;const $=`${r}-footer`;return a("div",{class:$,style:e.footerStyle},[g])},te=V(()=>be({"no-mask":!e.mask,[`${S.value}-rtl`]:P.value==="rtl"},e.rootClassName,k.value)),ne=V(()=>Oe(Pe(S.value,"mask-motion"))),le=r=>Oe(Pe(S.value,`panel-motion-${r}`));return()=>{const{width:r,height:g,placement:$,mask:A,forceRender:Y}=e,me=ln(e,["width","height","placement","mask","forceRender"]),ve=B(B(B({},o),qe(me,["size","closeIcon","closable","destroyOnClose","drawerStyle","headerStyle","bodyStyle","title","push","onAfterVisibleChange","onClose","onUpdate:visible","onUpdate:open","visible"])),{forceRender:Y,onClose:h,afterVisibleChange:_,handler:!1,prefixCls:S.value,open:m.value,showMask:A,placement:$,ref:f});return y(a(xt,null,{default:()=>[a(Qt,z(z({},ve),{},{maskMotion:ne.value,motion:le,width:E.value,height:H.value,getContainer:i.value,rootClassName:te.value,rootStyle:e.rootStyle,contentWrapperStyle:Q.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 Ee(e){for(var t=1;t{const e=N([]),t=N([]),l=N(null),n=N(!1),o=N(null),d=N(0),s=N(1),f=N(20),u=N(null),m=V(()=>e.value.map(i=>i.name));async function v(i,c){n.value=!0,o.value=null;try{const p=i??u.value??void 0,I=c??s.value,h=await vn(p,I,f.value);e.value=h.skills,d.value=h.total,s.value=h.page}catch(p){o.value=p instanceof Error?p.message:"获取技能列表失败",console.error("Failed to fetch skills:",p)}finally{n.value=!1}}async function w(){try{const i=await hn();t.value=i.capabilities}catch(i){console.error("Failed to fetch capabilities:",i)}}async function S(i){n.value=!0,o.value=null;try{const c=await yn(i);l.value=c}catch(c){o.value=c instanceof Error?c.message:"获取技能详情失败",console.error("Failed to fetch skill detail:",c)}finally{n.value=!1}}async function O(i){try{return(await gn(i)).status}catch(c){return console.error("Failed to check skill health:",c),"error"}}async function P(i){var c;try{await bn(i),await v(),((c=l.value)==null?void 0:c.name)===i&&await S(i)}catch(p){throw o.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:o,totalSkills:d,currentPage:s,pageSize:f,selectedCapability:u,skillNames:m,fetchSkills:v,fetchCapabilities:w,fetchSkillDetail:S,checkHealth:O,reloadSkill:P,setCapabilityFilter:y,clearSelectedSkill:k}}),Sn={class:"skill-card__title"},kn={class:"skill-card__desc"},Cn={class:"skill-card__tags"},wn={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=Z({__name:"SkillCard",props:{skill:{}},emits:["click"],setup(e){return(t,l)=>{const n=Ue,o=We,d=St;return x(),T("div",{class:"skill-card",onClick:l[0]||(l[0]=s=>t.$emit("click"))},[a(d,{hoverable:"",size:"small"},{title:b(()=>[F("div",Sn,[a(R(kt),{class:"skill-card__icon"}),F("span",null,j(e.skill.name),1)])]),extra:b(()=>[a(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,j(e.skill.description||"暂无描述"),1),F("div",Cn,[(x(!0),T(K,null,se(e.skill.capabilities,s=>(x(),X(o,{key:s,size:"small",color:"blue"},{default:b(()=>[L(j(s),1)]),_:2},1024))),128))]),e.skill.dependencies.length>0?(x(),T("div",wn,[l[1]||(l[1]=F("span",{class:"skill-card__deps-label"},"依赖:",-1)),(x(!0),T(K,null,se(e.skill.dependencies.slice(0,3),s=>(x(),X(o,{key:s,size:"small"},{default:b(()=>[L(j(s),1)]),_:2},1024))),128)),e.skill.dependencies.length>3?(x(),T("span",_n," +"+j(e.skill.dependencies.length-3),1)):G("",!0)])):G("",!0),F("div",$n,[e.skill.version?(x(),T("span",xn,"v"+j(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"},Nn={key:0,class:"skill-detail__config"},Tn={key:1,class:"skill-detail__empty"},En={class:"skill-detail__actions"},Ln=Z({__name:"SkillDetail",props:{visible:{type:Boolean},skill:{}},emits:["close"],setup(e){const t=Qe(),l=N(!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 o(){if(!t.selectedSkill)return;await t.checkHealth(t.selectedSkill.name)==="healthy"?ce.success("技能状态正常"):ce.error("技能状态异常")}return(d,s)=>{var P;const f=Ye,u=Ue,m=ie,v=Pt,w=We,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=>d.$emit("close"))},{default:b(()=>[e.skill?(x(),T(K,{key:0},[a(m,{column:1,bordered:"",size:"small"},{default:b(()=>[a(f,{label:"名称"},{default:b(()=>[L(j(e.skill.name),1)]),_:1}),a(f,{label:"版本"},{default:b(()=>[L(j(e.skill.version||"-"),1)]),_:1}),a(f,{label:"状态"},{default:b(()=>[a(u,{status:e.skill.health_status==="healthy"?"success":"warning",text:e.skill.health_status==="healthy"?"正常":e.skill.health_status},null,8,["status","text"])]),_:1}),a(f,{label:"描述"},{default:b(()=>[L(j(e.skill.description||"暂无描述"),1)]),_:1})]),_:1}),a(v,{orientation:"left"},{default:b(()=>[...s[1]||(s[1]=[L("能力标签",-1)])]),_:1}),F("div",In,[(x(!0),T(K,null,se(e.skill.capabilities,y=>(x(),X(w,{key:y,color:"blue"},{default:b(()=>[L(j(y),1)]),_:2},1024))),128)),e.skill.capabilities.length===0?(x(),T("span",Dn,"暂无能力标签")):G("",!0)]),a(v,{orientation:"left"},{default:b(()=>[...s[2]||(s[2]=[L("依赖",-1)])]),_:1}),F("div",Bn,[(x(!0),T(K,null,se(e.skill.dependencies,y=>(x(),X(w,{key:y},{default:b(()=>[L(j(y),1)]),_:2},1024))),128)),e.skill.dependencies.length===0?(x(),T("span",Mn,"无依赖")):G("",!0)]),a(v,{orientation:"left"},{default:b(()=>[...s[3]||(s[3]=[L("配置",-1)])]),_:1}),Object.keys(e.skill.config).length>0?(x(),T("div",Nn,[F("pre",null,j(JSON.stringify(e.skill.config,null,2)),1)])):(x(),T("div",Tn,"暂无配置信息")),F("div",En,[a(S,{type:"primary",loading:l.value,onClick:n},{icon:b(()=>[a(R(pe))]),default:b(()=>[s[4]||(s[4]=L(" 重新加载 ",-1))]),_:1},8,["loading"]),a(S,{onClick:o},{icon:b(()=>[a(R(Ce))]),default:b(()=>[s[5]||(s[5]=L(" 健康检查 ",-1))]),_:1})])],64)):G("",!0)]),_:1},8,["open","title"])}}}),jn=ke(Ln,[["__scopeId","data-v-3ddcc970"]]),zn={class:"skills-view"},An={class:"skills-view__header"},Rn={class:"skills-view__grid"},Fn=Z({__name:"SkillsView",setup(e){const t=Qe(),l=N(void 0),n=N(!1),o=N(!1),d=N(""),s=N(""),f=N(!1),u=N(""),m=N("");Se(async()=>{await Promise.all([t.fetchSkills(),t.fetchCapabilities()])});async function v(y){t.setCapabilityFilter(y??null),await t.fetchSkills()}async function w(){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(!d.value.trim()){u.value="请输入技能名称";return}f.value=!0,u.value="",m.value="";try{const y=await U.installSkill(d.value.trim(),s.value.trim()||void 0);m.value=y.name,ce.success(`技能 ${y.name} 安装成功!`),await w()}catch(y){u.value=(y==null?void 0:y.message)||"安装失败"}finally{f.value=!1}}return(y,k)=>{const i=Dt,c=It,p=Ge,I=Bt,h=ht,_=Mt,M=jt,E=Lt,H=Et,q=zt,Q=Nt;return x(),T("div",zn,[F("div",An,[a(c,{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),T(K,null,se(R(t).capabilities,D=>(x(),X(i,{key:D.name,value:D.name},{default:b(()=>[L(j(D.display_name)+" ("+j(D.skill_count)+") ",1)]),_:2},1032,["value"]))),128))]),_:1},8,["value"]),a(I,null,{default:b(()=>[a(p,{type:"primary",onClick:k[1]||(k[1]=D=>o.value=!0)},{icon:b(()=>[a(R(Tt))]),default:b(()=>[k[5]||(k[5]=L(" 安装技能 ",-1))]),_:1}),a(p,{onClick:w,loading:R(t).isLoading},{icon:b(()=>[a(R(pe))]),default:b(()=>[k[6]||(k[6]=L(" 刷新 ",-1))]),_:1},8,["loading"])]),_:1})]),a(_,{spinning:R(t).isLoading},{default:b(()=>[F("div",Rn,[(x(!0),T(K,null,se(R(t).skills,D=>(x(),X(Pn,{key:D.name,skill:D,onClick:ae=>S(D.name)},null,8,["skill","onClick"]))),128))]),!R(t).isLoading&&R(t).skills.length===0?(x(),X(h,{key:0,description:"暂无已注册技能"})):G("",!0)]),_:1},8,["spinning"]),a(jn,{visible:n.value,skill:R(t).selectedSkill,onClose:O},null,8,["visible","skill"]),a(Q,{open:o.value,"onUpdate:open":k[4]||(k[4]=D=>o.value=D),title:"安装技能","confirm-loading":f.value,onOk:P,"ok-text":"安装","cancel-text":"取消"},{default:b(()=>[a(H,{layout:"vertical"},{default:b(()=>[a(E,{label:"技能名称",required:""},{default:b(()=>[a(M,{value:d.value,"onUpdate:value":k[2]||(k[2]=D=>d.value=D),placeholder:"例如: find-skills"},null,8,["value"])]),_:1}),a(E,{label:"来源 URL(可选)"},{default:b(()=>[a(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(q,{key:0,message:u.value,type:"error","show-icon":"",style:{"margin-top":"8px"}},null,8,["message"])):G("",!0),m.value?(x(),X(q,{key:1,message:`技能 ${m.value} 安装成功!`,type:"success","show-icon":"",style:{"margin-top":"8px"}},null,8,["message"])):G("",!0)]),_:1},8,["open","confirm-loading"])])}}}),vl=ke(Fn,[["__scopeId","data-v-50d34770"]]);export{vl as default}; diff --git a/src/agentkit/server/static/assets/TerminalView-CWX3TF8I.js b/src/agentkit/server/static/assets/TerminalView-CVh893sy.js similarity index 95% rename from src/agentkit/server/static/assets/TerminalView-CWX3TF8I.js rename to src/agentkit/server/static/assets/TerminalView-CVh893sy.js index e216619..3f70127 100644 --- a/src/agentkit/server/static/assets/TerminalView-CWX3TF8I.js +++ b/src/agentkit/server/static/assets/TerminalView-CVh893sy.js @@ -1 +1 @@ -import{c as C,I as X,a4 as Y,r as f,f as L,d as E,E as Z,i as ee,o as h,a as y,b as c,F as z,j as U,e as _,m as H,t as x,p as te,ar as ne,as as N,a0 as V,G as oe,w as W,$ as A,n as J,a2 as se}from"./index-Cdm90D30.js";import{_ as I}from"./_plugin-vue_export-helper-BpJgGuqH.js";import{B as ae}from"./index-DlUg5G7X.js";import{M as ie}from"./index-Bm5ZpeOU.js";import{C as le}from"./index-CPf0IATs.js";import"./devWarning-Ct6dVMcH.js";import"./KeyCode-c8YLmrmC.js";import"./FormItemContext-C7duC9vx.js";import"./pickAttrs-cDcy8MZ0.js";import"./zoom-DFzZ47uz.js";import"./styleChecker-DuXayfgz.js";import"./Checkbox-CGUdikGP.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 j(u){for(var e=1;e{const u=f(null),e=f("~"),n=f([]),i=f([]),o=f(!1),s=f(!1),a=f(null),k=f(null),d=f(null);let p=!1,r=null;const m=L(()=>i.value.slice(-50));function v(t){u.value=t}function g(t){e.value=t}function l(t){n.value.push(t),n.value.length>5e3&&(n.value=n.value.slice(-3e3))}function w(){n.value=[]}function S(t){i.value.push(t),i.value.length>1e3&&(i.value=i.value.slice(-500))}function $(){i.value=[]}function O(){if(a.value&&a.value.readyState===WebSocket.OPEN)return;p=!1;const t=window.location.protocol==="https:"?"wss:":"ws:",B=window.location.host;let T=`${t}//${B}/api/v1/terminal/ws`;u.value&&(T+=`?session_id=${u.value}`);const b=new WebSocket(T);b.onopen=()=>{s.value=!0,l("\x1B[32m已连接到终端服务\x1B[0m")},b.onmessage=D=>{try{const Q=JSON.parse(D.data);G(Q)}catch{l(D.data)}},b.onclose=()=>{s.value=!1,l("\x1B[33m终端连接已断开\x1B[0m"),p||(r=setTimeout(()=>{(!a.value||a.value.readyState===WebSocket.CLOSED)&&O()},3e3))},b.onerror=()=>{s.value=!1,l("\x1B[31m连接错误\x1B[0m")},a.value=b}function F(){p=!0,r&&(clearTimeout(r),r=null),a.value&&(a.value.onclose=null,a.value.close(),a.value=null,s.value=!1)}function R(t){a.value&&a.value.readyState===WebSocket.OPEN&&(a.value.send(JSON.stringify({type:"execute",command:t})),l(`\x1B[36m${e.value}$\x1B[0m ${t}`),o.value=!0)}function K(t,B,T=!1){var b;a.value&&a.value.readyState===WebSocket.OPEN&&(a.value.send(JSON.stringify({type:"confirm",confirmation_id:t,approved:B,add_to_whitelist:T,command:((b=d.value)==null?void 0:b.command)||""})),d.value=null)}function q(t){a.value&&a.value.readyState===WebSocket.OPEN&&a.value.send(JSON.stringify({type:"input",data:t}))}function G(t){switch(t.type){case"connected":t.session_id&&(u.value=t.session_id);break;case"output":t.data&&l(t.data);break;case"result":t.output&&l(t.output),t.cwd&&(e.value=t.cwd),t.exit_code!==void 0&&S({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":d.value={confirmation_id:t.confirmation_id,command:t.command,reason:t.reason||"需要用户确认"},l(`\x1B[33m⚠ 需要确认: ${t.command}\x1B[0m`),l(`\x1B[33m 原因: ${t.reason}\x1B[0m`);break;case"error":l(`\x1B[31m错误: ${t.message}\x1B[0m`),o.value=!1;break}}return{sessionId:u,cwd:e,output:n,history:i,isExecuting:o,isWsConnected:s,ws:a,error:k,pendingConfirmation:d,recentCommands:m,setSessionId:v,setCwd:g,appendOutput:l,clearOutput:w,addHistory:S,clearHistory:$,connectWebSocket:O,disconnectWebSocket:F,sendCommand:R,confirmCommand:K,sendInput:q}}),ue={class:"terminal-emulator",ref:"terminalContainer"},me=["innerHTML"],de={key:0,class:"terminal-emulator__welcome"},fe={class:"terminal-emulator__input"},pe={class:"terminal-emulator__prompt"},_e=["disabled","onKeydown"],ve=E({__name:"TerminalEmulator",setup(u){const e=P(),n=f(""),i=f(null),o=f(null),s=f(-1);Z(()=>{e.connectWebSocket()}),ee(()=>e.output.length,async()=>{await oe(),o.value&&(o.value.scrollTop=o.value.scrollHeight)});function a(){const r=n.value.trim();r&&(e.sendCommand(r),n.value="",s.value=-1)}function k(){const r=e.history;r.length!==0&&s.value0?(s.value--,n.value=e.history[e.history.length-1-s.value].command):(s.value=-1,n.value="")}function p(r){let m=r.replace(/&/g,"&").replace(//g,">"),v=0;const g=[];let l=0;for(;l");v=0}else{const O={32:"ansi-green",33:"ansi-yellow",31:"ansi-red",36:"ansi-cyan",34:"ansi-blue",35:"ansi-magenta",1:"ansi-bold"}[S];O&&(g.push(``),v++)}l=w+1}else g.push(m[l]),l++}else g.push(m[l]),l++;for(let w=0;w");return g.join("")}return(r,m)=>(h(),y("div",ue,[c("div",{class:"terminal-emulator__output",ref_key:"outputContainer",ref:o},[(h(!0),y(z,null,U(_(e).output,(v,g)=>(h(),y("div",{key:g,class:"terminal-line"},[c("span",{innerHTML:p(v)},null,8,me)]))),128)),_(e).output.length===0?(h(),y("div",de," Fischer AgentKit 智能终端 - 输入命令开始 ")):H("",!0)],512),c("div",fe,[c("span",pe,x(_(e).cwd)+"$",1),te(c("input",{ref_key:"inputRef",ref:i,"onUpdate:modelValue":m[0]||(m[0]=v=>n.value=v),class:"terminal-emulator__input-field",placeholder:"输入命令...",disabled:_(e).isExecuting,onKeydown:[N(a,["enter"]),N(V(k,["prevent"]),["up"]),N(V(d,["prevent"]),["down"])]},null,40,_e),[[ne,n.value]])])],512))}}),he=I(ve,[["__scopeId","data-v-e0e9656d"]]),ye={class:"command-history"},ge={class:"command-history__header"},we={class:"command-history__list"},be=["onClick"],Ce={class:"command-history__item-header"},xe={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=E({__name:"CommandHistory",emits:["select"],setup(u){const e=P();function n(i){try{return new Date(i*1e3).toLocaleTimeString("zh-CN")}catch{return""}}return(i,o)=>(h(),y("div",ye,[c("div",ge,[o[2]||(o[2]=c("span",null,"命令历史",-1)),C(_(ae),{type:"link",size:"small",onClick:o[0]||(o[0]=s=>_(e).clearHistory())},{default:W(()=>[...o[1]||(o[1]=[A(" 清空 ",-1)])]),_:1})]),c("div",we,[(h(!0),y(z,null,U(_(e).recentCommands,(s,a)=>(h(),y("div",{key:a,class:"command-history__item",onClick:k=>i.$emit("select",s.command)},[c("div",Ce,[c("span",{class:J(["command-history__exit-code",s.exit_code===0?"command-history__exit-code--success":"command-history__exit-code--error"])},x(s.exit_code===0?"✓":"✗"),3),c("span",xe,x(s.command),1)]),c("div",ke,[c("span",null,x(n(s.timestamp)),1),s.duration_ms?(h(),y("span",Se,x(s.duration_ms)+"ms ",1)):H("",!0)])],8,be))),128)),_(e).recentCommands.length===0?(h(),y("div",$e," 暂无命令历史 ")):H("",!0)])]))}}),Be=I(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=E({__name:"TerminalView",setup(u){const e=P(),n=f(!1),i=f(!0),o=L({get:()=>!!e.pendingConfirmation,set:()=>{}});se(()=>{e.disconnectWebSocket()});function s(d){e.sendCommand(d)}function a(){const d=e.pendingConfirmation;d&&(e.confirmCommand(d.confirmation_id,!0,n.value),n.value=!1)}function k(){const d=e.pendingConfirmation;d&&(e.confirmCommand(d.confirmation_id,!1),n.value=!1)}return(d,p)=>(h(),y("div",Te,[c("div",He,[C(he)]),c("div",{class:J(["terminal-view__sidebar",{"terminal-view__sidebar--collapsed":i.value}])},[c("button",{class:"terminal-view__sidebar-toggle",onClick:p[0]||(p[0]=r=>i.value=!i.value)},[C(_(M))]),i.value?H("",!0):(h(),y("div",Ne,[C(Be,{onSelect:s})]))],2),C(_(ie),{open:o.value,"onUpdate:open":p[2]||(p[2]=r=>o.value=r),title:"命令确认","ok-text":"确认执行","cancel-text":"拒绝",onOk:a,onCancel:k,"ok-button-props":{danger:!0}},{default:W(()=>{var r,m;return[c("div",We,[c("div",Ee,x((r=_(e).pendingConfirmation)==null?void 0:r.command),1),c("div",Ie,x((m=_(e).pendingConfirmation)==null?void 0:m.reason),1),C(_(le),{checked:n.value,"onUpdate:checked":p[1]||(p[1]=v=>n.value=v)},{default:W(()=>[...p[3]||(p[3]=[A(" 添加到会话白名单 ",-1)])]),_:1},8,["checked"])])]}),_:1},8,["open"])]))}}),qe=I(Me,[["__scopeId","data-v-e0e2611b"]]);export{qe as default}; +import{c as C,I as X,a4 as Y,r as f,f as L,d as E,E as Z,i as ee,o as h,a as y,b as c,F as z,j as U,e as _,m as H,t as x,p as te,ar as ne,as as N,a0 as V,G as oe,w as W,$ as A,n as J,a2 as se}from"./index-MxXYiP1e.js";import{_ as I}from"./_plugin-vue_export-helper-CbNEYfqg.js";import{B as ae}from"./index-p0fEGd1V.js";import{M as ie}from"./index-CpcJSnGu.js";import{C as le}from"./index-CIqRW9zM.js";import"./devWarning-Ct6dVMcH.js";import"./KeyCode-c8YLmrmC.js";import"./FormItemContext-CIZixMRP.js";import"./pickAttrs-CdccUdli.js";import"./zoom-BTwsIXn4.js";import"./styleChecker-BO8K1F6-.js";import"./Checkbox-r-colYvs.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 j(u){for(var e=1;e{const u=f(null),e=f("~"),n=f([]),i=f([]),o=f(!1),s=f(!1),a=f(null),k=f(null),d=f(null);let p=!1,r=null;const m=L(()=>i.value.slice(-50));function v(t){u.value=t}function g(t){e.value=t}function l(t){n.value.push(t),n.value.length>5e3&&(n.value=n.value.slice(-3e3))}function w(){n.value=[]}function S(t){i.value.push(t),i.value.length>1e3&&(i.value=i.value.slice(-500))}function $(){i.value=[]}function O(){if(a.value&&a.value.readyState===WebSocket.OPEN)return;p=!1;const t=window.location.protocol==="https:"?"wss:":"ws:",B=window.location.host;let T=`${t}//${B}/api/v1/terminal/ws`;u.value&&(T+=`?session_id=${u.value}`);const b=new WebSocket(T);b.onopen=()=>{s.value=!0,l("\x1B[32m已连接到终端服务\x1B[0m")},b.onmessage=D=>{try{const Q=JSON.parse(D.data);G(Q)}catch{l(D.data)}},b.onclose=()=>{s.value=!1,l("\x1B[33m终端连接已断开\x1B[0m"),p||(r=setTimeout(()=>{(!a.value||a.value.readyState===WebSocket.CLOSED)&&O()},3e3))},b.onerror=()=>{s.value=!1,l("\x1B[31m连接错误\x1B[0m")},a.value=b}function F(){p=!0,r&&(clearTimeout(r),r=null),a.value&&(a.value.onclose=null,a.value.close(),a.value=null,s.value=!1)}function R(t){a.value&&a.value.readyState===WebSocket.OPEN&&(a.value.send(JSON.stringify({type:"execute",command:t})),l(`\x1B[36m${e.value}$\x1B[0m ${t}`),o.value=!0)}function K(t,B,T=!1){var b;a.value&&a.value.readyState===WebSocket.OPEN&&(a.value.send(JSON.stringify({type:"confirm",confirmation_id:t,approved:B,add_to_whitelist:T,command:((b=d.value)==null?void 0:b.command)||""})),d.value=null)}function q(t){a.value&&a.value.readyState===WebSocket.OPEN&&a.value.send(JSON.stringify({type:"input",data:t}))}function G(t){switch(t.type){case"connected":t.session_id&&(u.value=t.session_id);break;case"output":t.data&&l(t.data);break;case"result":t.output&&l(t.output),t.cwd&&(e.value=t.cwd),t.exit_code!==void 0&&S({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":d.value={confirmation_id:t.confirmation_id,command:t.command,reason:t.reason||"需要用户确认"},l(`\x1B[33m⚠ 需要确认: ${t.command}\x1B[0m`),l(`\x1B[33m 原因: ${t.reason}\x1B[0m`);break;case"error":l(`\x1B[31m错误: ${t.message}\x1B[0m`),o.value=!1;break}}return{sessionId:u,cwd:e,output:n,history:i,isExecuting:o,isWsConnected:s,ws:a,error:k,pendingConfirmation:d,recentCommands:m,setSessionId:v,setCwd:g,appendOutput:l,clearOutput:w,addHistory:S,clearHistory:$,connectWebSocket:O,disconnectWebSocket:F,sendCommand:R,confirmCommand:K,sendInput:q}}),ue={class:"terminal-emulator",ref:"terminalContainer"},me=["innerHTML"],de={key:0,class:"terminal-emulator__welcome"},fe={class:"terminal-emulator__input"},pe={class:"terminal-emulator__prompt"},_e=["disabled","onKeydown"],ve=E({__name:"TerminalEmulator",setup(u){const e=P(),n=f(""),i=f(null),o=f(null),s=f(-1);Z(()=>{e.connectWebSocket()}),ee(()=>e.output.length,async()=>{await oe(),o.value&&(o.value.scrollTop=o.value.scrollHeight)});function a(){const r=n.value.trim();r&&(e.sendCommand(r),n.value="",s.value=-1)}function k(){const r=e.history;r.length!==0&&s.value0?(s.value--,n.value=e.history[e.history.length-1-s.value].command):(s.value=-1,n.value="")}function p(r){let m=r.replace(/&/g,"&").replace(//g,">"),v=0;const g=[];let l=0;for(;l");v=0}else{const O={32:"ansi-green",33:"ansi-yellow",31:"ansi-red",36:"ansi-cyan",34:"ansi-blue",35:"ansi-magenta",1:"ansi-bold"}[S];O&&(g.push(``),v++)}l=w+1}else g.push(m[l]),l++}else g.push(m[l]),l++;for(let w=0;w");return g.join("")}return(r,m)=>(h(),y("div",ue,[c("div",{class:"terminal-emulator__output",ref_key:"outputContainer",ref:o},[(h(!0),y(z,null,U(_(e).output,(v,g)=>(h(),y("div",{key:g,class:"terminal-line"},[c("span",{innerHTML:p(v)},null,8,me)]))),128)),_(e).output.length===0?(h(),y("div",de," Fischer AgentKit 智能终端 - 输入命令开始 ")):H("",!0)],512),c("div",fe,[c("span",pe,x(_(e).cwd)+"$",1),te(c("input",{ref_key:"inputRef",ref:i,"onUpdate:modelValue":m[0]||(m[0]=v=>n.value=v),class:"terminal-emulator__input-field",placeholder:"输入命令...",disabled:_(e).isExecuting,onKeydown:[N(a,["enter"]),N(V(k,["prevent"]),["up"]),N(V(d,["prevent"]),["down"])]},null,40,_e),[[ne,n.value]])])],512))}}),he=I(ve,[["__scopeId","data-v-e0e9656d"]]),ye={class:"command-history"},ge={class:"command-history__header"},we={class:"command-history__list"},be=["onClick"],Ce={class:"command-history__item-header"},xe={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=E({__name:"CommandHistory",emits:["select"],setup(u){const e=P();function n(i){try{return new Date(i*1e3).toLocaleTimeString("zh-CN")}catch{return""}}return(i,o)=>(h(),y("div",ye,[c("div",ge,[o[2]||(o[2]=c("span",null,"命令历史",-1)),C(_(ae),{type:"link",size:"small",onClick:o[0]||(o[0]=s=>_(e).clearHistory())},{default:W(()=>[...o[1]||(o[1]=[A(" 清空 ",-1)])]),_:1})]),c("div",we,[(h(!0),y(z,null,U(_(e).recentCommands,(s,a)=>(h(),y("div",{key:a,class:"command-history__item",onClick:k=>i.$emit("select",s.command)},[c("div",Ce,[c("span",{class:J(["command-history__exit-code",s.exit_code===0?"command-history__exit-code--success":"command-history__exit-code--error"])},x(s.exit_code===0?"✓":"✗"),3),c("span",xe,x(s.command),1)]),c("div",ke,[c("span",null,x(n(s.timestamp)),1),s.duration_ms?(h(),y("span",Se,x(s.duration_ms)+"ms ",1)):H("",!0)])],8,be))),128)),_(e).recentCommands.length===0?(h(),y("div",$e," 暂无命令历史 ")):H("",!0)])]))}}),Be=I(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=E({__name:"TerminalView",setup(u){const e=P(),n=f(!1),i=f(!0),o=L({get:()=>!!e.pendingConfirmation,set:()=>{}});se(()=>{e.disconnectWebSocket()});function s(d){e.sendCommand(d)}function a(){const d=e.pendingConfirmation;d&&(e.confirmCommand(d.confirmation_id,!0,n.value),n.value=!1)}function k(){const d=e.pendingConfirmation;d&&(e.confirmCommand(d.confirmation_id,!1),n.value=!1)}return(d,p)=>(h(),y("div",Te,[c("div",He,[C(he)]),c("div",{class:J(["terminal-view__sidebar",{"terminal-view__sidebar--collapsed":i.value}])},[c("button",{class:"terminal-view__sidebar-toggle",onClick:p[0]||(p[0]=r=>i.value=!i.value)},[C(_(M))]),i.value?H("",!0):(h(),y("div",Ne,[C(Be,{onSelect:s})]))],2),C(_(ie),{open:o.value,"onUpdate:open":p[2]||(p[2]=r=>o.value=r),title:"命令确认","ok-text":"确认执行","cancel-text":"拒绝",onOk:a,onCancel:k,"ok-button-props":{danger:!0}},{default:W(()=>{var r,m;return[c("div",We,[c("div",Ee,x((r=_(e).pendingConfirmation)==null?void 0:r.command),1),c("div",Ie,x((m=_(e).pendingConfirmation)==null?void 0:m.reason),1),C(_(le),{checked:n.value,"onUpdate:checked":p[1]||(p[1]=v=>n.value=v)},{default:W(()=>[...p[3]||(p[3]=[A(" 添加到会话白名单 ",-1)])]),_:1},8,["checked"])])]}),_:1},8,["open"])]))}}),qe=I(Me,[["__scopeId","data-v-e0e2611b"]]);export{qe as default}; diff --git a/src/agentkit/server/static/assets/UserOutlined-C607Q7TU.js b/src/agentkit/server/static/assets/UserOutlined-3o_0Hvh7.js similarity index 97% rename from src/agentkit/server/static/assets/UserOutlined-C607Q7TU.js rename to src/agentkit/server/static/assets/UserOutlined-3o_0Hvh7.js index 1ae185e..9bc22ee 100644 --- a/src/agentkit/server/static/assets/UserOutlined-C607Q7TU.js +++ b/src/agentkit/server/static/assets/UserOutlined-3o_0Hvh7.js @@ -1 +1 @@ -import{c as u,I as i}from"./index-Cdm90D30.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("+",` +import{c as z,I as _t,a4 as na,r as me,f as te,d as we,o as O,a as J,b as ne,F as De,j as qt,k as ve,g as He,l as dt,t as Ne,E as Ue,h as $e,n as Re,e as D,a5 as oa,a6 as Se,a7 as ia,a2 as Oi,w as ue,B as It,a8 as Ti,i as Ee,a9 as ra,G as et,T as Ai,aa,m as fe,K as at,ab as Pt,ac as zi,ad as dn,ae as pe,C as kt,af as xe,Q as la,ag as go,O as sa,ah as ua,ai as ca,aj as lt,ak as Bi,al as da,am as Vi,$ as Oe,a3 as $n,an as Cn,ao as Mn,ap as fa,aq as qe,Z as Hi,a0 as ha}from"./index-MxXYiP1e.js";import{B as va}from"./base--VGJiuPH.js";import{T as Ri,U as Li}from"./UserOutlined-3o_0Hvh7.js";import{_ as ct}from"./_plugin-vue_export-helper-CbNEYfqg.js";import{T as po}from"./index-BsO-BQWw.js";import{S as ga}from"./index-DuQZmgYZ.js";import{B as mo}from"./index-p0fEGd1V.js";import{D as yo,_ as pa}from"./DeleteOutlined-CclyZH8N.js";import{F as Fi,_ as Yi}from"./index-6F6eWDOC.js";import{I as ma,_ as Gi}from"./index-C-JDvA85.js";import{_ as ya,U as wa}from"./index-DfYN6Ir9.js";import{D as _a}from"./Dropdown-EJ9XzwSc.js";import{S as ba}from"./index-BjhFFLnY.js";import{M as xa}from"./index-CpcJSnGu.js";import{P as Ea}from"./PlusOutlined-CMd58dlX.js";import"./zoom-BTwsIXn4.js";import"./devWarning-Ct6dVMcH.js";import"./styleChecker-BO8K1F6-.js";import"./FolderOpenOutlined-DkHI-22a.js";import"./responsiveObserve-BPXXLIQF.js";import"./index-DzzgX9TA.js";import"./index-BzwcKMhL.js";import"./KeyCode-c8YLmrmC.js";import"./pickAttrs-CdccUdli.js";import"./LeftOutlined-CAv2mg6T.js";import"./FormItemContext-CIZixMRP.js";import"./index-CIqRW9zM.js";import"./Checkbox-r-colYvs.js";import"./index-DVAHMIEx.js";var Sa={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M872 474H286.9l350.2-304c5.6-4.9 2.2-14-5.2-14h-88.5c-3.9 0-7.6 1.4-10.5 3.9L155 487.8a31.96 31.96 0 000 48.3L535.1 866c1.5 1.3 3.3 2 5.2 2h91.5c7.4 0 10.8-9.2 5.2-14L286.9 550H872c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z"}}]},name:"arrow-left",theme:"outlined"};function zo(e){for(var t=1;t{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:Ge(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:Ge(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:Ge(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:Ge(u,f)},{i:b-2,x:Ge(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=Le(e,t);if(n.state>mr)throw new Error("too late; already scheduled");return n}function Ze(e,t){var n=Le(e,t);if(n.state>vn)throw new Error("too late; already running");return n}function Le(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?Le(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=Ye(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=Ye(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]=Ye(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=Ye(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(` `,` @@ -23,4 +23,4 @@ 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=ya,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=ba,U=po,ie=pa,le=Gi,he=Yi,q=Fi,j=xa;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(wa),{key:0})):(O(),ve(D(_a),{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(Ea))]),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"])])}}}),Sg=ct(Zv,[["__scopeId","data-v-7459974e"]]);export{Sg as default}; +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 We(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}=We(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=We(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=We(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}=We(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=We(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}=We(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=We(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,...We(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,...We(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:Re(["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:Re(["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:Re([{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}=We(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:Re(["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=Ye(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 Fe=ce(se.property("__zoom"));x&&clearTimeout(x),ee.value?($.move({event:w,flowTransform:Fe}),$.viewportChange(Fe),x=setTimeout(()=>{$.moveEnd({event:w,flowTransform:Fe}),$.viewportChangeEnd(Fe),ee.value=!1},150)):(ee.value=!0,$.moveStart({event:w,flowTransform:Fe}),$.viewportChangeStart(Fe))},{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:Re({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:Fe}=Dt(d,F,re);return _.value.sourceX=ge,_.value.sourceY=be,_.value.targetX=nt,_.value.targetY=Fe,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:Fe,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:Fe,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:Re(["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:Re(["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:Re(["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:Re(["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:Re(["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=ya,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=["onClick"],Hv={class:"item-name"},Rv={class:"item-meta"},Lv={key:1,class:"editor-main"},Fv={class:"canvas-area"},Yv={class:"execution-history"},Gv={key:0,class:"history-body"},Wv={key:2,class:"back-bar"},Xv={class:"workflow-name"},Uv=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=ba,U=po,ie=pa,le=Gi,he=Yi,q=Fi,j=xa;return O(),J("div",Av,[u.value?(O(),J("div",Lv,[z(qa),ne("div",Fv,[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",Yv,[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(wa),{key:0})):(O(),ve(D(_a),{key:1}))]),i.value?(O(),J("div",Gv,[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(Ea))]),default:ue(()=>[M[4]||(M[4]=Oe(" 新建 ",-1))]),_:1})]),z(H,{spinning:h.value,class:"list-spin"},{default:ue(()=>[ne("div",{class:Re(["list-body",{"list-body--empty":s.value.length===0}])},[(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",Hv,Ne(L.name),1),ne("div",Rv,[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,Vv))),128)),s.value.length===0?(O(),ve(V,{key:0,description:"暂无工作流"})):fe("",!0)],2)]),_:1},8,["spinning"])])),u.value?(O(),J("div",Wv,[z(T,{size:"small",onClick:I},{icon:ue(()=>[z(D(wo))]),default:ue(()=>[M[6]||(M[6]=Oe(" 返回列表 ",-1))]),_:1}),ne("span",Xv,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"])])}}}),Eg=ct(Uv,[["__scopeId","data-v-18f3fe62"]]);export{Eg as default}; diff --git a/src/agentkit/server/static/assets/_plugin-vue_export-helper-BpJgGuqH.js b/src/agentkit/server/static/assets/_plugin-vue_export-helper-CbNEYfqg.js similarity index 98% rename from src/agentkit/server/static/assets/_plugin-vue_export-helper-BpJgGuqH.js rename to src/agentkit/server/static/assets/_plugin-vue_export-helper-CbNEYfqg.js index 2ed15b7..e6c8724 100644 --- a/src/agentkit/server/static/assets/_plugin-vue_export-helper-BpJgGuqH.js +++ b/src/agentkit/server/static/assets/_plugin-vue_export-helper-CbNEYfqg.js @@ -1 +1 @@ -import{z as H}from"./index-Cdm90D30.js";const lt=(r,t)=>{const e=H({},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 R=r=>setTimeout(r,16),U=r=>clearTimeout(r);typeof window<"u"&&"requestAnimationFrame"in window&&(R=r=>window.requestAnimationFrame(r),U=r=>window.cancelAnimationFrame(r));let A=0;const w=new Map;function V(r){w.delete(r)}function J(r){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;A+=1;const e=A;function o(a){if(a===0)V(e),r();else{const h=R(()=>{o(a-1)});w.set(e,h)}}return o(t),e}J.cancel=r=>{const t=w.get(r);return V(t),U(t)};const yt=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 D=typeof global=="object"&&global&&global.Object===Object&&global,X=typeof self=="object"&&self&&self.Object===Object&&self,c=D||X||Function("return this")(),b=c.Symbol,N=Object.prototype,Q=N.hasOwnProperty,Y=N.toString,u=b?b.toStringTag:void 0;function Z(r){var t=Q.call(r,u),e=r[u];try{r[u]=void 0;var o=!0}catch{}var a=Y.call(r);return o&&(t?r[u]=e:delete r[u]),a}var rr=Object.prototype,tr=rr.toString;function er(r){return tr.call(r)}var nr="[object Null]",or="[object Undefined]",S=b?b.toStringTag:void 0;function p(r){return r==null?r===void 0?or:nr:S&&S in Object(r)?Z(r):er(r)}function q(r){var t=typeof r;return r!=null&&(t=="object"||t=="function")}var ar="[object AsyncFunction]",cr="[object Function]",ir="[object GeneratorFunction]",sr="[object Proxy]";function G(r){if(!q(r))return!1;var t=p(r);return t==cr||t==ir||t==ar||t==sr}var l=c["__core-js_shared__"],$=function(){var r=/[^.]+$/.exec(l&&l.keys&&l.keys.IE_PROTO||"");return r?"Symbol(src)_1."+r:""}();function ur(r){return!!$&&$ in r}var fr=Function.prototype,pr=fr.toString;function i(r){if(r!=null){try{return pr.call(r)}catch{}try{return r+""}catch{}}return""}var gr=/[\\^$.*+?()[\]{}|]/g,br=/^\[object .+?Constructor\]$/,lr=Function.prototype,yr=Object.prototype,dr=lr.toString,jr=yr.hasOwnProperty,Tr=RegExp("^"+dr.call(jr).replace(gr,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function vr(r){if(!q(r)||ur(r))return!1;var t=G(r)?Tr:br;return t.test(i(r))}function mr(r,t){return r==null?void 0:r[t]}function g(r,t){var e=mr(r,t);return vr(e)?e:void 0}var d=g(c,"Map"),dt=Array.isArray;function O(r){return r!=null&&typeof r=="object"}var wr="[object Arguments]";function x(r){return O(r)&&p(r)==wr}var W=Object.prototype,Or=W.hasOwnProperty,hr=W.propertyIsEnumerable,jt=x(function(){return arguments}())?x:function(r){return O(r)&&Or.call(r,"callee")&&!hr.call(r,"callee")};function Ar(){return!1}var K=typeof exports=="object"&&exports&&!exports.nodeType&&exports,P=K&&typeof module=="object"&&module&&!module.nodeType&&module,Sr=P&&P.exports===K,I=Sr?c.Buffer:void 0,$r=I?I.isBuffer:void 0,Tt=$r||Ar,xr=9007199254740991;function L(r){return typeof r=="number"&&r>-1&&r%1==0&&r<=xr}var Pr="[object Arguments]",Ir="[object Array]",Mr="[object Boolean]",Er="[object Date]",Br="[object Error]",Fr="[object Function]",_r="[object Map]",Cr="[object Number]",kr="[object Object]",Rr="[object RegExp]",Ur="[object Set]",Vr="[object String]",Dr="[object WeakMap]",Nr="[object ArrayBuffer]",qr="[object DataView]",Gr="[object Float32Array]",Wr="[object Float64Array]",Kr="[object Int8Array]",Lr="[object Int16Array]",zr="[object Int32Array]",Hr="[object Uint8Array]",Jr="[object Uint8ClampedArray]",Xr="[object Uint16Array]",Qr="[object Uint32Array]",n={};n[Gr]=n[Wr]=n[Kr]=n[Lr]=n[zr]=n[Hr]=n[Jr]=n[Xr]=n[Qr]=!0;n[Pr]=n[Ir]=n[Nr]=n[Mr]=n[qr]=n[Er]=n[Br]=n[Fr]=n[_r]=n[Cr]=n[kr]=n[Rr]=n[Ur]=n[Vr]=n[Dr]=!1;function Yr(r){return O(r)&&L(r.length)&&!!n[p(r)]}function Zr(r){return function(t){return r(t)}}var z=typeof exports=="object"&&exports&&!exports.nodeType&&exports,f=z&&typeof module=="object"&&module&&!module.nodeType&&module,rt=f&&f.exports===z,y=rt&&D.process,M=function(){try{var r=f&&f.require&&f.require("util").types;return r||y&&y.binding&&y.binding("util")}catch{}}(),E=M&&M.isTypedArray,vt=E?Zr(E):Yr,tt=Object.prototype;function et(r){var t=r&&r.constructor,e=typeof t=="function"&&t.prototype||tt;return r===e}function nt(r,t){return function(e){return r(t(e))}}var ot=nt(Object.keys,Object),at=Object.prototype,ct=at.hasOwnProperty;function mt(r){if(!et(r))return ot(r);var t=[];for(var e in Object(r))ct.call(r,e)&&e!="constructor"&&t.push(e);return t}function wt(r){return r!=null&&L(r.length)&&!G(r)}var j=g(c,"DataView"),T=g(c,"Promise"),v=g(c,"Set"),m=g(c,"WeakMap"),B="[object Map]",it="[object Object]",F="[object Promise]",_="[object Set]",C="[object WeakMap]",k="[object DataView]",st=i(j),ut=i(d),ft=i(T),pt=i(v),gt=i(m),s=p;(j&&s(new j(new ArrayBuffer(1)))!=k||d&&s(new d)!=B||T&&s(T.resolve())!=F||v&&s(new v)!=_||m&&s(new m)!=C)&&(s=function(r){var t=p(r),e=t==it?r.constructor:void 0,o=e?i(e):"";if(o)switch(o){case st:return k;case ut:return B;case ft:return F;case pt:return _;case gt:return C}return t});const Ot=(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,Ot as _,wt as a,dt as b,yt as c,q as d,et as e,O as f,s as g,Zr as h,lt as i,Tt as j,p as k,g as l,jt as m,M as n,L as o,nt as p,vt as q,c as r,mt as s,v as t,J as w}; +import{z as H}from"./index-MxXYiP1e.js";const lt=(r,t)=>{const e=H({},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 R=r=>setTimeout(r,16),U=r=>clearTimeout(r);typeof window<"u"&&"requestAnimationFrame"in window&&(R=r=>window.requestAnimationFrame(r),U=r=>window.cancelAnimationFrame(r));let A=0;const w=new Map;function V(r){w.delete(r)}function J(r){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;A+=1;const e=A;function o(a){if(a===0)V(e),r();else{const h=R(()=>{o(a-1)});w.set(e,h)}}return o(t),e}J.cancel=r=>{const t=w.get(r);return V(t),U(t)};const yt=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 D=typeof global=="object"&&global&&global.Object===Object&&global,X=typeof self=="object"&&self&&self.Object===Object&&self,c=D||X||Function("return this")(),b=c.Symbol,N=Object.prototype,Q=N.hasOwnProperty,Y=N.toString,u=b?b.toStringTag:void 0;function Z(r){var t=Q.call(r,u),e=r[u];try{r[u]=void 0;var o=!0}catch{}var a=Y.call(r);return o&&(t?r[u]=e:delete r[u]),a}var rr=Object.prototype,tr=rr.toString;function er(r){return tr.call(r)}var nr="[object Null]",or="[object Undefined]",S=b?b.toStringTag:void 0;function p(r){return r==null?r===void 0?or:nr:S&&S in Object(r)?Z(r):er(r)}function q(r){var t=typeof r;return r!=null&&(t=="object"||t=="function")}var ar="[object AsyncFunction]",cr="[object Function]",ir="[object GeneratorFunction]",sr="[object Proxy]";function G(r){if(!q(r))return!1;var t=p(r);return t==cr||t==ir||t==ar||t==sr}var l=c["__core-js_shared__"],$=function(){var r=/[^.]+$/.exec(l&&l.keys&&l.keys.IE_PROTO||"");return r?"Symbol(src)_1."+r:""}();function ur(r){return!!$&&$ in r}var fr=Function.prototype,pr=fr.toString;function i(r){if(r!=null){try{return pr.call(r)}catch{}try{return r+""}catch{}}return""}var gr=/[\\^$.*+?()[\]{}|]/g,br=/^\[object .+?Constructor\]$/,lr=Function.prototype,yr=Object.prototype,dr=lr.toString,jr=yr.hasOwnProperty,Tr=RegExp("^"+dr.call(jr).replace(gr,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function vr(r){if(!q(r)||ur(r))return!1;var t=G(r)?Tr:br;return t.test(i(r))}function mr(r,t){return r==null?void 0:r[t]}function g(r,t){var e=mr(r,t);return vr(e)?e:void 0}var d=g(c,"Map"),dt=Array.isArray;function O(r){return r!=null&&typeof r=="object"}var wr="[object Arguments]";function x(r){return O(r)&&p(r)==wr}var W=Object.prototype,Or=W.hasOwnProperty,hr=W.propertyIsEnumerable,jt=x(function(){return arguments}())?x:function(r){return O(r)&&Or.call(r,"callee")&&!hr.call(r,"callee")};function Ar(){return!1}var K=typeof exports=="object"&&exports&&!exports.nodeType&&exports,P=K&&typeof module=="object"&&module&&!module.nodeType&&module,Sr=P&&P.exports===K,I=Sr?c.Buffer:void 0,$r=I?I.isBuffer:void 0,Tt=$r||Ar,xr=9007199254740991;function L(r){return typeof r=="number"&&r>-1&&r%1==0&&r<=xr}var Pr="[object Arguments]",Ir="[object Array]",Mr="[object Boolean]",Er="[object Date]",Br="[object Error]",Fr="[object Function]",_r="[object Map]",Cr="[object Number]",kr="[object Object]",Rr="[object RegExp]",Ur="[object Set]",Vr="[object String]",Dr="[object WeakMap]",Nr="[object ArrayBuffer]",qr="[object DataView]",Gr="[object Float32Array]",Wr="[object Float64Array]",Kr="[object Int8Array]",Lr="[object Int16Array]",zr="[object Int32Array]",Hr="[object Uint8Array]",Jr="[object Uint8ClampedArray]",Xr="[object Uint16Array]",Qr="[object Uint32Array]",n={};n[Gr]=n[Wr]=n[Kr]=n[Lr]=n[zr]=n[Hr]=n[Jr]=n[Xr]=n[Qr]=!0;n[Pr]=n[Ir]=n[Nr]=n[Mr]=n[qr]=n[Er]=n[Br]=n[Fr]=n[_r]=n[Cr]=n[kr]=n[Rr]=n[Ur]=n[Vr]=n[Dr]=!1;function Yr(r){return O(r)&&L(r.length)&&!!n[p(r)]}function Zr(r){return function(t){return r(t)}}var z=typeof exports=="object"&&exports&&!exports.nodeType&&exports,f=z&&typeof module=="object"&&module&&!module.nodeType&&module,rt=f&&f.exports===z,y=rt&&D.process,M=function(){try{var r=f&&f.require&&f.require("util").types;return r||y&&y.binding&&y.binding("util")}catch{}}(),E=M&&M.isTypedArray,vt=E?Zr(E):Yr,tt=Object.prototype;function et(r){var t=r&&r.constructor,e=typeof t=="function"&&t.prototype||tt;return r===e}function nt(r,t){return function(e){return r(t(e))}}var ot=nt(Object.keys,Object),at=Object.prototype,ct=at.hasOwnProperty;function mt(r){if(!et(r))return ot(r);var t=[];for(var e in Object(r))ct.call(r,e)&&e!="constructor"&&t.push(e);return t}function wt(r){return r!=null&&L(r.length)&&!G(r)}var j=g(c,"DataView"),T=g(c,"Promise"),v=g(c,"Set"),m=g(c,"WeakMap"),B="[object Map]",it="[object Object]",F="[object Promise]",_="[object Set]",C="[object WeakMap]",k="[object DataView]",st=i(j),ut=i(d),ft=i(T),pt=i(v),gt=i(m),s=p;(j&&s(new j(new ArrayBuffer(1)))!=k||d&&s(new d)!=B||T&&s(T.resolve())!=F||v&&s(new v)!=_||m&&s(new m)!=C)&&(s=function(r){var t=p(r),e=t==it?r.constructor:void 0,o=e?i(e):"";if(o)switch(o){case st:return k;case ut:return B;case ft:return F;case pt:return _;case gt:return C}return t});const Ot=(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,Ot as _,wt as a,dt as b,yt as c,q as d,et as e,O as f,s as g,Zr as h,lt as i,Tt as j,p as k,g as l,jt as m,M as n,L as o,nt as p,vt as q,c as r,mt as s,v as t,J as w}; diff --git a/src/agentkit/server/static/assets/base-BzUb4EcV.js b/src/agentkit/server/static/assets/base--VGJiuPH.js similarity index 98% rename from src/agentkit/server/static/assets/base-BzUb4EcV.js rename to src/agentkit/server/static/assets/base--VGJiuPH.js index 8082764..2c2eae0 100644 --- a/src/agentkit/server/static/assets/base-BzUb4EcV.js +++ b/src/agentkit/server/static/assets/base--VGJiuPH.js @@ -1 +1 @@ -var fn=Object.defineProperty;var pn=(t,e,n)=>e in t?fn(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n;var Zt=(t,e,n)=>pn(t,typeof e!="symbol"?e+"":e,n);import{z as g,P as T,c as x,aG as jt,J as X,p as Re,bB as Ne,bC as dn,d as q,M as Be,R as nt,r as k,i as G,E as He,T as hn,K as $,f as z,bf as tt,G as Ht,ay as vn,a2 as gn,aP as mn,v as yn,a0 as Jt,a6 as bn,bD as wn,aR as Ie,bb as _n,bE as Qt,F as On,b0 as Tn,b1 as Pn,V as ft,C as Cn,bg as xn,B as Sn,L as An,H as Mn,aK as pt,x as En,y as Ve,A as $n,D as Dn,aF as Rn,bF as Nn,aJ as Bn,bd as Hn,aH as In}from"./index-Cdm90D30.js";import{w as Y,l as Vn,M as Le,r as Ln,S as te,b as bt,m as zn,j as It,q as ze,a as Fn,s as Wn,g as ee,f as ne,c as jn,i as kn}from"./_plugin-vue_export-helper-BpJgGuqH.js";import{c as wt,d as it,s as st,P as Xn,i as Yn}from"./zoom-DFzZ47uz.js";var Fe=function(){if(typeof Map<"u")return Map;function t(e,n){var o=-1;return e.some(function(r,i){return r[0]===n?(o=i,!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),r=this.__entries__[o];return r&&r[1]},e.prototype.set=function(n,o){var r=t(this.__entries__,n);~r?this.__entries__[r][1]=o:this.__entries__.push([n,o])},e.prototype.delete=function(n){var o=this.__entries__,r=t(o,n);~r&&o.splice(r,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 r=0,i=this.__entries__;r0},t.prototype.connect_=function(){!Vt||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),Jn?(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,r=Zn.some(function(i){return!!~o.indexOf(i)});r&&this.refresh()},t.getInstance=function(){return this.instance_||(this.instance_=new t),this.instance_},t.instance_=null,t}(),We=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 ao(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 lo(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}(),ke=typeof WeakMap<"u"?new WeakMap:new Fe,Xe=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=Qn.getInstance(),o=new uo(e,n,this);ke.set(this,o)}return t}();["observe","unobserve","disconnect"].forEach(function(t){Xe.prototype[t]=function(){var e;return(e=ke.get(this))[t].apply(e,arguments)}});var co=function(){return typeof _t.ResizeObserver<"u"?_t.ResizeObserver:Xe}();const Tt=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"],fo=(t,e,n,o,r)=>{const i=t/2,s=0,a=i,u=n*1/Math.sqrt(2),l=i-n*(1-1/Math.sqrt(2)),p=i-e*(1/Math.sqrt(2)),d=n*(Math.sqrt(2)-1)+e*(1/Math.sqrt(2)),c=2*i-p,f=d,h=2*i-u,m=l,P=2*i-s,w=a,b=i*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:b,height:b,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${e}px 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:r,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*i-O}px 100%, ${O}px 100%)`,`path('M ${s} ${a} A ${n} ${n} 0 0 0 ${u} ${l} L ${p} ${d} A ${e} ${e} 0 0 1 ${c} ${f} L ${h} ${m} A ${n} ${n} 0 0 0 ${P} ${w} Z')`]},content:'""'}}};function po(t,e){return Tt.reduce((n,o)=>{const r=t[`${o}-1`],i=t[`${o}-3`],s=t[`${o}-6`],a=t[`${o}-7`];return g(g({},n),e(o,{lightColor:r,lightBorderColor:i,darkColor:s,textColor:a}))},{})}function ho(){return""}function vo(t){return t?t.ownerDocument:window.document}function Ye(){}const go=()=>({action:T.oneOfType([T.string,T.arrayOf(T.string)]).def([]),showAction:T.any.def([]),hideAction:T.any.def([]),getPopupClassNameFromAlign:T.any.def(ho),onPopupVisibleChange:Function,afterPopupVisibleChange:T.func.def(Ye),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(vo),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}),kt={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}},mo=g(g({},kt),{mobile:{type:Object}}),yo=g(g({},kt),{mask:Boolean,mobile:{type:Object},maskAnimation:String,maskTransitionName:String});function Ue(t){const{prefixCls:e,visible:n,zIndex:o,mask:r,maskAnimation:i,maskTransitionName:s}=t;if(!r)return null;let a={};return(s||i)&&(a=Ne({prefixCls:e,transitionName:s,animation:i})),x(jt,X({appear:!0},a),{default:()=>[Re(x("div",{style:{zIndex:o},class:`${e}-mask`},null),[[dn("if"),n]])]})}Ue.displayName="Mask";const bo=q({compatConfig:{MODE:3},name:"MobilePopupInner",inheritAttrs:!1,props:mo,emits:["mouseenter","mouseleave","mousedown","touchstart","align"],setup(t,e){let{expose:n,slots:o}=e;const r=k();return n({forceAlign:()=>{},getElement:()=>r.value}),()=>{var i;const{zIndex:s,visible:a,prefixCls:u,mobile:{popupClassName:l,popupStyle:p,popupMotion:d={},popupRender:c}={}}=t,f=g({zIndex:s},p);let h=Be((i=o.default)===null||i===void 0?void 0:i.call(o));h.length>1&&(h=x("div",{class:`${u}-content`},[h])),c&&(h=c(h));const m=nt(u,l);return x(jt,X({ref:r},d),{default:()=>[a?x("div",{class:m,style:f},[h]):null]})}}});var wo=function(t,e,n,o){function r(i){return i instanceof n?i:new n(function(s){s(i)})}return new(n||(n=Promise))(function(i,s){function a(p){try{l(o.next(p))}catch(d){s(d)}}function u(p){try{l(o.throw(p))}catch(d){s(d)}}function l(p){p.done?i(p.value):r(p.value).then(a,u)}l((o=o.apply(t,e||[])).next())})};const re=["measure","align",null,"motion"],_o=(t,e)=>{const n=$(null),o=$(),r=$(!1);function i(u){r.value||(n.value=u)}function s(){Y.cancel(o.value)}function a(u){s(),o.value=Y(()=>{let l=n.value;switch(n.value){case"align":l="motion";break;case"motion":l="stable";break}i(l),u==null||u()})}return G(t,()=>{i("measure")},{immediate:!0,flush:"post"}),He(()=>{G(n,()=>{switch(n.value){case"measure":e();break}n.value&&(o.value=Y(()=>wo(void 0,void 0,void 0,function*(){const u=re.indexOf(n.value),l=re[u+1];l&&u!==-1&&i(l)})))},{immediate:!0,flush:"post"})}),hn(()=>{r.value=!0,s()}),[n,a]},Oo=t=>{const e=$({width:0,height:0});function n(r){e.value={width:r.offsetWidth,height:r.offsetHeight}}return[z(()=>{const r={};if(t.value){const{width:i,height:s}=e.value;t.value.indexOf("height")!==-1&&s?r.height=`${s}px`:t.value.indexOf("minHeight")!==-1&&s&&(r.minHeight=`${s}px`),t.value.indexOf("width")!==-1&&i?r.width=`${i}px`:t.value.indexOf("minWidth")!==-1&&i&&(r.minWidth=`${i}px`)}return r}),n]};function ie(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),n.push.apply(n,o)}return n}function se(t){for(var e=1;e=0&&n.left>=0&&n.bottom>n.top&&n.right>n.left?n:null}function Xo(t,e,n,o){var r=y.clone(t),i={width:e.width,height:e.height};return o.adjustX&&r.left=n.left&&r.left+i.width>n.right&&(i.width-=r.left+i.width-n.right),o.adjustX&&r.left+i.width>n.right&&(r.left=Math.max(n.right-i.width,n.left)),o.adjustY&&r.top=n.top&&r.top+i.height>n.bottom&&(i.height-=r.top+i.height-n.bottom),o.adjustY&&r.top+i.height>n.bottom&&(r.top=Math.max(n.bottom-i.height,n.top)),y.mix(r,i)}function Gt(t){var e,n,o;if(!y.isWindow(t)&&t.nodeType!==9)e=y.offset(t),n=y.outerWidth(t),o=y.outerHeight(t);else{var r=y.getWindow(t);e={left:y.getWindowScrollLeft(r),top:y.getWindowScrollTop(r)},n=y.viewportWidth(r),o=y.viewportHeight(r)}return e.width=n,e.height=o,e}function he(t,e){var n=e.charAt(0),o=e.charAt(1),r=t.width,i=t.height,s=t.left,a=t.top;return n==="c"?a+=i/2:n==="b"&&(a+=i),o==="c"?s+=r/2:o==="r"&&(s+=r),{left:s,top:a}}function ht(t,e,n,o,r){var i=he(e,n[1]),s=he(t,n[0]),a=[s.left-i.left,s.top-i.top];return{left:Math.round(t.left-a[0]+o[0]-r[0]),top:Math.round(t.top-a[1]+o[1]-r[1])}}function ve(t,e,n){return t.leftn.right}function ge(t,e,n){return t.topn.bottom}function Yo(t,e,n){return t.left>n.right||t.left+e.widthn.bottom||t.top+e.height=n.right||o.top>=n.bottom}function qt(t,e,n){var o=n.target||e,r=Gt(o),i=!Go(o,n.overflow&&n.overflow.alwaysByViewport);return en(t,r,n,i)}qt.__getOffsetParent=Wt;qt.__getVisibleRectForElement=Ut;function qo(t,e,n){var o,r,i=y.getDocument(t),s=i.defaultView||i.parentWindow,a=y.getWindowScrollLeft(s),u=y.getWindowScrollTop(s),l=y.viewportWidth(s),p=y.viewportHeight(s);"pageX"in e?o=e.pageX:o=a+e.clientX,"pageY"in e?r=e.pageY:r=u+e.clientY;var d={left:o,top:r,width:0,height:0},c=o>=0&&o<=a+l&&r>=0&&r<=u+p,f=[n.points[0],"cc"];return en(t,d,se(se({},n),{},{points:f}),c)}function Ko(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 Zo(t,e){t!==document.activeElement&&tt(e,t)&&typeof t.focus=="function"&&t.focus()}function be(t,e){let n=null,o=null;function r(s){let[{target:a}]=s;if(!document.documentElement.contains(a))return;const{width:u,height:l}=a.getBoundingClientRect(),p=Math.floor(u),d=Math.floor(l);(n!==p||o!==d)&&Promise.resolve().then(()=>{e({width:p,height:d})}),n=p,o=d}const i=new co(r);return t&&i.observe(t),()=>{i.disconnect()}}const Jo=(t,e)=>{let n=!1,o=null;function r(){clearTimeout(o)}function i(s){if(!n||s===!0){if(t()===!1)return;n=!0,r(),o=setTimeout(()=>{n=!1},e.value)}else r(),o=setTimeout(()=>{n=!1,i()},e.value)}return[i,()=>{n=!1,r()}]};function Qo(){this.__data__=[],this.size=0}function nn(t,e){return t===e||t!==t&&e!==e}function At(t,e){for(var n=t.length;n--;)if(nn(t[n][0],e))return n;return-1}var tr=Array.prototype,er=tr.splice;function nr(t){var e=this.__data__,n=At(e,t);if(n<0)return!1;var o=e.length-1;return n==o?e.pop():er.call(e,n,1),--this.size,!0}function or(t){var e=this.__data__,n=At(e,t);return n<0?void 0:e[n][1]}function rr(t){return At(this.__data__,t)>-1}function ir(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 W(t){var e=-1,n=t==null?0:t.length;for(this.clear();++ea))return!1;var l=i.get(t),p=i.get(e);if(l&&p)return l==e&&p==t;var d=-1,c=!0,f=n&Br?new Ct:void 0;for(i.set(t,e),i.set(e,t);++d-1&&t%1==0&&t{const{disabled:c,target:f,align:h,onAlign:m}=t;if(!c&&f&&i.value){const P=i.value;let w;const b=Se(f),O=Ae(f);r.value.element=b,r.value.point=O,r.value.align=h;const{activeElement:A}=document;return b&&jn(b)?w=qt(P,b,h):O&&(w=qo(P,O,h)),Zo(A,P),m&&w&&m(P,w),!0}return!1},z(()=>t.monitorBufferTime)),u=k({cancel:()=>{}}),l=k({cancel:()=>{}}),p=()=>{const c=t.target,f=Se(c),h=Ae(c);i.value!==l.value.element&&(l.value.cancel(),l.value.element=i.value,l.value.cancel=be(i.value,s)),(r.value.element!==f||!Ko(r.value.point,h)||!wi(r.value.align,t.align))&&(s(),u.value.element!==f&&(u.value.cancel(),u.value.element=f,u.value.cancel=be(f,s)))};He(()=>{Ht(()=>{p()})}),vn(()=>{Ht(()=>{p()})}),G(()=>t.disabled,c=>{c?a():s()},{immediate:!0,flush:"post"});const d=k(null);return G(()=>t.monitorWindowResize,c=>{c?d.value||(d.value=it(window,"resize",s)):d.value&&(d.value.remove(),d.value=null)},{flush:"post"}),gn(()=>{u.value.cancel(),l.value.cancel(),d.value&&d.value.remove(),a()}),n({forceAlign:()=>s(!0)}),()=>{const c=o==null?void 0:o.default();return c?wt(c[0],{ref:i},!0,!0):null}}}),Ti=q({compatConfig:{MODE:3},name:"PopupInner",inheritAttrs:!1,props:kt,emits:["mouseenter","mouseleave","mousedown","touchstart","align"],setup(t,e){let{expose:n,attrs:o,slots:r}=e;const i=$(),s=$(),a=$(),[u,l]=Oo(bn(t,"stretch")),p=()=>{t.stretch&&l(t.getRootDomNode())},d=$(!1);let c;G(()=>t.visible,C=>{clearTimeout(c),C?c=setTimeout(()=>{d.value=t.visible}):d.value=!1},{immediate:!0});const[f,h]=_o(d,p),m=$(),P=()=>t.point?t.point:t.getRootDomNode,w=()=>{var C;(C=i.value)===null||C===void 0||C.forceAlign()},b=(C,H)=>{var M;const D=t.getClassNameFromAlign(H),v=a.value;a.value!==D&&(a.value=D),f.value==="align"&&(v!==D?Promise.resolve().then(()=>{w()}):h(()=>{var _;(_=m.value)===null||_===void 0||_.call(m)}),(M=t.onAlign)===null||M===void 0||M.call(t,C,H))},O=z(()=>{const C=typeof t.animation=="object"?t.animation:Ne(t);return["onAfterEnter","onAfterLeave"].forEach(H=>{const M=C[H];C[H]=D=>{h(),f.value="stable",M==null||M(D)}}),C}),A=()=>new Promise(C=>{m.value=C});G([O,f],()=>{!O.value&&f.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&&(f.value==="align"||f.value==="stable"))});return()=>{var C;const{zIndex:H,align:M,prefixCls:D,destroyPopupOnHide:v,onMouseenter:_,onMouseleave:L,onTouchstart:E=()=>{},onMousedown:B}=t,S=f.value,R=[g(g({},u.value),{zIndex:H,opacity:S==="motion"||S==="stable"||!d.value?null:0,pointerEvents:!d.value&&S!=="stable"?"none":null}),o.style];let K=Be((C=r.default)===null||C===void 0?void 0:C.call(r,{visible:t.visible}));K.length>1&&(K=x("div",{class:`${D}-content`},[K]));const j=nt(D,o.class,a.value,!t.arrow&&`${D}-arrow-hidden`),Et=d.value||!t.visible?mn(O.value.name,O.value):{};return x(jt,X(X({ref:s},Et),{},{onBeforeEnter:A}),{default:()=>!v||t.visible?Re(x(Oi,{target:P(),key:"popup",ref:i,monitorWindowResize:!0,disabled:N.value,align:M,onAlign:b},{default:()=>x("div",{class:j,onMouseenter:_,onMouseleave:L,onMousedown:Jt(B,["capture"]),[st?"onTouchstartPassive":"onTouchstart"]:Jt(E,["capture"]),style:R},[K])}),[[yn,d.value]]):null})}}}),Pi=q({compatConfig:{MODE:3},name:"Popup",inheritAttrs:!1,props:yo,setup(t,e){let{attrs:n,slots:o,expose:r}=e;const i=$(!1),s=$(!1),a=$(),u=$();return G([()=>t.visible,()=>t.mobile],()=>{i.value=t.visible,t.visible&&t.mobile&&(s.value=!0)},{immediate:!0,flush:"post"}),r({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:i.value}),p=s.value?x(bo,X(X({},l),{},{mobile:t.mobile,ref:a}),{default:o.default}):x(Ti,X(X({},l),{},{ref:a}),{default:o.default});return x("div",{ref:u},[x(Ue,l,null),p])}}});function Ci(t,e,n){return n?t[0]===e[0]:t[0]===e[0]&&t[1]===e[1]}function Me(t,e,n){const o=t[e]||{};return g(g({},o),n)}function xi(t,e,n,o){const{points:r}=n,i=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(wn(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,r=n.length;o{const{popupPlacement:r,popupAlign:i,builtinPlacements:s}=t;return r&&s?Me(s,r,i):i}),n=$(null),o=r=>{n.value=r};return{vcTriggerContext:Sn("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,Ai.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(){Cn("vcTriggerContext",{onPopupMouseDown:this.onPopupMouseDown,onPopupMouseenter:this.onPopupMouseenter,onPopupMouseleave:this.onPopupMouseleave}),xn(this)},deactivated(){this.setPopupVisible(!1)},mounted(){this.$nextTick(()=>{this.updatedCal()})},updated(){this.$nextTick(()=>{this.updatedCal()})},beforeUnmount(){this.clearDelayTimer(),this.clearOutsideHandler(),clearTimeout(this.mouseDownTimeout),Y.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=it(n,"mousedown",this.onDocumentClick)),this.touchOutsideHandler||(n=n||t.getDocument(this.getRootDomNode()),this.touchOutsideHandler=it(n,"touchstart",this.onDocumentClick,st?{passive:!1}:!1)),!this.contextmenuOutsideHandler1&&this.isContextmenuToShow()&&(n=n||t.getDocument(this.getRootDomNode()),this.contextmenuOutsideHandler1=it(n,"scroll",this.onContextmenuClose)),!this.contextmenuOutsideHandler2&&this.isContextmenuToShow()&&(this.contextmenuOutsideHandler2=it(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:r}=this.$props;if(r){const i=((e=(t=this.triggerRef)===null||t===void 0?void 0:t.$el)===null||e===void 0?void 0:e.nodeName)==="#comment"?null:ft(this.triggerRef);return ft(r(i))}try{const i=((o=(n=this.triggerRef)===null||n===void 0?void 0:n.$el)===null||o===void 0?void 0:o.nodeName)==="#comment"?null:ft(this.triggerRef);if(i)return i}catch{}return ft(this)},handleGetPopupClassFromAlign(t){const e=[],n=this.$props,{popupPlacement:o,builtinPlacements:r,prefixCls:i,alignPoint:s,getPopupClassNameFromAlign:a}=n;return o&&r&&e.push(xi(r,i,t,s)),a&&e.push(a(t)),e.join(" ")},getPopupAlign(){const t=this.$props,{popupPlacement:e,popupAlign:n,builtinPlacements:o}=t;return e&&o?Me(o,e,n):n},getComponent(){const t={};this.isMouseEnterToShow()&&(t.onMouseenter=this.onPopupMouseenter),this.isMouseLeaveToHide()&&(t.onMouseleave=this.onPopupMouseleave),t.onMousedown=this.onPopupMouseDown,t[st?"onTouchstartPassive":"onTouchstart"]=this.onPopupMouseDown;const{handleGetPopupClassFromAlign:e,getRootDomNode:n,$attrs:o}=this,{prefixCls:r,destroyPopupOnHide:i,popupClassName:s,popupAnimation:a,popupTransitionName:u,popupStyle:l,mask:p,maskAnimation:d,maskTransitionName:c,zIndex:f,stretch:h,alignPoint:m,mobile:P,arrow:w,forceRender:b}=this.$props,{sPopupVisible:O,point:A}=this.$data,N=g(g({prefixCls:r,arrow:w,destroyPopupOnHide:i,visible:O,point:m?A:null,align:this.align,animation:a,getClassNameFromAlign:e,stretch:h,getRootDomNode:n,mask:p,zIndex:f,transitionName:u,maskAnimation:d,maskTransitionName:c,class:s,style:l,onAlign:o.onPopupAlign||Ye},t),{ref:this.setPopupRef,mobile:P,forceRender:b});return x(Pi,N,{default:this.$slots.popup||(()=>Pn(this,"popup"))})},attachParent(t){Y.cancel(this.attachId);const{getPopupContainer:e,getDocument:n}=this.$props,o=this.getRootDomNode();let r;e?(o||e.length===0)&&(r=e(o)):r=n(this.getRootDomNode()).body,r?r.appendChild(t):this.attachId=Y(()=>{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:r}=this;this.clearDelayTimer(),o!==t&&(Tn(this,"popupVisible")||this.setState({sPopupVisible:t,prevPopupVisible:o}),r&&r(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 r=n?{pageX:n.pageX,pageY:n.pageY}:null;this.delayTimer=setTimeout(()=>{this.setPopupVisible(t,r),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=Qt(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=Ie(_n(this)),{alignPoint:n,getPopupContainer:o}=this.$props,r=e[0];this.childOriginEvents=Qt(r);const i={key:"trigger"};this.isContextmenuToShow()?i.onContextmenu=this.onContextmenu:i.onContextmenu=this.createTwoChains("onContextmenu"),this.isClickToHide()||this.isClickToShow()?(i.onClick=this.onClick,i.onMousedown=this.onMousedown,i[st?"onTouchstartPassive":"onTouchstart"]=this.onTouchstart):(i.onClick=this.createTwoChains("onClick"),i.onMousedown=this.createTwoChains("onMousedown"),i[st?"onTouchstartPassive":"onTouchstart"]=this.createTwoChains("onTouchstart")),this.isMouseEnterToShow()?(i.onMouseenter=this.onMouseenter,n&&(i.onMousemove=this.onMouseMove)):i.onMouseenter=this.createTwoChains("onMouseenter"),this.isMouseLeaveToHide()?i.onMouseleave=this.onMouseleave:i.onMouseleave=this.createTwoChains("onMouseleave"),this.isFocusToShow()||this.isBlurToHide()?(i.onFocus=this.onFocus,i.onBlur=this.onBlur):(i.onFocus=this.createTwoChains("onFocus"),i.onBlur=l=>{l&&(!l.relatedTarget||!tt(l.target,l.relatedTarget))&&this.createTwoChains("onBlur")(l)});const s=nt(r&&r.props&&r.props.class,t.class);s&&(i.class=s);const a=wt(r,g(g({},i),{ref:"triggerRef"}),!0,!0),u=x(Xn,{key:"portal",getContainer:o&&(()=>o(this.getRootDomNode())),didUpdate:this.handlePortalUpdate,visible:this.$data.sPopupVisible},{default:this.getComponent});return x(On,null,[a,u])}}),I={adjustX:1,adjustY:1},V=[0,0],sn={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}},Ei={prefixCls:String,id:String,overlayInnerStyle:T.any},$i=q({compatConfig:{MODE:3},name:"TooltipContent",props:Ei,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 Di=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 r=0,o=Object.getOwnPropertySymbols(t);r{}),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:r}=e;const i=$(),s=()=>{const{prefixCls:p,tipId:d,overlayInnerStyle:c}=t;return[t.arrow?x("div",{class:`${p}-arrow`,key:"arrow"},[Mn(n,t,"arrowContent")]):null,x($i,{key:"content",prefixCls:p,id:d,overlayInnerStyle:c},{overlay:n.overlay})]};r({getPopupDomNode:()=>i.value.getPopupDomNode(),triggerDOM:i,forcePopupAlign:()=>{var p;return(p=i.value)===null||p===void 0?void 0:p.forcePopupAlign()}});const u=$(!1),l=$(!1);return An(()=>{const{destroyTooltipOnHide:p}=t;if(typeof p=="boolean")u.value=p;else if(p&&typeof p=="object"){const{keepParent:d}=p;u.value=d===!0,l.value=d===!1}}),()=>{const{overlayClassName:p,trigger:d,mouseEnterDelay:c,mouseLeaveDelay:f,overlayStyle:h,prefixCls:m,afterVisibleChange:P,transitionName:w,animation:b,placement:O,align:A,destroyTooltipOnHide:N,defaultVisible:C}=t,H=Di(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:p,prefixCls:m,action:d,builtinPlacements:sn,popupPlacement:O,popupAlign:A,afterPopupVisibleChange:P,popupTransitionName:w,popupAnimation:b,defaultPopupVisible:C,destroyPopupOnHide:u.value,autoDestroy:l.value,mouseLeaveDelay:f,popupStyle:h,mouseEnterDelay:c},M),o),{onPopupVisibleChange:t.onVisibleChange||Ee,onPopupAlign:t.onPopupAlign||Ee,ref:i,arrow:!!t.arrow,popup:s()});return x(Mi,D,{default:n.default})}}}),Ni=()=>({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}),Bi={adjustX:1,adjustY:1},$e={adjustX:0,adjustY:0},Hi=[0,0];function De(t){return typeof t=="boolean"?t?Bi:$e:g(g({},$e),t)}function Ii(t){const{arrowWidth:e=4,horizontalArrowShift:n=16,verticalArrowShift:o=8,autoAdjustOverflow:r,arrowPointAtCenter:i}=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]=i?g(g({},s[a]),{overflow:De(r),targetOffset:Hi}):g(g({},sn[a]),{overflow:De(r)}),s[a].ignoreShake=!0}),s}function Vi(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];for(let e=0,n=t.length;e`${t}-inverse`),zi=["success","processing","error","default","warning"];function Fi(t){return(arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0)?[...Li,...Tt].includes(t):Tt.includes(t)}function ts(t){return zi.includes(t)}function Wi(t,e){const n=Fi(e),o=nt({[`${t}-${e}`]:e&&n}),r={},i={};return e&&!n&&(r.background=e,i["--antd-arrow-background-color"]=e),{className:o,overlayStyle:r,arrowStyle:i}}function yt(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return t.map(n=>`${e}${n}`).join(",")}const an=8;function ji(t){const e=an,{sizePopupArrow:n,contentRadius:o,borderRadiusOuter:r,limitVerticalRadius:i}=t,s=n/2-Math.ceil(r*(Math.sqrt(2)-1)),a=(o>12?o+2:12)-s,u=i?e-s:a;return{dropdownArrowOffset:a,dropdownArrowOffsetVertical:u}}function ki(t,e){const{componentCls:n,sizePopupArrow:o,marginXXS:r,borderRadiusXS:i,borderRadiusOuter:s,boxShadowPopoverArrow:a}=t,{colorBg:u,showArrowCls:l,contentRadius:p=t.borderRadiusLG,limitVerticalRadius:d}=e,{dropdownArrowOffsetVertical:c,dropdownArrowOffset:f}=ji({sizePopupArrow:o,contentRadius:p,borderRadiusOuter:s,limitVerticalRadius:d}),h=o/2+r;return{[n]:{[`${n}-arrow`]:[g(g({position:"absolute",zIndex:1,display:"block"},fo(o,i,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:f}},[`&-placement-topRight ${n}-arrow`]:{right:{_skip_check_:!0,value:f}},[[`&-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:f}},[`&-placement-bottomRight ${n}-arrow`]:{right:{_skip_check_:!0,value:f}},[[`&-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:c},[`&-placement-leftBottom ${n}-arrow`]:{bottom:c},[[`&-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:c},[`&-placement-rightBottom ${n}-arrow`]:{bottom:c},[yt(["&-placement-topLeft","&-placement-top","&-placement-topRight"].map(m=>m+=":not(&-arrow-hidden)"),l)]:{paddingBottom:h},[yt(["&-placement-bottomLeft","&-placement-bottom","&-placement-bottomRight"].map(m=>m+=":not(&-arrow-hidden)"),l)]:{paddingTop:h},[yt(["&-placement-leftTop","&-placement-left","&-placement-leftBottom"].map(m=>m+=":not(&-arrow-hidden)"),l)]:{paddingRight:{_skip_check_:!0,value:h}},[yt(["&-placement-rightTop","&-placement-right","&-placement-rightBottom"].map(m=>m+=":not(&-arrow-hidden)"),l)]:{paddingLeft:{_skip_check_:!0,value:h}}}}}const Xi=t=>{const{componentCls:e,tooltipMaxWidth:n,tooltipColor:o,tooltipBg:r,tooltipBorderRadius:i,zIndexPopup:s,controlHeight:a,boxShadowSecondary:u,paddingSM:l,paddingXS:p,tooltipRadiusOuter:d}=t;return[{[e]:g(g(g(g({},$n(t)),{position:"absolute",zIndex:s,display:"block","&":[{width:"max-content"},{width:"intrinsic"}],maxWidth:n,visibility:"visible","&-hidden":{display:"none"},"--antd-arrow-background-color":r,[`${e}-inner`]:{minWidth:a,minHeight:a,padding:`${l/2}px ${p}px`,color:o,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:r,borderRadius:i,boxShadow:u},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${e}-inner`]:{borderRadius:Math.min(i,an)}},[`${e}-content`]:{position:"relative"}}),po(t,(c,f)=>{let{darkColor:h}=f;return{[`&${e}-${c}`]:{[`${e}-inner`]:{backgroundColor:h},[`${e}-arrow`]:{"--antd-arrow-background-color":h}}}})),{"&-rtl":{direction:"rtl"}})},ki(Ve(t,{borderRadiusOuter:d}),{colorBg:"var(--antd-arrow-background-color)",showArrowCls:"",contentRadius:i,limitVerticalRadius:!0}),{[`${e}-pure`]:{position:"relative",maxWidth:"none"}}]},Yi=(t,e)=>En("Tooltip",o=>{if((e==null?void 0:e.value)===!1)return[];const{borderRadius:r,colorTextLightSolid:i,colorBgDefault:s,borderRadiusOuter:a}=o,u=Ve(o,{tooltipMaxWidth:250,tooltipColor:i,tooltipBorderRadius:r,tooltipBg:s,tooltipRadiusOuter:a>4?4:a});return[Xi(u),Yn(o,"zoom-big-fast")]},o=>{let{zIndexPopupBase:r,colorBgSpotlight:i}=o;return{zIndexPopup:r+70,colorBgDefault:i}})(t),Ui=(t,e)=>{const n={},o=g({},t);return e.forEach(r=>{t&&r in t&&(n[r]=t[r],delete o[r])}),{picked:n,omitted:o}},Gi=()=>g(g({},Ni()),{title:T.any}),es=()=>({trigger:"hover",align:{},placement:"top",mouseEnterDelay:.1,mouseLeaveDelay:.1,arrowPointAtCenter:!1,autoAdjustOverflow:!0}),qi=q({compatConfig:{MODE:3},name:"ATooltip",inheritAttrs:!1,props:kn(Gi(),{trigger:"hover",align:{},placement:"top",mouseEnterDelay:.1,mouseLeaveDelay:.1,arrowPointAtCenter:!1,autoAdjustOverflow:!0}),slots:Object,setup(t,e){let{slots:n,emit:o,attrs:r,expose:i}=e;const{prefixCls:s,getPopupContainer:a,direction:u,rootPrefixCls:l}=Dn("tooltip",t),p=z(()=>{var v;return(v=t.open)!==null&&v!==void 0?v:t.visible}),d=k(Vi([t.open,t.visible])),c=k();let f;G(p,v=>{Y.cancel(f),f=Y(()=>{d.value=!!v})});const h=()=>{var v;const _=(v=t.title)!==null&&v!==void 0?v:n.title;return!_&&_!==0},m=v=>{const _=h();p.value===void 0&&(d.value=_?!1:v),_||(o("update:visible",v),o("visibleChange",v),o("update:open",v),o("openChange",v))};i({getPopupDomNode:()=>c.value.getPopupDomNode(),open:d,forcePopupAlign:()=>{var v;return(v=c.value)===null||v===void 0?void 0:v.forcePopupAlign()}});const w=z(()=>{var v;const{builtinPlacements:_,autoAdjustOverflow:L,arrow:E,arrowPointAtCenter:B}=t;let S=B;return typeof E=="object"&&(S=(v=E.pointAtCenter)!==null&&v!==void 0?v:B),_||Ii({arrowPointAtCenter:S,autoAdjustOverflow:L})}),b=v=>v||v==="",O=v=>{const _=v.type;if(typeof _=="object"&&v.props&&((_.__ANT_BUTTON===!0||_==="button")&&b(v.props.disabled)||_.__ANT_SWITCH===!0&&(b(v.props.disabled)||b(v.props.loading))||_.__ANT_RADIO===!0&&b(v.props.disabled))){const{picked:L,omitted:E}=Ui(Hn(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,_;return(v=t.title)!==null&&v!==void 0?v:(_=n.title)===null||_===void 0?void 0:_.call(n)},N=(v,_)=>{const L=w.value,E=Object.keys(L).find(B=>{var S,R;return L[B].points[0]===((S=_.points)===null||S===void 0?void 0:S[0])&&L[B].points[1]===((R=_.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-_.offset[1]}px`:(E.indexOf("Top")>=0||E.indexOf("bottom")>=0)&&(S.top=`${-_.offset[1]}px`),E.indexOf("left")>=0||E.indexOf("Right")>=0?S.left=`${B.width-_.offset[0]}px`:(E.indexOf("right")>=0||E.indexOf("Left")>=0)&&(S.left=`${-_.offset[0]}px`),v.style.transformOrigin=`${S.left} ${S.top}`}},C=z(()=>Wi(s.value,t.color)),H=z(()=>r["data-popover-inject"]),[M,D]=Yi(s,z(()=>!H.value));return()=>{var v,_;const{openClassName:L,overlayClassName:E,overlayStyle:B,overlayInnerStyle:S}=t;let R=(_=Ie((v=n.default)===null||v===void 0?void 0:v.call(n)))!==null&&_!==void 0?_:null;R=R.length===1?R[0]:R;let K=d.value;if(p.value===void 0&&h()&&(K=!1),!R)return null;const j=O(Rn(R)&&!Nn(R)?R:x("span",null,[R])),Kt=nt({[L||`${s.value}-open`]:!0,[j.props&&j.props.class]:j.props&&j.props.class}),Et=nt(E,{[`${s.value}-rtl`]:u.value==="rtl"},C.value.className,D.value),ln=g(g({},C.value.overlayStyle),S),un=C.value.arrowStyle,cn=g(g(g({},r),t),{prefixCls:s.value,arrow:!!t.arrow,getPopupContainer:a==null?void 0:a.value,builtinPlacements:w.value,visible:K,ref:c,overlayClassName:Et,overlayStyle:g(g({},un),B),overlayInnerStyle:ln,onVisibleChange:m,onPopupAlign:N,transitionName:Bn(l.value,"zoom-big-fast",t.transitionName)});return M(x(Ri,cn,{default:()=>[d.value?wt(j,{class:Kt}):j],arrowContent:()=>x("span",{class:`${s.value}-arrow-content`},null),overlay:A}))}}}),ns=In(qi);class os{constructor(e){Zt(this,"baseUrl");this.baseUrl=e}async request(e,n={}){const o=`${this.baseUrl}${e}`,r={...n.headers};n.body instanceof FormData||(r["Content-Type"]="application/json");const i=await fetch(o,{...n,headers:r});if(!i.ok){const s={status:i.status,message:i.statusText};try{const a=await i.json();s.detail=a.detail??a.message,s.message=s.detail??s.message}catch{}throw s}return i.json()}createWebSocket(e){const n=window.location.protocol==="https:"?"wss:":"ws:",o=window.location.host;return new WebSocket(`${n}//${o}${this.baseUrl}${e}`)}}export{ns as A,os as B,Q as M,Tt as P,U as S,Mi as T,we as U,Ni as a,ji as b,Ii as c,Si as d,po as e,Vi as f,ki as g,ts as h,Fi as i,fi as j,pi as k,ri as l,Jr as m,Qr as n,Te as o,rn as p,Ct as q,fo as r,ei as s,es as t,Rr as u,wi as v,li as w,nn as x,Ir as y,co as z}; +var fn=Object.defineProperty;var pn=(t,e,n)=>e in t?fn(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n;var Zt=(t,e,n)=>pn(t,typeof e!="symbol"?e+"":e,n);import{z as g,P as T,c as x,aG as jt,J as X,p as Re,bB as Ne,bC as dn,d as q,M as Be,R as nt,r as k,i as G,E as He,T as hn,K as $,f as z,bf as tt,G as Ht,ay as vn,a2 as gn,aP as mn,v as yn,a0 as Jt,a6 as bn,bD as wn,aR as Ie,bb as _n,bE as Qt,F as On,b0 as Tn,b1 as Pn,V as ft,C as Cn,bg as xn,B as Sn,L as An,H as Mn,aK as pt,x as En,y as Ve,A as $n,D as Dn,aF as Rn,bF as Nn,aJ as Bn,bd as Hn,aH as In}from"./index-MxXYiP1e.js";import{w as Y,l as Vn,M as Le,r as Ln,S as te,b as bt,m as zn,j as It,q as ze,a as Fn,s as Wn,g as ee,f as ne,c as jn,i as kn}from"./_plugin-vue_export-helper-CbNEYfqg.js";import{c as wt,d as it,s as st,P as Xn,i as Yn}from"./zoom-BTwsIXn4.js";var Fe=function(){if(typeof Map<"u")return Map;function t(e,n){var o=-1;return e.some(function(r,i){return r[0]===n?(o=i,!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),r=this.__entries__[o];return r&&r[1]},e.prototype.set=function(n,o){var r=t(this.__entries__,n);~r?this.__entries__[r][1]=o:this.__entries__.push([n,o])},e.prototype.delete=function(n){var o=this.__entries__,r=t(o,n);~r&&o.splice(r,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 r=0,i=this.__entries__;r0},t.prototype.connect_=function(){!Vt||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),Jn?(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,r=Zn.some(function(i){return!!~o.indexOf(i)});r&&this.refresh()},t.getInstance=function(){return this.instance_||(this.instance_=new t),this.instance_},t.instance_=null,t}(),We=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 ao(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 lo(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}(),ke=typeof WeakMap<"u"?new WeakMap:new Fe,Xe=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=Qn.getInstance(),o=new uo(e,n,this);ke.set(this,o)}return t}();["observe","unobserve","disconnect"].forEach(function(t){Xe.prototype[t]=function(){var e;return(e=ke.get(this))[t].apply(e,arguments)}});var co=function(){return typeof _t.ResizeObserver<"u"?_t.ResizeObserver:Xe}();const Tt=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"],fo=(t,e,n,o,r)=>{const i=t/2,s=0,a=i,u=n*1/Math.sqrt(2),l=i-n*(1-1/Math.sqrt(2)),p=i-e*(1/Math.sqrt(2)),d=n*(Math.sqrt(2)-1)+e*(1/Math.sqrt(2)),c=2*i-p,f=d,h=2*i-u,m=l,P=2*i-s,w=a,b=i*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:b,height:b,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${e}px 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:r,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*i-O}px 100%, ${O}px 100%)`,`path('M ${s} ${a} A ${n} ${n} 0 0 0 ${u} ${l} L ${p} ${d} A ${e} ${e} 0 0 1 ${c} ${f} L ${h} ${m} A ${n} ${n} 0 0 0 ${P} ${w} Z')`]},content:'""'}}};function po(t,e){return Tt.reduce((n,o)=>{const r=t[`${o}-1`],i=t[`${o}-3`],s=t[`${o}-6`],a=t[`${o}-7`];return g(g({},n),e(o,{lightColor:r,lightBorderColor:i,darkColor:s,textColor:a}))},{})}function ho(){return""}function vo(t){return t?t.ownerDocument:window.document}function Ye(){}const go=()=>({action:T.oneOfType([T.string,T.arrayOf(T.string)]).def([]),showAction:T.any.def([]),hideAction:T.any.def([]),getPopupClassNameFromAlign:T.any.def(ho),onPopupVisibleChange:Function,afterPopupVisibleChange:T.func.def(Ye),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(vo),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}),kt={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}},mo=g(g({},kt),{mobile:{type:Object}}),yo=g(g({},kt),{mask:Boolean,mobile:{type:Object},maskAnimation:String,maskTransitionName:String});function Ue(t){const{prefixCls:e,visible:n,zIndex:o,mask:r,maskAnimation:i,maskTransitionName:s}=t;if(!r)return null;let a={};return(s||i)&&(a=Ne({prefixCls:e,transitionName:s,animation:i})),x(jt,X({appear:!0},a),{default:()=>[Re(x("div",{style:{zIndex:o},class:`${e}-mask`},null),[[dn("if"),n]])]})}Ue.displayName="Mask";const bo=q({compatConfig:{MODE:3},name:"MobilePopupInner",inheritAttrs:!1,props:mo,emits:["mouseenter","mouseleave","mousedown","touchstart","align"],setup(t,e){let{expose:n,slots:o}=e;const r=k();return n({forceAlign:()=>{},getElement:()=>r.value}),()=>{var i;const{zIndex:s,visible:a,prefixCls:u,mobile:{popupClassName:l,popupStyle:p,popupMotion:d={},popupRender:c}={}}=t,f=g({zIndex:s},p);let h=Be((i=o.default)===null||i===void 0?void 0:i.call(o));h.length>1&&(h=x("div",{class:`${u}-content`},[h])),c&&(h=c(h));const m=nt(u,l);return x(jt,X({ref:r},d),{default:()=>[a?x("div",{class:m,style:f},[h]):null]})}}});var wo=function(t,e,n,o){function r(i){return i instanceof n?i:new n(function(s){s(i)})}return new(n||(n=Promise))(function(i,s){function a(p){try{l(o.next(p))}catch(d){s(d)}}function u(p){try{l(o.throw(p))}catch(d){s(d)}}function l(p){p.done?i(p.value):r(p.value).then(a,u)}l((o=o.apply(t,e||[])).next())})};const re=["measure","align",null,"motion"],_o=(t,e)=>{const n=$(null),o=$(),r=$(!1);function i(u){r.value||(n.value=u)}function s(){Y.cancel(o.value)}function a(u){s(),o.value=Y(()=>{let l=n.value;switch(n.value){case"align":l="motion";break;case"motion":l="stable";break}i(l),u==null||u()})}return G(t,()=>{i("measure")},{immediate:!0,flush:"post"}),He(()=>{G(n,()=>{switch(n.value){case"measure":e();break}n.value&&(o.value=Y(()=>wo(void 0,void 0,void 0,function*(){const u=re.indexOf(n.value),l=re[u+1];l&&u!==-1&&i(l)})))},{immediate:!0,flush:"post"})}),hn(()=>{r.value=!0,s()}),[n,a]},Oo=t=>{const e=$({width:0,height:0});function n(r){e.value={width:r.offsetWidth,height:r.offsetHeight}}return[z(()=>{const r={};if(t.value){const{width:i,height:s}=e.value;t.value.indexOf("height")!==-1&&s?r.height=`${s}px`:t.value.indexOf("minHeight")!==-1&&s&&(r.minHeight=`${s}px`),t.value.indexOf("width")!==-1&&i?r.width=`${i}px`:t.value.indexOf("minWidth")!==-1&&i&&(r.minWidth=`${i}px`)}return r}),n]};function ie(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),n.push.apply(n,o)}return n}function se(t){for(var e=1;e=0&&n.left>=0&&n.bottom>n.top&&n.right>n.left?n:null}function Xo(t,e,n,o){var r=y.clone(t),i={width:e.width,height:e.height};return o.adjustX&&r.left=n.left&&r.left+i.width>n.right&&(i.width-=r.left+i.width-n.right),o.adjustX&&r.left+i.width>n.right&&(r.left=Math.max(n.right-i.width,n.left)),o.adjustY&&r.top=n.top&&r.top+i.height>n.bottom&&(i.height-=r.top+i.height-n.bottom),o.adjustY&&r.top+i.height>n.bottom&&(r.top=Math.max(n.bottom-i.height,n.top)),y.mix(r,i)}function Gt(t){var e,n,o;if(!y.isWindow(t)&&t.nodeType!==9)e=y.offset(t),n=y.outerWidth(t),o=y.outerHeight(t);else{var r=y.getWindow(t);e={left:y.getWindowScrollLeft(r),top:y.getWindowScrollTop(r)},n=y.viewportWidth(r),o=y.viewportHeight(r)}return e.width=n,e.height=o,e}function he(t,e){var n=e.charAt(0),o=e.charAt(1),r=t.width,i=t.height,s=t.left,a=t.top;return n==="c"?a+=i/2:n==="b"&&(a+=i),o==="c"?s+=r/2:o==="r"&&(s+=r),{left:s,top:a}}function ht(t,e,n,o,r){var i=he(e,n[1]),s=he(t,n[0]),a=[s.left-i.left,s.top-i.top];return{left:Math.round(t.left-a[0]+o[0]-r[0]),top:Math.round(t.top-a[1]+o[1]-r[1])}}function ve(t,e,n){return t.leftn.right}function ge(t,e,n){return t.topn.bottom}function Yo(t,e,n){return t.left>n.right||t.left+e.widthn.bottom||t.top+e.height=n.right||o.top>=n.bottom}function qt(t,e,n){var o=n.target||e,r=Gt(o),i=!Go(o,n.overflow&&n.overflow.alwaysByViewport);return en(t,r,n,i)}qt.__getOffsetParent=Wt;qt.__getVisibleRectForElement=Ut;function qo(t,e,n){var o,r,i=y.getDocument(t),s=i.defaultView||i.parentWindow,a=y.getWindowScrollLeft(s),u=y.getWindowScrollTop(s),l=y.viewportWidth(s),p=y.viewportHeight(s);"pageX"in e?o=e.pageX:o=a+e.clientX,"pageY"in e?r=e.pageY:r=u+e.clientY;var d={left:o,top:r,width:0,height:0},c=o>=0&&o<=a+l&&r>=0&&r<=u+p,f=[n.points[0],"cc"];return en(t,d,se(se({},n),{},{points:f}),c)}function Ko(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 Zo(t,e){t!==document.activeElement&&tt(e,t)&&typeof t.focus=="function"&&t.focus()}function be(t,e){let n=null,o=null;function r(s){let[{target:a}]=s;if(!document.documentElement.contains(a))return;const{width:u,height:l}=a.getBoundingClientRect(),p=Math.floor(u),d=Math.floor(l);(n!==p||o!==d)&&Promise.resolve().then(()=>{e({width:p,height:d})}),n=p,o=d}const i=new co(r);return t&&i.observe(t),()=>{i.disconnect()}}const Jo=(t,e)=>{let n=!1,o=null;function r(){clearTimeout(o)}function i(s){if(!n||s===!0){if(t()===!1)return;n=!0,r(),o=setTimeout(()=>{n=!1},e.value)}else r(),o=setTimeout(()=>{n=!1,i()},e.value)}return[i,()=>{n=!1,r()}]};function Qo(){this.__data__=[],this.size=0}function nn(t,e){return t===e||t!==t&&e!==e}function At(t,e){for(var n=t.length;n--;)if(nn(t[n][0],e))return n;return-1}var tr=Array.prototype,er=tr.splice;function nr(t){var e=this.__data__,n=At(e,t);if(n<0)return!1;var o=e.length-1;return n==o?e.pop():er.call(e,n,1),--this.size,!0}function or(t){var e=this.__data__,n=At(e,t);return n<0?void 0:e[n][1]}function rr(t){return At(this.__data__,t)>-1}function ir(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 W(t){var e=-1,n=t==null?0:t.length;for(this.clear();++ea))return!1;var l=i.get(t),p=i.get(e);if(l&&p)return l==e&&p==t;var d=-1,c=!0,f=n&Br?new Ct:void 0;for(i.set(t,e),i.set(e,t);++d-1&&t%1==0&&t{const{disabled:c,target:f,align:h,onAlign:m}=t;if(!c&&f&&i.value){const P=i.value;let w;const b=Se(f),O=Ae(f);r.value.element=b,r.value.point=O,r.value.align=h;const{activeElement:A}=document;return b&&jn(b)?w=qt(P,b,h):O&&(w=qo(P,O,h)),Zo(A,P),m&&w&&m(P,w),!0}return!1},z(()=>t.monitorBufferTime)),u=k({cancel:()=>{}}),l=k({cancel:()=>{}}),p=()=>{const c=t.target,f=Se(c),h=Ae(c);i.value!==l.value.element&&(l.value.cancel(),l.value.element=i.value,l.value.cancel=be(i.value,s)),(r.value.element!==f||!Ko(r.value.point,h)||!wi(r.value.align,t.align))&&(s(),u.value.element!==f&&(u.value.cancel(),u.value.element=f,u.value.cancel=be(f,s)))};He(()=>{Ht(()=>{p()})}),vn(()=>{Ht(()=>{p()})}),G(()=>t.disabled,c=>{c?a():s()},{immediate:!0,flush:"post"});const d=k(null);return G(()=>t.monitorWindowResize,c=>{c?d.value||(d.value=it(window,"resize",s)):d.value&&(d.value.remove(),d.value=null)},{flush:"post"}),gn(()=>{u.value.cancel(),l.value.cancel(),d.value&&d.value.remove(),a()}),n({forceAlign:()=>s(!0)}),()=>{const c=o==null?void 0:o.default();return c?wt(c[0],{ref:i},!0,!0):null}}}),Ti=q({compatConfig:{MODE:3},name:"PopupInner",inheritAttrs:!1,props:kt,emits:["mouseenter","mouseleave","mousedown","touchstart","align"],setup(t,e){let{expose:n,attrs:o,slots:r}=e;const i=$(),s=$(),a=$(),[u,l]=Oo(bn(t,"stretch")),p=()=>{t.stretch&&l(t.getRootDomNode())},d=$(!1);let c;G(()=>t.visible,C=>{clearTimeout(c),C?c=setTimeout(()=>{d.value=t.visible}):d.value=!1},{immediate:!0});const[f,h]=_o(d,p),m=$(),P=()=>t.point?t.point:t.getRootDomNode,w=()=>{var C;(C=i.value)===null||C===void 0||C.forceAlign()},b=(C,H)=>{var M;const D=t.getClassNameFromAlign(H),v=a.value;a.value!==D&&(a.value=D),f.value==="align"&&(v!==D?Promise.resolve().then(()=>{w()}):h(()=>{var _;(_=m.value)===null||_===void 0||_.call(m)}),(M=t.onAlign)===null||M===void 0||M.call(t,C,H))},O=z(()=>{const C=typeof t.animation=="object"?t.animation:Ne(t);return["onAfterEnter","onAfterLeave"].forEach(H=>{const M=C[H];C[H]=D=>{h(),f.value="stable",M==null||M(D)}}),C}),A=()=>new Promise(C=>{m.value=C});G([O,f],()=>{!O.value&&f.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&&(f.value==="align"||f.value==="stable"))});return()=>{var C;const{zIndex:H,align:M,prefixCls:D,destroyPopupOnHide:v,onMouseenter:_,onMouseleave:L,onTouchstart:E=()=>{},onMousedown:B}=t,S=f.value,R=[g(g({},u.value),{zIndex:H,opacity:S==="motion"||S==="stable"||!d.value?null:0,pointerEvents:!d.value&&S!=="stable"?"none":null}),o.style];let K=Be((C=r.default)===null||C===void 0?void 0:C.call(r,{visible:t.visible}));K.length>1&&(K=x("div",{class:`${D}-content`},[K]));const j=nt(D,o.class,a.value,!t.arrow&&`${D}-arrow-hidden`),Et=d.value||!t.visible?mn(O.value.name,O.value):{};return x(jt,X(X({ref:s},Et),{},{onBeforeEnter:A}),{default:()=>!v||t.visible?Re(x(Oi,{target:P(),key:"popup",ref:i,monitorWindowResize:!0,disabled:N.value,align:M,onAlign:b},{default:()=>x("div",{class:j,onMouseenter:_,onMouseleave:L,onMousedown:Jt(B,["capture"]),[st?"onTouchstartPassive":"onTouchstart"]:Jt(E,["capture"]),style:R},[K])}),[[yn,d.value]]):null})}}}),Pi=q({compatConfig:{MODE:3},name:"Popup",inheritAttrs:!1,props:yo,setup(t,e){let{attrs:n,slots:o,expose:r}=e;const i=$(!1),s=$(!1),a=$(),u=$();return G([()=>t.visible,()=>t.mobile],()=>{i.value=t.visible,t.visible&&t.mobile&&(s.value=!0)},{immediate:!0,flush:"post"}),r({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:i.value}),p=s.value?x(bo,X(X({},l),{},{mobile:t.mobile,ref:a}),{default:o.default}):x(Ti,X(X({},l),{},{ref:a}),{default:o.default});return x("div",{ref:u},[x(Ue,l,null),p])}}});function Ci(t,e,n){return n?t[0]===e[0]:t[0]===e[0]&&t[1]===e[1]}function Me(t,e,n){const o=t[e]||{};return g(g({},o),n)}function xi(t,e,n,o){const{points:r}=n,i=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(wn(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,r=n.length;o{const{popupPlacement:r,popupAlign:i,builtinPlacements:s}=t;return r&&s?Me(s,r,i):i}),n=$(null),o=r=>{n.value=r};return{vcTriggerContext:Sn("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,Ai.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(){Cn("vcTriggerContext",{onPopupMouseDown:this.onPopupMouseDown,onPopupMouseenter:this.onPopupMouseenter,onPopupMouseleave:this.onPopupMouseleave}),xn(this)},deactivated(){this.setPopupVisible(!1)},mounted(){this.$nextTick(()=>{this.updatedCal()})},updated(){this.$nextTick(()=>{this.updatedCal()})},beforeUnmount(){this.clearDelayTimer(),this.clearOutsideHandler(),clearTimeout(this.mouseDownTimeout),Y.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=it(n,"mousedown",this.onDocumentClick)),this.touchOutsideHandler||(n=n||t.getDocument(this.getRootDomNode()),this.touchOutsideHandler=it(n,"touchstart",this.onDocumentClick,st?{passive:!1}:!1)),!this.contextmenuOutsideHandler1&&this.isContextmenuToShow()&&(n=n||t.getDocument(this.getRootDomNode()),this.contextmenuOutsideHandler1=it(n,"scroll",this.onContextmenuClose)),!this.contextmenuOutsideHandler2&&this.isContextmenuToShow()&&(this.contextmenuOutsideHandler2=it(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:r}=this.$props;if(r){const i=((e=(t=this.triggerRef)===null||t===void 0?void 0:t.$el)===null||e===void 0?void 0:e.nodeName)==="#comment"?null:ft(this.triggerRef);return ft(r(i))}try{const i=((o=(n=this.triggerRef)===null||n===void 0?void 0:n.$el)===null||o===void 0?void 0:o.nodeName)==="#comment"?null:ft(this.triggerRef);if(i)return i}catch{}return ft(this)},handleGetPopupClassFromAlign(t){const e=[],n=this.$props,{popupPlacement:o,builtinPlacements:r,prefixCls:i,alignPoint:s,getPopupClassNameFromAlign:a}=n;return o&&r&&e.push(xi(r,i,t,s)),a&&e.push(a(t)),e.join(" ")},getPopupAlign(){const t=this.$props,{popupPlacement:e,popupAlign:n,builtinPlacements:o}=t;return e&&o?Me(o,e,n):n},getComponent(){const t={};this.isMouseEnterToShow()&&(t.onMouseenter=this.onPopupMouseenter),this.isMouseLeaveToHide()&&(t.onMouseleave=this.onPopupMouseleave),t.onMousedown=this.onPopupMouseDown,t[st?"onTouchstartPassive":"onTouchstart"]=this.onPopupMouseDown;const{handleGetPopupClassFromAlign:e,getRootDomNode:n,$attrs:o}=this,{prefixCls:r,destroyPopupOnHide:i,popupClassName:s,popupAnimation:a,popupTransitionName:u,popupStyle:l,mask:p,maskAnimation:d,maskTransitionName:c,zIndex:f,stretch:h,alignPoint:m,mobile:P,arrow:w,forceRender:b}=this.$props,{sPopupVisible:O,point:A}=this.$data,N=g(g({prefixCls:r,arrow:w,destroyPopupOnHide:i,visible:O,point:m?A:null,align:this.align,animation:a,getClassNameFromAlign:e,stretch:h,getRootDomNode:n,mask:p,zIndex:f,transitionName:u,maskAnimation:d,maskTransitionName:c,class:s,style:l,onAlign:o.onPopupAlign||Ye},t),{ref:this.setPopupRef,mobile:P,forceRender:b});return x(Pi,N,{default:this.$slots.popup||(()=>Pn(this,"popup"))})},attachParent(t){Y.cancel(this.attachId);const{getPopupContainer:e,getDocument:n}=this.$props,o=this.getRootDomNode();let r;e?(o||e.length===0)&&(r=e(o)):r=n(this.getRootDomNode()).body,r?r.appendChild(t):this.attachId=Y(()=>{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:r}=this;this.clearDelayTimer(),o!==t&&(Tn(this,"popupVisible")||this.setState({sPopupVisible:t,prevPopupVisible:o}),r&&r(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 r=n?{pageX:n.pageX,pageY:n.pageY}:null;this.delayTimer=setTimeout(()=>{this.setPopupVisible(t,r),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=Qt(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=Ie(_n(this)),{alignPoint:n,getPopupContainer:o}=this.$props,r=e[0];this.childOriginEvents=Qt(r);const i={key:"trigger"};this.isContextmenuToShow()?i.onContextmenu=this.onContextmenu:i.onContextmenu=this.createTwoChains("onContextmenu"),this.isClickToHide()||this.isClickToShow()?(i.onClick=this.onClick,i.onMousedown=this.onMousedown,i[st?"onTouchstartPassive":"onTouchstart"]=this.onTouchstart):(i.onClick=this.createTwoChains("onClick"),i.onMousedown=this.createTwoChains("onMousedown"),i[st?"onTouchstartPassive":"onTouchstart"]=this.createTwoChains("onTouchstart")),this.isMouseEnterToShow()?(i.onMouseenter=this.onMouseenter,n&&(i.onMousemove=this.onMouseMove)):i.onMouseenter=this.createTwoChains("onMouseenter"),this.isMouseLeaveToHide()?i.onMouseleave=this.onMouseleave:i.onMouseleave=this.createTwoChains("onMouseleave"),this.isFocusToShow()||this.isBlurToHide()?(i.onFocus=this.onFocus,i.onBlur=this.onBlur):(i.onFocus=this.createTwoChains("onFocus"),i.onBlur=l=>{l&&(!l.relatedTarget||!tt(l.target,l.relatedTarget))&&this.createTwoChains("onBlur")(l)});const s=nt(r&&r.props&&r.props.class,t.class);s&&(i.class=s);const a=wt(r,g(g({},i),{ref:"triggerRef"}),!0,!0),u=x(Xn,{key:"portal",getContainer:o&&(()=>o(this.getRootDomNode())),didUpdate:this.handlePortalUpdate,visible:this.$data.sPopupVisible},{default:this.getComponent});return x(On,null,[a,u])}}),I={adjustX:1,adjustY:1},V=[0,0],sn={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}},Ei={prefixCls:String,id:String,overlayInnerStyle:T.any},$i=q({compatConfig:{MODE:3},name:"TooltipContent",props:Ei,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 Di=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 r=0,o=Object.getOwnPropertySymbols(t);r{}),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:r}=e;const i=$(),s=()=>{const{prefixCls:p,tipId:d,overlayInnerStyle:c}=t;return[t.arrow?x("div",{class:`${p}-arrow`,key:"arrow"},[Mn(n,t,"arrowContent")]):null,x($i,{key:"content",prefixCls:p,id:d,overlayInnerStyle:c},{overlay:n.overlay})]};r({getPopupDomNode:()=>i.value.getPopupDomNode(),triggerDOM:i,forcePopupAlign:()=>{var p;return(p=i.value)===null||p===void 0?void 0:p.forcePopupAlign()}});const u=$(!1),l=$(!1);return An(()=>{const{destroyTooltipOnHide:p}=t;if(typeof p=="boolean")u.value=p;else if(p&&typeof p=="object"){const{keepParent:d}=p;u.value=d===!0,l.value=d===!1}}),()=>{const{overlayClassName:p,trigger:d,mouseEnterDelay:c,mouseLeaveDelay:f,overlayStyle:h,prefixCls:m,afterVisibleChange:P,transitionName:w,animation:b,placement:O,align:A,destroyTooltipOnHide:N,defaultVisible:C}=t,H=Di(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:p,prefixCls:m,action:d,builtinPlacements:sn,popupPlacement:O,popupAlign:A,afterPopupVisibleChange:P,popupTransitionName:w,popupAnimation:b,defaultPopupVisible:C,destroyPopupOnHide:u.value,autoDestroy:l.value,mouseLeaveDelay:f,popupStyle:h,mouseEnterDelay:c},M),o),{onPopupVisibleChange:t.onVisibleChange||Ee,onPopupAlign:t.onPopupAlign||Ee,ref:i,arrow:!!t.arrow,popup:s()});return x(Mi,D,{default:n.default})}}}),Ni=()=>({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}),Bi={adjustX:1,adjustY:1},$e={adjustX:0,adjustY:0},Hi=[0,0];function De(t){return typeof t=="boolean"?t?Bi:$e:g(g({},$e),t)}function Ii(t){const{arrowWidth:e=4,horizontalArrowShift:n=16,verticalArrowShift:o=8,autoAdjustOverflow:r,arrowPointAtCenter:i}=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]=i?g(g({},s[a]),{overflow:De(r),targetOffset:Hi}):g(g({},sn[a]),{overflow:De(r)}),s[a].ignoreShake=!0}),s}function Vi(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];for(let e=0,n=t.length;e`${t}-inverse`),zi=["success","processing","error","default","warning"];function Fi(t){return(arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0)?[...Li,...Tt].includes(t):Tt.includes(t)}function ts(t){return zi.includes(t)}function Wi(t,e){const n=Fi(e),o=nt({[`${t}-${e}`]:e&&n}),r={},i={};return e&&!n&&(r.background=e,i["--antd-arrow-background-color"]=e),{className:o,overlayStyle:r,arrowStyle:i}}function yt(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return t.map(n=>`${e}${n}`).join(",")}const an=8;function ji(t){const e=an,{sizePopupArrow:n,contentRadius:o,borderRadiusOuter:r,limitVerticalRadius:i}=t,s=n/2-Math.ceil(r*(Math.sqrt(2)-1)),a=(o>12?o+2:12)-s,u=i?e-s:a;return{dropdownArrowOffset:a,dropdownArrowOffsetVertical:u}}function ki(t,e){const{componentCls:n,sizePopupArrow:o,marginXXS:r,borderRadiusXS:i,borderRadiusOuter:s,boxShadowPopoverArrow:a}=t,{colorBg:u,showArrowCls:l,contentRadius:p=t.borderRadiusLG,limitVerticalRadius:d}=e,{dropdownArrowOffsetVertical:c,dropdownArrowOffset:f}=ji({sizePopupArrow:o,contentRadius:p,borderRadiusOuter:s,limitVerticalRadius:d}),h=o/2+r;return{[n]:{[`${n}-arrow`]:[g(g({position:"absolute",zIndex:1,display:"block"},fo(o,i,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:f}},[`&-placement-topRight ${n}-arrow`]:{right:{_skip_check_:!0,value:f}},[[`&-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:f}},[`&-placement-bottomRight ${n}-arrow`]:{right:{_skip_check_:!0,value:f}},[[`&-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:c},[`&-placement-leftBottom ${n}-arrow`]:{bottom:c},[[`&-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:c},[`&-placement-rightBottom ${n}-arrow`]:{bottom:c},[yt(["&-placement-topLeft","&-placement-top","&-placement-topRight"].map(m=>m+=":not(&-arrow-hidden)"),l)]:{paddingBottom:h},[yt(["&-placement-bottomLeft","&-placement-bottom","&-placement-bottomRight"].map(m=>m+=":not(&-arrow-hidden)"),l)]:{paddingTop:h},[yt(["&-placement-leftTop","&-placement-left","&-placement-leftBottom"].map(m=>m+=":not(&-arrow-hidden)"),l)]:{paddingRight:{_skip_check_:!0,value:h}},[yt(["&-placement-rightTop","&-placement-right","&-placement-rightBottom"].map(m=>m+=":not(&-arrow-hidden)"),l)]:{paddingLeft:{_skip_check_:!0,value:h}}}}}const Xi=t=>{const{componentCls:e,tooltipMaxWidth:n,tooltipColor:o,tooltipBg:r,tooltipBorderRadius:i,zIndexPopup:s,controlHeight:a,boxShadowSecondary:u,paddingSM:l,paddingXS:p,tooltipRadiusOuter:d}=t;return[{[e]:g(g(g(g({},$n(t)),{position:"absolute",zIndex:s,display:"block","&":[{width:"max-content"},{width:"intrinsic"}],maxWidth:n,visibility:"visible","&-hidden":{display:"none"},"--antd-arrow-background-color":r,[`${e}-inner`]:{minWidth:a,minHeight:a,padding:`${l/2}px ${p}px`,color:o,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:r,borderRadius:i,boxShadow:u},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${e}-inner`]:{borderRadius:Math.min(i,an)}},[`${e}-content`]:{position:"relative"}}),po(t,(c,f)=>{let{darkColor:h}=f;return{[`&${e}-${c}`]:{[`${e}-inner`]:{backgroundColor:h},[`${e}-arrow`]:{"--antd-arrow-background-color":h}}}})),{"&-rtl":{direction:"rtl"}})},ki(Ve(t,{borderRadiusOuter:d}),{colorBg:"var(--antd-arrow-background-color)",showArrowCls:"",contentRadius:i,limitVerticalRadius:!0}),{[`${e}-pure`]:{position:"relative",maxWidth:"none"}}]},Yi=(t,e)=>En("Tooltip",o=>{if((e==null?void 0:e.value)===!1)return[];const{borderRadius:r,colorTextLightSolid:i,colorBgDefault:s,borderRadiusOuter:a}=o,u=Ve(o,{tooltipMaxWidth:250,tooltipColor:i,tooltipBorderRadius:r,tooltipBg:s,tooltipRadiusOuter:a>4?4:a});return[Xi(u),Yn(o,"zoom-big-fast")]},o=>{let{zIndexPopupBase:r,colorBgSpotlight:i}=o;return{zIndexPopup:r+70,colorBgDefault:i}})(t),Ui=(t,e)=>{const n={},o=g({},t);return e.forEach(r=>{t&&r in t&&(n[r]=t[r],delete o[r])}),{picked:n,omitted:o}},Gi=()=>g(g({},Ni()),{title:T.any}),es=()=>({trigger:"hover",align:{},placement:"top",mouseEnterDelay:.1,mouseLeaveDelay:.1,arrowPointAtCenter:!1,autoAdjustOverflow:!0}),qi=q({compatConfig:{MODE:3},name:"ATooltip",inheritAttrs:!1,props:kn(Gi(),{trigger:"hover",align:{},placement:"top",mouseEnterDelay:.1,mouseLeaveDelay:.1,arrowPointAtCenter:!1,autoAdjustOverflow:!0}),slots:Object,setup(t,e){let{slots:n,emit:o,attrs:r,expose:i}=e;const{prefixCls:s,getPopupContainer:a,direction:u,rootPrefixCls:l}=Dn("tooltip",t),p=z(()=>{var v;return(v=t.open)!==null&&v!==void 0?v:t.visible}),d=k(Vi([t.open,t.visible])),c=k();let f;G(p,v=>{Y.cancel(f),f=Y(()=>{d.value=!!v})});const h=()=>{var v;const _=(v=t.title)!==null&&v!==void 0?v:n.title;return!_&&_!==0},m=v=>{const _=h();p.value===void 0&&(d.value=_?!1:v),_||(o("update:visible",v),o("visibleChange",v),o("update:open",v),o("openChange",v))};i({getPopupDomNode:()=>c.value.getPopupDomNode(),open:d,forcePopupAlign:()=>{var v;return(v=c.value)===null||v===void 0?void 0:v.forcePopupAlign()}});const w=z(()=>{var v;const{builtinPlacements:_,autoAdjustOverflow:L,arrow:E,arrowPointAtCenter:B}=t;let S=B;return typeof E=="object"&&(S=(v=E.pointAtCenter)!==null&&v!==void 0?v:B),_||Ii({arrowPointAtCenter:S,autoAdjustOverflow:L})}),b=v=>v||v==="",O=v=>{const _=v.type;if(typeof _=="object"&&v.props&&((_.__ANT_BUTTON===!0||_==="button")&&b(v.props.disabled)||_.__ANT_SWITCH===!0&&(b(v.props.disabled)||b(v.props.loading))||_.__ANT_RADIO===!0&&b(v.props.disabled))){const{picked:L,omitted:E}=Ui(Hn(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,_;return(v=t.title)!==null&&v!==void 0?v:(_=n.title)===null||_===void 0?void 0:_.call(n)},N=(v,_)=>{const L=w.value,E=Object.keys(L).find(B=>{var S,R;return L[B].points[0]===((S=_.points)===null||S===void 0?void 0:S[0])&&L[B].points[1]===((R=_.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-_.offset[1]}px`:(E.indexOf("Top")>=0||E.indexOf("bottom")>=0)&&(S.top=`${-_.offset[1]}px`),E.indexOf("left")>=0||E.indexOf("Right")>=0?S.left=`${B.width-_.offset[0]}px`:(E.indexOf("right")>=0||E.indexOf("Left")>=0)&&(S.left=`${-_.offset[0]}px`),v.style.transformOrigin=`${S.left} ${S.top}`}},C=z(()=>Wi(s.value,t.color)),H=z(()=>r["data-popover-inject"]),[M,D]=Yi(s,z(()=>!H.value));return()=>{var v,_;const{openClassName:L,overlayClassName:E,overlayStyle:B,overlayInnerStyle:S}=t;let R=(_=Ie((v=n.default)===null||v===void 0?void 0:v.call(n)))!==null&&_!==void 0?_:null;R=R.length===1?R[0]:R;let K=d.value;if(p.value===void 0&&h()&&(K=!1),!R)return null;const j=O(Rn(R)&&!Nn(R)?R:x("span",null,[R])),Kt=nt({[L||`${s.value}-open`]:!0,[j.props&&j.props.class]:j.props&&j.props.class}),Et=nt(E,{[`${s.value}-rtl`]:u.value==="rtl"},C.value.className,D.value),ln=g(g({},C.value.overlayStyle),S),un=C.value.arrowStyle,cn=g(g(g({},r),t),{prefixCls:s.value,arrow:!!t.arrow,getPopupContainer:a==null?void 0:a.value,builtinPlacements:w.value,visible:K,ref:c,overlayClassName:Et,overlayStyle:g(g({},un),B),overlayInnerStyle:ln,onVisibleChange:m,onPopupAlign:N,transitionName:Bn(l.value,"zoom-big-fast",t.transitionName)});return M(x(Ri,cn,{default:()=>[d.value?wt(j,{class:Kt}):j],arrowContent:()=>x("span",{class:`${s.value}-arrow-content`},null),overlay:A}))}}}),ns=In(qi);class os{constructor(e){Zt(this,"baseUrl");this.baseUrl=e}async request(e,n={}){const o=e.startsWith("/api/")?e:`${this.baseUrl}${e}`,r={...n.headers};n.body instanceof FormData||(r["Content-Type"]="application/json");const i=await fetch(o,{...n,headers:r});if(!i.ok){const s={status:i.status,message:i.statusText};try{const a=await i.json();s.detail=a.detail??a.message,s.message=s.detail??s.message}catch{}throw s}return i.json()}createWebSocket(e){const n=window.location.protocol==="https:"?"wss:":"ws:",o=window.location.host;return new WebSocket(`${n}//${o}${this.baseUrl}${e}`)}}export{ns as A,os as B,Q as M,Tt as P,U as S,Mi as T,we as U,Ni as a,ji as b,Ii as c,Si as d,po as e,Vi as f,ki as g,ts as h,Fi as i,fi as j,pi as k,ri as l,Jr as m,Qr as n,Te as o,rn as p,Ct as q,fo as r,ei as s,es as t,Rr as u,wi as v,li as w,nn as x,Ir as y,co as z}; diff --git a/src/agentkit/server/static/assets/chat-DurNpMLt.js b/src/agentkit/server/static/assets/chat-DurNpMLt.js deleted file mode 100644 index 96bfa3e..0000000 --- a/src/agentkit/server/static/assets/chat-DurNpMLt.js +++ /dev/null @@ -1 +0,0 @@ -import{c as _,I,a4 as q,r as v,f as w}from"./index-Cdm90D30.js";import{B as x}from"./base-BzUb4EcV.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/chat-_tit2gm5.js b/src/agentkit/server/static/assets/chat-_tit2gm5.js new file mode 100644 index 0000000..b8199c5 --- /dev/null +++ b/src/agentkit/server/static/assets/chat-_tit2gm5.js @@ -0,0 +1 @@ +import{c as $,I as P,a4 as B,r as m,f as M}from"./index-MxXYiP1e.js";import{B as V}from"./base--VGJiuPH.js";var F={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 I(n){for(var t=1;t{const n=m([]),t=m(null),s=m(!1),i=m(!1),o=m(null),v=m([]),_=M(()=>n.value.find(e=>e.id===t.value)),j=M(()=>{var e;return((e=_.value)==null?void 0:e.messages)??[]});async function z(){try{const e=await y.getConversations();n.value=e}catch(e){console.error("Failed to load conversations:",e)}}function N(e){t.value=e,v.value=[]}function b(){const e={id:h(),title:"新对话",messages:[],created_at:new Date().toISOString(),updated_at:new Date().toISOString()};n.value.unshift(e),t.value=e.id,v.value=[]}async function C(e,r){t.value||b();const a=t.value,c={id:h(),role:"user",content:e,timestamp:new Date().toISOString()};S(a,c);const u={id:h(),role:"assistant",content:"",timestamp:new Date().toISOString(),status:"pending"};S(a,u),s.value=!0;try{const d={message:e,conversation_id:a,sources:r},f=await y.chat(d);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 p=n.value.find(l=>l.id===a);p&&p.messages.length<=2&&(p.title=e.length>20?`${e.substring(0,20)}...`:e)}catch(d){g(a,u.id,{content:`请求失败: ${d instanceof Error?d.message:"未知错误"}`,status:"completed"})}finally{s.value=!1}}function E(e,r){if(t.value||b(),!o.value||o.value.readyState!==WebSocket.OPEN){C(e,r);return}const a=t.value,c={id:h(),role:"user",content:e,timestamp:new Date().toISOString()};S(a,c);const u={id:h(),role:"assistant",content:"",timestamp:new Date().toISOString(),status:"pending"};S(a,u),s.value=!0,v.value=[];const d={type:"chat",message:e,sources:r,conversation_id:a};o.value.send(JSON.stringify(d))}function w(){if(o.value&&o.value.readyState===WebSocket.OPEN)return;const e=y.createWebSocket();e.onopen=()=>{i.value=!0,console.log("WebSocket connected")},e.onmessage=r=>{try{const a=JSON.parse(r.data);console.log("[Chat WS] Received:",a.type,a),x(a)}catch(a){console.error("Failed to parse WebSocket message:",a)}},e.onclose=()=>{i.value=!1,console.log("WebSocket disconnected"),setTimeout(()=>{(!o.value||o.value.readyState===WebSocket.CLOSED)&&w()},3e3)},e.onerror=r=>{console.error("WebSocket error:",r),i.value=!1},o.value=e}function q(){o.value&&(o.value.close(),o.value=null,i.value=!1)}function x(e){var d,f,p;const r=t.value;if(!r)return;const a=n.value.find(l=>l.id===r);if(!a)return;const c=[...a.messages].reverse().find(l=>l.role==="assistant"),u=e.data??e;switch(e.type){case"routing":c&&g(r,c.id,{matched_skill:e.skill,confidence:e.confidence,routing_method:e.method}),v.value.push(`路由至: ${e.skill} (置信度: ${(e.confidence*100).toFixed(1)}%)`);break;case"step":{const l=u,O=l.event_type==="final_answer"?"生成最终回答":l.event_type==="tool_call"?`调用工具: ${((d=l.data)==null?void 0:d.tool_name)||((f=l.data)==null?void 0:f.name)||"#"}`:l.event_type==="thinking"?"思考中...":`步骤 ${l.step||""}: ${l.event_type||""}`;if(v.value.push(O),l.event_type==="final_answer"&&c){const k=((p=l.data)==null?void 0:p.output)||"";k&&g(r,c.id,{content:(c.content||"")+k})}break}case"result":{const l=u.message||u.content||"";if(c){const O=l||c.content||"";g(r,c.id,{content:O,status:"completed"})}s.value=!1,v.value=[];break}case"error":c&&g(r,c.id,{content:`错误: ${u.message||"未知错误"}`,status:"completed"}),s.value=!1,v.value=[];break}}function S(e,r){const a=n.value.find(c=>c.id===e);a&&(a.messages.push(r),a.updated_at=new Date().toISOString())}function g(e,r,a){const c=n.value.find(d=>d.id===e);if(!c)return;const u=c.messages.find(d=>d.id===r);u&&Object.assign(u,a)}return{conversations:n,currentConversationId:t,isLoading:s,isWsConnected:i,streamingSteps:v,currentConversation:_,currentMessages:j,loadConversations:z,selectConversation:N,createConversation:b,sendMessage:C,sendWsMessage:E,connectWebSocket:w,disconnectWebSocket:q}});export{D as C,A as M,U as u}; diff --git a/src/agentkit/server/static/assets/index-CQzZ-h-2.js b/src/agentkit/server/static/assets/index-0ftJ_VhH.js similarity index 97% rename from src/agentkit/server/static/assets/index-CQzZ-h-2.js rename to src/agentkit/server/static/assets/index-0ftJ_VhH.js index 65e346a..ff77ea7 100644 --- a/src/agentkit/server/static/assets/index-CQzZ-h-2.js +++ b/src/agentkit/server/static/assets/index-0ftJ_VhH.js @@ -1,4 +1,4 @@ -import{x as he,y as me,z as o,A as Pe,aU as N,aV as ve,d as y,c as i,R as x,aN as ze,D as B,J as w,f as G,be as E,M as Ee,b5 as pe,aE as Le,P as L,H as U,au as J}from"./index-Cdm90D30.js";import{T as fe}from"./index-DWEEelzT.js";import{e as De}from"./index-zQkkOnqV.js";import{d as Ge}from"./devWarning-Ct6dVMcH.js";import{i as ae}from"./_plugin-vue_export-helper-BpJgGuqH.js";import{o as be}from"./FormItemContext-C7duC9vx.js";import{b as We}from"./zoom-DFzZ47uz.js";const ke=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),{[` +import{x as he,y as me,z as o,A as Pe,aU as N,aV as ve,d as y,c as i,R as x,aN as ze,D as B,J as w,f as G,be as E,M as Ee,b5 as pe,aE as Le,P as L,H as U,au as J}from"./index-MxXYiP1e.js";import{T as fe}from"./index-CUHLv4kD.js";import{e as De}from"./index-C-JDvA85.js";import{d as Ge}from"./devWarning-Ct6dVMcH.js";import{i as ae}from"./_plugin-vue_export-helper-CbNEYfqg.js";import{o as be}from"./FormItemContext-CIZixMRP.js";import{b as We}from"./zoom-BTwsIXn4.js";const ke=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}`}}})},_e=e=>{const{cardPaddingBase:t,colorBorderSecondary:n,cardShadow:a,lineWidth:r}=e;return{width:"33.33%",padding:t,border:0,borderRadius:0,boxShadow:` diff --git a/src/agentkit/server/static/assets/index-Bw7-qyYZ.js b/src/agentkit/server/static/assets/index-6F6eWDOC.js similarity index 99% rename from src/agentkit/server/static/assets/index-Bw7-qyYZ.js rename to src/agentkit/server/static/assets/index-6F6eWDOC.js index ffa0544..2a7e113 100644 --- a/src/agentkit/server/static/assets/index-Bw7-qyYZ.js +++ b/src/agentkit/server/static/assets/index-6F6eWDOC.js @@ -1,4 +1,4 @@ -import{E as rt,K as te,B as it,f as C,C as at,x as ot,y as Ut,z as T,d as ve,D as Le,T as Kt,c as L,J as B,r as Fe,ax as $e,R as fe,aF as Ln,ba as Rn,I as Nn,aI as Vn,F as qe,aL as Dn,A as Xt,i as ue,aT as Wn,aG as Gn,aP as Bn,p as Hn,v as zn,aQ as Un,aR as Yt,L as ze,G as Qt,Q as Zt,W as Ue,P as he,aA as lt,a3 as Kn,ao as Xn,az as Yn,an as Qn,e as oe,br as Zn,aw as de,at as ye,aB as yt,av as Jn,aK as Ce,bs as kn,bt as er}from"./index-Cdm90D30.js";import{j as tr,k as Re,l as Jt,s as nr,m as rr,n as ir,U as bt,S as kt,o as ar,p as en,q as or,u as $t,A as lr,v as tn}from"./base-BzUb4EcV.js";import{e as sr,b as ur,f as nn,g as fr,o as cr,h as rn,j as st,k as an,t as Me,l as dr,m as on,n as ln,p as mr}from"./Dropdown-BfmL-5TH.js";import{d as ce,e as sn,a as ut,r as un,S as xt,f as ft,g as ct,h as fn,n as _e,j as gr,b as cn,i as hr}from"./_plugin-vue_export-helper-BpJgGuqH.js";import{p as dn,e as vr}from"./index-zQkkOnqV.js";import{u as pr,r as Ee}from"./responsiveObserve-Dze5mRNR.js";import{d as yr}from"./styleChecker-DuXayfgz.js";import{w as br}from"./devWarning-Ct6dVMcH.js";import{j as $r,k as xr,g as wr,c as Fr}from"./index-DUKU9Yum.js";import{z as mn}from"./zoom-DFzZ47uz.js";import{a as Sr,F as Or,u as Ar,b as Ke}from"./FormItemContext-C7duC9vx.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 X=getComputedStyle(E),J=parseInt(X.borderLeftWidth,10),ie=parseInt(X.borderTopWidth,10),Z=parseInt(X.borderRightWidth,10),w=parseInt(X.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:K/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+K/2)+W/2:a==="end"?q-I+Z+W:Ie(z,I,K,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-K/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 Xe(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=Xe(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 Ka=()=>{const e=te(!1);return rt(()=>{e.value=yr()}),e},Sn=Symbol("rowContextKey"),Xa=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=pr(),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)})}),Kt(()=>{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,lt||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 X=getComputedStyle(E),J=parseInt(X.borderLeftWidth,10),ie=parseInt(X.borderTopWidth,10),Z=parseInt(X.borderRightWidth,10),w=parseInt(X.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:K/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+K/2)+W/2:a==="end"?q-I+Z+W:Ie(z,I,K,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-K/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 Xe(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=Xe(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 Ka=()=>{const e=te(!1);return rt(()=>{e.value=yr()}),e},Sn=Symbol("rowContextKey"),Xa=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=pr(),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)})}),Kt(()=>{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{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"}}}]},O=t=>{const{componentCls:o}=t;return{[o]:H.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`}}}},U=b("Popover",t=>{const{colorBgElevated:o,colorText:r,wireframe:e}=t,a=S(t,{popoverBg:o,popoverColor:r,popoverPadding:12});return[L(a),O(a),e&&G(a),F(a,"zoom-big")]},t=>{let{zIndexPopupBase:o}=t;return{zIndexPopup:o+30,width:177}}),V=()=>d(d({},M()),{content:C(),title:C()}),X=T({compatConfig:{MODE:3},name:"APopover",inheritAttrs:!1,props:J(V(),d(d({},E()),{trigger:"hover",placement:"top",mouseEnterDelay:.1,mouseLeaveDelay:.1})),setup(t,o){let{expose:r,slots:e,attrs:a}=o;const s=N();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]=U(l),p=_(()=>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,P=!!(Array.isArray(v)?v.length:v),y=!!(Array.isArray(h)?h.length:v);return!P&&!y?null:f(I,null,[P&&f("div",{class:`${l.value}-title`},[v]),f("div",{class:`${l.value}-inner-content`},[h])])};return()=>{const n=z(t.overlayClassName,u.value);return g(f(R,x(x(x({},j(t,["title","content"])),a),{},{prefixCls:l.value,ref:s,overlayClassName:n,transitionName:D(p.value,"zoom-big",t.transitionName),"data-popover-inject":!0}),{title:m,default:e.default}))}}}),oo=B(X);export{oo as P}; +import{x as b,y as S,z as d,A as w,aH as B,d as T,U as k,D as A,R as z,c as f,J as x,aJ as D,r as N,f as _,aR as $,F as I,av as C}from"./index-MxXYiP1e.js";import{g as W,P as H,A as R,t as E,a as M}from"./base--VGJiuPH.js";import{o as j}from"./FormItemContext-CIZixMRP.js";import{i as F}from"./zoom-BTwsIXn4.js";import{i as J}from"./_plugin-vue_export-helper-CbNEYfqg.js";const L=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"}}}]},O=t=>{const{componentCls:o}=t;return{[o]:H.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`}}}},U=b("Popover",t=>{const{colorBgElevated:o,colorText:r,wireframe:e}=t,a=S(t,{popoverBg:o,popoverColor:r,popoverPadding:12});return[L(a),O(a),e&&G(a),F(a,"zoom-big")]},t=>{let{zIndexPopupBase:o}=t;return{zIndexPopup:o+30,width:177}}),V=()=>d(d({},M()),{content:C(),title:C()}),X=T({compatConfig:{MODE:3},name:"APopover",inheritAttrs:!1,props:J(V(),d(d({},E()),{trigger:"hover",placement:"top",mouseEnterDelay:.1,mouseLeaveDelay:.1})),setup(t,o){let{expose:r,slots:e,attrs:a}=o;const s=N();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]=U(l),p=_(()=>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,P=!!(Array.isArray(v)?v.length:v),y=!!(Array.isArray(h)?h.length:v);return!P&&!y?null:f(I,null,[P&&f("div",{class:`${l.value}-title`},[v]),f("div",{class:`${l.value}-inner-content`},[h])])};return()=>{const n=z(t.overlayClassName,u.value);return g(f(R,x(x(x({},j(t,["title","content"])),a),{},{prefixCls:l.value,ref:s,overlayClassName:n,transitionName:D(p.value,"zoom-big",t.transitionName),"data-popover-inject":!0}),{title:m,default:e.default}))}}}),oo=B(X);export{oo as P}; diff --git a/src/agentkit/server/static/assets/index-B9Cq1xD6.js b/src/agentkit/server/static/assets/index-BjhFFLnY.js similarity index 98% rename from src/agentkit/server/static/assets/index-B9Cq1xD6.js rename to src/agentkit/server/static/assets/index-BjhFFLnY.js index d8e0375..4e7d728 100644 --- a/src/agentkit/server/static/assets/index-B9Cq1xD6.js +++ b/src/agentkit/server/static/assets/index-BjhFFLnY.js @@ -1 +1 @@ -import{x as E,y as L,z as x,A as X,aN as M,d as P,D as _,K as G,i as A,T as H,c as r,J as I,aR as B,H as j,b5 as T,ba as N,P as O}from"./index-Cdm90D30.js";import{i as R}from"./_plugin-vue_export-helper-BpJgGuqH.js";function V(n,e,c){var t=c||{},i=t.noTrailing,m=i===void 0?!1:i,b=t.noLeading,y=b===void 0?!1:b,$=t.debounceMode,a=$===void 0?void 0:$,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?y?(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 K=new M("antSpinMove",{to:{opacity:1}}),J=new M("antRotate",{to:{transform:"rotate(405deg)"}}),U=n=>({[`${n.componentCls}`]:x(x({},X(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:K,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:J,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"}})}),q=E("Spin",n=>{const e=L(n,{spinDotDefault:n.colorTextDescription,spinDotSize:n.controlHeightLG/2,spinDotSizeSM:n.controlHeightLG*.35,spinDotSizeLG:n.controlHeight});return[U(e)]},{contentHeight:400});var Q=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=P({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,$]=q(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"}),H(()=>{o==null||o.cancel()}),()=>{var g,f;const{class:D}=c,w=Q(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={[$.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&&B(d).length){const l={[`${i.value}-container`]:!0,[`${i.value}-blur`]:a.value};return y(r("div",{class:[`${i.value}-nested-loading`,n.wrapperClassName,$.value]},[a.value&&r("div",{key:"loading"},[h]),r("div",{class:l,key:"container"},[d])]))}return y(h)}}});z.setDefaultIndicator=Z;z.install=function(n){return n.component(z.name,z),n};export{z as S}; +import{x as E,y as L,z as x,A as X,aN as M,d as P,D as _,K as G,i as A,T as H,c as r,J as I,aR as B,H as j,b5 as T,ba as N,P as O}from"./index-MxXYiP1e.js";import{i as R}from"./_plugin-vue_export-helper-CbNEYfqg.js";function V(n,e,c){var t=c||{},i=t.noTrailing,m=i===void 0?!1:i,b=t.noLeading,y=b===void 0?!1:b,$=t.debounceMode,a=$===void 0?void 0:$,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?y?(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 K=new M("antSpinMove",{to:{opacity:1}}),J=new M("antRotate",{to:{transform:"rotate(405deg)"}}),U=n=>({[`${n.componentCls}`]:x(x({},X(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:K,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:J,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"}})}),q=E("Spin",n=>{const e=L(n,{spinDotDefault:n.colorTextDescription,spinDotSize:n.controlHeightLG/2,spinDotSizeSM:n.controlHeightLG*.35,spinDotSizeLG:n.controlHeight});return[U(e)]},{contentHeight:400});var Q=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=P({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,$]=q(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"}),H(()=>{o==null||o.cancel()}),()=>{var g,f;const{class:D}=c,w=Q(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={[$.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&&B(d).length){const l={[`${i.value}-container`]:!0,[`${i.value}-blur`]:a.value};return y(r("div",{class:[`${i.value}-nested-loading`,n.wrapperClassName,$.value]},[a.value&&r("div",{key:"loading"},[h]),r("div",{class:l,key:"container"},[d])]))}return y(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/index-DBNRwHot.js b/src/agentkit/server/static/assets/index-BsO-BQWw.js similarity index 97% rename from src/agentkit/server/static/assets/index-DBNRwHot.js rename to src/agentkit/server/static/assets/index-BsO-BQWw.js index 8581ff1..1d8254a 100644 --- a/src/agentkit/server/static/assets/index-DBNRwHot.js +++ b/src/agentkit/server/static/assets/index-BsO-BQWw.js @@ -1 +1 @@ -import{x as _,y as E,z as P,A as O,bn as j,d as z,D as F,c as d,J as b,f as m,R as D,L as X,F as U,a1 as J,P as B,aY as K,K as V}from"./index-Cdm90D30.js";import{W as Y}from"./index-DlUg5G7X.js";import{e as q,i as G,h as Q}from"./base-BzUb4EcV.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"}}}},Z=o=>q(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}}},H=_("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=E(o,{tagFontSize:c,tagLineHeight:g,tagDefaultBg:C,tagDefaultColor:i,tagIconSize:a-2*r,tagPaddingHorizontal:8,tagBorderlessBg:o.colorFillTertiary});return[oo(n),Z(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]=H(e),C=n=>{const{checked:u}=o;r("update:checked",!u),r("change",!u),r("click",n)},i=m(()=>D(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:K(),"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]=H(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(()=>G(o.color)||Q(o.color)),A=m(()=>D(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})),M=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:W=!1}=o,k=()=>W?y?d("span",{class:`${e.value}-close-icon`,onClick:n},[y]):d(J,{class:`${e.value}-close-icon`,onClick:n},null):null,L={backgroundColor:$&&!u.value?$:void 0},T=w||null,x=(f=l.default)===null||f===void 0?void 0:f.call(l),N=T?d(U,null,[T,d("span",null,[x])]):x,R=o.onClick!==void 0,I=d("span",b(b({},a),{},{onClick:M,class:[A.value,a.class],style:[L,a.style]}),[N,k()]);return g(R?d(Y,null,{default:()=>[I]}):I)}}});v.CheckableTag=S;v.install=function(o){return o.component(v.name,v),o.component(S.name,S),o};export{v as T}; +import{x as _,y as E,z as P,A as O,bn as j,d as z,D as F,c as d,J as b,f as m,R as D,L as X,F as U,a1 as J,P as B,aY as K,K as V}from"./index-MxXYiP1e.js";import{W as Y}from"./index-p0fEGd1V.js";import{e as q,i as G,h as Q}from"./base--VGJiuPH.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"}}}},Z=o=>q(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}}},H=_("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=E(o,{tagFontSize:c,tagLineHeight:g,tagDefaultBg:C,tagDefaultColor:i,tagIconSize:a-2*r,tagPaddingHorizontal:8,tagBorderlessBg:o.colorFillTertiary});return[oo(n),Z(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]=H(e),C=n=>{const{checked:u}=o;r("update:checked",!u),r("change",!u),r("click",n)},i=m(()=>D(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:K(),"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]=H(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(()=>G(o.color)||Q(o.color)),A=m(()=>D(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})),M=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:W=!1}=o,k=()=>W?y?d("span",{class:`${e.value}-close-icon`,onClick:n},[y]):d(J,{class:`${e.value}-close-icon`,onClick:n},null):null,L={backgroundColor:$&&!u.value?$:void 0},T=w||null,x=(f=l.default)===null||f===void 0?void 0:f.call(l),N=T?d(U,null,[T,d("span",null,[x])]):x,R=o.onClick!==void 0,I=d("span",b(b({},a),{},{onClick:M,class:[A.value,a.class],style:[L,a.style]}),[N,k()]);return g(R?d(Y,null,{default:()=>[I]}):I)}}});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-DQ-PTKeR.js b/src/agentkit/server/static/assets/index-BzwcKMhL.js similarity index 87% rename from src/agentkit/server/static/assets/index-DQ-PTKeR.js rename to src/agentkit/server/static/assets/index-BzwcKMhL.js index 1dc3d13..43df1ac 100644 --- a/src/agentkit/server/static/assets/index-DQ-PTKeR.js +++ b/src/agentkit/server/static/assets/index-BzwcKMhL.js @@ -1 +1 @@ -import{d as p,E as w,ay as C,a2 as x,i as M,V as H,z as l,ab as W,Q as E}from"./index-Cdm90D30.js";import{z as y}from"./base-BzUb4EcV.js";const U=p({compatConfig:{MODE:3},name:"ResizeObserver",props:{disabled:Boolean,onResize:Function},emits:["resize"],setup(i,v){let{slots:c}=v;const n=E({width:0,height:0,offsetHeight:0,offsetWidth:0});let h=null,s=null;const r=()=>{s&&(s.disconnect(),s=null)},b=e=>{const{onResize:t}=i,o=e[0].target,{width:O,height:R}=o.getBoundingClientRect(),{offsetWidth:d,offsetHeight:f}=o,g=Math.floor(O),u=Math.floor(R);if(n.width!==g||n.height!==u||n.offsetWidth!==d||n.offsetHeight!==f){const m={width:g,height:u,offsetWidth:d,offsetHeight:f};l(n,m),t&&Promise.resolve().then(()=>{t(l(l({},m),{offsetWidth:d,offsetHeight:f}),o)})}},z=W(),a=()=>{const{disabled:e}=i;if(e){r();return}const t=H(z);t!==h&&(r(),h=t),!s&&t&&(s=new y(b),s.observe(t))};return w(()=>{a()}),C(()=>{a()}),x(()=>{r()}),M(()=>i.disabled,()=>{a()},{flush:"post"}),()=>{var e;return(e=c.default)===null||e===void 0?void 0:e.call(c)[0]}}});export{U as R}; +import{d as p,E as w,ay as C,a2 as x,i as M,V as H,z as l,ab as W,Q as E}from"./index-MxXYiP1e.js";import{z as y}from"./base--VGJiuPH.js";const U=p({compatConfig:{MODE:3},name:"ResizeObserver",props:{disabled:Boolean,onResize:Function},emits:["resize"],setup(i,v){let{slots:c}=v;const n=E({width:0,height:0,offsetHeight:0,offsetWidth:0});let h=null,s=null;const r=()=>{s&&(s.disconnect(),s=null)},b=e=>{const{onResize:t}=i,o=e[0].target,{width:O,height:R}=o.getBoundingClientRect(),{offsetWidth:d,offsetHeight:f}=o,g=Math.floor(O),u=Math.floor(R);if(n.width!==g||n.height!==u||n.offsetWidth!==d||n.offsetHeight!==f){const m={width:g,height:u,offsetWidth:d,offsetHeight:f};l(n,m),t&&Promise.resolve().then(()=>{t(l(l({},m),{offsetWidth:d,offsetHeight:f}),o)})}},z=W(),a=()=>{const{disabled:e}=i;if(e){r();return}const t=H(z);t!==h&&(r(),h=t),!s&&t&&(s=new y(b),s.observe(t))};return w(()=>{a()}),C(()=>{a()}),x(()=>{r()}),M(()=>i.disabled,()=>{a()},{flush:"post"}),()=>{var e;return(e=c.default)===null||e===void 0?void 0:e.call(c)[0]}}});export{U as R}; diff --git a/src/agentkit/server/static/assets/index-zQkkOnqV.js b/src/agentkit/server/static/assets/index-C-JDvA85.js similarity index 99% rename from src/agentkit/server/static/assets/index-zQkkOnqV.js rename to src/agentkit/server/static/assets/index-C-JDvA85.js index 590814c..de8f218 100644 --- a/src/agentkit/server/static/assets/index-zQkkOnqV.js +++ b/src/agentkit/server/static/assets/index-C-JDvA85.js @@ -1,4 +1,4 @@ -import{d as Z,P as F,c as y,J as B,K as X,i as te,f as K,r as U,e as ct,L as he,W as ft,I as be,R as W,x as pt,y as ve,z as p,A as Ve,aU as vt,aR as De,aB as gt,E as Ge,F as Xe,G as ge,aY as Be,D as ue,bv as ht,T as Ce,ao as Ue,aX as Ye,av as k,aA as bt,U as mt,ab as Ke,aF as yt}from"./index-Cdm90D30.js";import{o as J,u as qe,N as Te,F as se}from"./FormItemContext-C7duC9vx.js";import{c as ee}from"./zoom-DFzZ47uz.js";import{g as xt,N as je,d as St,B as $t}from"./index-DlUg5G7X.js";import{p as Ct,f as wt,k as It,w as fe}from"./_plugin-vue_export-helper-BpJgGuqH.js";import{R as Ot}from"./index-DQ-PTKeR.js";var zt=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 r=0,o=Object.getOwnPropertySymbols(e);r{o.value&&o.value.focus()},blur:()=>{o.value&&o.value.blur()},input:o,setSelectionRange:(l,d,b)=>{var g;(g=o.value)===null||g===void 0||g.setSelectionRange(l,d,b)},select:()=>{var l;(l=o.value)===null||l===void 0||l.select()},getSelectionStart:()=>{var l;return(l=o.value)===null||l===void 0?void 0:l.selectionStart},getSelectionEnd:()=>{var l;return(l=o.value)===null||l===void 0?void 0:l.selectionEnd},getScrollTop:()=>{var l;return(l=o.value)===null||l===void 0?void 0:l.scrollTop}}),()=>{const{tag:l,value:d}=e,b=zt(e,["tag","value"]);return y(l,B(B({},b),{},{ref:o,value:d}),null)}}});function Rn(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 _n(e){return Array.prototype.slice.apply(e).map(t=>`${t}: ${e.getPropertyValue(t)};`).join("")}function Pt(e){return Object.keys(e).reduce((n,t)=>{const o=e[t];return typeof o>"u"||o===null||(n+=`${t}: ${e[t]};`),n},"")}var Rt=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 r=0,o=Object.getOwnPropertySymbols(e);re.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)},z=a=>{t("focus",a)},E=()=>{s.value&&s.value.focus()},P=()=>{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,$)},O=()=>{var a;(a=s.value)===null||a===void 0||a.select()};r({focus:E,blur:P,input:K(()=>{var a;return(a=s.value)===null||a===void 0?void 0:a.input}),setSelectionRange:w,select:O,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=K(()=>e.style&&typeof e.style!="string"?Pt(e.style):e.style);return()=>{const{style:a,lazy:x}=e,$=Rt(e,["style","lazy"]);return y(Et,B(B(B({},$),o),{},{style:m.value,onInput:g,onChange:l,onBlur:f,onFocus:z,ref:s,value:u.value,onCompositionstart:d,onCompositionend:b,onKeyup:_,onKeydown:v,onPaste:h,onMousedown:T}),null)}}});function An(e,n){const{defaultValue:t,value:o=U()}=n||{};let r=typeof e=="function"?e():e;o.value!==void 0&&(r=ct(o)),t!==void 0&&(r=typeof t=="function"?t():t);const s=U(r),u=U(r);he(()=>{let l=o.value!==void 0?o.value:s.value;n.postState&&(l=n.postState(l)),u.value=l});function i(l){const d=u.value;s.value=l,ft(u.value)!==l&&n.onChange&&n.onChange(l,d)}return te(o,()=>{s.value=o.value}),[u,i]}var _t={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 jt=Ct(Object.getPrototypeOf,Object),Ht="[object Object]",Ft=Function.prototype,Mt=Object.prototype,Je=Ft.toString,Nt=Mt.hasOwnProperty,Lt=Je.call(Object);function Wt(e){if(!wt(e)||It(e)!=Ht)return!1;var n=jt(e);if(n===null)return!0;var t=Nt.call(n,"constructor")&&n.constructor;return typeof t=="function"&&t instanceof t&&Je.call(t)==Lt}const Vt=e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),Ee=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}),Dt=e=>({color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,boxShadow:"none",cursor:"not-allowed",opacity:1,"&:hover":p({},Ee(ve(e,{inputBorderHoverColor:e.colorBorder})))}),ke=e=>{const{inputPaddingVerticalLG:n,fontSizeLG:t,lineHeightLG:o,borderRadiusLG:r,inputPaddingHorizontalLG:s}=e;return{padding:`${n}px ${s}px`,fontSize:t,lineHeight:o,borderRadius:r}},et=e=>({padding:`${e.inputPaddingVerticalSM}px ${e.controlPaddingHorizontalSM-1}px`,borderRadius:e.borderRadiusSM}),tt=(e,n)=>{const{componentCls:t,colorError:o,colorWarning:r,colorErrorOutline:s,colorWarningOutline:u,colorErrorBorderHover:i,colorWarningBorderHover:l}=e;return{[`&-status-error:not(${n}-disabled):not(${n}-borderless)${n}`]:{borderColor:o,"&:hover":{borderColor:i},"&:focus, &-focused":p({},we(ve(e,{inputBorderActiveColor:o,inputBorderHoverColor:o,controlOutline:s}))),[`${t}-prefix`]:{color:o}},[`&-status-warning:not(${n}-disabled):not(${n}-borderless)${n}`]:{borderColor:r,"&:hover":{borderColor:l},"&:focus, &-focused":p({},we(ve(e,{inputBorderActiveColor:r,inputBorderHoverColor:r,controlOutline:u}))),[`${t}-prefix`]:{color:r}}}},nt=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}`},Vt(e.colorTextPlaceholder)),{"&:hover":p({},Ee(e)),"&:focus, &-focused":p({},we(e)),"&-disabled, &[disabled]":p({},Dt(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({},ke(e)),"&-sm":p({},et(e)),"&-rtl":{direction:"rtl"},"&-textarea-rtl":{direction:"rtl"}}),Gt=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({},ke(e)),[`&-sm ${n}, &-sm > ${n}-group-addon`]:p({},et(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"},vt()),{[`${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, +import{d as Z,P as F,c as y,J as B,K as X,i as te,f as K,r as U,e as ct,L as he,W as ft,I as be,R as W,x as pt,y as ve,z as p,A as Ve,aU as vt,aR as De,aB as gt,E as Ge,F as Xe,G as ge,aY as Be,D as ue,bv as ht,T as Ce,ao as Ue,aX as Ye,av as k,aA as bt,U as mt,ab as Ke,aF as yt}from"./index-MxXYiP1e.js";import{o as J,u as qe,N as Te,F as se}from"./FormItemContext-CIZixMRP.js";import{c as ee}from"./zoom-BTwsIXn4.js";import{g as xt,N as je,d as St,B as $t}from"./index-p0fEGd1V.js";import{p as Ct,f as wt,k as It,w as fe}from"./_plugin-vue_export-helper-CbNEYfqg.js";import{R as Ot}from"./index-BzwcKMhL.js";var zt=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 r=0,o=Object.getOwnPropertySymbols(e);r{o.value&&o.value.focus()},blur:()=>{o.value&&o.value.blur()},input:o,setSelectionRange:(l,d,b)=>{var g;(g=o.value)===null||g===void 0||g.setSelectionRange(l,d,b)},select:()=>{var l;(l=o.value)===null||l===void 0||l.select()},getSelectionStart:()=>{var l;return(l=o.value)===null||l===void 0?void 0:l.selectionStart},getSelectionEnd:()=>{var l;return(l=o.value)===null||l===void 0?void 0:l.selectionEnd},getScrollTop:()=>{var l;return(l=o.value)===null||l===void 0?void 0:l.scrollTop}}),()=>{const{tag:l,value:d}=e,b=zt(e,["tag","value"]);return y(l,B(B({},b),{},{ref:o,value:d}),null)}}});function Rn(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 _n(e){return Array.prototype.slice.apply(e).map(t=>`${t}: ${e.getPropertyValue(t)};`).join("")}function Pt(e){return Object.keys(e).reduce((n,t)=>{const o=e[t];return typeof o>"u"||o===null||(n+=`${t}: ${e[t]};`),n},"")}var Rt=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 r=0,o=Object.getOwnPropertySymbols(e);re.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)},z=a=>{t("focus",a)},E=()=>{s.value&&s.value.focus()},P=()=>{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,$)},O=()=>{var a;(a=s.value)===null||a===void 0||a.select()};r({focus:E,blur:P,input:K(()=>{var a;return(a=s.value)===null||a===void 0?void 0:a.input}),setSelectionRange:w,select:O,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=K(()=>e.style&&typeof e.style!="string"?Pt(e.style):e.style);return()=>{const{style:a,lazy:x}=e,$=Rt(e,["style","lazy"]);return y(Et,B(B(B({},$),o),{},{style:m.value,onInput:g,onChange:l,onBlur:f,onFocus:z,ref:s,value:u.value,onCompositionstart:d,onCompositionend:b,onKeyup:_,onKeydown:v,onPaste:h,onMousedown:T}),null)}}});function An(e,n){const{defaultValue:t,value:o=U()}=n||{};let r=typeof e=="function"?e():e;o.value!==void 0&&(r=ct(o)),t!==void 0&&(r=typeof t=="function"?t():t);const s=U(r),u=U(r);he(()=>{let l=o.value!==void 0?o.value:s.value;n.postState&&(l=n.postState(l)),u.value=l});function i(l){const d=u.value;s.value=l,ft(u.value)!==l&&n.onChange&&n.onChange(l,d)}return te(o,()=>{s.value=o.value}),[u,i]}var _t={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 jt=Ct(Object.getPrototypeOf,Object),Ht="[object Object]",Ft=Function.prototype,Mt=Object.prototype,Je=Ft.toString,Nt=Mt.hasOwnProperty,Lt=Je.call(Object);function Wt(e){if(!wt(e)||It(e)!=Ht)return!1;var n=jt(e);if(n===null)return!0;var t=Nt.call(n,"constructor")&&n.constructor;return typeof t=="function"&&t instanceof t&&Je.call(t)==Lt}const Vt=e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),Ee=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}),Dt=e=>({color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,boxShadow:"none",cursor:"not-allowed",opacity:1,"&:hover":p({},Ee(ve(e,{inputBorderHoverColor:e.colorBorder})))}),ke=e=>{const{inputPaddingVerticalLG:n,fontSizeLG:t,lineHeightLG:o,borderRadiusLG:r,inputPaddingHorizontalLG:s}=e;return{padding:`${n}px ${s}px`,fontSize:t,lineHeight:o,borderRadius:r}},et=e=>({padding:`${e.inputPaddingVerticalSM}px ${e.controlPaddingHorizontalSM-1}px`,borderRadius:e.borderRadiusSM}),tt=(e,n)=>{const{componentCls:t,colorError:o,colorWarning:r,colorErrorOutline:s,colorWarningOutline:u,colorErrorBorderHover:i,colorWarningBorderHover:l}=e;return{[`&-status-error:not(${n}-disabled):not(${n}-borderless)${n}`]:{borderColor:o,"&:hover":{borderColor:i},"&:focus, &-focused":p({},we(ve(e,{inputBorderActiveColor:o,inputBorderHoverColor:o,controlOutline:s}))),[`${t}-prefix`]:{color:o}},[`&-status-warning:not(${n}-disabled):not(${n}-borderless)${n}`]:{borderColor:r,"&:hover":{borderColor:l},"&:focus, &-focused":p({},we(ve(e,{inputBorderActiveColor:r,inputBorderHoverColor:r,controlOutline:u}))),[`${t}-prefix`]:{color:r}}}},nt=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}`},Vt(e.colorTextPlaceholder)),{"&:hover":p({},Ee(e)),"&:focus, &-focused":p({},we(e)),"&-disabled, &[disabled]":p({},Dt(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({},ke(e)),"&-sm":p({},et(e)),"&-rtl":{direction:"rtl"},"&-textarea-rtl":{direction:"rtl"}}),Gt=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({},ke(e)),[`&-sm ${n}, &-sm > ${n}-group-addon`]:p({},et(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"},vt()),{[`${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, diff --git a/src/agentkit/server/static/assets/index-CPf0IATs.js b/src/agentkit/server/static/assets/index-CIqRW9zM.js similarity index 97% rename from src/agentkit/server/static/assets/index-CPf0IATs.js rename to src/agentkit/server/static/assets/index-CIqRW9zM.js index efe8d9d..92d1a6b 100644 --- a/src/agentkit/server/static/assets/index-CPf0IATs.js +++ b/src/agentkit/server/static/assets/index-CIqRW9zM.js @@ -1,4 +1,4 @@ -import{x as re,y as te,aN as oe,z as s,A as j,b3 as le,at as m,P as ie,aw as w,aB as se,aO as _,d as X,D as K,L as ce,T as de,E as ue,U as be,M as ve,R as N,c as I,J as D,aX as fe,B as he,f as y,r as S,i as U,C as me}from"./index-Cdm90D30.js";import{V as pe}from"./Checkbox-CGUdikGP.js";import{u as L,F as ge}from"./FormItemContext-C7duC9vx.js";const xe=new oe("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({},j(e)),{display:"inline-flex",flexWrap:"wrap",columnGap:e.marginXS,[`> ${e.antCls}-row`]:{flex:1}}),[n]:s(s({},j(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({},j(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"},[` +import{x as re,y as te,aN as oe,z as s,A as j,b3 as le,at as m,P as ie,aw as w,aB as se,aO as _,d as X,D as K,L as ce,T as de,E as ue,U as be,M as ve,R as N,c as I,J as D,aX as fe,B as he,f as y,r as S,i as U,C as me}from"./index-MxXYiP1e.js";import{V as pe}from"./Checkbox-r-colYvs.js";import{u as L,F as ge}from"./FormItemContext-CIZixMRP.js";const xe=new oe("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({},j(e)),{display:"inline-flex",flexWrap:"wrap",columnGap:e.marginXS,[`> ${e.antCls}-row`]:{flex:1}}),[n]:s(s({},j(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({},j(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}`}},[` diff --git a/src/agentkit/server/static/assets/index-DWEEelzT.js b/src/agentkit/server/static/assets/index-CUHLv4kD.js similarity index 98% rename from src/agentkit/server/static/assets/index-DWEEelzT.js rename to src/agentkit/server/static/assets/index-CUHLv4kD.js index 2af4873..5b0c9b6 100644 --- a/src/agentkit/server/static/assets/index-DWEEelzT.js +++ b/src/agentkit/server/static/assets/index-CUHLv4kD.js @@ -1,3 +1,3 @@ -import{K as W,T as ke,d as le,c as h,R as ie,r as V,f as H,L as Ce,z as T,P as we,E as Te,i as oe,aw as j,B as pt,C as ft,bv as mt,J as te,aK as he,b9 as me,x as ht,y as gt,A as tt,aV as $t,aZ as at,M as yt,aF as xt,a_ as St,D as _t,aO as Ct,aB as xe,at as Tt,ax as wt,a1 as Pt}from"./index-Cdm90D30.js";import{d as Xe,w as ge,i as nt}from"./_plugin-vue_export-helper-BpJgGuqH.js";import{K as q}from"./KeyCode-c8YLmrmC.js";import{u as Rt,E as It,M as Et,A as Bt,i as Fe}from"./index-DUKU9Yum.js";import{n as ot,t as Lt,f as At,j as Dt,l as Mt,p as kt,c as Nt,d as Ot}from"./Dropdown-BfmL-5TH.js";import{u as D}from"./index-DlUg5G7X.js";import{R as je}from"./index-DQ-PTKeR.js";import{w as Wt}from"./base-BzUb4EcV.js";import{c as Ht}from"./zoom-DFzZ47uz.js";import{u as Ve}from"./index-zQkkOnqV.js";import{P as zt}from"./PlusOutlined-BZYJdEGN.js";import{d as De}from"./devWarning-Ct6dVMcH.js";import{o as Kt}from"./FormItemContext-C7duC9vx.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 d;!((d=e.tab)===null||d===void 0)&&d.disabled||e.onClick(v)}a({domRef:o});function n(v){var d;v.preventDefault(),v.stopPropagation(),e.editable.onEdit("remove",{key:(d=e.tab)===null||d===void 0?void 0:d.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:d,id:p,active:_,tab:{key:m,tab:c,disabled:y,closeIcon:x},renderWrapper:w,removeAriaLabel:C,editable:M,onFocus:K}=e,k=`${d}-tab`,r=h("div",{key:m,ref:o,class:ie(k,{[`${k}-with-remove`]:s.value,[`${k}-active`]:_,[`${k}-disabled`]:y}),style:i.style,onClick:l},[h("div",{role:"tab","aria-selected":_,id:p&&`${p}-tab-${m}`,class:`${k}-btn`,"aria-controls":p&&`${p}-panel-${m}`,"aria-disabled":y,tabindex:y?null:0,onClick:g=>{g.stopPropagation(),l(g)},onKeydown:g=>{[q.SPACE,q.ENTER].includes(g.which)&&(g.preventDefault(),l(g))},onFocus:K},[typeof c=="function"?c():c]),s.value&&h("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 d=0;d{const{prefixCls:l,editable:n,locale:s}=e;return!n||n.showAdd===!1?null:h("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()},Jt=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=c=>{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}=c;if(!o.value){[q.DOWN,q.SPACE,q.ENTER].includes(y)&&(l(!0),c.preventDefault());return}switch(y){case q.UP:v(-1),c.preventDefault();break;case q.DOWN:v(1),c.preventDefault();break;case q.ESC:l(!1);break;case q.SPACE:case q.ENTER:n.value!==null&&e.onTabClick(n.value,c);break}},p=H(()=>`${e.id}-more-popup`),_=H(()=>n.value!==null?`${p.value}-${n.value}`:null),m=(c,y)=>{c.preventDefault(),c.stopPropagation(),e.editable.onEdit("remove",{key:y,event:c})};return Te(()=>{oe(n,()=>{const c=document.getElementById(_.value);c&&c.scrollIntoView&&c.scrollIntoView(!1)},{flush:"post",immediate:!0})}),oe(o,()=>{o.value||s(null)}),Rt({}),()=>{var c;const{prefixCls:y,id:x,tabs:w,locale:C,mobile:M,moreIcon:K=((c=i.moreIcon)===null||c===void 0?void 0:c.call(i))||h(It,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}),ce=M?null:h(Nt,{prefixCls:R,trigger:["hover"],visible:o.value,transitionName:k,onVisibleChange:l,overlayClassName:se,mouseEnterDelay:.1,mouseLeaveDelay:.1,getPopupContainer:e.getPopupContainer},{overlay:()=>h(Et,{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 h(Bt,{key:I.key,id:`${p.value}-${I.key}`,role:"option","aria-controls":x&&`${x}-panel-${I.key}`,disabled:I.disabled},{default:()=>[h("span",null,[typeof I.tab=="function"?I.tab():I.tab]),Y&&h("button",{type:"button","aria-label":e.removeAriaLabel||"remove",tabindex:0,class:`${R}-menu-item-remove`,onClick:U=>{U.stopPropagation(),m(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:()=>h("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:d},[K])});return h("div",{class:ie(`${y}-nav-operations`,a.class),style:a.style},[ce,h(lt,{prefixCls:y,locale:C,editable:r},null)])}}}),rt=Symbol("tabsContextKey"),qt=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,d]=D(),p=V();function _(r){const{screenX:g,screenY:u}=r.touches[0];i({x:g,y:u}),clearInterval(p.value)}function m(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),d({x:$,y:E})}function c(){if(!a.value)return;const r=v.value;if(i(null),d(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:m,onTouchEnd:c,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 Je(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 mt(()=>{e.value=new Map}),[t,e]},qe={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:he(),editable:he(),moreIcon:we.any,moreTransitionName:{type:String},mobile:{type:Boolean},tabBarGutter:{type:Number},renderTabBar:{type:Function},locale:he(),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:d}=e.getBoundingClientRect();return Math.abs(n-a)<1?[n,s,v-t.x,d-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(),d=W(),[p,_]=ta(),m=H(()=>e.tabPosition==="top"||e.tabPosition==="bottom"),[c,y]=Je(0,(f,b)=>{m.value&&e.onTabScroll&&e.onTabScroll({direction:f>b?"left":"right"})}),[x,w]=Je(0,(f,b)=>{!m.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,ce]=Vt(new Map),I=Ut(o,se),Q=H(()=>`${l.value}-nav-operations-hidden`),N=W(0),Y=W(0);Ce(()=>{m.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(m.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 de=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(m.value){let S=c.value;e.rtl?b.rightc.value+r.value&&(S=b.right+b.width-r.value):b.left<-c.value?S=-b.left:b.left+b.width>-c.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(c.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=J-1;X>=0;X-=1)if((Z.get(F[X].key)||qe)[b]{ce(()=>{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,J,ne]=na(Z,S);b.set(L,{width:O,height:F,left:J,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=d.value)===null||S===void 0?void 0:S.$el)||{},F=O.offsetWidth||0,J=O.offsetHeight||0;g(B),$(Z),R(F),re(J);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)-J;M(ne),k(A),Ne()},Oe=H(()=>[...o.value.slice(0,Pe.value),...o.value.slice(Re.value+1)]),[ct,ut]=D(),ae=H(()=>I.value.get(e.activeKey)),We=W(),He=()=>{ge.cancel(We.value)};oe([ae,m,()=>e.rtl],()=>{const f={};ae.value&&(m.value?(e.rtl?f.right=me(ae.value.right):f.left=me(ae.value.left),f.width=me(ae.value.width)):(f.top=me(ae.value.top),f.height=me(ae.value.height))),He(),We.value=ge(()=>{ut(f)})}),oe([()=>e.activeKey,ae,I,m],()=>{de()},{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?h("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:J,style:ne}=a,A=l.value,X=!!Oe.value.length,ee=`${A}-nav-wrap`;let Be,Le,ze,Ke;m.value?P?(Le=c.value>0,Be=c.value+r.value{const{key:fe}=Ae;return h(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:()=>{de(fe),be(),n.value&&(P||(n.value.scrollLeft=0),n.value.scrollTop=0)}},i)});return h("div",{role:"tablist",class:ie(`${A}-nav`,J),style:ne,onKeydown:()=>{be()}},[h(Ee,{position:"left",prefixCls:A,extra:i.leftExtra},null),h(je,{onResize:Ie},{default:()=>[h("div",{class:ie(ee,{[`${ee}-ping-left`]:Be,[`${ee}-ping-right`]:Le,[`${ee}-ping-top`]:ze,[`${ee}-ping-bottom`]:Ke}),ref:n},[h(je,{onResize:Ie},{default:()=>[h("div",{ref:s,class:`${A}-nav-list`,style:{transform:`translate(${c.value}px, ${x.value}px)`,transition:z.value?"none":void 0}},[Ge,h(lt,{ref:d,prefixCls:A,locale:B,editable:L,style:T(T({},Ge.length===0?void 0:ye),{visibility:X?"hidden":null})},null),h("div",{class:ie(`${A}-ink-bar`,{[`${A}-ink-bar-animated`]:b.inkBar}),style:ct.value},null)])]})])]}),h(Jt,te(te({},e),{},{removeAriaLabel:B==null?void 0:B.removeAriaLabel,ref:v,prefixCls:A,tabs:Oe.value,class:!X&&Q.value}),it(i,["moreIcon"])),h(Ee,{position:"right",prefixCls:A,extra:i.rightExtra},null),h(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,d=l.tabPane,p=a.value,_=t.value.findIndex(m=>m.key===o);return h("div",{class:`${p}-content-holder`},[h("div",{class:[`${p}-content`,`${p}-content-${n}`,{[`${p}-content-animated`]:d}],style:_&&d?{[s?"marginRight":"marginLeft"]:`-${_}00%`}:null},[t.value.map(m=>Ht(m.node,{key:m.key,prefixCls:p,tabKey:m.key,id:i,animated:d,active:m.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}, +import{K as W,T as ke,d as le,c as h,R as ie,r as V,f as H,L as Ce,z as T,P as we,E as Te,i as oe,aw as j,B as pt,C as ft,bv as mt,J as te,aK as he,b9 as me,x as ht,y as gt,A as tt,aV as $t,aZ as at,M as yt,aF as xt,a_ as St,D as _t,aO as Ct,aB as xe,at as Tt,ax as wt,a1 as Pt}from"./index-MxXYiP1e.js";import{d as Xe,w as ge,i as nt}from"./_plugin-vue_export-helper-CbNEYfqg.js";import{K as q}from"./KeyCode-c8YLmrmC.js";import{u as Rt,E as It,M as Et,A as Bt,i as Fe}from"./index-DzzgX9TA.js";import{n as ot,t as Lt,f as At,j as Dt,l as Mt,p as kt,c as Nt,d as Ot}from"./Dropdown-EJ9XzwSc.js";import{u as D}from"./index-p0fEGd1V.js";import{R as je}from"./index-BzwcKMhL.js";import{w as Wt}from"./base--VGJiuPH.js";import{c as Ht}from"./zoom-BTwsIXn4.js";import{u as Ve}from"./index-C-JDvA85.js";import{P as zt}from"./PlusOutlined-CMd58dlX.js";import{d as De}from"./devWarning-Ct6dVMcH.js";import{o as Kt}from"./FormItemContext-CIZixMRP.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 d;!((d=e.tab)===null||d===void 0)&&d.disabled||e.onClick(v)}a({domRef:o});function n(v){var d;v.preventDefault(),v.stopPropagation(),e.editable.onEdit("remove",{key:(d=e.tab)===null||d===void 0?void 0:d.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:d,id:p,active:_,tab:{key:m,tab:c,disabled:y,closeIcon:x},renderWrapper:w,removeAriaLabel:C,editable:M,onFocus:K}=e,k=`${d}-tab`,r=h("div",{key:m,ref:o,class:ie(k,{[`${k}-with-remove`]:s.value,[`${k}-active`]:_,[`${k}-disabled`]:y}),style:i.style,onClick:l},[h("div",{role:"tab","aria-selected":_,id:p&&`${p}-tab-${m}`,class:`${k}-btn`,"aria-controls":p&&`${p}-panel-${m}`,"aria-disabled":y,tabindex:y?null:0,onClick:g=>{g.stopPropagation(),l(g)},onKeydown:g=>{[q.SPACE,q.ENTER].includes(g.which)&&(g.preventDefault(),l(g))},onFocus:K},[typeof c=="function"?c():c]),s.value&&h("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 d=0;d{const{prefixCls:l,editable:n,locale:s}=e;return!n||n.showAdd===!1?null:h("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()},Jt=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=c=>{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}=c;if(!o.value){[q.DOWN,q.SPACE,q.ENTER].includes(y)&&(l(!0),c.preventDefault());return}switch(y){case q.UP:v(-1),c.preventDefault();break;case q.DOWN:v(1),c.preventDefault();break;case q.ESC:l(!1);break;case q.SPACE:case q.ENTER:n.value!==null&&e.onTabClick(n.value,c);break}},p=H(()=>`${e.id}-more-popup`),_=H(()=>n.value!==null?`${p.value}-${n.value}`:null),m=(c,y)=>{c.preventDefault(),c.stopPropagation(),e.editable.onEdit("remove",{key:y,event:c})};return Te(()=>{oe(n,()=>{const c=document.getElementById(_.value);c&&c.scrollIntoView&&c.scrollIntoView(!1)},{flush:"post",immediate:!0})}),oe(o,()=>{o.value||s(null)}),Rt({}),()=>{var c;const{prefixCls:y,id:x,tabs:w,locale:C,mobile:M,moreIcon:K=((c=i.moreIcon)===null||c===void 0?void 0:c.call(i))||h(It,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}),ce=M?null:h(Nt,{prefixCls:R,trigger:["hover"],visible:o.value,transitionName:k,onVisibleChange:l,overlayClassName:se,mouseEnterDelay:.1,mouseLeaveDelay:.1,getPopupContainer:e.getPopupContainer},{overlay:()=>h(Et,{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 h(Bt,{key:I.key,id:`${p.value}-${I.key}`,role:"option","aria-controls":x&&`${x}-panel-${I.key}`,disabled:I.disabled},{default:()=>[h("span",null,[typeof I.tab=="function"?I.tab():I.tab]),Y&&h("button",{type:"button","aria-label":e.removeAriaLabel||"remove",tabindex:0,class:`${R}-menu-item-remove`,onClick:U=>{U.stopPropagation(),m(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:()=>h("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:d},[K])});return h("div",{class:ie(`${y}-nav-operations`,a.class),style:a.style},[ce,h(lt,{prefixCls:y,locale:C,editable:r},null)])}}}),rt=Symbol("tabsContextKey"),qt=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,d]=D(),p=V();function _(r){const{screenX:g,screenY:u}=r.touches[0];i({x:g,y:u}),clearInterval(p.value)}function m(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),d({x:$,y:E})}function c(){if(!a.value)return;const r=v.value;if(i(null),d(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:m,onTouchEnd:c,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 Je(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 mt(()=>{e.value=new Map}),[t,e]},qe={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:he(),editable:he(),moreIcon:we.any,moreTransitionName:{type:String},mobile:{type:Boolean},tabBarGutter:{type:Number},renderTabBar:{type:Function},locale:he(),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:d}=e.getBoundingClientRect();return Math.abs(n-a)<1?[n,s,v-t.x,d-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(),d=W(),[p,_]=ta(),m=H(()=>e.tabPosition==="top"||e.tabPosition==="bottom"),[c,y]=Je(0,(f,b)=>{m.value&&e.onTabScroll&&e.onTabScroll({direction:f>b?"left":"right"})}),[x,w]=Je(0,(f,b)=>{!m.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,ce]=Vt(new Map),I=Ut(o,se),Q=H(()=>`${l.value}-nav-operations-hidden`),N=W(0),Y=W(0);Ce(()=>{m.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(m.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 de=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(m.value){let S=c.value;e.rtl?b.rightc.value+r.value&&(S=b.right+b.width-r.value):b.left<-c.value?S=-b.left:b.left+b.width>-c.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(c.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=J-1;X>=0;X-=1)if((Z.get(F[X].key)||qe)[b]{ce(()=>{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,J,ne]=na(Z,S);b.set(L,{width:O,height:F,left:J,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=d.value)===null||S===void 0?void 0:S.$el)||{},F=O.offsetWidth||0,J=O.offsetHeight||0;g(B),$(Z),R(F),re(J);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)-J;M(ne),k(A),Ne()},Oe=H(()=>[...o.value.slice(0,Pe.value),...o.value.slice(Re.value+1)]),[ct,ut]=D(),ae=H(()=>I.value.get(e.activeKey)),We=W(),He=()=>{ge.cancel(We.value)};oe([ae,m,()=>e.rtl],()=>{const f={};ae.value&&(m.value?(e.rtl?f.right=me(ae.value.right):f.left=me(ae.value.left),f.width=me(ae.value.width)):(f.top=me(ae.value.top),f.height=me(ae.value.height))),He(),We.value=ge(()=>{ut(f)})}),oe([()=>e.activeKey,ae,I,m],()=>{de()},{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?h("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:J,style:ne}=a,A=l.value,X=!!Oe.value.length,ee=`${A}-nav-wrap`;let Be,Le,ze,Ke;m.value?P?(Le=c.value>0,Be=c.value+r.value{const{key:fe}=Ae;return h(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:()=>{de(fe),be(),n.value&&(P||(n.value.scrollLeft=0),n.value.scrollTop=0)}},i)});return h("div",{role:"tablist",class:ie(`${A}-nav`,J),style:ne,onKeydown:()=>{be()}},[h(Ee,{position:"left",prefixCls:A,extra:i.leftExtra},null),h(je,{onResize:Ie},{default:()=>[h("div",{class:ie(ee,{[`${ee}-ping-left`]:Be,[`${ee}-ping-right`]:Le,[`${ee}-ping-top`]:ze,[`${ee}-ping-bottom`]:Ke}),ref:n},[h(je,{onResize:Ie},{default:()=>[h("div",{ref:s,class:`${A}-nav-list`,style:{transform:`translate(${c.value}px, ${x.value}px)`,transition:z.value?"none":void 0}},[Ge,h(lt,{ref:d,prefixCls:A,locale:B,editable:L,style:T(T({},Ge.length===0?void 0:ye),{visibility:X?"hidden":null})},null),h("div",{class:ie(`${A}-ink-bar`,{[`${A}-ink-bar-animated`]:b.inkBar}),style:ct.value},null)])]})])]}),h(Jt,te(te({},e),{},{removeAriaLabel:B==null?void 0:B.removeAriaLabel,ref:v,prefixCls:A,tabs:Oe.value,class:!X&&Q.value}),it(i,["moreIcon"])),h(Ee,{position:"right",prefixCls:A,extra:i.rightExtra},null),h(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,d=l.tabPane,p=a.value,_=t.value.findIndex(m=>m.key===o);return h("div",{class:`${p}-content-holder`},[h("div",{class:[`${p}-content`,`${p}-content-${n}`,{[`${p}-content-animated`]:d}],style:_&&d?{[s?"marginRight":"marginLeft"]:`-${_}00%`}:null},[t.value.map(m=>Ht(m.node,{key:m.key,prefixCls:p,tabKey:m.key,id:i,animated:d,active:m.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}}}}}},da=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`}}}}}},ca=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"}}),ca(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=ht("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[da(a),ua(a),sa(a),ra(a),la(a),va(a),ia(a)]},e=>({zIndexPopup:e.zIndexPopupBase+50}));let et=0;const dt=()=>({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:he(),tabPosition:xe(),destroyInactiveTabPane:Tt(),hideAdd:Boolean,type:xe(),size:xe(),centered:Boolean,onEdit:j(),onChange:j(),onTabClick:j(),onTabScroll:j(),"onUpdate:activeKey":j(),locale:he(),onPrevClick:j(),onNextClick:j(),tabBarExtraContent:we.any});function pa(e){return e.map(t=>{if(xt(t)){const a=T({},t.props||{});for(const[m,c]of Object.entries(a))delete a[m],a[St(m)]=c;const i=t.children||{},o=t.key!==void 0?t.key:void 0,{tab:l=i.tab,disabled:n,forceRender:s,closable:v,animated:d,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:d===""||d,active:p===""||p,destroyInactiveTabPane:_===""||_})}return null}).filter(t=>t)}const fa=le({compatConfig:{MODE:3},name:"InternalTabs",inheritAttrs:!1,props:T(T({},nt(dt(),{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),[d,p]=ba(o),_=H(()=>l.value==="rtl"),m=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:{})}),[c,y]=D(!1);Te(()=>{y(Ot())});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(()=>c.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 qt({tabs:H(()=>e.tabs),prefixCls:o}),()=>{const{id:u,type:$,tabBarGutter:E,tabBarStyle:R,locale:G,destroyInactiveTabPane:re,renderTabBar:se=i.renderTabBar,onTabScroll:ce,hideAdd:I,centered:Q}=e,N={id:K.value,activeKey:x.value,animated:m.value,tabPosition:r.value,rtl:_.value,mobile:c.value};let Y;$==="editable-card"&&(Y={onEdit:(ve,be)=>{let{key:pe,event:$e}=be;var de;(de=e.onEdit)===null||de===void 0||de.call(e,ve==="add"?$e:pe,ve)},removeIcon:()=>h(Pt,null,null),addIcon:i.addIcon?i.addIcon:()=>h(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:ce,style:R,getPopupContainer:v.value,popupClassName:ie(e.popupClassName,p.value)});se?U=se(T(T({},ue),{DefaultTabBar:Qe})):U=h(Qe,ue,it(i,["moreIcon","leftExtra","rightExtra","tabBarExtraContent"]));const z=o.value;return d(h("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`]:c.value,[`${z}-editable`]:$==="editable-card",[`${z}-rtl`]:_.value},a.class)}),[U,h(oa,te(te({destroyInactiveTabPane:re},N),{},{animated:m.value}),null)]))}}}),_e=le({compatConfig:{MODE:3},name:"ATabs",inheritAttrs:!1,props:nt(dt(),{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 h(fa,te(te(te({},Kt(e,["onUpdate:activeKey"])),a),{},{onChange:l,tabs:s}),i)}}}),ma=()=>({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:ma(),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:d,active:p,tabKey:_}=e;return h("div",{id:d&&`${d}-panel-${_}`,role:"tabpanel",tabindex:p?0:-1,"aria-labelledby":d&&`${d}-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-Bhzy1-DW.js b/src/agentkit/server/static/assets/index-Cm4StDv9.js similarity index 98% rename from src/agentkit/server/static/assets/index-Bhzy1-DW.js rename to src/agentkit/server/static/assets/index-Cm4StDv9.js index 3a7bcd4..2f6a948 100644 --- a/src/agentkit/server/static/assets/index-Bhzy1-DW.js +++ b/src/agentkit/server/static/assets/index-Cm4StDv9.js @@ -1 +1 @@ -import{x as b,y as w,z as s,A as z,aH as y,d as M,D as C,M as B,c as f,J as u,f as d}from"./index-Cdm90D30.js";const H=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}}})}},I=b("Divider",t=>{const e=w(t,{dividerVerticalGutterMargin:t.marginXS,dividerHorizontalWithTextGutterMargin:t.margin,dividerHorizontalGutterMargin:t.marginLG});return[H(e)]},{sizePaddingEdgeHorizontal:0}),G=()=>({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]}),W=M({name:"ADivider",inheritAttrs:!1,compatConfig:{MODE:3},props:G(),setup(t,e){let{slots:o,attrs:r}=e;const{prefixCls:i,direction:m}=C("divider",t),[v,h]=I(i),g=d(()=>t.orientation==="left"&&t.orientationMargin!=null),c=d(()=>t.orientation==="right"&&t.orientationMargin!=null),x=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}}),$=d(()=>{const n=typeof t.orientationMargin=="number"?`${t.orientationMargin}px`:t.orientationMargin;return s(s({},g.value&&{marginLeft:n}),c.value&&{marginRight:n})}),p=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(f("div",u(u({},r),{},{class:[x.value,l.length?`${i.value}-with-text ${i.value}-with-text${p.value}`:"",r.class],role:"separator"}),[l.length?f("span",{class:`${i.value}-inner-text`,style:$.value},[l]):null]))}}}),E=y(W);export{E as _}; +import{x as b,y as w,z as s,A as z,aH as y,d as M,D as C,M as B,c as f,J as u,f as d}from"./index-MxXYiP1e.js";const H=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}}})}},I=b("Divider",t=>{const e=w(t,{dividerVerticalGutterMargin:t.marginXS,dividerHorizontalWithTextGutterMargin:t.margin,dividerHorizontalGutterMargin:t.marginLG});return[H(e)]},{sizePaddingEdgeHorizontal:0}),G=()=>({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]}),W=M({name:"ADivider",inheritAttrs:!1,compatConfig:{MODE:3},props:G(),setup(t,e){let{slots:o,attrs:r}=e;const{prefixCls:i,direction:m}=C("divider",t),[v,h]=I(i),g=d(()=>t.orientation==="left"&&t.orientationMargin!=null),c=d(()=>t.orientation==="right"&&t.orientationMargin!=null),x=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}}),$=d(()=>{const n=typeof t.orientationMargin=="number"?`${t.orientationMargin}px`:t.orientationMargin;return s(s({},g.value&&{marginLeft:n}),c.value&&{marginRight:n})}),p=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(f("div",u(u({},r),{},{class:[x.value,l.length?`${i.value}-with-text ${i.value}-with-text${p.value}`:"",r.class],role:"separator"}),[l.length?f("span",{class:`${i.value}-inner-text`,style:$.value},[l]):null]))}}}),E=y(W);export{E as _}; diff --git a/src/agentkit/server/static/assets/index-Bm5ZpeOU.js b/src/agentkit/server/static/assets/index-CpcJSnGu.js similarity index 98% rename from src/agentkit/server/static/assets/index-Bm5ZpeOU.js rename to src/agentkit/server/static/assets/index-CpcJSnGu.js index 0e8a041..fca12d9 100644 --- a/src/agentkit/server/static/assets/index-Bm5ZpeOU.js +++ b/src/agentkit/server/static/assets/index-CpcJSnGu.js @@ -1,4 +1,4 @@ -import{aN as xe,P as w,d as M,c as s,J as y,aP as $e,aG as Se,p as he,z as c,r as U,f as q,G as De,v as we,K as h,i as J,T as ae,L as Ee,R as X,bf as We,bg as je,x as Ve,y as Ge,A as _e,aZ as Ke,aU as Ue,D as Xe,U as ke,a1 as Qe,aJ as Y,F as qe,aI as ie,aK as G,E as Je,V as Ye,az as Ze,ao as eo,an as oo,bh as no,bi as de,bj as to,bk as lo,bl as ao,bm as io,aL as ro,e as so,ag as co}from"./index-Cdm90D30.js";import{K as ue}from"./KeyCode-c8YLmrmC.js";import{o as Te}from"./FormItemContext-C7duC9vx.js";import{p as uo}from"./pickAttrs-cDcy8MZ0.js";import{i as Z}from"./_plugin-vue_export-helper-BpJgGuqH.js";import{f as fo,P as mo,i as go,d as po,t as vo}from"./zoom-DFzZ47uz.js";import{B as te,c as Be}from"./index-DlUg5G7X.js";import{c as Co}from"./styleChecker-DuXayfgz.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[fo(n,yo,bo,e.motionDurationMid,o),{[` +import{aN as xe,P as w,d as M,c as s,J as y,aP as $e,aG as Se,p as he,z as c,r as U,f as q,G as De,v as we,K as h,i as J,T as ae,L as Ee,R as X,bf as We,bg as je,x as Ve,y as Ge,A as _e,aZ as Ke,aU as Ue,D as Xe,U as ke,a1 as Qe,aJ as Y,F as qe,aI as ie,aK as G,E as Je,V as Ye,az as Ze,ao as eo,an as oo,bh as no,bi as de,bj as to,bk as lo,bl as ao,bm as io,aL as ro,e as so,ag as co}from"./index-MxXYiP1e.js";import{K as ue}from"./KeyCode-c8YLmrmC.js";import{o as Te}from"./FormItemContext-CIZixMRP.js";import{p as uo}from"./pickAttrs-CdccUdli.js";import{i as Z}from"./_plugin-vue_export-helper-CbNEYfqg.js";import{f as fo,P as mo,i as go,d as po,t as vo}from"./zoom-BTwsIXn4.js";import{B as te,c as Be}from"./index-p0fEGd1V.js";import{c as Co}from"./styleChecker-BO8K1F6-.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[fo(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=M({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=U(),g=U(),v=U();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=U(),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=()=>{De(()=>{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:N,onMouseup:H,visible:D,modalRender:E=n.modalRender,destroyOnClose:_,motionName:A}=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 z=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(A);return s(Se,y(y({},ee),{},{onBeforeEnter:u,onAfterEnter:()=>i(!0),onAfterLeave:()=>i(!1)}),{default:()=>[D||!_?he(s("div",y(y({},l),{},{ref:v,key:"dialog-element",role:"document",style:[f.value,l.style],class:[S,l.class],onMousedown:N,onMouseup:H}),[s("div",{tabindex:0,ref:d,style:wo},[E?E({originVNode:z}):z]),s("div",{tabindex:0,ref:g,style:ho},null)]),[[we,D]]):null]})}}}),Bo=M({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=M({compatConfig:{MODE:3},name:"VcDialog",inheritAttrs:!1,props:Z(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 J(()=>e.visible,()=>{e.visible&&(v.value=!0)},{flush:"post"}),ae(()=>{var m;clearTimeout(a.value),(m=e.scrollLocker)===null||m===void 0||m.unLock()}),Ee(()=>{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:N,closable:H,maskProps:D,maskStyle:E,transitionName:_,animation:A,wrapProps:W,title:j=n.title}=e,{style:R,class:z}=t;return s("div",y({class:[`${m}-root`,O]},uo(e,{data:!0})),[s(Bo,{prefixCls:m,visible:$&&C,motionName:fe(m,T,B),style:c({zIndex:F},E),maskProps:D},null),s("div",y({tabIndex:-1,onKeydown:S,class:X(`${m}-wrap`,I),ref:d,onClick:x,role:"dialog","aria-labelledby":j?b.value:null,style:c(c({zIndex:F},N),{display:v.value?null:"none"})},W),[s(To,y(y({},Te(e,["scrollLocker"])),{},{style:R,class:z,onMousedown:r,onMouseup:p,ref:g,closable:H,ariaId:b.value,prefixCls:m,visible:C,onClose:u,onVisibleChanged:f,motionName:fe(m,_,A)}),n)])])}}}),Po=re(),Fo=M({compatConfig:{MODE:3},name:"DialogWrap",inheritAttrs:!1,props:Z(Po,{visible:!1}),setup(e,o){let{attrs:t,slots:n}=o;const l=U(e.visible);return je({},{inTriggerContext:!1}),J(()=>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(mo,{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)}]},zo=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}},Ke(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, diff --git a/src/agentkit/server/static/assets/index-CivBWDtQ.js b/src/agentkit/server/static/assets/index-Cvavw3q5.js similarity index 99% rename from src/agentkit/server/static/assets/index-CivBWDtQ.js rename to src/agentkit/server/static/assets/index-Cvavw3q5.js index d3c3d53..67b26d5 100644 --- a/src/agentkit/server/static/assets/index-CivBWDtQ.js +++ b/src/agentkit/server/static/assets/index-Cvavw3q5.js @@ -1 +1 @@ -import{d as W,Q as lt,i as Q,a2 as it,z as i,c as v,f,r as R,R as F,P as T,D as L,aR as st,x as ut,y as ct,A as G,aN as O,J as I,H as dt,M as mt,aP as gt,aG as bt,p as ft,v as vt}from"./index-Cdm90D30.js";import{c as q}from"./zoom-DFzZ47uz.js";import{e as J,i as k}from"./base-BzUb4EcV.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 ht=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 Q(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 h=s+10,m=[];for(let r=s;r<=h;r+=1)m.push(r);const l=m.findIndex(r=>r%10===e.prevValue);d=m.map((r,y)=>{const $=r%10;return K(i(i({},t),{value:$,offset:y-l,current:y===l}))});const u=e.prevCountn()},[d])}}});var $t=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:h,show:m,component:l="sup",class:u,style:r}=d,y=$t(d,["prefixCls","count","title","show","component","class","style"]),$=i(i({},y),{style:r,"data-show":t.show,class:F(n.value,u),title:h});let g=s;if(s&&Number(s)%1===0){const b=String(s).split("");g=b.map((P,z)=>v(ht,{prefixCls:n.value,count:Number(s),value:P,key:b.length-z},null))}r&&r.borderColor&&($.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,$,{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:h,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}}}}),$=J(t,(g,S)=>{let{darkColor:b}=S;return{[`&${u}-color-${g}`]:{background:b,color:b}}});return{[o]:i(i(i(i({},G(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:h,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({},G(t)),{position:"absolute",top:h,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}}),$),{[`&${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,h="auto",m=p-2*s,l=t.colorBgContainer,u="normal",r=e,y=t.colorError,$=t.colorErrorHover,g=o,S=e/2,b=e,P=e/2,z=ct(t,{badgeFontHeight:p,badgeShadowSize:s,badgeZIndex:h,badgeHeight:m,badgeTextColor:l,badgeFontWeight:u,badgeFontSize:r,badgeColor:y,badgeColorHover:$,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:T.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)),h=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"]),$={},g={};return t.color&&!s.value&&($.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:[h.value,u,p.value],style:i(i({},$),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)])]))}}}),Tt=t=>!isNaN(parseFloat(t))&&isFinite(t),Dt=()=>({count:T.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:T.any,offset:Array,numberStyle:{type:Object,default:void 0},title:String}),M=W({compatConfig:{MODE:3},name:"ABadge",Ribbon:V,inheritAttrs:!1,props:Dt(),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),h=f(()=>s.value==="0"||s.value===0),m=f(()=>t.count===null||h.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&&!h.value),r=f(()=>u.value?"":s.value),y=f(()=>(r.value===null||r.value===void 0||r.value===""||h.value&&!t.showZero)&&!u.value),$=R(t.count),g=R(r.value),S=R(u.value);Q([()=>t.count,r,u],()=>{y.value||($.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 D,_;const{offset:N,title:Z,color:X}=t,U=e.style,j=dt(a,t,"text"),x=n.value,C=$.value;let w=mt((D=a.default)===null||D===void 0?void 0:D.call(a));w=w.length?w:null;const A=!!(!y.value||a.count),E=(()=>{if(!N)return i({},U);const B={marginTop:Tt(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:E},!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=E.color;return d(v("span",I(I({},e),{},{class:Y,style:E}),[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({},E),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,Tt as i}; +import{d as W,Q as lt,i as Q,a2 as it,z as i,c as v,f,r as R,R as F,P as T,D as L,aR as st,x as ut,y as ct,A as G,aN as O,J as I,H as dt,M as mt,aP as gt,aG as bt,p as ft,v as vt}from"./index-MxXYiP1e.js";import{c as q}from"./zoom-BTwsIXn4.js";import{e as J,i as k}from"./base--VGJiuPH.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 ht=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 Q(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 h=s+10,m=[];for(let r=s;r<=h;r+=1)m.push(r);const l=m.findIndex(r=>r%10===e.prevValue);d=m.map((r,y)=>{const $=r%10;return K(i(i({},t),{value:$,offset:y-l,current:y===l}))});const u=e.prevCountn()},[d])}}});var $t=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:h,show:m,component:l="sup",class:u,style:r}=d,y=$t(d,["prefixCls","count","title","show","component","class","style"]),$=i(i({},y),{style:r,"data-show":t.show,class:F(n.value,u),title:h});let g=s;if(s&&Number(s)%1===0){const b=String(s).split("");g=b.map((P,z)=>v(ht,{prefixCls:n.value,count:Number(s),value:P,key:b.length-z},null))}r&&r.borderColor&&($.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,$,{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:h,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}}}}),$=J(t,(g,S)=>{let{darkColor:b}=S;return{[`&${u}-color-${g}`]:{background:b,color:b}}});return{[o]:i(i(i(i({},G(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:h,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({},G(t)),{position:"absolute",top:h,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}}),$),{[`&${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,h="auto",m=p-2*s,l=t.colorBgContainer,u="normal",r=e,y=t.colorError,$=t.colorErrorHover,g=o,S=e/2,b=e,P=e/2,z=ct(t,{badgeFontHeight:p,badgeShadowSize:s,badgeZIndex:h,badgeHeight:m,badgeTextColor:l,badgeFontWeight:u,badgeFontSize:r,badgeColor:y,badgeColorHover:$,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:T.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)),h=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"]),$={},g={};return t.color&&!s.value&&($.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:[h.value,u,p.value],style:i(i({},$),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)])]))}}}),Tt=t=>!isNaN(parseFloat(t))&&isFinite(t),Dt=()=>({count:T.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:T.any,offset:Array,numberStyle:{type:Object,default:void 0},title:String}),M=W({compatConfig:{MODE:3},name:"ABadge",Ribbon:V,inheritAttrs:!1,props:Dt(),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),h=f(()=>s.value==="0"||s.value===0),m=f(()=>t.count===null||h.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&&!h.value),r=f(()=>u.value?"":s.value),y=f(()=>(r.value===null||r.value===void 0||r.value===""||h.value&&!t.showZero)&&!u.value),$=R(t.count),g=R(r.value),S=R(u.value);Q([()=>t.count,r,u],()=>{y.value||($.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 D,_;const{offset:N,title:Z,color:X}=t,U=e.style,j=dt(a,t,"text"),x=n.value,C=$.value;let w=mt((D=a.default)===null||D===void 0?void 0:D.call(a));w=w.length?w:null;const A=!!(!y.value||a.count),E=(()=>{if(!N)return i({},U);const B={marginTop:Tt(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:E},!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=E.color;return d(v("span",I(I({},e),{},{class:Y,style:E}),[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({},E),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,Tt as i}; diff --git a/src/agentkit/server/static/assets/index-Chz7LVBG.js b/src/agentkit/server/static/assets/index-DVAHMIEx.js similarity index 98% rename from src/agentkit/server/static/assets/index-Chz7LVBG.js rename to src/agentkit/server/static/assets/index-DVAHMIEx.js index 2399f76..001f4de 100644 --- a/src/agentkit/server/static/assets/index-Chz7LVBG.js +++ b/src/agentkit/server/static/assets/index-DVAHMIEx.js @@ -1,2 +1,2 @@ -import{B as V,C as K,x as oo,y as eo,z as I,A as j,aN as to,b3 as L,d as H,D as W,R as U,c as T,J as D,aX as M,f as O,r as F,P as N,aw as E,at as z,i as ro,aB as G,aO as no,G as ao}from"./index-Cdm90D30.js";import{V as io}from"./Checkbox-CGUdikGP.js";import{u as X,o as lo,F as so}from"./FormItemContext-C7duC9vx.js";const J=Symbol("radioGroupContextKey"),co=o=>{K(J,o)},uo=()=>V(J,void 0),q=Symbol("radioOptionTypeContextKey"),po=o=>{K(q,o)},bo=()=>V(q,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 &, +import{B as V,C as K,x as oo,y as eo,z as I,A as j,aN as to,b3 as L,d as H,D as W,R as U,c as T,J as D,aX as M,f as O,r as F,P as N,aw as E,at as z,i as ro,aB as G,aO as no,G as ao}from"./index-MxXYiP1e.js";import{V as io}from"./Checkbox-r-colYvs.js";import{u as X,o as lo,F as so}from"./FormItemContext-CIZixMRP.js";const J=Symbol("radioGroupContextKey"),co=o=>{K(J,o)},uo=()=>V(J,void 0),q=Symbol("radioOptionTypeContextKey"),po=o=>{K(q,o)},bo=()=>V(q,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({},L(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:_}=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({},L(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:_,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:z(),disabled:z(),isGroup:z(),value:N.any,name:String,id:String,autofocus:z(),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=M(),g=O(()=>{var l;return(l=h.value)!==null&&l!==void 0?l:B.value}),f=F(),{prefixCls:x,direction:c,disabled:h}=W("radio",o),a=O(()=>(b==null?void 0:b.optionType.value)==="button"||C==="button"?`${x.value}-button`:x.value),m=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:_=s.id.value}=o,A=vo(o,["prefixCls","id"]),$=I(I({prefixCls:a.value,id:_},lo(A,["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(T("label",D(D({},d),{},{class:Z}),[T(io,D(D({},$),{},{type:"radio",ref:f}),null),e.default&&T("span",null,[e.default()])]))}}}),mo=()=>({prefixCls:String,value:N.any,size:G(),options:no(),disabled:z(),name:String,buttonStyle:G("outline"),id:String,optionType:G("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}=W("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 T(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 T(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(T("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}=W("radio",o);return po("button"),()=>{var d;return T(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{k as R,So as _,$o as a}; diff --git a/src/agentkit/server/static/assets/index-CUxjTFZM.js b/src/agentkit/server/static/assets/index-DfYN6Ir9.js similarity index 98% rename from src/agentkit/server/static/assets/index-CUxjTFZM.js rename to src/agentkit/server/static/assets/index-DfYN6Ir9.js index 4b84e31..ce748e2 100644 --- a/src/agentkit/server/static/assets/index-CUxjTFZM.js +++ b/src/agentkit/server/static/assets/index-DfYN6Ir9.js @@ -1,4 +1,4 @@ -import{c as h,I as nt,d as Ee,T as He,R as j,J as A,aw as R,r as Ge,K as O,i as ee,z as v,f as W,at as F,ax as Z,aB as we,x as rt,A as Ae,aC as at,D as it,aX as lt,P as Se}from"./index-Cdm90D30.js";import{d as ot,D as st}from"./Dropdown-BfmL-5TH.js";import{w as ut}from"./devWarning-Ct6dVMcH.js";import{w as Ve}from"./_plugin-vue_export-helper-BpJgGuqH.js";import{K as le}from"./KeyCode-c8YLmrmC.js";import{u as dt,F as ct,o as ft,N as Be}from"./FormItemContext-C7duC9vx.js";import{c as pt}from"./zoom-DFzZ47uz.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-zQkkOnqV.js";import{g as $t,d as Nt,N as Te}from"./index-DlUg5G7X.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(xe()?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()?"":De(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:De(n),Oe(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 D(e){return xe()?new q(e):new z(e)}function Ie(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=D(e).add(`${i}0.${"0".repeat(n)}${10-p}`);return Ie(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 xt=200,It=600,Et=Ee({compatConfig:{MODE:3},name:"StepHandler",inheritAttrs:!1,props:{prefixCls:String,upDisabled:Boolean,downDisabled:Boolean,onStep:R()},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,xt)}i.value=setTimeout(p,It)},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}),I={unselectable:"on",role:"button",onMouseup:d,onMouseleave:d},{upNode:$,downNode:E}=n;return h("div",{class:`${s}-wrap`},[h("span",A(A({},I),{},{onMousedown:_=>{l(_,!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",A(A({},I),{},{onMousedown:_=>{l(_,!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=O(0),t=()=>{Ve.cancel(e.value)};return He(()=>{t()}),n=>{t(),e.value=Ve(()=>{n()})}};var Dt=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=D(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:R(),formatter:R(),precision:Number,decimalSeparator:String,onInput:R(),onChange:R(),onPressEnter:R(),onStep:R(),onBlur:R(),onFocus:R()}),Ot=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=O(),c=O(!1),f=O(!1),p=O(!1),s=O(D(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))},I=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,"")},$=O(""),E=(r,o)=>{if(e.formatter)return e.formatter(r,{userTyping:o,input:String($.value)});let u=typeof r=="number"?De(r):r;if(!o){const m=S(u,o);if(Oe(u)&&(e.decimalSeparator||m>=0)){const y=e.decimalSeparator||".";u=Ie(u,y,m)}}return u},_=(()=>{const r=e.value;return s.value.isInvalidate()&&["string","number"].includes(typeof r)?Number.isNaN(r)?"":r:E(s.value.toString(),!1)})();$.value=_;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)),x=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),J=(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=D(Ie(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=I(r),m=D(u);m.isNaN()||J(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},Q=()=>{p.value=!1,Y(d.value.value)},H=r=>{Y(r.target.value)},G=r=>{var o,u;if(r&&x.value||!r&&V.value)return;f.value=!1;let m=D(e.step);r||(m=m.negate());const y=(s.value||D(0)).add(m.toString()),M=J(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=D(I($.value));let u=o;o.isNaN()?u=s.value:u=J(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=D(e.value);s.value=r;const o=D(I($.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:_e,onPressEnter:Me,onStep:Bt,lazy:Xe,class:Je,style:Ye}=r,Qe=Dt(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,Re=`${o}-input`,be={};return Xe?be.onChange=H:be.onInput=H,h("div",{class:j(o,Je,{[`${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:x.value,downDisabled:V.value,onStep:G},{upNode:Ze,downNode:et}),h("div",{class:`${Re}-wrap`},[h("input",A(A(A({autofocus:T,autocomplete:"off",role:"spinbutton","aria-valuemin":u,"aria-valuemax":m,"aria-valuenow":s.value.isInvalidate()?null:s.value.toString(),step:y},Qe),{},{ref:d,class:Re,value:$.value,disabled:ae,readonly:ie,onFocus:tt=>{c.value=!0,i("focus",tt)}},be),{},{onBlur:re,onCompositionstart:b,onCompositionend:Q,onBeforeinput:ue}),null)])])}}});function Ne(e){return e!=null}const _t=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:I,controlHeight:$,inputPaddingHorizontal:E,colorBgContainer:_,colorTextDisabled:C,borderRadiusSM:P,borderRadiusLG:N,controlWidth:x,handleVisible:V}=e;return[{[t]:v(v(v(v({},Ae(e)),Le(e)),Ue(e,t)),{display:"inline-block",width:x,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({},Ae(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:_,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%",[` +import{c as h,I as nt,d as Ee,T as He,R as j,J as A,aw as R,r as Ge,K as O,i as ee,z as v,f as W,at as F,ax as Z,aB as we,x as rt,A as Ae,aC as at,D as it,aX as lt,P as Se}from"./index-MxXYiP1e.js";import{d as ot,D as st}from"./Dropdown-EJ9XzwSc.js";import{w as ut}from"./devWarning-Ct6dVMcH.js";import{w as Ve}from"./_plugin-vue_export-helper-CbNEYfqg.js";import{K as le}from"./KeyCode-c8YLmrmC.js";import{u as dt,F as ct,o as ft,N as Be}from"./FormItemContext-CIZixMRP.js";import{c as pt}from"./zoom-BTwsIXn4.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-C-JDvA85.js";import{g as $t,d as Nt,N as Te}from"./index-p0fEGd1V.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(xe()?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()?"":De(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:De(n),Oe(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 D(e){return xe()?new q(e):new z(e)}function Ie(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=D(e).add(`${i}0.${"0".repeat(n)}${10-p}`);return Ie(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 xt=200,It=600,Et=Ee({compatConfig:{MODE:3},name:"StepHandler",inheritAttrs:!1,props:{prefixCls:String,upDisabled:Boolean,downDisabled:Boolean,onStep:R()},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,xt)}i.value=setTimeout(p,It)},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}),I={unselectable:"on",role:"button",onMouseup:d,onMouseleave:d},{upNode:$,downNode:E}=n;return h("div",{class:`${s}-wrap`},[h("span",A(A({},I),{},{onMousedown:_=>{l(_,!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",A(A({},I),{},{onMousedown:_=>{l(_,!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=O(0),t=()=>{Ve.cancel(e.value)};return He(()=>{t()}),n=>{t(),e.value=Ve(()=>{n()})}};var Dt=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=D(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:R(),formatter:R(),precision:Number,decimalSeparator:String,onInput:R(),onChange:R(),onPressEnter:R(),onStep:R(),onBlur:R(),onFocus:R()}),Ot=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=O(),c=O(!1),f=O(!1),p=O(!1),s=O(D(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))},I=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,"")},$=O(""),E=(r,o)=>{if(e.formatter)return e.formatter(r,{userTyping:o,input:String($.value)});let u=typeof r=="number"?De(r):r;if(!o){const m=S(u,o);if(Oe(u)&&(e.decimalSeparator||m>=0)){const y=e.decimalSeparator||".";u=Ie(u,y,m)}}return u},_=(()=>{const r=e.value;return s.value.isInvalidate()&&["string","number"].includes(typeof r)?Number.isNaN(r)?"":r:E(s.value.toString(),!1)})();$.value=_;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)),x=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),J=(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=D(Ie(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=I(r),m=D(u);m.isNaN()||J(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},Q=()=>{p.value=!1,Y(d.value.value)},H=r=>{Y(r.target.value)},G=r=>{var o,u;if(r&&x.value||!r&&V.value)return;f.value=!1;let m=D(e.step);r||(m=m.negate());const y=(s.value||D(0)).add(m.toString()),M=J(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=D(I($.value));let u=o;o.isNaN()?u=s.value:u=J(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=D(e.value);s.value=r;const o=D(I($.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:_e,onPressEnter:Me,onStep:Bt,lazy:Xe,class:Je,style:Ye}=r,Qe=Dt(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,Re=`${o}-input`,be={};return Xe?be.onChange=H:be.onInput=H,h("div",{class:j(o,Je,{[`${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:x.value,downDisabled:V.value,onStep:G},{upNode:Ze,downNode:et}),h("div",{class:`${Re}-wrap`},[h("input",A(A(A({autofocus:T,autocomplete:"off",role:"spinbutton","aria-valuemin":u,"aria-valuemax":m,"aria-valuenow":s.value.isInvalidate()?null:s.value.toString(),step:y},Qe),{},{ref:d,class:Re,value:$.value,disabled:ae,readonly:ie,onFocus:tt=>{c.value=!0,i("focus",tt)}},be),{},{onBlur:re,onCompositionstart:b,onCompositionend:Q,onBeforeinput:ue}),null)])])}}});function Ne(e){return e!=null}const _t=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:I,controlHeight:$,inputPaddingHorizontal:E,colorBgContainer:_,colorTextDisabled:C,borderRadiusSM:P,borderRadiusLG:N,controlWidth:x,handleVisible:V}=e;return[{[t]:v(v(v(v({},Ae(e)),Le(e)),Ue(e,t)),{display:"inline-block",width:x,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({},Ae(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:_,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%",[` diff --git a/src/agentkit/server/static/assets/index-DS4F546Z.js b/src/agentkit/server/static/assets/index-DuQZmgYZ.js similarity index 90% rename from src/agentkit/server/static/assets/index-DS4F546Z.js rename to src/agentkit/server/static/assets/index-DuQZmgYZ.js index a176009..dc179e8 100644 --- a/src/agentkit/server/static/assets/index-DS4F546Z.js +++ b/src/agentkit/server/static/assets/index-DuQZmgYZ.js @@ -1 +1 @@ -import{d as k,D as J,i as L,aR as M,c as m,z as p,F as W,J as F,r as G,f as s,at as q,P as I,aA as R,R as H}from"./index-Cdm90D30.js";import{u as K}from"./index-Bw7-qyYZ.js";import{a as Q,C as z}from"./index-DlUg5G7X.js";const U={small:8,middle:16,large:24},X=()=>({prefixCls:String,size:{type:[String,Number,Array]},direction:I.oneOf(R("horizontal","vertical")).def("horizontal"),align:I.oneOf(R("start","end","center","baseline")),wrap:q()});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}=J("space",e),[B,D]=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();L(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),P=s(()=>H(l.value,D.value,`${l.value}-${e.direction}`,{[`${l.value}-rtl`]:x.value==="rtl",[`${l.value}-align-${C.value}`]:C.value})),E=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=M(b),A=w.length;if(A===0)return null;const c=(t=o.split)===null||t===void 0?void 0:t.call(o),_=`${l.value}-item`,N=y.value,S=A-1;return m("div",F(F({},f),{},{class:[P.value,f.class],style:[T.value,f.style]}),[w.map((O,u)=>{let $=b.indexOf(O);$===-1&&($=`$$space-${u}`);let v={};return h.value||(V==="vertical"?u({prefixCls:String,size:{type:[String,Number,Array]},direction:I.oneOf(R("horizontal","vertical")).def("horizontal"),align:I.oneOf(R("start","end","center","baseline")),wrap:q()});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}=J("space",e),[B,D]=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();L(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),P=s(()=>H(l.value,D.value,`${l.value}-${e.direction}`,{[`${l.value}-rtl`]:x.value==="rtl",[`${l.value}-align-${C.value}`]:C.value})),E=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=M(b),A=w.length;if(A===0)return null;const c=(t=o.split)===null||t===void 0?void 0:t.call(o),_=`${l.value}-item`,N=y.value,S=A-1;return m("div",F(F({},f),{},{class:[P.value,f.class],style:[T.value,f.style]}),[w.map((O,u)=>{let $=b.indexOf(O);$===-1&&($=`$$space-${u}`);let v={};return h.value||(V==="vertical"?ue.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:R="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($t,{disabled:!p,onResize:F=>{let{offsetWidth:H}=F;d(H)}},{default:()=>f(R,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`),R=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&&R.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($+R.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 E={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),E)},{default:()=>[V(K.value)]}));else{const N=L||un;k=()=>f(we,C(C({},O),E),{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($t,{disabled:!w.value,onResize:D},{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/bt(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 bt(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}=Pn[n];return[tn(o,l,r,e.motionDurationMid),{[` +import{d as J,B as me,f as m,C as be,P as re,a2 as Bt,c as f,J as C,R as ye,r as U,i as oe,K as T,z as y,aN as ve,I as kt,W as Ue,a6 as qe,T as Oe,M as ft,ab as pt,aF as gt,aK as He,aP as Ft,aG as zt,p as Nt,v as Ht,bz as Qe,F as Fe,H as yt,G as Lt,b3 as jt,aV as Wt,x as Vt,y as Ze,aW as Je,aU as et,A as Xt,aC as Yt,D as Gt,E as Ut,L as De,bA as qt,e as Ce}from"./index-MxXYiP1e.js";import{d as Me}from"./devWarning-Ct6dVMcH.js";import{y as bt,q as Qt,u as Zt,A as Jt,T as en}from"./base--VGJiuPH.js";import{t as Ae,w as Te}from"./_plugin-vue_export-helper-CbNEYfqg.js";import{R as $t}from"./index-BzwcKMhL.js";import{f as tn,c as Le,i as nn}from"./zoom-BTwsIXn4.js";import{K as on}from"./KeyCode-c8YLmrmC.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:R="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($t,{disabled:!p,onResize:F=>{let{offsetWidth:H}=F;d(H)}},{default:()=>f(R,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`),R=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&&R.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($+R.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 E={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),E)},{default:()=>[V(K.value)]}));else{const N=L||un;k=()=>f(we,C(C({},O),E),{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($t,{disabled:!w.value,onResize:D},{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/bt(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 bt(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}=Pn[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}}]},En=e=>({[e.componentCls]:{[`${e.antCls}-motion-collapse-legacy`]:{overflow:"hidden","&-active":{transition:`height ${e.motionDurationMid} ${e.motionEaseInOut}, diff --git a/src/agentkit/server/static/assets/index-Cdm90D30.js b/src/agentkit/server/static/assets/index-MxXYiP1e.js similarity index 98% rename from src/agentkit/server/static/assets/index-Cdm90D30.js rename to src/agentkit/server/static/assets/index-MxXYiP1e.js index 4f3b500..7bfd7f0 100644 --- a/src/agentkit/server/static/assets/index-Cdm90D30.js +++ b/src/agentkit/server/static/assets/index-MxXYiP1e.js @@ -1,4 +1,4 @@ -const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/AgentLayout-CtYJ1_b1.js","assets/chat-DurNpMLt.js","assets/base-BzUb4EcV.js","assets/_plugin-vue_export-helper-BpJgGuqH.js","assets/zoom-DFzZ47uz.js","assets/index-CivBWDtQ.js","assets/SettingOutlined-B1U74h0J.js","assets/PlusOutlined-BZYJdEGN.js","assets/DesktopOutlined-ClGl-80a.js","assets/AppstoreOutlined-D2IhpVp5.js","assets/AgentLayout-BoHQ-707.css","assets/ChatView-DA2wPu1A.js","assets/index-DlUg5G7X.js","assets/devWarning-Ct6dVMcH.js","assets/LeftOutlined-Cjp7xl2E.js","assets/FolderOpenOutlined-aJTansHZ.js","assets/responsiveObserve-Dze5mRNR.js","assets/index-zQkkOnqV.js","assets/FormItemContext-C7duC9vx.js","assets/index-DQ-PTKeR.js","assets/index-BMDKnjoj.js","assets/UserOutlined-C607Q7TU.js","assets/index-B9Cq1xD6.js","assets/index-DBNRwHot.js","assets/KeyCode-c8YLmrmC.js","assets/styleChecker-DuXayfgz.js","assets/ChatView-DGuMaiL8.css","assets/WorkflowView-BhS6yKYX.js","assets/index-DS4F546Z.js","assets/index-Bw7-qyYZ.js","assets/Dropdown-BfmL-5TH.js","assets/pickAttrs-cDcy8MZ0.js","assets/index-DUKU9Yum.js","assets/DeleteOutlined-C9vx5Gyj.js","assets/index-CPf0IATs.js","assets/Checkbox-CGUdikGP.js","assets/index-Chz7LVBG.js","assets/index-CUxjTFZM.js","assets/index-Bm5ZpeOU.js","assets/WorkflowView-D_CnUZD8.css","assets/TerminalView-CWX3TF8I.js","assets/TerminalView-Dg1PpXnU.css","assets/EvolutionView-Knd2v7RU.js","assets/index-CQzZ-h-2.js","assets/index-DWEEelzT.js","assets/EvolutionView-DokvaL7M.css","assets/ComputerUseView-BslO-Pem.js","assets/ComputerUseView-DLnWxFj5.css","assets/AppLayout-CVkEttfS.js","assets/AppLayout-D3vb9nEe.css","assets/KnowledgeBaseView-B2lh4rdM.js","assets/index-Bhzy1-DW.js","assets/KnowledgeBaseView-B7BP9eFg.css","assets/SkillsView-TRawAwRE.js","assets/index-B8imcus9.js","assets/SkillsView-C1h55c-o.css","assets/SettingsView-wpl4DuIA.js","assets/SettingsView-DU8lFOKb.css"])))=>i.map(i=>d[i]); +const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/AgentLayout-BjfWaflq.js","assets/chat-_tit2gm5.js","assets/base--VGJiuPH.js","assets/_plugin-vue_export-helper-CbNEYfqg.js","assets/zoom-BTwsIXn4.js","assets/index-Cvavw3q5.js","assets/SettingOutlined-BPSWwgov.js","assets/PlusOutlined-CMd58dlX.js","assets/DesktopOutlined-B5tFIirw.js","assets/AppstoreOutlined-CK96XqwQ.js","assets/AgentLayout-BoHQ-707.css","assets/ChatView-CBFvpIso.js","assets/index-p0fEGd1V.js","assets/devWarning-Ct6dVMcH.js","assets/LeftOutlined-CAv2mg6T.js","assets/FolderOpenOutlined-DkHI-22a.js","assets/responsiveObserve-BPXXLIQF.js","assets/index-C-JDvA85.js","assets/FormItemContext-CIZixMRP.js","assets/index-BzwcKMhL.js","assets/index-BaJrEU40.js","assets/UserOutlined-3o_0Hvh7.js","assets/index-BjhFFLnY.js","assets/index-BsO-BQWw.js","assets/KeyCode-c8YLmrmC.js","assets/styleChecker-BO8K1F6-.js","assets/ChatView-CFmQzkwB.css","assets/WorkflowView-DBRRErEj.js","assets/index-DuQZmgYZ.js","assets/index-6F6eWDOC.js","assets/Dropdown-EJ9XzwSc.js","assets/pickAttrs-CdccUdli.js","assets/index-DzzgX9TA.js","assets/DeleteOutlined-CclyZH8N.js","assets/index-CIqRW9zM.js","assets/Checkbox-r-colYvs.js","assets/index-DVAHMIEx.js","assets/index-DfYN6Ir9.js","assets/index-CpcJSnGu.js","assets/WorkflowView-CkW9lcI4.css","assets/TerminalView-CVh893sy.js","assets/TerminalView-Dg1PpXnU.css","assets/EvolutionView-BcrIraMF.js","assets/index-0ftJ_VhH.js","assets/index-CUHLv4kD.js","assets/EvolutionView-DokvaL7M.css","assets/ComputerUseView-BABiOncW.js","assets/ComputerUseView-DLnWxFj5.css","assets/AppLayout-C9PVB9qY.js","assets/AppLayout-D3vb9nEe.css","assets/KnowledgeBaseView-DFe-BwZs.js","assets/index-Cm4StDv9.js","assets/KnowledgeBaseView-B7BP9eFg.css","assets/SkillsView-Cw0mKely.js","assets/index-coNRyS0Q.js","assets/SkillsView-C1h55c-o.css","assets/SettingsView-DTyyjurU.js","assets/SettingsView-DU8lFOKb.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 @@ -138,4 +138,4 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho * vue-router v4.6.4 * (c) 2025 Eduardo San Martin Morote * @license MIT - */let Vb=()=>location.protocol+"//"+location.host;function Ld(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),oc(a,"")}return oc(n,e)+r+o}function Gb(e,t,n,r){let o=[],i=[],s=null;const a=({state:d})=>{const p=Ld(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:ys.pop,direction:w?w>0?Li.forward:Li.back:Li.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:ai()}),"")}}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 cc(e,t,n,r=!1,o=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:o?ai():null}}function Ub(e){const{history:t,location:n}=window,r={value:Ld(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:Vb()+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,cc(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:ai()});i(u.current,u,!0),i(l,ae({},cc(r.value,l,null),{position:u.position+1},c),!1),r.value=l}return{location:r,state:o,push:a,replace:s}}function Wb(e){e=Ab(e);const t=Ub(e),n=Gb(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:Ib.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 vn=function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.Group=2]="Group",e}({});var we=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}(we||{});const Kb={type:vn.Static,value:""},qb=/[a-zA-Z0-9_]/;function Xb(e){if(!e)return[[]];if(e==="/")return[[Kb]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(p){throw new Error(`ERR (${n})/"${c}": ${p}`)}let n=we.Static,r=n;const o=[];let i;function s(){i&&o.push(i),i=[]}let a=0,l,c="",u="";function f(){c&&(n===we.Static?i.push({type:vn.Static,value:c}):n===we.Param||n===we.ParamRegExp||n===we.ParamRegExpEnd?(i.length>1&&(l==="*"||l==="+")&&t(`A repeatable param (${c}) must be alone in its segment. eg: '/:ids+.`),i.push({type:vn.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]===De.Static+De.Segment?1:-1:0}function jd(e,t){let n=0;const r=e.score,o=t.score;for(;n0&&t[t.length-1]<0}const e1={strict:!1,end:!0,sensitive:!1};function t1(e,t,n){const r=Jb(Xb(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 n1(e,t){const n=[],r=new Map;t=rc(e1,t);function o(f){return r.get(f)}function i(f,d,p){const v=!p,m=pc(f);m.aliasOf=p&&p.record;const w=rc(t,f),x=[m];if("alias"in f){const _=typeof f.alias=="string"?[f.alias]:f.alias;for(const P of _)x.push(pc(ae({},m,{components:p?p.record.components:m.components,path:P,aliasOf:p?p.record:m})))}let C,E;for(const _ of x){const{path:P}=_;if(d&&P[0]!=="/"){const j=d.record.path,b=j[j.length-1]==="/"?"":"/";_.path=d.record.path+(P&&b+P)}if(C=t1(_,d,w),p?p.alias.push(C):(E=E||C,E!==C&&E.alias.push(C),v&&f.name&&!hc(C)&&s(f.name)),Dd(C)&&l(C),m.children){const j=m.children;for(let b=0;b{s(E)}:Nr}function s(f){if(Nd(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=i1(f,n);n.splice(d,0,f),f.record.name&&!hc(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 or(ye.MATCHER_NOT_FOUND,{location:f});w=p.record.name,v=ae(dc(d.params,p.keys.filter(E=>!E.optional).concat(p.parent?p.parent.keys.filter(E=>E.optional):[]).map(E=>E.name)),f.params&&dc(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 or(ye.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:o1(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 dc(e,t){const n={};for(const r of t)r in e&&(n[r]=e[r]);return n}function pc(e){const t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:r1(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 r1(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 hc(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function o1(e){return e.reduce((t,n)=>ae(t,n.meta),{})}function i1(e,t){let n=0,r=t.length;for(;n!==r;){const i=n+r>>1;jd(e,t[i])<0?r=i:n=i+1}const o=s1(e);return o&&(r=t.lastIndexOf(o,r-1)),r}function s1(e){let t=e;for(;t=t.parent;)if(Dd(t)&&jd(e,t)===0)return t}function Dd({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function gc(e){const t=me(li),n=me(fa),r=L(()=>{const l=ke(e.to);return t.resolve(l)}),o=L(()=>{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(rr.bind(null,u));if(d>-1)return d;const p=mc(l[c-2]);return c>1&&mc(u)===p&&f[f.length-1].path!==p?f.findIndex(rr.bind(null,l[c-2])):d}),i=L(()=>o.value>-1&&f1(n.params,r.value.params)),s=L(()=>o.value>-1&&o.value===n.matched.length-1&&Md(n.params,r.value.params));function a(l={}){if(u1(l)){const c=t[ke(e.replace)?"replace":"push"](ke(e.to)).catch(Nr);return e.viewTransition&&typeof document<"u"&&"startViewTransition"in document&&document.startViewTransition(()=>c),c}return Promise.resolve()}return{route:r,href:L(()=>r.value.href),isActive:i,isExactActive:s,navigate:a}}function a1(e){return e.length===1?e[0]:e}const l1=be({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:gc,setup(e,{slots:t}){const n=mt(gc(e)),{options:r}=me(li),o=L(()=>({[vc(e.activeClass,r.linkActiveClass,"router-link-active")]:n.isActive,[vc(e.exactActiveClass,r.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const i=t.default&&a1(t.default(n));return e.custom?i:Ut("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:o.value},i)}}}),c1=l1;function u1(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 f1(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(!bt(o)||o.length!==r.length||r.some((i,s)=>i.valueOf()!==o[s].valueOf()))return!1}return!0}function mc(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const vc=(e,t,n)=>e??t??n,d1=be({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const r=me(Cs),o=L(()=>e.route||r.value),i=me(lc,0),s=L(()=>{let c=ke(i);const{matched:u}=o.value;let f;for(;(f=u[c])&&!f.components;)c++;return c}),a=L(()=>o.value.matched[s.value]);ct(lc,L(()=>s.value+1)),ct(Bb,a),ct(Cs,o);const l=We();return Ke(()=>[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||!rr(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 yc(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=Ut(d,ae({},v,t,{onVnodeUnmounted:x=>{x.component.isUnmounted&&(f.instances[u]=null)},ref:l}));return yc(n.default,{Component:w,route:c})||w}}});function yc(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const p1=d1;function h1(e){const t=n1(e.routes,e),n=e.parseQuery||Fb,r=e.stringifyQuery||ac,o=e.history,i=yr(),s=yr(),a=yr(),l=lt(Xt);let c=Xt;kn&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const u=Ni.bind(null,R=>""+R),f=Ni.bind(null,_b),d=Ni.bind(null,Gr);function p(R,U){let V,q;return Nd(R)?(V=t.getRecordMatcher(R),q=U):q=R,t.addRoute(q,V)}function v(R){const U=t.getRecordMatcher(R);U&&t.removeRoute(U)}function m(){return t.getRoutes().map(R=>R.record)}function w(R){return!!t.getRecordMatcher(R)}function x(R,U){if(U=ae({},U||l.value),typeof R=="string"){const y=ki(n,R,U.path),I=t.resolve({path:y.path},U),M=o.createHref(y.fullPath);return ae(y,I,{params:d(I.params),hash:Gr(y.hash),redirectedFrom:void 0,href:M})}let V;if(R.path!=null)V=ae({},R,{path:ki(n,R.path,U.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)}),U.params=f(U.params)}const q=t.resolve(V,U),oe=R.hash||"";q.params=u(d(q.params));const h=Eb(r,ae({},R,{hash:bb(oe),path:q.path})),g=o.createHref(h);return ae({fullPath:h,hash:oe,query:r===ac?Hb(R.query):R.query||{}},q,{redirectedFrom:void 0,href:g})}function C(R){return typeof R=="string"?ki(n,R,l.value.path):ae({},R)}function E(R,U){if(c!==R)return or(ye.NAVIGATION_CANCELLED,{from:U,to:R})}function _(R){return b(R)}function P(R){return _(ae(C(R),{replace:!0}))}function j(R,U){const V=R.matched[R.matched.length-1];if(V&&V.redirect){const{redirect:q}=V;let oe=typeof q=="function"?q(R,U):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,U){const V=c=x(R),q=l.value,oe=R.state,h=R.force,g=R.replace===!0,y=j(V,q);if(y)return b(ae(C(y),{state:typeof y=="object"?ae({},oe,y.state):oe,force:h,replace:g}),U||V);const I=V;I.redirectedFrom=U;let M;return!h&&Pb(r,q,V)&&(M=or(ye.NAVIGATION_DUPLICATED,{to:I,from:q}),Ct(q,q,!0,!1)),(M?Promise.resolve(M):W(I,q)).catch($=>Lt($)?Lt($,ye.NAVIGATION_GUARD_REDIRECT)?$:Kt($):ne($,I,q)).then($=>{if($){if(Lt($,ye.NAVIGATION_GUARD_REDIRECT))return b(ae({replace:g},C($.to),{state:typeof $.to=="object"?ae({},oe,$.to.state):oe,force:h}),U||I)}else $=D(I,q,!0,g,oe);return J(I,q,$),$})}function S(R,U){const V=E(R,U);return V?Promise.reject(V):Promise.resolve()}function O(R){const U=An.values().next().value;return U&&typeof U.runWithContext=="function"?U.runWithContext(R):R()}function W(R,U){let V;const[q,oe,h]=zb(R,U);V=ji(q.reverse(),"beforeRouteLeave",R,U);for(const y of q)y.leaveGuards.forEach(I=>{V.push(en(I,R,U))});const g=S.bind(null,R,U);return V.push(g),it(V).then(()=>{V=[];for(const y of i.list())V.push(en(y,R,U));return V.push(g),it(V)}).then(()=>{V=ji(oe,"beforeRouteUpdate",R,U);for(const y of oe)y.updateGuards.forEach(I=>{V.push(en(I,R,U))});return V.push(g),it(V)}).then(()=>{V=[];for(const y of h)if(y.beforeEnter)if(bt(y.beforeEnter))for(const I of y.beforeEnter)V.push(en(I,R,U));else V.push(en(y.beforeEnter,R,U));return V.push(g),it(V)}).then(()=>(R.matched.forEach(y=>y.enterCallbacks={}),V=ji(h,"beforeRouteEnter",R,U,O),V.push(g),it(V))).then(()=>{V=[];for(const y of s.list())V.push(en(y,R,U));return V.push(g),it(V)}).catch(y=>Lt(y,ye.NAVIGATION_CANCELLED)?y:Promise.reject(y))}function J(R,U,V){a.list().forEach(q=>O(()=>q(R,U,V)))}function D(R,U,V,q,oe){const h=E(R,U);if(h)return h;const g=U===Xt,y=kn?history.state:{};V&&(q||g?o.replace(R.fullPath,ae({scroll:g&&y&&y.scroll},oe)):o.push(R.fullPath,oe)),l.value=R,Ct(R,U,V,g),Kt()}let te;function ce(){te||(te=o.listen((R,U,V)=>{if(!an.listening)return;const q=x(R),oe=j(q,an.currentRoute.value);if(oe){b(ae(oe,{replace:!0,force:!0}),q).catch(Nr);return}c=q;const h=l.value;kn&&Nb(sc(h.fullPath,V.delta),ai()),W(q,h).catch(g=>Lt(g,ye.NAVIGATION_ABORTED|ye.NAVIGATION_CANCELLED)?g:Lt(g,ye.NAVIGATION_GUARD_REDIRECT)?(b(ae(C(g.to),{force:!0}),q).then(y=>{Lt(y,ye.NAVIGATION_ABORTED|ye.NAVIGATION_DUPLICATED)&&!V.delta&&V.type===ys.pop&&o.go(-1,!1)}).catch(Nr),Promise.reject()):(V.delta&&o.go(-V.delta,!1),ne(g,q,h))).then(g=>{g=g||D(q,h,!1),g&&(V.delta&&!Lt(g,ye.NAVIGATION_CANCELLED)?o.go(-V.delta,!1):V.type===ys.pop&&Lt(g,ye.NAVIGATION_ABORTED|ye.NAVIGATION_DUPLICATED)&&o.go(-1,!1)),J(q,h,g)}).catch(Nr)}))}let N=yr(),B=yr(),K;function ne(R,U,V){Kt(R);const q=B.list();return q.length?q.forEach(oe=>oe(R,U,V)):console.error(R),Promise.reject(R)}function Xe(){return K&&l.value!==Xt?Promise.resolve():new Promise((R,U)=>{N.add([R,U])})}function Kt(R){return K||(K=!R,ce(),N.list().forEach(([U,V])=>R?V(R):U()),N.reset()),R}function Ct(R,U,V,q){const{scrollBehavior:oe}=e;if(!kn||!oe)return Promise.resolve();const h=!V&&kb(sc(R.fullPath,0))||(q||!V)&&history.state&&history.state.scroll||null;return qr().then(()=>oe(R,U,h)).then(g=>g&&Mb(g)).catch(g=>ne(g,R,U))}const Ge=R=>o.go(R);let Tn;const An=new Set,an={currentRoute:l,listening:!0,addRoute:p,removeRoute:v,clearRoutes:t.clearRoutes,hasRoute:w,getRoutes:m,resolve:x,options:e,push:_,replace:P,go:Ge,back:()=>Ge(-1),forward:()=>Ge(1),beforeEach:i.add,beforeResolve:s.add,afterEach:a.add,onError:B.add,isReady:Xe,install(R){R.component("RouterLink",c1),R.component("RouterView",p1),R.config.globalProperties.$router=an,Object.defineProperty(R.config.globalProperties,"$route",{enumerable:!0,get:()=>ke(l)}),kn&&!Tn&&l.value===Xt&&(Tn=!0,_(o.location).catch(q=>{}));const U={};for(const q in Xt)Object.defineProperty(U,q,{get:()=>l.value[q],enumerable:!0});R.provide(li,an),R.provide(fa,Uc(U)),R.provide(Cs,l);const V=R.unmount;An.add(R),R.unmount=function(){An.delete(R),An.size<1&&(c=Xt,te&&te(),te=null,l.value=Xt,Tn=!1,K=!1),V()}}};function it(R){return R.reduce((U,V)=>U.then(()=>O(V)),Promise.resolve())}return an}function fC(){return me(li)}function dC(e){return me(fa)}const g1=[{path:"/agent",name:"agent",component:()=>Ue(()=>import("./AgentLayout-CtYJ1_b1.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10])),meta:{title:"AgentKit"},children:[{path:"",redirect:"/agent/chat"},{path:"chat",name:"agent-chat",meta:{title:"对话",quadrant:"tl",tab:"chat"},component:()=>Ue(()=>import("./ChatView-DA2wPu1A.js"),__vite__mapDeps([11,1,2,3,4,12,13,14,7,15,16,17,18,19,20,21,22,23,24,25,26]))},{path:"code",name:"agent-code",meta:{title:"代码",quadrant:"tr",tab:"code"},component:()=>Ue(()=>import("./WorkflowView-BhS6yKYX.js"),__vite__mapDeps([27,2,3,4,21,23,12,13,28,29,30,24,17,18,19,31,32,16,25,33,15,22,14,34,35,36,37,38,7,39]))},{path:"terminal",name:"agent-terminal",meta:{title:"终端",quadrant:"bl",tab:"terminal"},component:()=>Ue(()=>import("./TerminalView-CWX3TF8I.js"),__vite__mapDeps([40,3,12,13,38,24,18,31,4,25,34,35,41]))},{path:"monitor",name:"agent-monitor",meta:{title:"监控",quadrant:"br",tab:"monitor"},component:()=>Ue(()=>import("./EvolutionView-Knd2v7RU.js"),__vite__mapDeps([42,2,3,4,43,44,24,32,13,19,30,17,18,12,31,7,23,36,35,45]))}]},{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:()=>Ue(()=>import("./ComputerUseView-BslO-Pem.js"),__vite__mapDeps([46,8,12,3,13,47])),meta:{title:"Computer Use"}},{path:"/legacy",name:"legacy",component:()=>Ue(()=>import("./AppLayout-CVkEttfS.js"),__vite__mapDeps([48,1,2,3,4,32,13,19,24,5,14,6,9,8,49])),meta:{title:"Fischer AgentKit (Legacy)"},children:[{path:"",redirect:"/legacy/chat"},{path:"chat",name:"legacy-chat",component:()=>Ue(()=>import("./ChatView-DA2wPu1A.js"),__vite__mapDeps([11,1,2,3,4,12,13,14,7,15,16,17,18,19,20,21,22,23,24,25,26])),meta:{title:"智能对话"}},{path:"workflow",name:"legacy-workflow",component:()=>Ue(()=>import("./WorkflowView-BhS6yKYX.js"),__vite__mapDeps([27,2,3,4,21,23,12,13,28,29,30,24,17,18,19,31,32,16,25,33,15,22,14,34,35,36,37,38,7,39])),meta:{title:"工作流"}},{path:"knowledge",name:"legacy-knowledge",component:()=>Ue(()=>import("./KnowledgeBaseView-B2lh4rdM.js"),__vite__mapDeps([50,2,3,4,31,29,30,24,17,18,12,13,19,32,16,25,33,15,22,14,34,35,36,44,7,51,23,20,38,5,28,37,52])),meta:{title:"知识库"}},{path:"skills",name:"legacy-skills",component:()=>Ue(()=>import("./SkillsView-TRawAwRE.js"),__vite__mapDeps([53,2,3,4,43,44,24,32,13,19,30,17,18,12,31,7,23,5,9,16,51,28,29,25,22,38,54,55])),meta:{title:"技能"}},{path:"terminal",name:"legacy-terminal",component:()=>Ue(()=>import("./TerminalView-CWX3TF8I.js"),__vite__mapDeps([40,3,12,13,38,24,18,31,4,25,34,35,41])),meta:{title:"终端"}},{path:"evolution",name:"legacy-evolution",component:()=>Ue(()=>import("./EvolutionView-Knd2v7RU.js"),__vite__mapDeps([42,2,3,4,43,44,24,32,13,19,30,17,18,12,31,7,23,36,35,45])),meta:{title:"自进化"}},{path:"settings",name:"legacy-settings",component:()=>Ue(()=>import("./SettingsView-wpl4DuIA.js"),__vite__mapDeps([56,2,3,4,44,24,32,13,19,30,17,18,12,31,7,54,29,16,25,37,57])),meta:{title:"设置"}}]}],Fd=h1({history:Wb(),routes:g1});Fd.beforeEach((e,t,n)=>{const r=e.meta.title;r&&(document.title=`${r} - Fischer AgentKit`),n()});const da=vg(sb);da.use(Cg());da.use(Fd);da.mount("#app");export{Oh as $,If as A,me as B,ct as C,ii as D,Yr as E,xe as F,qr as G,Y1 as H,Ve as I,$e as J,lt as K,Wo as L,zn as M,rC as N,_p as O,Kf as P,mt as Q,qe as R,vg as S,Ds as T,mf as U,B1 as V,re as W,sf as X,Q1 as Y,vr as Z,Ue as _,T1 as a,Vg as a$,M1 as a0,eo as a1,qo as a2,Zr as a3,k1 as a4,O1 as a5,y1 as a6,E1 as a7,Ac as a8,fu as a9,Wg as aA,ul as aB,_0 as aC,j1 as aD,Ju as aE,X1 as aF,$1 as aG,qs as aH,nC as aI,cC as aJ,et as aK,Yn as aL,$i as aM,_n as aN,cl as aO,lC as aP,Gu as aQ,Ks as aR,bp as aS,qf as aT,iC as aU,oC as aV,Ie as aW,rf as aX,J1 as aY,sC as aZ,Qu as a_,A1 as aa,Pn as ab,$c as ac,Zd as ad,m1 as ae,Ut as af,ge as ag,v1 as ah,Bi as ai,Rs as aj,Qp as ak,P1 as al,Ah as am,lr as an,ar as ao,ia as ap,Vr as aq,R1 as ar,N1 as as,Si as at,eC as au,Zi as av,Z1 as aw,Kg as ax,js as ay,cr as az,Mu as b,F1 as b0,V1 as b1,rb as b2,E0 as b3,Jg as b4,yt as b5,Qr as b6,zp as b7,ir as b8,D1 as b9,ou as bA,rv as bB,_1 as bC,z1 as bD,G1 as bE,K1 as bF,Oe as bG,Mo as bH,gf as bI,sv as bJ,rn as ba,H1 as bb,U1 as bc,W1 as bd,q1 as be,om as bf,ov as bg,ur as bh,ol as bi,Me as bj,Un as bk,uC as bl,tf as bm,L1 as bn,sa as bo,la as bp,aa as bq,tC as br,L0 as bs,Qg as bt,oi as bu,Up as bv,aC as bw,Lf as bx,Ug as by,zg as bz,T as c,be as d,ke as e,L as f,ws as g,w1 as h,Ke as i,S1 as j,Ao as k,x1 as l,Th as m,Es as n,Oo as o,b1 as p,C1 as q,We as r,dC as s,Jd as t,fC as u,I1 as v,eu as w,Zs as x,ri as y,A as z}; + */let Vb=()=>location.protocol+"//"+location.host;function Ld(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),oc(a,"")}return oc(n,e)+r+o}function Gb(e,t,n,r){let o=[],i=[],s=null;const a=({state:d})=>{const p=Ld(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:ys.pop,direction:w?w>0?Li.forward:Li.back:Li.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:ai()}),"")}}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 cc(e,t,n,r=!1,o=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:o?ai():null}}function Ub(e){const{history:t,location:n}=window,r={value:Ld(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:Vb()+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,cc(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:ai()});i(u.current,u,!0),i(l,ae({},cc(r.value,l,null),{position:u.position+1},c),!1),r.value=l}return{location:r,state:o,push:a,replace:s}}function Wb(e){e=Ab(e);const t=Ub(e),n=Gb(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:Ib.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 vn=function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.Group=2]="Group",e}({});var we=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}(we||{});const Kb={type:vn.Static,value:""},qb=/[a-zA-Z0-9_]/;function Xb(e){if(!e)return[[]];if(e==="/")return[[Kb]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(p){throw new Error(`ERR (${n})/"${c}": ${p}`)}let n=we.Static,r=n;const o=[];let i;function s(){i&&o.push(i),i=[]}let a=0,l,c="",u="";function f(){c&&(n===we.Static?i.push({type:vn.Static,value:c}):n===we.Param||n===we.ParamRegExp||n===we.ParamRegExpEnd?(i.length>1&&(l==="*"||l==="+")&&t(`A repeatable param (${c}) must be alone in its segment. eg: '/:ids+.`),i.push({type:vn.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]===De.Static+De.Segment?1:-1:0}function jd(e,t){let n=0;const r=e.score,o=t.score;for(;n0&&t[t.length-1]<0}const e1={strict:!1,end:!0,sensitive:!1};function t1(e,t,n){const r=Jb(Xb(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 n1(e,t){const n=[],r=new Map;t=rc(e1,t);function o(f){return r.get(f)}function i(f,d,p){const v=!p,m=pc(f);m.aliasOf=p&&p.record;const w=rc(t,f),x=[m];if("alias"in f){const _=typeof f.alias=="string"?[f.alias]:f.alias;for(const P of _)x.push(pc(ae({},m,{components:p?p.record.components:m.components,path:P,aliasOf:p?p.record:m})))}let C,E;for(const _ of x){const{path:P}=_;if(d&&P[0]!=="/"){const j=d.record.path,b=j[j.length-1]==="/"?"":"/";_.path=d.record.path+(P&&b+P)}if(C=t1(_,d,w),p?p.alias.push(C):(E=E||C,E!==C&&E.alias.push(C),v&&f.name&&!hc(C)&&s(f.name)),Dd(C)&&l(C),m.children){const j=m.children;for(let b=0;b{s(E)}:Nr}function s(f){if(Nd(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=i1(f,n);n.splice(d,0,f),f.record.name&&!hc(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 or(ye.MATCHER_NOT_FOUND,{location:f});w=p.record.name,v=ae(dc(d.params,p.keys.filter(E=>!E.optional).concat(p.parent?p.parent.keys.filter(E=>E.optional):[]).map(E=>E.name)),f.params&&dc(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 or(ye.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:o1(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 dc(e,t){const n={};for(const r of t)r in e&&(n[r]=e[r]);return n}function pc(e){const t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:r1(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 r1(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 hc(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function o1(e){return e.reduce((t,n)=>ae(t,n.meta),{})}function i1(e,t){let n=0,r=t.length;for(;n!==r;){const i=n+r>>1;jd(e,t[i])<0?r=i:n=i+1}const o=s1(e);return o&&(r=t.lastIndexOf(o,r-1)),r}function s1(e){let t=e;for(;t=t.parent;)if(Dd(t)&&jd(e,t)===0)return t}function Dd({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function gc(e){const t=me(li),n=me(fa),r=L(()=>{const l=ke(e.to);return t.resolve(l)}),o=L(()=>{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(rr.bind(null,u));if(d>-1)return d;const p=mc(l[c-2]);return c>1&&mc(u)===p&&f[f.length-1].path!==p?f.findIndex(rr.bind(null,l[c-2])):d}),i=L(()=>o.value>-1&&f1(n.params,r.value.params)),s=L(()=>o.value>-1&&o.value===n.matched.length-1&&Md(n.params,r.value.params));function a(l={}){if(u1(l)){const c=t[ke(e.replace)?"replace":"push"](ke(e.to)).catch(Nr);return e.viewTransition&&typeof document<"u"&&"startViewTransition"in document&&document.startViewTransition(()=>c),c}return Promise.resolve()}return{route:r,href:L(()=>r.value.href),isActive:i,isExactActive:s,navigate:a}}function a1(e){return e.length===1?e[0]:e}const l1=be({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:gc,setup(e,{slots:t}){const n=mt(gc(e)),{options:r}=me(li),o=L(()=>({[vc(e.activeClass,r.linkActiveClass,"router-link-active")]:n.isActive,[vc(e.exactActiveClass,r.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const i=t.default&&a1(t.default(n));return e.custom?i:Ut("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:o.value},i)}}}),c1=l1;function u1(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 f1(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(!bt(o)||o.length!==r.length||r.some((i,s)=>i.valueOf()!==o[s].valueOf()))return!1}return!0}function mc(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const vc=(e,t,n)=>e??t??n,d1=be({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const r=me(Cs),o=L(()=>e.route||r.value),i=me(lc,0),s=L(()=>{let c=ke(i);const{matched:u}=o.value;let f;for(;(f=u[c])&&!f.components;)c++;return c}),a=L(()=>o.value.matched[s.value]);ct(lc,L(()=>s.value+1)),ct(Bb,a),ct(Cs,o);const l=We();return Ke(()=>[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||!rr(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 yc(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=Ut(d,ae({},v,t,{onVnodeUnmounted:x=>{x.component.isUnmounted&&(f.instances[u]=null)},ref:l}));return yc(n.default,{Component:w,route:c})||w}}});function yc(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const p1=d1;function h1(e){const t=n1(e.routes,e),n=e.parseQuery||Fb,r=e.stringifyQuery||ac,o=e.history,i=yr(),s=yr(),a=yr(),l=lt(Xt);let c=Xt;kn&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const u=Ni.bind(null,R=>""+R),f=Ni.bind(null,_b),d=Ni.bind(null,Gr);function p(R,U){let V,q;return Nd(R)?(V=t.getRecordMatcher(R),q=U):q=R,t.addRoute(q,V)}function v(R){const U=t.getRecordMatcher(R);U&&t.removeRoute(U)}function m(){return t.getRoutes().map(R=>R.record)}function w(R){return!!t.getRecordMatcher(R)}function x(R,U){if(U=ae({},U||l.value),typeof R=="string"){const y=ki(n,R,U.path),I=t.resolve({path:y.path},U),M=o.createHref(y.fullPath);return ae(y,I,{params:d(I.params),hash:Gr(y.hash),redirectedFrom:void 0,href:M})}let V;if(R.path!=null)V=ae({},R,{path:ki(n,R.path,U.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)}),U.params=f(U.params)}const q=t.resolve(V,U),oe=R.hash||"";q.params=u(d(q.params));const h=Eb(r,ae({},R,{hash:bb(oe),path:q.path})),g=o.createHref(h);return ae({fullPath:h,hash:oe,query:r===ac?Hb(R.query):R.query||{}},q,{redirectedFrom:void 0,href:g})}function C(R){return typeof R=="string"?ki(n,R,l.value.path):ae({},R)}function E(R,U){if(c!==R)return or(ye.NAVIGATION_CANCELLED,{from:U,to:R})}function _(R){return b(R)}function P(R){return _(ae(C(R),{replace:!0}))}function j(R,U){const V=R.matched[R.matched.length-1];if(V&&V.redirect){const{redirect:q}=V;let oe=typeof q=="function"?q(R,U):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,U){const V=c=x(R),q=l.value,oe=R.state,h=R.force,g=R.replace===!0,y=j(V,q);if(y)return b(ae(C(y),{state:typeof y=="object"?ae({},oe,y.state):oe,force:h,replace:g}),U||V);const I=V;I.redirectedFrom=U;let M;return!h&&Pb(r,q,V)&&(M=or(ye.NAVIGATION_DUPLICATED,{to:I,from:q}),Ct(q,q,!0,!1)),(M?Promise.resolve(M):W(I,q)).catch($=>Lt($)?Lt($,ye.NAVIGATION_GUARD_REDIRECT)?$:Kt($):ne($,I,q)).then($=>{if($){if(Lt($,ye.NAVIGATION_GUARD_REDIRECT))return b(ae({replace:g},C($.to),{state:typeof $.to=="object"?ae({},oe,$.to.state):oe,force:h}),U||I)}else $=D(I,q,!0,g,oe);return J(I,q,$),$})}function S(R,U){const V=E(R,U);return V?Promise.reject(V):Promise.resolve()}function O(R){const U=An.values().next().value;return U&&typeof U.runWithContext=="function"?U.runWithContext(R):R()}function W(R,U){let V;const[q,oe,h]=zb(R,U);V=ji(q.reverse(),"beforeRouteLeave",R,U);for(const y of q)y.leaveGuards.forEach(I=>{V.push(en(I,R,U))});const g=S.bind(null,R,U);return V.push(g),it(V).then(()=>{V=[];for(const y of i.list())V.push(en(y,R,U));return V.push(g),it(V)}).then(()=>{V=ji(oe,"beforeRouteUpdate",R,U);for(const y of oe)y.updateGuards.forEach(I=>{V.push(en(I,R,U))});return V.push(g),it(V)}).then(()=>{V=[];for(const y of h)if(y.beforeEnter)if(bt(y.beforeEnter))for(const I of y.beforeEnter)V.push(en(I,R,U));else V.push(en(y.beforeEnter,R,U));return V.push(g),it(V)}).then(()=>(R.matched.forEach(y=>y.enterCallbacks={}),V=ji(h,"beforeRouteEnter",R,U,O),V.push(g),it(V))).then(()=>{V=[];for(const y of s.list())V.push(en(y,R,U));return V.push(g),it(V)}).catch(y=>Lt(y,ye.NAVIGATION_CANCELLED)?y:Promise.reject(y))}function J(R,U,V){a.list().forEach(q=>O(()=>q(R,U,V)))}function D(R,U,V,q,oe){const h=E(R,U);if(h)return h;const g=U===Xt,y=kn?history.state:{};V&&(q||g?o.replace(R.fullPath,ae({scroll:g&&y&&y.scroll},oe)):o.push(R.fullPath,oe)),l.value=R,Ct(R,U,V,g),Kt()}let te;function ce(){te||(te=o.listen((R,U,V)=>{if(!an.listening)return;const q=x(R),oe=j(q,an.currentRoute.value);if(oe){b(ae(oe,{replace:!0,force:!0}),q).catch(Nr);return}c=q;const h=l.value;kn&&Nb(sc(h.fullPath,V.delta),ai()),W(q,h).catch(g=>Lt(g,ye.NAVIGATION_ABORTED|ye.NAVIGATION_CANCELLED)?g:Lt(g,ye.NAVIGATION_GUARD_REDIRECT)?(b(ae(C(g.to),{force:!0}),q).then(y=>{Lt(y,ye.NAVIGATION_ABORTED|ye.NAVIGATION_DUPLICATED)&&!V.delta&&V.type===ys.pop&&o.go(-1,!1)}).catch(Nr),Promise.reject()):(V.delta&&o.go(-V.delta,!1),ne(g,q,h))).then(g=>{g=g||D(q,h,!1),g&&(V.delta&&!Lt(g,ye.NAVIGATION_CANCELLED)?o.go(-V.delta,!1):V.type===ys.pop&&Lt(g,ye.NAVIGATION_ABORTED|ye.NAVIGATION_DUPLICATED)&&o.go(-1,!1)),J(q,h,g)}).catch(Nr)}))}let N=yr(),B=yr(),K;function ne(R,U,V){Kt(R);const q=B.list();return q.length?q.forEach(oe=>oe(R,U,V)):console.error(R),Promise.reject(R)}function Xe(){return K&&l.value!==Xt?Promise.resolve():new Promise((R,U)=>{N.add([R,U])})}function Kt(R){return K||(K=!R,ce(),N.list().forEach(([U,V])=>R?V(R):U()),N.reset()),R}function Ct(R,U,V,q){const{scrollBehavior:oe}=e;if(!kn||!oe)return Promise.resolve();const h=!V&&kb(sc(R.fullPath,0))||(q||!V)&&history.state&&history.state.scroll||null;return qr().then(()=>oe(R,U,h)).then(g=>g&&Mb(g)).catch(g=>ne(g,R,U))}const Ge=R=>o.go(R);let Tn;const An=new Set,an={currentRoute:l,listening:!0,addRoute:p,removeRoute:v,clearRoutes:t.clearRoutes,hasRoute:w,getRoutes:m,resolve:x,options:e,push:_,replace:P,go:Ge,back:()=>Ge(-1),forward:()=>Ge(1),beforeEach:i.add,beforeResolve:s.add,afterEach:a.add,onError:B.add,isReady:Xe,install(R){R.component("RouterLink",c1),R.component("RouterView",p1),R.config.globalProperties.$router=an,Object.defineProperty(R.config.globalProperties,"$route",{enumerable:!0,get:()=>ke(l)}),kn&&!Tn&&l.value===Xt&&(Tn=!0,_(o.location).catch(q=>{}));const U={};for(const q in Xt)Object.defineProperty(U,q,{get:()=>l.value[q],enumerable:!0});R.provide(li,an),R.provide(fa,Uc(U)),R.provide(Cs,l);const V=R.unmount;An.add(R),R.unmount=function(){An.delete(R),An.size<1&&(c=Xt,te&&te(),te=null,l.value=Xt,Tn=!1,K=!1),V()}}};function it(R){return R.reduce((U,V)=>U.then(()=>O(V)),Promise.resolve())}return an}function fC(){return me(li)}function dC(e){return me(fa)}const g1=[{path:"/agent",name:"agent",component:()=>Ue(()=>import("./AgentLayout-BjfWaflq.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10])),meta:{title:"AgentKit"},children:[{path:"",redirect:"/agent/chat"},{path:"chat",name:"agent-chat",meta:{title:"对话",quadrant:"tl",tab:"chat"},component:()=>Ue(()=>import("./ChatView-CBFvpIso.js"),__vite__mapDeps([11,1,2,3,4,12,13,14,7,15,16,17,18,19,20,21,22,23,24,25,26]))},{path:"code",name:"agent-code",meta:{title:"代码",quadrant:"tr",tab:"code"},component:()=>Ue(()=>import("./WorkflowView-DBRRErEj.js"),__vite__mapDeps([27,2,3,4,21,23,12,13,28,29,30,24,17,18,19,31,32,16,25,33,15,22,14,34,35,36,37,38,7,39]))},{path:"terminal",name:"agent-terminal",meta:{title:"终端",quadrant:"bl",tab:"terminal"},component:()=>Ue(()=>import("./TerminalView-CVh893sy.js"),__vite__mapDeps([40,3,12,13,38,24,18,31,4,25,34,35,41]))},{path:"monitor",name:"agent-monitor",meta:{title:"监控",quadrant:"br",tab:"monitor"},component:()=>Ue(()=>import("./EvolutionView-BcrIraMF.js"),__vite__mapDeps([42,2,3,4,43,44,24,32,13,19,30,17,18,12,31,7,23,36,35,45]))}]},{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:()=>Ue(()=>import("./ComputerUseView-BABiOncW.js"),__vite__mapDeps([46,8,12,3,13,47])),meta:{title:"Computer Use"}},{path:"/legacy",name:"legacy",component:()=>Ue(()=>import("./AppLayout-C9PVB9qY.js"),__vite__mapDeps([48,1,2,3,4,32,13,19,24,5,14,6,9,8,49])),meta:{title:"Fischer AgentKit (Legacy)"},children:[{path:"",redirect:"/legacy/chat"},{path:"chat",name:"legacy-chat",component:()=>Ue(()=>import("./ChatView-CBFvpIso.js"),__vite__mapDeps([11,1,2,3,4,12,13,14,7,15,16,17,18,19,20,21,22,23,24,25,26])),meta:{title:"智能对话"}},{path:"workflow",name:"legacy-workflow",component:()=>Ue(()=>import("./WorkflowView-DBRRErEj.js"),__vite__mapDeps([27,2,3,4,21,23,12,13,28,29,30,24,17,18,19,31,32,16,25,33,15,22,14,34,35,36,37,38,7,39])),meta:{title:"工作流"}},{path:"knowledge",name:"legacy-knowledge",component:()=>Ue(()=>import("./KnowledgeBaseView-DFe-BwZs.js"),__vite__mapDeps([50,2,3,4,31,29,30,24,17,18,12,13,19,32,16,25,33,15,22,14,34,35,36,44,7,51,23,20,38,5,28,37,52])),meta:{title:"知识库"}},{path:"skills",name:"legacy-skills",component:()=>Ue(()=>import("./SkillsView-Cw0mKely.js"),__vite__mapDeps([53,2,3,4,43,44,24,32,13,19,30,17,18,12,31,7,23,5,9,16,51,28,29,25,22,38,54,55])),meta:{title:"技能"}},{path:"terminal",name:"legacy-terminal",component:()=>Ue(()=>import("./TerminalView-CVh893sy.js"),__vite__mapDeps([40,3,12,13,38,24,18,31,4,25,34,35,41])),meta:{title:"终端"}},{path:"evolution",name:"legacy-evolution",component:()=>Ue(()=>import("./EvolutionView-BcrIraMF.js"),__vite__mapDeps([42,2,3,4,43,44,24,32,13,19,30,17,18,12,31,7,23,36,35,45])),meta:{title:"自进化"}},{path:"settings",name:"legacy-settings",component:()=>Ue(()=>import("./SettingsView-DTyyjurU.js"),__vite__mapDeps([56,2,3,4,44,24,32,13,19,30,17,18,12,31,7,54,29,16,25,37,57])),meta:{title:"设置"}}]}],Fd=h1({history:Wb(),routes:g1});Fd.beforeEach((e,t,n)=>{const r=e.meta.title;r&&(document.title=`${r} - Fischer AgentKit`),n()});const da=vg(sb);da.use(Cg());da.use(Fd);da.mount("#app");export{Oh as $,If as A,me as B,ct as C,ii as D,Yr as E,xe as F,qr as G,Y1 as H,Ve as I,$e as J,lt as K,Wo as L,zn as M,rC as N,_p as O,Kf as P,mt as Q,qe as R,vg as S,Ds as T,mf as U,B1 as V,re as W,sf as X,Q1 as Y,vr as Z,Ue as _,T1 as a,Vg as a$,M1 as a0,eo as a1,qo as a2,Zr as a3,k1 as a4,O1 as a5,y1 as a6,E1 as a7,Ac as a8,fu as a9,Wg as aA,ul as aB,_0 as aC,j1 as aD,Ju as aE,X1 as aF,$1 as aG,qs as aH,nC as aI,cC as aJ,et as aK,Yn as aL,$i as aM,_n as aN,cl as aO,lC as aP,Gu as aQ,Ks as aR,bp as aS,qf as aT,iC as aU,oC as aV,Ie as aW,rf as aX,J1 as aY,sC as aZ,Qu as a_,A1 as aa,Pn as ab,$c as ac,Zd as ad,m1 as ae,Ut as af,ge as ag,v1 as ah,Bi as ai,Rs as aj,Qp as ak,P1 as al,Ah as am,lr as an,ar as ao,ia as ap,Vr as aq,R1 as ar,N1 as as,Si as at,eC as au,Zi as av,Z1 as aw,Kg as ax,js as ay,cr as az,Mu as b,F1 as b0,V1 as b1,rb as b2,E0 as b3,Jg as b4,yt as b5,Qr as b6,zp as b7,ir as b8,D1 as b9,ou as bA,rv as bB,_1 as bC,z1 as bD,G1 as bE,K1 as bF,Oe as bG,Mo as bH,gf as bI,sv as bJ,rn as ba,H1 as bb,U1 as bc,W1 as bd,q1 as be,om as bf,ov as bg,ur as bh,ol as bi,Me as bj,Un as bk,uC as bl,tf as bm,L1 as bn,sa as bo,la as bp,aa as bq,tC as br,L0 as bs,Qg as bt,oi as bu,Up as bv,aC as bw,Lf as bx,Ug as by,zg as bz,T as c,be as d,ke as e,L as f,ws as g,w1 as h,Ke as i,S1 as j,Ao as k,x1 as l,Th as m,Es as n,Oo as o,b1 as p,C1 as q,We as r,dC as s,Jd as t,fC as u,I1 as v,eu as w,Zs as x,ri as y,A as z}; diff --git a/src/agentkit/server/static/assets/index-B8imcus9.js b/src/agentkit/server/static/assets/index-coNRyS0Q.js similarity index 97% rename from src/agentkit/server/static/assets/index-B8imcus9.js rename to src/agentkit/server/static/assets/index-coNRyS0Q.js index e4d0146..333aa41 100644 --- a/src/agentkit/server/static/assets/index-B8imcus9.js +++ b/src/agentkit/server/static/assets/index-coNRyS0Q.js @@ -1,3 +1,3 @@ -import{x as K,y as Q,z as _,A as U,aH as Y,d as Z,D as oo,bo as eo,bp as no,bq as lo,ap as to,az as io,ao,bh as so,an as ro,R as co,c as s,a1 as uo,aF as go,aP as po,p as mo,v as fo,J as N,aG as vo,K as w,f as $o,P as v,aA as yo}from"./index-Cdm90D30.js";import{c as ho}from"./zoom-DFzZ47uz.js";const B=(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:x}=o;return{[e]:_(_({},U(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}, +import{x as K,y as Q,z as _,A as U,aH as Y,d as Z,D as oo,bo as eo,bp as no,bq as lo,ap as to,az as io,ao,bh as so,an as ro,R as co,c as s,a1 as uo,aF as go,aP as po,p as mo,v as fo,J as N,aG as vo,K as w,f as $o,P as v,aA as yo}from"./index-MxXYiP1e.js";import{c as ho}from"./zoom-BTwsIXn4.js";const B=(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:x}=o;return{[e]:_(_({},U(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:x,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}}},xo=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":B(a,i,n,o,e),"&-info":B(y,f,m,o,e),"&-warning":B(g,r,u,o,e),"&-error":_(_({},B(d,c,$,o,e)),{[`${e}-description > pre`]:{margin:0,padding:0}})}}},So=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}}}}},bo=o=>[Co(o),xo(o),So(o)],Io=K("Alert",o=>{const{fontSizeHeading3:e}=o,n=Q(o,{alertIconSizeLG:e,alertPaddingHorizontal:12});return[bo(n)]}),wo={success:ro,info:so,error:ao,warning:io},Bo={success:to,info:lo,error:no,warning:eo},_o=yo("success","info","warning","error"),Ho=()=>({type:v.oneOf(_o),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=Z({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)},x=$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,z,A,E,O,F,L;const{banner:M,closeIcon:G=(t=n.closeIcon)===null||t===void 0?void 0:t.call(n)}=o;let{closable:P,showIcon:h}=o;const D=(p=o.closeText)!==null&&p!==void 0?p:(H=n.closeText)===null||H===void 0?void 0:H.call(n),S=(T=o.description)!==null&&T!==void 0?T:(z=n.description)===null||z===void 0?void 0:z.call(n),R=(A=o.message)!==null&&A!==void 0?A:(E=n.message)===null||E===void 0?void 0:E.call(n),b=(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=M&&h===void 0?!0:h;const j=(S?Bo:wo)[x.value]||null;D&&(P=!0);const l=r.value,k=co(l,{[`${l}-${x.value}`]:!0,[`${l}-closing`]:d.value,[`${l}-with-description`]:!!S,[`${l}-no-icon`]:!h,[`${l}-banner`]:!!M,[`${l}-closable`]:P,[`${l}-rtl`]:g.value==="rtl",[c.value]:!0}),X=P?s("button",{type:"button",onClick:y,class:`${l}-close-icon`,tabindex:0},[D?s("span",{class:`${l}-close-text`},[D]):G===void 0?s(uo,null,null):G]):null,q=b&&(go(b)?ho(b,{class:`${l}-icon`}):s("span",{class:`${l}-icon`},[b]))||s(j,{class:`${l}-icon`},null),J=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,J,{default:()=>[mo(s("div",N(N({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`},[R?s("div",{class:`${l}-message`},[R]):null,S?s("div",{class:`${l}-description`},[S]):null]),W?s("div",{class:`${l}-action`},[W]):null,X]),[[fo,!d.value]])]}))}}}),Eo=Y(To);export{Eo as _}; diff --git a/src/agentkit/server/static/assets/index-DlUg5G7X.js b/src/agentkit/server/static/assets/index-p0fEGd1V.js similarity index 99% rename from src/agentkit/server/static/assets/index-DlUg5G7X.js rename to src/agentkit/server/static/assets/index-p0fEGd1V.js index 3cdd4fe..f346cac 100644 --- a/src/agentkit/server/static/assets/index-DlUg5G7X.js +++ b/src/agentkit/server/static/assets/index-p0fEGd1V.js @@ -1 +1 @@ -import{r as Ve,B as Ke,L as Re,Q as He,z as n,C as Ue,x as de,d as P,f as $,R as ue,D as U,M as me,c as p,J as W,at as Ce,P as F,aA as le,bi as ae,E as pe,T as X,aG as We,aK as Xe,K as O,V as ie,ab as De,i as Le,G as Oe,aY as Se,a3 as xe,y as ge,aZ as qe,bu as Je,ay as Qe,b6 as Ye,aX as Ze}from"./index-Cdm90D30.js";import{a as ke,b as eo,j as oo,q as to,m as ro,g as no,e as lo,s as ao,w as Ie,c as io,i as so}from"./_plugin-vue_export-helper-BpJgGuqH.js";import{d as Ae}from"./devWarning-Ct6dVMcH.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 Ue(o,a),Re(()=>{n(a,l,s||{})}),a},useInject:()=>Ke(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]",fo=Object.prototype,vo=fo.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(vo.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}},tt=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)}}}),rt=P({name:"ASpaceCompact",inheritAttrs:!1,props:ho(),setup(e,o){let{attrs:t,slots:r}=o;const{prefixCls:l,direction:s}=U("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:Xe(),className:String},setup(e){const o=O(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,f=getComputedStyle(u);r(To(u));const L=f.position==="static",{borderLeftWidth:Q,borderTopWidth:Y}=f;d(L?u.offsetLeft:ne(-parseFloat(Q))),C(L?u.offsetTop:ne(-parseFloat(Y))),g(u.offsetWidth),R(u.offsetHeight);const{borderTopLeftRadius:Z,borderTopRightRadius:be,borderBottomLeftRadius:ye,borderBottomRightRadius:i}=f;s([Z,be,i,ye].map(v=>ne(parseFloat(v))))}let B,h,z;const D=()=>{clearTimeout(z),Ie.cancel(h),B==null||B.disconnect()},A=()=>{var u;const f=(u=o.value)===null||u===void 0?void 0:u.parentElement;f&&(ae(null,f),f.parentElement&&f.parentElement.removeChild(f))};pe(()=>{D(),z=setTimeout(()=>{A()},5e3);const{target:u}=e;u&&(h=Ie(()=>{S(),E(!0)}),typeof ResizeObserver<"u"&&(B=new ResizeObserver(S),B.observe(u)))}),X(()=>{D()});const J=u=>{u.propertyName==="opacity"&&A()};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(f=>`${f}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 X(()=>{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}=U("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(()=>{Le(()=>e.disabled,()=>{C(),Oe(()=>{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"})}),X(()=>{C()}),()=>{var c;return(c=t.default)===null||c===void 0?void 0:c.call(t)[0]}}});function nt(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=>{Oe(()=>{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 Lo(e,o){return{[`&-item:not(${o}-last-item)`]:{marginBottom:-e.lineWidth},"&-item":{"&:hover,&:focus,&:active":{zIndex:2},"&[disabled]":{zIndex:0}}}}function Oo(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 Ao(e){const o=`${e.componentCls}-compact-vertical`;return{[o]:n(n({},Lo(e,o)),Oo(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}})}),fe=e=>({"&:disabled":n({},se(e))}),_e=e=>n({},fe(e)),K=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)),fe(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})),fe(e))}),Go=e=>n(n({},Me(e)),{borderStyle:"dashed"}),Fo=e=>n(n(n({color:e.colorLink},w({color:e.colorLinkHover},{color:e.colorLinkActive})),K(e)),{[`&${e.componentCls}-dangerous`]:n(n({color:e.colorError},w({color:e.colorErrorHover},{color:e.colorErrorActive})),K(e))}),Vo=e=>n(n(n({},w({color:e.colorText,backgroundColor:e.colorBgTextHover},{color:e.colorText,backgroundColor:e.colorBgTextActive})),K(e)),{[`&${e.componentCls}-dangerous`]:n(n({color:e.colorError},K(e)),w({color:e.colorErrorHover,backgroundColor:e.colorErrorBg},{color:e.colorErrorHover,backgroundColor:e.colorErrorBg}))}),Ko=e=>n(n({},se(e)),{[`&${e.componentCls}:hover`]:n({},se(e))}),Uo=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`]:Ko(e)}},ve=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)}]},Xo=e=>ve(e),qo=e=>{const o=ge(e,{controlHeight:e.controlHeightSM,padding:e.paddingXS,buttonPaddingHorizontal:8,borderRadius:e.borderRadiusSM});return ve(o,`${e.componentCls}-sm`)},Jo=e=>{const o=ge(e,{controlHeight:e.controlHeightLG,fontSize:e.fontSizeLG,borderRadius:e.borderRadiusLG});return ve(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),Xo(r),Jo(r),Qo(r),Uo(r),Do(r),xo(e,{focus:!1}),Ao(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}=U("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:Ae(!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}=U("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=O(null),S=O(void 0);let B=!1;const h=O(!1),z=O(!1),D=$(()=>d.value!==!1),{compactSize:A,compactItemClassnames:J}=yo(a,m),u=$(()=>typeof e.loading=="object"&&e.loading.delay?e.loading.delay||!0:!!e.loading);Le(u,i=>{clearTimeout(S.value),typeof u.value=="number"?S.value=setTimeout(()=>{h.value=i},u.value):h.value=i},{immediate:!0});const f=$(()=>{const{type:i,shape:v="default",ghost:T,block:x,danger:k}=e,y=a.value,N={large:"lg",small:"sm",middle:void 0},j=A.value||(b==null?void 0:b.size)||C.value,_=j&&N[j]||"";return[J.value,{[g.value]:!0,[`${y}`]:!0,[`${y}-${v}`]:v!=="default"&&v,[`${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"}]}),L=()=>{const i=E.value;if(!i||d.value===!1)return;const v=i.textContent;B&&Pe(v)?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,v)=>{const T=v?" ":"";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(()=>{Ae(!(e.ghost&&M(e.type)),"Button","`link` or `text` button can't be a `ghost` button.")}),pe(L),Qe(L),X(()=>{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,v;const{icon:T=(i=t.icon)===null||i===void 0?void 0:i.call(t)}=e,x=me((v=t.default)===null||v===void 0?void 0:v.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:[f.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,rt as C,tt as N,Ro as W,mo as a,Ho as b,nt as c,yo as d,Ne as e,xo as g,H as u}; +import{r as Ve,B as Ke,L as Re,Q as He,z as n,C as Ue,x as de,d as P,f as $,R as ue,D as U,M as me,c as p,J as W,at as Ce,P as F,aA as le,bi as ae,E as pe,T as X,aG as We,aK as Xe,K as O,V as ie,ab as De,i as Le,G as Oe,aY as Se,a3 as xe,y as ge,aZ as qe,bu as Je,ay as Qe,b6 as Ye,aX as Ze}from"./index-MxXYiP1e.js";import{a as ke,b as eo,j as oo,q as to,m as ro,g as no,e as lo,s as ao,w as Ie,c as io,i as so}from"./_plugin-vue_export-helper-CbNEYfqg.js";import{d as Ae}from"./devWarning-Ct6dVMcH.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 Ue(o,a),Re(()=>{n(a,l,s||{})}),a},useInject:()=>Ke(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]",fo=Object.prototype,vo=fo.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(vo.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}},tt=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)}}}),rt=P({name:"ASpaceCompact",inheritAttrs:!1,props:ho(),setup(e,o){let{attrs:t,slots:r}=o;const{prefixCls:l,direction:s}=U("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:Xe(),className:String},setup(e){const o=O(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,f=getComputedStyle(u);r(To(u));const L=f.position==="static",{borderLeftWidth:Q,borderTopWidth:Y}=f;d(L?u.offsetLeft:ne(-parseFloat(Q))),C(L?u.offsetTop:ne(-parseFloat(Y))),g(u.offsetWidth),R(u.offsetHeight);const{borderTopLeftRadius:Z,borderTopRightRadius:be,borderBottomLeftRadius:ye,borderBottomRightRadius:i}=f;s([Z,be,i,ye].map(v=>ne(parseFloat(v))))}let B,h,z;const D=()=>{clearTimeout(z),Ie.cancel(h),B==null||B.disconnect()},A=()=>{var u;const f=(u=o.value)===null||u===void 0?void 0:u.parentElement;f&&(ae(null,f),f.parentElement&&f.parentElement.removeChild(f))};pe(()=>{D(),z=setTimeout(()=>{A()},5e3);const{target:u}=e;u&&(h=Ie(()=>{S(),E(!0)}),typeof ResizeObserver<"u"&&(B=new ResizeObserver(S),B.observe(u)))}),X(()=>{D()});const J=u=>{u.propertyName==="opacity"&&A()};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(f=>`${f}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 X(()=>{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}=U("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(()=>{Le(()=>e.disabled,()=>{C(),Oe(()=>{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"})}),X(()=>{C()}),()=>{var c;return(c=t.default)===null||c===void 0?void 0:c.call(t)[0]}}});function nt(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=>{Oe(()=>{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 Lo(e,o){return{[`&-item:not(${o}-last-item)`]:{marginBottom:-e.lineWidth},"&-item":{"&:hover,&:focus,&:active":{zIndex:2},"&[disabled]":{zIndex:0}}}}function Oo(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 Ao(e){const o=`${e.componentCls}-compact-vertical`;return{[o]:n(n({},Lo(e,o)),Oo(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}})}),fe=e=>({"&:disabled":n({},se(e))}),_e=e=>n({},fe(e)),K=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)),fe(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})),fe(e))}),Go=e=>n(n({},Me(e)),{borderStyle:"dashed"}),Fo=e=>n(n(n({color:e.colorLink},w({color:e.colorLinkHover},{color:e.colorLinkActive})),K(e)),{[`&${e.componentCls}-dangerous`]:n(n({color:e.colorError},w({color:e.colorErrorHover},{color:e.colorErrorActive})),K(e))}),Vo=e=>n(n(n({},w({color:e.colorText,backgroundColor:e.colorBgTextHover},{color:e.colorText,backgroundColor:e.colorBgTextActive})),K(e)),{[`&${e.componentCls}-dangerous`]:n(n({color:e.colorError},K(e)),w({color:e.colorErrorHover,backgroundColor:e.colorErrorBg},{color:e.colorErrorHover,backgroundColor:e.colorErrorBg}))}),Ko=e=>n(n({},se(e)),{[`&${e.componentCls}:hover`]:n({},se(e))}),Uo=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`]:Ko(e)}},ve=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)}]},Xo=e=>ve(e),qo=e=>{const o=ge(e,{controlHeight:e.controlHeightSM,padding:e.paddingXS,buttonPaddingHorizontal:8,borderRadius:e.borderRadiusSM});return ve(o,`${e.componentCls}-sm`)},Jo=e=>{const o=ge(e,{controlHeight:e.controlHeightLG,fontSize:e.fontSizeLG,borderRadius:e.borderRadiusLG});return ve(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),Xo(r),Jo(r),Qo(r),Uo(r),Do(r),xo(e,{focus:!1}),Ao(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}=U("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:Ae(!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}=U("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=O(null),S=O(void 0);let B=!1;const h=O(!1),z=O(!1),D=$(()=>d.value!==!1),{compactSize:A,compactItemClassnames:J}=yo(a,m),u=$(()=>typeof e.loading=="object"&&e.loading.delay?e.loading.delay||!0:!!e.loading);Le(u,i=>{clearTimeout(S.value),typeof u.value=="number"?S.value=setTimeout(()=>{h.value=i},u.value):h.value=i},{immediate:!0});const f=$(()=>{const{type:i,shape:v="default",ghost:T,block:x,danger:k}=e,y=a.value,N={large:"lg",small:"sm",middle:void 0},j=A.value||(b==null?void 0:b.size)||C.value,_=j&&N[j]||"";return[J.value,{[g.value]:!0,[`${y}`]:!0,[`${y}-${v}`]:v!=="default"&&v,[`${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"}]}),L=()=>{const i=E.value;if(!i||d.value===!1)return;const v=i.textContent;B&&Pe(v)?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,v)=>{const T=v?" ":"";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(()=>{Ae(!(e.ghost&&M(e.type)),"Button","`link` or `text` button can't be a `ghost` button.")}),pe(L),Qe(L),X(()=>{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,v;const{icon:T=(i=t.icon)===null||i===void 0?void 0:i.call(t)}=e,x=me((v=t.default)===null||v===void 0?void 0:v.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:[f.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,rt as C,tt as N,Ro as W,mo as a,Ho as b,nt as c,yo as d,Ne as e,xo as g,H as u}; diff --git a/src/agentkit/server/static/assets/pickAttrs-cDcy8MZ0.js b/src/agentkit/server/static/assets/pickAttrs-CdccUdli.js similarity index 97% rename from src/agentkit/server/static/assets/pickAttrs-cDcy8MZ0.js rename to src/agentkit/server/static/assets/pickAttrs-CdccUdli.js index 559bcb4..b0ecfb4 100644 --- a/src/agentkit/server/static/assets/pickAttrs-cDcy8MZ0.js +++ b/src/agentkit/server/static/assets/pickAttrs-CdccUdli.js @@ -1,4 +1,4 @@ -import{z as i}from"./index-Cdm90D30.js";const l=`accept acceptcharset accesskey action allowfullscreen allowtransparency +import{z as i}from"./index-MxXYiP1e.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 diff --git a/src/agentkit/server/static/assets/responsiveObserve-Dze5mRNR.js b/src/agentkit/server/static/assets/responsiveObserve-BPXXLIQF.js similarity index 93% rename from src/agentkit/server/static/assets/responsiveObserve-Dze5mRNR.js rename to src/agentkit/server/static/assets/responsiveObserve-BPXXLIQF.js index 6f8dbd0..c1ca61d 100644 --- a/src/agentkit/server/static/assets/responsiveObserve-Dze5mRNR.js +++ b/src/agentkit/server/static/assets/responsiveObserve-BPXXLIQF.js @@ -1 +1 @@ -import{bu as m,f as o,z as l}from"./index-Cdm90D30.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),i=new Map;let a=-1,c={};return{matchHandlers:{},dispatch(e){return c=e,i.forEach(t=>t(c)),i.size>=1},subscribe(e){return i.size||this.register(),a+=1,i.set(a,e),e(c),a},unsubscribe(e){i.delete(e),i.size||this.unregister()},unregister(){Object.keys(n).forEach(e=>{const t=n[e],s=this.matchHandlers[t];s==null||s.mql.removeListener(s==null?void 0:s.listener)}),i.clear()},register(){Object.keys(n).forEach(e=>{const t=n[e],s=h=>{let{matches:x}=h;this.dispatch(l(l({},c),{[e]:x}))},d=window.matchMedia(t);d.addListener(s),this.matchHandlers[t]={mql:d,listener:s},s(d)})},responsiveMap:n}})}export{b as r,v as u}; +import{bu as m,f as o,z as l}from"./index-MxXYiP1e.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),i=new Map;let a=-1,c={};return{matchHandlers:{},dispatch(e){return c=e,i.forEach(t=>t(c)),i.size>=1},subscribe(e){return i.size||this.register(),a+=1,i.set(a,e),e(c),a},unsubscribe(e){i.delete(e),i.size||this.unregister()},unregister(){Object.keys(n).forEach(e=>{const t=n[e],s=this.matchHandlers[t];s==null||s.mql.removeListener(s==null?void 0:s.listener)}),i.clear()},register(){Object.keys(n).forEach(e=>{const t=n[e],s=h=>{let{matches:x}=h;this.dispatch(l(l({},c),{[e]:x}))},d=window.matchMedia(t);d.addListener(s),this.matchHandlers[t]={mql:d,listener:s},s(d)})},responsiveMap:n}})}export{b as r,v as u}; diff --git a/src/agentkit/server/static/assets/styleChecker-DuXayfgz.js b/src/agentkit/server/static/assets/styleChecker-BO8K1F6-.js similarity index 92% rename from src/agentkit/server/static/assets/styleChecker-DuXayfgz.js rename to src/agentkit/server/static/assets/styleChecker-BO8K1F6-.js index 884e071..baf609a 100644 --- a/src/agentkit/server/static/assets/styleChecker-DuXayfgz.js +++ b/src/agentkit/server/static/assets/styleChecker-BO8K1F6-.js @@ -1 +1 @@ -import{b8 as d}from"./index-Cdm90D30.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}; +import{b8 as d}from"./index-MxXYiP1e.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-DFzZ47uz.js b/src/agentkit/server/static/assets/zoom-BTwsIXn4.js similarity index 98% rename from src/agentkit/server/static/assets/zoom-DFzZ47uz.js rename to src/agentkit/server/static/assets/zoom-BTwsIXn4.js index 878edef..b0d45b3 100644 --- a/src/agentkit/server/static/assets/zoom-DFzZ47uz.js +++ b/src/agentkit/server/static/assets/zoom-BTwsIXn4.js @@ -1,4 +1,4 @@ -import{aR as x,ba as D,z as c,U as V,b5 as W,bG as _,F as H,bi as T,L as A,b8 as g,bH as j,bI as C,f as Z,d as G,P as q,ay as J,E as Q,i as k,G as X,T as Y,c as ee,bJ as te,at as ne,K as p,aN as s}from"./index-Cdm90D30.js";import{w as L}from"./_plugin-vue_export-helper-BpJgGuqH.js";let R=!1;try{const e=Object.defineProperty({},"passive",{get(){R=!0}});window.addEventListener("testPassive",null,e),window.removeEventListener("testPassive",null,e)}catch{}function Ee(e,n,o,t){if(e&&e.addEventListener){let r=t;r===void 0&&R&&(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=x(e)[0]),!r)return null;const a=D(r,n,t);return a.props=o?c(c({},a.props),n):a.props,V(typeof a.props.class!="object"),a}function Se(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 Ce(e,n,o){T(D(e,c({},n)),o)}const M=e=>(e||[]).some(n=>W(n)?!(n.type===_||n.type===H&&!M(n.children)):!0)?e:null;function Le(e,n,o,t){var r;const a=(r=e[n])===null||r===void 0?void 0:r.call(e,o);return M(a)?a:t==null?void 0:t()}let O;function B(e){if(typeof document>"u")return 0;if(O===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),O=r-a}return O}function P(e){const n=e.match(/^(.*)px$/),o=Number(n==null?void 0:n[1]);return Number.isNaN(o)?B():o}function Pe(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:P(n),height:P(o)}}const ae=`vc-util-locker-${Date.now()}`;let I=0;function re(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}function ie(e){const n=Z(()=>!!e&&!!e.value);I+=1;const o=`${ae}_${I}`;A(t=>{if(g()){if(n.value){const r=B(),a=re();j(` +import{aR as x,ba as D,z as c,U as V,b5 as W,bG as _,F as H,bi as T,L as A,b8 as g,bH as j,bI as C,f as Z,d as G,P as q,ay as J,E as Q,i as k,G as X,T as Y,c as ee,bJ as te,at as ne,K as p,aN as s}from"./index-MxXYiP1e.js";import{w as L}from"./_plugin-vue_export-helper-CbNEYfqg.js";let R=!1;try{const e=Object.defineProperty({},"passive",{get(){R=!0}});window.addEventListener("testPassive",null,e),window.removeEventListener("testPassive",null,e)}catch{}function Ee(e,n,o,t){if(e&&e.addEventListener){let r=t;r===void 0&&R&&(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=x(e)[0]),!r)return null;const a=D(r,n,t);return a.props=o?c(c({},a.props),n):a.props,V(typeof a.props.class!="object"),a}function Se(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 Ce(e,n,o){T(D(e,c({},n)),o)}const M=e=>(e||[]).some(n=>W(n)?!(n.type===_||n.type===H&&!M(n.children)):!0)?e:null;function Le(e,n,o,t){var r;const a=(r=e[n])===null||r===void 0?void 0:r.call(e,o);return M(a)?a:t==null?void 0:t()}let O;function B(e){if(typeof document>"u")return 0;if(O===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),O=r-a}return O}function P(e){const n=e.match(/^(.*)px$/),o=Number(n==null?void 0:n[1]);return Number.isNaN(o)?B():o}function Pe(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:P(n),height:P(o)}}const ae=`vc-util-locker-${Date.now()}`;let I=0;function re(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}function ie(e){const n=Z(()=>!!e&&!!e.value);I+=1;const o=`${ae}_${I}`;A(t=>{if(g()){if(n.value){const r=B(),a=re();j(` html body { overflow-y: hidden; ${a?`width: calc(100% - ${r}px);`:""} diff --git a/src/agentkit/server/static/index.html b/src/agentkit/server/static/index.html index dd4ab5e..44979d1 100644 --- a/src/agentkit/server/static/index.html +++ b/src/agentkit/server/static/index.html @@ -5,7 +5,7 @@ Fischer AgentKit - +