@celljs/ta 4.5.0 → 4.6.0
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 +31 -25
- package/bin/ta.mjs +1 -1
- package/dist/cli.mjs +2101 -0
- package/dist/pi/CHANGELOG.md +28 -0
- package/dist/pi/dist/bundle/chunks/chunk-44DLKSKE.js +14 -14
- package/dist/pi/dist/bundle/chunks/openai-chatgpt.js +1 -1
- package/dist/pi/node_modules/@silvia-odwyer/photon-node/LICENSE.md +201 -0
- package/dist/pi/node_modules/@silvia-odwyer/photon-node/README.md +158 -0
- package/dist/pi/node_modules/@silvia-odwyer/photon-node/package.json +23 -0
- package/dist/pi/node_modules/@silvia-odwyer/photon-node/photon_rs.d.ts +3226 -0
- package/dist/pi/node_modules/@silvia-odwyer/photon-node/photon_rs.js +4521 -0
- package/dist/pi/node_modules/@silvia-odwyer/photon-node/photon_rs_bg.js +4270 -0
- package/dist/pi/node_modules/@silvia-odwyer/photon-node/photon_rs_bg.wasm +0 -0
- package/dist/pi/node_modules/jiti/LICENSE +21 -0
- package/dist/pi/node_modules/jiti/README.md +258 -0
- package/dist/pi/node_modules/jiti/dist/babel.cjs +257 -0
- package/dist/pi/node_modules/jiti/dist/jiti.cjs +1 -0
- package/dist/pi/node_modules/jiti/lib/jiti-cli.mjs +34 -0
- package/dist/pi/node_modules/jiti/lib/jiti-hooks.mjs +124 -0
- package/dist/pi/node_modules/jiti/lib/jiti-native.mjs +121 -0
- package/dist/pi/node_modules/jiti/lib/jiti-register.d.mts +1 -0
- package/dist/pi/node_modules/jiti/lib/jiti-register.mjs +4 -0
- package/dist/pi/node_modules/jiti/lib/jiti-static.mjs +23 -0
- package/dist/pi/node_modules/jiti/lib/jiti.cjs +30 -0
- package/dist/pi/node_modules/jiti/lib/jiti.d.cts +8 -0
- package/dist/pi/node_modules/jiti/lib/jiti.d.mts +8 -0
- package/dist/pi/node_modules/jiti/lib/jiti.mjs +29 -0
- package/dist/pi/node_modules/jiti/lib/types.d.ts +420 -0
- package/dist/pi/node_modules/jiti/package.json +146 -0
- package/dist/pi/node_modules/quickjs-wasi/LICENSE +21 -0
- package/dist/pi/node_modules/quickjs-wasi/README.md +852 -0
- package/dist/pi/node_modules/quickjs-wasi/dist/extensions.d.ts +110 -0
- package/dist/pi/node_modules/quickjs-wasi/dist/extensions.d.ts.map +1 -0
- package/dist/pi/node_modules/quickjs-wasi/dist/extensions.js +372 -0
- package/dist/pi/node_modules/quickjs-wasi/dist/extensions.js.map +1 -0
- package/dist/pi/node_modules/quickjs-wasi/dist/index.d.ts +1263 -0
- package/dist/pi/node_modules/quickjs-wasi/dist/index.d.ts.map +1 -0
- package/dist/pi/node_modules/quickjs-wasi/dist/index.js +2787 -0
- package/dist/pi/node_modules/quickjs-wasi/dist/index.js.map +1 -0
- package/dist/pi/node_modules/quickjs-wasi/dist/version.d.ts +2 -0
- package/dist/pi/node_modules/quickjs-wasi/dist/version.d.ts.map +1 -0
- package/dist/pi/node_modules/quickjs-wasi/dist/version.js +3 -0
- package/dist/pi/node_modules/quickjs-wasi/dist/version.js.map +1 -0
- package/dist/pi/node_modules/quickjs-wasi/dist/wasi-shim.d.ts +61 -0
- package/dist/pi/node_modules/quickjs-wasi/dist/wasi-shim.d.ts.map +1 -0
- package/dist/pi/node_modules/quickjs-wasi/dist/wasi-shim.js +103 -0
- package/dist/pi/node_modules/quickjs-wasi/dist/wasi-shim.js.map +1 -0
- package/dist/pi/node_modules/quickjs-wasi/extensions/crypto/crypto.so +0 -0
- package/dist/pi/node_modules/quickjs-wasi/extensions/encoding/encoding.so +0 -0
- package/dist/pi/node_modules/quickjs-wasi/extensions/headers/headers.so +0 -0
- package/dist/pi/node_modules/quickjs-wasi/extensions/structured-clone/structured-clone.so +0 -0
- package/dist/pi/node_modules/quickjs-wasi/extensions/url/url.so +0 -0
- package/dist/pi/node_modules/quickjs-wasi/package.json +69 -0
- package/dist/pi/node_modules/quickjs-wasi/quickjs.wasm +0 -0
- package/dist/pi/package.json +1 -1
- package/dist/pi/packages/ta-channels/README.md +48 -0
- package/dist/pi/packages/ta-channels/extension/index.mjs +651 -0
- package/dist/pi/packages/ta-channels/host/index.mjs +921 -0
- package/dist/pi/packages/ta-channels/lib/agent-menu.d.ts +13 -0
- package/dist/pi/packages/ta-channels/lib/agent-menu.d.ts.map +1 -0
- package/dist/pi/packages/ta-channels/lib/agent-menu.js +177 -0
- package/dist/pi/packages/ta-channels/lib/agent-menu.js.map +1 -0
- package/dist/pi/packages/ta-channels/lib/channel-menu.d.ts +12 -0
- package/dist/pi/packages/ta-channels/lib/channel-menu.d.ts.map +1 -0
- package/dist/pi/packages/ta-channels/lib/channel-menu.js +93 -0
- package/dist/pi/packages/ta-channels/lib/channel-menu.js.map +1 -0
- package/dist/pi/packages/ta-channels/lib/channels-model.d.ts +192 -0
- package/dist/pi/packages/ta-channels/lib/channels-model.d.ts.map +1 -0
- package/dist/pi/packages/ta-channels/lib/channels-model.js +49 -0
- package/dist/pi/packages/ta-channels/lib/channels-model.js.map +1 -0
- package/dist/pi/packages/ta-channels/lib/channels-util.d.ts +149 -0
- package/dist/pi/packages/ta-channels/lib/channels-util.d.ts.map +1 -0
- package/dist/pi/packages/ta-channels/lib/channels-util.js +544 -0
- package/dist/pi/packages/ta-channels/lib/channels-util.js.map +1 -0
- package/dist/pi/packages/ta-channels/lib/channels.d.ts +81 -0
- package/dist/pi/packages/ta-channels/lib/channels.d.ts.map +1 -0
- package/dist/pi/packages/ta-channels/lib/channels.js +181 -0
- package/dist/pi/packages/ta-channels/lib/channels.js.map +1 -0
- package/dist/pi/packages/ta-channels/lib/create.d.ts +19 -0
- package/dist/pi/packages/ta-channels/lib/create.d.ts.map +1 -0
- package/dist/pi/packages/ta-channels/lib/create.js +182 -0
- package/dist/pi/packages/ta-channels/lib/create.js.map +1 -0
- package/dist/pi/packages/ta-channels/lib/extension.d.ts +19 -0
- package/dist/pi/packages/ta-channels/lib/extension.d.ts.map +1 -0
- package/dist/pi/packages/ta-channels/lib/extension.js +77 -0
- package/dist/pi/packages/ta-channels/lib/extension.js.map +1 -0
- package/dist/pi/packages/ta-channels/lib/faces.d.ts +17 -0
- package/dist/pi/packages/ta-channels/lib/faces.d.ts.map +1 -0
- package/dist/pi/packages/ta-channels/lib/faces.js +169 -0
- package/dist/pi/packages/ta-channels/lib/faces.js.map +1 -0
- package/dist/pi/packages/ta-channels/lib/host.d.ts +7 -0
- package/dist/pi/packages/ta-channels/lib/host.d.ts.map +1 -0
- package/dist/pi/packages/ta-channels/lib/host.js +14 -0
- package/dist/pi/packages/ta-channels/lib/host.js.map +1 -0
- package/dist/pi/packages/ta-channels/lib/i18n.d.ts +113 -0
- package/dist/pi/packages/ta-channels/lib/i18n.d.ts.map +1 -0
- package/dist/pi/packages/ta-channels/lib/i18n.js +223 -0
- package/dist/pi/packages/ta-channels/lib/i18n.js.map +1 -0
- package/dist/pi/packages/ta-channels/lib/index.d.ts +8 -0
- package/dist/pi/packages/ta-channels/lib/index.d.ts.map +1 -0
- package/dist/pi/packages/ta-channels/lib/index.js +84 -0
- package/dist/pi/packages/ta-channels/lib/index.js.map +1 -0
- package/dist/pi/packages/ta-channels/lib/members.d.ts +9 -0
- package/dist/pi/packages/ta-channels/lib/members.d.ts.map +1 -0
- package/dist/pi/packages/ta-channels/lib/members.js +150 -0
- package/dist/pi/packages/ta-channels/lib/members.js.map +1 -0
- package/dist/pi/packages/ta-channels/lib/more-menu.d.ts +19 -0
- package/dist/pi/packages/ta-channels/lib/more-menu.d.ts.map +1 -0
- package/dist/pi/packages/ta-channels/lib/more-menu.js +79 -0
- package/dist/pi/packages/ta-channels/lib/more-menu.js.map +1 -0
- package/dist/pi/packages/ta-channels/lib/react.d.ts +8 -0
- package/dist/pi/packages/ta-channels/lib/react.d.ts.map +1 -0
- package/dist/pi/packages/ta-channels/lib/react.js +8 -0
- package/dist/pi/packages/ta-channels/lib/react.js.map +1 -0
- package/dist/pi/packages/ta-channels/lib/room.d.ts +22 -0
- package/dist/pi/packages/ta-channels/lib/room.d.ts.map +1 -0
- package/dist/pi/packages/ta-channels/lib/room.js +133 -0
- package/dist/pi/packages/ta-channels/lib/room.js.map +1 -0
- package/dist/pi/packages/ta-channels/lib/sidebar.d.ts +10 -0
- package/dist/pi/packages/ta-channels/lib/sidebar.d.ts.map +1 -0
- package/dist/pi/packages/ta-channels/lib/sidebar.js +162 -0
- package/dist/pi/packages/ta-channels/lib/sidebar.js.map +1 -0
- package/dist/pi/packages/ta-channels/lib/style.d.ts +5 -0
- package/dist/pi/packages/ta-channels/lib/style.d.ts.map +1 -0
- package/dist/pi/packages/ta-channels/lib/style.js +252 -0
- package/dist/pi/packages/ta-channels/lib/style.js.map +1 -0
- package/dist/pi/packages/ta-channels/lib/team-tools.d.ts +15 -0
- package/dist/pi/packages/ta-channels/lib/team-tools.d.ts.map +1 -0
- package/dist/pi/packages/ta-channels/lib/team-tools.js +92 -0
- package/dist/pi/packages/ta-channels/lib/team-tools.js.map +1 -0
- package/dist/pi/packages/ta-channels/lib/team.d.ts +134 -0
- package/dist/pi/packages/ta-channels/lib/team.d.ts.map +1 -0
- package/dist/pi/packages/ta-channels/lib/team.js +469 -0
- package/dist/pi/packages/ta-channels/lib/team.js.map +1 -0
- package/dist/pi/packages/ta-channels/lib/views.d.ts +93 -0
- package/dist/pi/packages/ta-channels/lib/views.d.ts.map +1 -0
- package/dist/pi/packages/ta-channels/lib/views.js +188 -0
- package/dist/pi/packages/ta-channels/lib/views.js.map +1 -0
- package/dist/pi/packages/ta-channels/package.json +46 -0
- package/dist/pi/packages/ta-channels/web/index.js +3144 -0
- package/dist/pi/packages/ta-extensions/README.md +20 -0
- package/dist/pi/packages/ta-extensions/host/index.mjs +271 -0
- package/dist/pi/packages/ta-extensions/lib/actions.d.ts +42 -0
- package/dist/pi/packages/ta-extensions/lib/actions.d.ts.map +1 -0
- package/dist/pi/packages/ta-extensions/lib/actions.js +168 -0
- package/dist/pi/packages/ta-extensions/lib/actions.js.map +1 -0
- package/dist/pi/packages/ta-extensions/lib/archive.d.ts +30 -0
- package/dist/pi/packages/ta-extensions/lib/archive.d.ts.map +1 -0
- package/dist/pi/packages/ta-extensions/lib/archive.js +213 -0
- package/dist/pi/packages/ta-extensions/lib/archive.js.map +1 -0
- package/dist/pi/packages/ta-extensions/lib/extensions-util.d.ts +14 -0
- package/dist/pi/packages/ta-extensions/lib/extensions-util.d.ts.map +1 -0
- package/dist/pi/packages/ta-extensions/lib/extensions-util.js +38 -0
- package/dist/pi/packages/ta-extensions/lib/extensions-util.js.map +1 -0
- package/dist/pi/packages/ta-extensions/lib/host.d.ts +36 -0
- package/dist/pi/packages/ta-extensions/lib/host.d.ts.map +1 -0
- package/dist/pi/packages/ta-extensions/lib/host.js +94 -0
- package/dist/pi/packages/ta-extensions/lib/host.js.map +1 -0
- package/dist/pi/packages/ta-extensions/lib/i18n.d.ts +64 -0
- package/dist/pi/packages/ta-extensions/lib/i18n.d.ts.map +1 -0
- package/dist/pi/packages/ta-extensions/lib/i18n.js +148 -0
- package/dist/pi/packages/ta-extensions/lib/i18n.js.map +1 -0
- package/dist/pi/packages/ta-extensions/lib/import-dialog.d.ts +10 -0
- package/dist/pi/packages/ta-extensions/lib/import-dialog.d.ts.map +1 -0
- package/dist/pi/packages/ta-extensions/lib/import-dialog.js +56 -0
- package/dist/pi/packages/ta-extensions/lib/import-dialog.js.map +1 -0
- package/dist/pi/packages/ta-extensions/lib/index.d.ts +7 -0
- package/dist/pi/packages/ta-extensions/lib/index.d.ts.map +1 -0
- package/dist/pi/packages/ta-extensions/lib/index.js +49 -0
- package/dist/pi/packages/ta-extensions/lib/index.js.map +1 -0
- package/dist/pi/packages/ta-extensions/lib/page.d.ts +22 -0
- package/dist/pi/packages/ta-extensions/lib/page.d.ts.map +1 -0
- package/dist/pi/packages/ta-extensions/lib/page.js +143 -0
- package/dist/pi/packages/ta-extensions/lib/page.js.map +1 -0
- package/dist/pi/packages/ta-extensions/lib/pictures.d.ts +6 -0
- package/dist/pi/packages/ta-extensions/lib/pictures.d.ts.map +1 -0
- package/dist/pi/packages/ta-extensions/lib/pictures.js +62 -0
- package/dist/pi/packages/ta-extensions/lib/pictures.js.map +1 -0
- package/dist/pi/packages/ta-extensions/lib/react.d.ts +8 -0
- package/dist/pi/packages/ta-extensions/lib/react.d.ts.map +1 -0
- package/dist/pi/packages/ta-extensions/lib/react.js +8 -0
- package/dist/pi/packages/ta-extensions/lib/react.js.map +1 -0
- package/dist/pi/packages/ta-extensions/lib/style.d.ts +4 -0
- package/dist/pi/packages/ta-extensions/lib/style.d.ts.map +1 -0
- package/dist/pi/packages/ta-extensions/lib/style.js +94 -0
- package/dist/pi/packages/ta-extensions/lib/style.js.map +1 -0
- package/dist/pi/packages/ta-extensions/package.json +46 -0
- package/dist/pi/packages/ta-extensions/skills/ta-package/SKILL.md +90 -0
- package/dist/pi/packages/ta-extensions/web/index.js +941 -0
- package/dist/pi/packages/ta-workspace/README.md +29 -0
- package/dist/pi/packages/ta-workspace/lib/browser.d.ts +9 -0
- package/dist/pi/packages/ta-workspace/lib/browser.d.ts.map +1 -0
- package/dist/pi/packages/ta-workspace/lib/browser.js +162 -0
- package/dist/pi/packages/ta-workspace/lib/browser.js.map +1 -0
- package/dist/pi/packages/ta-workspace/lib/common.d.ts +63 -0
- package/dist/pi/packages/ta-workspace/lib/common.d.ts.map +1 -0
- package/dist/pi/packages/ta-workspace/lib/common.js +180 -0
- package/dist/pi/packages/ta-workspace/lib/common.js.map +1 -0
- package/dist/pi/packages/ta-workspace/lib/editors.d.ts +47 -0
- package/dist/pi/packages/ta-workspace/lib/editors.d.ts.map +1 -0
- package/dist/pi/packages/ta-workspace/lib/editors.js +353 -0
- package/dist/pi/packages/ta-workspace/lib/editors.js.map +1 -0
- package/dist/pi/packages/ta-workspace/lib/explorer.d.ts +11 -0
- package/dist/pi/packages/ta-workspace/lib/explorer.d.ts.map +1 -0
- package/dist/pi/packages/ta-workspace/lib/explorer.js +388 -0
- package/dist/pi/packages/ta-workspace/lib/explorer.js.map +1 -0
- package/dist/pi/packages/ta-workspace/lib/file-icon.d.ts +9 -0
- package/dist/pi/packages/ta-workspace/lib/file-icon.d.ts.map +1 -0
- package/dist/pi/packages/ta-workspace/lib/file-icon.js +19 -0
- package/dist/pi/packages/ta-workspace/lib/file-icon.js.map +1 -0
- package/dist/pi/packages/ta-workspace/lib/host.d.ts +41 -0
- package/dist/pi/packages/ta-workspace/lib/host.d.ts.map +1 -0
- package/dist/pi/packages/ta-workspace/lib/host.js +117 -0
- package/dist/pi/packages/ta-workspace/lib/host.js.map +1 -0
- package/dist/pi/packages/ta-workspace/lib/i18n.d.ts +158 -0
- package/dist/pi/packages/ta-workspace/lib/i18n.d.ts.map +1 -0
- package/dist/pi/packages/ta-workspace/lib/i18n.js +319 -0
- package/dist/pi/packages/ta-workspace/lib/i18n.js.map +1 -0
- package/dist/pi/packages/ta-workspace/lib/index.d.ts +8 -0
- package/dist/pi/packages/ta-workspace/lib/index.d.ts.map +1 -0
- package/dist/pi/packages/ta-workspace/lib/index.js +64 -0
- package/dist/pi/packages/ta-workspace/lib/index.js.map +1 -0
- package/dist/pi/packages/ta-workspace/lib/open-files.d.ts +3 -0
- package/dist/pi/packages/ta-workspace/lib/open-files.d.ts.map +1 -0
- package/dist/pi/packages/ta-workspace/lib/open-files.js +59 -0
- package/dist/pi/packages/ta-workspace/lib/open-files.js.map +1 -0
- package/dist/pi/packages/ta-workspace/lib/preview.d.ts +16 -0
- package/dist/pi/packages/ta-workspace/lib/preview.d.ts.map +1 -0
- package/dist/pi/packages/ta-workspace/lib/preview.js +116 -0
- package/dist/pi/packages/ta-workspace/lib/preview.js.map +1 -0
- package/dist/pi/packages/ta-workspace/lib/react.d.ts +5 -0
- package/dist/pi/packages/ta-workspace/lib/react.d.ts.map +1 -0
- package/dist/pi/packages/ta-workspace/lib/react.js +8 -0
- package/dist/pi/packages/ta-workspace/lib/react.js.map +1 -0
- package/dist/pi/packages/ta-workspace/lib/scm.d.ts +3 -0
- package/dist/pi/packages/ta-workspace/lib/scm.d.ts.map +1 -0
- package/dist/pi/packages/ta-workspace/lib/scm.js +262 -0
- package/dist/pi/packages/ta-workspace/lib/scm.js.map +1 -0
- package/dist/pi/packages/ta-workspace/lib/search.d.ts +9 -0
- package/dist/pi/packages/ta-workspace/lib/search.d.ts.map +1 -0
- package/dist/pi/packages/ta-workspace/lib/search.js +286 -0
- package/dist/pi/packages/ta-workspace/lib/search.js.map +1 -0
- package/dist/pi/packages/ta-workspace/lib/style.d.ts +5 -0
- package/dist/pi/packages/ta-workspace/lib/style.d.ts.map +1 -0
- package/dist/pi/packages/ta-workspace/lib/style.js +228 -0
- package/dist/pi/packages/ta-workspace/lib/style.js.map +1 -0
- package/dist/pi/packages/ta-workspace/lib/terminal.d.ts +24 -0
- package/dist/pi/packages/ta-workspace/lib/terminal.d.ts.map +1 -0
- package/dist/pi/packages/ta-workspace/lib/terminal.js +283 -0
- package/dist/pi/packages/ta-workspace/lib/terminal.js.map +1 -0
- package/dist/pi/packages/ta-workspace/lib/util/ansi.d.ts +72 -0
- package/dist/pi/packages/ta-workspace/lib/util/ansi.d.ts.map +1 -0
- package/dist/pi/packages/ta-workspace/lib/util/ansi.js +434 -0
- package/dist/pi/packages/ta-workspace/lib/util/ansi.js.map +1 -0
- package/dist/pi/packages/ta-workspace/lib/util/file-icon.d.ts +10 -0
- package/dist/pi/packages/ta-workspace/lib/util/file-icon.d.ts.map +1 -0
- package/dist/pi/packages/ta-workspace/lib/util/file-icon.js +28 -0
- package/dist/pi/packages/ta-workspace/lib/util/file-icon.js.map +1 -0
- package/dist/pi/packages/ta-workspace/lib/util/git.d.ts +69 -0
- package/dist/pi/packages/ta-workspace/lib/util/git.d.ts.map +1 -0
- package/dist/pi/packages/ta-workspace/lib/util/git.js +173 -0
- package/dist/pi/packages/ta-workspace/lib/util/git.js.map +1 -0
- package/dist/pi/packages/ta-workspace/lib/util/keys.d.ts +14 -0
- package/dist/pi/packages/ta-workspace/lib/util/keys.d.ts.map +1 -0
- package/dist/pi/packages/ta-workspace/lib/util/keys.js +52 -0
- package/dist/pi/packages/ta-workspace/lib/util/keys.js.map +1 -0
- package/dist/pi/packages/ta-workspace/lib/util/preview.d.ts +18 -0
- package/dist/pi/packages/ta-workspace/lib/util/preview.d.ts.map +1 -0
- package/dist/pi/packages/ta-workspace/lib/util/preview.js +92 -0
- package/dist/pi/packages/ta-workspace/lib/util/preview.js.map +1 -0
- package/dist/pi/packages/ta-workspace/lib/util/search.d.ts +86 -0
- package/dist/pi/packages/ta-workspace/lib/util/search.d.ts.map +1 -0
- package/dist/pi/packages/ta-workspace/lib/util/search.js +243 -0
- package/dist/pi/packages/ta-workspace/lib/util/search.js.map +1 -0
- package/dist/pi/packages/ta-workspace/lib/util/seti-font.d.ts +3 -0
- package/dist/pi/packages/ta-workspace/lib/util/seti-font.d.ts.map +1 -0
- package/dist/pi/packages/ta-workspace/lib/util/seti-font.js +8 -0
- package/dist/pi/packages/ta-workspace/lib/util/seti-font.js.map +1 -0
- package/dist/pi/packages/ta-workspace/lib/util/seti.d.ts +10 -0
- package/dist/pi/packages/ta-workspace/lib/util/seti.d.ts.map +1 -0
- package/dist/pi/packages/ta-workspace/lib/util/seti.js +758 -0
- package/dist/pi/packages/ta-workspace/lib/util/seti.js.map +1 -0
- package/dist/pi/packages/ta-workspace/lib/util/workspace.d.ts +109 -0
- package/dist/pi/packages/ta-workspace/lib/util/workspace.d.ts.map +1 -0
- package/dist/pi/packages/ta-workspace/lib/util/workspace.js +294 -0
- package/dist/pi/packages/ta-workspace/lib/util/workspace.js.map +1 -0
- package/dist/pi/packages/ta-workspace/lib/workspace-client.d.ts +22 -0
- package/dist/pi/packages/ta-workspace/lib/workspace-client.d.ts.map +1 -0
- package/dist/pi/packages/ta-workspace/lib/workspace-client.js +118 -0
- package/dist/pi/packages/ta-workspace/lib/workspace-client.js.map +1 -0
- package/dist/pi/packages/ta-workspace/package.json +41 -0
- package/dist/pi/packages/ta-workspace/scripts/seti.ts +173 -0
- package/dist/pi/packages/ta-workspace/web/index.js +7289 -0
- package/dist/public/assets/KaTeX_AMS-Regular-BQhdFMY1.woff2 +0 -0
- package/dist/public/assets/KaTeX_AMS-Regular-DMm9YOAa.woff +0 -0
- package/dist/public/assets/KaTeX_AMS-Regular-DRggAlZN.ttf +0 -0
- package/dist/public/assets/KaTeX_Caligraphic-Bold-ATXxdsX0.ttf +0 -0
- package/dist/public/assets/KaTeX_Caligraphic-Bold-BEiXGLvX.woff +0 -0
- package/dist/public/assets/KaTeX_Caligraphic-Bold-Dq_IR9rO.woff2 +0 -0
- package/dist/public/assets/KaTeX_Caligraphic-Regular-CTRA-rTL.woff +0 -0
- package/dist/public/assets/KaTeX_Caligraphic-Regular-Di6jR-x-.woff2 +0 -0
- package/dist/public/assets/KaTeX_Caligraphic-Regular-wX97UBjC.ttf +0 -0
- package/dist/public/assets/KaTeX_Fraktur-Bold-BdnERNNW.ttf +0 -0
- package/dist/public/assets/KaTeX_Fraktur-Bold-BsDP51OF.woff +0 -0
- package/dist/public/assets/KaTeX_Fraktur-Bold-CL6g_b3V.woff2 +0 -0
- package/dist/public/assets/KaTeX_Fraktur-Regular-CB_wures.ttf +0 -0
- package/dist/public/assets/KaTeX_Fraktur-Regular-CTYiF6lA.woff2 +0 -0
- package/dist/public/assets/KaTeX_Fraktur-Regular-Dxdc4cR9.woff +0 -0
- package/dist/public/assets/KaTeX_Main-Bold-Cx986IdX.woff2 +0 -0
- package/dist/public/assets/KaTeX_Main-Bold-Jm3AIy58.woff +0 -0
- package/dist/public/assets/KaTeX_Main-Bold-waoOVXN0.ttf +0 -0
- package/dist/public/assets/KaTeX_Main-BoldItalic-DxDJ3AOS.woff2 +0 -0
- package/dist/public/assets/KaTeX_Main-BoldItalic-DzxPMmG6.ttf +0 -0
- package/dist/public/assets/KaTeX_Main-BoldItalic-SpSLRI95.woff +0 -0
- package/dist/public/assets/KaTeX_Main-Italic-3WenGoN9.ttf +0 -0
- package/dist/public/assets/KaTeX_Main-Italic-BMLOBm91.woff +0 -0
- package/dist/public/assets/KaTeX_Main-Italic-NWA7e6Wa.woff2 +0 -0
- package/dist/public/assets/KaTeX_Main-Regular-B22Nviop.woff2 +0 -0
- package/dist/public/assets/KaTeX_Main-Regular-Dr94JaBh.woff +0 -0
- package/dist/public/assets/KaTeX_Main-Regular-ypZvNtVU.ttf +0 -0
- package/dist/public/assets/KaTeX_Math-BoldItalic-B3XSjfu4.ttf +0 -0
- package/dist/public/assets/KaTeX_Math-BoldItalic-CZnvNsCZ.woff2 +0 -0
- package/dist/public/assets/KaTeX_Math-BoldItalic-iY-2wyZ7.woff +0 -0
- package/dist/public/assets/KaTeX_Math-Italic-DA0__PXp.woff +0 -0
- package/dist/public/assets/KaTeX_Math-Italic-flOr_0UB.ttf +0 -0
- package/dist/public/assets/KaTeX_Math-Italic-t53AETM-.woff2 +0 -0
- package/dist/public/assets/KaTeX_SansSerif-Bold-CFMepnvq.ttf +0 -0
- package/dist/public/assets/KaTeX_SansSerif-Bold-D1sUS0GD.woff2 +0 -0
- package/dist/public/assets/KaTeX_SansSerif-Bold-DbIhKOiC.woff +0 -0
- package/dist/public/assets/KaTeX_SansSerif-Italic-C3H0VqGB.woff2 +0 -0
- package/dist/public/assets/KaTeX_SansSerif-Italic-DN2j7dab.woff +0 -0
- package/dist/public/assets/KaTeX_SansSerif-Italic-YYjJ1zSn.ttf +0 -0
- package/dist/public/assets/KaTeX_SansSerif-Regular-BNo7hRIc.ttf +0 -0
- package/dist/public/assets/KaTeX_SansSerif-Regular-CS6fqUqJ.woff +0 -0
- package/dist/public/assets/KaTeX_SansSerif-Regular-DDBCnlJ7.woff2 +0 -0
- package/dist/public/assets/KaTeX_Script-Regular-C5JkGWo-.ttf +0 -0
- package/dist/public/assets/KaTeX_Script-Regular-D3wIWfF6.woff2 +0 -0
- package/dist/public/assets/KaTeX_Script-Regular-D5yQViql.woff +0 -0
- package/dist/public/assets/KaTeX_Size1-Regular-C195tn64.woff +0 -0
- package/dist/public/assets/KaTeX_Size1-Regular-Dbsnue_I.ttf +0 -0
- package/dist/public/assets/KaTeX_Size1-Regular-mCD8mA8B.woff2 +0 -0
- package/dist/public/assets/KaTeX_Size2-Regular-B7gKUWhC.ttf +0 -0
- package/dist/public/assets/KaTeX_Size2-Regular-Dy4dx90m.woff2 +0 -0
- package/dist/public/assets/KaTeX_Size2-Regular-oD1tc_U0.woff +0 -0
- package/dist/public/assets/KaTeX_Size3-Regular-CTq5MqoE.woff +0 -0
- package/dist/public/assets/KaTeX_Size3-Regular-DgpXs0kz.ttf +0 -0
- package/dist/public/assets/KaTeX_Size4-Regular-BF-4gkZK.woff +0 -0
- package/dist/public/assets/KaTeX_Size4-Regular-DWFBv043.ttf +0 -0
- package/dist/public/assets/KaTeX_Size4-Regular-Dl5lxZxV.woff2 +0 -0
- package/dist/public/assets/KaTeX_Typewriter-Regular-C0xS9mPB.woff +0 -0
- package/dist/public/assets/KaTeX_Typewriter-Regular-CO6r4hn1.woff2 +0 -0
- package/dist/public/assets/KaTeX_Typewriter-Regular-D3Ib7_Hf.ttf +0 -0
- package/dist/public/assets/abap-08VXUWAP.js +1 -0
- package/dist/public/assets/abnfDiagram-S7VZAUFO-3_0FZVeo.js +1 -0
- package/dist/public/assets/apex-BWPQTe0t.js +1 -0
- package/dist/public/assets/architecture-WOLXFQ4H-BX-N-_gd.js +1 -0
- package/dist/public/assets/architectureDiagram-YGSQEFNW-Daeu1xjI.js +36 -0
- package/dist/public/assets/azcli-Bc_sGQ0U.js +1 -0
- package/dist/public/assets/bat-i0X4ZdIN.js +1 -0
- package/dist/public/assets/bicep-B5-_aFwp.js +2 -0
- package/dist/public/assets/blockDiagram-APKKGZFW-DjJS8902.js +140 -0
- package/dist/public/assets/bpmnIcons-APHXDYXF-C0jbCElo.js +1 -0
- package/dist/public/assets/browser-D2CY3Lfb.js +1 -0
- package/dist/public/assets/browser-DZ1aJcgd.js +12 -0
- package/dist/public/assets/c4Diagram-KJ2TOQU5-mKfHFqh9.js +38 -0
- package/dist/public/assets/cameligo-DMUM7wLl.js +1 -0
- package/dist/public/assets/chunk-2Q5K7J3B-C1jixKkw.js +1 -0
- package/dist/public/assets/chunk-5VM5RSS4-ZNzvKenW.js +15 -0
- package/dist/public/assets/chunk-6MUBBAK2-Cnx7dsB1.js +2 -0
- package/dist/public/assets/chunk-AXFCVDMN-g4Y7Pg2t.js +62 -0
- package/dist/public/assets/chunk-BG4553SI-QNE6A_Vg.js +129 -0
- package/dist/public/assets/chunk-DQASFODM-DPHr08r0.js +10 -0
- package/dist/public/assets/chunk-DUW6YSOI-Dgx8z5s3.js +1 -0
- package/dist/public/assets/chunk-HFQBQIA3-CenkxHlV.js +1 -0
- package/dist/public/assets/chunk-J5ZVWO5B-oDCd-gWO.js +1 -0
- package/dist/public/assets/chunk-JWPE2WC7-DVXcaiue.js +1 -0
- package/dist/public/assets/chunk-KQLB2F66-C3Z8V8R_.js +2 -0
- package/dist/public/assets/chunk-KS47KZWR-BbUyxMWY.js +1 -0
- package/dist/public/assets/chunk-LEVMRMFU-CKECy4cp.js +1 -0
- package/dist/public/assets/chunk-M57EVK23-DuZd8RGI.js +1 -0
- package/dist/public/assets/chunk-NGNAAXSQ-Bxuf9Ivc.js +136 -0
- package/dist/public/assets/chunk-OY52VR5R-DatO2fu-.js +88 -0
- package/dist/public/assets/chunk-QB3YPZ4I-11782Ox2.js +213 -0
- package/dist/public/assets/chunk-R3KSYZAL-CCTi2rHV.js +1 -0
- package/dist/public/assets/chunk-STOXU5M4-DU6EHCIH.js +72 -0
- package/dist/public/assets/chunk-TU62E6Q5-BtgGljqq.js +1 -0
- package/dist/public/assets/chunk-X4PVCEUW-Dd_Qy0Gx.js +1 -0
- package/dist/public/assets/chunk-XXDRQBXY-DjOrWHxV.js +1 -0
- package/dist/public/assets/chunk-Y2CYZVJY-DsF7k-Jl.js +1 -0
- package/dist/public/assets/classDiagram-v2-L25IHNXF-KfN1--CA.js +217 -0
- package/dist/public/assets/client-sUFoEC5s.js +1 -0
- package/dist/public/assets/clojure-Cm7r79vr.js +1 -0
- package/dist/public/assets/codicon-DF1abBS2.ttf +0 -0
- package/dist/public/assets/coffee-Ba7i2nA0.js +1 -0
- package/dist/public/assets/common-CGQN5htF.js +4 -0
- package/dist/public/assets/cose-bilkent-JH36ORCC-BuWVQ5UC.js +1 -0
- package/dist/public/assets/cpp-C7h46wYY.js +1 -0
- package/dist/public/assets/csharp-BKxtCVv1.js +1 -0
- package/dist/public/assets/csp-bTuwJoIa.js +1 -0
- package/dist/public/assets/css-DIMkf-bt.js +3 -0
- package/dist/public/assets/cynefin-EF2NZ3EQ-D_GZWaFs.js +1 -0
- package/dist/public/assets/cynefinDiagram-L36ESFBY-BKljxAVP.js +62 -0
- package/dist/public/assets/cypher-CVaqCwHa.js +1 -0
- package/dist/public/assets/cytoscape.esm-DpEiRCgp.js +321 -0
- package/dist/public/assets/d3-scale-CElPUUud.js +1 -0
- package/dist/public/assets/d3-selection-CtCbiJ-r.js +1 -0
- package/dist/public/assets/dagre-SPEB5RXH-nD3f86OL.js +4 -0
- package/dist/public/assets/dart-onAF5SnQ.js +1 -0
- package/dist/public/assets/diagram-3B7GL73J-wSVpHF4f.js +200 -0
- package/dist/public/assets/diagram-DNEMPZML-BOkeaSpr.js +24 -0
- package/dist/public/assets/diagram-L3MUGCDN-CRCErdiz.js +41 -0
- package/dist/public/assets/diagram-LA4NIPWU-y5kaOsii.js +24 -0
- package/dist/public/assets/diagram-MHCOC4E2-D7l7ybij.js +3 -0
- package/dist/public/assets/diagram-XPFHEONP-kHzV_Ibv.js +30 -0
- package/dist/public/assets/dist-B-aKVhGg.js +1 -0
- package/dist/public/assets/dockerfile-DZFCIeNp.js +1 -0
- package/dist/public/assets/ebnfDiagram-UZSYDL2S-BX_-WdHG.js +1 -0
- package/dist/public/assets/ecl-94qehhXe.js +1 -0
- package/dist/public/assets/editor-DjpsE8to.css +1 -0
- package/dist/public/assets/editor.api-Dwz0wCaW.js +908 -0
- package/dist/public/assets/editor.worker-CRz__AKW.js +33 -0
- package/dist/public/assets/elixir-6RTg0lbw.js +1 -0
- package/dist/public/assets/elk-XV6XMXQE-YaOVo5bZ.js +27 -0
- package/dist/public/assets/erDiagram-EYBAPDEH-BXQPjKDV.js +99 -0
- package/dist/public/assets/eventmodeling-K75KTNOO-SiGVyftr.js +1 -0
- package/dist/public/assets/flow9-C5_-GSwl.js +1 -0
- package/dist/public/assets/flowDiagram-MALGAFMO-BHpEyQnS.js +1 -0
- package/dist/public/assets/freemarker2-DmbpSxx5.js +3 -0
- package/dist/public/assets/fsharp-C8Ef5oNN.js +1 -0
- package/dist/public/assets/ganttDiagram-23REXITY-B_i7AN7O.js +292 -0
- package/dist/public/assets/gitGraph-VSP46ZUC-CSv9x0vY.js +1 -0
- package/dist/public/assets/gitGraphDiagram-STJD7YCW-BMA1YavS.js +106 -0
- package/dist/public/assets/go-C-y9NEjX.js +1 -0
- package/dist/public/assets/graphlib-DoDw2DoG.js +1 -0
- package/dist/public/assets/graphql-fmXr3nnJ.js +1 -0
- package/dist/public/assets/handlebars-BVNKBeJT.js +1 -0
- package/dist/public/assets/hcl-CpzslTdj.js +1 -0
- package/dist/public/assets/html-BHaxuuAl.js +1 -0
- package/dist/public/assets/index-DtU34jhH.js +2 -0
- package/dist/public/assets/info-OHQRW6UA-Bx2U6fFU.js +1 -0
- package/dist/public/assets/infoDiagram-KBXO4MBG-BkNpfsDm.js +2 -0
- package/dist/public/assets/ini-sBoK_t0W.js +1 -0
- package/dist/public/assets/ishikawaDiagram-M35NCXHK-xTM6C-Kn.js +70 -0
- package/dist/public/assets/java-BEtHBSE6.js +1 -0
- package/dist/public/assets/javascript-C5dXKvxq.js +1 -0
- package/dist/public/assets/journeyDiagram-OPLOXDXO-C6iaT7vL.js +139 -0
- package/dist/public/assets/json.worker-CV9fqkUp.js +65 -0
- package/dist/public/assets/jsonMode-BD64T5vA.css +1 -0
- package/dist/public/assets/jsonMode-Ia_aRv-z.js +29 -0
- package/dist/public/assets/julia-Bri6UV-V.js +1 -0
- package/dist/public/assets/kanban-definition-BZKZHSQY-MobAdBhz.js +89 -0
- package/dist/public/assets/katex-B9z73Mgk.js +257 -0
- package/dist/public/assets/katex-BydxR-ky.css +1 -0
- package/dist/public/assets/kotlin-BOotOW0E.js +1 -0
- package/dist/public/assets/less-B9JPFI3C.js +2 -0
- package/dist/public/assets/lexon-CfSJPG6W.js +1 -0
- package/dist/public/assets/liquid-CIbIBxiN.js +1 -0
- package/dist/public/assets/lua-CsQS60Ue.js +1 -0
- package/dist/public/assets/m3-D-oSqn_W.js +1 -0
- package/dist/public/assets/markdown-Cimd5fb3.js +1 -0
- package/dist/public/assets/mdx-BqruHcEe.js +1 -0
- package/dist/public/assets/mermaid-parser.core-kBQmxOUn.js +7 -0
- package/dist/public/assets/mermaid.core-BFkQwIYu.js +44 -0
- package/dist/public/assets/mindmap-definition-I2QAS2VK-DxpTmvUG.js +98 -0
- package/dist/public/assets/mips-CIPQ_RoX.js +1 -0
- package/dist/public/assets/module-B8jze-Tx.js +5 -0
- package/dist/public/assets/module-Blc8dqbf.js +1 -0
- package/dist/public/assets/module-C1y_4M09.js +1061 -0
- package/dist/public/assets/module-C9WFrzAc.js +1 -0
- package/dist/public/assets/module-CouMtASh.js +1 -0
- package/dist/public/assets/module-DYWqfyIP.js +1 -0
- package/dist/public/assets/module-EGdAhoOx.js +1 -0
- package/dist/public/assets/module-EeaigZHL.js +1 -0
- package/dist/public/assets/module-ZhkaqrNe.js +1 -0
- package/dist/public/assets/monaco-BRwac88s.js +35 -0
- package/dist/public/assets/monaco-BlFvoJcU.css +1 -0
- package/dist/public/assets/msdax-DauUninz.js +1 -0
- package/dist/public/assets/mysql-SOo6toE5.js +1 -0
- package/dist/public/assets/objective-c-FvmIjYaQ.js +1 -0
- package/dist/public/assets/packet-JDAUHWVQ-Dy7GyfNz.js +1 -0
- package/dist/public/assets/pascal-DrH0SRf2.js +1 -0
- package/dist/public/assets/pascaligo-D-ptJ9y-.js +1 -0
- package/dist/public/assets/pegDiagram-FD4XPPHP-B3bIVo4u.js +1 -0
- package/dist/public/assets/perl-oz_6vUea.js +1 -0
- package/dist/public/assets/pgsql-DTj74zXo.js +1 -0
- package/dist/public/assets/php-nr791fC2.js +1 -0
- package/dist/public/assets/pie-XZMESJXO-B4D2CjUH.js +1 -0
- package/dist/public/assets/pieDiagram-J4AKIIQI-CgnbwU0I.js +39 -0
- package/dist/public/assets/pla-CopQ2nXW.js +1 -0
- package/dist/public/assets/postiats-43DmfD33.js +1 -0
- package/dist/public/assets/powerquery-D3hlyOfw.js +1 -0
- package/dist/public/assets/powershell-DmHpPYUd.js +1 -0
- package/dist/public/assets/protobuf-C531GsRP.js +2 -0
- package/dist/public/assets/pug-Z5eAx3Zn.js +1 -0
- package/dist/public/assets/python-Cwjb3hEe.js +1 -0
- package/dist/public/assets/qsharp-DkqhCAOL.js +1 -0
- package/dist/public/assets/quadrantDiagram-XTYBLID2-DWx4wRau.js +7 -0
- package/dist/public/assets/r-BwWrilGY.js +1 -0
- package/dist/public/assets/radar-ABXABTNO-Dtf3tObc.js +1 -0
- package/dist/public/assets/railroad-I3PHUGI6-DKGa9xBx.js +1 -0
- package/dist/public/assets/railroad-abnf-LNEFI6M7-CyjF4cc_.js +1 -0
- package/dist/public/assets/railroad-ebnf-DWYD2UWJ-D2ypsr5c.js +1 -0
- package/dist/public/assets/railroad-peg-JR7BVNR7-Cy6Mde1c.js +1 -0
- package/dist/public/assets/railroadDiagram-MRQ6NCDL-B6ya_k_l.js +1 -0
- package/dist/public/assets/razor-D_ClW9Lh.js +1 -0
- package/dist/public/assets/redis-ClamHrr6.js +1 -0
- package/dist/public/assets/redshift-DT7zqm-g.js +1 -0
- package/dist/public/assets/requirementDiagram-Y7LWUY3S-Brg8B8VS.js +84 -0
- package/dist/public/assets/resolver-B7c_-amj.js +1 -0
- package/dist/public/assets/restructuredtext-BYgofb2h.js +1 -0
- package/dist/public/assets/rough.esm-Dy-Kn_BL.js +1 -0
- package/dist/public/assets/ruby-DezsRK8O.js +1 -0
- package/dist/public/assets/rust-DdL9SqIa.js +1 -0
- package/dist/public/assets/sankeyDiagram-WGJFYUXA-DbzPDfky.js +40 -0
- package/dist/public/assets/sb-CcwsVR0C.js +1 -0
- package/dist/public/assets/scala-DHpiXF5c.js +1 -0
- package/dist/public/assets/scheme-BeGwcela.js +1 -0
- package/dist/public/assets/scss-gp-XZpBa.js +3 -0
- package/dist/public/assets/sequenceDiagram-5NDRBG5M-BuN84drT.js +169 -0
- package/dist/public/assets/shell-CC2rA5mh.js +1 -0
- package/dist/public/assets/sizeCapture-INFHLROL-3uHXrFqA.js +1 -0
- package/dist/public/assets/solidity-BEEn4gHE.js +1 -0
- package/dist/public/assets/sophia-CRfGWb83.js +1 -0
- package/dist/public/assets/sparql-D_Lu-MrJ.js +1 -0
- package/dist/public/assets/sql-NEE52Syq.js +1 -0
- package/dist/public/assets/st-DbInun42.js +1 -0
- package/dist/public/assets/stateDiagram-v2-FJ4FJNEA-C_CTpHMj.js +291 -0
- package/dist/public/assets/swift-Bxkupp3x.js +1 -0
- package/dist/public/assets/swimlanes-UMQ2AFYF-BvD4v9jw.js +1 -0
- package/dist/public/assets/swimlanesDiagram-OMPLPG4O-CMvLg13v.js +8 -0
- package/dist/public/assets/systemverilog-Bz4Y3fRF.js +1 -0
- package/dist/public/assets/tcl-DISqw1ZD.js +1 -0
- package/dist/public/assets/timeline-definition-SEUHKTQE-VE2xWGk8.js +120 -0
- package/dist/public/assets/treeView-D4JQ5SDB-ETecwv1j.js +1 -0
- package/dist/public/assets/treemap-SAJKECNS-er6ceAYK.js +1 -0
- package/dist/public/assets/twig-De2hgUGE.js +1 -0
- package/dist/public/assets/typescript-upeNz2VW.js +1 -0
- package/dist/public/assets/typespec-B8J7ngcE.js +1 -0
- package/dist/public/assets/usecaseDiagram-AFA6YXN4-ZtyyvKye.js +328 -0
- package/dist/public/assets/vb-DV3o63ZY.js +1 -0
- package/dist/public/assets/vennDiagram-NNMJR3RB-BTEvzrNd.js +34 -0
- package/dist/public/assets/wardley-7MLQ67FV-CzrxsjBc.js +1 -0
- package/dist/public/assets/wardleyDiagram-S7YFUSEH-CF8wIUhx.js +78 -0
- package/dist/public/assets/wgsl-DpFanUEy.js +298 -0
- package/dist/public/assets/xml-Cki0HxGb.js +1 -0
- package/dist/public/assets/xychartDiagram-GGNKY7IX-DcDpoJ4n.js +7 -0
- package/dist/public/assets/yaml-YIY66l1U.js +1 -0
- package/dist/public/assets/zh-cn-Bhwk8qWJ.js +12 -0
- package/dist/public/favicon.ico +0 -0
- package/dist/public/icons/apple-touch-icon.png +0 -0
- package/dist/public/icons/icon-192.png +0 -0
- package/dist/public/icons/icon-512.png +0 -0
- package/dist/public/icons/icon.svg +1 -0
- package/dist/public/icons/maskable-512.png +0 -0
- package/dist/public/index.html +18 -0
- package/dist/public/manifest.webmanifest +40 -0
- package/dist/public/sw.js +78 -0
- package/dist/serve/index.mjs +8235 -2691
- package/package.json +23 -23
|
@@ -0,0 +1,140 @@
|
|
|
1
|
+
import{t as e}from"./chunk-5VM5RSS4-ZNzvKenW.js";import{t}from"./chunk-DUW6YSOI-Dgx8z5s3.js";import{a as n,f as r,h as i,o as a,u as o}from"./chunk-DQASFODM-DPHr08r0.js";import{i as s,r as c}from"./chunk-LEVMRMFU-CKECy4cp.js";import"./chunk-AXFCVDMN-g4Y7Pg2t.js";import"./chunk-X4PVCEUW-Dd_Qy0Gx.js";import"./chunk-STOXU5M4-DU6EHCIH.js";import"./chunk-R3KSYZAL-CCTi2rHV.js";import{i as l,n as u,o as d,r as f,s as p}from"./chunk-J5ZVWO5B-oDCd-gWO.js";import{A as m,B as h,C as g,D as _,E as v,F as ee,G as y,H as b,I as x,K as S,L as C,M as w,N as T,O as E,P as D,R as O,S as k,T as A,U as te,V as ne,W as re,b as ie,j as ae,k as oe,u as se,w as ce,z as le}from"./chunk-6MUBBAK2-Cnx7dsB1.js";import{a as ue,at as de,b as fe,c as pe,s as me,y as j}from"./chunk-BG4553SI-QNE6A_Vg.js";import{n as M,t as N}from"./d3-selection-CtCbiJ-r.js";import{n as P}from"./chunk-Y2CYZVJY-DsF7k-Jl.js";import{t as he}from"./graphlib-DoDw2DoG.js";function ge(e){return Array.isArray(e)}function _e(e){if(y(e))return e;let t=re(e);if(!ve(e))return{};if(ge(e)){let t=Array.from(e);return e.length>0&&typeof e[0]==`string`&&S(e,`index`)&&(t.index=e.index,t.input=e.input),t}if(ie(e)){let t=e,n=t.constructor;return new n(t.buffer,t.byteOffset,t.length)}if(t===`[object ArrayBuffer]`)return new ArrayBuffer(e.byteLength);if(t===`[object DataView]`){let t=e,n=t.buffer,r=t.byteOffset,i=t.byteLength,a=new ArrayBuffer(i),o=new Uint8Array(n,r,i);return new Uint8Array(a).set(o),new DataView(a)}if(t===`[object Boolean]`||t===`[object Number]`||t===`[object String]`){let n=e.constructor,r=new n(e.valueOf());return t===`[object String]`?be(r,e):F(r,e),r}if(t===`[object Date]`)return new Date(Number(e));if(t===`[object RegExp]`){let t=e,n=new RegExp(t.source,t.flags);return n.lastIndex=t.lastIndex,n}if(t===`[object Symbol]`)return Object(Symbol.prototype.valueOf.call(e));if(t===`[object Map]`){let t=e,n=new Map;return t.forEach((e,t)=>{n.set(t,e)}),n}if(t===`[object Set]`){let t=e,n=new Set;return t.forEach(e=>{n.add(e)}),n}if(t===`[object Arguments]`){let t=e,n={};return F(n,t),n.length=t.length,n[Symbol.iterator]=t[Symbol.iterator],n}let n={};return xe(n,e),F(n,e),ye(n,e),n}function ve(e){switch(re(e)){case k:case ce:case g:case v:case A:case _:case E:case oe:case w:case m:case ae:case T:case D:case ee:case x:case C:case O:case le:case b:case te:case h:case ne:return!0;default:return!1}}function F(e,t){for(let n in t)S(t,n)&&(e[n]=t[n])}function ye(e,t){let n=Object.getOwnPropertySymbols(t);for(let r=0;r<n.length;r++){let i=n[r];Object.prototype.propertyIsEnumerable.call(t,i)&&(e[i]=t[i])}}function be(e,t){let n=t.valueOf().length;for(let r in t)S(t,r)&&(Number.isNaN(Number(r))||Number(r)>=n)&&(e[r]=t[r])}function xe(e,t){let n=Object.getPrototypeOf(t);n!==null&&typeof t.constructor==`function`&&Object.setPrototypeOf(e,n)}var I=(function(){var e=P(function(e,t,n,r){for(n||={},r=e.length;r--;n[e[r]]=t);return n},`o`),t=[1,15],n=[1,7],r=[1,13],i=[1,14],a=[1,19],o=[1,16],s=[1,17],c=[1,18],l=[8,30],u=[8,10,21,28,29,30,31,39,43,46],d=[1,23],f=[1,24],p=[8,10,15,16,21,28,29,30,31,39,43,46],m=[8,10,15,16,21,27,28,29,30,31,39,43,46],h=[1,49],g={trace:P(function(){},`trace`),yy:{},symbols_:{error:2,spaceLines:3,SPACELINE:4,NL:5,separator:6,SPACE:7,EOF:8,start:9,BLOCK_DIAGRAM_KEY:10,document:11,stop:12,statement:13,link:14,LINK:15,START_LINK:16,LINK_LABEL:17,STR:18,nodeStatement:19,columnsStatement:20,SPACE_BLOCK:21,blockStatement:22,classDefStatement:23,cssClassStatement:24,styleStatement:25,node:26,SIZE:27,COLUMNS:28,"id-block":29,end:30,NODE_ID:31,nodeShapeNLabel:32,dirList:33,DIR:34,NODE_DSTART:35,NODE_DEND:36,BLOCK_ARROW_START:37,BLOCK_ARROW_END:38,classDef:39,CLASSDEF_ID:40,CLASSDEF_STYLEOPTS:41,DEFAULT:42,class:43,CLASSENTITY_IDS:44,STYLECLASS:45,style:46,STYLE_ENTITY_IDS:47,STYLE_DEFINITION_DATA:48,$accept:0,$end:1},terminals_:{2:`error`,4:`SPACELINE`,5:`NL`,7:`SPACE`,8:`EOF`,10:`BLOCK_DIAGRAM_KEY`,15:`LINK`,16:`START_LINK`,17:`LINK_LABEL`,18:`STR`,21:`SPACE_BLOCK`,27:`SIZE`,28:`COLUMNS`,29:`id-block`,30:`end`,31:`NODE_ID`,34:`DIR`,35:`NODE_DSTART`,36:`NODE_DEND`,37:`BLOCK_ARROW_START`,38:`BLOCK_ARROW_END`,39:`classDef`,40:`CLASSDEF_ID`,41:`CLASSDEF_STYLEOPTS`,42:`DEFAULT`,43:`class`,44:`CLASSENTITY_IDS`,45:`STYLECLASS`,46:`style`,47:`STYLE_ENTITY_IDS`,48:`STYLE_DEFINITION_DATA`},productions_:[0,[3,1],[3,2],[3,2],[6,1],[6,1],[6,1],[9,3],[12,1],[12,1],[12,2],[12,2],[11,1],[11,2],[14,1],[14,4],[13,1],[13,1],[13,1],[13,1],[13,1],[13,1],[13,1],[19,3],[19,2],[19,1],[20,1],[22,4],[22,3],[26,1],[26,2],[33,1],[33,2],[32,3],[32,4],[23,3],[23,3],[24,3],[25,3]],performAction:P(function(e,t,n,r,i,a,o){var s=a.length-1;switch(i){case 4:r.getLogger().debug(`Rule: separator (NL) `);break;case 5:r.getLogger().debug(`Rule: separator (Space) `);break;case 6:r.getLogger().debug(`Rule: separator (EOF) `);break;case 7:r.getLogger().debug(`Rule: hierarchy: `,a[s-1]),r.setHierarchy(a[s-1]);break;case 8:r.getLogger().debug(`Stop NL `);break;case 9:r.getLogger().debug(`Stop EOF `);break;case 10:r.getLogger().debug(`Stop NL2 `);break;case 11:r.getLogger().debug(`Stop EOF2 `);break;case 12:r.getLogger().debug(`Rule: statement: `,a[s]),this.$=typeof a[s].length==`number`?a[s]:[a[s]];break;case 13:r.getLogger().debug(`Rule: statement #2: `,a[s-1]),this.$=[a[s-1]].concat(a[s]);break;case 14:r.getLogger().debug(`Rule: link: `,a[s],e),this.$={edgeTypeStr:a[s],label:``};break;case 15:r.getLogger().debug(`Rule: LABEL link: `,a[s-3],a[s-1],a[s]),this.$={edgeTypeStr:a[s],label:a[s-1]};break;case 18:let t=parseInt(a[s]),n=r.generateId();this.$={id:n,type:`space`,label:``,width:t,children:[]};break;case 23:r.getLogger().debug(`Rule: (nodeStatement link node) `,a[s-2],a[s-1],a[s],` typestr: `,a[s-1].edgeTypeStr);let i=r.edgeStrToEdgeData(a[s-1].edgeTypeStr),o=r.edgeStrToEdgeStartData(a[s-1].edgeTypeStr),c=r.edgeStrToThickness(a[s-1].edgeTypeStr),l=r.edgeStrToPattern(a[s-1].edgeTypeStr);this.$=[{id:a[s-2].id,label:a[s-2].label,type:a[s-2].type,directions:a[s-2].directions},{id:a[s-2].id+`-`+a[s].id,start:a[s-2].id,end:a[s].id,label:a[s-1].label,type:`edge`,thickness:c,pattern:l,directions:a[s].directions,arrowTypeEnd:i,arrowTypeStart:o},{id:a[s].id,label:a[s].label,type:r.typeStr2Type(a[s].typeStr),directions:a[s].directions}];break;case 24:r.getLogger().debug(`Rule: nodeStatement (abc88 node size) `,a[s-1],a[s]),this.$={id:a[s-1].id,label:a[s-1].label,type:r.typeStr2Type(a[s-1].typeStr),directions:a[s-1].directions,widthInColumns:parseInt(a[s],10)};break;case 25:r.getLogger().debug(`Rule: nodeStatement (node) `,a[s]),this.$={id:a[s].id,label:a[s].label,type:r.typeStr2Type(a[s].typeStr),directions:a[s].directions,widthInColumns:1};break;case 26:r.getLogger().debug(`APA123`,this?this:`na`),r.getLogger().debug(`COLUMNS: `,a[s]),this.$={type:`column-setting`,columns:a[s]===`auto`?-1:parseInt(a[s])};break;case 27:r.getLogger().debug(`Rule: id-block statement : `,a[s-2],a[s-1]),r.generateId(),this.$={...a[s-2],type:`composite`,children:a[s-1]};break;case 28:r.getLogger().debug(`Rule: blockStatement : `,a[s-2],a[s-1],a[s]);let u=r.generateId();this.$={id:u,type:`composite`,label:``,children:a[s-1]};break;case 29:r.getLogger().debug(`Rule: node (NODE_ID separator): `,a[s]),this.$={id:a[s]};break;case 30:r.getLogger().debug(`Rule: node (NODE_ID nodeShapeNLabel separator): `,a[s-1],a[s]),this.$={id:a[s-1],label:a[s].label,typeStr:a[s].typeStr,directions:a[s].directions};break;case 31:r.getLogger().debug(`Rule: dirList: `,a[s]),this.$=[a[s]];break;case 32:r.getLogger().debug(`Rule: dirList: `,a[s-1],a[s]),this.$=[a[s-1]].concat(a[s]);break;case 33:r.getLogger().debug(`Rule: nodeShapeNLabel: `,a[s-2],a[s-1],a[s]),this.$={typeStr:a[s-2]+a[s],label:a[s-1]};break;case 34:r.getLogger().debug(`Rule: BLOCK_ARROW nodeShapeNLabel: `,a[s-3],a[s-2],` #3:`,a[s-1],a[s]),this.$={typeStr:a[s-3]+a[s],label:a[s-2],directions:a[s-1]};break;case 35:case 36:this.$={type:`classDef`,id:a[s-1].trim(),css:a[s].trim()};break;case 37:this.$={type:`applyClass`,id:a[s-1].trim(),styleClass:a[s].trim()};break;case 38:this.$={type:`applyStyles`,id:a[s-1].trim(),stylesStr:a[s].trim()}}},`anonymous`),table:[{9:1,10:[1,2]},{1:[3]},{10:t,11:3,13:4,19:5,20:6,21:n,22:8,23:9,24:10,25:11,26:12,28:r,29:i,31:a,39:o,43:s,46:c},{8:[1,20]},e(l,[2,12],{13:4,19:5,20:6,22:8,23:9,24:10,25:11,26:12,11:21,10:t,21:n,28:r,29:i,31:a,39:o,43:s,46:c}),e(u,[2,16],{14:22,15:d,16:f}),e(u,[2,17]),e(u,[2,18]),e(u,[2,19]),e(u,[2,20]),e(u,[2,21]),e(u,[2,22]),e(p,[2,25],{27:[1,25]}),e(u,[2,26]),{19:26,26:12,31:a},{10:t,11:27,13:4,19:5,20:6,21:n,22:8,23:9,24:10,25:11,26:12,28:r,29:i,31:a,39:o,43:s,46:c},{40:[1,28],42:[1,29]},{44:[1,30]},{47:[1,31]},e(m,[2,29],{32:32,35:[1,33],37:[1,34]}),{1:[2,7]},e(l,[2,13]),{26:35,31:a},{31:[2,14]},{17:[1,36]},e(p,[2,24]),{10:t,11:37,13:4,14:22,15:d,16:f,19:5,20:6,21:n,22:8,23:9,24:10,25:11,26:12,28:r,29:i,31:a,39:o,43:s,46:c},{30:[1,38]},{41:[1,39]},{41:[1,40]},{45:[1,41]},{48:[1,42]},e(m,[2,30]),{18:[1,43]},{18:[1,44]},e(p,[2,23]),{18:[1,45]},{30:[1,46]},e(u,[2,28]),e(u,[2,35]),e(u,[2,36]),e(u,[2,37]),e(u,[2,38]),{36:[1,47]},{33:48,34:h},{15:[1,50]},e(u,[2,27]),e(m,[2,33]),{38:[1,51]},{33:52,34:h,38:[2,31]},{31:[2,15]},e(m,[2,34]),{38:[2,32]}],defaultActions:{20:[2,7],23:[2,14],50:[2,15],52:[2,32]},parseError:P(function(e,t){if(t.recoverable)this.trace(e);else{var n=Error(e);throw n.hash=t,n}},`parseError`),parse:P(function(e){var t=this,n=[0],r=[],i=[null],a=[],o=this.table,s=``,c=0,l=0,u=0,d=2,f=1,p=a.slice.call(arguments,1),m=Object.create(this.lexer),h={yy:{}};for(var g in this.yy)Object.prototype.hasOwnProperty.call(this.yy,g)&&(h.yy[g]=this.yy[g]);m.setInput(e,h.yy),h.yy.lexer=m,h.yy.parser=this,m.yylloc===void 0&&(m.yylloc={});var _=m.yylloc;a.push(_);var v=m.options&&m.options.ranges;this.parseError=typeof h.yy.parseError==`function`?h.yy.parseError:Object.getPrototypeOf(this).parseError;function ee(e){n.length-=2*e,i.length-=e,a.length-=e}P(ee,`popStack`);function y(){var e=r.pop()||m.lex()||f;return typeof e!=`number`&&(e instanceof Array&&(r=e,e=r.pop()),e=t.symbols_[e]||e),e}P(y,`lex`);for(var b,x,S,C,w,T={},E,D,O,k;;){if(S=n[n.length-1],this.defaultActions[S]?C=this.defaultActions[S]:(b??=y(),C=o[S]&&o[S][b]),C===void 0||!C.length||!C[0]){var A=``;for(E in k=[],o[S])this.terminals_[E]&&E>d&&k.push(`'`+this.terminals_[E]+`'`);A=m.showPosition?`Parse error on line `+(c+1)+`:
|
|
2
|
+
`+m.showPosition()+`
|
|
3
|
+
Expecting `+k.join(`, `)+`, got '`+(this.terminals_[b]||b)+`'`:`Parse error on line `+(c+1)+`: Unexpected `+(b==f?`end of input`:`'`+(this.terminals_[b]||b)+`'`),this.parseError(A,{text:m.match,token:this.terminals_[b]||b,line:m.yylineno,loc:_,expected:k})}if(C[0]instanceof Array&&C.length>1)throw Error(`Parse Error: multiple actions possible at state: `+S+`, token: `+b);switch(C[0]){case 1:n.push(b),i.push(m.yytext),a.push(m.yylloc),n.push(C[1]),b=null,x?(b=x,x=null):(l=m.yyleng,s=m.yytext,c=m.yylineno,_=m.yylloc,u>0&&u--);break;case 2:if(D=this.productions_[C[1]][1],T.$=i[i.length-D],T._$={first_line:a[a.length-(D||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(D||1)].first_column,last_column:a[a.length-1].last_column},v&&(T._$.range=[a[a.length-(D||1)].range[0],a[a.length-1].range[1]]),w=this.performAction.apply(T,[s,l,c,h.yy,C[1],i,a].concat(p)),w!==void 0)return w;D&&(n=n.slice(0,-1*D*2),i=i.slice(0,-1*D),a=a.slice(0,-1*D)),n.push(this.productions_[C[1]][0]),i.push(T.$),a.push(T._$),O=o[n[n.length-2]][n[n.length-1]],n.push(O);break;case 3:return!0}}return!0},`parse`)};g.lexer=(function(){return{EOF:1,parseError:P(function(e,t){if(this.yy.parser)this.yy.parser.parseError(e,t);else throw Error(e)},`parseError`),setInput:P(function(e,t){return this.yy=t||this.yy||{},this._input=e,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:P(function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},`input`),unput:P(function(e){var t=e.length,n=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t;var r=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),n.length-1&&(this.yylineno-=n.length-1);var i=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:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},`unput`),more:P(function(){return this._more=!0,this},`more`),reject:P(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:P(function(e){this.unput(this.match.slice(e))},`less`),pastInput:P(function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?`...`:``)+e.substr(-20).replace(/\n/g,``)},`pastInput`),upcomingInput:P(function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?`...`:``)).replace(/\n/g,``)},`upcomingInput`),showPosition:P(function(){var e=this.pastInput(),t=Array(e.length+1).join(`-`);return e+this.upcomingInput()+`
|
|
5
|
+
`+t+`^`},`showPosition`),test_match:P(function(e,t){var n,r,i;if(this.options.backtrack_lexer&&(i={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&&(i.yylloc.range=this.yylloc.range.slice(0))),r=e[0].match(/(?:\r\n?|\n).*/g),r&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,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(e[0].length),this.matched+=e[0],n=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var a in i)this[a]=i[a];return!1}return!1},`test_match`),next:P(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var e,t,n,r;this._more||(this.yytext=``,this.match=``);for(var i=this._currentRules(),a=0;a<i.length;a++)if(n=this._input.match(this.rules[i[a]]),n&&(!t||n[0].length>t[0].length)){if(t=n,r=a,this.options.backtrack_lexer){if(e=this.test_match(n,i[a]),e!==!1)return e;if(this._backtrack){t=!1;continue}return!1}if(!this.options.flex)break}return t?(e=this.test_match(t,i[r]),e!==!1&&e):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:P(function(){return this.next()||this.lex()},`lex`),begin:P(function(e){this.conditionStack.push(e)},`begin`),popState:P(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},`popState`),_currentRules:P(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:P(function(e){return e=this.conditionStack.length-1-Math.abs(e||0),e>=0?this.conditionStack[e]:`INITIAL`},`topState`),pushState:P(function(e){this.begin(e)},`pushState`),stateStackSize:P(function(){return this.conditionStack.length},`stateStackSize`),options:{},performAction:P(function(e,t,n,r){switch(n){case 0:return e.getLogger().debug(`Found block-beta`),10;case 1:return e.getLogger().debug(`Found id-block`),29;case 2:return e.getLogger().debug(`Found block`),10;case 3:e.getLogger().debug(`.`,t.yytext);break;case 4:e.getLogger().debug(`_`,t.yytext);break;case 5:return 5;case 6:return t.yytext=-1,28;case 7:return t.yytext=t.yytext.replace(/columns\s+/,``),e.getLogger().debug(`COLUMNS (LEX)`,t.yytext),28;case 8:this.pushState(`md_string`);break;case 9:return`MD_STR`;case 10:this.popState();break;case 11:this.pushState(`string`);break;case 12:e.getLogger().debug(`LEX: POPPING STR:`,t.yytext),this.popState();break;case 13:return e.getLogger().debug(`LEX: STR end:`,t.yytext),`STR`;case 14:return t.yytext=t.yytext.replace(/space\:/,``),e.getLogger().debug(`SPACE NUM (LEX)`,t.yytext),21;case 15:return t.yytext=`1`,e.getLogger().debug(`COLUMNS (LEX)`,t.yytext),21;case 16:return 42;case 17:return`LINKSTYLE`;case 18:return`INTERPOLATE`;case 19:return this.pushState(`CLASSDEF`),39;case 20:return this.popState(),this.pushState(`CLASSDEFID`),`DEFAULT_CLASSDEF_ID`;case 21:return this.popState(),this.pushState(`CLASSDEFID`),40;case 22:return this.popState(),41;case 23:return this.pushState(`CLASS`),43;case 24:return this.popState(),this.pushState(`CLASS_STYLE`),44;case 25:return this.popState(),45;case 26:return this.pushState(`STYLE_STMNT`),46;case 27:return this.popState(),this.pushState(`STYLE_DEFINITION`),47;case 28:return this.popState(),48;case 29:return this.pushState(`acc_title`),`acc_title`;case 30:return this.popState(),`acc_title_value`;case 31:return this.pushState(`acc_descr`),`acc_descr`;case 32:return this.popState(),`acc_descr_value`;case 33:this.pushState(`acc_descr_multiline`);break;case 34:this.popState();break;case 35:return`acc_descr_multiline_value`;case 36:return 30;case 37:return this.popState(),e.getLogger().debug(`Lex: ((`),`NODE_DEND`;case 38:return this.popState(),e.getLogger().debug(`Lex: ((`),`NODE_DEND`;case 39:return this.popState(),e.getLogger().debug(`Lex: ))`),`NODE_DEND`;case 40:return this.popState(),e.getLogger().debug(`Lex: ((`),`NODE_DEND`;case 41:return this.popState(),e.getLogger().debug(`Lex: ((`),`NODE_DEND`;case 42:return this.popState(),e.getLogger().debug(`Lex: (-`),`NODE_DEND`;case 43:return this.popState(),e.getLogger().debug(`Lex: -)`),`NODE_DEND`;case 44:return this.popState(),e.getLogger().debug(`Lex: ((`),`NODE_DEND`;case 45:return this.popState(),e.getLogger().debug(`Lex: ]]`),`NODE_DEND`;case 46:return this.popState(),e.getLogger().debug(`Lex: (`),`NODE_DEND`;case 47:return this.popState(),e.getLogger().debug(`Lex: ])`),`NODE_DEND`;case 48:return this.popState(),e.getLogger().debug(`Lex: /]`),`NODE_DEND`;case 49:return this.popState(),e.getLogger().debug(`Lex: /]`),`NODE_DEND`;case 50:return this.popState(),e.getLogger().debug(`Lex: )]`),`NODE_DEND`;case 51:return this.popState(),e.getLogger().debug(`Lex: )`),`NODE_DEND`;case 52:return this.popState(),e.getLogger().debug(`Lex: ]>`),`NODE_DEND`;case 53:return this.popState(),e.getLogger().debug(`Lex: ]`),`NODE_DEND`;case 54:return e.getLogger().debug(`Lexa: -)`),this.pushState(`NODE`),35;case 55:return e.getLogger().debug(`Lexa: (-`),this.pushState(`NODE`),35;case 56:return e.getLogger().debug(`Lexa: ))`),this.pushState(`NODE`),35;case 57:return e.getLogger().debug(`Lexa: )`),this.pushState(`NODE`),35;case 58:return e.getLogger().debug(`Lex: (((`),this.pushState(`NODE`),35;case 59:return e.getLogger().debug(`Lexa: )`),this.pushState(`NODE`),35;case 60:return e.getLogger().debug(`Lexa: )`),this.pushState(`NODE`),35;case 61:return e.getLogger().debug(`Lexa: )`),this.pushState(`NODE`),35;case 62:return e.getLogger().debug(`Lexc: >`),this.pushState(`NODE`),35;case 63:return e.getLogger().debug(`Lexa: ([`),this.pushState(`NODE`),35;case 64:return e.getLogger().debug(`Lexa: )`),this.pushState(`NODE`),35;case 65:return this.pushState(`NODE`),35;case 66:return this.pushState(`NODE`),35;case 67:return this.pushState(`NODE`),35;case 68:return this.pushState(`NODE`),35;case 69:return this.pushState(`NODE`),35;case 70:return this.pushState(`NODE`),35;case 71:return this.pushState(`NODE`),35;case 72:return e.getLogger().debug(`Lexa: [`),this.pushState(`NODE`),35;case 73:return this.pushState(`BLOCK_ARROW`),e.getLogger().debug(`LEX ARR START`),37;case 74:return e.getLogger().debug(`Lex: NODE_ID`,t.yytext),31;case 75:return e.getLogger().debug(`Lex: EOF`,t.yytext),8;case 76:this.pushState(`md_string`);break;case 77:this.pushState(`md_string`);break;case 78:return`NODE_DESCR`;case 79:this.popState();break;case 80:e.getLogger().debug(`Lex: Starting string`),this.pushState(`string`);break;case 81:e.getLogger().debug(`LEX ARR: Starting string`),this.pushState(`string`);break;case 82:return e.getLogger().debug(`LEX: NODE_DESCR:`,t.yytext),`NODE_DESCR`;case 83:e.getLogger().debug(`LEX POPPING`),this.popState();break;case 84:e.getLogger().debug(`Lex: =>BAE`),this.pushState(`ARROW_DIR`);break;case 85:return t.yytext=t.yytext.replace(/^,\s*/,``),e.getLogger().debug(`Lex (right): dir:`,t.yytext),`DIR`;case 86:return t.yytext=t.yytext.replace(/^,\s*/,``),e.getLogger().debug(`Lex (left):`,t.yytext),`DIR`;case 87:return t.yytext=t.yytext.replace(/^,\s*/,``),e.getLogger().debug(`Lex (x):`,t.yytext),`DIR`;case 88:return t.yytext=t.yytext.replace(/^,\s*/,``),e.getLogger().debug(`Lex (y):`,t.yytext),`DIR`;case 89:return t.yytext=t.yytext.replace(/^,\s*/,``),e.getLogger().debug(`Lex (up):`,t.yytext),`DIR`;case 90:return t.yytext=t.yytext.replace(/^,\s*/,``),e.getLogger().debug(`Lex (down):`,t.yytext),`DIR`;case 91:return t.yytext=`]>`,e.getLogger().debug(`Lex (ARROW_DIR end):`,t.yytext),this.popState(),this.popState(),`BLOCK_ARROW_END`;case 92:return e.getLogger().debug(`Lex: LINK`,`#`+t.yytext+`#`),15;case 93:return e.getLogger().debug(`Lex: LINK`,t.yytext),15;case 94:return e.getLogger().debug(`Lex: LINK`,t.yytext),15;case 95:return e.getLogger().debug(`Lex: LINK`,t.yytext),15;case 96:return e.getLogger().debug(`Lex: START_LINK`,t.yytext),this.pushState(`LLABEL`),16;case 97:return e.getLogger().debug(`Lex: START_LINK`,t.yytext),this.pushState(`LLABEL`),16;case 98:return e.getLogger().debug(`Lex: START_LINK`,t.yytext),this.pushState(`LLABEL`),16;case 99:this.pushState(`md_string`);break;case 100:return e.getLogger().debug(`Lex: Starting string`),this.pushState(`string`),`LINK_LABEL`;case 101:return this.popState(),e.getLogger().debug(`Lex: LINK`,`#`+t.yytext+`#`),15;case 102:return this.popState(),e.getLogger().debug(`Lex: LINK`,t.yytext),15;case 103:return this.popState(),e.getLogger().debug(`Lex: LINK`,t.yytext),15;case 104:return e.getLogger().debug(`Lex: COLON`,t.yytext),t.yytext=t.yytext.slice(1),27}},`anonymous`),rules:[/^(?:block-beta\b)/,/^(?:block:)/,/^(?:block\b)/,/^(?:[\s]+)/,/^(?:[\n]+)/,/^(?:((\u000D\u000A)|(\u000A)))/,/^(?:columns\s+auto\b)/,/^(?:columns\s+[\d]+)/,/^(?:["][`])/,/^(?:[^`"]+)/,/^(?:[`]["])/,/^(?:["])/,/^(?:["])/,/^(?:[^"]*)/,/^(?:space[:]\d+)/,/^(?:space\b)/,/^(?:default\b)/,/^(?:linkStyle\b)/,/^(?:interpolate\b)/,/^(?:classDef\s+)/,/^(?:DEFAULT\s+)/,/^(?:\w+\s+)/,/^(?:[^\n]*)/,/^(?:class\s+)/,/^(?:(\w+)+((,\s*\w+)*))/,/^(?:[^\n]*)/,/^(?:style\s+)/,/^(?:(\w+)+((,\s*\w+)*))/,/^(?:[^\n]*)/,/^(?:accTitle\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*\{\s*)/,/^(?:[\}])/,/^(?:[^\}]*)/,/^(?:end\b\s*)/,/^(?:\(\(\()/,/^(?:\)\)\))/,/^(?:[\)]\))/,/^(?:\}\})/,/^(?:\})/,/^(?:\(-)/,/^(?:-\))/,/^(?:\(\()/,/^(?:\]\])/,/^(?:\()/,/^(?:\]\))/,/^(?:\\\])/,/^(?:\/\])/,/^(?:\)\])/,/^(?:[\)])/,/^(?:\]>)/,/^(?:[\]])/,/^(?:-\))/,/^(?:\(-)/,/^(?:\)\))/,/^(?:\))/,/^(?:\(\(\()/,/^(?:\(\()/,/^(?:\{\{)/,/^(?:\{)/,/^(?:>)/,/^(?:\(\[)/,/^(?:\()/,/^(?:\[\[)/,/^(?:\[\|)/,/^(?:\[\()/,/^(?:\)\)\))/,/^(?:\[\\)/,/^(?:\[\/)/,/^(?:\[\\)/,/^(?:\[)/,/^(?:<\[)/,/^(?:[^\(\[\n\-\)\{\}\s\<\>:=]+)/,/^(?:$)/,/^(?:["][`])/,/^(?:["][`])/,/^(?:[^`"]+)/,/^(?:[`]["])/,/^(?:["])/,/^(?:["])/,/^(?:[^"]+)/,/^(?:["])/,/^(?:\]>\s*\()/,/^(?:,?\s*right\s*)/,/^(?:,?\s*left\s*)/,/^(?:,?\s*x\s*)/,/^(?:,?\s*y\s*)/,/^(?:,?\s*up\s*)/,/^(?:,?\s*down\s*)/,/^(?:\)\s*)/,/^(?:\s*[xo<]?--+[-xo>]\s*)/,/^(?:\s*[xo<]?==+[=xo>]\s*)/,/^(?:\s*[xo<]?-?\.+-[xo>]?\s*)/,/^(?:\s*~~[\~]+\s*)/,/^(?:\s*[xo<]?--\s*)/,/^(?:\s*[xo<]?==\s*)/,/^(?:\s*[xo<]?-\.\s*)/,/^(?:["][`])/,/^(?:["])/,/^(?:\s*[xo<]?--+[-xo>]\s*)/,/^(?:\s*[xo<]?==+[=xo>]\s*)/,/^(?:\s*[xo<]?-?\.+-[xo>]?\s*)/,/^(?::\d+)/],conditions:{STYLE_DEFINITION:{rules:[28],inclusive:!1},STYLE_STMNT:{rules:[27],inclusive:!1},CLASSDEFID:{rules:[22],inclusive:!1},CLASSDEF:{rules:[20,21],inclusive:!1},CLASS_STYLE:{rules:[25],inclusive:!1},CLASS:{rules:[24],inclusive:!1},LLABEL:{rules:[99,100,101,102,103],inclusive:!1},ARROW_DIR:{rules:[85,86,87,88,89,90,91],inclusive:!1},BLOCK_ARROW:{rules:[76,81,84],inclusive:!1},NODE:{rules:[37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,77,80],inclusive:!1},md_string:{rules:[9,10,78,79],inclusive:!1},space:{rules:[],inclusive:!1},string:{rules:[12,13,82,83],inclusive:!1},acc_descr_multiline:{rules:[34,35],inclusive:!1},acc_descr:{rules:[32],inclusive:!1},acc_title:{rules:[30],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7,8,11,14,15,16,17,18,19,23,26,29,31,33,36,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,92,93,94,95,96,97,98,104],inclusive:!0}}}})();function _(){this.yy={}}return P(_,`Parser`),_.prototype=g,g.Parser=_,new _})();I.parser=I;var Se=I,L=new Map,R=[],z=new Map,B=`color`,Ce=`fill`,we=`bgFill`,Te=`,`,V=new Map,H=``,Ee=P(e=>me.sanitizeText(e,fe()),`sanitizeText`),De=P(function(e,t=``){let n=V.get(e);n||(n={id:e,styles:[],textStyles:[]},V.set(e,n)),t?.split(Te).forEach(e=>{let t=e.replace(/([^;]*);/,`$1`).trim();if(RegExp(B).exec(e)){let e=t.replace(Ce,we).replace(B,Ce);n.textStyles.push(e)}n.styles.push(t)})},`addStyleClass`),Oe=P(function(e,t=``){let n=L.get(e);t!=null&&(n.styles=t.split(Te))},`addStyle2Node`),ke=P(function(e,t){e.split(`,`).forEach(function(e){let n=L.get(e);if(n===void 0){let t=e.trim();n={id:t,type:`na`,children:[]},L.set(t,n)}n.classes||(n.classes=[]),n.classes.push(t)})},`setCssClass`),Ae=0,je=P((e,t)=>{let n=e.flat(),r=[],i=n.find(e=>e?.type===`column-setting`)?.columns??-1;for(let e of n)if(typeof i==`number`&&i>0&&e.type!==`column-setting`&&typeof e.widthInColumns==`number`&&e.widthInColumns>i&&M.warn(`Block ${e.id} width ${e.widthInColumns} exceeds configured column width ${i}`),e.label&&=Ee(e.label),e.type===`classDef`)De(e.id,e.css);else if(e.type===`applyClass`)ke(e.id,e?.styleClass??``);else if(e.type===`applyStyles`)e?.stylesStr&&Oe(e.id,e?.stylesStr);else if(e.type===`column-setting`)t.columns=e.columns??-1;else if(e.type===`edge`){let t=(z.get(e.id)??0)+1;z.set(e.id,t),e.id=t+`-`+e.id,R.push(e)}else{e.label||=e.type===`composite`?``:e.id;let t=L.get(e.id);if(t===void 0?(e.type===`composite`&&(e.colorIndex=Ae++),L.set(e.id,e)):(e.type!==`na`&&(t.type=e.type),e.label!==e.id&&(t.label=e.label)),e.children&&je(e.children,e),e.type===`space`){let t=e.width??1;for(let n=0;n<t;n++){let t=_e(e);t.id=t.id+`-`+n,L.set(t.id,t),r.push(t)}}else t===void 0&&r.push(e)}t.children=r},`populateBlockDatabase`),U=[],W={id:`root`,type:`composite`,children:[],columns:-1},Me=P(()=>{M.debug(`Clear called`),ue(),W={id:`root`,type:`composite`,children:[],columns:-1},L=new Map([[`root`,W]]),U=[],V=new Map,R=[],z=new Map,H=``,Ae=0},`clear`);function Ne(e){switch(M.debug(`typeStr2Type`,e),e){case`[]`:return`square`;case`()`:return M.debug(`we have a round`),`round`;case`(())`:return`circle`;case`>]`:return`rect_left_inv_arrow`;case`{}`:return`diamond`;case`{{}}`:return`hexagon`;case`([])`:return`stadium`;case`[[]]`:return`subroutine`;case`[()]`:return`cylinder`;case`((()))`:return`doublecircle`;case`[//]`:return`lean_right`;case`[\\\\]`:return`lean_left`;case`[/\\]`:return`trapezoid`;case`[\\/]`:return`inv_trapezoid`;case`<[]>`:return`block_arrow`;default:return`na`}}P(Ne,`typeStr2Type`);function Pe(e){switch(M.debug(`typeStr2Type`,e),e){case`==`:return`thick`;default:return`normal`}}P(Pe,`edgeTypeStr2Type`);function Fe(e){switch(e.trim().slice(-1)){case`x`:return`arrow_cross`;case`o`:return`arrow_circle`;case`>`:return`arrow_point`;default:return``}}P(Fe,`edgeStrToEdgeData`);function Ie(e){switch(e.trim().charAt(0)){case`x`:return`arrow_cross`;case`o`:return`arrow_circle`;case`<`:return`arrow_point`;default:return`arrow_open`}}P(Ie,`edgeStrToEdgeStartData`);function Le(e){return e.includes(`==`)?`thick`:`normal`}P(Le,`edgeStrToThickness`);function Re(e){return e.includes(`.-`)?`dotted`:`solid`}P(Re,`edgeStrToPattern`);var G=0,ze={getConfig:P(()=>j().block,`getConfig`),typeStr2Type:Ne,edgeTypeStr2Type:Pe,edgeStrToEdgeData:Fe,edgeStrToEdgeStartData:Ie,edgeStrToThickness:Le,edgeStrToPattern:Re,getLogger:P(()=>M,`getLogger`),getBlocksFlat:P(()=>[...L.values()],`getBlocksFlat`),getBlocks:P(()=>U||[],`getBlocks`),getEdges:P(()=>R,`getEdges`),setHierarchy:P(e=>{W.children=e,je(e,W),U=W.children},`setHierarchy`),getBlock:P(e=>L.get(e),`getBlock`),setBlock:P(e=>{L.set(e.id,e)},`setBlock`),getColumns:P(e=>{let t=L.get(e);return t?t.columns?t.columns:t.children?t.children.length:-1:-1},`getColumns`),getClasses:P(function(){return V},`getClasses`),clear:Me,generateId:P(()=>(G++,`id-`+Math.random().toString(36).substr(2,12)+`-`+G),`generateId`),setDiagramId:P(e=>{H=e},`setDiagramId`),getDiagramId:P(()=>H,`getDiagramId`)},Be=P(e=>{let{theme:t,bkgColorArray:n,borderColorArray:r}=e;if(!l(t,r))return``;let i=d(e.look),a=f(n),o=``;for(let t=0;t<u(e.THEME_COLOR_LIMIT,r);t++){let e=r[t%r.length],s=a?`fill: ${n[t%n.length]};`:``,c=`[data-look="${i}"][data-color-id="color-${t}"]`;o+=`
|
|
7
|
+
|
|
8
|
+
${c}.node rect.composite {
|
|
9
|
+
stroke: ${e};
|
|
10
|
+
${s}
|
|
11
|
+
}
|
|
12
|
+
`}return o},`genColor`),K=P((e,t)=>{let n=i,r=n(e,`r`),a=n(e,`g`),o=n(e,`b`);return de(r,a,o,t)},`fade`),Ve=P(t=>`${Be(t)}
|
|
13
|
+
.label {
|
|
14
|
+
font-family: ${t.fontFamily};
|
|
15
|
+
color: ${t.nodeTextColor||t.textColor};
|
|
16
|
+
}
|
|
17
|
+
.cluster-label text {
|
|
18
|
+
fill: ${t.titleColor};
|
|
19
|
+
}
|
|
20
|
+
.cluster-label span {
|
|
21
|
+
color: ${t.titleColor};
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
.label text,span {
|
|
27
|
+
fill: ${t.nodeTextColor||t.textColor};
|
|
28
|
+
color: ${t.nodeTextColor||t.textColor};
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.node rect,
|
|
32
|
+
.node circle,
|
|
33
|
+
.node ellipse,
|
|
34
|
+
.node polygon,
|
|
35
|
+
.node path {
|
|
36
|
+
fill: ${t.mainBkg};
|
|
37
|
+
stroke: ${t.nodeBorder};
|
|
38
|
+
/* From the theme, as every other diagram does. Pinned at 1px here, so block drew a
|
|
39
|
+
thinner border than an identical flowchart node under any theme asking for more --
|
|
40
|
+
the neo theme asks for 2. Nothing downstream corrected it: the neo rules set stroke
|
|
41
|
+
and filter, never stroke-width. */
|
|
42
|
+
stroke-width: ${t.strokeWidth??1}px;
|
|
43
|
+
}
|
|
44
|
+
.flowchart-label text {
|
|
45
|
+
text-anchor: middle;
|
|
46
|
+
}
|
|
47
|
+
// .flowchart-label .text-outer-tspan {
|
|
48
|
+
// text-anchor: middle;
|
|
49
|
+
// }
|
|
50
|
+
// .flowchart-label .text-inner-tspan {
|
|
51
|
+
// text-anchor: start;
|
|
52
|
+
// }
|
|
53
|
+
|
|
54
|
+
.node .label {
|
|
55
|
+
text-align: center;
|
|
56
|
+
}
|
|
57
|
+
.node.clickable {
|
|
58
|
+
cursor: pointer;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.arrowheadPath {
|
|
62
|
+
fill: ${t.arrowheadColor};
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
.edgePaths .path {
|
|
66
|
+
stroke: ${t.lineColor};
|
|
67
|
+
stroke-width: 2.0px;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.flowchart-link {
|
|
71
|
+
stroke: ${t.lineColor};
|
|
72
|
+
fill: none;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
.edgeLabel {
|
|
76
|
+
background-color: ${t.edgeLabelBackground};
|
|
77
|
+
/*
|
|
78
|
+
* This is for backward compatibility with existing code that didn't
|
|
79
|
+
* add a \`<p>\` around edge labels.
|
|
80
|
+
*
|
|
81
|
+
* TODO: We should probably remove this in a future release.
|
|
82
|
+
*/
|
|
83
|
+
p {
|
|
84
|
+
margin: 0;
|
|
85
|
+
padding: 0;
|
|
86
|
+
display: inline;
|
|
87
|
+
}
|
|
88
|
+
rect {
|
|
89
|
+
opacity: 0.5;
|
|
90
|
+
background-color: ${t.edgeLabelBackground};
|
|
91
|
+
fill: ${t.edgeLabelBackground};
|
|
92
|
+
}
|
|
93
|
+
text-align: center;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
/* For html labels only */
|
|
97
|
+
.labelBkg {
|
|
98
|
+
background-color: ${t.edgeLabelBackground};
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
.node .cluster {
|
|
102
|
+
// fill: ${K(t.mainBkg,.5)};
|
|
103
|
+
fill: ${K(t.clusterBkg,.5)};
|
|
104
|
+
stroke: ${K(t.clusterBorder,.2)};
|
|
105
|
+
box-shadow: rgba(50, 50, 93, 0.25) 0px 13px 27px -5px, rgba(0, 0, 0, 0.3) 0px 8px 16px -8px;
|
|
106
|
+
stroke-width: 1px;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
.cluster text {
|
|
110
|
+
fill: ${t.titleColor};
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
.cluster span {
|
|
114
|
+
color: ${t.titleColor};
|
|
115
|
+
}
|
|
116
|
+
/* .cluster div {
|
|
117
|
+
color: ${t.titleColor};
|
|
118
|
+
} */
|
|
119
|
+
|
|
120
|
+
div.mermaidTooltip {
|
|
121
|
+
position: absolute;
|
|
122
|
+
text-align: center;
|
|
123
|
+
max-width: 200px;
|
|
124
|
+
padding: 2px;
|
|
125
|
+
font-family: ${t.fontFamily};
|
|
126
|
+
font-size: 12px;
|
|
127
|
+
background: ${t.tertiaryColor};
|
|
128
|
+
border: 1px solid ${t.border2};
|
|
129
|
+
border-radius: 2px;
|
|
130
|
+
pointer-events: none;
|
|
131
|
+
z-index: 100;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
.flowchartTitleText {
|
|
135
|
+
text-anchor: middle;
|
|
136
|
+
font-size: 18px;
|
|
137
|
+
fill: ${t.textColor};
|
|
138
|
+
}
|
|
139
|
+
${e()}
|
|
140
|
+
`,`getStyles`);function q(e,t){if(e===0||!Number.isInteger(e))throw Error(`Columns must be an integer !== 0.`);if(t<0||!Number.isInteger(t))throw Error(`Position must be a non-negative integer.`+t);return e<0?{px:t,py:0}:e===1?{px:0,py:t}:{px:t%e,py:Math.floor(t/e)}}P(q,`calculateBlockPosition`);var He=P(e=>{let t=0,n=0;for(let r of e.children){let{width:e,height:i,x:a,y:o}=r.size??{width:0,height:0,x:0,y:0};if(M.debug(`getMaxChildSize abc95 child:`,r.id,`width:`,e,`height:`,i,`x:`,a,`y:`,o,r.type),r.type===`space`)continue;let s=e/(r.widthInColumns??1);s>t&&(t=s),i>n&&(n=i)}return{width:t,height:n}},`getMaxChildSize`);function J(e,t,n=0,r=0,i=8){M.debug(`setBlockSizes abc95 (start)`,e.id,e?.size?.x,`block width =`,e?.size,`siblingWidth`,n),e?.size?.width||(e.size={width:n,height:r,x:0,y:0});let a=0,o=0;if(e.children?.length>0){for(let n of e.children)J(n,t,0,0,i);let s=He(e);a=s.width,o=s.height,M.debug(`setBlockSizes abc95 maxWidth of`,e.id,`:s children is `,a,o);for(let t of e.children)t.size&&(M.debug(`abc95 Setting size of children of ${e.id} id=${t.id} ${a} ${o} ${JSON.stringify(t.size)}`),t.size.width=a*(t.widthInColumns??1)+i*((t.widthInColumns??1)-1),t.size.height=o,t.size.x=0,t.size.y=0,M.debug(`abc95 updating size of ${e.id} children child:${t.id} maxWidth:${a} maxHeight:${o}`));for(let n of e.children)J(n,t,a,o,i);let c=e.columns??-1,l=0;for(let t of e.children)l+=t.widthInColumns??1;let u=e.children.length;c>0&&c<l&&(u=c);let d=Math.ceil(l/u),f=u*(a+i)+i,p=d*(o+i)+i;if(f<n){M.debug(`Detected to small sibling: abc95 ${e.id} siblingWidth ${n} siblingHeight ${r} width ${f}`),f=n,p=r;let t=(n-u*i-i)/u,s=(r-d*i-i)/d;M.debug(`Size indata abc88`,e.id,`childWidth`,t,`maxWidth`,a),M.debug(`Size indata abc88`,e.id,`childHeight`,s,`maxHeight`,o),M.debug(`Size indata abc88 xSize`,u,`padding`,i);for(let n of e.children)n.size&&(n.size.width=t,n.size.height=s,n.size.x=0,n.size.y=0)}if(M.debug(`abc95 (finale calc) ${e.id} xSize ${u} ySize ${d} columns ${c}${e.children.length} width=${Math.max(f,e.size?.width||0)}`),f<(e?.size?.width||0)){f=e?.size?.width||0;let t=c>0?Math.min(e.children.length,c):e.children.length;if(t>0){let n=(f-t*i-i)/t;M.debug(`abc95 (growing to fit) width`,e.id,f,e.size?.width,n);for(let t of e.children)t.size&&(t.size.width=n)}}e.size={width:f,height:p,x:0,y:0}}M.debug(`setBlockSizes abc94 (done)`,e.id,e?.size?.x,e?.size?.width,e?.size?.y,e?.size?.height)}P(J,`setBlockSizes`);function Y(e,t,n=8){M.debug(`abc85 layout blocks (=>layoutBlocks) ${e.id} x: ${e?.size?.x} y: ${e?.size?.y} width: ${e?.size?.width}`);let r=e.columns??-1;if(M.debug(`layoutBlocks columns abc95`,e.id,`=>`,r,e),e.children&&e.children.length>0){let i=e?.children[0]?.size?.width??0,a=e.children.length*i+(e.children.length-1)*n;M.debug(`widthOfChildren 88`,a,`posX`);let o=new Map;{let t=0;for(let n of e.children){if(!n.size)continue;let{py:e}=q(r,t),i=o.get(e)??0;n.size.height>i&&o.set(e,n.size.height);let a=n?.widthInColumns??1;r>0&&(a=Math.min(a,r-t%r)),t+=a}}let s=new Map;{let e=0,t=[...o.keys()].sort((e,t)=>e-t);for(let r of t)s.set(r,e),e+=(o.get(r)??0)+n}let c=0;M.debug(`abc91 block?.size?.x`,e.id,e?.size?.x);let l=e?.size?.x?e?.size?.x+(-e?.size?.width/2||0):-n,u=0;for(let i of e.children){let a=e;if(!i.size)continue;let{width:d,height:f}=i.size,{px:p,py:m}=q(r,c);if(m!=u&&(u=m,l=e?.size?.x?e?.size?.x+(-e?.size?.width/2||0):-n,M.debug(`New row in layout for block`,e.id,` and child `,i.id,u)),M.debug(`abc89 layout blocks (child) id: ${i.id} Pos: ${c} (px, py) ${p},${m} (${a?.size?.x},${a?.size?.y}) parent: ${a.id} width: ${d}${n}`),a.size){let e=d/2;i.size.x=l+n+e,M.debug(`abc91 layout blocks (calc) px, pyid:${i.id} startingPos=X${l} new startingPosX${i.size.x} ${e} padding=${n} width=${d} halfWidth=${e} => x:${i.size.x} y:${i.size.y} ${i.widthInColumns} (width * (child?.w || 1)) / 2 ${d*(i?.widthInColumns??1)/2}`),l=i.size.x+e;let t=s.get(m)??0,r=o.get(m)??f;i.size.y=a.size.y-a.size.height/2+t+r/2+n,M.debug(`abc88 layout blocks (calc) px, pyid:${i.id}startingPosX${l}${n}${e}=>x:${i.size.x}y:${i.size.y}${i.widthInColumns}(width * (child?.w || 1)) / 2${d*(i?.widthInColumns??1)/2}`)}i.children&&Y(i,t,n);let h=i?.widthInColumns??1;r>0&&(h=Math.min(h,r-c%r)),c+=h,M.debug(`abc88 columnsPos`,i,c)}}M.debug(`layout blocks (<==layoutBlocks) ${e.id} x: ${e?.size?.x} y: ${e?.size?.y} width: ${e?.size?.width}`)}P(Y,`layoutBlocks`);function X(e,{minX:t,minY:n,maxX:r,maxY:i}={minX:0,minY:0,maxX:0,maxY:0}){if(e.size&&e.id!==`root`){let{x:a,y:o,width:s,height:c}=e.size;a-s/2<t&&(t=a-s/2),o-c/2<n&&(n=o-c/2),a+s/2>r&&(r=a+s/2),o+c/2>i&&(i=o+c/2)}if(e.children)for(let a of e.children)({minX:t,minY:n,maxX:r,maxY:i}=X(a,{minX:t,minY:n,maxX:r,maxY:i}));return{minX:t,minY:n,maxX:r,maxY:i}}P(X,`findBounds`);function Ue(e){let t=e.getBlock(`root`);if(!t)return;let n=fe()?.block?.padding??8;J(t,e,0,0,n),Y(t,e,n),M.debug(`getBlocks`,JSON.stringify(t,null,2));let{minX:r,minY:i,maxX:a,maxY:o}=X(t),s=o-i;return{x:r,y:i,width:a-r,height:s}}P(Ue,`layout`);function Z(e,t,n=!1){let r=e,i=`default`;(r?.classes?.length||0)>0&&(i=(r?.classes??[]).join(` `)),i+=` flowchart-label`;let a=(r?.classes??[]).flatMap(e=>t.getClasses().get(e)?.styles??[]),o=0,s=`rect`,c;switch(r.type){case`round`:o=5,s=`rect`;break;case`composite`:o=0,s=`composite`,c=0;break;case`square`:s=`rect`;break;case`diamond`:s=`question`;break;case`hexagon`:s=`hexagon`;break;case`block_arrow`:s=`block_arrow`;break;case`odd`:s=`rect_left_inv_arrow`;break;case`lean_right`:s=`lean_right`;break;case`lean_left`:s=`lean_left`;break;case`trapezoid`:s=`trapezoid`;break;case`inv_trapezoid`:s=`inv_trapezoid`;break;case`rect_left_inv_arrow`:s=`rect_left_inv_arrow`;break;case`circle`:s=`circle`;break;case`ellipse`:s=`ellipse`;break;case`stadium`:s=`stadium`;break;case`subroutine`:s=`subroutine`;break;case`cylinder`:s=`cylinder`;break;case`group`:s=`rect`;break;case`doublecircle`:s=`doublecircle`;break;default:s=`rect`}let l=se(r?.styles??[]),u=r.label,d=r.size??{width:0,height:0,x:0,y:0},f=t.getDiagramId();return{labelStyle:l.labelStyle,shape:s,label:u,labelText:u,rx:o,ry:o,class:i,cssClasses:i,cssStyles:r?.styles??[],cssCompiledStyles:a,style:l.style,id:r.id,domId:f?`${f}-${r.id}`:r.id,isGroup:!1,directions:r.directions,width:d.width||void 0,height:d.height||void 0,wrappingWidth:d.width||1/0,x:d.x,y:d.y,positioned:n,intersect:void 0,padding:c??j()?.block?.padding??0,widthInColumns:r.widthInColumns??1,colorIndex:r.colorIndex,look:j().look}}P(Z,`getNodeFromBlock`);async function We(e,t,n){let r=Z(t,n,!1);if(t.type===`group`)return;let i=j(),a=await c(e,r,{config:i}),o=a.node()?.getBBox()??{width:0,height:0},s=n.getBlock(r.id);s.size={width:o.width,height:o.height,x:0,y:0,node:a},n.setBlock(s),a.remove()}P(We,`calculateBlockSize`);async function Ge(e,t,n){let r=Z(t,n,!0);if(n.getBlock(r.id).type!==`space`){let n=j(),i=await c(e,r,{config:n});r.colorIndex!==void 0&&p(i,r.colorIndex,n.theme,n.themeVariables?.borderColorArray),t.intersect=r?.intersect,s(r)}}P(Ge,`insertBlockPositioned`);async function Q(e,t,n,r){for(let i of t)await r(e,i,n),i.children&&await Q(e,i.children,n,r)}P(Q,`performOperations`);async function Ke(e,t,n){await Q(e,t,n,We)}P(Ke,`calculateBlockSizes`);async function qe(e,t,n){await Q(e,t,n,Ge)}P(qe,`insertBlocks`);async function $(e,t,i,o,s){let c=new he({multigraph:!0,compound:!0});c.setGraph({rankdir:`TB`,nodesep:10,ranksep:10,marginx:8,marginy:8});for(let e of i)e.size&&c.setNode(e.id,{width:e.size.width,height:e.size.height,intersect:e.intersect});for(let i of t)if(i.start&&i.end){let t=o.getBlock(i.start),l=o.getBlock(i.end);if(t?.size&&l?.size){let o=t.size,u=l.size,d=[{x:o.x,y:o.y},{x:o.x+(u.x-o.x)/2,y:o.y+(u.y-o.y)/2},{x:u.x,y:u.y}],f=s?`${s}-${i.id}`:i.id,p=`${i.thickness===`thick`?`edge-thickness-thick`:`edge-thickness-normal`} ${i.pattern===`dotted`?`edge-pattern-dotted`:`edge-pattern-solid`} flowchart-link LS-a1 LE-b1`;n(e,{...i,id:f,arrowTypeEnd:i.arrowTypeEnd,arrowTypeStart:i.arrowTypeStart,points:d,classes:p},{},`block`,c.node(i.start),c.node(i.end),s),i.label&&(await a(e,{...i,label:i.label,labelStyle:`stroke: #333; stroke-width: 1.5px;fill:none;`,arrowTypeEnd:i.arrowTypeEnd,arrowTypeStart:i.arrowTypeStart,points:d,classes:p}),r({...i,x:d[1].x,y:d[1].y},{originalPath:d}))}}}P($,`insertEdges`);var Je={parser:Se,db:ze,renderer:{draw:P(async function(e,n,r,i){let{securityLevel:a,block:s}=j(),c=i.db;c.setDiagramId(n);let l;a===`sandbox`&&(l=N(`#i`+n));let u=N(a===`sandbox`?l.nodes()[0].contentDocument.body:`body`),d=a===`sandbox`?u.select(`[id="${n}"]`):N(`[id="${n}"]`);t(d,j()),o(d,[`point`,`circle`,`cross`],i.type,n);let f=c.getBlocks(),p=c.getBlocksFlat(),m=c.getEdges(),h=d.insert(`g`).attr(`class`,`block`);await Ke(h,f,c);let g=Ue(c);await qe(h,f,c),await $(h,m,p,c,n);let _=h.node()?.getBBox(),v=_&&Number.isFinite(_.width)&&Number.isFinite(_.height)?_:g;if(v){let e=Math.max(1,Math.round(.125*(v.width/v.height))),t=v.height+e+10,n=v.width+10,{useMaxWidth:r}=s;pe(d,t,n,!!r),M.debug(`Here Bounds`,g,v),d.attr(`viewBox`,`${v.x-5} ${v.y-5} ${v.width+10} ${v.height+10}`)}},`draw`),getClasses:P(function(e,t){return t.db.getClasses()},`getClasses`)},styles:Ve};export{Je as diagram};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var e={prefix:`bpmn`,height:24,width:24,icons:{message:{body:`<path fill="none" stroke="currentColor" stroke-width="1.6" d="M3 6h18v12H3z"/><path class="bpmn-glyph-fold" fill="none" stroke="currentColor" stroke-width="1.6" d="m3 6 9 7 9-7"/>`},timer:{body:`<circle cx="12" cy="12" r="9" fill="none" stroke="currentColor" stroke-width="1.6"/><path fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" d="M12 7v5l3.5 2.5"/><path stroke="currentColor" stroke-width="1.2" d="M12 3v1.5M21 12h-1.5M12 21v-1.5M3 12h1.5"/>`},error:{body:`<path fill="none" stroke="currentColor" stroke-width="1.6" stroke-linejoin="round" d="M4 21 9.5 6 13 12.5 20 4 14.5 19 11 12.5Z"/>`},escalation:{body:`<path fill="none" stroke="currentColor" stroke-width="1.8" stroke-linejoin="round" d="m12 3 8 18-8-7-8 7z"/>`},signal:{body:`<path fill="none" stroke="currentColor" stroke-width="1.8" stroke-linejoin="round" d="M12 4 22 20H2z"/>`},conditional:{body:`<path fill="none" stroke="currentColor" stroke-width="1.6" d="M4 4h16v16H4z"/><path stroke="currentColor" stroke-width="1.6" stroke-linecap="round" d="M7 9h10M7 12.5h10M7 16h10"/>`},link:{body:`<path fill="none" stroke="currentColor" stroke-width="1.8" stroke-linejoin="round" d="M3 9h10V5l8 7-8 7v-4H3z"/>`},compensation:{body:`<path fill="none" stroke="currentColor" stroke-width="1.6" stroke-linejoin="round" d="M11 6 3 12l8 6zM21 6l-8 6 8 6z"/>`},cancel:{body:`<path stroke="currentColor" stroke-width="2.2" stroke-linecap="round" d="m5 5 14 14M19 5 5 19"/>`},terminate:{body:`<circle cx="12" cy="12" r="9" fill="currentColor"/>`},multiple:{body:`<path fill="none" stroke="currentColor" stroke-width="1.7" stroke-linejoin="round" d="m12 3 8.5 6.2-3.2 10H6.7l-3.2-10z"/>`},user:{body:`<circle cx="12" cy="8" r="4" fill="none" stroke="currentColor" stroke-width="1.7"/><path fill="none" stroke="currentColor" stroke-width="1.7" stroke-linecap="round" d="M4.5 21a7.5 7.5 0 0 1 15 0"/>`},service:{body:`<path fill="none" stroke="currentColor" stroke-width="1.5" stroke-linejoin="round" d="m20.2 14.3-2 .6a6.6 6.6 0 0 1-1 1.7l.6 2-2.4 1.4-1.5-1.5a6.6 6.6 0 0 1-2 0l-1.5 1.5-2.4-1.4.6-2a6.6 6.6 0 0 1-1-1.7l-2-.6v-2.8l2-.6a6.6 6.6 0 0 1 1-1.7l-.6-2 2.4-1.4 1.5 1.5a6.6 6.6 0 0 1 2 0l1.5-1.5 2.4 1.4-.6 2a6.6 6.6 0 0 1 1 1.7l2 .6z"/><circle cx="12" cy="12.9" r="2.6" fill="none" stroke="currentColor" stroke-width="1.5"/>`},script:{body:`<path fill="none" stroke="currentColor" stroke-width="1.6" stroke-linejoin="round" d="M8 3h9a2.5 2.5 0 0 0-2.5 2.5v13A2.5 2.5 0 0 1 12 21H3a2.5 2.5 0 0 0 2.5-2.5v-13A2.5 2.5 0 0 1 8 3Z"/><path stroke="currentColor" stroke-width="1.4" stroke-linecap="round" d="M6.5 8h6M6.5 11.5h6M6.5 15h4"/>`},manual:{body:`<path fill="none" stroke="currentColor" stroke-width="1.6" stroke-linejoin="round" d="M8 11V5.5a1.8 1.8 0 0 1 3.5 0V10m0-.5a1.8 1.8 0 0 1 3.5 0V11m0-.5a1.8 1.8 0 0 1 3.5 0V16a5 5 0 0 1-5 5h-2a5 5 0 0 1-5-5v-4.5a1.8 1.8 0 0 1 1.5-1.8z"/>`},receive:{body:`<path fill="none" stroke="currentColor" stroke-width="1.6" d="M3 6h18v12H3z"/><path fill="none" stroke="currentColor" stroke-width="1.6" d="m3 6 9 7 9-7"/>`},send:{body:`<path fill="currentColor" d="M3 6h18v12H3z" opacity=".18"/><path fill="none" stroke="currentColor" stroke-width="1.6" d="M3 6h18v12H3z"/><path fill="none" stroke="currentColor" stroke-width="1.6" d="m3 6 9 7 9-7"/>`},rule:{body:`<path fill="none" stroke="currentColor" stroke-width="1.6" d="M3 5h18v14H3z"/><path stroke="currentColor" stroke-width="1.4" d="M3 9h18M3 13h18M8 9v10"/>`},loop:{body:`<path fill="none" stroke="currentColor" stroke-width="1.9" stroke-linecap="round" d="M20 12a8 8 0 1 1-2.7-6"/><path fill="currentColor" d="M20 3.2v5.4h-5.4z"/>`},parallel:{body:`<path stroke="currentColor" stroke-width="2.4" stroke-linecap="round" d="M6 4v16M12 4v16M18 4v16"/>`},sequential:{body:`<path stroke="currentColor" stroke-width="2.4" stroke-linecap="round" d="M4 6h16M4 12h16M4 18h16"/>`},"ad-hoc":{body:`<path fill="none" stroke="currentColor" stroke-width="2.2" stroke-linecap="round" d="M3 15c2.5-6 6-6 8.5 0S18 21 21 15"/>`},subprocess:{body:`<path fill="none" stroke="currentColor" stroke-width="1.6" d="M3 3h18v18H3z"/><path stroke="currentColor" stroke-width="1.8" stroke-linecap="round" d="M12 7v10M7 12h10"/>`},exclusive:{body:`<path stroke="currentColor" stroke-width="2.6" stroke-linecap="round" d="m6 6 12 12M18 6 6 18"/>`},"parallel-multiple":{body:`<path fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" d="M12 5v14M5 12h14"/>`},inclusive:{body:`<circle cx="12" cy="12" r="7.5" fill="none" stroke="currentColor" stroke-width="2.4"/>`},"parallel-gateway":{body:`<path stroke="currentColor" stroke-width="2.6" stroke-linecap="round" d="M12 4v16M4 12h16"/>`},"event-based":{body:`<circle cx="12" cy="12" r="9" fill="none" stroke="currentColor" stroke-width="1.3"/><circle cx="12" cy="12" r="6.8" fill="none" stroke="currentColor" stroke-width="1.3"/><path fill="none" stroke="currentColor" stroke-width="1.5" stroke-linejoin="round" d="m12 7.4 4 2.9-1.5 4.7h-5L8 10.3z"/>`},complex:{body:`<path stroke="currentColor" stroke-width="2.2" stroke-linecap="round" d="M12 3v18M3 12h18M5.6 5.6l12.8 12.8M18.4 5.6 5.6 18.4"/>`}}};export{e as bpmnIcons};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{D as e,E as t,O as n,d as r,f as i,g as a,n as o,p as s,v as c}from"./common-CGQN5htF.js";var l;(function(e){function t(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(!e[n].equals(t[n]))return!1;return!0}e.equals=t,(function(e){e[e.NONE=0]=`NONE`,e[e.PARTIAL=1]=`PARTIAL`,e[e.SHADOW=2]=`SHADOW`,e[e.FULL=3]=`FULL`})(e.CompareResult||={});function n(t,n){let r=t,i=n,a=!1;n.length<t.length&&(r=n,i=t,a=!0);for(let t=0;t<r.length;t++)if(r[t].equals(i[t])===!1)return e.CompareResult.NONE;return r.length<i.length?a===!1?e.CompareResult.PARTIAL:e.CompareResult.SHADOW:e.CompareResult.FULL}e.compare=n;function r(e){let t=[],n=e.trim().split(/\s+/g);for(let e of n){let n=u.parse(e);n!==void 0&&t.push(n)}return t}e.parse=r})(l||={});var u=class e{constructor(e){let t=e.key;t&&(t.code&&t.keyCode&&t.easyString?this.key=t:t.code?this.key=v.getKey(t.code):t.keyCode&&(this.key=v.getKey(t.keyCode))),this.ctrl=!!e.ctrl,this.shift=!!e.shift,this.alt=!!e.alt,this.meta=!!e.meta,this.character=e.character}isModifierOnly(){return this.key===void 0}equals(e){return this.key&&(!e.key||this.key.code!==e.key.code)||!this.key&&e.key?!1:this.ctrl===e.ctrl&&this.alt===e.alt&&this.shift===e.shift&&this.meta===e.meta}toString(){let e=[];return this.meta&&e.push(_.META),this.shift&&e.push(v.SHIFT_LEFT.easyString),this.alt&&e.push(v.ALT_LEFT.easyString),this.ctrl&&e.push(v.CONTROL_LEFT.easyString),this.key&&e.push(this.key.easyString),e.join(`+`)}static createKeyCode(n,r=`code`){if(typeof n==`string`){let t=n.split(`+`);return e.isModifierString(t[0])?e.createKeyCode({modifiers:t}):e.createKeyCode({first:v.getKey(t[0]),modifiers:t.slice(1)})}if(e.isKeyboardEvent(n)){let i=e.toKey(n,r);return new e({key:v.isModifier(i.code)?void 0:i,meta:t&&n.metaKey,shift:n.shiftKey,alt:n.altKey,ctrl:n.ctrlKey,character:e.toCharacter(n)})}if(n.first||n.modifiers){let r=n,i={key:r.first};return r.modifiers&&(t?(i.meta=r.modifiers.some(e=>e===d.CtrlCmd),i.ctrl=r.modifiers.some(e=>e===d.MacCtrl)):(i.meta=!1,i.ctrl=r.modifiers.some(e=>e===d.CtrlCmd)),i.shift=r.modifiers.some(e=>e===d.Shift),i.alt=r.modifiers.some(e=>e===d.Alt)),new e(i)}return new e(n)}static resetKeyBindings(){e.keybindings={}}static parse(n){if(e.keybindings[n])return e.keybindings[n];let r={},i=[],a=``;for(let e of n.trim().toLowerCase())a&&(e===`-`||e===`+`)?(i.push(a),a=``):e!==`+`&&(a+=e);if(a&&i.push(a),i.length!==new Set(i).size)throw Error(`Can't parse keybinding ${n} Duplicate modifiers`);for(let e of i){g[e]!==void 0&&(e=g[e]);let i=m[e];if(e===_.META){if(t)r.meta=!0;else throw Error(`Can't parse keybinding ${n} meta is for OSX only`)}else if(e===_.CTRLCMD)t?r.meta=!0:r.ctrl=!0;else if(v.isKey(i))v.isModifier(i.code)?i.code===v.CONTROL_LEFT.code||i.code===v.CONTROL_RIGHT.code?r.ctrl=!0:i.code===v.SHIFT_LEFT.code||i.code===v.SHIFT_RIGHT.code?r.shift=!0:(i.code===v.ALT_LEFT.code||i.code===v.ALT_RIGHT.code)&&(r.alt=!0):r.key=i;else throw Error(`Unrecognized key '${e}' in '${n}'`)}return e.keybindings[n]=new e(r),e.keybindings[n]}static{Object.defineProperty(this,"name",{value:`KeyCode`,configurable:!0})}};u.keybindings={},(function(e){function n(e){return e===d.CtrlCmd||e===d.Shift||e===d.Alt||e===d.MacCtrl}e.isModifierString=n;function r(e){if(typeof KeyboardEvent>`u`)return!1;if(e instanceof KeyboardEvent)return!0;let{type:t}=e;return t?t===`keypress`||t===`keydown`||t===`keyup`:!1}e.isKeyboardEvent=r;function i(e,n=`code`){let r=e.code;if(r&&n===`code`){if(t){let t=e.key;if(r===`IntlBackslash`&&(t==="`"||t===`~`))return v.BACKQUOTE;if(r===`Backquote`&&(t===`§`||t===`±`))return v.INTL_BACKSLASH}if(r.startsWith(`Numpad`)&&e.key&&e.key.length>1){let t=v.getKey(e.key);if(t)return t}let n=v.getKey(r);if(n)return n}let i=e.keyCode;if(i){let e=v.getKey(i);if(e)return e}let a=e.keyIdentifier;if(a){let e=v.getKey(a);if(e)return e}throw Error(`Cannot get key code from the keyboard event: ${e}.`)}e.toKey=i;function a(e){let t=e.key;if(t&&Array.from(t).length===1)return t;let n=e.charCode;if(n&&n>31&&!(n>=128&&n<=159))return String.fromCharCode(n)}e.toCharacter=a})(u||={});var d;(function(e){e.CtrlCmd=`M1`,e.Shift=`M2`,e.Alt=`M3`,e.MacCtrl=`M4`})(d||={}),(function(e){e.CTRL=t?e.MacCtrl:e.CtrlCmd,e.SHIFT=e.Shift;function n(e){if(e)switch(e){case`M1`:case`M2`:case`M3`:case`M4`:return!0;default:return!1}return!1}e.isModifier=n})(d||={});var f={},p={},m={},h=[],g={option:`alt`,command:`meta`,cmd:`meta`,return:`enter`,esc:`escape`,mod:`ctrl`,ins:`insert`,del:`delete`,control:`ctrl`},_;(function(e){e.META=`meta`,e.CTRLCMD=`ctrlcmd`})(_||={});var v;(function(e){function t(e){return typeof e==`object`&&`code`in e&&`keyCode`in e}e.isKey=t;function n(e){return typeof e==`number`?p[e]:f[e]}e.getKey=n;function r(e){return typeof e==`number`?h.find(t=>t.keyCode===e)!==void 0:h.find(t=>t.code===e)!==void 0}e.isModifier=r;function i(e,t){return!!t.key&&e.keyCode===t.key.keyCode}e.equals=i,e.BACKSPACE={code:`Backspace`,keyCode:8,easyString:`backspace`},e.TAB={code:`Tab`,keyCode:9,easyString:`tab`},e.ENTER={code:`Enter`,keyCode:13,easyString:`enter`},e.ESCAPE={code:`Escape`,keyCode:27,easyString:`escape`},e.SPACE={code:`Space`,keyCode:32,easyString:`space`},e.PAGE_UP={code:`PageUp`,keyCode:33,easyString:`pageup`},e.PAGE_DOWN={code:`PageDown`,keyCode:34,easyString:`pagedown`},e.END={code:`End`,keyCode:35,easyString:`end`},e.HOME={code:`Home`,keyCode:36,easyString:`home`},e.ARROW_LEFT={code:`ArrowLeft`,keyCode:37,easyString:`left`},e.ARROW_UP={code:`ArrowUp`,keyCode:38,easyString:`up`},e.ARROW_RIGHT={code:`ArrowRight`,keyCode:39,easyString:`right`},e.ARROW_DOWN={code:`ArrowDown`,keyCode:40,easyString:`down`},e.INSERT={code:`Insert`,keyCode:45,easyString:`insert`},e.DELETE={code:`Delete`,keyCode:46,easyString:`delete`},e.SHIFT_LEFT={code:`ShiftLeft`,keyCode:16,easyString:`shift`},e.SHIFT_RIGHT={code:`ShiftRight`,keyCode:16,easyString:`shift`},e.CONTROL_LEFT={code:`ControlLeft`,keyCode:17,easyString:`ctrl`},e.CONTROL_RIGHT={code:`ControlRight`,keyCode:17,easyString:`ctrl`},e.ALT_LEFT={code:`AltLeft`,keyCode:18,easyString:`alt`},e.ALT_RIGHT={code:`AltRight`,keyCode:18,easyString:`alt`},e.CAPS_LOCK={code:`CapsLock`,keyCode:20,easyString:`capslock`},e.OS_LEFT={code:`OSLeft`,keyCode:91,easyString:`super`},e.OS_RIGHT={code:`OSRight`,keyCode:92,easyString:`super`},e.DIGIT0={code:`Digit0`,keyCode:48,easyString:`0`},e.DIGIT1={code:`Digit1`,keyCode:49,easyString:`1`},e.DIGIT2={code:`Digit2`,keyCode:50,easyString:`2`},e.DIGIT3={code:`Digit3`,keyCode:51,easyString:`3`},e.DIGIT4={code:`Digit4`,keyCode:52,easyString:`4`},e.DIGIT5={code:`Digit5`,keyCode:53,easyString:`5`},e.DIGIT6={code:`Digit6`,keyCode:54,easyString:`6`},e.DIGIT7={code:`Digit7`,keyCode:55,easyString:`7`},e.DIGIT8={code:`Digit8`,keyCode:56,easyString:`8`},e.DIGIT9={code:`Digit9`,keyCode:57,easyString:`9`},e.KEY_A={code:`KeyA`,keyCode:65,easyString:`a`},e.KEY_B={code:`KeyB`,keyCode:66,easyString:`b`},e.KEY_C={code:`KeyC`,keyCode:67,easyString:`c`},e.KEY_D={code:`KeyD`,keyCode:68,easyString:`d`},e.KEY_E={code:`KeyE`,keyCode:69,easyString:`e`},e.KEY_F={code:`KeyF`,keyCode:70,easyString:`f`},e.KEY_G={code:`KeyG`,keyCode:71,easyString:`g`},e.KEY_H={code:`KeyH`,keyCode:72,easyString:`h`},e.KEY_I={code:`KeyI`,keyCode:73,easyString:`i`},e.KEY_J={code:`KeyJ`,keyCode:74,easyString:`j`},e.KEY_K={code:`KeyK`,keyCode:75,easyString:`k`},e.KEY_L={code:`KeyL`,keyCode:76,easyString:`l`},e.KEY_M={code:`KeyM`,keyCode:77,easyString:`m`},e.KEY_N={code:`KeyN`,keyCode:78,easyString:`n`},e.KEY_O={code:`KeyO`,keyCode:79,easyString:`o`},e.KEY_P={code:`KeyP`,keyCode:80,easyString:`p`},e.KEY_Q={code:`KeyQ`,keyCode:81,easyString:`q`},e.KEY_R={code:`KeyR`,keyCode:82,easyString:`r`},e.KEY_S={code:`KeyS`,keyCode:83,easyString:`s`},e.KEY_T={code:`KeyT`,keyCode:84,easyString:`t`},e.KEY_U={code:`KeyU`,keyCode:85,easyString:`u`},e.KEY_V={code:`KeyV`,keyCode:86,easyString:`v`},e.KEY_W={code:`KeyW`,keyCode:87,easyString:`w`},e.KEY_X={code:`KeyX`,keyCode:88,easyString:`x`},e.KEY_Y={code:`KeyY`,keyCode:89,easyString:`y`},e.KEY_Z={code:`KeyZ`,keyCode:90,easyString:`z`},e.MULTIPLY={code:`NumpadMultiply`,keyCode:106,easyString:`multiply`},e.ADD={code:`NumpadAdd`,keyCode:107,easyString:`add`},e.DECIMAL={code:`NumpadDecimal`,keyCode:108,easyString:`decimal`},e.SUBTRACT={code:`NumpadSubtract`,keyCode:109,easyString:`subtract`},e.DIVIDE={code:`NumpadDivide`,keyCode:111,easyString:`divide`},e.F1={code:`F1`,keyCode:112,easyString:`f1`},e.F2={code:`F2`,keyCode:113,easyString:`f2`},e.F3={code:`F3`,keyCode:114,easyString:`f3`},e.F4={code:`F4`,keyCode:115,easyString:`f4`},e.F5={code:`F5`,keyCode:116,easyString:`f5`},e.F6={code:`F6`,keyCode:117,easyString:`f6`},e.F7={code:`F7`,keyCode:118,easyString:`f7`},e.F8={code:`F8`,keyCode:119,easyString:`f8`},e.F9={code:`F9`,keyCode:120,easyString:`f9`},e.F10={code:`F10`,keyCode:121,easyString:`f10`},e.F11={code:`F11`,keyCode:122,easyString:`f11`},e.F12={code:`F12`,keyCode:123,easyString:`f12`},e.F13={code:`F13`,keyCode:124,easyString:`f13`},e.F14={code:`F14`,keyCode:125,easyString:`f14`},e.F15={code:`F15`,keyCode:126,easyString:`f15`},e.F16={code:`F16`,keyCode:127,easyString:`f16`},e.F17={code:`F17`,keyCode:128,easyString:`f17`},e.F18={code:`F18`,keyCode:129,easyString:`f18`},e.F19={code:`F19`,keyCode:130,easyString:`f19`},e.F20={code:`F20`,keyCode:131,easyString:`f20`},e.F21={code:`F21`,keyCode:132,easyString:`f21`},e.F22={code:`F22`,keyCode:133,easyString:`f22`},e.F23={code:`F23`,keyCode:134,easyString:`f23`},e.F24={code:`F24`,keyCode:135,easyString:`f24`},e.NUM_LOCK={code:`NumLock`,keyCode:144,easyString:`numlock`},e.SEMICOLON={code:`Semicolon`,keyCode:186,easyString:`;`},e.EQUAL={code:`Equal`,keyCode:187,easyString:`=`},e.COMMA={code:`Comma`,keyCode:188,easyString:`,`},e.MINUS={code:`Minus`,keyCode:189,easyString:`-`},e.PERIOD={code:`Period`,keyCode:190,easyString:`.`},e.SLASH={code:`Slash`,keyCode:191,easyString:`/`},e.BACKQUOTE={code:`Backquote`,keyCode:192,easyString:"`"},e.INTL_RO={code:`IntlRo`,keyCode:193,easyString:`intlro`},e.BRACKET_LEFT={code:`BracketLeft`,keyCode:219,easyString:`[`},e.BACKSLASH={code:`Backslash`,keyCode:220,easyString:`\\`},e.BRACKET_RIGHT={code:`BracketRight`,keyCode:221,easyString:`]`},e.QUOTE={code:`Quote`,keyCode:222,easyString:`'`},e.INTL_BACKSLASH={code:`IntlBackslash`,keyCode:229,easyString:`intlbackslash`},e.INTL_YEN={code:`IntlYen`,keyCode:255,easyString:`intlyen`},e.MAX_KEY_CODE=e.INTL_YEN.keyCode})(v||={}),Object.keys(v).map(e=>Reflect.get(v,e)).filter(e=>v.isKey(e)).forEach(e=>{f[e.code]=e,p[e.keyCode]=e,m[e.easyString]=e}),f.Numpad0=v.DIGIT0,p[96]=v.DIGIT0,f.Numpad1=v.DIGIT1,p[97]=v.DIGIT1,f.Numpad2=v.DIGIT2,p[98]=v.DIGIT2,f.Numpad3=v.DIGIT3,p[99]=v.DIGIT3,f.Numpad4=v.DIGIT4,p[100]=v.DIGIT4,f.Numpad5=v.DIGIT5,p[101]=v.DIGIT5,f.Numpad6=v.DIGIT6,p[102]=v.DIGIT6,f.Numpad7=v.DIGIT7,p[103]=v.DIGIT7,f.Numpad8=v.DIGIT8,p[104]=v.DIGIT8,f.Numpad9=v.DIGIT9,p[105]=v.DIGIT9,f.NumpadEnter=v.ENTER,f.NumpadEqual=v.EQUAL,f.MetaLeft=v.OS_LEFT,p[224]=v.OS_LEFT,f.MetaRight=v.OS_RIGHT,p[93]=v.OS_RIGHT,p[225]=v.ALT_RIGHT,p[110]=v.DECIMAL,p[59]=v.SEMICOLON,p[61]=v.EQUAL,p[173]=v.MINUS,p[226]=v.BACKSLASH,p[60]=v.BACKSLASH,h.push(v.ALT_LEFT,v.ALT_RIGHT,v.CONTROL_LEFT,v.CONTROL_RIGHT,v.OS_LEFT,v.OS_RIGHT,v.SHIFT_LEFT,v.SHIFT_RIGHT);var y;(function(e){e.toKeyCode=e=>e instanceof u?e:u.createKeyCode({first:e}),e.toKeyCodes=t=>t instanceof u?[t]:Array.isArray(t)?t.slice().map(e.toKeyCode):[e.toKeyCode(t)]})(y||={});var b=Symbol(`Widget`),x=Symbol(`WidgetModel`),S=Symbol(`WidgetFactory`),C=Symbol(`WidgetManager`),w;(function(e){e.Decorator=`Decorator`})(w||={});var T;(function(e){async function t(e,t){let r=n.prioritizeAllSync(t).map(e=>e.value);for(let t of r)if(await t.support(e))return await t.create(e);throw Error(`WidgetModel {id: ${e.id}, type: ${e.type}} there is no matching widget factory.`)}e.create=t;function r(e){if(Array.isArray(e))return e.map(r);if(e&&typeof e==`object`){let t=Object.getPrototypeOf(e);if(t===Object.prototype||t===null){let t={};for(let[n,i]of Object.entries(e))t[n]=r(i);return t}}return e}e.copyProps=r;async function i(t,n){return(await e.create(t,n)).render()}e.render=i})(T||={});var E=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},D=function(e,t){if(typeof Reflect==`object`&&typeof Reflect.metadata==`function`)return Reflect.metadata(e,t)},O=function(e,t){return function(n,r){t(n,r,e)}},k=class{constructor(e,t,n,r=[]){this.widgets=e,this.widgetModels=t,this.widgetModelsForConfig=n,this.factories=r}async render(e){let t=await this.get(e);return Promise.all(t.map(e=>e.render()))}async get(e){if(!this.prioritized){let e=new Map,t={...this.widgetModelsForConfig};this.widgets.forEach(e=>{let n=t[e.id];n&&(e.area=n.area??e.area,e.priority=n.priority===void 0?e.priority:n.priority,e.visible=n.visible===void 0?e.visible:n.visible,delete t[e.id])});let r=await Promise.all(this.widgetModels.map(e=>{let n=t[e.id];return delete t[e.id],T.create({...e,...n},this.factories)})),i=await Promise.all(Object.keys(t).map(e=>{let n={...t[e]};return n.id=e,n.priority=n.priority||500,n.visible=n.visible!==!1,T.create(n,this.factories)}));for(let t of[...this.widgets,...r,...i])e.has(t.area)||e.set(t.area,[]),t.visible&&e.get(t.area).push(t);for(let[t,r]of e.entries())e.set(t,n.prioritizeAllSync(r).map(e=>e.value));this.prioritized=e}return this.prioritized.get(e)||[]}static{Object.defineProperty(this,"name",{value:`WidgetManagerImpl`,configurable:!0})}};k=E([a(C),O(0,c(b)),O(0,i()),O(1,c(x)),O(1,i()),O(2,s(`widget.widgets`)),O(3,c(S)),O(3,i()),D(`design:paramtypes`,[Array,Array,Object,Array])],k);var A=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},j=function(e,t){if(typeof Reflect==`object`&&typeof Reflect.metadata==`function`)return Reflect.metadata(e,t)},M=class{constructor(){this.priority=500}async create(e){let{children:t=[]}=e;return{id:e.id,visible:e.visible,area:e.area,priority:e.priority,render:async()=>{let n=e.props&&this.expressionHandler.handle(T.copyProps(e.props));return this.doRender({...e,props:n},await Promise.all(t.map(e=>T.create(e,this.factories))))}}}async support(e){return e.type===this.type}static{Object.defineProperty(this,"name",{value:`AbstractWidgetFactory`,configurable:!0})}};A([c(o),j(`design:type`,Object)],M.prototype,`expressionHandler`,void 0),A([c({id:S,multi:!0,detached:!0}),j(`design:type`,Array)],M.prototype,`factories`,void 0);var N=Symbol(`Theme`),P=Symbol(`ThemeManager`),F=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},I=function(e,t){if(typeof Reflect==`object`&&typeof Reflect.metadata==`function`)return Reflect.metadata(e,t)},L=class{constructor(){this.themeStorageKey=`cell:theme`,this.themes=[],this.currentChanged=new e}get current(){return this._current}get onCurrentChanged(){return this.currentChanged.event}init(){(async()=>{let e=await this.get(),t=localStorage.getItem(this.themeStorageKey),n=e.find(e=>e.id===t)??e.find(e=>e.id==="default")??e[0];n&&this.setCurrent(n)})()}setCurrent(e){e?localStorage.setItem(this.themeStorageKey,e.id):localStorage.removeItem(this.themeStorageKey),e!==this._current&&(this._current=e,this.currentChanged.fire(e))}async get(){if(!this.prioritized){let e=Object.keys(this.themesForConfig||{}).map(e=>{let t={...this.themesForConfig[e]};return t.id=e,t.priority=t.priority||500,t});this.prioritized=n.prioritizeAllSync([...e,...this.themes]).map(e=>e.value)}return this.prioritized}static{Object.defineProperty(this,"name",{value:`ThemeManagerImpl`,configurable:!0})}};F([s(`widget.themes`),I(`design:type`,Object)],L.prototype,`themesForConfig`,void 0),F([c(N),i(),I(`design:type`,Array)],L.prototype,`themes`,void 0),F([r(),I(`design:type`,Function),I(`design:paramtypes`,[]),I(`design:returntype`,void 0)],L.prototype,`init`,null),L=F([a(P)],L);var R=Symbol(`Locale`),z=Symbol(`LocaleManager`),B=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},V=function(e,t){if(typeof Reflect==`object`&&typeof Reflect.metadata==`function`)return Reflect.metadata(e,t)},H=class{constructor(){this.langStorageKey=`cell:lang`,this.locales=[],this.currentChanged=new e}get current(){return this._current}get onCurrentChanged(){return this.currentChanged.event}init(){(async()=>{let e=await this.get(),t=localStorage.getItem(this.langStorageKey)||navigator.language;e.length&&this.setCurrent(e.find(e=>e.lang===t)||e[0])})()}setCurrent(e){e?localStorage.setItem(this.langStorageKey,e.lang):localStorage.removeItem(this.langStorageKey),e!==this._current&&(this._current=e,this.currentChanged.fire(e))}async get(){if(!this.prioritized){let e=this.localesForConfig||{},t=Object.keys(e).map(t=>{let n={...e[t]};return n.lang=t,n.priority=n.priority||500,n});this.prioritized=n.prioritizeAllSync([...t,...this.locales]).map(e=>e.value)}return this.prioritized}static{Object.defineProperty(this,"name",{value:`LocaleManagerImpl`,configurable:!0})}};B([s(`widget.locales`),V(`design:type`,Object)],H.prototype,`localesForConfig`,void 0),B([c(R),i(),V(`design:type`,Array)],H.prototype,`locales`,void 0),B([r(),V(`design:type`,Function),V(`design:paramtypes`,[]),V(`design:returntype`,void 0)],H.prototype,`init`,null),H=B([a(z)],H);export{w as a,S as i,z as n,M as r,R as t};
|