agentstudio 0.1.18 → 0.1.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +26 -505
- package/bin/agentstudio.js +305 -0
- package/bin/agentstudio.js.map +1 -0
- package/bin/serviceManager.d.ts +16 -0
- package/bin/serviceManager.d.ts.map +1 -0
- package/bin/serviceManager.js +434 -0
- package/bin/serviceManager.js.map +1 -0
- package/config/index.d.ts +74 -0
- package/config/index.d.ts.map +1 -0
- package/config/index.js +166 -0
- package/config/index.js.map +1 -0
- package/config/paths.d.ts +81 -0
- package/config/paths.d.ts.map +1 -0
- package/config/paths.js +98 -0
- package/config/paths.js.map +1 -0
- package/index.d.ts +4 -0
- package/index.d.ts.map +1 -0
- package/index.js +369 -0
- package/index.js.map +1 -0
- package/jobs/taskTimeoutMonitor.d.ts +25 -0
- package/jobs/taskTimeoutMonitor.d.ts.map +1 -0
- package/jobs/taskTimeoutMonitor.js +94 -0
- package/jobs/taskTimeoutMonitor.js.map +1 -0
- package/middleware/a2aAuth.d.ts +38 -0
- package/middleware/a2aAuth.d.ts.map +1 -0
- package/middleware/a2aAuth.js +134 -0
- package/middleware/a2aAuth.js.map +1 -0
- package/{backend/dist/middleware → middleware}/auth.d.ts +3 -1
- package/middleware/auth.d.ts.map +1 -0
- package/middleware/auth.js +35 -0
- package/middleware/auth.js.map +1 -0
- package/middleware/httpsOnly.d.ts +38 -0
- package/middleware/httpsOnly.d.ts.map +1 -0
- package/middleware/httpsOnly.js +105 -0
- package/middleware/httpsOnly.js.map +1 -0
- package/middleware/rateLimiting.d.ts +37 -0
- package/middleware/rateLimiting.d.ts.map +1 -0
- package/middleware/rateLimiting.js +118 -0
- package/middleware/rateLimiting.js.map +1 -0
- package/package.json +43 -38
- package/public/assets/AgentsPage-Nvg2xu6K.js +10 -0
- package/public/assets/Button-Co56C389.js +1 -0
- package/public/assets/ChatPage-D6sol0ad.js +442 -0
- package/public/assets/CommandForm-Bk7F_HU8.js +7 -0
- package/public/assets/CommandsPage-DZHyOdKd.js +1 -0
- package/public/assets/DashboardPage-29qC7Ev1.js +15 -0
- package/public/assets/FileBrowser-BYweUPH4.js +6 -0
- package/public/assets/FileExplorer-DNYj6Tsx.js +1 -0
- package/public/assets/GeneralSettingsPage-D9Xa7Nd8.js +1 -0
- package/public/assets/LandingPage-CjnT-cvO.js +1 -0
- package/public/assets/LoginPage-DcaGNCXH.js +16 -0
- package/public/assets/McpAdminSettingsPage-DgR3E2Bd.js +7 -0
- package/public/assets/McpPage-CtWf1CoL.js +40 -0
- package/public/assets/MemorySettingsPage-JTry4Ccp.js +1 -0
- package/public/assets/PluginsPage-D-BHjQ3P.js +1 -0
- package/public/assets/ProjectSelector-DSXOjMQC.js +1 -0
- package/public/assets/ProjectsPage-lLUk4-Xa.js +21 -0
- package/public/assets/ScheduledTasksPage-5hPbd9Vs.js +1 -0
- package/public/assets/SettingsLayout-DGJspXLp.js +1 -0
- package/public/assets/SkillsPage-DBw0m7D2.js +18 -0
- package/{backend/dist/frontend/assets/SubagentForm-DXtTTIKg.js → public/assets/SubagentForm-BdUK1U4y.js} +2 -2
- package/public/assets/SubagentsPage-Dnq70IFd.js +1 -0
- package/{backend/dist/frontend/assets/ToastTestPage-DT4wuN5C.js → public/assets/ToastTestPage-BfJQRFIm.js} +1 -1
- package/public/assets/ToolsList-Dl5F2fWk.js +1 -0
- package/public/assets/UnifiedToolSelector-CNbPsiuq.js +1 -0
- package/public/assets/VersionSettingsPage-BfoCcham.js +5 -0
- package/public/assets/_basePickBy-7C_e0Xv1.js +1 -0
- package/public/assets/_baseUniq-eGJNLBzx.js +1 -0
- package/public/assets/agents-ChrA1R0y.js +1 -0
- package/public/assets/arc-CuA752eE.js +1 -0
- package/public/assets/architectureDiagram-VXUJARFQ-BnPYh1OW.js +36 -0
- package/public/assets/blockDiagram-VD42YOAC-72nsMt_i.js +122 -0
- package/public/assets/c4Diagram-YG6GDRKO-BNJSAXcg.js +10 -0
- package/public/assets/channel-CIunGC5m.js +1 -0
- package/public/assets/chunk-4BX2VUAB-RPxkCWhH.js +1 -0
- package/public/assets/chunk-55IACEB6-3ePDt0kp.js +1 -0
- package/public/assets/chunk-B4BG7PRW-CBg_BBfl.js +165 -0
- package/public/assets/chunk-DI55MBZ5-DIh69TUJ.js +220 -0
- package/public/assets/chunk-FMBD7UC4-BbjwhyTe.js +15 -0
- package/public/assets/chunk-QN33PNHL-BpH-o_YR.js +1 -0
- package/public/assets/chunk-QZHKN3VN-DYB7rh5Q.js +1 -0
- package/public/assets/chunk-TZMSLE5B-DPCYEVb3.js +1 -0
- package/public/assets/classDiagram-2ON5EDUG-aUQHFsTA.js +1 -0
- package/public/assets/classDiagram-v2-WZHVMYZB-aUQHFsTA.js +1 -0
- package/public/assets/clone-Ckf7tA1V.js +1 -0
- package/public/assets/cose-bilkent-S5V4N54A-CnpfmL-Y.js +1 -0
- package/public/assets/cytoscape.esm-DtBltrT8.js +331 -0
- package/public/assets/dagre-6UL2VRFP-DR9x77Xf.js +4 -0
- package/{backend/dist/frontend/assets/data-structures-DLJedtzx.js → public/assets/data-structures-C0h9Oap1.js} +1 -1
- package/public/assets/defaultLocale-C4B-KCzX.js +1 -0
- package/public/assets/diagram-PSM6KHXK-SONPsQNx.js +24 -0
- package/public/assets/diagram-QEK2KX5R-BKYFSfC1.js +43 -0
- package/public/assets/diagram-S2PKOQOG-CkM0APZj.js +24 -0
- package/public/assets/erDiagram-Q2GNP2WA-BX1DpOGx.js +60 -0
- package/public/assets/flowDiagram-NV44I4VS-HAAlzNbq.js +162 -0
- package/public/assets/ganttDiagram-LVOFAZNH-BqzWexqa.js +267 -0
- package/public/assets/gitGraphDiagram-NY62KEGX-CIPmSp43.js +65 -0
- package/public/assets/graph-m515btDj.js +1 -0
- package/public/assets/index-Bn3v3S9-.js +293 -0
- package/public/assets/index-DWieeYj4.css +1 -0
- package/public/assets/infoDiagram-F6ZHWCRC-Pn4yNWrF.js +2 -0
- package/public/assets/init-Gi6I4Gst.js +1 -0
- package/public/assets/journeyDiagram-XKPGCS4Q-BfzTomS0.js +139 -0
- package/public/assets/kanban-definition-3W4ZIXB7-Cgju7b-L.js +89 -0
- package/public/assets/katex-qrhCpa0F.js +261 -0
- package/public/assets/layout-BKQfQSxJ.js +1 -0
- package/public/assets/linear-DigtLz3B.js +1 -0
- package/public/assets/mindmap-definition-VGOIOE7T-qopraVFy.js +68 -0
- package/public/assets/monaco-editor-DHKm5-VF.js +19 -0
- package/public/assets/ordinal-Cboi1Yqb.js +1 -0
- package/public/assets/pieDiagram-ADFJNKIX-BcoaAI-L.js +30 -0
- package/public/assets/quadrantDiagram-AYHSOK5B-D-DwcoSd.js +7 -0
- package/public/assets/requirementDiagram-UZGBJVZJ-DbQCpx77.js +64 -0
- package/public/assets/sankeyDiagram-TZEHDZUN-BVk8387S.js +10 -0
- package/public/assets/sequenceDiagram-WL72ISMW-BdzICjxO.js +145 -0
- package/public/assets/stateDiagram-FKZM4ZOC-CYY-uUvJ.js +1 -0
- package/public/assets/stateDiagram-v2-4FDKWEC3-Dh2Kvomq.js +1 -0
- package/{backend/dist/frontend/assets/syntax-highlighting-YWvMU4Hm.js → public/assets/syntax-highlighting-CnREyncB.js} +5 -5
- package/public/assets/tabManager-B2LQO_Ll.js +30 -0
- package/{backend/dist/frontend/assets/table-D6q1rytw.js → public/assets/table-D0L2RL5i.js} +1 -1
- package/public/assets/timeline-definition-IT6M3QCI-BAvjPYvX.js +61 -0
- package/public/assets/tools-IcPNZlPj.js +1 -0
- package/public/assets/treemap-KMMF4GRG-DtkpVA56.js +128 -0
- package/{backend/dist/frontend/assets/ui-components-Cw21Epuw.js → public/assets/ui-components-D1St49qC.js} +231 -96
- package/public/assets/useAgents-BnDTkOG8.js +2 -0
- package/public/assets/useClaudeVersions-CD59tFWM.js +1 -0
- package/public/assets/useCommands-mvMu3mMD.js +1 -0
- package/public/assets/useProjects-YXOjaOwL.js +1 -0
- package/public/assets/xychartDiagram-PRI3JC2R-ByBTDWE2.js +7 -0
- package/{backend/dist/frontend → public}/index.html +8 -8
- package/routes/__tests__/a2a.integration.test.d.ts +11 -0
- package/routes/__tests__/a2a.integration.test.d.ts.map +1 -0
- package/routes/__tests__/a2a.integration.test.js +314 -0
- package/routes/__tests__/a2a.integration.test.js.map +1 -0
- package/routes/__tests__/a2a.test.d.ts +6 -0
- package/routes/__tests__/a2a.test.d.ts.map +1 -0
- package/routes/__tests__/a2a.test.js +622 -0
- package/routes/__tests__/a2a.test.js.map +1 -0
- package/routes/__tests__/agents.test.d.ts +6 -0
- package/routes/__tests__/agents.test.d.ts.map +1 -0
- package/routes/__tests__/agents.test.js +315 -0
- package/routes/__tests__/agents.test.js.map +1 -0
- package/routes/__tests__/sessions.test.d.ts +7 -0
- package/routes/__tests__/sessions.test.d.ts.map +1 -0
- package/routes/__tests__/sessions.test.js +330 -0
- package/routes/__tests__/sessions.test.js.map +1 -0
- package/routes/a2a.d.ts +18 -0
- package/routes/a2a.d.ts.map +1 -0
- package/routes/a2a.js +649 -0
- package/routes/a2a.js.map +1 -0
- package/routes/a2a.streaming.test.d.ts +2 -0
- package/routes/a2a.streaming.test.d.ts.map +1 -0
- package/routes/a2a.streaming.test.js +167 -0
- package/routes/a2a.streaming.test.js.map +1 -0
- package/routes/a2aManagement.d.ts +21 -0
- package/routes/a2aManagement.d.ts.map +1 -0
- package/routes/a2aManagement.js +466 -0
- package/routes/a2aManagement.js.map +1 -0
- package/{backend/dist/routes → routes}/agents.d.ts.map +1 -1
- package/routes/agents.js +997 -0
- package/routes/agents.js.map +1 -0
- package/{backend/dist/routes → routes}/auth.d.ts.map +1 -1
- package/routes/auth.js +135 -0
- package/routes/auth.js.map +1 -0
- package/{backend/dist/routes → routes}/commands.d.ts.map +1 -1
- package/{backend/dist/routes → routes}/commands.js +115 -31
- package/routes/commands.js.map +1 -0
- package/routes/config.d.ts +4 -0
- package/routes/config.d.ts.map +1 -0
- package/routes/config.js +211 -0
- package/routes/config.js.map +1 -0
- package/{backend/dist/routes → routes}/files.d.ts.map +1 -1
- package/{backend/dist/routes → routes}/files.js +103 -43
- package/routes/files.js.map +1 -0
- package/routes/mcp.d.ts +27 -0
- package/routes/mcp.d.ts.map +1 -0
- package/{backend/dist/routes → routes}/mcp.js +195 -105
- package/routes/mcp.js.map +1 -0
- package/routes/mcpAdmin.d.ts +16 -0
- package/routes/mcpAdmin.d.ts.map +1 -0
- package/routes/mcpAdmin.js +308 -0
- package/routes/mcpAdmin.js.map +1 -0
- package/routes/mcpAdminManagement.d.ts +17 -0
- package/routes/mcpAdminManagement.d.ts.map +1 -0
- package/routes/mcpAdminManagement.js +345 -0
- package/routes/mcpAdminManagement.js.map +1 -0
- package/routes/media.d.ts.map +1 -0
- package/{backend/dist/routes → routes}/media.js +52 -42
- package/routes/media.js.map +1 -0
- package/routes/mediaAuth.d.ts +8 -0
- package/routes/mediaAuth.d.ts.map +1 -0
- package/routes/mediaAuth.js +136 -0
- package/routes/mediaAuth.js.map +1 -0
- package/routes/plugins.d.ts +4 -0
- package/routes/plugins.d.ts.map +1 -0
- package/routes/plugins.js +339 -0
- package/routes/plugins.js.map +1 -0
- package/{backend/dist/routes → routes}/projects.d.ts.map +1 -1
- package/routes/projects.js +884 -0
- package/routes/projects.js.map +1 -0
- package/routes/scheduledTasks.d.ts +9 -0
- package/routes/scheduledTasks.d.ts.map +1 -0
- package/routes/scheduledTasks.js +320 -0
- package/routes/scheduledTasks.js.map +1 -0
- package/{backend/dist/routes → routes}/sessions.d.ts.map +1 -1
- package/{backend/dist/routes → routes}/sessions.js +258 -39
- package/routes/sessions.js.map +1 -0
- package/{backend/dist/routes → routes}/settings.d.ts.map +1 -1
- package/{backend/dist/routes → routes}/settings.js +82 -241
- package/routes/settings.js.map +1 -0
- package/{backend/dist/routes/mcp.d.ts → routes/skills.d.ts} +1 -1
- package/routes/skills.d.ts.map +1 -0
- package/routes/skills.js +272 -0
- package/routes/skills.js.map +1 -0
- package/routes/slack.d.ts +10 -0
- package/routes/slack.d.ts.map +1 -0
- package/routes/slack.js +189 -0
- package/routes/slack.js.map +1 -0
- package/{backend/dist/routes → routes}/slides.d.ts.map +1 -1
- package/{backend/dist/routes → routes}/slides.js +29 -27
- package/routes/slides.js.map +1 -0
- package/{backend/dist/routes → routes}/subagents.js +27 -22
- package/routes/subagents.js.map +1 -0
- package/schemas/a2a.d.ts +858 -0
- package/schemas/a2a.d.ts.map +1 -0
- package/schemas/a2a.js +300 -0
- package/schemas/a2a.js.map +1 -0
- package/scripts/postinstall.js +10 -0
- package/services/__tests__/pluginInstaller.test.d.ts +5 -0
- package/services/__tests__/pluginInstaller.test.d.ts.map +1 -0
- package/services/__tests__/pluginInstaller.test.js +290 -0
- package/services/__tests__/pluginInstaller.test.js.map +1 -0
- package/services/__tests__/pluginParser.test.d.ts +5 -0
- package/services/__tests__/pluginParser.test.d.ts.map +1 -0
- package/services/__tests__/pluginParser.test.js +272 -0
- package/services/__tests__/pluginParser.test.js.map +1 -0
- package/services/__tests__/pluginPaths.test.d.ts +5 -0
- package/services/__tests__/pluginPaths.test.d.ts.map +1 -0
- package/services/__tests__/pluginPaths.test.js +221 -0
- package/services/__tests__/pluginPaths.test.js.map +1 -0
- package/services/__tests__/pluginScanner.test.d.ts +5 -0
- package/services/__tests__/pluginScanner.test.d.ts.map +1 -0
- package/services/__tests__/pluginScanner.test.js +272 -0
- package/services/__tests__/pluginScanner.test.js.map +1 -0
- package/services/__tests__/pluginSymlink.test.d.ts +5 -0
- package/services/__tests__/pluginSymlink.test.d.ts.map +1 -0
- package/services/__tests__/pluginSymlink.test.js +318 -0
- package/services/__tests__/pluginSymlink.test.js.map +1 -0
- package/services/__tests__/slackAIService.test.d.ts +5 -0
- package/services/__tests__/slackAIService.test.d.ts.map +1 -0
- package/services/__tests__/slackAIService.test.js +477 -0
- package/services/__tests__/slackAIService.test.js.map +1 -0
- package/services/__tests__/slackThreadMapper.test.d.ts +5 -0
- package/services/__tests__/slackThreadMapper.test.d.ts.map +1 -0
- package/services/__tests__/slackThreadMapper.test.js +194 -0
- package/services/__tests__/slackThreadMapper.test.js.map +1 -0
- package/services/a2a/__tests__/a2aClientTool.integration.test.d.ts +6 -0
- package/services/a2a/__tests__/a2aClientTool.integration.test.d.ts.map +1 -0
- package/services/a2a/__tests__/a2aClientTool.integration.test.js +264 -0
- package/services/a2a/__tests__/a2aClientTool.integration.test.js.map +1 -0
- package/services/a2a/__tests__/a2aClientTool.test.d.ts +6 -0
- package/services/a2a/__tests__/a2aClientTool.test.d.ts.map +1 -0
- package/services/a2a/__tests__/a2aClientTool.test.js +418 -0
- package/services/a2a/__tests__/a2aClientTool.test.js.map +1 -0
- package/services/a2a/__tests__/a2aConfigService.test.d.ts +6 -0
- package/services/a2a/__tests__/a2aConfigService.test.d.ts.map +1 -0
- package/services/a2a/__tests__/a2aConfigService.test.js +431 -0
- package/services/a2a/__tests__/a2aConfigService.test.js.map +1 -0
- package/services/a2a/__tests__/a2aConfigServicePath.test.d.ts +2 -0
- package/services/a2a/__tests__/a2aConfigServicePath.test.d.ts.map +1 -0
- package/services/a2a/__tests__/a2aConfigServicePath.test.js +49 -0
- package/services/a2a/__tests__/a2aConfigServicePath.test.js.map +1 -0
- package/services/a2a/__tests__/a2aSdkMcp.test.d.ts +10 -0
- package/services/a2a/__tests__/a2aSdkMcp.test.d.ts.map +1 -0
- package/services/a2a/__tests__/a2aSdkMcp.test.js +239 -0
- package/services/a2a/__tests__/a2aSdkMcp.test.js.map +1 -0
- package/services/a2a/__tests__/agentCardService.test.d.ts +6 -0
- package/services/a2a/__tests__/agentCardService.test.d.ts.map +1 -0
- package/services/a2a/__tests__/agentCardService.test.js +292 -0
- package/services/a2a/__tests__/agentCardService.test.js.map +1 -0
- package/services/a2a/__tests__/apiKeyService.test.d.ts +6 -0
- package/services/a2a/__tests__/apiKeyService.test.d.ts.map +1 -0
- package/services/a2a/__tests__/apiKeyService.test.js +284 -0
- package/services/a2a/__tests__/apiKeyService.test.js.map +1 -0
- package/services/a2a/__tests__/buildQueryOptionsIntegration.test.d.ts +2 -0
- package/services/a2a/__tests__/buildQueryOptionsIntegration.test.d.ts.map +1 -0
- package/services/a2a/__tests__/buildQueryOptionsIntegration.test.js +70 -0
- package/services/a2a/__tests__/buildQueryOptionsIntegration.test.js.map +1 -0
- package/services/a2a/__tests__/dynamic_config_verification.test.d.ts +2 -0
- package/services/a2a/__tests__/dynamic_config_verification.test.d.ts.map +1 -0
- package/services/a2a/__tests__/dynamic_config_verification.test.js +67 -0
- package/services/a2a/__tests__/dynamic_config_verification.test.js.map +1 -0
- package/services/a2a/__tests__/integrateA2AMcpServer.test.d.ts +2 -0
- package/services/a2a/__tests__/integrateA2AMcpServer.test.d.ts.map +1 -0
- package/services/a2a/__tests__/integrateA2AMcpServer.test.js +112 -0
- package/services/a2a/__tests__/integrateA2AMcpServer.test.js.map +1 -0
- package/services/a2a/__tests__/taskManager.integration.test.d.ts +7 -0
- package/services/a2a/__tests__/taskManager.integration.test.d.ts.map +1 -0
- package/services/a2a/__tests__/taskManager.integration.test.js +346 -0
- package/services/a2a/__tests__/taskManager.integration.test.js.map +1 -0
- package/services/a2a/__tests__/taskManager.test.d.ts +7 -0
- package/services/a2a/__tests__/taskManager.test.d.ts.map +1 -0
- package/services/a2a/__tests__/taskManager.test.js +423 -0
- package/services/a2a/__tests__/taskManager.test.js.map +1 -0
- package/services/a2a/a2aClientTool.d.ts +73 -0
- package/services/a2a/a2aClientTool.d.ts.map +1 -0
- package/services/a2a/a2aClientTool.js +572 -0
- package/services/a2a/a2aClientTool.js.map +1 -0
- package/services/a2a/a2aConfigService.d.ts +50 -0
- package/services/a2a/a2aConfigService.d.ts.map +1 -0
- package/services/a2a/a2aConfigService.js +186 -0
- package/services/a2a/a2aConfigService.js.map +1 -0
- package/services/a2a/a2aHistoryService.d.ts +32 -0
- package/services/a2a/a2aHistoryService.d.ts.map +1 -0
- package/services/a2a/a2aHistoryService.js +108 -0
- package/services/a2a/a2aHistoryService.js.map +1 -0
- package/services/a2a/a2aIntegration.d.ts +9 -0
- package/services/a2a/a2aIntegration.d.ts.map +1 -0
- package/services/a2a/a2aIntegration.js +41 -0
- package/services/a2a/a2aIntegration.js.map +1 -0
- package/services/a2a/a2aQueryService.d.ts +71 -0
- package/services/a2a/a2aQueryService.d.ts.map +1 -0
- package/services/a2a/a2aQueryService.js +166 -0
- package/services/a2a/a2aQueryService.js.map +1 -0
- package/services/a2a/a2aSdkMcp.d.ts +51 -0
- package/services/a2a/a2aSdkMcp.d.ts.map +1 -0
- package/services/a2a/a2aSdkMcp.js +185 -0
- package/services/a2a/a2aSdkMcp.js.map +1 -0
- package/services/a2a/a2aStreamEvents.d.ts +94 -0
- package/services/a2a/a2aStreamEvents.d.ts.map +1 -0
- package/services/a2a/a2aStreamEvents.js +92 -0
- package/services/a2a/a2aStreamEvents.js.map +1 -0
- package/services/a2a/agentCardService.d.ts +34 -0
- package/services/a2a/agentCardService.d.ts.map +1 -0
- package/services/a2a/agentCardService.js +228 -0
- package/services/a2a/agentCardService.js.map +1 -0
- package/services/a2a/agentMappingService.d.ts +53 -0
- package/services/a2a/agentMappingService.d.ts.map +1 -0
- package/services/a2a/agentMappingService.js +185 -0
- package/services/a2a/agentMappingService.js.map +1 -0
- package/services/a2a/apiKeyService.d.ts +101 -0
- package/services/a2a/apiKeyService.d.ts.map +1 -0
- package/services/a2a/apiKeyService.js +314 -0
- package/services/a2a/apiKeyService.js.map +1 -0
- package/services/a2a/taskCleanup.d.ts +30 -0
- package/services/a2a/taskCleanup.d.ts.map +1 -0
- package/services/a2a/taskCleanup.js +184 -0
- package/services/a2a/taskCleanup.js.map +1 -0
- package/services/a2a/taskManager.d.ts +86 -0
- package/services/a2a/taskManager.d.ts.map +1 -0
- package/services/a2a/taskManager.js +263 -0
- package/services/a2a/taskManager.js.map +1 -0
- package/services/agentStorage.d.ts +27 -0
- package/services/agentStorage.d.ts.map +1 -0
- package/services/agentStorage.js +487 -0
- package/services/agentStorage.js.map +1 -0
- package/services/askUserQuestion/askUserQuestionIntegration.d.ts +24 -0
- package/services/askUserQuestion/askUserQuestionIntegration.d.ts.map +1 -0
- package/services/askUserQuestion/askUserQuestionIntegration.js +52 -0
- package/services/askUserQuestion/askUserQuestionIntegration.js.map +1 -0
- package/services/askUserQuestion/askUserQuestionMcp.d.ts +103 -0
- package/services/askUserQuestion/askUserQuestionMcp.d.ts.map +1 -0
- package/services/askUserQuestion/askUserQuestionMcp.js +129 -0
- package/services/askUserQuestion/askUserQuestionMcp.js.map +1 -0
- package/services/askUserQuestion/index.d.ts +13 -0
- package/services/askUserQuestion/index.d.ts.map +1 -0
- package/services/askUserQuestion/index.js +35 -0
- package/services/askUserQuestion/index.js.map +1 -0
- package/services/askUserQuestion/init.d.ts +17 -0
- package/services/askUserQuestion/init.d.ts.map +1 -0
- package/services/askUserQuestion/init.js +47 -0
- package/services/askUserQuestion/init.js.map +1 -0
- package/services/askUserQuestion/notificationChannel.d.ts +97 -0
- package/services/askUserQuestion/notificationChannel.d.ts.map +1 -0
- package/services/askUserQuestion/notificationChannel.js +147 -0
- package/services/askUserQuestion/notificationChannel.js.map +1 -0
- package/services/askUserQuestion/slackNotificationChannel.d.ts +35 -0
- package/services/askUserQuestion/slackNotificationChannel.d.ts.map +1 -0
- package/services/askUserQuestion/slackNotificationChannel.js +129 -0
- package/services/askUserQuestion/slackNotificationChannel.js.map +1 -0
- package/services/askUserQuestion/sseNotificationChannel.d.ts +36 -0
- package/services/askUserQuestion/sseNotificationChannel.d.ts.map +1 -0
- package/services/askUserQuestion/sseNotificationChannel.js +88 -0
- package/services/askUserQuestion/sseNotificationChannel.js.map +1 -0
- package/services/askUserQuestion/userInputRegistry.d.ts +107 -0
- package/services/askUserQuestion/userInputRegistry.d.ts.map +1 -0
- package/services/askUserQuestion/userInputRegistry.js +253 -0
- package/services/askUserQuestion/userInputRegistry.js.map +1 -0
- package/{backend/dist/services → services}/claudeSession.d.ts +20 -5
- package/services/claudeSession.d.ts.map +1 -0
- package/{backend/dist/services → services}/claudeSession.js +123 -41
- package/services/claudeSession.js.map +1 -0
- package/services/claudeVersionStorage.d.ts +20 -0
- package/services/claudeVersionStorage.d.ts.map +1 -0
- package/services/claudeVersionStorage.js +331 -0
- package/services/claudeVersionStorage.js.map +1 -0
- package/services/mcpAdmin/__tests__/adminApiKeyService.test.d.ts +5 -0
- package/services/mcpAdmin/__tests__/adminApiKeyService.test.d.ts.map +1 -0
- package/services/mcpAdmin/__tests__/adminApiKeyService.test.js +289 -0
- package/services/mcpAdmin/__tests__/adminApiKeyService.test.js.map +1 -0
- package/services/mcpAdmin/__tests__/mcpAdminRoutes.test.d.ts +5 -0
- package/services/mcpAdmin/__tests__/mcpAdminRoutes.test.d.ts.map +1 -0
- package/services/mcpAdmin/__tests__/mcpAdminRoutes.test.js +345 -0
- package/services/mcpAdmin/__tests__/mcpAdminRoutes.test.js.map +1 -0
- package/services/mcpAdmin/__tests__/mcpAdminServer.test.d.ts +5 -0
- package/services/mcpAdmin/__tests__/mcpAdminServer.test.d.ts.map +1 -0
- package/services/mcpAdmin/__tests__/mcpAdminServer.test.js +453 -0
- package/services/mcpAdmin/__tests__/mcpAdminServer.test.js.map +1 -0
- package/services/mcpAdmin/__tests__/tools.test.d.ts +5 -0
- package/services/mcpAdmin/__tests__/tools.test.d.ts.map +1 -0
- package/services/mcpAdmin/__tests__/tools.test.js +371 -0
- package/services/mcpAdmin/__tests__/tools.test.js.map +1 -0
- package/services/mcpAdmin/adminApiKeyService.d.ts +61 -0
- package/services/mcpAdmin/adminApiKeyService.d.ts.map +1 -0
- package/services/mcpAdmin/adminApiKeyService.js +270 -0
- package/services/mcpAdmin/adminApiKeyService.js.map +1 -0
- package/services/mcpAdmin/index.d.ts +10 -0
- package/services/mcpAdmin/index.d.ts.map +1 -0
- package/services/mcpAdmin/index.js +43 -0
- package/services/mcpAdmin/index.js.map +1 -0
- package/services/mcpAdmin/mcpAdminServer.d.ts +76 -0
- package/services/mcpAdmin/mcpAdminServer.d.ts.map +1 -0
- package/services/mcpAdmin/mcpAdminServer.js +243 -0
- package/services/mcpAdmin/mcpAdminServer.js.map +1 -0
- package/services/mcpAdmin/tools/agentTools.d.ts +27 -0
- package/services/mcpAdmin/tools/agentTools.d.ts.map +1 -0
- package/services/mcpAdmin/tools/agentTools.js +359 -0
- package/services/mcpAdmin/tools/agentTools.js.map +1 -0
- package/services/mcpAdmin/tools/index.d.ts +15 -0
- package/services/mcpAdmin/tools/index.d.ts.map +1 -0
- package/services/mcpAdmin/tools/index.js +30 -0
- package/services/mcpAdmin/tools/index.js.map +1 -0
- package/services/mcpAdmin/tools/mcpServerTools.d.ts +27 -0
- package/services/mcpAdmin/tools/mcpServerTools.d.ts.map +1 -0
- package/services/mcpAdmin/tools/mcpServerTools.js +334 -0
- package/services/mcpAdmin/tools/mcpServerTools.js.map +1 -0
- package/services/mcpAdmin/tools/projectTools.d.ts +27 -0
- package/services/mcpAdmin/tools/projectTools.d.ts.map +1 -0
- package/services/mcpAdmin/tools/projectTools.js +353 -0
- package/services/mcpAdmin/tools/projectTools.js.map +1 -0
- package/services/mcpAdmin/tools/systemTools.d.ts +23 -0
- package/services/mcpAdmin/tools/systemTools.d.ts.map +1 -0
- package/services/mcpAdmin/tools/systemTools.js +241 -0
- package/services/mcpAdmin/tools/systemTools.js.map +1 -0
- package/services/mcpAdmin/types.d.ts +124 -0
- package/services/mcpAdmin/types.d.ts.map +1 -0
- package/services/mcpAdmin/types.js +18 -0
- package/services/mcpAdmin/types.js.map +1 -0
- package/{backend/dist/services → services}/messageQueue.d.ts.map +1 -1
- package/{backend/dist/services → services}/messageQueue.js +16 -3
- package/services/messageQueue.js.map +1 -0
- package/services/pluginInstaller.d.ts +58 -0
- package/services/pluginInstaller.d.ts.map +1 -0
- package/services/pluginInstaller.js +321 -0
- package/services/pluginInstaller.js.map +1 -0
- package/services/pluginParser.d.ts +45 -0
- package/services/pluginParser.d.ts.map +1 -0
- package/services/pluginParser.js +437 -0
- package/services/pluginParser.js.map +1 -0
- package/services/pluginPaths.d.ts +80 -0
- package/services/pluginPaths.d.ts.map +1 -0
- package/services/pluginPaths.js +274 -0
- package/services/pluginPaths.js.map +1 -0
- package/services/pluginScanner.d.ts +36 -0
- package/services/pluginScanner.d.ts.map +1 -0
- package/services/pluginScanner.js +251 -0
- package/services/pluginScanner.js.map +1 -0
- package/services/pluginSymlink.d.ts +54 -0
- package/services/pluginSymlink.d.ts.map +1 -0
- package/services/pluginSymlink.js +223 -0
- package/services/pluginSymlink.js.map +1 -0
- package/services/projectMetadataStorage.d.ts +114 -0
- package/services/projectMetadataStorage.d.ts.map +1 -0
- package/services/projectMetadataStorage.js +711 -0
- package/services/projectMetadataStorage.js.map +1 -0
- package/services/scheduledTaskStorage.d.ts +52 -0
- package/services/scheduledTaskStorage.d.ts.map +1 -0
- package/services/scheduledTaskStorage.js +285 -0
- package/services/scheduledTaskStorage.js.map +1 -0
- package/services/schedulerService.d.ts +81 -0
- package/services/schedulerService.d.ts.map +1 -0
- package/services/schedulerService.js +743 -0
- package/services/schedulerService.js.map +1 -0
- package/{backend/dist/services → services}/sessionManager.d.ts +6 -4
- package/services/sessionManager.d.ts.map +1 -0
- package/{backend/dist/services → services}/sessionManager.js +77 -16
- package/services/sessionManager.js.map +1 -0
- package/services/skillStorage.d.ts +60 -0
- package/services/skillStorage.d.ts.map +1 -0
- package/services/skillStorage.js +398 -0
- package/services/skillStorage.js.map +1 -0
- package/services/slackAIService.d.ts +81 -0
- package/services/slackAIService.d.ts.map +1 -0
- package/services/slackAIService.js +1091 -0
- package/services/slackAIService.js.map +1 -0
- package/services/slackClient.d.ts +46 -0
- package/services/slackClient.d.ts.map +1 -0
- package/services/slackClient.js +85 -0
- package/services/slackClient.js.map +1 -0
- package/services/slackSessionLock.d.ts +79 -0
- package/services/slackSessionLock.d.ts.map +1 -0
- package/services/slackSessionLock.js +353 -0
- package/services/slackSessionLock.js.map +1 -0
- package/services/slackThreadMapper.d.ts +57 -0
- package/services/slackThreadMapper.d.ts.map +1 -0
- package/services/slackThreadMapper.js +140 -0
- package/services/slackThreadMapper.js.map +1 -0
- package/types/a2a.d.ts +275 -0
- package/types/a2a.d.ts.map +1 -0
- package/types/a2a.js +23 -0
- package/types/a2a.js.map +1 -0
- package/types/agents.d.ts +95 -0
- package/types/agents.d.ts.map +1 -0
- package/types/agents.js +46 -0
- package/types/agents.js.map +1 -0
- package/types/claude-history.d.ts +62 -0
- package/types/claude-history.d.ts.map +1 -0
- package/types/claude-history.js +4 -0
- package/types/claude-history.js.map +1 -0
- package/types/claude-versions.d.ts +36 -0
- package/types/claude-versions.d.ts.map +1 -0
- package/types/claude-versions.js +3 -0
- package/types/claude-versions.js.map +1 -0
- package/types/commands.d.ts +50 -0
- package/types/commands.d.ts.map +1 -0
- package/types/commands.js +23 -0
- package/types/commands.js.map +1 -0
- package/types/plugins.d.ts +144 -0
- package/types/plugins.d.ts.map +1 -0
- package/types/plugins.js +8 -0
- package/types/plugins.js.map +1 -0
- package/types/projects.d.ts +42 -0
- package/types/projects.d.ts.map +1 -0
- package/types/projects.js +4 -0
- package/types/projects.js.map +1 -0
- package/types/scheduledTasks.d.ts +164 -0
- package/types/scheduledTasks.d.ts.map +1 -0
- package/types/scheduledTasks.js +17 -0
- package/types/scheduledTasks.js.map +1 -0
- package/types/skills.d.ts +91 -0
- package/types/skills.d.ts.map +1 -0
- package/types/skills.js +6 -0
- package/types/skills.js.map +1 -0
- package/types/slack.d.ts +97 -0
- package/types/slack.d.ts.map +1 -0
- package/types/slack.js +8 -0
- package/types/slack.js.map +1 -0
- package/types/streaming.d.ts +12 -0
- package/types/streaming.d.ts.map +1 -0
- package/types/streaming.js +8 -0
- package/types/streaming.js.map +1 -0
- package/types/subagents.d.ts +26 -0
- package/types/subagents.d.ts.map +1 -0
- package/types/subagents.js +3 -0
- package/types/subagents.js.map +1 -0
- package/utils/__tests__/claudeUtils.test.d.ts +5 -0
- package/utils/__tests__/claudeUtils.test.d.ts.map +1 -0
- package/utils/__tests__/claudeUtils.test.js +282 -0
- package/utils/__tests__/claudeUtils.test.js.map +1 -0
- package/utils/__tests__/sessionUtils.test.d.ts +5 -0
- package/utils/__tests__/sessionUtils.test.d.ts.map +1 -0
- package/utils/__tests__/sessionUtils.test.js +295 -0
- package/utils/__tests__/sessionUtils.test.js.map +1 -0
- package/utils/agentCardCache.d.ts +93 -0
- package/utils/agentCardCache.d.ts.map +1 -0
- package/utils/agentCardCache.js +212 -0
- package/utils/agentCardCache.js.map +1 -0
- package/utils/claudeUtils.d.ts +54 -0
- package/utils/claudeUtils.d.ts.map +1 -0
- package/utils/claudeUtils.js +387 -0
- package/utils/claudeUtils.js.map +1 -0
- package/utils/fileUtils.d.ts +2 -0
- package/utils/fileUtils.d.ts.map +1 -0
- package/utils/fileUtils.js +11 -0
- package/utils/fileUtils.js.map +1 -0
- package/utils/jwt.d.ts +30 -0
- package/utils/jwt.d.ts.map +1 -0
- package/utils/jwt.js +95 -0
- package/utils/jwt.js.map +1 -0
- package/utils/sessionUtils.d.ts +64 -0
- package/utils/sessionUtils.d.ts.map +1 -0
- package/utils/sessionUtils.js +266 -0
- package/utils/sessionUtils.js.map +1 -0
- package/README.zh-CN.md +0 -525
- package/backend/dist/bin/agentstudio.js +0 -120
- package/backend/dist/bin/agentstudio.js.map +0 -1
- package/backend/dist/frontend/assets/AgentsPage-Dqb_aqAA.js +0 -1
- package/backend/dist/frontend/assets/ChatPage-L8Paywyc.js +0 -91
- package/backend/dist/frontend/assets/CommandForm-DLl7EIMS.js +0 -7
- package/backend/dist/frontend/assets/CommandsPage-Bzavq0Ec.js +0 -1
- package/backend/dist/frontend/assets/DashboardPage-B3o4AYFT.js +0 -15
- package/backend/dist/frontend/assets/FileBrowser-DL3ayaqb.js +0 -1
- package/backend/dist/frontend/assets/GeneralSettingsPage-CBN_de-V.js +0 -1
- package/backend/dist/frontend/assets/LandingPage-Dl4ioKos.js +0 -1
- package/backend/dist/frontend/assets/LoginPage-4QqRdiSi.js +0 -12
- package/backend/dist/frontend/assets/McpPage-CY3tYiqj.js +0 -39
- package/backend/dist/frontend/assets/MemorySettingsPage-DGxrok5K.js +0 -1
- package/backend/dist/frontend/assets/ProjectSelector-hgmGYVFh.js +0 -1
- package/backend/dist/frontend/assets/ProjectsPage-D399IM0c.js +0 -14
- package/backend/dist/frontend/assets/SettingsLayout-CL_K-lzJ.js +0 -1
- package/backend/dist/frontend/assets/SubagentsPage-Chbhj8p2.js +0 -1
- package/backend/dist/frontend/assets/UnifiedToolSelector-CsM9qBvs.js +0 -1
- package/backend/dist/frontend/assets/VersionSettingsPage-74Q-LVgA.js +0 -5
- package/backend/dist/frontend/assets/agents-ClAzIJTw.js +0 -1
- package/backend/dist/frontend/assets/authFetch-BATQyPG5.js +0 -1
- package/backend/dist/frontend/assets/index-B9YHa7XT.css +0 -1
- package/backend/dist/frontend/assets/index-B_CTNvca.js +0 -268
- package/backend/dist/frontend/assets/monaco-editor-C7Z4sOhS.js +0 -19
- package/backend/dist/frontend/assets/tabManager-DV8urRBM.js +0 -30
- package/backend/dist/frontend/assets/tools-C4EPanYi.js +0 -1
- package/backend/dist/frontend/assets/useAgents-DwnOE1_k.js +0 -2
- package/backend/dist/frontend/assets/useClaudeVersions-CQdGnCqv.js +0 -1
- package/backend/dist/frontend/assets/useCommands-CCVaurbt.js +0 -1
- package/backend/dist/index.d.ts +0 -3
- package/backend/dist/index.d.ts.map +0 -1
- package/backend/dist/index.js +0 -157
- package/backend/dist/index.js.map +0 -1
- package/backend/dist/middleware/auth.d.ts.map +0 -1
- package/backend/dist/middleware/auth.js +0 -21
- package/backend/dist/middleware/auth.js.map +0 -1
- package/backend/dist/routes/agents.js +0 -803
- package/backend/dist/routes/agents.js.map +0 -1
- package/backend/dist/routes/auth.js +0 -60
- package/backend/dist/routes/auth.js.map +0 -1
- package/backend/dist/routes/commands.js.map +0 -1
- package/backend/dist/routes/files.js.map +0 -1
- package/backend/dist/routes/mcp.d.ts.map +0 -1
- package/backend/dist/routes/mcp.js.map +0 -1
- package/backend/dist/routes/media.d.ts.map +0 -1
- package/backend/dist/routes/media.js.map +0 -1
- package/backend/dist/routes/projects.js +0 -528
- package/backend/dist/routes/projects.js.map +0 -1
- package/backend/dist/routes/sessions.js.map +0 -1
- package/backend/dist/routes/settings.js.map +0 -1
- package/backend/dist/routes/slides.js.map +0 -1
- package/backend/dist/routes/subagents.js.map +0 -1
- package/backend/dist/services/claudeSession.d.ts.map +0 -1
- package/backend/dist/services/claudeSession.js.map +0 -1
- package/backend/dist/services/messageQueue.js.map +0 -1
- package/backend/dist/services/sessionManager.d.ts.map +0 -1
- package/backend/dist/services/sessionManager.js.map +0 -1
- package/backend/dist/utils/jwt.d.ts +0 -15
- package/backend/dist/utils/jwt.d.ts.map +0 -1
- package/backend/dist/utils/jwt.js +0 -28
- package/backend/dist/utils/jwt.js.map +0 -1
- /package/{backend/dist/bin → bin}/agentstudio.d.ts +0 -0
- /package/{backend/dist/bin → bin}/agentstudio.d.ts.map +0 -0
- /package/{backend/dist/frontend → public}/assets/ChatPage-BvQmXfcP.css +0 -0
- /package/{backend/dist/frontend → public}/assets/agents-DwCY2K8p.css +0 -0
- /package/{backend/dist/frontend → public}/assets/dateFormat-CXa8VnEC.js +0 -0
- /package/{backend/dist/frontend → public}/cc-studio.png +0 -0
- /package/{backend/dist/frontend → public}/vite.svg +0 -0
- /package/{backend/dist/routes → routes}/agents.d.ts +0 -0
- /package/{backend/dist/routes → routes}/auth.d.ts +0 -0
- /package/{backend/dist/routes → routes}/commands.d.ts +0 -0
- /package/{backend/dist/routes → routes}/files.d.ts +0 -0
- /package/{backend/dist/routes → routes}/media.d.ts +0 -0
- /package/{backend/dist/routes → routes}/projects.d.ts +0 -0
- /package/{backend/dist/routes → routes}/sessions.d.ts +0 -0
- /package/{backend/dist/routes → routes}/settings.d.ts +0 -0
- /package/{backend/dist/routes → routes}/slides.d.ts +0 -0
- /package/{backend/dist/routes → routes}/subagents.d.ts +0 -0
- /package/{backend/dist/routes → routes}/subagents.d.ts.map +0 -0
- /package/{backend/dist/services → services}/messageQueue.d.ts +0 -0
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import{W as oe,c as fe,g as Jp}from"./monaco-editor-
|
|
2
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function
|
|
1
|
+
import{W as oe,c as fe,g as Jp}from"./monaco-editor-DHKm5-VF.js";const eg="modulepreload",tg=function(e){return"/"+e},$o={},$y=function(t,a,r){let n=Promise.resolve();if(a&&a.length>0){let d=function(g){return Promise.all(g.map(b=>Promise.resolve(b).then(f=>({status:"fulfilled",value:f}),f=>({status:"rejected",reason:f}))))};document.getElementsByTagName("link");const s=document.querySelector("meta[property=csp-nonce]"),o=s?.nonce||s?.getAttribute("nonce");n=d(a.map(g=>{if(g=tg(g),g in $o)return;$o[g]=!0;const b=g.endsWith(".css"),f=b?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${g}"]${f}`))return;const S=document.createElement("link");if(S.rel=b?"stylesheet":eg,b||(S.as="script"),S.crossOrigin="",S.href=g,o&&S.setAttribute("nonce",o),document.head.appendChild(S),b)return new Promise((v,R)=>{S.addEventListener("load",v),S.addEventListener("error",()=>R(new Error(`Unable to preload CSS for ${g}`)))})}))}function i(s){const o=new Event("vite:preloadError",{cancelable:!0});if(o.payload=s,window.dispatchEvent(o),!o.defaultPrevented)throw s}return n.then(s=>{for(const o of s||[])o.status==="rejected"&&i(o.reason);return t().catch(i)})};function Ao(){return Ao=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)({}).hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},Ao.apply(null,arguments)}function Hy(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ho(e,t){return Ho=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(a,r){return a.__proto__=r,a},Ho(e,t)}function ag(e,t){if(e==null)return{};var a={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;a[r]=e[r]}return a}function ve(e){"@babel/helpers - typeof";return ve=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ve(e)}function rg(e,t){if(ve(e)!="object"||!e)return e;var a=e[Symbol.toPrimitive];if(a!==void 0){var r=a.call(e,t);if(ve(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function ng(e){var t=rg(e,"string");return ve(t)=="symbol"?t:t+""}function xp(e,t,a){return(t=ng(t))in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}function ig(e,t){if(e==null)return{};var a,r,n=ag(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)a=i[r],t.indexOf(a)===-1&&{}.propertyIsEnumerable.call(e,a)&&(n[a]=e[a])}return n}function Ro(e,t){(t==null||t>e.length)&&(t=e.length);for(var a=0,r=Array(t);a<t;a++)r[a]=e[a];return r}function og(e){if(Array.isArray(e))return Ro(e)}function sg(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function lg(e,t){if(e){if(typeof e=="string")return Ro(e,t);var a={}.toString.call(e).slice(8,-1);return a==="Object"&&e.constructor&&(a=e.constructor.name),a==="Map"||a==="Set"?Array.from(e):a==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?Ro(e,t):void 0}}function ug(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
2
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _o(e){return og(e)||sg(e)||lg(e)||ug()}function zo(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),a.push.apply(a,r)}return a}function me(e){for(var t=1;t<arguments.length;t++){var a=arguments[t]!=null?arguments[t]:{};t%2?zo(Object(a),!0).forEach(function(r){xp(e,r,a[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):zo(Object(a)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(a,r))})}return e}function cg(e){var t=e.length;if(t===0||t===1)return e;if(t===2)return[e[0],e[1],"".concat(e[0],".").concat(e[1]),"".concat(e[1],".").concat(e[0])];if(t===3)return[e[0],e[1],e[2],"".concat(e[0],".").concat(e[1]),"".concat(e[0],".").concat(e[2]),"".concat(e[1],".").concat(e[0]),"".concat(e[1],".").concat(e[2]),"".concat(e[2],".").concat(e[0]),"".concat(e[2],".").concat(e[1]),"".concat(e[0],".").concat(e[1],".").concat(e[2]),"".concat(e[0],".").concat(e[2],".").concat(e[1]),"".concat(e[1],".").concat(e[0],".").concat(e[2]),"".concat(e[1],".").concat(e[2],".").concat(e[0]),"".concat(e[2],".").concat(e[0],".").concat(e[1]),"".concat(e[2],".").concat(e[1],".").concat(e[0])];if(t>=4)return[e[0],e[1],e[2],e[3],"".concat(e[0],".").concat(e[1]),"".concat(e[0],".").concat(e[2]),"".concat(e[0],".").concat(e[3]),"".concat(e[1],".").concat(e[0]),"".concat(e[1],".").concat(e[2]),"".concat(e[1],".").concat(e[3]),"".concat(e[2],".").concat(e[0]),"".concat(e[2],".").concat(e[1]),"".concat(e[2],".").concat(e[3]),"".concat(e[3],".").concat(e[0]),"".concat(e[3],".").concat(e[1]),"".concat(e[3],".").concat(e[2]),"".concat(e[0],".").concat(e[1],".").concat(e[2]),"".concat(e[0],".").concat(e[1],".").concat(e[3]),"".concat(e[0],".").concat(e[2],".").concat(e[1]),"".concat(e[0],".").concat(e[2],".").concat(e[3]),"".concat(e[0],".").concat(e[3],".").concat(e[1]),"".concat(e[0],".").concat(e[3],".").concat(e[2]),"".concat(e[1],".").concat(e[0],".").concat(e[2]),"".concat(e[1],".").concat(e[0],".").concat(e[3]),"".concat(e[1],".").concat(e[2],".").concat(e[0]),"".concat(e[1],".").concat(e[2],".").concat(e[3]),"".concat(e[1],".").concat(e[3],".").concat(e[0]),"".concat(e[1],".").concat(e[3],".").concat(e[2]),"".concat(e[2],".").concat(e[0],".").concat(e[1]),"".concat(e[2],".").concat(e[0],".").concat(e[3]),"".concat(e[2],".").concat(e[1],".").concat(e[0]),"".concat(e[2],".").concat(e[1],".").concat(e[3]),"".concat(e[2],".").concat(e[3],".").concat(e[0]),"".concat(e[2],".").concat(e[3],".").concat(e[1]),"".concat(e[3],".").concat(e[0],".").concat(e[1]),"".concat(e[3],".").concat(e[0],".").concat(e[2]),"".concat(e[3],".").concat(e[1],".").concat(e[0]),"".concat(e[3],".").concat(e[1],".").concat(e[2]),"".concat(e[3],".").concat(e[2],".").concat(e[0]),"".concat(e[3],".").concat(e[2],".").concat(e[1]),"".concat(e[0],".").concat(e[1],".").concat(e[2],".").concat(e[3]),"".concat(e[0],".").concat(e[1],".").concat(e[3],".").concat(e[2]),"".concat(e[0],".").concat(e[2],".").concat(e[1],".").concat(e[3]),"".concat(e[0],".").concat(e[2],".").concat(e[3],".").concat(e[1]),"".concat(e[0],".").concat(e[3],".").concat(e[1],".").concat(e[2]),"".concat(e[0],".").concat(e[3],".").concat(e[2],".").concat(e[1]),"".concat(e[1],".").concat(e[0],".").concat(e[2],".").concat(e[3]),"".concat(e[1],".").concat(e[0],".").concat(e[3],".").concat(e[2]),"".concat(e[1],".").concat(e[2],".").concat(e[0],".").concat(e[3]),"".concat(e[1],".").concat(e[2],".").concat(e[3],".").concat(e[0]),"".concat(e[1],".").concat(e[3],".").concat(e[0],".").concat(e[2]),"".concat(e[1],".").concat(e[3],".").concat(e[2],".").concat(e[0]),"".concat(e[2],".").concat(e[0],".").concat(e[1],".").concat(e[3]),"".concat(e[2],".").concat(e[0],".").concat(e[3],".").concat(e[1]),"".concat(e[2],".").concat(e[1],".").concat(e[0],".").concat(e[3]),"".concat(e[2],".").concat(e[1],".").concat(e[3],".").concat(e[0]),"".concat(e[2],".").concat(e[3],".").concat(e[0],".").concat(e[1]),"".concat(e[2],".").concat(e[3],".").concat(e[1],".").concat(e[0]),"".concat(e[3],".").concat(e[0],".").concat(e[1],".").concat(e[2]),"".concat(e[3],".").concat(e[0],".").concat(e[2],".").concat(e[1]),"".concat(e[3],".").concat(e[1],".").concat(e[0],".").concat(e[2]),"".concat(e[3],".").concat(e[1],".").concat(e[2],".").concat(e[0]),"".concat(e[3],".").concat(e[2],".").concat(e[0],".").concat(e[1]),"".concat(e[3],".").concat(e[2],".").concat(e[1],".").concat(e[0])]}var Ue={};function dg(e){if(e.length===0||e.length===1)return e;var t=e.join(".");return Ue[t]||(Ue[t]=cg(e)),Ue[t]}function pg(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=arguments.length>2?arguments[2]:void 0,r=e.filter(function(i){return i!=="token"}),n=dg(r);return n.reduce(function(i,s){return me(me({},i),a[s])},t)}function jo(e){return e.join(" ")}function gg(e,t){var a=0;return function(r){return a+=1,r.map(function(n,i){return Dp({node:n,stylesheet:e,useInlineStyles:t,key:"code-segment-".concat(a,"-").concat(i)})})}}function Dp(e){var t=e.node,a=e.stylesheet,r=e.style,n=r===void 0?{}:r,i=e.useInlineStyles,s=e.key,o=t.properties,d=t.type,g=t.tagName,b=t.value;if(d==="text")return b;if(g){var f=gg(a,i),S;if(!i)S=me(me({},o),{},{className:jo(o.className)});else{var v=Object.keys(a).reduce(function(A,u){return u.split(".").forEach(function(l){A.includes(l)||A.push(l)}),A},[]),R=o.className&&o.className.includes("token")?["token"]:[],y=o.className&&R.concat(o.className.filter(function(A){return!v.includes(A)}));S=me(me({},o),{},{className:jo(y)||void 0,style:pg(o.className,Object.assign({},o.style,n),a)})}var T=f(t.children);return oe.createElement(g,Ao({key:s},S),T)}}const bg=(function(e,t){var a=e.listLanguages();return a.indexOf(t)!==-1});var mg=["language","children","style","customStyle","codeTagProps","useInlineStyles","showLineNumbers","showInlineLineNumbers","startingLineNumber","lineNumberContainerStyle","lineNumberStyle","wrapLines","wrapLongLines","lineProps","renderer","PreTag","CodeTag","code","astGenerator"];function Vo(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),a.push.apply(a,r)}return a}function se(e){for(var t=1;t<arguments.length;t++){var a=arguments[t]!=null?arguments[t]:{};t%2?Vo(Object(a),!0).forEach(function(r){xp(e,r,a[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):Vo(Object(a)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(a,r))})}return e}var fg=/\n/g;function hg(e){return e.match(fg)}function Eg(e){var t=e.lines,a=e.startingLineNumber,r=e.style;return t.map(function(n,i){var s=i+a;return oe.createElement("span",{key:"line-".concat(i),className:"react-syntax-highlighter-line-number",style:typeof r=="function"?r(s):r},"".concat(s,`
|
|
3
3
|
`))})}function Sg(e){var t=e.codeString,a=e.codeStyle,r=e.containerStyle,n=r===void 0?{float:"left",paddingRight:"10px"}:r,i=e.numberStyle,s=i===void 0?{}:i,o=e.startingLineNumber;return oe.createElement("code",{style:Object.assign({},a,n)},Eg({lines:t.replace(/\n$/,"").split(`
|
|
4
|
-
`),style:s,startingLineNumber:o}))}function yg(e){return"".concat(e.toString().length,".25em")}function Mp(e,t){return{type:"element",tagName:"span",properties:{key:"line-number--".concat(e),className:["comment","linenumber","react-syntax-highlighter-line-number"],style:t},children:[{type:"text",value:e}]}}function Fp(e,t,a){var r={display:"inline-block",minWidth:yg(a),paddingRight:"1em",textAlign:"right",userSelect:"none"},n=typeof e=="function"?e(t):e,i=se(se({},r),n);return i}function Ne(e){var t=e.children,a=e.lineNumber,r=e.lineNumberStyle,n=e.largestLineNumber,i=e.showInlineLineNumbers,s=e.lineProps,o=s===void 0?{}:s,d=e.className,g=d===void 0?[]:d,b=e.showLineNumbers,f=e.wrapLongLines,S=e.wrapLines,v=S===void 0?!1:S,R=v?se({},typeof o=="function"?o(a):o):{};if(R.className=R.className?[].concat(
|
|
4
|
+
`),style:s,startingLineNumber:o}))}function yg(e){return"".concat(e.toString().length,".25em")}function Mp(e,t){return{type:"element",tagName:"span",properties:{key:"line-number--".concat(e),className:["comment","linenumber","react-syntax-highlighter-line-number"],style:t},children:[{type:"text",value:e}]}}function Fp(e,t,a){var r={display:"inline-block",minWidth:yg(a),paddingRight:"1em",textAlign:"right",userSelect:"none"},n=typeof e=="function"?e(t):e,i=se(se({},r),n);return i}function Ne(e){var t=e.children,a=e.lineNumber,r=e.lineNumberStyle,n=e.largestLineNumber,i=e.showInlineLineNumbers,s=e.lineProps,o=s===void 0?{}:s,d=e.className,g=d===void 0?[]:d,b=e.showLineNumbers,f=e.wrapLongLines,S=e.wrapLines,v=S===void 0?!1:S,R=v?se({},typeof o=="function"?o(a):o):{};if(R.className=R.className?[].concat(_o(R.className.trim().split(/\s+/)),_o(g)):g,a&&i){var y=Fp(r,a,n);t.unshift(Mp(a,y))}return f&b&&(R.style=se({display:"flex"},R.style)),{type:"element",tagName:"span",properties:R,children:t}}function Up(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],r=0;r<e.length;r++){var n=e[r];if(n.type==="text")a.push(Ne({children:[n],className:_o(new Set(t))}));else if(n.children){var i=t.concat(n.properties.className);Up(n.children,i).forEach(function(s){return a.push(s)})}}return a}function vg(e,t,a,r,n,i,s,o,d){var g,b=Up(e.value),f=[],S=-1,v=0;function R(m,c){var E=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];return Ne({children:m,lineNumber:c,lineNumberStyle:o,largestLineNumber:s,showInlineLineNumbers:n,lineProps:a,className:E,showLineNumbers:r,wrapLongLines:d,wrapLines:t})}function y(m,c){if(r&&c&&n){var E=Fp(o,c,s);m.unshift(Mp(c,E))}return m}function T(m,c){var E=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];return t||E.length>0?R(m,c,E):y(m,c)}for(var A=function(){var c=b[v],E=c.children[0].value,_=hg(E);if(_){var h=E.split(`
|
|
5
5
|
`);h.forEach(function(I,N){var O=r&&f.length+i,U={type:"text",value:"".concat(I,`
|
|
6
|
-
`)};if(N===0){var P=b.slice(S+1,v).concat(Ne({children:[U],className:c.properties.className})),H=T(P,O);f.push(H)}else if(N===h.length-1){var V=b[v+1]&&b[v+1].children&&b[v+1].children[0],B={type:"text",value:"".concat(I)};if(V){var w=Ne({children:[B],className:c.properties.className});b.splice(v+1,0,w)}else{var x=[B],M=T(x,O,c.properties.className);f.push(M)}}else{var D=[U],k=T(D,O,c.properties.className);f.push(k)}}),S=v}v++};v<b.length;)A();if(S!==b.length-1){var u=b.slice(S+1,b.length);if(u&&u.length){var l=r&&f.length+i,p=T(u,l);f.push(p)}}return t?f:(g=[]).concat.apply(g,f)}function Tg(e){var t=e.rows,a=e.stylesheet,r=e.useInlineStyles;return t.map(function(n,i){return Dp({node:n,stylesheet:a,useInlineStyles:r,key:"code-segment-".concat(i)})})}function Pp(e){return e&&typeof e.highlightAuto<"u"}function Ag(e){var t=e.astGenerator,a=e.language,r=e.code,n=e.defaultCodeValue;if(Pp(t)){var i=bg(t,a);return a==="text"?{value:n,language:"text"}:i?t.highlight(a,r):t.highlightAuto(r)}try{return a&&a!=="text"?{value:t.highlight(r,a)}:{value:n}}catch{return{value:n}}}function Rg(e,t){return function(r){var n,i,s=r.language,o=r.children,d=r.style,g=d===void 0?t:d,b=r.customStyle,f=b===void 0?{}:b,S=r.codeTagProps,v=S===void 0?{className:s?"language-".concat(s):void 0,style:se(se({},g['code[class*="language-"]']),g['code[class*="language-'.concat(s,'"]')])}:S,R=r.useInlineStyles,y=R===void 0?!0:R,T=r.showLineNumbers,A=T===void 0?!1:T,u=r.showInlineLineNumbers,l=u===void 0?!0:u,p=r.startingLineNumber,m=p===void 0?1:p,c=r.lineNumberContainerStyle,E=r.lineNumberStyle,_=E===void 0?{}:E,h=r.wrapLines,I=r.wrapLongLines,N=I===void 0?!1:I,O=r.lineProps,U=O===void 0?{}:O,P=r.renderer,H=r.PreTag,V=H===void 0?"pre":H,B=r.CodeTag,w=B===void 0?"code":B,x=r.code,M=x===void 0?(Array.isArray(o)?o[0]:o)||"":x,D=r.astGenerator,k=rg(r,mg);D=D||e;var C=A?oe.createElement(Sg,{containerStyle:c,codeStyle:v.style||{},numberStyle:_,startingLineNumber:m,codeString:M}):null,L=g.hljs||g['pre[class*="language-"]']||{backgroundColor:"#fff"},F=Pp(D)?"hljs":"prismjs",$=y?Object.assign({},k,{style:Object.assign({},L,f)}):Object.assign({},k,{className:k.className?"".concat(F," ").concat(k.className):F,style:Object.assign({},f)});if(N?v.style=se({whiteSpace:"pre-wrap"},v.style):v.style=se({whiteSpace:"pre"},v.style),!D)return oe.createElement(V,$,C,oe.createElement(w,v,M));(h===void 0&&P||N)&&(h=!0),P=P||Tg;var q=[{type:"text",value:M}],W=Ag({astGenerator:D,language:s,code:M,defaultCodeValue:q});W.language===null&&(W.value=q);var J=(n=(i=M.match(/\n/g))===null||i===void 0?void 0:i.length)!==null&&n!==void 0?n:0,X=m+J,K=vg(W,h,U,A,l,m,X,_,N);return oe.createElement(V,$,oe.createElement(w,v,!l&&C,P({rows:K,stylesheet:g,useInlineStyles:y})))}}function Hy(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Vo(e,t){return Vo=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(a,r){return a.__proto__=r,a},Vo(e,t)}const _g=["abap","abnf","actionscript","ada","agda","al","antlr4","apacheconf","apex","apl","applescript","aql","arduino","arff","asciidoc","asm6502","asmatmel","aspnet","autohotkey","autoit","avisynth","avro-idl","bash","basic","batch","bbcode","bicep","birb","bison","bnf","brainfuck","brightscript","bro","bsl","c","cfscript","chaiscript","cil","clike","clojure","cmake","cobol","coffeescript","concurnas","coq","cpp","crystal","csharp","cshtml","csp","css-extras","css","csv","cypher","d","dart","dataweave","dax","dhall","diff","django","dns-zone-file","docker","dot","ebnf","editorconfig","eiffel","ejs","elixir","elm","erb","erlang","etlua","excel-formula","factor","false","firestore-security-rules","flow","fortran","fsharp","ftl","gap","gcode","gdscript","gedcom","gherkin","git","glsl","gml","gn","go-module","go","graphql","groovy","haml","handlebars","haskell","haxe","hcl","hlsl","hoon","hpkp","hsts","http","ichigojam","icon","icu-message-format","idris","iecst","ignore","inform7","ini","io","j","java","javadoc","javadoclike","javascript","javastacktrace","jexl","jolie","jq","js-extras","js-templates","jsdoc","json","json5","jsonp","jsstacktrace","jsx","julia","keepalived","keyman","kotlin","kumir","kusto","latex","latte","less","lilypond","liquid","lisp","livescript","llvm","log","lolcode","lua","magma","makefile","markdown","markup-templating","markup","matlab","maxscript","mel","mermaid","mizar","mongodb","monkey","moonscript","n1ql","n4js","nand2tetris-hdl","naniscript","nasm","neon","nevod","nginx","nim","nix","nsis","objectivec","ocaml","opencl","openqasm","oz","parigp","parser","pascal","pascaligo","pcaxis","peoplecode","perl","php-extras","php","phpdoc","plsql","powerquery","powershell","processing","prolog","promql","properties","protobuf","psl","pug","puppet","pure","purebasic","purescript","python","q","qml","qore","qsharp","r","racket","reason","regex","rego","renpy","rest","rip","roboconf","robotframework","ruby","rust","sas","sass","scala","scheme","scss","shell-session","smali","smalltalk","smarty","sml","solidity","solution-file","soy","sparql","splunk-spl","sqf","sql","squirrel","stan","stylus","swift","systemd","t4-cs","t4-templating","t4-vb","tap","tcl","textile","toml","tremor","tsx","tt2","turtle","twig","typescript","typoscript","unrealscript","uorazor","uri","v","vala","vbnet","velocity","verilog","vhdl","vim","visual-basic","warpscript","wasm","web-idl","wiki","wolfram","wren","xeora","xml-doc","xojo","xquery","yaml","yang","zig"];var Pe,Wo;function Ig(){if(Wo)return Pe;Wo=1,Pe=t;var e=Object.prototype.hasOwnProperty;function t(){for(var a={},r=0;r<arguments.length;r++){var n=arguments[r];for(var i in n)e.call(n,i)&&(a[i]=n[i])}return a}return Pe}var Be,Yo;function Bp(){if(Yo)return Be;Yo=1,Be=t;var e=t.prototype;e.space=null,e.normal={},e.property={};function t(a,r,n){this.property=a,this.normal=r,n&&(this.space=n)}return Be}var qe,Ko;function Ng(){if(Ko)return qe;Ko=1;var e=Ig(),t=Bp();qe=a;function a(r){for(var n=r.length,i=[],s=[],o=-1,d,g;++o<n;)d=r[o],i.push(d.property),s.push(d.normal),g=d.space;return new t(e.apply(null,i),e.apply(null,s),g)}return qe}var Ge,Zo;function Io(){if(Zo)return Ge;Zo=1,Ge=e;function e(t){return t.toLowerCase()}return Ge}var $e,Xo;function qp(){if(Xo)return $e;Xo=1,$e=t;var e=t.prototype;e.space=null,e.attribute=null,e.property=null,e.boolean=!1,e.booleanish=!1,e.overloadedBoolean=!1,e.number=!1,e.commaSeparated=!1,e.spaceSeparated=!1,e.commaOrSpaceSeparated=!1,e.mustUseProperty=!1,e.defined=!1;function t(a,r){this.property=a,this.attribute=r}return $e}var re={},Qo;function No(){if(Qo)return re;Qo=1;var e=0;re.boolean=t(),re.booleanish=t(),re.overloadedBoolean=t(),re.number=t(),re.spaceSeparated=t(),re.commaSeparated=t(),re.commaOrSpaceSeparated=t();function t(){return Math.pow(2,++e)}return re}var He,Jo;function Gp(){if(Jo)return He;Jo=1;var e=qp(),t=No();He=n,n.prototype=new e,n.prototype.defined=!0;var a=["boolean","booleanish","overloadedBoolean","number","commaSeparated","spaceSeparated","commaOrSpaceSeparated"],r=a.length;function n(s,o,d,g){var b=-1,f;for(i(this,"space",g),e.call(this,s,o);++b<r;)f=a[b],i(this,f,(d&t[f])===t[f])}function i(s,o,d){d&&(s[o]=d)}return He}var ze,es;function Te(){if(es)return ze;es=1;var e=Io(),t=Bp(),a=Gp();ze=r;function r(n){var i=n.space,s=n.mustUseProperty||[],o=n.attributes||{},d=n.properties,g=n.transform,b={},f={},S,v;for(S in d)v=new a(S,g(o,S),d[S],i),s.indexOf(S)!==-1&&(v.mustUseProperty=!0),b[S]=v,f[e(S)]=S,f[e(v.attribute)]=S;return new t(b,f,i)}return ze}var je,ts;function wg(){if(ts)return je;ts=1;var e=Te();je=e({space:"xlink",transform:t,properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}});function t(a,r){return"xlink:"+r.slice(5).toLowerCase()}return je}var Ve,as;function kg(){if(as)return Ve;as=1;var e=Te();Ve=e({space:"xml",transform:t,properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function t(a,r){return"xml:"+r.slice(3).toLowerCase()}return Ve}var We,rs;function Cg(){if(rs)return We;rs=1,We=e;function e(t,a){return a in t?t[a]:a}return We}var Ye,ns;function $p(){if(ns)return Ye;ns=1;var e=Cg();Ye=t;function t(a,r){return e(a,r.toLowerCase())}return Ye}var Ke,is;function Og(){if(is)return Ke;is=1;var e=Te(),t=$p();return Ke=e({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:t,properties:{xmlns:null,xmlnsXLink:null}}),Ke}var Ze,os;function Lg(){if(os)return Ze;os=1;var e=No(),t=Te(),a=e.booleanish,r=e.number,n=e.spaceSeparated;Ze=t({transform:i,properties:{ariaActiveDescendant:null,ariaAtomic:a,ariaAutoComplete:null,ariaBusy:a,ariaChecked:a,ariaColCount:r,ariaColIndex:r,ariaColSpan:r,ariaControls:n,ariaCurrent:null,ariaDescribedBy:n,ariaDetails:null,ariaDisabled:a,ariaDropEffect:n,ariaErrorMessage:null,ariaExpanded:a,ariaFlowTo:n,ariaGrabbed:a,ariaHasPopup:null,ariaHidden:a,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:n,ariaLevel:r,ariaLive:null,ariaModal:a,ariaMultiLine:a,ariaMultiSelectable:a,ariaOrientation:null,ariaOwns:n,ariaPlaceholder:null,ariaPosInSet:r,ariaPressed:a,ariaReadOnly:a,ariaRelevant:null,ariaRequired:a,ariaRoleDescription:n,ariaRowCount:r,ariaRowIndex:r,ariaRowSpan:r,ariaSelected:a,ariaSetSize:r,ariaSort:null,ariaValueMax:r,ariaValueMin:r,ariaValueNow:r,ariaValueText:null,role:null}});function i(s,o){return o==="role"?o:"aria-"+o.slice(4).toLowerCase()}return Ze}var Xe,ss;function xg(){if(ss)return Xe;ss=1;var e=No(),t=Te(),a=$p(),r=e.boolean,n=e.overloadedBoolean,i=e.booleanish,s=e.number,o=e.spaceSeparated,d=e.commaSeparated;return Xe=t({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:a,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:d,acceptCharset:o,accessKey:o,action:null,allow:null,allowFullScreen:r,allowPaymentRequest:r,allowUserMedia:r,alt:null,as:null,async:r,autoCapitalize:null,autoComplete:o,autoFocus:r,autoPlay:r,capture:r,charSet:null,checked:r,cite:null,className:o,cols:s,colSpan:null,content:null,contentEditable:i,controls:r,controlsList:o,coords:s|d,crossOrigin:null,data:null,dateTime:null,decoding:null,default:r,defer:r,dir:null,dirName:null,disabled:r,download:n,draggable:i,encType:null,enterKeyHint:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:r,formTarget:null,headers:o,height:s,hidden:r,high:s,href:null,hrefLang:null,htmlFor:o,httpEquiv:o,id:null,imageSizes:null,imageSrcSet:d,inputMode:null,integrity:null,is:null,isMap:r,itemId:null,itemProp:o,itemRef:o,itemScope:r,itemType:o,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:r,low:s,manifest:null,max:null,maxLength:s,media:null,method:null,min:null,minLength:s,multiple:r,muted:r,name:null,nonce:null,noModule:r,noValidate:r,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforePrint:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextMenu:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:r,optimum:s,pattern:null,ping:o,placeholder:null,playsInline:r,poster:null,preload:null,readOnly:r,referrerPolicy:null,rel:o,required:r,reversed:r,rows:s,rowSpan:s,sandbox:o,scope:null,scoped:r,seamless:r,selected:r,shape:null,size:s,sizes:null,slot:null,span:s,spellCheck:i,src:null,srcDoc:null,srcLang:null,srcSet:d,start:s,step:null,style:null,tabIndex:s,target:null,title:null,translate:null,type:null,typeMustMatch:r,useMap:null,value:i,width:s,wrap:null,align:null,aLink:null,archive:o,axis:null,background:null,bgColor:null,border:s,borderColor:null,bottomMargin:s,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:r,declare:r,event:null,face:null,frame:null,frameBorder:null,hSpace:s,leftMargin:s,link:null,longDesc:null,lowSrc:null,marginHeight:s,marginWidth:s,noResize:r,noHref:r,noShade:r,noWrap:r,object:null,profile:null,prompt:null,rev:null,rightMargin:s,rules:null,scheme:null,scrolling:i,standby:null,summary:null,text:null,topMargin:s,valueType:null,version:null,vAlign:null,vLink:null,vSpace:s,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:r,disableRemotePlayback:r,prefix:null,property:null,results:s,security:null,unselectable:null}}),Xe}var Qe,ls;function Dg(){if(ls)return Qe;ls=1;var e=Ng(),t=wg(),a=kg(),r=Og(),n=Lg(),i=xg();return Qe=e([a,t,r,n,i]),Qe}var Je,us;function Mg(){if(us)return Je;us=1;var e=Io(),t=Gp(),a=qp(),r="data";Je=o;var n=/^data[-\w.:]+$/i,i=/-[a-z]/g,s=/[A-Z]/g;function o(S,v){var R=e(v),y=v,T=a;return R in S.normal?S.property[S.normal[R]]:(R.length>4&&R.slice(0,4)===r&&n.test(v)&&(v.charAt(4)==="-"?y=d(v):v=g(v),T=t),new T(y,v))}function d(S){var v=S.slice(5).replace(i,f);return r+v.charAt(0).toUpperCase()+v.slice(1)}function g(S){var v=S.slice(4);return i.test(v)?S:(v=v.replace(s,b),v.charAt(0)!=="-"&&(v="-"+v),r+v)}function b(S){return"-"+S.toLowerCase()}function f(S){return S.charAt(1).toUpperCase()}return Je}var et,cs;function Fg(){if(cs)return et;cs=1,et=t;var e=/[#.]/g;function t(a,r){for(var n=a||"",i=r||"div",s={},o=0,d,g,b;o<n.length;)e.lastIndex=o,b=e.exec(n),d=n.slice(o,b?b.index:n.length),d&&(g?g==="#"?s.id=d:s.className?s.className.push(d):s.className=[d]:i=d,o+=d.length),b&&(g=b[0],o++);return{type:"element",tagName:i,properties:s,children:[]}}return et}var _e={},ds;function Ug(){if(ds)return _e;ds=1,_e.parse=r,_e.stringify=n;var e="",t=" ",a=/[ \t\n\r\f]+/g;function r(i){var s=String(i||e).trim();return s===e?[]:s.split(a)}function n(i){return i.join(t).trim()}return _e}var Ie={},ps;function Pg(){if(ps)return Ie;ps=1,Ie.parse=r,Ie.stringify=n;var e=",",t=" ",a="";function r(i){for(var s=[],o=String(i||a),d=o.indexOf(e),g=0,b=!1,f;!b;)d===-1&&(d=o.length,b=!0),f=o.slice(g,d).trim(),(f||!b)&&s.push(f),g=d+1,d=o.indexOf(e,g);return s}function n(i,s){var o=s||{},d=o.padLeft===!1?a:t,g=o.padRight?t:a;return i[i.length-1]===a&&(i=i.concat(a)),i.join(g+e+d).trim()}return Ie}var tt,gs;function Bg(){if(gs)return tt;gs=1;var e=Mg(),t=Io(),a=Fg(),r=Ug().parse,n=Pg().parse;tt=s;var i={}.hasOwnProperty;function s(R,y,T){var A=T?v(T):null;return u;function u(p,m){var c=a(p,y),E=Array.prototype.slice.call(arguments,2),_=c.tagName.toLowerCase(),h;if(c.tagName=A&&i.call(A,_)?A[_]:_,m&&o(m,c)&&(E.unshift(m),m=null),m)for(h in m)l(c.properties,h,m[h]);return g(c.children,E),c.tagName==="template"&&(c.content={type:"root",children:c.children},c.children=[]),c}function l(p,m,c){var E,_,h;c==null||c!==c||(E=e(R,m),_=E.property,h=c,typeof h=="string"&&(E.spaceSeparated?h=r(h):E.commaSeparated?h=n(h):E.commaOrSpaceSeparated&&(h=r(n(h).join(" ")))),_==="style"&&typeof c!="string"&&(h=S(h)),_==="className"&&p.className&&(h=p.className.concat(h)),p[_]=b(E,_,h))}}function o(R,y){return typeof R=="string"||"length"in R||d(y.tagName,R)}function d(R,y){var T=y.type;return R==="input"||!T||typeof T!="string"?!1:typeof y.children=="object"&&"length"in y.children?!0:(T=T.toLowerCase(),R==="button"?T!=="menu"&&T!=="submit"&&T!=="reset"&&T!=="button":"value"in y)}function g(R,y){var T,A;if(typeof y=="string"||typeof y=="number"){R.push({type:"text",value:String(y)});return}if(typeof y=="object"&&"length"in y){for(T=-1,A=y.length;++T<A;)g(R,y[T]);return}if(typeof y!="object"||!("type"in y))throw new Error("Expected node, nodes, or string, got `"+y+"`");R.push(y)}function b(R,y,T){var A,u,l;if(typeof T!="object"||!("length"in T))return f(R,y,T);for(u=T.length,A=-1,l=[];++A<u;)l[A]=f(R,y,T[A]);return l}function f(R,y,T){var A=T;return R.number||R.positiveNumber?!isNaN(A)&&A!==""&&(A=Number(A)):(R.boolean||R.overloadedBoolean)&&typeof A=="string"&&(A===""||t(T)===t(y))&&(A=!0),A}function S(R){var y=[],T;for(T in R)y.push([T,R[T]].join(": "));return y.join("; ")}function v(R){for(var y=R.length,T=-1,A={},u;++T<y;)u=R[T],A[u.toLowerCase()]=u;return A}return tt}var at,bs;function qg(){if(bs)return at;bs=1;var e=Dg(),t=Bg(),a=t(e,"div");return a.displayName="html",at=a,at}var rt,ms;function Gg(){return ms||(ms=1,rt=qg()),rt}const $g="Æ",Hg="&",zg="Á",jg="Â",Vg="À",Wg="Å",Yg="Ã",Kg="Ä",Zg="©",Xg="Ç",Qg="Ð",Jg="É",eb="Ê",tb="È",ab="Ë",rb=">",nb="Í",ib="Î",ob="Ì",sb="Ï",lb="<",ub="Ñ",cb="Ó",db="Ô",pb="Ò",gb="Ø",bb="Õ",mb="Ö",fb='"',hb="®",Eb="Þ",Sb="Ú",yb="Û",vb="Ù",Tb="Ü",Ab="Ý",Rb="á",_b="â",Ib="´",Nb="æ",wb="à",kb="&",Cb="å",Ob="ã",Lb="ä",xb="¦",Db="ç",Mb="¸",Fb="¢",Ub="©",Pb="¤",Bb="°",qb="÷",Gb="é",$b="ê",Hb="è",zb="ð",jb="ë",Vb="½",Wb="¼",Yb="¾",Kb=">",Zb="í",Xb="î",Qb="¡",Jb="ì",em="¿",tm="ï",am="«",rm="<",nm="¯",im="µ",om="·",sm=" ",lm="¬",um="ñ",cm="ó",dm="ô",pm="ò",gm="ª",bm="º",mm="ø",fm="õ",hm="ö",Em="¶",Sm="±",ym="£",vm='"',Tm="»",Am="®",Rm="§",_m="",Im="¹",Nm="²",wm="³",km="ß",Cm="þ",Om="×",Lm="ú",xm="û",Dm="ù",Mm="¨",Fm="ü",Um="ý",Pm="¥",Bm="ÿ",qm={AElig:$g,AMP:Hg,Aacute:zg,Acirc:jg,Agrave:Vg,Aring:Wg,Atilde:Yg,Auml:Kg,COPY:Zg,Ccedil:Xg,ETH:Qg,Eacute:Jg,Ecirc:eb,Egrave:tb,Euml:ab,GT:rb,Iacute:nb,Icirc:ib,Igrave:ob,Iuml:sb,LT:lb,Ntilde:ub,Oacute:cb,Ocirc:db,Ograve:pb,Oslash:gb,Otilde:bb,Ouml:mb,QUOT:fb,REG:hb,THORN:Eb,Uacute:Sb,Ucirc:yb,Ugrave:vb,Uuml:Tb,Yacute:Ab,aacute:Rb,acirc:_b,acute:Ib,aelig:Nb,agrave:wb,amp:kb,aring:Cb,atilde:Ob,auml:Lb,brvbar:xb,ccedil:Db,cedil:Mb,cent:Fb,copy:Ub,curren:Pb,deg:Bb,divide:qb,eacute:Gb,ecirc:$b,egrave:Hb,eth:zb,euml:jb,frac12:Vb,frac14:Wb,frac34:Yb,gt:Kb,iacute:Zb,icirc:Xb,iexcl:Qb,igrave:Jb,iquest:em,iuml:tm,laquo:am,lt:rm,macr:nm,micro:im,middot:om,nbsp:sm,not:lm,ntilde:um,oacute:cm,ocirc:dm,ograve:pm,ordf:gm,ordm:bm,oslash:mm,otilde:fm,ouml:hm,para:Em,plusmn:Sm,pound:ym,quot:vm,raquo:Tm,reg:Am,sect:Rm,shy:_m,sup1:Im,sup2:Nm,sup3:wm,szlig:km,thorn:Cm,times:Om,uacute:Lm,ucirc:xm,ugrave:Dm,uml:Mm,uuml:Fm,yacute:Um,yen:Pm,yuml:Bm},Gm={0:"�",128:"€",130:"‚",131:"ƒ",132:"„",133:"…",134:"†",135:"‡",136:"ˆ",137:"‰",138:"Š",139:"‹",140:"Œ",142:"Ž",145:"‘",146:"’",147:"“",148:"”",149:"•",150:"–",151:"—",152:"˜",153:"™",154:"š",155:"›",156:"œ",158:"ž",159:"Ÿ"};var nt,fs;function Hp(){if(fs)return nt;fs=1,nt=e;function e(t){var a=typeof t=="string"?t.charCodeAt(0):t;return a>=48&&a<=57}return nt}var it,hs;function $m(){if(hs)return it;hs=1,it=e;function e(t){var a=typeof t=="string"?t.charCodeAt(0):t;return a>=97&&a<=102||a>=65&&a<=70||a>=48&&a<=57}return it}var ot,Es;function Hm(){if(Es)return ot;Es=1,ot=e;function e(t){var a=typeof t=="string"?t.charCodeAt(0):t;return a>=97&&a<=122||a>=65&&a<=90}return ot}var st,Ss;function zm(){if(Ss)return st;Ss=1;var e=Hm(),t=Hp();st=a;function a(r){return e(r)||t(r)}return st}var lt,ys;function jm(){if(ys)return lt;ys=1;var e,t=59;lt=a;function a(r){var n="&"+r+";",i;return e=e||document.createElement("i"),e.innerHTML=n,i=e.textContent,i.charCodeAt(i.length-1)===t&&r!=="semi"||i===n?!1:i}return lt}var ut,vs;function Vm(){if(vs)return ut;vs=1;var e=qm,t=Gm,a=Hp(),r=$m(),n=zm(),i=jm();ut=x;var s={}.hasOwnProperty,o=String.fromCharCode,d=Function.prototype,g={warning:null,reference:null,text:null,warningContext:null,referenceContext:null,textContext:null,position:{},additional:null,attribute:!1,nonTerminated:!0},b=9,f=10,S=12,v=32,R=38,y=59,T=60,A=61,u=35,l=88,p=120,m=65533,c="named",E="hexadecimal",_="decimal",h={};h[E]=16,h[_]=10;var I={};I[c]=n,I[_]=a,I[E]=r;var N=1,O=2,U=3,P=4,H=5,V=6,B=7,w={};w[N]="Named character references must be terminated by a semicolon",w[O]="Numeric character references must be terminated by a semicolon",w[U]="Named character references cannot be empty",w[P]="Numeric character references cannot be empty",w[H]="Named character references must be known",w[V]="Numeric character references cannot be disallowed",w[B]="Numeric character references cannot be outside the permissible Unicode range";function x(C,L){var F={},$,q;L||(L={});for(q in g)$=L[q],F[q]=$??g[q];return(F.position.indent||F.position.start)&&(F.indent=F.position.indent||[],F.position=F.position.start),M(C,F)}function M(C,L){var F=L.additional,$=L.nonTerminated,q=L.text,W=L.reference,J=L.warning,X=L.textContext,K=L.referenceContext,he=L.warningContext,Q=L.position,Xp=L.indent||[],Le=C.length,ne=0,Fo=-1,le=Q.column||1,Uo=Q.line||1,ue="",xe=[],be,De,ce,Z,ie,z,G,ee,Ae,Me,de,Ee,pe,ae,Po,Se,Re,te,j;for(typeof F=="string"&&(F=F.charCodeAt(0)),Se=ye(),ee=J?Qp:d,ne--,Le++;++ne<Le;)if(ie===f&&(le=Xp[Fo]||1),ie=C.charCodeAt(ne),ie===R){if(G=C.charCodeAt(ne+1),G===b||G===f||G===S||G===v||G===R||G===T||G!==G||F&&G===F){ue+=o(ie),le++;continue}for(pe=ne+1,Ee=pe,j=pe,G===u?(j=++Ee,G=C.charCodeAt(j),G===l||G===p?(ae=E,j=++Ee):ae=_):ae=c,be="",de="",Z="",Po=I[ae],j--;++j<Le&&(G=C.charCodeAt(j),!!Po(G));)Z+=o(G),ae===c&&s.call(e,Z)&&(be=Z,de=e[Z]);ce=C.charCodeAt(j)===y,ce&&(j++,De=ae===c?i(Z):!1,De&&(be=Z,de=De)),te=1+j-pe,!ce&&!$||(Z?ae===c?(ce&&!de?ee(H,1):(be!==Z&&(j=Ee+be.length,te=1+j-Ee,ce=!1),ce||(Ae=be?N:U,L.attribute?(G=C.charCodeAt(j),G===A?(ee(Ae,te),de=null):n(G)?de=null:ee(Ae,te)):ee(Ae,te))),z=de):(ce||ee(O,te),z=parseInt(Z,h[ae]),D(z)?(ee(B,te),z=o(m)):z in t?(ee(V,te),z=t[z]):(Me="",k(z)&&ee(V,te),z>65535&&(z-=65536,Me+=o(z>>>10|55296),z=56320|z&1023),z=Me+o(z))):ae!==c&&ee(P,te)),z?(Bo(),Se=ye(),ne=j-1,le+=j-pe+1,xe.push(z),Re=ye(),Re.offset++,W&&W.call(K,z,{start:Se,end:Re},C.slice(pe-1,j)),Se=Re):(Z=C.slice(pe-1,j),ue+=Z,le+=Z.length,ne=j-1)}else ie===10&&(Uo++,Fo++,le=0),ie===ie?(ue+=o(ie),le++):Bo();return xe.join("");function ye(){return{line:Uo,column:le,offset:ne+(Q.offset||0)}}function Qp(qo,Go){var Fe=ye();Fe.column+=Go,Fe.offset+=Go,J.call(he,w[qo],Fe,qo)}function Bo(){ue&&(xe.push(ue),q&&q.call(X,ue,{start:Se,end:ye()}),ue="")}}function D(C){return C>=55296&&C<=57343||C>1114111}function k(C){return C>=1&&C<=8||C===11||C>=13&&C<=31||C>=127&&C<=159||C>=64976&&C<=65007||(C&65535)===65535||(C&65535)===65534}return ut}var ct={exports:{}},Ts;function Wm(){return Ts||(Ts=1,(function(e){var t=typeof window<"u"?window:typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope?self:{};/**
|
|
6
|
+
`)};if(N===0){var P=b.slice(S+1,v).concat(Ne({children:[U],className:c.properties.className})),H=T(P,O);f.push(H)}else if(N===h.length-1){var V=b[v+1]&&b[v+1].children&&b[v+1].children[0],B={type:"text",value:"".concat(I)};if(V){var w=Ne({children:[B],className:c.properties.className});b.splice(v+1,0,w)}else{var x=[B],M=T(x,O,c.properties.className);f.push(M)}}else{var D=[U],k=T(D,O,c.properties.className);f.push(k)}}),S=v}v++};v<b.length;)A();if(S!==b.length-1){var u=b.slice(S+1,b.length);if(u&&u.length){var l=r&&f.length+i,p=T(u,l);f.push(p)}}return t?f:(g=[]).concat.apply(g,f)}function Tg(e){var t=e.rows,a=e.stylesheet,r=e.useInlineStyles;return t.map(function(n,i){return Dp({node:n,stylesheet:a,useInlineStyles:r,key:"code-segment-".concat(i)})})}function Pp(e){return e&&typeof e.highlightAuto<"u"}function Ag(e){var t=e.astGenerator,a=e.language,r=e.code,n=e.defaultCodeValue;if(Pp(t)){var i=bg(t,a);return a==="text"?{value:n,language:"text"}:i?t.highlight(a,r):t.highlightAuto(r)}try{return a&&a!=="text"?{value:t.highlight(r,a)}:{value:n}}catch{return{value:n}}}function Rg(e,t){return function(r){var n,i,s=r.language,o=r.children,d=r.style,g=d===void 0?t:d,b=r.customStyle,f=b===void 0?{}:b,S=r.codeTagProps,v=S===void 0?{className:s?"language-".concat(s):void 0,style:se(se({},g['code[class*="language-"]']),g['code[class*="language-'.concat(s,'"]')])}:S,R=r.useInlineStyles,y=R===void 0?!0:R,T=r.showLineNumbers,A=T===void 0?!1:T,u=r.showInlineLineNumbers,l=u===void 0?!0:u,p=r.startingLineNumber,m=p===void 0?1:p,c=r.lineNumberContainerStyle,E=r.lineNumberStyle,_=E===void 0?{}:E,h=r.wrapLines,I=r.wrapLongLines,N=I===void 0?!1:I,O=r.lineProps,U=O===void 0?{}:O,P=r.renderer,H=r.PreTag,V=H===void 0?"pre":H,B=r.CodeTag,w=B===void 0?"code":B,x=r.code,M=x===void 0?(Array.isArray(o)?o[0]:o)||"":x,D=r.astGenerator,k=ig(r,mg);D=D||e;var C=A?oe.createElement(Sg,{containerStyle:c,codeStyle:v.style||{},numberStyle:_,startingLineNumber:m,codeString:M}):null,L=g.hljs||g['pre[class*="language-"]']||{backgroundColor:"#fff"},F=Pp(D)?"hljs":"prismjs",$=y?Object.assign({},k,{style:Object.assign({},L,f)}):Object.assign({},k,{className:k.className?"".concat(F," ").concat(k.className):F,style:Object.assign({},f)});if(N?v.style=se({whiteSpace:"pre-wrap"},v.style):v.style=se({whiteSpace:"pre"},v.style),!D)return oe.createElement(V,$,C,oe.createElement(w,v,M));(h===void 0&&P||N)&&(h=!0),P=P||Tg;var q=[{type:"text",value:M}],W=Ag({astGenerator:D,language:s,code:M,defaultCodeValue:q});W.language===null&&(W.value=q);var J=(n=(i=M.match(/\n/g))===null||i===void 0?void 0:i.length)!==null&&n!==void 0?n:0,X=m+J,K=vg(W,h,U,A,l,m,X,_,N);return oe.createElement(V,$,oe.createElement(w,v,!l&&C,P({rows:K,stylesheet:g,useInlineStyles:y})))}}const _g=["abap","abnf","actionscript","ada","agda","al","antlr4","apacheconf","apex","apl","applescript","aql","arduino","arff","asciidoc","asm6502","asmatmel","aspnet","autohotkey","autoit","avisynth","avro-idl","bash","basic","batch","bbcode","bicep","birb","bison","bnf","brainfuck","brightscript","bro","bsl","c","cfscript","chaiscript","cil","clike","clojure","cmake","cobol","coffeescript","concurnas","coq","cpp","crystal","csharp","cshtml","csp","css-extras","css","csv","cypher","d","dart","dataweave","dax","dhall","diff","django","dns-zone-file","docker","dot","ebnf","editorconfig","eiffel","ejs","elixir","elm","erb","erlang","etlua","excel-formula","factor","false","firestore-security-rules","flow","fortran","fsharp","ftl","gap","gcode","gdscript","gedcom","gherkin","git","glsl","gml","gn","go-module","go","graphql","groovy","haml","handlebars","haskell","haxe","hcl","hlsl","hoon","hpkp","hsts","http","ichigojam","icon","icu-message-format","idris","iecst","ignore","inform7","ini","io","j","java","javadoc","javadoclike","javascript","javastacktrace","jexl","jolie","jq","js-extras","js-templates","jsdoc","json","json5","jsonp","jsstacktrace","jsx","julia","keepalived","keyman","kotlin","kumir","kusto","latex","latte","less","lilypond","liquid","lisp","livescript","llvm","log","lolcode","lua","magma","makefile","markdown","markup-templating","markup","matlab","maxscript","mel","mermaid","mizar","mongodb","monkey","moonscript","n1ql","n4js","nand2tetris-hdl","naniscript","nasm","neon","nevod","nginx","nim","nix","nsis","objectivec","ocaml","opencl","openqasm","oz","parigp","parser","pascal","pascaligo","pcaxis","peoplecode","perl","php-extras","php","phpdoc","plsql","powerquery","powershell","processing","prolog","promql","properties","protobuf","psl","pug","puppet","pure","purebasic","purescript","python","q","qml","qore","qsharp","r","racket","reason","regex","rego","renpy","rest","rip","roboconf","robotframework","ruby","rust","sas","sass","scala","scheme","scss","shell-session","smali","smalltalk","smarty","sml","solidity","solution-file","soy","sparql","splunk-spl","sqf","sql","squirrel","stan","stylus","swift","systemd","t4-cs","t4-templating","t4-vb","tap","tcl","textile","toml","tremor","tsx","tt2","turtle","twig","typescript","typoscript","unrealscript","uorazor","uri","v","vala","vbnet","velocity","verilog","vhdl","vim","visual-basic","warpscript","wasm","web-idl","wiki","wolfram","wren","xeora","xml-doc","xojo","xquery","yaml","yang","zig"];var Pe,Wo;function Ig(){if(Wo)return Pe;Wo=1,Pe=t;var e=Object.prototype.hasOwnProperty;function t(){for(var a={},r=0;r<arguments.length;r++){var n=arguments[r];for(var i in n)e.call(n,i)&&(a[i]=n[i])}return a}return Pe}var Be,Yo;function Bp(){if(Yo)return Be;Yo=1,Be=t;var e=t.prototype;e.space=null,e.normal={},e.property={};function t(a,r,n){this.property=a,this.normal=r,n&&(this.space=n)}return Be}var qe,Ko;function Ng(){if(Ko)return qe;Ko=1;var e=Ig(),t=Bp();qe=a;function a(r){for(var n=r.length,i=[],s=[],o=-1,d,g;++o<n;)d=r[o],i.push(d.property),s.push(d.normal),g=d.space;return new t(e.apply(null,i),e.apply(null,s),g)}return qe}var Ge,Zo;function Io(){if(Zo)return Ge;Zo=1,Ge=e;function e(t){return t.toLowerCase()}return Ge}var $e,Xo;function qp(){if(Xo)return $e;Xo=1,$e=t;var e=t.prototype;e.space=null,e.attribute=null,e.property=null,e.boolean=!1,e.booleanish=!1,e.overloadedBoolean=!1,e.number=!1,e.commaSeparated=!1,e.spaceSeparated=!1,e.commaOrSpaceSeparated=!1,e.mustUseProperty=!1,e.defined=!1;function t(a,r){this.property=a,this.attribute=r}return $e}var re={},Qo;function No(){if(Qo)return re;Qo=1;var e=0;re.boolean=t(),re.booleanish=t(),re.overloadedBoolean=t(),re.number=t(),re.spaceSeparated=t(),re.commaSeparated=t(),re.commaOrSpaceSeparated=t();function t(){return Math.pow(2,++e)}return re}var He,Jo;function Gp(){if(Jo)return He;Jo=1;var e=qp(),t=No();He=n,n.prototype=new e,n.prototype.defined=!0;var a=["boolean","booleanish","overloadedBoolean","number","commaSeparated","spaceSeparated","commaOrSpaceSeparated"],r=a.length;function n(s,o,d,g){var b=-1,f;for(i(this,"space",g),e.call(this,s,o);++b<r;)f=a[b],i(this,f,(d&t[f])===t[f])}function i(s,o,d){d&&(s[o]=d)}return He}var ze,es;function Te(){if(es)return ze;es=1;var e=Io(),t=Bp(),a=Gp();ze=r;function r(n){var i=n.space,s=n.mustUseProperty||[],o=n.attributes||{},d=n.properties,g=n.transform,b={},f={},S,v;for(S in d)v=new a(S,g(o,S),d[S],i),s.indexOf(S)!==-1&&(v.mustUseProperty=!0),b[S]=v,f[e(S)]=S,f[e(v.attribute)]=S;return new t(b,f,i)}return ze}var je,ts;function wg(){if(ts)return je;ts=1;var e=Te();je=e({space:"xlink",transform:t,properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}});function t(a,r){return"xlink:"+r.slice(5).toLowerCase()}return je}var Ve,as;function kg(){if(as)return Ve;as=1;var e=Te();Ve=e({space:"xml",transform:t,properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function t(a,r){return"xml:"+r.slice(3).toLowerCase()}return Ve}var We,rs;function Cg(){if(rs)return We;rs=1,We=e;function e(t,a){return a in t?t[a]:a}return We}var Ye,ns;function $p(){if(ns)return Ye;ns=1;var e=Cg();Ye=t;function t(a,r){return e(a,r.toLowerCase())}return Ye}var Ke,is;function Og(){if(is)return Ke;is=1;var e=Te(),t=$p();return Ke=e({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:t,properties:{xmlns:null,xmlnsXLink:null}}),Ke}var Ze,os;function Lg(){if(os)return Ze;os=1;var e=No(),t=Te(),a=e.booleanish,r=e.number,n=e.spaceSeparated;Ze=t({transform:i,properties:{ariaActiveDescendant:null,ariaAtomic:a,ariaAutoComplete:null,ariaBusy:a,ariaChecked:a,ariaColCount:r,ariaColIndex:r,ariaColSpan:r,ariaControls:n,ariaCurrent:null,ariaDescribedBy:n,ariaDetails:null,ariaDisabled:a,ariaDropEffect:n,ariaErrorMessage:null,ariaExpanded:a,ariaFlowTo:n,ariaGrabbed:a,ariaHasPopup:null,ariaHidden:a,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:n,ariaLevel:r,ariaLive:null,ariaModal:a,ariaMultiLine:a,ariaMultiSelectable:a,ariaOrientation:null,ariaOwns:n,ariaPlaceholder:null,ariaPosInSet:r,ariaPressed:a,ariaReadOnly:a,ariaRelevant:null,ariaRequired:a,ariaRoleDescription:n,ariaRowCount:r,ariaRowIndex:r,ariaRowSpan:r,ariaSelected:a,ariaSetSize:r,ariaSort:null,ariaValueMax:r,ariaValueMin:r,ariaValueNow:r,ariaValueText:null,role:null}});function i(s,o){return o==="role"?o:"aria-"+o.slice(4).toLowerCase()}return Ze}var Xe,ss;function xg(){if(ss)return Xe;ss=1;var e=No(),t=Te(),a=$p(),r=e.boolean,n=e.overloadedBoolean,i=e.booleanish,s=e.number,o=e.spaceSeparated,d=e.commaSeparated;return Xe=t({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:a,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:d,acceptCharset:o,accessKey:o,action:null,allow:null,allowFullScreen:r,allowPaymentRequest:r,allowUserMedia:r,alt:null,as:null,async:r,autoCapitalize:null,autoComplete:o,autoFocus:r,autoPlay:r,capture:r,charSet:null,checked:r,cite:null,className:o,cols:s,colSpan:null,content:null,contentEditable:i,controls:r,controlsList:o,coords:s|d,crossOrigin:null,data:null,dateTime:null,decoding:null,default:r,defer:r,dir:null,dirName:null,disabled:r,download:n,draggable:i,encType:null,enterKeyHint:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:r,formTarget:null,headers:o,height:s,hidden:r,high:s,href:null,hrefLang:null,htmlFor:o,httpEquiv:o,id:null,imageSizes:null,imageSrcSet:d,inputMode:null,integrity:null,is:null,isMap:r,itemId:null,itemProp:o,itemRef:o,itemScope:r,itemType:o,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:r,low:s,manifest:null,max:null,maxLength:s,media:null,method:null,min:null,minLength:s,multiple:r,muted:r,name:null,nonce:null,noModule:r,noValidate:r,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforePrint:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextMenu:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:r,optimum:s,pattern:null,ping:o,placeholder:null,playsInline:r,poster:null,preload:null,readOnly:r,referrerPolicy:null,rel:o,required:r,reversed:r,rows:s,rowSpan:s,sandbox:o,scope:null,scoped:r,seamless:r,selected:r,shape:null,size:s,sizes:null,slot:null,span:s,spellCheck:i,src:null,srcDoc:null,srcLang:null,srcSet:d,start:s,step:null,style:null,tabIndex:s,target:null,title:null,translate:null,type:null,typeMustMatch:r,useMap:null,value:i,width:s,wrap:null,align:null,aLink:null,archive:o,axis:null,background:null,bgColor:null,border:s,borderColor:null,bottomMargin:s,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:r,declare:r,event:null,face:null,frame:null,frameBorder:null,hSpace:s,leftMargin:s,link:null,longDesc:null,lowSrc:null,marginHeight:s,marginWidth:s,noResize:r,noHref:r,noShade:r,noWrap:r,object:null,profile:null,prompt:null,rev:null,rightMargin:s,rules:null,scheme:null,scrolling:i,standby:null,summary:null,text:null,topMargin:s,valueType:null,version:null,vAlign:null,vLink:null,vSpace:s,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:r,disableRemotePlayback:r,prefix:null,property:null,results:s,security:null,unselectable:null}}),Xe}var Qe,ls;function Dg(){if(ls)return Qe;ls=1;var e=Ng(),t=wg(),a=kg(),r=Og(),n=Lg(),i=xg();return Qe=e([a,t,r,n,i]),Qe}var Je,us;function Mg(){if(us)return Je;us=1;var e=Io(),t=Gp(),a=qp(),r="data";Je=o;var n=/^data[-\w.:]+$/i,i=/-[a-z]/g,s=/[A-Z]/g;function o(S,v){var R=e(v),y=v,T=a;return R in S.normal?S.property[S.normal[R]]:(R.length>4&&R.slice(0,4)===r&&n.test(v)&&(v.charAt(4)==="-"?y=d(v):v=g(v),T=t),new T(y,v))}function d(S){var v=S.slice(5).replace(i,f);return r+v.charAt(0).toUpperCase()+v.slice(1)}function g(S){var v=S.slice(4);return i.test(v)?S:(v=v.replace(s,b),v.charAt(0)!=="-"&&(v="-"+v),r+v)}function b(S){return"-"+S.toLowerCase()}function f(S){return S.charAt(1).toUpperCase()}return Je}var et,cs;function Fg(){if(cs)return et;cs=1,et=t;var e=/[#.]/g;function t(a,r){for(var n=a||"",i=r||"div",s={},o=0,d,g,b;o<n.length;)e.lastIndex=o,b=e.exec(n),d=n.slice(o,b?b.index:n.length),d&&(g?g==="#"?s.id=d:s.className?s.className.push(d):s.className=[d]:i=d,o+=d.length),b&&(g=b[0],o++);return{type:"element",tagName:i,properties:s,children:[]}}return et}var _e={},ds;function Ug(){if(ds)return _e;ds=1,_e.parse=r,_e.stringify=n;var e="",t=" ",a=/[ \t\n\r\f]+/g;function r(i){var s=String(i||e).trim();return s===e?[]:s.split(a)}function n(i){return i.join(t).trim()}return _e}var Ie={},ps;function Pg(){if(ps)return Ie;ps=1,Ie.parse=r,Ie.stringify=n;var e=",",t=" ",a="";function r(i){for(var s=[],o=String(i||a),d=o.indexOf(e),g=0,b=!1,f;!b;)d===-1&&(d=o.length,b=!0),f=o.slice(g,d).trim(),(f||!b)&&s.push(f),g=d+1,d=o.indexOf(e,g);return s}function n(i,s){var o=s||{},d=o.padLeft===!1?a:t,g=o.padRight?t:a;return i[i.length-1]===a&&(i=i.concat(a)),i.join(g+e+d).trim()}return Ie}var tt,gs;function Bg(){if(gs)return tt;gs=1;var e=Mg(),t=Io(),a=Fg(),r=Ug().parse,n=Pg().parse;tt=s;var i={}.hasOwnProperty;function s(R,y,T){var A=T?v(T):null;return u;function u(p,m){var c=a(p,y),E=Array.prototype.slice.call(arguments,2),_=c.tagName.toLowerCase(),h;if(c.tagName=A&&i.call(A,_)?A[_]:_,m&&o(m,c)&&(E.unshift(m),m=null),m)for(h in m)l(c.properties,h,m[h]);return g(c.children,E),c.tagName==="template"&&(c.content={type:"root",children:c.children},c.children=[]),c}function l(p,m,c){var E,_,h;c==null||c!==c||(E=e(R,m),_=E.property,h=c,typeof h=="string"&&(E.spaceSeparated?h=r(h):E.commaSeparated?h=n(h):E.commaOrSpaceSeparated&&(h=r(n(h).join(" ")))),_==="style"&&typeof c!="string"&&(h=S(h)),_==="className"&&p.className&&(h=p.className.concat(h)),p[_]=b(E,_,h))}}function o(R,y){return typeof R=="string"||"length"in R||d(y.tagName,R)}function d(R,y){var T=y.type;return R==="input"||!T||typeof T!="string"?!1:typeof y.children=="object"&&"length"in y.children?!0:(T=T.toLowerCase(),R==="button"?T!=="menu"&&T!=="submit"&&T!=="reset"&&T!=="button":"value"in y)}function g(R,y){var T,A;if(typeof y=="string"||typeof y=="number"){R.push({type:"text",value:String(y)});return}if(typeof y=="object"&&"length"in y){for(T=-1,A=y.length;++T<A;)g(R,y[T]);return}if(typeof y!="object"||!("type"in y))throw new Error("Expected node, nodes, or string, got `"+y+"`");R.push(y)}function b(R,y,T){var A,u,l;if(typeof T!="object"||!("length"in T))return f(R,y,T);for(u=T.length,A=-1,l=[];++A<u;)l[A]=f(R,y,T[A]);return l}function f(R,y,T){var A=T;return R.number||R.positiveNumber?!isNaN(A)&&A!==""&&(A=Number(A)):(R.boolean||R.overloadedBoolean)&&typeof A=="string"&&(A===""||t(T)===t(y))&&(A=!0),A}function S(R){var y=[],T;for(T in R)y.push([T,R[T]].join(": "));return y.join("; ")}function v(R){for(var y=R.length,T=-1,A={},u;++T<y;)u=R[T],A[u.toLowerCase()]=u;return A}return tt}var at,bs;function qg(){if(bs)return at;bs=1;var e=Dg(),t=Bg(),a=t(e,"div");return a.displayName="html",at=a,at}var rt,ms;function Gg(){return ms||(ms=1,rt=qg()),rt}const $g="Æ",Hg="&",zg="Á",jg="Â",Vg="À",Wg="Å",Yg="Ã",Kg="Ä",Zg="©",Xg="Ç",Qg="Ð",Jg="É",eb="Ê",tb="È",ab="Ë",rb=">",nb="Í",ib="Î",ob="Ì",sb="Ï",lb="<",ub="Ñ",cb="Ó",db="Ô",pb="Ò",gb="Ø",bb="Õ",mb="Ö",fb='"',hb="®",Eb="Þ",Sb="Ú",yb="Û",vb="Ù",Tb="Ü",Ab="Ý",Rb="á",_b="â",Ib="´",Nb="æ",wb="à",kb="&",Cb="å",Ob="ã",Lb="ä",xb="¦",Db="ç",Mb="¸",Fb="¢",Ub="©",Pb="¤",Bb="°",qb="÷",Gb="é",$b="ê",Hb="è",zb="ð",jb="ë",Vb="½",Wb="¼",Yb="¾",Kb=">",Zb="í",Xb="î",Qb="¡",Jb="ì",em="¿",tm="ï",am="«",rm="<",nm="¯",im="µ",om="·",sm=" ",lm="¬",um="ñ",cm="ó",dm="ô",pm="ò",gm="ª",bm="º",mm="ø",fm="õ",hm="ö",Em="¶",Sm="±",ym="£",vm='"',Tm="»",Am="®",Rm="§",_m="",Im="¹",Nm="²",wm="³",km="ß",Cm="þ",Om="×",Lm="ú",xm="û",Dm="ù",Mm="¨",Fm="ü",Um="ý",Pm="¥",Bm="ÿ",qm={AElig:$g,AMP:Hg,Aacute:zg,Acirc:jg,Agrave:Vg,Aring:Wg,Atilde:Yg,Auml:Kg,COPY:Zg,Ccedil:Xg,ETH:Qg,Eacute:Jg,Ecirc:eb,Egrave:tb,Euml:ab,GT:rb,Iacute:nb,Icirc:ib,Igrave:ob,Iuml:sb,LT:lb,Ntilde:ub,Oacute:cb,Ocirc:db,Ograve:pb,Oslash:gb,Otilde:bb,Ouml:mb,QUOT:fb,REG:hb,THORN:Eb,Uacute:Sb,Ucirc:yb,Ugrave:vb,Uuml:Tb,Yacute:Ab,aacute:Rb,acirc:_b,acute:Ib,aelig:Nb,agrave:wb,amp:kb,aring:Cb,atilde:Ob,auml:Lb,brvbar:xb,ccedil:Db,cedil:Mb,cent:Fb,copy:Ub,curren:Pb,deg:Bb,divide:qb,eacute:Gb,ecirc:$b,egrave:Hb,eth:zb,euml:jb,frac12:Vb,frac14:Wb,frac34:Yb,gt:Kb,iacute:Zb,icirc:Xb,iexcl:Qb,igrave:Jb,iquest:em,iuml:tm,laquo:am,lt:rm,macr:nm,micro:im,middot:om,nbsp:sm,not:lm,ntilde:um,oacute:cm,ocirc:dm,ograve:pm,ordf:gm,ordm:bm,oslash:mm,otilde:fm,ouml:hm,para:Em,plusmn:Sm,pound:ym,quot:vm,raquo:Tm,reg:Am,sect:Rm,shy:_m,sup1:Im,sup2:Nm,sup3:wm,szlig:km,thorn:Cm,times:Om,uacute:Lm,ucirc:xm,ugrave:Dm,uml:Mm,uuml:Fm,yacute:Um,yen:Pm,yuml:Bm},Gm={0:"�",128:"€",130:"‚",131:"ƒ",132:"„",133:"…",134:"†",135:"‡",136:"ˆ",137:"‰",138:"Š",139:"‹",140:"Œ",142:"Ž",145:"‘",146:"’",147:"“",148:"”",149:"•",150:"–",151:"—",152:"˜",153:"™",154:"š",155:"›",156:"œ",158:"ž",159:"Ÿ"};var nt,fs;function Hp(){if(fs)return nt;fs=1,nt=e;function e(t){var a=typeof t=="string"?t.charCodeAt(0):t;return a>=48&&a<=57}return nt}var it,hs;function $m(){if(hs)return it;hs=1,it=e;function e(t){var a=typeof t=="string"?t.charCodeAt(0):t;return a>=97&&a<=102||a>=65&&a<=70||a>=48&&a<=57}return it}var ot,Es;function Hm(){if(Es)return ot;Es=1,ot=e;function e(t){var a=typeof t=="string"?t.charCodeAt(0):t;return a>=97&&a<=122||a>=65&&a<=90}return ot}var st,Ss;function zm(){if(Ss)return st;Ss=1;var e=Hm(),t=Hp();st=a;function a(r){return e(r)||t(r)}return st}var lt,ys;function jm(){if(ys)return lt;ys=1;var e,t=59;lt=a;function a(r){var n="&"+r+";",i;return e=e||document.createElement("i"),e.innerHTML=n,i=e.textContent,i.charCodeAt(i.length-1)===t&&r!=="semi"||i===n?!1:i}return lt}var ut,vs;function Vm(){if(vs)return ut;vs=1;var e=qm,t=Gm,a=Hp(),r=$m(),n=zm(),i=jm();ut=x;var s={}.hasOwnProperty,o=String.fromCharCode,d=Function.prototype,g={warning:null,reference:null,text:null,warningContext:null,referenceContext:null,textContext:null,position:{},additional:null,attribute:!1,nonTerminated:!0},b=9,f=10,S=12,v=32,R=38,y=59,T=60,A=61,u=35,l=88,p=120,m=65533,c="named",E="hexadecimal",_="decimal",h={};h[E]=16,h[_]=10;var I={};I[c]=n,I[_]=a,I[E]=r;var N=1,O=2,U=3,P=4,H=5,V=6,B=7,w={};w[N]="Named character references must be terminated by a semicolon",w[O]="Numeric character references must be terminated by a semicolon",w[U]="Named character references cannot be empty",w[P]="Numeric character references cannot be empty",w[H]="Named character references must be known",w[V]="Numeric character references cannot be disallowed",w[B]="Numeric character references cannot be outside the permissible Unicode range";function x(C,L){var F={},$,q;L||(L={});for(q in g)$=L[q],F[q]=$??g[q];return(F.position.indent||F.position.start)&&(F.indent=F.position.indent||[],F.position=F.position.start),M(C,F)}function M(C,L){var F=L.additional,$=L.nonTerminated,q=L.text,W=L.reference,J=L.warning,X=L.textContext,K=L.referenceContext,he=L.warningContext,Q=L.position,Xp=L.indent||[],Le=C.length,ne=0,Fo=-1,le=Q.column||1,Uo=Q.line||1,ue="",xe=[],be,De,ce,Z,ie,z,G,ee,Ae,Me,de,Ee,pe,ae,Po,Se,Re,te,j;for(typeof F=="string"&&(F=F.charCodeAt(0)),Se=ye(),ee=J?Qp:d,ne--,Le++;++ne<Le;)if(ie===f&&(le=Xp[Fo]||1),ie=C.charCodeAt(ne),ie===R){if(G=C.charCodeAt(ne+1),G===b||G===f||G===S||G===v||G===R||G===T||G!==G||F&&G===F){ue+=o(ie),le++;continue}for(pe=ne+1,Ee=pe,j=pe,G===u?(j=++Ee,G=C.charCodeAt(j),G===l||G===p?(ae=E,j=++Ee):ae=_):ae=c,be="",de="",Z="",Po=I[ae],j--;++j<Le&&(G=C.charCodeAt(j),!!Po(G));)Z+=o(G),ae===c&&s.call(e,Z)&&(be=Z,de=e[Z]);ce=C.charCodeAt(j)===y,ce&&(j++,De=ae===c?i(Z):!1,De&&(be=Z,de=De)),te=1+j-pe,!ce&&!$||(Z?ae===c?(ce&&!de?ee(H,1):(be!==Z&&(j=Ee+be.length,te=1+j-Ee,ce=!1),ce||(Ae=be?N:U,L.attribute?(G=C.charCodeAt(j),G===A?(ee(Ae,te),de=null):n(G)?de=null:ee(Ae,te)):ee(Ae,te))),z=de):(ce||ee(O,te),z=parseInt(Z,h[ae]),D(z)?(ee(B,te),z=o(m)):z in t?(ee(V,te),z=t[z]):(Me="",k(z)&&ee(V,te),z>65535&&(z-=65536,Me+=o(z>>>10|55296),z=56320|z&1023),z=Me+o(z))):ae!==c&&ee(P,te)),z?(Bo(),Se=ye(),ne=j-1,le+=j-pe+1,xe.push(z),Re=ye(),Re.offset++,W&&W.call(K,z,{start:Se,end:Re},C.slice(pe-1,j)),Se=Re):(Z=C.slice(pe-1,j),ue+=Z,le+=Z.length,ne=j-1)}else ie===10&&(Uo++,Fo++,le=0),ie===ie?(ue+=o(ie),le++):Bo();return xe.join("");function ye(){return{line:Uo,column:le,offset:ne+(Q.offset||0)}}function Qp(qo,Go){var Fe=ye();Fe.column+=Go,Fe.offset+=Go,J.call(he,w[qo],Fe,qo)}function Bo(){ue&&(xe.push(ue),q&&q.call(X,ue,{start:Se,end:ye()}),ue="")}}function D(C){return C>=55296&&C<=57343||C>1114111}function k(C){return C>=1&&C<=8||C===11||C>=13&&C<=31||C>=127&&C<=159||C>=64976&&C<=65007||(C&65535)===65535||(C&65535)===65534}return ut}var ct={exports:{}},Ts;function Wm(){return Ts||(Ts=1,(function(e){var t=typeof window<"u"?window:typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope?self:{};/**
|
|
7
7
|
* Prism: Lightweight, robust, elegant syntax highlighting
|
|
8
8
|
*
|
|
9
9
|
* @license MIT <https://opensource.org/licenses/MIT>
|
|
@@ -21,4 +21,4 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
21
21
|
* @namespace
|
|
22
22
|
* @public
|
|
23
23
|
*/var a=(function(r){var n=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,i=0,s={},o={manual:r.Prism&&r.Prism.manual,disableWorkerMessageHandler:r.Prism&&r.Prism.disableWorkerMessageHandler,util:{encode:function u(l){return l instanceof d?new d(l.type,u(l.content),l.alias):Array.isArray(l)?l.map(u):l.replace(/&/g,"&").replace(/</g,"<").replace(/\u00a0/g," ")},type:function(u){return Object.prototype.toString.call(u).slice(8,-1)},objId:function(u){return u.__id||Object.defineProperty(u,"__id",{value:++i}),u.__id},clone:function u(l,p){p=p||{};var m,c;switch(o.util.type(l)){case"Object":if(c=o.util.objId(l),p[c])return p[c];m={},p[c]=m;for(var E in l)l.hasOwnProperty(E)&&(m[E]=u(l[E],p));return m;case"Array":return c=o.util.objId(l),p[c]?p[c]:(m=[],p[c]=m,l.forEach(function(_,h){m[h]=u(_,p)}),m);default:return l}},getLanguage:function(u){for(;u;){var l=n.exec(u.className);if(l)return l[1].toLowerCase();u=u.parentElement}return"none"},setLanguage:function(u,l){u.className=u.className.replace(RegExp(n,"gi"),""),u.classList.add("language-"+l)},currentScript:function(){if(typeof document>"u")return null;if(document.currentScript&&document.currentScript.tagName==="SCRIPT")return document.currentScript;try{throw new Error}catch(m){var u=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(m.stack)||[])[1];if(u){var l=document.getElementsByTagName("script");for(var p in l)if(l[p].src==u)return l[p]}return null}},isActive:function(u,l,p){for(var m="no-"+l;u;){var c=u.classList;if(c.contains(l))return!0;if(c.contains(m))return!1;u=u.parentElement}return!!p}},languages:{plain:s,plaintext:s,text:s,txt:s,extend:function(u,l){var p=o.util.clone(o.languages[u]);for(var m in l)p[m]=l[m];return p},insertBefore:function(u,l,p,m){m=m||o.languages;var c=m[u],E={};for(var _ in c)if(c.hasOwnProperty(_)){if(_==l)for(var h in p)p.hasOwnProperty(h)&&(E[h]=p[h]);p.hasOwnProperty(_)||(E[_]=c[_])}var I=m[u];return m[u]=E,o.languages.DFS(o.languages,function(N,O){O===I&&N!=u&&(this[N]=E)}),E},DFS:function u(l,p,m,c){c=c||{};var E=o.util.objId;for(var _ in l)if(l.hasOwnProperty(_)){p.call(l,_,l[_],m||_);var h=l[_],I=o.util.type(h);I==="Object"&&!c[E(h)]?(c[E(h)]=!0,u(h,p,null,c)):I==="Array"&&!c[E(h)]&&(c[E(h)]=!0,u(h,p,_,c))}}},plugins:{},highlightAll:function(u,l){o.highlightAllUnder(document,u,l)},highlightAllUnder:function(u,l,p){var m={callback:p,container:u,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};o.hooks.run("before-highlightall",m),m.elements=Array.prototype.slice.apply(m.container.querySelectorAll(m.selector)),o.hooks.run("before-all-elements-highlight",m);for(var c=0,E;E=m.elements[c++];)o.highlightElement(E,l===!0,m.callback)},highlightElement:function(u,l,p){var m=o.util.getLanguage(u),c=o.languages[m];o.util.setLanguage(u,m);var E=u.parentElement;E&&E.nodeName.toLowerCase()==="pre"&&o.util.setLanguage(E,m);var _=u.textContent,h={element:u,language:m,grammar:c,code:_};function I(O){h.highlightedCode=O,o.hooks.run("before-insert",h),h.element.innerHTML=h.highlightedCode,o.hooks.run("after-highlight",h),o.hooks.run("complete",h),p&&p.call(h.element)}if(o.hooks.run("before-sanity-check",h),E=h.element.parentElement,E&&E.nodeName.toLowerCase()==="pre"&&!E.hasAttribute("tabindex")&&E.setAttribute("tabindex","0"),!h.code){o.hooks.run("complete",h),p&&p.call(h.element);return}if(o.hooks.run("before-highlight",h),!h.grammar){I(o.util.encode(h.code));return}if(l&&r.Worker){var N=new Worker(o.filename);N.onmessage=function(O){I(O.data)},N.postMessage(JSON.stringify({language:h.language,code:h.code,immediateClose:!0}))}else I(o.highlight(h.code,h.grammar,h.language))},highlight:function(u,l,p){var m={code:u,grammar:l,language:p};if(o.hooks.run("before-tokenize",m),!m.grammar)throw new Error('The language "'+m.language+'" has no grammar.');return m.tokens=o.tokenize(m.code,m.grammar),o.hooks.run("after-tokenize",m),d.stringify(o.util.encode(m.tokens),m.language)},tokenize:function(u,l){var p=l.rest;if(p){for(var m in p)l[m]=p[m];delete l.rest}var c=new f;return S(c,c.head,u),b(u,c,l,c.head,0),R(c)},hooks:{all:{},add:function(u,l){var p=o.hooks.all;p[u]=p[u]||[],p[u].push(l)},run:function(u,l){var p=o.hooks.all[u];if(!(!p||!p.length))for(var m=0,c;c=p[m++];)c(l)}},Token:d};r.Prism=o;function d(u,l,p,m){this.type=u,this.content=l,this.alias=p,this.length=(m||"").length|0}d.stringify=function u(l,p){if(typeof l=="string")return l;if(Array.isArray(l)){var m="";return l.forEach(function(I){m+=u(I,p)}),m}var c={type:l.type,content:u(l.content,p),tag:"span",classes:["token",l.type],attributes:{},language:p},E=l.alias;E&&(Array.isArray(E)?Array.prototype.push.apply(c.classes,E):c.classes.push(E)),o.hooks.run("wrap",c);var _="";for(var h in c.attributes)_+=" "+h+'="'+(c.attributes[h]||"").replace(/"/g,""")+'"';return"<"+c.tag+' class="'+c.classes.join(" ")+'"'+_+">"+c.content+"</"+c.tag+">"};function g(u,l,p,m){u.lastIndex=l;var c=u.exec(p);if(c&&m&&c[1]){var E=c[1].length;c.index+=E,c[0]=c[0].slice(E)}return c}function b(u,l,p,m,c,E){for(var _ in p)if(!(!p.hasOwnProperty(_)||!p[_])){var h=p[_];h=Array.isArray(h)?h:[h];for(var I=0;I<h.length;++I){if(E&&E.cause==_+","+I)return;var N=h[I],O=N.inside,U=!!N.lookbehind,P=!!N.greedy,H=N.alias;if(P&&!N.pattern.global){var V=N.pattern.toString().match(/[imsuy]*$/)[0];N.pattern=RegExp(N.pattern.source,V+"g")}for(var B=N.pattern||N,w=m.next,x=c;w!==l.tail&&!(E&&x>=E.reach);x+=w.value.length,w=w.next){var M=w.value;if(l.length>u.length)return;if(!(M instanceof d)){var D=1,k;if(P){if(k=g(B,x,u,U),!k||k.index>=u.length)break;var $=k.index,C=k.index+k[0].length,L=x;for(L+=w.value.length;$>=L;)w=w.next,L+=w.value.length;if(L-=w.value.length,x=L,w.value instanceof d)continue;for(var F=w;F!==l.tail&&(L<C||typeof F.value=="string");F=F.next)D++,L+=F.value.length;D--,M=u.slice(x,L),k.index-=x}else if(k=g(B,0,M,U),!k)continue;var $=k.index,q=k[0],W=M.slice(0,$),J=M.slice($+q.length),X=x+M.length;E&&X>E.reach&&(E.reach=X);var K=w.prev;W&&(K=S(l,K,W),x+=W.length),v(l,K,D);var he=new d(_,O?o.tokenize(q,O):q,H,q);if(w=S(l,K,he),J&&S(l,w,J),D>1){var Q={cause:_+","+I,reach:X};b(u,l,p,w.prev,x,Q),E&&Q.reach>E.reach&&(E.reach=Q.reach)}}}}}}function f(){var u={value:null,prev:null,next:null},l={value:null,prev:u,next:null};u.next=l,this.head=u,this.tail=l,this.length=0}function S(u,l,p){var m=l.next,c={value:p,prev:l,next:m};return l.next=c,m.prev=c,u.length++,c}function v(u,l,p){for(var m=l.next,c=0;c<p&&m!==u.tail;c++)m=m.next;l.next=m,m.prev=l,u.length-=c}function R(u){for(var l=[],p=u.head.next;p!==u.tail;)l.push(p.value),p=p.next;return l}if(!r.document)return r.addEventListener&&(o.disableWorkerMessageHandler||r.addEventListener("message",function(u){var l=JSON.parse(u.data),p=l.language,m=l.code,c=l.immediateClose;r.postMessage(o.highlight(m,o.languages[p],p)),c&&r.close()},!1)),o;var y=o.util.currentScript();y&&(o.filename=y.src,y.hasAttribute("data-manual")&&(o.manual=!0));function T(){o.manual||o.highlightAll()}if(!o.manual){var A=document.readyState;A==="loading"||A==="interactive"&&y&&y.defer?document.addEventListener("DOMContentLoaded",T):window.requestAnimationFrame?window.requestAnimationFrame(T):window.setTimeout(T,16)}return o})(t);e.exports&&(e.exports=a),typeof fe<"u"&&(fe.Prism=a),a.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},a.languages.markup.tag.inside["attr-value"].inside.entity=a.languages.markup.entity,a.languages.markup.doctype.inside["internal-subset"].inside=a.languages.markup,a.hooks.add("wrap",function(r){r.type==="entity"&&(r.attributes.title=r.content.replace(/&/,"&"))}),Object.defineProperty(a.languages.markup.tag,"addInlined",{value:function(n,i){var s={};s["language-"+i]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:a.languages[i]},s.cdata=/^<!\[CDATA\[|\]\]>$/i;var o={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:s}};o["language-"+i]={pattern:/[\s\S]+/,inside:a.languages[i]};var d={};d[n]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return n}),"i"),lookbehind:!0,greedy:!0,inside:o},a.languages.insertBefore("markup","cdata",d)}}),Object.defineProperty(a.languages.markup.tag,"addAttribute",{value:function(r,n){a.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+r+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[n,"language-"+n],inside:a.languages[n]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),a.languages.html=a.languages.markup,a.languages.mathml=a.languages.markup,a.languages.svg=a.languages.markup,a.languages.xml=a.languages.extend("markup",{}),a.languages.ssml=a.languages.xml,a.languages.atom=a.languages.xml,a.languages.rss=a.languages.xml,(function(r){var n=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;r.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+n.source+")*?"+/(?:;|(?=\s*\{))/.source),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+n.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+n.source+"$"),alias:"url"}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+n.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:n,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},r.languages.css.atrule.inside.rest=r.languages.css;var i=r.languages.markup;i&&(i.tag.addInlined("style","css"),i.tag.addAttribute("style","css"))})(a),a.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/},a.languages.javascript=a.languages.extend("clike",{"class-name":[a.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+(/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source)+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),a.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,a.languages.insertBefore("javascript","keyword",{regex:{pattern:RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source+/\//.source+"(?:"+/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source+"|"+/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source+")"+/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:a.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:a.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:a.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:a.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:a.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),a.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:a.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),a.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),a.languages.markup&&(a.languages.markup.tag.addInlined("script","javascript"),a.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),a.languages.js=a.languages.javascript,(function(){if(typeof a>"u"||typeof document>"u")return;Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector);var r="Loading…",n=function(y,T){return"✖ Error "+y+" while fetching file: "+T},i="✖ Error: File does not exist or is empty",s={js:"javascript",py:"python",rb:"ruby",ps1:"powershell",psm1:"powershell",sh:"bash",bat:"batch",h:"c",tex:"latex"},o="data-src-status",d="loading",g="loaded",b="failed",f="pre[data-src]:not(["+o+'="'+g+'"]):not(['+o+'="'+d+'"])';function S(y,T,A){var u=new XMLHttpRequest;u.open("GET",y,!0),u.onreadystatechange=function(){u.readyState==4&&(u.status<400&&u.responseText?T(u.responseText):u.status>=400?A(n(u.status,u.statusText)):A(i))},u.send(null)}function v(y){var T=/^\s*(\d+)\s*(?:(,)\s*(?:(\d+)\s*)?)?$/.exec(y||"");if(T){var A=Number(T[1]),u=T[2],l=T[3];return u?l?[A,Number(l)]:[A,void 0]:[A,A]}}a.hooks.add("before-highlightall",function(y){y.selector+=", "+f}),a.hooks.add("before-sanity-check",function(y){var T=y.element;if(T.matches(f)){y.code="",T.setAttribute(o,d);var A=T.appendChild(document.createElement("CODE"));A.textContent=r;var u=T.getAttribute("data-src"),l=y.language;if(l==="none"){var p=(/\.(\w+)$/.exec(u)||[,"none"])[1];l=s[p]||p}a.util.setLanguage(A,l),a.util.setLanguage(T,l);var m=a.plugins.autoloader;m&&m.loadLanguages(l),S(u,function(c){T.setAttribute(o,g);var E=v(T.getAttribute("data-range"));if(E){var _=c.split(/\r\n?|\n/g),h=E[0],I=E[1]==null?_.length:E[1];h<0&&(h+=_.length),h=Math.max(0,Math.min(h-1,_.length)),I<0&&(I+=_.length),I=Math.max(0,Math.min(I,_.length)),c=_.slice(h,I).join(`
|
|
24
|
-
`),T.hasAttribute("data-start")||T.setAttribute("data-start",String(h+1))}A.textContent=c,a.highlightElement(A)},function(c){T.setAttribute(o,b),A.textContent=c})}}),a.plugins.fileHighlight={highlight:function(T){for(var A=(T||document).querySelectorAll(f),u=0,l;l=A[u++];)a.highlightElement(l)}};var R=!1;a.fileHighlight=function(){R||(console.warn("Prism.fileHighlight is deprecated. Use `Prism.plugins.fileHighlight.highlight` instead."),R=!0),a.plugins.fileHighlight.highlight.apply(this,arguments)}})()})(To)),To.exports}export{
|
|
24
|
+
`),T.hasAttribute("data-start")||T.setAttribute("data-start",String(h+1))}A.textContent=c,a.highlightElement(A)},function(c){T.setAttribute(o,b),A.textContent=c})}}),a.plugins.fileHighlight={highlight:function(T){for(var A=(T||document).querySelectorAll(f),u=0,l;l=A[u++];)a.highlightElement(l)}};var R=!1;a.fileHighlight=function(){R||(console.warn("Prism.fileHighlight is deprecated. Use `Prism.plugins.fileHighlight.highlight` instead."),R=!0),a.plugins.fileHighlight.highlight.apply(this,arguments)}})()})(To)),To.exports}export{Ho as _,Ao as a,Hy as b,$y as c,qy as h,zy as r};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import{b as f,a as p,A as b,i as m}from"./agents-ChrA1R0y.js";const w=async()=>{try{const r=await p(`${b}/agents/sessions`);if(!r.ok)throw new Error("Failed to fetch sessions");return r.json()}catch(r){if(m(r))return{activeSessionCount:0,sessions:[],message:"API service unavailable"};throw r}},S=()=>f({queryKey:["sessions"],queryFn:w,refetchInterval:5e3,retry:(r,e)=>m(e)?!1:r<3,retryDelay:r=>Math.min(1e3*2**r,3e4)}),v=async(r,e)=>{const s=await p(`${b}/sessions/${r}/${e}/cleanup`,{method:"DELETE"});if(!s.ok){const t=await s.json();throw new Error(t.error||"Failed to cleanup session")}};class a{static instance;static STORAGE_KEY="active_chat_tabs";static WAKEUP_SIGNAL_KEY="tab_wakeup_signal";static WAKEUP_RESPONSE_KEY="tab_wakeup_response";static TAB_TIMEOUT=300*1e3;currentTabId;cleanupInterval;lastKnownSession=null;sessionResumeHistory=[];constructor(){this.currentTabId=this.generateTabId(),this.startCleanupTimer(),this.setupBeforeUnloadHandler(),console.log(`📱 TabManager initialized with ID: ${this.currentTabId}`)}static getInstance(){return a.instance||(a.instance=new a),a.instance}registerCurrentTab(e,s){const t=this.getActiveTabs(),n=this.getTabKey(e,s),i={agentId:e,sessionId:s,url:window.location.href,lastSeen:Date.now(),tabId:this.currentTabId,title:document.title};t[n]=i,this.saveActiveTabs(t),console.log(`📱 Tab registered: ${this.currentTabId} for session ${s}`),this.lastKnownSession={agentId:e,sessionId:s}}updateCurrentTabActivity(e,s){const t=this.getActiveTabs(),n=this.getTabKey(e,s);t[n]&&t[n].tabId===this.currentTabId&&(t[n].lastSeen=Date.now(),t[n].url=window.location.href,t[n].title=document.title,this.saveActiveTabs(t),this.lastKnownSession={agentId:e,sessionId:s})}hasActiveTab(e,s){return this.findActiveTabForSession(e,s)!==null}findActiveTabForSession(e,s){const t=this.getActiveTabs(),n=this.getTabKey(e,s);if(t[n]&&Date.now()-t[n].lastSeen<a.TAB_TIMEOUT)return t[n];for(const[i,o]of Object.entries(t))if(o.agentId===e&&o.sessionId===s){if(Date.now()-o.lastSeen<a.TAB_TIMEOUT)return o;delete t[i],this.saveActiveTabs(t),console.log(`🗑️ Cleaned up expired tab: ${s}`)}return null}async wakeupExistingTab(e,s,t){if(!this.findActiveTabForSession(e,s))return!1;const i={type:"WAKEUP",agentId:e,sessionId:s,requestId:this.generateRequestId(),timestamp:Date.now(),sourceUrl:t||window.location.href};return console.log(`🔔 Sending wakeup signal for session: ${s}`),localStorage.setItem(a.WAKEUP_SIGNAL_KEY,JSON.stringify(i)),new Promise(o=>{const l=setTimeout(()=>{console.log(`⏰ Wakeup timeout for session ${s}`),o(!1)},2e3),g=setInterval(()=>{const h=localStorage.getItem(a.WAKEUP_RESPONSE_KEY);if(h)try{const d=JSON.parse(h);if(d.requestId===i.requestId){clearTimeout(l),localStorage.removeItem(a.WAKEUP_RESPONSE_KEY),console.log(`✅ Tab awakened successfully: ${s}`),o(d.success);return}}catch(d){console.error("Error parsing wakeup response:",d)}},100);setTimeout(()=>clearInterval(g),2e3)})}setupWakeupListener(e,s){const t=i=>{if(i.key===a.WAKEUP_SIGNAL_KEY&&i.newValue)try{const o=JSON.parse(i.newValue);o.type==="WAKEUP"&&o.agentId===e&&o.sessionId===s&&this.handleWakeupSignal(o)}catch(o){console.error("Error handling wakeup signal:",o)}};window.addEventListener("storage",t);const n=setInterval(()=>{const i=localStorage.getItem(a.WAKEUP_SIGNAL_KEY);if(i)try{const o=JSON.parse(i);o.type==="WAKEUP"&&o.agentId===e&&o.sessionId===s&&Date.now()-o.timestamp<5e3&&this.handleWakeupSignal(o)}catch(o){console.error("Error polling wakeup signal:",o)}},500);return console.log(`🎯 Wakeup listener setup for session: ${s}`),()=>{window.removeEventListener("storage",t),clearInterval(n),console.log(`🎯 Wakeup listener cleaned up for session: ${s}`)}}updateCurrentTabSession(e,s,t,n){const i=this.getActiveTabs(),o=this.getTabKey(e,s);i[o]&&i[o].tabId===this.currentTabId&&delete i[o];const l=this.getTabKey(t,n);i[l]={agentId:t,sessionId:n,url:window.location.href,lastSeen:Date.now(),tabId:this.currentTabId,title:document.title},this.saveActiveTabs(i),console.log(`🔄 Tab session updated: ${s} → ${n}`),this.lastKnownSession={agentId:t,sessionId:n}}unregisterCurrentTabSession(e,s){const t=this.getActiveTabs(),n=this.getTabKey(e,s);t[n]&&t[n].tabId===this.currentTabId&&(delete t[n],this.saveActiveTabs(t),console.log(`📤 Unregistered current tab from session: ${s}`)),this.lastKnownSession&&this.lastKnownSession.agentId===e&&this.lastKnownSession.sessionId===s&&(this.lastKnownSession=null)}handleSessionResume(e,s,t){const n=this.getActiveTabs(),i=this.getTabKey(e,s),o=this.getTabKey(e,t);n[i]&&n[i].tabId===this.currentTabId?(delete n[i],n[o]={agentId:e,sessionId:t,url:window.location.href,lastSeen:Date.now(),tabId:this.currentTabId,title:document.title},this.saveActiveTabs(n),console.log(`🔄 Session resumed: ${s} → ${t}`),this.lastKnownSession={agentId:e,sessionId:t}):(this.registerCurrentTab(e,t),console.log(`🆕 Resumed session registered: ${t}`))}recordSessionResume(e,s,t){this.sessionResumeHistory.push({originalSessionId:s,newSessionId:t,timestamp:Date.now(),agentId:e}),this.sessionResumeHistory.length>100&&(this.sessionResumeHistory=this.sessionResumeHistory.slice(-100)),console.log(`📝 Recorded session resume: ${s} → ${t}`)}smartUpdateCurrentTab(){const e=window.location.href,s=this.parseSessionFromUrl(e);if(!s){this.lastKnownSession&&(this.unregisterCurrentTabSession(this.lastKnownSession.agentId,this.lastKnownSession.sessionId),this.lastKnownSession=null);return}const{agentId:t,sessionId:n}=s;if(this.lastKnownSession){const{agentId:i,sessionId:o}=this.lastKnownSession;o!==n||i!==t?this.sessionResumeHistory.find(c=>c.originalSessionId===o&&c.newSessionId===n&&c.agentId===t&&Date.now()-c.timestamp<3e4)?(this.handleSessionResume(t,o,n),console.log(`🔄 Detected session resume via URL: ${o} → ${n}`)):(this.updateCurrentTabSession(i,o,t,n),console.log(`🎯 Regular session switch: ${o} → ${n}`)):this.updateCurrentTabActivity(t,n)}else this.registerCurrentTab(t,n),console.log(`🎯 Initial session register: ${n}`);this.lastKnownSession={agentId:t,sessionId:n}}startSmartMonitoring(){this.smartUpdateCurrentTab();const e=()=>{setTimeout(()=>this.smartUpdateCurrentTab(),100)};window.addEventListener("popstate",e);const s=history.pushState,t=history.replaceState;return history.pushState=function(...n){s.apply(this,n),e()},history.replaceState=function(...n){t.apply(this,n),e()},console.log(`🎯 Smart monitoring started for tab: ${this.currentTabId}`),()=>{window.removeEventListener("popstate",e),history.pushState=s,history.replaceState=t,console.log(`🛑 Smart monitoring stopped for tab: ${this.currentTabId}`)}}handleWakeupSignal(e){console.log(`🔔 Received wakeup signal for session: ${e.sessionId}`);try{if(window.focus(),window.parent&&window.parent!==window&&window.parent.focus(),document.hidden){const t=new MouseEvent("click",{view:window,bubbles:!0,cancelable:!0});document.dispatchEvent(t)}}catch(t){console.log("Focus attempt failed:",t)}this.flashPageTitle(),this.playNotificationSound(),e.sourceUrl&&e.sourceUrl!==window.location.href?this.isSameSession(e.sourceUrl,window.location.href)?(console.log("🎯 URLs point to same session, forcing visibility"),this.makePageVisible()):(console.log(`🔄 Navigating to: ${e.sourceUrl}`),window.history.replaceState(null,"",e.sourceUrl),window.location.reload()):this.makePageVisible();const s={requestId:e.requestId,agentId:e.agentId,sessionId:e.sessionId,success:!0,timestamp:Date.now()};localStorage.setItem(a.WAKEUP_RESPONSE_KEY,JSON.stringify(s)),localStorage.removeItem(a.WAKEUP_SIGNAL_KEY),this.updateCurrentTabActivity(e.agentId,e.sessionId),console.log(`✅ Wakeup signal processed successfully for session: ${e.sessionId}`)}flashPageTitle(){const e=document.title;let s=0;const t=setInterval(()=>{document.title=s%2===0?"🔔 会话已唤起":e,s++,s>6&&(clearInterval(t),document.title=e)},500),n=()=>{clearInterval(t),document.title=e,window.removeEventListener("focus",n)};window.addEventListener("focus",n)}playNotificationSound(){try{const e=new(window.AudioContext||window.webkitAudioContext),s=e.createOscillator(),t=e.createGain();s.connect(t),t.connect(e.destination),s.frequency.setValueAtTime(800,e.currentTime),s.frequency.setValueAtTime(600,e.currentTime+.1),t.gain.setValueAtTime(.1,e.currentTime),t.gain.exponentialRampToValueAtTime(.01,e.currentTime+.2),s.start(e.currentTime),s.stop(e.currentTime+.2)}catch(e){console.log("Audio notification not supported:",e)}}makePageVisible(){try{window.scrollTo(0,0),document.fullscreenEnabled&&document.documentElement.requestFullscreen?.()?.then(()=>{setTimeout(()=>{document.exitFullscreen?.()},100)}).catch(t=>console.log("Fullscreen toggle failed:",t));const e=document.createElement("div");e.style.cssText=`
|
|
2
|
+
position: fixed;
|
|
3
|
+
top: 50%;
|
|
4
|
+
left: 50%;
|
|
5
|
+
transform: translate(-50%, -50%);
|
|
6
|
+
background: rgba(59, 130, 246, 0.9);
|
|
7
|
+
color: white;
|
|
8
|
+
padding: 20px 40px;
|
|
9
|
+
border-radius: 12px;
|
|
10
|
+
font-size: 18px;
|
|
11
|
+
font-weight: bold;
|
|
12
|
+
z-index: 999999;
|
|
13
|
+
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
|
|
14
|
+
animation: bounce 0.6s ease-in-out;
|
|
15
|
+
`;const s=document.createElement("style");s.textContent=`
|
|
16
|
+
@keyframes bounce {
|
|
17
|
+
0%, 20%, 53%, 80%, 100% {
|
|
18
|
+
transform: translate(-50%, -50%) translateY(0);
|
|
19
|
+
}
|
|
20
|
+
40%, 43% {
|
|
21
|
+
transform: translate(-50%, -50%) translateY(-20px);
|
|
22
|
+
}
|
|
23
|
+
70% {
|
|
24
|
+
transform: translate(-50%, -50%) translateY(-10px);
|
|
25
|
+
}
|
|
26
|
+
90% {
|
|
27
|
+
transform: translate(-50%, -50%) translateY(-5px);
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
`,document.head.appendChild(s),e.textContent="🎯 会话已激活",document.body.appendChild(e),setTimeout(()=>{document.body.contains(e)&&document.body.removeChild(e),document.head.contains(s)&&document.head.removeChild(s)},2e3),console.log("🎯 Made page more visible")}catch(e){console.log("Make page visible failed:",e)}}parseSessionFromUrl(e){try{const s=new URL(e),t=s.pathname.split("/"),n=t.indexOf("chat");if(n!==-1&&t[n+1]){const i=t[n+1],o=s.searchParams.get("session");if(i&&o)return{agentId:i,sessionId:o}}return null}catch(s){return console.error("Error parsing session from URL:",s),null}}isSameSession(e,s){try{const t=this.parseSessionFromUrl(e),n=this.parseSessionFromUrl(s);return!t||!n?!1:t.agentId===n.agentId&&t.sessionId===n.sessionId}catch(t){return console.error("Error comparing session URLs:",t),!1}}getActiveTabs(){try{const e=localStorage.getItem(a.STORAGE_KEY);return e?JSON.parse(e):{}}catch(e){return console.error("Error reading active tabs:",e),{}}}saveActiveTabs(e){try{localStorage.setItem(a.STORAGE_KEY,JSON.stringify(e))}catch(s){console.error("Error saving active tabs:",s)}}getTabKey(e,s){return`${e}_${s}`}generateTabId(){return`tab_${Date.now()}_${Math.random().toString(36).substr(2,9)}`}generateRequestId(){return`req_${Date.now()}_${Math.random().toString(36).substr(2,9)}`}startCleanupTimer(){this.cleanupInterval=window.setInterval(()=>{this.cleanupExpiredTabs()},6e4)}cleanupExpiredTabs(){const e=this.getActiveTabs(),s=Date.now();let t=0;Object.keys(e).forEach(n=>{s-e[n].lastSeen>a.TAB_TIMEOUT&&(delete e[n],t++)}),t>0&&(this.saveActiveTabs(e),console.log(`🗑️ Cleaned up ${t} expired tabs`))}setupBeforeUnloadHandler(){window.addEventListener("beforeunload",()=>{const e=this.getActiveTabs();Object.keys(e).forEach(s=>{e[s].tabId===this.currentTabId&&delete e[s]}),this.saveActiveTabs(e)})}getDebugInfo(){return{tabs:this.getActiveTabs(),currentTabId:this.currentTabId,lastKnownSession:this.lastKnownSession,resumeHistory:this.sessionResumeHistory}}clearAllTabs(){localStorage.removeItem(a.STORAGE_KEY),localStorage.removeItem(a.WAKEUP_SIGNAL_KEY),localStorage.removeItem(a.WAKEUP_RESPONSE_KEY),this.sessionResumeHistory=[],this.lastKnownSession=null,console.log("🗑️ All tab records cleared")}stopCleanupTimer(){this.cleanupInterval&&(clearInterval(this.cleanupInterval),this.cleanupInterval=void 0,console.log("🛑 Cleanup timer stopped"))}}const u=a.getInstance();window.tabManagerDebug={showTabs:()=>console.table(u.getDebugInfo().tabs),clearAll:()=>u.clearAllTabs(),testWakeup:(r,e)=>u.wakeupExistingTab(r,e),getCurrentTabId:()=>u.getDebugInfo().currentTabId,getDebugInfo:()=>u.getDebugInfo()};export{v as c,u as t,S as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{j as t}from"./data-structures-
|
|
1
|
+
import{j as t}from"./data-structures-C0h9Oap1.js";import{r as s}from"./monaco-editor-DHKm5-VF.js";import{c as o}from"./index-Bn3v3S9-.js";const l=s.forwardRef(({className:a,...e},r)=>t.jsx("div",{className:"relative w-full overflow-auto",children:t.jsx("table",{ref:r,className:o("w-full caption-bottom text-sm",a),...e})}));l.displayName="Table";const d=s.forwardRef(({className:a,...e},r)=>t.jsx("thead",{ref:r,className:o("[&_tr]:border-b",a),...e}));d.displayName="TableHeader";const b=s.forwardRef(({className:a,...e},r)=>t.jsx("tbody",{ref:r,className:o("[&_tr:last-child]:border-0",a),...e}));b.displayName="TableBody";const m=s.forwardRef(({className:a,...e},r)=>t.jsx("tfoot",{ref:r,className:o("border-t bg-muted/50 font-medium [&>tr]:last:border-b-0",a),...e}));m.displayName="TableFooter";const c=s.forwardRef(({className:a,...e},r)=>t.jsx("tr",{ref:r,className:o("border-b border-gray-200 dark:border-gray-700 transition-colors hover:bg-gray-50 dark:hover:bg-gray-800/50 data-[state=selected]:bg-gray-100 dark:data-[state=selected]:bg-gray-800",a),...e}));c.displayName="TableRow";const i=s.forwardRef(({className:a,...e},r)=>t.jsx("th",{ref:r,className:o("h-12 px-4 text-left align-middle font-medium text-gray-600 dark:text-gray-400 [&:has([role=checkbox])]:pr-0",a),...e}));i.displayName="TableHead";const f=s.forwardRef(({className:a,...e},r)=>t.jsx("td",{ref:r,className:o("p-4 align-middle text-gray-900 dark:text-gray-100 [&:has([role=checkbox])]:pr-0",a),...e}));f.displayName="TableCell";const x=s.forwardRef(({className:a,...e},r)=>t.jsx("caption",{ref:r,className:o("mt-4 text-sm text-gray-600 dark:text-gray-400",a),...e}));x.displayName="TableCaption";export{l as T,d as a,c as b,i as c,b as d,f as e};
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import{_ as s,c as xt,l as E,d as j,ac as kt,ad as vt,ae as _t,af as bt,B as wt,ag as St,y as Et}from"./ChatPage-D6sol0ad.js";import{d as nt}from"./arc-CuA752eE.js";import"./data-structures-C0h9Oap1.js";import"./monaco-editor-DHKm5-VF.js";import"./syntax-highlighting-CnREyncB.js";import"./agents-ChrA1R0y.js";import"./tools-IcPNZlPj.js";import"./ui-components-D1St49qC.js";import"./useAgents-BnDTkOG8.js";import"./tabManager-B2LQO_Ll.js";import"./index-Bn3v3S9-.js";import"./useCommands-mvMu3mMD.js";import"./useClaudeVersions-CD59tFWM.js";import"./FileExplorer-DNYj6Tsx.js";import"./UnifiedToolSelector-CNbPsiuq.js";import"./FileBrowser-BYweUPH4.js";import"./ProjectSelector-DSXOjMQC.js";var Q=(function(){var n=s(function(x,r,a,c){for(a=a||{},c=x.length;c--;a[x[c]]=r);return a},"o"),t=[6,8,10,11,12,14,16,17,20,21],e=[1,9],l=[1,10],i=[1,11],d=[1,12],h=[1,13],f=[1,16],m=[1,17],p={trace:s(function(){},"trace"),yy:{},symbols_:{error:2,start:3,timeline:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NEWLINE:10,title:11,acc_title:12,acc_title_value:13,acc_descr:14,acc_descr_value:15,acc_descr_multiline_value:16,section:17,period_statement:18,event_statement:19,period:20,event:21,$accept:0,$end:1},terminals_:{2:"error",4:"timeline",6:"EOF",8:"SPACE",10:"NEWLINE",11:"title",12:"acc_title",13:"acc_title_value",14:"acc_descr",15:"acc_descr_value",16:"acc_descr_multiline_value",17:"section",20:"period",21:"event"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[9,1],[9,2],[9,2],[9,1],[9,1],[9,1],[9,1],[18,1],[19,1]],performAction:s(function(r,a,c,u,y,o,w){var v=o.length-1;switch(y){case 1:return o[v-1];case 2:this.$=[];break;case 3:o[v-1].push(o[v]),this.$=o[v-1];break;case 4:case 5:this.$=o[v];break;case 6:case 7:this.$=[];break;case 8:u.getCommonDb().setDiagramTitle(o[v].substr(6)),this.$=o[v].substr(6);break;case 9:this.$=o[v].trim(),u.getCommonDb().setAccTitle(this.$);break;case 10:case 11:this.$=o[v].trim(),u.getCommonDb().setAccDescription(this.$);break;case 12:u.addSection(o[v].substr(8)),this.$=o[v].substr(8);break;case 15:u.addTask(o[v],0,""),this.$=o[v];break;case 16:u.addEvent(o[v].substr(2)),this.$=o[v];break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},n(t,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:e,12:l,14:i,16:d,17:h,18:14,19:15,20:f,21:m},n(t,[2,7],{1:[2,1]}),n(t,[2,3]),{9:18,11:e,12:l,14:i,16:d,17:h,18:14,19:15,20:f,21:m},n(t,[2,5]),n(t,[2,6]),n(t,[2,8]),{13:[1,19]},{15:[1,20]},n(t,[2,11]),n(t,[2,12]),n(t,[2,13]),n(t,[2,14]),n(t,[2,15]),n(t,[2,16]),n(t,[2,4]),n(t,[2,9]),n(t,[2,10])],defaultActions:{},parseError:s(function(r,a){if(a.recoverable)this.trace(r);else{var c=new Error(r);throw c.hash=a,c}},"parseError"),parse:s(function(r){var a=this,c=[0],u=[],y=[null],o=[],w=this.table,v="",N=0,P=0,V=2,U=1,H=o.slice.call(arguments,1),g=Object.create(this.lexer),b={yy:{}};for(var L in this.yy)Object.prototype.hasOwnProperty.call(this.yy,L)&&(b.yy[L]=this.yy[L]);g.setInput(r,b.yy),b.yy.lexer=g,b.yy.parser=this,typeof g.yylloc>"u"&&(g.yylloc={});var M=g.yylloc;o.push(M);var W=g.options&&g.options.ranges;typeof b.yy.parseError=="function"?this.parseError=b.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Z(T){c.length=c.length-2*T,y.length=y.length-T,o.length=o.length-T}s(Z,"popStack");function tt(){var T;return T=u.pop()||g.lex()||U,typeof T!="number"&&(T instanceof Array&&(u=T,T=u.pop()),T=a.symbols_[T]||T),T}s(tt,"lex");for(var S,A,I,J,R={},B,$,et,O;;){if(A=c[c.length-1],this.defaultActions[A]?I=this.defaultActions[A]:((S===null||typeof S>"u")&&(S=tt()),I=w[A]&&w[A][S]),typeof I>"u"||!I.length||!I[0]){var K="";O=[];for(B in w[A])this.terminals_[B]&&B>V&&O.push("'"+this.terminals_[B]+"'");g.showPosition?K="Parse error on line "+(N+1)+`:
|
|
2
|
+
`+g.showPosition()+`
|
|
3
|
+
Expecting `+O.join(", ")+", got '"+(this.terminals_[S]||S)+"'":K="Parse error on line "+(N+1)+": Unexpected "+(S==U?"end of input":"'"+(this.terminals_[S]||S)+"'"),this.parseError(K,{text:g.match,token:this.terminals_[S]||S,line:g.yylineno,loc:M,expected:O})}if(I[0]instanceof Array&&I.length>1)throw new Error("Parse Error: multiple actions possible at state: "+A+", token: "+S);switch(I[0]){case 1:c.push(S),y.push(g.yytext),o.push(g.yylloc),c.push(I[1]),S=null,P=g.yyleng,v=g.yytext,N=g.yylineno,M=g.yylloc;break;case 2:if($=this.productions_[I[1]][1],R.$=y[y.length-$],R._$={first_line:o[o.length-($||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-($||1)].first_column,last_column:o[o.length-1].last_column},W&&(R._$.range=[o[o.length-($||1)].range[0],o[o.length-1].range[1]]),J=this.performAction.apply(R,[v,P,N,b.yy,I[1],y,o].concat(H)),typeof J<"u")return J;$&&(c=c.slice(0,-1*$*2),y=y.slice(0,-1*$),o=o.slice(0,-1*$)),c.push(this.productions_[I[1]][0]),y.push(R.$),o.push(R._$),et=w[c[c.length-2]][c[c.length-1]],c.push(et);break;case 3:return!0}}return!0},"parse")},k=(function(){var x={EOF:1,parseError:s(function(a,c){if(this.yy.parser)this.yy.parser.parseError(a,c);else throw new Error(a)},"parseError"),setInput:s(function(r,a){return this.yy=a||this.yy||{},this._input=r,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:s(function(){var r=this._input[0];this.yytext+=r,this.yyleng++,this.offset++,this.match+=r,this.matched+=r;var a=r.match(/(?:\r\n?|\n).*/g);return a?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),r},"input"),unput:s(function(r){var a=r.length,c=r.split(/(?:\r\n?|\n)/g);this._input=r+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-a),this.offset-=a;var u=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),c.length-1&&(this.yylineno-=c.length-1);var y=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:c?(c.length===u.length?this.yylloc.first_column:0)+u[u.length-c.length].length-c[0].length:this.yylloc.first_column-a},this.options.ranges&&(this.yylloc.range=[y[0],y[0]+this.yyleng-a]),this.yyleng=this.yytext.length,this},"unput"),more:s(function(){return this._more=!0,this},"more"),reject:s(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
|
4
|
+
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:s(function(r){this.unput(this.match.slice(r))},"less"),pastInput:s(function(){var r=this.matched.substr(0,this.matched.length-this.match.length);return(r.length>20?"...":"")+r.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:s(function(){var r=this.match;return r.length<20&&(r+=this._input.substr(0,20-r.length)),(r.substr(0,20)+(r.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:s(function(){var r=this.pastInput(),a=new Array(r.length+1).join("-");return r+this.upcomingInput()+`
|
|
5
|
+
`+a+"^"},"showPosition"),test_match:s(function(r,a){var c,u,y;if(this.options.backtrack_lexer&&(y={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(y.yylloc.range=this.yylloc.range.slice(0))),u=r[0].match(/(?:\r\n?|\n).*/g),u&&(this.yylineno+=u.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:u?u[u.length-1].length-u[u.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+r[0].length},this.yytext+=r[0],this.match+=r[0],this.matches=r,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(r[0].length),this.matched+=r[0],c=this.performAction.call(this,this.yy,this,a,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),c)return c;if(this._backtrack){for(var o in y)this[o]=y[o];return!1}return!1},"test_match"),next:s(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var r,a,c,u;this._more||(this.yytext="",this.match="");for(var y=this._currentRules(),o=0;o<y.length;o++)if(c=this._input.match(this.rules[y[o]]),c&&(!a||c[0].length>a[0].length)){if(a=c,u=o,this.options.backtrack_lexer){if(r=this.test_match(c,y[o]),r!==!1)return r;if(this._backtrack){a=!1;continue}else return!1}else if(!this.options.flex)break}return a?(r=this.test_match(a,y[u]),r!==!1?r:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
|
|
6
|
+
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:s(function(){var a=this.next();return a||this.lex()},"lex"),begin:s(function(a){this.conditionStack.push(a)},"begin"),popState:s(function(){var a=this.conditionStack.length-1;return a>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:s(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:s(function(a){return a=this.conditionStack.length-1-Math.abs(a||0),a>=0?this.conditionStack[a]:"INITIAL"},"topState"),pushState:s(function(a){this.begin(a)},"pushState"),stateStackSize:s(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:s(function(a,c,u,y){switch(u){case 0:break;case 1:break;case 2:return 10;case 3:break;case 4:break;case 5:return 4;case 6:return 11;case 7:return this.begin("acc_title"),12;case 8:return this.popState(),"acc_title_value";case 9:return this.begin("acc_descr"),14;case 10:return this.popState(),"acc_descr_value";case 11:this.begin("acc_descr_multiline");break;case 12:this.popState();break;case 13:return"acc_descr_multiline_value";case 14:return 17;case 15:return 21;case 16:return 20;case 17:return 6;case 18:return"INVALID"}},"anonymous"),rules:[/^(?:%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:#[^\n]*)/i,/^(?:timeline\b)/i,/^(?:title\s[^\n]+)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:section\s[^:\n]+)/i,/^(?::\s(?:[^:\n]|:(?!\s))+)/i,/^(?:[^#:\n]+)/i,/^(?:$)/i,/^(?:.)/i],conditions:{acc_descr_multiline:{rules:[12,13],inclusive:!1},acc_descr:{rules:[10],inclusive:!1},acc_title:{rules:[8],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7,9,11,14,15,16,17,18],inclusive:!0}}};return x})();p.lexer=k;function _(){this.yy={}}return s(_,"Parser"),_.prototype=p,p.Parser=_,new _})();Q.parser=Q;var Tt=Q,at={};wt(at,{addEvent:()=>yt,addSection:()=>ht,addTask:()=>pt,addTaskOrg:()=>gt,clear:()=>ct,default:()=>It,getCommonDb:()=>ot,getSections:()=>dt,getTasks:()=>ut});var F="",lt=0,X=[],G=[],z=[],ot=s(()=>St,"getCommonDb"),ct=s(function(){X.length=0,G.length=0,F="",z.length=0,Et()},"clear"),ht=s(function(n){F=n,X.push(n)},"addSection"),dt=s(function(){return X},"getSections"),ut=s(function(){let n=it();const t=100;let e=0;for(;!n&&e<t;)n=it(),e++;return G.push(...z),G},"getTasks"),pt=s(function(n,t,e){const l={id:lt++,section:F,type:F,task:n,score:t||0,events:e?[e]:[]};z.push(l)},"addTask"),yt=s(function(n){z.find(e=>e.id===lt-1).events.push(n)},"addEvent"),gt=s(function(n){const t={section:F,type:F,description:n,task:n,classes:[]};G.push(t)},"addTaskOrg"),it=s(function(){const n=s(function(e){return z[e].processed},"compileTask");let t=!0;for(const[e,l]of z.entries())n(e),t=t&&l.processed;return t},"compileTasks"),It={clear:ct,getCommonDb:ot,addSection:ht,getSections:dt,getTasks:ut,addTask:pt,addTaskOrg:gt,addEvent:yt},Nt=12,q=s(function(n,t){const e=n.append("rect");return e.attr("x",t.x),e.attr("y",t.y),e.attr("fill",t.fill),e.attr("stroke",t.stroke),e.attr("width",t.width),e.attr("height",t.height),e.attr("rx",t.rx),e.attr("ry",t.ry),t.class!==void 0&&e.attr("class",t.class),e},"drawRect"),Lt=s(function(n,t){const l=n.append("circle").attr("cx",t.cx).attr("cy",t.cy).attr("class","face").attr("r",15).attr("stroke-width",2).attr("overflow","visible"),i=n.append("g");i.append("circle").attr("cx",t.cx-15/3).attr("cy",t.cy-15/3).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666"),i.append("circle").attr("cx",t.cx+15/3).attr("cy",t.cy-15/3).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666");function d(m){const p=nt().startAngle(Math.PI/2).endAngle(3*(Math.PI/2)).innerRadius(7.5).outerRadius(6.8181818181818175);m.append("path").attr("class","mouth").attr("d",p).attr("transform","translate("+t.cx+","+(t.cy+2)+")")}s(d,"smile");function h(m){const p=nt().startAngle(3*Math.PI/2).endAngle(5*(Math.PI/2)).innerRadius(7.5).outerRadius(6.8181818181818175);m.append("path").attr("class","mouth").attr("d",p).attr("transform","translate("+t.cx+","+(t.cy+7)+")")}s(h,"sad");function f(m){m.append("line").attr("class","mouth").attr("stroke",2).attr("x1",t.cx-5).attr("y1",t.cy+7).attr("x2",t.cx+5).attr("y2",t.cy+7).attr("class","mouth").attr("stroke-width","1px").attr("stroke","#666")}return s(f,"ambivalent"),t.score>3?d(i):t.score<3?h(i):f(i),l},"drawFace"),Mt=s(function(n,t){const e=n.append("circle");return e.attr("cx",t.cx),e.attr("cy",t.cy),e.attr("class","actor-"+t.pos),e.attr("fill",t.fill),e.attr("stroke",t.stroke),e.attr("r",t.r),e.class!==void 0&&e.attr("class",e.class),t.title!==void 0&&e.append("title").text(t.title),e},"drawCircle"),ft=s(function(n,t){const e=t.text.replace(/<br\s*\/?>/gi," "),l=n.append("text");l.attr("x",t.x),l.attr("y",t.y),l.attr("class","legend"),l.style("text-anchor",t.anchor),t.class!==void 0&&l.attr("class",t.class);const i=l.append("tspan");return i.attr("x",t.x+t.textMargin*2),i.text(e),l},"drawText"),$t=s(function(n,t){function e(i,d,h,f,m){return i+","+d+" "+(i+h)+","+d+" "+(i+h)+","+(d+f-m)+" "+(i+h-m*1.2)+","+(d+f)+" "+i+","+(d+f)}s(e,"genPoints");const l=n.append("polygon");l.attr("points",e(t.x,t.y,50,20,7)),l.attr("class","labelBox"),t.y=t.y+t.labelMargin,t.x=t.x+.5*t.labelMargin,ft(n,t)},"drawLabel"),Ht=s(function(n,t,e){const l=n.append("g"),i=Y();i.x=t.x,i.y=t.y,i.fill=t.fill,i.width=e.width,i.height=e.height,i.class="journey-section section-type-"+t.num,i.rx=3,i.ry=3,q(l,i),mt(e)(t.text,l,i.x,i.y,i.width,i.height,{class:"journey-section section-type-"+t.num},e,t.colour)},"drawSection"),rt=-1,Pt=s(function(n,t,e){const l=t.x+e.width/2,i=n.append("g");rt++,i.append("line").attr("id","task"+rt).attr("x1",l).attr("y1",t.y).attr("x2",l).attr("y2",450).attr("class","task-line").attr("stroke-width","1px").attr("stroke-dasharray","4 2").attr("stroke","#666"),Lt(i,{cx:l,cy:300+(5-t.score)*30,score:t.score});const h=Y();h.x=t.x,h.y=t.y,h.fill=t.fill,h.width=e.width,h.height=e.height,h.class="task task-type-"+t.num,h.rx=3,h.ry=3,q(i,h),mt(e)(t.task,i,h.x,h.y,h.width,h.height,{class:"task"},e,t.colour)},"drawTask"),At=s(function(n,t){q(n,{x:t.startx,y:t.starty,width:t.stopx-t.startx,height:t.stopy-t.starty,fill:t.fill,class:"rect"}).lower()},"drawBackgroundRect"),Ct=s(function(){return{x:0,y:0,fill:void 0,"text-anchor":"start",width:100,height:100,textMargin:0,rx:0,ry:0}},"getTextObj"),Y=s(function(){return{x:0,y:0,width:100,anchor:"start",height:100,rx:0,ry:0}},"getNoteRect"),mt=(function(){function n(i,d,h,f,m,p,k,_){const x=d.append("text").attr("x",h+m/2).attr("y",f+p/2+5).style("font-color",_).style("text-anchor","middle").text(i);l(x,k)}s(n,"byText");function t(i,d,h,f,m,p,k,_,x){const{taskFontSize:r,taskFontFamily:a}=_,c=i.split(/<br\s*\/?>/gi);for(let u=0;u<c.length;u++){const y=u*r-r*(c.length-1)/2,o=d.append("text").attr("x",h+m/2).attr("y",f).attr("fill",x).style("text-anchor","middle").style("font-size",r).style("font-family",a);o.append("tspan").attr("x",h+m/2).attr("dy",y).text(c[u]),o.attr("y",f+p/2).attr("dominant-baseline","central").attr("alignment-baseline","central"),l(o,k)}}s(t,"byTspan");function e(i,d,h,f,m,p,k,_){const x=d.append("switch"),a=x.append("foreignObject").attr("x",h).attr("y",f).attr("width",m).attr("height",p).attr("position","fixed").append("xhtml:div").style("display","table").style("height","100%").style("width","100%");a.append("div").attr("class","label").style("display","table-cell").style("text-align","center").style("vertical-align","middle").text(i),t(i,x,h,f,m,p,k,_),l(a,k)}s(e,"byFo");function l(i,d){for(const h in d)h in d&&i.attr(h,d[h])}return s(l,"_setTextAttrs"),function(i){return i.textPlacement==="fo"?e:i.textPlacement==="old"?n:t}})(),Rt=s(function(n){n.append("defs").append("marker").attr("id","arrowhead").attr("refX",5).attr("refY",2).attr("markerWidth",6).attr("markerHeight",4).attr("orient","auto").append("path").attr("d","M 0,0 V 4 L6,2 Z")},"initGraphics");function D(n,t){n.each(function(){var e=j(this),l=e.text().split(/(\s+|<br>)/).reverse(),i,d=[],h=1.1,f=e.attr("y"),m=parseFloat(e.attr("dy")),p=e.text(null).append("tspan").attr("x",0).attr("y",f).attr("dy",m+"em");for(let k=0;k<l.length;k++)i=l[l.length-1-k],d.push(i),p.text(d.join(" ").trim()),(p.node().getComputedTextLength()>t||i==="<br>")&&(d.pop(),p.text(d.join(" ").trim()),i==="<br>"?d=[""]:d=[i],p=e.append("tspan").attr("x",0).attr("y",f).attr("dy",h+"em").text(i))})}s(D,"wrap");var Ft=s(function(n,t,e,l){const i=e%Nt-1,d=n.append("g");t.section=i,d.attr("class",(t.class?t.class+" ":"")+"timeline-node "+("section-"+i));const h=d.append("g"),f=d.append("g"),p=f.append("text").text(t.descr).attr("dy","1em").attr("alignment-baseline","middle").attr("dominant-baseline","middle").attr("text-anchor","middle").call(D,t.width).node().getBBox(),k=l.fontSize?.replace?l.fontSize.replace("px",""):l.fontSize;return t.height=p.height+k*1.1*.5+t.padding,t.height=Math.max(t.height,t.maxHeight),t.width=t.width+2*t.padding,f.attr("transform","translate("+t.width/2+", "+t.padding/2+")"),Vt(h,t,i,l),t},"drawNode"),zt=s(function(n,t,e){const l=n.append("g"),d=l.append("text").text(t.descr).attr("dy","1em").attr("alignment-baseline","middle").attr("dominant-baseline","middle").attr("text-anchor","middle").call(D,t.width).node().getBBox(),h=e.fontSize?.replace?e.fontSize.replace("px",""):e.fontSize;return l.remove(),d.height+h*1.1*.5+t.padding},"getVirtualNodeHeight"),Vt=s(function(n,t,e){n.append("path").attr("id","node-"+t.id).attr("class","node-bkg node-"+t.type).attr("d",`M0 ${t.height-5} v${-t.height+10} q0,-5 5,-5 h${t.width-10} q5,0 5,5 v${t.height-5} H0 Z`),n.append("line").attr("class","node-line-"+e).attr("x1",0).attr("y1",t.height).attr("x2",t.width).attr("y2",t.height)},"defaultBkg"),C={drawRect:q,drawCircle:Mt,drawSection:Ht,drawText:ft,drawLabel:$t,drawTask:Pt,drawBackgroundRect:At,getTextObj:Ct,getNoteRect:Y,initGraphics:Rt,drawNode:Ft,getVirtualNodeHeight:zt},Wt=s(function(n,t,e,l){const i=xt(),d=i.timeline?.leftMargin??50;E.debug("timeline",l.db);const h=i.securityLevel;let f;h==="sandbox"&&(f=j("#i"+t));const p=(h==="sandbox"?j(f.nodes()[0].contentDocument.body):j("body")).select("#"+t);p.append("g");const k=l.db.getTasks(),_=l.db.getCommonDb().getDiagramTitle();E.debug("task",k),C.initGraphics(p);const x=l.db.getSections();E.debug("sections",x);let r=0,a=0,c=0,u=0,y=50+d,o=50;u=50;let w=0,v=!0;x.forEach(function(H){const g={number:w,descr:H,section:w,width:150,padding:20,maxHeight:r},b=C.getVirtualNodeHeight(p,g,i);E.debug("sectionHeight before draw",b),r=Math.max(r,b+20)});let N=0,P=0;E.debug("tasks.length",k.length);for(const[H,g]of k.entries()){const b={number:H,descr:g,section:g.section,width:150,padding:20,maxHeight:a},L=C.getVirtualNodeHeight(p,b,i);E.debug("taskHeight before draw",L),a=Math.max(a,L+20),N=Math.max(N,g.events.length);let M=0;for(const W of g.events){const Z={descr:W,section:g.section,number:g.section,width:150,padding:20,maxHeight:50};M+=C.getVirtualNodeHeight(p,Z,i)}g.events.length>0&&(M+=(g.events.length-1)*10),P=Math.max(P,M)}E.debug("maxSectionHeight before draw",r),E.debug("maxTaskHeight before draw",a),x&&x.length>0?x.forEach(H=>{const g=k.filter(W=>W.section===H),b={number:w,descr:H,section:w,width:200*Math.max(g.length,1)-50,padding:20,maxHeight:r};E.debug("sectionNode",b);const L=p.append("g"),M=C.drawNode(L,b,w,i);E.debug("sectionNode output",M),L.attr("transform",`translate(${y}, ${u})`),o+=r+50,g.length>0&&st(p,g,w,y,o,a,i,N,P,r,!1),y+=200*Math.max(g.length,1),o=u,w++}):(v=!1,st(p,k,w,y,o,a,i,N,P,r,!0));const V=p.node().getBBox();E.debug("bounds",V),_&&p.append("text").text(_).attr("x",V.width/2-d).attr("font-size","4ex").attr("font-weight","bold").attr("y",20),c=v?r+a+150:a+100,p.append("g").attr("class","lineWrapper").append("line").attr("x1",d).attr("y1",c).attr("x2",V.width+3*d).attr("y2",c).attr("stroke-width",4).attr("stroke","black").attr("marker-end","url(#arrowhead)"),kt(void 0,p,i.timeline?.padding??50,i.timeline?.useMaxWidth??!1)},"draw"),st=s(function(n,t,e,l,i,d,h,f,m,p,k){for(const _ of t){const x={descr:_.task,section:e,number:e,width:150,padding:20,maxHeight:d};E.debug("taskNode",x);const r=n.append("g").attr("class","taskWrapper"),c=C.drawNode(r,x,e,h).height;if(E.debug("taskHeight after draw",c),r.attr("transform",`translate(${l}, ${i})`),d=Math.max(d,c),_.events){const u=n.append("g").attr("class","lineWrapper");let y=d;i+=100,y=y+Bt(n,_.events,e,l,i,h),i-=100,u.append("line").attr("x1",l+190/2).attr("y1",i+d).attr("x2",l+190/2).attr("y2",i+d+100+m+100).attr("stroke-width",2).attr("stroke","black").attr("marker-end","url(#arrowhead)").attr("stroke-dasharray","5,5")}l=l+200,k&&!h.timeline?.disableMulticolor&&e++}i=i-10},"drawTasks"),Bt=s(function(n,t,e,l,i,d){let h=0;const f=i;i=i+100;for(const m of t){const p={descr:m,section:e,number:e,width:150,padding:20,maxHeight:50};E.debug("eventNode",p);const k=n.append("g").attr("class","eventWrapper"),x=C.drawNode(k,p,e,d).height;h=h+x,k.attr("transform",`translate(${l}, ${i})`),i=i+10+x}return i=f,h},"drawEvents"),Ot={setConf:s(()=>{},"setConf"),draw:Wt},jt=s(n=>{let t="";for(let e=0;e<n.THEME_COLOR_LIMIT;e++)n["lineColor"+e]=n["lineColor"+e]||n["cScaleInv"+e],vt(n["lineColor"+e])?n["lineColor"+e]=_t(n["lineColor"+e],20):n["lineColor"+e]=bt(n["lineColor"+e],20);for(let e=0;e<n.THEME_COLOR_LIMIT;e++){const l=""+(17-3*e);t+=`
|
|
7
|
+
.section-${e-1} rect, .section-${e-1} path, .section-${e-1} circle, .section-${e-1} path {
|
|
8
|
+
fill: ${n["cScale"+e]};
|
|
9
|
+
}
|
|
10
|
+
.section-${e-1} text {
|
|
11
|
+
fill: ${n["cScaleLabel"+e]};
|
|
12
|
+
}
|
|
13
|
+
.node-icon-${e-1} {
|
|
14
|
+
font-size: 40px;
|
|
15
|
+
color: ${n["cScaleLabel"+e]};
|
|
16
|
+
}
|
|
17
|
+
.section-edge-${e-1}{
|
|
18
|
+
stroke: ${n["cScale"+e]};
|
|
19
|
+
}
|
|
20
|
+
.edge-depth-${e-1}{
|
|
21
|
+
stroke-width: ${l};
|
|
22
|
+
}
|
|
23
|
+
.section-${e-1} line {
|
|
24
|
+
stroke: ${n["cScaleInv"+e]} ;
|
|
25
|
+
stroke-width: 3;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.lineWrapper line{
|
|
29
|
+
stroke: ${n["cScaleLabel"+e]} ;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.disabled, .disabled circle, .disabled text {
|
|
33
|
+
fill: lightgray;
|
|
34
|
+
}
|
|
35
|
+
.disabled text {
|
|
36
|
+
fill: #efefef;
|
|
37
|
+
}
|
|
38
|
+
`}return t},"genSections"),Gt=s(n=>`
|
|
39
|
+
.edge {
|
|
40
|
+
stroke-width: 3;
|
|
41
|
+
}
|
|
42
|
+
${jt(n)}
|
|
43
|
+
.section-root rect, .section-root path, .section-root circle {
|
|
44
|
+
fill: ${n.git0};
|
|
45
|
+
}
|
|
46
|
+
.section-root text {
|
|
47
|
+
fill: ${n.gitBranchLabel0};
|
|
48
|
+
}
|
|
49
|
+
.icon-container {
|
|
50
|
+
height:100%;
|
|
51
|
+
display: flex;
|
|
52
|
+
justify-content: center;
|
|
53
|
+
align-items: center;
|
|
54
|
+
}
|
|
55
|
+
.edge {
|
|
56
|
+
fill: none;
|
|
57
|
+
}
|
|
58
|
+
.eventWrapper {
|
|
59
|
+
filter: brightness(120%);
|
|
60
|
+
}
|
|
61
|
+
`,"getStyles"),qt=Gt,ce={db:at,renderer:Ot,parser:Tt,styles:qt};export{ce as diagram};
|