paul-ai-assistant 0.1.16
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 +249 -0
- package/dist/1.async.js +61 -0
- package/dist/1013.async.js +1 -0
- package/dist/123.async.js +258 -0
- package/dist/1387.async.js +321 -0
- package/dist/1481.async.js +1 -0
- package/dist/1548.async.js +2 -0
- package/dist/1815.async.js +3 -0
- package/dist/1819.async.js +1 -0
- package/dist/1851.async.js +1 -0
- package/dist/2491.async.js +132 -0
- package/dist/2517.async.js +247 -0
- package/dist/2678.async.js +1 -0
- package/dist/2856.async.js +267 -0
- package/dist/295.async.js +1 -0
- package/dist/3098.async.js +1 -0
- package/dist/3138.async.js +1 -0
- package/dist/34.async.js +137 -0
- package/dist/3472.async.js +1 -0
- package/dist/3614.async.js +25 -0
- package/dist/3959.async.js +69 -0
- package/dist/404.html +44 -0
- package/dist/4484.async.js +10 -0
- package/dist/4498.async.js +37 -0
- package/dist/4911.async.js +1 -0
- package/dist/4927.async.js +104 -0
- package/dist/5067.async.js +44 -0
- package/dist/5588.async.js +8 -0
- package/dist/5754.async.js +5 -0
- package/dist/6254.async.js +30286 -0
- package/dist/6355.async.js +10 -0
- package/dist/6662.async.js +177 -0
- package/dist/6680.async.js +2615 -0
- package/dist/6690.async.js +153 -0
- package/dist/7267.async.js +31 -0
- package/dist/7329.async.js +180 -0
- package/dist/7718.async.js +61 -0
- package/dist/7762.async.js +3 -0
- package/dist/7787.async.js +7 -0
- package/dist/7929.async.js +1 -0
- package/dist/8164.async.js +1 -0
- package/dist/834.async.js +221 -0
- package/dist/8456.async.js +146 -0
- package/dist/8542.async.js +25 -0
- package/dist/8749.async.js +1 -0
- package/dist/8914.async.js +66 -0
- package/dist/9570.async.js +65 -0
- package/dist/9725.async.js +18 -0
- package/dist/components/llm-trace-v2/index.html +44 -0
- package/dist/components/llm-trace-v3/index.html +44 -0
- package/dist/components/llm-trace-v3-advanced/index.html +44 -0
- package/dist/components/llm-trace-v3-examples/index.html +44 -0
- package/dist/components/llm-trace-v3-visual-demos/index.html +44 -0
- package/dist/demos.async.js +594 -0
- package/dist/demos__index.md.async.js +1 -0
- package/dist/demos__markdown-latex-mermaid__index.md.async.js +1 -0
- package/dist/demos__toolChatType__index.md.async.js +1 -0
- package/dist/docs/index.html +44 -0
- package/dist/docs__components__llm-trace-v2.md.async.js +1 -0
- package/dist/docs__components__llm-trace-v3-advanced.md.async.js +1 -0
- package/dist/docs__components__llm-trace-v3-examples.md.async.js +1 -0
- package/dist/docs__components__llm-trace-v3-visual-demos.md.async.js +1 -0
- package/dist/docs__components__llm-trace-v3.md.async.js +61 -0
- package/dist/docs__docs__index.md.async.js +108 -0
- package/dist/docs__index.md.async.js +1 -0
- package/dist/dumi__tmp-production__dumi__theme__ContextWrapper.async.js +1 -0
- package/dist/index.html +44 -0
- package/dist/markdown-latex-mermaid/index.html +44 -0
- package/dist/meta__demos.async.js +4272 -0
- package/dist/meta__docs.async.js +3416 -0
- package/dist/nm__dumi__dist__client__pages__404.async.js +29 -0
- package/dist/nm__dumi__dist__client__pages__Demo__index.async.js +5 -0
- package/dist/nm__dumi__theme-default__layouts__DocLayout__index.async.js +1 -0
- package/dist/preload_helper.js +1 -0
- package/dist/static/KaTeX_AMS-Regular.1608a09b.woff +0 -0
- package/dist/static/KaTeX_AMS-Regular.4aafdb68.ttf +0 -0
- package/dist/static/KaTeX_AMS-Regular.a79f1c31.woff2 +0 -0
- package/dist/static/KaTeX_Caligraphic-Bold.b6770918.woff +0 -0
- package/dist/static/KaTeX_Caligraphic-Bold.cce5b8ec.ttf +0 -0
- package/dist/static/KaTeX_Caligraphic-Bold.ec17d132.woff2 +0 -0
- package/dist/static/KaTeX_Caligraphic-Regular.07ef19e7.ttf +0 -0
- package/dist/static/KaTeX_Caligraphic-Regular.55fac258.woff2 +0 -0
- package/dist/static/KaTeX_Caligraphic-Regular.dad44a7f.woff +0 -0
- package/dist/static/KaTeX_Fraktur-Bold.9f256b85.woff +0 -0
- package/dist/static/KaTeX_Fraktur-Bold.b18f59e1.ttf +0 -0
- package/dist/static/KaTeX_Fraktur-Bold.d42a5579.woff2 +0 -0
- package/dist/static/KaTeX_Fraktur-Regular.7c187121.woff +0 -0
- package/dist/static/KaTeX_Fraktur-Regular.d3c882a6.woff2 +0 -0
- package/dist/static/KaTeX_Fraktur-Regular.ed38e79f.ttf +0 -0
- package/dist/static/KaTeX_Main-Bold.b74a1a8b.ttf +0 -0
- package/dist/static/KaTeX_Main-Bold.c3fb5ac2.woff2 +0 -0
- package/dist/static/KaTeX_Main-Bold.d181c465.woff +0 -0
- package/dist/static/KaTeX_Main-BoldItalic.6f2bb1df.woff2 +0 -0
- package/dist/static/KaTeX_Main-BoldItalic.70d8b0a5.ttf +0 -0
- package/dist/static/KaTeX_Main-BoldItalic.e3f82f9d.woff +0 -0
- package/dist/static/KaTeX_Main-Italic.47373d1e.ttf +0 -0
- package/dist/static/KaTeX_Main-Italic.8916142b.woff2 +0 -0
- package/dist/static/KaTeX_Main-Italic.9024d815.woff +0 -0
- package/dist/static/KaTeX_Main-Regular.0462f03b.woff2 +0 -0
- package/dist/static/KaTeX_Main-Regular.7f51fe03.woff +0 -0
- package/dist/static/KaTeX_Main-Regular.b7f8fe9b.ttf +0 -0
- package/dist/static/KaTeX_Math-BoldItalic.572d331f.woff2 +0 -0
- package/dist/static/KaTeX_Math-BoldItalic.a879cf83.ttf +0 -0
- package/dist/static/KaTeX_Math-BoldItalic.f1035d8d.woff +0 -0
- package/dist/static/KaTeX_Math-Italic.5295ba48.woff +0 -0
- package/dist/static/KaTeX_Math-Italic.939bc644.ttf +0 -0
- package/dist/static/KaTeX_Math-Italic.f28c23ac.woff2 +0 -0
- package/dist/static/KaTeX_SansSerif-Bold.8c5b5494.woff2 +0 -0
- package/dist/static/KaTeX_SansSerif-Bold.94e1e8dc.ttf +0 -0
- package/dist/static/KaTeX_SansSerif-Bold.bf59d231.woff +0 -0
- package/dist/static/KaTeX_SansSerif-Italic.3b1e59b3.woff2 +0 -0
- package/dist/static/KaTeX_SansSerif-Italic.7c9bc82b.woff +0 -0
- package/dist/static/KaTeX_SansSerif-Italic.b4c20c84.ttf +0 -0
- package/dist/static/KaTeX_SansSerif-Regular.74048478.woff +0 -0
- package/dist/static/KaTeX_SansSerif-Regular.ba21ed5f.woff2 +0 -0
- package/dist/static/KaTeX_SansSerif-Regular.d4d7ba48.ttf +0 -0
- package/dist/static/KaTeX_Script-Regular.03e9641d.woff2 +0 -0
- package/dist/static/KaTeX_Script-Regular.07505710.woff +0 -0
- package/dist/static/KaTeX_Script-Regular.fe9cbbe1.ttf +0 -0
- package/dist/static/KaTeX_Size1-Regular.e1e279cb.woff +0 -0
- package/dist/static/KaTeX_Size1-Regular.eae34984.woff2 +0 -0
- package/dist/static/KaTeX_Size1-Regular.fabc004a.ttf +0 -0
- package/dist/static/KaTeX_Size2-Regular.57727022.woff +0 -0
- package/dist/static/KaTeX_Size2-Regular.5916a24f.woff2 +0 -0
- package/dist/static/KaTeX_Size2-Regular.d6b476ec.ttf +0 -0
- package/dist/static/KaTeX_Size3-Regular.9acaf01c.woff +0 -0
- package/dist/static/KaTeX_Size3-Regular.a144ef58.ttf +0 -0
- package/dist/static/KaTeX_Size3-Regular.b4230e7e.woff2 +0 -0
- package/dist/static/KaTeX_Size4-Regular.10d95fd3.woff2 +0 -0
- package/dist/static/KaTeX_Size4-Regular.7a996c9d.woff +0 -0
- package/dist/static/KaTeX_Size4-Regular.fbccdabe.ttf +0 -0
- package/dist/static/KaTeX_Typewriter-Regular.6258592b.woff +0 -0
- package/dist/static/KaTeX_Typewriter-Regular.a8709e36.woff2 +0 -0
- package/dist/static/KaTeX_Typewriter-Regular.d97aaf4a.ttf +0 -0
- package/dist/tool-chat-type/index.html +44 -0
- package/dist/umi.js +1534 -0
- package/dist/~demos/:id/index.html +44 -0
- package/dist/~demos/demos-markdown-latex-mermaid-demo-markdown-latex-mermaid/index.html +44 -0
- package/dist/~demos/demos-tool-chat-type-demo-agentschemaformdemo/index.html +44 -0
- package/dist/~demos/demos-tool-chat-type-demo-assistant-drawer/index.html +44 -0
- package/dist/~demos/demos-tool-chat-type-demo-chat-input-demo/index.html +44 -0
- package/dist/~demos/demos-tool-chat-type-demo-chat-list-demo/index.html +44 -0
- package/dist/~demos/demos-tool-chat-type-demo-chat-scenario-demo/index.html +44 -0
- package/dist/~demos/demos-tool-chat-type-demo-schema-input/index.html +44 -0
- package/dist/~demos/demos-tool-chat-type-demo-toolchattype/index.html +44 -0
- package/dist/~demos/docs-components-llm-trace-v-2-demo-0/index.html +44 -0
- package/dist/~demos/docs-components-llm-trace-v-2-demo-1/index.html +44 -0
- package/dist/~demos/docs-components-llm-trace-v-2-demo-2/index.html +44 -0
- package/dist/~demos/docs-components-llm-trace-v-2-demo-3/index.html +44 -0
- package/dist/~demos/docs-components-llm-trace-v-2-demo-4/index.html +44 -0
- package/dist/~demos/docs-components-llm-trace-v-3-advanced-demo-0/index.html +44 -0
- package/dist/~demos/docs-components-llm-trace-v-3-advanced-demo-1/index.html +44 -0
- package/dist/~demos/docs-components-llm-trace-v-3-advanced-demo-2/index.html +44 -0
- package/dist/~demos/docs-components-llm-trace-v-3-advanced-demo-3/index.html +44 -0
- package/dist/~demos/docs-components-llm-trace-v-3-demo-0/index.html +44 -0
- package/dist/~demos/docs-components-llm-trace-v-3-demo-1/index.html +44 -0
- package/dist/~demos/docs-components-llm-trace-v-3-demo-2/index.html +44 -0
- package/dist/~demos/docs-components-llm-trace-v-3-demo-3/index.html +44 -0
- package/dist/~demos/docs-components-llm-trace-v-3-examples-demo-0/index.html +44 -0
- package/dist/~demos/docs-components-llm-trace-v-3-examples-demo-1/index.html +44 -0
- package/dist/~demos/docs-components-llm-trace-v-3-examples-demo-2/index.html +44 -0
- package/dist/~demos/docs-components-llm-trace-v-3-examples-demo-3/index.html +44 -0
- package/dist/~demos/docs-components-llm-trace-v-3-examples-demo-4/index.html +44 -0
- package/dist/~demos/docs-components-llm-trace-v-3-visual-demos-demo-0/index.html +44 -0
- package/dist/~demos/docs-components-llm-trace-v-3-visual-demos-demo-1/index.html +44 -0
- package/dist/~demos/docs-components-llm-trace-v-3-visual-demos-demo-2/index.html +44 -0
- package/dist/~demos/docs-components-llm-trace-v-3-visual-demos-demo-3/index.html +44 -0
- package/dist/~demos/docs-components-llm-trace-v-3-visual-demos-demo-4/index.html +44 -0
- package/dist/~demos/docs-components-llm-trace-v-3-visual-demos-demo-5/index.html +44 -0
- package/dist/~demos/docs-components-llm-trace-v-3-visual-demos-demo-6/index.html +44 -0
- package/dist/~demos/docs-components-llm-trace-v-3-visual-demos-demo-7/index.html +44 -0
- package/es/AssistantChat/AssistantChatApp/CardMatchRender/index.d.ts +8 -0
- package/es/AssistantChat/AssistantChatApp/CardMatchRender/index.js +124 -0
- package/es/AssistantChat/AssistantChatApp/OperationMatchRender/index.d.ts +9 -0
- package/es/AssistantChat/AssistantChatApp/OperationMatchRender/index.js +64 -0
- package/es/AssistantChat/AssistantChatApp/const.d.ts +51 -0
- package/es/AssistantChat/AssistantChatApp/const.js +105 -0
- package/es/AssistantChat/AssistantChatApp/index.d.ts +4 -0
- package/es/AssistantChat/AssistantChatApp/index.js +281 -0
- package/es/AssistantChat/AssistantChatApp/index.scss +327 -0
- package/es/AssistantChat/AssistantChatCard/AgentCardRender/TemplateCard.d.ts +3 -0
- package/es/AssistantChat/AssistantChatCard/AgentCardRender/TemplateCard.js +125 -0
- package/es/AssistantChat/AssistantChatCard/AgentCardRender/common/types.d.ts +3 -0
- package/es/AssistantChat/AssistantChatCard/AgentCardRender/common/types.js +1 -0
- package/es/AssistantChat/AssistantChatCard/AgentCardRender/component/TemplateHeader.d.ts +5 -0
- package/es/AssistantChat/AssistantChatCard/AgentCardRender/component/TemplateHeader.js +24 -0
- package/es/AssistantChat/AssistantChatCard/AgentCardRender/component/TemplateHtml.d.ts +7 -0
- package/es/AssistantChat/AssistantChatCard/AgentCardRender/component/TemplateHtml.js +58 -0
- package/es/AssistantChat/AssistantChatCard/AgentCardRender/component/TemplateParagraph.d.ts +3 -0
- package/es/AssistantChat/AssistantChatCard/AgentCardRender/component/TemplateParagraph.js +8 -0
- package/es/AssistantChat/AssistantChatCard/AgentCardRender/component/TemplateTitle.d.ts +3 -0
- package/es/AssistantChat/AssistantChatCard/AgentCardRender/component/TemplateTitle.js +9 -0
- package/es/AssistantChat/AssistantChatCard/AgentCardRender/component/TraceComponent.d.ts +3 -0
- package/es/AssistantChat/AssistantChatCard/AgentCardRender/component/TraceComponent.js +47 -0
- package/es/AssistantChat/AssistantChatCard/AgentCardRender/context/index.d.ts +29 -0
- package/es/AssistantChat/AssistantChatCard/AgentCardRender/context/index.js +95 -0
- package/es/AssistantChat/AssistantChatCard/AgentCardRender/index.d.ts +4 -0
- package/es/AssistantChat/AssistantChatCard/AgentCardRender/index.js +100 -0
- package/es/AssistantChat/AssistantChatCard/AgentCardRender/index.scss +18 -0
- package/es/AssistantChat/AssistantChatCard/AgentCardRender/utils.d.ts +2 -0
- package/es/AssistantChat/AssistantChatCard/AgentCardRender/utils.js +36 -0
- package/es/AssistantChat/AssistantChatCard/AgentCommonCard/index.d.ts +4 -0
- package/es/AssistantChat/AssistantChatCard/AgentCommonCard/index.js +95 -0
- package/es/AssistantChat/AssistantChatCard/AgentCommonCard/index.scss +20 -0
- package/es/AssistantChat/AssistantChatCard/AgentExecutionCard/index.d.ts +16 -0
- package/es/AssistantChat/AssistantChatCard/AgentExecutionCard/index.js +17 -0
- package/es/AssistantChat/AssistantChatCard/AgentExecutionCard/index.scss +99 -0
- package/es/AssistantChat/AssistantChatCard/LlmGenerateCard/index.d.ts +14 -0
- package/es/AssistantChat/AssistantChatCard/LlmGenerateCard/index.js +273 -0
- package/es/AssistantChat/AssistantChatCard/LlmGenerateCard/index.scss +101 -0
- package/es/AssistantChat/AssistantChatCard/LlmGenerateCardV5/index.d.ts +78 -0
- package/es/AssistantChat/AssistantChatCard/LlmGenerateCardV5/index.js +123 -0
- package/es/AssistantChat/AssistantChatCard/LlmGenerateCardV5/index.scss +12 -0
- package/es/AssistantChat/AssistantChatCard/OperationCard/AigcTipsRender/index.d.ts +7 -0
- package/es/AssistantChat/AssistantChatCard/OperationCard/AigcTipsRender/index.js +29 -0
- package/es/AssistantChat/AssistantChatCard/OperationCard/Copy/index.d.ts +7 -0
- package/es/AssistantChat/AssistantChatCard/OperationCard/Copy/index.js +64 -0
- package/es/AssistantChat/AssistantChatCard/OperationCard/CopyRequestId/index.d.ts +3 -0
- package/es/AssistantChat/AssistantChatCard/OperationCard/CopyRequestId/index.js +19 -0
- package/es/AssistantChat/AssistantChatCard/OperationCard/FeedBack/index.d.ts +11 -0
- package/es/AssistantChat/AssistantChatCard/OperationCard/FeedBack/index.js +91 -0
- package/es/AssistantChat/AssistantChatCard/OperationCard/ShareButton/index.d.ts +3 -0
- package/es/AssistantChat/AssistantChatCard/OperationCard/ShareButton/index.js +26 -0
- package/es/AssistantChat/AssistantChatCard/OperationCard/index.d.ts +4 -0
- package/es/AssistantChat/AssistantChatCard/OperationCard/index.js +43 -0
- package/es/AssistantChat/AssistantChatCard/OperationCard/index.scss +14 -0
- package/es/AssistantChat/AssistantChatCard/UserQueryCardRender/AttachmentsRender.d.ts +21 -0
- package/es/AssistantChat/AssistantChatCard/UserQueryCardRender/AttachmentsRender.js +141 -0
- package/es/AssistantChat/AssistantChatCard/UserQueryCardRender/ImageRender.d.ts +7 -0
- package/es/AssistantChat/AssistantChatCard/UserQueryCardRender/ImageRender.js +74 -0
- package/es/AssistantChat/AssistantChatCard/UserQueryCardRender/index.d.ts +8 -0
- package/es/AssistantChat/AssistantChatCard/UserQueryCardRender/index.js +54 -0
- package/es/AssistantChat/AssistantChatCard/UserQueryCardRender/index.scss +98 -0
- package/es/AssistantChat/AssistantChatCard/index.d.ts +5 -0
- package/es/AssistantChat/AssistantChatCard/index.js +10 -0
- package/es/AssistantChat/AssistantChatInput/index.d.ts +5 -0
- package/es/AssistantChat/AssistantChatInput/index.js +172 -0
- package/es/AssistantChat/AssistantChatInput/index.scss +85 -0
- package/es/AssistantChat/AssistantToolApp/const.d.ts +12 -0
- package/es/AssistantChat/AssistantToolApp/const.js +22 -0
- package/es/AssistantChat/AssistantToolApp/index.d.ts +4 -0
- package/es/AssistantChat/AssistantToolApp/index.js +159 -0
- package/es/AssistantChat/AssistantToolApp/index.scss +76 -0
- package/es/AssistantChat/AssistantToolExecutionApp/const.d.ts +7 -0
- package/es/AssistantChat/AssistantToolExecutionApp/const.js +23 -0
- package/es/AssistantChat/AssistantToolExecutionApp/index.d.ts +4 -0
- package/es/AssistantChat/AssistantToolExecutionApp/index.js +66 -0
- package/es/AssistantChat/AssistantToolExecutionApp/index.scss +39 -0
- package/es/AssistantChat/AssistentError/index.d.ts +5 -0
- package/es/AssistantChat/AssistentError/index.js +138 -0
- package/es/AssistantChat/index.d.ts +6 -0
- package/es/AssistantChat/index.js +166 -0
- package/es/AssistantChat/index.scss +30 -0
- package/es/AssistantChat/logCallback/aTagLog.d.ts +1 -0
- package/es/AssistantChat/logCallback/aTagLog.js +23 -0
- package/es/AssistantChat/logCallback/copyLog.d.ts +3 -0
- package/es/AssistantChat/logCallback/copyLog.js +63 -0
- package/es/ErrorBoundary/ErrorBoundaryFallback/index.d.ts +5 -0
- package/es/ErrorBoundary/ErrorBoundaryFallback/index.js +134 -0
- package/es/ErrorBoundary/index.d.ts +22 -0
- package/es/ErrorBoundary/index.js +69 -0
- package/es/common/registerAssistChatForm.d.ts +2 -0
- package/es/common/registerAssistChatForm.js +14 -0
- package/es/components/AgentCardSubmit/index.d.ts +20 -0
- package/es/components/AgentCardSubmit/index.js +90 -0
- package/es/components/AgentResult/index.d.ts +8 -0
- package/es/components/AgentResult/index.js +77 -0
- package/es/components/AgentResult/index.scss +11 -0
- package/es/components/AgentSchemaForm/ScreenshotView.d.ts +12 -0
- package/es/components/AgentSchemaForm/ScreenshotView.js +194 -0
- package/es/components/AgentSchemaForm/ScreenshotView.scss +86 -0
- package/es/components/AgentSchemaForm/_interface.d.ts +37 -0
- package/es/components/AgentSchemaForm/_interface.js +13 -0
- package/es/components/AgentSchemaForm/index.d.ts +9 -0
- package/es/components/AgentSchemaForm/index.js +190 -0
- package/es/components/AgentSchemaForm/index.scss +37 -0
- package/es/components/AgentText/index.d.ts +4 -0
- package/es/components/AgentText/index.js +8 -0
- package/es/components/AgentText/index.scss +5 -0
- package/es/components/AigcTips/index.d.ts +9 -0
- package/es/components/AigcTips/index.js +17 -0
- package/es/components/AigcTips/index.scss +6 -0
- package/es/components/ArrayInput/index.d.ts +3 -0
- package/es/components/ArrayInput/index.js +36 -0
- package/es/components/AssistantDrawer/index.d.ts +22 -0
- package/es/components/AssistantDrawer/index.js +112 -0
- package/es/components/AssistantDrawer/index.scss +96 -0
- package/es/components/EmptyIcon/index.d.ts +3 -0
- package/es/components/EmptyIcon/index.js +124 -0
- package/es/components/HeaderSvgIcon/index.d.ts +3 -0
- package/es/components/HeaderSvgIcon/index.js +1 -0
- package/es/components/InspectionCard/index.d.ts +66 -0
- package/es/components/InspectionCard/index.js +246 -0
- package/es/components/InspectionCard/index.module.less +193 -0
- package/es/components/InspectionCard/result.d.ts +13 -0
- package/es/components/InspectionCard/result.js +26 -0
- package/es/components/InspectionCard/result.module.less +36 -0
- package/es/components/LlmMarkDown/MdAmarkGuess/index.d.ts +16 -0
- package/es/components/LlmMarkDown/MdAmarkGuess/index.js +41 -0
- package/es/components/LlmMarkDown/MdAmarkReference/index.d.ts +21 -0
- package/es/components/LlmMarkDown/MdAmarkReference/index.js +300 -0
- package/es/components/LlmMarkDown/MdAmarkReference/index.scss +122 -0
- package/es/components/LlmMarkDown/index.d.ts +30 -0
- package/es/components/LlmMarkDown/index.js +202 -0
- package/es/components/LlmMarkDown/index.scss +23 -0
- package/es/components/LlmModelChange/index.d.ts +57 -0
- package/es/components/LlmModelChange/index.js +138 -0
- package/es/components/LlmModelChange/index.scss +60 -0
- package/es/components/LlmReference/index.d.ts +25 -0
- package/es/components/LlmReference/index.js +147 -0
- package/es/components/LlmReference/index.scss +92 -0
- package/es/components/LlmTitle/index.d.ts +14 -0
- package/es/components/LlmTitle/index.js +26 -0
- package/es/components/LlmTitle/index.scss +20 -0
- package/es/components/LlmTrace/index.d.ts +17 -0
- package/es/components/LlmTrace/index.js +119 -0
- package/es/components/LlmTrace/index.scss +79 -0
- package/es/components/LlmTraceComponents/Disassemble/index.d.ts +24 -0
- package/es/components/LlmTraceComponents/Disassemble/index.js +89 -0
- package/es/components/LlmTraceComponents/Disassemble/index.scss +19 -0
- package/es/components/LlmTraceComponents/ReadResource/index.d.ts +24 -0
- package/es/components/LlmTraceComponents/ReadResource/index.js +19 -0
- package/es/components/LlmTraceComponents/ReadResource/index.scss +5 -0
- package/es/components/LlmTraceComponents/Rewrite/index.d.ts +23 -0
- package/es/components/LlmTraceComponents/Rewrite/index.js +49 -0
- package/es/components/LlmTraceComponents/Rewrite/index.scss +13 -0
- package/es/components/LlmTraceComponents/TraceMarkDown/index.d.ts +22 -0
- package/es/components/LlmTraceComponents/TraceMarkDown/index.js +44 -0
- package/es/components/LlmTraceComponents/TraceMarkDown/index.scss +18 -0
- package/es/components/LlmTraceComponents/const.d.ts +25 -0
- package/es/components/LlmTraceComponents/const.js +23 -0
- package/es/components/LlmTraceV2/index.d.ts +56 -0
- package/es/components/LlmTraceV2/index.js +384 -0
- package/es/components/LlmTraceV2/index.scss +115 -0
- package/es/components/LlmTraceV3/components/TraceContentComponents/BusinessFlow/index.d.ts +13 -0
- package/es/components/LlmTraceV3/components/TraceContentComponents/BusinessFlow/index.js +38 -0
- package/es/components/LlmTraceV3/components/TraceContentComponents/BusinessFlow/index.scss +56 -0
- package/es/components/LlmTraceV3/components/TraceContentComponents/CodeBlock/index.d.ts +18 -0
- package/es/components/LlmTraceV3/components/TraceContentComponents/CodeBlock/index.js +82 -0
- package/es/components/LlmTraceV3/components/TraceContentComponents/CodeBlock/index.scss +36 -0
- package/es/components/LlmTraceV3/components/TraceContentComponents/DeepThinking/index.d.ts +13 -0
- package/es/components/LlmTraceV3/components/TraceContentComponents/DeepThinking/index.js +26 -0
- package/es/components/LlmTraceV3/components/TraceContentComponents/DeepThinking/index.scss +54 -0
- package/es/components/LlmTraceV3/components/TraceContentComponents/InfoMissing/index.d.ts +13 -0
- package/es/components/LlmTraceV3/components/TraceContentComponents/InfoMissing/index.js +25 -0
- package/es/components/LlmTraceV3/components/TraceContentComponents/InfoMissing/index.scss +38 -0
- package/es/components/LlmTraceV3/components/TraceContentComponents/LinkList/index.d.ts +20 -0
- package/es/components/LlmTraceV3/components/TraceContentComponents/LinkList/index.js +49 -0
- package/es/components/LlmTraceV3/components/TraceContentComponents/LinkList/index.scss +37 -0
- package/es/components/LlmTraceV3/components/TraceContentComponents/SearchResults/index.d.ts +13 -0
- package/es/components/LlmTraceV3/components/TraceContentComponents/SearchResults/index.js +93 -0
- package/es/components/LlmTraceV3/components/TraceContentComponents/SearchResults/index.scss +151 -0
- package/es/components/LlmTraceV3/components/TraceContentComponents/TaskPlanning/index.d.ts +12 -0
- package/es/components/LlmTraceV3/components/TraceContentComponents/TaskPlanning/index.js +28 -0
- package/es/components/LlmTraceV3/components/TraceContentComponents/ToolCall/index.d.ts +13 -0
- package/es/components/LlmTraceV3/components/TraceContentComponents/ToolCall/index.js +46 -0
- package/es/components/LlmTraceV3/components/TraceContentComponents/ToolCall/index.scss +70 -0
- package/es/components/LlmTraceV3/components/TraceContentComponents/ToolResult/index.d.ts +13 -0
- package/es/components/LlmTraceV3/components/TraceContentComponents/ToolResult/index.js +72 -0
- package/es/components/LlmTraceV3/components/TraceContentComponents/ToolResult/index.scss +90 -0
- package/es/components/LlmTraceV3/components/TraceContentComponents/const.d.ts +32 -0
- package/es/components/LlmTraceV3/components/TraceContentComponents/const.js +27 -0
- package/es/components/LlmTraceV3/components/TraceGroup/index.d.ts +8 -0
- package/es/components/LlmTraceV3/components/TraceGroup/index.js +81 -0
- package/es/components/LlmTraceV3/components/TraceHeader/index.d.ts +8 -0
- package/es/components/LlmTraceV3/components/TraceHeader/index.js +64 -0
- package/es/components/LlmTraceV3/components/TraceItem/index.d.ts +8 -0
- package/es/components/LlmTraceV3/components/TraceItem/index.js +126 -0
- package/es/components/LlmTraceV3/components/TraceSlide/index.d.ts +30 -0
- package/es/components/LlmTraceV3/components/TraceSlide/index.js +278 -0
- package/es/components/LlmTraceV3/components/TraceSlide/index.scss +204 -0
- package/es/components/LlmTraceV3/components/TraceStatusIcon/index.d.ts +8 -0
- package/es/components/LlmTraceV3/components/TraceStatusIcon/index.js +41 -0
- package/es/components/LlmTraceV3/hooks/useGroupCollapse.d.ts +18 -0
- package/es/components/LlmTraceV3/hooks/useGroupCollapse.js +91 -0
- package/es/components/LlmTraceV3/hooks/useItemCollapse.d.ts +18 -0
- package/es/components/LlmTraceV3/hooks/useItemCollapse.js +61 -0
- package/es/components/LlmTraceV3/hooks/useTraceAnimation.d.ts +15 -0
- package/es/components/LlmTraceV3/hooks/useTraceAnimation.js +54 -0
- package/es/components/LlmTraceV3/hooks/useTraceCollapse.d.ts +17 -0
- package/es/components/LlmTraceV3/hooks/useTraceCollapse.js +80 -0
- package/es/components/LlmTraceV3/index.d.ts +11 -0
- package/es/components/LlmTraceV3/index.js +173 -0
- package/es/components/LlmTraceV3/index.scss +333 -0
- package/es/components/LlmTraceV3/types.d.ts +263 -0
- package/es/components/LlmTraceV3/types.js +108 -0
- package/es/components/LlmTraceV3/utils/collapseLogic.d.ts +26 -0
- package/es/components/LlmTraceV3/utils/collapseLogic.js +86 -0
- package/es/components/LlmTraceV3/utils/traceHelpers.d.ts +42 -0
- package/es/components/LlmTraceV3/utils/traceHelpers.js +94 -0
- package/es/components/MarkDown/index.d.ts +11 -0
- package/es/components/MarkDown/index.js +222 -0
- package/es/components/MarkDown/index.scss +179 -0
- package/es/components/ModelSelect/ModeDropdown.d.ts +8 -0
- package/es/components/ModelSelect/ModeDropdown.js +118 -0
- package/es/components/ModelSelect/const.d.ts +30 -0
- package/es/components/ModelSelect/const.js +61 -0
- package/es/components/ModelSelect/index.d.ts +4 -0
- package/es/components/ModelSelect/index.js +45 -0
- package/es/components/ModelSelect/index.scss +121 -0
- package/es/components/PaulButtonGroup/Select.d.ts +3 -0
- package/es/components/PaulButtonGroup/Select.js +109 -0
- package/es/components/PaulButtonGroup/index.d.ts +16 -0
- package/es/components/PaulButtonGroup/index.js +209 -0
- package/es/components/PaulButtonGroup/index.scss +19 -0
- package/es/components/PopAuth/index.d.ts +4 -0
- package/es/components/PopAuth/index.js +62 -0
- package/es/components/PopAuth/index.scss +16 -0
- package/es/components/ReferenceInfoItem/index.d.ts +49 -0
- package/es/components/ReferenceInfoItem/index.js +43 -0
- package/es/components/ReferenceInfoItem/index.scss +46 -0
- package/es/components/ReferenceTag/index.d.ts +11 -0
- package/es/components/ReferenceTag/index.js +27 -0
- package/es/components/ReferenceTag/index.scss +19 -0
- package/es/components/SchemaInput/SchemaInputCore/index.d.ts +4 -0
- package/es/components/SchemaInput/SchemaInputCore/index.js +113 -0
- package/es/components/SchemaInput/SchemaInputCore/index.scss +35 -0
- package/es/components/SchemaInput/SchemaInputCore/utils.d.ts +1 -0
- package/es/components/SchemaInput/SchemaInputCore/utils.js +77 -0
- package/es/components/SchemaInput/SimpleJSONEditor/index.d.ts +4 -0
- package/es/components/SchemaInput/SimpleJSONEditor/index.js +35 -0
- package/es/components/SchemaInput/SimpleJSONEditor/index.scss +7 -0
- package/es/components/SchemaInput/index.d.ts +8 -0
- package/es/components/SchemaInput/index.js +30 -0
- package/es/components/SelectBlurry/index.d.ts +3 -0
- package/es/components/SelectBlurry/index.js +74 -0
- package/es/components/SendMessageSvgIcon/index.d.ts +3 -0
- package/es/components/SendMessageSvgIcon/index.js +70 -0
- package/es/components/ShareContent/index.d.ts +21 -0
- package/es/components/ShareContent/index.js +176 -0
- package/es/components/ShareContent/index.scss +36 -0
- package/es/components/ShareModal/index.d.ts +15 -0
- package/es/components/ShareModal/index.js +185 -0
- package/es/components/ShareModal/index.scss +199 -0
- package/es/components/ShareOperationBar/index.d.ts +4 -0
- package/es/components/ShareOperationBar/index.js +152 -0
- package/es/components/ShareOperationBar/index.scss +47 -0
- package/es/components/TextContent/index.d.ts +14 -0
- package/es/components/TextContent/index.js +37 -0
- package/es/components/TextContent/index.scss +31 -0
- package/es/components/TraceMarkdownWithCard/index.d.ts +6 -0
- package/es/components/TraceMarkdownWithCard/index.js +21 -0
- package/es/components/TraceMarkdownWithCard/index.module.less +29 -0
- package/es/components/TraceWithAgent/index.d.ts +23 -0
- package/es/components/TraceWithAgent/index.js +93 -0
- package/es/components/TraceWithAgent/index.less +74 -0
- package/es/constants/assistChatEvent.d.ts +33 -0
- package/es/constants/assistChatEvent.js +33 -0
- package/es/constants/common.d.ts +71 -0
- package/es/constants/common.js +90 -0
- package/es/constants/logTrace.d.ts +3 -0
- package/es/constants/logTrace.js +4 -0
- package/es/constants/reference.d.ts +109 -0
- package/es/constants/reference.js +111 -0
- package/es/constants/traceDataStatus.d.ts +34 -0
- package/es/constants/traceDataStatus.js +37 -0
- package/es/context/index.d.ts +13 -0
- package/es/context/index.js +785 -0
- package/es/context/utils/messages.d.ts +33 -0
- package/es/context/utils/messages.js +194 -0
- package/es/context/utils/send.d.ts +29 -0
- package/es/context/utils/send.js +187 -0
- package/es/context/utils/tool.d.ts +19 -0
- package/es/context/utils/tool.js +89 -0
- package/es/index.d.ts +37 -0
- package/es/index.js +63 -0
- package/es/index.scss +39 -0
- package/es/interface/IAgent.d.ts +12 -0
- package/es/interface/IAgent.js +1 -0
- package/es/interface/IChatBottom.d.ts +69 -0
- package/es/interface/IChatBottom.js +1 -0
- package/es/interface/IChatCard.d.ts +40 -0
- package/es/interface/IChatCard.js +1 -0
- package/es/interface/IChatContext.d.ts +59 -0
- package/es/interface/IChatContext.js +1 -0
- package/es/interface/IChatRef.d.ts +75 -0
- package/es/interface/IChatRef.js +1 -0
- package/es/interface/IGuessQuestion.d.ts +43 -0
- package/es/interface/IGuessQuestion.js +15 -0
- package/es/interface/IMessage.d.ts +17 -0
- package/es/interface/IMessage.js +1 -0
- package/es/interface/ISend.d.ts +19 -0
- package/es/interface/ISend.js +1 -0
- package/es/interface/index.d.ts +272 -0
- package/es/interface/index.js +7 -0
- package/es/utils/CSEIconTool.d.ts +8 -0
- package/es/utils/CSEIconTool.js +6 -0
- package/es/utils/apushAssistant.d.ts +73 -0
- package/es/utils/apushAssistant.js +518 -0
- package/es/utils/clientPlugin.d.ts +3 -0
- package/es/utils/clientPlugin.js +73 -0
- package/es/utils/common.d.ts +10 -0
- package/es/utils/common.js +40 -0
- package/es/utils/copyToClipboard.d.ts +2 -0
- package/es/utils/copyToClipboard.js +70 -0
- package/es/utils/formDataFormat.d.ts +3 -0
- package/es/utils/formDataFormat.js +55 -0
- package/es/utils/formatData.d.ts +14 -0
- package/es/utils/formatData.js +104 -0
- package/es/utils/log.d.ts +18 -0
- package/es/utils/log.js +37 -0
- package/es/utils/parseUrl.d.ts +9 -0
- package/es/utils/parseUrl.js +48 -0
- package/es/utils/screenshot.d.ts +45 -0
- package/es/utils/screenshot.js +650 -0
- package/es/utils/send.d.ts +10 -0
- package/es/utils/send.js +8 -0
- package/es/utils/uploadImage.d.ts +9 -0
- package/es/utils/uploadImage.js +226 -0
- package/es/utils/websocketLogger.d.ts +176 -0
- package/es/utils/websocketLogger.js +267 -0
- package/package.json +166 -0
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
"use strict";(self.webpackChunk_alife_paul_ai_assistant=self.webpackChunk_alife_paul_ai_assistant||[]).push([[7718],{97718:function(Kt,kt,C){C.d(kt,{diagram:function(){return Ut}});var K=C(99970),i=C(35096),R=C(989),vt=C(91619),bt=C(85920),wt=C(7201),X=function(){var n=(0,i.eW)(function(f,s,a,h){for(a=a||{},h=f.length;h--;a[f[h]]=s);return a},"o"),t=[6,8,10,11,12,14,16,17,20,21],e=[1,9],l=[1,10],r=[1,11],d=[1,12],c=[1,13],g=[1,16],m=[1,17],p={trace:(0,i.eW)(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:(0,i.eW)(function(s,a,h,u,y,o,W){var _=o.length-1;switch(y){case 1:return o[_-1];case 2:this.$=[];break;case 3:o[_-1].push(o[_]),this.$=o[_-1];break;case 4:case 5:this.$=o[_];break;case 6:case 7:this.$=[];break;case 8:u.getCommonDb().setDiagramTitle(o[_].substr(6)),this.$=o[_].substr(6);break;case 9:this.$=o[_].trim(),u.getCommonDb().setAccTitle(this.$);break;case 10:case 11:this.$=o[_].trim(),u.getCommonDb().setAccDescription(this.$);break;case 12:u.addSection(o[_].substr(8)),this.$=o[_].substr(8);break;case 15:u.addTask(o[_],0,""),this.$=o[_];break;case 16:u.addEvent(o[_].substr(2)),this.$=o[_];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:r,16:d,17:c,18:14,19:15,20:g,21:m},n(t,[2,7],{1:[2,1]}),n(t,[2,3]),{9:18,11:e,12:l,14:r,16:d,17:c,18:14,19:15,20:g,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:(0,i.eW)(function(s,a){if(a.recoverable)this.trace(s);else{var h=new Error(s);throw h.hash=a,h}},"parseError"),parse:(0,i.eW)(function(s){var a=this,h=[0],u=[],y=[null],o=[],W=this.table,_="",P=0,H=0,F=0,xt=2,U=1,J=o.slice.call(arguments,1),k=Object.create(this.lexer),M={yy:{}};for(var z in this.yy)Object.prototype.hasOwnProperty.call(this.yy,z)&&(M.yy[z]=this.yy[z]);k.setInput(s,M.yy),M.yy.lexer=k,M.yy.parser=this,typeof k.yylloc=="undefined"&&(k.yylloc={});var V=k.yylloc;o.push(V);var A=k.options&&k.options.ranges;typeof M.yy.parseError=="function"?this.parseError=M.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function w(S){h.length=h.length-2*S,y.length=y.length-S,o.length=o.length-S}(0,i.eW)(w,"popStack");function I(){var S;return S=u.pop()||k.lex()||U,typeof S!="number"&&(S instanceof Array&&(u=S,S=u.pop()),S=a.symbols_[S]||S),S}(0,i.eW)(I,"lex");for(var v,L,T,E,Zt,et,j={},Q,N,_t,Y;;){if(T=h[h.length-1],this.defaultActions[T]?E=this.defaultActions[T]:((v===null||typeof v=="undefined")&&(v=I()),E=W[T]&&W[T][v]),typeof E=="undefined"||!E.length||!E[0]){var nt="";Y=[];for(Q in W[T])this.terminals_[Q]&&Q>xt&&Y.push("'"+this.terminals_[Q]+"'");k.showPosition?nt="Parse error on line "+(P+1)+`:
|
|
2
|
+
`+k.showPosition()+`
|
|
3
|
+
Expecting `+Y.join(", ")+", got '"+(this.terminals_[v]||v)+"'":nt="Parse error on line "+(P+1)+": Unexpected "+(v==U?"end of input":"'"+(this.terminals_[v]||v)+"'"),this.parseError(nt,{text:k.match,token:this.terminals_[v]||v,line:k.yylineno,loc:V,expected:Y})}if(E[0]instanceof Array&&E.length>1)throw new Error("Parse Error: multiple actions possible at state: "+T+", token: "+v);switch(E[0]){case 1:h.push(v),y.push(k.yytext),o.push(k.yylloc),h.push(E[1]),v=null,L?(v=L,L=null):(H=k.yyleng,_=k.yytext,P=k.yylineno,V=k.yylloc,F>0&&F--);break;case 2:if(N=this.productions_[E[1]][1],j.$=y[y.length-N],j._$={first_line:o[o.length-(N||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(N||1)].first_column,last_column:o[o.length-1].last_column},A&&(j._$.range=[o[o.length-(N||1)].range[0],o[o.length-1].range[1]]),et=this.performAction.apply(j,[_,H,P,M.yy,E[1],y,o].concat(J)),typeof et!="undefined")return et;N&&(h=h.slice(0,-1*N*2),y=y.slice(0,-1*N),o=o.slice(0,-1*N)),h.push(this.productions_[E[1]][0]),y.push(j.$),o.push(j._$),_t=W[h[h.length-2]][h[h.length-1]],h.push(_t);break;case 3:return!0}}return!0},"parse")},x=function(){var f={EOF:1,parseError:(0,i.eW)(function(a,h){if(this.yy.parser)this.yy.parser.parseError(a,h);else throw new Error(a)},"parseError"),setInput:(0,i.eW)(function(s,a){return this.yy=a||this.yy||{},this._input=s,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:(0,i.eW)(function(){var s=this._input[0];this.yytext+=s,this.yyleng++,this.offset++,this.match+=s,this.matched+=s;var a=s.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),s},"input"),unput:(0,i.eW)(function(s){var a=s.length,h=s.split(/(?:\r\n?|\n)/g);this._input=s+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),h.length-1&&(this.yylineno-=h.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:h?(h.length===u.length?this.yylloc.first_column:0)+u[u.length-h.length].length-h[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:(0,i.eW)(function(){return this._more=!0,this},"more"),reject:(0,i.eW)(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:(0,i.eW)(function(s){this.unput(this.match.slice(s))},"less"),pastInput:(0,i.eW)(function(){var s=this.matched.substr(0,this.matched.length-this.match.length);return(s.length>20?"...":"")+s.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:(0,i.eW)(function(){var s=this.match;return s.length<20&&(s+=this._input.substr(0,20-s.length)),(s.substr(0,20)+(s.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:(0,i.eW)(function(){var s=this.pastInput(),a=new Array(s.length+1).join("-");return s+this.upcomingInput()+`
|
|
5
|
+
`+a+"^"},"showPosition"),test_match:(0,i.eW)(function(s,a){var h,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=s[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+s[0].length},this.yytext+=s[0],this.match+=s[0],this.matches=s,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(s[0].length),this.matched+=s[0],h=this.performAction.call(this,this.yy,this,a,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),h)return h;if(this._backtrack){for(var o in y)this[o]=y[o];return!1}return!1},"test_match"),next:(0,i.eW)(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var s,a,h,u;this._more||(this.yytext="",this.match="");for(var y=this._currentRules(),o=0;o<y.length;o++)if(h=this._input.match(this.rules[y[o]]),h&&(!a||h[0].length>a[0].length)){if(a=h,u=o,this.options.backtrack_lexer){if(s=this.test_match(h,y[o]),s!==!1)return s;if(this._backtrack){a=!1;continue}else return!1}else if(!this.options.flex)break}return a?(s=this.test_match(a,y[u]),s!==!1?s:!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:(0,i.eW)(function(){var a=this.next();return a||this.lex()},"lex"),begin:(0,i.eW)(function(a){this.conditionStack.push(a)},"begin"),popState:(0,i.eW)(function(){var a=this.conditionStack.length-1;return a>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:(0,i.eW)(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:(0,i.eW)(function(a){return a=this.conditionStack.length-1-Math.abs(a||0),a>=0?this.conditionStack[a]:"INITIAL"},"topState"),pushState:(0,i.eW)(function(a){this.begin(a)},"pushState"),stateStackSize:(0,i.eW)(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:(0,i.eW)(function(a,h,u,y){var o=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;break;case 8:return this.popState(),"acc_title_value";break;case 9:return this.begin("acc_descr"),14;break;case 10:return this.popState(),"acc_descr_value";break;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 f}();p.lexer=x;function b(){this.yy={}}return(0,i.eW)(b,"Parser"),b.prototype=p,p.Parser=b,new b}();X.parser=X;var Wt=X,rt={};(0,i.r2)(rt,{addEvent:()=>dt,addSection:()=>lt,addTask:()=>ht,addTaskOrg:()=>ut,clear:()=>at,default:()=>Et,getCommonDb:()=>st,getSections:()=>ot,getTasks:()=>ct});var O="",it=0,q=[],Z=[],B=[],st=(0,i.eW)(()=>K.LJ,"getCommonDb"),at=(0,i.eW)(function(){q.length=0,Z.length=0,O="",B.length=0,(0,K.ZH)()},"clear"),lt=(0,i.eW)(function(n){O=n,q.push(n)},"addSection"),ot=(0,i.eW)(function(){return q},"getSections"),ct=(0,i.eW)(function(){let n=pt();const t=100;let e=0;for(;!n&&e<t;)n=pt(),e++;return Z.push(...B),Z},"getTasks"),ht=(0,i.eW)(function(n,t,e){const l={id:it++,section:O,type:O,task:n,score:t||0,events:e?[e]:[]};B.push(l)},"addTask"),dt=(0,i.eW)(function(n){B.find(e=>e.id===it-1).events.push(n)},"addEvent"),ut=(0,i.eW)(function(n){const t={section:O,type:O,description:n,task:n,classes:[]};Z.push(t)},"addTaskOrg"),pt=(0,i.eW)(function(){const n=(0,i.eW)(function(e){return B[e].processed},"compileTask");let t=!0;for(const[e,l]of B.entries())n(e),t=t&&l.processed;return t},"compileTasks"),Et={clear:at,getCommonDb:st,addSection:lt,getSections:ot,getTasks:ct,addTask:ht,addTaskOrg:ut,addEvent:dt},St=12,G=(0,i.eW)(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"),Tt=(0,i.eW)(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"),r=n.append("g");r.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"),r.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=(0,R.Nb1)().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)+")")}(0,i.eW)(d,"smile");function c(m){const p=(0,R.Nb1)().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)+")")}(0,i.eW)(c,"sad");function g(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(0,i.eW)(g,"ambivalent"),t.score>3?d(r):t.score<3?c(r):g(r),l},"drawFace"),Mt=(0,i.eW)(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"),yt=(0,i.eW)(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 r=l.append("tspan");return r.attr("x",t.x+t.textMargin*2),r.text(e),l},"drawText"),It=(0,i.eW)(function(n,t){function e(r,d,c,g,m){return r+","+d+" "+(r+c)+","+d+" "+(r+c)+","+(d+g-m)+" "+(r+c-m*1.2)+","+(d+g)+" "+r+","+(d+g)}(0,i.eW)(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,yt(n,t)},"drawLabel"),Pt=(0,i.eW)(function(n,t,e){const l=n.append("g"),r=D();r.x=t.x,r.y=t.y,r.fill=t.fill,r.width=e.width,r.height=e.height,r.class="journey-section section-type-"+t.num,r.rx=3,r.ry=3,G(l,r),ft(e)(t.text,l,r.x,r.y,r.width,r.height,{class:"journey-section section-type-"+t.num},e,t.colour)},"drawSection"),gt=-1,Lt=(0,i.eW)(function(n,t,e){const l=t.x+e.width/2,r=n.append("g");gt++;const d=300+5*30;r.append("line").attr("id","task"+gt).attr("x1",l).attr("y1",t.y).attr("x2",l).attr("y2",d).attr("class","task-line").attr("stroke-width","1px").attr("stroke-dasharray","4 2").attr("stroke","#666"),Tt(r,{cx:l,cy:300+(5-t.score)*30,score:t.score});const c=D();c.x=t.x,c.y=t.y,c.fill=t.fill,c.width=e.width,c.height=e.height,c.class="task task-type-"+t.num,c.rx=3,c.ry=3,G(r,c),ft(e)(t.task,r,c.x,c.y,c.width,c.height,{class:"task"},e,t.colour)},"drawTask"),Nt=(0,i.eW)(function(n,t){G(n,{x:t.startx,y:t.starty,width:t.stopx-t.startx,height:t.stopy-t.starty,fill:t.fill,class:"rect"}).lower()},"drawBackgroundRect"),At=(0,i.eW)(function(){return{x:0,y:0,fill:void 0,"text-anchor":"start",width:100,height:100,textMargin:0,rx:0,ry:0}},"getTextObj"),D=(0,i.eW)(function(){return{x:0,y:0,width:100,anchor:"start",height:100,rx:0,ry:0}},"getNoteRect"),ft=function(){function n(r,d,c,g,m,p,x,b){const f=d.append("text").attr("x",c+m/2).attr("y",g+p/2+5).style("font-color",b).style("text-anchor","middle").text(r);l(f,x)}(0,i.eW)(n,"byText");function t(r,d,c,g,m,p,x,b,f){const{taskFontSize:s,taskFontFamily:a}=b,h=r.split(/<br\s*\/?>/gi);for(let u=0;u<h.length;u++){const y=u*s-s*(h.length-1)/2,o=d.append("text").attr("x",c+m/2).attr("y",g).attr("fill",f).style("text-anchor","middle").style("font-size",s).style("font-family",a);o.append("tspan").attr("x",c+m/2).attr("dy",y).text(h[u]),o.attr("y",g+p/2).attr("dominant-baseline","central").attr("alignment-baseline","central"),l(o,x)}}(0,i.eW)(t,"byTspan");function e(r,d,c,g,m,p,x,b){const f=d.append("switch"),a=f.append("foreignObject").attr("x",c).attr("y",g).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(r),t(r,f,c,g,m,p,x,b),l(a,x)}(0,i.eW)(e,"byFo");function l(r,d){for(const c in d)c in d&&r.attr(c,d[c])}return(0,i.eW)(l,"_setTextAttrs"),function(r){return r.textPlacement==="fo"?e:r.textPlacement==="old"?n:t}}(),Ct=(0,i.eW)(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 tt(n,t){n.each(function(){var e=(0,R.Ys)(this),l=e.text().split(/(\s+|<br>)/).reverse(),r,d=[],c=1.1,g=e.attr("y"),m=parseFloat(e.attr("dy")),p=e.text(null).append("tspan").attr("x",0).attr("y",g).attr("dy",m+"em");for(let x=0;x<l.length;x++)r=l[l.length-1-x],d.push(r),p.text(d.join(" ").trim()),(p.node().getComputedTextLength()>t||r==="<br>")&&(d.pop(),p.text(d.join(" ").trim()),r==="<br>"?d=[""]:d=[r],p=e.append("tspan").attr("x",0).attr("y",g).attr("dy",c+"em").text(r))})}(0,i.eW)(tt,"wrap");var $t=(0,i.eW)(function(n,t,e,l){var b;const r=e%St-1,d=n.append("g");t.section=r,d.attr("class",(t.class?t.class+" ":"")+"timeline-node "+("section-"+r));const c=d.append("g"),g=d.append("g"),p=g.append("text").text(t.descr).attr("dy","1em").attr("alignment-baseline","middle").attr("dominant-baseline","middle").attr("text-anchor","middle").call(tt,t.width).node().getBBox(),x=(b=l.fontSize)!=null&&b.replace?l.fontSize.replace("px",""):l.fontSize;return t.height=p.height+x*1.1*.5+t.padding,t.height=Math.max(t.height,t.maxHeight),t.width=t.width+2*t.padding,g.attr("transform","translate("+t.width/2+", "+t.padding/2+")"),Rt(c,t,r,l),t},"drawNode"),Ht=(0,i.eW)(function(n,t,e){var g;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(tt,t.width).node().getBBox(),c=(g=e.fontSize)!=null&&g.replace?e.fontSize.replace("px",""):e.fontSize;return l.remove(),d.height+c*1.1*.5+t.padding},"getVirtualNodeHeight"),Rt=(0,i.eW)(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+2*5} q0,-5 5,-5 h${t.width-2*5} 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"),$={drawRect:G,drawCircle:Mt,drawSection:Pt,drawText:yt,drawLabel:It,drawTask:Lt,drawBackgroundRect:Nt,getTextObj:At,getNoteRect:D,initGraphics:Ct,drawNode:$t,getVirtualNodeHeight:Ht},Ot=(0,i.eW)(function(n,t,e,l){var U,J,k,M,z,V;const r=(0,K.nV)(),d=(J=(U=r.timeline)==null?void 0:U.leftMargin)!=null?J:50;i.cM.debug("timeline",l.db);const c=r.securityLevel;let g;c==="sandbox"&&(g=(0,R.Ys)("#i"+t));const p=(c==="sandbox"?(0,R.Ys)(g.nodes()[0].contentDocument.body):(0,R.Ys)("body")).select("#"+t);p.append("g");const x=l.db.getTasks(),b=l.db.getCommonDb().getDiagramTitle();i.cM.debug("task",x),$.initGraphics(p);const f=l.db.getSections();i.cM.debug("sections",f);let s=0,a=0,h=0,u=0,y=50+d,o=50;u=50;let W=0,_=!0;f.forEach(function(A){const w={number:W,descr:A,section:W,width:150,padding:20,maxHeight:s},I=$.getVirtualNodeHeight(p,w,r);i.cM.debug("sectionHeight before draw",I),s=Math.max(s,I+20)});let P=0,H=0;i.cM.debug("tasks.length",x.length);for(const[A,w]of x.entries()){const I={number:A,descr:w,section:w.section,width:150,padding:20,maxHeight:a},v=$.getVirtualNodeHeight(p,I,r);i.cM.debug("taskHeight before draw",v),a=Math.max(a,v+20),P=Math.max(P,w.events.length);let L=0;for(const T of w.events){const E={descr:T,section:w.section,number:w.section,width:150,padding:20,maxHeight:50};L+=$.getVirtualNodeHeight(p,E,r)}w.events.length>0&&(L+=(w.events.length-1)*10),H=Math.max(H,L)}i.cM.debug("maxSectionHeight before draw",s),i.cM.debug("maxTaskHeight before draw",a),f&&f.length>0?f.forEach(A=>{const w=x.filter(T=>T.section===A),I={number:W,descr:A,section:W,width:200*Math.max(w.length,1)-50,padding:20,maxHeight:s};i.cM.debug("sectionNode",I);const v=p.append("g"),L=$.drawNode(v,I,W,r);i.cM.debug("sectionNode output",L),v.attr("transform",`translate(${y}, ${u})`),o+=s+50,w.length>0&&mt(p,w,W,y,o,a,r,P,H,s,!1),y+=200*Math.max(w.length,1),o=u,W++}):(_=!1,mt(p,x,W,y,o,a,r,P,H,s,!0));const F=p.node().getBBox();i.cM.debug("bounds",F),b&&p.append("text").text(b).attr("x",F.width/2-d).attr("font-size","4ex").attr("font-weight","bold").attr("y",20),h=_?s+a+150:a+100,p.append("g").attr("class","lineWrapper").append("line").attr("x1",d).attr("y1",h).attr("x2",F.width+3*d).attr("y2",h).attr("stroke-width",4).attr("stroke","black").attr("marker-end","url(#arrowhead)"),(0,K.j7)(void 0,p,(M=(k=r.timeline)==null?void 0:k.padding)!=null?M:50,(V=(z=r.timeline)==null?void 0:z.useMaxWidth)!=null?V:!1)},"draw"),mt=(0,i.eW)(function(n,t,e,l,r,d,c,g,m,p,x){var b;for(const f of t){const s={descr:f.task,section:e,number:e,width:150,padding:20,maxHeight:d};i.cM.debug("taskNode",s);const a=n.append("g").attr("class","taskWrapper"),u=$.drawNode(a,s,e,c).height;if(i.cM.debug("taskHeight after draw",u),a.attr("transform",`translate(${l}, ${r})`),d=Math.max(d,u),f.events){const y=n.append("g").attr("class","lineWrapper");let o=d;r+=100,o=o+Bt(n,f.events,e,l,r,c),r-=100,y.append("line").attr("x1",l+190/2).attr("y1",r+d).attr("x2",l+190/2).attr("y2",r+d+100+m+100).attr("stroke-width",2).attr("stroke","black").attr("marker-end","url(#arrowhead)").attr("stroke-dasharray","5,5")}l=l+200,x&&!((b=c.timeline)!=null&&b.disableMulticolor)&&e++}r=r-10},"drawTasks"),Bt=(0,i.eW)(function(n,t,e,l,r,d){let c=0;const g=r;r=r+100;for(const m of t){const p={descr:m,section:e,number:e,width:150,padding:20,maxHeight:50};i.cM.debug("eventNode",p);const x=n.append("g").attr("class","eventWrapper"),f=$.drawNode(x,p,e,d).height;c=c+f,x.attr("transform",`translate(${l}, ${r})`),r=r+10+f}return r=g,c},"drawEvents"),Ft={setConf:(0,i.eW)(()=>{},"setConf"),draw:Ot},zt=(0,i.eW)(n=>{let t="";for(let e=0;e<n.THEME_COLOR_LIMIT;e++)n["lineColor"+e]=n["lineColor"+e]||n["cScaleInv"+e],(0,vt.Z)(n["lineColor"+e])?n["lineColor"+e]=(0,bt.Z)(n["lineColor"+e],20):n["lineColor"+e]=(0,wt.Z)(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"),Vt=(0,i.eW)(n=>`
|
|
39
|
+
.edge {
|
|
40
|
+
stroke-width: 3;
|
|
41
|
+
}
|
|
42
|
+
${zt(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"),jt=Vt,Ut={db:rt,renderer:Ft,parser:Wt,styles:jt}}}]);
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
"use strict";(self.webpackChunk_alife_paul_ai_assistant=self.webpackChunk_alife_paul_ai_assistant||[]).push([[7762],{27418:function(W){var Z=Object.getOwnPropertySymbols,L=Object.prototype.hasOwnProperty,C=Object.prototype.propertyIsEnumerable;function D(p){if(p==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(p)}function a(){try{if(!Object.assign)return!1;var p=new String("abc");if(p[5]="de",Object.getOwnPropertyNames(p)[0]==="5")return!1;for(var j={},w=0;w<10;w++)j["_"+String.fromCharCode(w)]=w;var N=Object.getOwnPropertyNames(j).map(function(b){return j[b]});if(N.join("")!=="0123456789")return!1;var F={};return"abcdefghijklmnopqrst".split("").forEach(function(b){F[b]=b}),Object.keys(Object.assign({},F)).join("")==="abcdefghijklmnopqrst"}catch(b){return!1}}W.exports=a()?Object.assign:function(p,j){for(var w,N=D(p),F,b=1;b<arguments.length;b++){w=Object(arguments[b]);for(var T in w)L.call(w,T)&&(N[T]=w[T]);if(Z){F=Z(w);for(var z=0;z<F.length;z++)C.call(w,F[z])&&(N[F[z]]=w[F[z]])}}return N}},38698:function(W,Z,L){var C=L(27418),D=L(1024);function a(e){for(var r="https://reactjs.org/docs/error-decoder.html?invariant="+e,t=1;t<arguments.length;t++)r+="&args[]="+encodeURIComponent(arguments[t]);return"Minified React error #"+e+"; visit "+r+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var p=typeof Symbol=="function"&&Symbol.for,j=p?Symbol.for("react.portal"):60106,w=p?Symbol.for("react.fragment"):60107,N=p?Symbol.for("react.strict_mode"):60108,F=p?Symbol.for("react.profiler"):60114,b=p?Symbol.for("react.provider"):60109,T=p?Symbol.for("react.context"):60110,z=p?Symbol.for("react.concurrent_mode"):60111,ue=p?Symbol.for("react.forward_ref"):60112,Q=p?Symbol.for("react.suspense"):60113,se=p?Symbol.for("react.suspense_list"):60120,ae=p?Symbol.for("react.memo"):60115,ce=p?Symbol.for("react.lazy"):60116,_e=p?Symbol.for("react.block"):60121,De=p?Symbol.for("react.fundamental"):60117,Fe=p?Symbol.for("react.scope"):60119;function Ie(e){if(e._status===-1){e._status=0;var r=e._ctor;r=r(),e._result=r,r.then(function(t){e._status===0&&(t=t.default,e._status=1,e._result=t)},function(t){e._status===0&&(e._status=2,e._result=t)})}}function U(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case w:return"Fragment";case j:return"Portal";case F:return"Profiler";case N:return"StrictMode";case Q:return"Suspense";case se:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case T:return"Context.Consumer";case b:return"Context.Provider";case ue:var r=e.render;return r=r.displayName||r.name||"",e.displayName||(r!==""?"ForwardRef("+r+")":"ForwardRef");case ae:return U(e.type);case _e:return U(e.render);case ce:if(e=e._status===1?e._result:null)return U(e)}return null}var $=D.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;$.hasOwnProperty("ReactCurrentDispatcher")||($.ReactCurrentDispatcher={current:null}),$.hasOwnProperty("ReactCurrentBatchConfig")||($.ReactCurrentBatchConfig={suspense:null});var fe={};function q(e,r){for(var t=e._threadCount|0;t<=r;t++)e[t]=e._currentValue2,e._threadCount=t+1}function Ne(e,r,t,n){if(n&&(n=e.contextType,typeof n=="object"&&n!==null))return q(n,t),n[t];if(e=e.contextTypes){t={};for(var l in e)t[l]=r[l];r=t}else r=fe;return r}for(var x=new Uint16Array(16),X=0;15>X;X++)x[X]=X+1;x[15]=0;var Pe=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,pe=Object.prototype.hasOwnProperty,he={},de={};function me(e){return pe.call(de,e)?!0:pe.call(he,e)?!1:Pe.test(e)?de[e]=!0:(he[e]=!0,!1)}function Me(e,r,t,n){if(t!==null&&t.type===0)return!1;switch(typeof r){case"function":case"symbol":return!0;case"boolean":return n?!1:t!==null?!t.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function je(e,r,t,n){if(r===null||typeof r=="undefined"||Me(e,r,t,n))return!0;if(n)return!1;if(t!==null)switch(t.type){case 3:return!r;case 4:return r===!1;case 5:return isNaN(r);case 6:return isNaN(r)||1>r}return!1}function g(e,r,t,n,l,i){this.acceptsBooleans=r===2||r===3||r===4,this.attributeName=n,this.attributeNamespace=l,this.mustUseProperty=t,this.propertyName=e,this.type=r,this.sanitizeURL=i}var m={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){m[e]=new g(e,0,!1,e,null,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var r=e[0];m[r]=new g(r,1,!1,e[1],null,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){m[e]=new g(e,2,!1,e.toLowerCase(),null,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){m[e]=new g(e,2,!1,e,null,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){m[e]=new g(e,3,!1,e.toLowerCase(),null,!1)}),["checked","multiple","muted","selected"].forEach(function(e){m[e]=new g(e,3,!0,e,null,!1)}),["capture","download"].forEach(function(e){m[e]=new g(e,4,!1,e,null,!1)}),["cols","rows","size","span"].forEach(function(e){m[e]=new g(e,6,!1,e,null,!1)}),["rowSpan","start"].forEach(function(e){m[e]=new g(e,5,!1,e.toLowerCase(),null,!1)});var G=/[\-:]([a-z])/g;function ee(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var r=e.replace(G,ee);m[r]=new g(r,1,!1,e,null,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var r=e.replace(G,ee);m[r]=new g(r,1,!1,e,"http://www.w3.org/1999/xlink",!1)}),["xml:base","xml:lang","xml:space"].forEach(function(e){var r=e.replace(G,ee);m[r]=new g(r,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1)}),["tabIndex","crossOrigin"].forEach(function(e){m[e]=new g(e,1,!1,e.toLowerCase(),null,!1)}),m.xlinkHref=new g("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0),["src","href","action","formAction"].forEach(function(e){m[e]=new g(e,1,!1,e.toLowerCase(),null,!0)});var ze=/["'&<>]/;function R(e){if(typeof e=="boolean"||typeof e=="number")return""+e;e=""+e;var r=ze.exec(e);if(r){var t="",n,l=0;for(n=r.index;n<e.length;n++){switch(e.charCodeAt(n)){case 34:r=""";break;case 38:r="&";break;case 39:r="'";break;case 60:r="<";break;case 62:r=">";break;default:continue}l!==n&&(t+=e.substring(l,n)),l=n+1,t+=r}e=l!==n?t+e.substring(l,n):t}return e}function Re(e,r){var t=m.hasOwnProperty(e)?m[e]:null,n;return(n=e!=="style")&&(n=t!==null?t.type===0:!(!(2<e.length)||e[0]!=="o"&&e[0]!=="O"||e[1]!=="n"&&e[1]!=="N")),n||je(e,r,t,!1)?"":t!==null?(e=t.attributeName,n=t.type,n===3||n===4&&r===!0?e+'=""':(t.sanitizeURL&&(r=""+r),e+'="'+(R(r)+'"'))):me(e)?e+'="'+(R(r)+'"'):""}function Le(e,r){return e===r&&(e!==0||1/e===1/r)||e!==e&&r!==r}var Te=typeof Object.is=="function"?Object.is:Le,I=null,Y=null,c=null,A=!1,te=!1,P=null,J=0;function V(){if(I===null)throw Error(a(321));return I}function ye(){if(0<J)throw Error(a(312));return{memoizedState:null,queue:null,next:null}}function re(){return c===null?Y===null?(A=!1,Y=c=ye()):(A=!0,c=Y):c.next===null?(A=!1,c=c.next=ye()):(A=!0,c=c.next),c}function ve(e,r,t,n){for(;te;)te=!1,J+=1,c=null,t=e(r,n);return Y=I=null,J=0,c=P=null,t}function we(e,r){return typeof r=="function"?r(e):r}function xe(e,r,t){if(I=V(),c=re(),A){var n=c.queue;if(r=n.dispatch,P!==null&&(t=P.get(n),t!==void 0)){P.delete(n),n=c.memoizedState;do n=e(n,t.action),t=t.next;while(t!==null);return c.memoizedState=n,[n,r]}return[c.memoizedState,r]}return e=e===we?typeof r=="function"?r():r:t!==void 0?t(r):r,c.memoizedState=e,e=c.queue={last:null,dispatch:null},e=e.dispatch=Ve.bind(null,I,e),[c.memoizedState,e]}function Ve(e,r,t){if(!(25>J))throw Error(a(301));if(e===I)if(te=!0,e={action:t,next:null},P===null&&(P=new Map),t=P.get(r),t===void 0)P.set(r,e);else{for(r=t;r.next!==null;)r=r.next;r.next=e}}function ne(){}var H=0,We={readContext:function(e){var r=H;return q(e,r),e[r]},useContext:function(e){V();var r=H;return q(e,r),e[r]},useMemo:function(e,r){if(I=V(),c=re(),r=r===void 0?null:r,c!==null){var t=c.memoizedState;if(t!==null&&r!==null){e:{var n=t[1];if(n===null)n=!1;else{for(var l=0;l<n.length&&l<r.length;l++)if(!Te(r[l],n[l])){n=!1;break e}n=!0}}if(n)return t[0]}}return e=e(),c.memoizedState=[e,r],e},useReducer:xe,useRef:function(e){I=V(),c=re();var r=c.memoizedState;return r===null?(e={current:e},c.memoizedState=e):r},useState:function(e){return xe(we,e)},useLayoutEffect:function(){},useCallback:function(e){return e},useImperativeHandle:ne,useEffect:ne,useDebugValue:ne,useResponder:function(e,r){return{props:r,responder:e}},useDeferredValue:function(e){return V(),e},useTransition:function(){return V(),[function(e){e()},!1]}},ge={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg"};function ke(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}var Se={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0},Ue=C({menuitem:!0},Se),B={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},$e=["Webkit","ms","Moz","O"];Object.keys(B).forEach(function(e){$e.forEach(function(r){r=r+e.charAt(0).toUpperCase()+e.substring(1),B[r]=B[e]})});var qe=/([A-Z])/g,Ae=/^ms-/,M=D.Children.toArray,oe=$.ReactCurrentDispatcher,He={listing:!0,pre:!0,textarea:!0},Be=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,Ee={},ie={};function Ze(e){if(e==null)return e;var r="";return D.Children.forEach(e,function(t){t!=null&&(r+=t)}),r}var Xe=Object.prototype.hasOwnProperty,Ye={children:null,dangerouslySetInnerHTML:null,suppressContentEditableWarning:null,suppressHydrationWarning:null};function Ce(e,r){if(e===void 0)throw Error(a(152,U(r)||"Component"))}function Je(e,r,t){function n(u,s){var o=s.prototype&&s.prototype.isReactComponent,O=Ne(s,r,t,o),y=[],f=!1,h={isMounted:function(){return!1},enqueueForceUpdate:function(){if(y===null)return null},enqueueReplaceState:function(E,le){f=!0,y=[le]},enqueueSetState:function(E,le){if(y===null)return null;y.push(le)}};if(o){if(o=new s(u.props,O,h),typeof s.getDerivedStateFromProps=="function"){var k=s.getDerivedStateFromProps.call(null,u.props,o.state);k!=null&&(o.state=C({},o.state,k))}}else if(I={},o=s(u.props,O,h),o=ve(s,u.props,o,O),o==null||o.render==null){e=o,Ce(e,s);return}if(o.props=u.props,o.context=O,o.updater=h,h=o.state,h===void 0&&(o.state=h=null),typeof o.UNSAFE_componentWillMount=="function"||typeof o.componentWillMount=="function")if(typeof o.componentWillMount=="function"&&typeof s.getDerivedStateFromProps!="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&typeof s.getDerivedStateFromProps!="function"&&o.UNSAFE_componentWillMount(),y.length){h=y;var v=f;if(y=null,f=!1,v&&h.length===1)o.state=h[0];else{k=v?h[0]:o.state;var S=!0;for(v=v?1:0;v<h.length;v++){var d=h[v];d=typeof d=="function"?d.call(o,k,u.props,O):d,d!=null&&(S?(S=!1,k=C({},k,d)):C(k,d))}o.state=k}}else y=null;if(e=o.render(),Ce(e,s),typeof o.getChildContext=="function"&&(u=s.childContextTypes,typeof u=="object")){var _=o.getChildContext();for(var K in _)if(!(K in u))throw Error(a(108,U(s)||"Unknown",K))}_&&(r=C({},r,_))}for(;D.isValidElement(e);){var l=e,i=l.type;if(typeof i!="function")break;n(l,i)}return{child:e,context:r}}var be=function(){function e(t,n){D.isValidElement(t)?t.type!==w?t=[t]:(t=t.props.children,t=D.isValidElement(t)?[t]:M(t)):t=M(t),t={type:null,domNamespace:ge.html,children:t,childIndex:0,context:fe,footer:""};var l=x[0];if(l===0){var i=x;l=i.length;var u=2*l;if(!(65536>=u))throw Error(a(304));var s=new Uint16Array(u);for(s.set(i),x=s,x[0]=l+1,i=l;i<u-1;i++)x[i]=i+1;x[u-1]=0}else x[0]=x[l];this.threadID=l,this.stack=[t],this.exhausted=!1,this.currentSelectValue=null,this.previousWasTextNode=!1,this.makeStaticMarkup=n,this.suspenseDepth=0,this.contextIndex=-1,this.contextStack=[],this.contextValueStack=[]}var r=e.prototype;return r.destroy=function(){if(!this.exhausted){this.exhausted=!0,this.clearProviders();var t=this.threadID;x[t]=x[0],x[0]=t}},r.pushProvider=function(t){var n=++this.contextIndex,l=t.type._context,i=this.threadID;q(l,i);var u=l[i];this.contextStack[n]=l,this.contextValueStack[n]=u,l[i]=t.props.value},r.popProvider=function(){var t=this.contextIndex,n=this.contextStack[t],l=this.contextValueStack[t];this.contextStack[t]=null,this.contextValueStack[t]=null,this.contextIndex--,n[this.threadID]=l},r.clearProviders=function(){for(var t=this.contextIndex;0<=t;t--)this.contextStack[t][this.threadID]=this.contextValueStack[t]},r.read=function(t){if(this.exhausted)return null;var n=H;H=this.threadID;var l=oe.current;oe.current=We;try{for(var i=[""],u=!1;i[0].length<t;){if(this.stack.length===0){this.exhausted=!0;var s=this.threadID;x[s]=x[0],x[0]=s;break}var o=this.stack[this.stack.length-1];if(u||o.childIndex>=o.children.length){var O=o.footer;if(O!==""&&(this.previousWasTextNode=!1),this.stack.pop(),o.type==="select")this.currentSelectValue=null;else if(o.type!=null&&o.type.type!=null&&o.type.type.$$typeof===b)this.popProvider(o.type);else if(o.type===Q){this.suspenseDepth--;var y=i.pop();if(u){u=!1;var f=o.fallbackFrame;if(!f)throw Error(a(303));this.stack.push(f),i[this.suspenseDepth]+="<!--$!-->";continue}else i[this.suspenseDepth]+=y}i[this.suspenseDepth]+=O}else{var h=o.children[o.childIndex++],k="";try{k+=this.render(h,o.context,o.domNamespace)}catch(v){throw v!=null&&typeof v.then=="function"?Error(a(294)):v}finally{}i.length<=this.suspenseDepth&&i.push(""),i[this.suspenseDepth]+=k}}return i[0]}finally{oe.current=l,H=n}},r.render=function(t,n,l){if(typeof t=="string"||typeof t=="number")return l=""+t,l===""?"":this.makeStaticMarkup?R(l):this.previousWasTextNode?"<!-- -->"+R(l):(this.previousWasTextNode=!0,R(l));if(n=Je(t,n,this.threadID),t=n.child,n=n.context,t===null||t===!1)return"";if(!D.isValidElement(t)){if(t!=null&&t.$$typeof!=null)throw l=t.$$typeof,Error(l===j?a(257):a(258,l.toString()));return t=M(t),this.stack.push({type:null,domNamespace:l,children:t,childIndex:0,context:n,footer:""}),""}var i=t.type;if(typeof i=="string")return this.renderDOM(t,n,l);switch(i){case N:case z:case F:case se:case w:return t=M(t.props.children),this.stack.push({type:null,domNamespace:l,children:t,childIndex:0,context:n,footer:""}),"";case Q:throw Error(a(294))}if(typeof i=="object"&&i!==null)switch(i.$$typeof){case ue:I={};var u=i.render(t.props,t.ref);return u=ve(i.render,t.props,u,t.ref),u=M(u),this.stack.push({type:null,domNamespace:l,children:u,childIndex:0,context:n,footer:""}),"";case ae:return t=[D.createElement(i.type,C({ref:t.ref},t.props))],this.stack.push({type:null,domNamespace:l,children:t,childIndex:0,context:n,footer:""}),"";case b:return i=M(t.props.children),l={type:t,domNamespace:l,children:i,childIndex:0,context:n,footer:""},this.pushProvider(t),this.stack.push(l),"";case T:i=t.type,u=t.props;var s=this.threadID;return q(i,s),i=M(u.children(i[s])),this.stack.push({type:t,domNamespace:l,children:i,childIndex:0,context:n,footer:""}),"";case De:throw Error(a(338));case ce:switch(i=t.type,Ie(i),i._status){case 1:return t=[D.createElement(i._result,C({ref:t.ref},t.props))],this.stack.push({type:null,domNamespace:l,children:t,childIndex:0,context:n,footer:""}),"";case 2:throw i._result;default:throw Error(a(295))}case Fe:throw Error(a(343))}throw Error(a(130,i==null?i:typeof i,""))},r.renderDOM=function(t,n,l){var i=t.type.toLowerCase();if(l===ge.html&&ke(i),!Ee.hasOwnProperty(i)){if(!Be.test(i))throw Error(a(65,i));Ee[i]=!0}var u=t.props;if(i==="input")u=C({type:void 0},u,{defaultChecked:void 0,defaultValue:void 0,value:u.value!=null?u.value:u.defaultValue,checked:u.checked!=null?u.checked:u.defaultChecked});else if(i==="textarea"){var s=u.value;if(s==null){s=u.defaultValue;var o=u.children;if(o!=null){if(s!=null)throw Error(a(92));if(Array.isArray(o)){if(!(1>=o.length))throw Error(a(93));o=o[0]}s=""+o}s==null&&(s="")}u=C({},u,{value:void 0,children:""+s})}else if(i==="select")this.currentSelectValue=u.value!=null?u.value:u.defaultValue,u=C({},u,{value:void 0});else if(i==="option"){o=this.currentSelectValue;var O=Ze(u.children);if(o!=null){var y=u.value!=null?u.value+"":O;if(s=!1,Array.isArray(o)){for(var f=0;f<o.length;f++)if(""+o[f]===y){s=!0;break}}else s=""+o===y;u=C({selected:void 0,children:void 0},u,{selected:s,children:O})}}if(s=u){if(Ue[i]&&(s.children!=null||s.dangerouslySetInnerHTML!=null))throw Error(a(137,i,""));if(s.dangerouslySetInnerHTML!=null){if(s.children!=null)throw Error(a(60));if(!(typeof s.dangerouslySetInnerHTML=="object"&&"__html"in s.dangerouslySetInnerHTML))throw Error(a(61))}if(s.style!=null&&typeof s.style!="object")throw Error(a(62,""))}s=u,o=this.makeStaticMarkup,O=this.stack.length===1,y="<"+t.type;for(E in s)if(Xe.call(s,E)){var h=s[E];if(h!=null){if(E==="style"){f=void 0;var k="",v="";for(f in h)if(h.hasOwnProperty(f)){var S=f.indexOf("--")===0,d=h[f];if(d!=null){if(S)var _=f;else if(_=f,ie.hasOwnProperty(_))_=ie[_];else{var K=_.replace(qe,"-$1").toLowerCase().replace(Ae,"-ms-");_=ie[_]=K}k+=v+_+":",v=f,S=d==null||typeof d=="boolean"||d===""?"":S||typeof d!="number"||d===0||B.hasOwnProperty(v)&&B[v]?(""+d).trim():d+"px",k+=S,v=";"}}h=k||null}f=null;e:if(S=i,d=s,S.indexOf("-")===-1)S=typeof d.is=="string";else switch(S){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":S=!1;break e;default:S=!0}S?Ye.hasOwnProperty(E)||(f=E,f=me(f)&&h!=null?f+'="'+(R(h)+'"'):""):f=Re(E,h),f&&(y+=" "+f)}}o||O&&(y+=' data-reactroot=""');var E=y;s="",Se.hasOwnProperty(i)?E+="/>":(E+=">",s="</"+t.type+">");e:{if(o=u.dangerouslySetInnerHTML,o!=null){if(o.__html!=null){o=o.__html;break e}}else if(o=u.children,typeof o=="string"||typeof o=="number"){o=R(o);break e}o=null}return o!=null?(u=[],He.hasOwnProperty(i)&&o.charAt(0)===`
|
|
2
|
+
`&&(E+=`
|
|
3
|
+
`),E+=o):u=M(u.children),t=t.type,l=l==null||l==="http://www.w3.org/1999/xhtml"?ke(t):l==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":l,this.stack.push({domNamespace:l,type:i,children:u,childIndex:0,context:n,footer:s}),this.previousWasTextNode=!1,E},e}(),Oe={renderToString:function(e){e=new be(e,!1);try{return e.read(1/0)}finally{e.destroy()}},renderToStaticMarkup:function(e){e=new be(e,!0);try{return e.read(1/0)}finally{e.destroy()}},renderToNodeStream:function(){throw Error(a(207))},renderToStaticNodeStream:function(){throw Error(a(208))},version:"16.14.0"};W.exports=Oe.default||Oe},97762:function(W,Z,L){W.exports=L(38698)}}]);
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use strict";(self.webpackChunk_alife_paul_ai_assistant=self.webpackChunk_alife_paul_ai_assistant||[]).push([[7787],{97787:function(De,oe,H){var J,Z,tt,et,it,st,at,nt,rt,ot;H.d(oe,{diagram:function(){return Ce}});var he=H(88674),le=H(21347),Mt=H(4284),w=H(99970),a=H(35096),Q=H(989),mt=function(){var s=(0,a.eW)(function(N,o,c,g){for(c=c||{},g=N.length;g--;c[N[g]]=o);return c},"o"),t=[1,10,12,14,16,18,19,21,23],e=[2,6],i=[1,3],n=[1,5],h=[1,6],d=[1,7],b=[1,5,10,12,14,16,18,19,21,23,34,35,36],A=[1,25],L=[1,26],B=[1,28],D=[1,29],I=[1,30],z=[1,31],F=[1,32],W=[1,33],V=[1,34],X=[1,35],Y=[1,36],p=[1,37],v=[1,43],l=[1,42],O=[1,47],P=[1,50],_=[1,10,12,14,16,18,19,21,23,34,35,36],$=[1,10,12,14,16,18,19,21,23,24,26,27,28,34,35,36],u=[1,10,12,14,16,18,19,21,23,24,26,27,28,34,35,36,41,42,43,44,45,46,47,48,49,50],S=[1,64],T={trace:(0,a.eW)(function(){},"trace"),yy:{},symbols_:{error:2,start:3,eol:4,XYCHART:5,chartConfig:6,document:7,CHART_ORIENTATION:8,statement:9,title:10,text:11,X_AXIS:12,parseXAxis:13,Y_AXIS:14,parseYAxis:15,LINE:16,plotData:17,BAR:18,acc_title:19,acc_title_value:20,acc_descr:21,acc_descr_value:22,acc_descr_multiline_value:23,SQUARE_BRACES_START:24,commaSeparatedNumbers:25,SQUARE_BRACES_END:26,NUMBER_WITH_DECIMAL:27,COMMA:28,xAxisData:29,bandData:30,ARROW_DELIMITER:31,commaSeparatedTexts:32,yAxisData:33,NEWLINE:34,SEMI:35,EOF:36,alphaNum:37,STR:38,MD_STR:39,alphaNumToken:40,AMP:41,NUM:42,ALPHA:43,PLUS:44,EQUALS:45,MULT:46,DOT:47,BRKT:48,MINUS:49,UNDERSCORE:50,$accept:0,$end:1},terminals_:{2:"error",5:"XYCHART",8:"CHART_ORIENTATION",10:"title",12:"X_AXIS",14:"Y_AXIS",16:"LINE",18:"BAR",19:"acc_title",20:"acc_title_value",21:"acc_descr",22:"acc_descr_value",23:"acc_descr_multiline_value",24:"SQUARE_BRACES_START",26:"SQUARE_BRACES_END",27:"NUMBER_WITH_DECIMAL",28:"COMMA",31:"ARROW_DELIMITER",34:"NEWLINE",35:"SEMI",36:"EOF",38:"STR",39:"MD_STR",41:"AMP",42:"NUM",43:"ALPHA",44:"PLUS",45:"EQUALS",46:"MULT",47:"DOT",48:"BRKT",49:"MINUS",50:"UNDERSCORE"},productions_:[0,[3,2],[3,3],[3,2],[3,1],[6,1],[7,0],[7,2],[9,2],[9,2],[9,2],[9,2],[9,2],[9,3],[9,2],[9,3],[9,2],[9,2],[9,1],[17,3],[25,3],[25,1],[13,1],[13,2],[13,1],[29,1],[29,3],[30,3],[32,3],[32,1],[15,1],[15,2],[15,1],[33,3],[4,1],[4,1],[4,1],[11,1],[11,1],[11,1],[37,1],[37,2],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1]],performAction:(0,a.eW)(function(o,c,g,x,m,r,gt){var f=r.length-1;switch(m){case 5:x.setOrientation(r[f]);break;case 9:x.setDiagramTitle(r[f].text.trim());break;case 12:x.setLineData({text:"",type:"text"},r[f]);break;case 13:x.setLineData(r[f-1],r[f]);break;case 14:x.setBarData({text:"",type:"text"},r[f]);break;case 15:x.setBarData(r[f-1],r[f]);break;case 16:this.$=r[f].trim(),x.setAccTitle(this.$);break;case 17:case 18:this.$=r[f].trim(),x.setAccDescription(this.$);break;case 19:this.$=r[f-1];break;case 20:this.$=[Number(r[f-2]),...r[f]];break;case 21:this.$=[Number(r[f])];break;case 22:x.setXAxisTitle(r[f]);break;case 23:x.setXAxisTitle(r[f-1]);break;case 24:x.setXAxisTitle({type:"text",text:""});break;case 25:x.setXAxisBand(r[f]);break;case 26:x.setXAxisRangeData(Number(r[f-2]),Number(r[f]));break;case 27:this.$=r[f-1];break;case 28:this.$=[r[f-2],...r[f]];break;case 29:this.$=[r[f]];break;case 30:x.setYAxisTitle(r[f]);break;case 31:x.setYAxisTitle(r[f-1]);break;case 32:x.setYAxisTitle({type:"text",text:""});break;case 33:x.setYAxisRangeData(Number(r[f-2]),Number(r[f]));break;case 37:this.$={text:r[f],type:"text"};break;case 38:this.$={text:r[f],type:"text"};break;case 39:this.$={text:r[f],type:"markdown"};break;case 40:this.$=r[f];break;case 41:this.$=r[f-1]+""+r[f];break}},"anonymous"),table:[s(t,e,{3:1,4:2,7:4,5:i,34:n,35:h,36:d}),{1:[3]},s(t,e,{4:2,7:4,3:8,5:i,34:n,35:h,36:d}),s(t,e,{4:2,7:4,6:9,3:10,5:i,8:[1,11],34:n,35:h,36:d}),{1:[2,4],9:12,10:[1,13],12:[1,14],14:[1,15],16:[1,16],18:[1,17],19:[1,18],21:[1,19],23:[1,20]},s(b,[2,34]),s(b,[2,35]),s(b,[2,36]),{1:[2,1]},s(t,e,{4:2,7:4,3:21,5:i,34:n,35:h,36:d}),{1:[2,3]},s(b,[2,5]),s(t,[2,7],{4:22,34:n,35:h,36:d}),{11:23,37:24,38:A,39:L,40:27,41:B,42:D,43:I,44:z,45:F,46:W,47:V,48:X,49:Y,50:p},{11:39,13:38,24:v,27:l,29:40,30:41,37:24,38:A,39:L,40:27,41:B,42:D,43:I,44:z,45:F,46:W,47:V,48:X,49:Y,50:p},{11:45,15:44,27:O,33:46,37:24,38:A,39:L,40:27,41:B,42:D,43:I,44:z,45:F,46:W,47:V,48:X,49:Y,50:p},{11:49,17:48,24:P,37:24,38:A,39:L,40:27,41:B,42:D,43:I,44:z,45:F,46:W,47:V,48:X,49:Y,50:p},{11:52,17:51,24:P,37:24,38:A,39:L,40:27,41:B,42:D,43:I,44:z,45:F,46:W,47:V,48:X,49:Y,50:p},{20:[1,53]},{22:[1,54]},s(_,[2,18]),{1:[2,2]},s(_,[2,8]),s(_,[2,9]),s($,[2,37],{40:55,41:B,42:D,43:I,44:z,45:F,46:W,47:V,48:X,49:Y,50:p}),s($,[2,38]),s($,[2,39]),s(u,[2,40]),s(u,[2,42]),s(u,[2,43]),s(u,[2,44]),s(u,[2,45]),s(u,[2,46]),s(u,[2,47]),s(u,[2,48]),s(u,[2,49]),s(u,[2,50]),s(u,[2,51]),s(_,[2,10]),s(_,[2,22],{30:41,29:56,24:v,27:l}),s(_,[2,24]),s(_,[2,25]),{31:[1,57]},{11:59,32:58,37:24,38:A,39:L,40:27,41:B,42:D,43:I,44:z,45:F,46:W,47:V,48:X,49:Y,50:p},s(_,[2,11]),s(_,[2,30],{33:60,27:O}),s(_,[2,32]),{31:[1,61]},s(_,[2,12]),{17:62,24:P},{25:63,27:S},s(_,[2,14]),{17:65,24:P},s(_,[2,16]),s(_,[2,17]),s(u,[2,41]),s(_,[2,23]),{27:[1,66]},{26:[1,67]},{26:[2,29],28:[1,68]},s(_,[2,31]),{27:[1,69]},s(_,[2,13]),{26:[1,70]},{26:[2,21],28:[1,71]},s(_,[2,15]),s(_,[2,26]),s(_,[2,27]),{11:59,32:72,37:24,38:A,39:L,40:27,41:B,42:D,43:I,44:z,45:F,46:W,47:V,48:X,49:Y,50:p},s(_,[2,33]),s(_,[2,19]),{25:73,27:S},{26:[2,28]},{26:[2,20]}],defaultActions:{8:[2,1],10:[2,3],21:[2,2],72:[2,28],73:[2,20]},parseError:(0,a.eW)(function(o,c){if(c.recoverable)this.trace(o);else{var g=new Error(o);throw g.hash=c,g}},"parseError"),parse:(0,a.eW)(function(o){var c=this,g=[0],x=[],m=[null],r=[],gt=this.table,f="",ft=0,ie=0,se=0,we=2,ae=1,Se=r.slice.call(arguments,1),k=Object.create(this.lexer),G={yy:{}};for(var vt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,vt)&&(G.yy[vt]=this.yy[vt]);k.setInput(o,G.yy),G.yy.lexer=k,G.yy.parser=this,typeof k.yylloc=="undefined"&&(k.yylloc={});var Pt=k.yylloc;r.push(Pt);var Re=k.options&&k.options.ranges;typeof G.yy.parseError=="function"?this.parseError=G.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Te(E){g.length=g.length-2*E,m.length=m.length-E,r.length=r.length-E}(0,a.eW)(Te,"popStack");function ne(){var E;return E=x.pop()||k.lex()||ae,typeof E!="number"&&(E instanceof Array&&(x=E,E=x.pop()),E=c.symbols_[E]||E),E}(0,a.eW)(ne,"lex");for(var R,Et,K,M,We,Lt,ht={},pt,U,re,yt;;){if(K=g[g.length-1],this.defaultActions[K]?M=this.defaultActions[K]:((R===null||typeof R=="undefined")&&(R=ne()),M=gt[K]&>[K][R]),typeof M=="undefined"||!M.length||!M[0]){var It="";yt=[];for(pt in gt[K])this.terminals_[pt]&&pt>we&&yt.push("'"+this.terminals_[pt]+"'");k.showPosition?It="Parse error on line "+(ft+1)+`:
|
|
2
|
+
`+k.showPosition()+`
|
|
3
|
+
Expecting `+yt.join(", ")+", got '"+(this.terminals_[R]||R)+"'":It="Parse error on line "+(ft+1)+": Unexpected "+(R==ae?"end of input":"'"+(this.terminals_[R]||R)+"'"),this.parseError(It,{text:k.match,token:this.terminals_[R]||R,line:k.yylineno,loc:Pt,expected:yt})}if(M[0]instanceof Array&&M.length>1)throw new Error("Parse Error: multiple actions possible at state: "+K+", token: "+R);switch(M[0]){case 1:g.push(R),m.push(k.yytext),r.push(k.yylloc),g.push(M[1]),R=null,Et?(R=Et,Et=null):(ie=k.yyleng,f=k.yytext,ft=k.yylineno,Pt=k.yylloc,se>0&&se--);break;case 2:if(U=this.productions_[M[1]][1],ht.$=m[m.length-U],ht._$={first_line:r[r.length-(U||1)].first_line,last_line:r[r.length-1].last_line,first_column:r[r.length-(U||1)].first_column,last_column:r[r.length-1].last_column},Re&&(ht._$.range=[r[r.length-(U||1)].range[0],r[r.length-1].range[1]]),Lt=this.performAction.apply(ht,[f,ie,ft,G.yy,M[1],m,r].concat(Se)),typeof Lt!="undefined")return Lt;U&&(g=g.slice(0,-1*U*2),m=m.slice(0,-1*U),r=r.slice(0,-1*U)),g.push(this.productions_[M[1]][0]),m.push(ht.$),r.push(ht._$),re=gt[g[g.length-2]][g[g.length-1]],g.push(re);break;case 3:return!0}}return!0},"parse")},C=function(){var N={EOF:1,parseError:(0,a.eW)(function(c,g){if(this.yy.parser)this.yy.parser.parseError(c,g);else throw new Error(c)},"parseError"),setInput:(0,a.eW)(function(o,c){return this.yy=c||this.yy||{},this._input=o,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:(0,a.eW)(function(){var o=this._input[0];this.yytext+=o,this.yyleng++,this.offset++,this.match+=o,this.matched+=o;var c=o.match(/(?:\r\n?|\n).*/g);return c?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),o},"input"),unput:(0,a.eW)(function(o){var c=o.length,g=o.split(/(?:\r\n?|\n)/g);this._input=o+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-c),this.offset-=c;var x=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),g.length-1&&(this.yylineno-=g.length-1);var m=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:g?(g.length===x.length?this.yylloc.first_column:0)+x[x.length-g.length].length-g[0].length:this.yylloc.first_column-c},this.options.ranges&&(this.yylloc.range=[m[0],m[0]+this.yyleng-c]),this.yyleng=this.yytext.length,this},"unput"),more:(0,a.eW)(function(){return this._more=!0,this},"more"),reject:(0,a.eW)(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:(0,a.eW)(function(o){this.unput(this.match.slice(o))},"less"),pastInput:(0,a.eW)(function(){var o=this.matched.substr(0,this.matched.length-this.match.length);return(o.length>20?"...":"")+o.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:(0,a.eW)(function(){var o=this.match;return o.length<20&&(o+=this._input.substr(0,20-o.length)),(o.substr(0,20)+(o.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:(0,a.eW)(function(){var o=this.pastInput(),c=new Array(o.length+1).join("-");return o+this.upcomingInput()+`
|
|
5
|
+
`+c+"^"},"showPosition"),test_match:(0,a.eW)(function(o,c){var g,x,m;if(this.options.backtrack_lexer&&(m={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&&(m.yylloc.range=this.yylloc.range.slice(0))),x=o[0].match(/(?:\r\n?|\n).*/g),x&&(this.yylineno+=x.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:x?x[x.length-1].length-x[x.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+o[0].length},this.yytext+=o[0],this.match+=o[0],this.matches=o,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(o[0].length),this.matched+=o[0],g=this.performAction.call(this,this.yy,this,c,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),g)return g;if(this._backtrack){for(var r in m)this[r]=m[r];return!1}return!1},"test_match"),next:(0,a.eW)(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var o,c,g,x;this._more||(this.yytext="",this.match="");for(var m=this._currentRules(),r=0;r<m.length;r++)if(g=this._input.match(this.rules[m[r]]),g&&(!c||g[0].length>c[0].length)){if(c=g,x=r,this.options.backtrack_lexer){if(o=this.test_match(g,m[r]),o!==!1)return o;if(this._backtrack){c=!1;continue}else return!1}else if(!this.options.flex)break}return c?(o=this.test_match(c,m[x]),o!==!1?o:!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:(0,a.eW)(function(){var c=this.next();return c||this.lex()},"lex"),begin:(0,a.eW)(function(c){this.conditionStack.push(c)},"begin"),popState:(0,a.eW)(function(){var c=this.conditionStack.length-1;return c>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:(0,a.eW)(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:(0,a.eW)(function(c){return c=this.conditionStack.length-1-Math.abs(c||0),c>=0?this.conditionStack[c]:"INITIAL"},"topState"),pushState:(0,a.eW)(function(c){this.begin(c)},"pushState"),stateStackSize:(0,a.eW)(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:(0,a.eW)(function(c,g,x,m){var r=m;switch(x){case 0:break;case 1:break;case 2:return this.popState(),34;break;case 3:return this.popState(),34;break;case 4:return 34;case 5:break;case 6:return 10;case 7:return this.pushState("acc_title"),19;break;case 8:return this.popState(),"acc_title_value";break;case 9:return this.pushState("acc_descr"),21;break;case 10:return this.popState(),"acc_descr_value";break;case 11:this.pushState("acc_descr_multiline");break;case 12:this.popState();break;case 13:return"acc_descr_multiline_value";case 14:return 5;case 15:return 5;case 16:return 8;case 17:return this.pushState("axis_data"),"X_AXIS";break;case 18:return this.pushState("axis_data"),"Y_AXIS";break;case 19:return this.pushState("axis_band_data"),24;break;case 20:return 31;case 21:return this.pushState("data"),16;break;case 22:return this.pushState("data"),18;break;case 23:return this.pushState("data_inner"),24;break;case 24:return 27;case 25:return this.popState(),26;break;case 26:this.popState();break;case 27:this.pushState("string");break;case 28:this.popState();break;case 29:return"STR";case 30:return 24;case 31:return 26;case 32:return 43;case 33:return"COLON";case 34:return 44;case 35:return 28;case 36:return 45;case 37:return 46;case 38:return 48;case 39:return 50;case 40:return 47;case 41:return 41;case 42:return 49;case 43:return 42;case 44:break;case 45:return 35;case 46:return 36}},"anonymous"),rules:[/^(?:%%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:(\r?\n))/i,/^(?:(\r?\n))/i,/^(?:[\n\r]+)/i,/^(?:%%[^\n]*)/i,/^(?:title\b)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:\{)/i,/^(?:[^\}]*)/i,/^(?:xychart-beta\b)/i,/^(?:xychart\b)/i,/^(?:(?:vertical|horizontal))/i,/^(?:x-axis\b)/i,/^(?:y-axis\b)/i,/^(?:\[)/i,/^(?:-->)/i,/^(?:line\b)/i,/^(?:bar\b)/i,/^(?:\[)/i,/^(?:[+-]?(?:\d+(?:\.\d+)?|\.\d+))/i,/^(?:\])/i,/^(?:(?:`\) \{ this\.pushState\(md_string\); \}\n<md_string>\(\?:\(\?!`"\)\.\)\+ \{ return MD_STR; \}\n<md_string>\(\?:`))/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:\[)/i,/^(?:\])/i,/^(?:[A-Za-z]+)/i,/^(?::)/i,/^(?:\+)/i,/^(?:,)/i,/^(?:=)/i,/^(?:\*)/i,/^(?:#)/i,/^(?:[\_])/i,/^(?:\.)/i,/^(?:&)/i,/^(?:-)/i,/^(?:[0-9]+)/i,/^(?:\s+)/i,/^(?:;)/i,/^(?:$)/i],conditions:{data_inner:{rules:[0,1,4,5,6,7,9,11,14,15,16,17,18,21,22,24,25,26,27,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46],inclusive:!0},data:{rules:[0,1,3,4,5,6,7,9,11,14,15,16,17,18,21,22,23,26,27,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46],inclusive:!0},axis_band_data:{rules:[0,1,4,5,6,7,9,11,14,15,16,17,18,21,22,25,26,27,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46],inclusive:!0},axis_data:{rules:[0,1,2,4,5,6,7,9,11,14,15,16,17,18,19,20,21,22,24,26,27,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46],inclusive:!0},acc_descr_multiline:{rules:[12,13],inclusive:!1},acc_descr:{rules:[10],inclusive:!1},acc_title:{rules:[8],inclusive:!1},title:{rules:[],inclusive:!1},md_string:{rules:[],inclusive:!1},string:{rules:[28,29],inclusive:!1},INITIAL:{rules:[0,1,4,5,6,7,9,11,14,15,16,17,18,21,22,26,27,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46],inclusive:!0}}};return N}();T.lexer=C;function j(){this.yy={}}return(0,a.eW)(j,"Parser"),j.prototype=T,T.Parser=j,new j}();mt.parser=mt;var ce=mt;function bt(s){return s.type==="bar"}(0,a.eW)(bt,"isBarPlot");function At(s){return s.type==="band"}(0,a.eW)(At,"isBandAxisData");function q(s){return s.type==="linear"}(0,a.eW)(q,"isLinearAxisData");var Bt=(J=class{constructor(t){this.parentGroup=t}getMaxDimension(t,e){if(!this.parentGroup)return{width:t.reduce((h,d)=>Math.max(d.length,h),0)*e,height:e};const i={width:0,height:0},n=this.parentGroup.append("g").attr("visibility","hidden").attr("font-size",e);for(const h of t){const d=(0,le.QA)(n,1,h),b=d?d.width:h.length*e,A=d?d.height:e;i.width=Math.max(i.width,b),i.height=Math.max(i.height,A)}return n.remove(),i}},(0,a.eW)(J,"TextDimensionCalculatorWithFont"),J),Vt=.7,Ot=.2,zt=(Z=class{constructor(t,e,i,n){this.axisConfig=t,this.title=e,this.textDimensionCalculator=i,this.axisThemeConfig=n,this.boundingRect={x:0,y:0,width:0,height:0},this.axisPosition="left",this.showTitle=!1,this.showLabel=!1,this.showTick=!1,this.showAxisLine=!1,this.outerPadding=0,this.titleTextHeight=0,this.labelTextHeight=0,this.range=[0,10],this.boundingRect={x:0,y:0,width:0,height:0},this.axisPosition="left"}setRange(t){this.range=t,this.axisPosition==="left"||this.axisPosition==="right"?this.boundingRect.height=t[1]-t[0]:this.boundingRect.width=t[1]-t[0],this.recalculateScale()}getRange(){return[this.range[0]+this.outerPadding,this.range[1]-this.outerPadding]}setAxisPosition(t){this.axisPosition=t,this.setRange(this.range)}getTickDistance(){const t=this.getRange();return Math.abs(t[0]-t[1])/this.getTickValues().length}getAxisOuterPadding(){return this.outerPadding}getLabelDimension(){return this.textDimensionCalculator.getMaxDimension(this.getTickValues().map(t=>t.toString()),this.axisConfig.labelFontSize)}recalculateOuterPaddingToDrawBar(){Vt*this.getTickDistance()>this.outerPadding*2&&(this.outerPadding=Math.floor(Vt*this.getTickDistance()/2)),this.recalculateScale()}calculateSpaceIfDrawnHorizontally(t){let e=t.height;if(this.axisConfig.showAxisLine&&e>this.axisConfig.axisLineWidth&&(e-=this.axisConfig.axisLineWidth,this.showAxisLine=!0),this.axisConfig.showLabel){const i=this.getLabelDimension(),n=Ot*t.width;this.outerPadding=Math.min(i.width/2,n);const h=i.height+this.axisConfig.labelPadding*2;this.labelTextHeight=i.height,h<=e&&(e-=h,this.showLabel=!0)}if(this.axisConfig.showTick&&e>=this.axisConfig.tickLength&&(this.showTick=!0,e-=this.axisConfig.tickLength),this.axisConfig.showTitle&&this.title){const i=this.textDimensionCalculator.getMaxDimension([this.title],this.axisConfig.titleFontSize),n=i.height+this.axisConfig.titlePadding*2;this.titleTextHeight=i.height,n<=e&&(e-=n,this.showTitle=!0)}this.boundingRect.width=t.width,this.boundingRect.height=t.height-e}calculateSpaceIfDrawnVertical(t){let e=t.width;if(this.axisConfig.showAxisLine&&e>this.axisConfig.axisLineWidth&&(e-=this.axisConfig.axisLineWidth,this.showAxisLine=!0),this.axisConfig.showLabel){const i=this.getLabelDimension(),n=Ot*t.height;this.outerPadding=Math.min(i.height/2,n);const h=i.width+this.axisConfig.labelPadding*2;h<=e&&(e-=h,this.showLabel=!0)}if(this.axisConfig.showTick&&e>=this.axisConfig.tickLength&&(this.showTick=!0,e-=this.axisConfig.tickLength),this.axisConfig.showTitle&&this.title){const i=this.textDimensionCalculator.getMaxDimension([this.title],this.axisConfig.titleFontSize),n=i.height+this.axisConfig.titlePadding*2;this.titleTextHeight=i.height,n<=e&&(e-=n,this.showTitle=!0)}this.boundingRect.width=t.width-e,this.boundingRect.height=t.height}calculateSpace(t){return this.axisPosition==="left"||this.axisPosition==="right"?this.calculateSpaceIfDrawnVertical(t):this.calculateSpaceIfDrawnHorizontally(t),this.recalculateScale(),{width:this.boundingRect.width,height:this.boundingRect.height}}setBoundingBoxXY(t){this.boundingRect.x=t.x,this.boundingRect.y=t.y}getDrawableElementsForLeftAxis(){const t=[];if(this.showAxisLine){const e=this.boundingRect.x+this.boundingRect.width-this.axisConfig.axisLineWidth/2;t.push({type:"path",groupTexts:["left-axis","axisl-line"],data:[{path:`M ${e},${this.boundingRect.y} L ${e},${this.boundingRect.y+this.boundingRect.height} `,strokeFill:this.axisThemeConfig.axisLineColor,strokeWidth:this.axisConfig.axisLineWidth}]})}if(this.showLabel&&t.push({type:"text",groupTexts:["left-axis","label"],data:this.getTickValues().map(e=>({text:e.toString(),x:this.boundingRect.x+this.boundingRect.width-(this.showLabel?this.axisConfig.labelPadding:0)-(this.showTick?this.axisConfig.tickLength:0)-(this.showAxisLine?this.axisConfig.axisLineWidth:0),y:this.getScaleValue(e),fill:this.axisThemeConfig.labelColor,fontSize:this.axisConfig.labelFontSize,rotation:0,verticalPos:"middle",horizontalPos:"right"}))}),this.showTick){const e=this.boundingRect.x+this.boundingRect.width-(this.showAxisLine?this.axisConfig.axisLineWidth:0);t.push({type:"path",groupTexts:["left-axis","ticks"],data:this.getTickValues().map(i=>({path:`M ${e},${this.getScaleValue(i)} L ${e-this.axisConfig.tickLength},${this.getScaleValue(i)}`,strokeFill:this.axisThemeConfig.tickColor,strokeWidth:this.axisConfig.tickWidth}))})}return this.showTitle&&t.push({type:"text",groupTexts:["left-axis","title"],data:[{text:this.title,x:this.boundingRect.x+this.axisConfig.titlePadding,y:this.boundingRect.y+this.boundingRect.height/2,fill:this.axisThemeConfig.titleColor,fontSize:this.axisConfig.titleFontSize,rotation:270,verticalPos:"top",horizontalPos:"center"}]}),t}getDrawableElementsForBottomAxis(){const t=[];if(this.showAxisLine){const e=this.boundingRect.y+this.axisConfig.axisLineWidth/2;t.push({type:"path",groupTexts:["bottom-axis","axis-line"],data:[{path:`M ${this.boundingRect.x},${e} L ${this.boundingRect.x+this.boundingRect.width},${e}`,strokeFill:this.axisThemeConfig.axisLineColor,strokeWidth:this.axisConfig.axisLineWidth}]})}if(this.showLabel&&t.push({type:"text",groupTexts:["bottom-axis","label"],data:this.getTickValues().map(e=>({text:e.toString(),x:this.getScaleValue(e),y:this.boundingRect.y+this.axisConfig.labelPadding+(this.showTick?this.axisConfig.tickLength:0)+(this.showAxisLine?this.axisConfig.axisLineWidth:0),fill:this.axisThemeConfig.labelColor,fontSize:this.axisConfig.labelFontSize,rotation:0,verticalPos:"top",horizontalPos:"center"}))}),this.showTick){const e=this.boundingRect.y+(this.showAxisLine?this.axisConfig.axisLineWidth:0);t.push({type:"path",groupTexts:["bottom-axis","ticks"],data:this.getTickValues().map(i=>({path:`M ${this.getScaleValue(i)},${e} L ${this.getScaleValue(i)},${e+this.axisConfig.tickLength}`,strokeFill:this.axisThemeConfig.tickColor,strokeWidth:this.axisConfig.tickWidth}))})}return this.showTitle&&t.push({type:"text",groupTexts:["bottom-axis","title"],data:[{text:this.title,x:this.range[0]+(this.range[1]-this.range[0])/2,y:this.boundingRect.y+this.boundingRect.height-this.axisConfig.titlePadding-this.titleTextHeight,fill:this.axisThemeConfig.titleColor,fontSize:this.axisConfig.titleFontSize,rotation:0,verticalPos:"top",horizontalPos:"center"}]}),t}getDrawableElementsForTopAxis(){const t=[];if(this.showAxisLine){const e=this.boundingRect.y+this.boundingRect.height-this.axisConfig.axisLineWidth/2;t.push({type:"path",groupTexts:["top-axis","axis-line"],data:[{path:`M ${this.boundingRect.x},${e} L ${this.boundingRect.x+this.boundingRect.width},${e}`,strokeFill:this.axisThemeConfig.axisLineColor,strokeWidth:this.axisConfig.axisLineWidth}]})}if(this.showLabel&&t.push({type:"text",groupTexts:["top-axis","label"],data:this.getTickValues().map(e=>({text:e.toString(),x:this.getScaleValue(e),y:this.boundingRect.y+(this.showTitle?this.titleTextHeight+this.axisConfig.titlePadding*2:0)+this.axisConfig.labelPadding,fill:this.axisThemeConfig.labelColor,fontSize:this.axisConfig.labelFontSize,rotation:0,verticalPos:"top",horizontalPos:"center"}))}),this.showTick){const e=this.boundingRect.y;t.push({type:"path",groupTexts:["top-axis","ticks"],data:this.getTickValues().map(i=>({path:`M ${this.getScaleValue(i)},${e+this.boundingRect.height-(this.showAxisLine?this.axisConfig.axisLineWidth:0)} L ${this.getScaleValue(i)},${e+this.boundingRect.height-this.axisConfig.tickLength-(this.showAxisLine?this.axisConfig.axisLineWidth:0)}`,strokeFill:this.axisThemeConfig.tickColor,strokeWidth:this.axisConfig.tickWidth}))})}return this.showTitle&&t.push({type:"text",groupTexts:["top-axis","title"],data:[{text:this.title,x:this.boundingRect.x+this.boundingRect.width/2,y:this.boundingRect.y+this.axisConfig.titlePadding,fill:this.axisThemeConfig.titleColor,fontSize:this.axisConfig.titleFontSize,rotation:0,verticalPos:"top",horizontalPos:"center"}]}),t}getDrawableElements(){if(this.axisPosition==="left")return this.getDrawableElementsForLeftAxis();if(this.axisPosition==="right")throw Error("Drawing of right axis is not implemented");return this.axisPosition==="bottom"?this.getDrawableElementsForBottomAxis():this.axisPosition==="top"?this.getDrawableElementsForTopAxis():[]}},(0,a.eW)(Z,"BaseAxis"),Z),ue=(tt=class extends zt{constructor(t,e,i,n,h){super(t,n,h,e),this.categories=i,this.scale=(0,Q.tiA)().domain(this.categories).range(this.getRange())}setRange(t){super.setRange(t)}recalculateScale(){this.scale=(0,Q.tiA)().domain(this.categories).range(this.getRange()).paddingInner(1).paddingOuter(0).align(.5),a.cM.trace("BandAxis axis final categories, range: ",this.categories,this.getRange())}getTickValues(){return this.categories}getScaleValue(t){var e;return(e=this.scale(t))!=null?e:this.getRange()[0]}},(0,a.eW)(tt,"BandAxis"),tt),ge=(et=class extends zt{constructor(t,e,i,n,h){super(t,n,h,e),this.domain=i,this.scale=(0,Q.BYU)().domain(this.domain).range(this.getRange())}getTickValues(){return this.scale.ticks()}recalculateScale(){const t=[...this.domain];this.axisPosition==="left"&&t.reverse(),this.scale=(0,Q.BYU)().domain(t).range(this.getRange())}getScaleValue(t){return this.scale(t)}},(0,a.eW)(et,"LinearAxis"),et);function _t(s,t,e,i){const n=new Bt(i);return At(s)?new ue(t,e,s.categories,s.title,n):new ge(t,e,[s.min,s.max],s.title,n)}(0,a.eW)(_t,"getAxis");var xe=(it=class{constructor(t,e,i,n){this.textDimensionCalculator=t,this.chartConfig=e,this.chartData=i,this.chartThemeConfig=n,this.boundingRect={x:0,y:0,width:0,height:0},this.showChartTitle=!1}setBoundingBoxXY(t){this.boundingRect.x=t.x,this.boundingRect.y=t.y}calculateSpace(t){const e=this.textDimensionCalculator.getMaxDimension([this.chartData.title],this.chartConfig.titleFontSize),i=Math.max(e.width,t.width),n=e.height+2*this.chartConfig.titlePadding;return e.width<=i&&e.height<=n&&this.chartConfig.showTitle&&this.chartData.title&&(this.boundingRect.width=i,this.boundingRect.height=n,this.showChartTitle=!0),{width:this.boundingRect.width,height:this.boundingRect.height}}getDrawableElements(){const t=[];return this.showChartTitle&&t.push({groupTexts:["chart-title"],type:"text",data:[{fontSize:this.chartConfig.titleFontSize,text:this.chartData.title,verticalPos:"middle",horizontalPos:"center",x:this.boundingRect.x+this.boundingRect.width/2,y:this.boundingRect.y+this.boundingRect.height/2,fill:this.chartThemeConfig.titleColor,rotation:0}]}),t}},(0,a.eW)(it,"ChartTitle"),it);function Ft(s,t,e,i){const n=new Bt(i);return new xe(n,s,t,e)}(0,a.eW)(Ft,"getChartTitleComponent");var de=(st=class{constructor(t,e,i,n,h){this.plotData=t,this.xAxis=e,this.yAxis=i,this.orientation=n,this.plotIndex=h}getDrawableElement(){const t=this.plotData.data.map(i=>[this.xAxis.getScaleValue(i[0]),this.yAxis.getScaleValue(i[1])]);let e;return this.orientation==="horizontal"?e=(0,Q.jvg)().y(i=>i[0]).x(i=>i[1])(t):e=(0,Q.jvg)().x(i=>i[0]).y(i=>i[1])(t),e?[{groupTexts:["plot",`line-plot-${this.plotIndex}`],type:"path",data:[{path:e,strokeFill:this.plotData.strokeFill,strokeWidth:this.plotData.strokeWidth}]}]:[]}},(0,a.eW)(st,"LinePlot"),st),fe=(at=class{constructor(t,e,i,n,h,d){this.barData=t,this.boundingRect=e,this.xAxis=i,this.yAxis=n,this.orientation=h,this.plotIndex=d}getDrawableElement(){const t=this.barData.data.map(h=>[this.xAxis.getScaleValue(h[0]),this.yAxis.getScaleValue(h[1])]),i=Math.min(this.xAxis.getAxisOuterPadding()*2,this.xAxis.getTickDistance())*(1-.05),n=i/2;return this.orientation==="horizontal"?[{groupTexts:["plot",`bar-plot-${this.plotIndex}`],type:"rect",data:t.map(h=>({x:this.boundingRect.x,y:h[0]-n,height:i,width:h[1]-this.boundingRect.x,fill:this.barData.fill,strokeWidth:0,strokeFill:this.barData.fill}))}]:[{groupTexts:["plot",`bar-plot-${this.plotIndex}`],type:"rect",data:t.map(h=>({x:h[0]-n,y:h[1],width:i,height:this.boundingRect.y+this.boundingRect.height-h[1],fill:this.barData.fill,strokeWidth:0,strokeFill:this.barData.fill}))}]}},(0,a.eW)(at,"BarPlot"),at),pe=(nt=class{constructor(t,e,i){this.chartConfig=t,this.chartData=e,this.chartThemeConfig=i,this.boundingRect={x:0,y:0,width:0,height:0}}setAxes(t,e){this.xAxis=t,this.yAxis=e}setBoundingBoxXY(t){this.boundingRect.x=t.x,this.boundingRect.y=t.y}calculateSpace(t){return this.boundingRect.width=t.width,this.boundingRect.height=t.height,{width:this.boundingRect.width,height:this.boundingRect.height}}getDrawableElements(){if(!(this.xAxis&&this.yAxis))throw Error("Axes must be passed to render Plots");const t=[];for(const[e,i]of this.chartData.plots.entries())switch(i.type){case"line":{const n=new de(i,this.xAxis,this.yAxis,this.chartConfig.chartOrientation,e);t.push(...n.getDrawableElement())}break;case"bar":{const n=new fe(i,this.boundingRect,this.xAxis,this.yAxis,this.chartConfig.chartOrientation,e);t.push(...n.getDrawableElement())}break}return t}},(0,a.eW)(nt,"BasePlot"),nt);function Xt(s,t,e){return new pe(s,t,e)}(0,a.eW)(Xt,"getPlotComponent");var ye=(rt=class{constructor(t,e,i,n){this.chartConfig=t,this.chartData=e,this.componentStore={title:Ft(t,e,i,n),plot:Xt(t,e,i),xAxis:_t(e.xAxis,t.xAxis,{titleColor:i.xAxisTitleColor,labelColor:i.xAxisLabelColor,tickColor:i.xAxisTickColor,axisLineColor:i.xAxisLineColor},n),yAxis:_t(e.yAxis,t.yAxis,{titleColor:i.yAxisTitleColor,labelColor:i.yAxisLabelColor,tickColor:i.yAxisTickColor,axisLineColor:i.yAxisLineColor},n)}}calculateVerticalSpace(){let t=this.chartConfig.width,e=this.chartConfig.height,i=0,n=0,h=Math.floor(t*this.chartConfig.plotReservedSpacePercent/100),d=Math.floor(e*this.chartConfig.plotReservedSpacePercent/100),b=this.componentStore.plot.calculateSpace({width:h,height:d});t-=b.width,e-=b.height,b=this.componentStore.title.calculateSpace({width:this.chartConfig.width,height:e}),n=b.height,e-=b.height,this.componentStore.xAxis.setAxisPosition("bottom"),b=this.componentStore.xAxis.calculateSpace({width:t,height:e}),e-=b.height,this.componentStore.yAxis.setAxisPosition("left"),b=this.componentStore.yAxis.calculateSpace({width:t,height:e}),i=b.width,t-=b.width,t>0&&(h+=t,t=0),e>0&&(d+=e,e=0),this.componentStore.plot.calculateSpace({width:h,height:d}),this.componentStore.plot.setBoundingBoxXY({x:i,y:n}),this.componentStore.xAxis.setRange([i,i+h]),this.componentStore.xAxis.setBoundingBoxXY({x:i,y:n+d}),this.componentStore.yAxis.setRange([n,n+d]),this.componentStore.yAxis.setBoundingBoxXY({x:0,y:n}),this.chartData.plots.some(A=>bt(A))&&this.componentStore.xAxis.recalculateOuterPaddingToDrawBar()}calculateHorizontalSpace(){let t=this.chartConfig.width,e=this.chartConfig.height,i=0,n=0,h=0,d=Math.floor(t*this.chartConfig.plotReservedSpacePercent/100),b=Math.floor(e*this.chartConfig.plotReservedSpacePercent/100),A=this.componentStore.plot.calculateSpace({width:d,height:b});t-=A.width,e-=A.height,A=this.componentStore.title.calculateSpace({width:this.chartConfig.width,height:e}),i=A.height,e-=A.height,this.componentStore.xAxis.setAxisPosition("left"),A=this.componentStore.xAxis.calculateSpace({width:t,height:e}),t-=A.width,n=A.width,this.componentStore.yAxis.setAxisPosition("top"),A=this.componentStore.yAxis.calculateSpace({width:t,height:e}),e-=A.height,h=i+A.height,t>0&&(d+=t,t=0),e>0&&(b+=e,e=0),this.componentStore.plot.calculateSpace({width:d,height:b}),this.componentStore.plot.setBoundingBoxXY({x:n,y:h}),this.componentStore.yAxis.setRange([n,n+d]),this.componentStore.yAxis.setBoundingBoxXY({x:n,y:i}),this.componentStore.xAxis.setRange([h,h+b]),this.componentStore.xAxis.setBoundingBoxXY({x:0,y:h}),this.chartData.plots.some(L=>bt(L))&&this.componentStore.xAxis.recalculateOuterPaddingToDrawBar()}calculateSpace(){this.chartConfig.chartOrientation==="horizontal"?this.calculateHorizontalSpace():this.calculateVerticalSpace()}getDrawableElement(){this.calculateSpace();const t=[];this.componentStore.plot.setAxes(this.componentStore.xAxis,this.componentStore.yAxis);for(const e of Object.values(this.componentStore))t.push(...e.getDrawableElements());return t}},(0,a.eW)(rt,"Orchestrator"),rt),me=(ot=class{static build(t,e,i,n){return new ye(t,e,i,n).getDrawableElement()}},(0,a.eW)(ot,"XYChartBuilder"),ot),lt=0,Yt,ct=St(),ut=wt(),y=Rt(),kt=ut.plotColorPalette.split(",").map(s=>s.trim()),xt=!1,Ct=!1;function wt(){const s=(0,w.xN)(),t=(0,w.iE)();return(0,Mt.Rb)(s.xyChart,t.themeVariables.xyChart)}(0,a.eW)(wt,"getChartDefaultThemeConfig");function St(){const s=(0,w.iE)();return(0,Mt.Rb)(w.vZ.xyChart,s.xyChart)}(0,a.eW)(St,"getChartDefaultConfig");function Rt(){return{yAxis:{type:"linear",title:"",min:1/0,max:-1/0},xAxis:{type:"band",title:"",categories:[]},title:"",plots:[]}}(0,a.eW)(Rt,"getChartDefaultData");function dt(s){const t=(0,w.iE)();return(0,w.oO)(s.trim(),t)}(0,a.eW)(dt,"textSanitizer");function Nt(s){Yt=s}(0,a.eW)(Nt,"setTmpSVGG");function Ut(s){s==="horizontal"?ct.chartOrientation="horizontal":ct.chartOrientation="vertical"}(0,a.eW)(Ut,"setOrientation");function Ht(s){y.xAxis.title=dt(s.text)}(0,a.eW)(Ht,"setXAxisTitle");function Tt(s,t){y.xAxis={type:"linear",title:y.xAxis.title,min:s,max:t},xt=!0}(0,a.eW)(Tt,"setXAxisRangeData");function $t(s){y.xAxis={type:"band",title:y.xAxis.title,categories:s.map(t=>dt(t.text))},xt=!0}(0,a.eW)($t,"setXAxisBand");function jt(s){y.yAxis.title=dt(s.text)}(0,a.eW)(jt,"setYAxisTitle");function Gt(s,t){y.yAxis={type:"linear",title:y.yAxis.title,min:s,max:t},Ct=!0}(0,a.eW)(Gt,"setYAxisRangeData");function Kt(s){const t=Math.min(...s),e=Math.max(...s),i=q(y.yAxis)?y.yAxis.min:1/0,n=q(y.yAxis)?y.yAxis.max:-1/0;y.yAxis={type:"linear",title:y.yAxis.title,min:Math.min(i,t),max:Math.max(n,e)}}(0,a.eW)(Kt,"setYAxisRangeFromPlotData");function Dt(s){let t=[];if(s.length===0)return t;if(!xt){const e=q(y.xAxis)?y.xAxis.min:1/0,i=q(y.xAxis)?y.xAxis.max:-1/0;Tt(Math.min(e,1),Math.max(i,s.length))}if(Ct||Kt(s),At(y.xAxis)&&(t=y.xAxis.categories.map((e,i)=>[e,s[i]])),q(y.xAxis)){const e=y.xAxis.min,i=y.xAxis.max,n=(i-e)/(s.length-1),h=[];for(let d=e;d<=i;d+=n)h.push(`${d}`);t=h.map((d,b)=>[d,s[b]])}return t}(0,a.eW)(Dt,"transformDataWithoutCategory");function Wt(s){return kt[s===0?0:s%kt.length]}(0,a.eW)(Wt,"getPlotColorFromPalette");function Qt(s,t){const e=Dt(t);y.plots.push({type:"line",strokeFill:Wt(lt),strokeWidth:2,data:e}),lt++}(0,a.eW)(Qt,"setLineData");function qt(s,t){const e=Dt(t);y.plots.push({type:"bar",fill:Wt(lt),data:e}),lt++}(0,a.eW)(qt,"setBarData");function Jt(){if(y.plots.length===0)throw Error("No Plot to render, please provide a plot with some data");return y.title=(0,w.Kr)(),me.build(ct,y,ut,Yt)}(0,a.eW)(Jt,"getDrawableElem");function Zt(){return ut}(0,a.eW)(Zt,"getChartThemeConfig");function te(){return ct}(0,a.eW)(te,"getChartConfig");function ee(){return y}(0,a.eW)(ee,"getXYChartData");var be=(0,a.eW)(function(){(0,w.ZH)(),lt=0,ct=St(),y=Rt(),ut=wt(),kt=ut.plotColorPalette.split(",").map(s=>s.trim()),xt=!1,Ct=!1},"clear"),Ae={getDrawableElem:Jt,clear:be,setAccTitle:w.GN,getAccTitle:w.eu,setDiagramTitle:w.g2,getDiagramTitle:w.Kr,getAccDescription:w.Mx,setAccDescription:w.U$,setOrientation:Ut,setXAxisTitle:Ht,setXAxisRangeData:Tt,setXAxisBand:$t,setYAxisTitle:jt,setYAxisRangeData:Gt,setLineData:Qt,setBarData:qt,setTmpSVGG:Nt,getChartThemeConfig:Zt,getChartConfig:te,getXYChartData:ee},_e=(0,a.eW)((s,t,e,i)=>{const n=i.db,h=n.getChartThemeConfig(),d=n.getChartConfig(),b=n.getXYChartData().plots[0].data.map(p=>p[1]);function A(p){return p==="top"?"text-before-edge":"middle"}(0,a.eW)(A,"getDominantBaseLine");function L(p){return p==="left"?"start":p==="right"?"end":"middle"}(0,a.eW)(L,"getTextAnchor");function B(p){return`translate(${p.x}, ${p.y}) rotate(${p.rotation||0})`}(0,a.eW)(B,"getTextTransformation"),a.cM.debug(`Rendering xychart chart
|
|
7
|
+
`+s);const D=(0,he.P)(t),I=D.append("g").attr("class","main"),z=I.append("rect").attr("width",d.width).attr("height",d.height).attr("class","background");(0,w.v2)(D,d.height,d.width,!0),D.attr("viewBox",`0 0 ${d.width} ${d.height}`),z.attr("fill",h.backgroundColor),n.setTmpSVGG(D.append("g").attr("class","mermaid-tmp-group"));const F=n.getDrawableElem(),W={};function V(p){let v=I,l="";for(const[O]of p.entries()){let P=I;O>0&&W[l]&&(P=W[l]),l+=p[O],v=W[l],v||(v=W[l]=P.append("g").attr("class",p[O]))}return v}(0,a.eW)(V,"getGroup");for(const p of F){if(p.data.length===0)continue;const v=V(p.groupTexts);switch(p.type){case"rect":if(v.selectAll("rect").data(p.data).enter().append("rect").attr("x",l=>l.x).attr("y",l=>l.y).attr("width",l=>l.width).attr("height",l=>l.height).attr("fill",l=>l.fill).attr("stroke",l=>l.strokeFill).attr("stroke-width",l=>l.strokeWidth),d.showDataLabel)if(d.chartOrientation==="horizontal"){let l=function(u,S){const{data:T,label:C}=u;return S*C.length*O<=T.width-10};var X=l;(0,a.eW)(l,"fitsHorizontally");const O=.7,P=p.data.map((u,S)=>({data:u,label:b[S].toString()})).filter(u=>u.data.width>0&&u.data.height>0),_=P.map(u=>{const{data:S}=u;let T=S.height*.7;for(;!l(u,T)&&T>0;)T-=1;return T}),$=Math.floor(Math.min(..._));v.selectAll("text").data(P).enter().append("text").attr("x",u=>u.data.x+u.data.width-10).attr("y",u=>u.data.y+u.data.height/2).attr("text-anchor","end").attr("dominant-baseline","middle").attr("fill","black").attr("font-size",`${$}px`).text(u=>u.label)}else{let l=function(u,S,T){const{data:C,label:j}=u,o=S*j.length*.7,c=C.x+C.width/2,g=c-o/2,x=c+o/2,m=g>=C.x&&x<=C.x+C.width,r=C.y+T+S<=C.y+C.height;return m&&r};var Y=l;(0,a.eW)(l,"fitsInBar");const O=10,P=p.data.map((u,S)=>({data:u,label:b[S].toString()})).filter(u=>u.data.width>0&&u.data.height>0),_=P.map(u=>{const{data:S,label:T}=u;let C=S.width/(T.length*.7);for(;!l(u,C,O)&&C>0;)C-=1;return C}),$=Math.floor(Math.min(..._));v.selectAll("text").data(P).enter().append("text").attr("x",u=>u.data.x+u.data.width/2).attr("y",u=>u.data.y+O).attr("text-anchor","middle").attr("dominant-baseline","hanging").attr("fill","black").attr("font-size",`${$}px`).text(u=>u.label)}break;case"text":v.selectAll("text").data(p.data).enter().append("text").attr("x",0).attr("y",0).attr("fill",l=>l.fill).attr("font-size",l=>l.fontSize).attr("dominant-baseline",l=>A(l.verticalPos)).attr("text-anchor",l=>L(l.horizontalPos)).attr("transform",l=>B(l)).text(l=>l.text);break;case"path":v.selectAll("path").data(p.data).enter().append("path").attr("d",l=>l.path).attr("fill",l=>l.fill?l.fill:"none").attr("stroke",l=>l.strokeFill).attr("stroke-width",l=>l.strokeWidth);break}}},"draw"),ke={draw:_e},Ce={parser:ce,db:Ae,renderer:ke}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunk_alife_paul_ai_assistant=self.webpackChunk_alife_paul_ai_assistant||[]).push([[7929],{47929:function(n,a,_){_.d(a,{createGitGraphServices:function(){return s.z}});var s=_(62815),u=_(9423)}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunk_alife_paul_ai_assistant=self.webpackChunk_alife_paul_ai_assistant||[]).push([[8164],{8164:function(n,a,_){_.d(a,{createRadarServices:function(){return s.T}});var s=_(2557),u=_(9423)}}]);
|
|
@@ -0,0 +1,221 @@
|
|
|
1
|
+
!(function(){"use strict";var ae=(yt,Z,k)=>new Promise((Q,R)=>{var q=r=>{try{_(k.next(r))}catch(v){R(v)}},F=r=>{try{_(k.throw(r))}catch(v){R(v)}},_=r=>r.done?Q(r.value):Promise.resolve(r.value).then(q,F);_((k=k.apply(yt,Z)).next())});(self.webpackChunk_alife_paul_ai_assistant=self.webpackChunk_alife_paul_ai_assistant||[]).push([[834],{26620:function(yt,Z,k){k.d(Z,{q:function(){return q}});var Q=k(35096),R=k(989),q=(0,Q.eW)((F,_)=>{let r;return _==="sandbox"&&(r=(0,R.Ys)("#i"+F)),(_==="sandbox"?(0,R.Ys)(r.nodes()[0].contentDocument.body):(0,R.Ys)("body")).select(`[id="${F}"]`)},"getDiagramElement")},80834:function(yt,Z,k){var tt;k.d(Z,{Ee:function(){return Ie},J8:function(){return $},_$:function(){return Ae},oI:function(){return Oe}});var Q=k(26620),R=k(43663),q=k(23386),F=k(4284),_=k(99970),r=k(35096),v=function(){var e=(0,r.eW)(function(X,c,d,o){for(d=d||{},o=X.length;o--;d[X[o]]=c);return d},"o"),t=[1,2],s=[1,3],n=[1,4],i=[2,4],l=[1,9],u=[1,11],S=[1,16],p=[1,17],E=[1,18],T=[1,19],m=[1,33],M=[1,20],W=[1,21],A=[1,22],I=[1,23],N=[1,24],f=[1,26],O=[1,27],x=[1,28],G=[1,29],Y=[1,30],w=[1,31],V=[1,32],et=[1,35],Tt=[1,36],bt=[1,37],kt=[1,38],nt=[1,34],y=[1,4,5,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,41,45,48,51,52,53,54,57],mt=[1,4,5,14,15,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,39,40,41,45,48,51,52,53,54,57],se=[4,5,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,41,45,48,51,52,53,54,57],It={trace:(0,r.eW)(function(){},"trace"),yy:{},symbols_:{error:2,start:3,SPACE:4,NL:5,SD:6,document:7,line:8,statement:9,classDefStatement:10,styleStatement:11,cssClassStatement:12,idStatement:13,DESCR:14,"-->":15,HIDE_EMPTY:16,scale:17,WIDTH:18,COMPOSIT_STATE:19,STRUCT_START:20,STRUCT_STOP:21,STATE_DESCR:22,AS:23,ID:24,FORK:25,JOIN:26,CHOICE:27,CONCURRENT:28,note:29,notePosition:30,NOTE_TEXT:31,direction:32,acc_title:33,acc_title_value:34,acc_descr:35,acc_descr_value:36,acc_descr_multiline_value:37,CLICK:38,STRING:39,HREF:40,classDef:41,CLASSDEF_ID:42,CLASSDEF_STYLEOPTS:43,DEFAULT:44,style:45,STYLE_IDS:46,STYLEDEF_STYLEOPTS:47,class:48,CLASSENTITY_IDS:49,STYLECLASS:50,direction_tb:51,direction_bt:52,direction_rl:53,direction_lr:54,eol:55,";":56,EDGE_STATE:57,STYLE_SEPARATOR:58,left_of:59,right_of:60,$accept:0,$end:1},terminals_:{2:"error",4:"SPACE",5:"NL",6:"SD",14:"DESCR",15:"-->",16:"HIDE_EMPTY",17:"scale",18:"WIDTH",19:"COMPOSIT_STATE",20:"STRUCT_START",21:"STRUCT_STOP",22:"STATE_DESCR",23:"AS",24:"ID",25:"FORK",26:"JOIN",27:"CHOICE",28:"CONCURRENT",29:"note",31:"NOTE_TEXT",33:"acc_title",34:"acc_title_value",35:"acc_descr",36:"acc_descr_value",37:"acc_descr_multiline_value",38:"CLICK",39:"STRING",40:"HREF",41:"classDef",42:"CLASSDEF_ID",43:"CLASSDEF_STYLEOPTS",44:"DEFAULT",45:"style",46:"STYLE_IDS",47:"STYLEDEF_STYLEOPTS",48:"class",49:"CLASSENTITY_IDS",50:"STYLECLASS",51:"direction_tb",52:"direction_bt",53:"direction_rl",54:"direction_lr",56:";",57:"EDGE_STATE",58:"STYLE_SEPARATOR",59:"left_of",60:"right_of"},productions_:[0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[8,1],[8,1],[9,1],[9,1],[9,1],[9,1],[9,2],[9,3],[9,4],[9,1],[9,2],[9,1],[9,4],[9,3],[9,6],[9,1],[9,1],[9,1],[9,1],[9,4],[9,4],[9,1],[9,2],[9,2],[9,1],[9,5],[9,5],[10,3],[10,3],[11,3],[12,3],[32,1],[32,1],[32,1],[32,1],[55,1],[55,1],[13,1],[13,1],[13,3],[13,3],[30,1],[30,1]],performAction:(0,r.eW)(function(c,d,o,g,b,a,pt){var h=a.length-1;switch(b){case 3:return g.setRootDoc(a[h]),a[h];break;case 4:this.$=[];break;case 5:a[h]!="nl"&&(a[h-1].push(a[h]),this.$=a[h-1]);break;case 6:case 7:this.$=a[h];break;case 8:this.$="nl";break;case 12:this.$=a[h];break;case 13:const vt=a[h-1];vt.description=g.trimColon(a[h]),this.$=vt;break;case 14:this.$={stmt:"relation",state1:a[h-2],state2:a[h]};break;case 15:const Ct=g.trimColon(a[h]);this.$={stmt:"relation",state1:a[h-3],state2:a[h-1],description:Ct};break;case 19:this.$={stmt:"state",id:a[h-3],type:"default",description:"",doc:a[h-1]};break;case 20:var st=a[h],ot=a[h-2].trim();if(a[h].match(":")){var St=a[h].split(":");st=St[0],ot=[ot,St[1]]}this.$={stmt:"state",id:st,type:"default",description:ot};break;case 21:this.$={stmt:"state",id:a[h-3],type:"default",description:a[h-5],doc:a[h-1]};break;case 22:this.$={stmt:"state",id:a[h],type:"fork"};break;case 23:this.$={stmt:"state",id:a[h],type:"join"};break;case 24:this.$={stmt:"state",id:a[h],type:"choice"};break;case 25:this.$={stmt:"state",id:g.getDividerId(),type:"divider"};break;case 26:this.$={stmt:"state",id:a[h-1].trim(),note:{position:a[h-2].trim(),text:a[h].trim()}};break;case 29:this.$=a[h].trim(),g.setAccTitle(this.$);break;case 30:case 31:this.$=a[h].trim(),g.setAccDescription(this.$);break;case 32:this.$={stmt:"click",id:a[h-3],url:a[h-2],tooltip:a[h-1]};break;case 33:this.$={stmt:"click",id:a[h-3],url:a[h-1],tooltip:""};break;case 34:case 35:this.$={stmt:"classDef",id:a[h-1].trim(),classes:a[h].trim()};break;case 36:this.$={stmt:"style",id:a[h-1].trim(),styleClass:a[h].trim()};break;case 37:this.$={stmt:"applyClass",id:a[h-1].trim(),styleClass:a[h].trim()};break;case 38:g.setDirection("TB"),this.$={stmt:"dir",value:"TB"};break;case 39:g.setDirection("BT"),this.$={stmt:"dir",value:"BT"};break;case 40:g.setDirection("RL"),this.$={stmt:"dir",value:"RL"};break;case 41:g.setDirection("LR"),this.$={stmt:"dir",value:"LR"};break;case 44:case 45:this.$={stmt:"state",id:a[h].trim(),type:"default",description:""};break;case 46:this.$={stmt:"state",id:a[h-2].trim(),classes:[a[h].trim()],type:"default",description:""};break;case 47:this.$={stmt:"state",id:a[h-2].trim(),classes:[a[h].trim()],type:"default",description:""};break}},"anonymous"),table:[{3:1,4:t,5:s,6:n},{1:[3]},{3:5,4:t,5:s,6:n},{3:6,4:t,5:s,6:n},e([1,4,5,16,17,19,22,24,25,26,27,28,29,33,35,37,38,41,45,48,51,52,53,54,57],i,{7:7}),{1:[2,1]},{1:[2,2]},{1:[2,3],4:l,5:u,8:8,9:10,10:12,11:13,12:14,13:15,16:S,17:p,19:E,22:T,24:m,25:M,26:W,27:A,28:I,29:N,32:25,33:f,35:O,37:x,38:G,41:Y,45:w,48:V,51:et,52:Tt,53:bt,54:kt,57:nt},e(y,[2,5]),{9:39,10:12,11:13,12:14,13:15,16:S,17:p,19:E,22:T,24:m,25:M,26:W,27:A,28:I,29:N,32:25,33:f,35:O,37:x,38:G,41:Y,45:w,48:V,51:et,52:Tt,53:bt,54:kt,57:nt},e(y,[2,7]),e(y,[2,8]),e(y,[2,9]),e(y,[2,10]),e(y,[2,11]),e(y,[2,12],{14:[1,40],15:[1,41]}),e(y,[2,16]),{18:[1,42]},e(y,[2,18],{20:[1,43]}),{23:[1,44]},e(y,[2,22]),e(y,[2,23]),e(y,[2,24]),e(y,[2,25]),{30:45,31:[1,46],59:[1,47],60:[1,48]},e(y,[2,28]),{34:[1,49]},{36:[1,50]},e(y,[2,31]),{13:51,24:m,57:nt},{42:[1,52],44:[1,53]},{46:[1,54]},{49:[1,55]},e(mt,[2,44],{58:[1,56]}),e(mt,[2,45],{58:[1,57]}),e(y,[2,38]),e(y,[2,39]),e(y,[2,40]),e(y,[2,41]),e(y,[2,6]),e(y,[2,13]),{13:58,24:m,57:nt},e(y,[2,17]),e(se,i,{7:59}),{24:[1,60]},{24:[1,61]},{23:[1,62]},{24:[2,48]},{24:[2,49]},e(y,[2,29]),e(y,[2,30]),{39:[1,63],40:[1,64]},{43:[1,65]},{43:[1,66]},{47:[1,67]},{50:[1,68]},{24:[1,69]},{24:[1,70]},e(y,[2,14],{14:[1,71]}),{4:l,5:u,8:8,9:10,10:12,11:13,12:14,13:15,16:S,17:p,19:E,21:[1,72],22:T,24:m,25:M,26:W,27:A,28:I,29:N,32:25,33:f,35:O,37:x,38:G,41:Y,45:w,48:V,51:et,52:Tt,53:bt,54:kt,57:nt},e(y,[2,20],{20:[1,73]}),{31:[1,74]},{24:[1,75]},{39:[1,76]},{39:[1,77]},e(y,[2,34]),e(y,[2,35]),e(y,[2,36]),e(y,[2,37]),e(mt,[2,46]),e(mt,[2,47]),e(y,[2,15]),e(y,[2,19]),e(se,i,{7:78}),e(y,[2,26]),e(y,[2,27]),{5:[1,79]},{5:[1,80]},{4:l,5:u,8:8,9:10,10:12,11:13,12:14,13:15,16:S,17:p,19:E,21:[1,81],22:T,24:m,25:M,26:W,27:A,28:I,29:N,32:25,33:f,35:O,37:x,38:G,41:Y,45:w,48:V,51:et,52:Tt,53:bt,54:kt,57:nt},e(y,[2,32]),e(y,[2,33]),e(y,[2,21])],defaultActions:{5:[2,1],6:[2,2],47:[2,48],48:[2,49]},parseError:(0,r.eW)(function(c,d){if(d.recoverable)this.trace(c);else{var o=new Error(c);throw o.hash=d,o}},"parseError"),parse:(0,r.eW)(function(c){var d=this,o=[0],g=[],b=[null],a=[],pt=this.table,h="",st=0,ot=0,St=0,vt=2,Ct=1,we=a.slice.call(arguments,1),D=Object.create(this.lexer),it={yy:{}};for(var Nt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Nt)&&(it.yy[Nt]=this.yy[Nt]);D.setInput(c,it.yy),it.yy.lexer=D,it.yy.parser=this,typeof D.yylloc=="undefined"&&(D.yylloc={});var wt=D.yylloc;a.push(wt);var Pe=D.options&&D.options.ranges;typeof it.yy.parseError=="function"?this.parseError=it.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function We(P){o.length=o.length-2*P,b.length=b.length-P,a.length=a.length-P}(0,r.eW)(We,"popStack");function ie(){var P;return P=g.pop()||D.lex()||Ct,typeof P!="number"&&(P instanceof Array&&(g=P,P=g.pop()),P=d.symbols_[P]||P),P}(0,r.eW)(ie,"lex");for(var L,Pt,rt,B,Be,Wt,ct={},At,U,re,xt;;){if(rt=o[o.length-1],this.defaultActions[rt]?B=this.defaultActions[rt]:((L===null||typeof L=="undefined")&&(L=ie()),B=pt[rt]&&pt[rt][L]),typeof B=="undefined"||!B.length||!B[0]){var Bt="";xt=[];for(At in pt[rt])this.terminals_[At]&&At>vt&&xt.push("'"+this.terminals_[At]+"'");D.showPosition?Bt="Parse error on line "+(st+1)+`:
|
|
2
|
+
`+D.showPosition()+`
|
|
3
|
+
Expecting `+xt.join(", ")+", got '"+(this.terminals_[L]||L)+"'":Bt="Parse error on line "+(st+1)+": Unexpected "+(L==Ct?"end of input":"'"+(this.terminals_[L]||L)+"'"),this.parseError(Bt,{text:D.match,token:this.terminals_[L]||L,line:D.yylineno,loc:wt,expected:xt})}if(B[0]instanceof Array&&B.length>1)throw new Error("Parse Error: multiple actions possible at state: "+rt+", token: "+L);switch(B[0]){case 1:o.push(L),b.push(D.yytext),a.push(D.yylloc),o.push(B[1]),L=null,Pt?(L=Pt,Pt=null):(ot=D.yyleng,h=D.yytext,st=D.yylineno,wt=D.yylloc,St>0&&St--);break;case 2:if(U=this.productions_[B[1]][1],ct.$=b[b.length-U],ct._$={first_line:a[a.length-(U||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(U||1)].first_column,last_column:a[a.length-1].last_column},Pe&&(ct._$.range=[a[a.length-(U||1)].range[0],a[a.length-1].range[1]]),Wt=this.performAction.apply(ct,[h,ot,st,it.yy,B[1],b,a].concat(we)),typeof Wt!="undefined")return Wt;U&&(o=o.slice(0,-1*U*2),b=b.slice(0,-1*U),a=a.slice(0,-1*U)),o.push(this.productions_[B[1]][0]),b.push(ct.$),a.push(ct._$),re=pt[o[o.length-2]][o[o.length-1]],o.push(re);break;case 3:return!0}}return!0},"parse")},Ne=function(){var X={EOF:1,parseError:(0,r.eW)(function(d,o){if(this.yy.parser)this.yy.parser.parseError(d,o);else throw new Error(d)},"parseError"),setInput:(0,r.eW)(function(c,d){return this.yy=d||this.yy||{},this._input=c,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:(0,r.eW)(function(){var c=this._input[0];this.yytext+=c,this.yyleng++,this.offset++,this.match+=c,this.matched+=c;var d=c.match(/(?:\r\n?|\n).*/g);return d?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),c},"input"),unput:(0,r.eW)(function(c){var d=c.length,o=c.split(/(?:\r\n?|\n)/g);this._input=c+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-d),this.offset-=d;var g=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),o.length-1&&(this.yylineno-=o.length-1);var b=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:o?(o.length===g.length?this.yylloc.first_column:0)+g[g.length-o.length].length-o[0].length:this.yylloc.first_column-d},this.options.ranges&&(this.yylloc.range=[b[0],b[0]+this.yyleng-d]),this.yyleng=this.yytext.length,this},"unput"),more:(0,r.eW)(function(){return this._more=!0,this},"more"),reject:(0,r.eW)(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:(0,r.eW)(function(c){this.unput(this.match.slice(c))},"less"),pastInput:(0,r.eW)(function(){var c=this.matched.substr(0,this.matched.length-this.match.length);return(c.length>20?"...":"")+c.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:(0,r.eW)(function(){var c=this.match;return c.length<20&&(c+=this._input.substr(0,20-c.length)),(c.substr(0,20)+(c.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:(0,r.eW)(function(){var c=this.pastInput(),d=new Array(c.length+1).join("-");return c+this.upcomingInput()+`
|
|
5
|
+
`+d+"^"},"showPosition"),test_match:(0,r.eW)(function(c,d){var o,g,b;if(this.options.backtrack_lexer&&(b={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&&(b.yylloc.range=this.yylloc.range.slice(0))),g=c[0].match(/(?:\r\n?|\n).*/g),g&&(this.yylineno+=g.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:g?g[g.length-1].length-g[g.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+c[0].length},this.yytext+=c[0],this.match+=c[0],this.matches=c,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(c[0].length),this.matched+=c[0],o=this.performAction.call(this,this.yy,this,d,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),o)return o;if(this._backtrack){for(var a in b)this[a]=b[a];return!1}return!1},"test_match"),next:(0,r.eW)(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var c,d,o,g;this._more||(this.yytext="",this.match="");for(var b=this._currentRules(),a=0;a<b.length;a++)if(o=this._input.match(this.rules[b[a]]),o&&(!d||o[0].length>d[0].length)){if(d=o,g=a,this.options.backtrack_lexer){if(c=this.test_match(o,b[a]),c!==!1)return c;if(this._backtrack){d=!1;continue}else return!1}else if(!this.options.flex)break}return d?(c=this.test_match(d,b[g]),c!==!1?c:!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:(0,r.eW)(function(){var d=this.next();return d||this.lex()},"lex"),begin:(0,r.eW)(function(d){this.conditionStack.push(d)},"begin"),popState:(0,r.eW)(function(){var d=this.conditionStack.length-1;return d>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:(0,r.eW)(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:(0,r.eW)(function(d){return d=this.conditionStack.length-1-Math.abs(d||0),d>=0?this.conditionStack[d]:"INITIAL"},"topState"),pushState:(0,r.eW)(function(d){this.begin(d)},"pushState"),stateStackSize:(0,r.eW)(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:(0,r.eW)(function(d,o,g,b){var a=b;switch(g){case 0:return 38;case 1:return 40;case 2:return 39;case 3:return 44;case 4:return 51;case 5:return 52;case 6:return 53;case 7:return 54;case 8:break;case 9:break;case 10:return 5;case 11:break;case 12:break;case 13:break;case 14:break;case 15:return this.pushState("SCALE"),17;break;case 16:return 18;case 17:this.popState();break;case 18:return this.begin("acc_title"),33;break;case 19:return this.popState(),"acc_title_value";break;case 20:return this.begin("acc_descr"),35;break;case 21:return this.popState(),"acc_descr_value";break;case 22:this.begin("acc_descr_multiline");break;case 23:this.popState();break;case 24:return"acc_descr_multiline_value";case 25:return this.pushState("CLASSDEF"),41;break;case 26:return this.popState(),this.pushState("CLASSDEFID"),"DEFAULT_CLASSDEF_ID";break;case 27:return this.popState(),this.pushState("CLASSDEFID"),42;break;case 28:return this.popState(),43;break;case 29:return this.pushState("CLASS"),48;break;case 30:return this.popState(),this.pushState("CLASS_STYLE"),49;break;case 31:return this.popState(),50;break;case 32:return this.pushState("STYLE"),45;break;case 33:return this.popState(),this.pushState("STYLEDEF_STYLES"),46;break;case 34:return this.popState(),47;break;case 35:return this.pushState("SCALE"),17;break;case 36:return 18;case 37:this.popState();break;case 38:this.pushState("STATE");break;case 39:return this.popState(),o.yytext=o.yytext.slice(0,-8).trim(),25;break;case 40:return this.popState(),o.yytext=o.yytext.slice(0,-8).trim(),26;break;case 41:return this.popState(),o.yytext=o.yytext.slice(0,-10).trim(),27;break;case 42:return this.popState(),o.yytext=o.yytext.slice(0,-8).trim(),25;break;case 43:return this.popState(),o.yytext=o.yytext.slice(0,-8).trim(),26;break;case 44:return this.popState(),o.yytext=o.yytext.slice(0,-10).trim(),27;break;case 45:return 51;case 46:return 52;case 47:return 53;case 48:return 54;case 49:this.pushState("STATE_STRING");break;case 50:return this.pushState("STATE_ID"),"AS";break;case 51:return this.popState(),"ID";break;case 52:this.popState();break;case 53:return"STATE_DESCR";case 54:return 19;case 55:this.popState();break;case 56:return this.popState(),this.pushState("struct"),20;break;case 57:break;case 58:return this.popState(),21;break;case 59:break;case 60:return this.begin("NOTE"),29;break;case 61:return this.popState(),this.pushState("NOTE_ID"),59;break;case 62:return this.popState(),this.pushState("NOTE_ID"),60;break;case 63:this.popState(),this.pushState("FLOATING_NOTE");break;case 64:return this.popState(),this.pushState("FLOATING_NOTE_ID"),"AS";break;case 65:break;case 66:return"NOTE_TEXT";case 67:return this.popState(),"ID";break;case 68:return this.popState(),this.pushState("NOTE_TEXT"),24;break;case 69:return this.popState(),o.yytext=o.yytext.substr(2).trim(),31;break;case 70:return this.popState(),o.yytext=o.yytext.slice(0,-8).trim(),31;break;case 71:return 6;case 72:return 6;case 73:return 16;case 74:return 57;case 75:return 24;case 76:return o.yytext=o.yytext.trim(),14;break;case 77:return 15;case 78:return 28;case 79:return 58;case 80:return 5;case 81:return"INVALID"}},"anonymous"),rules:[/^(?:click\b)/i,/^(?:href\b)/i,/^(?:"[^"]*")/i,/^(?:default\b)/i,/^(?:.*direction\s+TB[^\n]*)/i,/^(?:.*direction\s+BT[^\n]*)/i,/^(?:.*direction\s+RL[^\n]*)/i,/^(?:.*direction\s+LR[^\n]*)/i,/^(?:%%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n]+)/i,/^(?:[\s]+)/i,/^(?:((?!\n)\s)+)/i,/^(?:#[^\n]*)/i,/^(?:%[^\n]*)/i,/^(?:scale\s+)/i,/^(?:\d+)/i,/^(?:\s+width\b)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:classDef\s+)/i,/^(?:DEFAULT\s+)/i,/^(?:\w+\s+)/i,/^(?:[^\n]*)/i,/^(?:class\s+)/i,/^(?:(\w+)+((,\s*\w+)*))/i,/^(?:[^\n]*)/i,/^(?:style\s+)/i,/^(?:[\w,]+\s+)/i,/^(?:[^\n]*)/i,/^(?:scale\s+)/i,/^(?:\d+)/i,/^(?:\s+width\b)/i,/^(?:state\s+)/i,/^(?:.*<<fork>>)/i,/^(?:.*<<join>>)/i,/^(?:.*<<choice>>)/i,/^(?:.*\[\[fork\]\])/i,/^(?:.*\[\[join\]\])/i,/^(?:.*\[\[choice\]\])/i,/^(?:.*direction\s+TB[^\n]*)/i,/^(?:.*direction\s+BT[^\n]*)/i,/^(?:.*direction\s+RL[^\n]*)/i,/^(?:.*direction\s+LR[^\n]*)/i,/^(?:["])/i,/^(?:\s*as\s+)/i,/^(?:[^\n\{]*)/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:[^\n\s\{]+)/i,/^(?:\n)/i,/^(?:\{)/i,/^(?:%%(?!\{)[^\n]*)/i,/^(?:\})/i,/^(?:[\n])/i,/^(?:note\s+)/i,/^(?:left of\b)/i,/^(?:right of\b)/i,/^(?:")/i,/^(?:\s*as\s*)/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:[^\n]*)/i,/^(?:\s*[^:\n\s\-]+)/i,/^(?:\s*:[^:\n;]+)/i,/^(?:[\s\S]*?end note\b)/i,/^(?:stateDiagram\s+)/i,/^(?:stateDiagram-v2\s+)/i,/^(?:hide empty description\b)/i,/^(?:\[\*\])/i,/^(?:[^:\n\s\-\{]+)/i,/^(?:\s*:[^:\n;]+)/i,/^(?:-->)/i,/^(?:--)/i,/^(?::::)/i,/^(?:$)/i,/^(?:.)/i],conditions:{LINE:{rules:[12,13],inclusive:!1},struct:{rules:[12,13,25,29,32,38,45,46,47,48,57,58,59,60,74,75,76,77,78],inclusive:!1},FLOATING_NOTE_ID:{rules:[67],inclusive:!1},FLOATING_NOTE:{rules:[64,65,66],inclusive:!1},NOTE_TEXT:{rules:[69,70],inclusive:!1},NOTE_ID:{rules:[68],inclusive:!1},NOTE:{rules:[61,62,63],inclusive:!1},STYLEDEF_STYLEOPTS:{rules:[],inclusive:!1},STYLEDEF_STYLES:{rules:[34],inclusive:!1},STYLE_IDS:{rules:[],inclusive:!1},STYLE:{rules:[33],inclusive:!1},CLASS_STYLE:{rules:[31],inclusive:!1},CLASS:{rules:[30],inclusive:!1},CLASSDEFID:{rules:[28],inclusive:!1},CLASSDEF:{rules:[26,27],inclusive:!1},acc_descr_multiline:{rules:[23,24],inclusive:!1},acc_descr:{rules:[21],inclusive:!1},acc_title:{rules:[19],inclusive:!1},SCALE:{rules:[16,17,36,37],inclusive:!1},ALIAS:{rules:[],inclusive:!1},STATE_ID:{rules:[51],inclusive:!1},STATE_STRING:{rules:[52,53],inclusive:!1},FORK_STATE:{rules:[],inclusive:!1},STATE:{rules:[12,13,39,40,41,42,43,44,49,50,54,55,56],inclusive:!1},ID:{rules:[12,13],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7,8,9,10,11,13,14,15,18,20,22,25,29,32,35,38,56,60,71,72,73,74,75,76,77,79,80,81],inclusive:!0}}};return X}();It.lexer=Ne;function Dt(){this.yy={}}return(0,r.eW)(Dt,"Parser"),Dt.prototype=It,It.Parser=Dt,new Dt}();v.parser=v;var $=v,j="TB",K="TB",lt="dir",H="state",z="root",at="relation",ne="classDef",oe="style",ce="applyClass",ht="default",$t="divider",Mt="fill:none",Yt="fill: #333",Ft="c",Gt="text",Vt="normal",Lt="rect",Ot="rectWithTitle",le="stateStart",he="stateEnd",Ut="divider",jt="roundedWithTitle",ue="note",de="noteGroup",ut="statediagram",fe="state",pe=`${ut}-${fe}`,Kt="transition",Se="note",ye="note-edge",_e=`${Kt} ${ye}`,ge=`${ut}-${Se}`,Ee="cluster",Te=`${ut}-${Ee}`,be="cluster-alt",ke=`${ut}-${be}`,Ht="parent",zt="note",me="state",Rt="----",De=`${Rt}${zt}`,Jt=`${Rt}${Ht}`,Xt=(0,r.eW)((e,t=K)=>{if(!e.doc)return t;let s=t;for(const n of e.doc)n.stmt==="dir"&&(s=n.value);return s},"getDir"),ve=(0,r.eW)(function(e,t){return t.db.getClasses()},"getClasses"),Ce=(0,r.eW)(function(e,t,s,n){return ae(this,null,function*(){var T,m;r.cM.info("REF0:"),r.cM.info("Drawing state diagram (v2)",t);const{securityLevel:i,state:l,layout:u}=(0,_.nV)();n.db.extract(n.db.getRootDocV2());const S=n.db.getData(),p=(0,Q.q)(t,i);S.type=n.type,S.layoutAlgorithm=u,S.nodeSpacing=(l==null?void 0:l.nodeSpacing)||50,S.rankSpacing=(l==null?void 0:l.rankSpacing)||50,S.markers=["barb"],S.diagramId=t,yield(0,q.sY)(S,p);const E=8;try{(typeof n.db.getLinks=="function"?n.db.getLinks():new Map).forEach((W,A)=>{var Y;const I=typeof A=="string"?A:typeof(A==null?void 0:A.id)=="string"?A.id:"";if(!I){r.cM.warn("\u26A0\uFE0F Invalid or missing stateId from key:",JSON.stringify(A));return}const N=(Y=p.node())==null?void 0:Y.querySelectorAll("g");let f;if(N==null||N.forEach(w=>{var et;((et=w.textContent)==null?void 0:et.trim())===I&&(f=w)}),!f){r.cM.warn("\u26A0\uFE0F Could not find node matching text:",I);return}const O=f.parentNode;if(!O){r.cM.warn("\u26A0\uFE0F Node has no parent, cannot wrap:",I);return}const x=document.createElementNS("http://www.w3.org/2000/svg","a"),G=W.url.replace(/^"+|"+$/g,"");if(x.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",G),x.setAttribute("target","_blank"),W.tooltip){const w=W.tooltip.replace(/^"+|"+$/g,"");x.setAttribute("title",w)}O.replaceChild(x,f),x.appendChild(f),r.cM.info("\u{1F517} Wrapped node in <a> tag for:",I,W.url)})}catch(M){r.cM.error("\u274C Error injecting clickable links:",M)}F.w8.insertTitle(p,"statediagramTitleText",(T=l==null?void 0:l.titleTopMargin)!=null?T:25,n.db.getDiagramTitle()),(0,R.j)(p,E,ut,(m=l==null?void 0:l.useMaxWidth)!=null?m:!0)})},"draw"),Ae={getClasses:ve,draw:Ce,getDir:Xt},_t=new Map,J=0;function gt(e="",t=0,s="",n=Rt){const i=s!==null&&s.length>0?`${n}${s}`:"";return`${me}-${e}${i}-${t}`}(0,r.eW)(gt,"stateDomId");var xe=(0,r.eW)((e,t,s,n,i,l,u,S)=>{r.cM.trace("items",t),t.forEach(p=>{var E;switch(p.stmt){case H:ft(e,p,s,n,i,l,u,S);break;case ht:ft(e,p,s,n,i,l,u,S);break;case at:{ft(e,p.state1,s,n,i,l,u,S),ft(e,p.state2,s,n,i,l,u,S);const T={id:"edge"+J,start:p.state1.id,end:p.state2.id,arrowhead:"normal",arrowTypeEnd:"arrow_barb",style:Mt,labelStyle:"",label:_.SY.sanitizeText((E=p.description)!=null?E:"",(0,_.nV)()),arrowheadStyle:Yt,labelpos:Ft,labelType:Gt,thickness:Vt,classes:Kt,look:u};i.push(T),J++}break}})},"setupDoc"),Zt=(0,r.eW)((e,t=K)=>{let s=t;if(e.doc)for(const n of e.doc)n.stmt==="dir"&&(s=n.value);return s},"getDir");function dt(e,t,s){if(!t.id||t.id==="</join></fork>"||t.id==="</choice>")return;t.cssClasses&&(Array.isArray(t.cssCompiledStyles)||(t.cssCompiledStyles=[]),t.cssClasses.split(" ").forEach(i=>{var u;const l=s.get(i);l&&(t.cssCompiledStyles=[...(u=t.cssCompiledStyles)!=null?u:[],...l.styles])}));const n=e.find(i=>i.id===t.id);n?Object.assign(n,t):e.push(t)}(0,r.eW)(dt,"insertOrUpdateNode");function Qt(e){var t,s;return(s=(t=e==null?void 0:e.classes)==null?void 0:t.join(" "))!=null?s:""}(0,r.eW)(Qt,"getClassesFromDbInfo");function qt(e){var t;return(t=e==null?void 0:e.styles)!=null?t:[]}(0,r.eW)(qt,"getStylesFromDbInfo");var ft=(0,r.eW)((e,t,s,n,i,l,u,S)=>{var W,A,I;const p=t.id,E=s.get(p),T=Qt(E),m=qt(E),M=(0,_.nV)();if(r.cM.info("dataFetcher parsedItem",t,E,m),p!=="root"){let N=Lt;t.start===!0?N=le:t.start===!1&&(N=he),t.type!==ht&&(N=t.type),_t.get(p)||_t.set(p,{id:p,shape:N,description:_.SY.sanitizeText(p,M),cssClasses:`${T} ${pe}`,cssStyles:m});const f=_t.get(p);t.description&&(Array.isArray(f.description)?(f.shape=Ot,f.description.push(t.description)):(W=f.description)!=null&&W.length&&f.description.length>0?(f.shape=Ot,f.description===p?f.description=[t.description]:f.description=[f.description,t.description]):(f.shape=Lt,f.description=t.description),f.description=_.SY.sanitizeTextOrArray(f.description,M)),((A=f.description)==null?void 0:A.length)===1&&f.shape===Ot&&(f.type==="group"?f.shape=jt:f.shape=Lt),!f.type&&t.doc&&(r.cM.info("Setting cluster for XCX",p,Zt(t)),f.type="group",f.isGroup=!0,f.dir=Zt(t),f.shape=t.type===$t?Ut:jt,f.cssClasses=`${f.cssClasses} ${Te} ${l?ke:""}`);const O={labelStyle:"",shape:f.shape,label:f.description,cssClasses:f.cssClasses,cssCompiledStyles:[],cssStyles:f.cssStyles,id:p,dir:f.dir,domId:gt(p,J),type:f.type,isGroup:f.type==="group",padding:8,rx:10,ry:10,look:u};if(O.shape===Ut&&(O.label=""),e&&e.id!=="root"&&(r.cM.trace("Setting node ",p," to be child of its parent ",e.id),O.parentId=e.id),O.centerLabel=!0,t.note){const x={labelStyle:"",shape:ue,label:t.note.text,cssClasses:ge,cssStyles:[],cssCompiledStyles:[],id:p+De+"-"+J,domId:gt(p,J,zt),type:f.type,isGroup:f.type==="group",padding:(I=M.flowchart)==null?void 0:I.padding,look:u,position:t.note.position},G=p+Jt,Y={labelStyle:"",shape:de,label:t.note.text,cssClasses:f.cssClasses,cssStyles:[],id:p+Jt,domId:gt(p,J,Ht),type:"group",isGroup:!0,padding:16,look:u,position:t.note.position};J++,Y.id=G,x.parentId=G,dt(n,Y,S),dt(n,x,S),dt(n,O,S);let w=p,V=x.id;t.note.position==="left of"&&(w=x.id,V=p),i.push({id:w+"-"+V,start:w,end:V,arrowhead:"none",arrowTypeEnd:"",style:Mt,labelStyle:"",classes:_e,arrowheadStyle:Yt,labelpos:Ft,labelType:Gt,thickness:Vt,look:u})}else dt(n,O,S)}t.doc&&(r.cM.trace("Adding nodes children "),xe(t,t.doc,s,n,i,!l,u,S))},"dataFetcher"),Le=(0,r.eW)(()=>{_t.clear(),J=0},"reset"),C={START_NODE:"[*]",START_TYPE:"start",END_NODE:"[*]",END_TYPE:"end",COLOR_KEYWORD:"color",FILL_KEYWORD:"fill",BG_FILL:"bgFill",STYLECLASS_SEP:","},te=(0,r.eW)(()=>new Map,"newClassesList"),ee=(0,r.eW)(()=>({relations:[],states:new Map,documents:{}}),"newDoc"),Et=(0,r.eW)(e=>JSON.parse(JSON.stringify(e)),"clone"),Oe=(tt=class{constructor(t){this.version=t,this.nodes=[],this.edges=[],this.rootDoc=[],this.classes=te(),this.documents={root:ee()},this.currentDocument=this.documents.root,this.startEndCount=0,this.dividerCnt=0,this.links=new Map,this.getAccTitle=_.eu,this.setAccTitle=_.GN,this.getAccDescription=_.Mx,this.setAccDescription=_.U$,this.setDiagramTitle=_.g2,this.getDiagramTitle=_.Kr,this.clear(),this.setRootDoc=this.setRootDoc.bind(this),this.getDividerId=this.getDividerId.bind(this),this.setDirection=this.setDirection.bind(this),this.trimColon=this.trimColon.bind(this)}extract(t){this.clear(!0);for(const i of Array.isArray(t)?t:t.doc)switch(i.stmt){case H:this.addState(i.id.trim(),i.type,i.doc,i.description,i.note);break;case at:this.addRelation(i.state1,i.state2,i.description);break;case ne:this.addStyleClass(i.id.trim(),i.classes);break;case oe:this.handleStyleDef(i);break;case ce:this.setCssClass(i.id.trim(),i.styleClass);break;case"click":this.addLink(i.id,i.url,i.tooltip);break}const s=this.getStates(),n=(0,_.nV)();Le(),ft(void 0,this.getRootDocV2(),s,this.nodes,this.edges,!0,n.look,this.classes);for(const i of this.nodes)if(Array.isArray(i.label)){if(i.description=i.label.slice(1),i.isGroup&&i.description.length>0)throw new Error(`Group nodes can only have label. Remove the additional description for node [${i.id}]`);i.label=i.label[0]}}handleStyleDef(t){const s=t.id.trim().split(","),n=t.styleClass.split(",");for(const i of s){let l=this.getState(i);if(!l){const u=i.trim();this.addState(u),l=this.getState(u)}l&&(l.styles=n.map(u=>{var S;return(S=u.replace(/;/g,""))==null?void 0:S.trim()}))}}setRootDoc(t){r.cM.info("Setting root doc",t),this.rootDoc=t,this.version===1?this.extract(t):this.extract(this.getRootDocV2())}docTranslator(t,s,n){if(s.stmt===at){this.docTranslator(t,s.state1,!0),this.docTranslator(t,s.state2,!1);return}if(s.stmt===H&&(s.id===C.START_NODE?(s.id=t.id+(n?"_start":"_end"),s.start=n):s.id=s.id.trim()),s.stmt!==z&&s.stmt!==H||!s.doc)return;const i=[];let l=[];for(const u of s.doc)if(u.type===$t){const S=Et(u);S.doc=Et(l),i.push(S),l=[]}else l.push(u);if(i.length>0&&l.length>0){const u={stmt:H,id:(0,F.Ox)(),type:"divider",doc:Et(l)};i.push(Et(u)),s.doc=i}s.doc.forEach(u=>this.docTranslator(s,u,!0))}getRootDocV2(){return this.docTranslator({id:z,stmt:z},{id:z,stmt:z,doc:this.rootDoc},!0),{id:z,doc:this.rootDoc}}addState(t,s=ht,n=void 0,i=void 0,l=void 0,u=void 0,S=void 0,p=void 0){const E=t==null?void 0:t.trim();if(!this.currentDocument.states.has(E))r.cM.info("Adding state ",E,i),this.currentDocument.states.set(E,{stmt:H,id:E,descriptions:[],type:s,doc:n,note:l,classes:[],styles:[],textStyles:[]});else{const T=this.currentDocument.states.get(E);if(!T)throw new Error(`State not found: ${E}`);T.doc||(T.doc=n),T.type||(T.type=s)}if(i&&(r.cM.info("Setting state description",E,i),(Array.isArray(i)?i:[i]).forEach(m=>this.addDescription(E,m.trim()))),l){const T=this.currentDocument.states.get(E);if(!T)throw new Error(`State not found: ${E}`);T.note=l,T.note.text=_.SY.sanitizeText(T.note.text,(0,_.nV)())}u&&(r.cM.info("Setting state classes",E,u),(Array.isArray(u)?u:[u]).forEach(m=>this.setCssClass(E,m.trim()))),S&&(r.cM.info("Setting state styles",E,S),(Array.isArray(S)?S:[S]).forEach(m=>this.setStyle(E,m.trim()))),p&&(r.cM.info("Setting state styles",E,S),(Array.isArray(p)?p:[p]).forEach(m=>this.setTextStyle(E,m.trim())))}clear(t){this.nodes=[],this.edges=[],this.documents={root:ee()},this.currentDocument=this.documents.root,this.startEndCount=0,this.classes=te(),t||(this.links=new Map,(0,_.ZH)())}getState(t){return this.currentDocument.states.get(t)}getStates(){return this.currentDocument.states}logDocuments(){r.cM.info("Documents = ",this.documents)}getRelations(){return this.currentDocument.relations}addLink(t,s,n){this.links.set(t,{url:s,tooltip:n}),r.cM.warn("Adding link",t,s,n)}getLinks(){return this.links}startIdIfNeeded(t=""){return t===C.START_NODE?(this.startEndCount++,`${C.START_TYPE}${this.startEndCount}`):t}startTypeIfNeeded(t="",s=ht){return t===C.START_NODE?C.START_TYPE:s}endIdIfNeeded(t=""){return t===C.END_NODE?(this.startEndCount++,`${C.END_TYPE}${this.startEndCount}`):t}endTypeIfNeeded(t="",s=ht){return t===C.END_NODE?C.END_TYPE:s}addRelationObjs(t,s,n=""){const i=this.startIdIfNeeded(t.id.trim()),l=this.startTypeIfNeeded(t.id.trim(),t.type),u=this.startIdIfNeeded(s.id.trim()),S=this.startTypeIfNeeded(s.id.trim(),s.type);this.addState(i,l,t.doc,t.description,t.note,t.classes,t.styles,t.textStyles),this.addState(u,S,s.doc,s.description,s.note,s.classes,s.styles,s.textStyles),this.currentDocument.relations.push({id1:i,id2:u,relationTitle:_.SY.sanitizeText(n,(0,_.nV)())})}addRelation(t,s,n){if(typeof t=="object"&&typeof s=="object")this.addRelationObjs(t,s,n);else if(typeof t=="string"&&typeof s=="string"){const i=this.startIdIfNeeded(t.trim()),l=this.startTypeIfNeeded(t),u=this.endIdIfNeeded(s.trim()),S=this.endTypeIfNeeded(s);this.addState(i,l),this.addState(u,S),this.currentDocument.relations.push({id1:i,id2:u,relationTitle:n?_.SY.sanitizeText(n,(0,_.nV)()):void 0})}}addDescription(t,s){var l;const n=this.currentDocument.states.get(t),i=s.startsWith(":")?s.replace(":","").trim():s;(l=n==null?void 0:n.descriptions)==null||l.push(_.SY.sanitizeText(i,(0,_.nV)()))}cleanupLabel(t){return t.startsWith(":")?t.slice(2).trim():t.trim()}getDividerId(){return this.dividerCnt++,`divider-id-${this.dividerCnt}`}addStyleClass(t,s=""){this.classes.has(t)||this.classes.set(t,{id:t,styles:[],textStyles:[]});const n=this.classes.get(t);s&&n&&s.split(C.STYLECLASS_SEP).forEach(i=>{const l=i.replace(/([^;]*);/,"$1").trim();if(RegExp(C.COLOR_KEYWORD).exec(i)){const S=l.replace(C.FILL_KEYWORD,C.BG_FILL).replace(C.COLOR_KEYWORD,C.FILL_KEYWORD);n.textStyles.push(S)}n.styles.push(l)})}getClasses(){return this.classes}setCssClass(t,s){t.split(",").forEach(n=>{var l;let i=this.getState(n);if(!i){const u=n.trim();this.addState(u),i=this.getState(u)}(l=i==null?void 0:i.classes)==null||l.push(s)})}setStyle(t,s){var n,i;(i=(n=this.getState(t))==null?void 0:n.styles)==null||i.push(s)}setTextStyle(t,s){var n,i;(i=(n=this.getState(t))==null?void 0:n.textStyles)==null||i.push(s)}getDirectionStatement(){return this.rootDoc.find(t=>t.stmt===lt)}getDirection(){var t,s;return(s=(t=this.getDirectionStatement())==null?void 0:t.value)!=null?s:j}setDirection(t){const s=this.getDirectionStatement();s?s.value=t:this.rootDoc.unshift({stmt:lt,value:t})}trimColon(t){return t.startsWith(":")?t.slice(1).trim():t.trim()}getData(){const t=(0,_.nV)();return{nodes:this.nodes,edges:this.edges,other:{},config:t,direction:Xt(this.getRootDocV2())}}getConfig(){return(0,_.nV)().state}},(0,r.eW)(tt,"StateDB"),tt.relationType={AGGREGATION:0,EXTENSION:1,COMPOSITION:2,DEPENDENCY:3},tt),Re=(0,r.eW)(e=>`
|
|
7
|
+
defs #statediagram-barbEnd {
|
|
8
|
+
fill: ${e.transitionColor};
|
|
9
|
+
stroke: ${e.transitionColor};
|
|
10
|
+
}
|
|
11
|
+
g.stateGroup text {
|
|
12
|
+
fill: ${e.nodeBorder};
|
|
13
|
+
stroke: none;
|
|
14
|
+
font-size: 10px;
|
|
15
|
+
}
|
|
16
|
+
g.stateGroup text {
|
|
17
|
+
fill: ${e.textColor};
|
|
18
|
+
stroke: none;
|
|
19
|
+
font-size: 10px;
|
|
20
|
+
|
|
21
|
+
}
|
|
22
|
+
g.stateGroup .state-title {
|
|
23
|
+
font-weight: bolder;
|
|
24
|
+
fill: ${e.stateLabelColor};
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
g.stateGroup rect {
|
|
28
|
+
fill: ${e.mainBkg};
|
|
29
|
+
stroke: ${e.nodeBorder};
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
g.stateGroup line {
|
|
33
|
+
stroke: ${e.lineColor};
|
|
34
|
+
stroke-width: 1;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.transition {
|
|
38
|
+
stroke: ${e.transitionColor};
|
|
39
|
+
stroke-width: 1;
|
|
40
|
+
fill: none;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.stateGroup .composit {
|
|
44
|
+
fill: ${e.background};
|
|
45
|
+
border-bottom: 1px
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.stateGroup .alt-composit {
|
|
49
|
+
fill: #e0e0e0;
|
|
50
|
+
border-bottom: 1px
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.state-note {
|
|
54
|
+
stroke: ${e.noteBorderColor};
|
|
55
|
+
fill: ${e.noteBkgColor};
|
|
56
|
+
|
|
57
|
+
text {
|
|
58
|
+
fill: ${e.noteTextColor};
|
|
59
|
+
stroke: none;
|
|
60
|
+
font-size: 10px;
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.stateLabel .box {
|
|
65
|
+
stroke: none;
|
|
66
|
+
stroke-width: 0;
|
|
67
|
+
fill: ${e.mainBkg};
|
|
68
|
+
opacity: 0.5;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
.edgeLabel .label rect {
|
|
72
|
+
fill: ${e.labelBackgroundColor};
|
|
73
|
+
opacity: 0.5;
|
|
74
|
+
}
|
|
75
|
+
.edgeLabel {
|
|
76
|
+
background-color: ${e.edgeLabelBackground};
|
|
77
|
+
p {
|
|
78
|
+
background-color: ${e.edgeLabelBackground};
|
|
79
|
+
}
|
|
80
|
+
rect {
|
|
81
|
+
opacity: 0.5;
|
|
82
|
+
background-color: ${e.edgeLabelBackground};
|
|
83
|
+
fill: ${e.edgeLabelBackground};
|
|
84
|
+
}
|
|
85
|
+
text-align: center;
|
|
86
|
+
}
|
|
87
|
+
.edgeLabel .label text {
|
|
88
|
+
fill: ${e.transitionLabelColor||e.tertiaryTextColor};
|
|
89
|
+
}
|
|
90
|
+
.label div .edgeLabel {
|
|
91
|
+
color: ${e.transitionLabelColor||e.tertiaryTextColor};
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
.stateLabel text {
|
|
95
|
+
fill: ${e.stateLabelColor};
|
|
96
|
+
font-size: 10px;
|
|
97
|
+
font-weight: bold;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
.node circle.state-start {
|
|
101
|
+
fill: ${e.specialStateColor};
|
|
102
|
+
stroke: ${e.specialStateColor};
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
.node .fork-join {
|
|
106
|
+
fill: ${e.specialStateColor};
|
|
107
|
+
stroke: ${e.specialStateColor};
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
.node circle.state-end {
|
|
111
|
+
fill: ${e.innerEndBackground};
|
|
112
|
+
stroke: ${e.background};
|
|
113
|
+
stroke-width: 1.5
|
|
114
|
+
}
|
|
115
|
+
.end-state-inner {
|
|
116
|
+
fill: ${e.compositeBackground||e.background};
|
|
117
|
+
// stroke: ${e.background};
|
|
118
|
+
stroke-width: 1.5
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
.node rect {
|
|
122
|
+
fill: ${e.stateBkg||e.mainBkg};
|
|
123
|
+
stroke: ${e.stateBorder||e.nodeBorder};
|
|
124
|
+
stroke-width: 1px;
|
|
125
|
+
}
|
|
126
|
+
.node polygon {
|
|
127
|
+
fill: ${e.mainBkg};
|
|
128
|
+
stroke: ${e.stateBorder||e.nodeBorder};;
|
|
129
|
+
stroke-width: 1px;
|
|
130
|
+
}
|
|
131
|
+
#statediagram-barbEnd {
|
|
132
|
+
fill: ${e.lineColor};
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
.statediagram-cluster rect {
|
|
136
|
+
fill: ${e.compositeTitleBackground};
|
|
137
|
+
stroke: ${e.stateBorder||e.nodeBorder};
|
|
138
|
+
stroke-width: 1px;
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
.cluster-label, .nodeLabel {
|
|
142
|
+
color: ${e.stateLabelColor};
|
|
143
|
+
// line-height: 1;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
.statediagram-cluster rect.outer {
|
|
147
|
+
rx: 5px;
|
|
148
|
+
ry: 5px;
|
|
149
|
+
}
|
|
150
|
+
.statediagram-state .divider {
|
|
151
|
+
stroke: ${e.stateBorder||e.nodeBorder};
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
.statediagram-state .title-state {
|
|
155
|
+
rx: 5px;
|
|
156
|
+
ry: 5px;
|
|
157
|
+
}
|
|
158
|
+
.statediagram-cluster.statediagram-cluster .inner {
|
|
159
|
+
fill: ${e.compositeBackground||e.background};
|
|
160
|
+
}
|
|
161
|
+
.statediagram-cluster.statediagram-cluster-alt .inner {
|
|
162
|
+
fill: ${e.altBackground?e.altBackground:"#efefef"};
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
.statediagram-cluster .inner {
|
|
166
|
+
rx:0;
|
|
167
|
+
ry:0;
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
.statediagram-state rect.basic {
|
|
171
|
+
rx: 5px;
|
|
172
|
+
ry: 5px;
|
|
173
|
+
}
|
|
174
|
+
.statediagram-state rect.divider {
|
|
175
|
+
stroke-dasharray: 10,10;
|
|
176
|
+
fill: ${e.altBackground?e.altBackground:"#efefef"};
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
.note-edge {
|
|
180
|
+
stroke-dasharray: 5;
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
.statediagram-note rect {
|
|
184
|
+
fill: ${e.noteBkgColor};
|
|
185
|
+
stroke: ${e.noteBorderColor};
|
|
186
|
+
stroke-width: 1px;
|
|
187
|
+
rx: 0;
|
|
188
|
+
ry: 0;
|
|
189
|
+
}
|
|
190
|
+
.statediagram-note rect {
|
|
191
|
+
fill: ${e.noteBkgColor};
|
|
192
|
+
stroke: ${e.noteBorderColor};
|
|
193
|
+
stroke-width: 1px;
|
|
194
|
+
rx: 0;
|
|
195
|
+
ry: 0;
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
.statediagram-note text {
|
|
199
|
+
fill: ${e.noteTextColor};
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
.statediagram-note .nodeLabel {
|
|
203
|
+
color: ${e.noteTextColor};
|
|
204
|
+
}
|
|
205
|
+
.statediagram .edgeLabel {
|
|
206
|
+
color: red; // ${e.noteTextColor};
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
#dependencyStart, #dependencyEnd {
|
|
210
|
+
fill: ${e.lineColor};
|
|
211
|
+
stroke: ${e.lineColor};
|
|
212
|
+
stroke-width: 1;
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
.statediagramTitleText {
|
|
216
|
+
text-anchor: middle;
|
|
217
|
+
font-size: 18px;
|
|
218
|
+
fill: ${e.textColor};
|
|
219
|
+
}
|
|
220
|
+
`,"getStyles"),Ie=Re},43663:function(yt,Z,k){k.d(Z,{j:function(){return q}});var Q=k(99970),R=k(35096),q=(0,R.eW)((r,v,$,j)=>{r.attr("class",$);const{width:K,height:lt,x:H,y:z}=F(r,v);(0,Q.v2)(r,lt,K,j);const at=_(H,z,K,lt,v);r.attr("viewBox",at),R.cM.debug(`viewBox configured: ${at} with padding: ${v}`)},"setupViewPortForSVG"),F=(0,R.eW)((r,v)=>{var j;const $=((j=r.node())==null?void 0:j.getBBox())||{width:0,height:0,x:0,y:0};return{width:$.width+v*2,height:$.height+v*2,x:$.x,y:$.y}},"calculateDimensionsWithPadding"),_=(0,R.eW)((r,v,$,j,K)=>`${r-K} ${v-K} ${$} ${j}`,"createViewBox")}}]);
|
|
221
|
+
}());
|