diff --git a/.gitattributes b/.gitattributes index e5d89772b..5f1e0e011 100644 --- a/.gitattributes +++ b/.gitattributes @@ -36,3 +36,6 @@ *.xlsx binary *.zip binary *.gz binary + +# Rebuilt from the pinned npm lockfile; preserve upstream string whitespace. +src/frontend/web/von_interface/static/vendor/conversation-visuals/** linguist-generated linguist-vendored -whitespace diff --git a/.gitignore b/.gitignore index 49c3cd6e2..de8528aed 100644 --- a/.gitignore +++ b/.gitignore @@ -2,6 +2,7 @@ *.json !.vscode/launch.json !package.json +!package-lock.json !tsconfig.json !jest.config.js !scripts/*.json diff --git a/docs/design_index.md b/docs/design_index.md index b4770a8a8..0c0035bd2 100644 --- a/docs/design_index.md +++ b/docs/design_index.md @@ -94,6 +94,7 @@ live. | Represented, experience- or discussion-derived learning for role, capability, workflow, tool, acquisition, introspection, message, or task decisions | Draft [represented advice design](engineering/represented_advice_design.md), including Phase 0 subtraction, Phase 0.5 non-active candidates, and the [completed bounded negative learning cycle](engineering/jvnautosci_2720_learning_cycle_2026-09-05.md) under JVNAUTOSCI-2720; then the applicable prompt, memory, evaluation, workflow, or security guidance. The cycle links source-derived formation, experimental exposure, outcome evidence, rejection and subsequent verified absence. It does not establish positive advice efficacy, an ordinary runtime consumer, production activation, represented Arm C or autonomous promotion. | | Private Otter archive access, conversation images or research-slide reading | [Private Otter archive and conversation images](engineering/otter_archive_and_conversation_images.md) | | Authenticated Figma access through coding agents; native-backend prerequisites | [Figma authenticated access](engineering/figma_authenticated_access.md) | +| Conversational diagrams, equations, generated/tool images or visual format extension | [Conversational visual output](engineering/conversational_visual_output.md) | | Reusing external ontology concepts with source identity and attribution | [KnowKat ontology sources and governed adoption](engineering/knowkat_ontology_sources.md) | | Importing external human/agent transcripts into conversation carriers | [External conversation import](engineering/external_conversation_import.md) | | Unified conversation discovery, message exchanges, read state or participant avatars | [Unified conversations and participant profiles](engineering/unified_conversations_and_participant_profiles.md) | diff --git a/docs/engineering/conversational_visual_output.md b/docs/engineering/conversational_visual_output.md new file mode 100644 index 000000000..432079439 --- /dev/null +++ b/docs/engineering/conversational_visual_output.md @@ -0,0 +1,180 @@ +# Conversational visual output + +Implementation guide for retained visual replies. Owner: Von engineering. +Review when provider output contracts, client renderers, image limits or the +existing prompt/profile mechanisms change. Delivery evidence and unresolved +acceptance belong to the native task +`#V#task_agent_0a2baa3bd7a33ac6838d39f6179e05c7` and its pull request. + +## Source, transport and display + +The existing assistant message remains the canonical source for fenced Mermaid +and mathematics. The client protects `\(inline\)` and `\[display\]` before +Markdown parsing, then renders with KaTeX. Dollar signs, escaped delimiters and +code examples remain text. Mermaid fences use strict rendering and sanitised +SVG. Both forms retain exact source and copy controls. A syntax/renderer failure +leaves a local source fallback. A newly completed message replaces provisional +markup, so an incomplete earlier expression does not leave a permanent error. + +Foreground completion, queue hydration and restored messages use the existing +chat rendering entry point. Rendering is idempotent for retained element IDs; +asynchronous work cannot replace a newer message generation. Existing source +links, tables, charts and screen/spoken channels continue through their usual +paths. There is no narration or semantic renderer-selection call for images. + +`LLMResponse.content_parts` contains ordered, provider-neutral `LLMContentPart` +values: `text`, decoded `image`, or `media_error`. Image bytes exist transiently +at the transport/storage boundary and are excluded from the part's repr. Only +recognised visible provider forms enter this list; reasoning, arbitrary provider +HTML and function-call arguments do not. A completed image-only result is usable +even with an empty text projection. + +Retention replaces bytes with version 1 parts containing `part_id`, `kind`, and +either `text` or an actor-scoped `asset`. These are canonical assistant history +fields, with `image_attachments` supplying existing provider-input hydration. +History reconstruction builds the display contract without needing private LLM +debug data. `turn_display_elements_v1` is the sole display contract: retained +parts project to ordered `text_block` and `image` elements with stable IDs. +Renderer profiles gain the `image` family and retained-image object kind. +Unsupported kinds/versions become identifiable text fallbacks. + +The plain Responses adapter keeps its string interface through +`VisibleTextProjection`: ordinary text where available, otherwise an image/error +caption. Rich consumers may read its `content_parts`, also present in response +metadata. This compatibility path does not independently enable image generation. + +## Enablement and adaptable guidance + +Generation, image understanding and rendering are separate capabilities. The +native image tool is added only for an OpenAI Responses decision with an exact +selected represented API profile. On that profile, the existing +`#V#has_model_capabilities_json` text predicate may contain: + +```json +{ + "image_generation": { + "enabled": true, + "model": "", + "quality": "auto", + "size": "auto", + "output_format": "png" + } +} +``` + +Merge this field with the existing JSON object; preserve its other capabilities. +The API profile must already select a compatible conversational model and +Responses surface. Configure names from current provider documentation and +account entitlement; no model-name heuristic enables this feature. Read back the +resolved profile and observed provider request. If disabled or absent, no native +image tool is added. Ordinary function definitions stay separate. Unsupported +tool options are not forwarded as arbitrary SDK arguments. + +The first configuration accepts `auto`, `1024x1024`, `1024x1536` and +`1536x1024` sizes, `auto/low/medium/high` quality and PNG/JPEG/WebP output. These +are the implemented option subset, not a claim about every current provider +size. Output is decoded against actual bytes and existing storage bounds: still +PNG/JPEG/WebP, at most 8 MiB and 25 million pixels. This covers the configured +common sizes; unusually large lossless output receives an explicit media error +instead of bypassing storage validation. Review limits using observed output +before enabling larger formats. + +The adaptive call includes compact implemented client affordances (format IDs, +versions, source conventions and fallback support). Tool availability remains +the authority for generation. Executable renderers stay in reviewed code; +Vontology records cannot download client implementations. + +The [visual guidance seed](../../src/backend/workflows/repo_seed_bundles/conversation_visual_guidance_seed.md) +is a **release input**, not a second production authority. Use canonical concept +and text-relation tools to create/update the named behaviour prompt and bind it +to the intended actor via `#V#specific_to_von_user`. The existing +`get_user_specific_prompt_fragments` path consumes it along with established +preferences. No additional fetch or model stage is introduced. Read back its +body, type and binding, then confirm its concept ID and hash in the ordinary +turn's applied prompt snapshot. Revise the live prompt independently. Do not +activate the seed, change credentials or enable paid generation in production +as a side effect of importing this code. + +## Images, continuity and recovery + +Completed OpenAI `image_generation_call` output and MCP `ImageContent`/embedded +image blob resources use `conversation_output_service` and the existing private +conversation image store. A tool resource link remains a reference; there is no +new arbitrary URL fetcher. MCP bytes are removed before adaptive effect +journalling and evidence retention. Provider raw traces omit image bytes. + +Original bytes go to the existing durable blob store and file-copy registration. +Checksums, dimensions and provenance accompany the asset; private revised +prompts and provider response/item identifiers are not automatic captions. +Display descriptors omit private prompts and storage locations. The existing +authenticated original route rechecks owner access and checksum. A shared +conversation does not grant another participant access to its owner's private +image. That participant sees an unavailable image notice; this change creates +no new sharing policy. + +Follow-ups hydrate original pixels from retained descriptors at the provider +boundary, including after reopening history or changing compatible providers. +They do not depend on indefinite provider response retention. Each derived image +has its own asset identity and immutable original reference. Provenance records +all supplied `input_concept_ids`; a single source becomes `parent_concept_ids` +when the provider explicitly reports an edit. Multiple inputs alone do not prove +which was the edited parent. The model resolves the requested referent from +conversation context and the source labels supplied with the actual pixels. + +Storage uses the existing owner/checksum/provenance deduplication. Repeated +completion events do not render a second element. Generation completion and +storage completion remain distinct: incomplete/invalid output or storage failure +is a `media_error` beside any useful text, and storage errors retain a bounded +provider/tool recovery locator. A successful image remains visible beside a +later canonical effect failure report; stale model claims cannot override that +report. The existing progress lifecycle reports model work and media retention. +Model-call thresholds remain advisory under the existing adaptive lifecycle. + +Native image calls disable SDK retries. A connection interruption or server +error on that route reports an unknown outcome and does not trigger the adaptive +transport recovery call. This avoids duplicate paid work; it is not proof that +an interrupted request generated nothing. Reconcile the provider receipt before +any explicit retry. If the durable store itself is unavailable, the error +locator does not promise that unavailable bytes can be recovered. A UI reload +uses retained assets and never generates an image. + +## Validation and extending the seam + +Run the targeted Python provider/content/history/display tests and the frontend +Markdown tests. `tests/browser/conversation_visuals_fixture.py` serves the real +chat renderer and Markdown service with disposable generated fixture pixels; +`tests/browser/conversationVisuals.cjs` checks desktop/mobile/dark presentation, +copy/source, order, reload and duplicate events. It is explicitly a +credential-free fixture, not authenticated provider acceptance. Follow the +[browser guide](frontend_browser_user_view_validation.md) and DGX host README +for candidate-bound authenticated acceptance. The full capability additionally +requires one ordinary real generation and one bounded edit using an authorised +non-Sol route, canonical asset read-back and an owner/wrong-actor check. Record +actual model, asset IDs, usage/latency and candidate revision. + +Libraries are self-hosted. `npm ci` and `npm run build:conversation-visuals` +rebuild pinned Mermaid, KaTeX and DOMPurify assets from `package-lock.json`. +Commit the generated assets because the existing Python server serves them +directly. Updating the dependencies requires rebuilding and rechecking source +safety and browser presentation. + +For example, a future static spatial view can add a versioned `map` part with +typed coordinates and source references, validate it in the existing display +service, register its renderer family/profile, advertise the implemented client +capability and add its reviewed client renderer. Unsupported clients retain an +identifiable source/reference fallback. A future provider maps outputs into the +same neutral parts and retention path without changing turn orchestration. +Interactive implementations need isolated code and explicit action interfaces; +a MIME label is never execution authority. + +Stable artefact/element references can later connect interactive plots and +equations, spoken explanations with referent highlighting, animation of change, +maps and spatial views, or persistent shared canvases across screens. Capability +discovery lets the model choose what the current client can actually present. +Sonification or haptics are possible where a concrete user and device job makes +them useful. These are extension directions, not implemented features or release +gates for this change. + +Provider references: [OpenAI image generation](https://developers.openai.com/api/docs/guides/image-generation), +[Mermaid usage](https://mermaid.js.org/config/usage.html), +[KaTeX options](https://katex.org/docs/options.html). diff --git a/package-lock.json b/package-lock.json new file mode 100644 index 000000000..68d00eafb --- /dev/null +++ b/package-lock.json @@ -0,0 +1,11165 @@ +{ + "name": "von", + "version": "1.0.1", + "lockfileVersion": 3, + "requires": true, + "packages": { + "": { + "name": "von", + "version": "1.0.1", + "license": "ISC", + "dependencies": { + "dompurify": "3.4.15", + "katex": "0.18.7", + "mermaid": "12.0.0" + }, + "devDependencies": { + "@babel/core": "^7.28.0", + "@babel/preset-env": "^7.28.0", + "@babel/preset-react": "^7.27.1", + "@babel/preset-typescript": "^7.27.1", + "@eslint/js": "^10.0.1", + "@playwright/test": "^1.60.0", + "@testing-library/jest-dom": "^6.9.1", + "@testing-library/react": "^14.0.0", + "@testing-library/user-event": "^14.4.3", + "@types/jest": "^30.0.0", + "@types/node": "^20.3.1", + "@types/react": "^18.2.12", + "@types/react-dom": "^18.2.5", + "babel-jest": "^30.3.0", + "esbuild": "0.28.2", + "eslint": "^10.2.0", + "globals": "^17.2.0", + "identity-obj-proxy": "^3.0.0", + "jest": "^30.3.0", + "jest-environment-jsdom": "^30.3.0", + "playwright": "^1.60.0", + "pyright": "^1.1.409", + "ts-jest": "^29.4.9", + "typescript": "^5.1.3" + } + }, + "node_modules/@adobe/css-tools": { + "version": "4.5.0", + "resolved": "https://registry.npmjs.org/@adobe/css-tools/-/css-tools-4.5.0.tgz", + "integrity": "sha512-6OzddxPio9UiWTCemp4N8cYLV2ZN1ncRnV1cVGtve7dhPOtRkleRyx32GQCYSwDYgaHU3USMm84tNsvKzRCa1Q==", + "dev": true, + "license": "MIT" + }, + "node_modules/@antfu/install-pkg": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/@antfu/install-pkg/-/install-pkg-2.0.1.tgz", + "integrity": "sha512-iCKVQcIC0e3oDxEfs3SHQGW+ovhBMZmS1TE+bTk50rVyMCBmCfClv7Qi3HQKlumYwvjb/iIMeWCW2i67q6kFfQ==", + "license": "MIT", + "dependencies": { + "package-manager-detector": "^1.7.0", + "tinyexec": "^1.2.4" + }, + "funding": { + "url": "https://github.com/sponsors/antfu" + } + }, + "node_modules/@asamuzakjp/css-color": { + "version": "5.1.11", + "resolved": "https://registry.npmjs.org/@asamuzakjp/css-color/-/css-color-5.1.11.tgz", + "integrity": "sha512-KVw6qIiCTUQhByfTd78h2yD1/00waTmm9uy/R7Ck/ctUyAPj+AEDLkQIdJW0T8+qGgj3j5bpNKK7Q3G+LedJWg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@asamuzakjp/generational-cache": "^1.0.1", + "@csstools/css-calc": "^3.2.0", + "@csstools/css-color-parser": "^4.1.0", + "@csstools/css-parser-algorithms": "^4.0.0", + "@csstools/css-tokenizer": "^4.0.0" + }, + "engines": { + "node": "^20.19.0 || ^22.12.0 || >=24.0.0" + } + }, + "node_modules/@asamuzakjp/dom-selector": { + "version": "7.1.1", + "resolved": "https://registry.npmjs.org/@asamuzakjp/dom-selector/-/dom-selector-7.1.1.tgz", + "integrity": "sha512-67RZDnYRc8H/8MLDgQCDE//zoqVFwajkepHZgmXrbwybzXOEwOWGPYGmALYl9J2DOLfFPPs6kKCqmbzV895hTQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@asamuzakjp/generational-cache": "^1.0.1", + "@asamuzakjp/nwsapi": "^2.3.9", + "bidi-js": "^1.0.3", + "css-tree": "^3.2.1", + "is-potential-custom-element-name": "^1.0.1" + }, + "engines": { + "node": "^20.19.0 || ^22.12.0 || >=24.0.0" + } + }, + "node_modules/@asamuzakjp/generational-cache": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@asamuzakjp/generational-cache/-/generational-cache-1.0.1.tgz", + "integrity": "sha512-wajfB8KqzMCN2KGNFdLkReeHncd0AslUSrvHVvvYWuU8ghncRJoA50kT3zP9MVL0+9g4/67H+cdvBskj9THPzg==", + "dev": true, + "license": "MIT", + "engines": { + "node": "^20.19.0 || ^22.12.0 || >=24.0.0" + } + }, + "node_modules/@asamuzakjp/nwsapi": { + "version": "2.3.9", + "resolved": "https://registry.npmjs.org/@asamuzakjp/nwsapi/-/nwsapi-2.3.9.tgz", + "integrity": "sha512-n8GuYSrI9bF7FFZ/SjhwevlHc8xaVlb/7HmHelnc/PZXBD2ZR49NnN9sMMuDdEGPeeRQ5d0hqlSlEpgCX3Wl0Q==", + "dev": true, + "license": "MIT" + }, + "node_modules/@babel/code-frame": { + "version": "7.29.7", + "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.29.7.tgz", + "integrity": "sha512-Aup7aUOfpbAUg2ROOJN6Iw5f9DMBlzu0mIkm/malLQFN/YQgO48wCj0Kxa3sEHJvPVFg7siR+qRInwXd2qhQKw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-validator-identifier": "^7.29.7", + "js-tokens": "^4.0.0", + "picocolors": "^1.1.1" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/compat-data": { + "version": "7.29.7", + "resolved": "https://registry.npmjs.org/@babel/compat-data/-/compat-data-7.29.7.tgz", + "integrity": "sha512-locTkQyKvwIEgBzVrn8693ebc97F2U8ZHjbXwDXJ5Fn2TCpNwTlKcaKLkdHop5c/icOFE7qt7Q9JC5hnKNa6Gg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/core": { + "version": "7.29.7", + "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.29.7.tgz", + "integrity": "sha512-RgHBCvtjbOK2gXSNBNIkNoEc9qoVEtau3hj8gEqKQuL3HZAibKarWFEI3Lfm6EYKkLalOh8eSrj9b+ch9H/VBA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/code-frame": "^7.29.7", + "@babel/generator": "^7.29.7", + "@babel/helper-compilation-targets": "^7.29.7", + "@babel/helper-module-transforms": "^7.29.7", + "@babel/helpers": "^7.29.7", + "@babel/parser": "^7.29.7", + "@babel/template": "^7.29.7", + "@babel/traverse": "^7.29.7", + "@babel/types": "^7.29.7", + "@jridgewell/remapping": "^2.3.5", + "convert-source-map": "^2.0.0", + "debug": "^4.1.0", + "gensync": "^1.0.0-beta.2", + "json5": "^2.2.3", + "semver": "^6.3.1" + }, + "engines": { + "node": ">=6.9.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/babel" + } + }, + "node_modules/@babel/generator": { + "version": "7.29.8", + "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.29.8.tgz", + "integrity": "sha512-gZbepsdh3WDtgZKWL+vTPh71LSBrm/Y4/QDZBVCcYfmeTEEuoOYwlSy+G1StfJg+/Zy550u/3TATbm7qDbbMtg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/parser": "^7.29.8", + "@babel/types": "^7.29.8", + "@jridgewell/gen-mapping": "^0.3.12", + "@jridgewell/trace-mapping": "^0.3.28", + "jsesc": "^3.0.2" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-annotate-as-pure": { + "version": "7.29.7", + "resolved": "https://registry.npmjs.org/@babel/helper-annotate-as-pure/-/helper-annotate-as-pure-7.29.7.tgz", + "integrity": "sha512-OoK6239jHPuSQOoS0kfTVKn0b/rVTk0seKq4Gd2UMLtmOVLjDC0ki3e+c90Trqv2gMfvJFqkiljrr568+qddiw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/types": "^7.29.7" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-compilation-targets": { + "version": "7.29.7", + "resolved": "https://registry.npmjs.org/@babel/helper-compilation-targets/-/helper-compilation-targets-7.29.7.tgz", + "integrity": "sha512-wem6WaBj4NaVYVdNhLPPVacES6ZJ+KBBfSkTMD3YZxbP3rm3Di85tJU5ljaUNhaOynt+Aj0xruhYuzQBt8n71g==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/compat-data": "^7.29.7", + "@babel/helper-validator-option": "^7.29.7", + "browserslist": "^4.24.0", + "lru-cache": "^5.1.1", + "semver": "^6.3.1" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-create-class-features-plugin": { + "version": "7.29.7", + "resolved": "https://registry.npmjs.org/@babel/helper-create-class-features-plugin/-/helper-create-class-features-plugin-7.29.7.tgz", + "integrity": "sha512-IY3ZD9Tmooqr3TUhc3DUWxiuo8xx1DWLhd5M7hQ+ZWJamqM2BbalrBJb2MisSLoYorOj75U03qULCxQTY9r3hg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-annotate-as-pure": "^7.29.7", + "@babel/helper-member-expression-to-functions": "^7.29.7", + "@babel/helper-optimise-call-expression": "^7.29.7", + "@babel/helper-replace-supers": "^7.29.7", + "@babel/helper-skip-transparent-expression-wrappers": "^7.29.7", + "@babel/traverse": "^7.29.7", + "semver": "^6.3.1" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" + } + }, + "node_modules/@babel/helper-create-regexp-features-plugin": { + "version": "7.29.7", + "resolved": "https://registry.npmjs.org/@babel/helper-create-regexp-features-plugin/-/helper-create-regexp-features-plugin-7.29.7.tgz", + "integrity": "sha512-907Uymvqgg1dwUA+7IGwFAOSYzQOuzPXKNJ1yxzwPffzkYFg2q2eHi1fIOs6sXkG9NbIUMunnUlkYsfRFNvomg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-annotate-as-pure": "^7.29.7", + "regexpu-core": "^6.3.1", + "semver": "^6.3.1" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" + } + }, + "node_modules/@babel/helper-define-polyfill-provider": { + "version": "0.6.8", + "resolved": "https://registry.npmjs.org/@babel/helper-define-polyfill-provider/-/helper-define-polyfill-provider-0.6.8.tgz", + "integrity": "sha512-47UwBLPpQi1NoWzLuHNjRoHlYXMwIJoBf7MFou6viC/sIHWYygpvr0B6IAyh5sBdA2nr2LPIRww8lfaUVQINBA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-compilation-targets": "^7.28.6", + "@babel/helper-plugin-utils": "^7.28.6", + "debug": "^4.4.3", + "lodash.debounce": "^4.0.8", + "resolve": "^1.22.11" + }, + "peerDependencies": { + "@babel/core": "^7.4.0 || ^8.0.0-0 <8.0.0" + } + }, + "node_modules/@babel/helper-globals": { + "version": "7.29.7", + "resolved": "https://registry.npmjs.org/@babel/helper-globals/-/helper-globals-7.29.7.tgz", + "integrity": "sha512-3nQVUAtvkKH9zahfWgw96Jc/uFOmjACE1kQz82E2lqWmHBgjzbNlsC22nuQTfahmWeQtTq5nQ/4Nnd2A1wj4zA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-member-expression-to-functions": { + "version": "7.29.7", + "resolved": "https://registry.npmjs.org/@babel/helper-member-expression-to-functions/-/helper-member-expression-to-functions-7.29.7.tgz", + "integrity": "sha512-j+7JYmk1JYDtACIGj0QJqqWZjoUpMoEikQGADMaHgCMCSDqd2+P32rfcibUNrGOMWrlzK1WJBdxrB3JJQZwWtg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/traverse": "^7.29.7", + "@babel/types": "^7.29.7" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-module-imports": { + "version": "7.29.7", + "resolved": "https://registry.npmjs.org/@babel/helper-module-imports/-/helper-module-imports-7.29.7.tgz", + "integrity": "sha512-ejHwrQQYcm9xnTivShn2IDOlIzInN34AXskvq9QicvCtEzq1Vzclu/tKF8Jq1Cg8JG2GL6/EmjgsCT7lXepE3g==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/traverse": "^7.29.7", + "@babel/types": "^7.29.7" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-module-transforms": { + "version": "7.29.7", + "resolved": "https://registry.npmjs.org/@babel/helper-module-transforms/-/helper-module-transforms-7.29.7.tgz", + "integrity": "sha512-UPUVSyXbOh627KiCIGQSgwWzGeBKLkaJ9PJEdrngIwMSzxLR4jS4+f1f1jb7VzBbg8nFLaYotvVPFCTqdrmTAg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-module-imports": "^7.29.7", + "@babel/helper-validator-identifier": "^7.29.7", + "@babel/traverse": "^7.29.7" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" + } + }, + "node_modules/@babel/helper-optimise-call-expression": { + "version": "7.29.7", + "resolved": "https://registry.npmjs.org/@babel/helper-optimise-call-expression/-/helper-optimise-call-expression-7.29.7.tgz", + "integrity": "sha512-+kmGVjcT9RGYzoDwdwEqEvGgKe3BYq+O1iGzjFubaNgZHwYHP6lsF2Yghf4kEuv9BV7tYDZ913aBW9am6YKong==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/types": "^7.29.7" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-plugin-utils": { + "version": "7.29.7", + "resolved": "https://registry.npmjs.org/@babel/helper-plugin-utils/-/helper-plugin-utils-7.29.7.tgz", + "integrity": "sha512-G7sHYigPY17oO5SYWnfD/0MTBwVR781S/JI643e/JhUYgVgWE/61SoW3NH9KWUKyKq5LVh3npif99Wkt6j86Jw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-remap-async-to-generator": { + "version": "7.29.7", + "resolved": "https://registry.npmjs.org/@babel/helper-remap-async-to-generator/-/helper-remap-async-to-generator-7.29.7.tgz", + "integrity": "sha512-16AMiW26DbXWBbr3B8wNozKM0ydMLB892vaOaJW/fPJdnT8vJk5sdkQcU/isqUxyCE0cEoa8wZOcbgDuC4b6Og==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-annotate-as-pure": "^7.29.7", + "@babel/helper-wrap-function": "^7.29.7", + "@babel/traverse": "^7.29.7" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" + } + }, + "node_modules/@babel/helper-replace-supers": { + "version": "7.29.7", + "resolved": "https://registry.npmjs.org/@babel/helper-replace-supers/-/helper-replace-supers-7.29.7.tgz", + "integrity": "sha512-atfGXWSeCiF4DnKZIfmJfQRkSw9b9gNNXR1kqKjbhG4pGYCOnkp8OcTB8E3NXjBu8NpheSnOeNKz8KT7UNFTmQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-member-expression-to-functions": "^7.29.7", + "@babel/helper-optimise-call-expression": "^7.29.7", + "@babel/traverse": "^7.29.7" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" + } + }, + "node_modules/@babel/helper-skip-transparent-expression-wrappers": { + "version": "7.29.7", + "resolved": "https://registry.npmjs.org/@babel/helper-skip-transparent-expression-wrappers/-/helper-skip-transparent-expression-wrappers-7.29.7.tgz", + "integrity": "sha512-brcMGQaVzIeUb+6/bs1Av0f8YuNNjKY2JyvfRCsFuFsdKccEQ5Ges2y74D74NZ1Rz8lKJ9ksJkfqwQFJ/iNEyQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/traverse": "^7.29.7", + "@babel/types": "^7.29.7" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-string-parser": { + "version": "7.29.7", + "resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.29.7.tgz", + "integrity": "sha512-Pb5ijPrZ89GDH8223L4UP8i6QApWxs04RbPQJTeWDV0/keR2E36MeKnyr6LYmUUvqRRI+Iv87SuF1W6ErINzYw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-validator-identifier": { + "version": "7.29.7", + "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.29.7.tgz", + "integrity": "sha512-qehxGkRj55h/ff8EMaJ+cYhyaKlHIxqYDn682wQD7RNp9UujOQsHog2uS0r2vzr4pW+sXf90NeeayjcNaX3fFg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-validator-option": { + "version": "7.29.7", + "resolved": "https://registry.npmjs.org/@babel/helper-validator-option/-/helper-validator-option-7.29.7.tgz", + "integrity": "sha512-N9ZErrD+yW5geCDtBqnOoxmR8+tNKiGuxKlDpuJxfsqpa2dFcexaziGAE/qoHLiDDreVNMupxGmSoNlyvsA3gw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-wrap-function": { + "version": "7.29.7", + "resolved": "https://registry.npmjs.org/@babel/helper-wrap-function/-/helper-wrap-function-7.29.7.tgz", + "integrity": "sha512-iES0Skag9ERIF68aXadpO6dbXa03mNWK3sEqJaMnLNs/eC3l0lkImdfoy6Y09/SfkpawdAB4RjQ7PVA7TcVGdw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/template": "^7.29.7", + "@babel/traverse": "^7.29.7", + "@babel/types": "^7.29.7" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helpers": { + "version": "7.29.7", + "resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.29.7.tgz", + "integrity": "sha512-1k2lAGRMfHTcwuNYcCNUmaUffmQv8KWMfh2iJUUeRlwlwH4FdNG7mfPI10NPfLHJFThE4Tyr4mv7kTNZOiPuBg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/template": "^7.29.7", + "@babel/types": "^7.29.7" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/parser": { + "version": "7.29.8", + "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.29.8.tgz", + "integrity": "sha512-E8lTAYNB1KW+FH+VGJuZM1ioAx2E6oVlvQFRrf5P8ZZmsiJXYAD9vTFV7yyEURNzgh1dFqMZuO6tUwcARbqFCA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/types": "^7.29.8" + }, + "bin": { + "parser": "bin/babel-parser.js" + }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@babel/plugin-bugfix-firefox-class-in-computed-class-key": { + "version": "7.29.7", + "resolved": "https://registry.npmjs.org/@babel/plugin-bugfix-firefox-class-in-computed-class-key/-/plugin-bugfix-firefox-class-in-computed-class-key-7.29.7.tgz", + "integrity": "sha512-j8SrR0zLZrRsC09DlszEx8FpMiwukKffYXMK0d5LmOglO7vGG6sz/BR/20yHqWH+Lnn31JTt2PE3hIWNgM2J6w==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.29.7", + "@babel/traverse": "^7.29.7" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" + } + }, + "node_modules/@babel/plugin-bugfix-safari-class-field-initializer-scope": { + "version": "7.29.7", + "resolved": "https://registry.npmjs.org/@babel/plugin-bugfix-safari-class-field-initializer-scope/-/plugin-bugfix-safari-class-field-initializer-scope-7.29.7.tgz", + "integrity": "sha512-r8j8escF+U2FUHo0KOhPUdMzUO+jp9fInva6+ACVAF3Y97Ev+5iNZwiqTghmzNeWwDkOPlYuTcfb1vDaoZKmAQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.29.7" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" + } + }, + "node_modules/@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression": { + "version": "7.29.7", + "resolved": "https://registry.npmjs.org/@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression/-/plugin-bugfix-safari-id-destructuring-collision-in-function-expression-7.29.7.tgz", + "integrity": "sha512-GE1TFSiuFeGsCxmYXZl8HwoPrVlwe4rHPFE8weieGKZqnDORK+Ar3vgWMgW+AOxQ6/2TgLSKx9p6W7O4rC6qgQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.29.7" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" + } + }, + "node_modules/@babel/plugin-bugfix-safari-rest-destructuring-rhs-array": { + "version": "7.29.7", + "resolved": "https://registry.npmjs.org/@babel/plugin-bugfix-safari-rest-destructuring-rhs-array/-/plugin-bugfix-safari-rest-destructuring-rhs-array-7.29.7.tgz", + "integrity": "sha512-oBNVCvnO5tND+xSopWvV8WNGfpTfgP4Zr/YXXSj8zfmcPktp5Ku/aZlsIowgSD4fjmgHn6sGmB9APVsU5zOdhA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.29.7", + "@babel/helper-skip-transparent-expression-wrappers": "^7.29.7" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" + } + }, + "node_modules/@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining": { + "version": "7.29.7", + "resolved": "https://registry.npmjs.org/@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining/-/plugin-bugfix-v8-spread-parameters-in-optional-chaining-7.29.7.tgz", + "integrity": "sha512-QQt9qKHZ2sg/kivaLr7lnQr8HVrQDdBNSfCsTjiDxRuX/K5ORyKq+Bu8Xr0cDE3Dfkv0cw28Ve0EKyKMvulkOw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.29.7", + "@babel/helper-skip-transparent-expression-wrappers": "^7.29.7", + "@babel/plugin-transform-optional-chaining": "^7.29.7" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.13.0" + } + }, + "node_modules/@babel/plugin-bugfix-v8-static-class-fields-redefine-readonly": { + "version": "7.29.7", + "resolved": "https://registry.npmjs.org/@babel/plugin-bugfix-v8-static-class-fields-redefine-readonly/-/plugin-bugfix-v8-static-class-fields-redefine-readonly-7.29.7.tgz", + "integrity": "sha512-pn6QacGLgvCcwc+syUhKE/qSjV2D1IHDB84RNxWYSt1mW3K/SCtjinZ2p0cETJxAWBjPy3K/1lHwG5BjjPxNlw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.29.7", + "@babel/traverse": "^7.29.7" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" + } + }, + "node_modules/@babel/plugin-proposal-private-property-in-object": { + "version": "7.21.0-placeholder-for-preset-env.2", + "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-private-property-in-object/-/plugin-proposal-private-property-in-object-7.21.0-placeholder-for-preset-env.2.tgz", + "integrity": "sha512-SOSkfJDddaM7mak6cPEpswyTRnuRltl429hMraQEglW+OkovnCzsiszTmsrlY//qLFjCpQDFRvjdm2wA5pPm9w==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-async-generators": { + "version": "7.8.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-async-generators/-/plugin-syntax-async-generators-7.8.4.tgz", + "integrity": "sha512-tycmZxkGfZaxhMRbXlPXuVFpdWlXpir2W4AMhSJgRKzk/eDlIXOhb2LHWoLpDF7TEHylV5zNhykX6KAgHJmTNw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.8.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-bigint": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-bigint/-/plugin-syntax-bigint-7.8.3.tgz", + "integrity": "sha512-wnTnFlG+YxQm3vDxpGE57Pj0srRU4sHE/mDkt1qv2YJJSeUAec2ma4WLUnUPeKjyrfntVwe/N6dCXpU+zL3Npg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.8.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-class-properties": { + "version": "7.12.13", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-class-properties/-/plugin-syntax-class-properties-7.12.13.tgz", + "integrity": "sha512-fm4idjKla0YahUNgFNLCB0qySdsoPiZP3iQE3rky0mBUtMZ23yDJ9SJdg6dXTSDnulOVqiF3Hgr9nbXvXTQZYA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.12.13" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-class-static-block": { + "version": "7.14.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-class-static-block/-/plugin-syntax-class-static-block-7.14.5.tgz", + "integrity": "sha512-b+YyPmr6ldyNnM6sqYeMWE+bgJcJpO6yS4QD7ymxgH34GBPNDM/THBh8iunyvKIZztiwLH4CJZ0RxTk9emgpjw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.14.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-import-assertions": { + "version": "7.29.7", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-import-assertions/-/plugin-syntax-import-assertions-7.29.7.tgz", + "integrity": "sha512-/An1OCBN93thpBAGyfsK2pcf0jvju1SAtKkL2Ny++B5Sy6sqgzXDQH1cZxWbF96Wuk+bn41MDA9bLd4VVAw6rw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.29.7" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-import-attributes": { + "version": "7.29.7", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-import-attributes/-/plugin-syntax-import-attributes-7.29.7.tgz", + "integrity": "sha512-zGYcYfq/WmZ4V+kBIXQon9dSSc8ircGZqw9ZaNhhGj9nZkeBu1jHLBDQqYYi5WA9uawvA2sIMbry2nCFhf5Djg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.29.7" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-import-meta": { + "version": "7.10.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-import-meta/-/plugin-syntax-import-meta-7.10.4.tgz", + "integrity": "sha512-Yqfm+XDx0+Prh3VSeEQCPU81yC+JWZ2pDPFSS4ZdpfZhp4MkFMaDC1UqseovEKwSUpnIL7+vK+Clp7bfh0iD7g==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.10.4" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-json-strings": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-json-strings/-/plugin-syntax-json-strings-7.8.3.tgz", + "integrity": "sha512-lY6kdGpWHvjoe2vk4WrAapEuBR69EMxZl+RoGRhrFGNYVK8mOPAW8VfbT/ZgrFbXlDNiiaxQnAtgVCZ6jv30EA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.8.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-jsx": { + "version": "7.29.7", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-jsx/-/plugin-syntax-jsx-7.29.7.tgz", + "integrity": "sha512-TSu8+mHCoEaaCDEZ0I3+6mvTBYR4PCxQwf2z9/r5Tbztv6NaLR3B9thGTTxX2WGuGHJqRiAbKPeGTJ5XWXVg6A==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.29.7" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-logical-assignment-operators": { + "version": "7.10.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-logical-assignment-operators/-/plugin-syntax-logical-assignment-operators-7.10.4.tgz", + "integrity": "sha512-d8waShlpFDinQ5MtvGU9xDAOzKH47+FFoney2baFIoMr952hKOLp1HR7VszoZvOsV/4+RRszNY7D17ba0te0ig==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.10.4" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-nullish-coalescing-operator": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-nullish-coalescing-operator/-/plugin-syntax-nullish-coalescing-operator-7.8.3.tgz", + "integrity": "sha512-aSff4zPII1u2QD7y+F8oDsz19ew4IGEJg9SVW+bqwpwtfFleiQDMdzA/R+UlWDzfnHFCxxleFT0PMIrR36XLNQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.8.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-numeric-separator": { + "version": "7.10.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-numeric-separator/-/plugin-syntax-numeric-separator-7.10.4.tgz", + "integrity": "sha512-9H6YdfkcK/uOnY/K7/aA2xpzaAgkQn37yzWUMRK7OaPOqOpGS1+n0H5hxT9AUw9EsSjPW8SVyMJwYRtWs3X3ug==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.10.4" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-object-rest-spread": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-object-rest-spread/-/plugin-syntax-object-rest-spread-7.8.3.tgz", + "integrity": "sha512-XoqMijGZb9y3y2XskN+P1wUGiVwWZ5JmoDRwx5+3GmEplNyVM2s2Dg8ILFQm8rWM48orGy5YpI5Bl8U1y7ydlA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.8.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-optional-catch-binding": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-optional-catch-binding/-/plugin-syntax-optional-catch-binding-7.8.3.tgz", + "integrity": "sha512-6VPD0Pc1lpTqw0aKoeRTMiB+kWhAoT24PA+ksWSBrFtl5SIRVpZlwN3NNPQjehA2E/91FV3RjLWoVTglWcSV3Q==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.8.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-optional-chaining": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-optional-chaining/-/plugin-syntax-optional-chaining-7.8.3.tgz", + "integrity": "sha512-KoK9ErH1MBlCPxV0VANkXW2/dw4vlbGDrFgz8bmUsBGYkFRcbRwMh6cIJubdPrkxRwuGdtCk0v/wPTKbQgBjkg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.8.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-private-property-in-object": { + "version": "7.14.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-private-property-in-object/-/plugin-syntax-private-property-in-object-7.14.5.tgz", + "integrity": "sha512-0wVnp9dxJ72ZUJDV27ZfbSj6iHLoytYZmh3rFcxNnvsJF3ktkzLDZPy/mA17HGsaQT3/DQsWYX1f1QGWkCoVUg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.14.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-top-level-await": { + "version": "7.14.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-top-level-await/-/plugin-syntax-top-level-await-7.14.5.tgz", + "integrity": "sha512-hx++upLv5U1rgYfwe1xBQUhRmU41NEvpUvrp8jkrSCdvGSnM5/qdRMtylJ6PG5OFkBaHkbTAKTnd3/YyESRHFw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.14.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-typescript": { + "version": "7.29.7", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-typescript/-/plugin-syntax-typescript-7.29.7.tgz", + "integrity": "sha512-ngr+82Sh0xMz25TPCZi+nC2iTzjfCdWS2ONXTp/PtSCHCgaCNBpdMqgvJ2ccdLlClVZ7sisIgB914j/JFe+RZA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.29.7" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-unicode-sets-regex": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-unicode-sets-regex/-/plugin-syntax-unicode-sets-regex-7.18.6.tgz", + "integrity": "sha512-727YkEAPwSIQTv5im8QHz3upqp92JTWhidIC81Tdx4VJYIte/VndKf1qKrfnnhPLiPghStWfvC/iFaMCQu7Nqg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-create-regexp-features-plugin": "^7.18.6", + "@babel/helper-plugin-utils": "^7.18.6" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" + } + }, + "node_modules/@babel/plugin-transform-arrow-functions": { + "version": "7.29.7", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-arrow-functions/-/plugin-transform-arrow-functions-7.29.7.tgz", + "integrity": "sha512-N7zArUXWzAMzm+/N0uPBeVB3Fam5lMxtUwMmDK5f/IBBS7a7p1qeUoxd/6CckXoxUdgsntq1Dh8xNW06maZbDQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.29.7" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-async-generator-functions": { + "version": "7.29.7", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-async-generator-functions/-/plugin-transform-async-generator-functions-7.29.7.tgz", + "integrity": "sha512-d98gXZkgswvkyohMBABkhm3GeXhYj8psWfwQ2C7gtfrKGTykQa/iOIi+JJhwMjPlZ6Vm2XN+DCf3Es1EoG4ZLA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.29.7", + "@babel/helper-remap-async-to-generator": "^7.29.7", + "@babel/traverse": "^7.29.7" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-async-to-generator": { + "version": "7.29.7", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-async-to-generator/-/plugin-transform-async-to-generator-7.29.7.tgz", + "integrity": "sha512-pcUb2SS+RMo9TWVBwKGI5ShtoG7R+zBsFmCKDa6fe8c+hPr3XJlZgoE5j6i8W7gDjhyvy+85vmYexanvXh3d1w==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-module-imports": "^7.29.7", + "@babel/helper-plugin-utils": "^7.29.7", + "@babel/helper-remap-async-to-generator": "^7.29.7" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-block-scoped-functions": { + "version": "7.29.7", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-block-scoped-functions/-/plugin-transform-block-scoped-functions-7.29.7.tgz", + "integrity": "sha512-cUSmjh72N+rN4PrkFlN1dJwNCwjVp5d38/CQrEsFggkD10UiFlBFgdH3tv5dNsLuHY+3S8db2xCHjhZcv5WgvA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.29.7" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-block-scoping": { + "version": "7.29.7", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-block-scoping/-/plugin-transform-block-scoping-7.29.7.tgz", + "integrity": "sha512-ONyr4+AZhKh8yKWInVxU9AXA9EbsyeLcL6V0dJy6M2/62vuvpGm29zzuymbTpdc451GEpDIdAyPLP3r+P61yKQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.29.7" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-class-properties": { + "version": "7.29.7", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-class-properties/-/plugin-transform-class-properties-7.29.7.tgz", + "integrity": "sha512-GtcpjFvanPfzNQi3eTitsCqtRRmmqzpy/A+yhTR1HaZo1Ly3EA8ZXxlPyHdR8/IuRMYc3E4wdGBewB2QKQjAaA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-create-class-features-plugin": "^7.29.7", + "@babel/helper-plugin-utils": "^7.29.7" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-class-static-block": { + "version": "7.29.7", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-class-static-block/-/plugin-transform-class-static-block-7.29.7.tgz", + "integrity": "sha512-kibJgmEdX2iMwsHY2tSZNDgj8PwIlCQz7FK9KuGKO8zsuoUwSEhoNnNVp/emKWrbY4HeO6kkXfdMqRKKKXBm2A==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-create-class-features-plugin": "^7.29.7", + "@babel/helper-plugin-utils": "^7.29.7" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.12.0" + } + }, + "node_modules/@babel/plugin-transform-classes": { + "version": "7.29.7", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-classes/-/plugin-transform-classes-7.29.7.tgz", + "integrity": "sha512-qV0OGGBVacduzQHE649JyCneOFI/maT+YKsO+K4Yi3xv2wTPNjM/W2o2gdzMwEAZz7fXNTHAe0NcSg30bIN69g==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-annotate-as-pure": "^7.29.7", + "@babel/helper-compilation-targets": "^7.29.7", + "@babel/helper-globals": "^7.29.7", + "@babel/helper-plugin-utils": "^7.29.7", + "@babel/helper-replace-supers": "^7.29.7", + "@babel/traverse": "^7.29.7" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-computed-properties": { + "version": "7.29.7", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-computed-properties/-/plugin-transform-computed-properties-7.29.7.tgz", + "integrity": "sha512-RK7/IyU5phpuCdBAuig5VkzG/EnbDaui5SQGdU9BFrHdV+mV4cUjLMQ9lJDjLNtWHsqtiefpGZUXQP2BiTYMsA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.29.7", + "@babel/template": "^7.29.7" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-destructuring": { + "version": "7.29.7", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-destructuring/-/plugin-transform-destructuring-7.29.7.tgz", + "integrity": "sha512-iPX8aD6H9zV5s7ZsqTdNocPN/MGQ5sSMnElKrktxjJRMnB2jN/1p2+R7GkfD6CAYoVFqy5A4XnSIUeGgJzIWpg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.29.7", + "@babel/traverse": "^7.29.7" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-dotall-regex": { + "version": "7.29.7", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-dotall-regex/-/plugin-transform-dotall-regex-7.29.7.tgz", + "integrity": "sha512-3qc18hsD2RdZiyJNDNc7HQpv6xbncwh8FYtxNFFzclSyh/trPD9KkVR9BDECUjDLvb7yJVF15GfYUuC+LMkkiQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-create-regexp-features-plugin": "^7.29.7", + "@babel/helper-plugin-utils": "^7.29.7" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-duplicate-keys": { + "version": "7.29.7", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-duplicate-keys/-/plugin-transform-duplicate-keys-7.29.7.tgz", + "integrity": "sha512-6IvRRriEMqnBwD6chtxdLpMYCHWEzN+oL5cyQtjykya19UgzbmKhxmhZgKC/LHxS2nYr9Q/qYPZ5Lr6jOL9+yQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.29.7" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-duplicate-named-capturing-groups-regex": { + "version": "7.29.7", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-duplicate-named-capturing-groups-regex/-/plugin-transform-duplicate-named-capturing-groups-regex-7.29.7.tgz", + "integrity": "sha512-2wiIyo2BjtgU7HufSeDnL9L2O7zr8jmhFKuSr65VpRkUiRKRNpb0mdlk56+XPPKoIrfHqzbMuglDvZun0RISsA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-create-regexp-features-plugin": "^7.29.7", + "@babel/helper-plugin-utils": "^7.29.7" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" + } + }, + "node_modules/@babel/plugin-transform-dynamic-import": { + "version": "7.29.7", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-dynamic-import/-/plugin-transform-dynamic-import-7.29.7.tgz", + "integrity": "sha512-giOlEm/EFjfjr+te9NsdjkUo2v4f8rS/SXPumRVHAtbNcyNlvtREkU1dZzaIDclNpnaVhlCqRdFKhJBjBikzLg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.29.7" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-explicit-resource-management": { + "version": "7.29.7", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-explicit-resource-management/-/plugin-transform-explicit-resource-management-7.29.7.tgz", + "integrity": "sha512-Rstj7coNz8sE+7Ju7ihpHLI564lsK5pUpNNlvptCIC/16E/S5hbl6n3kESPKdNRmqEWlpn5xpS5Q2dvXBsySLw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.29.7", + "@babel/plugin-transform-destructuring": "^7.29.7" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-exponentiation-operator": { + "version": "7.29.7", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-exponentiation-operator/-/plugin-transform-exponentiation-operator-7.29.7.tgz", + "integrity": "sha512-zFpMOTLZBdW5LfObqcSbL6kefg4R4eLdmvS0wbN9M6D5Mym/sKm9toOoWyVOa+xDjvCnuWcHls2YonXwHvH3CQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.29.7" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-export-namespace-from": { + "version": "7.29.7", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-export-namespace-from/-/plugin-transform-export-namespace-from-7.29.7.tgz", + "integrity": "sha512-24B2nOy2TeJSMheqwPD4DDQOV/elLSIlKxjZt4i05H5AgdPdWR3n18HnNrcJ+j76WJd9gbwb9jPjNYUy6RautA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.29.7" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-for-of": { + "version": "7.29.7", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-for-of/-/plugin-transform-for-of-7.29.7.tgz", + "integrity": "sha512-zeSIHh0+E1Um1WJRXCFlHQYu2ieJNdivLLjlBEp+dIBu3S51n+SZZmIXjxnItw6pz56Cn+KvK68BIBVsxq2JiQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.29.7", + "@babel/helper-skip-transparent-expression-wrappers": "^7.29.7" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-function-name": { + "version": "7.29.7", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-function-name/-/plugin-transform-function-name-7.29.7.tgz", + "integrity": "sha512-otRWaHXE6fbAGkePvaj/kvs3HsqXfPhlnzwSOlnFgbqCPMd975dW+4wZ00WFBt+/YlBGcJwNrARQTOJOb4ZrIg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-compilation-targets": "^7.29.7", + "@babel/helper-plugin-utils": "^7.29.7", + "@babel/traverse": "^7.29.7" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-json-strings": { + "version": "7.29.7", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-json-strings/-/plugin-transform-json-strings-7.29.7.tgz", + "integrity": "sha512-RRnE2+eon1rJAq8MnoF1b5kTpY1vU88twHcvcKMrsqP/jxIRqDVs9iJB5fqPuqyeFAW0wJo4MlUIPpQCq/aRsg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.29.7" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-literals": { + "version": "7.29.7", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-literals/-/plugin-transform-literals-7.29.7.tgz", + "integrity": "sha512-DZ/oLP21ZuWx1vKqnoNv6/tvEK48AQOBRai40CX9dTjGluvT/YZCyY3rryDtyUqCEoyNroy5KKPwX2iQCiRvyw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.29.7" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-logical-assignment-operators": { + "version": "7.29.7", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-logical-assignment-operators/-/plugin-transform-logical-assignment-operators-7.29.7.tgz", + "integrity": "sha512-A0H91hh6W8MFRkp5TqJmMr39jzGD1A1E1Ysiv2O06Sfbhkapm+XyIzxWCEh5kqwOZ1/8QZ0dY3SeQ7XBqfJd5Q==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.29.7" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-member-expression-literals": { + "version": "7.29.7", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-member-expression-literals/-/plugin-transform-member-expression-literals-7.29.7.tgz", + "integrity": "sha512-hl1kwFZCCiDyfH25Xmco9jTrkPgnS9pmOzSG7W5I4SaGbLeqKv417hcU2RKmaxoPEgsoJh7ZPOrnPGq99bHoUg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.29.7" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-modules-amd": { + "version": "7.29.7", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-amd/-/plugin-transform-modules-amd-7.29.7.tgz", + "integrity": "sha512-fxtQoH3m5ywUSIfaH0FGCzWu4McsYon5bD3K4XnskC7f+OyQMj7rsOMi4NvvmJ83WwBAg4UCe+ov4VZlqEvyew==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-module-transforms": "^7.29.7", + "@babel/helper-plugin-utils": "^7.29.7" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-modules-commonjs": { + "version": "7.29.7", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-commonjs/-/plugin-transform-modules-commonjs-7.29.7.tgz", + "integrity": "sha512-j0vCldybPC5b5dwCQOJ21uKtHzt7hxLygJTg9eF1ScfaikEDNfzn94XoW5Fi+seBR0nCyL23xaBFFkq7dTM8XQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-module-transforms": "^7.29.7", + "@babel/helper-plugin-utils": "^7.29.7" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-modules-systemjs": { + "version": "7.29.8", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-systemjs/-/plugin-transform-modules-systemjs-7.29.8.tgz", + "integrity": "sha512-6iSnEK0zlkLKU4heofK/AdmRD4e2SHVpJMtrwnTCzhnaM98ria4rTrOXBBi45BTTYnJtO8txnPsX4fChYXkmeA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-module-transforms": "^7.29.7", + "@babel/helper-plugin-utils": "^7.29.7", + "@babel/helper-validator-identifier": "^7.29.7", + "@babel/traverse": "^7.29.8" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-modules-umd": { + "version": "7.29.7", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-umd/-/plugin-transform-modules-umd-7.29.7.tgz", + "integrity": "sha512-B4UkaTK3QpgCwJnrxKfMPKdo92CN7OKXAlpAAnM3UPu0Q0lCCk57ylA9AJbRy2v8dDKOPAAWcoR6CMyeoHwRCA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-module-transforms": "^7.29.7", + "@babel/helper-plugin-utils": "^7.29.7" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-named-capturing-groups-regex": { + "version": "7.29.7", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-named-capturing-groups-regex/-/plugin-transform-named-capturing-groups-regex-7.29.7.tgz", + "integrity": "sha512-vuFoLwr4qnv2xbZ16SQd6uPcH5FNrLHhk/Jzo++0XJFcaDsr4gjJVg6j398oMHiC+83k/GiBzviwF5KBJkPUtQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-create-regexp-features-plugin": "^7.29.7", + "@babel/helper-plugin-utils": "^7.29.7" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" + } + }, + "node_modules/@babel/plugin-transform-new-target": { + "version": "7.29.7", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-new-target/-/plugin-transform-new-target-7.29.7.tgz", + "integrity": "sha512-fEo41GmsOUhOBlw8ioo6zvjX5Xc2Lqkzlyfqbpsk3eB6TReV18uhxZ0esfEokVbY2+PVJAQHNKxER6lGrzNd3A==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.29.7" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-nullish-coalescing-operator": { + "version": "7.29.7", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-nullish-coalescing-operator/-/plugin-transform-nullish-coalescing-operator-7.29.7.tgz", + "integrity": "sha512-idmp1dFaekP9GbcMvG24Kvw2BfhFZjHnNJCkV4WuIY4PskJzwI3f1N5OdgYke38T7rftO6ERulFRn2cFeZwRkg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.29.7" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-numeric-separator": { + "version": "7.29.7", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-numeric-separator/-/plugin-transform-numeric-separator-7.29.7.tgz", + "integrity": "sha512-zR7fv/z14OjgHl4AgRtkDBvBMhIzCxqV/qN/2BCRC7LjFwvuzjYe7gDWxC4Wl/SNsLM6SE1IWvRPYMgSJaUvNw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.29.7" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-object-rest-spread": { + "version": "7.29.7", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-object-rest-spread/-/plugin-transform-object-rest-spread-7.29.7.tgz", + "integrity": "sha512-Ld98jn4c0smUywL57m7SgsHq3OpThOa6LqZJif3G6jYOovPleoFhVrBJ1WegRApSFB2wu4+RelAj9AC9G08Z4A==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-compilation-targets": "^7.29.7", + "@babel/helper-plugin-utils": "^7.29.7", + "@babel/plugin-transform-destructuring": "^7.29.7", + "@babel/plugin-transform-parameters": "^7.29.7", + "@babel/traverse": "^7.29.7" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-object-super": { + "version": "7.29.7", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-object-super/-/plugin-transform-object-super-7.29.7.tgz", + "integrity": "sha512-Ea/diGcw0twB5IlZPO5sgET6fJsLJqPABqTuFWIR+iMPGPZJkATEIWx0wa+aEQ5UY1CBQyP/gkAiLEqn1vBiQA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.29.7", + "@babel/helper-replace-supers": "^7.29.7" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-optional-catch-binding": { + "version": "7.29.7", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-optional-catch-binding/-/plugin-transform-optional-catch-binding-7.29.7.tgz", + "integrity": "sha512-sLsyndxK2VwX6yNUOakMb7Sh553ZTe/vVM1XJ+9Z5aW1ytsc8xOIwmyk05NNjN60vkc5/KqoTH6hB4V41LJhng==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.29.7" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-optional-chaining": { + "version": "7.29.7", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-optional-chaining/-/plugin-transform-optional-chaining-7.29.7.tgz", + "integrity": "sha512-6GM1dhvK3gNODkXcEcMCOLEDCLSoZ/sBbro2Ax8HURyasQ4NshagQixkRFdh5niI6E4gmA/jYI/4aT7rRos3ZQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.29.7", + "@babel/helper-skip-transparent-expression-wrappers": "^7.29.7" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-parameters": { + "version": "7.29.7", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-parameters/-/plugin-transform-parameters-7.29.7.tgz", + "integrity": "sha512-ZDOBqV/qLYJI0YElr8DcENEyARsFQeESqWXH6gZlghYXuPPjvweuDhP4VyEi4BlUBlLRFZVjxoZDMjxhLW766g==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.29.7" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-private-methods": { + "version": "7.29.7", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-private-methods/-/plugin-transform-private-methods-7.29.7.tgz", + "integrity": "sha512-/6Rz4DK1ETDEM/bWHsPHcaEe7ZaT1EqSXjtSP/L0DijOYuaUhiRiOKcwpZ8P7zR4xXEHc2ITdiCgBm9Tpyv9ug==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-create-class-features-plugin": "^7.29.7", + "@babel/helper-plugin-utils": "^7.29.7" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-private-property-in-object": { + "version": "7.29.7", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-private-property-in-object/-/plugin-transform-private-property-in-object-7.29.7.tgz", + "integrity": "sha512-+BNo06dnrzdNNqCm1X6YUaVv0DKk8Q+JYcoZfOkLhYWNCXzlwTSRq8zGWayT1csjcpNXV9CQTBRRbmTLZac5cA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-annotate-as-pure": "^7.29.7", + "@babel/helper-create-class-features-plugin": "^7.29.7", + "@babel/helper-plugin-utils": "^7.29.7" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-property-literals": { + "version": "7.29.7", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-property-literals/-/plugin-transform-property-literals-7.29.7.tgz", + "integrity": "sha512-bOMRLQuI0A5ZqHq3OWJ89/rXpJ/NJrbVhXiP4zwPGMs6kpcVsuTUNjwoE30K0Qm3mf48a/TnRYYD6vPNqcg6jA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.29.7" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-react-display-name": { + "version": "7.29.7", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-react-display-name/-/plugin-transform-react-display-name-7.29.7.tgz", + "integrity": "sha512-+1wdDMGNb4UPeY3Q4L5yLiYe6TXPXubs4NjrgRFw13hPRLJfEMw2Q5OXkee6/IfdqePIeW4Jjwe3aBh7SdKz4Q==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.29.7" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-react-jsx": { + "version": "7.29.7", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-react-jsx/-/plugin-transform-react-jsx-7.29.7.tgz", + "integrity": "sha512-WsZulLVBUHXVj2cUcPVx6UE21TpalB6bHbSFErKT0Ib++ax24jjXe73FqlWvdylFOjiuPHYi6VCcgRad1ItN+A==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-annotate-as-pure": "^7.29.7", + "@babel/helper-module-imports": "^7.29.7", + "@babel/helper-plugin-utils": "^7.29.7", + "@babel/plugin-syntax-jsx": "^7.29.7", + "@babel/types": "^7.29.7" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-react-jsx-development": { + "version": "7.29.7", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-react-jsx-development/-/plugin-transform-react-jsx-development-7.29.7.tgz", + "integrity": "sha512-Xfy3UVMF04+ypnFbkhvfqtmvwfe92qwQdbGZVonhE+6v35GzlofmOnA1szaZqzb9xYWr0nl1e5EMmzi0DNON1g==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/plugin-transform-react-jsx": "^7.29.7" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-react-pure-annotations": { + "version": "7.29.7", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-react-pure-annotations/-/plugin-transform-react-pure-annotations-7.29.7.tgz", + "integrity": "sha512-H5E+HBgDpr6Q5t+Aj11tL7XkIui1jhbIoArVQnqjgXo5/3YxkN7ZEBcWF4RQlB0T4rrxJQbXS6kiFV6B7XTqUA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-annotate-as-pure": "^7.29.7", + "@babel/helper-plugin-utils": "^7.29.7" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-regenerator": { + "version": "7.29.8", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-regenerator/-/plugin-transform-regenerator-7.29.8.tgz", + "integrity": "sha512-0UpIXPtdDtMXfnV2OJAVMLpj3H/92vmkA6lpSRakmycJvj3VUy6Xs1dM8tXRugupykr5WB+LpiVl0J8LMVg2mg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.29.7" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-regexp-modifiers": { + "version": "7.29.7", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-regexp-modifiers/-/plugin-transform-regexp-modifiers-7.29.7.tgz", + "integrity": "sha512-mB5Fs0VWrJ42ZCmc8114v60qetdaUVNkj9PmSZRmanCZM3S9hm0CFRLjRmYIsuXav14l2jvZ+4T8iiCGnhj3nQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-create-regexp-features-plugin": "^7.29.7", + "@babel/helper-plugin-utils": "^7.29.7" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" + } + }, + "node_modules/@babel/plugin-transform-reserved-words": { + "version": "7.29.7", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-reserved-words/-/plugin-transform-reserved-words-7.29.7.tgz", + "integrity": "sha512-5+YhdpVgmfSmwZyLMftfaiffLRMHjzIRHFHHLdibcSyJm2pasMrKHrO3Ptrt2DRshjvpgjEJJ1zVW14WPq/6QA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.29.7" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-shorthand-properties": { + "version": "7.29.7", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-shorthand-properties/-/plugin-transform-shorthand-properties-7.29.7.tgz", + "integrity": "sha512-I+WYbGBAiCn7nA6xBrlgPH+MB7HWb4u8pv5S0Pv7OtwNvIFvCCb24YlttKEeUFVurfBCEaOTnuhlqsb7f0Z5Dg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.29.7" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-spread": { + "version": "7.29.8", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-spread/-/plugin-transform-spread-7.29.8.tgz", + "integrity": "sha512-4S9ksMGVWUshvgK0mKfvZky7leuG5/uoFVwMpAomJ8bMoDJiNHRVmc1EglwW/CmGVSqqWpEbXm9FmbRit22qoA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.29.7", + "@babel/helper-skip-transparent-expression-wrappers": "^7.29.7" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-sticky-regex": { + "version": "7.29.7", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-sticky-regex/-/plugin-transform-sticky-regex-7.29.7.tgz", + "integrity": "sha512-BCHzNYJGe9l7EpwwDBN/ztlL2NYFFq8hp9ddjtUEM9f2O7S7kKV/lL6Fwo7IF7NSkYhPK2vO+86nIGltA90MsA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.29.7" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-template-literals": { + "version": "7.29.7", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-template-literals/-/plugin-transform-template-literals-7.29.7.tgz", + "integrity": "sha512-NCSEJ4sLFU2gqAub45HYh4fus2yQ36rr6ei6vpU7NdoJqCpxvEG8E6eJpscGyXP3VHD2Ny+fSXr04k1hoUrFqA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.29.7" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-typeof-symbol": { + "version": "7.29.7", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-typeof-symbol/-/plugin-transform-typeof-symbol-7.29.7.tgz", + "integrity": "sha512-223mNGoTkBiTEWFoK+Q6Go3tueMRclO8vxxxxquNCYuNI4jWOofFKJRRDu6SDrB8Sgo1UEGW9T4GAQ8ZyRso1A==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.29.7" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-typescript": { + "version": "7.29.7", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-typescript/-/plugin-transform-typescript-7.29.7.tgz", + "integrity": "sha512-jK52h8LaLc7JarhQV2ofeFMts4H7vnOXnqZNA6fYglBTZewRBE51KWt3BUltW1P+KoPsYkHoJeXePuz4zo2LMw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-annotate-as-pure": "^7.29.7", + "@babel/helper-create-class-features-plugin": "^7.29.7", + "@babel/helper-plugin-utils": "^7.29.7", + "@babel/helper-skip-transparent-expression-wrappers": "^7.29.7", + "@babel/plugin-syntax-typescript": "^7.29.7" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-unicode-escapes": { + "version": "7.29.7", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-unicode-escapes/-/plugin-transform-unicode-escapes-7.29.7.tgz", + "integrity": "sha512-jCfXxSjf94lf4E0hKE0AByxF6F3/pVFqRdUUNkDJhsY0m1ZKjnN6ZYyMeHNpzflxb/0q5b7t3p+BE+SLF1WOtA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.29.7" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-unicode-property-regex": { + "version": "7.29.7", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-unicode-property-regex/-/plugin-transform-unicode-property-regex-7.29.7.tgz", + "integrity": "sha512-OgZ+zoAJgZLUCunsTRQ5LAjOywDv5zzZ2/hQ5aMw1pGXyY2rtE8/chXYUmu3AlVHKpm10KEdG9aMwbI/K76ZGw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-create-regexp-features-plugin": "^7.29.7", + "@babel/helper-plugin-utils": "^7.29.7" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-unicode-regex": { + "version": "7.29.7", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-unicode-regex/-/plugin-transform-unicode-regex-7.29.7.tgz", + "integrity": "sha512-7D/x/23/d/3VqZ0QA+LGbZMlGwZjztBygSWWWsfTPoQ1oQ6Q1P6Mr3d0kk42XabyUVw+fha3LqdRsFqeKqvCyA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-create-regexp-features-plugin": "^7.29.7", + "@babel/helper-plugin-utils": "^7.29.7" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-unicode-sets-regex": { + "version": "7.29.7", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-unicode-sets-regex/-/plugin-transform-unicode-sets-regex-7.29.7.tgz", + "integrity": "sha512-BLOhLht9DOJwIxlmp91wHvkXv1lguuHS3/FwUO8HL1H0u8s4hR1gASVFyilu9iGtcTRYqjTZmlsFFeQletntEg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-create-regexp-features-plugin": "^7.29.7", + "@babel/helper-plugin-utils": "^7.29.7" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" + } + }, + "node_modules/@babel/preset-env": { + "version": "7.29.7", + "resolved": "https://registry.npmjs.org/@babel/preset-env/-/preset-env-7.29.7.tgz", + "integrity": "sha512-GYzX36n1nsciIb0uyH0GHwxwtNwPQIcpxSeiVLDtG/B7jB5xXgchnmL1f/jCX5o+pwnaDBtO60ONSJhEBJfxYA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/compat-data": "^7.29.7", + "@babel/helper-compilation-targets": "^7.29.7", + "@babel/helper-plugin-utils": "^7.29.7", + "@babel/helper-validator-option": "^7.29.7", + "@babel/plugin-bugfix-firefox-class-in-computed-class-key": "^7.29.7", + "@babel/plugin-bugfix-safari-class-field-initializer-scope": "^7.29.7", + "@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression": "^7.29.7", + "@babel/plugin-bugfix-safari-rest-destructuring-rhs-array": "^7.29.7", + "@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining": "^7.29.7", + "@babel/plugin-bugfix-v8-static-class-fields-redefine-readonly": "^7.29.7", + "@babel/plugin-proposal-private-property-in-object": "7.21.0-placeholder-for-preset-env.2", + "@babel/plugin-syntax-import-assertions": "^7.29.7", + "@babel/plugin-syntax-import-attributes": "^7.29.7", + "@babel/plugin-syntax-unicode-sets-regex": "^7.18.6", + "@babel/plugin-transform-arrow-functions": "^7.29.7", + "@babel/plugin-transform-async-generator-functions": "^7.29.7", + "@babel/plugin-transform-async-to-generator": "^7.29.7", + "@babel/plugin-transform-block-scoped-functions": "^7.29.7", + "@babel/plugin-transform-block-scoping": "^7.29.7", + "@babel/plugin-transform-class-properties": "^7.29.7", + "@babel/plugin-transform-class-static-block": "^7.29.7", + "@babel/plugin-transform-classes": "^7.29.7", + "@babel/plugin-transform-computed-properties": "^7.29.7", + "@babel/plugin-transform-destructuring": "^7.29.7", + "@babel/plugin-transform-dotall-regex": "^7.29.7", + "@babel/plugin-transform-duplicate-keys": "^7.29.7", + "@babel/plugin-transform-duplicate-named-capturing-groups-regex": "^7.29.7", + "@babel/plugin-transform-dynamic-import": "^7.29.7", + "@babel/plugin-transform-explicit-resource-management": "^7.29.7", + "@babel/plugin-transform-exponentiation-operator": "^7.29.7", + "@babel/plugin-transform-export-namespace-from": "^7.29.7", + "@babel/plugin-transform-for-of": "^7.29.7", + "@babel/plugin-transform-function-name": "^7.29.7", + "@babel/plugin-transform-json-strings": "^7.29.7", + "@babel/plugin-transform-literals": "^7.29.7", + "@babel/plugin-transform-logical-assignment-operators": "^7.29.7", + "@babel/plugin-transform-member-expression-literals": "^7.29.7", + "@babel/plugin-transform-modules-amd": "^7.29.7", + "@babel/plugin-transform-modules-commonjs": "^7.29.7", + "@babel/plugin-transform-modules-systemjs": "^7.29.7", + "@babel/plugin-transform-modules-umd": "^7.29.7", + "@babel/plugin-transform-named-capturing-groups-regex": "^7.29.7", + "@babel/plugin-transform-new-target": "^7.29.7", + "@babel/plugin-transform-nullish-coalescing-operator": "^7.29.7", + "@babel/plugin-transform-numeric-separator": "^7.29.7", + "@babel/plugin-transform-object-rest-spread": "^7.29.7", + "@babel/plugin-transform-object-super": "^7.29.7", + "@babel/plugin-transform-optional-catch-binding": "^7.29.7", + "@babel/plugin-transform-optional-chaining": "^7.29.7", + "@babel/plugin-transform-parameters": "^7.29.7", + "@babel/plugin-transform-private-methods": "^7.29.7", + "@babel/plugin-transform-private-property-in-object": "^7.29.7", + "@babel/plugin-transform-property-literals": "^7.29.7", + "@babel/plugin-transform-regenerator": "^7.29.7", + "@babel/plugin-transform-regexp-modifiers": "^7.29.7", + "@babel/plugin-transform-reserved-words": "^7.29.7", + "@babel/plugin-transform-shorthand-properties": "^7.29.7", + "@babel/plugin-transform-spread": "^7.29.7", + "@babel/plugin-transform-sticky-regex": "^7.29.7", + "@babel/plugin-transform-template-literals": "^7.29.7", + "@babel/plugin-transform-typeof-symbol": "^7.29.7", + "@babel/plugin-transform-unicode-escapes": "^7.29.7", + "@babel/plugin-transform-unicode-property-regex": "^7.29.7", + "@babel/plugin-transform-unicode-regex": "^7.29.7", + "@babel/plugin-transform-unicode-sets-regex": "^7.29.7", + "@babel/preset-modules": "0.1.6-no-external-plugins", + "babel-plugin-polyfill-corejs2": "^0.4.15", + "babel-plugin-polyfill-corejs3": "^0.14.0", + "babel-plugin-polyfill-regenerator": "^0.6.6", + "core-js-compat": "^3.48.0", + "semver": "^6.3.1" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/preset-modules": { + "version": "0.1.6-no-external-plugins", + "resolved": "https://registry.npmjs.org/@babel/preset-modules/-/preset-modules-0.1.6-no-external-plugins.tgz", + "integrity": "sha512-HrcgcIESLm9aIR842yhJ5RWan/gebQUJ6E/E5+rf0y9o6oj7w0Br+sWuL6kEQ/o/AdfvR1Je9jG18/gnpwjEyA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.0.0", + "@babel/types": "^7.4.4", + "esutils": "^2.0.2" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0 || ^8.0.0-0 <8.0.0" + } + }, + "node_modules/@babel/preset-react": { + "version": "7.29.7", + "resolved": "https://registry.npmjs.org/@babel/preset-react/-/preset-react-7.29.7.tgz", + "integrity": "sha512-C+PV1TFUPTmBQGoPBL8j2QmLpZ117YTCwxIZeJOM96GbYMFSc7/pOXU5lVykwnZxyTqQxRsvoRk6f2FktZgGHA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.29.7", + "@babel/helper-validator-option": "^7.29.7", + "@babel/plugin-transform-react-display-name": "^7.29.7", + "@babel/plugin-transform-react-jsx": "^7.29.7", + "@babel/plugin-transform-react-jsx-development": "^7.29.7", + "@babel/plugin-transform-react-pure-annotations": "^7.29.7" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/preset-typescript": { + "version": "7.29.7", + "resolved": "https://registry.npmjs.org/@babel/preset-typescript/-/preset-typescript-7.29.7.tgz", + "integrity": "sha512-/Foi8vKY2EVbed/1eZx0gJEEwHAIxogrySI7rULcRIvhZzbvoE/b5qG5Ghc0WKAFKOHA9SD1x7RsFlOYdutIiQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.29.7", + "@babel/helper-validator-option": "^7.29.7", + "@babel/plugin-syntax-jsx": "^7.29.7", + "@babel/plugin-transform-modules-commonjs": "^7.29.7", + "@babel/plugin-transform-typescript": "^7.29.7" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/runtime": { + "version": "7.29.7", + "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.29.7.tgz", + "integrity": "sha512-Nq8OhGWiZIZGV6hLHoyAKLLcJihP/xFeBMGJoUrxTX2psI8dCifzLhZISFb+VWS3wFMRDmCGw5R+dOySCqPLhw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/template": { + "version": "7.29.7", + "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.29.7.tgz", + "integrity": "sha512-puq+Gf35oI24FeN11LkoUQFqv9uwNeWpxXZi/Ji3rRIoKAzKnxRaZ+Gkj0vKS9ZCiTESfng1N9LyOyXvo+m+Gg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/code-frame": "^7.29.7", + "@babel/parser": "^7.29.7", + "@babel/types": "^7.29.7" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/traverse": { + "version": "7.29.8", + "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.29.8.tgz", + "integrity": "sha512-I5z7H3bf/41ktsNVLtpN0wAa336HkqIHQ5BuPLEhTkt1jVSyZpeNKIzTgEWmlxjdg81R0IgUCcaE+Ok3NvrfZg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/code-frame": "^7.29.7", + "@babel/generator": "^7.29.8", + "@babel/helper-globals": "^7.29.7", + "@babel/parser": "^7.29.8", + "@babel/template": "^7.29.7", + "@babel/types": "^7.29.8", + "debug": "^4.3.1" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/types": { + "version": "7.29.8", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.29.8.tgz", + "integrity": "sha512-Vj1jF3cPfxg7OAfoI7QnVKLoILlm2JF9pnVHrX8qx7AHMiYWT+NDAA7jChlNgRS4WTLc/fD1lXLmPixluj+3Gg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-string-parser": "^7.29.7", + "@babel/helper-validator-identifier": "^7.29.7" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@bcoe/v8-coverage": { + "version": "0.2.3", + "resolved": "https://registry.npmjs.org/@bcoe/v8-coverage/-/v8-coverage-0.2.3.tgz", + "integrity": "sha512-0hYQ8SB4Db5zvZB4axdMHGwEaQjkZzFjQiN9LVYvIFB2nSUHW9tYpxWriPrWDASIxiaXax83REcLxuSdnGPZtw==", + "dev": true, + "license": "MIT" + }, + "node_modules/@braintree/sanitize-url": { + "version": "7.1.2", + "resolved": "https://registry.npmjs.org/@braintree/sanitize-url/-/sanitize-url-7.1.2.tgz", + "integrity": "sha512-jigsZK+sMF/cuiB7sERuo9V7N9jx+dhmHHnQyDSVdpZwVutaBu7WvNYqMDLSgFgfB30n452TP3vjDAvFC973mA==", + "license": "MIT" + }, + "node_modules/@bramus/specificity": { + "version": "2.4.2", + "resolved": "https://registry.npmjs.org/@bramus/specificity/-/specificity-2.4.2.tgz", + "integrity": "sha512-ctxtJ/eA+t+6q2++vj5j7FYX3nRu311q1wfYH3xjlLOsczhlhxAg2FWNUXhpGvAw3BWo1xBcvOV6/YLc2r5FJw==", + "dev": true, + "license": "MIT", + "dependencies": { + "css-tree": "^3.0.0" + }, + "bin": { + "specificity": "bin/cli.js" + } + }, + "node_modules/@cacheable/memory": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/@cacheable/memory/-/memory-2.2.0.tgz", + "integrity": "sha512-CTLKqLItRCEixEAewD3/j9DB3/o96gpTPD4eJ1v+DGOlxZRZncRQkGYqqnAGCscYd6RNeXfGeiuCphsPtqyIfQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@cacheable/utils": "^2.5.0", + "@keyv/bigmap": "^1.3.1", + "hookified": "^1.15.1", + "keyv": "^5.6.0" + } + }, + "node_modules/@cacheable/utils": { + "version": "2.5.0", + "resolved": "https://registry.npmjs.org/@cacheable/utils/-/utils-2.5.0.tgz", + "integrity": "sha512-buipgOVDkkPXNR5+xBpDw7Zk2n1EvU7qBJCNUcL7rhQ//kfpOXPAvQ511Os0vpLYJ1pZnvudNytkQt2hst3wqA==", + "dev": true, + "license": "MIT", + "dependencies": { + "hashery": "^1.5.1", + "keyv": "^5.6.0" + } + }, + "node_modules/@chevrotain/cst-dts-gen": { + "version": "11.1.2", + "resolved": "https://registry.npmjs.org/@chevrotain/cst-dts-gen/-/cst-dts-gen-11.1.2.tgz", + "integrity": "sha512-XTsjvDVB5nDZBQB8o0o/0ozNelQtn2KrUVteIHSlPd2VAV2utEb6JzyCJaJ8tGxACR4RiBNWy5uYUHX2eji88Q==", + "license": "Apache-2.0", + "dependencies": { + "@chevrotain/gast": "11.1.2", + "@chevrotain/types": "11.1.2", + "lodash-es": "4.17.23" + } + }, + "node_modules/@chevrotain/gast": { + "version": "11.1.2", + "resolved": "https://registry.npmjs.org/@chevrotain/gast/-/gast-11.1.2.tgz", + "integrity": "sha512-Z9zfXR5jNZb1Hlsd/p+4XWeUFugrHirq36bKzPWDSIacV+GPSVXdk+ahVWZTwjhNwofAWg/sZg58fyucKSQx5g==", + "license": "Apache-2.0", + "dependencies": { + "@chevrotain/types": "11.1.2", + "lodash-es": "4.17.23" + } + }, + "node_modules/@chevrotain/regexp-to-ast": { + "version": "11.1.2", + "resolved": "https://registry.npmjs.org/@chevrotain/regexp-to-ast/-/regexp-to-ast-11.1.2.tgz", + "integrity": "sha512-nMU3Uj8naWer7xpZTYJdxbAs6RIv/dxYzkYU8GSwgUtcAAlzjcPfX1w+RKRcYG8POlzMeayOQ/znfwxEGo5ulw==", + "license": "Apache-2.0" + }, + "node_modules/@chevrotain/types": { + "version": "11.1.2", + "resolved": "https://registry.npmjs.org/@chevrotain/types/-/types-11.1.2.tgz", + "integrity": "sha512-U+HFai5+zmJCkK86QsaJtoITlboZHBqrVketcO2ROv865xfCMSFpELQoz1GkX5GzME8pTa+3kbKrZHQtI0gdbw==", + "license": "Apache-2.0" + }, + "node_modules/@chevrotain/utils": { + "version": "11.1.2", + "resolved": "https://registry.npmjs.org/@chevrotain/utils/-/utils-11.1.2.tgz", + "integrity": "sha512-4mudFAQ6H+MqBTfqLmU7G1ZwRzCLfJEooL/fsF6rCX5eePMbGhoy5n4g+G4vlh2muDcsCTJtL+uKbOzWxs5LHA==", + "license": "Apache-2.0" + }, + "node_modules/@csstools/color-helpers": { + "version": "6.1.1", + "resolved": "https://registry.npmjs.org/@csstools/color-helpers/-/color-helpers-6.1.1.tgz", + "integrity": "sha512-gLNsunvwf3mCi5u5o46/Z/JcJMnhbHSaZ69rkgPzNM3J4s8hWwpPUQB6/tt0EDFyCiWzxANlx+2LJwpYj4zS1w==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/csstools" + }, + { + "type": "opencollective", + "url": "https://opencollective.com/csstools" + } + ], + "license": "MIT-0", + "engines": { + "node": ">=20.19.0" + } + }, + "node_modules/@csstools/css-calc": { + "version": "3.3.0", + "resolved": "https://registry.npmjs.org/@csstools/css-calc/-/css-calc-3.3.0.tgz", + "integrity": "sha512-c5ihYsPkdG6JCkU2zTMm4+k6r7RXuGxtWYhu5DHMIiF1FHzrfmHL5so11AoFpUv/tu61xfcmT4AmKoFfMPoqdQ==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/csstools" + }, + { + "type": "opencollective", + "url": "https://opencollective.com/csstools" + } + ], + "license": "MIT", + "engines": { + "node": ">=20.19.0" + }, + "peerDependencies": { + "@csstools/css-parser-algorithms": "^4.0.0", + "@csstools/css-tokenizer": "^4.0.0" + } + }, + "node_modules/@csstools/css-color-parser": { + "version": "4.2.2", + "resolved": "https://registry.npmjs.org/@csstools/css-color-parser/-/css-color-parser-4.2.2.tgz", + "integrity": "sha512-3QKjR/vxyjcSXBLgb6lP0S3MGdvwbmqSsvLPbYdVORqPDc8FX1HAJ0Spk38bxaRXgvENTA47tlhhbb5Z2e8hEg==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/csstools" + }, + { + "type": "opencollective", + "url": "https://opencollective.com/csstools" + } + ], + "license": "MIT", + "dependencies": { + "@csstools/color-helpers": "^6.1.1", + "@csstools/css-calc": "^3.3.0" + }, + "engines": { + "node": ">=20.19.0" + }, + "peerDependencies": { + "@csstools/css-parser-algorithms": "^4.0.0", + "@csstools/css-tokenizer": "^4.0.0" + } + }, + "node_modules/@csstools/css-parser-algorithms": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/@csstools/css-parser-algorithms/-/css-parser-algorithms-4.0.0.tgz", + "integrity": "sha512-+B87qS7fIG3L5h3qwJ/IFbjoVoOe/bpOdh9hAjXbvx0o8ImEmUsGXN0inFOnk2ChCFgqkkGFQ+TpM5rbhkKe4w==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/csstools" + }, + { + "type": "opencollective", + "url": "https://opencollective.com/csstools" + } + ], + "license": "MIT", + "engines": { + "node": ">=20.19.0" + }, + "peerDependencies": { + "@csstools/css-tokenizer": "^4.0.0" + } + }, + "node_modules/@csstools/css-syntax-patches-for-csstree": { + "version": "1.1.13", + "resolved": "https://registry.npmjs.org/@csstools/css-syntax-patches-for-csstree/-/css-syntax-patches-for-csstree-1.1.13.tgz", + "integrity": "sha512-i9ZylF5QNhmNfPA9l0vHAWK4kPrbIp6g9lKgaiIFsIBz2F/WNB7OLrzlNNcCOm+h42bkaSD2v1PG+IBPHhc3ZA==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/csstools" + }, + { + "type": "opencollective", + "url": "https://opencollective.com/csstools" + } + ], + "license": "MIT-0", + "peerDependencies": { + "css-tree": "^3.2.1" + }, + "peerDependenciesMeta": { + "css-tree": { + "optional": true + } + } + }, + "node_modules/@csstools/css-tokenizer": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/@csstools/css-tokenizer/-/css-tokenizer-4.0.0.tgz", + "integrity": "sha512-QxULHAm7cNu72w97JUNCBFODFaXpbDg+dP8b/oWFAZ2MTRppA3U00Y2L1HqaS4J6yBqxwa/Y3nMBaxVKbB/NsA==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/csstools" + }, + { + "type": "opencollective", + "url": "https://opencollective.com/csstools" + } + ], + "license": "MIT", + "engines": { + "node": ">=20.19.0" + } + }, + "node_modules/@emnapi/core": { + "version": "1.10.0", + "resolved": "https://registry.npmjs.org/@emnapi/core/-/core-1.10.0.tgz", + "integrity": "sha512-yq6OkJ4p82CAfPl0u9mQebQHKPJkY7WrIuk205cTYnYe+k2Z8YBh11FrbRG/H6ihirqcacOgl2BIO8oyMQLeXw==", + "dev": true, + "license": "MIT", + "optional": true, + "dependencies": { + "@emnapi/wasi-threads": "1.2.1", + "tslib": "^2.4.0" + } + }, + "node_modules/@emnapi/runtime": { + "version": "1.10.0", + "resolved": "https://registry.npmjs.org/@emnapi/runtime/-/runtime-1.10.0.tgz", + "integrity": "sha512-ewvYlk86xUoGI0zQRNq/mC+16R1QeDlKQy21Ki3oSYXNgLb45GV1P6A0M+/s6nyCuNDqe5VpaY84BzXGwVbwFA==", + "dev": true, + "license": "MIT", + "optional": true, + "dependencies": { + "tslib": "^2.4.0" + } + }, + "node_modules/@emnapi/wasi-threads": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/@emnapi/wasi-threads/-/wasi-threads-1.2.1.tgz", + "integrity": "sha512-uTII7OYF+/Mes/MrcIOYp5yOtSMLBWSIoLPpcgwipoiKbli6k322tcoFsxoIIxPDqW01SQGAgko4EzZi2BNv2w==", + "dev": true, + "license": "MIT", + "optional": true, + "dependencies": { + "tslib": "^2.4.0" + } + }, + "node_modules/@esbuild/aix-ppc64": { + "version": "0.28.2", + "resolved": "https://registry.npmjs.org/@esbuild/aix-ppc64/-/aix-ppc64-0.28.2.tgz", + "integrity": "sha512-XExcO+dvLKvVtNTibSTBej1NCAbaGhWn9Ww1ZPx80qsahhPFe/8jgWP0IchNe0F3HwkU7n8ejhH8bjonqht8mQ==", + "cpu": [ + "ppc64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "aix" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/android-arm": { + "version": "0.28.2", + "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.28.2.tgz", + "integrity": "sha512-kXXoiPVVGQcnIYGOeaovwOURpniDBpSq4A03qkQ+BMQqtGG6HYap3xne9C1O1yo4TR3qxlCX5IqqmX6fFo2Lqg==", + "cpu": [ + "arm" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/android-arm64": { + "version": "0.28.2", + "resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.28.2.tgz", + "integrity": "sha512-5YfKeeI8qWfBZIX+u2xZC3Zlb3Os/gLS2sbEKM+I4ZOcsWmHS2WLysCcQZDAFRslDUU5Oiq44gf6PYN1vGwG5A==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/android-x64": { + "version": "0.28.2", + "resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.28.2.tgz", + "integrity": "sha512-O387ite7SzUyCcy3JQX4P4bLtEA7bLLkx+esve5JHnyYfNTxcVpXZo9jhdB0lTKN44gztELTdU7nS8Nr16Fs1Q==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/darwin-arm64": { + "version": "0.28.2", + "resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.28.2.tgz", + "integrity": "sha512-n4KqkOQrraxHJcgjM1RvwbigfQKIKJVpM7xp+KsxiyUSrRdIXnt73VhrPAx0fV44hgfmIVKjxMN9J1t5jySVkw==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/darwin-x64": { + "version": "0.28.2", + "resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.28.2.tgz", + "integrity": "sha512-uq6suIWYP37qzGddBKPw5QEQPi6HiLGsO7UmkpfyaYNQ3D+rN6w6WfwH+nuqcGXWvawGwxOEroO4YGnFh95azw==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/freebsd-arm64": { + "version": "0.28.2", + "resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.28.2.tgz", + "integrity": "sha512-n+I0BTSRIoy+d6RPKnEVwql5UwBJolytvY4mAOIEJorKlqgPII8ix6slVVrfZ5Tnj7glIZvloylbB/EJPMWEXw==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "freebsd" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/freebsd-x64": { + "version": "0.28.2", + "resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.28.2.tgz", + "integrity": "sha512-78XJTJkvPs0kz2w61301PJjXl4g7q3JqiYMZ/M/yVI73EHBrCRTgkhu9oqG7vPqq+a/yadEW8aD+agKlk5xrmg==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "freebsd" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-arm": { + "version": "0.28.2", + "resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.28.2.tgz", + "integrity": "sha512-XlDnu2q5yoqems+xay6wSAcg9DDD7K9RLKZEBOMZm3ckNpJBvOX20tSfby8KfrrhINDyv9V2YVZKY/SpoGJI8w==", + "cpu": [ + "arm" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-arm64": { + "version": "0.28.2", + "resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.28.2.tgz", + "integrity": "sha512-pW4AC0P3it8c7do9MVM4p51FzHzdM/TZrerurgRcHJ2WTa1VQ1CIq18xncfpBJw4ojkiZZrKW2yIBWBP92j6Ug==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-ia32": { + "version": "0.28.2", + "resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.28.2.tgz", + "integrity": "sha512-CYbnj78HsIeA+DhgUKgFCfvNsTHFhMMrinUrMZpDXJXKN8T3XViTZ/+wtHeVxEWY8ewSzTFN+nRmSwO2tZaLUQ==", + "cpu": [ + "ia32" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-loong64": { + "version": "0.28.2", + "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.28.2.tgz", + "integrity": "sha512-buwkd8nsph4R+ajRvw0qM5Hja/TXQow3ptzWO2EbG/cqcIkHloRrdlBtQlshyYGTNFvfkfJ5tpPLVkY4DtsPfQ==", + "cpu": [ + "loong64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-mips64el": { + "version": "0.28.2", + "resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.28.2.tgz", + "integrity": "sha512-ZVykbDyk7519VwiNb9Lcj9m8XM6v5V9uKPvrEMkkEedVewf+0itkhahp4HDpgERXhwLRpWFypsGbG/J8s0QjJA==", + "cpu": [ + "mips64el" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-ppc64": { + "version": "0.28.2", + "resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.28.2.tgz", + "integrity": "sha512-CAXl+Dtd9UUuJd8pKKdwh6MLm3MUMiqMPmhZ3tTSXPqfyQ3vDl6R5hZdZ/kYojK4ofXtdfSv1tFq8XzWx3heNQ==", + "cpu": [ + "ppc64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-riscv64": { + "version": "0.28.2", + "resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.28.2.tgz", + "integrity": "sha512-GeXCej4IQtU1B+QlDV8W/RRvbzI3O/Stss+/bCXv4lZls5WGRtu2a+3JkA3i4qIUlMXpcHebWpF8AkJhATowuA==", + "cpu": [ + "riscv64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-s390x": { + "version": "0.28.2", + "resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.28.2.tgz", + "integrity": "sha512-3H1weTYZPxt/WOhByszQZybS9w5lKzUn1FDMsgEChbHWQwHYQQRfBxgCcZvPhjHfKyJjIievvMmEUawJrdY9Dg==", + "cpu": [ + "s390x" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-x64": { + "version": "0.28.2", + "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.28.2.tgz", + "integrity": "sha512-4xTZr1FUmSoQW4XIWmit3tzQrUTZM+N3P0XV8xROKYF50XfI7xeO90+1bZvNwxIufQ9hDQVRJH5YhgPVF8A/HQ==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/netbsd-arm64": { + "version": "0.28.2", + "resolved": "https://registry.npmjs.org/@esbuild/netbsd-arm64/-/netbsd-arm64-0.28.2.tgz", + "integrity": "sha512-sSATRjPeDBg3pdgHoQfoYBob11Kk1FGa9lui5RIHZCoCkJa9QKlvl3/vKz2usCmYYjs7ymJR/2Nnsqe+Hjt5nw==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "netbsd" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/netbsd-x64": { + "version": "0.28.2", + "resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.28.2.tgz", + "integrity": "sha512-lqnzCV+mM0gIADaKihiCg6ifgfU2L3h5E33rNQBN1Y4MaVGnzryzmvvf7UHxprpQdE8hpqLolJ9Rl+SkIRDpyw==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "netbsd" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/openbsd-arm64": { + "version": "0.28.2", + "resolved": "https://registry.npmjs.org/@esbuild/openbsd-arm64/-/openbsd-arm64-0.28.2.tgz", + "integrity": "sha512-AL2qJILH7lNjrDmCQDvdxMfAUIv8KMNZOvrwAQ8i8//ntL9FflhOyMJ8OZSMBb8/AWXe3/5v5S20y3zCoZWKoQ==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "openbsd" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/openbsd-x64": { + "version": "0.28.2", + "resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.28.2.tgz", + "integrity": "sha512-QtiuPytchRyC4rwUKhexJdQKvDuZ6hWloi3igqPQNUJCS1/v9EiO3UTOXR6A3FoMo4fnAKbWJdqaIwhOzh8qEw==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "openbsd" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/openharmony-arm64": { + "version": "0.28.2", + "resolved": "https://registry.npmjs.org/@esbuild/openharmony-arm64/-/openharmony-arm64-0.28.2.tgz", + "integrity": "sha512-WkhYDmpTjLvGlScA1rwjRUmhl4k8oXR3cIbtqWmELgU/dFeHHlEllxDvdWcNJV9rbzCexB5vz8gtNewWLgCT7Q==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "openharmony" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/sunos-x64": { + "version": "0.28.2", + "resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.28.2.tgz", + "integrity": "sha512-GPMSkTOtMnv2U2F8gxe4Io6qmVs+YKyp832Etqqxr0hFngmXQ3rzwytelm3GIn7T4VviRUlf3sOgBOiTdvaf7g==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "sunos" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/win32-arm64": { + "version": "0.28.2", + "resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.28.2.tgz", + "integrity": "sha512-PIhhEkE9uPBleRBrQEJpUn7MBnibZzbGzYWPmY3x+YoVg/95zbjB4CxPPOQ8l5tYYM4mMaCthF8/1DIfBQQyWQ==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/win32-ia32": { + "version": "0.28.2", + "resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.28.2.tgz", + "integrity": "sha512-YmJbfTlvU7Sdn9BB+4PRES4oB6pxgS37MAONj+hBr/cpXS1aBPKXxNnDbu+QCWPj0o9dgyxeq79g6c5P8KeuYA==", + "cpu": [ + "ia32" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/win32-x64": { + "version": "0.28.2", + "resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.28.2.tgz", + "integrity": "sha512-5ebpxr3nWMzrL/rnUI755Jkuee0bHL/Gq0WTF9lvcpv73wAp5eu8MfBUgWK9bhWvZjj7yX8etf/8tI8Ney695g==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@eslint-community/eslint-utils": { + "version": "4.10.1", + "resolved": "https://registry.npmjs.org/@eslint-community/eslint-utils/-/eslint-utils-4.10.1.tgz", + "integrity": "sha512-cuadcxVFE8sDK6iWJbs8Sn0av2Nrh2QSGQhVlBW9AaAHqHwjWsZHT8LJ4hFGPh7ASBV2deFdM7H/DPjulmh8rg==", + "dev": true, + "license": "MIT", + "dependencies": { + "eslint-visitor-keys": "^3.4.3" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + }, + "peerDependencies": { + "eslint": "^6.0.0 || ^7.0.0 || >=8.0.0" + } + }, + "node_modules/@eslint-community/eslint-utils/node_modules/eslint-visitor-keys": { + "version": "3.4.3", + "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-3.4.3.tgz", + "integrity": "sha512-wpc+LXeiyiisxPlEkUzU6svyS1frIO3Mgxj1fdy7Pm8Ygzguax2N3Fa/D/ag1WqbOprdI+uY6wMUl8/a2G+iag==", + "dev": true, + "license": "Apache-2.0", + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/@eslint-community/regexpp": { + "version": "4.12.2", + "resolved": "https://registry.npmjs.org/@eslint-community/regexpp/-/regexpp-4.12.2.tgz", + "integrity": "sha512-EriSTlt5OC9/7SXkRSCAhfSxxoSUgBm33OH+IkwbdpgoqsSsUg7y3uh+IICI/Qg4BBWr3U2i39RpmycbxMq4ew==", + "dev": true, + "license": "MIT", + "engines": { + "node": "^12.0.0 || ^14.0.0 || >=16.0.0" + } + }, + "node_modules/@eslint/config-array": { + "version": "0.23.5", + "resolved": "https://registry.npmjs.org/@eslint/config-array/-/config-array-0.23.5.tgz", + "integrity": "sha512-Y3kKLvC1dvTOT+oGlqNQ1XLqK6D1HU2YXPc52NmAlJZbMMWDzGYXMiPRJ8TYD39muD/OTjlZmNJ4ib7dvSrMBA==", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "@eslint/object-schema": "^3.0.5", + "debug": "^4.3.1", + "minimatch": "^10.2.4" + }, + "engines": { + "node": "^20.19.0 || ^22.13.0 || >=24" + } + }, + "node_modules/@eslint/config-helpers": { + "version": "0.7.0", + "resolved": "https://registry.npmjs.org/@eslint/config-helpers/-/config-helpers-0.7.0.tgz", + "integrity": "sha512-DObd/KKUsU+FaFv4PLxSRenpXfQWmPXXP3pPZ6/K1PCrMu2vQpMDMuQe/BqYeoLcz8ro0bVDF1RxOJgfVEdhUw==", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "@eslint/core": "^1.2.1" + }, + "engines": { + "node": "^20.19.0 || ^22.13.0 || >=24" + } + }, + "node_modules/@eslint/core": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/@eslint/core/-/core-1.2.1.tgz", + "integrity": "sha512-MwcE1P+AZ4C6DWlpin/OmOA54mmIZ/+xZuJiQd4SyB29oAJjN30UW9wkKNptW2ctp4cEsvhlLY/CsQ1uoHDloQ==", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "@types/json-schema": "^7.0.15" + }, + "engines": { + "node": "^20.19.0 || ^22.13.0 || >=24" + } + }, + "node_modules/@eslint/js": { + "version": "10.0.1", + "resolved": "https://registry.npmjs.org/@eslint/js/-/js-10.0.1.tgz", + "integrity": "sha512-zeR9k5pd4gxjZ0abRoIaxdc7I3nDktoXZk2qOv9gCNWx3mVwEn32VRhyLaRsDiJjTs0xq/T8mfPtyuXu7GWBcA==", + "dev": true, + "license": "MIT", + "engines": { + "node": "^20.19.0 || ^22.13.0 || >=24" + }, + "funding": { + "url": "https://eslint.org/donate" + }, + "peerDependencies": { + "eslint": "^10.0.0" + }, + "peerDependenciesMeta": { + "eslint": { + "optional": true + } + } + }, + "node_modules/@eslint/object-schema": { + "version": "3.0.5", + "resolved": "https://registry.npmjs.org/@eslint/object-schema/-/object-schema-3.0.5.tgz", + "integrity": "sha512-vqTaUEgxzm+YDSdElad6PiRoX4t8VGDjCtt05zn4nU810UIx/uNEV7/lZJ6KwFThKZOzOxzXy48da+No7HZaMw==", + "dev": true, + "license": "Apache-2.0", + "engines": { + "node": "^20.19.0 || ^22.13.0 || >=24" + } + }, + "node_modules/@eslint/plugin-kit": { + "version": "0.7.3", + "resolved": "https://registry.npmjs.org/@eslint/plugin-kit/-/plugin-kit-0.7.3.tgz", + "integrity": "sha512-IkO+/KEUvwbVpiURZg+P7zF74z5Jxe0UgJxVni+RtoHQ6IZieXaO02kmadomap/q+l6bc/jdPGGqTjhuZnuz1Q==", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "@eslint/core": "^1.2.1", + "levn": "^0.4.1" + }, + "engines": { + "node": "^20.19.0 || ^22.13.0 || >=24" + } + }, + "node_modules/@exodus/bytes": { + "version": "1.15.1", + "resolved": "https://registry.npmjs.org/@exodus/bytes/-/bytes-1.15.1.tgz", + "integrity": "sha512-S6mL0yNB/Abt9Ei4tq8gDhcczc4S3+vQ4ra7vxnAf+YHC02srtqxKKZghx2Dq6p0e66THKwR6r8N6P95wEty7Q==", + "dev": true, + "license": "MIT", + "engines": { + "node": "^20.19.0 || ^22.12.0 || >=24.0.0" + }, + "peerDependencies": { + "@noble/hashes": "^1.8.0 || ^2.0.0" + }, + "peerDependenciesMeta": { + "@noble/hashes": { + "optional": true + } + } + }, + "node_modules/@humanfs/core": { + "version": "0.19.2", + "resolved": "https://registry.npmjs.org/@humanfs/core/-/core-0.19.2.tgz", + "integrity": "sha512-UhXNm+CFMWcbChXywFwkmhqjs3PRCmcSa/hfBgLIb7oQ5HNb1wS0icWsGtSAUNgefHeI+eBrA8I1fxmbHsGdvA==", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "@humanfs/types": "^0.15.0" + }, + "engines": { + "node": ">=18.18.0" + } + }, + "node_modules/@humanfs/node": { + "version": "0.16.8", + "resolved": "https://registry.npmjs.org/@humanfs/node/-/node-0.16.8.tgz", + "integrity": "sha512-gE1eQNZ3R++kTzFUpdGlpmy8kDZD/MLyHqDwqjkVQI0JMdI1D51sy1H958PNXYkM2rAac7e5/CnIKZrHtPh3BQ==", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "@humanfs/core": "^0.19.2", + "@humanfs/types": "^0.15.0", + "@humanwhocodes/retry": "^0.4.0" + }, + "engines": { + "node": ">=18.18.0" + } + }, + "node_modules/@humanfs/types": { + "version": "0.15.0", + "resolved": "https://registry.npmjs.org/@humanfs/types/-/types-0.15.0.tgz", + "integrity": "sha512-ZZ1w0aoQkwuUuC7Yf+7sdeaNfqQiiLcSRbfI08oAxqLtpXQr9AIVX7Ay7HLDuiLYAaFPu8oBYNq/QIi9URHJ3Q==", + "dev": true, + "license": "Apache-2.0", + "engines": { + "node": ">=18.18.0" + } + }, + "node_modules/@humanwhocodes/module-importer": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@humanwhocodes/module-importer/-/module-importer-1.0.1.tgz", + "integrity": "sha512-bxveV4V8v5Yb4ncFTT3rPSgZBOpCkjfK0y4oVVVJwIuDVBRMDXrPyXRL988i5ap9m9bnyEEjWfm5WkBmtffLfA==", + "dev": true, + "license": "Apache-2.0", + "engines": { + "node": ">=12.22" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/nzakas" + } + }, + "node_modules/@humanwhocodes/retry": { + "version": "0.4.3", + "resolved": "https://registry.npmjs.org/@humanwhocodes/retry/-/retry-0.4.3.tgz", + "integrity": "sha512-bV0Tgo9K4hfPCek+aMAn81RppFKv2ySDQeMoSZuvTASywNTnVJCArCZE2FWqpvIatKu7VMRLWlR1EazvVhDyhQ==", + "dev": true, + "license": "Apache-2.0", + "engines": { + "node": ">=18.18" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/nzakas" + } + }, + "node_modules/@iconify/types": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/@iconify/types/-/types-2.0.0.tgz", + "integrity": "sha512-+wluvCrRhXrhyOmRDJ3q8mux9JkKy5SJ/v8ol2tu4FVjyYvtEzkc/3pK15ET6RKg4b4w4BmTk1+gsCUhf21Ykg==", + "license": "MIT" + }, + "node_modules/@iconify/utils": { + "version": "3.1.7", + "resolved": "https://registry.npmjs.org/@iconify/utils/-/utils-3.1.7.tgz", + "integrity": "sha512-JZHlwdID+dy+lTgbYC8NEC4zeugqeYsc6jewvzb4c58kHauJn+X7rNwQjxz5p2qSjqaEeQoLkCIQ9v/H4PK0/w==", + "license": "MIT", + "dependencies": { + "@antfu/install-pkg": "^2.0.1", + "@iconify/types": "^2.0.0", + "import-meta-resolve": "^4.2.0" + } + }, + "node_modules/@isaacs/cliui": { + "version": "8.0.2", + "resolved": "https://registry.npmjs.org/@isaacs/cliui/-/cliui-8.0.2.tgz", + "integrity": "sha512-O8jcjabXaleOG9DQ0+ARXWZBTfnP4WNAqzuiJK7ll44AmxGKv/J2M4TPjxjY3znBCfvBXFzucm1twdyFybFqEA==", + "dev": true, + "license": "ISC", + "dependencies": { + "string-width": "^5.1.2", + "string-width-cjs": "npm:string-width@^4.2.0", + "strip-ansi": "^7.0.1", + "strip-ansi-cjs": "npm:strip-ansi@^6.0.1", + "wrap-ansi": "^8.1.0", + "wrap-ansi-cjs": "npm:wrap-ansi@^7.0.0" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/@isaacs/cliui/node_modules/ansi-regex": { + "version": "6.3.0", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-6.3.0.tgz", + "integrity": "sha512-WpDfL7NO6j7tH88IDBNVdUJxDh9nmCteAVW9dsep846XdwF4naCBK+/tGLX3KJgcpgMRXCFlTM2hKGoK9FsdrQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/chalk/ansi-regex?sponsor=1" + } + }, + "node_modules/@isaacs/cliui/node_modules/ansi-styles": { + "version": "6.2.3", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-6.2.3.tgz", + "integrity": "sha512-4Dj6M28JB+oAH8kFkTLUo+a2jwOFkuqb3yucU0CANcRRUbxS0cP0nZYCGjcc3BNXwRIsUVmDGgzawme7zvJHvg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/@isaacs/cliui/node_modules/emoji-regex": { + "version": "9.2.2", + "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-9.2.2.tgz", + "integrity": "sha512-L18DaJsXSUk2+42pv8mLs5jJT2hqFkFE4j21wOmgbUqsZ2hL72NsUU785g9RXgo3s0ZNgVl42TiHp3ZtOv/Vyg==", + "dev": true, + "license": "MIT" + }, + "node_modules/@isaacs/cliui/node_modules/string-width": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-5.1.2.tgz", + "integrity": "sha512-HnLOCR3vjcY8beoNLtcjZ5/nxn2afmME6lhrDrebokqMap+XbeW8n9TXpPDOqdGK5qcI3oT0GKTW6wC7EMiVqA==", + "dev": true, + "license": "MIT", + "dependencies": { + "eastasianwidth": "^0.2.0", + "emoji-regex": "^9.2.2", + "strip-ansi": "^7.0.1" + }, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/@isaacs/cliui/node_modules/strip-ansi": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-7.2.0.tgz", + "integrity": "sha512-yDPMNjp4WyfYBkHnjIRLfca1i6KMyGCtsVgoKe/z1+6vukgaENdgGBZt+ZmKPc4gavvEZ5OgHfHdrazhgNyG7w==", + "dev": true, + "license": "MIT", + "dependencies": { + "ansi-regex": "^6.2.2" + }, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/chalk/strip-ansi?sponsor=1" + } + }, + "node_modules/@isaacs/cliui/node_modules/wrap-ansi": { + "version": "8.1.0", + "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-8.1.0.tgz", + "integrity": "sha512-si7QWI6zUMq56bESFvagtmzMdGOtoxfR+Sez11Mobfc7tm+VkUckk9bW2UeffTGVUbOksxmSw0AA2gs8g71NCQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "ansi-styles": "^6.1.0", + "string-width": "^5.0.1", + "strip-ansi": "^7.0.1" + }, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/chalk/wrap-ansi?sponsor=1" + } + }, + "node_modules/@istanbuljs/load-nyc-config": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@istanbuljs/load-nyc-config/-/load-nyc-config-1.1.0.tgz", + "integrity": "sha512-VjeHSlIzpv/NyD3N0YuHfXOPDIixcA1q2ZV98wsMqcYlPmv2n3Yb2lYP9XMElnaFVXg5A7YLTeLu6V84uQDjmQ==", + "dev": true, + "license": "ISC", + "dependencies": { + "camelcase": "^5.3.1", + "find-up": "^4.1.0", + "get-package-type": "^0.1.0", + "js-yaml": "^3.13.1", + "resolve-from": "^5.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/@istanbuljs/schema": { + "version": "0.1.6", + "resolved": "https://registry.npmjs.org/@istanbuljs/schema/-/schema-0.1.6.tgz", + "integrity": "sha512-+Sg6GCR/wy1oSmQDFq4LQDAhm3ETKnorxN+y5nbLULOR3P0c14f2Wurzj3/xqPXtasLFfHd5iRFQ7AJt4KH2cw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/@jest/console": { + "version": "30.5.1", + "resolved": "https://registry.npmjs.org/@jest/console/-/console-30.5.1.tgz", + "integrity": "sha512-u5Ncuc+gXVUwjNMFQOnphHo2Qx2DxyC8Dvpmf4HCx4y0kvSkRRNiQYRixrvOP4V7y52JcSuNxqochCt0PpdHVg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jest/types": "30.5.1", + "@types/node": "*", + "chalk": "^4.1.2", + "jest-message-util": "30.5.1", + "jest-util": "30.5.1", + "slash": "^3.0.0" + }, + "engines": { + "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0" + } + }, + "node_modules/@jest/core": { + "version": "30.5.1", + "resolved": "https://registry.npmjs.org/@jest/core/-/core-30.5.1.tgz", + "integrity": "sha512-BL9g6CJUUhIbdoAflz/Va658erSSXUIvU8XUYiWNTbZljJjZ5yaC9EJ9/dQ19rpbYV3ZOK4sBACqhPaTyhoUIA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jest/console": "30.5.1", + "@jest/pattern": "30.5.0", + "@jest/reporters": "30.5.1", + "@jest/test-result": "30.5.1", + "@jest/transform": "30.5.1", + "@jest/types": "30.5.1", + "@types/node": "*", + "ansi-escapes": "^4.3.2", + "chalk": "^4.1.2", + "ci-info": "^4.2.0", + "exit-x": "^0.2.2", + "fast-json-stable-stringify": "^2.1.0", + "graceful-fs": "^4.2.11", + "jest-changed-files": "30.5.1", + "jest-config": "30.5.1", + "jest-haste-map": "30.5.1", + "jest-message-util": "30.5.1", + "jest-regex-util": "30.5.0", + "jest-resolve": "30.5.1", + "jest-resolve-dependencies": "30.5.1", + "jest-runner": "30.5.1", + "jest-runtime": "30.5.1", + "jest-snapshot": "30.5.1", + "jest-util": "30.5.1", + "jest-validate": "30.5.1", + "jest-watcher": "30.5.1", + "pretty-format": "30.5.1", + "slash": "^3.0.0" + }, + "engines": { + "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0" + }, + "peerDependencies": { + "node-notifier": "^8.0.1 || ^9.0.0 || ^10.0.0" + }, + "peerDependenciesMeta": { + "node-notifier": { + "optional": true + } + } + }, + "node_modules/@jest/core/node_modules/ansi-styles": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-5.2.0.tgz", + "integrity": "sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/@jest/core/node_modules/pretty-format": { + "version": "30.5.1", + "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-30.5.1.tgz", + "integrity": "sha512-byhRAPguVKMQIj4kjJwJ5lAskVhfuiSdiYl/aLTWpgkGEmic2jYhJh1yE9ih8Ox44Xg9ccCT11/S6QrzSJuNrg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jest/react-is-18": "npm:react-is@^18.3.1", + "@jest/react-is-19": "npm:react-is@^19.2.5", + "@jest/schemas": "30.5.0", + "ansi-styles": "^5.2.0" + }, + "engines": { + "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0" + } + }, + "node_modules/@jest/diff-sequences": { + "version": "30.5.0", + "resolved": "https://registry.npmjs.org/@jest/diff-sequences/-/diff-sequences-30.5.0.tgz", + "integrity": "sha512-OsqBjHXCn8cadasoAZBP6nWYvMsRhpMzGXTpxJ5aO04NlbdhIz+FVe3q49l0AwVhsz/cEmIpBes6gAFl1/dWQg==", + "dev": true, + "license": "MIT", + "engines": { + "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0" + } + }, + "node_modules/@jest/environment": { + "version": "30.5.1", + "resolved": "https://registry.npmjs.org/@jest/environment/-/environment-30.5.1.tgz", + "integrity": "sha512-eYJAkOsrpwDXPcoLNEG6lN9Zo3Cy35pxnVQD74vyIfsi/Q8wB/lZFsEjU4wrecOgT4ZviQDZaX/cFIJyMdMxTw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jest/fake-timers": "30.5.1", + "@jest/types": "30.5.1", + "@types/node": "*", + "jest-mock": "30.5.1" + }, + "engines": { + "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0" + } + }, + "node_modules/@jest/environment-jsdom-abstract": { + "version": "30.5.1", + "resolved": "https://registry.npmjs.org/@jest/environment-jsdom-abstract/-/environment-jsdom-abstract-30.5.1.tgz", + "integrity": "sha512-J395vmP3Fb2Te0JmF7pe4si4jpfbXef1YsY4UpHYL6OOxS2molu9Dsie1VmIiUalXdtmz1P5QRgc+5hBD+ssBg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jest/environment": "30.5.1", + "@jest/fake-timers": "30.5.1", + "@jest/types": "30.5.1", + "@types/node": "*", + "jest-mock": "30.5.1", + "jest-util": "30.5.1" + }, + "engines": { + "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0" + }, + "peerDependencies": { + "@types/jsdom": "*", + "canvas": "^3.0.0", + "jsdom": "*" + }, + "peerDependenciesMeta": { + "canvas": { + "optional": true + } + } + }, + "node_modules/@jest/expect": { + "version": "30.5.1", + "resolved": "https://registry.npmjs.org/@jest/expect/-/expect-30.5.1.tgz", + "integrity": "sha512-uOGd40P/COyUp9xHf5jeGiGJC2/ANg+2+Tk9/xN5/LxmlY/r/gxsPrx3DTEtaRZsLAX4wgNSLEDELZ5bmVs2bA==", + "dev": true, + "license": "MIT", + "dependencies": { + "expect": "30.5.1", + "jest-snapshot": "30.5.1" + }, + "engines": { + "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0" + } + }, + "node_modules/@jest/expect-utils": { + "version": "30.5.1", + "resolved": "https://registry.npmjs.org/@jest/expect-utils/-/expect-utils-30.5.1.tgz", + "integrity": "sha512-WcRWhHQdTMRDpyWKZ/6MINBmovI7zeD+bL8wFjCncRV3NQOwKy1X45IfyblfHR4k/XciIlNEdFL9QjFO+HNKOg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jest/get-type": "30.5.0" + }, + "engines": { + "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0" + } + }, + "node_modules/@jest/fake-timers": { + "version": "30.5.1", + "resolved": "https://registry.npmjs.org/@jest/fake-timers/-/fake-timers-30.5.1.tgz", + "integrity": "sha512-rEkV6YzpBXo/L9cnj2ibyuYZuyGiNWaPUsyCu3HYJbqCV4jnEiKmf7hId20z8eKjZ0JQ9jtIYKxRSmYB/OYSsA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jest/types": "30.5.1", + "@sinonjs/fake-timers": "^15.4.0", + "@types/node": "*", + "jest-message-util": "30.5.1", + "jest-mock": "30.5.1", + "jest-util": "30.5.1" + }, + "engines": { + "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0" + } + }, + "node_modules/@jest/get-type": { + "version": "30.5.0", + "resolved": "https://registry.npmjs.org/@jest/get-type/-/get-type-30.5.0.tgz", + "integrity": "sha512-9/2VUPitAjmBzbvDvqrxmvB7BzWsBW0WmkkojX1ODuxX1NLGxx9gfaZpHB0z8DtJ9uhGNmZG/VXBhf8uO0OV8Q==", + "dev": true, + "license": "MIT", + "engines": { + "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0" + } + }, + "node_modules/@jest/globals": { + "version": "30.5.1", + "resolved": "https://registry.npmjs.org/@jest/globals/-/globals-30.5.1.tgz", + "integrity": "sha512-VhqvQ251XIC7pk46YymI3HCeBLOdvriDw9zibekodAHEwoVvbVVgpU5H13GvmyOAzxtZCfsm1uvzqkaqJf2I+g==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jest/environment": "30.5.1", + "@jest/expect": "30.5.1", + "@jest/types": "30.5.1", + "jest-mock": "30.5.1" + }, + "engines": { + "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0" + } + }, + "node_modules/@jest/pattern": { + "version": "30.5.0", + "resolved": "https://registry.npmjs.org/@jest/pattern/-/pattern-30.5.0.tgz", + "integrity": "sha512-HdNQYSdRTEBNrginaqzQtTjG0HRMfrra/z6Ok7uL3S87vSlarIVohEsJsSj5edu3MiHoHjAkvPROz5ZjoKai+w==", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/node": "*", + "jest-regex-util": "30.5.0" + }, + "engines": { + "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0" + } + }, + "node_modules/@jest/react-is-18": { + "name": "react-is", + "version": "18.3.1", + "resolved": "https://registry.npmjs.org/react-is/-/react-is-18.3.1.tgz", + "integrity": "sha512-/LLMVyas0ljjAtoYiPqYiL8VWXzUUdThrmU5+n20DZv+a+ClRoevUzw5JxU+Ieh5/c87ytoTBV9G1FiKfNJdmg==", + "dev": true, + "license": "MIT" + }, + "node_modules/@jest/react-is-19": { + "name": "react-is", + "version": "19.3.0", + "resolved": "https://registry.npmjs.org/react-is/-/react-is-19.3.0.tgz", + "integrity": "sha512-UpMYezM4v5/18F28aC66AEsjXIgE02kyEMH6yLdgLXu/UTfa1Ntwck/nNLrbqJsEXW7gPb0coNO9FQse9WTovA==", + "dev": true, + "license": "MIT" + }, + "node_modules/@jest/reporters": { + "version": "30.5.1", + "resolved": "https://registry.npmjs.org/@jest/reporters/-/reporters-30.5.1.tgz", + "integrity": "sha512-RbUXIfv85KxitJn4l3MpAoMilkvXe2QCO5lXxHWftywo/VdZ5vkEoHRDgphcxP6qmoIkUaN8/UZj6NhdkIFdJg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@bcoe/v8-coverage": "^0.2.3", + "@jest/console": "30.5.1", + "@jest/test-result": "30.5.1", + "@jest/transform": "30.5.1", + "@jest/types": "30.5.1", + "@jridgewell/trace-mapping": "^0.3.31", + "@types/node": "*", + "chalk": "^4.1.2", + "collect-v8-coverage": "^1.0.2", + "exit-x": "^0.2.2", + "glob": "^13.0.6", + "graceful-fs": "^4.2.11", + "istanbul-lib-coverage": "^3.0.0", + "istanbul-lib-instrument": "^6.0.0", + "istanbul-lib-report": "^3.0.0", + "istanbul-lib-source-maps": "^5.0.0", + "istanbul-reports": "^3.1.3", + "jest-message-util": "30.5.1", + "jest-util": "30.5.1", + "jest-worker": "30.5.1", + "slash": "^3.0.0", + "string-length": "^4.0.2", + "v8-to-istanbul": "^9.0.1" + }, + "engines": { + "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0" + }, + "peerDependencies": { + "node-notifier": "^8.0.1 || ^9.0.0 || ^10.0.0" + }, + "peerDependenciesMeta": { + "node-notifier": { + "optional": true + } + } + }, + "node_modules/@jest/schemas": { + "version": "30.5.0", + "resolved": "https://registry.npmjs.org/@jest/schemas/-/schemas-30.5.0.tgz", + "integrity": "sha512-/hunigyNpc4RCjC0VaW3f5RCUZVM2+WQ65qP7z083Gmvac7or2LI50XVNOtE4YPgBpV0yxYiAgorAPGniCoJmg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@sinclair/typebox": "^0.34.0" + }, + "engines": { + "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0" + } + }, + "node_modules/@jest/snapshot-utils": { + "version": "30.5.1", + "resolved": "https://registry.npmjs.org/@jest/snapshot-utils/-/snapshot-utils-30.5.1.tgz", + "integrity": "sha512-V3wnxNtiVmw5PPVg433Cn3VdXnsOeu/ofLw3KC04Bn2y1wIlU5kozXQn48rhrgj/02LrCVtntTEF1yBha0XSUw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jest/types": "30.5.1", + "chalk": "^4.1.2", + "graceful-fs": "^4.2.11", + "natural-compare": "^1.4.0" + }, + "engines": { + "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0" + } + }, + "node_modules/@jest/source-map": { + "version": "30.5.0", + "resolved": "https://registry.npmjs.org/@jest/source-map/-/source-map-30.5.0.tgz", + "integrity": "sha512-xWpTJP9D0bDFGbPGT8XuWSwwha/iHADyyKzUnMx4UbdgnHugxrDaQFO4RZ8x4ZsFzRP6pNii8uvlgKCDxCIuDg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jridgewell/trace-mapping": "^0.3.31", + "callsites": "^3.1.0", + "convert-source-map": "^2.0.0", + "graceful-fs": "^4.2.11" + }, + "engines": { + "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0" + } + }, + "node_modules/@jest/test-result": { + "version": "30.5.1", + "resolved": "https://registry.npmjs.org/@jest/test-result/-/test-result-30.5.1.tgz", + "integrity": "sha512-A/1S6ZBdpic50E0pxLgvaB9XNPL4k7AksmG69OO2oiotxciWZwHkbOec+qbIi+uUtIIByOVlXJUl97oZUsz+Jw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jest/console": "30.5.1", + "@jest/types": "30.5.1", + "@types/istanbul-lib-coverage": "^2.0.6", + "collect-v8-coverage": "^1.0.2" + }, + "engines": { + "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0" + } + }, + "node_modules/@jest/test-sequencer": { + "version": "30.5.1", + "resolved": "https://registry.npmjs.org/@jest/test-sequencer/-/test-sequencer-30.5.1.tgz", + "integrity": "sha512-SHcPnrjdVRYJv6y6l4JUTy4Jccu7zmO6BmiOfOA34UiVBto22s19WiDC0A/2qfM7MWB/qdcoqfSIRMitpjTT4A==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jest/test-result": "30.5.1", + "graceful-fs": "^4.2.11", + "jest-haste-map": "30.5.1", + "slash": "^3.0.0" + }, + "engines": { + "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0" + } + }, + "node_modules/@jest/transform": { + "version": "30.5.1", + "resolved": "https://registry.npmjs.org/@jest/transform/-/transform-30.5.1.tgz", + "integrity": "sha512-EDnDhn0jleU9ZhpVoA4gvqw+Ev0iw/r5upNT2b79RiwiaTiYAMMhvNJP3lmocjIe5J2ZkoNr0B3K/J6O5GIm4Q==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/core": "^7.27.4", + "@jest/types": "30.5.1", + "@jridgewell/trace-mapping": "^0.3.31", + "babel-plugin-istanbul": "^8.0.0", + "chalk": "^4.1.2", + "convert-source-map": "^2.0.0", + "fast-json-stable-stringify": "^2.1.0", + "graceful-fs": "^4.2.11", + "jest-haste-map": "30.5.1", + "jest-regex-util": "30.5.0", + "jest-util": "30.5.1", + "pirates": "^4.0.7", + "slash": "^3.0.0", + "write-file-atomic": "^5.0.1" + }, + "engines": { + "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0" + } + }, + "node_modules/@jest/types": { + "version": "30.5.1", + "resolved": "https://registry.npmjs.org/@jest/types/-/types-30.5.1.tgz", + "integrity": "sha512-LvVYn83nnXPl+Rg98nvcFgjx6nRMTArhSn6RAX/w3ELn54S8A42TYZvsCMdGUqTM8S0wyXbtlQdU6Hi6dykj9g==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jest/pattern": "30.5.0", + "@jest/schemas": "30.5.0", + "@types/istanbul-lib-coverage": "^2.0.6", + "@types/istanbul-reports": "^3.0.4", + "@types/node": "*", + "@types/yargs": "^17.0.33", + "chalk": "^4.1.2" + }, + "engines": { + "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0" + } + }, + "node_modules/@jridgewell/gen-mapping": { + "version": "0.3.13", + "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.13.tgz", + "integrity": "sha512-2kkt/7niJ6MgEPxF0bYdQ6etZaA+fQvDcLKckhy1yIQOzaoKjBBjSj63/aLVjYE3qhRt5dvM+uUyfCg6UKCBbA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jridgewell/sourcemap-codec": "^1.5.0", + "@jridgewell/trace-mapping": "^0.3.24" + } + }, + "node_modules/@jridgewell/remapping": { + "version": "2.3.5", + "resolved": "https://registry.npmjs.org/@jridgewell/remapping/-/remapping-2.3.5.tgz", + "integrity": "sha512-LI9u/+laYG4Ds1TDKSJW2YPrIlcVYOwi2fUC6xB43lueCjgxV4lffOCZCtYFiH6TNOX+tQKXx97T4IKHbhyHEQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jridgewell/gen-mapping": "^0.3.5", + "@jridgewell/trace-mapping": "^0.3.24" + } + }, + "node_modules/@jridgewell/resolve-uri": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.2.tgz", + "integrity": "sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@jridgewell/sourcemap-codec": { + "version": "1.6.0", + "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.6.0.tgz", + "integrity": "sha512-T7jf+5zgsZHwNJ4lvQ7/aezbyk0nNX+zJVWpmHA7VYsEx7a7qr5Rg5IbtJFqkgze5Y2sruq1RUY8Q837Od7iFw==", + "dev": true, + "license": "MIT" + }, + "node_modules/@jridgewell/trace-mapping": { + "version": "0.3.31", + "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.31.tgz", + "integrity": "sha512-zzNR+SdQSDJzc8joaeP8QQoCQr8NuYx2dIIytl1QeBEZHJ9uW6hebsrYgbz8hJwUQao3TWCMtmfV8Nu1twOLAw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jridgewell/resolve-uri": "^3.1.0", + "@jridgewell/sourcemap-codec": "^1.4.14" + } + }, + "node_modules/@keyv/bigmap": { + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/@keyv/bigmap/-/bigmap-1.3.1.tgz", + "integrity": "sha512-WbzE9sdmQtKy8vrNPa9BRnwZh5UF4s1KTmSK0KUVLo3eff5BlQNNWDnFOouNpKfPKDnms9xynJjsMYjMaT/aFQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "hashery": "^1.4.0", + "hookified": "^1.15.0" + }, + "engines": { + "node": ">= 18" + }, + "peerDependencies": { + "keyv": "^5.6.0" + } + }, + "node_modules/@keyv/serialize": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/@keyv/serialize/-/serialize-1.1.1.tgz", + "integrity": "sha512-dXn3FZhPv0US+7dtJsIi2R+c7qWYiReoEh5zUntWCf4oSpMNib8FDhSoed6m3QyZdx5hK7iLFkYk3rNxwt8vTA==", + "dev": true, + "license": "MIT" + }, + "node_modules/@mermaid-js/parser": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/@mermaid-js/parser/-/parser-2.0.0.tgz", + "integrity": "sha512-K8BeapFUfrfxbRAUQAG5oBOCwo1+bNWzaVnPxTCutkfrTBn6T/j91FIhqxWJ32SUeQ9T3iy1zcmPZ5ROZEvDrg==", + "license": "MIT", + "dependencies": { + "@chevrotain/types": "~11.1.2" + }, + "engines": { + "node": ">=22.12.0" + } + }, + "node_modules/@napi-rs/wasm-runtime": { + "version": "1.2.4", + "resolved": "https://registry.npmjs.org/@napi-rs/wasm-runtime/-/wasm-runtime-1.2.4.tgz", + "integrity": "sha512-AJxoUD2/15ESHbvpcyjU274nsAPLuOtPHCk0vKJM5pj//Fg/B1FXNWjPnXTT9PymCYYiHo4zPj0ZomXBKhoy7g==", + "dev": true, + "license": "MIT", + "optional": true, + "dependencies": { + "@tybys/wasm-util": "^0.10.3" + }, + "engines": { + "node": "^20.19.0 || ^22.13.0 || >=23.5.0" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/Brooooooklyn" + }, + "peerDependencies": { + "@emnapi/core": "^1.7.1 || ^2.0.0-alpha.4", + "@emnapi/runtime": "^1.7.1 || ^2.0.0-alpha.4" + } + }, + "node_modules/@parcel/watcher": { + "version": "2.6.0", + "resolved": "https://registry.npmjs.org/@parcel/watcher/-/watcher-2.6.0.tgz", + "integrity": "sha512-7FNeNl8NCE7aINx7WXiKQrPYZWC/hvrTsmk6zmxbI7LTXE7hVek/n8AfVgpe2y82zl3w0HvCHN0bVKMBoJcC0w==", + "dev": true, + "hasInstallScript": true, + "license": "MIT", + "dependencies": { + "detect-libc": "^2.0.3", + "is-glob": "^4.0.3", + "node-addon-api": "^7.0.0", + "picomatch": "^4.0.4" + }, + "engines": { + "node": ">= 10.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + }, + "optionalDependencies": { + "@parcel/watcher-android-arm64": "2.6.0", + "@parcel/watcher-darwin-arm64": "2.6.0", + "@parcel/watcher-darwin-x64": "2.6.0", + "@parcel/watcher-freebsd-x64": "2.6.0", + "@parcel/watcher-linux-arm-glibc": "2.6.0", + "@parcel/watcher-linux-arm-musl": "2.6.0", + "@parcel/watcher-linux-arm64-glibc": "2.6.0", + "@parcel/watcher-linux-arm64-musl": "2.6.0", + "@parcel/watcher-linux-x64-glibc": "2.6.0", + "@parcel/watcher-linux-x64-musl": "2.6.0", + "@parcel/watcher-win32-arm64": "2.6.0", + "@parcel/watcher-win32-x64": "2.6.0" + } + }, + "node_modules/@parcel/watcher-android-arm64": { + "version": "2.6.0", + "resolved": "https://registry.npmjs.org/@parcel/watcher-android-arm64/-/watcher-android-arm64-2.6.0.tgz", + "integrity": "sha512-trgpLSCKRC/huFjXX/Smh+0sWe4+YtKfktIToiMl59ghz7z+qkH6kMvNnUbLyRs9N11t8l4svSCs1+5B3rOAhA==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">= 10.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/@parcel/watcher-darwin-arm64": { + "version": "2.6.0", + "resolved": "https://registry.npmjs.org/@parcel/watcher-darwin-arm64/-/watcher-darwin-arm64-2.6.0.tgz", + "integrity": "sha512-Y3QV0gl7Q1zbfueunkWIERICbEojQFCgpyG7YqOGNFLsckXyI1xu9mAIUpKY9QBYzBtSkN8dBPwd3yiAO9ovMw==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">= 10.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/@parcel/watcher-darwin-x64": { + "version": "2.6.0", + "resolved": "https://registry.npmjs.org/@parcel/watcher-darwin-x64/-/watcher-darwin-x64-2.6.0.tgz", + "integrity": "sha512-Ohv6OpzhUfKYD7Beb8kDvG0jbIxORCYY1JRdZnaBtnjjkJxgD7ZVL0nw2sCYd0yTMKTvz3nnTnOF3cDifK+kvw==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">= 10.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/@parcel/watcher-freebsd-x64": { + "version": "2.6.0", + "resolved": "https://registry.npmjs.org/@parcel/watcher-freebsd-x64/-/watcher-freebsd-x64-2.6.0.tgz", + "integrity": "sha512-5HmXvDgs8VK+74jF9y9/2FE3/OnlcKmc56tjmSrEuZjpSZOGL+fvAu+HKJBdPs9uwoP2hE6TlSUpXZ/C5jUFmQ==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "freebsd" + ], + "engines": { + "node": ">= 10.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/@parcel/watcher-linux-arm-glibc": { + "version": "2.6.0", + "resolved": "https://registry.npmjs.org/@parcel/watcher-linux-arm-glibc/-/watcher-linux-arm-glibc-2.6.0.tgz", + "integrity": "sha512-Ps/hui3A+vMbjdqlqAowK2ZL8+BO8dBjxeWXj6npTBs3jx4wWmbPpaLuqwrQrSqIVMCnpWo238bJ1U37GhQOYg==", + "cpu": [ + "arm" + ], + "dev": true, + "libc": [ + "glibc" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 10.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/@parcel/watcher-linux-arm-musl": { + "version": "2.6.0", + "resolved": "https://registry.npmjs.org/@parcel/watcher-linux-arm-musl/-/watcher-linux-arm-musl-2.6.0.tgz", + "integrity": "sha512-9c6AUHgHoG+IY88MRIHupztQiQnrbqHYQjkM2btA+Bf/wQnQMuiD0Wfk1EVv3TlNT3x41uU71rn6E4xh/+zvkw==", + "cpu": [ + "arm" + ], + "dev": true, + "libc": [ + "musl" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 10.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/@parcel/watcher-linux-arm64-glibc": { + "version": "2.6.0", + "resolved": "https://registry.npmjs.org/@parcel/watcher-linux-arm64-glibc/-/watcher-linux-arm64-glibc-2.6.0.tgz", + "integrity": "sha512-yHRqS2owEXe6Hic9z6Mh1ECsCd+ODVOGvZDyciqRd21+v+o+DnXMOrw50DSpIG2sb8GPEaPPmfeCAWKPJdq46g==", + "cpu": [ + "arm64" + ], + "dev": true, + "libc": [ + "glibc" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 10.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/@parcel/watcher-linux-arm64-musl": { + "version": "2.6.0", + "resolved": "https://registry.npmjs.org/@parcel/watcher-linux-arm64-musl/-/watcher-linux-arm64-musl-2.6.0.tgz", + "integrity": "sha512-WhB2e/V7rqdHHWZusBSPuy5Ei8S6lSz6FE5TKKQz5h3a0O+C+mhY7vxU9b/stqvMb8beLnPY82ZrFTLKs+SrKA==", + "cpu": [ + "arm64" + ], + "dev": true, + "libc": [ + "musl" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 10.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/@parcel/watcher-linux-x64-glibc": { + "version": "2.6.0", + "resolved": "https://registry.npmjs.org/@parcel/watcher-linux-x64-glibc/-/watcher-linux-x64-glibc-2.6.0.tgz", + "integrity": "sha512-ulGE6x6Oz6iAwg75T8YQSoguBWasniIbX+QWpaYPcCnDOpdWX3k+4xbEYPZVLxOuoJI+svJJPD3sEj8G7lrQ3A==", + "cpu": [ + "x64" + ], + "dev": true, + "libc": [ + "glibc" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 10.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/@parcel/watcher-linux-x64-musl": { + "version": "2.6.0", + "resolved": "https://registry.npmjs.org/@parcel/watcher-linux-x64-musl/-/watcher-linux-x64-musl-2.6.0.tgz", + "integrity": "sha512-tkBYKt7YQrjIJWYDnto2YgO8MRkjlMTSNoRHzsXinBqbLdeOM3L32wPZJvIZxqaLMfSlS/4sUjH/6STVP/XDLw==", + "cpu": [ + "x64" + ], + "dev": true, + "libc": [ + "musl" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 10.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/@parcel/watcher-win32-arm64": { + "version": "2.6.0", + "resolved": "https://registry.npmjs.org/@parcel/watcher-win32-arm64/-/watcher-win32-arm64-2.6.0.tgz", + "integrity": "sha512-gIZAP23jaHjGWasY/TY6yL7NHFClf0Ga7FN+iINvk+KN94rhm94lYZhFsbYFNcA04/onvGD9kKmiJLJB2HbNwQ==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">= 10.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/@parcel/watcher-win32-x64": { + "version": "2.6.0", + "resolved": "https://registry.npmjs.org/@parcel/watcher-win32-x64/-/watcher-win32-x64-2.6.0.tgz", + "integrity": "sha512-cA+/pXV2YkfxlIcXOQ5fSWqAzzPyD78/x5qbK/I0vUkrlYHA8TIz+MXjAbGouguKVSI4bOmkTSJ1/poVSsgt+A==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">= 10.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/@pkgjs/parseargs": { + "version": "0.11.0", + "resolved": "https://registry.npmjs.org/@pkgjs/parseargs/-/parseargs-0.11.0.tgz", + "integrity": "sha512-+1VkjdD0QBLPodGrJUeqarH8VAIvQODIbwh9XpP5Syisf7YoQgsJKPNFoqqLQlu+VQ/tVSshMR6loPMn8U+dPg==", + "dev": true, + "license": "MIT", + "optional": true, + "engines": { + "node": ">=14" + } + }, + "node_modules/@pkgr/core": { + "version": "0.3.6", + "resolved": "https://registry.npmjs.org/@pkgr/core/-/core-0.3.6.tgz", + "integrity": "sha512-SEeaJLb3qBNF/OaXnaR1NmmBbFYk1zC0ZH/52fATcRPLFg/p791YrcyFFy44Bo9sLaGuSuLp5Q6axbb/O+v/RA==", + "dev": true, + "license": "MIT", + "engines": { + "node": "^14.18.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/pkgr" + } + }, + "node_modules/@playwright/test": { + "version": "1.63.0", + "resolved": "https://registry.npmjs.org/@playwright/test/-/test-1.63.0.tgz", + "integrity": "sha512-oxMK4vllB9RK5NQ2l1pq1IfOf2AvnEuj/vYGDj0H2nMtmtZpKtCwt/l00GEO6xjGfpBNAvjovvYdCm50dRQkpQ==", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "playwright": "1.63.0" + }, + "bin": { + "playwright": "cli.js" + }, + "engines": { + "node": ">=20" + } + }, + "node_modules/@sinclair/typebox": { + "version": "0.34.52", + "resolved": "https://registry.npmjs.org/@sinclair/typebox/-/typebox-0.34.52.tgz", + "integrity": "sha512-XiMQh7qqVlxZzcVD+kkGMNGMzcTrDMLWI7S4x7z1MkCkbDPrekpZXEUK0eZqZFMuHQg2a2DZOcDIh9o5v3Gonw==", + "dev": true, + "license": "MIT" + }, + "node_modules/@sinonjs/commons": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/@sinonjs/commons/-/commons-3.0.1.tgz", + "integrity": "sha512-K3mCHKQ9sVh8o1C9cxkwxaOmXoAMlDxC1mYyHrjqOWEcBjYr76t96zL2zlj5dUGZ3HSw240X1qgH3Mjf1yJWpQ==", + "dev": true, + "license": "BSD-3-Clause", + "dependencies": { + "type-detect": "4.0.8" + } + }, + "node_modules/@sinonjs/fake-timers": { + "version": "15.4.0", + "resolved": "https://registry.npmjs.org/@sinonjs/fake-timers/-/fake-timers-15.4.0.tgz", + "integrity": "sha512-DsG+8/LscQIQg68J6Ef3dv10u6nVyetYn923s3/sus5eaGfTo1of5WMZSLf0UJc9KDuKPilPH0UDJCjvNbDNCA==", + "dev": true, + "license": "BSD-3-Clause", + "dependencies": { + "@sinonjs/commons": "^3.0.1" + } + }, + "node_modules/@testing-library/dom": { + "version": "10.4.1", + "resolved": "https://registry.npmjs.org/@testing-library/dom/-/dom-10.4.1.tgz", + "integrity": "sha512-o4PXJQidqJl82ckFaXUeoAW+XysPLauYI43Abki5hABd853iMhitooc6znOnczgbTYmEP6U6/y1ZyKAIsvMKGg==", + "dev": true, + "license": "MIT", + "peer": true, + "dependencies": { + "@babel/code-frame": "^7.10.4", + "@babel/runtime": "^7.12.5", + "@types/aria-query": "^5.0.1", + "aria-query": "5.3.0", + "dom-accessibility-api": "^0.5.9", + "lz-string": "^1.5.0", + "picocolors": "1.1.1", + "pretty-format": "^27.0.2" + }, + "engines": { + "node": ">=18" + } + }, + "node_modules/@testing-library/jest-dom": { + "version": "6.9.1", + "resolved": "https://registry.npmjs.org/@testing-library/jest-dom/-/jest-dom-6.9.1.tgz", + "integrity": "sha512-zIcONa+hVtVSSep9UT3jZ5rizo2BsxgyDYU7WFD5eICBE7no3881HGeb/QkGfsJs6JTkY1aQhT7rIPC7e+0nnA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@adobe/css-tools": "^4.4.0", + "aria-query": "^5.0.0", + "css.escape": "^1.5.1", + "dom-accessibility-api": "^0.6.3", + "picocolors": "^1.1.1", + "redent": "^3.0.0" + }, + "engines": { + "node": ">=14", + "npm": ">=6", + "yarn": ">=1" + } + }, + "node_modules/@testing-library/jest-dom/node_modules/dom-accessibility-api": { + "version": "0.6.3", + "resolved": "https://registry.npmjs.org/dom-accessibility-api/-/dom-accessibility-api-0.6.3.tgz", + "integrity": "sha512-7ZgogeTnjuHbo+ct10G9Ffp0mif17idi0IyWNVA/wcwcm7NPOD/WEHVP3n7n3MhXqxoIYm8d6MuZohYWIZ4T3w==", + "dev": true, + "license": "MIT" + }, + "node_modules/@testing-library/react": { + "version": "14.3.1", + "resolved": "https://registry.npmjs.org/@testing-library/react/-/react-14.3.1.tgz", + "integrity": "sha512-H99XjUhWQw0lTgyMN05W3xQG1Nh4lq574D8keFf1dDoNTJgp66VbJozRaczoF+wsiaPJNt/TcnfpLGufGxSrZQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/runtime": "^7.12.5", + "@testing-library/dom": "^9.0.0", + "@types/react-dom": "^18.0.0" + }, + "engines": { + "node": ">=14" + }, + "peerDependencies": { + "react": "^18.0.0", + "react-dom": "^18.0.0" + } + }, + "node_modules/@testing-library/react/node_modules/@testing-library/dom": { + "version": "9.3.4", + "resolved": "https://registry.npmjs.org/@testing-library/dom/-/dom-9.3.4.tgz", + "integrity": "sha512-FlS4ZWlp97iiNWig0Muq8p+3rVDjRiYE+YKGbAqXOu9nwJFFOdL00kFpz42M+4huzYi86vAK1sOOfyOG45muIQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/code-frame": "^7.10.4", + "@babel/runtime": "^7.12.5", + "@types/aria-query": "^5.0.1", + "aria-query": "5.1.3", + "chalk": "^4.1.0", + "dom-accessibility-api": "^0.5.9", + "lz-string": "^1.5.0", + "pretty-format": "^27.0.2" + }, + "engines": { + "node": ">=14" + } + }, + "node_modules/@testing-library/react/node_modules/aria-query": { + "version": "5.1.3", + "resolved": "https://registry.npmjs.org/aria-query/-/aria-query-5.1.3.tgz", + "integrity": "sha512-R5iJ5lkuHybztUfuOAznmboyjWq8O6sqNqtK7CLOqdydi54VNbORp49mb14KbWgG1QD3JFO9hJdZ+y4KutfdOQ==", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "deep-equal": "^2.0.5" + } + }, + "node_modules/@testing-library/user-event": { + "version": "14.6.7", + "resolved": "https://registry.npmjs.org/@testing-library/user-event/-/user-event-14.6.7.tgz", + "integrity": "sha512-MPCpX8bxe8zS+JmmTwLp8jd0dy1rAm60Te/SL8JrQM3qvQJcBOs1d7IefJMyZzqM3EWBrDn/LWDt1BCGu4ASfg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=12", + "npm": ">=6" + }, + "peerDependencies": { + "@testing-library/dom": ">=7.21.4" + } + }, + "node_modules/@tybys/wasm-util": { + "version": "0.10.3", + "resolved": "https://registry.npmjs.org/@tybys/wasm-util/-/wasm-util-0.10.3.tgz", + "integrity": "sha512-F3fo1MYrRJYL3zER0OUOmkutjr1Vp23m7OsSgp7nq4SP6OqX6C/56XFIPAl5bt3zaBRjmW7SGz3u/6LwFpYcOg==", + "dev": true, + "license": "MIT", + "optional": true, + "dependencies": { + "tslib": "^2.4.0" + } + }, + "node_modules/@types/aria-query": { + "version": "5.0.4", + "resolved": "https://registry.npmjs.org/@types/aria-query/-/aria-query-5.0.4.tgz", + "integrity": "sha512-rfT93uj5s0PRL7EzccGMs3brplhcrghnDoV26NqKhCAS1hVo+WdNsPvE/yb6ilfr5hi2MEk6d5EWJTKdxg8jVw==", + "dev": true, + "license": "MIT" + }, + "node_modules/@types/babel__core": { + "version": "7.20.5", + "resolved": "https://registry.npmjs.org/@types/babel__core/-/babel__core-7.20.5.tgz", + "integrity": "sha512-qoQprZvz5wQFJwMDqeseRXWv3rqMvhgpbXFfVyWhbx9X47POIA6i/+dXefEmZKoAgOaTdaIgNSMqMIU61yRyzA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/parser": "^7.20.7", + "@babel/types": "^7.20.7", + "@types/babel__generator": "*", + "@types/babel__template": "*", + "@types/babel__traverse": "*" + } + }, + "node_modules/@types/babel__generator": { + "version": "7.27.0", + "resolved": "https://registry.npmjs.org/@types/babel__generator/-/babel__generator-7.27.0.tgz", + "integrity": "sha512-ufFd2Xi92OAVPYsy+P4n7/U7e68fex0+Ee8gSG9KX7eo084CWiQ4sdxktvdl0bOPupXtVJPY19zk6EwWqUQ8lg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/types": "^7.0.0" + } + }, + "node_modules/@types/babel__template": { + "version": "7.4.4", + "resolved": "https://registry.npmjs.org/@types/babel__template/-/babel__template-7.4.4.tgz", + "integrity": "sha512-h/NUaSyG5EyxBIp8YRxo4RMe2/qQgvyowRwVMzhYhBCONbW8PUsg4lkFMrhgZhUe5z3L3MiLDuvyJ/CaPa2A8A==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/parser": "^7.1.0", + "@babel/types": "^7.0.0" + } + }, + "node_modules/@types/babel__traverse": { + "version": "7.28.0", + "resolved": "https://registry.npmjs.org/@types/babel__traverse/-/babel__traverse-7.28.0.tgz", + "integrity": "sha512-8PvcXf70gTDZBgt9ptxJ8elBeBjcLOAcOtoO/mPJjtji1+CdGbHgm77om1GrsPxsiE+uXIpNSK64UYaIwQXd4Q==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/types": "^7.28.2" + } + }, + "node_modules/@types/d3": { + "version": "7.4.3", + "resolved": "https://registry.npmjs.org/@types/d3/-/d3-7.4.3.tgz", + "integrity": "sha512-lZXZ9ckh5R8uiFVt8ogUNf+pIrK4EsWrx2Np75WvF/eTpJ0FMHNhjXk8CKEx/+gpHbNQyJWehbFaTvqmHWB3ww==", + "license": "MIT", + "dependencies": { + "@types/d3-array": "*", + "@types/d3-axis": "*", + "@types/d3-brush": "*", + "@types/d3-chord": "*", + "@types/d3-color": "*", + "@types/d3-contour": "*", + "@types/d3-delaunay": "*", + "@types/d3-dispatch": "*", + "@types/d3-drag": "*", + "@types/d3-dsv": "*", + "@types/d3-ease": "*", + "@types/d3-fetch": "*", + "@types/d3-force": "*", + "@types/d3-format": "*", + "@types/d3-geo": "*", + "@types/d3-hierarchy": "*", + "@types/d3-interpolate": "*", + "@types/d3-path": "*", + "@types/d3-polygon": "*", + "@types/d3-quadtree": "*", + "@types/d3-random": "*", + "@types/d3-scale": "*", + "@types/d3-scale-chromatic": "*", + "@types/d3-selection": "*", + "@types/d3-shape": "*", + "@types/d3-time": "*", + "@types/d3-time-format": "*", + "@types/d3-timer": "*", + "@types/d3-transition": "*", + "@types/d3-zoom": "*" + } + }, + "node_modules/@types/d3-array": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/@types/d3-array/-/d3-array-3.2.2.tgz", + "integrity": "sha512-hOLWVbm7uRza0BYXpIIW5pxfrKe0W+D5lrFiAEYR+pb6w3N2SwSMaJbXdUfSEv+dT4MfHBLtn5js0LAWaO6otw==", + "license": "MIT" + }, + "node_modules/@types/d3-axis": { + "version": "3.0.6", + "resolved": "https://registry.npmjs.org/@types/d3-axis/-/d3-axis-3.0.6.tgz", + "integrity": "sha512-pYeijfZuBd87T0hGn0FO1vQ/cgLk6E1ALJjfkC0oJ8cbwkZl3TpgS8bVBLZN+2jjGgg38epgxb2zmoGtSfvgMw==", + "license": "MIT", + "dependencies": { + "@types/d3-selection": "*" + } + }, + "node_modules/@types/d3-brush": { + "version": "3.0.6", + "resolved": "https://registry.npmjs.org/@types/d3-brush/-/d3-brush-3.0.6.tgz", + "integrity": "sha512-nH60IZNNxEcrh6L1ZSMNA28rj27ut/2ZmI3r96Zd+1jrZD++zD3LsMIjWlvg4AYrHn/Pqz4CF3veCxGjtbqt7A==", + "license": "MIT", + "dependencies": { + "@types/d3-selection": "*" + } + }, + "node_modules/@types/d3-chord": { + "version": "3.0.6", + "resolved": "https://registry.npmjs.org/@types/d3-chord/-/d3-chord-3.0.6.tgz", + "integrity": "sha512-LFYWWd8nwfwEmTZG9PfQxd17HbNPksHBiJHaKuY1XeqscXacsS2tyoo6OdRsjf+NQYeB6XrNL3a25E3gH69lcg==", + "license": "MIT" + }, + "node_modules/@types/d3-color": { + "version": "3.1.3", + "resolved": "https://registry.npmjs.org/@types/d3-color/-/d3-color-3.1.3.tgz", + "integrity": "sha512-iO90scth9WAbmgv7ogoq57O9YpKmFBbmoEoCHDB2xMBY0+/KVrqAaCDyCE16dUspeOvIxFFRI+0sEtqDqy2b4A==", + "license": "MIT" + }, + "node_modules/@types/d3-contour": { + "version": "3.0.6", + "resolved": "https://registry.npmjs.org/@types/d3-contour/-/d3-contour-3.0.6.tgz", + "integrity": "sha512-BjzLgXGnCWjUSYGfH1cpdo41/hgdWETu4YxpezoztawmqsvCeep+8QGfiY6YbDvfgHz/DkjeIkkZVJavB4a3rg==", + "license": "MIT", + "dependencies": { + "@types/d3-array": "*", + "@types/geojson": "*" + } + }, + "node_modules/@types/d3-delaunay": { + "version": "6.0.4", + "resolved": "https://registry.npmjs.org/@types/d3-delaunay/-/d3-delaunay-6.0.4.tgz", + "integrity": "sha512-ZMaSKu4THYCU6sV64Lhg6qjf1orxBthaC161plr5KuPHo3CNm8DTHiLw/5Eq2b6TsNP0W0iJrUOFscY6Q450Hw==", + "license": "MIT" + }, + "node_modules/@types/d3-dispatch": { + "version": "3.0.7", + "resolved": "https://registry.npmjs.org/@types/d3-dispatch/-/d3-dispatch-3.0.7.tgz", + "integrity": "sha512-5o9OIAdKkhN1QItV2oqaE5KMIiXAvDWBDPrD85e58Qlz1c1kI/J0NcqbEG88CoTwJrYe7ntUCVfeUl2UJKbWgA==", + "license": "MIT" + }, + "node_modules/@types/d3-drag": { + "version": "3.0.7", + "resolved": "https://registry.npmjs.org/@types/d3-drag/-/d3-drag-3.0.7.tgz", + "integrity": "sha512-HE3jVKlzU9AaMazNufooRJ5ZpWmLIoc90A37WU2JMmeq28w1FQqCZswHZ3xR+SuxYftzHq6WU6KJHvqxKzTxxQ==", + "license": "MIT", + "dependencies": { + "@types/d3-selection": "*" + } + }, + "node_modules/@types/d3-dsv": { + "version": "3.0.7", + "resolved": "https://registry.npmjs.org/@types/d3-dsv/-/d3-dsv-3.0.7.tgz", + "integrity": "sha512-n6QBF9/+XASqcKK6waudgL0pf/S5XHPPI8APyMLLUHd8NqouBGLsU8MgtO7NINGtPBtk9Kko/W4ea0oAspwh9g==", + "license": "MIT" + }, + "node_modules/@types/d3-ease": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/@types/d3-ease/-/d3-ease-3.0.2.tgz", + "integrity": "sha512-NcV1JjO5oDzoK26oMzbILE6HW7uVXOHLQvHshBUW4UMdZGfiY6v5BeQwh9a9tCzv+CeefZQHJt5SRgK154RtiA==", + "license": "MIT" + }, + "node_modules/@types/d3-fetch": { + "version": "3.0.7", + "resolved": "https://registry.npmjs.org/@types/d3-fetch/-/d3-fetch-3.0.7.tgz", + "integrity": "sha512-fTAfNmxSb9SOWNB9IoG5c8Hg6R+AzUHDRlsXsDZsNp6sxAEOP0tkP3gKkNSO/qmHPoBFTxNrjDprVHDQDvo5aA==", + "license": "MIT", + "dependencies": { + "@types/d3-dsv": "*" + } + }, + "node_modules/@types/d3-force": { + "version": "3.0.10", + "resolved": "https://registry.npmjs.org/@types/d3-force/-/d3-force-3.0.10.tgz", + "integrity": "sha512-ZYeSaCF3p73RdOKcjj+swRlZfnYpK1EbaDiYICEEp5Q6sUiqFaFQ9qgoshp5CzIyyb/yD09kD9o2zEltCexlgw==", + "license": "MIT" + }, + "node_modules/@types/d3-format": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/@types/d3-format/-/d3-format-3.0.4.tgz", + "integrity": "sha512-fALi2aI6shfg7vM5KiR1wNJnZ7r6UuggVqtDA+xiEdPZQwy/trcQaHnwShLuLdta2rTymCNpxYTiMZX/e09F4g==", + "license": "MIT" + }, + "node_modules/@types/d3-geo": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/@types/d3-geo/-/d3-geo-3.1.1.tgz", + "integrity": "sha512-65Emv9fQiQQqphLlRkuQ5ypPsOmWPhtBGCMv61JDPEPMvsx+gzhGf74yw1a78xFKPj6zw4AgQICJoQv0vK9M2w==", + "license": "MIT", + "dependencies": { + "@types/geojson": "*" + } + }, + "node_modules/@types/d3-hierarchy": { + "version": "3.1.7", + "resolved": "https://registry.npmjs.org/@types/d3-hierarchy/-/d3-hierarchy-3.1.7.tgz", + "integrity": "sha512-tJFtNoYBtRtkNysX1Xq4sxtjK8YgoWUNpIiUee0/jHGRwqvzYxkq0hGVbbOGSz+JgFxxRu4K8nb3YpG3CMARtg==", + "license": "MIT" + }, + "node_modules/@types/d3-interpolate": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/@types/d3-interpolate/-/d3-interpolate-3.0.4.tgz", + "integrity": "sha512-mgLPETlrpVV1YRJIglr4Ez47g7Yxjl1lj7YKsiMCb27VJH9W8NVM6Bb9d8kkpG/uAQS5AmbA48q2IAolKKo1MA==", + "license": "MIT", + "dependencies": { + "@types/d3-color": "*" + } + }, + "node_modules/@types/d3-path": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/@types/d3-path/-/d3-path-3.1.1.tgz", + "integrity": "sha512-VMZBYyQvbGmWyWVea0EHs/BwLgxc+MKi1zLDCONksozI4YJMcTt8ZEuIR4Sb1MMTE8MMW49v0IwI5+b7RmfWlg==", + "license": "MIT" + }, + "node_modules/@types/d3-polygon": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/@types/d3-polygon/-/d3-polygon-3.0.2.tgz", + "integrity": "sha512-ZuWOtMaHCkN9xoeEMr1ubW2nGWsp4nIql+OPQRstu4ypeZ+zk3YKqQT0CXVe/PYqrKpZAi+J9mTs05TKwjXSRA==", + "license": "MIT" + }, + "node_modules/@types/d3-quadtree": { + "version": "3.0.6", + "resolved": "https://registry.npmjs.org/@types/d3-quadtree/-/d3-quadtree-3.0.6.tgz", + "integrity": "sha512-oUzyO1/Zm6rsxKRHA1vH0NEDG58HrT5icx/azi9MF1TWdtttWl0UIUsjEQBBh+SIkrpd21ZjEv7ptxWys1ncsg==", + "license": "MIT" + }, + "node_modules/@types/d3-random": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/@types/d3-random/-/d3-random-3.0.4.tgz", + "integrity": "sha512-UHYId5WTCx4L4YNel7NU00XUXXgvgpgZOvp10PuvsQENjMDXhh2RyFc0KBjO7B45ne4Ha1yVH7ii0vnzKkuzWA==", + "license": "MIT" + }, + "node_modules/@types/d3-scale": { + "version": "4.0.9", + "resolved": "https://registry.npmjs.org/@types/d3-scale/-/d3-scale-4.0.9.tgz", + "integrity": "sha512-dLmtwB8zkAeO/juAMfnV+sItKjlsw2lKdZVVy6LRr0cBmegxSABiLEpGVmSJJ8O08i4+sGR6qQtb6WtuwJdvVw==", + "license": "MIT", + "dependencies": { + "@types/d3-time": "*" + } + }, + "node_modules/@types/d3-scale-chromatic": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/@types/d3-scale-chromatic/-/d3-scale-chromatic-3.1.0.tgz", + "integrity": "sha512-iWMJgwkK7yTRmWqRB5plb1kadXyQ5Sj8V/zYlFGMUBbIPKQScw+Dku9cAAMgJG+z5GYDoMjWGLVOvjghDEFnKQ==", + "license": "MIT" + }, + "node_modules/@types/d3-selection": { + "version": "3.0.11", + "resolved": "https://registry.npmjs.org/@types/d3-selection/-/d3-selection-3.0.11.tgz", + "integrity": "sha512-bhAXu23DJWsrI45xafYpkQ4NtcKMwWnAC/vKrd2l+nxMFuvOT3XMYTIj2opv8vq8AO5Yh7Qac/nSeP/3zjTK0w==", + "license": "MIT" + }, + "node_modules/@types/d3-shape": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/@types/d3-shape/-/d3-shape-3.2.0.tgz", + "integrity": "sha512-kVd74ta9eof3eJOvbNd1vGKS/XERRyQbT26Og63hIsvDO84cjD5gEOhsXf26w3FSoNlPVz84DOFcKv/oou+fMw==", + "license": "MIT", + "dependencies": { + "@types/d3-path": "*" + } + }, + "node_modules/@types/d3-time": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/@types/d3-time/-/d3-time-3.0.4.tgz", + "integrity": "sha512-yuzZug1nkAAaBlBBikKZTgzCeA+k1uy4ZFwWANOfKw5z5LRhV0gNA7gNkKm7HoK+HRN0wX3EkxGk0fpbWhmB7g==", + "license": "MIT" + }, + "node_modules/@types/d3-time-format": { + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/@types/d3-time-format/-/d3-time-format-4.0.3.tgz", + "integrity": "sha512-5xg9rC+wWL8kdDj153qZcsJ0FWiFt0J5RB6LYUNZjwSnesfblqrI/bJ1wBdJ8OQfncgbJG5+2F+qfqnqyzYxyg==", + "license": "MIT" + }, + "node_modules/@types/d3-timer": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/@types/d3-timer/-/d3-timer-3.0.2.tgz", + "integrity": "sha512-Ps3T8E8dZDam6fUyNiMkekK3XUsaUEik+idO9/YjPtfj2qruF8tFBXS7XhtE4iIXBLxhmLjP3SXpLhVf21I9Lw==", + "license": "MIT" + }, + "node_modules/@types/d3-transition": { + "version": "3.0.9", + "resolved": "https://registry.npmjs.org/@types/d3-transition/-/d3-transition-3.0.9.tgz", + "integrity": "sha512-uZS5shfxzO3rGlu0cC3bjmMFKsXv+SmZZcgp0KD22ts4uGXp5EVYGzu/0YdwZeKmddhcAccYtREJKkPfXkZuCg==", + "license": "MIT", + "dependencies": { + "@types/d3-selection": "*" + } + }, + "node_modules/@types/d3-zoom": { + "version": "3.0.8", + "resolved": "https://registry.npmjs.org/@types/d3-zoom/-/d3-zoom-3.0.8.tgz", + "integrity": "sha512-iqMC4/YlFCSlO8+2Ii1GGGliCAY4XdeG748w5vQUbevlbDu0zSjH/+jojorQVBK/se0j6DUFNPBGSqD3YWYnDw==", + "license": "MIT", + "dependencies": { + "@types/d3-interpolate": "*", + "@types/d3-selection": "*" + } + }, + "node_modules/@types/esrecurse": { + "version": "4.3.1", + "resolved": "https://registry.npmjs.org/@types/esrecurse/-/esrecurse-4.3.1.tgz", + "integrity": "sha512-xJBAbDifo5hpffDBuHl0Y8ywswbiAp/Wi7Y/GtAgSlZyIABppyurxVueOPE8LUQOxdlgi6Zqce7uoEpqNTeiUw==", + "dev": true, + "license": "MIT" + }, + "node_modules/@types/estree": { + "version": "1.0.9", + "resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.9.tgz", + "integrity": "sha512-GhdPgy1el4/ImP05X05Uw4cw2/M93BCUmnEvWZNStlCzEKME4Fkk+YpoA5OiHNQmoS7Cafb8Xa3Pya8m1Qrzeg==", + "dev": true, + "license": "MIT" + }, + "node_modules/@types/geojson": { + "version": "7946.0.16", + "resolved": "https://registry.npmjs.org/@types/geojson/-/geojson-7946.0.16.tgz", + "integrity": "sha512-6C8nqWur3j98U6+lXDfTUWIfgvZU+EumvpHKcYjujKH7woYyLj2sUmff0tRhrqM7BohUw7Pz3ZB1jj2gW9Fvmg==", + "license": "MIT" + }, + "node_modules/@types/istanbul-lib-coverage": { + "version": "2.0.6", + "resolved": "https://registry.npmjs.org/@types/istanbul-lib-coverage/-/istanbul-lib-coverage-2.0.6.tgz", + "integrity": "sha512-2QF/t/auWm0lsy8XtKVPG19v3sSOQlJe/YHZgfjb/KBBHOGSV+J2q/S671rcq9uTBrLAXmZpqJiaQbMT+zNU1w==", + "dev": true, + "license": "MIT" + }, + "node_modules/@types/istanbul-lib-report": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/@types/istanbul-lib-report/-/istanbul-lib-report-3.0.3.tgz", + "integrity": "sha512-NQn7AHQnk/RSLOxrBbGyJM/aVQ+pjj5HCgasFxc0K/KhoATfQ/47AyUl15I2yBUpihjmas+a+VJBOqecrFH+uA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/istanbul-lib-coverage": "*" + } + }, + "node_modules/@types/istanbul-reports": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/@types/istanbul-reports/-/istanbul-reports-3.0.4.tgz", + "integrity": "sha512-pk2B1NWalF9toCRu6gjBzR69syFjP4Od8WRAX+0mmf9lAjCRicLOWc+ZrxZHx/0XRjotgkF9t6iaMJ+aXcOdZQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/istanbul-lib-report": "*" + } + }, + "node_modules/@types/jest": { + "version": "30.0.0", + "resolved": "https://registry.npmjs.org/@types/jest/-/jest-30.0.0.tgz", + "integrity": "sha512-XTYugzhuwqWjws0CVz8QpM36+T+Dz5mTEBKhNs/esGLnCIlGdRy+Dq78NRjd7ls7r8BC8ZRMOrKlkO1hU0JOwA==", + "dev": true, + "license": "MIT", + "dependencies": { + "expect": "^30.0.0", + "pretty-format": "^30.0.0" + } + }, + "node_modules/@types/jest/node_modules/ansi-styles": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-5.2.0.tgz", + "integrity": "sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/@types/jest/node_modules/pretty-format": { + "version": "30.5.1", + "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-30.5.1.tgz", + "integrity": "sha512-byhRAPguVKMQIj4kjJwJ5lAskVhfuiSdiYl/aLTWpgkGEmic2jYhJh1yE9ih8Ox44Xg9ccCT11/S6QrzSJuNrg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jest/react-is-18": "npm:react-is@^18.3.1", + "@jest/react-is-19": "npm:react-is@^19.2.5", + "@jest/schemas": "30.5.0", + "ansi-styles": "^5.2.0" + }, + "engines": { + "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0" + } + }, + "node_modules/@types/jsdom": { + "version": "21.1.7", + "resolved": "https://registry.npmjs.org/@types/jsdom/-/jsdom-21.1.7.tgz", + "integrity": "sha512-yOriVnggzrnQ3a9OKOCxaVuSug3w3/SbOj5i7VwXWZEyUNl3bLF9V3MfxGbZKuwqJOQyRfqXyROBB1CoZLFWzA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/node": "*", + "@types/tough-cookie": "*", + "parse5": "^7.0.0" + } + }, + "node_modules/@types/json-schema": { + "version": "7.0.15", + "resolved": "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.15.tgz", + "integrity": "sha512-5+fP8P8MFNC+AyZCDxrB2pkZFPGzqQWUzpSeuuVLvm8VMcorNYavBqoFcxK8bQz4Qsbn4oUEEem4wDLfcysGHA==", + "dev": true, + "license": "MIT" + }, + "node_modules/@types/node": { + "version": "20.19.43", + "resolved": "https://registry.npmjs.org/@types/node/-/node-20.19.43.tgz", + "integrity": "sha512-6oYBAi5ikg4Pl+kGsoYtawUMBT2zZMCvPNF7pVLnHZfd1zf38DRiWn/gT01RYCdUqkv7Fhr+C9ot4/tb+2sVvA==", + "dev": true, + "license": "MIT", + "dependencies": { + "undici-types": "~6.21.0" + } + }, + "node_modules/@types/prop-types": { + "version": "15.7.15", + "resolved": "https://registry.npmjs.org/@types/prop-types/-/prop-types-15.7.15.tgz", + "integrity": "sha512-F6bEyamV9jKGAFBEmlQnesRPGOQqS2+Uwi0Em15xenOxHaf2hv6L8YCVn3rPdPJOiJfPiCnLIRyvwVaqMY3MIw==", + "dev": true, + "license": "MIT" + }, + "node_modules/@types/react": { + "version": "18.3.31", + "resolved": "https://registry.npmjs.org/@types/react/-/react-18.3.31.tgz", + "integrity": "sha512-vfEqpXTvwT91yhmwdfouStN2hSKwTvyRs8qpLfADyrq/kxDw0hZM7Wk9Ug1FELj8hIby+S/+kQCSRFF32nv2Qw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/prop-types": "*", + "csstype": "^3.2.2" + } + }, + "node_modules/@types/react-dom": { + "version": "18.3.7", + "resolved": "https://registry.npmjs.org/@types/react-dom/-/react-dom-18.3.7.tgz", + "integrity": "sha512-MEe3UeoENYVFXzoXEWsvcpg6ZvlrFNlOQ7EOsvhI3CfAXwzPfO8Qwuxd40nepsYKqyyVQnTdEfv68q91yLcKrQ==", + "dev": true, + "license": "MIT", + "peerDependencies": { + "@types/react": "^18.0.0" + } + }, + "node_modules/@types/stack-utils": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/@types/stack-utils/-/stack-utils-2.0.3.tgz", + "integrity": "sha512-9aEbYZ3TbYMznPdcdr3SmIrLXwC/AKZXQeCf9Pgao5CKb8CyHuEX5jzWPTkvregvhRJHcpRO6BFoGW9ycaOkYw==", + "dev": true, + "license": "MIT" + }, + "node_modules/@types/tough-cookie": { + "version": "4.0.5", + "resolved": "https://registry.npmjs.org/@types/tough-cookie/-/tough-cookie-4.0.5.tgz", + "integrity": "sha512-/Ad8+nIOV7Rl++6f1BdKxFSMgmoqEoYbHRpPcx3JEfv8VRsQe9Z4mCXeJBzxs7mbHY/XOZZuXlRNfhpVPbs6ZA==", + "dev": true, + "license": "MIT" + }, + "node_modules/@types/trusted-types": { + "version": "2.0.7", + "resolved": "https://registry.npmjs.org/@types/trusted-types/-/trusted-types-2.0.7.tgz", + "integrity": "sha512-ScaPdn1dQczgbl0QFTeTOmVHFULt394XJgOQNoyVhZ6r2vLnMLJfBPd53SB52T/3G36VI1/g2MZaX0cwDuXsfw==", + "license": "MIT", + "optional": true + }, + "node_modules/@types/yargs": { + "version": "17.0.35", + "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-17.0.35.tgz", + "integrity": "sha512-qUHkeCyQFxMXg79wQfTtfndEC+N9ZZg76HJftDJp+qH2tV7Gj4OJi7l+PiWwJ+pWtW8GwSmqsDj/oymhrTWXjg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/yargs-parser": "*" + } + }, + "node_modules/@types/yargs-parser": { + "version": "21.0.3", + "resolved": "https://registry.npmjs.org/@types/yargs-parser/-/yargs-parser-21.0.3.tgz", + "integrity": "sha512-I4q9QU9MQv4oEOz4tAHJtNz1cwuLxn2F3xcc2iV5WdqLPpUnj30aUuxt1mAxYTG+oe8CZMV/+6rU4S4gRDzqtQ==", + "dev": true, + "license": "MIT" + }, + "node_modules/@ungap/structured-clone": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/@ungap/structured-clone/-/structured-clone-1.4.0.tgz", + "integrity": "sha512-1mEZtMKPM09vDmQt5y7YvmN2+DFTP7Tg0EWXdic8/C6VRnpb33e4ghisCIE3WZjsE2N8mf+QV1Zqh7ZFYLWInQ==", + "dev": true, + "license": "ISC" + }, + "node_modules/@unrs/resolver-binding-android-arm-eabi": { + "version": "1.12.2", + "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-android-arm-eabi/-/resolver-binding-android-arm-eabi-1.12.2.tgz", + "integrity": "sha512-g5T90pqg1bo/7mytQx6F4iBNC0Wsh9cu+z9veDbFjc7HjpesJFWD7QMS0NGStXM075+7dJPPVvBbpZlnrdpi/w==", + "cpu": [ + "arm" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "android" + ] + }, + "node_modules/@unrs/resolver-binding-android-arm64": { + "version": "1.12.2", + "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-android-arm64/-/resolver-binding-android-arm64-1.12.2.tgz", + "integrity": "sha512-YGCRZv/9GLhwmz6mYDeTsm/92BAyR28l6c2ReweVW5pWgfsitWLY8upvfRlGdoyD8HjeTHSYJWyZGD4KJA/nFQ==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "android" + ] + }, + "node_modules/@unrs/resolver-binding-darwin-arm64": { + "version": "1.12.2", + "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-darwin-arm64/-/resolver-binding-darwin-arm64-1.12.2.tgz", + "integrity": "sha512-u9DiNT1auQMO20A9SyTuG3wUgQWB9Z7KjAg0uFuCDR1FsAY8A0CG2S6JpHS1xwm/w1G08bjXZDcyOCjv1WAm2w==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ] + }, + "node_modules/@unrs/resolver-binding-darwin-x64": { + "version": "1.12.2", + "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-darwin-x64/-/resolver-binding-darwin-x64-1.12.2.tgz", + "integrity": "sha512-f7rPLi/T1HVKZu/u6t87lroib16n8vrSzcyxI7lg4BGO9UF26KhQL44sd9eOUgrTYhvRXtWOIZT5PejdPyJfUA==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ] + }, + "node_modules/@unrs/resolver-binding-freebsd-x64": { + "version": "1.12.2", + "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-freebsd-x64/-/resolver-binding-freebsd-x64-1.12.2.tgz", + "integrity": "sha512-BpcOjWCJub6nRZUS2zA20pmLvjtqAtGejETaIyRLiZiQf++cbrjltLA5NN/xaXfqeOBOSlMFbemIl5/S5tljmg==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "freebsd" + ] + }, + "node_modules/@unrs/resolver-binding-linux-arm-gnueabihf": { + "version": "1.12.2", + "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-linux-arm-gnueabihf/-/resolver-binding-linux-arm-gnueabihf-1.12.2.tgz", + "integrity": "sha512-vZTDvdSISZjJx66OzJqtsOhzifbqRjbmI1Mnu49fQDwog5GtDI4QidRiEAYbZCRj9C8YZEW+3ZjqsyS9GR4k2A==", + "cpu": [ + "arm" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@unrs/resolver-binding-linux-arm-musleabihf": { + "version": "1.12.2", + "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-linux-arm-musleabihf/-/resolver-binding-linux-arm-musleabihf-1.12.2.tgz", + "integrity": "sha512-BiPI+IrIlwcW4nLLMM21+B1dFPzd55yAVgVGrdgDjNef+ch03GdxrcyaIz8X9SsQirh/kCQ7mviyWlMxdh2D7g==", + "cpu": [ + "arm" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@unrs/resolver-binding-linux-arm64-gnu": { + "version": "1.12.2", + "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-linux-arm64-gnu/-/resolver-binding-linux-arm64-gnu-1.12.2.tgz", + "integrity": "sha512-zJc0H99FEPoFfSrNpa91HYfxzfAJCr502oxNK1cfdC9hlaFI43RT+JFCann9JUgZmLzzntChHyn13Sgn9ljHNg==", + "cpu": [ + "arm64" + ], + "dev": true, + "libc": [ + "glibc" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@unrs/resolver-binding-linux-arm64-musl": { + "version": "1.12.2", + "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-linux-arm64-musl/-/resolver-binding-linux-arm64-musl-1.12.2.tgz", + "integrity": "sha512-KQ3Lki6l+Pz1k/eBipN41ES+YUK30beLGb9YqcB1O542cyLCNE6GaxrfcY3T6EezmGGk84wb5XyO9loTM9tkcA==", + "cpu": [ + "arm64" + ], + "dev": true, + "libc": [ + "musl" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@unrs/resolver-binding-linux-loong64-gnu": { + "version": "1.12.2", + "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-linux-loong64-gnu/-/resolver-binding-linux-loong64-gnu-1.12.2.tgz", + "integrity": "sha512-3SJGEh1DborhG6pyxvhPzCT4bbSIVihsvgJc13P1bHG7KLdNDaF9T3gsTwFc7Jw/5Y5/iWOjkEx7Zy0NvCGX3Q==", + "cpu": [ + "loong64" + ], + "dev": true, + "libc": [ + "glibc" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@unrs/resolver-binding-linux-loong64-musl": { + "version": "1.12.2", + "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-linux-loong64-musl/-/resolver-binding-linux-loong64-musl-1.12.2.tgz", + "integrity": "sha512-jiuG/Obbel7uw1PwHNFfrkiKhLAF6mnyZ6aWlOAVN9WqKm8v0OFGnciJIHu8+CMvXLQ8AD51LPzAoUfT21D5Ew==", + "cpu": [ + "loong64" + ], + "dev": true, + "libc": [ + "musl" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@unrs/resolver-binding-linux-ppc64-gnu": { + "version": "1.12.2", + "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-linux-ppc64-gnu/-/resolver-binding-linux-ppc64-gnu-1.12.2.tgz", + "integrity": "sha512-q7xRvVpmcfeL+LlZg8Pbbo6QaTZwDU5BaGZbwfhkEsXJn3Was8xYfE0RBH266xZt0rM6B7i8xAYIvjthuUIWHg==", + "cpu": [ + "ppc64" + ], + "dev": true, + "libc": [ + "glibc" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@unrs/resolver-binding-linux-riscv64-gnu": { + "version": "1.12.2", + "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-linux-riscv64-gnu/-/resolver-binding-linux-riscv64-gnu-1.12.2.tgz", + "integrity": "sha512-0CVdx6lcnT3Q9inOH8tsMIOJ6ImndllMjqJHg8RLVdB7Vq4SfkEXl9mCSsVNuNA4MCYycRicCUxPCabVHJRr6A==", + "cpu": [ + "riscv64" + ], + "dev": true, + "libc": [ + "glibc" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@unrs/resolver-binding-linux-riscv64-musl": { + "version": "1.12.2", + "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-linux-riscv64-musl/-/resolver-binding-linux-riscv64-musl-1.12.2.tgz", + "integrity": "sha512-iOwlRo9vnp6R6ohHQS11n0NnfdXx/omhkocmIfaPRpQhKZ+3BDMkkdRVh53qjkFkpPddf+FETA28NwGN7l5l+w==", + "cpu": [ + "riscv64" + ], + "dev": true, + "libc": [ + "musl" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@unrs/resolver-binding-linux-s390x-gnu": { + "version": "1.12.2", + "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-linux-s390x-gnu/-/resolver-binding-linux-s390x-gnu-1.12.2.tgz", + "integrity": "sha512-HYJtLfXq94q8iZNFT1lknx258wlkkWhZeUXJRqzKBBUJ00CvZ+N33zgbCqimLjsyw5Va6uUxhVa12mI+kaveEw==", + "cpu": [ + "s390x" + ], + "dev": true, + "libc": [ + "glibc" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@unrs/resolver-binding-linux-x64-gnu": { + "version": "1.12.2", + "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-linux-x64-gnu/-/resolver-binding-linux-x64-gnu-1.12.2.tgz", + "integrity": "sha512-mPsUhunKKDih5O96Y6enDQyHc1SqBPlY1E/SfMWDM3EdJ95Z9CArPeCVwCCqbP45ljvivdEk8Fxn+SIb1rDAJQ==", + "cpu": [ + "x64" + ], + "dev": true, + "libc": [ + "glibc" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@unrs/resolver-binding-linux-x64-musl": { + "version": "1.12.2", + "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-linux-x64-musl/-/resolver-binding-linux-x64-musl-1.12.2.tgz", + "integrity": "sha512-azrt6+5ydLd8Vt210AAFis/lZevSfPw93EJRIJG+xPu4WCJ8K0kppCTpMyLPcKT7H15M4Jnt2tMp5bOvCkRC6A==", + "cpu": [ + "x64" + ], + "dev": true, + "libc": [ + "musl" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@unrs/resolver-binding-openharmony-arm64": { + "version": "1.12.2", + "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-openharmony-arm64/-/resolver-binding-openharmony-arm64-1.12.2.tgz", + "integrity": "sha512-YZ9hP4O0X9PQb8eO980qmLNGH4zT3I9+SZTdt0Pr0YyuGQhYKoOZkV02VzrzyOZJ5xIJ3UFIenKkUkGg8GjgWQ==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "openharmony" + ] + }, + "node_modules/@unrs/resolver-binding-wasm32-wasi": { + "version": "1.12.2", + "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-wasm32-wasi/-/resolver-binding-wasm32-wasi-1.12.2.tgz", + "integrity": "sha512-tYFDIkMxSflfEc/h92ZWNsZlHSwgimbNHSO3PL2JWQHfCuC2q316jMyYU9TIWZsFK2bQwyK5VAdYgn8ygPj69A==", + "cpu": [ + "wasm32" + ], + "dev": true, + "license": "MIT", + "optional": true, + "dependencies": { + "@emnapi/core": "1.10.0", + "@emnapi/runtime": "1.10.0", + "@napi-rs/wasm-runtime": "^1.1.4" + }, + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/@unrs/resolver-binding-win32-arm64-msvc": { + "version": "1.12.2", + "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-win32-arm64-msvc/-/resolver-binding-win32-arm64-msvc-1.12.2.tgz", + "integrity": "sha512-qzNyg3xL0VPQmCaUh+N5jSitce6k+uCBfMDesWRnlULOZaqUkaJ0ybdT+UqlAWJoQjuqfIU/0Ptx9bteN4D82g==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ] + }, + "node_modules/@unrs/resolver-binding-win32-ia32-msvc": { + "version": "1.12.2", + "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-win32-ia32-msvc/-/resolver-binding-win32-ia32-msvc-1.12.2.tgz", + "integrity": "sha512-WD9sY00OfpHVGfsnHZoA8jVT+esS/Bg8z8jzxp5BnDCjjwsuKsPQrzswwpFy4J1AUJbXPRfkpcX0mXrzeXW79g==", + "cpu": [ + "ia32" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ] + }, + "node_modules/@unrs/resolver-binding-win32-x64-msvc": { + "version": "1.12.2", + "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-win32-x64-msvc/-/resolver-binding-win32-x64-msvc-1.12.2.tgz", + "integrity": "sha512-nAB74NfSNKknqQ1RrYj6uz8FcXEomu/MATJZxh/x+BArzN2U3JbOYC0APYzUIGhVY3m5hRxA8VPNdPBoG8txlA==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ] + }, + "node_modules/@upsetjs/venn.js": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/@upsetjs/venn.js/-/venn.js-2.0.0.tgz", + "integrity": "sha512-WbBhLrooyePuQ1VZxrJjtLvTc4NVfpOyKx0sKqioq9bX1C1m7Jgykkn8gLrtwumBioXIqam8DLxp88Adbue6Hw==", + "license": "MIT", + "optionalDependencies": { + "d3-selection": "^3.0.0", + "d3-transition": "^3.0.1" + } + }, + "node_modules/acorn": { + "version": "8.18.0", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.18.0.tgz", + "integrity": "sha512-lGq+9yr1/GuAWaVYIHRjvvySG5/4VfKIvC8EWxStPdcDh/Ka7FG3twP6v4d5BkravUilhIAsG4Qj83t02LWUPQ==", + "dev": true, + "license": "MIT", + "bin": { + "acorn": "bin/acorn" + }, + "engines": { + "node": ">=0.4.0" + } + }, + "node_modules/acorn-jsx": { + "version": "5.3.2", + "resolved": "https://registry.npmjs.org/acorn-jsx/-/acorn-jsx-5.3.2.tgz", + "integrity": "sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==", + "dev": true, + "license": "MIT", + "peerDependencies": { + "acorn": "^6.0.0 || ^7.0.0 || ^8.0.0" + } + }, + "node_modules/ajv": { + "version": "6.15.0", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.15.0.tgz", + "integrity": "sha512-fgFx7Hfoq60ytK2c7DhnF8jIvzYgOMxfugjLOSMHjLIPgenqa7S7oaagATUq99mV6IYvN2tRmC0wnTYX6iPbMw==", + "dev": true, + "license": "MIT", + "dependencies": { + "fast-deep-equal": "^3.1.1", + "fast-json-stable-stringify": "^2.0.0", + "json-schema-traverse": "^0.4.1", + "uri-js": "^4.2.2" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/epoberezkin" + } + }, + "node_modules/ansi-escapes": { + "version": "4.3.2", + "resolved": "https://registry.npmjs.org/ansi-escapes/-/ansi-escapes-4.3.2.tgz", + "integrity": "sha512-gKXj5ALrKWQLsYG9jlTRmR/xKluxHV+Z9QEwNIgCfM1/uwPMCuzVVnh5mwTd+OuBZcwSIMbqssNWRm1lE51QaQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "type-fest": "^0.21.3" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/ansi-regex": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", + "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "license": "MIT", + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/anymatch": { + "version": "3.1.3", + "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-3.1.3.tgz", + "integrity": "sha512-KMReFUr0B4t+D+OBkjR3KYqvocp2XaSzO55UcB6mgQMd3KbcE+mWTyvVV7D/zsdEbNnV6acZUutkiHQXvTr1Rw==", + "dev": true, + "license": "ISC", + "dependencies": { + "normalize-path": "^3.0.0", + "picomatch": "^2.0.4" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/anymatch/node_modules/picomatch": { + "version": "2.3.2", + "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.2.tgz", + "integrity": "sha512-V7+vQEJ06Z+c5tSye8S+nHUfI51xoXIXjHQ99cQtKUkQqqO1kO/KCJUfZXuB47h/YBlDhah2H3hdUGXn8ie0oA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8.6" + }, + "funding": { + "url": "https://github.com/sponsors/jonschlinkert" + } + }, + "node_modules/argparse": { + "version": "1.0.10", + "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz", + "integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==", + "dev": true, + "license": "MIT", + "dependencies": { + "sprintf-js": "~1.0.2" + } + }, + "node_modules/aria-query": { + "version": "5.3.0", + "resolved": "https://registry.npmjs.org/aria-query/-/aria-query-5.3.0.tgz", + "integrity": "sha512-b0P0sZPKtyu8HkeRAfCq0IfURZK+SuwMjY1UXGBU27wpAiTwQAIlq56IbIO+ytk/JjS1fMR14ee5WBBfKi5J6A==", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "dequal": "^2.0.3" + } + }, + "node_modules/array-buffer-byte-length": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/array-buffer-byte-length/-/array-buffer-byte-length-1.0.2.tgz", + "integrity": "sha512-LHE+8BuR7RYGDKvnrmcuSq3tDcKv9OFEXQt/HpbZhY7V6h0zlUXutnAD82GiFx9rdieCMjkvtcsPqBwgUl1Iiw==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bound": "^1.0.3", + "is-array-buffer": "^3.0.5" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/available-typed-arrays": { + "version": "1.0.7", + "resolved": "https://registry.npmjs.org/available-typed-arrays/-/available-typed-arrays-1.0.7.tgz", + "integrity": "sha512-wvUjBtSGN7+7SjNpq/9M2Tg350UZD3q62IFZLbRAR1bSMlCo1ZaeW+BJ+D090e4hIIZLBcTDWe4Mh4jvUDajzQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "possible-typed-array-names": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/babel-jest": { + "version": "30.5.1", + "resolved": "https://registry.npmjs.org/babel-jest/-/babel-jest-30.5.1.tgz", + "integrity": "sha512-ge1xUVZS91ml09YRMgRGgeKJ4YJpcOiuwteAxFBYLugQyp7cRw+hHej6Ho0vPjvLrjq60bb7JPHH9LAMA1/krA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jest/transform": "30.5.1", + "@types/babel__core": "^7.20.5", + "babel-plugin-istanbul": "^8.0.0", + "babel-preset-jest": "30.5.0", + "chalk": "^4.1.2", + "graceful-fs": "^4.2.11", + "slash": "^3.0.0" + }, + "engines": { + "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0" + }, + "peerDependencies": { + "@babel/core": "^7.11.0 || ^8.0.0-0" + } + }, + "node_modules/babel-plugin-istanbul": { + "version": "8.0.0", + "resolved": "https://registry.npmjs.org/babel-plugin-istanbul/-/babel-plugin-istanbul-8.0.0.tgz", + "integrity": "sha512-18wCskrN3DgbuBmp1gr7LBGT8xdz5xhQQqFvFhVxbkl8VBCrMKQ2YtqBWtUal1Zrc1HTuX0011+Brjw78TCFkg==", + "dev": true, + "license": "BSD-3-Clause", + "workspaces": [ + "test/babel-8" + ], + "dependencies": { + "@babel/helper-plugin-utils": "^7.0.0", + "@istanbuljs/load-nyc-config": "^1.0.0", + "@istanbuljs/schema": "^0.1.3", + "istanbul-lib-instrument": "^6.0.2", + "test-exclude": "^7.0.1" + }, + "engines": { + "node": ">=18" + } + }, + "node_modules/babel-plugin-jest-hoist": { + "version": "30.5.0", + "resolved": "https://registry.npmjs.org/babel-plugin-jest-hoist/-/babel-plugin-jest-hoist-30.5.0.tgz", + "integrity": "sha512-gtGo1B+u14jrZQv6TdSWIWkTqclboo7Qn+dFAGUOIuXLFuJKAdg3U5MIWzZnW4vfUb4dX9skmAMiby86e/SF4A==", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/babel__core": "^7.20.5" + }, + "engines": { + "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0" + } + }, + "node_modules/babel-plugin-polyfill-corejs2": { + "version": "0.4.17", + "resolved": "https://registry.npmjs.org/babel-plugin-polyfill-corejs2/-/babel-plugin-polyfill-corejs2-0.4.17.tgz", + "integrity": "sha512-aTyf30K/rqAsNwN76zYrdtx8obu0E4KoUME29B1xj+B3WxgvWkp943vYQ+z8Mv3lw9xHXMHpvSPOBxzAkIa94w==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/compat-data": "^7.28.6", + "@babel/helper-define-polyfill-provider": "^0.6.8", + "semver": "^6.3.1" + }, + "peerDependencies": { + "@babel/core": "^7.4.0 || ^8.0.0-0 <8.0.0" + } + }, + "node_modules/babel-plugin-polyfill-corejs3": { + "version": "0.14.2", + "resolved": "https://registry.npmjs.org/babel-plugin-polyfill-corejs3/-/babel-plugin-polyfill-corejs3-0.14.2.tgz", + "integrity": "sha512-coWpDLJ410R781Npmn/SIBZEsAetR4xVi0SxLMXPaMO4lSf1MwnkGYMtkFxew0Dn8B3/CpbpYxN0JCgg8mn67g==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-define-polyfill-provider": "^0.6.8", + "core-js-compat": "^3.48.0" + }, + "peerDependencies": { + "@babel/core": "^7.4.0 || ^8.0.0-0 <8.0.0" + } + }, + "node_modules/babel-plugin-polyfill-regenerator": { + "version": "0.6.8", + "resolved": "https://registry.npmjs.org/babel-plugin-polyfill-regenerator/-/babel-plugin-polyfill-regenerator-0.6.8.tgz", + "integrity": "sha512-M762rNHfSF1EV3SLtnCJXFoQbbIIz0OyRwnCmV0KPC7qosSfCO0QLTSuJX3ayAebubhE6oYBAYPrBA5ljowaZg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-define-polyfill-provider": "^0.6.8" + }, + "peerDependencies": { + "@babel/core": "^7.4.0 || ^8.0.0-0 <8.0.0" + } + }, + "node_modules/babel-preset-current-node-syntax": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/babel-preset-current-node-syntax/-/babel-preset-current-node-syntax-1.2.0.tgz", + "integrity": "sha512-E/VlAEzRrsLEb2+dv8yp3bo4scof3l9nR4lrld+Iy5NyVqgVYUJnDAmunkhPMisRI32Qc4iRiz425d8vM++2fg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/plugin-syntax-async-generators": "^7.8.4", + "@babel/plugin-syntax-bigint": "^7.8.3", + "@babel/plugin-syntax-class-properties": "^7.12.13", + "@babel/plugin-syntax-class-static-block": "^7.14.5", + "@babel/plugin-syntax-import-attributes": "^7.24.7", + "@babel/plugin-syntax-import-meta": "^7.10.4", + "@babel/plugin-syntax-json-strings": "^7.8.3", + "@babel/plugin-syntax-logical-assignment-operators": "^7.10.4", + "@babel/plugin-syntax-nullish-coalescing-operator": "^7.8.3", + "@babel/plugin-syntax-numeric-separator": "^7.10.4", + "@babel/plugin-syntax-object-rest-spread": "^7.8.3", + "@babel/plugin-syntax-optional-catch-binding": "^7.8.3", + "@babel/plugin-syntax-optional-chaining": "^7.8.3", + "@babel/plugin-syntax-private-property-in-object": "^7.14.5", + "@babel/plugin-syntax-top-level-await": "^7.14.5" + }, + "peerDependencies": { + "@babel/core": "^7.0.0 || ^8.0.0-0" + } + }, + "node_modules/babel-preset-jest": { + "version": "30.5.0", + "resolved": "https://registry.npmjs.org/babel-preset-jest/-/babel-preset-jest-30.5.0.tgz", + "integrity": "sha512-ZGPn5ClP4lBDpuOK8W1yQIOy359HmbnZv3suucAlIe+SEE9yDsxV4S2PjSbH2Vc97U+WmzYD7vw3kr8NsQ/i6w==", + "dev": true, + "license": "MIT", + "dependencies": { + "babel-plugin-jest-hoist": "30.5.0", + "babel-preset-current-node-syntax": "^1.2.0" + }, + "engines": { + "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0" + }, + "peerDependencies": { + "@babel/core": "^7.11.0 || ^8.0.0-beta.1 || ^8.0.0" + } + }, + "node_modules/balanced-match": { + "version": "4.0.4", + "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-4.0.4.tgz", + "integrity": "sha512-BLrgEcRTwX2o6gGxGOCNyMvGSp35YofuYzw9h1IMTRmKqttAZZVU67bdb9Pr2vUHA8+j3i2tJfjO6C6+4myGTA==", + "dev": true, + "license": "MIT", + "engines": { + "node": "18 || 20 || >=22" + } + }, + "node_modules/baseline-browser-mapping": { + "version": "2.11.23", + "resolved": "https://registry.npmjs.org/baseline-browser-mapping/-/baseline-browser-mapping-2.11.23.tgz", + "integrity": "sha512-le521dGVfxM7yRX0EikCoSz+rOK+hHzdDt/E7mG1jOJB/6WAAUuwVroLwaB7ApaUsz5Q0kFlDXLSA9MheUIfRQ==", + "dev": true, + "license": "Apache-2.0", + "bin": { + "baseline-browser-mapping": "dist/cli.cjs" + }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/bidi-js": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/bidi-js/-/bidi-js-1.1.0.tgz", + "integrity": "sha512-fX1Onk0tdVPC7obPWB5EbJ1z7NVhLq4m2xZLq2YXBkxzMXIGRpNMU88n0EPgWseKl12J7zXs7qrDxPK4sRs2fg==", + "dev": true, + "license": "MIT", + "dependencies": { + "require-from-string": "^2.0.2" + } + }, + "node_modules/brace-expansion": { + "version": "5.0.9", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-5.0.9.tgz", + "integrity": "sha512-ScQ4IuvIEF1TMlP7Zt+vjJ//9zlPb2SDcxWxM3bk8s6t6GGdJ7KO1dCcTidOPJKePW30LE/2cT7wCyPho9/Wxg==", + "dev": true, + "license": "MIT", + "dependencies": { + "balanced-match": "^4.0.2" + }, + "engines": { + "node": "20 || >=22" + } + }, + "node_modules/browserslist": { + "version": "4.28.9", + "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.28.9.tgz", + "integrity": "sha512-EWazOblFYUvlGZcfGhPUPmYh3nikUxBVb+y9MJun5f3hBi812X+8MSQTujLBtgK3cf51fJWbWfOjyeO954d+Eg==", + "dev": true, + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/browserslist" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/browserslist" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "license": "MIT", + "dependencies": { + "baseline-browser-mapping": "^2.11.20", + "caniuse-lite": "^1.0.30001810", + "electron-to-chromium": "^1.5.420", + "node-releases": "^2.0.54", + "update-browserslist-db": "^1.3.2" + }, + "bin": { + "browserslist": "cli.js" + }, + "engines": { + "node": "^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7" + } + }, + "node_modules/bs-logger": { + "version": "0.2.6", + "resolved": "https://registry.npmjs.org/bs-logger/-/bs-logger-0.2.6.tgz", + "integrity": "sha512-pd8DCoxmbgc7hyPKOvxtqNcjYoOsABPQdcCUjGp3d42VR2CX1ORhk2A87oqqu5R1kk+76nsxZupkmyd+MVtCog==", + "dev": true, + "license": "MIT", + "dependencies": { + "fast-json-stable-stringify": "2.x" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/bser": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/bser/-/bser-2.1.1.tgz", + "integrity": "sha512-gQxTNE/GAfIIrmHLUE3oJyp5FO6HRBfhjnw4/wMmA63ZGDJnWBmgY/lyQBpnDUkGmAhbSe39tx2d/iTOAfglwQ==", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "node-int64": "^0.4.0" + } + }, + "node_modules/cacheable": { + "version": "2.5.0", + "resolved": "https://registry.npmjs.org/cacheable/-/cacheable-2.5.0.tgz", + "integrity": "sha512-60cyAOytib/OzBw1JNSoSV/boK1AtHryDIjvVBk7XbN4ugfkM3+Sry7fEjNgPMGgOjuaZPAp8ruZ0Cxafwyq9g==", + "dev": true, + "license": "MIT", + "dependencies": { + "@cacheable/memory": "^2.2.0", + "@cacheable/utils": "^2.5.0", + "hookified": "^1.15.0", + "keyv": "^5.6.0", + "qified": "^0.10.1" + } + }, + "node_modules/call-bind": { + "version": "1.0.9", + "resolved": "https://registry.npmjs.org/call-bind/-/call-bind-1.0.9.tgz", + "integrity": "sha512-a/hy+pNsFUTR+Iz8TCJvXudKVLAnz/DyeSUo10I5yvFDQJBFU2s9uqQpoSrJlroHUKoKqzg+epxyP9lqFdzfBQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bind-apply-helpers": "^1.0.2", + "es-define-property": "^1.0.1", + "get-intrinsic": "^1.3.0", + "set-function-length": "^1.2.2" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/call-bind-apply-helpers": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/call-bind-apply-helpers/-/call-bind-apply-helpers-1.0.2.tgz", + "integrity": "sha512-Sp1ablJ0ivDkSzjcaJdxEunN5/XvksFJ2sMBFfq6x0ryhQV/2b/KwFe21cMpmHtPOSij8K99/wSfoEuTObmuMQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "es-errors": "^1.3.0", + "function-bind": "^1.1.2" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/call-bound": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/call-bound/-/call-bound-1.0.4.tgz", + "integrity": "sha512-+ys997U96po4Kx/ABpBCqhA9EuxJaQWDQg7295H4hBphv3IZg0boBKuwYpt4YXp6MZ5AmZQnU/tyMTlRpaSejg==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bind-apply-helpers": "^1.0.2", + "get-intrinsic": "^1.3.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/callsites": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/callsites/-/callsites-3.1.0.tgz", + "integrity": "sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/camelcase": { + "version": "5.3.1", + "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-5.3.1.tgz", + "integrity": "sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/caniuse-lite": { + "version": "1.0.30001810", + "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001810.tgz", + "integrity": "sha512-TITQPUkaz+aVk5GL6NhOdwk1aEaNTSDPsGFWrTuhKGtjTF70jL/Oht2W4c6rXUe5fu7Ie19VIahAXHIIiWWNeg==", + "dev": true, + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/browserslist" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/caniuse-lite" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "license": "CC-BY-4.0" + }, + "node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dev": true, + "license": "MIT", + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/char-regex": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/char-regex/-/char-regex-1.0.2.tgz", + "integrity": "sha512-kWWXztvZ5SBQV+eRgKFeh8q5sLuZY2+8WUIzlxWVTg+oGwY14qylx1KbKzHd8P6ZYkAg0xyIDU9JMHhyJMZ1jw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=10" + } + }, + "node_modules/chevrotain": { + "version": "11.1.2", + "resolved": "https://registry.npmjs.org/chevrotain/-/chevrotain-11.1.2.tgz", + "integrity": "sha512-opLQzEVriiH1uUQ4Kctsd49bRoFDXGGSC4GUqj7pGyxM3RehRhvTlZJc1FL/Flew2p5uwxa1tUDWKzI4wNM8pg==", + "license": "Apache-2.0", + "dependencies": { + "@chevrotain/cst-dts-gen": "11.1.2", + "@chevrotain/gast": "11.1.2", + "@chevrotain/regexp-to-ast": "11.1.2", + "@chevrotain/types": "11.1.2", + "@chevrotain/utils": "11.1.2", + "lodash-es": "4.17.23" + } + }, + "node_modules/ci-info": { + "version": "4.4.0", + "resolved": "https://registry.npmjs.org/ci-info/-/ci-info-4.4.0.tgz", + "integrity": "sha512-77PSwercCZU2Fc4sX94eF8k8Pxte6JAwL4/ICZLFjJLqegs7kCuAsqqj/70NQF6TvDpgFjkubQB2FW2ZZddvQg==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/sibiraj-s" + } + ], + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/cjs-module-lexer": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/cjs-module-lexer/-/cjs-module-lexer-2.2.1.tgz", + "integrity": "sha512-Ca8swihM+/4yKecYHY52kgJd300hi2lADU/a1RxNTRe+RJ9jvqQlESpbz9DnG9mowez8qwXHB8qYdIUw9e+F5Q==", + "dev": true, + "license": "MIT" + }, + "node_modules/cliui": { + "version": "8.0.1", + "resolved": "https://registry.npmjs.org/cliui/-/cliui-8.0.1.tgz", + "integrity": "sha512-BSeNnyus75C4//NQ9gQt1/csTXyo/8Sb+afLAkzAptFuMsod9HFokGNudZpi/oQV73hnVK+sR+5PVRMd+Dr7YQ==", + "dev": true, + "license": "ISC", + "dependencies": { + "string-width": "^4.2.0", + "strip-ansi": "^6.0.1", + "wrap-ansi": "^7.0.0" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/co": { + "version": "4.6.0", + "resolved": "https://registry.npmjs.org/co/-/co-4.6.0.tgz", + "integrity": "sha512-QVb0dM5HvG+uaxitm8wONl7jltx8dqhfU33DcqtOZcLSVIKSDDLDi7+0LbAKiyI8hD9u42m2YxXSkMGWThaecQ==", + "dev": true, + "license": "MIT", + "engines": { + "iojs": ">= 1.0.0", + "node": ">= 0.12.0" + } + }, + "node_modules/collect-v8-coverage": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/collect-v8-coverage/-/collect-v8-coverage-1.0.3.tgz", + "integrity": "sha512-1L5aqIkwPfiodaMgQunkF1zRhNqifHBmtbbbxcr6yVxxBnliw4TDOW6NxpO8DJLgJ16OT+Y4ztZqP6p/FtXnAw==", + "dev": true, + "license": "MIT" + }, + "node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true, + "license": "MIT" + }, + "node_modules/commander": { + "version": "15.0.0", + "resolved": "https://registry.npmjs.org/commander/-/commander-15.0.0.tgz", + "integrity": "sha512-z67u4ZhzCL/Tydu1lJARtEZYWbWaN7oYLHbsuzocr6y4N6WZAagG3RQ4FW61V1/0+jImpj293XfrcYnd1qxtPg==", + "license": "MIT", + "engines": { + "node": ">=22.12.0" + } + }, + "node_modules/convert-source-map": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-2.0.0.tgz", + "integrity": "sha512-Kvp459HrV2FEJ1CAsi1Ku+MY3kasH19TFykTz2xWmMeq6bk2NU3XXvfJ+Q61m0xktWwt+1HSYf3JZsTms3aRJg==", + "dev": true, + "license": "MIT" + }, + "node_modules/core-js-compat": { + "version": "3.50.0", + "resolved": "https://registry.npmjs.org/core-js-compat/-/core-js-compat-3.50.0.tgz", + "integrity": "sha512-XGpFGbMLHwSt74YLTKho7Ib242qi6O8MSX+sRokV4oz7iKXvQWGYZthjIhjRGMxjzVkAubBO512dKGYcefmX3Q==", + "dev": true, + "license": "MIT", + "dependencies": { + "browserslist": "^4.28.7" + }, + "engines": { + "node": ">=6.4.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/core-js" + } + }, + "node_modules/cose-base": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/cose-base/-/cose-base-1.0.3.tgz", + "integrity": "sha512-s9whTXInMSgAp/NVXVNuVxVKzGH2qck3aQlVHxDCdAEPgtMKwc4Wq6/QKhgdEdgbLSi9rBTAcPoRa6JpiG4ksg==", + "license": "MIT", + "dependencies": { + "layout-base": "^1.0.0" + } + }, + "node_modules/cross-spawn": { + "version": "7.0.6", + "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.6.tgz", + "integrity": "sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==", + "dev": true, + "license": "MIT", + "dependencies": { + "path-key": "^3.1.0", + "shebang-command": "^2.0.0", + "which": "^2.0.1" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/css-tree": { + "version": "3.2.1", + "resolved": "https://registry.npmjs.org/css-tree/-/css-tree-3.2.1.tgz", + "integrity": "sha512-X7sjQzceUhu1u7Y/ylrRZFU2FS6LRiFVp6rKLPg23y3x3c3DOKAwuXGDp+PAGjh6CSnCjYeAul8pcT8bAl+lSA==", + "dev": true, + "license": "MIT", + "dependencies": { + "mdn-data": "2.27.1", + "source-map-js": "^1.2.1" + }, + "engines": { + "node": "^10 || ^12.20.0 || ^14.13.0 || >=15.0.0" + } + }, + "node_modules/css.escape": { + "version": "1.5.1", + "resolved": "https://registry.npmjs.org/css.escape/-/css.escape-1.5.1.tgz", + "integrity": "sha512-YUifsXXuknHlUsmlgyY0PKzgPOr7/FjCePfHNt0jxm83wHZi44VDMQ7/fGNkjY3/jV1MC+1CmZbaHzugyeRtpg==", + "dev": true, + "license": "MIT" + }, + "node_modules/csstype": { + "version": "3.2.3", + "resolved": "https://registry.npmjs.org/csstype/-/csstype-3.2.3.tgz", + "integrity": "sha512-z1HGKcYy2xA8AGQfwrn0PAy+PB7X/GSj3UVJW9qKyn43xWa+gl5nXmU4qqLMRzWVLFC8KusUX8T/0kCiOYpAIQ==", + "dev": true, + "license": "MIT" + }, + "node_modules/cytoscape": { + "version": "3.34.3", + "resolved": "https://registry.npmjs.org/cytoscape/-/cytoscape-3.34.3.tgz", + "integrity": "sha512-yfYGhRcGAntq6YBD583j4n0Eg3jIxvWmZtz/5uz9UYkeIStSlMxuUja+ec5j3iBD8nv1rwaOAYMW09tBdkSeaQ==", + "license": "MIT", + "engines": { + "node": ">=0.10" + } + }, + "node_modules/cytoscape-cose-bilkent": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/cytoscape-cose-bilkent/-/cytoscape-cose-bilkent-4.1.0.tgz", + "integrity": "sha512-wgQlVIUJF13Quxiv5e1gstZ08rnZj2XaLHGoFMYXz7SkNfCDOOteKBE6SYRfA9WxxI/iBc3ajfDoc6hb/MRAHQ==", + "license": "MIT", + "dependencies": { + "cose-base": "^1.0.0" + }, + "peerDependencies": { + "cytoscape": "^3.2.0" + } + }, + "node_modules/cytoscape-fcose": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/cytoscape-fcose/-/cytoscape-fcose-2.2.0.tgz", + "integrity": "sha512-ki1/VuRIHFCzxWNrsshHYPs6L7TvLu3DL+TyIGEsRcvVERmxokbf5Gdk7mFxZnTdiGtnA4cfSmjZJMviqSuZrQ==", + "license": "MIT", + "dependencies": { + "cose-base": "^2.2.0" + }, + "peerDependencies": { + "cytoscape": "^3.2.0" + } + }, + "node_modules/cytoscape-fcose/node_modules/cose-base": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/cose-base/-/cose-base-2.2.0.tgz", + "integrity": "sha512-AzlgcsCbUMymkADOJtQm3wO9S3ltPfYOFD5033keQn9NJzIbtnZj+UdBJe7DYml/8TdbtHJW3j58SOnKhWY/5g==", + "license": "MIT", + "dependencies": { + "layout-base": "^2.0.0" + } + }, + "node_modules/cytoscape-fcose/node_modules/layout-base": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/layout-base/-/layout-base-2.0.1.tgz", + "integrity": "sha512-dp3s92+uNI1hWIpPGH3jK2kxE2lMjdXdr+DH8ynZHpd6PUlH6x6cbuXnoMmiNumznqaNO31xu9e79F0uuZ0JFg==", + "license": "MIT" + }, + "node_modules/d3": { + "version": "7.9.0", + "resolved": "https://registry.npmjs.org/d3/-/d3-7.9.0.tgz", + "integrity": "sha512-e1U46jVP+w7Iut8Jt8ri1YsPOvFpg46k+K8TpCb0P+zjCkjkPnV7WzfDJzMHy1LnA+wj5pLT1wjO901gLXeEhA==", + "license": "ISC", + "dependencies": { + "d3-array": "3", + "d3-axis": "3", + "d3-brush": "3", + "d3-chord": "3", + "d3-color": "3", + "d3-contour": "4", + "d3-delaunay": "6", + "d3-dispatch": "3", + "d3-drag": "3", + "d3-dsv": "3", + "d3-ease": "3", + "d3-fetch": "3", + "d3-force": "3", + "d3-format": "3", + "d3-geo": "3", + "d3-hierarchy": "3", + "d3-interpolate": "3", + "d3-path": "3", + "d3-polygon": "3", + "d3-quadtree": "3", + "d3-random": "3", + "d3-scale": "4", + "d3-scale-chromatic": "3", + "d3-selection": "3", + "d3-shape": "3", + "d3-time": "3", + "d3-time-format": "4", + "d3-timer": "3", + "d3-transition": "3", + "d3-zoom": "3" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/d3-array": { + "version": "3.2.4", + "resolved": "https://registry.npmjs.org/d3-array/-/d3-array-3.2.4.tgz", + "integrity": "sha512-tdQAmyA18i4J7wprpYq8ClcxZy3SC31QMeByyCFyRt7BVHdREQZ5lpzoe5mFEYZUWe+oq8HBvk9JjpibyEV4Jg==", + "license": "ISC", + "dependencies": { + "internmap": "1 - 2" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/d3-axis": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/d3-axis/-/d3-axis-3.0.0.tgz", + "integrity": "sha512-IH5tgjV4jE/GhHkRV0HiVYPDtvfjHQlQfJHs0usq7M30XcSBvOotpmH1IgkcXsO/5gEQZD43B//fc7SRT5S+xw==", + "license": "ISC", + "engines": { + "node": ">=12" + } + }, + "node_modules/d3-brush": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/d3-brush/-/d3-brush-3.0.0.tgz", + "integrity": "sha512-ALnjWlVYkXsVIGlOsuWH1+3udkYFI48Ljihfnh8FZPF2QS9o+PzGLBslO0PjzVoHLZ2KCVgAM8NVkXPJB2aNnQ==", + "license": "ISC", + "dependencies": { + "d3-dispatch": "1 - 3", + "d3-drag": "2 - 3", + "d3-interpolate": "1 - 3", + "d3-selection": "3", + "d3-transition": "3" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/d3-chord": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/d3-chord/-/d3-chord-3.0.1.tgz", + "integrity": "sha512-VE5S6TNa+j8msksl7HwjxMHDM2yNK3XCkusIlpX5kwauBfXuyLAtNg9jCp/iHH61tgI4sb6R/EIMWCqEIdjT/g==", + "license": "ISC", + "dependencies": { + "d3-path": "1 - 3" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/d3-color": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/d3-color/-/d3-color-3.1.0.tgz", + "integrity": "sha512-zg/chbXyeBtMQ1LbD/WSoW2DpC3I0mpmPdW+ynRTj/x2DAWYrIY7qeZIHidozwV24m4iavr15lNwIwLxRmOxhA==", + "license": "ISC", + "engines": { + "node": ">=12" + } + }, + "node_modules/d3-contour": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/d3-contour/-/d3-contour-4.0.2.tgz", + "integrity": "sha512-4EzFTRIikzs47RGmdxbeUvLWtGedDUNkTcmzoeyg4sP/dvCexO47AaQL7VKy/gul85TOxw+IBgA8US2xwbToNA==", + "license": "ISC", + "dependencies": { + "d3-array": "^3.2.0" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/d3-delaunay": { + "version": "6.0.4", + "resolved": "https://registry.npmjs.org/d3-delaunay/-/d3-delaunay-6.0.4.tgz", + "integrity": "sha512-mdjtIZ1XLAM8bm/hx3WwjfHt6Sggek7qH043O8KEjDXN40xi3vx/6pYSVTwLjEgiXQTbvaouWKynLBiUZ6SK6A==", + "license": "ISC", + "dependencies": { + "delaunator": "5" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/d3-dispatch": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/d3-dispatch/-/d3-dispatch-3.0.1.tgz", + "integrity": "sha512-rzUyPU/S7rwUflMyLc1ETDeBj0NRuHKKAcvukozwhshr6g6c5d8zh4c2gQjY2bZ0dXeGLWc1PF174P2tVvKhfg==", + "license": "ISC", + "engines": { + "node": ">=12" + } + }, + "node_modules/d3-drag": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/d3-drag/-/d3-drag-3.0.0.tgz", + "integrity": "sha512-pWbUJLdETVA8lQNJecMxoXfH6x+mO2UQo8rSmZ+QqxcbyA3hfeprFgIT//HW2nlHChWeIIMwS2Fq+gEARkhTkg==", + "license": "ISC", + "dependencies": { + "d3-dispatch": "1 - 3", + "d3-selection": "3" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/d3-dsv": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/d3-dsv/-/d3-dsv-3.0.1.tgz", + "integrity": "sha512-UG6OvdI5afDIFP9w4G0mNq50dSOsXHJaRE8arAS5o9ApWnIElp8GZw1Dun8vP8OyHOZ/QJUKUJwxiiCCnUwm+Q==", + "license": "ISC", + "dependencies": { + "commander": "7", + "iconv-lite": "0.6", + "rw": "1" + }, + "bin": { + "csv2json": "bin/dsv2json.js", + "csv2tsv": "bin/dsv2dsv.js", + "dsv2dsv": "bin/dsv2dsv.js", + "dsv2json": "bin/dsv2json.js", + "json2csv": "bin/json2dsv.js", + "json2dsv": "bin/json2dsv.js", + "json2tsv": "bin/json2dsv.js", + "tsv2csv": "bin/dsv2dsv.js", + "tsv2json": "bin/dsv2json.js" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/d3-dsv/node_modules/commander": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/commander/-/commander-7.2.0.tgz", + "integrity": "sha512-QrWXB+ZQSVPmIWIhtEO9H+gwHaMGYiF5ChvoJ+K9ZGHG/sVsa6yiesAD1GC/x46sET00Xlwo1u49RVVVzvcSkw==", + "license": "MIT", + "engines": { + "node": ">= 10" + } + }, + "node_modules/d3-ease": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/d3-ease/-/d3-ease-3.0.1.tgz", + "integrity": "sha512-wR/XK3D3XcLIZwpbvQwQ5fK+8Ykds1ip7A2Txe0yxncXSdq1L9skcG7blcedkOX+ZcgxGAmLX1FrRGbADwzi0w==", + "license": "BSD-3-Clause", + "engines": { + "node": ">=12" + } + }, + "node_modules/d3-fetch": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/d3-fetch/-/d3-fetch-3.0.1.tgz", + "integrity": "sha512-kpkQIM20n3oLVBKGg6oHrUchHM3xODkTzjMoj7aWQFq5QEM+R6E4WkzT5+tojDY7yjez8KgCBRoj4aEr99Fdqw==", + "license": "ISC", + "dependencies": { + "d3-dsv": "1 - 3" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/d3-force": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/d3-force/-/d3-force-3.0.0.tgz", + "integrity": "sha512-zxV/SsA+U4yte8051P4ECydjD/S+qeYtnaIyAs9tgHCqfguma/aAQDjo85A9Z6EKhBirHRJHXIgJUlffT4wdLg==", + "license": "ISC", + "dependencies": { + "d3-dispatch": "1 - 3", + "d3-quadtree": "1 - 3", + "d3-timer": "1 - 3" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/d3-format": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/d3-format/-/d3-format-3.1.2.tgz", + "integrity": "sha512-AJDdYOdnyRDV5b6ArilzCPPwc1ejkHcoyFarqlPqT7zRYjhavcT3uSrqcMvsgh2CgoPbK3RCwyHaVyxYcP2Arg==", + "license": "ISC", + "engines": { + "node": ">=12" + } + }, + "node_modules/d3-geo": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/d3-geo/-/d3-geo-3.1.1.tgz", + "integrity": "sha512-637ln3gXKXOwhalDzinUgY83KzNWZRKbYubaG+fGVuc/dxO64RRljtCTnf5ecMyE1RIdtqpkVcq0IbtU2S8j2Q==", + "license": "ISC", + "dependencies": { + "d3-array": "2.5.0 - 3" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/d3-hierarchy": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/d3-hierarchy/-/d3-hierarchy-3.1.2.tgz", + "integrity": "sha512-FX/9frcub54beBdugHjDCdikxThEqjnR93Qt7PvQTOHxyiNCAlvMrHhclk3cD5VeAaq9fxmfRp+CnWw9rEMBuA==", + "license": "ISC", + "engines": { + "node": ">=12" + } + }, + "node_modules/d3-interpolate": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/d3-interpolate/-/d3-interpolate-3.0.1.tgz", + "integrity": "sha512-3bYs1rOD33uo8aqJfKP3JWPAibgw8Zm2+L9vBKEHJ2Rg+viTR7o5Mmv5mZcieN+FRYaAOWX5SJATX6k1PWz72g==", + "license": "ISC", + "dependencies": { + "d3-color": "1 - 3" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/d3-path": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/d3-path/-/d3-path-3.1.0.tgz", + "integrity": "sha512-p3KP5HCf/bvjBSSKuXid6Zqijx7wIfNW+J/maPs+iwR35at5JCbLUT0LzF1cnjbCHWhqzQTIN2Jpe8pRebIEFQ==", + "license": "ISC", + "engines": { + "node": ">=12" + } + }, + "node_modules/d3-polygon": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/d3-polygon/-/d3-polygon-3.0.1.tgz", + "integrity": "sha512-3vbA7vXYwfe1SYhED++fPUQlWSYTTGmFmQiany/gdbiWgU/iEyQzyymwL9SkJjFFuCS4902BSzewVGsHHmHtXg==", + "license": "ISC", + "engines": { + "node": ">=12" + } + }, + "node_modules/d3-quadtree": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/d3-quadtree/-/d3-quadtree-3.0.1.tgz", + "integrity": "sha512-04xDrxQTDTCFwP5H6hRhsRcb9xxv2RzkcsygFzmkSIOJy3PeRJP7sNk3VRIbKXcog561P9oU0/rVH6vDROAgUw==", + "license": "ISC", + "engines": { + "node": ">=12" + } + }, + "node_modules/d3-random": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/d3-random/-/d3-random-3.0.1.tgz", + "integrity": "sha512-FXMe9GfxTxqd5D6jFsQ+DJ8BJS4E/fT5mqqdjovykEB2oFbTMDVdg1MGFxfQW+FBOGoB++k8swBrgwSHT1cUXQ==", + "license": "ISC", + "engines": { + "node": ">=12" + } + }, + "node_modules/d3-sankey": { + "version": "0.12.3", + "resolved": "https://registry.npmjs.org/d3-sankey/-/d3-sankey-0.12.3.tgz", + "integrity": "sha512-nQhsBRmM19Ax5xEIPLMY9ZmJ/cDvd1BG3UVvt5h3WRxKg5zGRbvnteTyWAbzeSvlh3tW7ZEmq4VwR5mB3tutmQ==", + "license": "BSD-3-Clause", + "dependencies": { + "d3-array": "1 - 2", + "d3-shape": "^1.2.0" + } + }, + "node_modules/d3-sankey/node_modules/d3-array": { + "version": "2.12.1", + "resolved": "https://registry.npmjs.org/d3-array/-/d3-array-2.12.1.tgz", + "integrity": "sha512-B0ErZK/66mHtEsR1TkPEEkwdy+WDesimkM5gpZr5Dsg54BiTA5RXtYW5qTLIAcekaS9xfZrzBLF/OAkB3Qn1YQ==", + "license": "BSD-3-Clause", + "dependencies": { + "internmap": "^1.0.0" + } + }, + "node_modules/d3-sankey/node_modules/d3-path": { + "version": "1.0.9", + "resolved": "https://registry.npmjs.org/d3-path/-/d3-path-1.0.9.tgz", + "integrity": "sha512-VLaYcn81dtHVTjEHd8B+pbe9yHWpXKZUC87PzoFmsFrJqgFwDe/qxfp5MlfsfM1V5E/iVt0MmEbWQ7FVIXh/bg==", + "license": "BSD-3-Clause" + }, + "node_modules/d3-sankey/node_modules/d3-shape": { + "version": "1.3.7", + "resolved": "https://registry.npmjs.org/d3-shape/-/d3-shape-1.3.7.tgz", + "integrity": "sha512-EUkvKjqPFUAZyOlhY5gzCxCeI0Aep04LwIRpsZ/mLFelJiUfnK56jo5JMDSE7yyP2kLSb6LtF+S5chMk7uqPqw==", + "license": "BSD-3-Clause", + "dependencies": { + "d3-path": "1" + } + }, + "node_modules/d3-sankey/node_modules/internmap": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/internmap/-/internmap-1.0.1.tgz", + "integrity": "sha512-lDB5YccMydFBtasVtxnZ3MRBHuaoE8GKsppq+EchKL2U4nK/DmEpPHNH8MZe5HkMtpSiTSOZwfN0tzYjO/lJEw==", + "license": "ISC" + }, + "node_modules/d3-scale": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/d3-scale/-/d3-scale-4.0.2.tgz", + "integrity": "sha512-GZW464g1SH7ag3Y7hXjf8RoUuAFIqklOAq3MRl4OaWabTFJY9PN/E1YklhXLh+OQ3fM9yS2nOkCoS+WLZ6kvxQ==", + "license": "ISC", + "dependencies": { + "d3-array": "2.10.0 - 3", + "d3-format": "1 - 3", + "d3-interpolate": "1.2.0 - 3", + "d3-time": "2.1.1 - 3", + "d3-time-format": "2 - 4" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/d3-scale-chromatic": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/d3-scale-chromatic/-/d3-scale-chromatic-3.1.0.tgz", + "integrity": "sha512-A3s5PWiZ9YCXFye1o246KoscMWqf8BsD9eRiJ3He7C9OBaxKhAd5TFCdEx/7VbKtxxTsu//1mMJFrEt572cEyQ==", + "license": "ISC", + "dependencies": { + "d3-color": "1 - 3", + "d3-interpolate": "1 - 3" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/d3-selection": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/d3-selection/-/d3-selection-3.0.0.tgz", + "integrity": "sha512-fmTRWbNMmsmWq6xJV8D19U/gw/bwrHfNXxrIN+HfZgnzqTHp9jOmKMhsTUjXOJnZOdZY9Q28y4yebKzqDKlxlQ==", + "license": "ISC", + "engines": { + "node": ">=12" + } + }, + "node_modules/d3-shape": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/d3-shape/-/d3-shape-3.2.0.tgz", + "integrity": "sha512-SaLBuwGm3MOViRq2ABk3eLoxwZELpH6zhl3FbAoJ7Vm1gofKx6El1Ib5z23NUEhF9AsGl7y+dzLe5Cw2AArGTA==", + "license": "ISC", + "dependencies": { + "d3-path": "^3.1.0" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/d3-time": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/d3-time/-/d3-time-3.1.0.tgz", + "integrity": "sha512-VqKjzBLejbSMT4IgbmVgDjpkYrNWUYJnbCGo874u7MMKIWsILRX+OpX/gTk8MqjpT1A/c6HY2dCA77ZN0lkQ2Q==", + "license": "ISC", + "dependencies": { + "d3-array": "2 - 3" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/d3-time-format": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/d3-time-format/-/d3-time-format-4.1.0.tgz", + "integrity": "sha512-dJxPBlzC7NugB2PDLwo9Q8JiTR3M3e4/XANkreKSUxF8vvXKqm1Yfq4Q5dl8budlunRVlUUaDUgFt7eA8D6NLg==", + "license": "ISC", + "dependencies": { + "d3-time": "1 - 3" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/d3-timer": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/d3-timer/-/d3-timer-3.0.1.tgz", + "integrity": "sha512-ndfJ/JxxMd3nw31uyKoY2naivF+r29V+Lc0svZxe1JvvIRmi8hUsrMvdOwgS1o6uBHmiz91geQ0ylPP0aj1VUA==", + "license": "ISC", + "engines": { + "node": ">=12" + } + }, + "node_modules/d3-transition": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/d3-transition/-/d3-transition-3.0.1.tgz", + "integrity": "sha512-ApKvfjsSR6tg06xrL434C0WydLr7JewBB3V+/39RMHsaXTOG0zmt/OAXeng5M5LBm0ojmxJrpomQVZ1aPvBL4w==", + "license": "ISC", + "dependencies": { + "d3-color": "1 - 3", + "d3-dispatch": "1 - 3", + "d3-ease": "1 - 3", + "d3-interpolate": "1 - 3", + "d3-timer": "1 - 3" + }, + "engines": { + "node": ">=12" + }, + "peerDependencies": { + "d3-selection": "2 - 3" + } + }, + "node_modules/d3-zoom": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/d3-zoom/-/d3-zoom-3.0.0.tgz", + "integrity": "sha512-b8AmV3kfQaqWAuacbPuNbL6vahnOJflOhexLzMMNLga62+/nh0JzvJ0aO/5a5MVgUFGS7Hu1P9P03o3fJkDCyw==", + "license": "ISC", + "dependencies": { + "d3-dispatch": "1 - 3", + "d3-drag": "2 - 3", + "d3-interpolate": "1 - 3", + "d3-selection": "2 - 3", + "d3-transition": "2 - 3" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/dagre-d3-es": { + "version": "7.0.14", + "resolved": "https://registry.npmjs.org/dagre-d3-es/-/dagre-d3-es-7.0.14.tgz", + "integrity": "sha512-P4rFMVq9ESWqmOgK+dlXvOtLwYg0i7u0HBGJER0LZDJT2VHIPAMZ/riPxqJceWMStH5+E61QxFra9kIS3AqdMg==", + "license": "MIT", + "dependencies": { + "d3": "^7.9.0", + "lodash-es": "^4.17.21" + } + }, + "node_modules/data-urls": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/data-urls/-/data-urls-7.0.0.tgz", + "integrity": "sha512-23XHcCF+coGYevirZceTVD7NdJOqVn+49IHyxgszm+JIiHLoB2TkmPtsYkNWT1pvRSGkc35L6NHs0yHkN2SumA==", + "dev": true, + "license": "MIT", + "dependencies": { + "whatwg-mimetype": "^5.0.0", + "whatwg-url": "^16.0.0" + }, + "engines": { + "node": "^20.19.0 || ^22.12.0 || >=24.0.0" + } + }, + "node_modules/dayjs": { + "version": "1.11.23", + "resolved": "https://registry.npmjs.org/dayjs/-/dayjs-1.11.23.tgz", + "integrity": "sha512-QDTCU0M0MxR3hQfnlDJfwekQiaanm1ubOD231u73WBckQ/fsamwRLiE2GBz6D3a/xF1NgfiDLJjXBa1hYOYTtQ==", + "license": "MIT" + }, + "node_modules/debug": { + "version": "4.4.3", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.4.3.tgz", + "integrity": "sha512-RGwwWnwQvkVfavKVt22FGLw+xYSdzARwm0ru6DhTVA3umU5hZc28V3kO4stgYryrTlLpuvgI9GiijltAjNbcqA==", + "dev": true, + "license": "MIT", + "dependencies": { + "ms": "^2.1.3" + }, + "engines": { + "node": ">=6.0" + }, + "peerDependenciesMeta": { + "supports-color": { + "optional": true + } + } + }, + "node_modules/decimal.js": { + "version": "10.6.0", + "resolved": "https://registry.npmjs.org/decimal.js/-/decimal.js-10.6.0.tgz", + "integrity": "sha512-YpgQiITW3JXGntzdUmyUR1V812Hn8T1YVXhCu+wO3OpS4eU9l4YdD3qjyiKdV6mvV29zapkMeD390UVEf2lkUg==", + "dev": true, + "license": "MIT" + }, + "node_modules/dedent": { + "version": "1.7.2", + "resolved": "https://registry.npmjs.org/dedent/-/dedent-1.7.2.tgz", + "integrity": "sha512-WzMx3mW98SN+zn3hgemf4OzdmyNhhhKz5Ay0pUfQiMQ3e1g+xmTJWp/pKdwKVXhdSkAEGIIzqeuWrL3mV/AXbA==", + "dev": true, + "license": "MIT", + "peerDependencies": { + "babel-plugin-macros": "^3.1.0" + }, + "peerDependenciesMeta": { + "babel-plugin-macros": { + "optional": true + } + } + }, + "node_modules/deep-equal": { + "version": "2.2.3", + "resolved": "https://registry.npmjs.org/deep-equal/-/deep-equal-2.2.3.tgz", + "integrity": "sha512-ZIwpnevOurS8bpT4192sqAowWM76JDKSHYzMLty3BZGSswgq6pBaH3DhCSW5xVAZICZyKdOBPjwww5wfgT/6PA==", + "dev": true, + "license": "MIT", + "dependencies": { + "array-buffer-byte-length": "^1.0.0", + "call-bind": "^1.0.5", + "es-get-iterator": "^1.1.3", + "get-intrinsic": "^1.2.2", + "is-arguments": "^1.1.1", + "is-array-buffer": "^3.0.2", + "is-date-object": "^1.0.5", + "is-regex": "^1.1.4", + "is-shared-array-buffer": "^1.0.2", + "isarray": "^2.0.5", + "object-is": "^1.1.5", + "object-keys": "^1.1.1", + "object.assign": "^4.1.4", + "regexp.prototype.flags": "^1.5.1", + "side-channel": "^1.0.4", + "which-boxed-primitive": "^1.0.2", + "which-collection": "^1.0.1", + "which-typed-array": "^1.1.13" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/deep-is": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/deep-is/-/deep-is-0.1.4.tgz", + "integrity": "sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==", + "dev": true, + "license": "MIT" + }, + "node_modules/deepmerge": { + "version": "4.3.1", + "resolved": "https://registry.npmjs.org/deepmerge/-/deepmerge-4.3.1.tgz", + "integrity": "sha512-3sUqbMEc77XqpdNO7FRyRog+eW3ph+GYCbj+rK+uYyRMuwsVy0rMiVtPn+QJlKFvWP/1PYpapqYn0Me2knFn+A==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/define-data-property": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/define-data-property/-/define-data-property-1.1.4.tgz", + "integrity": "sha512-rBMvIzlpA8v6E+SJZoo++HAYqsLrkg7MSfIinMPFhmkorw7X+dOXVJQs+QT69zGkzMyfDnIMN2Wid1+NbL3T+A==", + "dev": true, + "license": "MIT", + "dependencies": { + "es-define-property": "^1.0.0", + "es-errors": "^1.3.0", + "gopd": "^1.0.1" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/define-properties": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/define-properties/-/define-properties-1.2.1.tgz", + "integrity": "sha512-8QmQKqEASLd5nx0U1B1okLElbUuuttJ/AnYmRXbbbGDWh6uS208EjD4Xqq/I9wK7u0v6O08XhTWnt5XtEbR6Dg==", + "dev": true, + "license": "MIT", + "dependencies": { + "define-data-property": "^1.0.1", + "has-property-descriptors": "^1.0.0", + "object-keys": "^1.1.1" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/delaunator": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/delaunator/-/delaunator-5.1.0.tgz", + "integrity": "sha512-AGrQ4QSgssa1NGmWmLPqN5NY2KajF5MqxetNEO+o0n3ZwZZeTmt7bBnvzHWrmkZFxGgr4HdyFgelzgi06otLuQ==", + "license": "ISC", + "dependencies": { + "robust-predicates": "^3.0.2" + } + }, + "node_modules/dequal": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/dequal/-/dequal-2.0.3.tgz", + "integrity": "sha512-0je+qPKHEMohvfRTCEo3CrPG6cAzAYgmzKyxRiYSSDkS6eGJdyVJm7WaYA5ECaAD9wLB2T4EEeymA5aFVcYXCA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/detect-libc": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/detect-libc/-/detect-libc-2.1.2.tgz", + "integrity": "sha512-Btj2BOOO83o3WyH59e8MgXsxEQVcarkUOpEYrubB0urwnN10yQ364rsiByU11nZlqWYZm05i/of7io4mzihBtQ==", + "dev": true, + "license": "Apache-2.0", + "engines": { + "node": ">=8" + } + }, + "node_modules/detect-newline": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/detect-newline/-/detect-newline-3.1.0.tgz", + "integrity": "sha512-TLz+x/vEXm/Y7P7wn1EJFNLxYpUD4TgMosxY6fAVJUnJMbupHBOncxyWUG9OpTaH9EBD7uFI5LfEgmMOc54DsA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/dom-accessibility-api": { + "version": "0.5.16", + "resolved": "https://registry.npmjs.org/dom-accessibility-api/-/dom-accessibility-api-0.5.16.tgz", + "integrity": "sha512-X7BJ2yElsnOJ30pZF4uIIDfBEVgF4XEBxL9Bxhy6dnrm5hkzqmsWHGTiHqRiITNhMyFLyAiWndIJP7Z1NTteDg==", + "dev": true, + "license": "MIT" + }, + "node_modules/dompurify": { + "version": "3.4.15", + "resolved": "https://registry.npmjs.org/dompurify/-/dompurify-3.4.15.tgz", + "integrity": "sha512-EUBjM+B+lkDE41iE82DDSCfkoPGfXx8IxFxPMjNzm/Uk4xDet77rTN9wqlxlVg71kK7XGuUMv6wUxJUwwv+Xyw==", + "license": "(MPL-2.0 OR Apache-2.0)", + "optionalDependencies": { + "@types/trusted-types": "^2.0.7" + } + }, + "node_modules/dunder-proto": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/dunder-proto/-/dunder-proto-1.0.1.tgz", + "integrity": "sha512-KIN/nDJBQRcXw0MLVhZE9iQHmG68qAVIBg9CqmUYjmQIhgij9U5MFvrqkUL5FbtyyzZuOeOt0zdeRe4UY7ct+A==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bind-apply-helpers": "^1.0.1", + "es-errors": "^1.3.0", + "gopd": "^1.2.0" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/eastasianwidth": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/eastasianwidth/-/eastasianwidth-0.2.0.tgz", + "integrity": "sha512-I88TYZWc9XiYHRQ4/3c5rjjfgkjhLyW2luGIheGERbNQ6OY7yTybanSpDXZa8y7VUP9YmDcYa+eyq4ca7iLqWA==", + "dev": true, + "license": "MIT" + }, + "node_modules/electron-to-chromium": { + "version": "1.5.427", + "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.427.tgz", + "integrity": "sha512-n14zb3FdsChZ2BNobqNHAJMcP3ifFv4paox2LvCrfVAQcqGiSURgbJl+PfMpHVCNFkStnNc+RRVtPBTVW5PDgw==", + "dev": true, + "license": "ISC" + }, + "node_modules/elkjs": { + "version": "0.9.3", + "resolved": "https://registry.npmjs.org/elkjs/-/elkjs-0.9.3.tgz", + "integrity": "sha512-f/ZeWvW/BCXbhGEf1Ujp29EASo/lk1FDnETgNKwJrsVvGZhUWCZyg3xLJjAsxfOmt8KjswHmI5EwCQcPMpOYhQ==", + "license": "EPL-2.0" + }, + "node_modules/emittery": { + "version": "0.13.1", + "resolved": "https://registry.npmjs.org/emittery/-/emittery-0.13.1.tgz", + "integrity": "sha512-DeWwawk6r5yR9jFgnDKYt4sLS0LmHJJi3ZOnb5/JdbYwj3nW+FxQnHIjhBKz8YLC7oRNPVM9NQ47I3CVx34eqQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sindresorhus/emittery?sponsor=1" + } + }, + "node_modules/emoji-regex": { + "version": "8.0.0", + "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", + "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", + "dev": true, + "license": "MIT" + }, + "node_modules/entities": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/entities/-/entities-6.0.1.tgz", + "integrity": "sha512-aN97NXWF6AWBTahfVOIrB/NShkzi5H7F9r1s9mD3cDj4Ko5f2qhhVoYMibXF7GlLveb/D2ioWay8lxI97Ven3g==", + "dev": true, + "license": "BSD-2-Clause", + "engines": { + "node": ">=0.12" + }, + "funding": { + "url": "https://github.com/fb55/entities?sponsor=1" + } + }, + "node_modules/error-ex": { + "version": "1.3.4", + "resolved": "https://registry.npmjs.org/error-ex/-/error-ex-1.3.4.tgz", + "integrity": "sha512-sqQamAnR14VgCr1A618A3sGrygcpK+HEbenA/HiEAkkUwcZIIB/tgWqHFxWgOyDh4nB4JCRimh79dR5Ywc9MDQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "is-arrayish": "^0.2.1" + } + }, + "node_modules/es-define-property": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/es-define-property/-/es-define-property-1.0.1.tgz", + "integrity": "sha512-e3nRfgfUZ4rNGL232gUgX06QNyyez04KdjFrF+LTRoOXmrOgFKDg4BCdsjW8EnT69eqdYGmRpJwiPVYNrCaW3g==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/es-errors": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/es-errors/-/es-errors-1.3.0.tgz", + "integrity": "sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/es-get-iterator": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/es-get-iterator/-/es-get-iterator-1.1.3.tgz", + "integrity": "sha512-sPZmqHBe6JIiTfN5q2pEi//TwxmAFHwj/XEuYjTuse78i8KxaqMTTzxPoFKuzRpDpTJ+0NAbpfenkmH2rePtuw==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bind": "^1.0.2", + "get-intrinsic": "^1.1.3", + "has-symbols": "^1.0.3", + "is-arguments": "^1.1.1", + "is-map": "^2.0.2", + "is-set": "^2.0.2", + "is-string": "^1.0.7", + "isarray": "^2.0.5", + "stop-iteration-iterator": "^1.0.0" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/es-module-lexer": { + "version": "2.3.2", + "resolved": "https://registry.npmjs.org/es-module-lexer/-/es-module-lexer-2.3.2.tgz", + "integrity": "sha512-poHGpORABojJJucnV9KbOavETW8lBVnphkW77ER5/BQ5Fz7oXSoCNek7IH3vR5nRjdsEz926ibFYX8KtLQmdyw==", + "dev": true, + "license": "MIT" + }, + "node_modules/es-object-atoms": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/es-object-atoms/-/es-object-atoms-1.1.2.tgz", + "integrity": "sha512-HWcBoN6NileqtSydK2FqHbS/LoDd2pqrnQHLyJzBj4kOp/ky2MWMN694xOfkK8/SnUsW2DH7EfyVlydKCsm1Zw==", + "dev": true, + "license": "MIT", + "dependencies": { + "es-errors": "^1.3.0" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/es-toolkit": { + "version": "1.52.0", + "resolved": "https://registry.npmjs.org/es-toolkit/-/es-toolkit-1.52.0.tgz", + "integrity": "sha512-XTNEJQh1tY1ZJVcf6ayP/2n4ZPyaHlW2FWs7xvw5ddPuhUVjLD3olQVQS7kf58JbAB48iL0uL/jerTrjtV3lDA==", + "license": "MIT", + "workspaces": [ + "docs", + "benchmarks", + "tests/types", + "tests/browser-compat" + ] + }, + "node_modules/esbuild": { + "version": "0.28.2", + "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.28.2.tgz", + "integrity": "sha512-HKVLS8dvII+xoKW9kmqxbRKrnWEXfJJr/FZhhJmiqIB0e053QNYFqOBouTMO/k5sID4MvCiUCvv8b9M4h32wIA==", + "dev": true, + "hasInstallScript": true, + "license": "MIT", + "bin": { + "esbuild": "bin/esbuild" + }, + "engines": { + "node": ">=18" + }, + "optionalDependencies": { + "@esbuild/aix-ppc64": "0.28.2", + "@esbuild/android-arm": "0.28.2", + "@esbuild/android-arm64": "0.28.2", + "@esbuild/android-x64": "0.28.2", + "@esbuild/darwin-arm64": "0.28.2", + "@esbuild/darwin-x64": "0.28.2", + "@esbuild/freebsd-arm64": "0.28.2", + "@esbuild/freebsd-x64": "0.28.2", + "@esbuild/linux-arm": "0.28.2", + "@esbuild/linux-arm64": "0.28.2", + "@esbuild/linux-ia32": "0.28.2", + "@esbuild/linux-loong64": "0.28.2", + "@esbuild/linux-mips64el": "0.28.2", + "@esbuild/linux-ppc64": "0.28.2", + "@esbuild/linux-riscv64": "0.28.2", + "@esbuild/linux-s390x": "0.28.2", + "@esbuild/linux-x64": "0.28.2", + "@esbuild/netbsd-arm64": "0.28.2", + "@esbuild/netbsd-x64": "0.28.2", + "@esbuild/openbsd-arm64": "0.28.2", + "@esbuild/openbsd-x64": "0.28.2", + "@esbuild/openharmony-arm64": "0.28.2", + "@esbuild/sunos-x64": "0.28.2", + "@esbuild/win32-arm64": "0.28.2", + "@esbuild/win32-ia32": "0.28.2", + "@esbuild/win32-x64": "0.28.2" + } + }, + "node_modules/escalade": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.2.0.tgz", + "integrity": "sha512-WUj2qlxaQtO4g6Pq5c29GTcWGDyd8itL8zTlipgECz3JesAiiOKotd8JU6otB3PACgG6xkJUyVhboMS+bje/jA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/escape-string-regexp": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz", + "integrity": "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/eslint": { + "version": "10.10.0", + "resolved": "https://registry.npmjs.org/eslint/-/eslint-10.10.0.tgz", + "integrity": "sha512-NPXn6r5zl4uET1DAVPaOwzX3rut4c0wcmw3dWJAfOsTM5+TogXo0DDjz8pwm/hL8cyVNpHqeK4JpN0NjnyFFNw==", + "dev": true, + "license": "MIT", + "workspaces": [ + "packages/*" + ], + "dependencies": { + "@eslint-community/eslint-utils": "^4.8.0", + "@eslint-community/regexpp": "^4.12.2", + "@eslint/config-array": "^0.23.5", + "@eslint/config-helpers": "^0.7.0", + "@eslint/core": "^1.2.1", + "@eslint/plugin-kit": "^0.7.3", + "@humanfs/node": "^0.16.6", + "@humanwhocodes/module-importer": "^1.0.1", + "@humanwhocodes/retry": "^0.4.2", + "@types/estree": "^1.0.6", + "ajv": "^6.14.0", + "cross-spawn": "^7.0.6", + "debug": "^4.3.2", + "escape-string-regexp": "^4.0.0", + "eslint-scope": "^9.1.2", + "eslint-visitor-keys": "^5.0.1", + "espree": "^11.2.0", + "esquery": "^1.7.0", + "esutils": "^2.0.2", + "fast-deep-equal": "^3.1.3", + "file-entry-cache": "11.1.5 || >11.1.6 <12", + "find-up": "^5.0.0", + "glob-parent": "^6.0.2", + "ignore": "^5.2.0", + "imurmurhash": "^0.1.4", + "is-glob": "^4.0.0", + "json-stable-stringify-without-jsonify": "^1.0.1", + "minimatch": "^10.2.5", + "natural-compare": "^1.4.0", + "optionator": "^0.9.3" + }, + "bin": { + "eslint": "bin/eslint.js" + }, + "engines": { + "node": "^20.19.0 || ^22.13.0 || >=24" + }, + "funding": { + "url": "https://eslint.org/donate" + }, + "peerDependencies": { + "jiti": "*" + }, + "peerDependenciesMeta": { + "jiti": { + "optional": true + } + } + }, + "node_modules/eslint-scope": { + "version": "9.1.2", + "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-9.1.2.tgz", + "integrity": "sha512-xS90H51cKw0jltxmvmHy2Iai1LIqrfbw57b79w/J7MfvDfkIkFZ+kj6zC3BjtUwh150HsSSdxXZcsuv72miDFQ==", + "dev": true, + "license": "BSD-2-Clause", + "dependencies": { + "@types/esrecurse": "^4.3.1", + "@types/estree": "^1.0.8", + "esrecurse": "^4.3.0", + "estraverse": "^5.2.0" + }, + "engines": { + "node": "^20.19.0 || ^22.13.0 || >=24" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/eslint-visitor-keys": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-5.0.1.tgz", + "integrity": "sha512-tD40eHxA35h0PEIZNeIjkHoDR4YjjJp34biM0mDvplBe//mB+IHCqHDGV7pxF+7MklTvighcCPPZC7ynWyjdTA==", + "dev": true, + "license": "Apache-2.0", + "engines": { + "node": "^20.19.0 || ^22.13.0 || >=24" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/eslint/node_modules/find-up": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-5.0.0.tgz", + "integrity": "sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng==", + "dev": true, + "license": "MIT", + "dependencies": { + "locate-path": "^6.0.0", + "path-exists": "^4.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/eslint/node_modules/locate-path": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-6.0.0.tgz", + "integrity": "sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw==", + "dev": true, + "license": "MIT", + "dependencies": { + "p-locate": "^5.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/eslint/node_modules/p-locate": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-5.0.0.tgz", + "integrity": "sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw==", + "dev": true, + "license": "MIT", + "dependencies": { + "p-limit": "^3.0.2" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/espree": { + "version": "11.2.0", + "resolved": "https://registry.npmjs.org/espree/-/espree-11.2.0.tgz", + "integrity": "sha512-7p3DrVEIopW1B1avAGLuCSh1jubc01H2JHc8B4qqGblmg5gI9yumBgACjWo4JlIc04ufug4xJ3SQI8HkS/Rgzw==", + "dev": true, + "license": "BSD-2-Clause", + "dependencies": { + "acorn": "^8.16.0", + "acorn-jsx": "^5.3.2", + "eslint-visitor-keys": "^5.0.1" + }, + "engines": { + "node": "^20.19.0 || ^22.13.0 || >=24" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/esprima": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz", + "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==", + "dev": true, + "license": "BSD-2-Clause", + "bin": { + "esparse": "bin/esparse.js", + "esvalidate": "bin/esvalidate.js" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/esquery": { + "version": "1.7.0", + "resolved": "https://registry.npmjs.org/esquery/-/esquery-1.7.0.tgz", + "integrity": "sha512-Ap6G0WQwcU/LHsvLwON1fAQX9Zp0A2Y6Y/cJBl9r/JbW90Zyg4/zbG6zzKa2OTALELarYHmKu0GhpM5EO+7T0g==", + "dev": true, + "license": "BSD-3-Clause", + "dependencies": { + "estraverse": "^5.1.0" + }, + "engines": { + "node": ">=0.10" + } + }, + "node_modules/esrecurse": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/esrecurse/-/esrecurse-4.3.0.tgz", + "integrity": "sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag==", + "dev": true, + "license": "BSD-2-Clause", + "dependencies": { + "estraverse": "^5.2.0" + }, + "engines": { + "node": ">=4.0" + } + }, + "node_modules/estraverse": { + "version": "5.3.0", + "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz", + "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==", + "dev": true, + "license": "BSD-2-Clause", + "engines": { + "node": ">=4.0" + } + }, + "node_modules/esutils": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz", + "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==", + "dev": true, + "license": "BSD-2-Clause", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/execa": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/execa/-/execa-5.1.1.tgz", + "integrity": "sha512-8uSpZZocAZRBAPIEINJj3Lo9HyGitllczc27Eh5YYojjMFMn8yHMDMaUHE2Jqfq05D/wucwI4JGURyXt1vchyg==", + "dev": true, + "license": "MIT", + "dependencies": { + "cross-spawn": "^7.0.3", + "get-stream": "^6.0.0", + "human-signals": "^2.1.0", + "is-stream": "^2.0.0", + "merge-stream": "^2.0.0", + "npm-run-path": "^4.0.1", + "onetime": "^5.1.2", + "signal-exit": "^3.0.3", + "strip-final-newline": "^2.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sindresorhus/execa?sponsor=1" + } + }, + "node_modules/exit-x": { + "version": "0.2.2", + "resolved": "https://registry.npmjs.org/exit-x/-/exit-x-0.2.2.tgz", + "integrity": "sha512-+I6B/IkJc1o/2tiURyz/ivu/O0nKNEArIUB5O7zBrlDVJr22SCLH3xTeEry428LvFhRzIA1g8izguxJ/gbNcVQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/expect": { + "version": "30.5.1", + "resolved": "https://registry.npmjs.org/expect/-/expect-30.5.1.tgz", + "integrity": "sha512-m8YrYgvKe9+9gEnWEuKz+qCGfHqkrff7PPfyDnOFkjsfYRKqiYyOxDFMFieCGAuhtk/VNm63tvNgKZVzVy+Hvg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jest/expect-utils": "30.5.1", + "@jest/get-type": "30.5.0", + "jest-matcher-utils": "30.5.1", + "jest-message-util": "30.5.1", + "jest-mock": "30.5.1", + "jest-util": "30.5.1" + }, + "engines": { + "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0" + } + }, + "node_modules/fast-deep-equal": { + "version": "3.1.3", + "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz", + "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==", + "dev": true, + "license": "MIT" + }, + "node_modules/fast-json-stable-stringify": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz", + "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==", + "dev": true, + "license": "MIT" + }, + "node_modules/fast-levenshtein": { + "version": "2.0.6", + "resolved": "https://registry.npmjs.org/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz", + "integrity": "sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==", + "dev": true, + "license": "MIT" + }, + "node_modules/fb-watchman": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/fb-watchman/-/fb-watchman-2.0.2.tgz", + "integrity": "sha512-p5161BqbuCaSnB8jIbzQHOlpgsPmK5rJVDfDKO91Axs5NC1uu3HRQm6wt9cd9/+GtQQIO53JdGXXoyDpTAsgYA==", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "bser": "2.1.1" + } + }, + "node_modules/fdir": { + "version": "6.5.0", + "resolved": "https://registry.npmjs.org/fdir/-/fdir-6.5.0.tgz", + "integrity": "sha512-tIbYtZbucOs0BRGqPJkshJUYdL+SDH7dVM8gjy+ERp3WAUjLEFJE+02kanyHtwjWOnwrKYBiwAmM0p4kLJAnXg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=12.0.0" + }, + "peerDependencies": { + "picomatch": "^3 || ^4" + }, + "peerDependenciesMeta": { + "picomatch": { + "optional": true + } + } + }, + "node_modules/file-entry-cache": { + "version": "11.1.5", + "resolved": "https://registry.npmjs.org/file-entry-cache/-/file-entry-cache-11.1.5.tgz", + "integrity": "sha512-+PFTHITI08JIGhnNpGNI8T8inUpgZfk3GNEqfT9R2zZV2iFXg3CvqzSl/uEhs7TSGujYRELEANyDvS8Fj7+S7Q==", + "dev": true, + "license": "MIT", + "dependencies": { + "flat-cache": "^6.1.23" + } + }, + "node_modules/find-up": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz", + "integrity": "sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==", + "dev": true, + "license": "MIT", + "dependencies": { + "locate-path": "^5.0.0", + "path-exists": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/flat-cache": { + "version": "6.1.23", + "resolved": "https://registry.npmjs.org/flat-cache/-/flat-cache-6.1.23.tgz", + "integrity": "sha512-f++BY9pTk+983xK1FLzlLpmM0i0z+jHmx3QESGkURMXujQZz1k5wzwX6hjnQ8goaD0B+sYnDK1yZ6MTyZfUaqA==", + "dev": true, + "license": "MIT", + "dependencies": { + "cacheable": "^2.5.0", + "flatted": "^3.4.2", + "hookified": "^1.15.0" + } + }, + "node_modules/flatted": { + "version": "3.4.2", + "resolved": "https://registry.npmjs.org/flatted/-/flatted-3.4.2.tgz", + "integrity": "sha512-PjDse7RzhcPkIJwy5t7KPWQSZ9cAbzQXcafsetQoD7sOJRQlGikNbx7yZp2OotDnJyrDcbyRq3Ttb18iYOqkxA==", + "dev": true, + "license": "ISC" + }, + "node_modules/for-each": { + "version": "0.3.5", + "resolved": "https://registry.npmjs.org/for-each/-/for-each-0.3.5.tgz", + "integrity": "sha512-dKx12eRCVIzqCxFGplyFKJMPvLEWgmNtUrpTiJIR5u97zEhRG8ySrtboPHZXx7daLxQVrl643cTzbab2tkQjxg==", + "dev": true, + "license": "MIT", + "dependencies": { + "is-callable": "^1.2.7" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/foreground-child": { + "version": "3.3.1", + "resolved": "https://registry.npmjs.org/foreground-child/-/foreground-child-3.3.1.tgz", + "integrity": "sha512-gIXjKqtFuWEgzFRJA9WCQeSJLZDjgJUOMCMzxtvFq/37KojM1BFGufqsCy0r4qSQmYLsZYMeyRqzIWOMup03sw==", + "dev": true, + "license": "ISC", + "dependencies": { + "cross-spawn": "^7.0.6", + "signal-exit": "^4.0.1" + }, + "engines": { + "node": ">=14" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/foreground-child/node_modules/signal-exit": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-4.1.0.tgz", + "integrity": "sha512-bzyZ1e88w9O1iNJbKnOlvYTrWPDl46O1bG0D3XInv+9tkPrxrN8jUUTiFlDkkmKWgn1M6CfIA13SuGqOa9Korw==", + "dev": true, + "license": "ISC", + "engines": { + "node": ">=14" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/fsevents": { + "version": "2.3.3", + "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz", + "integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==", + "dev": true, + "hasInstallScript": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": "^8.16.0 || ^10.6.0 || >=11.0.0" + } + }, + "node_modules/function-bind": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz", + "integrity": "sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==", + "dev": true, + "license": "MIT", + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/functions-have-names": { + "version": "1.2.3", + "resolved": "https://registry.npmjs.org/functions-have-names/-/functions-have-names-1.2.3.tgz", + "integrity": "sha512-xckBUXyTIqT97tq2x2AMb+g163b5JFysYk0x4qxNFwbfQkmNZoiRHb6sPzI9/QV33WeuvVYBUIiD4NzNIyqaRQ==", + "dev": true, + "license": "MIT", + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/gensync": { + "version": "1.0.0-beta.2", + "resolved": "https://registry.npmjs.org/gensync/-/gensync-1.0.0-beta.2.tgz", + "integrity": "sha512-3hN7NaskYvMDLQY55gnW3NQ+mesEAepTqlg+VEbj7zzqEMBVNhzcGYYeqFo/TlYz6eQiFcp1HcsCZO+nGgS8zg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/get-caller-file": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-2.0.5.tgz", + "integrity": "sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==", + "dev": true, + "license": "ISC", + "engines": { + "node": "6.* || 8.* || >= 10.*" + } + }, + "node_modules/get-intrinsic": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.3.0.tgz", + "integrity": "sha512-9fSjSaos/fRIVIp+xSJlE6lfwhES7LNtKaCBIamHsjr2na1BiABJPo0mOjjz8GJDURarmCPGqaiVg5mfjb98CQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bind-apply-helpers": "^1.0.2", + "es-define-property": "^1.0.1", + "es-errors": "^1.3.0", + "es-object-atoms": "^1.1.1", + "function-bind": "^1.1.2", + "get-proto": "^1.0.1", + "gopd": "^1.2.0", + "has-symbols": "^1.1.0", + "hasown": "^2.0.2", + "math-intrinsics": "^1.1.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/get-package-type": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/get-package-type/-/get-package-type-0.1.0.tgz", + "integrity": "sha512-pjzuKtY64GYfWizNAJ0fr9VqttZkNiK2iS430LtIHzjBEr6bX8Am2zm4sW4Ro5wjWW5cAlRL1qAMTcXbjNAO2Q==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8.0.0" + } + }, + "node_modules/get-proto": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/get-proto/-/get-proto-1.0.1.tgz", + "integrity": "sha512-sTSfBjoXBp89JvIKIefqw7U2CCebsc74kiY6awiGogKtoSGbgjYE/G/+l9sF3MWFPNc9IcoOC4ODfKHfxFmp0g==", + "dev": true, + "license": "MIT", + "dependencies": { + "dunder-proto": "^1.0.1", + "es-object-atoms": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/get-stream": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-6.0.1.tgz", + "integrity": "sha512-ts6Wi+2j3jQjqi70w5AlN8DFnkSwC+MqmxEzdEALB2qXZYV3X/b1CTfgPLGJNMeAWxdPfU8FO1ms3NUfaHCPYg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/glob": { + "version": "13.0.6", + "resolved": "https://registry.npmjs.org/glob/-/glob-13.0.6.tgz", + "integrity": "sha512-Wjlyrolmm8uDpm/ogGyXZXb1Z+Ca2B8NbJwqBVg0axK9GbBeoS7yGV6vjXnYdGm6X53iehEuxxbyiKp8QmN4Vw==", + "dev": true, + "license": "BlueOak-1.0.0", + "dependencies": { + "minimatch": "^10.2.2", + "minipass": "^7.1.3", + "path-scurry": "^2.0.2" + }, + "engines": { + "node": "18 || 20 || >=22" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/glob-parent": { + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-6.0.2.tgz", + "integrity": "sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==", + "dev": true, + "license": "ISC", + "dependencies": { + "is-glob": "^4.0.3" + }, + "engines": { + "node": ">=10.13.0" + } + }, + "node_modules/globals": { + "version": "17.12.0", + "resolved": "https://registry.npmjs.org/globals/-/globals-17.12.0.tgz", + "integrity": "sha512-cezEd/DTyyht9cvSSURyygXPfy04GtWO/5e6ZPvH7fCtjKz9PYOmuawphw1Ctd1f6C+5JypXfGD7ahNMXvevBA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=18" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/gopd": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/gopd/-/gopd-1.2.0.tgz", + "integrity": "sha512-ZUKRh6/kUFoAiTAtTYPZJ3hw9wNxx+BIBOijnlG9PnrJsCcSjs1wyyD6vJpaYtgnzDrKYRSqf3OO6Rfa93xsRg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/graceful-fs": { + "version": "4.2.11", + "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.11.tgz", + "integrity": "sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==", + "dev": true, + "license": "ISC" + }, + "node_modules/hachure-fill": { + "version": "0.5.2", + "resolved": "https://registry.npmjs.org/hachure-fill/-/hachure-fill-0.5.2.tgz", + "integrity": "sha512-3GKBOn+m2LX9iq+JC1064cSFprJY4jL1jCXTcpnfER5HYE2l/4EfWSGzkPa/ZDBmYI0ZOEj5VHV/eKnPGkHuOg==", + "license": "MIT" + }, + "node_modules/handlebars": { + "version": "4.7.9", + "resolved": "https://registry.npmjs.org/handlebars/-/handlebars-4.7.9.tgz", + "integrity": "sha512-4E71E0rpOaQuJR2A3xDZ+GM1HyWYv1clR58tC8emQNeQe3RH7MAzSbat+V0wG78LQBo6m6bzSG/L4pBuCsgnUQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "minimist": "^1.2.5", + "neo-async": "^2.6.2", + "source-map": "^0.6.1", + "wordwrap": "^1.0.0" + }, + "bin": { + "handlebars": "bin/handlebars" + }, + "engines": { + "node": ">=0.4.7" + }, + "optionalDependencies": { + "uglify-js": "^3.1.4" + } + }, + "node_modules/harmony-reflect": { + "version": "1.6.2", + "resolved": "https://registry.npmjs.org/harmony-reflect/-/harmony-reflect-1.6.2.tgz", + "integrity": "sha512-HIp/n38R9kQjDEziXyDTuW3vvoxxyxjxFzXLrBr18uB47GnSt+G9D29fqrpM5ZkspMcPICud3XsBJQ4Y2URg8g==", + "dev": true, + "license": "(Apache-2.0 OR MPL-1.1)" + }, + "node_modules/has-bigints": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/has-bigints/-/has-bigints-1.1.0.tgz", + "integrity": "sha512-R3pbpkcIqv2Pm3dUwgjclDRVmWpTJW2DcMzcIhEXEx1oh/CEMObMm3KLmRJOdvhM7o4uQBnwr8pzRK2sJWIqfg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/has-property-descriptors": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/has-property-descriptors/-/has-property-descriptors-1.0.2.tgz", + "integrity": "sha512-55JNKuIW+vq4Ke1BjOTjM2YctQIvCT7GFzHwmfZPGo5wnrgkid0YQtnAleFSqumZm4az3n2BS+erby5ipJdgrg==", + "dev": true, + "license": "MIT", + "dependencies": { + "es-define-property": "^1.0.0" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/has-symbols": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.1.0.tgz", + "integrity": "sha512-1cDNdwJ2Jaohmb3sg4OmKaMBwuC48sYni5HUw2DvsC8LjGTLK9h+eb1X6RyuOHe4hT0ULCW68iomhjUoKUqlPQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/has-tostringtag": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/has-tostringtag/-/has-tostringtag-1.0.2.tgz", + "integrity": "sha512-NqADB8VjPFLM2V0VvHUewwwsw0ZWBaIdgo+ieHtK3hasLz4qeCRjYcqfB6AQrBggRKppKF8L52/VqdVsO47Dlw==", + "dev": true, + "license": "MIT", + "dependencies": { + "has-symbols": "^1.0.3" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/hashery": { + "version": "1.5.1", + "resolved": "https://registry.npmjs.org/hashery/-/hashery-1.5.1.tgz", + "integrity": "sha512-iZyKG96/JwPz1N55vj2Ie2vXbhu440zfUfJvSwEqEbeLluk7NnapfGqa7LH0mOsnDxTF85Mx8/dyR6HfqcbmbQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "hookified": "^1.15.0" + }, + "engines": { + "node": ">=20" + } + }, + "node_modules/hasown": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.4.tgz", + "integrity": "sha512-T2UbfbBEF32wiepXIsMlTW9+dDYC6wMh/t/vYA4tuOMKqWz/n3vr1NFSxQiyP+zk2mXsoMA/i/7qV6LKut1t1A==", + "dev": true, + "license": "MIT", + "dependencies": { + "function-bind": "^1.1.2" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/hookified": { + "version": "1.15.1", + "resolved": "https://registry.npmjs.org/hookified/-/hookified-1.15.1.tgz", + "integrity": "sha512-MvG/clsADq1GPM2KGo2nyfaWVyn9naPiXrqIe4jYjXNZQt238kWyOGrsyc/DmRAQ+Re6yeo6yX/yoNCG5KAEVg==", + "dev": true, + "license": "MIT" + }, + "node_modules/html-encoding-sniffer": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/html-encoding-sniffer/-/html-encoding-sniffer-6.0.0.tgz", + "integrity": "sha512-CV9TW3Y3f8/wT0BRFc1/KAVQ3TUHiXmaAb6VW9vtiMFf7SLoMd1PdAc4W3KFOFETBJUb90KatHqlsZMWV+R9Gg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@exodus/bytes": "^1.6.0" + }, + "engines": { + "node": "^20.19.0 || ^22.12.0 || >=24.0.0" + } + }, + "node_modules/html-escaper": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/html-escaper/-/html-escaper-2.0.2.tgz", + "integrity": "sha512-H2iMtd0I4Mt5eYiapRdIDjp+XzelXQ0tFE4JS7YFwFevXXMmOp9myNrUvCg0D6ws8iqkRPBfKHgbwig1SmlLfg==", + "dev": true, + "license": "MIT" + }, + "node_modules/human-signals": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/human-signals/-/human-signals-2.1.0.tgz", + "integrity": "sha512-B4FFZ6q/T2jhhksgkbEW3HBvWIfDW85snkQgawt07S7J5QXTk6BkNV+0yAeZrM5QpMAdYlocGoljn0sJ/WQkFw==", + "dev": true, + "license": "Apache-2.0", + "engines": { + "node": ">=10.17.0" + } + }, + "node_modules/iconv-lite": { + "version": "0.6.3", + "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.6.3.tgz", + "integrity": "sha512-4fCk79wshMdzMp2rH06qWrJE4iolqLhCUH+OiuIgU++RB0+94NlDL81atO7GX55uUKueo0txHNtvEyI6D7WdMw==", + "license": "MIT", + "dependencies": { + "safer-buffer": ">= 2.1.2 < 3.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/identity-obj-proxy": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/identity-obj-proxy/-/identity-obj-proxy-3.0.0.tgz", + "integrity": "sha512-00n6YnVHKrinT9t0d9+5yZC6UBNJANpYEQvL2LlX6Ab9lnmxzIRcEmTPuyGScvl1+jKuCICX1Z0Ab1pPKKdikA==", + "dev": true, + "license": "MIT", + "dependencies": { + "harmony-reflect": "^1.4.6" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/ignore": { + "version": "5.3.2", + "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.3.2.tgz", + "integrity": "sha512-hsBTNUqQTDwkWtcdYI2i06Y/nUBEsNEDJKjWdigLvegy8kDuJAS8uRlpkkcQpyEXL0Z/pjDy5HBmMjRCJ2gq+g==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 4" + } + }, + "node_modules/import-local": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/import-local/-/import-local-3.2.0.tgz", + "integrity": "sha512-2SPlun1JUPWoM6t3F0dw0FkCF/jWY8kttcY4f599GLTSjh2OCuuhdTkJQsEcZzBqbXZGKMK2OqW1oZsjtf/gQA==", + "dev": true, + "license": "MIT", + "dependencies": { + "pkg-dir": "^4.2.0", + "resolve-cwd": "^3.0.0" + }, + "bin": { + "import-local-fixture": "fixtures/cli.js" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/import-meta-resolve": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/import-meta-resolve/-/import-meta-resolve-4.2.0.tgz", + "integrity": "sha512-Iqv2fzaTQN28s/FwZAoFq0ZSs/7hMAHJVX+w8PZl3cY19Pxk6jFFalxQoIfW2826i/fDLXv8IiEZRIT0lDuWcg==", + "license": "MIT", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/wooorm" + } + }, + "node_modules/imurmurhash": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz", + "integrity": "sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=0.8.19" + } + }, + "node_modules/indent-string": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/indent-string/-/indent-string-4.0.0.tgz", + "integrity": "sha512-EdDDZu4A2OyIK7Lr/2zG+w5jmbuk1DVBnEwREQvBzspBJkCEbRa8GxU1lghYcaGJCnRWibjDXlq779X1/y5xwg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/internal-slot": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/internal-slot/-/internal-slot-1.1.0.tgz", + "integrity": "sha512-4gd7VpWNQNB4UKKCFFVcp1AVv+FMOgs9NKzjHKusc8jTMhd5eL1NqQqOpE0KzMds804/yHlglp3uxgluOqAPLw==", + "dev": true, + "license": "MIT", + "dependencies": { + "es-errors": "^1.3.0", + "hasown": "^2.0.2", + "side-channel": "^1.1.0" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/internmap": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/internmap/-/internmap-2.0.3.tgz", + "integrity": "sha512-5Hh7Y1wQbvY5ooGgPbDaL5iYLAPzMTUrjMulskHLH6wnv/A+1q5rgEaiuqEjB+oxGXIVZs1FF+R/KPN3ZSQYYg==", + "license": "ISC", + "engines": { + "node": ">=12" + } + }, + "node_modules/is-arguments": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/is-arguments/-/is-arguments-1.2.0.tgz", + "integrity": "sha512-7bVbi0huj/wrIAOzb8U1aszg9kdi3KN/CyU19CTI7tAoZYEZoL9yCDXpbXN+uPsuWnP02cyug1gleqq+TU+YCA==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bound": "^1.0.2", + "has-tostringtag": "^1.0.2" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-array-buffer": { + "version": "3.0.5", + "resolved": "https://registry.npmjs.org/is-array-buffer/-/is-array-buffer-3.0.5.tgz", + "integrity": "sha512-DDfANUiiG2wC1qawP66qlTugJeL5HyzMpfr8lLK+jMQirGzNod0B12cFB/9q838Ru27sBwfw78/rdoU7RERz6A==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bind": "^1.0.8", + "call-bound": "^1.0.3", + "get-intrinsic": "^1.2.6" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-arrayish": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/is-arrayish/-/is-arrayish-0.2.1.tgz", + "integrity": "sha512-zz06S8t0ozoDXMG+ube26zeCTNXcKIPJZJi8hBrF4idCLms4CG9QtK7qBl1boi5ODzFpjswb5JPmHCbMpjaYzg==", + "dev": true, + "license": "MIT" + }, + "node_modules/is-bigint": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/is-bigint/-/is-bigint-1.1.0.tgz", + "integrity": "sha512-n4ZT37wG78iz03xPRKJrHTdZbe3IicyucEtdRsV5yglwc3GyUfbAfpSeD0FJ41NbUNSt5wbhqfp1fS+BgnvDFQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "has-bigints": "^1.0.2" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-boolean-object": { + "version": "1.2.2", + "resolved": "https://registry.npmjs.org/is-boolean-object/-/is-boolean-object-1.2.2.tgz", + "integrity": "sha512-wa56o2/ElJMYqjCjGkXri7it5FbebW5usLw/nPmCMs5DeZ7eziSYZhSmPRn0txqeW4LnAmQQU7FgqLpsEFKM4A==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bound": "^1.0.3", + "has-tostringtag": "^1.0.2" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-callable": { + "version": "1.2.7", + "resolved": "https://registry.npmjs.org/is-callable/-/is-callable-1.2.7.tgz", + "integrity": "sha512-1BC0BVFhS/p0qtw6enp8e+8OD0UrK0oFLztSjNzhcKA3WDuJxxAPXzPuPtKkjEY9UUoEWlX/8fgKeu2S8i9JTA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-core-module": { + "version": "2.16.2", + "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.16.2.tgz", + "integrity": "sha512-evOr8xfXKxE6qSR0hSXL2r3sd7ALj8+7jQEUvPYcm5sgZFdJ+AYzT6yNmJenvIYQBgIGwfwz08sL8zoL7yq2BA==", + "dev": true, + "license": "MIT", + "dependencies": { + "hasown": "^2.0.3" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-date-object": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/is-date-object/-/is-date-object-1.1.0.tgz", + "integrity": "sha512-PwwhEakHVKTdRNVOw+/Gyh0+MzlCl4R6qKvkhuvLtPMggI1WAHt9sOwZxQLSGpUaDnrdyDsomoRgNnCfKNSXXg==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bound": "^1.0.2", + "has-tostringtag": "^1.0.2" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-extglob": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", + "integrity": "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/is-fullwidth-code-point": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", + "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/is-generator-fn": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/is-generator-fn/-/is-generator-fn-2.1.0.tgz", + "integrity": "sha512-cTIB4yPYL/Grw0EaSzASzg6bBy9gqCofvWN8okThAYIxKJZC+udlRAmGbM0XLeniEJSs8uEgHPGuHSe1XsOLSQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/is-glob": { + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz", + "integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==", + "dev": true, + "license": "MIT", + "dependencies": { + "is-extglob": "^2.1.1" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/is-map": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/is-map/-/is-map-2.0.3.tgz", + "integrity": "sha512-1Qed0/Hr2m+YqxnM09CjA2d/i6YZNfF6R2oRAOj36eUdS6qIV/huPJNSEpKbupewFs+ZsJlxsjjPbc0/afW6Lw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-number-object": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/is-number-object/-/is-number-object-1.1.1.tgz", + "integrity": "sha512-lZhclumE1G6VYD8VHe35wFaIif+CTy5SJIi5+3y4psDgWu4wPDoBhF8NxUOinEc7pHgiTsT6MaBb92rKhhD+Xw==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bound": "^1.0.3", + "has-tostringtag": "^1.0.2" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-potential-custom-element-name": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/is-potential-custom-element-name/-/is-potential-custom-element-name-1.0.1.tgz", + "integrity": "sha512-bCYeRA2rVibKZd+s2625gGnGF/t7DSqDs4dP7CrLA1m7jKWz6pps0LpYLJN8Q64HtmPKJ1hrN3nzPNKFEKOUiQ==", + "dev": true, + "license": "MIT" + }, + "node_modules/is-regex": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/is-regex/-/is-regex-1.2.1.tgz", + "integrity": "sha512-MjYsKHO5O7mCsmRGxWcLWheFqN9DJ/2TmngvjKXihe6efViPqc274+Fx/4fYj/r03+ESvBdTXK0V6tA3rgez1g==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bound": "^1.0.2", + "gopd": "^1.2.0", + "has-tostringtag": "^1.0.2", + "hasown": "^2.0.2" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-set": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/is-set/-/is-set-2.0.3.tgz", + "integrity": "sha512-iPAjerrse27/ygGLxw+EBR9agv9Y6uLeYVJMu+QNCoouJ1/1ri0mGrcWpfCqFZuzzx3WjtwxG098X+n4OuRkPg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-shared-array-buffer": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/is-shared-array-buffer/-/is-shared-array-buffer-1.0.4.tgz", + "integrity": "sha512-ISWac8drv4ZGfwKl5slpHG9OwPNty4jOWPRIhBpxOoD+hqITiwuipOQ2bNthAzwA3B4fIjO4Nln74N0S9byq8A==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bound": "^1.0.3" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-stream": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-2.0.1.tgz", + "integrity": "sha512-hFoiJiTl63nn+kstHGBtewWSKnQLpyb155KHheA1l39uvtO9nWIop1p3udqPcUd/xbF1VLMO4n7OI6p7RbngDg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/is-string": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/is-string/-/is-string-1.1.1.tgz", + "integrity": "sha512-BtEeSsoaQjlSPBemMQIrY1MY0uM6vnS1g5fmufYOtnxLGUZM2178PKbhsk7Ffv58IX+ZtcvoGwccYsh0PglkAA==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bound": "^1.0.3", + "has-tostringtag": "^1.0.2" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-symbol": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/is-symbol/-/is-symbol-1.1.1.tgz", + "integrity": "sha512-9gGx6GTtCQM73BgmHQXfDmLtfjjTUDSyoxTCbp5WtoixAhfgsDirWIcVQ/IHpvI5Vgd5i/J5F7B9cN/WlVbC/w==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bound": "^1.0.2", + "has-symbols": "^1.1.0", + "safe-regex-test": "^1.1.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-weakmap": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/is-weakmap/-/is-weakmap-2.0.2.tgz", + "integrity": "sha512-K5pXYOm9wqY1RgjpL3YTkF39tni1XajUIkawTLUo9EZEVUFga5gSQJF8nNS7ZwJQ02y+1YCNYcMh+HIf1ZqE+w==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-weakset": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/is-weakset/-/is-weakset-2.0.4.tgz", + "integrity": "sha512-mfcwb6IzQyOKTs84CQMrOwW4gQcaTOAWJ0zzJCl2WSPDrWk/OzDaImWFH3djXhb24g4eudZfLRozAvPGw4d9hQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bound": "^1.0.3", + "get-intrinsic": "^1.2.6" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/isarray": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/isarray/-/isarray-2.0.5.tgz", + "integrity": "sha512-xHjhDr3cNBK0BzdUJSPXZntQUx/mwMS5Rw4A7lPJ90XGAO6ISP/ePDNuo0vhqOZU+UD5JoodwCAAoZQd3FeAKw==", + "dev": true, + "license": "MIT" + }, + "node_modules/isexe": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", + "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==", + "dev": true, + "license": "ISC" + }, + "node_modules/istanbul-lib-coverage": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/istanbul-lib-coverage/-/istanbul-lib-coverage-3.2.2.tgz", + "integrity": "sha512-O8dpsF+r0WV/8MNRKfnmrtCWhuKjxrq2w+jpzBL5UZKTi2LeVWnWOmWRxFlesJONmc+wLAGvKQZEOanko0LFTg==", + "dev": true, + "license": "BSD-3-Clause", + "engines": { + "node": ">=8" + } + }, + "node_modules/istanbul-lib-instrument": { + "version": "6.0.3", + "resolved": "https://registry.npmjs.org/istanbul-lib-instrument/-/istanbul-lib-instrument-6.0.3.tgz", + "integrity": "sha512-Vtgk7L/R2JHyyGW07spoFlB8/lpjiOLTjMdms6AFMraYt3BaJauod/NGrfnVG/y4Ix1JEuMRPDPEj2ua+zz1/Q==", + "dev": true, + "license": "BSD-3-Clause", + "dependencies": { + "@babel/core": "^7.23.9", + "@babel/parser": "^7.23.9", + "@istanbuljs/schema": "^0.1.3", + "istanbul-lib-coverage": "^3.2.0", + "semver": "^7.5.4" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/istanbul-lib-instrument/node_modules/semver": { + "version": "7.8.5", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.8.5.tgz", + "integrity": "sha512-Y7/KDsb8LjooZpwaqGyulO6DQlksgCncchHGk+sZIY4SBvUocMBEFH5Ur1fI4dV+Jvl0w6cjvucaIi40puRioA==", + "dev": true, + "license": "ISC", + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/istanbul-lib-report": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/istanbul-lib-report/-/istanbul-lib-report-3.0.1.tgz", + "integrity": "sha512-GCfE1mtsHGOELCU8e/Z7YWzpmybrx/+dSTfLrvY8qRmaY6zXTKWn6WQIjaAFw069icm6GVMNkgu0NzI4iPZUNw==", + "dev": true, + "license": "BSD-3-Clause", + "dependencies": { + "istanbul-lib-coverage": "^3.0.0", + "make-dir": "^4.0.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/istanbul-lib-source-maps": { + "version": "5.0.6", + "resolved": "https://registry.npmjs.org/istanbul-lib-source-maps/-/istanbul-lib-source-maps-5.0.6.tgz", + "integrity": "sha512-yg2d+Em4KizZC5niWhQaIomgf5WlL4vOOjZ5xGCmF8SnPE/mDWWXgvRExdcpCgh9lLRRa1/fSYp2ymmbJ1pI+A==", + "dev": true, + "license": "BSD-3-Clause", + "dependencies": { + "@jridgewell/trace-mapping": "^0.3.23", + "debug": "^4.1.1", + "istanbul-lib-coverage": "^3.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/istanbul-reports": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/istanbul-reports/-/istanbul-reports-3.2.0.tgz", + "integrity": "sha512-HGYWWS/ehqTV3xN10i23tkPkpH46MLCIMFNCaaKNavAXTF1RkqxawEPtnjnGZ6XKSInBKkiOA5BKS+aZiY3AvA==", + "dev": true, + "license": "BSD-3-Clause", + "dependencies": { + "html-escaper": "^2.0.0", + "istanbul-lib-report": "^3.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/jackspeak": { + "version": "3.4.3", + "resolved": "https://registry.npmjs.org/jackspeak/-/jackspeak-3.4.3.tgz", + "integrity": "sha512-OGlZQpz2yfahA/Rd1Y8Cd9SIEsqvXkLVoSw/cgwhnhFMDbsQFeZYoJJ7bIZBS9BcamUW96asq/npPWugM+RQBw==", + "dev": true, + "license": "BlueOak-1.0.0", + "dependencies": { + "@isaacs/cliui": "^8.0.2" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + }, + "optionalDependencies": { + "@pkgjs/parseargs": "^0.11.0" + } + }, + "node_modules/jest": { + "version": "30.5.1", + "resolved": "https://registry.npmjs.org/jest/-/jest-30.5.1.tgz", + "integrity": "sha512-3qrR8+ZXFnn7y0H2yjWQNkGGBLBY4zTRoTMAq9zJcgwLLtlyonfsCLviIXK9xuE2KgIyM+M36AFcoK2DgFR36w==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jest/core": "30.5.1", + "@jest/types": "30.5.1", + "import-local": "^3.2.0", + "jest-cli": "30.5.1" + }, + "bin": { + "jest": "bin/jest.js" + }, + "engines": { + "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0" + }, + "peerDependencies": { + "node-notifier": "^8.0.1 || ^9.0.0 || ^10.0.0" + }, + "peerDependenciesMeta": { + "node-notifier": { + "optional": true + } + } + }, + "node_modules/jest-changed-files": { + "version": "30.5.1", + "resolved": "https://registry.npmjs.org/jest-changed-files/-/jest-changed-files-30.5.1.tgz", + "integrity": "sha512-0+bvMM/ENhDI29Z8q1r4HxiDIi4G5tnBmSw4esfPQoj9q8Nik7KIyuxHkTVnnniJQf05SxpGaKDQ+4h28ynGPg==", + "dev": true, + "license": "MIT", + "dependencies": { + "execa": "^5.1.1", + "jest-util": "30.5.1", + "p-limit": "^3.1.0" + }, + "engines": { + "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0" + } + }, + "node_modules/jest-circus": { + "version": "30.5.1", + "resolved": "https://registry.npmjs.org/jest-circus/-/jest-circus-30.5.1.tgz", + "integrity": "sha512-NgliezXQ6yznqR4W5Gqw++0cZSbBZlF0NknNIAE5VmSJKWOtmWJmWnBq3TSkUOVBTPrT7FGGhVdA8DLWnxo2Sw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jest/environment": "30.5.1", + "@jest/expect": "30.5.1", + "@jest/test-result": "30.5.1", + "@jest/types": "30.5.1", + "@types/node": "*", + "chalk": "^4.1.2", + "co": "^4.6.0", + "dedent": "^1.6.0", + "is-generator-fn": "^2.1.0", + "jest-each": "30.5.1", + "jest-matcher-utils": "30.5.1", + "jest-message-util": "30.5.1", + "jest-runtime": "30.5.1", + "jest-snapshot": "30.5.1", + "jest-util": "30.5.1", + "p-limit": "^3.1.0", + "pretty-format": "30.5.1", + "pure-rand": "^7.0.0", + "slash": "^3.0.0", + "stack-utils": "^2.0.6" + }, + "engines": { + "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0" + } + }, + "node_modules/jest-circus/node_modules/ansi-styles": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-5.2.0.tgz", + "integrity": "sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/jest-circus/node_modules/pretty-format": { + "version": "30.5.1", + "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-30.5.1.tgz", + "integrity": "sha512-byhRAPguVKMQIj4kjJwJ5lAskVhfuiSdiYl/aLTWpgkGEmic2jYhJh1yE9ih8Ox44Xg9ccCT11/S6QrzSJuNrg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jest/react-is-18": "npm:react-is@^18.3.1", + "@jest/react-is-19": "npm:react-is@^19.2.5", + "@jest/schemas": "30.5.0", + "ansi-styles": "^5.2.0" + }, + "engines": { + "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0" + } + }, + "node_modules/jest-cli": { + "version": "30.5.1", + "resolved": "https://registry.npmjs.org/jest-cli/-/jest-cli-30.5.1.tgz", + "integrity": "sha512-uwNYepWgaNBCplm42fCIUZTf/tIEHIy5AYvx7eL1BrwIgyjPt+2poouR23UO2yopIP+kV8oZFHfv+l4pg/8prQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jest/core": "30.5.1", + "@jest/test-result": "30.5.1", + "@jest/types": "30.5.1", + "chalk": "^4.1.2", + "exit-x": "^0.2.2", + "import-local": "^3.2.0", + "jest-config": "30.5.1", + "jest-util": "30.5.1", + "jest-validate": "30.5.1", + "yargs": "^17.7.2" + }, + "bin": { + "jest": "bin/jest.js" + }, + "engines": { + "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0" + }, + "peerDependencies": { + "node-notifier": "^8.0.1 || ^9.0.0 || ^10.0.0" + }, + "peerDependenciesMeta": { + "node-notifier": { + "optional": true + } + } + }, + "node_modules/jest-config": { + "version": "30.5.1", + "resolved": "https://registry.npmjs.org/jest-config/-/jest-config-30.5.1.tgz", + "integrity": "sha512-L8PKM2X/ngG8PxfLMqglKGZjylPgw84bVPUlMY9W/o76TnLqPWrmQgsaT0HrheGdRtpGE5FbmREA0Kvb+Qx5gQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/core": "^7.27.4", + "@jest/get-type": "30.5.0", + "@jest/pattern": "30.5.0", + "@jest/test-sequencer": "30.5.1", + "@jest/types": "30.5.1", + "babel-jest": "30.5.1", + "chalk": "^4.1.2", + "ci-info": "^4.2.0", + "deepmerge": "^4.3.1", + "glob": "^13.0.6", + "graceful-fs": "^4.2.11", + "jest-circus": "30.5.1", + "jest-docblock": "30.5.0", + "jest-environment-node": "30.5.1", + "jest-regex-util": "30.5.0", + "jest-resolve": "30.5.1", + "jest-runner": "30.5.1", + "jest-util": "30.5.1", + "jest-validate": "30.5.1", + "parse-json": "^5.2.0", + "pretty-format": "30.5.1", + "slash": "^3.0.0", + "strip-json-comments": "^3.1.1" + }, + "engines": { + "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0" + }, + "peerDependencies": { + "@types/node": "*", + "esbuild-register": ">=3.4.0", + "ts-node": ">=9.0.0" + }, + "peerDependenciesMeta": { + "@types/node": { + "optional": true + }, + "esbuild-register": { + "optional": true + }, + "ts-node": { + "optional": true + } + } + }, + "node_modules/jest-config/node_modules/ansi-styles": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-5.2.0.tgz", + "integrity": "sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/jest-config/node_modules/pretty-format": { + "version": "30.5.1", + "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-30.5.1.tgz", + "integrity": "sha512-byhRAPguVKMQIj4kjJwJ5lAskVhfuiSdiYl/aLTWpgkGEmic2jYhJh1yE9ih8Ox44Xg9ccCT11/S6QrzSJuNrg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jest/react-is-18": "npm:react-is@^18.3.1", + "@jest/react-is-19": "npm:react-is@^19.2.5", + "@jest/schemas": "30.5.0", + "ansi-styles": "^5.2.0" + }, + "engines": { + "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0" + } + }, + "node_modules/jest-diff": { + "version": "30.5.1", + "resolved": "https://registry.npmjs.org/jest-diff/-/jest-diff-30.5.1.tgz", + "integrity": "sha512-e3cNNMpv8Kh20MjjphTXs+3Vz7DQyLM1nft7KJhnh46atFhjVJRa+0Hq0beywuwsACtMQUBihQkFl8zxb7gt1Q==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jest/diff-sequences": "30.5.0", + "@jest/get-type": "30.5.0", + "chalk": "^4.1.2", + "pretty-format": "30.5.1" + }, + "engines": { + "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0" + } + }, + "node_modules/jest-diff/node_modules/ansi-styles": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-5.2.0.tgz", + "integrity": "sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/jest-diff/node_modules/pretty-format": { + "version": "30.5.1", + "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-30.5.1.tgz", + "integrity": "sha512-byhRAPguVKMQIj4kjJwJ5lAskVhfuiSdiYl/aLTWpgkGEmic2jYhJh1yE9ih8Ox44Xg9ccCT11/S6QrzSJuNrg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jest/react-is-18": "npm:react-is@^18.3.1", + "@jest/react-is-19": "npm:react-is@^19.2.5", + "@jest/schemas": "30.5.0", + "ansi-styles": "^5.2.0" + }, + "engines": { + "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0" + } + }, + "node_modules/jest-docblock": { + "version": "30.5.0", + "resolved": "https://registry.npmjs.org/jest-docblock/-/jest-docblock-30.5.0.tgz", + "integrity": "sha512-NwDqcxtoZi33RhuW+zJS/RVA3rmheQ8BnwpYZuc/Eruaz6seQb7+aoCeDZu/3X7W2XmD8DbSo9Pn72DbKsBFYw==", + "dev": true, + "license": "MIT", + "dependencies": { + "detect-newline": "^3.1.0" + }, + "engines": { + "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0" + } + }, + "node_modules/jest-each": { + "version": "30.5.1", + "resolved": "https://registry.npmjs.org/jest-each/-/jest-each-30.5.1.tgz", + "integrity": "sha512-S1af0TU4v1EZ/AUlkFs/sxf/5KGsbAT9kRgdyoMX/x72y7C8ZEgETE5o1TPnbKRnrbprc5FR/moYLfdRmqEjsQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jest/get-type": "30.5.0", + "@jest/types": "30.5.1", + "chalk": "^4.1.2", + "jest-util": "30.5.1", + "pretty-format": "30.5.1" + }, + "engines": { + "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0" + } + }, + "node_modules/jest-each/node_modules/ansi-styles": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-5.2.0.tgz", + "integrity": "sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/jest-each/node_modules/pretty-format": { + "version": "30.5.1", + "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-30.5.1.tgz", + "integrity": "sha512-byhRAPguVKMQIj4kjJwJ5lAskVhfuiSdiYl/aLTWpgkGEmic2jYhJh1yE9ih8Ox44Xg9ccCT11/S6QrzSJuNrg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jest/react-is-18": "npm:react-is@^18.3.1", + "@jest/react-is-19": "npm:react-is@^19.2.5", + "@jest/schemas": "30.5.0", + "ansi-styles": "^5.2.0" + }, + "engines": { + "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0" + } + }, + "node_modules/jest-environment-jsdom": { + "version": "30.5.1", + "resolved": "https://registry.npmjs.org/jest-environment-jsdom/-/jest-environment-jsdom-30.5.1.tgz", + "integrity": "sha512-8lzKbC/SRbQE24wr1OOJV+aYtDAuVNKBryN6YcFiCcaZZ3I7grcZY7w91BwNvGET0ubKDmomEHZFHMaF+6pAlA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jest/environment": "30.5.1", + "@jest/environment-jsdom-abstract": "30.5.1", + "@types/jsdom": "^21.1.7", + "jsdom": "^26.1.0" + }, + "engines": { + "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0" + }, + "peerDependencies": { + "canvas": "^3.0.0" + }, + "peerDependenciesMeta": { + "canvas": { + "optional": true + } + } + }, + "node_modules/jest-environment-node": { + "version": "30.5.1", + "resolved": "https://registry.npmjs.org/jest-environment-node/-/jest-environment-node-30.5.1.tgz", + "integrity": "sha512-LrPj3sPMjsQoOB3jrb8p/sa+XkSFNKo60TTsyc+EB2kxQJHgbwElpXnx1yX25fdFn5958FIObRtcLSHyV8VIAw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jest/environment": "30.5.1", + "@jest/fake-timers": "30.5.1", + "@jest/types": "30.5.1", + "@types/node": "*", + "jest-mock": "30.5.1", + "jest-util": "30.5.1", + "jest-validate": "30.5.1" + }, + "engines": { + "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0" + } + }, + "node_modules/jest-haste-map": { + "version": "30.5.1", + "resolved": "https://registry.npmjs.org/jest-haste-map/-/jest-haste-map-30.5.1.tgz", + "integrity": "sha512-VIFgt67jW480YDxKfEv9IYQKrFpYt7bOCMn3VsnjK7AK9qo7p6acpnA1DHwsVOULE3dTaYew/6JaTD/d0VDHoQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jest/types": "30.5.1", + "@parcel/watcher": "^2.6.0", + "@types/node": "*", + "anymatch": "^3.1.3", + "fb-watchman": "^2.0.2", + "fdir": "^6.5.0", + "graceful-fs": "^4.2.11", + "jest-regex-util": "30.5.0", + "jest-util": "30.5.1", + "jest-worker": "30.5.1", + "picomatch": "^4.0.3" + }, + "engines": { + "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0" + } + }, + "node_modules/jest-leak-detector": { + "version": "30.5.1", + "resolved": "https://registry.npmjs.org/jest-leak-detector/-/jest-leak-detector-30.5.1.tgz", + "integrity": "sha512-gt4GT2aWgEoCNTcBe4rqS74xTIUJxi+UD9SNSu9aOk5LmTEd6fS5KSTmAKAfitCCktQHNN+upUuL6EkBfFbMDQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jest/get-type": "30.5.0", + "pretty-format": "30.5.1" + }, + "engines": { + "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0" + } + }, + "node_modules/jest-leak-detector/node_modules/ansi-styles": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-5.2.0.tgz", + "integrity": "sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/jest-leak-detector/node_modules/pretty-format": { + "version": "30.5.1", + "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-30.5.1.tgz", + "integrity": "sha512-byhRAPguVKMQIj4kjJwJ5lAskVhfuiSdiYl/aLTWpgkGEmic2jYhJh1yE9ih8Ox44Xg9ccCT11/S6QrzSJuNrg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jest/react-is-18": "npm:react-is@^18.3.1", + "@jest/react-is-19": "npm:react-is@^19.2.5", + "@jest/schemas": "30.5.0", + "ansi-styles": "^5.2.0" + }, + "engines": { + "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0" + } + }, + "node_modules/jest-matcher-utils": { + "version": "30.5.1", + "resolved": "https://registry.npmjs.org/jest-matcher-utils/-/jest-matcher-utils-30.5.1.tgz", + "integrity": "sha512-aroZVqwOz/wC2y6pC+obgFWKV9viaQWQTTSB6W5H55+egtUczIfXR/rxExTv92xD/ADYwpqaYfVWx1aqwKg7FA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jest/get-type": "30.5.0", + "chalk": "^4.1.2", + "jest-diff": "30.5.1", + "pretty-format": "30.5.1" + }, + "engines": { + "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0" + } + }, + "node_modules/jest-matcher-utils/node_modules/ansi-styles": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-5.2.0.tgz", + "integrity": "sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/jest-matcher-utils/node_modules/pretty-format": { + "version": "30.5.1", + "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-30.5.1.tgz", + "integrity": "sha512-byhRAPguVKMQIj4kjJwJ5lAskVhfuiSdiYl/aLTWpgkGEmic2jYhJh1yE9ih8Ox44Xg9ccCT11/S6QrzSJuNrg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jest/react-is-18": "npm:react-is@^18.3.1", + "@jest/react-is-19": "npm:react-is@^19.2.5", + "@jest/schemas": "30.5.0", + "ansi-styles": "^5.2.0" + }, + "engines": { + "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0" + } + }, + "node_modules/jest-message-util": { + "version": "30.5.1", + "resolved": "https://registry.npmjs.org/jest-message-util/-/jest-message-util-30.5.1.tgz", + "integrity": "sha512-UdQlLdd9wL/Ys7xRErckqwD6wPlSZYueosSWuHc1r2ztGLwlgPvtSJq2+BPEgaEY13WLvfFbmhTj8pba0Sd1jg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/code-frame": "^7.27.1", + "@jest/types": "30.5.1", + "@types/stack-utils": "^2.0.3", + "chalk": "^4.1.2", + "graceful-fs": "^4.2.11", + "jest-util": "30.5.1", + "picomatch": "^4.0.3", + "pretty-format": "30.5.1", + "slash": "^3.0.0", + "stack-utils": "^2.0.6" + }, + "engines": { + "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0" + } + }, + "node_modules/jest-message-util/node_modules/ansi-styles": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-5.2.0.tgz", + "integrity": "sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/jest-message-util/node_modules/pretty-format": { + "version": "30.5.1", + "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-30.5.1.tgz", + "integrity": "sha512-byhRAPguVKMQIj4kjJwJ5lAskVhfuiSdiYl/aLTWpgkGEmic2jYhJh1yE9ih8Ox44Xg9ccCT11/S6QrzSJuNrg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jest/react-is-18": "npm:react-is@^18.3.1", + "@jest/react-is-19": "npm:react-is@^19.2.5", + "@jest/schemas": "30.5.0", + "ansi-styles": "^5.2.0" + }, + "engines": { + "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0" + } + }, + "node_modules/jest-mock": { + "version": "30.5.1", + "resolved": "https://registry.npmjs.org/jest-mock/-/jest-mock-30.5.1.tgz", + "integrity": "sha512-9fVjc3leUpGID2/by/LU4Dvdcp7PFh9LlxS3QRWK3ABm+KtvEVsG/AEGeLY3gKOZsjkBxyfwGltoAVlW7dygHg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jest/expect-utils": "30.5.1", + "@jest/types": "30.5.1", + "@types/node": "*", + "jest-util": "30.5.1" + }, + "engines": { + "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0" + } + }, + "node_modules/jest-regex-util": { + "version": "30.5.0", + "resolved": "https://registry.npmjs.org/jest-regex-util/-/jest-regex-util-30.5.0.tgz", + "integrity": "sha512-Mg0WK7A6xRHLSA1udJ8y9f3lM0uUhFTBnLKzwPmqB9AylvpleJ6BLemR8K9dK27DY+cesDryoA7yLZCAHsPG1A==", + "dev": true, + "license": "MIT", + "engines": { + "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0" + } + }, + "node_modules/jest-resolve": { + "version": "30.5.1", + "resolved": "https://registry.npmjs.org/jest-resolve/-/jest-resolve-30.5.1.tgz", + "integrity": "sha512-wprhLejRtwN6h8ZgaqC0eYjGJ1uMdGPT/+b3eFncbG4NWuuP9QL+vWwRinu9waw7hkOLcpMJGVJAMgBwsPssMQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "chalk": "^4.1.2", + "graceful-fs": "^4.2.11", + "jest-haste-map": "30.5.1", + "jest-util": "30.5.1", + "jest-validate": "30.5.1", + "slash": "^3.0.0", + "unrs-resolver": "^1.12.1" + }, + "engines": { + "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0" + } + }, + "node_modules/jest-resolve-dependencies": { + "version": "30.5.1", + "resolved": "https://registry.npmjs.org/jest-resolve-dependencies/-/jest-resolve-dependencies-30.5.1.tgz", + "integrity": "sha512-JKpXGONDcTaunrNVn8KCl6qAnwl06jIkvv70lhq0Ze47lsPx9sH5HoeEUiXX6iFGnliHN/qpIbQ0l38wrVmXaw==", + "dev": true, + "license": "MIT", + "dependencies": { + "jest-regex-util": "30.5.0", + "jest-snapshot": "30.5.1" + }, + "engines": { + "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0" + } + }, + "node_modules/jest-runner": { + "version": "30.5.1", + "resolved": "https://registry.npmjs.org/jest-runner/-/jest-runner-30.5.1.tgz", + "integrity": "sha512-FPlQE4+mwnFxXmpPrSi836KV2ZzvK1g6/nPCT8o5BcoDUUNJQeHo1/Qdkoe/QeoL4M7OeJpbnGUhYKhC1VMdaQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jest/console": "30.5.1", + "@jest/environment": "30.5.1", + "@jest/source-map": "30.5.0", + "@jest/test-result": "30.5.1", + "@jest/transform": "30.5.1", + "@jest/types": "30.5.1", + "@types/node": "*", + "chalk": "^4.1.2", + "emittery": "^0.13.1", + "exit-x": "^0.2.2", + "graceful-fs": "^4.2.11", + "jest-docblock": "30.5.0", + "jest-environment-node": "30.5.1", + "jest-haste-map": "30.5.1", + "jest-leak-detector": "30.5.1", + "jest-message-util": "30.5.1", + "jest-resolve": "30.5.1", + "jest-runtime": "30.5.1", + "jest-util": "30.5.1", + "jest-watcher": "30.5.1", + "jest-worker": "30.5.1", + "p-limit": "^3.1.0" + }, + "engines": { + "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0" + } + }, + "node_modules/jest-runtime": { + "version": "30.5.1", + "resolved": "https://registry.npmjs.org/jest-runtime/-/jest-runtime-30.5.1.tgz", + "integrity": "sha512-UB88+NRkK2Tw/OqV7dofYcyiUGrVZtD41k/N0xQOs9fG//57XHK7JLWG52HD1UYpUAhjK4xm6DBvFX3yWudsMA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jest/environment": "30.5.1", + "@jest/fake-timers": "30.5.1", + "@jest/globals": "30.5.1", + "@jest/source-map": "30.5.0", + "@jest/test-result": "30.5.1", + "@jest/transform": "30.5.1", + "@jest/types": "30.5.1", + "@types/node": "*", + "chalk": "^4.1.2", + "cjs-module-lexer": "^2.2.0", + "collect-v8-coverage": "^1.0.2", + "es-module-lexer": "^2.1.0", + "glob": "^13.0.6", + "graceful-fs": "^4.2.11", + "jest-haste-map": "30.5.1", + "jest-message-util": "30.5.1", + "jest-mock": "30.5.1", + "jest-regex-util": "30.5.0", + "jest-resolve": "30.5.1", + "jest-snapshot": "30.5.1", + "jest-util": "30.5.1", + "slash": "^3.0.0", + "strip-bom": "^4.0.0" + }, + "engines": { + "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0" + } + }, + "node_modules/jest-snapshot": { + "version": "30.5.1", + "resolved": "https://registry.npmjs.org/jest-snapshot/-/jest-snapshot-30.5.1.tgz", + "integrity": "sha512-cNWFdSb5xuDGl8hKkAZJ3YtI/PzHpAPFV+HUXWIOG8rMhpDTLVbvAc2d2wRicoYw2wGsJGLaurJT6BLC97bLXQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/core": "^7.27.4", + "@babel/generator": "^7.27.5", + "@babel/plugin-syntax-jsx": "^7.27.1", + "@babel/plugin-syntax-typescript": "^7.27.1", + "@babel/types": "^7.27.3", + "@jest/expect-utils": "30.5.1", + "@jest/get-type": "30.5.0", + "@jest/snapshot-utils": "30.5.1", + "@jest/transform": "30.5.1", + "@jest/types": "30.5.1", + "babel-preset-current-node-syntax": "^1.2.0", + "chalk": "^4.1.2", + "expect": "30.5.1", + "graceful-fs": "^4.2.11", + "jest-diff": "30.5.1", + "jest-matcher-utils": "30.5.1", + "jest-message-util": "30.5.1", + "jest-util": "30.5.1", + "pretty-format": "30.5.1", + "semver": "^7.7.2", + "synckit": "^0.11.8" + }, + "engines": { + "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0" + } + }, + "node_modules/jest-snapshot/node_modules/ansi-styles": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-5.2.0.tgz", + "integrity": "sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/jest-snapshot/node_modules/pretty-format": { + "version": "30.5.1", + "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-30.5.1.tgz", + "integrity": "sha512-byhRAPguVKMQIj4kjJwJ5lAskVhfuiSdiYl/aLTWpgkGEmic2jYhJh1yE9ih8Ox44Xg9ccCT11/S6QrzSJuNrg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jest/react-is-18": "npm:react-is@^18.3.1", + "@jest/react-is-19": "npm:react-is@^19.2.5", + "@jest/schemas": "30.5.0", + "ansi-styles": "^5.2.0" + }, + "engines": { + "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0" + } + }, + "node_modules/jest-snapshot/node_modules/semver": { + "version": "7.8.5", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.8.5.tgz", + "integrity": "sha512-Y7/KDsb8LjooZpwaqGyulO6DQlksgCncchHGk+sZIY4SBvUocMBEFH5Ur1fI4dV+Jvl0w6cjvucaIi40puRioA==", + "dev": true, + "license": "ISC", + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/jest-util": { + "version": "30.5.1", + "resolved": "https://registry.npmjs.org/jest-util/-/jest-util-30.5.1.tgz", + "integrity": "sha512-yKuxmNy2rSbTXw+3SIPanJo+nV4/BS1p26v44IYBFMsswSQySfMMcPHErnOncda7i9HEz0q605rIhSTBVgrZTg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jest/types": "30.5.1", + "@types/node": "*", + "chalk": "^4.1.2", + "ci-info": "^4.2.0", + "graceful-fs": "^4.2.11", + "picomatch": "^4.0.3" + }, + "engines": { + "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0" + } + }, + "node_modules/jest-validate": { + "version": "30.5.1", + "resolved": "https://registry.npmjs.org/jest-validate/-/jest-validate-30.5.1.tgz", + "integrity": "sha512-i/buJ56wTpxihE93hQYNMfdOThS87+HGvLZzZJmU4xggPcdTYQq051iwALLCHp3q+SkCGH+EFejQZz5EbBSkkg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jest/get-type": "30.5.0", + "@jest/types": "30.5.1", + "camelcase": "^6.3.0", + "chalk": "^4.1.2", + "leven": "^3.1.0", + "pretty-format": "30.5.1" + }, + "engines": { + "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0" + } + }, + "node_modules/jest-validate/node_modules/ansi-styles": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-5.2.0.tgz", + "integrity": "sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/jest-validate/node_modules/camelcase": { + "version": "6.3.0", + "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-6.3.0.tgz", + "integrity": "sha512-Gmy6FhYlCY7uOElZUSbxo2UCDH8owEk996gkbrpsgGtrJLM3J7jGxl9Ic7Qwwj4ivOE5AWZWRMecDdF7hqGjFA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/jest-validate/node_modules/pretty-format": { + "version": "30.5.1", + "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-30.5.1.tgz", + "integrity": "sha512-byhRAPguVKMQIj4kjJwJ5lAskVhfuiSdiYl/aLTWpgkGEmic2jYhJh1yE9ih8Ox44Xg9ccCT11/S6QrzSJuNrg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jest/react-is-18": "npm:react-is@^18.3.1", + "@jest/react-is-19": "npm:react-is@^19.2.5", + "@jest/schemas": "30.5.0", + "ansi-styles": "^5.2.0" + }, + "engines": { + "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0" + } + }, + "node_modules/jest-watcher": { + "version": "30.5.1", + "resolved": "https://registry.npmjs.org/jest-watcher/-/jest-watcher-30.5.1.tgz", + "integrity": "sha512-+FHJ7C+S7b3ySfhA1aFmoa6TztsnwZVv84ycPRn0tVN93np2EU4b8C/KadqA3l6igdjgLBTnUotab9ER0HLG8A==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jest/test-result": "30.5.1", + "@jest/types": "30.5.1", + "@types/node": "*", + "ansi-escapes": "^4.3.2", + "chalk": "^4.1.2", + "emittery": "^0.13.1", + "jest-util": "30.5.1", + "string-length": "^4.0.2" + }, + "engines": { + "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0" + } + }, + "node_modules/jest-worker": { + "version": "30.5.1", + "resolved": "https://registry.npmjs.org/jest-worker/-/jest-worker-30.5.1.tgz", + "integrity": "sha512-Cbxh5v7AoLuFRmFJSM4/aHdQ68rjXvUWr716EE0Dh3I7T+T/3FgFKhOERGXHcU2Meftq9+9zxPM3TSNyI9D+HA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/node": "*", + "@ungap/structured-clone": "^1.3.0", + "jest-util": "30.5.1", + "merge-stream": "^2.0.0", + "supports-color": "^8.1.1" + }, + "engines": { + "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0" + } + }, + "node_modules/jest-worker/node_modules/supports-color": { + "version": "8.1.1", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-8.1.1.tgz", + "integrity": "sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q==", + "dev": true, + "license": "MIT", + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/supports-color?sponsor=1" + } + }, + "node_modules/js-tokens": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz", + "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==", + "dev": true, + "license": "MIT" + }, + "node_modules/js-yaml": { + "version": "3.15.2", + "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.15.2.tgz", + "integrity": "sha512-6EuL879VkRA+1Cz578mKMiKvjPNEuk6+r1JaFzoSWejZmtf7xWbIyw1e3KkxlkzTIt9Taw6JBhEppG7utc1P+w==", + "dev": true, + "license": "MIT", + "dependencies": { + "argparse": "^1.0.7", + "esprima": "^4.0.0" + }, + "bin": { + "js-yaml": "bin/js-yaml.js" + } + }, + "node_modules/jsdom": { + "version": "29.1.1", + "resolved": "https://registry.npmjs.org/jsdom/-/jsdom-29.1.1.tgz", + "integrity": "sha512-ECi4Fi2f7BdJtUKTflYRTiaMxIB0O6zfR1fX0GXpUrf6flp8QIYn1UT20YQqdSOfk2dfkCwS8LAFoJDEppNK5Q==", + "dev": true, + "license": "MIT", + "dependencies": { + "@asamuzakjp/css-color": "^5.1.11", + "@asamuzakjp/dom-selector": "^7.1.1", + "@bramus/specificity": "^2.4.2", + "@csstools/css-syntax-patches-for-csstree": "^1.1.3", + "@exodus/bytes": "^1.15.0", + "css-tree": "^3.2.1", + "data-urls": "^7.0.0", + "decimal.js": "^10.6.0", + "html-encoding-sniffer": "^6.0.0", + "is-potential-custom-element-name": "^1.0.1", + "lru-cache": "^11.3.5", + "parse5": "^8.0.1", + "saxes": "^6.0.0", + "symbol-tree": "^3.2.4", + "tough-cookie": "^6.0.1", + "undici": "^7.25.0", + "w3c-xmlserializer": "^5.0.0", + "webidl-conversions": "^8.0.1", + "whatwg-mimetype": "^5.0.0", + "whatwg-url": "^16.0.1", + "xml-name-validator": "^5.0.0" + }, + "engines": { + "node": "^20.19.0 || ^22.13.0 || >=24.0.0" + }, + "peerDependencies": { + "canvas": "^3.0.0" + }, + "peerDependenciesMeta": { + "canvas": { + "optional": true + } + } + }, + "node_modules/jsdom/node_modules/entities": { + "version": "8.1.0", + "resolved": "https://registry.npmjs.org/entities/-/entities-8.1.0.tgz", + "integrity": "sha512-kxL7msIffSuh9aaFAMD7rxAIuTRMAHMeBtgHW2yUdWw732ZNh4MehkF2gdjvtdmikkaIP9bFDDJOPlsvm7avrA==", + "dev": true, + "license": "BSD-2-Clause", + "engines": { + "node": ">=20.19.0" + }, + "funding": { + "url": "https://github.com/fb55/entities?sponsor=1" + } + }, + "node_modules/jsdom/node_modules/lru-cache": { + "version": "11.5.2", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-11.5.2.tgz", + "integrity": "sha512-4pfM1Ff0x50o0tQwb5ucw/RzNyD0/YJME6IVcStalZuMWxdt3sR3huStTtxz4PUmvZfRguvDejasvQ2kifR11g==", + "dev": true, + "license": "BlueOak-1.0.0", + "engines": { + "node": "20 || >=22" + } + }, + "node_modules/jsdom/node_modules/parse5": { + "version": "8.0.1", + "resolved": "https://registry.npmjs.org/parse5/-/parse5-8.0.1.tgz", + "integrity": "sha512-z1e/HMG90obSGeidlli3hj7cbocou0/wa5HacvI3ASx34PecNjNQeaHNo5WIZpWofN9kgkqV1q5YvXe3F0FoPw==", + "dev": true, + "license": "MIT", + "dependencies": { + "entities": "^8.0.0" + }, + "funding": { + "url": "https://github.com/inikulin/parse5?sponsor=1" + } + }, + "node_modules/jsesc": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-3.1.0.tgz", + "integrity": "sha512-/sM3dO2FOzXjKQhJuo0Q173wf2KOo8t4I8vHy6lF9poUp7bKT0/NHE8fPX23PwfhnykfqnC2xRxOnVw5XuGIaA==", + "dev": true, + "license": "MIT", + "bin": { + "jsesc": "bin/jsesc" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/json-parse-even-better-errors": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/json-parse-even-better-errors/-/json-parse-even-better-errors-2.3.1.tgz", + "integrity": "sha512-xyFwyhro/JEof6Ghe2iz2NcXoj2sloNsWr/XsERDK/oiPCfaNhl5ONfp+jQdAZRQQ0IJWNzH9zIZF7li91kh2w==", + "dev": true, + "license": "MIT" + }, + "node_modules/json-schema-traverse": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", + "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==", + "dev": true, + "license": "MIT" + }, + "node_modules/json-stable-stringify-without-jsonify": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/json-stable-stringify-without-jsonify/-/json-stable-stringify-without-jsonify-1.0.1.tgz", + "integrity": "sha512-Bdboy+l7tA3OGW6FjyFHWkP5LuByj1Tk33Ljyq0axyzdk9//JSi2u3fP1QSmd1KNwq6VOKYGlAu87CisVir6Pw==", + "dev": true, + "license": "MIT" + }, + "node_modules/json5": { + "version": "2.2.3", + "resolved": "https://registry.npmjs.org/json5/-/json5-2.2.3.tgz", + "integrity": "sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg==", + "dev": true, + "license": "MIT", + "bin": { + "json5": "lib/cli.js" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/katex": { + "version": "0.18.7", + "resolved": "https://registry.npmjs.org/katex/-/katex-0.18.7.tgz", + "integrity": "sha512-h+UCwkZ+4Jz8WQ7MLGfj7UVFrRCizGb912fwF4luGdYsC5paYG1vx+jy+KRcC/XkpjGva/P7nAWuxNnPzRvzHw==", + "funding": [ + "https://opencollective.com/katex", + "https://github.com/sponsors/katex" + ], + "license": "MIT", + "dependencies": { + "commander": "^15.0.0" + }, + "bin": { + "katex": "cli.js" + } + }, + "node_modules/keyv": { + "version": "5.6.0", + "resolved": "https://registry.npmjs.org/keyv/-/keyv-5.6.0.tgz", + "integrity": "sha512-CYDD3SOtsHtyXeEORYRx2qBtpDJFjRTGXUtmNEMGyzYOKj1TE3tycdlho7kA1Ufx9OYWZzg52QFBGALTirzDSw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@keyv/serialize": "^1.1.1" + } + }, + "node_modules/khroma": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/khroma/-/khroma-2.1.0.tgz", + "integrity": "sha512-Ls993zuzfayK269Svk9hzpeGUKob/sIgZzyHYdjQoAdQetRKpOLj+k/QQQ/6Qi0Yz65mlROrfd+Ev+1+7dz9Kw==" + }, + "node_modules/layout-base": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/layout-base/-/layout-base-1.0.2.tgz", + "integrity": "sha512-8h2oVEZNktL4BH2JCOI90iD1yXwL6iNW7KcCKT2QZgQJR2vbqDsldCTPRU9NifTCqHZci57XvQQ15YTu+sTYPg==", + "license": "MIT" + }, + "node_modules/leven": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/leven/-/leven-3.1.0.tgz", + "integrity": "sha512-qsda+H8jTaUaN/x5vzW2rzc+8Rw4TAQ/4KjB46IwK5VH+IlVeeeje/EoZRpiXvIqjFgK84QffqPztGI3VBLG1A==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/levn": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/levn/-/levn-0.4.1.tgz", + "integrity": "sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "prelude-ls": "^1.2.1", + "type-check": "~0.4.0" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/lines-and-columns": { + "version": "1.2.4", + "resolved": "https://registry.npmjs.org/lines-and-columns/-/lines-and-columns-1.2.4.tgz", + "integrity": "sha512-7ylylesZQ/PV29jhEDl3Ufjo6ZX7gCqJr5F7PKrqc93v7fzSymt1BpwEU8nAUXs8qzzvqhbjhK5QZg6Mt/HkBg==", + "dev": true, + "license": "MIT" + }, + "node_modules/locate-path": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-5.0.0.tgz", + "integrity": "sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==", + "dev": true, + "license": "MIT", + "dependencies": { + "p-locate": "^4.1.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/lodash-es": { + "version": "4.18.1", + "resolved": "https://registry.npmjs.org/lodash-es/-/lodash-es-4.18.1.tgz", + "integrity": "sha512-J8xewKD/Gk22OZbhpOVSwcs60zhd95ESDwezOFuA3/099925PdHJ7OFHNTGtajL3AlZkykD32HykiMo+BIBI8A==", + "license": "MIT" + }, + "node_modules/lodash.debounce": { + "version": "4.0.8", + "resolved": "https://registry.npmjs.org/lodash.debounce/-/lodash.debounce-4.0.8.tgz", + "integrity": "sha512-FT1yDzDYEoYWhnSGnpE/4Kj1fLZkDFyqRb7fNt6FdYOSxlUWAtp42Eh6Wb0rGIv/m9Bgo7x4GhQbm5Ys4SG5ow==", + "dev": true, + "license": "MIT" + }, + "node_modules/lodash.memoize": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/lodash.memoize/-/lodash.memoize-4.1.2.tgz", + "integrity": "sha512-t7j+NzmgnQzTAYXcsHYLgimltOV1MXHtlOWf6GjL9Kj8GK5FInw5JotxvbOs+IvV1/Dzo04/fCGfLVs7aXb4Ag==", + "dev": true, + "license": "MIT" + }, + "node_modules/loose-envify": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/loose-envify/-/loose-envify-1.4.0.tgz", + "integrity": "sha512-lyuxPGr/Wfhrlem2CL/UcnUc1zcqKAImBDzukY7Y5F/yQiNdko6+fRLevlw1HgMySw7f611UIY408EtxRSoK3Q==", + "dev": true, + "license": "MIT", + "peer": true, + "dependencies": { + "js-tokens": "^3.0.0 || ^4.0.0" + }, + "bin": { + "loose-envify": "cli.js" + } + }, + "node_modules/lru-cache": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-5.1.1.tgz", + "integrity": "sha512-KpNARQA3Iwv+jTA0utUVVbrh+Jlrr1Fv0e56GGzAFOXN7dk/FviaDW8LHmK52DlcH4WP2n6gI8vN1aesBFgo9w==", + "dev": true, + "license": "ISC", + "dependencies": { + "yallist": "^3.0.2" + } + }, + "node_modules/lz-string": { + "version": "1.5.0", + "resolved": "https://registry.npmjs.org/lz-string/-/lz-string-1.5.0.tgz", + "integrity": "sha512-h5bgJWpxJNswbU7qCrV0tIKQCaS3blPDrqKWx+QxzuzL1zGUzij9XCWLrSLsJPu5t+eWA/ycetzYAO5IOMcWAQ==", + "dev": true, + "license": "MIT", + "bin": { + "lz-string": "bin/bin.js" + } + }, + "node_modules/make-dir": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/make-dir/-/make-dir-4.0.0.tgz", + "integrity": "sha512-hXdUTZYIVOt1Ex//jAQi+wTZZpUpwBj/0QsOzqegb3rGMMeJiSEu5xLHnYfBrRV4RH2+OCSOO95Is/7x1WJ4bw==", + "dev": true, + "license": "MIT", + "dependencies": { + "semver": "^7.5.3" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/make-dir/node_modules/semver": { + "version": "7.8.5", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.8.5.tgz", + "integrity": "sha512-Y7/KDsb8LjooZpwaqGyulO6DQlksgCncchHGk+sZIY4SBvUocMBEFH5Ur1fI4dV+Jvl0w6cjvucaIi40puRioA==", + "dev": true, + "license": "ISC", + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/make-error": { + "version": "1.3.6", + "resolved": "https://registry.npmjs.org/make-error/-/make-error-1.3.6.tgz", + "integrity": "sha512-s8UhlNe7vPKomQhC1qFelMokr/Sc3AgNbso3n74mVPA5LTZwkB9NlXf4XPamLxJE8h0gh73rM94xvwRT2CVInw==", + "dev": true, + "license": "ISC" + }, + "node_modules/marked": { + "version": "16.4.2", + "resolved": "https://registry.npmjs.org/marked/-/marked-16.4.2.tgz", + "integrity": "sha512-TI3V8YYWvkVf3KJe1dRkpnjs68JUPyEa5vjKrp1XEEJUAOaQc+Qj+L1qWbPd0SJuAdQkFU0h73sXXqwDYxsiDA==", + "license": "MIT", + "bin": { + "marked": "bin/marked.js" + }, + "engines": { + "node": ">= 20" + } + }, + "node_modules/math-intrinsics": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/math-intrinsics/-/math-intrinsics-1.1.0.tgz", + "integrity": "sha512-/IXtbwEk5HTPyEwyKX6hGkYXxM9nbj64B+ilVJnC/R6B0pH5G4V3b0pVbL7DBj4tkhBAppbQUlf6F6Xl9LHu1g==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/mdn-data": { + "version": "2.27.1", + "resolved": "https://registry.npmjs.org/mdn-data/-/mdn-data-2.27.1.tgz", + "integrity": "sha512-9Yubnt3e8A0OKwxYSXyhLymGW4sCufcLG6VdiDdUGVkPhpqLxlvP5vl1983gQjJl3tqbrM731mjaZaP68AgosQ==", + "dev": true, + "license": "CC0-1.0" + }, + "node_modules/merge-stream": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/merge-stream/-/merge-stream-2.0.0.tgz", + "integrity": "sha512-abv/qOcuPfk3URPfDzmZU1LKmuw8kT+0nIHvKrKgFrwifol/doWcdA4ZqsWQ8ENrFKkd67Mfpo/LovbIUsbt3w==", + "dev": true, + "license": "MIT" + }, + "node_modules/mermaid": { + "version": "12.0.0", + "resolved": "https://registry.npmjs.org/mermaid/-/mermaid-12.0.0.tgz", + "integrity": "sha512-/wQXC9iBxoGV8p3erbvaXs9h77VyLDBH6GdayVjj3hEcSQhFU4N1WUhUppotCEqlIxI2pRMwjwBSwTB1MfZBgQ==", + "license": "MIT", + "dependencies": { + "@braintree/sanitize-url": "^7.1.2", + "@iconify/utils": "^3.0.2", + "@mermaid-js/parser": "^2.0.0", + "@types/d3": "^7.4.3", + "@upsetjs/venn.js": "^2.0.0", + "chevrotain": "~11.1.2", + "cytoscape": "^3.34.0", + "cytoscape-cose-bilkent": "^4.1.0", + "cytoscape-fcose": "^2.2.0", + "d3": "^7.9.0", + "d3-sankey": "^0.12.3", + "dagre-d3-es": "7.0.14", + "dayjs": "^1.11.21", + "dompurify": "^3.4.12", + "elkjs": "^0.9.3", + "es-toolkit": "^1.45.1", + "katex": "^0.16.47", + "khroma": "^2.1.0", + "marked": "^16.3.0", + "roughjs": "^4.6.6", + "stylis": "^4.3.6", + "ts-dedent": "^2.2.0", + "uuid": "^11.1.0 || ^12 || ^13 || ^14.0.0" + }, + "engines": { + "node": ">=22.12.0" + } + }, + "node_modules/mermaid/node_modules/commander": { + "version": "8.3.0", + "resolved": "https://registry.npmjs.org/commander/-/commander-8.3.0.tgz", + "integrity": "sha512-OkTL9umf+He2DZkUq8f8J9of7yL6RJKI24dVITBmNfZBmri9zYZQrKkuXiKhyfPSu8tUhnVBB1iKXevvnlR4Ww==", + "license": "MIT", + "engines": { + "node": ">= 12" + } + }, + "node_modules/mermaid/node_modules/katex": { + "version": "0.16.47", + "resolved": "https://registry.npmjs.org/katex/-/katex-0.16.47.tgz", + "integrity": "sha512-Eeo8Ys1doU1z+x8AZsPpQu+p/QcZBI5PeOo7QGQdy2x2m0MU/hYagBbGOmXwr5KVbEfVuWv9LpnQWeehogurjg==", + "funding": [ + "https://opencollective.com/katex", + "https://github.com/sponsors/katex" + ], + "license": "MIT", + "dependencies": { + "commander": "^8.3.0" + }, + "bin": { + "katex": "cli.js" + } + }, + "node_modules/mimic-fn": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-2.1.0.tgz", + "integrity": "sha512-OqbOk5oEQeAZ8WXWydlu9HJjz9WVdEIvamMCcXmuqUYjTknH/sqsWvhQ3vgwKFRR1HpjvNBKQ37nbJgYzGqGcg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/min-indent": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/min-indent/-/min-indent-1.0.1.tgz", + "integrity": "sha512-I9jwMn07Sy/IwOj3zVkVik2JTvgpaykDZEigL6Rx6N9LbMywwUSMtxET+7lVoDLLd3O3IXwJwvuuns8UB/HeAg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=4" + } + }, + "node_modules/minimatch": { + "version": "10.2.6", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-10.2.6.tgz", + "integrity": "sha512-vpLQEs+VLCr1nU0BXS07maYoFwlDAH0gngQuuttxIwutDFEMHq2blX+8vpgxDdK3J1PwjCJiep77OitTZ4Ll1A==", + "dev": true, + "license": "BlueOak-1.0.0", + "dependencies": { + "brace-expansion": "^5.0.8" + }, + "engines": { + "node": "18 || 20 || >=22" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/minimist": { + "version": "1.2.8", + "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.8.tgz", + "integrity": "sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA==", + "dev": true, + "license": "MIT", + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/minipass": { + "version": "7.1.3", + "resolved": "https://registry.npmjs.org/minipass/-/minipass-7.1.3.tgz", + "integrity": "sha512-tEBHqDnIoM/1rXME1zgka9g6Q2lcoCkxHLuc7ODJ5BxbP5d4c2Z5cGgtXAku59200Cx7diuHTOYfSBD8n6mm8A==", + "dev": true, + "license": "BlueOak-1.0.0", + "engines": { + "node": ">=16 || 14 >=14.17" + } + }, + "node_modules/ms": { + "version": "2.1.3", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", + "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==", + "dev": true, + "license": "MIT" + }, + "node_modules/napi-postinstall": { + "version": "0.3.4", + "resolved": "https://registry.npmjs.org/napi-postinstall/-/napi-postinstall-0.3.4.tgz", + "integrity": "sha512-PHI5f1O0EP5xJ9gQmFGMS6IZcrVvTjpXjz7Na41gTE7eE2hK11lg04CECCYEEjdc17EV4DO+fkGEtt7TpTaTiQ==", + "dev": true, + "license": "MIT", + "bin": { + "napi-postinstall": "lib/cli.js" + }, + "engines": { + "node": "^12.20.0 || ^14.18.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/napi-postinstall" + } + }, + "node_modules/natural-compare": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/natural-compare/-/natural-compare-1.4.0.tgz", + "integrity": "sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==", + "dev": true, + "license": "MIT" + }, + "node_modules/neo-async": { + "version": "2.6.2", + "resolved": "https://registry.npmjs.org/neo-async/-/neo-async-2.6.2.tgz", + "integrity": "sha512-Yd3UES5mWCSqR+qNT93S3UoYUkqAZ9lLg8a7g9rimsWmYGK8cVToA4/sF3RrshdyV3sAGMXVUmpMYOw+dLpOuw==", + "dev": true, + "license": "MIT" + }, + "node_modules/node-addon-api": { + "version": "7.1.1", + "resolved": "https://registry.npmjs.org/node-addon-api/-/node-addon-api-7.1.1.tgz", + "integrity": "sha512-5m3bsyrjFWE1xf7nz7YXdN4udnVtXK6/Yfgn5qnahL6bCkf2yKt4k3nuTKAtT4r3IG8JNR2ncsIMdZuAzJjHQQ==", + "dev": true, + "license": "MIT" + }, + "node_modules/node-int64": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/node-int64/-/node-int64-0.4.0.tgz", + "integrity": "sha512-O5lz91xSOeoXP6DulyHfllpq+Eg00MWitZIbtPfoSEvqIHdl5gfcY6hYzDWnj0qD5tz52PI08u9qUvSVeUBeHw==", + "dev": true, + "license": "MIT" + }, + "node_modules/node-releases": { + "version": "2.0.55", + "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.55.tgz", + "integrity": "sha512-mIrE/Cw9y+9Au6dS5vDKDhQza9YvG6w+ZrS6X+ZzA7yFW/soAeaups4Qzn1bL6g5FVy8WtP79+0j82oPIbqRjQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=18" + } + }, + "node_modules/normalize-path": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz", + "integrity": "sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/npm-run-path": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/npm-run-path/-/npm-run-path-4.0.1.tgz", + "integrity": "sha512-S48WzZW777zhNIrn7gxOlISNAqi9ZC/uQFnRdbeIHhZhCA6UqpkOT8T1G7BvfdgP4Er8gF4sUbaS0i7QvIfCWw==", + "dev": true, + "license": "MIT", + "dependencies": { + "path-key": "^3.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/object-inspect": { + "version": "1.13.4", + "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.13.4.tgz", + "integrity": "sha512-W67iLl4J2EXEGTbfeHCffrjDfitvLANg0UlX3wFUUSTx92KXRFegMHUVgSqE+wvhAbi4WqjGg9czysTV2Epbew==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/object-is": { + "version": "1.1.6", + "resolved": "https://registry.npmjs.org/object-is/-/object-is-1.1.6.tgz", + "integrity": "sha512-F8cZ+KfGlSGi09lJT7/Nd6KJZ9ygtvYC0/UYYLI9nmQKLMnydpB9yvbv9K1uSkEu7FU9vYPmVwLg328tX+ot3Q==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bind": "^1.0.7", + "define-properties": "^1.2.1" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/object-keys": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/object-keys/-/object-keys-1.1.1.tgz", + "integrity": "sha512-NuAESUOUMrlIXOfHKzD6bpPu3tYt3xvjNdRIQ+FeT0lNb4K8WR70CaDxhuNguS2XG+GjkyMwOzsN5ZktImfhLA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/object.assign": { + "version": "4.1.7", + "resolved": "https://registry.npmjs.org/object.assign/-/object.assign-4.1.7.tgz", + "integrity": "sha512-nK28WOo+QIjBkDduTINE4JkF/UJJKyf2EJxvJKfblDpyg0Q+pkOHNTL0Qwy6NP6FhE/EnzV73BxxqcJaXY9anw==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bind": "^1.0.8", + "call-bound": "^1.0.3", + "define-properties": "^1.2.1", + "es-object-atoms": "^1.0.0", + "has-symbols": "^1.1.0", + "object-keys": "^1.1.1" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/onetime": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/onetime/-/onetime-5.1.2.tgz", + "integrity": "sha512-kbpaSSGJTWdAY5KPVeMOKXSrPtr8C8C7wodJbcsd51jRnmD+GZu8Y0VoU6Dm5Z4vWr0Ig/1NKuWRKf7j5aaYSg==", + "dev": true, + "license": "MIT", + "dependencies": { + "mimic-fn": "^2.1.0" + }, + "engines": { + "node": ">=6" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/optionator": { + "version": "0.9.4", + "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.9.4.tgz", + "integrity": "sha512-6IpQ7mKUxRcZNLIObR0hz7lxsapSSIYNZJwXPGeF0mTVqGKFIXj1DQcMoT22S3ROcLyY/rz0PWaWZ9ayWmad9g==", + "dev": true, + "license": "MIT", + "dependencies": { + "deep-is": "^0.1.3", + "fast-levenshtein": "^2.0.6", + "levn": "^0.4.1", + "prelude-ls": "^1.2.1", + "type-check": "^0.4.0", + "word-wrap": "^1.2.5" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/p-limit": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz", + "integrity": "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "yocto-queue": "^0.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/p-locate": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-4.1.0.tgz", + "integrity": "sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==", + "dev": true, + "license": "MIT", + "dependencies": { + "p-limit": "^2.2.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/p-locate/node_modules/p-limit": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz", + "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==", + "dev": true, + "license": "MIT", + "dependencies": { + "p-try": "^2.0.0" + }, + "engines": { + "node": ">=6" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/p-try": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/p-try/-/p-try-2.2.0.tgz", + "integrity": "sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/package-json-from-dist": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/package-json-from-dist/-/package-json-from-dist-1.0.1.tgz", + "integrity": "sha512-UEZIS3/by4OC8vL3P2dTXRETpebLI2NiI5vIrjaD/5UtrkFX/tNbwjTSRAGC/+7CAo2pIcBaRgWmcBBHcsaCIw==", + "dev": true, + "license": "BlueOak-1.0.0" + }, + "node_modules/package-manager-detector": { + "version": "1.8.0", + "resolved": "https://registry.npmjs.org/package-manager-detector/-/package-manager-detector-1.8.0.tgz", + "integrity": "sha512-yQA4H19AmPEoMUeavPMDIe1higySl/gH/yaQrkT/s07Qp+7pp2hYz30N3z2l5BkjVkF9Ow6o0wjJamm2y7Sn0A==", + "license": "MIT" + }, + "node_modules/parse-json": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/parse-json/-/parse-json-5.2.0.tgz", + "integrity": "sha512-ayCKvm/phCGxOkYRSCM82iDwct8/EonSEgCSxWxD7ve6jHggsFl4fZVQBPRNgQoKiuV/odhFrGzQXZwbifC8Rg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/code-frame": "^7.0.0", + "error-ex": "^1.3.1", + "json-parse-even-better-errors": "^2.3.0", + "lines-and-columns": "^1.1.6" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/parse5": { + "version": "7.3.0", + "resolved": "https://registry.npmjs.org/parse5/-/parse5-7.3.0.tgz", + "integrity": "sha512-IInvU7fabl34qmi9gY8XOVxhYyMyuH2xUNpb2q8/Y+7552KlejkRvqvD19nMoUW/uQGGbqNpA6Tufu5FL5BZgw==", + "dev": true, + "license": "MIT", + "dependencies": { + "entities": "^6.0.0" + }, + "funding": { + "url": "https://github.com/inikulin/parse5?sponsor=1" + } + }, + "node_modules/path-data-parser": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/path-data-parser/-/path-data-parser-0.1.0.tgz", + "integrity": "sha512-NOnmBpt5Y2RWbuv0LMzsayp3lVylAHLPUTut412ZA3l+C4uw4ZVkQbjShYCQ8TCpUMdPapr4YjUqLYD6v68j+w==", + "license": "MIT" + }, + "node_modules/path-exists": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz", + "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/path-key": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz", + "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/path-parse": { + "version": "1.0.7", + "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.7.tgz", + "integrity": "sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==", + "dev": true, + "license": "MIT" + }, + "node_modules/path-scurry": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/path-scurry/-/path-scurry-2.0.2.tgz", + "integrity": "sha512-3O/iVVsJAPsOnpwWIeD+d6z/7PmqApyQePUtCndjatj/9I5LylHvt5qluFaBT3I5h3r1ejfR056c+FCv+NnNXg==", + "dev": true, + "license": "BlueOak-1.0.0", + "dependencies": { + "lru-cache": "^11.0.0", + "minipass": "^7.1.2" + }, + "engines": { + "node": "18 || 20 || >=22" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/path-scurry/node_modules/lru-cache": { + "version": "11.5.2", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-11.5.2.tgz", + "integrity": "sha512-4pfM1Ff0x50o0tQwb5ucw/RzNyD0/YJME6IVcStalZuMWxdt3sR3huStTtxz4PUmvZfRguvDejasvQ2kifR11g==", + "dev": true, + "license": "BlueOak-1.0.0", + "engines": { + "node": "20 || >=22" + } + }, + "node_modules/picocolors": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.1.1.tgz", + "integrity": "sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==", + "dev": true, + "license": "ISC" + }, + "node_modules/picomatch": { + "version": "4.0.7", + "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-4.0.7.tgz", + "integrity": "sha512-qcJu88Q2IWqJsDD529JKMdwGm/dvInW4HvQnRwiH9JtihJvzGOscDtHE3x1pBKeUOTysQ8kVmLnJ2kJu7yhcGA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/jonschlinkert" + } + }, + "node_modules/pirates": { + "version": "4.0.7", + "resolved": "https://registry.npmjs.org/pirates/-/pirates-4.0.7.tgz", + "integrity": "sha512-TfySrs/5nm8fQJDcBDuUng3VOUKsd7S+zqvbOTiGXHfxX4wK31ard+hoNuvkicM/2YFzlpDgABOevKSsB4G/FA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 6" + } + }, + "node_modules/pkg-dir": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/pkg-dir/-/pkg-dir-4.2.0.tgz", + "integrity": "sha512-HRDzbaKjC+AOWVXxAU/x54COGeIv9eb+6CkDSQoNTt4XyWoIJvuPsXizxu/Fr23EiekbtZwmh1IcIG/l/a10GQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "find-up": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/playwright": { + "version": "1.63.0", + "resolved": "https://registry.npmjs.org/playwright/-/playwright-1.63.0.tgz", + "integrity": "sha512-+7ziBLidS4NaNCdt57SUDT+wYmmd5fmiQejUic/kb+YsYSCPyOOE9sebzMjNmQrsnNpDJqd4WHvV/8lfKfUDUg==", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "playwright-core": "1.63.0" + }, + "bin": { + "playwright": "cli.js" + }, + "engines": { + "node": ">=20" + } + }, + "node_modules/playwright-core": { + "version": "1.63.0", + "resolved": "https://registry.npmjs.org/playwright-core/-/playwright-core-1.63.0.tgz", + "integrity": "sha512-rYCsBF/M5HjUch52bbtVONEFjv6Xu8sm8h72dNlR5bzIE1fvC/bxgspzkjSfU+MweEMmPM8KJebG6nnyxo5mCg==", + "dev": true, + "license": "Apache-2.0", + "bin": { + "playwright-core": "cli.js" + }, + "engines": { + "node": ">=20" + } + }, + "node_modules/points-on-curve": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/points-on-curve/-/points-on-curve-0.2.0.tgz", + "integrity": "sha512-0mYKnYYe9ZcqMCWhUjItv/oHjvgEsfKvnUTg8sAtnHr3GVy7rGkXCb6d5cSyqrWqL4k81b9CPg3urd+T7aop3A==", + "license": "MIT" + }, + "node_modules/points-on-path": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/points-on-path/-/points-on-path-0.2.1.tgz", + "integrity": "sha512-25ClnWWuw7JbWZcgqY/gJ4FQWadKxGWk+3kR/7kD0tCaDtPPMj7oHu2ToLaVhfpnHrZzYby2w6tUA0eOIuUg8g==", + "license": "MIT", + "dependencies": { + "path-data-parser": "0.1.0", + "points-on-curve": "0.2.0" + } + }, + "node_modules/possible-typed-array-names": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/possible-typed-array-names/-/possible-typed-array-names-1.1.0.tgz", + "integrity": "sha512-/+5VFTchJDoVj3bhoqi6UeymcD00DAwb1nJwamzPvHEszJ4FpF6SNNbUbOS8yI56qHzdV8eK0qEfOSiodkTdxg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/prelude-ls": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.2.1.tgz", + "integrity": "sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/pretty-format": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-27.5.1.tgz", + "integrity": "sha512-Qb1gy5OrP5+zDf2Bvnzdl3jsTf1qXVMazbvCoKhtKqVs4/YK4ozX4gKQJJVyNe+cajNPn0KoC0MC3FUmaHWEmQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "ansi-regex": "^5.0.1", + "ansi-styles": "^5.0.0", + "react-is": "^17.0.1" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + } + }, + "node_modules/pretty-format/node_modules/ansi-styles": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-5.2.0.tgz", + "integrity": "sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/punycode": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.1.tgz", + "integrity": "sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/pure-rand": { + "version": "7.0.1", + "resolved": "https://registry.npmjs.org/pure-rand/-/pure-rand-7.0.1.tgz", + "integrity": "sha512-oTUZM/NAZS8p7ANR3SHh30kXB+zK2r2BPcEn/awJIbOvq82WoMN4p62AWWp3Hhw50G0xMsw1mhIBLqHw64EcNQ==", + "dev": true, + "funding": [ + { + "type": "individual", + "url": "https://github.com/sponsors/dubzzz" + }, + { + "type": "opencollective", + "url": "https://opencollective.com/fast-check" + } + ], + "license": "MIT" + }, + "node_modules/pyright": { + "version": "1.1.414", + "resolved": "https://registry.npmjs.org/pyright/-/pyright-1.1.414.tgz", + "integrity": "sha512-FPZZb51jepDX4eP7TEYDeNFtmE3WgwkkEcJpvH3/QmUSsj0EAy3LXu+xB4T/FWDejtsXlCfFr/rbWFjwuwuXww==", + "dev": true, + "license": "MIT", + "bin": { + "pyright": "index.js", + "pyright-langserver": "langserver.index.js" + }, + "engines": { + "node": ">=14.0.0" + }, + "optionalDependencies": { + "fsevents": "~2.3.3" + } + }, + "node_modules/qified": { + "version": "0.10.1", + "resolved": "https://registry.npmjs.org/qified/-/qified-0.10.1.tgz", + "integrity": "sha512-+Owyggi9IxT1ePKGafcI87ubSmxol6smwJ+RAHDQlx9+9cPwFWDiKFFCPuWhr9ignlGpZ9vDQLw67N4dcTVFEA==", + "dev": true, + "license": "MIT", + "dependencies": { + "hookified": "^2.1.1" + }, + "engines": { + "node": ">=20" + } + }, + "node_modules/qified/node_modules/hookified": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/hookified/-/hookified-2.2.0.tgz", + "integrity": "sha512-p/LgFzRN5FeoD3DLS6bkUapeye6E4SI6yJs6KetENd18S+FBthqYq2amJUWpt5z0EQwwHemidjY5OqJGEKm5uA==", + "dev": true, + "license": "MIT" + }, + "node_modules/react": { + "version": "18.3.1", + "resolved": "https://registry.npmjs.org/react/-/react-18.3.1.tgz", + "integrity": "sha512-wS+hAgJShR0KhEvPJArfuPVN1+Hz1t0Y6n5jLrGQbkb4urgPE/0Rve+1kMB1v/oWgHgm4WIcV+i7F2pTVj+2iQ==", + "dev": true, + "license": "MIT", + "peer": true, + "dependencies": { + "loose-envify": "^1.1.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/react-dom": { + "version": "18.3.1", + "resolved": "https://registry.npmjs.org/react-dom/-/react-dom-18.3.1.tgz", + "integrity": "sha512-5m4nQKp+rZRb09LNH59GM4BxTh9251/ylbKIbpe7TpGxfJ+9kv6BLkLBXIjjspbgbnIBNqlI23tRnTWT0snUIw==", + "dev": true, + "license": "MIT", + "peer": true, + "dependencies": { + "loose-envify": "^1.1.0", + "scheduler": "^0.23.2" + }, + "peerDependencies": { + "react": "^18.3.1" + } + }, + "node_modules/react-is": { + "version": "17.0.2", + "resolved": "https://registry.npmjs.org/react-is/-/react-is-17.0.2.tgz", + "integrity": "sha512-w2GsyukL62IJnlaff/nRegPQR94C/XXamvMWmSHRJ4y7Ts/4ocGRmTHvOs8PSE6pB3dWOrD/nueuU5sduBsQ4w==", + "dev": true, + "license": "MIT" + }, + "node_modules/redent": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/redent/-/redent-3.0.0.tgz", + "integrity": "sha512-6tDA8g98We0zd0GvVeMT9arEOnTw9qM03L9cJXaCjrip1OO764RDBLBfrB4cwzNGDj5OA5ioymC9GkizgWJDUg==", + "dev": true, + "license": "MIT", + "dependencies": { + "indent-string": "^4.0.0", + "strip-indent": "^3.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/regenerate": { + "version": "1.4.2", + "resolved": "https://registry.npmjs.org/regenerate/-/regenerate-1.4.2.tgz", + "integrity": "sha512-zrceR/XhGYU/d/opr2EKO7aRHUeiBI8qjtfHqADTwZd6Szfy16la6kqD0MIUs5z5hx6AaKa+PixpPrR289+I0A==", + "dev": true, + "license": "MIT" + }, + "node_modules/regenerate-unicode-properties": { + "version": "10.2.2", + "resolved": "https://registry.npmjs.org/regenerate-unicode-properties/-/regenerate-unicode-properties-10.2.2.tgz", + "integrity": "sha512-m03P+zhBeQd1RGnYxrGyDAPpWX/epKirLrp8e3qevZdVkKtnCrjjWczIbYc8+xd6vcTStVlqfycTx1KR4LOr0g==", + "dev": true, + "license": "MIT", + "dependencies": { + "regenerate": "^1.4.2" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/regexp.prototype.flags": { + "version": "1.5.4", + "resolved": "https://registry.npmjs.org/regexp.prototype.flags/-/regexp.prototype.flags-1.5.4.tgz", + "integrity": "sha512-dYqgNSZbDwkaJ2ceRd9ojCGjBq+mOm9LmtXnAnEGyHhN/5R7iDW2TRw3h+o/jCFxus3P2LfWIIiwowAjANm7IA==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bind": "^1.0.8", + "define-properties": "^1.2.1", + "es-errors": "^1.3.0", + "get-proto": "^1.0.1", + "gopd": "^1.2.0", + "set-function-name": "^2.0.2" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/regexpu-core": { + "version": "6.4.0", + "resolved": "https://registry.npmjs.org/regexpu-core/-/regexpu-core-6.4.0.tgz", + "integrity": "sha512-0ghuzq67LI9bLXpOX/ISfve/Mq33a4aFRzoQYhnnok1JOFpmE/A2TBGkNVenOGEeSBCjIiWcc6MVOG5HEQv0sA==", + "dev": true, + "license": "MIT", + "dependencies": { + "regenerate": "^1.4.2", + "regenerate-unicode-properties": "^10.2.2", + "regjsgen": "^0.8.0", + "regjsparser": "^0.13.0", + "unicode-match-property-ecmascript": "^2.0.0", + "unicode-match-property-value-ecmascript": "^2.2.1" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/regjsgen": { + "version": "0.8.0", + "resolved": "https://registry.npmjs.org/regjsgen/-/regjsgen-0.8.0.tgz", + "integrity": "sha512-RvwtGe3d7LvWiDQXeQw8p5asZUmfU1G/l6WbUXeHta7Y2PEIvBTwH6E2EfmYUK8pxcxEdEmaomqyp0vZZ7C+3Q==", + "dev": true, + "license": "MIT" + }, + "node_modules/regjsparser": { + "version": "0.13.2", + "resolved": "https://registry.npmjs.org/regjsparser/-/regjsparser-0.13.2.tgz", + "integrity": "sha512-NgRBy2Nx/bE+9F27nVHnqcN5HjyLmecqsqx2PJHu3/IEtADD4WuxuXIVExD5PoSDFVrl78dOonfcOe5O+5nbzQ==", + "dev": true, + "license": "BSD-2-Clause", + "dependencies": { + "jsesc": "~3.1.0" + }, + "bin": { + "regjsparser": "bin/parser" + } + }, + "node_modules/require-directory": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz", + "integrity": "sha512-fGxEI7+wsG9xrvdjsrlmL22OMTTiHRwAMroiEeMgq8gzoLC/PQr7RsRDSTLUg/bZAZtF+TVIkHc6/4RIKrui+Q==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/require-from-string": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/require-from-string/-/require-from-string-2.0.2.tgz", + "integrity": "sha512-Xf0nWe6RseziFMu+Ap9biiUbmplq6S9/p+7w7YXP/JBHhrUDDUhwa+vANyubuqfZWTveU//DYVGsDG7RKL/vEw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/resolve": { + "version": "1.22.12", + "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.22.12.tgz", + "integrity": "sha512-TyeJ1zif53BPfHootBGwPRYT1RUt6oGWsaQr8UyZW/eAm9bKoijtvruSDEmZHm92CwS9nj7/fWttqPCgzep8CA==", + "dev": true, + "license": "MIT", + "dependencies": { + "es-errors": "^1.3.0", + "is-core-module": "^2.16.1", + "path-parse": "^1.0.7", + "supports-preserve-symlinks-flag": "^1.0.0" + }, + "bin": { + "resolve": "bin/resolve" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/resolve-cwd": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/resolve-cwd/-/resolve-cwd-3.0.0.tgz", + "integrity": "sha512-OrZaX2Mb+rJCpH/6CpSqt9xFVpN++x01XnN2ie9g6P5/3xelLAkXWVADpdz1IHD/KFfEXyE6V0U01OQ3UO2rEg==", + "dev": true, + "license": "MIT", + "dependencies": { + "resolve-from": "^5.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/resolve-from": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-5.0.0.tgz", + "integrity": "sha512-qYg9KP24dD5qka9J47d0aVky0N+b4fTU89LN9iDnjB5waksiC49rvMB0PrUJQGoTmH50XPiqOvAjDfaijGxYZw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/robust-predicates": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/robust-predicates/-/robust-predicates-3.0.3.tgz", + "integrity": "sha512-NS3levdsRIUOmiJ8FZWCP7LG3QpJyrs/TE0Zpf1yvZu8cAJJ6QMW92H1c7kWpdIHo8RvmLxN/o2JXTKHp74lUA==", + "license": "Unlicense" + }, + "node_modules/roughjs": { + "version": "4.6.6", + "resolved": "https://registry.npmjs.org/roughjs/-/roughjs-4.6.6.tgz", + "integrity": "sha512-ZUz/69+SYpFN/g/lUlo2FXcIjRkSu3nDarreVdGGndHEBJ6cXPdKguS8JGxwj5HA5xIbVKSmLgr5b3AWxtRfvQ==", + "license": "MIT", + "dependencies": { + "hachure-fill": "^0.5.2", + "path-data-parser": "^0.1.0", + "points-on-curve": "^0.2.0", + "points-on-path": "^0.2.1" + } + }, + "node_modules/rw": { + "version": "1.3.3", + "resolved": "https://registry.npmjs.org/rw/-/rw-1.3.3.tgz", + "integrity": "sha512-PdhdWy89SiZogBLaw42zdeqtRJ//zFd2PgQavcICDUgJT5oW10QCRKbJ6bg4r0/UY2M6BWd5tkxuGFRvCkgfHQ==", + "license": "BSD-3-Clause" + }, + "node_modules/safe-regex-test": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/safe-regex-test/-/safe-regex-test-1.1.0.tgz", + "integrity": "sha512-x/+Cz4YrimQxQccJf5mKEbIa1NzeCRNI5Ecl/ekmlYaampdNLPalVyIcCZNNH3MvmqBugV5TMYZXv0ljslUlaw==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bound": "^1.0.2", + "es-errors": "^1.3.0", + "is-regex": "^1.2.1" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/safer-buffer": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz", + "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==", + "license": "MIT" + }, + "node_modules/saxes": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/saxes/-/saxes-6.0.0.tgz", + "integrity": "sha512-xAg7SOnEhrm5zI3puOOKyy1OMcMlIJZYNJY7xLBwSze0UjhPLnWfj2GF2EpT0jmzaJKIWKHLsaSSajf35bcYnA==", + "dev": true, + "license": "ISC", + "dependencies": { + "xmlchars": "^2.2.0" + }, + "engines": { + "node": ">=v12.22.7" + } + }, + "node_modules/scheduler": { + "version": "0.23.2", + "resolved": "https://registry.npmjs.org/scheduler/-/scheduler-0.23.2.tgz", + "integrity": "sha512-UOShsPwz7NrMUqhR6t0hWjFduvOzbtv7toDH1/hIrfRNIDBnnBWd0CwJTGvTpngVlmwGCdP9/Zl/tVrDqcuYzQ==", + "dev": true, + "license": "MIT", + "peer": true, + "dependencies": { + "loose-envify": "^1.1.0" + } + }, + "node_modules/semver": { + "version": "6.3.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", + "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", + "dev": true, + "license": "ISC", + "bin": { + "semver": "bin/semver.js" + } + }, + "node_modules/set-function-length": { + "version": "1.2.2", + "resolved": "https://registry.npmjs.org/set-function-length/-/set-function-length-1.2.2.tgz", + "integrity": "sha512-pgRc4hJ4/sNjWCSS9AmnS40x3bNMDTknHgL5UaMBTMyJnU90EgWh1Rz+MC9eFu4BuN/UwZjKQuY/1v3rM7HMfg==", + "dev": true, + "license": "MIT", + "dependencies": { + "define-data-property": "^1.1.4", + "es-errors": "^1.3.0", + "function-bind": "^1.1.2", + "get-intrinsic": "^1.2.4", + "gopd": "^1.0.1", + "has-property-descriptors": "^1.0.2" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/set-function-name": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/set-function-name/-/set-function-name-2.0.2.tgz", + "integrity": "sha512-7PGFlmtwsEADb0WYyvCMa1t+yke6daIG4Wirafur5kcf+MhUnPms1UeR0CKQdTZD81yESwMHbtn+TR+dMviakQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "define-data-property": "^1.1.4", + "es-errors": "^1.3.0", + "functions-have-names": "^1.2.3", + "has-property-descriptors": "^1.0.2" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/shebang-command": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz", + "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==", + "dev": true, + "license": "MIT", + "dependencies": { + "shebang-regex": "^3.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/shebang-regex": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz", + "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/side-channel": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/side-channel/-/side-channel-1.1.1.tgz", + "integrity": "sha512-6x6dK6zJdpTzF4sQeNYxwtvBzf6Eg4GtlesS94HOvTudUeyK2WXAaIfmDgsyslYrRBeFIlsi54AYsFGUuhmvrQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "es-errors": "^1.3.0", + "object-inspect": "^1.13.4", + "side-channel-list": "^1.0.1", + "side-channel-map": "^1.0.1", + "side-channel-weakmap": "^1.0.2" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/side-channel-list": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/side-channel-list/-/side-channel-list-1.0.1.tgz", + "integrity": "sha512-mjn/0bi/oUURjc5Xl7IaWi/OJJJumuoJFQJfDDyO46+hBWsfaVM65TBHq2eoZBhzl9EchxOijpkbRC8SVBQU0w==", + "dev": true, + "license": "MIT", + "dependencies": { + "es-errors": "^1.3.0", + "object-inspect": "^1.13.4" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/side-channel-map": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/side-channel-map/-/side-channel-map-1.0.1.tgz", + "integrity": "sha512-VCjCNfgMsby3tTdo02nbjtM/ewra6jPHmpThenkTYh8pG9ucZ/1P8So4u4FGBek/BjpOVsDCMoLA/iuBKIFXRA==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bound": "^1.0.2", + "es-errors": "^1.3.0", + "get-intrinsic": "^1.2.5", + "object-inspect": "^1.13.3" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/side-channel-weakmap": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/side-channel-weakmap/-/side-channel-weakmap-1.0.2.tgz", + "integrity": "sha512-WPS/HvHQTYnHisLo9McqBHOJk2FkHO/tlpvldyrnem4aeQp4hai3gythswg6p01oSoTl58rcpiFAjF2br2Ak2A==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bound": "^1.0.2", + "es-errors": "^1.3.0", + "get-intrinsic": "^1.2.5", + "object-inspect": "^1.13.3", + "side-channel-map": "^1.0.1" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/signal-exit": { + "version": "3.0.7", + "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.7.tgz", + "integrity": "sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ==", + "dev": true, + "license": "ISC" + }, + "node_modules/slash": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/slash/-/slash-3.0.0.tgz", + "integrity": "sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "dev": true, + "license": "BSD-3-Clause", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/source-map-js": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.2.1.tgz", + "integrity": "sha512-UXWMKhLOwVKb728IUtQPXxfYU+usdybtUrK/8uGE8CQMvrhOpwvzDBwj0QhSL7MQc7vIsISBG8VQ8+IDQxpfQA==", + "dev": true, + "license": "BSD-3-Clause", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/sprintf-js": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.3.tgz", + "integrity": "sha512-D9cPgkvLlV3t3IzL0D0YLvGA9Ahk4PcvVwUbN0dSGr1aP0Nrt4AEnTUbuGvquEC0mA64Gqt1fzirlRs5ibXx8g==", + "dev": true, + "license": "BSD-3-Clause" + }, + "node_modules/stack-utils": { + "version": "2.0.6", + "resolved": "https://registry.npmjs.org/stack-utils/-/stack-utils-2.0.6.tgz", + "integrity": "sha512-XlkWvfIm6RmsWtNJx+uqtKLS8eqFbxUg0ZzLXqY0caEy9l7hruX8IpiDnjsLavoBgqCCR71TqWO8MaXYheJ3RQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "escape-string-regexp": "^2.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/stack-utils/node_modules/escape-string-regexp": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-2.0.0.tgz", + "integrity": "sha512-UpzcLCXolUWcNu5HtVMHYdXJjArjsF9C0aNnquZYY4uW/Vu0miy5YoWvbV345HauVvcAUnpRuhMMcqTcGOY2+w==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/stop-iteration-iterator": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/stop-iteration-iterator/-/stop-iteration-iterator-1.1.0.tgz", + "integrity": "sha512-eLoXW/DHyl62zxY4SCaIgnRhuMr6ri4juEYARS8E6sCEqzKpOiE521Ucofdx+KnDZl5xmvGYaaKCk5FEOxJCoQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "es-errors": "^1.3.0", + "internal-slot": "^1.1.0" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/string-length": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/string-length/-/string-length-4.0.2.tgz", + "integrity": "sha512-+l6rNN5fYHNhZZy41RXsYptCjA2Igmq4EG7kZAYFQI1E1VTXarr6ZPXBg6eq7Y6eK4FEhY6AJlyuFIb/v/S0VQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "char-regex": "^1.0.2", + "strip-ansi": "^6.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/string-width": { + "version": "4.2.3", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", + "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", + "dev": true, + "license": "MIT", + "dependencies": { + "emoji-regex": "^8.0.0", + "is-fullwidth-code-point": "^3.0.0", + "strip-ansi": "^6.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/string-width-cjs": { + "name": "string-width", + "version": "4.2.3", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", + "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", + "dev": true, + "license": "MIT", + "dependencies": { + "emoji-regex": "^8.0.0", + "is-fullwidth-code-point": "^3.0.0", + "strip-ansi": "^6.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/strip-ansi": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", + "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", + "dev": true, + "license": "MIT", + "dependencies": { + "ansi-regex": "^5.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/strip-ansi-cjs": { + "name": "strip-ansi", + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", + "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", + "dev": true, + "license": "MIT", + "dependencies": { + "ansi-regex": "^5.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/strip-bom": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-4.0.0.tgz", + "integrity": "sha512-3xurFv5tEgii33Zi8Jtp55wEIILR9eh34FAW00PZf+JnSsTmV/ioewSgQl97JHvgjoRGwPShsWm+IdrxB35d0w==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/strip-final-newline": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/strip-final-newline/-/strip-final-newline-2.0.0.tgz", + "integrity": "sha512-BrpvfNAE3dcvq7ll3xVumzjKjZQ5tI1sEUIKr3Uoks0XUl45St3FlatVqef9prk4jRDzhW6WZg+3bk93y6pLjA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/strip-indent": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/strip-indent/-/strip-indent-3.0.0.tgz", + "integrity": "sha512-laJTa3Jb+VQpaC6DseHhF7dXVqHTfJPCRDaEbid/drOhgitgYku/letMUqOXFoWV0zIIUbjpdH2t+tYj4bQMRQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "min-indent": "^1.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/strip-json-comments": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz", + "integrity": "sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/stylis": { + "version": "4.4.0", + "resolved": "https://registry.npmjs.org/stylis/-/stylis-4.4.0.tgz", + "integrity": "sha512-5Z9ZpRzfuH6l/UAvCPAPUo3665Nk2wLaZU3x+TLHKVzIz33+sbJqbtrYoC3KD4/uVOr2Zp+L0LySezP9OHV9yA==", + "license": "MIT" + }, + "node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "license": "MIT", + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/supports-preserve-symlinks-flag": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/supports-preserve-symlinks-flag/-/supports-preserve-symlinks-flag-1.0.0.tgz", + "integrity": "sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/symbol-tree": { + "version": "3.2.4", + "resolved": "https://registry.npmjs.org/symbol-tree/-/symbol-tree-3.2.4.tgz", + "integrity": "sha512-9QNk5KwDF+Bvz+PyObkmSYjI5ksVUYtjW7AU22r2NKcfLJcXp96hkDWU3+XndOsUb+AQ9QhfzfCT2O+CNWT5Tw==", + "dev": true, + "license": "MIT" + }, + "node_modules/synckit": { + "version": "0.11.13", + "resolved": "https://registry.npmjs.org/synckit/-/synckit-0.11.13.tgz", + "integrity": "sha512-eNRKgb3z66Yp3D2CixVujOUvXLFUTij/zVnV8KRyvFdQwpz7I5DS8UfRkTeLzb64u+dkzDSdelE24izu+zSSUg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@pkgr/core": "^0.3.6" + }, + "engines": { + "node": "^14.18.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/synckit" + } + }, + "node_modules/test-exclude": { + "version": "7.0.2", + "resolved": "https://registry.npmjs.org/test-exclude/-/test-exclude-7.0.2.tgz", + "integrity": "sha512-u9E6A+ZDYdp7a4WnarkXPZOx8Ilz46+kby6p1yZ8zsGTz9gYa6FIS7lj2oezzNKmtdyyJNNmmXDppga5GB7kSw==", + "dev": true, + "license": "ISC", + "dependencies": { + "@istanbuljs/schema": "^0.1.2", + "glob": "^10.4.1", + "minimatch": "^10.2.2" + }, + "engines": { + "node": ">=18" + } + }, + "node_modules/test-exclude/node_modules/balanced-match": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", + "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==", + "dev": true, + "license": "MIT" + }, + "node_modules/test-exclude/node_modules/brace-expansion": { + "version": "2.1.4", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.1.4.tgz", + "integrity": "sha512-hGfVzPxthbf3+2yjg/RBs60cB0FhqBS/zvdV/4wn4/BmN0bNMMHPc4V/BbFieqf1TKAGGAHnY4eSjajCl0f2Xg==", + "dev": true, + "license": "MIT", + "dependencies": { + "balanced-match": "^1.0.0" + } + }, + "node_modules/test-exclude/node_modules/glob": { + "version": "10.5.0", + "resolved": "https://registry.npmjs.org/glob/-/glob-10.5.0.tgz", + "integrity": "sha512-DfXN8DfhJ7NH3Oe7cFmu3NCu1wKbkReJ8TorzSAFbSKrlNaQSKfIzqYqVY8zlbs2NLBbWpRiU52GX2PbaBVNkg==", + "deprecated": "Old versions of glob are not supported, and contain widely publicized security vulnerabilities, which have been fixed in the current version. Please update. Support for old versions may be purchased (at exorbitant rates) by contacting i@izs.me", + "dev": true, + "license": "ISC", + "dependencies": { + "foreground-child": "^3.1.0", + "jackspeak": "^3.1.2", + "minimatch": "^9.0.4", + "minipass": "^7.1.2", + "package-json-from-dist": "^1.0.0", + "path-scurry": "^1.11.1" + }, + "bin": { + "glob": "dist/esm/bin.mjs" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/test-exclude/node_modules/glob/node_modules/minimatch": { + "version": "9.0.9", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-9.0.9.tgz", + "integrity": "sha512-OBwBN9AL4dqmETlpS2zasx+vTeWclWzkblfZk7KTA5j3jeOONz/tRCnZomUyvNg83wL5Zv9Ss6HMJXAgL8R2Yg==", + "dev": true, + "license": "ISC", + "dependencies": { + "brace-expansion": "^2.0.2" + }, + "engines": { + "node": ">=16 || 14 >=14.17" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/test-exclude/node_modules/lru-cache": { + "version": "10.4.3", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-10.4.3.tgz", + "integrity": "sha512-JNAzZcXrCt42VGLuYz0zfAzDfAvJWW6AfYlDBQyDV5DClI2m5sAmK+OIO7s59XfsRsWHp02jAJrRadPRGTt6SQ==", + "dev": true, + "license": "ISC" + }, + "node_modules/test-exclude/node_modules/path-scurry": { + "version": "1.11.1", + "resolved": "https://registry.npmjs.org/path-scurry/-/path-scurry-1.11.1.tgz", + "integrity": "sha512-Xa4Nw17FS9ApQFJ9umLiJS4orGjm7ZzwUrwamcGQuHSzDyth9boKDaycYdDcZDuqYATXw4HFXgaqWTctW/v1HA==", + "dev": true, + "license": "BlueOak-1.0.0", + "dependencies": { + "lru-cache": "^10.2.0", + "minipass": "^5.0.0 || ^6.0.2 || ^7.0.0" + }, + "engines": { + "node": ">=16 || 14 >=14.18" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/tinyexec": { + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/tinyexec/-/tinyexec-1.3.1.tgz", + "integrity": "sha512-GCvB3aoys96IuDFBMcTB46JOR6mdMtAToqwiW8JlWhsoh1mhHi/xn9ss/Dg7N555GiJyEt2qzoG/NHCwM6h1EA==", + "license": "MIT", + "engines": { + "node": ">=18" + } + }, + "node_modules/tldts": { + "version": "7.4.12", + "resolved": "https://registry.npmjs.org/tldts/-/tldts-7.4.12.tgz", + "integrity": "sha512-WylhSDKVeYnWXL3a+vKTaOxjnOeEGw938hImY8zoRWJjRRK/Jp1K+IihBzIONpUmW4e3WmXT6q5FW6vlESVZCA==", + "dev": true, + "license": "MIT", + "dependencies": { + "tldts-core": "^7.4.12" + }, + "bin": { + "tldts": "bin/cli.js" + } + }, + "node_modules/tldts-core": { + "version": "7.4.12", + "resolved": "https://registry.npmjs.org/tldts-core/-/tldts-core-7.4.12.tgz", + "integrity": "sha512-nYNzS2WRf4QJmjzFFgAxLOBjyBxAGRbCy9PVBPaglcYyYajh40VBn+v5Ngr96ZMc7oM0+aCJdtQnNejvdBnXMQ==", + "dev": true, + "license": "MIT" + }, + "node_modules/tough-cookie": { + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/tough-cookie/-/tough-cookie-6.0.2.tgz", + "integrity": "sha512-exgYmnmL/sJpR3upZfXG5PoatXQii55xAiXGXzY+sROLZ/Y+SLcp9PgJNI9Vz37HpQ74WvDcLT8eqm+kV3FzrA==", + "dev": true, + "license": "BSD-3-Clause", + "dependencies": { + "tldts": "^7.0.5" + }, + "engines": { + "node": ">=16" + } + }, + "node_modules/tr46": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/tr46/-/tr46-6.0.0.tgz", + "integrity": "sha512-bLVMLPtstlZ4iMQHpFHTR7GAGj2jxi8Dg0s2h2MafAE4uSWF98FC/3MomU51iQAMf8/qDUbKWf5GxuvvVcXEhw==", + "dev": true, + "license": "MIT", + "dependencies": { + "punycode": "^2.3.1" + }, + "engines": { + "node": ">=20" + } + }, + "node_modules/ts-dedent": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/ts-dedent/-/ts-dedent-2.3.0.tgz", + "integrity": "sha512-JfJeIHke7y2egdGGgRAvpCwYFUsHlM2gPcrVOxFkznt/4uzQ7HFmvE63iFHVLBJNDuyDOQgijDK/tXH/f6Msjg==", + "license": "MIT", + "engines": { + "node": ">=6.10" + } + }, + "node_modules/ts-jest": { + "version": "29.4.12", + "resolved": "https://registry.npmjs.org/ts-jest/-/ts-jest-29.4.12.tgz", + "integrity": "sha512-Ov6ClY53Fflh6BGAnY2DlTq1hYDrTycz2PVTXBWFW2CU+9zrEqAp9fWdGXl42EXO5RLSFAcAZ2JFKbP+zBTFfw==", + "dev": true, + "license": "MIT", + "dependencies": { + "bs-logger": "^0.2.6", + "fast-json-stable-stringify": "^2.1.0", + "handlebars": "^4.7.9", + "json5": "^2.2.3", + "lodash.memoize": "^4.1.2", + "make-error": "^1.3.6", + "semver": "^7.8.5", + "type-fest": "^4.41.0", + "yargs-parser": "^21.1.1" + }, + "bin": { + "ts-jest": "cli.js" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || ^18.0.0 || >=20.0.0" + }, + "peerDependencies": { + "@babel/core": ">=7.0.0-beta.0 <8", + "@jest/transform": "^29.0.0 || ^30.0.0", + "@jest/types": "^29.0.0 || ^30.0.0", + "babel-jest": "^29.0.0 || ^30.0.0", + "jest": "^29.0.0 || ^30.0.0", + "jest-util": "^29.0.0 || ^30.0.0", + "typescript": ">=4.3 <7" + }, + "peerDependenciesMeta": { + "@babel/core": { + "optional": true + }, + "@jest/transform": { + "optional": true + }, + "@jest/types": { + "optional": true + }, + "babel-jest": { + "optional": true + }, + "esbuild": { + "optional": true + }, + "jest-util": { + "optional": true + } + } + }, + "node_modules/ts-jest/node_modules/semver": { + "version": "7.8.5", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.8.5.tgz", + "integrity": "sha512-Y7/KDsb8LjooZpwaqGyulO6DQlksgCncchHGk+sZIY4SBvUocMBEFH5Ur1fI4dV+Jvl0w6cjvucaIi40puRioA==", + "dev": true, + "license": "ISC", + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/ts-jest/node_modules/type-fest": { + "version": "4.41.0", + "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-4.41.0.tgz", + "integrity": "sha512-TeTSQ6H5YHvpqVwBRcnLDCBnDOHWYu7IvGbHT6N8AOymcr9PJGjc1GTtiWZTYg0NCgYwvnYWEkVChQAr9bjfwA==", + "dev": true, + "license": "(MIT OR CC0-1.0)", + "engines": { + "node": ">=16" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/tslib": { + "version": "2.8.1", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.8.1.tgz", + "integrity": "sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w==", + "dev": true, + "license": "0BSD", + "optional": true + }, + "node_modules/type-check": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/type-check/-/type-check-0.4.0.tgz", + "integrity": "sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew==", + "dev": true, + "license": "MIT", + "dependencies": { + "prelude-ls": "^1.2.1" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/type-detect": { + "version": "4.0.8", + "resolved": "https://registry.npmjs.org/type-detect/-/type-detect-4.0.8.tgz", + "integrity": "sha512-0fr/mIH1dlO+x7TlcMy+bIDqKPsw/70tVyeHW787goQjhmqaZe10uwLujubK9q9Lg6Fiho1KUKDYz0Z7k7g5/g==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=4" + } + }, + "node_modules/type-fest": { + "version": "0.21.3", + "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.21.3.tgz", + "integrity": "sha512-t0rzBq87m3fVcduHDUFhKmyyX+9eo6WQjZvf51Ea/M0Q7+T374Jp1aUiyUl0GKxp8M/OETVHSDvmkyPgvX+X2w==", + "dev": true, + "license": "(MIT OR CC0-1.0)", + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/typescript": { + "version": "5.9.3", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.9.3.tgz", + "integrity": "sha512-jl1vZzPDinLr9eUt3J/t7V6FgNEw9QjvBPdysz9KfQDD41fQrC2Y4vKQdiaUpFT4bXlb1RHhLpp8wtm6M5TgSw==", + "dev": true, + "license": "Apache-2.0", + "bin": { + "tsc": "bin/tsc", + "tsserver": "bin/tsserver" + }, + "engines": { + "node": ">=14.17" + } + }, + "node_modules/uglify-js": { + "version": "3.19.3", + "resolved": "https://registry.npmjs.org/uglify-js/-/uglify-js-3.19.3.tgz", + "integrity": "sha512-v3Xu+yuwBXisp6QYTcH4UbH+xYJXqnq2m/LtQVWKWzYc1iehYnLixoQDN9FH6/j9/oybfd6W9Ghwkl8+UMKTKQ==", + "dev": true, + "license": "BSD-2-Clause", + "optional": true, + "bin": { + "uglifyjs": "bin/uglifyjs" + }, + "engines": { + "node": ">=0.8.0" + } + }, + "node_modules/undici": { + "version": "7.29.1", + "resolved": "https://registry.npmjs.org/undici/-/undici-7.29.1.tgz", + "integrity": "sha512-RYONW2MeafgYlkVOKYKkA/Ag7BmXqgIWCa8t1m0JcxrQg9pI9lEqRhAOruOBCbAohOa/gkCF+iPi9hrgvTzu6Q==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=20.18.1" + } + }, + "node_modules/undici-types": { + "version": "6.21.0", + "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-6.21.0.tgz", + "integrity": "sha512-iwDZqg0QAGrg9Rav5H4n0M64c3mkR59cJ6wQp+7C4nI0gsmExaedaYLNO44eT4AtBBwjbTiGPMlt2Md0T9H9JQ==", + "dev": true, + "license": "MIT" + }, + "node_modules/unicode-canonical-property-names-ecmascript": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/unicode-canonical-property-names-ecmascript/-/unicode-canonical-property-names-ecmascript-2.0.1.tgz", + "integrity": "sha512-dA8WbNeb2a6oQzAQ55YlT5vQAWGV9WXOsi3SskE3bcCdM0P4SDd+24zS/OCacdRq5BkdsRj9q3Pg6YyQoxIGqg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=4" + } + }, + "node_modules/unicode-match-property-ecmascript": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/unicode-match-property-ecmascript/-/unicode-match-property-ecmascript-2.0.0.tgz", + "integrity": "sha512-5kaZCrbp5mmbz5ulBkDkbY0SsPOjKqVS35VpL9ulMPfSl0J0Xsm+9Evphv9CoIZFwre7aJoa94AY6seMKGVN5Q==", + "dev": true, + "license": "MIT", + "dependencies": { + "unicode-canonical-property-names-ecmascript": "^2.0.0", + "unicode-property-aliases-ecmascript": "^2.0.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/unicode-match-property-value-ecmascript": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/unicode-match-property-value-ecmascript/-/unicode-match-property-value-ecmascript-2.2.1.tgz", + "integrity": "sha512-JQ84qTuMg4nVkx8ga4A16a1epI9H6uTXAknqxkGF/aFfRLw1xC/Bp24HNLaZhHSkWd3+84t8iXnp1J0kYcZHhg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=4" + } + }, + "node_modules/unicode-property-aliases-ecmascript": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/unicode-property-aliases-ecmascript/-/unicode-property-aliases-ecmascript-2.2.0.tgz", + "integrity": "sha512-hpbDzxUY9BFwX+UeBnxv3Sh1q7HFxj48DTmXchNgRa46lO8uj3/1iEn3MiNUYTg1g9ctIqXCCERn8gYZhHC5lQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=4" + } + }, + "node_modules/unrs-resolver": { + "version": "1.12.2", + "resolved": "https://registry.npmjs.org/unrs-resolver/-/unrs-resolver-1.12.2.tgz", + "integrity": "sha512-dmlRxBJJayXjqTwC+JtF1HhJmgf3ftQ3YejFcZrf4+KKtJv0qDsK1pjqaaVjG7wJ5NJ6UVP1OqRMQ71Z4C3rxQ==", + "dev": true, + "hasInstallScript": true, + "license": "MIT", + "dependencies": { + "napi-postinstall": "^0.3.4" + }, + "funding": { + "url": "https://opencollective.com/unrs-resolver" + }, + "optionalDependencies": { + "@unrs/resolver-binding-android-arm-eabi": "1.12.2", + "@unrs/resolver-binding-android-arm64": "1.12.2", + "@unrs/resolver-binding-darwin-arm64": "1.12.2", + "@unrs/resolver-binding-darwin-x64": "1.12.2", + "@unrs/resolver-binding-freebsd-x64": "1.12.2", + "@unrs/resolver-binding-linux-arm-gnueabihf": "1.12.2", + "@unrs/resolver-binding-linux-arm-musleabihf": "1.12.2", + "@unrs/resolver-binding-linux-arm64-gnu": "1.12.2", + "@unrs/resolver-binding-linux-arm64-musl": "1.12.2", + "@unrs/resolver-binding-linux-loong64-gnu": "1.12.2", + "@unrs/resolver-binding-linux-loong64-musl": "1.12.2", + "@unrs/resolver-binding-linux-ppc64-gnu": "1.12.2", + "@unrs/resolver-binding-linux-riscv64-gnu": "1.12.2", + "@unrs/resolver-binding-linux-riscv64-musl": "1.12.2", + "@unrs/resolver-binding-linux-s390x-gnu": "1.12.2", + "@unrs/resolver-binding-linux-x64-gnu": "1.12.2", + "@unrs/resolver-binding-linux-x64-musl": "1.12.2", + "@unrs/resolver-binding-openharmony-arm64": "1.12.2", + "@unrs/resolver-binding-wasm32-wasi": "1.12.2", + "@unrs/resolver-binding-win32-arm64-msvc": "1.12.2", + "@unrs/resolver-binding-win32-ia32-msvc": "1.12.2", + "@unrs/resolver-binding-win32-x64-msvc": "1.12.2" + } + }, + "node_modules/update-browserslist-db": { + "version": "1.3.3", + "resolved": "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.3.3.tgz", + "integrity": "sha512-pJ2sYawQS0R/WI928Gj5GlPhTGzbMelq0+4INtSYNDV9ErKJcX6xjGWkoG/VnB3dpUm00zALaqkrUD77pO5TDQ==", + "dev": true, + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/browserslist" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/browserslist" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "license": "MIT", + "dependencies": { + "escalade": "^3.2.0", + "picocolors": "^1.1.1" + }, + "bin": { + "update-browserslist-db": "cli.js" + }, + "peerDependencies": { + "browserslist": ">= 4.21.0" + } + }, + "node_modules/uri-js": { + "version": "4.4.1", + "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.4.1.tgz", + "integrity": "sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==", + "dev": true, + "license": "BSD-2-Clause", + "dependencies": { + "punycode": "^2.1.0" + } + }, + "node_modules/uuid": { + "version": "14.0.2", + "resolved": "https://registry.npmjs.org/uuid/-/uuid-14.0.2.tgz", + "integrity": "sha512-xZe/16rV4aa+HGSOCiY2YeLT1OybRLrrkL/Rqaq7p7GMVXjFh+6wN4oMYgjFmnSnhY8t6Xpdl2l9qmnHYuMHwQ==", + "funding": [ + "https://github.com/sponsors/broofa", + "https://github.com/sponsors/ctavan" + ], + "license": "MIT", + "bin": { + "uuid": "dist-node/bin/uuid" + } + }, + "node_modules/v8-to-istanbul": { + "version": "9.3.0", + "resolved": "https://registry.npmjs.org/v8-to-istanbul/-/v8-to-istanbul-9.3.0.tgz", + "integrity": "sha512-kiGUalWN+rgBJ/1OHZsBtU4rXZOfj/7rKQxULKlIzwzQSvMJUUNgPwJEEh7gU6xEVxC0ahoOBvN2YI8GH6FNgA==", + "dev": true, + "license": "ISC", + "dependencies": { + "@jridgewell/trace-mapping": "^0.3.12", + "@types/istanbul-lib-coverage": "^2.0.1", + "convert-source-map": "^2.0.0" + }, + "engines": { + "node": ">=10.12.0" + } + }, + "node_modules/w3c-xmlserializer": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/w3c-xmlserializer/-/w3c-xmlserializer-5.0.0.tgz", + "integrity": "sha512-o8qghlI8NZHU1lLPrpi2+Uq7abh4GGPpYANlalzWxyWteJOCsr/P+oPBA49TOLu5FTZO4d3F9MnWJfiMo4BkmA==", + "dev": true, + "license": "MIT", + "dependencies": { + "xml-name-validator": "^5.0.0" + }, + "engines": { + "node": ">=18" + } + }, + "node_modules/webidl-conversions": { + "version": "8.0.1", + "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-8.0.1.tgz", + "integrity": "sha512-BMhLD/Sw+GbJC21C/UgyaZX41nPt8bUTg+jWyDeg7e7YN4xOM05YPSIXceACnXVtqyEw/LMClUQMtMZ+PGGpqQ==", + "dev": true, + "license": "BSD-2-Clause", + "engines": { + "node": ">=20" + } + }, + "node_modules/whatwg-mimetype": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/whatwg-mimetype/-/whatwg-mimetype-5.0.0.tgz", + "integrity": "sha512-sXcNcHOC51uPGF0P/D4NVtrkjSU2fNsm9iog4ZvZJsL3rjoDAzXZhkm2MWt1y+PUdggKAYVoMAIYcs78wJ51Cw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=20" + } + }, + "node_modules/whatwg-url": { + "version": "16.0.1", + "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-16.0.1.tgz", + "integrity": "sha512-1to4zXBxmXHV3IiSSEInrreIlu02vUOvrhxJJH5vcxYTBDAx51cqZiKdyTxlecdKNSjj8EcxGBxNf6Vg+945gw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@exodus/bytes": "^1.11.0", + "tr46": "^6.0.0", + "webidl-conversions": "^8.0.1" + }, + "engines": { + "node": "^20.19.0 || ^22.12.0 || >=24.0.0" + } + }, + "node_modules/which": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", + "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", + "dev": true, + "license": "ISC", + "dependencies": { + "isexe": "^2.0.0" + }, + "bin": { + "node-which": "bin/node-which" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/which-boxed-primitive": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/which-boxed-primitive/-/which-boxed-primitive-1.1.1.tgz", + "integrity": "sha512-TbX3mj8n0odCBFVlY8AxkqcHASw3L60jIuF8jFP78az3C2YhmGvqbHBpAjTRH2/xqYunrJ9g1jSyjCjpoWzIAA==", + "dev": true, + "license": "MIT", + "dependencies": { + "is-bigint": "^1.1.0", + "is-boolean-object": "^1.2.1", + "is-number-object": "^1.1.1", + "is-string": "^1.1.1", + "is-symbol": "^1.1.1" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/which-collection": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/which-collection/-/which-collection-1.0.2.tgz", + "integrity": "sha512-K4jVyjnBdgvc86Y6BkaLZEN933SwYOuBFkdmBu9ZfkcAbdVbpITnDmjvZ/aQjRXQrv5EPkTnD1s39GiiqbngCw==", + "dev": true, + "license": "MIT", + "dependencies": { + "is-map": "^2.0.3", + "is-set": "^2.0.3", + "is-weakmap": "^2.0.2", + "is-weakset": "^2.0.3" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/which-typed-array": { + "version": "1.1.22", + "resolved": "https://registry.npmjs.org/which-typed-array/-/which-typed-array-1.1.22.tgz", + "integrity": "sha512-fvO4ExWMFsqyhG3AiPAObMuY1lxaqgYcxbc49CNdWDDECOJNgQyvsOWVwbZc+qf3rzRtxojBK+CMEv0Ld5CYpw==", + "dev": true, + "license": "MIT", + "dependencies": { + "available-typed-arrays": "^1.0.7", + "call-bind": "^1.0.9", + "call-bound": "^1.0.4", + "for-each": "^0.3.5", + "get-proto": "^1.0.1", + "gopd": "^1.2.0", + "has-tostringtag": "^1.0.2" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/word-wrap": { + "version": "1.2.5", + "resolved": "https://registry.npmjs.org/word-wrap/-/word-wrap-1.2.5.tgz", + "integrity": "sha512-BN22B5eaMMI9UMtjrGd5g5eCYPpCPDUy0FJXbYsaT5zYxjFOckS53SQDE3pWkVoWpHXVb3BrYcEN4Twa55B5cA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/wordwrap": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/wordwrap/-/wordwrap-1.0.0.tgz", + "integrity": "sha512-gvVzJFlPycKc5dZN4yPkP8w7Dc37BtP1yczEneOb4uq34pXZcvrtRTmWV8W+Ume+XCxKgbjM+nevkyFPMybd4Q==", + "dev": true, + "license": "MIT" + }, + "node_modules/wrap-ansi": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz", + "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==", + "dev": true, + "license": "MIT", + "dependencies": { + "ansi-styles": "^4.0.0", + "string-width": "^4.1.0", + "strip-ansi": "^6.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/wrap-ansi?sponsor=1" + } + }, + "node_modules/wrap-ansi-cjs": { + "name": "wrap-ansi", + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz", + "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==", + "dev": true, + "license": "MIT", + "dependencies": { + "ansi-styles": "^4.0.0", + "string-width": "^4.1.0", + "strip-ansi": "^6.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/wrap-ansi?sponsor=1" + } + }, + "node_modules/write-file-atomic": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/write-file-atomic/-/write-file-atomic-5.0.1.tgz", + "integrity": "sha512-+QU2zd6OTD8XWIJCbffaiQeH9U73qIqafo1x6V1snCWYGJf6cVE0cDR4D8xRzcEnfI21IFrUPzPGtcPf8AC+Rw==", + "dev": true, + "license": "ISC", + "dependencies": { + "imurmurhash": "^0.1.4", + "signal-exit": "^4.0.1" + }, + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/write-file-atomic/node_modules/signal-exit": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-4.1.0.tgz", + "integrity": "sha512-bzyZ1e88w9O1iNJbKnOlvYTrWPDl46O1bG0D3XInv+9tkPrxrN8jUUTiFlDkkmKWgn1M6CfIA13SuGqOa9Korw==", + "dev": true, + "license": "ISC", + "engines": { + "node": ">=14" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/xml-name-validator": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/xml-name-validator/-/xml-name-validator-5.0.0.tgz", + "integrity": "sha512-EvGK8EJ3DhaHfbRlETOWAS5pO9MZITeauHKJyb8wyajUfQUenkIg2MvLDTZ4T/TgIcm3HU0TFBgWWboAZ30UHg==", + "dev": true, + "license": "Apache-2.0", + "engines": { + "node": ">=18" + } + }, + "node_modules/xmlchars": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/xmlchars/-/xmlchars-2.2.0.tgz", + "integrity": "sha512-JZnDKK8B0RCDw84FNdDAIpZK+JuJw+s7Lz8nksI7SIuU3UXJJslUthsi+uWBUYOwPFwW7W7PRLRfUKpxjtjFCw==", + "dev": true, + "license": "MIT" + }, + "node_modules/y18n": { + "version": "5.0.8", + "resolved": "https://registry.npmjs.org/y18n/-/y18n-5.0.8.tgz", + "integrity": "sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA==", + "dev": true, + "license": "ISC", + "engines": { + "node": ">=10" + } + }, + "node_modules/yallist": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-3.1.1.tgz", + "integrity": "sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g==", + "dev": true, + "license": "ISC" + }, + "node_modules/yargs": { + "version": "17.7.3", + "resolved": "https://registry.npmjs.org/yargs/-/yargs-17.7.3.tgz", + "integrity": "sha512-GZtjxm/J/4TSxuL3FNYjCmLktBTnIw/rVmKSIyKeYAZpmJB2ig9VauCC5xsa82GNKVKDAqpOn3KVzNt0zmrU0g==", + "dev": true, + "license": "MIT", + "dependencies": { + "cliui": "^8.0.1", + "escalade": "^3.1.1", + "get-caller-file": "^2.0.5", + "require-directory": "^2.1.1", + "string-width": "^4.2.3", + "y18n": "^5.0.5", + "yargs-parser": "^21.1.1" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/yargs-parser": { + "version": "21.1.1", + "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-21.1.1.tgz", + "integrity": "sha512-tVpsJW7DdjecAiFpbIB1e3qxIQsE6NoPc5/eTdrbbIC4h0LVsWhnoa3g+m2HclBIujHzsxZ4VJVA+GUuc2/LBw==", + "dev": true, + "license": "ISC", + "engines": { + "node": ">=12" + } + }, + "node_modules/yocto-queue": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-0.1.0.tgz", + "integrity": "sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + } + } +} diff --git a/package.json b/package.json index c8e11a001..b60e44706 100644 --- a/package.json +++ b/package.json @@ -13,7 +13,8 @@ "test:coverage": "jest --coverage", "test:backend": "jest tests/backend", "test:frontend": "jest tests/frontend --passWithNoTests", - "lint:frontend:static": "node scripts/lint_frontend_static.cjs" + "lint:frontend:static": "node scripts/lint_frontend_static.cjs", + "build:conversation-visuals": "node scripts/build_conversation_visuals.mjs" }, "jest": { "testEnvironment": "jsdom" @@ -44,6 +45,7 @@ "@types/react": "^18.2.12", "@types/react-dom": "^18.2.5", "babel-jest": "^30.3.0", + "esbuild": "0.28.2", "eslint": "^10.2.0", "globals": "^17.2.0", "identity-obj-proxy": "^3.0.0", @@ -57,7 +59,8 @@ "overrides": { "flatted": "3.4.2", "babel-plugin-istanbul": "^8.0.0", - "jsdom": "^29.0.0" + "jsdom": "^29.0.0", + "lodash-es": "4.18.1" }, "contributes": { "models": [ @@ -70,5 +73,10 @@ } } ] + }, + "dependencies": { + "dompurify": "3.4.15", + "katex": "0.18.7", + "mermaid": "12.0.0" } } diff --git a/scripts/build_conversation_visuals.mjs b/scripts/build_conversation_visuals.mjs new file mode 100644 index 000000000..bf59647a3 --- /dev/null +++ b/scripts/build_conversation_visuals.mjs @@ -0,0 +1,22 @@ +// Reproducible, self-hosted browser assets. No CDN dependency at runtime. +import { build } from 'esbuild'; +import { mkdir, cp, writeFile, rm } from 'node:fs/promises'; +const outdir = 'src/frontend/web/von_interface/static/vendor/conversation-visuals'; +await rm(outdir, { recursive: true, force: true }); +await mkdir(outdir, { recursive: true }); +await build({ stdin: { contents: ` + export {default as mermaid} from 'mermaid'; + export {default as katex} from 'katex'; + import DOMPurify from 'dompurify'; + export function sanitiseSvg(svg) { + return DOMPurify.sanitize(svg, {USE_PROFILES: {svg: true, svgFilters: true}, + FORBID_TAGS: ['foreignObject', 'image', 'a'], FORBID_ATTR: ['href', 'xlink:href']}); + }`, resolveDir: process.cwd(), sourcefile: 'index.js' }, + outdir, entryNames: 'index', bundle: true, splitting: true, format: 'esm', + minify: true, legalComments: 'linked', target: ['es2022'] }); +await cp('node_modules/katex/dist/katex.min.css', `${outdir}/katex.min.css`); +await cp('node_modules/katex/dist/fonts', `${outdir}/fonts`, { recursive: true }); +for (const name of ['mermaid', 'katex', 'dompurify']) { + await cp(`node_modules/${name}/LICENSE`, `${outdir}/${name}-LICENSE`); +} +await writeFile(`${outdir}/README.txt`, 'Generated by npm run build:conversation-visuals from package-lock.json. Do not edit generated assets.\n'); diff --git a/src/backend/integrations/internal_mcp/mcp_proxy_base.py b/src/backend/integrations/internal_mcp/mcp_proxy_base.py index d80154412..0690bf1aa 100644 --- a/src/backend/integrations/internal_mcp/mcp_proxy_base.py +++ b/src/backend/integrations/internal_mcp/mcp_proxy_base.py @@ -691,6 +691,14 @@ def _parse_result_with_telemetry( ) -> tuple[Any, Optional[str]]: """Parse result and return (parsed_data, parse_method) for telemetry.""" if result and getattr(result, "content", None): + # Preserve the ordered MCP envelope when it carries media. Returning + # the first text block discarded successfully produced images. + if any(isinstance(item, mcp_types.ImageContent) or ( + isinstance(item, mcp_types.EmbeddedResource) + and str(getattr(item.resource, "mimeType", "") or "").startswith("image/") + ) for item in result.content): + return {"content": [item.model_dump(exclude_none=True) for item in result.content], + "isError": bool(getattr(result, "isError", False))}, "media_content" for item in result.content: if isinstance(item, mcp_types.TextContent): text_data = item.text diff --git a/src/backend/languagemodels/llm_interface.py b/src/backend/languagemodels/llm_interface.py index 8c379ebeb..96dc4f600 100644 --- a/src/backend/languagemodels/llm_interface.py +++ b/src/backend/languagemodels/llm_interface.py @@ -2231,10 +2231,23 @@ def _generate_once( **responses_params, ) if _should_log_llm_io(): - logger.debug("OpenAI Responses raw response: %s", response) + from ..services.conversation_output_service import without_image_bytes + logger.debug("OpenAI Responses raw response: %s", without_image_bytes( + response.model_dump() if hasattr(response, "model_dump") else response)) provider_observed_model = getattr(response, "model", None) effective_model = provider_observed_model or target_model content = _extract_openai_responses_text(response) + from ..services.conversation_output_service import ( + openai_visible_parts, retain_parts, VisibleTextProjection, + ) + raw = response.model_dump() if hasattr(response, "model_dump") else response + parts = openai_visible_parts(raw) if isinstance(raw, Mapping) else [] + if any(part.kind != "text" for part in parts): + from ..security.access_control import get_effective_user_concept_id + retained = retain_parts(parts, actor=get_effective_user_concept_id(), turn_id=None) + projection = content or "\n".join(part.get("text") or "Generated image." + for part in retained) + content = VisibleTextProjection(projection, retained) if not content: raise RuntimeError( f"OpenAI {target_model} Responses payload contained no text" @@ -2394,6 +2407,7 @@ def generate( ) self.last_response_metadata = { "provider": "openai", + "content_parts": list(getattr(content, "content_parts", [])), "api_surface": api_surface, "requested_model": target_model, "effective_model": effective_model, diff --git a/src/backend/languagemodels/structured_tool_calling/providers/openai_client.py b/src/backend/languagemodels/structured_tool_calling/providers/openai_client.py index 9a35a37a5..98f8fcfbb 100644 --- a/src/backend/languagemodels/structured_tool_calling/providers/openai_client.py +++ b/src/backend/languagemodels/structured_tool_calling/providers/openai_client.py @@ -12,6 +12,7 @@ import re import uuid from collections.abc import Mapping +from dataclasses import replace from time import monotonic from typing import Any, Dict, List, Optional, Sequence from urllib.parse import urlparse @@ -34,6 +35,7 @@ sanitise_transport_telemetry_value, ) from ..types import ( + ImageGenerationOutcomeUnknownError, LLMContinuation, LLMResponse, StructuredToolCapabilityRejectedError, @@ -721,6 +723,14 @@ async def _generate_responses( tools = [ self._tool_definition_to_responses_dict(tool) for tool in available_tools ] + from ....services.conversation_output_capabilities import native_image_tool + + image_tool = native_image_tool(decision) + if image_tool is not None: + tools.append(image_tool) + # A connection failure after provider acceptance is indeterminate; + # an SDK retry could buy a second image. The turn reports the failure. + request_client = request_client.with_options(max_retries=0) requested_parameters = ( dict(llm_params) if isinstance(llm_params, Mapping) else {} ) @@ -840,13 +850,21 @@ async def _generate_responses( request_kwargs["stream"] = True request_kwargs["extra_headers"] = {"Accept": "text/event-stream"} - response = await request_client.responses.create( - model=request_model, - input=provider_image_messages(input_items, surface="responses"), # type: ignore[arg-type] - instructions=system_message, - tools=tools, # type: ignore[arg-type] - **request_kwargs, - ) + try: + response = await request_client.responses.create( + model=request_model, + input=provider_image_messages(input_items, surface="responses"), # type: ignore[arg-type] + instructions=system_message, + tools=tools, # type: ignore[arg-type] + **request_kwargs, + ) + except (openai.APIConnectionError, openai.InternalServerError) as exc: + if image_tool is not None: + raise ImageGenerationOutcomeUnknownError( + "The connection ended while image generation was available. Its outcome is unknown; no generation retry was sent.", + decision={**decision.to_telemetry(), "failure_kind": "image_generation_outcome_unknown"}, + ) from exc + raise if decision.provider == "meta": response = await self._consume_meta_responses_stream( response, @@ -864,6 +882,16 @@ async def _generate_responses( continuation=continuation, ) ) + if image_tool is not None: + parsed = replace(parsed, content_parts=[ + replace(part, provenance={**part.provenance, + "requested_image_model": image_tool["model"]}) + if part.kind in {"image", "media_error"} else part + for part in parsed.content_parts + ]) + parsed.transport_metadata["image_generation_tool"] = { + key: image_tool[key] for key in ("type", "model") if key in image_tool + } if continuation is not None: retained_count = ( 0 @@ -1715,17 +1743,23 @@ def _parse_responses_response( decision: StructuredToolTransportDecision, input_items: list[dict[str, Any]], ) -> LLMResponse: + from ....services.conversation_output_service import openai_visible_parts, without_image_bytes text_parts: list[str] = [] tool_calls: List[ToolCall] = [] diagnostics: List[Dict[str, Any]] = [] output_items: list[dict[str, Any]] = [] output_item_types: list[str] = [] provider_function_call_ids: list[str] = [] + visible_response = { + "id": _value(response, "id"), "model": _value(response, "model"), + "output": [_provider_item_mapping(item) for item in _value(response, "output") or []], + } + content_parts = openai_visible_parts(visible_response) for item in _value(response, "output") or []: item_type = str(_value(item, "type") or "unknown") output_item_types.append(item_type) dumped_item = _provider_item_mapping(item) - if dumped_item: + if dumped_item and item_type != "image_generation_call": output_items.append(dumped_item) if item_type == "message": for part in _value(item, "content") or []: @@ -1871,10 +1905,11 @@ def _parse_responses_response( text_response="".join(text_parts), tool_calls=tool_calls, raw_response=( - response.model_dump() if hasattr(response, "model_dump") else None + without_image_bytes(response.model_dump()) if hasattr(response, "model_dump") else None ), model=_value(response, "model"), usage=self._usage_mapping(_value(response, "usage"), responses=True), + content_parts=content_parts, tool_call_diagnostics=diagnostics, continuation=continuation, transport_metadata=transport_metadata, diff --git a/src/backend/languagemodels/structured_tool_calling/types.py b/src/backend/languagemodels/structured_tool_calling/types.py index 81bf44a3f..3f218887a 100644 --- a/src/backend/languagemodels/structured_tool_calling/types.py +++ b/src/backend/languagemodels/structured_tool_calling/types.py @@ -69,6 +69,12 @@ class StructuredToolContextLimitError(StructuredToolTransportError): requires_material_context_change = True +class ImageGenerationOutcomeUnknownError(StructuredToolTransportError): + """A potentially paid native request lost transport after submission.""" + + failure_kind = "image_generation_outcome_unknown" + + @dataclass(frozen=True) class ToolDefinition: """Definition of a tool available to the LLM. @@ -225,6 +231,24 @@ def from_value(cls, value: Any) -> Optional["LLMContinuation"]: ) +@dataclass(frozen=True) +class LLMContentPart: + """Ordered public output, separate from opaque provider continuation. + + Bytes are transient and excluded from repr. Do not serialise this transport + object directly. The conversational + boundary replaces them with an actor-owned asset before history or telemetry. + Text-only consumers keep using LLMResponse.text_response as their projection. + """ + + kind: str + part_id: str + text: str = "" + image_data: bytes | None = field(default=None, repr=False) + mime_type: str | None = None + provenance: Mapping[str, Any] = field(default_factory=dict) + + @dataclass(frozen=True) class LLMResponse: """Response from an LLM with optional tool calls. @@ -253,6 +277,10 @@ class LLMResponse: tool_call_diagnostics: List[Dict[str, Any]] = field(default_factory=list) continuation: Optional[LLMContinuation] = None transport_metadata: Dict[str, Any] = field(default_factory=dict) + content_parts: List[LLMContentPart] = field(default_factory=list) + + def has_visible_content(self) -> bool: + return bool(self.text_response.strip() or self.content_parts) def has_tool_calls(self) -> bool: """Return True if this response contains tool calls.""" diff --git a/src/backend/server/routes/generate_route_support.py b/src/backend/server/routes/generate_route_support.py index 376784789..5cfedc2de 100644 --- a/src/backend/server/routes/generate_route_support.py +++ b/src/backend/server/routes/generate_route_support.py @@ -340,6 +340,7 @@ def _persist_generate_turn_messages( persist_user_message: bool = True, assistant_message_metadata: Mapping[str, Any] | None = None, user_image_attachments: list[dict[str, Any]] | None = None, + assistant_content_parts: list[dict[str, Any]] | None = None, ) -> list[dict[str, Any]]: def _maybe_span( *, operation_name: str, attributes: Mapping[str, Any] | None = None @@ -404,7 +405,7 @@ def _maybe_span( "role": "user", "content": prompt_text, "author_user_id": user_concept_id, - "image_attachments": list(user_image_attachments or []), + **({"image_attachments": list(user_image_attachments)} if user_image_attachments else {}), } if request_id: user_message["turn_id"] = f"u-{request_id}" @@ -434,7 +435,8 @@ def _maybe_span( if callable(refresh_llm_debug_timing_fn): refresh_llm_debug_timing_fn(llm_debug_payload) with _maybe_span(operation_name="persist_assistant_message"): - image_attachments = [] + from ...services.conversation_output_service import image_assets + image_attachments = image_assets(assistant_content_parts or []) for tool_msg in tool_messages: try: tool_payload = json.loads(tool_msg.get("content", "{}")) @@ -444,7 +446,8 @@ def _maybe_span( assistant_message = { "role": "assistant", "content": response_text, - "image_attachments": image_attachments, + **({"image_attachments": list({asset["concept_id"]: asset for asset in image_attachments if asset.get("concept_id")}.values())} if image_attachments else {}), + **({"content_parts": list(assistant_content_parts)} if assistant_content_parts else {}), **( dict(assistant_message_metadata) if isinstance(assistant_message_metadata, Mapping) diff --git a/src/backend/server/routes/von_routes.py b/src/backend/server/routes/von_routes.py index 9d9a94892..3c2291782 100644 --- a/src/backend/server/routes/von_routes.py +++ b/src/backend/server/routes/von_routes.py @@ -13981,6 +13981,7 @@ def _take_steering(*, close_if_empty: bool = False): ) adaptive_success = adaptive_terminal_status == "completed" response_text = adaptive_turn_result.response_text + response_content_parts = [dict(part) for part in getattr(adaptive_turn_result, "content_parts", ())] updated_conversation_situation_text = getattr( adaptive_turn_result, "conversation_situation", None ) @@ -14131,7 +14132,7 @@ def _take_steering(*, close_if_empty: bool = False): default=True ) - if presenter_mode_requested and not canonical_outcome_response: + if presenter_mode_requested and not canonical_outcome_response and not response_content_parts: screen_tag_present = _presenter_tag_present(response_text, "screen") screen_backfill_screen_tag_present = screen_tag_present required_screen_json_fence = _extract_required_screen_json_fence( @@ -14721,6 +14722,8 @@ def _coerce_spoken_text(text: object) -> str | None: # A failed primary model call must not trigger another call to the # same unavailable provider merely to narrate the failure. spoken_backfill_second_pass_reason = "turn_not_deliverable" + elif response_content_parts: + spoken_backfill_second_pass_reason = "retained_visual_output" elif presenter_mode_requested: if presenter_channels_missing: needs_spoken_backfill = True @@ -15005,6 +15008,19 @@ def _coerce_spoken_text(text: object) -> str | None: if isinstance(screen_text_value, str) and screen_text_value.strip(): response_text = screen_text_value.strip() + if response_content_parts: + # The retained sequence owns visible placement. A presenter cannot + # replace pixels with a paraphrase or require text for image success. + for part in response_content_parts: + if part.get("kind") == "text": + channels = _extract_presenter_channels(str(part.get("text") or "")) + if channels and channels.get("screen"): + part["text"] = channels["screen"] + response_text = "\n\n".join(str(part.get("text") or "") for part in response_content_parts + if part.get("kind") in {"text", "media_error"}).strip() + if isinstance(presenter_channels, dict): + presenter_channels["screen"] = response_text + resource_annotation_applied = False if adaptive_delivery_success and resource_presentation_plan: try: @@ -15166,6 +15182,7 @@ def _coerce_spoken_text(text: object) -> str | None: ) display_elements_contract = build_turn_display_elements( response_text=response_text, + content_parts=response_content_parts, presenter_channels=( presenter_channels if isinstance(presenter_channels, dict) else None ), @@ -15772,6 +15789,7 @@ def _refresh_llm_debug_timing_payload(debug_payload: dict[str, Any]) -> None: refresh_llm_debug_timing_fn=_refresh_llm_debug_timing_payload, persist_user_message=not assistant_opening, user_image_attachments=request_image_attachments, + assistant_content_parts=response_content_parts, assistant_message_metadata=( {"turn_kind": "assistant_opening", "initiation_id": initiation_id} if assistant_opening @@ -15881,7 +15899,9 @@ def _refresh_llm_debug_timing_payload(debug_payload: dict[str, Any]) -> None: ), ) ) - final_success_body["image_attachments"] = [] + from ...services.conversation_output_service import image_assets + final_success_body["content_parts"] = response_content_parts + final_success_body["image_attachments"] = image_assets(response_content_parts) for image_message in tool_messages: try: image_payload = json.loads(image_message.get("content", "{}")) @@ -15890,6 +15910,8 @@ def _refresh_llm_debug_timing_payload(debug_payload: dict[str, Any]) -> None: ) except (ValueError, TypeError, AttributeError): pass + final_success_body["image_attachments"] = list({asset["concept_id"]: asset + for asset in final_success_body["image_attachments"] if asset.get("concept_id")}.values()) if adaptive_delivery_success: _mark_background_generate_completed_if_ready( background_task_id=background_task_id, diff --git a/src/backend/services/adaptive_turn_service.py b/src/backend/services/adaptive_turn_service.py index c2f799179..5b235f5e0 100644 --- a/src/backend/services/adaptive_turn_service.py +++ b/src/backend/services/adaptive_turn_service.py @@ -63,6 +63,9 @@ TrustedTurnScope, TurnEvidenceStore, ) +from src.backend.services.conversation_output_service import ( + image_assets, retain_parts, retain_tool_images, +) from src.backend.utils.concept_id_utils import canonicalise_vontology_concept_id from src.backend.workflows.conversation_turn_llm_timeout import ( coerce_conversation_turn_llm_advisory_sec, @@ -325,6 +328,7 @@ class AdaptiveTurnResult: conversation_situation_revision: int | None = None conversation_situation_checkpoint: str | None = None canonical_outcome_spoken_text: str | None = None + content_parts: Sequence[Mapping[str, Any]] = () @dataclass(frozen=True) @@ -7534,6 +7538,7 @@ def emit_model_call_end(call: Mapping[str, Any]) -> None: tool_call_diagnostic_recovery_used = False tool_call_diagnostic_recovery_event: dict[str, Any] | None = None last_partial_text = "" + visible_content_parts: list[dict[str, Any]] = [] final_synthesis = False answer_only = False pending_elapsed_time_advisories: list[str] = [] @@ -8910,7 +8915,7 @@ def finish(text: str, *, status: str = "completed") -> AdaptiveTurnResult: text, current_situation=conversation_situation, ) - if not visible_probe.strip(): + if not visible_probe.strip() and not visible_content_parts: status = "model_non_answer" text = ( "The model returned a conversation-situation update but no " @@ -9236,8 +9241,30 @@ def finish(text: str, *, status: str = "completed") -> AdaptiveTurnResult: # conflicted checkpoint likewise needs explicit reconciliation; # terminal prose cannot silently overwrite the newer carrier. updated_conversation_situation = conversation_situation + public_content_parts = [] + for part in visible_content_parts: + if part.get("kind") == "text": + clean_text, _ = _extract_conversation_situation_sidecar( + str(part.get("text") or ""), current_situation=conversation_situation) + part = {**part, "text": clean_text} + public_content_parts.append(part) + if public_content_parts and response_authority == "canonical_outcome": + # Retained media must not resurrect claims superseded by the + # canonical effect report. Keep the artefacts beside that report. + public_content_parts = [ + {"part_id": f"{turn_id}-outcome", "kind": "text", "version": 1, + "text": visible_text}, + *(part for part in public_content_parts if part.get("kind") == "image"), + ] + elif public_content_parts and status != "completed" and visible_text.strip(): + visible_projection = "\n".join(str(part.get("text") or "") + for part in public_content_parts) + if visible_text.strip() not in visible_projection: + public_content_parts.append({"part_id": f"{turn_id}-outcome", + "kind": "text", "version": 1, "text": visible_text}) return AdaptiveTurnResult( response_text=visible_text, + content_parts=tuple(public_content_parts), extra_messages=tuple(extra_messages), tool_invocations=tuple(reconciled_invocations), aux_llm_calls=tuple(aux_calls), @@ -9631,6 +9658,8 @@ def receive_steering(*, close_if_empty: bool = False) -> bool: authorised_resource_choices=authorised_resource_choices, learning_advice_projection=prepared_learning_advice, ) + from .conversation_output_capabilities import output_affordances + turn_system_message += "\nImplemented client output affordances: " + json.dumps(output_affordances()) learning_advice_rendered_for_call = bool( not final_synthesis and prepared_learning_advice is not None @@ -9845,6 +9874,8 @@ def receive_steering(*, close_if_empty: bool = False) -> bool: if isinstance(exc, ModelExecutionEligibilityError): terminal_status = exc.failure_kind return finish(str(exc), status=terminal_status) + if getattr(exc, "failure_kind", None) == "image_generation_outcome_unknown": + return finish(str(exc), status="image_generation_outcome_unknown") if ( isinstance(exc, StructuredToolTransportError) and answer_only @@ -10097,6 +10128,24 @@ def receive_steering(*, close_if_empty: bool = False) -> bool: call_duration_seconds, ) _usage_add(usage_totals, response.usage) + # Materialise successful output once, before any text-only completion + # test or telemetry. Native tools have already run at the provider. + if any(part.kind != "text" for part in response.content_parts): + known_parts = {part["part_id"] for part in visible_content_parts} + parent_ids = [asset["concept_id"] for message in current_context + for asset in message.get("image_attachments", []) + if isinstance(asset, Mapping) and asset.get("concept_id")] + retained = retain_parts([part for part in response.content_parts if part.part_id not in known_parts], actor=scope.user_concept_id, + turn_id=turn_id, parent_ids=parent_ids) + visible_content_parts.extend(retained) + assets = image_assets(retained) + if assets: + current_context.append({"role": "user", "content": "Images already produced during this turn; use the retained originals for any revision.", "image_attachments": assets}) + _emit(progress_tracker, {"stage": "media_ready" if assets else "media_failed", + "result_summary": "Image output retained." if assets else "Image output could not be retained."}) + elif visible_content_parts and response.text_response.strip(): + visible_content_parts.append({"part_id": model_call_id, "kind": "text", "version": 1, + "text": response.text_response}) provider_response_model = ( response.model.strip() if isinstance(response.model, str) and response.model.strip() @@ -10179,10 +10228,11 @@ def receive_steering(*, close_if_empty: bool = False) -> bool: model_call_id ) if not calls: - if response.text_response.strip(): + if response.text_response.strip() or visible_content_parts: if receive_steering(close_if_empty=True): continue - return finish(response.text_response.strip()) + media_failed = any(part["kind"] == "media_error" for part in visible_content_parts) + return finish(response.text_response.strip(), status="answer_partially_completed" if media_failed else "completed") if provider_tool_call_diagnostics: available_tool_names = [tool.name for tool in request_tools] if tool_call_diagnostic_recovery_used: @@ -11252,7 +11302,10 @@ def contained( arguments, **invoke_kwargs, ) - raw_payload = transport_result.payload + raw_payload = retain_tool_images( + transport_result.payload, actor=scope.user_concept_id, + turn_id=turn_id, tool_name=canonical_name, call_id=call.call_id, + ) except SchemaValidationError as exc: output_invalid = exc.stage == "output_schema" raw_payload = _error_payload( @@ -11489,6 +11542,9 @@ def contained( transport_result = contained_result.transport_result arguments = contained_result.arguments canonical_name = contained_result.capability_name + if isinstance(raw_payload, Mapping): + visible_content_parts.extend(part for part in raw_payload.get("content_parts", []) + if part.get("kind") in {"image", "media_error"}) is_effect = contained_result.is_effect semantic_effect = contained_result.semantic_effect if ( diff --git a/src/backend/services/chat_history_service.py b/src/backend/services/chat_history_service.py index f052f9a04..e25d7a150 100644 --- a/src/backend/services/chat_history_service.py +++ b/src/backend/services/chat_history_service.py @@ -1809,6 +1809,13 @@ def _split_history_into_segments_with_locations( copied["contribution_timestamp"] = precise_timestamp.isoformat() if isinstance(entry.get("image_attachments"), list): copied["image_attachments"] = list(entry["image_attachments"]) + if isinstance(entry.get("content_parts"), list): + copied["content_parts"] = list(entry["content_parts"]) + if copied["content_parts"]: + from .display_elements_service import build_turn_display_elements + copied["display_elements"] = build_turn_display_elements( + response_text=entry.get("content"), presenter_channels=None, + content_parts=copied["content_parts"]) turn_id = entry.get("turn_id") if isinstance(turn_id, str) and turn_id.strip(): copied["turn_id"] = turn_id.strip() diff --git a/src/backend/services/conversation_output_capabilities.py b/src/backend/services/conversation_output_capabilities.py new file mode 100644 index 000000000..151e86003 --- /dev/null +++ b/src/backend/services/conversation_output_capabilities.py @@ -0,0 +1,74 @@ +"""Mechanical output affordances and profile-controlled native tool projection. + +Generation availability is distinct from rendering an already-authorised result. +The model registry owns the optional tool configuration; no model-name heuristic +or production-setting write enables paid generation here. +""" + +from __future__ import annotations + +from collections.abc import Mapping +from typing import Any + + +def native_image_tool(decision: Any) -> dict[str, Any] | None: + if decision.provider != "openai" or decision.effective_api_surface != "responses": + return None + from .model_registry_service import resolve_model_api_profiles + + resolved = resolve_model_api_profiles( + model=decision.model, provider=decision.provider + ) + for profile in (resolved or {}).get("api_profiles", []): + if ( + not decision.profile_concept_id + or profile.get("profile_concept_id") != decision.profile_concept_id + ): + continue + config = profile.get("image_generation") + if not isinstance(config, Mapping) or config.get("enabled") is not True: + return None + model = config.get("model") + if not isinstance(model, str) or not model.strip(): + return None + # Only documented tool options are projected, never arbitrary SDK kwargs. + tool: dict[str, Any] = {"type": "image_generation", "model": model} + choices = { + "quality": {"auto", "low", "medium", "high"}, + "size": {"auto", "1024x1024", "1024x1536", "1536x1024"}, + "output_format": {"png", "jpeg", "webp"}, + } + for key, allowed in choices.items(): + value = config.get(key) + if isinstance(value, str) and value in allowed: + tool[key] = value + return tool + return None + + +def output_affordances() -> dict[str, Any]: + return { + "schema_version": "conversation_output_affordances.v1", + "display_contract": "turn_display_elements_v1", + "formats": [ + { + "id": "mermaid", + "version": 1, + "source": "fenced mermaid", + "fallback": "source", + }, + { + "id": "latex", + "version": 1, + "source": r"\(inline\) or \[display\]; dollars are text", + "fallback": "source", + }, + { + "id": "image", + "version": 1, + "source": "retained actor-scoped asset", + "fallback": "unavailable image notice", + }, + ], + "generation": "Native generation is available only when advertised in provider tools; rendering support does not establish generation or vision support.", + } diff --git a/src/backend/services/conversation_output_service.py b/src/backend/services/conversation_output_service.py new file mode 100644 index 000000000..b7277615f --- /dev/null +++ b/src/backend/services/conversation_output_service.py @@ -0,0 +1,324 @@ +"""Decode and retain ordered conversational output using the existing image store. + +Only recognised visible provider/MCP forms enter this path. It never fetches an +arbitrary URL, interprets private reasoning, or retries a generation request. +""" + +from __future__ import annotations + +import base64 +import binascii +from collections.abc import Mapping, Sequence +from typing import Any + +from ..languagemodels.structured_tool_calling.types import LLMContentPart +from . import conversation_image_service as images + + +class VisibleTextProjection(str): + """Legacy string projection with retained rich parts for capable consumers. + + Ordinary chat uses LLMResponse instead. Legacy call sites receive a useful + text/caption and can read content_parts (also copied to response metadata). + """ + + def __new__(cls, text: str, content_parts: list[dict[str, Any]]): + instance = super().__new__(cls, text) + instance.content_parts = content_parts + return instance + + +def decode_image(encoded: Any, mime_type: str | None = None) -> bytes: + if ( + not isinstance(encoded, str) + or len(encoded) > ((images.MAX_IMAGE_BYTES + 2) // 3) * 4 + ): + raise ValueError("Image output exceeds the supported encoded size.") + try: + data = base64.b64decode(encoded, validate=True) + except (ValueError, binascii.Error) as exc: + raise ValueError("Image output is not valid base64.") from exc + info = images.inspect_image(data) + if mime_type and mime_type != info["content_type"]: + raise ValueError("Image output does not match its declared media type.") + return data + + +def openai_visible_parts(response: Mapping[str, Any]) -> list[LLMContentPart]: + parts = [] + for index, item in enumerate(response.get("output") or []): + if not isinstance(item, Mapping): + continue + part_id = str( + item.get("id") or f"{response.get('id') or 'response'}-output-{index}" + ) + if item.get("type") == "message": + for offset, content in enumerate(item.get("content") or []): + if ( + isinstance(content, Mapping) + and content.get("type") == "output_text" + and isinstance(content.get("text"), str) + ): + parts.append( + LLMContentPart( + "text", f"{part_id}-{offset}", text=content["text"] + ) + ) + elif item.get("type") == "image_generation_call": + provenance = { + "kind": "generated", + "provider": "openai", + "response_id": response.get("id"), + "item_id": item.get("id"), + "model": response.get("model"), + "image_model": item.get("model"), + "generation_status": item.get("status"), + } + if item.get("action") in {"edit", "generate"}: + provenance["action"] = item["action"] + # Revised prompts are private generation provenance, never an automatic caption. + if isinstance(item.get("revised_prompt"), str): + provenance["revised_prompt"] = item["revised_prompt"] + if item.get("status") != "completed": + parts.append( + LLMContentPart( + "media_error", + part_id, + text="Image generation did not complete.", + provenance=provenance, + ) + ) + continue + try: + mime = { + "png": "image/png", + "jpeg": "image/jpeg", + "webp": "image/webp", + }.get(item.get("output_format")) + if item.get("output_format") and mime is None: + raise ValueError("Unsupported image output format.") + data = decode_image(item.get("result"), mime) + parts.append( + LLMContentPart( + "image", + part_id, + image_data=data, + mime_type=images.inspect_image(data)["content_type"], + provenance=provenance, + ) + ) + except ValueError as exc: + parts.append( + LLMContentPart( + "media_error", + part_id, + text=f"The provider returned an image that could not be retained: {exc}", + provenance=provenance, + ) + ) + return parts + + +def without_image_bytes(value: Any) -> Any: + """Keep the private provider trace useful without retaining base64 duplicates.""" + if isinstance(value, Mapping): + # Provider responses also echo JSON Schemas whose type may be a list. + # Only a string discriminator identifies a media item. + item_type = value.get("type") + media = isinstance(item_type, str) and item_type in { + "image_generation_call", + "image", + "input_image", + "image_url", + } + return { + key: ( + "[image bytes omitted]" + if media and key in {"result", "data", "image_url"} + else without_image_bytes(item) + ) + for key, item in value.items() + } + if isinstance(value, list): + return [without_image_bytes(item) for item in value] + return value + + +def public_asset(descriptor: Mapping[str, Any]) -> dict[str, Any]: + """No private prompts, blob paths or provider state in display payloads.""" + value = { + key: descriptor[key] + for key in ( + "concept_id", + "content_type", + "width", + "height", + "sha256", + "size_bytes", + "filename", + "url", + ) + if key in descriptor + } + provenance = descriptor.get("provenance") or {} + value["provenance"] = { + key: provenance[key] + for key in ( + "kind", + "parent_concept_ids", + "parent_concept_id", + "input_concept_ids", + "artifact_id", + "source_url", + ) + if key in provenance + } + return value + + +def retain_parts( + parts: Sequence[LLMContentPart], + *, + actor: str | None, + turn_id: str | None, + parent_ids: Sequence[str] = (), +) -> list[dict[str, Any]]: + retained = [] + for part in parts: + entry: dict[str, Any] = { + "part_id": part.part_id, + "kind": part.kind, + "version": 1, + } + if part.kind != "image": + entry["text"] = part.text + if part.kind == "media_error": + entry["generation_status"] = part.provenance.get( + "generation_status", "failed" + ) + else: + try: + info = images.inspect_image(part.image_data or b"") + ext = {"image/png": "png", "image/jpeg": "jpg", "image/webp": "webp"}[ + info["content_type"] + ] + descriptor = images.store_image( + data=part.image_data or b"", + filename=f"conversation-{info['sha256'][:16]}.{ext}", + user_concept_id=actor, + provenance={ + **part.provenance, + "turn_id": turn_id, + "input_concept_ids": list(dict.fromkeys(parent_ids)), + **( + {"parent_concept_ids": list(parent_ids)} + if part.provenance.get("action") == "edit" + and len(parent_ids) == 1 + else {} + ), + }, + ) + entry["asset"] = public_asset(descriptor) + except Exception: # noqa: BLE001 - delivery errors must not repeat paid generation + # A generation has already occurred. A storage/UI failure must + # never turn into an automatic second paid provider request. + entry.update( + kind="media_error", + text="An image was returned, but it could not be stored. Image generation has not been retried.", + error_code="image_storage_failed", + generation_status=part.provenance.get( + "generation_status", "completed" + ), + recovery={ + key: part.provenance[key] + for key in ( + "provider", + "response_id", + "item_id", + "tool_name", + "call_id", + ) + if part.provenance.get(key) + }, + ) + retained.append(entry) + return retained + + +def image_assets(parts: Sequence[Mapping[str, Any]]) -> list[dict[str, Any]]: + assets = {} + for part in parts: + asset = part.get("asset") + if ( + part.get("kind") == "image" + and isinstance(asset, Mapping) + and asset.get("concept_id") + ): + assets[asset["concept_id"]] = dict(asset) + return list(assets.values()) + + +def retain_tool_images( + payload: Any, *, actor: str | None, turn_id: str, tool_name: str, call_id: str +) -> Any: + """MCP ImageContent and embedded BlobResourceContents share the same store. + + Resource links remain references; this is deliberately not a URL fetcher. + Existing tools' actor-checked image_attachments continue to work unchanged. + """ + if not isinstance(payload, Mapping) or not isinstance(payload.get("content"), list): + return payload + parts = [] + cleaned = [] + for index, item in enumerate(payload["content"]): + if not isinstance(item, Mapping): + cleaned.append(item) + continue + resource = item.get("resource") if item.get("type") == "resource" else None + resource = resource if isinstance(resource, Mapping) else {} + encoded = ( + item.get("data") if item.get("type") == "image" else resource.get("blob") + ) + mime = item.get("mimeType") or resource.get("mimeType") + if item.get("type") == "text": + parts.append( + LLMContentPart( + "text", f"{call_id}-{index}", text=str(item.get("text") or "") + ) + ) + cleaned.append(dict(item)) + continue + if item.get("type") != "image" and not ( + encoded is not None and str(mime or "").startswith("image/") + ): + cleaned.append(dict(item)) + continue + try: + if mime not in images.IMAGE_TYPES.values(): + raise ValueError("Unsupported image output media type.") + parts.append( + LLMContentPart( + "image", + f"{call_id}-{index}", + image_data=decode_image(encoded, mime), + mime_type=mime, + provenance={ + "kind": "tool_output", + "tool_name": tool_name, + "call_id": call_id, + }, + ) + ) + except ValueError as exc: + parts.append( + LLMContentPart("media_error", f"{call_id}-{index}", text=str(exc)) + ) + if not any(part.kind != "text" for part in parts): + return payload + retained = retain_parts(parts, actor=actor, turn_id=turn_id) + return { + **payload, + "content": cleaned, + "content_parts": retained, + "image_attachments": image_assets(retained), + } diff --git a/src/backend/services/display_elements_service.py b/src/backend/services/display_elements_service.py index 8fd28d9b2..dabef52b3 100644 --- a/src/backend/services/display_elements_service.py +++ b/src/backend/services/display_elements_service.py @@ -30,6 +30,7 @@ "timeline", "task_view", "workflow_view", + "image", } ) OPTIONAL_PAYLOAD_TITLE_ELEMENT_TYPES = frozenset( @@ -1995,7 +1996,25 @@ def _validate_workflow_view_payload( ) +def _validate_image_payload(*, payload: Mapping[str, Any], label: str, errors: list[str]) -> None: + if payload.get("version") != 1: + errors.append(f"{label}.payload.version must be 1") + asset = payload.get("asset") + if not isinstance(asset, Mapping): + errors.append(f"{label}.payload.asset must be a mapping") + return + if not isinstance(asset.get("concept_id"), str) or not asset["concept_id"].startswith("#V#"): + errors.append(f"{label}.payload.asset.concept_id must be a retained asset reference") + if asset.get("content_type") not in {"image/png", "image/jpeg", "image/webp"}: + errors.append(f"{label}.payload.asset.content_type is unsupported") + if not re.fullmatch(r"[a-f0-9]{64}", str(asset.get("sha256") or "")): + errors.append(f"{label}.payload.asset.sha256 is invalid") + if any(type(asset.get(key)) is not int or asset[key] <= 0 for key in ("width", "height")): + errors.append(f"{label}.payload.asset dimensions are invalid") + + _DISPLAY_ELEMENT_PAYLOAD_VALIDATORS: dict[str, Callable[..., None]] = { + "image": _validate_image_payload, "calendar_view": _validate_calendar_view_payload, "chart_view": _validate_chart_view_payload, "document_view": _validate_document_view_payload, @@ -3512,6 +3531,7 @@ def build_turn_display_elements( *, response_text: str | None, presenter_channels: Mapping[str, Any] | None, + content_parts: Sequence[Mapping[str, Any]] | None = None, screen_table_elements: Sequence[Mapping[str, Any]] | None = None, screen_workflow_elements: Sequence[Mapping[str, Any]] | None = None, screen_task_view_elements: Sequence[Mapping[str, Any]] | None = None, @@ -3592,6 +3612,40 @@ def build_turn_display_elements( } ) + if content_parts: + import hashlib + # Explicit ordered rich output owns the primary screen placement. The + # legacy text projection and other structured families remain available. + elements = [element for element in elements if element["element_id"] != "screen_text"] + seen = set() + for index, part in enumerate(content_parts): + part_id = str(part.get("part_id") or f"part-{index}") + if part_id in seen: + continue + seen.add(part_id) + kind = part.get("kind") + payload = {"text": str(part.get("text") or "")} + if kind == "text" and part.get("version") == 1 and not payload["text"].strip(): + # Completed image calls may be followed by an empty message. + # Preserve that source part without creating an invalid block. + continue + element_type = "text_block" + if kind == "image" and part.get("version") == 1: + from .conversation_output_service import public_asset + payload = {"version": 1, "asset": public_asset(part.get("asset") or {})} + validation_errors: list[str] = [] + _validate_image_payload(payload=payload, label=part_id, errors=validation_errors) + if not validation_errors: + element_type = "image" + else: + payload = {"text": "Image reference could not be displayed."} + elif kind not in {"text", "media_error"} or part.get("version") != 1: + payload = {"text": f"Unsupported visual format: {kind} (version {part.get('version')})."} + elements.append({"element_id": "content_" + hashlib.sha256(part_id.encode()).hexdigest()[:20], + "element_type": element_type, "channel": "screen", "order": 10 + index, + "intent": "primary_response", "payload": payload, + "provenance": {"source": "retained_content", "part_id": part_id}}) + if spoken_text: spoken_source = ( "spoken_backfill" diff --git a/src/backend/services/model_registry_service.py b/src/backend/services/model_registry_service.py index 4738ab47c..6ad1f45bc 100644 --- a/src/backend/services/model_registry_service.py +++ b/src/backend/services/model_registry_service.py @@ -944,6 +944,9 @@ def _load_registry_from_vontology_graph_batched( PRED_HAS_DEPLOYMENT_ID, ), "parameter_constraints": constraints, + "image_generation": (_parse_registry_json(_first_batched_text( + rows_by_concept, profile_concept_id, PRED_HAS_MODEL_CAPABILITIES_JSON + ) or "") or {}).get("image_generation"), } ) @@ -1167,6 +1170,9 @@ def _resolve_model_entry_from_graph( predicate=PRED_HAS_DEPLOYMENT_ID, ), "parameter_constraints": parameter_constraints, + "image_generation": (_parse_registry_json(_get_first_text( + profile_concept_id, predicate=PRED_HAS_MODEL_CAPABILITIES_JSON + ) or "") or {}).get("image_generation"), } ) diff --git a/src/backend/services/renderer_applicability_service.py b/src/backend/services/renderer_applicability_service.py index d55c49543..14cb799cb 100644 --- a/src/backend/services/renderer_applicability_service.py +++ b/src/backend/services/renderer_applicability_service.py @@ -55,6 +55,7 @@ } _ALLOWED_SCREEN_ELEMENT_FAMILIES: frozenset[str] = frozenset( { + "image", "table", "workflow_view", "task_view", diff --git a/src/backend/services/renderer_applicability_vontology_service.py b/src/backend/services/renderer_applicability_vontology_service.py index 705c69572..49e4a660f 100644 --- a/src/backend/services/renderer_applicability_vontology_service.py +++ b/src/backend/services/renderer_applicability_vontology_service.py @@ -28,6 +28,14 @@ # JVNAUTOSCI-1175: centralise canonical starter renderer profiles so bootstrap # and diagnostics use one authoritative seed set. _CANONICAL_RENDERER_PROFILE_BLUEPRINTS: tuple[dict[str, Any], ...] = ( + { + "renderer_id": "#V#conversation_image_renderer", + "renderer_type": "image", + "modalities": ["visual"], + "applies_to_object_kinds": ["retained_image"], + "priority": 80, + "screen_element_families": ["image"], + }, { "renderer_id": "#V#timeline_renderer", "renderer_type": "timeline", diff --git a/src/backend/workflows/repo_seed_bundles/conversation_visual_guidance_seed.md b/src/backend/workflows/repo_seed_bundles/conversation_visual_guidance_seed.md new file mode 100644 index 000000000..1066ccc46 --- /dev/null +++ b/src/backend/workflows/repo_seed_bundles/conversation_visual_guidance_seed.md @@ -0,0 +1,29 @@ + + +Choose the forms that help the current conversation: prose, a source-based +diagram, equations, a data-backed chart, or an illustration. A user need not +request each helpful modality separately. Respect explicit requests, established +cost constraints, accessibility preferences and the current device's limitations. +Use the advertised output affordances and actual provider/tool capabilities; +client rendering support does not establish image generation or image-input +support. Do not claim that an image exists before a retained result is available. + +Prefer source-based diagrams, equations and data-backed charts when exact labels, +relationships or numbers matter. Preserve the source and surrounding explanation. +Use a fenced `mermaid` block for diagrams and `\(…\)` or `\[…\]` for mathematics; +dollars remain currency/plain text. A requested artistic illustration can still +be appropriate. Give images a concise useful explanation where it helps, without +requiring a second narration pass or a caption on every image-only reply. + +Resolve a requested edit from the conversation and its stable image/source +references. Use the retained original pixels for image edits, preserve the +original, and change only the requested features. Input references identify what +was supplied, not proof that every supplied image was edited. Ask one focused +question only if materially different plausible targets remain. When a visual +fails, retain useful prose/source and explain the local failure accurately. Do +not repeat paid generation merely to repair storage or display delivery. diff --git a/src/frontend/web/von_interface/static/js/chatTab.js b/src/frontend/web/von_interface/static/js/chatTab.js index 24c81f435..e5031fac4 100644 --- a/src/frontend/web/von_interface/static/js/chatTab.js +++ b/src/frontend/web/von_interface/static/js/chatTab.js @@ -38,6 +38,8 @@ import { elements, getCurrentUserConceptId, renderSpanSuggestions } from './domU import { activateTab } from './tabNavigation.js'; import { isAnnotationEnabled } from './featureFlags.js'; import { detectMarkdown, renderMarkdownViaServer } from './markdownUtils.js'; +import { renderConversationVisuals } from './conversationVisuals.js'; +import { renderRetainedConversationContent } from './retainedConversationContent.js'; import { getSpeechSynthesisVoices, isTextToSpeechSupported, @@ -15494,6 +15496,13 @@ function extractPresenterChannelsFromDisplayElements(value) { } } + const retainedText = contract.elements + .filter(element => element?.channel === 'screen' && element?.element_type === 'text_block' + && element?.provenance?.source === 'retained_content') + .sort((a, b) => a.order - b.order) + .map(element => element.payload?.text || ''); + if (retainedText.length) screen = retainedText.join('\n'); + if (!(screen && screen.trim()) && !(spoken && spoken.trim())) { return null; } @@ -19239,6 +19248,8 @@ function renderTableDisplayElementsIntoContainer(container, debugData) { return; } + renderRetainedConversationContent(container, debugData?.display_elements, renderChatMarkdownIntoContainer); + const resolvedTableElements = resolveTableDisplayElements(debugData); const { inlinePrimaryTableElements, @@ -22854,7 +22865,8 @@ function cancelChatConceptMetaHydration() { function shouldRenderMarkdownForAssistant(message, _debugData) { const text = String(message ?? ''); - return detectMarkdown(text); + return detectMarkdown(text) || Boolean(_debugData?.display_elements?.elements?.some( + element => element.provenance?.source === 'retained_content')); } function updateChatRenderModeBadge(badgeEl, messageTextEl, details = {}) { @@ -22893,7 +22905,10 @@ function updateChatRenderModeBadge(badgeEl, messageTextEl, details = {}) { async function renderChatMarkdownIntoContainer(container, text) { const markdownText = String(text ?? ''); + const generation = (Number(container.dataset.markdownGeneration) || 0) + 1; + container.dataset.markdownGeneration = String(generation); const html = await renderMarkdownViaServer(markdownText); + if (container.dataset.markdownGeneration !== String(generation)) return; // Cache rendered HTML so we can toggle without re-fetching. try { @@ -22908,6 +22923,7 @@ async function renderChatMarkdownIntoContainer(container, text) { } container.innerHTML = html; + await renderConversationVisuals(container); convertQuotedInstructionBlockquotesToButtons(container); convertInlineQuotedStrongSegmentsToButtons(container); convertJustSayInstructionsToButtons(container); @@ -22922,8 +22938,8 @@ async function renderChatMarkdownIntoContainer(container, text) { // Preserve clickable #V# tokens; cartouchify where allowed, otherwise linkify in-place. // Note: linkifyVontologyTokensInElement does NOT skip
/ blocks so that #V# tokens
     // inside JSON or other code fences become clickable links with visible styling.
-    cartouchifyVontologyTokensInElement(container, { skipSelectors: ['pre', 'code', 'a'], allowStandaloneCodeTokens: true, allowStandaloneCodeBlockTokens: true });
-    linkifyVontologyTokensInElement(container, { skipSelectors: ['a', '.vontology-cartouche', 'button'] });
+    cartouchifyVontologyTokensInElement(container, { skipSelectors: ['pre', 'code', 'a', '.conversation-visual'], allowStandaloneCodeTokens: true, allowStandaloneCodeBlockTokens: true });
+    linkifyVontologyTokensInElement(container, { skipSelectors: ['a', '.vontology-cartouche', 'button', '.conversation-visual'] });
     hydrateChatConceptCartouches(container);
     await resolveInlineVontologyAliasesInElement(container, { expectedRenderMode: 'rendered' });
 }
@@ -22964,12 +22980,13 @@ function setVonMessageRenderMode(messageTextEl, mode, originalText, _debugData)
     const cachedHtml = messageTextEl?.dataset?.renderedHtml;
     if (cachedHtml) {
         messageTextEl.innerHTML = cachedHtml;
+        void renderConversationVisuals(messageTextEl);
         convertQuotedInstructionBlockquotesToButtons(messageTextEl);
         convertInlineQuotedStrongSegmentsToButtons(messageTextEl);
         convertJustSayInstructionsToButtons(messageTextEl);
         convertQuotedInstructionListItemsToButtons(messageTextEl);
-        cartouchifyVontologyTokensInElement(messageTextEl, { skipSelectors: ['pre', 'code', 'a'], allowStandaloneCodeTokens: true, allowStandaloneCodeBlockTokens: true });
-        linkifyVontologyTokensInElement(messageTextEl, { skipSelectors: ['a', '.vontology-cartouche', 'button'] });
+        cartouchifyVontologyTokensInElement(messageTextEl, { skipSelectors: ['pre', 'code', 'a', '.conversation-visual'], allowStandaloneCodeTokens: true, allowStandaloneCodeBlockTokens: true });
+        linkifyVontologyTokensInElement(messageTextEl, { skipSelectors: ['a', '.vontology-cartouche', 'button', '.conversation-visual'] });
         hydrateChatConceptCartouches(messageTextEl);
         void resolveInlineVontologyAliasesInElement(messageTextEl, { expectedRenderMode: 'rendered' });
         renderTableDisplayElementsIntoContainer(messageTextEl, _debugData);
@@ -23745,6 +23762,7 @@ function shouldSkipInlineAliasTextNode(textNode) {
     if (!parent) {
         return true;
     }
+    if (parent.closest('.conversation-visual, svg, math, style')) return true;
 
     for (const selector of CHAT_INLINE_ALIAS_TEXT_SKIP_SELECTORS) {
         try {
@@ -23760,7 +23778,7 @@ function shouldSkipInlineAliasTextNode(textNode) {
 }
 
 function shouldSkipInlineAliasCodeElement(codeEl) {
-    if (!codeEl || codeEl.closest('pre')) {
+    if (!codeEl || codeEl.closest('pre, .conversation-visual') || codeEl.classList.contains('von-math-source')) {
         return true;
     }
     for (const selector of ['a', 'button', '.vontology-cartouche', '.vontology-inline-assertion']) {
@@ -29736,6 +29754,7 @@ function rehydrateHistory(scrollableField, historyMessages, options = {}) {
             if (msg.role === 'assistant') {
                 const merged = {
                     ...(msg.llm_debug_data && typeof msg.llm_debug_data === 'object' ? msg.llm_debug_data : {}),
+                    display_elements: msg.display_elements || msg.llm_debug_data?.display_elements,
                     llm_execution_summary: (
                         msg.llm_execution_summary && typeof msg.llm_execution_summary === 'object'
                     ) ? msg.llm_execution_summary : null,
@@ -37609,8 +37628,8 @@ async function handleSendPrompt(options = {}) {
         applyImmediateThinkingTerminalOutcome(request);
 
         // Store LLM debug data if available
-        if (data.llm_debug) {
-            const enriched = enrichDebugDataWithSpeechPlanning(data.llm_debug, {
+        if (data.llm_debug || displayElements) {
+            const enriched = enrichDebugDataWithSpeechPlanning(data.llm_debug || {}, {
                 presenterChannels: responseChannels,
                 screenText,
                 spokenText,
diff --git a/src/frontend/web/von_interface/static/js/conversationVisuals.js b/src/frontend/web/von_interface/static/js/conversationVisuals.js
new file mode 100644
index 000000000..166ec2e6d
--- /dev/null
+++ b/src/frontend/web/von_interface/static/js/conversationVisuals.js
@@ -0,0 +1,135 @@
+// Source rendering is a client capability. Source remains canonical in the message.
+import { escapeHtml } from './markdownUtils.js';
+
+let libraries;
+let sequence = 0;
+function loadLibraries() {
+    libraries ||= import('../vendor/conversation-visuals/index.js').catch(error => {
+        libraries = undefined;
+        throw error;
+    });
+    return libraries;
+}
+
+// Protect TeX before Markdown consumes backslashes, underscores or angle brackets.
+// Only \(…\) and \[…\] are maths; dollars are always ordinary text.
+export function protectMathSources(text) {
+    const nonce = `VONMATHTOKEN${++sequence}X`;
+    const parts = [];
+    let output = '';
+    let i = 0;
+    let fence = null;
+    while (i < text.length) {
+        if (i === 0 || text[i - 1] === '\n') {
+            const match = /^( {0,3})(`{3,}|~{3,})[^\n]*(?:\n|$)/.exec(text.slice(i));
+            if (match) {
+                const marker = match[2];
+                if (!fence) fence = marker;
+                else if (marker[0] === fence[0] && marker.length >= fence.length) fence = null;
+                output += match[0]; i += match[0].length; continue;
+            }
+        }
+        if (fence) { output += text[i++]; continue; }
+        if (text[i] === '`') {
+            const ticks = /^`+/.exec(text.slice(i))[0];
+            const end = text.indexOf(ticks, i + ticks.length);
+            if (end !== -1) {
+                output += text.slice(i, end + ticks.length); i = end + ticks.length; continue;
+            }
+        }
+        if (text[i] === '\\') {
+            if (text[i + 1] === '\\') { output += text.slice(i, i + 2); i += 2; continue; }
+            const opener = text.slice(i, i + 2);
+            if (opener === '\\(' || opener === '\\[') {
+                const closer = opener === '\\(' ? '\\)' : '\\]';
+                let end = text.indexOf(closer, i + 2);
+                while (end !== -1 && text[end - 1] === '\\') end = text.indexOf(closer, end + 2);
+                if (end !== -1) {
+                    const source = text.slice(i, end + 2);
+                    const token = `${nonce}${parts.length}END`;
+                    // A literal token in the original must never acquire generated meaning.
+                    if (!text.includes(token)) {
+                        parts.push({ token, source, display: opener === '\\[' });
+                        output += token; i = end + 2; continue;
+                    }
+                }
+            }
+        }
+        output += text[i++];
+    }
+    return {
+        text: output,
+        restore: html => parts.reduce((value, part) => value.replaceAll(part.token,
+            `${escapeHtml(part.source)}`), html)
+    };
+}
+
+function sourceControls(source, inline = false) {
+    const controls = document.createElement(inline ? 'span' : 'details');
+    controls.className = 'visual-source';
+    const toggle = document.createElement(inline ? 'button' : 'summary');
+    toggle.textContent = inline ? 'TeX' : 'Source';
+    const code = document.createElement('code');
+    code.textContent = source;
+    if (inline) {
+        toggle.type = 'button'; toggle.setAttribute('aria-expanded', 'false'); code.hidden = true;
+        toggle.onclick = () => { code.hidden = !code.hidden; toggle.setAttribute('aria-expanded', String(!code.hidden)); };
+    }
+    const copy = document.createElement('button');
+    copy.type = 'button'; copy.textContent = 'Copy source';
+    copy.onclick = async () => {
+        try { await navigator.clipboard.writeText(source); copy.textContent = 'Copied'; }
+        catch (_) { code.hidden = false; if (!inline) controls.open = true; copy.textContent = 'Select source to copy'; }
+    };
+    controls.append(toggle, code, copy);
+    return controls;
+}
+
+export async function renderConversationVisuals(container) {
+    const sources = [...container.querySelectorAll('pre > code.language-mermaid, code.von-math-source')];
+    if (!sources.length) return;
+    let libs;
+    try { libs = await loadLibraries(); }
+    catch (_) { return; } // Exact code/source remains visible when assets cannot load.
+    for (const code of sources) {
+        if (!container.contains(code) || code.dataset.visualPending) continue;
+        code.dataset.visualPending = 'true';
+        const maths = code.classList.contains('von-math-source');
+        const display = !maths || code.classList.contains('von-math-display');
+        const source = code.textContent;
+        const target = maths ? code : code.parentElement;
+        const figure = document.createElement(display ? 'figure' : 'span');
+        figure.className = `conversation-visual ${maths ? 'equation' : 'diagram'}${display ? ' visual-display' : ''}`;
+        const dark = document.documentElement.dataset.theme === 'dark'
+            || document.body.classList.contains('dark-mode')
+            || (!document.documentElement.dataset.theme && window.matchMedia('(prefers-color-scheme: dark)').matches);
+        figure.classList.toggle('visual-dark', dark);
+        const visual = document.createElement('span');
+        visual.className = 'visual-output';
+        try {
+            if (maths) {
+                libs.katex.render(source.slice(2, -2), visual, {
+                    displayMode: display, throwOnError: true, trust: false, strict: 'error',
+                    maxExpand: 1000, maxSize: 20, output: 'htmlAndMathml'
+                });
+            } else {
+                libs.mermaid.initialize({ startOnLoad: false, securityLevel: 'strict',
+                    theme: dark ? 'dark' : 'default', suppressErrorRendering: true,
+                    htmlLabels: false,
+                    flowchart: { htmlLabels: false },
+                    secure: ['secure', 'securityLevel', 'startOnLoad', 'maxTextSize', 'suppressErrorRendering',
+                        'htmlLabels', 'theme', 'themeCSS', 'themeVariables', 'fontFamily', 'dompurifyConfig'] });
+                const result = await libs.mermaid.render(`von-diagram-${++sequence}`, source);
+                visual.innerHTML = libs.sanitiseSvg(result.svg);
+                visual.setAttribute('role', 'img'); visual.setAttribute('aria-label', 'Diagram; exact source follows');
+                visual.tabIndex = 0;
+            }
+        } catch (_) {
+            visual.textContent = maths ? 'Equation could not be rendered. Inspect the source.' : 'Diagram could not be rendered. Inspect the source.';
+            visual.classList.add('visual-error');
+        }
+        figure.append(visual, sourceControls(source, !display));
+        // A newer stream/hydration or raw-mode toggle owns the container now.
+        if (container.contains(target)) target.replaceWith(figure);
+    }
+}
diff --git a/src/frontend/web/von_interface/static/js/markdownUtils.js b/src/frontend/web/von_interface/static/js/markdownUtils.js
index ab7bcda5f..3e465d81f 100644
--- a/src/frontend/web/von_interface/static/js/markdownUtils.js
+++ b/src/frontend/web/von_interface/static/js/markdownUtils.js
@@ -1,3 +1,5 @@
+import { protectMathSources } from './conversationVisuals.js';
+
 /**
  * Lightweight markdown detection utility
  * Detects clear markdown indicators to avoid false positives
@@ -20,6 +22,7 @@ function hasMarkdownTableAt(lines, index) {
 
 export function detectMarkdown(text) {
     if (!text || typeof text !== 'string') return false;
+    if (protectMathSources(text).text !== text) return true;
 
     // Detect clear markdown indicators (conservative patterns)
     const patterns = [
@@ -206,6 +209,7 @@ export function simpleMarkdownToHtml(markdown) {
 
         // Fenced code blocks
         if (/^```/.test(trimmed)) {
+            const language = /^```([A-Za-z0-9_-]+)\s*$/.exec(trimmed)?.[1];
             i += 1;
             const codeLines = [];
             while (i < lines.length && !/^```/.test(lines[i].trim())) {
@@ -215,7 +219,11 @@ export function simpleMarkdownToHtml(markdown) {
             if (i < lines.length && /^```/.test(lines[i].trim())) {
                 i += 1;
             }
-            blocks.push(`
${escapeHtml(codeLines.join('\n'))}
`); + // The Mermaid label is executable only through the reviewed safe + // renderer. Keep normal fence markup compatible with old consumers. + const className = language === 'mermaid' ? ' class="language-mermaid"' : ''; + const source = codeLines.join('\n') + (language === 'mermaid' && codeLines.length ? '\n' : ''); + blocks.push(`
${escapeHtml(source)}
`); continue; } @@ -338,7 +346,8 @@ export function renderSmartText(text, escapeHtmlOutput = true) { } export async function renderMarkdownViaServer(markdown) { - const text = String(markdown ?? ''); + const protectedMath = protectMathSources(String(markdown ?? '')); + const text = protectedMath.text; if (!text) { return ''; } @@ -356,13 +365,13 @@ export async function renderMarkdownViaServer(markdown) { } if (typeof data?.html === 'string') { - return linkifyRenderedHtml(data.html); + return protectedMath.restore(linkifyRenderedHtml(data.html)); } throw new Error('render_markdown response missing html'); } catch (err) { console.warn('[markdownUtils] renderMarkdownViaServer failed; falling back to client renderer', err); - return simpleMarkdownToHtml(text); + return protectedMath.restore(simpleMarkdownToHtml(text)); } } diff --git a/src/frontend/web/von_interface/static/js/retainedConversationContent.js b/src/frontend/web/von_interface/static/js/retainedConversationContent.js new file mode 100644 index 000000000..254247c3c --- /dev/null +++ b/src/frontend/web/von_interface/static/js/retainedConversationContent.js @@ -0,0 +1,41 @@ +import { renderImageAttachments } from './utils/conversationImages.js'; + +// Primary retained parts share the existing display contract and image controls. +// The caller supplies the same Markdown pipeline used for ordinary replies. +export function renderRetainedConversationContent(container, contract, renderText) { + if (contract?.schema_version !== 'turn_display_elements_v1' || !Array.isArray(contract.elements)) return false; + const elements = contract.elements.filter(e => e.channel === 'screen' && e.provenance?.source === 'retained_content') + .sort((a, b) => a.order - b.order); + if (!elements.length) return false; + const signature = JSON.stringify(elements); + const previous = container.querySelector(':scope > .chat-retained-content'); + if (previous?.dataset.signature === signature) return true; + const root = document.createElement('div'); + root.className = 'chat-retained-content'; root.dataset.signature = signature; + const seen = new Set(); + for (const element of elements) { + if (seen.has(element.element_id)) continue; + seen.add(element.element_id); + const holder = document.createElement('div'); + holder.dataset.elementId = element.element_id; + root.appendChild(holder); + if (element.element_type === 'text_block') { + holder.textContent = String(element.payload?.text || ''); + // Plain source already provides the local fallback if enrichment + // fails (for example during navigation or an unavailable renderer). + void Promise.resolve(renderText(holder, element.payload?.text || '')).catch(() => {}); + } else if (element.element_type === 'image' && element.payload?.version === 1 && element.payload.asset?.concept_id) { + renderImageAttachments(holder, [element.payload.asset]); + } else { + holder.textContent = `Unsupported visual format: ${element.element_type}.`; + } + } + container.replaceChildren(root); + // A provisional attachment gallery may have rendered before debug/display + // hydration arrived. Keep only the ordered image elements after handoff. + const turn = container.closest('[data-turn-id]'); + if (turn) for (const gallery of turn.querySelectorAll('.conversation-image-gallery')) { + if (!root.contains(gallery)) gallery.remove(); + } + return true; +} diff --git a/src/frontend/web/von_interface/static/js/utils/conversationImages.js b/src/frontend/web/von_interface/static/js/utils/conversationImages.js index 23b0be982..e12d242be 100644 --- a/src/frontend/web/von_interface/static/js/utils/conversationImages.js +++ b/src/frontend/web/von_interface/static/js/utils/conversationImages.js @@ -10,21 +10,46 @@ export function renderImageAttachments(parent, images) { gallery.style.cssText = 'display:flex;flex-wrap:wrap;gap:12px;margin:8px 0'; for (const item of images) { if (!item?.concept_id) continue; + if ([...parent.querySelectorAll('[data-image-id]')].some(node => node.dataset.imageId === item.concept_id)) continue; const url = item.message_id ? `/api/messages/${encodeURIComponent(item.message_id)}/attachments/${encodeURIComponent(item.concept_id)}` : `/von/api/images/${encodeURIComponent(item.concept_id)}/original`; const link = document.createElement('a'); link.href = url; link.target = '_blank'; link.rel = 'noopener'; if (item.content_type && !item.content_type.startsWith('image/')) { + link.dataset.imageId = item.concept_id; link.textContent = `${item.filename || 'Attachment'} · ${item.content_type} · ${item.size_bytes} bytes`; gallery.appendChild(link); continue; } + const figure = document.createElement('figure'); + figure.dataset.imageId = item.concept_id; + figure.style.cssText = 'margin:0;max-width:100%;min-width:0'; const img = document.createElement('img'); - img.src = url; img.alt = item.filename || 'Attached image'; - img.style.cssText = 'max-width:100%;width:auto;max-height:420px;object-fit:contain'; - img.addEventListener('error', () => { img.alt = 'Image unavailable or access denied. Open the original to inspect the error.'; }); - link.appendChild(img); gallery.appendChild(link); + img.src = url; img.alt = item.caption || item.alt || (item.provenance?.kind === 'generated' ? 'Generated image' : item.filename || 'Attached image'); + img.style.cssText = 'max-width:min(100%,640px);max-height:420px;height:auto;object-fit:contain'; + img.addEventListener('error', () => { + const message = 'Image unavailable or access denied. Open the original to inspect the error.'; + img.alt = message; + if (!figure.querySelector('.image-unavailable')) { + const notice = document.createElement('p'); + notice.className = 'image-unavailable'; notice.setAttribute('role', 'status'); + notice.textContent = message; figure.appendChild(notice); + } + }); + link.setAttribute('aria-label', `Open original: ${img.alt}`); + link.appendChild(img); figure.appendChild(link); gallery.appendChild(figure); + const caption = document.createElement('figcaption'); + const generated = item.provenance?.kind === 'generated'; + caption.textContent = item.caption || (generated ? 'Generated image' : ''); + if (item.provenance?.parent_concept_ids?.length || item.provenance?.parent_concept_id) { + const original = document.createElement('a'); + const id = item.provenance.parent_concept_id || item.provenance.parent_concept_ids[0]; + original.href = `/von/api/images/${encodeURIComponent(id)}/original`; + original.target = '_blank'; original.rel = 'noopener'; original.textContent = 'View source image'; + caption.append(' · ', original); + } + figure.appendChild(caption); const source = item.provenance; if (source?.kind === 'otter_archive' && source.artifact_id) { const citation = document.createElement('a'); @@ -34,7 +59,7 @@ export function renderImageAttachments(parent, images) { gallery.appendChild(citation); } } - parent.appendChild(gallery); + if (gallery.childNodes.length) parent.appendChild(gallery); } export function renderImageComposer(parent, sessionId, changed) { if (!parent) return; diff --git a/src/frontend/web/von_interface/static/styles.css b/src/frontend/web/von_interface/static/styles.css index 2d4704a19..5e5cd2154 100644 --- a/src/frontend/web/von_interface/static/styles.css +++ b/src/frontend/web/von_interface/static/styles.css @@ -18725,3 +18725,24 @@ html[data-footer-uptime="false"][data-footer-runtimecost="false"][data-footer-bu outline: 2px solid #2563eb; outline-offset: 2px; } + +/* Source-based conversational visuals; original source stays independently usable. */ +.conversation-visual { max-width: 100%; min-width: 0; } +.conversation-visual.visual-dark { color: #e5e7eb; background: #202e3b; } +.conversation-visual.visual-dark .visual-source code { color: #e5e7eb; background: #15202c; } +.conversation-visual.visual-dark .visual-error { color: #e5e7eb; background: #202e3b; } +.conversation-visual .visual-source code { color: inherit; } +.conversation-visual .visual-source button { color: inherit; background: transparent; border: 1px solid currentColor; border-radius: 3px; } +.conversation-visual.visual-display { display: block; margin: 1rem 0; } +.conversation-visual .visual-output { max-width: 100%; } +.conversation-visual.diagram .visual-output { display: block; overflow: auto; } +.conversation-visual.diagram svg { display: block; width: 100%; height: auto; min-width: 480px; } +.conversation-visual .katex-display { overflow-x: auto; overflow-y: hidden; padding: .3em 0; } +.conversation-visual .visual-source { font: normal .8rem system-ui, sans-serif; } +.conversation-visual .visual-source code { white-space: pre-wrap; display: block; overflow-wrap: anywhere; } +.conversation-visual .visual-source code[hidden] { display: none; } +.conversation-visual .visual-source button { font: inherit; margin: .15em .3em; } +.conversation-visual.equation:not(.visual-display) .visual-source { display: inline; } +.conversation-visual.equation:not(.visual-display) .visual-source > button:last-child { display: none; } +.conversation-visual.equation:not(.visual-display) .visual-source:focus-within > button:last-child { display: inline; } +.visual-error { display: block; padding: .5em; border-inline-start: 3px solid #b86615; } diff --git a/src/frontend/web/von_interface/static/vendor/conversation-visuals/README.txt b/src/frontend/web/von_interface/static/vendor/conversation-visuals/README.txt new file mode 100644 index 000000000..f0d82a38c --- /dev/null +++ b/src/frontend/web/von_interface/static/vendor/conversation-visuals/README.txt @@ -0,0 +1 @@ +Generated by npm run build:conversation-visuals from package-lock.json. Do not edit generated assets. diff --git a/src/frontend/web/von_interface/static/vendor/conversation-visuals/abnfDiagram-O67JEVCF-J5H6EYVZ.js b/src/frontend/web/von_interface/static/vendor/conversation-visuals/abnfDiagram-O67JEVCF-J5H6EYVZ.js new file mode 100644 index 000000000..dfadfd0c1 --- /dev/null +++ b/src/frontend/web/von_interface/static/vendor/conversation-visuals/abnfDiagram-O67JEVCF-J5H6EYVZ.js @@ -0,0 +1 @@ +import{a,b as u,c as f}from"./chunk-53NJVRLX.js";import{a as m}from"./chunk-CDENLQJG.js";import{b as p}from"./chunk-WBZZWDU5.js";import"./chunk-ZFFKTRVX.js";import"./chunk-DKYAF235.js";import"./chunk-X7BLBFFS.js";import"./chunk-YMFA7VWU.js";import"./chunk-C7GWRE6Z.js";import"./chunk-4DL6P2YZ.js";import"./chunk-KCWUFFIE.js";import"./chunk-RDO2S4TE.js";import"./chunk-XCFPDLUP.js";import{b as l}from"./chunk-RMEGOE55.js";import"./chunk-QNBXOM7U.js";import"./chunk-NMQHKCXS.js";import"./chunk-SEHHQ34Z.js";import"./chunk-K6AAXKM5.js";import"./chunk-KVFXNR4L.js";import"./chunk-RVPSGR2P.js";import"./chunk-UED66XBH.js";import"./chunk-S4JILX6U.js";import{b as s}from"./chunk-XEQL7KGA.js";import{a as t}from"./chunk-YUSHYV7C.js";import"./chunk-3RNHDNP5.js";var v=l().RailroadAbnf.parser.LangiumParser,i=t(e=>{let r=e.alternatives.map(g);return r.length===1?r[0]:{type:"choice",alternatives:r}},"transformAlternation"),g=t(e=>{let r=e.elements.map(y);return r.length===1?r[0]:{type:"sequence",elements:r}},"transformConcatenation"),b=t(e=>{if(e.includes("*")){let[n,o]=e.split("*"),c=n?parseInt(n,10):0,d=o?parseInt(o,10):1/0;return{min:c,max:d}}let r=parseInt(e,10);return{min:r,max:r}},"parseRepeat"),y=t(e=>{let r=A(e.primary);if(!e.repeat)return r;let{min:n,max:o}=b(e.repeat);return n===0&&o===1?{type:"optional",element:r}:{type:"repetition",element:r,min:n,max:o}},"transformElement"),A=t(e=>{switch(e.$type){case"AbnfStringLiteral":return{type:"terminal",value:e.value};case"AbnfNumVal":return{type:"terminal",value:e.value};case"AbnfRuleName":return{type:"nonterminal",name:e.name};case"AbnfGroup":return i(e.element);case"AbnfOptionalGroup":return{type:"optional",element:i(e.element)};default:throw new Error(`Unsupported ABNF primary node: ${e.$type}`)}},"transformPrimary"),P=t(e=>({name:e.name,definition:i(e.definition)}),"transformRule"),h=t(e=>{m(e,a),e.title&&a.setTitle(e.title),e.rules.map(r=>a.addRule(P(r)))},"populateDb"),R={parse:t(e=>{a.clear(),s.debug("[ABNF Parser] Starting Langium parse");let r=v.parse(e);if(r.lexerErrors.length>0||r.parserErrors.length>0)throw new p(r);let n=r.value;s.debug("[ABNF Parser] Parsed rules:",n.rules.length),h(n),s.debug("[ABNF Parser] Parse complete")},"parse"),parser:{yy:a}},I={parser:R,db:a,renderer:f,styles:u};export{I as diagram}; diff --git a/src/frontend/web/von_interface/static/vendor/conversation-visuals/architecture-7GRP2DOG-GFB5YOJW.js b/src/frontend/web/von_interface/static/vendor/conversation-visuals/architecture-7GRP2DOG-GFB5YOJW.js new file mode 100644 index 000000000..dc371174f --- /dev/null +++ b/src/frontend/web/von_interface/static/vendor/conversation-visuals/architecture-7GRP2DOG-GFB5YOJW.js @@ -0,0 +1 @@ +import{a as e,b as r}from"./chunk-YMFA7VWU.js";import"./chunk-RVPSGR2P.js";import"./chunk-3RNHDNP5.js";export{e as ArchitectureModule,r as createArchitectureServices}; diff --git a/src/frontend/web/von_interface/static/vendor/conversation-visuals/architectureDiagram-NJMV4G6O-Q7P3KCEY.js b/src/frontend/web/von_interface/static/vendor/conversation-visuals/architectureDiagram-NJMV4G6O-Q7P3KCEY.js new file mode 100644 index 000000000..68fecacd5 --- /dev/null +++ b/src/frontend/web/von_interface/static/vendor/conversation-visuals/architectureDiagram-NJMV4G6O-Q7P3KCEY.js @@ -0,0 +1,36 @@ +import{a as Qe}from"./chunk-CDENLQJG.js";import{a as Je}from"./chunk-WBZZWDU5.js";import"./chunk-ZFFKTRVX.js";import"./chunk-DKYAF235.js";import"./chunk-X7BLBFFS.js";import"./chunk-YMFA7VWU.js";import"./chunk-C7GWRE6Z.js";import"./chunk-4DL6P2YZ.js";import"./chunk-KCWUFFIE.js";import"./chunk-RDO2S4TE.js";import"./chunk-XCFPDLUP.js";import"./chunk-RMEGOE55.js";import"./chunk-QNBXOM7U.js";import"./chunk-NMQHKCXS.js";import"./chunk-SEHHQ34Z.js";import"./chunk-K6AAXKM5.js";import"./chunk-KVFXNR4L.js";import"./chunk-RVPSGR2P.js";import{a as $e}from"./chunk-UED66XBH.js";import{a as me}from"./chunk-GKZGWO36.js";import{e as le}from"./chunk-O46DUOKR.js";import{a as Be,b as Ze,d as he}from"./chunk-C7YISUMK.js";import{o as ke,s as qe}from"./chunk-EUYVSIXP.js";import"./chunk-QSTT4QQC.js";import{$ as se,C as Fe,I as be,Q as Pe,U as Ge,V as Ue,W as Ye,X as Xe,Y as He,Z as We,_ as Ve,r as Se}from"./chunk-S4JILX6U.js";import{b as ye,h as ze}from"./chunk-XEQL7KGA.js";import{a as ft}from"./chunk-YUSHYV7C.js";import{b as pe,c as vr}from"./chunk-3RNHDNP5.js";var Te=pe((re,Ee)=>{(function(C,N){typeof re=="object"&&typeof Ee=="object"?Ee.exports=N():typeof define=="function"&&define.amd?define([],N):typeof re=="object"?re.layoutBase=N():C.layoutBase=N()})(re,function(){return(function(E){var C={};function N(g){if(C[g])return C[g].exports;var s=C[g]={i:g,l:!1,exports:{}};return E[g].call(s.exports,s,s.exports,N),s.l=!0,s.exports}return N.m=E,N.c=C,N.i=function(g){return g},N.d=function(g,s,a){N.o(g,s)||Object.defineProperty(g,s,{configurable:!1,enumerable:!0,get:a})},N.n=function(g){var s=g&&g.__esModule?function(){return g.default}:function(){return g};return N.d(s,"a",s),s},N.o=function(g,s){return Object.prototype.hasOwnProperty.call(g,s)},N.p="",N(N.s=28)})([(function(E,C,N){"use strict";function g(){}g.QUALITY=1,g.DEFAULT_CREATE_BENDS_AS_NEEDED=!1,g.DEFAULT_INCREMENTAL=!1,g.DEFAULT_ANIMATION_ON_LAYOUT=!0,g.DEFAULT_ANIMATION_DURING_LAYOUT=!1,g.DEFAULT_ANIMATION_PERIOD=50,g.DEFAULT_UNIFORM_LEAF_NODE_SIZES=!1,g.DEFAULT_GRAPH_MARGIN=15,g.NODE_DIMENSIONS_INCLUDE_LABELS=!1,g.SIMPLE_NODE_SIZE=40,g.SIMPLE_NODE_HALF_SIZE=g.SIMPLE_NODE_SIZE/2,g.EMPTY_COMPOUND_NODE_SIZE=40,g.MIN_EDGE_LENGTH=1,g.WORLD_BOUNDARY=1e6,g.INITIAL_WORLD_BOUNDARY=g.WORLD_BOUNDARY/1e3,g.WORLD_CENTER_X=1200,g.WORLD_CENTER_Y=900,E.exports=g}),(function(E,C,N){"use strict";var g=N(2),s=N(8),a=N(9);function i(f,e,u){g.call(this,u),this.isOverlapingSourceAndTarget=!1,this.vGraphObject=u,this.bendpoints=[],this.source=f,this.target=e}i.prototype=Object.create(g.prototype);for(var n in g)i[n]=g[n];i.prototype.getSource=function(){return this.source},i.prototype.getTarget=function(){return this.target},i.prototype.isInterGraph=function(){return this.isInterGraph},i.prototype.getLength=function(){return this.length},i.prototype.isOverlapingSourceAndTarget=function(){return this.isOverlapingSourceAndTarget},i.prototype.getBendpoints=function(){return this.bendpoints},i.prototype.getLca=function(){return this.lca},i.prototype.getSourceInLca=function(){return this.sourceInLca},i.prototype.getTargetInLca=function(){return this.targetInLca},i.prototype.getOtherEnd=function(f){if(this.source===f)return this.target;if(this.target===f)return this.source;throw"Node is not incident with this edge"},i.prototype.getOtherEndInGraph=function(f,e){for(var u=this.getOtherEnd(f),r=e.getGraphManager().getRoot();;){if(u.getOwner()==e)return u;if(u.getOwner()==r)break;u=u.getOwner().getParent()}return null},i.prototype.updateLength=function(){var f=new Array(4);this.isOverlapingSourceAndTarget=s.getIntersection(this.target.getRect(),this.source.getRect(),f),this.isOverlapingSourceAndTarget||(this.lengthX=f[0]-f[2],this.lengthY=f[1]-f[3],Math.abs(this.lengthX)<1&&(this.lengthX=a.sign(this.lengthX)),Math.abs(this.lengthY)<1&&(this.lengthY=a.sign(this.lengthY)),this.length=Math.sqrt(this.lengthX*this.lengthX+this.lengthY*this.lengthY))},i.prototype.updateLengthSimple=function(){this.lengthX=this.target.getCenterX()-this.source.getCenterX(),this.lengthY=this.target.getCenterY()-this.source.getCenterY(),Math.abs(this.lengthX)<1&&(this.lengthX=a.sign(this.lengthX)),Math.abs(this.lengthY)<1&&(this.lengthY=a.sign(this.lengthY)),this.length=Math.sqrt(this.lengthX*this.lengthX+this.lengthY*this.lengthY)},E.exports=i}),(function(E,C,N){"use strict";function g(s){this.vGraphObject=s}E.exports=g}),(function(E,C,N){"use strict";var g=N(2),s=N(10),a=N(13),i=N(0),n=N(16),f=N(5);function e(r,t,l,c){l==null&&c==null&&(c=t),g.call(this,c),r.graphManager!=null&&(r=r.graphManager),this.estimatedSize=s.MIN_VALUE,this.inclusionTreeDepth=s.MAX_VALUE,this.vGraphObject=c,this.edges=[],this.graphManager=r,l!=null&&t!=null?this.rect=new a(t.x,t.y,l.width,l.height):this.rect=new a}e.prototype=Object.create(g.prototype);for(var u in g)e[u]=g[u];e.prototype.getEdges=function(){return this.edges},e.prototype.getChild=function(){return this.child},e.prototype.getOwner=function(){return this.owner},e.prototype.getWidth=function(){return this.rect.width},e.prototype.setWidth=function(r){this.rect.width=r},e.prototype.getHeight=function(){return this.rect.height},e.prototype.setHeight=function(r){this.rect.height=r},e.prototype.getCenterX=function(){return this.rect.x+this.rect.width/2},e.prototype.getCenterY=function(){return this.rect.y+this.rect.height/2},e.prototype.getCenter=function(){return new f(this.rect.x+this.rect.width/2,this.rect.y+this.rect.height/2)},e.prototype.getLocation=function(){return new f(this.rect.x,this.rect.y)},e.prototype.getRect=function(){return this.rect},e.prototype.getDiagonal=function(){return Math.sqrt(this.rect.width*this.rect.width+this.rect.height*this.rect.height)},e.prototype.getHalfTheDiagonal=function(){return Math.sqrt(this.rect.height*this.rect.height+this.rect.width*this.rect.width)/2},e.prototype.setRect=function(r,t){this.rect.x=r.x,this.rect.y=r.y,this.rect.width=t.width,this.rect.height=t.height},e.prototype.setCenter=function(r,t){this.rect.x=r-this.rect.width/2,this.rect.y=t-this.rect.height/2},e.prototype.setLocation=function(r,t){this.rect.x=r,this.rect.y=t},e.prototype.moveBy=function(r,t){this.rect.x+=r,this.rect.y+=t},e.prototype.getEdgeListToNode=function(r){var t=[],l,c=this;return c.edges.forEach(function(h){if(h.target==r){if(h.source!=c)throw"Incorrect edge source!";t.push(h)}}),t},e.prototype.getEdgesBetween=function(r){var t=[],l,c=this;return c.edges.forEach(function(h){if(!(h.source==c||h.target==c))throw"Incorrect edge source and/or target";(h.target==r||h.source==r)&&t.push(h)}),t},e.prototype.getNeighborsList=function(){var r=new Set,t=this;return t.edges.forEach(function(l){if(l.source==t)r.add(l.target);else{if(l.target!=t)throw"Incorrect incidency!";r.add(l.source)}}),r},e.prototype.withChildren=function(){var r=new Set,t,l;if(r.add(this),this.child!=null)for(var c=this.child.getNodes(),h=0;ht?(this.rect.x-=(this.labelWidth-t)/2,this.setWidth(this.labelWidth)):this.labelPosHorizontal=="right"&&this.setWidth(t+this.labelWidth)),this.labelHeight&&(this.labelPosVertical=="top"?(this.rect.y-=this.labelHeight,this.setHeight(l+this.labelHeight)):this.labelPosVertical=="center"&&this.labelHeight>l?(this.rect.y-=(this.labelHeight-l)/2,this.setHeight(this.labelHeight)):this.labelPosVertical=="bottom"&&this.setHeight(l+this.labelHeight))}}},e.prototype.getInclusionTreeDepth=function(){if(this.inclusionTreeDepth==s.MAX_VALUE)throw"assert failed";return this.inclusionTreeDepth},e.prototype.transform=function(r){var t=this.rect.x;t>i.WORLD_BOUNDARY?t=i.WORLD_BOUNDARY:t<-i.WORLD_BOUNDARY&&(t=-i.WORLD_BOUNDARY);var l=this.rect.y;l>i.WORLD_BOUNDARY?l=i.WORLD_BOUNDARY:l<-i.WORLD_BOUNDARY&&(l=-i.WORLD_BOUNDARY);var c=new f(t,l),h=r.inverseTransformPoint(c);this.setLocation(h.x,h.y)},e.prototype.getLeft=function(){return this.rect.x},e.prototype.getRight=function(){return this.rect.x+this.rect.width},e.prototype.getTop=function(){return this.rect.y},e.prototype.getBottom=function(){return this.rect.y+this.rect.height},e.prototype.getParent=function(){return this.owner==null?null:this.owner.getParent()},E.exports=e}),(function(E,C,N){"use strict";var g=N(0);function s(){}for(var a in g)s[a]=g[a];s.MAX_ITERATIONS=2500,s.DEFAULT_EDGE_LENGTH=50,s.DEFAULT_SPRING_STRENGTH=.45,s.DEFAULT_REPULSION_STRENGTH=4500,s.DEFAULT_GRAVITY_STRENGTH=.4,s.DEFAULT_COMPOUND_GRAVITY_STRENGTH=1,s.DEFAULT_GRAVITY_RANGE_FACTOR=3.8,s.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR=1.5,s.DEFAULT_USE_SMART_IDEAL_EDGE_LENGTH_CALCULATION=!0,s.DEFAULT_USE_SMART_REPULSION_RANGE_CALCULATION=!0,s.DEFAULT_COOLING_FACTOR_INCREMENTAL=.3,s.COOLING_ADAPTATION_FACTOR=.33,s.ADAPTATION_LOWER_NODE_LIMIT=1e3,s.ADAPTATION_UPPER_NODE_LIMIT=5e3,s.MAX_NODE_DISPLACEMENT_INCREMENTAL=100,s.MAX_NODE_DISPLACEMENT=s.MAX_NODE_DISPLACEMENT_INCREMENTAL*3,s.MIN_REPULSION_DIST=s.DEFAULT_EDGE_LENGTH/10,s.CONVERGENCE_CHECK_PERIOD=100,s.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR=.1,s.MIN_EDGE_LENGTH=1,s.GRID_CALCULATION_CHECK_PERIOD=10,E.exports=s}),(function(E,C,N){"use strict";function g(s,a){s==null&&a==null?(this.x=0,this.y=0):(this.x=s,this.y=a)}g.prototype.getX=function(){return this.x},g.prototype.getY=function(){return this.y},g.prototype.setX=function(s){this.x=s},g.prototype.setY=function(s){this.y=s},g.prototype.getDifference=function(s){return new DimensionD(this.x-s.x,this.y-s.y)},g.prototype.getCopy=function(){return new g(this.x,this.y)},g.prototype.translate=function(s){return this.x+=s.width,this.y+=s.height,this},E.exports=g}),(function(E,C,N){"use strict";var g=N(2),s=N(10),a=N(0),i=N(7),n=N(3),f=N(1),e=N(13),u=N(12),r=N(11);function t(c,h,w){g.call(this,w),this.estimatedSize=s.MIN_VALUE,this.margin=a.DEFAULT_GRAPH_MARGIN,this.edges=[],this.nodes=[],this.isConnected=!1,this.parent=c,h!=null&&h instanceof i?this.graphManager=h:h!=null&&h instanceof Layout&&(this.graphManager=h.graphManager)}t.prototype=Object.create(g.prototype);for(var l in g)t[l]=g[l];t.prototype.getNodes=function(){return this.nodes},t.prototype.getEdges=function(){return this.edges},t.prototype.getGraphManager=function(){return this.graphManager},t.prototype.getParent=function(){return this.parent},t.prototype.getLeft=function(){return this.left},t.prototype.getRight=function(){return this.right},t.prototype.getTop=function(){return this.top},t.prototype.getBottom=function(){return this.bottom},t.prototype.isConnected=function(){return this.isConnected},t.prototype.add=function(c,h,w){if(h==null&&w==null){var p=c;if(this.graphManager==null)throw"Graph has no graph mgr!";if(this.getNodes().indexOf(p)>-1)throw"Node already in graph!";return p.owner=this,this.getNodes().push(p),p}else{var y=c;if(!(this.getNodes().indexOf(h)>-1&&this.getNodes().indexOf(w)>-1))throw"Source or target not in graph!";if(!(h.owner==w.owner&&h.owner==this))throw"Both owners must be this graph!";return h.owner!=w.owner?null:(y.source=h,y.target=w,y.isInterGraph=!1,this.getEdges().push(y),h.edges.push(y),w!=h&&w.edges.push(y),y)}},t.prototype.remove=function(c){var h=c;if(c instanceof n){if(h==null)throw"Node is null!";if(!(h.owner!=null&&h.owner==this))throw"Owner graph is invalid!";if(this.graphManager==null)throw"Owner graph manager is invalid!";for(var w=h.edges.slice(),p,y=w.length,L=0;L-1&&S>-1))throw"Source and/or target doesn't know this edge!";p.source.edges.splice(M,1),p.target!=p.source&&p.target.edges.splice(S,1);var I=p.source.owner.getEdges().indexOf(p);if(I==-1)throw"Not in owner's edge list!";p.source.owner.getEdges().splice(I,1)}},t.prototype.updateLeftTop=function(){for(var c=s.MAX_VALUE,h=s.MAX_VALUE,w,p,y,L=this.getNodes(),I=L.length,M=0;Mw&&(c=w),h>p&&(h=p)}return c==s.MAX_VALUE?null:(L[0].getParent().paddingLeft!=null?y=L[0].getParent().paddingLeft:y=this.margin,this.left=h-y,this.top=c-y,new u(this.left,this.top))},t.prototype.updateBounds=function(c){for(var h=s.MAX_VALUE,w=-s.MAX_VALUE,p=s.MAX_VALUE,y=-s.MAX_VALUE,L,I,M,S,X,G=this.nodes,Q=G.length,O=0;OL&&(h=L),wM&&(p=M),yL&&(h=L),wM&&(p=M),y=this.nodes.length){var Q=0;w.forEach(function(O){O.owner==c&&Q++}),Q==this.nodes.length&&(this.isConnected=!0)}},E.exports=t}),(function(E,C,N){"use strict";var g,s=N(1);function a(i){g=N(6),this.layout=i,this.graphs=[],this.edges=[]}a.prototype.addRoot=function(){var i=this.layout.newGraph(),n=this.layout.newNode(null),f=this.add(i,n);return this.setRootGraph(f),this.rootGraph},a.prototype.add=function(i,n,f,e,u){if(f==null&&e==null&&u==null){if(i==null)throw"Graph is null!";if(n==null)throw"Parent node is null!";if(this.graphs.indexOf(i)>-1)throw"Graph already in this graph mgr!";if(this.graphs.push(i),i.parent!=null)throw"Already has a parent!";if(n.child!=null)throw"Already has a child!";return i.parent=n,n.child=i,i}else{u=f,e=n,f=i;var r=e.getOwner(),t=u.getOwner();if(!(r!=null&&r.getGraphManager()==this))throw"Source not in this graph mgr!";if(!(t!=null&&t.getGraphManager()==this))throw"Target not in this graph mgr!";if(r==t)return f.isInterGraph=!1,r.add(f,e,u);if(f.isInterGraph=!0,f.source=e,f.target=u,this.edges.indexOf(f)>-1)throw"Edge already in inter-graph edge list!";if(this.edges.push(f),!(f.source!=null&&f.target!=null))throw"Edge source and/or target is null!";if(!(f.source.edges.indexOf(f)==-1&&f.target.edges.indexOf(f)==-1))throw"Edge already in source and/or target incidency list!";return f.source.edges.push(f),f.target.edges.push(f),f}},a.prototype.remove=function(i){if(i instanceof g){var n=i;if(n.getGraphManager()!=this)throw"Graph not in this graph mgr";if(!(n==this.rootGraph||n.parent!=null&&n.parent.graphManager==this))throw"Invalid parent node!";var f=[];f=f.concat(n.getEdges());for(var e,u=f.length,r=0;r=i.getRight()?n[0]+=Math.min(i.getX()-a.getX(),a.getRight()-i.getRight()):i.getX()<=a.getX()&&i.getRight()>=a.getRight()&&(n[0]+=Math.min(a.getX()-i.getX(),i.getRight()-a.getRight())),a.getY()<=i.getY()&&a.getBottom()>=i.getBottom()?n[1]+=Math.min(i.getY()-a.getY(),a.getBottom()-i.getBottom()):i.getY()<=a.getY()&&i.getBottom()>=a.getBottom()&&(n[1]+=Math.min(a.getY()-i.getY(),i.getBottom()-a.getBottom()));var u=Math.abs((i.getCenterY()-a.getCenterY())/(i.getCenterX()-a.getCenterX()));i.getCenterY()===a.getCenterY()&&i.getCenterX()===a.getCenterX()&&(u=1);var r=u*n[0],t=n[1]/u;n[0]r)return n[0]=f,n[1]=l,n[2]=u,n[3]=G,!1;if(eu)return n[0]=t,n[1]=e,n[2]=S,n[3]=r,!1;if(fu?(n[0]=h,n[1]=w,o=!0):(n[0]=c,n[1]=l,o=!0):v===d&&(f>u?(n[0]=t,n[1]=l,o=!0):(n[0]=p,n[1]=w,o=!0)),-T===d?u>f?(n[2]=X,n[3]=G,m=!0):(n[2]=S,n[3]=M,m=!0):T===d&&(u>f?(n[2]=I,n[3]=M,m=!0):(n[2]=Q,n[3]=G,m=!0)),o&&m)return!1;if(f>u?e>r?(x=this.getCardinalDirection(v,d,4),D=this.getCardinalDirection(T,d,2)):(x=this.getCardinalDirection(-v,d,3),D=this.getCardinalDirection(-T,d,1)):e>r?(x=this.getCardinalDirection(-v,d,1),D=this.getCardinalDirection(-T,d,3)):(x=this.getCardinalDirection(v,d,2),D=this.getCardinalDirection(T,d,4)),!o)switch(x){case 1:F=l,P=f+-L/d,n[0]=P,n[1]=F;break;case 2:P=p,F=e+y*d,n[0]=P,n[1]=F;break;case 3:F=w,P=f+L/d,n[0]=P,n[1]=F;break;case 4:P=h,F=e+-y*d,n[0]=P,n[1]=F;break}if(!m)switch(D){case 1:k=M,R=u+-H/d,n[2]=R,n[3]=k;break;case 2:R=Q,k=r+O*d,n[2]=R,n[3]=k;break;case 3:k=G,R=u+H/d,n[2]=R,n[3]=k;break;case 4:R=X,k=r+-O*d,n[2]=R,n[3]=k;break}}return!1},s.getCardinalDirection=function(a,i,n){return a>i?n:1+n%4},s.getIntersection=function(a,i,n,f){if(f==null)return this.getIntersection2(a,i,n);var e=a.x,u=a.y,r=i.x,t=i.y,l=n.x,c=n.y,h=f.x,w=f.y,p=void 0,y=void 0,L=void 0,I=void 0,M=void 0,S=void 0,X=void 0,G=void 0,Q=void 0;return L=t-u,M=e-r,X=r*u-e*t,I=w-c,S=l-h,G=h*c-l*w,Q=L*S-I*M,Q===0?null:(p=(M*G-S*X)/Q,y=(I*X-L*G)/Q,new g(p,y))},s.angleOfVector=function(a,i,n,f){var e=void 0;return a!==n?(e=Math.atan((f-i)/(n-a)),n=0){var w=(-l+Math.sqrt(l*l-4*t*c))/(2*t),p=(-l-Math.sqrt(l*l-4*t*c))/(2*t),y=null;return w>=0&&w<=1?[w]:p>=0&&p<=1?[p]:y}else return null},s.HALF_PI=.5*Math.PI,s.ONE_AND_HALF_PI=1.5*Math.PI,s.TWO_PI=2*Math.PI,s.THREE_PI=3*Math.PI,E.exports=s}),(function(E,C,N){"use strict";function g(){}g.sign=function(s){return s>0?1:s<0?-1:0},g.floor=function(s){return s<0?Math.ceil(s):Math.floor(s)},g.ceil=function(s){return s<0?Math.floor(s):Math.ceil(s)},E.exports=g}),(function(E,C,N){"use strict";function g(){}g.MAX_VALUE=2147483647,g.MIN_VALUE=-2147483648,E.exports=g}),(function(E,C,N){"use strict";var g=(function(){function e(u,r){for(var t=0;t"u"?"undefined":g(a);return a==null||i!="object"&&i!="function"},E.exports=s}),(function(E,C,N){"use strict";function g(l){if(Array.isArray(l)){for(var c=0,h=Array(l.length);c0&&c;){for(L.push(M[0]);L.length>0&&c;){var S=L[0];L.splice(0,1),y.add(S);for(var X=S.getEdges(),p=0;p-1&&M.splice(H,1)}y=new Set,I=new Map}}return l},t.prototype.createDummyNodesForBendpoints=function(l){for(var c=[],h=l.source,w=this.graphManager.calcLowestCommonAncestor(l.source,l.target),p=0;p0){for(var w=this.edgeToDummyNodes.get(h),p=0;p=0&&c.splice(G,1);var Q=I.getNeighborsList();Q.forEach(function(o){if(h.indexOf(o)<0){var m=w.get(o),v=m-1;v==1&&S.push(o),w.set(o,v)}})}h=h.concat(S),(c.length==1||c.length==2)&&(p=!0,y=c[0])}return y},t.prototype.setGraphManager=function(l){this.graphManager=l},E.exports=t}),(function(E,C,N){"use strict";function g(){}g.seed=1,g.x=0,g.nextDouble=function(){return g.x=Math.sin(g.seed++)*1e4,g.x-Math.floor(g.x)},E.exports=g}),(function(E,C,N){"use strict";var g=N(5);function s(a,i){this.lworldOrgX=0,this.lworldOrgY=0,this.ldeviceOrgX=0,this.ldeviceOrgY=0,this.lworldExtX=1,this.lworldExtY=1,this.ldeviceExtX=1,this.ldeviceExtY=1}s.prototype.getWorldOrgX=function(){return this.lworldOrgX},s.prototype.setWorldOrgX=function(a){this.lworldOrgX=a},s.prototype.getWorldOrgY=function(){return this.lworldOrgY},s.prototype.setWorldOrgY=function(a){this.lworldOrgY=a},s.prototype.getWorldExtX=function(){return this.lworldExtX},s.prototype.setWorldExtX=function(a){this.lworldExtX=a},s.prototype.getWorldExtY=function(){return this.lworldExtY},s.prototype.setWorldExtY=function(a){this.lworldExtY=a},s.prototype.getDeviceOrgX=function(){return this.ldeviceOrgX},s.prototype.setDeviceOrgX=function(a){this.ldeviceOrgX=a},s.prototype.getDeviceOrgY=function(){return this.ldeviceOrgY},s.prototype.setDeviceOrgY=function(a){this.ldeviceOrgY=a},s.prototype.getDeviceExtX=function(){return this.ldeviceExtX},s.prototype.setDeviceExtX=function(a){this.ldeviceExtX=a},s.prototype.getDeviceExtY=function(){return this.ldeviceExtY},s.prototype.setDeviceExtY=function(a){this.ldeviceExtY=a},s.prototype.transformX=function(a){var i=0,n=this.lworldExtX;return n!=0&&(i=this.ldeviceOrgX+(a-this.lworldOrgX)*this.ldeviceExtX/n),i},s.prototype.transformY=function(a){var i=0,n=this.lworldExtY;return n!=0&&(i=this.ldeviceOrgY+(a-this.lworldOrgY)*this.ldeviceExtY/n),i},s.prototype.inverseTransformX=function(a){var i=0,n=this.ldeviceExtX;return n!=0&&(i=this.lworldOrgX+(a-this.ldeviceOrgX)*this.lworldExtX/n),i},s.prototype.inverseTransformY=function(a){var i=0,n=this.ldeviceExtY;return n!=0&&(i=this.lworldOrgY+(a-this.ldeviceOrgY)*this.lworldExtY/n),i},s.prototype.inverseTransformPoint=function(a){var i=new g(this.inverseTransformX(a.x),this.inverseTransformY(a.y));return i},E.exports=s}),(function(E,C,N){"use strict";function g(r){if(Array.isArray(r)){for(var t=0,l=Array(r.length);ta.ADAPTATION_LOWER_NODE_LIMIT&&(this.coolingFactor=Math.max(this.coolingFactor*a.COOLING_ADAPTATION_FACTOR,this.coolingFactor-(r-a.ADAPTATION_LOWER_NODE_LIMIT)/(a.ADAPTATION_UPPER_NODE_LIMIT-a.ADAPTATION_LOWER_NODE_LIMIT)*this.coolingFactor*(1-a.COOLING_ADAPTATION_FACTOR))),this.maxNodeDisplacement=a.MAX_NODE_DISPLACEMENT_INCREMENTAL):(r>a.ADAPTATION_LOWER_NODE_LIMIT?this.coolingFactor=Math.max(a.COOLING_ADAPTATION_FACTOR,1-(r-a.ADAPTATION_LOWER_NODE_LIMIT)/(a.ADAPTATION_UPPER_NODE_LIMIT-a.ADAPTATION_LOWER_NODE_LIMIT)*(1-a.COOLING_ADAPTATION_FACTOR)):this.coolingFactor=1,this.initialCoolingFactor=this.coolingFactor,this.maxNodeDisplacement=a.MAX_NODE_DISPLACEMENT),this.maxIterations=Math.max(this.getAllNodes().length*5,this.maxIterations),this.displacementThresholdPerNode=3*a.DEFAULT_EDGE_LENGTH/100,this.totalDisplacementThreshold=this.displacementThresholdPerNode*this.getAllNodes().length,this.repulsionRange=this.calcRepulsionRange()},e.prototype.calcSpringForces=function(){for(var r=this.getAllEdges(),t,l=0;l0&&arguments[0]!==void 0?arguments[0]:!0,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,l,c,h,w,p=this.getAllNodes(),y;if(this.useFRGridVariant)for(this.totalIterations%a.GRID_CALCULATION_CHECK_PERIOD==1&&r&&this.updateGrid(),y=new Set,l=0;lL||y>L)&&(r.gravitationForceX=-this.gravityConstant*h,r.gravitationForceY=-this.gravityConstant*w)):(L=t.getEstimatedSize()*this.compoundGravityRangeFactor,(p>L||y>L)&&(r.gravitationForceX=-this.gravityConstant*h*this.compoundGravityConstant,r.gravitationForceY=-this.gravityConstant*w*this.compoundGravityConstant))},e.prototype.isConverged=function(){var r,t=!1;return this.totalIterations>this.maxIterations/3&&(t=Math.abs(this.totalDisplacement-this.oldTotalDisplacement)<2),r=this.totalDisplacement=p.length||L>=p[0].length)){for(var I=0;Ie}}]),n})();E.exports=i}),(function(E,C,N){"use strict";function g(){}g.svd=function(s){this.U=null,this.V=null,this.s=null,this.m=0,this.n=0,this.m=s.length,this.n=s[0].length;var a=Math.min(this.m,this.n);this.s=(function(Ot){for(var Nt=[];Ot-- >0;)Nt.push(0);return Nt})(Math.min(this.m+1,this.n)),this.U=(function(Ot){var Nt=function Bt(Rt){if(Rt.length==0)return 0;for(var Xt=[],zt=0;zt0;)Nt.push(0);return Nt})(this.n),n=(function(Ot){for(var Nt=[];Ot-- >0;)Nt.push(0);return Nt})(this.m),f=!0,e=!0,u=Math.min(this.m-1,this.n),r=Math.max(0,Math.min(this.n-2,this.m)),t=0;t=0;d--)if(this.s[d]!==0){for(var x=d+1;x=0;b--){if((function(Ot,Nt){return Ot&&Nt})(b0;){var J=void 0,Ut=void 0;for(J=m-2;J>=-1&&J!==-1;J--)if(Math.abs(i[J])<=St+Lt*(Math.abs(this.s[J])+Math.abs(this.s[J+1]))){i[J]=0;break}if(J===m-2)Ut=4;else{var At=void 0;for(At=m-1;At>=J&&At!==J;At--){var at=(At!==m?Math.abs(i[At]):0)+(At!==J+1?Math.abs(i[At-1]):0);if(Math.abs(this.s[At])<=St+Lt*at){this.s[At]=0;break}}At===J?Ut=3:At===m-1?Ut=1:(Ut=2,J=At)}switch(J++,Ut){case 1:{var et=i[m-2];i[m-2]=0;for(var pt=m-2;pt>=J;pt--){var mt=g.hypot(this.s[pt],et),wt=this.s[pt]/mt,Et=et/mt;if(this.s[pt]=mt,pt!==J&&(et=-Et*i[pt-1],i[pt-1]=wt*i[pt-1]),e)for(var Tt=0;Tt=this.s[J+1]);){var lt=this.s[J];if(this.s[J]=this.s[J+1],this.s[J+1]=lt,e&&JMath.abs(a)?(i=a/s,i=Math.abs(s)*Math.sqrt(1+i*i)):a!=0?(i=s/a,i=Math.abs(a)*Math.sqrt(1+i*i)):i=0,i},E.exports=g}),(function(E,C,N){"use strict";var g=(function(){function i(n,f){for(var e=0;e2&&arguments[2]!==void 0?arguments[2]:1,u=arguments.length>3&&arguments[3]!==void 0?arguments[3]:-1,r=arguments.length>4&&arguments[4]!==void 0?arguments[4]:-1;s(this,i),this.sequence1=n,this.sequence2=f,this.match_score=e,this.mismatch_penalty=u,this.gap_penalty=r,this.iMax=n.length+1,this.jMax=f.length+1,this.grid=new Array(this.iMax);for(var t=0;t=0;n--){var f=this.listeners[n];f.event===a&&f.callback===i&&this.listeners.splice(n,1)}},s.emit=function(a,i){for(var n=0;n{(function(C,N){typeof ie=="object"&&typeof Ne=="object"?Ne.exports=N(Te()):typeof define=="function"&&define.amd?define(["layout-base"],N):typeof ie=="object"?ie.coseBase=N(Te()):C.coseBase=N(C.layoutBase)})(ie,function(E){return(()=>{"use strict";var C={45:((a,i,n)=>{var f={};f.layoutBase=n(551),f.CoSEConstants=n(806),f.CoSEEdge=n(767),f.CoSEGraph=n(880),f.CoSEGraphManager=n(578),f.CoSELayout=n(765),f.CoSENode=n(991),f.ConstraintHandler=n(902),a.exports=f}),806:((a,i,n)=>{var f=n(551).FDLayoutConstants;function e(){}for(var u in f)e[u]=f[u];e.DEFAULT_USE_MULTI_LEVEL_SCALING=!1,e.DEFAULT_RADIAL_SEPARATION=f.DEFAULT_EDGE_LENGTH,e.DEFAULT_COMPONENT_SEPERATION=60,e.TILE=!0,e.TILING_PADDING_VERTICAL=10,e.TILING_PADDING_HORIZONTAL=10,e.TRANSFORM_ON_CONSTRAINT_HANDLING=!0,e.ENFORCE_CONSTRAINTS=!0,e.APPLY_LAYOUT=!0,e.RELAX_MOVEMENT_ON_CONSTRAINTS=!0,e.TREE_REDUCTION_ON_INCREMENTAL=!0,e.PURE_INCREMENTAL=e.DEFAULT_INCREMENTAL,a.exports=e}),767:((a,i,n)=>{var f=n(551).FDLayoutEdge;function e(r,t,l){f.call(this,r,t,l)}e.prototype=Object.create(f.prototype);for(var u in f)e[u]=f[u];a.exports=e}),880:((a,i,n)=>{var f=n(551).LGraph;function e(r,t,l){f.call(this,r,t,l)}e.prototype=Object.create(f.prototype);for(var u in f)e[u]=f[u];a.exports=e}),578:((a,i,n)=>{var f=n(551).LGraphManager;function e(r){f.call(this,r)}e.prototype=Object.create(f.prototype);for(var u in f)e[u]=f[u];a.exports=e}),765:((a,i,n)=>{var f=n(551).FDLayout,e=n(578),u=n(880),r=n(991),t=n(767),l=n(806),c=n(902),h=n(551).FDLayoutConstants,w=n(551).LayoutConstants,p=n(551).Point,y=n(551).PointD,L=n(551).DimensionD,I=n(551).Layout,M=n(551).Integer,S=n(551).IGeometry,X=n(551).LGraph,G=n(551).Transform,Q=n(551).LinkedList;function O(){f.call(this),this.toBeTiled={},this.constraints={}}O.prototype=Object.create(f.prototype);for(var H in f)O[H]=f[H];O.prototype.newGraphManager=function(){var o=new e(this);return this.graphManager=o,o},O.prototype.newGraph=function(o){return new u(null,this.graphManager,o)},O.prototype.newNode=function(o){return new r(this.graphManager,o)},O.prototype.newEdge=function(o){return new t(null,null,o)},O.prototype.initParameters=function(){f.prototype.initParameters.call(this,arguments),this.isSubLayout||(l.DEFAULT_EDGE_LENGTH<10?this.idealEdgeLength=10:this.idealEdgeLength=l.DEFAULT_EDGE_LENGTH,this.useSmartIdealEdgeLengthCalculation=l.DEFAULT_USE_SMART_IDEAL_EDGE_LENGTH_CALCULATION,this.gravityConstant=h.DEFAULT_GRAVITY_STRENGTH,this.compoundGravityConstant=h.DEFAULT_COMPOUND_GRAVITY_STRENGTH,this.gravityRangeFactor=h.DEFAULT_GRAVITY_RANGE_FACTOR,this.compoundGravityRangeFactor=h.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR,this.prunedNodesAll=[],this.growTreeIterations=0,this.afterGrowthIterations=0,this.isTreeGrowing=!1,this.isGrowthFinished=!1)},O.prototype.initSpringEmbedder=function(){f.prototype.initSpringEmbedder.call(this),this.coolingCycle=0,this.maxCoolingCycle=this.maxIterations/h.CONVERGENCE_CHECK_PERIOD,this.finalTemperature=.04,this.coolingAdjuster=1},O.prototype.layout=function(){var o=w.DEFAULT_CREATE_BENDS_AS_NEEDED;return o&&(this.createBendpoints(),this.graphManager.resetAllEdges()),this.level=0,this.classicLayout()},O.prototype.classicLayout=function(){if(this.nodesWithGravity=this.calculateNodesToApplyGravitationTo(),this.graphManager.setAllNodesToApplyGravitation(this.nodesWithGravity),this.calcNoOfChildrenForAllNodes(),this.graphManager.calcLowestCommonAncestors(),this.graphManager.calcInclusionTreeDepths(),this.graphManager.getRoot().calcEstimatedSize(),this.calcIdealEdgeLengths(),this.incremental){if(l.TREE_REDUCTION_ON_INCREMENTAL){this.reduceTrees(),this.graphManager.resetAllNodesToApplyGravitation();var m=new Set(this.getAllNodes()),v=this.nodesWithGravity.filter(function(x){return m.has(x)});this.graphManager.setAllNodesToApplyGravitation(v)}}else{var o=this.getFlatForest();if(o.length>0)this.positionNodesRadially(o);else{this.reduceTrees(),this.graphManager.resetAllNodesToApplyGravitation();var m=new Set(this.getAllNodes()),v=this.nodesWithGravity.filter(function(T){return m.has(T)});this.graphManager.setAllNodesToApplyGravitation(v),this.positionNodesRandomly()}}return Object.keys(this.constraints).length>0&&(c.handleConstraints(this),this.initConstraintVariables()),this.initSpringEmbedder(),l.APPLY_LAYOUT&&this.runSpringEmbedder(),!0},O.prototype.tick=function(){if(this.totalIterations++,this.totalIterations===this.maxIterations&&!this.isTreeGrowing&&!this.isGrowthFinished)if(this.prunedNodesAll.length>0)this.isTreeGrowing=!0;else return!0;if(this.totalIterations%h.CONVERGENCE_CHECK_PERIOD==0&&!this.isTreeGrowing&&!this.isGrowthFinished){if(this.isConverged())if(this.prunedNodesAll.length>0)this.isTreeGrowing=!0;else return!0;this.coolingCycle++,this.layoutQuality==0?this.coolingAdjuster=this.coolingCycle:this.layoutQuality==1&&(this.coolingAdjuster=this.coolingCycle/3),this.coolingFactor=Math.max(this.initialCoolingFactor-Math.pow(this.coolingCycle,Math.log(100*(this.initialCoolingFactor-this.finalTemperature))/Math.log(this.maxCoolingCycle))/100*this.coolingAdjuster,this.finalTemperature),this.animationPeriod=Math.ceil(this.initialAnimationPeriod*Math.sqrt(this.coolingFactor))}if(this.isTreeGrowing){if(this.growTreeIterations%10==0)if(this.prunedNodesAll.length>0){this.graphManager.updateBounds(),this.updateGrid(),this.growTree(this.prunedNodesAll),this.graphManager.resetAllNodesToApplyGravitation();var o=new Set(this.getAllNodes()),m=this.nodesWithGravity.filter(function(d){return o.has(d)});this.graphManager.setAllNodesToApplyGravitation(m),this.graphManager.updateBounds(),this.updateGrid(),l.PURE_INCREMENTAL?this.coolingFactor=h.DEFAULT_COOLING_FACTOR_INCREMENTAL/2:this.coolingFactor=h.DEFAULT_COOLING_FACTOR_INCREMENTAL}else this.isTreeGrowing=!1,this.isGrowthFinished=!0;this.growTreeIterations++}if(this.isGrowthFinished){if(this.isConverged())return!0;this.afterGrowthIterations%10==0&&(this.graphManager.updateBounds(),this.updateGrid()),l.PURE_INCREMENTAL?this.coolingFactor=h.DEFAULT_COOLING_FACTOR_INCREMENTAL/2*((100-this.afterGrowthIterations)/100):this.coolingFactor=h.DEFAULT_COOLING_FACTOR_INCREMENTAL*((100-this.afterGrowthIterations)/100),this.afterGrowthIterations++}var v=!this.isTreeGrowing&&!this.isGrowthFinished,T=this.growTreeIterations%10==1&&this.isTreeGrowing||this.afterGrowthIterations%10==1&&this.isGrowthFinished;return this.totalDisplacement=0,this.graphManager.updateBounds(),this.calcSpringForces(),this.calcRepulsionForces(v,T),this.calcGravitationalForces(),this.moveNodes(),this.animate(),!1},O.prototype.getPositionsData=function(){for(var o=this.graphManager.getAllNodes(),m={},v=0;v0&&this.updateDisplacements();for(var v=0;v0&&(T.fixedNodeWeight=x)}}if(this.constraints.relativePlacementConstraint){var D=new Map,P=new Map;if(this.dummyToNodeForVerticalAlignment=new Map,this.dummyToNodeForHorizontalAlignment=new Map,this.fixedNodesOnHorizontal=new Set,this.fixedNodesOnVertical=new Set,this.fixedNodeSet.forEach(function(A){o.fixedNodesOnHorizontal.add(A),o.fixedNodesOnVertical.add(A)}),this.constraints.alignmentConstraint){if(this.constraints.alignmentConstraint.vertical)for(var F=this.constraints.alignmentConstraint.vertical,v=0;v=2*A.length/3;K--)Y=Math.floor(Math.random()*(K+1)),W=A[K],A[K]=A[Y],A[Y]=W;return A},this.nodesInRelativeHorizontal=[],this.nodesInRelativeVertical=[],this.nodeToRelativeConstraintMapHorizontal=new Map,this.nodeToRelativeConstraintMapVertical=new Map,this.nodeToTempPositionMapHorizontal=new Map,this.nodeToTempPositionMapVertical=new Map,this.constraints.relativePlacementConstraint.forEach(function(A){if(A.left){var Y=D.has(A.left)?D.get(A.left):A.left,W=D.has(A.right)?D.get(A.right):A.right;o.nodesInRelativeHorizontal.includes(Y)||(o.nodesInRelativeHorizontal.push(Y),o.nodeToRelativeConstraintMapHorizontal.set(Y,[]),o.dummyToNodeForVerticalAlignment.has(Y)?o.nodeToTempPositionMapHorizontal.set(Y,o.idToNodeMap.get(o.dummyToNodeForVerticalAlignment.get(Y)[0]).getCenterX()):o.nodeToTempPositionMapHorizontal.set(Y,o.idToNodeMap.get(Y).getCenterX())),o.nodesInRelativeHorizontal.includes(W)||(o.nodesInRelativeHorizontal.push(W),o.nodeToRelativeConstraintMapHorizontal.set(W,[]),o.dummyToNodeForVerticalAlignment.has(W)?o.nodeToTempPositionMapHorizontal.set(W,o.idToNodeMap.get(o.dummyToNodeForVerticalAlignment.get(W)[0]).getCenterX()):o.nodeToTempPositionMapHorizontal.set(W,o.idToNodeMap.get(W).getCenterX())),o.nodeToRelativeConstraintMapHorizontal.get(Y).push({right:W,gap:A.gap}),o.nodeToRelativeConstraintMapHorizontal.get(W).push({left:Y,gap:A.gap})}else{var K=P.has(A.top)?P.get(A.top):A.top,st=P.has(A.bottom)?P.get(A.bottom):A.bottom;o.nodesInRelativeVertical.includes(K)||(o.nodesInRelativeVertical.push(K),o.nodeToRelativeConstraintMapVertical.set(K,[]),o.dummyToNodeForHorizontalAlignment.has(K)?o.nodeToTempPositionMapVertical.set(K,o.idToNodeMap.get(o.dummyToNodeForHorizontalAlignment.get(K)[0]).getCenterY()):o.nodeToTempPositionMapVertical.set(K,o.idToNodeMap.get(K).getCenterY())),o.nodesInRelativeVertical.includes(st)||(o.nodesInRelativeVertical.push(st),o.nodeToRelativeConstraintMapVertical.set(st,[]),o.dummyToNodeForHorizontalAlignment.has(st)?o.nodeToTempPositionMapVertical.set(st,o.idToNodeMap.get(o.dummyToNodeForHorizontalAlignment.get(st)[0]).getCenterY()):o.nodeToTempPositionMapVertical.set(st,o.idToNodeMap.get(st).getCenterY())),o.nodeToRelativeConstraintMapVertical.get(K).push({bottom:st,gap:A.gap}),o.nodeToRelativeConstraintMapVertical.get(st).push({top:K,gap:A.gap})}});else{var k=new Map,tt=new Map;this.constraints.relativePlacementConstraint.forEach(function(A){if(A.left){var Y=D.has(A.left)?D.get(A.left):A.left,W=D.has(A.right)?D.get(A.right):A.right;k.has(Y)?k.get(Y).push(W):k.set(Y,[W]),k.has(W)?k.get(W).push(Y):k.set(W,[Y])}else{var K=P.has(A.top)?P.get(A.top):A.top,st=P.has(A.bottom)?P.get(A.bottom):A.bottom;tt.has(K)?tt.get(K).push(st):tt.set(K,[st]),tt.has(st)?tt.get(st).push(K):tt.set(st,[K])}});var b=function(Y,W){var K=[],st=[],Lt=new Q,St=new Set,J=0;return Y.forEach(function(Ut,At){if(!St.has(At)){K[J]=[],st[J]=!1;var at=At;for(Lt.push(at),St.add(at),K[J].push(at);Lt.length!=0;){at=Lt.shift(),W.has(at)&&(st[J]=!0);var et=Y.get(at);et.forEach(function(pt){St.has(pt)||(Lt.push(pt),St.add(pt),K[J].push(pt))})}J++}}),{components:K,isFixed:st}},_=b(k,o.fixedNodesOnHorizontal);this.componentsOnHorizontal=_.components,this.fixedComponentsOnHorizontal=_.isFixed;var $=b(tt,o.fixedNodesOnVertical);this.componentsOnVertical=$.components,this.fixedComponentsOnVertical=$.isFixed}}},O.prototype.updateDisplacements=function(){var o=this;if(this.constraints.fixedNodeConstraint&&this.constraints.fixedNodeConstraint.forEach(function($){var A=o.idToNodeMap.get($.nodeId);A.displacementX=0,A.displacementY=0}),this.constraints.alignmentConstraint){if(this.constraints.alignmentConstraint.vertical)for(var m=this.constraints.alignmentConstraint.vertical,v=0;v1){var P;for(P=0;PT&&(T=Math.floor(D.y)),x=Math.floor(D.x+l.DEFAULT_COMPONENT_SEPERATION)}this.transform(new y(w.WORLD_CENTER_X-D.x/2,w.WORLD_CENTER_Y-D.y/2))},O.radialLayout=function(o,m,v){var T=Math.max(this.maxDiagonalInTree(o),l.DEFAULT_RADIAL_SEPARATION);O.branchRadialLayout(m,null,0,359,0,T);var d=X.calculateBounds(o),x=new G;x.setDeviceOrgX(d.getMinX()),x.setDeviceOrgY(d.getMinY()),x.setWorldOrgX(v.x),x.setWorldOrgY(v.y);for(var D=0;D1;){var K=W[0];W.splice(0,1);var st=b.indexOf(K);st>=0&&b.splice(st,1),A--,_--}m!=null?Y=(b.indexOf(W[0])+1)%A:Y=0;for(var Lt=Math.abs(T-v)/_,St=Y;$!=_;St=++St%A){var J=b[St].getOtherEnd(o);if(J!=m){var Ut=(v+$*Lt)%360,At=(Ut+Lt)%360;O.branchRadialLayout(J,o,Ut,At,d+x,x),$++}}},O.maxDiagonalInTree=function(o){for(var m=M.MIN_VALUE,v=0;vm&&(m=d)}return m},O.prototype.calcRepulsionRange=function(){return 2*(this.level+1)*this.idealEdgeLength},O.prototype.groupZeroDegreeMembers=function(){var o=this,m={};this.memberGroups={},this.idToDummyNode={};for(var v=[],T=this.graphManager.getAllNodes(),d=0;d"u"&&(m[P]=[]),m[P]=m[P].concat(x)}Object.keys(m).forEach(function(F){if(m[F].length>1){var R="DummyCompound_"+F;o.memberGroups[R]=m[F];var k=m[F][0].getParent(),tt=new r(o.graphManager);tt.id=R,tt.paddingLeft=k.paddingLeft||0,tt.paddingRight=k.paddingRight||0,tt.paddingBottom=k.paddingBottom||0,tt.paddingTop=k.paddingTop||0,o.idToDummyNode[R]=tt;var b=o.getGraphManager().add(o.newGraph(),tt),_=k.getChild();_.add(tt);for(var $=0;$d?(T.rect.x-=(T.labelWidth-d)/2,T.setWidth(T.labelWidth),T.labelMarginLeft=(T.labelWidth-d)/2):T.labelPosHorizontal=="right"&&T.setWidth(d+T.labelWidth)),T.labelHeight&&(T.labelPosVertical=="top"?(T.rect.y-=T.labelHeight,T.setHeight(x+T.labelHeight),T.labelMarginTop=T.labelHeight):T.labelPosVertical=="center"&&T.labelHeight>x?(T.rect.y-=(T.labelHeight-x)/2,T.setHeight(T.labelHeight),T.labelMarginTop=(T.labelHeight-x)/2):T.labelPosVertical=="bottom"&&T.setHeight(x+T.labelHeight))}})},O.prototype.repopulateCompounds=function(){for(var o=this.compoundOrder.length-1;o>=0;o--){var m=this.compoundOrder[o],v=m.id,T=m.paddingLeft,d=m.paddingTop,x=m.labelMarginLeft,D=m.labelMarginTop;this.adjustLocations(this.tiledMemberPack[v],m.rect.x,m.rect.y,T,d,x,D)}},O.prototype.repopulateZeroDegreeMembers=function(){var o=this,m=this.tiledZeroDegreePack;Object.keys(m).forEach(function(v){var T=o.idToDummyNode[v],d=T.paddingLeft,x=T.paddingTop,D=T.labelMarginLeft,P=T.labelMarginTop;o.adjustLocations(m[v],T.rect.x,T.rect.y,d,x,D,P)})},O.prototype.getToBeTiled=function(o){var m=o.id;if(this.toBeTiled[m]!=null)return this.toBeTiled[m];var v=o.getChild();if(v==null)return this.toBeTiled[m]=!1,!1;for(var T=v.getNodes(),d=0;d0)return this.toBeTiled[m]=!1,!1;if(x.getChild()==null){this.toBeTiled[x.id]=!1;continue}if(!this.getToBeTiled(x))return this.toBeTiled[m]=!1,!1}return this.toBeTiled[m]=!0,!0},O.prototype.getNodeDegree=function(o){for(var m=o.id,v=o.getEdges(),T=0,d=0;dk&&(k=b.rect.height)}v+=k+o.verticalPadding}},O.prototype.tileCompoundMembers=function(o,m){var v=this;this.tiledMemberPack=[],Object.keys(o).forEach(function(T){var d=m[T];if(v.tiledMemberPack[T]=v.tileNodes(o[T],d.paddingLeft+d.paddingRight),d.rect.width=v.tiledMemberPack[T].width,d.rect.height=v.tiledMemberPack[T].height,d.setCenter(v.tiledMemberPack[T].centerX,v.tiledMemberPack[T].centerY),d.labelMarginLeft=0,d.labelMarginTop=0,l.NODE_DIMENSIONS_INCLUDE_LABELS){var x=d.rect.width,D=d.rect.height;d.labelWidth&&(d.labelPosHorizontal=="left"?(d.rect.x-=d.labelWidth,d.setWidth(x+d.labelWidth),d.labelMarginLeft=d.labelWidth):d.labelPosHorizontal=="center"&&d.labelWidth>x?(d.rect.x-=(d.labelWidth-x)/2,d.setWidth(d.labelWidth),d.labelMarginLeft=(d.labelWidth-x)/2):d.labelPosHorizontal=="right"&&d.setWidth(x+d.labelWidth)),d.labelHeight&&(d.labelPosVertical=="top"?(d.rect.y-=d.labelHeight,d.setHeight(D+d.labelHeight),d.labelMarginTop=d.labelHeight):d.labelPosVertical=="center"&&d.labelHeight>D?(d.rect.y-=(d.labelHeight-D)/2,d.setHeight(d.labelHeight),d.labelMarginTop=(d.labelHeight-D)/2):d.labelPosVertical=="bottom"&&d.setHeight(D+d.labelHeight))}})},O.prototype.tileNodes=function(o,m){var v=this.tileNodesByFavoringDim(o,m,!0),T=this.tileNodesByFavoringDim(o,m,!1),d=this.getOrgRatio(v),x=this.getOrgRatio(T),D;return xP&&(P=$.getWidth())});var F=x/d,R=D/d,k=Math.pow(v-T,2)+4*(F+T)*(R+v)*d,tt=(T-v+Math.sqrt(k))/(2*(F+T)),b;m?(b=Math.ceil(tt),b==tt&&b++):b=Math.floor(tt);var _=b*(F+T)-T;return P>_&&(_=P),_+=T*2,_},O.prototype.tileNodesByFavoringDim=function(o,m,v){var T=l.TILING_PADDING_VERTICAL,d=l.TILING_PADDING_HORIZONTAL,x=l.TILING_COMPARE_BY,D={rows:[],rowWidth:[],rowHeight:[],width:0,height:m,verticalPadding:T,horizontalPadding:d,centerX:0,centerY:0};x&&(D.idealRowWidth=this.calcIdealRowWidth(o,v));var P=function(A){return A.rect.width*A.rect.height},F=function(A,Y){return P(Y)-P(A)};o.sort(function($,A){var Y=F;return D.idealRowWidth?(Y=x,Y($.id,A.id)):Y($,A)});for(var R=0,k=0,tt=0;tt0&&(D+=o.horizontalPadding),o.rowWidth[v]=D,o.width0&&(P+=o.verticalPadding);var F=0;P>o.rowHeight[v]&&(F=o.rowHeight[v],o.rowHeight[v]=P,F=o.rowHeight[v]-F),o.height+=F,o.rows[v].push(m)},O.prototype.getShortestRowIndex=function(o){for(var m=-1,v=Number.MAX_VALUE,T=0;Tv&&(m=T,v=o.rowWidth[T]);return m},O.prototype.canAddHorizontal=function(o,m,v){if(o.idealRowWidth){var T=o.rows.length-1,d=o.rowWidth[T];return d+m+o.horizontalPadding<=o.idealRowWidth}var x=this.getShortestRowIndex(o);if(x<0)return!0;var D=o.rowWidth[x];if(D+o.horizontalPadding+m<=o.width)return!0;var P=0;o.rowHeight[x]0&&(P=v+o.verticalPadding-o.rowHeight[x]);var F;o.width-D>=m+o.horizontalPadding?F=(o.height+P)/(D+m+o.horizontalPadding):F=(o.height+P)/o.width,P=v+o.verticalPadding;var R;return o.widthx&&m!=v){T.splice(-1,1),o.rows[v].push(d),o.rowWidth[m]=o.rowWidth[m]-x,o.rowWidth[v]=o.rowWidth[v]+x,o.width=o.rowWidth[instance.getLongestRowIndex(o)];for(var D=Number.MIN_VALUE,P=0;PD&&(D=T[P].height);m>0&&(D+=o.verticalPadding);var F=o.rowHeight[m]+o.rowHeight[v];o.rowHeight[m]=D,o.rowHeight[v]0)for(var _=d;_<=x;_++)b[0]+=this.grid[_][D-1].length+this.grid[_][D].length-1;if(x0)for(var _=D;_<=P;_++)b[3]+=this.grid[d-1][_].length+this.grid[d][_].length-1;for(var $=M.MAX_VALUE,A,Y,W=0;W{var f=n(551).FDLayoutNode,e=n(551).IMath;function u(t,l,c,h){f.call(this,t,l,c,h)}u.prototype=Object.create(f.prototype);for(var r in f)u[r]=f[r];u.prototype.calculateDisplacement=function(){var t=this.graphManager.getLayout();this.getChild()!=null&&this.fixedNodeWeight?(this.displacementX+=t.coolingFactor*(this.springForceX+this.repulsionForceX+this.gravitationForceX)/this.fixedNodeWeight,this.displacementY+=t.coolingFactor*(this.springForceY+this.repulsionForceY+this.gravitationForceY)/this.fixedNodeWeight):(this.displacementX+=t.coolingFactor*(this.springForceX+this.repulsionForceX+this.gravitationForceX)/this.noOfChildren,this.displacementY+=t.coolingFactor*(this.springForceY+this.repulsionForceY+this.gravitationForceY)/this.noOfChildren),Math.abs(this.displacementX)>t.coolingFactor*t.maxNodeDisplacement&&(this.displacementX=t.coolingFactor*t.maxNodeDisplacement*e.sign(this.displacementX)),Math.abs(this.displacementY)>t.coolingFactor*t.maxNodeDisplacement&&(this.displacementY=t.coolingFactor*t.maxNodeDisplacement*e.sign(this.displacementY)),this.child&&this.child.getNodes().length>0&&this.propogateDisplacementToChildren(this.displacementX,this.displacementY)},u.prototype.propogateDisplacementToChildren=function(t,l){for(var c=this.getChild().getNodes(),h,w=0;w{function f(c){if(Array.isArray(c)){for(var h=0,w=Array(c.length);h0){var dt=0;it.forEach(function(lt){z=="horizontal"?(q.set(lt,p.has(lt)?y[p.get(lt)]:Z.get(lt)),dt+=q.get(lt)):(q.set(lt,p.has(lt)?L[p.get(lt)]:Z.get(lt)),dt+=q.get(lt))}),dt=dt/it.length,ot.forEach(function(lt){B.has(lt)||q.set(lt,dt)})}else{var nt=0;ot.forEach(function(lt){z=="horizontal"?nt+=p.has(lt)?y[p.get(lt)]:Z.get(lt):nt+=p.has(lt)?L[p.get(lt)]:Z.get(lt)}),nt=nt/ot.length,ot.forEach(function(lt){q.set(lt,nt)})}});for(var rt=function(){var it=gt.shift(),dt=V.get(it);dt.forEach(function(nt){if(q.get(nt.id)lt&&(lt=Xt),ztFt&&(Ft=zt)}}catch(_t){Vt=!0,Ot=_t}finally{try{!xt&&Nt.return&&Nt.return()}finally{if(Vt)throw Ot}}var ce=(dt+lt)/2-(nt+Ft)/2,qt=!0,Jt=!1,Kt=void 0;try{for(var Qt=ot[Symbol.iterator](),oe;!(qt=(oe=Qt.next()).done);qt=!0){var jt=oe.value;q.set(jt,q.get(jt)+ce)}}catch(_t){Jt=!0,Kt=_t}finally{try{!qt&&Qt.return&&Qt.return()}finally{if(Jt)throw Kt}}})}return q},H=function(V){var z=0,B=0,Z=0,j=0;if(V.forEach(function(ht){ht.left?y[p.get(ht.left)]-y[p.get(ht.right)]>=0?z++:B++:L[p.get(ht.top)]-L[p.get(ht.bottom)]>=0?Z++:j++}),z>B&&Z>j)for(var ut=0;utB)for(var ct=0;ctj)for(var q=0;q1)h.fixedNodeConstraint.forEach(function(U,V){T[V]=[U.position.x,U.position.y],d[V]=[y[p.get(U.nodeId)],L[p.get(U.nodeId)]]}),x=!0;else if(h.alignmentConstraint)(function(){var U=0;if(h.alignmentConstraint.vertical){for(var V=h.alignmentConstraint.vertical,z=function(q){var ht=new Set;V[q].forEach(function(vt){ht.add(vt)});var gt=new Set([].concat(f(ht)).filter(function(vt){return P.has(vt)})),rt=void 0;gt.size>0?rt=y[p.get(gt.values().next().value)]:rt=Q(ht).x,V[q].forEach(function(vt){T[U]=[rt,L[p.get(vt)]],d[U]=[y[p.get(vt)],L[p.get(vt)]],U++})},B=0;B0?rt=y[p.get(gt.values().next().value)]:rt=Q(ht).y,Z[q].forEach(function(vt){T[U]=[y[p.get(vt)],rt],d[U]=[y[p.get(vt)],L[p.get(vt)]],U++})},ut=0;uttt&&(tt=k[_].length,b=_);if(tt0){var wt={x:0,y:0};h.fixedNodeConstraint.forEach(function(U,V){var z={x:y[p.get(U.nodeId)],y:L[p.get(U.nodeId)]},B=U.position,Z=G(B,z);wt.x+=Z.x,wt.y+=Z.y}),wt.x/=h.fixedNodeConstraint.length,wt.y/=h.fixedNodeConstraint.length,y.forEach(function(U,V){y[V]+=wt.x}),L.forEach(function(U,V){L[V]+=wt.y}),h.fixedNodeConstraint.forEach(function(U){y[p.get(U.nodeId)]=U.position.x,L[p.get(U.nodeId)]=U.position.y})}if(h.alignmentConstraint){if(h.alignmentConstraint.vertical)for(var Et=h.alignmentConstraint.vertical,Tt=function(V){var z=new Set;Et[V].forEach(function(j){z.add(j)});var B=new Set([].concat(f(z)).filter(function(j){return P.has(j)})),Z=void 0;B.size>0?Z=y[p.get(B.values().next().value)]:Z=Q(z).x,z.forEach(function(j){P.has(j)||(y[p.get(j)]=Z)})},Dt=0;Dt0?Z=L[p.get(B.values().next().value)]:Z=Q(z).y,z.forEach(function(j){P.has(j)||(L[p.get(j)]=Z)})},Pt=0;Pt{a.exports=E})},N={};function g(a){var i=N[a];if(i!==void 0)return i.exports;var n=N[a]={exports:{}};return C[a](n,n.exports,g),n.exports}var s=g(45);return s})()})});var Ke=pe((ne,we)=>{(function(C,N){typeof ne=="object"&&typeof we=="object"?we.exports=N(Le()):typeof define=="function"&&define.amd?define(["cose-base"],N):typeof ne=="object"?ne.cytoscapeFcose=N(Le()):C.cytoscapeFcose=N(C.coseBase)})(ne,function(E){return(()=>{"use strict";var C={658:(a=>{a.exports=Object.assign!=null?Object.assign.bind(Object):function(i){for(var n=arguments.length,f=Array(n>1?n-1:0),e=1;e{var f=(function(){function r(t,l){var c=[],h=!0,w=!1,p=void 0;try{for(var y=t[Symbol.iterator](),L;!(h=(L=y.next()).done)&&(c.push(L.value),!(l&&c.length===l));h=!0);}catch(I){w=!0,p=I}finally{try{!h&&y.return&&y.return()}finally{if(w)throw p}}return c}return function(t,l){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return r(t,l);throw new TypeError("Invalid attempt to destructure non-iterable instance")}})(),e=n(140).layoutBase.LinkedList,u={};u.getTopMostNodes=function(r){for(var t={},l=0;l0&&x.merge(R)});for(var D=0;D1){L=p[0],I=L.connectedEdges().length,p.forEach(function(d){d.connectedEdges().length0&&c.set("dummy"+(c.size+1),X),G},u.relocateComponent=function(r,t,l){if(!l.fixedNodeConstraint){var c=Number.POSITIVE_INFINITY,h=Number.NEGATIVE_INFINITY,w=Number.POSITIVE_INFINITY,p=Number.NEGATIVE_INFINITY;if(l.quality=="draft"){var y=!0,L=!1,I=void 0;try{for(var M=t.nodeIndexes[Symbol.iterator](),S;!(y=(S=M.next()).done);y=!0){var X=S.value,G=f(X,2),Q=G[0],O=G[1],H=l.cy.getElementById(Q);if(H){var o=H.boundingBox(),m=t.xCoords[O]-o.w/2,v=t.xCoords[O]+o.w/2,T=t.yCoords[O]-o.h/2,d=t.yCoords[O]+o.h/2;mh&&(h=v),Tp&&(p=d)}}}catch(R){L=!0,I=R}finally{try{!y&&M.return&&M.return()}finally{if(L)throw I}}var x=r.x-(h+c)/2,D=r.y-(p+w)/2;t.xCoords=t.xCoords.map(function(R){return R+x}),t.yCoords=t.yCoords.map(function(R){return R+D})}else{Object.keys(t).forEach(function(R){var k=t[R],tt=k.getRect().x,b=k.getRect().x+k.getRect().width,_=k.getRect().y,$=k.getRect().y+k.getRect().height;tth&&(h=b),_p&&(p=$)});var P=r.x-(h+c)/2,F=r.y-(p+w)/2;Object.keys(t).forEach(function(R){var k=t[R];k.setCenter(k.getCenterX()+P,k.getCenterY()+F)})}}},u.calcBoundingBox=function(r,t,l,c){for(var h=Number.MAX_SAFE_INTEGER,w=Number.MIN_SAFE_INTEGER,p=Number.MAX_SAFE_INTEGER,y=Number.MIN_SAFE_INTEGER,L=void 0,I=void 0,M=void 0,S=void 0,X=r.descendants().not(":parent"),G=X.length,Q=0;QL&&(h=L),wM&&(p=M),y{var f=n(548),e=n(140).CoSELayout,u=n(140).CoSENode,r=n(140).layoutBase.PointD,t=n(140).layoutBase.DimensionD,l=n(140).layoutBase.LayoutConstants,c=n(140).layoutBase.FDLayoutConstants,h=n(140).CoSEConstants,w=function(y,L){var I=y.cy,M=y.eles,S=M.nodes(),X=M.edges(),G=void 0,Q=void 0,O=void 0,H={};y.randomize&&(G=L.nodeIndexes,Q=L.xCoords,O=L.yCoords);var o=function(R){return typeof R=="function"},m=function(R,k){return o(R)?R(k):R},v=f.calcParentsWithoutChildren(I,M),T=function F(R,k,tt,b){for(var _=k.length,$=0;$<_;$++){var A=k[$],Y=null;A.intersection(v).length==0&&(Y=A.children());var W=void 0,K=A.layoutDimensions({nodeDimensionsIncludeLabels:b.nodeDimensionsIncludeLabels});if(A.outerWidth()!=null&&A.outerHeight()!=null)if(b.randomize)if(!A.isParent())W=R.add(new u(tt.graphManager,new r(Q[G.get(A.id())]-K.w/2,O[G.get(A.id())]-K.h/2),new t(parseFloat(K.w),parseFloat(K.h))));else{var st=f.calcBoundingBox(A,Q,O,G);A.intersection(v).length==0?W=R.add(new u(tt.graphManager,new r(st.topLeftX,st.topLeftY),new t(st.width,st.height))):W=R.add(new u(tt.graphManager,new r(st.topLeftX,st.topLeftY),new t(parseFloat(K.w),parseFloat(K.h))))}else W=R.add(new u(tt.graphManager,new r(A.position("x")-K.w/2,A.position("y")-K.h/2),new t(parseFloat(K.w),parseFloat(K.h))));else W=R.add(new u(this.graphManager));if(W.id=A.data("id"),W.nodeRepulsion=m(b.nodeRepulsion,A),W.paddingLeft=parseInt(A.css("padding")),W.paddingTop=parseInt(A.css("padding")),W.paddingRight=parseInt(A.css("padding")),W.paddingBottom=parseInt(A.css("padding")),b.nodeDimensionsIncludeLabels&&(W.labelWidth=A.boundingBox({includeLabels:!0,includeNodes:!1,includeOverlays:!1}).w,W.labelHeight=A.boundingBox({includeLabels:!0,includeNodes:!1,includeOverlays:!1}).h,W.labelPosVertical=A.css("text-valign"),W.labelPosHorizontal=A.css("text-halign")),H[A.data("id")]=W,isNaN(W.rect.x)&&(W.rect.x=0),isNaN(W.rect.y)&&(W.rect.y=0),Y!=null&&Y.length>0){var Lt=void 0;Lt=tt.getGraphManager().add(tt.newGraph(),W),F(Lt,Y,tt,b)}}},d=function(R,k,tt){for(var b=0,_=0,$=0;$0?h.DEFAULT_EDGE_LENGTH=c.DEFAULT_EDGE_LENGTH=b/_:o(y.idealEdgeLength)?h.DEFAULT_EDGE_LENGTH=c.DEFAULT_EDGE_LENGTH=50:h.DEFAULT_EDGE_LENGTH=c.DEFAULT_EDGE_LENGTH=y.idealEdgeLength,h.MIN_REPULSION_DIST=c.MIN_REPULSION_DIST=c.DEFAULT_EDGE_LENGTH/10,h.DEFAULT_RADIAL_SEPARATION=c.DEFAULT_EDGE_LENGTH)},x=function(R,k){k.fixedNodeConstraint&&(R.constraints.fixedNodeConstraint=k.fixedNodeConstraint),k.alignmentConstraint&&(R.constraints.alignmentConstraint=k.alignmentConstraint),k.relativePlacementConstraint&&(R.constraints.relativePlacementConstraint=k.relativePlacementConstraint)};y.nestingFactor!=null&&(h.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR=c.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR=y.nestingFactor),y.gravity!=null&&(h.DEFAULT_GRAVITY_STRENGTH=c.DEFAULT_GRAVITY_STRENGTH=y.gravity),y.numIter!=null&&(h.MAX_ITERATIONS=c.MAX_ITERATIONS=y.numIter),y.gravityRange!=null&&(h.DEFAULT_GRAVITY_RANGE_FACTOR=c.DEFAULT_GRAVITY_RANGE_FACTOR=y.gravityRange),y.gravityCompound!=null&&(h.DEFAULT_COMPOUND_GRAVITY_STRENGTH=c.DEFAULT_COMPOUND_GRAVITY_STRENGTH=y.gravityCompound),y.gravityRangeCompound!=null&&(h.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR=c.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR=y.gravityRangeCompound),y.initialEnergyOnIncremental!=null&&(h.DEFAULT_COOLING_FACTOR_INCREMENTAL=c.DEFAULT_COOLING_FACTOR_INCREMENTAL=y.initialEnergyOnIncremental),y.tilingCompareBy!=null&&(h.TILING_COMPARE_BY=y.tilingCompareBy),y.quality=="proof"?l.QUALITY=2:l.QUALITY=0,h.NODE_DIMENSIONS_INCLUDE_LABELS=c.NODE_DIMENSIONS_INCLUDE_LABELS=l.NODE_DIMENSIONS_INCLUDE_LABELS=y.nodeDimensionsIncludeLabels,h.DEFAULT_INCREMENTAL=c.DEFAULT_INCREMENTAL=l.DEFAULT_INCREMENTAL=!y.randomize,h.ANIMATE=c.ANIMATE=l.ANIMATE=y.animate,h.TILE=y.tile,h.TILING_PADDING_VERTICAL=typeof y.tilingPaddingVertical=="function"?y.tilingPaddingVertical.call():y.tilingPaddingVertical,h.TILING_PADDING_HORIZONTAL=typeof y.tilingPaddingHorizontal=="function"?y.tilingPaddingHorizontal.call():y.tilingPaddingHorizontal,h.DEFAULT_INCREMENTAL=c.DEFAULT_INCREMENTAL=l.DEFAULT_INCREMENTAL=!0,h.PURE_INCREMENTAL=!y.randomize,l.DEFAULT_UNIFORM_LEAF_NODE_SIZES=y.uniformNodeDimensions,y.step=="transformed"&&(h.TRANSFORM_ON_CONSTRAINT_HANDLING=!0,h.ENFORCE_CONSTRAINTS=!1,h.APPLY_LAYOUT=!1),y.step=="enforced"&&(h.TRANSFORM_ON_CONSTRAINT_HANDLING=!1,h.ENFORCE_CONSTRAINTS=!0,h.APPLY_LAYOUT=!1),y.step=="cose"&&(h.TRANSFORM_ON_CONSTRAINT_HANDLING=!1,h.ENFORCE_CONSTRAINTS=!1,h.APPLY_LAYOUT=!0),y.step=="all"&&(y.randomize?h.TRANSFORM_ON_CONSTRAINT_HANDLING=!0:h.TRANSFORM_ON_CONSTRAINT_HANDLING=!1,h.ENFORCE_CONSTRAINTS=!0,h.APPLY_LAYOUT=!0),y.fixedNodeConstraint||y.alignmentConstraint||y.relativePlacementConstraint?h.TREE_REDUCTION_ON_INCREMENTAL=!1:h.TREE_REDUCTION_ON_INCREMENTAL=!0;var D=new e,P=D.newGraphManager();return T(P.addRoot(),f.getTopMostNodes(S),D,y),d(D,P,X),x(D,y),D.runLayout(),H};a.exports={coseLayout:w}}),212:((a,i,n)=>{var f=(function(){function y(L,I){for(var M=0;M0)if(d){var P=r.getTopMostNodes(M.eles.nodes());if(o=r.connectComponents(S,M.eles,P),o.forEach(function(at){var et=at.boundingBox();m.push({x:et.x1+et.w/2,y:et.y1+et.h/2})}),M.randomize&&o.forEach(function(at){M.eles=at,G.push(l(M))}),M.quality=="default"||M.quality=="proof"){var F=S.collection();if(M.tile){var R=new Map,k=[],tt=[],b=0,_={nodeIndexes:R,xCoords:k,yCoords:tt},$=[];if(o.forEach(function(at,et){at.edges().length==0&&(at.nodes().forEach(function(pt,mt){F.merge(at.nodes()[mt]),pt.isParent()||(_.nodeIndexes.set(at.nodes()[mt].id(),b++),_.xCoords.push(at.nodes()[0].position().x),_.yCoords.push(at.nodes()[0].position().y))}),$.push(et))}),F.length>1){var A=F.boundingBox();m.push({x:A.x1+A.w/2,y:A.y1+A.h/2}),o.push(F),G.push(_);for(var Y=$.length-1;Y>=0;Y--)o.splice($[Y],1),G.splice($[Y],1),m.splice($[Y],1)}}o.forEach(function(at,et){M.eles=at,H.push(h(M,G[et])),r.relocateComponent(m[et],H[et],M)})}else o.forEach(function(at,et){r.relocateComponent(m[et],G[et],M)});var W=new Set;if(o.length>1){var K=[],st=X.filter(function(at){return at.css("display")=="none"});o.forEach(function(at,et){var pt=void 0;if(M.quality=="draft"&&(pt=G[et].nodeIndexes),at.nodes().not(st).length>0){var mt={};mt.edges=[],mt.nodes=[];var wt=void 0;at.nodes().not(st).forEach(function(Et){if(M.quality=="draft")if(!Et.isParent())wt=pt.get(Et.id()),mt.nodes.push({x:G[et].xCoords[wt]-Et.boundingbox().w/2,y:G[et].yCoords[wt]-Et.boundingbox().h/2,width:Et.boundingbox().w,height:Et.boundingbox().h});else{var Tt=r.calcBoundingBox(Et,G[et].xCoords,G[et].yCoords,pt);mt.nodes.push({x:Tt.topLeftX,y:Tt.topLeftY,width:Tt.width,height:Tt.height})}else H[et][Et.id()]&&mt.nodes.push({x:H[et][Et.id()].getLeft(),y:H[et][Et.id()].getTop(),width:H[et][Et.id()].getWidth(),height:H[et][Et.id()].getHeight()})}),at.edges().forEach(function(Et){var Tt=Et.source(),Dt=Et.target();if(Tt.css("display")!="none"&&Dt.css("display")!="none")if(M.quality=="draft"){var It=pt.get(Tt.id()),Wt=pt.get(Dt.id()),Pt=[],Yt=[];if(Tt.isParent()){var bt=r.calcBoundingBox(Tt,G[et].xCoords,G[et].yCoords,pt);Pt.push(bt.topLeftX+bt.width/2),Pt.push(bt.topLeftY+bt.height/2)}else Pt.push(G[et].xCoords[It]),Pt.push(G[et].yCoords[It]);if(Dt.isParent()){var U=r.calcBoundingBox(Dt,G[et].xCoords,G[et].yCoords,pt);Yt.push(U.topLeftX+U.width/2),Yt.push(U.topLeftY+U.height/2)}else Yt.push(G[et].xCoords[Wt]),Yt.push(G[et].yCoords[Wt]);mt.edges.push({startX:Pt[0],startY:Pt[1],endX:Yt[0],endY:Yt[1]})}else H[et][Tt.id()]&&H[et][Dt.id()]&&mt.edges.push({startX:H[et][Tt.id()].getCenterX(),startY:H[et][Tt.id()].getCenterY(),endX:H[et][Dt.id()].getCenterX(),endY:H[et][Dt.id()].getCenterY()})}),mt.nodes.length>0&&(K.push(mt),W.add(et))}});var Lt=T.packComponents(K,M.randomize).shifts;if(M.quality=="draft")G.forEach(function(at,et){var pt=at.xCoords.map(function(wt){return wt+Lt[et].dx}),mt=at.yCoords.map(function(wt){return wt+Lt[et].dy});at.xCoords=pt,at.yCoords=mt});else{var St=0;W.forEach(function(at){Object.keys(H[at]).forEach(function(et){var pt=H[at][et];pt.setCenter(pt.getCenterX()+Lt[St].dx,pt.getCenterY()+Lt[St].dy)}),St++})}}}else{var x=M.eles.boundingBox();if(m.push({x:x.x1+x.w/2,y:x.y1+x.h/2}),M.randomize){var D=l(M);G.push(D)}M.quality=="default"||M.quality=="proof"?(H.push(h(M,G[0])),r.relocateComponent(m[0],H[0],M)):r.relocateComponent(m[0],G[0],M)}var J=function(et,pt){if(M.quality=="default"||M.quality=="proof"){typeof et=="number"&&(et=pt);var mt=void 0,wt=void 0,Et=et.data("id");return H.forEach(function(Dt){Et in Dt&&(mt={x:Dt[Et].getRect().getCenterX(),y:Dt[Et].getRect().getCenterY()},wt=Dt[Et])}),M.nodeDimensionsIncludeLabels&&(wt.labelWidth&&(wt.labelPosHorizontal=="left"?mt.x+=wt.labelWidth/2:wt.labelPosHorizontal=="right"&&(mt.x-=wt.labelWidth/2)),wt.labelHeight&&(wt.labelPosVertical=="top"?mt.y+=wt.labelHeight/2:wt.labelPosVertical=="bottom"&&(mt.y-=wt.labelHeight/2))),mt==null&&(mt={x:et.position("x"),y:et.position("y")}),{x:mt.x,y:mt.y}}else{var Tt=void 0;return G.forEach(function(Dt){var It=Dt.nodeIndexes.get(et.id());It!=null&&(Tt={x:Dt.xCoords[It],y:Dt.yCoords[It]})}),Tt==null&&(Tt={x:et.position("x"),y:et.position("y")}),{x:Tt.x,y:Tt.y}}};if(M.quality=="default"||M.quality=="proof"||M.randomize){var Ut=r.calcParentsWithoutChildren(S,X),At=X.filter(function(at){return at.css("display")=="none"});M.eles=X.not(At),X.nodes().not(":parent").not(At).layoutPositions(I,M,J),Ut.length>0&&Ut.forEach(function(at){at.position(J(at))})}else console.log("If randomize option is set to false, then quality option must be 'default' or 'proof'.")}}]),y})();a.exports=p}),657:((a,i,n)=>{var f=n(548),e=n(140).layoutBase.Matrix,u=n(140).layoutBase.SVD,r=function(l){var c=l.cy,h=l.eles,w=h.nodes(),p=h.nodes(":parent"),y=new Map,L=new Map,I=new Map,M=[],S=[],X=[],G=[],Q=[],O=[],H=[],o=[],m=void 0,v=void 0,T=1e8,d=1e-9,x=l.piTol,D=l.samplingType,P=l.nodeSeparation,F=void 0,R=function(){for(var z=0,B=0,Z=!1;B=ut;){q=j[ut++];for(var ot=M[q],it=0;itrt&&(rt=Q[nt],vt=nt)}return vt},tt=function(z){var B=void 0;if(z){B=Math.floor(Math.random()*v),m=B;for(var j=0;j=1)break;rt=gt}for(var ot=0;ot=1)break;rt=gt}for(var dt=0;dt0&&(B.isParent()?M[z].push(I.get(B.id())):M[z].push(B.id()))})});var Ut=function(z){var B=L.get(z),Z=void 0;y.get(z).forEach(function(j){c.getElementById(j).isParent()?Z=I.get(j):Z=j,M[B].push(Z),M[L.get(Z)].push(z)})},At=!0,at=!1,et=void 0;try{for(var pt=y.keys()[Symbol.iterator](),mt;!(At=(mt=pt.next()).done);At=!0){var wt=mt.value;Ut(wt)}}catch(V){at=!0,et=V}finally{try{!At&&pt.return&&pt.return()}finally{if(at)throw et}}v=L.size;var Et=void 0;if(v>2){F=v{var f=n(212),e=function(r){r&&r("layout","fcose",f)};typeof cytoscape<"u"&&e(cytoscape),a.exports=e}),140:(a=>{a.exports=E})},N={};function g(a){var i=N[a];if(i!==void 0)return i.exports;var n=N[a]={exports:{}};return C[a](n,n.exports,g),n.exports}var s=g(579);return s})()})});var ar=vr(Ke(),1);var je={L:"left",R:"right",T:"top",B:"bottom"},_e={L:ft(E=>`${E},${E/2} 0,${E} 0,0`,"L"),R:ft(E=>`0,${E/2} ${E},0 ${E},${E}`,"R"),T:ft(E=>`0,0 ${E},0 ${E/2},${E}`,"T"),B:ft(E=>`${E/2},0 ${E},${E} 0,${E}`,"B")},fe={L:ft((E,C)=>E-C+2,"L"),R:ft((E,C)=>E-2,"R"),T:ft((E,C)=>E-C+2,"T"),B:ft((E,C)=>E-2,"B")},pr=ft(function(E){return Ht(E)?E==="L"?"R":"L":E==="T"?"B":"T"},"getOppositeArchitectureDirection"),tr=ft(function(E){let C=E;return C==="L"||C==="R"||C==="T"||C==="B"},"isArchitectureDirection"),Ht=ft(function(E){let C=E;return C==="L"||C==="R"},"isArchitectureDirectionX"),kt=ft(function(E){let C=E;return C==="T"||C==="B"},"isArchitectureDirectionY"),Ae=ft(function(E,C){let N=Ht(E)&&kt(C),g=kt(E)&&Ht(C);return N||g},"isArchitectureDirectionXY"),yr=ft(function(E){let C=E[0],N=E[1],g=Ht(C)&&kt(N),s=kt(C)&&Ht(N);return g||s},"isArchitecturePairXY"),mr=ft(function(E){return E!=="LL"&&E!=="RR"&&E!=="TT"&&E!=="BB"},"isValidArchitectureDirectionPair"),Me=ft(function(E,C){let N=`${E}${C}`;return mr(N)?N:void 0},"getArchitectureDirectionPair"),Er=ft(function([E,C],N){let g=N[0],s=N[1];return Ht(g)?kt(s)?[E+(g==="L"?-1:1),C+(s==="T"?1:-1)]:[E+(g==="L"?-1:1),C]:Ht(s)?[E+(s==="L"?1:-1),C+(g==="T"?1:-1)]:[E,C+(g==="T"?1:-1)]},"shiftPositionByArchitectureDirectionPair"),Tr=ft(function(E){return E==="LT"||E==="TL"?[1,1]:E==="BL"||E==="LB"?[1,-1]:E==="BR"||E==="RB"?[-1,-1]:[-1,1]},"getArchitectureDirectionXYFactors"),Nr=ft(function(E,C){return Ae(E,C)?"bend":Ht(E)?"horizontal":"vertical"},"getArchitectureDirectionAlignment"),Lr=ft(function(E){return E.type==="service"},"isArchitectureService"),wr=ft(function(E){return E.type==="junction"},"isArchitectureJunction"),er=ft((E,C)=>{let[N,g]=[E,C].sort();return`${JSON.stringify(N)}-${JSON.stringify(g)}`},"architectureGroupAlignmentKey"),rr=ft(E=>E.data(),"edgeData"),ee=ft(E=>E.data(),"nodeData"),Mr=Se.architecture,ir=class{constructor(){this.nodes=new Map,this.groups=new Map,this.edges=[],this.layoutHints=[],this.registeredIds=new Map,this.elements=new Map,this.diagramId="",this.setAccTitle=Ue,this.getAccTitle=Ye,this.setDiagramTitle=We,this.getDiagramTitle=Ve,this.getAccDescription=He,this.setAccDescription=Xe,this.clear()}static{ft(this,"ArchitectureDB")}setDiagramId(E){this.diagramId=E}getDiagramId(){return this.diagramId}clear(){this.nodes=new Map,this.groups=new Map,this.edges=[],this.layoutHints=[],this.registeredIds=new Map,this.dataStructures=void 0,this.elements=new Map,this.diagramId="",Ge()}addService({id:E,icon:C,in:N,title:g,iconText:s}){if(this.registeredIds.has(E))throw new Error(`The service id [${E}] is already in use by another ${this.registeredIds.get(E)}`);if(N!==void 0){if(E===N)throw new Error(`The service [${E}] cannot be placed within itself`);if(!this.registeredIds.has(N))throw new Error(`The service [${E}]'s parent does not exist. Please make sure the parent is created before this service`);if(this.registeredIds.get(N)==="node")throw new Error(`The service [${E}]'s parent is not a group`)}this.registeredIds.set(E,"node"),this.nodes.set(E,{id:E,type:"service",icon:C,iconText:s,title:g,edges:[],in:N})}getServices(){return[...this.nodes.values()].filter(Lr)}addJunction({id:E,in:C}){if(this.registeredIds.has(E))throw new Error(`The junction id [${E}] is already in use by another ${this.registeredIds.get(E)}`);if(C!==void 0){if(E===C)throw new Error(`The junction [${E}] cannot be placed within itself`);if(!this.registeredIds.has(C))throw new Error(`The junction [${E}]'s parent does not exist. Please make sure the parent is created before this junction`);if(this.registeredIds.get(C)==="node")throw new Error(`The junction [${E}]'s parent is not a group`)}this.registeredIds.set(E,"node"),this.nodes.set(E,{id:E,type:"junction",edges:[],in:C})}getJunctions(){return[...this.nodes.values()].filter(wr)}getNodes(){return[...this.nodes.values()]}getNode(E){return this.nodes.get(E)??null}addGroup({id:E,icon:C,in:N,title:g}){if(this.registeredIds.has(E))throw new Error(`The group id [${E}] is already in use by another ${this.registeredIds.get(E)}`);if(N!==void 0){if(E===N)throw new Error(`The group [${E}] cannot be placed within itself`);if(!this.registeredIds.has(N))throw new Error(`The group [${E}]'s parent does not exist. Please make sure the parent is created before this group`);if(this.registeredIds.get(N)==="node")throw new Error(`The group [${E}]'s parent is not a group`)}this.registeredIds.set(E,"group"),this.groups.set(E,{id:E,icon:C,title:g,in:N})}getGroups(){return[...this.groups.values()]}addEdge({lhsId:E,rhsId:C,lhsDir:N,rhsDir:g,lhsInto:s,rhsInto:a,lhsGroup:i,rhsGroup:n,title:f}){if(!tr(N))throw new Error(`Invalid direction given for left hand side of edge ${E}--${C}. Expected (L,R,T,B) got ${String(N)}`);if(!tr(g))throw new Error(`Invalid direction given for right hand side of edge ${E}--${C}. Expected (L,R,T,B) got ${String(g)}`);if(!this.nodes.has(E)&&!this.groups.has(E))throw new Error(`The left-hand id [${E}] does not yet exist. Please create the service/group before declaring an edge to it.`);if(!this.nodes.has(C)&&!this.groups.has(C))throw new Error(`The right-hand id [${C}] does not yet exist. Please create the service/group before declaring an edge to it.`);let e=this.nodes.get(E).in,u=this.nodes.get(C).in;if(i&&e&&u&&e==u)throw new Error(`The left-hand id [${E}] is modified to traverse the group boundary, but the edge does not pass through two groups.`);if(n&&e&&u&&e==u)throw new Error(`The right-hand id [${C}] is modified to traverse the group boundary, but the edge does not pass through two groups.`);let r={lhsId:E,lhsDir:N,lhsInto:s,lhsGroup:i,rhsId:C,rhsDir:g,rhsInto:a,rhsGroup:n,title:f};this.edges.push(r);let t=this.nodes.get(E),l=this.nodes.get(C);t&&l&&(t.edges.push(this.edges[this.edges.length-1]),l.edges.push(this.edges[this.edges.length-1]))}getEdges(){return this.edges}addLayoutHint(E){if(E.members.length<2)throw new Error(`An align directive requires at least two members; got ${E.members.length}`);let C=new Set;E.members.forEach(N=>{if(this.registeredIds.get(N)!=="node")throw new Error(`align ${E.direction} references [${N}], which is not a service or junction`);if(C.has(N))throw new Error(`align ${E.direction} lists [${N}] more than once`);C.add(N)}),this.layoutHints.push(E)}getLayoutHints(){return this.layoutHints}getDataStructures(){if(this.dataStructures===void 0){let E=new Map,C=new Map;for(let[i,n]of this.nodes.entries()){let f=new Map;for(let e of n.edges){let u=this.getNode(e.lhsId)?.in,r=this.getNode(e.rhsId)?.in;if(u&&r&&u!==r){let t=Nr(e.lhsDir,e.rhsDir);t!=="bend"&&E.set(er(u,r),t)}if(e.lhsId===i){let t=Me(e.lhsDir,e.rhsDir);t&&f.set(t,e.rhsId)}else{let t=Me(e.rhsDir,e.lhsDir);t&&f.set(t,e.lhsId)}}C.set(i,f)}let N=new Set,g=new Set(C.keys()),s=ft(i=>{let n=new Map([[i,[0,0]]]),f=[i];for(;f.length>0;){let e=f.shift();if(e){N.add(e),g.delete(e);let u=C.get(e);if(!u)throw new Error(`BFS error: adjacency list for id ${e} not found. Please report this as a bug.`);let r=n.get(e);if(!r)throw new Error(`BFS error: position for id ${e} not found in spatial map. Please report this as a bug.`);let[t,l]=r;u.forEach((c,h)=>{N.has(c)||(n.set(c,Er([t,l],h)),f.push(c))})}}return n},"BFS"),a=[];for(;g.size>0;){let i=g.values().next().value;a.push(s(i))}this.dataStructures={adjList:C,spatialMaps:a,groupAlignments:E}}return this.dataStructures}setElementForId(E,C){this.elements.set(E,C)}getElementById(E){return this.elements.get(E)}getConfig(){return ke({...Mr,...Fe().architecture})}getConfigField(E){return this.getConfig()[E]}},Cr=ft((E,C)=>{Qe(E,C),E.groups.map(N=>C.addGroup(N)),E.services.map(N=>C.addService({...N,type:"service"})),E.junctions.map(N=>C.addJunction({...N,type:"junction"})),E.edges.map(N=>C.addEdge(N)),E.alignments?.map(N=>C.addLayoutHint({direction:N.direction,members:[...N.members]}))},"populateDb"),nr={parser:{yy:void 0},parse:ft(async E=>{let C=await Je("architecture",E);ye.debug(C);let N=nr.parser?.yy;if(!(N instanceof ir))throw new Error("parser.parser?.yy was not a ArchitectureDB. This is due to a bug within Mermaid, please report this issue at https://github.com/mermaid-js/mermaid/issues.");Cr(C,N)},"parse")},Ar=ft(E=>` + .edge { + stroke-width: ${E.archEdgeWidth}; + stroke: ${E.archEdgeColor}; + fill: none; + } + + .arrow { + fill: ${E.archEdgeArrowColor}; + } + + .node-bkg { + fill: none; + stroke: ${E.archGroupBorderColor}; + stroke-width: ${E.archGroupBorderWidth}; + stroke-dasharray: 8; + } + .node-icon-text { + display: flex; + align-items: center; + } + + .node-icon-text > div { + color: #fff; + margin: 1px; + height: fit-content; + text-align: center; + overflow: hidden; + display: -webkit-box; + -webkit-box-orient: vertical; + } +`,"getStyles"),Dr=Ar;function Ce(E,C){if(E===0)return C();let N=Math.random,g=E>>>0;Math.random=function(){g=g+1831565813>>>0;let s=g;return s=Math.imul(s^s>>>15,s|1),s^=s+Math.imul(s^s>>>7,s|61),((s^s>>>14)>>>0)/4294967296};try{return C()}finally{Math.random=N}}ft(Ce,"withSeededRandom");var te=ft(E=>`${E}`,"wrapIcon"),ae={prefix:"mermaid-architecture",height:80,width:80,icons:{database:{body:te('')},server:{body:te('')},disk:{body:te('')},internet:{body:te('')},cloud:{body:te('')},unknown:Be,blank:{body:te("")}}},Or=ft(async function(E,C,N,g){let s=N.getConfigField("padding"),a=N.getConfigField("iconSize"),i=a/2,n=a/6,f=n/2;await Promise.all(C.edges().map(async e=>{let{source:u,sourceDir:r,sourceArrow:t,sourceGroup:l,target:c,targetDir:h,targetArrow:w,targetGroup:p,label:y}=rr(e),{x:L,y:I}=e[0].sourceEndpoint(),{x:M,y:S}=e[0].midpoint(),{x:X,y:G}=e[0].targetEndpoint(),Q=s+4;if(l&&(Ht(r)?L+=r==="L"?-Q:Q:I+=r==="T"?-Q:Q+18),p&&(Ht(h)?X+=h==="L"?-Q:Q:G+=h==="T"?-Q:Q+18),!l&&N.getNode(u)?.type==="junction"&&(Ht(r)?L+=r==="L"?i:-i:I+=r==="T"?i:-i),!p&&N.getNode(c)?.type==="junction"&&(Ht(h)?X+=h==="L"?i:-i:G+=h==="T"?i:-i),e[0]._private.rscratch){let O=E.insert("g");if(O.insert("path").attr("d",`M ${L},${I} L ${M},${S} L${X},${G} `).attr("class","edge").attr("id",`${g}-${qe(u,c,{prefix:"L"})}`),t){let H=Ht(r)?fe[r](L,n):L-f,o=kt(r)?fe[r](I,n):I-f;O.insert("polygon").attr("points",_e[r](n)).attr("transform",`translate(${H},${o})`).attr("class","arrow")}if(w){let H=Ht(h)?fe[h](X,n):X-f,o=kt(h)?fe[h](G,n):G-f;O.insert("polygon").attr("points",_e[h](n)).attr("transform",`translate(${H},${o})`).attr("class","arrow")}if(y){let H=Ae(r,h)?"XY":Ht(r)?"X":"Y",o=0;H==="X"?o=Math.abs(L-X):H==="Y"?o=Math.abs(I-G)/1.5:o=Math.abs(L-X)/2;let m=O.append("g");if(await le(m,y,{useHtmlLabels:!1,width:o,classes:"architecture-service-label"},se()),m.attr("dy","1em").attr("alignment-baseline","middle").attr("dominant-baseline","middle").attr("text-anchor","middle"),H==="X")m.attr("transform","translate("+M+", "+S+")");else if(H==="Y")m.attr("transform","translate("+M+", "+S+") rotate(-90)");else if(H==="XY"){let v=Me(r,h);if(v&&yr(v)){let T=m.node().getBoundingClientRect(),[d,x]=Tr(v);m.attr("dominant-baseline","auto").attr("transform",`rotate(${-1*d*x*45})`);let D=m.node().getBoundingClientRect();m.attr("transform",` + translate(${M}, ${S-T.height/2}) + translate(${d*D.width/2}, ${x*D.height/2}) + rotate(${-1*d*x*45}, 0, ${T.height/2}) + `)}}}}}))},"drawEdges"),xr=ft(async function(E,C,N,g){let a=N.getConfigField("padding")*.75,i=N.getConfigField("fontSize"),f=N.getConfigField("iconSize")/2;await Promise.all(C.nodes().map(async e=>{let u=ee(e);if(u.type==="group"){let{h:r,w:t,x1:l,y1:c}=e.boundingBox(),h=E.append("rect");h.attr("id",`${g}-group-${u.id}`).attr("x",l+f).attr("y",c+f).attr("width",t).attr("height",r).attr("class","node-bkg");let w=E.append("g"),p=l,y=c;if(u.icon){let L=w.append("g");L.html(`${await he(u.icon,{height:a,width:a,fallbackPrefix:ae.prefix})}`),L.attr("transform","translate("+(p+f+1)+", "+(y+f+1)+")"),p+=a,y+=i/2-1-2}if(u.label){let L=w.append("g");await le(L,u.label,{useHtmlLabels:!1,width:t,classes:"architecture-service-label"},se()),L.attr("dy","1em").attr("alignment-baseline","middle").attr("dominant-baseline","start").attr("text-anchor","start"),L.attr("transform","translate("+(p+f+4)+", "+(y+f+2)+")")}N.setElementForId(u.id,h)}}))},"drawGroups"),Ir=ft(async function(E,C,N,g){let s=se();for(let a of N){let i=C.append("g"),n=E.getConfigField("iconSize");if(a.title){let r=i.append("g");await le(r,a.title,{useHtmlLabels:!1,width:n*1.5,classes:"architecture-service-label"},s),r.attr("dy","1em").attr("alignment-baseline","middle").attr("dominant-baseline","middle").attr("text-anchor","middle"),r.attr("transform","translate("+n/2+", "+n+")")}let f=i.append("g");if(a.icon)f.html(`${await he(a.icon,{height:n,width:n,fallbackPrefix:ae.prefix})}`);else if(a.iconText){f.html(`${await he("blank",{height:n,width:n,fallbackPrefix:ae.prefix})}`);let l=f.append("g").append("foreignObject").attr("width",n).attr("height",n).append("div").attr("class","node-icon-text").attr("style",`height: ${n}px;`).append("div").html(be(a.iconText,s)),c=parseInt(window.getComputedStyle(l.node(),null).getPropertyValue("font-size").replace(/\D/g,""))??16;l.attr("style",`-webkit-line-clamp: ${Math.floor((n-2)/c)};`)}else f.append("path").attr("class","node-bkg").attr("id",`${g}-node-${a.id}`).attr("d",`M0,${n} V5 Q0,0 5,0 H${n-5} Q${n},0 ${n},5 V${n} Z`);i.attr("id",`${g}-service-${a.id}`).attr("class","architecture-service");let{width:e,height:u}=i.node().getBBox();a.width=e,a.height=u,E.setElementForId(a.id,i)}return 0},"drawServices"),Rr=ft(function(E,C,N,g){N.forEach(s=>{let a=C.append("g"),i=E.getConfigField("iconSize");a.append("g").append("rect").attr("id",`${g}-node-${s.id}`).attr("fill-opacity","0").attr("width",i).attr("height",i),a.attr("class","architecture-junction");let{width:f,height:e}=a._groups[0][0].getBBox();a.width=f,a.height=e,E.setElementForId(s.id,a)})},"drawJunctions");Ze([{name:ae.prefix,icons:ae}]);me.use(ar.default);function or(E,C,N){E.forEach(g=>{C.add({group:"nodes",data:{type:"service",id:g.id,icon:g.icon,label:g.title,parent:g.in,width:N.getConfigField("iconSize"),height:N.getConfigField("iconSize")},classes:"node-service"})})}ft(or,"addServices");function sr(E,C,N){E.forEach(g=>{C.add({group:"nodes",data:{type:"junction",id:g.id,parent:g.in,width:N.getConfigField("iconSize"),height:N.getConfigField("iconSize")},classes:"node-junction"})})}ft(sr,"addJunctions");function hr(E,C){C.nodes().map(N=>{let g=ee(N);if(g.type==="group")return;g.x=N.position().x,g.y=N.position().y,E.getElementById(g.id).attr("transform","translate("+(g.x||0)+","+(g.y||0)+")")})}ft(hr,"positionNodes");function lr(E,C){E.forEach(N=>{C.add({group:"nodes",data:{type:"group",id:N.id,icon:N.icon,label:N.title,parent:N.in},classes:"node-group"})})}ft(lr,"addGroups");function fr(E,C){E.forEach(N=>{let{lhsId:g,rhsId:s,lhsInto:a,lhsGroup:i,rhsInto:n,lhsDir:f,rhsDir:e,rhsGroup:u,title:r}=N,t=Ae(N.lhsDir,N.rhsDir)?"segments":"straight",l={id:`${g}-${s}`,label:r,source:g,sourceDir:f,sourceArrow:a,sourceGroup:i,sourceEndpoint:f==="L"?"0 50%":f==="R"?"100% 50%":f==="T"?"50% 0":"50% 100%",target:s,targetDir:e,targetArrow:n,targetGroup:u,targetEndpoint:e==="L"?"0 50%":e==="R"?"100% 50%":e==="T"?"50% 0":"50% 100%"};C.add({group:"edges",data:l,classes:t})})}ft(fr,"addEdges");function cr(E,C,N,g=[]){let s=ft((t,l)=>{let c=new Map;for(let[h,w]of t.entries()){let p=`${h}`,y=0,L=[...w.entries()];if(L.length===1){c.set(p,L[0][1]);continue}for(let I=0;I{let l=new Map,c=new Map;return t.forEach(([h,w],p)=>{let y=E.getNode(p)?.in??"default",L=l.get(w)??new Map;l.has(w)||l.set(w,L);let I=c.get(h)??new Map;c.has(h)||c.set(h,I);for(let M of[L,I]){let S=M.get(y)??[];M.has(y)||M.set(y,S),S.push(p)}}),{horiz:[...s(l,"horizontal").values()].filter(h=>h.length>1),vert:[...s(c,"vertical").values()].filter(h=>h.length>1)}}),[i,n]=a.reduce(([t,l],{horiz:c,vert:h})=>[[...t,...c],[...l,...h]],[[],[]]),f=new Set;g.forEach(t=>t.members.forEach(l=>f.add(l)));let e=ft(t=>t.filter(l=>!l.some(c=>f.has(c))),"dropOverlapping"),u=e(i),r=e(n);return g.forEach(t=>{t.members.length<2||(t.direction==="row"?u.push([...t.members]):r.push([...t.members]))}),{horizontal:u,vertical:r}}ft(cr,"getAlignments");function gr(E,C,N=[]){let g=[],s=C.getConfigField("iconSize"),a=C.getConfigField("idealEdgeLengthMultiplier"),i=a*s,n=new Set;N.forEach(u=>{for(let r=0;r`${u[0]},${u[1]}`,"posToStr"),e=ft(u=>u.split(",").map(r=>parseInt(r)),"strToPos");return E.forEach(u=>{let r=new Map([...u.entries()].map(([h,w])=>[f(w),h])),t=[f([0,0])],l={},c={L:[-1,0],R:[1,0],T:[0,1],B:[0,-1]};for(;t.length>0;){let h=t.shift();if(h){l[h]=1;let w=r.get(h);if(w){let p=e(h);Object.entries(c).forEach(([y,L])=>{let I=f([p[0]+L[0],p[1]+L[1]]),M=r.get(I);if(M&&!l[I]){if(t.push(I),n.has(`${w}|${M}`))return;g.push({[je[y]]:M,[je[pr(y)]]:w,gap:a*s})}})}}}}),g}ft(gr,"getRelativeConstraints");function ur(E,C,N,g,s,{spatialMaps:a,groupAlignments:i}){return new Promise(n=>{let f=ze("body").append("div").attr("id","cy").attr("style","display:none"),e=me({container:document.getElementById("cy"),style:[{selector:"edge",style:{"curve-style":"straight","source-endpoint":"data(sourceEndpoint)","target-endpoint":"data(targetEndpoint)"}},{selector:"edge[label]",style:{label:"data(label)"}},{selector:"edge.segments",style:{"curve-style":"segments","segment-weights":"0","segment-distances":[.5],"edge-distances":"endpoints","source-endpoint":"data(sourceEndpoint)","target-endpoint":"data(targetEndpoint)"}},{selector:"node",style:{"compound-sizing-wrt-labels":"include"}},{selector:"node[label]",style:{"text-valign":"bottom","text-halign":"center","font-size":`${s.getConfigField("fontSize")}px`}},{selector:".node-service",style:{label:"data(label)",width:"data(width)",height:"data(height)"}},{selector:".node-junction",style:{width:"data(width)",height:"data(height)"}},{selector:".node-group",style:{padding:`${s.getConfigField("padding")}px`}}],layout:{name:"grid",boundingBox:{x1:0,x2:100,y1:0,y2:100}}});f.remove(),lr(N,e),or(E,e,s),sr(C,e,s),fr(g,e);let u=s.getLayoutHints(),r=cr(s,a,i,u),t=gr(a,s,u),l=s.getConfigField("iconSize"),c=s.getConfigField("idealEdgeLengthMultiplier")*l,h=.5*l,w=s.getConfigField("edgeElasticity"),p=s.getConfigField("seed"),y=e.layout({name:"fcose",quality:"proof",randomize:s.getConfigField("randomize"),nodeSeparation:s.getConfigField("nodeSeparation"),numIter:s.getConfigField("numIter"),styleEnabled:!1,animate:!1,nodeDimensionsIncludeLabels:!1,idealEdgeLength(L){let[I,M]=L.connectedNodes(),{parent:S}=ee(I),{parent:X}=ee(M);return S===X?c:h},edgeElasticity(L){let[I,M]=L.connectedNodes(),{parent:S}=ee(I),{parent:X}=ee(M);return S===X?w:.001},alignmentConstraint:r,relativePlacementConstraint:t});y.one("layoutstop",()=>{function L(I,M,S,X){let G,Q,{x:O,y:H}=I,{x:o,y:m}=M;Q=(X-H+(O-S)*(H-m)/(O-o))/Math.sqrt(1+Math.pow((H-m)/(O-o),2)),G=Math.sqrt(Math.pow(X-H,2)+Math.pow(S-O,2)-Math.pow(Q,2));let v=Math.sqrt(Math.pow(o-O,2)+Math.pow(m-H,2));G=G/v;let T=(o-O)*(X-H)-(m-H)*(S-O);switch(!0){case T>=0:T=1;break;case T<0:T=-1;break}let d=(o-O)*(S-O)+(m-H)*(X-H);switch(!0){case d>=0:d=1;break;case d<0:d=-1;break}return Q=Math.abs(Q)*T,G=G*d,{distances:Q,weights:G}}ft(L,"getSegmentWeights"),e.startBatch();for(let I of Object.values(e.edges()))if(I.data?.()){let{x:M,y:S}=I.source().position(),{x:X,y:G}=I.target().position();if(M!==X&&S!==G){let Q=I.sourceEndpoint(),O=I.targetEndpoint(),{sourceDir:H}=rr(I),[o,m]=kt(H)?[Q.x,O.y]:[O.x,Q.y],{weights:v,distances:T}=L(Q,O,o,m);I.style("segment-distances",T),I.style("segment-weights",v)}}e.endBatch(),Ce(p,()=>y.run())});try{Ce(p,()=>y.run())}catch(L){throw L instanceof RangeError&&L.message.includes("Invalid array length")?new Error("Architecture layout failed: a declared `align row|column` directive likely contradicts the edge directions, or two declared alignments overlap on a shared node. Check that the order of members in each `align` chain is consistent with the edges between them, and that no node appears in two `align` directives along the same axis."):L}e.ready(L=>{ye.info("Ready",L),n(e)})})}ft(ur,"layoutArchitecture");var Sr=ft(async(E,C,N,g)=>{let s=g.db;s.setDiagramId(C);let a=s.getServices(),i=s.getJunctions(),n=s.getGroups(),f=s.getEdges(),e=s.getDataStructures(),u=$e(C),r=u.append("g");r.attr("class","architecture-edges");let t=u.append("g");t.attr("class","architecture-services");let l=u.append("g");l.attr("class","architecture-groups"),await Ir(s,t,a,C),Rr(s,t,i,C);let c=await ur(a,i,n,f,s,e);await Or(r,c,s,C),await xr(l,c,s,C),hr(s,c),Pe(void 0,u,s.getConfigField("padding"),s.getConfigField("useMaxWidth"))},"draw"),Fr={draw:Sr},Br={parser:nr,get db(){return new ir},renderer:Fr,styles:Dr};export{Br as diagram}; diff --git a/src/frontend/web/von_interface/static/vendor/conversation-visuals/blockDiagram-BEXU5L5S-NDPA2FID.js b/src/frontend/web/von_interface/static/vendor/conversation-visuals/blockDiagram-BEXU5L5S-NDPA2FID.js new file mode 100644 index 000000000..a7c52dade --- /dev/null +++ b/src/frontend/web/von_interface/static/vendor/conversation-visuals/blockDiagram-BEXU5L5S-NDPA2FID.js @@ -0,0 +1,140 @@ +import{a as Pe}from"./chunk-QP3MATMC.js";import{a as Ee}from"./chunk-SNMBC6G5.js";import{a as Re}from"./chunk-E4FJ3GMM.js";import"./chunk-JYJEQ7QO.js";import{g as Oe,h as ze,i as Be,j as Ae}from"./chunk-NDMMOI35.js";import{b as ae,e as Ce}from"./chunk-T4OFBIBR.js";import"./chunk-TEBTVNCH.js";import"./chunk-HVVAQLXH.js";import"./chunk-IVPOI5SM.js";import"./chunk-O46DUOKR.js";import"./chunk-C7YISUMK.js";import{b as De,c as Ie,d as Ne,f as Te,g as ve}from"./chunk-6NDAIVIK.js";import{a as we,f as _e}from"./chunk-EUYVSIXP.js";import"./chunk-QSTT4QQC.js";import{$ as ie,C as R,O as Le,P as me,U as ye,a as xe,b as ke}from"./chunk-S4JILX6U.js";import{b as m,h as Y}from"./chunk-XEQL7KGA.js";import{a as c}from"./chunk-YUSHYV7C.js";import"./chunk-3RNHDNP5.js";var oe=(function(){var e=c(function(C,g,s,n){for(s=s||{},n=C.length;n--;s[C[n]]=g);return s},"o"),o=[1,15],l=[1,7],a=[1,13],h=[1,14],p=[1,19],t=[1,16],u=[1,17],x=[1,18],k=[8,30],b=[8,10,21,28,29,30,31,39,43,46],f=[1,23],L=[1,24],E=[8,10,15,16,21,28,29,30,31,39,43,46],S=[8,10,15,16,21,27,28,29,30,31,39,43,46],_=[1,49],w={trace:c(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:c(function(g,s,n,d,y,r,K){var i=r.length-1;switch(y){case 4:d.getLogger().debug("Rule: separator (NL) ");break;case 5:d.getLogger().debug("Rule: separator (Space) ");break;case 6:d.getLogger().debug("Rule: separator (EOF) ");break;case 7:d.getLogger().debug("Rule: hierarchy: ",r[i-1]),d.setHierarchy(r[i-1]);break;case 8:d.getLogger().debug("Stop NL ");break;case 9:d.getLogger().debug("Stop EOF ");break;case 10:d.getLogger().debug("Stop NL2 ");break;case 11:d.getLogger().debug("Stop EOF2 ");break;case 12:d.getLogger().debug("Rule: statement: ",r[i]),typeof r[i].length=="number"?this.$=r[i]:this.$=[r[i]];break;case 13:d.getLogger().debug("Rule: statement #2: ",r[i-1]),this.$=[r[i-1]].concat(r[i]);break;case 14:d.getLogger().debug("Rule: link: ",r[i],g),this.$={edgeTypeStr:r[i],label:""};break;case 15:d.getLogger().debug("Rule: LABEL link: ",r[i-3],r[i-1],r[i]),this.$={edgeTypeStr:r[i],label:r[i-1]};break;case 18:let F=parseInt(r[i]),V=d.generateId();this.$={id:V,type:"space",label:"",width:F,children:[]};break;case 23:d.getLogger().debug("Rule: (nodeStatement link node) ",r[i-2],r[i-1],r[i]," typestr: ",r[i-1].edgeTypeStr);let j=d.edgeStrToEdgeData(r[i-1].edgeTypeStr),Z=d.edgeStrToEdgeStartData(r[i-1].edgeTypeStr),U=d.edgeStrToThickness(r[i-1].edgeTypeStr),Q=d.edgeStrToPattern(r[i-1].edgeTypeStr);this.$=[{id:r[i-2].id,label:r[i-2].label,type:r[i-2].type,directions:r[i-2].directions},{id:r[i-2].id+"-"+r[i].id,start:r[i-2].id,end:r[i].id,label:r[i-1].label,type:"edge",thickness:U,pattern:Q,directions:r[i].directions,arrowTypeEnd:j,arrowTypeStart:Z},{id:r[i].id,label:r[i].label,type:d.typeStr2Type(r[i].typeStr),directions:r[i].directions}];break;case 24:d.getLogger().debug("Rule: nodeStatement (abc88 node size) ",r[i-1],r[i]),this.$={id:r[i-1].id,label:r[i-1].label,type:d.typeStr2Type(r[i-1].typeStr),directions:r[i-1].directions,widthInColumns:parseInt(r[i],10)};break;case 25:d.getLogger().debug("Rule: nodeStatement (node) ",r[i]),this.$={id:r[i].id,label:r[i].label,type:d.typeStr2Type(r[i].typeStr),directions:r[i].directions,widthInColumns:1};break;case 26:d.getLogger().debug("APA123",this?this:"na"),d.getLogger().debug("COLUMNS: ",r[i]),this.$={type:"column-setting",columns:r[i]==="auto"?-1:parseInt(r[i])};break;case 27:d.getLogger().debug("Rule: id-block statement : ",r[i-2],r[i-1]);let D=d.generateId();this.$={...r[i-2],type:"composite",children:r[i-1]};break;case 28:d.getLogger().debug("Rule: blockStatement : ",r[i-2],r[i-1],r[i]);let B=d.generateId();this.$={id:B,type:"composite",label:"",children:r[i-1]};break;case 29:d.getLogger().debug("Rule: node (NODE_ID separator): ",r[i]),this.$={id:r[i]};break;case 30:d.getLogger().debug("Rule: node (NODE_ID nodeShapeNLabel separator): ",r[i-1],r[i]),this.$={id:r[i-1],label:r[i].label,typeStr:r[i].typeStr,directions:r[i].directions};break;case 31:d.getLogger().debug("Rule: dirList: ",r[i]),this.$=[r[i]];break;case 32:d.getLogger().debug("Rule: dirList: ",r[i-1],r[i]),this.$=[r[i-1]].concat(r[i]);break;case 33:d.getLogger().debug("Rule: nodeShapeNLabel: ",r[i-2],r[i-1],r[i]),this.$={typeStr:r[i-2]+r[i],label:r[i-1]};break;case 34:d.getLogger().debug("Rule: BLOCK_ARROW nodeShapeNLabel: ",r[i-3],r[i-2]," #3:",r[i-1],r[i]),this.$={typeStr:r[i-3]+r[i],label:r[i-2],directions:r[i-1]};break;case 35:case 36:this.$={type:"classDef",id:r[i-1].trim(),css:r[i].trim()};break;case 37:this.$={type:"applyClass",id:r[i-1].trim(),styleClass:r[i].trim()};break;case 38:this.$={type:"applyStyles",id:r[i-1].trim(),stylesStr:r[i].trim()};break}},"anonymous"),table:[{9:1,10:[1,2]},{1:[3]},{10:o,11:3,13:4,19:5,20:6,21:l,22:8,23:9,24:10,25:11,26:12,28:a,29:h,31:p,39:t,43:u,46:x},{8:[1,20]},e(k,[2,12],{13:4,19:5,20:6,22:8,23:9,24:10,25:11,26:12,11:21,10:o,21:l,28:a,29:h,31:p,39:t,43:u,46:x}),e(b,[2,16],{14:22,15:f,16:L}),e(b,[2,17]),e(b,[2,18]),e(b,[2,19]),e(b,[2,20]),e(b,[2,21]),e(b,[2,22]),e(E,[2,25],{27:[1,25]}),e(b,[2,26]),{19:26,26:12,31:p},{10:o,11:27,13:4,19:5,20:6,21:l,22:8,23:9,24:10,25:11,26:12,28:a,29:h,31:p,39:t,43:u,46:x},{40:[1,28],42:[1,29]},{44:[1,30]},{47:[1,31]},e(S,[2,29],{32:32,35:[1,33],37:[1,34]}),{1:[2,7]},e(k,[2,13]),{26:35,31:p},{31:[2,14]},{17:[1,36]},e(E,[2,24]),{10:o,11:37,13:4,14:22,15:f,16:L,19:5,20:6,21:l,22:8,23:9,24:10,25:11,26:12,28:a,29:h,31:p,39:t,43:u,46:x},{30:[1,38]},{41:[1,39]},{41:[1,40]},{45:[1,41]},{48:[1,42]},e(S,[2,30]),{18:[1,43]},{18:[1,44]},e(E,[2,23]),{18:[1,45]},{30:[1,46]},e(b,[2,28]),e(b,[2,35]),e(b,[2,36]),e(b,[2,37]),e(b,[2,38]),{36:[1,47]},{33:48,34:_},{15:[1,50]},e(b,[2,27]),e(S,[2,33]),{38:[1,51]},{33:52,34:_,38:[2,31]},{31:[2,15]},e(S,[2,34]),{38:[2,32]}],defaultActions:{20:[2,7],23:[2,14],50:[2,15],52:[2,32]},parseError:c(function(g,s){if(s.recoverable)this.trace(g);else{var n=new Error(g);throw n.hash=s,n}},"parseError"),parse:c(function(g){var s=this,n=[0],d=[],y=[null],r=[],K=this.table,i="",F=0,V=0,j=0,Z=2,U=1,Q=r.slice.call(arguments,1),D=Object.create(this.lexer),B={yy:{}};for(var $ in this.yy)Object.prototype.hasOwnProperty.call(this.yy,$)&&(B.yy[$]=this.yy[$]);D.setInput(g,B.yy),B.yy.lexer=D,B.yy.parser=this,typeof D.yylloc>"u"&&(D.yylloc={});var ee=D.yylloc;r.push(ee);var rt=D.options&&D.options.ranges;typeof B.yy.parseError=="function"?this.parseError=B.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function st(T){n.length=n.length-2*T,y.length=y.length-T,r.length=r.length-T}c(st,"popStack");function be(){var T;return T=d.pop()||D.lex()||U,typeof T!="number"&&(T instanceof Array&&(d=T,T=d.pop()),T=s.symbols_[T]||T),T}c(be,"lex");for(var N,te,P,O,Ot,re,M={},H,A,Se,X;;){if(P=n[n.length-1],this.defaultActions[P]?O=this.defaultActions[P]:((N===null||typeof N>"u")&&(N=be()),O=K[P]&&K[P][N]),typeof O>"u"||!O.length||!O[0]){var se="";X=[];for(H in K[P])this.terminals_[H]&&H>Z&&X.push("'"+this.terminals_[H]+"'");D.showPosition?se="Parse error on line "+(F+1)+`: +`+D.showPosition()+` +Expecting `+X.join(", ")+", got '"+(this.terminals_[N]||N)+"'":se="Parse error on line "+(F+1)+": Unexpected "+(N==U?"end of input":"'"+(this.terminals_[N]||N)+"'"),this.parseError(se,{text:D.match,token:this.terminals_[N]||N,line:D.yylineno,loc:ee,expected:X})}if(O[0]instanceof Array&&O.length>1)throw new Error("Parse Error: multiple actions possible at state: "+P+", token: "+N);switch(O[0]){case 1:n.push(N),y.push(D.yytext),r.push(D.yylloc),n.push(O[1]),N=null,te?(N=te,te=null):(V=D.yyleng,i=D.yytext,F=D.yylineno,ee=D.yylloc,j>0&&j--);break;case 2:if(A=this.productions_[O[1]][1],M.$=y[y.length-A],M._$={first_line:r[r.length-(A||1)].first_line,last_line:r[r.length-1].last_line,first_column:r[r.length-(A||1)].first_column,last_column:r[r.length-1].last_column},rt&&(M._$.range=[r[r.length-(A||1)].range[0],r[r.length-1].range[1]]),re=this.performAction.apply(M,[i,V,F,B.yy,O[1],y,r].concat(Q)),typeof re<"u")return re;A&&(n=n.slice(0,-1*A*2),y=y.slice(0,-1*A),r=r.slice(0,-1*A)),n.push(this.productions_[O[1]][0]),y.push(M.$),r.push(M._$),Se=K[n[n.length-2]][n[n.length-1]],n.push(Se);break;case 3:return!0}}return!0},"parse")},I=(function(){var C={EOF:1,parseError:c(function(s,n){if(this.yy.parser)this.yy.parser.parseError(s,n);else throw new Error(s)},"parseError"),setInput:c(function(g,s){return this.yy=s||this.yy||{},this._input=g,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:c(function(){var g=this._input[0];this.yytext+=g,this.yyleng++,this.offset++,this.match+=g,this.matched+=g;var s=g.match(/(?:\r\n?|\n).*/g);return s?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),g},"input"),unput:c(function(g){var s=g.length,n=g.split(/(?:\r\n?|\n)/g);this._input=g+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-s),this.offset-=s;var d=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 y=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===d.length?this.yylloc.first_column:0)+d[d.length-n.length].length-n[0].length:this.yylloc.first_column-s},this.options.ranges&&(this.yylloc.range=[y[0],y[0]+this.yyleng-s]),this.yyleng=this.yytext.length,this},"unput"),more:c(function(){return this._more=!0,this},"more"),reject:c(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). +`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:c(function(g){this.unput(this.match.slice(g))},"less"),pastInput:c(function(){var g=this.matched.substr(0,this.matched.length-this.match.length);return(g.length>20?"...":"")+g.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:c(function(){var g=this.match;return g.length<20&&(g+=this._input.substr(0,20-g.length)),(g.substr(0,20)+(g.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:c(function(){var g=this.pastInput(),s=new Array(g.length+1).join("-");return g+this.upcomingInput()+` +`+s+"^"},"showPosition"),test_match:c(function(g,s){var n,d,y;if(this.options.backtrack_lexer&&(y={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(y.yylloc.range=this.yylloc.range.slice(0))),d=g[0].match(/(?:\r\n?|\n).*/g),d&&(this.yylineno+=d.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:d?d[d.length-1].length-d[d.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+g[0].length},this.yytext+=g[0],this.match+=g[0],this.matches=g,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(g[0].length),this.matched+=g[0],n=this.performAction.call(this,this.yy,this,s,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var r in y)this[r]=y[r];return!1}return!1},"test_match"),next:c(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var g,s,n,d;this._more||(this.yytext="",this.match="");for(var y=this._currentRules(),r=0;rs[0].length)){if(s=n,d=r,this.options.backtrack_lexer){if(g=this.test_match(n,y[r]),g!==!1)return g;if(this._backtrack){s=!1;continue}else return!1}else if(!this.options.flex)break}return s?(g=this.test_match(s,y[d]),g!==!1?g:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text. +`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:c(function(){var s=this.next();return s||this.lex()},"lex"),begin:c(function(s){this.conditionStack.push(s)},"begin"),popState:c(function(){var s=this.conditionStack.length-1;return s>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:c(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:c(function(s){return s=this.conditionStack.length-1-Math.abs(s||0),s>=0?this.conditionStack[s]:"INITIAL"},"topState"),pushState:c(function(s){this.begin(s)},"pushState"),stateStackSize:c(function(){return this.conditionStack.length},"stateStackSize"),options:{},performAction:c(function(s,n,d,y){var r=y;switch(d){case 0:return s.getLogger().debug("Found block-beta"),10;break;case 1:return s.getLogger().debug("Found id-block"),29;break;case 2:return s.getLogger().debug("Found block"),10;break;case 3:s.getLogger().debug(".",n.yytext);break;case 4:s.getLogger().debug("_",n.yytext);break;case 5:return 5;case 6:return n.yytext=-1,28;break;case 7:return n.yytext=n.yytext.replace(/columns\s+/,""),s.getLogger().debug("COLUMNS (LEX)",n.yytext),28;break;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:s.getLogger().debug("LEX: POPPING STR:",n.yytext),this.popState();break;case 13:return s.getLogger().debug("LEX: STR end:",n.yytext),"STR";break;case 14:return n.yytext=n.yytext.replace(/space\:/,""),s.getLogger().debug("SPACE NUM (LEX)",n.yytext),21;break;case 15:return n.yytext="1",s.getLogger().debug("COLUMNS (LEX)",n.yytext),21;break;case 16:return 42;case 17:return"LINKSTYLE";case 18:return"INTERPOLATE";case 19:return this.pushState("CLASSDEF"),39;break;case 20:return this.popState(),this.pushState("CLASSDEFID"),"DEFAULT_CLASSDEF_ID";break;case 21:return this.popState(),this.pushState("CLASSDEFID"),40;break;case 22:return this.popState(),41;break;case 23:return this.pushState("CLASS"),43;break;case 24:return this.popState(),this.pushState("CLASS_STYLE"),44;break;case 25:return this.popState(),45;break;case 26:return this.pushState("STYLE_STMNT"),46;break;case 27:return this.popState(),this.pushState("STYLE_DEFINITION"),47;break;case 28:return this.popState(),48;break;case 29:return this.pushState("acc_title"),"acc_title";break;case 30:return this.popState(),"acc_title_value";break;case 31:return this.pushState("acc_descr"),"acc_descr";break;case 32:return this.popState(),"acc_descr_value";break;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(),s.getLogger().debug("Lex: (("),"NODE_DEND";break;case 38:return this.popState(),s.getLogger().debug("Lex: (("),"NODE_DEND";break;case 39:return this.popState(),s.getLogger().debug("Lex: ))"),"NODE_DEND";break;case 40:return this.popState(),s.getLogger().debug("Lex: (("),"NODE_DEND";break;case 41:return this.popState(),s.getLogger().debug("Lex: (("),"NODE_DEND";break;case 42:return this.popState(),s.getLogger().debug("Lex: (-"),"NODE_DEND";break;case 43:return this.popState(),s.getLogger().debug("Lex: -)"),"NODE_DEND";break;case 44:return this.popState(),s.getLogger().debug("Lex: (("),"NODE_DEND";break;case 45:return this.popState(),s.getLogger().debug("Lex: ]]"),"NODE_DEND";break;case 46:return this.popState(),s.getLogger().debug("Lex: ("),"NODE_DEND";break;case 47:return this.popState(),s.getLogger().debug("Lex: ])"),"NODE_DEND";break;case 48:return this.popState(),s.getLogger().debug("Lex: /]"),"NODE_DEND";break;case 49:return this.popState(),s.getLogger().debug("Lex: /]"),"NODE_DEND";break;case 50:return this.popState(),s.getLogger().debug("Lex: )]"),"NODE_DEND";break;case 51:return this.popState(),s.getLogger().debug("Lex: )"),"NODE_DEND";break;case 52:return this.popState(),s.getLogger().debug("Lex: ]>"),"NODE_DEND";break;case 53:return this.popState(),s.getLogger().debug("Lex: ]"),"NODE_DEND";break;case 54:return s.getLogger().debug("Lexa: -)"),this.pushState("NODE"),35;break;case 55:return s.getLogger().debug("Lexa: (-"),this.pushState("NODE"),35;break;case 56:return s.getLogger().debug("Lexa: ))"),this.pushState("NODE"),35;break;case 57:return s.getLogger().debug("Lexa: )"),this.pushState("NODE"),35;break;case 58:return s.getLogger().debug("Lex: ((("),this.pushState("NODE"),35;break;case 59:return s.getLogger().debug("Lexa: )"),this.pushState("NODE"),35;break;case 60:return s.getLogger().debug("Lexa: )"),this.pushState("NODE"),35;break;case 61:return s.getLogger().debug("Lexa: )"),this.pushState("NODE"),35;break;case 62:return s.getLogger().debug("Lexc: >"),this.pushState("NODE"),35;break;case 63:return s.getLogger().debug("Lexa: (["),this.pushState("NODE"),35;break;case 64:return s.getLogger().debug("Lexa: )"),this.pushState("NODE"),35;break;case 65:return this.pushState("NODE"),35;break;case 66:return this.pushState("NODE"),35;break;case 67:return this.pushState("NODE"),35;break;case 68:return this.pushState("NODE"),35;break;case 69:return this.pushState("NODE"),35;break;case 70:return this.pushState("NODE"),35;break;case 71:return this.pushState("NODE"),35;break;case 72:return s.getLogger().debug("Lexa: ["),this.pushState("NODE"),35;break;case 73:return this.pushState("BLOCK_ARROW"),s.getLogger().debug("LEX ARR START"),37;break;case 74:return s.getLogger().debug("Lex: NODE_ID",n.yytext),31;break;case 75:return s.getLogger().debug("Lex: EOF",n.yytext),8;break;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:s.getLogger().debug("Lex: Starting string"),this.pushState("string");break;case 81:s.getLogger().debug("LEX ARR: Starting string"),this.pushState("string");break;case 82:return s.getLogger().debug("LEX: NODE_DESCR:",n.yytext),"NODE_DESCR";break;case 83:s.getLogger().debug("LEX POPPING"),this.popState();break;case 84:s.getLogger().debug("Lex: =>BAE"),this.pushState("ARROW_DIR");break;case 85:return n.yytext=n.yytext.replace(/^,\s*/,""),s.getLogger().debug("Lex (right): dir:",n.yytext),"DIR";break;case 86:return n.yytext=n.yytext.replace(/^,\s*/,""),s.getLogger().debug("Lex (left):",n.yytext),"DIR";break;case 87:return n.yytext=n.yytext.replace(/^,\s*/,""),s.getLogger().debug("Lex (x):",n.yytext),"DIR";break;case 88:return n.yytext=n.yytext.replace(/^,\s*/,""),s.getLogger().debug("Lex (y):",n.yytext),"DIR";break;case 89:return n.yytext=n.yytext.replace(/^,\s*/,""),s.getLogger().debug("Lex (up):",n.yytext),"DIR";break;case 90:return n.yytext=n.yytext.replace(/^,\s*/,""),s.getLogger().debug("Lex (down):",n.yytext),"DIR";break;case 91:return n.yytext="]>",s.getLogger().debug("Lex (ARROW_DIR end):",n.yytext),this.popState(),this.popState(),"BLOCK_ARROW_END";break;case 92:return s.getLogger().debug("Lex: LINK","#"+n.yytext+"#"),15;break;case 93:return s.getLogger().debug("Lex: LINK",n.yytext),15;break;case 94:return s.getLogger().debug("Lex: LINK",n.yytext),15;break;case 95:return s.getLogger().debug("Lex: LINK",n.yytext),15;break;case 96:return s.getLogger().debug("Lex: START_LINK",n.yytext),this.pushState("LLABEL"),16;break;case 97:return s.getLogger().debug("Lex: START_LINK",n.yytext),this.pushState("LLABEL"),16;break;case 98:return s.getLogger().debug("Lex: START_LINK",n.yytext),this.pushState("LLABEL"),16;break;case 99:this.pushState("md_string");break;case 100:return s.getLogger().debug("Lex: Starting string"),this.pushState("string"),"LINK_LABEL";break;case 101:return this.popState(),s.getLogger().debug("Lex: LINK","#"+n.yytext+"#"),15;break;case 102:return this.popState(),s.getLogger().debug("Lex: LINK",n.yytext),15;break;case 103:return this.popState(),s.getLogger().debug("Lex: LINK",n.yytext),15;break;case 104:return s.getLogger().debug("Lex: COLON",n.yytext),n.yytext=n.yytext.slice(1),27;break}},"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}}};return C})();w.lexer=I;function v(){this.yy={}}return c(v,"Parser"),v.prototype=w,w.Parser=v,new v})();oe.parser=oe;var it=oe,z=new Map,he=[],le=new Map,Fe="color",Me="fill",at="bgFill",Ye=",",G=new Map,ue="",nt=c(e=>Le.sanitizeText(e,ie()),"sanitizeText"),ot=c(function(e,o=""){let l=G.get(e);l||(l={id:e,styles:[],textStyles:[]},G.set(e,l)),o?.split(Ye).forEach(a=>{let h=a.replace(/([^;]*);/,"$1").trim();if(RegExp(Fe).exec(a)){let t=h.replace(Me,at).replace(Fe,Me);l.textStyles.push(t)}l.styles.push(h)})},"addStyleClass"),lt=c(function(e,o=""){let l=z.get(e);o!=null&&(l.styles=o.split(Ye))},"addStyle2Node"),ct=c(function(e,o){e.split(",").forEach(function(l){let a=z.get(l);if(a===void 0){let h=l.trim();a={id:h,type:"na",children:[]},z.set(h,a)}a.classes||(a.classes=[]),a.classes.push(o)})},"setCssClass"),We=0,Ve=c((e,o)=>{let l=e.flat(),a=[],p=l.find(t=>t?.type==="column-setting")?.columns??-1;for(let t of l){if(typeof p=="number"&&p>0&&t.type!=="column-setting"&&typeof t.widthInColumns=="number"&&t.widthInColumns>p&&m.warn(`Block ${t.id} width ${t.widthInColumns} exceeds configured column width ${p}`),t.label&&(t.label=nt(t.label)),t.type==="classDef"){ot(t.id,t.css);continue}if(t.type==="applyClass"){ct(t.id,t?.styleClass??"");continue}if(t.type==="applyStyles"){t?.stylesStr&<(t.id,t?.stylesStr);continue}if(t.type==="column-setting")o.columns=t.columns??-1;else if(t.type==="edge"){let u=(le.get(t.id)??0)+1;le.set(t.id,u),t.id=u+"-"+t.id,he.push(t)}else{t.label||(t.type==="composite"?t.label="":t.label=t.id);let u=z.get(t.id);if(u===void 0?(t.type==="composite"&&(t.colorIndex=We++),z.set(t.id,t)):(t.type!=="na"&&(u.type=t.type),t.label!==t.id&&(u.label=t.label)),t.children&&Ve(t.children,t),t.type==="space"){let x=t.width??1;for(let k=0;k{m.debug("Clear called"),ye(),W={id:"root",type:"composite",children:[],columns:-1},z=new Map([["root",W]]),ge=[],G=new Map,he=[],le=new Map,ue="",We=0},"clear");function je(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"}}c(je,"typeStr2Type");function Ue(e){return m.debug("typeStr2Type",e),e==="=="?"thick":"normal"}c(Ue,"edgeTypeStr2Type");function He(e){switch(e.trim().slice(-1)){case"x":return"arrow_cross";case"o":return"arrow_circle";case">":return"arrow_point";default:return""}}c(He,"edgeStrToEdgeData");function Xe(e){switch(e.trim().charAt(0)){case"x":return"arrow_cross";case"o":return"arrow_circle";case"<":return"arrow_point";default:return"arrow_open"}}c(Xe,"edgeStrToEdgeStartData");function Ge(e){return e.includes("==")?"thick":"normal"}c(Ge,"edgeStrToThickness");function qe(e){return e.includes(".-")?"dotted":"solid"}c(qe,"edgeStrToPattern");var Ke=0,ut=c(()=>(Ke++,"id-"+Math.random().toString(36).substr(2,12)+"-"+Ke),"generateId"),gt=c(e=>{W.children=e,Ve(e,W),ge=W.children},"setHierarchy"),dt=c(e=>{let o=z.get(e);return o?o.columns?o.columns:o.children?o.children.length:-1:-1},"getColumns"),pt=c(()=>[...z.values()],"getBlocksFlat"),ft=c(()=>ge||[],"getBlocks"),bt=c(()=>he,"getEdges"),St=c(e=>z.get(e),"getBlock"),xt=c(e=>{z.set(e.id,e)},"setBlock"),kt=c(e=>{ue=e},"setDiagramId"),Lt=c(()=>ue,"getDiagramId"),mt=c(()=>m,"getLogger"),yt=c(function(){return G},"getClasses"),Et={getConfig:c(()=>R().block,"getConfig"),typeStr2Type:je,edgeTypeStr2Type:Ue,edgeStrToEdgeData:He,edgeStrToEdgeStartData:Xe,edgeStrToThickness:Ge,edgeStrToPattern:qe,getLogger:mt,getBlocksFlat:pt,getBlocks:ft,getEdges:bt,setHierarchy:gt,getBlock:St,setBlock:xt,getColumns:dt,getClasses:yt,clear:ht,generateId:ut,setDiagramId:kt,getDiagramId:Lt},wt=Et,_t=c(e=>{let{theme:o,bkgColorArray:l,borderColorArray:a}=e;if(!Ie(o,a))return"";let h=Ne(e.look),p=De(l),t="";for(let u=0;u{let l=ke,a=l(e,"r"),h=l(e,"g"),p=l(e,"b");return xe(a,h,p,o)},"fade"),Dt=c(e=>`${_t(e)} + .label { + font-family: ${e.fontFamily}; + color: ${e.nodeTextColor||e.textColor}; + } + .cluster-label text { + fill: ${e.titleColor}; + } + .cluster-label span { + color: ${e.titleColor}; + } + + + + .label text,span { + fill: ${e.nodeTextColor||e.textColor}; + color: ${e.nodeTextColor||e.textColor}; + } + + .node rect, + .node circle, + .node ellipse, + .node polygon, + .node path { + fill: ${e.mainBkg}; + stroke: ${e.nodeBorder}; + /* From the theme, as every other diagram does. Pinned at 1px here, so block drew a + thinner border than an identical flowchart node under any theme asking for more -- + the neo theme asks for 2. Nothing downstream corrected it: the neo rules set stroke + and filter, never stroke-width. */ + stroke-width: ${e.strokeWidth??1}px; + } + .flowchart-label text { + text-anchor: middle; + } + // .flowchart-label .text-outer-tspan { + // text-anchor: middle; + // } + // .flowchart-label .text-inner-tspan { + // text-anchor: start; + // } + + .node .label { + text-align: center; + } + .node.clickable { + cursor: pointer; + } + + .arrowheadPath { + fill: ${e.arrowheadColor}; + } + + .edgePaths .path { + stroke: ${e.lineColor}; + stroke-width: 2.0px; + } + + .flowchart-link { + stroke: ${e.lineColor}; + fill: none; + } + + .edgeLabel { + background-color: ${e.edgeLabelBackground}; + /* + * This is for backward compatibility with existing code that didn't + * add a \`

\` around edge labels. + * + * TODO: We should probably remove this in a future release. + */ + p { + margin: 0; + padding: 0; + display: inline; + } + rect { + opacity: 0.5; + background-color: ${e.edgeLabelBackground}; + fill: ${e.edgeLabelBackground}; + } + text-align: center; + } + + /* For html labels only */ + .labelBkg { + background-color: ${e.edgeLabelBackground}; + } + + .node .cluster { + // fill: ${ne(e.mainBkg,.5)}; + fill: ${ne(e.clusterBkg,.5)}; + stroke: ${ne(e.clusterBorder,.2)}; + box-shadow: rgba(50, 50, 93, 0.25) 0px 13px 27px -5px, rgba(0, 0, 0, 0.3) 0px 8px 16px -8px; + stroke-width: 1px; + } + + .cluster text { + fill: ${e.titleColor}; + } + + .cluster span { + color: ${e.titleColor}; + } + /* .cluster div { + color: ${e.titleColor}; + } */ + + div.mermaidTooltip { + position: absolute; + text-align: center; + max-width: 200px; + padding: 2px; + font-family: ${e.fontFamily}; + font-size: 12px; + background: ${e.tertiaryColor}; + border: 1px solid ${e.border2}; + border-radius: 2px; + pointer-events: none; + z-index: 100; + } + + .flowchartTitleText { + text-anchor: middle; + font-size: 18px; + fill: ${e.textColor}; + } + ${Pe()} +`,"getStyles"),It=Dt;function ce(e,o){if(e===0||!Number.isInteger(e))throw new Error("Columns must be an integer !== 0.");if(o<0||!Number.isInteger(o))throw new Error("Position must be a non-negative integer."+o);if(e<0)return{px:o,py:0};if(e===1)return{px:0,py:o};let l=o%e,a=Math.floor(o/e);return{px:l,py:a}}c(ce,"calculateBlockPosition");var Nt=c(e=>{let o=0,l=0;for(let a of e.children){let{width:h,height:p,x:t,y:u}=a.size??{width:0,height:0,x:0,y:0};if(m.debug("getMaxChildSize abc95 child:",a.id,"width:",h,"height:",p,"x:",t,"y:",u,a.type),a.type==="space")continue;let x=h/(a.widthInColumns??1);x>o&&(o=x),p>l&&(l=p)}return{width:o,height:l}},"getMaxChildSize");function q(e,o,l=0,a=0,h=8){m.debug("setBlockSizes abc95 (start)",e.id,e?.size?.x,"block width =",e?.size,"siblingWidth",l),e?.size?.width||(e.size={width:l,height:a,x:0,y:0});let p=0,t=0;if(e.children?.length>0){for(let S of e.children)q(S,o,0,0,h);let u=Nt(e);p=u.width,t=u.height,m.debug("setBlockSizes abc95 maxWidth of",e.id,":s children is ",p,t);for(let S of e.children)S.size&&(m.debug(`abc95 Setting size of children of ${e.id} id=${S.id} ${p} ${t} ${JSON.stringify(S.size)}`),S.size.width=p*(S.widthInColumns??1)+h*((S.widthInColumns??1)-1),S.size.height=t,S.size.x=0,S.size.y=0,m.debug(`abc95 updating size of ${e.id} children child:${S.id} maxWidth:${p} maxHeight:${t}`));for(let S of e.children)q(S,o,p,t,h);let x=e.columns??-1,k=0;for(let S of e.children)k+=S.widthInColumns??1;let b=e.children.length;x>0&&x0?Math.min(e.children.length,x):e.children.length;if(S>0){let _=(L-S*h-h)/S;m.debug("abc95 (growing to fit) width",e.id,L,e.size?.width,_);for(let w of e.children)w.size&&(w.size.width=_)}}e.size={width:L,height:E,x:0,y:0}}m.debug("setBlockSizes abc94 (done)",e.id,e?.size?.x,e?.size?.width,e?.size?.y,e?.size?.height)}c(q,"setBlockSizes");function de(e,o,l=8){m.debug(`abc85 layout blocks (=>layoutBlocks) ${e.id} x: ${e?.size?.x} y: ${e?.size?.y} width: ${e?.size?.width}`);let a=e.columns??-1;if(m.debug("layoutBlocks columns abc95",e.id,"=>",a,e),e.children&&e.children.length>0){let h=e?.children[0]?.size?.width??0,p=e.children.length*h+(e.children.length-1)*l;m.debug("widthOfChildren 88",p,"posX");let t=new Map;{let f=0;for(let L of e.children){if(!L.size)continue;let{py:E}=ce(a,f),S=t.get(E)??0;L.size.height>S&&t.set(E,L.size.height);let _=L?.widthInColumns??1;a>0&&(_=Math.min(_,a-f%a)),f+=_}}let u=new Map;{let f=0,L=[...t.keys()].sort((E,S)=>E-S);for(let E of L)u.set(E,f),f+=(t.get(E)??0)+l}let x=0;m.debug("abc91 block?.size?.x",e.id,e?.size?.x);let k=e?.size?.x?e?.size?.x+(-e?.size?.width/2||0):-l,b=0;for(let f of e.children){let L=e;if(!f.size)continue;let{width:E,height:S}=f.size,{px:_,py:w}=ce(a,x);if(w!=b&&(b=w,k=e?.size?.x?e?.size?.x+(-e?.size?.width/2||0):-l,m.debug("New row in layout for block",e.id," and child ",f.id,b)),m.debug(`abc89 layout blocks (child) id: ${f.id} Pos: ${x} (px, py) ${_},${w} (${L?.size?.x},${L?.size?.y}) parent: ${L.id} width: ${E}${l}`),L.size){let v=E/2;f.size.x=k+l+v,m.debug(`abc91 layout blocks (calc) px, pyid:${f.id} startingPos=X${k} new startingPosX${f.size.x} ${v} padding=${l} width=${E} halfWidth=${v} => x:${f.size.x} y:${f.size.y} ${f.widthInColumns} (width * (child?.w || 1)) / 2 ${E*(f?.widthInColumns??1)/2}`),k=f.size.x+v;let C=u.get(w)??0,g=t.get(w)??S;f.size.y=L.size.y-L.size.height/2+C+g/2+l,m.debug(`abc88 layout blocks (calc) px, pyid:${f.id}startingPosX${k}${l}${v}=>x:${f.size.x}y:${f.size.y}${f.widthInColumns}(width * (child?.w || 1)) / 2${E*(f?.widthInColumns??1)/2}`)}f.children&&de(f,o,l);let I=f?.widthInColumns??1;a>0&&(I=Math.min(I,a-x%a)),x+=I,m.debug("abc88 columnsPos",f,x)}}m.debug(`layout blocks (<==layoutBlocks) ${e.id} x: ${e?.size?.x} y: ${e?.size?.y} width: ${e?.size?.width}`)}c(de,"layoutBlocks");function pe(e,{minX:o,minY:l,maxX:a,maxY:h}={minX:0,minY:0,maxX:0,maxY:0}){if(e.size&&e.id!=="root"){let{x:p,y:t,width:u,height:x}=e.size;p-u/2a&&(a=p+u/2),t+x/2>h&&(h=t+x/2)}if(e.children)for(let p of e.children)({minX:o,minY:l,maxX:a,maxY:h}=pe(p,{minX:o,minY:l,maxX:a,maxY:h}));return{minX:o,minY:l,maxX:a,maxY:h}}c(pe,"findBounds");function Je(e){let o=e.getBlock("root");if(!o)return;let l=ie()?.block?.padding??8;q(o,e,0,0,l),de(o,e,l),m.debug("getBlocks",JSON.stringify(o,null,2));let{minX:a,minY:h,maxX:p,maxY:t}=pe(o),u=t-h,x=p-a;return{x:a,y:h,width:x,height:u}}c(Je,"layout");function fe(e,o,l=!1){let a=e,h="default";(a?.classes?.length||0)>0&&(h=(a?.classes??[]).join(" ")),h=h+" flowchart-label";let p=(a?.classes??[]).flatMap(S=>o.getClasses().get(S)?.styles??[]),t=0,u="rect",x;switch(a.type){case"round":t=5,u="rect";break;case"composite":t=0,u="composite",x=0;break;case"square":u="rect";break;case"diamond":u="question";break;case"hexagon":u="hexagon";break;case"block_arrow":u="block_arrow";break;case"odd":u="rect_left_inv_arrow";break;case"lean_right":u="lean_right";break;case"lean_left":u="lean_left";break;case"trapezoid":u="trapezoid";break;case"inv_trapezoid":u="inv_trapezoid";break;case"rect_left_inv_arrow":u="rect_left_inv_arrow";break;case"circle":u="circle";break;case"ellipse":u="ellipse";break;case"stadium":u="stadium";break;case"subroutine":u="subroutine";break;case"cylinder":u="cylinder";break;case"group":u="rect";break;case"doublecircle":u="doublecircle";break;default:u="rect"}let k=_e(a?.styles??[]),b=a.label,f=a.size??{width:0,height:0,x:0,y:0},L=o.getDiagramId();return{labelStyle:k.labelStyle,shape:u,label:b,labelText:b,rx:t,ry:t,class:h,cssClasses:h,cssStyles:a?.styles??[],cssCompiledStyles:p,style:k.style,id:a.id,domId:L?`${L}-${a.id}`:a.id,isGroup:!1,directions:a.directions,width:f.width||void 0,height:f.height||void 0,wrappingWidth:f.width||Number.POSITIVE_INFINITY,x:f.x,y:f.y,positioned:l,intersect:void 0,padding:x??R()?.block?.padding??0,widthInColumns:a.widthInColumns??1,colorIndex:a.colorIndex,look:R().look}}c(fe,"getNodeFromBlock");async function Ze(e,o,l){let a=fe(o,l,!1);if(o.type==="group")return;let h=R(),p=await ae(e,a,{config:h}),t=p.node()?.getBBox()??{width:0,height:0},u=l.getBlock(a.id);u.size={width:t.width,height:t.height,x:0,y:0,node:p},l.setBlock(u),p.remove()}c(Ze,"calculateBlockSize");async function Qe(e,o,l){let a=fe(o,l,!0);if(l.getBlock(a.id).type!=="space"){let p=R(),t=await ae(e,a,{config:p});a.colorIndex!==void 0&&ve(t,a.colorIndex,p.theme,p.themeVariables?.borderColorArray),o.intersect=a?.intersect,Ce(a)}}c(Qe,"insertBlockPositioned");async function J(e,o,l,a){for(let h of o)await a(e,h,l),h.children&&await J(e,h.children,l,a)}c(J,"performOperations");async function $e(e,o,l){await J(e,o,l,Ze)}c($e,"calculateBlockSizes");async function et(e,o,l){await J(e,o,l,Qe)}c(et,"insertBlocks");async function tt(e,o,l,a,h){let p=new Re({multigraph:!0,compound:!0});p.setGraph({rankdir:"TB",nodesep:10,ranksep:10,marginx:8,marginy:8});for(let t of l)t.size&&p.setNode(t.id,{width:t.size.width,height:t.size.height,intersect:t.intersect});for(let t of o)if(t.start&&t.end){let u=a.getBlock(t.start),x=a.getBlock(t.end);if(u?.size&&x?.size){let k=u.size,b=x.size,f=[{x:k.x,y:k.y},{x:k.x+(b.x-k.x)/2,y:k.y+(b.y-k.y)/2},{x:b.x,y:b.y}],L=h?`${h}-${t.id}`:t.id,E=t.thickness==="thick"?"edge-thickness-thick":"edge-thickness-normal",S=t.pattern==="dotted"?"edge-pattern-dotted":"edge-pattern-solid",_=`${E} ${S} flowchart-link LS-a1 LE-b1`;Be(e,{...t,id:L,arrowTypeEnd:t.arrowTypeEnd,arrowTypeStart:t.arrowTypeStart,points:f,classes:_},{},"block",p.node(t.start),p.node(t.end),h),t.label&&(await Oe(e,{...t,label:t.label,labelStyle:"stroke: #333; stroke-width: 1.5px;fill:none;",arrowTypeEnd:t.arrowTypeEnd,arrowTypeStart:t.arrowTypeStart,points:f,classes:_}),ze({...t,x:f[1].x,y:f[1].y},{originalPath:f}))}}}c(tt,"insertEdges");var Tt=c(function(e,o){return o.db.getClasses()},"getClasses"),vt=c(async function(e,o,l,a){let{securityLevel:h,block:p}=R(),t=a.db;t.setDiagramId(o);let u;h==="sandbox"&&(u=Y("#i"+o));let x=h==="sandbox"?Y(u.nodes()[0].contentDocument.body):Y("body"),k=h==="sandbox"?x.select(`[id="${o}"]`):Y(`[id="${o}"]`);Ee(k,R()),Ae(k,["point","circle","cross"],a.type,o);let f=t.getBlocks(),L=t.getBlocksFlat(),E=t.getEdges(),S=k.insert("g").attr("class","block");await $e(S,f,t);let _=Je(t);await et(S,f,t),await tt(S,E,L,t,o);let w=S.node()?.getBBox(),I=w&&Number.isFinite(w.width)&&Number.isFinite(w.height)?w:_;if(I){let v=Math.max(1,Math.round(.125*(I.width/I.height))),C=I.height+v+10,g=I.width+10,{useMaxWidth:s}=p;me(k,C,g,!!s),m.debug("Here Bounds",_,I),k.attr("viewBox",`${I.x-5} ${I.y-5} ${I.width+10} ${I.height+10}`)}},"draw"),Ct={draw:vt,getClasses:Tt},Jt={parser:it,db:wt,renderer:Ct,styles:It};export{Jt as diagram}; diff --git a/src/frontend/web/von_interface/static/vendor/conversation-visuals/c4Diagram-YGBWAQC7-S5OMHGDD.js b/src/frontend/web/von_interface/static/vendor/conversation-visuals/c4Diagram-YGBWAQC7-S5OMHGDD.js new file mode 100644 index 000000000..8edaafc7b --- /dev/null +++ b/src/frontend/web/von_interface/static/vendor/conversation-visuals/c4Diagram-YGBWAQC7-S5OMHGDD.js @@ -0,0 +1,38 @@ +import{a as Se}from"./chunk-L56KSVJM.js";import{d as ke,g as Ee}from"./chunk-TEBTVNCH.js";import"./chunk-HVVAQLXH.js";import"./chunk-IVPOI5SM.js";import"./chunk-O46DUOKR.js";import"./chunk-C7YISUMK.js";import"./chunk-6NDAIVIK.js";import{i as ve,j as ee,k as wt}from"./chunk-EUYVSIXP.js";import"./chunk-QSTT4QQC.js";import{$ as St,I as te,O as Yt,P as _e,V as be,W as me,X as ge,Y as xe,o as ye}from"./chunk-S4JILX6U.js";import{b as $t,h as Ft}from"./chunk-XEQL7KGA.js";import{a as d}from"./chunk-YUSHYV7C.js";import"./chunk-3RNHDNP5.js";var jt=(function(){var t=d(function(_t,m,x,k){for(x=x||{},k=_t.length;k--;x[_t[k]]=m);return x},"o"),e=[1,24],s=[1,25],a=[1,26],u=[1,27],i=[1,28],n=[1,63],l=[1,64],r=[1,65],h=[1,66],y=[1,67],p=[1,68],b=[1,69],v=[1,29],w=[1,30],N=[1,31],O=[1,32],P=[1,33],M=[1,34],X=[1,35],q=[1,36],H=[1,37],Q=[1,38],K=[1,39],G=[1,40],J=[1,41],Z=[1,42],$=[1,43],tt=[1,44],et=[1,45],nt=[1,46],rt=[1,47],st=[1,48],at=[1,50],it=[1,51],ot=[1,52],lt=[1,53],ct=[1,54],ut=[1,55],ht=[1,56],dt=[1,57],pt=[1,58],ft=[1,59],yt=[1,60],Ct=[14,42],Xt=[14,34,36,37,38,39,40,41,42,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],Ot=[12,14,34,36,37,38,39,40,41,42,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],E=[1,82],S=[1,83],T=[1,84],C=[1,85],R=[12,14,42],ce=[12,14,33,42],It=[12,14,33,42,76,77,79,80],xt=[12,33],qt=[34,36,37,38,39,40,41,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],Ht={trace:d(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mermaidDoc:4,direction:5,direction_tb:6,direction_bt:7,direction_rl:8,direction_lr:9,graphConfig:10,C4_CONTEXT:11,NEWLINE:12,statements:13,EOF:14,C4_CONTAINER:15,C4_COMPONENT:16,C4_DYNAMIC:17,C4_DEPLOYMENT:18,otherStatements:19,diagramStatements:20,otherStatement:21,title:22,accDescription:23,acc_title:24,acc_title_value:25,acc_descr:26,acc_descr_value:27,acc_descr_multiline_value:28,boundaryStatement:29,boundaryStartStatement:30,boundaryStopStatement:31,boundaryStart:32,LBRACE:33,ENTERPRISE_BOUNDARY:34,attributes:35,SYSTEM_BOUNDARY:36,BOUNDARY:37,CONTAINER_BOUNDARY:38,NODE:39,NODE_L:40,NODE_R:41,RBRACE:42,diagramStatement:43,PERSON:44,PERSON_EXT:45,SYSTEM:46,SYSTEM_DB:47,SYSTEM_QUEUE:48,SYSTEM_EXT:49,SYSTEM_EXT_DB:50,SYSTEM_EXT_QUEUE:51,CONTAINER:52,CONTAINER_DB:53,CONTAINER_QUEUE:54,CONTAINER_EXT:55,CONTAINER_EXT_DB:56,CONTAINER_EXT_QUEUE:57,COMPONENT:58,COMPONENT_DB:59,COMPONENT_QUEUE:60,COMPONENT_EXT:61,COMPONENT_EXT_DB:62,COMPONENT_EXT_QUEUE:63,REL:64,BIREL:65,REL_U:66,REL_D:67,REL_L:68,REL_R:69,REL_B:70,REL_INDEX:71,UPDATE_EL_STYLE:72,UPDATE_REL_STYLE:73,UPDATE_LAYOUT_CONFIG:74,attribute:75,STR:76,STR_KEY:77,STR_VALUE:78,ATTRIBUTE:79,ATTRIBUTE_EMPTY:80,$accept:0,$end:1},terminals_:{2:"error",6:"direction_tb",7:"direction_bt",8:"direction_rl",9:"direction_lr",11:"C4_CONTEXT",12:"NEWLINE",14:"EOF",15:"C4_CONTAINER",16:"C4_COMPONENT",17:"C4_DYNAMIC",18:"C4_DEPLOYMENT",22:"title",23:"accDescription",24:"acc_title",25:"acc_title_value",26:"acc_descr",27:"acc_descr_value",28:"acc_descr_multiline_value",33:"LBRACE",34:"ENTERPRISE_BOUNDARY",36:"SYSTEM_BOUNDARY",37:"BOUNDARY",38:"CONTAINER_BOUNDARY",39:"NODE",40:"NODE_L",41:"NODE_R",42:"RBRACE",44:"PERSON",45:"PERSON_EXT",46:"SYSTEM",47:"SYSTEM_DB",48:"SYSTEM_QUEUE",49:"SYSTEM_EXT",50:"SYSTEM_EXT_DB",51:"SYSTEM_EXT_QUEUE",52:"CONTAINER",53:"CONTAINER_DB",54:"CONTAINER_QUEUE",55:"CONTAINER_EXT",56:"CONTAINER_EXT_DB",57:"CONTAINER_EXT_QUEUE",58:"COMPONENT",59:"COMPONENT_DB",60:"COMPONENT_QUEUE",61:"COMPONENT_EXT",62:"COMPONENT_EXT_DB",63:"COMPONENT_EXT_QUEUE",64:"REL",65:"BIREL",66:"REL_U",67:"REL_D",68:"REL_L",69:"REL_R",70:"REL_B",71:"REL_INDEX",72:"UPDATE_EL_STYLE",73:"UPDATE_REL_STYLE",74:"UPDATE_LAYOUT_CONFIG",76:"STR",77:"STR_KEY",78:"STR_VALUE",79:"ATTRIBUTE",80:"ATTRIBUTE_EMPTY"},productions_:[0,[3,1],[3,1],[5,1],[5,1],[5,1],[5,1],[4,1],[10,4],[10,4],[10,4],[10,4],[10,4],[13,1],[13,1],[13,2],[19,1],[19,2],[19,3],[21,1],[21,1],[21,2],[21,2],[21,1],[29,3],[30,3],[30,3],[30,4],[32,2],[32,2],[32,2],[32,2],[32,2],[32,2],[32,2],[31,1],[20,1],[20,2],[20,3],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,1],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[35,1],[35,2],[75,1],[75,2],[75,1],[75,1]],performAction:d(function(m,x,k,_,D,o,Pt){var f=o.length-1;switch(D){case 3:_.setDirection("TB");break;case 4:_.setDirection("BT");break;case 5:_.setDirection("RL");break;case 6:_.setDirection("LR");break;case 8:case 9:case 10:case 11:case 12:_.setC4Type(o[f-3]);break;case 19:_.setTitle(o[f].substring(6)),this.$=o[f].substring(6);break;case 20:_.setAccDescription(o[f].substring(15)),this.$=o[f].substring(15);break;case 21:this.$=o[f].trim(),_.setTitle(this.$);break;case 22:case 23:this.$=o[f].trim(),_.setAccDescription(this.$);break;case 28:o[f].splice(2,0,"ENTERPRISE"),_.addPersonOrSystemBoundary(...o[f]),this.$=o[f];break;case 29:o[f].splice(2,0,"SYSTEM"),_.addPersonOrSystemBoundary(...o[f]),this.$=o[f];break;case 30:_.addPersonOrSystemBoundary(...o[f]),this.$=o[f];break;case 31:o[f].splice(2,0,"CONTAINER"),_.addContainerBoundary(...o[f]),this.$=o[f];break;case 32:_.addDeploymentNode("node",...o[f]),this.$=o[f];break;case 33:_.addDeploymentNode("nodeL",...o[f]),this.$=o[f];break;case 34:_.addDeploymentNode("nodeR",...o[f]),this.$=o[f];break;case 35:_.popBoundaryParseStack();break;case 39:_.addPersonOrSystem("person",...o[f]),this.$=o[f];break;case 40:_.addPersonOrSystem("external_person",...o[f]),this.$=o[f];break;case 41:_.addPersonOrSystem("system",...o[f]),this.$=o[f];break;case 42:_.addPersonOrSystem("system_db",...o[f]),this.$=o[f];break;case 43:_.addPersonOrSystem("system_queue",...o[f]),this.$=o[f];break;case 44:_.addPersonOrSystem("external_system",...o[f]),this.$=o[f];break;case 45:_.addPersonOrSystem("external_system_db",...o[f]),this.$=o[f];break;case 46:_.addPersonOrSystem("external_system_queue",...o[f]),this.$=o[f];break;case 47:_.addContainer("container",...o[f]),this.$=o[f];break;case 48:_.addContainer("container_db",...o[f]),this.$=o[f];break;case 49:_.addContainer("container_queue",...o[f]),this.$=o[f];break;case 50:_.addContainer("external_container",...o[f]),this.$=o[f];break;case 51:_.addContainer("external_container_db",...o[f]),this.$=o[f];break;case 52:_.addContainer("external_container_queue",...o[f]),this.$=o[f];break;case 53:_.addComponent("component",...o[f]),this.$=o[f];break;case 54:_.addComponent("component_db",...o[f]),this.$=o[f];break;case 55:_.addComponent("component_queue",...o[f]),this.$=o[f];break;case 56:_.addComponent("external_component",...o[f]),this.$=o[f];break;case 57:_.addComponent("external_component_db",...o[f]),this.$=o[f];break;case 58:_.addComponent("external_component_queue",...o[f]),this.$=o[f];break;case 60:_.addRel("rel",...o[f]),this.$=o[f];break;case 61:_.addRel("birel",...o[f]),this.$=o[f];break;case 62:_.addRel("rel_u",...o[f]),this.$=o[f];break;case 63:_.addRel("rel_d",...o[f]),this.$=o[f];break;case 64:_.addRel("rel_l",...o[f]),this.$=o[f];break;case 65:_.addRel("rel_r",...o[f]),this.$=o[f];break;case 66:_.addRel("rel_b",...o[f]),this.$=o[f];break;case 67:o[f].splice(0,1),_.addRel("rel",...o[f]),this.$=o[f];break;case 68:_.updateElStyle("update_el_style",...o[f]),this.$=o[f];break;case 69:_.updateRelStyle("update_rel_style",...o[f]),this.$=o[f];break;case 70:_.updateLayoutConfig("update_layout_config",...o[f]),this.$=o[f];break;case 71:this.$=[o[f]];break;case 72:o[f].unshift(o[f-1]),this.$=o[f];break;case 73:case 75:this.$=o[f].trim();break;case 74:let vt={};vt[o[f-1].trim()]=o[f].trim(),this.$=vt;break;case 76:this.$="";break}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],7:[1,6],8:[1,7],9:[1,8],10:4,11:[1,9],15:[1,10],16:[1,11],17:[1,12],18:[1,13]},{1:[3]},{1:[2,1]},{1:[2,2]},{1:[2,7]},{1:[2,3]},{1:[2,4]},{1:[2,5]},{1:[2,6]},{12:[1,14]},{12:[1,15]},{12:[1,16]},{12:[1,17]},{12:[1,18]},{13:19,19:20,20:21,21:22,22:e,23:s,24:a,26:u,28:i,29:49,30:61,32:62,34:n,36:l,37:r,38:h,39:y,40:p,41:b,43:23,44:v,45:w,46:N,47:O,48:P,49:M,50:X,51:q,52:H,53:Q,54:K,55:G,56:J,57:Z,58:$,59:tt,60:et,61:nt,62:rt,63:st,64:at,65:it,66:ot,67:lt,68:ct,69:ut,70:ht,71:dt,72:pt,73:ft,74:yt},{13:70,19:20,20:21,21:22,22:e,23:s,24:a,26:u,28:i,29:49,30:61,32:62,34:n,36:l,37:r,38:h,39:y,40:p,41:b,43:23,44:v,45:w,46:N,47:O,48:P,49:M,50:X,51:q,52:H,53:Q,54:K,55:G,56:J,57:Z,58:$,59:tt,60:et,61:nt,62:rt,63:st,64:at,65:it,66:ot,67:lt,68:ct,69:ut,70:ht,71:dt,72:pt,73:ft,74:yt},{13:71,19:20,20:21,21:22,22:e,23:s,24:a,26:u,28:i,29:49,30:61,32:62,34:n,36:l,37:r,38:h,39:y,40:p,41:b,43:23,44:v,45:w,46:N,47:O,48:P,49:M,50:X,51:q,52:H,53:Q,54:K,55:G,56:J,57:Z,58:$,59:tt,60:et,61:nt,62:rt,63:st,64:at,65:it,66:ot,67:lt,68:ct,69:ut,70:ht,71:dt,72:pt,73:ft,74:yt},{13:72,19:20,20:21,21:22,22:e,23:s,24:a,26:u,28:i,29:49,30:61,32:62,34:n,36:l,37:r,38:h,39:y,40:p,41:b,43:23,44:v,45:w,46:N,47:O,48:P,49:M,50:X,51:q,52:H,53:Q,54:K,55:G,56:J,57:Z,58:$,59:tt,60:et,61:nt,62:rt,63:st,64:at,65:it,66:ot,67:lt,68:ct,69:ut,70:ht,71:dt,72:pt,73:ft,74:yt},{13:73,19:20,20:21,21:22,22:e,23:s,24:a,26:u,28:i,29:49,30:61,32:62,34:n,36:l,37:r,38:h,39:y,40:p,41:b,43:23,44:v,45:w,46:N,47:O,48:P,49:M,50:X,51:q,52:H,53:Q,54:K,55:G,56:J,57:Z,58:$,59:tt,60:et,61:nt,62:rt,63:st,64:at,65:it,66:ot,67:lt,68:ct,69:ut,70:ht,71:dt,72:pt,73:ft,74:yt},{14:[1,74]},t(Ct,[2,13],{43:23,29:49,30:61,32:62,20:75,34:n,36:l,37:r,38:h,39:y,40:p,41:b,44:v,45:w,46:N,47:O,48:P,49:M,50:X,51:q,52:H,53:Q,54:K,55:G,56:J,57:Z,58:$,59:tt,60:et,61:nt,62:rt,63:st,64:at,65:it,66:ot,67:lt,68:ct,69:ut,70:ht,71:dt,72:pt,73:ft,74:yt}),t(Ct,[2,14]),t(Xt,[2,16],{12:[1,76]}),t(Ct,[2,36],{12:[1,77]}),t(Ot,[2,19]),t(Ot,[2,20]),{25:[1,78]},{27:[1,79]},t(Ot,[2,23]),{35:80,75:81,76:E,77:S,79:T,80:C},{35:86,75:81,76:E,77:S,79:T,80:C},{35:87,75:81,76:E,77:S,79:T,80:C},{35:88,75:81,76:E,77:S,79:T,80:C},{35:89,75:81,76:E,77:S,79:T,80:C},{35:90,75:81,76:E,77:S,79:T,80:C},{35:91,75:81,76:E,77:S,79:T,80:C},{35:92,75:81,76:E,77:S,79:T,80:C},{35:93,75:81,76:E,77:S,79:T,80:C},{35:94,75:81,76:E,77:S,79:T,80:C},{35:95,75:81,76:E,77:S,79:T,80:C},{35:96,75:81,76:E,77:S,79:T,80:C},{35:97,75:81,76:E,77:S,79:T,80:C},{35:98,75:81,76:E,77:S,79:T,80:C},{35:99,75:81,76:E,77:S,79:T,80:C},{35:100,75:81,76:E,77:S,79:T,80:C},{35:101,75:81,76:E,77:S,79:T,80:C},{35:102,75:81,76:E,77:S,79:T,80:C},{35:103,75:81,76:E,77:S,79:T,80:C},{35:104,75:81,76:E,77:S,79:T,80:C},t(R,[2,59]),{35:105,75:81,76:E,77:S,79:T,80:C},{35:106,75:81,76:E,77:S,79:T,80:C},{35:107,75:81,76:E,77:S,79:T,80:C},{35:108,75:81,76:E,77:S,79:T,80:C},{35:109,75:81,76:E,77:S,79:T,80:C},{35:110,75:81,76:E,77:S,79:T,80:C},{35:111,75:81,76:E,77:S,79:T,80:C},{35:112,75:81,76:E,77:S,79:T,80:C},{35:113,75:81,76:E,77:S,79:T,80:C},{35:114,75:81,76:E,77:S,79:T,80:C},{35:115,75:81,76:E,77:S,79:T,80:C},{20:116,29:49,30:61,32:62,34:n,36:l,37:r,38:h,39:y,40:p,41:b,43:23,44:v,45:w,46:N,47:O,48:P,49:M,50:X,51:q,52:H,53:Q,54:K,55:G,56:J,57:Z,58:$,59:tt,60:et,61:nt,62:rt,63:st,64:at,65:it,66:ot,67:lt,68:ct,69:ut,70:ht,71:dt,72:pt,73:ft,74:yt},{12:[1,118],33:[1,117]},{35:119,75:81,76:E,77:S,79:T,80:C},{35:120,75:81,76:E,77:S,79:T,80:C},{35:121,75:81,76:E,77:S,79:T,80:C},{35:122,75:81,76:E,77:S,79:T,80:C},{35:123,75:81,76:E,77:S,79:T,80:C},{35:124,75:81,76:E,77:S,79:T,80:C},{35:125,75:81,76:E,77:S,79:T,80:C},{14:[1,126]},{14:[1,127]},{14:[1,128]},{14:[1,129]},{1:[2,8]},t(Ct,[2,15]),t(Xt,[2,17],{21:22,19:130,22:e,23:s,24:a,26:u,28:i}),t(Ct,[2,37],{19:20,20:21,21:22,43:23,29:49,30:61,32:62,13:131,22:e,23:s,24:a,26:u,28:i,34:n,36:l,37:r,38:h,39:y,40:p,41:b,44:v,45:w,46:N,47:O,48:P,49:M,50:X,51:q,52:H,53:Q,54:K,55:G,56:J,57:Z,58:$,59:tt,60:et,61:nt,62:rt,63:st,64:at,65:it,66:ot,67:lt,68:ct,69:ut,70:ht,71:dt,72:pt,73:ft,74:yt}),t(Ot,[2,21]),t(Ot,[2,22]),t(R,[2,39]),t(ce,[2,71],{75:81,35:132,76:E,77:S,79:T,80:C}),t(It,[2,73]),{78:[1,133]},t(It,[2,75]),t(It,[2,76]),t(R,[2,40]),t(R,[2,41]),t(R,[2,42]),t(R,[2,43]),t(R,[2,44]),t(R,[2,45]),t(R,[2,46]),t(R,[2,47]),t(R,[2,48]),t(R,[2,49]),t(R,[2,50]),t(R,[2,51]),t(R,[2,52]),t(R,[2,53]),t(R,[2,54]),t(R,[2,55]),t(R,[2,56]),t(R,[2,57]),t(R,[2,58]),t(R,[2,60]),t(R,[2,61]),t(R,[2,62]),t(R,[2,63]),t(R,[2,64]),t(R,[2,65]),t(R,[2,66]),t(R,[2,67]),t(R,[2,68]),t(R,[2,69]),t(R,[2,70]),{31:134,42:[1,135]},{12:[1,136]},{33:[1,137]},t(xt,[2,28]),t(xt,[2,29]),t(xt,[2,30]),t(xt,[2,31]),t(xt,[2,32]),t(xt,[2,33]),t(xt,[2,34]),{1:[2,9]},{1:[2,10]},{1:[2,11]},{1:[2,12]},t(Xt,[2,18]),t(Ct,[2,38]),t(ce,[2,72]),t(It,[2,74]),t(R,[2,24]),t(R,[2,35]),t(qt,[2,25]),t(qt,[2,26],{12:[1,138]}),t(qt,[2,27])],defaultActions:{2:[2,1],3:[2,2],4:[2,7],5:[2,3],6:[2,4],7:[2,5],8:[2,6],74:[2,8],126:[2,9],127:[2,10],128:[2,11],129:[2,12]},parseError:d(function(m,x){if(x.recoverable)this.trace(m);else{var k=new Error(m);throw k.hash=x,k}},"parseError"),parse:d(function(m){var x=this,k=[0],_=[],D=[null],o=[],Pt=this.table,f="",vt=0,ue=0,he=0,Ue=2,de=1,je=o.slice.call(arguments,1),A=Object.create(this.lexer),kt={yy:{}};for(var Qt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Qt)&&(kt.yy[Qt]=this.yy[Qt]);A.setInput(m,kt.yy),kt.yy.lexer=A,kt.yy.parser=this,typeof A.yylloc>"u"&&(A.yylloc={});var Kt=A.yylloc;o.push(Kt);var ze=A.options&&A.options.ranges;typeof kt.yy.parseError=="function"?this.parseError=kt.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function We(B){k.length=k.length-2*B,D.length=D.length-B,o.length=o.length-B}d(We,"popStack");function pe(){var B;return B=_.pop()||A.lex()||de,typeof B!="number"&&(B instanceof Array&&(_=B,B=_.pop()),B=x.symbols_[B]||B),B}d(pe,"lex");for(var L,Gt,Et,V,Q0,Jt,Rt={},Bt,z,fe,Vt;;){if(Et=k[k.length-1],this.defaultActions[Et]?V=this.defaultActions[Et]:((L===null||typeof L>"u")&&(L=pe()),V=Pt[Et]&&Pt[Et][L]),typeof V>"u"||!V.length||!V[0]){var Zt="";Vt=[];for(Bt in Pt[Et])this.terminals_[Bt]&&Bt>Ue&&Vt.push("'"+this.terminals_[Bt]+"'");A.showPosition?Zt="Parse error on line "+(vt+1)+`: +`+A.showPosition()+` +Expecting `+Vt.join(", ")+", got '"+(this.terminals_[L]||L)+"'":Zt="Parse error on line "+(vt+1)+": Unexpected "+(L==de?"end of input":"'"+(this.terminals_[L]||L)+"'"),this.parseError(Zt,{text:A.match,token:this.terminals_[L]||L,line:A.yylineno,loc:Kt,expected:Vt})}if(V[0]instanceof Array&&V.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Et+", token: "+L);switch(V[0]){case 1:k.push(L),D.push(A.yytext),o.push(A.yylloc),k.push(V[1]),L=null,Gt?(L=Gt,Gt=null):(ue=A.yyleng,f=A.yytext,vt=A.yylineno,Kt=A.yylloc,he>0&&he--);break;case 2:if(z=this.productions_[V[1]][1],Rt.$=D[D.length-z],Rt._$={first_line:o[o.length-(z||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(z||1)].first_column,last_column:o[o.length-1].last_column},ze&&(Rt._$.range=[o[o.length-(z||1)].range[0],o[o.length-1].range[1]]),Jt=this.performAction.apply(Rt,[f,ue,vt,kt.yy,V[1],D,o].concat(je)),typeof Jt<"u")return Jt;z&&(k=k.slice(0,-1*z*2),D=D.slice(0,-1*z),o=o.slice(0,-1*z)),k.push(this.productions_[V[1]][0]),D.push(Rt.$),o.push(Rt._$),fe=Pt[k[k.length-2]][k[k.length-1]],k.push(fe);break;case 3:return!0}}return!0},"parse")},Fe=(function(){var _t={EOF:1,parseError:d(function(x,k){if(this.yy.parser)this.yy.parser.parseError(x,k);else throw new Error(x)},"parseError"),setInput:d(function(m,x){return this.yy=x||this.yy||{},this._input=m,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:d(function(){var m=this._input[0];this.yytext+=m,this.yyleng++,this.offset++,this.match+=m,this.matched+=m;var x=m.match(/(?:\r\n?|\n).*/g);return x?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),m},"input"),unput:d(function(m){var x=m.length,k=m.split(/(?:\r\n?|\n)/g);this._input=m+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-x),this.offset-=x;var _=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),k.length-1&&(this.yylineno-=k.length-1);var D=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:k?(k.length===_.length?this.yylloc.first_column:0)+_[_.length-k.length].length-k[0].length:this.yylloc.first_column-x},this.options.ranges&&(this.yylloc.range=[D[0],D[0]+this.yyleng-x]),this.yyleng=this.yytext.length,this},"unput"),more:d(function(){return this._more=!0,this},"more"),reject:d(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). +`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:d(function(m){this.unput(this.match.slice(m))},"less"),pastInput:d(function(){var m=this.matched.substr(0,this.matched.length-this.match.length);return(m.length>20?"...":"")+m.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:d(function(){var m=this.match;return m.length<20&&(m+=this._input.substr(0,20-m.length)),(m.substr(0,20)+(m.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:d(function(){var m=this.pastInput(),x=new Array(m.length+1).join("-");return m+this.upcomingInput()+` +`+x+"^"},"showPosition"),test_match:d(function(m,x){var k,_,D;if(this.options.backtrack_lexer&&(D={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&&(D.yylloc.range=this.yylloc.range.slice(0))),_=m[0].match(/(?:\r\n?|\n).*/g),_&&(this.yylineno+=_.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:_?_[_.length-1].length-_[_.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+m[0].length},this.yytext+=m[0],this.match+=m[0],this.matches=m,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(m[0].length),this.matched+=m[0],k=this.performAction.call(this,this.yy,this,x,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),k)return k;if(this._backtrack){for(var o in D)this[o]=D[o];return!1}return!1},"test_match"),next:d(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var m,x,k,_;this._more||(this.yytext="",this.match="");for(var D=this._currentRules(),o=0;ox[0].length)){if(x=k,_=o,this.options.backtrack_lexer){if(m=this.test_match(k,D[o]),m!==!1)return m;if(this._backtrack){x=!1;continue}else return!1}else if(!this.options.flex)break}return x?(m=this.test_match(x,D[_]),m!==!1?m:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text. +`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:d(function(){var x=this.next();return x||this.lex()},"lex"),begin:d(function(x){this.conditionStack.push(x)},"begin"),popState:d(function(){var x=this.conditionStack.length-1;return x>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:d(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:d(function(x){return x=this.conditionStack.length-1-Math.abs(x||0),x>=0?this.conditionStack[x]:"INITIAL"},"topState"),pushState:d(function(x){this.begin(x)},"pushState"),stateStackSize:d(function(){return this.conditionStack.length},"stateStackSize"),options:{},performAction:d(function(x,k,_,D){var o=D;switch(_){case 0:return 6;case 1:return 7;case 2:return 8;case 3:return 9;case 4:return 22;case 5:return 23;case 6:return this.begin("acc_title"),24;break;case 7:return this.popState(),"acc_title_value";break;case 8:return this.begin("acc_descr"),26;break;case 9:return this.popState(),"acc_descr_value";break;case 10:this.begin("acc_descr_multiline");break;case 11:this.popState();break;case 12:return"acc_descr_multiline_value";case 13:break;case 14:c;break;case 15:return 12;case 16:break;case 17:return 11;case 18:return 15;case 19:return 16;case 20:return 17;case 21:return 18;case 22:return this.begin("person_ext"),45;break;case 23:return this.begin("person"),44;break;case 24:return this.begin("system_ext_queue"),51;break;case 25:return this.begin("system_ext_db"),50;break;case 26:return this.begin("system_ext"),49;break;case 27:return this.begin("system_queue"),48;break;case 28:return this.begin("system_db"),47;break;case 29:return this.begin("system"),46;break;case 30:return this.begin("boundary"),37;break;case 31:return this.begin("enterprise_boundary"),34;break;case 32:return this.begin("system_boundary"),36;break;case 33:return this.begin("container_ext_queue"),57;break;case 34:return this.begin("container_ext_db"),56;break;case 35:return this.begin("container_ext"),55;break;case 36:return this.begin("container_queue"),54;break;case 37:return this.begin("container_db"),53;break;case 38:return this.begin("container"),52;break;case 39:return this.begin("container_boundary"),38;break;case 40:return this.begin("component_ext_queue"),63;break;case 41:return this.begin("component_ext_db"),62;break;case 42:return this.begin("component_ext"),61;break;case 43:return this.begin("component_queue"),60;break;case 44:return this.begin("component_db"),59;break;case 45:return this.begin("component"),58;break;case 46:return this.begin("node"),39;break;case 47:return this.begin("node"),39;break;case 48:return this.begin("node_l"),40;break;case 49:return this.begin("node_r"),41;break;case 50:return this.begin("rel"),64;break;case 51:return this.begin("birel"),65;break;case 52:return this.begin("rel_u"),66;break;case 53:return this.begin("rel_u"),66;break;case 54:return this.begin("rel_d"),67;break;case 55:return this.begin("rel_d"),67;break;case 56:return this.begin("rel_l"),68;break;case 57:return this.begin("rel_l"),68;break;case 58:return this.begin("rel_r"),69;break;case 59:return this.begin("rel_r"),69;break;case 60:return this.begin("rel_b"),70;break;case 61:return this.begin("rel_index"),71;break;case 62:return this.begin("update_el_style"),72;break;case 63:return this.begin("update_rel_style"),73;break;case 64:return this.begin("update_layout_config"),74;break;case 65:return"EOF_IN_STRUCT";case 66:return this.begin("attribute"),"ATTRIBUTE_EMPTY";break;case 67:this.begin("attribute");break;case 68:this.popState(),this.popState();break;case 69:return 80;case 70:break;case 71:return 80;case 72:this.begin("string");break;case 73:this.popState();break;case 74:return"STR";case 75:this.begin("string_kv");break;case 76:return this.begin("string_kv_key"),"STR_KEY";break;case 77:this.popState(),this.begin("string_kv_value");break;case 78:return"STR_VALUE";case 79:this.popState(),this.popState();break;case 80:return"STR";case 81:return"LBRACE";case 82:return"RBRACE";case 83:return"SPACE";case 84:return"EOL";case 85:return 14}},"anonymous"),rules:[/^(?:.*direction\s+TB[^\n]*)/,/^(?:.*direction\s+BT[^\n]*)/,/^(?:.*direction\s+RL[^\n]*)/,/^(?:.*direction\s+LR[^\n]*)/,/^(?:title\s[^#\n;]+)/,/^(?:accDescription\s[^#\n;]+)/,/^(?:accTitle\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*\{\s*)/,/^(?:[\}])/,/^(?:[^\}]*)/,/^(?:%%(?!\{)*[^\n]*(\r?\n?)+)/,/^(?:%%[^\n]*(\r?\n)*)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:C4Context\b)/,/^(?:C4Container\b)/,/^(?:C4Component\b)/,/^(?:C4Dynamic\b)/,/^(?:C4Deployment\b)/,/^(?:Person_Ext\b)/,/^(?:Person\b)/,/^(?:SystemQueue_Ext\b)/,/^(?:SystemDb_Ext\b)/,/^(?:System_Ext\b)/,/^(?:SystemQueue\b)/,/^(?:SystemDb\b)/,/^(?:System\b)/,/^(?:Boundary\b)/,/^(?:Enterprise_Boundary\b)/,/^(?:System_Boundary\b)/,/^(?:ContainerQueue_Ext\b)/,/^(?:ContainerDb_Ext\b)/,/^(?:Container_Ext\b)/,/^(?:ContainerQueue\b)/,/^(?:ContainerDb\b)/,/^(?:Container\b)/,/^(?:Container_Boundary\b)/,/^(?:ComponentQueue_Ext\b)/,/^(?:ComponentDb_Ext\b)/,/^(?:Component_Ext\b)/,/^(?:ComponentQueue\b)/,/^(?:ComponentDb\b)/,/^(?:Component\b)/,/^(?:Deployment_Node\b)/,/^(?:Node\b)/,/^(?:Node_L\b)/,/^(?:Node_R\b)/,/^(?:Rel\b)/,/^(?:BiRel\b)/,/^(?:Rel_Up\b)/,/^(?:Rel_U\b)/,/^(?:Rel_Down\b)/,/^(?:Rel_D\b)/,/^(?:Rel_Left\b)/,/^(?:Rel_L\b)/,/^(?:Rel_Right\b)/,/^(?:Rel_R\b)/,/^(?:Rel_Back\b)/,/^(?:RelIndex\b)/,/^(?:UpdateElementStyle\b)/,/^(?:UpdateRelStyle\b)/,/^(?:UpdateLayoutConfig\b)/,/^(?:$)/,/^(?:[(][ ]*[,])/,/^(?:[(])/,/^(?:[)])/,/^(?:,,)/,/^(?:,)/,/^(?:[ ]*["]["])/,/^(?:[ ]*["])/,/^(?:["])/,/^(?:[^"]*)/,/^(?:[ ]*[\$])/,/^(?:[^=]*)/,/^(?:[=][ ]*["])/,/^(?:[^"]+)/,/^(?:["])/,/^(?:[^,]+)/,/^(?:\{)/,/^(?:\})/,/^(?:[\s]+)/,/^(?:[\n\r]+)/,/^(?:$)/],conditions:{acc_descr_multiline:{rules:[11,12],inclusive:!1},acc_descr:{rules:[9],inclusive:!1},acc_title:{rules:[7],inclusive:!1},string_kv_value:{rules:[78,79],inclusive:!1},string_kv_key:{rules:[77],inclusive:!1},string_kv:{rules:[76],inclusive:!1},string:{rules:[73,74],inclusive:!1},attribute:{rules:[68,69,70,71,72,75,80],inclusive:!1},update_layout_config:{rules:[65,66,67,68],inclusive:!1},update_rel_style:{rules:[65,66,67,68],inclusive:!1},update_el_style:{rules:[65,66,67,68],inclusive:!1},rel_b:{rules:[65,66,67,68],inclusive:!1},rel_r:{rules:[65,66,67,68],inclusive:!1},rel_l:{rules:[65,66,67,68],inclusive:!1},rel_d:{rules:[65,66,67,68],inclusive:!1},rel_u:{rules:[65,66,67,68],inclusive:!1},rel_bi:{rules:[],inclusive:!1},rel:{rules:[65,66,67,68],inclusive:!1},node_r:{rules:[65,66,67,68],inclusive:!1},node_l:{rules:[65,66,67,68],inclusive:!1},node:{rules:[65,66,67,68],inclusive:!1},index:{rules:[],inclusive:!1},rel_index:{rules:[65,66,67,68],inclusive:!1},component_ext_queue:{rules:[65,66,67,68],inclusive:!1},component_ext_db:{rules:[65,66,67,68],inclusive:!1},component_ext:{rules:[65,66,67,68],inclusive:!1},component_queue:{rules:[65,66,67,68],inclusive:!1},component_db:{rules:[65,66,67,68],inclusive:!1},component:{rules:[65,66,67,68],inclusive:!1},container_boundary:{rules:[65,66,67,68],inclusive:!1},container_ext_queue:{rules:[65,66,67,68],inclusive:!1},container_ext_db:{rules:[65,66,67,68],inclusive:!1},container_ext:{rules:[65,66,67,68],inclusive:!1},container_queue:{rules:[65,66,67,68],inclusive:!1},container_db:{rules:[65,66,67,68],inclusive:!1},container:{rules:[65,66,67,68],inclusive:!1},birel:{rules:[65,66,67,68],inclusive:!1},system_boundary:{rules:[65,66,67,68],inclusive:!1},enterprise_boundary:{rules:[65,66,67,68],inclusive:!1},boundary:{rules:[65,66,67,68],inclusive:!1},system_ext_queue:{rules:[65,66,67,68],inclusive:!1},system_ext_db:{rules:[65,66,67,68],inclusive:!1},system_ext:{rules:[65,66,67,68],inclusive:!1},system_queue:{rules:[65,66,67,68],inclusive:!1},system_db:{rules:[65,66,67,68],inclusive:!1},system:{rules:[65,66,67,68],inclusive:!1},person_ext:{rules:[65,66,67,68],inclusive:!1},person:{rules:[65,66,67,68],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,8,10,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,81,82,83,84,85],inclusive:!0}}};return _t})();Ht.lexer=Fe;function Mt(){this.yy={}}return d(Mt,"Parser"),Mt.prototype=Ht,Ht.Parser=Mt,new Mt})();jt.parser=jt;var Xe=jt,Oe=d(t=>St()[t],"getRequiredConfig"),Y=new Set(["label","descr","techn","type"]),Tt=d((t,e)=>{for(let[s,a]of Object.entries(e))if(a!==void 0)if(typeof a=="object"){let[u,i]=Object.entries(a)[0];t[u]=Y.has(u)?{text:i}:i}else t[s]=a},"assignAttributes"),Pe=d(()=>({alias:"global",label:{text:"global"},type:{text:"global"},tags:null,link:null,parentBoundary:""}),"createGlobalBoundary"),U=[],bt=[""],I="global",F="",j=[Pe()],Lt=[],ie="",oe=!1,zt=4,Wt=2,De,qe=d(function(){return De},"getC4Type"),He=d(function(t){De=te(t,St())},"setC4Type"),Qe=d(function(t,e,s,a,u,i,n,l,r){if(t==null||e===void 0||e===null||s===void 0||s===null||a===void 0||a===null)return;let h={},y=Lt.find(p=>p.from===e&&p.to===s);if(y?h=y:Lt.push(h),h.type=t,h.from=e,h.to=s,h.label={text:a},u==null)h.techn??={text:""};else if(typeof u=="object"){let[p,b]=Object.entries(u)[0];h[p]=Y.has(p)?{text:b}:b}else h.techn={text:u};if(i==null)h.descr??={text:""};else if(typeof i=="object"){let[p,b]=Object.entries(i)[0];h[p]=Y.has(p)?{text:b}:b}else h.descr={text:i};Tt(h,{sprite:n,tags:l,link:r}),h.wrap=gt()},"addRel"),Ke=d(function(t,e,s,a,u,i,n){if(e===null||s===null)return;let l={},r=U.find(h=>h.alias===e);if(r&&e===r.alias?l=r:(l.alias=e,U.push(l)),s==null?l.label={text:""}:l.label={text:s},a==null)l.descr??={text:""};else if(typeof a=="object"){let[h,y]=Object.entries(a)[0];l[h]=Y.has(h)?{text:y}:y}else l.descr={text:a};Tt(l,{sprite:u,tags:i,link:n}),l.typeC4Shape={text:t},l.parentBoundary=I,l.wrap=gt()},"addPersonOrSystem"),Ge=d(function(t,e,s,a,u,i,n,l){if(e===null||s===null)return;let r={},h=U.find(y=>y.alias===e);if(h&&e===h.alias?r=h:(r.alias=e,U.push(r)),s==null?r.label={text:""}:r.label={text:s},a==null)r.techn??={text:""};else if(typeof a=="object"){let[y,p]=Object.entries(a)[0];r[y]=Y.has(y)?{text:p}:p}else r.techn={text:a};if(u==null)r.descr??={text:""};else if(typeof u=="object"){let[y,p]=Object.entries(u)[0];r[y]=Y.has(y)?{text:p}:p}else r.descr={text:u};Tt(r,{sprite:i,tags:n,link:l}),r.wrap=gt(),r.typeC4Shape={text:t},r.parentBoundary=I},"addContainer"),Je=d(function(t,e,s,a,u,i,n,l){if(e===null||s===null)return;let r={},h=U.find(y=>y.alias===e);if(h&&e===h.alias?r=h:(r.alias=e,U.push(r)),s==null?r.label={text:""}:r.label={text:s},a==null)r.techn??={text:""};else if(typeof a=="object"){let[y,p]=Object.entries(a)[0];r[y]=Y.has(y)?{text:p}:p}else r.techn={text:a};if(u==null)r.descr??={text:""};else if(typeof u=="object"){let[y,p]=Object.entries(u)[0];r[y]=Y.has(y)?{text:p}:p}else r.descr={text:u};Tt(r,{sprite:i,tags:n,link:l}),r.wrap=gt(),r.typeC4Shape={text:t},r.parentBoundary=I},"addComponent"),Ze=d(function(t,e,s,a,u){if(t===null||e===null)return;let i={},n=j.find(l=>l.alias===t);if(n&&t===n.alias?i=n:(i.alias=t,j.push(i)),e==null?i.label={text:""}:i.label={text:e},s==null)i.type={text:"system"};else if(typeof s=="object"){let[l,r]=Object.entries(s)[0];i[l]=Y.has(l)?{text:r}:r}else i.type={text:s};Tt(i,{tags:a,link:u}),i.parentBoundary=I,i.wrap=gt(),F=I,I=t,bt.push(F)},"addPersonOrSystemBoundary"),$e=d(function(t,e,s,a,u){if(t===null||e===null)return;let i={},n=j.find(l=>l.alias===t);if(n&&t===n.alias?i=n:(i.alias=t,j.push(i)),e==null?i.label={text:""}:i.label={text:e},s==null)i.type={text:"container"};else if(typeof s=="object"){let[l,r]=Object.entries(s)[0];i[l]=Y.has(l)?{text:r}:r}else i.type={text:s};Tt(i,{tags:a,link:u}),i.parentBoundary=I,i.wrap=gt(),F=I,I=t,bt.push(F)},"addContainerBoundary"),t0=d(function(t,e,s,a,u,i,n,l){if(e===null||s===null)return;let r={},h=j.find(y=>y.alias===e);if(h&&e===h.alias?r=h:(r.alias=e,j.push(r)),s==null?r.label={text:""}:r.label={text:s},a==null)r.type={text:"node"};else if(typeof a=="object"){let[y,p]=Object.entries(a)[0];r[y]=Y.has(y)?{text:p}:p}else r.type={text:a};if(u==null)r.descr??={text:""};else if(typeof u=="object"){let[y,p]=Object.entries(u)[0];r[y]=Y.has(y)?{text:p}:p}else r.descr={text:u};Tt(r,{tags:n,link:l}),r.nodeType=t,r.parentBoundary=I,r.wrap=gt(),F=I,I=e,bt.push(F)},"addDeploymentNode"),e0=d(function(){I=F,bt.pop(),F=bt.pop(),bt.push(F)},"popBoundaryParseStack"),n0=d(function(t,e,s,a,u,i,n,l,r,h,y){let p=U.find(b=>b.alias===e);if(!(p===void 0&&(p=j.find(b=>b.alias===e),p===void 0))){if(s!=null)if(typeof s=="object"){let[b,v]=Object.entries(s)[0];p[b]=v}else p.bgColor=s;if(a!=null)if(typeof a=="object"){let[b,v]=Object.entries(a)[0];p[b]=v}else p.fontColor=a;if(u!=null)if(typeof u=="object"){let[b,v]=Object.entries(u)[0];p[b]=v}else p.borderColor=u;if(i!=null)if(typeof i=="object"){let[b,v]=Object.entries(i)[0];p[b]=v}else p.shadowing=i;if(n!=null)if(typeof n=="object"){let[b,v]=Object.entries(n)[0];p[b]=v}else p.shape=n;if(l!=null)if(typeof l=="object"){let[b,v]=Object.entries(l)[0];p[b]=v}else p.sprite=l;if(r!=null)if(typeof r=="object"){let[b,v]=Object.entries(r)[0];p[b]=v}else p.techn=r;if(h!=null)if(typeof h=="object"){let[b,v]=Object.entries(h)[0];p[b]=v}else p.legendText=h;if(y!=null)if(typeof y=="object"){let[b,v]=Object.entries(y)[0];p[b]=v}else p.legendSprite=y}},"updateElStyle"),r0=d(function(t,e,s,a,u,i,n){let l=Lt.find(r=>r.from===e&&r.to===s);if(l!==void 0){if(a!=null)if(typeof a=="object"){let[r,h]=Object.entries(a)[0];l[r]=h}else l.textColor=a;if(u!=null)if(typeof u=="object"){let[r,h]=Object.entries(u)[0];l[r]=h}else l.lineColor=u;if(i!=null)if(typeof i=="object"){let[r,h]=Object.entries(i)[0];l[r]=parseInt(h)}else l.offsetX=parseInt(i);if(n!=null)if(typeof n=="object"){let[r,h]=Object.entries(n)[0];l[r]=parseInt(h)}else l.offsetY=parseInt(n)}},"updateRelStyle"),s0=d(function(t,e,s){let a=zt,u=Wt;if(typeof e=="object"){let i=Object.values(e)[0];a=parseInt(i)}else a=parseInt(e);if(typeof s=="object"){let i=Object.values(s)[0];u=parseInt(i)}else u=parseInt(s);a>=1&&(zt=a),u>=1&&(Wt=u)},"updateLayoutConfig"),a0=d(function(){return zt},"getC4ShapeInRow"),i0=d(function(){return Wt},"getC4BoundaryInRow"),o0=d(function(){return I},"getCurrentBoundaryParse"),l0=d(function(){return F},"getParentBoundaryParse"),Ne=d(function(t){return t==null?U:U.filter(e=>e.parentBoundary===t)},"getC4ShapeArray"),c0=d(function(t){return U.find(e=>e.alias===t)??j.find(e=>e.alias===t)},"getC4Shape"),u0=d(function(t){return Object.keys(Ne(t))},"getC4ShapeKeys"),Ae=d(function(t){return t==null?j:j.filter(e=>e.parentBoundary===t)},"getBoundaries"),h0=Ae,d0=d(function(){return Lt},"getRels"),p0=d(function(){return ie},"getTitle"),f0=d(function(t){oe=t},"setWrap"),gt=d(function(){return oe},"autoWrap"),y0=d(function(){U=[],j=[Pe()],F="",I="global",bt=[""],Lt=[],bt=[""],ie="",oe=!1,zt=4,Wt=2},"clear"),_0={SOLID:0,DOTTED:1,NOTE:2,SOLID_CROSS:3,DOTTED_CROSS:4,SOLID_OPEN:5,DOTTED_OPEN:6,LOOP_START:10,LOOP_END:11,ALT_START:12,ALT_ELSE:13,ALT_END:14,OPT_START:15,OPT_END:16,ACTIVE_START:17,ACTIVE_END:18,PAR_START:19,PAR_AND:20,PAR_END:21,RECT_START:22,RECT_END:23,SOLID_POINT:24,DOTTED_POINT:25},b0={FILLED:0,OPEN:1},m0={LEFTOF:0,RIGHTOF:1,OVER:2},g0=d(function(t){ie=te(t,St())},"setTitle"),re={addPersonOrSystem:Ke,addPersonOrSystemBoundary:Ze,addContainer:Ge,addContainerBoundary:$e,addComponent:Je,addDeploymentNode:t0,popBoundaryParseStack:e0,addRel:Qe,updateElStyle:n0,updateRelStyle:r0,updateLayoutConfig:s0,autoWrap:gt,setWrap:f0,getC4ShapeArray:Ne,getC4Shape:c0,getC4ShapeKeys:u0,getBoundaries:Ae,getBoundarys:h0,getCurrentBoundaryParse:o0,getParentBoundaryParse:l0,getRels:d0,getTitle:p0,getC4Type:qe,getC4ShapeInRow:a0,getC4BoundaryInRow:i0,setAccTitle:be,getAccTitle:me,getAccDescription:xe,setAccDescription:ge,getConfig:d(()=>Oe("c4"),"getConfig"),clear:y0,LINETYPE:_0,ARROWTYPE:b0,PLACEMENT:m0,setTitle:g0,setC4Type:He},Le=d(function(t,e){return Se(t,e)},"drawRect"),x0=d((t,e,s,a)=>{let u=t.append("g"),i=0;for(let n of e){let l=n.textColor?n.textColor:"#444444",r=n.lineColor?n.lineColor:"#444444",h=n.offsetX?parseInt(String(n.offsetX)):0,y=n.offsetY?parseInt(String(n.offsetY)):0,p="";if(i===0){let w=u.append("line");w.attr("x1",n.startPoint.x),w.attr("y1",n.startPoint.y),w.attr("x2",n.endPoint.x),w.attr("y2",n.endPoint.y),w.attr("stroke-width","1"),w.attr("stroke",r),w.style("fill","none"),n.type!=="rel_b"&&w.attr("marker-end","url("+p+"#"+a+"-arrowhead)"),(n.type==="birel"||n.type==="rel_b")&&w.attr("marker-start","url("+p+"#"+a+"-arrowend)"),i=-1}else{let w=u.append("path");w.attr("fill","none").attr("stroke-width","1").attr("stroke",r).attr("d","Mstartx,starty Qcontrolx,controly stopx,stopy ".replaceAll("startx",n.startPoint.x).replaceAll("starty",n.startPoint.y).replaceAll("controlx",n.startPoint.x+(n.endPoint.x-n.startPoint.x)/2-(n.endPoint.x-n.startPoint.x)/4).replaceAll("controly",n.startPoint.y+(n.endPoint.y-n.startPoint.y)/2).replaceAll("stopx",n.endPoint.x).replaceAll("stopy",n.endPoint.y)),n.type!=="rel_b"&&w.attr("marker-end","url("+p+"#"+a+"-arrowhead)"),(n.type==="birel"||n.type==="rel_b")&&w.attr("marker-start","url("+p+"#"+a+"-arrowend)")}let b=n.label.width,v=s.messageFont();Dt(s)(n.label.text,u,Math.min(n.startPoint.x,n.endPoint.x)+Math.abs(n.endPoint.x-n.startPoint.x)/2+h,Math.min(n.startPoint.y,n.endPoint.y)+Math.abs(n.endPoint.y-n.startPoint.y)/2+y,b,n.label.height,{fill:l},v),n.techn&&n.techn.text!==""&&(v=s.messageFont(),Dt(s)("["+n.techn.text+"]",u,Math.min(n.startPoint.x,n.endPoint.x)+Math.abs(n.endPoint.x-n.startPoint.x)/2+h,Math.min(n.startPoint.y,n.endPoint.y)+Math.abs(n.endPoint.y-n.startPoint.y)/2+s.messageFontSize+5+y,Math.max(b,n.techn.width),n.techn.height,{fill:l,"font-style":"italic"},v))}},"drawRels"),v0=d(function(t,e,s){let a=t.append("g"),u=e.bgColor?e.bgColor:"none",i=e.borderColor?e.borderColor:"#444444",n=e.fontColor?e.fontColor:"black",l={"stroke-width":1,"stroke-dasharray":"7.0,7.0"};e.nodeType&&(l={"stroke-width":1});let r={x:e.x,y:e.y,fill:u,stroke:i,width:e.width,height:e.height,rx:2.5,ry:2.5,attrs:l};Le(a,r);let h=s.boundaryFont();h.fontWeight="bold",h.fontSize=h.fontSize+2,h.fontColor=n,Dt(s)(e.label.text,a,e.x,e.y+e.label.Y,e.width,e.height,{fill:"#444444"},h),e.type&&e.type.text!==""&&(h=s.boundaryFont(),h.fontColor=n,Dt(s)(e.type.text,a,e.x,e.y+e.type.Y,e.width,e.height,{fill:"#444444"},h)),e.descr&&e.descr.text!==""&&(h=s.boundaryFont(),h.fontSize=h.fontSize-2,h.fontColor=n,Dt(s)(e.descr.text,a,e.x,e.y+e.descr.Y,e.width,e.height,{fill:"#444444"},h))},"drawBoundary"),k0=d(function(t,e){t.append("defs").append("symbol").attr("id",e+"-database").attr("fill-rule","evenodd").attr("clip-rule","evenodd").append("path").attr("transform","scale(.5)").attr("d","M12.258.001l.256.004.255.005.253.008.251.01.249.012.247.015.246.016.242.019.241.02.239.023.236.024.233.027.231.028.229.031.225.032.223.034.22.036.217.038.214.04.211.041.208.043.205.045.201.046.198.048.194.05.191.051.187.053.183.054.18.056.175.057.172.059.168.06.163.061.16.063.155.064.15.066.074.033.073.033.071.034.07.034.069.035.068.035.067.035.066.035.064.036.064.036.062.036.06.036.06.037.058.037.058.037.055.038.055.038.053.038.052.038.051.039.05.039.048.039.047.039.045.04.044.04.043.04.041.04.04.041.039.041.037.041.036.041.034.041.033.042.032.042.03.042.029.042.027.042.026.043.024.043.023.043.021.043.02.043.018.044.017.043.015.044.013.044.012.044.011.045.009.044.007.045.006.045.004.045.002.045.001.045v17l-.001.045-.002.045-.004.045-.006.045-.007.045-.009.044-.011.045-.012.044-.013.044-.015.044-.017.043-.018.044-.02.043-.021.043-.023.043-.024.043-.026.043-.027.042-.029.042-.03.042-.032.042-.033.042-.034.041-.036.041-.037.041-.039.041-.04.041-.041.04-.043.04-.044.04-.045.04-.047.039-.048.039-.05.039-.051.039-.052.038-.053.038-.055.038-.055.038-.058.037-.058.037-.06.037-.06.036-.062.036-.064.036-.064.036-.066.035-.067.035-.068.035-.069.035-.07.034-.071.034-.073.033-.074.033-.15.066-.155.064-.16.063-.163.061-.168.06-.172.059-.175.057-.18.056-.183.054-.187.053-.191.051-.194.05-.198.048-.201.046-.205.045-.208.043-.211.041-.214.04-.217.038-.22.036-.223.034-.225.032-.229.031-.231.028-.233.027-.236.024-.239.023-.241.02-.242.019-.246.016-.247.015-.249.012-.251.01-.253.008-.255.005-.256.004-.258.001-.258-.001-.256-.004-.255-.005-.253-.008-.251-.01-.249-.012-.247-.015-.245-.016-.243-.019-.241-.02-.238-.023-.236-.024-.234-.027-.231-.028-.228-.031-.226-.032-.223-.034-.22-.036-.217-.038-.214-.04-.211-.041-.208-.043-.204-.045-.201-.046-.198-.048-.195-.05-.19-.051-.187-.053-.184-.054-.179-.056-.176-.057-.172-.059-.167-.06-.164-.061-.159-.063-.155-.064-.151-.066-.074-.033-.072-.033-.072-.034-.07-.034-.069-.035-.068-.035-.067-.035-.066-.035-.064-.036-.063-.036-.062-.036-.061-.036-.06-.037-.058-.037-.057-.037-.056-.038-.055-.038-.053-.038-.052-.038-.051-.039-.049-.039-.049-.039-.046-.039-.046-.04-.044-.04-.043-.04-.041-.04-.04-.041-.039-.041-.037-.041-.036-.041-.034-.041-.033-.042-.032-.042-.03-.042-.029-.042-.027-.042-.026-.043-.024-.043-.023-.043-.021-.043-.02-.043-.018-.044-.017-.043-.015-.044-.013-.044-.012-.044-.011-.045-.009-.044-.007-.045-.006-.045-.004-.045-.002-.045-.001-.045v-17l.001-.045.002-.045.004-.045.006-.045.007-.045.009-.044.011-.045.012-.044.013-.044.015-.044.017-.043.018-.044.02-.043.021-.043.023-.043.024-.043.026-.043.027-.042.029-.042.03-.042.032-.042.033-.042.034-.041.036-.041.037-.041.039-.041.04-.041.041-.04.043-.04.044-.04.046-.04.046-.039.049-.039.049-.039.051-.039.052-.038.053-.038.055-.038.056-.038.057-.037.058-.037.06-.037.061-.036.062-.036.063-.036.064-.036.066-.035.067-.035.068-.035.069-.035.07-.034.072-.034.072-.033.074-.033.151-.066.155-.064.159-.063.164-.061.167-.06.172-.059.176-.057.179-.056.184-.054.187-.053.19-.051.195-.05.198-.048.201-.046.204-.045.208-.043.211-.041.214-.04.217-.038.22-.036.223-.034.226-.032.228-.031.231-.028.234-.027.236-.024.238-.023.241-.02.243-.019.245-.016.247-.015.249-.012.251-.01.253-.008.255-.005.256-.004.258-.001.258.001zm-9.258 20.499v.01l.001.021.003.021.004.022.005.021.006.022.007.022.009.023.01.022.011.023.012.023.013.023.015.023.016.024.017.023.018.024.019.024.021.024.022.025.023.024.024.025.052.049.056.05.061.051.066.051.07.051.075.051.079.052.084.052.088.052.092.052.097.052.102.051.105.052.11.052.114.051.119.051.123.051.127.05.131.05.135.05.139.048.144.049.147.047.152.047.155.047.16.045.163.045.167.043.171.043.176.041.178.041.183.039.187.039.19.037.194.035.197.035.202.033.204.031.209.03.212.029.216.027.219.025.222.024.226.021.23.02.233.018.236.016.24.015.243.012.246.01.249.008.253.005.256.004.259.001.26-.001.257-.004.254-.005.25-.008.247-.011.244-.012.241-.014.237-.016.233-.018.231-.021.226-.021.224-.024.22-.026.216-.027.212-.028.21-.031.205-.031.202-.034.198-.034.194-.036.191-.037.187-.039.183-.04.179-.04.175-.042.172-.043.168-.044.163-.045.16-.046.155-.046.152-.047.148-.048.143-.049.139-.049.136-.05.131-.05.126-.05.123-.051.118-.052.114-.051.11-.052.106-.052.101-.052.096-.052.092-.052.088-.053.083-.051.079-.052.074-.052.07-.051.065-.051.06-.051.056-.05.051-.05.023-.024.023-.025.021-.024.02-.024.019-.024.018-.024.017-.024.015-.023.014-.024.013-.023.012-.023.01-.023.01-.022.008-.022.006-.022.006-.022.004-.022.004-.021.001-.021.001-.021v-4.127l-.077.055-.08.053-.083.054-.085.053-.087.052-.09.052-.093.051-.095.05-.097.05-.1.049-.102.049-.105.048-.106.047-.109.047-.111.046-.114.045-.115.045-.118.044-.12.043-.122.042-.124.042-.126.041-.128.04-.13.04-.132.038-.134.038-.135.037-.138.037-.139.035-.142.035-.143.034-.144.033-.147.032-.148.031-.15.03-.151.03-.153.029-.154.027-.156.027-.158.026-.159.025-.161.024-.162.023-.163.022-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.011-.178.01-.179.008-.179.008-.181.006-.182.005-.182.004-.184.003-.184.002h-.37l-.184-.002-.184-.003-.182-.004-.182-.005-.181-.006-.179-.008-.179-.008-.178-.01-.176-.011-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.022-.162-.023-.161-.024-.159-.025-.157-.026-.156-.027-.155-.027-.153-.029-.151-.03-.15-.03-.148-.031-.146-.032-.145-.033-.143-.034-.141-.035-.14-.035-.137-.037-.136-.037-.134-.038-.132-.038-.13-.04-.128-.04-.126-.041-.124-.042-.122-.042-.12-.044-.117-.043-.116-.045-.113-.045-.112-.046-.109-.047-.106-.047-.105-.048-.102-.049-.1-.049-.097-.05-.095-.05-.093-.052-.09-.051-.087-.052-.085-.053-.083-.054-.08-.054-.077-.054v4.127zm0-5.654v.011l.001.021.003.021.004.021.005.022.006.022.007.022.009.022.01.022.011.023.012.023.013.023.015.024.016.023.017.024.018.024.019.024.021.024.022.024.023.025.024.024.052.05.056.05.061.05.066.051.07.051.075.052.079.051.084.052.088.052.092.052.097.052.102.052.105.052.11.051.114.051.119.052.123.05.127.051.131.05.135.049.139.049.144.048.147.048.152.047.155.046.16.045.163.045.167.044.171.042.176.042.178.04.183.04.187.038.19.037.194.036.197.034.202.033.204.032.209.03.212.028.216.027.219.025.222.024.226.022.23.02.233.018.236.016.24.014.243.012.246.01.249.008.253.006.256.003.259.001.26-.001.257-.003.254-.006.25-.008.247-.01.244-.012.241-.015.237-.016.233-.018.231-.02.226-.022.224-.024.22-.025.216-.027.212-.029.21-.03.205-.032.202-.033.198-.035.194-.036.191-.037.187-.039.183-.039.179-.041.175-.042.172-.043.168-.044.163-.045.16-.045.155-.047.152-.047.148-.048.143-.048.139-.05.136-.049.131-.05.126-.051.123-.051.118-.051.114-.052.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.051.07-.052.065-.051.06-.05.056-.051.051-.049.023-.025.023-.024.021-.025.02-.024.019-.024.018-.024.017-.024.015-.023.014-.023.013-.024.012-.022.01-.023.01-.023.008-.022.006-.022.006-.022.004-.021.004-.022.001-.021.001-.021v-4.139l-.077.054-.08.054-.083.054-.085.052-.087.053-.09.051-.093.051-.095.051-.097.05-.1.049-.102.049-.105.048-.106.047-.109.047-.111.046-.114.045-.115.044-.118.044-.12.044-.122.042-.124.042-.126.041-.128.04-.13.039-.132.039-.134.038-.135.037-.138.036-.139.036-.142.035-.143.033-.144.033-.147.033-.148.031-.15.03-.151.03-.153.028-.154.028-.156.027-.158.026-.159.025-.161.024-.162.023-.163.022-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.011-.178.009-.179.009-.179.007-.181.007-.182.005-.182.004-.184.003-.184.002h-.37l-.184-.002-.184-.003-.182-.004-.182-.005-.181-.007-.179-.007-.179-.009-.178-.009-.176-.011-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.022-.162-.023-.161-.024-.159-.025-.157-.026-.156-.027-.155-.028-.153-.028-.151-.03-.15-.03-.148-.031-.146-.033-.145-.033-.143-.033-.141-.035-.14-.036-.137-.036-.136-.037-.134-.038-.132-.039-.13-.039-.128-.04-.126-.041-.124-.042-.122-.043-.12-.043-.117-.044-.116-.044-.113-.046-.112-.046-.109-.046-.106-.047-.105-.048-.102-.049-.1-.049-.097-.05-.095-.051-.093-.051-.09-.051-.087-.053-.085-.052-.083-.054-.08-.054-.077-.054v4.139zm0-5.666v.011l.001.02.003.022.004.021.005.022.006.021.007.022.009.023.01.022.011.023.012.023.013.023.015.023.016.024.017.024.018.023.019.024.021.025.022.024.023.024.024.025.052.05.056.05.061.05.066.051.07.051.075.052.079.051.084.052.088.052.092.052.097.052.102.052.105.051.11.052.114.051.119.051.123.051.127.05.131.05.135.05.139.049.144.048.147.048.152.047.155.046.16.045.163.045.167.043.171.043.176.042.178.04.183.04.187.038.19.037.194.036.197.034.202.033.204.032.209.03.212.028.216.027.219.025.222.024.226.021.23.02.233.018.236.017.24.014.243.012.246.01.249.008.253.006.256.003.259.001.26-.001.257-.003.254-.006.25-.008.247-.01.244-.013.241-.014.237-.016.233-.018.231-.02.226-.022.224-.024.22-.025.216-.027.212-.029.21-.03.205-.032.202-.033.198-.035.194-.036.191-.037.187-.039.183-.039.179-.041.175-.042.172-.043.168-.044.163-.045.16-.045.155-.047.152-.047.148-.048.143-.049.139-.049.136-.049.131-.051.126-.05.123-.051.118-.052.114-.051.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.052.07-.051.065-.051.06-.051.056-.05.051-.049.023-.025.023-.025.021-.024.02-.024.019-.024.018-.024.017-.024.015-.023.014-.024.013-.023.012-.023.01-.022.01-.023.008-.022.006-.022.006-.022.004-.022.004-.021.001-.021.001-.021v-4.153l-.077.054-.08.054-.083.053-.085.053-.087.053-.09.051-.093.051-.095.051-.097.05-.1.049-.102.048-.105.048-.106.048-.109.046-.111.046-.114.046-.115.044-.118.044-.12.043-.122.043-.124.042-.126.041-.128.04-.13.039-.132.039-.134.038-.135.037-.138.036-.139.036-.142.034-.143.034-.144.033-.147.032-.148.032-.15.03-.151.03-.153.028-.154.028-.156.027-.158.026-.159.024-.161.024-.162.023-.163.023-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.01-.178.01-.179.009-.179.007-.181.006-.182.006-.182.004-.184.003-.184.001-.185.001-.185-.001-.184-.001-.184-.003-.182-.004-.182-.006-.181-.006-.179-.007-.179-.009-.178-.01-.176-.01-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.023-.162-.023-.161-.024-.159-.024-.157-.026-.156-.027-.155-.028-.153-.028-.151-.03-.15-.03-.148-.032-.146-.032-.145-.033-.143-.034-.141-.034-.14-.036-.137-.036-.136-.037-.134-.038-.132-.039-.13-.039-.128-.041-.126-.041-.124-.041-.122-.043-.12-.043-.117-.044-.116-.044-.113-.046-.112-.046-.109-.046-.106-.048-.105-.048-.102-.048-.1-.05-.097-.049-.095-.051-.093-.051-.09-.052-.087-.052-.085-.053-.083-.053-.08-.054-.077-.054v4.153zm8.74-8.179l-.257.004-.254.005-.25.008-.247.011-.244.012-.241.014-.237.016-.233.018-.231.021-.226.022-.224.023-.22.026-.216.027-.212.028-.21.031-.205.032-.202.033-.198.034-.194.036-.191.038-.187.038-.183.04-.179.041-.175.042-.172.043-.168.043-.163.045-.16.046-.155.046-.152.048-.148.048-.143.048-.139.049-.136.05-.131.05-.126.051-.123.051-.118.051-.114.052-.11.052-.106.052-.101.052-.096.052-.092.052-.088.052-.083.052-.079.052-.074.051-.07.052-.065.051-.06.05-.056.05-.051.05-.023.025-.023.024-.021.024-.02.025-.019.024-.018.024-.017.023-.015.024-.014.023-.013.023-.012.023-.01.023-.01.022-.008.022-.006.023-.006.021-.004.022-.004.021-.001.021-.001.021.001.021.001.021.004.021.004.022.006.021.006.023.008.022.01.022.01.023.012.023.013.023.014.023.015.024.017.023.018.024.019.024.02.025.021.024.023.024.023.025.051.05.056.05.06.05.065.051.07.052.074.051.079.052.083.052.088.052.092.052.096.052.101.052.106.052.11.052.114.052.118.051.123.051.126.051.131.05.136.05.139.049.143.048.148.048.152.048.155.046.16.046.163.045.168.043.172.043.175.042.179.041.183.04.187.038.191.038.194.036.198.034.202.033.205.032.21.031.212.028.216.027.22.026.224.023.226.022.231.021.233.018.237.016.241.014.244.012.247.011.25.008.254.005.257.004.26.001.26-.001.257-.004.254-.005.25-.008.247-.011.244-.012.241-.014.237-.016.233-.018.231-.021.226-.022.224-.023.22-.026.216-.027.212-.028.21-.031.205-.032.202-.033.198-.034.194-.036.191-.038.187-.038.183-.04.179-.041.175-.042.172-.043.168-.043.163-.045.16-.046.155-.046.152-.048.148-.048.143-.048.139-.049.136-.05.131-.05.126-.051.123-.051.118-.051.114-.052.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.051.07-.052.065-.051.06-.05.056-.05.051-.05.023-.025.023-.024.021-.024.02-.025.019-.024.018-.024.017-.023.015-.024.014-.023.013-.023.012-.023.01-.023.01-.022.008-.022.006-.023.006-.021.004-.022.004-.021.001-.021.001-.021-.001-.021-.001-.021-.004-.021-.004-.022-.006-.021-.006-.023-.008-.022-.01-.022-.01-.023-.012-.023-.013-.023-.014-.023-.015-.024-.017-.023-.018-.024-.019-.024-.02-.025-.021-.024-.023-.024-.023-.025-.051-.05-.056-.05-.06-.05-.065-.051-.07-.052-.074-.051-.079-.052-.083-.052-.088-.052-.092-.052-.096-.052-.101-.052-.106-.052-.11-.052-.114-.052-.118-.051-.123-.051-.126-.051-.131-.05-.136-.05-.139-.049-.143-.048-.148-.048-.152-.048-.155-.046-.16-.046-.163-.045-.168-.043-.172-.043-.175-.042-.179-.041-.183-.04-.187-.038-.191-.038-.194-.036-.198-.034-.202-.033-.205-.032-.21-.031-.212-.028-.216-.027-.22-.026-.224-.023-.226-.022-.231-.021-.233-.018-.237-.016-.241-.014-.244-.012-.247-.011-.25-.008-.254-.005-.257-.004-.26-.001-.26.001z")},"insertDatabaseIcon"),E0=d(function(t,e){t.append("defs").append("symbol").attr("id",e+"-computer").attr("width","24").attr("height","24").append("path").attr("transform","scale(.5)").attr("d","M2 2v13h20v-13h-20zm18 11h-16v-9h16v9zm-10.228 6l.466-1h3.524l.467 1h-4.457zm14.228 3h-24l2-6h2.104l-1.33 4h18.45l-1.297-4h2.073l2 6zm-5-10h-14v-7h14v7z")},"insertComputerIcon"),S0=d(function(t,e){t.append("defs").append("symbol").attr("id",e+"-clock").attr("width","24").attr("height","24").append("path").attr("transform","scale(.5)").attr("d","M12 2c5.514 0 10 4.486 10 10s-4.486 10-10 10-10-4.486-10-10 4.486-10 10-10zm0-2c-6.627 0-12 5.373-12 12s5.373 12 12 12 12-5.373 12-12-5.373-12-12-12zm5.848 12.459c.202.038.202.333.001.372-1.907.361-6.045 1.111-6.547 1.111-.719 0-1.301-.582-1.301-1.301 0-.512.77-5.447 1.125-7.445.034-.192.312-.181.343.014l.985 6.238 5.394 1.011z")},"insertClockIcon"),T0=d(function(t,e){t.append("defs").append("marker").attr("id",e+"-arrowhead").attr("refX",9).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 z")},"insertArrowHead"),C0=d(function(t,e){t.append("defs").append("marker").attr("id",e+"-arrowend").attr("refX",1).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 10 0 L 0 5 L 10 10 z")},"insertArrowEnd"),R0=d(function(t,e){t.append("defs").append("marker").attr("id",e+"-filled-head").attr("refX",18).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L14,7 L9,1 Z")},"insertArrowFilledHead"),w0=d(function(t,e){let a=t.append("defs").append("marker").attr("id",e+"-crosshead").attr("markerWidth",15).attr("markerHeight",8).attr("orient","auto").attr("refX",16).attr("refY",4);a.append("path").attr("fill","black").attr("stroke","#000000").style("stroke-dasharray","0, 0").attr("stroke-width","1px").attr("d","M 9,2 V 6 L16,4 Z"),a.append("path").attr("fill","none").attr("stroke","#000000").style("stroke-dasharray","0, 0").attr("stroke-width","1px").attr("d","M 0,1 L 6,7 M 6,1 L 0,7")},"insertArrowCrossHead"),Dt=(function(){function t(u,i,n,l,r,h,y){let p=i.append("text").attr("x",n+r/2).attr("y",l+h/2+5).style("text-anchor","middle").text(u);a(p,y)}d(t,"byText");function e(u,i,n,l,r,h,y,p){let{fontSize:b,fontFamily:v,fontWeight:w}=p,N=u.split(Yt.lineBreakRegex);for(let O=0;O{if(e==="sandbox"){let a=Ft("#i"+t).node()?.contentDocument;if(!a)throw new Error(`Sandbox iframe #i${t} is missing its content document`);return{root:Ft(a.body),doc:a}}return{root:Ft("body"),doc:document}},"getDiagramRoot"),P0=new Set(["system_queue","external_system_queue","container_queue","external_container_queue","component_queue","external_component_queue"]),D0=new Set(["system_db","external_system_db","container_db","external_container_db","component_db","external_component_db"]),N0={person:"person",box:"rounded",rounded:"rounded",cylinder:"cylinder",database:"cylinder",db:"cylinder",queue:"h-cyl",pipe:"h-cyl",component:"fr-rect"},ne=d(t=>t?N0[t.toLowerCase()]:void 0,"keywordShape"),A0=d(t=>{let e=ne(t.shape)??ne(t.sprite);if(e)return e;if(t.tags)for(let a of t.tags.split(",")){let u=ne(a.trim());if(u)return u}let s=t.typeC4Shape.text;return s==="person"||s==="external_person"?"person":D0.has(s)?"cylinder":P0.has(s)?"h-cyl":"rounded"},"resolveNodeShape"),L0={person:"Person",system:"Software System",container:"Container",component:"Component"},I0=d(t=>{let e=t.replace(/^external_/,"").replace(/_(db|queue)$/,"");return L0[e]??e.replace(/_/g," ")},"stereotypeLabel"),M0=d(t=>t.startsWith("external_"),"isExternal"),B0=d(t=>{let e=I0(t.typeC4Shape.text);return t.techn?.text?`[${e}: ${t.techn.text}]`:`[${e}]`},"stereotypeText"),Ie=["person","system","system_db","system_queue","container","container_db","container_queue","component","component_db","component_queue"].flatMap(t=>[t,`external_${t}`]),V0=new Set(Ie),Te=d(t=>V0.has(t),"isC4ElementType"),Y0=d((t,e)=>{let s=t.typeC4Shape.text,a=t.bgColor??(Te(s)&&e[`${s}_bg_color`]),u=t.borderColor??(Te(s)&&e[`${s}_border_color`]),i=[];return a&&i.push(`fill:${a}`),u&&i.push(`stroke:${u}`),i.push(`color:${t.fontColor??"#FFFFFF"}`),i},"elementCssStyles"),Ce=d((t,e,s,a,u)=>{let i=t.typeC4Shape.text,n=["c4-shape",`c4-${i}`];M0(i)&&n.push("c4-external");let l=A0(t),r=Y0(t,e);return(l==="rounded"||l==="fr-rect")&&r.push("rx:12px","ry:12px"),{id:t.alias,label:t.label.text,stereotype:B0(t),description:t.descr?.text?[t.descr.text]:void 0,labelType:"string",isGroup:!1,shape:l,cssClasses:n.join(" "),cssStyles:r,padding:s,look:a,useHtmlLabels:!1,width:u}},"buildC4Node"),Nt=0,At=0,Me=4,se=2;jt.yy=re;var g={},Be=class{static{d(this,"Bounds")}constructor(t){this.name="",this.data={},this.data.startx=void 0,this.data.stopx=void 0,this.data.starty=void 0,this.data.stopy=void 0,this.data.widthLimit=void 0,this.nextData={},this.nextData.startx=void 0,this.nextData.stopx=void 0,this.nextData.starty=void 0,this.nextData.stopy=void 0,this.nextData.cnt=0,ae(t.db.getConfig())}setData(t,e,s,a){this.nextData.startx=this.data.startx=t,this.nextData.stopx=this.data.stopx=e,this.nextData.starty=this.data.starty=s,this.nextData.stopy=this.data.stopy=a}updateVal(t,e,s,a){t[e]===void 0?t[e]=s:t[e]=a(s,t[e])}insert(t){this.nextData.cnt=this.nextData.cnt+1;let e=this.nextData.stopx,s=this.data.widthLimit,a=this.nextData.startx===this.nextData.stopx?e+t.margin:e+t.margin*2,u=a+t.width,i=this.nextData.starty+t.margin*2,n=i+t.height;(a>=s||u>=s||this.nextData.cnt>Me)&&(a=this.nextData.startx+t.margin+g.nextLinePaddingX,i=this.nextData.stopy+t.margin*2,this.nextData.stopx=u=a+t.width,this.nextData.starty=this.nextData.stopy,this.nextData.stopy=n=i+t.height,this.nextData.cnt=1),t.x=a,t.y=i,this.updateVal(this.data,"startx",a,Math.min),this.updateVal(this.data,"starty",i,Math.min),this.updateVal(this.data,"stopx",u,Math.max),this.updateVal(this.data,"stopy",n,Math.max),this.updateVal(this.nextData,"startx",a,Math.min),this.updateVal(this.nextData,"starty",i,Math.min),this.updateVal(this.nextData,"stopx",u,Math.max),this.updateVal(this.nextData,"stopy",n,Math.max)}init(t){this.name="",this.data={startx:void 0,stopx:void 0,starty:void 0,stopy:void 0,widthLimit:void 0},this.nextData={startx:void 0,stopx:void 0,starty:void 0,stopy:void 0,cnt:0},ae(t.db.getConfig())}bumpLastMargin(t){this.data.stopx+=t,this.data.stopy+=t}},ae=d(function(t){ye(g,t),t?.fontFamily&&(g.personFontFamily=g.systemFontFamily=g.messageFontFamily=t.fontFamily),t?.fontSize&&(g.personFontSize=g.systemFontSize=g.messageFontSize=t.fontSize),t?.fontWeight&&(g.personFontWeight=g.systemFontWeight=g.messageFontWeight=t.fontWeight)},"setConf"),Ut=d(t=>({fontFamily:t.boundaryFontFamily,fontSize:t.boundaryFontSize,fontWeight:t.boundaryFontWeight}),"boundaryFont"),F0=d(t=>({fontFamily:t.messageFontFamily,fontSize:t.messageFontSize,fontWeight:t.messageFontWeight}),"messageFont");function mt(t,e,s,a,u){let i=e[t];if(!i.width)if(s)i.text=ve(i.text,u,a),i.textLines=i.text.split(Yt.lineBreakRegex).length,i.width=u,i.height=ee(i.text,a);else{let n=i.text.split(Yt.lineBreakRegex);i.textLines=n.length;let l=0;i.height=0,i.width=0;for(let r of n)i.width=Math.max(wt(r,a),i.width),l=ee(r,a),i.height=i.height+l}return i}d(mt,"calcC4ShapeTextWH");var Ve=d(function(t,e,s){let a=s.data.startx,u=s.data.starty;e.x=a,e.y=u,e.width=s.data.stopx-a,e.height=s.data.stopy-u,e.intersect=r=>ke.rect({x:e.x+e.width/2,y:e.y+e.height/2,width:e.width,height:e.height},r),e.label.y=g.c4ShapeMargin-35;let i=e.wrap&&g.wrap,n=Ut(g);n.fontSize=n.fontSize+2,n.fontWeight="bold";let l=wt(e.label.text,n);mt("label",e,i,n,l),W.drawBoundary(t,e,g)},"drawBoundary"),Ye=d(async function(t,e,s,a){let u=St(),i=u.look??"classic",n={config:u},l=e.attr("id")??"",r=a.map(y=>s[Number(y)]),h=d(y=>{let p=y.shape?Ee[y.shape]:void 0;if(!p)throw new Error(`C4: no shape handler for "${y.shape}"`);return p},"shapeHandlerFor");await Promise.all(r.map(async y=>{let p=Ce(y,g,g.c4ShapePadding,i,g.width);p.domId=`${l}-${p.id}`;let b=await h(p)(e,p,n);y.width=p.width??g.width,y.height=p.height??g.height,y.margin=g.c4ShapeMargin,b.remove()}));for(let y of r)t.insert(y);await Promise.all(r.map(async y=>{let p=Ce(y,g,g.c4ShapePadding,i,g.width);p.domId=`${l}-${p.id}`,p.x=y.x+y.width/2,p.y=y.y+y.height/2;let b=e.append("g").attr("transform",`translate(${y.x+y.width/2}, ${y.y+y.height/2})`);await h(p)(b,p,n),y.intersect=p.intersect})),t.bumpLastMargin(g.c4ShapeMargin)},"drawC4ShapeArray"),U0=class{static{d(this,"Point")}constructor(t,e){this.x=t,this.y=e}},Re=d(function(t,e){if(!t.intersect)throw new Error(`C4 element "${t.alias}" has no intersect function. Please report this to https://github.com/mermaid-js/mermaid/issues`);let{x:s,y:a}=t.intersect(e);return new U0(s,a)},"getIntersectPoint"),j0=d(function(t,e){let s={x:0,y:0};s.x=e.x+e.width/2,s.y=e.y+e.height/2;let a=Re(t,s);s.x=t.x+t.width/2,s.y=t.y+t.height/2;let u=Re(e,s);return{startPoint:a,endPoint:u}},"getIntersectPoints"),z0=d(function(t,e,s,a,u){let i=a.db.getC4Type(),n=0;for(let l of e){n=n+1;let r=l.wrap&&g.wrap,h=F0(g);i==="C4Dynamic"&&(l.label.text=n+": "+l.label.text);let y=wt(l.label.text,h);mt("label",l,r,h,y),l.techn&&l.techn.text!==""&&(y=wt(l.techn.text,h),mt("techn",l,r,h,y)),l.descr&&l.descr.text!==""&&(y=wt(l.descr.text,h),mt("descr",l,r,h,y));let p=s(l.from),b=s(l.to);if(!p||!b)throw new Error(`C4 rel "${l.from}" -> "${l.to}" references an unknown shape or boundary`);let v=j0(p,b);if(!v.startPoint||!v.endPoint)throw new Error(`Could not calculate intersection points for rel "${l.from}" -> "${l.to}"`);l.startPoint=v.startPoint,l.endPoint=v.endPoint}W.drawRels(t,e,g,u)},"drawRels");async function le(t,e,s,a,u){let i=u.db,n=new Be(u);n.data.widthLimit=s.data.widthLimit/Math.min(se,a.length);for(let[l,r]of a.entries()){let h=0;r.image={width:0,height:0,Y:0},r.sprite&&(r.image.width=48,r.image.height=48,r.image.Y=h,h=r.image.Y+r.image.height);let y=r.wrap&&g.wrap,p=Ut(g);p.fontSize=p.fontSize+2,p.fontWeight="bold";let b=mt("label",r,y,p,n.data.widthLimit);if(b.Y=h+8,h=b.Y+b.height,r.type&&r.type.text!==""){r.type.text="["+r.type.text+"]";let O=Ut(g),P=mt("type",r,y,O,n.data.widthLimit);P.Y=h+5,h=P.Y+P.height}if(r.descr&&r.descr.text!==""){let O=Ut(g);O.fontSize=O.fontSize-2;let P=mt("descr",r,y,O,n.data.widthLimit);P.Y=h+20,h=P.Y+P.height}if(l==0||l%se===0){let O=s.data.startx+g.diagramMarginX,P=s.data.stopy+g.diagramMarginY+h;n.setData(O,O,P,P)}else{let O=n.data.stopx!==n.data.startx?n.data.stopx+g.diagramMarginX:n.data.startx,P=n.data.starty;n.setData(O,O,P,P)}n.name=r.alias;let v=i.getC4ShapeArray(r.alias),w=i.getC4ShapeKeys(r.alias);w.length>0&&await Ye(n,t,v,w),e=r.alias;let N=i.getBoundaries(e);N.length>0&&await le(t,e,n,N,u),r.alias!=="global"&&Ve(t,r,n),s.data.stopy=Math.max(n.data.stopy+g.c4ShapeMargin,s.data.stopy),s.data.stopx=Math.max(n.data.stopx+g.c4ShapeMargin,s.data.stopx),Nt=Math.max(Nt,s.data.stopx),At=Math.max(At,s.data.stopy)}}d(le,"drawInsideBoundary");var W0=d(async function(t,e,s,a){g=Oe("c4");let u=St().securityLevel,{root:i}=O0(e,u),n=a.db;n.setWrap(g.wrap),Me=n.getC4ShapeInRow(),se=n.getC4BoundaryInRow(),$t.debug(`C:${JSON.stringify(g,null,2)}`);let l=i.select(`[id="${e}"]`);W.insertComputerIcon(l,e),W.insertDatabaseIcon(l,e),W.insertClockIcon(l,e);let r=new Be(a);r.setData(g.diagramMarginX,g.diagramMarginX,g.diagramMarginY,g.diagramMarginY),r.data.widthLimit=screen.availWidth,Nt=g.diagramMarginX,At=g.diagramMarginY;let h=n.getTitle(),y=n.getBoundaries("");await le(l,"",r,y,a),W.insertArrowHead(l,e),W.insertArrowEnd(l,e),W.insertArrowCrossHead(l,e),W.insertArrowFilledHead(l,e),z0(l,n.getRels(),n.getC4Shape,a,e),r.data.stopx=Nt,r.data.stopy=At;let p=r.data,b=p.startx,v=p.starty,N=At-v+2*g.diagramMarginY,O=Nt-b,P=O+2*g.diagramMarginX;h&&l.append("text").text(h).attr("x",O/2-4*g.diagramMarginX).attr("y",v+g.diagramMarginY),_e(l,N,P,g.useMaxWidth);let M=h?60:0;l.attr("viewBox",b-g.diagramMarginX+" -"+(g.diagramMarginY+M)+" "+P+" "+(N+M)),$t.debug("models:",p)},"draw"),we={drawPersonOrSystemArray:Ye,drawBoundary:Ve,setConf:ae,draw:W0},X0=d(()=>{let t=St().c4??{},e=new CSSStyleSheet;for(let s of Ie){let a=e.cssRules[e.insertRule(`.c4-shape.c4-${s} .label {}`,e.cssRules.length)],u=t[`${s}FontFamily`],i=t[`${s}FontSize`],n=t[`${s}FontWeight`];u&&a.style.setProperty("font-family",u),i&&a.style.setProperty("font-size",typeof i=="number"?`${i}px`:i),n&&a.style.setProperty("font-weight",String(n))}return[...e.cssRules].filter(s=>s.style.length>0).map(s=>` ${s.cssText}`).join(` +`)},"elementFontStyles"),q0=d(t=>`.person { + stroke: ${t.personBorder}; + fill: ${t.personBkg}; + } +${X0()} + + /* The element font colour is set inline per element (default white); the + label text takes it via currentColor. */ + .c4-shape .label, + .c4-shape .label text { + color: inherit; + fill: currentColor; + } + /* Structurizr typography: bold name, smaller stereotype/type and description lines. */ + .c4-shape .label .c4-name { + font-weight: bold; + } + .c4-shape .label .c4-type { + font-size: 0.75em; + } + .c4-shape .label .c4-descr { + font-size: 0.82em; + } + .c4-shape .basic, + .c4-shape rect, + .c4-shape path, + .c4-shape circle, + .c4-shape ellipse, + .c4-shape line { + stroke-width: 2px; + } +`,"getStyles"),H0=q0,i1={parser:Xe,db:re,renderer:we,styles:H0,init:d(({c4:t,wrap:e})=>{we.setConf(t),re.setWrap(e)},"init")};export{i1 as diagram}; diff --git a/src/frontend/web/von_interface/static/vendor/conversation-visuals/chunk-2AVNI7YL.js b/src/frontend/web/von_interface/static/vendor/conversation-visuals/chunk-2AVNI7YL.js new file mode 100644 index 000000000..3eab8a7cf --- /dev/null +++ b/src/frontend/web/von_interface/static/vendor/conversation-visuals/chunk-2AVNI7YL.js @@ -0,0 +1 @@ +import{a as d}from"./chunk-SNMBC6G5.js";import{b as p}from"./chunk-AKE2LJPJ.js";import{g as u,h as k,i as y,j as w}from"./chunk-NDMMOI35.js";import{b as c}from"./chunk-T4OFBIBR.js";import{a as f}from"./chunk-TEBTVNCH.js";import{e as g}from"./chunk-EUYVSIXP.js";import{C as s,O as m}from"./chunk-S4JILX6U.js";import{b as n}from"./chunk-XEQL7KGA.js";import{a as o}from"./chunk-YUSHYV7C.js";var O={common:m,getConfig:s,insertCluster:p,insertEdge:y,insertEdgeLabel:u,insertMarkers:w,insertNode:c,interpolateToCurve:g,labelHelper:f,log:n,positionEdgeLabel:k},v=["elk.stress","elk.force","elk.mrtree","elk.sporeOverlap","elk.box","elk.rectpacking"],a=Object.create(null),b=o(r=>{for(let e of r)a[e.name]=e},"registerLayoutLoaders"),A=o(()=>{let r=o(async()=>await import("./elk-276RUBZZ-L2KW7QEV.js"),"loader");return[{name:"elk",loader:r,algorithm:"elk.layered"},...v.map(e=>({name:e,loader:r,algorithm:e}))]},"elkLayoutLoaders"),$=o(()=>{b([{name:"dagre",loader:o(async()=>await import("./dagre-6A5THRUB-7EE7IEPG.js"),"loader")},{name:"swimlane",loader:o(async()=>await import("./swimlanes-2SLR337P-76OBGSXS.js"),"loader")},{name:"cose-bilkent",loader:o(async()=>await import("./cose-bilkent-JH36ORCC-BPB5GO4M.js"),"loader")},...A()])},"registerDefaultLayoutLoaders");$();var S=o(async(r,e)=>{if(!Object.hasOwn(a,r.layoutAlgorithm))throw new Error(`Unknown layout algorithm: ${r.layoutAlgorithm}`);if(r.diagramId)for(let i of r.nodes){let h=i.domId||i.id;i.domId=`${r.diagramId}-${h}`}let t=a[r.layoutAlgorithm],L=await t.loader();return d(e,r.config),L.render(r,e,O,{algorithm:t.algorithm})},"render"),l="dagre",U=o((r="",{fallback:e=l}={})=>{if(Object.hasOwn(a,r))return r;for(let t of[e,l])if(Object.hasOwn(a,t))return n.warn(`Layout algorithm ${r} is not registered. Using ${t} as fallback.`),t;throw new Error(`Neither layout algorithm ${r}, ${e}, nor ${l} is registered.`)},"getRegisteredLayoutAlgorithm");export{b as a,S as b,U as c}; diff --git a/src/frontend/web/von_interface/static/vendor/conversation-visuals/chunk-3RNHDNP5.js b/src/frontend/web/von_interface/static/vendor/conversation-visuals/chunk-3RNHDNP5.js new file mode 100644 index 000000000..83cf00863 --- /dev/null +++ b/src/frontend/web/von_interface/static/vendor/conversation-visuals/chunk-3RNHDNP5.js @@ -0,0 +1 @@ +var g=Object.create;var f=Object.defineProperty;var h=Object.getOwnPropertyDescriptor;var i=Object.getOwnPropertyNames;var j=Object.getPrototypeOf,k=Object.prototype.hasOwnProperty;var m=(a=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(a,{get:(b,c)=>(typeof require<"u"?require:b)[c]}):a)(function(a){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+a+'" is not supported')});var n=(a,b)=>()=>{try{return b||a((b={exports:{}}).exports,b),b.exports}catch(c){throw b=0,c}};var l=(a,b,c,e)=>{if(b&&typeof b=="object"||typeof b=="function")for(let d of i(b))!k.call(a,d)&&d!==c&&f(a,d,{get:()=>b[d],enumerable:!(e=h(b,d))||e.enumerable});return a};var o=(a,b,c)=>(c=a!=null?g(j(a)):{},l(b||!a||!a.__esModule?f(c,"default",{value:a,enumerable:!0}):c,a));export{m as a,n as b,o as c}; diff --git a/src/frontend/web/von_interface/static/vendor/conversation-visuals/chunk-4DL6P2YZ.js b/src/frontend/web/von_interface/static/vendor/conversation-visuals/chunk-4DL6P2YZ.js new file mode 100644 index 000000000..92c5033dd --- /dev/null +++ b/src/frontend/web/von_interface/static/vendor/conversation-visuals/chunk-4DL6P2YZ.js @@ -0,0 +1 @@ +import{a as r,b as s,c as l,d as a,e as c,g as v,j as u,x as E,y as m}from"./chunk-RVPSGR2P.js";var V=class extends m{static{r(this,"EventModelingTokenBuilder")}constructor(){super(["eventmodeling"])}},S=new Set(["cmd","command"]),y=new Set(["evt","event"]),d=new Set(["rmo","readmodel"]),h=new Set(["pcr","processor"]),M=new Set(["ui"]);function T(e){let t=e.validation.EventModelingValidator,o=e.validation.ValidationRegistry;if(o){let i={EmTimeFrame:t.checkSourceFrameTypes.bind(t),EmResetFrame:t.checkSourceFrameTypes.bind(t)};o.register(i,t)}}r(T,"registerValidationChecks");var k=class{static{r(this,"EventModelingValidator")}checkSourceFrameTypes(e,t){e.sourceFrames.length!==0&&(S.has(e.modelEntityType)?this.validateSources(e,new Set([...M,...h]),"command","ui or processor",t):y.has(e.modelEntityType)?this.validateSources(e,S,"event","command",t):d.has(e.modelEntityType)?this.validateSources(e,y,"read model","event",t):h.has(e.modelEntityType)?this.validateSources(e,d,"processor","read model",t):M.has(e.modelEntityType)&&this.validateSources(e,d,"ui","read model",t))}validateSources(e,t,o,i,g){for(let p of e.sourceFrames){let n=p.ref;n!==void 0&&!t.has(n.modelEntityType)&&g("error",`A ${o} can only receive input from a ${i}, not from '${n.modelEntityType}'.`,{node:e,property:"sourceFrames"})}}},C={parser:{TokenBuilder:r(()=>new V,"TokenBuilder"),ValueConverter:r(()=>new E,"ValueConverter")},validation:{EventModelingValidator:r(()=>new k,"EventModelingValidator")}};function w(e=c){let t=a(l(e),v),o=a(s({shared:t}),u,C);return t.ServiceRegistry.register(o),T(o),{shared:t,EventModel:o}}r(w,"createEventModelingServices");export{C as a,w as b}; diff --git a/src/frontend/web/von_interface/static/vendor/conversation-visuals/chunk-53NJVRLX.js b/src/frontend/web/von_interface/static/vendor/conversation-visuals/chunk-53NJVRLX.js new file mode 100644 index 000000000..10c00bd91 --- /dev/null +++ b/src/frontend/web/von_interface/static/vendor/conversation-visuals/chunk-53NJVRLX.js @@ -0,0 +1,88 @@ +import{a as P}from"./chunk-UED66XBH.js";import{$ as Y,C as z,I as W,P as _,U as B,p as E}from"./chunk-S4JILX6U.js";import{b as T}from"./chunk-XEQL7KGA.js";import{a as h}from"./chunk-YUSHYV7C.js";var b="",N="",A="",M=[],R=new Map,k=h(e=>W(e,Y()),"sanitizeText"),F=h(e=>{switch(e.type){case"terminal":return{...e,value:k(e.value)};case"nonterminal":return{...e,name:k(e.name)};case"sequence":return{...e,elements:e.elements.map(F)};case"choice":return{...e,alternatives:e.alternatives.map(F)};case"optional":return{...e,element:F(e.element)};case"repetition":return{...e,element:F(e.element),separator:e.separator?F(e.separator):void 0};case"special":return{...e,text:k(e.text)}}},"sanitizeAstNode"),U=h(()=>{b="",N="",A="",M.length=0,R.clear(),B(),T.debug("[Railroad] Database cleared")},"clear"),I=h(e=>{b=k(e),T.debug("[Railroad] Title set:",e)},"setTitle"),X=h(()=>b,"getTitle"),j=h(e=>{let i={...e,name:k(e.name),definition:F(e.definition),comment:e.comment?k(e.comment):void 0};T.debug("[Railroad] Adding rule:",i.name),R.has(i.name)&&T.warn(`[Railroad] Rule '${i.name}' is already defined. Overwriting.`),M.push(i),R.set(i.name,i)},"addRule"),K=h(()=>M,"getRules"),J=h(e=>R.get(e),"getRule"),Q=h(e=>{N=k(e).replace(/^\s+/g,""),T.debug("[Railroad] Accessibility title set:",e)},"setAccTitle"),Z=h(()=>N,"getAccTitle"),V=h(e=>{A=k(e).replace(/\n\s+/g,` +`),T.debug("[Railroad] Accessibility description set:",e)},"setAccDescription"),ee=h(()=>A,"getAccDescription"),te=I,re=X,ie={clear:U,setTitle:I,getTitle:X,addRule:j,getRules:K,getRule:J,setAccTitle:Q,getAccTitle:Z,setAccDescription:V,getAccDescription:ee,setDiagramTitle:te,getDiagramTitle:re},g={compactMode:!1,padding:10,verticalSeparation:8,horizontalSeparation:10,arcRadius:10,fontSize:14,fontFamily:"monospace",terminalFill:"#FFFFC0",terminalStroke:"#000000",terminalTextColor:"#000000",nonTerminalFill:"#FFFFFF",nonTerminalStroke:"#000000",nonTerminalTextColor:"#000000",lineColor:"#000000",strokeWidth:2,markerFill:"#000000",commentFill:"#E8E8E8",commentStroke:"#888888",commentTextColor:"#666666",specialFill:"#F0E0FF",specialStroke:"#8800CC",ruleNameColor:"#000066",showMarkers:!0,markerRadius:5},ne=/^#(?:[\da-f]{3,4}|[\da-f]{6}|[\da-f]{8})$|^(?:rgb|rgba|hsl|hsla|hwb|lab|lch|oklab|oklch)\([\d\s%+,./-]+\)$|^[a-z]+$/i,ae=/^[\w "',.-]+$/,oe=new Set(["compactMode","padding","verticalSeparation","horizontalSeparation","arcRadius","fontSize","fontFamily","terminalFill","terminalStroke","terminalTextColor","nonTerminalFill","nonTerminalStroke","nonTerminalTextColor","lineColor","strokeWidth","markerFill","commentFill","commentStroke","commentTextColor","specialFill","specialStroke","ruleNameColor","showMarkers","markerRadius"]),H=h(e=>e?Object.keys(e).every(i=>i==="railroad"||oe.has(i)):!1,"isRailroadStyleOptions"),le=h(e=>e?"railroad"in e&&e.railroad?e.railroad:H(e)?e:{}:{},"extractRailroadOverrides"),se=h(e=>{if(!e||H(e))return{};let{railroad:i,svgId:a,theme:r,look:t,...n}=e;return n},"extractThemeOverrides"),m=h((e,i)=>{if(typeof e!="string")return i;let a=e.trim();return ne.test(a)?a:i},"sanitizeColorValue"),q=h((e,i)=>{if(typeof e!="string")return i;let a=e.trim();return ae.test(a)?a:i},"sanitizeFontFamilyValue"),S=h((e,i)=>{let a=typeof e=="number"?e:typeof e=="string"?Number.parseFloat(e):Number.NaN;return Number.isFinite(a)&&a>=0?a:i},"sanitizeNumberValue"),de=h(e=>{let i=typeof e=="number"?e:typeof e=="string"?Number.parseFloat(e):Number.NaN;return Number.isFinite(i)&&i>0?i:void 0},"parseThemeFontSize"),ce=h(e=>{let i=q(e.fontFamily,g.fontFamily),a=de(e.fontSize)??g.fontSize;return{...g,fontFamily:i,fontSize:a,terminalFill:m(e.secondBkg??e.secondaryColor,g.terminalFill),terminalStroke:m(e.secondaryBorderColor??e.lineColor,g.terminalStroke),terminalTextColor:m(e.secondaryTextColor??e.textColor,g.terminalTextColor),nonTerminalFill:m(e.mainBkg??e.background,g.nonTerminalFill),nonTerminalStroke:m(e.primaryBorderColor??e.lineColor,g.nonTerminalStroke),nonTerminalTextColor:m(e.primaryTextColor??e.textColor,g.nonTerminalTextColor),lineColor:m(e.lineColor,g.lineColor),markerFill:m(e.lineColor,g.markerFill),commentFill:m(e.labelBackground??e.tertiaryColor,g.commentFill),commentStroke:m(e.tertiaryBorderColor??e.lineColor,g.commentStroke),commentTextColor:m(e.tertiaryTextColor??e.textColor,g.commentTextColor),specialFill:m(e.tertiaryColor??e.secondaryColor,g.specialFill),specialStroke:m(e.tertiaryBorderColor??e.secondaryBorderColor,g.specialStroke),ruleNameColor:m(e.titleColor??e.textColor,g.ruleNameColor)}},"buildThemeDefaults"),O=h(e=>{let i=z(),a={...E(),...i.themeVariables??{},...se(e)},r=ce(a),t={...i.railroad??{},...le(e)};return{compactMode:t.compactMode??r.compactMode,padding:S(t.padding,r.padding),verticalSeparation:S(t.verticalSeparation,r.verticalSeparation),horizontalSeparation:S(t.horizontalSeparation,r.horizontalSeparation),arcRadius:S(t.arcRadius,r.arcRadius),fontSize:S(t.fontSize,r.fontSize),fontFamily:q(t.fontFamily,r.fontFamily),terminalFill:m(t.terminalFill,r.terminalFill),terminalStroke:m(t.terminalStroke,r.terminalStroke),terminalTextColor:m(t.terminalTextColor,r.terminalTextColor),nonTerminalFill:m(t.nonTerminalFill,r.nonTerminalFill),nonTerminalStroke:m(t.nonTerminalStroke,r.nonTerminalStroke),nonTerminalTextColor:m(t.nonTerminalTextColor,r.nonTerminalTextColor),lineColor:m(t.lineColor,r.lineColor),strokeWidth:S(t.strokeWidth,r.strokeWidth),markerFill:m(t.markerFill,r.markerFill),commentFill:m(t.commentFill,r.commentFill),commentStroke:m(t.commentStroke,r.commentStroke),commentTextColor:m(t.commentTextColor,r.commentTextColor),specialFill:m(t.specialFill,r.specialFill),specialStroke:m(t.specialStroke,r.specialStroke),ruleNameColor:m(t.ruleNameColor,r.ruleNameColor),showMarkers:t.showMarkers??r.showMarkers,markerRadius:S(t.markerRadius,r.markerRadius)}},"buildRailroadStyleOptions"),Te=h(e=>{let{fontFamily:i,fontSize:a,terminalFill:r,terminalStroke:t,terminalTextColor:n,nonTerminalFill:p,nonTerminalStroke:s,nonTerminalTextColor:o,lineColor:u,strokeWidth:c,markerFill:d,commentFill:w,commentStroke:l,commentTextColor:f,specialFill:y,specialStroke:v,ruleNameColor:C}=O(e);return` + .railroad-diagram { + font-family: ${i}; + font-size: ${a}px; + } + + .railroad-terminal rect { + fill: ${r}; + stroke: ${t}; + stroke-width: ${c}px; + } + + .railroad-terminal text { + fill: ${n}; + font-family: ${i}; + font-size: ${a}px; + text-anchor: middle; + dominant-baseline: middle; + } + + .railroad-nonterminal rect { + fill: ${p}; + stroke: ${s}; + stroke-width: ${c}px; + } + + .railroad-nonterminal text { + fill: ${o}; + font-family: ${i}; + font-size: ${a}px; + text-anchor: middle; + dominant-baseline: middle; + } + + .railroad-line { + stroke: ${u}; + stroke-width: ${c}px; + fill: none; + } + + .railroad-start circle, + .railroad-end circle { + fill: ${d}; + } + + .railroad-comment ellipse { + fill: ${w}; + stroke: ${l}; + stroke-width: ${c}px; + } + + .railroad-comment text { + fill: ${f}; + font-style: italic; + font-family: ${i}; + font-size: ${a}px; + text-anchor: middle; + dominant-baseline: middle; + } + + .railroad-special rect { + fill: ${y}; + stroke: ${v}; + stroke-width: ${c}px; + stroke-dasharray: 5,3; + } + + .railroad-special text { + fill: ${o}; + font-family: ${i}; + font-size: ${a}px; + text-anchor: middle; + dominant-baseline: middle; + } + + .railroad-rule-name { + font-weight: bold; + fill: ${C}; + font-family: ${i}; + font-size: ${a}px; + } + + .railroad-group { + /* Grouping container, no specific styles */ + } +`},"getStyles"),x=class{constructor(){this.d=""}static{h(this,"PathBuilder")}moveTo(e,i){return this.d+=`M ${e} ${i} `,this}lineTo(e,i){return this.d+=`L ${e} ${i} `,this}horizontalTo(e){return this.d+=`H ${e} `,this}verticalTo(e){return this.d+=`V ${e} `,this}arcTo(e,i,a,r,t,n,p){return this.d+=`A ${e} ${i} ${a} ${r?1:0} ${t?1:0} ${n} ${p} `,this}build(){return this.d.trim()}},me=class{constructor(e,i=O()){this.textCache=new Map,this.svg=e,this.config=i}static{h(this,"RailroadRenderer")}measureText(e){if(this.textCache.has(e))return this.textCache.get(e);let i=this.svg.append("text").attr("font-family",this.config.fontFamily).attr("font-size",this.config.fontSize).text(e),a=i.node().getBBox(),r={width:a.width,height:a.height};return i.remove(),this.textCache.set(e,r),r}renderTerminal(e,i){let a=this.measureText(i),r=a.width+this.config.padding*2,t=a.height+this.config.padding*2,n=e.append("g").attr("class","railroad-terminal");return n.append("rect").attr("x",0).attr("y",0).attr("width",r).attr("height",t).attr("rx",10).attr("ry",10),n.append("text").attr("x",r/2).attr("y",t/2).text(i),{element:n.node(),dimensions:{width:r,height:t,up:t/2,down:t/2}}}renderNonTerminal(e,i){let a=this.measureText(i),r=a.width+this.config.padding*2,t=a.height+this.config.padding*2,n=e.append("g").attr("class","railroad-nonterminal");return n.append("rect").attr("x",0).attr("y",0).attr("width",r).attr("height",t),n.append("text").attr("x",r/2).attr("y",t/2).text(i),{element:n.node(),dimensions:{width:r,height:t,up:t/2,down:t/2}}}renderSequence(e,i){let a=i.map(o=>this.renderExpression(e,o)),r=0,t=0,n=0;for(let o of a)r+=o.dimensions.width,t=Math.max(t,o.dimensions.up),n=Math.max(n,o.dimensions.down);r+=(a.length-1)*this.config.horizontalSeparation;let p=e.append("g").attr("class","railroad-sequence"),s=0;for(let o=0;othis.renderExpression(e,d)),r=0,t=0;for(let d of a)r=Math.max(r,d.dimensions.width),t+=d.dimensions.height;t+=(a.length-1)*this.config.verticalSeparation;let n=this.config.arcRadius,p=n*4,s=r+p,o=e.append("g").attr("class","railroad-choice"),u=0,c=t/2;for(let d of a){let w=u,l=w+d.dimensions.up,f=n*2+(r-d.dimensions.width)/2;o.node().appendChild(d.element).setAttribute("transform",`translate(${f}, ${w})`);let v=new x,C=l>c;l===c?v.moveTo(0,c).lineTo(f,l):v.moveTo(0,c).arcTo(n,n,0,!1,C,n,c+(C?n:-n)).lineTo(n,l-(C?n:-n)).arcTo(n,n,0,!1,!C,n*2,l).lineTo(f,l),o.append("path").attr("class","railroad-line").attr("d",v.build());let $=new x,D=f+d.dimensions.width,G=s-n*2;l===c?$.moveTo(D,l).lineTo(s,c):$.moveTo(D,l).lineTo(G,l).arcTo(n,n,0,!1,!C,s-n,l+(C?-n:n)).lineTo(s-n,c+(C?n:-n)).arcTo(n,n,0,!1,C,s,c),o.append("path").attr("class","railroad-line").attr("d",$.build()),u+=d.dimensions.height+this.config.verticalSeparation}return{element:o.node(),dimensions:{width:s,height:t,up:c,down:t-c}}}renderOptional(e,i){let a=this.renderExpression(e,i),r=this.config.arcRadius,t=r*2,n=a.dimensions.width+r*4,p=a.dimensions.height+t,s=e.append("g").attr("class","railroad-optional"),o=r*2,u=t;s.node().appendChild(a.element).setAttribute("transform",`translate(${o}, ${u})`);let d=u+a.dimensions.up,w=new x().moveTo(0,d).lineTo(r*2,d);s.append("path").attr("class","railroad-line").attr("d",w.build());let l=new x().moveTo(o+a.dimensions.width,d).lineTo(n,d);s.append("path").attr("class","railroad-line").attr("d",l.build());let f=new x().moveTo(0,d).arcTo(r,r,0,!1,!1,r,d-r).lineTo(r,r).arcTo(r,r,0,!1,!0,r*2,0).lineTo(n-r*2,0).arcTo(r,r,0,!1,!0,n-r,r).lineTo(n-r,d-r).arcTo(r,r,0,!1,!1,n,d);return s.append("path").attr("class","railroad-line").attr("d",f.build()),{element:s.node(),dimensions:{width:n,height:p,up:d,down:p-d}}}renderRepetition(e,i,a){let r=this.renderExpression(e,i),t=this.config.arcRadius,n=t*2,p=r.dimensions.width+t*4,s=a===0,o=r.dimensions.height+n+(s?n:0),u=e.append("g").attr("class","railroad-repetition"),c=t*2,d=s?n:0;u.node().appendChild(r.element).setAttribute("transform",`translate(${c}, ${d})`);let l=d+r.dimensions.up;u.append("path").attr("class","railroad-line").attr("d",new x().moveTo(0,l).lineTo(t*2,l).build()),u.append("path").attr("class","railroad-line").attr("d",new x().moveTo(c+r.dimensions.width,l).lineTo(p,l).build());let f=d+r.dimensions.height+t,y=new x().moveTo(c+r.dimensions.width,l).arcTo(t,t,0,!1,!0,c+r.dimensions.width+t,l+t).lineTo(c+r.dimensions.width+t,f).arcTo(t,t,0,!1,!0,c+r.dimensions.width,f+t).lineTo(t*2,f+t).arcTo(t,t,0,!1,!0,t,f).lineTo(t,l+t).arcTo(t,t,0,!1,!0,t*2,l);if(u.append("path").attr("class","railroad-line").attr("d",y.build()),s){let v=new x().moveTo(0,l).arcTo(t,t,0,!1,!1,t,l-t).lineTo(t,t).arcTo(t,t,0,!1,!0,t*2,0).lineTo(p-t*2,0).arcTo(t,t,0,!1,!0,p-t,t).lineTo(p-t,l-t).arcTo(t,t,0,!1,!1,p,l);u.append("path").attr("class","railroad-line").attr("d",v.build())}return{element:u.node(),dimensions:{width:p,height:o,up:l,down:o-l}}}renderSpecial(e,i){let a=this.measureText("? "+i+" ?"),r=a.width+this.config.padding*2,t=a.height+this.config.padding*2,n=e.append("g").attr("class","railroad-special");return n.append("rect").attr("x",0).attr("y",0).attr("width",r).attr("height",t),n.append("text").attr("x",r/2).attr("y",t/2).text("? "+i+" ?"),{element:n.node(),dimensions:{width:r,height:t,up:t/2,down:t/2}}}renderExpression(e,i){switch(i.type){case"terminal":return this.renderTerminal(e,i.value);case"nonterminal":return this.renderNonTerminal(e,i.name);case"sequence":return this.renderSequence(e,i.elements);case"choice":return this.renderChoice(e,i.alternatives);case"optional":return this.renderOptional(e,i.element);case"repetition":return this.renderRepetition(e,i.element,i.min);case"special":return this.renderSpecial(e,i.text);default:throw new Error(`Unknown node type: ${i.type}`)}}renderRule(e,i){let a=this.svg.append("g").attr("class","railroad-rule").attr("transform",`translate(0, ${i})`),r=e.name+" =",t=this.measureText(r).width+20,n=t+20,p=a.append("g"),s=this.renderExpression(p,e.definition),o=Math.max(20,s.dimensions.up),u=o-s.dimensions.up;return p.attr("transform",`translate(${n}, ${u})`),a.append("g").attr("class","railroad-rule-name-group").append("text").attr("class","railroad-rule-name").attr("x",0).attr("y",o).text(r),a.append("g").attr("class","railroad-start").append("circle").attr("cx",t).attr("cy",o).attr("r",this.config.markerRadius),a.append("g").attr("class","railroad-end").append("circle").attr("cx",n+s.dimensions.width+10).attr("cy",o).attr("r",this.config.markerRadius),a.append("path").attr("class","railroad-line").attr("d",new x().moveTo(t+this.config.markerRadius,o).lineTo(n,o).build()),a.append("path").attr("class","railroad-line").attr("d",new x().moveTo(n+s.dimensions.width,o).lineTo(n+s.dimensions.width+10-this.config.markerRadius,o).build()),{height:Math.max(40,u+s.dimensions.height+this.config.padding*2),width:n+s.dimensions.width+10+this.config.markerRadius}}renderDiagram(e){let i=this.config.padding,a=0;for(let r of e){let t=this.renderRule(r,i);i+=t.height+this.config.verticalSeparation,a=Math.max(a,t.width)}return{width:a+this.config.padding*2,height:i+this.config.padding}}},L=h((e,i,a)=>{_(e,i.height,i.width,a),e.attr("viewBox",`0 0 ${i.width} ${i.height}`)},"configureRailroadSvgSize"),he=h((e,i,a)=>{T.debug(`[Railroad] Rendering diagram +`+e);try{let r=P(i);r.attr("class","railroad-diagram");let n=z().railroad?.useMaxWidth??!0,p=ie.getRules();if(T.debug(`[Railroad] Rendering ${p.length} rules`),p.length===0){T.warn("[Railroad] No rules to render"),L(r,{height:100,width:200},n);return}let o=new me(r,O()).renderDiagram(p);L(r,o,n),T.debug("[Railroad] Render complete")}catch(r){throw T.error("[Railroad] Render error:",r),r}},"draw"),xe={draw:he};export{ie as a,Te as b,xe as c}; diff --git a/src/frontend/web/von_interface/static/vendor/conversation-visuals/chunk-6NDAIVIK.js b/src/frontend/web/von_interface/static/vendor/conversation-visuals/chunk-6NDAIVIK.js new file mode 100644 index 000000000..cd4c8311b --- /dev/null +++ b/src/frontend/web/von_interface/static/vendor/conversation-visuals/chunk-6NDAIVIK.js @@ -0,0 +1 @@ +import{a as t}from"./chunk-YUSHYV7C.js";var u=new Set(["redux-color","redux-dark-color"]),S=12,v=64,a=t(r=>Array.isArray(r)&&r.length>0,"hasPalette"),O=t((r,o)=>r!=null&&u.has(r)&&a(o),"isColorTheme"),c=/^[\w-]+$/,_=t(r=>{let o=typeof r=="string"||typeof r=="number"?String(r):"";return c.test(o)?o:"classic"},"safeLook"),s=t(r=>a(r)?r.length:0,"paletteSlotCount"),C=t((r,o)=>a(o)?s(o):typeof r=="number"&&Number.isInteger(r)&&r>0&&r<=v?r:S,"colorSlotCount"),T=t((r,o,e,n)=>{if(o===void 0||!O(e,n))return;let l=o%s(n);r.attr("data-color-id",`color-${l}`)},"stampColorSlot");export{u as a,a as b,O as c,_ as d,s as e,C as f,T as g}; diff --git a/src/frontend/web/von_interface/static/vendor/conversation-visuals/chunk-7MD2P5DB.js b/src/frontend/web/von_interface/static/vendor/conversation-visuals/chunk-7MD2P5DB.js new file mode 100644 index 000000000..df22cf36a --- /dev/null +++ b/src/frontend/web/von_interface/static/vendor/conversation-visuals/chunk-7MD2P5DB.js @@ -0,0 +1,213 @@ +import{a as c1}from"./chunk-QP3MATMC.js";import{a as h1}from"./chunk-VNMAEQZK.js";import{a as d1}from"./chunk-EQQJCVK6.js";import{a as e1,b as t1}from"./chunk-GDGZBOQC.js";import{b as u1,c as o1}from"./chunk-2AVNI7YL.js";import{h as l1}from"./chunk-L56KSVJM.js";import{h as n1}from"./chunk-TEBTVNCH.js";import{b as s1,c as i1,d as r1,f as a1}from"./chunk-6NDAIVIK.js";import{p as Qe,s as Je}from"./chunk-EUYVSIXP.js";import{$ as be,O as jt,U as Kt,V as Yt,W as Ht,X as qt,Y as Xt,Z as Qt,_ as Jt,a as Ut,aa as Zt,b as Wt,ba as $t,g as zt}from"./chunk-S4JILX6U.js";import{b as te,h as Xe}from"./chunk-XEQL7KGA.js";import{a as g}from"./chunk-YUSHYV7C.js";var C1="flowchart-",D1=class{constructor(){this.vertexCounter=0,this.config=be(),this.diagramId="",this.vertices=new Map,this.edges=[],this.classes=new Map,this.subGraphs=[],this.subGraphLookup=new Map,this.tooltips=new Map,this.subCount=0,this.firstGraphFlag=!0,this.secCount=-1,this.posCrossRef=[],this.funs=[],this.setAccTitle=Yt,this.setAccDescription=qt,this.setDiagramTitle=Qt,this.getAccTitle=Ht,this.getAccDescription=Xt,this.getDiagramTitle=Jt,this.funs.push(this.setupToolTips.bind(this)),this.addVertex=this.addVertex.bind(this),this.firstGraph=this.firstGraph.bind(this),this.setDirection=this.setDirection.bind(this),this.addSubGraph=this.addSubGraph.bind(this),this.addLink=this.addLink.bind(this),this.setLink=this.setLink.bind(this),this.updateLink=this.updateLink.bind(this),this.addClass=this.addClass.bind(this),this.setClass=this.setClass.bind(this),this.destructLink=this.destructLink.bind(this),this.setClickEvent=this.setClickEvent.bind(this),this.setTooltip=this.setTooltip.bind(this),this.updateLinkInterpolate=this.updateLinkInterpolate.bind(this),this.setClickFun=this.setClickFun.bind(this),this.bindFunctions=this.bindFunctions.bind(this),this.lex={firstGraph:this.firstGraph.bind(this)},this.clear(),this.setGen("gen-2")}static{g(this,"FlowDB")}sanitizeText(e){return jt.sanitizeText(e,this.config)}sanitizeNodeLabelType(e){switch(e){case"markdown":case"string":case"text":return e;default:return"markdown"}}setDiagramId(e){this.diagramId=e}lookUpDomId(e){for(let i of this.vertices.values())if(i.id===e)return this.diagramId?`${this.diagramId}-${i.domId}`:i.domId;return this.diagramId?`${this.diagramId}-${e}`:e}addVertex(e,i,r,a,u,d,o={},f){if(!e||e.trim().length===0)return;let c;if(f!==void 0){let m;f.includes(` +`)?m=f+` +`:m=`{ +`+f+` +}`,c=t1(m,{schema:e1})}let v=this.subGraphLookup.get(e);if(v&&c){v.metadata={...v.metadata,...c};return}let S=this.edges.find(m=>m.id===e);if(S){let m=c;m?.animate!==void 0&&(S.animate=m.animate),m?.animation!==void 0&&(S.animation=m.animation),m?.curve!==void 0&&(S.interpolate=m.curve);return}let F,A=this.vertices.get(e);if(A===void 0&&(i===void 0&&r===void 0&&a!==void 0&&a!==null&&te.warn(`Style applied to unknown node "${e}". This may indicate a typo. The node will be created automatically.`),A={id:e,labelType:"text",domId:C1+e+"-"+this.vertexCounter,styles:[],classes:[]},this.vertices.set(e,A)),this.vertexCounter++,i!==void 0?(this.config=be(),F=this.sanitizeText(i.text.trim()),A.labelType=i.type,F.startsWith('"')&&F.endsWith('"')&&(F=F.substring(1,F.length-1)),A.text=F):A.text===void 0&&(A.text=e),r!==void 0&&(A.type=r),a?.forEach(m=>{A.styles.push(m)}),u?.forEach(m=>{A.classes.push(m)}),d!==void 0&&(A.dir=d),A.props===void 0?A.props=o:o!==void 0&&Object.assign(A.props,o),c!==void 0){if(c.shape){if(c.shape!==c.shape.toLowerCase()||c.shape.includes("_"))throw new Error(`No such shape: ${c.shape}. Shape names should be lowercase.`);if(!n1(c.shape))throw new Error(`No such shape: ${c.shape}.`);A.type=c?.shape}c?.label&&(A.text=c?.label,A.labelType=this.sanitizeNodeLabelType(c?.labelType)),c?.icon&&(A.icon=c?.icon,!c.label?.trim()&&A.text===e&&(A.text="")),c?.form&&(A.form=c?.form),c?.pos&&(A.pos=c?.pos),c?.img&&(A.img=c?.img,!c.label?.trim()&&A.text===e&&(A.text="")),c?.constraint&&(A.constraint=c.constraint),c.w&&(A.assetWidth=Number(c.w)),c.h&&(A.assetHeight=Number(c.h))}}addSingleLink(e,i,r,a){let o={start:e,end:i,type:void 0,text:"",labelType:"text",classes:[],isUserDefinedId:!1,interpolate:this.edges.defaultInterpolate};te.info("abc78 Got edge...",o);let f=r.text;if(f!==void 0&&(o.text=this.sanitizeText(f.text.trim()),o.text.startsWith('"')&&o.text.endsWith('"')&&(o.text=o.text.substring(1,o.text.length-1)),o.labelType=this.sanitizeNodeLabelType(f.type)),r!==void 0&&(o.type=r.type,o.stroke=r.stroke,o.length=r.length>10?10:r.length),a&&!this.edges.some(c=>c.id===a))o.id=a,o.isUserDefinedId=!0;else{let c=this.edges.filter(v=>v.start===o.start&&v.end===o.end);c.length===0?o.id=Je(o.start,o.end,{counter:0,prefix:"L"}):o.id=Je(o.start,o.end,{counter:c.length+1,prefix:"L"})}if(this.edges.length<(this.config.maxEdges??500))te.info("Pushing edge..."),this.edges.push(o);else throw new Error(`Edge limit exceeded. ${this.edges.length} edges found, but the limit is ${this.config.maxEdges}. + +Initialize mermaid with maxEdges set to a higher number to allow more edges. +You cannot set this config via configuration inside the diagram as it is a secure config. +You have to call mermaid.initialize.`)}isLinkData(e){return e!==null&&typeof e=="object"&&"id"in e&&typeof e.id=="string"}addLink(e,i,r){let a=this.isLinkData(r)?r.id.replace("@",""):void 0;te.info("addLink",e,i,a);for(let u of e)for(let d of i){let o=u===e[e.length-1],f=d===i[0];o&&f?this.addSingleLink(u,d,r,a):this.addSingleLink(u,d,r,void 0)}}updateLinkInterpolate(e,i){e.forEach(r=>{r==="default"?this.edges.defaultInterpolate=i:this.edges[r].interpolate=i})}updateLink(e,i){e.forEach(r=>{if(typeof r=="number"&&r>=this.edges.length)throw new Error(`The index ${r} for linkStyle is out of bounds. Valid indices for linkStyle are between 0 and ${this.edges.length-1}. (Help: Ensure that the index is within the range of existing edges.)`);r==="default"?this.edges.defaultStyle=i:(this.edges[r].style=i,(this.edges[r]?.style?.length??0)>0&&!this.edges[r]?.style?.some(a=>a?.startsWith("fill"))&&this.edges[r]?.style?.push("fill:none"))})}addClass(e,i){let r=i.join().replace(/\\,/g,"\xA7\xA7\xA7").replace(/,/g,";").replace(/§§§/g,",").split(";");e.split(",").forEach(a=>{let u=this.classes.get(a);u===void 0&&(u={id:a,styles:[],textStyles:[]},this.classes.set(a,u)),r?.forEach(d=>{if(/color/.exec(d)){let o=d.replace("fill","bgFill");u.textStyles.push(o)}u.styles.push(d)})})}setDirection(e){this.direction=e.trim(),/.*/.exec(this.direction)&&(this.direction="LR"),/.*v/.exec(this.direction)&&(this.direction="TB"),this.direction==="TD"&&(this.direction="TB")}setClass(e,i){for(let r of e.split(",")){let a=this.vertices.get(r);a&&a.classes.push(i);let u=this.edges.find(o=>o.id===r);u&&u.classes.push(i);let d=this.subGraphLookup.get(r);d&&d.classes.push(i)}}setTooltip(e,i){if(i!==void 0){i=this.sanitizeText(i);for(let r of e.split(","))this.tooltips.set(this.version==="gen-1"?this.lookUpDomId(r):r,i)}}setClickFun(e,i,r){if(be().securityLevel!=="loose"||i===void 0)return;let a=[];if(typeof r=="string"){a=r.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(let d=0;d{let d=this.lookUpDomId(e),o=document.querySelector(`[id="${d}"]`);o!==null&&o.addEventListener("click",()=>{Qe.runFunc(i,...a)},!1)}))}setLink(e,i,r){e.split(",").forEach(a=>{let u=this.vertices.get(a);u!==void 0&&(u.link=Qe.formatUrl(i,this.config),u.linkTarget=r)}),this.setClass(e,"clickable")}getTooltip(e){return this.tooltips.get(e)}setClickEvent(e,i,r){e.split(",").forEach(a=>{this.setClickFun(a,i,r)}),this.setClass(e,"clickable")}bindFunctions(e){this.funs.forEach(i=>{i(e)})}getDirection(){return this.direction?.trim()}getVertices(){return this.vertices}getEdges(){return this.edges}getClasses(){return this.classes}setupToolTips(e){let i=l1();Xe(e).select("svg").selectAll("g.node").on("mouseover",u=>{let d=Xe(u.currentTarget),o=d.attr("title");if(o===null)return;let f=u.currentTarget?.getBoundingClientRect();i.transition().duration(200).style("opacity",".9"),i.text(d.attr("title")).style("left",window.scrollX+f.left+(f.right-f.left)/2+"px").style("top",window.scrollY+f.bottom+"px"),i.html(zt.sanitize(o)),d.classed("hover",!0)}).on("mouseout",u=>{i.transition().duration(500).style("opacity",0),Xe(u.currentTarget).classed("hover",!1)})}clear(e="gen-2"){this.vertices=new Map,this.classes=new Map,this.edges=[],this.funs=[this.setupToolTips.bind(this)],this.diagramId="",this.subGraphs=[],this.subGraphLookup=new Map,this.subCount=0,this.tooltips=new Map,this.firstGraphFlag=!0,this.version=e,this.config=be(),Kt()}setGen(e){this.version=e||"gen-2"}defaultStyle(){return"fill:#ffa;stroke: #f66; stroke-width: 3px; stroke-dasharray: 5, 5;fill:#ffa;stroke: #666;"}addSubGraph(e,i,r){let a=e.text.trim(),u=r.text;e===r&&/\s/.exec(r.text)&&(a=void 0);let o=g(F=>{let A={boolean:{},number:{},string:{}},m=[],y;return{nodeList:F.filter(function(j){let l=typeof j;return j.stmt&&j.stmt==="dir"?(y=j.value,!1):j.trim()===""?!1:l in A?A[l].hasOwnProperty(j)?!1:A[l][j]=!0:m.includes(j)?!1:m.push(j)}),dir:y}},"uniq")(i.flat()),f=o.nodeList,c=o.dir,v=be().flowchart??{};if(c=c??(v.inheritDir?this.getDirection()??be().direction??void 0:void 0),this.version==="gen-1")for(let F=0;F2e3)return{result:!1,count:0};if(this.posCrossRef[this.secCount]=i,this.subGraphs[i].id===e)return{result:!0,count:0};let a=0,u=1;for(;a=0){let o=this.indexNodes2(e,d);if(o.result)return{result:!0,count:u+o.count};u=u+o.count}a=a+1}return{result:!1,count:u}}getDepthFirstPos(e){return this.posCrossRef[e]}indexNodes(){this.secCount=-1,this.subGraphs.length>0&&this.indexNodes2("none",this.subGraphs.length-1)}getSubGraphs(){return this.subGraphs}firstGraph(){return this.firstGraphFlag?(this.firstGraphFlag=!1,!0):!1}destructStartLink(e){let i=e.trim(),r="arrow_open";switch(i[0]){case"<":r="arrow_point",i=i.slice(1);break;case"x":r="arrow_cross",i=i.slice(1);break;case"o":r="arrow_circle",i=i.slice(1);break}let a="normal";return i.includes("=")&&(a="thick"),i.includes(".")&&(a="dotted"),{type:r,stroke:a}}countChar(e,i){let r=i.length,a=0;for(let u=0;u":a="arrow_point",i.startsWith("<")&&(a="double_"+a,r=r.slice(1));break;case"o":a="arrow_circle",i.startsWith("o")&&(a="double_"+a,r=r.slice(1));break}let u="normal",d=r.length-1;r.startsWith("=")&&(u="thick"),r.startsWith("~")&&(u="invisible");let o=this.countChar(".",r);return o&&(u="dotted",d=o),{type:a,stroke:u,length:d}}destructLink(e,i){let r=this.destructEndLink(e),a;if(i){if(a=this.destructStartLink(i),a.stroke!==r.stroke)return{type:"INVALID",stroke:"INVALID"};if(a.type==="arrow_open")a.type=r.type;else{if(a.type!==r.type)return{type:"INVALID",stroke:"INVALID"};a.type="double_"+a.type}return a.type==="double_arrow"&&(a.type="double_arrow_point"),a.length=r.length,a}return r}exists(e,i){for(let r of e)if(r.nodes.includes(i))return!0;return!1}makeUniq(e,i){let r=[];return e.nodes.forEach((a,u)=>{this.exists(i,a)||r.push(e.nodes[u])}),{nodes:r}}getTypeFromVertex(e){if(e.img)return"imageSquare";if(e.icon)return e.form==="circle"?"iconCircle":e.form==="square"?"iconSquare":e.form==="rounded"?"iconRounded":"icon";switch(e.type){case"square":case void 0:return"squareRect";case"round":return"roundedRect";case"ellipse":return"ellipse";default:return e.type}}findNode(e,i){return e.find(r=>r.id===i)}destructEdgeType(e){let i="none",r="arrow_point";switch(e){case"arrow_point":case"arrow_circle":case"arrow_cross":r=e;break;case"double_arrow_point":case"double_arrow_circle":case"double_arrow_cross":i=e.replace("double_",""),r=i;break}return{arrowTypeStart:i,arrowTypeEnd:r}}addNodeFromVertex(e,i,r,a,u,d){let o=r.get(e.id),f=a.get(e.id)??!1,c=this.findNode(i,e.id);if(c)c.cssStyles=e.styles,c.cssCompiledStyles=this.getCompiledStyles(e.classes),c.cssClasses=e.classes.join(" ");else{let v={id:e.id,label:e.text,labelType:e.labelType,labelStyle:"",parentId:o,padding:u.flowchart?.padding||8,cssStyles:e.styles,cssCompiledStyles:this.getCompiledStyles(["default","node",...e.classes]),cssClasses:"default "+e.classes.join(" "),dir:e.dir,domId:e.domId,look:d,link:e.link,linkTarget:e.linkTarget,tooltip:this.getTooltip(e.id),icon:e.icon,pos:e.pos,img:e.img,assetWidth:e.assetWidth,assetHeight:e.assetHeight,constraint:e.constraint};f?i.push({...v,isGroup:!0,shape:"rect"}):i.push({...v,isGroup:!1,shape:this.getTypeFromVertex(e),minWidth:u.flowchart?.minNodeWidth})}}getCompiledStyles(e){let i=[];for(let r of e){let a=this.classes.get(r);a?.styles&&(i=[...i,...a.styles??[]].map(u=>u.trim())),a?.textStyles&&(i=[...i,...a.textStyles??[]].map(u=>u.trim()))}return i}getData(){let e=be(),i=[],r=[],a=this.getSubGraphs(),u=new Map,d=new Map,o=new Map;for(let l of a)for(let b of l.nodes)this.subGraphLookup.has(b)&&o.set(b,l.id);let f=new Map,c=new Map;for(let l of a){let b=o.get(l.id);b!==void 0&&c.set(b,[...c.get(b)??[],l.id])}let v=0,S=g(l=>{f.set(l,v++);for(let b of c.get(l)??[])S(b)},"walk");for(let l of a)o.has(l.id)||S(l.id);let F=g(l=>this.subGraphLookup.get(l)?.metadata?.view==="collapsed","isCollapsed"),A=g(l=>{let b,q=new Set,Q=l;for(;Q!==void 0&&!q.has(Q);)q.add(Q),F(Q)&&(b=Q),Q=o.get(Q);return b},"outermostCollapsed"),m=new Set,y=new Map;for(let l of a){let b=A(l.id);if(b!==void 0){l.id!==b&&(m.add(l.id),y.set(l.id,b));for(let q of l.nodes)q!==b&&(m.add(q),y.set(q,b))}}for(let l=a.length-1;l>=0;l--){let b=a[l];if(!m.has(b.id)){b.nodes.length>0&&d.set(b.id,!0);for(let q of b.nodes)u.set(q,b.id)}}for(let l=a.length-1;l>=0;l--){let b=a[l];m.has(b.id)||(b.metadata?.view==="collapsed"?i.push({id:b.id,label:b.title,labelStyle:"",labelType:b.labelType,parentId:u.get(b.id),padding:8,cssCompiledStyles:this.getCompiledStyles(b.classes),cssClasses:b.classes.join(" "),shape:"collapsedGroup",dir:b.dir,isGroup:!1,look:e.look,colorIndex:f.get(b.id)}):i.push({id:b.id,label:b.title,labelStyle:"",labelType:b.labelType,parentId:u.get(b.id),padding:8,cssCompiledStyles:this.getCompiledStyles(b.classes),cssClasses:b.classes.join(" "),shape:"rect",dir:b.dir,isGroup:!0,look:e.look,colorIndex:f.get(b.id),metadata:b.metadata}))}this.getVertices().forEach(l=>{m.has(l.id)||this.addNodeFromVertex(l,i,u,d,e,e.look||"classic")});let j=this.getEdges();return j.forEach((l,b)=>{let{arrowTypeStart:q,arrowTypeEnd:Q}=this.destructEdgeType(l.type),V=[...j.defaultStyle??[]],w=y.get(l.start)??l.start,I=y.get(l.end)??l.end;if(w===I&&(y.has(l.start)||y.has(l.end)))return;l.style&&V.push(...l.style);let N={id:Je(w,I,{counter:b,prefix:"L"},l.id),isUserDefinedId:l.isUserDefinedId,start:w,end:I,type:l.type??"normal",label:l.text,labelType:l.labelType,labelpos:"c",thickness:l.stroke,minlen:l.length,classes:l?.stroke==="invisible"?"":"edge-thickness-normal edge-pattern-solid flowchart-link",arrowTypeStart:l?.stroke==="invisible"||l?.type==="arrow_open"?"none":q,arrowTypeEnd:l?.stroke==="invisible"||l?.type==="arrow_open"?"none":Q,arrowheadStyle:"fill: #333",cssCompiledStyles:this.getCompiledStyles(l.classes),labelStyle:V,style:V,pattern:l.stroke,look:e.look,animate:l.animate,animation:l.animation,curve:l.interpolate||this.edges.defaultInterpolate||e.flowchart?.curve};r.push(N)}),{nodes:i,edges:r,other:{},config:e}}defaultConfig(){return $t.flowchart}},T1=g(function(e,i){return i.db.getClasses()},"getClasses"),E1=g(async function(e,i,r,a){te.info("REF0:"),te.info("Drawing state diagram (v2)",i);let{securityLevel:u,flowchart:d,layout:o}=be();a.db.setDiagramId(i),te.debug("Before getData: ");let f=a.db.getData();te.debug("Data: ",f);let c=h1(i,u),v=a.db.getDirection();f.type=a.type,f.layoutAlgorithm=o1(o),f.direction=v,f.nodeSpacing=d?.nodeSpacing||50,f.rankSpacing=d?.rankSpacing||50,f.markers=["point","circle","cross"],f.diagramId=i,te.debug("REF1:",f),await u1(f,c);let S=f.config.flowchart?.diagramPadding??8;Qe.insertTitle(c,"flowchartTitleText",d?.titleTopMargin||0,a.db.getDiagramTitle()),d1(c,S,"flowchart",d?.useMaxWidth||!1)},"draw"),S1={getClasses:T1,draw:E1},at=(function(){var e=g(function(Ae,h,p,k){for(p=p||{},k=Ae.length;k--;p[Ae[k]]=h);return p},"o"),i=[1,4],r=[1,3],a=[1,5],u=[1,8,9,10,11,27,34,36,38,44,60,84,85,86,87,88,89,102,105,106,109,111,114,115,116,121,122,123,124,125],d=[2,2],o=[1,13],f=[1,14],c=[1,15],v=[1,16],S=[1,23],F=[1,25],A=[1,26],m=[1,27],y=[1,50],R=[1,49],j=[1,29],l=[1,30],b=[1,31],q=[1,32],Q=[1,33],V=[1,45],w=[1,47],I=[1,43],N=[1,48],P=[1,44],O=[1,51],M=[1,46],U=[1,52],W=[1,53],Oe=[1,34],Me=[1,35],Ue=[1,36],We=[1,37],ze=[1,38],ke=[1,58],x=[1,8,9,10,11,27,32,34,36,38,44,60,84,85,86,87,88,89,102,105,106,109,111,114,115,116,121,122,123,124,125],ie=[1,62],re=[1,61],ae=[1,63],Ee=[8,9,11,75,77,78],nt=[1,79],Se=[1,92],ye=[1,97],xe=[1,96],Fe=[1,93],_e=[1,89],Be=[1,95],ve=[1,91],Le=[1,98],Ve=[1,94],we=[1,99],Ie=[1,90],me=[8,9,10,11,40,75,77,78],K=[8,9,10,11,40,46,75,77,78],J=[8,9,10,11,29,40,44,46,48,50,52,54,56,58,60,63,65,67,68,70,75,77,78,89,102,105,106,109,111,114,115,116],ut=[8,9,11,44,60,75,77,78,89,102,105,106,109,111,114,115,116],Re=[44,60,89,102,105,106,109,111,114,115,116],ot=[1,122],lt=[1,123],je=[1,125],Ke=[1,124],ct=[44,60,62,74,89,102,105,106,109,111,114,115,116],ht=[1,134],dt=[1,148],pt=[1,149],ft=[1,150],bt=[1,151],kt=[1,136],gt=[1,138],At=[1,142],mt=[1,143],Ct=[1,144],Dt=[1,145],Tt=[1,146],Et=[1,147],St=[1,152],yt=[1,153],xt=[1,132],Ft=[1,133],_t=[1,140],Bt=[1,135],vt=[1,139],Lt=[1,137],Ze=[8,9,10,11,27,32,34,36,38,44,60,84,85,86,87,88,89,102,105,106,109,111,114,115,116,121,122,123,124,125],Vt=[1,155],wt=[1,157],L=[8,9,11],Z=[8,9,10,11,14,44,60,89,105,106,109,111,114,115,116],C=[1,177],Y=[1,173],H=[1,174],D=[1,178],T=[1,175],E=[1,176],Ne=[77,116,119],_=[8,9,10,11,12,14,27,29,32,44,60,75,84,85,86,87,88,89,90,105,109,111,114,115,116],It=[10,106],ge=[31,49,51,53,55,57,62,64,66,67,69,71,116,117,118],ne=[1,248],ue=[1,246],oe=[1,250],le=[1,244],ce=[1,245],he=[1,247],de=[1,249],pe=[1,251],Ge=[1,269],Rt=[8,9,11,106],se=[8,9,10,11,60,84,105,106,109,110,111,112],$e={trace:g(function(){},"trace"),yy:{},symbols_:{error:2,start:3,graphConfig:4,document:5,line:6,statement:7,SEMI:8,NEWLINE:9,SPACE:10,EOF:11,GRAPH:12,NODIR:13,DIR:14,FirstStmtSeparator:15,ending:16,endToken:17,spaceList:18,spaceListNewline:19,vertexStatement:20,separator:21,styleStatement:22,linkStyleStatement:23,classDefStatement:24,classStatement:25,clickStatement:26,subgraph:27,textNoTags:28,SQS:29,text:30,SQE:31,end:32,direction:33,acc_title:34,acc_title_value:35,acc_descr:36,acc_descr_value:37,acc_descr_multiline_value:38,shapeData:39,SHAPE_DATA:40,link:41,node:42,styledVertex:43,AMP:44,vertex:45,STYLE_SEPARATOR:46,idString:47,DOUBLECIRCLESTART:48,DOUBLECIRCLEEND:49,PS:50,PE:51,"(-":52,"-)":53,STADIUMSTART:54,STADIUMEND:55,SUBROUTINESTART:56,SUBROUTINEEND:57,VERTEX_WITH_PROPS_START:58,"NODE_STRING[field]":59,COLON:60,"NODE_STRING[value]":61,PIPE:62,CYLINDERSTART:63,CYLINDEREND:64,DIAMOND_START:65,DIAMOND_STOP:66,TAGEND:67,TRAPSTART:68,TRAPEND:69,INVTRAPSTART:70,INVTRAPEND:71,linkStatement:72,arrowText:73,TESTSTR:74,START_LINK:75,edgeText:76,LINK:77,LINK_ID:78,edgeTextToken:79,STR:80,MD_STR:81,textToken:82,keywords:83,STYLE:84,LINKSTYLE:85,CLASSDEF:86,CLASS:87,CLICK:88,DOWN:89,UP:90,textNoTagsToken:91,stylesOpt:92,"idString[vertex]":93,"idString[class]":94,CALLBACKNAME:95,CALLBACKARGS:96,HREF:97,LINK_TARGET:98,"STR[link]":99,"STR[tooltip]":100,alphaNum:101,DEFAULT:102,numList:103,INTERPOLATE:104,NUM:105,COMMA:106,style:107,styleComponent:108,NODE_STRING:109,UNIT:110,BRKT:111,PCT:112,idStringToken:113,MINUS:114,MULT:115,UNICODE_TEXT:116,TEXT:117,TAGSTART:118,EDGE_TEXT:119,alphaNumToken:120,direction_tb:121,direction_bt:122,direction_rl:123,direction_lr:124,direction_td:125,$accept:0,$end:1},terminals_:{2:"error",8:"SEMI",9:"NEWLINE",10:"SPACE",11:"EOF",12:"GRAPH",13:"NODIR",14:"DIR",27:"subgraph",29:"SQS",31:"SQE",32:"end",34:"acc_title",35:"acc_title_value",36:"acc_descr",37:"acc_descr_value",38:"acc_descr_multiline_value",40:"SHAPE_DATA",44:"AMP",46:"STYLE_SEPARATOR",48:"DOUBLECIRCLESTART",49:"DOUBLECIRCLEEND",50:"PS",51:"PE",52:"(-",53:"-)",54:"STADIUMSTART",55:"STADIUMEND",56:"SUBROUTINESTART",57:"SUBROUTINEEND",58:"VERTEX_WITH_PROPS_START",59:"NODE_STRING[field]",60:"COLON",61:"NODE_STRING[value]",62:"PIPE",63:"CYLINDERSTART",64:"CYLINDEREND",65:"DIAMOND_START",66:"DIAMOND_STOP",67:"TAGEND",68:"TRAPSTART",69:"TRAPEND",70:"INVTRAPSTART",71:"INVTRAPEND",74:"TESTSTR",75:"START_LINK",77:"LINK",78:"LINK_ID",80:"STR",81:"MD_STR",84:"STYLE",85:"LINKSTYLE",86:"CLASSDEF",87:"CLASS",88:"CLICK",89:"DOWN",90:"UP",93:"idString[vertex]",94:"idString[class]",95:"CALLBACKNAME",96:"CALLBACKARGS",97:"HREF",98:"LINK_TARGET",99:"STR[link]",100:"STR[tooltip]",102:"DEFAULT",104:"INTERPOLATE",105:"NUM",106:"COMMA",109:"NODE_STRING",110:"UNIT",111:"BRKT",112:"PCT",114:"MINUS",115:"MULT",116:"UNICODE_TEXT",117:"TEXT",118:"TAGSTART",119:"EDGE_TEXT",121:"direction_tb",122:"direction_bt",123:"direction_rl",124:"direction_lr",125:"direction_td"},productions_:[0,[3,2],[5,0],[5,2],[6,1],[6,1],[6,1],[6,1],[6,1],[4,2],[4,2],[4,2],[4,3],[16,2],[16,1],[17,1],[17,1],[17,1],[15,1],[15,1],[15,2],[19,2],[19,2],[19,1],[19,1],[18,2],[18,1],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[7,9],[7,6],[7,4],[7,1],[7,2],[7,2],[7,1],[21,1],[21,1],[21,1],[39,2],[39,1],[20,4],[20,3],[20,4],[20,2],[20,2],[20,1],[42,1],[42,6],[42,5],[43,1],[43,3],[45,4],[45,4],[45,6],[45,4],[45,4],[45,4],[45,8],[45,4],[45,4],[45,4],[45,6],[45,4],[45,4],[45,4],[45,4],[45,4],[45,1],[41,2],[41,3],[41,3],[41,1],[41,3],[41,4],[76,1],[76,2],[76,1],[76,1],[72,1],[72,2],[73,3],[30,1],[30,2],[30,1],[30,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[28,1],[28,2],[28,1],[28,1],[24,5],[25,5],[26,2],[26,4],[26,3],[26,5],[26,3],[26,5],[26,5],[26,7],[26,2],[26,4],[26,2],[26,4],[26,4],[26,6],[22,5],[23,5],[23,5],[23,9],[23,9],[23,7],[23,7],[103,1],[103,3],[92,1],[92,3],[107,1],[107,2],[108,1],[108,1],[108,1],[108,1],[108,1],[108,1],[108,1],[108,1],[113,1],[113,1],[113,1],[113,1],[113,1],[113,1],[113,1],[113,1],[113,1],[113,1],[113,1],[82,1],[82,1],[82,1],[82,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[79,1],[79,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[47,1],[47,2],[101,1],[101,2],[33,1],[33,1],[33,1],[33,1],[33,1]],performAction:g(function(h,p,k,n,B,t,Ce){var s=t.length-1;switch(B){case 2:this.$=[];break;case 3:(!Array.isArray(t[s])||t[s].length>0)&&t[s-1].push(t[s]),this.$=t[s-1];break;case 4:case 183:this.$=t[s];break;case 11:n.setDirection("TB"),this.$="TB";break;case 12:n.setDirection(t[s-1]),this.$=t[s-1];break;case 27:this.$=t[s-1].nodes;break;case 28:case 29:case 30:case 31:case 32:this.$=[];break;case 33:this.$=n.addSubGraph(t[s-6],t[s-1],t[s-4]);break;case 34:this.$=n.addSubGraph(t[s-3],t[s-1],t[s-3]);break;case 35:this.$=n.addSubGraph(void 0,t[s-1],void 0);break;case 37:this.$=t[s].trim(),n.setAccTitle(this.$);break;case 38:case 39:this.$=t[s].trim(),n.setAccDescription(this.$);break;case 43:this.$=t[s-1]+t[s];break;case 44:this.$=t[s];break;case 45:n.addVertex(t[s-1][t[s-1].length-1],void 0,void 0,void 0,void 0,void 0,void 0,t[s]),n.addLink(t[s-3].stmt,t[s-1],t[s-2]),this.$={stmt:t[s-1],nodes:t[s-1].concat(t[s-3].nodes)};break;case 46:n.addLink(t[s-2].stmt,t[s],t[s-1]),this.$={stmt:t[s],nodes:t[s].concat(t[s-2].nodes)};break;case 47:n.addLink(t[s-3].stmt,t[s-1],t[s-2]),this.$={stmt:t[s-1],nodes:t[s-1].concat(t[s-3].nodes)};break;case 48:this.$={stmt:t[s-1],nodes:t[s-1]};break;case 49:n.addVertex(t[s-1][t[s-1].length-1],void 0,void 0,void 0,void 0,void 0,void 0,t[s]),this.$={stmt:t[s-1],nodes:t[s-1],shapeData:t[s]};break;case 50:this.$={stmt:t[s],nodes:t[s]};break;case 51:this.$=[t[s]];break;case 52:n.addVertex(t[s-5][t[s-5].length-1],void 0,void 0,void 0,void 0,void 0,void 0,t[s-4]),this.$=t[s-5].concat(t[s]);break;case 53:this.$=t[s-4].concat(t[s]);break;case 54:this.$=t[s];break;case 55:this.$=t[s-2],n.setClass(t[s-2],t[s]);break;case 56:this.$=t[s-3],n.addVertex(t[s-3],t[s-1],"square");break;case 57:this.$=t[s-3],n.addVertex(t[s-3],t[s-1],"doublecircle");break;case 58:this.$=t[s-5],n.addVertex(t[s-5],t[s-2],"circle");break;case 59:this.$=t[s-3],n.addVertex(t[s-3],t[s-1],"ellipse");break;case 60:this.$=t[s-3],n.addVertex(t[s-3],t[s-1],"stadium");break;case 61:this.$=t[s-3],n.addVertex(t[s-3],t[s-1],"subroutine");break;case 62:this.$=t[s-7],n.addVertex(t[s-7],t[s-1],"rect",void 0,void 0,void 0,Object.fromEntries([[t[s-5],t[s-3]]]));break;case 63:this.$=t[s-3],n.addVertex(t[s-3],t[s-1],"cylinder");break;case 64:this.$=t[s-3],n.addVertex(t[s-3],t[s-1],"round");break;case 65:this.$=t[s-3],n.addVertex(t[s-3],t[s-1],"diamond");break;case 66:this.$=t[s-5],n.addVertex(t[s-5],t[s-2],"hexagon");break;case 67:this.$=t[s-3],n.addVertex(t[s-3],t[s-1],"odd");break;case 68:this.$=t[s-3],n.addVertex(t[s-3],t[s-1],"trapezoid");break;case 69:this.$=t[s-3],n.addVertex(t[s-3],t[s-1],"inv_trapezoid");break;case 70:this.$=t[s-3],n.addVertex(t[s-3],t[s-1],"lean_right");break;case 71:this.$=t[s-3],n.addVertex(t[s-3],t[s-1],"lean_left");break;case 72:this.$=t[s],n.addVertex(t[s]);break;case 73:t[s-1].text=t[s],this.$=t[s-1];break;case 74:case 75:t[s-2].text=t[s-1],this.$=t[s-2];break;case 76:this.$=t[s];break;case 77:var G=n.destructLink(t[s],t[s-2]);this.$={type:G.type,stroke:G.stroke,length:G.length,text:t[s-1]};break;case 78:var G=n.destructLink(t[s],t[s-2]);this.$={type:G.type,stroke:G.stroke,length:G.length,text:t[s-1],id:t[s-3]};break;case 79:this.$={text:t[s],type:"text"};break;case 80:this.$={text:t[s-1].text+""+t[s],type:t[s-1].type};break;case 81:this.$={text:t[s],type:"string"};break;case 82:this.$={text:t[s],type:"markdown"};break;case 83:var G=n.destructLink(t[s]);this.$={type:G.type,stroke:G.stroke,length:G.length};break;case 84:var G=n.destructLink(t[s]);this.$={type:G.type,stroke:G.stroke,length:G.length,id:t[s-1]};break;case 85:this.$=t[s-1];break;case 86:this.$={text:t[s],type:"text"};break;case 87:this.$={text:t[s-1].text+""+t[s],type:t[s-1].type};break;case 88:this.$={text:t[s],type:"string"};break;case 89:case 104:this.$={text:t[s],type:"markdown"};break;case 101:this.$={text:t[s],type:"text"};break;case 102:this.$={text:t[s-1].text+""+t[s],type:t[s-1].type};break;case 103:this.$={text:t[s],type:"text"};break;case 105:this.$=t[s-4],n.addClass(t[s-2],t[s]);break;case 106:this.$=t[s-4],n.setClass(t[s-2],t[s]);break;case 107:case 115:this.$=t[s-1],n.setClickEvent(t[s-1],t[s]);break;case 108:case 116:this.$=t[s-3],n.setClickEvent(t[s-3],t[s-2]),n.setTooltip(t[s-3],t[s]);break;case 109:this.$=t[s-2],n.setClickEvent(t[s-2],t[s-1],t[s]);break;case 110:this.$=t[s-4],n.setClickEvent(t[s-4],t[s-3],t[s-2]),n.setTooltip(t[s-4],t[s]);break;case 111:this.$=t[s-2],n.setLink(t[s-2],t[s]);break;case 112:this.$=t[s-4],n.setLink(t[s-4],t[s-2]),n.setTooltip(t[s-4],t[s]);break;case 113:this.$=t[s-4],n.setLink(t[s-4],t[s-2],t[s]);break;case 114:this.$=t[s-6],n.setLink(t[s-6],t[s-4],t[s]),n.setTooltip(t[s-6],t[s-2]);break;case 117:this.$=t[s-1],n.setLink(t[s-1],t[s]);break;case 118:this.$=t[s-3],n.setLink(t[s-3],t[s-2]),n.setTooltip(t[s-3],t[s]);break;case 119:this.$=t[s-3],n.setLink(t[s-3],t[s-2],t[s]);break;case 120:this.$=t[s-5],n.setLink(t[s-5],t[s-4],t[s]),n.setTooltip(t[s-5],t[s-2]);break;case 121:this.$=t[s-4],n.addVertex(t[s-2],void 0,void 0,t[s]);break;case 122:this.$=t[s-4],n.updateLink([t[s-2]],t[s]);break;case 123:this.$=t[s-4],n.updateLink(t[s-2],t[s]);break;case 124:this.$=t[s-8],n.updateLinkInterpolate([t[s-6]],t[s-2]),n.updateLink([t[s-6]],t[s]);break;case 125:this.$=t[s-8],n.updateLinkInterpolate(t[s-6],t[s-2]),n.updateLink(t[s-6],t[s]);break;case 126:this.$=t[s-6],n.updateLinkInterpolate([t[s-4]],t[s]);break;case 127:this.$=t[s-6],n.updateLinkInterpolate(t[s-4],t[s]);break;case 128:case 130:this.$=[t[s]];break;case 129:case 131:t[s-2].push(t[s]),this.$=t[s-2];break;case 133:this.$=t[s-1]+t[s];break;case 181:this.$=t[s];break;case 182:this.$=t[s-1]+""+t[s];break;case 184:this.$=t[s-1]+""+t[s];break;case 185:this.$={stmt:"dir",value:"TB"};break;case 186:this.$={stmt:"dir",value:"BT"};break;case 187:this.$={stmt:"dir",value:"RL"};break;case 188:this.$={stmt:"dir",value:"LR"};break;case 189:this.$={stmt:"dir",value:"TD"};break}},"anonymous"),table:[{3:1,4:2,9:i,10:r,12:a},{1:[3]},e(u,d,{5:6}),{4:7,9:i,10:r,12:a},{4:8,9:i,10:r,12:a},{13:[1,9],14:[1,10]},{1:[2,1],6:11,7:12,8:o,9:f,10:c,11:v,20:17,22:18,23:19,24:20,25:21,26:22,27:S,33:24,34:F,36:A,38:m,42:28,43:39,44:y,45:40,47:41,60:R,84:j,85:l,86:b,87:q,88:Q,89:V,102:w,105:I,106:N,109:P,111:O,113:42,114:M,115:U,116:W,121:Oe,122:Me,123:Ue,124:We,125:ze},e(u,[2,9]),e(u,[2,10]),e(u,[2,11]),{8:[1,55],9:[1,56],10:ke,15:54,18:57},e(x,[2,3]),e(x,[2,4]),e(x,[2,5]),e(x,[2,6]),e(x,[2,7]),e(x,[2,8]),{8:ie,9:re,11:ae,21:59,41:60,72:64,75:[1,65],77:[1,67],78:[1,66]},{8:ie,9:re,11:ae,21:68},{8:ie,9:re,11:ae,21:69},{8:ie,9:re,11:ae,21:70},{8:ie,9:re,11:ae,21:71},{8:ie,9:re,11:ae,21:72},{8:ie,9:re,10:[1,73],11:ae,21:74},e(x,[2,36]),{35:[1,75]},{37:[1,76]},e(x,[2,39]),e(Ee,[2,50],{18:77,39:78,10:ke,40:nt}),{10:[1,80]},{10:[1,81]},{10:[1,82]},{10:[1,83]},{14:Se,44:ye,60:xe,80:[1,87],89:Fe,95:[1,84],97:[1,85],101:86,105:_e,106:Be,109:ve,111:Le,114:Ve,115:we,116:Ie,120:88},e(x,[2,185]),e(x,[2,186]),e(x,[2,187]),e(x,[2,188]),e(x,[2,189]),e(me,[2,51]),e(me,[2,54],{46:[1,100]}),e(K,[2,72],{113:113,29:[1,101],44:y,48:[1,102],50:[1,103],52:[1,104],54:[1,105],56:[1,106],58:[1,107],60:R,63:[1,108],65:[1,109],67:[1,110],68:[1,111],70:[1,112],89:V,102:w,105:I,106:N,109:P,111:O,114:M,115:U,116:W}),e(J,[2,181]),e(J,[2,142]),e(J,[2,143]),e(J,[2,144]),e(J,[2,145]),e(J,[2,146]),e(J,[2,147]),e(J,[2,148]),e(J,[2,149]),e(J,[2,150]),e(J,[2,151]),e(J,[2,152]),e(u,[2,12]),e(u,[2,18]),e(u,[2,19]),{9:[1,114]},e(ut,[2,26],{18:115,10:ke}),e(x,[2,27]),{42:116,43:39,44:y,45:40,47:41,60:R,89:V,102:w,105:I,106:N,109:P,111:O,113:42,114:M,115:U,116:W},e(x,[2,40]),e(x,[2,41]),e(x,[2,42]),e(Re,[2,76],{73:117,62:[1,119],74:[1,118]}),{76:120,79:121,80:ot,81:lt,116:je,119:Ke},{75:[1,126],77:[1,127]},e(ct,[2,83]),e(x,[2,28]),e(x,[2,29]),e(x,[2,30]),e(x,[2,31]),e(x,[2,32]),{10:ht,12:dt,14:pt,27:ft,28:128,32:bt,44:kt,60:gt,75:At,80:[1,130],81:[1,131],83:141,84:mt,85:Ct,86:Dt,87:Tt,88:Et,89:St,90:yt,91:129,105:xt,109:Ft,111:_t,114:Bt,115:vt,116:Lt},e(Ze,d,{5:154}),e(x,[2,37]),e(x,[2,38]),e(Ee,[2,48],{44:Vt}),e(Ee,[2,49],{18:156,10:ke,40:wt}),e(me,[2,44]),{44:y,47:158,60:R,89:V,102:w,105:I,106:N,109:P,111:O,113:42,114:M,115:U,116:W},{102:[1,159],103:160,105:[1,161]},{44:y,47:162,60:R,89:V,102:w,105:I,106:N,109:P,111:O,113:42,114:M,115:U,116:W},{44:y,47:163,60:R,89:V,102:w,105:I,106:N,109:P,111:O,113:42,114:M,115:U,116:W},e(L,[2,107],{10:[1,164],96:[1,165]}),{80:[1,166]},e(L,[2,115],{120:168,10:[1,167],14:Se,44:ye,60:xe,89:Fe,105:_e,106:Be,109:ve,111:Le,114:Ve,115:we,116:Ie}),e(L,[2,117],{10:[1,169]}),e(Z,[2,183]),e(Z,[2,170]),e(Z,[2,171]),e(Z,[2,172]),e(Z,[2,173]),e(Z,[2,174]),e(Z,[2,175]),e(Z,[2,176]),e(Z,[2,177]),e(Z,[2,178]),e(Z,[2,179]),e(Z,[2,180]),{44:y,47:170,60:R,89:V,102:w,105:I,106:N,109:P,111:O,113:42,114:M,115:U,116:W},{30:171,67:C,80:Y,81:H,82:172,116:D,117:T,118:E},{30:179,67:C,80:Y,81:H,82:172,116:D,117:T,118:E},{30:181,50:[1,180],67:C,80:Y,81:H,82:172,116:D,117:T,118:E},{30:182,67:C,80:Y,81:H,82:172,116:D,117:T,118:E},{30:183,67:C,80:Y,81:H,82:172,116:D,117:T,118:E},{30:184,67:C,80:Y,81:H,82:172,116:D,117:T,118:E},{109:[1,185]},{30:186,67:C,80:Y,81:H,82:172,116:D,117:T,118:E},{30:187,65:[1,188],67:C,80:Y,81:H,82:172,116:D,117:T,118:E},{30:189,67:C,80:Y,81:H,82:172,116:D,117:T,118:E},{30:190,67:C,80:Y,81:H,82:172,116:D,117:T,118:E},{30:191,67:C,80:Y,81:H,82:172,116:D,117:T,118:E},e(J,[2,182]),e(u,[2,20]),e(ut,[2,25]),e(Ee,[2,46],{39:192,18:193,10:ke,40:nt}),e(Re,[2,73],{10:[1,194]}),{10:[1,195]},{30:196,67:C,80:Y,81:H,82:172,116:D,117:T,118:E},{77:[1,197],79:198,116:je,119:Ke},e(Ne,[2,79]),e(Ne,[2,81]),e(Ne,[2,82]),e(Ne,[2,168]),e(Ne,[2,169]),{76:199,79:121,80:ot,81:lt,116:je,119:Ke},e(ct,[2,84]),{8:ie,9:re,10:ht,11:ae,12:dt,14:pt,21:201,27:ft,29:[1,200],32:bt,44:kt,60:gt,75:At,83:141,84:mt,85:Ct,86:Dt,87:Tt,88:Et,89:St,90:yt,91:202,105:xt,109:Ft,111:_t,114:Bt,115:vt,116:Lt},e(_,[2,101]),e(_,[2,103]),e(_,[2,104]),e(_,[2,157]),e(_,[2,158]),e(_,[2,159]),e(_,[2,160]),e(_,[2,161]),e(_,[2,162]),e(_,[2,163]),e(_,[2,164]),e(_,[2,165]),e(_,[2,166]),e(_,[2,167]),e(_,[2,90]),e(_,[2,91]),e(_,[2,92]),e(_,[2,93]),e(_,[2,94]),e(_,[2,95]),e(_,[2,96]),e(_,[2,97]),e(_,[2,98]),e(_,[2,99]),e(_,[2,100]),{6:11,7:12,8:o,9:f,10:c,11:v,20:17,22:18,23:19,24:20,25:21,26:22,27:S,32:[1,203],33:24,34:F,36:A,38:m,42:28,43:39,44:y,45:40,47:41,60:R,84:j,85:l,86:b,87:q,88:Q,89:V,102:w,105:I,106:N,109:P,111:O,113:42,114:M,115:U,116:W,121:Oe,122:Me,123:Ue,124:We,125:ze},{10:ke,18:204},{44:[1,205]},e(me,[2,43]),{10:[1,206],44:y,60:R,89:V,102:w,105:I,106:N,109:P,111:O,113:113,114:M,115:U,116:W},{10:[1,207]},{10:[1,208],106:[1,209]},e(It,[2,128]),{10:[1,210],44:y,60:R,89:V,102:w,105:I,106:N,109:P,111:O,113:113,114:M,115:U,116:W},{10:[1,211],44:y,60:R,89:V,102:w,105:I,106:N,109:P,111:O,113:113,114:M,115:U,116:W},{80:[1,212]},e(L,[2,109],{10:[1,213]}),e(L,[2,111],{10:[1,214]}),{80:[1,215]},e(Z,[2,184]),{80:[1,216],98:[1,217]},e(me,[2,55],{113:113,44:y,60:R,89:V,102:w,105:I,106:N,109:P,111:O,114:M,115:U,116:W}),{31:[1,218],67:C,82:219,116:D,117:T,118:E},e(ge,[2,86]),e(ge,[2,88]),e(ge,[2,89]),e(ge,[2,153]),e(ge,[2,154]),e(ge,[2,155]),e(ge,[2,156]),{49:[1,220],67:C,82:219,116:D,117:T,118:E},{30:221,67:C,80:Y,81:H,82:172,116:D,117:T,118:E},{51:[1,222],67:C,82:219,116:D,117:T,118:E},{53:[1,223],67:C,82:219,116:D,117:T,118:E},{55:[1,224],67:C,82:219,116:D,117:T,118:E},{57:[1,225],67:C,82:219,116:D,117:T,118:E},{60:[1,226]},{64:[1,227],67:C,82:219,116:D,117:T,118:E},{66:[1,228],67:C,82:219,116:D,117:T,118:E},{30:229,67:C,80:Y,81:H,82:172,116:D,117:T,118:E},{31:[1,230],67:C,82:219,116:D,117:T,118:E},{67:C,69:[1,231],71:[1,232],82:219,116:D,117:T,118:E},{67:C,69:[1,234],71:[1,233],82:219,116:D,117:T,118:E},e(Ee,[2,45],{18:156,10:ke,40:wt}),e(Ee,[2,47],{44:Vt}),e(Re,[2,75]),e(Re,[2,74]),{62:[1,235],67:C,82:219,116:D,117:T,118:E},e(Re,[2,77]),e(Ne,[2,80]),{77:[1,236],79:198,116:je,119:Ke},{30:237,67:C,80:Y,81:H,82:172,116:D,117:T,118:E},e(Ze,d,{5:238}),e(_,[2,102]),e(x,[2,35]),{43:239,44:y,45:40,47:41,60:R,89:V,102:w,105:I,106:N,109:P,111:O,113:42,114:M,115:U,116:W},{10:ke,18:240},{10:ne,60:ue,84:oe,92:241,105:le,107:242,108:243,109:ce,110:he,111:de,112:pe},{10:ne,60:ue,84:oe,92:252,104:[1,253],105:le,107:242,108:243,109:ce,110:he,111:de,112:pe},{10:ne,60:ue,84:oe,92:254,104:[1,255],105:le,107:242,108:243,109:ce,110:he,111:de,112:pe},{105:[1,256]},{10:ne,60:ue,84:oe,92:257,105:le,107:242,108:243,109:ce,110:he,111:de,112:pe},{44:y,47:258,60:R,89:V,102:w,105:I,106:N,109:P,111:O,113:42,114:M,115:U,116:W},e(L,[2,108]),{80:[1,259]},{80:[1,260],98:[1,261]},e(L,[2,116]),e(L,[2,118],{10:[1,262]}),e(L,[2,119]),e(K,[2,56]),e(ge,[2,87]),e(K,[2,57]),{51:[1,263],67:C,82:219,116:D,117:T,118:E},e(K,[2,64]),e(K,[2,59]),e(K,[2,60]),e(K,[2,61]),{109:[1,264]},e(K,[2,63]),e(K,[2,65]),{66:[1,265],67:C,82:219,116:D,117:T,118:E},e(K,[2,67]),e(K,[2,68]),e(K,[2,70]),e(K,[2,69]),e(K,[2,71]),e([10,44,60,89,102,105,106,109,111,114,115,116],[2,85]),e(Re,[2,78]),{31:[1,266],67:C,82:219,116:D,117:T,118:E},{6:11,7:12,8:o,9:f,10:c,11:v,20:17,22:18,23:19,24:20,25:21,26:22,27:S,32:[1,267],33:24,34:F,36:A,38:m,42:28,43:39,44:y,45:40,47:41,60:R,84:j,85:l,86:b,87:q,88:Q,89:V,102:w,105:I,106:N,109:P,111:O,113:42,114:M,115:U,116:W,121:Oe,122:Me,123:Ue,124:We,125:ze},e(me,[2,53]),{43:268,44:y,45:40,47:41,60:R,89:V,102:w,105:I,106:N,109:P,111:O,113:42,114:M,115:U,116:W},e(L,[2,121],{106:Ge}),e(Rt,[2,130],{108:270,10:ne,60:ue,84:oe,105:le,109:ce,110:he,111:de,112:pe}),e(se,[2,132]),e(se,[2,134]),e(se,[2,135]),e(se,[2,136]),e(se,[2,137]),e(se,[2,138]),e(se,[2,139]),e(se,[2,140]),e(se,[2,141]),e(L,[2,122],{106:Ge}),{10:[1,271]},e(L,[2,123],{106:Ge}),{10:[1,272]},e(It,[2,129]),e(L,[2,105],{106:Ge}),e(L,[2,106],{113:113,44:y,60:R,89:V,102:w,105:I,106:N,109:P,111:O,114:M,115:U,116:W}),e(L,[2,110]),e(L,[2,112],{10:[1,273]}),e(L,[2,113]),{98:[1,274]},{51:[1,275]},{62:[1,276]},{66:[1,277]},{8:ie,9:re,11:ae,21:278},e(x,[2,34]),e(me,[2,52]),{10:ne,60:ue,84:oe,105:le,107:279,108:243,109:ce,110:he,111:de,112:pe},e(se,[2,133]),{14:Se,44:ye,60:xe,89:Fe,101:280,105:_e,106:Be,109:ve,111:Le,114:Ve,115:we,116:Ie,120:88},{14:Se,44:ye,60:xe,89:Fe,101:281,105:_e,106:Be,109:ve,111:Le,114:Ve,115:we,116:Ie,120:88},{98:[1,282]},e(L,[2,120]),e(K,[2,58]),{30:283,67:C,80:Y,81:H,82:172,116:D,117:T,118:E},e(K,[2,66]),e(Ze,d,{5:284}),e(Rt,[2,131],{108:270,10:ne,60:ue,84:oe,105:le,109:ce,110:he,111:de,112:pe}),e(L,[2,126],{120:168,10:[1,285],14:Se,44:ye,60:xe,89:Fe,105:_e,106:Be,109:ve,111:Le,114:Ve,115:we,116:Ie}),e(L,[2,127],{120:168,10:[1,286],14:Se,44:ye,60:xe,89:Fe,105:_e,106:Be,109:ve,111:Le,114:Ve,115:we,116:Ie}),e(L,[2,114]),{31:[1,287],67:C,82:219,116:D,117:T,118:E},{6:11,7:12,8:o,9:f,10:c,11:v,20:17,22:18,23:19,24:20,25:21,26:22,27:S,32:[1,288],33:24,34:F,36:A,38:m,42:28,43:39,44:y,45:40,47:41,60:R,84:j,85:l,86:b,87:q,88:Q,89:V,102:w,105:I,106:N,109:P,111:O,113:42,114:M,115:U,116:W,121:Oe,122:Me,123:Ue,124:We,125:ze},{10:ne,60:ue,84:oe,92:289,105:le,107:242,108:243,109:ce,110:he,111:de,112:pe},{10:ne,60:ue,84:oe,92:290,105:le,107:242,108:243,109:ce,110:he,111:de,112:pe},e(K,[2,62]),e(x,[2,33]),e(L,[2,124],{106:Ge}),e(L,[2,125],{106:Ge})],defaultActions:{},parseError:g(function(h,p){if(p.recoverable)this.trace(h);else{var k=new Error(h);throw k.hash=p,k}},"parseError"),parse:g(function(h){var p=this,k=[0],n=[],B=[null],t=[],Ce=this.table,s="",G=0,Nt=0,Gt=0,k1=2,Pt=1,g1=t.slice.call(arguments,1),z=Object.create(this.lexer),De={yy:{}};for(var et in this.yy)Object.prototype.hasOwnProperty.call(this.yy,et)&&(De.yy[et]=this.yy[et]);z.setInput(h,De.yy),De.yy.lexer=z,De.yy.parser=this,typeof z.yylloc>"u"&&(z.yylloc={});var tt=z.yylloc;t.push(tt);var A1=z.options&&z.options.ranges;typeof De.yy.parseError=="function"?this.parseError=De.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function m1($){k.length=k.length-2*$,B.length=B.length-$,t.length=t.length-$}g(m1,"popStack");function Ot(){var $;return $=n.pop()||z.lex()||Pt,typeof $!="number"&&($ instanceof Array&&(n=$,$=n.pop()),$=p.symbols_[$]||$),$}g(Ot,"lex");for(var X,st,Te,ee,L1,it,Pe={},He,fe,Mt,qe;;){if(Te=k[k.length-1],this.defaultActions[Te]?ee=this.defaultActions[Te]:((X===null||typeof X>"u")&&(X=Ot()),ee=Ce[Te]&&Ce[Te][X]),typeof ee>"u"||!ee.length||!ee[0]){var rt="";qe=[];for(He in Ce[Te])this.terminals_[He]&&He>k1&&qe.push("'"+this.terminals_[He]+"'");z.showPosition?rt="Parse error on line "+(G+1)+`: +`+z.showPosition()+` +Expecting `+qe.join(", ")+", got '"+(this.terminals_[X]||X)+"'":rt="Parse error on line "+(G+1)+": Unexpected "+(X==Pt?"end of input":"'"+(this.terminals_[X]||X)+"'"),this.parseError(rt,{text:z.match,token:this.terminals_[X]||X,line:z.yylineno,loc:tt,expected:qe})}if(ee[0]instanceof Array&&ee.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Te+", token: "+X);switch(ee[0]){case 1:k.push(X),B.push(z.yytext),t.push(z.yylloc),k.push(ee[1]),X=null,st?(X=st,st=null):(Nt=z.yyleng,s=z.yytext,G=z.yylineno,tt=z.yylloc,Gt>0&&Gt--);break;case 2:if(fe=this.productions_[ee[1]][1],Pe.$=B[B.length-fe],Pe._$={first_line:t[t.length-(fe||1)].first_line,last_line:t[t.length-1].last_line,first_column:t[t.length-(fe||1)].first_column,last_column:t[t.length-1].last_column},A1&&(Pe._$.range=[t[t.length-(fe||1)].range[0],t[t.length-1].range[1]]),it=this.performAction.apply(Pe,[s,Nt,G,De.yy,ee[1],B,t].concat(g1)),typeof it<"u")return it;fe&&(k=k.slice(0,-1*fe*2),B=B.slice(0,-1*fe),t=t.slice(0,-1*fe)),k.push(this.productions_[ee[1]][0]),B.push(Pe.$),t.push(Pe._$),Mt=Ce[k[k.length-2]][k[k.length-1]],k.push(Mt);break;case 3:return!0}}return!0},"parse")},b1=(function(){var Ae={EOF:1,parseError:g(function(p,k){if(this.yy.parser)this.yy.parser.parseError(p,k);else throw new Error(p)},"parseError"),setInput:g(function(h,p){return this.yy=p||this.yy||{},this._input=h,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:g(function(){var h=this._input[0];this.yytext+=h,this.yyleng++,this.offset++,this.match+=h,this.matched+=h;var p=h.match(/(?:\r\n?|\n).*/g);return p?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),h},"input"),unput:g(function(h){var p=h.length,k=h.split(/(?:\r\n?|\n)/g);this._input=h+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-p),this.offset-=p;var n=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),k.length-1&&(this.yylineno-=k.length-1);var B=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:k?(k.length===n.length?this.yylloc.first_column:0)+n[n.length-k.length].length-k[0].length:this.yylloc.first_column-p},this.options.ranges&&(this.yylloc.range=[B[0],B[0]+this.yyleng-p]),this.yyleng=this.yytext.length,this},"unput"),more:g(function(){return this._more=!0,this},"more"),reject:g(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). +`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:g(function(h){this.unput(this.match.slice(h))},"less"),pastInput:g(function(){var h=this.matched.substr(0,this.matched.length-this.match.length);return(h.length>20?"...":"")+h.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:g(function(){var h=this.match;return h.length<20&&(h+=this._input.substr(0,20-h.length)),(h.substr(0,20)+(h.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:g(function(){var h=this.pastInput(),p=new Array(h.length+1).join("-");return h+this.upcomingInput()+` +`+p+"^"},"showPosition"),test_match:g(function(h,p){var k,n,B;if(this.options.backtrack_lexer&&(B={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(B.yylloc.range=this.yylloc.range.slice(0))),n=h[0].match(/(?:\r\n?|\n).*/g),n&&(this.yylineno+=n.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:n?n[n.length-1].length-n[n.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+h[0].length},this.yytext+=h[0],this.match+=h[0],this.matches=h,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(h[0].length),this.matched+=h[0],k=this.performAction.call(this,this.yy,this,p,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),k)return k;if(this._backtrack){for(var t in B)this[t]=B[t];return!1}return!1},"test_match"),next:g(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var h,p,k,n;this._more||(this.yytext="",this.match="");for(var B=this._currentRules(),t=0;tp[0].length)){if(p=k,n=t,this.options.backtrack_lexer){if(h=this.test_match(k,B[t]),h!==!1)return h;if(this._backtrack){p=!1;continue}else return!1}else if(!this.options.flex)break}return p?(h=this.test_match(p,B[n]),h!==!1?h:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text. +`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:g(function(){var p=this.next();return p||this.lex()},"lex"),begin:g(function(p){this.conditionStack.push(p)},"begin"),popState:g(function(){var p=this.conditionStack.length-1;return p>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:g(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:g(function(p){return p=this.conditionStack.length-1-Math.abs(p||0),p>=0?this.conditionStack[p]:"INITIAL"},"topState"),pushState:g(function(p){this.begin(p)},"pushState"),stateStackSize:g(function(){return this.conditionStack.length},"stateStackSize"),options:{},performAction:g(function(p,k,n,B){var t=B;switch(n){case 0:return this.begin("acc_title"),34;break;case 1:return this.popState(),"acc_title_value";break;case 2:return this.begin("acc_descr"),36;break;case 3:return this.popState(),"acc_descr_value";break;case 4:this.begin("acc_descr_multiline");break;case 5:this.popState();break;case 6:return"acc_descr_multiline_value";case 7:return this.pushState("shapeData"),k.yytext="",40;break;case 8:return this.pushState("shapeDataStr"),40;break;case 9:return this.popState(),40;break;case 10:let Ce=/\n\s*/g;return k.yytext=k.yytext.replace(Ce,"
"),40;break;case 11:return 40;case 12:this.popState();break;case 13:this.begin("callbackname");break;case 14:this.popState();break;case 15:this.popState(),this.begin("callbackargs");break;case 16:return 95;case 17:this.popState();break;case 18:return 96;case 19:return"MD_STR";case 20:this.popState();break;case 21:this.begin("md_string");break;case 22:return"STR";case 23:this.popState();break;case 24:this.pushState("string");break;case 25:return 84;case 26:return 102;case 27:return 85;case 28:return 104;case 29:return 86;case 30:return 87;case 31:return 97;case 32:this.begin("click");break;case 33:this.popState();break;case 34:return 88;case 35:return p.lex.firstGraph()&&this.begin("dir"),12;break;case 36:return p.lex.firstGraph()&&this.begin("dir"),12;break;case 37:return p.lex.firstGraph()&&this.begin("dir"),12;break;case 38:return p.lex.firstGraph()&&this.begin("dir"),12;break;case 39:return 27;case 40:return 32;case 41:return 98;case 42:return 98;case 43:return 98;case 44:return 98;case 45:return this.popState(),13;break;case 46:return this.popState(),14;break;case 47:return this.popState(),14;break;case 48:return this.popState(),14;break;case 49:return this.popState(),14;break;case 50:return this.popState(),14;break;case 51:return this.popState(),14;break;case 52:return this.popState(),14;break;case 53:return this.popState(),14;break;case 54:return this.popState(),14;break;case 55:return this.popState(),14;break;case 56:return 121;case 57:return 122;case 58:return 123;case 59:return 124;case 60:return 125;case 61:return 78;case 62:return 105;case 63:return 111;case 64:return 46;case 65:return 60;case 66:return 44;case 67:return 8;case 68:return 106;case 69:return 115;case 70:return this.popState(),77;break;case 71:return this.pushState("edgeText"),75;break;case 72:return 119;case 73:return this.popState(),77;break;case 74:return this.pushState("thickEdgeText"),75;break;case 75:return 119;case 76:return this.popState(),77;break;case 77:return this.pushState("dottedEdgeText"),75;break;case 78:return 119;case 79:return 77;case 80:return this.popState(),53;break;case 81:return"TEXT";case 82:return this.pushState("ellipseText"),52;break;case 83:return this.popState(),55;break;case 84:return this.pushState("text"),54;break;case 85:return this.popState(),57;break;case 86:return this.pushState("text"),56;break;case 87:return 58;case 88:return this.pushState("text"),67;break;case 89:return this.popState(),64;break;case 90:return this.pushState("text"),63;break;case 91:return this.popState(),49;break;case 92:return this.pushState("text"),48;break;case 93:return this.popState(),69;break;case 94:return this.popState(),71;break;case 95:return 117;case 96:return this.pushState("trapText"),68;break;case 97:return this.pushState("trapText"),70;break;case 98:return 118;case 99:return 67;case 100:return 90;case 101:return"SEP";case 102:return 89;case 103:return 115;case 104:return 111;case 105:return 44;case 106:return 109;case 107:return 114;case 108:return 116;case 109:return this.popState(),62;break;case 110:return this.pushState("text"),62;break;case 111:return this.popState(),51;break;case 112:return this.pushState("text"),50;break;case 113:return this.popState(),31;break;case 114:return this.pushState("text"),29;break;case 115:return this.popState(),66;break;case 116:return this.pushState("text"),65;break;case 117:return"TEXT";case 118:return"QUOTE";case 119:return 9;case 120:return 10;case 121:return 11}},"anonymous"),rules:[/^(?:accTitle\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*\{\s*)/,/^(?:[\}])/,/^(?:[^\}]*)/,/^(?:@\{)/,/^(?:["])/,/^(?:["])/,/^(?:[^\"]+)/,/^(?:[^}^"]+)/,/^(?:\})/,/^(?:call[\s]+)/,/^(?:\([\s]*\))/,/^(?:\()/,/^(?:[^(]*)/,/^(?:\))/,/^(?:[^)]*)/,/^(?:[^`"]+)/,/^(?:[`]["])/,/^(?:["][`])/,/^(?:[^"]+)/,/^(?:["])/,/^(?:["])/,/^(?:style\b)/,/^(?:default\b)/,/^(?:linkStyle\b)/,/^(?:interpolate\b)/,/^(?:classDef\b)/,/^(?:class\b)/,/^(?:href[\s])/,/^(?:click[\s]+)/,/^(?:[\s\n])/,/^(?:[^\s\n]*)/,/^(?:flowchart-elk\b)/,/^(?:swimlane-beta\b)/,/^(?:graph\b)/,/^(?:flowchart\b)/,/^(?:subgraph\b)/,/^(?:end\b\s*)/,/^(?:_self\b)/,/^(?:_blank\b)/,/^(?:_parent\b)/,/^(?:_top\b)/,/^(?:(\r?\n)*\s*\n)/,/^(?:\s*LR\b)/,/^(?:\s*RL\b)/,/^(?:\s*TB\b)/,/^(?:\s*BT\b)/,/^(?:\s*TD\b)/,/^(?:\s*BR\b)/,/^(?:\s*<)/,/^(?:\s*>)/,/^(?:\s*\^)/,/^(?:\s*v\b)/,/^(?:.*direction\s+TB[^\n]*)/,/^(?:.*direction\s+BT[^\n]*)/,/^(?:.*direction\s+RL[^\n]*)/,/^(?:.*direction\s+LR[^\n]*)/,/^(?:.*direction\s+TD[^\n]*)/,/^(?:[^\s\"]+@(?=[^\{\"]))/,/^(?:[0-9]+)/,/^(?:#)/,/^(?::::)/,/^(?::)/,/^(?:&)/,/^(?:;)/,/^(?:,)/,/^(?:\*)/,/^(?:\s*[xo<]?--+[-xo>]\s*)/,/^(?:\s*[xo<]?--\s*)/,/^(?:[^-]|-(?!-)+)/,/^(?:\s*[xo<]?==+[=xo>]\s*)/,/^(?:\s*[xo<]?==\s*)/,/^(?:[^=]|=(?!))/,/^(?:\s*[xo<]?-?\.+-[xo>]?\s*)/,/^(?:\s*[xo<]?-\.\s*)/,/^(?:[^\.]|\.(?!))/,/^(?:\s*~~[\~]+\s*)/,/^(?:[-/\)][\)])/,/^(?:[^\(\)\[\]\{\}]|!\)+)/,/^(?:\(-)/,/^(?:\]\))/,/^(?:\(\[)/,/^(?:\]\])/,/^(?:\[\[)/,/^(?:\[\|)/,/^(?:>)/,/^(?:\)\])/,/^(?:\[\()/,/^(?:\)\)\))/,/^(?:\(\(\()/,/^(?:[\\(?=\])][\]])/,/^(?:\/(?=\])\])/,/^(?:\/(?!\])|\\(?!\])|[^\\\[\]\(\)\{\}\/]+)/,/^(?:\[\/)/,/^(?:\[\\)/,/^(?:<)/,/^(?:>)/,/^(?:\^)/,/^(?:\\\|)/,/^(?:v\b)/,/^(?:\*)/,/^(?:#)/,/^(?:&)/,/^(?:([A-Za-z0-9!"\#$%&'*+\.`?\\_\/]|-(?=[^\>\-\.])|(?!))+)/,/^(?:-)/,/^(?:[\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6]|[\u00F8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377]|[\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5]|[\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA]|[\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE]|[\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA]|[\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0]|[\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977]|[\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2]|[\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A]|[\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39]|[\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8]|[\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C]|[\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C]|[\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99]|[\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0]|[\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D]|[\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3]|[\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10]|[\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1]|[\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81]|[\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3]|[\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6]|[\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A]|[\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081]|[\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D]|[\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0]|[\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310]|[\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C]|[\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u1700-\u170C\u170E-\u1711]|[\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7]|[\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C]|[\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16]|[\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF]|[\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC]|[\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D]|[\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D]|[\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3]|[\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F]|[\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128]|[\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184]|[\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3]|[\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6]|[\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE]|[\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C]|[\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D]|[\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC]|[\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B]|[\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788]|[\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805]|[\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB]|[\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28]|[\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5]|[\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4]|[\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E]|[\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D]|[\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36]|[\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D]|[\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC]|[\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF]|[\uFFD2-\uFFD7\uFFDA-\uFFDC])/,/^(?:\|)/,/^(?:\|)/,/^(?:\))/,/^(?:\()/,/^(?:\])/,/^(?:\[)/,/^(?:(\}))/,/^(?:\{)/,/^(?:[^\[\]\(\)\{\}\|\"]+)/,/^(?:")/,/^(?:(\r?\n)+)/,/^(?:[^\S\n\r]+)/,/^(?:$)/],conditions:{shapeDataEndBracket:{rules:[21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},shapeDataStr:{rules:[9,10,21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},shapeData:{rules:[8,11,12,21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},callbackargs:{rules:[17,18,21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},callbackname:{rules:[14,15,16,21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},href:{rules:[21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},click:{rules:[21,24,33,34,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},dottedEdgeText:{rules:[21,24,76,78,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},thickEdgeText:{rules:[21,24,73,75,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},edgeText:{rules:[21,24,70,72,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},trapText:{rules:[21,24,79,82,84,86,90,92,93,94,95,96,97,110,112,114,116],inclusive:!1},ellipseText:{rules:[21,24,79,80,81,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},text:{rules:[21,24,79,82,83,84,85,86,89,90,91,92,96,97,109,110,111,112,113,114,115,116,117],inclusive:!1},vertex:{rules:[21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},dir:{rules:[21,24,45,46,47,48,49,50,51,52,53,54,55,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},acc_descr_multiline:{rules:[5,6,21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},acc_descr:{rules:[3,21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},acc_title:{rules:[1,21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},md_string:{rules:[19,20,21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},string:{rules:[21,22,23,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},INITIAL:{rules:[0,2,4,7,13,21,24,25,26,27,28,29,30,31,32,35,36,37,38,39,40,41,42,43,44,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,73,74,76,77,79,82,84,86,87,88,90,92,96,97,98,99,100,101,102,103,104,105,106,107,108,110,112,114,116,118,119,120,121],inclusive:!0}}};return Ae})();$e.lexer=b1;function Ye(){this.yy={}}return g(Ye,"Parser"),Ye.prototype=$e,$e.Parser=Ye,new Ye})();at.parser=at;var p1=at,f1=Object.assign({},p1);f1.parse=e=>{let i=e.replace(/}\s*\n/g,`} +`);return p1.parse(i)};var y1=f1,x1=g(e=>{let{theme:i,bkgColorArray:r,borderColorArray:a}=e;if(!i1(i,a))return"";let u=r1(e.look),d=s1(r),o="";for(let f=0;f`${S}.node ${m}, ${S}.rough-node ${m}`,"collapsedRule"),A=g(m=>`${S}.swimlane.cluster .swimlane-title${m}, ${S}.swimlane.cluster .swimlane-body${m}`,"laneRule");o+=` + + ${S}.cluster:not(.swimlane) rect { + stroke: ${c}; + ${v} + } + + ${S}.cluster:not(.swimlane) path { + stroke: ${c}; + ${v} + } + + /* Lane, classic and neo. */ + ${S}.swimlane.cluster rect.swimlane-title, + ${S}.swimlane.cluster rect.swimlane-body { + stroke: ${c}; + ${v} + } + + /* Lane, handDrawn: roughjs emits the hachure fill first, then the outline. */ + ${A(" path:nth-of-type(2)")} { + stroke: ${c}; + } +${d?` + /* A roughjs fill is drawn as lines, so the lane fill is a stroke here. */ + ${A(" path:first-of-type")} { + stroke: ${r[f%r.length]}; + } +`:""} + ${F(".collapsed-group")}, + ${F(".collapsed-group path")} { + stroke: ${c}; + ${v} + } + + /* The ellipsis dots and the separator take clusterBorder further down, so without + these the container is palette-coloured while its own markers are not. */ + ${F(".collapsed-indicator")} { + fill: ${c}; + } + + ${F(".collapsed-separator")} { + stroke: ${c}; + } + `}return o},"genColor"),F1=g((e,i)=>{let r=Wt,a=r(e,"r"),u=r(e,"g"),d=r(e,"b");return Ut(a,u,d,i)},"fade"),_1=g(e=>`${x1(e)} + .label { + font-family: ${e.fontFamily}; + color: ${e.nodeTextColor||e.textColor}; + } + .cluster-label text { + fill: ${e.titleColor}; + } + .cluster-label span { + color: ${e.titleColor}; + } + .cluster-label span p { + background-color: transparent; + } + + .label text,span { + fill: ${e.nodeTextColor||e.textColor}; + color: ${e.nodeTextColor||e.textColor}; + } + + .node rect, + .node circle, + .node ellipse, + .node polygon, + .node path { + fill: ${e.mainBkg}; + stroke: ${e.nodeBorder}; + stroke-width: ${e.strokeWidth??1}px; + } + .rough-node .label text , .node .label text, .image-shape .label, .icon-shape .label { + text-anchor: middle; + } + + .node .katex path { + fill: #000; + stroke: #000; + stroke-width: 1px; + } + + .rough-node .label,.node .label, .image-shape .label, .icon-shape .label { + text-align: center; + } + .node.clickable { + cursor: pointer; + } + + + .root .anchor path { + fill: ${e.lineColor} !important; + stroke-width: 0; + stroke: ${e.lineColor}; + } + + .arrowheadPath { + fill: ${e.arrowheadColor}; + } + + .edgePaths .path { + stroke: ${e.lineColor}; + stroke-width: ${e.strokeWidth??2}px; + } + + .flowchart-link { + stroke: ${e.lineColor}; + fill: none; + } + + .edgeLabel { + background-color: ${e.edgeLabelBackground}; + p { + background-color: ${e.edgeLabelBackground}; + } + rect { + opacity: 0.5; + background-color: ${e.edgeLabelBackground}; + fill: ${e.edgeLabelBackground}; + } + text-align: center; + } + + /* For html labels only */ + .labelBkg { + background-color: ${F1(e.edgeLabelBackground,.5)}; + // background-color: + } + + .cluster rect { + fill: ${e.clusterBkg}; + stroke: ${e.clusterBorder}; + stroke-width: 1px; + } + + .cluster text { + fill: ${e.titleColor}; + } + + .cluster span { + color: ${e.titleColor}; + } + /* .cluster div { + color: ${e.titleColor}; + } */ + + /* Collapsed subgraph node (@{ view: collapsed }) */ + .node .collapsed-indicator { + fill: ${e.clusterBorder}; + stroke: none; + opacity: 0.6; + } + + .node .collapsed-separator { + stroke: ${e.clusterBorder}; + stroke-width: 0.75px; + } + + div.mermaidTooltip { + position: absolute; + text-align: center; + max-width: 200px; + padding: 2px; + font-family: ${e.fontFamily}; + font-size: 12px; + background: ${e.tertiaryColor}; + border: 1px solid ${e.border2}; + border-radius: 2px; + pointer-events: none; + z-index: 100; + } + + .flowchartTitleText { + text-anchor: middle; + font-size: 18px; + fill: ${e.textColor}; + } + + rect.text { + fill: none; + stroke-width: 0; + } + + .icon-shape, .image-shape { + background-color: ${e.edgeLabelBackground}; + p { + background-color: ${e.edgeLabelBackground}; + padding: 2px; + } + .label rect { + opacity: 0.5; + background-color: ${e.edgeLabelBackground}; + fill: ${e.edgeLabelBackground}; + } + text-align: center; + } + ${c1()} +`,"getStyles"),B1=_1,v1=g(({styles:e=B1}={})=>({parser:y1,get db(){return new D1},renderer:S1,styles:e,init:g(i=>{i.flowchart||(i.flowchart={}),i.flowchart.arrowMarkerAbsolute=i.arrowMarkerAbsolute,Zt({flowchart:{arrowMarkerAbsolute:i.arrowMarkerAbsolute}})},"init")}),"createFlowDiagram"),H1=v1();export{B1 as a,v1 as b,H1 as c}; diff --git a/src/frontend/web/von_interface/static/vendor/conversation-visuals/chunk-AKE2LJPJ.js b/src/frontend/web/von_interface/static/vendor/conversation-visuals/chunk-AKE2LJPJ.js new file mode 100644 index 000000000..7c95662d7 --- /dev/null +++ b/src/frontend/web/von_interface/static/vendor/conversation-visuals/chunk-AKE2LJPJ.js @@ -0,0 +1 @@ +import{a as J}from"./chunk-T4OFBIBR.js";import{c as X,e as U,f as K}from"./chunk-TEBTVNCH.js";import{a as H}from"./chunk-HVVAQLXH.js";import{b as st,d as V,e as O}from"./chunk-IVPOI5SM.js";import{e as _}from"./chunk-O46DUOKR.js";import{g as j}from"./chunk-6NDAIVIK.js";import{$ as Y,G as W,v as rt}from"./chunk-S4JILX6U.js";import{b as N,h as E}from"./chunk-XEQL7KGA.js";import{a as $}from"./chunk-YUSHYV7C.js";var ct=$(async(d,t)=>{let r=Y(),{theme:w,themeVariables:k,handDrawnSeed:b}=r,{clusterBkg:x,clusterBorder:v,borderColorArray:C}=k,f=v,{labelStyles:B,nodeStyles:n,borderStyles:m,backgroundStyles:e}=V(t),g=d.insert("g").attr("class","cluster swimlane "+(t.cssClasses||"")).attr("id",t.id).attr("data-id",t.id).attr("data-et","cluster").attr("data-look",t.look);j(g,t.colorIndex,w,C);let c=rt(r.flowchart.htmlLabels),i=t.direction==="LR",a=g.insert("g").attr("class","cluster-label swimlane-label"),p=await _(a,t.label,{style:t.labelStyle,useHtmlLabels:c,isNode:!0,width:t.width}),s=p.getBBox();if(c){let D=p.children[0],I=E(p);s=D.getBoundingClientRect(),I.attr("width",s.width),I.attr("height",s.height)}let y=t.padding??0,h=t.width<=s.width+y?s.width+y:t.width;t.width<=s.width+y?t.diff=(h-t.width)/2-y:t.diff=-y;let l=t.height,o=t.y-l/2,R=t.y+l/2,u=t.x-h/2,L=t.swimlaneContentTop!==void 0?t.swimlaneContentTop:o+l/3,T=i?4:0,G=s.height+2*T,S,M;if(i){let D=Math.max(G,s.height+2*T),I=u+D,A=Math.max(0,h-D);if(t.look==="handDrawn"){let q=H.svg(g),Q=O(t,{roughness:.7,fill:x,stroke:f,seed:b}),F=O(t,{roughness:.7,fill:"none",stroke:f,seed:b}),Z=q.rectangle(u,o,D,l,Q);S=g.insert(()=>Z,":first-child").attr("class","swimlane-title");let tt=q.rectangle(I,o,A,l,F);M=g.insert(()=>tt,":first-child").attr("class","swimlane-body"),S.select("path:nth-child(2)").attr("style",m.join(";")),S.select("path").attr("style",e.join(";").replace("fill","stroke"))}else S=g.insert("rect",":first-child"),M=g.insert("rect",":first-child"),S.attr("class","swimlane-title").attr("style",n).attr("x",u).attr("y",o).attr("width",D).attr("height",l).attr("fill",x).attr("stroke",f),M.attr("class","swimlane-body").attr("style",n).attr("x",I).attr("y",o).attr("width",A).attr("height",l).attr("fill","none").attr("stroke",f);let z=u+D/2,P=t.y;a.attr("transform",`translate(${z}, ${P}) rotate(-90) translate(${-s.width/2}, ${-s.height/2})`)}else{let D=Math.max(0,L-o),I=Math.min(G,D),A=o+I,z=Math.max(0,R-A),P=t.x-h/2;if(t.look==="handDrawn"){let F=H.svg(g),Z=O(t,{roughness:.7,fill:x,stroke:f,fillWeight:3,seed:b}),tt=O(t,{roughness:.7,fill:"none",stroke:f,seed:b}),it=F.rectangle(P,o,h,I,Z);S=g.insert(()=>it,":first-child").attr("class","swimlane-title");let lt=F.rectangle(P,A,h,z,tt);M=g.insert(()=>lt,":first-child").attr("class","swimlane-body"),S.select("path:nth-child(2)").attr("style",m.join(";")),S.select("path").attr("style",e.join(";").replace("fill","stroke"))}else S=g.insert("rect",":first-child"),M=g.insert("rect",":first-child"),S.attr("class","swimlane-title").attr("style",n).attr("x",P).attr("y",o).attr("width",h).attr("height",I).attr("fill",x).attr("stroke",f),M.attr("class","swimlane-body").attr("style",n).attr("x",P).attr("y",A).attr("width",h).attr("height",z).attr("fill","none").attr("stroke",f);let q=t.x-s.width/2,Q=o+(I-s.height)/2;a.attr("transform",`translate(${q}, ${Q})`)}if(N.trace("Swimlane data ",t,JSON.stringify(t)),B){let D=a.select("span");D&&D.attr("style",B)}return t.offsetX=0,t.width=h,t.height=l,t.offsetY=s.height-y/2,t.intersect=function(D){return X(t,D)},{cluster:g,labelBBox:s}},"swimlane"),et=$(async(d,t)=>{N.info("Creating subgraph rect for ",t.id,t);let r=Y(),{theme:w,themeVariables:k,handDrawnSeed:b}=r,{clusterBkg:x,clusterBorder:v,borderColorArray:C}=k,{labelStyles:f,nodeStyles:B,borderStyles:n,backgroundStyles:m}=V(t),e=d.insert("g").attr("class","cluster "+t.cssClasses).attr("id",t.domId).attr("data-look",t.look);j(e,t.colorIndex,w,C);let g=W(r),c=e.insert("g").attr("class","cluster-label "),i;t.labelType==="markdown"?i=await _(c,t.label,{style:t.labelStyle,useHtmlLabels:g,isNode:!0,width:t.width}):i=await K(c,t.label,t.labelStyle||"",!1,!0);let a=i.getBBox();if(W(r)){let u=i.children[0],L=E(i);a=u.getBoundingClientRect(),L.attr("width",a.width),L.attr("height",a.height)}let p=t.width<=a.width+t.padding?a.width+t.padding:t.width;t.width<=a.width+t.padding?t.diff=(p-t.width)/2-t.padding:t.diff=-t.padding;let s=t.height,y=t.x-p/2,h=t.y-s/2;N.trace("Data ",t,JSON.stringify(t));let l;if(t.look==="handDrawn"){let u=H.svg(e),L=O(t,{roughness:.7,fill:x,stroke:v,fillWeight:3,seed:b}),T=u.path(U(y,h,p,s,0),L);l=e.insert(()=>(N.debug("Rough node insert CXC",T),T),":first-child"),l.select("path:nth-child(2)").attr("style",n.join(";")),l.select("path").attr("style",m.join(";").replace("fill","stroke"))}else l=e.insert("rect",":first-child"),l.attr("style",B).attr("rx",t.rx).attr("ry",t.ry).attr("x",y).attr("y",h).attr("width",p).attr("height",s);let{subGraphTitleTopMargin:o}=J(r);if(c.attr("transform",`translate(${t.x-a.width/2}, ${t.y-t.height/2+o})`),f){let u=c.select("span");u&&u.attr("style",f)}let R=l.node().getBBox();return t.offsetX=0,t.width=R.width,t.height=R.height,t.offsetY=a.height-t.padding/2,t.intersect=function(u){return X(t,u)},{cluster:e,labelBBox:a}},"rect"),ht=$((d,t)=>{let r=d.insert("g").attr("class","note-cluster").attr("id",t.domId),w=r.insert("rect",":first-child"),k=0*t.padding,b=k/2;w.attr("rx",t.rx).attr("ry",t.ry).attr("x",t.x-t.width/2-b).attr("y",t.y-t.height/2-b).attr("width",t.width+k).attr("height",t.height+k).attr("fill","none");let x=w.node().getBBox();return t.width=x.width,t.height=x.height,t.intersect=function(v){return X(t,v)},{cluster:r,labelBBox:{width:0,height:0}}},"noteGroup"),ot=$(async(d,t)=>{let r=Y(),{theme:w,themeVariables:k,handDrawnSeed:b}=r,{altBackground:x,borderColorArray:v,compositeBackground:C,compositeTitleBackground:f,nodeBorder:B}=k,n=d.insert("g").attr("class",t.cssClasses).attr("id",t.domId).attr("data-id",t.id).attr("data-look",t.look);j(n,t.colorIndex,w,v);let m=n.insert("g",":first-child"),e=n.insert("g").attr("class","cluster-label"),g=n.append("rect"),c=await K(e,t.label,t.labelStyle,void 0,!0),i=c.getBBox();if(W(r)){let T=c.children[0],G=E(c);i=T.getBoundingClientRect(),G.attr("width",i.width),G.attr("height",i.height)}let a=0*t.padding,p=a/2,s=(t.width<=i.width+t.padding?i.width+t.padding:t.width)+a;t.width<=i.width+t.padding?t.diff=(s-t.width)/2-t.padding:t.diff=-t.padding;let y=t.height+a,h=t.height+a-i.height-6,l=t.x-s/2,o=t.y-y/2;t.width=s;let R=t.y-t.height/2-p+i.height+2,u;if(t.look==="handDrawn"){let T=t.cssClasses.includes("statediagram-cluster-alt"),G=H.svg(n),S=t.rx||t.ry?G.path(U(l,o,s,y,10),{roughness:.7,fill:f,fillStyle:"solid",stroke:B,seed:b}):G.rectangle(l,o,s,y,{seed:b});u=n.insert(()=>S,":first-child");let M=G.rectangle(l,R,s,h,{fill:T?x:C,fillStyle:T?"hachure":"solid",stroke:B,seed:b});u=n.insert(()=>S,":first-child"),g=n.insert(()=>M),u.attr("class","outer"),g.attr("class","inner")}else u=m.insert("rect",":first-child"),u.attr("class","outer").attr("x",l).attr("y",o).attr("width",s).attr("height",y).attr("data-look",t.look),g.attr("class","inner").attr("x",l).attr("y",R).attr("width",s).attr("height",h);e.attr("transform",`translate(${t.x-i.width/2}, ${o+1-(W(r)?0:3)})`);let L=u.node().getBBox();return t.height=L.height,t.offsetX=0,t.offsetY=i.height-t.padding/2,t.labelBBox=i,t.intersect=function(T){return X(t,T)},{cluster:n,labelBBox:i}},"roundedWithTitle"),nt=$(async(d,t)=>{N.info("Creating subgraph rect for ",t.id,t);let r=Y(),{themeVariables:w,handDrawnSeed:k}=r,{clusterBkg:b,clusterBorder:x}=w,{labelStyles:v,nodeStyles:C,borderStyles:f,backgroundStyles:B}=V(t),n=d.insert("g").attr("class","cluster "+t.cssClasses).attr("id",t.domId).attr("data-look",t.look),m=W(r),e=n.insert("g").attr("class","cluster-label "),g=await _(e,t.label,{style:t.labelStyle,useHtmlLabels:m,isNode:!0,width:t.width}),c=g.getBBox();if(W(r)){let o=g.children[0],R=E(g);c=o.getBoundingClientRect(),R.attr("width",c.width),R.attr("height",c.height)}let i=t.width<=c.width+t.padding?c.width+t.padding:t.width;t.width<=c.width+t.padding?t.diff=(i-t.width)/2-t.padding:t.diff=-t.padding;let a=t.height,p=t.x-i/2,s=t.y-a/2;N.trace("Data ",t,JSON.stringify(t));let y;if(t.look==="handDrawn"){let o=H.svg(n),R=O(t,{roughness:.7,fill:b,stroke:x,fillWeight:4,seed:k}),u=o.path(U(p,s,i,a,t.rx),R);y=n.insert(()=>(N.debug("Rough node insert CXC",u),u),":first-child"),y.select("path:nth-child(2)").attr("style",f.join(";")),y.select("path").attr("style",B.join(";").replace("fill","stroke"))}else y=n.insert("rect",":first-child"),y.attr("style",C).attr("rx",t.rx).attr("ry",t.ry).attr("x",p).attr("y",s).attr("width",i).attr("height",a);let{subGraphTitleTopMargin:h}=J(r);if(e.attr("transform",`translate(${t.x-c.width/2}, ${t.y-t.height/2+h})`),v){let o=e.select("span");o&&o.attr("style",v)}let l=y.node().getBBox();return t.offsetX=0,t.width=l.width,t.height=l.height,t.offsetY=c.height-t.padding/2,t.intersect=function(o){return X(t,o)},{cluster:n,labelBBox:c}},"kanbanSection"),gt=$((d,t)=>{let r=Y(),{theme:w,themeVariables:k,handDrawnSeed:b}=r,{altBackground:x,nodeBorder:v,borderColorArray:C}=k,f=d.insert("g").attr("class",t.cssClasses).attr("id",t.domId).attr("data-look",t.look);j(f,t.colorIndex,w,C);let B=f.insert("g",":first-child"),n=0*t.padding,m=t.width+n;t.diff=-t.padding;let e=t.height+n,g=t.x-m/2,c=t.y-e/2;t.width=m;let i;if(t.look==="handDrawn"){let s=H.svg(f).rectangle(g,c,m,e,{fill:x??"#efefef",fillStyle:"solid",roughness:.5,strokeLineDash:[5],stroke:v,seed:b});i=f.insert(()=>s,":first-child").attr("class","divider")}else{i=B.insert("rect",":first-child");let p="outer";t.look,p="divider",i.attr("class",p).attr("x",g).attr("y",c).attr("width",m).attr("height",e).attr("data-look",t.look)}let a=i.node().getBBox();return t.height=a.height,t.offsetX=0,t.offsetY=0,t.intersect=function(p){return X(t,p)},{cluster:f,labelBBox:{}}},"divider"),dt=$(async(d,t,r)=>{N.info(`Creating ${r.cssClass} for `,t.id,t);let w=Y(),{theme:k,themeVariables:b,handDrawnSeed:x}=w,{borderColorArray:v}=b,{labelStyles:C,borderStyles:f}=V(t),B=d.insert("g").attr("class","cluster "+r.cssClass+" "+t.cssClasses).attr("id",t.domId??t.id).attr("data-look",t.look);j(B,t.colorIndex,k,v);let n=W(w),m=B.insert("g").attr("class","cluster-label"),e={width:0,height:0},g=t.label?.trim();if(g){let h;if(t.labelType==="markdown"?h=await _(m,t.label,{style:t.labelStyle,useHtmlLabels:n,isNode:!0,width:t.width}):h=await K(m,t.label,t.labelStyle||"",!1,!0),e=h.getBBox(),n){let l=h.children[0],o=E(h);e=l.getBoundingClientRect(),o.attr("width",e.width),o.attr("height",e.height)}}let c=t.width<=e.width+t.padding?e.width+t.padding:t.width;t.width<=e.width+t.padding?t.diff=(c-t.width)/2-t.padding:t.diff=-t.padding;let i=t.height,a=t.x-c/2,p=t.y-i/2,s;if(t.look==="handDrawn"){let h=H.svg(B),l=O(t,{roughness:r.roughness,fill:r.fill,stroke:r.stroke,strokeWidth:r.strokeWidth,seed:x,...r.fill==="none"?{fillWeight:0}:{fillStyle:"solid"},...r.strokeDash?{strokeLineDash:r.strokeDash}:{}}),o=h.path(U(a,p,c,i,r.rx),l);s=B.insert(()=>o,":first-child"),s.select("path:nth-child(2)").attr("style",f.join(";"))}else s=B.insert("rect",":first-child"),s.attr("rx",r.rx).attr("ry",r.rx).attr("x",a).attr("y",p).attr("width",c).attr("height",i).attr("fill",r.fill).attr("stroke",r.stroke).attr("stroke-width",r.strokeWidth+"px"),r.strokeDash&&s.attr("stroke-dasharray",r.strokeDash.join(", "));if(g){let{subGraphTitleTopMargin:h}=J(w);if(m.attr("transform",`translate(${t.x-e.width/2}, ${t.y-t.height/2+h})`),C){let l=m.select("span");l&&l.attr("style",C)}}let y=s.node().getBBox();return t.offsetX=0,t.width=y.width,t.height=y.height,t.offsetY=e.height-t.padding/2,t.intersect=function(h){return X(t,h)},{cluster:B,labelBBox:e}},"createContainerGroup"),ft=$(async(d,t)=>{let{themeVariables:r}=Y(),w=r.flowContainerStroke||r.secondaryBorderColor;return dt(d,t,{cssClass:"flow-cluster",rx:10,fill:"none",stroke:w,strokeWidth:.75,roughness:.7})},"flowGroup"),ut=$((d,t)=>{let r=d.boundaryType||"rect",w=r==="package"?20:d.padding,k=r==="package"?t.height+10:0,b=Math.max(d.width,t.width+w),x=r==="package"?Math.max(d.height,k+d.padding*2):d.height,v=d.x-b/2,C=d.y-x/2;return{boundaryType:r,width:b,height:x,x:v,y:C,bodyY:C+k,bodyHeight:x-k,tabHeight:k,tabWidth:r==="package"?Math.min(b,Math.max(80,t.width+20)):0}},"getUsecaseSystemBoundaryGeometry"),yt=$(async(d,t)=>{N.info("Creating usecase system boundary for ",t.id,t);let r=Y(),{theme:w,themeVariables:k,handDrawnSeed:b}=r,{clusterBkg:x,clusterBorder:v,borderColorArray:C}=k,{labelStyles:f,nodeStyles:B}=V(t),{stylesMap:n}=st(t),m=t.boundaryType||"rect",e=d.insert("g").attr("class",`cluster usecase-system-boundary usecase-system-boundary-${m} ${t.cssClasses}`).attr("id",typeof t.domId=="string"?t.domId:t.id).attr("data-boundary-type",m).attr("data-look",t.look);j(e,t.colorIndex,w,C);let g=W(r),c=e.insert("g").attr("class","cluster-label system-boundary-title"),i=await _(c,t.label,{style:f,useHtmlLabels:g,isNode:!0}),a=i.getBBox();if(g){let S=i.children[0],M=E(i);a=S.getBoundingClientRect(),M.attr("width",a.width),M.attr("height",a.height)}let p=ut(t,a),{width:s,height:y,x:h,y:l,bodyY:o,bodyHeight:R,tabHeight:u,tabWidth:L}=p;t.diff=t.width<=a.width+t.padding?(s-t.width)/2-t.padding:-t.padding;let T=O(t,{fill:n.get("fill")||x,stroke:n.get("stroke")||v,strokeWidth:n.get("stroke-width")?.replace("px","")||1,seed:b});if(t.look==="handDrawn"){let S=H.svg(e),M=S.rectangle(h,o,s,R,T);if(e.insert(()=>M,":first-child").attr("class","boundary-body label-container"),m==="package"){let D=S.rectangle(h,l,L,u,T);e.insert(()=>D,":first-child").attr("class","boundary-tab system-boundary-package-tab label-container")}}else e.insert("rect",":first-child").attr("class","boundary-body label-container").attr("style",B).attr("x",h).attr("y",o).attr("width",s).attr("height",R),m==="package"&&e.insert("rect",":first-child").attr("class","boundary-tab system-boundary-package-tab label-container").attr("style",B).attr("x",h).attr("y",l).attr("width",L).attr("height",u);let{subGraphTitleTopMargin:G}=J(r);return m==="package"?c.attr("transform",`translate(${h+(L-a.width)/2}, ${l+(u-a.height)/2})`):c.attr("transform",`translate(${t.x-a.width/2}, ${l+G})`),f&&(c.attr("style",f),c.select("span").attr("style",f)),t.offsetX=0,t.width=s,t.height=y,t.offsetY=a.height-t.padding/2,t.labelBBox=a,t.intersect=function(S){return X(t,S)},{cluster:e,labelBBox:a}},"usecaseSystemBoundary"),wt=et,bt={rect:et,squareRect:wt,roundedWithTitle:ot,noteGroup:ht,divider:gt,kanbanSection:nt,flowGroup:ft,usecaseSystemBoundary:yt,swimlane:ct},pt=new Set(["noteGroup","divider"]),Lt=$(d=>!pt.has(d??"rect"),"clusterPaintsTitle"),at=new Map,Gt=$(async(d,t)=>{let r=t.shape||"rect",w=await bt[r](d,t);return at.set(t.id,w),w},"insertCluster"),It=$(()=>{at=new Map},"clear");export{Lt as a,Gt as b,It as c}; diff --git a/src/frontend/web/von_interface/static/vendor/conversation-visuals/chunk-C7GWRE6Z.js b/src/frontend/web/von_interface/static/vendor/conversation-visuals/chunk-C7GWRE6Z.js new file mode 100644 index 000000000..5fca8bf69 --- /dev/null +++ b/src/frontend/web/von_interface/static/vendor/conversation-visuals/chunk-C7GWRE6Z.js @@ -0,0 +1 @@ +import{a as e,b as i,c as o,d as t,e as n,g as u,k as d,x as l,y as s}from"./chunk-RVPSGR2P.js";var c=class extends s{static{e(this,"GitGraphTokenBuilder")}constructor(){super(["gitGraph"])}},p={parser:{TokenBuilder:e(()=>new c,"TokenBuilder"),ValueConverter:e(()=>new l,"ValueConverter")}};function h(G=n){let r=t(o(G),u),a=t(i({shared:r}),d,p);return r.ServiceRegistry.register(a),{shared:r,GitGraph:a}}e(h,"createGitGraphServices");export{p as a,h as b}; diff --git a/src/frontend/web/von_interface/static/vendor/conversation-visuals/chunk-C7YISUMK.js b/src/frontend/web/von_interface/static/vendor/conversation-visuals/chunk-C7YISUMK.js new file mode 100644 index 000000000..e0feb2e87 --- /dev/null +++ b/src/frontend/web/von_interface/static/vendor/conversation-visuals/chunk-C7YISUMK.js @@ -0,0 +1 @@ +import{C as G,I as M}from"./chunk-S4JILX6U.js";import{b as d}from"./chunk-XEQL7KGA.js";import{a as h}from"./chunk-YUSHYV7C.js";var B=Object.freeze({left:0,top:0,width:16,height:16}),u=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),T=Object.freeze({...B,...u}),P=Object.freeze({...T,body:"",hidden:!1});var K=Object.freeze({width:null,height:null}),$=Object.freeze({...K,...u});var v=(t,o,n,r="")=>{let e=t.split(":");if(t.slice(0,1)==="@"){if(e.length<2||e.length>3)return null;r=e.shift().slice(1)}if(e.length>3||!e.length)return null;if(e.length>1){let c=e.pop(),l=e.pop(),m={provider:e.length>0?e[0]:r,prefix:l,name:c};return o&&!w(m)?null:m}let s=e[0],i=s.split("-");if(i.length>1){let c={provider:r,prefix:i.shift(),name:i.join("-")};return o&&!w(c)?null:c}if(n&&r===""){let c={provider:r,prefix:"",name:s};return o&&!w(c,n)?null:c}return null},w=(t,o)=>t?!!((o&&t.prefix===""||t.prefix)&&t.name):!1;function z(t,o){let n={};!t.hFlip!=!o.hFlip&&(n.hFlip=!0),!t.vFlip!=!o.vFlip&&(n.vFlip=!0);let r=((t.rotate||0)+(o.rotate||0))%4;return r&&(n.rotate=r),n}function E(t,o){let n=z(t,o);for(let r in P)r in u?r in t&&!(r in n)&&(n[r]=u[r]):r in o?n[r]=o[r]:r in t&&(n[r]=t[r]);return n}function A(t,o){let n=t.icons,r=t.aliases||Object.create(null),e=Object.create(null);function s(i){if(n[i])return e[i]=[];if(!(i in e)){e[i]=null;let c=r[i]&&r[i].parent,l=c&&s(c);l&&(e[i]=[c].concat(l))}return e[i]}return(o||Object.keys(n).concat(Object.keys(r))).forEach(s),e}function U(t,o,n){let r=t.icons,e=t.aliases||Object.create(null),s={};function i(c){s=E(r[c]||e[c],s)}return i(o),n.forEach(i),E(t,s)}function b(t,o){if(t.icons[o])return U(t,o,[]);let n=A(t,[o])[o];return n?U(t,o,n):null}var W=/(-?[0-9.]*[0-9]+[0-9.]*)/g,_=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function j(t,o,n){if(o===1)return t;if(n=n||100,typeof t=="number")return Math.ceil(t*o*n)/n;if(typeof t!="string")return t;let r=t.split(W);if(r===null||!r.length)return t;let e=[],s=r.shift(),i=_.test(s);for(;;){if(i){let c=parseFloat(s);isNaN(c)?e.push(s):e.push(Math.ceil(c*o*n)/n)}else e.push(s);if(s=r.shift(),s===void 0)return e.join("");i=!i}}function Q(t,o="defs"){let n="",r=t.indexOf("<"+o);for(;r>=0;){let e=t.indexOf(">",r),s=t.indexOf("",s);if(i===-1)break;n+=t.slice(e+1,s).trim(),t=t.slice(0,r).trim()+t.slice(i+1)}return{defs:n,content:t}}function J(t,o){return t?""+t+""+o:o}function q(t,o,n){let r=Q(t);return J(r.defs,o+r.content+n)}var X=t=>t==="unset"||t==="undefined"||t==="none";function D(t,o){let n={...T,...t},r={...$,...o},e={left:n.left,top:n.top,width:n.width,height:n.height},s=n.body;[n,r].forEach(g=>{let a=[],N=g.hFlip,k=g.vFlip,p=g.rotate;N?k?p+=2:(a.push("translate("+(e.width+e.left).toString()+" "+(0-e.top).toString()+")"),a.push("scale(-1 1)"),e.top=e.left=0):k&&(a.push("translate("+(0-e.left).toString()+" "+(e.height+e.top).toString()+")"),a.push("scale(1 -1)"),e.top=e.left=0);let f;switch(p<0&&(p-=Math.floor(p/4)*4),p=p%4,p){case 1:f=e.height/2+e.top,a.unshift("rotate(90 "+f.toString()+" "+f.toString()+")");break;case 2:a.unshift("rotate(180 "+(e.width/2+e.left).toString()+" "+(e.height/2+e.top).toString()+")");break;case 3:f=e.width/2+e.left,a.unshift("rotate(-90 "+f.toString()+" "+f.toString()+")")}p%2===1&&(e.left!==e.top&&(f=e.left,e.left=e.top,e.top=f),e.width!==e.height&&(f=e.width,e.width=e.height,e.height=f)),a.length&&(s=q(s,'',""))});let i=r.width,c=r.height,l=e.width,m=e.height,I,S;i===null?(S=c===null?"1em":c==="auto"?m:c,I=j(S,l/m)):(I=i==="auto"?l:i,S=c===null?j(I,m/l):c==="auto"?m:c);let x={},O=(g,a)=>{X(a)||(x[g]=a.toString())};O("width",I),O("height",S);let V=[e.left,e.top,l,m];return x.viewBox=V.join(" "),{attributes:x,viewBox:V,body:s}}var Y=/\sid="(\S+)"/g,R=new Map;function Z(t){t=t.replace(/[0-9]+$/,"")||"a";let o=R.get(t)||0;return R.set(t,o+1),o?`${t}${o}`:t}function F(t){let o=[],n;for(;n=Y.exec(t);)o.push(n[1]);if(!o.length)return t;let r="suffix"+(Math.random()*16777216|Date.now()).toString(16);return o.forEach(e=>{let s=Z(e),i=e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");t=t.replace(new RegExp('([#;"])('+i+')([")]|\\.[a-z])',"g"),"$1"+s+r+"$3")}),t=t.replace(new RegExp(r,"g"),""),t}function C(t,o){let n=t.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(let r in o)n+=" "+r+'="'+o[r]+'"';return'"+t+""}var tt={body:'?',height:80,width:80},y=new Map,L=new Map,Mt=h(t=>{for(let o of t){if(!o.name)throw new Error('Invalid icon loader. Must have a "name" property with non-empty string value.');if(d.debug("Registering icon pack:",o.name),"loader"in o)L.set(o.name,o.loader);else if("icons"in o)y.set(o.name,o.icons);else throw d.error("Invalid icon loader:",o),new Error('Invalid icon loader. Must have either "icons" or "loader" property.')}},"registerIconPacks"),H=h(async(t,o)=>{let n=v(t,!0,o!==void 0);if(!n)throw new Error(`Invalid icon name: ${t}`);let r=n.prefix||o;if(!r)throw new Error(`Icon name must contain a prefix: ${t}`);let e=y.get(r);if(!e){let i=L.get(r);if(!i)throw new Error(`Icon set not found: ${n.prefix}`);try{e={...await i(),prefix:r},y.set(r,e)}catch(c){throw d.error(c),new Error(`Failed to load icon set: ${n.prefix}`)}}let s=b(e,n.name);if(!s)throw new Error(`Icon not found: ${t}`);return s},"getRegisteredIconData"),Pt=h(async t=>{try{return await H(t),!0}catch{return!1}},"isIconAvailable"),$t=h(async(t,o,n)=>{let r;try{r=await H(t,o?.fallbackPrefix)}catch(i){d.error(i),r=tt}let e=D(r,o),s=C(F(e.body),{...e.attributes,...n});return M(s,G())},"getIconSVG");export{tt as a,Mt as b,Pt as c,$t as d}; diff --git a/src/frontend/web/von_interface/static/vendor/conversation-visuals/chunk-CDENLQJG.js b/src/frontend/web/von_interface/static/vendor/conversation-visuals/chunk-CDENLQJG.js new file mode 100644 index 000000000..cff559cbb --- /dev/null +++ b/src/frontend/web/von_interface/static/vendor/conversation-visuals/chunk-CDENLQJG.js @@ -0,0 +1 @@ +import{a as i}from"./chunk-YUSHYV7C.js";function t(c,e){c.accDescr&&e.setAccDescription?.(c.accDescr),c.accTitle&&e.setAccTitle?.(c.accTitle),c.title&&e.setDiagramTitle?.(c.title)}i(t,"populateCommonDb");export{t as a}; diff --git a/src/frontend/web/von_interface/static/vendor/conversation-visuals/chunk-DKYAF235.js b/src/frontend/web/von_interface/static/vendor/conversation-visuals/chunk-DKYAF235.js new file mode 100644 index 000000000..ca5b5823b --- /dev/null +++ b/src/frontend/web/von_interface/static/vendor/conversation-visuals/chunk-DKYAF235.js @@ -0,0 +1 @@ +import{a as r,b as d,c as l,d as o,e as s,g as n,v as u,w as i}from"./chunk-RVPSGR2P.js";var c=class extends i{static{r(this,"WardleyValueConverter")}runCustomConverter(t,e,a){if(t.name.toUpperCase()==="LINK_LABEL")return e.substring(1).trim()}},m={parser:{ValueConverter:r(()=>new c,"ValueConverter")}};function v(t=s){let e=o(l(t),n),a=o(d({shared:e}),u,m);return e.ServiceRegistry.register(a),{shared:e,Wardley:a}}r(v,"createWardleyServices");export{m as a,v as b}; diff --git a/src/frontend/web/von_interface/static/vendor/conversation-visuals/chunk-E4FJ3GMM.js b/src/frontend/web/von_interface/static/vendor/conversation-visuals/chunk-E4FJ3GMM.js new file mode 100644 index 000000000..e488c6c08 --- /dev/null +++ b/src/frontend/web/von_interface/static/vendor/conversation-visuals/chunk-E4FJ3GMM.js @@ -0,0 +1 @@ +import{E as m,H as E,J as a,S as O,X as C,d as b,f as c,g as u,s as o,u as f}from"./chunk-JYJEQ7QO.js";var j="\0",_="\0",N="",p=class{constructor(e={}){this._isDirected=Object.prototype.hasOwnProperty.call(e,"directed")?e.directed:!0,this._isMultigraph=Object.prototype.hasOwnProperty.call(e,"multigraph")?e.multigraph:!1,this._isCompound=Object.prototype.hasOwnProperty.call(e,"compound")?e.compound:!1,this._label=void 0,this._defaultNodeLabelFn=c(void 0),this._defaultEdgeLabelFn=c(void 0),this._nodes={},this._isCompound&&(this._parent={},this._children={},this._children[_]={}),this._in={},this._preds={},this._out={},this._sucs={},this._edgeObjs={},this._edgeLabels={}}isDirected(){return this._isDirected}isMultigraph(){return this._isMultigraph}isCompound(){return this._isCompound}setGraph(e){return this._label=e,this}graph(){return this._label}setDefaultNodeLabel(e){return b(e)||(e=c(e)),this._defaultNodeLabelFn=e,this}nodeCount(){return this._nodeCount}nodes(){return u(this._nodes)}sources(){var e=this;return f(this.nodes(),function(t){return E(e._in[t])})}sinks(){var e=this;return f(this.nodes(),function(t){return E(e._out[t])})}setNodes(e,t){var s=arguments,i=this;return o(e,function(r){s.length>1?i.setNode(r,t):i.setNode(r)}),this}setNode(e,t){return Object.prototype.hasOwnProperty.call(this._nodes,e)?(arguments.length>1&&(this._nodes[e]=t),this):(this._nodes[e]=arguments.length>1?t:this._defaultNodeLabelFn(e),this._isCompound&&(this._parent[e]=_,this._children[e]={},this._children[_][e]=!0),this._in[e]={},this._preds[e]={},this._out[e]={},this._sucs[e]={},++this._nodeCount,this)}node(e){return this._nodes[e]}hasNode(e){return Object.prototype.hasOwnProperty.call(this._nodes,e)}removeNode(e){if(Object.prototype.hasOwnProperty.call(this._nodes,e)){var t=s=>this.removeEdge(this._edgeObjs[s]);delete this._nodes[e],this._isCompound&&(this._removeFromParentsChildList(e),delete this._parent[e],o(this.children(e),s=>{this.setParent(s)}),delete this._children[e]),o(u(this._in[e]),t),delete this._in[e],delete this._preds[e],o(u(this._out[e]),t),delete this._out[e],delete this._sucs[e],--this._nodeCount}return this}setParent(e,t){if(!this._isCompound)throw new Error("Cannot set parent in a non-compound graph");if(a(t))t=_;else{t+="";for(var s=t;!a(s);s=this.parent(s))if(s===e)throw new Error("Setting "+t+" as parent of "+e+" would create a cycle");this.setNode(t)}return this.setNode(e),this._removeFromParentsChildList(e),this._parent[e]=t,this._children[t][e]=!0,this}_removeFromParentsChildList(e){delete this._children[this._parent[e]][e]}parent(e){if(this._isCompound){var t=this._parent[e];if(t!==_)return t}}children(e){if(a(e)&&(e=_),this._isCompound){var t=this._children[e];if(t)return u(t)}else{if(e===_)return this.nodes();if(this.hasNode(e))return[]}}predecessors(e){var t=this._preds[e];if(t)return u(t)}successors(e){var t=this._sucs[e];if(t)return u(t)}neighbors(e){var t=this.predecessors(e);if(t)return C(t,this.successors(e))}isLeaf(e){var t;return this.isDirected()?t=this.successors(e):t=this.neighbors(e),t.length===0}filterNodes(e){var t=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});t.setGraph(this.graph());var s=this;o(this._nodes,function(n,h){e(h)&&t.setNode(h,n)}),o(this._edgeObjs,function(n){t.hasNode(n.v)&&t.hasNode(n.w)&&t.setEdge(n,s.edge(n))});var i={};function r(n){var h=s.parent(n);return h===void 0||t.hasNode(h)?(i[n]=h,h):h in i?i[h]:r(h)}return this._isCompound&&o(t.nodes(),function(n){t.setParent(n,r(n))}),t}setDefaultEdgeLabel(e){return b(e)||(e=c(e)),this._defaultEdgeLabelFn=e,this}edgeCount(){return this._edgeCount}edges(){return m(this._edgeObjs)}setPath(e,t){var s=this,i=arguments;return O(e,function(r,n){return i.length>1?s.setEdge(r,n,t):s.setEdge(r,n),n}),this}setEdge(){var e,t,s,i,r=!1,n=arguments[0];typeof n=="object"&&n!==null&&"v"in n?(e=n.v,t=n.w,s=n.name,arguments.length===2&&(i=arguments[1],r=!0)):(e=n,t=arguments[1],s=arguments[3],arguments.length>2&&(i=arguments[2],r=!0)),e=""+e,t=""+t,a(s)||(s=""+s);var h=g(this._isDirected,e,t,s);if(Object.prototype.hasOwnProperty.call(this._edgeLabels,h))return r&&(this._edgeLabels[h]=i),this;if(!a(s)&&!this._isMultigraph)throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(e),this.setNode(t),this._edgeLabels[h]=r?i:this._defaultEdgeLabelFn(e,t,s);var l=P(this._isDirected,e,t,s);return e=l.v,t=l.w,Object.freeze(l),this._edgeObjs[h]=l,v(this._preds[t],e),v(this._sucs[e],t),this._in[t][h]=l,this._out[e][h]=l,this._edgeCount++,this}edge(e,t,s){var i=arguments.length===1?y(this._isDirected,arguments[0]):g(this._isDirected,e,t,s);return this._edgeLabels[i]}hasEdge(e,t,s){var i=arguments.length===1?y(this._isDirected,arguments[0]):g(this._isDirected,e,t,s);return Object.prototype.hasOwnProperty.call(this._edgeLabels,i)}removeEdge(e,t,s){var i=arguments.length===1?y(this._isDirected,arguments[0]):g(this._isDirected,e,t,s),r=this._edgeObjs[i];return r&&(e=r.v,t=r.w,delete this._edgeLabels[i],delete this._edgeObjs[i],L(this._preds[t],e),L(this._sucs[e],t),delete this._in[t][i],delete this._out[e][i],this._edgeCount--),this}inEdges(e,t){var s=this._in[e];if(s){var i=m(s);return t?f(i,function(r){return r.v===t}):i}}outEdges(e,t){var s=this._out[e];if(s){var i=m(s);return t?f(i,function(r){return r.w===t}):i}}nodeEdges(e,t){var s=this.inEdges(e,t);if(s)return s.concat(this.outEdges(e,t))}};p.prototype._nodeCount=0;p.prototype._edgeCount=0;function v(d,e){d[e]?d[e]++:d[e]=1}function L(d,e){--d[e]||delete d[e]}function g(d,e,t,s){var i=""+e,r=""+t;if(!d&&i>r){var n=i;i=r,r=n}return i+N+r+N+(a(s)?j:s)}function P(d,e,t,s){var i=""+e,r=""+t;if(!d&&i>r){var n=i;i=r,r=n}var h={v:i,w:r};return s&&(h.name=s),h}function y(d,e){return g(d,e.v,e.w,e.name)}export{p as a}; diff --git a/src/frontend/web/von_interface/static/vendor/conversation-visuals/chunk-EQQJCVK6.js b/src/frontend/web/von_interface/static/vendor/conversation-visuals/chunk-EQQJCVK6.js new file mode 100644 index 000000000..83571e8fd --- /dev/null +++ b/src/frontend/web/von_interface/static/vendor/conversation-visuals/chunk-EQQJCVK6.js @@ -0,0 +1 @@ +import{P as w}from"./chunk-S4JILX6U.js";import{b as c}from"./chunk-XEQL7KGA.js";import{a as r}from"./chunk-YUSHYV7C.js";var l=r((t,e,i,h)=>{t.attr("class",i);let{width:o,height:n,x,y:u}=m(t,e);w(t,n,o,h);let a=s(x,u,o,n,e);t.attr("viewBox",a),c.debug(`viewBox configured: ${a} with padding: ${e}`)},"setupViewPortForSVG"),m=r((t,e)=>{let i=t.node()?.getBBox()||{width:0,height:0,x:0,y:0};return{width:i.width+e*2,height:i.height+e*2,x:i.x,y:i.y}},"calculateDimensionsWithPadding"),s=r((t,e,i,h,o)=>`${t-o} ${e-o} ${i} ${h}`,"createViewBox");export{l as a}; diff --git a/src/frontend/web/von_interface/static/vendor/conversation-visuals/chunk-EUYVSIXP.js b/src/frontend/web/von_interface/static/vendor/conversation-visuals/chunk-EUYVSIXP.js new file mode 100644 index 000000000..413334738 --- /dev/null +++ b/src/frontend/web/von_interface/static/vendor/conversation-visuals/chunk-EUYVSIXP.js @@ -0,0 +1,2 @@ +import{a as pt}from"./chunk-QSTT4QQC.js";import{O as N,i as E,l as gr,o as or,s as dr}from"./chunk-S4JILX6U.js";import{$ as Tr,G as xr,J as br,K as Ar,L as wr,M as Or,N as Br,O as Sr,P as Ir,Q as Pr,R as Mr,S as Wr,T as Er,U as Lr,V as Dr,W as $r,X as Rr,Y as Nr,Z as Fr,_ as jr,b as w,h as hr}from"./chunk-XEQL7KGA.js";import{a}from"./chunk-YUSHYV7C.js";import{c as at}from"./chunk-3RNHDNP5.js";function h(r){return r==null||typeof r!="object"&&typeof r!="function"}function d(r){return r==null?r===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(r)}var F="[object RegExp]",O="[object String]",B="[object Number]",S="[object Boolean]",I="[object Arguments]",j="[object Symbol]",T="[object Date]",z="[object Map]",_="[object Set]",v="[object Array]";var U="[object ArrayBuffer]",k="[object Object]";var H="[object DataView]",q="[object Uint8Array]",K="[object Uint8ClampedArray]",V="[object Uint16Array]",X="[object Uint32Array]";var Y="[object Int8Array]",G="[object Int16Array]",J="[object Int32Array]";var Z="[object Float32Array]",Q="[object Float64Array]";function zr(r){return Array.isArray(r)}function P(r){return ArrayBuffer.isView(r)&&!(r instanceof DataView)}function x(r){return P(r)}function ct(r){if(h(r))return r;let t=d(r);if(!ut(r))return{};if(zr(r)){let e=Array.from(r);return r.length>0&&typeof r[0]=="string"&&Object.hasOwn(r,"index")&&(e.index=r.index,e.input=r.input),e}if(x(r)){let e=r,n=e.constructor;return new n(e.buffer,e.byteOffset,e.length)}if(t==="[object ArrayBuffer]")return new ArrayBuffer(r.byteLength);if(t==="[object DataView]"){let e=r,n=e.buffer,m=e.byteOffset,o=e.byteLength,f=new ArrayBuffer(o),s=new Uint8Array(n,m,o);return new Uint8Array(f).set(s),new DataView(f)}if(t==="[object Boolean]"||t==="[object Number]"||t==="[object String]"){let e=r.constructor,n=new e(r.valueOf());return t==="[object String]"?lt(n,r):nr(n,r),n}if(t==="[object Date]")return new Date(Number(r));if(t==="[object RegExp]"){let e=r,n=new RegExp(e.source,e.flags);return n.lastIndex=e.lastIndex,n}if(t==="[object Symbol]")return Object(Symbol.prototype.valueOf.call(r));if(t==="[object Map]"){let e=r,n=new Map;return e.forEach((m,o)=>{n.set(o,m)}),n}if(t==="[object Set]"){let e=r,n=new Set;return e.forEach(m=>{n.add(m)}),n}if(t==="[object Arguments]"){let e=r,n={};return nr(n,e),n.length=e.length,n[Symbol.iterator]=e[Symbol.iterator],n}let i={};return gt(i,r),nr(i,r),yt(i,r),i}function ut(r){switch(d(r)){case I:case v:case U:case H:case S:case T:case Z:case Q:case Y:case G:case J:case z:case B:case k:case F:case _:case O:case j:case q:case K:case V:case X:return!0;default:return!1}}function nr(r,t){for(let i in t)Object.hasOwn(t,i)&&(r[i]=t[i])}function yt(r,t){let i=Object.getOwnPropertySymbols(t);for(let e=0;e=i)&&(r[e]=t[e])}function gt(r,t){let i=Object.getPrototypeOf(t);i!==null&&typeof t.constructor=="function"&&Object.setPrototypeOf(r,i)}function C(r){if(typeof r!="object"||r==null)return!1;if(Object.getPrototypeOf(r)===null)return!0;if(Object.prototype.toString.call(r)!=="[object Object]"){let i=r[Symbol.toStringTag];return i==null||!Object.getOwnPropertyDescriptor(r,Symbol.toStringTag)?.writable?!1:r.toString()===`[object ${i}]`}let t=r;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(r)===t}function _r(){}function rr(r){return Object.getOwnPropertySymbols(r).filter(t=>Object.prototype.propertyIsEnumerable.call(r,t))}var mr=typeof globalThis=="object"&&globalThis||typeof window=="object"&&window||typeof self=="object"&&self||typeof global=="object"&&global||(function(){return this})();function M(r){return typeof mr.Buffer<"u"&&mr.Buffer.isBuffer(r)}function vr(r){return Number.isSafeInteger(r)&&r>=0}function tr(r){return r!=null&&typeof r!="function"&&vr(r.length)}function Ur(r){return r==="__proto__"}function kr(r,t){return W(r,void 0,r,new Map,t)}function W(r,t,i,e=new Map,n=void 0){let m=n?.(r,t,i,e);if(m!==void 0)return m;if(h(r))return r;if(e.has(r))return e.get(r);if(Array.isArray(r)){let o=new Array(r.length);e.set(r,o);for(let f=0;f{let o=t?.(i,e,n,m);if(o!==void 0)return o;if(typeof r=="object"){if(d(r)==="[object Object]"&&typeof r.constructor!="function"){let f={};return m.set(r,f),u(f,r,n,m),f}switch(Object.prototype.toString.call(r)){case B:case O:case S:{let f=new r.constructor(r?.valueOf());return u(f,r),f}case I:{let f={};return u(f,r),f.length=r.length,f[Symbol.iterator]=r[Symbol.iterator],f}default:return}}})}function fr(r){return Hr(r)}function L(r){return r!==null&&typeof r=="object"&&d(r)==="[object Arguments]"}function D(r){return typeof r=="object"&&r!==null}function qr(r){return D(r)&&tr(r)}function Kr(r){let t=r?.constructor;return r===(typeof t=="function"?t.prototype:Object.prototype)}function b(r,t){if(typeof r!="function"||t!=null&&typeof t!="function")throw new TypeError("Expected a function");let i=function(...e){let n=t?t.apply(this,e):e[0],m=i.cache;if(m.has(n))return m.get(n);let o=r.apply(this,e);return i.cache=m.set(n,o)||m,o};return i.cache=new(b.Cache||Map),i}b.Cache=Map;function Vr(r){if(h(r))return r;if(Array.isArray(r)||P(r)||r instanceof ArrayBuffer||typeof SharedArrayBuffer<"u"&&r instanceof SharedArrayBuffer)return r.slice(0);let t=Object.getPrototypeOf(r);if(t==null)return Object.assign(Object.create(t),r);let i=t.constructor;if(r instanceof Date||r instanceof Map||r instanceof Set)return new i(r);if(r instanceof RegExp){let e=new i(r);return e.lastIndex=r.lastIndex,e}if(r instanceof DataView)return new i(r.buffer.slice(0));if(r instanceof Error){let e;return r instanceof AggregateError?e=new i(r.errors,r.message,{cause:r.cause}):e=new i(r.message,{cause:r.cause}),e.stack=r.stack,Object.assign(e,r),e}return typeof File<"u"&&r instanceof File?new i([r],r.name,{type:r.type,lastModified:r.lastModified}):typeof r=="object"?Object.assign(Object.create(t),r):r}function Xr(r,...t){let i=t.slice(0,-1),e=t[t.length-1],n=r;for(let m=0;mi!=="constructor").length===0:t.length===0}return!0}var Jr=at(pt(),1);var xt="\u200B",bt={curveBasis:wr,curveBasisClosed:Or,curveBasisOpen:Br,curveBumpX:br,curveBumpY:Ar,curveBundle:Sr,curveCardinalClosed:Pr,curveCardinalOpen:Mr,curveCardinal:Ir,curveCatmullRomClosed:Er,curveCatmullRomOpen:Lr,curveCatmullRom:Wr,curveLinear:xr,curveLinearClosed:Dr,curveMonotoneX:$r,curveMonotoneY:Rr,curveNatural:Nr,curveStep:Fr,curveStepAfter:Tr,curveStepBefore:jr},At=/\s*(?:(\w+)(?=:):|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,wt=a(function(r,t){let i=Zr(r,/(?:init\b)|(?:initialize\b)/),e={};if(Array.isArray(i)){let o=i.map(f=>f.args);dr(o),e=or(e,[...o])}else e=i.args;if(!e)return;let n=gr(r,t),m="config";return e[m]!==void 0&&(n==="flowchart-v2"&&(n="flowchart"),e[n]=e[m],delete e[m]),e},"detectInit"),Zr=a(function(r,t=null){try{let i=new RegExp(`[%]{2}(?![{]${At.source})(?=[}][%]{2}).* +`,"ig");r=r.trim().replace(i,"").replace(/'/gm,'"'),w.debug(`Detecting diagram directive${t!==null?" type:"+t:""} based on the text:${r}`);let e,n=[];for(;(e=E.exec(r))!==null;)if(e.index===E.lastIndex&&E.lastIndex++,e&&!t||t&&e[1]?.match(t)||t&&e[2]?.match(t)){let m=e[1]?e[1]:e[2],o=e[3]?e[3].trim():e[4]?JSON.parse(e[4].trim()):null;n.push({type:m,args:o})}return n.length===0?{type:r,args:null}:n.length===1?n[0]:n}catch(i){return w.error(`ERROR: ${i.message} - Unable to parse directive type: '${t}' based on the text: '${r}'`),{type:void 0,args:null}}},"detectDirective"),mi=a(function(r){return r.replace(E,"")},"removeDirectives"),Ot=a(function(r,t){for(let[i,e]of t.entries())if(e.match(r))return i;return-1},"isSubstringInArray");function Qr(r,t){if(!r)return t;let i=`curve${r.charAt(0).toUpperCase()+r.slice(1)}`;return bt[i]??t}a(Qr,"interpolateToCurve");function Cr(r,t){let i=r.trim();if(i)return t.securityLevel!=="loose"?(0,Jr.sanitizeUrl)(i):i}a(Cr,"formatUrl");var Bt=a((r,...t)=>{let i=r.split("."),e=i.length-1,n=i[e],m=window;for(let o=0;o{i+=ar(n,t),t=n});let e=i/2;return pr(r,e)}a(rt,"traverseEdge");function tt(r){return r.length===1?r[0]:rt(r)}a(tt,"calcLabelPosition");var Yr=a((r,t=2)=>{let i=Math.pow(10,t);return Math.round(r*i)/i},"roundNumber"),pr=a((r,t)=>{let i,e=t;for(let n of r){if(i){let m=ar(n,i);if(m===0)return i;if(m=1)return{x:n.x,y:n.y};if(o>0&&o<1)return{x:Yr((1-o)*i.x+o*n.x,5),y:Yr((1-o)*i.y+o*n.y,5)}}}i=n}throw new Error("Could not find a suitable point for the given distance")},"calculatePoint"),St=a((r,t,i)=>{w.info(`our points ${JSON.stringify(t)}`),t[0]!==i&&(t=t.reverse());let n=pr(t,25),m=r?10:5,o=Math.atan2(t[0].y-n.y,t[0].x-n.x),f={x:0,y:0};return f.x=Math.sin(o)*m+(t[0].x+n.x)/2,f.y=-Math.cos(o)*m+(t[0].y+n.y)/2,f},"calcCardinalityPosition");function et(r,t,i){let e=structuredClone(i);w.info("our points",e),t!=="start_left"&&t!=="start_right"&&e.reverse();let n=25+r,m=pr(e,n),o=10+r*.5,f=Math.atan2(e[0].y-m.y,e[0].x-m.x),s={x:0,y:0};return t==="start_left"?(s.x=Math.sin(f+Math.PI)*o+(e[0].x+m.x)/2,s.y=-Math.cos(f+Math.PI)*o+(e[0].y+m.y)/2):t==="end_right"?(s.x=Math.sin(f-Math.PI)*o+(e[0].x+m.x)/2-5,s.y=-Math.cos(f-Math.PI)*o+(e[0].y+m.y)/2-5):t==="end_left"?(s.x=Math.sin(f)*o+(e[0].x+m.x)/2-5,s.y=-Math.cos(f)*o+(e[0].y+m.y)/2-5):(s.x=Math.sin(f)*o+(e[0].x+m.x)/2,s.y=-Math.cos(f)*o+(e[0].y+m.y)/2),s}a(et,"calcTerminalLabelPosition");function it(r){let t="",i="";for(let e of r)e!==void 0&&(e.startsWith("color:")||e.startsWith("text-align:")?i=i+e+";":t=t+e+";");return{style:t,labelStyle:i}}a(it,"getStylesFromArray");var Gr=0,It=a(()=>(Gr++,"id-"+Math.random().toString(36).substr(2,12)+"-"+Gr),"generateId");function ot(r){let t="",i="0123456789abcdef",e=i.length;for(let n=0;not(r.length),"random"),Mt=a(function(){return{x:0,y:0,fill:void 0,anchor:"start",style:"#666",width:100,height:100,textMargin:0,rx:0,ry:0,valign:void 0,text:""}},"getTextObj"),Wt=a(function(r,t){let i=t.text.replace(N.lineBreakRegex," "),[,e]=ur(t.fontSize),n=r.append("text");n.attr("x",t.x),n.attr("y",t.y),n.style("text-anchor",t.anchor),n.style("font-family",t.fontFamily),n.style("font-size",e),n.style("font-weight",t.fontWeight),n.attr("fill",t.fill),t.class!==void 0&&n.attr("class",t.class);let m=n.append("tspan");return m.attr("x",t.x+t.textMargin*2),m.attr("fill",t.fill),m.text(i),n},"drawSimpleText"),Et=b((r,t,i)=>{if(!r||(i=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",joinWith:"
"},i),N.hasBreaks(r)))return r;let e=r.split(" ").filter(Boolean),n=[],m="";return e.forEach((o,f)=>{let s=$(`${o} `,i),p=$(m,i);if(s>t){let{hyphenatedStrings:g,remainingWord:l}=Lt(o,t,"-",i);n.push(m,...g),m=l}else p+s>=t?(n.push(m),m=o):m=[m,o].filter(Boolean).join(" ");f+1===e.length&&n.push(m)}),n.filter(o=>o!=="").join(i.joinWith)},(r,t,i)=>`${r}${t}${i.fontSize}${i.fontWeight}${i.fontFamily}${i.joinWith}`),Lt=b((r,t,i="-",e)=>{e=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",margin:0},e);let n=[...r],m=[],o="";return n.forEach((f,s)=>{let p=`${o}${f}`;if($(p,e)>=t){let c=s+1,g=n.length===c,l=`${p}${i}`;m.push(g?p:l),o=""}else o=p}),{hyphenatedStrings:m,remainingWord:o}},(r,t,i="-",e)=>`${r}${t}${i}${e.fontSize}${e.fontWeight}${e.fontFamily}`);function nt(r,t){return cr(r,t).height}a(nt,"calculateTextHeight");function $(r,t){return cr(r,t).width}a($,"calculateTextWidth");var cr=b((r,t)=>{let{fontSize:i=12,fontFamily:e="Arial",fontWeight:n=400}=t;if(!r)return{width:0,height:0};let[,m]=ur(i),o=["sans-serif",e],f=r.split(N.lineBreakRegex),s=[],p=hr("body");if(!p.remove)return{width:0,height:0,lineHeight:0};let y=p.append("svg");for(let g of o){let l=0,A={width:0,height:0,lineHeight:0};for(let st of f){let yr=Mt();yr.text=st||xt;let lr=Wt(y,yr).style("font-size",m).style("font-weight",n).style("font-family",g),R=(lr._groups||lr)[0][0].getBBox();if(R.width===0&&R.height===0)throw new Error("svg element not in render tree");A.width=Math.round(Math.max(A.width,R.width)),l=Math.round(R.height),A.height+=l,A.lineHeight=Math.round(Math.max(A.lineHeight,l))}s.push(A)}y.remove();let c=isNaN(s[1].height)||isNaN(s[1].width)||isNaN(s[1].lineHeight)||s[0].height>s[1].height&&s[0].width>s[1].width&&s[0].lineHeight>s[1].lineHeight?0:1;return s[c]},(r,t)=>`${r}${t.fontSize}${t.fontWeight}${t.fontFamily}`),Dt=class{constructor(r=!1,t){this.count=0,this.count=t?t.length:0,this.next=r?()=>this.count++:()=>Date.now()}static{a(this,"InitIDGenerator")}},ir,$t=a(function(r){return ir=ir||document.createElement("div"),r=escape(r).replace(/%26/g,"&").replace(/%23/g,"#").replace(/%3B/g,";"),ir.innerHTML=r,unescape(ir.textContent)},"entityDecode");function Rt(r){return"str"in r}a(Rt,"isDetailedError");var Nt=a((r,t,i,e)=>{if(!e)return;let n=r.node()?.getBBox();n&&r.append("text").text(e).attr("text-anchor","middle").attr("x",n.x+n.width/2).attr("y",-i).attr("class",t)},"insertTitle"),ur=a(r=>{if(typeof r=="number")return[r,r+"px"];let t=parseInt(r??"",10);return Number.isNaN(t)?[void 0,void 0]:r===String(t)?[t,r+"px"]:[t,r]},"parseFontSize");function mt(r,t){return sr({},r,t)}a(mt,"cleanAndMerge");var fi={assignWithDepth:or,wrapLabel:Et,calculateTextHeight:nt,calculateTextWidth:$,calculateTextDimensions:cr,cleanAndMerge:mt,detectInit:wt,detectDirective:Zr,isSubstringInArray:Ot,interpolateToCurve:Qr,calcLabelPosition:tt,calcCardinalityPosition:St,calcTerminalLabelPosition:et,formatUrl:Cr,getStylesFromArray:it,generateId:It,random:Pt,runFunc:Bt,entityDecode:$t,insertTitle:Nt,isLabelCoordinateInPath:ft,parseFontSize:ur,InitIDGenerator:Dt},si=a(function(r){let t=r;return t=t.replace(/style.*:\S*#.*;/g,function(i){return i.substring(0,i.length-1)}),t=t.replace(/classDef.*:\S*#.*;/g,function(i){return i.substring(0,i.length-1)}),t=t.replace(/#\w+;/g,function(i){let e=i.substring(1,i.length-1);return/^\+?\d+$/.test(e)?"\uFB02\xB0\xB0"+e+"\xB6\xDF":"\uFB02\xB0"+e+"\xB6\xDF"}),t},"encodeEntities"),ai=a(function(r){return r.replace(/fl°°/g,"&#").replace(/fl°/g,"&").replace(/¶ß/g,";")},"decodeEntities"),pi=a((r,t,{counter:i=0,prefix:e,suffix:n},m)=>m||`${e?`${e}_`:""}${r}_${t}_${i}${n?`_${n}`:""}`,"getEdgeId");function Ft(r){return r??null}a(Ft,"handleUndefinedAttr");function ft(r,t){let i=Math.round(r.x),e=Math.round(r.y),n=t.replace(/(\d+\.\d+)/g,m=>Math.round(parseFloat(m)).toString());return n.includes(i.toString())||n.includes(e.toString())}a(ft,"isLabelCoordinateInPath");export{ct as a,ht as b,xt as c,mi as d,Qr as e,it as f,It as g,Pt as h,Et as i,nt as j,$ as k,cr as l,Rt as m,ur as n,mt as o,fi as p,si as q,ai as r,pi as s,Ft as t}; diff --git a/src/frontend/web/von_interface/static/vendor/conversation-visuals/chunk-GDGZBOQC.js b/src/frontend/web/von_interface/static/vendor/conversation-visuals/chunk-GDGZBOQC.js new file mode 100644 index 000000000..eff5d62a9 --- /dev/null +++ b/src/frontend/web/von_interface/static/vendor/conversation-visuals/chunk-GDGZBOQC.js @@ -0,0 +1,32 @@ +import{a as i}from"./chunk-YUSHYV7C.js";function $n(w){return w&&w.__esModule&&Object.prototype.hasOwnProperty.call(w,"default")?w.default:w}i($n,"getDefaultExportFromCjs");var D={},Ye={},oe={},_n;function ge(){if(_n)return oe;_n=1;function w(d){return typeof d>"u"||d===null}i(w,"isNothing");function E(d){return typeof d=="object"&&d!==null}i(E,"isObject");function _(d){return Array.isArray(d)?d:w(d)?[]:[d]}i(_,"toArray");function O(d,p){if(p){let C=Object.keys(p);for(let o=0,u=C.length;oT&&(o=" ... ",y=p-T+o.length),d-p>T&&(u=" ...",d=p+T-u.length),{str:o+h.slice(y,d).replace(/\t/g,"\u2192")+u,pos:p-y+o.length}}i(E,"getLine");function _(h,y){return w.repeat(" ",y-h.length)+h}i(_,"padStart");function O(h,y){if(y=Object.create(y||null),!h.buffer)return null;y.maxLength||(y.maxLength=79),typeof y.indent!="number"&&(y.indent=1),typeof y.linesBefore!="number"&&(y.linesBefore=3),typeof y.linesAfter!="number"&&(y.linesAfter=2);let d=/\r?\n|\r|\0/g,p=[0],C=[],o,u=-1;for(;o=d.exec(h.buffer);)C.push(o.index),p.push(o.index+o[0].length),h.position<=o.index&&u<0&&(u=p.length-2);u<0&&(u=p.length-1);let T="",v=Math.min(h.line+y.linesAfter,C.length).toString().length,M=y.maxLength-(y.indent+v+3);for(let F=1;F<=y.linesBefore&&!(u-F<0);F++){let K=E(h.buffer,p[u-F],C[u-F],h.position-(p[u]-p[u-F]),M);T=w.repeat(" ",y.indent)+_((h.line-F+1).toString(),v)+" | "+K.str+` +`+T}let Z=E(h.buffer,p[u],C[u],h.position,M);T+=w.repeat(" ",y.indent)+_((h.line+1).toString(),v)+" | "+Z.str+` +`,T+=w.repeat("-",y.indent+v+3+Z.pos)+`^ +`;for(let F=1;F<=y.linesAfter&&!(u+F>=C.length);F++){let K=E(h.buffer,p[u+F],C[u+F],h.position-(p[u]-p[u+F]),M);T+=w.repeat(" ",y.indent)+_((h.line+F+1).toString(),v)+" | "+K.str+` +`}return T.replace(/\n$/,"")}return i(O,"makeSnippet"),Be=O,Be}i(Zn,"requireSnippet");var He,Ln;function B(){if(Ln)return He;Ln=1;let w=Ae(),E=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],_=["scalar","sequence","mapping"];function O(y){let d={};return y!==null&&Object.keys(y).forEach(function(p){y[p].forEach(function(C){d[String(C)]=p})}),d}i(O,"compileStyleAliases");function h(y,d){if(d=d||{},Object.keys(d).forEach(function(p){if(E.indexOf(p)===-1)throw new w('Unknown option "'+p+'" is met in definition of "'+y+'" YAML type.')}),this.options=d,this.tag=y,this.kind=d.kind||null,this.resolve=d.resolve||function(){return!0},this.construct=d.construct||function(p){return p},this.instanceOf=d.instanceOf||null,this.predicate=d.predicate||null,this.represent=d.represent||null,this.representName=d.representName||null,this.defaultStyle=d.defaultStyle||null,this.multi=d.multi||!1,this.styleAliases=O(d.styleAliases||null),_.indexOf(this.kind)===-1)throw new w('Unknown kind "'+this.kind+'" is specified for "'+y+'" YAML type.')}return i(h,"Type2"),He=h,He}i(B,"requireType");var je,On;function un(){if(On)return je;On=1;let w=Ae(),E=B();function _(y,d){let p=[];return y[d].forEach(function(C){let o=p.length;p.forEach(function(u,T){u.tag===C.tag&&u.kind===C.kind&&u.multi===C.multi&&(o=T)}),p[o]=C}),p}i(_,"compileList");function O(){let y={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}};function d(p){p.multi?(y.multi[p.kind].push(p),y.multi.fallback.push(p)):y[p.kind][p.tag]=y.fallback[p.tag]=p}i(d,"collectType");for(let p=0,C=arguments.length;p=48&&o<=57||o>=65&&o<=70||o>=97&&o<=102}i(_,"isHexCode");function O(o){return o>=48&&o<=55}i(O,"isOctCode");function h(o){return o>=48&&o<=57}i(h,"isDecCode");function y(o){if(o===null)return!1;let u=o.length,T=0,v=!1;if(!u)return!1;let M=o[T];if((M==="-"||M==="+")&&(M=o[++T]),M==="0"){if(T+1===u)return!0;if(M=o[++T],M==="b"){for(T++;T=0?"0b"+o.toString(2):"-0b"+o.toString(2).slice(1)},"binary"),octal:i(function(o){return o>=0?"0o"+o.toString(8):"-0o"+o.toString(8).slice(1)},"octal"),decimal:i(function(o){return o.toString(10)},"decimal"),hexadecimal:i(function(o){return o>=0?"0x"+o.toString(16).toUpperCase():"-0x"+o.toString(16).toUpperCase().slice(1)},"hexadecimal")},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),Je}i(mn,"requireInt");var Xe,Pn;function gn(){if(Pn)return Xe;Pn=1;let w=ge(),E=B(),_=new RegExp("^(?:[-+]?(?:[0-9]+)(?:\\.[0-9]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$"),O=new RegExp("^(?:[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function h(o){return o===null||!_.test(o)?!1:isFinite(parseFloat(o,10))?!0:O.test(o)}i(h,"resolveYamlFloat");function y(o){let u=o.toLowerCase(),T=u[0]==="-"?-1:1;return"+-".indexOf(u[0])>=0&&(u=u.slice(1)),u===".inf"?T===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:u===".nan"?NaN:T*parseFloat(u,10)}i(y,"constructYamlFloat");let d=/^[-+]?[0-9]+e/;function p(o,u){if(isNaN(o))switch(u){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===o)switch(u){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===o)switch(u){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(w.isNegativeZero(o))return"-0.0";let T=o.toString(10);return d.test(T)?T.replace("e",".e"):T}i(p,"representYamlFloat");function C(o){return Object.prototype.toString.call(o)==="[object Number]"&&(o%1!==0||w.isNegativeZero(o))}return i(C,"isFloat"),Xe=new E("tag:yaml.org,2002:float",{kind:"scalar",resolve:h,construct:y,predicate:C,represent:p,defaultStyle:"lowercase"}),Xe}i(gn,"requireFloat");var $e,Dn;function An(){return Dn||(Dn=1,$e=sn().extend({implicit:[hn(),dn(),mn(),gn()]})),$e}i(An,"requireJson");var Ze,Bn;function yn(){return Bn||(Bn=1,Ze=An()),Ze}i(yn,"requireCore");var ze,Hn;function Sn(){if(Hn)return ze;Hn=1;let w=B(),E=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),_=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");function O(d){return d===null?!1:E.exec(d)!==null||_.exec(d)!==null}i(O,"resolveYamlTimestamp");function h(d){let p=0,C=null,o=E.exec(d);if(o===null&&(o=_.exec(d)),o===null)throw new Error("Date resolve error");let u=+o[1],T=+o[2]-1,v=+o[3];if(!o[4])return new Date(Date.UTC(u,T,v));let M=+o[4],Z=+o[5],F=+o[6];if(o[7]){for(p=o[7].slice(0,3);p.length<3;)p+="0";p=+p}if(o[9]){let z=+o[10],H=+(o[11]||0);C=(z*60+H)*6e4,o[9]==="-"&&(C=-C)}let K=new Date(Date.UTC(u,T,v,M,Z,F,p));return C&&K.setTime(K.getTime()-C),K}i(h,"constructYamlTimestamp");function y(d){return d.toISOString()}return i(y,"representYamlTimestamp"),ze=new w("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:O,construct:h,instanceOf:Date,represent:y}),ze}i(Sn,"requireTimestamp");var en,jn;function Cn(){if(jn)return en;jn=1;let w=B();function E(_){return _==="<<"||_===null}return i(E,"resolveYamlMerge"),en=new w("tag:yaml.org,2002:merge",{kind:"scalar",resolve:E}),en}i(Cn,"requireMerge");var nn,Un;function Tn(){if(Un)return nn;Un=1;let w=B(),E=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/= +\r`;function _(d){if(d===null)return!1;let p=0,C=d.length,o=E;for(let u=0;u64)){if(T<0)return!1;p+=6}}return p%8===0}i(_,"resolveYamlBinary");function O(d){let p=d.replace(/[\r\n=]/g,""),C=p.length,o=E,u=0,T=[];for(let M=0;M>16&255),T.push(u>>8&255),T.push(u&255)),u=u<<6|o.indexOf(p.charAt(M));let v=C%4*6;return v===0?(T.push(u>>16&255),T.push(u>>8&255),T.push(u&255)):v===18?(T.push(u>>10&255),T.push(u>>2&255)):v===12&&T.push(u>>4&255),new Uint8Array(T)}i(O,"constructYamlBinary");function h(d){let p="",C=0,o=d.length,u=E;for(let v=0;v>18&63],p+=u[C>>12&63],p+=u[C>>6&63],p+=u[C&63]),C=(C<<8)+d[v];let T=o%3;return T===0?(p+=u[C>>18&63],p+=u[C>>12&63],p+=u[C>>6&63],p+=u[C&63]):T===2?(p+=u[C>>10&63],p+=u[C>>4&63],p+=u[C<<2&63],p+=u[64]):T===1&&(p+=u[C>>2&63],p+=u[C<<4&63],p+=u[64],p+=u[64]),p}i(h,"representYamlBinary");function y(d){return Object.prototype.toString.call(d)==="[object Uint8Array]"}return i(y,"isBinary"),nn=new w("tag:yaml.org,2002:binary",{kind:"scalar",resolve:_,construct:O,predicate:y,represent:h}),nn}i(Tn,"requireBinary");var rn,Kn;function wn(){if(Kn)return rn;Kn=1;let w=B(),E=Object.prototype.hasOwnProperty,_=Object.prototype.toString;function O(y){if(y===null)return!0;let d=[],p=y;for(let C=0,o=p.length;C=48&&e<=57)return e-48;let r=e|32;return r>=97&&r<=102?r-97+10:-1}i(Ne,"fromHexCode");function Me(e){return e===120?2:e===117?4:e===85?8:0}i(Me,"escapedHexLen");function ye(e){return e>=48&&e<=57?e-48:-1}i(ye,"fromDecimalCode");function ce(e){switch(e){case 48:return"\0";case 97:return"\x07";case 98:return"\b";case 116:return" ";case 9:return" ";case 110:return` +`;case 118:return"\v";case 102:return"\f";case 114:return"\r";case 101:return"\x1B";case 32:return" ";case 34:return'"';case 47:return"/";case 92:return"\\";case 78:return"\x85";case 95:return"\xA0";case 76:return"\u2028";case 80:return"\u2029";default:return""}}i(ce,"simpleEscapeSequence");function Re(e){return e<=65535?String.fromCharCode(e):String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}i(Re,"charFromCodepoint");function ue(e,r,c){r==="__proto__"?Object.defineProperty(e,r,{configurable:!0,enumerable:!0,writable:!0,value:c}):e[r]=c}i(ue,"setProperty");let qe=new Array(256),Se=new Array(256);for(let e=0;e<256;e++)qe[e]=ce(e)?1:0,Se[e]=ce(e);function Y(e,r){this.input=e,this.filename=r.filename||null,this.schema=r.schema||O,this.onWarning=r.onWarning||null,this.legacy=r.legacy||!1,this.json=r.json||!1,this.listener=r.listener||null,this.maxDepth=typeof r.maxDepth=="number"?r.maxDepth:100,this.maxTotalMergeKeys=typeof r.maxTotalMergeKeys=="number"?r.maxTotalMergeKeys:1e4,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=e.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.depth=0,this.totalMergeKeys=0,this.firstTabInLine=-1,this.documents=[],this.anchorMapTransactions=[]}i(Y,"State");function Ce(e,r){let c={name:e.filename,buffer:e.input.slice(0,-1),position:e.position,line:e.line,column:e.position-e.lineStart};return c.snippet=_(c),new E(r,c)}i(Ce,"generateError");function I(e,r){throw Ce(e,r)}i(I,"throwError");function ee(e,r){e.onWarning&&e.onWarning.call(null,Ce(e,r))}i(ee,"throwWarning");function G(e,r,c){let s=e.anchorMapTransactions;if(s.length!==0){let t=s[s.length-1];h.call(t,r)||(t[r]={existed:h.call(e.anchorMap,r),value:e.anchorMap[r]})}e.anchorMap[r]=c}i(G,"storeAnchor");function Fe(e){e.anchorMapTransactions.push(Object.create(null))}i(Fe,"beginAnchorTransaction");function ne(e){let r=e.anchorMapTransactions.pop(),c=e.anchorMapTransactions;if(c.length===0)return;let s=c[c.length-1],t=Object.keys(r);for(let S=0,n=t.length;S=0;s-=1){let t=r[c[s]];t.existed?e.anchorMap[c[s]]=t.value:delete e.anchorMap[c[s]]}}i(Te,"rollbackAnchorTransaction");function te(e){return{position:e.position,line:e.line,lineStart:e.lineStart,lineIndent:e.lineIndent,firstTabInLine:e.firstTabInLine,tag:e.tag,anchor:e.anchor,kind:e.kind,result:e.result}}i(te,"snapshotState");function ie(e,r){e.position=r.position,e.line=r.line,e.lineStart=r.lineStart,e.lineIndent=r.lineIndent,e.firstTabInLine=r.firstTabInLine,e.tag=r.tag,e.anchor=r.anchor,e.kind=r.kind,e.result=r.result}i(ie,"restoreState");let we={YAML:i(function(r,c,s){r.version!==null&&I(r,"duplication of %YAML directive"),s.length!==1&&I(r,"YAML directive accepts exactly one argument");let t=/^([0-9]+)\.([0-9]+)$/.exec(s[0]);t===null&&I(r,"ill-formed argument of the YAML directive");let S=parseInt(t[1],10),n=parseInt(t[2],10);S!==1&&I(r,"unacceptable YAML version of the document"),r.version=s[0],r.checkLineBreaks=n<2,n!==1&&n!==2&&ee(r,"unsupported YAML version of the document")},"handleYamlDirective"),TAG:i(function(r,c,s){let t;s.length!==2&&I(r,"TAG directive accepts exactly two arguments");let S=s[0];t=s[1],F.test(S)||I(r,"ill-formed tag handle (first argument) of the TAG directive"),h.call(r.tagMap,S)&&I(r,'there is a previously declared suffix for "'+S+'" tag handle'),K.test(t)||I(r,"ill-formed tag prefix (second argument) of the TAG directive");try{t=decodeURIComponent(t)}catch{I(r,"tag prefix is malformed: "+t)}r.tagMap[S]=t},"handleTagDirective")};function U(e,r,c,s){if(r=32&&l<=1114111||I(e,"expected valid JSON character")}else v.test(t)&&I(e,"the stream contains non-printable characters");e.result+=t}}i(U,"captureSegment");function J(e,r,c,s){w.isObject(c)||I(e,"cannot merge mappings; the provided source object is unacceptable");let t=Object.keys(c);for(let S=0,n=t.length;Se.maxTotalMergeKeys&&I(e,"merge keys exceeded maxTotalMergeKeys ("+e.maxTotalMergeKeys+")"),h.call(r,l)||(ue(r,l,c[l]),s[l]=!0)}}i(J,"mergeMappings");function W(e,r,c,s,t,S,n,l,g){if(Array.isArray(t)){t=Array.prototype.slice.call(t);for(let f=0,a=t.length;f1&&(e.result+=w.repeat(` +`,r-1))}i(Q,"writeFoldedLines");function fe(e,r,c){let s,t,S,n,l,g,f=e.kind,a=e.result,A=e.input.charCodeAt(e.position);if(P(A)||$(A)||A===35||A===38||A===42||A===33||A===124||A===62||A===39||A===34||A===37||A===64||A===96)return!1;if(A===63||A===45){let m=e.input.charCodeAt(e.position+1);if(P(m)||c&&$(m))return!1}for(e.kind="scalar",e.result="",s=t=e.position,S=!1;A!==0;){if(A===58){let m=e.input.charCodeAt(e.position+1);if(P(m)||c&&$(m))break}else if(A===35){let m=e.input.charCodeAt(e.position-1);if(P(m))break}else{if(e.position===e.lineStart&&le(e)||c&&$(A))break;if(H(A))if(n=e.line,l=e.lineStart,g=e.lineIndent,q(e,!1,-1),e.lineIndent>=r){S=!0,A=e.input.charCodeAt(e.position);continue}else{e.position=t,e.line=n,e.lineStart=l,e.lineIndent=g;break}}S&&(U(e,s,t,!1),Q(e,e.line-n),s=t=e.position,S=!1),j(A)||(t=e.position+1),A=e.input.charCodeAt(++e.position)}return U(e,s,t,!1),e.result?!0:(e.kind=f,e.result=a,!1)}i(fe,"readPlainScalar");function xe(e,r){let c,s,t=e.input.charCodeAt(e.position);if(t!==39)return!1;for(e.kind="scalar",e.result="",e.position++,c=s=e.position;(t=e.input.charCodeAt(e.position))!==0;)if(t===39)if(U(e,c,e.position,!0),t=e.input.charCodeAt(++e.position),t===39)c=e.position,e.position++,s=e.position;else return!0;else H(t)?(U(e,c,s,!0),Q(e,q(e,!1,r)),c=s=e.position):e.position===e.lineStart&&le(e)?I(e,"unexpected end of the document within a single quoted scalar"):(e.position++,j(t)||(s=e.position));I(e,"unexpected end of the stream within a single quoted scalar")}i(xe,"readSingleQuotedScalar");function ae(e,r){let c,s,t,S=e.input.charCodeAt(e.position);if(S!==34)return!1;for(e.kind="scalar",e.result="",e.position++,c=s=e.position;(S=e.input.charCodeAt(e.position))!==0;){if(S===34)return U(e,c,e.position,!0),e.position++,!0;if(S===92){if(U(e,c,e.position,!0),S=e.input.charCodeAt(++e.position),H(S))q(e,!1,r);else if(S<256&&qe[S])e.result+=Se[S],e.position++;else if((t=Me(S))>0){let n=t,l=0;for(;n>0;n--)S=e.input.charCodeAt(++e.position),(t=Ne(S))>=0?l=(l<<4)+t:I(e,"expected hexadecimal character");e.result+=Re(l),e.position++}else I(e,"unknown escape sequence");c=s=e.position}else H(S)?(U(e,c,s,!0),Q(e,q(e,!1,r)),c=s=e.position):e.position===e.lineStart&&le(e)?I(e,"unexpected end of the document within a double quoted scalar"):(e.position++,j(S)||(s=e.position))}I(e,"unexpected end of the stream within a double quoted scalar")}i(ae,"readDoubleQuotedScalar");function be(e,r){let c=!0,s,t,S,n=e.tag,l,g=e.anchor,f,a,A,m,b=Object.create(null),x,k,L,N=e.input.charCodeAt(e.position);if(N===91)f=93,m=!1,l=[];else if(N===123)f=125,m=!0,l={};else return!1;for(e.anchor!==null&&G(e,e.anchor,l),N=e.input.charCodeAt(++e.position);N!==0;){if(q(e,!0,r),N=e.input.charCodeAt(e.position),N===f)return e.position++,e.tag=n,e.anchor=g,e.kind=m?"mapping":"sequence",e.result=l,!0;if(c?N===44&&I(e,"expected the node content, but found ','"):I(e,"missed comma between flow collection entries"),k=x=L=null,a=A=!1,N===63){let R=e.input.charCodeAt(e.position+1);P(R)&&(a=A=!0,e.position++,q(e,!0,r))}s=e.line,t=e.lineStart,S=e.position,V(e,r,y,!1,!0),k=e.tag,x=e.result,q(e,!0,r),N=e.input.charCodeAt(e.position),(A||e.line===s)&&N===58&&(a=!0,N=e.input.charCodeAt(++e.position),q(e,!0,r),V(e,r,y,!1,!0),L=e.result),m?W(e,l,b,k,x,L,s,t,S):a?l.push(W(e,null,b,k,x,L,s,t,S)):l.push(x),q(e,!0,r),N=e.input.charCodeAt(e.position),N===44?(c=!0,N=e.input.charCodeAt(++e.position)):c=!1}I(e,"unexpected end of the stream within a flow collection")}i(be,"readFlowCollection");function Ee(e,r){let c,s=o,t=!1,S=!1,n=r,l=0,g=!1,f,a=e.input.charCodeAt(e.position);if(a===124)c=!1;else if(a===62)c=!0;else return!1;for(e.kind="scalar",e.result="";a!==0;)if(a=e.input.charCodeAt(++e.position),a===43||a===45)o===s?s=a===43?T:u:I(e,"repeat of a chomping mode identifier");else if((f=ye(a))>=0)f===0?I(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):S?I(e,"repeat of an indentation width identifier"):(n=r+f-1,S=!0);else break;if(j(a)){do a=e.input.charCodeAt(++e.position);while(j(a));if(a===35)do a=e.input.charCodeAt(++e.position);while(!H(a)&&a!==0)}for(;a!==0;){for(re(e),e.lineIndent=0,a=e.input.charCodeAt(e.position);(!S||e.lineIndentn&&(n=e.lineIndent),H(a)){l++;continue}if(!S&&n===0&&I(e,"missing indentation for block scalar"),e.lineIndentr)&&n!==0)I(e,"bad indentation of a sequence entry");else if(e.lineIndentr)&&(x&&(t=e.line,S=e.lineStart,n=e.position),V(e,r,C,!0,s)&&(x?m=e.result:b=e.result),x||(W(e,f,a,A,m,b,t,S,n),A=m=b=null),q(e,!0,-1),L=e.input.charCodeAt(e.position)),(e.line===R||e.lineIndent>r)&&L!==0)I(e,"bad indentation of a mapping entry");else if(e.lineIndent=e.maxDepth&&I(e,"nesting exceeded maxDepth ("+e.maxDepth+")"),e.depth+=1,e.listener!==null&&e.listener("open",e),e.tag=null,e.anchor=null,e.kind=null,e.result=null;let x=S=n=C===c||p===c;if(s&&q(e,!0,-1)&&(g=!0,e.lineIndent>r?l=1:e.lineIndent===r?l=0:e.lineIndentr?l=1:e.lineIndent===r?l=0:e.lineIndent tag; it should be "scalar", not "'+e.kind+'"');for(let k=0,L=e.implicitTypes.length;k"),e.result!==null&&A.kind!==e.kind&&I(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+A.kind+'", not "'+e.kind+'"'),A.resolve(e.result,e.tag)?(e.result=A.construct(e.result,e.tag),e.anchor!==null&&G(e,e.anchor,e.result)):I(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")}return e.listener!==null&&e.listener("close",e),e.depth-=1,e.tag!==null||e.anchor!==null||f}i(V,"composeNode");function ke(e){let r=e.position,c=!1,s;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap=Object.create(null),e.anchorMap=Object.create(null);(s=e.input.charCodeAt(e.position))!==0&&(q(e,!0,-1),s=e.input.charCodeAt(e.position),!(e.lineIndent>0||s!==37));){c=!0,s=e.input.charCodeAt(++e.position);let t=e.position;for(;s!==0&&!P(s);)s=e.input.charCodeAt(++e.position);let S=e.input.slice(t,e.position),n=[];for(S.length<1&&I(e,"directive name must not be less than one character in length");s!==0;){for(;j(s);)s=e.input.charCodeAt(++e.position);if(s===35){do s=e.input.charCodeAt(++e.position);while(s!==0&&!H(s));break}if(H(s))break;for(t=e.position;s!==0&&!P(s);)s=e.input.charCodeAt(++e.position);n.push(e.input.slice(t,e.position))}s!==0&&re(e),h.call(we,S)?we[S](e,S,n):ee(e,'unknown document directive "'+S+'"')}if(q(e,!0,-1),e.lineIndent===0&&e.input.charCodeAt(e.position)===45&&e.input.charCodeAt(e.position+1)===45&&e.input.charCodeAt(e.position+2)===45?(e.position+=3,q(e,!0,-1)):c&&I(e,"directives end mark is expected"),V(e,e.lineIndent-1,C,!1,!0),q(e,!0,-1),e.checkLineBreaks&&M.test(e.input.slice(r,e.position))&&ee(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&le(e)){e.input.charCodeAt(e.position)===46&&(e.position+=3,q(e,!0,-1));return}e.position"u"&&(c=r,r=null);let s=de(e,c);if(typeof r!="function")return s;for(let t=0,S=s.length;t=32&&n<=126||n>=161&&n<=55295&&n!==8232&&n!==8233||n>=57344&&n<=65533&&n!==y||n>=65536&&n<=1114111}i(J,"isPrintable");function W(n){return J(n)&&n!==y&&n!==C&&n!==p}i(W,"isNsCharOrWhitespace");function re(n,l,g){let f=W(n),a=f&&!U(n);return(g?f:f&&n!==z&&n!==ye&&n!==ce&&n!==ue&&n!==Se)&&n!==v&&!(l===j&&!a)||W(l)&&!U(l)&&n===v||l===j&&a}i(re,"isPlainSafe");function q(n){return J(n)&&n!==y&&!U(n)&&n!==H&&n!==Ne&&n!==j&&n!==z&&n!==ye&&n!==ce&&n!==ue&&n!==Se&&n!==v&&n!==Z&&n!==K&&n!==u&&n!==qe&&n!==P&&n!==$&&n!==F&&n!==T&&n!==M&&n!==Me&&n!==Re}i(q,"isPlainSafeFirst");function le(n){return!U(n)&&n!==j}i(le,"isPlainSafeLast");function Q(n,l){let g=n.charCodeAt(l),f;return g>=55296&&g<=56319&&l+1=56320&&f<=57343)?(g-55296)*1024+f-56320+65536:g}i(Q,"codePointAt");function fe(n){return/^\n* /.test(n)}i(fe,"needIndentIndicator");let xe=1,ae=2,be=3,Ee=4,X=5;function pe(n,l,g,f,a,A,m,b){let x,k=0,L=null,N=!1,R=!1,En=f!==-1,Oe=-1,ve=q(Q(n,0))&&le(Q(n,n.length-1));if(l||m)for(x=0;x=65536?x+=2:x++){if(k=Q(n,x),!J(k))return X;ve=ve&&re(k,L,b),L=k}else{for(x=0;x=65536?x+=2:x++){if(k=Q(n,x),k===p)N=!0,En&&(R=R||x-Oe-1>f&&n[Oe+1]!==" ",Oe=x);else if(!J(k))return X;ve=ve&&re(k,L,b),L=k}R=R||En&&x-Oe-1>f&&n[Oe+1]!==" "}return!N&&!R?ve&&!m&&!a(n)?xe:A===ne?X:ae:g>9&&fe(n)?X:m?A===ne?X:ae:R?Ee:be}i(pe,"chooseScalarStyle");function _e(n,l,g,f,a){n.dump=(function(){if(l.length===0)return n.quotingType===ne?'""':"''";if(!n.noCompatMode&&(Ce.indexOf(l)!==-1||I.test(l)))return n.quotingType===ne?'"'+l+'"':"'"+l+"'";let A=n.indent*Math.max(1,g),m=n.lineWidth===-1?-1:Math.max(Math.min(n.lineWidth,40),n.lineWidth-A),b=f||n.flowLevel>-1&&g>=n.flowLevel;function x(k){return we(n,k)}switch(i(x,"testAmbiguity"),pe(l,b,n.indent,m,x,n.quotingType,n.forceQuotes&&!f,a)){case xe:return l;case ae:return"'"+l.replace(/'/g,"''")+"'";case be:return"|"+se(l,n.indent)+he(te(l,A));case Ee:return">"+se(l,n.indent)+he(te(Ie(l,m),A));case X:return'"'+ke(l)+'"';default:throw new E("impossible error: invalid scalar style")}})()}i(_e,"writeScalar");function se(n,l){let g=fe(n)?String(l):"",f=n[n.length-1]===` +`,A=f&&(n[n.length-2]===` +`||n===` +`)?"+":f?"":"-";return g+A+` +`}i(se,"blockHeader");function he(n){return n[n.length-1]===` +`?n.slice(0,-1):n}i(he,"dropEndingNewline");function Ie(n,l){let g=/(\n+)([^\n]*)/g,f=(function(){let b=n.indexOf(` +`);return b=b!==-1?b:n.length,g.lastIndex=b,V(n.slice(0,b),l)})(),a=n[0]===` +`||n[0]===" ",A,m;for(;m=g.exec(n);){let b=m[1],x=m[2];A=x[0]===" ",f+=b+(!a&&!A&&x!==""?` +`:"")+V(x,l),a=A}return f}i(Ie,"foldString");function V(n,l){if(n===""||n[0]===" ")return n;let g=/ [^ ]/g,f,a=0,A,m=0,b=0,x="";for(;f=g.exec(n);)b=f.index,b-a>l&&(A=m>a?m:b,x+=` +`+n.slice(a,A),a=A+1),m=b;return x+=` +`,n.length-a>l&&m>a?x+=n.slice(a,m)+` +`+n.slice(m+1):x+=n.slice(a),x.slice(1)}i(V,"foldLine");function ke(n){let l="",g=0;for(let f=0;f=65536?f+=2:f++){g=Q(n,f);let a=Y[g];!a&&J(g)?(l+=n[f],g>=65536&&(l+=n[f+1])):l+=a||G(g)}return l}i(ke,"escapeString");function de(n,l,g){let f="",a=n.tag;for(let A=0,m=g.length;A"u"&&c(n,l,null,!1,!1))&&(f!==""&&(f+=","+(n.condenseFlow?"":" ")),f+=n.dump)}n.tag=a,n.dump="["+f+"]"}i(de,"writeFlowSequence");function me(n,l,g,f){let a="",A=n.tag;for(let m=0,b=g.length;m"u"&&c(n,l+1,null,!0,!0,!1,!0))&&((!f||a!=="")&&(a+=ie(n,l)),n.dump&&p===n.dump.charCodeAt(0)?a+="-":a+="- ",a+=n.dump)}n.tag=A,n.dump=a||"[]"}i(me,"writeBlockSequence");function Le(n,l,g){let f="",a=n.tag,A=Object.keys(g);for(let m=0,b=A.length;m1024&&(x+="? "),x+=n.dump+(n.condenseFlow?'"':"")+":"+(n.condenseFlow?"":" "),c(n,l,L,!1,!1)&&(x+=n.dump,f+=x))}n.tag=a,n.dump="{"+f+"}"}i(Le,"writeFlowMapping");function e(n,l,g,f){let a="",A=n.tag,m=Object.keys(g);if(n.sortKeys===!0)m.sort();else if(typeof n.sortKeys=="function")m.sort(n.sortKeys);else if(n.sortKeys)throw new E("sortKeys must be a boolean or a function");for(let b=0,x=m.length;b1024;R&&(n.dump&&p===n.dump.charCodeAt(0)?k+="?":k+="? "),k+=n.dump,R&&(k+=ie(n,l)),c(n,l+1,N,!0,R)&&(n.dump&&p===n.dump.charCodeAt(0)?k+=":":k+=": ",k+=n.dump,a+=k)}n.tag=A,n.dump=a||"{}"}i(e,"writeBlockMapping");function r(n,l,g){let f=g?n.explicitTypes:n.implicitTypes;for(let a=0,A=f.length;a tag resolver accepts not "'+b+'" style');n.dump=x}return!0}}return!1}i(r,"detectType");function c(n,l,g,f,a,A,m){n.tag=null,n.dump=g,r(n,g,!1)||r(n,g,!0);let b=O.call(n.dump),x=f;f&&(f=n.flowLevel<0||n.flowLevel>l);let k=b==="[object Object]"||b==="[object Array]",L,N;if(k&&(L=n.duplicates.indexOf(g),N=L!==-1),(n.tag!==null&&n.tag!=="?"||N||n.indent!==2&&l>0)&&(a=!1),N&&n.usedDuplicates[L])n.dump="*ref_"+L;else{if(k&&N&&!n.usedDuplicates[L]&&(n.usedDuplicates[L]=!0),b==="[object Object]")f&&Object.keys(n.dump).length!==0?(e(n,l,n.dump,a),N&&(n.dump="&ref_"+L+n.dump)):(Le(n,l,n.dump),N&&(n.dump="&ref_"+L+" "+n.dump));else if(b==="[object Array]")f&&n.dump.length!==0?(n.noArrayIndent&&!m&&l>0?me(n,l-1,n.dump,a):me(n,l,n.dump,a),N&&(n.dump="&ref_"+L+n.dump)):(de(n,l,n.dump),N&&(n.dump="&ref_"+L+" "+n.dump));else if(b==="[object String]")n.tag!=="?"&&_e(n,n.dump,l,A,x);else{if(b==="[object Undefined]")return!1;if(n.skipInvalid)return!1;throw new E("unacceptable kind of an object to dump "+b)}if(n.tag!==null&&n.tag!=="?"){let R=encodeURI(n.tag[0]==="!"?n.tag.slice(1):n.tag).replace(/!/g,"%21");n.tag[0]==="!"?R="!"+R:R.slice(0,18)==="tag:yaml.org,2002:"?R="!!"+R.slice(18):R="!<"+R+">",n.dump=R+" "+n.dump}}return!0}i(c,"writeNode");function s(n,l){let g=[],f=[];t(n,g,f);let a=f.length;for(let A=0;Ar.length)&&(e=r.length);for(var t=0,a=Array(e);t=r.length?{done:!0}:{done:!1,value:r[a++]}},e:function(u){throw u},f:n}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var i,s=!0,o=!1;return{s:function(){t=t.call(r)},n:function(){var u=t.next();return s=u.done,u},e:function(u){o=!0,i=u},f:function(){try{s||t.return==null||t.return()}finally{if(o)throw i}}}}function Ql(r,e,t){return(e=Jl(e))in r?Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[e]=t,r}function ic(r){if(typeof Symbol<"u"&&r[Symbol.iterator]!=null||r["@@iterator"]!=null)return Array.from(r)}function sc(r,e){var t=r==null?null:typeof Symbol<"u"&&r[Symbol.iterator]||r["@@iterator"];if(t!=null){var a,n,i,s,o=[],u=!0,l=!1;try{if(i=(t=t.call(r)).next,e===0){if(Object(t)!==t)return;u=!1}else for(;!(u=(a=i.call(t)).done)&&(o.push(a.value),o.length!==e);u=!0);}catch(v){l=!0,n=v}finally{try{if(!u&&t.return!=null&&(s=t.return(),Object(s)!==s))return}finally{if(l)throw n}}return o}}function oc(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function uc(){throw new TypeError(`Invalid attempt to spread non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Xe(r,e){return tc(r)||sc(r,e)||Ks(r,e)||oc()}function yn(r){return ac(r)||ic(r)||Ks(r)||uc()}function lc(r,e){if(typeof r!="object"||!r)return r;var t=r[Symbol.toPrimitive];if(t!==void 0){var a=t.call(r,e);if(typeof a!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(r)}function Jl(r){var e=lc(r,"string");return typeof e=="symbol"?e:e+""}function je(r){"@babel/helpers - typeof";return je=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},je(r)}function Ks(r,e){if(r){if(typeof r=="string")return Ds(r,e);var t={}.toString.call(r).slice(8,-1);return t==="Object"&&r.constructor&&(t=r.constructor.name),t==="Map"||t==="Set"?Array.from(r):t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?Ds(r,e):void 0}}var Qe=typeof window>"u"?null:window,Co=Qe?Qe.navigator:null;Qe&&Qe.document;var vc=je(""),jl=je({}),fc=je(function(){}),cc=typeof HTMLElement>"u"?"undefined":je(HTMLElement),La=function(e){return e&&e.instanceString&&He(e.instanceString)?e.instanceString():null},he=function(e){return e!=null&&je(e)==vc},He=function(e){return e!=null&&je(e)===fc},Fe=function(e){return!Tr(e)&&(Array.isArray?Array.isArray(e):e!=null&&e instanceof Array)},Me=function(e){return e!=null&&je(e)===jl&&!Fe(e)&&e.constructor===Object},dc=function(e){return e!=null&&je(e)===jl},ae=function(e){return e!=null&&je(e)===je(1)&&!isNaN(e)},ev=function(e){return ae(e)&&Math.floor(e)===e},mn=function(e){if(cc!=="undefined")return e!=null&&e instanceof HTMLElement},Tr=function(e){return Ia(e)||rv(e)},Ia=function(e){return La(e)==="collection"&&e._private.single},rv=function(e){return La(e)==="collection"&&!e._private.single},Xs=function(e){return La(e)==="core"},tv=function(e){return La(e)==="stylesheet"},hc=function(e){return La(e)==="event"},st=function(e){return e==null?!0:!!(e===""||e.match(/^\s+$/))},gc=function(e){return typeof HTMLElement>"u"?!1:e instanceof HTMLElement},pc=function(e){return Me(e)&&ae(e.x1)&&ae(e.x2)&&ae(e.y1)&&ae(e.y2)},yc=function(e){return dc(e)&&He(e.then)},mc=function(){return Co&&Co.userAgent.match(/msie|trident|edge/i)},Yt=function(e,t){t||(t=function(){if(arguments.length===1)return arguments[0];if(arguments.length===0)return"undefined";for(var i=[],s=0;st?1:0},Sc=function(e,t){return-1*nv(e,t)},me=Object.assign!=null?Object.assign.bind(Object):function(r){for(var e=arguments,t=1;t1&&(g-=1),g<1/6?d+(y-d)*6*g:g<1/2?y:g<2/3?d+(y-d)*(2/3-g)*6:d}var f=new RegExp("^"+xc+"$").exec(e);if(f){if(a=parseInt(f[1]),a<0?a=(360- -1*a%360)%360:a>360&&(a=a%360),a/=360,n=parseFloat(f[2]),n<0||n>100||(n=n/100,i=parseFloat(f[3]),i<0||i>100)||(i=i/100,s=f[4],s!==void 0&&(s=parseFloat(s),s<0||s>1)))return;if(n===0)o=u=l=Math.round(i*255);else{var c=i<.5?i*(1+n):i+n-i*n,h=2*i-c;o=Math.round(255*v(h,c,a+1/3)),u=Math.round(255*v(h,c,a)),l=Math.round(255*v(h,c,a-1/3))}t=[o,u,l,s]}return t},Bc=function(e){var t,a=new RegExp("^"+bc+"$").exec(e);if(a){t=[];for(var n=[],i=1;i<=3;i++){var s=a[i];if(s[s.length-1]==="%"&&(n[i]=!0),s=parseFloat(s),n[i]&&(s=s/100*255),s<0||s>255)return;t.push(Math.floor(s))}var o=n[1]||n[2]||n[3],u=n[1]&&n[2]&&n[3];if(o&&!u)return;var l=a[4];if(l!==void 0){if(l=parseFloat(l),l<0||l>1)return;t.push(l)}}return t},Pc=function(e){return Ac[e.toLowerCase()]},iv=function(e){return(Fe(e)?e:null)||Pc(e)||kc(e)||Bc(e)||Dc(e)},Ac={transparent:[0,0,0,0],aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],grey:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},sv=function(e){for(var t=e.map,a=e.keys,n=a.length,i=0;i=u||R<0||m&&L>=c}function T(){var A=e();if(x(A))return k(A);d=setTimeout(T,C(A))}function k(A){return d=void 0,b&&v?w(A):(v=f=void 0,h)}function B(){d!==void 0&&clearTimeout(d),g=0,v=y=f=d=void 0}function D(){return d===void 0?h:k(e())}function P(){var A=e(),R=x(A);if(v=arguments,f=this,y=A,R){if(d===void 0)return E(y);if(m)return clearTimeout(d),d=setTimeout(T,u),w(y)}return d===void 0&&(d=setTimeout(T,u)),h}return P.cancel=B,P.flush=D,P}return vi=s,vi}var qc=Vc(),Fa=Oa(qc),fi=Qe?Qe.performance:null,lv=fi&&fi.now?function(){return fi.now()}:function(){return Date.now()},_c=(function(){if(Qe){if(Qe.requestAnimationFrame)return function(r){Qe.requestAnimationFrame(r)};if(Qe.mozRequestAnimationFrame)return function(r){Qe.mozRequestAnimationFrame(r)};if(Qe.webkitRequestAnimationFrame)return function(r){Qe.webkitRequestAnimationFrame(r)};if(Qe.msRequestAnimationFrame)return function(r){Qe.msRequestAnimationFrame(r)}}return function(r){r&&setTimeout(function(){r(lv())},1e3/60)}})(),bn=function(e){return _c(e)},Kr=lv,Ct=9261,vv=65599,_t=5381,fv=function(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Ct,a=t,n;n=e.next(),!n.done;)a=a*vv+n.value|0;return a},Ca=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Ct;return t*vv+e|0},Ta=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:_t;return(t<<5)+t+e|0},Gc=function(e,t){return e*2097152+t},Jr=function(e){return e[0]*2097152+e[1]},Ka=function(e,t){return[Ca(e[0],t[0]),Ta(e[1],t[1])]},Vo=function(e,t){var a={value:0,done:!1},n=0,i=e.length,s={next:function(){return n=0;n--)e[n]===t&&e.splice(n,1)},js=function(e){e.splice(0,e.length)},Jc=function(e,t){for(var a=0;a"u"?"undefined":je(Set))!==ed?Set:rd,Ln=function(e,t){var a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(e===void 0||t===void 0||!Xs(e)){Ge("An element must have a core reference and parameters set");return}var n=t.group;if(n==null&&(t.data&&t.data.source!=null&&t.data.target!=null?n="edges":n="nodes"),n!=="nodes"&&n!=="edges"){Ge("An element must be of type `nodes` or `edges`; you specified `"+n+"`");return}this.length=1,this[0]=this;var i=this._private={cy:e,single:!0,data:t.data||{},position:t.position||{x:0,y:0},autoWidth:void 0,autoHeight:void 0,autoPadding:void 0,compoundBoundsClean:!1,listeners:[],group:n,style:{},rstyle:{},styleCxts:[],styleKeys:{},removed:!0,selected:!!t.selected,selectable:t.selectable===void 0?!0:!!t.selectable,locked:!!t.locked,grabbed:!1,grabbable:t.grabbable===void 0?!0:!!t.grabbable,pannable:t.pannable===void 0?n==="edges":!!t.pannable,active:!1,classes:new ra,animation:{current:[],queue:[]},rscratch:{},scratch:t.scratch||{},edges:[],children:[],parent:t.parent&&t.parent.isNode()?t.parent:null,traversalCache:{},backgrounding:!1,bbCache:null,bbCacheShift:{x:0,y:0},bodyBounds:null,overlayBounds:null,labelBounds:{all:null,source:null,target:null,main:null},arrowBounds:{source:null,target:null,"mid-source":null,"mid-target":null}};if(i.position.x==null&&(i.position.x=0),i.position.y==null&&(i.position.y=0),t.renderedPosition){var s=t.renderedPosition,o=e.pan(),u=e.zoom();i.position={x:(s.x-o.x)/u,y:(s.y-o.y)/u}}var l=[];Fe(t.classes)?l=t.classes:he(t.classes)&&(l=t.classes.split(/\s+/));for(var v=0,f=l.length;vm?1:0},v=function(p,m,b,w,E){var C;if(b==null&&(b=0),E==null&&(E=a),b<0)throw new Error("lo must be non-negative");for(w==null&&(w=p.length);bB;0<=B?k++:k--)T.push(k);return T}).apply(this).reverse(),x=[],w=0,E=C.length;wD;0<=D?++T:--T)P.push(s(p,b));return P},y=function(p,m,b,w){var E,C,x;for(w==null&&(w=a),E=p[b];b>m;){if(x=b-1>>1,C=p[x],w(E,C)<0){p[b]=C,b=x;continue}break}return p[b]=E},g=function(p,m,b){var w,E,C,x,T;for(b==null&&(b=a),E=p.length,T=m,C=p[m],w=2*m+1;w0;){var C=m.pop(),x=g(C),T=C.id();if(c[T]=x,x!==1/0)for(var k=C.neighborhood().intersect(d),B=0;B0)for(N.unshift(M);f[_];){var z=f[_];N.unshift(z.edge),N.unshift(z.node),F=z.node,_=F.id()}return o.spawn(N)}}}},ud={kruskal:function(e){e=e||function(b){return 1};for(var t=this.byGroup(),a=t.nodes,n=t.edges,i=a.length,s=new Array(i),o=a,u=function(w){for(var E=0;E0;){if(E(),x++,w===v){for(var T=[],k=i,B=v,D=p[B];T.unshift(k),D!=null&&T.unshift(D),k=g[B],k!=null;)B=k.id(),D=p[B];return{found:!0,distance:f[w],path:this.spawn(T),steps:x}}h[w]=!0;for(var P=b._private.edges,A=0;AD&&(d[B]=D,m[B]=k,b[B]=E),!i){var P=k*v+T;!i&&d[P]>D&&(d[P]=D,m[P]=T,b[P]=E)}}}for(var A=0;A1&&arguments[1]!==void 0?arguments[1]:s,se=b(ye),de=[],ge=se;;){if(ge==null)return t.spawn();var Ee=m(ge),be=Ee.edge,Te=Ee.pred;if(de.unshift(ge[0]),ge.same(pe)&&de.length>0)break;be!=null&&de.unshift(be),ge=Te}return u.spawn(de)},C=0;C=0;v--){var f=l[v],c=f[1],h=f[2];(t[c]===o&&t[h]===u||t[c]===u&&t[h]===o)&&l.splice(v,1)}for(var d=0;dn;){var i=Math.floor(Math.random()*t.length);t=pd(i,e,t),a--}return t},yd={kargerStein:function(){var e=this,t=this.byGroup(),a=t.nodes,n=t.edges;n.unmergeBy(function(N){return N.isLoop()});var i=a.length,s=n.length,o=Math.ceil(Math.pow(Math.log(i)/Math.LN2,2)),u=Math.floor(i/gd);if(i<2){Ge("At least 2 nodes are required for Karger-Stein algorithm");return}for(var l=[],v=0;v1&&arguments[1]!==void 0?arguments[1]:0,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:e.length,n=1/0,i=t;i1&&arguments[1]!==void 0?arguments[1]:0,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:e.length,n=-1/0,i=t;i1&&arguments[1]!==void 0?arguments[1]:0,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:e.length,n=0,i=0,s=t;s1&&arguments[1]!==void 0?arguments[1]:0,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:e.length,n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0,i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,s=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!0;n?e=e.slice(t,a):(a0&&e.splice(0,t));for(var o=0,u=e.length-1;u>=0;u--){var l=e[u];s?isFinite(l)||(e[u]=-1/0,o++):e.splice(u,1)}i&&e.sort(function(c,h){return c-h});var v=e.length,f=Math.floor(v/2);return v%2!==0?e[f+1+o]:(e[f-1+o]+e[f+o])/2},mv=function(e,t){return t===0?e:mv(t,e%t)},Cd=function(e){for(var t=e[0],a=0;a0&&(t=mv(t,e[a]));else return 0;return t},Td=function(e){return Math.PI*e/180},Xa=function(e,t){return Math.atan2(t,e)-Math.PI/2},eo=Math.log2||function(r){return Math.log(r)/Math.log(2)},ro=function(e){return e>0?1:e<0?-1:0},Dt=function(e,t){return Math.sqrt(xt(e,t))},xt=function(e,t){var a=t.x-e.x,n=t.y-e.y;return a*a+n*n},Sd=function(e){for(var t=e.length,a=0,n=0;n=e.x1&&e.y2>=e.y1)return{x1:e.x1,y1:e.y1,x2:e.x2,y2:e.y2,w:e.x2-e.x1,h:e.y2-e.y1};if(e.w!=null&&e.h!=null&&e.w>=0&&e.h>=0)return{x1:e.x1,y1:e.y1,x2:e.x1+e.w,y2:e.y1+e.h,w:e.w,h:e.h}}},Dd=function(e){return{x1:e.x1,x2:e.x2,w:e.w,y1:e.y1,y2:e.y2,h:e.h}},Bd=function(e){e.x1=1/0,e.y1=1/0,e.x2=-1/0,e.y2=-1/0,e.w=0,e.h=0},Pd=function(e,t){e.x1=Math.min(e.x1,t.x1),e.x2=Math.max(e.x2,t.x2),e.w=e.x2-e.x1,e.y1=Math.min(e.y1,t.y1),e.y2=Math.max(e.y2,t.y2),e.h=e.y2-e.y1},bv=function(e,t,a){e.x1=Math.min(e.x1,t),e.x2=Math.max(e.x2,t),e.w=e.x2-e.x1,e.y1=Math.min(e.y1,a),e.y2=Math.max(e.y2,a),e.h=e.y2-e.y1},on=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return e.x1-=t,e.x2+=t,e.y1-=t,e.y2+=t,e.w=e.x2-e.x1,e.h=e.y2-e.y1,e},un=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[0],a,n,i,s;if(t.length===1)a=n=i=s=t[0];else if(t.length===2)a=i=t[0],s=n=t[1];else if(t.length===4){var o=Xe(t,4);a=o[0],n=o[1],i=o[2],s=o[3]}return e.x1-=s,e.x2+=n,e.y1-=a,e.y2+=i,e.w=e.x2-e.x1,e.h=e.y2-e.y1,e},$o=function(e,t){e.x1=t.x1,e.y1=t.y1,e.x2=t.x2,e.y2=t.y2,e.w=e.x2-e.x1,e.h=e.y2-e.y1},to=function(e,t){return!(e.x1>t.x2||t.x1>e.x2||e.x2t.y2||t.y1>e.y2)},tt=function(e,t,a){return e.x1<=t&&t<=e.x2&&e.y1<=a&&a<=e.y2},Uo=function(e,t){return tt(e,t.x,t.y)},wv=function(e,t){return tt(e,t.x1,t.y1)&&tt(e,t.x2,t.y2)},Ad=(hi=Math.hypot)!==null&&hi!==void 0?hi:function(r,e){return Math.sqrt(r*r+e*e)};function Rd(r,e){if(r.length<3)throw new Error("Need at least 3 vertices");var t=function(T,k){return{x:T.x+k.x,y:T.y+k.y}},a=function(T,k){return{x:T.x-k.x,y:T.y-k.y}},n=function(T,k){return{x:T.x*k,y:T.y*k}},i=function(T,k){return T.x*k.y-T.y*k.x},s=function(T){var k=Ad(T.x,T.y);return k===0?{x:0,y:0}:{x:T.x/k,y:T.y/k}},o=function(T){for(var k=0,B=0;B7&&arguments[7]!==void 0?arguments[7]:"auto",l=u==="auto"?ut(i,s):u,v=i/2,f=s/2;l=Math.min(l,v,f);var c=l!==v,h=l!==f,d;if(c){var y=a-v+l-o,g=n-f-o,p=a+v-l+o,m=g;if(d=at(e,t,a,n,y,g,p,m,!1),d.length>0)return d}if(h){var b=a+v+o,w=n-f+l-o,E=b,C=n+f-l+o;if(d=at(e,t,a,n,b,w,E,C,!1),d.length>0)return d}if(c){var x=a-v+l-o,T=n+f+o,k=a+v-l+o,B=T;if(d=at(e,t,a,n,x,T,k,B,!1),d.length>0)return d}if(h){var D=a-v-o,P=n-f+l-o,A=D,R=n+f-l+o;if(d=at(e,t,a,n,D,P,A,R,!1),d.length>0)return d}var L;{var I=a-v+l,M=n-f+l;if(L=ya(e,t,a,n,I,M,l+o),L.length>0&&L[0]<=I&&L[1]<=M)return[L[0],L[1]]}{var N=a+v-l,F=n-f+l;if(L=ya(e,t,a,n,N,F,l+o),L.length>0&&L[0]>=N&&L[1]<=F)return[L[0],L[1]]}{var _=a+v-l,z=n+f-l;if(L=ya(e,t,a,n,_,z,l+o),L.length>0&&L[0]>=_&&L[1]>=z)return[L[0],L[1]]}{var q=a-v+l,Z=n+f-l;if(L=ya(e,t,a,n,q,Z,l+o),L.length>0&&L[0]<=q&&L[1]>=Z)return[L[0],L[1]]}return[]},Ld=function(e,t,a,n,i,s,o){var u=o,l=Math.min(a,i),v=Math.max(a,i),f=Math.min(n,s),c=Math.max(n,s);return l-u<=e&&e<=v+u&&f-u<=t&&t<=c+u},Id=function(e,t,a,n,i,s,o,u,l){var v={x1:Math.min(a,o,i)-l,x2:Math.max(a,o,i)+l,y1:Math.min(n,u,s)-l,y2:Math.max(n,u,s)+l};return!(ev.x2||tv.y2)},Od=function(e,t,a,n){a-=n;var i=t*t-4*e*a;if(i<0)return[];var s=Math.sqrt(i),o=2*e,u=(-t+s)/o,l=(-t-s)/o;return[u,l]},Nd=function(e,t,a,n,i){var s=1e-5;e===0&&(e=s),t/=e,a/=e,n/=e;var o,u,l,v,f,c,h,d;if(u=(3*a-t*t)/9,l=-(27*n)+t*(9*a-2*(t*t)),l/=54,o=u*u*u+l*l,i[1]=0,h=t/3,o>0){f=l+Math.sqrt(o),f=f<0?-Math.pow(-f,1/3):Math.pow(f,1/3),c=l-Math.sqrt(o),c=c<0?-Math.pow(-c,1/3):Math.pow(c,1/3),i[0]=-h+f+c,h+=(f+c)/2,i[4]=i[2]=-h,h=Math.sqrt(3)*(-c+f)/2,i[3]=h,i[5]=-h;return}if(i[5]=i[3]=0,o===0){d=l<0?-Math.pow(-l,1/3):Math.pow(l,1/3),i[0]=-h+2*d,i[4]=i[2]=-(d+h);return}u=-u,v=u*u*u,v=Math.acos(l/Math.sqrt(v)),d=2*Math.sqrt(u),i[0]=-h+d*Math.cos(v/3),i[2]=-h+d*Math.cos((v+2*Math.PI)/3),i[4]=-h+d*Math.cos((v+4*Math.PI)/3)},zd=function(e,t,a,n,i,s,o,u){var l=1*a*a-4*a*i+2*a*o+4*i*i-4*i*o+o*o+n*n-4*n*s+2*n*u+4*s*s-4*s*u+u*u,v=9*a*i-3*a*a-3*a*o-6*i*i+3*i*o+9*n*s-3*n*n-3*n*u-6*s*s+3*s*u,f=3*a*a-6*a*i+a*o-a*e+2*i*i+2*i*e-o*e+3*n*n-6*n*s+n*u-n*t+2*s*s+2*s*t-u*t,c=1*a*i-a*a+a*e-i*e+n*s-n*n+n*t-s*t,h=[];Nd(l,v,f,c,h);for(var d=1e-7,y=[],g=0;g<6;g+=2)Math.abs(h[g+1])=0&&h[g]<=1&&y.push(h[g]);y.push(1),y.push(0);for(var p=-1,m,b,w,E=0;E=0?wl?(e-i)*(e-i)+(t-s)*(t-s):v-c},Er=function(e,t,a){for(var n,i,s,o,u,l=0,v=0;v=e&&e>=s||n<=e&&e<=s)u=(e-n)/(s-n)*(o-i)+i,u>t&&l++;else continue;return l%2!==0},Xr=function(e,t,a,n,i,s,o,u,l){var v=new Array(a.length),f;u[0]!=null?(f=Math.atan(u[1]/u[0]),u[0]<0?f=f+Math.PI/2:f=-f-Math.PI/2):f=u;for(var c=Math.cos(-f),h=Math.sin(-f),d=0;d0){var g=En(v,-l);y=xn(g)}else y=v;return Er(e,t,y)},Vd=function(e,t,a,n,i,s,o,u){for(var l=new Array(a.length*2),v=0;v=0&&g<=1&&m.push(g),p>=0&&p<=1&&m.push(p),m.length===0)return[];var b=m[0]*u[0]+e,w=m[0]*u[1]+t;if(m.length>1){if(m[0]==m[1])return[b,w];var E=m[1]*u[0]+e,C=m[1]*u[1]+t;return[b,w,E,C]}else return[b,w]},gi=function(e,t,a){return t<=e&&e<=a||a<=e&&e<=t?e:e<=t&&t<=a||a<=t&&t<=e?t:a},at=function(e,t,a,n,i,s,o,u,l){var v=e-i,f=a-e,c=o-i,h=t-s,d=n-t,y=u-s,g=c*h-y*v,p=f*h-d*v,m=y*f-c*d;if(m!==0){var b=g/m,w=p/m,E=.001,C=0-E,x=1+E;return C<=b&&b<=x&&C<=w&&w<=x?[e+b*f,t+b*d]:l?[e+b*f,t+b*d]:[]}else return g===0||p===0?gi(e,a,o)===o?[o,u]:gi(e,a,i)===i?[i,s]:gi(i,o,a)===a?[a,n]:[]:[]},_d=function(e,t,a,n,i){var s=[],o=n/2,u=i/2,l=t,v=a;s.push({x:l+o*e[0],y:v+u*e[1]});for(var f=1;f0){var y=En(f,-u);h=xn(y)}else h=f}else h=a;for(var g,p,m,b,w=0;w2){for(var d=[v[0],v[1]],y=Math.pow(d[0]-e,2)+Math.pow(d[1]-t,2),g=1;gv&&(v=w)},get:function(b){return l[b]}},c=0;c0?L=R.edgesTo(A)[0]:L=A.edgesTo(R)[0];var I=n(L);A=A.id(),x[A]>x[D]+I&&(x[A]=x[D]+I,T.nodes.indexOf(A)<0?T.push(A):T.updateItem(A),C[A]=0,E[A]=[]),x[A]==x[D]+I&&(C[A]=C[A]+C[D],E[A].push(D))}else for(var M=0;M0;){for(var z=w.pop(),q=0;q0&&o.push(a[u]);o.length!==0&&i.push(n.collection(o))}return i},th=function(e,t){for(var a=0;a5&&arguments[5]!==void 0?arguments[5]:ih,o=n,u,l,v=0;v=2?va(e,t,a,0,Qo,sh):va(e,t,a,0,Zo)},squaredEuclidean:function(e,t,a){return va(e,t,a,0,Qo)},manhattan:function(e,t,a){return va(e,t,a,0,Zo)},max:function(e,t,a){return va(e,t,a,-1/0,oh)}};Zt["squared-euclidean"]=Zt.squaredEuclidean;Zt.squaredeuclidean=Zt.squaredEuclidean;function On(r,e,t,a,n,i){var s;return He(r)?s=r:s=Zt[r]||Zt.euclidean,e===0&&He(r)?s(n,i):s(e,t,a,n,i)}var uh=lr({k:2,m:2,sensitivityThreshold:1e-4,distance:"euclidean",maxIterations:10,attributes:[],testMode:!1,testCentroids:null}),no=function(e){return uh(e)},Cn=function(e,t,a,n,i){var s=i!=="kMedoids",o=s?function(f){return a[f]}:function(f){return n[f](a)},u=function(c){return n[c](t)},l=a,v=t;return On(e,n.length,o,u,l,v)},yi=function(e,t,a){for(var n=a.length,i=new Array(n),s=new Array(n),o=new Array(t),u=null,l=0;la)return!1}return!0},fh=function(e,t,a){for(var n=0;no&&(o=t[l][v],u=v);i[u].push(e[l])}for(var f=0;f=i.threshold||i.mode==="dendrogram"&&e.length===1)return!1;var d=t[s],y=t[n[s]],g;i.mode==="dendrogram"?g={left:d,right:y,key:d.key}:g={value:d.value.concat(y.value),key:d.key},e[d.index]=g,e.splice(y.index,1),t[d.key]=g;for(var p=0;pa[y.key][m.key]&&(u=a[y.key][m.key])):i.linkage==="max"?(u=a[d.key][m.key],a[d.key][m.key]0&&n.push(i);return n},au=function(e,t,a){for(var n=[],i=0;io&&(s=l,o=t[i*e+l])}s>0&&n.push(s)}for(var v=0;vl&&(u=v,l=f)}a[i]=s[u]}return n=au(e,t,a),n},nu=function(e){for(var t=this.cy(),a=this.nodes(),n=Ch(e),i={},s=0;s=D?(P=D,D=R,A=L):R>P&&(P=R);for(var I=0;I0?1:0;x[k%n.minIterations*o+q]=Z,z+=Z}if(z>0&&(k>=n.minIterations-1||k==n.maxIterations-1)){for(var Q=0,X=0;X1||C>1)&&(o=!0),f[b]=[],m.outgoers().forEach(function(T){T.isEdge()&&f[b].push(T.id())})}else c[b]=[void 0,m.target().id()]}):s.forEach(function(m){var b=m.id();if(m.isNode()){var w=m.degree(!0);w%2&&(u?l?o=!0:l=b:u=b),f[b]=[],m.connectedEdges().forEach(function(E){return f[b].push(E.id())})}else c[b]=[m.source().id(),m.target().id()]});var h={found:!1,trail:void 0};if(o)return h;if(l&&u)if(i){if(v&&l!=v)return h;v=l}else{if(v&&l!=v&&u!=v)return h;v||(v=l)}else v||(v=s[0].id());var d=function(b){for(var w=b,E=[b],C,x,T;f[w].length;)C=f[w].shift(),x=c[C][0],T=c[C][1],w!=T?(f[T]=f[T].filter(function(k){return k!=C}),w=T):!i&&w!=x&&(f[x]=f[x].filter(function(k){return k!=C}),w=x),E.unshift(C),E.unshift(w);return E},y=[],g=[];for(g=d(v);g.length!=1;)f[g[0]].length==0?(y.unshift(s.getElementById(g.shift())),y.unshift(s.getElementById(g.shift()))):g=d(g.shift()).concat(g);y.unshift(s.getElementById(g.shift()));for(var p in f)if(f[p].length)return h;return h.found=!0,h.trail=this.spawn(y,!0),h}},Za=function(){var e=this,t={},a=0,n=0,i=[],s=[],o={},u=function(c,h){for(var d=s.length-1,y=[],g=e.spawn();s[d].x!=c||s[d].y!=h;)y.push(s.pop().edge),d--;y.push(s.pop().edge),y.forEach(function(p){var m=p.connectedNodes().intersection(e);g.merge(p),m.forEach(function(b){var w=b.id(),E=b.connectedEdges().intersection(e);g.merge(b),t[w].cutVertex?g.merge(E.filter(function(C){return C.isLoop()})):g.merge(E)})}),i.push(g)},l=function(c,h,d){c===d&&(n+=1),t[h]={id:a,low:a++,cutVertex:!1};var y=e.getElementById(h).connectedEdges().intersection(e);if(y.size()===0)i.push(e.spawn(e.getElementById(h)));else{var g,p,m,b;y.forEach(function(w){g=w.source().id(),p=w.target().id(),m=g===h?p:g,m!==d&&(b=w.id(),o[b]||(o[b]=!0,s.push({x:h,y:m,edge:w})),m in t?t[h].low=Math.min(t[h].low,t[m].id):(l(c,m,h),t[h].low=Math.min(t[h].low,t[m].low),t[h].id<=t[m].low&&(t[h].cutVertex=!0,u(h,m))))})}};e.forEach(function(f){if(f.isNode()){var c=f.id();c in t||(n=0,l(c,c),t[c].cutVertex=n>1)}});var v=Object.keys(t).filter(function(f){return t[f].cutVertex}).map(function(f){return e.getElementById(f)});return{cut:e.spawn(v),components:i}},Rh={hopcroftTarjanBiconnected:Za,htbc:Za,htb:Za,hopcroftTarjanBiconnectedComponents:Za},Qa=function(){var e=this,t={},a=0,n=[],i=[],s=e.spawn(e),o=function(l){i.push(l),t[l]={index:a,low:a++,explored:!1};var v=e.getElementById(l).connectedEdges().intersection(e);if(v.forEach(function(y){var g=y.target().id();g!==l&&(g in t||o(g),t[g].explored||(t[l].low=Math.min(t[l].low,t[g].low)))}),t[l].index===t[l].low){for(var f=e.spawn();;){var c=i.pop();if(f.merge(e.getElementById(c)),t[c].low=t[l].index,t[c].explored=!0,c===l)break}var h=f.edgesWith(f),d=f.merge(h);n.push(d),s=s.difference(d)}};return e.forEach(function(u){if(u.isNode()){var l=u.id();l in t||o(l)}}),{cut:s,components:n}},Mh={tarjanStronglyConnected:Qa,tsc:Qa,tscc:Qa,tarjanStronglyConnectedComponents:Qa},Bv={};[Sa,od,ud,vd,cd,hd,yd,$d,Ut,Kt,As,nh,yh,xh,Bh,Ah,Rh,Mh].forEach(function(r){me(Bv,r)});var Pv=0,Av=1,Rv=2,Nr=function(e){if(!(this instanceof Nr))return new Nr(e);this.id="Thenable/1.0.7",this.state=Pv,this.fulfillValue=void 0,this.rejectReason=void 0,this.onFulfilled=[],this.onRejected=[],this.proxy={then:this.then.bind(this)},typeof e=="function"&&e.call(this,this.fulfill.bind(this),this.reject.bind(this))};Nr.prototype={fulfill:function(e){return iu(this,Av,"fulfillValue",e)},reject:function(e){return iu(this,Rv,"rejectReason",e)},then:function(e,t){var a=this,n=new Nr;return a.onFulfilled.push(ou(e,n,"fulfill")),a.onRejected.push(ou(t,n,"reject")),Mv(a),n.proxy}};var iu=function(e,t,a,n){return e.state===Pv&&(e.state=t,e[a]=n,Mv(e)),e},Mv=function(e){e.state===Av?su(e,"onFulfilled",e.fulfillValue):e.state===Rv&&su(e,"onRejected",e.rejectReason)},su=function(e,t,a){if(e[t].length!==0){var n=e[t];e[t]=[];var i=function(){for(var o=0;o0}},clearQueue:function(){return function(){var t=this,a=t.length!==void 0,n=a?t:[t],i=this._private.cy||this;if(!i.styleEnabled())return this;for(var s=0;s-1}return Vi=e,Vi}var qi,Au;function Qh(){if(Au)return qi;Au=1;var r=Fn();function e(t,a){var n=this.__data__,i=r(n,t);return i<0?(++this.size,n.push([t,a])):n[i][1]=a,this}return qi=e,qi}var _i,Ru;function Jh(){if(Ru)return _i;Ru=1;var r=Kh(),e=Xh(),t=Yh(),a=Zh(),n=Qh();function i(s){var o=-1,u=s==null?0:s.length;for(this.clear();++o-1&&a%1==0&&a0&&this.spawn(n).updateStyle().emit("class"),t},addClass:function(e){return this.toggleClass(e,!0)},hasClass:function(e){var t=this[0];return t!=null&&t._private.classes.has(e)},toggleClass:function(e,t){Fe(e)||(e=e.match(/\S+/g)||[]);for(var a=this,n=t===void 0,i=[],s=0,o=a.length;s0&&this.spawn(i).updateStyle().emit("class"),a},removeClass:function(e){return this.toggleClass(e,!1)},flashClass:function(e,t){var a=this;if(t==null)t=250;else if(t===0)return a;return a.addClass(e),setTimeout(function(){a.removeClass(e)},t),a}};ln.className=ln.classNames=ln.classes;var Re={metaChar:"[\\!\\\"\\#\\$\\%\\&\\'\\(\\)\\*\\+\\,\\.\\/\\:\\;\\<\\=\\>\\?\\@\\[\\]\\^\\`\\{\\|\\}\\~]",comparatorOp:"=|\\!=|>|>=|<|<=|\\$=|\\^=|\\*=",boolOp:"\\?|\\!|\\^",string:`"(?:\\\\"|[^"])*"|'(?:\\\\'|[^'])*'`,number:Je,meta:"degree|indegree|outdegree",separator:"\\s*,\\s*",descendant:"\\s+",child:"\\s+>\\s+",subject:"\\$",group:"node|edge|\\*",directedEdge:"\\s+->\\s+",undirectedEdge:"\\s+<->\\s+"};Re.variable="(?:[\\w-.]|(?:\\\\"+Re.metaChar+"))+";Re.className="(?:[\\w-]|(?:\\\\"+Re.metaChar+"))+";Re.value=Re.string+"|"+Re.number;Re.id=Re.variable;(function(){var r,e,t;for(r=Re.comparatorOp.split("|"),t=0;t=0)&&e!=="="&&(Re.comparatorOp+="|\\!"+e)})();var ze=function(){return{checks:[]}},le={GROUP:0,COLLECTION:1,FILTER:2,DATA_COMPARE:3,DATA_EXIST:4,DATA_BOOL:5,META_COMPARE:6,STATE:7,ID:8,CLASS:9,UNDIRECTED_EDGE:10,DIRECTED_EDGE:11,NODE_SOURCE:12,NODE_TARGET:13,NODE_NEIGHBOR:14,CHILD:15,DESCENDANT:16,PARENT:17,ANCESTOR:18,COMPOUND_SPLIT:19,TRUE:20},Is=[{selector:":selected",matches:function(e){return e.selected()}},{selector:":unselected",matches:function(e){return!e.selected()}},{selector:":selectable",matches:function(e){return e.selectable()}},{selector:":unselectable",matches:function(e){return!e.selectable()}},{selector:":locked",matches:function(e){return e.locked()}},{selector:":unlocked",matches:function(e){return!e.locked()}},{selector:":visible",matches:function(e){return e.visible()}},{selector:":hidden",matches:function(e){return!e.visible()}},{selector:":transparent",matches:function(e){return e.transparent()}},{selector:":grabbed",matches:function(e){return e.grabbed()}},{selector:":free",matches:function(e){return!e.grabbed()}},{selector:":removed",matches:function(e){return e.removed()}},{selector:":inside",matches:function(e){return!e.removed()}},{selector:":grabbable",matches:function(e){return e.grabbable()}},{selector:":ungrabbable",matches:function(e){return!e.grabbable()}},{selector:":animated",matches:function(e){return e.animated()}},{selector:":unanimated",matches:function(e){return!e.animated()}},{selector:":parent",matches:function(e){return e.isParent()}},{selector:":childless",matches:function(e){return e.isChildless()}},{selector:":child",matches:function(e){return e.isChild()}},{selector:":orphan",matches:function(e){return e.isOrphan()}},{selector:":nonorphan",matches:function(e){return e.isChild()}},{selector:":compound",matches:function(e){return e.isNode()?e.isParent():e.source().isParent()||e.target().isParent()}},{selector:":loop",matches:function(e){return e.isLoop()}},{selector:":simple",matches:function(e){return e.isSimple()}},{selector:":active",matches:function(e){return e.active()}},{selector:":inactive",matches:function(e){return!e.active()}},{selector:":backgrounding",matches:function(e){return e.backgrounding()}},{selector:":nonbackgrounding",matches:function(e){return!e.backgrounding()}}].sort(function(r,e){return Sc(r.selector,e.selector)}),Pg=(function(){for(var r={},e,t=0;t0&&v.edgeCount>0)return Ne("The selector `"+e+"` is invalid because it uses both a compound selector and an edge selector"),!1;if(v.edgeCount>1)return Ne("The selector `"+e+"` is invalid because it uses multiple edge selectors"),!1;v.edgeCount===1&&Ne("The selector `"+e+"` is deprecated. Edge selectors do not take effect on changes to source and target nodes after an edge is added, for performance reasons. Use a class or data selector on edges instead, updating the class or data of an edge when your app detects a change in source or target nodes.")}return!0},Og=function(){if(this.toStringCache!=null)return this.toStringCache;for(var e=function(v){return v??""},t=function(v){return he(v)?'"'+v+'"':e(v)},a=function(v){return" "+v+" "},n=function(v,f){var c=v.type,h=v.value;switch(c){case le.GROUP:{var d=e(h);return d.substring(0,d.length-1)}case le.DATA_COMPARE:{var y=v.field,g=v.operator;return"["+y+a(e(g))+t(h)+"]"}case le.DATA_BOOL:{var p=v.operator,m=v.field;return"["+e(p)+m+"]"}case le.DATA_EXIST:{var b=v.field;return"["+b+"]"}case le.META_COMPARE:{var w=v.operator,E=v.field;return"[["+E+a(e(w))+t(h)+"]]"}case le.STATE:return h;case le.ID:return"#"+h;case le.CLASS:return"."+h;case le.PARENT:case le.CHILD:return i(v.parent,f)+a(">")+i(v.child,f);case le.ANCESTOR:case le.DESCENDANT:return i(v.ancestor,f)+" "+i(v.descendant,f);case le.COMPOUND_SPLIT:{var C=i(v.left,f),x=i(v.subject,f),T=i(v.right,f);return C+(C.length>0?" ":"")+x+T}case le.TRUE:return""}},i=function(v,f){return v.checks.reduce(function(c,h,d){return c+(f===v&&d===0?"$":"")+n(h,f)},"")},s="",o=0;o1&&o=0&&(t=t.replace("!",""),f=!0),t.indexOf("@")>=0&&(t=t.replace("@",""),v=!0),(i||o||v)&&(u=!i&&!s?"":""+e,l=""+a),v&&(e=u=u.toLowerCase(),a=l=l.toLowerCase()),t){case"*=":n=u.indexOf(l)>=0;break;case"$=":n=u.indexOf(l,u.length-l.length)>=0;break;case"^=":n=u.indexOf(l)===0;break;case"=":n=e===a;break;case">":c=!0,n=e>a;break;case">=":c=!0,n=e>=a;break;case"<":c=!0,n=e0;){var v=n.shift();e(v),i.add(v.id()),o&&a(n,i,v)}return r}function qv(r,e,t){if(t.isParent())for(var a=t._private.children,n=0;n1&&arguments[1]!==void 0?arguments[1]:!0;return uo(this,r,e,qv)};function _v(r,e,t){if(t.isChild()){var a=t._private.parent;e.has(a.id())||r.push(a)}}Qt.forEachUp=function(r){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return uo(this,r,e,_v)};function Hg(r,e,t){_v(r,e,t),qv(r,e,t)}Qt.forEachUpAndDown=function(r){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return uo(this,r,e,Hg)};Qt.ancestors=Qt.parents;var Ba,Gv;Ba=Gv={data:Oe.data({field:"data",bindingEvent:"data",allowBinding:!0,allowSetting:!0,settingEvent:"data",settingTriggersEvent:!0,triggerFnName:"trigger",allowGetting:!0,immutableKeys:{id:!0,source:!0,target:!0,parent:!0},updateStyle:!0}),removeData:Oe.removeData({field:"data",event:"data",triggerFnName:"trigger",triggerEvent:!0,immutableKeys:{id:!0,source:!0,target:!0,parent:!0},updateStyle:!0}),scratch:Oe.data({field:"scratch",bindingEvent:"scratch",allowBinding:!0,allowSetting:!0,settingEvent:"scratch",settingTriggersEvent:!0,triggerFnName:"trigger",allowGetting:!0,updateStyle:!0}),removeScratch:Oe.removeData({field:"scratch",event:"scratch",triggerFnName:"trigger",triggerEvent:!0,updateStyle:!0}),rscratch:Oe.data({field:"rscratch",allowBinding:!1,allowSetting:!0,settingTriggersEvent:!1,allowGetting:!0}),removeRscratch:Oe.removeData({field:"rscratch",triggerEvent:!1}),id:function(){var e=this[0];if(e)return e._private.data.id}};Ba.attr=Ba.data;Ba.removeAttr=Ba.removeData;var Wg=Gv,qn={};function gs(r){return function(e){var t=this;if(e===void 0&&(e=!0),t.length!==0)if(t.isNode()&&!t.removed()){for(var a=0,n=t[0],i=n._private.edges,s=0;se}),minIndegree:Ot("indegree",function(r,e){return re}),minOutdegree:Ot("outdegree",function(r,e){return re})});me(qn,{totalDegree:function(e){for(var t=0,a=this.nodes(),n=0;n0,c=f;f&&(v=v[0]);var h=c?v.position():{x:0,y:0};t!==void 0?l.position(e,t+h[e]):i!==void 0&&l.position({x:i.x+h.x,y:i.y+h.y})}else{var d=a.position(),y=o?a.parent():null,g=y&&y.length>0,p=g;g&&(y=y[0]);var m=p?y.position():{x:0,y:0};return i={x:d.x-m.x,y:d.y-m.y},e===void 0?i:i[e]}else if(!s)return;return this}};Or.modelPosition=Or.point=Or.position;Or.modelPositions=Or.points=Or.positions;Or.renderedPoint=Or.renderedPosition;Or.relativePoint=Or.relativePosition;var $g=Hv,Jt=function(e){switch(e){case"left":case"right-inside":return"left";case"right":case"left-inside":return"right";default:return"center"}},jt=function(e){switch(e){case"top":case"bottom-inside":return"top";case"bottom":case"top-inside":return"bottom";default:return"center"}},Ug=function(e){switch(e){case"left":return"right";case"right":return"left";case"left-inside":return"left";case"right-inside":return"right";default:return"center"}},Xt,ht;Xt=ht={};ht.renderedBoundingBox=function(r){var e=this.boundingBox(r),t=this.cy(),a=t.zoom(),n=t.pan(),i=e.x1*a+n.x,s=e.x2*a+n.x,o=e.y1*a+n.y,u=e.y2*a+n.y;return{x1:i,x2:s,y1:o,y2:u,w:s-i,h:u-o}};ht.dirtyCompoundBoundsCache=function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,e=this.cy();return!e.styleEnabled()||!e.hasCompoundNodes()?this:(this.forEachUp(function(t){if(t.isParent()){var a=t._private;a.compoundBoundsClean=!1,a.bbCache=null,r||t.emitAndNotify("bounds")}}),this)};ht.updateCompoundBounds=function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,e=this.cy();if(!e.styleEnabled()||!e.hasCompoundNodes())return this;if(!r&&e.batching())return this;function t(s){if(!s.isParent())return;var o=s._private,u=s.children(),l=s.pstyle("compound-sizing-wrt-labels").value==="include",v={width:{val:s.pstyle("min-width").pfValue,left:s.pstyle("min-width-bias-left"),right:s.pstyle("min-width-bias-right")},height:{val:s.pstyle("min-height").pfValue,top:s.pstyle("min-height-bias-top"),bottom:s.pstyle("min-height-bias-bottom")}},f=u.boundingBox({includeLabels:l,includeOverlays:!1,useCache:!1}),c=o.position;(f.w===0||f.h===0)&&(f={w:s.pstyle("width").pfValue,h:s.pstyle("height").pfValue},f.x1=c.x-f.w/2,f.x2=c.x+f.w/2,f.y1=c.y-f.h/2,f.y2=c.y+f.h/2);function h(k,B,D){var P=0,A=0,R=B+D;return k>0&&R>0&&(P=B/R*k,A=D/R*k),{biasDiff:P,biasComplementDiff:A}}function d(k,B,D,P){if(D.units==="%")switch(P){case"width":return k>0?D.pfValue*k:0;case"height":return B>0?D.pfValue*B:0;case"average":return k>0&&B>0?D.pfValue*(k+B)/2:0;case"min":return k>0&&B>0?k>B?D.pfValue*B:D.pfValue*k:0;case"max":return k>0&&B>0?k>B?D.pfValue*k:D.pfValue*B:0;default:return 0}else return D.units==="px"?D.pfValue:0}var y=v.width.left.value;v.width.left.units==="px"&&v.width.val>0&&(y=y*100/v.width.val);var g=v.width.right.value;v.width.right.units==="px"&&v.width.val>0&&(g=g*100/v.width.val);var p=v.height.top.value;v.height.top.units==="px"&&v.height.val>0&&(p=p*100/v.height.val);var m=v.height.bottom.value;v.height.bottom.units==="px"&&v.height.val>0&&(m=m*100/v.height.val);var b=h(v.width.val-f.w,y,g),w=b.biasDiff,E=b.biasComplementDiff,C=h(v.height.val-f.h,p,m),x=C.biasDiff,T=C.biasComplementDiff;o.autoPadding=d(f.w,f.h,s.pstyle("padding"),s.pstyle("padding-relative-to").value),o.autoWidth=Math.max(f.w,v.width.val),c.x=(-w+f.x1+f.x2+E)/2,o.autoHeight=Math.max(f.h,v.height.val),c.y=(-x+f.y1+f.y2+T)/2}for(var a=0;ae.x2?n:e.x2,e.y1=ae.y2?i:e.y2,e.w=e.x2-e.x1,e.h=e.y2-e.y1)},et=function(e,t){return t==null?e:Ir(e,t.x1,t.y1,t.x2,t.y2)},fa=function(e,t,a){return pr(e,t,a)},Ja=function(e,t,a){if(!t.cy().headless()){var n=t._private,i=n.rstyle,s=i.arrowWidth/2,o=t.pstyle(a+"-arrow-shape").value,u,l;if(o!=="none"){a==="source"?(u=i.srcX,l=i.srcY):a==="target"?(u=i.tgtX,l=i.tgtY):(u=i.midX,l=i.midY);var v=n.arrowBounds=n.arrowBounds||{},f=v[a]=v[a]||{};f.x1=u-s,f.y1=l-s,f.x2=u+s,f.y2=l+s,f.w=f.x2-f.x1,f.h=f.y2-f.y1,on(f,1),Ir(e,f.x1,f.y1,f.x2,f.y2)}}},ps=function(e,t,a){if(!t.cy().headless()){var n;a?n=a+"-":n="";var i=t._private,s=i.rstyle,o=t.pstyle(n+"label").strValue;if(o){var u=t.pstyle("text-halign"),l=t.pstyle("text-valign"),v=fa(s,"labelWidth",a),f=fa(s,"labelHeight",a),c=fa(s,"labelX",a),h=fa(s,"labelY",a),d=t.pstyle(n+"text-margin-x").pfValue,y=t.pstyle(n+"text-margin-y").pfValue,g=t.isEdge(),p=t.pstyle(n+"text-rotation"),m=t.pstyle("text-outline-width").pfValue,b=t.pstyle("text-border-width").pfValue,w=b/2,E=t.pstyle("text-background-padding").pfValue,C=2,x=f,T=v,k=T/2,B=x/2,D,P,A,R;if(g)D=c-k,P=c+k,A=h-B,R=h+B;else{switch(Jt(u.value)){case"left":D=c-T,P=c;break;case"center":D=c-k,P=c+k;break;case"right":D=c,P=c+T;break}switch(jt(l.value)){case"top":A=h-x,R=h;break;case"center":A=h-B,R=h+B;break;case"bottom":A=h,R=h+x;break}}var L=d-Math.max(m,w)-E-C,I=d+Math.max(m,w)+E+C,M=y-Math.max(m,w)-E-C,N=y+Math.max(m,w)+E+C;D+=L,P+=I,A+=M,R+=N;var F=a||"main",_=i.labelBounds,z=_[F]=_[F]||{};z.x1=D,z.y1=A,z.x2=P,z.y2=R,z.w=P-D,z.h=R-A,z.leftPad=L,z.rightPad=I,z.topPad=M,z.botPad=N;var q=g&&p.strValue==="autorotate",Z=p.pfValue!=null&&p.pfValue!==0;if(q||Z){var Q=q?fa(i.rstyle,"labelAngle",a):p.pfValue,X=Math.cos(Q),J=Math.sin(Q),j=(D+P)/2,ne=(A+R)/2;if(!g){switch(Jt(u.value)){case"left":j=P;break;case"right":j=D;break}switch(jt(l.value)){case"top":ne=R;break;case"bottom":ne=A;break}}var Y=function(we,ye){return we=we-j,ye=ye-ne,{x:we*X-ye*J+j,y:we*J+ye*X+ne}},V=Y(D,A),H=Y(D,R),$=Y(P,A),K=Y(P,R);D=Math.min(V.x,H.x,$.x,K.x),P=Math.max(V.x,H.x,$.x,K.x),A=Math.min(V.y,H.y,$.y,K.y),R=Math.max(V.y,H.y,$.y,K.y)}var te=F+"Rot",ve=_[te]=_[te]||{};ve.x1=D,ve.y1=A,ve.x2=P,ve.y2=R,ve.w=P-D,ve.h=R-A,Ir(e,D,A,P,R),Ir(i.labelBounds.all,D,A,P,R)}return e}},sl=function(e,t){if(!t.cy().headless()){var a=t.pstyle("outline-opacity").value,n=t.pstyle("outline-width").value,i=t.pstyle("outline-offset").value,s=n+i;$v(e,t,a,s,"outside",s/2)}},$v=function(e,t,a,n,i,s){if(!(a===0||n<=0||i==="inside")){var o=t.cy(),u=o.renderer(),l=u.nodeShapes[u.getNodeShape(t)];if(l){var v=t.position(),f=v.x,c=v.y,h=t.width(),d=t.height();if(l.hasMiterBounds){i==="center"&&(n/=2);var y=l.miterBounds(f,c,h,d,n);et(e,y)}else s!=null&&s>0&&un(e,[s,s,s,s])}}},Kg=function(e,t){if(!t.cy().headless()){var a=t.pstyle("border-opacity").value,n=t.pstyle("border-width").pfValue,i=t.pstyle("border-position").value;$v(e,t,a,n,i)}},Xg=function(e,t){var a=e._private.cy,n=a.styleEnabled(),i=a.headless(),s=yr(),o=e._private,u=e.isNode(),l=e.isEdge(),v,f,c,h,d,y,g=o.rstyle,p=u&&n?e.pstyle("bounds-expansion").pfValue:[0],m=function(De){return De.pstyle("display").value!=="none"},b=!n||m(e)&&(!l||m(e.source())&&m(e.target()));if(b){var w=0,E=0;n&&t.includeOverlays&&(w=e.pstyle("overlay-opacity").value,w!==0&&(E=e.pstyle("overlay-padding").value));var C=0,x=0;n&&t.includeUnderlays&&(C=e.pstyle("underlay-opacity").value,C!==0&&(x=e.pstyle("underlay-padding").value));var T=Math.max(E,x),k=0,B=0;if(n&&(k=e.pstyle("width").pfValue,B=k/2),u&&t.includeNodes){var D=e.position();d=D.x,y=D.y;var P=e.outerWidth(),A=P/2,R=e.outerHeight(),L=R/2;v=d-A,f=d+A,c=y-L,h=y+L,Ir(s,v,c,f,h),n&&sl(s,e),n&&t.includeOutlines&&!i&&sl(s,e),n&&Kg(s,e)}else if(l&&t.includeEdges)if(n&&!i){var I=e.pstyle("curve-style").strValue;if(v=Math.min(g.srcX,g.midX,g.tgtX),f=Math.max(g.srcX,g.midX,g.tgtX),c=Math.min(g.srcY,g.midY,g.tgtY),h=Math.max(g.srcY,g.midY,g.tgtY),v-=B,f+=B,c-=B,h+=B,Ir(s,v,c,f,h),I==="haystack"){var M=g.haystackPts;if(M&&M.length===2){if(v=M[0].x,c=M[0].y,f=M[1].x,h=M[1].y,v>f){var N=v;v=f,f=N}if(c>h){var F=c;c=h,h=F}Ir(s,v-B,c-B,f+B,h+B)}}else if(I==="bezier"||I==="unbundled-bezier"||rt(I,"segments")||rt(I,"taxi")){var _;switch(I){case"bezier":case"unbundled-bezier":_=g.bezierPts;break;case"segments":case"taxi":case"round-segments":case"round-taxi":_=g.linePts;break}if(_!=null)for(var z=0;z<_.length;z++){var q=_[z];v=q.x-B,f=q.x+B,c=q.y-B,h=q.y+B,Ir(s,v,c,f,h)}}}else{var Z=e.source(),Q=Z.position(),X=e.target(),J=X.position();if(v=Q.x,f=J.x,c=Q.y,h=J.y,v>f){var j=v;v=f,f=j}if(c>h){var ne=c;c=h,h=ne}v-=B,f+=B,c-=B,h+=B,Ir(s,v,c,f,h)}if(n&&t.includeEdges&&l&&(Ja(s,e,"mid-source"),Ja(s,e,"mid-target"),Ja(s,e,"source"),Ja(s,e,"target")),n){var Y=e.pstyle("ghost").value==="yes";if(Y){var V=e.pstyle("ghost-offset-x").pfValue,H=e.pstyle("ghost-offset-y").pfValue;Ir(s,s.x1+V,s.y1+H,s.x2+V,s.y2+H)}}var $=o.bodyBounds=o.bodyBounds||{};$o($,s),un($,p),on($,1),n&&(v=s.x1,f=s.x2,c=s.y1,h=s.y2,Ir(s,v-T,c-T,f+T,h+T));var K=o.overlayBounds=o.overlayBounds||{};$o(K,s),un(K,p),on(K,1);var te=o.labelBounds=o.labelBounds||{};te.all!=null?Bd(te.all):te.all=yr(),n&&t.includeLabels&&(t.includeMainLabels&&ps(s,e,null),l&&(t.includeSourceLabels&&ps(s,e,"source"),t.includeTargetLabels&&ps(s,e,"target")))}return s.x1=Br(s.x1),s.y1=Br(s.y1),s.x2=Br(s.x2),s.y2=Br(s.y2),s.w=Br(s.x2-s.x1),s.h=Br(s.y2-s.y1),s.w>0&&s.h>0&&b&&(un(s,p),on(s,1)),s},Uv=function(e){var t=0,a=function(s){return(s?1:0)<0&&arguments[0]!==void 0?arguments[0]:lp,e=arguments.length>1?arguments[1]:void 0,t=0;t=0;o--)s(o);return this};ft.removeAllListeners=function(){return this.removeListener("*")};ft.emit=ft.trigger=function(r,e,t){var a=this.listeners,n=a.length;return this.emitting++,Fe(e)||(e=[e]),vp(this,function(i,s){t!=null&&(a=[{event:s.event,type:s.type,namespace:s.namespace,callback:t}],n=a.length);for(var o=function(){var v=a[u];if(v.type===s.type&&(!v.namespace||v.namespace===s.namespace||v.namespace===up)&&i.eventMatches(i.context,v,s)){var f=[s];e!=null&&Jc(f,e),i.beforeEmit(i.context,v,s),v.conf&&v.conf.one&&(i.listeners=i.listeners.filter(function(d){return d!==v}));var c=i.callbackContext(i.context,v,s),h=v.callback.apply(c,f);i.afterEmit(i.context,v,s),h===!1&&(s.stopPropagation(),s.preventDefault())}},u=0;u1&&!s){var o=this.length-1,u=this[o],l=u._private.data.id;this[o]=void 0,this[e]=u,i.set(l,{ele:u,index:e})}return this.length--,this},unmergeOne:function(e){e=e[0];var t=this._private,a=e._private.data.id,n=t.map,i=n.get(a);if(!i)return this;var s=i.index;return this.unmergeAt(s),this},unmerge:function(e){var t=this._private.cy;if(!e)return this;if(e&&he(e)){var a=e;e=t.mutableElements().filter(a)}for(var n=0;n=0;t--){var a=this[t];e(a)&&this.unmergeAt(t)}return this},map:function(e,t){for(var a=[],n=this,i=0;ia&&(a=u,n=o)}return{value:a,ele:n}},min:function(e,t){for(var a=1/0,n,i=this,s=0;s=0&&i"u"?"undefined":je(Symbol))!=e&&je(Symbol.iterator)!=e;t&&(Tn[Symbol.iterator]=function(){var a=this,n={value:void 0,done:!1},i=0,s=this.length;return Ql({next:function(){return i1&&arguments[1]!==void 0?arguments[1]:!0,a=this[0],n=a.cy();if(n.styleEnabled()&&a){a._private.styleDirty&&(a._private.styleDirty=!1,n.style().apply(a));var i=a._private.style[e];return i??(t?n.style().getDefaultProperty(e):null)}},numericStyle:function(e){var t=this[0];if(t.cy().styleEnabled()&&t){var a=t.pstyle(e);return a.pfValue!==void 0?a.pfValue:a.value}},numericStyleUnits:function(e){var t=this[0];if(t.cy().styleEnabled()&&t)return t.pstyle(e).units},renderedStyle:function(e){var t=this.cy();if(!t.styleEnabled())return this;var a=this[0];if(a)return t.style().getRenderedStyle(a,e)},style:function(e,t){var a=this.cy();if(!a.styleEnabled())return this;var n=!1,i=a.style();if(Me(e)){var s=e;i.applyBypass(this,s,n),this.emitAndNotify("style")}else if(he(e))if(t===void 0){var o=this[0];return o?i.getStylePropertyValue(o,e):void 0}else i.applyBypass(this,e,t,n),this.emitAndNotify("style");else if(e===void 0){var u=this[0];return u?i.getRawStyle(u):void 0}return this},removeStyle:function(e){var t=this.cy();if(!t.styleEnabled())return this;var a=!1,n=t.style(),i=this;if(e===void 0)for(var s=0;s0&&e.push(v[0]),e.push(o[0])}return this.spawn(e,!0).filter(r)},"neighborhood"),closedNeighborhood:function(e){return this.neighborhood().add(this).filter(e)},openNeighborhood:function(e){return this.neighborhood(e)}});cr.neighbourhood=cr.neighborhood;cr.closedNeighbourhood=cr.closedNeighborhood;cr.openNeighbourhood=cr.openNeighborhood;me(cr,{source:Pr(function(e){var t=this[0],a;return t&&(a=t._private.source||t.cy().collection()),a&&e?a.filter(e):a},"source"),target:Pr(function(e){var t=this[0],a;return t&&(a=t._private.target||t.cy().collection()),a&&e?a.filter(e):a},"target"),sources:yl({attr:"source"}),targets:yl({attr:"target"})});function yl(r){return function(t){for(var a=[],n=0;n0);return s},component:function(){var e=this[0];return e.cy().mutableElements().components(e)[0]}});cr.componentsOf=cr.components;var ur=function(e,t){var a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(e===void 0){Ge("A collection must have a reference to the core");return}var i=new Ur,s=!1;if(!t)t=[];else if(t.length>0&&Me(t[0])&&!Ia(t[0])){s=!0;for(var o=[],u=new ra,l=0,v=t.length;l0&&arguments[0]!==void 0?arguments[0]:!0,e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,t=this,a=t.cy(),n=a._private,i=[],s=[],o,u=0,l=t.length;u0){for(var F=o.length===t.length?t:new ur(a,o),_=0;_0&&arguments[0]!==void 0?arguments[0]:!0,e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,t=this,a=[],n={},i=t._private.cy;function s(R){for(var L=R._private.edges,I=0;I0&&(r?D.emitAndNotify("remove"):e&&D.emit("remove"));for(var P=0;P0?P=R:D=R;while(Math.abs(A)>s&&++L=i?m(B,L):I===0?L:w(B,D,D+l)}var C=!1;function x(){C=!0,(r!==e||t!==a)&&b()}var T=function(D){return C||x(),r===e&&t===a?D:D===0?0:D===1?1:g(E(D),e,a)};T.getControlPoints=function(){return[{x:r,y:e},{x:t,y:a}]};var k="generateBezier("+[r,e,t,a]+")";return T.toString=function(){return k},T}var xp=(function(){function r(a){return-a.tension*a.x-a.friction*a.v}function e(a,n,i){var s={x:a.x+i.dx*n,v:a.v+i.dv*n,tension:a.tension,friction:a.friction};return{dx:s.v,dv:r(s)}}function t(a,n){var i={dx:a.v,dv:r(a)},s=e(a,n*.5,i),o=e(a,n*.5,s),u=e(a,n,o),l=1/6*(i.dx+2*(s.dx+o.dx)+u.dx),v=1/6*(i.dv+2*(s.dv+o.dv)+u.dv);return a.x=a.x+l*n,a.v=a.v+v*n,a}return function a(n,i,s){var o={x:-1,v:0,tension:null,friction:null},u=[0],l=0,v=1/1e4,f=16/1e3,c,h,d;for(n=parseFloat(n)||500,i=parseFloat(i)||20,s=s||null,o.tension=n,o.friction=i,c=s!==null,c?(l=a(n,i),h=l/s*f):h=f;d=t(d||o,h),u.push(1+d.x),l+=16,Math.abs(d.x)>v&&Math.abs(d.v)>v;);return c?function(y){return u[y*(u.length-1)|0]}:l}})(),Ve=function(e,t,a,n){var i=wp(e,t,a,n);return function(s,o,u){return s+(o-s)*i(u)}},fn={linear:function(e,t,a){return e+(t-e)*a},ease:Ve(.25,.1,.25,1),"ease-in":Ve(.42,0,1,1),"ease-out":Ve(0,0,.58,1),"ease-in-out":Ve(.42,0,.58,1),"ease-in-sine":Ve(.47,0,.745,.715),"ease-out-sine":Ve(.39,.575,.565,1),"ease-in-out-sine":Ve(.445,.05,.55,.95),"ease-in-quad":Ve(.55,.085,.68,.53),"ease-out-quad":Ve(.25,.46,.45,.94),"ease-in-out-quad":Ve(.455,.03,.515,.955),"ease-in-cubic":Ve(.55,.055,.675,.19),"ease-out-cubic":Ve(.215,.61,.355,1),"ease-in-out-cubic":Ve(.645,.045,.355,1),"ease-in-quart":Ve(.895,.03,.685,.22),"ease-out-quart":Ve(.165,.84,.44,1),"ease-in-out-quart":Ve(.77,0,.175,1),"ease-in-quint":Ve(.755,.05,.855,.06),"ease-out-quint":Ve(.23,1,.32,1),"ease-in-out-quint":Ve(.86,0,.07,1),"ease-in-expo":Ve(.95,.05,.795,.035),"ease-out-expo":Ve(.19,1,.22,1),"ease-in-out-expo":Ve(1,0,0,1),"ease-in-circ":Ve(.6,.04,.98,.335),"ease-out-circ":Ve(.075,.82,.165,1),"ease-in-out-circ":Ve(.785,.135,.15,.86),spring:function(e,t,a){if(a===0)return fn.linear;var n=xp(e,t,a);return function(i,s,o){return i+(s-i)*n(o)}},"cubic-bezier":Ve};function wl(r,e,t,a,n){if(a===1||e===t)return t;var i=n(e,t,a);return r==null||((r.roundValue||r.color)&&(i=Math.round(i)),r.min!==void 0&&(i=Math.max(i,r.min)),r.max!==void 0&&(i=Math.min(i,r.max))),i}function xl(r,e){return r.pfValue!=null||r.value!=null?r.pfValue!=null&&(e==null||e.type.units!=="%")?r.pfValue:r.value:r}function Nt(r,e,t,a,n){var i=n!=null?n.type:null;t<0?t=0:t>1&&(t=1);var s=xl(r,n),o=xl(e,n);if(ae(s)&&ae(o))return wl(i,s,o,t,a);if(Fe(s)&&Fe(o)){for(var u=[],l=0;l0?(h==="spring"&&d.push(s.duration),s.easingImpl=fn[h].apply(null,d)):s.easingImpl=fn[h]}var y=s.easingImpl,g;if(s.duration===0?g=1:g=(t-u)/s.duration,s.applying&&(g=s.progress),g<0?g=0:g>1&&(g=1),s.delay==null){var p=s.startPosition,m=s.position;if(m&&n&&!r.locked()){var b={};da(p.x,m.x)&&(b.x=Nt(p.x,m.x,g,y)),da(p.y,m.y)&&(b.y=Nt(p.y,m.y,g,y)),r.position(b)}var w=s.startPan,E=s.pan,C=i.pan,x=E!=null&&a;x&&(da(w.x,E.x)&&(C.x=Nt(w.x,E.x,g,y)),da(w.y,E.y)&&(C.y=Nt(w.y,E.y,g,y)),r.emit("pan"));var T=s.startZoom,k=s.zoom,B=k!=null&&a;B&&(da(T,k)&&(i.zoom=ka(i.minZoom,Nt(T,k,g,y),i.maxZoom)),r.emit("zoom")),(x||B)&&r.emit("viewport");var D=s.style;if(D&&D.length>0&&n){for(var P=0;P=0;x--){var T=C[x];T()}C.splice(0,C.length)},m=h.length-1;m>=0;m--){var b=h[m],w=b._private;if(w.stopped){h.splice(m,1),w.hooked=!1,w.playing=!1,w.started=!1,p(w.frames);continue}!w.playing&&!w.applying||(w.playing&&w.applying&&(w.applying=!1),w.started||Cp(v,b,r),Ep(v,b,r,f),w.applying&&(w.applying=!1),p(w.frames),w.step!=null&&w.step(r),b.completed()&&(h.splice(m,1),w.hooked=!1,w.playing=!1,w.started=!1,p(w.completes)),y=!0)}return!f&&h.length===0&&d.length===0&&a.push(v),y}for(var i=!1,s=0;s0?e.notify("draw",t):e.notify("draw")),t.unmerge(a),e.emit("step")}var Tp={animate:Oe.animate(),animation:Oe.animation(),animated:Oe.animated(),clearQueue:Oe.clearQueue(),delay:Oe.delay(),delayAnimation:Oe.delayAnimation(),stop:Oe.stop(),addToAnimationPool:function(e){var t=this;t.styleEnabled()&&t._private.aniEles.merge(e)},stopAnimationLoop:function(){this._private.animationsRunning=!1},startAnimationLoop:function(){var e=this;if(e._private.animationsRunning=!0,!e.styleEnabled())return;function t(){e._private.animationsRunning&&bn(function(i){El(i,e),t()})}var a=e.renderer();a&&a.beforeRender?a.beforeRender(function(i,s){El(s,e)},a.beforeRenderPriorities.animations):t()}},Sp={qualifierCompare:function(e,t){return e==null||t==null?e==null&&t==null:e.sameText(t)},eventMatches:function(e,t,a){var n=t.qualifier;return n!=null?e!==a.target&&Ia(a.target)&&n.matches(a.target):!0},addEventFields:function(e,t){t.cy=e,t.target=e},callbackContext:function(e,t,a){return t.qualifier!=null?a.target:e}},rn=function(e){return he(e)?new lt(e):e},af={createEmitter:function(){var e=this._private;return e.emitter||(e.emitter=new _n(Sp,this)),this},emitter:function(){return this._private.emitter},on:function(e,t,a){return this.emitter().on(e,rn(t),a),this},removeListener:function(e,t,a){return this.emitter().removeListener(e,rn(t),a),this},removeAllListeners:function(){return this.emitter().removeAllListeners(),this},one:function(e,t,a){return this.emitter().one(e,rn(t),a),this},once:function(e,t,a){return this.emitter().one(e,rn(t),a),this},emit:function(e,t){return this.emitter().emit(e,t),this},emitAndNotify:function(e,t){return this.emit(e),this.notify(e,t),this}};Oe.eventAliasesOn(af);var Ns={png:function(e){var t=this._private.renderer;return e=e||{},t.png(e)},jpg:function(e){var t=this._private.renderer;return e=e||{},e.bg=e.bg||"#fff",t.jpg(e)}};Ns.jpeg=Ns.jpg;var cn={layout:function(e){var t=this;if(e==null){Ge("Layout options must be specified to make a layout");return}if(e.name==null){Ge("A `name` must be specified to make a layout");return}var a=e.name,n=t.extension("layout",a);if(n==null){Ge("No such layout `"+a+"` found. Did you forget to import it and `cytoscape.use()` it?");return}var i;he(e.eles)?i=t.$(e.eles):i=e.eles!=null?e.eles:t.$();var s=new n(me({},e,{cy:t,eles:i}));return s}};cn.createLayout=cn.makeLayout=cn.layout;var kp={notify:function(e,t){var a=this._private;if(this.batching()){a.batchNotifications=a.batchNotifications||{};var n=a.batchNotifications[e]=a.batchNotifications[e]||this.collection();t!=null&&n.merge(t);return}if(a.notificationsEnabled){var i=this.renderer();this.destroyed()||!i||i.notify(e,t)}},notifications:function(e){var t=this._private;return e===void 0?t.notificationsEnabled:(t.notificationsEnabled=!!e,this)},noNotifications:function(e){this.notifications(!1),e(),this.notifications(!0)},batching:function(){return this._private.batchCount>0},startBatch:function(){var e=this._private;return e.batchCount==null&&(e.batchCount=0),e.batchCount===0&&(e.batchStyleEles=this.collection(),e.batchNotifications={}),e.batchCount++,this},endBatch:function(){var e=this._private;if(e.batchCount===0)return this;if(e.batchCount--,e.batchCount===0){e.batchStyleEles.updateStyle();var t=this.renderer();Object.keys(e.batchNotifications).forEach(function(a){var n=e.batchNotifications[a];n.empty()?t.notify(a):t.notify(a,n)})}return this},batch:function(e){return this.startBatch(),e(),this.endBatch(),this},batchData:function(e){var t=this;return this.batch(function(){for(var a=Object.keys(e),n=0;n0;)t.removeChild(t.childNodes[0]);e._private.renderer=null,e.mutableElements().forEach(function(a){var n=a._private;n.rscratch={},n.rstyle={},n.animation.current=[],n.animation.queue=[]})},onRender:function(e){return this.on("render",e)},offRender:function(e){return this.off("render",e)}};zs.invalidateDimensions=zs.resize;var dn={collection:function(e,t){return he(e)?this.$(e):Tr(e)?e.collection():Fe(e)?(t||(t={}),new ur(this,e,t.unique,t.removed)):new ur(this)},nodes:function(e){var t=this.$(function(a){return a.isNode()});return e?t.filter(e):t},edges:function(e){var t=this.$(function(a){return a.isEdge()});return e?t.filter(e):t},$:function(e){var t=this._private.elements;return e?t.filter(e):t.spawnSelf()},mutableElements:function(){return this._private.elements}};dn.elements=dn.filter=dn.$;var sr={},wa="t",Bp="f";sr.apply=function(r){for(var e=this,t=e._private,a=t.cy,n=a.collection(),i=0;i0;if(c||f&&h){var d=void 0;c&&h||c?d=l.properties:h&&(d=l.mappedProperties);for(var y=0;y1&&(w=1),o.color){var C=a.valueMin[0],x=a.valueMax[0],T=a.valueMin[1],k=a.valueMax[1],B=a.valueMin[2],D=a.valueMax[2],P=a.valueMin[3]==null?1:a.valueMin[3],A=a.valueMax[3]==null?1:a.valueMax[3],R=[Math.round(C+(x-C)*w),Math.round(T+(k-T)*w),Math.round(B+(D-B)*w),Math.round(P+(A-P)*w)];i={bypass:a.bypass,name:a.name,value:R,strValue:"rgb("+R[0]+", "+R[1]+", "+R[2]+")"}}else if(o.number){var L=a.valueMin+(a.valueMax-a.valueMin)*w;i=this.parse(a.name,L,a.bypass,c)}else return!1;if(!i)return y(),!1;i.mapping=a,a=i;break}case s.data:{for(var I=a.field.split("."),M=f.data,N=0;N0&&i>0){for(var o={},u=!1,l=0;l0?r.delayAnimation(s).play().promise().then(b):b()}).then(function(){return r.animation({style:o,duration:i,easing:r.pstyle("transition-timing-function").value,queue:!1}).play().promise()}).then(function(){t.removeBypasses(r,n),r.emitAndNotify("style"),a.transitioning=!1})}else a.transitioning&&(this.removeBypasses(r,n),r.emitAndNotify("style"),a.transitioning=!1)};sr.checkTrigger=function(r,e,t,a,n,i){var s=this.properties[e],o=n(s);r.removed()||o!=null&&o(t,a,r)&&i(s)};sr.checkZOrderTrigger=function(r,e,t,a){var n=this;this.checkTrigger(r,e,t,a,function(i){return i.triggersZOrder},function(){n._private.cy.notify("zorder",r)})};sr.checkBoundsTrigger=function(r,e,t,a){this.checkTrigger(r,e,t,a,function(n){return n.triggersBounds},function(n){r.dirtyCompoundBoundsCache(),r.dirtyBoundingBoxCache()})};sr.checkConnectedEdgesBoundsTrigger=function(r,e,t,a){this.checkTrigger(r,e,t,a,function(n){return n.triggersBoundsOfConnectedEdges},function(n){r.connectedEdges().forEach(function(i){i.dirtyBoundingBoxCache()})})};sr.checkParallelEdgesBoundsTrigger=function(r,e,t,a){this.checkTrigger(r,e,t,a,function(n){return n.triggersBoundsOfParallelEdges},function(n){r.parallelEdges().forEach(function(i){i.dirtyBoundingBoxCache()})})};sr.checkTriggers=function(r,e,t,a){r.dirtyStyleCache(),this.checkZOrderTrigger(r,e,t,a),this.checkBoundsTrigger(r,e,t,a),this.checkConnectedEdgesBoundsTrigger(r,e,t,a),this.checkParallelEdgesBoundsTrigger(r,e,t,a)};var _a={};_a.applyBypass=function(r,e,t,a){var n=this,i=[],s=!0;if(e==="*"||e==="**"){if(t!==void 0)for(var o=0;on.length?a=a.substr(n.length):a=""}function u(){i.length>s.length?i=i.substr(s.length):i=""}for(;;){var l=a.match(/^\s*$/);if(l)break;var v=a.match(/^\s*((?:.|\s)+?)\s*\{((?:.|\s)+?)\}/);if(!v){Ne("Halting stylesheet parsing: String stylesheet contains more to parse but no selector and block found in: "+a);break}n=v[0];var f=v[1];if(f!=="core"){var c=new lt(f);if(c.invalid){Ne("Skipping parsing of block: Invalid selector found in string stylesheet: "+f),o();continue}}var h=v[2],d=!1;i=h;for(var y=[];;){var g=i.match(/^\s*$/);if(g)break;var p=i.match(/^\s*(.+?)\s*:\s*(.+?)(?:\s*;|\s*$)/);if(!p){Ne("Skipping parsing of block: Invalid formatting of style property and value definitions found in:"+h),d=!0;break}s=p[0];var m=p[1],b=p[2],w=e.properties[m];if(!w){Ne("Skipping property: Invalid property name in: "+s),u();continue}var E=t.parse(m,b);if(!E){Ne("Skipping property: Invalid property definition in: "+s),u();continue}y.push({name:m,val:b}),u()}if(d){o();break}t.selector(f);for(var C=0;C=7&&e[0]==="d"&&(v=new RegExp(o.data.regex).exec(e))){if(t)return!1;var c=o.data;return{name:r,value:v,strValue:""+e,mapped:c,field:v[1],bypass:t}}else if(e.length>=10&&e[0]==="m"&&(f=new RegExp(o.mapData.regex).exec(e))){if(t||l.multiple)return!1;var h=o.mapData;if(!(l.color||l.number))return!1;var d=this.parse(r,f[4]);if(!d||d.mapped)return!1;var y=this.parse(r,f[5]);if(!y||y.mapped)return!1;if(d.pfValue===y.pfValue||d.strValue===y.strValue)return Ne("`"+r+": "+e+"` is not a valid mapper because the output range is zero; converting to `"+r+": "+d.strValue+"`"),this.parse(r,d.strValue);if(l.color){var g=d.value,p=y.value,m=g[0]===p[0]&&g[1]===p[1]&&g[2]===p[2]&&(g[3]===p[3]||(g[3]==null||g[3]===1)&&(p[3]==null||p[3]===1));if(m)return!1}return{name:r,value:f,strValue:""+e,mapped:h,field:f[1],fieldMin:parseFloat(f[2]),fieldMax:parseFloat(f[3]),valueMin:d.value,valueMax:y.value,bypass:t}}}if(l.multiple&&a!=="multiple"){var b;if(u?b=e.split(/\s+/):Fe(e)?b=e:b=[e],l.evenMultiple&&b.length%2!==0)return null;for(var w=[],E=[],C=[],x="",T=!1,k=0;k0?" ":"")+B.strValue}return l.validate&&!l.validate(w,E)?null:l.singleEnum&&T?w.length===1&&he(w[0])?{name:r,value:w[0],strValue:w[0],bypass:t}:null:{name:r,value:w,pfValue:C,strValue:x,bypass:t,units:E}}var D=function(){for(var Y=0;Yl.max||l.strictMax&&e===l.max))return null;var I={name:r,value:e,strValue:""+e+(P||""),units:P,bypass:t};return l.unitless||P!=="px"&&P!=="em"?I.pfValue=e:I.pfValue=P==="px"||!P?e:this.getEmSizeInPixels()*e,(P==="ms"||P==="s")&&(I.pfValue=P==="ms"?e:1e3*e),(P==="deg"||P==="rad")&&(I.pfValue=P==="rad"?e:Td(e)),P==="%"&&(I.pfValue=e/100),I}else if(l.propList){var M=[],N=""+e;if(N!=="none"){for(var F=N.split(/\s*,\s*|\s+/),_=0;_0&&o>0&&!isNaN(a.w)&&!isNaN(a.h)&&a.w>0&&a.h>0){u=Math.min((s-2*t)/a.w,(o-2*t)/a.h),u=u>this._private.maxZoom?this._private.maxZoom:u,u=u=a.minZoom&&(a.maxZoom=t),this},minZoom:function(e){return e===void 0?this._private.minZoom:this.zoomRange({min:e})},maxZoom:function(e){return e===void 0?this._private.maxZoom:this.zoomRange({max:e})},getZoomedViewport:function(e){var t=this._private,a=t.pan,n=t.zoom,i,s,o=!1;if(t.zoomingEnabled||(o=!0),ae(e)?s=e:Me(e)&&(s=e.level,e.position!=null?i=In(e.position,n,a):e.renderedPosition!=null&&(i=e.renderedPosition),i!=null&&!t.panningEnabled&&(o=!0)),s=s>t.maxZoom?t.maxZoom:s,s=st.maxZoom||!t.zoomingEnabled?s=!0:(t.zoom=u,i.push("zoom"))}if(n&&(!s||!e.cancelOnFailedZoom)&&t.panningEnabled){var l=e.pan;ae(l.x)&&(t.pan.x=l.x,o=!1),ae(l.y)&&(t.pan.y=l.y,o=!1),o||i.push("pan")}return i.length>0&&(i.push("viewport"),this.emit(i.join(" ")),this.notify("viewport")),this},center:function(e){var t=this.getCenterPan(e);return t&&(this._private.pan=t,this.emit("pan viewport"),this.notify("viewport")),this},getCenterPan:function(e,t){if(this._private.panningEnabled){if(he(e)){var a=e;e=this.mutableElements().filter(a)}else Tr(e)||(e=this.mutableElements());if(e.length!==0){var n=e.boundingBox(),i=this.width(),s=this.height();t=t===void 0?this._private.zoom:t;var o={x:(i-t*(n.x1+n.x2))/2,y:(s-t*(n.y1+n.y2))/2};return o}}},reset:function(){return!this._private.panningEnabled||!this._private.zoomingEnabled?this:(this.viewport({pan:{x:0,y:0},zoom:1}),this)},invalidateSize:function(){this._private.sizeCache=null},size:function(){var e=this._private,t=e.container,a=this;return e.sizeCache=e.sizeCache||(t?(function(){var n=a.window().getComputedStyle(t),i=function(o){return parseFloat(n.getPropertyValue(o))};return{width:t.clientWidth-i("padding-left")-i("padding-right"),height:t.clientHeight-i("padding-top")-i("padding-bottom")}})():{width:1,height:1})},width:function(){return this.size().width},height:function(){return this.size().height},extent:function(){var e=this._private.pan,t=this._private.zoom,a=this.renderedExtent(),n={x1:(a.x1-e.x)/t,x2:(a.x2-e.x)/t,y1:(a.y1-e.y)/t,y2:(a.y2-e.y)/t};return n.w=n.x2-n.x1,n.h=n.y2-n.y1,n},renderedExtent:function(){var e=this.width(),t=this.height();return{x1:0,y1:0,x2:e,y2:t,w:e,h:t}},multiClickDebounceTime:function(e){if(e)this._private.multiClickDebounceTime=e;else return this._private.multiClickDebounceTime;return this}};Pt.centre=Pt.center;Pt.autolockNodes=Pt.autolock;Pt.autoungrabifyNodes=Pt.autoungrabify;var Aa={data:Oe.data({field:"data",bindingEvent:"data",allowBinding:!0,allowSetting:!0,settingEvent:"data",settingTriggersEvent:!0,triggerFnName:"trigger",allowGetting:!0,updateStyle:!0}),removeData:Oe.removeData({field:"data",event:"data",triggerFnName:"trigger",triggerEvent:!0,updateStyle:!0}),scratch:Oe.data({field:"scratch",bindingEvent:"scratch",allowBinding:!0,allowSetting:!0,settingEvent:"scratch",settingTriggersEvent:!0,triggerFnName:"trigger",allowGetting:!0,updateStyle:!0}),removeScratch:Oe.removeData({field:"scratch",event:"scratch",triggerFnName:"trigger",triggerEvent:!0,updateStyle:!0})};Aa.attr=Aa.data;Aa.removeAttr=Aa.removeData;var Ra=function(e){var t=this;e=me({},e);var a=e.container;a&&!mn(a)&&mn(a[0])&&(a=a[0]);var n=a?a._cyreg:null;n=n||{},n&&n.cy&&(n.cy.destroy(),n={});var i=n.readies=n.readies||[];a&&(a._cyreg=n),n.cy=t;var s=Qe!==void 0&&a!==void 0&&!e.headless,o=e;o.layout=me({name:s?"grid":"null"},o.layout),o.renderer=me({name:s?"canvas":"null"},o.renderer);var u=function(d,y,g){return y!==void 0?y:g!==void 0?g:d},l=this._private={container:a,ready:!1,options:o,elements:new ur(this),listeners:[],aniEles:new ur(this),data:o.data||{},scratch:{},layout:null,renderer:null,destroyed:!1,notificationsEnabled:!0,minZoom:1e-50,maxZoom:1e50,zoomingEnabled:u(!0,o.zoomingEnabled),userZoomingEnabled:u(!0,o.userZoomingEnabled),panningEnabled:u(!0,o.panningEnabled),userPanningEnabled:u(!0,o.userPanningEnabled),boxSelectionEnabled:u(!0,o.boxSelectionEnabled),autolock:u(!1,o.autolock,o.autolockNodes),autoungrabify:u(!1,o.autoungrabify,o.autoungrabifyNodes),autounselectify:u(!1,o.autounselectify),styleEnabled:o.styleEnabled===void 0?s:o.styleEnabled,zoom:ae(o.zoom)?o.zoom:1,pan:{x:Me(o.pan)&&ae(o.pan.x)?o.pan.x:0,y:Me(o.pan)&&ae(o.pan.y)?o.pan.y:0},animation:{current:[],queue:[]},hasCompoundNodes:!1,multiClickDebounceTime:u(250,o.multiClickDebounceTime)};this.createEmitter(),this.selectionType(o.selectionType),this.zoomRange({min:o.minZoom,max:o.maxZoom});var v=function(d,y){var g=d.some(yc);if(g)return ta.all(d).then(y);y(d)};l.styleEnabled&&t.setStyle([]);var f=me({},o,o.renderer);t.initRenderer(f);var c=function(d,y,g){t.notifications(!1);var p=t.mutableElements();p.length>0&&p.remove(),d!=null&&(Me(d)||Fe(d))&&t.add(d),t.one("layoutready",function(b){t.notifications(!0),t.emit(b),t.one("load",y),t.emitAndNotify("load")}).one("layoutstop",function(){t.one("done",g),t.emit("done")});var m=me({},t._private.options.layout);m.eles=t.elements(),t.layout(m).run()};v([o.style,o.elements],function(h){var d=h[0],y=h[1];l.styleEnabled&&t.style().append(d),c(y,function(){t.startAnimationLoop(),l.ready=!0,He(o.ready)&&t.on("ready",o.ready);for(var g=0;g0,o=!!r.boundingBox,u=yr(o?r.boundingBox:structuredClone(e.extent())),l;if(Tr(r.roots))l=r.roots;else if(Fe(r.roots)){for(var v=[],f=0;f0;){var R=A(),L=k(R,D);if(L)R.outgoers().filter(function(pe){return pe.isNode()&&t.has(pe)}).forEach(P);else if(L===null){Ne("Detected double maximal shift for node `"+R.id()+"`. Bailing maximal adjustment due to cycle. Use `options.maximal: true` only on DAGs.");break}}}var I=0;if(r.avoidOverlap)for(var M=0;M0&&p[0].length<=3?be/2:0),Be=2*Math.PI/p[ge].length*Ee;return ge===0&&p[0].length===1&&(Te=1),{x:$.x+Te*Math.cos(Be),y:$.y+Te*Math.sin(Be)}}else{var Ae=p[ge].length,Le=Math.max(Ae===1?0:o?(u.w-r.padding*2-K.w)/((r.grid?ve:Ae)-1):(u.w-r.padding*2-K.w)/((r.grid?ve:Ae)+1),I),ee={x:$.x+(Ee+1-(Ae+1)/2)*Le,y:$.y+(ge+1-(X+1)/2)*te};return ee}},we={downward:0,leftward:90,upward:180,rightward:-90};Object.keys(we).indexOf(r.direction)===-1&&Ge("Invalid direction '".concat(r.direction,"' specified for breadthfirst layout. Valid values are: ").concat(Object.keys(we).join(", ")));var ye=function(se){return Uc(De(se),u,we[r.direction])};return t.nodes().layoutPositions(this,r,ye),this};var Lp={fit:!0,padding:30,boundingBox:void 0,avoidOverlap:!0,nodeDimensionsIncludeLabels:!1,spacingFactor:void 0,radius:void 0,startAngle:3/2*Math.PI,sweep:void 0,clockwise:!0,sort:void 0,animate:!1,animationDuration:500,animationEasing:void 0,animateFilter:function(e,t){return!0},ready:void 0,stop:void 0,transform:function(e,t){return t}};function sf(r){this.options=me({},Lp,r)}sf.prototype.run=function(){var r=this.options,e=r,t=r.cy,a=e.eles,n=e.counterclockwise!==void 0?!e.counterclockwise:e.clockwise,i=a.nodes().not(":parent");e.sort&&(i=i.sort(e.sort));for(var s=yr(e.boundingBox?e.boundingBox:{x1:0,y1:0,w:t.width(),h:t.height()}),o={x:s.x1+s.w/2,y:s.y1+s.h/2},u=e.sweep===void 0?2*Math.PI-2*Math.PI/i.length:e.sweep,l=u/Math.max(1,i.length-1),v,f=0,c=0;c1&&e.avoidOverlap){f*=1.75;var p=Math.cos(l)-Math.cos(0),m=Math.sin(l)-Math.sin(0),b=Math.sqrt(f*f/(p*p+m*m));v=Math.max(b,v)}var w=function(C,x){var T=e.startAngle+x*l*(n?1:-1),k=v*Math.cos(T),B=v*Math.sin(T),D={x:o.x+k,y:o.y+B};return D};return a.nodes().layoutPositions(this,e,w),this};var Ip={fit:!0,padding:30,startAngle:3/2*Math.PI,sweep:void 0,clockwise:!0,equidistant:!1,minNodeSpacing:10,boundingBox:void 0,avoidOverlap:!0,nodeDimensionsIncludeLabels:!1,height:void 0,width:void 0,spacingFactor:void 0,concentric:function(e){return e.degree()},levelWidth:function(e){return e.maxDegree()/4},animate:!1,animationDuration:500,animationEasing:void 0,animateFilter:function(e,t){return!0},ready:void 0,stop:void 0,transform:function(e,t){return t}};function of(r){this.options=me({},Ip,r)}of.prototype.run=function(){for(var r=this.options,e=r,t=e.counterclockwise!==void 0?!e.counterclockwise:e.clockwise,a=r.cy,n=e.eles,i=n.nodes().not(":parent"),s=yr(e.boundingBox?e.boundingBox:{x1:0,y1:0,w:a.width(),h:a.height()}),o={x:s.x1+s.w/2,y:s.y1+s.h/2},u=[],l=0,v=0;v0){var E=Math.abs(m[0].value-w.value);E>=g&&(m=[],p.push(m))}m.push(w)}var C=l+e.minNodeSpacing;if(!e.avoidOverlap){var x=p.length>0&&p[0].length>1,T=Math.min(s.w,s.h)/2-C,k=T/(p.length+x?1:0);C=Math.min(C,k)}for(var B=0,D=0;D1&&e.avoidOverlap){var L=Math.cos(R)-Math.cos(0),I=Math.sin(R)-Math.sin(0),M=Math.sqrt(C*C/(L*L+I*I));B=Math.max(M,B)}P.r=B,B+=C}if(e.equidistant){for(var N=0,F=0,_=0;_=r.numIter||(_p(a,r),a.temperature=a.temperature*r.coolingFactor,a.temperature=r.animationThreshold&&i(),bn(v)}};v()}else{for(;l;)l=s(u),u++;Sl(a,r),o()}return this};Un.prototype.stop=function(){return this.stopped=!0,this.thread&&this.thread.stop(),this.emit("layoutstop"),this};Un.prototype.destroy=function(){return this.thread&&this.thread.stop(),this};var Np=function(e,t,a){for(var n=a.eles.edges(),i=a.eles.nodes(),s=yr(a.boundingBox?a.boundingBox:{x1:0,y1:0,w:e.width(),h:e.height()}),o={isCompound:e.hasCompoundNodes(),layoutNodes:[],idToIndex:{},nodeSize:i.size(),graphSet:[],indexToGraph:[],layoutEdges:[],edgeSize:n.size(),temperature:a.initialTemp,clientWidth:s.w,clientHeight:s.h,boundingBox:s},u=a.eles.components(),l={},v=0;v0){o.graphSet.push(T);for(var v=0;vn.count?0:n.graph},uf=function(e,t,a,n){var i=n.graphSet[a];if(-10)var f=n.nodeOverlap*v,c=Math.sqrt(o*o+u*u),h=f*o/c,d=f*u/c;else var y=kn(e,o,u),g=kn(t,-1*o,-1*u),p=g.x-y.x,m=g.y-y.y,b=p*p+m*m,c=Math.sqrt(b),f=(e.nodeRepulsion+t.nodeRepulsion)/b,h=f*p/c,d=f*m/c;e.isLocked||(e.offsetX-=h,e.offsetY-=d),t.isLocked||(t.offsetX+=h,t.offsetY+=d)}},Wp=function(e,t,a,n){if(a>0)var i=e.maxX-t.minX;else var i=t.maxX-e.minX;if(n>0)var s=e.maxY-t.minY;else var s=t.maxY-e.minY;return i>=0&&s>=0?Math.sqrt(i*i+s*s):0},kn=function(e,t,a){var n=e.positionX,i=e.positionY,s=e.height||1,o=e.width||1,u=a/t,l=s/o,v={};return t===0&&0a?(v.x=n,v.y=i+s/2,v):0t&&-1*l<=u&&u<=l?(v.x=n-o/2,v.y=i-o*a/2/t,v):0=l)?(v.x=n+s*t/2/a,v.y=i+s/2,v):(0>a&&(u<=-1*l||u>=l)&&(v.x=n-s*t/2/a,v.y=i-s/2),v)},$p=function(e,t){for(var a=0;aa){var g=t.gravity*h/y,p=t.gravity*d/y;c.offsetX+=g,c.offsetY+=p}}}}},Kp=function(e,t){var a=[],n=0,i=-1;for(a.push.apply(a,e.graphSet[0]),i+=e.graphSet[0].length;n<=i;){var s=a[n++],o=e.idToIndex[s],u=e.layoutNodes[o],l=u.children;if(0a)var i={x:a*e/n,y:a*t/n};else var i={x:e,y:t};return i},vf=function(e,t){var a=e.parentId;if(a!=null){var n=t.layoutNodes[t.idToIndex[a]],i=!1;if((n.maxX==null||e.maxX+n.padRight>n.maxX)&&(n.maxX=e.maxX+n.padRight,i=!0),(n.minX==null||e.minX-n.padLeftn.maxY)&&(n.maxY=e.maxY+n.padBottom,i=!0),(n.minY==null||e.minY-n.padTopp&&(d+=g+t.componentSpacing,h=0,y=0,g=0)}}},Zp={fit:!0,padding:30,boundingBox:void 0,avoidOverlap:!0,avoidOverlapPadding:10,nodeDimensionsIncludeLabels:!1,spacingFactor:void 0,condense:!1,rows:void 0,cols:void 0,position:function(e){},sort:void 0,animate:!1,animationDuration:500,animationEasing:void 0,animateFilter:function(e,t){return!0},ready:void 0,stop:void 0,transform:function(e,t){return t}};function ff(r){this.options=me({},Zp,r)}ff.prototype.run=function(){var r=this.options,e=r,t=r.cy,a=e.eles,n=a.nodes().not(":parent");e.sort&&(n=n.sort(e.sort));var i=yr(e.boundingBox?e.boundingBox:{x1:0,y1:0,w:t.width(),h:t.height()});if(i.h===0||i.w===0)a.nodes().layoutPositions(this,e,function(Z){return{x:i.x1,y:i.y1}});else{var s=n.size(),o=Math.sqrt(s*i.h/i.w),u=Math.round(o),l=Math.round(i.w/i.h*o),v=function(Q){if(Q==null)return Math.min(u,l);var X=Math.min(u,l);X==u?u=Q:l=Q},f=function(Q){if(Q==null)return Math.max(u,l);var X=Math.max(u,l);X==u?u=Q:l=Q},c=e.rows,h=e.cols!=null?e.cols:e.columns;if(c!=null&&h!=null)u=c,l=h;else if(c!=null&&h==null)u=c,l=Math.ceil(s/u);else if(c==null&&h!=null)l=h,u=Math.ceil(s/l);else if(l*u>s){var d=v(),y=f();(d-1)*y>=s?v(d-1):(y-1)*d>=s&&f(y-1)}else for(;l*u=s?f(p+1):v(g+1)}var m=i.w/l,b=i.h/u;if(e.condense&&(m=0,b=0),e.avoidOverlap)for(var w=0;w=l&&(L=0,R++)},M={},N=0;N(L=Fd(r,e,I[M],I[M+1],I[M+2],I[M+3])))return g(x,L),!0}else if(k.edgeType==="bezier"||k.edgeType==="multibezier"||k.edgeType==="self"||k.edgeType==="compound"){for(var I=k.allpts,M=0;M+5(L=zd(r,e,I[M],I[M+1],I[M+2],I[M+3],I[M+4],I[M+5])))return g(x,L),!0}for(var N=N||T.source,F=F||T.target,_=n.getArrowWidth(B,D),z=[{name:"source",x:k.arrowStartX,y:k.arrowStartY,angle:k.srcArrowAngle},{name:"target",x:k.arrowEndX,y:k.arrowEndY,angle:k.tgtArrowAngle},{name:"mid-source",x:k.midX,y:k.midY,angle:k.midsrcArrowAngle},{name:"mid-target",x:k.midX,y:k.midY,angle:k.midtgtArrowAngle}],M=0;M0&&(p(N),p(F))}function b(x,T,k){return pr(x,T,k)}function w(x,T){var k=x._private,B=c,D;T?D=T+"-":D="",x.boundingBox();var P=k.labelBounds[T||"main"],A=x.pstyle(D+"label").value,R=x.pstyle("text-events").strValue==="yes";if(!(!R||!A)){var L=b(k.rscratch,"labelX",T),I=b(k.rscratch,"labelY",T),M=b(k.rscratch,"labelAngle",T),N=x.pstyle(D+"text-margin-x").pfValue,F=x.pstyle(D+"text-margin-y").pfValue,_=P.x1-B-N,z=P.x2+B-N,q=P.y1-B-F,Z=P.y2+B-F;if(M){var Q=Math.cos(M),X=Math.sin(M),J=function(K,te){return K=K-L,te=te-I,{x:K*Q-te*X+L,y:K*X+te*Q+I}},j=J(_,q),ne=J(_,Z),Y=J(z,q),V=J(z,Z),H=[j.x+N,j.y+F,Y.x+N,Y.y+F,V.x+N,V.y+F,ne.x+N,ne.y+F];if(Er(r,e,H))return g(x),!0}else if(tt(P,r,e))return g(x),!0}}for(var E=s.length-1;E>=0;E--){var C=s[E];C.isNode()?p(C)||w(C):m(C)||w(C)||w(C,"source")||w(C,"target")}return o};Rt.getAllInBox=function(r,e,t,a){var n=this.getCachedZSortedEles().interactive,i=this.cy.zoom(),s=2/i,o=[],u=Math.min(r,t),l=Math.max(r,t),v=Math.min(e,a),f=Math.max(e,a);r=u,t=l,e=v,a=f;var c=yr({x1:r,y1:e,x2:t,y2:a}),h=[{x:c.x1,y:c.y1},{x:c.x2,y:c.y1},{x:c.x2,y:c.y2},{x:c.x1,y:c.y2}],d=[[h[0],h[1]],[h[1],h[2]],[h[2],h[3]],[h[3],h[0]]];function y(K,te,ve){return pr(K,te,ve)}function g(K,te){var ve=K._private,De=s,we="";K.boundingBox();var ye=ve.labelBounds.main;if(!ye)return null;var pe=y(ve.rscratch,"labelX",te),se=y(ve.rscratch,"labelY",te),de=y(ve.rscratch,"labelAngle",te),ge=K.pstyle(we+"text-margin-x").pfValue,Ee=K.pstyle(we+"text-margin-y").pfValue,be=ye.x1-De-ge,Te=ye.x2+De-ge,Be=ye.y1-De-Ee,Ae=ye.y2+De-Ee;if(de){var Le=Math.cos(de),ee=Math.sin(de),S=function(W,G){return W=W-pe,G=G-se,{x:W*Le-G*ee+pe,y:W*ee+G*Le+se}};return[S(be,Be),S(Te,Be),S(Te,Ae),S(be,Ae)]}else return[{x:be,y:Be},{x:Te,y:Be},{x:Te,y:Ae},{x:be,y:Ae}]}function p(K,te,ve,De){function we(ye,pe,se){return(se.y-ye.y)*(pe.x-ye.x)>(pe.y-ye.y)*(se.x-ye.x)}return we(K,ve,De)!==we(te,ve,De)&&we(K,te,ve)!==we(K,te,De)}for(var m=0;m0?-(Math.PI-e.ang):Math.PI+e.ang},ty=function(e,t,a,n,i){if(e!==Al?Rl(t,e,Vr):ry(Dr,Vr),Rl(t,a,Dr),Bl=Vr.nx*Dr.ny-Vr.ny*Dr.nx,Pl=Vr.nx*Dr.nx-Vr.ny*-Dr.ny,$r=Math.asin(Math.max(-1,Math.min(1,Bl))),Math.abs($r)<1e-6){Fs=t.x,Vs=t.y,Et=Ft=0;return}Tt=1,hn=!1,Pl<0?$r<0?$r=Math.PI+$r:($r=Math.PI-$r,Tt=-1,hn=!0):$r>0&&(Tt=-1,hn=!0),t.radius!==void 0?Ft=t.radius:Ft=n,mt=$r/2,tn=Math.min(Vr.len/2,Dr.len/2),i?(zr=Math.abs(Math.cos(mt)*Ft/Math.sin(mt)),zr>tn?(zr=tn,Et=Math.abs(zr*Math.sin(mt)/Math.cos(mt))):Et=Ft):(zr=Math.min(tn,Ft),Et=Math.abs(zr*Math.sin(mt)/Math.cos(mt))),qs=t.x+Dr.nx*zr,_s=t.y+Dr.ny*zr,Fs=qs-Dr.ny*Et*Tt,Vs=_s+Dr.nx*Et*Tt,gf=t.x+Vr.nx*zr,pf=t.y+Vr.ny*zr,Al=t};function yf(r,e){e.radius===0?r.lineTo(e.cx,e.cy):r.arc(e.cx,e.cy,e.radius,e.startAngle,e.endAngle,e.counterClockwise)}function go(r,e,t,a){var n=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0;return a===0||e.radius===0?{cx:e.x,cy:e.y,radius:0,startX:e.x,startY:e.y,stopX:e.x,stopY:e.y,startAngle:void 0,endAngle:void 0,counterClockwise:void 0}:(ty(r,e,t,a,n),{cx:Fs,cy:Vs,radius:Et,startX:gf,startY:pf,stopX:qs,stopY:_s,startAngle:Vr.ang+Math.PI/2*Tt,endAngle:Dr.ang-Math.PI/2*Tt,counterClockwise:hn})}var Ma=.01,ay=Math.sqrt(2*Ma),hr={};hr.findMidptPtsEtc=function(r,e){var t=e.posPts,a=e.intersectionPts,n=e.vectorNormInverse,i,s=r.pstyle("source-endpoint"),o=r.pstyle("target-endpoint"),u=s.units!=null&&o.units!=null,l=function(E,C,x,T){var k=T-C,B=x-E,D=Math.sqrt(B*B+k*k);return{x:-k/D,y:B/D}},v=r.pstyle("edge-distances").value;switch(v){case"node-position":i=t;break;case"intersection":i=a;break;case"endpoints":{if(u){var f=this.manualEndptToPx(r.source()[0],s),c=Xe(f,2),h=c[0],d=c[1],y=this.manualEndptToPx(r.target()[0],o),g=Xe(y,2),p=g[0],m=g[1],b={x1:h,y1:d,x2:p,y2:m};n=l(h,d,p,m),i=b}else Ne("Edge ".concat(r.id()," has edge-distances:endpoints specified without manual endpoints specified via source-endpoint and target-endpoint. Falling back on edge-distances:intersection (default).")),i=a;break}}return{midptPts:i,vectorNormInverse:n}};hr.findHaystackPoints=function(r){for(var e=0;e0?Math.max(G-U,0):Math.min(G+U,0)},A=P(B,T),R=P(D,k),L=!1;m===l?p=Math.abs(A)>Math.abs(R)?n:a:m===u||m===o?(p=a,L=!0):(m===i||m===s)&&(p=n,L=!0);var I=p===a,M=I?R:A,N=I?D:B,F=ro(N),_=!1;!(L&&(w||C))&&(m===o&&N<0||m===u&&N>0||m===i&&N>0||m===s&&N<0)&&(F*=-1,M=F*Math.abs(M),_=!0);var z;if(w){var q=E<0?1+E:E;z=q*M}else{var Z=E<0?M:0;z=Z+E*F}var Q=function(G){return Math.abs(G)=Math.abs(M)},X=Q(z),J=Q(Math.abs(M)-Math.abs(z)),j=X||J;if(j&&!_)if(I){var ne=Math.abs(N)<=c/2,Y=Math.abs(B)<=h/2;if(ne){var V=(v.x1+v.x2)/2,H=v.y1,$=v.y2;t.segpts=[V,H,V,$]}else if(Y){var K=(v.y1+v.y2)/2,te=v.x1,ve=v.x2;t.segpts=[te,K,ve,K]}else t.segpts=[v.x1,v.y2]}else{var De=Math.abs(N)<=f/2,we=Math.abs(D)<=d/2;if(De){var ye=(v.y1+v.y2)/2,pe=v.x1,se=v.x2;t.segpts=[pe,ye,se,ye]}else if(we){var de=(v.x1+v.x2)/2,ge=v.y1,Ee=v.y2;t.segpts=[de,ge,de,Ee]}else t.segpts=[v.x2,v.y1]}else if(I){var be=v.y1+z+(g?c/2*F:0),Te=v.x1,Be=v.x2;t.segpts=[Te,be,Be,be]}else{var Ae=v.x1+z+(g?f/2*F:0),Le=v.y1,ee=v.y2;t.segpts=[Ae,Le,Ae,ee]}if(t.isRound){var S=r.pstyle("taxi-radius").value,O=r.pstyle("radius-type").value[0]==="arc-radius";t.radii=new Array(t.segpts.length/2).fill(S),t.isArcRadius=new Array(t.segpts.length/2).fill(O)}};hr.tryToCorrectInvalidPoints=function(r,e){var t=r._private.rscratch;if(t.edgeType==="bezier"){var a=e.srcPos,n=e.tgtPos,i=e.srcW,s=e.srcH,o=e.tgtW,u=e.tgtH,l=e.srcShape,v=e.tgtShape,f=e.srcCornerRadius,c=e.tgtCornerRadius,h=e.srcRs,d=e.tgtRs,y=!ae(t.startX)||!ae(t.startY),g=!ae(t.arrowStartX)||!ae(t.arrowStartY),p=!ae(t.endX)||!ae(t.endY),m=!ae(t.arrowEndX)||!ae(t.arrowEndY),b=3,w=this.getArrowWidth(r.pstyle("width").pfValue,r.pstyle("arrow-scale").value)*this.arrowShapeWidth,E=b*w,C=Dt({x:t.ctrlpts[0],y:t.ctrlpts[1]},{x:t.startX,y:t.startY}),x=CN.poolIndex()){var F=M;M=N,N=F}var _=A.srcPos=M.position(),z=A.tgtPos=N.position(),q=A.srcW=M.outerWidth(),Z=A.srcH=M.outerHeight(),Q=A.tgtW=N.outerWidth(),X=A.tgtH=N.outerHeight(),J=A.srcShape=t.nodeShapes[e.getNodeShape(M)],j=A.tgtShape=t.nodeShapes[e.getNodeShape(N)],ne=A.srcCornerRadius=M.pstyle("corner-radius").value==="auto"?"auto":M.pstyle("corner-radius").pfValue,Y=A.tgtCornerRadius=N.pstyle("corner-radius").value==="auto"?"auto":N.pstyle("corner-radius").pfValue,V=A.tgtRs=N._private.rscratch,H=A.srcRs=M._private.rscratch;A.dirCounts={north:0,west:0,south:0,east:0,northwest:0,southwest:0,northeast:0,southeast:0};for(var $=0;$=ay||(Be=Math.sqrt(Math.max(Te*Te,Ma)+Math.max(be*be,Ma)));var Ae=A.vector={x:Te,y:be},Le=A.vectorNorm={x:Ae.x/Be,y:Ae.y/Be},ee={x:-Le.y,y:Le.x};A.nodesOverlap=!ae(Be)||j.checkPoint(ye[0],ye[1],0,Q,X,z.x,z.y,Y,V)||J.checkPoint(se[0],se[1],0,q,Z,_.x,_.y,ne,H),A.vectorNormInverse=ee,R={nodesOverlap:A.nodesOverlap,dirCounts:A.dirCounts,calculatedIntersection:!0,hasBezier:A.hasBezier,hasUnbundled:A.hasUnbundled,eles:A.eles,srcPos:z,srcRs:V,tgtPos:_,tgtRs:H,srcW:Q,srcH:X,tgtW:q,tgtH:Z,srcIntn:de,tgtIntn:pe,srcShape:j,tgtShape:J,posPts:{x1:Ee.x2,y1:Ee.y2,x2:Ee.x1,y2:Ee.y1},intersectionPts:{x1:ge.x2,y1:ge.y2,x2:ge.x1,y2:ge.y1},vector:{x:-Ae.x,y:-Ae.y},vectorNorm:{x:-Le.x,y:-Le.y},vectorNormInverse:{x:-ee.x,y:-ee.y}}}var S=we?R:A;te.nodesOverlap=S.nodesOverlap,te.srcIntn=S.srcIntn,te.tgtIntn=S.tgtIntn,te.isRound=ve.startsWith("round"),n&&(M.isParent()||M.isChild()||N.isParent()||N.isChild())&&(M.parents().anySame(N)||N.parents().anySame(M)||M.same(N)&&M.isParent())?e.findCompoundLoopPoints(K,S,$,De):M===N?e.findLoopPoints(K,S,$,De):ve.endsWith("segments")?e.findSegmentsPoints(K,S):ve.endsWith("taxi")?e.findTaxiPoints(K,S):ve==="straight"||!De&&A.eles.length%2===1&&$===Math.floor(A.eles.length/2)?e.findStraightEdgePoints(K):e.findBezierPoints(K,S,$,De,we),e.findEndpoints(K),e.tryToCorrectInvalidPoints(K,S),e.checkForInvalidEdgeWarning(K),e.storeAllpts(K),e.storeEdgeProjections(K),e.calculateArrowAngles(K),e.recalculateEdgeLabelProjections(K),e.calculateLabelAngles(K)}},x=0;x0){var ye=l,pe=xt(ye,Gt(s)),se=xt(ye,Gt(we)),de=pe;if(se2){var ge=xt(ye,{x:we[2],y:we[3]});ge0){var ue=v,re=xt(ue,Gt(s)),oe=xt(ue,Gt(U)),ie=re;if(oe2){var fe=xt(ue,{x:U[2],y:U[3]});fe=d||x){g={cp:w,segment:C};break}}if(g)break}var T=g.cp,k=g.segment,B=(d-p)/k.length,D=k.t1-k.t0,P=h?k.t0+D*B:k.t1-D*B;P=ka(0,P,1),e=$t(T.p0,T.p1,T.p2,P),c=iy(T.p0,T.p1,T.p2,P);break}case"straight":case"segments":case"haystack":{for(var A=0,R,L,I,M,N=a.allpts.length,F=0;F+3=d));F+=2);var _=d-L,z=_/R;z=ka(0,z,1),e=kd(I,M,z),c=wf(I,M);break}}s("labelX",f,e.x),s("labelY",f,e.y),s("labelAutoAngle",f,c)}};l("source"),l("target"),this.applyLabelDimensions(r)}};Hr.applyLabelDimensions=function(r){this.applyPrefixedLabelDimensions(r),r.isEdge()&&(this.applyPrefixedLabelDimensions(r,"source"),this.applyPrefixedLabelDimensions(r,"target"))};Hr.applyPrefixedLabelDimensions=function(r,e){var t=r._private,a=this.getLabelText(r,e),n=kt(a,r._private.labelDimsKey);if(pr(t.rscratch,"prefixedLabelDimsKey",e)!==n){qr(t.rscratch,"prefixedLabelDimsKey",e,n);var i=this.calculateLabelDimensions(r,a),s=r.pstyle("line-height").pfValue,o=r.pstyle("font-size").pfValue,u=r.pstyle("text-wrap").strValue,l=pr(t.rscratch,"labelWrapCachedLines",e)||[],v=u!=="wrap"?1:Math.max(l.length,1),f=o*s,c=i.width,h=i.height+(v-1)*(s-1)*o;qr(t.rstyle,"labelWidth",e,c),qr(t.rscratch,"labelWidth",e,c),qr(t.rstyle,"labelHeight",e,h),qr(t.rscratch,"labelHeight",e,h),qr(t.rscratch,"labelLineHeight",e,f),qr(t.rscratch,"labelActualDescent",e,i.labelActualDescent)}};Hr.getLabelText=function(r,e){var t=r._private,a=e?e+"-":"",n=r.pstyle(a+"label").strValue,i=r.pstyle("text-transform").value,s=function(Z,Q){return Q?(qr(t.rscratch,Z,e,Q),Q):pr(t.rscratch,Z,e)};if(!n)return"";i=="none"||(i=="uppercase"?n=n.toUpperCase():i=="lowercase"&&(n=n.toLowerCase()));var o=r.pstyle("text-wrap").value;if(o==="wrap"){var u=s("labelKey");if(u!=null&&s("labelWrapKey")===u)return s("labelWrapCachedText");for(var l="\u200B",v=n.split(` +`),f=r.pstyle("text-max-width").pfValue,c=r.pstyle("text-overflow-wrap").value,h=c==="anywhere",d=[],y=/[\s\u200b]+|$/g,g=0;gf){var E=p.matchAll(y),C="",x=0,T=Cr(E),k;try{for(T.s();!(k=T.n()).done;){var B=k.value,D=B[0],P=p.substring(x,B.index);x=B.index+D.length;var A=C.length===0?P:C+P+D,R=this.calculateLabelDimensions(r,A),L=R.width;L<=f?C+=P+D:(C&&d.push(C),C=P+D)}}catch(q){T.e(q)}finally{T.f()}C.match(/^[\s\u200b]+$/)||d.push(C)}else d.push(p)}s("labelWrapCachedLines",d),n=s("labelWrapCachedText",d.join(` +`)),s("labelWrapKey",u)}else if(o==="ellipsis"){var I=r.pstyle("text-max-width").pfValue,M="",N="\u2026",F=!1;if(this.calculateLabelDimensions(r,n).widthI)break;M+=n[_],_===n.length-1&&(F=!0)}return F||(M+=N),M}return n};Hr.getLabelJustification=function(r){var e=r.pstyle("text-justification").strValue,t=r.pstyle("text-halign").strValue;return e==="auto"?r.isNode()?Ug(t):"center":e};Hr.calculateLabelDimensions=function(r,e){var t=this,a=t.cy.window(),n=a.document,i=0,s=r.pstyle("font-style").strValue,o=r.pstyle("font-size").pfValue,u=r.pstyle("font-family").strValue,l=r.pstyle("font-weight").strValue,v=r.pstyle("text-metrics").strValue||"font",f=this.labelCalcCanvas,c=this.labelCalcCanvasContext;if(!f){f=this.labelCalcCanvas=n.createElement("canvas"),c=this.labelCalcCanvasContext=f.getContext("2d");var h=f.style;h.position="absolute",h.left="-9999px",h.top="-9999px",h.zIndex="-1",h.visibility="hidden",h.pointerEvents="none"}c.font="".concat(s," ").concat(l," ").concat(o,"px ").concat(u);for(var d=0,y=0,g=e.split(` +`),p=g.length,m=0,b=0,w=0;w1&&arguments[1]!==void 0?arguments[1]:!0;if(e.merge(s),o)for(var u=0;u=r.desktopTapThreshold2}var fr=i(S);rr&&(r.hoverData.tapholdCancelled=!0);var Ar=function(){var kr=r.hoverData.dragDelta=r.hoverData.dragDelta||[];kr.length===0?(kr.push(ke[0]),kr.push(ke[1])):(kr[0]+=ke[0],kr[1]+=ke[1])};W=!0,n(Ce,["mousemove","vmousemove","tapdrag"],S,{x:re[0],y:re[1]});var $e=function(kr){return{originalEvent:S,type:kr,position:{x:re[0],y:re[1]}}},Sr=function(){r.data.bgActivePosistion=void 0,r.hoverData.selecting||G.emit($e("boxstart")),fe[4]=1,r.hoverData.selecting=!0,r.redrawHint("select",!0),r.redraw()};if(r.hoverData.which===3){if(rr){var Rr=$e("cxtdrag");ce?ce.emit(Rr):G.emit(Rr),r.hoverData.cxtDragged=!0,(!r.hoverData.cxtOver||Ce!==r.hoverData.cxtOver)&&(r.hoverData.cxtOver&&r.hoverData.cxtOver.emit($e("cxtdragout")),r.hoverData.cxtOver=Ce,Ce&&Ce.emit($e("cxtdragover")))}}else if(r.hoverData.dragging){if(W=!0,G.panningEnabled()&&G.userPanningEnabled()){var Qr;if(r.hoverData.justStartedPan){var Lt=r.hoverData.mdownPos;Qr={x:(re[0]-Lt[0])*U,y:(re[1]-Lt[1])*U},r.hoverData.justStartedPan=!1}else Qr={x:ke[0]*U,y:ke[1]*U};G.panBy(Qr),G.emit($e("dragpan")),r.hoverData.dragged=!0}re=r.projectIntoViewport(S.clientX,S.clientY)}else if(fe[4]==1&&(ce==null||ce.pannable())){if(rr){if(!r.hoverData.dragging&&G.boxSelectionEnabled()&&(fr||!G.panningEnabled()||!G.userPanningEnabled()))Sr();else if(!r.hoverData.selecting&&G.panningEnabled()&&G.userPanningEnabled()){var yt=s(ce,r.hoverData.downs);yt&&(r.hoverData.dragging=!0,r.hoverData.justStartedPan=!0,fe[4]=0,r.data.bgActivePosistion=Gt(oe),r.redrawHint("select",!0),r.redraw())}ce&&ce.pannable()&&ce.active()&&ce.unactivate()}}else{if(ce&&ce.pannable()&&ce.active()&&ce.unactivate(),(!ce||!ce.grabbed())&&Ce!=xe&&(xe&&n(xe,["mouseout","tapdragout"],S,{x:re[0],y:re[1]}),Ce&&n(Ce,["mouseover","tapdragover"],S,{x:re[0],y:re[1]}),r.hoverData.last=Ce),ce)if(rr){if(G.boxSelectionEnabled()&&fr)ce&&ce.grabbed()&&(y(Pe),ce.emit($e("freeon")),Pe.emit($e("free")),r.dragData.didDrag&&(ce.emit($e("dragfreeon")),Pe.emit($e("dragfree")))),Sr();else if(ce&&ce.grabbed()&&r.nodeIsDraggable(ce)){var wr=!r.dragData.didDrag;wr&&r.redrawHint("eles",!0),r.dragData.didDrag=!0,r.hoverData.draggingEles||h(Pe,{inDragLayer:!0});var ar={x:0,y:0};if(ae(ke[0])&&ae(ke[1])&&(ar.x+=ke[0],ar.y+=ke[1],wr)){var xr=r.hoverData.dragDelta;xr&&ae(xr[0])&&ae(xr[1])&&(ar.x+=xr[0],ar.y+=xr[1])}r.hoverData.draggingEles=!0,Pe.silentShift(ar).emit($e("position")).emit($e("drag")),r.redrawHint("drag",!0),r.redraw()}}else Ar();W=!0}if(fe[2]=re[0],fe[3]=re[1],W)return S.stopPropagation&&S.stopPropagation(),S.preventDefault&&S.preventDefault(),!1}},!1);var B,D,P;r.registerBinding(e,"mouseup",function(S){if(!(r.hoverData.which===1&&S.which!==1&&r.hoverData.capture)){var O=r.hoverData.capture;if(O){r.hoverData.capture=!1;var W=r.cy,G=r.projectIntoViewport(S.clientX,S.clientY),U=r.selection,ue=r.findNearestElement(G[0],G[1],!0,!1),re=r.dragData.possibleDragElements,oe=r.hoverData.down,ie=i(S);r.data.bgActivePosistion&&(r.redrawHint("select",!0),r.redraw()),r.hoverData.tapholdCancelled=!0,r.data.bgActivePosistion=void 0,oe&&oe.unactivate();var fe=function(tr){return{originalEvent:S,type:tr,position:{x:G[0],y:G[1]}}};if(r.hoverData.which===3){var Ce=fe("cxttapend");if(oe?oe.emit(Ce):W.emit(Ce),!r.hoverData.cxtDragged){var xe=fe("cxttap");oe?oe.emit(xe):W.emit(xe)}r.hoverData.cxtDragged=!1,r.hoverData.which=null}else if(r.hoverData.which===1){if(n(ue,["mouseup","tapend","vmouseup"],S,{x:G[0],y:G[1]}),!r.dragData.didDrag&&!r.hoverData.dragged&&!r.hoverData.selecting&&!r.hoverData.isOverThresholdDrag&&(n(oe,["click","tap","vclick"],S,{x:G[0],y:G[1]}),D=!1,S.timeStamp-P<=W.multiClickDebounceTime()?(B&&clearTimeout(B),D=!0,P=null,n(oe,["dblclick","dbltap","vdblclick"],S,{x:G[0],y:G[1]})):(B=setTimeout(function(){D||n(oe,["oneclick","onetap","voneclick"],S,{x:G[0],y:G[1]})},W.multiClickDebounceTime()),P=S.timeStamp)),oe==null&&!r.dragData.didDrag&&!r.hoverData.selecting&&!r.hoverData.dragged&&!i(S)&&(W.$(t).unselect(["tapunselect"]),re.length>0&&r.redrawHint("eles",!0),r.dragData.possibleDragElements=re=W.collection()),ue==oe&&!r.dragData.didDrag&&!r.hoverData.selecting&&ue!=null&&ue._private.selectable&&(r.hoverData.dragging||(W.selectionType()==="additive"||ie?ue.selected()?ue.unselect(["tapunselect"]):ue.select(["tapselect"]):ie||(W.$(t).unmerge(ue).unselect(["tapunselect"]),ue.select(["tapselect"]))),r.redrawHint("eles",!0)),r.hoverData.selecting){var ce=W.collection(r.getAllInBox(U[0],U[1],U[2],U[3]));r.redrawHint("select",!0),ce.length>0&&r.redrawHint("eles",!0),W.emit(fe("boxend"));var ke=function(tr){return tr.selectable()&&!tr.selected()};W.selectionType()==="additive"||ie||W.$(t).unmerge(ce).unselect(),ce.emit(fe("box")).stdFilter(ke).select().emit(fe("boxselect")),r.redraw()}if(r.hoverData.dragging&&(r.hoverData.dragging=!1,r.redrawHint("select",!0),r.redrawHint("eles",!0),r.redraw()),!U[4]){r.redrawHint("drag",!0),r.redrawHint("eles",!0);var Pe=oe&&oe.grabbed();y(re),Pe&&(oe.emit(fe("freeon")),re.emit(fe("free")),r.dragData.didDrag&&(oe.emit(fe("dragfreeon")),re.emit(fe("dragfree"))))}}U[4]=0,r.hoverData.down=null,r.hoverData.cxtStarted=!1,r.hoverData.draggingEles=!1,r.hoverData.selecting=!1,r.hoverData.isOverThresholdDrag=!1,r.dragData.didDrag=!1,r.hoverData.dragged=!1,r.hoverData.dragDelta=[],r.hoverData.mdownPos=null,r.hoverData.mdownGPos=null,r.hoverData.which=null}}},!1);var A=[],R=4,L,I=1e5,M=function(S){for(var O=Math.abs(S[0]),W=1;W=R){L=!1;var G=A;if(G[0]>=5){var U;M(G)?U=G[0]:U=Cd(G),U>1&&(L=!0,I=U)}}else A.push(Math.abs(W)),O=!0;else L&&(I=Math.min(Math.abs(W),I));if(!r.scrollingPage){var ue=r.cy,re=ue.zoom(),oe=ue.pan(),ie=r.projectIntoViewport(S.clientX,S.clientY),fe=[ie[0]*re+oe.x,ie[1]*re+oe.y];if(r.hoverData.draggingEles||r.hoverData.dragging||r.hoverData.cxtStarted||x()){S.preventDefault();return}if(ue.panningEnabled()&&ue.userPanningEnabled()&&ue.zoomingEnabled()&&ue.userZoomingEnabled()){S.preventDefault(),r.data.wheelZooming=!0,clearTimeout(r.data.wheelTimeout),r.data.wheelTimeout=setTimeout(function(){r.data.wheelZooming=!1,r.redrawHint("eles",!0),r.redraw()},150);var Ce;O&&Math.abs(W)>5&&(W=ro(W)*5),Ce=W/-250,L&&(Ce/=I,Ce*=3),Ce=Ce*r.wheelSensitivity;var xe=S.deltaMode===1;xe&&(Ce*=33);var ce=ue.zoom()*Math.pow(10,Ce);S.type==="gesturechange"&&(ce=r.gestureStartZoom*S.scale),ue.zoom({level:ce,renderedPosition:{x:fe[0],y:fe[1]}}),ue.emit({type:S.type==="gesturechange"?"pinchzoom":"scrollzoom",originalEvent:S,position:{x:ie[0],y:ie[1]}})}}}};r.registerBinding(r.container,"wheel",N,!0),r.registerBinding(e,"scroll",function(S){r.scrollingPage=!0,clearTimeout(r.scrollingPageTimeout),r.scrollingPageTimeout=setTimeout(function(){r.scrollingPage=!1},250)},!0),r.registerBinding(r.container,"gesturestart",function(S){r.gestureStartZoom=r.cy.zoom(),r.hasTouchStarted||S.preventDefault()},!0),r.registerBinding(r.container,"gesturechange",function(ee){r.hasTouchStarted||N(ee)},!0),r.registerBinding(r.container,"mouseout",function(S){var O=r.projectIntoViewport(S.clientX,S.clientY);r.cy.emit({originalEvent:S,type:"mouseout",position:{x:O[0],y:O[1]}})},!1),r.registerBinding(r.container,"mouseover",function(S){var O=r.projectIntoViewport(S.clientX,S.clientY);r.cy.emit({originalEvent:S,type:"mouseover",position:{x:O[0],y:O[1]}})},!1);var F,_,z,q,Z,Q,X,J,j,ne,Y,V,H,$=function(S,O,W,G){return Math.sqrt((W-S)*(W-S)+(G-O)*(G-O))},K=function(S,O,W,G){return(W-S)*(W-S)+(G-O)*(G-O)},te;r.registerBinding(r.container,"touchstart",te=function(S){if(r.hasTouchStarted=!0,!!T(S)){p(),r.touchData.capture=!0,r.data.bgActivePosistion=void 0;var O=r.cy,W=r.touchData.now,G=r.touchData.earlier;if(S.touches[0]){var U=r.projectIntoViewport(S.touches[0].clientX,S.touches[0].clientY);W[0]=U[0],W[1]=U[1]}if(S.touches[1]){var U=r.projectIntoViewport(S.touches[1].clientX,S.touches[1].clientY);W[2]=U[0],W[3]=U[1]}if(S.touches[2]){var U=r.projectIntoViewport(S.touches[2].clientX,S.touches[2].clientY);W[4]=U[0],W[5]=U[1]}var ue=function(fr){return{originalEvent:S,type:fr,position:{x:W[0],y:W[1]}}};if(S.touches[1]){r.touchData.singleTouchMoved=!0,y(r.dragData.touchDragEles);var re=r.findContainerClientCoords();j=re[0],ne=re[1],Y=re[2],V=re[3],F=S.touches[0].clientX-j,_=S.touches[0].clientY-ne,z=S.touches[1].clientX-j,q=S.touches[1].clientY-ne,H=0<=F&&F<=Y&&0<=z&&z<=Y&&0<=_&&_<=V&&0<=q&&q<=V;var oe=O.pan(),ie=O.zoom();Z=$(F,_,z,q),Q=K(F,_,z,q),X=[(F+z)/2,(_+q)/2],J=[(X[0]-oe.x)/ie,(X[1]-oe.y)/ie];var fe=200,Ce=fe*fe;if(Q=1){for(var br=r.touchData.startPosition=[null,null,null,null,null,null],Ye=0;Ye=r.touchTapThreshold2}if(O&&r.touchData.cxt){S.preventDefault();var Ye=S.touches[0].clientX-j,Ze=S.touches[0].clientY-ne,We=S.touches[1].clientX-j,fr=S.touches[1].clientY-ne,Ar=K(Ye,Ze,We,fr),$e=Ar/Q,Sr=150,Rr=Sr*Sr,Qr=1.5,Lt=Qr*Qr;if($e>=Lt||Ar>=Rr){r.touchData.cxt=!1,r.data.bgActivePosistion=void 0,r.redrawHint("select",!0);var yt=ie("cxttapend");r.touchData.start?(r.touchData.start.unactivate().emit(yt),r.touchData.start=null):G.emit(yt)}}if(O&&r.touchData.cxt){var yt=ie("cxtdrag");r.data.bgActivePosistion=void 0,r.redrawHint("select",!0),r.touchData.start?r.touchData.start.emit(yt):G.emit(yt),r.touchData.start&&(r.touchData.start._private.grabbed=!1),r.touchData.cxtDragged=!0;var wr=r.findNearestElement(U[0],U[1],!0,!0);(!r.touchData.cxtOver||wr!==r.touchData.cxtOver)&&(r.touchData.cxtOver&&r.touchData.cxtOver.emit(ie("cxtdragout")),r.touchData.cxtOver=wr,wr&&wr.emit(ie("cxtdragover")))}else if(O&&S.touches[2]&&G.boxSelectionEnabled())S.preventDefault(),r.data.bgActivePosistion=void 0,this.lastThreeTouch=+new Date,r.touchData.selecting||G.emit(ie("boxstart")),r.touchData.selecting=!0,r.touchData.didSelect=!0,W[4]=1,!W||W.length===0||W[0]===void 0?(W[0]=(U[0]+U[2]+U[4])/3,W[1]=(U[1]+U[3]+U[5])/3,W[2]=(U[0]+U[2]+U[4])/3+1,W[3]=(U[1]+U[3]+U[5])/3+1):(W[2]=(U[0]+U[2]+U[4])/3,W[3]=(U[1]+U[3]+U[5])/3),r.redrawHint("select",!0),r.redraw();else if(O&&S.touches[1]&&!r.touchData.didSelect&&G.zoomingEnabled()&&G.panningEnabled()&&G.userZoomingEnabled()&&G.userPanningEnabled()){S.preventDefault(),r.data.bgActivePosistion=void 0,r.redrawHint("select",!0);var ar=r.dragData.touchDragEles;if(ar){r.redrawHint("drag",!0);for(var xr=0;xr0&&!r.hoverData.draggingEles&&!r.swipePanning&&r.data.bgActivePosistion!=null&&(r.data.bgActivePosistion=void 0,r.redrawHint("select",!0),r.redraw())}},!1);var De;r.registerBinding(e,"touchcancel",De=function(S){var O=r.touchData.start;r.touchData.capture=!1,O&&O.unactivate()});var we,ye,pe,se;if(r.registerBinding(e,"touchend",we=function(S){var O=r.touchData.start,W=r.touchData.capture;if(W)S.touches.length===0&&(r.touchData.capture=!1),S.preventDefault();else return;var G=r.selection;r.swipePanning=!1,r.hoverData.draggingEles=!1;var U=r.cy,ue=U.zoom(),re=r.touchData.now,oe=r.touchData.earlier;if(S.touches[0]){var ie=r.projectIntoViewport(S.touches[0].clientX,S.touches[0].clientY);re[0]=ie[0],re[1]=ie[1]}if(S.touches[1]){var ie=r.projectIntoViewport(S.touches[1].clientX,S.touches[1].clientY);re[2]=ie[0],re[3]=ie[1]}if(S.touches[2]){var ie=r.projectIntoViewport(S.touches[2].clientX,S.touches[2].clientY);re[4]=ie[0],re[5]=ie[1]}var fe=function(Rr){return{originalEvent:S,type:Rr,position:{x:re[0],y:re[1]}}};O&&O.unactivate();var Ce;if(r.touchData.cxt){if(Ce=fe("cxttapend"),O?O.emit(Ce):U.emit(Ce),!r.touchData.cxtDragged){var xe=fe("cxttap");O?O.emit(xe):U.emit(xe)}r.touchData.start&&(r.touchData.start._private.grabbed=!1),r.touchData.cxt=!1,r.touchData.start=null,r.redraw();return}if(!S.touches[2]&&U.boxSelectionEnabled()&&r.touchData.selecting){r.touchData.selecting=!1;var ce=U.collection(r.getAllInBox(G[0],G[1],G[2],G[3]));G[0]=void 0,G[1]=void 0,G[2]=void 0,G[3]=void 0,G[4]=0,r.redrawHint("select",!0),U.emit(fe("boxend"));var ke=function(Rr){return Rr.selectable()&&!Rr.selected()};ce.emit(fe("box")).stdFilter(ke).select().emit(fe("boxselect")),ce.nonempty()&&r.redrawHint("eles",!0),r.redraw()}if(O?.unactivate(),S.touches[2])r.data.bgActivePosistion=void 0,r.redrawHint("select",!0);else if(!S.touches[1]){if(!S.touches[0]){if(!S.touches[0]){r.data.bgActivePosistion=void 0,r.redrawHint("select",!0);var Pe=r.dragData.touchDragEles;if(O!=null){var rr=O._private.grabbed;y(Pe),r.redrawHint("drag",!0),r.redrawHint("eles",!0),rr&&(O.emit(fe("freeon")),Pe.emit(fe("free")),r.dragData.didDrag&&(O.emit(fe("dragfreeon")),Pe.emit(fe("dragfree")))),n(O,["touchend","tapend","vmouseup","tapdragout"],S,{x:re[0],y:re[1]}),O.unactivate(),r.touchData.start=null}else{var tr=r.findNearestElement(re[0],re[1],!0,!0);n(tr,["touchend","tapend","vmouseup","tapdragout"],S,{x:re[0],y:re[1]})}var br=r.touchData.startPosition[0]-re[0],Ye=br*br,Ze=r.touchData.startPosition[1]-re[1],We=Ze*Ze,fr=Ye+We,Ar=fr*ue*ue;r.touchData.singleTouchMoved||(O||U.$(":selected").unselect(["tapunselect"]),n(O,["tap","vclick"],S,{x:re[0],y:re[1]}),ye=!1,S.timeStamp-se<=U.multiClickDebounceTime()?(pe&&clearTimeout(pe),ye=!0,se=null,n(O,["dbltap","vdblclick"],S,{x:re[0],y:re[1]})):(pe=setTimeout(function(){ye||n(O,["onetap","voneclick"],S,{x:re[0],y:re[1]})},U.multiClickDebounceTime()),se=S.timeStamp)),O!=null&&!r.dragData.didDrag&&O._private.selectable&&Ar"u"){var de=[],ge=function(S){return{clientX:S.clientX,clientY:S.clientY,force:1,identifier:S.pointerId,pageX:S.pageX,pageY:S.pageY,radiusX:S.width/2,radiusY:S.height/2,screenX:S.screenX,screenY:S.screenY,target:S.target}},Ee=function(S){return{event:S,touch:ge(S)}},be=function(S){de.push(Ee(S))},Te=function(S){for(var O=0;O0)return q[0]}return null},d=Object.keys(c),y=0;y0?h:xv(i,s,e,t,a,n,o,u)},checkPoint:function(e,t,a,n,i,s,o,u){u=u==="auto"?ut(n,i):u;var l=2*u;if(Xr(e,t,this.points,s,o,n,i-l,[0,-1],a)||Xr(e,t,this.points,s,o,n-l,i,[0,-1],a))return!0;var v=n/2+2*a,f=i/2+2*a,c=[s-v,o-f,s-v,o,s+v,o,s+v,o-f];return!!(Er(e,t,c)||St(e,t,l,l,s+n/2-u,o+i/2-u,a)||St(e,t,l,l,s-n/2+u,o+i/2-u,a))}}};Yr.registerNodeShapes=function(){var r=this.nodeShapes={},e=this;this.generateEllipse(),this.generatePolygon("triangle",gr(3,0)),this.generateRoundPolygon("round-triangle",gr(3,0)),this.generatePolygon("rectangle",gr(4,0)),r.square=r.rectangle,this.generateRoundRectangle(),this.generateCutRectangle(),this.generateBarrel(),this.generateBottomRoundrectangle();{var t=[0,1,1,0,0,-1,-1,0];this.generatePolygon("diamond",t),this.generateRoundPolygon("round-diamond",t)}this.generatePolygon("pentagon",gr(5,0)),this.generateRoundPolygon("round-pentagon",gr(5,0)),this.generatePolygon("hexagon",gr(6,0)),this.generateRoundPolygon("round-hexagon",gr(6,0)),this.generatePolygon("heptagon",gr(7,0)),this.generateRoundPolygon("round-heptagon",gr(7,0)),this.generatePolygon("octagon",gr(8,0)),this.generateRoundPolygon("round-octagon",gr(8,0));var a=new Array(20);{var n=Bs(5,0),i=Bs(5,Math.PI/5),s=.5*(3-Math.sqrt(5));s*=1.57;for(var o=0;o=e.deqFastCost*w)break}else if(l){if(m>=e.deqCost*h||m>=e.deqAvgCost*c)break}else if(b>=e.deqNoDrawCost*bs)break;var E=e.deq(a,g,y);if(E.length>0)for(var C=0;C0&&(e.onDeqd(a,d),!l&&e.shouldRedraw(a,d,g,y)&&i())},o=e.priority||Js;n.beforeRender(s,o(a))}}}},ly=(function(){function r(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:wn;ct(this,r),this.idsByKey=new Ur,this.keyForId=new Ur,this.cachesByLvl=new Ur,this.lvls=[],this.getKey=e,this.doesEleInvalidateKey=t}return dt(r,[{key:"getIdsFor",value:function(t){t==null&&Ge("Can not get id list for null key");var a=this.idsByKey,n=this.idsByKey.get(t);return n||(n=new ra,a.set(t,n)),n}},{key:"addIdForKey",value:function(t,a){t!=null&&this.getIdsFor(t).add(a)}},{key:"deleteIdForKey",value:function(t,a){t!=null&&this.getIdsFor(t).delete(a)}},{key:"getNumberOfIdsForKey",value:function(t){return t==null?0:this.getIdsFor(t).size}},{key:"updateKeyMappingFor",value:function(t){var a=t.id(),n=this.keyForId.get(a),i=this.getKey(t);this.deleteIdForKey(n,a),this.addIdForKey(i,a),this.keyForId.set(a,i)}},{key:"deleteKeyMappingFor",value:function(t){var a=t.id(),n=this.keyForId.get(a);this.deleteIdForKey(n,a),this.keyForId.delete(a)}},{key:"keyHasChangedFor",value:function(t){var a=t.id(),n=this.keyForId.get(a),i=this.getKey(t);return n!==i}},{key:"isInvalid",value:function(t){return this.keyHasChangedFor(t)||this.doesEleInvalidateKey(t)}},{key:"getCachesAt",value:function(t){var a=this.cachesByLvl,n=this.lvls,i=a.get(t);return i||(i=new Ur,a.set(t,i),n.push(t)),i}},{key:"getCache",value:function(t,a){return this.getCachesAt(a).get(t)}},{key:"get",value:function(t,a){var n=this.getKey(t),i=this.getCache(n,a);return i!=null&&this.updateKeyMappingFor(t),i}},{key:"getForCachedKey",value:function(t,a){var n=this.keyForId.get(t.id()),i=this.getCache(n,a);return i}},{key:"hasCache",value:function(t,a){return this.getCachesAt(a).has(t)}},{key:"has",value:function(t,a){var n=this.getKey(t);return this.hasCache(n,a)}},{key:"setCache",value:function(t,a,n){n.key=t,this.getCachesAt(a).set(t,n)}},{key:"set",value:function(t,a,n){var i=this.getKey(t);this.setCache(i,a,n),this.updateKeyMappingFor(t)}},{key:"deleteCache",value:function(t,a){this.getCachesAt(a).delete(t)}},{key:"delete",value:function(t,a){var n=this.getKey(t);this.deleteCache(n,a)}},{key:"invalidateKey",value:function(t){var a=this;this.lvls.forEach(function(n){return a.deleteCache(t,n)})}},{key:"invalidate",value:function(t){var a=t.id(),n=this.keyForId.get(a);this.deleteKeyMappingFor(t);var i=this.doesEleInvalidateKey(t);return i&&this.invalidateKey(n),i||this.getNumberOfIdsForKey(n)===0}}])})(),Ol=25,an=50,gn=-4,Gs=3,Df=7.99,vy=8,fy=1024,cy=1024,dy=1024,hy=.2,gy=.8,py=10,yy=.15,my=.1,by=.9,wy=.9,xy=100,Ey=1,Wt={dequeue:"dequeue",downscale:"downscale",highQuality:"highQuality"},Cy=lr({getKey:null,doesEleInvalidateKey:wn,drawElement:null,getBoundingBox:null,getRotationPoint:null,getRotationOffset:null,isVisible:dv,allowEdgeTxrCaching:!0,allowParentTxrCaching:!0}),ba=function(e,t){var a=this;a.renderer=e,a.onDequeues=[];var n=Cy(t);me(a,n),a.lookup=new ly(n.getKey,n.doesEleInvalidateKey),a.setupDequeueing()},er=ba.prototype;er.reasons=Wt;er.getTextureQueue=function(r){var e=this;return e.eleImgCaches=e.eleImgCaches||{},e.eleImgCaches[r]=e.eleImgCaches[r]||[]};er.getRetiredTextureQueue=function(r){var e=this,t=e.eleImgCaches.retired=e.eleImgCaches.retired||{},a=t[r]=t[r]||[];return a};er.getElementQueue=function(){var r=this,e=r.eleCacheQueue=r.eleCacheQueue||new Va(function(t,a){return a.reqs-t.reqs});return e};er.getElementKeyToQueue=function(){var r=this,e=r.eleKeyToCacheQueue=r.eleKeyToCacheQueue||{};return e};er.getElement=function(r,e,t,a,n){var i=this,s=this.renderer,o=s.cy.zoom(),u=this.lookup;if(!e||e.w===0||e.h===0||isNaN(e.w)||isNaN(e.h)||!r.visible()||r.removed()||!i.allowEdgeTxrCaching&&r.isEdge()||!i.allowParentTxrCaching&&r.isParent())return null;if(a==null&&(a=Math.ceil(eo(o*t))),a=Df||a>Gs)return null;var l=Math.pow(2,a),v=e.h*l,f=e.w*l,c=s.eleTextBiggerThanMin(r,l);if(!this.isVisible(r,c))return null;var h=u.get(r,a);if(h&&h.invalidated&&(h.invalidated=!1,h.texture.invalidatedWidth-=h.width),h)return h;var d;if(v<=Ol?d=Ol:v<=an?d=an:d=Math.ceil(v/an)*an,v>dy||f>cy)return null;var y=i.getTextureQueue(d),g=y[y.length-2],p=function(){return i.recycleTexture(d,f)||i.addTexture(d,f)};g||(g=y[y.length-1]),g||(g=p()),g.width-g.usedWidtha;D--)k=i.getElement(r,e,t,D,Wt.downscale);B()}else return i.queueElement(r,C.level-1),C;else{var P;if(!b&&!w&&!E)for(var A=a-1;A>=gn;A--){var R=u.get(r,A);if(R){P=R;break}}if(m(P))return i.queueElement(r,a),P;g.context.translate(g.usedWidth,0),g.context.scale(l,l),this.drawElement(g.context,r,e,c,!1),g.context.scale(1/l,1/l),g.context.translate(-g.usedWidth,0)}return h={x:g.usedWidth,texture:g,level:a,scale:l,width:f,height:v,scaledLabelShown:c},g.usedWidth+=Math.ceil(f+vy),g.eleCaches.push(h),u.set(r,a,h),i.checkTextureFullness(g),h};er.invalidateElements=function(r){for(var e=0;e=hy*r.width&&this.retireTexture(r)};er.checkTextureFullness=function(r){var e=this,t=e.getTextureQueue(r.height);r.usedWidth/r.width>gy&&r.fullnessChecks>=py?ot(t,r):r.fullnessChecks++};er.retireTexture=function(r){var e=this,t=r.height,a=e.getTextureQueue(t),n=this.lookup;ot(a,r),r.retired=!0;for(var i=r.eleCaches,s=0;s=e)return s.retired=!1,s.usedWidth=0,s.invalidatedWidth=0,s.fullnessChecks=0,js(s.eleCaches),s.context.setTransform(1,0,0,1,0,0),s.context.clearRect(0,0,s.width,s.height),ot(n,s),a.push(s),s}};er.queueElement=function(r,e){var t=this,a=t.getElementQueue(),n=t.getElementKeyToQueue(),i=this.getKey(r),s=n[i];if(s)s.level=Math.max(s.level,e),s.eles.merge(r),s.reqs++,a.updateItem(s);else{var o={eles:r.spawn().merge(r),level:e,reqs:1,key:i};a.push(o),n[i]=o}};er.dequeue=function(r){for(var e=this,t=e.getElementQueue(),a=e.getElementKeyToQueue(),n=[],i=e.lookup,s=0;s0;s++){var o=t.pop(),u=o.key,l=o.eles[0],v=i.hasCache(l,o.level);if(a[u]=null,v)continue;n.push(o);var f=e.getBoundingBox(l);e.getElement(l,f,r,o.level,Wt.dequeue)}return n};er.removeFromQueue=function(r){var e=this,t=e.getElementQueue(),a=e.getElementKeyToQueue(),n=this.getKey(r),i=a[n];i!=null&&(i.eles.length===1?(i.reqs=Qs,t.updateItem(i),t.pop(),a[n]=null):i.eles.unmerge(r))};er.onDequeue=function(r){this.onDequeues.push(r)};er.offDequeue=function(r){ot(this.onDequeues,r)};er.setupDequeueing=kf.setupDequeueing({deqRedrawThreshold:xy,deqCost:yy,deqAvgCost:my,deqNoDrawCost:by,deqFastCost:wy,deq:function(e,t,a){return e.dequeue(t,a)},onDeqd:function(e,t){for(var a=0;a=Sy||t>Bn)return null}a.validateLayersElesOrdering(t,r);var u=a.layersByLevel,l=Math.pow(2,t),v=u[t]=u[t]||[],f,c=a.levelIsComplete(t,r),h,d=function(){var B=function(L){if(a.validateLayersElesOrdering(L,r),a.levelIsComplete(L,r))return h=u[L],!0},D=function(L){if(!h)for(var I=t+L;xa<=I&&I<=Bn&&!B(I);I+=L);};D(1),D(-1);for(var P=v.length-1;P>=0;P--){var A=v[P];A.invalid&&ot(v,A)}};if(!c)d();else return v;var y=function(){if(!f){f=yr();for(var B=0;Bzl||A>zl)return null;var R=P*A;if(R>Ly)return null;var L=a.makeLayer(f,t);if(D!=null){var I=v.indexOf(D)+1;v.splice(I,0,L)}else(B.insert===void 0||B.insert)&&v.unshift(L);return L};if(a.skipping&&!o)return null;for(var p=null,m=r.length/Ty,b=!o,w=0;w=m||!wv(p.bb,E.boundingBox()))&&(p=g({insert:!0,after:p}),!p))return null;h||b?a.queueLayer(p,E):a.drawEleInLayer(p,E,t,e),p.eles.push(E),x[t]=p}return h||(b?null:v)};vr.getEleLevelForLayerLevel=function(r,e){return r};vr.drawEleInLayer=function(r,e,t,a){var n=this,i=this.renderer,s=r.context,o=e.boundingBox();o.w===0||o.h===0||!e.visible()||(t=n.getEleLevelForLayerLevel(t,a),i.setImgSmoothing(s,!1),i.drawCachedElement(s,e,null,null,t,Iy),i.setImgSmoothing(s,!0))};vr.levelIsComplete=function(r,e){var t=this,a=t.layersByLevel[r];if(!a||a.length===0)return!1;for(var n=0,i=0;i0||s.invalid)return!1;n+=s.eles.length}return n===e.length};vr.validateLayersElesOrdering=function(r,e){var t=this.layersByLevel[r];if(t)for(var a=0;a0){e=!0;break}}return e};vr.invalidateElements=function(r){var e=this;r.length!==0&&(e.lastInvalidationTime=Kr(),!(r.length===0||!e.haveLayers())&&e.updateElementsInLayers(r,function(a,n,i){e.invalidateLayer(a)}))};vr.invalidateLayer=function(r){if(this.lastInvalidationTime=Kr(),!r.invalid){var e=r.level,t=r.eles,a=this.layersByLevel[e];ot(a,r),r.elesQueue=[],r.invalid=!0,r.replacement&&(r.replacement.invalid=!0);for(var n=0;n3&&arguments[3]!==void 0?arguments[3]:!0,n=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,i=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!0,s=this,o=e._private.rscratch;if(!(i&&!e.visible())&&!(o.badLine||o.allpts==null||isNaN(o.allpts[0]))){var u;t&&(u=t,r.translate(-u.x1,-u.y1));var l=i?e.pstyle("opacity").value:1,v=i?e.pstyle("line-opacity").value:1,f=e.pstyle("curve-style").value,c=e.pstyle("line-style").value,h=e.pstyle("width").pfValue,d=e.pstyle("line-cap").value,y=e.pstyle("line-outline-width").value,g=e.pstyle("line-outline-color").value,p=l*v,m=l*v,b=function(){var L=arguments.length>0&&arguments[0]!==void 0?arguments[0]:p;f==="straight-triangle"?(s.eleStrokeStyle(r,e,L),s.drawEdgeTrianglePath(e,r,o.allpts)):(r.lineWidth=h,r.lineCap=d,s.eleStrokeStyle(r,e,L),s.drawEdgePath(e,r,o.allpts,c),r.lineCap="butt")},w=function(){var L=arguments.length>0&&arguments[0]!==void 0?arguments[0]:p;if(r.lineWidth=h+y,r.lineCap=d,y>0)s.colorStrokeStyle(r,g[0],g[1],g[2],L);else{r.lineCap="butt";return}f==="straight-triangle"?s.drawEdgeTrianglePath(e,r,o.allpts):(s.drawEdgePath(e,r,o.allpts,c),r.lineCap="butt")},E=function(){n&&s.drawEdgeOverlay(r,e)},C=function(){n&&s.drawEdgeUnderlay(r,e)},x=function(){var L=arguments.length>0&&arguments[0]!==void 0?arguments[0]:m;s.drawArrowheads(r,e,L)},T=function(){s.drawElementText(r,e,null,a)};r.lineJoin="round";var k=e.pstyle("ghost").value==="yes";if(k){var B=e.pstyle("ghost-offset-x").pfValue,D=e.pstyle("ghost-offset-y").pfValue,P=e.pstyle("ghost-opacity").value,A=p*P;r.translate(B,D),b(A),x(A),r.translate(-B,-D)}else w();C(),b(),x(),E(),T(),t&&r.translate(u.x1,u.y1)}};var Af=function(e){if(!["overlay","underlay"].includes(e))throw new Error("Invalid state");return function(t,a){if(a.visible()){var n=a.pstyle("".concat(e,"-opacity")).value;if(n!==0){var i=this,s=i.usePaths(),o=a._private.rscratch,u=a.pstyle("".concat(e,"-padding")).pfValue,l=2*u,v=a.pstyle("".concat(e,"-color")).value;t.lineWidth=l,o.edgeType==="self"&&!s?t.lineCap="butt":t.lineCap="round",i.colorStrokeStyle(t,v[0],v[1],v[2],n),i.drawEdgePath(a,t,o.allpts,"solid")}}}};Zr.drawEdgeOverlay=Af("overlay");Zr.drawEdgeUnderlay=Af("underlay");Zr.drawEdgePath=function(r,e,t,a){var n=r._private.rscratch,i=e,s,o=!1,u=this.usePaths(),l=r.pstyle("line-dash-pattern").pfValue,v=r.pstyle("line-dash-offset").pfValue;if(u){var f=t.join("$"),c=n.pathCacheKey&&n.pathCacheKey===f;c?(s=e=n.pathCache,o=!0):(s=e=new Path2D,n.pathCacheKey=f,n.pathCache=s)}if(i.setLineDash)switch(a){case"dotted":i.setLineDash([1,1]);break;case"dashed":i.setLineDash(l),i.lineDashOffset=v;break;case"solid":i.setLineDash([]);break}if(!o&&!n.badLine)switch(e.beginPath&&e.beginPath(),e.moveTo(t[0],t[1]),n.edgeType){case"bezier":case"self":case"compound":case"multibezier":for(var h=2;h+35&&arguments[5]!==void 0?arguments[5]:!0,s=this;if(a==null){if(i&&!s.eleTextBiggerThanMin(e))return}else if(a===!1)return;if(e.isNode()){var o=e.pstyle("label");if(!o||!o.value)return;var u=s.getLabelJustification(e),l=e.pstyle("text-metrics").strValue==="glyph";r.textAlign=u,r.textBaseline=l?"alphabetic":"bottom"}else{var v=e.element()._private.rscratch.badLine,f=e.pstyle("label"),c=e.pstyle("source-label"),h=e.pstyle("target-label");if(v||(!f||!f.value)&&(!c||!c.value)&&(!h||!h.value))return;r.textAlign="center",r.textBaseline="bottom"}var d=!t,y;t&&(y=t,r.translate(-y.x1,-y.y1)),n==null?(s.drawText(r,e,null,d,i),e.isEdge()&&(s.drawText(r,e,"source",d,i),s.drawText(r,e,"target",d,i))):s.drawText(r,e,n,d,i),t&&r.translate(y.x1,y.y1)};Mt.getFontCache=function(r){var e;this.fontCaches=this.fontCaches||[];for(var t=0;t2&&arguments[2]!==void 0?arguments[2]:!0,a=e.pstyle("font-style").strValue,n=e.pstyle("font-size").pfValue+"px",i=e.pstyle("font-family").strValue,s=e.pstyle("font-weight").strValue,o=t?e.effectiveOpacity()*e.pstyle("text-opacity").value:1,u=e.pstyle("text-outline-opacity").value*o,l=e.pstyle("color").value,v=e.pstyle("text-outline-color").value;r.font=a+" "+s+" "+n+" "+i,r.lineJoin="round",this.colorFillStyle(r,l[0],l[1],l[2],o),this.colorStrokeStyle(r,v[0],v[1],v[2],u)};function $y(r,e,t,a,n){var i=Math.min(a,n),s=i/2,o=e+a/2,u=t+n/2;r.beginPath(),r.arc(o,u,s,0,Math.PI*2),r.closePath()}function _l(r,e,t,a,n){var i=arguments.length>5&&arguments[5]!==void 0?arguments[5]:5,s=Math.min(i,a/2,n/2);r.beginPath(),r.moveTo(e+s,t),r.lineTo(e+a-s,t),r.quadraticCurveTo(e+a,t,e+a,t+s),r.lineTo(e+a,t+n-s),r.quadraticCurveTo(e+a,t+n,e+a-s,t+n),r.lineTo(e+s,t+n),r.quadraticCurveTo(e,t+n,e,t+n-s),r.lineTo(e,t+s),r.quadraticCurveTo(e,t,e+s,t),r.closePath()}Mt.getTextAngle=function(r,e){var t,a=r._private,n=a.rscratch,i=e?e+"-":"",s=r.pstyle(i+"text-rotation");if(s.strValue==="autorotate"){var o=pr(n,"labelAngle",e);t=r.isEdge()?o:0}else s.strValue==="none"?t=0:t=s.pfValue;return t};Mt.drawText=function(r,e,t){var a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0,n=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,i=e._private,s=i.rscratch,o=n?e.effectiveOpacity():1;if(!(n&&(o===0||e.pstyle("text-opacity").value===0))){t==="main"&&(t=null);var u=pr(s,"labelX",t),l=pr(s,"labelY",t),v,f,c=this.getLabelText(e,t);if(c!=null&&c!==""&&!isNaN(u)&&!isNaN(l)){this.setupTextStyle(r,e,n);var h=t?t+"-":"",d=pr(s,"labelWidth",t),y=pr(s,"labelHeight",t),g=pr(s,"labelActualDescent",t),p=e.pstyle(h+"text-margin-x").pfValue,m=e.pstyle(h+"text-margin-y").pfValue,b=e.isEdge(),w=e.pstyle("text-halign").value,E=e.pstyle("text-valign").value;b&&(w="center",E="center"),u+=p,l+=m;var C;a?C=this.getTextAngle(e,t):C=0,C!==0&&(v=u,f=l,r.translate(v,f),r.rotate(C),u=0,l=0);var x=Jt(w),T=jt(E);switch(T){case"top":break;case"center":l+=y/2;break;case"bottom":l+=y;break}var k=e.pstyle("text-background-opacity").value,B=e.pstyle("text-border-opacity").value,D=e.pstyle("text-border-width").pfValue,P=e.pstyle("text-background-padding").pfValue,A=e.pstyle("text-background-shape").strValue,R=A==="round-rectangle"||A==="roundrectangle",L=A==="circle",I=2;if(k>0||D>0&&B>0){var M=r.fillStyle,N=r.strokeStyle,F=r.lineWidth,_=e.pstyle("text-background-color").value,z=e.pstyle("text-border-color").value,q=e.pstyle("text-border-style").value,Z=k>0,Q=D>0&&B>0,X=u-P;switch(x){case"left":X-=d;break;case"center":X-=d/2;break}var J=l-y-P,j=d+2*P,ne=y+2*P;if(Z&&(r.fillStyle="rgba(".concat(_[0],",").concat(_[1],",").concat(_[2],",").concat(k*o,")")),Q&&(r.strokeStyle="rgba(".concat(z[0],",").concat(z[1],",").concat(z[2],",").concat(B*o,")"),r.lineWidth=D,r.setLineDash))switch(q){case"dotted":r.setLineDash([1,1]);break;case"dashed":r.setLineDash([4,2]);break;case"double":r.lineWidth=D/4,r.setLineDash([]);break;default:r.setLineDash([]);break}if(R?(r.beginPath(),_l(r,X,J,j,ne,I)):L?(r.beginPath(),$y(r,X,J,j,ne)):(r.beginPath(),r.rect(X,J,j,ne)),Z&&r.fill(),Q&&r.stroke(),Q&&q==="double"){var Y=D/2;r.beginPath(),R?_l(r,X+Y,J+Y,j-2*Y,ne-2*Y,I):r.rect(X+Y,J+Y,j-2*Y,ne-2*Y),r.stroke()}r.fillStyle=M,r.strokeStyle=N,r.lineWidth=F,r.setLineDash&&r.setLineDash([])}var V=2*e.pstyle("text-outline-width").pfValue;if(V>0&&(r.lineWidth=V),l-=g,e.pstyle("text-wrap").value==="wrap"){var H=pr(s,"labelWrapCachedLines",t),$=pr(s,"labelLineHeight",t),K=d/2,te=this.getLabelJustification(e);switch(te==="auto"||(x==="left"?te==="left"?u+=-d:te==="center"&&(u+=-K):x==="center"?te==="left"?u+=-K:te==="right"&&(u+=K):x==="right"&&(te==="center"?u+=K:te==="right"&&(u+=d))),T){case"top":l-=(H.length-1)*$;break;case"center":case"bottom":l-=(H.length-1)*$;break}for(var ve=0;ve0&&r.strokeText(H[ve],u,l),r.fillText(H[ve],u,l),l+=$}else V>0&&r.strokeText(c,u,l),r.fillText(c,u,l);C!==0&&(r.rotate(-C),r.translate(-v,-f))}}};var gt={};gt.drawNode=function(r,e,t){var a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0,n=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,i=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!0,s=this,o,u,l=e._private,v=l.rscratch,f=e.position();if(!(!ae(f.x)||!ae(f.y))&&!(i&&!e.visible())){var c=i?e.effectiveOpacity():1,h=s.usePaths(),d,y=!1,g=e.padding();o=e.width()+2*g,u=e.height()+2*g;var p;t&&(p=t,r.translate(-p.x1,-p.y1));for(var m=e.pstyle("background-image"),b=m.value,w=new Array(b.length),E=new Array(b.length),C=0,x=0;x0&&arguments[0]!==void 0?arguments[0]:A;s.eleFillStyle(r,e,O)},Y=function(){var O=arguments.length>0&&arguments[0]!==void 0?arguments[0]:z;s.colorStrokeStyle(r,R[0],R[1],R[2],O)},V=function(){var O=arguments.length>0&&arguments[0]!==void 0?arguments[0]:X;s.colorStrokeStyle(r,Z[0],Z[1],Z[2],O)},H=function(O,W,G,U){var ue=s.nodePathCache=s.nodePathCache||[],re=cv(G==="polygon"?G+","+U.join(","):G,""+W,""+O,""+j),oe=ue[re],ie,fe=!1;return oe!=null?(ie=oe,fe=!0,v.pathCache=ie):(ie=new Path2D,ue[re]=v.pathCache=ie),{path:ie,cacheHit:fe}},$=e.pstyle("shape").strValue,K=e.pstyle("shape-polygon-points").pfValue;if(h){r.translate(f.x,f.y);var te=H(o,u,$,K);d=te.path,y=te.cacheHit}var ve=function(){if(!y){var O=f;h&&(O={x:0,y:0}),s.nodeShapes[s.getNodeShape(e)].draw(d||r,O.x,O.y,o,u,j,v)}h?r.fill(d):r.fill()},De=function(){for(var O=arguments.length>0&&arguments[0]!==void 0?arguments[0]:c,W=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,G=l.backgrounding,U=0,ue=0;ue0&&arguments[0]!==void 0?arguments[0]:!1,W=arguments.length>1&&arguments[1]!==void 0?arguments[1]:c;s.hasPie(e)&&(s.drawPie(r,e,W),O&&(h||s.nodeShapes[s.getNodeShape(e)].draw(r,f.x,f.y,o,u,j,v)))},ye=function(){var O=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,W=arguments.length>1&&arguments[1]!==void 0?arguments[1]:c;s.hasStripe(e)&&(r.save(),h?r.clip(v.pathCache):(s.nodeShapes[s.getNodeShape(e)].draw(r,f.x,f.y,o,u,j,v),r.clip()),s.drawStripe(r,e,W),r.restore(),O&&(h||s.nodeShapes[s.getNodeShape(e)].draw(r,f.x,f.y,o,u,j,v)))},pe=function(){var O=arguments.length>0&&arguments[0]!==void 0?arguments[0]:c,W=(D>0?D:-D)*O,G=D>0?0:255;D!==0&&(s.colorFillStyle(r,G,G,G,W),h?r.fill(d):r.fill())},se=function(){if(P>0){if(r.lineWidth=P,r.lineCap=M,r.lineJoin=I,r.setLineDash)switch(L){case"dotted":r.setLineDash([1,1]);break;case"dashed":r.setLineDash(F),r.lineDashOffset=_;break;case"solid":case"double":r.setLineDash([]);break}if(N!=="center"){if(r.save(),r.lineWidth*=2,N==="inside")h?r.clip(d):r.clip();else{var O=new Path2D;O.rect(-o/2-P,-u/2-P,o+2*P,u+2*P),O.addPath(d),r.clip(O,"evenodd")}h?r.stroke(d):r.stroke(),r.restore()}else h?r.stroke(d):r.stroke();if(L==="double"){r.lineWidth=P/3;var W=r.globalCompositeOperation;r.globalCompositeOperation="destination-out",h?r.stroke(d):r.stroke(),r.globalCompositeOperation=W}r.setLineDash&&r.setLineDash([])}},de=function(){if(q>0){if(r.lineWidth=q,r.lineCap="butt",r.setLineDash)switch(Q){case"dotted":r.setLineDash([1,1]);break;case"dashed":r.setLineDash([4,2]);break;case"solid":case"double":r.setLineDash([]);break}var O=f;h&&(O={x:0,y:0});var W=s.getNodeShape(e),G=P;N==="inside"&&(G=0),N==="outside"&&(G*=2);var U=(o+G+(q+J))/o,ue=(u+G+(q+J))/u,re=o*U,oe=u*ue,ie=s.nodeShapes[W].points,fe;if(h){var Ce=H(re,oe,W,ie);fe=Ce.path}if(W==="ellipse")s.drawEllipsePath(fe||r,O.x,O.y,re,oe);else if(["round-diamond","round-heptagon","round-hexagon","round-octagon","round-pentagon","round-polygon","round-triangle","round-tag"].includes(W)){var xe=0,ce=0,ke=0;W==="round-diamond"?xe=(G+J+q)*1.4:W==="round-heptagon"?(xe=(G+J+q)*1.075,ke=-(G/2+J+q)/35):W==="round-hexagon"?xe=(G+J+q)*1.12:W==="round-pentagon"?(xe=(G+J+q)*1.13,ke=-(G/2+J+q)/15):W==="round-tag"?(xe=(G+J+q)*1.12,ce=(G/2+q+J)*.07):W==="round-triangle"&&(xe=(G+J+q)*(Math.PI/2),ke=-(G+J/2+q)/Math.PI),xe!==0&&(U=(o+xe)/o,re=o*U,["round-hexagon","round-tag"].includes(W)||(ue=(u+xe)/u,oe=u*ue)),j=j==="auto"?Cv(re,oe):j;for(var Pe=re/2,rr=oe/2,tr=j+(G+q+J)/2,br=new Array(ie.length/2),Ye=new Array(ie.length/2),Ze=0;Ze0){if(n=n||a.position(),i==null||s==null){var h=a.padding();i=a.width()+2*h,s=a.height()+2*h}o.colorFillStyle(t,v[0],v[1],v[2],l),o.nodeShapes[f].draw(t,n.x,n.y,i+u*2,s+u*2,c),t.fill()}}}};gt.drawNodeOverlay=Rf("overlay");gt.drawNodeUnderlay=Rf("underlay");gt.hasPie=function(r){return r=r[0],r._private.hasPie};gt.hasStripe=function(r){return r=r[0],r._private.hasStripe};gt.drawPie=function(r,e,t,a){e=e[0],a=a||e.position();var n=e.cy().style(),i=e.pstyle("pie-size"),s=e.pstyle("pie-hole"),o=e.pstyle("pie-start-angle").pfValue,u=a.x,l=a.y,v=e.width(),f=e.height(),c=Math.min(v,f)/2,h,d=0,y=this.usePaths();if(y&&(u=0,l=0),i.units==="%"?c=c*i.pfValue:i.pfValue!==void 0&&(c=i.pfValue/2),s.units==="%"?h=c*s.pfValue:s.pfValue!==void 0&&(h=s.pfValue/2),!(h>=c))for(var g=1;g<=n.pieBackgroundN;g++){var p=e.pstyle("pie-"+g+"-background-size").value,m=e.pstyle("pie-"+g+"-background-color").value,b=e.pstyle("pie-"+g+"-background-opacity").value*t,w=p/100;w+d>1&&(w=1-d);var E=1.5*Math.PI+2*Math.PI*d;E+=o;var C=2*Math.PI*w,x=E+C;p===0||d>=1||d+w>1||(h===0?(r.beginPath(),r.moveTo(u,l),r.arc(u,l,c,E,x),r.closePath()):(r.beginPath(),r.arc(u,l,c,E,x),r.arc(u,l,h,x,E,!0),r.closePath()),this.colorFillStyle(r,m[0],m[1],m[2],b),r.fill(),d+=w)}};gt.drawStripe=function(r,e,t,a){e=e[0],a=a||e.position();var n=e.cy().style(),i=a.x,s=a.y,o=e.width(),u=e.height(),l=0,v=this.usePaths();r.save();var f=e.pstyle("stripe-direction").value,c=e.pstyle("stripe-size");switch(f){case"vertical":break;case"righward":r.rotate(-Math.PI/2);break}var h=o,d=u;c.units==="%"?(h=h*c.pfValue,d=d*c.pfValue):c.pfValue!==void 0&&(h=c.pfValue,d=c.pfValue),v&&(i=0,s=0),s-=h/2,i-=d/2;for(var y=1;y<=n.stripeBackgroundN;y++){var g=e.pstyle("stripe-"+y+"-background-size").value,p=e.pstyle("stripe-"+y+"-background-color").value,m=e.pstyle("stripe-"+y+"-background-opacity").value*t,b=g/100;b+l>1&&(b=1-l),!(g===0||l>=1||l+b>1)&&(r.beginPath(),r.rect(i,s+d*l,h,d*b),r.closePath(),this.colorFillStyle(r,p[0],p[1],p[2],m),r.fill(),l+=b)}r.restore()};var mr={},Uy=100;mr.getPixelRatio=function(){var r=this.data.contexts[0];if(this.forcedPixelRatio!=null)return this.forcedPixelRatio;var e=this.cy.window(),t=r.backingStorePixelRatio||r.webkitBackingStorePixelRatio||r.mozBackingStorePixelRatio||r.msBackingStorePixelRatio||r.oBackingStorePixelRatio||r.backingStorePixelRatio||1;return(e.devicePixelRatio||1)/t};mr.paintCache=function(r){for(var e=this.paintCaches=this.paintCaches||[],t=!0,a,n=0;ne.minMbLowQualFrames&&(e.motionBlurPxRatio=e.mbPxRBlurry)),e.clearingMotionBlur&&(e.motionBlurPxRatio=1),e.textureDrawLastFrame&&!f&&(v[e.NODE]=!0,v[e.SELECT_BOX]=!0);var m=t.style(),b=t.zoom(),w=s!==void 0?s:b,E=t.pan(),C={x:E.x,y:E.y},x={zoom:b,pan:{x:E.x,y:E.y}},T=e.prevViewport,k=T===void 0||x.zoom!==T.zoom||x.pan.x!==T.pan.x||x.pan.y!==T.pan.y;!k&&!(y&&!d)&&(e.motionBlurPxRatio=1),o&&(C=o),w*=u,C.x*=u,C.y*=u;var B=e.getCachedZSortedEles();function D(Y,V,H,$,K){var te=Y.globalCompositeOperation;Y.globalCompositeOperation="destination-out",e.colorFillStyle(Y,255,255,255,e.motionBlurTransparency),Y.fillRect(V,H,$,K),Y.globalCompositeOperation=te}function P(Y,V){var H,$,K,te;!e.clearingMotionBlur&&(Y===l.bufferContexts[e.MOTIONBLUR_BUFFER_NODE]||Y===l.bufferContexts[e.MOTIONBLUR_BUFFER_DRAG])?(H={x:E.x*h,y:E.y*h},$=b*h,K=e.canvasWidth*h,te=e.canvasHeight*h):(H=C,$=w,K=e.canvasWidth,te=e.canvasHeight),Y.setTransform(1,0,0,1,0,0),V==="motionBlur"?D(Y,0,0,K,te):!a&&(V===void 0||V)&&Y.clearRect(0,0,K,te),n||(Y.translate(H.x,H.y),Y.scale($,$)),o&&Y.translate(o.x,o.y),s&&Y.scale(s,s)}if(f||(e.textureDrawLastFrame=!1),f){if(e.textureDrawLastFrame=!0,!e.textureCache){e.textureCache={},e.textureCache.bb=t.mutableElements().boundingBox(),e.textureCache.texture=e.data.bufferCanvases[e.TEXTURE_BUFFER];var A=e.data.bufferContexts[e.TEXTURE_BUFFER];A.setTransform(1,0,0,1,0,0),A.clearRect(0,0,e.canvasWidth*e.textureMult,e.canvasHeight*e.textureMult),e.render({forcedContext:A,drawOnlyNodeLayer:!0,forcedPxRatio:u*e.textureMult});var x=e.textureCache.viewport={zoom:t.zoom(),pan:t.pan(),width:e.canvasWidth,height:e.canvasHeight};x.mpan={x:(0-x.pan.x)/x.zoom,y:(0-x.pan.y)/x.zoom}}v[e.DRAG]=!1,v[e.NODE]=!1;var R=l.contexts[e.NODE],L=e.textureCache.texture,x=e.textureCache.viewport;R.setTransform(1,0,0,1,0,0),c?D(R,0,0,x.width,x.height):R.clearRect(0,0,x.width,x.height);var I=m.core("outside-texture-bg-color").value,M=m.core("outside-texture-bg-opacity").value;e.colorFillStyle(R,I[0],I[1],I[2],M),R.fillRect(0,0,x.width,x.height);var b=t.zoom();P(R,!1),R.clearRect(x.mpan.x,x.mpan.y,x.width/x.zoom/u,x.height/x.zoom/u),R.drawImage(L,x.mpan.x,x.mpan.y,x.width/x.zoom/u,x.height/x.zoom/u)}else e.textureOnViewport&&!a&&(e.textureCache=null);var N=t.extent(),F=e.pinching||e.hoverData.dragging||e.swipePanning||e.data.wheelZooming||e.hoverData.draggingEles||e.cy.animated(),_=e.hideEdgesOnViewport&&F,z=[];if(z[e.NODE]=!v[e.NODE]&&c&&!e.clearedForMotionBlur[e.NODE]||e.clearingMotionBlur,z[e.NODE]&&(e.clearedForMotionBlur[e.NODE]=!0),z[e.DRAG]=!v[e.DRAG]&&c&&!e.clearedForMotionBlur[e.DRAG]||e.clearingMotionBlur,z[e.DRAG]&&(e.clearedForMotionBlur[e.DRAG]=!0),v[e.NODE]||n||i||z[e.NODE]){var q=c&&!z[e.NODE]&&h!==1,R=a||(q?e.data.bufferContexts[e.MOTIONBLUR_BUFFER_NODE]:l.contexts[e.NODE]),Z=c&&!q?"motionBlur":void 0;P(R,Z),_?e.drawCachedNodes(R,B.nondrag,u,N):e.drawLayeredElements(R,B.nondrag,u,N),e.debug&&e.drawDebugPoints(R,B.nondrag),!n&&!c&&(v[e.NODE]=!1)}if(!i&&(v[e.DRAG]||n||z[e.DRAG])){var q=c&&!z[e.DRAG]&&h!==1,R=a||(q?e.data.bufferContexts[e.MOTIONBLUR_BUFFER_DRAG]:l.contexts[e.DRAG]);P(R,c&&!q?"motionBlur":void 0),_?e.drawCachedNodes(R,B.drag,u,N):e.drawCachedElements(R,B.drag,u,N),e.debug&&e.drawDebugPoints(R,B.drag),!n&&!c&&(v[e.DRAG]=!1)}if(this.drawSelectionRectangle(r,P),c&&h!==1){var Q=l.contexts[e.NODE],X=e.data.bufferCanvases[e.MOTIONBLUR_BUFFER_NODE],J=l.contexts[e.DRAG],j=e.data.bufferCanvases[e.MOTIONBLUR_BUFFER_DRAG],ne=function(V,H,$){V.setTransform(1,0,0,1,0,0),$||!p?V.clearRect(0,0,e.canvasWidth,e.canvasHeight):D(V,0,0,e.canvasWidth,e.canvasHeight);var K=h;V.drawImage(H,0,0,e.canvasWidth*K,e.canvasHeight*K,0,0,e.canvasWidth,e.canvasHeight)};(v[e.NODE]||z[e.NODE])&&(ne(Q,X,z[e.NODE]),v[e.NODE]=!1),(v[e.DRAG]||z[e.DRAG])&&(ne(J,j,z[e.DRAG]),v[e.DRAG]=!1)}e.prevViewport=x,e.clearingMotionBlur&&(e.clearingMotionBlur=!1,e.motionBlurCleared=!0,e.motionBlur=!0),c&&(e.motionBlurTimeout=setTimeout(function(){e.motionBlurTimeout=null,e.clearedForMotionBlur[e.NODE]=!1,e.clearedForMotionBlur[e.DRAG]=!1,e.motionBlur=!1,e.clearingMotionBlur=!f,e.mbFrames=0,v[e.NODE]=!0,v[e.DRAG]=!0,e.redraw()},Uy)),a||t.emit("render")};var ha;mr.drawSelectionRectangle=function(r,e){var t=this,a=t.cy,n=t.data,i=a.style(),s=r.drawOnlyNodeLayer,o=r.drawAllLayers,u=n.canvasNeedsRedraw,l=r.forcedContext;if(t.showFps||!s&&u[t.SELECT_BOX]&&!o){var v=l||n.contexts[t.SELECT_BOX];if(e(v),t.selection[4]==1&&(t.hoverData.selecting||t.touchData.selecting)){var f=t.cy.zoom(),c=i.core("selection-box-border-width").value/f;v.lineWidth=c,v.fillStyle="rgba("+i.core("selection-box-color").value[0]+","+i.core("selection-box-color").value[1]+","+i.core("selection-box-color").value[2]+","+i.core("selection-box-opacity").value+")",v.fillRect(t.selection[0],t.selection[1],t.selection[2]-t.selection[0],t.selection[3]-t.selection[1]),c>0&&(v.strokeStyle="rgba("+i.core("selection-box-border-color").value[0]+","+i.core("selection-box-border-color").value[1]+","+i.core("selection-box-border-color").value[2]+","+i.core("selection-box-opacity").value+")",v.strokeRect(t.selection[0],t.selection[1],t.selection[2]-t.selection[0],t.selection[3]-t.selection[1]))}if(n.bgActivePosistion&&!t.hoverData.selecting){var f=t.cy.zoom(),h=n.bgActivePosistion;v.fillStyle="rgba("+i.core("active-bg-color").value[0]+","+i.core("active-bg-color").value[1]+","+i.core("active-bg-color").value[2]+","+i.core("active-bg-opacity").value+")",v.beginPath(),v.arc(h.x,h.y,i.core("active-bg-size").pfValue/f,0,2*Math.PI),v.fill()}var d=t.lastRedrawTime;if(t.showFps&&d){d=Math.round(d);var y=Math.round(1e3/d),g="1 frame = "+d+" ms = "+y+" fps";if(v.setTransform(1,0,0,1,0,0),v.fillStyle="rgba(255, 0, 0, 0.75)",v.strokeStyle="rgba(255, 0, 0, 0.75)",v.font="30px Arial",!ha){var p=v.measureText(g);ha=p.actualBoundingBoxAscent}v.fillText(g,0,ha);var m=60;v.strokeRect(0,ha+10,250,20),v.fillRect(0,ha+10,250*Math.min(y/m,1),20)}o||(u[t.SELECT_BOX]=!1)}};function Gl(r,e,t){var a=r.createShader(e);if(r.shaderSource(a,t),r.compileShader(a),!r.getShaderParameter(a,r.COMPILE_STATUS))throw new Error(r.getShaderInfoLog(a));return a}function Ky(r,e,t){var a=Gl(r,r.VERTEX_SHADER,e),n=Gl(r,r.FRAGMENT_SHADER,t),i=r.createProgram();if(r.attachShader(i,a),r.attachShader(i,n),r.linkProgram(i),!r.getProgramParameter(i,r.LINK_STATUS))throw new Error("Could not initialize shaders");return i}function Xy(r,e,t){t===void 0&&(t=e);var a=r.makeOffscreenCanvas(e,t),n=a.context=a.getContext("2d");return a.clear=function(){return n.clearRect(0,0,a.width,a.height)},a.clear(),a}function mo(r){var e=r.pixelRatio,t=r.cy.zoom(),a=r.cy.pan();return{zoom:t*e,pan:{x:a.x*e,y:a.y*e}}}function Yy(r){var e=r.pixelRatio,t=r.cy.zoom();return t*e}function Zy(r,e,t,a,n){var i=a*t+e.x,s=n*t+e.y;return s=Math.round(r.canvasHeight-s),[i,s]}function Qy(r,e){return e.picking?!0:r.pstyle("background-fill").value!=="solid"||r.pstyle("background-image").strValue!=="none"?!1:r.pstyle("border-width").value===0||r.pstyle("border-opacity").value===0?!0:r.pstyle("border-style").value==="solid"}function Jy(r,e){if(r.length!==e.length)return!1;for(var t=0;t>0&255)/255,t[1]=(r>>8&255)/255,t[2]=(r>>16&255)/255,t[3]=(r>>24&255)/255,t}function jy(r){return r[0]+(r[1]<<8)+(r[2]<<16)+(r[3]<<24)}function em(r,e){var t=r.createTexture();return t.buffer=function(a){r.bindTexture(r.TEXTURE_2D,t),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_WRAP_S,r.CLAMP_TO_EDGE),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_WRAP_T,r.CLAMP_TO_EDGE),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_MAG_FILTER,r.LINEAR),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_MIN_FILTER,r.LINEAR_MIPMAP_NEAREST),r.pixelStorei(r.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!0),r.texImage2D(r.TEXTURE_2D,0,r.RGBA,r.RGBA,r.UNSIGNED_BYTE,a),r.generateMipmap(r.TEXTURE_2D),r.bindTexture(r.TEXTURE_2D,null)},t.deleteTexture=function(){r.deleteTexture(t)},t}function Mf(r,e){switch(e){case"float":return[1,r.FLOAT,4];case"vec2":return[2,r.FLOAT,4];case"vec3":return[3,r.FLOAT,4];case"vec4":return[4,r.FLOAT,4];case"int":return[1,r.INT,4];case"ivec2":return[2,r.INT,4]}}function Lf(r,e,t){switch(e){case r.FLOAT:return new Float32Array(t);case r.INT:return new Int32Array(t)}}function rm(r,e,t,a,n,i){switch(e){case r.FLOAT:return new Float32Array(t.buffer,i*a,n);case r.INT:return new Int32Array(t.buffer,i*a,n)}}function tm(r,e,t,a){var n=Mf(r,e),i=Xe(n,2),s=i[0],o=i[1],u=Lf(r,o,a),l=r.createBuffer();return r.bindBuffer(r.ARRAY_BUFFER,l),r.bufferData(r.ARRAY_BUFFER,u,r.STATIC_DRAW),o===r.FLOAT?r.vertexAttribPointer(t,s,o,!1,0,0):o===r.INT&&r.vertexAttribIPointer(t,s,o,0,0),r.enableVertexAttribArray(t),r.bindBuffer(r.ARRAY_BUFFER,null),l}function Fr(r,e,t,a){var n=Mf(r,t),i=Xe(n,3),s=i[0],o=i[1],u=i[2],l=Lf(r,o,e*s),v=s*u,f=r.createBuffer();r.bindBuffer(r.ARRAY_BUFFER,f),r.bufferData(r.ARRAY_BUFFER,e*v,r.DYNAMIC_DRAW),r.enableVertexAttribArray(a),o===r.FLOAT?r.vertexAttribPointer(a,s,o,!1,v,0):o===r.INT&&r.vertexAttribIPointer(a,s,o,v,0),r.vertexAttribDivisor(a,1),r.bindBuffer(r.ARRAY_BUFFER,null);for(var c=new Array(e),h=0;hs&&(o=s/a,u=a*o,l=n*o),{scale:o,texW:u,texH:l}}},{key:"draw",value:function(t,a,n){var i=this;if(this.locked)throw new Error("can't draw, atlas is locked");var s=this.texSize,o=this.texRows,u=this.texHeight,l=this.getScale(a),v=l.scale,f=l.texW,c=l.texH,h=function(b,w){if(n&&w){var E=w.context,C=b.x,x=b.row,T=C,k=u*x;E.save(),E.translate(T,k),E.scale(v,v),n(E,a),E.restore()}},d=[null,null],y=function(){h(i.freePointer,i.canvas),d[0]={x:i.freePointer.x,y:i.freePointer.row*u,w:f,h:c},d[1]={x:i.freePointer.x+f,y:i.freePointer.row*u,w:0,h:c},i.freePointer.x+=f,i.freePointer.x==s&&(i.freePointer.x=0,i.freePointer.row++)},g=function(){var b=i.scratch,w=i.canvas;b.clear(),h({x:0,row:0},b);var E=s-i.freePointer.x,C=f-E,x=u;{var T=i.freePointer.x,k=i.freePointer.row*u,B=E;w.context.drawImage(b,0,0,B,x,T,k,B,x),d[0]={x:T,y:k,w:B,h:c}}{var D=E,P=(i.freePointer.row+1)*u,A=C;w&&w.context.drawImage(b,D,0,A,x,0,P,A,x),d[1]={x:0,y:P,w:A,h:c}}i.freePointer.x=C,i.freePointer.row++},p=function(){i.freePointer.x=0,i.freePointer.row++};if(this.freePointer.x+f<=s)y();else{if(this.freePointer.row>=o-1)return!1;this.freePointer.x===s?(p(),y()):this.enableWrapping?g():(p(),y())}return this.keyToLocation.set(t,d),this.needsBuffer=!0,d}},{key:"getOffsets",value:function(t){return this.keyToLocation.get(t)}},{key:"isEmpty",value:function(){return this.freePointer.x===0&&this.freePointer.row===0}},{key:"canFit",value:function(t){if(this.locked)return!1;var a=this.texSize,n=this.texRows,i=this.getScale(t),s=i.texW;return this.freePointer.x+s>a?this.freePointer.row1&&arguments[1]!==void 0?arguments[1]:{},i=n.forceRedraw,s=i===void 0?!1:i,o=n.filterEle,u=o===void 0?function(){return!0}:o,l=n.filterType,v=l===void 0?function(){return!0}:l,f=!1,c=!1,h=Cr(t),d;try{for(h.s();!(d=h.n()).done;){var y=d.value;if(u(y)){var g=Cr(this.renderTypes.values()),p;try{var m=function(){var w=p.value,E=w.type;if(v(E)){var C=a.collections.get(w.collection),x=w.getKey(y),T=Array.isArray(x)?x:[x];if(s)T.forEach(function(P){return C.markKeyForGC(P)}),c=!0;else{var k=w.getID?w.getID(y):y.id(),B=a._key(E,k),D=a.typeAndIdToKey.get(B);D!==void 0&&!Jy(T,D)&&(f=!0,a.typeAndIdToKey.delete(B),D.forEach(function(P){return C.markKeyForGC(P)}))}}};for(g.s();!(p=g.n()).done;)m()}catch(b){g.e(b)}finally{g.f()}}}}catch(b){h.e(b)}finally{h.f()}return c&&(this.gc(),f=!1),f}},{key:"gc",value:function(){var t=Cr(this.collections.values()),a;try{for(t.s();!(a=t.n()).done;){var n=a.value;n.gc()}}catch(i){t.e(i)}finally{t.f()}}},{key:"getOrCreateAtlas",value:function(t,a,n,i){var s=this.renderTypes.get(a),o=this.collections.get(s.collection),u=!1,l=o.draw(i,n,function(c){s.drawClipped?(c.save(),c.beginPath(),c.rect(0,0,n.w,n.h),c.clip(),s.drawElement(c,t,n,!0,!0),c.restore()):s.drawElement(c,t,n,!0,!0),u=!0});if(u){var v=s.getID?s.getID(t):t.id(),f=this._key(a,v);this.typeAndIdToKey.has(f)?this.typeAndIdToKey.get(f).push(i):this.typeAndIdToKey.set(f,[i])}return l}},{key:"getAtlasInfo",value:function(t,a){var n=this,i=this.renderTypes.get(a),s=i.getKey(t),o=Array.isArray(s)?s:[s];return o.map(function(u){var l=i.getBoundingBox(t,u),v=n.getOrCreateAtlas(t,a,l,u),f=v.getOffsets(u),c=Xe(f,2),h=c[0],d=c[1];return{atlas:v,tex:h,tex1:h,tex2:d,bb:l}})}},{key:"getDebugInfo",value:function(){var t=[],a=Cr(this.collections),n;try{for(a.s();!(n=a.n()).done;){var i=Xe(n.value,2),s=i[0],o=i[1],u=o.getCounts(),l=u.keyCount,v=u.atlasCount;t.push({type:s,keyCount:l,atlasCount:v})}}catch(f){a.e(f)}finally{a.f()}return t}}])})(),fm=(function(){function r(e){ct(this,r),this.globalOptions=e,this.atlasSize=e.webglTexSize,this.maxAtlasesPerBatch=e.webglTexPerBatch,this.batchAtlases=[]}return dt(r,[{key:"getMaxAtlasesPerBatch",value:function(){return this.maxAtlasesPerBatch}},{key:"getAtlasSize",value:function(){return this.atlasSize}},{key:"getIndexArray",value:function(){return Array.from({length:this.maxAtlasesPerBatch},function(t,a){return a})}},{key:"startBatch",value:function(){this.batchAtlases=[]}},{key:"getAtlasCount",value:function(){return this.batchAtlases.length}},{key:"getAtlases",value:function(){return this.batchAtlases}},{key:"canAddToCurrentBatch",value:function(t){return this.batchAtlases.length===this.maxAtlasesPerBatch?this.batchAtlases.includes(t):!0}},{key:"getAtlasIndexForBatch",value:function(t){var a=this.batchAtlases.indexOf(t);if(a<0){if(this.batchAtlases.length===this.maxAtlasesPerBatch)throw new Error("cannot add more atlases to batch");this.batchAtlases.push(t),a=this.batchAtlases.length-1}return a}}])})(),cm=` + float circleSD(vec2 p, float r) { + return distance(vec2(0), p) - r; // signed distance + } +`,dm=` + float rectangleSD(vec2 p, vec2 b) { + vec2 d = abs(p)-b; + return distance(vec2(0),max(d,0.0)) + min(max(d.x,d.y),0.0); + } +`,hm=` + float roundRectangleSD(vec2 p, vec2 b, vec4 cr) { + cr.xy = (p.x > 0.0) ? cr.xy : cr.zw; + cr.x = (p.y > 0.0) ? cr.x : cr.y; + vec2 q = abs(p) - b + cr.x; + return min(max(q.x, q.y), 0.0) + distance(vec2(0), max(q, 0.0)) - cr.x; + } +`,gm=` + float ellipseSD(vec2 p, vec2 ab) { + p = abs( p ); // symmetry + + // find root with Newton solver + vec2 q = ab*(p-ab); + float w = (q.x1.0) ? d : -d; + } +`,Ea={SCREEN:{name:"screen",screen:!0},PICKING:{name:"picking",picking:!0}},Pn={IGNORE:1,USE_BB:2},Es=0,Ul=1,Kl=2,Cs=3,qt=4,nn=5,ga=6,pa=7,pm=(function(){function r(e,t,a){ct(this,r),this.r=e,this.gl=t,this.maxInstances=a.webglBatchSize,this.atlasSize=a.webglTexSize,this.bgColor=a.bgColor,this.debug=a.webglDebug,this.batchDebugInfo=[],a.enableWrapping=!0,a.createTextureCanvas=Xy,this.atlasManager=new vm(e,a),this.batchManager=new fm(a),this.simpleShapeOptions=new Map,this.program=this._createShaderProgram(Ea.SCREEN),this.pickingProgram=this._createShaderProgram(Ea.PICKING),this.vao=this._createVAO()}return dt(r,[{key:"addAtlasCollection",value:function(t,a){this.atlasManager.addAtlasCollection(t,a)}},{key:"addTextureAtlasRenderType",value:function(t,a){this.atlasManager.addRenderType(t,a)}},{key:"addSimpleShapeRenderType",value:function(t,a){this.simpleShapeOptions.set(t,a)}},{key:"invalidate",value:function(t){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=a.type,i=this.atlasManager;return n?i.invalidate(t,{filterType:function(o){return o===n},forceRedraw:!0}):i.invalidate(t)}},{key:"gc",value:function(){this.atlasManager.gc()}},{key:"_createShaderProgram",value:function(t){var a=this.gl,n=`#version 300 es + precision highp float; + + uniform mat3 uPanZoomMatrix; + uniform int uAtlasSize; + + // instanced + in vec2 aPosition; // a vertex from the unit square + + in mat3 aTransform; // used to transform verticies, eg into a bounding box + in int aVertType; // the type of thing we are rendering + + // the z-index that is output when using picking mode + in vec4 aIndex; + + // For textures + in int aAtlasId; // which shader unit/atlas to use + in vec4 aTex; // x/y/w/h of texture in atlas + + // for edges + in vec4 aPointAPointB; + in vec4 aPointCPointD; + in vec2 aLineWidth; // also used for node border width + + // simple shapes + in vec4 aCornerRadius; // for round-rectangle [top-right, bottom-right, top-left, bottom-left] + in vec4 aColor; // also used for edges + in vec4 aBorderColor; // aLineWidth is used for border width + + // output values passed to the fragment shader + out vec2 vTexCoord; + out vec4 vColor; + out vec2 vPosition; + // flat values are not interpolated + flat out int vAtlasId; + flat out int vVertType; + flat out vec2 vTopRight; + flat out vec2 vBotLeft; + flat out vec4 vCornerRadius; + flat out vec4 vBorderColor; + flat out vec2 vBorderWidth; + flat out vec4 vIndex; + + void main(void) { + int vid = gl_VertexID; + vec2 position = aPosition; // TODO make this a vec3, simplifies some code below + + if(aVertType == `.concat(Es,`) { + float texX = aTex.x; // texture coordinates + float texY = aTex.y; + float texW = aTex.z; + float texH = aTex.w; + + if(vid == 1 || vid == 2 || vid == 4) { + texX += texW; + } + if(vid == 2 || vid == 4 || vid == 5) { + texY += texH; + } + + float d = float(uAtlasSize); + vTexCoord = vec2(texX / d, texY / d); // tex coords must be between 0 and 1 + + gl_Position = vec4(uPanZoomMatrix * aTransform * vec3(position, 1.0), 1.0); + } + else if(aVertType == `).concat(qt," || aVertType == ").concat(pa,` + || aVertType == `).concat(nn," || aVertType == ").concat(ga,`) { // simple shapes + + // the bounding box is needed by the fragment shader + vBotLeft = (aTransform * vec3(0, 0, 1)).xy; // flat + vTopRight = (aTransform * vec3(1, 1, 1)).xy; // flat + vPosition = (aTransform * vec3(position, 1)).xy; // will be interpolated + + // calculations are done in the fragment shader, just pass these along + vColor = aColor; + vCornerRadius = aCornerRadius; + vBorderColor = aBorderColor; + vBorderWidth = aLineWidth; + + gl_Position = vec4(uPanZoomMatrix * aTransform * vec3(position, 1.0), 1.0); + } + else if(aVertType == `).concat(Ul,`) { + vec2 source = aPointAPointB.xy; + vec2 target = aPointAPointB.zw; + + // adjust the geometry so that the line is centered on the edge + position.y = position.y - 0.5; + + // stretch the unit square into a long skinny rectangle + vec2 xBasis = target - source; + vec2 yBasis = normalize(vec2(-xBasis.y, xBasis.x)); + vec2 point = source + xBasis * position.x + yBasis * aLineWidth[0] * position.y; + + gl_Position = vec4(uPanZoomMatrix * vec3(point, 1.0), 1.0); + vColor = aColor; + } + else if(aVertType == `).concat(Kl,`) { + vec2 pointA = aPointAPointB.xy; + vec2 pointB = aPointAPointB.zw; + vec2 pointC = aPointCPointD.xy; + vec2 pointD = aPointCPointD.zw; + + // adjust the geometry so that the line is centered on the edge + position.y = position.y - 0.5; + + vec2 p0, p1, p2, pos; + if(position.x == 0.0) { // The left side of the unit square + p0 = pointA; + p1 = pointB; + p2 = pointC; + pos = position; + } else { // The right side of the unit square, use same approach but flip the geometry upside down + p0 = pointD; + p1 = pointC; + p2 = pointB; + pos = vec2(0.0, -position.y); + } + + vec2 p01 = p1 - p0; + vec2 p12 = p2 - p1; + vec2 p21 = p1 - p2; + + // Find the normal vector. + vec2 tangent = normalize(normalize(p12) + normalize(p01)); + vec2 normal = vec2(-tangent.y, tangent.x); + + // Find the vector perpendicular to p0 -> p1. + vec2 p01Norm = normalize(vec2(-p01.y, p01.x)); + + // Determine the bend direction. + float sigma = sign(dot(p01 + p21, normal)); + float width = aLineWidth[0]; + + if(sign(pos.y) == -sigma) { + // This is an intersecting vertex. Adjust the position so that there's no overlap. + vec2 point = 0.5 * width * normal * -sigma / dot(normal, p01Norm); + gl_Position = vec4(uPanZoomMatrix * vec3(p1 + point, 1.0), 1.0); + } else { + // This is a non-intersecting vertex. Treat it like a mitre join. + vec2 point = 0.5 * width * normal * sigma * dot(normal, p01Norm); + gl_Position = vec4(uPanZoomMatrix * vec3(p1 + point, 1.0), 1.0); + } + + vColor = aColor; + } + else if(aVertType == `).concat(Cs,` && vid < 3) { + // massage the first triangle into an edge arrow + if(vid == 0) + position = vec2(-0.15, -0.3); + if(vid == 1) + position = vec2( 0.0, 0.0); + if(vid == 2) + position = vec2( 0.15, -0.3); + + gl_Position = vec4(uPanZoomMatrix * aTransform * vec3(position, 1.0), 1.0); + vColor = aColor; + } + else { + gl_Position = vec4(2.0, 0.0, 0.0, 1.0); // discard vertex by putting it outside webgl clip space + } + + vAtlasId = aAtlasId; + vVertType = aVertType; + vIndex = aIndex; + } + `),i=this.batchManager.getIndexArray(),s=`#version 300 es + precision highp float; + + // declare texture unit for each texture atlas in the batch + `.concat(i.map(function(l){return"uniform sampler2D uTexture".concat(l,";")}).join(` + `),` + + uniform vec4 uBGColor; + uniform float uZoom; + + in vec2 vTexCoord; + in vec4 vColor; + in vec2 vPosition; // model coordinates + + flat in int vAtlasId; + flat in vec4 vIndex; + flat in int vVertType; + flat in vec2 vTopRight; + flat in vec2 vBotLeft; + flat in vec4 vCornerRadius; + flat in vec4 vBorderColor; + flat in vec2 vBorderWidth; + + out vec4 outColor; + + `).concat(cm,` + `).concat(dm,` + `).concat(hm,` + `).concat(gm,` + + vec4 blend(vec4 top, vec4 bot) { // blend colors with premultiplied alpha + return vec4( + top.rgb + (bot.rgb * (1.0 - top.a)), + top.a + (bot.a * (1.0 - top.a)) + ); + } + + vec4 distInterp(vec4 cA, vec4 cB, float d) { // interpolate color using Signed Distance + // scale to the zoom level so that borders don't look blurry when zoomed in + // note 1.5 is an aribitrary value chosen because it looks good + return mix(cA, cB, 1.0 - smoothstep(0.0, 1.5 / uZoom, abs(d))); + } + + void main(void) { + if(vVertType == `).concat(Es,`) { + // look up the texel from the texture unit + `).concat(i.map(function(l){return"if(vAtlasId == ".concat(l,") outColor = texture(uTexture").concat(l,", vTexCoord);")}).join(` + else `),` + } + else if(vVertType == `).concat(Cs,`) { + // mimics how canvas renderer uses context.globalCompositeOperation = 'destination-out'; + outColor = blend(vColor, uBGColor); + outColor.a = 1.0; // make opaque, masks out line under arrow + } + else if(vVertType == `).concat(qt,` && vBorderWidth == vec2(0.0)) { // simple rectangle with no border + outColor = vColor; // unit square is already transformed to the rectangle, nothing else needs to be done + } + else if(vVertType == `).concat(qt," || vVertType == ").concat(pa,` + || vVertType == `).concat(nn," || vVertType == ").concat(ga,`) { // use SDF + + float outerBorder = vBorderWidth[0]; + float innerBorder = vBorderWidth[1]; + float borderPadding = outerBorder * 2.0; + float w = vTopRight.x - vBotLeft.x - borderPadding; + float h = vTopRight.y - vBotLeft.y - borderPadding; + vec2 b = vec2(w/2.0, h/2.0); // half width, half height + vec2 p = vPosition - vec2(vTopRight.x - b[0] - outerBorder, vTopRight.y - b[1] - outerBorder); // translate to center + + float d; // signed distance + if(vVertType == `).concat(qt,`) { + d = rectangleSD(p, b); + } else if(vVertType == `).concat(pa,` && w == h) { + d = circleSD(p, b.x); // faster than ellipse + } else if(vVertType == `).concat(pa,`) { + d = ellipseSD(p, b); + } else { + d = roundRectangleSD(p, b, vCornerRadius.wzyx); + } + + // use the distance to interpolate a color to smooth the edges of the shape, doesn't need multisampling + // we must smooth colors inwards, because we can't change pixels outside the shape's bounding box + if(d > 0.0) { + if(d > outerBorder) { + discard; + } else { + outColor = distInterp(vBorderColor, vec4(0), d - outerBorder); + } + } else { + if(d > innerBorder) { + vec4 outerColor = outerBorder == 0.0 ? vec4(0) : vBorderColor; + vec4 innerBorderColor = blend(vBorderColor, vColor); + outColor = distInterp(innerBorderColor, outerColor, d); + } + else { + vec4 outerColor; + if(innerBorder == 0.0 && outerBorder == 0.0) { + outerColor = vec4(0); + } else if(innerBorder == 0.0) { + outerColor = vBorderColor; + } else { + outerColor = blend(vBorderColor, vColor); + } + outColor = distInterp(vColor, outerColor, d - innerBorder); + } + } + } + else { + outColor = vColor; + } + + `).concat(t.picking?`if(outColor.a == 0.0) discard; + else outColor = vIndex;`:"",` + } + `),o=Ky(a,n,s);o.aPosition=a.getAttribLocation(o,"aPosition"),o.aIndex=a.getAttribLocation(o,"aIndex"),o.aVertType=a.getAttribLocation(o,"aVertType"),o.aTransform=a.getAttribLocation(o,"aTransform"),o.aAtlasId=a.getAttribLocation(o,"aAtlasId"),o.aTex=a.getAttribLocation(o,"aTex"),o.aPointAPointB=a.getAttribLocation(o,"aPointAPointB"),o.aPointCPointD=a.getAttribLocation(o,"aPointCPointD"),o.aLineWidth=a.getAttribLocation(o,"aLineWidth"),o.aColor=a.getAttribLocation(o,"aColor"),o.aCornerRadius=a.getAttribLocation(o,"aCornerRadius"),o.aBorderColor=a.getAttribLocation(o,"aBorderColor"),o.uPanZoomMatrix=a.getUniformLocation(o,"uPanZoomMatrix"),o.uAtlasSize=a.getUniformLocation(o,"uAtlasSize"),o.uBGColor=a.getUniformLocation(o,"uBGColor"),o.uZoom=a.getUniformLocation(o,"uZoom"),o.uTextures=[];for(var u=0;u1&&arguments[1]!==void 0?arguments[1]:Ea.SCREEN;this.panZoomMatrix=t,this.renderTarget=a,this.batchDebugInfo=[],this.wrappedCount=0,this.simpleCount=0,this.startBatch()}},{key:"startBatch",value:function(){this.instanceCount=0,this.batchManager.startBatch()}},{key:"endFrame",value:function(){this.endBatch()}},{key:"_isVisible",value:function(t,a){return t.visible()?a&&a.isVisible?a.isVisible(t):!0:!1}},{key:"drawTexture",value:function(t,a,n){var i=this.atlasManager,s=this.batchManager,o=i.getRenderTypeOpts(n);if(this._isVisible(t,o)&&!(t.isEdge()&&!this._isValidEdge(t))){if(this.renderTarget.picking&&o.getTexPickingMode){var u=o.getTexPickingMode(t);if(u===Pn.IGNORE)return;if(u==Pn.USE_BB){this.drawPickingRectangle(t,a,n);return}}var l=i.getAtlasInfo(t,n),v=Cr(l),f;try{for(v.s();!(f=v.n()).done;){var c=f.value,h=c.atlas,d=c.tex1,y=c.tex2;s.canAddToCurrentBatch(h)||this.endBatch();for(var g=s.getAtlasIndexForBatch(h),p=0,m=[[d,!0],[y,!1]];p=this.maxInstances&&this.endBatch()}}}}catch(D){v.e(D)}finally{v.f()}}}},{key:"setTransformMatrix",value:function(t,a,n,i){var s=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,o=0;if(n.shapeProps&&n.shapeProps.padding&&(o=t.pstyle(n.shapeProps.padding).pfValue),i){var u=i.bb,l=i.tex1,v=i.tex2,f=l.w/(l.w+v.w);s||(f=1-f);var c=this._getAdjustedBB(u,o,s,f);this._applyTransformMatrix(a,c,n,t)}else{var h=n.getBoundingBox(t),d=this._getAdjustedBB(h,o,!0,1);this._applyTransformMatrix(a,d,n,t)}}},{key:"_applyTransformMatrix",value:function(t,a,n,i){var s,o;Wl(t);var u=n.getRotation?n.getRotation(i):0;if(u!==0){var l=n.getRotationPoint(i),v=l.x,f=l.y;pn(t,t,[v,f]),$l(t,t,u);var c=n.getRotationOffset(i);s=c.x+(a.xOffset||0),o=c.y+(a.yOffset||0)}else s=a.x1,o=a.y1;pn(t,t,[s,o]),Hs(t,t,[a.w,a.h])}},{key:"_getAdjustedBB",value:function(t,a,n,i){var s=t.x1,o=t.y1,u=t.w,l=t.h,v=t.yOffset;a&&(s-=a,o-=a,u+=2*a,l+=2*a);var f=0,c=u*i;return n&&i<1?u=c:!n&&i<1&&(f=u-c,s+=f,u=c),{x1:s,y1:o,w:u,h:l,xOffset:f,yOffset:v}}},{key:"drawPickingRectangle",value:function(t,a,n){var i=this.atlasManager.getRenderTypeOpts(n),s=this.instanceCount;this.vertTypeBuffer.getView(s)[0]=qt;var o=this.indexBuffer.getView(s);Vt(a,o);var u=this.colorBuffer.getView(s);bt([0,0,0],1,u);var l=this.transformBuffer.getMatrixView(s);this.setTransformMatrix(t,l,i),this.simpleCount++,this.instanceCount++,this.instanceCount>=this.maxInstances&&this.endBatch()}},{key:"drawNode",value:function(t,a,n){var i=this.simpleShapeOptions.get(n);if(this._isVisible(t,i)){var s=i.shapeProps,o=this._getVertTypeForShape(t,s.shape);if(o===void 0||i.isSimple&&!i.isSimple(t,this.renderTarget)){this.drawTexture(t,a,n);return}var u=this.instanceCount;if(this.vertTypeBuffer.getView(u)[0]=o,o===nn||o===ga){var l=i.getBoundingBox(t),v=this._getCornerRadius(t,s.radius,l),f=this.cornerRadiusBuffer.getView(u);f[0]=v,f[1]=v,f[2]=v,f[3]=v,o===ga&&(f[0]=0,f[2]=0)}var c=this.indexBuffer.getView(u);Vt(a,c);var h=this.renderTarget.picking?1:n==="node-body"?t.effectiveOpacity():1,d=this.renderTarget.picking?1:t.pstyle(s.opacity).value*h,y=t.pstyle(s.color).value,g=this.colorBuffer.getView(u);bt(y,d,g);var p=this.lineWidthBuffer.getView(u);if(p[0]=0,p[1]=0,s.border){var m=t.pstyle("border-width").value;if(m>0){var b=t.pstyle("border-color").value,w=h*t.pstyle("border-opacity").value,E=this.borderColorBuffer.getView(u);bt(b,w,E);var C=t.pstyle("border-position").value;if(C==="inside")p[0]=0,p[1]=-m;else if(C==="outside")p[0]=m,p[1]=0;else{var x=m/2;p[0]=x,p[1]=-x}}}var T=this.transformBuffer.getMatrixView(u);this.setTransformMatrix(t,T,i),this.simpleCount++,this.instanceCount++,this.instanceCount>=this.maxInstances&&this.endBatch()}}},{key:"_getVertTypeForShape",value:function(t,a){var n=t.pstyle(a).value;switch(n){case"rectangle":return qt;case"ellipse":return pa;case"roundrectangle":case"round-rectangle":return nn;case"bottom-round-rectangle":return ga;default:return}}},{key:"_getCornerRadius",value:function(t,a,n){var i=n.w,s=n.h;if(t.pstyle(a).value==="auto")return ut(i,s);var o=t.pstyle(a).pfValue,u=i/2,l=s/2;return Math.min(o,l,u)}},{key:"drawEdgeArrow",value:function(t,a,n){if(t.visible()){var i=t._private.rscratch,s,o,u;if(n==="source"?(s=i.arrowStartX,o=i.arrowStartY,u=i.srcArrowAngle):(s=i.arrowEndX,o=i.arrowEndY,u=i.tgtArrowAngle),!(isNaN(s)||s==null||isNaN(o)||o==null||isNaN(u)||u==null)){var l=t.pstyle(n+"-arrow-shape").value;if(l!=="none"){var v=t.pstyle(n+"-arrow-color").value,f=t.pstyle("opacity").value,c=t.pstyle("line-opacity").value,h=f*c,d=t.pstyle("width").pfValue,y=t.pstyle("arrow-scale").value,g=this.r.getArrowWidth(d,y),p=this.instanceCount,m=this.transformBuffer.getMatrixView(p);Wl(m),pn(m,m,[s,o]),Hs(m,m,[g,g]),$l(m,m,u),this.vertTypeBuffer.getView(p)[0]=Cs;var b=this.indexBuffer.getView(p);Vt(a,b);var w=this.colorBuffer.getView(p);bt(v,h,w),this.instanceCount++,this.instanceCount>=this.maxInstances&&this.endBatch()}}}}},{key:"drawEdgeLine",value:function(t,a){if(t.visible()){var n=this._getEdgePoints(t);if(n){var i=t.pstyle("opacity").value,s=t.pstyle("line-opacity").value,o=t.pstyle("width").pfValue,u=t.pstyle("line-color").value,l=i*s;if(n.length/2+this.instanceCount>this.maxInstances&&this.endBatch(),n.length==4){var v=this.instanceCount;this.vertTypeBuffer.getView(v)[0]=Ul;var f=this.indexBuffer.getView(v);Vt(a,f);var c=this.colorBuffer.getView(v);bt(u,l,c);var h=this.lineWidthBuffer.getView(v);h[0]=o;var d=this.pointAPointBBuffer.getView(v);d[0]=n[0],d[1]=n[1],d[2]=n[2],d[3]=n[3],this.instanceCount++,this.instanceCount>=this.maxInstances&&this.endBatch()}else for(var y=0;y=this.maxInstances&&this.endBatch()}}}}},{key:"_isValidEdge",value:function(t){var a=t._private.rscratch;return!(a.badLine||a.allpts==null||isNaN(a.allpts[0]))}},{key:"_getEdgePoints",value:function(t){var a=t._private.rscratch;if(this._isValidEdge(t)){var n=a.allpts;if(n.length==4)return n;var i=this._getNumSegments(t);return this._getCurveSegmentPoints(n,i)}}},{key:"_getNumSegments",value:function(t){var a=15;return Math.min(Math.max(a,5),this.maxInstances)}},{key:"_getCurveSegmentPoints",value:function(t,a){if(t.length==4)return t;for(var n=Array((a+1)*2),i=0;i<=a;i++)if(i==0)n[0]=t[0],n[1]=t[1];else if(i==a)n[i*2]=t[t.length-2],n[i*2+1]=t[t.length-1];else{var s=i/a;this._setCurvePoint(t,s,n,i*2)}return n}},{key:"_setCurvePoint",value:function(t,a,n,i){if(t.length<=2)n[i]=t[0],n[i+1]=t[1];else{for(var s=Array(t.length-2),o=0;o0}},o=function(f){var c=f.pstyle("text-events").strValue==="yes";return c?Pn.USE_BB:Pn.IGNORE},u=function(f){var c=f.position(),h=c.x,d=c.y,y=f.outerWidth(),g=f.outerHeight();return{w:y,h:g,x1:h-y/2,y1:d-g/2}};t.drawing.addAtlasCollection("node",{texRows:r.webglTexRowsNodes}),t.drawing.addAtlasCollection("label",{texRows:r.webglTexRows}),t.drawing.addTextureAtlasRenderType("node-body",{collection:"node",getKey:e.getStyleKey,getBoundingBox:e.getElementBox,drawElement:e.drawElement}),t.drawing.addSimpleShapeRenderType("node-body",{getBoundingBox:u,isSimple:Qy,shapeProps:{shape:"shape",color:"background-color",opacity:"background-opacity",radius:"corner-radius",border:!0}}),t.drawing.addSimpleShapeRenderType("node-overlay",{getBoundingBox:u,isVisible:s("overlay"),shapeProps:{shape:"overlay-shape",color:"overlay-color",opacity:"overlay-opacity",padding:"overlay-padding",radius:"overlay-corner-radius"}}),t.drawing.addSimpleShapeRenderType("node-underlay",{getBoundingBox:u,isVisible:s("underlay"),shapeProps:{shape:"underlay-shape",color:"underlay-color",opacity:"underlay-opacity",padding:"underlay-padding",radius:"underlay-corner-radius"}}),t.drawing.addTextureAtlasRenderType("label",{collection:"label",getTexPickingMode:o,getKey:Ts(e.getLabelKey,null),getBoundingBox:Ss(e.getLabelBox,null),drawClipped:!0,drawElement:e.drawLabel,getRotation:n(null),getRotationPoint:e.getLabelRotationPoint,getRotationOffset:e.getLabelRotationOffset,isVisible:i("label")}),t.drawing.addTextureAtlasRenderType("edge-source-label",{collection:"label",getTexPickingMode:o,getKey:Ts(e.getSourceLabelKey,"source"),getBoundingBox:Ss(e.getSourceLabelBox,"source"),drawClipped:!0,drawElement:e.drawSourceLabel,getRotation:n("source"),getRotationPoint:e.getSourceLabelRotationPoint,getRotationOffset:e.getSourceLabelRotationOffset,isVisible:i("source-label")}),t.drawing.addTextureAtlasRenderType("edge-target-label",{collection:"label",getTexPickingMode:o,getKey:Ts(e.getTargetLabelKey,"target"),getBoundingBox:Ss(e.getTargetLabelBox,"target"),drawClipped:!0,drawElement:e.drawTargetLabel,getRotation:n("target"),getRotationPoint:e.getTargetLabelRotationPoint,getRotationOffset:e.getTargetLabelRotationOffset,isVisible:i("target-label")});var l=Fa(function(){console.log("garbage collect flag set"),t.data.gc=!0},1e4);t.onUpdateEleCalcs(function(v,f){var c=!1;f&&f.length>0&&(c|=t.drawing.invalidate(f)),c&&l()}),mm(t)};function ym(r){var e=r.cy.container(),t=e&&e.style&&e.style.backgroundColor||"white";return iv(t)}function Of(r,e){var t=r._private.rscratch;return pr(t,"labelWrapCachedLines",e)||[]}var Ts=function(e,t){return function(a){var n=e(a),i=Of(a,t);return i.length>1?i.map(function(s,o){return"".concat(n,"_").concat(o)}):n}},Ss=function(e,t){return function(a,n){var i=e(a);if(typeof n=="string"){var s=n.indexOf("_");if(s>0){var o=Number(n.substring(s+1)),u=Of(a,t),l=i.h/u.length,v=l*o,f=i.y1+v;return{x1:i.x1,w:i.w,y1:f,h:l,yOffset:v}}}return i}};function mm(r){{var e=r.render;r.render=function(i){i=i||{};var s=r.cy;r.webgl&&(s.zoom()>Df?(bm(r),e.call(r,i)):(wm(r),zf(r,i,Ea.SCREEN)))}}{var t=r.matchCanvasSize;r.matchCanvasSize=function(i){t.call(r,i),r.pickingFrameBuffer.setFramebufferAttachmentSizes(r.canvasWidth,r.canvasHeight),r.pickingFrameBuffer.needsDraw=!0}}r.findNearestElements=function(i,s,o,u){return km(r,i,s)};{var a=r.invalidateCachedZSortedEles;r.invalidateCachedZSortedEles=function(){a.call(r),r.pickingFrameBuffer.needsDraw=!0}}{var n=r.notify;r.notify=function(i,s){n.call(r,i,s),i==="viewport"||i==="bounds"?r.pickingFrameBuffer.needsDraw=!0:i==="background"&&r.drawing.invalidate(s,{type:"node-body"})}}}function bm(r){var e=r.data.contexts[r.WEBGL];e.clear(e.COLOR_BUFFER_BIT|e.DEPTH_BUFFER_BIT)}function wm(r){var e=function(a){a.save(),a.setTransform(1,0,0,1,0,0),a.clearRect(0,0,r.canvasWidth,r.canvasHeight),a.restore()};e(r.data.contexts[r.NODE]),e(r.data.contexts[r.DRAG])}function xm(r){var e=r.canvasWidth,t=r.canvasHeight,a=mo(r),n=a.pan,i=a.zoom,s=xs();pn(s,s,[n.x,n.y]),Hs(s,s,[i,i]);var o=xs();sm(o,e,t);var u=xs();return im(u,o,s),u}function Nf(r,e){var t=r.canvasWidth,a=r.canvasHeight,n=mo(r),i=n.pan,s=n.zoom;e.setTransform(1,0,0,1,0,0),e.clearRect(0,0,t,a),e.translate(i.x,i.y),e.scale(s,s)}function Em(r,e){r.drawSelectionRectangle(e,function(t){return Nf(r,t)})}function Cm(r){var e=r.data.contexts[r.NODE];e.save(),Nf(r,e),e.strokeStyle="rgba(0, 0, 0, 0.3)",e.beginPath(),e.moveTo(-1e3,0),e.lineTo(1e3,0),e.stroke(),e.beginPath(),e.moveTo(0,-1e3),e.lineTo(0,1e3),e.stroke(),e.restore()}function Tm(r){var e=function(n,i,s){for(var o=n.atlasManager.getAtlasCollection(i),u=r.data.contexts[r.NODE],l=o.atlases,v=0;v=0&&w.add(x)}return w}function km(r,e,t){var a=Sm(r,e,t),n=r.getCachedZSortedEles(),i,s,o=Cr(a),u;try{for(o.s();!(u=o.n()).done;){var l=u.value,v=n[l];if(!i&&v.isNode()&&(i=v),!s&&v.isEdge()&&(s=v),i&&s)break}}catch(f){o.e(f)}finally{o.f()}return[i,s].filter(Boolean)}function ks(r,e,t){var a=r.drawing;e+=1,t.isNode()?(a.drawNode(t,e,"node-underlay"),a.drawNode(t,e,"node-body"),a.drawTexture(t,e,"label"),a.drawNode(t,e,"node-overlay")):(a.drawEdgeLine(t,e),a.drawEdgeArrow(t,e,"source"),a.drawEdgeArrow(t,e,"target"),a.drawTexture(t,e,"label"),a.drawTexture(t,e,"edge-source-label"),a.drawTexture(t,e,"edge-target-label"))}function zf(r,e,t){var a;r.webglDebug&&(a=performance.now());var n=r.drawing,i=0;if(t.screen&&r.data.canvasNeedsRedraw[r.SELECT_BOX]&&Em(r,e),r.data.canvasNeedsRedraw[r.NODE]||t.picking){var s=r.data.contexts[r.WEBGL];t.screen?(s.clearColor(0,0,0,0),s.enable(s.BLEND),s.blendFunc(s.ONE,s.ONE_MINUS_SRC_ALPHA)):s.disable(s.BLEND),s.clear(s.COLOR_BUFFER_BIT|s.DEPTH_BUFFER_BIT),s.viewport(0,0,s.canvas.width,s.canvas.height);var o=xm(r),u=r.getCachedZSortedEles();if(i=u.length,n.startFrame(o,t),t.screen){for(var l=0;l0&&s>0){h.clearRect(0,0,i,s),h.globalCompositeOperation="source-over";var d=this.getCachedZSortedEles();if(r.full)h.translate(-a.x1*l,-a.y1*l),h.scale(l,l),this.drawElements(h,d),h.scale(1/l,1/l),h.translate(a.x1*l,a.y1*l);else{var y=e.pan(),g={x:y.x*l,y:y.y*l};l*=e.zoom(),h.translate(g.x,g.y),h.scale(l,l),this.drawElements(h,d),h.scale(1/l,1/l),h.translate(-g.x,-g.y)}r.bg&&(h.globalCompositeOperation="destination-over",h.fillStyle=r.bg,h.rect(0,0,i,s),h.fill())}return c};function Dm(r,e){for(var t=atob(r),a=new ArrayBuffer(t.length),n=new Uint8Array(a),i=0;i"u"?"undefined":je(OffscreenCanvas))!=="undefined")t=new OffscreenCanvas(r,e);else{var a=this.cy.window(),n=a.document;t=n.createElement("canvas"),t.width=r,t.height=e}return t};[Pf,Wr,Zr,yo,Mt,gt,mr,If,pt,Wa,qf].forEach(function(r){me(Se,r)});var Am=[{name:"null",impl:hf},{name:"base",impl:Sf},{name:"canvas",impl:Bm}],Rm=[{type:"layout",extensions:ey},{type:"renderer",extensions:Am}],Gf={},Hf={};function Wf(r,e,t){var a=t,n=function(T){Ne("Can not register `"+e+"` for `"+r+"` since `"+T+"` already exists in the prototype and can not be overridden")};if(r==="core"){if(Ra.prototype[e])return n(e);Ra.prototype[e]=t}else if(r==="collection"){if(ur.prototype[e])return n(e);ur.prototype[e]=t}else if(r==="layout"){for(var i=function(T){this.options=T,t.call(this,T),Me(this._private)||(this._private={}),this._private.cy=T.cy,this._private.listeners=[],this.createEmitter()},s=i.prototype=Object.create(t.prototype),o=[],u=0;u2&&p.push(m)}let u=[];c=Math.max(c,.1);let f=[];for(let M of p)for(let m=0;mM.yminm.ymin?1:M.xm.x?1:M.ymax===m.ymax?0:(M.ymax-m.ymax)/Math.abs(M.ymax-m.ymax))),!f.length)return u;let g=[],k=f[0].ymin,b=0;for(;g.length||f.length;){if(f.length){let M=-1;for(let m=0;mk);m++)M=m;f.splice(0,M+1).forEach((m=>{g.push({s:k,edge:m})}))}if(g=g.filter((M=>!(M.edge.ymax<=k))),g.sort(((M,m)=>M.edge.x===m.edge.x?0:(M.edge.x-m.edge.x)/Math.abs(M.edge.x-m.edge.x))),(d!==1||b%c==0)&&g.length>1)for(let M=0;M=g.length)break;let P=g[M].edge,x=g[m].edge;u.push([[Math.round(P.x),k],[Math.round(x.x),k]])}k+=d,g.forEach((M=>{M.edge.x=M.edge.x+d*M.edge.islope})),b++}return u})(r,o,e);if(n){for(let l of r)Y(l,h,-n);(function(l,c,d){let p=[];l.forEach((u=>p.push(...u))),Y(p,c,d)})(i,h,-n)}return i}function F(a,t){var s;let e=t.hachureAngle+90,n=t.hachureGap;n<0&&(n=4*t.strokeWidth),n=Math.round(Math.max(n,.1));let o=1;return t.roughness>=1&&(((s=t.randomizer)===null||s===void 0?void 0:s.next())||Math.random())>.7&&(o=n),Wt(a,n,e,o||1)}var q=class{constructor(t){this.helper=t}fillPolygons(t,s){return this._fillPolygons(t,s)}_fillPolygons(t,s){let e=F(t,s);return{type:"fillSketch",ops:this.renderLines(e,s)}}renderLines(t,s){let e=[];for(let n of t)e.push(...this.helper.doubleLineOps(n[0][0],n[0][1],n[1][0],n[1][1],s));return e}};function X(a){let t=a[0],s=a[1];return Math.sqrt(Math.pow(t[0]-s[0],2)+Math.pow(t[1]-s[1],2))}var at=class extends q{fillPolygons(t,s){let e=s.hachureGap;e<0&&(e=4*s.strokeWidth),e=Math.max(e,.1);let n=F(t,Object.assign({},s,{hachureGap:e})),o=Math.PI/180*s.hachureAngle,r=[],h=.5*e*Math.cos(o),i=.5*e*Math.sin(o);for(let[l,c]of n)X([l,c])&&r.push([[l[0]-h,l[1]+i],[...c]],[[l[0]+h,l[1]-i],[...c]]);return{type:"fillSketch",ops:this.renderLines(r,s)}}},ot=class extends q{fillPolygons(t,s){let e=this._fillPolygons(t,s),n=Object.assign({},s,{hachureAngle:s.hachureAngle+90}),o=this._fillPolygons(t,n);return e.ops=e.ops.concat(o.ops),e}},ht=class{constructor(t){this.helper=t}fillPolygons(t,s){let e=F(t,s=Object.assign({},s,{hachureAngle:0}));return this.dotsOnLines(e,s)}dotsOnLines(t,s){let e=[],n=s.hachureGap;n<0&&(n=4*s.strokeWidth),n=Math.max(n,.1);let o=s.fillWeight;o<0&&(o=s.strokeWidth/2);let r=n/4;for(let h of t){let i=X(h),l=i/n,c=Math.ceil(l)-1,d=i-c*n,p=(h[0][0]+h[1][0])/2-n/4,u=Math.min(h[0][1],h[1][1]);for(let f=0;f{let h=X(r),i=Math.floor(h/(e+n)),l=(h+n-i*(e+n))/2,c=r[0],d=r[1];c[0]>d[0]&&(c=r[1],d=r[0]);let p=Math.atan((d[1]-c[1])/(d[0]-c[0]));for(let u=0;u{let r=X(o),h=Math.round(r/(2*s)),i=o[0],l=o[1];i[0]>l[0]&&(i=o[1],l=o[0]);let c=Math.atan((l[1]-i[1])/(l[0]-i[0]));for(let d=0;dc%2?l+s:l+t));o.push({key:"C",data:i}),t=i[4],s=i[5];break}case"Q":o.push({key:"Q",data:[...h]}),t=h[2],s=h[3];break;case"q":{let i=h.map(((l,c)=>c%2?l+s:l+t));o.push({key:"Q",data:i}),t=i[2],s=i[3];break}case"A":o.push({key:"A",data:[...h]}),t=h[5],s=h[6];break;case"a":t+=h[5],s+=h[6],o.push({key:"A",data:[h[0],h[1],h[2],h[3],h[4],t,s]});break;case"H":o.push({key:"H",data:[...h]}),t=h[0];break;case"h":t+=h[0],o.push({key:"H",data:[t]});break;case"V":o.push({key:"V",data:[...h]}),s=h[0];break;case"v":s+=h[0],o.push({key:"V",data:[s]});break;case"S":o.push({key:"S",data:[...h]}),t=h[2],s=h[3];break;case"s":{let i=h.map(((l,c)=>c%2?l+s:l+t));o.push({key:"S",data:i}),t=i[2],s=i[3];break}case"T":o.push({key:"T",data:[...h]}),t=h[0],s=h[1];break;case"t":t+=h[0],s+=h[1],o.push({key:"T",data:[t,s]});break;case"Z":case"z":o.push({key:"Z",data:[]}),t=e,s=n}return o}function Lt(a){let t=[],s="",e=0,n=0,o=0,r=0,h=0,i=0;for(let{key:l,data:c}of a){switch(l){case"M":t.push({key:"M",data:[...c]}),[e,n]=c,[o,r]=c;break;case"C":t.push({key:"C",data:[...c]}),e=c[4],n=c[5],h=c[2],i=c[3];break;case"L":t.push({key:"L",data:[...c]}),[e,n]=c;break;case"H":e=c[0],t.push({key:"L",data:[e,n]});break;case"V":n=c[0],t.push({key:"L",data:[e,n]});break;case"S":{let d=0,p=0;s==="C"||s==="S"?(d=e+(e-h),p=n+(n-i)):(d=e,p=n),t.push({key:"C",data:[d,p,...c]}),h=c[0],i=c[1],e=c[2],n=c[3];break}case"T":{let[d,p]=c,u=0,f=0;s==="Q"||s==="T"?(u=e+(e-h),f=n+(n-i)):(u=e,f=n);let g=e+2*(u-e)/3,k=n+2*(f-n)/3,b=d+2*(u-d)/3,M=p+2*(f-p)/3;t.push({key:"C",data:[g,k,b,M,d,p]}),h=u,i=f,e=d,n=p;break}case"Q":{let[d,p,u,f]=c,g=e+2*(d-e)/3,k=n+2*(p-n)/3,b=u+2*(d-u)/3,M=f+2*(p-f)/3;t.push({key:"C",data:[g,k,b,M,u,f]}),h=d,i=p,e=u,n=f;break}case"A":{let d=Math.abs(c[0]),p=Math.abs(c[1]),u=c[2],f=c[3],g=c[4],k=c[5],b=c[6];d===0||p===0?(t.push({key:"C",data:[e,n,k,b,k,b]}),e=k,n=b):(e!==k||n!==b)&&(Tt(e,n,k,b,d,p,u,f,g).forEach((function(M){t.push({key:"C",data:M})})),e=k,n=b);break}case"Z":t.push({key:"Z",data:[]}),e=o,n=r}s=l}return t}function R(a,t,s){return[a*Math.cos(s)-t*Math.sin(s),a*Math.sin(s)+t*Math.cos(s)]}function Tt(a,t,s,e,n,o,r,h,i,l){let c=(d=r,Math.PI*d/180);var d;let p=[],u=0,f=0,g=0,k=0;if(l)[u,f,g,k]=l;else{[a,t]=R(a,t,-c),[s,e]=R(s,e,-c);let T=(a-s)/2,v=(t-e)/2,_=T*T/(n*n)+v*v/(o*o);_>1&&(_=Math.sqrt(_),n*=_,o*=_);let W=n*n,E=o*o,It=W*E-W*v*v-E*T*T,Ct=W*v*v+E*T*T,kt=(h===i?-1:1)*Math.sqrt(Math.abs(It/Ct));g=kt*n*v/o+(a+s)/2,k=kt*-o*T/n+(t+e)/2,u=Math.asin(parseFloat(((t-k)/o).toFixed(9))),f=Math.asin(parseFloat(((e-k)/o).toFixed(9))),af&&(u-=2*Math.PI),!i&&f>u&&(f-=2*Math.PI)}let b=f-u;if(Math.abs(b)>120*Math.PI/180){let T=f,v=s,_=e;f=i&&f>u?u+120*Math.PI/180*1:u+120*Math.PI/180*-1,p=Tt(s=g+n*Math.cos(f),e=k+o*Math.sin(f),v,_,n,o,r,0,i,[f,T,g,k])}b=f-u;let M=Math.cos(u),m=Math.sin(u),P=Math.cos(f),x=Math.sin(f),w=Math.tan(b/4),L=4/3*n*w,A=4/3*o*w,V=[a,t],D=[a+L*m,t-A*M],C=[s+L*x,e-A*P],Mt=[s,e];if(D[0]=2*V[0]-D[0],D[1]=2*V[1]-D[1],l)return[D,C,Mt].concat(p);{p=[D,C,Mt].concat(p);let T=[];for(let v=0;v2){let n=[];for(let o=0;o2*Math.PI&&(u=0,f=2*Math.PI);let g=2*Math.PI/i.curveStepCount,k=Math.min(g/2,(f-u)/2),b=vt(k,l,c,d,p,u,f,1,i);if(!i.disableMultiStroke){let M=vt(k,l,c,d,p,u,f,1.5,i);b.push(...M)}return r&&(h?b.push(...I(l,c,l+d*Math.cos(u),c+p*Math.sin(u),i),...I(l,c,l+d*Math.cos(f),c+p*Math.sin(f),i)):b.push({op:"lineTo",data:[l,c]},{op:"lineTo",data:[l+d*Math.cos(u),c+p*Math.sin(u)]})),{type:"path",ops:b}}function wt(a,t){let s=Lt(Ot(gt(a))),e=[],n=[0,0],o=[0,0];for(let{key:r,data:h}of s)switch(r){case"M":o=[h[0],h[1]],n=[h[0],h[1]];break;case"L":e.push(...I(o[0],o[1],h[0],h[1],t)),o=[h[0],h[1]];break;case"C":{let[i,l,c,d,p,u]=h;e.push(...Rt(i,l,c,d,p,u,o,t)),o=[p,u];break}case"Z":e.push(...I(o[0],o[1],n[0],n[1],t)),o=[n[0],n[1]]}return{type:"path",ops:e}}function st(a,t){let s=[];for(let e of a)if(e.length){let n=t.maxRandomnessOffset||0,o=e.length;if(o>2){s.push({op:"move",data:[e[0][0]+y(n,t),e[0][1]+y(n,t)]});for(let r=1;r500?.4:-.0016668*i+1.233334;let c=n.maxRandomnessOffset||0;c*c*100>h&&(c=i/10);let d=c/2,p=.2+.2*_t(n),u=n.bowing*n.maxRandomnessOffset*(e-t)/200,f=n.bowing*n.maxRandomnessOffset*(a-s)/200;u=y(u,n,l),f=y(f,n,l);let g=[],k=()=>y(d,n,l),b=()=>y(c,n,l),M=n.preserveVertices;return o&&(r?g.push({op:"move",data:[a+(M?0:k()),t+(M?0:k())]}):g.push({op:"move",data:[a+(M?0:y(c,n,l)),t+(M?0:y(c,n,l))]})),r?g.push({op:"bcurveTo",data:[u+a+(s-a)*p+k(),f+t+(e-t)*p+k(),u+a+2*(s-a)*p+k(),f+t+2*(e-t)*p+k(),s+(M?0:k()),e+(M?0:k())]}):g.push({op:"bcurveTo",data:[u+a+(s-a)*p+b(),f+t+(e-t)*p+b(),u+a+2*(s-a)*p+b(),f+t+2*(e-t)*p+b(),s+(M?0:b()),e+(M?0:b())]}),g}function Q(a,t,s){if(!a.length)return[];let e=[];e.push([a[0][0]+y(t,s),a[0][1]+y(t,s)]),e.push([a[0][0]+y(t,s),a[0][1]+y(t,s)]);for(let n=1;n3){let o=[],r=1-s.curveTightness;n.push({op:"move",data:[a[1][0],a[1][1]]});for(let h=1;h+21&&n.push(h)):n.push(h),n.push(a[t+3])}else{let i=a[t+0],l=a[t+1],c=a[t+2],d=a[t+3],p=z(i,l,.5),u=z(l,c,.5),f=z(c,d,.5),g=z(p,u,.5),k=z(u,f,.5),b=z(g,k,.5);pt([i,p,g,b],0,s,n),pt([b,k,f,d],0,s,n)}var o,r;return n}function qt(a,t){return U(a,0,a.length,t)}function U(a,t,s,e,n){let o=n||[],r=a[t],h=a[s-1],i=0,l=1;for(let c=t+1;ci&&(i=d,l=c)}return Math.sqrt(i)>e?(U(a,t,l+1,e,o),U(a,l,s,e,o)):(o.length||o.push(r),o.push(h)),o}function nt(a,t=.15,s){let e=[],n=(a.length-1)/3;for(let o=0;o0?U(e,0,e.length,s):e}var O="none",$=class{constructor(t){this.defaultOptions={maxRandomnessOffset:2,roughness:1,bowing:1,stroke:"#000",strokeWidth:1,curveTightness:0,curveFitting:.95,curveStepCount:9,fillStyle:"hachure",fillWeight:-1,hachureAngle:-41,hachureGap:-1,dashOffset:-1,dashGap:-1,zigzagOffset:-1,seed:0,disableMultiStroke:!1,disableMultiStrokeFill:!1,preserveVertices:!1,fillShapeRoughnessGain:.8},this.config=t||{},this.config.options&&(this.defaultOptions=this._o(this.config.options))}static newSeed(){return Math.floor(Math.random()*2**31)}_o(t){return t?Object.assign({},this.defaultOptions,t):this.defaultOptions}_d(t,s,e){return{shape:t,sets:s||[],options:e||this.defaultOptions}}line(t,s,e,n,o){let r=this._o(o);return this._d("line",[Dt(t,s,e,n,r)],r)}rectangle(t,s,e,n,o){let r=this._o(o),h=[],i=$t(t,s,e,n,r);if(r.fill){let l=[[t,s],[t+e,s],[t+e,s+n],[t,s+n]];r.fillStyle==="solid"?h.push(st([l],r)):h.push(G([l],r))}return r.stroke!==O&&h.push(i),this._d("rectangle",h,r)}ellipse(t,s,e,n,o){let r=this._o(o),h=[],i=At(e,n,r),l=lt(t,s,r,i);if(r.fill)if(r.fillStyle==="solid"){let c=lt(t,s,r,i).opset;c.type="fillPath",h.push(c)}else h.push(G([l.estimatedPoints],r));return r.stroke!==O&&h.push(l.opset),this._d("ellipse",h,r)}circle(t,s,e,n){let o=this.ellipse(t,s,e,e,n);return o.shape="circle",o}linearPath(t,s){let e=this._o(s);return this._d("linearPath",[N(t,!1,e)],e)}arc(t,s,e,n,o,r,h=!1,i){let l=this._o(i),c=[],d=mt(t,s,e,n,o,r,h,!0,l);if(h&&l.fill)if(l.fillStyle==="solid"){let p=Object.assign({},l);p.disableMultiStroke=!0;let u=mt(t,s,e,n,o,r,!0,!1,p);u.type="fillPath",c.push(u)}else c.push((function(p,u,f,g,k,b,M){let m=p,P=u,x=Math.abs(f/2),w=Math.abs(g/2);x+=y(.01*x,M),w+=y(.01*w,M);let L=k,A=b;for(;L<0;)L+=2*Math.PI,A+=2*Math.PI;A-L>2*Math.PI&&(L=0,A=2*Math.PI);let V=(A-L)/M.curveStepCount,D=[];for(let C=L;C<=A;C+=V)D.push([m+x*Math.cos(C),P+w*Math.sin(C)]);return D.push([m+x*Math.cos(A),P+w*Math.sin(A)]),D.push([m,P]),G([D],M)})(t,s,e,n,o,r,l));return l.stroke!==O&&c.push(d),this._d("arc",c,l)}curve(t,s){let e=this._o(s),n=[],o=yt(t,e);if(e.fill&&e.fill!==O)if(e.fillStyle==="solid"){let r=yt(t,Object.assign(Object.assign({},e),{disableMultiStroke:!0,roughness:e.roughness?e.roughness+e.fillShapeRoughnessGain:0}));n.push({type:"fillPath",ops:this._mergedShape(r.ops)})}else{let r=[],h=t;if(h.length){let i=typeof h[0][0]=="number"?[h]:h;for(let l of i)l.length<3?r.push(...l):l.length===3?r.push(...nt(St([l[0],l[0],l[1],l[2]]),10,(1+e.roughness)/2)):r.push(...nt(St(l),10,(1+e.roughness)/2))}r.length&&n.push(G([r],e))}return e.stroke!==O&&n.push(o),this._d("curve",n,e)}polygon(t,s){let e=this._o(s),n=[],o=N(t,!0,e);return e.fill&&(e.fillStyle==="solid"?n.push(st([t],e)):n.push(G([t],e))),e.stroke!==O&&n.push(o),this._d("polygon",n,e)}path(t,s){let e=this._o(s),n=[];if(!t)return this._d("path",n,e);t=(t||"").replace(/\n/g," ").replace(/(-\s)/g,"-").replace("/(ss)/g"," ");let o=e.fill&&e.fill!=="transparent"&&e.fill!==O,r=e.stroke!==O,h=!!(e.simplification&&e.simplification<1),i=(function(c,d,p){let u=Lt(Ot(gt(c))),f=[],g=[],k=[0,0],b=[],M=()=>{b.length>=4&&g.push(...nt(b,d)),b=[]},m=()=>{M(),g.length&&(f.push(g),g=[])};for(let{key:x,data:w}of u)switch(x){case"M":m(),k=[w[0],w[1]],g.push(k);break;case"L":M(),g.push([w[0],w[1]]);break;case"C":if(!b.length){let L=g.length?g[g.length-1]:k;b.push([L[0],L[1]])}b.push([w[0],w[1]]),b.push([w[2],w[3]]),b.push([w[4],w[5]]);break;case"Z":M(),g.push([k[0],k[1]])}if(m(),!p)return f;let P=[];for(let x of f){let w=qt(x,p);w.length&&P.push(w)}return P})(t,1,h?4-4*(e.simplification||1):(1+e.roughness)/2),l=wt(t,e);if(o)if(e.fillStyle==="solid")if(i.length===1){let c=wt(t,Object.assign(Object.assign({},e),{disableMultiStroke:!0,roughness:e.roughness?e.roughness+e.fillShapeRoughnessGain:0}));n.push({type:"fillPath",ops:this._mergedShape(c.ops)})}else n.push(st(i,e));else n.push(G(i,e));return r&&(h?i.forEach((c=>{n.push(N(c,!1,e))})):n.push(l)),this._d("path",n,e)}opsToPath(t,s){let e="";for(let n of t.ops){let o=typeof s=="number"&&s>=0?n.data.map((r=>+r.toFixed(s))):n.data;switch(n.op){case"move":e+=`M${o[0]} ${o[1]} `;break;case"bcurveTo":e+=`C${o[0]} ${o[1]}, ${o[2]} ${o[3]}, ${o[4]} ${o[5]} `;break;case"lineTo":e+=`L${o[0]} ${o[1]} `}}return e.trim()}toPaths(t){let s=t.sets||[],e=t.options||this.defaultOptions,n=[];for(let o of s){let r=null;switch(o.type){case"path":r={d:this.opsToPath(o),stroke:e.stroke,strokeWidth:e.strokeWidth,fill:O};break;case"fillPath":r={d:this.opsToPath(o),stroke:O,strokeWidth:0,fill:e.fill||O};break;case"fillSketch":r=this.fillSketch(o,e)}r&&n.push(r)}return n}fillSketch(t,s){let e=s.fillWeight;return e<0&&(e=s.strokeWidth/2),{d:this.opsToPath(t),stroke:s.fill||O,strokeWidth:e,fill:O}}_mergedShape(t){return t.filter(((s,e)=>e===0||s.op!=="move"))}},ft=class{constructor(t,s){this.canvas=t,this.ctx=this.canvas.getContext("2d"),this.gen=new $(s)}draw(t){let s=t.sets||[],e=t.options||this.getDefaultOptions(),n=this.ctx,o=t.options.fixedDecimalPlaceDigits;for(let r of s)switch(r.type){case"path":n.save(),n.strokeStyle=e.stroke==="none"?"transparent":e.stroke,n.lineWidth=e.strokeWidth,e.strokeLineDash&&n.setLineDash(e.strokeLineDash),e.strokeLineDashOffset&&(n.lineDashOffset=e.strokeLineDashOffset),this._drawToContext(n,r,o),n.restore();break;case"fillPath":{n.save(),n.fillStyle=e.fill||"";let h=t.shape==="curve"||t.shape==="polygon"||t.shape==="path"?"evenodd":"nonzero";this._drawToContext(n,r,o,h),n.restore();break}case"fillSketch":this.fillSketch(n,r,e)}}fillSketch(t,s,e){let n=e.fillWeight;n<0&&(n=e.strokeWidth/2),t.save(),e.fillLineDash&&t.setLineDash(e.fillLineDash),e.fillLineDashOffset&&(t.lineDashOffset=e.fillLineDashOffset),t.strokeStyle=e.fill||"",t.lineWidth=n,this._drawToContext(t,s,e.fixedDecimalPlaceDigits),t.restore()}_drawToContext(t,s,e,n="nonzero"){t.beginPath();for(let o of s.ops){let r=typeof e=="number"&&e>=0?o.data.map((h=>+h.toFixed(e))):o.data;switch(o.op){case"move":t.moveTo(r[0],r[1]);break;case"bcurveTo":t.bezierCurveTo(r[0],r[1],r[2],r[3],r[4],r[5]);break;case"lineTo":t.lineTo(r[0],r[1])}}s.type==="fillPath"?t.fill(n):t.stroke()}get generator(){return this.gen}getDefaultOptions(){return this.gen.defaultOptions}line(t,s,e,n,o){let r=this.gen.line(t,s,e,n,o);return this.draw(r),r}rectangle(t,s,e,n,o){let r=this.gen.rectangle(t,s,e,n,o);return this.draw(r),r}ellipse(t,s,e,n,o){let r=this.gen.ellipse(t,s,e,n,o);return this.draw(r),r}circle(t,s,e,n){let o=this.gen.circle(t,s,e,n);return this.draw(o),o}linearPath(t,s){let e=this.gen.linearPath(t,s);return this.draw(e),e}polygon(t,s){let e=this.gen.polygon(t,s);return this.draw(e),e}arc(t,s,e,n,o,r,h=!1,i){let l=this.gen.arc(t,s,e,n,o,r,h,i);return this.draw(l),l}curve(t,s){let e=this.gen.curve(t,s);return this.draw(e),e}path(t,s){let e=this.gen.path(t,s);return this.draw(e),e}},H="http://www.w3.org/2000/svg",dt=class{constructor(t,s){this.svg=t,this.gen=new $(s)}draw(t){let s=t.sets||[],e=t.options||this.getDefaultOptions(),n=this.svg.ownerDocument||window.document,o=n.createElementNS(H,"g"),r=t.options.fixedDecimalPlaceDigits;for(let h of s){let i=null;switch(h.type){case"path":i=n.createElementNS(H,"path"),i.setAttribute("d",this.opsToPath(h,r)),i.setAttribute("stroke",e.stroke),i.setAttribute("stroke-width",e.strokeWidth+""),i.setAttribute("fill","none"),e.strokeLineDash&&i.setAttribute("stroke-dasharray",e.strokeLineDash.join(" ").trim()),e.strokeLineDashOffset&&i.setAttribute("stroke-dashoffset",`${e.strokeLineDashOffset}`);break;case"fillPath":i=n.createElementNS(H,"path"),i.setAttribute("d",this.opsToPath(h,r)),i.setAttribute("stroke","none"),i.setAttribute("stroke-width","0"),i.setAttribute("fill",e.fill||""),t.shape!=="curve"&&t.shape!=="polygon"||i.setAttribute("fill-rule","evenodd");break;case"fillSketch":i=this.fillSketch(n,h,e)}i&&o.appendChild(i)}return o}fillSketch(t,s,e){let n=e.fillWeight;n<0&&(n=e.strokeWidth/2);let o=t.createElementNS(H,"path");return o.setAttribute("d",this.opsToPath(s,e.fixedDecimalPlaceDigits)),o.setAttribute("stroke",e.fill||""),o.setAttribute("stroke-width",n+""),o.setAttribute("fill","none"),e.fillLineDash&&o.setAttribute("stroke-dasharray",e.fillLineDash.join(" ").trim()),e.fillLineDashOffset&&o.setAttribute("stroke-dashoffset",`${e.fillLineDashOffset}`),o}get generator(){return this.gen}getDefaultOptions(){return this.gen.defaultOptions}opsToPath(t,s){return this.gen.opsToPath(t,s)}line(t,s,e,n,o){let r=this.gen.line(t,s,e,n,o);return this.draw(r)}rectangle(t,s,e,n,o){let r=this.gen.rectangle(t,s,e,n,o);return this.draw(r)}ellipse(t,s,e,n,o){let r=this.gen.ellipse(t,s,e,n,o);return this.draw(r)}circle(t,s,e,n){let o=this.gen.circle(t,s,e,n);return this.draw(o)}linearPath(t,s){let e=this.gen.linearPath(t,s);return this.draw(e)}polygon(t,s){let e=this.gen.polygon(t,s);return this.draw(e)}arc(t,s,e,n,o,r,h=!1,i){let l=this.gen.arc(t,s,e,n,o,r,h,i);return this.draw(l)}curve(t,s){let e=this.gen.curve(t,s);return this.draw(e)}path(t,s){let e=this.gen.path(t,s);return this.draw(e)}},Ft={canvas:(a,t)=>new ft(a,t),svg:(a,t)=>new dt(a,t),generator:a=>new $(a),newSeed:()=>$.newSeed()};export{Ft as a}; diff --git a/src/frontend/web/von_interface/static/vendor/conversation-visuals/chunk-IVPOI5SM.js b/src/frontend/web/von_interface/static/vendor/conversation-visuals/chunk-IVPOI5SM.js new file mode 100644 index 000000000..a4ecb3217 --- /dev/null +++ b/src/frontend/web/von_interface/static/vendor/conversation-visuals/chunk-IVPOI5SM.js @@ -0,0 +1 @@ +import{$ as c}from"./chunk-S4JILX6U.js";import{a as i}from"./chunk-YUSHYV7C.js";var S=i(t=>{let{handDrawnSeed:e}=c();return{fill:t,hachureAngle:120,hachureGap:1.5,fillWeight:1.5,roughness:.7,stroke:t,seed:e}},"solidStateFill"),p=i(t=>Array.isArray(t)?t:t?t.split(";").map(e=>e.trim()).filter(Boolean):[],"normalizeStyleList"),h=i(t=>{let e=f([...t.cssCompiledStyles||[],...t.cssStyles||[],...p(t.labelStyle)]);return{stylesMap:e,stylesArray:[...e]}},"compileStyles"),f=i(t=>{let e=new Map;return t.forEach(o=>{let[a,s]=o.split(":");e.set(a.trim(),s?.trim())}),e},"styles2Map"),u=i(t=>t==="color"||t==="font-size"||t==="font-family"||t==="font-weight"||t==="font-style"||t==="text-decoration"||t==="text-align"||t==="text-transform"||t==="line-height"||t==="letter-spacing"||t==="word-spacing"||t==="text-shadow"||t==="text-overflow"||t==="white-space"||t==="word-wrap"||t==="word-break"||t==="overflow-wrap"||t==="hyphens","isLabelStyle"),v=i(t=>{let{stylesArray:e}=h(t),o=[],a=[],s=[],n=[];return e.forEach(r=>{let l=r[0];u(l)?o.push(r.join(":")+" !important"):(a.push(r.join(":")+" !important"),l.includes("stroke")&&s.push(r.join(":")+" !important"),l==="fill"&&n.push(r.join(":")+" !important"))}),{labelStyles:o.join(";"),nodeStyles:a.join(";"),stylesArray:e,borderStyles:s,backgroundStyles:n}},"styles2String"),w=i((t,e)=>{let{themeVariables:o,handDrawnSeed:a}=c(),{nodeBorder:s,mainBkg:n}=o,{stylesMap:r}=h(t);return Object.assign({roughness:.7,fill:r.get("fill")||n,fillStyle:"hachure",fillWeight:1.5,hachureGap:1.5,stroke:r.get("stroke")||s,seed:a,strokeWidth:r.get("stroke-width")?.replace("px","")||1.3,fillLineDash:[0,0],strokeLineDash:d(r.get("stroke-dasharray"))},e)},"userNodeOverrides"),d=i(t=>{if(!t)return[0,0];let e=t.trim().split(/\s+/).map(Number);if(e.length===1){let s=isNaN(e[0])?0:e[0];return[s,s]}let o=isNaN(e[0])?0:e[0],a=isNaN(e[1])?0:e[1];return[o,a]},"getStrokeDashArray");export{S as a,h as b,u as c,v as d,w as e}; diff --git a/src/frontend/web/von_interface/static/vendor/conversation-visuals/chunk-JYJEQ7QO.js b/src/frontend/web/von_interface/static/vendor/conversation-visuals/chunk-JYJEQ7QO.js new file mode 100644 index 000000000..02f98deb5 --- /dev/null +++ b/src/frontend/web/von_interface/static/vendor/conversation-visuals/chunk-JYJEQ7QO.js @@ -0,0 +1,2 @@ +var $a=Array.isArray,s=$a;function Ya(r){return r}var P=Ya;var Za=typeof global=="object"&&global&&global.Object===Object&&global,qr=Za;var Va=typeof self=="object"&&self&&self.Object===Object&&self,Ja=qr||Va||Function("return this")(),y=Ja;var Xa=y.Symbol,A=Xa;var zt=Object.prototype,Qa=zt.hasOwnProperty,ka=zt.toString,Br=A?A.toStringTag:void 0;function rf(r){var t=Qa.call(r,Br),e=r[Br];try{r[Br]=void 0;var o=!0}catch{}var a=ka.call(r);return o&&(t?r[Br]=e:delete r[Br]),a}var $t=rf;var tf=Object.prototype,ef=tf.toString;function of(r){return ef.call(r)}var Yt=of;var af="[object Null]",ff="[object Undefined]",Zt=A?A.toStringTag:void 0;function nf(r){return r==null?r===void 0?ff:af:Zt&&Zt in Object(r)?$t(r):Yt(r)}var _=nf;function pf(r){var t=typeof r;return r!=null&&(t=="object"||t=="function")}var g=pf;var mf="[object AsyncFunction]",uf="[object Function]",sf="[object GeneratorFunction]",lf="[object Proxy]";function df(r){if(!g(r))return!1;var t=_(r);return t==uf||t==sf||t==mf||t==lf}var mr=df;function xf(){}var Mt=xf;function cf(r){return function(){return r}}var jt=cf;function gf(r,t){for(var e=-1,o=Array(r);++e-1&&r%1==0&&r-1&&r%1==0&&r<=Ef}var dr=Mf;var jf="[object Arguments]",Lf="[object Array]",Rf="[object Boolean]",Ff="[object Date]",Bf="[object Error]",Nf="[object Function]",Df="[object Map]",Gf="[object Number]",Uf="[object Object]",Kf="[object RegExp]",Wf="[object Set]",Hf="[object String]",qf="[object WeakMap]",zf="[object ArrayBuffer]",$f="[object DataView]",Yf="[object Float32Array]",Zf="[object Float64Array]",Vf="[object Int8Array]",Jf="[object Int16Array]",Xf="[object Int32Array]",Qf="[object Uint8Array]",kf="[object Uint8ClampedArray]",rn="[object Uint16Array]",tn="[object Uint32Array]",h={};h[Yf]=h[Zf]=h[Vf]=h[Jf]=h[Xf]=h[Qf]=h[kf]=h[rn]=h[tn]=!0;h[jf]=h[Lf]=h[zf]=h[Rf]=h[$f]=h[Ff]=h[Bf]=h[Nf]=h[Df]=h[Gf]=h[Uf]=h[Kf]=h[Wf]=h[Hf]=h[qf]=!1;function en(r){return b(r)&&dr(r.length)&&!!h[_(r)]}var te=en;function on(r){return function(t){return r(t)}}var N=on;var ee=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Nr=ee&&typeof module=="object"&&module&&!module.nodeType&&module,an=Nr&&Nr.exports===ee,Rt=an&&qr.process,fn=(function(){try{var r=Nr&&Nr.require&&Nr.require("util").types;return r||Rt&&Rt.binding&&Rt.binding("util")}catch{}})(),D=fn;var oe=D&&D.isTypedArray,nn=oe?N(oe):te,rr=nn;var pn=Object.prototype,mn=pn.hasOwnProperty;function un(r,t){var e=s(r),o=!e&&K(r),a=!e&&!o&&W(r),f=!e&&!o&&!a&&rr(r),n=e||o||a||f,i=n?Vt(r.length,String):[],p=i.length;for(var m in r)(t||mn.call(r,m))&&!(n&&(m=="length"||a&&(m=="offset"||m=="parent")||f&&(m=="buffer"||m=="byteLength"||m=="byteOffset")||k(m,p)))&&i.push(m);return i}var zr=un;var sn=Object.prototype;function ln(r){var t=r&&r.constructor,e=typeof t=="function"&&t.prototype||sn;return r===e}var H=ln;function dn(r,t){return function(e){return r(t(e))}}var $r=dn;var xn=$r(Object.keys,Object),ae=xn;var cn=Object.prototype,gn=cn.hasOwnProperty;function hn(r){if(!H(r))return ae(r);var t=[];for(var e in Object(r))gn.call(r,e)&&e!="constructor"&&t.push(e);return t}var xr=hn;function bn(r){return r!=null&&dr(r.length)&&!mr(r)}var v=bn;function yn(r){return v(r)?zr(r):xr(r)}var w=yn;var vn=y["__core-js_shared__"],Yr=vn;var fe=(function(){var r=/[^.]+$/.exec(Yr&&Yr.keys&&Yr.keys.IE_PROTO||"");return r?"Symbol(src)_1."+r:""})();function An(r){return!!fe&&fe in r}var ne=An;var On=Function.prototype,Tn=On.toString;function _n(r){if(r!=null){try{return Tn.call(r)}catch{}try{return r+""}catch{}}return""}var X=_n;var wn=/[\\^$.*+?()[\]{}|]/g,Sn=/^\[object .+?Constructor\]$/,In=Function.prototype,Pn=Object.prototype,Cn=In.toString,En=Pn.hasOwnProperty,Mn=RegExp("^"+Cn.call(En).replace(wn,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function jn(r){if(!g(r)||ne(r))return!1;var t=mr(r)?Mn:Sn;return t.test(X(r))}var ie=jn;function Ln(r,t){return r?.[t]}var pe=Ln;function Rn(r,t){var e=pe(r,t);return ie(e)?e:void 0}var E=Rn;var Fn=(function(){try{var r=E(Object,"defineProperty");return r({},"",{}),r}catch{}})(),cr=Fn;function Bn(r,t,e){t=="__proto__"&&cr?cr(r,t,{configurable:!0,enumerable:!0,value:e,writable:!0}):r[t]=e}var q=Bn;function Nn(r,t){return r===t||r!==r&&t!==t}var G=Nn;var Dn=Object.prototype,Gn=Dn.hasOwnProperty;function Un(r,t,e){var o=r[t];(!(Gn.call(r,t)&&G(o,e))||e===void 0&&!(t in r))&&q(r,t,e)}var z=Un;function Kn(r,t,e,o){var a=!e;e||(e={});for(var f=-1,n=t.length;++f0){if(++t>=zn)return arguments[0]}else t=0;return r.apply(void 0,arguments)}}var le=Zn;var Vn=le(se),Vr=Vn;function Jn(r,t){return Vr(Zr(r,t,P),r+"")}var $=Jn;function Xn(r,t,e){if(!g(e))return!1;var o=typeof t;return(o=="number"?v(e)&&k(t,e.length):o=="string"&&t in e)?G(e[t],r):!1}var R=Xn;function Qn(r){return $(function(t,e){var o=-1,a=e.length,f=a>1?e[a-1]:void 0,n=a>2?e[2]:void 0;for(f=r.length>3&&typeof f=="function"?(a--,f):void 0,n&&R(e[0],e[1],n)&&(f=a<3?void 0:f,a=1),t=Object(t);++o-1}var ge=mi;function ui(r,t){var e=this.__data__,o=tr(e,r);return o<0?(++this.size,e.push([r,t])):e[o][1]=t,this}var he=ui;function gr(r){var t=-1,e=r==null?0:r.length;for(this.clear();++t2?t[2]:void 0;for(a&&R(t[0],t[1],a)&&(o=1);++ei))return!1;var m=f.get(r),u=f.get(t);if(m&&u)return m==t&&u==r;var l=-1,d=!0,S=e&Jm?new Cr:void 0;for(f.set(r,t),f.set(t,r);++lt}var $o=Is;function Ps(r){return r&&r.length?Lr(r,P,$o):void 0}var Cs=Ps;function Es(r,t,e){(e!==void 0&&!G(r[t],e)||e===void 0&&!(t in r))&&q(r,t,e)}var Ur=Es;function Ms(r){return b(r)&&v(r)}var lr=Ms;var js="[object Object]",Ls=Function.prototype,Rs=Object.prototype,Yo=Ls.toString,Fs=Rs.hasOwnProperty,Bs=Yo.call(Object);function Ns(r){if(!b(r)||_(r)!=js)return!1;var t=Tr(r);if(t===null)return!0;var e=Fs.call(t,"constructor")&&t.constructor;return typeof e=="function"&&e instanceof e&&Yo.call(e)==Bs}var Zo=Ns;function Ds(r,t){if(!(t==="constructor"&&typeof r[t]=="function")&&t!="__proto__")return r[t]}var Kr=Ds;function Gs(r){return U(r,M(r))}var Vo=Gs;function Us(r,t,e,o,a,f,n){var i=Kr(r,e),p=Kr(t,e),m=n.get(p);if(m){Ur(r,e,m);return}var u=f?f(i,p,e+"",r,t,n):void 0,l=u===void 0;if(l){var d=s(p),S=!d&&W(p),O=!d&&!S&&rr(p);u=p,d||S||O?s(i)?u=i:lr(i)?u=kr(i):S?(l=!1,u=Qr(p,!0)):O?(l=!1,u=it(p,!0)):u=[]:Zo(p)||K(p)?(u=i,K(i)?u=Vo(i):(!g(i)||mr(i))&&(u=pt(p))):l=!1}l&&(n.set(p,u),a(u,p,o,f,n),n.delete(p)),Ur(r,e,u)}var Jo=Us;function Xo(r,t,e,o,a){r!==t&&Sr(t,function(f,n){if(a||(a=new Y),g(f))Jo(r,t,n,e,Xo,o,a);else{var i=o?o(Kr(r,n),f,n+"",r,t,a):void 0;i===void 0&&(i=f),Ur(r,n,i)}},M)}var Qo=Xo;var Ks=Jr(function(r,t,e){Qo(r,t,e)}),Ws=Ks;function Hs(r,t,e,o){if(!g(r))return r;t=nr(t,r);for(var a=-1,f=t.length,n=f-1,i=r;i!=null&&++a0&&e(i)?t>1?oa(i,t-1,e,o,a):Or(a,i):o||(a[a.length]=i)}return a}var V=oa;function Ys(r){var t=r==null?0:r.length;return t?V(r,1):[]}var Kt=Ys;function Zs(r){return Vr(Zr(r,void 0,Kt),r+"")}var aa=Zs;var Vs=aa(function(r,t){return r==null?{}:ra(r,t)}),Js=Vs;function Xs(r,t,e,o){var a=-1,f=r==null?0:r.length;for(o&&f&&(e=r[++a]);++a-1}var St=ml;function ul(r,t,e){for(var o=-1,a=r==null?0:r.length;++o=dl){var m=t?null:ua(r);if(m)return Mr(m);n=!1,a=Er,p=new Cr}else p=t?[]:i;r:for(;++oa?0:a+t),e=e>a?a:e,e<0&&(e+=a),a=t>e?0:e-t>>>0,t>>>=0;for(var f=Array(a);++o=Jl&&(f=Er,n=!1,t=new Cr(t));r:for(;++a-1?a[f?t[n]:n]:void 0}}var Ta=pd;var md=Math.max;function ud(r,t,e){var o=r==null?0:r.length;if(!o)return-1;var a=e==null?0:J(e);return a<0&&(a=md(o+a,0)),wt(r,c(t,3),a)}var _a=ud;var sd=Ta(_a),ld=sd;function dd(r){return r&&r.length?r[0]:void 0}var wa=dd;function xd(r,t){return V(Gt(r,t),1)}var cd=xd;function gd(r,t){return r==null?r:Sr(r,Pr(t),M)}var hd=gd;function bd(r,t){return r&&Ir(r,Pr(t))}var yd=bd;var vd=Object.prototype,Ad=vd.hasOwnProperty,Od=ya(function(r,t,e){Ad.call(r,e)?r[e].push(t):q(r,e,[t])}),Td=Od;var _d=Math.max;function wd(r,t,e,o){r=v(r)?r:Ut(r),e=e&&!o?J(e):0;var a=r.length;return e<0&&(e=_d(a+e,0)),Gr(r)?e<=a&&r.indexOf(t,e)>-1:!!a&&Rr(r,t,e)>-1}var Sd=wd;var Id=Math.max;function Pd(r,t,e){var o=r==null?0:r.length;if(!o)return-1;var a=e==null?0:J(e);return a<0&&(a=Id(o+a,0)),Rr(r,t,a)}var Cd=Pd;var Ed="[object RegExp]";function Md(r){return b(r)&&_(r)==Ed}var Sa=Md;var Ia=D&&D.isRegExp,jd=Ia?N(Ia):Sa,Ld=jd;function Rd(r,t){return rt||f&&n&&p&&!i&&!m||o&&n&&p||!e&&p||!a)return 1;if(!o&&!f&&!m&&r=i)return p;var m=e[o];return p*(m=="desc"?-1:1)}}return r.index-t.index}var Ea=Hd;function qd(r,t,e){t.length?t=L(t,function(f){return s(f)?function(n){return ir(n,f.length===1?f[0]:f)}:f}):t=[P];var o=-1;t=L(t,N(c));var a=Tt(r,function(f,n,i){var p=L(t,function(m){return m(f)});return{criteria:p,index:++o,value:f}});return Pa(a,function(f,n){return Ea(f,n,e)})}var Ma=qd;var zd=Ot("length"),ja=zd;var Ra="\\ud800-\\udfff",$d="\\u0300-\\u036f",Yd="\\ufe20-\\ufe2f",Zd="\\u20d0-\\u20ff",Vd=$d+Yd+Zd,Jd="\\ufe0e\\ufe0f",Xd="["+Ra+"]",Wt="["+Vd+"]",Ht="\\ud83c[\\udffb-\\udfff]",Qd="(?:"+Wt+"|"+Ht+")",Fa="[^"+Ra+"]",Ba="(?:\\ud83c[\\udde6-\\uddff]){2}",Na="[\\ud800-\\udbff][\\udc00-\\udfff]",kd="\\u200d",Da=Qd+"?",Ga="["+Jd+"]?",rx="(?:"+kd+"(?:"+[Fa,Ba,Na].join("|")+")"+Ga+Da+")*",tx=Ga+Da+rx,ex="(?:"+[Fa+Wt+"?",Wt,Ba,Na,Xd].join("|")+")",La=RegExp(Ht+"(?="+Ht+")|"+ex+tx,"g");function ox(r){for(var t=La.lastIndex=0;La.test(r);)++t;return t}var Ua=ox;function ax(r){return ga(r)?Ua(r):ja(r)}var Ka=ax;var fx=Math.ceil,nx=Math.max;function ix(r,t,e,o){for(var a=-1,f=nx(fx((t-r)/(e||1)),0),n=Array(f);f--;)n[o?f:++a]=r,r+=e;return n}var Wa=ix;function px(r){return function(t,e,o){return o&&typeof o!="number"&&R(t,e,o)&&(e=o=void 0),t=Fr(t),e===void 0?(e=t,t=0):e=Fr(e),o=o===void 0?t1&&R(r,t[0],t[1])?t=[]:e>2&&R(t[0],t[1],t[2])&&(t=[t[0]]),Ma(r,V(t,1),[])}),yx=bx;function vx(r){return r&&r.length?Pt(r):[]}var Ax=vx;var Ox=0;function Tx(r){var t=++Ox;return yt(r)+t}var _x=Tx;function wx(r,t,e){for(var o=-1,a=r.length,f=t.length,n={};++o + * Build: `lodash modularize exports="es" --repo lodash/lodash#4.18.1 -o ./` + * Copyright OpenJS Foundation and other contributors + * Released under MIT license + * Based on Underscore.js 1.8.3 + * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors + */ diff --git a/src/frontend/web/von_interface/static/vendor/conversation-visuals/chunk-K6AAXKM5.js b/src/frontend/web/von_interface/static/vendor/conversation-visuals/chunk-K6AAXKM5.js new file mode 100644 index 000000000..82ea8c7ce --- /dev/null +++ b/src/frontend/web/von_interface/static/vendor/conversation-visuals/chunk-K6AAXKM5.js @@ -0,0 +1 @@ +import{a as e,b as o,c as n,d as i,e as s,g as u,n as d,w as l,y as c}from"./chunk-RVPSGR2P.js";var m=class extends c{static{e(this,"PieTokenBuilder")}constructor(){super(["pie","showData"])}},v=class extends l{static{e(this,"PieValueConverter")}runCustomConverter(t,r,a){if(t.name==="PIE_SECTION_LABEL")return r.replace(/"/g,"").trim()}},C={parser:{TokenBuilder:e(()=>new m,"TokenBuilder"),ValueConverter:e(()=>new v,"ValueConverter")}};function P(t=s){let r=i(n(t),u),a=i(o({shared:r}),d,C);return r.ServiceRegistry.register(a),{shared:r,Pie:a}}e(P,"createPieServices");export{C as a,P as b}; diff --git a/src/frontend/web/von_interface/static/vendor/conversation-visuals/chunk-KCWUFFIE.js b/src/frontend/web/von_interface/static/vendor/conversation-visuals/chunk-KCWUFFIE.js new file mode 100644 index 000000000..8cfe15a41 --- /dev/null +++ b/src/frontend/web/von_interface/static/vendor/conversation-visuals/chunk-KCWUFFIE.js @@ -0,0 +1 @@ +import{a as e,b as d,c as o,d as a,e as n,g as i,o as u,x as l,y as s}from"./chunk-RVPSGR2P.js";var m=class extends s{static{e(this,"RadarTokenBuilder")}constructor(){super(["radar-beta"])}},v={parser:{TokenBuilder:e(()=>new m,"TokenBuilder"),ValueConverter:e(()=>new l,"ValueConverter")}};function R(c=n){let r=a(o(c),i),t=a(d({shared:r}),u,v);return r.ServiceRegistry.register(t),{shared:r,Radar:t}}e(R,"createRadarServices");export{v as a,R as b}; diff --git a/src/frontend/web/von_interface/static/vendor/conversation-visuals/chunk-KVFXNR4L.js b/src/frontend/web/von_interface/static/vendor/conversation-visuals/chunk-KVFXNR4L.js new file mode 100644 index 000000000..05c47587e --- /dev/null +++ b/src/frontend/web/von_interface/static/vendor/conversation-visuals/chunk-KVFXNR4L.js @@ -0,0 +1 @@ +import{a as t,b as s,c as o,d as a,e as m,g as d,u as c,w as u,y as T}from"./chunk-RVPSGR2P.js";var l=class extends u{static{t(this,"TreeViewValueConverter")}runCustomConverter(r,e,n){if(r.name==="INDENTATION")return e?.length||0;if(r.name==="QUOTED_NAME")return e.substring(1,e.length-1);if(r.name==="BARE_NAME")return e.replace(/[\t ]+$/,"");if(r.name==="CLASS_ANNOTATION")return e.trim().substring(3).trim();if(r.name==="ICON_ANNOTATION"){let i=e.trim();return i.substring(5,i.length-1)}if(r.name==="DESC_ANNOTATION")return e.trim().substring(2).trim()}},N=class extends T{static{t(this,"TreeViewTokenBuilder")}constructor(){super(["treeView-beta"])}},V={parser:{TokenBuilder:t(()=>new N,"TokenBuilder"),ValueConverter:t(()=>new l,"ValueConverter")}};function v(r=m){let e=a(o(r),d),n=a(s({shared:e}),c,V);return e.ServiceRegistry.register(n),{shared:e,TreeView:n}}t(v,"createTreeViewServices");export{V as a,v as b}; diff --git a/src/frontend/web/von_interface/static/vendor/conversation-visuals/chunk-L56KSVJM.js b/src/frontend/web/von_interface/static/vendor/conversation-visuals/chunk-L56KSVJM.js new file mode 100644 index 000000000..a1658fd6b --- /dev/null +++ b/src/frontend/web/von_interface/static/vendor/conversation-visuals/chunk-L56KSVJM.js @@ -0,0 +1 @@ +import{a as x}from"./chunk-QSTT4QQC.js";import{H as d}from"./chunk-S4JILX6U.js";import{h as o}from"./chunk-XEQL7KGA.js";import{a as i}from"./chunk-YUSHYV7C.js";import{c as p}from"./chunk-3RNHDNP5.js";var l=p(x(),1);var c=i((r,t)=>{let e=r.append("rect");if(e.attr("x",t.x),e.attr("y",t.y),e.attr("fill",t.fill),e.attr("stroke",t.stroke),e.attr("width",t.width),e.attr("height",t.height),t.name&&e.attr("name",t.name),t.rx&&e.attr("rx",t.rx),t.ry&&e.attr("ry",t.ry),t.attrs!==void 0)for(let s in t.attrs)e.attr(s,t.attrs[s]);return t.class&&e.attr("class",t.class),e},"drawRect"),f=i((r,t)=>{let e={x:t.startx,y:t.starty,width:t.stopx-t.startx,height:t.stopy-t.starty,fill:t.fill,stroke:t.stroke,class:"rect"};c(r,e).lower()},"drawBackgroundRect"),h=i((r,t)=>{let e=t.text.replace(d," "),s=r.append("text");s.attr("x",t.x),s.attr("y",t.y),s.attr("class","legend"),s.style("text-anchor",t.anchor),t.class&&s.attr("class",t.class);let a=s.append("tspan");return a.attr("x",t.x+t.textMargin*2),a.text(e),s},"drawText"),w=i((r,t,e,s)=>{let a=r.append("image");a.attr("x",t),a.attr("y",e);let n=(0,l.sanitizeUrl)(s);a.attr("xlink:href",n)},"drawImage"),k=i((r,t,e,s)=>{let a=r.append("use");a.attr("x",t),a.attr("y",e);let n=(0,l.sanitizeUrl)(s);a.attr("xlink:href",`#${n}`)},"drawEmbeddedImage"),v=i(()=>({x:0,y:0,width:100,height:100,fill:"#EDF2AE",stroke:"#666",anchor:"start",rx:0,ry:0}),"getNoteRect"),E=i(()=>({x:0,y:0,width:100,height:100,"text-anchor":"start",style:"#666",textMargin:0,rx:0,ry:0,tspan:!0}),"getTextObj"),R=i(()=>{let r=o(".mermaidTooltip");return r.empty()&&(r=o("body").append("div").attr("class","mermaidTooltip").style("opacity",0).style("position","absolute").style("text-align","center").style("max-width","200px").style("padding","2px").style("font-size","12px").style("background","#ffffde").style("border","1px solid #333").style("border-radius","2px").style("pointer-events","none").style("z-index","100")),r},"createTooltip");export{c as a,f as b,h as c,w as d,k as e,v as f,E as g,R as h}; diff --git a/src/frontend/web/von_interface/static/vendor/conversation-visuals/chunk-NDMMOI35.js b/src/frontend/web/von_interface/static/vendor/conversation-visuals/chunk-NDMMOI35.js new file mode 100644 index 000000000..69d9f8782 --- /dev/null +++ b/src/frontend/web/von_interface/static/vendor/conversation-visuals/chunk-NDMMOI35.js @@ -0,0 +1,10 @@ +import{a as Mt}from"./chunk-T4OFBIBR.js";import{f as I}from"./chunk-TEBTVNCH.js";import{a as bt}from"./chunk-HVVAQLXH.js";import{c as yt,d as gt}from"./chunk-IVPOI5SM.js";import{c as nt,e as wt}from"./chunk-O46DUOKR.js";import{p as B,t as xt}from"./chunk-EUYVSIXP.js";import{$ as Y,C as X,G as at}from"./chunk-S4JILX6U.js";import{$ as ut,G as J,H as ot,J as it,K as lt,L as et,P as ct,S as dt,W as pt,X as ht,Y as ft,Z as kt,_ as mt,b as w,h as W}from"./chunk-XEQL7KGA.js";import{a as p}from"./chunk-YUSHYV7C.js";var N=p((r,t)=>{if(t)return"translate("+-r.width/2+", "+-r.height/2+")";let a=r.x??0,e=r.y??0;return"translate("+-(a+r.width/2)+", "+-(e+r.height/2)+")"},"computeLabelTransform"),v={aggregation:17.25,extension:17.25,composition:17.25,dependency:6,lollipop:13.5,arrow_point:4,arrow_barb:0,arrow_barb_neo:5.5},Lt={arrow_point:4,arrow_cross:12.5,arrow_circle:12.5};function Q(r,t){if(r===void 0||t===void 0)return{angle:0,deltaX:0,deltaY:0};r=x(r),t=x(t);let[a,e]=[r.x,r.y],[o,s]=[t.x,t.y],n=o-a,i=s-e;return{angle:Math.atan(i/n),deltaX:n,deltaY:i}}p(Q,"calculateDeltaAndAngle");var x=p(r=>Array.isArray(r)?{x:r[0],y:r[1]}:r,"pointTransformer"),Ht=p(r=>({x:p(function(t,a,e){let o=0,s=x(e[0]).x=0?1:-1)}else if(a===e.length-1&&Object.hasOwn(v,r.arrowTypeEnd)){let{angle:c,deltaX:y}=Q(e[e.length-1],e[e.length-2]);o=v[r.arrowTypeEnd]*Math.cos(c)*(y>=0?1:-1)}let n=Math.abs(x(t).x-x(e[e.length-1]).x),i=Math.abs(x(t).y-x(e[e.length-1]).y),d=Math.abs(x(t).x-x(e[0]).x),k=Math.abs(x(t).y-x(e[0]).y),l=v[r.arrowTypeStart],f=v[r.arrowTypeEnd],h=1;if(n0&&i0&&k=0?1:-1)}else if(a===e.length-1&&Object.hasOwn(v,r.arrowTypeEnd)){let{angle:c,deltaY:y}=Q(e[e.length-1],e[e.length-2]);o=v[r.arrowTypeEnd]*Math.abs(Math.sin(c))*(y>=0?1:-1)}let n=Math.abs(x(t).y-x(e[e.length-1]).y),i=Math.abs(x(t).x-x(e[e.length-1]).x),d=Math.abs(x(t).y-x(e[0]).y),k=Math.abs(x(t).x-x(e[0]).x),l=v[r.arrowTypeStart],f=v[r.arrowTypeEnd],h=1;if(n0&&i0&&k{t.arrowTypeStart&&_t(r,"start",t.arrowTypeStart,a,e,o,s,n),t.arrowTypeEnd&&_t(r,"end",t.arrowTypeEnd,a,e,o,s,n)},"addEdgeMarkers"),At={arrow_cross:{type:"cross",fill:!1},arrow_point:{type:"point",fill:!0},arrow_barb:{type:"barb",fill:!0},arrow_barb_neo:{type:"barb",fill:!0},arrow_circle:{type:"circle",fill:!1},arrow_hierarchy:{type:"hierarchy",fill:!1},aggregation:{type:"aggregation",fill:!1},extension:{type:"extension",fill:!1},composition:{type:"composition",fill:!0},dependency:{type:"dependency",fill:!0},lollipop:{type:"lollipop",fill:!1},only_one:{type:"onlyOne",fill:!1},zero_or_one:{type:"zeroOrOne",fill:!1},one_or_more:{type:"oneOrMore",fill:!1},zero_or_more:{type:"zeroOrMore",fill:!1},requirement_arrow:{type:"requirement_arrow",fill:!1},requirement_contains:{type:"requirement_contains",fill:!1}},Ct=["cross","point","circle","lollipop","aggregation","extension","composition","dependency","barb"],_t=p((r,t,a,e,o,s,n=!1,i)=>{if(!a||a==="none")return;let d=At[a],k=d&&Ct.includes(d.type);if(!d){w.warn(`Unknown arrow type: ${a}`);return}let l=d.type,c=`${o}_${s}-${l}${t==="start"?"Start":"End"}${n&&k?"-margin":""}`;if(i&&i.trim()!==""){let y=i.replace(/[^\dA-Za-z]/g,"_"),g=`${c}_${y}`;if(!document.getElementById(g)){let m=document.getElementById(c);if(m){let M=m.cloneNode(!0);M.id=g,M.querySelectorAll("path, circle, line").forEach(A=>{A.setAttribute("stroke",i),d.fill&&A.setAttribute("fill",i)}),m.parentNode?.appendChild(M)}}r.attr(`marker-${t}`,`url(${e}#${g})`)}else r.attr(`marker-${t}`,`url(${e}#${c})`)},"addEdgeMarker"),zt=p(r=>typeof r=="string"?r:Y()?.flowchart?.curve,"resolveEdgeCurveType"),G=new Map,_=new Map,vr=p(()=>{G.clear(),_.clear()},"clear"),Or=p(r=>!!(r.label||r.startLabelLeft||r.startLabelRight||r.endLabelLeft||r.endLabelRight),"hasEdgeLabel"),D=p(r=>r?typeof r=="string"?r:r.reduce((t,a)=>t+";"+a,""):"","getLabelStyles"),Er=p(async(r,t)=>{let a=Y(),e=at(a),{labelStyles:o}=gt(t);t.labelStyle=o;let s=r.insert("g").attr("class","edgeLabel"),n=s.insert("g").attr("class","label").attr("data-id",t.id),i=t.labelType==="markdown",k=await wt(r,t.label,{style:D(t.labelStyle),useHtmlLabels:e,addSvgBackground:!0,isNode:!1,markdown:i,width:i?void 0:void 0},a);n.node().appendChild(k),w.info("abc82",t,t.labelType);let l,f;if(e){let c=k.children[0],y=W(k);l=await nt.measure(()=>c.getBoundingClientRect()),f=l,y.attr("width",l.width),y.attr("height",l.height)}else{let c=W(k).select("text").node();await nt.measure(()=>{l=k.getBBox(),c&&typeof c.getBBox=="function"?f=c.getBBox():f=l})}n.attr("transform",N(f,e)),G.set(t.id,s),t.width=l.width,t.height=l.height;let h;if(t.startLabelLeft){let c=r.insert("g").attr("class","edgeTerminals"),y=c.insert("g").attr("class","inner"),g=await I(y,t.startLabelLeft,D(t.labelStyle)||"",!1,!1);h=g;let m=g.getBBox();if(e){let M=g.children[0],u=W(g);m=M.getBoundingClientRect(),u.attr("width",m.width),u.attr("height",m.height)}y.attr("transform",N(m,e)),_.get(t.id)||_.set(t.id,{}),_.get(t.id).startLeft=c,Z(h,t.startLabelLeft)}if(t.startLabelRight){let c=r.insert("g").attr("class","edgeTerminals"),y=c.insert("g").attr("class","inner"),g=await I(y,t.startLabelRight,D(t.labelStyle)||"",!1,!1);h=g;let m=g.getBBox();if(e){let M=g.children[0],u=W(g);m=M.getBoundingClientRect(),u.attr("width",m.width),u.attr("height",m.height)}y.attr("transform",N(m,e)),_.get(t.id)||_.set(t.id,{}),_.get(t.id).startRight=c,Z(h,t.startLabelRight)}if(t.endLabelLeft){let c=r.insert("g").attr("class","edgeTerminals"),y=c.insert("g").attr("class","inner"),g=await I(c,t.endLabelLeft,D(t.labelStyle)||"",!1,!1);h=g;let m=g.getBBox();if(e){let M=g.children[0],u=W(g);m=M.getBoundingClientRect(),u.attr("width",m.width),u.attr("height",m.height)}y.attr("transform",N(m,e)),_.get(t.id)||_.set(t.id,{}),_.get(t.id).endLeft=c,Z(h,t.endLabelLeft)}if(t.endLabelRight){let c=r.insert("g").attr("class","edgeTerminals"),y=c.insert("g").attr("class","inner"),g=await I(c,t.endLabelRight,D(t.labelStyle)||"",!1,!1);h=g;let m=g.getBBox();if(e){let M=g.children[0],u=W(g);m=M.getBoundingClientRect(),u.attr("width",m.width),u.attr("height",m.height)}y.attr("transform",N(m,e)),_.get(t.id)||_.set(t.id,{}),_.get(t.id).endRight=c,Z(h,t.endLabelRight)}return k},"insertEdgeLabel");function Z(r,t){at(Y())&&r&&(r.style.width=t.length*9+"px",r.style.height="12px")}p(Z,"setTerminalWidth");var Ur=p((r,t)=>{w.debug("Moving label abc88 ",r.id,r.label,G.get(r.id),t);let a=t.updatedPath?t.updatedPath:t.originalPath,e=Y(),{subGraphTitleTotalMargin:o}=Mt(e);if(r.label){let s=G.get(r.id),n=r.x,i=r.y;if(a){let d=B.calcLabelPosition(a);w.debug("Moving label "+r.label+" from (",n,",",i,") to (",d.x,",",d.y,") abc88"),t.updatedPath&&(n=d.x,i=d.y)}s.attr("transform",`translate(${n}, ${i+o/2})`)}if(r.startLabelLeft){let s=_.get(r.id).startLeft,n=r.x,i=r.y;if(a){let d=B.calcTerminalLabelPosition(r.arrowTypeStart?10:0,"start_left",a);n=d.x,i=d.y}s.attr("transform",`translate(${n}, ${i})`)}if(r.startLabelRight){let s=_.get(r.id).startRight,n=r.x,i=r.y;if(a){let d=B.calcTerminalLabelPosition(r.arrowTypeStart?10:0,"start_right",a);n=d.x,i=d.y}s.attr("transform",`translate(${n}, ${i})`)}if(r.endLabelLeft){let s=_.get(r.id).endLeft,n=r.x,i=r.y;if(a){let d=B.calcTerminalLabelPosition(r.arrowTypeEnd?10:0,"end_left",a);n=d.x,i=d.y}s.attr("transform",`translate(${n}, ${i})`)}if(r.endLabelRight){let s=_.get(r.id).endRight,n=r.x,i=r.y;if(a){let d=B.calcTerminalLabelPosition(r.arrowTypeEnd?10:0,"end_right",a);n=d.x,i=d.y}s.attr("transform",`translate(${n}, ${i})`)}},"positionEdgeLabel"),Rt=p((r,t)=>{if(!r?.isLabelEdge||!r?.id?.endsWith("-to-label")||!Array.isArray(t)||t.length!==2)return t;let[a,e]=t,o=Math.abs(e.x-a.x),s=Math.abs(e.y-a.y);return o<.001||s<.001?t:s>=o?[a,{x:a.x,y:e.y},e]:[a,{x:e.x,y:a.y},e]},"orthogonalizeToLabelClippedPoints"),qt=p((r,t)=>{let a=r.x,e=r.y,o=Math.abs(t.x-a),s=Math.abs(t.y-e),n=r.width/2,i=r.height/2;return o>=n||s>=i},"outsideNode"),Pt=p((r,t,a)=>{w.debug(`intersection calc abc89: + outsidePoint: ${JSON.stringify(t)} + insidePoint : ${JSON.stringify(a)} + node : x:${r.x} y:${r.y} w:${r.width} h:${r.height}`);let e=r.x,o=r.y,s=Math.abs(e-a.x),n=r.width/2,i=a.xMath.abs(e-t.x)*d){let f=a.y{w.warn("abc88 cutPathAtIntersect",r,t);let a=[],e=r[0],o=!1;return r.forEach(s=>{if(w.info("abc88 checking point",s,t),!qt(t,s)&&!o){let n=Pt(t,e,s);w.debug("abc88 inside",s,e,n),w.debug("abc88 intersection",n,t);let i=!1;a.forEach(d=>{i=i||d.x===n.x&&d.y===n.y}),a.some(d=>d.x===n.x&&d.y===n.y)?w.warn("abc88 no intersect",n,a):a.push(n),o=!0}else w.warn("abc88 outside",s,e),e=s,o||a.push(s)}),w.debug("returning points",a),a},"cutPathAtIntersect");function Ot(r){let t=[],a=[];for(let e=1;e5&&Math.abs(s.y-o.y)>5||o.y===s.y&&s.x===n.x&&Math.abs(s.x-o.x)>5&&Math.abs(s.y-n.y)>5)&&(t.push(s),a.push(e))}return{cornerPoints:t,cornerPointPositions:a}}p(Ot,"extractCornerPoints");var vt=p(function(r,t,a){let e=t.x-r.x,o=t.y-r.y,s=Math.sqrt(e*e+o*o),n=a/s;return{x:t.x-n*e,y:t.y-n*o}},"findAdjacentPoint"),It=p(function(r){let{cornerPointPositions:t}=Ot(r),a=[];for(let e=0;e10&&Math.abs(s.y-o.y)>=10){w.debug("Corner point fixing",Math.abs(s.x-o.x),Math.abs(s.y-o.y));let c=5;n.x===i.x?h={x:k<0?i.x-c+f:i.x+c-f,y:l<0?i.y-f:i.y+f}:h={x:k<0?i.x-f:i.x+f,y:l<0?i.y-c+f:i.y+c-f}}else w.debug("Corner point skipping fixing",Math.abs(s.x-o.x),Math.abs(s.y-o.y));a.push(h,d)}else a.push(r[e]);return a},"fixCorners"),Nt=p((r,t,a)=>{let e=r-t-a,o=2,s=2,n=o+s,i=Math.floor(e/n),d=Number.isFinite(i)?Math.max(0,i):0,k=Array(d).fill(`${o} ${s}`).join(" ");return`0 ${t} ${k} ${a}`},"generateDashArray"),$r=p(function(r,t,a,e,o,s,n,i=!1){if(!n)throw new Error(`insertEdge: missing diagramId for edge "${t.id}" \u2014 edge IDs require a diagram prefix for uniqueness`);let{handDrawnSeed:d,layout:k}=Y(),l=t.points,f=!1,h=o;var c=s;let y=[];for(let b in t.cssCompiledStyles)yt(b)||y.push(t.cssCompiledStyles[b]);if(k==="swimlane"){if(c.intersect&&h.intersect&&Array.isArray(l)&&l.length>=2)if(l.length===2)l=[h.intersect(l[0]),c.intersect(l[1])];else{let b=l.slice(1,-1),$=b[0],O=b[b.length-1],E=.5,z=Math.abs(l[l.length-1].x-O.x)!Number.isNaN(b.y)),M=zt(t.curve);M!=="rounded"&&(m=It(m));let u=J;switch(M){case"linear":u=J;break;case"basis":u=et;break;case"cardinal":u=ct;break;case"bumpX":u=it;break;case"bumpY":u=lt;break;case"catmullRom":u=dt;break;case"monotoneX":u=pt;break;case"monotoneY":u=ht;break;case"natural":u=ft;break;case"step":u=kt;break;case"stepAfter":u=ut;break;case"stepBefore":u=mt;break;case"rounded":u=J;break;default:u=et}let{x:A,y:K}=Ht(t),P=ot().x(A).y(K).curve(u),S;switch(t.thickness){case"normal":S="edge-thickness-normal";break;case"thick":S="edge-thickness-thick";break;case"invisible":S="edge-thickness-invisible";break;default:S="edge-thickness-normal"}switch(t.pattern){case"solid":S+=" edge-pattern-solid";break;case"dotted":S+=" edge-pattern-dotted";break;case"dashed":S+=" edge-pattern-dashed";break;default:S+=" edge-pattern-solid"}let L,j=M==="rounded"?Et(Ut(m,t),5):P(m),U=Array.isArray(t.style)?t.style:[t.style],V=U.find(b=>b?.startsWith("stroke:")),C="";t.animate&&(C="edge-animation-fast"),t.animation&&(C="edge-animation-"+t.animation);let tt=!1;if(t.look==="handDrawn"){let b=bt.svg(r);Object.assign([],m);let $=b.path(j,{roughness:.3,seed:d});S+=" transition",L=W($).select("path").attr("id",`${n}-${t.id}`).attr("class"," "+S+(t.classes?" "+t.classes:"")+(C?" "+C:"")).attr("style",U?U.reduce((E,z)=>E+";"+z,""):"");let O=L.attr("d");L.attr("d",O),r.node().appendChild(L.node())}else{let b=y.join(";"),$=U?U.reduce((R,q)=>R+q+";",""):"",O=(b?b+";"+$+";":$)+";"+(U?U.reduce((R,q)=>R+";"+q,""):"");L=r.append("path").attr("d",j).attr("id",`${n}-${t.id}`).attr("class"," "+S+(t.classes?" "+t.classes:"")+(C?" "+C:"")).attr("style",O),V=O.match(/stroke:([^;]+)/)?.[1],tt=t.animate===!0||!!t.animation||b.includes("animation");let E=L.node(),z=typeof E.getTotalLength=="function"?E.getTotalLength():0,T=Lt[t.arrowTypeStart]||0,H=Lt[t.arrowTypeEnd]||0;if(t.look==="neo"&&!tt){let q=`stroke-dasharray: ${t.pattern==="dotted"||t.pattern==="dashed"?Nt(z,T,H):`0 ${T} ${z-T-H} ${H}`}; stroke-dashoffset: 0;`;L.attr("style",q+L.attr("style"))}}L.attr("data-edge",!0),L.attr("data-et","edge"),L.attr("data-id",t.id),L.attr("data-points",g),L.attr("data-look",xt(t.look)),t.showPoints&&m.forEach(b=>{r.append("circle").style("stroke","red").style("fill","red").attr("r",1).attr("cx",b.x).attr("cy",b.y)});let F="";(Y().flowchart.arrowMarkerAbsolute||Y().state.arrowMarkerAbsolute)&&(F=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,F=F.replace(/\(/g,"\\(").replace(/\)/g,"\\)")),w.info("arrowTypeStart",t.arrowTypeStart),w.info("arrowTypeEnd",t.arrowTypeEnd);let $t=!tt&&t?.look==="neo";Bt(L,t,F,n,e,$t,V);let Xt=Math.floor(l.length/2),Yt=l[Xt];B.isLabelCoordinateInPath(Yt,L.attr("d"))||(f=!0);let rt={};return f&&(rt.updatedPath=l),rt.originalPath=t.points,rt},"insertEdge");function Et(r,t){if(r.length<2)return"";let a="",e=r.length,o=1e-5;for(let s=0;s({...o}));if(r.length>=2&&v[t.arrowTypeStart]){let o=v[t.arrowTypeStart],s=r[0],n=r[1],{angle:i}=st(s,n),d=o*Math.cos(i),k=o*Math.sin(i);a[0].x=s.x+d,a[0].y=s.y+k}let e=r.length;if(e>=2&&v[t.arrowTypeEnd]){let o=v[t.arrowTypeEnd],s=r[e-1],n=r[e-2],{angle:i}=st(n,s),d=o*Math.cos(i),k=o*Math.sin(i);a[e-1].x=s.x-d,a[e-1].y=s.y-k}return a}p(Ut,"applyMarkerOffsetsToPoints");var Dt=p((r,t,a,e)=>{t.forEach(o=>{mr[o](r,a,e)})},"insertMarkers"),Qt=p((r,t,a)=>{w.trace("Making markers for ",a),r.append("defs").append("marker").attr("id",a+"_"+t+"-extensionStart").attr("class","marker extension "+t).attr("refX",18).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M 1,7 L18,13 V 1 Z"),r.append("defs").append("marker").attr("id",a+"_"+t+"-extensionEnd").attr("class","marker extension "+t).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M 1,1 V 13 L18,7 Z"),r.append("marker").attr("id",a+"_"+t+"-extensionStart-margin").attr("class","marker extension "+t).attr("refX",18).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").attr("viewBox","0 0 20 14").append("polygon").attr("points","10,7 18,13 18,1").style("stroke-width",2).style("stroke-dasharray","0"),r.append("defs").append("marker").attr("id",a+"_"+t+"-extensionEnd-margin").attr("class","marker extension "+t).attr("refX",9).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").attr("viewBox","0 0 20 14").append("polygon").attr("points","10,1 10,13 18,7").style("stroke-width",2).style("stroke-dasharray","0")},"extension"),Zt=p((r,t,a)=>{r.append("defs").append("marker").attr("id",a+"_"+t+"-compositionStart").attr("class","marker composition "+t).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),r.append("defs").append("marker").attr("id",a+"_"+t+"-compositionEnd").attr("class","marker composition "+t).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),r.append("defs").append("marker").attr("id",a+"_"+t+"-compositionStart-margin").attr("class","marker composition "+t).attr("refX",15).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").style("stroke-width",0).attr("viewBox","0 0 15 15").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),r.append("defs").append("marker").attr("id",a+"_"+t+"-compositionEnd-margin").attr("class","marker composition "+t).attr("refX",3.5).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").style("stroke-width",0).attr("d","M 18,7 L9,13 L1,7 L9,1 Z")},"composition"),jt=p((r,t,a)=>{r.append("defs").append("marker").attr("id",a+"_"+t+"-aggregationStart").attr("class","marker aggregation "+t).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),r.append("defs").append("marker").attr("id",a+"_"+t+"-aggregationEnd").attr("class","marker aggregation "+t).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),r.append("defs").append("marker").attr("id",a+"_"+t+"-aggregationStart-margin").attr("class","marker aggregation "+t).attr("refX",15).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").style("stroke-width",2).attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),r.append("defs").append("marker").attr("id",a+"_"+t+"-aggregationEnd-margin").attr("class","marker aggregation "+t).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").style("stroke-width",2).attr("d","M 18,7 L9,13 L1,7 L9,1 Z")},"aggregation"),Vt=p((r,t,a)=>{r.append("defs").append("marker").attr("id",a+"_"+t+"-dependencyStart").attr("class","marker dependency "+t).attr("refX",6).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M 5,7 L9,13 L1,7 L9,1 Z"),r.append("defs").append("marker").attr("id",a+"_"+t+"-dependencyEnd").attr("class","marker dependency "+t).attr("refX",13).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M 18,7 L9,13 L14,7 L9,1 Z"),r.append("defs").append("marker").attr("id",a+"_"+t+"-dependencyStart-margin").attr("class","marker dependency "+t).attr("refX",4).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").style("stroke-width",0).attr("d","M 5,7 L9,13 L1,7 L9,1 Z"),r.append("defs").append("marker").attr("id",a+"_"+t+"-dependencyEnd-margin").attr("class","marker dependency "+t).attr("refX",16).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").style("stroke-width",0).attr("d","M 18,7 L9,13 L14,7 L9,1 Z")},"dependency"),Ft=p((r,t,a)=>{r.append("defs").append("marker").attr("id",a+"_"+t+"-lollipopStart").attr("class","marker lollipop "+t).attr("refX",13).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("circle").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6),r.append("defs").append("marker").attr("id",a+"_"+t+"-lollipopEnd").attr("class","marker lollipop "+t).attr("refX",1).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("circle").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6),r.append("defs").append("marker").attr("id",a+"_"+t+"-lollipopStart-margin").attr("class","marker lollipop "+t).attr("refX",13).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("circle").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6).attr("stroke-width",2),r.append("defs").append("marker").attr("id",a+"_"+t+"-lollipopEnd-margin").attr("class","marker lollipop "+t).attr("refX",1).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("circle").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6).attr("stroke-width",2)},"lollipop"),Jt=p((r,t,a)=>{r.append("marker").attr("id",a+"_"+t+"-pointEnd").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",5).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",8).attr("markerHeight",8).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 z").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),r.append("marker").attr("id",a+"_"+t+"-pointStart").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",4.5).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",8).attr("markerHeight",8).attr("orient","auto").append("path").attr("d","M 0 5 L 10 10 L 10 0 z").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),r.append("marker").attr("id",a+"_"+t+"-pointEnd-margin").attr("class","marker "+t).attr("viewBox","0 0 11.5 14").attr("refX",11.5).attr("refY",7).attr("markerUnits","userSpaceOnUse").attr("markerWidth",10.5).attr("markerHeight",14).attr("orient","auto").append("path").attr("d","M 0 0 L 11.5 7 L 0 14 z").attr("class","arrowMarkerPath").style("stroke-width",0).style("stroke-dasharray","1,0"),r.append("marker").attr("id",a+"_"+t+"-pointStart-margin").attr("class","marker "+t).attr("viewBox","0 0 11.5 14").attr("refX",1).attr("refY",7).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11.5).attr("markerHeight",14).attr("orient","auto").append("polygon").attr("points","0,7 11.5,14 11.5,0").attr("class","arrowMarkerPath").style("stroke-width",0).style("stroke-dasharray","1,0")},"point"),Gt=p((r,t,a)=>{r.append("marker").attr("id",a+"_"+t+"-circleEnd").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",11).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),r.append("marker").attr("id",a+"_"+t+"-circleStart").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",-1).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),r.append("marker").attr("id",a+"_"+t+"-circleEnd-margin").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refY",5).attr("refX",12.25).attr("markerUnits","userSpaceOnUse").attr("markerWidth",14).attr("markerHeight",14).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",0).style("stroke-dasharray","1,0"),r.append("marker").attr("id",a+"_"+t+"-circleStart-margin").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",-2).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",14).attr("markerHeight",14).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",0).style("stroke-dasharray","1,0")},"circle"),Kt=p((r,t,a)=>{r.append("marker").attr("id",a+"_"+t+"-crossEnd").attr("class","marker cross "+t).attr("viewBox","0 0 11 11").attr("refX",12).attr("refY",5.2).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("path").attr("d","M 1,1 l 9,9 M 10,1 l -9,9").attr("class","arrowMarkerPath").style("stroke-width",2).style("stroke-dasharray","1,0"),r.append("marker").attr("id",a+"_"+t+"-crossStart").attr("class","marker cross "+t).attr("viewBox","0 0 11 11").attr("refX",-1).attr("refY",5.2).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("path").attr("d","M 1,1 l 9,9 M 10,1 l -9,9").attr("class","arrowMarkerPath").style("stroke-width",2).style("stroke-dasharray","1,0"),r.append("marker").attr("id",a+"_"+t+"-crossEnd-margin").attr("class","marker cross "+t).attr("viewBox","0 0 15 15").attr("refX",17.7).attr("refY",7.5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 1,1 L 14,14 M 1,14 L 14,1").attr("class","arrowMarkerPath").style("stroke-width",2.5),r.append("marker").attr("id",a+"_"+t+"-crossStart-margin").attr("class","marker cross "+t).attr("viewBox","0 0 15 15").attr("refX",-3.5).attr("refY",7.5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 1,1 L 14,14 M 1,14 L 14,1").attr("class","arrowMarkerPath").style("stroke-width",2.5).style("stroke-dasharray","1,0")},"cross"),tr=p((r,t,a)=>{r.append("defs").append("marker").attr("id",a+"_"+t+"-barbEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",14).attr("markerUnits","userSpaceOnUse").attr("orient","auto").append("path").attr("d","M 19,7 L9,13 L14,7 L9,1 Z")},"barb"),rr=p((r,t,a)=>{let e=X(),{themeVariables:o}=e,{transitionColor:s}=o;r.append("defs").append("marker").attr("id",a+"_"+t+"-barbEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",14).attr("markerUnits","strokeWidth").attr("orient","auto").append("path").attr("d","M 19,7 L11,14 L13,7 L11,0 Z"),r.append("defs").append("marker").attr("id",a+"_"+t+"-barbEnd-margin").attr("refX",17).attr("refY",7).attr("markerWidth",20).attr("markerHeight",14).attr("markerUnits","userSpaceOnUse").attr("orient","auto").append("path").attr("d","M 19,7 L11,14 L13,7 L11,0 Z").attr("fill",`${s}`)},"barbNeo"),ar=p((r,t,a)=>{r.append("defs").append("marker").attr("id",a+"_"+t+"-onlyOneStart").attr("class","marker onlyOne "+t).attr("refX",0).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").append("path").attr("d","M9,0 L9,18 M15,0 L15,18"),r.append("defs").append("marker").attr("id",a+"_"+t+"-onlyOneEnd").attr("class","marker onlyOne "+t).attr("refX",18).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").append("path").attr("d","M3,0 L3,18 M9,0 L9,18")},"only_one"),er=p((r,t,a)=>{let e=r.append("defs").append("marker").attr("id",a+"_"+t+"-zeroOrOneStart").attr("class","marker zeroOrOne "+t).attr("refX",0).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("orient","auto");e.append("circle").attr("fill","white").attr("cx",21).attr("cy",9).attr("r",6),e.append("path").attr("d","M9,0 L9,18");let o=r.append("defs").append("marker").attr("id",a+"_"+t+"-zeroOrOneEnd").attr("class","marker zeroOrOne "+t).attr("refX",30).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("orient","auto");o.append("circle").attr("fill","white").attr("cx",9).attr("cy",9).attr("r",6),o.append("path").attr("d","M21,0 L21,18")},"zero_or_one"),nr=p((r,t,a)=>{r.append("defs").append("marker").attr("id",a+"_"+t+"-oneOrMoreStart").attr("class","marker oneOrMore "+t).attr("refX",18).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("orient","auto").append("path").attr("d","M0,18 Q 18,0 36,18 Q 18,36 0,18 M42,9 L42,27"),r.append("defs").append("marker").attr("id",a+"_"+t+"-oneOrMoreEnd").attr("class","marker oneOrMore "+t).attr("refX",27).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("orient","auto").append("path").attr("d","M3,9 L3,27 M9,18 Q27,0 45,18 Q27,36 9,18")},"one_or_more"),sr=p((r,t,a)=>{let e=r.append("defs").append("marker").attr("id",a+"_"+t+"-zeroOrMoreStart").attr("class","marker zeroOrMore "+t).attr("refX",18).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("orient","auto");e.append("circle").attr("fill","white").attr("cx",48).attr("cy",18).attr("r",6),e.append("path").attr("d","M0,18 Q18,0 36,18 Q18,36 0,18");let o=r.append("defs").append("marker").attr("id",a+"_"+t+"-zeroOrMoreEnd").attr("class","marker zeroOrMore "+t).attr("refX",39).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("orient","auto");o.append("circle").attr("fill","white").attr("cx",9).attr("cy",18).attr("r",6),o.append("path").attr("d","M21,18 Q39,0 57,18 Q39,36 21,18")},"zero_or_more"),or=p((r,t,a)=>{let e=X(),{themeVariables:o}=e,{strokeWidth:s}=o;r.append("defs").append("marker").attr("id",a+"_"+t+"-onlyOneStart").attr("class","marker onlyOne "+t).attr("refX",0).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M9,0 L9,18 M15,0 L15,18").attr("stroke-width",`${s}`),r.append("defs").append("marker").attr("id",a+"_"+t+"-onlyOneEnd").attr("class","marker onlyOne "+t).attr("refX",18).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M3,0 L3,18 M9,0 L9,18").attr("stroke-width",`${s}`)},"only_one_neo"),ir=p((r,t,a)=>{let e=X(),{themeVariables:o}=e,{strokeWidth:s,mainBkg:n}=o,i=r.append("defs").append("marker").attr("id",a+"_"+t+"-zeroOrOneStart").attr("class","marker zeroOrOne "+t).attr("refX",0).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("orient","auto").attr("markerUnits","userSpaceOnUse");i.append("circle").attr("fill",n??"white").attr("cx",21).attr("cy",9).attr("stroke-width",`${s}`).attr("r",6),i.append("path").attr("d","M9,0 L9,18").attr("stroke-width",`${s}`);let d=r.append("defs").append("marker").attr("id",a+"_"+t+"-zeroOrOneEnd").attr("class","marker zeroOrOne "+t).attr("refX",30).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("markerUnits","userSpaceOnUse").attr("orient","auto");d.append("circle").attr("fill",n??"white").attr("cx",9).attr("cy",9).attr("stroke-width",`${s}`).attr("r",6),d.append("path").attr("d","M21,0 L21,18").attr("stroke-width",`${s}`)},"zero_or_one_neo"),lr=p((r,t,a)=>{let e=X(),{themeVariables:o}=e,{strokeWidth:s}=o;r.append("defs").append("marker").attr("id",a+"_"+t+"-oneOrMoreStart").attr("class","marker oneOrMore "+t).attr("refX",18).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M0,18 Q 18,0 36,18 Q 18,36 0,18 M42,9 L42,27").attr("stroke-width",`${s}`),r.append("defs").append("marker").attr("id",a+"_"+t+"-oneOrMoreEnd").attr("class","marker oneOrMore "+t).attr("refX",27).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("markerUnits","userSpaceOnUse").attr("orient","auto").append("path").attr("d","M3,9 L3,27 M9,18 Q27,0 45,18 Q27,36 9,18").attr("stroke-width",`${s}`)},"one_or_more_neo"),cr=p((r,t,a)=>{let e=X(),{themeVariables:o}=e,{strokeWidth:s,mainBkg:n}=o,i=r.append("defs").append("marker").attr("id",a+"_"+t+"-zeroOrMoreStart").attr("class","marker zeroOrMore "+t).attr("refX",18).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("markerUnits","userSpaceOnUse").attr("orient","auto");i.append("circle").attr("fill",n??"white").attr("cx",45.5).attr("cy",18).attr("r",6).attr("stroke-width",`${s}`),i.append("path").attr("d","M0,18 Q18,0 36,18 Q18,36 0,18").attr("stroke-width",`${s}`);let d=r.append("defs").append("marker").attr("id",a+"_"+t+"-zeroOrMoreEnd").attr("class","marker zeroOrMore "+t).attr("refX",39).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("orient","auto").attr("markerUnits","userSpaceOnUse");d.append("circle").attr("fill",n??"white").attr("cx",11).attr("cy",18).attr("r",6).attr("stroke-width",`${s}`),d.append("path").attr("d","M21,18 Q39,0 57,18 Q39,36 21,18").attr("stroke-width",`${s}`)},"zero_or_more_neo"),dr=p((r,t,a)=>{r.append("defs").append("marker").attr("id",a+"_"+t+"-requirement_arrowEnd").attr("refX",20).attr("refY",10).attr("markerWidth",20).attr("markerHeight",20).attr("orient","auto").append("path").attr("d",`M0,0 + L20,10 + M20,10 + L0,20`)},"requirement_arrow"),pr=p((r,t,a)=>{let e=X(),{themeVariables:o}=e,{strokeWidth:s}=o;r.append("defs").append("marker").attr("id",a+"_"+t+"-requirement_arrowEnd").attr("refX",20).attr("refY",10).attr("markerWidth",20).attr("markerHeight",20).attr("orient","auto").attr("markerUnits","userSpaceOnUse").attr("stroke-width",`${s}`).attr("viewBox","0 0 25 20").append("path").attr("d",`M0,0 + L20,10 + M20,10 + L0,20`).attr("stroke-linejoin","miter")},"requirement_arrow_neo"),hr=p((r,t,a)=>{let e=r.append("defs").append("marker").attr("id",a+"_"+t+"-requirement_containsStart").attr("refX",0).attr("refY",10).attr("markerWidth",20).attr("markerHeight",20).attr("orient","auto").append("g");e.append("circle").attr("cx",10).attr("cy",10).attr("r",9).attr("fill","none"),e.append("line").attr("x1",1).attr("x2",19).attr("y1",10).attr("y2",10),e.append("line").attr("y1",1).attr("y2",19).attr("x1",10).attr("x2",10)},"requirement_contains"),fr=p((r,t,a)=>{let e=X(),{themeVariables:o}=e,{strokeWidth:s}=o,n=r.append("defs").append("marker").attr("id",a+"_"+t+"-requirement_containsStart").attr("refX",0).attr("refY",10).attr("markerWidth",20).attr("markerHeight",20).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("g");n.append("circle").attr("cx",10).attr("cy",10).attr("r",9).attr("fill","none"),n.append("line").attr("x1",1).attr("x2",19).attr("y1",10).attr("y2",10),n.append("line").attr("y1",1).attr("y2",19).attr("x1",10).attr("x2",10),n.selectAll("*").attr("stroke-width",`${s}`)},"requirement_contains_neo"),kr=p((r,t,a)=>{r.append("marker").attr("id",a+"_"+t+"-hierarchyEnd").attr("class","marker hierarchy "+t).attr("viewBox","0 0 12 10").attr("refX",10).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",10).attr("orient","auto").append("path").attr("d","M 0 0 L 6 5 L 0 10 M 4 0 L 10 5 L 4 10").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0").style("fill","none"),r.append("marker").attr("id",a+"_"+t+"-hierarchyStart").attr("class","marker hierarchy "+t).attr("viewBox","0 0 12 10").attr("refX",2).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",10).attr("orient","auto").append("path").attr("d","M 12 0 L 6 5 L 12 10 M 8 0 L 2 5 L 8 10").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0").style("fill","none")},"hierarchy"),mr={extension:Qt,composition:Zt,aggregation:jt,dependency:Vt,lollipop:Ft,point:Jt,circle:Gt,cross:Kt,barb:tr,barbNeo:rr,hierarchy:kr,only_one:ar,zero_or_one:er,one_or_more:nr,zero_or_more:sr,only_one_neo:or,zero_or_one_neo:ir,one_or_more_neo:lr,zero_or_more_neo:cr,requirement_arrow:dr,requirement_contains:hr,requirement_arrow_neo:pr,requirement_contains_neo:fr},Xr=Dt;export{v as a,Lt as b,G as c,_ as d,vr as e,Or as f,Er as g,Ur as h,$r as i,Xr as j}; diff --git a/src/frontend/web/von_interface/static/vendor/conversation-visuals/chunk-NMQHKCXS.js b/src/frontend/web/von_interface/static/vendor/conversation-visuals/chunk-NMQHKCXS.js new file mode 100644 index 000000000..b9d2e1802 --- /dev/null +++ b/src/frontend/web/von_interface/static/vendor/conversation-visuals/chunk-NMQHKCXS.js @@ -0,0 +1 @@ +import{a as e,b as t,c as a,d as o,e as i,g as s,l as u,x as d,y as l}from"./chunk-RVPSGR2P.js";var f=class extends l{static{e(this,"InfoTokenBuilder")}constructor(){super(["info","showInfo"])}},m={parser:{TokenBuilder:e(()=>new f,"TokenBuilder"),ValueConverter:e(()=>new d,"ValueConverter")}};function v(c=i){let r=o(a(c),s),n=o(t({shared:r}),u,m);return r.ServiceRegistry.register(n),{shared:r,Info:n}}e(v,"createInfoServices");export{m as a,v as b}; diff --git a/src/frontend/web/von_interface/static/vendor/conversation-visuals/chunk-O46DUOKR.js b/src/frontend/web/von_interface/static/vendor/conversation-visuals/chunk-O46DUOKR.js new file mode 100644 index 000000000..af6e78744 --- /dev/null +++ b/src/frontend/web/von_interface/static/vendor/conversation-visuals/chunk-O46DUOKR.js @@ -0,0 +1,72 @@ +import{c as be,d as we}from"./chunk-C7YISUMK.js";import{r as U}from"./chunk-EUYVSIXP.js";import{C as ke,I as G,L as Q,N as xe,O as me}from"./chunk-S4JILX6U.js";import{b as N,h as R}from"./chunk-XEQL7KGA.js";import{a as g}from"./chunk-YUSHYV7C.js";function Y(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var S=Y();function ze(t){S=t}var P={exec:()=>null};function k(t,e=""){let n=typeof t=="string"?t:t.source,s={replace:(r,a)=>{let i=typeof a=="string"?a:a.source;return i=i.replace(b.caret,"$1"),n=n.replace(r,i),s},getRegex:()=>new RegExp(n,e)};return s}var et=(()=>{try{return!!new RegExp("(?<=1)(?/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceTabs:/^\t+/,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] /,listReplaceTask:/^\[[ xX]\] +/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,unescapeTest:/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:t=>new RegExp(`^( {0,3}${t})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:t=>new RegExp(`^ {0,${Math.min(3,t-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),hrRegex:t=>new RegExp(`^ {0,${Math.min(3,t-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:t=>new RegExp(`^ {0,${Math.min(3,t-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:t=>new RegExp(`^ {0,${Math.min(3,t-1)}}#`),htmlBeginRegex:t=>new RegExp(`^ {0,${Math.min(3,t-1)}}<(?:[a-z].*>|!--)`,"i")},tt=/^(?:[ \t]*(?:\n|$))+/,rt=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,nt=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,I=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,st=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,J=/(?:[*+-]|\d{1,9}[.)])/,Ae=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,Le=k(Ae).replace(/bull/g,J).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),it=k(Ae).replace(/bull/g,J).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),ee=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,at=/^[^\n]+/,te=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,lt=k(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",te).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),ot=k(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,J).getRegex(),O="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",re=/|$))/,ct=k("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|\\n*|$)|\\n*|$)|)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",re).replace("tag",O).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),_e=k(ee).replace("hr",I).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",O).getRegex(),pt=k(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",_e).getRegex(),ne={blockquote:pt,code:rt,def:lt,fences:nt,heading:st,hr:I,html:ct,lheading:Le,list:ot,newline:tt,paragraph:_e,table:P,text:at},ye=k("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",I).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",O).getRegex(),ht={...ne,lheading:it,table:ye,paragraph:k(ee).replace("hr",I).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",ye).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",O).getRegex()},ut={...ne,html:k(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+? *(?:\\n{2,}|\\s*$)|\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",re).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:P,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:k(ee).replace("hr",I).replace("heading",` *#{1,6} *[^ +]`).replace("lheading",Le).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},gt=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,ft=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,Ee=/^( {2,}|\\)\n(?!\s*$)/,dt=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\`+)[^`]+\k(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",et?"(?`+)[^`]+\k(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),Be=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,wt=k(Be,"u").replace(/punct/g,F).getRegex(),yt=k(Be,"u").replace(/punct/g,Ie).getRegex(),Ce="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",Tt=k(Ce,"gu").replace(/notPunctSpace/g,Pe).replace(/punctSpace/g,se).replace(/punct/g,F).getRegex(),$t=k(Ce,"gu").replace(/notPunctSpace/g,mt).replace(/punctSpace/g,xt).replace(/punct/g,Ie).getRegex(),St=k("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,Pe).replace(/punctSpace/g,se).replace(/punct/g,F).getRegex(),Rt=k(/\\(punct)/,"gu").replace(/punct/g,F).getRegex(),vt=k(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),zt=k(re).replace("(?:-->|$)","-->").getRegex(),At=k("^comment|^|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^|^").replace("comment",zt).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),C=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+[^`]*?`+(?!`)|[^\[\]\\`])*?/,Lt=k(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label",C).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),Me=k(/^!?\[(label)\]\[(ref)\]/).replace("label",C).replace("ref",te).getRegex(),qe=k(/^!?\[(ref)\](?:\[\])?/).replace("ref",te).getRegex(),_t=k("reflink|nolink(?!\\()","g").replace("reflink",Me).replace("nolink",qe).getRegex(),Te=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,ie={_backpedal:P,anyPunctuation:Rt,autolink:vt,blockSkip:bt,br:Ee,code:ft,del:P,emStrongLDelim:wt,emStrongRDelimAst:Tt,emStrongRDelimUnd:St,escape:gt,link:Lt,nolink:qe,punctuation:kt,reflink:Me,reflinkSearch:_t,tag:At,text:dt,url:P},Et={...ie,link:k(/^!?\[(label)\]\((.*?)\)/).replace("label",C).getRegex(),reflink:k(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",C).getRegex()},K={...ie,emStrongRDelimAst:$t,emStrongLDelim:yt,url:k(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",Te).replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:k(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\":">",'"':""","'":"'"},$e=t=>It[t];function T(t,e){if(e){if(b.escapeTest.test(t))return t.replace(b.escapeReplace,$e)}else if(b.escapeTestNoEncode.test(t))return t.replace(b.escapeReplaceNoEncode,$e);return t}function Se(t){try{t=encodeURI(t).replace(b.percentDecode,"%")}catch{return null}return t}function Re(t,e){let n=t.replace(b.findPipe,(a,i,o)=>{let l=!1,c=i;for(;--c>=0&&o[c]==="\\";)l=!l;return l?"|":" |"}),s=n.split(b.splitPipe),r=0;if(s[0].trim()||s.shift(),s.length>0&&!s.at(-1)?.trim()&&s.pop(),e)if(s.length>e)s.splice(e);else for(;s.length0?-2:-1}function ve(t,e,n,s,r){let a=e.href,i=e.title||null,o=t[1].replace(r.other.outputLinkReplace,"$1");s.state.inLink=!0;let l={type:t[0].charAt(0)==="!"?"image":"link",raw:n,href:a,title:i,text:o,tokens:s.inlineTokens(o)};return s.state.inLink=!1,l}function Ct(t,e,n){let s=t.match(n.other.indentCodeCompensation);if(s===null)return e;let r=s[1];return e.split(` +`).map(a=>{let i=a.match(n.other.beginningSpace);if(i===null)return a;let[o]=i;return o.length>=r.length?a.slice(r.length):a}).join(` +`)}var M=class{options;rules;lexer;constructor(t){this.options=t||S}space(t){let e=this.rules.block.newline.exec(t);if(e&&e[0].length>0)return{type:"space",raw:e[0]}}code(t){let e=this.rules.block.code.exec(t);if(e){let n=e[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:e[0],codeBlockStyle:"indented",text:this.options.pedantic?n:_(n,` +`)}}}fences(t){let e=this.rules.block.fences.exec(t);if(e){let n=e[0],s=Ct(n,e[3]||"",this.rules);return{type:"code",raw:n,lang:e[2]?e[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):e[2],text:s}}}heading(t){let e=this.rules.block.heading.exec(t);if(e){let n=e[2].trim();if(this.rules.other.endingHash.test(n)){let s=_(n,"#");(this.options.pedantic||!s||this.rules.other.endingSpaceChar.test(s))&&(n=s.trim())}return{type:"heading",raw:e[0],depth:e[1].length,text:n,tokens:this.lexer.inline(n)}}}hr(t){let e=this.rules.block.hr.exec(t);if(e)return{type:"hr",raw:_(e[0],` +`)}}blockquote(t){let e=this.rules.block.blockquote.exec(t);if(e){let n=_(e[0],` +`).split(` +`),s="",r="",a=[];for(;n.length>0;){let i=!1,o=[],l;for(l=0;l1,r={type:"list",raw:"",ordered:s,start:s?+n.slice(0,-1):"",loose:!1,items:[]};n=s?`\\d{1,9}\\${n.slice(-1)}`:`\\${n}`,this.options.pedantic&&(n=s?n:"[*+-]");let a=this.rules.other.listItemRegex(n),i=!1;for(;t;){let l=!1,c="",p="";if(!(e=a.exec(t))||this.rules.block.hr.test(t))break;c=e[0],t=t.substring(c.length);let h=e[2].split(` +`,1)[0].replace(this.rules.other.listReplaceTabs,D=>" ".repeat(3*D.length)),u=t.split(` +`,1)[0],d=!h.trim(),f=0;if(this.options.pedantic?(f=2,p=h.trimStart()):d?f=e[1].length+1:(f=e[2].search(this.rules.other.nonSpaceChar),f=f>4?1:f,p=h.slice(f),f+=e[1].length),d&&this.rules.other.blankLine.test(u)&&(c+=u+` +`,t=t.substring(u.length+1),l=!0),!l){let D=this.rules.other.nextBulletRegex(f),ge=this.rules.other.hrRegex(f),fe=this.rules.other.fencesBeginRegex(f),de=this.rules.other.headingBeginRegex(f),Je=this.rules.other.htmlBeginRegex(f);for(;t;){let H=t.split(` +`,1)[0],A;if(u=H,this.options.pedantic?(u=u.replace(this.rules.other.listReplaceNesting," "),A=u):A=u.replace(this.rules.other.tabCharGlobal," "),fe.test(u)||de.test(u)||Je.test(u)||D.test(u)||ge.test(u))break;if(A.search(this.rules.other.nonSpaceChar)>=f||!u.trim())p+=` +`+A.slice(f);else{if(d||h.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||fe.test(h)||de.test(h)||ge.test(h))break;p+=` +`+u}!d&&!u.trim()&&(d=!0),c+=H+` +`,t=t.substring(H.length+1),h=A.slice(f)}}r.loose||(i?r.loose=!0:this.rules.other.doubleBlankLine.test(c)&&(i=!0));let m=null,z;this.options.gfm&&(m=this.rules.other.listIsTask.exec(p),m&&(z=m[0]!=="[ ] ",p=p.replace(this.rules.other.listReplaceTask,""))),r.items.push({type:"list_item",raw:c,task:!!m,checked:z,loose:!1,text:p,tokens:[]}),r.raw+=c}let o=r.items.at(-1);if(o)o.raw=o.raw.trimEnd(),o.text=o.text.trimEnd();else return;r.raw=r.raw.trimEnd();for(let l=0;lh.type==="space"),p=c.length>0&&c.some(h=>this.rules.other.anyLine.test(h.raw));r.loose=p}if(r.loose)for(let l=0;l({text:o,tokens:this.lexer.inline(o),header:!1,align:a.align[l]})));return a}}lheading(t){let e=this.rules.block.lheading.exec(t);if(e)return{type:"heading",raw:e[0],depth:e[2].charAt(0)==="="?1:2,text:e[1],tokens:this.lexer.inline(e[1])}}paragraph(t){let e=this.rules.block.paragraph.exec(t);if(e){let n=e[1].charAt(e[1].length-1)===` +`?e[1].slice(0,-1):e[1];return{type:"paragraph",raw:e[0],text:n,tokens:this.lexer.inline(n)}}}text(t){let e=this.rules.block.text.exec(t);if(e)return{type:"text",raw:e[0],text:e[0],tokens:this.lexer.inline(e[0])}}escape(t){let e=this.rules.inline.escape.exec(t);if(e)return{type:"escape",raw:e[0],text:e[1]}}tag(t){let e=this.rules.inline.tag.exec(t);if(e)return!this.lexer.state.inLink&&this.rules.other.startATag.test(e[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(e[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(e[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(e[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:e[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:e[0]}}link(t){let e=this.rules.inline.link.exec(t);if(e){let n=e[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(n)){if(!this.rules.other.endAngleBracket.test(n))return;let a=_(n.slice(0,-1),"\\");if((n.length-a.length)%2===0)return}else{let a=Bt(e[2],"()");if(a===-2)return;if(a>-1){let i=(e[0].indexOf("!")===0?5:4)+e[1].length+a;e[2]=e[2].substring(0,a),e[0]=e[0].substring(0,i).trim(),e[3]=""}}let s=e[2],r="";if(this.options.pedantic){let a=this.rules.other.pedanticHrefTitle.exec(s);a&&(s=a[1],r=a[3])}else r=e[3]?e[3].slice(1,-1):"";return s=s.trim(),this.rules.other.startAngleBracket.test(s)&&(this.options.pedantic&&!this.rules.other.endAngleBracket.test(n)?s=s.slice(1):s=s.slice(1,-1)),ve(e,{href:s&&s.replace(this.rules.inline.anyPunctuation,"$1"),title:r&&r.replace(this.rules.inline.anyPunctuation,"$1")},e[0],this.lexer,this.rules)}}reflink(t,e){let n;if((n=this.rules.inline.reflink.exec(t))||(n=this.rules.inline.nolink.exec(t))){let s=(n[2]||n[1]).replace(this.rules.other.multipleSpaceGlobal," "),r=e[s.toLowerCase()];if(!r){let a=n[0].charAt(0);return{type:"text",raw:a,text:a}}return ve(n,r,n[0],this.lexer,this.rules)}}emStrong(t,e,n=""){let s=this.rules.inline.emStrongLDelim.exec(t);if(!(!s||s[3]&&n.match(this.rules.other.unicodeAlphaNumeric))&&(!(s[1]||s[2])||!n||this.rules.inline.punctuation.exec(n))){let r=[...s[0]].length-1,a,i,o=r,l=0,c=s[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(c.lastIndex=0,e=e.slice(-1*t.length+r);(s=c.exec(e))!=null;){if(a=s[1]||s[2]||s[3]||s[4]||s[5]||s[6],!a)continue;if(i=[...a].length,s[3]||s[4]){o+=i;continue}else if((s[5]||s[6])&&r%3&&!((r+i)%3)){l+=i;continue}if(o-=i,o>0)continue;i=Math.min(i,i+o+l);let p=[...s[0]][0].length,h=t.slice(0,r+s.index+p+i);if(Math.min(r,i)%2){let d=h.slice(1,-1);return{type:"em",raw:h,text:d,tokens:this.lexer.inlineTokens(d)}}let u=h.slice(2,-2);return{type:"strong",raw:h,text:u,tokens:this.lexer.inlineTokens(u)}}}}codespan(t){let e=this.rules.inline.code.exec(t);if(e){let n=e[2].replace(this.rules.other.newLineCharGlobal," "),s=this.rules.other.nonSpaceChar.test(n),r=this.rules.other.startingSpaceChar.test(n)&&this.rules.other.endingSpaceChar.test(n);return s&&r&&(n=n.substring(1,n.length-1)),{type:"codespan",raw:e[0],text:n}}}br(t){let e=this.rules.inline.br.exec(t);if(e)return{type:"br",raw:e[0]}}del(t){let e=this.rules.inline.del.exec(t);if(e)return{type:"del",raw:e[0],text:e[2],tokens:this.lexer.inlineTokens(e[2])}}autolink(t){let e=this.rules.inline.autolink.exec(t);if(e){let n,s;return e[2]==="@"?(n=e[1],s="mailto:"+n):(n=e[1],s=n),{type:"link",raw:e[0],text:n,href:s,tokens:[{type:"text",raw:n,text:n}]}}}url(t){let e;if(e=this.rules.inline.url.exec(t)){let n,s;if(e[2]==="@")n=e[0],s="mailto:"+n;else{let r;do r=e[0],e[0]=this.rules.inline._backpedal.exec(e[0])?.[0]??"";while(r!==e[0]);n=e[0],e[1]==="www."?s="http://"+e[0]:s=e[0]}return{type:"link",raw:e[0],text:n,href:s,tokens:[{type:"text",raw:n,text:n}]}}}inlineText(t){let e=this.rules.inline.text.exec(t);if(e){let n=this.lexer.state.inRawBlock;return{type:"text",raw:e[0],text:e[0],escaped:n}}}},w=class X{tokens;options;state;tokenizer;inlineQueue;constructor(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||S,this.options.tokenizer=this.options.tokenizer||new M,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};let n={other:b,block:B.normal,inline:L.normal};this.options.pedantic?(n.block=B.pedantic,n.inline=L.pedantic):this.options.gfm&&(n.block=B.gfm,this.options.breaks?n.inline=L.breaks:n.inline=L.gfm),this.tokenizer.rules=n}static get rules(){return{block:B,inline:L}}static lex(e,n){return new X(n).lex(e)}static lexInline(e,n){return new X(n).inlineTokens(e)}lex(e){e=e.replace(b.carriageReturn,` +`),this.blockTokens(e,this.tokens);for(let n=0;n(r=i.call({lexer:this},e,n))?(e=e.substring(r.raw.length),n.push(r),!0):!1))continue;if(r=this.tokenizer.space(e)){e=e.substring(r.raw.length);let i=n.at(-1);r.raw.length===1&&i!==void 0?i.raw+=` +`:n.push(r);continue}if(r=this.tokenizer.code(e)){e=e.substring(r.raw.length);let i=n.at(-1);i?.type==="paragraph"||i?.type==="text"?(i.raw+=(i.raw.endsWith(` +`)?"":` +`)+r.raw,i.text+=` +`+r.text,this.inlineQueue.at(-1).src=i.text):n.push(r);continue}if(r=this.tokenizer.fences(e)){e=e.substring(r.raw.length),n.push(r);continue}if(r=this.tokenizer.heading(e)){e=e.substring(r.raw.length),n.push(r);continue}if(r=this.tokenizer.hr(e)){e=e.substring(r.raw.length),n.push(r);continue}if(r=this.tokenizer.blockquote(e)){e=e.substring(r.raw.length),n.push(r);continue}if(r=this.tokenizer.list(e)){e=e.substring(r.raw.length),n.push(r);continue}if(r=this.tokenizer.html(e)){e=e.substring(r.raw.length),n.push(r);continue}if(r=this.tokenizer.def(e)){e=e.substring(r.raw.length);let i=n.at(-1);i?.type==="paragraph"||i?.type==="text"?(i.raw+=(i.raw.endsWith(` +`)?"":` +`)+r.raw,i.text+=` +`+r.raw,this.inlineQueue.at(-1).src=i.text):this.tokens.links[r.tag]||(this.tokens.links[r.tag]={href:r.href,title:r.title},n.push(r));continue}if(r=this.tokenizer.table(e)){e=e.substring(r.raw.length),n.push(r);continue}if(r=this.tokenizer.lheading(e)){e=e.substring(r.raw.length),n.push(r);continue}let a=e;if(this.options.extensions?.startBlock){let i=1/0,o=e.slice(1),l;this.options.extensions.startBlock.forEach(c=>{l=c.call({lexer:this},o),typeof l=="number"&&l>=0&&(i=Math.min(i,l))}),i<1/0&&i>=0&&(a=e.substring(0,i+1))}if(this.state.top&&(r=this.tokenizer.paragraph(a))){let i=n.at(-1);s&&i?.type==="paragraph"?(i.raw+=(i.raw.endsWith(` +`)?"":` +`)+r.raw,i.text+=` +`+r.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=i.text):n.push(r),s=a.length!==e.length,e=e.substring(r.raw.length);continue}if(r=this.tokenizer.text(e)){e=e.substring(r.raw.length);let i=n.at(-1);i?.type==="text"?(i.raw+=(i.raw.endsWith(` +`)?"":` +`)+r.raw,i.text+=` +`+r.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=i.text):n.push(r);continue}if(e){let i="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(i);break}else throw new Error(i)}}return this.state.top=!0,n}inline(e,n=[]){return this.inlineQueue.push({src:e,tokens:n}),n}inlineTokens(e,n=[]){let s=e,r=null;if(this.tokens.links){let l=Object.keys(this.tokens.links);if(l.length>0)for(;(r=this.tokenizer.rules.inline.reflinkSearch.exec(s))!=null;)l.includes(r[0].slice(r[0].lastIndexOf("[")+1,-1))&&(s=s.slice(0,r.index)+"["+"a".repeat(r[0].length-2)+"]"+s.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(r=this.tokenizer.rules.inline.anyPunctuation.exec(s))!=null;)s=s.slice(0,r.index)+"++"+s.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);let a;for(;(r=this.tokenizer.rules.inline.blockSkip.exec(s))!=null;)a=r[2]?r[2].length:0,s=s.slice(0,r.index+a)+"["+"a".repeat(r[0].length-a-2)+"]"+s.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);s=this.options.hooks?.emStrongMask?.call({lexer:this},s)??s;let i=!1,o="";for(;e;){i||(o=""),i=!1;let l;if(this.options.extensions?.inline?.some(p=>(l=p.call({lexer:this},e,n))?(e=e.substring(l.raw.length),n.push(l),!0):!1))continue;if(l=this.tokenizer.escape(e)){e=e.substring(l.raw.length),n.push(l);continue}if(l=this.tokenizer.tag(e)){e=e.substring(l.raw.length),n.push(l);continue}if(l=this.tokenizer.link(e)){e=e.substring(l.raw.length),n.push(l);continue}if(l=this.tokenizer.reflink(e,this.tokens.links)){e=e.substring(l.raw.length);let p=n.at(-1);l.type==="text"&&p?.type==="text"?(p.raw+=l.raw,p.text+=l.text):n.push(l);continue}if(l=this.tokenizer.emStrong(e,s,o)){e=e.substring(l.raw.length),n.push(l);continue}if(l=this.tokenizer.codespan(e)){e=e.substring(l.raw.length),n.push(l);continue}if(l=this.tokenizer.br(e)){e=e.substring(l.raw.length),n.push(l);continue}if(l=this.tokenizer.del(e)){e=e.substring(l.raw.length),n.push(l);continue}if(l=this.tokenizer.autolink(e)){e=e.substring(l.raw.length),n.push(l);continue}if(!this.state.inLink&&(l=this.tokenizer.url(e))){e=e.substring(l.raw.length),n.push(l);continue}let c=e;if(this.options.extensions?.startInline){let p=1/0,h=e.slice(1),u;this.options.extensions.startInline.forEach(d=>{u=d.call({lexer:this},h),typeof u=="number"&&u>=0&&(p=Math.min(p,u))}),p<1/0&&p>=0&&(c=e.substring(0,p+1))}if(l=this.tokenizer.inlineText(c)){e=e.substring(l.raw.length),l.raw.slice(-1)!=="_"&&(o=l.raw.slice(-1)),i=!0;let p=n.at(-1);p?.type==="text"?(p.raw+=l.raw,p.text+=l.text):n.push(l);continue}if(e){let p="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(p);break}else throw new Error(p)}}return n}},q=class{options;parser;constructor(t){this.options=t||S}space(t){return""}code({text:t,lang:e,escaped:n}){let s=(e||"").match(b.notSpaceStart)?.[0],r=t.replace(b.endingNewline,"")+` +`;return s?'

'+(n?r:T(r,!0))+`
+`:"
"+(n?r:T(r,!0))+`
+`}blockquote({tokens:t}){return`
+${this.parser.parse(t)}
+`}html({text:t}){return t}def(t){return""}heading({tokens:t,depth:e}){return`${this.parser.parseInline(t)} +`}hr(t){return`
+`}list(t){let e=t.ordered,n=t.start,s="";for(let i=0;i +`+s+" +`}listitem(t){let e="";if(t.task){let n=this.checkbox({checked:!!t.checked});t.loose?t.tokens[0]?.type==="paragraph"?(t.tokens[0].text=n+" "+t.tokens[0].text,t.tokens[0].tokens&&t.tokens[0].tokens.length>0&&t.tokens[0].tokens[0].type==="text"&&(t.tokens[0].tokens[0].text=n+" "+T(t.tokens[0].tokens[0].text),t.tokens[0].tokens[0].escaped=!0)):t.tokens.unshift({type:"text",raw:n+" ",text:n+" ",escaped:!0}):e+=n+" "}return e+=this.parser.parse(t.tokens,!!t.loose),`
  • ${e}
  • +`}checkbox({checked:t}){return"'}paragraph({tokens:t}){return`

    ${this.parser.parseInline(t)}

    +`}table(t){let e="",n="";for(let r=0;r${s}`),` + +`+e+` +`+s+`
    +`}tablerow({text:t}){return` +${t} +`}tablecell(t){let e=this.parser.parseInline(t.tokens),n=t.header?"th":"td";return(t.align?`<${n} align="${t.align}">`:`<${n}>`)+e+` +`}strong({tokens:t}){return`${this.parser.parseInline(t)}`}em({tokens:t}){return`${this.parser.parseInline(t)}`}codespan({text:t}){return`${T(t,!0)}`}br(t){return"
    "}del({tokens:t}){return`${this.parser.parseInline(t)}`}link({href:t,title:e,tokens:n}){let s=this.parser.parseInline(n),r=Se(t);if(r===null)return s;t=r;let a='
    ",a}image({href:t,title:e,text:n,tokens:s}){s&&(n=this.parser.parseInline(s,this.parser.textRenderer));let r=Se(t);if(r===null)return T(n);t=r;let a=`${n}{let i=r[a].flat(1/0);n=n.concat(this.walkTokens(i,e))}):r.tokens&&(n=n.concat(this.walkTokens(r.tokens,e)))}}return n}use(...t){let e=this.defaults.extensions||{renderers:{},childTokens:{}};return t.forEach(n=>{let s={...n};if(s.async=this.defaults.async||s.async||!1,n.extensions&&(n.extensions.forEach(r=>{if(!r.name)throw new Error("extension name required");if("renderer"in r){let a=e.renderers[r.name];a?e.renderers[r.name]=function(...i){let o=r.renderer.apply(this,i);return o===!1&&(o=a.apply(this,i)),o}:e.renderers[r.name]=r.renderer}if("tokenizer"in r){if(!r.level||r.level!=="block"&&r.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");let a=e[r.level];a?a.unshift(r.tokenizer):e[r.level]=[r.tokenizer],r.start&&(r.level==="block"?e.startBlock?e.startBlock.push(r.start):e.startBlock=[r.start]:r.level==="inline"&&(e.startInline?e.startInline.push(r.start):e.startInline=[r.start]))}"childTokens"in r&&r.childTokens&&(e.childTokens[r.name]=r.childTokens)}),s.extensions=e),n.renderer){let r=this.defaults.renderer||new q(this.defaults);for(let a in n.renderer){if(!(a in r))throw new Error(`renderer '${a}' does not exist`);if(["options","parser"].includes(a))continue;let i=a,o=n.renderer[i],l=r[i];r[i]=(...c)=>{let p=o.apply(r,c);return p===!1&&(p=l.apply(r,c)),p||""}}s.renderer=r}if(n.tokenizer){let r=this.defaults.tokenizer||new M(this.defaults);for(let a in n.tokenizer){if(!(a in r))throw new Error(`tokenizer '${a}' does not exist`);if(["options","rules","lexer"].includes(a))continue;let i=a,o=n.tokenizer[i],l=r[i];r[i]=(...c)=>{let p=o.apply(r,c);return p===!1&&(p=l.apply(r,c)),p}}s.tokenizer=r}if(n.hooks){let r=this.defaults.hooks||new E;for(let a in n.hooks){if(!(a in r))throw new Error(`hook '${a}' does not exist`);if(["options","block"].includes(a))continue;let i=a,o=n.hooks[i],l=r[i];E.passThroughHooks.has(a)?r[i]=c=>{if(this.defaults.async&&E.passThroughHooksRespectAsync.has(a))return(async()=>{let h=await o.call(r,c);return l.call(r,h)})();let p=o.call(r,c);return l.call(r,p)}:r[i]=(...c)=>{if(this.defaults.async)return(async()=>{let h=await o.apply(r,c);return h===!1&&(h=await l.apply(r,c)),h})();let p=o.apply(r,c);return p===!1&&(p=l.apply(r,c)),p}}s.hooks=r}if(n.walkTokens){let r=this.defaults.walkTokens,a=n.walkTokens;s.walkTokens=function(i){let o=[];return o.push(a.call(this,i)),r&&(o=o.concat(r.call(this,i))),o}}this.defaults={...this.defaults,...s}}),this}setOptions(t){return this.defaults={...this.defaults,...t},this}lexer(t,e){return w.lex(t,e??this.defaults)}parser(t,e){return y.parse(t,e??this.defaults)}parseMarkdown(t){return(e,n)=>{let s={...n},r={...this.defaults,...s},a=this.onError(!!r.silent,!!r.async);if(this.defaults.async===!0&&s.async===!1)return a(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof e>"u"||e===null)return a(new Error("marked(): input parameter is undefined or null"));if(typeof e!="string")return a(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(e)+", string expected"));if(r.hooks&&(r.hooks.options=r,r.hooks.block=t),r.async)return(async()=>{let i=r.hooks?await r.hooks.preprocess(e):e,o=await(r.hooks?await r.hooks.provideLexer():t?w.lex:w.lexInline)(i,r),l=r.hooks?await r.hooks.processAllTokens(o):o;r.walkTokens&&await Promise.all(this.walkTokens(l,r.walkTokens));let c=await(r.hooks?await r.hooks.provideParser():t?y.parse:y.parseInline)(l,r);return r.hooks?await r.hooks.postprocess(c):c})().catch(a);try{r.hooks&&(e=r.hooks.preprocess(e));let i=(r.hooks?r.hooks.provideLexer():t?w.lex:w.lexInline)(e,r);r.hooks&&(i=r.hooks.processAllTokens(i)),r.walkTokens&&this.walkTokens(i,r.walkTokens);let o=(r.hooks?r.hooks.provideParser():t?y.parse:y.parseInline)(i,r);return r.hooks&&(o=r.hooks.postprocess(o)),o}catch(i){return a(i)}}}onError(t,e){return n=>{if(n.message+=` +Please report this to https://github.com/markedjs/marked.`,t){let s="

    An error occurred:

    "+T(n.message+"",!0)+"
    ";return e?Promise.resolve(s):s}if(e)return Promise.reject(n);throw n}}},$=new Mt;function x(t,e){return $.parse(t,e)}x.options=x.setOptions=function(t){return $.setOptions(t),x.defaults=$.defaults,ze(x.defaults),x};x.getDefaults=Y;x.defaults=S;x.use=function(...t){return $.use(...t),x.defaults=$.defaults,ze(x.defaults),x};x.walkTokens=function(t,e){return $.walkTokens(t,e)};x.parseInline=$.parseInline;x.Parser=y;x.parser=y.parse;x.Renderer=q;x.TextRenderer=ae;x.Lexer=w;x.lexer=w.lex;x.Tokenizer=M;x.Hooks=E;x.parse=x;var Nt=x.options,Gt=x.setOptions,Qt=x.use,Ut=x.walkTokens,Kt=x.parseInline;var Xt=y.parse,Vt=w.lex;function Oe(t){for(var e=[],n=1;noe?performance.now():0,"now"),le="\u{1F9DC} ",qt="Mermaid render",Ot="Mermaid",Ft={parse:"tertiary",prepare:"secondary",measure:"primary",layout:"primary-dark",layoutCore:"error",draw:"primary-light",paint:"secondary-dark",serialize:"tertiary-dark",render:"primary-light"},pr=class{constructor(){this.enabled=!1,this.autoPrint=!0,this.records=[],this.maxRecords=200,this.roots=[],this.stack=[],this.buckets={}}static{g(this,"Profiler")}enable(){return this.enabled=!0,this}disable(){return this.enabled=!1,this}start(t){this.enabled&&(this.roots=[],this.stack=[],this.buckets={},this.begin(t))}tickSync(t,e){if(!this.enabled)return e();let n=v();try{return e()}finally{this.buckets[t]=(this.buckets[t]??0)+(v()-n)}}async tick(t,e){if(!this.enabled)return e();let n=v();try{return await e()}finally{this.buckets[t]=(this.buckets[t]??0)+(v()-n)}}stop(){if(!this.enabled)return;for(;this.stack.length>0;)this.end();let t=this.roots.at(-1),e=this.runLabel??t?.name;return t&&(this.records.push({label:e??t.name,tree:t,buckets:{...this.buckets}}),this.records.length>this.maxRecords&&this.records.splice(0,this.records.length-this.maxRecords),this.autoPrint&&this.printSummary(t,e)),this.runLabel=void 0,t}begin(t){if(!this.enabled)return;let e={name:t,start:v(),duration:-1,children:[]},n=this.stack.at(-1);if(n?n.children.push(e):this.roots.push(e),this.stack.push(e),oe&&typeof performance.mark=="function")try{performance.mark(`${le}${t} \u25B6`)}catch{}}end(){if(!this.enabled)return;let t=this.stack.pop();if(!t)return;let e=v();if(t.duration=e-t.start,oe&&typeof performance.measure=="function")try{performance.measure(`${le}${t.name}`,{start:t.start,end:e,detail:{devtools:{dataType:"track-entry",track:qt,trackGroup:Ot,color:Ft[t.name]??"primary",tooltipText:`${t.name} \u2014 ${t.duration.toFixed(1)} ms`}}})}catch{}}async span(t,e){if(!this.enabled)return e();this.begin(t);try{return await e()}finally{this.end()}}report(){return this.records.at(-1)?.tree??this.roots.at(-1)}clear(){this.records.length=0,this.roots=[],this.stack=[],this.runLabel=void 0}reset(){this.roots=[],this.stack=[]}printSummary(t=this.report(),e){if(!t)return;let n=t.duration,s=e&&e!==t.name?`${t.name} [${e}]`:t.name,r=["ms % phase"],a=g((o,l)=>{let c=" ".repeat(l),p=o.duration.toFixed(1).padStart(8),h=n>0?`${(o.duration/n*100).toFixed(0).padStart(3)}%`:" -";r.push(`${p} ${h} ${c}${o.name}`);for(let u of o.children)a(u,l+1);if(o.children.length>0){let u=o.children.reduce((f,m)=>f+m.duration,0),d=o.duration-u;if(d>.5){let f=d.toFixed(1).padStart(8);r.push(`${f} ${c} (self)`)}}},"walk");a(t,0);let i=Object.keys(this.buckets);if(i.length>0){r.push("\u2014\u2014 buckets (summed) \u2014\u2014");for(let o of i)r.push(`${this.buckets[o].toFixed(1).padStart(8)} ${o}`)}console.log(`${le}mermaid render profile \xB7 ${s} +${r.join(` +`)}`)}};globalThis.injected??={includeLargeFeatures:!0,profiling:!1,version:"0.0.0"};function je(t,{markdownAutoWrap:e}){let s=t.replace(//g,` +`).replace(/\n{2,}/g,` +`);return Oe(s)}g(je,"preprocessMarkdown");function We(t){return t.split(/\\n|\n|/gi).map(e=>e.trim().match(/<[^>]+>|[^\s<>]+/g)?.map(n=>({content:n,type:"normal"}))??[])}g(We,"nonMarkdownToLines");function Ze(t,e={}){let n=je(t,e),s=x.lexer(n),r=[[]],a=0;function i(o,l="normal"){o.type==="text"?o.text.split(` +`).forEach((p,h)=>{h!==0&&(a++,r.push([])),p.split(" ").forEach(u=>{u=u.replace(/'/g,"'"),u&&r[a].push({content:u,type:l})})}):o.type==="strong"||o.type==="em"?o.tokens.forEach(c=>{i(c,o.type)}):o.type==="html"&&r[a].push({content:o.text,type:"normal"})}return g(i,"processNode"),s.forEach(o=>{o.type==="paragraph"?o.tokens?.forEach(l=>{i(l)}):o.type==="html"?r[a].push({content:o.text,type:"normal"}):r[a].push({content:o.raw,type:"normal"})}),r}g(Ze,"markdownToLines");function De(t){return t?`

    ${t.replace(/\\n|\n/g,"
    ")}

    `:""}g(De,"nonMarkdownToHTML");function He(t,{markdownAutoWrap:e}={}){let n=x.lexer(t);function s(r){return r.type==="text"?e===!1?r.text.replace(/\n */g,"
    ").replace(/ /g," "):r.text.replace(/\n */g,"
    "):r.type==="strong"?`${r.tokens?.map(s).join("")}`:r.type==="em"?`${r.tokens?.map(s).join("")}`:r.type==="paragraph"?`

    ${r.tokens?.map(s).join("")}

    `:r.type==="space"?"":r.type==="html"?`${r.text}`:r.type==="escape"?r.text:(N.warn(`Unsupported markdown: ${r.type}`),r.raw)}return g(s,"output"),n.map(s).join("")}g(He,"markdownToHTML");var jt=(function(t){"use strict";var e=function(){},n=t.requestAnimationFrame||t.webkitRequestAnimationFrame||t.mozRequestAnimationFrame||t.msRequestAnimationFrame||function(c){return setTimeout(c,16)};function s(){var c=this;c.reads=[],c.writes=[],c.raf=n.bind(t),e("initialized",c)}g(s,"FastDom"),s.prototype={constructor:s,runTasks:g(function(c){e("run tasks");for(var p;p=c.shift();)p()},"runTasks"),measure:g(function(c,p){e("measure");var h=p?c.bind(p):c;return this.reads.push(h),r(this),h},"measure"),mutate:g(function(c,p){e("mutate");var h=p?c.bind(p):c;return this.writes.push(h),r(this),h},"mutate"),clear:g(function(c){return e("clear",c),i(this.reads,c)||i(this.writes,c)},"clear"),extend:g(function(c){if(e("extend",c),typeof c!="object")throw new Error("expected object");var p=Object.create(this);return o(p,c),p.fastdom=this,p.initialize&&p.initialize(),p},"extend"),catch:null};function r(c){c.scheduled||(c.scheduled=!0,c.raf(a.bind(null,c)),e("flush scheduled"))}g(r,"scheduleFlush");function a(c){e("flush");var p=c.writes,h=c.reads,u;try{e("flushing reads",h.length),c.runTasks(h),e("flushing writes",p.length),c.runTasks(p)}catch(d){u=d}if(c.scheduled=!1,(h.length||p.length)&&r(c),u)if(e("task errored",u.message),c.catch)c.catch(u);else throw u}g(a,"flush");function i(c,p){var h=c.indexOf(p);return!!~h&&!!c.splice(h,1)}g(i,"remove");function o(c,p){for(var h in p)p.hasOwnProperty(h)&&(c[h]=p[h])}g(o,"mixin");var l=t.fastdom=t.fastdom||new s;return l})(typeof window<"u"?window:globalThis),Ne={initialize:g(function(){this._tasks=new Map},"initialize"),mutate:g(function(t,e){return ce(this,"mutate",t,e)},"mutate"),measure:g(function(t,e){return ce(this,"measure",t,e)},"measure"),clear:g(function(t){var e=this._tasks,n=e.get(t);this.fastdom.clear(n),e.delete(t)},"clear")};function ce(t,e,n,s){var r=t._tasks,a=t.fastdom,i,o=new Promise(function(l,c){i=a[e](function(){r.delete(o);try{l(s?n.call(s):n())}catch(p){c(p)}},s)});return r.set(o,i),o}g(ce,"create");var{initialize:gr,mutate:fr,measure:dr,clear:kr}=Ne,Wt=Ne,Zt=jt.extend({raf(t){typeof queueMicrotask=="function"?queueMicrotask(t):setTimeout(t,0)}}).extend(Wt),Dt=Zt;function Ge(t){return Intl.Segmenter?[...new Intl.Segmenter().segment(t)].map(e=>e.segment):[...t]}g(Ge,"splitTextToChars");function Qe(t,e){let n=Ge(e.content);return ue(t,[],n,e.type)}g(Qe,"splitWordToFitWidth");function ue(t,e,n,s){if(n.length===0)return[{content:e.join(""),type:s},{content:"",type:s}];let[r,...a]=n,i=[...e,r];return t([{content:i.join(""),type:s}])?ue(t,i,a,s):(e.length===0&&r&&(e.push(r),n.shift()),[{content:e.join(""),type:s},{content:n.join(""),type:s}])}g(ue,"splitWordToFitWidthRecursion");function Ue(t,e){if(t.some(({content:n})=>n.includes(` +`)))throw new Error("splitLineToFitWidth does not support newlines in the line");return j(t,e)}g(Ue,"splitLineToFitWidth");function j(t,e,n=[],s=[]){if(t.length===0)return s.length>0&&n.push(s),n.length>0?n:[];let r="";t[0].content===" "&&(r=" ",t.shift());let a=t.shift()??{content:" ",type:"normal"},i=[...s];if(r!==""&&i.push({content:r,type:"normal"}),i.push(a),e(i))return j(t,e,n,i);if(s.length>0)n.push(s),t.unshift(a);else if(a.content){let[o,l]=Qe(e,a);n.push([o]),l.content&&t.unshift(l)}return j(t,e,n)}g(j,"splitLineToFitWidthRecursion");function pe(t,e){e&&t.attr("style",e)}g(pe,"applyStyle");var Fe=16384;async function Ke(t,e,n,s,r=!1,a=ke(),i=0){let o=t.append("foreignObject");o.attr("width",`${Math.min(10*n,Fe)}px`),o.attr("height",`${Math.min(10*n,Fe)}px`);let l=o.append("xhtml:div"),c=Q(e.label)?await xe(e.label.replace(me.lineBreakRegex,` +`),a):G(e.label,a),p=e.isNode?"nodeLabel":"edgeLabel",h=l.append("span");h.html(c),pe(h,e.labelStyle),h.attr("class",`${p} ${s}`),pe(l,e.labelStyle),l.style("display","table-cell"),l.style("white-space","nowrap"),l.style("line-height","1.5"),n!==Number.POSITIVE_INFINITY&&(l.style("max-width",n+"px"),l.style("text-align","center")),l.attr("xmlns","http://www.w3.org/1999/xhtml"),r&&l.attr("class","labelBkg");let u=await Dt.measure(()=>l.node().getBoundingClientRect());return u.width===n?(l.style("display","table"),l.style("white-space","break-spaces"),l.style("width",n+"px")):u.widthXe(i,1.1,d)<=t,"checkWidth"),u=h(p)?[p]:Ue(p,h);for(let d of u){let f=W(l,c,1.1,r);Z(f,d),c++}}if(s){let p=l.node().getBBox(),h=2;return o.attr("x",p.x-h).attr("y",p.y-h).attr("width",p.width+2*h).attr("height",p.height+2*h),i.node()}else return l.node()}g(Ve,"createFormattedText");function he(t){let e=/&(amp|lt|gt);/g;return t.replace(e,(n,s)=>{switch(s){case"amp":return"&";case"lt":return"<";case"gt":return">";default:return n}})}g(he,"decodeHTMLEntities");function Z(t,e){t.text(""),e.forEach((n,s)=>{let r=t.append("tspan").attr("font-style",n.type==="em"?"italic":"normal").attr("class","text-inner-tspan").attr("font-weight",n.type==="strong"?"bold":"normal");s===0?r.text(he(n.content)):r.text(" "+he(n.content))})}g(Z,"updateTextContentAndStyles");async function Ye(t,e={}){let n=[];t.replace(/(fa[bklrs]?):fa-([\w-]+)/g,(r,a,i)=>(n.push((async()=>{let o=`${a}:${i}`;return await be(o)?await we(o,void 0,{class:"label-icon"}):``})()),r));let s=await Promise.all(n);return t.replace(/(fa[bklrs]?):fa-([\w-]+)/g,()=>s.shift()??"")}g(Ye,"replaceIconSubstring");var mr=g(async(t,e="",{style:n="",isTitle:s=!1,classes:r="",useHtmlLabels:a=!0,markdown:i=!0,isNode:o=!0,width:l=200,minWidth:c=0,addSvgBackground:p=!1}={},h)=>{if(N.debug("XYZ createText",e,n,s,r,a,o,"addSvgBackground: ",p),a){let u=i?He(e,h):De(e),d=await Ye(U(u),h),f=e.replace(/\\\\/g,"\\"),m={isNode:o,label:Q(e)?f:d,labelStyle:n.replace("fill:","color:")};return await Ke(t,m,l,r,p,h,c)}else{let u=U(e.replace(//g,"
    ")),d=i?Ze(u.replace("
    ","
    "),h):We(u),f=Ve(l,t,d,e?p:!1,!o);if(o){/stroke:/.exec(n)&&(n=n.replace("stroke:","lineColor:"));let m=n.replace(/stroke:[^;]+;?/g,"").replace(/stroke-width:[^;]+;?/g,"").replace(/fill:[^;]+;?/g,"").replace(/color:/g,"fill:");R(f).attr("style",m)}else{let m=n.replace(/stroke:[^;]+;?/g,"").replace(/stroke-width:[^;]+;?/g,"").replace(/fill:[^;]+;?/g,"").replace(/background:/g,"fill:");R(f).select("rect").attr("style",m.replace(/background:/g,"fill:"));let z=n.replace(/stroke:[^;]+;?/g,"").replace(/stroke-width:[^;]+;?/g,"").replace(/fill:[^;]+;?/g,"").replace(/color:/g,"fill:");R(f).select("text").attr("style",z)}return s?R(f).selectAll("tspan.text-outer-tspan").classed("title-row",!0):R(f).selectAll("tspan.text-outer-tspan").classed("row",!0),f}},"createText");export{Oe as a,Ze as b,Dt as c,Ht as d,mr as e}; diff --git a/src/frontend/web/von_interface/static/vendor/conversation-visuals/chunk-QNBXOM7U.js b/src/frontend/web/von_interface/static/vendor/conversation-visuals/chunk-QNBXOM7U.js new file mode 100644 index 000000000..207f849c8 --- /dev/null +++ b/src/frontend/web/von_interface/static/vendor/conversation-visuals/chunk-QNBXOM7U.js @@ -0,0 +1,2 @@ +import{a as o,b as d,c,d as i,e as l,g as u,s as v,w as g,y as m}from"./chunk-RVPSGR2P.js";var p=class extends m{static{o(this,"RailroadPegTokenBuilder")}constructor(){super(["railroad-peg-beta"])}},h=o(a=>{let e=a.slice(1,-1),r="";for(let t=0;tnew p,"TokenBuilder"),ValueConverter:o(()=>new f,"ValueConverter")}};function R(a=l){let e=i(c(a),u),r=i(d({shared:e}),v,C);return e.ServiceRegistry.register(r),{shared:e,RailroadPeg:r}}o(R,"createRailroadPegServices");export{C as a,R as b}; diff --git a/src/frontend/web/von_interface/static/vendor/conversation-visuals/chunk-QP3MATMC.js b/src/frontend/web/von_interface/static/vendor/conversation-visuals/chunk-QP3MATMC.js new file mode 100644 index 000000000..e9359995e --- /dev/null +++ b/src/frontend/web/von_interface/static/vendor/conversation-visuals/chunk-QP3MATMC.js @@ -0,0 +1,15 @@ +import{a as e}from"./chunk-YUSHYV7C.js";var l=e(()=>` + /* Font Awesome icon styling - consolidated */ + .label-icon { + display: inline-block; + height: 1em; + overflow: visible; + vertical-align: -0.125em; + } + + .node .label-icon path { + fill: currentColor; + stroke: revert; + stroke-width: revert; + } +`,"getIconStyles");export{l as a}; diff --git a/src/frontend/web/von_interface/static/vendor/conversation-visuals/chunk-QSTT4QQC.js b/src/frontend/web/von_interface/static/vendor/conversation-visuals/chunk-QSTT4QQC.js new file mode 100644 index 000000000..bf7b363a3 --- /dev/null +++ b/src/frontend/web/von_interface/static/vendor/conversation-visuals/chunk-QSTT4QQC.js @@ -0,0 +1 @@ +import{b as m}from"./chunk-3RNHDNP5.js";var R=m(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.BLANK_URL=e.relativeFirstCharacters=e.whitespaceEscapeCharsRegex=e.urlSchemeRegex=e.ctrlCharactersRegex=e.htmlCtrlEntityRegex=e.htmlEntitiesRegex=e.invalidProtocolRegex=void 0;e.invalidProtocolRegex=/^([^\w]*)(javascript|data|vbscript)/im;e.htmlEntitiesRegex=/&#(\w+)(^\w|;)?/g;e.htmlCtrlEntityRegex=/&(newline|tab);/gi;e.ctrlCharactersRegex=/[\u0000-\u001F\u007F-\u009F\u2000-\u200D\uFEFF]/gim;e.urlSchemeRegex=/^.+(:|:)/gim;e.whitespaceEscapeCharsRegex=/(\\|%5[cC])((%(6[eE]|72|74))|[nrt])/g;e.relativeFirstCharacters=[".","/"];e.BLANK_URL="about:blank"});var v=m(s=>{"use strict";Object.defineProperty(s,"__esModule",{value:!0});s.sanitizeUrl=p;var t=R();function d(r){return t.relativeFirstCharacters.indexOf(r[0])>-1}function x(r){var c=r.replace(t.ctrlCharactersRegex,"");return c.replace(t.htmlEntitiesRegex,function(a,i){return String.fromCharCode(i)})}function C(r){return URL.canParse(r)}function g(r){try{return decodeURIComponent(r)}catch{return r}}function p(r){if(!r)return t.BLANK_URL;var c,a=g(r.trim());do a=x(a).replace(t.htmlCtrlEntityRegex,"").replace(t.ctrlCharactersRegex,"").replace(t.whitespaceEscapeCharsRegex,"").trim(),a=g(a),c=a.match(t.ctrlCharactersRegex)||a.match(t.htmlEntitiesRegex)||a.match(t.htmlCtrlEntityRegex)||a.match(t.whitespaceEscapeCharsRegex);while(c&&c.length>0);var i=a;if(!i)return t.BLANK_URL;if(d(i))return i;var h=i.trimStart(),u=h.match(t.urlSchemeRegex);if(!u)return i;var n=u[0].toLowerCase().trim();if(t.invalidProtocolRegex.test(n))return t.BLANK_URL;var o=h.replace(/\\/g,"/");if(n==="mailto:"||n.includes("://"))return o;if(n==="http:"||n==="https:"){if(!C(o))return t.BLANK_URL;var l=new URL(o);return l.protocol=l.protocol.toLowerCase(),l.hostname=l.hostname.toLowerCase(),l.toString()}return o}});export{v as a}; diff --git a/src/frontend/web/von_interface/static/vendor/conversation-visuals/chunk-R6BKASFG.js b/src/frontend/web/von_interface/static/vendor/conversation-visuals/chunk-R6BKASFG.js new file mode 100644 index 000000000..03154597e --- /dev/null +++ b/src/frontend/web/von_interface/static/vendor/conversation-visuals/chunk-R6BKASFG.js @@ -0,0 +1 @@ +import{a as E}from"./chunk-E4FJ3GMM.js";import{b as $,c as A}from"./chunk-AKE2LJPJ.js";import{c as S,d as v,e as O,f as P,g as k,i as F,j}from"./chunk-NDMMOI35.js";import{a as X,b as G,d as _,e as D}from"./chunk-T4OFBIBR.js";import{a as M}from"./chunk-TEBTVNCH.js";import{p as w}from"./chunk-EUYVSIXP.js";import{$ as B,C as R}from"./chunk-S4JILX6U.js";import{b as l}from"./chunk-XEQL7KGA.js";import{a as u}from"./chunk-YUSHYV7C.js";function z(e,{edgePathsClass:n="edges edgePaths"}={}){let t=e.insert("g").attr("class","root"),s=t.insert("g").attr("class","clusters"),r=t.insert("g").attr("class",n),i=t.insert("g").attr("class","edgeLabels"),a=t.insert("g").attr("class","nodes");return{clusters:s,edgePaths:r,edgeLabels:i,nodes:a,rootGroups:t}}u(z,"createLayoutElementGroups");async function J(e,n,t){if(n.label){let{shapeSvg:s,bbox:r}=await M(e,t===void 0?n:{...n,width:t});n.labelBBox={width:r.width,height:r.height},s.remove()}else n.labelBBox={width:0,height:0}}u(J,"measureGroupLabel");async function V(e,n,t){let s=await G(e,n,t),r=s.node()?.getBBox()??{width:0,height:0};return n.width=r.width,n.height=r.height,s}u(V,"insertMeasuredNode");function W(e,n,t){let s=e,r=new Set;for(;s;){if(s.dir)return s.dir;if(!s.parentId||r.has(s.parentId))break;r.add(s.parentId),s=n.get(s.parentId)}return t}u(W,"resolveNodeDir");async function Y(e,n,t={}){let s=new E({multigraph:!0,compound:!0}),r=[...n.edges],i=B(),a=z(e),{edgeLabels:d,nodes:o}=a,g=new Map,b=new Map(n.nodes.map(f=>[f.id,f])),N=n.direction,h=e.node()!=null;await Promise.all(n.nodes.map(async f=>{if(f.isGroup){if(h){let p=t.unwrapGroupLabels&&f.labelType!=="markdown";await J(o,f,p?Number.POSITIVE_INFINITY:void 0)}s.setNode(f.id,{...f})}else{if(h){let p=await V(o,f,{config:i,dir:W(f,b,N)});g.set(f.id,p)}s.setNode(f.id,{...f})}}));for(let f of r)h&&P(f)&&await k(d,f),s.setEdge(f.start,f.end,{...f},f.id),n.edges.some(C=>C.id===f.id)||n.edges.push(f);if(globalThis.mermaidCaptureSizes){let{captureNodeSizes:f}=await import("./sizeCapture-INFHLROL-IZ3DL65J.js");f(e,n)}return{graph:s,groups:a,nodeElements:g}}u(Y,"createGraphWithElements");var c=new Map,m=new Map,q=new Map,fe=u(()=>{m.clear(),q.clear(),c.clear()},"clear"),y=u((e,n)=>{let t=m.get(n)||[];return l.trace("In isDescendant",n," ",e," = ",t.includes(e)),t.includes(e)},"isDescendant"),de=u((e,n)=>{let t=m.get(n)||[];return l.info("Descendants of ",n," is ",t),l.info("Edge is ",e),e.v===n||e.w===n?!1:t?t.includes(e.v)||y(e.v,n)||y(e.w,n)||t.includes(e.w):(l.debug("Tilt, ",n,",not in descendants"),!1)},"edgeInCluster"),K=u((e,n,t,s)=>{l.debug("Copying children of ",e,"root",s,"data",n.node(e),s);let r=n.children(e)||[];e!==s&&r.push(e),l.debug("Copying (nodes) clusterId",e,"nodes",r),r.forEach(i=>{if(n.children(i).length>0)K(i,n,t,s);else{let a=n.node(i);l.info("cp ",i," to ",s," with parent ",e),t.setNode(i,a),s!==n.parent(i)&&(l.debug("Setting parent",i,n.parent(i)),t.setParent(i,n.parent(i))),e!==s&&i!==e?(l.debug("Setting parent",i,e),t.setParent(i,e)):(l.info("In copy ",e,"root",s,"data",n.node(e),s),l.debug("Not Setting parent for node=",i,"cluster!==rootId",e!==s,"node!==clusterId",i!==e));let d=n.edges(i);l.debug("Copying Edges",d),d.forEach(o=>{l.info("Edge",o);let g=n.edge(o.v,o.w,o.name);l.info("Edge data",g,s);try{de(o,s)?(l.info("Copying as ",o.v,o.w,g,o.name),t.setEdge(o.v,o.w,g,o.name),l.info("newGraph edges ",t.edges(),t.edge(t.edges()[0]))):l.info("Skipping copy of edge ",o.v,"-->",o.w," rootId: ",s," clusterId:",e)}catch(b){l.error(b)}})}l.debug("Removing node",i),n.removeNode(i)})},"copy"),Q=u((e,n)=>{let t=n.children(e),s=[...t];for(let r of t)q.set(r,e),s=[...s,...Q(r,n)];return s},"extractDescendants"),ge=u((e,n,t)=>{let s=e.edges().filter(o=>o.v===n||o.w===n),r=e.edges().filter(o=>o.v===t||o.w===t),i=s.map(o=>({v:o.v===n?t:o.v,w:o.w===n?n:o.w})),a=r.map(o=>({v:o.v,w:o.w}));return i.filter(o=>a.some(g=>o.v===g.v&&o.w===g.w))},"findCommonEdges"),x=u((e,n,t)=>{let s=n.children(e);if(l.trace("Searching children of id ",e,s),s.length<1)return e;let r;for(let i of s){let a=x(i,n,t),d=ge(n,t,a);if(a)if(d.length>0)r=a;else return a}return r},"findNonClusterChild"),H=u(e=>!c.has(e)||!c.get(e).externalConnections?e:c.has(e)?c.get(e).id:e,"getAnchorId"),Ne=u((e,n)=>{if(!e||n>10){l.debug("Opting out, no graph ");return}else l.debug("Opting in, graph ");e.nodes().forEach(function(t){e.children(t).length>0&&(l.debug("Cluster identified",t," Replacement id in edges: ",x(t,e,t)),m.set(t,Q(t,e)),c.set(t,{id:x(t,e,t),clusterData:e.node(t)}))}),e.nodes().forEach(function(t){let s=e.children(t),r=e.edges();s.length>0?(l.debug("Cluster identified",t,m),r.forEach(i=>{let a=y(i.v,t),d=y(i.w,t);a^d&&(l.debug("Edge: ",i," leaves cluster ",t),l.debug("Descendants of XXX ",t,": ",m.get(t)),c.get(t).externalConnections=!0)})):l.debug("Not a cluster ",t,m)});for(let t of c.keys()){let s=c.get(t).id,r=e.parent(s);r!==t&&c.has(r)&&!c.get(r).externalConnections&&(c.get(t).id=r);let i=e.edges().some(a=>a.v===t);if(s&&c.get(t)?.externalConnections&&i&&I(e,s,t)){let a=me(e,t,e.parent(s));a&&(c.get(t).id=a)}}e.edges().forEach(function(t){let s=e.edge(t);l.debug("Edge "+t.v+" -> "+t.w+": "+JSON.stringify(t)),l.debug("Edge "+t.v+" -> "+t.w+": "+JSON.stringify(e.edge(t)));let r=t.v,i=t.w;if(l.debug("Fix XXX",c,"ids:",t.v,t.w,"Translating: ",c.get(t.v)," --- ",c.get(t.w)),c.get(t.v)||c.get(t.w)){if(l.debug("Fixing and trying - removing XXX",t.v,t.w,t.name),r=H(t.v),i=H(t.w),e.removeEdge(t.v,t.w,t.name),r!==t.v){let a=e.parent(r);c.get(a).externalConnections=!0,s.fromCluster=t.v}if(i!==t.w){let a=e.parent(i);c.get(a).externalConnections=!0,s.toCluster=t.w}l.debug("Fix Replacing with XXX",r,i,t.name),e.setEdge(r,i,s,t.name)}}),U(e,0),l.trace(c)},"adjustClustersAndEdges"),U=u((e,n)=>{if(n>10){l.error("Bailing out");return}let t=e.nodes(),s=!1;for(let r of t){let i=e.children(r);s=s||i.length>0}if(!s){l.debug("Done, no node has children",e.nodes());return}l.debug("Nodes = ",t,n);for(let r of t)if(l.debug("Extracting node",r,c,c.has(r)&&!c.get(r).externalConnections,!e.parent(r),e.node(r),e.children("D")," Depth ",n),!c.has(r))l.debug("Not a cluster",r,n);else if(!c.get(r).externalConnections&&e.children(r)&&e.children(r).length>0){l.debug("Cluster without external connections, without a parent and with children",r,n);let a=e.graph().rankdir==="TB"?"LR":"TB";c.get(r)?.clusterData?.dir&&(a=c.get(r).clusterData.dir,l.debug("Fixing dir",c.get(r).clusterData.dir,a));let d=new E({multigraph:!0,compound:!0}).setGraph({rankdir:a,nodesep:50,ranksep:50,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}});K(r,e,d,r),e.setNode(r,{clusterNode:!0,id:r,clusterData:c.get(r).clusterData,label:c.get(r).label,graph:d})}else l.debug("Cluster ** ",r," **not meeting the criteria !externalConnections:",!c.get(r).externalConnections," no parent: ",!e.parent(r)," children ",e.children(r)&&e.children(r).length>0,e.children("D"),n),l.debug(c);t=e.nodes(),l.debug("New list of nodes",t);for(let r of t){let i=e.node(r);l.debug(" Now next level",r,i),i?.clusterNode&&U(i.graph,n+1)}},"extractor"),Z=u((e,n)=>{if(n.length===0)return[];let t=Object.assign([],n);return n.forEach(s=>{let r=e.children(s),i=Z(e,r);t=[...t,...i]}),t},"sorter"),Le=u(e=>Z(e,e.children()),"sortNodesByHierarchy"),I=u((e,n,t)=>{let s=e.parent(n);for(;s&&s!==t;){let r=c.get(s);if(r&&!r.externalConnections)return!0;s=e.parent(s)}return!1},"isNodeInExtractableCluster"),me=u((e,n,t)=>{let s=e.children(n)??[];for(let r of s){if(r===t||y(r,t))continue;let i=x(r,e,n);if(i&&!I(e,i,n))return i}return null},"findSafeAnchorNode");function be({prepareLayout:e,measureLayout:n,runLayoutCore:t,paintLayout:s,afterPaint:r,paintOptions:i}){let a=n??te;return u(async function(o,g,b,N){let h=g.select("g");(b?.insertMarkers??j)(h,o.markers,o.type,o.diagramId),ee();let f={element:h,helpers:b,options:N};f.preparedLayout=await e?.(o,f);let p=await a(o,f),C=await t(o,f),L={...f,measure:p};s?await s(o,L,C):await ne(o,L,i),await r?.(o,L,C)},"render")}u(be,"createCommonLayoutRenderer");function ee(){_(),O(),A(),fe()}u(ee,"clearLayoutRenderState");async function te(e,{element:n},t){return await Y(n,e,t)}u(te,"defaultMeasureLayout");async function ne(e,n,t={}){let{measure:s}=n,{groups:r}=s;for(let a of t.getNodes?.(e,n)??e.nodes)t.skipNode?.(a,n)||await re(r,a,n,t);let i=ie(e.nodes);for(let a of e.edges)oe(a,t)||await ae(r,a,i,e,t,n)}u(ne,"paintLayoutData");async function re(e,n,t,s){n.clusterNode?D(n):se(n,t,s)?await $(e.clusters,n):D(n)}u(re,"paintLayoutNode");function se(e,n,t){return e.isGroup===!0&&(t.isCluster?.(e,n)??!0)}u(se,"shouldPaintAsCluster");function ie(e){let n=new Map;for(let t of e)t?.id&&n.set(t.id,t);return n}u(ie,"buildNodeLookup");function oe(e,n){return e.isLayoutOnly||!!n.skipEdge?.(e)}u(oe,"shouldSkipPaintEdge");async function ae(e,n,t,s,r,i){let a=F(e.edgePaths,{...n},r.clusterDb??new Map,s.type,T(n.start,n,t,i,r),T(n.end,n,t,i,r),s.diagramId,le(n,r));P(n)&&(S.has(n.id)||await k(e.edgeLabels,n),ce(n,a))}u(ae,"paintLayoutEdge");function T(e,n,t,s,r){return r.getEdgeNode?.(e,n,s)??(e?t.get(e)??{}:{})}u(T,"getRenderedNode");function le(e,n){return typeof n.skipIntersect=="function"?n.skipIntersect(e):n.skipIntersect??!1}u(le,"shouldSkipIntersect");function ce(e,n){let t=n?.updatedPath??n?.originalPath,s=R(),{subGraphTitleTotalMargin:r}=X({flowchart:s.flowchart??{}});if(e.label){let i=S.get(e.id),a=e.x,d=e.y;if(t){let o=w.calcLabelPosition(t);l.debug("Moving label "+e.label+" from (",a,",",d,") to (",o.x,",",o.y,") abc88"),n?.updatedPath&&(a=o.x,d=o.y)}i.attr("transform",`translate(${a}, ${d+r/2})`)}if(e?.startLabelLeft){let i=v.get(e.id).startLeft,a=e?.x,d=e?.y;if(t){let o=w.calcTerminalLabelPosition(e.arrowTypeStart?10:0,"start_left",t);a=o.x,d=o.y}i.attr("transform",`translate(${a}, ${d})`)}if(e.startLabelRight){let i=v.get(e.id).startRight,a=e.x,d=e.y;if(t){let o=w.calcTerminalLabelPosition(e.arrowTypeStart?10:0,"start_right",t);a=o.x,d=o.y}i.attr("transform",`translate(${a}, ${d})`)}if(e.endLabelLeft){let i=v.get(e.id).endLeft,a=e.x,d=e.y;if(t){let o=w.calcTerminalLabelPosition(e.arrowTypeEnd?10:0,"end_left",t);a=o.x,d=o.y}i.attr("transform",`translate(${a}, ${d})`)}if(e.endLabelRight){let i=v.get(e.id).endRight,a=e.x,d=e.y;if(t){let o=w.calcTerminalLabelPosition(e.arrowTypeEnd?10:0,"end_right",t);a=o.x,d=o.y}i.attr("transform",`translate(${a}, ${d})`)}}u(ce,"positionRenderedEdgeLabel");export{z as a,V as b,c,x as d,Ne as e,Le as f,be as g,te as h}; diff --git a/src/frontend/web/von_interface/static/vendor/conversation-visuals/chunk-RDO2S4TE.js b/src/frontend/web/von_interface/static/vendor/conversation-visuals/chunk-RDO2S4TE.js new file mode 100644 index 000000000..5e092101c --- /dev/null +++ b/src/frontend/web/von_interface/static/vendor/conversation-visuals/chunk-RDO2S4TE.js @@ -0,0 +1,2 @@ +import{a as o,b as d,c,d as i,e as l,g as u,r as v,w as m,y as h}from"./chunk-RVPSGR2P.js";var f=class extends h{static{o(this,"RailroadTokenBuilder")}constructor(){super(["railroad-beta"])}},R=o(a=>{let e=a.slice(1,-1),r="";for(let t=0;tnew f,"TokenBuilder"),ValueConverter:o(()=>new p,"ValueConverter")}};function S(a=l){let e=i(c(a),u),r=i(d({shared:e}),v,C);return e.ServiceRegistry.register(r),{shared:e,Railroad:r}}o(S,"createRailroadServices");export{C as a,S as b}; diff --git a/src/frontend/web/von_interface/static/vendor/conversation-visuals/chunk-RMEGOE55.js b/src/frontend/web/von_interface/static/vendor/conversation-visuals/chunk-RMEGOE55.js new file mode 100644 index 000000000..30700a3dd --- /dev/null +++ b/src/frontend/web/von_interface/static/vendor/conversation-visuals/chunk-RMEGOE55.js @@ -0,0 +1 @@ +import{a as t,b as s,c as d,d as o,e as l,g as u,p as c,w as f,y as m}from"./chunk-RVPSGR2P.js";var v=class extends m{static{t(this,"RailroadAbnfTokenBuilder")}constructor(){super(["railroad-abnf-beta"])}},b=class extends f{static{t(this,"RailroadAbnfValueConverter")}runConverter(r,e,a){let i=super.runConverter(r,e,a);if(r.name==="TITLE"&&typeof i=="string"){let n=i.trim();if(n.startsWith('"')&&n.endsWith('"')||n.startsWith("'")&&n.endsWith("'"))return n.slice(1,-1)}return i}runCustomConverter(r,e,a){if(r.name==="ABNF_STRING")return e.slice(1,-1)}},A={parser:{TokenBuilder:t(()=>new v,"TokenBuilder"),ValueConverter:t(()=>new b,"ValueConverter")}};function C(r=l){let e=o(d(r),u),a=o(s({shared:e}),c,A);return e.ServiceRegistry.register(a),{shared:e,RailroadAbnf:a}}t(C,"createRailroadAbnfServices");export{A as a,C as b}; diff --git a/src/frontend/web/von_interface/static/vendor/conversation-visuals/chunk-RVPSGR2P.js b/src/frontend/web/von_interface/static/vendor/conversation-visuals/chunk-RVPSGR2P.js new file mode 100644 index 000000000..40f403dfa --- /dev/null +++ b/src/frontend/web/von_interface/static/vendor/conversation-visuals/chunk-RVPSGR2P.js @@ -0,0 +1,162 @@ +var Iw=Object.create,_s=Object.defineProperty,Nw=Object.getOwnPropertyDescriptor,mp=Object.getOwnPropertyNames,Pw=Object.getPrototypeOf,kw=Object.prototype.hasOwnProperty,s=(e,t)=>_s(e,"name",{value:t,configurable:!0}),Ow=(e,t)=>function(){return e&&(t=(0,e[mp(e)[0]])(e=0)),t},H=(e,t)=>function(){return t||(0,e[mp(e)[0]])((t={exports:{}}).exports,t),t.exports},Mr=(e,t)=>{for(var r in t)_s(e,r,{get:t[r],enumerable:!0})},Go=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of mp(t))!kw.call(e,a)&&a!==r&&_s(e,a,{get:()=>t[a],enumerable:!(n=Nw(t,a))||n.enumerable});return e},Sl=(e,t,r)=>(Go(e,t,"default"),r&&Go(r,t,"default")),hp=(e,t,r)=>(r=e!=null?Iw(Pw(e)):{},Go(t||!e||!e.__esModule?_s(r,"default",{value:e,enumerable:!0}):r,e)),yp=e=>Go(_s({},"__esModule",{value:!0}),e),wl={};Mr(wl,{AnnotatedTextEdit:()=>ir,ChangeAnnotation:()=>Yr,ChangeAnnotationIdentifier:()=>je,CodeAction:()=>Wc,CodeActionContext:()=>qc,CodeActionKind:()=>Bc,CodeActionTriggerKind:()=>zi,CodeDescription:()=>Ac,CodeLens:()=>Vc,Color:()=>ho,ColorInformation:()=>yc,ColorPresentation:()=>gc,Command:()=>Hr,CompletionItem:()=>kc,CompletionItemKind:()=>_c,CompletionItemLabelDetails:()=>Pc,CompletionItemTag:()=>wc,CompletionList:()=>Oc,CreateFile:()=>oa,DeleteFile:()=>ua,Diagnostic:()=>xi,DiagnosticRelatedInformation:()=>yo,DiagnosticSeverity:()=>$c,DiagnosticTag:()=>Rc,DocumentHighlight:()=>Gc,DocumentHighlightKind:()=>Mc,DocumentLink:()=>Yc,DocumentSymbol:()=>Kc,DocumentUri:()=>dc,EOL:()=>_g,FoldingRange:()=>Tc,FoldingRangeKind:()=>vc,FormattingOptions:()=>Hc,Hover:()=>Lc,InlayHint:()=>af,InlayHintKind:()=>To,InlayHintLabelPart:()=>$o,InlineCompletionContext:()=>ff,InlineCompletionItem:()=>of,InlineCompletionList:()=>lf,InlineCompletionTriggerKind:()=>uf,InlineValueContext:()=>nf,InlineValueEvaluatableExpression:()=>rf,InlineValueText:()=>ef,InlineValueVariableLookup:()=>tf,InsertReplaceEdit:()=>Ic,InsertTextFormat:()=>Sc,InsertTextMode:()=>Nc,Location:()=>Di,LocationLink:()=>hc,MarkedString:()=>Fi,MarkupContent:()=>ca,MarkupKind:()=>vo,OptionalVersionedTextDocumentIdentifier:()=>Gi,ParameterInformation:()=>Dc,Position:()=>ae,Range:()=>Q,RenameFile:()=>la,SelectedCompletionInfo:()=>cf,SelectionRange:()=>Xc,SemanticTokenModifiers:()=>Zc,SemanticTokenTypes:()=>Jc,SemanticTokens:()=>Qc,SignatureInformation:()=>xc,StringValue:()=>sf,SymbolInformation:()=>jc,SymbolKind:()=>Fc,SymbolTag:()=>zc,TextDocument:()=>df,TextDocumentEdit:()=>Mi,TextDocumentIdentifier:()=>Ec,TextDocumentItem:()=>bc,TextEdit:()=>jt,URI:()=>mo,VersionedTextDocumentIdentifier:()=>Cc,WorkspaceChange:()=>bg,WorkspaceEdit:()=>go,WorkspaceFolder:()=>pf,WorkspaceSymbol:()=>Uc,integer:()=>mc,uinteger:()=>Li});var dc,mo,mc,Li,ae,Q,Di,hc,ho,yc,gc,vc,Tc,yo,$c,Rc,Ac,xi,Hr,jt,Yr,je,ir,Mi,oa,la,ua,go,Ai,Mu,bg,Ec,Cc,Gi,bc,vo,ca,_c,Sc,wc,Ic,Nc,Pc,kc,Oc,Fi,Lc,Dc,xc,Mc,Gc,Fc,zc,jc,Uc,Kc,Bc,zi,qc,Wc,Vc,Hc,Yc,Xc,Jc,Zc,Qc,ef,tf,rf,nf,To,$o,af,sf,of,lf,uf,cf,ff,pf,_g,df,th,A,Ss=Ow({"../../node_modules/.pnpm/vscode-languageserver-types@3.17.5/node_modules/vscode-languageserver-types/lib/esm/main.js"(){"use strict";(function(e){function t(r){return typeof r=="string"}s(t,"is"),e.is=t})(dc||(dc={})),(function(e){function t(r){return typeof r=="string"}s(t,"is"),e.is=t})(mo||(mo={})),(function(e){e.MIN_VALUE=-2147483648,e.MAX_VALUE=2147483647;function t(r){return typeof r=="number"&&e.MIN_VALUE<=r&&r<=e.MAX_VALUE}s(t,"is"),e.is=t})(mc||(mc={})),(function(e){e.MIN_VALUE=0,e.MAX_VALUE=2147483647;function t(r){return typeof r=="number"&&e.MIN_VALUE<=r&&r<=e.MAX_VALUE}s(t,"is"),e.is=t})(Li||(Li={})),(function(e){function t(n,a){return n===Number.MAX_VALUE&&(n=Li.MAX_VALUE),a===Number.MAX_VALUE&&(a=Li.MAX_VALUE),{line:n,character:a}}s(t,"create"),e.create=t;function r(n){let a=n;return A.objectLiteral(a)&&A.uinteger(a.line)&&A.uinteger(a.character)}s(r,"is"),e.is=r})(ae||(ae={})),(function(e){function t(n,a,i,o){if(A.uinteger(n)&&A.uinteger(a)&&A.uinteger(i)&&A.uinteger(o))return{start:ae.create(n,a),end:ae.create(i,o)};if(ae.is(n)&&ae.is(a))return{start:n,end:a};throw new Error(`Range#create called with invalid arguments[${n}, ${a}, ${i}, ${o}]`)}s(t,"create"),e.create=t;function r(n){let a=n;return A.objectLiteral(a)&&ae.is(a.start)&&ae.is(a.end)}s(r,"is"),e.is=r})(Q||(Q={})),(function(e){function t(n,a){return{uri:n,range:a}}s(t,"create"),e.create=t;function r(n){let a=n;return A.objectLiteral(a)&&Q.is(a.range)&&(A.string(a.uri)||A.undefined(a.uri))}s(r,"is"),e.is=r})(Di||(Di={})),(function(e){function t(n,a,i,o){return{targetUri:n,targetRange:a,targetSelectionRange:i,originSelectionRange:o}}s(t,"create"),e.create=t;function r(n){let a=n;return A.objectLiteral(a)&&Q.is(a.targetRange)&&A.string(a.targetUri)&&Q.is(a.targetSelectionRange)&&(Q.is(a.originSelectionRange)||A.undefined(a.originSelectionRange))}s(r,"is"),e.is=r})(hc||(hc={})),(function(e){function t(n,a,i,o){return{red:n,green:a,blue:i,alpha:o}}s(t,"create"),e.create=t;function r(n){let a=n;return A.objectLiteral(a)&&A.numberRange(a.red,0,1)&&A.numberRange(a.green,0,1)&&A.numberRange(a.blue,0,1)&&A.numberRange(a.alpha,0,1)}s(r,"is"),e.is=r})(ho||(ho={})),(function(e){function t(n,a){return{range:n,color:a}}s(t,"create"),e.create=t;function r(n){let a=n;return A.objectLiteral(a)&&Q.is(a.range)&&ho.is(a.color)}s(r,"is"),e.is=r})(yc||(yc={})),(function(e){function t(n,a,i){return{label:n,textEdit:a,additionalTextEdits:i}}s(t,"create"),e.create=t;function r(n){let a=n;return A.objectLiteral(a)&&A.string(a.label)&&(A.undefined(a.textEdit)||jt.is(a))&&(A.undefined(a.additionalTextEdits)||A.typedArray(a.additionalTextEdits,jt.is))}s(r,"is"),e.is=r})(gc||(gc={})),(function(e){e.Comment="comment",e.Imports="imports",e.Region="region"})(vc||(vc={})),(function(e){function t(n,a,i,o,l,u){let c={startLine:n,endLine:a};return A.defined(i)&&(c.startCharacter=i),A.defined(o)&&(c.endCharacter=o),A.defined(l)&&(c.kind=l),A.defined(u)&&(c.collapsedText=u),c}s(t,"create"),e.create=t;function r(n){let a=n;return A.objectLiteral(a)&&A.uinteger(a.startLine)&&A.uinteger(a.startLine)&&(A.undefined(a.startCharacter)||A.uinteger(a.startCharacter))&&(A.undefined(a.endCharacter)||A.uinteger(a.endCharacter))&&(A.undefined(a.kind)||A.string(a.kind))}s(r,"is"),e.is=r})(Tc||(Tc={})),(function(e){function t(n,a){return{location:n,message:a}}s(t,"create"),e.create=t;function r(n){let a=n;return A.defined(a)&&Di.is(a.location)&&A.string(a.message)}s(r,"is"),e.is=r})(yo||(yo={})),(function(e){e.Error=1,e.Warning=2,e.Information=3,e.Hint=4})($c||($c={})),(function(e){e.Unnecessary=1,e.Deprecated=2})(Rc||(Rc={})),(function(e){function t(r){let n=r;return A.objectLiteral(n)&&A.string(n.href)}s(t,"is"),e.is=t})(Ac||(Ac={})),(function(e){function t(n,a,i,o,l,u){let c={range:n,message:a};return A.defined(i)&&(c.severity=i),A.defined(o)&&(c.code=o),A.defined(l)&&(c.source=l),A.defined(u)&&(c.relatedInformation=u),c}s(t,"create"),e.create=t;function r(n){var a;let i=n;return A.defined(i)&&Q.is(i.range)&&A.string(i.message)&&(A.number(i.severity)||A.undefined(i.severity))&&(A.integer(i.code)||A.string(i.code)||A.undefined(i.code))&&(A.undefined(i.codeDescription)||A.string((a=i.codeDescription)===null||a===void 0?void 0:a.href))&&(A.string(i.source)||A.undefined(i.source))&&(A.undefined(i.relatedInformation)||A.typedArray(i.relatedInformation,yo.is))}s(r,"is"),e.is=r})(xi||(xi={})),(function(e){function t(n,a,...i){let o={title:n,command:a};return A.defined(i)&&i.length>0&&(o.arguments=i),o}s(t,"create"),e.create=t;function r(n){let a=n;return A.defined(a)&&A.string(a.title)&&A.string(a.command)}s(r,"is"),e.is=r})(Hr||(Hr={})),(function(e){function t(i,o){return{range:i,newText:o}}s(t,"replace"),e.replace=t;function r(i,o){return{range:{start:i,end:i},newText:o}}s(r,"insert"),e.insert=r;function n(i){return{range:i,newText:""}}s(n,"del"),e.del=n;function a(i){let o=i;return A.objectLiteral(o)&&A.string(o.newText)&&Q.is(o.range)}s(a,"is"),e.is=a})(jt||(jt={})),(function(e){function t(n,a,i){let o={label:n};return a!==void 0&&(o.needsConfirmation=a),i!==void 0&&(o.description=i),o}s(t,"create"),e.create=t;function r(n){let a=n;return A.objectLiteral(a)&&A.string(a.label)&&(A.boolean(a.needsConfirmation)||a.needsConfirmation===void 0)&&(A.string(a.description)||a.description===void 0)}s(r,"is"),e.is=r})(Yr||(Yr={})),(function(e){function t(r){let n=r;return A.string(n)}s(t,"is"),e.is=t})(je||(je={})),(function(e){function t(i,o,l){return{range:i,newText:o,annotationId:l}}s(t,"replace"),e.replace=t;function r(i,o,l){return{range:{start:i,end:i},newText:o,annotationId:l}}s(r,"insert"),e.insert=r;function n(i,o){return{range:i,newText:"",annotationId:o}}s(n,"del"),e.del=n;function a(i){let o=i;return jt.is(o)&&(Yr.is(o.annotationId)||je.is(o.annotationId))}s(a,"is"),e.is=a})(ir||(ir={})),(function(e){function t(n,a){return{textDocument:n,edits:a}}s(t,"create"),e.create=t;function r(n){let a=n;return A.defined(a)&&Gi.is(a.textDocument)&&Array.isArray(a.edits)}s(r,"is"),e.is=r})(Mi||(Mi={})),(function(e){function t(n,a,i){let o={kind:"create",uri:n};return a!==void 0&&(a.overwrite!==void 0||a.ignoreIfExists!==void 0)&&(o.options=a),i!==void 0&&(o.annotationId=i),o}s(t,"create"),e.create=t;function r(n){let a=n;return a&&a.kind==="create"&&A.string(a.uri)&&(a.options===void 0||(a.options.overwrite===void 0||A.boolean(a.options.overwrite))&&(a.options.ignoreIfExists===void 0||A.boolean(a.options.ignoreIfExists)))&&(a.annotationId===void 0||je.is(a.annotationId))}s(r,"is"),e.is=r})(oa||(oa={})),(function(e){function t(n,a,i,o){let l={kind:"rename",oldUri:n,newUri:a};return i!==void 0&&(i.overwrite!==void 0||i.ignoreIfExists!==void 0)&&(l.options=i),o!==void 0&&(l.annotationId=o),l}s(t,"create"),e.create=t;function r(n){let a=n;return a&&a.kind==="rename"&&A.string(a.oldUri)&&A.string(a.newUri)&&(a.options===void 0||(a.options.overwrite===void 0||A.boolean(a.options.overwrite))&&(a.options.ignoreIfExists===void 0||A.boolean(a.options.ignoreIfExists)))&&(a.annotationId===void 0||je.is(a.annotationId))}s(r,"is"),e.is=r})(la||(la={})),(function(e){function t(n,a,i){let o={kind:"delete",uri:n};return a!==void 0&&(a.recursive!==void 0||a.ignoreIfNotExists!==void 0)&&(o.options=a),i!==void 0&&(o.annotationId=i),o}s(t,"create"),e.create=t;function r(n){let a=n;return a&&a.kind==="delete"&&A.string(a.uri)&&(a.options===void 0||(a.options.recursive===void 0||A.boolean(a.options.recursive))&&(a.options.ignoreIfNotExists===void 0||A.boolean(a.options.ignoreIfNotExists)))&&(a.annotationId===void 0||je.is(a.annotationId))}s(r,"is"),e.is=r})(ua||(ua={})),(function(e){function t(r){let n=r;return n&&(n.changes!==void 0||n.documentChanges!==void 0)&&(n.documentChanges===void 0||n.documentChanges.every(a=>A.string(a.kind)?oa.is(a)||la.is(a)||ua.is(a):Mi.is(a)))}s(t,"is"),e.is=t})(go||(go={})),Ai=class{static{s(this,"TextEditChangeImpl")}constructor(e,t){this.edits=e,this.changeAnnotations=t}insert(e,t,r){let n,a;if(r===void 0?n=jt.insert(e,t):je.is(r)?(a=r,n=ir.insert(e,t,r)):(this.assertChangeAnnotations(this.changeAnnotations),a=this.changeAnnotations.manage(r),n=ir.insert(e,t,a)),this.edits.push(n),a!==void 0)return a}replace(e,t,r){let n,a;if(r===void 0?n=jt.replace(e,t):je.is(r)?(a=r,n=ir.replace(e,t,r)):(this.assertChangeAnnotations(this.changeAnnotations),a=this.changeAnnotations.manage(r),n=ir.replace(e,t,a)),this.edits.push(n),a!==void 0)return a}delete(e,t){let r,n;if(t===void 0?r=jt.del(e):je.is(t)?(n=t,r=ir.del(e,t)):(this.assertChangeAnnotations(this.changeAnnotations),n=this.changeAnnotations.manage(t),r=ir.del(e,n)),this.edits.push(r),n!==void 0)return n}add(e){this.edits.push(e)}all(){return this.edits}clear(){this.edits.splice(0,this.edits.length)}assertChangeAnnotations(e){if(e===void 0)throw new Error("Text edit change is not configured to manage change annotations.")}},Mu=class{static{s(this,"ChangeAnnotations")}constructor(e){this._annotations=e===void 0?Object.create(null):e,this._counter=0,this._size=0}all(){return this._annotations}get size(){return this._size}manage(e,t){let r;if(je.is(e)?r=e:(r=this.nextId(),t=e),this._annotations[r]!==void 0)throw new Error(`Id ${r} is already in use.`);if(t===void 0)throw new Error(`No annotation provided for id ${r}`);return this._annotations[r]=t,this._size++,r}nextId(){return this._counter++,this._counter.toString()}},bg=class{static{s(this,"WorkspaceChange")}constructor(e){this._textEditChanges=Object.create(null),e!==void 0?(this._workspaceEdit=e,e.documentChanges?(this._changeAnnotations=new Mu(e.changeAnnotations),e.changeAnnotations=this._changeAnnotations.all(),e.documentChanges.forEach(t=>{if(Mi.is(t)){let r=new Ai(t.edits,this._changeAnnotations);this._textEditChanges[t.textDocument.uri]=r}})):e.changes&&Object.keys(e.changes).forEach(t=>{let r=new Ai(e.changes[t]);this._textEditChanges[t]=r})):this._workspaceEdit={}}get edit(){return this.initDocumentChanges(),this._changeAnnotations!==void 0&&(this._changeAnnotations.size===0?this._workspaceEdit.changeAnnotations=void 0:this._workspaceEdit.changeAnnotations=this._changeAnnotations.all()),this._workspaceEdit}getTextEditChange(e){if(Gi.is(e)){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");let t={uri:e.uri,version:e.version},r=this._textEditChanges[t.uri];if(!r){let n=[],a={textDocument:t,edits:n};this._workspaceEdit.documentChanges.push(a),r=new Ai(n,this._changeAnnotations),this._textEditChanges[t.uri]=r}return r}else{if(this.initChanges(),this._workspaceEdit.changes===void 0)throw new Error("Workspace edit is not configured for normal text edit changes.");let t=this._textEditChanges[e];if(!t){let r=[];this._workspaceEdit.changes[e]=r,t=new Ai(r),this._textEditChanges[e]=t}return t}}initDocumentChanges(){this._workspaceEdit.documentChanges===void 0&&this._workspaceEdit.changes===void 0&&(this._changeAnnotations=new Mu,this._workspaceEdit.documentChanges=[],this._workspaceEdit.changeAnnotations=this._changeAnnotations.all())}initChanges(){this._workspaceEdit.documentChanges===void 0&&this._workspaceEdit.changes===void 0&&(this._workspaceEdit.changes=Object.create(null))}createFile(e,t,r){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");let n;Yr.is(t)||je.is(t)?n=t:r=t;let a,i;if(n===void 0?a=oa.create(e,r):(i=je.is(n)?n:this._changeAnnotations.manage(n),a=oa.create(e,r,i)),this._workspaceEdit.documentChanges.push(a),i!==void 0)return i}renameFile(e,t,r,n){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");let a;Yr.is(r)||je.is(r)?a=r:n=r;let i,o;if(a===void 0?i=la.create(e,t,n):(o=je.is(a)?a:this._changeAnnotations.manage(a),i=la.create(e,t,n,o)),this._workspaceEdit.documentChanges.push(i),o!==void 0)return o}deleteFile(e,t,r){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");let n;Yr.is(t)||je.is(t)?n=t:r=t;let a,i;if(n===void 0?a=ua.create(e,r):(i=je.is(n)?n:this._changeAnnotations.manage(n),a=ua.create(e,r,i)),this._workspaceEdit.documentChanges.push(a),i!==void 0)return i}},(function(e){function t(n){return{uri:n}}s(t,"create"),e.create=t;function r(n){let a=n;return A.defined(a)&&A.string(a.uri)}s(r,"is"),e.is=r})(Ec||(Ec={})),(function(e){function t(n,a){return{uri:n,version:a}}s(t,"create"),e.create=t;function r(n){let a=n;return A.defined(a)&&A.string(a.uri)&&A.integer(a.version)}s(r,"is"),e.is=r})(Cc||(Cc={})),(function(e){function t(n,a){return{uri:n,version:a}}s(t,"create"),e.create=t;function r(n){let a=n;return A.defined(a)&&A.string(a.uri)&&(a.version===null||A.integer(a.version))}s(r,"is"),e.is=r})(Gi||(Gi={})),(function(e){function t(n,a,i,o){return{uri:n,languageId:a,version:i,text:o}}s(t,"create"),e.create=t;function r(n){let a=n;return A.defined(a)&&A.string(a.uri)&&A.string(a.languageId)&&A.integer(a.version)&&A.string(a.text)}s(r,"is"),e.is=r})(bc||(bc={})),(function(e){e.PlainText="plaintext",e.Markdown="markdown";function t(r){let n=r;return n===e.PlainText||n===e.Markdown}s(t,"is"),e.is=t})(vo||(vo={})),(function(e){function t(r){let n=r;return A.objectLiteral(r)&&vo.is(n.kind)&&A.string(n.value)}s(t,"is"),e.is=t})(ca||(ca={})),(function(e){e.Text=1,e.Method=2,e.Function=3,e.Constructor=4,e.Field=5,e.Variable=6,e.Class=7,e.Interface=8,e.Module=9,e.Property=10,e.Unit=11,e.Value=12,e.Enum=13,e.Keyword=14,e.Snippet=15,e.Color=16,e.File=17,e.Reference=18,e.Folder=19,e.EnumMember=20,e.Constant=21,e.Struct=22,e.Event=23,e.Operator=24,e.TypeParameter=25})(_c||(_c={})),(function(e){e.PlainText=1,e.Snippet=2})(Sc||(Sc={})),(function(e){e.Deprecated=1})(wc||(wc={})),(function(e){function t(n,a,i){return{newText:n,insert:a,replace:i}}s(t,"create"),e.create=t;function r(n){let a=n;return a&&A.string(a.newText)&&Q.is(a.insert)&&Q.is(a.replace)}s(r,"is"),e.is=r})(Ic||(Ic={})),(function(e){e.asIs=1,e.adjustIndentation=2})(Nc||(Nc={})),(function(e){function t(r){let n=r;return n&&(A.string(n.detail)||n.detail===void 0)&&(A.string(n.description)||n.description===void 0)}s(t,"is"),e.is=t})(Pc||(Pc={})),(function(e){function t(r){return{label:r}}s(t,"create"),e.create=t})(kc||(kc={})),(function(e){function t(r,n){return{items:r||[],isIncomplete:!!n}}s(t,"create"),e.create=t})(Oc||(Oc={})),(function(e){function t(n){return n.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}s(t,"fromPlainText"),e.fromPlainText=t;function r(n){let a=n;return A.string(a)||A.objectLiteral(a)&&A.string(a.language)&&A.string(a.value)}s(r,"is"),e.is=r})(Fi||(Fi={})),(function(e){function t(r){let n=r;return!!n&&A.objectLiteral(n)&&(ca.is(n.contents)||Fi.is(n.contents)||A.typedArray(n.contents,Fi.is))&&(r.range===void 0||Q.is(r.range))}s(t,"is"),e.is=t})(Lc||(Lc={})),(function(e){function t(r,n){return n?{label:r,documentation:n}:{label:r}}s(t,"create"),e.create=t})(Dc||(Dc={})),(function(e){function t(r,n,...a){let i={label:r};return A.defined(n)&&(i.documentation=n),A.defined(a)?i.parameters=a:i.parameters=[],i}s(t,"create"),e.create=t})(xc||(xc={})),(function(e){e.Text=1,e.Read=2,e.Write=3})(Mc||(Mc={})),(function(e){function t(r,n){let a={range:r};return A.number(n)&&(a.kind=n),a}s(t,"create"),e.create=t})(Gc||(Gc={})),(function(e){e.File=1,e.Module=2,e.Namespace=3,e.Package=4,e.Class=5,e.Method=6,e.Property=7,e.Field=8,e.Constructor=9,e.Enum=10,e.Interface=11,e.Function=12,e.Variable=13,e.Constant=14,e.String=15,e.Number=16,e.Boolean=17,e.Array=18,e.Object=19,e.Key=20,e.Null=21,e.EnumMember=22,e.Struct=23,e.Event=24,e.Operator=25,e.TypeParameter=26})(Fc||(Fc={})),(function(e){e.Deprecated=1})(zc||(zc={})),(function(e){function t(r,n,a,i,o){let l={name:r,kind:n,location:{uri:i,range:a}};return o&&(l.containerName=o),l}s(t,"create"),e.create=t})(jc||(jc={})),(function(e){function t(r,n,a,i){return i!==void 0?{name:r,kind:n,location:{uri:a,range:i}}:{name:r,kind:n,location:{uri:a}}}s(t,"create"),e.create=t})(Uc||(Uc={})),(function(e){function t(n,a,i,o,l,u){let c={name:n,detail:a,kind:i,range:o,selectionRange:l};return u!==void 0&&(c.children=u),c}s(t,"create"),e.create=t;function r(n){let a=n;return a&&A.string(a.name)&&A.number(a.kind)&&Q.is(a.range)&&Q.is(a.selectionRange)&&(a.detail===void 0||A.string(a.detail))&&(a.deprecated===void 0||A.boolean(a.deprecated))&&(a.children===void 0||Array.isArray(a.children))&&(a.tags===void 0||Array.isArray(a.tags))}s(r,"is"),e.is=r})(Kc||(Kc={})),(function(e){e.Empty="",e.QuickFix="quickfix",e.Refactor="refactor",e.RefactorExtract="refactor.extract",e.RefactorInline="refactor.inline",e.RefactorRewrite="refactor.rewrite",e.Source="source",e.SourceOrganizeImports="source.organizeImports",e.SourceFixAll="source.fixAll"})(Bc||(Bc={})),(function(e){e.Invoked=1,e.Automatic=2})(zi||(zi={})),(function(e){function t(n,a,i){let o={diagnostics:n};return a!=null&&(o.only=a),i!=null&&(o.triggerKind=i),o}s(t,"create"),e.create=t;function r(n){let a=n;return A.defined(a)&&A.typedArray(a.diagnostics,xi.is)&&(a.only===void 0||A.typedArray(a.only,A.string))&&(a.triggerKind===void 0||a.triggerKind===zi.Invoked||a.triggerKind===zi.Automatic)}s(r,"is"),e.is=r})(qc||(qc={})),(function(e){function t(n,a,i){let o={title:n},l=!0;return typeof a=="string"?(l=!1,o.kind=a):Hr.is(a)?o.command=a:o.edit=a,l&&i!==void 0&&(o.kind=i),o}s(t,"create"),e.create=t;function r(n){let a=n;return a&&A.string(a.title)&&(a.diagnostics===void 0||A.typedArray(a.diagnostics,xi.is))&&(a.kind===void 0||A.string(a.kind))&&(a.edit!==void 0||a.command!==void 0)&&(a.command===void 0||Hr.is(a.command))&&(a.isPreferred===void 0||A.boolean(a.isPreferred))&&(a.edit===void 0||go.is(a.edit))}s(r,"is"),e.is=r})(Wc||(Wc={})),(function(e){function t(n,a){let i={range:n};return A.defined(a)&&(i.data=a),i}s(t,"create"),e.create=t;function r(n){let a=n;return A.defined(a)&&Q.is(a.range)&&(A.undefined(a.command)||Hr.is(a.command))}s(r,"is"),e.is=r})(Vc||(Vc={})),(function(e){function t(n,a){return{tabSize:n,insertSpaces:a}}s(t,"create"),e.create=t;function r(n){let a=n;return A.defined(a)&&A.uinteger(a.tabSize)&&A.boolean(a.insertSpaces)}s(r,"is"),e.is=r})(Hc||(Hc={})),(function(e){function t(n,a,i){return{range:n,target:a,data:i}}s(t,"create"),e.create=t;function r(n){let a=n;return A.defined(a)&&Q.is(a.range)&&(A.undefined(a.target)||A.string(a.target))}s(r,"is"),e.is=r})(Yc||(Yc={})),(function(e){function t(n,a){return{range:n,parent:a}}s(t,"create"),e.create=t;function r(n){let a=n;return A.objectLiteral(a)&&Q.is(a.range)&&(a.parent===void 0||e.is(a.parent))}s(r,"is"),e.is=r})(Xc||(Xc={})),(function(e){e.namespace="namespace",e.type="type",e.class="class",e.enum="enum",e.interface="interface",e.struct="struct",e.typeParameter="typeParameter",e.parameter="parameter",e.variable="variable",e.property="property",e.enumMember="enumMember",e.event="event",e.function="function",e.method="method",e.macro="macro",e.keyword="keyword",e.modifier="modifier",e.comment="comment",e.string="string",e.number="number",e.regexp="regexp",e.operator="operator",e.decorator="decorator"})(Jc||(Jc={})),(function(e){e.declaration="declaration",e.definition="definition",e.readonly="readonly",e.static="static",e.deprecated="deprecated",e.abstract="abstract",e.async="async",e.modification="modification",e.documentation="documentation",e.defaultLibrary="defaultLibrary"})(Zc||(Zc={})),(function(e){function t(r){let n=r;return A.objectLiteral(n)&&(n.resultId===void 0||typeof n.resultId=="string")&&Array.isArray(n.data)&&(n.data.length===0||typeof n.data[0]=="number")}s(t,"is"),e.is=t})(Qc||(Qc={})),(function(e){function t(n,a){return{range:n,text:a}}s(t,"create"),e.create=t;function r(n){let a=n;return a!=null&&Q.is(a.range)&&A.string(a.text)}s(r,"is"),e.is=r})(ef||(ef={})),(function(e){function t(n,a,i){return{range:n,variableName:a,caseSensitiveLookup:i}}s(t,"create"),e.create=t;function r(n){let a=n;return a!=null&&Q.is(a.range)&&A.boolean(a.caseSensitiveLookup)&&(A.string(a.variableName)||a.variableName===void 0)}s(r,"is"),e.is=r})(tf||(tf={})),(function(e){function t(n,a){return{range:n,expression:a}}s(t,"create"),e.create=t;function r(n){let a=n;return a!=null&&Q.is(a.range)&&(A.string(a.expression)||a.expression===void 0)}s(r,"is"),e.is=r})(rf||(rf={})),(function(e){function t(n,a){return{frameId:n,stoppedLocation:a}}s(t,"create"),e.create=t;function r(n){let a=n;return A.defined(a)&&Q.is(n.stoppedLocation)}s(r,"is"),e.is=r})(nf||(nf={})),(function(e){e.Type=1,e.Parameter=2;function t(r){return r===1||r===2}s(t,"is"),e.is=t})(To||(To={})),(function(e){function t(n){return{value:n}}s(t,"create"),e.create=t;function r(n){let a=n;return A.objectLiteral(a)&&(a.tooltip===void 0||A.string(a.tooltip)||ca.is(a.tooltip))&&(a.location===void 0||Di.is(a.location))&&(a.command===void 0||Hr.is(a.command))}s(r,"is"),e.is=r})($o||($o={})),(function(e){function t(n,a,i){let o={position:n,label:a};return i!==void 0&&(o.kind=i),o}s(t,"create"),e.create=t;function r(n){let a=n;return A.objectLiteral(a)&&ae.is(a.position)&&(A.string(a.label)||A.typedArray(a.label,$o.is))&&(a.kind===void 0||To.is(a.kind))&&a.textEdits===void 0||A.typedArray(a.textEdits,jt.is)&&(a.tooltip===void 0||A.string(a.tooltip)||ca.is(a.tooltip))&&(a.paddingLeft===void 0||A.boolean(a.paddingLeft))&&(a.paddingRight===void 0||A.boolean(a.paddingRight))}s(r,"is"),e.is=r})(af||(af={})),(function(e){function t(r){return{kind:"snippet",value:r}}s(t,"createSnippet"),e.createSnippet=t})(sf||(sf={})),(function(e){function t(r,n,a,i){return{insertText:r,filterText:n,range:a,command:i}}s(t,"create"),e.create=t})(of||(of={})),(function(e){function t(r){return{items:r}}s(t,"create"),e.create=t})(lf||(lf={})),(function(e){e.Invoked=0,e.Automatic=1})(uf||(uf={})),(function(e){function t(r,n){return{range:r,text:n}}s(t,"create"),e.create=t})(cf||(cf={})),(function(e){function t(r,n){return{triggerKind:r,selectedCompletionInfo:n}}s(t,"create"),e.create=t})(ff||(ff={})),(function(e){function t(r){let n=r;return A.objectLiteral(n)&&mo.is(n.uri)&&A.string(n.name)}s(t,"is"),e.is=t})(pf||(pf={})),_g=[` +`,`\r +`,"\r"],(function(e){function t(i,o,l,u){return new th(i,o,l,u)}s(t,"create"),e.create=t;function r(i){let o=i;return!!(A.defined(o)&&A.string(o.uri)&&(A.undefined(o.languageId)||A.string(o.languageId))&&A.uinteger(o.lineCount)&&A.func(o.getText)&&A.func(o.positionAt)&&A.func(o.offsetAt))}s(r,"is"),e.is=r;function n(i,o){let l=i.getText(),u=a(o,(f,p)=>{let m=f.range.start.line-p.range.start.line;return m===0?f.range.start.character-p.range.start.character:m}),c=l.length;for(let f=u.length-1;f>=0;f--){let p=u[f],m=i.offsetAt(p.range.start),g=i.offsetAt(p.range.end);if(g<=c)l=l.substring(0,m)+p.newText+l.substring(g,l.length);else throw new Error("Overlapping edit");c=m}return l}s(n,"applyEdits"),e.applyEdits=n;function a(i,o){if(i.length<=1)return i;let l=i.length/2|0,u=i.slice(0,l),c=i.slice(l);a(u,o),a(c,o);let f=0,p=0,m=0;for(;f0&&e.push(t.length),this._lineOffsets=e}return this._lineOffsets}positionAt(e){e=Math.max(Math.min(e,this._content.length),0);let t=this.getLineOffsets(),r=0,n=t.length;if(n===0)return ae.create(0,e);for(;re?n=i:r=i+1}let a=r-1;return ae.create(a,e-t[a])}offsetAt(e){let t=this.getLineOffsets();if(e.line>=t.length)return this._content.length;if(e.line<0)return 0;let r=t[e.line],n=e.line+1"u"}s(n,"undefined"),e.undefined=n;function a(g){return g===!0||g===!1}s(a,"boolean"),e.boolean=a;function i(g){return t.call(g)==="[object String]"}s(i,"string"),e.string=i;function o(g){return t.call(g)==="[object Number]"}s(o,"number"),e.number=o;function l(g,v,_){return t.call(g)==="[object Number]"&&v<=g&&g<=_}s(l,"numberRange"),e.numberRange=l;function u(g){return t.call(g)==="[object Number]"&&-2147483648<=g&&g<=2147483647}s(u,"integer"),e.integer=u;function c(g){return t.call(g)==="[object Number]"&&0<=g&&g<=2147483647}s(c,"uinteger"),e.uinteger=c;function f(g){return t.call(g)==="[object Function]"}s(f,"func"),e.func=f;function p(g){return g!==null&&typeof g=="object"}s(p,"objectLiteral"),e.objectLiteral=p;function m(g,v){return Array.isArray(g)&&g.every(v)}s(m,"typedArray"),e.typedArray=m})(A||(A={}))}}),_n=H({"../../node_modules/.pnpm/vscode-jsonrpc@8.2.0/node_modules/vscode-jsonrpc/lib/common/ral.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var t;function r(){if(t===void 0)throw new Error("No runtime abstraction layer installed");return t}s(r,"RAL"),(function(n){function a(i){if(i===void 0)throw new Error("No runtime abstraction layer provided");t=i}s(a,"install"),n.install=a})(r||(r={})),e.default=r}}),ws=H({"../../node_modules/.pnpm/vscode-jsonrpc@8.2.0/node_modules/vscode-jsonrpc/lib/common/is.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.stringArray=e.array=e.func=e.error=e.number=e.string=e.boolean=void 0;function t(u){return u===!0||u===!1}s(t,"boolean"),e.boolean=t;function r(u){return typeof u=="string"||u instanceof String}s(r,"string"),e.string=r;function n(u){return typeof u=="number"||u instanceof Number}s(n,"number"),e.number=n;function a(u){return u instanceof Error}s(a,"error"),e.error=a;function i(u){return typeof u=="function"}s(i,"func"),e.func=i;function o(u){return Array.isArray(u)}s(o,"array"),e.array=o;function l(u){return o(u)&&u.every(c=>r(c))}s(l,"stringArray"),e.stringArray=l}}),qa=H({"../../node_modules/.pnpm/vscode-jsonrpc@8.2.0/node_modules/vscode-jsonrpc/lib/common/events.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Emitter=e.Event=void 0;var t=_n(),r;(function(i){let o={dispose(){}};i.None=function(){return o}})(r||(e.Event=r={}));var n=class{static{s(this,"CallbackList")}add(i,o=null,l){this._callbacks||(this._callbacks=[],this._contexts=[]),this._callbacks.push(i),this._contexts.push(o),Array.isArray(l)&&l.push({dispose:s(()=>this.remove(i,o),"dispose")})}remove(i,o=null){if(!this._callbacks)return;let l=!1;for(let u=0,c=this._callbacks.length;u{this._callbacks||(this._callbacks=new n),this._options&&this._options.onFirstListenerAdd&&this._callbacks.isEmpty()&&this._options.onFirstListenerAdd(this),this._callbacks.add(o,l);let c={dispose:s(()=>{this._callbacks&&(this._callbacks.remove(o,l),c.dispose=Sg._noop,this._options&&this._options.onLastListenerRemove&&this._callbacks.isEmpty()&&this._options.onLastListenerRemove(this))},"dispose")};return Array.isArray(u)&&u.push(c),c}),this._event}fire(o){this._callbacks&&this._callbacks.invoke.call(this._callbacks,o)}dispose(){this._callbacks&&(this._callbacks.dispose(),this._callbacks=void 0)}};e.Emitter=a,a._noop=function(){}}}),Il=H({"../../node_modules/.pnpm/vscode-jsonrpc@8.2.0/node_modules/vscode-jsonrpc/lib/common/cancellation.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CancellationTokenSource=e.CancellationToken=void 0;var t=_n(),r=ws(),n=qa(),a;(function(u){u.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:n.Event.None}),u.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:n.Event.None});function c(f){let p=f;return p&&(p===u.None||p===u.Cancelled||r.boolean(p.isCancellationRequested)&&!!p.onCancellationRequested)}s(c,"is"),u.is=c})(a||(e.CancellationToken=a={}));var i=Object.freeze(function(u,c){let f=(0,t.default)().timer.setTimeout(u.bind(c),0);return{dispose(){f.dispose()}}}),o=class{static{s(this,"MutableToken")}constructor(){this._isCancelled=!1}cancel(){this._isCancelled||(this._isCancelled=!0,this._emitter&&(this._emitter.fire(void 0),this.dispose()))}get isCancellationRequested(){return this._isCancelled}get onCancellationRequested(){return this._isCancelled?i:(this._emitter||(this._emitter=new n.Emitter),this._emitter.event)}dispose(){this._emitter&&(this._emitter.dispose(),this._emitter=void 0)}},l=class{static{s(this,"CancellationTokenSource")}get token(){return this._token||(this._token=new o),this._token}cancel(){this._token?this._token.cancel():this._token=a.Cancelled}dispose(){this._token?this._token instanceof o&&this._token.dispose():this._token=a.None}};e.CancellationTokenSource=l}}),wg=H({"../../node_modules/.pnpm/vscode-jsonrpc@8.2.0/node_modules/vscode-jsonrpc/lib/common/messages.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Message=e.NotificationType9=e.NotificationType8=e.NotificationType7=e.NotificationType6=e.NotificationType5=e.NotificationType4=e.NotificationType3=e.NotificationType2=e.NotificationType1=e.NotificationType0=e.NotificationType=e.RequestType9=e.RequestType8=e.RequestType7=e.RequestType6=e.RequestType5=e.RequestType4=e.RequestType3=e.RequestType2=e.RequestType1=e.RequestType=e.RequestType0=e.AbstractMessageSignature=e.ParameterStructures=e.ResponseError=e.ErrorCodes=void 0;var t=ws(),r;(function(y){y.ParseError=-32700,y.InvalidRequest=-32600,y.MethodNotFound=-32601,y.InvalidParams=-32602,y.InternalError=-32603,y.jsonrpcReservedErrorRangeStart=-32099,y.serverErrorStart=-32099,y.MessageWriteError=-32099,y.MessageReadError=-32098,y.PendingResponseRejected=-32097,y.ConnectionInactive=-32096,y.ServerNotInitialized=-32002,y.UnknownErrorCode=-32001,y.jsonrpcReservedErrorRangeEnd=-32e3,y.serverErrorEnd=-32e3})(r||(e.ErrorCodes=r={}));var n=class Ig extends Error{static{s(this,"ResponseError")}constructor(E,T,$){super(T),this.code=t.number(E)?E:r.UnknownErrorCode,this.data=$,Object.setPrototypeOf(this,Ig.prototype)}toJson(){let E={code:this.code,message:this.message};return this.data!==void 0&&(E.data=this.data),E}};e.ResponseError=n;var a=class Ro{static{s(this,"ParameterStructures")}constructor(E){this.kind=E}static is(E){return E===Ro.auto||E===Ro.byName||E===Ro.byPosition}toString(){return this.kind}};e.ParameterStructures=a,a.auto=new a("auto"),a.byPosition=new a("byPosition"),a.byName=new a("byName");var i=class{static{s(this,"AbstractMessageSignature")}constructor(y,E){this.method=y,this.numberOfParams=E}get parameterStructures(){return a.auto}};e.AbstractMessageSignature=i;var o=class extends i{static{s(this,"RequestType0")}constructor(y){super(y,0)}};e.RequestType0=o;var l=class extends i{static{s(this,"RequestType")}constructor(y,E=a.auto){super(y,1),this._parameterStructures=E}get parameterStructures(){return this._parameterStructures}};e.RequestType=l;var u=class extends i{static{s(this,"RequestType1")}constructor(y,E=a.auto){super(y,1),this._parameterStructures=E}get parameterStructures(){return this._parameterStructures}};e.RequestType1=u;var c=class extends i{static{s(this,"RequestType2")}constructor(y){super(y,2)}};e.RequestType2=c;var f=class extends i{static{s(this,"RequestType3")}constructor(y){super(y,3)}};e.RequestType3=f;var p=class extends i{static{s(this,"RequestType4")}constructor(y){super(y,4)}};e.RequestType4=p;var m=class extends i{static{s(this,"RequestType5")}constructor(y){super(y,5)}};e.RequestType5=m;var g=class extends i{static{s(this,"RequestType6")}constructor(y){super(y,6)}};e.RequestType6=g;var v=class extends i{static{s(this,"RequestType7")}constructor(y){super(y,7)}};e.RequestType7=v;var _=class extends i{static{s(this,"RequestType8")}constructor(y){super(y,8)}};e.RequestType8=_;var S=class extends i{static{s(this,"RequestType9")}constructor(y){super(y,9)}};e.RequestType9=S;var I=class extends i{static{s(this,"NotificationType")}constructor(y,E=a.auto){super(y,1),this._parameterStructures=E}get parameterStructures(){return this._parameterStructures}};e.NotificationType=I;var w=class extends i{static{s(this,"NotificationType0")}constructor(y){super(y,0)}};e.NotificationType0=w;var R=class extends i{static{s(this,"NotificationType1")}constructor(y,E=a.auto){super(y,1),this._parameterStructures=E}get parameterStructures(){return this._parameterStructures}};e.NotificationType1=R;var P=class extends i{static{s(this,"NotificationType2")}constructor(y){super(y,2)}};e.NotificationType2=P;var z=class extends i{static{s(this,"NotificationType3")}constructor(y){super(y,3)}};e.NotificationType3=z;var X=class extends i{static{s(this,"NotificationType4")}constructor(y){super(y,4)}};e.NotificationType4=X;var Z=class extends i{static{s(this,"NotificationType5")}constructor(y){super(y,5)}};e.NotificationType5=Z;var ue=class extends i{static{s(this,"NotificationType6")}constructor(y){super(y,6)}};e.NotificationType6=ue;var ie=class extends i{static{s(this,"NotificationType7")}constructor(y){super(y,7)}};e.NotificationType7=ie;var _e=class extends i{static{s(this,"NotificationType8")}constructor(y){super(y,8)}};e.NotificationType8=_e;var k=class extends i{static{s(this,"NotificationType9")}constructor(y){super(y,9)}};e.NotificationType9=k;var C;(function(y){function E(b){let O=b;return O&&t.string(O.method)&&(t.string(O.id)||t.number(O.id))}s(E,"isRequest"),y.isRequest=E;function T(b){let O=b;return O&&t.string(O.method)&&b.id===void 0}s(T,"isNotification"),y.isNotification=T;function $(b){let O=b;return O&&(O.result!==void 0||!!O.error)&&(t.string(O.id)||t.number(O.id)||O.id===null)}s($,"isResponse"),y.isResponse=$})(C||(e.Message=C={}))}}),Ng=H({"../../node_modules/.pnpm/vscode-jsonrpc@8.2.0/node_modules/vscode-jsonrpc/lib/common/linkedMap.js"(e){"use strict";var t;Object.defineProperty(e,"__esModule",{value:!0}),e.LRUCache=e.LinkedMap=e.Touch=void 0;var r;(function(i){i.None=0,i.First=1,i.AsOld=i.First,i.Last=2,i.AsNew=i.Last})(r||(e.Touch=r={}));var n=class{static{s(this,"LinkedMap")}constructor(){this[t]="LinkedMap",this._map=new Map,this._head=void 0,this._tail=void 0,this._size=0,this._state=0}clear(){this._map.clear(),this._head=void 0,this._tail=void 0,this._size=0,this._state++}isEmpty(){return!this._head&&!this._tail}get size(){return this._size}get first(){return this._head?.value}get last(){return this._tail?.value}has(i){return this._map.has(i)}get(i,o=r.None){let l=this._map.get(i);if(l)return o!==r.None&&this.touch(l,o),l.value}set(i,o,l=r.None){let u=this._map.get(i);if(u)u.value=o,l!==r.None&&this.touch(u,l);else{switch(u={key:i,value:o,next:void 0,previous:void 0},l){case r.None:this.addItemLast(u);break;case r.First:this.addItemFirst(u);break;case r.Last:this.addItemLast(u);break;default:this.addItemLast(u);break}this._map.set(i,u),this._size++}return this}delete(i){return!!this.remove(i)}remove(i){let o=this._map.get(i);if(o)return this._map.delete(i),this.removeItem(o),this._size--,o.value}shift(){if(!this._head&&!this._tail)return;if(!this._head||!this._tail)throw new Error("Invalid list");let i=this._head;return this._map.delete(i.key),this.removeItem(i),this._size--,i.value}forEach(i,o){let l=this._state,u=this._head;for(;u;){if(o?i.bind(o)(u.value,u.key,this):i(u.value,u.key,this),this._state!==l)throw new Error("LinkedMap got modified during iteration.");u=u.next}}keys(){let i=this._state,o=this._head,l={[Symbol.iterator]:()=>l,next:s(()=>{if(this._state!==i)throw new Error("LinkedMap got modified during iteration.");if(o){let u={value:o.key,done:!1};return o=o.next,u}else return{value:void 0,done:!0}},"next")};return l}values(){let i=this._state,o=this._head,l={[Symbol.iterator]:()=>l,next:s(()=>{if(this._state!==i)throw new Error("LinkedMap got modified during iteration.");if(o){let u={value:o.value,done:!1};return o=o.next,u}else return{value:void 0,done:!0}},"next")};return l}entries(){let i=this._state,o=this._head,l={[Symbol.iterator]:()=>l,next:s(()=>{if(this._state!==i)throw new Error("LinkedMap got modified during iteration.");if(o){let u={value:[o.key,o.value],done:!1};return o=o.next,u}else return{value:void 0,done:!0}},"next")};return l}[(t=Symbol.toStringTag,Symbol.iterator)](){return this.entries()}trimOld(i){if(i>=this.size)return;if(i===0){this.clear();return}let o=this._head,l=this.size;for(;o&&l>i;)this._map.delete(o.key),o=o.next,l--;this._head=o,this._size=l,o&&(o.previous=void 0),this._state++}addItemFirst(i){if(!this._head&&!this._tail)this._tail=i;else if(this._head)i.next=this._head,this._head.previous=i;else throw new Error("Invalid list");this._head=i,this._state++}addItemLast(i){if(!this._head&&!this._tail)this._head=i;else if(this._tail)i.previous=this._tail,this._tail.next=i;else throw new Error("Invalid list");this._tail=i,this._state++}removeItem(i){if(i===this._head&&i===this._tail)this._head=void 0,this._tail=void 0;else if(i===this._head){if(!i.next)throw new Error("Invalid list");i.next.previous=void 0,this._head=i.next}else if(i===this._tail){if(!i.previous)throw new Error("Invalid list");i.previous.next=void 0,this._tail=i.previous}else{let o=i.next,l=i.previous;if(!o||!l)throw new Error("Invalid list");o.previous=l,l.next=o}i.next=void 0,i.previous=void 0,this._state++}touch(i,o){if(!this._head||!this._tail)throw new Error("Invalid list");if(!(o!==r.First&&o!==r.Last)){if(o===r.First){if(i===this._head)return;let l=i.next,u=i.previous;i===this._tail?(u.next=void 0,this._tail=u):(l.previous=u,u.next=l),i.previous=void 0,i.next=this._head,this._head.previous=i,this._head=i,this._state++}else if(o===r.Last){if(i===this._tail)return;let l=i.next,u=i.previous;i===this._head?(l.previous=void 0,this._head=l):(l.previous=u,u.next=l),i.next=void 0,i.previous=this._tail,this._tail.next=i,this._tail=i,this._state++}}}toJSON(){let i=[];return this.forEach((o,l)=>{i.push([l,o])}),i}fromJSON(i){this.clear();for(let[o,l]of i)this.set(o,l)}};e.LinkedMap=n;var a=class extends n{static{s(this,"LRUCache")}constructor(i,o=1){super(),this._limit=i,this._ratio=Math.min(Math.max(0,o),1)}get limit(){return this._limit}set limit(i){this._limit=i,this.checkTrim()}get ratio(){return this._ratio}set ratio(i){this._ratio=Math.min(Math.max(0,i),1),this.checkTrim()}get(i,o=r.AsNew){return super.get(i,o)}peek(i){return super.get(i,r.None)}set(i,o){return super.set(i,o,r.Last),this.checkTrim(),this}checkTrim(){this.size>this._limit&&this.trimOld(Math.round(this._limit*this._ratio))}};e.LRUCache=a}}),Lw=H({"../../node_modules/.pnpm/vscode-jsonrpc@8.2.0/node_modules/vscode-jsonrpc/lib/common/disposable.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Disposable=void 0;var t;(function(r){function n(a){return{dispose:a}}s(n,"create"),r.create=n})(t||(e.Disposable=t={}))}}),Dw=H({"../../node_modules/.pnpm/vscode-jsonrpc@8.2.0/node_modules/vscode-jsonrpc/lib/common/sharedArrayCancellation.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SharedArrayReceiverStrategy=e.SharedArraySenderStrategy=void 0;var t=Il(),r;(function(l){l.Continue=0,l.Cancelled=1})(r||(r={}));var n=class{static{s(this,"SharedArraySenderStrategy")}constructor(){this.buffers=new Map}enableCancellation(l){if(l.id===null)return;let u=new SharedArrayBuffer(4),c=new Int32Array(u,0,1);c[0]=r.Continue,this.buffers.set(l.id,u),l.$cancellationData=u}async sendCancellation(l,u){let c=this.buffers.get(u);if(c===void 0)return;let f=new Int32Array(c,0,1);Atomics.store(f,0,r.Cancelled)}cleanup(l){this.buffers.delete(l)}dispose(){this.buffers.clear()}};e.SharedArraySenderStrategy=n;var a=class{static{s(this,"SharedArrayBufferCancellationToken")}constructor(l){this.data=new Int32Array(l,0,1)}get isCancellationRequested(){return Atomics.load(this.data,0)===r.Cancelled}get onCancellationRequested(){throw new Error("Cancellation over SharedArrayBuffer doesn't support cancellation events")}},i=class{static{s(this,"SharedArrayBufferCancellationTokenSource")}constructor(l){this.token=new a(l)}cancel(){}dispose(){}},o=class{static{s(this,"SharedArrayReceiverStrategy")}constructor(){this.kind="request"}createCancellationTokenSource(l){let u=l.$cancellationData;return u===void 0?new t.CancellationTokenSource:new i(u)}};e.SharedArrayReceiverStrategy=o}}),Pg=H({"../../node_modules/.pnpm/vscode-jsonrpc@8.2.0/node_modules/vscode-jsonrpc/lib/common/semaphore.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Semaphore=void 0;var t=_n(),r=class{static{s(this,"Semaphore")}constructor(n=1){if(n<=0)throw new Error("Capacity must be greater than 0");this._capacity=n,this._active=0,this._waiting=[]}lock(n){return new Promise((a,i)=>{this._waiting.push({thunk:n,resolve:a,reject:i}),this.runNext()})}get active(){return this._active}runNext(){this._waiting.length===0||this._active===this._capacity||(0,t.default)().timer.setImmediate(()=>this.doRunNext())}doRunNext(){if(this._waiting.length===0||this._active===this._capacity)return;let n=this._waiting.shift();if(this._active++,this._active>this._capacity)throw new Error("To many thunks active");try{let a=n.thunk();a instanceof Promise?a.then(i=>{this._active--,n.resolve(i),this.runNext()},i=>{this._active--,n.reject(i),this.runNext()}):(this._active--,n.resolve(a),this.runNext())}catch(a){this._active--,n.reject(a),this.runNext()}}};e.Semaphore=r}}),xw=H({"../../node_modules/.pnpm/vscode-jsonrpc@8.2.0/node_modules/vscode-jsonrpc/lib/common/messageReader.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ReadableStreamMessageReader=e.AbstractMessageReader=e.MessageReader=void 0;var t=_n(),r=ws(),n=qa(),a=Pg(),i;(function(c){function f(p){let m=p;return m&&r.func(m.listen)&&r.func(m.dispose)&&r.func(m.onError)&&r.func(m.onClose)&&r.func(m.onPartialMessage)}s(f,"is"),c.is=f})(i||(e.MessageReader=i={}));var o=class{static{s(this,"AbstractMessageReader")}constructor(){this.errorEmitter=new n.Emitter,this.closeEmitter=new n.Emitter,this.partialMessageEmitter=new n.Emitter}dispose(){this.errorEmitter.dispose(),this.closeEmitter.dispose()}get onError(){return this.errorEmitter.event}fireError(c){this.errorEmitter.fire(this.asError(c))}get onClose(){return this.closeEmitter.event}fireClose(){this.closeEmitter.fire(void 0)}get onPartialMessage(){return this.partialMessageEmitter.event}firePartialMessage(c){this.partialMessageEmitter.fire(c)}asError(c){return c instanceof Error?c:new Error(`Reader received error. Reason: ${r.string(c.message)?c.message:"unknown"}`)}};e.AbstractMessageReader=o;var l;(function(c){function f(p){let m,g,v,_=new Map,S,I=new Map;if(p===void 0||typeof p=="string")m=p??"utf-8";else{if(m=p.charset??"utf-8",p.contentDecoder!==void 0&&(v=p.contentDecoder,_.set(v.name,v)),p.contentDecoders!==void 0)for(let w of p.contentDecoders)_.set(w.name,w);if(p.contentTypeDecoder!==void 0&&(S=p.contentTypeDecoder,I.set(S.name,S)),p.contentTypeDecoders!==void 0)for(let w of p.contentTypeDecoders)I.set(w.name,w)}return S===void 0&&(S=(0,t.default)().applicationJson.decoder,I.set(S.name,S)),{charset:m,contentDecoder:v,contentDecoders:_,contentTypeDecoder:S,contentTypeDecoders:I}}s(f,"fromOptions"),c.fromOptions=f})(l||(l={}));var u=class extends o{static{s(this,"ReadableStreamMessageReader")}constructor(c,f){super(),this.readable=c,this.options=l.fromOptions(f),this.buffer=(0,t.default)().messageBuffer.create(this.options.charset),this._partialMessageTimeout=1e4,this.nextMessageLength=-1,this.messageToken=0,this.readSemaphore=new a.Semaphore(1)}set partialMessageTimeout(c){this._partialMessageTimeout=c}get partialMessageTimeout(){return this._partialMessageTimeout}listen(c){this.nextMessageLength=-1,this.messageToken=0,this.partialMessageTimer=void 0,this.callback=c;let f=this.readable.onData(p=>{this.onData(p)});return this.readable.onError(p=>this.fireError(p)),this.readable.onClose(()=>this.fireClose()),f}onData(c){try{for(this.buffer.append(c);;){if(this.nextMessageLength===-1){let p=this.buffer.tryReadHeaders(!0);if(!p)return;let m=p.get("content-length");if(!m){this.fireError(new Error(`Header must provide a Content-Length property. +${JSON.stringify(Object.fromEntries(p))}`));return}let g=parseInt(m);if(isNaN(g)){this.fireError(new Error(`Content-Length value must be a number. Got ${m}`));return}this.nextMessageLength=g}let f=this.buffer.tryReadBody(this.nextMessageLength);if(f===void 0){this.setPartialMessageTimer();return}this.clearPartialMessageTimer(),this.nextMessageLength=-1,this.readSemaphore.lock(async()=>{let p=this.options.contentDecoder!==void 0?await this.options.contentDecoder.decode(f):f,m=await this.options.contentTypeDecoder.decode(p,this.options);this.callback(m)}).catch(p=>{this.fireError(p)})}}catch(f){this.fireError(f)}}clearPartialMessageTimer(){this.partialMessageTimer&&(this.partialMessageTimer.dispose(),this.partialMessageTimer=void 0)}setPartialMessageTimer(){this.clearPartialMessageTimer(),!(this._partialMessageTimeout<=0)&&(this.partialMessageTimer=(0,t.default)().timer.setTimeout((c,f)=>{this.partialMessageTimer=void 0,c===this.messageToken&&(this.firePartialMessage({messageToken:c,waitingTime:f}),this.setPartialMessageTimer())},this._partialMessageTimeout,this.messageToken,this._partialMessageTimeout))}};e.ReadableStreamMessageReader=u}}),Mw=H({"../../node_modules/.pnpm/vscode-jsonrpc@8.2.0/node_modules/vscode-jsonrpc/lib/common/messageWriter.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.WriteableStreamMessageWriter=e.AbstractMessageWriter=e.MessageWriter=void 0;var t=_n(),r=ws(),n=Pg(),a=qa(),i="Content-Length: ",o=`\r +`,l;(function(p){function m(g){let v=g;return v&&r.func(v.dispose)&&r.func(v.onClose)&&r.func(v.onError)&&r.func(v.write)}s(m,"is"),p.is=m})(l||(e.MessageWriter=l={}));var u=class{static{s(this,"AbstractMessageWriter")}constructor(){this.errorEmitter=new a.Emitter,this.closeEmitter=new a.Emitter}dispose(){this.errorEmitter.dispose(),this.closeEmitter.dispose()}get onError(){return this.errorEmitter.event}fireError(p,m,g){this.errorEmitter.fire([this.asError(p),m,g])}get onClose(){return this.closeEmitter.event}fireClose(){this.closeEmitter.fire(void 0)}asError(p){return p instanceof Error?p:new Error(`Writer received error. Reason: ${r.string(p.message)?p.message:"unknown"}`)}};e.AbstractMessageWriter=u;var c;(function(p){function m(g){return g===void 0||typeof g=="string"?{charset:g??"utf-8",contentTypeEncoder:(0,t.default)().applicationJson.encoder}:{charset:g.charset??"utf-8",contentEncoder:g.contentEncoder,contentTypeEncoder:g.contentTypeEncoder??(0,t.default)().applicationJson.encoder}}s(m,"fromOptions"),p.fromOptions=m})(c||(c={}));var f=class extends u{static{s(this,"WriteableStreamMessageWriter")}constructor(p,m){super(),this.writable=p,this.options=c.fromOptions(m),this.errorCount=0,this.writeSemaphore=new n.Semaphore(1),this.writable.onError(g=>this.fireError(g)),this.writable.onClose(()=>this.fireClose())}async write(p){return this.writeSemaphore.lock(async()=>this.options.contentTypeEncoder.encode(p,this.options).then(g=>this.options.contentEncoder!==void 0?this.options.contentEncoder.encode(g):g).then(g=>{let v=[];return v.push(i,g.byteLength.toString(),o),v.push(o),this.doWrite(p,v,g)},g=>{throw this.fireError(g),g}))}async doWrite(p,m,g){try{return await this.writable.write(m.join(""),"ascii"),this.writable.write(g)}catch(v){return this.handleError(v,p),Promise.reject(v)}}handleError(p,m){this.errorCount++,this.fireError(p,m,this.errorCount)}end(){this.writable.end()}};e.WriteableStreamMessageWriter=f}}),Gw=H({"../../node_modules/.pnpm/vscode-jsonrpc@8.2.0/node_modules/vscode-jsonrpc/lib/common/messageBuffer.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.AbstractMessageBuffer=void 0;var t=13,r=10,n=`\r +`,a=class{static{s(this,"AbstractMessageBuffer")}constructor(i="utf-8"){this._encoding=i,this._chunks=[],this._totalLength=0}get encoding(){return this._encoding}append(i){let o=typeof i=="string"?this.fromString(i,this._encoding):i;this._chunks.push(o),this._totalLength+=o.byteLength}tryReadHeaders(i=!1){if(this._chunks.length===0)return;let o=0,l=0,u=0,c=0;e:for(;lthis._totalLength)throw new Error("Cannot read so many bytes!");if(this._chunks[0].byteLength===i){let c=this._chunks[0];return this._chunks.shift(),this._totalLength-=i,this.asNative(c)}if(this._chunks[0].byteLength>i){let c=this._chunks[0],f=this.asNative(c,i);return this._chunks[0]=c.slice(i),this._totalLength-=i,f}let o=this.allocNative(i),l=0,u=0;for(;i>0;){let c=this._chunks[u];if(c.byteLength>i){let f=c.slice(0,i);o.set(f,l),l+=i,this._chunks[u]=c.slice(i),this._totalLength-=i,i-=i}else o.set(c,l),l+=c.byteLength,this._chunks.shift(),this._totalLength-=c.byteLength,i-=c.byteLength}return o}};e.AbstractMessageBuffer=a}}),Fw=H({"../../node_modules/.pnpm/vscode-jsonrpc@8.2.0/node_modules/vscode-jsonrpc/lib/common/connection.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.createMessageConnection=e.ConnectionOptions=e.MessageStrategy=e.CancellationStrategy=e.CancellationSenderStrategy=e.CancellationReceiverStrategy=e.RequestCancellationReceiverStrategy=e.IdCancellationReceiverStrategy=e.ConnectionStrategy=e.ConnectionError=e.ConnectionErrors=e.LogTraceNotification=e.SetTraceNotification=e.TraceFormat=e.TraceValues=e.Trace=e.NullLogger=e.ProgressType=e.ProgressToken=void 0;var t=_n(),r=ws(),n=wg(),a=Ng(),i=qa(),o=Il(),l;(function(y){y.type=new n.NotificationType("$/cancelRequest")})(l||(l={}));var u;(function(y){function E(T){return typeof T=="string"||typeof T=="number"}s(E,"is"),y.is=E})(u||(e.ProgressToken=u={}));var c;(function(y){y.type=new n.NotificationType("$/progress")})(c||(c={}));var f=class{static{s(this,"ProgressType")}constructor(){}};e.ProgressType=f;var p;(function(y){function E(T){return r.func(T)}s(E,"is"),y.is=E})(p||(p={})),e.NullLogger=Object.freeze({error:s(()=>{},"error"),warn:s(()=>{},"warn"),info:s(()=>{},"info"),log:s(()=>{},"log")});var m;(function(y){y[y.Off=0]="Off",y[y.Messages=1]="Messages",y[y.Compact=2]="Compact",y[y.Verbose=3]="Verbose"})(m||(e.Trace=m={}));var g;(function(y){y.Off="off",y.Messages="messages",y.Compact="compact",y.Verbose="verbose"})(g||(e.TraceValues=g={})),(function(y){function E($){if(!r.string($))return y.Off;switch($=$.toLowerCase(),$){case"off":return y.Off;case"messages":return y.Messages;case"compact":return y.Compact;case"verbose":return y.Verbose;default:return y.Off}}s(E,"fromString"),y.fromString=E;function T($){switch($){case y.Off:return"off";case y.Messages:return"messages";case y.Compact:return"compact";case y.Verbose:return"verbose";default:return"off"}}s(T,"toString"),y.toString=T})(m||(e.Trace=m={}));var v;(function(y){y.Text="text",y.JSON="json"})(v||(e.TraceFormat=v={})),(function(y){function E(T){return r.string(T)?(T=T.toLowerCase(),T==="json"?y.JSON:y.Text):y.Text}s(E,"fromString"),y.fromString=E})(v||(e.TraceFormat=v={}));var _;(function(y){y.type=new n.NotificationType("$/setTrace")})(_||(e.SetTraceNotification=_={}));var S;(function(y){y.type=new n.NotificationType("$/logTrace")})(S||(e.LogTraceNotification=S={}));var I;(function(y){y[y.Closed=1]="Closed",y[y.Disposed=2]="Disposed",y[y.AlreadyListening=3]="AlreadyListening"})(I||(e.ConnectionErrors=I={}));var w=class kg extends Error{static{s(this,"ConnectionError")}constructor(E,T){super(T),this.code=E,Object.setPrototypeOf(this,kg.prototype)}};e.ConnectionError=w;var R;(function(y){function E(T){let $=T;return $&&r.func($.cancelUndispatched)}s(E,"is"),y.is=E})(R||(e.ConnectionStrategy=R={}));var P;(function(y){function E(T){let $=T;return $&&($.kind===void 0||$.kind==="id")&&r.func($.createCancellationTokenSource)&&($.dispose===void 0||r.func($.dispose))}s(E,"is"),y.is=E})(P||(e.IdCancellationReceiverStrategy=P={}));var z;(function(y){function E(T){let $=T;return $&&$.kind==="request"&&r.func($.createCancellationTokenSource)&&($.dispose===void 0||r.func($.dispose))}s(E,"is"),y.is=E})(z||(e.RequestCancellationReceiverStrategy=z={}));var X;(function(y){y.Message=Object.freeze({createCancellationTokenSource(T){return new o.CancellationTokenSource}});function E(T){return P.is(T)||z.is(T)}s(E,"is"),y.is=E})(X||(e.CancellationReceiverStrategy=X={}));var Z;(function(y){y.Message=Object.freeze({sendCancellation(T,$){return T.sendNotification(l.type,{id:$})},cleanup(T){}});function E(T){let $=T;return $&&r.func($.sendCancellation)&&r.func($.cleanup)}s(E,"is"),y.is=E})(Z||(e.CancellationSenderStrategy=Z={}));var ue;(function(y){y.Message=Object.freeze({receiver:X.Message,sender:Z.Message});function E(T){let $=T;return $&&X.is($.receiver)&&Z.is($.sender)}s(E,"is"),y.is=E})(ue||(e.CancellationStrategy=ue={}));var ie;(function(y){function E(T){let $=T;return $&&r.func($.handleMessage)}s(E,"is"),y.is=E})(ie||(e.MessageStrategy=ie={}));var _e;(function(y){function E(T){let $=T;return $&&(ue.is($.cancellationStrategy)||R.is($.connectionStrategy)||ie.is($.messageStrategy))}s(E,"is"),y.is=E})(_e||(e.ConnectionOptions=_e={}));var k;(function(y){y[y.New=1]="New",y[y.Listening=2]="Listening",y[y.Closed=3]="Closed",y[y.Disposed=4]="Disposed"})(k||(k={}));function C(y,E,T,$){let b=T!==void 0?T:e.NullLogger,O=0,x=0,D=0,G="2.0",q,Y=new Map,W,Ne=new Map,se=new Map,Oe,Le=new a.LinkedMap,Pe=new Map,Ve=new Set,We=new Map,re=m.Off,xt=v.Text,Ae,Ct=k.New,Vn=new i.Emitter,ti=new i.Emitter,ri=new i.Emitter,ni=new i.Emitter,ai=new i.Emitter,bt=$&&$.cancellationStrategy?$.cancellationStrategy:ue.Message;function Hn(h){if(h===null)throw new Error("Can't send requests with id null since the response can't be correlated.");return"req-"+h.toString()}s(Hn,"createRequestQueueKey");function ii(h){return h===null?"res-unknown-"+(++D).toString():"res-"+h.toString()}s(ii,"createResponseQueueKey");function si(){return"not-"+(++x).toString()}s(si,"createNotificationQueueKey");function oi(h,N){n.Message.isRequest(N)?h.set(Hn(N.id),N):n.Message.isResponse(N)?h.set(ii(N.id),N):h.set(si(),N)}s(oi,"addMessageToQueue");function li(h){}s(li,"cancelUndispatched");function Yn(){return Ct===k.Listening}s(Yn,"isListening");function Xn(){return Ct===k.Closed}s(Xn,"isClosed");function Mt(){return Ct===k.Disposed}s(Mt,"isDisposed");function Jn(){(Ct===k.New||Ct===k.Listening)&&(Ct=k.Closed,ti.fire(void 0))}s(Jn,"closeHandler");function ui(h){Vn.fire([h,void 0,void 0])}s(ui,"readErrorHandler");function ci(h){Vn.fire(h)}s(ci,"writeErrorHandler"),y.onClose(Jn),y.onError(ui),E.onClose(Jn),E.onError(ci);function Zn(){Oe||Le.size===0||(Oe=(0,t.default)().timer.setImmediate(()=>{Oe=void 0,fi()}))}s(Zn,"triggerMessageQueue");function Qn(h){n.Message.isRequest(h)?pi(h):n.Message.isNotification(h)?mi(h):n.Message.isResponse(h)?di(h):hi(h)}s(Qn,"handleMessage");function fi(){if(Le.size===0)return;let h=Le.shift();try{let N=$?.messageStrategy;ie.is(N)?N.handleMessage(h,Qn):Qn(h)}finally{Zn()}}s(fi,"processMessageQueue");let Hs=s(h=>{try{if(n.Message.isNotification(h)&&h.method===l.type.method){let N=h.params.id,L=Hn(N),M=Le.get(L);if(n.Message.isRequest(M)){let ce=$?.connectionStrategy,Ee=ce&&ce.cancelUndispatched?ce.cancelUndispatched(M,li):void 0;if(Ee&&(Ee.error!==void 0||Ee.result!==void 0)){Le.delete(L),We.delete(N),Ee.id=M.id,br(Ee,h.method,Date.now()),E.write(Ee).catch(()=>b.error("Sending response for canceled message failed."));return}}let me=We.get(N);if(me!==void 0){me.cancel(),Ur(h);return}else Ve.add(N)}oi(Le,h)}finally{Zn()}},"callback");function pi(h){if(Mt())return;function N(ee,Te,oe){let De={jsonrpc:G,id:h.id};ee instanceof n.ResponseError?De.error=ee.toJson():De.result=ee===void 0?null:ee,br(De,Te,oe),E.write(De).catch(()=>b.error("Sending response failed."))}s(N,"reply");function L(ee,Te,oe){let De={jsonrpc:G,id:h.id,error:ee.toJson()};br(De,Te,oe),E.write(De).catch(()=>b.error("Sending response failed."))}s(L,"replyError");function M(ee,Te,oe){ee===void 0&&(ee=null);let De={jsonrpc:G,id:h.id,result:ee};br(De,Te,oe),E.write(De).catch(()=>b.error("Sending response failed."))}s(M,"replySuccess"),vi(h);let me=Y.get(h.method),ce,Ee;me&&(ce=me.type,Ee=me.handler);let Se=Date.now();if(Ee||q){let ee=h.id??String(Date.now()),Te=P.is(bt.receiver)?bt.receiver.createCancellationTokenSource(ee):bt.receiver.createCancellationTokenSource(h);h.id!==null&&Ve.has(h.id)&&Te.cancel(),h.id!==null&&We.set(ee,Te);try{let oe;if(Ee)if(h.params===void 0){if(ce!==void 0&&ce.numberOfParams!==0){L(new n.ResponseError(n.ErrorCodes.InvalidParams,`Request ${h.method} defines ${ce.numberOfParams} params but received none.`),h.method,Se);return}oe=Ee(Te.token)}else if(Array.isArray(h.params)){if(ce!==void 0&&ce.parameterStructures===n.ParameterStructures.byName){L(new n.ResponseError(n.ErrorCodes.InvalidParams,`Request ${h.method} defines parameters by name but received parameters by position`),h.method,Se);return}oe=Ee(...h.params,Te.token)}else{if(ce!==void 0&&ce.parameterStructures===n.ParameterStructures.byPosition){L(new n.ResponseError(n.ErrorCodes.InvalidParams,`Request ${h.method} defines parameters by position but received parameters by name`),h.method,Se);return}oe=Ee(h.params,Te.token)}else q&&(oe=q(h.method,h.params,Te.token));let De=oe;oe?De.then?De.then(He=>{We.delete(ee),N(He,h.method,Se)},He=>{We.delete(ee),He instanceof n.ResponseError?L(He,h.method,Se):He&&r.string(He.message)?L(new n.ResponseError(n.ErrorCodes.InternalError,`Request ${h.method} failed with message: ${He.message}`),h.method,Se):L(new n.ResponseError(n.ErrorCodes.InternalError,`Request ${h.method} failed unexpectedly without providing any details.`),h.method,Se)}):(We.delete(ee),N(oe,h.method,Se)):(We.delete(ee),M(oe,h.method,Se))}catch(oe){We.delete(ee),oe instanceof n.ResponseError?N(oe,h.method,Se):oe&&r.string(oe.message)?L(new n.ResponseError(n.ErrorCodes.InternalError,`Request ${h.method} failed with message: ${oe.message}`),h.method,Se):L(new n.ResponseError(n.ErrorCodes.InternalError,`Request ${h.method} failed unexpectedly without providing any details.`),h.method,Se)}}else L(new n.ResponseError(n.ErrorCodes.MethodNotFound,`Unhandled method ${h.method}`),h.method,Se)}s(pi,"handleRequest");function di(h){if(!Mt())if(h.id===null)h.error?b.error(`Received response message without id: Error is: +${JSON.stringify(h.error,void 0,4)}`):b.error("Received response message without id. No further error information provided.");else{let N=h.id,L=Pe.get(N);if(Ti(h,L),L!==void 0){Pe.delete(N);try{if(h.error){let M=h.error;L.reject(new n.ResponseError(M.code,M.message,M.data))}else if(h.result!==void 0)L.resolve(h.result);else throw new Error("Should never happen.")}catch(M){M.message?b.error(`Response handler '${L.method}' failed with message: ${M.message}`):b.error(`Response handler '${L.method}' failed unexpectedly.`)}}}}s(di,"handleResponse");function mi(h){if(Mt())return;let N,L;if(h.method===l.type.method){let M=h.params.id;Ve.delete(M),Ur(h);return}else{let M=Ne.get(h.method);M&&(L=M.handler,N=M.type)}if(L||W)try{if(Ur(h),L)if(h.params===void 0)N!==void 0&&N.numberOfParams!==0&&N.parameterStructures!==n.ParameterStructures.byName&&b.error(`Notification ${h.method} defines ${N.numberOfParams} params but received none.`),L();else if(Array.isArray(h.params)){let M=h.params;h.method===c.type.method&&M.length===2&&u.is(M[0])?L({token:M[0],value:M[1]}):(N!==void 0&&(N.parameterStructures===n.ParameterStructures.byName&&b.error(`Notification ${h.method} defines parameters by name but received parameters by position`),N.numberOfParams!==h.params.length&&b.error(`Notification ${h.method} defines ${N.numberOfParams} params but received ${M.length} arguments`)),L(...M))}else N!==void 0&&N.parameterStructures===n.ParameterStructures.byPosition&&b.error(`Notification ${h.method} defines parameters by position but received parameters by name`),L(h.params);else W&&W(h.method,h.params)}catch(M){M.message?b.error(`Notification handler '${h.method}' failed with message: ${M.message}`):b.error(`Notification handler '${h.method}' failed unexpectedly.`)}else ri.fire(h)}s(mi,"handleNotification");function hi(h){if(!h){b.error("Received empty message.");return}b.error(`Received message which is neither a response nor a notification message: +${JSON.stringify(h,null,4)}`);let N=h;if(r.string(N.id)||r.number(N.id)){let L=N.id,M=Pe.get(L);M&&M.reject(new Error("The received response has neither a result nor an error property."))}}s(hi,"handleInvalidMessage");function gt(h){if(h!=null)switch(re){case m.Verbose:return JSON.stringify(h,null,4);case m.Compact:return JSON.stringify(h);default:return}}s(gt,"stringifyTrace");function yi(h){if(!(re===m.Off||!Ae))if(xt===v.Text){let N;(re===m.Verbose||re===m.Compact)&&h.params&&(N=`Params: ${gt(h.params)} + +`),Ae.log(`Sending request '${h.method} - (${h.id})'.`,N)}else Gt("send-request",h)}s(yi,"traceSendingRequest");function gi(h){if(!(re===m.Off||!Ae))if(xt===v.Text){let N;(re===m.Verbose||re===m.Compact)&&(h.params?N=`Params: ${gt(h.params)} + +`:N=`No parameters provided. + +`),Ae.log(`Sending notification '${h.method}'.`,N)}else Gt("send-notification",h)}s(gi,"traceSendingNotification");function br(h,N,L){if(!(re===m.Off||!Ae))if(xt===v.Text){let M;(re===m.Verbose||re===m.Compact)&&(h.error&&h.error.data?M=`Error data: ${gt(h.error.data)} + +`:h.result?M=`Result: ${gt(h.result)} + +`:h.error===void 0&&(M=`No result returned. + +`)),Ae.log(`Sending response '${N} - (${h.id})'. Processing request took ${Date.now()-L}ms`,M)}else Gt("send-response",h)}s(br,"traceSendingResponse");function vi(h){if(!(re===m.Off||!Ae))if(xt===v.Text){let N;(re===m.Verbose||re===m.Compact)&&h.params&&(N=`Params: ${gt(h.params)} + +`),Ae.log(`Received request '${h.method} - (${h.id})'.`,N)}else Gt("receive-request",h)}s(vi,"traceReceivedRequest");function Ur(h){if(!(re===m.Off||!Ae||h.method===S.type.method))if(xt===v.Text){let N;(re===m.Verbose||re===m.Compact)&&(h.params?N=`Params: ${gt(h.params)} + +`:N=`No parameters provided. + +`),Ae.log(`Received notification '${h.method}'.`,N)}else Gt("receive-notification",h)}s(Ur,"traceReceivedNotification");function Ti(h,N){if(!(re===m.Off||!Ae))if(xt===v.Text){let L;if((re===m.Verbose||re===m.Compact)&&(h.error&&h.error.data?L=`Error data: ${gt(h.error.data)} + +`:h.result?L=`Result: ${gt(h.result)} + +`:h.error===void 0&&(L=`No result returned. + +`)),N){let M=h.error?` Request failed: ${h.error.message} (${h.error.code}).`:"";Ae.log(`Received response '${N.method} - (${h.id})' in ${Date.now()-N.timerStart}ms.${M}`,L)}else Ae.log(`Received response ${h.id} without active response promise.`,L)}else Gt("receive-response",h)}s(Ti,"traceReceivedResponse");function Gt(h,N){if(!Ae||re===m.Off)return;let L={isLSPMessage:!0,type:h,message:N,timestamp:Date.now()};Ae.log(L)}s(Gt,"logLSPMessage");function tr(){if(Xn())throw new w(I.Closed,"Connection is closed.");if(Mt())throw new w(I.Disposed,"Connection is disposed.")}s(tr,"throwIfClosedOrDisposed");function $i(){if(Yn())throw new w(I.AlreadyListening,"Connection is already listening")}s($i,"throwIfListening");function Ri(){if(!Yn())throw new Error("Call listen() first.")}s(Ri,"throwIfNotListening");function rr(h){return h===void 0?null:h}s(rr,"undefinedToNull");function ea(h){if(h!==null)return h}s(ea,"nullToUndefined");function d(h){return h!=null&&!Array.isArray(h)&&typeof h=="object"}s(d,"isNamedParam");function ne(h,N){switch(h){case n.ParameterStructures.auto:return d(N)?ea(N):[rr(N)];case n.ParameterStructures.byName:if(!d(N))throw new Error("Received parameters by name but param is not an object literal.");return ea(N);case n.ParameterStructures.byPosition:return[rr(N)];default:throw new Error(`Unknown parameter structure ${h.toString()}`)}}s(ne,"computeSingleParam");function ve(h,N){let L,M=h.numberOfParams;switch(M){case 0:L=void 0;break;case 1:L=ne(h.parameterStructures,N[0]);break;default:L=[];for(let me=0;me{tr();let L,M;if(r.string(h)){L=h;let ce=N[0],Ee=0,Se=n.ParameterStructures.auto;n.ParameterStructures.is(ce)&&(Ee=1,Se=ce);let ee=N.length,Te=ee-Ee;switch(Te){case 0:M=void 0;break;case 1:M=ne(Se,N[Ee]);break;default:if(Se===n.ParameterStructures.byName)throw new Error(`Received ${Te} parameters for 'by Name' notification parameter structure.`);M=N.slice(Ee,ee).map(oe=>rr(oe));break}}else{let ce=N;L=h.method,M=ve(h,ce)}let me={jsonrpc:G,method:L,params:M};return gi(me),E.write(me).catch(ce=>{throw b.error("Sending notification failed."),ce})},"sendNotification"),onNotification:s((h,N)=>{tr();let L;return r.func(h)?W=h:N&&(r.string(h)?(L=h,Ne.set(h,{type:void 0,handler:N})):(L=h.method,Ne.set(h.method,{type:h,handler:N}))),{dispose:s(()=>{L!==void 0?Ne.delete(L):W=void 0},"dispose")}},"onNotification"),onProgress:s((h,N,L)=>{if(se.has(N))throw new Error(`Progress handler for token ${N} already registered`);return se.set(N,L),{dispose:s(()=>{se.delete(N)},"dispose")}},"onProgress"),sendProgress:s((h,N,L)=>V.sendNotification(c.type,{token:N,value:L}),"sendProgress"),onUnhandledProgress:ni.event,sendRequest:s((h,...N)=>{tr(),Ri();let L,M,me;if(r.string(h)){L=h;let ee=N[0],Te=N[N.length-1],oe=0,De=n.ParameterStructures.auto;n.ParameterStructures.is(ee)&&(oe=1,De=ee);let He=N.length;o.CancellationToken.is(Te)&&(He=He-1,me=Te);let Ft=He-oe;switch(Ft){case 0:M=void 0;break;case 1:M=ne(De,N[oe]);break;default:if(De===n.ParameterStructures.byName)throw new Error(`Received ${Ft} parameters for 'by Name' request parameter structure.`);M=N.slice(oe,He).map(ww=>rr(ww));break}}else{let ee=N;L=h.method,M=ve(h,ee);let Te=h.numberOfParams;me=o.CancellationToken.is(ee[Te])?ee[Te]:void 0}let ce=O++,Ee;me&&(Ee=me.onCancellationRequested(()=>{let ee=bt.sender.sendCancellation(V,ce);return ee===void 0?(b.log(`Received no promise from cancellation strategy when cancelling id ${ce}`),Promise.resolve()):ee.catch(()=>{b.log(`Sending cancellation messages for id ${ce} failed`)})}));let Se={jsonrpc:G,id:ce,method:L,params:M};return yi(Se),typeof bt.sender.enableCancellation=="function"&&bt.sender.enableCancellation(Se),new Promise(async(ee,Te)=>{let oe=s(Ft=>{ee(Ft),bt.sender.cleanup(ce),Ee?.dispose()},"resolveWithCleanup"),De=s(Ft=>{Te(Ft),bt.sender.cleanup(ce),Ee?.dispose()},"rejectWithCleanup"),He={method:L,timerStart:Date.now(),resolve:oe,reject:De};try{await E.write(Se),Pe.set(ce,He)}catch(Ft){throw b.error("Sending request failed."),He.reject(new n.ResponseError(n.ErrorCodes.MessageWriteError,Ft.message?Ft.message:"Unknown reason")),Ft}})},"sendRequest"),onRequest:s((h,N)=>{tr();let L=null;return p.is(h)?(L=void 0,q=h):r.string(h)?(L=null,N!==void 0&&(L=h,Y.set(h,{handler:N,type:void 0}))):N!==void 0&&(L=h.method,Y.set(h.method,{type:h,handler:N})),{dispose:s(()=>{L!==null&&(L!==void 0?Y.delete(L):q=void 0)},"dispose")}},"onRequest"),hasPendingResponse:s(()=>Pe.size>0,"hasPendingResponse"),trace:s(async(h,N,L)=>{let M=!1,me=v.Text;L!==void 0&&(r.boolean(L)?M=L:(M=L.sendNotification||!1,me=L.traceFormat||v.Text)),re=h,xt=me,re===m.Off?Ae=void 0:Ae=N,M&&!Xn()&&!Mt()&&await V.sendNotification(_.type,{value:m.toString(h)})},"trace"),onError:Vn.event,onClose:ti.event,onUnhandledNotification:ri.event,onDispose:ai.event,end:s(()=>{E.end()},"end"),dispose:s(()=>{if(Mt())return;Ct=k.Disposed,ai.fire(void 0);let h=new n.ResponseError(n.ErrorCodes.PendingResponseRejected,"Pending response rejected since connection got disposed");for(let N of Pe.values())N.reject(h);Pe=new Map,We=new Map,Ve=new Set,Le=new a.LinkedMap,r.func(E.dispose)&&E.dispose(),r.func(y.dispose)&&y.dispose()},"dispose"),listen:s(()=>{tr(),$i(),Ct=k.Listening,y.listen(Hs)},"listen"),inspect:s(()=>{(0,t.default)().console.log("inspect")},"inspect")};return V.onNotification(S.type,h=>{if(re===m.Off||!Ae)return;let N=re===m.Verbose||re===m.Compact;Ae.log(h.message,N?h.verbose:void 0)}),V.onNotification(c.type,h=>{let N=se.get(h.token);N?N(h.value):ni.fire(h)}),V}s(C,"createMessageConnection"),e.createMessageConnection=C}}),mf=H({"../../node_modules/.pnpm/vscode-jsonrpc@8.2.0/node_modules/vscode-jsonrpc/lib/common/api.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ProgressType=e.ProgressToken=e.createMessageConnection=e.NullLogger=e.ConnectionOptions=e.ConnectionStrategy=e.AbstractMessageBuffer=e.WriteableStreamMessageWriter=e.AbstractMessageWriter=e.MessageWriter=e.ReadableStreamMessageReader=e.AbstractMessageReader=e.MessageReader=e.SharedArrayReceiverStrategy=e.SharedArraySenderStrategy=e.CancellationToken=e.CancellationTokenSource=e.Emitter=e.Event=e.Disposable=e.LRUCache=e.Touch=e.LinkedMap=e.ParameterStructures=e.NotificationType9=e.NotificationType8=e.NotificationType7=e.NotificationType6=e.NotificationType5=e.NotificationType4=e.NotificationType3=e.NotificationType2=e.NotificationType1=e.NotificationType0=e.NotificationType=e.ErrorCodes=e.ResponseError=e.RequestType9=e.RequestType8=e.RequestType7=e.RequestType6=e.RequestType5=e.RequestType4=e.RequestType3=e.RequestType2=e.RequestType1=e.RequestType0=e.RequestType=e.Message=e.RAL=void 0,e.MessageStrategy=e.CancellationStrategy=e.CancellationSenderStrategy=e.CancellationReceiverStrategy=e.ConnectionError=e.ConnectionErrors=e.LogTraceNotification=e.SetTraceNotification=e.TraceFormat=e.TraceValues=e.Trace=void 0;var t=wg();Object.defineProperty(e,"Message",{enumerable:!0,get:s(function(){return t.Message},"get")}),Object.defineProperty(e,"RequestType",{enumerable:!0,get:s(function(){return t.RequestType},"get")}),Object.defineProperty(e,"RequestType0",{enumerable:!0,get:s(function(){return t.RequestType0},"get")}),Object.defineProperty(e,"RequestType1",{enumerable:!0,get:s(function(){return t.RequestType1},"get")}),Object.defineProperty(e,"RequestType2",{enumerable:!0,get:s(function(){return t.RequestType2},"get")}),Object.defineProperty(e,"RequestType3",{enumerable:!0,get:s(function(){return t.RequestType3},"get")}),Object.defineProperty(e,"RequestType4",{enumerable:!0,get:s(function(){return t.RequestType4},"get")}),Object.defineProperty(e,"RequestType5",{enumerable:!0,get:s(function(){return t.RequestType5},"get")}),Object.defineProperty(e,"RequestType6",{enumerable:!0,get:s(function(){return t.RequestType6},"get")}),Object.defineProperty(e,"RequestType7",{enumerable:!0,get:s(function(){return t.RequestType7},"get")}),Object.defineProperty(e,"RequestType8",{enumerable:!0,get:s(function(){return t.RequestType8},"get")}),Object.defineProperty(e,"RequestType9",{enumerable:!0,get:s(function(){return t.RequestType9},"get")}),Object.defineProperty(e,"ResponseError",{enumerable:!0,get:s(function(){return t.ResponseError},"get")}),Object.defineProperty(e,"ErrorCodes",{enumerable:!0,get:s(function(){return t.ErrorCodes},"get")}),Object.defineProperty(e,"NotificationType",{enumerable:!0,get:s(function(){return t.NotificationType},"get")}),Object.defineProperty(e,"NotificationType0",{enumerable:!0,get:s(function(){return t.NotificationType0},"get")}),Object.defineProperty(e,"NotificationType1",{enumerable:!0,get:s(function(){return t.NotificationType1},"get")}),Object.defineProperty(e,"NotificationType2",{enumerable:!0,get:s(function(){return t.NotificationType2},"get")}),Object.defineProperty(e,"NotificationType3",{enumerable:!0,get:s(function(){return t.NotificationType3},"get")}),Object.defineProperty(e,"NotificationType4",{enumerable:!0,get:s(function(){return t.NotificationType4},"get")}),Object.defineProperty(e,"NotificationType5",{enumerable:!0,get:s(function(){return t.NotificationType5},"get")}),Object.defineProperty(e,"NotificationType6",{enumerable:!0,get:s(function(){return t.NotificationType6},"get")}),Object.defineProperty(e,"NotificationType7",{enumerable:!0,get:s(function(){return t.NotificationType7},"get")}),Object.defineProperty(e,"NotificationType8",{enumerable:!0,get:s(function(){return t.NotificationType8},"get")}),Object.defineProperty(e,"NotificationType9",{enumerable:!0,get:s(function(){return t.NotificationType9},"get")}),Object.defineProperty(e,"ParameterStructures",{enumerable:!0,get:s(function(){return t.ParameterStructures},"get")});var r=Ng();Object.defineProperty(e,"LinkedMap",{enumerable:!0,get:s(function(){return r.LinkedMap},"get")}),Object.defineProperty(e,"LRUCache",{enumerable:!0,get:s(function(){return r.LRUCache},"get")}),Object.defineProperty(e,"Touch",{enumerable:!0,get:s(function(){return r.Touch},"get")});var n=Lw();Object.defineProperty(e,"Disposable",{enumerable:!0,get:s(function(){return n.Disposable},"get")});var a=qa();Object.defineProperty(e,"Event",{enumerable:!0,get:s(function(){return a.Event},"get")}),Object.defineProperty(e,"Emitter",{enumerable:!0,get:s(function(){return a.Emitter},"get")});var i=Il();Object.defineProperty(e,"CancellationTokenSource",{enumerable:!0,get:s(function(){return i.CancellationTokenSource},"get")}),Object.defineProperty(e,"CancellationToken",{enumerable:!0,get:s(function(){return i.CancellationToken},"get")});var o=Dw();Object.defineProperty(e,"SharedArraySenderStrategy",{enumerable:!0,get:s(function(){return o.SharedArraySenderStrategy},"get")}),Object.defineProperty(e,"SharedArrayReceiverStrategy",{enumerable:!0,get:s(function(){return o.SharedArrayReceiverStrategy},"get")});var l=xw();Object.defineProperty(e,"MessageReader",{enumerable:!0,get:s(function(){return l.MessageReader},"get")}),Object.defineProperty(e,"AbstractMessageReader",{enumerable:!0,get:s(function(){return l.AbstractMessageReader},"get")}),Object.defineProperty(e,"ReadableStreamMessageReader",{enumerable:!0,get:s(function(){return l.ReadableStreamMessageReader},"get")});var u=Mw();Object.defineProperty(e,"MessageWriter",{enumerable:!0,get:s(function(){return u.MessageWriter},"get")}),Object.defineProperty(e,"AbstractMessageWriter",{enumerable:!0,get:s(function(){return u.AbstractMessageWriter},"get")}),Object.defineProperty(e,"WriteableStreamMessageWriter",{enumerable:!0,get:s(function(){return u.WriteableStreamMessageWriter},"get")});var c=Gw();Object.defineProperty(e,"AbstractMessageBuffer",{enumerable:!0,get:s(function(){return c.AbstractMessageBuffer},"get")});var f=Fw();Object.defineProperty(e,"ConnectionStrategy",{enumerable:!0,get:s(function(){return f.ConnectionStrategy},"get")}),Object.defineProperty(e,"ConnectionOptions",{enumerable:!0,get:s(function(){return f.ConnectionOptions},"get")}),Object.defineProperty(e,"NullLogger",{enumerable:!0,get:s(function(){return f.NullLogger},"get")}),Object.defineProperty(e,"createMessageConnection",{enumerable:!0,get:s(function(){return f.createMessageConnection},"get")}),Object.defineProperty(e,"ProgressToken",{enumerable:!0,get:s(function(){return f.ProgressToken},"get")}),Object.defineProperty(e,"ProgressType",{enumerable:!0,get:s(function(){return f.ProgressType},"get")}),Object.defineProperty(e,"Trace",{enumerable:!0,get:s(function(){return f.Trace},"get")}),Object.defineProperty(e,"TraceValues",{enumerable:!0,get:s(function(){return f.TraceValues},"get")}),Object.defineProperty(e,"TraceFormat",{enumerable:!0,get:s(function(){return f.TraceFormat},"get")}),Object.defineProperty(e,"SetTraceNotification",{enumerable:!0,get:s(function(){return f.SetTraceNotification},"get")}),Object.defineProperty(e,"LogTraceNotification",{enumerable:!0,get:s(function(){return f.LogTraceNotification},"get")}),Object.defineProperty(e,"ConnectionErrors",{enumerable:!0,get:s(function(){return f.ConnectionErrors},"get")}),Object.defineProperty(e,"ConnectionError",{enumerable:!0,get:s(function(){return f.ConnectionError},"get")}),Object.defineProperty(e,"CancellationReceiverStrategy",{enumerable:!0,get:s(function(){return f.CancellationReceiverStrategy},"get")}),Object.defineProperty(e,"CancellationSenderStrategy",{enumerable:!0,get:s(function(){return f.CancellationSenderStrategy},"get")}),Object.defineProperty(e,"CancellationStrategy",{enumerable:!0,get:s(function(){return f.CancellationStrategy},"get")}),Object.defineProperty(e,"MessageStrategy",{enumerable:!0,get:s(function(){return f.MessageStrategy},"get")});var p=_n();e.RAL=p.default}}),zw=H({"../../node_modules/.pnpm/vscode-jsonrpc@8.2.0/node_modules/vscode-jsonrpc/lib/browser/ril.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var t=mf(),r=class Og extends t.AbstractMessageBuffer{static{s(this,"MessageBuffer")}constructor(c="utf-8"){super(c),this.asciiDecoder=new TextDecoder("ascii")}emptyBuffer(){return Og.emptyBuffer}fromString(c,f){return new TextEncoder().encode(c)}toString(c,f){return f==="ascii"?this.asciiDecoder.decode(c):new TextDecoder(f).decode(c)}asNative(c,f){return f===void 0?c:c.slice(0,f)}allocNative(c){return new Uint8Array(c)}};r.emptyBuffer=new Uint8Array(0);var n=class{static{s(this,"ReadableStreamWrapper")}constructor(u){this.socket=u,this._onData=new t.Emitter,this._messageListener=c=>{c.data.arrayBuffer().then(p=>{this._onData.fire(new Uint8Array(p))},()=>{(0,t.RAL)().console.error("Converting blob to array buffer failed.")})},this.socket.addEventListener("message",this._messageListener)}onClose(u){return this.socket.addEventListener("close",u),t.Disposable.create(()=>this.socket.removeEventListener("close",u))}onError(u){return this.socket.addEventListener("error",u),t.Disposable.create(()=>this.socket.removeEventListener("error",u))}onEnd(u){return this.socket.addEventListener("end",u),t.Disposable.create(()=>this.socket.removeEventListener("end",u))}onData(u){return this._onData.event(u)}},a=class{static{s(this,"WritableStreamWrapper")}constructor(u){this.socket=u}onClose(u){return this.socket.addEventListener("close",u),t.Disposable.create(()=>this.socket.removeEventListener("close",u))}onError(u){return this.socket.addEventListener("error",u),t.Disposable.create(()=>this.socket.removeEventListener("error",u))}onEnd(u){return this.socket.addEventListener("end",u),t.Disposable.create(()=>this.socket.removeEventListener("end",u))}write(u,c){if(typeof u=="string"){if(c!==void 0&&c!=="utf-8")throw new Error(`In a Browser environments only utf-8 text encoding is supported. But got encoding: ${c}`);this.socket.send(u)}else this.socket.send(u);return Promise.resolve()}end(){this.socket.close()}},i=new TextEncoder,o=Object.freeze({messageBuffer:Object.freeze({create:s(u=>new r(u),"create")}),applicationJson:Object.freeze({encoder:Object.freeze({name:"application/json",encode:s((u,c)=>{if(c.charset!=="utf-8")throw new Error(`In a Browser environments only utf-8 text encoding is supported. But got encoding: ${c.charset}`);return Promise.resolve(i.encode(JSON.stringify(u,void 0,0)))},"encode")}),decoder:Object.freeze({name:"application/json",decode:s((u,c)=>{if(!(u instanceof Uint8Array))throw new Error("In a Browser environments only Uint8Arrays are supported.");return Promise.resolve(JSON.parse(new TextDecoder(c.charset).decode(u)))},"decode")})}),stream:Object.freeze({asReadableStream:s(u=>new n(u),"asReadableStream"),asWritableStream:s(u=>new a(u),"asWritableStream")}),console,timer:Object.freeze({setTimeout(u,c,...f){let p=setTimeout(u,c,...f);return{dispose:s(()=>clearTimeout(p),"dispose")}},setImmediate(u,...c){let f=setTimeout(u,0,...c);return{dispose:s(()=>clearTimeout(f),"dispose")}},setInterval(u,c,...f){let p=setInterval(u,c,...f);return{dispose:s(()=>clearInterval(p),"dispose")}}})});function l(){return o}s(l,"RIL"),(function(u){function c(){t.RAL.install(o)}s(c,"install"),u.install=c})(l||(l={})),e.default=l}}),Wa=H({"../../node_modules/.pnpm/vscode-jsonrpc@8.2.0/node_modules/vscode-jsonrpc/lib/browser/main.js"(e){"use strict";var t=e&&e.__createBinding||(Object.create?(function(u,c,f,p){p===void 0&&(p=f);var m=Object.getOwnPropertyDescriptor(c,f);(!m||("get"in m?!c.__esModule:m.writable||m.configurable))&&(m={enumerable:!0,get:s(function(){return c[f]},"get")}),Object.defineProperty(u,p,m)}):(function(u,c,f,p){p===void 0&&(p=f),u[p]=c[f]})),r=e&&e.__exportStar||function(u,c){for(var f in u)f!=="default"&&!Object.prototype.hasOwnProperty.call(c,f)&&t(c,u,f)};Object.defineProperty(e,"__esModule",{value:!0}),e.createMessageConnection=e.BrowserMessageWriter=e.BrowserMessageReader=void 0;var n=zw();n.default.install();var a=mf();r(mf(),e);var i=class extends a.AbstractMessageReader{static{s(this,"BrowserMessageReader")}constructor(u){super(),this._onData=new a.Emitter,this._messageListener=c=>{this._onData.fire(c.data)},u.addEventListener("error",c=>this.fireError(c)),u.onmessage=this._messageListener}listen(u){return this._onData.event(u)}};e.BrowserMessageReader=i;var o=class extends a.AbstractMessageWriter{static{s(this,"BrowserMessageWriter")}constructor(u){super(),this.port=u,this.errorCount=0,u.addEventListener("error",c=>this.fireError(c))}write(u){try{return this.port.postMessage(u),Promise.resolve()}catch(c){return this.handleError(c,u),Promise.reject(c)}}handleError(u,c){this.errorCount++,this.fireError(u,c,this.errorCount)}end(){}};e.BrowserMessageWriter=o;function l(u,c,f,p){return f===void 0&&(f=a.NullLogger),a.ConnectionStrategy.is(p)&&(p={connectionStrategy:p}),(0,a.createMessageConnection)(u,c,f,p)}s(l,"createMessageConnection"),e.createMessageConnection=l}}),rh=H({"../../node_modules/.pnpm/vscode-jsonrpc@8.2.0/node_modules/vscode-jsonrpc/browser.js"(e,t){"use strict";t.exports=Wa()}}),Re=H({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/messages.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ProtocolNotificationType=e.ProtocolNotificationType0=e.ProtocolRequestType=e.ProtocolRequestType0=e.RegistrationType=e.MessageDirection=void 0;var t=Wa(),r;(function(u){u.clientToServer="clientToServer",u.serverToClient="serverToClient",u.both="both"})(r||(e.MessageDirection=r={}));var n=class{static{s(this,"RegistrationType")}constructor(u){this.method=u}};e.RegistrationType=n;var a=class extends t.RequestType0{static{s(this,"ProtocolRequestType0")}constructor(u){super(u)}};e.ProtocolRequestType0=a;var i=class extends t.RequestType{static{s(this,"ProtocolRequestType")}constructor(u){super(u,t.ParameterStructures.byName)}};e.ProtocolRequestType=i;var o=class extends t.NotificationType0{static{s(this,"ProtocolNotificationType0")}constructor(u){super(u)}};e.ProtocolNotificationType0=o;var l=class extends t.NotificationType{static{s(this,"ProtocolNotificationType")}constructor(u){super(u,t.ParameterStructures.byName)}};e.ProtocolNotificationType=l}}),gp=H({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/utils/is.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.objectLiteral=e.typedArray=e.stringArray=e.array=e.func=e.error=e.number=e.string=e.boolean=void 0;function t(f){return f===!0||f===!1}s(t,"boolean"),e.boolean=t;function r(f){return typeof f=="string"||f instanceof String}s(r,"string"),e.string=r;function n(f){return typeof f=="number"||f instanceof Number}s(n,"number"),e.number=n;function a(f){return f instanceof Error}s(a,"error"),e.error=a;function i(f){return typeof f=="function"}s(i,"func"),e.func=i;function o(f){return Array.isArray(f)}s(o,"array"),e.array=o;function l(f){return o(f)&&f.every(p=>r(p))}s(l,"stringArray"),e.stringArray=l;function u(f,p){return Array.isArray(f)&&f.every(p)}s(u,"typedArray"),e.typedArray=u;function c(f){return f!==null&&typeof f=="object"}s(c,"objectLiteral"),e.objectLiteral=c}}),jw=H({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.implementation.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ImplementationRequest=void 0;var t=Re(),r;(function(n){n.method="textDocument/implementation",n.messageDirection=t.MessageDirection.clientToServer,n.type=new t.ProtocolRequestType(n.method)})(r||(e.ImplementationRequest=r={}))}}),Uw=H({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.typeDefinition.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.TypeDefinitionRequest=void 0;var t=Re(),r;(function(n){n.method="textDocument/typeDefinition",n.messageDirection=t.MessageDirection.clientToServer,n.type=new t.ProtocolRequestType(n.method)})(r||(e.TypeDefinitionRequest=r={}))}}),Kw=H({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.workspaceFolder.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DidChangeWorkspaceFoldersNotification=e.WorkspaceFoldersRequest=void 0;var t=Re(),r;(function(a){a.method="workspace/workspaceFolders",a.messageDirection=t.MessageDirection.serverToClient,a.type=new t.ProtocolRequestType0(a.method)})(r||(e.WorkspaceFoldersRequest=r={}));var n;(function(a){a.method="workspace/didChangeWorkspaceFolders",a.messageDirection=t.MessageDirection.clientToServer,a.type=new t.ProtocolNotificationType(a.method)})(n||(e.DidChangeWorkspaceFoldersNotification=n={}))}}),Bw=H({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.configuration.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ConfigurationRequest=void 0;var t=Re(),r;(function(n){n.method="workspace/configuration",n.messageDirection=t.MessageDirection.serverToClient,n.type=new t.ProtocolRequestType(n.method)})(r||(e.ConfigurationRequest=r={}))}}),qw=H({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.colorProvider.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ColorPresentationRequest=e.DocumentColorRequest=void 0;var t=Re(),r;(function(a){a.method="textDocument/documentColor",a.messageDirection=t.MessageDirection.clientToServer,a.type=new t.ProtocolRequestType(a.method)})(r||(e.DocumentColorRequest=r={}));var n;(function(a){a.method="textDocument/colorPresentation",a.messageDirection=t.MessageDirection.clientToServer,a.type=new t.ProtocolRequestType(a.method)})(n||(e.ColorPresentationRequest=n={}))}}),Ww=H({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.foldingRange.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.FoldingRangeRefreshRequest=e.FoldingRangeRequest=void 0;var t=Re(),r;(function(a){a.method="textDocument/foldingRange",a.messageDirection=t.MessageDirection.clientToServer,a.type=new t.ProtocolRequestType(a.method)})(r||(e.FoldingRangeRequest=r={}));var n;(function(a){a.method="workspace/foldingRange/refresh",a.messageDirection=t.MessageDirection.serverToClient,a.type=new t.ProtocolRequestType0(a.method)})(n||(e.FoldingRangeRefreshRequest=n={}))}}),Vw=H({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.declaration.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DeclarationRequest=void 0;var t=Re(),r;(function(n){n.method="textDocument/declaration",n.messageDirection=t.MessageDirection.clientToServer,n.type=new t.ProtocolRequestType(n.method)})(r||(e.DeclarationRequest=r={}))}}),Hw=H({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.selectionRange.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SelectionRangeRequest=void 0;var t=Re(),r;(function(n){n.method="textDocument/selectionRange",n.messageDirection=t.MessageDirection.clientToServer,n.type=new t.ProtocolRequestType(n.method)})(r||(e.SelectionRangeRequest=r={}))}}),Yw=H({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.progress.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.WorkDoneProgressCancelNotification=e.WorkDoneProgressCreateRequest=e.WorkDoneProgress=void 0;var t=Wa(),r=Re(),n;(function(o){o.type=new t.ProgressType;function l(u){return u===o.type}s(l,"is"),o.is=l})(n||(e.WorkDoneProgress=n={}));var a;(function(o){o.method="window/workDoneProgress/create",o.messageDirection=r.MessageDirection.serverToClient,o.type=new r.ProtocolRequestType(o.method)})(a||(e.WorkDoneProgressCreateRequest=a={}));var i;(function(o){o.method="window/workDoneProgress/cancel",o.messageDirection=r.MessageDirection.clientToServer,o.type=new r.ProtocolNotificationType(o.method)})(i||(e.WorkDoneProgressCancelNotification=i={}))}}),Xw=H({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.callHierarchy.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CallHierarchyOutgoingCallsRequest=e.CallHierarchyIncomingCallsRequest=e.CallHierarchyPrepareRequest=void 0;var t=Re(),r;(function(i){i.method="textDocument/prepareCallHierarchy",i.messageDirection=t.MessageDirection.clientToServer,i.type=new t.ProtocolRequestType(i.method)})(r||(e.CallHierarchyPrepareRequest=r={}));var n;(function(i){i.method="callHierarchy/incomingCalls",i.messageDirection=t.MessageDirection.clientToServer,i.type=new t.ProtocolRequestType(i.method)})(n||(e.CallHierarchyIncomingCallsRequest=n={}));var a;(function(i){i.method="callHierarchy/outgoingCalls",i.messageDirection=t.MessageDirection.clientToServer,i.type=new t.ProtocolRequestType(i.method)})(a||(e.CallHierarchyOutgoingCallsRequest=a={}))}}),Jw=H({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.semanticTokens.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SemanticTokensRefreshRequest=e.SemanticTokensRangeRequest=e.SemanticTokensDeltaRequest=e.SemanticTokensRequest=e.SemanticTokensRegistrationType=e.TokenFormat=void 0;var t=Re(),r;(function(u){u.Relative="relative"})(r||(e.TokenFormat=r={}));var n;(function(u){u.method="textDocument/semanticTokens",u.type=new t.RegistrationType(u.method)})(n||(e.SemanticTokensRegistrationType=n={}));var a;(function(u){u.method="textDocument/semanticTokens/full",u.messageDirection=t.MessageDirection.clientToServer,u.type=new t.ProtocolRequestType(u.method),u.registrationMethod=n.method})(a||(e.SemanticTokensRequest=a={}));var i;(function(u){u.method="textDocument/semanticTokens/full/delta",u.messageDirection=t.MessageDirection.clientToServer,u.type=new t.ProtocolRequestType(u.method),u.registrationMethod=n.method})(i||(e.SemanticTokensDeltaRequest=i={}));var o;(function(u){u.method="textDocument/semanticTokens/range",u.messageDirection=t.MessageDirection.clientToServer,u.type=new t.ProtocolRequestType(u.method),u.registrationMethod=n.method})(o||(e.SemanticTokensRangeRequest=o={}));var l;(function(u){u.method="workspace/semanticTokens/refresh",u.messageDirection=t.MessageDirection.serverToClient,u.type=new t.ProtocolRequestType0(u.method)})(l||(e.SemanticTokensRefreshRequest=l={}))}}),Zw=H({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.showDocument.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ShowDocumentRequest=void 0;var t=Re(),r;(function(n){n.method="window/showDocument",n.messageDirection=t.MessageDirection.serverToClient,n.type=new t.ProtocolRequestType(n.method)})(r||(e.ShowDocumentRequest=r={}))}}),Qw=H({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.linkedEditingRange.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.LinkedEditingRangeRequest=void 0;var t=Re(),r;(function(n){n.method="textDocument/linkedEditingRange",n.messageDirection=t.MessageDirection.clientToServer,n.type=new t.ProtocolRequestType(n.method)})(r||(e.LinkedEditingRangeRequest=r={}))}}),eI=H({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.fileOperations.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.WillDeleteFilesRequest=e.DidDeleteFilesNotification=e.DidRenameFilesNotification=e.WillRenameFilesRequest=e.DidCreateFilesNotification=e.WillCreateFilesRequest=e.FileOperationPatternKind=void 0;var t=Re(),r;(function(c){c.file="file",c.folder="folder"})(r||(e.FileOperationPatternKind=r={}));var n;(function(c){c.method="workspace/willCreateFiles",c.messageDirection=t.MessageDirection.clientToServer,c.type=new t.ProtocolRequestType(c.method)})(n||(e.WillCreateFilesRequest=n={}));var a;(function(c){c.method="workspace/didCreateFiles",c.messageDirection=t.MessageDirection.clientToServer,c.type=new t.ProtocolNotificationType(c.method)})(a||(e.DidCreateFilesNotification=a={}));var i;(function(c){c.method="workspace/willRenameFiles",c.messageDirection=t.MessageDirection.clientToServer,c.type=new t.ProtocolRequestType(c.method)})(i||(e.WillRenameFilesRequest=i={}));var o;(function(c){c.method="workspace/didRenameFiles",c.messageDirection=t.MessageDirection.clientToServer,c.type=new t.ProtocolNotificationType(c.method)})(o||(e.DidRenameFilesNotification=o={}));var l;(function(c){c.method="workspace/didDeleteFiles",c.messageDirection=t.MessageDirection.clientToServer,c.type=new t.ProtocolNotificationType(c.method)})(l||(e.DidDeleteFilesNotification=l={}));var u;(function(c){c.method="workspace/willDeleteFiles",c.messageDirection=t.MessageDirection.clientToServer,c.type=new t.ProtocolRequestType(c.method)})(u||(e.WillDeleteFilesRequest=u={}))}}),tI=H({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.moniker.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.MonikerRequest=e.MonikerKind=e.UniquenessLevel=void 0;var t=Re(),r;(function(i){i.document="document",i.project="project",i.group="group",i.scheme="scheme",i.global="global"})(r||(e.UniquenessLevel=r={}));var n;(function(i){i.$import="import",i.$export="export",i.local="local"})(n||(e.MonikerKind=n={}));var a;(function(i){i.method="textDocument/moniker",i.messageDirection=t.MessageDirection.clientToServer,i.type=new t.ProtocolRequestType(i.method)})(a||(e.MonikerRequest=a={}))}}),rI=H({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.typeHierarchy.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.TypeHierarchySubtypesRequest=e.TypeHierarchySupertypesRequest=e.TypeHierarchyPrepareRequest=void 0;var t=Re(),r;(function(i){i.method="textDocument/prepareTypeHierarchy",i.messageDirection=t.MessageDirection.clientToServer,i.type=new t.ProtocolRequestType(i.method)})(r||(e.TypeHierarchyPrepareRequest=r={}));var n;(function(i){i.method="typeHierarchy/supertypes",i.messageDirection=t.MessageDirection.clientToServer,i.type=new t.ProtocolRequestType(i.method)})(n||(e.TypeHierarchySupertypesRequest=n={}));var a;(function(i){i.method="typeHierarchy/subtypes",i.messageDirection=t.MessageDirection.clientToServer,i.type=new t.ProtocolRequestType(i.method)})(a||(e.TypeHierarchySubtypesRequest=a={}))}}),nI=H({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.inlineValue.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.InlineValueRefreshRequest=e.InlineValueRequest=void 0;var t=Re(),r;(function(a){a.method="textDocument/inlineValue",a.messageDirection=t.MessageDirection.clientToServer,a.type=new t.ProtocolRequestType(a.method)})(r||(e.InlineValueRequest=r={}));var n;(function(a){a.method="workspace/inlineValue/refresh",a.messageDirection=t.MessageDirection.serverToClient,a.type=new t.ProtocolRequestType0(a.method)})(n||(e.InlineValueRefreshRequest=n={}))}}),aI=H({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.inlayHint.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.InlayHintRefreshRequest=e.InlayHintResolveRequest=e.InlayHintRequest=void 0;var t=Re(),r;(function(i){i.method="textDocument/inlayHint",i.messageDirection=t.MessageDirection.clientToServer,i.type=new t.ProtocolRequestType(i.method)})(r||(e.InlayHintRequest=r={}));var n;(function(i){i.method="inlayHint/resolve",i.messageDirection=t.MessageDirection.clientToServer,i.type=new t.ProtocolRequestType(i.method)})(n||(e.InlayHintResolveRequest=n={}));var a;(function(i){i.method="workspace/inlayHint/refresh",i.messageDirection=t.MessageDirection.serverToClient,i.type=new t.ProtocolRequestType0(i.method)})(a||(e.InlayHintRefreshRequest=a={}))}}),iI=H({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.diagnostic.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DiagnosticRefreshRequest=e.WorkspaceDiagnosticRequest=e.DocumentDiagnosticRequest=e.DocumentDiagnosticReportKind=e.DiagnosticServerCancellationData=void 0;var t=Wa(),r=gp(),n=Re(),a;(function(c){function f(p){let m=p;return m&&r.boolean(m.retriggerRequest)}s(f,"is"),c.is=f})(a||(e.DiagnosticServerCancellationData=a={}));var i;(function(c){c.Full="full",c.Unchanged="unchanged"})(i||(e.DocumentDiagnosticReportKind=i={}));var o;(function(c){c.method="textDocument/diagnostic",c.messageDirection=n.MessageDirection.clientToServer,c.type=new n.ProtocolRequestType(c.method),c.partialResult=new t.ProgressType})(o||(e.DocumentDiagnosticRequest=o={}));var l;(function(c){c.method="workspace/diagnostic",c.messageDirection=n.MessageDirection.clientToServer,c.type=new n.ProtocolRequestType(c.method),c.partialResult=new t.ProgressType})(l||(e.WorkspaceDiagnosticRequest=l={}));var u;(function(c){c.method="workspace/diagnostic/refresh",c.messageDirection=n.MessageDirection.serverToClient,c.type=new n.ProtocolRequestType0(c.method)})(u||(e.DiagnosticRefreshRequest=u={}))}}),sI=H({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.notebook.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DidCloseNotebookDocumentNotification=e.DidSaveNotebookDocumentNotification=e.DidChangeNotebookDocumentNotification=e.NotebookCellArrayChange=e.DidOpenNotebookDocumentNotification=e.NotebookDocumentSyncRegistrationType=e.NotebookDocument=e.NotebookCell=e.ExecutionSummary=e.NotebookCellKind=void 0;var t=(Ss(),yp(wl)),r=gp(),n=Re(),a;(function(v){v.Markup=1,v.Code=2;function _(S){return S===1||S===2}s(_,"is"),v.is=_})(a||(e.NotebookCellKind=a={}));var i;(function(v){function _(w,R){let P={executionOrder:w};return(R===!0||R===!1)&&(P.success=R),P}s(_,"create"),v.create=_;function S(w){let R=w;return r.objectLiteral(R)&&t.uinteger.is(R.executionOrder)&&(R.success===void 0||r.boolean(R.success))}s(S,"is"),v.is=S;function I(w,R){return w===R?!0:w==null||R===null||R===void 0?!1:w.executionOrder===R.executionOrder&&w.success===R.success}s(I,"equals"),v.equals=I})(i||(e.ExecutionSummary=i={}));var o;(function(v){function _(R,P){return{kind:R,document:P}}s(_,"create"),v.create=_;function S(R){let P=R;return r.objectLiteral(P)&&a.is(P.kind)&&t.DocumentUri.is(P.document)&&(P.metadata===void 0||r.objectLiteral(P.metadata))}s(S,"is"),v.is=S;function I(R,P){let z=new Set;return R.document!==P.document&&z.add("document"),R.kind!==P.kind&&z.add("kind"),R.executionSummary!==P.executionSummary&&z.add("executionSummary"),(R.metadata!==void 0||P.metadata!==void 0)&&!w(R.metadata,P.metadata)&&z.add("metadata"),(R.executionSummary!==void 0||P.executionSummary!==void 0)&&!i.equals(R.executionSummary,P.executionSummary)&&z.add("executionSummary"),z}s(I,"diff"),v.diff=I;function w(R,P){if(R===P)return!0;if(R==null||P===null||P===void 0||typeof R!=typeof P||typeof R!="object")return!1;let z=Array.isArray(R),X=Array.isArray(P);if(z!==X)return!1;if(z&&X){if(R.length!==P.length)return!1;for(let Z=0;Z0}s(ne,"hasId"),d.hasId=ne})(O||(e.StaticRegistrationOptions=O={}));var x;(function(d){function ne(ve){let V=ve;return V&&(V.documentSelector===null||C.is(V.documentSelector))}s(ne,"is"),d.is=ne})(x||(e.TextDocumentRegistrationOptions=x={}));var D;(function(d){function ne(V){let h=V;return n.objectLiteral(h)&&(h.workDoneProgress===void 0||n.boolean(h.workDoneProgress))}s(ne,"is"),d.is=ne;function ve(V){let h=V;return h&&n.boolean(h.workDoneProgress)}s(ve,"hasWorkDoneProgress"),d.hasWorkDoneProgress=ve})(D||(e.WorkDoneProgressOptions=D={}));var G;(function(d){d.method="initialize",d.messageDirection=t.MessageDirection.clientToServer,d.type=new t.ProtocolRequestType(d.method)})(G||(e.InitializeRequest=G={}));var q;(function(d){d.unknownProtocolVersion=1})(q||(e.InitializeErrorCodes=q={}));var Y;(function(d){d.method="initialized",d.messageDirection=t.MessageDirection.clientToServer,d.type=new t.ProtocolNotificationType(d.method)})(Y||(e.InitializedNotification=Y={}));var W;(function(d){d.method="shutdown",d.messageDirection=t.MessageDirection.clientToServer,d.type=new t.ProtocolRequestType0(d.method)})(W||(e.ShutdownRequest=W={}));var Ne;(function(d){d.method="exit",d.messageDirection=t.MessageDirection.clientToServer,d.type=new t.ProtocolNotificationType0(d.method)})(Ne||(e.ExitNotification=Ne={}));var se;(function(d){d.method="workspace/didChangeConfiguration",d.messageDirection=t.MessageDirection.clientToServer,d.type=new t.ProtocolNotificationType(d.method)})(se||(e.DidChangeConfigurationNotification=se={}));var Oe;(function(d){d.Error=1,d.Warning=2,d.Info=3,d.Log=4,d.Debug=5})(Oe||(e.MessageType=Oe={}));var Le;(function(d){d.method="window/showMessage",d.messageDirection=t.MessageDirection.serverToClient,d.type=new t.ProtocolNotificationType(d.method)})(Le||(e.ShowMessageNotification=Le={}));var Pe;(function(d){d.method="window/showMessageRequest",d.messageDirection=t.MessageDirection.serverToClient,d.type=new t.ProtocolRequestType(d.method)})(Pe||(e.ShowMessageRequest=Pe={}));var Ve;(function(d){d.method="window/logMessage",d.messageDirection=t.MessageDirection.serverToClient,d.type=new t.ProtocolNotificationType(d.method)})(Ve||(e.LogMessageNotification=Ve={}));var We;(function(d){d.method="telemetry/event",d.messageDirection=t.MessageDirection.serverToClient,d.type=new t.ProtocolNotificationType(d.method)})(We||(e.TelemetryEventNotification=We={}));var re;(function(d){d.None=0,d.Full=1,d.Incremental=2})(re||(e.TextDocumentSyncKind=re={}));var xt;(function(d){d.method="textDocument/didOpen",d.messageDirection=t.MessageDirection.clientToServer,d.type=new t.ProtocolNotificationType(d.method)})(xt||(e.DidOpenTextDocumentNotification=xt={}));var Ae;(function(d){function ne(V){let h=V;return h!=null&&typeof h.text=="string"&&h.range!==void 0&&(h.rangeLength===void 0||typeof h.rangeLength=="number")}s(ne,"isIncremental"),d.isIncremental=ne;function ve(V){let h=V;return h!=null&&typeof h.text=="string"&&h.range===void 0&&h.rangeLength===void 0}s(ve,"isFull"),d.isFull=ve})(Ae||(e.TextDocumentContentChangeEvent=Ae={}));var Ct;(function(d){d.method="textDocument/didChange",d.messageDirection=t.MessageDirection.clientToServer,d.type=new t.ProtocolNotificationType(d.method)})(Ct||(e.DidChangeTextDocumentNotification=Ct={}));var Vn;(function(d){d.method="textDocument/didClose",d.messageDirection=t.MessageDirection.clientToServer,d.type=new t.ProtocolNotificationType(d.method)})(Vn||(e.DidCloseTextDocumentNotification=Vn={}));var ti;(function(d){d.method="textDocument/didSave",d.messageDirection=t.MessageDirection.clientToServer,d.type=new t.ProtocolNotificationType(d.method)})(ti||(e.DidSaveTextDocumentNotification=ti={}));var ri;(function(d){d.Manual=1,d.AfterDelay=2,d.FocusOut=3})(ri||(e.TextDocumentSaveReason=ri={}));var ni;(function(d){d.method="textDocument/willSave",d.messageDirection=t.MessageDirection.clientToServer,d.type=new t.ProtocolNotificationType(d.method)})(ni||(e.WillSaveTextDocumentNotification=ni={}));var ai;(function(d){d.method="textDocument/willSaveWaitUntil",d.messageDirection=t.MessageDirection.clientToServer,d.type=new t.ProtocolRequestType(d.method)})(ai||(e.WillSaveTextDocumentWaitUntilRequest=ai={}));var bt;(function(d){d.method="workspace/didChangeWatchedFiles",d.messageDirection=t.MessageDirection.clientToServer,d.type=new t.ProtocolNotificationType(d.method)})(bt||(e.DidChangeWatchedFilesNotification=bt={}));var Hn;(function(d){d.Created=1,d.Changed=2,d.Deleted=3})(Hn||(e.FileChangeType=Hn={}));var ii;(function(d){function ne(ve){let V=ve;return n.objectLiteral(V)&&(r.URI.is(V.baseUri)||r.WorkspaceFolder.is(V.baseUri))&&n.string(V.pattern)}s(ne,"is"),d.is=ne})(ii||(e.RelativePattern=ii={}));var si;(function(d){d.Create=1,d.Change=2,d.Delete=4})(si||(e.WatchKind=si={}));var oi;(function(d){d.method="textDocument/publishDiagnostics",d.messageDirection=t.MessageDirection.serverToClient,d.type=new t.ProtocolNotificationType(d.method)})(oi||(e.PublishDiagnosticsNotification=oi={}));var li;(function(d){d.Invoked=1,d.TriggerCharacter=2,d.TriggerForIncompleteCompletions=3})(li||(e.CompletionTriggerKind=li={}));var Yn;(function(d){d.method="textDocument/completion",d.messageDirection=t.MessageDirection.clientToServer,d.type=new t.ProtocolRequestType(d.method)})(Yn||(e.CompletionRequest=Yn={}));var Xn;(function(d){d.method="completionItem/resolve",d.messageDirection=t.MessageDirection.clientToServer,d.type=new t.ProtocolRequestType(d.method)})(Xn||(e.CompletionResolveRequest=Xn={}));var Mt;(function(d){d.method="textDocument/hover",d.messageDirection=t.MessageDirection.clientToServer,d.type=new t.ProtocolRequestType(d.method)})(Mt||(e.HoverRequest=Mt={}));var Jn;(function(d){d.Invoked=1,d.TriggerCharacter=2,d.ContentChange=3})(Jn||(e.SignatureHelpTriggerKind=Jn={}));var ui;(function(d){d.method="textDocument/signatureHelp",d.messageDirection=t.MessageDirection.clientToServer,d.type=new t.ProtocolRequestType(d.method)})(ui||(e.SignatureHelpRequest=ui={}));var ci;(function(d){d.method="textDocument/definition",d.messageDirection=t.MessageDirection.clientToServer,d.type=new t.ProtocolRequestType(d.method)})(ci||(e.DefinitionRequest=ci={}));var Zn;(function(d){d.method="textDocument/references",d.messageDirection=t.MessageDirection.clientToServer,d.type=new t.ProtocolRequestType(d.method)})(Zn||(e.ReferencesRequest=Zn={}));var Qn;(function(d){d.method="textDocument/documentHighlight",d.messageDirection=t.MessageDirection.clientToServer,d.type=new t.ProtocolRequestType(d.method)})(Qn||(e.DocumentHighlightRequest=Qn={}));var fi;(function(d){d.method="textDocument/documentSymbol",d.messageDirection=t.MessageDirection.clientToServer,d.type=new t.ProtocolRequestType(d.method)})(fi||(e.DocumentSymbolRequest=fi={}));var Hs;(function(d){d.method="textDocument/codeAction",d.messageDirection=t.MessageDirection.clientToServer,d.type=new t.ProtocolRequestType(d.method)})(Hs||(e.CodeActionRequest=Hs={}));var pi;(function(d){d.method="codeAction/resolve",d.messageDirection=t.MessageDirection.clientToServer,d.type=new t.ProtocolRequestType(d.method)})(pi||(e.CodeActionResolveRequest=pi={}));var di;(function(d){d.method="workspace/symbol",d.messageDirection=t.MessageDirection.clientToServer,d.type=new t.ProtocolRequestType(d.method)})(di||(e.WorkspaceSymbolRequest=di={}));var mi;(function(d){d.method="workspaceSymbol/resolve",d.messageDirection=t.MessageDirection.clientToServer,d.type=new t.ProtocolRequestType(d.method)})(mi||(e.WorkspaceSymbolResolveRequest=mi={}));var hi;(function(d){d.method="textDocument/codeLens",d.messageDirection=t.MessageDirection.clientToServer,d.type=new t.ProtocolRequestType(d.method)})(hi||(e.CodeLensRequest=hi={}));var gt;(function(d){d.method="codeLens/resolve",d.messageDirection=t.MessageDirection.clientToServer,d.type=new t.ProtocolRequestType(d.method)})(gt||(e.CodeLensResolveRequest=gt={}));var yi;(function(d){d.method="workspace/codeLens/refresh",d.messageDirection=t.MessageDirection.serverToClient,d.type=new t.ProtocolRequestType0(d.method)})(yi||(e.CodeLensRefreshRequest=yi={}));var gi;(function(d){d.method="textDocument/documentLink",d.messageDirection=t.MessageDirection.clientToServer,d.type=new t.ProtocolRequestType(d.method)})(gi||(e.DocumentLinkRequest=gi={}));var br;(function(d){d.method="documentLink/resolve",d.messageDirection=t.MessageDirection.clientToServer,d.type=new t.ProtocolRequestType(d.method)})(br||(e.DocumentLinkResolveRequest=br={}));var vi;(function(d){d.method="textDocument/formatting",d.messageDirection=t.MessageDirection.clientToServer,d.type=new t.ProtocolRequestType(d.method)})(vi||(e.DocumentFormattingRequest=vi={}));var Ur;(function(d){d.method="textDocument/rangeFormatting",d.messageDirection=t.MessageDirection.clientToServer,d.type=new t.ProtocolRequestType(d.method)})(Ur||(e.DocumentRangeFormattingRequest=Ur={}));var Ti;(function(d){d.method="textDocument/rangesFormatting",d.messageDirection=t.MessageDirection.clientToServer,d.type=new t.ProtocolRequestType(d.method)})(Ti||(e.DocumentRangesFormattingRequest=Ti={}));var Gt;(function(d){d.method="textDocument/onTypeFormatting",d.messageDirection=t.MessageDirection.clientToServer,d.type=new t.ProtocolRequestType(d.method)})(Gt||(e.DocumentOnTypeFormattingRequest=Gt={}));var tr;(function(d){d.Identifier=1})(tr||(e.PrepareSupportDefaultBehavior=tr={}));var $i;(function(d){d.method="textDocument/rename",d.messageDirection=t.MessageDirection.clientToServer,d.type=new t.ProtocolRequestType(d.method)})($i||(e.RenameRequest=$i={}));var Ri;(function(d){d.method="textDocument/prepareRename",d.messageDirection=t.MessageDirection.clientToServer,d.type=new t.ProtocolRequestType(d.method)})(Ri||(e.PrepareRenameRequest=Ri={}));var rr;(function(d){d.method="workspace/executeCommand",d.messageDirection=t.MessageDirection.clientToServer,d.type=new t.ProtocolRequestType(d.method)})(rr||(e.ExecuteCommandRequest=rr={}));var ea;(function(d){d.method="workspace/applyEdit",d.messageDirection=t.MessageDirection.serverToClient,d.type=new t.ProtocolRequestType("workspace/applyEdit")})(ea||(e.ApplyWorkspaceEditRequest=ea={}))}}),uI=H({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/connection.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.createProtocolConnection=void 0;var t=Wa();function r(n,a,i,o){return t.ConnectionStrategy.is(o)&&(o={connectionStrategy:o}),(0,t.createMessageConnection)(n,a,i,o)}s(r,"createProtocolConnection"),e.createProtocolConnection=r}}),cI=H({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/api.js"(e){"use strict";var t=e&&e.__createBinding||(Object.create?(function(i,o,l,u){u===void 0&&(u=l);var c=Object.getOwnPropertyDescriptor(o,l);(!c||("get"in c?!o.__esModule:c.writable||c.configurable))&&(c={enumerable:!0,get:s(function(){return o[l]},"get")}),Object.defineProperty(i,u,c)}):(function(i,o,l,u){u===void 0&&(u=l),i[u]=o[l]})),r=e&&e.__exportStar||function(i,o){for(var l in i)l!=="default"&&!Object.prototype.hasOwnProperty.call(o,l)&&t(o,i,l)};Object.defineProperty(e,"__esModule",{value:!0}),e.LSPErrorCodes=e.createProtocolConnection=void 0,r(Wa(),e),r((Ss(),yp(wl)),e),r(Re(),e),r(lI(),e);var n=uI();Object.defineProperty(e,"createProtocolConnection",{enumerable:!0,get:s(function(){return n.createProtocolConnection},"get")});var a;(function(i){i.lspReservedErrorRangeStart=-32899,i.RequestFailed=-32803,i.ServerCancelled=-32802,i.ContentModified=-32801,i.RequestCancelled=-32800,i.lspReservedErrorRangeEnd=-32800})(a||(e.LSPErrorCodes=a={}))}}),fI=H({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/browser/main.js"(e){"use strict";var t=e&&e.__createBinding||(Object.create?(function(i,o,l,u){u===void 0&&(u=l);var c=Object.getOwnPropertyDescriptor(o,l);(!c||("get"in c?!o.__esModule:c.writable||c.configurable))&&(c={enumerable:!0,get:s(function(){return o[l]},"get")}),Object.defineProperty(i,u,c)}):(function(i,o,l,u){u===void 0&&(u=l),i[u]=o[l]})),r=e&&e.__exportStar||function(i,o){for(var l in i)l!=="default"&&!Object.prototype.hasOwnProperty.call(o,l)&&t(o,i,l)};Object.defineProperty(e,"__esModule",{value:!0}),e.createProtocolConnection=void 0;var n=rh();r(rh(),e),r(cI(),e);function a(i,o,l,u){return(0,n.createMessageConnection)(i,o,l,u)}s(a,"createProtocolConnection"),e.createProtocolConnection=a}}),Lg={};Mr(Lg,{AbstractAstReflection:()=>$p,AbstractCstNode:()=>Am,AbstractLangiumParser:()=>Cm,AbstractParserErrorMessageProvider:()=>AS,AbstractThreadedAsyncParser:()=>zG,AstUtils:()=>Rp,BiMap:()=>Al,Cancellation:()=>pe,CompositeCstNodeImpl:()=>bu,ContextCache:()=>ku,CstNodeBuilder:()=>vS,CstUtils:()=>vp,DEFAULT_TOKENIZE_OPTIONS:()=>Um,DONE_RESULT:()=>Ye,DatatypeSymbol:()=>vl,DefaultAstNodeDescriptionProvider:()=>ZS,DefaultAstNodeLocator:()=>ew,DefaultAsyncParser:()=>vw,DefaultCommentProvider:()=>gw,DefaultConfigurationProvider:()=>tw,DefaultDocumentBuilder:()=>rw,DefaultDocumentValidator:()=>JS,DefaultHydrator:()=>$w,DefaultIndexManager:()=>nw,DefaultJsonSerializer:()=>VS,DefaultLangiumDocumentFactory:()=>GS,DefaultLangiumDocuments:()=>FS,DefaultLangiumProfiler:()=>qG,DefaultLexer:()=>Km,DefaultLexerErrorMessageProvider:()=>iw,DefaultLinker:()=>zS,DefaultNameProvider:()=>jS,DefaultReferenceDescriptionProvider:()=>QS,DefaultReferences:()=>US,DefaultScopeComputation:()=>KS,DefaultScopeProvider:()=>WS,DefaultServiceRegistry:()=>HS,DefaultTokenBuilder:()=>wu,DefaultValueConverter:()=>Pm,DefaultWorkspaceLock:()=>Tw,DefaultWorkspaceManager:()=>aw,Deferred:()=>Tr,Disposable:()=>Rn,DisposableCache:()=>Pu,DocumentCache:()=>qS,DocumentState:()=>J,DocumentValidator:()=>vt,EMPTY_SCOPE:()=>xG,EMPTY_STREAM:()=>La,EmptyFileSystem:()=>Cw,EmptyFileSystemProvider:()=>Ew,ErrorWithLocation:()=>Gl,GrammarAST:()=>Mg,GrammarUtils:()=>Jp,IndentationAwareLexer:()=>UG,IndentationAwareTokenBuilder:()=>Aw,JSDocDocumentationProvider:()=>yw,LangiumCompletionParser:()=>ES,LangiumParser:()=>RS,LangiumParserErrorMessageProvider:()=>bm,LeafCstNodeImpl:()=>gl,LexingMode:()=>Tn,MapScope:()=>DG,Module:()=>Yf,MultiMap:()=>$r,MultiMapScope:()=>BS,OperationCancelled:()=>Vt,ParserWorker:()=>jG,ProfilingTask:()=>_w,Reduction:()=>cs,RefResolving:()=>Qr,RegExpUtils:()=>Qp,RootCstNodeImpl:()=>Em,SimpleCache:()=>Mm,StreamImpl:()=>Wt,StreamScope:()=>qf,TextDocument:()=>$l,TreeStreamImpl:()=>Da,URI:()=>ft,UriTrie:()=>Dm,UriUtils:()=>Je,VALIDATE_EACH_NODE:()=>XS,ValidationCategory:()=>El,ValidationRegistry:()=>YS,ValueConverter:()=>Bt,WorkspaceCache:()=>Gm,assertCondition:()=>Zp,assertUnreachable:()=>Gr,createCompletionParser:()=>wm,createDefaultCoreModule:()=>Xm,createDefaultSharedCoreModule:()=>Jm,createGrammarConfig:()=>gd,createLangiumParser:()=>Im,createParser:()=>_u,delayNextTick:()=>Iu,diagnosticData:()=>vn,eagerLoad:()=>Zm,getDiagnosticRange:()=>zm,indentationBuilderDefaultOptions:()=>Jf,inject:()=>_l,interruptAndCheck:()=>Fe,isAstNode:()=>ke,isAstNodeDescription:()=>Tp,isAstNodeWithComment:()=>Fm,isCompositeCstNode:()=>fr,isIMultiModeLexerDefinition:()=>Du,isJSDoc:()=>qm,isLeafCstNode:()=>Sn,isLinkingError:()=>nn,isMultiReference:()=>Ht,isNamed:()=>xm,isOperationCancelled:()=>Wn,isReference:()=>Xe,isRootCstNode:()=>Nl,isTokenTypeArray:()=>Lu,isTokenTypeDictionary:()=>Cl,loadGrammarFromJson:()=>ze,parseJSDoc:()=>Bm,prepareLangiumParser:()=>Nm,setInterruptionPeriod:()=>km,startCancelableOperation:()=>Nu,stream:()=>le,toDiagnosticData:()=>jm,toDiagnosticSeverity:()=>ls});var vp={};Mr(vp,{DefaultNameRegexp:()=>Wp,RangeComparison:()=>qt,compareRange:()=>Bp,findCommentNode:()=>Vp,findDeclarationNodeAtOffset:()=>rv,findLeafNodeAtOffset:()=>Ml,findLeafNodeBeforeOffset:()=>Hp,flattenCst:()=>tv,getDatatypeNode:()=>ev,getInteriorNodes:()=>iv,getNextNode:()=>nv,getPreviousNode:()=>Xp,getStartlineNode:()=>av,inRange:()=>qp,isChildNode:()=>Kp,isCommentNode:()=>tl,streamCst:()=>Fa,toDocumentSegment:()=>za,tokenToRange:()=>fs});function ke(e){return typeof e=="object"&&e!==null&&typeof e.$type=="string"}s(ke,"isAstNode");function Xe(e){return typeof e=="object"&&e!==null&&typeof e.$refText=="string"&&"ref"in e}s(Xe,"isReference");function Ht(e){return typeof e=="object"&&e!==null&&typeof e.$refText=="string"&&"items"in e}s(Ht,"isMultiReference");function Tp(e){return typeof e=="object"&&e!==null&&typeof e.name=="string"&&typeof e.type=="string"&&typeof e.path=="string"}s(Tp,"isAstNodeDescription");function nn(e){return typeof e=="object"&&e!==null&&typeof e.info=="object"&&typeof e.message=="string"}s(nn,"isLinkingError");var $p=class{static{s(this,"AbstractAstReflection")}constructor(){this.subtypes={},this.allSubtypes={}}getAllTypes(){return Object.keys(this.types)}getReferenceType(e){let t=this.types[e.container.$type];if(!t)throw new Error(`Type ${e.container.$type||"undefined"} not found.`);let r=t.properties[e.property]?.referenceType;if(!r)throw new Error(`Property ${e.property||"undefined"} of type ${e.container.$type} is not a reference.`);return r}getTypeMetaData(e){let t=this.types[e];return t||{name:e,properties:{},superTypes:[]}}isInstance(e,t){return ke(e)&&this.isSubtype(e.$type,t)}isSubtype(e,t){if(e===t)return!0;let r=this.subtypes[e];r||(r=this.subtypes[e]={});let n=r[t];if(n!==void 0)return n;{let a=this.types[e],i=a?a.superTypes.some(o=>this.isSubtype(o,t)):!1;return r[t]=i,i}}getAllSubTypes(e){let t=this.allSubtypes[e];if(t)return t;{let r=this.getAllTypes(),n=[];for(let a of r)this.isSubtype(a,e)&&n.push(a);return this.allSubtypes[e]=n,n}}};function fr(e){return typeof e=="object"&&e!==null&&Array.isArray(e.content)}s(fr,"isCompositeCstNode");function Sn(e){return typeof e=="object"&&e!==null&&typeof e.tokenType=="object"}s(Sn,"isLeafCstNode");function Nl(e){return fr(e)&&typeof e.fullText=="string"}s(Nl,"isRootCstNode");var Wt=class sr{static{s(this,"StreamImpl")}constructor(t,r){this.startFn=t,this.nextFn=r}iterator(){let t={state:this.startFn(),next:s(()=>this.nextFn(t.state),"next"),[Symbol.iterator]:()=>t};return t}[Symbol.iterator](){return this.iterator()}isEmpty(){return!!this.iterator().next().done}count(){let t=this.iterator(),r=0,n=t.next();for(;!n.done;)r++,n=t.next();return r}toArray(){let t=[],r=this.iterator(),n;do n=r.next(),n.value!==void 0&&t.push(n.value);while(!n.done);return t}toSet(){return new Set(this)}toMap(t,r){let n=this.map(a=>[t?t(a):a,r?r(a):a]);return new Map(n)}toString(){return this.join()}concat(t){return new sr(()=>({first:this.startFn(),firstDone:!1,iterator:t[Symbol.iterator]()}),r=>{let n;if(!r.firstDone){do if(n=this.nextFn(r.first),!n.done)return n;while(!n.done);r.firstDone=!0}do if(n=r.iterator.next(),!n.done)return n;while(!n.done);return Ye})}join(t=","){let r=this.iterator(),n="",a,i=!1;do a=r.next(),a.done||(i&&(n+=t),n+=Dg(a.value)),i=!0;while(!a.done);return n}indexOf(t,r=0){let n=this.iterator(),a=0,i=n.next();for(;!i.done;){if(a>=r&&i.value===t)return a;i=n.next(),a++}return-1}every(t){let r=this.iterator(),n=r.next();for(;!n.done;){if(!t(n.value))return!1;n=r.next()}return!0}some(t){let r=this.iterator(),n=r.next();for(;!n.done;){if(t(n.value))return!0;n=r.next()}return!1}forEach(t){let r=this.iterator(),n=0,a=r.next();for(;!a.done;)t(a.value,n),a=r.next(),n++}map(t){return new sr(this.startFn,r=>{let{done:n,value:a}=this.nextFn(r);return n?Ye:{done:!1,value:t(a)}})}filter(t){return new sr(this.startFn,r=>{let n;do if(n=this.nextFn(r),!n.done&&t(n.value))return n;while(!n.done);return Ye})}nonNullable(){return this.filter(t=>t!=null)}reduce(t,r){let n=this.iterator(),a=r,i=n.next();for(;!i.done;)a===void 0?a=i.value:a=t(a,i.value),i=n.next();return a}reduceRight(t,r){return this.recursiveReduce(this.iterator(),t,r)}recursiveReduce(t,r,n){let a=t.next();if(a.done)return n;let i=this.recursiveReduce(t,r,n);return i===void 0?a.value:r(i,a.value)}find(t){let r=this.iterator(),n=r.next();for(;!n.done;){if(t(n.value))return n.value;n=r.next()}}findIndex(t){let r=this.iterator(),n=0,a=r.next();for(;!a.done;){if(t(a.value))return n;a=r.next(),n++}return-1}includes(t){let r=this.iterator(),n=r.next();for(;!n.done;){if(n.value===t)return!0;n=r.next()}return!1}flatMap(t){return new sr(()=>({this:this.startFn()}),r=>{do{if(r.iterator){let i=r.iterator.next();if(i.done)r.iterator=void 0;else return i}let{done:n,value:a}=this.nextFn(r.this);if(!n){let i=t(a);if(us(i))r.iterator=i[Symbol.iterator]();else return{done:!1,value:i}}}while(r.iterator);return Ye})}flat(t){if(t===void 0&&(t=1),t<=0)return this;let r=t>1?this.flat(t-1):this;return new sr(()=>({this:r.startFn()}),n=>{do{if(n.iterator){let o=n.iterator.next();if(o.done)n.iterator=void 0;else return o}let{done:a,value:i}=r.nextFn(n.this);if(!a)if(us(i))n.iterator=i[Symbol.iterator]();else return{done:!1,value:i}}while(n.iterator);return Ye})}head(){let r=this.iterator().next();if(!r.done)return r.value}tail(t=1){return new sr(()=>{let r=this.startFn();for(let n=0;n({size:0,state:this.startFn()}),r=>(r.size++,r.size>t?Ye:this.nextFn(r.state)))}distinct(t){return new sr(()=>({set:new Set,internalState:this.startFn()}),r=>{let n;do if(n=this.nextFn(r.internalState),!n.done){let a=t?t(n.value):n.value;if(!r.set.has(a))return r.set.add(a),n}while(!n.done);return Ye})}exclude(t,r){let n=new Set;for(let a of t){let i=r?r(a):a;n.add(i)}return this.filter(a=>{let i=r?r(a):a;return!n.has(i)})}};function Dg(e){return typeof e=="string"?e:typeof e>"u"?"undefined":typeof e.toString=="function"?e.toString():Object.prototype.toString.call(e)}s(Dg,"toString");function us(e){return!!e&&typeof e[Symbol.iterator]=="function"}s(us,"isIterable");var La=new Wt(()=>{},()=>Ye),Ye=Object.freeze({done:!0,value:void 0});function le(...e){if(e.length===1){let t=e[0];if(t instanceof Wt)return t;if(us(t))return new Wt(()=>t[Symbol.iterator](),r=>r.next());if(typeof t.length=="number")return new Wt(()=>({index:0}),r=>r.index1?new Wt(()=>({collIndex:0,arrIndex:0}),t=>{do{if(t.iterator){let r=t.iterator.next();if(!r.done)return r;t.iterator=void 0}if(t.array){if(t.arrIndex({iterators:r?.includeRoot?[[e][Symbol.iterator]()]:[t(e)[Symbol.iterator]()],pruned:!1}),n=>{for(n.pruned&&(n.iterators.pop(),n.pruned=!1);n.iterators.length>0;){let i=n.iterators[n.iterators.length-1].next();if(i.done)n.iterators.pop();else return n.iterators.push(t(i.value)[Symbol.iterator]()),i}return Ye})}iterator(){let e={state:this.startFn(),next:s(()=>this.nextFn(e.state),"next"),prune:s(()=>{e.state.pruned=!0},"prune"),[Symbol.iterator]:()=>e};return e}},cs;(function(e){function t(i){return i.reduce((o,l)=>o+l,0)}s(t,"sum"),e.sum=t;function r(i){return i.reduce((o,l)=>o*l,0)}s(r,"product"),e.product=r;function n(i){return i.reduce((o,l)=>Math.min(o,l))}s(n,"min"),e.min=n;function a(i){return i.reduce((o,l)=>Math.max(o,l))}s(a,"max"),e.max=a})(cs||(cs={}));var Rp={};Mr(Rp,{assignMandatoryProperties:()=>Ap,copyAstNode:()=>jo,findRootNode:()=>Na,getContainerOfType:()=>wn,getDocument:()=>It,getReferenceNodes:()=>Fo,hasContainerOfType:()=>xg,linkContentToContainer:()=>xa,streamAllContents:()=>Rr,streamAst:()=>Nt,streamContents:()=>Is,streamReferences:()=>Ma});function xa(e,t={}){for(let[r,n]of Object.entries(e))r.startsWith("$")||(Array.isArray(n)?n.forEach((a,i)=>{ke(a)&&(a.$container=e,a.$containerProperty=r,a.$containerIndex=i,t.deep&&xa(a,t))}):ke(n)&&(n.$container=e,n.$containerProperty=r,t.deep&&xa(n,t)))}s(xa,"linkContentToContainer");function wn(e,t){let r=e;for(;r;){if(t(r))return r;r=r.$container}}s(wn,"getContainerOfType");function xg(e,t){let r=e;for(;r;){if(t(r))return!0;r=r.$container}return!1}s(xg,"hasContainerOfType");function It(e){let r=Na(e).$document;if(!r)throw new Error("AST node has no document.");return r}s(It,"getDocument");function Na(e){for(;e.$container;)e=e.$container;return e}s(Na,"findRootNode");function Fo(e){return Xe(e)?e.ref?[e.ref]:[]:Ht(e)?e.items.map(t=>t.ref):[]}s(Fo,"getReferenceNodes");function Is(e,t){if(!e)throw new Error("Node must be an AstNode.");let r=t?.range;return new Wt(()=>({keys:Object.keys(e),keyIndex:0,arrayIndex:0}),n=>{for(;n.keyIndexIs(r,t))}s(Rr,"streamAllContents");function Nt(e,t){if(e){if(t?.range&&!zo(e,t.range))return new Da(e,()=>[])}else throw new Error("Root node must be an AstNode.");return new Da(e,r=>Is(r,t),{includeRoot:!0})}s(Nt,"streamAst");function zo(e,t){if(!t)return!0;let r=e.$cstNode?.range;return r?qp(r,t):!1}s(zo,"isAstNodeInRange");function Ma(e){return new Wt(()=>({keys:Object.keys(e),keyIndex:0,arrayIndex:0}),t=>{for(;t.keyIndexat,AbstractParserRule:()=>Hi,AbstractRule:()=>Aa,AbstractType:()=>ct,Action:()=>Sr,Alternatives:()=>Yi,ArrayLiteral:()=>Uo,ArrayType:()=>Ko,Assignment:()=>wr,BooleanLiteral:()=>Bo,CharacterRange:()=>Ir,Condition:()=>Nr,Conjunction:()=>Xi,CrossReference:()=>Pr,Disjunction:()=>Ji,EndOfFile:()=>qo,Grammar:()=>lr,GrammarImport:()=>Wo,Group:()=>an,InferredType:()=>Vo,InfixRule:()=>Kt,InfixRuleOperatorList:()=>Zi,InfixRuleOperators:()=>Ho,Interface:()=>Ea,Keyword:()=>Ca,LangiumGrammarAstReflection:()=>Up,LangiumGrammarTerminals:()=>pI,NamedArgument:()=>ba,NegatedToken:()=>sn,Negation:()=>Yo,NumberLiteral:()=>Xo,Parameter:()=>_a,ParameterReference:()=>Jo,ParserRule:()=>_t,ReferenceType:()=>Qi,RegexToken:()=>on,ReturnType:()=>Zo,RuleCall:()=>ln,SimpleType:()=>Sa,StringLiteral:()=>Qo,TerminalAlternatives:()=>un,TerminalElement:()=>it,TerminalGroup:()=>cn,TerminalRule:()=>ur,TerminalRuleCall:()=>fn,Type:()=>es,TypeAttribute:()=>pn,TypeDefinition:()=>dn,UnionType:()=>el,UnorderedGroup:()=>ts,UntilToken:()=>mn,ValueLiteral:()=>hn,Wildcard:()=>wa,isAbstractElement:()=>Pl,isAbstractParserRule:()=>In,isAbstractRule:()=>Gg,isAbstractType:()=>Fg,isAction:()=>kr,isAlternatives:()=>kl,isArrayLiteral:()=>zg,isArrayType:()=>Cp,isAssignment:()=>pr,isBooleanLiteral:()=>bp,isCharacterRange:()=>_p,isCondition:()=>jg,isConjunction:()=>Sp,isCrossReference:()=>Nn,isDisjunction:()=>wp,isEndOfFile:()=>Ip,isGrammar:()=>Ug,isGrammarImport:()=>Kg,isGroup:()=>Pn,isInferredType:()=>Ns,isInfixRule:()=>Ga,isInfixRuleOperatorList:()=>Bg,isInfixRuleOperators:()=>qg,isInterface:()=>Np,isKeyword:()=>dr,isNamedArgument:()=>Wg,isNegatedToken:()=>Pp,isNegation:()=>kp,isNumberLiteral:()=>Vg,isParameter:()=>Hg,isParameterReference:()=>Op,isParserRule:()=>Qe,isReferenceType:()=>Lp,isRegexToken:()=>Dp,isReturnType:()=>xp,isRuleCall:()=>mr,isSimpleType:()=>Ol,isStringLiteral:()=>Yg,isTerminalAlternatives:()=>Mp,isTerminalElement:()=>Xg,isTerminalGroup:()=>Gp,isTerminalRule:()=>At,isTerminalRuleCall:()=>Ll,isType:()=>Dl,isTypeAttribute:()=>Jg,isTypeDefinition:()=>Zg,isUnionType:()=>Fp,isUnorderedGroup:()=>xl,isUntilToken:()=>zp,isValueLiteral:()=>Qg,isWildcard:()=>jp,reflection:()=>j});var pI={ID:/\^?[_a-zA-Z][\w_]*/,STRING:/"(\\.|[^"\\])*"|'(\\.|[^'\\])*'/,NUMBER:/NaN|-?((\d*\.\d+|\d+)([Ee][+-]?\d+)?|Infinity)/,RegexLiteral:/\/(?![*+?])(?:[^\r\n\[/\\]|\\.|\[(?:[^\r\n\]\\]|\\.)*\])+\/[a-z]*/,WS:/\s+/,ML_COMMENT:/\/\*[\s\S]*?\*\//,SL_COMMENT:/\/\/[^\n\r]*/},at={$type:"AbstractElement",cardinality:"cardinality"};function Pl(e){return j.isInstance(e,at.$type)}s(Pl,"isAbstractElement");var Hi={$type:"AbstractParserRule"};function In(e){return j.isInstance(e,Hi.$type)}s(In,"isAbstractParserRule");var Aa={$type:"AbstractRule"};function Gg(e){return j.isInstance(e,Aa.$type)}s(Gg,"isAbstractRule");var ct={$type:"AbstractType"};function Fg(e){return j.isInstance(e,ct.$type)}s(Fg,"isAbstractType");var Sr={$type:"Action",cardinality:"cardinality",feature:"feature",inferredType:"inferredType",operator:"operator",type:"type"};function kr(e){return j.isInstance(e,Sr.$type)}s(kr,"isAction");var Yi={$type:"Alternatives",cardinality:"cardinality",elements:"elements"};function kl(e){return j.isInstance(e,Yi.$type)}s(kl,"isAlternatives");var Uo={$type:"ArrayLiteral",elements:"elements"};function zg(e){return j.isInstance(e,Uo.$type)}s(zg,"isArrayLiteral");var Ko={$type:"ArrayType",elementType:"elementType"};function Cp(e){return j.isInstance(e,Ko.$type)}s(Cp,"isArrayType");var wr={$type:"Assignment",cardinality:"cardinality",feature:"feature",operator:"operator",predicate:"predicate",terminal:"terminal"};function pr(e){return j.isInstance(e,wr.$type)}s(pr,"isAssignment");var Bo={$type:"BooleanLiteral",true:"true"};function bp(e){return j.isInstance(e,Bo.$type)}s(bp,"isBooleanLiteral");var Ir={$type:"CharacterRange",cardinality:"cardinality",left:"left",lookahead:"lookahead",parenthesized:"parenthesized",right:"right"};function _p(e){return j.isInstance(e,Ir.$type)}s(_p,"isCharacterRange");var Nr={$type:"Condition"};function jg(e){return j.isInstance(e,Nr.$type)}s(jg,"isCondition");var Xi={$type:"Conjunction",left:"left",right:"right"};function Sp(e){return j.isInstance(e,Xi.$type)}s(Sp,"isConjunction");var Pr={$type:"CrossReference",cardinality:"cardinality",deprecatedSyntax:"deprecatedSyntax",isMulti:"isMulti",terminal:"terminal",type:"type"};function Nn(e){return j.isInstance(e,Pr.$type)}s(Nn,"isCrossReference");var Ji={$type:"Disjunction",left:"left",right:"right"};function wp(e){return j.isInstance(e,Ji.$type)}s(wp,"isDisjunction");var qo={$type:"EndOfFile",cardinality:"cardinality"};function Ip(e){return j.isInstance(e,qo.$type)}s(Ip,"isEndOfFile");var lr={$type:"Grammar",imports:"imports",interfaces:"interfaces",isDeclared:"isDeclared",name:"name",rules:"rules",types:"types"};function Ug(e){return j.isInstance(e,lr.$type)}s(Ug,"isGrammar");var Wo={$type:"GrammarImport",path:"path"};function Kg(e){return j.isInstance(e,Wo.$type)}s(Kg,"isGrammarImport");var an={$type:"Group",cardinality:"cardinality",elements:"elements",guardCondition:"guardCondition",predicate:"predicate"};function Pn(e){return j.isInstance(e,an.$type)}s(Pn,"isGroup");var Vo={$type:"InferredType",name:"name"};function Ns(e){return j.isInstance(e,Vo.$type)}s(Ns,"isInferredType");var Kt={$type:"InfixRule",call:"call",dataType:"dataType",inferredType:"inferredType",name:"name",operators:"operators",parameters:"parameters",returnType:"returnType"};function Ga(e){return j.isInstance(e,Kt.$type)}s(Ga,"isInfixRule");var Zi={$type:"InfixRuleOperatorList",associativity:"associativity",operators:"operators"};function Bg(e){return j.isInstance(e,Zi.$type)}s(Bg,"isInfixRuleOperatorList");var Ho={$type:"InfixRuleOperators",precedences:"precedences"};function qg(e){return j.isInstance(e,Ho.$type)}s(qg,"isInfixRuleOperators");var Ea={$type:"Interface",attributes:"attributes",name:"name",superTypes:"superTypes"};function Np(e){return j.isInstance(e,Ea.$type)}s(Np,"isInterface");var Ca={$type:"Keyword",cardinality:"cardinality",predicate:"predicate",value:"value"};function dr(e){return j.isInstance(e,Ca.$type)}s(dr,"isKeyword");var ba={$type:"NamedArgument",calledByName:"calledByName",parameter:"parameter",value:"value"};function Wg(e){return j.isInstance(e,ba.$type)}s(Wg,"isNamedArgument");var sn={$type:"NegatedToken",cardinality:"cardinality",lookahead:"lookahead",parenthesized:"parenthesized",terminal:"terminal"};function Pp(e){return j.isInstance(e,sn.$type)}s(Pp,"isNegatedToken");var Yo={$type:"Negation",value:"value"};function kp(e){return j.isInstance(e,Yo.$type)}s(kp,"isNegation");var Xo={$type:"NumberLiteral",value:"value"};function Vg(e){return j.isInstance(e,Xo.$type)}s(Vg,"isNumberLiteral");var _a={$type:"Parameter",name:"name"};function Hg(e){return j.isInstance(e,_a.$type)}s(Hg,"isParameter");var Jo={$type:"ParameterReference",parameter:"parameter"};function Op(e){return j.isInstance(e,Jo.$type)}s(Op,"isParameterReference");var _t={$type:"ParserRule",dataType:"dataType",definition:"definition",entry:"entry",fragment:"fragment",inferredType:"inferredType",name:"name",parameters:"parameters",returnType:"returnType"};function Qe(e){return j.isInstance(e,_t.$type)}s(Qe,"isParserRule");var Qi={$type:"ReferenceType",isMulti:"isMulti",referenceType:"referenceType"};function Lp(e){return j.isInstance(e,Qi.$type)}s(Lp,"isReferenceType");var on={$type:"RegexToken",cardinality:"cardinality",lookahead:"lookahead",parenthesized:"parenthesized",regex:"regex"};function Dp(e){return j.isInstance(e,on.$type)}s(Dp,"isRegexToken");var Zo={$type:"ReturnType",name:"name"};function xp(e){return j.isInstance(e,Zo.$type)}s(xp,"isReturnType");var ln={$type:"RuleCall",arguments:"arguments",cardinality:"cardinality",predicate:"predicate",rule:"rule"};function mr(e){return j.isInstance(e,ln.$type)}s(mr,"isRuleCall");var Sa={$type:"SimpleType",primitiveType:"primitiveType",stringType:"stringType",typeRef:"typeRef"};function Ol(e){return j.isInstance(e,Sa.$type)}s(Ol,"isSimpleType");var Qo={$type:"StringLiteral",value:"value"};function Yg(e){return j.isInstance(e,Qo.$type)}s(Yg,"isStringLiteral");var un={$type:"TerminalAlternatives",cardinality:"cardinality",elements:"elements",lookahead:"lookahead",parenthesized:"parenthesized"};function Mp(e){return j.isInstance(e,un.$type)}s(Mp,"isTerminalAlternatives");var it={$type:"TerminalElement",cardinality:"cardinality",lookahead:"lookahead",parenthesized:"parenthesized"};function Xg(e){return j.isInstance(e,it.$type)}s(Xg,"isTerminalElement");var cn={$type:"TerminalGroup",cardinality:"cardinality",elements:"elements",lookahead:"lookahead",parenthesized:"parenthesized"};function Gp(e){return j.isInstance(e,cn.$type)}s(Gp,"isTerminalGroup");var ur={$type:"TerminalRule",definition:"definition",fragment:"fragment",hidden:"hidden",name:"name",type:"type"};function At(e){return j.isInstance(e,ur.$type)}s(At,"isTerminalRule");var fn={$type:"TerminalRuleCall",cardinality:"cardinality",lookahead:"lookahead",parenthesized:"parenthesized",rule:"rule"};function Ll(e){return j.isInstance(e,fn.$type)}s(Ll,"isTerminalRuleCall");var es={$type:"Type",name:"name",type:"type"};function Dl(e){return j.isInstance(e,es.$type)}s(Dl,"isType");var pn={$type:"TypeAttribute",defaultValue:"defaultValue",isOptional:"isOptional",name:"name",type:"type"};function Jg(e){return j.isInstance(e,pn.$type)}s(Jg,"isTypeAttribute");var dn={$type:"TypeDefinition"};function Zg(e){return j.isInstance(e,dn.$type)}s(Zg,"isTypeDefinition");var el={$type:"UnionType",types:"types"};function Fp(e){return j.isInstance(e,el.$type)}s(Fp,"isUnionType");var ts={$type:"UnorderedGroup",cardinality:"cardinality",elements:"elements"};function xl(e){return j.isInstance(e,ts.$type)}s(xl,"isUnorderedGroup");var mn={$type:"UntilToken",cardinality:"cardinality",lookahead:"lookahead",parenthesized:"parenthesized",terminal:"terminal"};function zp(e){return j.isInstance(e,mn.$type)}s(zp,"isUntilToken");var hn={$type:"ValueLiteral"};function Qg(e){return j.isInstance(e,hn.$type)}s(Qg,"isValueLiteral");var wa={$type:"Wildcard",cardinality:"cardinality",lookahead:"lookahead",parenthesized:"parenthesized"};function jp(e){return j.isInstance(e,wa.$type)}s(jp,"isWildcard");var Up=class extends $p{static{s(this,"LangiumGrammarAstReflection")}constructor(){super(...arguments),this.types={AbstractElement:{name:at.$type,properties:{cardinality:{name:at.cardinality}},superTypes:[]},AbstractParserRule:{name:Hi.$type,properties:{},superTypes:[Aa.$type,ct.$type]},AbstractRule:{name:Aa.$type,properties:{},superTypes:[]},AbstractType:{name:ct.$type,properties:{},superTypes:[]},Action:{name:Sr.$type,properties:{cardinality:{name:Sr.cardinality},feature:{name:Sr.feature},inferredType:{name:Sr.inferredType},operator:{name:Sr.operator},type:{name:Sr.type,referenceType:ct.$type}},superTypes:[at.$type]},Alternatives:{name:Yi.$type,properties:{cardinality:{name:Yi.cardinality},elements:{name:Yi.elements,defaultValue:[]}},superTypes:[at.$type]},ArrayLiteral:{name:Uo.$type,properties:{elements:{name:Uo.elements,defaultValue:[]}},superTypes:[hn.$type]},ArrayType:{name:Ko.$type,properties:{elementType:{name:Ko.elementType}},superTypes:[dn.$type]},Assignment:{name:wr.$type,properties:{cardinality:{name:wr.cardinality},feature:{name:wr.feature},operator:{name:wr.operator},predicate:{name:wr.predicate},terminal:{name:wr.terminal}},superTypes:[at.$type]},BooleanLiteral:{name:Bo.$type,properties:{true:{name:Bo.true,defaultValue:!1}},superTypes:[Nr.$type,hn.$type]},CharacterRange:{name:Ir.$type,properties:{cardinality:{name:Ir.cardinality},left:{name:Ir.left},lookahead:{name:Ir.lookahead},parenthesized:{name:Ir.parenthesized,defaultValue:!1},right:{name:Ir.right}},superTypes:[it.$type]},Condition:{name:Nr.$type,properties:{},superTypes:[]},Conjunction:{name:Xi.$type,properties:{left:{name:Xi.left},right:{name:Xi.right}},superTypes:[Nr.$type]},CrossReference:{name:Pr.$type,properties:{cardinality:{name:Pr.cardinality},deprecatedSyntax:{name:Pr.deprecatedSyntax,defaultValue:!1},isMulti:{name:Pr.isMulti,defaultValue:!1},terminal:{name:Pr.terminal},type:{name:Pr.type,referenceType:ct.$type}},superTypes:[at.$type]},Disjunction:{name:Ji.$type,properties:{left:{name:Ji.left},right:{name:Ji.right}},superTypes:[Nr.$type]},EndOfFile:{name:qo.$type,properties:{cardinality:{name:qo.cardinality}},superTypes:[at.$type]},Grammar:{name:lr.$type,properties:{imports:{name:lr.imports,defaultValue:[]},interfaces:{name:lr.interfaces,defaultValue:[]},isDeclared:{name:lr.isDeclared,defaultValue:!1},name:{name:lr.name},rules:{name:lr.rules,defaultValue:[]},types:{name:lr.types,defaultValue:[]}},superTypes:[]},GrammarImport:{name:Wo.$type,properties:{path:{name:Wo.path}},superTypes:[]},Group:{name:an.$type,properties:{cardinality:{name:an.cardinality},elements:{name:an.elements,defaultValue:[]},guardCondition:{name:an.guardCondition},predicate:{name:an.predicate}},superTypes:[at.$type]},InferredType:{name:Vo.$type,properties:{name:{name:Vo.name}},superTypes:[ct.$type]},InfixRule:{name:Kt.$type,properties:{call:{name:Kt.call},dataType:{name:Kt.dataType},inferredType:{name:Kt.inferredType},name:{name:Kt.name},operators:{name:Kt.operators},parameters:{name:Kt.parameters,defaultValue:[]},returnType:{name:Kt.returnType,referenceType:ct.$type}},superTypes:[Hi.$type]},InfixRuleOperatorList:{name:Zi.$type,properties:{associativity:{name:Zi.associativity},operators:{name:Zi.operators,defaultValue:[]}},superTypes:[]},InfixRuleOperators:{name:Ho.$type,properties:{precedences:{name:Ho.precedences,defaultValue:[]}},superTypes:[]},Interface:{name:Ea.$type,properties:{attributes:{name:Ea.attributes,defaultValue:[]},name:{name:Ea.name},superTypes:{name:Ea.superTypes,defaultValue:[],referenceType:ct.$type}},superTypes:[ct.$type]},Keyword:{name:Ca.$type,properties:{cardinality:{name:Ca.cardinality},predicate:{name:Ca.predicate},value:{name:Ca.value}},superTypes:[at.$type]},NamedArgument:{name:ba.$type,properties:{calledByName:{name:ba.calledByName,defaultValue:!1},parameter:{name:ba.parameter,referenceType:_a.$type},value:{name:ba.value}},superTypes:[]},NegatedToken:{name:sn.$type,properties:{cardinality:{name:sn.cardinality},lookahead:{name:sn.lookahead},parenthesized:{name:sn.parenthesized,defaultValue:!1},terminal:{name:sn.terminal}},superTypes:[it.$type]},Negation:{name:Yo.$type,properties:{value:{name:Yo.value}},superTypes:[Nr.$type]},NumberLiteral:{name:Xo.$type,properties:{value:{name:Xo.value}},superTypes:[hn.$type]},Parameter:{name:_a.$type,properties:{name:{name:_a.name}},superTypes:[]},ParameterReference:{name:Jo.$type,properties:{parameter:{name:Jo.parameter,referenceType:_a.$type}},superTypes:[Nr.$type]},ParserRule:{name:_t.$type,properties:{dataType:{name:_t.dataType},definition:{name:_t.definition},entry:{name:_t.entry,defaultValue:!1},fragment:{name:_t.fragment,defaultValue:!1},inferredType:{name:_t.inferredType},name:{name:_t.name},parameters:{name:_t.parameters,defaultValue:[]},returnType:{name:_t.returnType,referenceType:ct.$type}},superTypes:[Hi.$type]},ReferenceType:{name:Qi.$type,properties:{isMulti:{name:Qi.isMulti,defaultValue:!1},referenceType:{name:Qi.referenceType}},superTypes:[dn.$type]},RegexToken:{name:on.$type,properties:{cardinality:{name:on.cardinality},lookahead:{name:on.lookahead},parenthesized:{name:on.parenthesized,defaultValue:!1},regex:{name:on.regex}},superTypes:[it.$type]},ReturnType:{name:Zo.$type,properties:{name:{name:Zo.name}},superTypes:[]},RuleCall:{name:ln.$type,properties:{arguments:{name:ln.arguments,defaultValue:[]},cardinality:{name:ln.cardinality},predicate:{name:ln.predicate},rule:{name:ln.rule,referenceType:Aa.$type}},superTypes:[at.$type]},SimpleType:{name:Sa.$type,properties:{primitiveType:{name:Sa.primitiveType},stringType:{name:Sa.stringType},typeRef:{name:Sa.typeRef,referenceType:ct.$type}},superTypes:[dn.$type]},StringLiteral:{name:Qo.$type,properties:{value:{name:Qo.value}},superTypes:[hn.$type]},TerminalAlternatives:{name:un.$type,properties:{cardinality:{name:un.cardinality},elements:{name:un.elements,defaultValue:[]},lookahead:{name:un.lookahead},parenthesized:{name:un.parenthesized,defaultValue:!1}},superTypes:[it.$type]},TerminalElement:{name:it.$type,properties:{cardinality:{name:it.cardinality},lookahead:{name:it.lookahead},parenthesized:{name:it.parenthesized,defaultValue:!1}},superTypes:[at.$type]},TerminalGroup:{name:cn.$type,properties:{cardinality:{name:cn.cardinality},elements:{name:cn.elements,defaultValue:[]},lookahead:{name:cn.lookahead},parenthesized:{name:cn.parenthesized,defaultValue:!1}},superTypes:[it.$type]},TerminalRule:{name:ur.$type,properties:{definition:{name:ur.definition},fragment:{name:ur.fragment,defaultValue:!1},hidden:{name:ur.hidden,defaultValue:!1},name:{name:ur.name},type:{name:ur.type}},superTypes:[Aa.$type]},TerminalRuleCall:{name:fn.$type,properties:{cardinality:{name:fn.cardinality},lookahead:{name:fn.lookahead},parenthesized:{name:fn.parenthesized,defaultValue:!1},rule:{name:fn.rule,referenceType:ur.$type}},superTypes:[it.$type]},Type:{name:es.$type,properties:{name:{name:es.name},type:{name:es.type}},superTypes:[ct.$type]},TypeAttribute:{name:pn.$type,properties:{defaultValue:{name:pn.defaultValue},isOptional:{name:pn.isOptional,defaultValue:!1},name:{name:pn.name},type:{name:pn.type}},superTypes:[]},TypeDefinition:{name:dn.$type,properties:{},superTypes:[]},UnionType:{name:el.$type,properties:{types:{name:el.types,defaultValue:[]}},superTypes:[dn.$type]},UnorderedGroup:{name:ts.$type,properties:{cardinality:{name:ts.cardinality},elements:{name:ts.elements,defaultValue:[]}},superTypes:[at.$type]},UntilToken:{name:mn.$type,properties:{cardinality:{name:mn.cardinality},lookahead:{name:mn.lookahead},parenthesized:{name:mn.parenthesized,defaultValue:!1},terminal:{name:mn.terminal}},superTypes:[it.$type]},ValueLiteral:{name:hn.$type,properties:{},superTypes:[]},Wildcard:{name:wa.$type,properties:{cardinality:{name:wa.cardinality},lookahead:{name:wa.lookahead},parenthesized:{name:wa.parenthesized,defaultValue:!1}},superTypes:[it.$type]}}}},j=new Up;function ev(e){let t=e,r=!1;for(;t;){let n=wn(t.grammarSource,Qe);if(n&&n.dataType)t=t.container,r=!0;else return r?t:void 0}}s(ev,"getDatatypeNode");function Fa(e){return new Da(e,t=>fr(t)?t.content:[],{includeRoot:!0})}s(Fa,"streamCst");function tv(e){return Fa(e).filter(Sn)}s(tv,"flattenCst");function Kp(e,t){for(;e.container;)if(e=e.container,e===t)return!0;return!1}s(Kp,"isChildNode");function fs(e){return{start:{character:e.startColumn-1,line:e.startLine-1},end:{character:e.endColumn,line:e.endLine-1}}}s(fs,"tokenToRange");function za(e){if(!e)return;let{offset:t,end:r,range:n}=e;return{range:n,offset:t,end:r,length:r-t}}s(za,"toDocumentSegment");var qt;(function(e){e[e.Before=0]="Before",e[e.After=1]="After",e[e.OverlapFront=2]="OverlapFront",e[e.OverlapBack=3]="OverlapBack",e[e.Inside=4]="Inside",e[e.Outside=5]="Outside"})(qt||(qt={}));function Bp(e,t){if(e.end.linet.end.line||e.start.line===t.end.line&&e.start.character>=t.end.character)return qt.After;let r=e.start.line>t.start.line||e.start.line===t.start.line&&e.start.character>=t.start.character,n=e.end.lineqt.After}s(qp,"inRange");var Wp=/^[\w\p{L}]$/u;function rv(e,t,r=Wp){if(e){if(t>0){let n=t-e.offset,a=e.text.charAt(n);r.test(a)||t--}return Ml(e,t)}}s(rv,"findDeclarationNodeAtOffset");function Vp(e,t){if(e){let r=Xp(e,!0);if(r&&tl(r,t))return r;if(Nl(e)){let n=e.content.findIndex(a=>!a.hidden);for(let a=n-1;a>=0;a--){let i=e.content[a];if(tl(i,t))return i}}}}s(Vp,"findCommentNode");function tl(e,t){return Sn(e)&&t.includes(e.tokenType.name)}s(tl,"isCommentNode");function Ml(e,t){if(Sn(e))return e;if(fr(e)){let r=Yp(e,t,!1);if(r)return Ml(r,t)}}s(Ml,"findLeafNodeAtOffset");function Hp(e,t){if(Sn(e))return e;if(fr(e)){let r=Yp(e,t,!0);if(r)return Hp(r,t)}}s(Hp,"findLeafNodeBeforeOffset");function Yp(e,t,r){let n=0,a=e.content.length-1,i;for(;n<=a;){let o=Math.floor((n+a)/2),l=e.content[o];if(l.offset<=t&&l.end>t)return l;l.end<=t?(i=r?l:void 0,n=o+1):a=o-1}return i}s(Yp,"binarySearch");function Xp(e,t=!0){for(;e.container;){let r=e.container,n=r.content.indexOf(e);for(;n>0;){n--;let a=r.content[n];if(t||!a.hidden)return a}e=r}}s(Xp,"getPreviousNode");function nv(e,t=!0){for(;e.container;){let r=e.container,n=r.content.indexOf(e),a=r.content.length-1;for(;ncd,findNameAssignment:()=>ql,findNodeForKeyword:()=>ud,findNodeForProperty:()=>Ul,findNodesForKeyword:()=>dv,findNodesForKeywordInternal:()=>Bl,findNodesForProperty:()=>ld,getActionAtElement:()=>pd,getActionType:()=>md,getAllReachableRules:()=>jl,getAllRulesUsedForCrossReferences:()=>pv,getCrossReferenceTerminal:()=>sd,getEntryRule:()=>nd,getExplicitRuleType:()=>ks,getHiddenRules:()=>ad,getRuleType:()=>hd,getRuleTypeName:()=>vv,getTypeName:()=>An,isArrayCardinality:()=>hv,isArrayOperator:()=>yv,isCommentTerminal:()=>od,isDataType:()=>gv,isDataTypeRule:()=>Ps,isOptionalCardinality:()=>mv,terminalRegex:()=>Os});var Gl=class extends Error{static{s(this,"ErrorWithLocation")}constructor(e,t){super(e?`${t} at ${e.range.start.line}:${e.range.start.character}`:t)}};function Gr(e,t="Error: Got unexpected value."){throw new Error(t)}s(Gr,"assertUnreachable");function Zp(e,t="Error: Condition is violated."){if(!e)throw new Error(t)}s(Zp,"assertCondition");var Qp={};Mr(Qp,{NEWLINE_REGEXP:()=>lv,escapeRegExp:()=>Va,getTerminalParts:()=>cv,isMultilineComment:()=>ed,isWhitespace:()=>zl,partialMatches:()=>td,partialRegExp:()=>rd,whitespaceCharacters:()=>fv});function K(e){return e.charCodeAt(0)}s(K,"cc");function Ao(e,t){Array.isArray(e)?e.forEach(function(r){t.push(r)}):t.push(e)}s(Ao,"insertToSet");function fa(e,t){if(e[t]===!0)throw"duplicate flag "+t;let r=e[t];e[t]=!0}s(fa,"addFlag");function Xr(e){if(e===void 0)throw Error("Internal Error - Should never get here!");return!0}s(Xr,"ASSERT_EXISTS");function ji(){throw Error("Internal Error - Should never get here!")}s(ji,"ASSERT_NEVER_REACH_HERE");function yf(e){return e.type==="Character"}s(yf,"isCharacter");var rl=[];for(let e=K("0");e<=K("9");e++)rl.push(e);var nl=[K("_")].concat(rl);for(let e=K("a");e<=K("z");e++)nl.push(e);for(let e=K("A");e<=K("Z");e++)nl.push(e);var nh=[K(" "),K("\f"),K(` +`),K("\r"),K(" "),K("\v"),K(" "),K("\xA0"),K("\u1680"),K("\u2000"),K("\u2001"),K("\u2002"),K("\u2003"),K("\u2004"),K("\u2005"),K("\u2006"),K("\u2007"),K("\u2008"),K("\u2009"),K("\u200A"),K("\u2028"),K("\u2029"),K("\u202F"),K("\u205F"),K("\u3000"),K("\uFEFF")],dI=/[0-9a-fA-F]/,Ys=/[0-9]/,mI=/[1-9]/,ov=class{static{s(this,"RegExpParser")}constructor(){this.idx=0,this.input="",this.groupIdx=0}saveState(){return{idx:this.idx,input:this.input,groupIdx:this.groupIdx}}restoreState(e){this.idx=e.idx,this.input=e.input,this.groupIdx=e.groupIdx}pattern(e){this.idx=0,this.input=e,this.groupIdx=0,this.consumeChar("/");let t=this.disjunction();this.consumeChar("/");let r={type:"Flags",loc:{begin:this.idx,end:e.length},global:!1,ignoreCase:!1,multiLine:!1,unicode:!1,sticky:!1};for(;this.isRegExpFlag();)switch(this.popChar()){case"g":fa(r,"global");break;case"i":fa(r,"ignoreCase");break;case"m":fa(r,"multiLine");break;case"u":fa(r,"unicode");break;case"y":fa(r,"sticky");break}if(this.idx!==this.input.length)throw Error("Redundant input: "+this.input.substring(this.idx));return{type:"Pattern",flags:r,value:t,loc:this.loc(0)}}disjunction(){let e=[],t=this.idx;for(e.push(this.alternative());this.peekChar()==="|";)this.consumeChar("|"),e.push(this.alternative());return{type:"Disjunction",value:e,loc:this.loc(t)}}alternative(){let e=[],t=this.idx;for(;this.isTerm();)e.push(this.term());return{type:"Alternative",value:e,loc:this.loc(t)}}term(){return this.isAssertion()?this.assertion():this.atom()}assertion(){let e=this.idx;switch(this.popChar()){case"^":return{type:"StartAnchor",loc:this.loc(e)};case"$":return{type:"EndAnchor",loc:this.loc(e)};case"\\":switch(this.popChar()){case"b":return{type:"WordBoundary",loc:this.loc(e)};case"B":return{type:"NonWordBoundary",loc:this.loc(e)}}throw Error("Invalid Assertion Escape");case"(":this.consumeChar("?");let t;switch(this.popChar()){case"=":t="Lookahead";break;case"!":t="NegativeLookahead";break;case"<":{switch(this.popChar()){case"=":t="Lookbehind";break;case"!":t="NegativeLookbehind"}break}}Xr(t);let r=this.disjunction();return this.consumeChar(")"),{type:t,value:r,loc:this.loc(e)}}return ji()}quantifier(e=!1){let t,r=this.idx;switch(this.popChar()){case"*":t={atLeast:0,atMost:1/0};break;case"+":t={atLeast:1,atMost:1/0};break;case"?":t={atLeast:0,atMost:1};break;case"{":let n=this.integerIncludingZero();switch(this.popChar()){case"}":t={atLeast:n,atMost:n};break;case",":let a;this.isDigit()?(a=this.integerIncludingZero(),t={atLeast:n,atMost:a}):t={atLeast:n,atMost:1/0},this.consumeChar("}");break}if(e===!0&&t===void 0)return;Xr(t);break}if(!(e===!0&&t===void 0)&&Xr(t))return this.peekChar(0)==="?"?(this.consumeChar("?"),t.greedy=!1):t.greedy=!0,t.type="Quantifier",t.loc=this.loc(r),t}atom(){let e,t=this.idx;switch(this.peekChar()){case".":e=this.dotAll();break;case"\\":e=this.atomEscape();break;case"[":e=this.characterClass();break;case"(":e=this.group();break}return e===void 0&&this.isPatternCharacter()&&(e=this.patternCharacter()),Xr(e)?(e.loc=this.loc(t),this.isQuantifier()&&(e.quantifier=this.quantifier()),e):ji()}dotAll(){return this.consumeChar("."),{type:"Set",complement:!0,value:[K(` +`),K("\r"),K("\u2028"),K("\u2029")]}}atomEscape(){switch(this.consumeChar("\\"),this.peekChar()){case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":return this.decimalEscapeAtom();case"d":case"D":case"s":case"S":case"w":case"W":return this.characterClassEscape();case"f":case"n":case"r":case"t":case"v":return this.controlEscapeAtom();case"c":return this.controlLetterEscapeAtom();case"0":return this.nulCharacterAtom();case"x":return this.hexEscapeSequenceAtom();case"u":return this.regExpUnicodeEscapeSequenceAtom();default:return this.identityEscapeAtom()}}decimalEscapeAtom(){return{type:"GroupBackReference",value:this.positiveInteger()}}characterClassEscape(){let e,t=!1;switch(this.popChar()){case"d":e=rl;break;case"D":e=rl,t=!0;break;case"s":e=nh;break;case"S":e=nh,t=!0;break;case"w":e=nl;break;case"W":e=nl,t=!0;break}return Xr(e)?{type:"Set",value:e,complement:t}:ji()}controlEscapeAtom(){let e;switch(this.popChar()){case"f":e=K("\f");break;case"n":e=K(` +`);break;case"r":e=K("\r");break;case"t":e=K(" ");break;case"v":e=K("\v");break}return Xr(e)?{type:"Character",value:e}:ji()}controlLetterEscapeAtom(){this.consumeChar("c");let e=this.popChar();if(/[a-zA-Z]/.test(e)===!1)throw Error("Invalid ");return{type:"Character",value:e.toUpperCase().charCodeAt(0)-64}}nulCharacterAtom(){return this.consumeChar("0"),{type:"Character",value:K("\0")}}hexEscapeSequenceAtom(){return this.consumeChar("x"),this.parseHexDigits(2)}regExpUnicodeEscapeSequenceAtom(){return this.consumeChar("u"),this.parseHexDigits(4)}identityEscapeAtom(){let e=this.popChar();return{type:"Character",value:K(e)}}classPatternCharacterAtom(){switch(this.peekChar()){case` +`:case"\r":case"\u2028":case"\u2029":case"\\":case"]":throw Error("TBD");default:let e=this.popChar();return{type:"Character",value:K(e)}}}characterClass(){let e=[],t=!1;for(this.consumeChar("["),this.peekChar(0)==="^"&&(this.consumeChar("^"),t=!0);this.isClassAtom();){let r=this.classAtom(),n=r.type==="Character";if(yf(r)&&this.isRangeDash()){this.consumeChar("-");let a=this.classAtom(),i=a.type==="Character";if(yf(a)){if(a.value=this.input.length)throw Error("Unexpected end of input");this.idx++}loc(e){return{begin:e,end:this.idx}}},Fl=class{static{s(this,"BaseRegExpVisitor")}visitChildren(e){for(let t in e){let r=e[t];e.hasOwnProperty(t)&&(r.type!==void 0?this.visit(r):Array.isArray(r)&&r.forEach(n=>{this.visit(n)},this))}}visit(e){switch(e.type){case"Pattern":this.visitPattern(e);break;case"Flags":this.visitFlags(e);break;case"Disjunction":this.visitDisjunction(e);break;case"Alternative":this.visitAlternative(e);break;case"StartAnchor":this.visitStartAnchor(e);break;case"EndAnchor":this.visitEndAnchor(e);break;case"WordBoundary":this.visitWordBoundary(e);break;case"NonWordBoundary":this.visitNonWordBoundary(e);break;case"Lookahead":this.visitLookahead(e);break;case"NegativeLookahead":this.visitNegativeLookahead(e);break;case"Lookbehind":this.visitLookbehind(e);break;case"NegativeLookbehind":this.visitNegativeLookbehind(e);break;case"Character":this.visitCharacter(e);break;case"Set":this.visitSet(e);break;case"Group":this.visitGroup(e);break;case"GroupBackReference":this.visitGroupBackReference(e);break;case"Quantifier":this.visitQuantifier(e);break}this.visitChildren(e)}visitPattern(e){}visitFlags(e){}visitDisjunction(e){}visitAlternative(e){}visitStartAnchor(e){}visitEndAnchor(e){}visitWordBoundary(e){}visitNonWordBoundary(e){}visitLookahead(e){}visitNegativeLookahead(e){}visitLookbehind(e){}visitNegativeLookbehind(e){}visitCharacter(e){}visitSet(e){}visitGroup(e){}visitGroupBackReference(e){}visitQuantifier(e){}},lv=/\r?\n/gm,uv=new ov,hI=class extends Fl{static{s(this,"TerminalRegExpVisitor")}constructor(){super(...arguments),this.isStarting=!0,this.endRegexpStack=[],this.multiline=!1}get endRegex(){return this.endRegexpStack.join("")}reset(e){this.multiline=!1,this.regex=e,this.startRegexp="",this.isStarting=!0,this.endRegexpStack=[]}visitGroup(e){e.quantifier&&(this.isStarting=!1,this.endRegexpStack=[])}visitCharacter(e){let t=String.fromCharCode(e.value);if(!this.multiline&&t===` +`&&(this.multiline=!0),e.quantifier)this.isStarting=!1,this.endRegexpStack=[];else{let r=Va(t);this.endRegexpStack.push(r),this.isStarting&&(this.startRegexp+=r)}}visitSet(e){if(!this.multiline){let t=this.regex.substring(e.loc.begin,e.loc.end),r=new RegExp(t);this.multiline=!!` +`.match(r)}if(e.quantifier)this.isStarting=!1,this.endRegexpStack=[];else{let t=this.regex.substring(e.loc.begin,e.loc.end);this.endRegexpStack.push(t),this.isStarting&&(this.startRegexp+=t)}}visitChildren(e){e.type==="Group"&&e.quantifier||super.visitChildren(e)}},yn=new hI;function cv(e){try{typeof e!="string"&&(e=e.source),e=`/${e}/`;let t=uv.pattern(e),r=[];for(let n of t.value.value)yn.reset(e),yn.visit(n),r.push({start:yn.startRegexp,end:yn.endRegex});return r}catch{return[]}}s(cv,"getTerminalParts");function ed(e){try{return typeof e=="string"&&(e=new RegExp(e)),e=e.toString(),yn.reset(e),yn.visit(uv.pattern(e)),yn.multiline}catch{return!1}}s(ed,"isMultilineComment");var fv=`\f +\r \v \xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u2028\u2029\u202F\u205F\u3000\uFEFF`.split("");function zl(e){let t=typeof e=="string"?new RegExp(e):e;return fv.some(r=>t.test(r))}s(zl,"isWhitespace");function Va(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}s(Va,"escapeRegExp");function td(e,t){let r=rd(e),n=t.match(r);return!!n&&n[0].length>0}s(td,"partialMatches");function rd(e){typeof e=="string"&&(e=new RegExp(e));let t=e,r=e.source,n=0;function a(){let i="",o;function l(c){i+=r.substr(n,c),n+=c}s(l,"appendRaw");function u(c){i+="(?:"+r.substr(n,c)+"|$)",n+=c}for(s(u,"appendOptional");n",n)-n+1);break;default:u(2);break}break;case"[":o=/\[(?:\\.|.)*?\]/g,o.lastIndex=n,o=o.exec(r)||[],u(o[0].length);break;case"|":case"^":case"$":case"*":case"+":case"?":l(1);break;case"{":o=/\{\d+,?\d*\}/g,o.lastIndex=n,o=o.exec(r),o?l(o[0].length):u(1);break;case"(":if(r[n+1]==="?")switch(r[n+2]){case":":i+="(?:",n+=3,i+=a()+"|$)";break;case"=":i+="(?=",n+=3,i+=a()+")";break;case"!":o=n,n+=3,a(),i+=r.substr(o,n-o);break;case"<":switch(r[n+3]){case"=":case"!":o=n,n+=4,a(),i+=r.substr(o,n-o);break;default:l(r.indexOf(">",n)-n+1),i+=a()+"|$)";break}break}else l(1),i+=a()+"|$)";break;case")":return++n,i;default:u(1);break}return i}return s(a,"process"),new RegExp(a(),e.flags)}s(rd,"partialRegExp");function nd(e){return e.rules.find(t=>Qe(t)&&t.entry)}s(nd,"getEntryRule");function ad(e){return e.rules.filter(t=>At(t)&&t.hidden)}s(ad,"getHiddenRules");function jl(e,t){let r=new Set,n=nd(e);if(!n)return new Set(e.rules);let a=[n].concat(ad(e));for(let o of a)id(o,r,t);let i=new Set;for(let o of e.rules)(r.has(o.name)||At(o)&&o.hidden)&&i.add(o);return i}s(jl,"getAllReachableRules");function id(e,t,r){t.add(e.name),Rr(e).forEach(n=>{if(mr(n)||r&&Ll(n)){let a=n.rule.ref;a&&!t.has(a.name)&&id(a,t,r)}})}s(id,"ruleDfs");function pv(e){let t=new Set;return Rr(e).forEach(r=>{Nn(r)&&(Qe(r.type.ref)&&t.add(r.type.ref),Ns(r.type.ref)&&Qe(r.type.ref.$container)&&t.add(r.type.ref.$container))}),t}s(pv,"getAllRulesUsedForCrossReferences");function sd(e){if(e.terminal)return e.terminal;if(e.type.ref)return ql(e.type.ref)?.terminal}s(sd,"getCrossReferenceTerminal");function od(e){return e.hidden&&!zl(Os(e))}s(od,"isCommentTerminal");function ld(e,t){return!e||!t?[]:Kl(e,t,e.astNode,!0)}s(ld,"findNodesForProperty");function Ul(e,t,r){if(!e||!t)return;let n=Kl(e,t,e.astNode,!0);if(n.length!==0)return r!==void 0?r=Math.max(0,Math.min(r,n.length-1)):r=0,n[r]}s(Ul,"findNodeForProperty");function Kl(e,t,r,n){if(!n){let a=wn(e.grammarSource,pr);if(a&&a.feature===t)return[e]}return fr(e)&&e.astNode===r?e.content.flatMap(a=>Kl(a,t,r,!1)):[]}s(Kl,"findNodesForPropertyInternal");function dv(e,t){return e?Bl(e,t,e?.astNode):[]}s(dv,"findNodesForKeyword");function ud(e,t,r){if(!e)return;let n=Bl(e,t,e?.astNode);if(n.length!==0)return r!==void 0?r=Math.max(0,Math.min(r,n.length-1)):r=0,n[r]}s(ud,"findNodeForKeyword");function Bl(e,t,r){if(e.astNode!==r)return[];if(dr(e.grammarSource)&&e.grammarSource.value===t)return[e];let n=Fa(e).iterator(),a,i=[];do if(a=n.next(),!a.done){let o=a.value;o.astNode===r?dr(o.grammarSource)&&o.grammarSource.value===t&&i.push(o):n.prune()}while(!a.done);return i}s(Bl,"findNodesForKeywordInternal");function cd(e){let t=e.astNode;for(;t===e.container?.astNode;){let r=wn(e.grammarSource,pr);if(r)return r;e=e.container}}s(cd,"findAssignment");function ql(e){let t=e;return Ns(t)&&(kr(t.$container)?t=t.$container.$container:In(t.$container)?t=t.$container:Gr(t.$container)),fd(e,t,new Map)}s(ql,"findNameAssignment");function fd(e,t,r){function n(a,i){let o;return wn(a,pr)||(o=fd(i,i,r)),r.set(e,o),o}if(s(n,"go"),r.has(e))return r.get(e);r.set(e,void 0);for(let a of Rr(t)){if(pr(a)&&a.feature.toLowerCase()==="name")return r.set(e,a),a;if(mr(a)&&Qe(a.rule.ref))return n(a,a.rule.ref);if(Ol(a)&&a.typeRef?.ref)return n(a,a.typeRef.ref)}}s(fd,"findNameAssignmentInternal");function pd(e){let t=e.$container;if(Pn(t)){let r=t.elements,n=r.indexOf(e);for(let a=n-1;a>=0;a--){let i=r[a];if(kr(i))return i;{let o=Rr(r[a]).find(kr);if(o)return o}}}if(Pl(t))return pd(t)}s(pd,"getActionAtElement");function mv(e,t){return e==="?"||e==="*"||Pn(t)&&!!t.guardCondition}s(mv,"isOptionalCardinality");function hv(e){return e==="*"||e==="+"}s(hv,"isArrayCardinality");function yv(e){return e==="+="}s(yv,"isArrayOperator");function Ps(e){return dd(e,new Set)}s(Ps,"isDataTypeRule");function dd(e,t){if(t.has(e))return!0;t.add(e);for(let r of Rr(e))if(mr(r)){if(!r.rule.ref||Qe(r.rule.ref)&&!dd(r.rule.ref,t)||Ga(r.rule.ref))return!1}else{if(pr(r))return!1;if(kr(r))return!1}return!!e.definition}s(dd,"isDataTypeRuleInternal");function gv(e){return al(e.type,new Set)}s(gv,"isDataType");function al(e,t){if(t.has(e))return!0;if(t.add(e),Cp(e))return!1;if(Lp(e))return!1;if(Fp(e))return e.types.every(r=>al(r,t));if(Ol(e)){if(e.primitiveType!==void 0)return!0;if(e.stringType!==void 0)return!0;if(e.typeRef!==void 0){let r=e.typeRef.ref;return Dl(r)?al(r.type,t):!1}else return!1}else return!1}s(al,"isDataTypeInternal");function ks(e){if(!At(e)){if(e.inferredType)return e.inferredType.name;if(e.dataType)return e.dataType;if(e.returnType){let t=e.returnType.ref;if(t)return t.name}}}s(ks,"getExplicitRuleType");function An(e){if(In(e))return Qe(e)&&Ps(e)?e.name:ks(e)??e.name;if(Np(e)||Dl(e)||xp(e))return e.name;if(kr(e)){let t=md(e);if(t)return t}else if(Ns(e))return e.name;throw new Error("Cannot get name of Unknown Type")}s(An,"getTypeName");function md(e){if(e.inferredType)return e.inferredType.name;if(e.type?.ref)return An(e.type.ref)}s(md,"getActionType");function vv(e){return At(e)?e.type?.name??"string":Qe(e)&&Ps(e)?e.name:ks(e)??e.name}s(vv,"getRuleTypeName");function hd(e){return At(e)?e.type?.name??"string":ks(e)??e.name}s(hd,"getRuleType");function Os(e){let t={s:!1,i:!1,u:!1},r=kn(e.definition,t),n=Object.entries(t).filter(([,a])=>a).map(([a])=>a).join("");return new RegExp(r,n)}s(Os,"terminalRegex");var yd=/[\s\S]/.source;function kn(e,t){if(Mp(e))return Tv(e);if(Gp(e))return $v(e);if(_p(e))return Ev(e);if(Ll(e)){let r=e.rule.ref;if(!r)throw new Error("Missing rule reference.");return Yt(kn(r.definition),{cardinality:e.cardinality,lookahead:e.lookahead,parenthesized:e.parenthesized})}else{if(Pp(e))return Av(e);if(zp(e))return Rv(e);if(Dp(e)){let r=e.regex.lastIndexOf("/"),n=e.regex.substring(1,r),a=e.regex.substring(r+1);return t&&(t.i=a.includes("i"),t.s=a.includes("s"),t.u=a.includes("u")),Yt(n,{cardinality:e.cardinality,lookahead:e.lookahead,parenthesized:e.parenthesized,wrap:!1})}else{if(jp(e))return Yt(yd,{cardinality:e.cardinality,lookahead:e.lookahead,parenthesized:e.parenthesized});throw new Error(`Invalid terminal element: ${e?.$type}, ${e?.$cstNode?.text}`)}}}s(kn,"abstractElementToRegex");function Tv(e){return Yt(e.elements.map(t=>kn(t)).join("|"),{cardinality:e.cardinality,lookahead:e.lookahead,parenthesized:e.parenthesized,wrap:!1})}s(Tv,"terminalAlternativesToRegex");function $v(e){return Yt(e.elements.map(t=>kn(t)).join(""),{cardinality:e.cardinality,lookahead:e.lookahead,parenthesized:e.parenthesized,wrap:!1})}s($v,"terminalGroupToRegex");function Rv(e){return Yt(`${yd}*?${kn(e.terminal)}`,{cardinality:e.cardinality,lookahead:e.lookahead,parenthesized:e.parenthesized})}s(Rv,"untilTokenToRegex");function Av(e){return Yt(`(?!${kn(e.terminal)})${yd}*?`,{cardinality:e.cardinality,lookahead:e.lookahead,parenthesized:e.parenthesized})}s(Av,"negateTokenToRegex");function Ev(e){return e.right?Yt(`[${Eo(e.left)}-${Eo(e.right)}]`,{cardinality:e.cardinality,lookahead:e.lookahead,parenthesized:e.parenthesized,wrap:!1}):Yt(Eo(e.left),{cardinality:e.cardinality,lookahead:e.lookahead,parenthesized:e.parenthesized,wrap:!1})}s(Ev,"characterRangeToRegex");function Eo(e){return Va(e.value)}s(Eo,"keywordToRegex");function Yt(e,t){return(t.parenthesized||t.lookahead||t.wrap!==!1)&&(e=`(${t.lookahead??(t.parenthesized?"":"?:")}${e})`),t.cardinality?`${e}${t.cardinality}`:e}s(Yt,"withCardinality");function gd(e){let t=[],r=e.Grammar;for(let n of r.rules)At(n)&&od(n)&&ed(Os(n))&&t.push(n.name);return{multilineCommentRules:t,nameRegexp:Wp}}s(gd,"createGrammarConfig");var yI=typeof global=="object"&&global&&global.Object===Object&&global,Cv=yI,gI=typeof self=="object"&&self&&self.Object===Object&&self,vI=Cv||gI||Function("return this")(),Jt=vI,TI=Jt.Symbol,$t=TI,bv=Object.prototype,$I=bv.hasOwnProperty,RI=bv.toString,Ei=$t?$t.toStringTag:void 0;function _v(e){var t=$I.call(e,Ei),r=e[Ei];try{e[Ei]=void 0;var n=!0}catch{}var a=RI.call(e);return n&&(t?e[Ei]=r:delete e[Ei]),a}s(_v,"getRawTag");var AI=_v,EI=Object.prototype,CI=EI.toString;function Sv(e){return CI.call(e)}s(Sv,"objectToString");var bI=Sv,_I="[object Null]",SI="[object Undefined]",ah=$t?$t.toStringTag:void 0;function wv(e){return e==null?e===void 0?SI:_I:ah&&ah in Object(e)?AI(e):bI(e)}s(wv,"baseGetTag");var Fr=wv;function Iv(e){return e!=null&&typeof e=="object"}s(Iv,"isObjectLike");var Ot=Iv,wI="[object Symbol]";function Nv(e){return typeof e=="symbol"||Ot(e)&&Fr(e)==wI}s(Nv,"isSymbol");var Wl=Nv;function Pv(e,t){for(var r=-1,n=e==null?0:e.length,a=Array(n);++r0){if(++t>=fN)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}s(Hv,"shortOut");var mN=Hv;function Yv(e){return function(){return e}}s(Yv,"constant");var hN=Yv,yN=(function(){try{var e=Ln(Object,"defineProperty");return e({},"",{}),e}catch{}})(),il=yN,gN=il?function(e,t){return il(e,"toString",{configurable:!0,enumerable:!1,value:hN(t),writable:!0})}:xs,vN=gN,TN=mN(vN),$N=TN;function Xv(e,t){for(var r=-1,n=e==null?0:e.length;++r-1}s(nT,"arrayIncludes");var aT=nT,EN=9007199254740991,CN=/^(?:0|[1-9]\d*)$/;function iT(e,t){var r=typeof e;return t=t??EN,!!t&&(r=="number"||r!="symbol"&&CN.test(e))&&e>-1&&e%1==0&&e-1&&e%1==0&&e<=wN}s(pT,"isLength");var Ad=pT;function dT(e){return e!=null&&Ad(e.length)&&!Ar(e)}s(dT,"isArrayLike");var Zt=dT;function mT(e,t,r){if(!Rt(r))return!1;var n=typeof t;return(n=="number"?Zt(r)&&Vl(t,r.length):n=="string"&&t in r)?Ms(r[t],e):!1}s(mT,"isIterateeCall");var Yl=mT;function hT(e){return Rd(function(t,r){var n=-1,a=r.length,i=a>1?r[a-1]:void 0,o=a>2?r[2]:void 0;for(i=e.length>3&&typeof i=="function"?(a--,i):void 0,o&&Yl(r[0],r[1],o)&&(i=a<3?void 0:i,a=1),t=Object(t);++n-1}s(qT,"listCacheHas");var WP=qT;function WT(e,t){var r=this.__data__,n=Zl(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}s(WT,"listCacheSet");var VP=WT;function xn(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t0&&r(l)?t>1?Sd(l,t-1,r,n,a):_d(a,l):n||(a[a.length]=l)}return a}s(Sd,"baseFlatten");var wd=Sd;function l$(e){var t=e==null?0:e.length;return t?wd(e,1):[]}s(l$,"flatten");var Pt=l$,dk=wT(Object.getPrototypeOf,Object),u$=dk;function c$(e,t,r){var n=-1,a=e.length;t<0&&(t=-t>a?0:a+t),r=r>a?a:r,r<0&&(r+=a),a=t>r?0:r-t>>>0,t>>>=0;for(var i=Array(a);++nl))return!1;var c=i.get(e),f=i.get(t);if(c&&f)return c==t&&f==e;var p=-1,m=!0,g=r&n0?new kd:void 0;for(i.set(e,t),i.set(t,e);++p2?t[2]:void 0;for(a&&Yl(t[0],t[1],a)&&(n=1);++r=X0&&(i=Od,o=!1,t=new kd(t));e:for(;++a-1?a[i?t[o]:o]:void 0}}s(qR,"createFind");var rL=qR,nL=Math.max;function WR(e,t,r){var n=e==null?0:e.length;if(!n)return-1;var a=r==null?0:Ds(r);return a<0&&(a=nL(n+a,0)),Qv(e,Qt(t,3),a)}s(WR,"findIndex");var aL=WR,iL=rL(aL),Ua=iL;function VR(e){return e&&e.length?e[0]:void 0}s(VR,"head");var Lt=VR;function HR(e,t){var r=-1,n=Zt(e)?Array(e.length):[];return Fn(e,function(a,i,o){n[++r]=t(a,i,o)}),n}s(HR,"baseMap");var sL=HR;function YR(e,t){var r=te(e)?Ls:sL;return r(e,Qt(t,3))}s(YR,"map");var F=YR;function XR(e,t){return wd(F(e,t),1)}s(XR,"flatMap");var Tt=XR,oL=Object.prototype,lL=oL.hasOwnProperty,uL=V0(function(e,t,r){lL.call(e,r)?e[r].push(t):$d(e,r,[t])}),cL=uL,fL=Object.prototype,pL=fL.hasOwnProperty;function JR(e,t){return e!=null&&pL.call(e,t)}s(JR,"baseHas");var dL=JR;function ZR(e,t){return e!=null&&yR(e,t,dL)}s(ZR,"has");var U=ZR,mL="[object String]";function QR(e){return typeof e=="string"||!te(e)&&Ot(e)&&Fr(e)==mL}s(QR,"isString");var st=QR;function eA(e,t){return Ls(t,function(r){return e[r]})}s(eA,"baseValues");var hL=eA;function tA(e){return e==null?[]:hL(e,pt(e))}s(tA,"values");var xe=tA,yL=Math.max;function rA(e,t,r,n){e=Zt(e)?e:xe(e),r=r&&!n?Ds(r):0;var a=e.length;return r<0&&(r=yL(a+r,0)),st(e)?r<=a&&e.indexOf(t,r)>-1:!!a&&Td(e,t,r)>-1}s(rA,"includes");var nt=rA,gL=Math.max;function nA(e,t,r){var n=e==null?0:e.length;if(!n)return-1;var a=r==null?0:Ds(r);return a<0&&(a=gL(n+a,0)),Td(e,t,a)}s(nA,"indexOf");var xh=nA,vL="[object Map]",TL="[object Set]",$L=Object.prototype,RL=$L.hasOwnProperty;function aA(e){if(e==null)return!0;if(Zt(e)&&(te(e)||typeof e=="string"||typeof e.splice=="function"||ps(e)||Ed(e)||Xl(e)))return!e.length;var t=ja(e);if(t==vL||t==TL)return!e.size;if(Fs(e))return!NT(e).length;for(var r in e)if(RL.call(e,r))return!1;return!0}s(aA,"isEmpty");var de=aA,AL="[object RegExp]";function iA(e){return Ot(e)&&Fr(e)==AL}s(iA,"baseIsRegExp");var EL=iA,Mh=Or&&Or.isRegExp,CL=Mh?zs(Mh):EL,hr=CL;function sA(e){return e===void 0}s(sA,"isUndefined");var yr=sA,bL="Expected a function";function oA(e){if(typeof e!="function")throw new TypeError(bL);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}s(oA,"negate");var _L=oA;function lA(e,t,r,n){if(!Rt(e))return e;t=nu(t,e);for(var a=-1,i=t.length,o=i-1,l=e;l!=null&&++a=LL){var c=t?null:OL(e);if(c)return Ld(c);o=!1,a=Od,u=new kd}else u=t?[]:l;e:for(;++n{t.accept(e)})}},et=class extends er{static{s(this,"NonTerminal")}constructor(e){super([]),this.idx=1,dt(this,Dt(e,t=>t!==void 0))}set definition(e){}get definition(){return this.referencedRule!==void 0?this.referencedRule.definition:[]}accept(e){e.visit(this)}},Ha=class extends er{static{s(this,"Rule")}constructor(e){super(e.definition),this.orgText="",dt(this,Dt(e,t=>t!==void 0))}},ot=class extends er{static{s(this,"Alternative")}constructor(e){super(e.definition),this.ignoreAmbiguities=!1,dt(this,Dt(e,t=>t!==void 0))}},Be=class extends er{static{s(this,"Option")}constructor(e){super(e.definition),this.idx=1,dt(this,Dt(e,t=>t!==void 0))}},ht=class extends er{static{s(this,"RepetitionMandatory")}constructor(e){super(e.definition),this.idx=1,dt(this,Dt(e,t=>t!==void 0))}},yt=class extends er{static{s(this,"RepetitionMandatoryWithSeparator")}constructor(e){super(e.definition),this.idx=1,dt(this,Dt(e,t=>t!==void 0))}},Ce=class extends er{static{s(this,"Repetition")}constructor(e){super(e.definition),this.idx=1,dt(this,Dt(e,t=>t!==void 0))}},lt=class extends er{static{s(this,"RepetitionWithSeparator")}constructor(e){super(e.definition),this.idx=1,dt(this,Dt(e,t=>t!==void 0))}},ut=class extends er{static{s(this,"Alternation")}get definition(){return this._definition}set definition(e){this._definition=e}constructor(e){super(e.definition),this.idx=1,this.ignoreAmbiguities=!1,this.hasPredicates=!1,dt(this,Dt(e,t=>t!==void 0))}},ge=class{static{s(this,"Terminal")}constructor(e){this.idx=1,dt(this,Dt(e,t=>t!==void 0))}accept(e){e.visit(this)}};function RA(e){return F(e,is)}s(RA,"serializeGrammar");function is(e){function t(r){return F(r,is)}if(s(t,"convertDefinition"),e instanceof et){let r={type:"NonTerminal",name:e.nonTerminalName,idx:e.idx};return st(e.label)&&(r.label=e.label),r}else{if(e instanceof ot)return{type:"Alternative",definition:t(e.definition)};if(e instanceof Be)return{type:"Option",idx:e.idx,definition:t(e.definition)};if(e instanceof ht)return{type:"RepetitionMandatory",idx:e.idx,definition:t(e.definition)};if(e instanceof yt)return{type:"RepetitionMandatoryWithSeparator",idx:e.idx,separator:is(new ge({terminalType:e.separator})),definition:t(e.definition)};if(e instanceof lt)return{type:"RepetitionWithSeparator",idx:e.idx,separator:is(new ge({terminalType:e.separator})),definition:t(e.definition)};if(e instanceof Ce)return{type:"Repetition",idx:e.idx,definition:t(e.definition)};if(e instanceof ut)return{type:"Alternation",idx:e.idx,definition:t(e.definition)};if(e instanceof ge){let r={type:"Terminal",name:e.terminalType.name,label:TA(e.terminalType),idx:e.idx};st(e.label)&&(r.terminalLabel=e.label);let n=e.terminalType.PATTERN;return e.terminalType.PATTERN&&(r.pattern=hr(n)?n.source:n),r}else{if(e instanceof Ha)return{type:"Rule",name:e.name,orgText:e.orgText,definition:t(e.definition)};throw Error("non exhaustive match")}}}s(is,"serializeProduction");var Ya=class{static{s(this,"GAstVisitor")}visit(e){let t=e;switch(t.constructor){case et:return this.visitNonTerminal(t);case ot:return this.visitAlternative(t);case Be:return this.visitOption(t);case ht:return this.visitRepetitionMandatory(t);case yt:return this.visitRepetitionMandatoryWithSeparator(t);case lt:return this.visitRepetitionWithSeparator(t);case Ce:return this.visitRepetition(t);case ut:return this.visitAlternation(t);case ge:return this.visitTerminal(t);case Ha:return this.visitRule(t);default:throw Error("non exhaustive match")}}visitNonTerminal(e){}visitAlternative(e){}visitOption(e){}visitRepetition(e){}visitRepetitionMandatory(e){}visitRepetitionMandatoryWithSeparator(e){}visitRepetitionWithSeparator(e){}visitAlternation(e){}visitTerminal(e){}visitRule(e){}};function AA(e){return e instanceof ot||e instanceof Be||e instanceof Ce||e instanceof ht||e instanceof yt||e instanceof lt||e instanceof ge||e instanceof Ha}s(AA,"isSequenceProd");function gs(e,t=[]){return e instanceof Be||e instanceof Ce||e instanceof lt?!0:e instanceof ut?yA(e.definition,n=>gs(n,t)):e instanceof et&&nt(t,e)?!1:e instanceof er?(e instanceof et&&t.push(e),kt(e.definition,n=>gs(n,t))):!1}s(gs,"isOptionalProd");function EA(e){return e instanceof ut}s(EA,"isBranchingProd");function St(e){if(e instanceof et)return"SUBRULE";if(e instanceof Be)return"OPTION";if(e instanceof ut)return"OR";if(e instanceof ht)return"AT_LEAST_ONE";if(e instanceof yt)return"AT_LEAST_ONE_SEP";if(e instanceof lt)return"MANY_SEP";if(e instanceof Ce)return"MANY";if(e instanceof ge)return"CONSUME";throw Error("non exhaustive match")}s(St,"getProductionDslName");var su=class{static{s(this,"RestWalker")}walk(e,t=[]){B(e.definition,(r,n)=>{let a=Ke(e.definition,n+1);if(r instanceof et)this.walkProdRef(r,a,t);else if(r instanceof ge)this.walkTerminal(r,a,t);else if(r instanceof ot)this.walkFlat(r,a,t);else if(r instanceof Be)this.walkOption(r,a,t);else if(r instanceof ht)this.walkAtLeastOne(r,a,t);else if(r instanceof yt)this.walkAtLeastOneSep(r,a,t);else if(r instanceof lt)this.walkManySep(r,a,t);else if(r instanceof Ce)this.walkMany(r,a,t);else if(r instanceof ut)this.walkOr(r,a,t);else throw Error("non exhaustive match")})}walkTerminal(e,t,r){}walkProdRef(e,t,r){}walkFlat(e,t,r){let n=t.concat(r);this.walk(e,n)}walkOption(e,t,r){let n=t.concat(r);this.walk(e,n)}walkAtLeastOne(e,t,r){let n=[new Be({definition:e.definition})].concat(t,r);this.walk(e,n)}walkAtLeastOneSep(e,t,r){let n=Rf(e,t,r);this.walk(e,n)}walkMany(e,t,r){let n=[new Be({definition:e.definition})].concat(t,r);this.walk(e,n)}walkManySep(e,t,r){let n=Rf(e,t,r);this.walk(e,n)}walkOr(e,t,r){let n=t.concat(r);B(e.definition,a=>{let i=new ot({definition:[a]});this.walk(i,n)})}};function Rf(e,t,r){return[new Be({definition:[new ge({terminalType:e.separator})].concat(e.definition)})].concat(t,r)}s(Rf,"restForRepetitionWithSeparator");function Xa(e){if(e instanceof et)return Xa(e.referencedRule);if(e instanceof ge)return _A(e);if(AA(e))return CA(e);if(EA(e))return bA(e);throw Error("non exhaustive match")}s(Xa,"first");function CA(e){let t=[],r=e.definition,n=0,a=r.length>n,i,o=!0;for(;a&&o;)i=r[n],o=gs(i),t=t.concat(Xa(i)),n=n+1,a=r.length>n;return Md(t)}s(CA,"firstForSequence");function bA(e){let t=F(e.definition,r=>Xa(r));return Md(Pt(t))}s(bA,"firstForBranching");function _A(e){return[e.terminalType]}s(_A,"firstForTerminal");var SA="_~IN~_",xL=class extends su{static{s(this,"ResyncFollowsWalker")}constructor(e){super(),this.topProd=e,this.follows={}}startWalking(){return this.walk(this.topProd),this.follows}walkTerminal(e,t,r){}walkProdRef(e,t,r){let n=IA(e.referencedRule,e.idx)+this.topProd.name,a=t.concat(r),i=new ot({definition:a}),o=Xa(i);this.follows[n]=o}};function wA(e){let t={};return B(e,r=>{let n=new xL(r).startWalking();dt(t,n)}),t}s(wA,"computeAllProdsFollows");function IA(e,t){return e.name+t+SA}s(IA,"buildBetweenProdsFollowPrefix");var Co={},ML=new ov;function Ks(e){let t=e.toString();if(Co.hasOwnProperty(t))return Co[t];{let r=ML.pattern(t);return Co[t]=r,r}}s(Ks,"getRegExpAst");function NA(){Co={}}s(NA,"clearRegExpParserCache");var PA="Complement Sets are not supported for first char optimization",ll=`Unable to use "first char" lexer optimizations: +`;function kA(e,t=!1){try{let r=Ks(e);return ul(r.value,{},r.flags.ignoreCase)}catch(r){if(r.message===PA)t&&Gd(`${ll} Unable to optimize: < ${e.toString()} > + Complement Sets cannot be automatically optimized. + This will disable the lexer's first char optimizations. + See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#COMPLEMENT for details.`);else{let n="";t&&(n=` + This will disable the lexer's first char optimizations. + See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#REGEXP_PARSING for details.`),ol(`${ll} + Failed parsing: < ${e.toString()} > + Using the @chevrotain/regexp-to-ast library + Please open an issue at: https://github.com/chevrotain/chevrotain/issues`+n)}}return[]}s(kA,"getOptimizedStartCodesIndices");function ul(e,t,r){switch(e.type){case"Disjunction":for(let a=0;a{if(typeof u=="number")Ui(u,t,r);else{let c=u;if(r===!0)for(let f=c.from;f<=c.to;f++)Ui(f,t,r);else{for(let f=c.from;f<=c.to&&f=Bi){let f=c.from>=Bi?c.from:Bi,p=c.to,m=gr(f),g=gr(p);for(let v=m;v<=g;v++)t[v]=v}}}});break;case"Group":ul(o.value,t,r);break;default:throw Error("Non Exhaustive Match")}let l=o.quantifier!==void 0&&o.quantifier.atLeast===0;if(o.type==="Group"&&cl(o)===!1||o.type!=="Group"&&l===!1)break}break;default:throw Error("non exhaustive match!")}return xe(t)}s(ul,"firstCharOptimizedIndices");function Ui(e,t,r){let n=gr(e);t[n]=n,r===!0&&OA(e,t)}s(Ui,"addOptimizedIdxToResult");function OA(e,t){let r=String.fromCharCode(e),n=r.toUpperCase();if(n!==r){let a=gr(n.charCodeAt(0));t[a]=a}else{let a=r.toLowerCase();if(a!==r){let i=gr(a.charCodeAt(0));t[i]=i}}}s(OA,"handleIgnoreCase");function Af(e,t){return Ua(e.value,r=>{if(typeof r=="number")return nt(t,r);{let n=r;return Ua(t,a=>n.from<=a&&a<=n.to)!==void 0}})}s(Af,"findCode");function cl(e){let t=e.quantifier;return t&&t.atLeast===0?!0:e.value?te(e.value)?kt(e.value,cl):cl(e.value):!1}s(cl,"isWholeOptional");var GL=class extends Fl{static{s(this,"CharCodeFinder")}constructor(e){super(),this.targetCharCodes=e,this.found=!1}visitChildren(e){if(this.found!==!0){switch(e.type){case"Lookahead":this.visitLookahead(e);return;case"NegativeLookahead":this.visitNegativeLookahead(e);return;case"Lookbehind":this.visitLookbehind(e);return;case"NegativeLookbehind":this.visitNegativeLookbehind(e);return}super.visitChildren(e)}}visitCharacter(e){nt(this.targetCharCodes,e.value)&&(this.found=!0)}visitSet(e){e.complement?Af(e,this.targetCharCodes)===void 0&&(this.found=!0):Af(e,this.targetCharCodes)!==void 0&&(this.found=!0)}};function ou(e,t){if(t instanceof RegExp){let r=Ks(t),n=new GL(e);return n.visit(r),n.found}else return Ua(t,r=>nt(e,r.charCodeAt(0)))!==void 0}s(ou,"canMatchCharCode");var Cn="PATTERN",Ki="defaultMode",Js="modes";function LA(e,t){t=xd(t,{debug:!1,safeMode:!1,positionTracking:"full",lineTerminatorCharacters:["\r",` +`],tracer:s((w,R)=>R(),"tracer")});let r=t.tracer;r("initCharCodeToOptimizedIndexMap",()=>{tE()});let n;r("Reject Lexer.NA",()=>{n=iu(e,w=>w[Cn]===Ze.NA)});let a=!1,i;r("Transform Patterns",()=>{a=!1,i=F(n,w=>{let R=w[Cn];if(hr(R)){let P=R.source;return P.length===1&&P!=="^"&&P!=="$"&&P!=="."&&!R.ignoreCase?P:P.length===2&&P[0]==="\\"&&!nt(["d","D","s","S","t","r","n","t","0","c","b","B","f","v","w","W"],P[1])?P[1]:Ef(R)}else{if(Ar(R))return a=!0,{exec:R};if(typeof R=="object")return a=!0,R;if(typeof R=="string"){if(R.length===1)return R;{let P=R.replace(/[\\^$.*+?()[\]{}|]/g,"\\$&"),z=new RegExp(P);return Ef(z)}}else throw Error("non exhaustive match")}})});let o,l,u,c,f;r("misc mapping",()=>{o=F(n,w=>w.tokenTypeIdx),l=F(n,w=>{let R=w.GROUP;if(R!==Ze.SKIPPED){if(st(R))return R;if(yr(R))return!1;throw Error("non exhaustive match")}}),u=F(n,w=>{let R=w.LONGER_ALT;if(R)return te(R)?F(R,z=>xh(n,z)):[xh(n,R)]}),c=F(n,w=>w.PUSH_MODE),f=F(n,w=>U(w,"POP_MODE"))});let p;r("Line Terminator Handling",()=>{let w=Kd(t.lineTerminatorCharacters);p=F(n,R=>!1),t.positionTracking!=="onlyOffset"&&(p=F(n,R=>U(R,"LINE_BREAKS")?!!R.LINE_BREAKS:Ud(R,w)===!1&&ou(w,R.PATTERN)))});let m,g,v,_;r("Misc Mapping #2",()=>{m=F(n,jd),g=F(i,QA),v=mt(n,(w,R)=>{let P=R.GROUP;return st(P)&&P!==Ze.SKIPPED&&(w[P]=[]),w},{}),_=F(i,(w,R)=>({pattern:i[R],longerAlt:u[R],canLineTerminator:p[R],isCustom:m[R],short:g[R],group:l[R],push:c[R],pop:f[R],tokenTypeIdx:o[R],tokenType:n[R]}))});let S=!0,I=[];return t.safeMode||r("First Char Optimization",()=>{I=mt(n,(w,R,P)=>{if(typeof R.PATTERN=="string"){let z=R.PATTERN.charCodeAt(0),X=gr(z);bo(w,X,_[P])}else if(te(R.START_CHARS_HINT)){let z;B(R.START_CHARS_HINT,X=>{let Z=typeof X=="string"?X.charCodeAt(0):X,ue=gr(Z);z!==ue&&(z=ue,bo(w,ue,_[P]))})}else if(hr(R.PATTERN))if(R.PATTERN.unicode)S=!1,t.ensureOptimizations&&ol(`${ll} Unable to analyze < ${R.PATTERN.toString()} > pattern. + The regexp unicode flag is not currently supported by the regexp-to-ast library. + This will disable the lexer's first char optimizations. + For details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#UNICODE_OPTIMIZE`);else{let z=kA(R.PATTERN,t.ensureOptimizations);de(z)&&(S=!1),B(z,X=>{bo(w,X,_[P])})}else t.ensureOptimizations&&ol(`${ll} TokenType: <${R.name}> is using a custom token pattern without providing parameter. + This will disable the lexer's first char optimizations. + For details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#CUSTOM_OPTIMIZE`),S=!1;return w},[])}),{emptyGroups:v,patternIdxToConfig:_,charCodeToPatternIdxToConfig:I,hasCustom:a,canBeOptimized:S}}s(LA,"analyzeTokenTypes");function DA(e,t){let r=[],n=MA(e);r=r.concat(n.errors);let a=GA(n.valid),i=a.valid;return r=r.concat(a.errors),r=r.concat(xA(i)),r=r.concat(BA(i)),r=r.concat(qA(i,t)),r=r.concat(WA(i)),r}s(DA,"validatePatterns");function xA(e){let t=[],r=Et(e,n=>hr(n[Cn]));return t=t.concat(FA(r)),t=t.concat(jA(r)),t=t.concat(UA(r)),t=t.concat(KA(r)),t=t.concat(zA(r)),t}s(xA,"validateRegExpPattern");function MA(e){let t=Et(e,a=>!U(a,Cn)),r=F(t,a=>({message:"Token Type: ->"+a.name+"<- missing static 'PATTERN' property",type:be.MISSING_PATTERN,tokenTypes:[a]})),n=au(e,t);return{errors:r,valid:n}}s(MA,"findMissingPatterns");function GA(e){let t=Et(e,a=>{let i=a[Cn];return!hr(i)&&!Ar(i)&&!U(i,"exec")&&!st(i)}),r=F(t,a=>({message:"Token Type: ->"+a.name+"<- static 'PATTERN' can only be a RegExp, a Function matching the {CustomPatternMatcherFunc} type or an Object matching the {ICustomPattern} interface.",type:be.INVALID_PATTERN,tokenTypes:[a]})),n=au(e,t);return{errors:r,valid:n}}s(GA,"findInvalidPatterns");var FL=/[^\\][$]/;function FA(e){class t extends Fl{static{s(this,"EndAnchorFinder")}constructor(){super(...arguments),this.found=!1}visitEndAnchor(i){this.found=!0}}let r=Et(e,a=>{let i=a.PATTERN;try{let o=Ks(i),l=new t;return l.visit(o),l.found}catch{return FL.test(i.source)}});return F(r,a=>({message:`Unexpected RegExp Anchor Error: + Token Type: ->`+a.name+`<- static 'PATTERN' cannot contain end of input anchor '$' + See chevrotain.io/docs/guide/resolving_lexer_errors.html#ANCHORS for details.`,type:be.EOI_ANCHOR_FOUND,tokenTypes:[a]}))}s(FA,"findEndOfInputAnchor");function zA(e){let t=Et(e,n=>n.PATTERN.test(""));return F(t,n=>({message:"Token Type: ->"+n.name+"<- static 'PATTERN' must not match an empty string",type:be.EMPTY_MATCH_PATTERN,tokenTypes:[n]}))}s(zA,"findEmptyMatchRegExps");var zL=/[^\\[][\^]|^\^/;function jA(e){class t extends Fl{static{s(this,"StartAnchorFinder")}constructor(){super(...arguments),this.found=!1}visitStartAnchor(i){this.found=!0}}let r=Et(e,a=>{let i=a.PATTERN;try{let o=Ks(i),l=new t;return l.visit(o),l.found}catch{return zL.test(i.source)}});return F(r,a=>({message:`Unexpected RegExp Anchor Error: + Token Type: ->`+a.name+`<- static 'PATTERN' cannot contain start of input anchor '^' + See https://chevrotain.io/docs/guide/resolving_lexer_errors.html#ANCHORS for details.`,type:be.SOI_ANCHOR_FOUND,tokenTypes:[a]}))}s(jA,"findStartOfInputAnchor");function UA(e){let t=Et(e,n=>{let a=n[Cn];return a instanceof RegExp&&(a.multiline||a.global)});return F(t,n=>({message:"Token Type: ->"+n.name+"<- static 'PATTERN' may NOT contain global('g') or multiline('m')",type:be.UNSUPPORTED_FLAGS_FOUND,tokenTypes:[n]}))}s(UA,"findUnsupportedFlags");function KA(e){let t=[],r=F(e,i=>mt(e,(o,l)=>(i.PATTERN.source===l.PATTERN.source&&!nt(t,l)&&l.PATTERN!==Ze.NA&&(t.push(l),o.push(l)),o),[]));r=Us(r);let n=Et(r,i=>i.length>1);return F(n,i=>{let o=F(i,u=>u.name);return{message:`The same RegExp pattern ->${Lt(i).PATTERN}<-has been used in all of the following Token Types: ${o.join(", ")} <-`,type:be.DUPLICATE_PATTERNS_FOUND,tokenTypes:i}})}s(KA,"findDuplicatePatterns");function BA(e){let t=Et(e,n=>{if(!U(n,"GROUP"))return!1;let a=n.GROUP;return a!==Ze.SKIPPED&&a!==Ze.NA&&!st(a)});return F(t,n=>({message:"Token Type: ->"+n.name+"<- static 'GROUP' can only be Lexer.SKIPPED/Lexer.NA/A String",type:be.INVALID_GROUP_TYPE_FOUND,tokenTypes:[n]}))}s(BA,"findInvalidGroupType");function qA(e,t){let r=Et(e,a=>a.PUSH_MODE!==void 0&&!nt(t,a.PUSH_MODE));return F(r,a=>({message:`Token Type: ->${a.name}<- static 'PUSH_MODE' value cannot refer to a Lexer Mode ->${a.PUSH_MODE}<-which does not exist`,type:be.PUSH_MODE_DOES_NOT_EXIST,tokenTypes:[a]}))}s(qA,"findModesThatDoNotExist");function WA(e){let t=[],r=mt(e,(n,a,i)=>{let o=a.PATTERN;return o===Ze.NA||(st(o)?n.push({str:o,idx:i,tokenType:a}):hr(o)&&HA(o)&&n.push({str:o.source,idx:i,tokenType:a})),n},[]);return B(e,(n,a)=>{B(r,({str:i,idx:o,tokenType:l})=>{if(a${l.name}<- can never be matched. +Because it appears AFTER the Token Type ->${n.name}<-in the lexer's definition. +See https://chevrotain.io/docs/guide/resolving_lexer_errors.html#UNREACHABLE`;t.push({message:u,type:be.UNREACHABLE_PATTERN,tokenTypes:[n,l]})}})}),t}s(WA,"findUnreachablePatterns");function VA(e,t){if(hr(t)){if(YA(t))return!1;let r=t.exec(e);return r!==null&&r.index===0}else{if(Ar(t))return t(e,0,[],{});if(U(t,"exec"))return t.exec(e,0,[],{});if(typeof t=="string")return t===e;throw Error("non exhaustive match")}}s(VA,"tryToMatchStrToPattern");function HA(e){return Ua([".","\\","[","]","|","^","$","(",")","?","*","+","{"],r=>e.source.indexOf(r)!==-1)===void 0}s(HA,"noMetaChar");function YA(e){return/(\(\?=)|(\(\?!)|(\(\?<=)|(\(\? property in its definition +`,type:be.MULTI_MODE_LEXER_WITHOUT_DEFAULT_MODE}),U(e,Js)||n.push({message:"A MultiMode Lexer cannot be initialized without a <"+Js+`> property in its definition +`,type:be.MULTI_MODE_LEXER_WITHOUT_MODES_PROPERTY}),U(e,Js)&&U(e,Ki)&&!U(e.modes,e.defaultMode)&&n.push({message:`A MultiMode Lexer cannot be initialized with a ${Ki}: <${e.defaultMode}>which does not exist +`,type:be.MULTI_MODE_LEXER_DEFAULT_MODE_VALUE_DOES_NOT_EXIST}),U(e,Js)&&B(e.modes,(a,i)=>{B(a,(o,l)=>{if(yr(o))n.push({message:`A Lexer cannot be initialized using an undefined Token Type. Mode:<${i}> at index: <${l}> +`,type:be.LEXER_DEFINITION_CANNOT_CONTAIN_UNDEFINED});else if(U(o,"LONGER_ALT")){let u=te(o.LONGER_ALT)?o.LONGER_ALT:[o.LONGER_ALT];B(u,c=>{!yr(c)&&!nt(a,c)&&n.push({message:`A MultiMode Lexer cannot be initialized with a longer_alt <${c.name}> on token <${o.name}> outside of mode <${i}> +`,type:be.MULTI_MODE_LEXER_LONGER_ALT_NOT_IN_CURRENT_MODE})})}})}),n}s(XA,"performRuntimeChecks");function JA(e,t,r){let n=[],a=!1,i=Us(Pt(xe(e.modes))),o=iu(i,u=>u[Cn]===Ze.NA),l=Kd(r);return t&&B(o,u=>{let c=Ud(u,l);if(c!==!1){let p={message:eE(u,c),type:c.issue,tokenType:u};n.push(p)}else U(u,"LINE_BREAKS")?u.LINE_BREAKS===!0&&(a=!0):ou(l,u.PATTERN)&&(a=!0)}),t&&!a&&n.push({message:`Warning: No LINE_BREAKS Found. + This Lexer has been defined to track line and column information, + But none of the Token Types can be identified as matching a line terminator. + See https://chevrotain.io/docs/guide/resolving_lexer_errors.html#LINE_BREAKS + for details.`,type:be.NO_LINE_BREAKS_FLAGS}),n}s(JA,"performWarningRuntimeChecks");function ZA(e){let t={},r=pt(e);return B(r,n=>{let a=e[n];if(te(a))t[n]=[];else throw Error("non exhaustive match")}),t}s(ZA,"cloneEmptyGroups");function jd(e){let t=e.PATTERN;if(hr(t))return!1;if(Ar(t))return!0;if(U(t,"exec"))return!0;if(st(t))return!1;throw Error("non exhaustive match")}s(jd,"isCustomPattern");function QA(e){return st(e)&&e.length===1?e.charCodeAt(0):!1}s(QA,"isShortPattern");var jL={test:s(function(e){let t=e.length;for(let r=this.lastIndex;r Token Type + Root cause: ${t.errMsg}. + For details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#IDENTIFY_TERMINATOR`;if(t.issue===be.CUSTOM_LINE_BREAK)return`Warning: A Custom Token Pattern should specify the option. + The problem is in the <${e.name}> Token Type + For details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#CUSTOM_LINE_BREAK`;throw Error("non exhaustive match")}s(eE,"buildLineBreakIssueMessage");function Kd(e){return F(e,r=>st(r)?r.charCodeAt(0):r)}s(Kd,"getCharCodes");function bo(e,t,r){e[t]===void 0?e[t]=[r]:e[t].push(r)}s(bo,"addToMapOfArrays");var Bi=256,_o=[];function gr(e){return e255?255+~~(e/255):e}}s(tE,"initCharCodeToOptimizedIndexMap");function Ja(e,t){let r=e.tokenTypeIdx;return r===t.tokenTypeIdx?!0:t.isParent===!0&&t.categoryMatchesMap[r]===!0}s(Ja,"tokenStructuredMatcher");function vs(e,t){return e.tokenTypeIdx===t.tokenTypeIdx}s(vs,"tokenStructuredMatcherNoCategories");var Gh=1,rE={};function Za(e){let t=nE(e);aE(t),sE(t),iE(t),B(t,r=>{r.isParent=r.categoryMatches.length>0})}s(Za,"augmentTokenTypes");function nE(e){let t=qe(e),r=e,n=!0;for(;n;){r=Us(Pt(F(r,i=>i.CATEGORIES)));let a=au(r,t);t=t.concat(a),de(a)?n=!1:r=a}return t}s(nE,"expandCategories");function aE(e){B(e,t=>{qd(t)||(rE[Gh]=t,t.tokenTypeIdx=Gh++),Cf(t)&&!te(t.CATEGORIES)&&(t.CATEGORIES=[t.CATEGORIES]),Cf(t)||(t.CATEGORIES=[]),oE(t)||(t.categoryMatches=[]),lE(t)||(t.categoryMatchesMap={})})}s(aE,"assignTokenDefaultProps");function iE(e){B(e,t=>{t.categoryMatches=[],B(t.categoryMatchesMap,(r,n)=>{t.categoryMatches.push(rE[n].tokenTypeIdx)})})}s(iE,"assignCategoriesTokensProp");function sE(e){B(e,t=>{Bd([],t)})}s(sE,"assignCategoriesMapProp");function Bd(e,t){B(e,r=>{t.categoryMatchesMap[r.tokenTypeIdx]=!0}),B(t.CATEGORIES,r=>{let n=e.concat(t);nt(n,r)||Bd(n,r)})}s(Bd,"singleAssignCategoriesToksMap");function qd(e){return U(e,"tokenTypeIdx")}s(qd,"hasShortKeyProperty");function Cf(e){return U(e,"CATEGORIES")}s(Cf,"hasCategoriesProperty");function oE(e){return U(e,"categoryMatches")}s(oE,"hasExtendingTokensTypesProperty");function lE(e){return U(e,"categoryMatchesMap")}s(lE,"hasExtendingTokensTypesMapProperty");function uE(e){return U(e,"tokenTypeIdx")}s(uE,"isTokenType");var bf={buildUnableToPopLexerModeMessage(e){return`Unable to pop Lexer Mode after encountering Token ->${e.image}<- The Mode Stack is empty`},buildUnexpectedCharactersMessage(e,t,r,n,a,i){return`unexpected character: ->${e.charAt(t)}<- at offset: ${t}, skipped ${r} characters.`}},be;(function(e){e[e.MISSING_PATTERN=0]="MISSING_PATTERN",e[e.INVALID_PATTERN=1]="INVALID_PATTERN",e[e.EOI_ANCHOR_FOUND=2]="EOI_ANCHOR_FOUND",e[e.UNSUPPORTED_FLAGS_FOUND=3]="UNSUPPORTED_FLAGS_FOUND",e[e.DUPLICATE_PATTERNS_FOUND=4]="DUPLICATE_PATTERNS_FOUND",e[e.INVALID_GROUP_TYPE_FOUND=5]="INVALID_GROUP_TYPE_FOUND",e[e.PUSH_MODE_DOES_NOT_EXIST=6]="PUSH_MODE_DOES_NOT_EXIST",e[e.MULTI_MODE_LEXER_WITHOUT_DEFAULT_MODE=7]="MULTI_MODE_LEXER_WITHOUT_DEFAULT_MODE",e[e.MULTI_MODE_LEXER_WITHOUT_MODES_PROPERTY=8]="MULTI_MODE_LEXER_WITHOUT_MODES_PROPERTY",e[e.MULTI_MODE_LEXER_DEFAULT_MODE_VALUE_DOES_NOT_EXIST=9]="MULTI_MODE_LEXER_DEFAULT_MODE_VALUE_DOES_NOT_EXIST",e[e.LEXER_DEFINITION_CANNOT_CONTAIN_UNDEFINED=10]="LEXER_DEFINITION_CANNOT_CONTAIN_UNDEFINED",e[e.SOI_ANCHOR_FOUND=11]="SOI_ANCHOR_FOUND",e[e.EMPTY_MATCH_PATTERN=12]="EMPTY_MATCH_PATTERN",e[e.NO_LINE_BREAKS_FLAGS=13]="NO_LINE_BREAKS_FLAGS",e[e.UNREACHABLE_PATTERN=14]="UNREACHABLE_PATTERN",e[e.IDENTIFY_TERMINATOR=15]="IDENTIFY_TERMINATOR",e[e.CUSTOM_LINE_BREAK=16]="CUSTOM_LINE_BREAK",e[e.MULTI_MODE_LEXER_LONGER_ALT_NOT_IN_CURRENT_MODE=17]="MULTI_MODE_LEXER_LONGER_ALT_NOT_IN_CURRENT_MODE"})(be||(be={}));var qi={deferDefinitionErrorsHandling:!1,positionTracking:"full",lineTerminatorsPattern:/\n|\r\n?/g,lineTerminatorCharacters:[` +`,"\r"],ensureOptimizations:!1,safeMode:!1,errorMessageProvider:bf,traceInitPerf:!1,skipValidations:!1,recoveryEnabled:!0};Object.freeze(qi);var Ze=class{static{s(this,"Lexer")}constructor(e,t=qi){if(this.lexerDefinition=e,this.lexerDefinitionErrors=[],this.lexerDefinitionWarning=[],this.patternIdxToConfig={},this.charCodeToPatternIdxToConfig={},this.modes=[],this.emptyGroups={},this.trackStartLines=!0,this.trackEndLines=!0,this.hasCustom=!1,this.canModeBeOptimized={},this.TRACE_INIT=(n,a)=>{if(this.traceInitPerf===!0){this.traceInitIndent++;let i=new Array(this.traceInitIndent+1).join(" ");this.traceInitIndent <${n}>`);let{time:o,value:l}=Fd(a),u=o>10?console.warn:console.log;return this.traceInitIndent time: ${o}ms`),this.traceInitIndent--,l}else return a()},typeof t=="boolean")throw Error(`The second argument to the Lexer constructor is now an ILexerConfig Object. +a boolean 2nd argument is no longer supported`);this.config=dt({},qi,t);let r=this.config.traceInitPerf;r===!0?(this.traceInitMaxIdent=1/0,this.traceInitPerf=!0):typeof r=="number"&&(this.traceInitMaxIdent=r,this.traceInitPerf=!0),this.traceInitIndent=-1,this.TRACE_INIT("Lexer Constructor",()=>{let n,a=!0;this.TRACE_INIT("Lexer Config handling",()=>{if(this.config.lineTerminatorsPattern===qi.lineTerminatorsPattern)this.config.lineTerminatorsPattern=jL;else if(this.config.lineTerminatorCharacters===qi.lineTerminatorCharacters)throw Error(`Error: Missing property on the Lexer config. + For details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#MISSING_LINE_TERM_CHARS`);if(t.safeMode&&t.ensureOptimizations)throw Error('"safeMode" and "ensureOptimizations" flags are mutually exclusive.');this.trackStartLines=/full|onlyStart/i.test(this.config.positionTracking),this.trackEndLines=/full/i.test(this.config.positionTracking),te(e)?n={modes:{defaultMode:qe(e)},defaultMode:Ki}:(a=!1,n=qe(e))}),this.config.skipValidations===!1&&(this.TRACE_INIT("performRuntimeChecks",()=>{this.lexerDefinitionErrors=this.lexerDefinitionErrors.concat(XA(n,this.trackStartLines,this.config.lineTerminatorCharacters))}),this.TRACE_INIT("performWarningRuntimeChecks",()=>{this.lexerDefinitionWarning=this.lexerDefinitionWarning.concat(JA(n,this.trackStartLines,this.config.lineTerminatorCharacters))})),n.modes=n.modes?n.modes:{},B(n.modes,(o,l)=>{n.modes[l]=iu(o,u=>yr(u))});let i=pt(n.modes);if(B(n.modes,(o,l)=>{this.TRACE_INIT(`Mode: <${l}> processing`,()=>{if(this.modes.push(l),this.config.skipValidations===!1&&this.TRACE_INIT("validatePatterns",()=>{this.lexerDefinitionErrors=this.lexerDefinitionErrors.concat(DA(o,i))}),de(this.lexerDefinitionErrors)){Za(o);let u;this.TRACE_INIT("analyzeTokenTypes",()=>{u=LA(o,{lineTerminatorCharacters:this.config.lineTerminatorCharacters,positionTracking:t.positionTracking,ensureOptimizations:t.ensureOptimizations,safeMode:t.safeMode,tracer:this.TRACE_INIT})}),this.patternIdxToConfig[l]=u.patternIdxToConfig,this.charCodeToPatternIdxToConfig[l]=u.charCodeToPatternIdxToConfig,this.emptyGroups=dt({},this.emptyGroups,u.emptyGroups),this.hasCustom=u.hasCustom||this.hasCustom,this.canModeBeOptimized[l]=u.canBeOptimized}})}),this.defaultMode=n.defaultMode,!de(this.lexerDefinitionErrors)&&!this.config.deferDefinitionErrorsHandling){let l=F(this.lexerDefinitionErrors,u=>u.message).join(`----------------------- +`);throw new Error(`Errors detected in definition of Lexer: +`+l)}B(this.lexerDefinitionWarning,o=>{Gd(o.message)}),this.TRACE_INIT("Choosing sub-methods implementations",()=>{if(a&&(this.handleModes=Ge),this.trackStartLines===!1&&(this.computeNewColumn=xs),this.trackEndLines===!1&&(this.updateTokenEndLineColumnLocation=Ge),/full/i.test(this.config.positionTracking))this.createTokenInstance=this.createFullToken;else if(/onlyStart/i.test(this.config.positionTracking))this.createTokenInstance=this.createStartOnlyToken;else if(/onlyOffset/i.test(this.config.positionTracking))this.createTokenInstance=this.createOffsetOnlyToken;else throw Error(`Invalid config option: "${this.config.positionTracking}"`);this.hasCustom?(this.addToken=this.addTokenUsingPush,this.handlePayload=this.handlePayloadWithCustom):(this.addToken=this.addTokenUsingMemberAccess,this.handlePayload=this.handlePayloadNoCustom)}),this.TRACE_INIT("Failed Optimization Warnings",()=>{let o=mt(this.canModeBeOptimized,(l,u,c)=>(u===!1&&l.push(c),l),[]);if(t.ensureOptimizations&&!de(o))throw Error(`Lexer Modes: < ${o.join(", ")} > cannot be optimized. + Disable the "ensureOptimizations" lexer config flag to silently ignore this and run the lexer in an un-optimized mode. + Or inspect the console log for details on how to resolve these issues.`)}),this.TRACE_INIT("clearRegExpParserCache",()=>{NA()}),this.TRACE_INIT("toFastProperties",()=>{zd(this)})})}tokenize(e,t=this.defaultMode){if(!de(this.lexerDefinitionErrors)){let n=F(this.lexerDefinitionErrors,a=>a.message).join(`----------------------- +`);throw new Error(`Unable to Tokenize because Errors detected in definition of Lexer: +`+n)}return this.tokenizeInternal(e,t)}tokenizeInternal(e,t){let r,n,a,i,o,l,u,c,f,p,m,g,v,_,S,I=e,w=I.length,R=0,P=0,z=this.hasCustom?0:Math.floor(e.length/10),X=new Array(z),Z=[],ue=this.trackStartLines?1:void 0,ie=this.trackStartLines?1:void 0,_e=ZA(this.emptyGroups),k=this.trackStartLines,C=this.config.lineTerminatorsPattern,y=0,E=[],T=[],$=[],b=[];Object.freeze(b);let O=!1,x=s(Y=>{if($.length===1&&Y.tokenType.PUSH_MODE===void 0){let W=this.config.errorMessageProvider.buildUnableToPopLexerModeMessage(Y);Z.push({offset:Y.startOffset,line:Y.startLine,column:Y.startColumn,length:Y.image.length,message:W})}else{$.pop();let W=En($);E=this.patternIdxToConfig[W],T=this.charCodeToPatternIdxToConfig[W],y=E.length;let Ne=this.canModeBeOptimized[W]&&this.config.safeMode===!1;T&&Ne?O=!0:O=!1}},"pop_mode");function D(Y){$.push(Y),T=this.charCodeToPatternIdxToConfig[Y],E=this.patternIdxToConfig[Y],y=E.length,y=E.length;let W=this.canModeBeOptimized[Y]&&this.config.safeMode===!1;T&&W?O=!0:O=!1}s(D,"push_mode"),D.call(this,t);let G,q=this.config.recoveryEnabled;for(;Rl.length){l=i,f=i.length,u=c,G=Pe;break}}}break}}if(f!==-1){if(p=G.group,p!==void 0&&(l=l!==null?l:e.substring(R,R+f),m=G.tokenTypeIdx,g=this.createTokenInstance(l,R,m,G.tokenType,ue,ie,f),this.handlePayload(g,u),p===!1?P=this.addToken(X,P,g):_e[p].push(g)),k===!0&&G.canLineTerminator===!0){let se=0,Oe,Le;C.lastIndex=0;do l=l!==null?l:e.substring(R,R+f),Oe=C.test(l),Oe===!0&&(Le=C.lastIndex-1,se++);while(Oe===!0);se!==0?(ue=ue+se,ie=f-Le,this.updateTokenEndLineColumnLocation(g,p,Le,se,ue,ie,f)):ie=this.computeNewColumn(ie,f)}else ie=this.computeNewColumn(ie,f);R=R+f,this.handleModes(G,x,D,g)}else{let se=R,Oe=ue,Le=ie,Pe=q===!1;for(;Pe===!1&&R ${$n(e)} <--`:`token of type --> ${e.name} <--`} but found --> '${t.image}' <--`},buildNotAllInputParsedMessage({firstRedundant:e,ruleName:t}){return"Redundant input, expecting EOF but found: "+e.image},buildNoViableAltMessage({expectedPathsPerAlt:e,actual:t,previous:r,customUserDescription:n,ruleName:a}){let i="Expecting: ",l=` +but found: '`+Lt(t).image+"'";if(n)return i+n+l;{let u=mt(e,(m,g)=>m.concat(g),[]),c=F(u,m=>`[${F(m,g=>$n(g)).join(", ")}]`),p=`one of these possible Token sequences: +${F(c,(m,g)=>` ${g+1}. ${m}`).join(` +`)}`;return i+p+l}},buildEarlyExitMessage({expectedIterationPaths:e,actual:t,customUserDescription:r,ruleName:n}){let a="Expecting: ",o=` +but found: '`+Lt(t).image+"'";if(r)return a+r+o;{let u=`expecting at least one iteration which starts with one of these possible Token sequences:: + <${F(e,c=>`[${F(c,f=>$n(f)).join(",")}]`).join(" ,")}>`;return a+u+o}}};Object.freeze(Ia);var KL={buildRuleNotFoundError(e,t){return"Invalid grammar, reference to a rule which is not defined: ->"+t.nonTerminalName+`<- +inside top level rule: ->`+e.name+"<-"}},gn={buildDuplicateFoundError(e,t){function r(f){return f instanceof ge?f.terminalType.name:f instanceof et?f.nonTerminalName:""}s(r,"getExtraProductionArgument");let n=e.name,a=Lt(t),i=a.idx,o=St(a),l=r(a),u=i>0,c=`->${o}${u?i:""}<- ${l?`with argument: ->${l}<-`:""} + appears more than once (${t.length} times) in the top level rule: ->${n}<-. + For further details see: https://chevrotain.io/docs/FAQ.html#NUMERICAL_SUFFIXES + `;return c=c.replace(/[ \t]+/g," "),c=c.replace(/\s\s+/g,` +`),c},buildNamespaceConflictError(e){return`Namespace conflict found in grammar. +The grammar has both a Terminal(Token) and a Non-Terminal(Rule) named: <${e.name}>. +To resolve this make sure each Terminal and Non-Terminal names are unique +This is easy to accomplish by using the convention that Terminal names start with an uppercase letter +and Non-Terminal names start with a lower case letter.`},buildAlternationPrefixAmbiguityError(e){let t=F(e.prefixPath,a=>$n(a)).join(", "),r=e.alternation.idx===0?"":e.alternation.idx;return`Ambiguous alternatives: <${e.ambiguityIndices.join(" ,")}> due to common lookahead prefix +in inside <${e.topLevelRule.name}> Rule, +<${t}> may appears as a prefix path in all these alternatives. +See: https://chevrotain.io/docs/guide/resolving_grammar_errors.html#COMMON_PREFIX +For Further details.`},buildAlternationAmbiguityError(e){let t=e.alternation.idx===0?"":e.alternation.idx,r=e.prefixPath.length===0,n=`Ambiguous Alternatives Detected: <${e.ambiguityIndices.join(" ,")}> in inside <${e.topLevelRule.name}> Rule, +`;if(r)n+=`These alternatives are all empty (match no tokens), making them indistinguishable. +Only the last alternative may be empty. +`;else{let a=F(e.prefixPath,i=>$n(i)).join(", ");n+=`<${a}> may appears as a prefix path in all these alternatives. +`}return n+=`See: https://chevrotain.io/docs/guide/resolving_grammar_errors.html#AMBIGUOUS_ALTERNATIVES +For Further details.`,n},buildEmptyRepetitionError(e){let t=St(e.repetition);return e.repetition.idx!==0&&(t+=e.repetition.idx),`The repetition <${t}> within Rule <${e.topLevelRule.name}> can never consume any tokens. +This could lead to an infinite loop.`},buildTokenNameError(e){return"deprecated"},buildEmptyAlternationError(e){return`Ambiguous empty alternative: <${e.emptyChoiceIdx+1}> in inside <${e.topLevelRule.name}> Rule. +Only the last alternative may be an empty alternative.`},buildTooManyAlternativesError(e){return`An Alternation cannot have more than 256 alternatives: + inside <${e.topLevelRule.name}> Rule. + has ${e.alternation.definition.length+1} alternatives.`},buildLeftRecursionError(e){let t=e.topLevelRule.name,r=F(e.leftRecursionPath,i=>i.name),n=`${t} --> ${r.concat([t]).join(" --> ")}`;return`Left Recursion found in grammar. +rule: <${t}> can be invoked from itself (directly or indirectly) +without consuming any Tokens. The grammar path that causes this is: + ${n} + To fix this refactor your grammar to remove the left recursion. +see: https://en.wikipedia.org/wiki/LL_parser#Left_factoring.`},buildInvalidRuleNameError(e){return"deprecated"},buildDuplicateRuleNameError(e){let t;return e.topLevelRule instanceof Ha?t=e.topLevelRule.name:t=e.topLevelRule,`Duplicate definition, rule: ->${t}<- is already defined in the grammar: ->${e.grammarName}<-`}};function fE(e,t){let r=new BL(e,t);return r.resolveRefs(),r.errors}s(fE,"resolveGrammar");var BL=class extends Ya{static{s(this,"GastRefResolverVisitor")}constructor(e,t){super(),this.nameToTopRule=e,this.errMsgProvider=t,this.errors=[]}resolveRefs(){B(xe(this.nameToTopRule),e=>{this.currTopLevel=e,e.accept(this)})}visitNonTerminal(e){let t=this.nameToTopRule[e.nonTerminalName];if(t)e.referencedRule=t;else{let r=this.errMsgProvider.buildRuleNotFoundError(this.currTopLevel,e);this.errors.push({message:r,type:tt.UNRESOLVED_SUBRULE_REF,ruleName:this.currTopLevel.name,unresolvedRefName:e.nonTerminalName})}}},qL=class extends su{static{s(this,"AbstractNextPossibleTokensWalker")}constructor(e,t){super(),this.topProd=e,this.path=t,this.possibleTokTypes=[],this.nextProductionName="",this.nextProductionOccurrence=0,this.found=!1,this.isAtEndOfPath=!1}startWalking(){if(this.found=!1,this.path.ruleStack[0]!==this.topProd.name)throw Error("The path does not start with the walker's top Rule!");return this.ruleStack=qe(this.path.ruleStack).reverse(),this.occurrenceStack=qe(this.path.occurrenceStack).reverse(),this.ruleStack.pop(),this.occurrenceStack.pop(),this.updateExpectedNext(),this.walk(this.topProd),this.possibleTokTypes}walk(e,t=[]){this.found||super.walk(e,t)}walkProdRef(e,t,r){if(e.referencedRule.name===this.nextProductionName&&e.idx===this.nextProductionOccurrence){let n=t.concat(r);this.updateExpectedNext(),this.walk(e.referencedRule,n)}}updateExpectedNext(){de(this.ruleStack)?(this.nextProductionName="",this.nextProductionOccurrence=0,this.isAtEndOfPath=!0):(this.nextProductionName=this.ruleStack.pop(),this.nextProductionOccurrence=this.occurrenceStack.pop())}},WL=class extends qL{static{s(this,"NextAfterTokenWalker")}constructor(e,t){super(e,t),this.path=t,this.nextTerminalName="",this.nextTerminalOccurrence=0,this.nextTerminalName=this.path.lastTok.name,this.nextTerminalOccurrence=this.path.lastTokOccurrence}walkTerminal(e,t,r){if(this.isAtEndOfPath&&e.terminalType.name===this.nextTerminalName&&e.idx===this.nextTerminalOccurrence&&!this.found){let n=t.concat(r),a=new ot({definition:n});this.possibleTokTypes=Xa(a),this.found=!0}}},lu=class extends su{static{s(this,"AbstractNextTerminalAfterProductionWalker")}constructor(e,t){super(),this.topRule=e,this.occurrence=t,this.result={token:void 0,occurrence:void 0,isEndOfRule:void 0}}startWalking(){return this.walk(this.topRule),this.result}},VL=class extends lu{static{s(this,"NextTerminalAfterManyWalker")}walkMany(e,t,r){if(e.idx===this.occurrence){let n=Lt(t.concat(r));this.result.isEndOfRule=n===void 0,n instanceof ge&&(this.result.token=n.terminalType,this.result.occurrence=n.idx)}else super.walkMany(e,t,r)}},Vh=class extends lu{static{s(this,"NextTerminalAfterManySepWalker")}walkManySep(e,t,r){if(e.idx===this.occurrence){let n=Lt(t.concat(r));this.result.isEndOfRule=n===void 0,n instanceof ge&&(this.result.token=n.terminalType,this.result.occurrence=n.idx)}else super.walkManySep(e,t,r)}},HL=class extends lu{static{s(this,"NextTerminalAfterAtLeastOneWalker")}walkAtLeastOne(e,t,r){if(e.idx===this.occurrence){let n=Lt(t.concat(r));this.result.isEndOfRule=n===void 0,n instanceof ge&&(this.result.token=n.terminalType,this.result.occurrence=n.idx)}else super.walkAtLeastOne(e,t,r)}},Hh=class extends lu{static{s(this,"NextTerminalAfterAtLeastOneSepWalker")}walkAtLeastOneSep(e,t,r){if(e.idx===this.occurrence){let n=Lt(t.concat(r));this.result.isEndOfRule=n===void 0,n instanceof ge&&(this.result.token=n.terminalType,this.result.occurrence=n.idx)}else super.walkAtLeastOneSep(e,t,r)}};function fl(e,t,r=[]){r=qe(r);let n=[],a=0;function i(l){return l.concat(Ke(e,a+1))}s(i,"remainingPathWith");function o(l){let u=fl(i(l),t,r);return n.concat(u)}for(s(o,"getAlternativesForProd");r.length{de(u.definition)===!1&&(n=o(u.definition))}),n;if(l instanceof ge)r.push(l.terminalType);else throw Error("non exhaustive match")}a++}return n.push({partialPath:r,suffixDef:Ke(e,a)}),n}s(fl,"possiblePathsFrom");function Hd(e,t,r,n){let a="EXIT_NONE_TERMINAL",i=[a],o="EXIT_ALTERNATIVE",l=!1,u=t.length,c=u-n-1,f=[],p=[];for(p.push({idx:-1,def:e,ruleStack:[],occurrenceStack:[]});!de(p);){let m=p.pop();if(m===o){l&&En(p).idx<=c&&p.pop();continue}let g=m.def,v=m.idx,_=m.ruleStack,S=m.occurrenceStack;if(de(g))continue;let I=g[0];if(I===a){let w={idx:v,def:Ke(g),ruleStack:ys(_),occurrenceStack:ys(S)};p.push(w)}else if(I instanceof ge)if(v=0;w--){let R=I.definition[w],P={idx:v,def:R.definition.concat(Ke(g)),ruleStack:_,occurrenceStack:S};p.push(P),p.push(o)}else if(I instanceof ot)p.push({idx:v,def:I.definition.concat(Ke(g)),ruleStack:_,occurrenceStack:S});else if(I instanceof Ha)p.push(pE(I,v,_,S));else throw Error("non exhaustive match")}return f}s(Hd,"nextPossibleTokensAfter");function pE(e,t,r,n){let a=qe(r);a.push(e.name);let i=qe(n);return i.push(1),{idx:t,def:e.definition,ruleStack:a,occurrenceStack:i}}s(pE,"expandTopLevelRule");var $e;(function(e){e[e.OPTION=0]="OPTION",e[e.REPETITION=1]="REPETITION",e[e.REPETITION_MANDATORY=2]="REPETITION_MANDATORY",e[e.REPETITION_MANDATORY_WITH_SEPARATOR=3]="REPETITION_MANDATORY_WITH_SEPARATOR",e[e.REPETITION_WITH_SEPARATOR=4]="REPETITION_WITH_SEPARATOR",e[e.ALTERNATION=5]="ALTERNATION"})($e||($e={}));function uu(e){if(e instanceof Be||e==="Option")return $e.OPTION;if(e instanceof Ce||e==="Repetition")return $e.REPETITION;if(e instanceof ht||e==="RepetitionMandatory")return $e.REPETITION_MANDATORY;if(e instanceof yt||e==="RepetitionMandatoryWithSeparator")return $e.REPETITION_MANDATORY_WITH_SEPARATOR;if(e instanceof lt||e==="RepetitionWithSeparator")return $e.REPETITION_WITH_SEPARATOR;if(e instanceof ut||e==="Alternation")return $e.ALTERNATION;throw Error("non exhaustive match")}s(uu,"getProdType");function _f(e){let{occurrence:t,rule:r,prodType:n,maxLookahead:a}=e,i=uu(n);return i===$e.ALTERNATION?qs(t,r,a):Ws(t,r,i,a)}s(_f,"getLookaheadPaths");function dE(e,t,r,n,a,i){let o=qs(e,t,r),l=Xd(o)?vs:Ja;return i(o,n,l,a)}s(dE,"buildLookaheadFuncForOr");function mE(e,t,r,n,a,i){let o=Ws(e,t,a,r),l=Xd(o)?vs:Ja;return i(o[0],l,n)}s(mE,"buildLookaheadFuncForOptionalProd");function hE(e,t,r,n){let a=e.length,i=kt(e,o=>kt(o,l=>l.length===1));if(t)return function(o){let l=F(o,u=>u.GATE);for(let u=0;uPt(u)),l=mt(o,(u,c,f)=>(B(c,p=>{U(u,p.tokenTypeIdx)||(u[p.tokenTypeIdx]=f),B(p.categoryMatches,m=>{U(u,m)||(u[m]=f)})}),u),{});return function(){let u=this.LA(1);return l[u.tokenTypeIdx]}}else return function(){for(let o=0;oi.length===1),a=e.length;if(n&&!r){let i=Pt(e);if(i.length===1&&de(i[0].categoryMatches)){let l=i[0].tokenTypeIdx;return function(){return this.LA(1).tokenTypeIdx===l}}else{let o=mt(i,(l,u,c)=>(l[u.tokenTypeIdx]=!0,B(u.categoryMatches,f=>{l[f]=!0}),l),[]);return function(){let l=this.LA(1);return o[l.tokenTypeIdx]===!0}}}else return function(){e:for(let i=0;ifl([o],1)),n=Sf(r.length),a=F(r,o=>{let l={};return B(o,u=>{let c=So(u.partialPath);B(c,f=>{l[f]=!0})}),l}),i=r;for(let o=1;o<=t;o++){let l=i;i=Sf(l.length);for(let u=0;u{let I=So(S.partialPath);B(I,w=>{a[u][w]=!0})})}}}}return n}s(Yd,"lookAheadSequenceFromAlternatives");function qs(e,t,r,n){let a=new gE(e,$e.ALTERNATION,n);return t.accept(a),Yd(a.result,r)}s(qs,"getLookaheadPathsForOr");function Ws(e,t,r,n){let a=new gE(e,r);t.accept(a);let i=a.result,l=new YL(t,e,r).startWalking(),u=new ot({definition:i}),c=new ot({definition:l});return Yd([u,c],n)}s(Ws,"getLookaheadPathsForOptionalProd");function pl(e,t){e:for(let r=0;r{let a=t[n];return r===a||a.categoryMatchesMap[r.tokenTypeIdx]})}s(TE,"isStrictPrefixOfPath");function Xd(e){return kt(e,t=>kt(t,r=>kt(r,n=>de(n.categoryMatches))))}s(Xd,"areTokenCategoriesNotUsed");function $E(e){let t=e.lookaheadStrategy.validate({rules:e.rules,tokenTypes:e.tokenTypes,grammarName:e.grammarName});return F(t,r=>Object.assign({type:tt.CUSTOM_LOOKAHEAD_VALIDATION},r))}s($E,"validateLookahead");function RE(e,t,r,n){let a=Tt(e,u=>AE(u,r)),i=kE(e,t,r),o=Tt(e,u=>wE(u,r)),l=Tt(e,u=>CE(u,e,n,r));return a.concat(i,o,l)}s(RE,"validateGrammar");function AE(e,t){let r=new XL;e.accept(r);let n=r.allProductions,a=cL(n,EE),i=Dt(a,l=>l.length>1);return F(xe(i),l=>{let u=Lt(l),c=t.buildDuplicateFoundError(e,l),f=St(u),p={message:c,type:tt.DUPLICATE_PRODUCTIONS,ruleName:e.name,dslName:f,occurrence:u.idx},m=Jd(u);return m&&(p.parameter=m),p})}s(AE,"validateDuplicateProductions");function EE(e){return`${St(e)}_#_${e.idx}_#_${Jd(e)}`}s(EE,"identifyProductionForDuplicates");function Jd(e){return e instanceof ge?e.terminalType.name:e instanceof et?e.nonTerminalName:""}s(Jd,"getExtraProductionArgument");var XL=class extends Ya{static{s(this,"OccurrenceValidationCollector")}constructor(){super(...arguments),this.allProductions=[]}visitNonTerminal(e){this.allProductions.push(e)}visitOption(e){this.allProductions.push(e)}visitRepetitionWithSeparator(e){this.allProductions.push(e)}visitRepetitionMandatory(e){this.allProductions.push(e)}visitRepetitionMandatoryWithSeparator(e){this.allProductions.push(e)}visitRepetition(e){this.allProductions.push(e)}visitAlternation(e){this.allProductions.push(e)}visitTerminal(e){this.allProductions.push(e)}};function CE(e,t,r,n){let a=[];if(mt(t,(o,l)=>l.name===e.name?o+1:o,0)>1){let o=n.buildDuplicateRuleNameError({topLevelRule:e,grammarName:r});a.push({message:o,type:tt.DUPLICATE_RULE_NAME,ruleName:e.name})}return a}s(CE,"validateRuleDoesNotAlreadyExist");function bE(e,t,r){let n=[],a;return nt(t,e)||(a=`Invalid rule override, rule: ->${e}<- cannot be overridden in the grammar: ->${r}<-as it is not defined in any of the super grammars `,n.push({message:a,type:tt.INVALID_RULE_OVERRIDE,ruleName:e})),n}s(bE,"validateRuleIsOverridden");function Zd(e,t,r,n=[]){let a=[],i=ss(t.definition);if(de(i))return[];{let o=e.name;nt(i,e)&&a.push({message:r.buildLeftRecursionError({topLevelRule:e,leftRecursionPath:n}),type:tt.LEFT_RECURSION,ruleName:o});let u=au(i,n.concat([e])),c=Tt(u,f=>{let p=qe(n);return p.push(f),Zd(e,f,r,p)});return a.concat(c)}}s(Zd,"validateNoLeftRecursion");function ss(e){let t=[];if(de(e))return t;let r=Lt(e);if(r instanceof et)t.push(r.referencedRule);else if(r instanceof ot||r instanceof Be||r instanceof ht||r instanceof yt||r instanceof lt||r instanceof Ce)t=t.concat(ss(r.definition));else if(r instanceof ut)t=Pt(F(r.definition,i=>ss(i.definition)));else if(!(r instanceof ge))throw Error("non exhaustive match");let n=gs(r),a=e.length>1;if(n&&a){let i=Ke(e);return t.concat(ss(i))}else return t}s(ss,"getFirstNoneTerminal");var Qd=class extends Ya{static{s(this,"OrCollector")}constructor(){super(...arguments),this.alternations=[]}visitAlternation(e){this.alternations.push(e)}};function _E(e,t){let r=new Qd;e.accept(r);let n=r.alternations;return Tt(n,i=>{let o=ys(i.definition);return Tt(o,(l,u)=>{let c=Hd([l],[],Ja,1);return de(c)?[{message:t.buildEmptyAlternationError({topLevelRule:e,alternation:i,emptyChoiceIdx:u}),type:tt.NONE_LAST_EMPTY_ALT,ruleName:e.name,occurrence:i.idx,alternative:u+1}]:[]})})}s(_E,"validateEmptyOrAlternative");function SE(e,t,r){let n=new Qd;e.accept(n);let a=n.alternations;return a=iu(a,o=>o.ignoreAmbiguities===!0),Tt(a,o=>{let l=o.idx,u=o.maxLookahead||t,c=qs(l,e,u,o),f=NE(c,o,e,r),p=PE(c,o,e,r);return f.concat(p)})}s(SE,"validateAmbiguousAlternationAlternatives");var JL=class extends Ya{static{s(this,"RepetitionCollector")}constructor(){super(...arguments),this.allProductions=[]}visitRepetitionWithSeparator(e){this.allProductions.push(e)}visitRepetitionMandatory(e){this.allProductions.push(e)}visitRepetitionMandatoryWithSeparator(e){this.allProductions.push(e)}visitRepetition(e){this.allProductions.push(e)}};function wE(e,t){let r=new Qd;e.accept(r);let n=r.alternations;return Tt(n,i=>i.definition.length>255?[{message:t.buildTooManyAlternativesError({topLevelRule:e,alternation:i}),type:tt.TOO_MANY_ALTS,ruleName:e.name,occurrence:i.idx}]:[])}s(wE,"validateTooManyAlts");function IE(e,t,r){let n=[];return B(e,a=>{let i=new JL;a.accept(i);let o=i.allProductions;B(o,l=>{let u=uu(l),c=l.maxLookahead||t,f=l.idx,m=Ws(f,a,u,c)[0];if(de(Pt(m))){let g=r.buildEmptyRepetitionError({topLevelRule:a,repetition:l});n.push({message:g,type:tt.NO_NON_EMPTY_LOOKAHEAD,ruleName:a.name})}})}),n}s(IE,"validateSomeNonEmptyLookaheadPath");function NE(e,t,r,n){let a=[],i=mt(e,(l,u,c)=>(t.definition[c].ignoreAmbiguities===!0||B(u,f=>{let p=[c];B(e,(m,g)=>{c!==g&&pl(m,f)&&t.definition[g].ignoreAmbiguities!==!0&&p.push(g)}),p.length>1&&!pl(a,f)&&(a.push(f),l.push({alts:p,path:f}))}),l),[]);return F(i,l=>{let u=F(l.alts,f=>f+1);return{message:n.buildAlternationAmbiguityError({topLevelRule:r,alternation:t,ambiguityIndices:u,prefixPath:l.path}),type:tt.AMBIGUOUS_ALTS,ruleName:r.name,occurrence:t.idx,alternatives:l.alts}})}s(NE,"checkAlternativesAmbiguities");function PE(e,t,r,n){let a=mt(e,(o,l,u)=>{let c=F(l,f=>({idx:u,path:f}));return o.concat(c)},[]);return Us(Tt(a,o=>{if(t.definition[o.idx].ignoreAmbiguities===!0)return[];let u=o.idx,c=o.path,f=Et(a,m=>t.definition[m.idx].ignoreAmbiguities!==!0&&m.idx{let g=[m.idx+1,u+1],v=t.idx===0?"":t.idx;return{message:n.buildAlternationPrefixAmbiguityError({topLevelRule:r,alternation:t,ambiguityIndices:g,prefixPath:m.path}),type:tt.AMBIGUOUS_PREFIX_ALTS,ruleName:r.name,occurrence:v,alternatives:g}})}))}s(PE,"checkPrefixAlternativesAmbiguities");function kE(e,t,r){let n=[],a=F(t,i=>i.name);return B(e,i=>{let o=i.name;if(nt(a,o)){let l=r.buildNamespaceConflictError(i);n.push({message:l,type:tt.CONFLICT_TOKENS_RULES_NAMESPACE,ruleName:o})}}),n}s(kE,"checkTerminalAndNoneTerminalsNameSpace");function OE(e){let t=xd(e,{errMsgProvider:KL}),r={};return B(e.rules,n=>{r[n.name]=n}),fE(r,t.errMsgProvider)}s(OE,"resolveGrammar");function LE(e){return e=xd(e,{errMsgProvider:gn}),RE(e.rules,e.tokenTypes,e.errMsgProvider,e.grammarName)}s(LE,"validateGrammar");var DE="MismatchedTokenException",xE="NoViableAltException",ME="EarlyExitException",GE="NotAllInputParsedException",FE=[DE,xE,ME,GE];Object.freeze(FE);function Ts(e){return nt(FE,e.name)}s(Ts,"isRecognitionException");var cu=class extends Error{static{s(this,"RecognitionException")}constructor(e,t){super(e),this.token=t,this.resyncedTokens=[],Object.setPrototypeOf(this,new.target.prototype),Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)}},zE=class extends cu{static{s(this,"MismatchedTokenException")}constructor(e,t,r){super(e,t),this.previousToken=r,this.name=DE}},ZL=class extends cu{static{s(this,"NoViableAltException")}constructor(e,t,r){super(e,t),this.previousToken=r,this.name=xE}},QL=class extends cu{static{s(this,"NotAllInputParsedException")}constructor(e,t){super(e,t),this.name=GE}},eD=class extends cu{static{s(this,"EarlyExitException")}constructor(e,t,r){super(e,t),this.previousToken=r,this.name=ME}},ju={},jE="InRuleRecoveryException",tD=class extends Error{static{s(this,"InRuleRecoveryException")}constructor(e){super(e),this.name=jE}},rD=class{static{s(this,"Recoverable")}initRecoverable(e){this.firstAfterRepMap={},this.resyncFollows={},this.recoveryEnabled=U(e,"recoveryEnabled")?e.recoveryEnabled:vr.recoveryEnabled,this.recoveryEnabled&&(this.attemptInRepetitionRecovery=UE)}getTokenToInsert(e){let t=Bs(e,"",NaN,NaN,NaN,NaN,NaN,NaN);return t.isInsertedInRecovery=!0,t}canTokenTypeBeInsertedInRecovery(e){return!0}canTokenTypeBeDeletedInRecovery(e){return!0}tryInRepetitionRecovery(e,t,r,n){let a=this.findReSyncTokenType(),i=this.exportLexerState(),o=[],l=!1,u=this.LA(1),c=this.LA(1),f=s(()=>{let p=this.LA(0),m=this.errorMessageProvider.buildMismatchTokenMessage({expected:n,actual:u,previous:p,ruleName:this.getCurrRuleFullName()}),g=new zE(m,u,this.LA(0));g.resyncedTokens=ys(o),this.SAVE_ERROR(g)},"generateErrorMessage");for(;!l;)if(this.tokenMatcher(c,n)){f();return}else if(r.call(this)){f(),e.apply(this,t);return}else this.tokenMatcher(c,a)?l=!0:(c=this.SKIP_TOKEN(),this.addToResyncTokens(c,o));this.importLexerState(i)}shouldInRepetitionRecoveryBeTried(e,t,r){return!(r===!1||this.tokenMatcher(this.LA(1),e)||this.isBackTracking()||this.canPerformInRuleRecovery(e,this.getFollowsForInRuleRecovery(e,t)))}getFollowsForInRuleRecovery(e,t){let r=this.getCurrentGrammarPath(e,t);return this.getNextPossibleTokenTypes(r)}tryInRuleRecovery(e,t){if(this.canRecoverWithSingleTokenInsertion(e,t))return this.getTokenToInsert(e);if(this.canRecoverWithSingleTokenDeletion(e)){let r=this.SKIP_TOKEN();return this.consumeToken(),r}throw new tD("sad sad panda")}canPerformInRuleRecovery(e,t){return this.canRecoverWithSingleTokenInsertion(e,t)||this.canRecoverWithSingleTokenDeletion(e)}canRecoverWithSingleTokenInsertion(e,t){if(!this.canTokenTypeBeInsertedInRecovery(e)||de(t))return!1;let r=this.LA(1);return Ua(t,a=>this.tokenMatcher(r,a))!==void 0}canRecoverWithSingleTokenDeletion(e){return this.canTokenTypeBeDeletedInRecovery(e)?this.tokenMatcher(this.LA(2),e):!1}isInCurrentRuleReSyncSet(e){let t=this.getCurrFollowKey(),r=this.getFollowSetFromFollowKey(t);return nt(r,e)}findReSyncTokenType(){let e=this.flattenFollowSet(),t=this.LA(1),r=2;for(;;){let n=Ua(e,a=>Vd(t,a));if(n!==void 0)return n;t=this.LA(r),r++}}getCurrFollowKey(){if(this.RULE_STACK.length===1)return ju;let e=this.getLastExplicitRuleShortName(),t=this.getLastExplicitRuleOccurrenceIndex(),r=this.getPreviousExplicitRuleShortName();return{ruleName:this.shortRuleNameToFullName(e),idxInCallingRule:t,inRule:this.shortRuleNameToFullName(r)}}buildFullFollowKeyStack(){let e=this.RULE_STACK,t=this.RULE_OCCURRENCE_STACK;return F(e,(r,n)=>n===0?ju:{ruleName:this.shortRuleNameToFullName(r),idxInCallingRule:t[n],inRule:this.shortRuleNameToFullName(e[n-1])})}flattenFollowSet(){let e=F(this.buildFullFollowKeyStack(),t=>this.getFollowSetFromFollowKey(t));return Pt(e)}getFollowSetFromFollowKey(e){if(e===ju)return[Lr];let t=e.ruleName+e.idxInCallingRule+SA+e.inRule;return this.resyncFollows[t]}addToResyncTokens(e,t){return this.tokenMatcher(e,Lr)||t.push(e),t}reSyncTo(e){let t=[],r=this.LA(1);for(;this.tokenMatcher(r,e)===!1;)r=this.SKIP_TOKEN(),this.addToResyncTokens(r,t);return ys(t)}attemptInRepetitionRecovery(e,t,r,n,a,i,o){}getCurrentGrammarPath(e,t){let r=this.getHumanReadableRuleStack(),n=qe(this.RULE_OCCURRENCE_STACK);return{ruleStack:r,occurrenceStack:n,lastTok:e,lastTokOccurrence:t}}getHumanReadableRuleStack(){return F(this.RULE_STACK,e=>this.shortRuleNameToFullName(e))}};function UE(e,t,r,n,a,i,o){let l=this.getKeyForAutomaticLookahead(n,a),u=this.firstAfterRepMap[l];if(u===void 0){let m=this.getCurrRuleFullName(),g=this.getGAstProductions()[m];u=new i(g,a).startWalking(),this.firstAfterRepMap[l]=u}let c=u.token,f=u.occurrence,p=u.isEndOfRule;this.RULE_STACK.length===1&&p&&c===void 0&&(c=Lr,f=1),!(c===void 0||f===void 0)&&this.shouldInRepetitionRecoveryBeTried(c,f,o)&&this.tryInRepetitionRecovery(e,t,r,c)}s(UE,"attemptInRepetitionRecovery");var nD=4,zr=8,aD=8,KE=1<Zd(t,t,gn))}validateEmptyOrAlternatives(e){return Tt(e,t=>_E(t,gn))}validateAmbiguousAlternationAlternatives(e,t){return Tt(e,r=>SE(r,t,gn))}validateSomeNonEmptyLookaheadPath(e,t){return IE(e,t,gn)}buildLookaheadForAlternation(e){return dE(e.prodOccurrence,e.rule,e.maxLookahead,e.hasPredicates,e.dynamicTokensEnabled,hE)}buildLookaheadForOptional(e){return mE(e.prodOccurrence,e.rule,e.maxLookahead,e.dynamicTokensEnabled,uu(e.prodType),yE)}},iD=class{static{s(this,"LooksAhead")}initLooksAhead(e){this.dynamicTokensEnabled=U(e,"dynamicTokensEnabled")?e.dynamicTokensEnabled:vr.dynamicTokensEnabled,this.maxLookahead=U(e,"maxLookahead")?e.maxLookahead:vr.maxLookahead,this.lookaheadStrategy=U(e,"lookaheadStrategy")?e.lookaheadStrategy:new em({maxLookahead:this.maxLookahead}),this.lookAheadFuncsCache=new Map}preComputeLookaheadFunctions(e){B(e,t=>{this.TRACE_INIT(`${t.name} Rule Lookahead`,()=>{let{alternation:r,repetition:n,option:a,repetitionMandatory:i,repetitionMandatoryWithSeparator:o,repetitionWithSeparator:l}=qE(t);B(r,u=>{let c=u.idx===0?"":u.idx;this.TRACE_INIT(`${St(u)}${c}`,()=>{let f=this.lookaheadStrategy.buildLookaheadForAlternation({prodOccurrence:u.idx,rule:t,maxLookahead:u.maxLookahead||this.maxLookahead,hasPredicates:u.hasPredicates,dynamicTokensEnabled:this.dynamicTokensEnabled}),p=Io(this.fullRuleNameToShort[t.name],KE,u.idx);this.setLaFuncCache(p,f)})}),B(n,u=>{this.computeLookaheadFunc(t,u.idx,wf,"Repetition",u.maxLookahead,St(u))}),B(a,u=>{this.computeLookaheadFunc(t,u.idx,BE,"Option",u.maxLookahead,St(u))}),B(i,u=>{this.computeLookaheadFunc(t,u.idx,If,"RepetitionMandatory",u.maxLookahead,St(u))}),B(o,u=>{this.computeLookaheadFunc(t,u.idx,wo,"RepetitionMandatoryWithSeparator",u.maxLookahead,St(u))}),B(l,u=>{this.computeLookaheadFunc(t,u.idx,Nf,"RepetitionWithSeparator",u.maxLookahead,St(u))})})})}computeLookaheadFunc(e,t,r,n,a,i){this.TRACE_INIT(`${i}${t===0?"":t}`,()=>{let o=this.lookaheadStrategy.buildLookaheadForOptional({prodOccurrence:t,rule:e,maxLookahead:a||this.maxLookahead,dynamicTokensEnabled:this.dynamicTokensEnabled,prodType:n}),l=Io(this.fullRuleNameToShort[e.name],r,t);this.setLaFuncCache(l,o)})}getKeyForAutomaticLookahead(e,t){let r=this.getLastExplicitRuleShortName();return Io(r,e,t)}getLaFuncFromCache(e){return this.lookAheadFuncsCache.get(e)}setLaFuncCache(e,t){this.lookAheadFuncsCache.set(e,t)}},sD=class extends Ya{static{s(this,"DslMethodsCollectorVisitor")}constructor(){super(...arguments),this.dslMethods={option:[],alternation:[],repetition:[],repetitionWithSeparator:[],repetitionMandatory:[],repetitionMandatoryWithSeparator:[]}}reset(){this.dslMethods={option:[],alternation:[],repetition:[],repetitionWithSeparator:[],repetitionMandatory:[],repetitionMandatoryWithSeparator:[]}}visitOption(e){this.dslMethods.option.push(e)}visitRepetitionWithSeparator(e){this.dslMethods.repetitionWithSeparator.push(e)}visitRepetitionMandatory(e){this.dslMethods.repetitionMandatory.push(e)}visitRepetitionMandatoryWithSeparator(e){this.dslMethods.repetitionMandatoryWithSeparator.push(e)}visitRepetition(e){this.dslMethods.repetition.push(e)}visitAlternation(e){this.dslMethods.alternation.push(e)}},Zs=new sD;function qE(e){Zs.reset(),e.accept(Zs);let t=Zs.dslMethods;return Zs.reset(),t}s(qE,"collectMethods");function Pf(e,t){isNaN(e.startOffset)===!0?(e.startOffset=t.startOffset,e.endOffset=t.endOffset):e.endOffseto.msg);throw Error(`Errors Detected in CST Visitor <${this.constructor.name}>: + ${i.join(` + +`).replace(/\n/g,` + `)}`)}},"validateVisitor")};return r.prototype=n,r.prototype.constructor=r,r._RULE_NAMES=t,r}s(YE,"createBaseSemanticVisitorConstructor");function XE(e,t,r){let n=s(function(){},"derivedConstructor");tm(n,e+"BaseSemanticsWithDefaults");let a=Object.create(r.prototype);return B(t,i=>{a[i]=HE}),n.prototype=a,n.prototype.constructor=n,n}s(XE,"createBaseVisitorConstructorWithDefaults");var Of;(function(e){e[e.REDUNDANT_METHOD=0]="REDUNDANT_METHOD",e[e.MISSING_METHOD=1]="MISSING_METHOD"})(Of||(Of={}));function JE(e,t){return ZE(e,t)}s(JE,"validateVisitor");function ZE(e,t){let r=Et(t,a=>Ar(e[a])===!1),n=F(r,a=>({msg:`Missing visitor method: <${a}> on ${e.constructor.name} CST Visitor.`,type:Of.MISSING_METHOD,methodName:a}));return Us(n)}s(ZE,"validateMissingCstMethods");var lD=class{static{s(this,"TreeBuilder")}initTreeBuilder(e){if(this.CST_STACK=[],this.outputCst=e.outputCst,this.nodeLocationTracking=U(e,"nodeLocationTracking")?e.nodeLocationTracking:vr.nodeLocationTracking,!this.outputCst)this.cstInvocationStateUpdate=Ge,this.cstFinallyStateUpdate=Ge,this.cstPostTerminal=Ge,this.cstPostNonTerminal=Ge,this.cstPostRule=Ge;else if(/full/i.test(this.nodeLocationTracking))this.recoveryEnabled?(this.setNodeLocationFromToken=kf,this.setNodeLocationFromNode=kf,this.cstPostRule=Ge,this.setInitialNodeLocation=this.setInitialNodeLocationFullRecovery):(this.setNodeLocationFromToken=Ge,this.setNodeLocationFromNode=Ge,this.cstPostRule=this.cstPostRuleFull,this.setInitialNodeLocation=this.setInitialNodeLocationFullRegular);else if(/onlyOffset/i.test(this.nodeLocationTracking))this.recoveryEnabled?(this.setNodeLocationFromToken=Pf,this.setNodeLocationFromNode=Pf,this.cstPostRule=Ge,this.setInitialNodeLocation=this.setInitialNodeLocationOnlyOffsetRecovery):(this.setNodeLocationFromToken=Ge,this.setNodeLocationFromNode=Ge,this.cstPostRule=this.cstPostRuleOnlyOffset,this.setInitialNodeLocation=this.setInitialNodeLocationOnlyOffsetRegular);else if(/none/i.test(this.nodeLocationTracking))this.setNodeLocationFromToken=Ge,this.setNodeLocationFromNode=Ge,this.cstPostRule=Ge,this.setInitialNodeLocation=Ge;else throw Error(`Invalid config option: "${e.nodeLocationTracking}"`)}setInitialNodeLocationOnlyOffsetRecovery(e){e.location={startOffset:NaN,endOffset:NaN}}setInitialNodeLocationOnlyOffsetRegular(e){e.location={startOffset:this.LA(1).startOffset,endOffset:NaN}}setInitialNodeLocationFullRecovery(e){e.location={startOffset:NaN,startLine:NaN,startColumn:NaN,endOffset:NaN,endLine:NaN,endColumn:NaN}}setInitialNodeLocationFullRegular(e){let t=this.LA(1);e.location={startOffset:t.startOffset,startLine:t.startLine,startColumn:t.startColumn,endOffset:NaN,endLine:NaN,endColumn:NaN}}cstInvocationStateUpdate(e){let t={name:e,children:Object.create(null)};this.setInitialNodeLocation(t),this.CST_STACK.push(t)}cstFinallyStateUpdate(){this.CST_STACK.pop()}cstPostRuleFull(e){let t=this.LA(0),r=e.location;r.startOffset<=t.startOffset?(r.endOffset=t.endOffset,r.endLine=t.endLine,r.endColumn=t.endColumn):(r.startOffset=NaN,r.startLine=NaN,r.startColumn=NaN)}cstPostRuleOnlyOffset(e){let t=this.LA(0),r=e.location;r.startOffset<=t.startOffset?r.endOffset=t.endOffset:r.startOffset=NaN}cstPostTerminal(e,t){let r=this.CST_STACK[this.CST_STACK.length-1];WE(r,t,e),this.setNodeLocationFromToken(r.location,t)}cstPostNonTerminal(e,t){let r=this.CST_STACK[this.CST_STACK.length-1];VE(r,t,e),this.setNodeLocationFromNode(r.location,e.location)}getBaseCstVisitorConstructor(){if(yr(this.baseCstVisitorConstructor)){let e=YE(this.className,pt(this.gastProductionsCache));return this.baseCstVisitorConstructor=e,e}return this.baseCstVisitorConstructor}getBaseCstVisitorConstructorWithDefaults(){if(yr(this.baseCstVisitorWithDefaultsConstructor)){let e=XE(this.className,pt(this.gastProductionsCache),this.getBaseCstVisitorConstructor());return this.baseCstVisitorWithDefaultsConstructor=e,e}return this.baseCstVisitorWithDefaultsConstructor}getLastExplicitRuleShortName(){let e=this.RULE_STACK;return e[e.length-1]}getPreviousExplicitRuleShortName(){let e=this.RULE_STACK;return e[e.length-2]}getLastExplicitRuleOccurrenceIndex(){let e=this.RULE_OCCURRENCE_STACK;return e[e.length-1]}},uD=class{static{s(this,"LexerAdapter")}initLexerAdapter(){this.tokVector=[],this.tokVectorLength=0,this.currIdx=-1}set input(e){if(this.selfAnalysisDone!==!0)throw Error("Missing invocation at the end of the Parser's constructor.");this.reset(),this.tokVector=e,this.tokVectorLength=e.length}get input(){return this.tokVector}SKIP_TOKEN(){return this.currIdx<=this.tokVector.length-2?(this.consumeToken(),this.LA(1)):dl}LA(e){let t=this.currIdx+e;return t<0||this.tokVectorLength<=t?dl:this.tokVector[t]}consumeToken(){this.currIdx++}exportLexerState(){return this.currIdx}importLexerState(e){this.currIdx=e}resetLexerState(){this.currIdx=-1}moveToTerminatedState(){this.currIdx=this.tokVector.length-1}getLexerPosition(){return this.exportLexerState()}},cD=class{static{s(this,"RecognizerApi")}ACTION(e){return e.call(this)}consume(e,t,r){return this.consumeInternal(t,e,r)}subrule(e,t,r){return this.subruleInternal(t,e,r)}option(e,t){return this.optionInternal(t,e)}or(e,t){return this.orInternal(t,e)}many(e,t){return this.manyInternal(e,t)}atLeastOne(e,t){return this.atLeastOneInternal(e,t)}CONSUME(e,t){return this.consumeInternal(e,0,t)}CONSUME1(e,t){return this.consumeInternal(e,1,t)}CONSUME2(e,t){return this.consumeInternal(e,2,t)}CONSUME3(e,t){return this.consumeInternal(e,3,t)}CONSUME4(e,t){return this.consumeInternal(e,4,t)}CONSUME5(e,t){return this.consumeInternal(e,5,t)}CONSUME6(e,t){return this.consumeInternal(e,6,t)}CONSUME7(e,t){return this.consumeInternal(e,7,t)}CONSUME8(e,t){return this.consumeInternal(e,8,t)}CONSUME9(e,t){return this.consumeInternal(e,9,t)}SUBRULE(e,t){return this.subruleInternal(e,0,t)}SUBRULE1(e,t){return this.subruleInternal(e,1,t)}SUBRULE2(e,t){return this.subruleInternal(e,2,t)}SUBRULE3(e,t){return this.subruleInternal(e,3,t)}SUBRULE4(e,t){return this.subruleInternal(e,4,t)}SUBRULE5(e,t){return this.subruleInternal(e,5,t)}SUBRULE6(e,t){return this.subruleInternal(e,6,t)}SUBRULE7(e,t){return this.subruleInternal(e,7,t)}SUBRULE8(e,t){return this.subruleInternal(e,8,t)}SUBRULE9(e,t){return this.subruleInternal(e,9,t)}OPTION(e){return this.optionInternal(e,0)}OPTION1(e){return this.optionInternal(e,1)}OPTION2(e){return this.optionInternal(e,2)}OPTION3(e){return this.optionInternal(e,3)}OPTION4(e){return this.optionInternal(e,4)}OPTION5(e){return this.optionInternal(e,5)}OPTION6(e){return this.optionInternal(e,6)}OPTION7(e){return this.optionInternal(e,7)}OPTION8(e){return this.optionInternal(e,8)}OPTION9(e){return this.optionInternal(e,9)}OR(e){return this.orInternal(e,0)}OR1(e){return this.orInternal(e,1)}OR2(e){return this.orInternal(e,2)}OR3(e){return this.orInternal(e,3)}OR4(e){return this.orInternal(e,4)}OR5(e){return this.orInternal(e,5)}OR6(e){return this.orInternal(e,6)}OR7(e){return this.orInternal(e,7)}OR8(e){return this.orInternal(e,8)}OR9(e){return this.orInternal(e,9)}MANY(e){this.manyInternal(0,e)}MANY1(e){this.manyInternal(1,e)}MANY2(e){this.manyInternal(2,e)}MANY3(e){this.manyInternal(3,e)}MANY4(e){this.manyInternal(4,e)}MANY5(e){this.manyInternal(5,e)}MANY6(e){this.manyInternal(6,e)}MANY7(e){this.manyInternal(7,e)}MANY8(e){this.manyInternal(8,e)}MANY9(e){this.manyInternal(9,e)}MANY_SEP(e){this.manySepFirstInternal(0,e)}MANY_SEP1(e){this.manySepFirstInternal(1,e)}MANY_SEP2(e){this.manySepFirstInternal(2,e)}MANY_SEP3(e){this.manySepFirstInternal(3,e)}MANY_SEP4(e){this.manySepFirstInternal(4,e)}MANY_SEP5(e){this.manySepFirstInternal(5,e)}MANY_SEP6(e){this.manySepFirstInternal(6,e)}MANY_SEP7(e){this.manySepFirstInternal(7,e)}MANY_SEP8(e){this.manySepFirstInternal(8,e)}MANY_SEP9(e){this.manySepFirstInternal(9,e)}AT_LEAST_ONE(e){this.atLeastOneInternal(0,e)}AT_LEAST_ONE1(e){return this.atLeastOneInternal(1,e)}AT_LEAST_ONE2(e){this.atLeastOneInternal(2,e)}AT_LEAST_ONE3(e){this.atLeastOneInternal(3,e)}AT_LEAST_ONE4(e){this.atLeastOneInternal(4,e)}AT_LEAST_ONE5(e){this.atLeastOneInternal(5,e)}AT_LEAST_ONE6(e){this.atLeastOneInternal(6,e)}AT_LEAST_ONE7(e){this.atLeastOneInternal(7,e)}AT_LEAST_ONE8(e){this.atLeastOneInternal(8,e)}AT_LEAST_ONE9(e){this.atLeastOneInternal(9,e)}AT_LEAST_ONE_SEP(e){this.atLeastOneSepFirstInternal(0,e)}AT_LEAST_ONE_SEP1(e){this.atLeastOneSepFirstInternal(1,e)}AT_LEAST_ONE_SEP2(e){this.atLeastOneSepFirstInternal(2,e)}AT_LEAST_ONE_SEP3(e){this.atLeastOneSepFirstInternal(3,e)}AT_LEAST_ONE_SEP4(e){this.atLeastOneSepFirstInternal(4,e)}AT_LEAST_ONE_SEP5(e){this.atLeastOneSepFirstInternal(5,e)}AT_LEAST_ONE_SEP6(e){this.atLeastOneSepFirstInternal(6,e)}AT_LEAST_ONE_SEP7(e){this.atLeastOneSepFirstInternal(7,e)}AT_LEAST_ONE_SEP8(e){this.atLeastOneSepFirstInternal(8,e)}AT_LEAST_ONE_SEP9(e){this.atLeastOneSepFirstInternal(9,e)}RULE(e,t,r=ml){if(nt(this.definedRulesNames,e)){let i={message:gn.buildDuplicateRuleNameError({topLevelRule:e,grammarName:this.className}),type:tt.DUPLICATE_RULE_NAME,ruleName:e};this.definitionErrors.push(i)}this.definedRulesNames.push(e);let n=this.defineRule(e,t,r);return this[e]=n,n}OVERRIDE_RULE(e,t,r=ml){let n=bE(e,this.definedRulesNames,this.className);this.definitionErrors=this.definitionErrors.concat(n);let a=this.defineRule(e,t,r);return this[e]=a,a}BACKTRACK(e,t){return function(){this.isBackTrackingStack.push(1);let r=this.saveRecogState();try{return e.apply(this,t),!0}catch(n){if(Ts(n))return!1;throw n}finally{this.reloadRecogState(r),this.isBackTrackingStack.pop()}}}getGAstProductions(){return this.gastProductionsCache}getSerializedGastProductions(){return RA(xe(this.gastProductionsCache))}},fD=class{static{s(this,"RecognizerEngine")}initRecognizerEngine(e,t){if(this.className=this.constructor.name,this.shortRuleNameToFull={},this.fullRuleNameToShort={},this.ruleShortNameIdx=256,this.tokenMatcher=vs,this.subruleIdx=0,this.definedRulesNames=[],this.tokensMap={},this.isBackTrackingStack=[],this.RULE_STACK=[],this.RULE_OCCURRENCE_STACK=[],this.gastProductionsCache={},U(t,"serializedGrammar"))throw Error(`The Parser's configuration can no longer contain a property. + See: https://chevrotain.io/docs/changes/BREAKING_CHANGES.html#_6-0-0 + For Further details.`);if(te(e)){if(de(e))throw Error(`A Token Vocabulary cannot be empty. + Note that the first argument for the parser constructor + is no longer a Token vector (since v4.0).`);if(typeof e[0].startOffset=="number")throw Error(`The Parser constructor no longer accepts a token vector as the first argument. + See: https://chevrotain.io/docs/changes/BREAKING_CHANGES.html#_4-0-0 + For Further details.`)}if(te(e))this.tokensMap=mt(e,(a,i)=>(a[i.name]=i,a),{});else if(U(e,"modes")&&kt(Pt(xe(e.modes)),uE)){let a=Pt(xe(e.modes)),i=Md(a);this.tokensMap=mt(i,(o,l)=>(o[l.name]=l,o),{})}else if(Rt(e))this.tokensMap=qe(e);else throw new Error(" argument must be An Array of Token constructors, A dictionary of Token constructors or an IMultiModeLexerDefinition");this.tokensMap.EOF=Lr;let r=U(e,"modes")?Pt(xe(e.modes)):xe(e),n=kt(r,a=>de(a.categoryMatches));this.tokenMatcher=n?vs:Ja,Za(xe(this.tokensMap))}defineRule(e,t,r){if(this.selfAnalysisDone)throw Error(`Grammar rule <${e}> may not be defined after the 'performSelfAnalysis' method has been called' +Make sure that all grammar rule definitions are done before 'performSelfAnalysis' is called.`);let n=U(r,"resyncEnabled")?r.resyncEnabled:ml.resyncEnabled,a=U(r,"recoveryValueFunc")?r.recoveryValueFunc:ml.recoveryValueFunc,i=this.ruleShortNameIdx<i.call(this)&&o.call(this),"lookAheadFunc")}}else a=e;if(n.call(this)===!0)return a.call(this)}atLeastOneInternal(e,t){let r=this.getKeyForAutomaticLookahead(If,e);return this.atLeastOneInternalLogic(e,t,r)}atLeastOneInternalLogic(e,t,r){let n=this.getLaFuncFromCache(r),a;if(typeof t!="function"){a=t.DEF;let i=t.GATE;if(i!==void 0){let o=n;n=s(()=>i.call(this)&&o.call(this),"lookAheadFunc")}}else a=t;if(n.call(this)===!0){let i=this.doSingleRepetition(a);for(;n.call(this)===!0&&i===!0;)i=this.doSingleRepetition(a)}else throw this.raiseEarlyExitException(e,$e.REPETITION_MANDATORY,t.ERR_MSG);this.attemptInRepetitionRecovery(this.atLeastOneInternal,[e,t],n,If,e,HL)}atLeastOneSepFirstInternal(e,t){let r=this.getKeyForAutomaticLookahead(wo,e);this.atLeastOneSepFirstInternalLogic(e,t,r)}atLeastOneSepFirstInternalLogic(e,t,r){let n=t.DEF,a=t.SEP;if(this.getLaFuncFromCache(r).call(this)===!0){n.call(this);let o=s(()=>this.tokenMatcher(this.LA(1),a),"separatorLookAheadFunc");for(;this.tokenMatcher(this.LA(1),a)===!0;)this.CONSUME(a),n.call(this);this.attemptInRepetitionRecovery(this.repetitionSepSecondInternal,[e,a,o,n,Hh],o,wo,e,Hh)}else throw this.raiseEarlyExitException(e,$e.REPETITION_MANDATORY_WITH_SEPARATOR,t.ERR_MSG)}manyInternal(e,t){let r=this.getKeyForAutomaticLookahead(wf,e);return this.manyInternalLogic(e,t,r)}manyInternalLogic(e,t,r){let n=this.getLaFuncFromCache(r),a;if(typeof t!="function"){a=t.DEF;let o=t.GATE;if(o!==void 0){let l=n;n=s(()=>o.call(this)&&l.call(this),"lookaheadFunction")}}else a=t;let i=!0;for(;n.call(this)===!0&&i===!0;)i=this.doSingleRepetition(a);this.attemptInRepetitionRecovery(this.manyInternal,[e,t],n,wf,e,VL,i)}manySepFirstInternal(e,t){let r=this.getKeyForAutomaticLookahead(Nf,e);this.manySepFirstInternalLogic(e,t,r)}manySepFirstInternalLogic(e,t,r){let n=t.DEF,a=t.SEP;if(this.getLaFuncFromCache(r).call(this)===!0){n.call(this);let o=s(()=>this.tokenMatcher(this.LA(1),a),"separatorLookAheadFunc");for(;this.tokenMatcher(this.LA(1),a)===!0;)this.CONSUME(a),n.call(this);this.attemptInRepetitionRecovery(this.repetitionSepSecondInternal,[e,a,o,n,Vh],o,Nf,e,Vh)}}repetitionSepSecondInternal(e,t,r,n,a){for(;r();)this.CONSUME(t),n.call(this);this.attemptInRepetitionRecovery(this.repetitionSepSecondInternal,[e,t,r,n,a],r,wo,e,a)}doSingleRepetition(e){let t=this.getLexerPosition();return e.call(this),this.getLexerPosition()>t}orInternal(e,t){let r=this.getKeyForAutomaticLookahead(KE,t),n=te(e)?e:e.DEF,i=this.getLaFuncFromCache(r).call(this,n);if(i!==void 0)return n[i].ALT.call(this);this.raiseNoAltException(t,e.ERR_MSG)}ruleFinallyStateUpdate(){if(this.RULE_STACK.pop(),this.RULE_OCCURRENCE_STACK.pop(),this.cstFinallyStateUpdate(),this.RULE_STACK.length===0&&this.isAtEndOfInput()===!1){let e=this.LA(1),t=this.errorMessageProvider.buildNotAllInputParsedMessage({firstRedundant:e,ruleName:this.getCurrRuleFullName()});this.SAVE_ERROR(new QL(t,e))}}subruleInternal(e,t,r){let n;try{let a=r!==void 0?r.ARGS:void 0;return this.subruleIdx=t,n=e.apply(this,a),this.cstPostNonTerminal(n,r!==void 0&&r.LABEL!==void 0?r.LABEL:e.ruleName),n}catch(a){throw this.subruleInternalError(a,r,e.ruleName)}}subruleInternalError(e,t,r){throw Ts(e)&&e.partialCstResult!==void 0&&(this.cstPostNonTerminal(e.partialCstResult,t!==void 0&&t.LABEL!==void 0?t.LABEL:r),delete e.partialCstResult),e}consumeInternal(e,t,r){let n;try{let a=this.LA(1);this.tokenMatcher(a,e)===!0?(this.consumeToken(),n=a):this.consumeInternalError(e,a,r)}catch(a){n=this.consumeInternalRecovery(e,t,a)}return this.cstPostTerminal(r!==void 0&&r.LABEL!==void 0?r.LABEL:e.name,n),n}consumeInternalError(e,t,r){let n,a=this.LA(0);throw r!==void 0&&r.ERR_MSG?n=r.ERR_MSG:n=this.errorMessageProvider.buildMismatchTokenMessage({expected:e,actual:t,previous:a,ruleName:this.getCurrRuleFullName()}),this.SAVE_ERROR(new zE(n,t,a))}consumeInternalRecovery(e,t,r){if(this.recoveryEnabled&&r.name==="MismatchedTokenException"&&!this.isBackTracking()){let n=this.getFollowsForInRuleRecovery(e,t);try{return this.tryInRuleRecovery(e,n)}catch(a){throw a.name===jE?r:a}}else throw r}saveRecogState(){let e=this.errors,t=qe(this.RULE_STACK);return{errors:e,lexerState:this.exportLexerState(),RULE_STACK:t,CST_STACK:this.CST_STACK}}reloadRecogState(e){this.errors=e.errors,this.importLexerState(e.lexerState),this.RULE_STACK=e.RULE_STACK}ruleInvocationStateUpdate(e,t,r){this.RULE_OCCURRENCE_STACK.push(r),this.RULE_STACK.push(e),this.cstInvocationStateUpdate(t)}isBackTracking(){return this.isBackTrackingStack.length!==0}getCurrRuleFullName(){let e=this.getLastExplicitRuleShortName();return this.shortRuleNameToFull[e]}shortRuleNameToFullName(e){return this.shortRuleNameToFull[e]}isAtEndOfInput(){return this.tokenMatcher(this.LA(1),Lr)}reset(){this.resetLexerState(),this.subruleIdx=0,this.isBackTrackingStack=[],this.errors=[],this.RULE_STACK=[],this.CST_STACK=[],this.RULE_OCCURRENCE_STACK=[]}},pD=class{static{s(this,"ErrorHandler")}initErrorHandler(e){this._errors=[],this.errorMessageProvider=U(e,"errorMessageProvider")?e.errorMessageProvider:vr.errorMessageProvider}SAVE_ERROR(e){if(Ts(e))return e.context={ruleStack:this.getHumanReadableRuleStack(),ruleOccurrenceStack:qe(this.RULE_OCCURRENCE_STACK)},this._errors.push(e),e;throw Error("Trying to save an Error which is not a RecognitionException")}get errors(){return qe(this._errors)}set errors(e){this._errors=e}raiseEarlyExitException(e,t,r){let n=this.getCurrRuleFullName(),a=this.getGAstProductions()[n],o=Ws(e,a,t,this.maxLookahead)[0],l=[];for(let c=1;c<=this.maxLookahead;c++)l.push(this.LA(c));let u=this.errorMessageProvider.buildEarlyExitMessage({expectedIterationPaths:o,actual:l,previous:this.LA(0),customUserDescription:r,ruleName:n});throw this.SAVE_ERROR(new eD(u,this.LA(1),this.LA(0)))}raiseNoAltException(e,t){let r=this.getCurrRuleFullName(),n=this.getGAstProductions()[r],a=qs(e,n,this.maxLookahead),i=[];for(let u=1;u<=this.maxLookahead;u++)i.push(this.LA(u));let o=this.LA(0),l=this.errorMessageProvider.buildNoViableAltMessage({expectedPathsPerAlt:a,actual:i,previous:o,customUserDescription:t,ruleName:this.getCurrRuleFullName()});throw this.SAVE_ERROR(new ZL(l,this.LA(1),o))}},dD=class{static{s(this,"ContentAssist")}initContentAssist(){}computeContentAssist(e,t){let r=this.gastProductionsCache[e];if(yr(r))throw Error(`Rule ->${e}<- does not exist in this grammar.`);return Hd([r],t,this.tokenMatcher,this.maxLookahead)}getNextPossibleTokenTypes(e){let t=Lt(e.ruleStack),n=this.getGAstProductions()[t];return new WL(n,e).startWalking()}},fu={description:"This Object indicates the Parser is during Recording Phase"};Object.freeze(fu);var Yh=!0,Xh=Math.pow(2,zr)-1,QE=ka({name:"RECORDING_PHASE_TOKEN",pattern:Ze.NA});Za([QE]);var eC=Bs(QE,`This IToken indicates the Parser is in Recording Phase + See: https://chevrotain.io/docs/guide/internals.html#grammar-recording for details`,-1,-1,-1,-1,-1,-1);Object.freeze(eC);var mD={name:`This CSTNode indicates the Parser is in Recording Phase + See: https://chevrotain.io/docs/guide/internals.html#grammar-recording for details`,children:{}},hD=class{static{s(this,"GastRecorder")}initGastRecorder(e){this.recordingProdStack=[],this.RECORDING_PHASE=!1}enableRecording(){this.RECORDING_PHASE=!0,this.TRACE_INIT("Enable Recording",()=>{for(let e=0;e<10;e++){let t=e>0?e:"";this[`CONSUME${t}`]=function(r,n){return this.consumeInternalRecord(r,e,n)},this[`SUBRULE${t}`]=function(r,n){return this.subruleInternalRecord(r,e,n)},this[`OPTION${t}`]=function(r){return this.optionInternalRecord(r,e)},this[`OR${t}`]=function(r){return this.orInternalRecord(r,e)},this[`MANY${t}`]=function(r){this.manyInternalRecord(e,r)},this[`MANY_SEP${t}`]=function(r){this.manySepFirstInternalRecord(e,r)},this[`AT_LEAST_ONE${t}`]=function(r){this.atLeastOneInternalRecord(e,r)},this[`AT_LEAST_ONE_SEP${t}`]=function(r){this.atLeastOneSepFirstInternalRecord(e,r)}}this.consume=function(e,t,r){return this.consumeInternalRecord(t,e,r)},this.subrule=function(e,t,r){return this.subruleInternalRecord(t,e,r)},this.option=function(e,t){return this.optionInternalRecord(t,e)},this.or=function(e,t){return this.orInternalRecord(t,e)},this.many=function(e,t){this.manyInternalRecord(e,t)},this.atLeastOne=function(e,t){this.atLeastOneInternalRecord(e,t)},this.ACTION=this.ACTION_RECORD,this.BACKTRACK=this.BACKTRACK_RECORD,this.LA=this.LA_RECORD})}disableRecording(){this.RECORDING_PHASE=!1,this.TRACE_INIT("Deleting Recording methods",()=>{let e=this;for(let t=0;t<10;t++){let r=t>0?t:"";delete e[`CONSUME${r}`],delete e[`SUBRULE${r}`],delete e[`OPTION${r}`],delete e[`OR${r}`],delete e[`MANY${r}`],delete e[`MANY_SEP${r}`],delete e[`AT_LEAST_ONE${r}`],delete e[`AT_LEAST_ONE_SEP${r}`]}delete e.consume,delete e.subrule,delete e.option,delete e.or,delete e.many,delete e.atLeastOne,delete e.ACTION,delete e.BACKTRACK,delete e.LA})}ACTION_RECORD(e){}BACKTRACK_RECORD(e,t){return()=>!0}LA_RECORD(e){return dl}topLevelRuleRecord(e,t){try{let r=new Ha({definition:[],name:e});return r.name=e,this.recordingProdStack.push(r),t.call(this),this.recordingProdStack.pop(),r}catch(r){if(r.KNOWN_RECORDER_ERROR!==!0)try{r.message=r.message+` + This error was thrown during the "grammar recording phase" For more info see: + https://chevrotain.io/docs/guide/internals.html#grammar-recording`}catch{throw r}throw r}}optionInternalRecord(e,t){return pa.call(this,Be,e,t)}atLeastOneInternalRecord(e,t){pa.call(this,ht,t,e)}atLeastOneSepFirstInternalRecord(e,t){pa.call(this,yt,t,e,Yh)}manyInternalRecord(e,t){pa.call(this,Ce,t,e)}manySepFirstInternalRecord(e,t){pa.call(this,lt,t,e,Yh)}orInternalRecord(e,t){return tC.call(this,e,t)}subruleInternalRecord(e,t,r){if($s(t),!e||U(e,"ruleName")===!1){let o=new Error(` argument is invalid expecting a Parser method reference but got: <${JSON.stringify(e)}> + inside top level rule: <${this.recordingProdStack[0].name}>`);throw o.KNOWN_RECORDER_ERROR=!0,o}let n=En(this.recordingProdStack),a=e.ruleName,i=new et({idx:t,nonTerminalName:a,label:r?.LABEL,referencedRule:void 0});return n.definition.push(i),this.outputCst?mD:fu}consumeInternalRecord(e,t,r){if($s(t),!qd(e)){let i=new Error(` argument is invalid expecting a TokenType reference but got: <${JSON.stringify(e)}> + inside top level rule: <${this.recordingProdStack[0].name}>`);throw i.KNOWN_RECORDER_ERROR=!0,i}let n=En(this.recordingProdStack),a=new ge({idx:t,terminalType:e,label:r?.LABEL});return n.definition.push(a),eC}};function pa(e,t,r,n=!1){$s(r);let a=En(this.recordingProdStack),i=Ar(t)?t:t.DEF,o=new e({definition:[],idx:r});return n&&(o.separator=t.SEP),U(t,"MAX_LOOKAHEAD")&&(o.maxLookahead=t.MAX_LOOKAHEAD),this.recordingProdStack.push(o),i.call(this),a.definition.push(o),this.recordingProdStack.pop(),fu}s(pa,"recordProd");function tC(e,t){$s(t);let r=En(this.recordingProdStack),n=te(e)===!1,a=n===!1?e:e.DEF,i=new ut({definition:[],idx:t,ignoreAmbiguities:n&&e.IGNORE_AMBIGUITIES===!0});U(e,"MAX_LOOKAHEAD")&&(i.maxLookahead=e.MAX_LOOKAHEAD);let o=yA(a,l=>Ar(l.GATE));return i.hasPredicates=o,r.definition.push(i),B(a,l=>{let u=new ot({definition:[]});i.definition.push(u),U(l,"IGNORE_AMBIGUITIES")?u.ignoreAmbiguities=l.IGNORE_AMBIGUITIES:U(l,"GATE")&&(u.ignoreAmbiguities=!0),this.recordingProdStack.push(u),l.ALT.call(this),this.recordingProdStack.pop()}),fu}s(tC,"recordOrProd");function Lf(e){return e===0?"":`${e}`}s(Lf,"getIdxSuffix");function $s(e){if(e<0||e>Xh){let t=new Error(`Invalid DSL Method idx value: <${e}> + Idx value must be a none negative value smaller than ${Xh+1}`);throw t.KNOWN_RECORDER_ERROR=!0,t}}s($s,"assertMethodIdxIsValid");var yD=class{static{s(this,"PerformanceTracer")}initPerformanceTracer(e){if(U(e,"traceInitPerf")){let t=e.traceInitPerf,r=typeof t=="number";this.traceInitMaxIdent=r?t:1/0,this.traceInitPerf=r?t>0:t}else this.traceInitMaxIdent=0,this.traceInitPerf=vr.traceInitPerf;this.traceInitIndent=-1}TRACE_INIT(e,t){if(this.traceInitPerf===!0){this.traceInitIndent++;let r=new Array(this.traceInitIndent+1).join(" ");this.traceInitIndent <${e}>`);let{time:n,value:a}=Fd(t),i=n>10?console.warn:console.log;return this.traceInitIndent time: ${n}ms`),this.traceInitIndent--,a}else return t()}};function rC(e,t){t.forEach(r=>{let n=r.prototype;Object.getOwnPropertyNames(n).forEach(a=>{if(a==="constructor")return;let i=Object.getOwnPropertyDescriptor(n,a);i&&(i.get||i.set)?Object.defineProperty(e.prototype,a,i):e.prototype[a]=r.prototype[a]})})}s(rC,"applyMixins");var dl=Bs(Lr,"",NaN,NaN,NaN,NaN,NaN,NaN);Object.freeze(dl);var vr=Object.freeze({recoveryEnabled:!1,maxLookahead:3,dynamicTokensEnabled:!1,outputCst:!0,errorMessageProvider:Ia,nodeLocationTracking:"none",traceInitPerf:!1,skipValidations:!1}),ml=Object.freeze({recoveryValueFunc:s(()=>{},"recoveryValueFunc"),resyncEnabled:!0}),tt;(function(e){e[e.INVALID_RULE_NAME=0]="INVALID_RULE_NAME",e[e.DUPLICATE_RULE_NAME=1]="DUPLICATE_RULE_NAME",e[e.INVALID_RULE_OVERRIDE=2]="INVALID_RULE_OVERRIDE",e[e.DUPLICATE_PRODUCTIONS=3]="DUPLICATE_PRODUCTIONS",e[e.UNRESOLVED_SUBRULE_REF=4]="UNRESOLVED_SUBRULE_REF",e[e.LEFT_RECURSION=5]="LEFT_RECURSION",e[e.NONE_LAST_EMPTY_ALT=6]="NONE_LAST_EMPTY_ALT",e[e.AMBIGUOUS_ALTS=7]="AMBIGUOUS_ALTS",e[e.CONFLICT_TOKENS_RULES_NAMESPACE=8]="CONFLICT_TOKENS_RULES_NAMESPACE",e[e.INVALID_TOKEN_NAME=9]="INVALID_TOKEN_NAME",e[e.NO_NON_EMPTY_LOOKAHEAD=10]="NO_NON_EMPTY_LOOKAHEAD",e[e.AMBIGUOUS_PREFIX_ALTS=11]="AMBIGUOUS_PREFIX_ALTS",e[e.TOO_MANY_ALTS=12]="TOO_MANY_ALTS",e[e.CUSTOM_LOOKAHEAD_VALIDATION=13]="CUSTOM_LOOKAHEAD_VALIDATION"})(tt||(tt={}));function Df(e=void 0){return function(){return e}}s(Df,"EMPTY_ALT");var rm=class nC{static{s(this,"Parser")}static performSelfAnalysis(t){throw Error("The **static** `performSelfAnalysis` method has been deprecated. \nUse the **instance** method with the same name instead.")}performSelfAnalysis(){this.TRACE_INIT("performSelfAnalysis",()=>{let t;this.selfAnalysisDone=!0;let r=this.className;this.TRACE_INIT("toFastProps",()=>{zd(this)}),this.TRACE_INIT("Grammar Recording",()=>{try{this.enableRecording(),B(this.definedRulesNames,a=>{let o=this[a].originalGrammarAction,l;this.TRACE_INIT(`${a} Rule`,()=>{l=this.topLevelRuleRecord(a,o)}),this.gastProductionsCache[a]=l})}finally{this.disableRecording()}});let n=[];if(this.TRACE_INIT("Grammar Resolving",()=>{n=OE({rules:xe(this.gastProductionsCache)}),this.definitionErrors=this.definitionErrors.concat(n)}),this.TRACE_INIT("Grammar Validations",()=>{if(de(n)&&this.skipValidations===!1){let a=LE({rules:xe(this.gastProductionsCache),tokenTypes:xe(this.tokensMap),errMsgProvider:gn,grammarName:r}),i=$E({lookaheadStrategy:this.lookaheadStrategy,rules:xe(this.gastProductionsCache),tokenTypes:xe(this.tokensMap),grammarName:r});this.definitionErrors=this.definitionErrors.concat(a,i)}}),de(this.definitionErrors)&&(this.recoveryEnabled&&this.TRACE_INIT("computeAllProdsFollows",()=>{let a=wA(xe(this.gastProductionsCache));this.resyncFollows=a}),this.TRACE_INIT("ComputeLookaheadFunctions",()=>{var a,i;(i=(a=this.lookaheadStrategy).initialize)===null||i===void 0||i.call(a,{rules:xe(this.gastProductionsCache)}),this.preComputeLookaheadFunctions(xe(this.gastProductionsCache))})),!nC.DEFER_DEFINITION_ERRORS_HANDLING&&!de(this.definitionErrors))throw t=F(this.definitionErrors,a=>a.message),new Error(`Parser Definition Errors detected: + ${t.join(` +------------------------------- +`)}`)})}constructor(t,r){this.definitionErrors=[],this.selfAnalysisDone=!1;let n=this;if(n.initErrorHandler(r),n.initLexerAdapter(),n.initLooksAhead(r),n.initRecognizerEngine(t,r),n.initRecoverable(r),n.initTreeBuilder(r),n.initContentAssist(),n.initGastRecorder(r),n.initPerformanceTracer(r),U(r,"ignoredIssues"))throw new Error(`The IParserConfig property has been deprecated. + Please use the flag on the relevant DSL method instead. + See: https://chevrotain.io/docs/guide/resolving_grammar_errors.html#IGNORING_AMBIGUITIES + For further details.`);this.skipValidations=U(r,"skipValidations")?r.skipValidations:vr.skipValidations}};rm.DEFER_DEFINITION_ERRORS_HANDLING=!1;rC(rm,[rD,iD,lD,uD,fD,cD,pD,dD,hD,yD]);var gD=class extends rm{static{s(this,"EmbeddedActionsParser")}constructor(e,t=vr){let r=qe(t);r.outputCst=!1,super(e,r)}};function aC(e,t){for(var r=-1,n=e==null?0:e.length,a=Array(n);++r-1}s(pC,"listCacheHas");var ED=pC;function dC(e,t){var r=this.__data__,n=pu(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}s(dC,"listCacheSet");var CD=dC;function zn(e){var t=-1,r=e==null?0:e.length;for(this.clear();++tl))return!1;var c=i.get(e),f=i.get(t);if(c&&f)return c==t&&f==e;var p=-1,m=!0,g=r&Nx?new WC:void 0;for(i.set(e,t),i.set(t,e);++p-1&&e%1==0&&e-1&&e%1==0&&e<=fM}s(hb,"isLength");var im=hb,pM="[object Arguments]",dM="[object Array]",mM="[object Boolean]",hM="[object Date]",yM="[object Error]",gM="[object Function]",vM="[object Map]",TM="[object Number]",$M="[object Object]",RM="[object RegExp]",AM="[object Set]",EM="[object String]",CM="[object WeakMap]",bM="[object ArrayBuffer]",_M="[object DataView]",SM="[object Float32Array]",wM="[object Float64Array]",IM="[object Int8Array]",NM="[object Int16Array]",PM="[object Int32Array]",kM="[object Uint8Array]",OM="[object Uint8ClampedArray]",LM="[object Uint16Array]",DM="[object Uint32Array]",ye={};ye[SM]=ye[wM]=ye[IM]=ye[NM]=ye[PM]=ye[kM]=ye[OM]=ye[LM]=ye[DM]=!0;ye[pM]=ye[dM]=ye[bM]=ye[mM]=ye[_M]=ye[hM]=ye[yM]=ye[gM]=ye[vM]=ye[TM]=ye[$M]=ye[RM]=ye[AM]=ye[EM]=ye[CM]=!1;function yb(e){return Ka(e)&&im(e.length)&&!!ye[Qa(e)]}s(yb,"baseIsTypedArray");var xM=yb;function gb(e){return function(t){return e(t)}}s(gb,"baseUnary");var MM=gb,vb=typeof exports=="object"&&exports&&!exports.nodeType&&exports,os=vb&&typeof module=="object"&&module&&!module.nodeType&&module,GM=os&&os.exports===vb,Bu=GM&&vC.process,FM=(function(){try{var e=os&&os.require&&os.require("util").types;return e||Bu&&Bu.binding&&Bu.binding("util")}catch{}})(),sy=FM,oy=sy&&sy.isTypedArray,zM=oy?MM(oy):xM,sm=zM,jM=Object.prototype,UM=jM.hasOwnProperty;function Tb(e,t){var r=rt(e),n=!r&&yu(e),a=!r&&!n&&hl(e),i=!r&&!n&&!a&&sm(e),o=r||n||a||i,l=o?eM(e.length,String):[],u=l.length;for(var c in e)(t||UM.call(e,c))&&!(o&&(c=="length"||a&&(c=="offset"||c=="parent")||i&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||mb(c,u)))&&l.push(c);return l}s(Tb,"arrayLikeKeys");var KM=Tb,BM=Object.prototype;function $b(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||BM;return e===r}s($b,"isPrototype");var Rb=$b;function Ab(e,t){return function(r){return e(t(r))}}s(Ab,"overArg");var qM=Ab,WM=qM(Object.keys,Object),VM=WM,HM=Object.prototype,YM=HM.hasOwnProperty;function Eb(e){if(!Rb(e))return VM(e);var t=[];for(var r in Object(e))YM.call(e,r)&&r!="constructor"&&t.push(r);return t}s(Eb,"baseKeys");var Cb=Eb;function bb(e){return e!=null&&im(e.length)&&!bC(e)}s(bb,"isArrayLike");var gu=bb;function _b(e){return gu(e)?KM(e):Cb(e)}s(_b,"keys");var om=_b;function Sb(e){return Hx(e,om,Qx)}s(Sb,"getAllKeys");var ly=Sb,XM=1,JM=Object.prototype,ZM=JM.hasOwnProperty;function wb(e,t,r,n,a,i){var o=r&XM,l=ly(e),u=l.length,c=ly(t),f=c.length;if(u!=f&&!o)return!1;for(var p=u;p--;){var m=l[p];if(!(o?m in t:ZM.call(t,m)))return!1}var g=i.get(e),v=i.get(t);if(g&&v)return g==t&&v==e;var _=!0;i.set(e,t),i.set(t,e);for(var S=o;++phm(e,t,o));return qn(e,t,n,r,...a)}s($_,"alternation");function R_(e,t,r){let n=Me(e,t,r,{type:Dr});Cr(e,n);let a=qn(e,t,n,r,jr(e,t,r));return A_(e,t,r,a)}s(R_,"option");function jr(e,t,r){let n=J1(cr(r.definition,a=>hm(e,t,a)),a=>a!==void 0);return n.length===1?n[0]:n.length===0?void 0:C_(e,n)}s(jr,"block");function ym(e,t,r,n,a){let i=n.left,o=n.right,l=Me(e,t,r,{type:rG});Cr(e,l);let u=Me(e,t,r,{type:p_});return i.loopback=l,u.loopback=l,e.decisionMap[bn(t,a?"RepetitionMandatoryWithSeparator":"RepetitionMandatory",r.idx)]=l,we(o,l),a===void 0?(we(l,i),we(l,u)):(we(l,u),we(l,a.left),we(a.right,i)),{left:i,right:u}}s(ym,"plus");function gm(e,t,r,n,a){let i=n.left,o=n.right,l=Me(e,t,r,{type:tG});Cr(e,l);let u=Me(e,t,r,{type:p_}),c=Me(e,t,r,{type:eG});return l.loopback=c,u.loopback=c,we(l,i),we(l,u),we(o,c),a!==void 0?(we(c,u),we(c,a.left),we(a.right,i)):we(c,l),e.decisionMap[bn(t,a?"RepetitionWithSeparator":"Repetition",r.idx)]=l,{left:l,right:u}}s(gm,"star");function A_(e,t,r,n){let a=n.left,i=n.right;return we(a,i),e.decisionMap[bn(t,"Option",r.idx)]=a,n}s(A_,"optional");function Cr(e,t){return e.decisionStates.push(t),t.decision=e.decisionStates.length-1,t.decision}s(Cr,"defineDecisionState");function qn(e,t,r,n,...a){let i=Me(e,t,n,{type:Q1,start:r});r.end=i;for(let l of a)l!==void 0?(we(r,l.left),we(l.right,i)):we(r,i);let o={left:r,right:i};return e.decisionMap[bn(t,E_(n),n.idx)]=r,o}s(qn,"makeAlts");function E_(e){if(e instanceof ut)return"Alternation";if(e instanceof Be)return"Option";if(e instanceof Ce)return"Repetition";if(e instanceof lt)return"RepetitionWithSeparator";if(e instanceof ht)return"RepetitionMandatory";if(e instanceof yt)return"RepetitionMandatoryWithSeparator";throw new Error("Invalid production type encountered")}s(E_,"getProdType");function C_(e,t){let r=t.length;for(let i=0;ie.alt)}get key(){let e="";for(let t in this.map)e+=t+":";return e}};function vm(e,t=!0){return`${t?`a${e.alt}`:""}s${e.state.stateNumber}:${e.stack.map(r=>r.stateNumber.toString()).join("_")}`}s(vm,"getATNConfigKey");function w_(e,t,r){for(var n=-1,a=e.length;++n0&&r(l)?t>1?Tm(l,t-1,r,n,a):rb(a,l):n||(a[a.length]=l)}return a}s(Tm,"baseFlatten");var k_=Tm;function O_(e,t){return k_(cr(e,t),1)}s(O_,"flatMap");var oG=O_;function L_(e,t,r,n){for(var a=e.length,i=r+(n?1:-1);n?i--:++i-1}s(G_,"arrayIncludes");var pG=G_;function F_(e,t,r){for(var n=-1,a=e==null?0:e.length;++n=vG){var c=t?null:gG(e);if(c)return am(c);o=!1,a=YC,u=new WC}else u=t?[]:l;e:for(;++n{let a=n.toString(),i=r[a];return i!==void 0||(i={atnStartState:e,decision:t,states:{}},r[a]=i),i}}s(J_,"createDFACache");var Z_=class{static{s(this,"PredicateSet")}constructor(){this.predicates=[]}is(e){return e>=this.predicates.length||this.predicates[e]}set(e,t){this.predicates[e]=t}toString(){let e="",t=this.predicates.length;for(let r=0;rconsole.log(r))}initialize(e){this.atn=m_(e.rules),this.dfas=Q_(this.atn)}validateAmbiguousAlternationAlternatives(){return[]}validateEmptyOrAlternatives(){return[]}buildLookaheadForAlternation(e){let{prodOccurrence:t,rule:r,hasPredicates:n,dynamicTokensEnabled:a}=e,i=this.dfas,o=this.logging,l=bn(r,"Alternation",t),c=this.atn.decisionMap[l].decision,f=cr(_f({maxLookahead:1,occurrence:t,prodType:"Alternation",rule:r}),p=>cr(p,m=>m[0]));if(jf(f,!1)&&!a){let p=$y(f,(m,g,v)=>(qu(g,_=>{_&&(m[_.tokenTypeIdx]=v,qu(_.categoryMatches,S=>{m[S]=v}))}),m),{});return n?function(m){var g;let v=this.LA(1),_=p[v.tokenTypeIdx];if(m!==void 0&&_!==void 0){let S=(g=m[_])===null||g===void 0?void 0:g.GATE;if(S!==void 0&&S.call(this)===!1)return}return _}:function(){let m=this.LA(1);return p[m.tokenTypeIdx]}}else return n?function(p){let m=new Z_,g=p===void 0?0:p.length;for(let _=0;_cr(p,m=>m[0]));if(jf(f)&&f[0][0]&&!a){let p=f[0],m=RG(p);if(m.length===1&&wG(m[0].categoryMatches)){let v=m[0].tokenTypeIdx;return function(){return this.LA(1).tokenTypeIdx===v}}else{let g=$y(m,(v,_)=>(_!==void 0&&(v[_.tokenTypeIdx]=!0,qu(_.categoryMatches,S=>{v[S]=!0})),v),{});return function(){let v=this.LA(1);return g[v.tokenTypeIdx]===!0}}}return function(){let p=Po.call(this,i,c,Ry,o);return typeof p=="object"?!1:p===0}}};function jf(e,t=!0){let r=new Set;for(let n of e){let a=new Set;for(let i of n){if(i===void 0){if(t)break;return!1}let o=[i.tokenTypeIdx].concat(i.categoryMatches);for(let l of o)if(r.has(l)){if(!a.has(l))return!1}else r.add(l),a.add(l)}}return!0}s(jf,"isLL1Sequence");function Q_(e){let t=e.decisionStates.length,r=Array(t);for(let n=0;n$n(a)).join(", "),r=e.production.idx===0?"":e.production.idx,n=`Ambiguous Alternatives Detected: <${e.ambiguityIndices.join(", ")}> in <${aS(e.production)}${r}> inside <${e.topLevelRule.name}> Rule, +<${t}> may appears as a prefix path in all these alternatives. +`;return n=n+`See: https://chevrotain.io/docs/guide/resolving_grammar_errors.html#AMBIGUOUS_ALTERNATIVES +For Further details.`,n}s(nS,"buildAmbiguityError");function aS(e){if(e instanceof et)return"SUBRULE";if(e instanceof Be)return"OPTION";if(e instanceof ut)return"OR";if(e instanceof ht)return"AT_LEAST_ONE";if(e instanceof yt)return"AT_LEAST_ONE_SEP";if(e instanceof lt)return"MANY_SEP";if(e instanceof Ce)return"MANY";if(e instanceof ge)return"CONSUME";throw Error("non exhaustive match")}s(aS,"getProductionDslName");function iS(e,t,r){let n=oG(t.configs.elements,i=>i.state.transitions),a=$G(n.filter(i=>i instanceof dm).map(i=>i.tokenType),i=>i.tokenTypeIdx);return{actualToken:r,possibleTokenTypes:a,tokenPath:e}}s(iS,"buildAdaptivePredictError");function sS(e,t){return e.edges[t.tokenTypeIdx]}s(sS,"getExistingTargetState");function oS(e,t,r){let n=new zf,a=[];for(let o of e.elements){if(r.is(o.alt)===!1)continue;if(o.state.type===Vs){a.push(o);continue}let l=o.state.transitions.length;for(let u=0;u0&&!pS(i))for(let o of a)i.add(o);return i}s(oS,"computeReachSet");function lS(e,t){if(e instanceof dm&&Vd(t,e.tokenType))return e.target}s(lS,"getReachableTarget");function uS(e,t){let r;for(let n of e.elements)if(t.is(n.alt)===!0){if(r===void 0)r=n.alt;else if(r!==n.alt)return}return r}s(uS,"getUniqueAlt");function $m(e){return{configs:e,edges:{},isAcceptState:!1,prediction:-1}}s($m,"newDFAState");function Uf(e,t,r,n){return n=Rm(e,n),t.edges[r.tokenTypeIdx]=n,n}s(Uf,"addDFAEdge");function Rm(e,t){if(t===yl)return t;let r=t.configs.key,n=e.states[r];return n!==void 0?n:(t.configs.finalize(),e.states[r]=t,t)}s(Rm,"addDFAState");function cS(e){let t=new zf,r=e.transitions.length;for(let n=0;n0){let a=[...e.stack],o={state:a.pop(),alt:e.alt,stack:a};Cs(o,t)}else t.add(e);return}r.epsilonOnlyTransitions||t.add(e);let n=r.transitions.length;for(let a=0;a1)return!0;return!1}s(yS,"hasConflictingAltSet");function gS(e){for(let t of Array.from(e.values()))if(Object.keys(t).length===1)return!0;return!1}s(gS,"hasStateAssociatedWithOneAlt");Ss();var vS=class{static{s(this,"CstNodeBuilder")}constructor(){this.nodeStack=[]}get current(){return this.nodeStack[this.nodeStack.length-1]??this.rootNode}buildRootNode(e){return this.rootNode=new Em(e),this.rootNode.root=this.rootNode,this.nodeStack=[this.rootNode],this.rootNode}buildCompositeNode(e){let t=new bu;return t.grammarSource=e,t.root=this.rootNode,this.current.content.push(t),this.nodeStack.push(t),t}buildLeafNode(e,t){let r=new gl(e.startOffset,e.image.length,fs(e),e.tokenType,!t);return r.grammarSource=t,r.root=this.rootNode,this.current.content.push(r),r}removeNode(e){let t=e.container;if(t){let r=t.content.indexOf(e);r>=0&&t.content.splice(r,1)}}addHiddenNodes(e){let t=[];for(let a of e){let i=new gl(a.startOffset,a.image.length,fs(a),a.tokenType,!0);i.root=this.rootNode,t.push(i)}let r=this.current,n=!1;if(r.content.length>0){r.content.push(...t);return}for(;r.container;){let a=r.container.content.indexOf(r);if(a>0){r.container.content.splice(a,0,...t),n=!0;break}r=r.container}n||this.rootNode.content.unshift(...t)}construct(e){let t=this.current;typeof e.$type=="string"&&!e.$infixName&&(this.current.astNode=e),e.$cstNode=t;let r=this.nodeStack.pop();r?.content.length===0&&this.removeNode(r)}},Am=class{static{s(this,"AbstractCstNode")}get hidden(){return!1}get astNode(){let e=typeof this._astNode?.$type=="string"?this._astNode:this.container?.astNode;if(!e)throw new Error("This node has no associated AST element");return e}set astNode(e){this._astNode=e}get text(){return this.root.fullText.substring(this.offset,this.end)}},gl=class extends Am{static{s(this,"LeafCstNodeImpl")}get offset(){return this._offset}get length(){return this._length}get end(){return this._offset+this._length}get hidden(){return this._hidden}get tokenType(){return this._tokenType}get range(){return this._range}constructor(e,t,r,n,a=!1){super(),this._hidden=a,this._offset=e,this._tokenType=n,this._length=t,this._range=r}},bu=class extends Am{static{s(this,"CompositeCstNodeImpl")}constructor(){super(...arguments),this.content=new kG(this)}get offset(){return this.firstNonHiddenNode?.offset??0}get length(){return this.end-this.offset}get end(){return this.lastNonHiddenNode?.end??0}get range(){let e=this.firstNonHiddenNode,t=this.lastNonHiddenNode;if(e&&t){if(this._rangeCache===void 0){let{range:r}=e,{range:n}=t;this._rangeCache={start:r.start,end:n.end.line=0;e--){let t=this.content[e];if(!t.hidden)return t}return this.content[this.content.length-1]}},kG=class TS extends Array{static{s(this,"CstNodeContainer")}constructor(t){super(),this.parent=t,Object.setPrototypeOf(this,TS.prototype)}push(...t){return this.addParents(t),super.push(...t)}unshift(...t){return this.addParents(t),super.unshift(...t)}splice(t,r,...n){return this.addParents(n),super.splice(t,r,...n)}addParents(t){for(let r of t)r.container=this.parent}},Em=class extends bu{static{s(this,"RootCstNodeImpl")}get text(){return this._text.substring(this.offset,this.end)}get fullText(){return this._text}constructor(e){super(),this._text="",this._text=e??""}},vl=Symbol("Datatype");function ko(e){return e.$type===vl}s(ko,"isDataTypeNode");var Ay="\u200B",$S=s(e=>e.endsWith(Ay)?e:e+Ay,"withRuleSuffix"),Cm=class{static{s(this,"AbstractLangiumParser")}constructor(e){this._unorderedGroups=new Map,this.allRules=new Map,this.lexer=e.parser.Lexer;let t=this.lexer.definition,r=e.LanguageMetaData.mode==="production";e.shared.profilers.LangiumProfiler?.isActive("parsing")?this.wrapper=new LG(t,{...e.parser.ParserConfig,skipValidations:r,errorMessageProvider:e.parser.ParserErrorMessageProvider},e.shared.profilers.LangiumProfiler.createTask("parsing",e.LanguageMetaData.languageId)):this.wrapper=new CS(t,{...e.parser.ParserConfig,skipValidations:r,errorMessageProvider:e.parser.ParserErrorMessageProvider})}alternatives(e,t){this.wrapper.wrapOr(e,t)}optional(e,t){this.wrapper.wrapOption(e,t)}many(e,t){this.wrapper.wrapMany(e,t)}atLeastOne(e,t){this.wrapper.wrapAtLeastOne(e,t)}getRule(e){return this.allRules.get(e)}isRecording(){return this.wrapper.IS_RECORDING}get unorderedGroups(){return this._unorderedGroups}getRuleStack(){return this.wrapper.RULE_STACK}finalize(){this.wrapper.wrapSelfAnalysis()}},RS=class extends Cm{static{s(this,"LangiumParser")}get current(){return this.stack[this.stack.length-1]}constructor(e){super(e),this.nodeBuilder=new vS,this.stack=[],this.assignmentMap=new Map,this.operatorPrecedence=new Map,this.linker=e.references.Linker,this.converter=e.parser.ValueConverter,this.astReflection=e.shared.AstReflection}rule(e,t){let r=this.computeRuleType(e),n;Ga(e)&&(n=e.name,this.registerPrecedenceMap(e));let a=this.wrapper.DEFINE_RULE($S(e.name),this.startImplementation(r,n,t).bind(this));return this.allRules.set(e.name,a),Qe(e)&&e.entry&&(this.mainRule=a),a}registerPrecedenceMap(e){let t=e.name,r=new Map;for(let n=0;n0&&(t=this.construct()),t===void 0)throw new Error("No result from parser");if(this.stack.length>0)throw new Error("Parser stack is not empty after parsing");return t}startImplementation(e,t,r){return n=>{let a=!this.isRecording()&&e!==void 0;if(a){let i={$type:e};this.stack.push(i),e===vl?i.value="":t!==void 0&&(i.$infixName=t)}return r(n),a?this.construct():void 0}}extractHiddenTokens(e){let t=this.lexerResult.hidden;if(!t.length)return[];let r=e.startOffset;for(let n=0;nr)return t.splice(0,n);return t.splice(0,t.length)}consume(e,t,r){let n=this.wrapper.wrapConsume(e,t);if(!this.isRecording()&&this.isValidToken(n)){let a=this.extractHiddenTokens(n);this.nodeBuilder.addHiddenNodes(a);let i=this.nodeBuilder.buildLeafNode(n,r),{assignment:o,crossRef:l}=this.getAssignment(r),u=this.current;if(o){let c=dr(r)?n.image:this.converter.convert(n.image,i);this.assign(o.operator,o.feature,c,i,l)}else if(ko(u)){let c=n.image;dr(r)||(c=this.converter.convert(c,i).toString()),u.value+=c}}}isValidToken(e){return!e.isInsertedInRecovery&&!isNaN(e.startOffset)&&typeof e.endOffset=="number"&&!isNaN(e.endOffset)}subrule(e,t,r,n,a){let i;!this.isRecording()&&!r&&(i=this.nodeBuilder.buildCompositeNode(n));let o;try{o=this.wrapper.wrapSubrule(e,t,a)}finally{this.isRecording()||(o===void 0&&!r&&(o=this.construct()),o!==void 0&&i&&i.length>0&&this.performSubruleAssignment(o,n,i))}}performSubruleAssignment(e,t,r){let{assignment:n,crossRef:a}=this.getAssignment(t);if(n)this.assign(n.operator,n.feature,e,r,a);else if(!n){let i=this.current;if(ko(i))i.value+=e.toString();else if(typeof e=="object"&&e){let l=this.assignWithoutOverride(e,i);this.stack.pop(),this.stack.push(l)}}}action(e,t){if(!this.isRecording()){let r=this.current;if(t.feature&&t.operator){r=this.construct(),this.nodeBuilder.removeNode(r.$cstNode),this.nodeBuilder.buildCompositeNode(t).content.push(r.$cstNode);let a={$type:e};this.stack.push(a),this.assign(t.operator,t.feature,r,r.$cstNode)}else r.$type=e}}construct(){if(this.isRecording())return;let e=this.stack.pop();return this.nodeBuilder.construct(e),"$infixName"in e?this.constructInfix(e,this.operatorPrecedence.get(e.$infixName)):ko(e)?this.converter.convert(e.value,e.$cstNode):(Ap(this.astReflection,e),e)}constructInfix(e,t){let r=e.parts;if(!Array.isArray(r)||r.length===0)return;let n=e.operators;if(!Array.isArray(n)||r.length<2)return r[0];let a=0,i=-1;for(let v=0;vi?(i=S.precedence,a=v):S.precedence===i&&(S.rightAssoc||(a=v))}let o=n.slice(0,a),l=n.slice(a+1),u=r.slice(0,a+1),c=r.slice(a+1),f={$infixName:e.$infixName,$type:e.$type,$cstNode:e.$cstNode,parts:u,operators:o},p={$infixName:e.$infixName,$type:e.$type,$cstNode:e.$cstNode,parts:c,operators:l},m=this.constructInfix(f,t),g=this.constructInfix(p,t);return{$type:e.$type,$cstNode:e.$cstNode,left:m,operator:n[a],right:g}}getAssignment(e){if(!this.assignmentMap.has(e)){let t=wn(e,pr);this.assignmentMap.set(e,{assignment:t,crossRef:t&&Nn(t.terminal)?t.terminal.isMulti?"multi":"single":void 0})}return this.assignmentMap.get(e)}assign(e,t,r,n,a){let i=this.current,o;switch(a==="single"&&typeof r=="string"?o=this.linker.buildReference(i,t,n,r):a==="multi"&&typeof r=="string"?o=this.linker.buildMultiReference(i,t,n,r):o=r,e){case"=":{i[t]=o;break}case"?=":{i[t]=!0;break}case"+=":Array.isArray(i[t])||(i[t]=[]),i[t].push(o)}}assignWithoutOverride(e,t){for(let[n,a]of Object.entries(t)){let i=e[n];i===void 0?e[n]=a:Array.isArray(i)&&Array.isArray(a)&&(a.push(...i),e[n]=a)}let r=e.$cstNode;return r&&(r.astNode=void 0,e.$cstNode=void 0),e}get definitionErrors(){return this.wrapper.definitionErrors}},AS=class{static{s(this,"AbstractParserErrorMessageProvider")}buildMismatchTokenMessage(e){return Ia.buildMismatchTokenMessage(e)}buildNotAllInputParsedMessage(e){return Ia.buildNotAllInputParsedMessage(e)}buildNoViableAltMessage(e){return Ia.buildNoViableAltMessage(e)}buildEarlyExitMessage(e){return Ia.buildEarlyExitMessage(e)}},bm=class extends AS{static{s(this,"LangiumParserErrorMessageProvider")}buildMismatchTokenMessage({expected:e,actual:t}){return`Expecting ${e.LABEL?"`"+e.LABEL+"`":e.name.endsWith(":KW")?`keyword '${e.name.substring(0,e.name.length-3)}'`:`token of type '${e.name}'`} but found \`${t.image}\`.`}buildNotAllInputParsedMessage({firstRedundant:e}){return`Expecting end of file but found \`${e.image}\`.`}},ES=class extends Cm{static{s(this,"LangiumCompletionParser")}constructor(){super(...arguments),this.tokens=[],this.elementStack=[],this.lastElementStack=[],this.nextTokenIndex=0,this.stackSize=0}action(){}construct(){}parse(e){this.resetState();let t=this.lexer.tokenize(e,{mode:"partial"});return this.tokens=t.tokens,this.wrapper.input=[...this.tokens],this.mainRule.call(this.wrapper,{}),this.unorderedGroups.clear(),{tokens:this.tokens,elementStack:[...this.lastElementStack],tokenIndex:this.nextTokenIndex}}rule(e,t){let r=this.wrapper.DEFINE_RULE($S(e.name),this.startImplementation(t).bind(this));return this.allRules.set(e.name,r),e.entry&&(this.mainRule=r),r}resetState(){this.elementStack=[],this.lastElementStack=[],this.nextTokenIndex=0,this.stackSize=0}startImplementation(e){return t=>{let r=this.keepStackSize();try{e(t)}finally{this.resetStackSize(r)}}}removeUnexpectedElements(){this.elementStack.splice(this.stackSize)}keepStackSize(){let e=this.elementStack.length;return this.stackSize=e,e}resetStackSize(e){this.removeUnexpectedElements(),this.stackSize=e}consume(e,t,r){this.wrapper.wrapConsume(e,t),this.isRecording()||(this.lastElementStack=[...this.elementStack,r],this.nextTokenIndex=this.currIdx+1)}subrule(e,t,r,n,a){this.before(n),this.wrapper.wrapSubrule(e,t,a),this.after(n)}before(e){this.isRecording()||this.elementStack.push(e)}after(e){if(!this.isRecording()){let t=this.elementStack.lastIndexOf(e);t>=0&&this.elementStack.splice(t)}}get currIdx(){return this.wrapper.currIdx}},OG={recoveryEnabled:!0,nodeLocationTracking:"full",skipValidations:!0,errorMessageProvider:new bm},CS=class extends gD{static{s(this,"ChevrotainWrapper")}constructor(e,t){let r=t&&"maxLookahead"in t;super(e,{...OG,lookaheadStrategy:r?new em({maxLookahead:t.maxLookahead}):new PG({logging:t.skipValidations?()=>{}:void 0}),...t})}get IS_RECORDING(){return this.RECORDING_PHASE}DEFINE_RULE(e,t,r){return this.RULE(e,t,r)}wrapSelfAnalysis(){this.performSelfAnalysis()}wrapConsume(e,t){return this.consume(e,t,void 0)}wrapSubrule(e,t,r){return this.subrule(e,t,{ARGS:[r]})}wrapOr(e,t){this.or(e,t)}wrapOption(e,t){this.option(e,t)}wrapMany(e,t){this.many(e,t)}wrapAtLeastOne(e,t){this.atLeastOne(e,t)}rule(e){return e.call(this,{})}},LG=class extends CS{static{s(this,"ProfilerWrapper")}constructor(e,t,r){super(e,t),this.task=r}rule(e){this.task.start(),this.task.startSubTask(this.ruleName(e));try{return super.rule(e)}finally{this.task.stopSubTask(this.ruleName(e)),this.task.stop()}}ruleName(e){return e.ruleName}subrule(e,t,r){this.task.startSubTask(this.ruleName(t));try{return super.subrule(e,t,r)}finally{this.task.stopSubTask(this.ruleName(t))}}};function _u(e,t,r){return bS({parser:t,tokens:r,ruleNames:new Map},e),t}s(_u,"createParser");function bS(e,t){let r=jl(t,!1),n=le(t.rules).filter(Qe).filter(i=>r.has(i));for(let i of n){let o={...e,consume:1,optional:1,subrule:1,many:1,or:1};e.parser.rule(i,xr(o,i.definition))}let a=le(t.rules).filter(Ga).filter(i=>r.has(i));for(let i of a)e.parser.rule(i,_S(e,i))}s(bS,"buildRules");function _S(e,t){let r=t.call.rule.ref;if(!r)throw new Error("Could not resolve reference to infix operator rule: "+t.call.rule.$refText);if(At(r))throw new Error("Cannot use terminal rule in infix expression");let n=t.operators.precedences.flatMap(g=>g.operators),a={$type:"Group",elements:[]},i={$container:a,$type:"Assignment",feature:"parts",operator:"+=",terminal:t.call},o={$container:a,$type:"Group",elements:[],cardinality:"*"};a.elements.push(i,o);let u={$container:o,$type:"Assignment",feature:"operators",operator:"+=",terminal:{$type:"Alternatives",elements:n}},c={...i,$container:o};o.elements.push(u,c);let p=n.map(g=>e.tokens[g.value]).map((g,v)=>({ALT:s(()=>e.parser.consume(v,g,u),"ALT")})),m;return g=>{m??(m=Su(e,r)),e.parser.subrule(0,m,!1,i,g),e.parser.many(0,{DEF:s(()=>{e.parser.alternatives(0,p),e.parser.subrule(1,m,!1,c,g)},"DEF")})}}s(_S,"buildInfixRule");function xr(e,t,r=!1){let n;if(dr(t))n=OS(e,t);else if(kr(t))n=SS(e,t);else if(pr(t))n=xr(e,t.terminal);else if(Nn(t))n=_m(e,t);else if(mr(t))n=wS(e,t);else if(kl(t))n=NS(e,t);else if(xl(t))n=PS(e,t);else if(Pn(t))n=kS(e,t);else if(Ip(t)){let a=e.consume++;n=s(()=>e.parser.consume(a,Lr,t),"method")}else throw new Gl(t.$cstNode,`Unexpected element type: ${t.$type}`);return Sm(e,r?void 0:bs(t),n,t.cardinality)}s(xr,"buildElement");function SS(e,t){let r=An(t);return()=>e.parser.action(r,t)}s(SS,"buildAction");function wS(e,t){let r=t.rule.ref;if(In(r)){let n=e.subrule++,a=Qe(r)&&r.fragment,i=t.arguments.length>0?IS(r,t.arguments):()=>({}),o;return l=>{o??(o=Su(e,r)),e.parser.subrule(n,o,a,t,i(l))}}else if(At(r)){let n=e.consume++,a=Tl(e,r.name);return()=>e.parser.consume(n,a,t)}else if(r)Gr(r);else throw new Gl(t.$cstNode,`Undefined rule: ${t.rule.$refText}`)}s(wS,"buildRuleCall");function IS(e,t){if(t.some(n=>n.calledByName)){let n=t.map(a=>({parameterName:a.parameter?.ref?.name,predicate:wt(a.value)}));return a=>{let i={};for(let{parameterName:o,predicate:l}of n)o&&(i[o]=l(a));return i}}else{let n=t.map(a=>wt(a.value));return a=>{let i={};for(let o=0;ot(n)||r(n)}else if(Sp(e)){let t=wt(e.left),r=wt(e.right);return n=>t(n)&&r(n)}else if(kp(e)){let t=wt(e.value);return r=>!t(r)}else if(Op(e)){let t=e.parameter.ref.name;return r=>r!==void 0&&r[t]===!0}else if(bp(e)){let t=!!e.true;return()=>t}Gr(e)}s(wt,"buildPredicate");function NS(e,t){if(t.elements.length===1)return xr(e,t.elements[0]);{let r=[];for(let a of t.elements){let i={ALT:xr(e,a,!0)},o=bs(a);o&&(i.GATE=wt(o)),r.push(i)}let n=e.or++;return a=>e.parser.alternatives(n,r.map(i=>{let o={ALT:s(()=>i.ALT(a),"ALT")},l=i.GATE;return l&&(o.GATE=()=>l(a)),o}))}}s(NS,"buildAlternatives");function PS(e,t){if(t.elements.length===1)return xr(e,t.elements[0]);let r=[];for(let l of t.elements){let u={ALT:xr(e,l,!0)},c=bs(l);c&&(u.GATE=wt(c)),r.push(u)}let n=e.or++,a=s((l,u)=>{let c=u.getRuleStack().join("-");return`uGroup_${l}_${c}`},"idFunc"),i=s(l=>e.parser.alternatives(n,r.map((u,c)=>{let f={ALT:s(()=>!0,"ALT")},p=e.parser;f.ALT=()=>{if(u.ALT(l),!p.isRecording()){let g=a(n,p);p.unorderedGroups.get(g)||p.unorderedGroups.set(g,[]);let v=p.unorderedGroups.get(g);typeof v?.[c]>"u"&&(v[c]=!0)}};let m=u.GATE;return m?f.GATE=()=>m(l):f.GATE=()=>!p.unorderedGroups.get(a(n,p))?.[c],f})),"alternatives"),o=Sm(e,bs(t),i,"*");return l=>{o(l),e.parser.isRecording()||e.parser.unorderedGroups.delete(a(n,e.parser))}}s(PS,"buildUnorderedGroup");function kS(e,t){let r=t.elements.map(n=>xr(e,n));return n=>r.forEach(a=>a(n))}s(kS,"buildGroup");function bs(e){if(Pn(e))return e.guardCondition}s(bs,"getGuardCondition");function _m(e,t,r=t.terminal){if(r)if(mr(r)&&Qe(r.rule.ref)){let n=r.rule.ref,a=e.subrule++,i;return o=>{i??(i=Su(e,n)),e.parser.subrule(a,i,!1,t,o)}}else if(mr(r)&&At(r.rule.ref)){let n=e.consume++,a=Tl(e,r.rule.ref.name);return()=>e.parser.consume(n,a,t)}else if(dr(r)){let n=e.consume++,a=Tl(e,r.value);return()=>e.parser.consume(n,a,t)}else throw new Error("Could not build cross reference parser");else{if(!t.type.ref)throw new Error("Could not resolve reference to type: "+t.type.$refText);let a=ql(t.type.ref)?.terminal;if(!a)throw new Error("Could not find name assignment for type: "+An(t.type.ref));return _m(e,t,a)}}s(_m,"buildCrossReference");function OS(e,t){let r=e.consume++,n=e.tokens[t.value];if(!n)throw new Error("Could not find token for keyword: "+t.value);return()=>e.parser.consume(r,n,t)}s(OS,"buildKeyword");function Sm(e,t,r,n){let a=t&&wt(t);if(!n)if(a){let i=e.or++;return o=>e.parser.alternatives(i,[{ALT:s(()=>r(o),"ALT"),GATE:s(()=>a(o),"GATE")},{ALT:Df(),GATE:s(()=>!a(o),"GATE")}])}else return r;if(n==="*"){let i=e.many++;return o=>e.parser.many(i,{DEF:s(()=>r(o),"DEF"),GATE:a?()=>a(o):void 0})}else if(n==="+"){let i=e.many++;if(a){let o=e.or++;return l=>e.parser.alternatives(o,[{ALT:s(()=>e.parser.atLeastOne(i,{DEF:s(()=>r(l),"DEF")}),"ALT"),GATE:s(()=>a(l),"GATE")},{ALT:Df(),GATE:s(()=>!a(l),"GATE")}])}else return o=>e.parser.atLeastOne(i,{DEF:s(()=>r(o),"DEF")})}else if(n==="?"){let i=e.optional++;return o=>e.parser.optional(i,{DEF:s(()=>r(o),"DEF"),GATE:a?()=>a(o):void 0})}else Gr(n)}s(Sm,"wrap");function Su(e,t){let r=LS(e,t),n=e.parser.getRule(r);if(!n)throw new Error(`Rule "${r}" not found."`);return n}s(Su,"getRule");function LS(e,t){if(In(t))return t.name;if(e.ruleNames.has(t))return e.ruleNames.get(t);{let r=t,n=r.$container,a=t.$type;for(;!Qe(n);)(Pn(n)||kl(n)||xl(n))&&(a=n.elements.indexOf(r).toString()+":"+a),r=n,n=n.$container;return a=n.name+":"+a,e.ruleNames.set(t,a),a}}s(LS,"getRuleName");function Tl(e,t){let r=e.tokens[t];if(!r)throw new Error(`Token "${t}" not found."`);return r}s(Tl,"getToken");function wm(e){let t=e.Grammar,r=e.parser.Lexer,n=new ES(e);return _u(t,n,r.definition),n.finalize(),n}s(wm,"createCompletionParser");function Im(e){let t=Nm(e);return t.finalize(),t}s(Im,"createLangiumParser");function Nm(e){let t=e.Grammar,r=e.parser.Lexer,n=new RS(e);return _u(t,n,r.definition)}s(Nm,"prepareLangiumParser");var wu=class{static{s(this,"DefaultTokenBuilder")}constructor(){this.diagnostics=[]}buildTokens(e,t){let r=le(jl(e,!1)),n=this.buildTerminalTokens(r),a=this.buildKeywordTokens(r,n,t);return a.push(...n),a}flushLexingReport(e){return{diagnostics:this.popDiagnostics()}}popDiagnostics(){let e=[...this.diagnostics];return this.diagnostics=[],e}buildTerminalTokens(e){return e.filter(At).filter(t=>!t.fragment).map(t=>this.buildTerminalToken(t)).toArray()}buildTerminalToken(e){let t=Os(e),r=this.requiresCustomPattern(t)?this.regexPatternFunction(t):t,n={name:e.name,PATTERN:r};return typeof r=="function"&&(n.LINE_BREAKS=!0),e.hidden&&(n.GROUP=zl(t)?Ze.SKIPPED:"hidden"),n}requiresCustomPattern(e){return!!(e.flags.includes("u")||e.flags.includes("s"))}regexPatternFunction(e){let t=new RegExp(e,e.flags+"y");return(r,n)=>(t.lastIndex=n,t.exec(r))}buildKeywordTokens(e,t,r){return e.filter(In).flatMap(n=>Rr(n).filter(dr)).distinct(n=>n.value).toArray().sort((n,a)=>a.value.length-n.value.length).map(n=>this.buildKeywordToken(n,t,!!r?.caseInsensitive))}buildKeywordToken(e,t,r){let n=this.buildKeywordPattern(e,r),a={name:e.value,PATTERN:n,LONGER_ALT:this.findLongerAlt(e,t)};return typeof n=="function"&&(a.LINE_BREAKS=!0),a}buildKeywordPattern(e,t){return t?new RegExp(Va(e.value),"i"):e.value}findLongerAlt(e,t){return t.reduce((r,n)=>{let a=n?.PATTERN;return a?.source&&td("^"+a.source+"$",e.value)&&r.push(n),r},[])}},Pm=class{static{s(this,"DefaultValueConverter")}convert(e,t){let r=t.grammarSource;if(Nn(r)&&(r=sd(r)),mr(r)){let n=r.rule.ref;if(!n)throw new Error("This cst node was not parsed by a rule.");return this.runConverter(n,e,t)}return e}runConverter(e,t,r){switch(e.name.toUpperCase()){case"INT":return Bt.convertInt(t);case"STRING":return Bt.convertString(t);case"ID":return Bt.convertID(t)}switch(hd(e)?.toLowerCase()){case"number":return Bt.convertNumber(t);case"boolean":return Bt.convertBoolean(t);case"bigint":return Bt.convertBigint(t);case"date":return Bt.convertDate(t);default:return t}}},Bt;(function(e){function t(c){let f="";for(let p=1;p{typeof setImmediate>"u"?setTimeout(e,0):setImmediate(e)})}s(Iu,"delayNextTick");var Oo=0,DS=10;function Nu(){return Oo=performance.now(),new pe.CancellationTokenSource}s(Nu,"startCancelableOperation");function km(e){DS=e}s(km,"setInterruptionPeriod");var Vt=Symbol("OperationCancelled");function Wn(e){return e===Vt}s(Wn,"isOperationCancelled");async function Fe(e){if(e===pe.CancellationToken.None)return;let t=performance.now();if(t-Oo>=DS&&(Oo=t,await Iu(),Oo=performance.now()),e.isCancellationRequested)throw Vt}s(Fe,"interruptAndCheck");var Tr=class{static{s(this,"Deferred")}constructor(){this.promise=new Promise((e,t)=>{this.resolve=r=>(e(r),this),this.reject=r=>(t(r),this)})}},Ey=class Kf{static{s(this,"FullTextDocument")}constructor(t,r,n,a){this._uri=t,this._languageId=r,this._version=n,this._content=a,this._lineOffsets=void 0}get uri(){return this._uri}get languageId(){return this._languageId}get version(){return this._version}getText(t){if(t){let r=this.offsetAt(t.start),n=this.offsetAt(t.end);return this._content.substring(r,n)}return this._content}update(t,r){for(let n of t)if(Kf.isIncremental(n)){let a=Lm(n.range),i=this.offsetAt(a.start),o=this.offsetAt(a.end);this._content=this._content.substring(0,i)+n.text+this._content.substring(o,this._content.length);let l=Math.max(a.start.line,0),u=Math.max(a.end.line,0),c=this._lineOffsets,f=Bf(n.text,!1,i);if(u-l===f.length)for(let m=0,g=f.length;mt?a=o:n=o+1}let i=n-1;return t=this.ensureBeforeEOL(t,r[i]),{line:i,character:t-r[i]}}offsetAt(t){let r=this.getLineOffsets();if(t.line>=r.length)return this._content.length;if(t.line<0)return 0;let n=r[t.line];if(t.character<=0)return n;let a=t.line+1r&&Om(this._content.charCodeAt(t-1));)t--;return t}get lineCount(){return this.getLineOffsets().length}static isIncremental(t){let r=t;return r!=null&&typeof r.text=="string"&&r.range!==void 0&&(r.rangeLength===void 0||typeof r.rangeLength=="number")}static isFull(t){let r=t;return r!=null&&typeof r.text=="string"&&r.range===void 0&&r.rangeLength===void 0}},$l;(function(e){function t(a,i,o,l){return new Ey(a,i,o,l)}s(t,"create"),e.create=t;function r(a,i,o){if(a instanceof Ey)return a.update(i,o),a;throw new Error("TextDocument.update: document must be created by TextDocument.create")}s(r,"update"),e.update=r;function n(a,i){let o=a.getText(),l=Rl(i.map(xS),(f,p)=>{let m=f.range.start.line-p.range.start.line;return m===0?f.range.start.character-p.range.start.character:m}),u=0,c=[];for(let f of l){let p=a.offsetAt(f.range.start);if(pu&&c.push(o.substring(u,p)),f.newText.length&&c.push(f.newText),u=a.offsetAt(f.range.end)}return c.push(o.substr(u)),c.join("")}s(n,"applyEdits"),e.applyEdits=n})($l||($l={}));function Rl(e,t){if(e.length<=1)return e;let r=e.length/2|0,n=e.slice(0,r),a=e.slice(r);Rl(n,t),Rl(a,t);let i=0,o=0,l=0;for(;ir.line||t.line===r.line&&t.character>r.character?{start:r,end:t}:e}s(Lm,"getWellformedRange");function xS(e){let t=Lm(e.range);return t!==e.range?{newText:e.newText,range:t}:e}s(xS,"getWellformedEdit");var MS;(()=>{"use strict";var e={975:k=>{function C(T){if(typeof T!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(T))}s(C,"e");function y(T,$){for(var b,O="",x=0,D=-1,G=0,q=0;q<=T.length;++q){if(q2){var Y=O.lastIndexOf("/");if(Y!==O.length-1){Y===-1?(O="",x=0):x=(O=O.slice(0,Y)).length-1-O.lastIndexOf("/"),D=q,G=0;continue}}else if(O.length===2||O.length===1){O="",x=0,D=q,G=0;continue}}$&&(O.length>0?O+="/..":O="..",x=2)}else O.length>0?O+="/"+T.slice(D+1,q):O=T.slice(D+1,q),x=q-D-1;D=q,G=0}else b===46&&G!==-1?++G:G=-1}return O}s(y,"r");var E={resolve:s(function(){for(var T,$="",b=!1,O=arguments.length-1;O>=-1&&!b;O--){var x;O>=0?x=arguments[O]:(T===void 0&&(T=process.cwd()),x=T),C(x),x.length!==0&&($=x+"/"+$,b=x.charCodeAt(0)===47)}return $=y($,!b),b?$.length>0?"/"+$:"/":$.length>0?$:"."},"resolve"),normalize:s(function(T){if(C(T),T.length===0)return".";var $=T.charCodeAt(0)===47,b=T.charCodeAt(T.length-1)===47;return(T=y(T,!$)).length!==0||$||(T="."),T.length>0&&b&&(T+="/"),$?"/"+T:T},"normalize"),isAbsolute:s(function(T){return C(T),T.length>0&&T.charCodeAt(0)===47},"isAbsolute"),join:s(function(){if(arguments.length===0)return".";for(var T,$=0;$0&&(T===void 0?T=b:T+="/"+b)}return T===void 0?".":E.normalize(T)},"join"),relative:s(function(T,$){if(C(T),C($),T===$||(T=E.resolve(T))===($=E.resolve($)))return"";for(var b=1;bq){if($.charCodeAt(D+W)===47)return $.slice(D+W+1);if(W===0)return $.slice(D+W)}else x>q&&(T.charCodeAt(b+W)===47?Y=W:W===0&&(Y=0));break}var Ne=T.charCodeAt(b+W);if(Ne!==$.charCodeAt(D+W))break;Ne===47&&(Y=W)}var se="";for(W=b+Y+1;W<=O;++W)W!==O&&T.charCodeAt(W)!==47||(se.length===0?se+="..":se+="/..");return se.length>0?se+$.slice(D+Y):(D+=Y,$.charCodeAt(D)===47&&++D,$.slice(D))},"relative"),_makeLong:s(function(T){return T},"_makeLong"),dirname:s(function(T){if(C(T),T.length===0)return".";for(var $=T.charCodeAt(0),b=$===47,O=-1,x=!0,D=T.length-1;D>=1;--D)if(($=T.charCodeAt(D))===47){if(!x){O=D;break}}else x=!1;return O===-1?b?"/":".":b&&O===1?"//":T.slice(0,O)},"dirname"),basename:s(function(T,$){if($!==void 0&&typeof $!="string")throw new TypeError('"ext" argument must be a string');C(T);var b,O=0,x=-1,D=!0;if($!==void 0&&$.length>0&&$.length<=T.length){if($.length===T.length&&$===T)return"";var G=$.length-1,q=-1;for(b=T.length-1;b>=0;--b){var Y=T.charCodeAt(b);if(Y===47){if(!D){O=b+1;break}}else q===-1&&(D=!1,q=b+1),G>=0&&(Y===$.charCodeAt(G)?--G==-1&&(x=b):(G=-1,x=q))}return O===x?x=q:x===-1&&(x=T.length),T.slice(O,x)}for(b=T.length-1;b>=0;--b)if(T.charCodeAt(b)===47){if(!D){O=b+1;break}}else x===-1&&(D=!1,x=b+1);return x===-1?"":T.slice(O,x)},"basename"),extname:s(function(T){C(T);for(var $=-1,b=0,O=-1,x=!0,D=0,G=T.length-1;G>=0;--G){var q=T.charCodeAt(G);if(q!==47)O===-1&&(x=!1,O=G+1),q===46?$===-1?$=G:D!==1&&(D=1):$!==-1&&(D=-1);else if(!x){b=G+1;break}}return $===-1||O===-1||D===0||D===1&&$===O-1&&$===b+1?"":T.slice($,O)},"extname"),format:s(function(T){if(T===null||typeof T!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof T);return(function($,b){var O=b.dir||b.root,x=b.base||(b.name||"")+(b.ext||"");return O?O===b.root?O+x:O+"/"+x:x})(0,T)},"format"),parse:s(function(T){C(T);var $={root:"",dir:"",base:"",ext:"",name:""};if(T.length===0)return $;var b,O=T.charCodeAt(0),x=O===47;x?($.root="/",b=1):b=0;for(var D=-1,G=0,q=-1,Y=!0,W=T.length-1,Ne=0;W>=b;--W)if((O=T.charCodeAt(W))!==47)q===-1&&(Y=!1,q=W+1),O===46?D===-1?D=W:Ne!==1&&(Ne=1):D!==-1&&(Ne=-1);else if(!Y){G=W+1;break}return D===-1||q===-1||Ne===0||Ne===1&&D===q-1&&D===G+1?q!==-1&&($.base=$.name=G===0&&x?T.slice(1,q):T.slice(G,q)):(G===0&&x?($.name=T.slice(1,D),$.base=T.slice(1,q)):($.name=T.slice(G,D),$.base=T.slice(G,q)),$.ext=T.slice(D,q)),G>0?$.dir=T.slice(0,G-1):x&&($.dir="/"),$},"parse"),sep:"/",delimiter:":",win32:null,posix:null};E.posix=E,k.exports=E}},t={};function r(k){var C=t[k];if(C!==void 0)return C.exports;var y=t[k]={exports:{}};return e[k](y,y.exports,r),y.exports}s(r,"r"),r.d=(k,C)=>{for(var y in C)r.o(C,y)&&!r.o(k,y)&&Object.defineProperty(k,y,{enumerable:!0,get:C[y]})},r.o=(k,C)=>Object.prototype.hasOwnProperty.call(k,C),r.r=k=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(k,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(k,"__esModule",{value:!0})};var n={};let a;r.r(n),r.d(n,{URI:s(()=>m,"URI"),Utils:s(()=>_e,"Utils")}),typeof process=="object"?a=process.platform==="win32":typeof navigator=="object"&&(a=navigator.userAgent.indexOf("Windows")>=0);let i=/^\w[\w\d+.-]*$/,o=/^\//,l=/^\/\//;function u(k,C){if(!k.scheme&&C)throw new Error(`[UriError]: Scheme is missing: {scheme: "", authority: "${k.authority}", path: "${k.path}", query: "${k.query}", fragment: "${k.fragment}"}`);if(k.scheme&&!i.test(k.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(k.path){if(k.authority){if(!o.test(k.path))throw new Error('[UriError]: If a URI contains an authority component, then the path component must either be empty or begin with a slash ("/") character')}else if(l.test(k.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}}s(u,"a");let c="",f="/",p=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/;class m{static{s(this,"l")}static isUri(C){return C instanceof m||!!C&&typeof C.authority=="string"&&typeof C.fragment=="string"&&typeof C.path=="string"&&typeof C.query=="string"&&typeof C.scheme=="string"&&typeof C.fsPath=="string"&&typeof C.with=="function"&&typeof C.toString=="function"}scheme;authority;path;query;fragment;constructor(C,y,E,T,$,b=!1){typeof C=="object"?(this.scheme=C.scheme||c,this.authority=C.authority||c,this.path=C.path||c,this.query=C.query||c,this.fragment=C.fragment||c):(this.scheme=(function(O,x){return O||x?O:"file"})(C,b),this.authority=y||c,this.path=(function(O,x){switch(O){case"https":case"http":case"file":x?x[0]!==f&&(x=f+x):x=f}return x})(this.scheme,E||c),this.query=T||c,this.fragment=$||c,u(this,b))}get fsPath(){return w(this,!1)}with(C){if(!C)return this;let{scheme:y,authority:E,path:T,query:$,fragment:b}=C;return y===void 0?y=this.scheme:y===null&&(y=c),E===void 0?E=this.authority:E===null&&(E=c),T===void 0?T=this.path:T===null&&(T=c),$===void 0?$=this.query:$===null&&($=c),b===void 0?b=this.fragment:b===null&&(b=c),y===this.scheme&&E===this.authority&&T===this.path&&$===this.query&&b===this.fragment?this:new v(y,E,T,$,b)}static parse(C,y=!1){let E=p.exec(C);return E?new v(E[2]||c,X(E[4]||c),X(E[5]||c),X(E[7]||c),X(E[9]||c),y):new v(c,c,c,c,c)}static file(C){let y=c;if(a&&(C=C.replace(/\\/g,f)),C[0]===f&&C[1]===f){let E=C.indexOf(f,2);E===-1?(y=C.substring(2),C=f):(y=C.substring(2,E),C=C.substring(E)||f)}return new v("file",y,C,c,c)}static from(C){let y=new v(C.scheme,C.authority,C.path,C.query,C.fragment);return u(y,!0),y}toString(C=!1){return R(this,C)}toJSON(){return this}static revive(C){if(C){if(C instanceof m)return C;{let y=new v(C);return y._formatted=C.external,y._fsPath=C._sep===g?C.fsPath:null,y}}return C}}let g=a?1:void 0;class v extends m{static{s(this,"d")}_formatted=null;_fsPath=null;get fsPath(){return this._fsPath||(this._fsPath=w(this,!1)),this._fsPath}toString(C=!1){return C?R(this,!0):(this._formatted||(this._formatted=R(this,!1)),this._formatted)}toJSON(){let C={$mid:1};return this._fsPath&&(C.fsPath=this._fsPath,C._sep=g),this._formatted&&(C.external=this._formatted),this.path&&(C.path=this.path),this.scheme&&(C.scheme=this.scheme),this.authority&&(C.authority=this.authority),this.query&&(C.query=this.query),this.fragment&&(C.fragment=this.fragment),C}}let _={58:"%3A",47:"%2F",63:"%3F",35:"%23",91:"%5B",93:"%5D",64:"%40",33:"%21",36:"%24",38:"%26",39:"%27",40:"%28",41:"%29",42:"%2A",43:"%2B",44:"%2C",59:"%3B",61:"%3D",32:"%20"};function S(k,C,y){let E,T=-1;for(let $=0;$=97&&b<=122||b>=65&&b<=90||b>=48&&b<=57||b===45||b===46||b===95||b===126||C&&b===47||y&&b===91||y&&b===93||y&&b===58)T!==-1&&(E+=encodeURIComponent(k.substring(T,$)),T=-1),E!==void 0&&(E+=k.charAt($));else{E===void 0&&(E=k.substr(0,$));let O=_[b];O!==void 0?(T!==-1&&(E+=encodeURIComponent(k.substring(T,$)),T=-1),E+=O):T===-1&&(T=$)}}return T!==-1&&(E+=encodeURIComponent(k.substring(T))),E!==void 0?E:k}s(S,"m");function I(k){let C;for(let y=0;y1&&k.scheme==="file"?`//${k.authority}${k.path}`:k.path.charCodeAt(0)===47&&(k.path.charCodeAt(1)>=65&&k.path.charCodeAt(1)<=90||k.path.charCodeAt(1)>=97&&k.path.charCodeAt(1)<=122)&&k.path.charCodeAt(2)===58?C?k.path.substr(1):k.path[1].toLowerCase()+k.path.substr(2):k.path,a&&(y=y.replace(/\//g,"\\")),y}s(w,"v");function R(k,C){let y=C?I:S,E="",{scheme:T,authority:$,path:b,query:O,fragment:x}=k;if(T&&(E+=T,E+=":"),($||T==="file")&&(E+=f,E+=f),$){let D=$.indexOf("@");if(D!==-1){let G=$.substr(0,D);$=$.substr(D+1),D=G.lastIndexOf(":"),D===-1?E+=y(G,!1,!1):(E+=y(G.substr(0,D),!1,!1),E+=":",E+=y(G.substr(D+1),!1,!0)),E+="@"}$=$.toLowerCase(),D=$.lastIndexOf(":"),D===-1?E+=y($,!1,!0):(E+=y($.substr(0,D),!1,!0),E+=$.substr(D))}if(b){if(b.length>=3&&b.charCodeAt(0)===47&&b.charCodeAt(2)===58){let D=b.charCodeAt(1);D>=65&&D<=90&&(b=`/${String.fromCharCode(D+32)}:${b.substr(3)}`)}else if(b.length>=2&&b.charCodeAt(1)===58){let D=b.charCodeAt(0);D>=65&&D<=90&&(b=`${String.fromCharCode(D+32)}:${b.substr(2)}`)}E+=y(b,!0,!1)}return O&&(E+="?",E+=y(O,!1,!1)),x&&(E+="#",E+=C?x:S(x,!1,!1)),E}s(R,"b");function P(k){try{return decodeURIComponent(k)}catch{return k.length>3?k.substr(0,3)+P(k.substr(3)):k}}s(P,"C");let z=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function X(k){return k.match(z)?k.replace(z,(C=>P(C))):k}s(X,"w");var Z=r(975);let ue=Z.posix||Z,ie="/";var _e;(function(k){k.joinPath=function(C,...y){return C.with({path:ue.join(C.path,...y)})},k.resolvePath=function(C,...y){let E=C.path,T=!1;E[0]!==ie&&(E=ie+E,T=!0);let $=ue.resolve(E,...y);return T&&$[0]===ie&&!C.authority&&($=$.substring(1)),C.with({path:$})},k.dirname=function(C){if(C.path.length===0||C.path===ie)return C;let y=ue.dirname(C.path);return y.length===1&&y.charCodeAt(0)===46&&(y=""),C.with({path:y})},k.basename=function(C){return ue.basename(C.path)},k.extname=function(C){return ue.extname(C.path)}})(_e||(_e={})),MS=n})();var{URI:ft,Utils:bi}=MS,Je;(function(e){e.basename=bi.basename,e.dirname=bi.dirname,e.extname=bi.extname,e.joinPath=bi.joinPath,e.resolvePath=bi.resolvePath;let t=typeof process=="object"&&process?.platform==="win32";function r(o,l){return o?.toString()===l?.toString()}s(r,"equals"),e.equals=r;function n(o,l){let u=typeof o=="string"?ft.parse(o).path:o.path,c=typeof l=="string"?ft.parse(l).path:l.path,f=u.split("/").filter(_=>_.length>0),p=c.split("/").filter(_=>_.length>0);if(t){let _=/^[A-Z]:$/;if(f[0]&&_.test(f[0])&&(f[0]=f[0].toLowerCase()),p[0]&&_.test(p[0])&&(p[0]=p[0].toLowerCase()),f[0]!==p[0])return c.substring(1)}let m=0;for(;m({name:n.name,uri:Je.joinPath(ft.parse(t),n.name).toString(),element:n.element})):[]}all(){return this.collectValues(this.root)}findAll(e){let t=this.getNode(Je.normalize(e),!1);return t?this.collectValues(t):[]}getNode(e,t){let r=e.split("/");e.charAt(e.length-1)==="/"&&r.pop();let n=this.root;for(let a of r){let i=n.children.get(a);if(!i)if(t)i={name:a,children:new Map,parent:n},n.children.set(a,i);else return;n=i}return n}collectValues(e){let t=[];e.element&&t.push(e.element);for(let r of e.children.values())t.push(...this.collectValues(r));return t}},J;(function(e){e[e.Changed=0]="Changed",e[e.Parsed=1]="Parsed",e[e.IndexedContent=2]="IndexedContent",e[e.ComputedScopes=3]="ComputedScopes",e[e.Linked=4]="Linked",e[e.IndexedReferences=5]="IndexedReferences",e[e.Validated=6]="Validated"})(J||(J={}));var GS=class{static{s(this,"DefaultLangiumDocumentFactory")}constructor(e){this.serviceRegistry=e.ServiceRegistry,this.textDocuments=e.workspace.TextDocuments,this.fileSystemProvider=e.workspace.FileSystemProvider}async fromUri(e,t=pe.CancellationToken.None){let r=await this.fileSystemProvider.readFile(e);return this.createAsync(e,r,t)}fromTextDocument(e,t,r){return t=t??ft.parse(e.uri),pe.CancellationToken.is(r)?this.createAsync(t,e,r):this.create(t,e,r)}fromString(e,t,r){return pe.CancellationToken.is(r)?this.createAsync(t,e,r):this.create(t,e,r)}fromModel(e,t){return this.create(t,{$model:e})}create(e,t,r){if(typeof t=="string"){let n=this.parse(e,t,r);return this.createLangiumDocument(n,e,void 0,t)}else if("$model"in t){let n={value:t.$model,parserErrors:[],lexerErrors:[]};return this.createLangiumDocument(n,e)}else{let n=this.parse(e,t.getText(),r);return this.createLangiumDocument(n,e,t)}}async createAsync(e,t,r){if(typeof t=="string"){let n=await this.parseAsync(e,t,r);return this.createLangiumDocument(n,e,void 0,t)}else{let n=await this.parseAsync(e,t.getText(),r);return this.createLangiumDocument(n,e,t)}}createLangiumDocument(e,t,r,n){let a;if(r)a={parseResult:e,uri:t,state:J.Parsed,references:[],textDocument:r};else{let i=this.createTextDocumentGetter(t,n);a={parseResult:e,uri:t,state:J.Parsed,references:[],get textDocument(){return i()}}}return e.value.$document=a,a}async update(e,t){let r=e.parseResult.value.$cstNode?.root.fullText,n=this.textDocuments?.get(e.uri.toString()),a=n?n.getText():await this.fileSystemProvider.readFile(e.uri);if(n)Object.defineProperty(e,"textDocument",{value:n});else{let i=this.createTextDocumentGetter(e.uri,a);Object.defineProperty(e,"textDocument",{get:i})}return r!==a&&(e.parseResult=await this.parseAsync(e.uri,a,t),e.parseResult.value.$document=e),e.state=J.Parsed,e}parse(e,t,r){return this.serviceRegistry.getServices(e).parser.LangiumParser.parse(t,r)}parseAsync(e,t,r){return this.serviceRegistry.getServices(e).parser.AsyncParser.parse(t,r)}createTextDocumentGetter(e,t){let r=this.serviceRegistry,n;return()=>n??(n=$l.create(e.toString(),r.getServices(e).LanguageMetaData.languageId,0,t??""))}},FS=class{static{s(this,"DefaultLangiumDocuments")}constructor(e){this.documentTrie=new Dm,this.services=e,this.langiumDocumentFactory=e.workspace.LangiumDocumentFactory,this.documentBuilder=()=>e.workspace.DocumentBuilder}get all(){return le(this.documentTrie.all())}addDocument(e){let t=e.uri.toString();if(this.documentTrie.has(t))throw new Error(`A document with the URI '${t}' is already present.`);this.documentTrie.insert(t,e)}getDocument(e){let t=e.toString();return this.documentTrie.find(t)}getDocuments(e){let t=e.toString();return this.documentTrie.findAll(t)}async getOrCreateDocument(e,t){let r=this.getDocument(e);return r||(r=await this.langiumDocumentFactory.fromUri(e,t),this.addDocument(r),r)}createDocument(e,t,r){if(r)return this.langiumDocumentFactory.fromString(t,e,r).then(n=>(this.addDocument(n),n));{let n=this.langiumDocumentFactory.fromString(t,e);return this.addDocument(n),n}}hasDocument(e){return this.documentTrie.has(e.toString())}invalidateDocument(e){let t=e.toString(),r=this.documentTrie.find(t);return r&&this.documentBuilder().resetToState(r,J.Changed),r}deleteDocument(e){let t=e.toString(),r=this.documentTrie.find(t);return r&&(r.state=J.Changed,this.documentTrie.delete(t)),r}deleteDocuments(e){let t=e.toString(),r=this.documentTrie.findAll(t);for(let n of r)n.state=J.Changed;return this.documentTrie.delete(t),r}},Qr=Symbol("RefResolving"),zS=class{static{s(this,"DefaultLinker")}constructor(e){this.reflection=e.shared.AstReflection,this.langiumDocuments=()=>e.shared.workspace.LangiumDocuments,this.scopeProvider=e.references.ScopeProvider,this.astNodeLocator=e.workspace.AstNodeLocator,this.profiler=e.shared.profilers.LangiumProfiler,this.languageId=e.LanguageMetaData.languageId}async link(e,t=pe.CancellationToken.None){if(this.profiler?.isActive("linking")){let r=this.profiler.createTask("linking",this.languageId);r.start();try{for(let n of Nt(e.parseResult.value))await Fe(t),Ma(n).forEach(a=>{let i=`${n.$type}:${a.property}`;r.startSubTask(i);try{this.doLink(a,e)}finally{r.stopSubTask(i)}})}finally{r.stop()}}else for(let r of Nt(e.parseResult.value))await Fe(t),Ma(r).forEach(n=>this.doLink(n,e))}doLink(e,t){let r=e.reference;if("_ref"in r&&r._ref===void 0){r._ref=Qr;try{let n=this.getCandidate(e);if(nn(n))r._ref=n;else{r._nodeDescription=n;let a=this.loadAstNode(n);r._ref=a??this.createLinkingError(e,n)}}catch(n){console.error(`An error occurred while resolving reference to '${r.$refText}':`,n);let a=n.message??String(n);r._ref={info:e,message:`An error occurred while resolving reference to '${r.$refText}': ${a}`}}t.references.push(r)}else if("_items"in r&&r._items===void 0){r._items=Qr;try{let n=this.getCandidates(e),a=[];if(nn(n))r._linkingError=n;else for(let i of n){let o=this.loadAstNode(i);o&&a.push({ref:o,$nodeDescription:i})}r._items=a}catch(n){r._linkingError={info:e,message:`An error occurred while resolving reference to '${r.$refText}': ${n}`},r._items=[]}t.references.push(r)}}unlink(e){for(let t of e.references)"_ref"in t?(t._ref=void 0,delete t._nodeDescription):"_items"in t&&(t._items=void 0,delete t._linkingError);e.references=[]}getCandidate(e){return this.scopeProvider.getScope(e).getElement(e.reference.$refText)??this.createLinkingError(e)}getCandidates(e){let r=this.scopeProvider.getScope(e).getElements(e.reference.$refText).distinct(n=>`${n.documentUri}#${n.path}`).toArray();return r.length>0?r:this.createLinkingError(e)}buildReference(e,t,r,n){let a=this,i={$refNode:r,$refText:n,_ref:void 0,get ref(){if(ke(this._ref))return this._ref;if(Tp(this._nodeDescription)){let o=a.loadAstNode(this._nodeDescription);this._ref=o??a.createLinkingError({reference:i,container:e,property:t},this._nodeDescription)}else if(this._ref===void 0){this._ref=Qr;let o=Na(e).$document,l=a.getLinkedNode({reference:i,container:e,property:t});if(l.error&&o&&o.state0))return this._linkingError=a.createLinkingError({reference:i,container:e,property:t})}};return i}throwCyclicReferenceError(e,t,r){throw new Error(`Cyclic reference resolution detected: ${this.astNodeLocator.getAstNodePath(e)}/${t} (symbol '${r}')`)}getLinkedNode(e){try{let t=this.getCandidate(e);if(nn(t))return{error:t};let r=this.loadAstNode(t);return r?{node:r,descr:t}:{descr:t,error:this.createLinkingError(e,t)}}catch(t){console.error(`An error occurred while resolving reference to '${e.reference.$refText}':`,t);let r=t.message??String(t);return{error:{info:e,message:`An error occurred while resolving reference to '${e.reference.$refText}': ${r}`}}}}loadAstNode(e){if(e.node)return e.node;let t=this.langiumDocuments().getDocument(e.documentUri);if(t)return this.astNodeLocator.getAstNode(t.parseResult.value,e.path)}createLinkingError(e,t){let r=Na(e.container).$document;r&&r.stateNn(t)&&t.isMulti)}findDeclarations(e){if(e){let t=cd(e),r=e.astNode;if(t&&r){let n=r[t.feature];if(Xe(n)||Ht(n))return Fo(n);if(Array.isArray(n)){for(let a of n)if((Xe(a)||Ht(a))&&a.$refNode&&a.$refNode.offset<=e.offset&&a.$refNode.end>=e.end)return Fo(a)}}if(r){let n=this.nameProvider.getNameNode(r);if(n&&(n===e||Kp(e,n)))return this.getSelfNodes(r)}}return[]}getSelfNodes(e){if(this.hasMultiReference){let t=this.index.findAllReferences(e,this.nodeLocator.getAstNodePath(e)),r=this.getNodeFromReferenceDescription(t.head());if(r){for(let n of Ma(r))if(Ht(n.reference)&&n.reference.items.some(a=>a.ref===e))return n.reference.items.map(a=>a.ref)}return[e]}else return[e]}getNodeFromReferenceDescription(e){if(!e)return;let t=this.documents.getDocument(e.sourceUri);if(t)return this.nodeLocator.getAstNode(t.parseResult.value,e.sourcePath)}findDeclarationNodes(e){let t=this.findDeclarations(e),r=[];for(let n of t){let a=this.nameProvider.getNameNode(n)??n.$cstNode;a&&r.push(a)}return r}findReferences(e,t){let r=[];t.includeDeclaration&&r.push(...this.getSelfReferences(e));let n=this.index.findAllReferences(e,this.nodeLocator.getAstNodePath(e));return t.documentUri&&(n=n.filter(a=>Je.equals(a.sourceUri,t.documentUri))),r.push(...n),le(r)}getSelfReferences(e){let t=this.getSelfNodes(e),r=[];for(let n of t){let a=this.nameProvider.getNameNode(n);if(a){let i=It(n),o=this.nodeLocator.getAstNodePath(n);r.push({sourceUri:i.uri,sourcePath:o,targetUri:i.uri,targetPath:o,segment:za(a),local:!0})}}return r}},$r=class{static{s(this,"MultiMap")}constructor(e){if(this.map=new Map,e)for(let[t,r]of e)this.add(t,r)}get size(){return cs.sum(le(this.map.values()).map(e=>e.length))}clear(){this.map.clear()}delete(e,t){if(t===void 0)return this.map.delete(e);{let r=this.map.get(e);if(r){let n=r.indexOf(t);if(n>=0)return r.length===1?this.map.delete(e):r.splice(n,1),!0}return!1}}get(e){return this.map.get(e)??[]}getStream(e){let t=this.map.get(e);return t?le(t):La}has(e,t){if(t===void 0)return this.map.has(e);{let r=this.map.get(e);return r?r.indexOf(t)>=0:!1}}add(e,t){return this.map.has(e)?this.map.get(e).push(t):this.map.set(e,[t]),this}addAll(e,t){return this.map.has(e)?this.map.get(e).push(...t):this.map.set(e,Array.from(t)),this}forEach(e){this.map.forEach((t,r)=>t.forEach(n=>e(n,r,this)))}[Symbol.iterator](){return this.entries().iterator()}entries(){return le(this.map.entries()).flatMap(([e,t])=>t.map(r=>[e,r]))}keys(){return le(this.map.keys())}values(){return le(this.map.values()).flat()}entriesGroupedByKey(){return le(this.map.entries())}},Al=class{static{s(this,"BiMap")}get size(){return this.map.size}constructor(e){if(this.map=new Map,this.inverse=new Map,e)for(let[t,r]of e)this.set(t,r)}clear(){this.map.clear(),this.inverse.clear()}set(e,t){return this.map.set(e,t),this.inverse.set(t,e),this}get(e){return this.map.get(e)}getKey(e){return this.inverse.get(e)}delete(e){let t=this.map.get(e);return t!==void 0?(this.map.delete(e),this.inverse.delete(t),!0):!1}},KS=class{static{s(this,"DefaultScopeComputation")}constructor(e){this.nameProvider=e.references.NameProvider,this.descriptions=e.workspace.AstNodeDescriptionProvider}async collectExportedSymbols(e,t=pe.CancellationToken.None){return this.collectExportedSymbolsForNode(e.parseResult.value,e,void 0,t)}async collectExportedSymbolsForNode(e,t,r=Is,n=pe.CancellationToken.None){let a=[];this.addExportedSymbol(e,a,t);for(let i of r(e))await Fe(n),this.addExportedSymbol(i,a,t);return a}addExportedSymbol(e,t,r){let n=this.nameProvider.getName(e);n&&t.push(this.descriptions.createDescription(e,n,r))}async collectLocalSymbols(e,t=pe.CancellationToken.None){let r=e.parseResult.value,n=new $r;for(let a of Rr(r))await Fe(t),this.addLocalSymbol(a,e,n);return n}addLocalSymbol(e,t,r){let n=e.$container;if(n){let a=this.nameProvider.getName(e);a&&r.add(n,this.descriptions.createDescription(e,a,t))}}},qf=class{static{s(this,"StreamScope")}constructor(e,t,r){this.elements=e,this.outerScope=t,this.caseInsensitive=r?.caseInsensitive??!1,this.concatOuterScope=r?.concatOuterScope??!0}getAllElements(){return this.outerScope?this.elements.concat(this.outerScope.getAllElements()):this.elements}getElement(e){let t=this.caseInsensitive?e.toLowerCase():e,r=this.caseInsensitive?this.elements.find(n=>n.name.toLowerCase()===t):this.elements.find(n=>n.name===e);if(r)return r;if(this.outerScope)return this.outerScope.getElement(e)}getElements(e){let t=this.caseInsensitive?e.toLowerCase():e,r=this.caseInsensitive?this.elements.filter(n=>n.name.toLowerCase()===t):this.elements.filter(n=>n.name===e);return(this.concatOuterScope||r.isEmpty())&&this.outerScope?r.concat(this.outerScope.getElements(e)):r}},DG=class{static{s(this,"MapScope")}constructor(e,t,r){this.elements=new Map,this.caseInsensitive=r?.caseInsensitive??!1,this.concatOuterScope=r?.concatOuterScope??!0;for(let n of e){let a=this.caseInsensitive?n.name.toLowerCase():n.name;this.elements.set(a,n)}this.outerScope=t}getElement(e){let t=this.caseInsensitive?e.toLowerCase():e,r=this.elements.get(t);if(r)return r;if(this.outerScope)return this.outerScope.getElement(e)}getElements(e){let t=this.caseInsensitive?e.toLowerCase():e,r=this.elements.get(t),n=r?[r]:[];return(this.concatOuterScope||n.length>0)&&this.outerScope?le(n).concat(this.outerScope.getElements(e)):le(n)}getAllElements(){let e=le(this.elements.values());return this.outerScope&&(e=e.concat(this.outerScope.getAllElements())),e}},BS=class{static{s(this,"MultiMapScope")}constructor(e,t,r){this.elements=new $r,this.caseInsensitive=r?.caseInsensitive??!1,this.concatOuterScope=r?.concatOuterScope??!0;for(let n of e){let a=this.caseInsensitive?n.name.toLowerCase():n.name;this.elements.add(a,n)}this.outerScope=t}getElement(e){let t=this.caseInsensitive?e.toLowerCase():e,r=this.elements.get(t)[0];if(r)return r;if(this.outerScope)return this.outerScope.getElement(e)}getElements(e){let t=this.caseInsensitive?e.toLowerCase():e,r=this.elements.get(t);return(this.concatOuterScope||r.length===0)&&this.outerScope?le(r).concat(this.outerScope.getElements(e)):le(r)}getAllElements(){let e=le(this.elements.values());return this.outerScope&&(e=e.concat(this.outerScope.getAllElements())),e}},xG={getElement(){},getElements(){return La},getAllElements(){return La}},Pu=class{static{s(this,"DisposableCache")}constructor(){this.toDispose=[],this.isDisposed=!1}onDispose(e){this.toDispose.push(e)}dispose(){this.throwIfDisposed(),this.clear(),this.isDisposed=!0,this.toDispose.forEach(e=>e.dispose())}throwIfDisposed(){if(this.isDisposed)throw new Error("This cache has already been disposed")}},Mm=class extends Pu{static{s(this,"SimpleCache")}constructor(){super(...arguments),this.cache=new Map}has(e){return this.throwIfDisposed(),this.cache.has(e)}set(e,t){this.throwIfDisposed(),this.cache.set(e,t)}get(e,t){if(this.throwIfDisposed(),this.cache.has(e))return this.cache.get(e);if(t){let r=t();return this.cache.set(e,r),r}else return}delete(e){return this.throwIfDisposed(),this.cache.delete(e)}clear(){this.throwIfDisposed(),this.cache.clear()}},ku=class extends Pu{static{s(this,"ContextCache")}constructor(e){super(),this.cache=new Map,this.converter=e??(t=>t)}has(e,t){return this.throwIfDisposed(),this.cacheForContext(e).has(t)}set(e,t,r){this.throwIfDisposed(),this.cacheForContext(e).set(t,r)}get(e,t,r){this.throwIfDisposed();let n=this.cacheForContext(e);if(n.has(t))return n.get(t);if(r){let a=r();return n.set(t,a),a}else return}delete(e,t){return this.throwIfDisposed(),this.cacheForContext(e).delete(t)}clear(e){if(this.throwIfDisposed(),e){let t=this.converter(e);this.cache.delete(t)}else this.cache.clear()}cacheForContext(e){let t=this.converter(e),r=this.cache.get(t);return r||(r=new Map,this.cache.set(t,r)),r}},qS=class extends ku{static{s(this,"DocumentCache")}constructor(e,t){super(r=>r.toString()),t?(this.toDispose.push(e.workspace.DocumentBuilder.onDocumentPhase(t,r=>{this.clear(r.uri.toString())})),this.toDispose.push(e.workspace.DocumentBuilder.onUpdate((r,n)=>{for(let a of n)this.clear(a)}))):this.toDispose.push(e.workspace.DocumentBuilder.onUpdate((r,n)=>{let a=r.concat(n);for(let i of a)this.clear(i)}))}},Gm=class extends Mm{static{s(this,"WorkspaceCache")}constructor(e,t){super(),t?(this.toDispose.push(e.workspace.DocumentBuilder.onBuildPhase(t,()=>{this.clear()})),this.toDispose.push(e.workspace.DocumentBuilder.onUpdate((r,n)=>{n.length>0&&this.clear()}))):this.toDispose.push(e.workspace.DocumentBuilder.onUpdate(()=>{this.clear()}))}},WS=class{static{s(this,"DefaultScopeProvider")}constructor(e){this.reflection=e.shared.AstReflection,this.nameProvider=e.references.NameProvider,this.descriptions=e.workspace.AstNodeDescriptionProvider,this.indexManager=e.shared.workspace.IndexManager,this.globalScopeCache=new Gm(e.shared)}getScope(e){let t=[],r=this.reflection.getReferenceType(e),n=It(e.container).localSymbols;if(n){let i=e.container;do n.has(i)&&t.push(n.getStream(i).filter(o=>this.reflection.isSubtype(o.type,r))),i=i.$container;while(i)}let a=this.getGlobalScope(r,e);for(let i=t.length-1;i>=0;i--)a=this.createScope(t[i],a);return a}createScope(e,t,r){return new qf(le(e),t,r)}createScopeForNodes(e,t,r){let n=le(e).map(a=>{let i=this.nameProvider.getName(a);if(i)return this.descriptions.createDescription(a,i)}).nonNullable();return new qf(n,t,r)}getGlobalScope(e,t){return this.globalScopeCache.get(e,()=>new BS(this.indexManager.allElements(e)))}};function Fm(e){return typeof e.$comment=="string"}s(Fm,"isAstNodeWithComment");function Wf(e){return typeof e=="object"&&!!e&&("$ref"in e||"$error"in e)}s(Wf,"isIntermediateReference");var VS=class{static{s(this,"DefaultJsonSerializer")}constructor(e){this.ignoreProperties=new Set(["$container","$containerProperty","$containerIndex","$document","$cstNode"]),this.langiumDocuments=e.shared.workspace.LangiumDocuments,this.astNodeLocator=e.workspace.AstNodeLocator,this.nameProvider=e.references.NameProvider,this.commentProvider=e.documentation.CommentProvider}serialize(e,t){let r=t??{},n=t?.replacer,a=s((o,l)=>this.replacer(o,l,r),"defaultReplacer"),i=n?(o,l)=>n(o,l,a):a;try{return this.currentDocument=It(e),JSON.stringify(e,i,t?.space)}finally{this.currentDocument=void 0}}deserialize(e,t){let r=t??{},n=JSON.parse(e);return this.linkNode(n,n,r),n}replacer(e,t,{refText:r,sourceText:n,textRegions:a,comments:i,uriConverter:o}){if(!this.ignoreProperties.has(e))if(Xe(t)){let l=t.ref,u=r?t.$refText:void 0;if(l){let c=It(l),f="";this.currentDocument&&this.currentDocument!==c&&(o?f=o(c.uri,l):f=c.uri.toString());let p=this.astNodeLocator.getAstNodePath(l);return{$ref:`${f}#${p}`,$refText:u}}else return{$error:t.error?.message??"Could not resolve reference",$refText:u}}else if(Ht(t)){let l=r?t.$refText:void 0,u=[];for(let c of t.items){let f=c.ref,p=It(c.ref),m="";this.currentDocument&&this.currentDocument!==p&&(o?m=o(p.uri,f):m=p.uri.toString());let g=this.astNodeLocator.getAstNodePath(f);u.push(`${m}#${g}`)}return{$refs:u,$refText:l}}else if(ke(t)){let l;if(a&&(l=this.addAstNodeRegionWithAssignmentsTo({...t}),(!e||t.$document)&&l?.$textRegion&&(l.$textRegion.documentURI=this.currentDocument?.uri.toString())),n&&!e&&(l??(l={...t}),l.$sourceText=t.$cstNode?.text),i){l??(l={...t});let u=this.commentProvider.getComment(t);u&&(l.$comment=u.replace(/\r/g,""))}return l??t}else return t}addAstNodeRegionWithAssignmentsTo(e){let t=s(r=>({offset:r.offset,end:r.end,length:r.length,range:r.range}),"createDocumentSegment");if(e.$cstNode){let r=e.$textRegion=t(e.$cstNode),n=r.assignments={};return Object.keys(e).filter(a=>!a.startsWith("$")).forEach(a=>{let i=ld(e.$cstNode,a).map(t);i.length!==0&&(n[a]=i)}),e}}linkNode(e,t,r,n,a,i){for(let[l,u]of Object.entries(e))if(Array.isArray(u))for(let c=0;c{await this.handleException(()=>e.call(t,r,n,a),"An error occurred during validation",n,r)}}async handleException(e,t,r,n){try{await e()}catch(a){if(Wn(a))throw a;console.error(`${t}:`,a),a instanceof Error&&a.stack&&console.error(a.stack);let i=a instanceof Error?a.message:String(a);r("error",`${t}: ${i}`,{node:n})}}addEntry(e,t){if(e==="AstNode"){this.entries.add("AstNode",t);return}for(let r of this.reflection.getAllSubTypes(e))this.entries.add(r,t)}getChecks(e,t){let r=le(this.entries.get(e)).concat(this.entries.get("AstNode"));return t&&(r=r.filter(n=>t.includes(n.category))),r.map(n=>n.check)}registerBeforeDocument(e,t=this){this.entriesBefore.push(this.wrapPreparationException(e,"An error occurred during set-up of the validation",t))}registerAfterDocument(e,t=this){this.entriesAfter.push(this.wrapPreparationException(e,"An error occurred during tear-down of the validation",t))}wrapPreparationException(e,t,r){return async(n,a,i,o)=>{await this.handleException(()=>e.call(r,n,a,i,o),t,a,n)}}get checksBefore(){return this.entriesBefore}get checksAfter(){return this.entriesAfter}getAllValidationCategories(e){return this.knownCategories}},XS=Object.freeze({validateNode:!0,validateChildren:!0}),JS=class{static{s(this,"DefaultDocumentValidator")}constructor(e){this.validationRegistry=e.validation.ValidationRegistry,this.metadata=e.LanguageMetaData,this.profiler=e.shared.profilers.LangiumProfiler,this.languageId=e.LanguageMetaData.languageId}async validateDocument(e,t={},r=pe.CancellationToken.None){let n=e.parseResult,a=[];if(await Fe(r),(!t.categories||t.categories.includes("built-in"))&&(this.processLexingErrors(n,a,t),t.stopAfterLexingErrors&&a.some(i=>i.data?.code===vt.LexingError)||(this.processParsingErrors(n,a,t),t.stopAfterParsingErrors&&a.some(i=>i.data?.code===vt.ParsingError))||(this.processLinkingErrors(e,a,t),t.stopAfterLinkingErrors&&a.some(i=>i.data?.code===vt.LinkingError))))return a;try{a.push(...await this.validateAst(n.value,t,r))}catch(i){if(Wn(i))throw i;console.error("An error occurred during validation:",i)}return await Fe(r),a}processLexingErrors(e,t,r){let n=[...e.lexerErrors,...e.lexerReport?.diagnostics??[]];for(let a of n){let i=a.severity??"error",o={severity:ls(i),range:{start:{line:a.line-1,character:a.column-1},end:{line:a.line-1,character:a.column+a.length-1}},message:a.message,data:jm(i),source:this.getSource()};t.push(o)}}processParsingErrors(e,t,r){for(let n of e.parserErrors){let a;if(isNaN(n.token.startOffset)){if("previousToken"in n){let i=n.previousToken;if(isNaN(i.startOffset)){let o={line:0,character:0};a={start:o,end:o}}else{let o={line:i.endLine-1,character:i.endColumn};a={start:o,end:o}}}}else a=fs(n.token);if(a){let i={severity:ls("error"),range:a,message:n.message,data:vn(vt.ParsingError),source:this.getSource()};t.push(i)}}}processLinkingErrors(e,t,r){for(let n of e.references){let a=n.error;if(a){let i={node:a.info.container,range:n.$refNode?.range,property:a.info.property,index:a.info.index,data:{code:vt.LinkingError,containerType:a.info.container.$type,property:a.info.property,refText:a.info.reference.$refText}};t.push(this.toDiagnostic("error",a.message,i))}}}async validateAst(e,t,r=pe.CancellationToken.None){let n=[],a=s((i,o,l)=>{n.push(this.toDiagnostic(i,o,l))},"acceptor");return await this.validateAstBefore(e,t,a,r),await this.validateAstNodes(e,t,a,r),await this.validateAstAfter(e,t,a,r),n}async validateAstBefore(e,t,r,n=pe.CancellationToken.None){let a=this.validationRegistry.checksBefore;for(let i of a)await Fe(n),await i(e,r,t.categories??[],n)}async validateAstNodes(e,t,r,n=pe.CancellationToken.None){if(this.profiler?.isActive("validating")){let a=this.profiler.createTask("validating",this.languageId);a.start();try{let i=Nt(e).iterator();for(let o of i){a.startSubTask(o.$type);let l=this.validateSingleNodeOptions(o,t);if(l.validateNode)try{let u=this.validationRegistry.getChecks(o.$type,t.categories);for(let c of u)await c(o,r,n)}finally{a.stopSubTask(o.$type)}l.validateChildren||i.prune()}}finally{a.stop()}}else{let a=Nt(e).iterator();for(let i of a){await Fe(n);let o=this.validateSingleNodeOptions(i,t);if(o.validateNode){let l=this.validationRegistry.getChecks(i.$type,t.categories);for(let u of l)await u(i,r,n)}o.validateChildren||a.prune()}}}validateSingleNodeOptions(e,t){return XS}async validateAstAfter(e,t,r,n=pe.CancellationToken.None){let a=this.validationRegistry.checksAfter;for(let i of a)await Fe(n),await i(e,r,t.categories??[],n)}toDiagnostic(e,t,r){return{message:t,range:zm(r),severity:ls(e),code:r.code,codeDescription:r.codeDescription,tags:r.tags,relatedInformation:r.relatedInformation,data:r.data,source:this.getSource()}}getSource(){return this.metadata.languageId}};function zm(e){if(e.range)return e.range;let t;return typeof e.property=="string"?t=Ul(e.node.$cstNode,e.property,e.index):typeof e.keyword=="string"&&(t=ud(e.node.$cstNode,e.keyword,e.index)),t??(t=e.node.$cstNode),t?t.range:{start:{line:0,character:0},end:{line:0,character:0}}}s(zm,"getDiagnosticRange");function ls(e){switch(e){case"error":return 1;case"warning":return 2;case"info":return 3;case"hint":return 4;default:throw new Error("Invalid diagnostic severity: "+e)}}s(ls,"toDiagnosticSeverity");function jm(e){switch(e){case"error":return vn(vt.LexingError);case"warning":return vn(vt.LexingWarning);case"info":return vn(vt.LexingInfo);case"hint":return vn(vt.LexingHint);default:throw new Error("Invalid diagnostic severity: "+e)}}s(jm,"toDiagnosticData");var vt;(function(e){e.LexingError="lexing-error",e.LexingWarning="lexing-warning",e.LexingInfo="lexing-info",e.LexingHint="lexing-hint",e.ParsingError="parsing-error",e.LinkingError="linking-error"})(vt||(vt={}));var ZS=class{static{s(this,"DefaultAstNodeDescriptionProvider")}constructor(e){this.astNodeLocator=e.workspace.AstNodeLocator,this.nameProvider=e.references.NameProvider}createDescription(e,t,r){let n=r??It(e);t??(t=this.nameProvider.getName(e));let a=this.astNodeLocator.getAstNodePath(e);if(!t)throw new Error(`Node at path ${a} has no name.`);let i,o=s(()=>i??(i=za(this.nameProvider.getNameNode(e)??e.$cstNode)),"nameSegmentGetter");return{node:e,name:t,get nameSegment(){return o()},selectionSegment:za(e.$cstNode),type:e.$type,documentUri:n.uri,path:a}}},QS=class{static{s(this,"DefaultReferenceDescriptionProvider")}constructor(e){this.nodeLocator=e.workspace.AstNodeLocator}async createDescriptions(e,t=pe.CancellationToken.None){let r=[],n=e.parseResult.value;for(let a of Nt(n))await Fe(t),Ma(a).forEach(i=>{i.reference.error||r.push(...this.createInfoDescriptions(i))});return r}createInfoDescriptions(e){let t=e.reference;if(t.error||!t.$refNode)return[];let r=[];Xe(t)&&t.$nodeDescription?r=[t.$nodeDescription]:Ht(t)&&(r=t.items.map(l=>l.$nodeDescription).filter(l=>l!==void 0));let n=It(e.container).uri,a=this.nodeLocator.getAstNodePath(e.container),i=[],o=za(t.$refNode);for(let l of r)i.push({sourceUri:n,sourcePath:a,targetUri:l.documentUri,targetPath:l.path,segment:o,local:Je.equals(l.documentUri,n)});return i}},ew=class{static{s(this,"DefaultAstNodeLocator")}constructor(){this.segmentSeparator="/",this.indexSeparator="@"}getAstNodePath(e){if(e.$container){let t=this.getAstNodePath(e.$container),r=this.getPathSegment(e);return t+this.segmentSeparator+r}return""}getPathSegment({$containerProperty:e,$containerIndex:t}){if(!e)throw new Error("Missing '$containerProperty' in AST node.");return t!==void 0?e+this.indexSeparator+t:e}getAstNode(e,t){return t.split(this.segmentSeparator).reduce((n,a)=>{if(!n||a.length===0)return n;let i=a.indexOf(this.indexSeparator);if(i>0){let o=a.substring(0,i),l=parseInt(a.substring(i+1));return n[o]?.[l]}return n[a]},e)}},Ou={};Sl(Ou,hp(qa(),1));var tw=class{static{s(this,"DefaultConfigurationProvider")}constructor(e){this._ready=new Tr,this.onConfigurationSectionUpdateEmitter=new Ou.Emitter,this.settings={},this.workspaceConfig=!1,this.serviceRegistry=e.ServiceRegistry}get ready(){return this._ready.promise}initialize(e){this.workspaceConfig=e.capabilities.workspace?.configuration??!1}async initialized(e){if(this.workspaceConfig){if(e.register){let t=this.serviceRegistry.all;e.register({section:t.map(r=>this.toSectionName(r.LanguageMetaData.languageId))})}if(e.fetchConfiguration){let t=this.serviceRegistry.all.map(n=>({section:this.toSectionName(n.LanguageMetaData.languageId)})),r=await e.fetchConfiguration(t);t.forEach((n,a)=>{this.updateSectionConfiguration(n.section,r[a])})}}this._ready.resolve()}updateConfiguration(e){typeof e.settings!="object"||e.settings===null||Object.entries(e.settings).forEach(([t,r])=>{this.updateSectionConfiguration(t,r),this.onConfigurationSectionUpdateEmitter.fire({section:t,configuration:r})})}updateSectionConfiguration(e,t){this.settings[e]=t}async getConfiguration(e,t){await this.ready;let r=this.toSectionName(e);if(this.settings[r])return this.settings[r][t]}toSectionName(e){return`${e}`}get onConfigurationSectionUpdate(){return this.onConfigurationSectionUpdateEmitter.event}},eo=hp(fI(),1),Rn;(function(e){function t(r){return{dispose:s(async()=>await r(),"dispose")}}s(t,"create"),e.create=t})(Rn||(Rn={}));var rw=class{static{s(this,"DefaultDocumentBuilder")}constructor(e){this.updateBuildOptions={validation:{categories:["built-in","fast"]}},this.updateListeners=[],this.buildPhaseListeners=new $r,this.documentPhaseListeners=new $r,this.buildState=new Map,this.documentBuildWaiters=new Map,this.currentState=J.Changed,this.langiumDocuments=e.workspace.LangiumDocuments,this.langiumDocumentFactory=e.workspace.LangiumDocumentFactory,this.textDocuments=e.workspace.TextDocuments,this.indexManager=e.workspace.IndexManager,this.fileSystemProvider=e.workspace.FileSystemProvider,this.workspaceManager=()=>e.workspace.WorkspaceManager,this.serviceRegistry=e.ServiceRegistry}async build(e,t={},r=pe.CancellationToken.None){for(let n of e){let a=n.uri.toString();if(n.state===J.Validated){if(typeof t.validation=="boolean"&&t.validation)this.resetToState(n,J.IndexedReferences);else if(typeof t.validation=="object"){let i=this.findMissingValidationCategories(n,t);i.length>0&&(this.buildState.set(a,{completed:!1,options:{validation:{categories:i}},result:this.buildState.get(a)?.result}),n.state=J.IndexedReferences)}}else this.buildState.delete(a)}this.currentState=J.Changed,await this.emitUpdate(e.map(n=>n.uri),[]),await this.buildDocuments(e,t,r)}async update(e,t,r=pe.CancellationToken.None){this.currentState=J.Changed;let n=[];for(let l of t){let u=this.langiumDocuments.deleteDocuments(l);for(let c of u)n.push(c.uri),this.cleanUpDeleted(c)}let a=(await Promise.all(e.map(l=>this.findChangedUris(l)))).flat();for(let l of a){let u=this.langiumDocuments.getDocument(l);u===void 0&&(u=this.langiumDocumentFactory.fromModel({$type:"INVALID"},l),u.state=J.Changed,this.langiumDocuments.addDocument(u)),this.resetToState(u,J.Changed)}let i=le(a).concat(n).map(l=>l.toString()).toSet();this.langiumDocuments.all.filter(l=>!i.has(l.uri.toString())&&this.shouldRelink(l,i)).forEach(l=>this.resetToState(l,J.ComputedScopes)),await this.emitUpdate(a,n),await Fe(r);let o=this.sortDocuments(this.langiumDocuments.all.filter(l=>l.state=1}findMissingValidationCategories(e,t){let r=this.buildState.get(e.uri.toString()),n=this.serviceRegistry.getServices(e.uri).validation.ValidationRegistry.getAllValidationCategories(e),a=r?.result?.validationChecks?new Set(r?.result?.validationChecks):r?.completed?n:new Set,i=t===void 0||t.validation===!0?n:typeof t.validation=="object"?t.validation.categories??n:[];return le(i).filter(o=>!a.has(o)).toArray()}async findChangedUris(e){if(this.langiumDocuments.getDocument(e)??this.textDocuments?.get(e))return[e];try{let r=await this.fileSystemProvider.stat(e);if(r.isDirectory)return await this.workspaceManager().searchFolder(e);if(this.workspaceManager().shouldIncludeEntry(r))return[e]}catch{}return[]}async emitUpdate(e,t){await Promise.all(this.updateListeners.map(r=>r(e,t)))}sortDocuments(e){let t=0,r=e.length-1;for(;t=0&&!this.hasTextDocument(e[r]);)r--;tr.error!==void 0)?!0:this.indexManager.isAffected(e,t)}onUpdate(e){return this.updateListeners.push(e),Rn.create(()=>{let t=this.updateListeners.indexOf(e);t>=0&&this.updateListeners.splice(t,1)})}resetToState(e,t){switch(t){case J.Changed:case J.Parsed:this.indexManager.removeContent(e.uri);case J.IndexedContent:e.localSymbols=void 0;case J.ComputedScopes:this.serviceRegistry.getServices(e.uri).references.Linker.unlink(e);case J.Linked:this.indexManager.removeReferences(e.uri);case J.IndexedReferences:e.diagnostics=void 0,this.buildState.delete(e.uri.toString());case J.Validated:}e.state>t&&(e.state=t)}cleanUpDeleted(e){this.buildState.delete(e.uri.toString()),this.indexManager.remove(e.uri),e.state=J.Changed}async buildDocuments(e,t,r){this.prepareBuild(e,t),await this.runCancelable(e,J.Parsed,r,i=>this.langiumDocumentFactory.update(i,r)),await this.runCancelable(e,J.IndexedContent,r,i=>this.indexManager.updateContent(i,r)),await this.runCancelable(e,J.ComputedScopes,r,async i=>{let o=this.serviceRegistry.getServices(i.uri).references.ScopeComputation;i.localSymbols=await o.collectLocalSymbols(i,r)});let n=e.filter(i=>this.shouldLink(i));await this.runCancelable(n,J.Linked,r,i=>this.serviceRegistry.getServices(i.uri).references.Linker.link(i,r)),await this.runCancelable(n,J.IndexedReferences,r,i=>this.indexManager.updateReferences(i,r));let a=e.filter(i=>this.shouldValidate(i)?!0:(this.markAsCompleted(i),!1));await this.runCancelable(a,J.Validated,r,async i=>{await this.validate(i,r),this.markAsCompleted(i)})}markAsCompleted(e){let t=this.buildState.get(e.uri.toString());t&&(t.completed=!0)}prepareBuild(e,t){for(let r of e){let n=r.uri.toString(),a=this.buildState.get(n);(!a||a.completed)&&this.buildState.set(n,{completed:!1,options:t,result:a?.result})}}async runCancelable(e,t,r,n){for(let i of e)i.statei.state===t);await this.notifyBuildPhase(a,t,r),this.currentState=t}onBuildPhase(e,t){return this.buildPhaseListeners.add(e,t),Rn.create(()=>{this.buildPhaseListeners.delete(e,t)})}onDocumentPhase(e,t){return this.documentPhaseListeners.add(e,t),Rn.create(()=>{this.documentPhaseListeners.delete(e,t)})}waitUntil(e,t,r){let n;return t&&"path"in t?n=t:r=t,r??(r=pe.CancellationToken.None),n?this.awaitDocumentState(e,n,r):this.awaitBuilderState(e,r)}awaitDocumentState(e,t,r){let n=this.langiumDocuments.getDocument(t);if(n){if(n.state>=e)return Promise.resolve(t);if(r.isCancellationRequested)return Promise.reject(Vt);if(this.currentState>=e&&e>n.state)return Promise.reject(new eo.ResponseError(eo.LSPErrorCodes.RequestFailed,`Document state of ${t.toString()} is ${J[n.state]}, requiring ${J[e]}, but workspace state is already ${J[this.currentState]}. Returning undefined.`))}else return Promise.reject(new eo.ResponseError(eo.LSPErrorCodes.ServerCancelled,`No document found for URI: ${t.toString()}`));return new Promise((a,i)=>{let o=this.onDocumentPhase(e,u=>{Je.equals(u.uri,t)&&(o.dispose(),l.dispose(),a(u.uri))}),l=r.onCancellationRequested(()=>{o.dispose(),l.dispose(),i(Vt)})})}awaitBuilderState(e,t){return this.currentState>=e?Promise.resolve():t.isCancellationRequested?Promise.reject(Vt):new Promise((r,n)=>{let a=this.onBuildPhase(e,()=>{a.dispose(),i.dispose(),r()}),i=t.onCancellationRequested(()=>{a.dispose(),i.dispose(),n(Vt)})})}async notifyDocumentPhase(e,t,r){let a=this.documentPhaseListeners.get(t).slice();for(let i of a)try{await Fe(r),await i(e,r)}catch(o){if(!Wn(o))throw o}}async notifyBuildPhase(e,t,r){if(e.length===0)return;let a=this.buildPhaseListeners.get(t).slice();for(let i of a)await Fe(r),await i(e,r)}shouldLink(e){return this.getBuildOptions(e).eagerLinking??!0}shouldValidate(e){return!!this.getBuildOptions(e).validation}async validate(e,t){let r=this.serviceRegistry.getServices(e.uri).validation.DocumentValidator,n=this.getBuildOptions(e),a=typeof n.validation=="object"?{...n.validation}:{};a.categories=this.findMissingValidationCategories(e,n);let i=await r.validateDocument(e,a,t);e.diagnostics?e.diagnostics.push(...i):e.diagnostics=i;let o=this.buildState.get(e.uri.toString());o&&(o.result??(o.result={}),o.result.validationChecks?o.result.validationChecks=le(o.result.validationChecks).concat(a.categories).distinct().toArray():o.result.validationChecks=[...a.categories])}getBuildOptions(e){return this.buildState.get(e.uri.toString())?.options??{}}},nw=class{static{s(this,"DefaultIndexManager")}constructor(e){this.symbolIndex=new Map,this.symbolByTypeIndex=new ku,this.referenceIndex=new Map,this.documents=e.workspace.LangiumDocuments,this.serviceRegistry=e.ServiceRegistry,this.astReflection=e.AstReflection}findAllReferences(e,t){let r=It(e).uri,n=[];return this.referenceIndex.forEach(a=>{a.forEach(i=>{Je.equals(i.targetUri,r)&&i.targetPath===t&&n.push(i)})}),le(n)}allElements(e,t){let r=le(this.symbolIndex.keys());return t&&(r=r.filter(n=>!t||t.has(n))),r.map(n=>this.getFileDescriptions(n,e)).flat()}getFileDescriptions(e,t){return t?this.symbolByTypeIndex.get(e,t,()=>(this.symbolIndex.get(e)??[]).filter(a=>this.astReflection.isSubtype(a.type,t))):this.symbolIndex.get(e)??[]}remove(e){this.removeContent(e),this.removeReferences(e)}removeContent(e){let t=e.toString();this.symbolIndex.delete(t),this.symbolByTypeIndex.clear(t)}removeReferences(e){let t=e.toString();this.referenceIndex.delete(t)}async updateContent(e,t=pe.CancellationToken.None){let n=await this.serviceRegistry.getServices(e.uri).references.ScopeComputation.collectExportedSymbols(e,t),a=e.uri.toString();this.symbolIndex.set(a,n),this.symbolByTypeIndex.clear(a)}async updateReferences(e,t=pe.CancellationToken.None){let n=await this.serviceRegistry.getServices(e.uri).workspace.ReferenceDescriptionProvider.createDescriptions(e,t);this.referenceIndex.set(e.uri.toString(),n)}isAffected(e,t){let r=this.referenceIndex.get(e.uri.toString());return r?r.some(n=>!n.local&&t.has(n.targetUri.toString())):!1}},aw=class{static{s(this,"DefaultWorkspaceManager")}constructor(e){this.initialBuildOptions={},this._ready=new Tr,this.serviceRegistry=e.ServiceRegistry,this.langiumDocuments=e.workspace.LangiumDocuments,this.documentBuilder=e.workspace.DocumentBuilder,this.fileSystemProvider=e.workspace.FileSystemProvider,this.mutex=e.workspace.WorkspaceLock}get ready(){return this._ready.promise}get workspaceFolders(){return this.folders}initialize(e){this.folders=e.workspaceFolders??void 0}initialized(e){return this.mutex.write(t=>this.initializeWorkspace(this.folders??[],t))}async initializeWorkspace(e,t=pe.CancellationToken.None){let r=await this.performStartup(e);await Fe(t),await this.documentBuilder.build(r,this.initialBuildOptions,t)}async performStartup(e){let t=[],r=s(i=>{t.push(i),this.langiumDocuments.hasDocument(i.uri)||this.langiumDocuments.addDocument(i)},"collector");await this.loadAdditionalDocuments(e,r);let n=[];await Promise.all(e.map(i=>this.getRootFolder(i)).map(async i=>this.traverseFolder(i,n)));let a=le(n).distinct(i=>i.toString()).filter(i=>!this.langiumDocuments.hasDocument(i));return await this.loadWorkspaceDocuments(a,r),this._ready.resolve(),t}async loadWorkspaceDocuments(e,t){await Promise.all(e.map(async r=>{let n=await this.langiumDocuments.getOrCreateDocument(r);t(n)}))}loadAdditionalDocuments(e,t){return Promise.resolve()}getRootFolder(e){return ft.parse(e.uri)}async traverseFolder(e,t){try{let r=await this.fileSystemProvider.readDirectory(e);await Promise.all(r.map(async n=>{this.shouldIncludeEntry(n)&&(n.isDirectory?await this.traverseFolder(n.uri,t):n.isFile&&t.push(n.uri))}))}catch(r){console.error("Failure to read directory content of "+e.toString(!0),r)}}async searchFolder(e){let t=[];return await this.traverseFolder(e,t),t}shouldIncludeEntry(e){let t=Je.basename(e.uri);return t.startsWith(".")?!1:e.isDirectory?t!=="node_modules"&&t!=="out":e.isFile?this.serviceRegistry.hasServices(e.uri):!1}},iw=class{static{s(this,"DefaultLexerErrorMessageProvider")}buildUnexpectedCharactersMessage(e,t,r,n,a){return bf.buildUnexpectedCharactersMessage(e,t,r,n,a)}buildUnableToPopLexerModeMessage(e){return bf.buildUnableToPopLexerModeMessage(e)}},Um={mode:"full"},Km=class{static{s(this,"DefaultLexer")}constructor(e){this.errorMessageProvider=e.parser.LexerErrorMessageProvider,this.tokenBuilder=e.parser.TokenBuilder;let t=this.tokenBuilder.buildTokens(e.Grammar,{caseInsensitive:e.LanguageMetaData.caseInsensitive});this.tokenTypes=this.toTokenTypeDictionary(t);let r=Cl(t)?Object.values(t):t,n=e.LanguageMetaData.mode==="production";this.chevrotainLexer=new Ze(r,{positionTracking:"full",skipValidations:n,errorMessageProvider:this.errorMessageProvider})}get definition(){return this.tokenTypes}tokenize(e,t=Um){let r=this.chevrotainLexer.tokenize(e);return{tokens:r.tokens,errors:r.errors,hidden:r.groups.hidden??[],report:this.tokenBuilder.flushLexingReport?.(e)}}toTokenTypeDictionary(e){if(Cl(e))return e;let t=Du(e)?Object.values(e.modes).flat():e,r={};return t.forEach(n=>r[n.name]=n),r}};function Lu(e){return Array.isArray(e)&&(e.length===0||"name"in e[0])}s(Lu,"isTokenTypeArray");function Du(e){return e&&"modes"in e&&"defaultMode"in e}s(Du,"isIMultiModeLexerDefinition");function Cl(e){return!Lu(e)&&!Du(e)}s(Cl,"isTokenTypeDictionary");Ss();function Bm(e,t,r){let n,a;typeof e=="string"?(a=t,n=r):(a=e.range.start,n=t),a||(a=ae.create(0,0));let i=Wm(e),o=xu(n),l=sw({lines:i,position:a,options:o});return uw({index:0,tokens:l,position:a})}s(Bm,"parseJSDoc");function qm(e,t){let r=xu(t),n=Wm(e);if(n.length===0)return!1;let a=n[0],i=n[n.length-1],o=r.start,l=r.end;return!!o?.exec(a)&&!!l?.exec(i)}s(qm,"isJSDoc");function Wm(e){let t="";return typeof e=="string"?t=e:t=e.text,t.split(lv)}s(Wm,"getLines");var Cy=/\s*(@([\p{L}][\p{L}\p{N}]*)?)/uy,MG=/\{(@[\p{L}][\p{L}\p{N}]*)(\s*)([^\r\n}]+)?\}/gu;function sw(e){let t=[],r=e.position.line,n=e.position.character;for(let a=0;a=l.length){if(t.length>0){let f=ae.create(r,n);t.push({type:"break",content:"",range:Q.create(f,f)})}}else{Cy.lastIndex=u;let f=Cy.exec(l);if(f){let p=f[0],m=f[1],g=ae.create(r,n+u),v=ae.create(r,n+u+p.length);t.push({type:"tag",content:m,range:Q.create(g,v)}),u+=p.length,u=bl(l,u)}if(u0&&t[t.length-1].type==="break"?t.slice(0,-1):t}s(sw,"tokenize");function ow(e,t,r,n){let a=[];if(e.length===0){let i=ae.create(r,n),o=ae.create(r,n+t.length);a.push({type:"text",content:t,range:Q.create(i,o)})}else{let i=0;for(let l of e){let u=l.index,c=t.substring(i,u);c.length>0&&a.push({type:"text",content:t.substring(i,u),range:Q.create(ae.create(r,i+n),ae.create(r,u+n))});let f=c.length+1,p=l[1];if(a.push({type:"inline-tag",content:p,range:Q.create(ae.create(r,i+f+n),ae.create(r,i+f+p.length+n))}),f+=p.length,l.length===4){f+=l[2].length;let m=l[3];a.push({type:"text",content:m,range:Q.create(ae.create(r,i+f+n),ae.create(r,i+f+m.length+n))})}else a.push({type:"text",content:"",range:Q.create(ae.create(r,i+f+n),ae.create(r,i+f+n))});i=u+l[0].length}let o=t.substring(i);o.length>0&&a.push({type:"text",content:o,range:Q.create(ae.create(r,i+n),ae.create(r,i+n+o.length))})}return a}s(ow,"buildInlineTokens");var GG=/\S/,FG=/\s*$/;function bl(e,t){let r=e.substring(t).match(GG);return r?t+r.index:e.length}s(bl,"skipWhitespace");function lw(e){let t=e.match(FG);if(t&&typeof t.index=="number")return t.index}s(lw,"lastCharacter");function uw(e){let t=ae.create(e.position.line,e.position.character);if(e.tokens.length===0)return new by([],Q.create(t,t));let r=[];for(;e.indext.name===e)}getTags(e){return this.getAllTags().filter(t=>t.name===e)}getAllTags(){return this.elements.filter(e=>"name"in e)}toString(){let e="";for(let t of this.elements)if(e.length===0)e=t.toString();else{let r=t.toString();e+=Hf(e)+r}return e.trim()}toMarkdown(e){let t="";for(let r of this.elements)if(t.length===0)t=r.toMarkdown(e);else{let n=r.toMarkdown(e);t+=Hf(t)+n}return t.trim()}},Wu=class{static{s(this,"JSDocTagImpl")}constructor(e,t,r,n){this.name=e,this.content=t,this.inline=r,this.range=n}toString(){let e=`@${this.name}`,t=this.content.toString();return this.content.inlines.length===1?e=`${e} ${t}`:this.content.inlines.length>1&&(e=`${e} +${t}`),this.inline?`{${e}}`:e}toMarkdown(e){return e?.renderTag?.(this)??this.toMarkdownDefault(e)}toMarkdownDefault(e){let t=this.content.toMarkdown(e);if(this.inline){let a=dw(this.name,t,e??{});if(typeof a=="string")return a}let r="";e?.tag==="italic"||e?.tag===void 0?r="*":e?.tag==="bold"?r="**":e?.tag==="bold-italic"&&(r="***");let n=`${r}@${this.name}${r}`;return this.content.inlines.length===1?n=`${n} \u2014 ${t}`:this.content.inlines.length>1&&(n=`${n} +${t}`),this.inline?`{${n}}`:n}};function dw(e,t,r){if(e==="linkplain"||e==="linkcode"||e==="link"){let n=t.indexOf(" "),a=t;if(n>0){let o=bl(t,n);a=t.substring(o),t=t.substring(0,n)}return(e==="linkcode"||e==="link"&&r.link==="code")&&(a=`\`${a}\``),r.renderLink?.(t,a)??mw(t,a)}}s(dw,"renderInlineTag");function mw(e,t){try{return ft.parse(e,!0),`[${t}](${e})`}catch{return e}}s(mw,"renderLinkDefault");var Vf=class{static{s(this,"JSDocTextImpl")}constructor(e,t){this.inlines=e,this.range=t}toString(){let e="";for(let t=0;tr.range.start.line&&(e+=` +`)}return e}toMarkdown(e){let t="";for(let r=0;rn.range.start.line&&(t+=` +`)}return t}},hw=class{static{s(this,"JSDocLineImpl")}constructor(e,t){this.text=e,this.range=t}toString(){return this.text}toMarkdown(){return this.text}};function Hf(e){return e.endsWith(` +`)?` +`:` + +`}s(Hf,"fillNewlines");var yw=class{static{s(this,"JSDocDocumentationProvider")}constructor(e){this.indexManager=e.shared.workspace.IndexManager,this.commentProvider=e.documentation.CommentProvider}getDocumentation(e){let t=this.commentProvider.getComment(e);if(t&&qm(t))return Bm(t).toMarkdown({renderLink:s((n,a)=>this.documentationLinkRenderer(e,n,a),"renderLink"),renderTag:s(n=>this.documentationTagRenderer(e,n),"renderTag")})}documentationLinkRenderer(e,t,r){let n=this.findNameInLocalSymbols(e,t)??this.findNameInGlobalScope(e,t);if(n&&n.nameSegment){let a=n.nameSegment.range.start.line+1,i=n.nameSegment.range.start.character+1,o=n.documentUri.with({fragment:`L${a},${i}`});return`[${r}](${o.toString()})`}else return}documentationTagRenderer(e,t){}findNameInLocalSymbols(e,t){let n=It(e).localSymbols;if(!n)return;let a=e;do{let o=n.getStream(a).find(l=>l.name===t);if(o)return o;a=a.$container}while(a)}findNameInGlobalScope(e,t){return this.indexManager.allElements().find(n=>n.name===t)}},gw=class{static{s(this,"DefaultCommentProvider")}constructor(e){this.grammarConfig=()=>e.parser.GrammarConfig}getComment(e){return Fm(e)?e.$comment:Vp(e.$cstNode,this.grammarConfig().multilineCommentRules)?.text}},vw=class{static{s(this,"DefaultAsyncParser")}constructor(e){this.syncParser=e.parser.LangiumParser}parse(e,t){return Promise.resolve(this.syncParser.parse(e))}},zG=class{static{s(this,"AbstractThreadedAsyncParser")}constructor(e){this.threadCount=8,this.terminationDelay=200,this.workerPool=[],this.queue=[],this.hydrator=e.serializer.Hydrator}initializeWorkers(){for(;this.workerPool.length{if(this.queue.length>0){let t=this.queue.shift();t&&(e.lock(),t.resolve(e))}}),this.workerPool.push(e)}}async parse(e,t){let r=await this.acquireParserWorker(t),n=new Tr,a,i=t.onCancellationRequested(()=>{a=setTimeout(()=>{this.terminateWorker(r)},this.terminationDelay)});return r.parse(e).then(o=>{let l=this.hydrator.hydrate(o);n.resolve(l)}).catch(o=>{n.reject(o)}).finally(()=>{i.dispose(),clearTimeout(a)}),n.promise}terminateWorker(e){e.terminate();let t=this.workerPool.indexOf(e);t>=0&&this.workerPool.splice(t,1)}async acquireParserWorker(e){this.initializeWorkers();for(let r of this.workerPool)if(r.ready)return r.lock(),r;let t=new Tr;return e.onCancellationRequested(()=>{let r=this.queue.indexOf(t);r>=0&&this.queue.splice(r,1),t.reject(Vt)}),this.queue.push(t),t.promise}},jG=class{static{s(this,"ParserWorker")}get ready(){return this._ready}get onReady(){return this.onReadyEmitter.event}constructor(e,t,r,n){this.onReadyEmitter=new Ou.Emitter,this.deferred=new Tr,this._ready=!0,this._parsing=!1,this.sendMessage=e,this._terminate=n,t(a=>{let i=a;this.deferred.resolve(i),this.unlock()}),r(a=>{this.deferred.reject(a),this.unlock()})}terminate(){this.deferred.reject(Vt),this._terminate()}lock(){this._ready=!1}unlock(){this._parsing=!1,this._ready=!0,this.onReadyEmitter.fire()}parse(e){if(this._parsing)throw new Error("Parser worker is busy");return this._parsing=!0,this.deferred=new Tr,this.sendMessage(e),this.deferred.promise}},Tw=class{static{s(this,"DefaultWorkspaceLock")}constructor(){this.previousTokenSource=new pe.CancellationTokenSource,this.writeQueue=[],this.readQueue=[],this.done=!0}write(e){this.cancelWrite();let t=Nu();return this.previousTokenSource=t,this.enqueue(this.writeQueue,e,t.token)}read(e){return this.enqueue(this.readQueue,e)}enqueue(e,t,r=pe.CancellationToken.None){let n=new Tr,a={action:t,deferred:n,cancellationToken:r};return e.push(a),this.performNextOperation(),n.promise}async performNextOperation(){if(!this.done)return;let e=[];if(this.writeQueue.length>0)e.push(this.writeQueue.shift());else if(this.readQueue.length>0)e.push(...this.readQueue.splice(0,this.readQueue.length));else return;this.done=!1,await Promise.all(e.map(async({action:t,deferred:r,cancellationToken:n})=>{try{let a=await Promise.resolve().then(()=>t(n));r.resolve(a)}catch(a){Wn(a)?r.resolve(void 0):r.reject(a)}})),this.done=!0,this.performNextOperation()}cancelWrite(){this.previousTokenSource.cancel()}},$w=class{static{s(this,"DefaultHydrator")}constructor(e){this.grammarElementIdMap=new Al,this.tokenTypeIdMap=new Al,this.grammar=e.Grammar,this.lexer=e.parser.Lexer,this.linker=e.references.Linker}dehydrate(e){return{lexerErrors:e.lexerErrors,lexerReport:e.lexerReport?this.dehydrateLexerReport(e.lexerReport):void 0,parserErrors:e.parserErrors.map(t=>({...t,message:t.message})),value:this.dehydrateAstNode(e.value,this.createDehyrationContext(e.value))}}dehydrateLexerReport(e){return e}createDehyrationContext(e){let t=new Map,r=new Map;for(let n of Nt(e))t.set(n,{});if(e.$cstNode)for(let n of Fa(e.$cstNode))r.set(n,{});return{astNodes:t,cstNodes:r}}dehydrateAstNode(e,t){let r=t.astNodes.get(e);r.$type=e.$type,r.$containerIndex=e.$containerIndex,r.$containerProperty=e.$containerProperty,e.$cstNode!==void 0&&(r.$cstNode=this.dehydrateCstNode(e.$cstNode,t));for(let[n,a]of Object.entries(e))if(!n.startsWith("$"))if(Array.isArray(a)){let i=[];r[n]=i;for(let o of a)ke(o)?i.push(this.dehydrateAstNode(o,t)):Xe(o)?i.push(this.dehydrateReference(o,t)):i.push(o)}else ke(a)?r[n]=this.dehydrateAstNode(a,t):Xe(a)?r[n]=this.dehydrateReference(a,t):a!==void 0&&(r[n]=a);return r}dehydrateReference(e,t){let r={};return r.$refText=e.$refText,e.$refNode&&(r.$refNode=t.cstNodes.get(e.$refNode)),r}dehydrateCstNode(e,t){let r=t.cstNodes.get(e);return Nl(e)?r.fullText=e.fullText:r.grammarSource=this.getGrammarElementId(e.grammarSource),r.hidden=e.hidden,r.astNode=t.astNodes.get(e.astNode),fr(e)?r.content=e.content.map(n=>this.dehydrateCstNode(n,t)):Sn(e)&&(r.tokenType=e.tokenType.name,r.offset=e.offset,r.length=e.length,r.startLine=e.range.start.line,r.startColumn=e.range.start.character,r.endLine=e.range.end.line,r.endColumn=e.range.end.character),r}hydrate(e){let t=e.value,r=this.createHydrationContext(t);return"$cstNode"in t&&this.hydrateCstNode(t.$cstNode,r),{lexerErrors:e.lexerErrors,lexerReport:e.lexerReport,parserErrors:e.parserErrors,value:this.hydrateAstNode(t,r)}}createHydrationContext(e){let t=new Map,r=new Map;for(let a of Nt(e))t.set(a,{});let n;if(e.$cstNode)for(let a of Fa(e.$cstNode)){let i;"fullText"in a?(i=new Em(a.fullText),n=i):"content"in a?i=new bu:"tokenType"in a&&(i=this.hydrateCstLeafNode(a)),i&&(r.set(a,i),i.root=n)}return{astNodes:t,cstNodes:r}}hydrateAstNode(e,t){let r=t.astNodes.get(e);r.$type=e.$type,r.$containerIndex=e.$containerIndex,r.$containerProperty=e.$containerProperty,e.$cstNode&&(r.$cstNode=t.cstNodes.get(e.$cstNode));for(let[n,a]of Object.entries(e))if(!n.startsWith("$"))if(Array.isArray(a)){let i=[];r[n]=i;for(let o of a)ke(o)?i.push(this.setParent(this.hydrateAstNode(o,t),r)):Xe(o)?i.push(this.hydrateReference(o,r,n,t)):i.push(o)}else ke(a)?r[n]=this.setParent(this.hydrateAstNode(a,t),r):Xe(a)?r[n]=this.hydrateReference(a,r,n,t):a!==void 0&&(r[n]=a);return r}setParent(e,t){return e.$container=t,e}hydrateReference(e,t,r,n){return this.linker.buildReference(t,r,n.cstNodes.get(e.$refNode),e.$refText)}hydrateCstNode(e,t,r=0){let n=t.cstNodes.get(e);if(typeof e.grammarSource=="number"&&(n.grammarSource=this.getGrammarElement(e.grammarSource)),n.astNode=t.astNodes.get(e.astNode),fr(n))for(let a of e.content){let i=this.hydrateCstNode(a,t,r++);n.content.push(i)}return n}hydrateCstLeafNode(e){let t=this.getTokenType(e.tokenType),r=e.offset,n=e.length,a=e.startLine,i=e.startColumn,o=e.endLine,l=e.endColumn,u=e.hidden;return new gl(r,n,{start:{line:a,character:i},end:{line:o,character:l}},t,u)}getTokenType(e){return this.lexer.definition[e]}getGrammarElementId(e){if(e)return this.grammarElementIdMap.size===0&&this.createGrammarElementIdMap(),this.grammarElementIdMap.get(e)}getGrammarElement(e){return this.grammarElementIdMap.size===0&&this.createGrammarElementIdMap(),this.grammarElementIdMap.getKey(e)}createGrammarElementIdMap(){let e=0;for(let t of Nt(this.grammar))Pl(t)&&this.grammarElementIdMap.set(t,e++)}};function Xm(e){return{documentation:{CommentProvider:s(t=>new gw(t),"CommentProvider"),DocumentationProvider:s(t=>new yw(t),"DocumentationProvider")},parser:{AsyncParser:s(t=>new vw(t),"AsyncParser"),GrammarConfig:s(t=>gd(t),"GrammarConfig"),LangiumParser:s(t=>Im(t),"LangiumParser"),CompletionParser:s(t=>wm(t),"CompletionParser"),ValueConverter:s(()=>new Pm,"ValueConverter"),TokenBuilder:s(()=>new wu,"TokenBuilder"),Lexer:s(t=>new Km(t),"Lexer"),ParserErrorMessageProvider:s(()=>new bm,"ParserErrorMessageProvider"),LexerErrorMessageProvider:s(()=>new iw,"LexerErrorMessageProvider")},workspace:{AstNodeLocator:s(()=>new ew,"AstNodeLocator"),AstNodeDescriptionProvider:s(t=>new ZS(t),"AstNodeDescriptionProvider"),ReferenceDescriptionProvider:s(t=>new QS(t),"ReferenceDescriptionProvider")},references:{Linker:s(t=>new zS(t),"Linker"),NameProvider:s(()=>new jS,"NameProvider"),ScopeProvider:s(t=>new WS(t),"ScopeProvider"),ScopeComputation:s(t=>new KS(t),"ScopeComputation"),References:s(t=>new US(t),"References")},serializer:{Hydrator:s(t=>new $w(t),"Hydrator"),JsonSerializer:s(t=>new VS(t),"JsonSerializer")},validation:{DocumentValidator:s(t=>new JS(t),"DocumentValidator"),ValidationRegistry:s(t=>new YS(t),"ValidationRegistry")},shared:s(()=>e.shared,"shared")}}s(Xm,"createDefaultCoreModule");function Jm(e){return{ServiceRegistry:s(t=>new HS(t),"ServiceRegistry"),workspace:{LangiumDocuments:s(t=>new FS(t),"LangiumDocuments"),LangiumDocumentFactory:s(t=>new GS(t),"LangiumDocumentFactory"),DocumentBuilder:s(t=>new rw(t),"DocumentBuilder"),IndexManager:s(t=>new nw(t),"IndexManager"),WorkspaceManager:s(t=>new aw(t),"WorkspaceManager"),FileSystemProvider:s(t=>e.fileSystemProvider(t),"FileSystemProvider"),WorkspaceLock:s(()=>new Tw,"WorkspaceLock"),ConfigurationProvider:s(t=>new tw(t),"ConfigurationProvider")},profilers:{}}}s(Jm,"createDefaultSharedCoreModule");var Yf;(function(e){e.merge=(t,r)=>Ba(Ba({},t),r)})(Yf||(Yf={}));function _l(e,t,r,n,a,i,o,l,u){let c=[e,t,r,n,a,i,o,l,u].reduce(Ba,{});return Qm(c)}s(_l,"inject");var Rw=Symbol("isProxy");function Zm(e){if(e&&e[Rw])for(let t of Object.values(e))Zm(t);return e}s(Zm,"eagerLoad");function Qm(e,t){let r=new Proxy({},{deleteProperty:s(()=>!1,"deleteProperty"),set:s(()=>{throw new Error("Cannot set property on injected service container")},"set"),get:s((n,a)=>a===Rw?!0:Xf(n,a,e,t||r),"get"),getOwnPropertyDescriptor:s((n,a)=>(Xf(n,a,e,t||r),Object.getOwnPropertyDescriptor(n,a)),"getOwnPropertyDescriptor"),has:s((n,a)=>a in e,"has"),ownKeys:s(()=>[...Object.getOwnPropertyNames(e)],"ownKeys")});return r}s(Qm,"_inject");var _y=Symbol();function Xf(e,t,r,n){if(t in e){if(e[t]instanceof Error)throw new Error("Construction failure. Please make sure that your dependencies are constructable. Cause: "+e[t]);if(e[t]===_y)throw new Error('Cycle detected. Please make "'+String(t)+'" lazy. Visit https://langium.org/docs/reference/configuration-services/#resolving-cyclic-dependencies');return e[t]}else if(t in r){let a=r[t];e[t]=_y;try{e[t]=typeof a=="function"?a(n):Qm(a,n)}catch(i){throw e[t]=i instanceof Error?i:void 0,i}return e[t]}else return}s(Xf,"_resolve");function Ba(e,t){if(t){for(let[r,n]of Object.entries(t))if(n!=null)if(typeof n=="object"){let a=e[r];typeof a=="object"&&a!==null?e[r]=Ba(a,n):e[r]=Ba({},n)}else e[r]=n}return e}s(Ba,"_merge");var Jf={indentTokenName:"INDENT",dedentTokenName:"DEDENT",whitespaceTokenName:"WS",ignoreIndentationDelimiters:[]},Tn;(function(e){e.REGULAR="indentation-sensitive",e.IGNORE_INDENTATION="ignore-indentation"})(Tn||(Tn={}));var Aw=class extends wu{static{s(this,"IndentationAwareTokenBuilder")}constructor(e=Jf){super(),this.indentationStack=[0],this.whitespaceRegExp=/[ \t]+/y,this.options={...Jf,...e},this.indentTokenType=ka({name:this.options.indentTokenName,pattern:this.indentMatcher.bind(this),line_breaks:!1}),this.dedentTokenType=ka({name:this.options.dedentTokenName,pattern:this.dedentMatcher.bind(this),line_breaks:!1})}buildTokens(e,t){let r=super.buildTokens(e,t);if(!Lu(r))throw new Error("Invalid tokens built by default builder");let{indentTokenName:n,dedentTokenName:a,whitespaceTokenName:i,ignoreIndentationDelimiters:o}=this.options,l,u,c,f=[];for(let p of r){for(let[m,g]of o)p.name===m?p.PUSH_MODE=Tn.IGNORE_INDENTATION:p.name===g&&(p.POP_MODE=!0);p.name===a?l=p:p.name===n?u=p:p.name===i?c=p:f.push(p)}if(!l||!u||!c)throw new Error("Some indentation/whitespace tokens not found!");return o.length>0?{modes:{[Tn.REGULAR]:[l,u,...f,c],[Tn.IGNORE_INDENTATION]:[...f,c]},defaultMode:Tn.REGULAR}:[l,u,c,...f]}flushLexingReport(e){return{...super.flushLexingReport(e),remainingDedents:this.flushRemainingDedents(e)}}isStartOfLine(e,t){return t===0||`\r +`.includes(e[t-1])}matchWhitespace(e,t,r,n){this.whitespaceRegExp.lastIndex=t;let a=this.whitespaceRegExp.exec(e);return{currIndentLevel:a?.[0].length??0,prevIndentLevel:this.indentationStack.at(-1),match:a}}createIndentationTokenInstance(e,t,r,n){let a=this.getLineNumber(t,n);return Bs(e,r,n,n+r.length,a,a,1,r.length)}getLineNumber(e,t){return e.substring(0,t).split(/\r\n|\r|\n/).length}indentMatcher(e,t,r,n){if(!this.isStartOfLine(e,t))return null;let{currIndentLevel:a,prevIndentLevel:i,match:o}=this.matchWhitespace(e,t,r,n);return a<=i?null:(this.indentationStack.push(a),o)}dedentMatcher(e,t,r,n){if(!this.isStartOfLine(e,t))return null;let{currIndentLevel:a,prevIndentLevel:i,match:o}=this.matchWhitespace(e,t,r,n);if(a>=i)return null;let l=this.indentationStack.lastIndexOf(a);if(l===-1)return this.diagnostics.push({severity:"error",message:`Invalid dedent level ${a} at offset: ${t}. Current indentation stack: ${this.indentationStack}`,offset:t,length:o?.[0]?.length??0,line:this.getLineNumber(e,t),column:1}),null;let u=this.indentationStack.length-l-1,c=e.substring(0,t).match(/[\r\n]+$/)?.[0].length??1;for(let f=0;f1;)t.push(this.createIndentationTokenInstance(this.dedentTokenType,e,"",e.length)),this.indentationStack.pop();return this.indentationStack=[0],t}},UG=class extends Km{static{s(this,"IndentationAwareLexer")}constructor(e){if(super(e),e.parser.TokenBuilder instanceof Aw)this.indentationTokenBuilder=e.parser.TokenBuilder;else throw new Error("IndentationAwareLexer requires an accompanying IndentationAwareTokenBuilder")}tokenize(e,t=Um){let r=super.tokenize(e),n=r.report;t?.mode==="full"&&r.tokens.push(...n.remainingDedents),n.remainingDedents=[];let{indentTokenType:a,dedentTokenType:i}=this.indentationTokenBuilder,o=a.tokenTypeIdx,l=i.tokenTypeIdx,u=[],c=r.tokens.length-1;for(let f=0;f=0&&u.push(r.tokens[c]),r.tokens=u,r}},eh={};Mr(eh,{AstUtils:()=>Rp,BiMap:()=>Al,Cancellation:()=>pe,ContextCache:()=>ku,CstUtils:()=>vp,DONE_RESULT:()=>Ye,Deferred:()=>Tr,Disposable:()=>Rn,DisposableCache:()=>Pu,DocumentCache:()=>qS,EMPTY_STREAM:()=>La,ErrorWithLocation:()=>Gl,GrammarUtils:()=>Jp,MultiMap:()=>$r,OperationCancelled:()=>Vt,Reduction:()=>cs,RegExpUtils:()=>Qp,SimpleCache:()=>Mm,StreamImpl:()=>Wt,TreeStreamImpl:()=>Da,URI:()=>ft,UriTrie:()=>Dm,UriUtils:()=>Je,WorkspaceCache:()=>Gm,assertCondition:()=>Zp,assertUnreachable:()=>Gr,delayNextTick:()=>Iu,interruptAndCheck:()=>Fe,isOperationCancelled:()=>Wn,loadGrammarFromJson:()=>ze,setInterruptionPeriod:()=>km,startCancelableOperation:()=>Nu,stream:()=>le});Sl(eh,Ou);var Ew=class{static{s(this,"EmptyFileSystemProvider")}stat(e){throw new Error("No file system is available.")}statSync(e){throw new Error("No file system is available.")}async exists(){return!1}existsSync(){return!1}readBinary(){throw new Error("No file system is available.")}readBinarySync(){throw new Error("No file system is available.")}readFile(){throw new Error("No file system is available.")}readFileSync(){throw new Error("No file system is available.")}async readDirectory(){return[]}readDirectorySync(){return[]}},Cw={fileSystemProvider:s(()=>new Ew,"fileSystemProvider")},KG={Grammar:s(()=>{},"Grammar"),LanguageMetaData:s(()=>({caseInsensitive:!1,fileExtensions:[".langium"],languageId:"langium"}),"LanguageMetaData")},BG={AstReflection:s(()=>new Up,"AstReflection")};function bw(){let e=_l(Jm(Cw),BG),t=_l(Xm({shared:e}),KG);return e.ServiceRegistry.register(t),t}s(bw,"createMinimalGrammarServices");function ze(e){let t=bw(),r=t.serializer.JsonSerializer.deserialize(e);return t.shared.workspace.LangiumDocumentFactory.fromModel(r,ft.parse(`memory:/${r.name??"grammar"}.langium`)),r}s(ze,"loadGrammarFromJson");Sl(Lg,eh);var qG=class{static{s(this,"DefaultLangiumProfiler")}constructor(e){this.activeCategories=new Set,this.allCategories=new Set(["validating","parsing","linking"]),this.activeCategories=e??new Set(this.allCategories),this.records=new $r}isActive(e){return this.activeCategories.has(e)}start(...e){e?e.forEach(t=>this.activeCategories.add(t)):this.activeCategories=new Set(this.allCategories)}stop(...e){e?e.forEach(t=>this.activeCategories.delete(t)):this.activeCategories.clear()}createTask(e,t){if(!this.isActive(e))throw new Error(`Category "${e}" is not active.`);return console.log(`Creating profiling task for '${e}.${t}'.`),new _w(r=>this.records.add(e,this.dumpRecord(e,r)),t)}dumpRecord(e,t){console.info(`Task ${e}.${t.identifier} executed in ${t.duration.toFixed(2)}ms and ended at ${t.date.toISOString()}`);let r=[];for(let i of t.entries.keys()){let o=t.entries.get(i),l=o.reduce((u,c)=>u+c);r.push({name:`${t.identifier}.${i}`,count:o.length,duration:l})}let n=t.duration-r.map(i=>i.duration).reduce((i,o)=>i+o,0);r.push({name:t.identifier,count:1,duration:n}),r.sort((i,o)=>o.duration-i.duration);function a(i){return Math.round(100*i)/100}return s(a,"Round"),console.table(r.map(i=>({Element:i.name,Count:i.count,"Self %":a(100*i.duration/t.duration),"Time (ms)":a(i.duration)}))),t}getRecords(...e){return e.length===0?this.records.values():this.records.entries().filter(t=>e.some(r=>r===t[0])).flatMap(t=>t[1])}},_w=class{static{s(this,"ProfilingTask")}constructor(e,t){this.stack=[],this.entries=new $r,this.addRecord=e,this.identifier=t}start(){if(this.startTime!==void 0)throw new Error(`Task "${this.identifier}" is already started.`);this.startTime=performance.now()}stop(){if(this.startTime===void 0)throw new Error(`Task "${this.identifier}" was not started.`);if(this.stack.length!==0)throw new Error(`Task "${this.identifier}" cannot be stopped before sub-task(s): ${this.stack.map(t=>t.id).join(", ")}.`);let e={identifier:this.identifier,date:new Date,duration:performance.now()-this.startTime,entries:this.entries};this.addRecord(e),this.startTime=void 0,this.entries.clear()}startSubTask(e){this.stack.push({id:e,start:performance.now(),content:0})}stopSubTask(e){let t=this.stack.pop();if(!t)throw new Error(`Task "${this.identifier}.${e}" was not started.`);if(t.id!==e)throw new Error(`Sub-Task "${t.id}" is not already stopped.`);let r=performance.now()-t.start;this.stack.at(-1)!==void 0&&(this.stack[this.stack.length-1].content+=r);let n=r-t.content;this.entries.add(e,n)}},Zf;(e=>{e.Terminals={ARROW_DIRECTION:/L|R|T|B/,ARROW_GROUP:/\{group\}/,ARROW_INTO:/<|>/,ACC_DESCR:/[\t ]*accDescr(?:[\t ]*:([^\n\r]*?(?=%%)|[^\n\r]*)|\s*{([^}]*)})/,ACC_TITLE:/[\t ]*accTitle[\t ]*:(?:[^\n\r]*?(?=%%)|[^\n\r]*)/,TITLE:/[\t ]*title(?:[\t ][^\n\r]*?(?=%%)|[\t ][^\n\r]*|)/,STRING:/"([^"\\]|\\.)*"|'([^'\\]|\\.)*'/,ID:/[\w]([-\w]*\w)?/,NEWLINE:/\r?\n/,WHITESPACE:/[\t ]+/,YAML:/---[\t ]*\r?\n(?:[\S\s]*?\r?\n)?---(?:\r?\n|(?!\S))/,DIRECTIVE:/[\t ]*%%{[\S\s]*?}%%(?:\r?\n|(?!\S))/,SINGLE_LINE_COMMENT:/[\t ]*%%[^\n\r]*/,ARCH_ICON:/\([\w-:]+\)/,ARCH_TITLE:/\[(?:"([^"\\]|\\.)*"|'([^'\\]|\\.)*'|[^\[\]\r\n]+)\]/}})(Zf||(Zf={}));var Qf;(e=>{e.Terminals={DOMAIN_NAME:/complex|complicated|clear|chaotic|confusion/,ACC_DESCR:/[\t ]*accDescr(?:[\t ]*:([^\n\r]*?(?=%%)|[^\n\r]*)|\s*{([^}]*)})/,ACC_TITLE:/[\t ]*accTitle[\t ]*:(?:[^\n\r]*?(?=%%)|[^\n\r]*)/,TITLE:/[\t ]*title(?:[\t ][^\n\r]*?(?=%%)|[\t ][^\n\r]*|)/,STRING:/"([^"\\]|\\.)*"|'([^'\\]|\\.)*'/,NEWLINE:/\r?\n/,WHITESPACE:/[\t ]+/,YAML:/---[\t ]*\r?\n(?:[\S\s]*?\r?\n)?---(?:\r?\n|(?!\S))/,DIRECTIVE:/[\t ]*%%{[\S\s]*?}%%(?:\r?\n|(?!\S))/,SINGLE_LINE_COMMENT:/[\t ]*%%[^\n\r]*/}})(Qf||(Qf={}));var ep;(e=>{e.Terminals={EM_ID:/[_a-zA-Z][\w_]*/,EM_FID:/\d{1,3}/,EM_DATA_INLINE:/\{(.*)\}|"(.*)"|'(.*)'/,EM_DATA_BLOCK:/\{[\t ]*\r?\n(?:[\S\s]*?\r?\n)?\}(?:\r?\n|(?!\S))/,EM_ACC_DESCR:/[\t ]*accDescr(?:[\t ]*:([^\n\r]*?(?=%%)|[^\n\r]*)|\s*{([^}]*)})/,EM_ACC_TITLE:/[\t ]*accTitle[\t ]*:(?:[^\n\r]*?(?=%%)|[^\n\r]*)/,EM_TITLE:/[\t ]*title(?:[\t ][^\n\r]*?(?=%%)|[\t ][^\n\r]*|)/,EM_WS:/\s+/,EM_YAML:/---[\t ]*\r?\n(?:[\S\s]*?\r?\n)?---(?:\r?\n|(?!\S))/,EM_DIRECTIVE:/[\t ]*%%{[\S\s]*?}%%(?:\r?\n|(?!\S))/,EM_SINGLE_LINE_COMMENT:/[\t ]*%%[^\n\r]*/,EM_ML_COMMENT:/\/\*[\s\S]*?\*\//,EM_SL_COMMENT:/\/\/[^\n\r]*/}})(ep||(ep={}));var tp;(e=>{e.Terminals={ACC_DESCR:/[\t ]*accDescr(?:[\t ]*:([^\n\r]*?(?=%%)|[^\n\r]*)|\s*{([^}]*)})/,ACC_TITLE:/[\t ]*accTitle[\t ]*:(?:[^\n\r]*?(?=%%)|[^\n\r]*)/,TITLE:/[\t ]*title(?:[\t ][^\n\r]*?(?=%%)|[\t ][^\n\r]*|)/,INT:/0|[1-9][0-9]*(?!\.)/,STRING:/"([^"\\]|\\.)*"|'([^'\\]|\\.)*'/,NEWLINE:/\r?\n/,WHITESPACE:/[\t ]+/,YAML:/---[\t ]*\r?\n(?:[\S\s]*?\r?\n)?---(?:\r?\n|(?!\S))/,DIRECTIVE:/[\t ]*%%{[\S\s]*?}%%(?:\r?\n|(?!\S))/,SINGLE_LINE_COMMENT:/[\t ]*%%[^\n\r]*/,REFERENCE:/\w([-\./\w]*[-\w])?/}})(tp||(tp={}));var rp;(e=>{e.Terminals={ACC_DESCR:/[\t ]*accDescr(?:[\t ]*:([^\n\r]*?(?=%%)|[^\n\r]*)|\s*{([^}]*)})/,ACC_TITLE:/[\t ]*accTitle[\t ]*:(?:[^\n\r]*?(?=%%)|[^\n\r]*)/,TITLE:/[\t ]*title(?:[\t ][^\n\r]*?(?=%%)|[\t ][^\n\r]*|)/,NEWLINE:/\r?\n/,WHITESPACE:/[\t ]+/,YAML:/---[\t ]*\r?\n(?:[\S\s]*?\r?\n)?---(?:\r?\n|(?!\S))/,DIRECTIVE:/[\t ]*%%{[\S\s]*?}%%(?:\r?\n|(?!\S))/,SINGLE_LINE_COMMENT:/[\t ]*%%[^\n\r]*/}})(rp||(rp={}));var np;(e=>{e.Terminals={ACC_DESCR:/[\t ]*accDescr(?:[\t ]*:([^\n\r]*?(?=%%)|[^\n\r]*)|\s*{([^}]*)})/,ACC_TITLE:/[\t ]*accTitle[\t ]*:(?:[^\n\r]*?(?=%%)|[^\n\r]*)/,TITLE:/[\t ]*title(?:[\t ][^\n\r]*?(?=%%)|[\t ][^\n\r]*|)/,INT:/0|[1-9][0-9]*(?!\.)/,STRING:/"([^"\\]|\\.)*"|'([^'\\]|\\.)*'/,NEWLINE:/\r?\n/,WHITESPACE:/[\t ]+/,YAML:/---[\t ]*\r?\n(?:[\S\s]*?\r?\n)?---(?:\r?\n|(?!\S))/,DIRECTIVE:/[\t ]*%%{[\S\s]*?}%%(?:\r?\n|(?!\S))/,SINGLE_LINE_COMMENT:/[\t ]*%%[^\n\r]*/}})(np||(np={}));var ap;(e=>{e.Terminals={NUMBER_PIE:/(?:-?[0-9]+\.[0-9]+(?!\.))|(?:-?(0|[1-9][0-9]*)(?!\.))/,ACC_DESCR:/[\t ]*accDescr(?:[\t ]*:([^\n\r]*?(?=%%)|[^\n\r]*)|\s*{([^}]*)})/,ACC_TITLE:/[\t ]*accTitle[\t ]*:(?:[^\n\r]*?(?=%%)|[^\n\r]*)/,TITLE:/[\t ]*title(?:[\t ][^\n\r]*?(?=%%)|[\t ][^\n\r]*|)/,STRING:/"([^"\\]|\\.)*"|'([^'\\]|\\.)*'/,NEWLINE:/\r?\n/,WHITESPACE:/[\t ]+/,YAML:/---[\t ]*\r?\n(?:[\S\s]*?\r?\n)?---(?:\r?\n|(?!\S))/,DIRECTIVE:/[\t ]*%%{[\S\s]*?}%%(?:\r?\n|(?!\S))/,SINGLE_LINE_COMMENT:/[\t ]*%%[^\n\r]*/}})(ap||(ap={}));var ip;(e=>{e.Terminals={GRATICULE:/circle|polygon/,BOOLEAN:/true|false/,ACC_DESCR:/[\t ]*accDescr(?:[\t ]*:([^\n\r]*?(?=%%)|[^\n\r]*)|\s*{([^}]*)})/,ACC_TITLE:/[\t ]*accTitle[\t ]*:(?:[^\n\r]*?(?=%%)|[^\n\r]*)/,TITLE:/[\t ]*title(?:[\t ][^\n\r]*?(?=%%)|[\t ][^\n\r]*|)/,NUMBER:/(?:[0-9]+\.[0-9]+(?!\.))|(?:0|[1-9][0-9]*(?!\.))/,STRING:/"([^"\\]|\\.)*"|'([^'\\]|\\.)*'/,ID:/[\w]([-\w]*\w)?/,NEWLINE:/\r?\n/,WHITESPACE:/[\t ]+/,YAML:/---[\t ]*\r?\n(?:[\S\s]*?\r?\n)?---(?:\r?\n|(?!\S))/,DIRECTIVE:/[\t ]*%%{[\S\s]*?}%%(?:\r?\n|(?!\S))/,SINGLE_LINE_COMMENT:/[\t ]*%%[^\n\r]*/}})(ip||(ip={}));var sp;(e=>{e.Terminals={TITLE:/title(?:[\t ][^\n\r]*?(?=%%)|[\t ][^\n\r]*|)/,ACC_TITLE:/accTitle[\t ]*:(?:[^\n\r]*?(?=%%)|[^\n\r]*)/,ACC_DESCR:/accDescr(?:[\t ]*:([^\n\r]*?(?=%%)|[^\n\r]*)|\s*{([^}]*)})/,ABNF_RULENAME:/[A-Za-z][A-Za-z0-9-]*/,ABNF_STRING:/"[^"]*"/,ABNF_NUMVAL:/%[xXdDbB][0-9A-Fa-f]+(?:-[0-9A-Fa-f]+|\.[0-9A-Fa-f]+)*/,ABNF_REPEAT:/[0-9]*\*[0-9]*/,ABNF_EXACT_REPEAT:/[0-9]+/,ABNF_WHITESPACE:/[\t \r\n]+/,ABNF_YAML:/---[\t ]*\r?\n(?:[\S\s]*?\r?\n)?---(?:\r?\n|(?!\S))/,ABNF_DIRECTIVE:/[\t ]*%%{[\S\s]*?}%%(?:\r?\n|(?!\S))/,ABNF_SINGLE_LINE_COMMENT:/[\t ]*%%[^\n\r]*/,ABNF_COMMENT:/;[^\n\r]*/}})(sp||(sp={}));var op;(e=>{e.Terminals={TITLE:/title(?:[\t ][^\n\r]*?(?=%%)|[\t ][^\n\r]*|)/,ACC_TITLE:/accTitle[\t ]*:(?:[^\n\r]*?(?=%%)|[^\n\r]*)/,ACC_DESCR:/accDescr(?:[\t ]*:([^\n\r]*?(?=%%)|[^\n\r]*)|\s*{([^}]*)})/,EBNF_ID:/[A-Z_a-z][\w-]*/,EBNF_STRING:/"([^"\\]|\\.)*"|'([^'\\]|\\.)*'/,EBNF_SPECIAL_SEQUENCE:/\?(?=[^?;]*[^?\s;][^?;]*\?)[^?;]*\?/,EBNF_WHITESPACE:/[\t \r\n]+/,EBNF_YAML:/---[\t ]*\r?\n(?:[\S\s]*?\r?\n)?---(?:\r?\n|(?!\S))/,EBNF_DIRECTIVE:/[\t ]*%%{[\S\s]*?}%%(?:\r?\n|(?!\S))/,EBNF_SINGLE_LINE_COMMENT:/[\t ]*%%[^\n\r]*/,EBNF_BLOCK_COMMENT:/\/\*[\s\S]*?\*\//,EBNF_ISO_COMMENT:/\(\*[\s\S]*?\*\)/}})(op||(op={}));var lp;(e=>{e.Terminals={TITLE:/title(?:[\t ][^\n\r]*?(?=%%)|[\t ][^\n\r]*|)/,ACC_TITLE:/accTitle[\t ]*:(?:[^\n\r]*?(?=%%)|[^\n\r]*)/,ACC_DESCR:/accDescr(?:[\t ]*:([^\n\r]*?(?=%%)|[^\n\r]*)|\s*{([^}]*)})/,RR_ID:/[A-Z_a-z][\w-]*/,RR_STRING:/"([^"\\]|\\.)*"|'([^'\\]|\\.)*'/,RR_WHITESPACE:/[\t \r\n]+/,RR_YAML:/---[\t ]*\r?\n(?:[\S\s]*?\r?\n)?---(?:\r?\n|(?!\S))/,RR_DIRECTIVE:/[\t ]*%%{[\S\s]*?}%%(?:\r?\n|(?!\S))/,RR_SINGLE_LINE_COMMENT:/[\t ]*%%[^\n\r]*/,RR_BLOCK_COMMENT:/\/\*[\s\S]*?\*\//}})(lp||(lp={}));var up;(e=>{e.Terminals={TITLE:/title(?:[\t ][^\n\r]*?(?=%%)|[\t ][^\n\r]*|)/,ACC_TITLE:/accTitle[\t ]*:(?:[^\n\r]*?(?=%%)|[^\n\r]*)/,ACC_DESCR:/accDescr(?:[\t ]*:([^\n\r]*?(?=%%)|[^\n\r]*)|\s*{([^}]*)})/,PEG_ID:/[A-Z_a-z][\w-]*/,PEG_STRING:/"([^"\\]|\\.)*"|'([^'\\]|\\.)*'/,PEG_WHITESPACE:/[\t \r\n]+/,PEG_YAML:/---[\t ]*\r?\n(?:[\S\s]*?\r?\n)?---(?:\r?\n|(?!\S))/,PEG_DIRECTIVE:/[\t ]*%%{[\S\s]*?}%%(?:\r?\n|(?!\S))/,PEG_SINGLE_LINE_COMMENT:/[\t ]*%%[^\n\r]*/,PEG_LINE_COMMENT:/#[^\n\r]*/}})(up||(up={}));var cp;(e=>{e.Terminals={ACC_DESCR:/[\t ]*accDescr(?:[\t ]*:([^\n\r]*?(?=%%)|[^\n\r]*)|\s*{([^}]*)})/,ACC_TITLE:/[\t ]*accTitle[\t ]*:(?:[^\n\r]*?(?=%%)|[^\n\r]*)/,TITLE:/[\t ]*title(?:[\t ][^\n\r]*?(?=%%)|[\t ][^\n\r]*|)/,TREEMAP_KEYWORD:/treemap-beta|treemap/,CLASS_DEF:/classDef\s+([a-zA-Z_][a-zA-Z0-9_]+)(?:\s+([^;\r\n]*))?(?:;)?/,STYLE_SEPARATOR:/:::/,SEPARATOR:/:/,COMMA:/,/,INDENTATION:/[ \t]{1,}/,WS:/[ \t]+/,ML_COMMENT:/\%\%[^\n]*/,NL:/\r?\n/,ID2:/[a-zA-Z_][a-zA-Z0-9_]*/,NUMBER2:/[0-9_\.\,]+/,STRING2:/"[^"]*"|'[^']*'/}})(cp||(cp={}));var fp;(e=>{e.Terminals={ACC_DESCR:/[\t ]*accDescr(?:[\t ]*:([^\n\r]*?(?=%%)|[^\n\r]*)|\s*{([^}]*)})/,ACC_TITLE:/[\t ]*accTitle[\t ]*:(?:[^\n\r]*?(?=%%)|[^\n\r]*)/,TITLE:/[\t ]*title(?:[\t ][^\n\r]*?(?=%%)|[\t ][^\n\r]*|)/,CLASS_ANNOTATION:/[ \t]+:::[ \t]*[A-Za-z_][\w-]*/,ICON_ANNOTATION:/[ \t]+icon\([\w-]*(?::[\w-]+)?\)/,DESC_ANNOTATION:/[ \t]+##[^\n\r]*/,INDENTATION:/[ \t]{1,}/,QUOTED_NAME:/"[^"]*"|'[^']*'/,WS:/[ \t]+/,ML_COMMENT:/\%\%[^\n]*/,NL:/\r?\n/,BARE_NAME:/(?!:::|icon\(|##)[^ \t\n\r"'](?:(?![ \t]+:::[ \t]*[A-Za-z_]|[ \t]+icon\(|[ \t]+##)[^\n\r])*/}})(fp||(fp={}));var pp;(e=>{e.Terminals={WARDLEY_NUMBER:/[0-9]+\.[0-9]+/,ARROW:/->/,LINK_PORT:/\+<>|\+>|\+|-\.->|>|\+'[^']*'<>|\+'[^']*'<|\+'[^']*'>/,LINK_LABEL:/;[^\n\r]+/,STRATEGY:/build|buy|outsource|market/,KW_WARDLEY:/wardley-beta/,KW_SIZE:/size/,KW_EVOLUTION:/evolution/,KW_ANCHOR:/anchor/,KW_COMPONENT:/component/,KW_LABEL:/label/,KW_INERTIA:/inertia/,KW_EVOLVE:/evolve/,KW_PIPELINE:/pipeline/,KW_NOTE:/note/,KW_ANNOTATIONS:/annotations/,KW_ANNOTATION:/annotation/,KW_ACCELERATOR:/accelerator/,KW_DEACCELERATOR:/deaccelerator/,NAME_WITH_SPACES:/(?!title\s|accTitle|accDescr)[A-Za-z](?:[A-Za-z0-9_()&]|-(?!>))*(?:[ \t]+[A-Za-z(](?:[A-Za-z0-9_()&]|-(?!>))*)*/,WS:/[ \t]+/,ACC_DESCR:/[\t ]*accDescr(?:[\t ]*:([^\n\r]*?(?=%%)|[^\n\r]*)|\s*{([^}]*)})/,ACC_TITLE:/[\t ]*accTitle[\t ]*:(?:[^\n\r]*?(?=%%)|[^\n\r]*)/,TITLE:/[\t ]*title(?:[\t ][^\n\r]*?(?=%%)|[\t ][^\n\r]*|)/,INT:/0|[1-9][0-9]*(?!\.)/,STRING:/"([^"\\]|\\.)*"|'([^'\\]|\\.)*'/,ID:/[\w]([-\w]*\w)?/,NEWLINE:/\r?\n/,WHITESPACE:/[\t ]+/,YAML:/---[\t ]*\r?\n(?:[\S\s]*?\r?\n)?---(?:\r?\n|(?!\S))/,DIRECTIVE:/[\t ]*%%{[\S\s]*?}%%(?:\r?\n|(?!\S))/,SINGLE_LINE_COMMENT:/[\t ]*%%[^\n\r]*/}})(pp||(pp={}));var JF={...Zf.Terminals,...Qf.Terminals,...ep.Terminals,...tp.Terminals,...rp.Terminals,...np.Terminals,...ap.Terminals,...ip.Terminals,...sp.Terminals,...op.Terminals,...lp.Terminals,...up.Terminals,...fp.Terminals,...cp.Terminals,...pp.Terminals},Sy={$type:"AbnfAlternation",alternatives:"alternatives"},wy={$type:"AbnfConcatenation",elements:"elements"},Vu={$type:"AbnfElement",primary:"primary",repeat:"repeat"},Iy={$type:"AbnfGroup",element:"element"},Ny={$type:"AbnfNumVal",value:"value"},Py={$type:"AbnfOptionalGroup",element:"element"},ta={$type:"AbnfPrimary"},Hu={$type:"AbnfRule",definition:"definition",name:"name"},ky={$type:"AbnfRuleName",name:"name"},Oy={$type:"AbnfStringLiteral",value:"value"},to={$type:"Accelerator",name:"name",x:"x",y:"y"},Yu={$type:"Alignment",direction:"direction",members:"members"},ro={$type:"Anchor",evolution:"evolution",name:"name",visibility:"visibility"},_i={$type:"Annotation",number:"number",text:"text",x:"x",y:"y"},Xu={$type:"Annotations",x:"x",y:"y"},Ut={$type:"Architecture",accDescr:"accDescr",accTitle:"accTitle",alignments:"alignments",edges:"edges",groups:"groups",junctions:"junctions",services:"services",title:"title"};function WG(e){return Ie.isInstance(e,Ut.$type)}s(WG,"isArchitecture");var no={$type:"Axis",label:"label",name:"name"},Do={$type:"Branch",name:"name",order:"order"};function VG(e){return Ie.isInstance(e,Do.$type)}s(VG,"isBranch");var Ly={$type:"Checkout",branch:"branch"},ao={$type:"CherryPicking",id:"id",parent:"parent",tags:"tags"},Ju={$type:"ClassDefStatement",className:"className",styleText:"styleText"},da={$type:"Commit",id:"id",message:"message",tags:"tags",type:"type"};function HG(e){return Ie.isInstance(e,da.$type)}s(HG,"isCommit");var io={$type:"Common",accDescr:"accDescr",accTitle:"accTitle",title:"title"},Kr={$type:"Component",decorator:"decorator",evolution:"evolution",inertia:"inertia",label:"label",name:"name",visibility:"visibility"},so={$type:"Curve",entries:"entries",label:"label",name:"name"},en={$type:"Cynefin",accDescr:"accDescr",accTitle:"accTitle",domains:"domains",title:"title",transitions:"transitions"};function YG(e){return Ie.isInstance(e,en.$type)}s(YG,"isCynefin");var oo={$type:"Deaccelerator",name:"name",x:"x",y:"y"},Dy={$type:"Decorator",strategy:"strategy"},ra={$type:"Direction",accDescr:"accDescr",accTitle:"accTitle",dir:"dir",statements:"statements",title:"title"},xo={$type:"DomainBlock",domain:"domain",items:"items"};function XG(e){return Ie.isInstance(e,xo.$type)}s(XG,"isDomainBlock");var dp={$type:"DomainItem",label:"label"};function JG(e){return Ie.isInstance(e,dp.$type)}s(JG,"isDomainItem");var xy={$type:"EbnfChoice",alternatives:"alternatives"},My={$type:"EbnfExceptionPostfix",except:"except"},Gy={$type:"EbnfGroup",element:"element"},Fy={$type:"EbnfNonTerminal",name:"name"},zy={$type:"EbnfOneOrMorePostfix",operator:"operator"},jy={$type:"EbnfOptional",element:"element"},Uy={$type:"EbnfOptionalPostfix",operator:"operator"},Si={$type:"EbnfPostfix"},Br={$type:"EbnfPrimary"},Ky={$type:"EbnfRepetition",element:"element"},Zu={$type:"EbnfRule",definition:"definition",name:"name"},By={$type:"EbnfSequence",elements:"elements"},qy={$type:"EbnfSpecial",text:"text"},Qu={$type:"EbnfTerm",base:"base",postfixes:"postfixes"},Wy={$type:"EbnfTerminal",value:"value"},Vy={$type:"EbnfZeroOrMorePostfix",operator:"operator"},zt={$type:"Edge",lhsDir:"lhsDir",lhsGroup:"lhsGroup",lhsId:"lhsId",lhsInto:"lhsInto",rhsDir:"rhsDir",rhsGroup:"rhsGroup",rhsId:"rhsId",rhsInto:"rhsInto",title:"title"},na={$type:"EmDataEntity",dataBlockValue:"dataBlockValue",dataType:"dataType",name:"name"},qr={$type:"EmFrame"},wi={$type:"EmGwt",givenStatements:"givenStatements",sourceFrame:"sourceFrame",thenStatements:"thenStatements",whenStatements:"whenStatements"},Hy={$type:"EmGwtStatement",entityIdentifier:"entityIdentifier"},ec={$type:"EmModelEntity",name:"name"};function ZG(e){return e==="rmo"||e==="readmodel"||e==="ui"||e==="cmd"||e==="command"||e==="evt"||e==="event"||e==="pcr"||e==="processor"}s(ZG,"isEmModelEntityType");var lo={$type:"EmNoteEntity",dataBlockValue:"dataBlockValue",dataType:"dataType",sourceFrame:"sourceFrame"},or={$type:"EmResetFrame",dataInlineValue:"dataInlineValue",dataReference:"dataReference",dataType:"dataType",entityIdentifier:"entityIdentifier",modelEntityType:"modelEntityType",name:"name",sourceFrames:"sourceFrames"};function QG(e){return Ie.isInstance(e,or.$type)}s(QG,"isEmResetFrame");var _r={$type:"EmTimeFrame",dataInlineValue:"dataInlineValue",dataReference:"dataReference",dataType:"dataType",entityIdentifier:"entityIdentifier",modelEntityType:"modelEntityType",name:"name",sourceFrames:"sourceFrames"},tc={$type:"Entry",axis:"axis",value:"value"},nr={$type:"EventModel",accDescr:"accDescr",accTitle:"accTitle",dataEntities:"dataEntities",frames:"frames",gwtEntities:"gwtEntities",modelEntities:"modelEntities",noteEntities:"noteEntities",title:"title"},Yy={$type:"Evolution",stages:"stages"},uo={$type:"EvolutionStage",boundary:"boundary",name:"name",secondName:"secondName"},rc={$type:"Evolve",component:"component",target:"target"},tn={$type:"GitGraph",accDescr:"accDescr",accTitle:"accTitle",statements:"statements",title:"title"};function eF(e){return Ie.isInstance(e,tn.$type)}s(eF,"isGitGraph");var Ii={$type:"Group",icon:"icon",id:"id",in:"in",title:"title"},Wi={$type:"Info",accDescr:"accDescr",accTitle:"accTitle",title:"title"};function tF(e){return Ie.isInstance(e,Wi.$type)}s(tF,"isInfo");var Ni={$type:"Item",classSelector:"classSelector",name:"name"},nc={$type:"Junction",id:"id",in:"in"},Pi={$type:"Label",negX:"negX",negY:"negY",offsetX:"offsetX",offsetY:"offsetY"},co={$type:"Leaf",classSelector:"classSelector",name:"name",value:"value"},Wr={$type:"Link",arrow:"arrow",from:"from",fromPort:"fromPort",linkLabel:"linkLabel",to:"to",toPort:"toPort"},ma={$type:"Merge",branch:"branch",id:"id",tags:"tags",type:"type"};function rF(e){return Ie.isInstance(e,ma.$type)}s(rF,"isMerge");var fo={$type:"Note",evolution:"evolution",text:"text",visibility:"visibility"},ac={$type:"Option",name:"name",value:"value"},ha={$type:"Packet",accDescr:"accDescr",accTitle:"accTitle",blocks:"blocks",title:"title"};function nF(e){return Ie.isInstance(e,ha.$type)}s(nF,"isPacket");var ya={$type:"PacketBlock",bits:"bits",end:"end",label:"label",start:"start"};function aF(e){return Ie.isInstance(e,ya.$type)}s(aF,"isPacketBlock");var Xy={$type:"PegAny",dot:"dot"},Jy={$type:"PegGroup",element:"element"},Zy={$type:"PegIdentifier",name:"name"},Qy={$type:"PegLiteral",value:"value"},eg={$type:"PegOrderedChoice",alternatives:"alternatives"},ic={$type:"PegPrefix",operator:"operator",suffix:"suffix"},ki={$type:"PegPrimary"},sc={$type:"PegRule",definition:"definition",name:"name"},tg={$type:"PegSequence",elements:"elements"},oc={$type:"PegSuffix",operator:"operator",primary:"primary"},rn={$type:"Pie",accDescr:"accDescr",accTitle:"accTitle",sections:"sections",showData:"showData",title:"title"};function iF(e){return Ie.isInstance(e,rn.$type)}s(iF,"isPie");var Mo={$type:"PieSection",label:"label",value:"value"};function sF(e){return Ie.isInstance(e,Mo.$type)}s(sF,"isPieSection");var lc={$type:"Pipeline",components:"components",parent:"parent"},po={$type:"PipelineComponent",evolution:"evolution",label:"label",name:"name"},Vr={$type:"Radar",accDescr:"accDescr",accTitle:"accTitle",axes:"axes",curves:"curves",options:"options",title:"title"},ga={$type:"Railroad",accDescr:"accDescr",accTitle:"accTitle",rules:"rules",title:"title"};function oF(e){return Ie.isInstance(e,ga.$type)}s(oF,"isRailroad");var va={$type:"RailroadAbnf",accDescr:"accDescr",accTitle:"accTitle",rules:"rules",title:"title"};function lF(e){return Ie.isInstance(e,va.$type)}s(lF,"isRailroadAbnf");var rg={$type:"RailroadChoiceExpr",alternatives:"alternatives"},Ta={$type:"RailroadEbnf",accDescr:"accDescr",accTitle:"accTitle",rules:"rules",title:"title"};function uF(e){return Ie.isInstance(e,Ta.$type)}s(uF,"isRailroadEbnf");var ar={$type:"RailroadExpression"},ng={$type:"RailroadNonTerminalExpr",name:"name"},ag={$type:"RailroadOneOrMoreExpr",element:"element"},ig={$type:"RailroadOptionalExpr",element:"element"},$a={$type:"RailroadPeg",accDescr:"accDescr",accTitle:"accTitle",rules:"rules",title:"title"};function cF(e){return Ie.isInstance(e,$a.$type)}s(cF,"isRailroadPeg");var uc={$type:"RailroadRule",definition:"definition",name:"name"},sg={$type:"RailroadSequenceExpr",elements:"elements"},og={$type:"RailroadSpecialExpr",text:"text"},lg={$type:"RailroadTerminalExpr",value:"value"},ug={$type:"RailroadZeroOrMoreExpr",element:"element"},cc={$type:"Section",classSelector:"classSelector",name:"name"},aa={$type:"Service",icon:"icon",iconText:"iconText",id:"id",in:"in",title:"title"},fc={$type:"Size",height:"height",width:"width"},ia={$type:"Statement"},Vi={$type:"Transition",from:"from",label:"label",to:"to"};function fF(e){return Ie.isInstance(e,Vi.$type)}s(fF,"isTransition");var Ra={$type:"Treemap",accDescr:"accDescr",accTitle:"accTitle",title:"title",TreemapRows:"TreemapRows"};function pF(e){return Ie.isInstance(e,Ra.$type)}s(pF,"isTreemap");var pc={$type:"TreemapRow",indent:"indent",item:"item"},sa={$type:"TreeNode",classAnnotation:"classAnnotation",descAnnotation:"descAnnotation",iconAnnotation:"iconAnnotation",indent:"indent",name:"name"},Oi={$type:"TreeView",accDescr:"accDescr",accTitle:"accTitle",nodes:"nodes",title:"title"},Ue={$type:"Wardley",accDescr:"accDescr",accelerators:"accelerators",accTitle:"accTitle",anchors:"anchors",annotation:"annotation",annotations:"annotations",components:"components",deaccelerators:"deaccelerators",evolution:"evolution",evolves:"evolves",links:"links",notes:"notes",pipelines:"pipelines",size:"size",title:"title"};function dF(e){return Ie.isInstance(e,Ue.$type)}s(dF,"isWardley");var Sw=class extends $p{constructor(){super(...arguments),this.types={AbnfAlternation:{name:Sy.$type,properties:{alternatives:{name:Sy.alternatives,defaultValue:[]}},superTypes:[]},AbnfConcatenation:{name:wy.$type,properties:{elements:{name:wy.elements,defaultValue:[]}},superTypes:[]},AbnfElement:{name:Vu.$type,properties:{primary:{name:Vu.primary},repeat:{name:Vu.repeat}},superTypes:[]},AbnfGroup:{name:Iy.$type,properties:{element:{name:Iy.element}},superTypes:[ta.$type]},AbnfNumVal:{name:Ny.$type,properties:{value:{name:Ny.value}},superTypes:[ta.$type]},AbnfOptionalGroup:{name:Py.$type,properties:{element:{name:Py.element}},superTypes:[ta.$type]},AbnfPrimary:{name:ta.$type,properties:{},superTypes:[]},AbnfRule:{name:Hu.$type,properties:{definition:{name:Hu.definition},name:{name:Hu.name}},superTypes:[]},AbnfRuleName:{name:ky.$type,properties:{name:{name:ky.name}},superTypes:[ta.$type]},AbnfStringLiteral:{name:Oy.$type,properties:{value:{name:Oy.value}},superTypes:[ta.$type]},Accelerator:{name:to.$type,properties:{name:{name:to.name},x:{name:to.x},y:{name:to.y}},superTypes:[]},Alignment:{name:Yu.$type,properties:{direction:{name:Yu.direction},members:{name:Yu.members,defaultValue:[]}},superTypes:[]},Anchor:{name:ro.$type,properties:{evolution:{name:ro.evolution},name:{name:ro.name},visibility:{name:ro.visibility}},superTypes:[]},Annotation:{name:_i.$type,properties:{number:{name:_i.number},text:{name:_i.text},x:{name:_i.x},y:{name:_i.y}},superTypes:[]},Annotations:{name:Xu.$type,properties:{x:{name:Xu.x},y:{name:Xu.y}},superTypes:[]},Architecture:{name:Ut.$type,properties:{accDescr:{name:Ut.accDescr},accTitle:{name:Ut.accTitle},alignments:{name:Ut.alignments,defaultValue:[]},edges:{name:Ut.edges,defaultValue:[]},groups:{name:Ut.groups,defaultValue:[]},junctions:{name:Ut.junctions,defaultValue:[]},services:{name:Ut.services,defaultValue:[]},title:{name:Ut.title}},superTypes:[]},Axis:{name:no.$type,properties:{label:{name:no.label},name:{name:no.name}},superTypes:[]},Branch:{name:Do.$type,properties:{name:{name:Do.name},order:{name:Do.order}},superTypes:[ia.$type]},Checkout:{name:Ly.$type,properties:{branch:{name:Ly.branch}},superTypes:[ia.$type]},CherryPicking:{name:ao.$type,properties:{id:{name:ao.id},parent:{name:ao.parent},tags:{name:ao.tags,defaultValue:[]}},superTypes:[ia.$type]},ClassDefStatement:{name:Ju.$type,properties:{className:{name:Ju.className},styleText:{name:Ju.styleText}},superTypes:[]},Commit:{name:da.$type,properties:{id:{name:da.id},message:{name:da.message},tags:{name:da.tags,defaultValue:[]},type:{name:da.type}},superTypes:[ia.$type]},Common:{name:io.$type,properties:{accDescr:{name:io.accDescr},accTitle:{name:io.accTitle},title:{name:io.title}},superTypes:[]},Component:{name:Kr.$type,properties:{decorator:{name:Kr.decorator},evolution:{name:Kr.evolution},inertia:{name:Kr.inertia,defaultValue:!1},label:{name:Kr.label},name:{name:Kr.name},visibility:{name:Kr.visibility}},superTypes:[]},Curve:{name:so.$type,properties:{entries:{name:so.entries,defaultValue:[]},label:{name:so.label},name:{name:so.name}},superTypes:[]},Cynefin:{name:en.$type,properties:{accDescr:{name:en.accDescr},accTitle:{name:en.accTitle},domains:{name:en.domains,defaultValue:[]},title:{name:en.title},transitions:{name:en.transitions,defaultValue:[]}},superTypes:[]},Deaccelerator:{name:oo.$type,properties:{name:{name:oo.name},x:{name:oo.x},y:{name:oo.y}},superTypes:[]},Decorator:{name:Dy.$type,properties:{strategy:{name:Dy.strategy}},superTypes:[]},Direction:{name:ra.$type,properties:{accDescr:{name:ra.accDescr},accTitle:{name:ra.accTitle},dir:{name:ra.dir},statements:{name:ra.statements,defaultValue:[]},title:{name:ra.title}},superTypes:[tn.$type]},DomainBlock:{name:xo.$type,properties:{domain:{name:xo.domain},items:{name:xo.items,defaultValue:[]}},superTypes:[]},DomainItem:{name:dp.$type,properties:{label:{name:dp.label}},superTypes:[]},EbnfChoice:{name:xy.$type,properties:{alternatives:{name:xy.alternatives,defaultValue:[]}},superTypes:[]},EbnfExceptionPostfix:{name:My.$type,properties:{except:{name:My.except}},superTypes:[Si.$type]},EbnfGroup:{name:Gy.$type,properties:{element:{name:Gy.element}},superTypes:[Br.$type]},EbnfNonTerminal:{name:Fy.$type,properties:{name:{name:Fy.name}},superTypes:[Br.$type]},EbnfOneOrMorePostfix:{name:zy.$type,properties:{operator:{name:zy.operator}},superTypes:[Si.$type]},EbnfOptional:{name:jy.$type,properties:{element:{name:jy.element}},superTypes:[Br.$type]},EbnfOptionalPostfix:{name:Uy.$type,properties:{operator:{name:Uy.operator}},superTypes:[Si.$type]},EbnfPostfix:{name:Si.$type,properties:{},superTypes:[]},EbnfPrimary:{name:Br.$type,properties:{},superTypes:[]},EbnfRepetition:{name:Ky.$type,properties:{element:{name:Ky.element}},superTypes:[Br.$type]},EbnfRule:{name:Zu.$type,properties:{definition:{name:Zu.definition},name:{name:Zu.name}},superTypes:[]},EbnfSequence:{name:By.$type,properties:{elements:{name:By.elements,defaultValue:[]}},superTypes:[]},EbnfSpecial:{name:qy.$type,properties:{text:{name:qy.text}},superTypes:[Br.$type]},EbnfTerm:{name:Qu.$type,properties:{base:{name:Qu.base},postfixes:{name:Qu.postfixes,defaultValue:[]}},superTypes:[]},EbnfTerminal:{name:Wy.$type,properties:{value:{name:Wy.value}},superTypes:[Br.$type]},EbnfZeroOrMorePostfix:{name:Vy.$type,properties:{operator:{name:Vy.operator}},superTypes:[Si.$type]},Edge:{name:zt.$type,properties:{lhsDir:{name:zt.lhsDir},lhsGroup:{name:zt.lhsGroup,defaultValue:!1},lhsId:{name:zt.lhsId},lhsInto:{name:zt.lhsInto,defaultValue:!1},rhsDir:{name:zt.rhsDir},rhsGroup:{name:zt.rhsGroup,defaultValue:!1},rhsId:{name:zt.rhsId},rhsInto:{name:zt.rhsInto,defaultValue:!1},title:{name:zt.title}},superTypes:[]},EmDataEntity:{name:na.$type,properties:{dataBlockValue:{name:na.dataBlockValue},dataType:{name:na.dataType},name:{name:na.name}},superTypes:[]},EmFrame:{name:qr.$type,properties:{},superTypes:[]},EmGwt:{name:wi.$type,properties:{givenStatements:{name:wi.givenStatements,defaultValue:[]},sourceFrame:{name:wi.sourceFrame,referenceType:qr.$type},thenStatements:{name:wi.thenStatements,defaultValue:[]},whenStatements:{name:wi.whenStatements,defaultValue:[]}},superTypes:[]},EmGwtStatement:{name:Hy.$type,properties:{entityIdentifier:{name:Hy.entityIdentifier,referenceType:ec.$type}},superTypes:[]},EmModelEntity:{name:ec.$type,properties:{name:{name:ec.name}},superTypes:[]},EmNoteEntity:{name:lo.$type,properties:{dataBlockValue:{name:lo.dataBlockValue},dataType:{name:lo.dataType},sourceFrame:{name:lo.sourceFrame,referenceType:qr.$type}},superTypes:[]},EmResetFrame:{name:or.$type,properties:{dataInlineValue:{name:or.dataInlineValue},dataReference:{name:or.dataReference,referenceType:na.$type},dataType:{name:or.dataType},entityIdentifier:{name:or.entityIdentifier},modelEntityType:{name:or.modelEntityType},name:{name:or.name},sourceFrames:{name:or.sourceFrames,defaultValue:[],referenceType:qr.$type}},superTypes:[qr.$type]},EmTimeFrame:{name:_r.$type,properties:{dataInlineValue:{name:_r.dataInlineValue},dataReference:{name:_r.dataReference,referenceType:na.$type},dataType:{name:_r.dataType},entityIdentifier:{name:_r.entityIdentifier},modelEntityType:{name:_r.modelEntityType},name:{name:_r.name},sourceFrames:{name:_r.sourceFrames,defaultValue:[],referenceType:qr.$type}},superTypes:[qr.$type]},Entry:{name:tc.$type,properties:{axis:{name:tc.axis,referenceType:no.$type},value:{name:tc.value}},superTypes:[]},EventModel:{name:nr.$type,properties:{accDescr:{name:nr.accDescr},accTitle:{name:nr.accTitle},dataEntities:{name:nr.dataEntities,defaultValue:[]},frames:{name:nr.frames,defaultValue:[]},gwtEntities:{name:nr.gwtEntities,defaultValue:[]},modelEntities:{name:nr.modelEntities,defaultValue:[]},noteEntities:{name:nr.noteEntities,defaultValue:[]},title:{name:nr.title}},superTypes:[]},Evolution:{name:Yy.$type,properties:{stages:{name:Yy.stages,defaultValue:[]}},superTypes:[]},EvolutionStage:{name:uo.$type,properties:{boundary:{name:uo.boundary},name:{name:uo.name},secondName:{name:uo.secondName}},superTypes:[]},Evolve:{name:rc.$type,properties:{component:{name:rc.component},target:{name:rc.target}},superTypes:[]},GitGraph:{name:tn.$type,properties:{accDescr:{name:tn.accDescr},accTitle:{name:tn.accTitle},statements:{name:tn.statements,defaultValue:[]},title:{name:tn.title}},superTypes:[]},Group:{name:Ii.$type,properties:{icon:{name:Ii.icon},id:{name:Ii.id},in:{name:Ii.in},title:{name:Ii.title}},superTypes:[]},Info:{name:Wi.$type,properties:{accDescr:{name:Wi.accDescr},accTitle:{name:Wi.accTitle},title:{name:Wi.title}},superTypes:[]},Item:{name:Ni.$type,properties:{classSelector:{name:Ni.classSelector},name:{name:Ni.name}},superTypes:[]},Junction:{name:nc.$type,properties:{id:{name:nc.id},in:{name:nc.in}},superTypes:[]},Label:{name:Pi.$type,properties:{negX:{name:Pi.negX,defaultValue:!1},negY:{name:Pi.negY,defaultValue:!1},offsetX:{name:Pi.offsetX},offsetY:{name:Pi.offsetY}},superTypes:[]},Leaf:{name:co.$type,properties:{classSelector:{name:co.classSelector},name:{name:co.name},value:{name:co.value}},superTypes:[Ni.$type]},Link:{name:Wr.$type,properties:{arrow:{name:Wr.arrow},from:{name:Wr.from},fromPort:{name:Wr.fromPort},linkLabel:{name:Wr.linkLabel},to:{name:Wr.to},toPort:{name:Wr.toPort}},superTypes:[]},Merge:{name:ma.$type,properties:{branch:{name:ma.branch},id:{name:ma.id},tags:{name:ma.tags,defaultValue:[]},type:{name:ma.type}},superTypes:[ia.$type]},Note:{name:fo.$type,properties:{evolution:{name:fo.evolution},text:{name:fo.text},visibility:{name:fo.visibility}},superTypes:[]},Option:{name:ac.$type,properties:{name:{name:ac.name},value:{name:ac.value,defaultValue:!1}},superTypes:[]},Packet:{name:ha.$type,properties:{accDescr:{name:ha.accDescr},accTitle:{name:ha.accTitle},blocks:{name:ha.blocks,defaultValue:[]},title:{name:ha.title}},superTypes:[]},PacketBlock:{name:ya.$type,properties:{bits:{name:ya.bits},end:{name:ya.end},label:{name:ya.label},start:{name:ya.start}},superTypes:[]},PegAny:{name:Xy.$type,properties:{dot:{name:Xy.dot}},superTypes:[ki.$type]},PegGroup:{name:Jy.$type,properties:{element:{name:Jy.element}},superTypes:[ki.$type]},PegIdentifier:{name:Zy.$type,properties:{name:{name:Zy.name}},superTypes:[ki.$type]},PegLiteral:{name:Qy.$type,properties:{value:{name:Qy.value}},superTypes:[ki.$type]},PegOrderedChoice:{name:eg.$type,properties:{alternatives:{name:eg.alternatives,defaultValue:[]}},superTypes:[]},PegPrefix:{name:ic.$type,properties:{operator:{name:ic.operator},suffix:{name:ic.suffix}},superTypes:[]},PegPrimary:{name:ki.$type,properties:{},superTypes:[]},PegRule:{name:sc.$type,properties:{definition:{name:sc.definition},name:{name:sc.name}},superTypes:[]},PegSequence:{name:tg.$type,properties:{elements:{name:tg.elements,defaultValue:[]}},superTypes:[]},PegSuffix:{name:oc.$type,properties:{operator:{name:oc.operator},primary:{name:oc.primary}},superTypes:[]},Pie:{name:rn.$type,properties:{accDescr:{name:rn.accDescr},accTitle:{name:rn.accTitle},sections:{name:rn.sections,defaultValue:[]},showData:{name:rn.showData,defaultValue:!1},title:{name:rn.title}},superTypes:[]},PieSection:{name:Mo.$type,properties:{label:{name:Mo.label},value:{name:Mo.value}},superTypes:[]},Pipeline:{name:lc.$type,properties:{components:{name:lc.components,defaultValue:[]},parent:{name:lc.parent}},superTypes:[]},PipelineComponent:{name:po.$type,properties:{evolution:{name:po.evolution},label:{name:po.label},name:{name:po.name}},superTypes:[]},Radar:{name:Vr.$type,properties:{accDescr:{name:Vr.accDescr},accTitle:{name:Vr.accTitle},axes:{name:Vr.axes,defaultValue:[]},curves:{name:Vr.curves,defaultValue:[]},options:{name:Vr.options,defaultValue:[]},title:{name:Vr.title}},superTypes:[]},Railroad:{name:ga.$type,properties:{accDescr:{name:ga.accDescr},accTitle:{name:ga.accTitle},rules:{name:ga.rules,defaultValue:[]},title:{name:ga.title}},superTypes:[]},RailroadAbnf:{name:va.$type,properties:{accDescr:{name:va.accDescr},accTitle:{name:va.accTitle},rules:{name:va.rules,defaultValue:[]},title:{name:va.title}},superTypes:[]},RailroadChoiceExpr:{name:rg.$type,properties:{alternatives:{name:rg.alternatives,defaultValue:[]}},superTypes:[ar.$type]},RailroadEbnf:{name:Ta.$type,properties:{accDescr:{name:Ta.accDescr},accTitle:{name:Ta.accTitle},rules:{name:Ta.rules,defaultValue:[]},title:{name:Ta.title}},superTypes:[]},RailroadExpression:{name:ar.$type,properties:{},superTypes:[]},RailroadNonTerminalExpr:{name:ng.$type,properties:{name:{name:ng.name}},superTypes:[ar.$type]},RailroadOneOrMoreExpr:{name:ag.$type,properties:{element:{name:ag.element}},superTypes:[ar.$type]},RailroadOptionalExpr:{name:ig.$type,properties:{element:{name:ig.element}},superTypes:[ar.$type]},RailroadPeg:{name:$a.$type,properties:{accDescr:{name:$a.accDescr},accTitle:{name:$a.accTitle},rules:{name:$a.rules,defaultValue:[]},title:{name:$a.title}},superTypes:[]},RailroadRule:{name:uc.$type,properties:{definition:{name:uc.definition},name:{name:uc.name}},superTypes:[]},RailroadSequenceExpr:{name:sg.$type,properties:{elements:{name:sg.elements,defaultValue:[]}},superTypes:[ar.$type]},RailroadSpecialExpr:{name:og.$type,properties:{text:{name:og.text}},superTypes:[ar.$type]},RailroadTerminalExpr:{name:lg.$type,properties:{value:{name:lg.value}},superTypes:[ar.$type]},RailroadZeroOrMoreExpr:{name:ug.$type,properties:{element:{name:ug.element}},superTypes:[ar.$type]},Section:{name:cc.$type,properties:{classSelector:{name:cc.classSelector},name:{name:cc.name}},superTypes:[Ni.$type]},Service:{name:aa.$type,properties:{icon:{name:aa.icon},iconText:{name:aa.iconText},id:{name:aa.id},in:{name:aa.in},title:{name:aa.title}},superTypes:[]},Size:{name:fc.$type,properties:{height:{name:fc.height},width:{name:fc.width}},superTypes:[]},Statement:{name:ia.$type,properties:{},superTypes:[]},Transition:{name:Vi.$type,properties:{from:{name:Vi.from},label:{name:Vi.label},to:{name:Vi.to}},superTypes:[]},TreeNode:{name:sa.$type,properties:{classAnnotation:{name:sa.classAnnotation},descAnnotation:{name:sa.descAnnotation},iconAnnotation:{name:sa.iconAnnotation},indent:{name:sa.indent},name:{name:sa.name}},superTypes:[]},TreeView:{name:Oi.$type,properties:{accDescr:{name:Oi.accDescr},accTitle:{name:Oi.accTitle},nodes:{name:Oi.nodes,defaultValue:[]},title:{name:Oi.title}},superTypes:[]},Treemap:{name:Ra.$type,properties:{accDescr:{name:Ra.accDescr},accTitle:{name:Ra.accTitle},title:{name:Ra.title},TreemapRows:{name:Ra.TreemapRows,defaultValue:[]}},superTypes:[]},TreemapRow:{name:pc.$type,properties:{indent:{name:pc.indent},item:{name:pc.item}},superTypes:[]},Wardley:{name:Ue.$type,properties:{accDescr:{name:Ue.accDescr},accelerators:{name:Ue.accelerators,defaultValue:[]},accTitle:{name:Ue.accTitle},anchors:{name:Ue.anchors,defaultValue:[]},annotation:{name:Ue.annotation,defaultValue:[]},annotations:{name:Ue.annotations,defaultValue:[]},components:{name:Ue.components,defaultValue:[]},deaccelerators:{name:Ue.deaccelerators,defaultValue:[]},evolution:{name:Ue.evolution},evolves:{name:Ue.evolves,defaultValue:[]},links:{name:Ue.links,defaultValue:[]},notes:{name:Ue.notes,defaultValue:[]},pipelines:{name:Ue.pipelines,defaultValue:[]},size:{name:Ue.size},title:{name:Ue.title}},superTypes:[]}}}static{s(this,"MermaidAstReflection")}},Ie=new Sw,cg,mF=s(()=>cg??(cg=ze(`{"$type":"Grammar","isDeclared":true,"name":"ArchitectureGrammar","imports":[],"rules":[{"$type":"ParserRule","entry":true,"name":"Architecture","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@24"},"arguments":[],"cardinality":"*"},{"$type":"Keyword","value":"architecture-beta"},{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@24"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]}],"cardinality":"*"}]},"fragment":false,"parameters":[]},{"$type":"ParserRule","fragment":true,"name":"Statement","definition":{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"groups","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}},{"$type":"Assignment","feature":"services","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[]}},{"$type":"Assignment","feature":"junctions","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@7"},"arguments":[]}},{"$type":"Assignment","feature":"edges","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]}},{"$type":"Assignment","feature":"alignments","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"arguments":[]}}]},"entry":false,"parameters":[]},{"$type":"ParserRule","fragment":true,"name":"LeftPort","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":":"},{"$type":"Assignment","feature":"lhsDir","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@10"},"arguments":[]}}]},"entry":false,"parameters":[]},{"$type":"ParserRule","fragment":true,"name":"RightPort","definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"rhsDir","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@10"},"arguments":[]}},{"$type":"Keyword","value":":"}]},"entry":false,"parameters":[]},{"$type":"ParserRule","fragment":true,"name":"Arrow","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]},{"$type":"Assignment","feature":"lhsInto","operator":"?=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]},"cardinality":"?"},{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"--"},{"$type":"Group","elements":[{"$type":"Keyword","value":"-"},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@30"},"arguments":[]}},{"$type":"Keyword","value":"-"}]}]},{"$type":"Assignment","feature":"rhsInto","operator":"?=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]},"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[]}]},"entry":false,"parameters":[]},{"$type":"ParserRule","name":"Group","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"group"},{"$type":"Assignment","feature":"id","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@23"},"arguments":[]}},{"$type":"Assignment","feature":"icon","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@29"},"arguments":[]},"cardinality":"?"},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@30"},"arguments":[]},"cardinality":"?"},{"$type":"Group","elements":[{"$type":"Keyword","value":"in"},{"$type":"Assignment","feature":"in","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@23"},"arguments":[]}}],"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Service","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"service"},{"$type":"Assignment","feature":"id","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@23"},"arguments":[]}},{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"iconText","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@22"},"arguments":[]}},{"$type":"Assignment","feature":"icon","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@29"},"arguments":[]}}],"cardinality":"?"},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@30"},"arguments":[]},"cardinality":"?"},{"$type":"Group","elements":[{"$type":"Keyword","value":"in"},{"$type":"Assignment","feature":"in","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@23"},"arguments":[]}}],"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Junction","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"junction"},{"$type":"Assignment","feature":"id","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@23"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":"in"},{"$type":"Assignment","feature":"in","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@23"},"arguments":[]}}],"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Edge","definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"lhsId","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@23"},"arguments":[]}},{"$type":"Assignment","feature":"lhsGroup","operator":"?=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@11"},"arguments":[]},"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]},{"$type":"Assignment","feature":"rhsId","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@23"},"arguments":[]}},{"$type":"Assignment","feature":"rhsGroup","operator":"?=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@11"},"arguments":[]},"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Alignment","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"align"},{"$type":"Assignment","feature":"direction","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"row"},{"$type":"Keyword","value":"column"}]}},{"$type":"Assignment","feature":"members","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@23"},"arguments":[]}},{"$type":"Assignment","feature":"members","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@23"},"arguments":[]},"cardinality":"+"},{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"TerminalRule","name":"ARROW_DIRECTION","definition":{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"L"},"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"R"},"parenthesized":false}],"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"T"},"parenthesized":false}],"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"B"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ARROW_GROUP","definition":{"$type":"RegexToken","regex":"/\\\\{group\\\\}/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ARROW_INTO","definition":{"$type":"RegexToken","regex":"/<|>/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"ParserRule","name":"EOL","dataType":"string","definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@24"},"arguments":[],"cardinality":"+"},{"$type":"EndOfFile"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","fragment":true,"name":"TitleAndAccessibilities","definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@18"},"arguments":[]}}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[]}],"cardinality":"+"},"entry":false,"parameters":[]},{"$type":"TerminalRule","name":"BOOLEAN","type":{"$type":"ReturnType","name":"boolean"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"true"},"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"false"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"FLOAT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/[0-9]+\\\\.[0-9]+(?!\\\\.)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"INT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/0|[1-9][0-9]*(?!\\\\.)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NUMBER","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@19"},"parenthesized":false},{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@20"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"STRING","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\"|'([^'\\\\\\\\]|\\\\\\\\.)*'/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ID","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/[\\\\w]([-\\\\w]*\\\\w)?/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NEWLINE","definition":{"$type":"RegexToken","regex":"/\\\\r?\\\\n/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"WHITESPACE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]+/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"YAML","definition":{"$type":"RegexToken","regex":"/---[\\\\t ]*\\\\r?\\\\n(?:[\\\\S\\\\s]*?\\\\r?\\\\n)?---(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"DIRECTIVE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%{[\\\\S\\\\s]*?}%%(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"SINGLE_LINE_COMMENT","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%[^\\\\n\\\\r]*/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","name":"ARCH_ICON","definition":{"$type":"RegexToken","regex":"/\\\\([\\\\w-:]+\\\\)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ARCH_TITLE","definition":{"$type":"RegexToken","regex":"/\\\\[(?:\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\"|'([^'\\\\\\\\]|\\\\\\\\.)*'|[^\\\\[\\\\]\\\\r\\\\n]+)\\\\]/","parenthesized":false},"fragment":false,"hidden":false}],"interfaces":[],"types":[]}`)),"ArchitectureGrammarGrammar"),fg,hF=s(()=>fg??(fg=ze(`{"$type":"Grammar","isDeclared":true,"name":"CynefinGrammar","imports":[],"rules":[{"$type":"ParserRule","entry":true,"name":"Cynefin","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[],"cardinality":"*"},{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"cynefin-beta"},{"$type":"Keyword","value":"cynefin-beta:"}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[],"cardinality":"*"},{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[]},{"$type":"Assignment","feature":"domains","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]}},{"$type":"Assignment","feature":"transitions","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[]}],"cardinality":"*"}]},"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"DomainBlock","definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"domain","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[],"cardinality":"*"},{"$type":"Group","elements":[{"$type":"Assignment","feature":"items","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[],"cardinality":"*"}],"cardinality":"*"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"DomainItem","definition":{"$type":"Assignment","feature":"label","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]}},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Transition","definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"from","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]}},{"$type":"Keyword","value":"-->"},{"$type":"Assignment","feature":"to","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":":"},{"$type":"Assignment","feature":"label","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]}}],"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"TerminalRule","name":"DOMAIN_NAME","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"complex"},"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"complicated"},"parenthesized":false}],"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"clear"},"parenthesized":false}],"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"chaotic"},"parenthesized":false}],"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"confusion"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"ParserRule","name":"EOL","dataType":"string","definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[],"cardinality":"+"},{"$type":"EndOfFile"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","fragment":true,"name":"TitleAndAccessibilities","definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"arguments":[]}},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@10"},"arguments":[]}}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}],"cardinality":"+"},"entry":false,"parameters":[]},{"$type":"TerminalRule","name":"BOOLEAN","type":{"$type":"ReturnType","name":"boolean"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"true"},"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"false"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"FLOAT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/[0-9]+\\\\.[0-9]+(?!\\\\.)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"INT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/0|[1-9][0-9]*(?!\\\\.)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NUMBER","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@11"},"parenthesized":false},{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@12"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"STRING","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\"|'([^'\\\\\\\\]|\\\\\\\\.)*'/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ID","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/[\\\\w]([-\\\\w]*\\\\w)?/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NEWLINE","definition":{"$type":"RegexToken","regex":"/\\\\r?\\\\n/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"WHITESPACE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]+/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"YAML","definition":{"$type":"RegexToken","regex":"/---[\\\\t ]*\\\\r?\\\\n(?:[\\\\S\\\\s]*?\\\\r?\\\\n)?---(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"DIRECTIVE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%{[\\\\S\\\\s]*?}%%(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"SINGLE_LINE_COMMENT","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%[^\\\\n\\\\r]*/","parenthesized":false},"fragment":false}],"interfaces":[],"types":[]}`)),"CynefinGrammarGrammar"),pg,yF=s(()=>pg??(pg=ze('{"$type":"Grammar","isDeclared":true,"name":"EventModeling","interfaces":[{"$type":"Interface","name":"Common","attributes":[{"$type":"TypeAttribute","name":"accDescr","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"accTitle","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"title","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}}],"superTypes":[]}],"rules":[{"$type":"ParserRule","entry":true,"name":"EventModel","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"eventmodeling"},{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@21"},"arguments":[]}},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@22"},"arguments":[]}},{"$type":"Assignment","feature":"modelEntities","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"arguments":[]}},{"$type":"Assignment","feature":"frames","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]}},{"$type":"Assignment","feature":"dataEntities","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@10"},"arguments":[]}},{"$type":"Assignment","feature":"noteEntities","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@11"},"arguments":[]}},{"$type":"Assignment","feature":"gwtEntities","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]}}],"cardinality":"*"}]},"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EmModelEntityType","dataType":"string","definition":{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"rmo"},{"$type":"Keyword","value":"readmodel"},{"$type":"Keyword","value":"ui"},{"$type":"Keyword","value":"cmd"},{"$type":"Keyword","value":"command"},{"$type":"Keyword","value":"evt"},{"$type":"Keyword","value":"event"},{"$type":"Keyword","value":"pcr"},{"$type":"Keyword","value":"processor"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EmDataType","dataType":"string","definition":{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"json"},{"$type":"Keyword","value":"jsobj"},{"$type":"Keyword","value":"figma"},{"$type":"Keyword","value":"salt"},{"$type":"Keyword","value":"uri"},{"$type":"Keyword","value":"md"},{"$type":"Keyword","value":"html"},{"$type":"Keyword","value":"text"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","fragment":true,"name":"EmDataInline","definition":{"$type":"Group","elements":[{"$type":"Group","elements":[{"$type":"Keyword","value":"`"},{"$type":"Assignment","feature":"dataType","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]}},{"$type":"Keyword","value":"`"}],"cardinality":"?"},{"$type":"Assignment","feature":"dataInlineValue","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@18"},"arguments":[]}}]},"entry":false,"parameters":[]},{"$type":"ParserRule","fragment":true,"name":"EmDataBlock","definition":{"$type":"Group","elements":[{"$type":"Group","elements":[{"$type":"Keyword","value":"`"},{"$type":"Assignment","feature":"dataType","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]}},{"$type":"Keyword","value":"`"}],"cardinality":"?"},{"$type":"Assignment","feature":"dataBlockValue","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]}}]},"entry":false,"parameters":[]},{"$type":"ParserRule","name":"QualifiedName","dataType":"string","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]},{"$type":"Group","elements":[{"$type":"Keyword","value":"."},{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]}],"cardinality":"*"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EmTimeFrame","definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"tf"},{"$type":"Keyword","value":"timeframe"}]},{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@15"},"arguments":[]}},{"$type":"Assignment","feature":"modelEntityType","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]}},{"$type":"Assignment","feature":"entityIdentifier","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":"->>"},{"$type":"Assignment","feature":"sourceFrames","operator":"+=","terminal":{"$type":"CrossReference","type":{"$ref":"#/rules@8"},"terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@15"},"arguments":[]},"deprecatedSyntax":false,"isMulti":false}}],"cardinality":"*"},{"$type":"Group","elements":[{"$type":"Keyword","value":"[["},{"$type":"Assignment","feature":"dataReference","operator":"=","terminal":{"$type":"CrossReference","type":{"$ref":"#/rules@10"},"terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]},"deprecatedSyntax":false,"isMulti":false}},{"$type":"Keyword","value":"]]"}],"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[],"cardinality":"?"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EmResetFrame","definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"rf"},{"$type":"Keyword","value":"resetframe"}]},{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@15"},"arguments":[]}},{"$type":"Assignment","feature":"modelEntityType","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]}},{"$type":"Assignment","feature":"entityIdentifier","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":"->>"},{"$type":"Assignment","feature":"sourceFrames","operator":"+=","terminal":{"$type":"CrossReference","type":{"$ref":"#/rules@8"},"terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@15"},"arguments":[]},"deprecatedSyntax":false,"isMulti":false}}],"cardinality":"*"},{"$type":"Group","elements":[{"$type":"Keyword","value":"[["},{"$type":"Assignment","feature":"dataReference","operator":"=","terminal":{"$type":"CrossReference","type":{"$ref":"#/rules@10"},"terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]},"deprecatedSyntax":false,"isMulti":false}},{"$type":"Keyword","value":"]]"}],"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[],"cardinality":"?"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EmFrame","definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@7"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EmModelEntity","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"entity"},{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EmDataEntity","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"data"},{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EmNoteEntity","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"note"},{"$type":"Assignment","feature":"sourceFrame","operator":"=","terminal":{"$type":"CrossReference","type":{"$ref":"#/rules@8"},"terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@15"},"arguments":[]},"deprecatedSyntax":false,"isMulti":false}},{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EmGwt","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"gwt"},{"$type":"Assignment","feature":"sourceFrame","operator":"=","terminal":{"$type":"CrossReference","type":{"$ref":"#/rules@8"},"terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@15"},"arguments":[]},"deprecatedSyntax":false,"isMulti":false}},{"$type":"Keyword","value":"given"},{"$type":"Assignment","feature":"givenStatements","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[]},"cardinality":"+"},{"$type":"Group","elements":[{"$type":"Keyword","value":"when"},{"$type":"Assignment","feature":"whenStatements","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[]},"cardinality":"+"}],"cardinality":"?"},{"$type":"Keyword","value":"then"},{"$type":"Assignment","feature":"thenStatements","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[]},"cardinality":"+"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EmGwtStatement","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]},{"$type":"Assignment","feature":"entityIdentifier","operator":"=","terminal":{"$type":"CrossReference","type":{"$ref":"#/rules@9"},"terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]},"deprecatedSyntax":false,"isMulti":false}}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EM_EID","dataType":"string","definition":{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EM_FI","dataType":"string","definition":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]},"entry":false,"fragment":false,"parameters":[]},{"$type":"TerminalRule","name":"EM_ID","definition":{"$type":"RegexToken","regex":"/[_a-zA-Z][\\\\w_]*/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"EM_FID","definition":{"$type":"RegexToken","regex":"/\\\\d{1,3}/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"EM_DATA_INLINE","definition":{"$type":"RegexToken","regex":"/\\\\{(.*)\\\\}|\\"(.*)\\"|\'(.*)\'/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"EM_DATA_BLOCK","definition":{"$type":"RegexToken","regex":"/\\\\{[\\\\t ]*\\\\r?\\\\n(?:[\\\\S\\\\s]*?\\\\r?\\\\n)?\\\\}(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"EM_ACC_DESCR","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"EM_ACC_TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"EM_TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"EM_WS","definition":{"$type":"RegexToken","regex":"/\\\\s+/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"EM_YAML","definition":{"$type":"RegexToken","regex":"/---[\\\\t ]*\\\\r?\\\\n(?:[\\\\S\\\\s]*?\\\\r?\\\\n)?---(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"EM_DIRECTIVE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%{[\\\\S\\\\s]*?}%%(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"EM_SINGLE_LINE_COMMENT","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%[^\\\\n\\\\r]*/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"EM_ML_COMMENT","definition":{"$type":"RegexToken","regex":"/\\\\/\\\\*[\\\\s\\\\S]*?\\\\*\\\\//","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"EM_SL_COMMENT","definition":{"$type":"RegexToken","regex":"/\\\\/\\\\/[^\\\\n\\\\r]*/","parenthesized":false},"fragment":false}],"imports":[],"types":[]}')),"EventModelingGrammar"),dg,gF=s(()=>dg??(dg=ze(`{"$type":"Grammar","isDeclared":true,"name":"GitGraphGrammar","imports":[],"rules":[{"$type":"ParserRule","entry":true,"name":"GitGraph","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[],"cardinality":"*"},{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"gitGraph"},{"$type":"Group","elements":[{"$type":"Keyword","value":"gitGraph"},{"$type":"Keyword","value":":"}]},{"$type":"Keyword","value":"gitGraph:"},{"$type":"Group","elements":[{"$type":"Keyword","value":"gitGraph"},{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]},{"$type":"Keyword","value":":"}]}]},{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"arguments":[]},{"$type":"Assignment","feature":"statements","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]}}],"cardinality":"*"}]},"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Statement","definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@7"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Direction","definition":{"$type":"Assignment","feature":"dir","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"LR"},{"$type":"Keyword","value":"TB"},{"$type":"Keyword","value":"BT"}]}},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Commit","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"commit"},{"$type":"Alternatives","elements":[{"$type":"Group","elements":[{"$type":"Keyword","value":"id:"},{"$type":"Assignment","feature":"id","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Keyword","value":"msg:","cardinality":"?"},{"$type":"Assignment","feature":"message","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Keyword","value":"tag:"},{"$type":"Assignment","feature":"tags","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Keyword","value":"type:"},{"$type":"Assignment","feature":"type","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"NORMAL"},{"$type":"Keyword","value":"REVERSE"},{"$type":"Keyword","value":"HIGHLIGHT"}]}}]}],"cardinality":"*"},{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Branch","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"branch"},{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@24"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}]}},{"$type":"Group","elements":[{"$type":"Keyword","value":"order:"},{"$type":"Assignment","feature":"order","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@15"},"arguments":[]}}],"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Merge","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"merge"},{"$type":"Assignment","feature":"branch","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@24"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}]}},{"$type":"Alternatives","elements":[{"$type":"Group","elements":[{"$type":"Keyword","value":"id:"},{"$type":"Assignment","feature":"id","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Keyword","value":"tag:"},{"$type":"Assignment","feature":"tags","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Keyword","value":"type:"},{"$type":"Assignment","feature":"type","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"NORMAL"},{"$type":"Keyword","value":"REVERSE"},{"$type":"Keyword","value":"HIGHLIGHT"}]}}]}],"cardinality":"*"},{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Checkout","definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"checkout"},{"$type":"Keyword","value":"switch"}]},{"$type":"Assignment","feature":"branch","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@24"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"CherryPicking","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"cherry-pick"},{"$type":"Alternatives","elements":[{"$type":"Group","elements":[{"$type":"Keyword","value":"id:"},{"$type":"Assignment","feature":"id","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Keyword","value":"tag:"},{"$type":"Assignment","feature":"tags","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Keyword","value":"parent:"},{"$type":"Assignment","feature":"parent","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}}]}],"cardinality":"*"},{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EOL","dataType":"string","definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[],"cardinality":"+"},{"$type":"EndOfFile"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","fragment":true,"name":"TitleAndAccessibilities","definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@11"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]}},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[]}}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]}],"cardinality":"+"},"entry":false,"parameters":[]},{"$type":"TerminalRule","name":"BOOLEAN","type":{"$type":"ReturnType","name":"boolean"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"true"},"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"false"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"FLOAT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/[0-9]+\\\\.[0-9]+(?!\\\\.)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"INT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/0|[1-9][0-9]*(?!\\\\.)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NUMBER","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@14"},"parenthesized":false},{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@15"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"STRING","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\"|'([^'\\\\\\\\]|\\\\\\\\.)*'/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ID","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/[\\\\w]([-\\\\w]*\\\\w)?/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NEWLINE","definition":{"$type":"RegexToken","regex":"/\\\\r?\\\\n/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"WHITESPACE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]+/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"YAML","definition":{"$type":"RegexToken","regex":"/---[\\\\t ]*\\\\r?\\\\n(?:[\\\\S\\\\s]*?\\\\r?\\\\n)?---(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"DIRECTIVE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%{[\\\\S\\\\s]*?}%%(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"SINGLE_LINE_COMMENT","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%[^\\\\n\\\\r]*/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","name":"REFERENCE","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/\\\\w([-\\\\./\\\\w]*[-\\\\w])?/","parenthesized":false},"fragment":false,"hidden":false}],"interfaces":[],"types":[]}`)),"GitGraphGrammarGrammar"),mg,vF=s(()=>mg??(mg=ze(`{"$type":"Grammar","isDeclared":true,"name":"InfoGrammar","imports":[],"rules":[{"$type":"ParserRule","entry":true,"name":"Info","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[],"cardinality":"*"},{"$type":"Keyword","value":"info"},{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[],"cardinality":"*"},{"$type":"Group","elements":[{"$type":"Keyword","value":"showInfo"},{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[],"cardinality":"*"}],"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[],"cardinality":"?"}]},"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EOL","dataType":"string","definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[],"cardinality":"+"},{"$type":"EndOfFile"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","fragment":true,"name":"TitleAndAccessibilities","definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[]}}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]}],"cardinality":"+"},"entry":false,"parameters":[]},{"$type":"TerminalRule","name":"BOOLEAN","type":{"$type":"ReturnType","name":"boolean"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"true"},"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"false"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"FLOAT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/[0-9]+\\\\.[0-9]+(?!\\\\.)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"INT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/0|[1-9][0-9]*(?!\\\\.)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NUMBER","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@7"},"parenthesized":false},{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@8"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"STRING","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\"|'([^'\\\\\\\\]|\\\\\\\\.)*'/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ID","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/[\\\\w]([-\\\\w]*\\\\w)?/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NEWLINE","definition":{"$type":"RegexToken","regex":"/\\\\r?\\\\n/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"WHITESPACE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]+/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"YAML","definition":{"$type":"RegexToken","regex":"/---[\\\\t ]*\\\\r?\\\\n(?:[\\\\S\\\\s]*?\\\\r?\\\\n)?---(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"DIRECTIVE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%{[\\\\S\\\\s]*?}%%(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"SINGLE_LINE_COMMENT","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%[^\\\\n\\\\r]*/","parenthesized":false},"fragment":false}],"interfaces":[],"types":[]}`)),"InfoGrammarGrammar"),hg,TF=s(()=>hg??(hg=ze(`{"$type":"Grammar","isDeclared":true,"name":"PacketGrammar","imports":[],"rules":[{"$type":"ParserRule","entry":true,"name":"Packet","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[],"cardinality":"*"},{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"packet"},{"$type":"Keyword","value":"packet-beta"}]},{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[]},{"$type":"Assignment","feature":"blocks","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[]}],"cardinality":"*"}]},"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"PacketBlock","definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Group","elements":[{"$type":"Assignment","feature":"start","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":"-"},{"$type":"Assignment","feature":"end","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"arguments":[]}}],"cardinality":"?"}]},{"$type":"Group","elements":[{"$type":"Keyword","value":"+"},{"$type":"Assignment","feature":"bits","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"arguments":[]}}]}]},{"$type":"Keyword","value":":"},{"$type":"Assignment","feature":"label","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@11"},"arguments":[]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EOL","dataType":"string","definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[],"cardinality":"+"},{"$type":"EndOfFile"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","fragment":true,"name":"TitleAndAccessibilities","definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[]}},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@7"},"arguments":[]}}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]}],"cardinality":"+"},"entry":false,"parameters":[]},{"$type":"TerminalRule","name":"BOOLEAN","type":{"$type":"ReturnType","name":"boolean"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"true"},"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"false"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"FLOAT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/[0-9]+\\\\.[0-9]+(?!\\\\.)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"INT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/0|[1-9][0-9]*(?!\\\\.)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NUMBER","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@8"},"parenthesized":false},{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@9"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"STRING","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\"|'([^'\\\\\\\\]|\\\\\\\\.)*'/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ID","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/[\\\\w]([-\\\\w]*\\\\w)?/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NEWLINE","definition":{"$type":"RegexToken","regex":"/\\\\r?\\\\n/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"WHITESPACE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]+/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"YAML","definition":{"$type":"RegexToken","regex":"/---[\\\\t ]*\\\\r?\\\\n(?:[\\\\S\\\\s]*?\\\\r?\\\\n)?---(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"DIRECTIVE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%{[\\\\S\\\\s]*?}%%(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"SINGLE_LINE_COMMENT","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%[^\\\\n\\\\r]*/","parenthesized":false},"fragment":false}],"interfaces":[],"types":[]}`)),"PacketGrammarGrammar"),yg,$F=s(()=>yg??(yg=ze(`{"$type":"Grammar","isDeclared":true,"name":"PieGrammar","imports":[],"rules":[{"$type":"ParserRule","entry":true,"name":"Pie","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[],"cardinality":"*"},{"$type":"Keyword","value":"pie"},{"$type":"Assignment","feature":"showData","operator":"?=","terminal":{"$type":"Keyword","value":"showData"},"cardinality":"?"},{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[]},{"$type":"Assignment","feature":"sections","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[]}],"cardinality":"*"}]},"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"PieSection","definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"label","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]}},{"$type":"Keyword","value":":"},{"$type":"Assignment","feature":"value","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"TerminalRule","name":"FLOAT_PIE","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/-?[0-9]+\\\\.[0-9]+(?!\\\\.)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"INT_PIE","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/-?(0|[1-9][0-9]*)(?!\\\\.)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NUMBER_PIE","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@2"},"parenthesized":false},{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@3"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"ParserRule","name":"EOL","dataType":"string","definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[],"cardinality":"+"},{"$type":"EndOfFile"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","fragment":true,"name":"TitleAndAccessibilities","definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"arguments":[]}},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@10"},"arguments":[]}}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}],"cardinality":"+"},"entry":false,"parameters":[]},{"$type":"TerminalRule","name":"BOOLEAN","type":{"$type":"ReturnType","name":"boolean"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"true"},"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"false"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"FLOAT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/[0-9]+\\\\.[0-9]+(?!\\\\.)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"INT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/0|[1-9][0-9]*(?!\\\\.)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NUMBER","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@11"},"parenthesized":false},{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@12"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"STRING","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\"|'([^'\\\\\\\\]|\\\\\\\\.)*'/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ID","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/[\\\\w]([-\\\\w]*\\\\w)?/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NEWLINE","definition":{"$type":"RegexToken","regex":"/\\\\r?\\\\n/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"WHITESPACE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]+/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"YAML","definition":{"$type":"RegexToken","regex":"/---[\\\\t ]*\\\\r?\\\\n(?:[\\\\S\\\\s]*?\\\\r?\\\\n)?---(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"DIRECTIVE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%{[\\\\S\\\\s]*?}%%(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"SINGLE_LINE_COMMENT","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%[^\\\\n\\\\r]*/","parenthesized":false},"fragment":false}],"interfaces":[],"types":[]}`)),"PieGrammarGrammar"),gg,RF=s(()=>gg??(gg=ze(`{"$type":"Grammar","isDeclared":true,"name":"RadarGrammar","imports":[],"rules":[{"$type":"ParserRule","entry":true,"name":"Radar","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[],"cardinality":"*"},{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"radar-beta"},{"$type":"Keyword","value":"radar-beta:"},{"$type":"Group","elements":[{"$type":"Keyword","value":"radar-beta"},{"$type":"Keyword","value":":"}]}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[],"cardinality":"*"},{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@10"},"arguments":[]},{"$type":"Group","elements":[{"$type":"Keyword","value":"axis"},{"$type":"Assignment","feature":"axes","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":","},{"$type":"Assignment","feature":"axes","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]}}],"cardinality":"*"}]},{"$type":"Group","elements":[{"$type":"Keyword","value":"curve"},{"$type":"Assignment","feature":"curves","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":","},{"$type":"Assignment","feature":"curves","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[]}}],"cardinality":"*"}]},{"$type":"Group","elements":[{"$type":"Assignment","feature":"options","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@7"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":","},{"$type":"Assignment","feature":"options","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@7"},"arguments":[]}}],"cardinality":"*"}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]}],"cardinality":"*"}]},"fragment":false,"parameters":[]},{"$type":"ParserRule","fragment":true,"name":"Label","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"["},{"$type":"Assignment","feature":"label","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@18"},"arguments":[]}},{"$type":"Keyword","value":"]"}]},"entry":false,"parameters":[]},{"$type":"ParserRule","name":"Axis","definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[],"cardinality":"?"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Curve","definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[],"cardinality":"?"},{"$type":"Keyword","value":"{"},{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]},{"$type":"Keyword","value":"}"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","fragment":true,"name":"Entries","definition":{"$type":"Alternatives","elements":[{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[],"cardinality":"*"},{"$type":"Assignment","feature":"entries","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":","},{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[],"cardinality":"*"},{"$type":"Assignment","feature":"entries","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[]}}],"cardinality":"*"},{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[],"cardinality":"*"}]},{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[],"cardinality":"*"},{"$type":"Assignment","feature":"entries","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":","},{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[],"cardinality":"*"},{"$type":"Assignment","feature":"entries","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}}],"cardinality":"*"},{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[],"cardinality":"*"}]}]},"entry":false,"parameters":[]},{"$type":"ParserRule","name":"DetailedEntry","returnType":{"$ref":"#/interfaces@0"},"definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"axis","operator":"=","terminal":{"$type":"CrossReference","type":{"$ref":"#/rules@2"},"terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]},"deprecatedSyntax":false,"isMulti":false}},{"$type":"Keyword","value":":","cardinality":"?"},{"$type":"Assignment","feature":"value","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"NumberEntry","returnType":{"$ref":"#/interfaces@0"},"definition":{"$type":"Assignment","feature":"value","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Option","definition":{"$type":"Alternatives","elements":[{"$type":"Group","elements":[{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"Keyword","value":"showLegend"}},{"$type":"Assignment","feature":"value","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@11"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"Keyword","value":"ticks"}},{"$type":"Assignment","feature":"value","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"Keyword","value":"max"}},{"$type":"Assignment","feature":"value","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"Keyword","value":"min"}},{"$type":"Assignment","feature":"value","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"Keyword","value":"graticule"}},{"$type":"Assignment","feature":"value","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]}}]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"TerminalRule","name":"GRATICULE","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"circle"},"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"polygon"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"ParserRule","name":"EOL","dataType":"string","definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[],"cardinality":"+"},{"$type":"EndOfFile"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","fragment":true,"name":"TitleAndAccessibilities","definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[]}},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]}}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"arguments":[]}],"cardinality":"+"},"entry":false,"parameters":[]},{"$type":"TerminalRule","name":"BOOLEAN","type":{"$type":"ReturnType","name":"boolean"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"true"},"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"false"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"FLOAT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/[0-9]+\\\\.[0-9]+(?!\\\\.)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"INT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/0|[1-9][0-9]*(?!\\\\.)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NUMBER","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@15"},"parenthesized":false},{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@16"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"STRING","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\"|'([^'\\\\\\\\]|\\\\\\\\.)*'/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ID","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/[\\\\w]([-\\\\w]*\\\\w)?/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NEWLINE","definition":{"$type":"RegexToken","regex":"/\\\\r?\\\\n/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"WHITESPACE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]+/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"YAML","definition":{"$type":"RegexToken","regex":"/---[\\\\t ]*\\\\r?\\\\n(?:[\\\\S\\\\s]*?\\\\r?\\\\n)?---(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"DIRECTIVE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%{[\\\\S\\\\s]*?}%%(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"SINGLE_LINE_COMMENT","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%[^\\\\n\\\\r]*/","parenthesized":false},"fragment":false}],"interfaces":[{"$type":"Interface","name":"Entry","attributes":[{"$type":"TypeAttribute","name":"axis","isOptional":true,"type":{"$type":"ReferenceType","referenceType":{"$type":"SimpleType","typeRef":{"$ref":"#/rules@2"}},"isMulti":false}},{"$type":"TypeAttribute","name":"value","type":{"$type":"SimpleType","primitiveType":"number"},"isOptional":false}],"superTypes":[]}],"types":[]}`)),"RadarGrammarGrammar"),vg,AF=s(()=>vg??(vg=ze('{"$type":"Grammar","isDeclared":true,"name":"RailroadAbnfGrammar","rules":[{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ABNF_RULENAME","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/[A-Za-z][A-Za-z0-9-]*/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ABNF_STRING","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/\\"[^\\"]*\\"/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ABNF_NUMVAL","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/%[xXdDbB][0-9A-Fa-f]+(?:-[0-9A-Fa-f]+|\\\\.[0-9A-Fa-f]+)*/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ABNF_REPEAT","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/[0-9]*\\\\*[0-9]*/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ABNF_EXACT_REPEAT","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/[0-9]+/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"ABNF_WHITESPACE","definition":{"$type":"RegexToken","regex":"/[\\\\t \\\\r\\\\n]+/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"ABNF_YAML","definition":{"$type":"RegexToken","regex":"/---[\\\\t ]*\\\\r?\\\\n(?:[\\\\S\\\\s]*?\\\\r?\\\\n)?---(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"ABNF_DIRECTIVE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%{[\\\\S\\\\s]*?}%%(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"ABNF_SINGLE_LINE_COMMENT","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%[^\\\\n\\\\r]*/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"ABNF_COMMENT","definition":{"$type":"RegexToken","regex":"/;[^\\\\n\\\\r]*/","parenthesized":false},"fragment":false},{"$type":"ParserRule","entry":true,"name":"RailroadAbnf","returnType":{"$ref":"#/interfaces@0"},"definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"railroad-abnf-beta"},{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@0"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]}},{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]}}],"cardinality":"*"},{"$type":"Assignment","feature":"rules","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]},"cardinality":"*"}]},"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"AbnfRule","returnType":{"$ref":"#/interfaces@1"},"definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[]}},{"$type":"Keyword","value":"="},{"$type":"Assignment","feature":"definition","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@15"},"arguments":[]}},{"$type":"Keyword","value":";"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"AbnfAlternation","returnType":{"$ref":"#/interfaces@2"},"definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"alternatives","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":"/"},{"$type":"Assignment","feature":"alternatives","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[]}}],"cardinality":"*"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"AbnfConcatenation","returnType":{"$ref":"#/interfaces@3"},"definition":{"$type":"Assignment","feature":"elements","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]},"cardinality":"+"},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"AbnfElement","returnType":{"$ref":"#/interfaces@4"},"definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"repeat","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[]}},{"$type":"Assignment","feature":"repeat","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@7"},"arguments":[]}}],"cardinality":"?"},{"$type":"Assignment","feature":"primary","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@18"},"arguments":[]}}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"AbnfPrimary","returnType":{"$ref":"#/interfaces@5"},"definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@21"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@22"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@23"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"AbnfStringLiteral","returnType":{"$ref":"#/interfaces@6"},"definition":{"$type":"Assignment","feature":"value","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]}},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"AbnfNumVal","returnType":{"$ref":"#/interfaces@7"},"definition":{"$type":"Assignment","feature":"value","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"AbnfRuleName","returnType":{"$ref":"#/interfaces@8"},"definition":{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[]}},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"AbnfGroup","returnType":{"$ref":"#/interfaces@9"},"definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"("},{"$type":"Assignment","feature":"element","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@15"},"arguments":[]}},{"$type":"Keyword","value":")"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"AbnfOptionalGroup","returnType":{"$ref":"#/interfaces@10"},"definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"["},{"$type":"Assignment","feature":"element","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@15"},"arguments":[]}},{"$type":"Keyword","value":"]"}]},"entry":false,"fragment":false,"parameters":[]}],"interfaces":[{"$type":"Interface","name":"RailroadAbnf","attributes":[{"$type":"TypeAttribute","name":"title","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"accTitle","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"accDescr","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"rules","type":{"$type":"ArrayType","elementType":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@1"}}},"isOptional":false}],"superTypes":[]},{"$type":"Interface","name":"AbnfRule","attributes":[{"$type":"TypeAttribute","name":"name","type":{"$type":"SimpleType","primitiveType":"string"},"isOptional":false},{"$type":"TypeAttribute","name":"definition","type":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@2"}},"isOptional":false}],"superTypes":[]},{"$type":"Interface","name":"AbnfAlternation","attributes":[{"$type":"TypeAttribute","name":"alternatives","type":{"$type":"ArrayType","elementType":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@3"}}},"isOptional":false}],"superTypes":[]},{"$type":"Interface","name":"AbnfConcatenation","attributes":[{"$type":"TypeAttribute","name":"elements","type":{"$type":"ArrayType","elementType":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@4"}}},"isOptional":false}],"superTypes":[]},{"$type":"Interface","name":"AbnfElement","attributes":[{"$type":"TypeAttribute","name":"repeat","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"primary","type":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@5"}},"isOptional":false}],"superTypes":[]},{"$type":"Interface","name":"AbnfPrimary","attributes":[],"superTypes":[]},{"$type":"Interface","name":"AbnfStringLiteral","superTypes":[{"$ref":"#/interfaces@5"}],"attributes":[{"$type":"TypeAttribute","name":"value","type":{"$type":"SimpleType","primitiveType":"string"},"isOptional":false}]},{"$type":"Interface","name":"AbnfNumVal","superTypes":[{"$ref":"#/interfaces@5"}],"attributes":[{"$type":"TypeAttribute","name":"value","type":{"$type":"SimpleType","primitiveType":"string"},"isOptional":false}]},{"$type":"Interface","name":"AbnfRuleName","superTypes":[{"$ref":"#/interfaces@5"}],"attributes":[{"$type":"TypeAttribute","name":"name","type":{"$type":"SimpleType","primitiveType":"string"},"isOptional":false}]},{"$type":"Interface","name":"AbnfGroup","superTypes":[{"$ref":"#/interfaces@5"}],"attributes":[{"$type":"TypeAttribute","name":"element","type":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@2"}},"isOptional":false}]},{"$type":"Interface","name":"AbnfOptionalGroup","superTypes":[{"$ref":"#/interfaces@5"}],"attributes":[{"$type":"TypeAttribute","name":"element","type":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@2"}},"isOptional":false}]}],"imports":[],"types":[]}')),"RailroadAbnfGrammarGrammar"),Tg,EF=s(()=>Tg??(Tg=ze(`{"$type":"Grammar","isDeclared":true,"name":"RailroadEbnfGrammar","rules":[{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"EBNF_ID","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/[A-Z_a-z][\\\\w-]*/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"EBNF_STRING","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\"|'([^'\\\\\\\\]|\\\\\\\\.)*'/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"EBNF_SPECIAL_SEQUENCE","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/\\\\?(?=[^?;]*[^?\\\\s;][^?;]*\\\\?)[^?;]*\\\\?/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"EBNF_WHITESPACE","definition":{"$type":"RegexToken","regex":"/[\\\\t \\\\r\\\\n]+/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"EBNF_YAML","definition":{"$type":"RegexToken","regex":"/---[\\\\t ]*\\\\r?\\\\n(?:[\\\\S\\\\s]*?\\\\r?\\\\n)?---(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"EBNF_DIRECTIVE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%{[\\\\S\\\\s]*?}%%(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"EBNF_SINGLE_LINE_COMMENT","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%[^\\\\n\\\\r]*/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"EBNF_BLOCK_COMMENT","definition":{"$type":"RegexToken","regex":"/\\\\/\\\\*[\\\\s\\\\S]*?\\\\*\\\\//","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"EBNF_ISO_COMMENT","definition":{"$type":"RegexToken","regex":"/\\\\(\\\\*[\\\\s\\\\S]*?\\\\*\\\\)/","parenthesized":false},"fragment":false},{"$type":"ParserRule","entry":true,"name":"RailroadEbnf","returnType":{"$ref":"#/interfaces@0"},"definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"railroad-ebnf-beta"},{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@0"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]}},{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]}}],"cardinality":"*"},{"$type":"Assignment","feature":"rules","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[]},"cardinality":"*"}]},"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EbnfRule","returnType":{"$ref":"#/interfaces@1"},"definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[]}},{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"="},{"$type":"Keyword","value":"::="}]},{"$type":"Assignment","feature":"definition","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]}},{"$type":"Keyword","value":";"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EbnfChoice","returnType":{"$ref":"#/interfaces@2"},"definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"alternatives","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@15"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":"|"},{"$type":"Assignment","feature":"alternatives","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@15"},"arguments":[]}}],"cardinality":"*"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EbnfSequence","returnType":{"$ref":"#/interfaces@3"},"definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"elements","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":",","cardinality":"?"},{"$type":"Assignment","feature":"elements","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[]}}],"cardinality":"*"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EbnfTerm","returnType":{"$ref":"#/interfaces@4"},"definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"base","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}},{"$type":"Assignment","feature":"postfixes","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@24"},"arguments":[]},"cardinality":"*"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EbnfPrimary","returnType":{"$ref":"#/interfaces@5"},"definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@18"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@21"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@22"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@23"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EbnfTerminal","returnType":{"$ref":"#/interfaces@7"},"definition":{"$type":"Assignment","feature":"value","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]}},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EbnfNonTerminal","returnType":{"$ref":"#/interfaces@8"},"definition":{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[]}},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EbnfSpecial","returnType":{"$ref":"#/interfaces@9"},"definition":{"$type":"Assignment","feature":"text","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EbnfGroup","returnType":{"$ref":"#/interfaces@10"},"definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"("},{"$type":"Assignment","feature":"element","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]}},{"$type":"Keyword","value":")"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EbnfOptional","returnType":{"$ref":"#/interfaces@11"},"definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"["},{"$type":"Assignment","feature":"element","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]}},{"$type":"Keyword","value":"]"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EbnfRepetition","returnType":{"$ref":"#/interfaces@12"},"definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"{"},{"$type":"Assignment","feature":"element","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]}},{"$type":"Keyword","value":"}"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EbnfPostfix","returnType":{"$ref":"#/interfaces@6"},"definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@25"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@26"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@27"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@28"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EbnfOptionalPostfix","returnType":{"$ref":"#/interfaces@13"},"definition":{"$type":"Assignment","feature":"operator","operator":"=","terminal":{"$type":"Keyword","value":"?"}},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EbnfZeroOrMorePostfix","returnType":{"$ref":"#/interfaces@14"},"definition":{"$type":"Assignment","feature":"operator","operator":"=","terminal":{"$type":"Keyword","value":"*"}},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EbnfOneOrMorePostfix","returnType":{"$ref":"#/interfaces@15"},"definition":{"$type":"Assignment","feature":"operator","operator":"=","terminal":{"$type":"Keyword","value":"+"}},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EbnfExceptionPostfix","returnType":{"$ref":"#/interfaces@16"},"definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"-"},{"$type":"Assignment","feature":"except","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}}]},"entry":false,"fragment":false,"parameters":[]}],"interfaces":[{"$type":"Interface","name":"RailroadEbnf","attributes":[{"$type":"TypeAttribute","name":"title","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"accTitle","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"accDescr","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"rules","type":{"$type":"ArrayType","elementType":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@1"}}},"isOptional":false}],"superTypes":[]},{"$type":"Interface","name":"EbnfRule","attributes":[{"$type":"TypeAttribute","name":"name","type":{"$type":"SimpleType","primitiveType":"string"},"isOptional":false},{"$type":"TypeAttribute","name":"definition","type":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@2"}},"isOptional":false}],"superTypes":[]},{"$type":"Interface","name":"EbnfChoice","attributes":[{"$type":"TypeAttribute","name":"alternatives","type":{"$type":"ArrayType","elementType":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@3"}}},"isOptional":false}],"superTypes":[]},{"$type":"Interface","name":"EbnfSequence","attributes":[{"$type":"TypeAttribute","name":"elements","type":{"$type":"ArrayType","elementType":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@4"}}},"isOptional":false}],"superTypes":[]},{"$type":"Interface","name":"EbnfTerm","attributes":[{"$type":"TypeAttribute","name":"base","type":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@5"}},"isOptional":false},{"$type":"TypeAttribute","name":"postfixes","type":{"$type":"ArrayType","elementType":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@6"}}},"isOptional":false}],"superTypes":[]},{"$type":"Interface","name":"EbnfPrimary","attributes":[],"superTypes":[]},{"$type":"Interface","name":"EbnfPostfix","attributes":[],"superTypes":[]},{"$type":"Interface","name":"EbnfTerminal","superTypes":[{"$ref":"#/interfaces@5"}],"attributes":[{"$type":"TypeAttribute","name":"value","type":{"$type":"SimpleType","primitiveType":"string"},"isOptional":false}]},{"$type":"Interface","name":"EbnfNonTerminal","superTypes":[{"$ref":"#/interfaces@5"}],"attributes":[{"$type":"TypeAttribute","name":"name","type":{"$type":"SimpleType","primitiveType":"string"},"isOptional":false}]},{"$type":"Interface","name":"EbnfSpecial","superTypes":[{"$ref":"#/interfaces@5"}],"attributes":[{"$type":"TypeAttribute","name":"text","type":{"$type":"SimpleType","primitiveType":"string"},"isOptional":false}]},{"$type":"Interface","name":"EbnfGroup","superTypes":[{"$ref":"#/interfaces@5"}],"attributes":[{"$type":"TypeAttribute","name":"element","type":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@2"}},"isOptional":false}]},{"$type":"Interface","name":"EbnfOptional","superTypes":[{"$ref":"#/interfaces@5"}],"attributes":[{"$type":"TypeAttribute","name":"element","type":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@2"}},"isOptional":false}]},{"$type":"Interface","name":"EbnfRepetition","superTypes":[{"$ref":"#/interfaces@5"}],"attributes":[{"$type":"TypeAttribute","name":"element","type":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@2"}},"isOptional":false}]},{"$type":"Interface","name":"EbnfOptionalPostfix","superTypes":[{"$ref":"#/interfaces@6"}],"attributes":[{"$type":"TypeAttribute","name":"operator","type":{"$type":"SimpleType","primitiveType":"string"},"isOptional":false}]},{"$type":"Interface","name":"EbnfZeroOrMorePostfix","superTypes":[{"$ref":"#/interfaces@6"}],"attributes":[{"$type":"TypeAttribute","name":"operator","type":{"$type":"SimpleType","primitiveType":"string"},"isOptional":false}]},{"$type":"Interface","name":"EbnfOneOrMorePostfix","superTypes":[{"$ref":"#/interfaces@6"}],"attributes":[{"$type":"TypeAttribute","name":"operator","type":{"$type":"SimpleType","primitiveType":"string"},"isOptional":false}]},{"$type":"Interface","name":"EbnfExceptionPostfix","superTypes":[{"$ref":"#/interfaces@6"}],"attributes":[{"$type":"TypeAttribute","name":"except","type":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@5"}},"isOptional":false}]}],"imports":[],"types":[]}`)),"RailroadEbnfGrammarGrammar"),$g,CF=s(()=>$g??($g=ze(`{"$type":"Grammar","isDeclared":true,"name":"RailroadGrammar","rules":[{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"RR_ID","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/[A-Z_a-z][\\\\w-]*/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"RR_STRING","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\"|'([^'\\\\\\\\]|\\\\\\\\.)*'/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"RR_WHITESPACE","definition":{"$type":"RegexToken","regex":"/[\\\\t \\\\r\\\\n]+/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"RR_YAML","definition":{"$type":"RegexToken","regex":"/---[\\\\t ]*\\\\r?\\\\n(?:[\\\\S\\\\s]*?\\\\r?\\\\n)?---(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"RR_DIRECTIVE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%{[\\\\S\\\\s]*?}%%(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"RR_SINGLE_LINE_COMMENT","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%[^\\\\n\\\\r]*/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"RR_BLOCK_COMMENT","definition":{"$type":"RegexToken","regex":"/\\\\/\\\\*[\\\\s\\\\S]*?\\\\*\\\\//","parenthesized":false},"fragment":false},{"$type":"ParserRule","entry":true,"name":"Railroad","returnType":{"$ref":"#/interfaces@0"},"definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"railroad-beta"},{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@0"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]}},{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]}}],"cardinality":"*"},{"$type":"Assignment","feature":"rules","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@11"},"arguments":[]},"cardinality":"*"}]},"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"RailroadRule","returnType":{"$ref":"#/interfaces@1"},"definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[]}},{"$type":"Keyword","value":"="},{"$type":"Assignment","feature":"definition","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]}},{"$type":"Keyword","value":";"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"RailroadExpression","returnType":{"$ref":"#/interfaces@2"},"definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@15"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@18"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"RailroadSequenceExpr","returnType":{"$ref":"#/interfaces@3"},"definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"sequence"},{"$type":"Keyword","value":"("},{"$type":"Assignment","feature":"elements","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":","},{"$type":"Assignment","feature":"elements","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]}}],"cardinality":"*"},{"$type":"Keyword","value":")"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"RailroadChoiceExpr","returnType":{"$ref":"#/interfaces@4"},"definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"choice"},{"$type":"Keyword","value":"("},{"$type":"Assignment","feature":"alternatives","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":","},{"$type":"Assignment","feature":"alternatives","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]}}],"cardinality":"*"},{"$type":"Keyword","value":")"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"RailroadOptionalExpr","returnType":{"$ref":"#/interfaces@5"},"definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"optional"},{"$type":"Keyword","value":"("},{"$type":"Assignment","feature":"element","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]}},{"$type":"Keyword","value":")"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"RailroadOneOrMoreExpr","returnType":{"$ref":"#/interfaces@6"},"definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"oneOrMore"},{"$type":"Keyword","value":"("},{"$type":"Assignment","feature":"element","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]}},{"$type":"Keyword","value":")"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"RailroadZeroOrMoreExpr","returnType":{"$ref":"#/interfaces@7"},"definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"zeroOrMore"},{"$type":"Keyword","value":"("},{"$type":"Assignment","feature":"element","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]}},{"$type":"Keyword","value":")"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"RailroadTerminalExpr","returnType":{"$ref":"#/interfaces@8"},"definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"terminal"},{"$type":"Keyword","value":"("},{"$type":"Assignment","feature":"value","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]}},{"$type":"Keyword","value":")"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"RailroadNonTerminalExpr","returnType":{"$ref":"#/interfaces@9"},"definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"nonterminal"},{"$type":"Keyword","value":"("},{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]}},{"$type":"Keyword","value":")"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"RailroadSpecialExpr","returnType":{"$ref":"#/interfaces@10"},"definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"special"},{"$type":"Keyword","value":"("},{"$type":"Assignment","feature":"text","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]}},{"$type":"Keyword","value":")"}]},"entry":false,"fragment":false,"parameters":[]}],"interfaces":[{"$type":"Interface","name":"Railroad","attributes":[{"$type":"TypeAttribute","name":"title","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"accTitle","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"accDescr","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"rules","type":{"$type":"ArrayType","elementType":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@1"}}},"isOptional":false}],"superTypes":[]},{"$type":"Interface","name":"RailroadRule","attributes":[{"$type":"TypeAttribute","name":"name","type":{"$type":"SimpleType","primitiveType":"string"},"isOptional":false},{"$type":"TypeAttribute","name":"definition","type":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@2"}},"isOptional":false}],"superTypes":[]},{"$type":"Interface","name":"RailroadExpression","attributes":[],"superTypes":[]},{"$type":"Interface","name":"RailroadSequenceExpr","superTypes":[{"$ref":"#/interfaces@2"}],"attributes":[{"$type":"TypeAttribute","name":"elements","type":{"$type":"ArrayType","elementType":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@2"}}},"isOptional":false}]},{"$type":"Interface","name":"RailroadChoiceExpr","superTypes":[{"$ref":"#/interfaces@2"}],"attributes":[{"$type":"TypeAttribute","name":"alternatives","type":{"$type":"ArrayType","elementType":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@2"}}},"isOptional":false}]},{"$type":"Interface","name":"RailroadOptionalExpr","superTypes":[{"$ref":"#/interfaces@2"}],"attributes":[{"$type":"TypeAttribute","name":"element","type":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@2"}},"isOptional":false}]},{"$type":"Interface","name":"RailroadOneOrMoreExpr","superTypes":[{"$ref":"#/interfaces@2"}],"attributes":[{"$type":"TypeAttribute","name":"element","type":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@2"}},"isOptional":false}]},{"$type":"Interface","name":"RailroadZeroOrMoreExpr","superTypes":[{"$ref":"#/interfaces@2"}],"attributes":[{"$type":"TypeAttribute","name":"element","type":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@2"}},"isOptional":false}]},{"$type":"Interface","name":"RailroadTerminalExpr","superTypes":[{"$ref":"#/interfaces@2"}],"attributes":[{"$type":"TypeAttribute","name":"value","type":{"$type":"SimpleType","primitiveType":"string"},"isOptional":false}]},{"$type":"Interface","name":"RailroadNonTerminalExpr","superTypes":[{"$ref":"#/interfaces@2"}],"attributes":[{"$type":"TypeAttribute","name":"name","type":{"$type":"SimpleType","primitiveType":"string"},"isOptional":false}]},{"$type":"Interface","name":"RailroadSpecialExpr","superTypes":[{"$ref":"#/interfaces@2"}],"attributes":[{"$type":"TypeAttribute","name":"text","type":{"$type":"SimpleType","primitiveType":"string"},"isOptional":false}]}],"imports":[],"types":[]}`)),"RailroadGrammarGrammar"),Rg,bF=s(()=>Rg??(Rg=ze(`{"$type":"Grammar","isDeclared":true,"name":"RailroadPegGrammar","rules":[{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"PEG_ID","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/[A-Z_a-z][\\\\w-]*/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"PEG_STRING","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\"|'([^'\\\\\\\\]|\\\\\\\\.)*'/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"PEG_WHITESPACE","definition":{"$type":"RegexToken","regex":"/[\\\\t \\\\r\\\\n]+/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"PEG_YAML","definition":{"$type":"RegexToken","regex":"/---[\\\\t ]*\\\\r?\\\\n(?:[\\\\S\\\\s]*?\\\\r?\\\\n)?---(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"PEG_DIRECTIVE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%{[\\\\S\\\\s]*?}%%(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"PEG_SINGLE_LINE_COMMENT","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%[^\\\\n\\\\r]*/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"PEG_LINE_COMMENT","definition":{"$type":"RegexToken","regex":"/#[^\\\\n\\\\r]*/","parenthesized":false},"fragment":false},{"$type":"ParserRule","entry":true,"name":"RailroadPeg","returnType":{"$ref":"#/interfaces@0"},"definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"railroad-peg-beta"},{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@0"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]}},{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]}}],"cardinality":"*"},{"$type":"Assignment","feature":"rules","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@11"},"arguments":[]},"cardinality":"*"}]},"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"PegRule","returnType":{"$ref":"#/interfaces@1"},"definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[]}},{"$type":"Keyword","value":"<-"},{"$type":"Assignment","feature":"definition","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]}},{"$type":"Keyword","value":";"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"PegOrderedChoice","returnType":{"$ref":"#/interfaces@2"},"definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"alternatives","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":"/"},{"$type":"Assignment","feature":"alternatives","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[]}}],"cardinality":"*"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"PegSequence","returnType":{"$ref":"#/interfaces@3"},"definition":{"$type":"Assignment","feature":"elements","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]},"cardinality":"+"},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"PegPrefix","returnType":{"$ref":"#/interfaces@4"},"definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"operator","operator":"=","terminal":{"$type":"Keyword","value":"&"}},{"$type":"Assignment","feature":"operator","operator":"=","terminal":{"$type":"Keyword","value":"!"}}],"cardinality":"?"},{"$type":"Assignment","feature":"suffix","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@15"},"arguments":[]}}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"PegSuffix","returnType":{"$ref":"#/interfaces@5"},"definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"primary","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[]}},{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"operator","operator":"=","terminal":{"$type":"Keyword","value":"?"}},{"$type":"Assignment","feature":"operator","operator":"=","terminal":{"$type":"Keyword","value":"*"}},{"$type":"Assignment","feature":"operator","operator":"=","terminal":{"$type":"Keyword","value":"+"}}],"cardinality":"?"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"PegPrimary","returnType":{"$ref":"#/interfaces@6"},"definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@18"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"PegLiteral","returnType":{"$ref":"#/interfaces@7"},"definition":{"$type":"Assignment","feature":"value","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]}},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"PegIdentifier","returnType":{"$ref":"#/interfaces@8"},"definition":{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[]}},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"PegGroup","returnType":{"$ref":"#/interfaces@9"},"definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"("},{"$type":"Assignment","feature":"element","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]}},{"$type":"Keyword","value":")"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"PegAny","returnType":{"$ref":"#/interfaces@10"},"definition":{"$type":"Assignment","feature":"dot","operator":"=","terminal":{"$type":"Keyword","value":"."}},"entry":false,"fragment":false,"parameters":[]}],"interfaces":[{"$type":"Interface","name":"RailroadPeg","attributes":[{"$type":"TypeAttribute","name":"title","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"accTitle","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"accDescr","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"rules","type":{"$type":"ArrayType","elementType":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@1"}}},"isOptional":false}],"superTypes":[]},{"$type":"Interface","name":"PegRule","attributes":[{"$type":"TypeAttribute","name":"name","type":{"$type":"SimpleType","primitiveType":"string"},"isOptional":false},{"$type":"TypeAttribute","name":"definition","type":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@2"}},"isOptional":false}],"superTypes":[]},{"$type":"Interface","name":"PegOrderedChoice","attributes":[{"$type":"TypeAttribute","name":"alternatives","type":{"$type":"ArrayType","elementType":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@3"}}},"isOptional":false}],"superTypes":[]},{"$type":"Interface","name":"PegSequence","attributes":[{"$type":"TypeAttribute","name":"elements","type":{"$type":"ArrayType","elementType":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@4"}}},"isOptional":false}],"superTypes":[]},{"$type":"Interface","name":"PegPrefix","attributes":[{"$type":"TypeAttribute","name":"operator","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"suffix","type":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@5"}},"isOptional":false}],"superTypes":[]},{"$type":"Interface","name":"PegSuffix","attributes":[{"$type":"TypeAttribute","name":"primary","type":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@6"}},"isOptional":false},{"$type":"TypeAttribute","name":"operator","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}}],"superTypes":[]},{"$type":"Interface","name":"PegPrimary","attributes":[],"superTypes":[]},{"$type":"Interface","name":"PegLiteral","superTypes":[{"$ref":"#/interfaces@6"}],"attributes":[{"$type":"TypeAttribute","name":"value","type":{"$type":"SimpleType","primitiveType":"string"},"isOptional":false}]},{"$type":"Interface","name":"PegIdentifier","superTypes":[{"$ref":"#/interfaces@6"}],"attributes":[{"$type":"TypeAttribute","name":"name","type":{"$type":"SimpleType","primitiveType":"string"},"isOptional":false}]},{"$type":"Interface","name":"PegGroup","superTypes":[{"$ref":"#/interfaces@6"}],"attributes":[{"$type":"TypeAttribute","name":"element","type":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@2"}},"isOptional":false}]},{"$type":"Interface","name":"PegAny","superTypes":[{"$ref":"#/interfaces@6"}],"attributes":[{"$type":"TypeAttribute","name":"dot","type":{"$type":"SimpleType","primitiveType":"string"},"isOptional":false}]}],"imports":[],"types":[]}`)),"RailroadPegGrammarGrammar"),Ag,_F=s(()=>Ag??(Ag=ze(`{"$type":"Grammar","isDeclared":true,"name":"TreemapGrammar","rules":[{"$type":"ParserRule","fragment":true,"name":"TitleAndAccessibilities","definition":{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[]}},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]}}],"cardinality":"+"},"entry":false,"parameters":[]},{"$type":"TerminalRule","name":"BOOLEAN","type":{"$type":"ReturnType","name":"boolean"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"true"},"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"false"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"ParserRule","entry":true,"name":"Treemap","returnType":{"$ref":"#/interfaces@4"},"definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[]},{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@0"},"arguments":[]},{"$type":"Assignment","feature":"TreemapRows","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@15"},"arguments":[]}}],"cardinality":"*"}]},"fragment":false,"parameters":[]},{"$type":"TerminalRule","name":"TREEMAP_KEYWORD","definition":{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"treemap-beta"},"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"treemap"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"CLASS_DEF","definition":{"$type":"RegexToken","regex":"/classDef\\\\s+([a-zA-Z_][a-zA-Z0-9_]+)(?:\\\\s+([^;\\\\r\\\\n]*))?(?:;)?/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"STYLE_SEPARATOR","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":":::"},"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"SEPARATOR","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":":"},"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"COMMA","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":","},"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"INDENTATION","definition":{"$type":"RegexToken","regex":"/[ \\\\t]{1,}/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"WS","definition":{"$type":"RegexToken","regex":"/[ \\\\t]+/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"ML_COMMENT","definition":{"$type":"RegexToken","regex":"/\\\\%\\\\%[^\\\\n]*/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"NL","definition":{"$type":"RegexToken","regex":"/\\\\r?\\\\n/","parenthesized":false},"fragment":false},{"$type":"ParserRule","name":"TreemapRow","definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"indent","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@11"},"arguments":[]},"cardinality":"?"},{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"item","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[]}]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"ClassDef","dataType":"string","definition":{"$type":"RuleCall","rule":{"$ref":"#/rules@7"},"arguments":[]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Item","returnType":{"$ref":"#/interfaces@0"},"definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@18"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Section","returnType":{"$ref":"#/interfaces@1"},"definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@23"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]},{"$type":"Assignment","feature":"classSelector","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]}}],"cardinality":"?"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Leaf","returnType":{"$ref":"#/interfaces@2"},"definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@23"},"arguments":[]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@11"},"arguments":[],"cardinality":"?"},{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@10"},"arguments":[]}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@11"},"arguments":[],"cardinality":"?"},{"$type":"Assignment","feature":"value","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@22"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]},{"$type":"Assignment","feature":"classSelector","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]}}],"cardinality":"?"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"TerminalRule","name":"ID2","definition":{"$type":"RegexToken","regex":"/[a-zA-Z_][a-zA-Z0-9_]*/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NUMBER2","definition":{"$type":"RegexToken","regex":"/[0-9_\\\\.\\\\,]+/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"ParserRule","name":"MyNumber","dataType":"number","definition":{"$type":"RuleCall","rule":{"$ref":"#/rules@21"},"arguments":[]},"entry":false,"fragment":false,"parameters":[]},{"$type":"TerminalRule","name":"STRING2","definition":{"$type":"RegexToken","regex":"/\\"[^\\"]*\\"|'[^']*'/","parenthesized":false},"fragment":false,"hidden":false}],"interfaces":[{"$type":"Interface","name":"Item","attributes":[{"$type":"TypeAttribute","name":"name","type":{"$type":"SimpleType","primitiveType":"string"},"isOptional":false},{"$type":"TypeAttribute","name":"classSelector","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}}],"superTypes":[]},{"$type":"Interface","name":"Section","superTypes":[{"$ref":"#/interfaces@0"}],"attributes":[]},{"$type":"Interface","name":"Leaf","superTypes":[{"$ref":"#/interfaces@0"}],"attributes":[{"$type":"TypeAttribute","name":"value","type":{"$type":"SimpleType","primitiveType":"number"},"isOptional":false}]},{"$type":"Interface","name":"ClassDefStatement","attributes":[{"$type":"TypeAttribute","name":"className","type":{"$type":"SimpleType","primitiveType":"string"},"isOptional":false},{"$type":"TypeAttribute","name":"styleText","type":{"$type":"SimpleType","primitiveType":"string"},"isOptional":false}],"superTypes":[]},{"$type":"Interface","name":"Treemap","attributes":[{"$type":"TypeAttribute","name":"TreemapRows","type":{"$type":"ArrayType","elementType":{"$type":"SimpleType","typeRef":{"$ref":"#/rules@15"}}},"isOptional":false},{"$type":"TypeAttribute","name":"title","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"accTitle","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"accDescr","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}}],"superTypes":[]}],"imports":[],"types":[],"$comment":"/**\\n * Treemap grammar for Langium\\n * Converted from mindmap grammar\\n *\\n * The ML_COMMENT and NL hidden terminals handle whitespace, comments, and newlines\\n * before the treemap keyword, allowing for empty lines and comments before the\\n * treemap declaration.\\n */"}`)),"TreemapGrammarGrammar"),Eg,SF=s(()=>Eg??(Eg=ze(`{"$type":"Grammar","isDeclared":true,"name":"TreeViewGrammar","rules":[{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"ParserRule","entry":true,"name":"TreeView","returnType":{"$ref":"#/interfaces@0"},"definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"treeView-beta"},{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[],"cardinality":"?"},{"$type":"Assignment","feature":"nodes","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]},"cardinality":"*"}]},"fragment":false,"parameters":[]},{"$type":"ParserRule","fragment":true,"name":"TitleAndAccessibilities","definition":{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@0"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]}},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]}}],"cardinality":"+"},"entry":false,"parameters":[]},{"$type":"TerminalRule","name":"CLASS_ANNOTATION","definition":{"$type":"RegexToken","regex":"/[ \\\\t]+:::[ \\\\t]*[A-Za-z_][\\\\w-]*/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ICON_ANNOTATION","definition":{"$type":"RegexToken","regex":"/[ \\\\t]+icon\\\\([\\\\w-]*(?::[\\\\w-]+)?\\\\)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"DESC_ANNOTATION","definition":{"$type":"RegexToken","regex":"/[ \\\\t]+##[^\\\\n\\\\r]*/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"INDENTATION","definition":{"$type":"RegexToken","regex":"/[ \\\\t]{1,}/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"QUOTED_NAME","definition":{"$type":"RegexToken","regex":"/\\"[^\\"]*\\"|'[^']*'/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"WS","definition":{"$type":"RegexToken","regex":"/[ \\\\t]+/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"ML_COMMENT","definition":{"$type":"RegexToken","regex":"/\\\\%\\\\%[^\\\\n]*/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"NL","definition":{"$type":"RegexToken","regex":"/\\\\r?\\\\n/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","name":"BARE_NAME","definition":{"$type":"RegexToken","regex":"/(?!:::|icon\\\\(|##)[^ \\\\t\\\\n\\\\r\\"'](?:(?![ \\\\t]+:::[ \\\\t]*[A-Za-z_]|[ \\\\t]+icon\\\\(|[ \\\\t]+##)[^\\\\n\\\\r])*/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"ParserRule","name":"TreeNode","definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"indent","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]},"cardinality":"?"},{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"arguments":[]}},{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[]}}]},{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"classAnnotation","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}},{"$type":"Assignment","feature":"iconAnnotation","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[]}},{"$type":"Assignment","feature":"descAnnotation","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@7"},"arguments":[]}}],"cardinality":"*"}]},"entry":false,"fragment":false,"parameters":[]}],"interfaces":[{"$type":"Interface","name":"TreeView","attributes":[{"$type":"TypeAttribute","name":"nodes","type":{"$type":"ArrayType","elementType":{"$type":"SimpleType","typeRef":{"$ref":"#/rules@14"}}},"isOptional":false},{"$type":"TypeAttribute","name":"title","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"accTitle","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"accDescr","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}}],"superTypes":[]}],"imports":[],"types":[],"$comment":"/**\\n * TreeView grammar for Langium\\n *\\n * Supports both quoted labels (\\"my file\\") and bare labels (index.js).\\n * Annotations (:::class, icon(), ## description) are parsed directly into\\n * AST fields by the grammar. Value conversion for stripping quotes, extracting\\n * class names, icon names, and description text happens in valueConverter.ts.\\n *\\n * The ML_COMMENT and NL hidden terminals handle whitespace, comments, and newlines\\n * before the treeView keyword, allowing for empty lines and comments before the\\n * treeView declaration.\\n */"}`)),"TreeViewGrammarGrammar"),Cg,wF=s(()=>Cg??(Cg=ze(`{"$type":"Grammar","isDeclared":true,"name":"WardleyGrammar","imports":[],"rules":[{"$type":"ParserRule","entry":true,"name":"Wardley","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@52"},"arguments":[],"cardinality":"*"},{"$type":"RuleCall","rule":{"$ref":"#/rules@25"},"arguments":[]},{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@52"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@42"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]}],"cardinality":"*"}]},"fragment":false,"parameters":[]},{"$type":"ParserRule","fragment":true,"name":"Statement","definition":{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"size","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]}},{"$type":"Assignment","feature":"evolution","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[]}},{"$type":"Assignment","feature":"anchors","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}},{"$type":"Assignment","feature":"components","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[]}},{"$type":"Assignment","feature":"links","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"arguments":[]}},{"$type":"Assignment","feature":"evolves","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@10"},"arguments":[]}},{"$type":"Assignment","feature":"pipelines","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@11"},"arguments":[]}},{"$type":"Assignment","feature":"notes","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[]}},{"$type":"Assignment","feature":"annotations","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]}},{"$type":"Assignment","feature":"annotation","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@15"},"arguments":[]}},{"$type":"Assignment","feature":"accelerators","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}},{"$type":"Assignment","feature":"deaccelerators","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@18"},"arguments":[]}}]},"entry":false,"parameters":[]},{"$type":"ParserRule","name":"Size","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@26"},"arguments":[]},{"$type":"Keyword","value":"["},{"$type":"Assignment","feature":"width","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@48"},"arguments":[]}},{"$type":"Keyword","value":","},{"$type":"Assignment","feature":"height","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@48"},"arguments":[]}},{"$type":"Keyword","value":"]"},{"$type":"RuleCall","rule":{"$ref":"#/rules@41"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Evolution","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@27"},"arguments":[]},{"$type":"Assignment","feature":"stages","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]},{"$type":"Assignment","feature":"stages","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]}}],"cardinality":"+"},{"$type":"RuleCall","rule":{"$ref":"#/rules@41"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EvolutionStage","definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@51"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@50"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@39"},"arguments":[]}]}},{"$type":"Group","elements":[{"$type":"Keyword","value":"@"},{"$type":"Assignment","feature":"boundary","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]}}],"cardinality":"?"},{"$type":"Group","elements":[{"$type":"Keyword","value":"/"},{"$type":"Assignment","feature":"secondName","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@51"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@50"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@39"},"arguments":[]}]}}],"cardinality":"?"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Anchor","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@28"},"arguments":[]},{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@50"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@51"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@39"},"arguments":[]}]}},{"$type":"Keyword","value":"["},{"$type":"Assignment","feature":"visibility","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]}},{"$type":"Keyword","value":","},{"$type":"Assignment","feature":"evolution","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]}},{"$type":"Keyword","value":"]"},{"$type":"RuleCall","rule":{"$ref":"#/rules@41"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Component","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@29"},"arguments":[]},{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@50"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@51"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@39"},"arguments":[]}]}},{"$type":"Keyword","value":"["},{"$type":"Assignment","feature":"visibility","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]}},{"$type":"Keyword","value":","},{"$type":"Assignment","feature":"evolution","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]}},{"$type":"Keyword","value":"]"},{"$type":"Assignment","feature":"label","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@7"},"arguments":[]},"cardinality":"?"},{"$type":"Assignment","feature":"decorator","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]},"cardinality":"?"},{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"inertia","operator":"?=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@31"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":"("},{"$type":"Assignment","feature":"inertia","operator":"?=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@31"},"arguments":[]}},{"$type":"Keyword","value":")"}]}],"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@41"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Label","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@30"},"arguments":[]},{"$type":"Keyword","value":"["},{"$type":"Assignment","feature":"negX","operator":"?=","terminal":{"$type":"Keyword","value":"-"},"cardinality":"?"},{"$type":"Assignment","feature":"offsetX","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@48"},"arguments":[]}},{"$type":"Keyword","value":","},{"$type":"Assignment","feature":"negY","operator":"?=","terminal":{"$type":"Keyword","value":"-"},"cardinality":"?"},{"$type":"Assignment","feature":"offsetY","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@48"},"arguments":[]}},{"$type":"Keyword","value":"]"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Decorator","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"("},{"$type":"Assignment","feature":"strategy","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@24"},"arguments":[]}},{"$type":"Keyword","value":")"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Link","definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"from","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@50"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@51"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@39"},"arguments":[]}]}},{"$type":"Assignment","feature":"fromPort","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@21"},"arguments":[]},"cardinality":"?"},{"$type":"Assignment","feature":"arrow","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@22"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]}]},"cardinality":"?"},{"$type":"Assignment","feature":"to","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@50"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@51"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@39"},"arguments":[]}]}},{"$type":"Assignment","feature":"toPort","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@21"},"arguments":[]},"cardinality":"?"},{"$type":"Assignment","feature":"linkLabel","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@23"},"arguments":[]},"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@41"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Evolve","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@32"},"arguments":[]},{"$type":"Assignment","feature":"component","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@50"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@51"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@39"},"arguments":[]}]}},{"$type":"Assignment","feature":"target","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@41"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Pipeline","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@33"},"arguments":[]},{"$type":"Assignment","feature":"parent","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@50"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@51"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@39"},"arguments":[]}]}},{"$type":"Keyword","value":"{"},{"$type":"RuleCall","rule":{"$ref":"#/rules@52"},"arguments":[],"cardinality":"+"},{"$type":"Assignment","feature":"components","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]},"cardinality":"+"},{"$type":"Keyword","value":"}"},{"$type":"RuleCall","rule":{"$ref":"#/rules@41"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"PipelineComponent","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@29"},"arguments":[]},{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@50"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@51"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@39"},"arguments":[]}]}},{"$type":"Keyword","value":"["},{"$type":"Assignment","feature":"evolution","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]}},{"$type":"Keyword","value":"]"},{"$type":"Assignment","feature":"label","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@7"},"arguments":[]},"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@41"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Note","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@34"},"arguments":[]},{"$type":"Assignment","feature":"text","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@50"},"arguments":[]}},{"$type":"Keyword","value":"["},{"$type":"Assignment","feature":"visibility","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]}},{"$type":"Keyword","value":","},{"$type":"Assignment","feature":"evolution","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]}},{"$type":"Keyword","value":"]"},{"$type":"RuleCall","rule":{"$ref":"#/rules@41"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Annotations","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@35"},"arguments":[]},{"$type":"Keyword","value":"["},{"$type":"Assignment","feature":"x","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[]}},{"$type":"Keyword","value":","},{"$type":"Assignment","feature":"y","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[]}},{"$type":"Keyword","value":"]"},{"$type":"RuleCall","rule":{"$ref":"#/rules@41"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Annotation","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@36"},"arguments":[]},{"$type":"Assignment","feature":"number","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@48"},"arguments":[]}},{"$type":"Keyword","value":","},{"$type":"Keyword","value":"["},{"$type":"Assignment","feature":"x","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[]}},{"$type":"Keyword","value":","},{"$type":"Assignment","feature":"y","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[]}},{"$type":"Keyword","value":"]"},{"$type":"Assignment","feature":"text","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@50"},"arguments":[]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@41"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"CoordinateValue","dataType":"number","definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@48"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Accelerator","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@37"},"arguments":[]},{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@50"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@51"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@39"},"arguments":[]}]}},{"$type":"Keyword","value":"["},{"$type":"Assignment","feature":"x","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]}},{"$type":"Keyword","value":","},{"$type":"Assignment","feature":"y","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]}},{"$type":"Keyword","value":"]"},{"$type":"RuleCall","rule":{"$ref":"#/rules@41"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Deaccelerator","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@38"},"arguments":[]},{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@50"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@51"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@39"},"arguments":[]}]}},{"$type":"Keyword","value":"["},{"$type":"Assignment","feature":"x","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]}},{"$type":"Keyword","value":","},{"$type":"Assignment","feature":"y","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]}},{"$type":"Keyword","value":"]"},{"$type":"RuleCall","rule":{"$ref":"#/rules@41"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"TerminalRule","name":"WARDLEY_NUMBER","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/[0-9]+\\\\.[0-9]+/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ARROW","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":"->"},"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"LINK_PORT","definition":{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"+<>"},"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"+>"},"parenthesized":false}],"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"+<"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"LINK_ARROW","definition":{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"-->"},"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"-.->"},"parenthesized":false}],"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":">"},"parenthesized":false}],"parenthesized":false},{"$type":"RegexToken","regex":"/\\\\+'[^']*'<>/","parenthesized":false}],"parenthesized":false},{"$type":"RegexToken","regex":"/\\\\+'[^']*'/","parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"LINK_LABEL","definition":{"$type":"RegexToken","regex":"/;[^\\\\n\\\\r]+/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"STRATEGY","definition":{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"build"},"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"buy"},"parenthesized":false}],"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"outsource"},"parenthesized":false}],"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"market"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"KW_WARDLEY","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":"wardley-beta"},"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"KW_SIZE","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":"size"},"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"KW_EVOLUTION","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":"evolution"},"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"KW_ANCHOR","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":"anchor"},"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"KW_COMPONENT","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":"component"},"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"KW_LABEL","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":"label"},"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"KW_INERTIA","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":"inertia"},"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"KW_EVOLVE","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":"evolve"},"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"KW_PIPELINE","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":"pipeline"},"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"KW_NOTE","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":"note"},"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"KW_ANNOTATIONS","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":"annotations"},"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"KW_ANNOTATION","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":"annotation"},"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"KW_ACCELERATOR","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":"accelerator"},"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"KW_DEACCELERATOR","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":"deaccelerator"},"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NAME_WITH_SPACES","definition":{"$type":"RegexToken","regex":"/(?!title\\\\s|accTitle|accDescr)[A-Za-z](?:[A-Za-z0-9_()&]|-(?!>))*(?:[ \\\\t]+[A-Za-z(](?:[A-Za-z0-9_()&]|-(?!>))*)*/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"WS","definition":{"$type":"RegexToken","regex":"/[ \\\\t]+/","parenthesized":false},"fragment":false},{"$type":"ParserRule","name":"EOL","dataType":"string","definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@52"},"arguments":[],"cardinality":"+"},{"$type":"EndOfFile"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","fragment":true,"name":"TitleAndAccessibilities","definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@44"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@45"},"arguments":[]}},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@46"},"arguments":[]}}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@41"},"arguments":[]}],"cardinality":"+"},"entry":false,"parameters":[]},{"$type":"TerminalRule","name":"BOOLEAN","type":{"$type":"ReturnType","name":"boolean"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"true"},"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"false"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"FLOAT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/[0-9]+\\\\.[0-9]+(?!\\\\.)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"INT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/0|[1-9][0-9]*(?!\\\\.)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NUMBER","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@47"},"parenthesized":false},{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@48"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"STRING","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\"|'([^'\\\\\\\\]|\\\\\\\\.)*'/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ID","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/[\\\\w]([-\\\\w]*\\\\w)?/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NEWLINE","definition":{"$type":"RegexToken","regex":"/\\\\r?\\\\n/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"WHITESPACE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]+/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"YAML","definition":{"$type":"RegexToken","regex":"/---[\\\\t ]*\\\\r?\\\\n(?:[\\\\S\\\\s]*?\\\\r?\\\\n)?---(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"DIRECTIVE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%{[\\\\S\\\\s]*?}%%(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"SINGLE_LINE_COMMENT","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%[^\\\\n\\\\r]*/","parenthesized":false},"fragment":false}],"interfaces":[],"types":[]}`)),"WardleyGrammarGrammar"),IF={languageId:"architecture",fileExtensions:[".mmd",".mermaid"],caseInsensitive:!1,mode:"production"},NF={languageId:"cynefin",fileExtensions:[".mmd",".mermaid"],caseInsensitive:!1,mode:"production"},PF={languageId:"eventmodeling",fileExtensions:[".mmd",".mermaid"],caseInsensitive:!1,mode:"production"},kF={languageId:"gitGraph",fileExtensions:[".mmd",".mermaid"],caseInsensitive:!1,mode:"production"},OF={languageId:"info",fileExtensions:[".mmd",".mermaid"],caseInsensitive:!1,mode:"production"},LF={languageId:"packet",fileExtensions:[".mmd",".mermaid"],caseInsensitive:!1,mode:"production"},DF={languageId:"pie",fileExtensions:[".mmd",".mermaid"],caseInsensitive:!1,mode:"production"},xF={languageId:"radar",fileExtensions:[".mmd",".mermaid"],caseInsensitive:!1,mode:"production"},MF={languageId:"railroadAbnf",fileExtensions:[".mmd",".mermaid"],caseInsensitive:!1,mode:"production"},GF={languageId:"railroadEbnf",fileExtensions:[".mmd",".mermaid"],caseInsensitive:!1,mode:"production"},FF={languageId:"railroad",fileExtensions:[".mmd",".mermaid"],caseInsensitive:!1,mode:"production"},zF={languageId:"railroadPeg",fileExtensions:[".mmd",".mermaid"],caseInsensitive:!1,mode:"production"},jF={languageId:"treemap",fileExtensions:[".mmd",".mermaid"],caseInsensitive:!1,mode:"production"},UF={languageId:"treeView",fileExtensions:[".mmd",".mermaid"],caseInsensitive:!1,mode:"production"},KF={languageId:"wardley",fileExtensions:[".mmd",".mermaid"],caseInsensitive:!1,mode:"production"},ZF={AstReflection:s(()=>new Sw,"AstReflection")},QF={Grammar:s(()=>mF(),"Grammar"),LanguageMetaData:s(()=>IF,"LanguageMetaData"),parser:{}},ez={Grammar:s(()=>hF(),"Grammar"),LanguageMetaData:s(()=>NF,"LanguageMetaData"),parser:{}},tz={Grammar:s(()=>yF(),"Grammar"),LanguageMetaData:s(()=>PF,"LanguageMetaData"),parser:{}},rz={Grammar:s(()=>gF(),"Grammar"),LanguageMetaData:s(()=>kF,"LanguageMetaData"),parser:{}},nz={Grammar:s(()=>vF(),"Grammar"),LanguageMetaData:s(()=>OF,"LanguageMetaData"),parser:{}},az={Grammar:s(()=>TF(),"Grammar"),LanguageMetaData:s(()=>LF,"LanguageMetaData"),parser:{}},iz={Grammar:s(()=>$F(),"Grammar"),LanguageMetaData:s(()=>DF,"LanguageMetaData"),parser:{}},sz={Grammar:s(()=>RF(),"Grammar"),LanguageMetaData:s(()=>xF,"LanguageMetaData"),parser:{}},oz={Grammar:s(()=>AF(),"Grammar"),LanguageMetaData:s(()=>MF,"LanguageMetaData"),parser:{}},lz={Grammar:s(()=>EF(),"Grammar"),LanguageMetaData:s(()=>GF,"LanguageMetaData"),parser:{}},uz={Grammar:s(()=>CF(),"Grammar"),LanguageMetaData:s(()=>FF,"LanguageMetaData"),parser:{}},cz={Grammar:s(()=>bF(),"Grammar"),LanguageMetaData:s(()=>zF,"LanguageMetaData"),parser:{}},fz={Grammar:s(()=>_F(),"Grammar"),LanguageMetaData:s(()=>jF,"LanguageMetaData"),parser:{}},pz={Grammar:s(()=>SF(),"Grammar"),LanguageMetaData:s(()=>UF,"LanguageMetaData"),parser:{}},dz={Grammar:s(()=>wF(),"Grammar"),LanguageMetaData:s(()=>KF,"LanguageMetaData"),parser:{}},BF=/accDescr(?:[\t ]*:([^\n\r]*)|\s*{([^}]*)})/,qF=/accTitle[\t ]*:([^\n\r]*)/,WF=/title([\t ][^\n\r]*|)/,VF={ACC_DESCR:BF,ACC_TITLE:qF,TITLE:WF},HF=class extends Pm{static{s(this,"AbstractMermaidValueConverter")}runConverter(e,t,r){let n=this.runCommonConverter(e,t,r);return n===void 0&&(n=this.runCustomConverter(e,t,r)),n===void 0?super.runConverter(e,t,r):n}runCommonConverter(e,t,r){let n=VF[e.name];if(n===void 0)return;let a=n.exec(t);if(a!==null){if(a[1]!==void 0)return a[1].trim().replace(/[\t ]{2,}/gm," ");if(a[2]!==void 0)return a[2].replace(/^\s*/gm,"").replace(/\s+$/gm,"").replace(/[\t ]{2,}/gm," ").replace(/[\n\r]{2,}/gm,` +`)}}},mz=class extends HF{static{s(this,"CommonValueConverter")}runCustomConverter(e,t,r){}},YF=class extends wu{static{s(this,"AbstractMermaidTokenBuilder")}constructor(e){super(),this.keywords=new Set(e)}buildKeywordTokens(e,t,r){let n=super.buildKeywordTokens(e,t,r);return n.forEach(a=>{this.keywords.has(a.name)&&a.PATTERN!==void 0&&(a.PATTERN=new RegExp(a.PATTERN.toString()+"(?:(?=%%)|(?!\\S))"))}),n}},hz=class extends YF{static{s(this,"CommonTokenBuilder")}};export{s as a,Xm as b,Jm as c,_l as d,Cw as e,QG as f,ZF as g,QF as h,ez as i,tz as j,rz as k,nz as l,az as m,iz as n,sz as o,oz as p,lz as q,uz as r,cz as s,fz as t,pz as u,dz as v,HF as w,mz as x,YF as y}; +/*! For license information please see chunk-RVPSGR2P.js.LEGAL.txt */ diff --git a/src/frontend/web/von_interface/static/vendor/conversation-visuals/chunk-RVPSGR2P.js.LEGAL.txt b/src/frontend/web/von_interface/static/vendor/conversation-visuals/chunk-RVPSGR2P.js.LEGAL.txt new file mode 100644 index 000000000..00f871b1a --- /dev/null +++ b/src/frontend/web/von_interface/static/vendor/conversation-visuals/chunk-RVPSGR2P.js.LEGAL.txt @@ -0,0 +1,16 @@ +Bundled license information: + +@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-FOHPRMQF.mjs: + /*! Bundled license information: + + lodash-es/lodash.js: + (** + * @license + * Lodash (Custom Build) + * Build: `lodash modularize exports="es" -o ./` + * Copyright OpenJS Foundation and other contributors + * Released under MIT license + * Based on Underscore.js 1.8.3 + * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors + *) + */ diff --git a/src/frontend/web/von_interface/static/vendor/conversation-visuals/chunk-S4JILX6U.js b/src/frontend/web/von_interface/static/vendor/conversation-visuals/chunk-S4JILX6U.js new file mode 100644 index 000000000..c70e75b9d --- /dev/null +++ b/src/frontend/web/von_interface/static/vendor/conversation-visuals/chunk-S4JILX6U.js @@ -0,0 +1,129 @@ +import{b as W,c as $r}from"./chunk-XEQL7KGA.js";import{a as d,b as Gr}from"./chunk-YUSHYV7C.js";var xi={min:{r:0,g:0,b:0,s:0,l:0,a:0},max:{r:255,g:255,b:255,h:360,s:100,l:100,a:1},clamp:{r:t=>t>=255?255:t<0?0:t,g:t=>t>=255?255:t<0?0:t,b:t=>t>=255?255:t<0?0:t,h:t=>t%360,s:t=>t>=100?100:t<0?0:t,l:t=>t>=100?100:t<0?0:t,a:t=>t>=1?1:t<0?0:t},toLinear:t=>{let i=t/255;return t>.03928?Math.pow((i+.055)/1.055,2.4):i/12.92},hue2rgb:(t,i,r)=>(r<0&&(r+=1),r>1&&(r-=1),r<.16666666666666666?t+(i-t)*6*r:r<.5?i:r<.6666666666666666?t+(i-t)*(.6666666666666666-r)*6:t),hsl2rgb:({h:t,s:i,l:r},l)=>{if(!i)return r*2.55;t/=360,i/=100,r/=100;let s=r<.5?r*(1+i):r+i-r*i,u=2*r-s;switch(l){case"r":return xi.hue2rgb(u,s,t+.3333333333333333)*255;case"g":return xi.hue2rgb(u,s,t)*255;case"b":return xi.hue2rgb(u,s,t-.3333333333333333)*255}},rgb2hsl:({r:t,g:i,b:r},l)=>{t/=255,i/=255,r/=255;let s=Math.max(t,i,r),u=Math.min(t,i,r),p=(s+u)/2;if(l==="l")return p*100;if(s===u)return 0;let b=s-u,B=p>.5?b/(2-s-u):b/(s+u);if(l==="s")return B*100;switch(s){case t:return((i-r)/b+(ii>r?Math.min(i,Math.max(r,t)):Math.min(r,Math.max(i,t)),round:t=>Math.round(t*1e10)/1e10},Yr=go;var uo={dec2hex:t=>{let i=Math.round(t).toString(16);return i.length>1?i:`0${i}`}},Xr=uo;var mo={channel:Vr,lang:Yr,unit:Xr},x=mo;var ot={};for(let t=0;t<=255;t++)ot[t]=x.unit.dec2hex(t);var q={ALL:0,RGB:1,HSL:2};var Vi=class{constructor(){this.type=q.ALL}get(){return this.type}set(i){if(this.type&&this.type!==i)throw new Error("Cannot change both RGB and HSL channels at the same time");this.type=i}reset(){this.type=q.ALL}is(i){return this.type===i}},Kr=Vi;var Yi=class{constructor(i,r){this.color=r,this.changed=!1,this.data=i,this.type=new Kr}set(i,r){return this.color=r,this.changed=!1,this.data=i,this.type.type=q.ALL,this}_ensureHSL(){let i=this.data,{h:r,s:l,l:s}=i;r===void 0&&(i.h=x.channel.rgb2hsl(i,"h")),l===void 0&&(i.s=x.channel.rgb2hsl(i,"s")),s===void 0&&(i.l=x.channel.rgb2hsl(i,"l"))}_ensureRGB(){let i=this.data,{r,g:l,b:s}=i;r===void 0&&(i.r=x.channel.hsl2rgb(i,"r")),l===void 0&&(i.g=x.channel.hsl2rgb(i,"g")),s===void 0&&(i.b=x.channel.hsl2rgb(i,"b"))}get r(){let i=this.data,r=i.r;return!this.type.is(q.HSL)&&r!==void 0?r:(this._ensureHSL(),x.channel.hsl2rgb(i,"r"))}get g(){let i=this.data,r=i.g;return!this.type.is(q.HSL)&&r!==void 0?r:(this._ensureHSL(),x.channel.hsl2rgb(i,"g"))}get b(){let i=this.data,r=i.b;return!this.type.is(q.HSL)&&r!==void 0?r:(this._ensureHSL(),x.channel.hsl2rgb(i,"b"))}get h(){let i=this.data,r=i.h;return!this.type.is(q.RGB)&&r!==void 0?r:(this._ensureRGB(),x.channel.rgb2hsl(i,"h"))}get s(){let i=this.data,r=i.s;return!this.type.is(q.RGB)&&r!==void 0?r:(this._ensureRGB(),x.channel.rgb2hsl(i,"s"))}get l(){let i=this.data,r=i.l;return!this.type.is(q.RGB)&&r!==void 0?r:(this._ensureRGB(),x.channel.rgb2hsl(i,"l"))}get a(){return this.data.a}set r(i){this.type.set(q.RGB),this.changed=!0,this.data.r=i}set g(i){this.type.set(q.RGB),this.changed=!0,this.data.g=i}set b(i){this.type.set(q.RGB),this.changed=!0,this.data.b=i}set h(i){this.type.set(q.HSL),this.changed=!0,this.data.h=i}set s(i){this.type.set(q.HSL),this.changed=!0,this.data.s=i}set l(i){this.type.set(q.HSL),this.changed=!0,this.data.l=i}set a(i){this.changed=!0,this.data.a=i}},Zr=Yi;var po=new Zr({r:0,g:0,b:0,a:0},"transparent"),Ct=po;var Jr={re:/^#((?:[a-f0-9]{2}){2,4}|[a-f0-9]{3})$/i,parse:t=>{if(t.charCodeAt(0)!==35)return;let i=t.match(Jr.re);if(!i)return;let r=i[1],l=parseInt(r,16),s=r.length,u=s%4===0,p=s>4,b=p?1:17,B=p?8:4,z=u?0:-1,Y=p?255:15;return Ct.set({r:(l>>B*(z+3)&Y)*b,g:(l>>B*(z+2)&Y)*b,b:(l>>B*(z+1)&Y)*b,a:u?(l&Y)*b/255:1},t)},stringify:t=>{let{r:i,g:r,b:l,a:s}=t;return s<1?`#${ot[Math.round(i)]}${ot[Math.round(r)]}${ot[Math.round(l)]}${ot[Math.round(s*255)]}`:`#${ot[Math.round(i)]}${ot[Math.round(r)]}${ot[Math.round(l)]}`}},Tt=Jr;var fi={re:/^hsla?\(\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?(?:deg|grad|rad|turn)?)\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?%)\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?%)(?:\s*?(?:,|\/)\s*?\+?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?(%)?))?\s*?\)$/i,hueRe:/^(.+?)(deg|grad|rad|turn)$/i,_hue2deg:t=>{let i=t.match(fi.hueRe);if(i){let[,r,l]=i;switch(l){case"grad":return x.channel.clamp.h(parseFloat(r)*.9);case"rad":return x.channel.clamp.h(parseFloat(r)*180/Math.PI);case"turn":return x.channel.clamp.h(parseFloat(r)*360)}}return x.channel.clamp.h(parseFloat(t))},parse:t=>{let i=t.charCodeAt(0);if(i!==104&&i!==72)return;let r=t.match(fi.re);if(!r)return;let[,l,s,u,p,b]=r;return Ct.set({h:fi._hue2deg(l),s:x.channel.clamp.s(parseFloat(s)),l:x.channel.clamp.l(parseFloat(u)),a:p?x.channel.clamp.a(b?parseFloat(p)/100:parseFloat(p)):1},t)},stringify:t=>{let{h:i,s:r,l,a:s}=t;return s<1?`hsla(${x.lang.round(i)}, ${x.lang.round(r)}%, ${x.lang.round(l)}%, ${s})`:`hsl(${x.lang.round(i)}, ${x.lang.round(r)}%, ${x.lang.round(l)}%)`}},$t=fi;var Ti={colors:{aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyanaqua:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",transparent:"#00000000",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"},parse:t=>{t=t.toLowerCase();let i=Ti.colors[t];if(i)return Tt.parse(i)},stringify:t=>{let i=Tt.stringify(t);for(let r in Ti.colors)if(Ti.colors[r]===i)return r}},Xi=Ti;var Qr={re:/^rgba?\(\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))(?:\s*?(?:,|\/)\s*?\+?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?)))?\s*?\)$/i,parse:t=>{let i=t.charCodeAt(0);if(i!==114&&i!==82)return;let r=t.match(Qr.re);if(!r)return;let[,l,s,u,p,b,B,z,Y]=r;return Ct.set({r:x.channel.clamp.r(s?parseFloat(l)*2.55:parseFloat(l)),g:x.channel.clamp.g(p?parseFloat(u)*2.55:parseFloat(u)),b:x.channel.clamp.b(B?parseFloat(b)*2.55:parseFloat(b)),a:z?x.channel.clamp.a(Y?parseFloat(z)/100:parseFloat(z)):1},t)},stringify:t=>{let{r:i,g:r,b:l,a:s}=t;return s<1?`rgba(${x.lang.round(i)}, ${x.lang.round(r)}, ${x.lang.round(l)}, ${x.lang.round(s)})`:`rgb(${x.lang.round(i)}, ${x.lang.round(r)}, ${x.lang.round(l)})`}},Vt=Qr;var yo={format:{keyword:Xi,hex:Tt,rgb:Vt,rgba:Vt,hsl:$t,hsla:$t},parse:t=>{if(typeof t!="string")return t;let i=Tt.parse(t)||Vt.parse(t)||$t.parse(t)||Xi.parse(t);if(i)return i;throw new Error(`Unsupported color format: "${t}"`)},stringify:t=>!t.changed&&t.color?t.color:t.type.is(q.HSL)||t.data.r===void 0?$t.stringify(t):t.a<1||!Number.isInteger(t.r)||!Number.isInteger(t.g)||!Number.isInteger(t.b)?Vt.stringify(t):Tt.stringify(t)},M=yo;var xo=(t,i)=>{let r=M.parse(t);for(let l in i)r[l]=x.channel.clamp[l](i[l]);return M.stringify(r)},ki=xo;var fo=(t,i,r=0,l=1)=>{if(typeof t!="number")return ki(t,{a:i});let s=Ct.set({r:x.channel.clamp.r(t),g:x.channel.clamp.g(i),b:x.channel.clamp.b(r),a:x.channel.clamp.a(l)});return M.stringify(s)},H=fo;var To=(t,i)=>x.lang.round(M.parse(t)[i]),ko=To;var bo=t=>{let{r:i,g:r,b:l}=M.parse(t),s=.2126*x.channel.toLinear(i)+.7152*x.channel.toLinear(r)+.0722*x.channel.toLinear(l);return x.lang.round(s)},te=bo;var Bo=t=>te(t)>=.5,ie=Bo;var So=t=>!ie(t),F=So;var Fo=(t,i,r)=>{let l=M.parse(t),s=l[i],u=x.channel.clamp[i](s+r);return s!==u&&(l[i]=u),M.stringify(l)},wt=Fo;var Lo=(t,i)=>wt(t,"l",i),n=Lo;var vo=(t,i)=>wt(t,"l",-i),c=vo;var Eo=(t,i)=>wt(t,"a",-i),_o=Eo;var Ao=(t,i)=>{let r=M.parse(t),l={};for(let s in i)i[s]&&(l[s]=r[s]+i[s]);return ki(t,l)},e=Ao;var wo=(t,i,r=50)=>{let{r:l,g:s,b:u,a:p}=M.parse(t),{r:b,g:B,b:z,a:Y}=M.parse(i),at=r/100,X=at*2-1,Wt=p-Y,ut=((X*Wt===-1?X:(X+Wt)/(1+X*Wt))+1)/2,Pt=1-ut,lt=l*ut+b*Pt,ht=s*ut+B*Pt,ei=u*ut+z*Pt,Rt=p*at+Y*(1-at);return H(lt,ht,ei,Rt)},re=wo;var Oo=(t,i=100)=>{let r=M.parse(t);return r.r=255-r.r,r.g=255-r.g,r.b=255-r.b,re(r,t,i)},a=Oo;function ee(t,i){(i==null||i>t.length)&&(i=t.length);for(var r=0,l=Array(i);r2?l-2:0),u=2;u1?r-1:0),s=1;s"u"?null:O(BigInt.prototype.toString),ne=typeof Symbol>"u"?null:O(Symbol.prototype.toString),V=O(Object.prototype.hasOwnProperty),Kt=O(Object.prototype.toString),R=O(RegExp.prototype.test),kt=$o(TypeError);function O(t){return function(i){i instanceof RegExp&&(i.lastIndex=0);for(var r=arguments.length,l=new Array(r>1?r-1:0),s=1;s2&&arguments[2]!==void 0?arguments[2]:Zt;if(oe&&oe(t,null),!qt(i))return t;let l=i.length;for(;l--;){let s=i[l];if(typeof s=="string"){let u=r(s);u!==s&&(Wo(i)||(i[l]=u),s=u)}t[s]=!0}return t}function Vo(t){for(let i=0;i/g),ts=D(/\${[\w\W]*/g),is=D(/^data-[\-\w.\u00B7-\uFFFF]+$/),rs=D(/^aria-[\-\w]+$/),ue=D(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),es=D(/^(?:\w+script|data):/i),os=D(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),ss=D(/^html$/i),as=D(/^[a-z][.\w]*(-[.\w]+)+$/i),me=D(/<[/\w!]/g),pe=D(/<[/\w]/g),ls=D(/<\/no(script|embed|frames)/i),hs=D(/\/>/i),K={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,processingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},Te=["style","script","xmp","iframe","noembed","noframes","plaintext","noscript"],ns=I(k({},Te)),cs=(function(){let t={};return bt(Te,i=>{t[i]=D(new RegExp("])","i"))}),I(t)})(),ds=function(){return typeof window>"u"?null:window},Cs=function(i,r){if(typeof i!="object"||typeof i.createPolicy!="function")return null;let l=null,s="data-tt-policy-suffix";r&&r.hasAttribute(s)&&(l=r.getAttribute(s));let u="dompurify"+(l?"#"+l:"");try{return i.createPolicy(u,{createHTML(p){return p},createScriptURL(p){return p}})}catch{return console.warn("TrustedTypes policy "+u+" could not be created."),null}},ye=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},gt=function(i,r,l,s){return V(i,r)&&qt(i[r])?k(s.base?Z(s.base):{},i[r],s.transform):l},ir=function(i,r,l){let s=V(i,r)?i[r]:void 0;return s&&typeof s=="object"?Z(s):l()};function ke(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:ds(),i=g=>ke(g);if(i.version="3.4.15",i.removed=[],!t||!t.document||t.document.nodeType!==K.document||!t.Element)return i.isSupported=!1,i;let r=t.document,l=r,s=l.currentScript;t.DocumentFragment;let u=t.HTMLTemplateElement,p=t.Node,b=t.Element,B=t.NodeFilter,z=t.NamedNodeMap;z===void 0&&(t.NamedNodeMap||t.MozNamedAttrMap),t.HTMLFormElement;let Y=t.DOMParser,at=t.trustedTypes,X=b.prototype,Wt=J(X,"cloneNode"),ri=J(X,"remove"),ut=J(X,"removeAttributeNode"),Pt=J(X,"nextSibling"),lt=J(X,"childNodes"),ht=J(X,"parentNode"),ei=J(X,"shadowRoot"),Rt=J(X,"attributes"),mt=p&&p.prototype?J(p.prototype,"nodeType"):null,Bt=p&&p.prototype?J(p.prototype,"nodeName"):null,oi=p&&p.prototype?J(p.prototype,"ownerDocument"):null,Nt=function(o){return mt?mt(o):o.nodeType},_i=function(o){return Bt?Bt(o):o.nodeName};if(typeof u=="function"){let g=r.createElement("template");g.content&&g.content.ownerDocument&&(r=g.content.ownerDocument)}let j,pt="",Ai,Cr=!1,Ht=0,gr=function(){if(Ht>0)throw kt('A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the "DOMPurify and Trusted Types" section of the README.')},St=function(o){gr(),Ht++;try{return j.createHTML(o)}finally{Ht--}},We=function(o){gr(),Ht++;try{return j.createScriptURL(o)}finally{Ht--}},Pe=function(){return Cr||(Ai=Cs(at,s),Cr=!0),Ai},si=r,wi=si.implementation,ur=si.createNodeIterator,Re=si.createDocumentFragment,Ne=si.getElementsByTagName,He=l.importNode,L=ye();i.isSupported=typeof xe=="function"&&typeof ht=="function"&&wi&&wi.createHTMLDocument!==void 0;let Ue=Jo,je=Qo,Ge=ts,$e=is,Ve=rs,Ye=es,mr=os,Xe=as,pr=ue,v=null,Oi=k({},[...ce,...Zi,...Ji,...Qi,...de]),E=null,qi=k({},[...Ce,...tr,...ge,...bi]),Q=Object.seal(Ot(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),Ut=null,yr=null,nt=Object.seal(Ot(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}})),xr=!0,Mi=!0,fr=!1,Tr=!0,ct=!1,yt=!0,xt=!1,Ii=!1,ai=null,li=null,Di=!1,Ft=!1,hi=!1,ni=!1,kr=!0,br=!1,Br="user-content-",zi=!0,Wi=!1,Lt={},vt=null,Sr=k({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","selectedcontent","style","svg","template","thead","title","video","xmp"]),Fr=null,Lr=k({},["audio","video","img","source","image","track"]),vr=null,Er=k({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),ci="http://www.w3.org/1998/Math/MathML",di="http://www.w3.org/2000/svg",tt="http://www.w3.org/1999/xhtml",Et=tt,Pi=!1,Ri=null,Ke=k({},[ci,di,tt],Ki),_r=I(["mi","mo","mn","ms","mtext"]),Ni=k({},_r),Ar=I(["annotation-xml"]),Hi=k({},Ar),Ze=k({},["title","style","font","a","script"]),jt=null,Je=["application/xhtml+xml","text/html"],Qe="text/html",A=null,_t=null,to=r.createElement("form"),wr=function(o){return o instanceof RegExp||o instanceof Function},Ui=function(){let o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(_t&&_t===o)return;(!o||typeof o!="object")&&(o={}),o=Z(o),jt=Je.indexOf(o.PARSER_MEDIA_TYPE)===-1?Qe:o.PARSER_MEDIA_TYPE,A=jt==="application/xhtml+xml"?Ki:Zt,v=gt(o,"ALLOWED_TAGS",Oi,{transform:A}),E=gt(o,"ALLOWED_ATTR",qi,{transform:A}),Ri=gt(o,"ALLOWED_NAMESPACES",Ke,{transform:Ki}),vr=gt(o,"ADD_URI_SAFE_ATTR",Er,{transform:A,base:Er}),Fr=gt(o,"ADD_DATA_URI_TAGS",Lr,{transform:A,base:Lr}),vt=gt(o,"FORBID_CONTENTS",Sr,{transform:A}),Ut=gt(o,"FORBID_TAGS",Z({}),{transform:A}),yr=gt(o,"FORBID_ATTR",Z({}),{transform:A}),Lt=V(o,"USE_PROFILES")?o.USE_PROFILES&&typeof o.USE_PROFILES=="object"?Z(o.USE_PROFILES):o.USE_PROFILES:!1,xr=o.ALLOW_ARIA_ATTR!==!1,Mi=o.ALLOW_DATA_ATTR!==!1,fr=o.ALLOW_UNKNOWN_PROTOCOLS||!1,Tr=o.ALLOW_SELF_CLOSE_IN_ATTR!==!1,ct=o.SAFE_FOR_TEMPLATES||!1,yt=o.SAFE_FOR_XML!==!1,xt=o.WHOLE_DOCUMENT||!1,Ft=o.RETURN_DOM||!1,hi=o.RETURN_DOM_FRAGMENT||!1,ni=o.RETURN_TRUSTED_TYPE||!1,Di=o.FORCE_BODY||!1,kr=o.SANITIZE_DOM!==!1,br=o.SANITIZE_NAMED_PROPS||!1,zi=o.KEEP_CONTENT!==!1,Wi=o.IN_PLACE||!1,pr=Xo(o.ALLOWED_URI_REGEXP)?o.ALLOWED_URI_REGEXP:ue,Et=typeof o.NAMESPACE=="string"?o.NAMESPACE:tt,Ni=ir(o,"MATHML_TEXT_INTEGRATION_POINTS",()=>k({},_r)),Hi=ir(o,"HTML_INTEGRATION_POINTS",()=>k({},Ar));let h=ir(o,"CUSTOM_ELEMENT_HANDLING",()=>Ot(null));if(Q=Ot(null),V(h,"tagNameCheck")&&wr(h.tagNameCheck)&&(Q.tagNameCheck=h.tagNameCheck),V(h,"attributeNameCheck")&&wr(h.attributeNameCheck)&&(Q.attributeNameCheck=h.attributeNameCheck),V(h,"allowCustomizedBuiltInElements")&&typeof h.allowCustomizedBuiltInElements=="boolean"&&(Q.allowCustomizedBuiltInElements=h.allowCustomizedBuiltInElements),D(Q),ct&&(Mi=!1),hi&&(Ft=!0),Lt&&(v=k({},de),E=Ot(null),Lt.html===!0&&(k(v,ce),k(E,Ce)),Lt.svg===!0&&(k(v,Zi),k(E,tr),k(E,bi)),Lt.svgFilters===!0&&(k(v,Ji),k(E,tr),k(E,bi)),Lt.mathMl===!0&&(k(v,Qi),k(E,ge),k(E,bi))),nt.tagCheck=null,nt.attributeCheck=null,V(o,"ADD_TAGS")&&(typeof o.ADD_TAGS=="function"?nt.tagCheck=o.ADD_TAGS:qt(o.ADD_TAGS)&&(v===Oi&&(v=Z(v)),k(v,o.ADD_TAGS,A))),V(o,"ADD_ATTR")&&(typeof o.ADD_ATTR=="function"?nt.attributeCheck=o.ADD_ATTR:qt(o.ADD_ATTR)&&(E===qi&&(E=Z(E)),k(E,o.ADD_ATTR,A))),V(o,"ADD_FORBID_CONTENTS")&&qt(o.ADD_FORBID_CONTENTS)&&(vt===Sr&&(vt=Z(vt)),k(vt,o.ADD_FORBID_CONTENTS,A)),zi&&(v["#text"]=!0),xt&&k(v,["html","head","body"]),v.table&&(k(v,["tbody"]),delete Ut.tbody),o.TRUSTED_TYPES_POLICY){if(typeof o.TRUSTED_TYPES_POLICY.createHTML!="function")throw kt('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof o.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw kt('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');let C=j;j=o.TRUSTED_TYPES_POLICY;try{pt=St("")}catch(m){throw j=C,m}}else o.TRUSTED_TYPES_POLICY===null?(j=void 0,pt=""):(j===void 0&&(j=Pe()),j&&typeof pt=="string"&&(pt=St("")));I&&I(o),_t=o},Or=k({},[...Zi,...Ji,...Ko]),qr=k({},[...Qi,...Zo]),io=function(o,h,C){return h.namespaceURI===tt?o==="svg":h.namespaceURI===ci?o==="svg"&&(C==="annotation-xml"||Ni[C]):!!Or[o]},ro=function(o,h,C){return h.namespaceURI===tt?o==="math":h.namespaceURI===di?o==="math"&&Hi[C]:!!qr[o]},eo=function(o,h,C){return h.namespaceURI===di&&!Hi[C]||h.namespaceURI===ci&&!Ni[C]?!1:!qr[o]&&(Ze[o]||!Or[o])},oo=function(o){let h=ht(o);(!h||!h.tagName)&&(h={namespaceURI:Et,tagName:"template"});let C=Zt(o.tagName),m=Zt(h.tagName);return Ri[o.namespaceURI]?o.namespaceURI===di?io(C,h,m):o.namespaceURI===ci?ro(C,h,m):o.namespaceURI===tt?eo(C,h,m):!!(jt==="application/xhtml+xml"&&Ri[o.namespaceURI]):!1},dt=function(o){Yt(i.removed,{element:o});try{ht(o).removeChild(o)}catch{if(ri(o),!ht(o))throw kt("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place")}},Mr=function(o,h,C){try{ut(o,h)}catch{try{o.removeAttribute(C)}catch{}}},Ci=function(o){gi(o);let h=lt(o);if(h){let m=[];bt(h,y=>{Yt(m,y)}),bt(m,y=>{try{ri(y)}catch{}})}let C=Rt(o);if(C)for(let m=C.length-1;m>=0;--m){let y=C[m],T=y&&y.name;typeof T=="string"&&Mr(o,y,T)}},ft=function(o,h,C){if(!C)try{C=h.getAttributeNode(o)}catch{C=null}Yt(i.removed,{attribute:C||null,from:h});try{C?ut(h,C):h.removeAttribute(o)}catch{try{h.removeAttribute(o)}catch{}}if(o==="is")if(Ft||hi)try{dt(h)}catch{}else try{h.setAttribute(o,"")}catch{}},so=function(o){let h=Rt(o);if(h)for(let C=h.length-1;C>=0;--C){let m=h[C],y=m&&m.name;typeof y!="string"||E[A(y)]||Mr(o,m,y)}},gi=function(o){let h=[o];for(;h.length>0;){let C=h.pop();Nt(C)===K.element&&so(C);let y=lt(C);if(y)for(let T=y.length-1;T>=0;--T)h.push(y[T])}},Ir=function(o,h){return yt?o==="patchsrc"?!0:o==="for"&&h!=="label"&&h!=="output":!1},ao=function(o){if(!yt)return;let h=[o];for(;h.length>0;){let C=h.pop(),m=Nt(C);if(m===K.processingInstruction||m===K.comment&&R(pe,C.data)){try{ri(C)}catch{}continue}if(m===K.element){let T=C,S=A(_i(C));try{T.hasAttribute&&T.hasAttribute("patchsrc")&&T.removeAttribute("patchsrc"),T.hasAttribute&&T.hasAttribute("for")&&Ir("for",S)&&T.removeAttribute("for")}catch{}}let y=lt(C);if(y)for(let T=y.length-1;T>=0;--T)h.push(y[T])}},Dr=function(o){let h=null,C=null;if(Di)o=""+o;else{let T=ae(o,/^[\r\n\t ]+/);C=T&&T[0]}jt==="application/xhtml+xml"&&Et===tt&&(o=''+o+"");let m=j?St(o):o;if(Et===tt)try{h=new Y().parseFromString(m,jt)}catch{}if(!h||!h.documentElement){h=wi.createDocument(Et,"template",null);try{h.documentElement.innerHTML=Pi?pt:m}catch{}}let y=h.body||h.documentElement;return o&&C&&y.insertBefore(r.createTextNode(C),y.childNodes[0]||null),Et===tt?Ne.call(h,xt?"html":"body")[0]:xt?h.documentElement:y},zr=function(o){let h=oi?oi(o):o.ownerDocument;return ur.call(h||o,o,B.SHOW_ELEMENT|B.SHOW_COMMENT|B.SHOW_TEXT|B.SHOW_PROCESSING_INSTRUCTION|B.SHOW_CDATA_SECTION,null)},ui=function(o){return o=Xt(o,Ue," "),o=Xt(o,je," "),o=Xt(o,Ge," "),o},ji=function(o){var h;o.normalize();let C=oi?oi(o):o.ownerDocument,m=ur.call(C||o,o,B.SHOW_TEXT|B.SHOW_COMMENT|B.SHOW_CDATA_SECTION|B.SHOW_PROCESSING_INSTRUCTION,null),y=m.nextNode();for(;y;)y.data=ui(y.data),y=m.nextNode();let T=(h=o.querySelectorAll)===null||h===void 0?void 0:h.call(o,"template");T&&bt(T,S=>{At(S.content)&&ji(S.content)})},mi=function(o){let h=Bt?Bt(o):null;return typeof h!="string"||A(h)!=="form"?!1:typeof o.nodeName!="string"||typeof o.textContent!="string"||typeof o.removeChild!="function"||o.attributes!==Rt(o)||typeof o.removeAttribute!="function"||typeof o.removeAttributeNode!="function"||typeof o.getAttributeNode!="function"||typeof o.setAttribute!="function"||typeof o.namespaceURI!="string"||typeof o.insertBefore!="function"||typeof o.hasChildNodes!="function"||o.nodeType!==mt(o)||o.childNodes!==lt(o)},At=function(o){if(!mt||typeof o!="object"||o===null)return!1;try{return mt(o)===K.documentFragment}catch{return!1}},Gt=function(o){if(!mt||typeof o!="object"||o===null)return!1;try{return typeof mt(o)=="number"}catch{return!1}};function it(g,o,h){g.length!==0&&bt(g,C=>{C.call(i,o,h,_t)})}let lo=function(o,h){return!!(yt&&o.hasChildNodes()&&!Gt(o.firstElementChild)&&R(me,o.textContent)&&R(me,o.innerHTML)||yt&&o.namespaceURI===tt&&ns[h]&&(Gt(o.firstElementChild)||typeof o.textContent=="string"&&R(cs[h],o.textContent))||o.nodeType===K.processingInstruction||yt&&o.nodeType===K.comment&&R(pe,o.data))},pi=function(o,h){if(o instanceof RegExp)return R(o,h);if(o instanceof Function){for(var C=arguments.length,m=new Array(C>2?C-2:0),y=2;y=0;--S){let _=o===C?Wt(y[S],!0):y[S];m.insertBefore(_,Pt(o))}}}return dt(o),!0},Wr=function(o,h,C,m){return o.length===0?h:h===C||h===m?Z(h):h},Pr=function(o,h){return o===h||ht(o)!==null?!1:(Wi&&gi(o),!0)},Rr=function(o,h){if(it(L.beforeSanitizeElements,o,null),Pr(o,h))return!0;if(mi(o))return dt(o),!0;let C=A(_i(o));if(v=Wr(L.uponSanitizeElement,v,Oi,ai),it(L.uponSanitizeElement,o,{tagName:C,allowedTags:v}),Pr(o,h))return!0;if(lo(o,C))return dt(o),!0;if(Ut[C]||!(nt.tagCheck instanceof Function&&nt.tagCheck(C))&&!v[C]){let y=ho(o,C,h);return y===!1&&it(L.afterSanitizeElements,o,null),y}if(Nt(o)===K.element&&!oo(o)||(C==="noscript"||C==="noembed"||C==="noframes")&&R(ls,o.innerHTML))return dt(o),!0;if(ct&&o.nodeType===K.text){let y=ui(o.textContent);o.textContent!==y&&(Yt(i.removed,{element:o.cloneNode()}),o.textContent=y)}return it(L.afterSanitizeElements,o,null),!1},Nr=function(o,h,C){if(yr[h]||Ir(h,o)||kr&&(h==="id"||h==="name")&&(C in r||C in to))return!1;let m=E[h]||nt.attributeCheck instanceof Function&&nt.attributeCheck(h,o);return Mi&&R($e,h)||xr&&R(Ve,h)?!0:m?vr[h]||R(pr,Xt(C,mr,""))||(h==="src"||h==="xlink:href"||h==="href")&&o!=="script"&&le(C,"data:")===0&&Fr[o]||fr&&!R(Ye,Xt(C,mr,""))?!0:!C:Hr(o)&&pi(Q.tagNameCheck,o)&&pi(Q.attributeNameCheck,h,o)||h==="is"&&Q.allowCustomizedBuiltInElements&&pi(Q.tagNameCheck,C)},no=k({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),Hr=function(o){return!no[Zt(o)]&&R(Xe,o)},co=function(o,h,C,m){if(j&&typeof at=="object"&&typeof at.getAttributeType=="function"&&!C)switch(at.getAttributeType(o,h)){case"TrustedHTML":return St(m);case"TrustedScriptURL":return We(m)}return m},Co=function(o,h,C,m){try{return C?o.setAttributeNS(C,h,m):o.setAttribute(h,m),mi(o)?(dt(o),!1):!0}catch{return ft(h,o),!1}},Ur=function(o){it(L.beforeSanitizeAttributes,o,null);let h=o.attributes;if(!h||mi(o))return;E=Wr(L.uponSanitizeAttribute,E,qi,li);let C={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:E,forceKeepAttr:void 0},m=h.length,y=A(o.nodeName);for(;m--;){let T=h[m],S=T.name,_=T.namespaceURI,G=T.value,$=A(S),$i=G,N=S==="value"?$i:Uo($i),jr=!1;if(C.attrName=$,C.attrValue=N,C.keepAttr=!0,C.forceKeepAttr=void 0,it(L.uponSanitizeAttribute,o,C),N=C.attrValue,br&&($==="id"||$==="name")&&le(N,Br)!==0&&(ft(S,o,T),N=Br+N,jr=!0),yt&&R(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,N)){ft(S,o,T);continue}if($==="attributename"&&ae(N,"href")){ft(S,o,T);continue}if(!C.forceKeepAttr){if(!C.keepAttr){ft(S,o,T);continue}if(!Tr&&R(hs,N)){ft(S,o,T);continue}if(ct&&(N=ui(N)),!Nr(y,$,N)){ft(S,o,T);continue}N=co(y,$,_,N),N!==$i&&Co(o,S,_,N)&&jr&&se(i.removed)}}it(L.afterSanitizeAttributes,o,null)},yi=function(o){let h=null,C=zr(o);for(it(L.beforeSanitizeShadowDOM,o,null);h=C.nextNode();)if(it(L.uponSanitizeShadowNode,h,null),Rr(h,o),Ur(h),At(h.content)&&yi(h.content),Nt(h)===K.element){let m=ei(h);At(m)&&(Gi(m),yi(m))}it(L.afterSanitizeShadowDOM,o,null)},Gi=function(o){let h=[{node:o,shadow:null}];for(;h.length>0;){let C=h.pop();if(C.shadow){yi(C.shadow);continue}let m=C.node,T=Nt(m)===K.element,S=lt(m);if(S)for(let _=S.length-1;_>=0;--_)h.push({node:S[_],shadow:null});if(T){let _=Bt?Bt(m):null;if(typeof _=="string"&&A(_)==="template"){let G=m.content;At(G)&&h.push({node:G,shadow:null})}}if(T){let _=ei(m);At(_)&&h.push({node:null,shadow:_},{node:_,shadow:null})}}};return i.sanitize=function(g){let o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},h=null,C=null,m=null,y=null;if(Pi=!g,Pi&&(g=""),typeof g!="string"&&!Gt(g)&&(g=Yo(g),typeof g!="string"))throw kt("dirty is not a string, aborting");if(!i.isSupported)return g;Ii?(v=ai,E=li):Ui(o),(L.uponSanitizeElement.length>0||L.uponSanitizeAttribute.length>0)&&(v=Z(v)),L.uponSanitizeAttribute.length>0&&(E=Z(E)),i.removed=[];let T=Wi&&typeof g!="string"&&Gt(g);if(T){ao(g);let G=_i(g);if(typeof G=="string"){let $=A(G);if(!v[$]||Ut[$])throw Ci(g),kt("root node is forbidden and cannot be sanitized in-place")}if(mi(g))throw Ci(g),kt("root node is clobbered and cannot be sanitized in-place");try{Gi(g)}catch($){throw Ci(g),$}}else if(Gt(g))h=Dr(""),C=h.ownerDocument.importNode(g,!0),C.nodeType===K.element&&C.nodeName==="BODY"||C.nodeName==="HTML"?h=C:h.appendChild(C),Gi(h);else{if(!Ft&&!ct&&!xt&&g.indexOf("<")===-1)return j&&ni?St(g):g;if(h=Dr(g),!h)return Ft?null:ni?pt:""}h&&Di&&dt(h.firstChild);let S=T?g:h;try{let G=zr(S);for(;m=G.nextNode();)Rr(m,S),Ur(m),At(m.content)&&yi(m.content)}catch(G){throw T&&(Ci(g),bt(i.removed,$=>{$.element&&gi($.element)})),G}if(T)return bt(i.removed,G=>{G.element&&gi(G.element)}),ct&&ji(g),g;if(Ft){if(ct&&ji(h),hi)for(y=Re.call(h.ownerDocument);h.firstChild;)y.appendChild(h.firstChild);else y=h;return(E.shadowroot||E.shadowrootmode)&&(y=He.call(l,y,!0)),y}let _=xt?h.outerHTML:h.innerHTML;return xt&&v["!doctype"]&&h.ownerDocument&&h.ownerDocument.doctype&&h.ownerDocument.doctype.name&&R(ss,h.ownerDocument.doctype.name)&&(_=" +`+_),ct&&(_=ui(_)),j&&ni?St(_):_},i.setConfig=function(){let g=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Ui(g),Ii=!0,ai=v,li=E},i.clearConfig=function(){_t=null,Ii=!1,ai=null,li=null,j=Ai,pt=""},i.isValidAttribute=function(g,o,h){_t||Ui({});let C=A(g),m=A(o);return Nr(C,m,h)},i.addHook=function(g,o){typeof o=="function"&&V(L,g)&&Yt(L[g],o)},i.removeHook=function(g,o){if(V(L,g)){if(o!==void 0){let h=No(L[g],o);return h===-1?void 0:Ho(L[g],h,1)[0]}return se(L[g])}},i.removeHooks=function(g){V(L,g)&&(L[g]=[])},i.removeAllHooks=function(){L=ye()},i}var Mt=ke();var gs=/^([^\S\n\r]*)-{3}\s*[\n\r](.*?)[\n\r]\1-{3}\s*[\n\r]+/s,us=/%{2}{\s*(?:(\w+)\s*:|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,ms=/\s/,ps=d(t=>{let i="",r=0,l=0;for(;lr&&ms.test(t[p-1]);)p--;i+=t.slice(r,p)+` +`,r=u+1,l=r}return i+t.slice(r)},"stripAnyComments"),ys=class extends Error{static{d(this,"UnknownDiagramError")}constructor(t){super(t),this.name="UnknownDiagramError"}},Fi={},ch=d(function(t,i){t=ps(t.replace(gs,"").replace(us,""));for(let[r,{detector:l}]of Object.entries(Fi))if(l(t,i))return r;throw new ys(`No diagram type detected matching given configuration for text: ${t}`)},"detectType"),dh=d((...t)=>{for(let{id:i,detector:r,loader:l}of t)ve(i,r,l)},"registerLazyLoadedDiagrams"),ve=d((t,i,r)=>{Fi[t]&&W.warn(`Detector with key ${t} already exists. Overwriting.`),Fi[t]={detector:i,loader:r},W.debug(`Detector with key ${t} added${r?" with loader":""}`)},"addDetector"),Ch=d(t=>Fi[t].loader,"getDiagramLoader"),or=d((t,i,{depth:r=2}={})=>{let l={depth:r};if(Array.isArray(i)&&!Array.isArray(t))return i.forEach(s=>or(t,s,l)),t;if(Array.isArray(i)&&Array.isArray(t))return i.forEach(s=>{t.includes(s)||t.push(s)}),t;if(t==null||r<=0)return t!=null&&typeof t=="object"&&typeof i=="object"?Object.assign(t,i):i;if(i!=null&&typeof t=="object"&&typeof i=="object"){let s=t;Object.entries(i).forEach(([u,p])=>{if(typeof p=="object"){if(p===null)return;Object.hasOwn(t,u)||Object.defineProperty(t,u,{value:void 0,writable:!0,enumerable:!0,configurable:!0}),s[u]===void 0&&(s[u]=Array.isArray(p)?[]:{}),typeof s[u]=="object"&&(s[u]=or(s[u],p,{depth:r-1}))}else typeof s[u]!="object"&&(Object.hasOwn(t,u)?s[u]=p:Object.defineProperty(t,u,{value:p,writable:!0,enumerable:!0,configurable:!0}))})}return t},"assignWithDepth"),P=or,rt="#ffffff",et="#f2f2f2",f=d((t,i)=>i?e(t,{s:-40,l:10}):e(t,{s:-40,l:-10}),"mkBorder"),xs=class{static{d(this,"Theme")}constructor(){this.background="#f4f4f4",this.primaryColor="#fff4dd",this.noteBkgColor="#fff5ad",this.noteTextColor="#333",this.THEME_COLOR_LIMIT=12,this.radius=5,this.strokeWidth=1,this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.useGradient=!0,this.dropShadow="drop-shadow( 1px 2px 2px rgba(185,185,185,1))"}updateColors(){if(this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#333"),this.secondaryColor=this.secondaryColor||e(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||e(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||f(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||f(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||f(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||f(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#333",this.secondaryTextColor=this.secondaryTextColor||a(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||a(this.tertiaryColor),this.lineColor=this.lineColor||a(this.background),this.arrowheadColor=this.arrowheadColor||a(this.background),this.textColor=this.textColor||this.primaryTextColor,this.border2=this.border2||this.tertiaryBorderColor,this.nodeBkg=this.nodeBkg||this.primaryColor,this.mainBkg=this.mainBkg||this.primaryColor,this.nodeBorder=this.nodeBorder||this.primaryBorderColor,this.clusterBkg=this.clusterBkg||this.tertiaryColor,this.clusterBorder=this.clusterBorder||this.tertiaryBorderColor,this.defaultLinkColor=this.defaultLinkColor||this.lineColor,this.titleColor=this.titleColor||this.tertiaryTextColor,this.edgeLabelBackground=this.edgeLabelBackground||(this.darkMode?c(this.secondaryColor,30):this.secondaryColor),this.flowContainerStroke=this.flowContainerStroke||this.secondaryBorderColor,this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.actorBorder=this.actorBorder||this.primaryBorderColor,this.actorBkg=this.actorBkg||this.mainBkg,this.actorTextColor=this.actorTextColor||this.primaryTextColor,this.actorLineColor=this.actorLineColor||this.actorBorder,this.labelBoxBkgColor=this.labelBoxBkgColor||this.actorBkg,this.signalColor=this.signalColor||this.textColor,this.signalTextColor=this.signalTextColor||this.textColor,this.labelBoxBorderColor=this.labelBoxBorderColor||this.actorBorder,this.labelTextColor=this.labelTextColor||this.actorTextColor,this.loopTextColor=this.loopTextColor||this.actorTextColor,this.activationBorderColor=this.activationBorderColor||c(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||a(this.lineColor),this.rectBkgColor=this.rectBkgColor||this.tertiaryColor,this.sectionBkgColor=this.sectionBkgColor||this.tertiaryColor,this.altSectionBkgColor=this.altSectionBkgColor||"white",this.sectionBkgColor=this.sectionBkgColor||this.secondaryColor,this.sectionBkgColor2=this.sectionBkgColor2||this.primaryColor,this.excludeBkgColor=this.excludeBkgColor||"#eeeeee",this.taskBorderColor=this.taskBorderColor||this.primaryBorderColor,this.taskBkgColor=this.taskBkgColor||this.primaryColor,this.activeTaskBorderColor=this.activeTaskBorderColor||this.primaryColor,this.activeTaskBkgColor=this.activeTaskBkgColor||n(this.primaryColor,23),this.gridColor=this.gridColor||"lightgrey",this.doneTaskBkgColor=this.doneTaskBkgColor||"lightgrey",this.doneTaskBorderColor=this.doneTaskBorderColor||"grey",this.critBorderColor=this.critBorderColor||"#ff8888",this.critBkgColor=this.critBkgColor||"red",this.todayLineColor=this.todayLineColor||"red",this.vertLineColor=this.vertLineColor||"navy",this.taskTextColor=this.taskTextColor||this.textColor,this.taskTextOutsideColor=this.taskTextOutsideColor||this.textColor,this.taskTextLightColor=this.taskTextLightColor||this.textColor,this.taskTextColor=this.taskTextColor||this.primaryTextColor,this.taskTextDarkColor=this.taskTextDarkColor||this.textColor,this.taskTextClickableColor=this.taskTextClickableColor||"#003163",this.noteFontWeight=this.noteFontWeight||"normal",this.fontWeight=this.fontWeight||"normal",this.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,this.darkMode?(this.rowOdd=this.rowOdd||c(this.mainBkg,5)||"#ffffff",this.rowEven=this.rowEven||c(this.mainBkg,10)):(this.rowOdd=this.rowOdd||n(this.mainBkg,75)||"#ffffff",this.rowEven=this.rowEven||n(this.mainBkg,5)),this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||this.tertiaryColor,this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.specialStateColor=this.lineColor,this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||e(this.primaryColor,{h:30}),this.cScale4=this.cScale4||e(this.primaryColor,{h:60}),this.cScale5=this.cScale5||e(this.primaryColor,{h:90}),this.cScale6=this.cScale6||e(this.primaryColor,{h:120}),this.cScale7=this.cScale7||e(this.primaryColor,{h:150}),this.cScale8=this.cScale8||e(this.primaryColor,{h:210,l:150}),this.cScale9=this.cScale9||e(this.primaryColor,{h:270}),this.cScale10=this.cScale10||e(this.primaryColor,{h:300}),this.cScale11=this.cScale11||e(this.primaryColor,{h:330}),this.darkMode)for(let i=0;i{this[r]=t[r]}),this.updateColors(),i.forEach(r=>{this[r]=t[r]}),Object.hasOwn(t,"nodeBorder")&&!Object.hasOwn(t,"useGradient")&&(this.useGradient=!1)}},fs=d(t=>{let i=new xs;return i.calculate(t),i},"getThemeVariables"),Ts=class{static{d(this,"Theme")}constructor(){this.background="#333",this.primaryColor="#1f2020",this.secondaryColor=n(this.primaryColor,16),this.tertiaryColor=e(this.primaryColor,{h:-160}),this.primaryBorderColor=a(this.background),this.secondaryBorderColor=f(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=f(this.tertiaryColor,this.darkMode),this.primaryTextColor=a(this.primaryColor),this.secondaryTextColor=a(this.secondaryColor),this.tertiaryTextColor=a(this.tertiaryColor),this.lineColor=a(this.background),this.textColor=a(this.background),this.mainBkg="#1f2020",this.secondBkg="calculated",this.mainContrastColor="lightgrey",this.darkTextColor=n(a("#323D47"),10),this.lineColor="calculated",this.border1="#ccc",this.border2=H(255,255,255,.25),this.arrowheadColor="calculated",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.labelBackground="#181818",this.textColor="#ccc",this.THEME_COLOR_LIMIT=12,this.radius=5,this.strokeWidth=1,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="#F9FFFE",this.edgeLabelBackground="calculated",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="calculated",this.actorLineColor="calculated",this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="calculated",this.activationBkgColor="calculated",this.sequenceNumberColor="black",this.clusterBkg="#302F3D",this.sectionBkgColor=c("#EAE8D9",30),this.altSectionBkgColor="calculated",this.sectionBkgColor2="#EAE8D9",this.excludeBkgColor=c(this.sectionBkgColor,10),this.taskBorderColor=H(255,255,255,70),this.taskBkgColor="calculated",this.taskTextColor="calculated",this.taskTextLightColor="calculated",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor=H(255,255,255,50),this.activeTaskBkgColor="#81B1DB",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="grey",this.critBorderColor="#E83737",this.critBkgColor="#E83737",this.taskTextDarkColor="calculated",this.todayLineColor="#DB5757",this.vertLineColor="#00BFFF",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.rowOdd=this.rowOdd||n(this.mainBkg,5)||"#ffffff",this.rowEven=this.rowEven||c(this.mainBkg,10),this.labelColor="calculated",this.errorBkgColor="#a44141",this.errorTextColor="#ddd",this.useGradient=!0,this.gradientStart=this.primaryBorderColor,this.gradientStop=this.secondaryBorderColor,this.dropShadow="drop-shadow( 1px 2px 2px rgba(185,185,185,1))",this.noteFontWeight=this.noteFontWeight||"normal",this.fontWeight=this.fontWeight||"normal"}updateColors(){this.secondBkg=n(this.mainBkg,16),this.lineColor=this.mainContrastColor,this.arrowheadColor=this.mainContrastColor,this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.edgeLabelBackground=n(this.labelBackground,25),this.flowContainerStroke=this.flowContainerStroke||this.secondaryBorderColor,this.actorBorder=this.border1,this.actorBkg=this.mainBkg,this.actorTextColor=this.mainContrastColor,this.actorLineColor=this.actorBorder,this.signalColor=this.mainContrastColor,this.signalTextColor=this.mainContrastColor,this.labelBoxBkgColor=this.actorBkg,this.labelBoxBorderColor=this.actorBorder,this.labelTextColor=this.mainContrastColor,this.loopTextColor=this.mainContrastColor,this.noteBorderColor=this.secondaryBorderColor,this.noteBkgColor=this.secondBkg,this.noteTextColor=this.secondaryTextColor,this.activationBorderColor=this.border1,this.activationBkgColor=this.secondBkg,this.rectBkgColor=this.rectBkgColor||this.tertiaryColor,this.altSectionBkgColor=this.background,this.taskBkgColor=n(this.mainBkg,23),this.taskTextColor=this.darkTextColor,this.taskTextLightColor=this.mainContrastColor,this.taskTextOutsideColor=this.taskTextLightColor,this.gridColor=this.mainContrastColor,this.doneTaskBkgColor=this.mainContrastColor,this.taskTextDarkColor=a(this.doneTaskBkgColor),this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#555",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.primaryBorderColor,this.specialStateColor="#f4f4f4",this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=e(this.primaryColor,{h:64}),this.fillType3=e(this.secondaryColor,{h:64}),this.fillType4=e(this.primaryColor,{h:-64}),this.fillType5=e(this.secondaryColor,{h:-64}),this.fillType6=e(this.primaryColor,{h:128}),this.fillType7=e(this.secondaryColor,{h:128}),this.cScale1=this.cScale1||"#0b0000",this.cScale2=this.cScale2||"#4d1037",this.cScale3=this.cScale3||"#3f5258",this.cScale4=this.cScale4||"#4f2f1b",this.cScale5=this.cScale5||"#6e0a0a",this.cScale6=this.cScale6||"#3b0048",this.cScale7=this.cScale7||"#995a01",this.cScale8=this.cScale8||"#154706",this.cScale9=this.cScale9||"#161722",this.cScale10=this.cScale10||"#00296f",this.cScale11=this.cScale11||"#01629c",this.cScale12=this.cScale12||"#010029",this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||e(this.primaryColor,{h:30}),this.cScale4=this.cScale4||e(this.primaryColor,{h:60}),this.cScale5=this.cScale5||e(this.primaryColor,{h:90}),this.cScale6=this.cScale6||e(this.primaryColor,{h:120}),this.cScale7=this.cScale7||e(this.primaryColor,{h:150}),this.cScale8=this.cScale8||e(this.primaryColor,{h:210}),this.cScale9=this.cScale9||e(this.primaryColor,{h:270}),this.cScale10=this.cScale10||e(this.primaryColor,{h:300}),this.cScale11=this.cScale11||e(this.primaryColor,{h:330});for(let t=0;t{this[r]=t[r]}),this.updateColors(),i.forEach(r=>{this[r]=t[r]})}},ks=d(t=>{let i=new Ts;return i.calculate(t),i},"getThemeVariables"),bs=class{static{d(this,"Theme")}constructor(){this.background="#f4f4f4",this.primaryColor="#ECECFF",this.secondaryColor=e(this.primaryColor,{h:120}),this.secondaryColor="#ffffde",this.tertiaryColor=e(this.primaryColor,{h:-160}),this.primaryBorderColor=f(this.primaryColor,this.darkMode),this.secondaryBorderColor=f(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=f(this.tertiaryColor,this.darkMode),this.primaryTextColor=a(this.primaryColor),this.secondaryTextColor=a(this.secondaryColor),this.tertiaryTextColor=a(this.tertiaryColor),this.lineColor=a(this.background),this.textColor=a(this.background),this.background="white",this.mainBkg="#ECECFF",this.secondBkg="#ffffde",this.lineColor="#333333",this.border1="#9370DB",this.primaryBorderColor=f(this.primaryColor,this.darkMode),this.border2="#aaaa33",this.arrowheadColor="#333333",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.labelBackground="rgba(232,232,232, 0.8)",this.textColor="#333",this.THEME_COLOR_LIMIT=12,this.radius=5,this.strokeWidth=1,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="calculated",this.edgeLabelBackground="calculated",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="black",this.actorLineColor="calculated",this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.clusterBkg="#FBFBFF",this.sectionBkgColor="calculated",this.altSectionBkgColor="calculated",this.sectionBkgColor2="calculated",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="calculated",this.taskTextLightColor="calculated",this.taskTextColor=this.taskTextLightColor,this.taskTextDarkColor="calculated",this.taskTextOutsideColor=this.taskTextDarkColor,this.taskTextClickableColor="calculated",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="calculated",this.critBorderColor="calculated",this.critBkgColor="calculated",this.todayLineColor="calculated",this.vertLineColor="calculated",this.sectionBkgColor=H(102,102,255,.49),this.altSectionBkgColor="white",this.sectionBkgColor2="#fff400",this.taskBorderColor="#534fbc",this.taskBkgColor="#8a90dd",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="black",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="#534fbc",this.activeTaskBkgColor="#bfc7ff",this.gridColor="lightgrey",this.doneTaskBkgColor="lightgrey",this.doneTaskBorderColor="grey",this.critBorderColor="#ff8888",this.critBkgColor="red",this.todayLineColor="red",this.vertLineColor="navy",this.noteFontWeight=this.noteFontWeight||"normal",this.fontWeight=this.fontWeight||"normal",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.rowOdd="calculated",this.rowEven="calculated",this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222",this.useGradient=!1,this.gradientStart=this.primaryBorderColor,this.gradientStop=this.secondaryBorderColor,this.dropShadow="drop-shadow(1px 2px 2px rgba(185, 185, 185, 1))",this.updateColors()}updateColors(){this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||e(this.primaryColor,{h:30}),this.cScale4=this.cScale4||e(this.primaryColor,{h:60}),this.cScale5=this.cScale5||e(this.primaryColor,{h:90}),this.cScale6=this.cScale6||e(this.primaryColor,{h:120}),this.cScale7=this.cScale7||e(this.primaryColor,{h:150}),this.cScale8=this.cScale8||e(this.primaryColor,{h:210}),this.cScale9=this.cScale9||e(this.primaryColor,{h:270}),this.cScale10=this.cScale10||e(this.primaryColor,{h:300}),this.cScale11=this.cScale11||e(this.primaryColor,{h:330}),this.cScalePeer1=this.cScalePeer1||c(this.secondaryColor,45),this.cScalePeer2=this.cScalePeer2||c(this.tertiaryColor,40);for(let t=0;t{this[r]==="calculated"&&(this[r]=void 0)}),typeof t!="object"){this.updateColors();return}let i=Object.keys(t);i.forEach(r=>{this[r]=t[r]}),this.updateColors(),i.forEach(r=>{this[r]=t[r]})}},Bs=d(t=>{let i=new bs;return i.calculate(t),i},"getThemeVariables"),Ss=class{static{d(this,"Theme")}constructor(){this.background="#f4f4f4",this.primaryColor="#cde498",this.secondaryColor="#cdffb2",this.background="white",this.mainBkg="#cde498",this.secondBkg="#cdffb2",this.lineColor="green",this.border1="#13540c",this.border2="#6eaa49",this.arrowheadColor="green",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.tertiaryColor=n("#cde498",10),this.primaryBorderColor=f(this.primaryColor,this.darkMode),this.secondaryBorderColor=f(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=f(this.tertiaryColor,this.darkMode),this.primaryTextColor=a(this.primaryColor),this.secondaryTextColor=a(this.secondaryColor),this.tertiaryTextColor=a(this.primaryColor),this.lineColor=a(this.background),this.textColor=a(this.background),this.THEME_COLOR_LIMIT=12,this.radius=5,this.strokeWidth=1,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="#333",this.edgeLabelBackground="#e8e8e8",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="black",this.actorLineColor="calculated",this.signalColor="#333",this.signalTextColor="#333",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="#326932",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.sectionBkgColor="#6eaa49",this.altSectionBkgColor="white",this.sectionBkgColor2="#6eaa49",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="#487e3a",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="black",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="lightgrey",this.doneTaskBkgColor="lightgrey",this.doneTaskBorderColor="grey",this.critBorderColor="#ff8888",this.critBkgColor="red",this.todayLineColor="red",this.vertLineColor="#00BFFF",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.noteFontWeight="normal",this.fontWeight="normal",this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222",this.useGradient=!0,this.gradientStart=this.primaryBorderColor,this.gradientStop=this.secondaryBorderColor,this.dropShadow="drop-shadow( 1px 2px 2px rgba(185,185,185,0.5))"}updateColors(){this.actorBorder=c(this.mainBkg,20),this.actorBkg=this.mainBkg,this.labelBoxBkgColor=this.actorBkg,this.labelTextColor=this.actorTextColor,this.loopTextColor=this.actorTextColor,this.noteBorderColor=this.border2,this.noteTextColor=this.actorTextColor,this.actorLineColor=this.actorBorder,this.rectBkgColor=this.rectBkgColor||this.tertiaryColor,this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||e(this.primaryColor,{h:30}),this.cScale4=this.cScale4||e(this.primaryColor,{h:60}),this.cScale5=this.cScale5||e(this.primaryColor,{h:90}),this.cScale6=this.cScale6||e(this.primaryColor,{h:120}),this.cScale7=this.cScale7||e(this.primaryColor,{h:150}),this.cScale8=this.cScale8||e(this.primaryColor,{h:210}),this.cScale9=this.cScale9||e(this.primaryColor,{h:270}),this.cScale10=this.cScale10||e(this.primaryColor,{h:300}),this.cScale11=this.cScale11||e(this.primaryColor,{h:330}),this.cScalePeer1=this.cScalePeer1||c(this.secondaryColor,45),this.cScalePeer2=this.cScalePeer2||c(this.tertiaryColor,40);for(let t=0;t{this[r]=t[r]}),this.updateColors(),i.forEach(r=>{this[r]=t[r]})}},Fs=d(t=>{let i=new Ss;return i.calculate(t),i},"getThemeVariables"),Ls=class{static{d(this,"Theme")}constructor(){this.primaryColor="#eee",this.contrast="#707070",this.secondaryColor=n(this.contrast,55),this.background="#ffffff",this.tertiaryColor=e(this.primaryColor,{h:-160}),this.primaryBorderColor=f(this.primaryColor,this.darkMode),this.secondaryBorderColor=f(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=f(this.tertiaryColor,this.darkMode),this.primaryTextColor=a(this.primaryColor),this.secondaryTextColor=a(this.secondaryColor),this.tertiaryTextColor=a(this.tertiaryColor),this.lineColor=a(this.background),this.textColor=a(this.background),this.mainBkg="#eee",this.secondBkg="calculated",this.lineColor="#666",this.border1="#999",this.border2="calculated",this.note="#ffa",this.text="#333",this.critical="#d42",this.done="#bbb",this.arrowheadColor="#333333",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.THEME_COLOR_LIMIT=12,this.radius=5,this.strokeWidth=1,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="calculated",this.edgeLabelBackground="white",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="calculated",this.actorLineColor=this.actorBorder,this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="calculated",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.sectionBkgColor="calculated",this.altSectionBkgColor="white",this.sectionBkgColor2="calculated",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="calculated",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="calculated",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="calculated",this.critBkgColor="calculated",this.critBorderColor="calculated",this.todayLineColor="calculated",this.vertLineColor="calculated",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.noteFontWeight="normal",this.fontWeight="normal",this.rowOdd=this.rowOdd||n(this.mainBkg,75)||"#ffffff",this.rowEven=this.rowEven||"#f4f4f4",this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222",this.useGradient=!0,this.gradientStart=this.primaryBorderColor,this.gradientStop=this.secondaryBorderColor,this.dropShadow="drop-shadow( 1px 2px 2px rgba(185,185,185,1))"}updateColors(){this.secondBkg=n(this.contrast,55),this.border2=this.contrast,this.actorBorder=n(this.border1,23),this.actorBkg=this.mainBkg,this.actorTextColor=this.text,this.actorLineColor=this.actorBorder,this.rectBkgColor=this.rectBkgColor||this.tertiaryColor,this.signalColor=this.text,this.signalTextColor=this.text,this.labelBoxBkgColor=this.actorBkg,this.labelBoxBorderColor=this.actorBorder,this.labelTextColor=this.text,this.loopTextColor=this.text,this.noteBorderColor="#999",this.noteBkgColor="#666",this.noteTextColor="#fff",this.cScale0=this.cScale0||"#555",this.cScale1=this.cScale1||"#F4F4F4",this.cScale2=this.cScale2||"#555",this.cScale3=this.cScale3||"#BBB",this.cScale4=this.cScale4||"#777",this.cScale5=this.cScale5||"#999",this.cScale6=this.cScale6||"#DDD",this.cScale7=this.cScale7||"#FFF",this.cScale8=this.cScale8||"#DDD",this.cScale9=this.cScale9||"#BBB",this.cScale10=this.cScale10||"#999",this.cScale11=this.cScale11||"#777";for(let t=0;t{this[r]=t[r]}),this.updateColors(),i.forEach(r=>{this[r]=t[r]})}},vs=d(t=>{let i=new Ls;return i.calculate(t),i},"getThemeVariables"),Es=class{static{d(this,"Theme")}constructor(){this.background="#ffffff",this.primaryColor="#cccccc",this.mainBkg="#ffffff",this.noteBkgColor="#fff5ad",this.noteTextColor="#333",this.THEME_COLOR_LIMIT=12,this.radius=3,this.strokeWidth=2,this.primaryBorderColor=f(this.primaryColor,this.darkMode),this.fontFamily="arial, sans-serif",this.fontSize="14px",this.nodeBorder="#000000",this.stateBorder="#000000",this.useGradient=!0,this.gradientStart="#0042eb",this.gradientStop="#eb0042",this.dropShadow="drop-shadow( 0px 1px 2px rgba(0, 0, 0, 0.25));",this.tertiaryColor="#ffffff",this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.noteFontWeight="normal",this.fontWeight="normal"}updateColors(){this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#333"),this.secondaryColor=this.secondaryColor||e(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||e(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||f(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||f(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||f(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||f(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#333",this.secondaryTextColor=this.secondaryTextColor||a(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||a(this.tertiaryColor),this.lineColor=this.lineColor||a(this.background),this.arrowheadColor=this.arrowheadColor||a(this.background),this.textColor=this.textColor||this.primaryTextColor,this.border2=this.border2||this.tertiaryBorderColor,this.nodeBkg=this.nodeBkg||this.primaryColor,this.mainBkg=this.mainBkg||this.primaryColor,this.nodeBorder=this.nodeBorder||this.primaryBorderColor,this.clusterBkg=this.clusterBkg||this.tertiaryColor,this.clusterBorder=this.clusterBorder||this.tertiaryBorderColor,this.defaultLinkColor=this.defaultLinkColor||this.lineColor,this.titleColor=this.titleColor||this.tertiaryTextColor,this.edgeLabelBackground=this.edgeLabelBackground||(this.darkMode?c(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.flowContainerStroke=this.flowContainerStroke||this.secondaryBorderColor,this.actorBorder=this.actorBorder||this.primaryBorderColor,this.actorBkg=this.actorBkg||this.mainBkg,this.actorTextColor=this.actorTextColor||this.primaryTextColor,this.actorLineColor=this.actorLineColor||this.actorBorder,this.labelBoxBkgColor=this.labelBoxBkgColor||this.actorBkg,this.signalColor=this.signalColor||this.textColor,this.signalTextColor=this.signalTextColor||this.textColor,this.labelBoxBorderColor=this.labelBoxBorderColor||this.actorBorder,this.labelTextColor=this.labelTextColor||this.actorTextColor,this.loopTextColor=this.loopTextColor||this.actorTextColor,this.activationBorderColor=this.activationBorderColor||c(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||a(this.lineColor),this.rectBkgColor=this.rectBkgColor||(F(this.background)?n(this.background,4):c(this.background,4));let t="#ECECFE",i="#E9E9F1",r=e(t,{h:180,l:5});if(this.sectionBkgColor=this.sectionBkgColor||r,this.altSectionBkgColor=this.altSectionBkgColor||"white",this.sectionBkgColor=this.sectionBkgColor||i,this.sectionBkgColor2=this.sectionBkgColor2||t,this.excludeBkgColor=this.excludeBkgColor||"#eeeeee",this.taskBorderColor=this.taskBorderColor||this.primaryBorderColor,this.taskBkgColor=this.taskBkgColor||t,this.activeTaskBorderColor=this.activeTaskBorderColor||t,this.activeTaskBkgColor=this.activeTaskBkgColor||n(t,23),this.gridColor=this.gridColor||"lightgrey",this.doneTaskBkgColor=this.doneTaskBkgColor||"lightgrey",this.doneTaskBorderColor=this.doneTaskBorderColor||"grey",this.critBorderColor=this.critBorderColor||"#ff8888",this.critBkgColor=this.critBkgColor||"red",this.todayLineColor=this.todayLineColor||"red",this.taskTextColor=this.taskTextColor||this.textColor,this.taskTextOutsideColor=this.taskTextOutsideColor||this.textColor,this.vertLineColor=this.vertLineColor||this.primaryBorderColor,this.taskTextLightColor=this.taskTextLightColor||this.textColor,this.taskTextColor=this.taskTextColor||this.primaryTextColor,this.taskTextDarkColor=this.taskTextDarkColor||this.textColor,this.taskTextClickableColor=this.taskTextClickableColor||"#003163",this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f0f0f0",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.specialStateColor=this.lineColor,this.cScale0=this.cScale0||t,this.cScale1=this.cScale1||i,this.cScale2=this.cScale2||r,this.cScale3=this.cScale3||e(t,{h:30}),this.cScale4=this.cScale4||e(t,{h:60}),this.cScale5=this.cScale5||e(t,{h:90}),this.cScale6=this.cScale6||e(t,{h:120}),this.cScale7=this.cScale7||e(t,{h:150}),this.cScale8=this.cScale8||e(t,{h:210,l:150}),this.cScale9=this.cScale9||e(t,{h:270}),this.cScale10=this.cScale10||e(t,{h:300}),this.cScale11=this.cScale11||e(t,{h:330}),this.darkMode)for(let s=0;s{this[r]=t[r]}),this.updateColors(),i.forEach(r=>{this[r]=t[r]})}},_s=d(t=>{let i=new Es;return i.calculate(t),i},"getThemeVariables"),As=class{static{d(this,"Theme")}constructor(){this.background="#333",this.primaryColor="#1f2020",this.secondaryColor=n(this.primaryColor,16),this.tertiaryColor=e(this.primaryColor,{h:-160}),this.primaryBorderColor=a(this.background),this.secondaryBorderColor=f(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=f(this.tertiaryColor,this.darkMode),this.primaryTextColor=a(this.primaryColor),this.secondaryTextColor=a(this.secondaryColor),this.tertiaryTextColor=a(this.tertiaryColor),this.mainBkg="#2a2020",this.secondBkg="calculated",this.mainContrastColor="lightgrey",this.darkTextColor=n(a("#323D47"),10),this.border1="#ccc",this.border2=H(255,255,255,.25),this.arrowheadColor=a(this.background),this.fontFamily="arial, sans-serif",this.fontSize="14px",this.labelBackground="#181818",this.textColor="#ccc",this.THEME_COLOR_LIMIT=12,this.radius=3,this.strokeWidth=1,this.noteBkgColor="#fff5ad",this.noteTextColor="#333",this.THEME_COLOR_LIMIT=12,this.fontFamily="arial, sans-serif",this.fontSize="14px",this.useGradient=!0,this.gradientStart="#0042eb",this.gradientStop="#eb0042",this.dropShadow="drop-shadow( 1px 2px 2px rgba(185,185,185,0.2))",this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.noteFontWeight="normal",this.fontWeight="normal"}updateColors(){if(this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#333"),this.secondaryColor=this.secondaryColor||e(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||e(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||f(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||f(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||f(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||f(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#333",this.secondaryTextColor=this.secondaryTextColor||a(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||a(this.tertiaryColor),this.lineColor=this.lineColor||a(this.background),this.arrowheadColor=this.arrowheadColor||a(this.background),this.textColor=this.textColor||this.primaryTextColor,this.border2=this.border2||this.tertiaryBorderColor,this.nodeBkg=this.nodeBkg||this.primaryColor,this.mainBkg=this.mainBkg||this.primaryColor,this.secondBkg=this.secondBkg==="calculated"?n(this.mainBkg,16):this.secondBkg,this.nodeBorder=this.nodeBorder||this.border1,this.clusterBkg=this.clusterBkg||this.tertiaryColor,this.clusterBorder=this.clusterBorder||this.tertiaryBorderColor,this.defaultLinkColor=this.defaultLinkColor||this.lineColor,this.titleColor=this.titleColor||this.tertiaryTextColor,this.edgeLabelBackground=this.edgeLabelBackground||(this.darkMode?c(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.flowContainerStroke=this.flowContainerStroke||this.secondaryBorderColor,this.actorBorder=this.actorBorder||this.primaryBorderColor,this.actorBkg=this.actorBkg||this.mainBkg,this.actorTextColor=this.actorTextColor||this.primaryTextColor,this.actorLineColor=this.actorLineColor||this.actorBorder,this.labelBoxBkgColor=this.labelBoxBkgColor||this.actorBkg,this.signalColor=this.signalColor||this.textColor,this.signalTextColor=this.signalTextColor||this.textColor,this.labelBoxBorderColor=this.labelBoxBorderColor||this.actorBorder,this.labelTextColor=this.labelTextColor||this.actorTextColor,this.loopTextColor=this.loopTextColor||this.actorTextColor,this.activationBorderColor=this.activationBorderColor||c(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||a(this.lineColor),this.rectBkgColor=this.rectBkgColor||this.tertiaryColor,this.sectionBkgColor=this.sectionBkgColor||this.tertiaryColor,this.altSectionBkgColor=this.altSectionBkgColor||"white",this.sectionBkgColor=this.sectionBkgColor||this.secondaryColor,this.sectionBkgColor2=this.sectionBkgColor2||this.primaryColor,this.excludeBkgColor=this.excludeBkgColor||"#eeeeee",this.taskBorderColor=this.taskBorderColor||this.primaryBorderColor,this.taskBkgColor=this.taskBkgColor||this.primaryColor,this.activeTaskBorderColor=this.activeTaskBorderColor||this.primaryColor,this.activeTaskBkgColor=this.activeTaskBkgColor||n(this.primaryColor,23),this.gridColor=this.gridColor||"lightgrey",this.doneTaskBkgColor=this.doneTaskBkgColor||this.secondBkg,this.doneTaskBorderColor=this.doneTaskBorderColor||"grey",this.critBorderColor=this.critBorderColor||"#ff8888",this.critBkgColor=this.critBkgColor||"red",this.todayLineColor=this.todayLineColor||"red",this.vertLineColor=this.vertLineColor||this.primaryBorderColor,this.taskTextColor=this.taskTextColor||this.textColor,this.taskTextOutsideColor=this.taskTextOutsideColor||this.textColor,this.taskTextLightColor=this.taskTextLightColor||this.textColor,this.taskTextColor=this.taskTextColor||this.primaryTextColor,this.taskTextDarkColor=this.taskTextDarkColor||this.textColor,this.taskTextClickableColor=this.taskTextClickableColor||"#003163",this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f0f0f0",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.specialStateColor=this.lineColor,this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||e(this.primaryColor,{h:30}),this.cScale4=this.cScale4||e(this.primaryColor,{h:60}),this.cScale5=this.cScale5||e(this.primaryColor,{h:90}),this.cScale6=this.cScale6||e(this.primaryColor,{h:120}),this.cScale7=this.cScale7||e(this.primaryColor,{h:150}),this.cScale8=this.cScale8||e(this.primaryColor,{h:210,l:150}),this.cScale9=this.cScale9||e(this.primaryColor,{h:270}),this.cScale10=this.cScale10||e(this.primaryColor,{h:300}),this.cScale11=this.cScale11||e(this.primaryColor,{h:330}),this.darkMode)for(let i=0;i{this[r]=t[r]}),this.updateColors(),i.forEach(r=>{this[r]=t[r]})}},ws=d(t=>{let i=new As;return i.calculate(t),i},"getThemeVariables"),Os=class{static{d(this,"Theme")}constructor(){this.background="#ffffff",this.primaryColor="#cccccc",this.mainBkg="#ffffff",this.noteBkgColor="#fff5ad",this.noteTextColor="#28253D",this.THEME_COLOR_LIMIT=12,this.radius=12,this.strokeWidth=2,this.primaryBorderColor=f("#28253D",this.darkMode),this.fontFamily='"Recursive Variable", arial, sans-serif',this.fontSize="14px",this.nodeBorder="#28253D",this.stateBorder="#28253D",this.useGradient=!1,this.gradientStart="#0042eb",this.gradientStop="#eb0042",this.dropShadow="url(#drop-shadow)",this.nodeShadow=!0,this.tertiaryColor="#ffffff",this.clusterBkg="#F9F9FB",this.clusterBorder="#BDBCCC",this.noteBorderColor="#FACC15",this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.actorBorder="#28253D",this.filterColor="#000000"}updateColors(){this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#28253D"),this.secondaryColor=this.secondaryColor||e(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||e(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||f(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||f(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||f(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||f(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#FEF9C3",this.noteTextColor=this.noteTextColor||"#28253D",this.secondaryTextColor=this.secondaryTextColor||a(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||a(this.tertiaryColor),this.lineColor=this.lineColor||a(this.background),this.arrowheadColor=this.arrowheadColor||a(this.background),this.textColor=this.textColor||this.primaryTextColor,this.border2=this.border2||this.tertiaryBorderColor,this.nodeBkg=this.nodeBkg||this.primaryColor,this.mainBkg=this.mainBkg||this.primaryColor,this.nodeBorder=this.nodeBorder||this.primaryBorderColor,this.clusterBkg=this.clusterBkg||this.tertiaryColor,this.clusterBorder=this.clusterBorder||this.tertiaryBorderColor,this.defaultLinkColor=this.defaultLinkColor||this.lineColor,this.titleColor=this.titleColor||this.tertiaryTextColor,this.edgeLabelBackground=this.edgeLabelBackground||(this.darkMode?c(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.flowContainerStroke=this.flowContainerStroke||this.secondaryBorderColor,this.noteFontWeight=600,this.actorBorder=this.actorBorder||this.primaryBorderColor,this.actorBkg=this.actorBkg||this.mainBkg,this.actorTextColor=this.actorTextColor||this.primaryTextColor,this.actorLineColor=this.actorLineColor||this.actorBorder,this.labelBoxBkgColor=this.labelBoxBkgColor||this.actorBkg,this.signalColor=this.signalColor||this.textColor,this.signalTextColor=this.signalTextColor||this.textColor,this.labelBoxBorderColor=this.labelBoxBorderColor||this.actorBorder,this.labelTextColor=this.labelTextColor||this.actorTextColor,this.loopTextColor=this.loopTextColor||this.actorTextColor,this.activationBorderColor=this.activationBorderColor||c(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||a(this.lineColor),this.rectBkgColor=this.rectBkgColor||(F(this.background)?n(this.background,4):c(this.background,4));let t="#ECECFE",i="#E9E9F1",r=e(t,{h:180,l:5});this.sectionBkgColor=this.sectionBkgColor||r,this.altSectionBkgColor=this.altSectionBkgColor||"white",this.sectionBkgColor=this.sectionBkgColor||i,this.sectionBkgColor2=this.sectionBkgColor2||t,this.excludeBkgColor=this.excludeBkgColor||"#eeeeee",this.taskBorderColor=this.taskBorderColor||this.primaryBorderColor,this.taskBkgColor=this.taskBkgColor||t,this.activeTaskBorderColor=this.activeTaskBorderColor||t,this.activeTaskBkgColor=this.activeTaskBkgColor||n(t,23),this.gridColor=this.gridColor||"lightgrey",this.doneTaskBkgColor=this.doneTaskBkgColor||"lightgrey",this.doneTaskBorderColor=this.doneTaskBorderColor||"grey",this.critBorderColor=this.critBorderColor||"#ff8888",this.critBkgColor=this.critBkgColor||"red",this.todayLineColor=this.todayLineColor||"red",this.taskTextColor=this.taskTextColor||this.textColor,this.vertLineColor=this.vertLineColor||this.primaryBorderColor,this.taskTextOutsideColor=this.taskTextOutsideColor||this.textColor,this.taskTextLightColor=this.taskTextLightColor||this.textColor,this.taskTextColor=this.taskTextColor||this.primaryTextColor,this.taskTextDarkColor=this.taskTextDarkColor||this.textColor,this.taskTextClickableColor=this.taskTextClickableColor||"#003163",this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.compositeTitleBackground="#F9F9FB",this.altBackground="#F9F9FB",this.stateEdgeLabelBackground="#FFFFFF",this.fontWeight=600,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f0f0f0",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.specialStateColor=this.lineColor;for(let s=0;s{this[r]=t[r]}),this.updateColors(),i.forEach(r=>{this[r]=t[r]})}},qs=d(t=>{let i=new Os;return i.calculate(t),i},"getThemeVariables"),Ms=class{static{d(this,"Theme")}constructor(){this.background="#333",this.primaryColor="#1f2020",this.secondaryColor=n(this.primaryColor,16),this.tertiaryColor=e(this.primaryColor,{h:-160}),this.primaryBorderColor=a(this.background),this.secondaryBorderColor=f(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=f(this.tertiaryColor,this.darkMode),this.primaryTextColor=a(this.primaryColor),this.secondaryTextColor=a(this.secondaryColor),this.tertiaryTextColor=a(this.tertiaryColor),this.mainBkg="#111113",this.secondBkg="calculated",this.mainContrastColor="lightgrey",this.darkTextColor=n(a("#323D47"),10),this.border1="#ccc",this.border2=H(255,255,255,.25),this.arrowheadColor=a(this.background),this.fontFamily='"Recursive Variable", arial, sans-serif',this.fontSize="14px",this.labelBackground="#111113",this.textColor="#ccc",this.THEME_COLOR_LIMIT=12,this.radius=12,this.strokeWidth=2,this.noteBkgColor=this.noteBkgColor??"#FEF9C3",this.noteTextColor=this.noteTextColor??"#28253D",this.THEME_COLOR_LIMIT=12,this.fontFamily='"Recursive Variable", arial, sans-serif',this.fontSize="14px",this.nodeBorder="#FFFFFF",this.stateBorder="#FFFFFF",this.useGradient=!1,this.gradientStart="#0042eb",this.gradientStop="#eb0042",this.dropShadow="url(#drop-shadow)",this.nodeShadow=!0,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.clusterBkg="#1E1A2E",this.clusterBorder="#BDBCCC",this.noteBorderColor="#FACC15",this.noteFontWeight=600,this.filterColor="#FFFFFF"}updateColors(){if(this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#FFFFFF"),this.secondaryColor=this.secondaryColor||e(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||e(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||f(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||f(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||f(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||f(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#FFFFFF",this.secondaryTextColor=this.secondaryTextColor||a(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||a(this.tertiaryColor),this.lineColor=this.lineColor||a(this.background),this.arrowheadColor=this.arrowheadColor||a(this.background),this.textColor=this.textColor||this.primaryTextColor,this.border2=this.border2||this.tertiaryBorderColor,this.nodeBkg=this.nodeBkg||this.primaryColor,this.mainBkg=this.mainBkg||this.primaryColor,this.secondBkg=this.secondBkg==="calculated"?n(this.mainBkg,16):this.secondBkg,this.nodeBorder=this.nodeBorder||this.border1,this.clusterBkg=this.clusterBkg||this.tertiaryColor,this.clusterBorder=this.clusterBorder||this.tertiaryBorderColor,this.defaultLinkColor=this.defaultLinkColor||this.lineColor,this.titleColor=this.titleColor||this.tertiaryTextColor,this.edgeLabelBackground=this.edgeLabelBackground||(this.darkMode?c(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.flowContainerStroke=this.flowContainerStroke||this.secondaryBorderColor,this.actorBorder="#FFFFFF",this.signalColor="#FFFFFF",this.labelBoxBorderColor="#BDBCCC",this.actorBorder=this.actorBorder||this.primaryBorderColor,this.actorBkg=this.actorBkg||this.mainBkg,this.actorTextColor=this.actorTextColor||this.primaryTextColor,this.actorLineColor=this.actorLineColor||this.actorBorder,this.labelBoxBkgColor=this.labelBoxBkgColor||this.actorBkg,this.signalColor=this.signalColor||this.textColor,this.signalTextColor=this.signalTextColor||this.textColor,this.labelBoxBorderColor=this.labelBoxBorderColor||this.actorBorder,this.labelTextColor=this.labelTextColor||this.actorTextColor,this.loopTextColor=this.loopTextColor||this.actorTextColor,this.activationBorderColor=this.activationBorderColor||c(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||a(this.lineColor),this.rectBkgColor=this.rectBkgColor||this.tertiaryColor,this.sectionBkgColor=this.sectionBkgColor||this.tertiaryColor,this.altSectionBkgColor=this.altSectionBkgColor||"white",this.sectionBkgColor=this.sectionBkgColor||this.secondaryColor,this.sectionBkgColor2=this.sectionBkgColor2||this.primaryColor,this.excludeBkgColor=this.excludeBkgColor||"#eeeeee",this.taskBorderColor=this.taskBorderColor||this.primaryBorderColor,this.taskBkgColor=this.taskBkgColor||this.primaryColor,this.activeTaskBorderColor=this.activeTaskBorderColor||this.primaryColor,this.activeTaskBkgColor=this.activeTaskBkgColor||n(this.primaryColor,23),this.gridColor=this.gridColor||"lightgrey",this.doneTaskBkgColor=this.doneTaskBkgColor||this.secondBkg,this.doneTaskBorderColor=this.doneTaskBorderColor||"grey",this.critBorderColor=this.critBorderColor||"#ff8888",this.critBkgColor=this.critBkgColor||"red",this.todayLineColor=this.todayLineColor||"red",this.taskTextColor=this.taskTextColor||this.textColor,this.taskTextOutsideColor=this.taskTextOutsideColor||this.textColor,this.taskTextLightColor=this.taskTextLightColor||this.textColor,this.taskTextColor=this.taskTextColor||this.primaryTextColor,this.taskTextDarkColor=this.taskTextDarkColor||this.textColor,this.taskTextClickableColor=this.taskTextClickableColor||"#003163",this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.vertLineColor=this.vertLineColor||this.primaryBorderColor,this.compositeBackground="#16141F",this.altBackground="#16141F",this.compositeTitleBackground="#16141F",this.stateEdgeLabelBackground="#16141F",this.fontWeight=600,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f0f0f0",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.specialStateColor=this.lineColor,this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||e(this.primaryColor,{h:30}),this.cScale4=this.cScale4||e(this.primaryColor,{h:60}),this.cScale5=this.cScale5||e(this.primaryColor,{h:90}),this.cScale6=this.cScale6||e(this.primaryColor,{h:120}),this.cScale7=this.cScale7||e(this.primaryColor,{h:150}),this.cScale8=this.cScale8||e(this.primaryColor,{h:210,l:150}),this.cScale9=this.cScale9||e(this.primaryColor,{h:270}),this.cScale10=this.cScale10||e(this.primaryColor,{h:300}),this.cScale11=this.cScale11||e(this.primaryColor,{h:330}),this.darkMode)for(let i=0;i{this[r]=t[r]}),this.updateColors(),i.forEach(r=>{this[r]=t[r]})}},Is=d(t=>{let i=new Ms;return i.calculate(t),i},"getThemeVariables"),Ds=class{static{d(this,"Theme")}constructor(){this.background="#ffffff",this.primaryColor="#cccccc",this.mainBkg="#ffffff",this.noteBkgColor="#fff5ad",this.noteTextColor="#28253D",this.THEME_COLOR_LIMIT=12,this.radius=12,this.strokeWidth=2,this.primaryBorderColor=f("#28253D",this.darkMode),this.fontFamily='"Recursive Variable", arial, sans-serif',this.fontSize="14px",this.nodeBorder="#28253D",this.stateBorder="#28253D",this.useGradient=!1,this.gradientStart="#0042eb",this.gradientStop="#eb0042",this.dropShadow="url(#drop-shadow)",this.nodeShadow=!0,this.tertiaryColor="#ffffff",this.clusterBkg="#F9F9FB",this.clusterBorder="#BDBCCC",this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.actorBorder="#28253D",this.noteBorderColor="#FACC15",this.noteFontWeight=600,this.borderColorArray=["#E879F9","#2DD4BF","#FB923C","#22D3EE","#4ADE80","#A78BFA","#F87171","#FACC15","#818CF8","#A3E635 ","#38BDF8","#FB7185"],this.bkgColorArray=["#FDF4FF","#F0FDFA","#FFF7ED","#ECFEFF","#F0FDF4","#F5F3FF","#FEF2F2","#FEFCE8","#EEF2FF","#F7FEE7","#F0F9FF","#FFF1F2"],this.usecaseActorBorder="#A78BFA",this.usecaseActorBkg="#F5F3FF",this.usecaseBorder="#2DD4BF",this.usecaseBkg="#F0FDFA",this.usecaseBoundaryBorder="#BDBCCC",this.usecaseBoundaryBkg="#FAFAFC",this.usecaseIncludeLine="#38BDF8",this.usecaseExtendLine="#FB923C",this.filterColor="#000000"}updateColors(){this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#28253D"),this.secondaryColor=this.secondaryColor||e(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||e(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||f(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||f(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||f(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||f(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#28253D",this.secondaryTextColor=this.secondaryTextColor||a(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||a(this.tertiaryColor),this.lineColor=this.lineColor||a(this.background),this.arrowheadColor=this.arrowheadColor||a(this.background),this.textColor=this.textColor||this.primaryTextColor,this.border2=this.border2||this.tertiaryBorderColor,this.nodeBkg=this.nodeBkg||this.primaryColor,this.mainBkg=this.mainBkg||this.primaryColor,this.nodeBorder=this.nodeBorder||this.primaryBorderColor,this.clusterBkg=this.clusterBkg||this.tertiaryColor,this.clusterBorder=this.clusterBorder||this.tertiaryBorderColor,this.defaultLinkColor=this.defaultLinkColor||this.lineColor,this.titleColor=this.titleColor||this.tertiaryTextColor,this.edgeLabelBackground=this.edgeLabelBackground||(this.darkMode?c(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.flowContainerStroke=this.flowContainerStroke||this.secondaryBorderColor,this.actorBorder=this.actorBorder||this.primaryBorderColor,this.actorBkg=this.actorBkg||this.mainBkg,this.actorTextColor=this.actorTextColor||this.primaryTextColor,this.actorLineColor=this.actorLineColor||this.actorBorder,this.labelBoxBkgColor=this.labelBoxBkgColor||this.actorBkg,this.signalColor=this.signalColor||this.textColor,this.signalTextColor=this.signalTextColor||this.textColor,this.labelBoxBorderColor=this.labelBoxBorderColor||this.actorBorder,this.labelTextColor=this.labelTextColor||this.actorTextColor,this.loopTextColor=this.loopTextColor||this.actorTextColor,this.activationBorderColor=this.activationBorderColor||c(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||a(this.lineColor),this.rectBkgColor=this.rectBkgColor||(F(this.background)?n(this.background,4):c(this.background,4));let t="#ECECFE",i="#E9E9F1",r=e(t,{h:180,l:5});this.excludeBkgColor=this.excludeBkgColor||"#eeeeee",this.taskBorderColor=this.taskBorderColor||this.primaryBorderColor,this.taskBkgColor=this.taskBkgColor||t,this.activeTaskBorderColor=this.activeTaskBorderColor||t,this.activeTaskBkgColor=this.activeTaskBkgColor||n(t,23),this.gridColor=this.gridColor||"lightgrey",this.doneTaskBkgColor=this.doneTaskBkgColor||"lightgrey",this.doneTaskBorderColor=this.doneTaskBorderColor||"grey",this.critBorderColor=this.critBorderColor||"#ff8888",this.critBkgColor=this.critBkgColor||"red",this.todayLineColor=this.todayLineColor||"red",this.taskTextColor=this.taskTextColor||this.textColor,this.vertLineColor=this.vertLineColor||this.primaryBorderColor,this.taskTextOutsideColor=this.taskTextOutsideColor||this.textColor,this.taskTextLightColor=this.taskTextLightColor||this.textColor,this.taskTextColor=this.taskTextColor||this.primaryTextColor,this.taskTextDarkColor=this.taskTextDarkColor||this.textColor,this.taskTextClickableColor=this.taskTextClickableColor||"#003163",this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateEdgeLabelBackground=this.stateEdgeLabelBackground||"#FFFFFF",this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#F9F9FB",this.compositeTitleBackground=this.compositeTitleBackground||"#F9F9FB",this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.specialStateColor=this.lineColor,this.cScale0=this.cScale0||"#f4a8ff",this.cScale1=this.cScale1||"#46ecd5",this.cScale2=this.cScale2||"#ffb86a",this.cScale3=this.cScale3||"#dab2ff",this.cScale4=this.cScale4||"#7bf1a8",this.cScale5=this.cScale5||"#c4b4ff",this.cScale6=this.cScale6||"#ffa2a2",this.cScale7=this.cScale7||"#ffdf20",this.cScale8=this.cScale8||"#a3b3ff",this.cScale9=this.cScale9||"#bbf451",this.cScale10=this.cScale10||"#74d4ff",this.cScale11=this.cScale11||"#ffa1ad",this.sectionBkgColor=this.sectionBkgColor||this.cScale0,this.sectionBkgColor2=this.sectionBkgColor2||this.cScale1,this.altSectionBkgColor=this.altSectionBkgColor||"white";for(let s=0;s{this[r]=t[r]}),this.updateColors(),i.forEach(r=>{this[r]=t[r]})}},zs=d(t=>{let i=new Ds;return i.calculate(t),i},"getThemeVariables"),Ws=class{static{d(this,"Theme")}constructor(){this.background="#333",this.primaryColor="#1f2020",this.secondaryColor=n(this.primaryColor,16),this.tertiaryColor=e(this.primaryColor,{h:-160}),this.primaryBorderColor=a(this.background),this.secondaryBorderColor=f(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=f(this.tertiaryColor,this.darkMode),this.primaryTextColor=a(this.primaryColor),this.secondaryTextColor=a(this.secondaryColor),this.tertiaryTextColor=a(this.tertiaryColor),this.mainBkg="#111113",this.secondBkg="calculated",this.mainContrastColor="lightgrey",this.darkTextColor=n(a("#323D47"),10),this.border1="#ccc",this.border2=H(255,255,255,.25),this.arrowheadColor=a(this.background),this.fontFamily='"Recursive Variable", arial, sans-serif',this.fontSize="14px",this.labelBackground="#111113",this.textColor="#ccc",this.THEME_COLOR_LIMIT=12,this.radius=12,this.strokeWidth=2,this.noteBkgColor=this.noteBkgColor??"#FEF9C3",this.noteTextColor=this.noteTextColor??"#28253D",this.THEME_COLOR_LIMIT=12,this.fontFamily='"Recursive Variable", arial, sans-serif',this.fontSize="14px",this.nodeBorder="#FFFFFF",this.stateBorder="#FFFFFF",this.useGradient=!1,this.gradientStart="#0042eb",this.gradientStop="#eb0042",this.dropShadow="url(#drop-shadow)",this.nodeShadow=!0,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.clusterBkg="#1E1A2E",this.clusterBorder="#BDBCCC",this.noteBorderColor="#FACC15",this.noteFontWeight=600,this.borderColorArray=["#E879F9","#2DD4BF","#FB923C","#22D3EE","#4ADE80","#A78BFA","#F87171","#FACC15","#818CF8","#A3E635 ","#38BDF8","#FB7185"],this.bkgColorArray=[],this.usecaseActorBorder="#A78BFA",this.usecaseBorder="#2DD4BF",this.usecaseBoundaryBorder="#BDBCCC",this.usecaseIncludeLine="#38BDF8",this.usecaseExtendLine="#FB923C",this.filterColor="#FFFFFF"}updateColors(){this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#FFFFFF"),this.secondaryColor=this.secondaryColor||e(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||e(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||f(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||f(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||f(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||f(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#FFFFFF",this.secondaryTextColor=this.secondaryTextColor||a(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||a(this.tertiaryColor),this.lineColor=this.lineColor||a(this.background),this.arrowheadColor=this.arrowheadColor||a(this.background),this.textColor=this.textColor||this.primaryTextColor,this.border2=this.border2||this.tertiaryBorderColor,this.nodeBkg=this.nodeBkg||this.primaryColor,this.mainBkg=this.mainBkg||this.primaryColor,this.secondBkg=this.secondBkg==="calculated"?n(this.mainBkg,16):this.secondBkg,this.nodeBorder=this.nodeBorder||this.border1,this.clusterBkg=this.clusterBkg||this.tertiaryColor,this.clusterBorder=this.clusterBorder||this.tertiaryBorderColor,this.defaultLinkColor=this.defaultLinkColor||this.lineColor,this.titleColor=this.titleColor||this.tertiaryTextColor,this.edgeLabelBackground=this.edgeLabelBackground||(this.darkMode?c(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.flowContainerStroke=this.flowContainerStroke||this.secondaryBorderColor,this.actorBorder="#FFFFFF",this.signalColor="#FFFFFF",this.labelBoxBorderColor="#BDBCCC",this.actorBorder=this.actorBorder||this.primaryBorderColor,this.actorBkg=this.actorBkg||this.mainBkg,this.actorTextColor=this.actorTextColor||this.primaryTextColor,this.actorLineColor=this.actorLineColor||this.actorBorder,this.labelBoxBkgColor=this.labelBoxBkgColor||this.actorBkg,this.signalColor=this.signalColor||this.textColor,this.signalTextColor=this.signalTextColor||this.textColor,this.labelBoxBorderColor=this.labelBoxBorderColor||this.actorBorder,this.labelTextColor=this.labelTextColor||this.actorTextColor,this.loopTextColor=this.loopTextColor||this.actorTextColor,this.activationBorderColor=this.activationBorderColor||c(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||a(this.lineColor),this.rectBkgColor=this.rectBkgColor||this.tertiaryColor,this.rootLabelColor="#FFFFFF",this.excludeBkgColor=this.excludeBkgColor||"#eeeeee",this.taskBorderColor=this.taskBorderColor||this.primaryBorderColor,this.taskBkgColor=this.taskBkgColor||this.primaryColor,this.activeTaskBorderColor=this.activeTaskBorderColor||this.primaryColor,this.activeTaskBkgColor=this.activeTaskBkgColor||n(this.primaryColor,23),this.gridColor=this.gridColor||"lightgrey",this.doneTaskBkgColor=this.doneTaskBkgColor||this.secondBkg,this.doneTaskBorderColor=this.doneTaskBorderColor||"grey",this.critBorderColor=this.critBorderColor||"#ff8888",this.critBkgColor=this.critBkgColor||"red",this.todayLineColor=this.todayLineColor||"red",this.taskTextColor=this.taskTextColor||this.textColor,this.vertLineColor=this.vertLineColor||this.primaryBorderColor,this.taskTextOutsideColor=this.taskTextOutsideColor||this.textColor,this.taskTextLightColor=this.taskTextLightColor||this.textColor,this.taskTextColor=this.taskTextColor||this.primaryTextColor,this.taskTextDarkColor=this.taskTextDarkColor||this.textColor,this.taskTextClickableColor=this.taskTextClickableColor||"#003163",this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateEdgeLabelBackground=this.stateEdgeLabelBackground||"#16141F",this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||"#16141F",this.altBackground=this.altBackground||"#16141F",this.compositeTitleBackground=this.compositeTitleBackground||"#16141F",this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.specialStateColor=this.lineColor,this.cScale0=this.cScale0||"#f4a8ff",this.cScale1=this.cScale1||"#46ecd5",this.cScale2=this.cScale2||"#ffb86a",this.cScale3=this.cScale3||"#dab2ff",this.cScale4=this.cScale4||"#7bf1a8",this.cScale5=this.cScale5||"#c4b4ff",this.cScale6=this.cScale6||"#ffa2a2",this.cScale7=this.cScale7||"#ffdf20",this.cScale8=this.cScale8||"#a3b3ff",this.cScale9=this.cScale9||"#bbf451",this.cScale10=this.cScale10||"#74d4ff",this.cScale11=this.cScale11||"#ffa1ad",this.sectionBkgColor=this.sectionBkgColor||this.cScale0,this.sectionBkgColor2=this.sectionBkgColor2||this.cScale1,this.altSectionBkgColor=this.altSectionBkgColor||this.background;for(let r=0;r{this["fillType"+l]=this["fillType"+l]||r});for(let r=0;r{this[r]=t[r]}),this.updateColors(),i.forEach(r=>{this[r]=t[r]})}},Ps=d(t=>{let i=new Ws;return i.calculate(t),i},"getThemeVariables"),It={base:{getThemeVariables:fs},dark:{getThemeVariables:ks},default:{getThemeVariables:Bs},forest:{getThemeVariables:Fs},neutral:{getThemeVariables:vs},neo:{getThemeVariables:_s},"neo-dark":{getThemeVariables:ws},redux:{getThemeVariables:qs},"redux-dark":{getThemeVariables:Is},"redux-color":{getThemeVariables:zs},"redux-dark-color":{getThemeVariables:Ps}},w={flowchart:{useMaxWidth:!0,theme:"redux-color",look:"neo",titleTopMargin:25,subGraphTitleMargin:{top:0,bottom:0},diagramPadding:8,htmlLabels:null,nodeSpacing:50,rankSpacing:50,curve:"basis",padding:15,wrappingWidth:120,minNodeWidth:120,inheritDir:!1},swimlane:{useMaxWidth:!0,theme:"redux-color",look:"neo",layout:"swimlane",lineHops:"arc",ignoreCrossLaneEdges:!0,optimizeRanksByCrossings:!0,automaticLaneOrdering:!1},agentflow:{useMaxWidth:!0,theme:"redux-color",look:"neo",titleTopMargin:25,diagramPadding:8,nodeSpacing:50,rankSpacing:50,wrappingWidth:120,minNodeWidth:120},sequence:{useMaxWidth:!0,theme:"redux-color",look:"neo",hideUnusedParticipants:!1,activationWidth:10,diagramMarginX:50,diagramMarginY:10,actorMargin:50,width:150,height:65,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",mirrorActors:!0,forceMenus:!1,bottomMarginAdj:1,rightAngles:!1,showSequenceNumbers:!1,actorFontSize:14,actorFontFamily:'"Open Sans", sans-serif',actorFontWeight:400,noteFontSize:14,noteFontFamily:'"trebuchet ms", verdana, arial, sans-serif',noteFontWeight:400,noteAlign:"center",messageFontSize:16,messageFontFamily:'"trebuchet ms", verdana, arial, sans-serif',messageFontWeight:400,wrap:!1,wrapPadding:10,labelBoxWidth:50,labelBoxHeight:20},gantt:{useMaxWidth:!0,titleTopMargin:25,barHeight:20,barGap:4,topPadding:50,rightPadding:75,leftPadding:75,gridLineStartPadding:35,fontSize:11,sectionFontSize:11,numberSectionStyles:4,axisFormat:"%Y-%m-%d",topAxis:!1,displayMode:"",weekday:"sunday"},journey:{useMaxWidth:!0,diagramMarginX:50,diagramMarginY:10,leftMargin:150,maxLabelWidth:360,width:150,height:50,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",bottomMarginAdj:1,rightAngles:!1,taskFontSize:14,taskFontFamily:'"Open Sans", sans-serif',taskMargin:50,activationWidth:10,textPlacement:"fo",actorColours:["#8FBC8F","#7CFC00","#00FFFF","#20B2AA","#B0E0E6","#FFFFE0"],sectionFills:["#191970","#8B008B","#4B0082","#2F4F4F","#800000","#8B4513","#00008B"],sectionColours:["#fff"],titleColor:"",titleFontFamily:'"trebuchet ms", verdana, arial, sans-serif',titleFontSize:"4ex"},class:{useMaxWidth:!0,theme:"redux-color",look:"neo",titleTopMargin:25,arrowMarkerAbsolute:!1,dividerMargin:10,padding:5,textHeight:10,htmlLabels:!1,hideEmptyMembersBox:!1,hierarchicalNamespaces:!0},state:{useMaxWidth:!0,theme:"redux-color",look:"neo",layout:"elk",wrappingWidth:120,minNodeWidth:120,titleTopMargin:25,dividerMargin:10,sizeUnit:5,padding:8,textHeight:10,titleShift:-15,noteMargin:10,forkWidth:70,forkHeight:7,miniPadding:2,fontSizeFactor:5.02,fontSize:24,labelHeight:16,edgeLengthFactor:"20",compositTitleSize:35,radius:5},er:{useMaxWidth:!0,theme:"redux-color",look:"neo",titleTopMargin:25,diagramPadding:20,layoutDirection:"TB",minEntityWidth:100,minEntityHeight:75,entityPadding:15,nodeSpacing:140,rankSpacing:80,stroke:"gray",fill:"honeydew",fontSize:12},pie:{useMaxWidth:!0,textPosition:.75,donutHole:0,legendPosition:"right",highlightSlice:""},quadrantChart:{useMaxWidth:!0,chartWidth:500,chartHeight:500,titleFontSize:20,titlePadding:10,quadrantPadding:5,xAxisLabelPadding:5,yAxisLabelPadding:5,xAxisLabelFontSize:16,yAxisLabelFontSize:16,quadrantLabelFontSize:16,quadrantTextTopPadding:5,pointTextPadding:5,pointLabelFontSize:12,pointRadius:5,xAxisPosition:"top",yAxisPosition:"left",quadrantInternalBorderStrokeWidth:1,quadrantExternalBorderStrokeWidth:2},xyChart:{useMaxWidth:!0,width:700,height:500,titleFontSize:20,titlePadding:10,showDataLabel:!1,showDataLabelOutsideBar:!1,showTitle:!0,showLegend:!0,legendFontSize:14,legendPadding:10,xAxis:{$ref:"#/$defs/XYChartAxisConfig",showLabel:!0,labelFontSize:14,labelPadding:5,showTitle:!0,titleFontSize:16,titlePadding:5,showTick:!0,tickLength:5,tickWidth:2,showAxisLine:!0,axisLineWidth:2,labelRotation:0},yAxis:{$ref:"#/$defs/XYChartAxisConfig",showLabel:!0,labelFontSize:14,labelPadding:5,showTitle:!0,titleFontSize:16,titlePadding:5,showTick:!0,tickLength:5,tickWidth:2,showAxisLine:!0,axisLineWidth:2,labelRotation:0},chartOrientation:"vertical",plotReservedSpacePercent:50},requirement:{useMaxWidth:!0,theme:"redux-color",look:"neo",rect_fill:"#f9f9f9",text_color:"#333",rect_border_size:"0.5px",rect_border_color:"#bbb",rect_min_width:200,rect_min_height:200,fontSize:14,rect_padding:10,line_height:20},mindmap:{useMaxWidth:!0,padding:10,maxNodeWidth:200,layoutAlgorithm:"cose-bilkent"},ishikawa:{useMaxWidth:!0,diagramPadding:20},kanban:{useMaxWidth:!0,padding:8,sectionWidth:200,ticketBaseUrl:""},timeline:{useMaxWidth:!0,diagramMarginX:50,diagramMarginY:10,leftMargin:150,width:150,height:50,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",bottomMarginAdj:1,rightAngles:!1,taskFontSize:14,taskFontFamily:'"Open Sans", sans-serif',taskMargin:50,activationWidth:10,textPlacement:"fo",actorColours:["#8FBC8F","#7CFC00","#00FFFF","#20B2AA","#B0E0E6","#FFFFE0"],sectionFills:["#191970","#8B008B","#4B0082","#2F4F4F","#800000","#8B4513","#00008B"],sectionColours:["#fff"],disableMulticolor:!1},gitGraph:{useMaxWidth:!0,titleTopMargin:25,diagramPadding:8,nodeLabel:{width:75,height:100,x:-25,y:0},mainBranchName:"main",mainBranchOrder:0,showCommitLabel:!0,showBranches:!0,rotateCommitLabel:!0,parallelCommits:!1,arrowMarkerAbsolute:!1},c4:{useMaxWidth:!0,diagramMarginX:50,diagramMarginY:10,c4ShapeMargin:50,c4ShapePadding:20,width:216,height:60,boxMargin:10,c4ShapeInRow:4,nextLinePaddingX:0,c4BoundaryInRow:2,personFontSize:14,personFontFamily:'"Open Sans", sans-serif',personFontWeight:"normal",external_personFontSize:14,external_personFontFamily:'"Open Sans", sans-serif',external_personFontWeight:"normal",systemFontSize:14,systemFontFamily:'"Open Sans", sans-serif',systemFontWeight:"normal",external_systemFontSize:14,external_systemFontFamily:'"Open Sans", sans-serif',external_systemFontWeight:"normal",system_dbFontSize:14,system_dbFontFamily:'"Open Sans", sans-serif',system_dbFontWeight:"normal",external_system_dbFontSize:14,external_system_dbFontFamily:'"Open Sans", sans-serif',external_system_dbFontWeight:"normal",system_queueFontSize:14,system_queueFontFamily:'"Open Sans", sans-serif',system_queueFontWeight:"normal",external_system_queueFontSize:14,external_system_queueFontFamily:'"Open Sans", sans-serif',external_system_queueFontWeight:"normal",boundaryFontSize:14,boundaryFontFamily:'"Open Sans", sans-serif',boundaryFontWeight:"normal",messageFontSize:12,messageFontFamily:'"Open Sans", sans-serif',messageFontWeight:"normal",containerFontSize:14,containerFontFamily:'"Open Sans", sans-serif',containerFontWeight:"normal",external_containerFontSize:14,external_containerFontFamily:'"Open Sans", sans-serif',external_containerFontWeight:"normal",container_dbFontSize:14,container_dbFontFamily:'"Open Sans", sans-serif',container_dbFontWeight:"normal",external_container_dbFontSize:14,external_container_dbFontFamily:'"Open Sans", sans-serif',external_container_dbFontWeight:"normal",container_queueFontSize:14,container_queueFontFamily:'"Open Sans", sans-serif',container_queueFontWeight:"normal",external_container_queueFontSize:14,external_container_queueFontFamily:'"Open Sans", sans-serif',external_container_queueFontWeight:"normal",componentFontSize:14,componentFontFamily:'"Open Sans", sans-serif',componentFontWeight:"normal",external_componentFontSize:14,external_componentFontFamily:'"Open Sans", sans-serif',external_componentFontWeight:"normal",component_dbFontSize:14,component_dbFontFamily:'"Open Sans", sans-serif',component_dbFontWeight:"normal",external_component_dbFontSize:14,external_component_dbFontFamily:'"Open Sans", sans-serif',external_component_dbFontWeight:"normal",component_queueFontSize:14,component_queueFontFamily:'"Open Sans", sans-serif',component_queueFontWeight:"normal",external_component_queueFontSize:14,external_component_queueFontFamily:'"Open Sans", sans-serif',external_component_queueFontWeight:"normal",wrap:!0,wrapPadding:10,person_bg_color:"#08427B",person_border_color:"#073B6F",external_person_bg_color:"#686868",external_person_border_color:"#8A8A8A",system_bg_color:"#1168BD",system_border_color:"#3C7FC0",system_db_bg_color:"#1168BD",system_db_border_color:"#3C7FC0",system_queue_bg_color:"#1168BD",system_queue_border_color:"#3C7FC0",external_system_bg_color:"#999999",external_system_border_color:"#8A8A8A",external_system_db_bg_color:"#999999",external_system_db_border_color:"#8A8A8A",external_system_queue_bg_color:"#999999",external_system_queue_border_color:"#8A8A8A",container_bg_color:"#438DD5",container_border_color:"#3C7FC0",container_db_bg_color:"#438DD5",container_db_border_color:"#3C7FC0",container_queue_bg_color:"#438DD5",container_queue_border_color:"#3C7FC0",external_container_bg_color:"#B3B3B3",external_container_border_color:"#A6A6A6",external_container_db_bg_color:"#B3B3B3",external_container_db_border_color:"#A6A6A6",external_container_queue_bg_color:"#B3B3B3",external_container_queue_border_color:"#A6A6A6",component_bg_color:"#85BBF0",component_border_color:"#78A8D8",component_db_bg_color:"#85BBF0",component_db_border_color:"#78A8D8",component_queue_bg_color:"#85BBF0",component_queue_border_color:"#78A8D8",external_component_bg_color:"#CCCCCC",external_component_border_color:"#BFBFBF",external_component_db_bg_color:"#CCCCCC",external_component_db_border_color:"#BFBFBF",external_component_queue_bg_color:"#CCCCCC",external_component_queue_border_color:"#BFBFBF"},sankey:{useMaxWidth:!0,width:600,height:400,linkColor:"gradient",nodeAlignment:"justify",showValues:!0,prefix:"",suffix:"",nodeWidth:10,nodePadding:12,labelStyle:"legacy"},block:{useMaxWidth:!0,padding:8},packet:{useMaxWidth:!0,rowHeight:32,bitWidth:32,bitsPerRow:32,showBits:!0,paddingX:5,paddingY:5},treeView:{useMaxWidth:!0,rowIndent:10,paddingX:5,paddingY:5,lineThickness:1,showIcons:!1,defaultIconPack:"",filenameIcons:{},extensionIcons:{}},architecture:{useMaxWidth:!0,padding:40,iconSize:80,fontSize:16,randomize:!1,nodeSeparation:75,idealEdgeLengthMultiplier:1.5,edgeElasticity:.45,numIter:2500,seed:1},eventmodeling:{useMaxWidth:!0,padding:30,rowHeight:32},radar:{useMaxWidth:!0,width:600,height:600,marginTop:50,marginRight:50,marginBottom:50,marginLeft:50,axisScaleFactor:1,axisLabelFactor:1.05,curveTension:.17},usecase:{useMaxWidth:!0,theme:"redux-color",look:"neo",wrappingWidth:120,minNodeWidth:120,actorFontSize:14,actorFontFamily:'"Open Sans", sans-serif',actorFontWeight:"normal",usecaseFontSize:12,usecaseFontFamily:'"Open Sans", sans-serif',usecaseFontWeight:"normal",nodeSpacing:50,rankSpacing:50,diagramPadding:20,colorScheme:"role"},venn:{useMaxWidth:!0,theme:"redux-color",look:"neo",width:800,height:450,padding:8,useDebugLayout:!1},cynefin:{useMaxWidth:!0,width:800,height:600,padding:40,showDomainDescriptions:!0,boundaryAmplitude:8,seed:0},theme:"default",look:"classic",handDrawnSeed:0,layout:"elk",maxTextSize:5e4,maxEdges:500,darkMode:!1,fontFamily:'"trebuchet ms", verdana, arial, sans-serif;',logLevel:5,securityLevel:"strict",startOnLoad:!0,arrowMarkerAbsolute:!1,secure:["secure","securityLevel","startOnLoad","maxTextSize","suppressErrorRendering","maxEdges"],legacyMathML:!1,forceLegacyMathML:!1,deterministicIds:!1,fontSize:16,markdownAutoWrap:!0,suppressErrorRendering:!1},Ee={...w,deterministicIDSeed:void 0,elk:{mergeEdges:!1,straightenEdges:!0,lineHops:!0,preset:"default",nodePlacementStrategy:void 0,layeringStrategy:void 0,cycleBreakingStrategy:void 0,layeringLayerBound:4,nodePlacementAlignment:void 0,forceNodeModelOrder:!1,considerModelOrder:"NODES_AND_EDGES",keepEntryNodeOnTop:!1},themeCSS:void 0,themeVariables:It.default.getThemeVariables(),sequence:{...w.sequence,messageFont:d(function(){return{fontFamily:this.messageFontFamily,fontSize:this.messageFontSize,fontWeight:this.messageFontWeight}},"messageFont"),noteFont:d(function(){return{fontFamily:this.noteFontFamily,fontSize:this.noteFontSize,fontWeight:this.noteFontWeight}},"noteFont"),actorFont:d(function(){return{fontFamily:this.actorFontFamily,fontSize:this.actorFontSize,fontWeight:this.actorFontWeight}},"actorFont")},class:{theme:w.class?.theme,look:w.class?.look,layout:w.class?.layout,hideEmptyMembersBox:!1,hierarchicalNamespaces:!0},gantt:{...w.gantt,tickInterval:void 0,useWidth:void 0},c4:{...w.c4,useWidth:void 0,personFont:d(function(){return{fontFamily:this.personFontFamily,fontSize:this.personFontSize,fontWeight:this.personFontWeight}},"personFont"),flowchart:{...w.flowchart,inheritDir:!1},external_personFont:d(function(){return{fontFamily:this.external_personFontFamily,fontSize:this.external_personFontSize,fontWeight:this.external_personFontWeight}},"external_personFont"),systemFont:d(function(){return{fontFamily:this.systemFontFamily,fontSize:this.systemFontSize,fontWeight:this.systemFontWeight}},"systemFont"),external_systemFont:d(function(){return{fontFamily:this.external_systemFontFamily,fontSize:this.external_systemFontSize,fontWeight:this.external_systemFontWeight}},"external_systemFont"),system_dbFont:d(function(){return{fontFamily:this.system_dbFontFamily,fontSize:this.system_dbFontSize,fontWeight:this.system_dbFontWeight}},"system_dbFont"),external_system_dbFont:d(function(){return{fontFamily:this.external_system_dbFontFamily,fontSize:this.external_system_dbFontSize,fontWeight:this.external_system_dbFontWeight}},"external_system_dbFont"),system_queueFont:d(function(){return{fontFamily:this.system_queueFontFamily,fontSize:this.system_queueFontSize,fontWeight:this.system_queueFontWeight}},"system_queueFont"),external_system_queueFont:d(function(){return{fontFamily:this.external_system_queueFontFamily,fontSize:this.external_system_queueFontSize,fontWeight:this.external_system_queueFontWeight}},"external_system_queueFont"),containerFont:d(function(){return{fontFamily:this.containerFontFamily,fontSize:this.containerFontSize,fontWeight:this.containerFontWeight}},"containerFont"),external_containerFont:d(function(){return{fontFamily:this.external_containerFontFamily,fontSize:this.external_containerFontSize,fontWeight:this.external_containerFontWeight}},"external_containerFont"),container_dbFont:d(function(){return{fontFamily:this.container_dbFontFamily,fontSize:this.container_dbFontSize,fontWeight:this.container_dbFontWeight}},"container_dbFont"),external_container_dbFont:d(function(){return{fontFamily:this.external_container_dbFontFamily,fontSize:this.external_container_dbFontSize,fontWeight:this.external_container_dbFontWeight}},"external_container_dbFont"),container_queueFont:d(function(){return{fontFamily:this.container_queueFontFamily,fontSize:this.container_queueFontSize,fontWeight:this.container_queueFontWeight}},"container_queueFont"),external_container_queueFont:d(function(){return{fontFamily:this.external_container_queueFontFamily,fontSize:this.external_container_queueFontSize,fontWeight:this.external_container_queueFontWeight}},"external_container_queueFont"),componentFont:d(function(){return{fontFamily:this.componentFontFamily,fontSize:this.componentFontSize,fontWeight:this.componentFontWeight}},"componentFont"),external_componentFont:d(function(){return{fontFamily:this.external_componentFontFamily,fontSize:this.external_componentFontSize,fontWeight:this.external_componentFontWeight}},"external_componentFont"),component_dbFont:d(function(){return{fontFamily:this.component_dbFontFamily,fontSize:this.component_dbFontSize,fontWeight:this.component_dbFontWeight}},"component_dbFont"),external_component_dbFont:d(function(){return{fontFamily:this.external_component_dbFontFamily,fontSize:this.external_component_dbFontSize,fontWeight:this.external_component_dbFontWeight}},"external_component_dbFont"),component_queueFont:d(function(){return{fontFamily:this.component_queueFontFamily,fontSize:this.component_queueFontSize,fontWeight:this.component_queueFontWeight}},"component_queueFont"),external_component_queueFont:d(function(){return{fontFamily:this.external_component_queueFontFamily,fontSize:this.external_component_queueFontSize,fontWeight:this.external_component_queueFontWeight}},"external_component_queueFont"),boundaryFont:d(function(){return{fontFamily:this.boundaryFontFamily,fontSize:this.boundaryFontSize,fontWeight:this.boundaryFontWeight}},"boundaryFont"),messageFont:d(function(){return{fontFamily:this.messageFontFamily,fontSize:this.messageFontSize,fontWeight:this.messageFontWeight}},"messageFont")},pie:{...w.pie,useWidth:984},xyChart:{...w.xyChart,useWidth:void 0},requirement:{...w.requirement,useWidth:void 0},packet:{...w.packet},eventmodeling:{...w.eventmodeling},treeView:{...w.treeView,useWidth:void 0},radar:{...w.radar},usecase:{...w.usecase},railroad:{...w.railroad,fontSize:void 0,fontFamily:void 0,terminalFill:void 0,terminalStroke:void 0,terminalTextColor:void 0,nonTerminalFill:void 0,nonTerminalStroke:void 0,nonTerminalTextColor:void 0,lineColor:void 0,markerFill:void 0,commentFill:void 0,commentStroke:void 0,commentTextColor:void 0,specialFill:void 0,specialStroke:void 0,ruleNameColor:void 0},ishikawa:{...w.ishikawa},sankey:{...w.sankey,nodeColors:void 0},treemap:{useMaxWidth:!0,padding:10,diagramPadding:8,showValues:!0,nodeWidth:100,nodeHeight:40,borderWidth:1,valueFontSize:12,labelFontSize:14,valueFormat:","},venn:{...w.venn},cynefin:{...w.cynefin}},_e=d((t,i="")=>Object.keys(t).reduce((r,l)=>Array.isArray(t[l])?r:typeof t[l]=="object"&&t[l]!==null?[...r,i+l,..._e(t[l],"")]:[...r,i+l],[]),"keyify"),Rs=new Set(_e(Ee,"")),Ns=Ee,Hs={"flowchart-v2":"flowchart","flowchart-elk":"flowchart",classDiagram:"class",stateDiagram:"state",xychart:"xyChart",railroadAbnf:"railroad",railroadEbnf:"railroad",railroadPeg:"railroad"},Us=d(t=>Hs[t]??t,"getDiagramConfigKey"),js={nodeColors:/^#[\da-f]{3,8}$|^rgb\([\d\s%,.]+\)$|^hsl\([\d\s%,.]+\)$|^[a-z]+$/i,filenameIcons:/^[\w-]+(?::[\w-]+)?$/,extensionIcons:/^[\w-]+(?::[\w-]+)?$/},Gs=d((t,i)=>{for(let r of Object.keys(t)){let l=t[r];(r.startsWith("__")||r.includes("proto")||r.includes("constr")||typeof l!="string"||!i.test(l))&&(W.debug("sanitize deleting dictionary entry:",r,l),delete t[r])}},"sanitizeDictionaryConfig"),sr=d(t=>{if(W.debug("sanitizeDirective called with",t),!(typeof t!="object"||t==null)){if(Array.isArray(t)){t.forEach(i=>sr(i));return}for(let i of Object.keys(t)){if(W.debug("Checking key",i),i.startsWith("__")||i.includes("proto")||i.includes("constr")||!Rs.has(i)||t[i]==null){W.debug("sanitize deleting key: ",i),delete t[i];continue}if(typeof t[i]=="object"){let l=js[i];l?Gs(t[i],l):(W.debug("sanitizing object",i),sr(t[i]));continue}let r=["themeCSS","fontFamily","altFontFamily"];for(let l of r)i.includes(l)&&(W.debug("sanitizing css option",i),t[i]=$s(t[i]))}if(t.themeVariables)for(let i of Object.keys(t.themeVariables)){let r=t.themeVariables[i];r?.match&&!r.match(/^[\d "#%(),.;A-Za-z]+$/)&&(t.themeVariables[i]="")}W.debug("After sanitization",t)}},"sanitizeDirective"),$s=d(t=>{let i=0,r=0;for(let l of t){if(it==="theme"?i==="null"||Object.hasOwn(It,i):t!=="look"||Ys.has(i),"isUsableAppearance"),Ks=d((t,i,r)=>t?[t[i]?.[r],t[r]].find(s=>s!==void 0&&Xs(r,s)):void 0,"readAppearance"),Ae=d(t=>!(t===!1||["false","null","0"].includes(String(t).trim().toLowerCase())),"evaluate"),U=P({},ti),Li,vi={},st=[],Jt=P({},ti),Qt,Zs=d((t,i)=>{if(!Qt)return;let r=[i,...[...st].reverse(),vi,ti],l=t[Qt];for(let s of Vs)for(let u of r){let p=Ks(u,Qt,s);if(p!==void 0){t[s]=p,l?.[s]!==void 0&&(l[s]=p);break}}},"resolveAppearance"),zt=d((t,i)=>{let r=P({},t),l={};for(let u of i)we(u),l=P(l,u);if(r=P(r,l),Zs(r,l),(!!l.theme||r.theme!==t.theme)&&r.theme&&Object.hasOwn(It,r.theme)){let u=P({},Li),p=P(u.themeVariables||{},l.themeVariables);r.themeVariables=It[r.theme].getThemeVariables(p)}return Jt=r,ta(Jt),Jt},"updateCurrentConfig"),Fh=d(t=>{Qt=t===void 0?void 0:Us(t),zt(U,st)},"setDiagramConfigScope"),Lh=d(t=>(U=P({},ti),U=P(U,t),vi=P({},t),t.theme&&Object.hasOwn(It,t.theme)&&(U.themeVariables=It[t.theme].getThemeVariables(t.themeVariables)),zt(U,st),U),"setSiteConfig"),vh=d(t=>{Li=P({},t)},"saveConfigFromInitialize"),Eh=d(t=>(U=P(U,t),vi=P(vi,t),zt(U,st),U),"updateSiteConfig"),_h=d(()=>P({},U),"getSiteConfig"),Js=d(t=>(zt(Jt,[t]),lr()),"setConfig"),lr=d(()=>P({},Jt),"getConfig"),we=d(t=>{t&&(["secure",...U.secure??[]].forEach(i=>{Object.hasOwn(t,i)&&(W.debug(`Denied attempt to modify a secure key ${i}`,t[i]),delete t[i])}),Object.keys(t).forEach(i=>{i.startsWith("__")&&delete t[i]}),Object.keys(t).forEach(i=>{typeof t[i]=="string"&&(t[i].includes("<")||t[i].includes(">")||t[i].includes("url(data:"))&&delete t[i],typeof t[i]=="object"&&we(t[i])}))},"sanitize"),Ah=d(t=>{sr(t),t.fontFamily&&!t.themeVariables?.fontFamily&&(t.themeVariables={...t.themeVariables,fontFamily:t.fontFamily}),st.push(t),zt(U,st)},"addDirective"),wh=d((t=U)=>{st=[],Qt=void 0,zt(t,st)},"reset"),Qs={LAZY_LOAD_DEPRECATED:"The configuration options lazyLoadedDiagrams and loadExternalDiagramsAtStartup are deprecated. Please use registerExternalDiagrams instead.",FLOWCHART_HTML_LABELS_DEPRECATED:"flowchart.htmlLabels is deprecated. Please use global htmlLabels instead."},be={},Oe=d(t=>{be[t]||(W.warn(Qs[t]),be[t]=!0)},"issueWarning"),ta=d(t=>{t&&(t.lazyLoadedDiagrams||t.loadExternalDiagramsAtStartup)&&Oe("LAZY_LOAD_DEPRECATED")},"checkConfig"),Oh=d(()=>{let t={};Li&&(t=P(t,Li));for(let i of st)t=P(t,i);return t},"getUserDefinedConfig"),ia=d(t=>(t.flowchart?.htmlLabels!=null&&Oe("FLOWCHART_HTML_LABELS_DEPRECATED"),Ae(t.htmlLabels??t.flowchart?.htmlLabels??!0)),"getEffectiveHtmlLabels"),ii=/<\/?br\s*\/?>/gi,ra=new RegExp(ii.source,"i"),ea=d(t=>t?Ie(t).replace(/\\n/g,"#br#").split("#br#"):[""],"getRows"),oa=(()=>{let t=!1;return()=>{t||(qe(),t=!0)}})();function qe(){let t="data-temp-href-target";Mt.addHook("beforeSanitizeAttributes",i=>{i.tagName==="A"&&i.hasAttribute("target")&&i.setAttribute(t,i.getAttribute("target")??"")}),Mt.addHook("afterSanitizeAttributes",i=>{i.tagName==="A"&&i.hasAttribute(t)&&(i.setAttribute("target",i.getAttribute(t)??""),i.removeAttribute(t),i.getAttribute("target")==="_blank"&&i.setAttribute("rel","noopener"))})}d(qe,"setupDompurifyHooks");var Me=d(t=>(oa(),Mt.sanitize(t)),"removeScript"),Be=d((t,i)=>{if(ia(i)){let r=i.securityLevel;r==="antiscript"||r==="strict"||r==="sandbox"?t=Me(t):r!=="loose"&&(t=Ie(t),t=t.replace(//g,">"),t=t.replace(/=/g,"="),t=ha(t))}return t},"sanitizeMore"),Dt=d((t,i)=>t&&(i.dompurifyConfig?t=Mt.sanitize(Be(t,i),i.dompurifyConfig).toString():t=Mt.sanitize(Be(t,i),{FORBID_TAGS:["style"]}).toString(),t),"sanitizeText"),sa=d((t,i)=>typeof t=="string"?Dt(t,i):t.flat().map(r=>Dt(r,i)),"sanitizeTextOrArray"),aa=d(t=>ra.test(t),"hasBreaks"),la=d(t=>t.split(ii),"splitBreaks"),ha=d(t=>t.replace(/#br#/g,"
    "),"placeholderToBreak"),Ie=d(t=>t.replace(ii,"#br#"),"breakToPlaceholder"),na=d(t=>{let i="";return t&&(i=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,i=CSS.escape(i)),i},"getUrl"),ca=d(function(...t){let i=t.filter(r=>!isNaN(r));return Math.max(...i)},"getMax"),da=d(function(...t){let i=t.filter(r=>!isNaN(r));return Math.min(...i)},"getMin"),Mh=d(function(t){let i=t.split(/(,)/),r=[];for(let l=0;l0&&l+1Math.max(0,t.split(i).length-1),"countOccurrence"),Ca=d((t,i)=>{let r=ar(t,"~"),l=ar(i,"~");return r===1&&l===1},"shouldCombineSets"),ga=d(t=>{let i=ar(t,"~"),r=!1;if(i<=1)return t;i%2!==0&&t.startsWith("~")&&(t=t.substring(1),r=!0);let l=[...t],s=l.indexOf("~"),u=l.lastIndexOf("~");for(;s!==-1&&u!==-1&&s!==u;)l[s]="<",l[u]=">",s=l.indexOf("~"),u=l.lastIndexOf("~");return r&&l.unshift("~"),l.join("")},"processSet"),Se=d(()=>window.MathMLElement!==void 0,"isMathMLSupported"),Bi=/\$\$(.*?)\$\$/g,Fe=d(t=>(t.match(Bi)?.length??0)>0,"hasKatex"),Ih=d(async(t,i)=>{let r=document.createElement("div");r.innerHTML=await ma(t,i),r.id="katex-temp",r.style.visibility="hidden",r.style.position="absolute",r.style.top="0",document.querySelector("body")?.insertAdjacentElement("beforeend",r);let s={width:r.clientWidth,height:r.clientHeight};return r.remove(),s},"calculateMathMLDimensions"),ua=d(async(t,i)=>{if(!Fe(t))return t;if(!(Se()||i.legacyMathML||i.forceLegacyMathML))return t.replace(Bi,"MathML is unsupported in this environment.");{let{default:r}=await import("./katex-Q7NK5RSN.js"),l=i.forceLegacyMathML||!Se()&&i.legacyMathML?"htmlAndMathml":"mathml";return t.split(ii).map(s=>Fe(s)?`
    ${s}
    `:`
    ${s}
    `).join("").replace(Bi,(s,u)=>r.renderToString(u,{throwOnError:!0,displayMode:!0,output:l}).replace(/\n/g," ").replace(//g,""))}return t.replace(Bi,"Katex is not supported in @mermaid-js/tiny. Please use the full mermaid library.")},"renderKatexUnsanitized"),ma=d(async(t,i)=>Dt(await ua(t,i),i),"renderKatexSanitized"),Dh={getRows:ea,sanitizeText:Dt,sanitizeTextOrArray:sa,hasBreaks:aa,splitBreaks:la,lineBreakRegex:ii,removeScript:Me,getUrl:na,evaluate:Ae,getMax:ca,getMin:da},pa=d(function(t,i){for(let r of i)t.attr(r[0],r[1])},"d3Attrs"),ya=d(function(t,i,r){let l=new Map;return r?(l.set("width","100%"),l.set("style",`max-width: ${i}px;`)):(l.set("height",t),l.set("width",i)),l},"calculateSvgSizeAttrs"),xa=d(function(t,i,r,l){let s=ya(i,r,l);pa(t,s)},"configureSvgSize"),fa=d(function(t,i,r,l){let s=i.node().getBBox(),u=s.width,p=s.height;W.info(`SVG bounds: ${u}x${p}`,s);let b=0,B=0;W.info(`Graph bounds: ${b}x${B}`,t),b=u+r*2,B=p+r*2,W.info(`Calculated bounds: ${b}x${B}`),xa(i,B,b,l);let z=`${s.x-r} ${s.y-r} ${s.width+2*r} ${s.height+2*r}`;i.attr("viewBox",z)},"setupGraphViewbox"),Si={};function Ta(t){return[...t.cssRules].map(i=>i.cssText).join(` +`)}d(Ta,"cssStyleSheetToString");var ka=d((t,i,r,l)=>{let s="";return t in Si&&Si[t]?s=Si[t]({...r,svgId:l}):W.warn(`No theme found for ${t}`),`& { + font-family: ${r.fontFamily}; + font-size: ${r.fontSize}; + fill: ${r.textColor} + } + @keyframes edge-animation-frame { + from { + stroke-dashoffset: 0; + } + } + @keyframes dash { + to { + stroke-dashoffset: 0; + } + } + & .edge-animation-slow { + stroke-dasharray: 9,5 !important; + stroke-dashoffset: 900; + animation: dash 50s linear infinite; + stroke-linecap: round; + } + & .edge-animation-fast { + stroke-dasharray: 9,5 !important; + stroke-dashoffset: 900; + animation: dash 20s linear infinite; + stroke-linecap: round; + } + /* Classes common for multiple diagrams */ + + & .error-icon { + fill: ${r.errorBkgColor}; + } + & .error-text { + fill: ${r.errorTextColor}; + stroke: ${r.errorTextColor}; + } + + & .edge-thickness-normal { + stroke-width: ${r.strokeWidth??1}px; + } + & .edge-thickness-thick { + stroke-width: 3.5px + } + & .edge-pattern-solid { + stroke-dasharray: 0; + } + & .edge-thickness-invisible { + stroke-width: 0; + fill: none; + } + & .edge-pattern-dashed{ + stroke-dasharray: 3; + } + .edge-pattern-dotted { + stroke-dasharray: 2; + } + + & .marker { + fill: ${r.lineColor}; + stroke: ${r.lineColor}; + } + & .marker.cross { + stroke: ${r.lineColor}; + } + + & svg { + font-family: ${r.fontFamily}; + font-size: ${r.fontSize}; + } + & p { + margin: 0 + } + + ${s} + .node .neo-node { + stroke: ${r.nodeBorder}; + } + + [data-look="neo"].node rect, [data-look="neo"].cluster rect, [data-look="neo"].node polygon { + stroke: ${r.useGradient?"url("+l+"-gradient)":r.nodeBorder}; + filter: ${r.dropShadow?r.dropShadow.replace("url(#drop-shadow)",`url(${l}-drop-shadow)`):"none"}; + } + [data-look="neo"].swimlane.cluster rect { + filter: none; + } + + + [data-look="neo"].node path { + stroke: ${r.useGradient?"url("+l+"-gradient)":r.nodeBorder}; + stroke-width: ${r.strokeWidth??1}px; + } + + [data-look="neo"].node .outer-path { + filter: ${r.dropShadow?r.dropShadow.replace("url(#drop-shadow)",`url(${l}-drop-shadow)`):"none"}; + } + + [data-look="neo"].node .neo-line path { + stroke: ${r.nodeBorder}; + filter: none; + } + + [data-look="neo"].node circle{ + stroke: ${r.useGradient?"url("+l+"-gradient)":r.nodeBorder}; + filter: ${r.dropShadow?r.dropShadow.replace("url(#drop-shadow)",`url(${l}-drop-shadow)`):"none"}; + } + + [data-look="neo"].node circle .state-start{ + fill: #000000; + } + + [data-look="neo"].icon-shape .icon { + fill: ${r.useGradient?"url("+l+"-gradient)":r.nodeBorder}; + filter: ${r.dropShadow?r.dropShadow.replace("url(#drop-shadow)",`url(${l}-drop-shadow)`):"none"}; + } + + [data-look="neo"].icon-shape .icon-neo path { + stroke: ${r.useGradient?"url("+l+"-gradient)":r.nodeBorder}; + filter: ${r.dropShadow?r.dropShadow.replace("url(#drop-shadow)",`url(${l}-drop-shadow)`):"none"}; + } + + ${i} +`},"getStyles"),ba=d((t,i)=>{i!==void 0&&(Si[t]=i)},"addStylesForDiagram"),zh=ka,De={};Gr(De,{clear:()=>Ba,getAccDescription:()=>va,getAccTitle:()=>Fa,getDiagramTitle:()=>_a,setAccDescription:()=>La,setAccTitle:()=>Sa,setDiagramTitle:()=>Ea});var hr="",nr="",cr="",dr=d(t=>Dt(t,lr()),"sanitizeText"),Ba=d(()=>{hr="",cr="",nr=""},"clear"),Sa=d(t=>{hr=dr(t).replace(/^\s+/g,"")},"setAccTitle"),Fa=d(()=>hr,"getAccTitle"),La=d(t=>{cr=dr(t).replace(/\n\s+/g,` +`)},"setAccDescription"),va=d(()=>cr,"getAccDescription"),Ea=d(t=>{nr=dr(t)},"setDiagramTitle"),_a=d(()=>nr,"getDiagramTitle"),Le=W,Aa=$r,ze=lr,Wh=Js,Ph=ti,wa=d(t=>Dt(t,ze()),"sanitizeText"),Oa=fa,qa=d(()=>De,"getCommonDb"),Ei={},Rh=d((t,i,r)=>{Ei[t]&&Le.warn(`Diagram with id ${t} already registered. Overwriting.`),Ei[t]=i,r&&ve(t,r),ba(t,i.styles),i.injectUtils?.(Le,Aa,ze,wa,Oa,qa(),()=>{})},"registerDiagram"),Nh=d(t=>{if(t in Ei)return Ei[t];throw new Ma(t)},"getDiagram"),Ma=class extends Error{static{d(this,"DiagramNotFoundError")}constructor(t){super(`Diagram ${t} not found.`)}};export{H as a,ko as b,F as c,n as d,c as e,_o as f,Mt as g,gs as h,us as i,ys as j,Fi as k,ch as l,dh as m,Ch as n,P as o,Bs as p,It as q,Ns as r,sr as s,$s as t,ti as u,Ae as v,Fh as w,Lh as x,vh as y,Eh as z,_h as A,Js as B,lr as C,Ah as D,wh as E,Oh as F,ia as G,ii as H,Dt as I,na as J,Mh as K,Fe as L,Ih as M,ma as N,Dh as O,xa as P,fa as Q,Ta as R,zh as S,De as T,Ba as U,Sa as V,Fa as W,La as X,va as Y,Ea as Z,_a as _,ze as $,Wh as aa,Ph as ba,wa as ca,Oa as da,Rh as ea,Nh as fa}; +/*! For license information please see chunk-S4JILX6U.js.LEGAL.txt */ diff --git a/src/frontend/web/von_interface/static/vendor/conversation-visuals/chunk-S4JILX6U.js.LEGAL.txt b/src/frontend/web/von_interface/static/vendor/conversation-visuals/chunk-S4JILX6U.js.LEGAL.txt new file mode 100644 index 000000000..8fb90df8e --- /dev/null +++ b/src/frontend/web/von_interface/static/vendor/conversation-visuals/chunk-S4JILX6U.js.LEGAL.txt @@ -0,0 +1,4 @@ +Bundled license information: + +dompurify/dist/purify.es.mjs: + /*! @license DOMPurify 3.4.15 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.4.15/LICENSE */ diff --git a/src/frontend/web/von_interface/static/vendor/conversation-visuals/chunk-SEHHQ34Z.js b/src/frontend/web/von_interface/static/vendor/conversation-visuals/chunk-SEHHQ34Z.js new file mode 100644 index 000000000..f88ec323b --- /dev/null +++ b/src/frontend/web/von_interface/static/vendor/conversation-visuals/chunk-SEHHQ34Z.js @@ -0,0 +1 @@ +import{a as e,b as o,c,d as t,e as n,g as i,m as u,x as d,y as l}from"./chunk-RVPSGR2P.js";var k=class extends l{static{e(this,"PacketTokenBuilder")}constructor(){super(["packet"])}},m={parser:{TokenBuilder:e(()=>new k,"TokenBuilder"),ValueConverter:e(()=>new d,"ValueConverter")}};function v(s=n){let r=t(c(s),i),a=t(o({shared:r}),u,m);return r.ServiceRegistry.register(a),{shared:r,Packet:a}}e(v,"createPacketServices");export{m as a,v as b}; diff --git a/src/frontend/web/von_interface/static/vendor/conversation-visuals/chunk-SNMBC6G5.js b/src/frontend/web/von_interface/static/vendor/conversation-visuals/chunk-SNMBC6G5.js new file mode 100644 index 000000000..eea30d4e8 --- /dev/null +++ b/src/frontend/web/von_interface/static/vendor/conversation-visuals/chunk-SNMBC6G5.js @@ -0,0 +1 @@ +import{a}from"./chunk-YUSHYV7C.js";var w=a((t,p)=>{let{theme:i,themeVariables:s}=p,{useGradient:c,gradientStart:l,gradientStop:f}=s??{},o=t.attr("id"),h=i?.includes("dark")?"#FFFFFF":"#000000",r=a((g,e,n)=>t.append("defs").append("filter").attr("id",g).attr("height",e).attr("width",e).append("feDropShadow").attr("dx",n).attr("dy",n).attr("stdDeviation",0).attr("flood-opacity","0.06").attr("flood-color",h),"dropShadow");if(r(`${o}-drop-shadow`,"130%","4"),r(`${o}-drop-shadow-small`,"150%","2"),!c)return;let d=t.append("linearGradient").attr("id",`${o}-gradient`).attr("gradientUnits","objectBoundingBox").attr("x1","0%").attr("y1","0%").attr("x2","100%").attr("y2","0%");d.append("svg:stop").attr("offset","0%").attr("stop-color",l).attr("stop-opacity",1),d.append("svg:stop").attr("offset","100%").attr("stop-color",f).attr("stop-opacity",1)},"insertLookDefs");export{w as a}; diff --git a/src/frontend/web/von_interface/static/vendor/conversation-visuals/chunk-T4OFBIBR.js b/src/frontend/web/von_interface/static/vendor/conversation-visuals/chunk-T4OFBIBR.js new file mode 100644 index 000000000..148a59dec --- /dev/null +++ b/src/frontend/web/von_interface/static/vendor/conversation-visuals/chunk-T4OFBIBR.js @@ -0,0 +1 @@ +import{g as o}from"./chunk-TEBTVNCH.js";import{t as f}from"./chunk-EUYVSIXP.js";import{b as h}from"./chunk-XEQL7KGA.js";import{a as s}from"./chunk-YUSHYV7C.js";var T=s(({flowchart:a})=>{let t=a?.subGraphTitleMargin?.top??0,i=a?.subGraphTitleMargin?.bottom??0,r=t+i;return{subGraphTitleTopMargin:t,subGraphTitleBottomMargin:i,subGraphTitleTotalMargin:r}},"getSubGraphTitleMargins"),l=new Map;async function g(a,t,i){let r,e;t.shape==="rect"&&(t.rx&&t.ry?t.shape="roundedRect":t.shape="squareRect");let p=t.shape?o[t.shape]:void 0;if(!p)throw new Error(`No such shape: ${t.shape}. Please check your syntax.`);if(t.link){let c;i.config.securityLevel==="sandbox"?c="_top":t.linkTarget&&(c=t.linkTarget||"_blank"),r=a.insert("svg:a").attr("xlink:href",t.link).attr("target",c??null),e=await p(r,t,i)}else e=await p(a,t,i),r=e;return r.attr("data-look",f(t.look)),t.tooltip&&e.attr("title",t.tooltip),l.set(t.id,r),t.haveCallback&&r.attr("class",r.attr("class")+" clickable"),r}s(g,"insertNode");var k=s((a,t)=>{l.set(t.id,a)},"setNodeElem"),v=s(()=>{l.clear()},"clear"),w=s(a=>{let t=l.get(a.id);h.trace("Transforming node",a.diff,a,"translate("+(a.x-a.width/2-5)+", "+a.width/2+")");let i=8,r=a.diff||0;return a.clusterNode?t.attr("transform","translate("+(a.x+r-a.width/2)+", "+(a.y-a.height/2-i)+")"):t.attr("transform","translate("+a.x+", "+a.y+")"),r},"positionNode");export{T as a,g as b,k as c,v as d,w as e}; diff --git a/src/frontend/web/von_interface/static/vendor/conversation-visuals/chunk-TEBTVNCH.js b/src/frontend/web/von_interface/static/vendor/conversation-visuals/chunk-TEBTVNCH.js new file mode 100644 index 000000000..227bcc8cf --- /dev/null +++ b/src/frontend/web/von_interface/static/vendor/conversation-visuals/chunk-TEBTVNCH.js @@ -0,0 +1,62 @@ +import{a as v}from"./chunk-HVVAQLXH.js";import{a as le,b as vt,d as W,e as R}from"./chunk-IVPOI5SM.js";import{c as Rt,e as pt}from"./chunk-O46DUOKR.js";import{c as ne,d as kt}from"./chunk-C7YISUMK.js";import{g as wt}from"./chunk-6NDAIVIK.js";import{k as At,n as ce,r as Mt,t as Q}from"./chunk-EUYVSIXP.js";import{$ as z,C as $t,G as xt,I as Lt,K as Tt,L as ie,ca as _t,r as re,v as mt}from"./chunk-S4JILX6U.js";import{b as J,h as Z}from"./chunk-XEQL7KGA.js";import{a as b}from"./chunk-YUSHYV7C.js";var fs=1,ps=3;async function Jt(n){let t=n.getElementsByTagName("img");if(!t||t.length===0)return;let s=!Kt(n);await Promise.all([...t].map(l=>new Promise(o=>{function c(){if(l.style.display="flex",l.style.flexDirection="column",s){let f=z().fontSize?z().fontSize:window.getComputedStyle(document.body).fontSize,r=5,[h=re.fontSize]=ce(f),i=h*r+"px";l.style.minWidth=i,l.style.maxWidth=i}else l.style.width="100%";o(l)}b(c,"setupImage"),setTimeout(()=>{l.complete&&c()}),l.addEventListener("error",c),l.addEventListener("load",c)})))}b(Jt,"configureLabelImages");function Kt(n){return n.nodeType===ps?n.textContent?.trim()!=="":n.nodeType!==fs||n.tagName.toLowerCase()==="img"?!1:[...n.childNodes].some(Kt)}b(Kt,"hasTextBesidesImages");var oe=3,us=32,ds=b(async(n,t,s)=>{let l=z(),o=n.insert("g").attr("class",s??"node default").attr("id",t.domId||t.id),c=o.insert("g").attr("class","label").attr("style",Q(t.labelStyle)),r=[{text:typeof t.label=="string"?t.label:t.label?.[0]??"",cssClass:"c4-name"},{text:t.stereotype,cssClass:"c4-type"},...(t.description??[]).map(d=>({text:d,cssClass:"c4-descr"}))].filter(d=>d.text),h=t.width?Math.max(t.width-2*(t.padding??0),us):z().flowchart?.wrappingWidth??200,e=l.c4?.wrap??!0?h:Number.POSITIVE_INFINITY,a=await Promise.all(r.map(async d=>{let x=c.append("g").attr("class",d.cssClass),w=await pt(x,Lt(Mt(d.text??""),l),{useHtmlLabels:!1,markdown:!1,isNode:!0,width:e,style:t.labelStyle},l);return Z(w).selectAll("tspan.text-outer-tspan").attr("text-anchor","middle"),Z(w).selectAll("tspan.text-inner-tspan").attr("font-weight",null).attr("font-style",null),{el:x,box:x.node().getBBox()}})),g=Math.max(...a.map(({box:d})=>d.width),0),y=0;for(let{el:d,box:x}of a)d.attr("transform",`translate(${g/2-x.x-x.width/2}, ${y-x.y})`),y+=x.height+oe;let p=a.length>0?y-oe:0;c.insert("rect",":first-child"),c.attr("transform",`translate(${-g/2}, ${-p/2})`);let u=c.node().getBBox(),m=(t.padding??0)/2;return{shapeSvg:o,bbox:u,halfPadding:m,label:c}},"c4LabelHelper"),he=b((n,t)=>{let{x:s,y:l,width:o,height:c}=n;return o>=t?n:"left"in n?{x:s,y:l,width:t,height:c,top:l,left:s,bottom:l+c,right:s+t,toJSON:b(()=>({}),"toJSON")}:{x:s-(t-o)/2,y:l,width:t,height:c}},"withMinWidth"),X=b(async(n,t,s)=>{if(t.stereotype!==void 0)return ds(n,t,s);let l,o=t.useHtmlLabels||mt(z()?.htmlLabels);s?l=s:l="node default";let c=n.insert("g").attr("class",l).attr("id",t.domId||t.id),f=c.insert("g").attr("class","label").attr("style",Q(t.labelStyle)),r;t.label===void 0?r="":r=typeof t.label=="string"?t.label:t.label[0];let h=!!t.icon||!!t.img,i=t.labelType==="markdown",e=r&&!t.width?t.minWidth??0:0,a=await pt(f,Lt(Mt(r),z()),{useHtmlLabels:o,width:t.width||t.wrappingWidth||z().flowchart?.wrappingWidth,minWidth:e,classes:i?"markdown-node-label":"",style:t.labelStyle,addSvgBackground:h,markdown:i},z()),g=(t?.padding??0)/2,y;if(o){let p=a.children[0],u=Z(a);await Jt(p),y=await Rt.measure(()=>p.getBoundingClientRect()),y=he(y,e),u.attr("width",y.width),u.attr("height",y.height)}else y=await Rt.measure(()=>a.getBBox()),y=he(y,e);return o?f.attr("transform","translate("+-y.width/2+", "+-y.height/2+")"):f.attr("transform","translate(0, "+-y.height/2+")"),t.centerLabel&&f.attr("transform","translate("+-y.width/2+", "+-y.height/2+")"),f.insert("rect",":first-child"),{shapeSvg:c,bbox:y,halfPadding:g,label:f}},"labelHelper"),St=b(async(n,t,s)=>{let l=s.useHtmlLabels??xt(z()),o=n.insert("g").attr("class","label").attr("style",s.labelStyle||""),c=await pt(o,Lt(Mt(t),z()),{useHtmlLabels:l,width:s.width||z()?.flowchart?.wrappingWidth,style:s.labelStyle,addSvgBackground:!!s.icon||!!s.img}),f=s.padding/2,r;if(xt(z())){let h=c.children[0],i=Z(c);r=await Rt.measure(()=>h.getBoundingClientRect()),i.attr("width",r.width),i.attr("height",r.height)}else r=await Rt.measure(()=>c.getBBox());return l?o.attr("transform","translate("+-r.width/2+", "+-r.height/2+")"):o.attr("transform","translate(0, "+-r.height/2+")"),s.centerLabel&&o.attr("transform","translate("+-r.width/2+", "+-r.height/2+")"),o.insert("rect",":first-child"),{shapeSvg:n,bbox:r,halfPadding:f,label:o}},"insertLabel"),H=b((n,t,s)=>{if(s){n.width=s.width,n.height=s.height;return}let l=t.node().getBBox();n.width=l.width,n.height=l.height},"updateNodeBounds"),Y=b((n,t)=>(n.look==="handDrawn"?"rough-node":"node")+" "+n.cssClasses+" "+(t||""),"getNodeClasses");function F(n){let t=n.map((s,l)=>`${l===0?"M":"L"}${s.x},${s.y}`);return t.push("Z"),t.join(" ")}b(F,"createPathFromPoints");function ut(n,t,s,l,o,c){let f=[],h=s-n,i=l-t,e=h/c,a=2*Math.PI/e,g=t+i/2;for(let y=0;y<=50;y++){let p=y/50,u=n+p*h,m=g+o*Math.sin(a*(u-n));f.push({x:u,y:m})}return f}b(ut,"generateFullSineWavePoints");function lt(n,t,s,l,o,c){let f=[],r=o*Math.PI/180,e=(c*Math.PI/180-r)/(l-1);for(let a=0;ah.tagName==="path"),s=document.createElementNS("http://www.w3.org/2000/svg","path"),l=t.map(h=>h.getAttribute("d")).filter(h=>h!==null).join(" ");s.setAttribute("d",l);let o=t.find(h=>h.getAttribute("fill")!=="none"),c=t.find(h=>h.getAttribute("stroke")!=="none"),f=b((h,i)=>h?.getAttribute(i)??void 0,"getAttr");if(o){let h={fill:f(o,"fill"),"fill-opacity":f(o,"fill-opacity")??"1"};Object.entries(h).forEach(([i,e])=>{e&&s.setAttribute(i,e)})}if(c){let h={stroke:f(c,"stroke"),"stroke-width":f(c,"stroke-width")??"1","stroke-opacity":f(c,"stroke-opacity")??"1"};Object.entries(h).forEach(([i,e])=>{e&&s.setAttribute(i,e)})}let r=document.createElementNS("http://www.w3.org/2000/svg","g");return r.appendChild(s),r}b(zt,"mergePaths");var ms=b((n,t)=>{var s=n.x,l=n.y,o=t.x-s,c=t.y-l,f=n.width/2,r=n.height/2,h,i;return Math.abs(c)*f>Math.abs(o)*r?(c<0&&(r=-r),h=c===0?0:r*o/c,i=r):(o<0&&(f=-f),h=f,i=o===0?0:f*c/o),{x:s+h,y:l+i}},"intersectRect"),xs=ms;function He(n,t){return n.intersect(t)}b(He,"intersectNode");var ws=He;function Ie(n,t,s,l){var o=n.x,c=n.y,f=o-l.x,r=c-l.y,h=Math.sqrt(t*t*r*r+s*s*f*f),i=Math.abs(t*s*f/h);l.x0}b(Vt,"sameSign");var Ss=We;function Te(n,t,s){let l=n.x,o=n.y,c=[],f=Number.POSITIVE_INFINITY,r=Number.POSITIVE_INFINITY;typeof t.forEach=="function"?t.forEach(function(e){f=Math.min(f,e.x),r=Math.min(r,e.y)}):(f=Math.min(f,t.x),r=Math.min(r,t.y));let h=l-n.width/2-f,i=o-n.height/2-r;for(let e=0;e1&&c.sort(function(e,a){let g=e.x-s.x,y=e.y-s.y,p=Math.sqrt(g*g+y*y),u=a.x-s.x,m=a.y-s.y,d=Math.sqrt(u*u+m*m);return p["M",n+o,t,"H",n+s-o,"A",o,o,0,0,1,n+s,t+o,"V",t+l-o,"A",o,o,0,0,1,n+s-o,t+l,"H",n+o,"A",o,o,0,0,1,n,t+l-o,"V",t+o,"A",o,o,0,0,1,n+o,t,"Z"].join(" "),"createRoundedRectPathD"),vs=b(async(n,t,s,l=!1,o=!1)=>{let c=t||"";typeof c=="object"&&(c=c[0]);let f=z(),r=xt(f);return await pt(n,c,{style:s,isTitle:l,useHtmlLabels:r,markdown:!1,isNode:o,width:Number.POSITIVE_INFINITY},f)},"createLabel"),ge=vs;function _e(n,t){let{labelStyles:s}=W(t);t.labelStyle=s;let l=Y(t),o=l;l||(o="anchor");let c=n.insert("g").attr("class",o).attr("id",t.domId||t.id),f=1,{cssStyles:r}=t,h=v.svg(c),i=R(t,{fill:"black",stroke:"none",fillStyle:"solid"});t.look!=="handDrawn"&&(i.roughness=0);let e=h.circle(0,0,f*2,i),a=c.insert(()=>e,":first-child");return a.attr("class","anchor").attr("style",Q(r)),H(t,a),t.intersect=function(g){return J.info("Circle intersect",t,f,g),N.circle(t,f,g)},c}b(_e,"anchor");function Zt(n,t,s,l,o,c,f){let h=(n+s)/2,i=(t+l)/2,e=Math.atan2(l-t,s-n),a=(s-n)/2,g=(l-t)/2,y=a/o,p=g/c,u=Math.sqrt(y**2+p**2);if(u>1)throw new Error("The given radii are too small to create an arc between the points.");let m=Math.sqrt(1-u**2),d=h+m*c*Math.sin(e)*(f?-1:1),x=i-m*o*Math.cos(e)*(f?-1:1),w=Math.atan2((t-x)/c,(n-d)/o),$=Math.atan2((l-x)/c,(s-d)/o)-w;f&&$<0&&($+=2*Math.PI),!f&&$>0&&($-=2*Math.PI);let M=[];for(let k=0;k<20;k++){let P=k/19,_=w+P*$,B=d+o*Math.cos(_),C=x+c*Math.sin(_);M.push({x:B,y:C})}return M}b(Zt,"generateArcPoints");function Ye(n,t,s){let[l,o]=[t,s].sort((c,f)=>f-c);return o*(1-Math.sqrt(1-(n/l/2)**2))}b(Ye,"calculateArcSagitta");async function Oe(n,t){let{labelStyles:s,nodeStyles:l}=W(t);t.labelStyle=s;let o=t.padding??0,c=t.look==="neo"?16:o,f=t.look==="neo"?12:o,r=b(_=>_+f,"calcTotalHeight"),h=b(_=>{let B=_/2;return[B/(2.5+_/50),B]},"calcEllipseRadius"),{shapeSvg:i,bbox:e}=await X(n,t,Y(t)),a=r(t?.height?t?.height:e.height),[g,y]=h(a),p=Ye(a,g,y),m=(t?.width?t?.width:e.width)+c*2+p-p,d=a,{cssStyles:x}=t,w=[{x:m/2,y:-d/2},{x:-m/2,y:-d/2},...Zt(-m/2,-d/2,-m/2,d/2,g,y,!1),{x:m/2,y:d/2},...Zt(m/2,d/2,m/2,-d/2,g,y,!0)],S=v.svg(i),$=R(t,{});t.look!=="handDrawn"&&($.roughness=0,$.fillStyle="solid");let M=F(w),k=S.path(M,$),P=i.insert(()=>k,":first-child");return P.attr("class","basic label-container outer-path"),x&&t.look!=="handDrawn"&&P.selectAll("path").attr("style",x),l&&t.look!=="handDrawn"&&P.selectAll("path").attr("style",l),P.attr("transform",`translate(${g/2}, 0)`),H(t,P),t.intersect=function(_){return N.polygon(t,w,_)},i}b(Oe,"bowTieRect");async function Xe(n,t,{config:{themeVariables:s}}){let{labelStyles:l,nodeStyles:o}=W(t);t.labelStyle=l;let{shapeSvg:c,bbox:f,label:r}=await X(n,t,Y(t)),h=s?.nodeBorder??s?.lineColor??"currentColor",i=t.padding??12,e=Math.max(f.width+i*2,t.width??0,80),a=Math.max(Math.min(e*.08,12),5),g=Math.max(f.height+i*2+a,t.height??0),y=-g/2+a,p=g/2,u=e*.72,m=[`M${-e/2},${y}`,`L${-u/2},${p}`,`A${u/2},${a} 0 0 0 ${u/2},${p}`,`L${e/2},${y}`,`A${e/2},${a} 0 0 0 ${-e/2},${y}`,"Z"].join(" "),{cssStyles:d}=t,x=c.insert("g",":first-child").attr("class","basic label-container");if(t.look==="handDrawn"){let P=v.svg(c).path(m,R(t,{}));x.node()?.appendChild(P),d&&x.attr("style",d)}else x.append("path").attr("d",m).attr("style",o);x.append("ellipse").attr("cx",0).attr("cy",y).attr("rx",e/2).attr("ry",a).attr("style",`fill:none;stroke:${h};stroke-width:1px`),H(t,x);let w=y+(p-y)/2;r.attr("transform",`translate(${-(f.width/2)-(f.x-(f.left??0))}, ${w-f.height/2-(f.y-(f.top??0))})`);let S=12,$=b((k,P,_)=>Array.from({length:S+1},(B,C)=>{let I=Math.PI-C*Math.PI/S;return{x:k*Math.cos(I),y:P+_*a*Math.sin(I)}}),"arc"),M=[...$(e/2,y,-1),...$(u/2,p,1).reverse()];return t.intersect=function(k){return N.polygon(t,M,k)},c}b(Xe,"bucket");var Yt=20,Ot=8,ks=80,Ms=8;function je(n){let{themeVariables:t}=z(),s=t.clusterBkg,l=t.clusterBorder;return n==="flow"?{rx:10,fill:"none",stroke:t.flowContainerStroke||t.secondaryBorderColor,strokeWidth:.75,cssClass:"flow-collapsed"}:{rx:Ms,fill:s,stroke:l,cssClass:"collapsed-group"}}b(je,"getCollapsedStyle");async function Ge(n,t){let s=je(t.metadata?.containerType),{fill:l,stroke:o}=s,{nodeStyles:c}=W(t),{shapeSvg:f,bbox:r}=await X(n,t,Y(t)),{theme:h,themeVariables:i}=z();wt(f,t.colorIndex,h,i.borderColorArray);let e=t.padding??8,a=r.height,g=Math.max(r.width+e*2,ks,t?.width??0),y=Math.max(a+Ot+Yt+e*2,t?.height??0),p=-g/2,u=-y/2,m=-(Ot+Yt)/2,d=f.select(".label");d&&(t.useHtmlLabels??xt(z())?d.attr("transform",`translate(${-r.width/2}, ${-r.height/2+m})`):d.attr("transform",`translate(0, ${-r.height/2+m})`));let x;if(t.look==="handDrawn"){let k=v.svg(f),P=R(t,{fill:l,stroke:o,...s.strokeWidth===void 0?{}:{strokeWidth:s.strokeWidth},...l==="none"?{fillWeight:0}:{fillStyle:"solid"}}),_=k.path(gt(p,u,g,y,s.rx),P);x=f.insert(()=>_,":first-child"),x.attr("class","basic label-container "+s.cssClass).attr("style",Q(t.cssStyles))}else x=f.insert("rect",":first-child"),x.attr("class","basic label-container "+s.cssClass).attr("style",c).attr("rx",s.rx).attr("ry",s.rx).attr("x",p).attr("y",u).attr("width",g).attr("height",y).attr("fill",l).attr("stroke",o),s.strokeWidth!==void 0&&x.attr("stroke-width",s.strokeWidth+"px");let w=u+e+a+Ot;f.append("line").attr("class","collapsed-separator").attr("x1",p+8).attr("y1",w).attr("x2",p+g-8).attr("y2",w).attr("stroke",o).attr("stroke-dasharray","3, 3");let S=w+Yt/2,$=2.5,M=10;for(let k=-1;k<=1;k++)f.append("circle").attr("class","collapsed-indicator").attr("cx",k*M).attr("cy",S).attr("r",$).attr("fill",o);return H(t,x),t.calcIntersect=function(k,P){return N.rect(k,P)},t.intersect=function(k){return N.rect(t,k)},f}b(Ge,"collapsedGroup");function nt(n,t,s,l){return n.insert("polygon",":first-child").attr("points",l.map(function(o){return o.x+","+o.y}).join(" ")).attr("class","label-container").attr("transform","translate("+-t/2+","+s/2+")")}b(nt,"insertPolygonShape");var Ps=["right","left","up","down"],Qt="point",Ds=b(n=>{let t=new Set;for(let s of n)switch(s){case"x":t.add("right"),t.add("left");break;case"y":t.add("up"),t.add("down");break;default:t.add(s);break}return t},"expandAndDeduplicateDirections"),Cs=b(n=>Ps.filter(t=>n.has(t)).join("|")||Qt,"getDirectionKey"),ye={"right|left|up|down":b(({height:n,midpoint:t,padding:s,width:l})=>[{x:0,y:0},{x:t,y:0},{x:l/2,y:2*s},{x:l-t,y:0},{x:l,y:0},{x:l,y:-n/3},{x:l+2*s,y:-n/2},{x:l,y:-2*n/3},{x:l,y:-n},{x:l-t,y:-n},{x:l/2,y:-n-2*s},{x:t,y:-n},{x:0,y:-n},{x:0,y:-2*n/3},{x:-2*s,y:-n/2},{x:0,y:-n/3}],"right|left|up|down"),"right|left|up":b(({height:n,midpoint:t,width:s})=>[{x:t,y:0},{x:s-t,y:0},{x:s,y:-n/2},{x:s-t,y:-n},{x:t,y:-n},{x:0,y:-n/2}],"right|left|up"),"right|left|down":b(({height:n,midpoint:t,width:s})=>[{x:0,y:0},{x:t,y:-n},{x:s-t,y:-n},{x:s,y:0}],"right|left|down"),"right|up|down":b(({height:n,midpoint:t,width:s})=>[{x:0,y:0},{x:s,y:-t},{x:s,y:-n+t},{x:0,y:-n}],"right|up|down"),"left|up|down":b(({height:n,midpoint:t,width:s})=>[{x:s,y:0},{x:0,y:-t},{x:0,y:-n+t},{x:s,y:-n}],"left|up|down"),"right|left":b(({height:n,midpoint:t,padding:s,width:l})=>[{x:t,y:0},{x:t,y:-s},{x:l-t,y:-s},{x:l-t,y:0},{x:l,y:-n/2},{x:l-t,y:-n},{x:l-t,y:-n+s},{x:t,y:-n+s},{x:t,y:-n},{x:0,y:-n/2}],"right|left"),"up|down":b(({height:n,midpoint:t,padding:s,width:l})=>[{x:l/2,y:0},{x:0,y:-s},{x:t,y:-s},{x:t,y:-n+s},{x:0,y:-n+s},{x:l/2,y:-n},{x:l,y:-n+s},{x:l-t,y:-n+s},{x:l-t,y:-s},{x:l,y:-s}],"up|down"),"right|up":b(({height:n,midpoint:t,width:s})=>[{x:0,y:0},{x:s,y:-t},{x:0,y:-n}],"right|up"),"right|down":b(({height:n,width:t})=>[{x:0,y:0},{x:t,y:0},{x:0,y:-n}],"right|down"),"left|up":b(({height:n,midpoint:t,width:s})=>[{x:s,y:0},{x:0,y:-t},{x:s,y:-n}],"left|up"),"left|down":b(({height:n,width:t})=>[{x:t,y:0},{x:0,y:0},{x:t,y:-n}],"left|down"),right:b(({height:n,midpoint:t,padding:s,width:l})=>[{x:t,y:-s},{x:t,y:-s},{x:l-t,y:-s},{x:l-t,y:0},{x:l,y:-n/2},{x:l-t,y:-n},{x:l-t,y:-n+s},{x:t,y:-n+s},{x:t,y:-n+s}],"right"),left:b(({height:n,midpoint:t,padding:s,width:l})=>[{x:t,y:0},{x:t,y:-s},{x:l-t,y:-s},{x:l-t,y:-n+s},{x:t,y:-n+s},{x:t,y:-n},{x:0,y:-n/2}],"left"),up:b(({height:n,midpoint:t,padding:s,width:l})=>[{x:t,y:-s},{x:t,y:-n+s},{x:0,y:-n+s},{x:l/2,y:-n},{x:l,y:-n+s},{x:l-t,y:-n+s},{x:l-t,y:-s}],"up"),down:b(({height:n,midpoint:t,padding:s,width:l})=>[{x:l/2,y:0},{x:0,y:-s},{x:t,y:-s},{x:t,y:-n+s},{x:l-t,y:-n+s},{x:l-t,y:-s},{x:l,y:-s}],"down"),[Qt]:()=>[{x:0,y:0}]},Bs=b((n,t,s,l)=>{let o=Ds(n),c=(s.padding??0)/2,f=t.height+4*c,r=f/2,h=l??t.width+2*r+2*c,i=Cs(o);return(ye[i]??ye[Qt])({height:f,midpoint:r,padding:c,width:h})},"getArrowPoints");async function Fe(n,t){let s=t,{shapeSvg:l,bbox:o}=await X(n,s,Y(s)),c=s.padding??0,f=o.height+2*c,r=f/2,h=o.width+2*r+c,i=s.width??0,a=s.positioned&&(s.widthInColumns??1)>1&&i>h?i:h,g=Bs(s.directions??[],o,s,a),y=nt(l,a,f,g);return y.attr("style",s.style??null),H(s,y),s.intersect=function(p){return N.polygon(s,g,p)},l}b(Fe,"block_arrow");async function qe(n,t,{config:{themeVariables:s}}){let{labelStyles:l,nodeStyles:o}=W(t);t.labelStyle=l;let{shapeSvg:c,bbox:f,label:r}=await X(n,t,Y(t)),h=s?.nodeBorder??s?.lineColor??"currentColor",i=t.padding??12,e=18,a=12,g=Math.max(f.width+i*2,t.width??0,90),y=Math.max(f.height+i*2+e,t.height??0),p=-y/2,{cssStyles:u}=t,m=c.insert("g",":first-child").attr("class","basic label-container");if(t.look==="handDrawn"){let w=v.svg(c).path(gt(-g/2,p,g,y,a),R(t,{}));m.node()?.appendChild(w),u&&m.attr("style",u)}else m.append("rect").attr("x",-g/2).attr("y",p).attr("width",g).attr("height",y).attr("rx",a).attr("ry",a).attr("style",o);m.append("line").attr("x1",-g/2).attr("y1",p+e).attr("x2",g/2).attr("y2",p+e).attr("style",`stroke:${h};stroke-width:1px`);for(let x=0;x<3;x++)m.append("circle").attr("cx",-g/2+12+x*9).attr("cy",p+e/2).attr("r",2.5).attr("style",`fill:${h};stroke:none`);m.append("rect").attr("class","browser-address-bar").attr("x",-g/2+44).attr("y",p+4).attr("width",Math.max(g-56,10)).attr("height",e-8).attr("rx",3).attr("ry",3).attr("style",`fill:none;stroke:${h};stroke-width:1px;opacity:0.6`),H(t,m);let d=p+e+(y-e)/2;return r.attr("transform",`translate(${-(f.width/2)-(f.x-(f.left??0))}, ${d-f.height/2-(f.y-(f.top??0))})`),t.intersect=function(x){return N.rect(t,x)},c}b(qe,"browser");var Et=12;async function ze(n,t){let{labelStyles:s,nodeStyles:l}=W(t);t.labelStyle=s;let o=t.padding??0,c=t.look==="neo"?28:o,f=t.look==="neo"?24:o,{shapeSvg:r,bbox:h}=await X(n,t,Y(t)),i=(t?.width??h.width)+(t.look==="neo"?c*2:c+Et),e=(t?.height??h.height)+(t.look==="neo"?f*2:f),a=0,g=i,y=-e,p=0,u=[{x:a+Et,y},{x:g,y},{x:g,y:p},{x:a,y:p},{x:a,y:y+Et},{x:a+Et,y}],m,{cssStyles:d}=t;if(t.look==="handDrawn"){let x=v.svg(r),w=R(t,{}),S=F(u),$=x.path(S,w);m=r.insert(()=>$,":first-child").attr("transform",`translate(${-i/2}, ${e/2})`),d&&m.attr("style",d)}else m=nt(r,i,e,u);return l&&m.attr("style",l),H(t,m),t.intersect=function(x){return N.polygon(t,u,x)},r}b(ze,"card");function Ve(n,t){let{nodeStyles:s}=W(t);t.label="";let l=n.insert("g").attr("class",Y(t)).attr("id",t.domId??t.id),{cssStyles:o}=t,c=Math.max(28,t.width??0),f=[{x:0,y:c/2},{x:c/2,y:0},{x:0,y:-c/2},{x:-c/2,y:0}],r=v.svg(l),h=R(t,{});t.look!=="handDrawn"&&(h.roughness=0,h.fillStyle="solid");let i=F(f),e=r.path(i,h),a=l.insert(()=>e,":first-child");return o&&t.look!=="handDrawn"&&a.selectAll("path").attr("style",o),s&&t.look!=="handDrawn"&&a.selectAll("path").attr("style",s),t.width=28,t.height=28,t.intersect=function(g){return N.polygon(t,f,g)},l}b(Ve,"choice");async function te(n,t,s){let{labelStyles:l,nodeStyles:o}=W(t);t.labelStyle=l;let{shapeSvg:c,bbox:f,halfPadding:r}=await X(n,t,Y(t)),h=16,i=s?.padding??r,e=Math.sqrt(f.width**2+f.height**2)/2,a=t.look==="neo"?e+h*2:e+i,g,{cssStyles:y}=t;if(t.look==="handDrawn"){let p=v.svg(c),u=R(t,{}),m=p.circle(0,0,a*2,u);g=c.insert(()=>m,":first-child"),g.attr("class","basic label-container").attr("style",Q(y))}else g=c.insert("circle",":first-child").attr("class","basic label-container").attr("style",o).attr("r",a).attr("cx",0).attr("cy",0);return H(t,g),t.calcIntersect=function(p,u){let m=p.width/2;return N.circle(p,m,u)},t.intersect=function(p){return J.info("Circle intersect",t,a,p),N.circle(t,a,p)},c}b(te,"circle");async function Ze(n,t){let s=t,l=["node",s.cssClasses,s.class].filter(Boolean).join(" "),{shapeSvg:o,bbox:c,halfPadding:f}=await X(n,s,l),r=o.insert("rect",":first-child"),h=s.padding??0,i=s.positioned?s.width??0:c.width+h,e=s.positioned?s.height??0:c.height+h,a=s.positioned?-i/2:-c.width/2-f,g=s.positioned?-e/2:-c.height/2-f;return r.attr("class","basic cluster composite label-container").attr("style",s.style??null).attr("rx",s.rx??null).attr("ry",s.ry??null).attr("x",a).attr("y",g).attr("width",i).attr("height",e),H(s,r),s.intersect=function(y){return N.rect(s,y)},o}b(Ze,"composite");async function Ue(n,t,{config:{themeVariables:s}}){let{labelStyles:l,nodeStyles:o}=W(t);t.labelStyle=l;let{shapeSvg:c,bbox:f,label:r}=await X(n,t,Y(t)),h=s?.nodeBorder??s?.lineColor??"currentColor",i=t.padding??12,e=20,a=12,g=Math.max(f.width+i*2,t.width??0,90),y=Math.max(f.height+i*2+e,t.height??0),p=-y/2,{cssStyles:u}=t,m=c.insert("g",":first-child").attr("class","basic label-container");if(t.look==="handDrawn"){let w=v.svg(c).path(gt(-g/2,p,g,y,a),R(t,{}));m.node()?.appendChild(w),u&&m.attr("style",u)}else m.append("rect").attr("x",-g/2).attr("y",p).attr("width",g).attr("height",y).attr("rx",a).attr("ry",a).attr("style",o);m.append("text").attr("x",-g/2+12).attr("y",p+16).attr("class","console-glyph").attr("style",`font-family:monospace;font-weight:bold;font-size:14px;fill:${h}`).text(">_"),H(t,m);let d=p+e+(y-e)/2;return r.attr("transform",`translate(${-(f.width/2)-(f.x-(f.left??0))}, ${d-f.height/2-(f.y-(f.top??0))})`),t.intersect=function(x){return N.rect(t,x)},c}b(Ue,"consoleWindow");function Je(n){let t=Math.cos(Math.PI/4),s=Math.sin(Math.PI/4),l=n*2,o={x:l/2*t,y:l/2*s},c={x:-(l/2)*t,y:l/2*s},f={x:-(l/2)*t,y:-(l/2)*s},r={x:l/2*t,y:-(l/2)*s};return`M ${c.x},${c.y} L ${r.x},${r.y} + M ${o.x},${o.y} L ${f.x},${f.y}`}b(Je,"createLine");function Ke(n,t){let{labelStyles:s,nodeStyles:l}=W(t);t.labelStyle=s,t.label="";let o=n.insert("g").attr("class",Y(t)).attr("id",t.domId??t.id),c=Math.max(30,t?.width??0),{cssStyles:f}=t,r=v.svg(o),h=R(t,{});t.look!=="handDrawn"&&(h.roughness=0,h.fillStyle="solid");let i=r.circle(0,0,c*2,h),e=Je(c),a=r.path(e,h),g=o.insert(()=>i,":first-child");return g.insert(()=>a),g.attr("class","outer-path"),f&&t.look!=="handDrawn"&&g.selectAll("path").attr("style",f),l&&t.look!=="handDrawn"&&g.selectAll("path").attr("style",l),H(t,g),t.intersect=function(y){return J.info("crossedCircle intersect",t,{radius:c,point:y}),N.circle(t,c,y)},o}b(Ke,"crossedCircle");function ot(n,t,s,l=100,o=0,c=180){let f=[],r=o*Math.PI/180,e=(c*Math.PI/180-r)/(l-1);for(let a=0;a$,":first-child").attr("stroke-opacity",0),M.insert(()=>w,":first-child"),M.attr("class","text"),g&&t.look!=="handDrawn"&&M.selectAll("path").attr("style",g),l&&t.look!=="handDrawn"&&M.selectAll("path").attr("style",l),M.attr("transform",`translate(${a}, 0)`),f.attr("transform",`translate(${-i/2+a-(c.x-(c.left??0))},${-e/2+(t.padding??0)/2-(c.y-(c.top??0))})`),H(t,M),t.intersect=function(k){return N.polygon(t,p,k)},o}b(Qe,"curlyBraceLeft");function ht(n,t,s,l=100,o=0,c=180){let f=[],r=o*Math.PI/180,e=(c*Math.PI/180-r)/(l-1);for(let a=0;a$,":first-child").attr("stroke-opacity",0),M.insert(()=>w,":first-child"),M.attr("class","text"),g&&t.look!=="handDrawn"&&M.selectAll("path").attr("style",g),l&&t.look!=="handDrawn"&&M.selectAll("path").attr("style",l),M.attr("transform",`translate(${-a}, 0)`),f.attr("transform",`translate(${-i/2+(t.padding??0)/2-(c.x-(c.left??0))},${-e/2+(t.padding??0)/2-(c.y-(c.top??0))})`),H(t,M),t.intersect=function(k){return N.polygon(t,p,k)},o}b(ta,"curlyBraceRight");function tt(n,t,s,l=100,o=0,c=180){let f=[],r=o*Math.PI/180,e=(c*Math.PI/180-r)/(l-1);for(let a=0;a_,":first-child").attr("stroke-opacity",0),B.insert(()=>S,":first-child"),B.insert(()=>k,":first-child"),B.attr("class","text"),g&&t.look!=="handDrawn"&&B.selectAll("path").attr("style",g),l&&t.look!=="handDrawn"&&B.selectAll("path").attr("style",l),B.attr("transform",`translate(${a-a/4}, 0)`),f.attr("transform",`translate(${-i/2+(t.padding??0)/2-(c.x-(c.left??0))},${-e/2+(t.padding??0)/2-(c.y-(c.top??0))})`),H(t,B),t.intersect=function(C){return N.polygon(t,u,C)},o}b(ea,"curlyBraces");async function aa(n,t){let{labelStyles:s,nodeStyles:l}=W(t);t.labelStyle=s;let o=t.padding??0,c=t.look==="neo"?16:o,f=t.look==="neo"?12:o,r=20,h=5,{shapeSvg:i,bbox:e}=await X(n,t,Y(t)),a=Math.max(h,e.height+f*2,t?.height??0),g=a/2,y=g-Math.sqrt(Math.max(0,g**2-(e.height/2)**2)),p=Math.max(a/4,y),u=Math.max(r,e.width+c*2+p*2,(e.width+c*2)*1.25,t?.width??0),{cssStyles:m}=t,d=v.svg(i),x=R(t,{});t.look!=="handDrawn"&&(x.roughness=0,x.fillStyle="solid");let w=u,S=a,$=w-g,M=S/4,k=[{x:$,y:0},{x:M,y:0},{x:0,y:S/2},{x:M,y:S},{x:$,y:S},...lt(-$,-S/2,g,50,270,90)],P=F(k),_=d.path(P,x),B=i.insert(()=>_,":first-child");return B.attr("class","basic label-container outer-path"),m&&t.look!=="handDrawn"&&B.selectChildren("path").attr("style",m),l&&t.look!=="handDrawn"&&B.selectChildren("path").attr("style",l),B.attr("transform",`translate(${-u/2}, ${-a/2})`),H(t,B),t.intersect=function(C){return N.polygon(t,k,C)},i}b(aa,"curvedTrapezoid");async function sa(n,t){let{labelStyles:s,nodeStyles:l}=W(t);t.labelStyle=s;let{shapeSvg:o,bbox:c,label:f}=await X(n,t,Y(t)),r=t.padding??20,h=Math.max(c.width+r*2,t.width??0,100),i=Math.min(Math.max(h*.23,16),56),e=i*.27,a=Math.max(c.height+r*2,t.height?t.height-(2*i-e):0),g=Math.min(h*.177,a*.45),y=a+2*i-e,p=-y/2,u=p+2*i-e,m=o.insert("g",":first-child").attr("class","basic label-container"),{cssStyles:d}=t;if(t.look==="handDrawn"){let P=v.svg(o),_=R(t,{}),B=P.path(gt(-h/2,u,h,a,g),_),C=P.circle(0,p+i,i*2,_);m.insert(()=>C,":first-child"),m.insert(()=>B,":first-child"),d&&m.attr("style",d)}else m.append("rect").attr("x",-h/2).attr("y",u).attr("width",h).attr("height",a).attr("rx",g).attr("ry",g).attr("style",l),m.append("circle").attr("cx",0).attr("cy",p+i).attr("r",i).attr("style",l);H(t,m);let x=u+a/2;f.attr("transform",`translate(${-(c.width/2)-(c.x-(c.left??0))}, ${x-c.height/2-(c.y-(c.top??0))})`);let w=p+i,S=Math.asin(Math.min(1,(u-w)/i))*180/Math.PI,k=[...lt(0,-w,i,24,180+S,-S),...lt(-(-h/2+g),-(u+g),g,12,90,0),...lt(-(-h/2+g),-(y/2-g),g,12,360,270),...lt(-(h/2-g),-(y/2-g),g,12,270,180),...lt(-(h/2-g),-(u+g),g,12,180,90)];return t.intersect=function(P){return N.polygon(t,k,P)},o}b(sa,"person");var Ns=b((n,t,s,l,o,c)=>[`M${n},${t+c}`,`a${o},${c} 0,0,0 ${s},0`,`a${o},${c} 0,0,0 ${-s},0`,`l0,${l}`,`a${o},${c} 0,0,0 ${s},0`,`l0,${-l}`].join(" "),"createCylinderPathD"),As=b((n,t,s,l,o,c)=>[`M${n},${t+c}`,`M${n+s},${t+c}`,`a${o},${c} 0,0,0 ${-s},0`,`l0,${l}`,`a${o},${c} 0,0,0 ${s},0`,`l0,${-l}`].join(" "),"createOuterCylinderPathD"),Rs=b((n,t,s,l,o,c)=>[`M${n-s/2},${-l/2}`,`a${o},${c} 0,0,0 ${s},0`].join(" "),"createInnerCylinderPathD"),fe=8,pe=8;async function ra(n,t){let{labelStyles:s,nodeStyles:l}=W(t);t.labelStyle=s;let o=t.padding??0,c=t.look==="neo"?24:o,f=t.look==="neo"?24:o,r=t.width??0;if(t.width&&(t.width=t.width-f,t.widthM,":first-child"),u=h.insert(()=>$,":first-child"),u.attr("class","basic label-container"),m&&u.attr("style",m)}else{let d=Ns(0,0,a,p,g,y);u=h.insert("path",":first-child").attr("d",d).attr("class","basic label-container outer-path").attr("style",Q(m)).attr("style",l)}return u.attr("label-offset-y",y),u.attr("transform",`translate(${-a/2}, ${-(p/2+y)})`),H(t,u),e.attr("transform",`translate(${-(i.width/2)-(i.x-(i.left??0))}, ${-(i.height/2)+(t.padding??0)/1.5-(i.y-(i.top??0))})`),t.intersect=function(d){let x=N.rect(t,d),w=x.x-(t.x??0);if(g!=0&&(Math.abs(w)<(t.width??0)/2||Math.abs(w)==(t.width??0)/2&&Math.abs(x.y-(t.y??0))>(t.height??0)/2-y)){let S=y*y*(1-w*w/(g*g));S>0&&(S=Math.sqrt(S)),S=y-S,d.y-(t.y??0)>0&&(S=-S),x.y+=S}return x},h}b(ra,"cylinder");async function Nt(n,t,s){let{labelStyles:l,nodeStyles:o}=W(t);t.labelStyle=l;let{shapeSvg:c,bbox:f}=await X(n,t,Y(t)),r=Math.max(f.width+s.labelPaddingX*2,t?.width||0),h=Math.max(f.height+s.labelPaddingY*2,t?.height||0),i=-r/2,e=-h/2,a,{rx:g,ry:y}=t,{cssStyles:p}=t;if(s?.rx&&s.ry&&(g=s.rx,y=s.ry),t.look==="handDrawn"){let u=v.svg(c),m=R(t,{}),d=g||y?u.path(gt(i,e,r,h,g||0),m):u.rectangle(i,e,r,h,m);a=c.insert(()=>d,":first-child"),a.attr("class","basic label-container").attr("style",Q(p))}else a=c.insert("rect",":first-child"),a.attr("class","basic label-container").attr("style",o).attr("rx",Q(g)).attr("ry",Q(y)).attr("x",i).attr("y",e).attr("width",r).attr("height",h);return H(t,a,t.look==="handDrawn"?void 0:{width:r,height:h}),t.calcIntersect=function(u,m){return N.rect(u,m)},t.intersect=function(u){return N.rect(t,u)},c}b(Nt,"drawRect");async function ia(n,t){let{cssClasses:s,labelPaddingX:l,labelPaddingY:o,padding:c,width:f,height:r}=t,h={rx:0,ry:0,classes:s??"",labelPaddingX:l??(c??0)*2,labelPaddingY:o??c??0},i=await Nt(n,t,h);if(t.look==="handDrawn"){let y=v.svg(i),p=R(t,{}),u=i.select(".basic.label-container > path:nth-child(2)"),m=u.node();if(!m)return i;let d=null;if(m instanceof SVGGraphicsElement)d=m.getBBox();else return i;return i.insert(()=>y.line(d.x,d.y,d.x+d.width,d.y,p),".basic.label-container g.label"),i.insert(()=>y.line(d.x,d.y+d.height,d.x+d.width,d.y+d.height,p),".basic.label-container g.label"),u.remove(),i}let e=i.select(".basic.label-container"),a=(Number(e.attr("width"))||f)??0,g=(Number(e.attr("height"))||r)??0;return a>0&&g>0&&e.attr("stroke-dasharray",`${a} ${g}`),i}b(ia,"datastore");async function la(n,t){let{labelStyles:s,nodeStyles:l}=W(t);t.labelStyle=s;let o=t.look==="neo"?16:t.padding??0,c=t.look==="neo"?16:t.padding??0,{shapeSvg:f,bbox:r,label:h}=await X(n,t,Y(t)),i=r.width+o,e=r.height+c,a=e*.2,g=-i/2,y=-e/2-a/2,{cssStyles:p}=t,u=v.svg(f),m=R(t,{});t.look!=="handDrawn"&&(m.roughness=0,m.fillStyle="solid");let d=[{x:g,y:y+a},{x:-g,y:y+a},{x:-g,y:-y},{x:g,y:-y},{x:g,y},{x:-g,y},{x:-g,y:y+a}],x=u.polygon(d.map(S=>[S.x,S.y]),m),w=f.insert(()=>x,":first-child");return w.attr("class","basic label-container outer-path"),p&&t.look!=="handDrawn"&&w.selectAll("path").attr("style",p),l&&t.look!=="handDrawn"&&w.selectAll("path").attr("style",l),h.attr("transform",`translate(${g+(t.padding??0)/2-(r.x-(r.left??0))}, ${y+a+(t.padding??0)/2-(r.y-(r.top??0))})`),H(t,w),t.intersect=function(S){return N.rect(t,S)},f}b(la,"dividedRectangle");async function na(n,t){let{labelStyles:s,nodeStyles:l}=W(t),o=t.look==="neo"?12:5;t.labelStyle=s;let c=t.padding??0,f=t.look==="neo"?16:c,{shapeSvg:r,bbox:h}=await X(n,t,Y(t)),i=Math.sqrt(h.width**2+h.height**2)/2,e=(t?.width?t?.width/2:i)+(f??0),a=e+o,g,{cssStyles:y}=t;if(t.look==="handDrawn"){let p=v.svg(r),u=R(t,{roughness:.2,strokeWidth:2.5}),m=R(t,{roughness:.2,strokeWidth:1.5}),d=p.circle(0,0,a*2,u),x=p.circle(0,0,e*2,m);g=r.insert("g",":first-child"),g.attr("class",Q(t.cssClasses)).attr("style",Q(y)),g.node()?.appendChild(d),g.node()?.appendChild(x)}else{g=r.insert("g",":first-child");let p=g.insert("circle",":first-child"),u=g.insert("circle");g.attr("class","basic label-container").attr("style",l),p.attr("class","outer-circle").attr("style",l).attr("r",a).attr("cx",0).attr("cy",0),u.attr("class","inner-circle").attr("style",l).attr("r",e).attr("cx",0).attr("cy",0)}return H(t,g),t.intersect=function(p){return J.info("DoubleCircle intersect",t,a,p),N.circle(t,a,p)},r}b(na,"doublecircle");async function ca(n,t){let{labelStyles:s,nodeStyles:l}=W(t);t.labelStyle=s;let{shapeSvg:o,bbox:c,halfPadding:f}=await X(n,t,Y(t)),{theme:r,themeVariables:h}=z();wt(o,t.colorIndex,r,h.borderColorArray);let i=f??10,e=c.width/2+i*2,a=c.height/2+i*2,g,{cssStyles:y}=t;if(t.look==="handDrawn"){let p=v.svg(o),u=R(t,{}),m=p.ellipse(0,0,e*2,a*2,u);g=o.insert(()=>m,":first-child"),g.attr("class","basic label-container"),y&&g.attr("style",y)}else g=o.insert("ellipse",":first-child").attr("class","basic label-container").attr("style",l).attr("rx",e).attr("ry",a).attr("cx",0).attr("cy",0);return t.width=e*2,t.height=a*2,H(t,g),t.calcIntersect=function(p,u){let m=p.width/2,d=p.height/2;return N.ellipse(p,m,d,u)},t.intersect=function(p){return N.ellipse(t,e,a,p)},o}b(ca,"usecaseEllipse");function oa(n,t,{config:{themeVariables:s}}){let{labelStyles:l,nodeStyles:o}=W(t);t.label="",t.labelStyle=l;let c=n.insert("g").attr("class",Y(t)).attr("id",t.domId??t.id),f=7,{cssStyles:r}=t,h=v.svg(c),{nodeBorder:i}=s,e=R(t,{fillStyle:"solid"});t.look!=="handDrawn"&&(e.roughness=0);let a=h.circle(0,0,f*2,e),g=c.insert(()=>a,":first-child");return g.selectAll("path").attr("style",`fill: ${i} !important;`),r&&r.length>0&&t.look!=="handDrawn"&&g.selectAll("path").attr("style",r),o&&t.look!=="handDrawn"&&g.selectAll("path").attr("style",o),H(t,g),t.intersect=function(y){return J.info("filledCircle intersect",t,{radius:f,point:y}),N.circle(t,f,y)},c}b(oa,"filledCircle");var ue=10,de=10;async function ha(n,t){let{labelStyles:s,nodeStyles:l}=W(t);t.labelStyle=s;let o=t.padding??0,c=t.look==="neo"?o*2:o;(t.width||t.height)&&(t.height=t?.height??0,t.heightd,":first-child").attr("transform",`translate(${-e/2}, ${e/2})`).attr("class","outer-path");return y&&t.look!=="handDrawn"&&x.selectChildren("path").attr("style",y),l&&t.look!=="handDrawn"&&x.selectChildren("path").attr("style",l),t.width=i,t.height=e,H(t,x),h.attr("transform",`translate(${-r.width/2-(r.x-(r.left??0))}, ${-e/2+(t.padding??0)/2+(r.y-(r.top??0))})`),t.intersect=function(w){return J.info("Triangle intersect",t,g,w),N.polygon(t,g,w)},f}b(ha,"flippedTriangle");async function ga(n,t){let{labelStyles:s,nodeStyles:l}=W(t);t.labelStyle=s;let{shapeSvg:o,bbox:c,label:f}=await X(n,t,Y(t)),r=t.padding??12,h=Math.max(c.width+r*2,t.width??0,90),i=c.height+r*2,e=Math.max(Math.min(i*.16,14),8),a=Math.max(i+e,t.height??0),g=a-e,y=Math.max(h*.38,28),p=-a/2,u=[{x:-h/2,y:p},{x:-h/2+y,y:p},{x:-h/2+y,y:p+e},{x:h/2,y:p+e},{x:h/2,y:a/2},{x:-h/2,y:a/2}],m=[`M${u[0].x},${u[0].y}`,...u.slice(1).map(S=>`L${S.x},${S.y}`),"Z"].join(" "),{cssStyles:d}=t,x;if(t.look==="handDrawn"){let $=v.svg(o).path(m,R(t,{}));x=o.insert(()=>$,":first-child").attr("class","basic label-container"),d&&x.attr("style",d)}else x=o.insert("path",":first-child").attr("d",m).attr("class","basic label-container").attr("style",l);t.look==="handDrawn"?H(t,x):H(t,x,{width:h,height:a});let w=p+e+g/2;return f.attr("transform",`translate(${-(c.width/2)-(c.x-(c.left??0))}, ${w-c.height/2-(c.y-(c.top??0))})`),t.intersect=function(S){return N.polygon(t,u,S)},o}b(ga,"folder");function ya(n,t,{dir:s,config:{state:l,themeVariables:o}}){let{nodeStyles:c}=W(t);t.label="";let f=n.insert("g").attr("class",Y(t)).attr("id",t.domId??t.id),{cssStyles:r}=t,h=Math.max(70,t?.width??0),i=Math.max(10,t?.height??0);(s==="LR"||s==="RL")&&(h=Math.max(10,t?.width??0),i=Math.max(70,t?.height??0));let e=-1*h/2,a=-1*i/2,g=v.svg(f),y=R(t,{stroke:o.lineColor,fill:o.lineColor});t.look!=="handDrawn"&&(y.roughness=0,y.fillStyle="solid");let p=g.rectangle(e,a,h,i,y),u=f.insert(()=>p,":first-child");r&&t.look!=="handDrawn"&&u.selectAll("path").attr("style",r),c&&t.look!=="handDrawn"&&u.selectAll("path").attr("style",c),H(t,u);let m=l?.padding??0;return t.width&&t.height&&(t.width+=m/2||0,t.height+=m/2||0),t.intersect=function(d){return N.rect(t,d)},f}b(ya,"forkJoin");async function fa(n,t){let{labelStyles:s,nodeStyles:l}=W(t);t.labelStyle=s;let o=15,c=10,f=t.look==="neo"?16:t.padding??0,r=t.look==="neo"?12:t.padding??0;(t.width||t.height)&&(t.height=(t?.height??0)-r*2,t.heightw,":first-child");return S.attr("class","basic label-container outer-path"),p&&t.look!=="handDrawn"&&S.selectChildren("path").attr("style",p),l&&t.look!=="handDrawn"&&S.selectChildren("path").attr("style",l),H(t,S),t.intersect=function($){return J.info("Pill intersect",t,{radius:a,point:$}),N.polygon(t,d,$)},h}b(fa,"halfRoundedRectangle");var Hs=b((n,t,s,l,o)=>[`M${n+o},${t}`,`L${n+s-o},${t}`,`L${n+s},${t-l/2}`,`L${n+s-o},${t-l}`,`L${n+o},${t-l}`,`L${n},${t-l/2}`,"Z"].join(" "),"createHexagonPathD");async function pa(n,t){let{labelStyles:s,nodeStyles:l}=W(t),o=t.look==="neo"?3.5:4;t.labelStyle=s;let c=t.padding??0,f=70,r=32,h=t.look==="neo"?f:c,i=t.look==="neo"?r:c;if(t.width||t.height){let w=(t.height??0)/o;t.width=(t?.width??0)-2*w-i,t.height=(t.height??0)-h}let{shapeSvg:e,bbox:a}=await X(n,t,Y(t)),g=(t?.height?t?.height:a.height)+h,y=g/o,p=(t?.width?t?.width:a.width)+2*y+i,u=[{x:y,y:0},{x:p-y,y:0},{x:p,y:-g/2},{x:p-y,y:-g},{x:y,y:-g},{x:0,y:-g/2}],m,{cssStyles:d}=t;if(t.look==="handDrawn"){let x=v.svg(e),w=R(t,{}),S=Hs(0,0,p,g,y),$=x.path(S,w);m=e.insert(()=>$,":first-child").attr("transform",`translate(${-p/2}, ${g/2})`),d&&m.attr("style",d)}else m=nt(e,p,g,u);return l&&m.attr("style",l),t.width=p,t.height=g,H(t,m),t.intersect=function(x){return N.polygon(t,u,x)},e}b(pa,"hexagon");async function ua(n,t){let{labelStyles:s,nodeStyles:l}=W(t);t.label="",t.labelStyle=s;let{shapeSvg:o}=await X(n,t,Y(t)),c=Math.max(30,t?.width??0),f=Math.max(30,t?.height??0),{cssStyles:r}=t,h=v.svg(o),i=R(t,{});t.look!=="handDrawn"&&(i.roughness=0,i.fillStyle="solid");let e=[{x:0,y:0},{x:c,y:0},{x:0,y:f},{x:c,y:f}],a=F(e),g=h.path(a,i),y=o.insert(()=>g,":first-child");return y.attr("class","basic label-container outer-path"),r&&t.look!=="handDrawn"&&y.selectChildren("path").attr("style",r),l&&t.look!=="handDrawn"&&y.selectChildren("path").attr("style",l),y.attr("transform",`translate(${-c/2}, ${-f/2})`),H(t,y),t.intersect=function(p){return J.info("Pill intersect",t,{points:e}),N.polygon(t,e,p)},o}b(ua,"hourglass");async function da(n,t,{config:{themeVariables:s,flowchart:l}}){let{labelStyles:o}=W(t);t.labelStyle=o;let c=t.assetHeight??48,f=t.assetWidth??48,r=Math.max(c,f),h=l?.wrappingWidth;t.width=Math.max(r,h??0);let{shapeSvg:i,bbox:e,label:a}=await X(n,t,"icon-shape default"),g=t.pos==="t",y=r,p=r,{nodeBorder:u}=s,{stylesMap:m}=vt(t),d=-p/2,x=-y/2,w=t.label?8:0,S=v.svg(i),$=R(t,{stroke:"none",fill:"none"});t.look!=="handDrawn"&&($.roughness=0,$.fillStyle="solid");let M=S.rectangle(d,x,p,y,$),k=Math.max(p,e.width),P=y+e.height+w,_=S.rectangle(-k/2,-P/2,k,P,{...$,fill:"transparent",stroke:"none"}),B=i.insert(()=>M,":first-child"),C=i.insert(()=>_);if(t.icon){let I=i.append("g");I.html(`${await kt(t.icon,{height:r,width:r,fallbackPrefix:""})}`);let D=I.node().getBBox(),L=D.width,E=D.height,A=D.x,T=D.y;I.attr("transform",`translate(${-L/2-A},${g?e.height/2+w/2-E/2-T:-e.height/2-w/2-E/2-T})`),I.attr("style",`color: ${m.get("stroke")??u};`)}return a.attr("transform",`translate(${-e.width/2-(e.x-(e.left??0))},${g?-P/2:P/2-e.height})`),B.attr("transform",`translate(0,${g?e.height/2+w/2:-e.height/2-w/2})`),H(t,C),t.intersect=function(I){if(J.info("iconSquare intersect",t,I),!t.label)return N.rect(t,I);let D=t.x??0,L=t.y??0,E=t.height??0,A=[];return g?A=[{x:D-e.width/2,y:L-E/2},{x:D+e.width/2,y:L-E/2},{x:D+e.width/2,y:L-E/2+e.height+w},{x:D+p/2,y:L-E/2+e.height+w},{x:D+p/2,y:L+E/2},{x:D-p/2,y:L+E/2},{x:D-p/2,y:L-E/2+e.height+w},{x:D-e.width/2,y:L-E/2+e.height+w}]:A=[{x:D-p/2,y:L-E/2},{x:D+p/2,y:L-E/2},{x:D+p/2,y:L-E/2+y},{x:D+e.width/2,y:L-E/2+y},{x:D+e.width/2/2,y:L+E/2},{x:D-e.width/2,y:L+E/2},{x:D-e.width/2,y:L-E/2+y},{x:D-p/2,y:L-E/2+y}],N.polygon(t,A,I)},i}b(da,"icon");async function ma(n,t,{config:{themeVariables:s,flowchart:l}}){let{labelStyles:o}=W(t);t.labelStyle=o;let c=t.assetHeight??48,f=t.assetWidth??48,r=Math.max(c,f),h=l?.wrappingWidth;t.width=Math.max(r,h??0);let{shapeSvg:i,bbox:e,label:a}=await X(n,t,"icon-shape default"),g=20,y=t.label?8:0,p=t.pos==="t",{nodeBorder:u,mainBkg:m}=s,{stylesMap:d}=vt(t),x=v.svg(i),w=R(t,{});t.look!=="handDrawn"&&(w.roughness=0,w.fillStyle="solid");let S=d.get("fill");w.stroke=S??m;let $=i.append("g");t.icon&&$.html(`${await kt(t.icon,{height:r,width:r,fallbackPrefix:""})}`);let M=$.node().getBBox(),k=M.width,P=M.height,_=M.x,B=M.y,C=Math.max(k,P)*Math.SQRT2+g*2,I=x.circle(0,0,C,w),D=Math.max(C,e.width),L=C+e.height+y,E=x.rectangle(-D/2,-L/2,D,L,{...w,fill:"transparent",stroke:"none"}),A=i.insert(()=>I,":first-child"),T=i.insert(()=>E);return $.attr("transform",`translate(${-k/2-_},${p?e.height/2+y/2-P/2-B:-e.height/2-y/2-P/2-B})`),$.attr("style",`color: ${d.get("stroke")??u};`),a.attr("transform",`translate(${-e.width/2-(e.x-(e.left??0))},${p?-L/2:L/2-e.height})`),A.attr("transform",`translate(0,${p?e.height/2+y/2:-e.height/2-y/2})`),H(t,T),t.intersect=function(O){return J.info("iconSquare intersect",t,O),N.rect(t,O)},i}b(ma,"iconCircle");async function xa(n,t,{config:{themeVariables:s,flowchart:l}}){let{labelStyles:o}=W(t);t.labelStyle=o;let c=t.assetHeight??48,f=t.assetWidth??48,r=Math.max(c,f),h=l?.wrappingWidth;t.width=Math.max(r,h??0);let{shapeSvg:i,bbox:e,halfPadding:a,label:g}=await X(n,t,"icon-shape default"),y=t.pos==="t",p=r+a*2,u=r+a*2,{nodeBorder:m,mainBkg:d}=s,{stylesMap:x}=vt(t),w=-u/2,S=-p/2,$=t.label?8:0,M=v.svg(i),k=R(t,{});t.look!=="handDrawn"&&(k.roughness=0,k.fillStyle="solid");let P=x.get("fill");k.stroke=P??d;let _=M.path(gt(w,S,u,p,5),k),B=Math.max(u,e.width),C=p+e.height+$,I=M.rectangle(-B/2,-C/2,B,C,{...k,fill:"transparent",stroke:"none"}),D=i.insert(()=>_,":first-child").attr("class","icon-shape2"),L=i.insert(()=>I);if(t.icon){let E=i.append("g");E.html(`${await kt(t.icon,{height:r,width:r,fallbackPrefix:""})}`);let A=E.node().getBBox(),T=A.width,O=A.height,G=A.x,V=A.y;E.attr("transform",`translate(${-T/2-G},${y?e.height/2+$/2-O/2-V:-e.height/2-$/2-O/2-V})`),E.attr("style",`color: ${x.get("stroke")??m};`)}return g.attr("transform",`translate(${-e.width/2-(e.x-(e.left??0))},${y?-C/2:C/2-e.height})`),D.attr("transform",`translate(0,${y?e.height/2+$/2:-e.height/2-$/2})`),H(t,L),t.intersect=function(E){if(J.info("iconSquare intersect",t,E),!t.label)return N.rect(t,E);let A=t.x??0,T=t.y??0,O=t.height??0,G=[];return y?G=[{x:A-e.width/2,y:T-O/2},{x:A+e.width/2,y:T-O/2},{x:A+e.width/2,y:T-O/2+e.height+$},{x:A+u/2,y:T-O/2+e.height+$},{x:A+u/2,y:T+O/2},{x:A-u/2,y:T+O/2},{x:A-u/2,y:T-O/2+e.height+$},{x:A-e.width/2,y:T-O/2+e.height+$}]:G=[{x:A-u/2,y:T-O/2},{x:A+u/2,y:T-O/2},{x:A+u/2,y:T-O/2+p},{x:A+e.width/2,y:T-O/2+p},{x:A+e.width/2/2,y:T+O/2},{x:A-e.width/2,y:T+O/2},{x:A-e.width/2,y:T-O/2+p},{x:A-u/2,y:T-O/2+p}],N.polygon(t,G,E)},i}b(xa,"iconRounded");async function wa(n,t,{config:{themeVariables:s,flowchart:l}}){let{labelStyles:o}=W(t);t.labelStyle=o;let c=t.assetHeight??48,f=t.assetWidth??48,r=Math.max(c,f),h=l?.wrappingWidth;t.width=Math.max(r,h??0);let{shapeSvg:i,bbox:e,halfPadding:a,label:g}=await X(n,t,"icon-shape default"),y=t.pos==="t",p=r+a*2,u=r+a*2,{nodeBorder:m,mainBkg:d}=s,{stylesMap:x}=vt(t),w=-u/2,S=-p/2,$=t.label?8:0,M=v.svg(i),k=R(t,{});t.look!=="handDrawn"&&(k.roughness=0,k.fillStyle="solid");let P=x.get("fill");k.stroke=P??d;let _=M.path(gt(w,S,u,p,.1),k),B=Math.max(u,e.width),C=p+e.height+$,I=M.rectangle(-B/2,-C/2,B,C,{...k,fill:"transparent",stroke:"none"}),D=i.insert(()=>_,":first-child"),L=i.insert(()=>I);if(t.icon){let E=i.append("g");E.html(`${await kt(t.icon,{height:r,width:r,fallbackPrefix:""})}`);let A=E.node().getBBox(),T=A.width,O=A.height,G=A.x,V=A.y;E.attr("transform",`translate(${-T/2-G},${y?e.height/2+$/2-O/2-V:-e.height/2-$/2-O/2-V})`),E.attr("style",`color: ${x.get("stroke")??m};`)}return g.attr("transform",`translate(${-e.width/2-(e.x-(e.left??0))},${y?-C/2:C/2-e.height})`),D.attr("transform",`translate(0,${y?e.height/2+$/2:-e.height/2-$/2})`),H(t,L),t.intersect=function(E){if(J.info("iconSquare intersect",t,E),!t.label)return N.rect(t,E);let A=t.x??0,T=t.y??0,O=t.height??0,G=[];return y?G=[{x:A-e.width/2,y:T-O/2},{x:A+e.width/2,y:T-O/2},{x:A+e.width/2,y:T-O/2+e.height+$},{x:A+u/2,y:T-O/2+e.height+$},{x:A+u/2,y:T+O/2},{x:A-u/2,y:T+O/2},{x:A-u/2,y:T-O/2+e.height+$},{x:A-e.width/2,y:T-O/2+e.height+$}]:G=[{x:A-u/2,y:T-O/2},{x:A+u/2,y:T-O/2},{x:A+u/2,y:T-O/2+p},{x:A+e.width/2,y:T-O/2+p},{x:A+e.width/2/2,y:T+O/2},{x:A-e.width/2,y:T+O/2},{x:A-e.width/2,y:T-O/2+p},{x:A-u/2,y:T-O/2+p}],N.polygon(t,G,E)},i}b(wa,"iconSquare");async function ba(n,t,{config:{flowchart:s}}){let l=new Image;l.src=t?.img??"",await l.decode();let o=Number(l.naturalWidth.toString().replace("px","")),c=Number(l.naturalHeight.toString().replace("px",""));t.imageAspectRatio=o/c;let{labelStyles:f}=W(t);t.labelStyle=f;let r=s?.wrappingWidth;t.defaultWidth=s?.wrappingWidth;let h=Math.max(t.label?r??0:0,t?.assetWidth??o),i=t.constraint==="on"&&t?.assetHeight?t.assetHeight*t.imageAspectRatio:h,e=t.constraint==="on"?i/t.imageAspectRatio:t?.assetHeight??c;t.width=Math.max(i,r??0);let{shapeSvg:a,bbox:g,label:y}=await X(n,t,"image-shape default"),p=t.pos==="t",u=-i/2,m=-e/2,d=t.label?8:0,x=v.svg(a),w=R(t,{});t.look!=="handDrawn"&&(w.roughness=0,w.fillStyle="solid");let S=x.rectangle(u,m,i,e,w),$=Math.max(i,g.width),M=e+g.height+d,k=x.rectangle(-$/2,-M/2,$,M,{...w,fill:"none",stroke:"none"}),P=a.insert(()=>S,":first-child"),_=a.insert(()=>k);if(t.img){let B=a.append("image");B.attr("href",t.img),B.attr("width",i),B.attr("height",e),B.attr("preserveAspectRatio","none"),B.attr("transform",`translate(${-i/2},${p?M/2-e:-M/2})`)}return y.attr("transform",`translate(${-g.width/2-(g.x-(g.left??0))},${p?-e/2-g.height/2-d/2:e/2-g.height/2+d/2})`),P.attr("transform",`translate(0,${p?g.height/2+d/2:-g.height/2-d/2})`),H(t,_),t.intersect=function(B){if(J.info("iconSquare intersect",t,B),!t.label)return N.rect(t,B);let C=t.x??0,I=t.y??0,D=t.height??0,L=[];return p?L=[{x:C-g.width/2,y:I-D/2},{x:C+g.width/2,y:I-D/2},{x:C+g.width/2,y:I-D/2+g.height+d},{x:C+i/2,y:I-D/2+g.height+d},{x:C+i/2,y:I+D/2},{x:C-i/2,y:I+D/2},{x:C-i/2,y:I-D/2+g.height+d},{x:C-g.width/2,y:I-D/2+g.height+d}]:L=[{x:C-i/2,y:I-D/2},{x:C+i/2,y:I-D/2},{x:C+i/2,y:I-D/2+e},{x:C+g.width/2,y:I-D/2+e},{x:C+g.width/2/2,y:I+D/2},{x:C-g.width/2,y:I+D/2},{x:C-g.width/2,y:I-D/2+e},{x:C-i/2,y:I-D/2+e}],N.polygon(t,L,B)},a}b(ba,"imageSquare");async function Sa(n,t){let{labelStyles:s,nodeStyles:l}=W(t);t.labelStyle=s;let o=t.padding??0,c=o,f=t.look==="neo"?o*2:o,{shapeSvg:r,bbox:h}=await X(n,t,Y(t)),i=Math.max(h.height+c*2,t.height??0),e=Math.max(h.width+f*2,(t.width??0)-i),a=[{x:0,y:0},{x:e,y:0},{x:e+3*i/6,y:-i},{x:-3*i/6,y:-i}],g,{cssStyles:y}=t;if(t.look==="handDrawn"){let p=v.svg(r),u=R(t,{}),m=F(a),d=p.path(m,u);g=r.insert(()=>d,":first-child").attr("transform",`translate(${-e/2}, ${i/2})`),y&&g.attr("style",y)}else g=nt(r,e,i,a);return l&&g.attr("style",l),t.width=e,t.height=i,H(t,g),t.intersect=function(p){return N.polygon(t,a,p)},r}b(Sa,"inv_trapezoid");async function $a(n,t){let{shapeSvg:s,bbox:l,label:o}=await X(n,t,"label"),c=s.insert("rect",":first-child");return c.attr("width",.1).attr("height",.1),s.attr("class","label edgeLabel"),o.attr("transform",`translate(${-(l.width/2)-(l.x-(l.left??0))}, ${-(l.height/2)-(l.y-(l.top??0))})`),H(t,c),t.intersect=function(h){return N.rect(t,h)},s}b($a,"labelRect");async function va(n,t){let{labelStyles:s,nodeStyles:l}=W(t);t.labelStyle=s;let o=t.padding??0,c=o,f=t.look==="neo"?o*2:o,{shapeSvg:r,bbox:h}=await X(n,t,Y(t)),i=Math.max(h.height+c,t.height??0),e=Math.max(h.width+f,(t.width??0)-i),a=[{x:0,y:0},{x:e+3*i/6,y:0},{x:e,y:-i},{x:-(3*i)/6,y:-i}],g,{cssStyles:y}=t;if(t.look==="handDrawn"){let p=v.svg(r),u=R(t,{}),m=F(a),d=p.path(m,u);g=r.insert(()=>d,":first-child").attr("transform",`translate(${-e/2}, ${i/2})`),y&&g.attr("style",y)}else g=nt(r,e,i,a);return l&&g.attr("style",l),t.width=e,t.height=i,H(t,g),t.intersect=function(p){return N.polygon(t,a,p)},r}b(va,"lean_left");async function ka(n,t){let{labelStyles:s,nodeStyles:l}=W(t);t.labelStyle=s;let o=t.padding??0,c=o,f=t.look==="neo"?o*2:o,{shapeSvg:r,bbox:h}=await X(n,t,Y(t)),i=Math.max(h.height+c,t.height??0),e=Math.max(h.width+f,(t.width??0)-i),a=[{x:-3*i/6,y:0},{x:e,y:0},{x:e+3*i/6,y:-i},{x:0,y:-i}],g,{cssStyles:y}=t;if(t.look==="handDrawn"){let p=v.svg(r),u=R(t,{}),m=F(a),d=p.path(m,u);g=r.insert(()=>d,":first-child").attr("transform",`translate(${-e/2}, ${i/2})`),y&&g.attr("style",y)}else g=nt(r,e,i,a);return l&&g.attr("style",l),t.width=e,t.height=i,H(t,g),t.intersect=function(p){return N.polygon(t,a,p)},r}b(ka,"lean_right");function Ma(n,t){let{labelStyles:s,nodeStyles:l}=W(t);t.label="",t.labelStyle=s;let o=n.insert("g").attr("class",Y(t)).attr("id",t.domId??t.id),{cssStyles:c}=t,f=Math.max(35,t?.width??0),r=Math.max(35,t?.height??0),h=7,i=[{x:f,y:0},{x:0,y:r+h/2},{x:f-2*h,y:r+h/2},{x:0,y:2*r},{x:f,y:r-h/2},{x:2*h,y:r-h/2}],e=v.svg(o),a=R(t,{});t.look!=="handDrawn"&&(a.roughness=0,a.fillStyle="solid");let g=F(i),y=e.path(g,a),p=o.insert(()=>y,":first-child");return p.attr("class","outer-path"),c&&t.look!=="handDrawn"&&p.selectAll("path").attr("style",c),l&&t.look!=="handDrawn"&&p.selectAll("path").attr("style",l),p.attr("transform",`translate(-${f/2},${-r})`),H(t,p),t.intersect=function(u){return J.info("lightningBolt intersect",t,u),N.polygon(t,i,u)},o}b(Ma,"lightningBolt");var Is=b((n,t,s,l,o,c,f)=>[`M${n},${t+c}`,`a${o},${c} 0,0,0 ${s},0`,`a${o},${c} 0,0,0 ${-s},0`,`l0,${l}`,`a${o},${c} 0,0,0 ${s},0`,`l0,${-l}`,`M${n},${t+c+f}`,`a${o},${c} 0,0,0 ${s},0`].join(" "),"createCylinderPathD"),Ls=b((n,t,s,l,o,c,f)=>[`M${n},${t+c}`,`M${n+s},${t+c}`,`a${o},${c} 0,0,0 ${-s},0`,`l0,${l}`,`a${o},${c} 0,0,0 ${s},0`,`l0,${-l}`,`M${n},${t+c+f}`,`a${o},${c} 0,0,0 ${s},0`].join(" "),"createOuterCylinderPathD"),Es=b((n,t,s,l,o,c)=>[`M${n-s/2},${-l/2}`,`a${o},${c} 0,0,0 ${s},0`].join(" "),"createInnerCylinderPathD"),me=10,xe=10;async function Pa(n,t){let{labelStyles:s,nodeStyles:l}=W(t);t.labelStyle=s;let o=t.padding??0,c=t.look==="neo"?16:o,f=t.look==="neo"?24:o;if(t.width||t.height){let d=t.width??0;t.width=(t.width??0)-c,t.widthM,":first-child").attr("class","line"),u=r.insert(()=>$,":first-child"),u.attr("class","basic label-container"),m&&u.attr("style",m)}else{let d=Is(0,0,e,y,a,g,p);u=r.insert("path",":first-child").attr("d",d).attr("class","basic label-container outer-path").attr("style",Q(m)).attr("style",l)}return u.attr("label-offset-y",g),u.attr("transform",`translate(${-e/2}, ${-(y/2+g)})`),H(t,u),i.attr("transform",`translate(${-(h.width/2)-(h.x-(h.left??0))}, ${-(h.height/2)+g-(h.y-(h.top??0))})`),t.intersect=function(d){let x=N.rect(t,d),w=x.x-(t.x??0);if(a!=0&&(Math.abs(w)<(t.width??0)/2||Math.abs(w)==(t.width??0)/2&&Math.abs(x.y-(t.y??0))>(t.height??0)/2-g)){let S=g*g*(1-w*w/(a*a));S>0&&(S=Math.sqrt(S)),S=g-S,d.y-(t.y??0)>0&&(S=-S),x.y+=S}return x},r}b(Pa,"linedCylinder");async function Da(n,t){let{labelStyles:s,nodeStyles:l}=W(t);t.labelStyle=s;let o=t.padding??0,c=t.look==="neo"?16:o,f=t.look==="neo"?12:o;if(t.width||t.height){let S=t.width;t.width=(S??0)*10/11-c*2,t.width<10&&(t.width=10),t.height=(t?.height??0)-f*2,t.height<10&&(t.height=10)}let{shapeSvg:r,bbox:h,label:i}=await X(n,t,Y(t)),e=(t?.width?t?.width:h.width)+(c??0)*2,a=(t?.height?t?.height:h.height)+(f??0)*2,g=t.look==="neo"?a/4:a/8,y=a+g,{cssStyles:p}=t,u=v.svg(r),m=R(t,{});t.look!=="handDrawn"&&(m.roughness=0,m.fillStyle="solid");let d=[{x:-e/2-e/2*.1,y:-y/2},{x:-e/2-e/2*.1,y:y/2},...ut(-e/2-e/2*.1,y/2,e/2+e/2*.1,y/2,g,.8),{x:e/2+e/2*.1,y:-y/2},{x:-e/2-e/2*.1,y:-y/2},{x:-e/2,y:-y/2},{x:-e/2,y:y/2*1.1},{x:-e/2,y:-y/2}],x=u.polygon(d.map(S=>[S.x,S.y]),m),w=r.insert(()=>x,":first-child");return w.attr("class","basic label-container outer-path"),p&&t.look!=="handDrawn"&&w.selectAll("path").attr("style",p),l&&t.look!=="handDrawn"&&w.selectAll("path").attr("style",l),w.attr("transform",`translate(0,${-g/2})`),i.attr("transform",`translate(${-e/2+(t.padding??0)+e/2*.1/2-(h.x-(h.left??0))},${-a/2+(t.padding??0)-g-(h.y-(h.top??0))})`),H(t,w),t.intersect=function(S){return N.polygon(t,d,S)},r}b(Da,"linedWaveEdgedRect");var Ws=56,Xt=72,we=8,be=2,Ts=8,_s={normal:"usecase-actor-shape usecase-actor-normal",hollow:"usecase-actor-hollow",awesome:"usecase-actor-awesome",icon:"usecase-actor-icon"},Se=Math.PI/3,$e=.6,jt=b((n,t)=>{let s=t*$e,l=t*Math.sqrt(1-$e**2),o=Math.cos(Se),c=-Math.sin(Se),f=s*-c,r=n+s*o,h=l*o,i=l*c;return`M ${f-h} ${r-i} L ${f+h} ${r+i}`},"businessMarkerPathForCircle"),Ys={normal:jt(-24,12),hollow:jt(-23,9),awesome:jt(-21,13),icon:"M 12 -8 L 26 -26"},ve=b((n,t,s)=>{let l=(t.x??0)-(t.left??0),o=(t.y??0)-(t.top??0);n.attr("transform",`translate(${-t.width/2-l},${s-t.height/2-o})`)},"positionLabel"),ee=b((n,t,s,l,o=!1)=>{if(t.look==="handDrawn"){let r=v.svg(n).path(s,R(t,o?{fill:"none"}:{}));return n.insert(()=>r,":first-child").attr("class",l)}let c=n.append("path").attr("class",l).attr("d",s);return o&&c.attr("fill","none"),c},"appendActorPath"),Os=b((n,t,s,l,o,c,f=!1)=>{if(t.look==="handDrawn"){let i=v.svg(n).circle(s,l,o*2,R(t,f?{fill:"none"}:{}));return n.insert(()=>i,":first-child").attr("class",c)}let r=n.append("circle").attr("class",c).attr("cx",s).attr("cy",l).attr("r",o);return f&&r.attr("fill","none"),r},"appendActorCircle"),Xs=b((n,t,s)=>{t.business&&n.append("path").attr("class","usecase-business-marker usecase-actor-business-marker").attr("d",Ys[s]).attr("fill","none").attr("style","stroke: inherit !important; stroke-width: inherit !important")},"appendBusinessActorMarker");async function It(n,t,s,l){let{labelStyles:o,nodeStyles:c}=W(t);t.labelStyle=o;let f=s==="icon"||t.stereotype!==void 0?{...t,icon:s==="icon"?void 0:t.icon,stereotype:void 0}:t,{shapeSvg:r,bbox:h,label:i}=await X(n,f,Y(t,`usecase-actor-variant usecase-actor-${s}`)),e=t.accessibleName??t.label;e&&r.attr("role","img").attr("aria-label",e),i.attr("class","label actor-label usecase-actor-label");let{theme:a,themeVariables:g}=z();wt(r,t.colorIndex,a,g.borderColorArray);let y,p;if(t.stereotype){let P=await St(r,`\xAB${t.stereotype}\xBB`,{labelStyle:o,useHtmlLabels:t.useHtmlLabels,padding:0,centerLabel:!0,width:t.wrappingWidth});y=P.label.attr("class","label usecase-stereotype"),p=P.bbox}let u=r.append("g").attr("class",`usecase-actor-glyph ${_s[s]}`).attr("style",c||null);await l(u,t),Xs(u,t,s);let m=t.padding??Ts,d=p?.height??0,x=Xt+we+h.height+(p?d+be:0),w=Math.max(Ws,h.width,p?.width??0)+m*2,S=x+m*2,$=-x/2;u.attr("transform",`translate(0,${$+Xt/2})`);let M=$+Xt+we;y&&p&&(M+=d/2,ve(y,p,M),M+=d/2+be),ve(i,h,M+h.height/2);let k=r.insert("rect",":first-child").attr("class","usecase-actor-outline").attr("x",-w/2).attr("y",-S/2).attr("width",w).attr("height",S).attr("opacity",0).attr("aria-hidden","true");return H(t,k),t.intersect=P=>N.rect(t,P),r}b(It,"renderUsecaseActor");var js=["M 0 -12","C 6.627 -12 12 -17.373 12 -24","C 12 -30.627 6.627 -36 0 -36","C -6.627 -36 -12 -30.627 -12 -24","C -12 -17.373 -6.627 -12 0 -12 Z","M 0 -12 V 8","M -17 -5 H 17","M 0 8 L -15 28","M 0 8 L 15 28"].join(" ");async function Ca(n,t){return It(n,t,"normal",(s,l)=>{ee(s,l,js,"usecase-actor-stick")})}b(Ca,"usecaseActor");var Gs=["M 0 -34","C 7.18 -34 13 -28.18 13 -21","C 13 -13.82 7.18 -8 0 -8","C -7.18 -8 -13 -13.82 -13 -21","C -13 -28.18 -7.18 -34 0 -34 Z","M -24 25","C -24 7 -14 -3 0 -3","C 14 -3 24 7 24 25","C 24 28 21 30 18 30","H -18","C -21 30 -24 28 -24 25 Z"].join(" ");async function Ba(n,t){return It(n,t,"awesome",(s,l)=>{ee(s,l,Gs,"usecase-actor-awesome-silhouette")})}b(Ba,"usecaseActorAwesome");var Fs=["M -22 -10","H 22","V 0","H 6","L 22 17","L 13 28","L 0 13","L -13 28","L -22 17","L -6 0","H -22","Z"].join(" ");async function Na(n,t){return It(n,t,"hollow",(s,l)=>{Os(s,l,0,-23,9,"usecase-actor-hollow-head",!0),ee(s,l,Fs,"usecase-actor-hollow-body",!0)})}b(Na,"usecaseActorHollow");var Pt=52,ke=42,Me=-2,qs=b(async(n,t)=>{let s=-Pt/2,l=Me-Pt/2;if(t.look==="handDrawn"){let e=v.svg(n).rectangle(s,l,Pt,Pt,R(t,{}));n.insert(()=>e,":first-child").attr("class","usecase-actor-icon-frame")}else n.append("rect").attr("class","usecase-actor-icon-frame").attr("x",s).attr("y",l).attr("width",Pt).attr("height",Pt).attr("rx",4).attr("ry",4);let o=t.icon??"",c=await ne(o.includes(":")?o:`fa:${o}`),f=await kt(o,{height:ke,width:ke,fallbackPrefix:"fa"}),r=n.append("g").attr("class",`usecase-actor-icon-symbol${c?"":" usecase-actor-icon-fallback"}`).attr("aria-hidden","true").html(`${f}`),h=r.node()?.getBBox();h&&r.attr("transform",`translate(${-h.width/2-h.x},${Me-h.height/2-h.y})`)},"drawIconActor");async function Aa(n,t){return It(n,t,"icon",qs)}b(Aa,"usecaseActorIcon");var Pe=b((n,t,s)=>{let l=(t.x??0)-(t.left??0),o=(t.y??0)-(t.top??0);n.attr("transform",`translate(${-t.width/2-l},${s-t.height/2-o})`)},"positionLabel");async function Ra(n,t){let s=t,{labelStyles:l,nodeStyles:o}=W(t);t.labelStyle=l;let c=s.stereotype?{...t,stereotype:void 0}:t,{shapeSvg:f,bbox:r,halfPadding:h,label:i}=await X(n,c,Y(t,"usecase-business-shape"));i.attr("class","label usecase-label");let{theme:e,themeVariables:a}=z();wt(f,t.colorIndex,e,a.borderColorArray);let g,y;if(s.stereotype){let D=await St(f,`\xAB${s.stereotype}\xBB`,{labelStyle:l,useHtmlLabels:t.useHtmlLabels,padding:0,centerLabel:!0,width:t.wrappingWidth});g=D.label.attr("class","label usecase-stereotype"),y=D.bbox}let p=y?2:0,u=r.height+(y?.height??0)+p,m=Math.max(r.width,y?.width??0),d=h??10,x=m/2+d*2,w=u/2+d*2,S=Math.min(Math.max(d/5,1),d/2),$=m/2+S,M=x-S,k=$/x,P=M/x,_=w*Math.sqrt(Math.max(0,1-k*k)),B=-w*Math.sqrt(Math.max(0,1-P*P));g&&y&&Pe(g,y,-u/2+y.height/2),Pe(i,r,u/2-r.height/2);let C;if(t.look==="handDrawn"){let L=v.svg(f).ellipse(0,0,x*2,w*2,R(t,{}));C=f.insert(()=>L,":first-child").attr("class","basic label-container usecase-business-ellipse")}else C=f.insert("ellipse",":first-child").attr("class","basic label-container usecase-business-ellipse").attr("style",o).attr("rx",x).attr("ry",w).attr("cx",0).attr("cy",0);f.append("path").attr("class","usecase-business-marker").attr("d",`M ${$} ${_} L ${M} ${B}`).attr("fill","none").attr("style",o||null);let I=s.accessibleName??s.label;return I&&f.attr("role","img").attr("aria-label",I),H(t,C),t.calcIntersect=(D,L)=>N.ellipse(D,D.width/2,D.height/2,L),t.intersect=D=>N.ellipse(t,x,w,D),f}b(Ra,"usecaseBusiness");var Gt=8,De=4,zs=1,Ft=b((n,t,s,l)=>{let o=(t.x??0)-(t.left??0),c=(t.y??0)-(t.top??0);n.attr("transform",`translate(${s-t.width/2-o},${l-t.height/2-c})`)},"positionLabel"),Vs=b(n=>{let t=Number.parseFloat(n??"");return Number.isFinite(t)&&t>=0?t:zs},"numericStrokeWidth");async function Ha(n,t){let s=t,{labelStyles:l,nodeStyles:o}=W(t),{stylesMap:c}=vt(t);t.labelStyle=l;let{shapeSvg:f,bbox:r,label:h}=await X(n,t,Y(t,"usecase-json-table"));f.attr("role","img"),s.accessibleName&&f.attr("aria-label",s.accessibleName),h.attr("class","label usecase-json-title");let i=f.append("g").attr("class","usecase-json-table-grid"),e=[];for(let D of s.jsonRows??[]){let L=await St(i,D.key,{labelStyle:l,useHtmlLabels:t.useHtmlLabels,padding:0,centerLabel:!0}),E=await St(i,D.value,{labelStyle:l,useHtmlLabels:t.useHtmlLabels,padding:0,centerLabel:!0});e.push({key:{label:L.label.attr("class","label usecase-json-key"),bbox:L.bbox},value:{label:E.label.attr("class","label usecase-json-value"),bbox:E.bbox}})}let a=Math.max(0,...e.map(({key:D})=>D.bbox.width))+Gt*2,g=Math.max(0,...e.map(({value:D})=>D.bbox.width))+Gt*2,y=r.width+Gt*2,p=Math.max(y,a+g),u=g+Math.max(0,p-a-g),m=r.height+De*2,d=e.map(({key:D,value:L})=>Math.max(D.bbox.height,L.bbox.height)+De*2),x=m+d.reduce((D,L)=>D+L,0),w=Vs(c.get("stroke-width")),S=p+w*2,$=x+w*2,M=-p/2,k=-x/2,P=t.look==="handDrawn"?v.svg(f):void 0,_=P?R(t,{}):void 0,B=b((D,L,E,A,T,O)=>{if(P&&_){let G=P.rectangle(E,A,T,O,_);return D.insert(()=>G,":first-child").attr("class",L)}return D.insert("rect",":first-child").attr("class",L).attr("x",E).attr("y",A).attr("width",T).attr("height",O).attr("style",o)},"insertCell"),C=B(f,"label-container usecase-json-border",-S/2,-$/2,S,$);B(i,"usecase-json-cell usecase-json-title-cell",M,k,p,m),i.node()?.append(h.node()),Ft(h,r,0,k+m/2);let I=k+m;return e.forEach(({key:D,value:L},E)=>{let A=d[E],T=i.append("g").attr("class","usecase-json-row").attr("data-row-index",E).attr("transform",`translate(0,${I})`);B(T,"usecase-json-cell usecase-json-key-cell",M,0,a,A),B(T,"usecase-json-cell usecase-json-value-cell",M+a,0,u,A),T.node()?.append(D.label.node(),L.label.node()),Ft(D.label,D.bbox,M+a/2,A/2),Ft(L.label,L.bbox,M+a+u/2,A/2),I+=A}),H(t,C),t.intersect=D=>N.rect(t,D),f}b(Ha,"usecaseJsonTable");async function Ia(n,t){let{labelStyles:s,nodeStyles:l}=W(t);t.labelStyle=s;let o=t.padding??0,c=t.look==="neo"?16:o,f=t.look==="neo"?12:o,r=t.look==="neo"?10:5;(t.width||t.height)&&(t.width=Math.max((t?.width??0)-c*2-2*r,10),t.height=Math.max((t?.height??0)-f*2-2*r,10));let{shapeSvg:h,bbox:i,label:e}=await X(n,t,Y(t)),a=(t?.width?t?.width:i.width)+c*2+2*r,g=(t?.height?t?.height:i.height)+f*2+2*r,y=a-2*r,p=g-2*r,u=-y/2,m=-p/2,{cssStyles:d}=t,x=v.svg(h),w=R(t,{}),S=[{x:u-r,y:m+r},{x:u-r,y:m+p+r},{x:u+y-r,y:m+p+r},{x:u+y-r,y:m+p},{x:u+y,y:m+p},{x:u+y,y:m+p-r},{x:u+y+r,y:m+p-r},{x:u+y+r,y:m-r},{x:u+r,y:m-r},{x:u+r,y:m},{x:u,y:m},{x:u,y:m+r}],$=[{x:u,y:m+r},{x:u+y-r,y:m+r},{x:u+y-r,y:m+p},{x:u+y,y:m+p},{x:u+y,y:m},{x:u,y:m}];t.look!=="handDrawn"&&(w.roughness=0,w.fillStyle="solid");let M=F(S),k=x.path(M,w),P=F($),_=x.path(P,w);t.look!=="handDrawn"&&(k=zt(k),_=zt(_));let B=h.insert("g",":first-child");return B.insert(()=>k),B.insert(()=>_),B.attr("class","basic label-container outer-path"),d&&t.look!=="handDrawn"&&B.selectAll("path").attr("style",d),l&&t.look!=="handDrawn"&&B.selectAll("path").attr("style",l),e.attr("transform",`translate(${-(i.width/2)-r-(i.x-(i.left??0))}, ${-(i.height/2)+r-(i.y-(i.top??0))})`),H(t,B),t.intersect=function(C){return N.polygon(t,S,C)},h}b(Ia,"multiRect");async function La(n,t){let{labelStyles:s,nodeStyles:l}=W(t);t.labelStyle=s;let{shapeSvg:o,bbox:c,label:f}=await X(n,t,Y(t)),r=t.padding??0,h=t.look==="neo"?16:r,i=t.look==="neo"?12:r,e=!0;(t.width||t.height)&&(e=!1,t.width=(t?.width??0)-h*2,t.height=(t?.height??0)-i*3);let a=Math.max(c.width,t?.width??0)+h*2,g=Math.max(c.height,t?.height??0)+i*3,y=t.look==="neo"?g/4:g/8,p=g+(e?y/2:-y/2),u=-a/2,m=-p/2,d=10,{cssStyles:x}=t,w=ut(u-d,m+p+d,u+a-d,m+p+d,y,.8),S=w?.[w.length-1],$=[{x:u-d,y:m+d},{x:u-d,y:m+p+d},...w,{x:u+a-d,y:S.y-d},{x:u+a,y:S.y-d},{x:u+a,y:S.y-2*d},{x:u+a+d,y:S.y-2*d},{x:u+a+d,y:m-d},{x:u+d,y:m-d},{x:u+d,y:m},{x:u,y:m},{x:u,y:m+d}],M=[{x:u,y:m+d},{x:u+a-d,y:m+d},{x:u+a-d,y:S.y-d},{x:u+a,y:S.y-d},{x:u+a,y:m},{x:u,y:m}],k=v.svg(o),P=R(t,{});t.look!=="handDrawn"&&(P.roughness=0,P.fillStyle="solid");let _=F($),B=k.path(_,P),C=F(M),I=k.path(C,P),D=o.insert(()=>B,":first-child");return D.insert(()=>I),D.attr("class","basic label-container outer-path"),x&&t.look!=="handDrawn"&&D.selectAll("path").attr("style",x),l&&t.look!=="handDrawn"&&D.selectAll("path").attr("style",l),D.attr("transform",`translate(0,${-y/2})`),f.attr("transform",`translate(${-(c.width/2)-d-(c.x-(c.left??0))}, ${-(c.height/2)+d-y-(c.y-(c.top??0))})`),H(t,D),t.intersect=function(L){return N.polygon(t,$,L)},o}b(La,"multiWaveEdgedRectangle");async function Ea(n,t,{config:{themeVariables:s}}){let{labelStyles:l,nodeStyles:o}=W(t);t.labelStyle=l,t.useHtmlLabels||xt($t())||(t.centerLabel=!0);let{shapeSvg:f,bbox:r,label:h}=await X(n,t,Y(t)),i=Math.max(r.width+(t.padding??0)*2,t?.width??0),e=Math.max(r.height+(t.padding??0)*2,t?.height??0),a=-i/2,g=-e/2,{cssStyles:y}=t,p=v.svg(f),u=R(t,{fill:s.noteBkgColor,stroke:s.noteBorderColor});t.look!=="handDrawn"&&(u.roughness=0,u.fillStyle="solid");let m=p.rectangle(a,g,i,e,u),d=f.insert(()=>m,":first-child");return d.attr("class","basic label-container outer-path"),h.attr("class","label noteLabel"),y&&t.look!=="handDrawn"&&d.selectAll("path").attr("style",y),o&&t.look!=="handDrawn"&&d.selectAll("path").attr("style",o),h.attr("transform",`translate(${-r.width/2-(r.x-(r.left??0))}, ${-(r.height/2)-(r.y-(r.top??0))})`),H(t,d),t.intersect=function(x){return N.rect(t,x)},f}b(Ea,"note");var Zs=b((n,t,s)=>[`M${n+s/2},${t}`,`L${n+s},${t-s/2}`,`L${n+s/2},${t-s}`,`L${n},${t-s/2}`,"Z"].join(" "),"createDecisionBoxPathD");async function Wa(n,t){let{labelStyles:s,nodeStyles:l}=W(t);t.labelStyle=s;let{shapeSvg:o,bbox:c}=await X(n,t,Y(t)),f=c.width+(t.padding??0),r=c.height+(t.padding??0),h=f+r,i=.5,e=[{x:h/2,y:0},{x:h,y:-h/2},{x:h/2,y:-h},{x:0,y:-h/2}],a,{cssStyles:g}=t;if(t.look==="handDrawn"){let y=v.svg(o),p=R(t,{}),u=Zs(0,0,h),m=y.path(u,p);a=o.insert(()=>m,":first-child").attr("transform",`translate(${-h/2+i}, ${h/2})`),g&&a.attr("style",g)}else a=nt(o,h,h,e),a.attr("transform",`translate(${-h/2+i}, ${h/2})`);return l&&a.attr("style",l),H(t,a),t.calcIntersect=function(y,p){let u=y.width,m=[{x:u/2,y:0},{x:u,y:-u/2},{x:u/2,y:-u},{x:0,y:-u/2}];return N.polygon(y,m,p)},t.intersect=function(y){return this.calcIntersect(t,y)},o}b(Wa,"question");async function Ta(n,t){let{labelStyles:s,nodeStyles:l}=W(t);t.labelStyle=s;let o=t.padding??0,c=t.look==="neo"?21:o??0,f=t.look==="neo"?12:o??0,{shapeSvg:r,bbox:h,label:i}=await X(n,t,Y(t)),e=h.width+(t.look==="neo"?c*2:c),a=Math.max(h.height+(t.look==="neo"?f*2:f),t.height??0),g=a/4,p=-Math.max(e,(t.width??0)-g)/2,u=-a/2,m=u/2,d=[{x:p+m,y:u},{x:p,y:0},{x:p+m,y:-u},{x:-p,y:-u},{x:-p,y:u}],{cssStyles:x}=t,w=v.svg(r),S=R(t,{});t.look!=="handDrawn"&&(S.roughness=0,S.fillStyle="solid");let $=F(d),M=w.path($,S),k=r.insert(()=>M,":first-child");return k.attr("class","basic label-container outer-path"),x&&t.look!=="handDrawn"&&k.selectAll("path").attr("style",x),l&&t.look!=="handDrawn"&&k.selectAll("path").attr("style",l),k.attr("transform",`translate(${-m/2},0)`),i.attr("transform",`translate(${-m/2-h.width/2-(h.x-(h.left??0))}, ${-(h.height/2)-(h.y-(h.top??0))})`),H(t,k),t.intersect=function(P){return N.polygon(t,d,P)},r}b(Ta,"rect_left_inv_arrow");async function _a(n,t){let{labelStyles:s,nodeStyles:l}=W(t);t.labelStyle=s;let o;t.cssClasses?o="node "+t.cssClasses:o="node default";let c=n.insert("g").attr("class",o).attr("id",t.domId||t.id),f=c.insert("g"),r=c.insert("g").attr("class","label").attr("style",l),h=t.description,i=t.label,e=await ge(r,i,t.labelStyle,!0,!0),a={width:0,height:0};if(xt(z())){let P=e.children[0],_=Z(e);a=P.getBoundingClientRect(),_.attr("width",a.width),_.attr("height",a.height)}J.info("Text 2",h);let g=h||[],y=e.getBBox(),p=await ge(r,Array.isArray(g)?g.join("
    "):g,t.labelStyle,!0,!0),u=p.children[0],m=Z(p);a=u.getBoundingClientRect(),m.attr("width",a.width),m.attr("height",a.height);let d=(t.padding||0)/2;Z(p).attr("transform","translate( "+(a.width>y.width?0:(y.width-a.width)/2)+", "+(y.height+d+5)+")"),Z(e).attr("transform","translate( "+(a.width(J.debug("Rough node insert CXC",B),C),":first-child"),M=c.insert(()=>(J.debug("Rough node insert CXC",B),B),":first-child")}else M=f.insert("rect",":first-child"),k=f.insert("line"),M.attr("class","outer title-state").attr("style",l).attr("x",-a.width/2-d).attr("y",-a.height/2-d).attr("width",a.width+(t.padding||0)).attr("height",a.height+(t.padding||0)),k.attr("class","divider").attr("x1",-a.width/2-d).attr("x2",a.width/2+d).attr("y1",-a.height/2-d+y.height+d).attr("y2",-a.height/2-d+y.height+d);return H(t,M),t.intersect=function(P){return N.rect(t,P)},c}b(_a,"rectWithTitle");async function Ya(n,t,{config:{themeVariables:s}}){let l=s?.radius??5,o={rx:l,ry:l,classes:"",labelPaddingX:(t?.padding??0)*1,labelPaddingY:(t?.padding??0)*1};return Nt(n,t,o)}b(Ya,"roundedRect");var bt=8;async function Oa(n,t){let{labelStyles:s,nodeStyles:l}=W(t);t.labelStyle=s;let o=t.look==="neo"?16:t.padding??0,c=t.look==="neo"?12:t.padding??0,{shapeSvg:f,bbox:r,label:h}=await X(n,t,Y(t)),i=(t?.width??r.width)+o*2+(t.look==="neo"?bt:bt*2),e=(t?.height??r.height)+c*2,a=i-bt,g=e,y=bt-i/2,p=-e/2,{cssStyles:u}=t,m=v.svg(f),d=R(t,{});t.look!=="handDrawn"&&(d.roughness=0,d.fillStyle="solid");let x=[{x:y,y:p},{x:y+a,y:p},{x:y+a,y:p+g},{x:y-bt,y:p+g},{x:y-bt,y:p},{x:y,y:p},{x:y,y:p+g}],w=m.polygon(x.map($=>[$.x,$.y]),d),S=f.insert(()=>w,":first-child");return S.attr("class","basic label-container outer-path").attr("style",Q(u)),l&&t.look!=="handDrawn"&&S.selectAll("path").attr("style",l),u&&t.look!=="handDrawn"&&S.selectAll("path").attr("style",l),h.attr("transform",`translate(${bt/2-r.width/2-(r.x-(r.left??0))}, ${-(r.height/2)-(r.y-(r.top??0))})`),H(t,S),t.intersect=function($){return N.rect(t,$)},f}b(Oa,"shadedProcess");async function Xa(n,t){let{labelStyles:s,nodeStyles:l}=W(t);t.labelStyle=s;let o=t.padding??0,c=t.look==="neo"?16:o,f=t.look==="neo"?12:o;(t.width||t.height)&&(t.width=Math.max((t?.width??0)-c*2,10),t.height=Math.max((t?.height??0)/1.5-f*2,10));let{shapeSvg:r,bbox:h,label:i}=await X(n,t,Y(t)),e=(t?.width?t?.width:h.width)+c*2,a=((t?.height?t?.height:h.height)+f*2)*1.5,g=e,y=a/1.5,p=-g/2,u=-y/2,{cssStyles:m}=t,d=v.svg(r),x=R(t,{});t.look!=="handDrawn"&&(x.roughness=0,x.fillStyle="solid");let w=[{x:p,y:u},{x:p,y:u+y},{x:p+g,y:u+y},{x:p+g,y:u-y/2}],S=F(w),$=d.path(S,x),M=r.insert(()=>$,":first-child");return M.attr("class","basic label-container outer-path"),m&&t.look!=="handDrawn"&&M.selectChildren("path").attr("style",m),l&&t.look!=="handDrawn"&&M.selectChildren("path").attr("style",l),M.attr("transform",`translate(0, ${y/4})`),i.attr("transform",`translate(${-g/2+(t.padding??0)-(h.x-(h.left??0))}, ${-y/4+(t.padding??0)-(h.y-(h.top??0))})`),H(t,M),t.intersect=function(k){return N.polygon(t,w,k)},r}b(Xa,"slopedRect");async function ja(n,t){let s=t.padding??0,l=t.look==="neo"?16:s*2,o=t.look==="neo"?12:s,c={rx:0,ry:0,classes:"",labelPaddingX:t.labelPaddingX??l,labelPaddingY:o},f=await Nt(n,t,c);if(t.colorIndex!==void 0){let{theme:r,themeVariables:h}=z();wt(f,t.colorIndex,r,h.borderColorArray)}return f}b(ja,"squareRect");var Ut=50,Us=b((n,t,s)=>{let l=n.height+s,o=l*Math.cos(Math.PI/(2*(Ut-1))),c=Math.sqrt(Math.max(0,o**2-n.height**2));return{w:Math.max(n.width+l/4+t,1.5*l+(l-o),n.width+t+l-c),h:l}},"stadiumDimensions");async function Ga(n,t){let{labelStyles:s,nodeStyles:l}=W(t);t.labelStyle=s;let o=t.padding??0,c=t.look==="neo"?40:o,f=t.look==="neo"?24:o,{shapeSvg:r,bbox:h}=await X(n,t,Y(t)),{w:i,h:e}=Us(h,c,f),a=e/2,{cssStyles:g}=t,y=v.svg(r),p=R(t,{});t.look!=="handDrawn"&&(p.roughness=0,p.fillStyle="solid");let u=[{x:-i/2+a,y:-e/2},{x:i/2-a,y:-e/2},...lt(-i/2+a,0,a,Ut,90,270),{x:i/2-a,y:e/2},...lt(i/2-a,0,a,Ut,270,450)],m=F(u),d=y.path(m,p),x=r.insert(()=>d,":first-child");return x.attr("class","basic label-container outer-path"),g&&t.look!=="handDrawn"&&x.selectChildren("path").attr("style",g),l&&t.look!=="handDrawn"&&x.selectChildren("path").attr("style",l),H(t,x),t.intersect=function(w){return N.polygon(t,u,w)},r}b(Ga,"stadium");async function Fa(n,t){let s={rx:t.look==="neo"?3:5,ry:t.look==="neo"?3:5,classes:"flowchart-node"};return Nt(n,t,s)}b(Fa,"state");function qa(n,t,{config:{themeVariables:s}}){let{labelStyles:l,nodeStyles:o}=W(t);t.labelStyle=l;let{cssStyles:c}=t,{lineColor:f,stateBorder:r,nodeBorder:h,nodeShadow:i}=s;(t.width||t.height)&&((t.width??0)<14&&(t.width=14),(t.height??0)<14&&(t.height=14)),t.width||(t.width=14),t.height||(t.height=14);let e=n.insert("g").attr("class","node default").attr("id",t.domId??t.id),a=v.svg(e),g=R(t,{});t.look!=="handDrawn"&&(g.roughness=0,g.fillStyle="solid");let y=a.circle(0,0,t.width,{...g,stroke:f,strokeWidth:2}),p=r??h,u=(t.width??0)*5/14,m=a.circle(0,0,u,{...g,fill:p,stroke:p,strokeWidth:2,fillStyle:"solid"}),d=e.insert(()=>y,":first-child");if(d.insert(()=>m),t.look!=="handDrawn"&&d.attr("class","outer-path"),c&&d.selectAll("path").attr("style",c),o&&d.selectAll("path").attr("style",o),t.width<25&&i&&t.look!=="handDrawn"){let x=n.node()?.ownerSVGElement?.id??"",w=x?`${x}-drop-shadow-small`:"drop-shadow-small";d.attr("style",`filter:url(#${w})`)}return H(t,d),t.intersect=function(x){return N.circle(t,(t.width??0)/2,x)},e}b(qa,"stateEnd");function za(n,t,{config:{themeVariables:s}}){let{lineColor:l,nodeShadow:o}=s;(t.width||t.height)&&((t.width??0)<14&&(t.width=14),(t.height??0)<14&&(t.height=14)),t.width||(t.width=14),t.height||(t.height=14);let c=n.insert("g").attr("class","node default").attr("id",t.domId||t.id),f;if(t.look==="handDrawn"){let h=v.svg(c).circle(0,0,t.width,le(l));f=c.insert(()=>h),f.attr("class","state-start").attr("r",(t.width??7)/2).attr("width",t.width??14).attr("height",t.height??14)}else f=c.insert("circle",":first-child"),f.attr("class","state-start").attr("r",(t.width??7)/2).attr("width",t.width??14).attr("height",t.height??14);if(t.width<25&&o&&t.look!=="handDrawn"){let r=n.node()?.ownerSVGElement?.id??"",h=r?`${r}-drop-shadow-small`:"drop-shadow-small";f.attr("style",`filter:url(#${h})`)}return H(t,f),t.intersect=function(r){return N.circle(t,(t.width??7)/2,r)},c}b(za,"stateStart");var Dt=8;async function Va(n,t){let{labelStyles:s,nodeStyles:l}=W(t);t.labelStyle=s;let o=t?.padding??8,c=t.look==="neo"?28:o,f=t.look==="neo"?12:o,{shapeSvg:r,bbox:h}=await X(n,t,Y(t)),i=Math.max(h.width+2*Dt+c,t.width??0),e=Math.max(h.height+f,t.height??0),a=i-2*Dt,g=e,y=-i/2,p=-e/2,u=[{x:0,y:0},{x:a,y:0},{x:a,y:-g},{x:0,y:-g},{x:0,y:0},{x:-8,y:0},{x:a+8,y:0},{x:a+8,y:-g},{x:-8,y:-g},{x:-8,y:0}];if(t.look==="handDrawn"){let m=v.svg(r),d=R(t,{}),x=m.rectangle(y,p,a+16,g,d),w=m.line(y+Dt,p,y+Dt,p+g,d),S=m.line(y+Dt+a,p,y+Dt+a,p+g,d);r.insert(()=>w,":first-child"),r.insert(()=>S,":first-child");let $=r.insert(()=>x,":first-child"),{cssStyles:M}=t;$.attr("class","basic label-container").attr("style",Q(M)),H(t,$)}else{let m=nt(r,a,g,u);l&&m.attr("style",l),H(t,m)}return t.intersect=function(m){return N.polygon(t,u,m)},r}b(Va,"subroutine");var qt=.2;async function Za(n,t){let{labelStyles:s,nodeStyles:l}=W(t);t.labelStyle=s;let o=t.padding??0,c=t.look==="neo"?16:o,f=t.look==="neo"?12:o;(t.width||t.height)&&(t.height=Math.max((t?.height??0)-f*2,10),t.width=Math.max((t?.width??0)-c*2-qt*(t.height+f*2),10));let{shapeSvg:r,bbox:h}=await X(n,t,Y(t)),i=(t?.height?t?.height:h.height)+f*2,e=qt*i,a=qt*i,y=(t?.width?t?.width:h.width)+c*2+e-e,p=i,u=-y/2,m=-p/2,{cssStyles:d}=t,x=v.svg(r),w=R(t,{}),S=[{x:u-e/2,y:m},{x:u+y+e/2,y:m},{x:u+y+e/2,y:m+p},{x:u-e/2,y:m+p}],$=[{x:u+y-e/2,y:m+p},{x:u+y+e/2,y:m+p},{x:u+y+e/2,y:m+p-a}];t.look!=="handDrawn"&&(w.roughness=0,w.fillStyle="solid");let M=F(S),k=x.path(M,w),P=F($),_=x.path(P,{...w,fillStyle:"solid"}),B=r.insert(()=>_,":first-child");return B.insert(()=>k,":first-child"),B.attr("class","basic label-container outer-path"),d&&t.look!=="handDrawn"&&B.selectAll("path").attr("style",d),l&&t.look!=="handDrawn"&&B.selectAll("path").attr("style",l),H(t,B),t.intersect=function(C){return N.polygon(t,S,C)},r}b(Za,"taggedRect");async function Ua(n,t){let{labelStyles:s,nodeStyles:l}=W(t);t.labelStyle=s;let{shapeSvg:o,bbox:c,label:f}=await X(n,t,Y(t)),r=Math.max(c.width+(t.padding??0)*2,t?.width??0),h=Math.max(c.height+(t.padding??0)*2,t?.height??0),i=h/8,e=.2*r,a=.2*h,g=h+i,{cssStyles:y}=t,p=v.svg(o),u=R(t,{});t.look!=="handDrawn"&&(u.roughness=0,u.fillStyle="solid");let m=[{x:-r/2-r/2*.1,y:g/2},...ut(-r/2-r/2*.1,g/2,r/2+r/2*.1,g/2,i,.8),{x:r/2+r/2*.1,y:-g/2},{x:-r/2-r/2*.1,y:-g/2}],d=-r/2+r/2*.1,x=-g/2-a*.4,w=[{x:d+r-e,y:(x+h)*1.3},{x:d+r,y:x+h-a},{x:d+r,y:(x+h)*.9},...ut(d+r,(x+h)*1.25,d+r-e,(x+h)*1.3,-h*.02,.5)],S=F(m),$=p.path(S,u),M=F(w),k=p.path(M,{...u,fillStyle:"solid"}),P=o.insert(()=>k,":first-child");return P.insert(()=>$,":first-child"),P.attr("class","basic label-container outer-path"),y&&t.look!=="handDrawn"&&P.selectAll("path").attr("style",y),l&&t.look!=="handDrawn"&&P.selectAll("path").attr("style",l),P.attr("transform",`translate(0,${-i/2})`),f.attr("transform",`translate(${-r/2+(t.padding??0)-(c.x-(c.left??0))},${-h/2+(t.padding??0)-i/2-(c.y-(c.top??0))})`),H(t,P),t.intersect=function(_){return N.polygon(t,m,_)},o}b(Ua,"taggedWaveEdgedRectangle");async function Ja(n,t){let{labelStyles:s,nodeStyles:l}=W(t);t.labelStyle=s;let{shapeSvg:o,bbox:c}=await X(n,t,Y(t)),f=Math.max(c.width+(t.padding??0),t?.width||0),r=Math.max(c.height+(t.padding??0),t?.height||0),h=-f/2,i=-r/2,e=o.insert("rect",":first-child");return e.attr("class","text").attr("style",l).attr("rx",0).attr("ry",0).attr("x",h).attr("y",i).attr("width",f).attr("height",r),H(t,e),t.intersect=function(a){return N.rect(t,a)},o}b(Ja,"text");var Js=b((n,t,s,l,o,c)=>`M${n},${t} + a${o},${c} 0,0,1 0,${-l} + l${s},0 + a${o},${c} 0,0,1 0,${l} + M${s},${-l} + a${o},${c} 0,0,0 0,${l} + l${-s},0`,"createCylinderPathD"),Ks=b((n,t,s,l,o,c)=>[`M${n},${t}`,`M${n+s},${t}`,`a${o},${c} 0,0,0 0,${-l}`,`l${-s},0`,`a${o},${c} 0,0,0 0,${l}`,`l${s},0`].join(" "),"createOuterCylinderPathD"),Qs=b((n,t,s,l,o,c)=>[`M${n+s/2},${-l/2}`,`a${o},${c} 0,0,0 0,${l}`].join(" "),"createInnerCylinderPathD"),Ce=5,Be=10;async function Ka(n,t){let{labelStyles:s,nodeStyles:l}=W(t);t.labelStyle=s;let o=t.padding??0,c=t.look==="neo"?12:o/2,f=t.height??0;if(t.height&&(t.height=t.height-c,t.heightS,":first-child"),u=r.insert(()=>w,":first-child"),u.attr("class","basic label-container"),p&&u.attr("style",p)}else{let m=Js(0,0,y,e,g,a);u=r.insert("path",":first-child").attr("d",m).attr("class","basic label-container").attr("style",Q(p)).attr("style",l),u.attr("class","basic label-container outer-path"),p&&u.selectAll("path").attr("style",p),l&&u.selectAll("path").attr("style",l)}return u.attr("label-offset-x",g),u.attr("transform",`translate(${-y/2}, ${e/2} )`),i.attr("transform",`translate(${-(h.width/2)-g-(h.x-(h.left??0))}, ${-(h.height/2)-(h.y-(h.top??0))})`),H(t,u),t.intersect=function(m){let d=N.rect(t,m),x=d.y-(t.y??0);if(a!=0&&(Math.abs(x)<(t.height??0)/2||Math.abs(x)==(t.height??0)/2&&Math.abs(d.x-(t.x??0))>(t.width??0)/2-g)){let w=g*g*(1-x*x/(a*a));w!=0&&(w=Math.sqrt(Math.abs(w))),w=g-w,m.x-(t.x??0)>0&&(w=-w),d.x+=w}return d},r}b(Ka,"tiltedCylinder");async function Qa(n,t){let{labelStyles:s,nodeStyles:l}=W(t);t.labelStyle=s;let o=t.padding??0,c=(t.look==="neo",o),f=t.look==="neo"?o*2:o,{shapeSvg:r,bbox:h}=await X(n,t,Y(t)),i=Math.max(h.height+c,t.height??0),e=Math.max(h.width+f,(t.width??0)-i),a=[{x:-3*i/6,y:0},{x:e+3*i/6,y:0},{x:e,y:-i},{x:0,y:-i}],g,{cssStyles:y}=t;if(t.look==="handDrawn"){let p=v.svg(r),u=R(t,{}),m=F(a),d=p.path(m,u);g=r.insert(()=>d,":first-child").attr("transform",`translate(${-e/2}, ${i/2})`),y&&g.attr("style",y)}else g=nt(r,e,i,a);return l&&g.attr("style",l),t.width=e,t.height=i,H(t,g),t.intersect=function(p){return N.polygon(t,a,p)},r}b(Qa,"trapezoid");async function ts(n,t){let{labelStyles:s,nodeStyles:l}=W(t);t.labelStyle=s;let o=t.padding??0,c=t.look==="neo"?16:o,f=t.look==="neo"?12:o,r=15,h=5;(t.width||t.height)&&(t.height=(t.height??0)-f*2,t.heightx,":first-child");return w.attr("class","basic label-container outer-path"),y&&t.look!=="handDrawn"&&w.selectChildren("path").attr("style",y),l&&t.look!=="handDrawn"&&w.selectChildren("path").attr("style",l),H(t,w),t.intersect=function(S){return N.polygon(t,m,S)},i}b(ts,"trapezoidalPentagon");var Ne=10,Ae=10;async function es(n,t){let{labelStyles:s,nodeStyles:l}=W(t);t.labelStyle=s;let o=t.padding??0,c=t.look==="neo"?o*2:o;(t.width||t.height)&&(t.width=((t?.width??0)-c)/2,t.widthx,":first-child").attr("transform",`translate(${-a/2}, ${a/2})`).attr("class","outer-path");return p&&t.look!=="handDrawn"&&w.selectChildren("path").attr("style",p),l&&t.look!=="handDrawn"&&w.selectChildren("path").attr("style",l),t.width=e,t.height=a,H(t,w),h.attr("transform",`translate(${-r.width/2-(r.x-(r.left??0))}, ${a/2-(r.height+(t.padding??0)/(i?2:1)-(r.y-(r.top??0)))})`),t.intersect=function(S){return J.info("Triangle intersect",t,y,S),N.polygon(t,y,S)},f}b(es,"triangle");async function as(n,t){let{labelStyles:s,nodeStyles:l}=W(t);t.labelStyle=s;let o=t.padding??0,c=t.look==="neo"?16:o,f=t.look==="neo"?12:o,r=!0;(t.width||t.height)&&(r=!1,t.width=(t?.width??0)-c*2,t.width<10&&(t.width=10),t.height=(t?.height??0)-f*2,t.height<10&&(t.height=10));let{shapeSvg:h,bbox:i,label:e}=await X(n,t,Y(t)),a=(t?.width?t?.width:i.width)+(c??0)*2,g=(t?.height?t?.height:i.height)+(f??0)*2,y=t.look==="neo"?g/4:g/8,p=g+(r?y:-y),{cssStyles:u}=t,d=14-a,x=d>0?d/2:0,w=v.svg(h),S=R(t,{});t.look!=="handDrawn"&&(S.roughness=0,S.fillStyle="solid");let $=[{x:-a/2-x,y:p/2},...ut(-a/2-x,p/2,a/2+x,p/2,y,.8),{x:a/2+x,y:-p/2},{x:-a/2-x,y:-p/2}],M=F($),k=w.path(M,S),P=h.insert(()=>k,":first-child");return P.attr("class","basic label-container outer-path"),u&&t.look!=="handDrawn"&&P.selectAll("path").attr("style",u),l&&t.look!=="handDrawn"&&P.selectAll("path").attr("style",l),P.attr("transform",`translate(0,${-y/2})`),e.attr("transform",`translate(${-a/2+(t.padding??0)-(i.x-(i.left??0))},${-g/2+(t.padding??0)-y-(i.y-(i.top??0))})`),H(t,P),t.intersect=function(_){return N.polygon(t,$,_)},h}b(as,"waveEdgedRectangle");async function ss(n,t){let{labelStyles:s,nodeStyles:l}=W(t);t.labelStyle=s;let o=t.padding??0,c=t.look==="neo"?16:o,f=t.look==="neo"?20:o;if(t.width||t.height){t.width=t?.width??0,t.width<20&&(t.width=20),t.height=t?.height??0,t.height<10&&(t.height=10);let S=Math.min(t.height*.2,t.height/4);t.height=Math.ceil(t.height-f-S*(20/9)),t.width=t.width-c*2}let{shapeSvg:r,bbox:h}=await X(n,t,Y(t)),i=(t?.width?t?.width:h.width)+c*2,e=(t?.height?t?.height:h.height)+f,a=e/8,g=e+a*2,{cssStyles:y}=t,p=v.svg(r),u=R(t,{});t.look!=="handDrawn"&&(u.roughness=0,u.fillStyle="solid");let m=[{x:-i/2,y:g/2},...ut(-i/2,g/2,i/2,g/2,a,1),{x:i/2,y:-g/2},...ut(i/2,-g/2,-i/2,-g/2,a,-1)],d=F(m),x=p.path(d,u),w=r.insert(()=>x,":first-child");return w.attr("class","basic label-container"),y&&t.look!=="handDrawn"&&w.selectAll("path").attr("style",y),l&&t.look!=="handDrawn"&&w.selectAll("path").attr("style",l),H(t,w),t.intersect=function(S){return N.polygon(t,m,S)},r}b(ss,"waveRectangle");var U=10;async function rs(n,t){let{labelStyles:s,nodeStyles:l}=W(t);t.labelStyle=s;let o=t.look==="neo"?16:t.padding??0,c=t.look==="neo"?12:t.padding??0;(t.width||t.height)&&(t.width=Math.max((t?.width??0)-o*2-U,10),t.height=Math.max((t?.height??0)-c*2-U,10));let{shapeSvg:f,bbox:r,label:h}=await X(n,t,Y(t)),i=(t?.width?t?.width:r.width)+o*2+U,e=(t?.height?t?.height:r.height)+c*2+U,a=i-U,g=e-U,y=-a/2,p=-g/2,{cssStyles:u}=t,m=v.svg(f),d=R(t,{}),x=[{x:y-U,y:p-U},{x:y-U,y:p+g},{x:y+a,y:p+g},{x:y+a,y:p-U}],w=`M${y-U},${p-U} L${y+a},${p-U} L${y+a},${p+g} L${y-U},${p+g} L${y-U},${p-U} + M${y-U},${p} L${y+a},${p} + M${y},${p-U} L${y},${p+g}`;t.look!=="handDrawn"&&(d.roughness=0,d.fillStyle="solid");let S=m.path(w,d),$=f.insert(()=>S,":first-child");return $.attr("transform",`translate(${U/2}, ${U/2})`),$.attr("class","basic label-container outer-path"),u&&t.look!=="handDrawn"&&$.selectAll("path").attr("style",u),l&&t.look!=="handDrawn"&&$.selectAll("path").attr("style",l),h.attr("transform",`translate(${-(r.width/2)+U/2-(r.x-(r.left??0))}, ${-(r.height/2)+U/2-(r.y-(r.top??0))})`),H(t,$),t.intersect=function(M){return N.polygon(t,x,M)},f}b(rs,"windowPane");var Re=new Set(["redux-color","redux-dark-color"]),tr=new Set(["redux","redux-dark","redux-color","redux-dark-color"]);async function ae(n,t){let s=t;s.alias&&(t.label=s.alias);let{theme:l,themeVariables:o}=$t(),{rowEven:c,rowOdd:f,nodeBorder:r,borderColorArray:h}=o;if(t.look==="handDrawn"){let{themeVariables:j}=$t(),{background:q}=j,K={...t,id:t.id+"-background",domId:(t.domId||t.id)+"-background",look:"default",cssStyles:["stroke: none",`fill: ${q}`]};await ae(n,K)}let i=$t();t.useHtmlLabels=i.htmlLabels;let e=i.er?.diagramPadding??10,a=i.er?.entityPadding??6,{cssStyles:g}=t,{labelStyles:y,nodeStyles:p}=W(t);if(s.attributes.length===0&&t.label){let j={rx:0,ry:0,labelPaddingX:e,labelPaddingY:e*1.5,classes:""};At(t.label,i)+j.labelPaddingX*20){let j=d.width+e*2-($+M+k+P);$+=j/C,M+=j/C,k>0&&(k+=j/C),P>0&&(P+=j/C)}let D=$+M+k+P,L=v.svg(m),E=R(t,{});t.look!=="handDrawn"&&(E.roughness=0,E.fillStyle="solid");let A=0;S.length>0&&(A=S.reduce((j,q)=>j+(q?.rowHeight??0),0));let T=Math.max(I.width+e*2,t?.width||0,D),O=Math.max((A??0)+d.height,t?.height||0),G=-T/2,V=-O/2;if(m.selectAll("g:not(:first-child)").each((j,q,K)=>{let st=Z(K[q]),dt=st.attr("transform"),ft=0,se=0;if(dt){let Wt=RegExp(/translate\(([^,]+),([^)]+)\)/).exec(dt);Wt&&(ft=parseFloat(Wt[1]),se=parseFloat(Wt[2]),st.attr("class").includes("attribute-name")?ft+=$:st.attr("class").includes("attribute-keys")?ft+=$+M:st.attr("class").includes("attribute-comment")&&(ft+=$+M+k))}st.attr("transform",`translate(${G+e/2+ft}, ${se+V+d.height+a/2})`)}),m.select(".name").attr("transform","translate("+-d.width/2+", "+(V+a/2)+")"),l!=null&&Re.has(l)){let j=s.colorIndex??0;m.attr("data-color-id",`color-${j%h.length}`)}let rt=L.rectangle(G,V,T,O,E),yt=m.insert(()=>rt,":first-child").attr("class","outer-path").attr("style",g.join(""));w.push(0);for(let[j,q]of S.entries()){let st=(j+1)%2===0&&q.yOffset!==0,dt=L.rectangle(G,d.height+V+q?.yOffset,T,q?.rowHeight,{...E,fill:st?c:f,stroke:r});m.insert(()=>dt,"g.label").attr("style",g.join("")).attr("class",`row-rect-${st?"even":"odd"}`)}let ct=1e-4,et=Bt(G,d.height+V,T+G,d.height+V,ct),at=L.polygon(et.map(j=>[j.x,j.y]),E);if(m.insert(()=>at).attr("class","divider"),et=Bt($+G,d.height+V,$+G,O+V,ct),at=L.polygon(et.map(j=>[j.x,j.y]),E),m.insert(()=>at).attr("class","divider"),_){let j=$+M+G;et=Bt(j,d.height+V,j,O+V,ct),at=L.polygon(et.map(q=>[q.x,q.y]),E),m.insert(()=>at).attr("class","divider")}if(B){let j=$+M+k+G;et=Bt(j,d.height+V,j,O+V,ct),at=L.polygon(et.map(q=>[q.x,q.y]),E),m.insert(()=>at).attr("class","divider")}for(let j of w){let q=d.height+V+j;et=Bt(G,q,T+G,q,ct),at=L.polygon(et.map(K=>[K.x,K.y]),E),m.insert(()=>at).attr("class","divider")}if(H(t,yt),p&&t.look!=="handDrawn")if(l!=null&&tr.has(l))m.selectAll("path").attr("style",p);else{let q=p.split(";")?.filter(K=>K.includes("stroke"))?.map(K=>`${K}`).join("; ");m.selectAll("path").attr("style",q??""),m.selectAll(".row-rect-even path").attr("style",p)}return t.intersect=function(j){return N.rect(t,j)},m}b(ae,"erBox");async function Ct(n,t,s,l=0,o=0,c=[],f=""){let r=n.insert("g").attr("class",`label ${c.join(" ")}`).attr("transform",`translate(${l}, ${o})`).attr("style",f);t!==Tt(t)&&(t=Tt(t),t=t.replaceAll("<","<").replaceAll(">",">"));let h=r.node().appendChild(await pt(r,t,{width:At(t,s)+100,style:f,useHtmlLabels:s.htmlLabels},s));if(t.includes("<")||t.includes(">")){let e=h.children[0];for(e.textContent=e.textContent.replaceAll("<","<").replaceAll(">",">");e.childNodes[0];)e=e.childNodes[0],e.textContent=e.textContent.replaceAll("<","<").replaceAll(">",">")}let i=h.getBBox();if(mt(s.htmlLabels)){let e=h.children[0];e.style.textAlign="start";let a=Z(h);i=e.getBoundingClientRect(),a.attr("width",i.width),a.attr("height",i.height)}return i}b(Ct,"addText");function Bt(n,t,s,l,o){return n===s?[{x:n-o/2,y:t},{x:n+o/2,y:t},{x:s+o/2,y:l},{x:s-o/2,y:l}]:[{x:n,y:t-o/2},{x:n,y:t+o/2},{x:s,y:l+o/2},{x:s,y:l-o/2}]}b(Bt,"lineToPolygon");async function is(n,t,s,l,o=s.class.padding??12){let c=l?0:3,f=n.insert("g").attr("class",Y(t)).attr("id",t.domId||t.id),r=null,h=null,i=null,e=null,a=0,g=0,y=0;if(r=f.insert("g").attr("class","annotation-group text"),t.annotations.length>0){let x=t.annotations[0];await Ht(r,{text:`\xAB${x}\xBB`},0),a=r.node().getBBox().height}h=f.insert("g").attr("class","label-group text"),await Ht(h,t,0,["font-weight: bolder"]);let p=h.node().getBBox();g=p.height,i=f.insert("g").attr("class","members-group text");let u=0;for(let x of t.members){let w=await Ht(i,x,u,[x.parseClassifier()]);u+=w+c}y=i.node().getBBox().height,y<=0&&(y=o/2),e=f.insert("g").attr("class","methods-group text");let m=0;for(let x of t.methods){let w=await Ht(e,x,m,[x.parseClassifier()]);m+=w+c}let d=f.node().getBBox();if(r!==null){let x=r.node().getBBox();r.attr("transform",`translate(${-x.width/2})`)}return h.attr("transform",`translate(${-p.width/2}, ${a})`),d=f.node().getBBox(),i.attr("transform",`translate(0, ${a+g+o*2})`),d=f.node().getBBox(),e.attr("transform",`translate(0, ${a+g+(y?y+o*4:o*2)})`),d=f.node().getBBox(),{shapeSvg:f,bbox:d}}b(is,"textHelper");async function Ht(n,t,s,l=[]){let o=n.insert("g").attr("class","label").attr("style",l.join("; ")),c=$t(),f="useHtmlLabels"in t?t.useHtmlLabels:mt(c.htmlLabels)??!0,r="";"text"in t?r=t.text:r=t.label,!f&&r.startsWith("\\")&&(r=r.substring(1)),ie(r)&&(f=!0);let h=await pt(o,_t(Mt(r)),{width:At(r,c)+50,classes:"markdown-node-label",useHtmlLabels:f},c),i,e=1;if(f){let a=h.children[0],g=Z(h);e=a.innerHTML.split("
    ").length,a.innerHTML.includes("")&&(e+=a.innerHTML.split("").length-1),await Jt(a),i=a.getBoundingClientRect(),g.attr("width",i.width),g.attr("height",i.height)}else{l.includes("font-weight: bolder")&&Z(h).selectAll("tspan").attr("font-weight",""),e=h.children.length;let a=h.children[0];(h.textContent===""||h.textContent.includes(">"))&&(a.textContent=r[0]+r.substring(1).replaceAll(">",">").replaceAll("<","<").trim(),r[1]===" "&&(a.textContent=a.textContent[0]+" "+a.textContent.substring(1))),a.textContent==="undefined"&&(a.textContent=""),i=h.getBBox()}return o.attr("transform","translate(0,"+(-i.height/(2*e)+s)+")"),i.height}b(Ht,"addText");async function ls(n,t){let s=z(),{theme:l,themeVariables:o}=s,{useGradient:c,borderColorArray:f}=o,r=s.class.padding??12,h=r,i=t.useHtmlLabels??mt(s.htmlLabels)??!0,e=t;e.annotations=e.annotations??[],e.members=e.members??[],e.methods=e.methods??[];let{shapeSvg:a,bbox:g}=await is(n,t,s,i,h);wt(a,t.colorIndex,l,f);let{labelStyles:y,nodeStyles:p}=W(t);t.labelStyle=y,t.cssStyles=e.styles||"";let u=e.styles?.join(";")||p||"";t.cssStyles||(t.cssStyles=u.replaceAll("!important","").split(";"));let m=e.members.length===0&&e.methods.length===0&&!s.class?.hideEmptyMembersBox,d=v.svg(a),x=R(t,{});t.look!=="handDrawn"&&(x.roughness=0,x.fillStyle="solid");let w=Math.max(t.width??0,g.width),S=Math.max(t.height??0,g.height),$=(t.height??0)>g.height;e.members.length===0&&e.methods.length===0?S+=h:e.members.length>0&&e.methods.length===0&&(S+=h*2);let M=-w/2,k=-S/2,P=m?r*2:e.members.length===0&&e.methods.length===0?-r:0;$&&(P=r*2);let _=d.rectangle(M-r,k-r-(m?r:e.members.length===0&&e.methods.length===0?-r/2:0),w+2*r,S+2*r+P,x),B=a.insert(()=>_,":first-child");B.attr("class","basic label-container outer-path");let C=B.node().getBBox(),I=a.select(".annotation-group").node().getBBox().height-(m?r/2:0)||0,D=a.select(".label-group").node().getBBox().height-(m?r/2:0)||0,L=a.select(".members-group").node().getBBox().height-(m?r/2:0)||0,E=(I+D+k+r-(k-r-(m?r:e.members.length===0&&e.methods.length===0?-r/2:0)))/2;if(a.selectAll(".text").each((A,T,O)=>{let G=Z(O[T]),V=G.attr("transform"),rt=0;if(V){let at=RegExp(/translate\(([^,]+),([^)]+)\)/).exec(V);at&&(rt=parseFloat(at[2]))}let yt=rt+k+r-(m?r:e.members.length===0&&e.methods.length===0?-r/2:0);if(G.attr("class").includes("methods-group")){let et=Math.max(L,h/2);$?yt=Math.max(E,I+D+et+k+h*2+r)+h*2:yt=I+D+et+k+h*4+r}e.members.length===0&&e.methods.length===0&&s.class?.hideEmptyMembersBox&&(e.annotations.length>0?yt=rt-h:yt=rt),i||(yt-=4);let ct=M;(G.attr("class").includes("label-group")||G.attr("class").includes("annotation-group"))&&(ct=-G.node()?.getBBox().width/2||0,a.selectAll("text").each(function(et,at,j){window.getComputedStyle(j[at]).textAnchor==="middle"&&(ct=0)})),G.attr("transform",`translate(${ct}, ${yt})`)}),e.members.length>0||e.methods.length>0||m){let A=I+D+k+r,T=d.line(C.x,A,C.x+C.width,A+.001,x);a.insert(()=>T).attr("class",`divider${t.look==="neo"&&!c?" neo-line":""}`).attr("style",u)}if(m||e.members.length>0||e.methods.length>0){let A=I+D+L+k+h*2+r,T=d.line(C.x,$?Math.max(E,A):A,C.x+C.width,($?Math.max(E,A):A)+.001,x);a.insert(()=>T).attr("class",`divider${t.look==="neo"&&!c?" neo-line":""}`).attr("style",u)}if(e.look!=="handDrawn"&&a.selectAll("path").attr("style",u),B.select(":nth-child(2)").attr("style",u),a.selectAll(".divider").select("path").attr("style",u),t.labelStyle?a.selectAll("span").attr("style",t.labelStyle):a.selectAll("span").attr("style",u),!i){let A=RegExp(/color\s*:\s*([^;]*)/),T=A.exec(u);if(T){let O=T[0].replace("color","fill");a.selectAll("tspan").attr("style",O)}else if(y){let O=A.exec(y);if(O){let G=O[0].replace("color","fill");a.selectAll("tspan").attr("style",G)}}}return H(t,B),t.intersect=function(A){return N.rect(t,A)},a}b(ls,"classBox");async function ns(n,t){let{labelStyles:s,nodeStyles:l}=W(t);t.labelStyle=s;let o=t,c=t,f=20,r=20,h="verifyMethod"in t,i=Y(t),e=z(),{themeVariables:a}=e,{borderColorArray:g,requirementEdgeLabelBackground:y}=a,p=e.layout==="elk"?"start":"center",u=n.insert("g").attr("class",i).attr("id",t.domId??t.id),m;h?m=await it(u,`<<${o.type}>>`,0,t.labelStyle):m=await it(u,"<<Element>>",0,t.labelStyle);let d=m,x=await it(u,o.name,d,t.labelStyle+"; font-weight: bold;");if(d+=x+r,h){let C=await it(u,`${o.requirementId?`ID: ${o.requirementId}`:""}`,d,t.labelStyle,p);d+=C;let I=await it(u,`${o.text?`Text: ${o.text}`:""}`,d,t.labelStyle,p);d+=I;let D=await it(u,`${o.risk?`Risk: ${o.risk}`:""}`,d,t.labelStyle,p);d+=D,await it(u,`${o.verifyMethod?`Verification: ${o.verifyMethod}`:""}`,d,t.labelStyle,p)}else{let C=await it(u,`${c.type?`Type: ${c.type}`:""}`,d,t.labelStyle,p);d+=C,await it(u,`${c.docRef?`Doc Ref: ${c.docRef}`:""}`,d,t.labelStyle,p)}let w=(u.node()?.getBBox().width??200)+f,S=(u.node()?.getBBox().height??200)+f,$=-w/2,M=-S/2,k=v.svg(u),P=R(t,{});t.look!=="handDrawn"&&(P.roughness=0,P.fillStyle="solid");let _=k.rectangle($,M,w,S,P),B=u.insert(()=>_,":first-child");if(B.attr("class","basic label-container outer-path").attr("style",l),g?.length){let C=t.colorIndex??0;u.attr("data-color-id",`color-${C%g.length}`)}if(u.selectAll(".label").each((C,I,D)=>{let L=Z(D[I]),E=L.attr("transform"),A=0,T=0;if(E){let rt=RegExp(/translate\(([^,]+),([^)]+)\)/).exec(E);rt&&(A=parseFloat(rt[1]),T=parseFloat(rt[2]))}let O=T-S/2,G=$+f/2;(I===0||I===1)&&(G=A),L.attr("transform",`translate(${G}, ${O+f})`)}),d>m+x+r){let C=M+m+x+r,I;if(t.look==="neo"){let E=[[$,C],[$+w,C],[$+w,C+.001],[$,C+.001]];I=k.polygon(E,P)}else I=k.line($,C,$+w,C,P);u.insert(()=>I).attr("class","divider")}return H(t,B),t.intersect=function(C){return N.rect(t,C)},l&&t.look!=="handDrawn"&&(y||g?.length)&&u.selectAll("path").attr("style",l),u}b(ns,"requirementBox");async function it(n,t,s,l="",o="center"){if(t==="")return 0;let c=n.insert("g").attr("class","label").attr("style",l),f=z(),r=f.htmlLabels??!0,h=await pt(c,_t(Mt(t)),{width:At(t,f)+50,classes:"markdown-node-label",useHtmlLabels:r,style:l},f),i;if(r){let e=h.children[0],a=Z(h);o==="start"&&Z(e).style("text-align","left"),i=e.getBoundingClientRect(),a.attr("width",i.width),a.attr("height",i.height)}else{let e=h.children[0];for(let a of e.children)l&&a.setAttribute("style",l);if(o==="start"){e.setAttribute("text-anchor","start");for(let a of e.children)a.setAttribute("text-anchor","start")}i=h.getBBox(),i.height+=6}return c.attr("transform",`translate(${-i.width/2},${-i.height/2+s})`),i.height}b(it,"addText");var er=b(n=>{switch(n){case"Very High":return"red";case"High":return"orange";case"Medium":return null;case"Low":return"blue";case"Very Low":return"lightblue"}},"colorFromPriority");async function cs(n,t,{config:s}){let{labelStyles:l,nodeStyles:o}=W(t);t.labelStyle=l||"";let c=10,f=t.width;t.width=(t.width??200)-10;let{shapeSvg:r,bbox:h,label:i}=await X(n,t,Y(t)),e=t.padding||10,a="",g;"ticket"in t&&t.ticket&&s?.kanban?.ticketBaseUrl&&(a=s?.kanban?.ticketBaseUrl.replace("#TICKET#",t.ticket),g=r.insert("svg:a",":first-child").attr("class","kanban-ticket-link").attr("xlink:href",a).attr("target","_blank"));let y={useHtmlLabels:t.useHtmlLabels,labelStyle:t.labelStyle||"",width:t.width,img:t.img,padding:t.padding||8,centerLabel:!1},p,u;g?{label:p,bbox:u}=await St(g,"ticket"in t&&t.ticket||"",y):{label:p,bbox:u}=await St(r,"ticket"in t&&t.ticket||"",y);let{label:m,bbox:d}=await St(r,"assigned"in t&&t.assigned||"",y);t.width=f;let x=10,w=t?.width||0,S=Math.max(u.height,d.height)/2,$=Math.max(h.height+x*2,t?.height||0)+S,M=-w/2,k=-$/2;i.attr("transform","translate("+(e-w/2)+", "+(-S-h.height/2)+")"),p.attr("transform","translate("+(e-w/2)+", "+(-S+h.height/2)+")"),m.attr("transform","translate("+(e+w/2-d.width-2*c)+", "+(-S+h.height/2)+")");let P,{rx:_,ry:B}=t,{cssStyles:C}=t;if(t.look==="handDrawn"){let I=v.svg(r),D=R(t,{}),L=_||B?I.path(gt(M,k,w,$,_||0),D):I.rectangle(M,k,w,$,D);P=r.insert(()=>L,":first-child"),P.attr("class","basic label-container").attr("style",C||null)}else{P=r.insert("rect",":first-child"),P.attr("class","basic label-container __APA__").attr("style",o).attr("rx",_??5).attr("ry",B??5).attr("x",M).attr("y",k).attr("width",w).attr("height",$);let I="priority"in t&&t.priority;if(I){let D=r.append("line"),L=M+2,E=k+Math.floor((_??0)/2),A=k+$-Math.floor((_??0)/2);D.attr("x1",L).attr("y1",E).attr("x2",L).attr("y2",A).attr("stroke-width","4").attr("stroke",er(I))}}return H(t,P),t.height=$,t.intersect=function(I){return N.rect(t,I)},r}b(cs,"kanbanItem");async function os(n,t){let{labelStyles:s,nodeStyles:l}=W(t);t.labelStyle=s;let{shapeSvg:o,bbox:c,halfPadding:f,label:r}=await X(n,t,Y(t)),h=c.width+10*f,i=c.height+8*f,e=.15*h,{cssStyles:a}=t,g=c.width+20,y=c.height+20,p=Math.max(h,g),u=Math.max(i,y);r.attr("transform",`translate(${-c.width/2}, ${-c.height/2})`);let m,d=`M0 0 + a${e},${e} 1 0,0 ${p*.25},${-1*u*.1} + a${e},${e} 1 0,0 ${p*.25},0 + a${e},${e} 1 0,0 ${p*.25},0 + a${e},${e} 1 0,0 ${p*.25},${u*.1} + + a${e},${e} 1 0,0 ${p*.15},${u*.33} + a${e*.8},${e*.8} 1 0,0 0,${u*.34} + a${e},${e} 1 0,0 ${-1*p*.15},${u*.33} + + a${e},${e} 1 0,0 ${-1*p*.25},${u*.15} + a${e},${e} 1 0,0 ${-1*p*.25},0 + a${e},${e} 1 0,0 ${-1*p*.25},0 + a${e},${e} 1 0,0 ${-1*p*.25},${-1*u*.15} + + a${e},${e} 1 0,0 ${-1*p*.1},${-1*u*.33} + a${e*.8},${e*.8} 1 0,0 0,${-1*u*.34} + a${e},${e} 1 0,0 ${p*.1},${-1*u*.33} + H0 V0 Z`;if(t.look==="handDrawn"){let x=v.svg(o),w=R(t,{}),S=x.path(d,w);m=o.insert(()=>S,":first-child"),m.attr("class","basic label-container").attr("style",Q(a))}else m=o.insert("path",":first-child").attr("class","basic label-container").attr("style",l).attr("d",d);return m.attr("transform",`translate(${-p/2}, ${-u/2})`),H(t,m),t.calcIntersect=function(x,w){return N.rect(x,w)},t.intersect=function(x){return J.info("Bang intersect",t,x),N.rect(t,x)},o}b(os,"bang");async function hs(n,t){let{labelStyles:s,nodeStyles:l}=W(t);t.labelStyle=s;let{shapeSvg:o,bbox:c,halfPadding:f,label:r}=await X(n,t,Y(t)),h=c.width+2*f,i=c.height+2*f,e=.15*h,a=.25*h,g=.35*h,y=.2*h,{cssStyles:p}=t,u,m=`M0 0 + a${e},${e} 0 0,1 ${h*.25},${-1*h*.1} + a${g},${g} 1 0,1 ${h*.4},${-1*h*.1} + a${a},${a} 1 0,1 ${h*.35},${h*.2} + + a${e},${e} 1 0,1 ${h*.15},${i*.35} + a${y},${y} 1 0,1 ${-1*h*.15},${i*.65} + + a${a},${e} 1 0,1 ${-1*h*.25},${h*.15} + a${g},${g} 1 0,1 ${-1*h*.5},0 + a${e},${e} 1 0,1 ${-1*h*.25},${-1*h*.15} + + a${e},${e} 1 0,1 ${-1*h*.1},${-1*i*.35} + a${y},${y} 1 0,1 ${h*.1},${-1*i*.65} + H0 V0 Z`;if(t.look==="handDrawn"){let d=v.svg(o),x=R(t,{}),w=d.path(m,x);u=o.insert(()=>w,":first-child"),u.attr("class","basic label-container").attr("style",Q(p))}else u=o.insert("path",":first-child").attr("class","basic label-container").attr("style",l).attr("d",m);return r.attr("transform",`translate(${-c.width/2}, ${-c.height/2})`),u.attr("transform",`translate(${-h/2}, ${-i/2})`),H(t,u),t.calcIntersect=function(d,x){return N.rect(d,x)},t.intersect=function(d){return J.info("Cloud intersect",t,d),N.rect(t,d)},o}b(hs,"cloud");async function gs(n,t){let{labelStyles:s,nodeStyles:l}=W(t);t.labelStyle=s;let{shapeSvg:o,bbox:c,halfPadding:f,label:r}=await X(n,t,Y(t)),h=c.width+8*f,i=c.height+2*f,e=5,a=t.look==="neo"?` + M${-h/2} ${i/2-e} + v${-i+2*e} + q0,-${e} ${e},-${e} + h${h-2*e} + q${e},0 ${e},${e} + v${i-e} + H${-h/2} + Z + `:` + M${-h/2} ${i/2-e} + v${-i+2*e} + q0,-${e} ${e},-${e} + h${h-2*e} + q${e},0 ${e},${e} + v${i-2*e} + q0,${e} ${-e},${e} + h${-(h-2*e)} + q${-e},0 ${-e},${-e} + Z + `;if(!t.domId)throw new Error(`defaultMindmapNode: node "${t.id}" is missing a domId \u2014 was render.ts domId prefixing skipped?`);let g=o.append("path").attr("id",t.domId).attr("class","node-bkg node-"+t.type).attr("style",l).attr("d",a);return o.append("line").attr("class","node-line-").attr("x1",-h/2).attr("y1",i/2).attr("x2",h/2).attr("y2",i/2),r.attr("transform",`translate(${-c.width/2}, ${-c.height/2})`),o.append(()=>r.node()),H(t,g),t.calcIntersect=function(y,p){return N.rect(y,p)},t.intersect=function(y){return N.rect(t,y)},o}b(gs,"defaultMindmapNode");async function ys(n,t){let s={padding:t.padding??0};return te(n,t,s)}b(ys,"mindmapCircle");var ar=[{semanticName:"Process",name:"Rectangle",shortName:"rect",description:"Standard process shape",aliases:["proc","process","rectangle"],internalAliases:["squareRect"],handler:ja},{semanticName:"Event",name:"Rounded Rectangle",shortName:"rounded",description:"Represents an event",aliases:["event"],internalAliases:["roundedRect"],handler:Ya},{semanticName:"Terminal Point",name:"Stadium",shortName:"stadium",description:"Terminal point",aliases:["terminal","pill"],handler:Ga},{semanticName:"Subprocess",name:"Framed Rectangle",shortName:"fr-rect",description:"Subprocess",aliases:["subprocess","subproc","framed-rectangle","subroutine"],handler:Va},{semanticName:"Database",name:"Cylinder",shortName:"cyl",description:"Database storage",aliases:["db","database","cylinder"],handler:ra},{semanticName:"Data Store",name:"Data Store",shortName:"datastore",description:"Data flow diagram data store",aliases:["data-store"],handler:ia},{semanticName:"Folder",name:"Folder",shortName:"folder",description:"Folder or directory",aliases:["directory"],handler:ga},{semanticName:"Bucket",name:"Bucket",shortName:"bucket",description:"Object storage bucket",handler:Xe},{semanticName:"Console",name:"Console (terminal window)",shortName:"console",description:"Terminal or console window",handler:Ue},{semanticName:"Browser",name:"Browser",shortName:"browser",description:"Browser window",handler:qe},{semanticName:"Person",name:"Person",shortName:"person",description:"Person (circular head above a rounded body)",handler:sa},{semanticName:"Start",name:"Circle",shortName:"circle",description:"Starting point",aliases:["circ"],handler:te},{semanticName:"Bang",name:"Bang",shortName:"bang",description:"Bang",aliases:["bang"],handler:os},{semanticName:"Cloud",name:"Cloud",shortName:"cloud",description:"cloud",aliases:["cloud"],handler:hs},{semanticName:"Decision",name:"Diamond",shortName:"diam",description:"Decision-making step",aliases:["decision","diamond","question"],handler:Wa},{semanticName:"Prepare Conditional",name:"Hexagon",shortName:"hex",description:"Preparation or condition step",aliases:["hexagon","prepare"],handler:pa},{semanticName:"Data Input/Output",name:"Lean Right",shortName:"lean-r",description:"Represents input or output",aliases:["lean-right","in-out"],internalAliases:["lean_right"],handler:ka},{semanticName:"Data Input/Output",name:"Lean Left",shortName:"lean-l",description:"Represents output or input",aliases:["lean-left","out-in"],internalAliases:["lean_left"],handler:va},{semanticName:"Priority Action",name:"Trapezoid Base Bottom",shortName:"trap-b",description:"Priority action",aliases:["priority","trapezoid-bottom","trapezoid"],handler:Qa},{semanticName:"Manual Operation",name:"Trapezoid Base Top",shortName:"trap-t",description:"Represents a manual task",aliases:["manual","trapezoid-top","inv-trapezoid"],internalAliases:["inv_trapezoid"],handler:Sa},{semanticName:"Stop",name:"Double Circle",shortName:"dbl-circ",description:"Represents a stop point",aliases:["double-circle"],internalAliases:["doublecircle"],handler:na},{semanticName:"Text Block",name:"Text Block",shortName:"text",description:"Text block",handler:Ja},{semanticName:"Card",name:"Notched Rectangle",shortName:"notch-rect",description:"Represents a card",aliases:["card","notched-rectangle"],handler:ze},{semanticName:"Lined/Shaded Process",name:"Lined Rectangle",shortName:"lin-rect",description:"Lined process shape",aliases:["lined-rectangle","lined-process","lin-proc","shaded-process"],handler:Oa},{semanticName:"Start",name:"Small Circle",shortName:"sm-circ",description:"Small starting point",aliases:["start","small-circle"],internalAliases:["stateStart"],handler:za},{semanticName:"Stop",name:"Framed Circle",shortName:"fr-circ",description:"Stop point",aliases:["stop","framed-circle"],internalAliases:["stateEnd"],handler:qa},{semanticName:"Fork/Join",name:"Filled Rectangle",shortName:"fork",description:"Fork or join in process flow",aliases:["join"],internalAliases:["forkJoin"],handler:ya},{semanticName:"Collate",name:"Hourglass",shortName:"hourglass",description:"Represents a collate operation",aliases:["hourglass","collate"],handler:ua},{semanticName:"Comment",name:"Curly Brace",shortName:"brace",description:"Adds a comment",aliases:["comment","brace-l"],handler:Qe},{semanticName:"Comment Right",name:"Curly Brace",shortName:"brace-r",description:"Adds a comment",handler:ta},{semanticName:"Comment with braces on both sides",name:"Curly Braces",shortName:"braces",description:"Adds a comment",handler:ea},{semanticName:"Com Link",name:"Lightning Bolt",shortName:"bolt",description:"Communication link",aliases:["com-link","lightning-bolt"],handler:Ma},{semanticName:"Document",name:"Document",shortName:"doc",description:"Represents a document",aliases:["doc","document"],handler:as},{semanticName:"Delay",name:"Half-Rounded Rectangle",shortName:"delay",description:"Represents a delay",aliases:["half-rounded-rectangle"],handler:fa},{semanticName:"Direct Access Storage",name:"Horizontal Cylinder",shortName:"h-cyl",description:"Direct access storage",aliases:["das","horizontal-cylinder"],handler:Ka},{semanticName:"Disk Storage",name:"Lined Cylinder",shortName:"lin-cyl",description:"Disk storage",aliases:["disk","lined-cylinder"],handler:Pa},{semanticName:"Display",name:"Curved Trapezoid",shortName:"curv-trap",description:"Represents a display",aliases:["curved-trapezoid","display"],handler:aa},{semanticName:"Divided Process",name:"Divided Rectangle",shortName:"div-rect",description:"Divided process shape",aliases:["div-proc","divided-rectangle","divided-process"],handler:la},{semanticName:"Extract",name:"Triangle",shortName:"tri",description:"Extraction process",aliases:["extract","triangle"],handler:es},{semanticName:"Internal Storage",name:"Window Pane",shortName:"win-pane",description:"Internal storage",aliases:["internal-storage","window-pane"],handler:rs},{semanticName:"Junction",name:"Filled Circle",shortName:"f-circ",description:"Junction point",aliases:["junction","filled-circle"],handler:oa},{semanticName:"Loop Limit",name:"Trapezoidal Pentagon",shortName:"notch-pent",description:"Loop limit step",aliases:["loop-limit","notched-pentagon"],handler:ts},{semanticName:"Manual File",name:"Flipped Triangle",shortName:"flip-tri",description:"Manual file operation",aliases:["manual-file","flipped-triangle"],handler:ha},{semanticName:"Manual Input",name:"Sloped Rectangle",shortName:"sl-rect",description:"Manual input step",aliases:["manual-input","sloped-rectangle"],handler:Xa},{semanticName:"Multi-Document",name:"Stacked Document",shortName:"docs",description:"Multiple documents",aliases:["documents","st-doc","stacked-document"],handler:La},{semanticName:"Multi-Process",name:"Stacked Rectangle",shortName:"st-rect",description:"Multiple processes",aliases:["procs","processes","stacked-rectangle"],handler:Ia},{semanticName:"Stored Data",name:"Bow Tie Rectangle",shortName:"bow-rect",description:"Stored data",aliases:["stored-data","bow-tie-rectangle"],handler:Oe},{semanticName:"Summary",name:"Crossed Circle",shortName:"cross-circ",description:"Summary",aliases:["summary","crossed-circle"],handler:Ke},{semanticName:"Tagged Document",name:"Tagged Document",shortName:"tag-doc",description:"Tagged document",aliases:["tag-doc","tagged-document"],handler:Ua},{semanticName:"Tagged Process",name:"Tagged Rectangle",shortName:"tag-rect",description:"Tagged process",aliases:["tagged-rectangle","tag-proc","tagged-process"],handler:Za},{semanticName:"Paper Tape",name:"Flag",shortName:"flag",description:"Paper tape",aliases:["paper-tape"],handler:ss},{semanticName:"Odd",name:"Odd",shortName:"odd",description:"Odd shape",internalAliases:["rect_left_inv_arrow"],handler:Ta},{semanticName:"Lined Document",name:"Lined Document",shortName:"lin-doc",description:"Lined document",aliases:["lined-document"],handler:Da}],sr=b(()=>{let t=[...Object.entries({state:Fa,choice:Ve,note:Ea,composite:Ze,rectWithTitle:_a,labelRect:$a,block_arrow:Fe,collapsedGroup:Ge,iconSquare:wa,iconCircle:ma,icon:da,iconRounded:xa,imageSquare:ba,anchor:_e,kanbanItem:cs,mindmapCircle:ys,defaultMindmapNode:gs,classBox:ls,erBox:ae,requirementBox:ns,usecaseActor:Ca,usecaseActorHollow:Na,usecaseActorAwesome:Ba,usecaseActorIcon:Aa,usecaseBusiness:Ra,usecaseEllipse:ca,usecaseJsonTable:Ha}),...ar.flatMap(s=>[s.shortName,..."aliases"in s?s.aliases:[],..."internalAliases"in s?s.internalAliases:[]].map(o=>[o,s.handler]))];return Object.fromEntries(t)},"generateShapeMap"),rr=sr();function ir(n){return n in rr}b(ir,"isValidShape");export{X as a,H as b,xs as c,N as d,gt as e,ge as f,rr as g,ir as h}; diff --git a/src/frontend/web/von_interface/static/vendor/conversation-visuals/chunk-U7XT7CN7.js b/src/frontend/web/von_interface/static/vendor/conversation-visuals/chunk-U7XT7CN7.js new file mode 100644 index 000000000..b096fabc2 --- /dev/null +++ b/src/frontend/web/von_interface/static/vendor/conversation-visuals/chunk-U7XT7CN7.js @@ -0,0 +1 @@ +import{a as P}from"./chunk-NDMMOI35.js";import{a as y}from"./chunk-YUSHYV7C.js";var w=5,O=1e-5,X=2,Y=.6,R=1e-6;function N(t){let e=[];for(let s=0;s=1-R||l<=R||l>=1-R?null:{point:{x:t.x+p*r,y:t.y+p*o},tA:p,tB:l}}y(T,"segmentIntersection");function v(t){return Math.abs(t.b.x-t.a.x)>=Math.abs(t.b.y-t.a.y)}y(v,"isHorizontalSeg");function B(t,e,s){if(t.curve!=="rounded")return!1;let i=t.points,r=i[e],o=i[e+1];if(!r||!o)return!1;let a=Math.hypot(o.x-r.x,o.y-r.y),d=s*a,u=e>0?L(i[e-1],r,o,w):null;if(u&&d=Math.abs(s)?e>=0?1:0:s>=0?1:0}y(D,"getArcSweepFlag");function _(t,e){if(t.length<2)return t.map(o=>({...o}));let s=t.map(o=>({...o})),i=e.arrowTypeStart&&P[e.arrowTypeStart];if(i){let o=t[0],a=t[1],d=Math.atan2(a.y-o.y,a.x-o.x);s[0].x=o.x+i*Math.cos(d),s[0].y=o.y+i*Math.sin(d)}let r=e.arrowTypeEnd&&P[e.arrowTypeEnd];if(r){let o=t.length,a=t[o-2],d=t[o-1],u=Math.atan2(d.y-a.y,d.x-a.x);s[o-1].x=d.x-r*Math.cos(u),s[o-1].y=d.y-r*Math.sin(u)}return s}y(_,"applyMarkerOffsets");function k(t,e,s,i,r){let o=t.point.x,a=t.point.y,d={x:o-e*t.r,y:a-s*t.r},u={x:o+e*t.r,y:a+s*t.r},n=[`L${A(d)}`];return r==="arc"?n.push(`A${M(t.r)},${M(t.r)} 0 0 ${i} ${A(u)}`):n.push(`M${A(u)}`),n}y(k,"emitJump");function L(t,e,s,i){let r=e.x-t.x,o=e.y-t.y,a=s.x-e.x,d=s.y-e.y,u=Math.hypot(r,o),n=Math.hypot(a,d);if(u0){let f=L(r[n-1],r[n],r[n+1]??r[n],w);f&&(b=f.cutLen)}let x=p,h=null;o&&nf.t-E.t).filter(f=>{let E=Math.min(f.d-b,x-f.d)-X;return f.r=Math.min(f.r,E),f.r>=$});for(let f=0;fE){let I=E/2;m[f].r=Math.min(m[f].r,I),m[f+1].r=Math.min(m[f+1].r,I)}}for(let f of m)f.r<$||u.push(...k(f,l,g,S,s.jumpStyle));o&&h?(u.push(`L${M(h.startX)},${M(h.startY)}`),u.push(`Q${M(h.ctrlX)},${M(h.ctrlY)} ${M(h.endX)},${M(h.endY)}`)):u.push(`L${A(c.b)}`)}return u.join(" ")}y(H,"rewriteEdgePath");function J(t){return/^[\d\s+,.LMelm-]*$/.test(t)}y(J,"isStraightPath");function U(t){return t?t==="linear"||t==="rounded"||t==="step"||t==="stepBefore"||t==="stepAfter":!0}y(U,"curveSupportsLineHops");function j(t){if(!t)return null;try{let e=typeof atob=="function"?atob(t):Buffer.from(t,"base64").toString(),s=JSON.parse(e);if(!Array.isArray(s))return null;let i=[];for(let r of s)r&&typeof r.x=="number"&&typeof r.y=="number"&&i.push({x:r.x,y:r.y});return i.length>=2?i:null}catch{return null}}y(j,"decodeDataPoints");function F(t,e,s){if(!s.enabled)return;let i=t.node();if(!i)return;let r=new Map;for(let n of e)r.set(n.id,n);let o=new Map;for(let n of i.querySelectorAll("path[data-id]")){let c=n.getAttribute("data-id");c!==null&&!o.has(c)&&o.set(c,n)}let a=[];for(let n of e){let c=o.get(n.id);if(!c)continue;let l=j(c.getAttribute("data-points"))??n.points;a.push({...n,points:l})}let d=C(a);if(d.length===0)return;let u=new Map;for(let n of d){let c=u.get(n.jumpEdgeId)??[];c.push(n),u.set(n.jumpEdgeId,c)}for(let n of a){let c=u.get(n.id);if(!c||c.length===0)continue;let l=r.get(n.id)?.curve;if(l!==void 0&&!U(l))continue;let g=o.get(n.id);if(!g)continue;if(l===void 0){let m=g.getAttribute("d")??"";if(!J(m))continue}let S=g.getAttribute("style")??"",b=/stroke-dasharray\s*:\s*0\s+([\d.]+)\s+[\d.]+\s+([\d.]+)/.exec(S),x=b?Number.parseFloat(b[1]):null,h=b?Number.parseFloat(b[2]):null,$=H(n,c,s);if(g.setAttribute("d",$),x!==null&&h!==null&&typeof g.getTotalLength=="function"){let m=g.getTotalLength(),f=Math.max(0,m-x-h),E=`0 ${x} ${f} ${h}`,I=S.replace(/stroke-dasharray\s*:[^;]*;?/g,`stroke-dasharray: ${E};`).replace(/;\s*;+/g,";");g.setAttribute("style",I)}}}y(F,"applyLineJumpsToSvg");export{F as a}; diff --git a/src/frontend/web/von_interface/static/vendor/conversation-visuals/chunk-UED66XBH.js b/src/frontend/web/von_interface/static/vendor/conversation-visuals/chunk-UED66XBH.js new file mode 100644 index 000000000..dce634338 --- /dev/null +++ b/src/frontend/web/von_interface/static/vendor/conversation-visuals/chunk-UED66XBH.js @@ -0,0 +1 @@ +import{$ as s}from"./chunk-S4JILX6U.js";import{h as e}from"./chunk-XEQL7KGA.js";import{a as n}from"./chunk-YUSHYV7C.js";var a=n(t=>{let{securityLevel:c}=s(),o=e("body");if(c==="sandbox"){let m=e(`#i${t}`).node()?.contentDocument??document;o=e(m.body)}return o.select(`#${t}`)},"selectSvgElement");export{a}; diff --git a/src/frontend/web/von_interface/static/vendor/conversation-visuals/chunk-VNMAEQZK.js b/src/frontend/web/von_interface/static/vendor/conversation-visuals/chunk-VNMAEQZK.js new file mode 100644 index 000000000..1dd70a434 --- /dev/null +++ b/src/frontend/web/von_interface/static/vendor/conversation-visuals/chunk-VNMAEQZK.js @@ -0,0 +1 @@ +import{h as o}from"./chunk-XEQL7KGA.js";import{a as m}from"./chunk-YUSHYV7C.js";var g=m((t,e)=>{let n;return e==="sandbox"&&(n=o("#i"+t)),(e==="sandbox"?o(n.nodes()[0].contentDocument.body):o("body")).select(`[id="${t}"]`)},"getDiagramElement");export{g as a}; diff --git a/src/frontend/web/von_interface/static/vendor/conversation-visuals/chunk-WBZZWDU5.js b/src/frontend/web/von_interface/static/vendor/conversation-visuals/chunk-WBZZWDU5.js new file mode 100644 index 000000000..da210a826 --- /dev/null +++ b/src/frontend/web/von_interface/static/vendor/conversation-visuals/chunk-WBZZWDU5.js @@ -0,0 +1,3 @@ +import{a}from"./chunk-RVPSGR2P.js";var i={},c={info:a(async()=>{let{createInfoServices:e}=await import("./info-A6RAGUB7-MDTATOZX.js"),r=e().Info.parser.LangiumParser;i.info=r},"info"),packet:a(async()=>{let{createPacketServices:e}=await import("./packet-AYTQ26CC-DUI67Q4V.js"),r=e().Packet.parser.LangiumParser;i.packet=r},"packet"),pie:a(async()=>{let{createPieServices:e}=await import("./pie-WAS4IAKB-3RNJT2BB.js"),r=e().Pie.parser.LangiumParser;i.pie=r},"pie"),treeView:a(async()=>{let{createTreeViewServices:e}=await import("./treeView-Q6P3EWNA-RMEGL7WK.js"),r=e().TreeView.parser.LangiumParser;i.treeView=r},"treeView"),architecture:a(async()=>{let{createArchitectureServices:e}=await import("./architecture-7GRP2DOG-GFB5YOJW.js"),r=e().Architecture.parser.LangiumParser;i.architecture=r},"architecture"),gitGraph:a(async()=>{let{createGitGraphServices:e}=await import("./gitGraph-4MIJSDKK-CADN73NX.js"),r=e().GitGraph.parser.LangiumParser;i.gitGraph=r},"gitGraph"),eventmodeling:a(async()=>{let{createEventModelingServices:e}=await import("./eventmodeling-NTZA5JFV-3E47LXSE.js"),r=e().EventModel.parser.LangiumParser;i.eventmodeling=r},"eventmodeling"),radar:a(async()=>{let{createRadarServices:e}=await import("./radar-RG4KPBEZ-I7HN7QDA.js"),r=e().Radar.parser.LangiumParser;i.radar=r},"radar"),railroad:a(async()=>{let{createRailroadServices:e}=await import("./railroad-74A4TZTK-RT54NDIZ.js"),r=e().Railroad.parser.LangiumParser;i.railroad=r},"railroad"),railroadEbnf:a(async()=>{let{createRailroadEbnfServices:e}=await import("./railroad-ebnf-LZEXJU2U-3KRJ6MJ3.js"),r=e().RailroadEbnf.parser.LangiumParser;i.railroadEbnf=r},"railroadEbnf"),railroadAbnf:a(async()=>{let{createRailroadAbnfServices:e}=await import("./railroad-abnf-HS5TGJTU-VS6QPZWU.js"),r=e().RailroadAbnf.parser.LangiumParser;i.railroadAbnf=r},"railroadAbnf"),railroadPeg:a(async()=>{let{createRailroadPegServices:e}=await import("./railroad-peg-WCYAUIDC-ERHUMI3I.js"),r=e().RailroadPeg.parser.LangiumParser;i.railroadPeg=r},"railroadPeg"),treemap:a(async()=>{let{createTreemapServices:e}=await import("./treemap-WGGIJYW6-5QPLLXVN.js"),r=e().Treemap.parser.LangiumParser;i.treemap=r},"treemap"),wardley:a(async()=>{let{createWardleyServices:e}=await import("./wardley-WFR3VGLG-6Q663OXW.js"),r=e().Wardley.parser.LangiumParser;i.wardley=r},"wardley"),cynefin:a(async()=>{let{createCynefinServices:e}=await import("./cynefin-OW5HDTMX-VODE6M35.js"),r=e().Cynefin.parser.LangiumParser;i.cynefin=r},"cynefin")};async function d(e,r){let n=c[e];if(!n)throw new Error(`Unknown diagram type: ${e}`);i[e]||await n();let t=i[e].parse(r);if(t.lexerErrors.length>0||t.parserErrors.length>0)throw new l(t);return t.value}a(d,"parse");var l=class extends Error{constructor(e){let r=e.lexerErrors.map(o=>{let t=o.line!==void 0&&!isNaN(o.line)?o.line:"?",s=o.column!==void 0&&!isNaN(o.column)?o.column:"?";return`Lexer error on line ${t}, column ${s}: ${o.message}`}).join(` +`),n=e.parserErrors.map(o=>{let t=o.token.startLine!==void 0&&!isNaN(o.token.startLine)?o.token.startLine:"?",s=o.token.startColumn!==void 0&&!isNaN(o.token.startColumn)?o.token.startColumn:"?";return`Parse error on line ${t}, column ${s}: ${o.message}`}).join(` +`);super(`Parsing failed: ${r} ${n}`),this.result=e}static{a(this,"MermaidParseError")}};export{d as a,l as b}; diff --git a/src/frontend/web/von_interface/static/vendor/conversation-visuals/chunk-X7BLBFFS.js b/src/frontend/web/von_interface/static/vendor/conversation-visuals/chunk-X7BLBFFS.js new file mode 100644 index 000000000..e5c300446 --- /dev/null +++ b/src/frontend/web/von_interface/static/vendor/conversation-visuals/chunk-X7BLBFFS.js @@ -0,0 +1 @@ +import{a as e,b as i,c as a,d as n,e as o,g as u,i as d,x as l,y as s}from"./chunk-RVPSGR2P.js";var C=class extends s{static{e(this,"CynefinTokenBuilder")}constructor(){super(["cynefin-beta"])}},f={parser:{TokenBuilder:e(()=>new C,"TokenBuilder"),ValueConverter:e(()=>new l,"ValueConverter")}};function m(c=o){let r=n(a(c),u),t=n(i({shared:r}),d,f);return r.ServiceRegistry.register(t),{shared:r,Cynefin:t}}e(m,"createCynefinServices");export{f as a,m as b}; diff --git a/src/frontend/web/von_interface/static/vendor/conversation-visuals/chunk-XCFPDLUP.js b/src/frontend/web/von_interface/static/vendor/conversation-visuals/chunk-XCFPDLUP.js new file mode 100644 index 000000000..8b3f725dd --- /dev/null +++ b/src/frontend/web/von_interface/static/vendor/conversation-visuals/chunk-XCFPDLUP.js @@ -0,0 +1,2 @@ +import{a as o,b as d,c,d as i,e as l,g as u,q as f,w as E,y as m}from"./chunk-RVPSGR2P.js";var b=class extends m{static{o(this,"RailroadEbnfTokenBuilder")}constructor(){super(["railroad-ebnf-beta"])}},v=o(a=>{let e=a.slice(1,-1),r="";for(let t=0;tnew b,"TokenBuilder"),ValueConverter:o(()=>new h,"ValueConverter")}};function R(a=l){let e=i(c(a),u),r=i(d({shared:e}),f,C);return e.ServiceRegistry.register(r),{shared:e,RailroadEbnf:r}}o(R,"createRailroadEbnfServices");export{C as a,R as b}; diff --git a/src/frontend/web/von_interface/static/vendor/conversation-visuals/chunk-XEQL7KGA.js b/src/frontend/web/von_interface/static/vendor/conversation-visuals/chunk-XEQL7KGA.js new file mode 100644 index 000000000..ce4dfb2d6 --- /dev/null +++ b/src/frontend/web/von_interface/static/vendor/conversation-visuals/chunk-XEQL7KGA.js @@ -0,0 +1 @@ +import{a as Tt}from"./chunk-YUSHYV7C.js";import{b as Js,c as js}from"./chunk-3RNHDNP5.js";var ui=Js((nr,rr)=>{(function(t,e){typeof nr=="object"&&typeof rr<"u"?rr.exports=e():typeof define=="function"&&define.amd?define(e):(t=typeof globalThis<"u"?globalThis:t||self).dayjs=e()})(nr,(function(){"use strict";var t=1e3,e=6e4,n=36e5,r="millisecond",i="second",o="minute",a="hour",s="day",f="week",u="month",c="quarter",h="year",l="date",p="Invalid Date",g=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,v=/\[([^\]]+)]|YYYY|YY|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,T={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(x){var m=["th","st","nd","rd"],d=x%100;return"["+x+(m[(d-20)%10]||m[d]||m[0])+"]"}},k=function(x,m,d){var M=String(x);return!M||M.length>=m?x:""+Array(m+1-M.length).join(d)+x},$={s:k,z:function(x){var m=-x.utcOffset(),d=Math.abs(m),M=Math.floor(d/60),w=d%60;return(m<=0?"+":"-")+k(M,2,"0")+":"+k(w,2,"0")},m:function x(m,d){if(m.date()1)return x(N[0])}else{var P=m.name;S[P]=m,w=P}return!M&&w&&(A=w),w||!M&&A},Y=function(x,m){if(y(x))return x.clone();var d=typeof m=="object"?m:{};return d.date=x,d.args=arguments,new B(d)},D=$;D.l=E,D.i=y,D.w=function(x,m){return Y(x,{locale:m.$L,utc:m.$u,x:m.$x,$offset:m.$offset})};var B=(function(){function x(d){this.$L=E(d.locale,null,!0),this.parse(d),this.$x=this.$x||d.x||{},this[I]=!0}var m=x.prototype;return m.parse=function(d){this.$d=(function(M){var w=M.date,C=M.utc;if(w===null)return new Date(NaN);if(D.u(w))return new Date;if(w instanceof Date)return new Date(w);if(typeof w=="string"&&!/Z$/i.test(w)){var N=w.match(g);if(N){var P=N[2]-1||0,F=(N[7]||"0").substring(0,3);return C?new Date(Date.UTC(N[1],P,N[3]||1,N[4]||0,N[5]||0,N[6]||0,F)):new Date(N[1],P,N[3]||1,N[4]||0,N[5]||0,N[6]||0,F)}}return new Date(w)})(d),this.init()},m.init=function(){var d=this.$d;this.$y=d.getFullYear(),this.$M=d.getMonth(),this.$D=d.getDate(),this.$W=d.getDay(),this.$H=d.getHours(),this.$m=d.getMinutes(),this.$s=d.getSeconds(),this.$ms=d.getMilliseconds()},m.$utils=function(){return D},m.isValid=function(){return this.$d.toString()!==p},m.isSame=function(d,M){var w=Y(d);return this.startOf(M)<=w&&w<=this.endOf(M)},m.isAfter=function(d,M){return Y(d){},"trace"),debug:Tt((...t)=>{},"debug"),info:Tt((...t)=>{},"info"),warn:Tt((...t)=>{},"warn"),error:Tt((...t)=>{},"error"),fatal:Tt((...t)=>{},"fatal")},Wh=Tt(function(t="fatal"){let e=kt.fatal;typeof t=="string"?t.toLowerCase()in kt&&(e=kt[t]):typeof t=="number"&&(e=t),ct.trace=()=>{},ct.debug=()=>{},ct.info=()=>{},ct.warn=()=>{},ct.error=()=>{},ct.fatal=()=>{},e<=kt.fatal&&(ct.fatal=console.error?console.error.bind(console,ht("FATAL"),"color: orange"):console.log.bind(console,"\x1B[35m",ht("FATAL"))),e<=kt.error&&(ct.error=console.error?console.error.bind(console,ht("ERROR"),"color: orange"):console.log.bind(console,"\x1B[31m",ht("ERROR"))),e<=kt.warn&&(ct.warn=console.warn?console.warn.bind(console,ht("WARN"),"color: orange"):console.log.bind(console,"\x1B[33m",ht("WARN"))),e<=kt.info&&(ct.info=console.info?console.info.bind(console,ht("INFO"),"color: lightblue"):console.log.bind(console,"\x1B[34m",ht("INFO"))),e<=kt.debug&&(ct.debug=console.debug?console.debug.bind(console,ht("DEBUG"),"color: lightgreen"):console.log.bind(console,"\x1B[32m",ht("DEBUG"))),e<=kt.trace&&(ct.trace=console.debug?console.debug.bind(console,ht("TRACE"),"color: lightgreen"):console.log.bind(console,"\x1B[32m",ht("TRACE")))},"setLogLevel"),ht=Tt(t=>`%c${(0,fi.default)().format("ss.SSS")} : ${t} : `,"format");function li(t,e){let n;if(e===void 0)for(let r of t)r!=null&&(n=r)&&(n=r);else{let r=-1;for(let i of t)(i=e(i,++r,t))!=null&&(n=i)&&(n=i)}return n}function ci(t,e){let n;if(e===void 0)for(let r of t)r!=null&&(n>r||n===void 0&&r>=r)&&(n=r);else{let r=-1;for(let i of t)(i=e(i,++r,t))!=null&&(n>i||n===void 0&&i>=i)&&(n=i)}return n}function Bt(t,e){return t==null||e==null?NaN:te?1:t>=e?0:NaN}function ir(t,e){return t==null||e==null?NaN:et?1:e>=t?0:NaN}function qt(t){let e,n,r;t.length!==2?(e=Bt,n=(s,f)=>Bt(t(s),f),r=(s,f)=>t(s)-f):(e=t===Bt||t===ir?t:tu,n=t,r=t);function i(s,f,u=0,c=s.length){if(u>>1;n(s[h],f)<0?u=h+1:c=h}while(u>>1;n(s[h],f)<=0?u=h+1:c=h}while(uu&&r(s[h-1],f)>-r(s[h],f)?h-1:h}return{left:i,center:a,right:o}}function tu(){return 0}function or(t){return t===null?NaN:+t}var hi=qt(Bt),pi=hi.right,eu=hi.left,nu=qt(or).center,ar=pi;var ue=class extends Map{constructor(e,n=ou){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:n}}),e!=null)for(let[r,i]of e)this.set(r,i)}get(e){return super.get(mi(this,e))}has(e){return super.has(mi(this,e))}set(e,n){return super.set(ru(this,e),n)}delete(e){return super.delete(iu(this,e))}};function mi({_intern:t,_key:e},n){let r=e(n);return t.has(r)?t.get(r):n}function ru({_intern:t,_key:e},n){let r=e(n);return t.has(r)?t.get(r):(t.set(r,n),n)}function iu({_intern:t,_key:e},n){let r=e(n);return t.has(r)&&(n=t.get(r),t.delete(r)),n}function ou(t){return t!==null&&typeof t=="object"?t.valueOf():t}var au=Math.sqrt(50),su=Math.sqrt(10),uu=Math.sqrt(2);function on(t,e,n){let r=(e-t)/Math.max(0,n),i=Math.floor(Math.log10(r)),o=r/Math.pow(10,i),a=o>=au?10:o>=su?5:o>=uu?2:1,s,f,u;return i<0?(u=Math.pow(10,-i)/a,s=Math.round(t*u),f=Math.round(e*u),s/ue&&--f,u=-u):(u=Math.pow(10,i)*a,s=Math.round(t/u),f=Math.round(e/u),s*ue&&--f),f0))return[];if(t===e)return[t];let r=e=i))return[];let s=o-i+1,f=new Array(s);if(r)if(a<0)for(let u=0;u+t(e)}function hu(t,e){return e=Math.max(0,t.bandwidth()-e*2)/2,t.round()&&(e=Math.round(e)),n=>+t(n)+e}function pu(){return!this.__axis}function _i(t,e){var n=[],r=null,i=null,o=6,a=6,s=3,f=typeof window<"u"&&window.devicePixelRatio>1?0:.5,u=t===fn||t===un?-1:1,c=t===un||t===sr?"x":"y",h=t===fn||t===ur?fu:lu;function l(p){var g=r??(e.ticks?e.ticks.apply(e,n):e.domain()),v=i??(e.tickFormat?e.tickFormat.apply(e,n):di),T=Math.max(o,0)+s,k=e.range(),$=+k[0]+f,A=+k[k.length-1]+f,S=(e.bandwidth?hu:cu)(e.copy(),f),I=p.selection?p.selection():p,y=I.selectAll(".domain").data([null]),E=I.selectAll(".tick").data(g,e).order(),Y=E.exit(),D=E.enter().append("g").attr("class","tick"),B=E.select("line"),L=E.select("text");y=y.merge(y.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),E=E.merge(D),B=B.merge(D.append("line").attr("stroke","currentColor").attr(c+"2",u*o)),L=L.merge(D.append("text").attr("fill","currentColor").attr(c,u*T).attr("dy",t===fn?"0em":t===ur?"0.71em":"0.32em")),p!==I&&(y=y.transition(p),E=E.transition(p),B=B.transition(p),L=L.transition(p),Y=Y.transition(p).attr("opacity",xi).attr("transform",function(x){return isFinite(x=S(x))?h(x+f):this.getAttribute("transform")}),D.attr("opacity",xi).attr("transform",function(x){var m=this.parentNode.__axis;return h((m&&isFinite(m=m(x))?m:S(x))+f)})),Y.remove(),y.attr("d",t===un||t===sr?a?"M"+u*a+","+$+"H"+f+"V"+A+"H"+u*a:"M"+f+","+$+"V"+A:a?"M"+$+","+u*a+"V"+f+"H"+A+"V"+u*a:"M"+$+","+f+"H"+A),E.attr("opacity",1).attr("transform",function(x){return h(S(x)+f)}),B.attr(c+"2",u*o),L.attr(c,u*T).text(v),I.filter(pu).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",t===sr?"start":t===un?"end":"middle"),I.each(function(){this.__axis=S})}return l.scale=function(p){return arguments.length?(e=p,l):e},l.ticks=function(){return n=Array.from(arguments),l},l.tickArguments=function(p){return arguments.length?(n=p==null?[]:Array.from(p),l):n.slice()},l.tickValues=function(p){return arguments.length?(r=p==null?null:Array.from(p),l):r&&r.slice()},l.tickFormat=function(p){return arguments.length?(i=p,l):i},l.tickSize=function(p){return arguments.length?(o=a=+p,l):o},l.tickSizeInner=function(p){return arguments.length?(o=+p,l):o},l.tickSizeOuter=function(p){return arguments.length?(a=+p,l):a},l.tickPadding=function(p){return arguments.length?(s=+p,l):s},l.offset=function(p){return arguments.length?(f=+p,l):f},l}function mu(t){return _i(fn,t)}function du(t){return _i(ur,t)}function xu(){}function Wt(t){return t==null?xu:function(){return this.querySelector(t)}}function gi(t){typeof t!="function"&&(t=Wt(t));for(var e=this._groups,n=e.length,r=new Array(n),i=0;i=A&&(A=$+1);!(I=T[A])&&++A=0;)(a=r[i])&&(o&&a.compareDocumentPosition(o)^4&&o.parentNode.insertBefore(a,o),o=a);return this}function Di(t){t||(t=Au);function e(h,l){return h&&l?t(h.__data__,l.__data__):!h-!l}for(var n=this._groups,r=n.length,i=new Array(r),o=0;oe?1:t>=e?0:NaN}function $i(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this}function Oi(){return Array.from(this)}function Ii(){for(var t=this._groups,e=0,n=t.length;e=0&&(e=t.slice(0,n))!=="xmlns"&&(t=t.slice(n+1)),lr.hasOwnProperty(e)?{space:lr[e],local:t}:t}function Du(t){return function(){this.removeAttribute(t)}}function $u(t){return function(){this.removeAttributeNS(t.space,t.local)}}function Ou(t,e){return function(){this.setAttribute(t,e)}}function Iu(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function Eu(t,e){return function(){var n=e.apply(this,arguments);n==null?this.removeAttribute(t):this.setAttribute(t,n)}}function Ru(t,e){return function(){var n=e.apply(this,arguments);n==null?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,n)}}function Pi(t,e){var n=St(t);if(arguments.length<2){var r=this.node();return n.local?r.getAttributeNS(n.space,n.local):r.getAttribute(n)}return this.each((e==null?n.local?$u:Du:typeof e=="function"?n.local?Ru:Eu:n.local?Iu:Ou)(n,e))}function pn(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function Yu(t){return function(){this.style.removeProperty(t)}}function Pu(t,e,n){return function(){this.style.setProperty(t,e,n)}}function Fu(t,e,n){return function(){var r=e.apply(this,arguments);r==null?this.style.removeProperty(t):this.style.setProperty(t,r,n)}}function Fi(t,e,n){return arguments.length>1?this.each((e==null?Yu:typeof e=="function"?Fu:Pu)(t,e,n??"")):It(this.node(),t)}function It(t,e){return t.style.getPropertyValue(e)||pn(t).getComputedStyle(t,null).getPropertyValue(e)}function Uu(t){return function(){delete this[t]}}function zu(t,e){return function(){this[t]=e}}function Lu(t,e){return function(){var n=e.apply(this,arguments);n==null?delete this[t]:this[t]=n}}function Ui(t,e){return arguments.length>1?this.each((e==null?Uu:typeof e=="function"?Lu:zu)(t,e)):this.node()[t]}function zi(t){return t.trim().split(/^|\s+/)}function cr(t){return t.classList||new Li(t)}function Li(t){this._node=t,this._names=zi(t.getAttribute("class")||"")}Li.prototype={add:function(t){var e=this._names.indexOf(t);e<0&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},remove:function(t){var e=this._names.indexOf(t);e>=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};function Hi(t,e){for(var n=cr(t),r=-1,i=e.length;++r=0&&(n=e.slice(r+1),e=e.slice(0,r)),{type:e,name:n}})}function uf(t){return function(){var e=this.__on;if(e){for(var n=0,r=-1,i=e.length,o;n>8&15|e>>4&240,e>>4&15|e&240,(e&15)<<4|e&15,1):n===8?dn(e>>24&255,e>>16&255,e>>8&255,(e&255)/255):n===4?dn(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|e&240,((e&15)<<4|e&15)/255):null):(e=df.exec(t))?new tt(e[1],e[2],e[3],1):(e=xf.exec(t))?new tt(e[1]*255/100,e[2]*255/100,e[3]*255/100,1):(e=_f.exec(t))?dn(e[1],e[2],e[3],e[4]):(e=gf.exec(t))?dn(e[1]*255/100,e[2]*255/100,e[3]*255/100,e[4]):(e=yf.exec(t))?co(e[1],e[2]/100,e[3]/100,1):(e=vf.exec(t))?co(e[1],e[2]/100,e[3]/100,e[4]):oo.hasOwnProperty(t)?uo(oo[t]):t==="transparent"?new tt(NaN,NaN,NaN,0):null}function uo(t){return new tt(t>>16&255,t>>8&255,t&255,1)}function dn(t,e,n,r){return r<=0&&(t=e=n=NaN),new tt(t,e,n,r)}function mr(t){return t instanceof Et||(t=xt(t)),t?(t=t.rgb(),new tt(t.r,t.g,t.b,t.opacity)):new tt}function he(t,e,n,r){return arguments.length===1?mr(t):new tt(t,e,n,r??1)}function tt(t,e,n,r){this.r=+t,this.g=+e,this.b=+n,this.opacity=+r}Vt(tt,he,le(Et,{brighter(t){return t=t==null?_n:Math.pow(_n,t),new tt(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=t==null?Ee:Math.pow(Ee,t),new tt(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new tt(Gt(this.r),Gt(this.g),Gt(this.b),gn(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:fo,formatHex:fo,formatHex8:Mf,formatRgb:lo,toString:lo}));function fo(){return`#${Xt(this.r)}${Xt(this.g)}${Xt(this.b)}`}function Mf(){return`#${Xt(this.r)}${Xt(this.g)}${Xt(this.b)}${Xt((isNaN(this.opacity)?1:this.opacity)*255)}`}function lo(){let t=gn(this.opacity);return`${t===1?"rgb(":"rgba("}${Gt(this.r)}, ${Gt(this.g)}, ${Gt(this.b)}${t===1?")":`, ${t})`}`}function gn(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function Gt(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function Xt(t){return t=Gt(t),(t<16?"0":"")+t.toString(16)}function co(t,e,n,r){return r<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new dt(t,e,n,r)}function po(t){if(t instanceof dt)return new dt(t.h,t.s,t.l,t.opacity);if(t instanceof Et||(t=xt(t)),!t)return new dt;if(t instanceof dt)return t;t=t.rgb();var e=t.r/255,n=t.g/255,r=t.b/255,i=Math.min(e,n,r),o=Math.max(e,n,r),a=NaN,s=o-i,f=(o+i)/2;return s?(e===o?a=(n-r)/s+(n0&&f<1?0:a,new dt(a,s,f,t.opacity)}function mo(t,e,n,r){return arguments.length===1?po(t):new dt(t,e,n,r??1)}function dt(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}Vt(dt,mo,le(Et,{brighter(t){return t=t==null?_n:Math.pow(_n,t),new dt(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=t==null?Ee:Math.pow(Ee,t),new dt(this.h,this.s,this.l*t,this.opacity)},rgb(){var t=this.h%360+(this.h<0)*360,e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*e,i=2*n-r;return new tt(pr(t>=240?t-240:t+120,i,r),pr(t,i,r),pr(t<120?t+240:t-120,i,r),this.opacity)},clamp(){return new dt(ho(this.h),xn(this.s),xn(this.l),gn(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){let t=gn(this.opacity);return`${t===1?"hsl(":"hsla("}${ho(this.h)}, ${xn(this.s)*100}%, ${xn(this.l)*100}%${t===1?")":`, ${t})`}`}}));function ho(t){return t=(t||0)%360,t<0?t+360:t}function xn(t){return Math.max(0,Math.min(1,t||0))}function pr(t,e,n){return(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)*255}var xo=Math.PI/180,_o=180/Math.PI;var yn=18,go=.96422,yo=1,vo=.82521,wo=4/29,pe=6/29,bo=3*pe*pe,Tf=pe*pe*pe;function Mo(t){if(t instanceof vt)return new vt(t.l,t.a,t.b,t.opacity);if(t instanceof Nt)return To(t);t instanceof tt||(t=mr(t));var e=gr(t.r),n=gr(t.g),r=gr(t.b),i=dr((.2225045*e+.7168786*n+.0606169*r)/yo),o,a;return e===n&&n===r?o=a=i:(o=dr((.4360747*e+.3850649*n+.1430804*r)/go),a=dr((.0139322*e+.0971045*n+.7141733*r)/vo)),new vt(116*i-16,500*(o-i),200*(i-a),t.opacity)}function yr(t,e,n,r){return arguments.length===1?Mo(t):new vt(t,e,n,r??1)}function vt(t,e,n,r){this.l=+t,this.a=+e,this.b=+n,this.opacity=+r}Vt(vt,yr,le(Et,{brighter(t){return new vt(this.l+yn*(t??1),this.a,this.b,this.opacity)},darker(t){return new vt(this.l-yn*(t??1),this.a,this.b,this.opacity)},rgb(){var t=(this.l+16)/116,e=isNaN(this.a)?t:t+this.a/500,n=isNaN(this.b)?t:t-this.b/200;return e=go*xr(e),t=yo*xr(t),n=vo*xr(n),new tt(_r(3.1338561*e-1.6168667*t-.4906146*n),_r(-.9787684*e+1.9161415*t+.033454*n),_r(.0719453*e-.2289914*t+1.4052427*n),this.opacity)}}));function dr(t){return t>Tf?Math.pow(t,1/3):t/bo+wo}function xr(t){return t>pe?t*t*t:bo*(t-wo)}function _r(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function gr(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function kf(t){if(t instanceof Nt)return new Nt(t.h,t.c,t.l,t.opacity);if(t instanceof vt||(t=Mo(t)),t.a===0&&t.b===0)return new Nt(NaN,0()=>t;function ko(t,e){return function(n){return t+n*e}}function Sf(t,e,n){return t=Math.pow(t,n),e=Math.pow(e,n)-t,n=1/n,function(r){return Math.pow(t+r*e,n)}}function So(t,e){var n=e-t;return n?ko(t,n>180||n<-180?n-360*Math.round(n/360):n):me(isNaN(t)?e:t)}function Co(t){return(t=+t)==1?At:function(e,n){return n-e?Sf(e,n,t):me(isNaN(e)?n:e)}}function At(t,e){var n=e-t;return n?ko(t,n):me(isNaN(t)?e:t)}function No(t){return function(e,n){var r=t((e=Ye(e)).h,(n=Ye(n)).h),i=At(e.c,n.c),o=At(e.l,n.l),a=At(e.opacity,n.opacity);return function(s){return e.h=r(s),e.c=i(s),e.l=o(s),e.opacity=a(s),e+""}}}var Cf=No(So),Nf=No(At);function vr(t,e,n,r,i){var o=t*t,a=o*t;return((1-3*t+3*o-a)*e+(4-6*o+3*a)*n+(1+3*t+3*o-3*a)*r+a*i)/6}function Ao(t){var e=t.length-1;return function(n){var r=n<=0?n=0:n>=1?(n=1,e-1):Math.floor(n*e),i=t[r],o=t[r+1],a=r>0?t[r-1]:2*i-o,s=rn&&(o=e.slice(n,o),s[a]?s[a]+=o:s[++a]=o),(r=r[0])===(i=i[0])?s[a]?s[a]+=i:s[++a]=i:(s[++a]=null,f.push({i:a,x:et(r,i)})),n=wr.lastIndex;return n180?c+=360:c-u>180&&(u+=360),l.push({i:h.push(i(h)+"rotate(",null,r)-2,x:et(u,c)})):c&&h.push(i(h)+"rotate("+c+r)}function s(u,c,h,l){u!==c?l.push({i:h.push(i(h)+"skewX(",null,r)-2,x:et(u,c)}):c&&h.push(i(h)+"skewX("+c+r)}function f(u,c,h,l,p,g){if(u!==h||c!==l){var v=p.push(i(p)+"scale(",null,",",null,")");g.push({i:v-4,x:et(u,h)},{i:v-2,x:et(c,l)})}else(h!==1||l!==1)&&p.push(i(p)+"scale("+h+","+l+")")}return function(u,c){var h=[],l=[];return u=t(u),c=t(c),o(u.translateX,u.translateY,c.translateX,c.translateY,h,l),a(u.rotate,c.rotate,h,l),s(u.skewX,c.skewX,h,l),f(u.scaleX,u.scaleY,c.scaleX,c.scaleY,h,l),u=c=null,function(p){for(var g=-1,v=l.length,T;++g=1e21?t.toLocaleString("en").replace(/,/g,""):t.toString(10)}function Kt(t,e){if(!isFinite(t)||t===0)return null;var n=(t=e?t.toExponential(e-1):t.toExponential()).indexOf("e"),r=t.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+t.slice(n+1)]}function wt(t){return t=Kt(Math.abs(t)),t?t[1]:NaN}function Ho(t,e){return function(n,r){for(var i=n.length,o=[],a=0,s=t[0],f=0;i>0&&s>0&&(f+s+1>r&&(s=Math.max(1,r-f)),o.push(n.substring(i-=s,i+s)),!((f+=s+1)>r));)s=t[a=(a+1)%t.length];return o.reverse().join(e)}}function Bo(t){return function(e){return e.replace(/[0-9]/g,function(n){return t[+n]})}}var If=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Rt(t){if(!(e=If.exec(t)))throw new Error("invalid format: "+t);var e;return new bn({fill:e[1],align:e[2],sign:e[3],symbol:e[4],zero:e[5],width:e[6],comma:e[7],precision:e[8]&&e[8].slice(1),trim:e[9],type:e[10]})}Rt.prototype=bn.prototype;function bn(t){this.fill=t.fill===void 0?" ":t.fill+"",this.align=t.align===void 0?">":t.align+"",this.sign=t.sign===void 0?"-":t.sign+"",this.symbol=t.symbol===void 0?"":t.symbol+"",this.zero=!!t.zero,this.width=t.width===void 0?void 0:+t.width,this.comma=!!t.comma,this.precision=t.precision===void 0?void 0:+t.precision,this.trim=!!t.trim,this.type=t.type===void 0?"":t.type+""}bn.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function qo(t){t:for(var e=t.length,n=1,r=-1,i;n0&&(r=0);break}return r>0?t.slice(0,r)+t.slice(i+1):t}var Fe;function Wo(t,e){var n=Kt(t,e);if(!n)return Fe=void 0,t.toPrecision(e);var r=n[0],i=n[1],o=i-(Fe=Math.max(-8,Math.min(8,Math.floor(i/3)))*3)+1,a=r.length;return o===a?r:o>a?r+new Array(o-a+1).join("0"):o>0?r.slice(0,o)+"."+r.slice(o):"0."+new Array(1-o).join("0")+Kt(t,Math.max(0,e+o-1))[0]}function Cr(t,e){var n=Kt(t,e);if(!n)return t+"";var r=n[0],i=n[1];return i<0?"0."+new Array(-i).join("0")+r:r.length>i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+new Array(i-r.length+2).join("0")}var Nr={"%":(t,e)=>(t*100).toFixed(e),b:t=>Math.round(t).toString(2),c:t=>t+"",d:Lo,e:(t,e)=>t.toExponential(e),f:(t,e)=>t.toFixed(e),g:(t,e)=>t.toPrecision(e),o:t=>Math.round(t).toString(8),p:(t,e)=>Cr(t*100,e),r:Cr,s:Wo,X:t=>Math.round(t).toString(16).toUpperCase(),x:t=>Math.round(t).toString(16)};function Ar(t){return t}var Vo=Array.prototype.map,Xo=["y","z","a","f","p","n","\xB5","m","","k","M","G","T","P","E","Z","Y"];function Go(t){var e=t.grouping===void 0||t.thousands===void 0?Ar:Ho(Vo.call(t.grouping,Number),t.thousands+""),n=t.currency===void 0?"":t.currency[0]+"",r=t.currency===void 0?"":t.currency[1]+"",i=t.decimal===void 0?".":t.decimal+"",o=t.numerals===void 0?Ar:Bo(Vo.call(t.numerals,String)),a=t.percent===void 0?"%":t.percent+"",s=t.minus===void 0?"\u2212":t.minus+"",f=t.nan===void 0?"NaN":t.nan+"";function u(h,l){h=Rt(h);var p=h.fill,g=h.align,v=h.sign,T=h.symbol,k=h.zero,$=h.width,A=h.comma,S=h.precision,I=h.trim,y=h.type;y==="n"?(A=!0,y="g"):Nr[y]||(S===void 0&&(S=12),I=!0,y="g"),(k||p==="0"&&g==="=")&&(k=!0,p="0",g="=");var E=(l&&l.prefix!==void 0?l.prefix:"")+(T==="$"?n:T==="#"&&/[boxX]/.test(y)?"0"+y.toLowerCase():""),Y=(T==="$"?r:/[%p]/.test(y)?a:"")+(l&&l.suffix!==void 0?l.suffix:""),D=Nr[y],B=/[defgprs%]/.test(y);S=S===void 0?6:/[gprs]/.test(y)?Math.max(1,Math.min(21,S)):Math.max(0,Math.min(20,S));function L(x){var m=E,d=Y,M,w,C;if(y==="c")d=D(x)+d,x="";else{x=+x;var N=x<0||1/x<0;if(x=isNaN(x)?f:D(Math.abs(x),S),I&&(x=qo(x)),N&&+x==0&&v!=="+"&&(N=!1),m=(N?v==="("?v:s:v==="-"||v==="("?"":v)+m,d=(y==="s"&&!isNaN(x)&&Fe!==void 0?Xo[8+Fe/3]:"")+d+(N&&v==="("?")":""),B){for(M=-1,w=x.length;++MC||C>57){d=(C===46?i+x.slice(M+1):x.slice(M))+d,x=x.slice(0,M);break}}}A&&!k&&(x=e(x,1/0));var P=m.length+x.length+d.length,F=P<$?new Array($-P+1).join(p):"";switch(A&&k&&(x=e(F+x,F.length?$-d.length:1/0),F=""),g){case"<":x=m+x+d+F;break;case"=":x=m+F+x+d;break;case"^":x=F.slice(0,P=F.length>>1)+m+x+d+F.slice(P);break;default:x=F+m+x+d;break}return o(x)}return L.toString=function(){return h+""},L}function c(h,l){var p=Math.max(-8,Math.min(8,Math.floor(wt(l)/3)))*3,g=Math.pow(10,-p),v=u((h=Rt(h),h.type="f",h),{suffix:Xo[8+p/3]});return function(T){return v(g*T)}}return{format:u,formatPrefix:c}}var Mn,Tn,kn;Dr({thousands:",",grouping:[3],currency:["$",""]});function Dr(t){return Mn=Go(t),Tn=Mn.format,kn=Mn.formatPrefix,Mn}function $r(t){return Math.max(0,-wt(Math.abs(t)))}function Or(t,e){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(wt(e)/3)))*3-wt(Math.abs(t)))}function Ir(t,e){return t=Math.abs(t),e=Math.abs(e)-t,Math.max(0,wt(e)-wt(t))+1}function Ef(t){var e=0,n=t.children,r=n&&n.length;if(!r)e=1;else for(;--r>=0;)e+=n[r].value;t.value=e}function Zo(){return this.eachAfter(Ef)}function Qo(t,e){let n=-1;for(let r of this)t.call(e,r,++n,this);return this}function Ko(t,e){for(var n=this,r=[n],i,o,a=-1;n=r.pop();)if(t.call(e,n,++a,this),i=n.children)for(o=i.length-1;o>=0;--o)r.push(i[o]);return this}function Jo(t,e){for(var n=this,r=[n],i=[],o,a,s,f=-1;n=r.pop();)if(i.push(n),o=n.children)for(a=0,s=o.length;a=0;)n+=r[i].value;e.value=n})}function ea(t){return this.eachBefore(function(e){e.children&&e.children.sort(t)})}function na(t){for(var e=this,n=Rf(e,t),r=[e];e!==n;)e=e.parent,r.push(e);for(var i=r.length;t!==n;)r.splice(i,0,t),t=t.parent;return r}function Rf(t,e){if(t===e)return t;var n=t.ancestors(),r=e.ancestors(),i=null;for(t=n.pop(),e=r.pop();t===e;)i=t,t=n.pop(),e=r.pop();return i}function ra(){for(var t=this,e=[t];t=t.parent;)e.push(t);return e}function ia(){return Array.from(this)}function oa(){var t=[];return this.eachBefore(function(e){e.children||t.push(e)}),t}function aa(){var t=this,e=[];return t.each(function(n){n!==t&&e.push({source:n.parent,target:n})}),e}function*sa(){var t=this,e,n=[t],r,i,o;do for(e=n.reverse(),n=[];t=e.pop();)if(yield t,r=t.children)for(i=0,o=r.length;i=0;--s)i.push(o=a[s]=new Ue(a[s])),o.parent=r,o.depth=r.depth+1;return n.eachBefore(zf)}function Yf(){return Sn(this).eachBefore(Uf)}function Pf(t){return t.children}function Ff(t){return Array.isArray(t)?t[1]:null}function Uf(t){t.data.value!==void 0&&(t.value=t.data.value),t.data=t.data.data}function zf(t){var e=0;do t.height=e;while((t=t.parent)&&t.height<++e)}function Ue(t){this.data=t,this.depth=this.height=0,this.parent=null}Ue.prototype=Sn.prototype={constructor:Ue,count:Zo,each:Qo,eachAfter:Jo,eachBefore:Ko,find:jo,sum:ta,sort:ea,path:na,ancestors:ra,descendants:ia,leaves:oa,links:aa,copy:Yf,[Symbol.iterator]:sa};function ua(t){t.x0=Math.round(t.x0),t.y0=Math.round(t.y0),t.x1=Math.round(t.x1),t.y1=Math.round(t.y1)}function fa(t,e,n,r,i){for(var o=t.children,a,s=-1,f=o.length,u=t.value&&(r-e)/t.value;++s$&&($=u),y=T*T*I,A=Math.max($/y,y/k),A>S){T-=u;break}S=A}a.push(f={value:T,dice:p1?r:1)},n})(Lf);function ha(t){if(typeof t!="function")throw new Error;return t}function de(){return 0}function xe(t){return function(){return t}}function Bf(){var t=ca,e=!1,n=1,r=1,i=[0],o=de,a=de,s=de,f=de,u=de;function c(l){return l.x0=l.y0=0,l.x1=n,l.y1=r,l.eachBefore(h),i=[0],e&&l.eachBefore(ua),l}function h(l){var p=i[l.depth],g=l.x0+p,v=l.y0+p,T=l.x1-p,k=l.y1-p;Te&&(n=t,t=e,e=n),function(r){return Math.max(t,Math.min(e,r))}}function Wf(t,e,n){var r=t[0],i=t[1],o=e[0],a=e[1];return i2?Vf:Wf,f=u=null,h}function h(l){return l==null||isNaN(l=+l)?o:(f||(f=s(t.map(r),e,n)))(r(a(l)))}return h.invert=function(l){return a(i((u||(u=s(e,t.map(r),et)))(l)))},h.domain=function(l){return arguments.length?(t=Array.from(l,Pr),c()):t.slice()},h.range=function(l){return arguments.length?(e=Array.from(l),c()):e.slice()},h.rangeRound=function(l){return e=Array.from(l),n=Mr,c()},h.clamp=function(l){return arguments.length?(a=l?!0:_e,c()):a!==_e},h.interpolate=function(l){return arguments.length?(n=l,c()):n},h.unknown=function(l){return arguments.length?(o=l,h):o},function(l,p){return r=l,i=p,c()}}function Le(){return Xf()(_e,_e)}function Ur(t,e,n,r){var i=fe(t,e,n),o;switch(r=Rt(r??",f"),r.type){case"s":{var a=Math.max(Math.abs(t),Math.abs(e));return r.precision==null&&!isNaN(o=Or(i,a))&&(r.precision=o),kn(r,a)}case"":case"e":case"g":case"p":case"r":{r.precision==null&&!isNaN(o=Ir(i,Math.max(Math.abs(t),Math.abs(e))))&&(r.precision=o-(r.type==="e"));break}case"f":case"%":{r.precision==null&&!isNaN(o=$r(i))&&(r.precision=o-(r.type==="%")*2);break}}return Tn(r)}function Gf(t){var e=t.domain;return t.ticks=function(n){var r=e();return an(r[0],r[r.length-1],n??10)},t.tickFormat=function(n,r){var i=e();return Ur(i[0],i[i.length-1],n??10,r)},t.nice=function(n){n==null&&(n=10);var r=e(),i=0,o=r.length-1,a=r[i],s=r[o],f,u,c=10;for(s0;){if(u=De(a,s,n),u===f)return r[i]=a,r[o]=s,e(r);if(u>0)a=Math.floor(a/u)*u,s=Math.ceil(s/u)*u;else if(u<0)a=Math.ceil(a*u)/u,s=Math.floor(s*u)/u;else break;f=u}return t},t}function zr(){var t=Le();return t.copy=function(){return Cn(t,zr())},Yt.apply(t,arguments),Gf(t)}var Lr=new Date,Hr=new Date;function z(t,e,n,r){function i(o){return t(o=arguments.length===0?new Date:new Date(+o)),o}return i.floor=o=>(t(o=new Date(+o)),o),i.ceil=o=>(t(o=new Date(o-1)),e(o,1),t(o),o),i.round=o=>{let a=i(o),s=i.ceil(o);return o-a(e(o=new Date(+o),a==null?1:Math.floor(a)),o),i.range=(o,a,s)=>{let f=[];if(o=i.ceil(o),s=s==null?1:Math.floor(s),!(o0))return f;let u;do f.push(u=new Date(+o)),e(o,s),t(o);while(uz(a=>{if(a>=a)for(;t(a),!o(a);)a.setTime(a-1)},(a,s)=>{if(a>=a)if(s<0)for(;++s<=0;)for(;e(a,-1),!o(a););else for(;--s>=0;)for(;e(a,1),!o(a););}),n&&(i.count=(o,a)=>(Lr.setTime(+o),Hr.setTime(+a),t(Lr),t(Hr),Math.floor(n(Lr,Hr))),i.every=o=>(o=Math.floor(o),!isFinite(o)||!(o>0)?null:o>1?i.filter(r?a=>r(a)%o===0:a=>i.count(0,a)%o===0):i)),i}var Jt=z(()=>{},(t,e)=>{t.setTime(+t+e)},(t,e)=>e-t);Jt.every=t=>(t=Math.floor(t),!isFinite(t)||!(t>0)?null:t>1?z(e=>{e.setTime(Math.floor(e/t)*t)},(e,n)=>{e.setTime(+e+n*t)},(e,n)=>(n-e)/t):Jt);var ma=Jt.range;var bt=z(t=>{t.setTime(t-t.getMilliseconds())},(t,e)=>{t.setTime(+t+e*1e3)},(t,e)=>(e-t)/1e3,t=>t.getUTCSeconds()),da=bt.range;var ge=z(t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*1e3)},(t,e)=>{t.setTime(+t+e*6e4)},(t,e)=>(e-t)/6e4,t=>t.getMinutes()),Zf=ge.range,Nn=z(t=>{t.setUTCSeconds(0,0)},(t,e)=>{t.setTime(+t+e*6e4)},(t,e)=>(e-t)/6e4,t=>t.getUTCMinutes()),Qf=Nn.range;var ye=z(t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*1e3-t.getMinutes()*6e4)},(t,e)=>{t.setTime(+t+e*36e5)},(t,e)=>(e-t)/36e5,t=>t.getHours()),Kf=ye.range,An=z(t=>{t.setUTCMinutes(0,0,0)},(t,e)=>{t.setTime(+t+e*36e5)},(t,e)=>(e-t)/36e5,t=>t.getUTCHours()),Jf=An.range;var Dt=z(t=>t.setHours(0,0,0,0),(t,e)=>t.setDate(t.getDate()+e),(t,e)=>(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*6e4)/864e5,t=>t.getDate()-1),jf=Dt.range,Be=z(t=>{t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e)},(t,e)=>(e-t)/864e5,t=>t.getUTCDate()-1),tl=Be.range,Dn=z(t=>{t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e)},(t,e)=>(e-t)/864e5,t=>Math.floor(t/864e5)),el=Dn.range;function ee(t){return z(e=>{e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)},(e,n)=>{e.setDate(e.getDate()+n*7)},(e,n)=>(n-e-(n.getTimezoneOffset()-e.getTimezoneOffset())*6e4)/6048e5)}var $t=ee(0),ve=ee(1),_a=ee(2),ga=ee(3),Pt=ee(4),ya=ee(5),va=ee(6),wa=$t.range,nl=ve.range,rl=_a.range,il=ga.range,ol=Pt.range,al=ya.range,sl=va.range;function ne(t){return z(e=>{e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)},(e,n)=>{e.setUTCDate(e.getUTCDate()+n*7)},(e,n)=>(n-e)/6048e5)}var re=ne(0),we=ne(1),ba=ne(2),Ma=ne(3),Ft=ne(4),Ta=ne(5),ka=ne(6),Sa=re.range,ul=we.range,fl=ba.range,ll=Ma.range,cl=Ft.range,hl=Ta.range,pl=ka.range;var be=z(t=>{t.setDate(1),t.setHours(0,0,0,0)},(t,e)=>{t.setMonth(t.getMonth()+e)},(t,e)=>e.getMonth()-t.getMonth()+(e.getFullYear()-t.getFullYear())*12,t=>t.getMonth()),ml=be.range,$n=z(t=>{t.setUTCDate(1),t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCMonth(t.getUTCMonth()+e)},(t,e)=>e.getUTCMonth()-t.getUTCMonth()+(e.getUTCFullYear()-t.getUTCFullYear())*12,t=>t.getUTCMonth()),dl=$n.range;var ft=z(t=>{t.setMonth(0,1),t.setHours(0,0,0,0)},(t,e)=>{t.setFullYear(t.getFullYear()+e)},(t,e)=>e.getFullYear()-t.getFullYear(),t=>t.getFullYear());ft.every=t=>!isFinite(t=Math.floor(t))||!(t>0)?null:z(e=>{e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)},(e,n)=>{e.setFullYear(e.getFullYear()+n*t)});var xl=ft.range,_t=z(t=>{t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCFullYear(t.getUTCFullYear()+e)},(t,e)=>e.getUTCFullYear()-t.getUTCFullYear(),t=>t.getUTCFullYear());_t.every=t=>!isFinite(t=Math.floor(t))||!(t>0)?null:z(e=>{e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,n)=>{e.setUTCFullYear(e.getUTCFullYear()+n*t)});var _l=_t.range;function Na(t,e,n,r,i,o){let a=[[bt,1,1e3],[bt,5,5*1e3],[bt,15,15*1e3],[bt,30,30*1e3],[o,1,6e4],[o,5,5*6e4],[o,15,15*6e4],[o,30,30*6e4],[i,1,36e5],[i,3,3*36e5],[i,6,6*36e5],[i,12,12*36e5],[r,1,864e5],[r,2,2*864e5],[n,1,6048e5],[e,1,2592e6],[e,3,3*2592e6],[t,1,31536e6]];function s(u,c,h){let l=cT).right(a,l);if(p===a.length)return t.every(fe(u/31536e6,c/31536e6,h));if(p===0)return Jt.every(Math.max(fe(u,c,h),1));let[g,v]=a[l/a[p-1][2]53)return null;"w"in _||(_.w=1),"Z"in _?(H=Vr(qe(_.y,0,1)),st=H.getUTCDay(),H=st>4||st===0?we.ceil(H):we(H),H=Be.offset(H,(_.V-1)*7),_.y=H.getUTCFullYear(),_.m=H.getUTCMonth(),_.d=H.getUTCDate()+(_.w+6)%7):(H=Wr(qe(_.y,0,1)),st=H.getDay(),H=st>4||st===0?ve.ceil(H):ve(H),H=Dt.offset(H,(_.V-1)*7),_.y=H.getFullYear(),_.m=H.getMonth(),_.d=H.getDate()+(_.w+6)%7)}else("W"in _||"U"in _)&&("w"in _||(_.w="u"in _?_.u%7:"W"in _?1:0),st="Z"in _?Vr(qe(_.y,0,1)).getUTCDay():Wr(qe(_.y,0,1)).getDay(),_.m=0,_.d="W"in _?(_.w+6)%7+_.W*7-(st+5)%7:_.w+_.U*7-(st+6)%7);return"Z"in _?(_.H+=_.Z/100|0,_.M+=_.Z%100,Vr(_)):Wr(_)}}function Y(b,O,R,_){for(var ot=0,H=O.length,st=R.length,ut,Ht;ot=st)return-1;if(ut=O.charCodeAt(ot++),ut===37){if(ut=O.charAt(ot++),Ht=I[ut in Aa?O.charAt(ot++):ut],!Ht||(_=Ht(b,R,_))<0)return-1}else if(ut!=R.charCodeAt(_++))return-1}return _}function D(b,O,R){var _=u.exec(O.slice(R));return _?(b.p=c.get(_[0].toLowerCase()),R+_[0].length):-1}function B(b,O,R){var _=p.exec(O.slice(R));return _?(b.w=g.get(_[0].toLowerCase()),R+_[0].length):-1}function L(b,O,R){var _=h.exec(O.slice(R));return _?(b.w=l.get(_[0].toLowerCase()),R+_[0].length):-1}function x(b,O,R){var _=k.exec(O.slice(R));return _?(b.m=$.get(_[0].toLowerCase()),R+_[0].length):-1}function m(b,O,R){var _=v.exec(O.slice(R));return _?(b.m=T.get(_[0].toLowerCase()),R+_[0].length):-1}function d(b,O,R){return Y(b,e,O,R)}function M(b,O,R){return Y(b,n,O,R)}function w(b,O,R){return Y(b,r,O,R)}function C(b){return a[b.getDay()]}function N(b){return o[b.getDay()]}function P(b){return f[b.getMonth()]}function F(b){return s[b.getMonth()]}function q(b){return i[+(b.getHours()>=12)]}function V(b){return 1+~~(b.getMonth()/3)}function K(b){return a[b.getUTCDay()]}function lt(b){return o[b.getUTCDay()]}function Z(b){return f[b.getUTCMonth()]}function mt(b){return s[b.getUTCMonth()]}function at(b){return i[+(b.getUTCHours()>=12)]}function G(b){return 1+~~(b.getUTCMonth()/3)}return{format:function(b){var O=y(b+="",A);return O.toString=function(){return b},O},parse:function(b){var O=E(b+="",!1);return O.toString=function(){return b},O},utcFormat:function(b){var O=y(b+="",S);return O.toString=function(){return b},O},utcParse:function(b){var O=E(b+="",!0);return O.toString=function(){return b},O}}}var Aa={"-":"",_:" ",0:"0"},J=/^\s*\d+/,wl=/^%/,bl=/[\\^$*+?|[\]().{}]/g;function U(t,e,n){var r=t<0?"-":"",i=(r?-t:t)+"",o=i.length;return r+(o[e.toLowerCase(),n]))}function Tl(t,e,n){var r=J.exec(e.slice(n,n+1));return r?(t.w=+r[0],n+r[0].length):-1}function kl(t,e,n){var r=J.exec(e.slice(n,n+1));return r?(t.u=+r[0],n+r[0].length):-1}function Sl(t,e,n){var r=J.exec(e.slice(n,n+2));return r?(t.U=+r[0],n+r[0].length):-1}function Cl(t,e,n){var r=J.exec(e.slice(n,n+2));return r?(t.V=+r[0],n+r[0].length):-1}function Nl(t,e,n){var r=J.exec(e.slice(n,n+2));return r?(t.W=+r[0],n+r[0].length):-1}function Da(t,e,n){var r=J.exec(e.slice(n,n+4));return r?(t.y=+r[0],n+r[0].length):-1}function $a(t,e,n){var r=J.exec(e.slice(n,n+2));return r?(t.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function Al(t,e,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(n,n+6));return r?(t.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function Dl(t,e,n){var r=J.exec(e.slice(n,n+1));return r?(t.q=r[0]*3-3,n+r[0].length):-1}function $l(t,e,n){var r=J.exec(e.slice(n,n+2));return r?(t.m=r[0]-1,n+r[0].length):-1}function Oa(t,e,n){var r=J.exec(e.slice(n,n+2));return r?(t.d=+r[0],n+r[0].length):-1}function Ol(t,e,n){var r=J.exec(e.slice(n,n+3));return r?(t.m=0,t.d=+r[0],n+r[0].length):-1}function Ia(t,e,n){var r=J.exec(e.slice(n,n+2));return r?(t.H=+r[0],n+r[0].length):-1}function Il(t,e,n){var r=J.exec(e.slice(n,n+2));return r?(t.M=+r[0],n+r[0].length):-1}function El(t,e,n){var r=J.exec(e.slice(n,n+2));return r?(t.S=+r[0],n+r[0].length):-1}function Rl(t,e,n){var r=J.exec(e.slice(n,n+3));return r?(t.L=+r[0],n+r[0].length):-1}function Yl(t,e,n){var r=J.exec(e.slice(n,n+6));return r?(t.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function Pl(t,e,n){var r=wl.exec(e.slice(n,n+1));return r?n+r[0].length:-1}function Fl(t,e,n){var r=J.exec(e.slice(n));return r?(t.Q=+r[0],n+r[0].length):-1}function Ul(t,e,n){var r=J.exec(e.slice(n));return r?(t.s=+r[0],n+r[0].length):-1}function Ea(t,e){return U(t.getDate(),e,2)}function zl(t,e){return U(t.getHours(),e,2)}function Ll(t,e){return U(t.getHours()%12||12,e,2)}function Hl(t,e){return U(1+Dt.count(ft(t),t),e,3)}function Ua(t,e){return U(t.getMilliseconds(),e,3)}function Bl(t,e){return Ua(t,e)+"000"}function ql(t,e){return U(t.getMonth()+1,e,2)}function Wl(t,e){return U(t.getMinutes(),e,2)}function Vl(t,e){return U(t.getSeconds(),e,2)}function Xl(t){var e=t.getDay();return e===0?7:e}function Gl(t,e){return U($t.count(ft(t)-1,t),e,2)}function za(t){var e=t.getDay();return e>=4||e===0?Pt(t):Pt.ceil(t)}function Zl(t,e){return t=za(t),U(Pt.count(ft(t),t)+(ft(t).getDay()===4),e,2)}function Ql(t){return t.getDay()}function Kl(t,e){return U(ve.count(ft(t)-1,t),e,2)}function Jl(t,e){return U(t.getFullYear()%100,e,2)}function jl(t,e){return t=za(t),U(t.getFullYear()%100,e,2)}function tc(t,e){return U(t.getFullYear()%1e4,e,4)}function ec(t,e){var n=t.getDay();return t=n>=4||n===0?Pt(t):Pt.ceil(t),U(t.getFullYear()%1e4,e,4)}function nc(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+U(e/60|0,"0",2)+U(e%60,"0",2)}function Ra(t,e){return U(t.getUTCDate(),e,2)}function rc(t,e){return U(t.getUTCHours(),e,2)}function ic(t,e){return U(t.getUTCHours()%12||12,e,2)}function oc(t,e){return U(1+Be.count(_t(t),t),e,3)}function La(t,e){return U(t.getUTCMilliseconds(),e,3)}function ac(t,e){return La(t,e)+"000"}function sc(t,e){return U(t.getUTCMonth()+1,e,2)}function uc(t,e){return U(t.getUTCMinutes(),e,2)}function fc(t,e){return U(t.getUTCSeconds(),e,2)}function lc(t){var e=t.getUTCDay();return e===0?7:e}function cc(t,e){return U(re.count(_t(t)-1,t),e,2)}function Ha(t){var e=t.getUTCDay();return e>=4||e===0?Ft(t):Ft.ceil(t)}function hc(t,e){return t=Ha(t),U(Ft.count(_t(t),t)+(_t(t).getUTCDay()===4),e,2)}function pc(t){return t.getUTCDay()}function mc(t,e){return U(we.count(_t(t)-1,t),e,2)}function dc(t,e){return U(t.getUTCFullYear()%100,e,2)}function xc(t,e){return t=Ha(t),U(t.getUTCFullYear()%100,e,2)}function _c(t,e){return U(t.getUTCFullYear()%1e4,e,4)}function gc(t,e){var n=t.getUTCDay();return t=n>=4||n===0?Ft(t):Ft.ceil(t),U(t.getUTCFullYear()%1e4,e,4)}function yc(){return"+0000"}function Ya(){return"%"}function Pa(t){return+t}function Fa(t){return Math.floor(+t/1e3)}var Me,On,Ba,qa,Wa;Gr({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function Gr(t){return Me=Xr(t),On=Me.format,Ba=Me.parse,qa=Me.utcFormat,Wa=Me.utcParse,Me}function Zr(t,e){t=t.slice();var n=0,r=t.length-1,i=t[n],o=t[r],a;return o1?0:t<-1?Te:Math.acos(t)}function Kr(t){return t>=1?Xe:t<=-1?-Xe:Math.asin(t)}var Jr=Math.PI,jr=2*Jr,oe=1e-6,Mc=jr-oe;function Ka(t){this._+=t[0];for(let e=1,n=t.length;e=0))throw new Error(`invalid digits: ${t}`);if(e>15)return Ka;let n=10**e;return function(r){this._+=r[0];for(let i=1,o=r.length;ioe)if(!(Math.abs(h*f-u*c)>oe)||!o)this._append`L${this._x1=e},${this._y1=n}`;else{let p=r-a,g=i-s,v=f*f+u*u,T=p*p+g*g,k=Math.sqrt(v),$=Math.sqrt(l),A=o*Math.tan((Jr-Math.acos((v+l-T)/(2*k*$)))/2),S=A/$,I=A/k;Math.abs(S-1)>oe&&this._append`L${e+S*c},${n+S*h}`,this._append`A${o},${o},0,0,${+(h*p>c*g)},${this._x1=e+I*f},${this._y1=n+I*u}`}}arc(e,n,r,i,o,a){if(e=+e,n=+n,r=+r,a=!!a,r<0)throw new Error(`negative radius: ${r}`);let s=r*Math.cos(i),f=r*Math.sin(i),u=e+s,c=n+f,h=1^a,l=a?i-o:o-i;this._x1===null?this._append`M${u},${c}`:(Math.abs(this._x1-u)>oe||Math.abs(this._y1-c)>oe)&&this._append`L${u},${c}`,r&&(l<0&&(l=l%jr+jr),l>Mc?this._append`A${r},${r},0,1,${h},${e-s},${n-f}A${r},${r},0,1,${h},${this._x1=u},${this._y1=c}`:l>oe&&this._append`A${r},${r},0,${+(l>=Jr)},${h},${this._x1=e+r*Math.cos(o)},${this._y1=n+r*Math.sin(o)}`)}rect(e,n,r,i){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+n}h${r=+r}v${+i}h${-r}Z`}toString(){return this._}};function Ja(){return new ae}Ja.prototype=ae.prototype;function En(t){let e=3;return t.digits=function(n){if(!arguments.length)return e;if(n==null)e=null;else{let r=Math.floor(n);if(!(r>=0))throw new RangeError(`invalid digits: ${n}`);e=r}return t},()=>new ae(e)}function kc(t){return t.innerRadius}function Sc(t){return t.outerRadius}function Cc(t){return t.startAngle}function Nc(t){return t.endAngle}function Ac(t){return t&&t.padAngle}function Dc(t,e,n,r,i,o,a,s){var f=n-t,u=r-e,c=a-i,h=s-o,l=h*f-c*u;if(!(l*ld*d+M*M&&(Y=B,D=L),{cx:Y,cy:D,x01:-c,y01:-h,x11:Y*(i/I-1),y11:D*(i/I-1)}}function $c(){var t=kc,e=Sc,n=W(0),r=null,i=Cc,o=Nc,a=Ac,s=null,f=En(u);function u(){var c,h,l=+t.apply(this,arguments),p=+e.apply(this,arguments),g=i.apply(this,arguments)-Xe,v=o.apply(this,arguments)-Xe,T=Qr(v-g),k=v>g;if(s||(s=c=f()),pj))s.moveTo(0,0);else if(T>ke-j)s.moveTo(p*Ut(g),p*gt(g)),s.arc(0,0,p,g,v,!k),l>j&&(s.moveTo(l*Ut(v),l*gt(v)),s.arc(0,0,l,v,g,k));else{var $=g,A=v,S=g,I=v,y=T,E=T,Y=a.apply(this,arguments)/2,D=Y>j&&(r?+r.apply(this,arguments):ie(l*l+p*p)),B=In(Qr(p-l)/2,+n.apply(this,arguments)),L=B,x=B,m,d;if(D>j){var M=Kr(D/l*gt(Y)),w=Kr(D/p*gt(Y));(y-=M*2)>j?(M*=k?1:-1,S+=M,I-=M):(y=0,S=I=(g+v)/2),(E-=w*2)>j?(w*=k?1:-1,$+=w,A-=w):(E=0,$=A=(g+v)/2)}var C=p*Ut($),N=p*gt($),P=l*Ut(I),F=l*gt(I);if(B>j){var q=p*Ut(A),V=p*gt(A),K=l*Ut(S),lt=l*gt(S),Z;if(Tj?x>j?(m=Rn(K,lt,C,N,p,x,k),d=Rn(q,V,P,F,p,x,k),s.moveTo(m.cx+m.x01,m.cy+m.y01),xj)||!(y>j)?s.lineTo(P,F):L>j?(m=Rn(P,F,q,V,l,-L,k),d=Rn(C,N,K,lt,l,-L,k),s.lineTo(m.cx+m.x01,m.cy+m.y01),Lt?1:e>=t?0:NaN}function rs(t){return t}function Ic(){var t=rs,e=ns,n=null,r=W(0),i=W(ke),o=W(0);function a(s){var f,u=(s=Yn(s)).length,c,h,l=0,p=new Array(u),g=new Array(u),v=+r.apply(this,arguments),T=Math.min(ke,Math.max(-ke,i.apply(this,arguments)-v)),k,$=Math.min(Math.abs(T)/u,o.apply(this,arguments)),A=$*(T<0?-1:1),S;for(f=0;f0&&(l+=S);for(e!=null?p.sort(function(I,y){return e(g[I],g[y])}):n!=null&&p.sort(function(I,y){return n(s[I],s[y])}),f=0,h=l?(T-u*A)/l:0;f0?S*h:0)+A,g[c]={data:s[c],index:f,value:S,startAngle:v,endAngle:k,padAngle:$};return g}return a.value=function(s){return arguments.length?(t=typeof s=="function"?s:W(+s),a):t},a.sortValues=function(s){return arguments.length?(e=s,n=null,a):e},a.sort=function(s){return arguments.length?(n=s,e=null,a):n},a.startAngle=function(s){return arguments.length?(r=typeof s=="function"?s:W(+s),a):r},a.endAngle=function(s){return arguments.length?(i=typeof s=="function"?s:W(+s),a):i},a.padAngle=function(s){return arguments.length?(o=typeof s=="function"?s:W(+s),a):o},a}var Pn=class{constructor(e,n){this._context=e,this._x=n}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line}point(e,n){switch(e=+e,n=+n,this._point){case 0:{this._point=1,this._line?this._context.lineTo(e,n):this._context.moveTo(e,n);break}case 1:this._point=2;default:{this._x?this._context.bezierCurveTo(this._x0=(this._x0+e)/2,this._y0,this._x0,n,e,n):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+n)/2,e,this._y0,e,n);break}}this._x0=e,this._y0=n}};function Ec(t){return new Pn(t,!0)}function Rc(t){return new Pn(t,!1)}function pt(){}function Se(t,e,n){t._context.bezierCurveTo((2*t._x0+t._x1)/3,(2*t._y0+t._y1)/3,(t._x0+2*t._x1)/3,(t._y0+2*t._y1)/3,(t._x0+4*t._x1+e)/6,(t._y0+4*t._y1+n)/6)}function Ge(t){this._context=t}Ge.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:Se(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:Se(this,t,e);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};function Yc(t){return new Ge(t)}function is(t){this._context=t}is.prototype={areaStart:pt,areaEnd:pt,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x2,this._y2),this._context.closePath();break}case 2:{this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break}case 3:{this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}}},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x2=t,this._y2=e;break;case 1:this._point=2,this._x3=t,this._y3=e;break;case 2:this._point=3,this._x4=t,this._y4=e,this._context.moveTo((this._x0+4*this._x1+t)/6,(this._y0+4*this._y1+e)/6);break;default:Se(this,t,e);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};function Pc(t){return new is(t)}function os(t){this._context=t}os.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+t)/6,r=(this._y0+4*this._y1+e)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:Se(this,t,e);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};function Fc(t){return new os(t)}function as(t,e){this._basis=new Ge(t),this._beta=e}as.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var t=this._x,e=this._y,n=t.length-1;if(n>0)for(var r=t[0],i=e[0],o=t[n]-r,a=e[n]-i,s=-1,f;++s<=n;)f=s/n,this._basis.point(this._beta*t[s]+(1-this._beta)*(r+f*o),this._beta*e[s]+(1-this._beta)*(i+f*a));this._x=this._y=null,this._basis.lineEnd()},point:function(t,e){this._x.push(+t),this._y.push(+e)}};var Uc=(function t(e){function n(r){return e===1?new Ge(r):new as(r,e)}return n.beta=function(r){return t(+r)},n})(.85);function Ce(t,e,n){t._context.bezierCurveTo(t._x1+t._k*(t._x2-t._x0),t._y1+t._k*(t._y2-t._y0),t._x2+t._k*(t._x1-e),t._y2+t._k*(t._y1-n),t._x2,t._y2)}function Fn(t,e){this._context=t,this._k=(1-e)/6}Fn.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:Ce(this,this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2,this._x1=t,this._y1=e;break;case 2:this._point=3;default:Ce(this,t,e);break}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var zc=(function t(e){function n(r){return new Fn(r,e)}return n.tension=function(r){return t(+r)},n})(0);function Un(t,e){this._context=t,this._k=(1-e)/6}Un.prototype={areaStart:pt,areaEnd:pt,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:Ce(this,t,e);break}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var Lc=(function t(e){function n(r){return new Un(r,e)}return n.tension=function(r){return t(+r)},n})(0);function zn(t,e){this._context=t,this._k=(1-e)/6}zn.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:Ce(this,t,e);break}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var Hc=(function t(e){function n(r){return new zn(r,e)}return n.tension=function(r){return t(+r)},n})(0);function Ze(t,e,n){var r=t._x1,i=t._y1,o=t._x2,a=t._y2;if(t._l01_a>j){var s=2*t._l01_2a+3*t._l01_a*t._l12_a+t._l12_2a,f=3*t._l01_a*(t._l01_a+t._l12_a);r=(r*s-t._x0*t._l12_2a+t._x2*t._l01_2a)/f,i=(i*s-t._y0*t._l12_2a+t._y2*t._l01_2a)/f}if(t._l23_a>j){var u=2*t._l23_2a+3*t._l23_a*t._l12_a+t._l12_2a,c=3*t._l23_a*(t._l23_a+t._l12_a);o=(o*u+t._x1*t._l23_2a-e*t._l12_2a)/c,a=(a*u+t._y1*t._l23_2a-n*t._l12_2a)/c}t._context.bezierCurveTo(r,i,o,a,t._x2,t._y2)}function ss(t,e){this._context=t,this._alpha=e}ss.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){if(t=+t,e=+e,this._point){var n=this._x2-t,r=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3;default:Ze(this,t,e);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var Bc=(function t(e){function n(r){return e?new ss(r,e):new Fn(r,0)}return n.alpha=function(r){return t(+r)},n})(.5);function us(t,e){this._context=t,this._alpha=e}us.prototype={areaStart:pt,areaEnd:pt,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(t,e){if(t=+t,e=+e,this._point){var n=this._x2-t,r=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:Ze(this,t,e);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var qc=(function t(e){function n(r){return e?new us(r,e):new Un(r,0)}return n.alpha=function(r){return t(+r)},n})(.5);function fs(t,e){this._context=t,this._alpha=e}fs.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){if(t=+t,e=+e,this._point){var n=this._x2-t,r=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:Ze(this,t,e);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var Wc=(function t(e){function n(r){return e?new fs(r,e):new zn(r,0)}return n.alpha=function(r){return t(+r)},n})(.5);function ls(t){this._context=t}ls.prototype={areaStart:pt,areaEnd:pt,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(t,e){t=+t,e=+e,this._point?this._context.lineTo(t,e):(this._point=1,this._context.moveTo(t,e))}};function Vc(t){return new ls(t)}function cs(t){return t<0?-1:1}function hs(t,e,n){var r=t._x1-t._x0,i=e-t._x1,o=(t._y1-t._y0)/(r||i<0&&-0),a=(n-t._y1)/(i||r<0&&-0),s=(o*i+a*r)/(r+i);return(cs(o)+cs(a))*Math.min(Math.abs(o),Math.abs(a),.5*Math.abs(s))||0}function ps(t,e){var n=t._x1-t._x0;return n?(3*(t._y1-t._y0)/n-e)/2:e}function ei(t,e,n){var r=t._x0,i=t._y0,o=t._x1,a=t._y1,s=(o-r)/3;t._context.bezierCurveTo(r+s,i+s*e,o-s,a-s*n,o,a)}function Ln(t){this._context=t}Ln.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:ei(this,this._t0,ps(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){var n=NaN;if(t=+t,e=+e,!(t===this._x1&&e===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,ei(this,ps(this,n=hs(this,t,e)),n);break;default:ei(this,this._t0,n=hs(this,t,e));break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e,this._t0=n}}};function ms(t){this._context=new ds(t)}(ms.prototype=Object.create(Ln.prototype)).point=function(t,e){Ln.prototype.point.call(this,e,t)};function ds(t){this._context=t}ds.prototype={moveTo:function(t,e){this._context.moveTo(e,t)},closePath:function(){this._context.closePath()},lineTo:function(t,e){this._context.lineTo(e,t)},bezierCurveTo:function(t,e,n,r,i,o){this._context.bezierCurveTo(e,t,r,n,o,i)}};function Xc(t){return new Ln(t)}function Gc(t){return new ms(t)}function _s(t){this._context=t}_s.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var t=this._x,e=this._y,n=t.length;if(n)if(this._line?this._context.lineTo(t[0],e[0]):this._context.moveTo(t[0],e[0]),n===2)this._context.lineTo(t[1],e[1]);else for(var r=xs(t),i=xs(e),o=0,a=1;a=0;--e)i[e]=(a[e]-i[e+1])/o[e];for(o[n-1]=(t[n]+i[n-1])/2,e=0;e=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,e),this._context.lineTo(t,e);else{var n=this._x*(1-this._t)+t*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,e)}break}}this._x=t,this._y=e}};function Qc(t){return new Hn(t,.5)}function Kc(t){return new Hn(t,0)}function Jc(t){return new Hn(t,1)}var jc={value:()=>{}};function ys(){for(var t=0,e=arguments.length,n={},r;t=0&&(r=n.slice(i+1),n=n.slice(0,i)),n&&!e.hasOwnProperty(n))throw new Error("unknown type: "+n);return{type:n,name:r}})}Bn.prototype=ys.prototype={constructor:Bn,on:function(t,e){var n=this._,r=th(t+"",n),i,o=-1,a=r.length;if(arguments.length<2){for(;++o0)for(var n=new Array(i),r=0,i,o;r=0&&t._call.call(void 0,e),t=t._next;--Ne}function vs(){se=(Wn=je.now())+Vn,Ne=Ke=0;try{Ms()}finally{Ne=0,ih(),se=0}}function rh(){var t=je.now(),e=t-Wn;e>ws&&(Vn-=e,Wn=t)}function ih(){for(var t,e=qn,n,r=1/0;e;)e._call?(r>e._time&&(r=e._time),t=e,e=e._next):(n=e._next,e._next=null,e=t?t._next=n:qn=n);Je=t,ri(r)}function ri(t){if(!Ne){Ke&&(Ke=clearTimeout(Ke));var e=t-se;e>24?(t<1/0&&(Ke=setTimeout(vs,t-je.now()-Vn)),Qe&&(Qe=clearInterval(Qe))):(Qe||(Wn=je.now(),Qe=setInterval(rh,ws)),Ne=1,bs(vs))}}function Gn(t,e,n){var r=new tn;return e=e==null?0:+e,r.restart(i=>{r.stop(),t(i+e)},e,n),r}var oh=ni("start","end","cancel","interrupt"),ah=[],Ss=0,Ts=1,Qn=2,Zn=3,ks=4,Kn=5,nn=6;function zt(t,e,n,r,i,o){var a=t.__transition;if(!a)t.__transition={};else if(n in a)return;sh(t,n,{name:e,index:r,group:i,on:oh,tween:ah,time:o.time,delay:o.delay,duration:o.duration,ease:o.ease,timer:null,state:Ss})}function rn(t,e){var n=Q(t,e);if(n.state>Ss)throw new Error("too late; already scheduled");return n}function rt(t,e){var n=Q(t,e);if(n.state>Zn)throw new Error("too late; already running");return n}function Q(t,e){var n=t.__transition;if(!n||!(n=n[e]))throw new Error("transition not found");return n}function sh(t,e,n){var r=t.__transition,i;r[e]=n,n.timer=Xn(o,0,n.time);function o(u){n.state=Ts,n.timer.restart(a,n.delay,n.time),n.delay<=u&&a(u-n.delay)}function a(u){var c,h,l,p;if(n.state!==Ts)return f();for(c in r)if(p=r[c],p.name===n.name){if(p.state===Zn)return Gn(a);p.state===ks?(p.state=nn,p.timer.stop(),p.on.call("interrupt",t,t.__data__,p.index,p.group),delete r[c]):+cQn&&r.state=0&&(e=e.slice(0,n)),!e||e==="start"})}function Ch(t,e,n){var r,i,o=Sh(e)?rn:rt;return function(){var a=o(this,t),s=a.on;s!==r&&(i=(r=s).copy()).on(e,n),a.on=i}}function Ps(t,e){var n=this._id;return arguments.length<2?Q(this.node(),n).on.on(t):this.each(Ch(n,t,e))}function Nh(t){return function(){var e=this.parentNode;for(var n in this.__transition)if(+n!==t)return;e&&e.removeChild(this)}}function Fs(){return this.on("end.remove",Nh(this._id))}function Us(t){var e=this._name,n=this._id;typeof t!="function"&&(t=Wt(t));for(var r=this._groups,i=r.length,o=new Array(i),a=0;anew m,"TokenBuilder"),ValueConverter:t(()=>new A,"ValueConverter")}};function v(c=n){let r=i(u(c),o),a=i(s({shared:r}),l,C);return r.ServiceRegistry.register(a),{shared:r,Architecture:a}}t(v,"createArchitectureServices");export{C as a,v as b}; diff --git a/src/frontend/web/von_interface/static/vendor/conversation-visuals/chunk-YUSHYV7C.js b/src/frontend/web/von_interface/static/vendor/conversation-visuals/chunk-YUSHYV7C.js new file mode 100644 index 000000000..0c38a6b66 --- /dev/null +++ b/src/frontend/web/von_interface/static/vendor/conversation-visuals/chunk-YUSHYV7C.js @@ -0,0 +1 @@ +var a=Object.defineProperty,o=(r,e)=>a(r,"name",{value:e,configurable:!0}),_=(r,e)=>{for(var t in e)a(r,t,{get:e[t],enumerable:!0})};export{o as a,_ as b}; diff --git a/src/frontend/web/von_interface/static/vendor/conversation-visuals/chunk-ZFFKTRVX.js b/src/frontend/web/von_interface/static/vendor/conversation-visuals/chunk-ZFFKTRVX.js new file mode 100644 index 000000000..adecfab59 --- /dev/null +++ b/src/frontend/web/von_interface/static/vendor/conversation-visuals/chunk-ZFFKTRVX.js @@ -0,0 +1 @@ +import{a as o,b as n,c as s,d as i,e as l,g as d,t as m,w as c,y as p}from"./chunk-RVPSGR2P.js";var f=class extends p{static{o(this,"TreemapTokenBuilder")}constructor(){super(["treemap"])}},u=/classDef\s+([A-Z_a-z]\w+)(?:\s+([^\n\r;]*))?;?/,v=class extends c{static{o(this,"TreemapValueConverter")}runCustomConverter(r,e,t){if(r.name==="NUMBER2")return parseFloat(e.replace(/,/g,""));if(r.name==="SEPARATOR")return e.substring(1,e.length-1);if(r.name==="STRING2")return e.substring(1,e.length-1);if(r.name==="INDENTATION")return e.length;if(r.name==="ClassDef"){if(typeof e!="string")return e;let a=u.exec(e);if(a)return{$type:"ClassDefStatement",className:a[1],styleText:a[2]||void 0}}}};function T(r){let e=r.validation.TreemapValidator,t=r.validation.ValidationRegistry;if(t){let a={Treemap:e.checkSingleRoot.bind(e)};t.register(a,e)}}o(T,"registerValidationChecks");var g=class{static{o(this,"TreemapValidator")}checkSingleRoot(r,e){let t;for(let a of r.TreemapRows)a.item&&(t===void 0&&a.indent===void 0?t=0:a.indent===void 0?e("error","Multiple root nodes are not allowed in a treemap.",{node:a,property:"item"}):t!==void 0&&t>=parseInt(a.indent,10)&&e("error","Multiple root nodes are not allowed in a treemap.",{node:a,property:"item"}))}},h={parser:{TokenBuilder:o(()=>new f,"TokenBuilder"),ValueConverter:o(()=>new v,"ValueConverter")},validation:{TreemapValidator:o(()=>new g,"TreemapValidator")}};function C(r=l){let e=i(s(r),d),t=i(n({shared:e}),m,h);return e.ServiceRegistry.register(t),T(t),{shared:e,Treemap:t}}o(C,"createTreemapServices");export{h as a,C as b}; diff --git a/src/frontend/web/von_interface/static/vendor/conversation-visuals/classDiagram-v2-NBCMYWYE-IUHYLZD3.js b/src/frontend/web/von_interface/static/vendor/conversation-visuals/classDiagram-v2-NBCMYWYE-IUHYLZD3.js new file mode 100644 index 000000000..3e8403be7 --- /dev/null +++ b/src/frontend/web/von_interface/static/vendor/conversation-visuals/classDiagram-v2-NBCMYWYE-IUHYLZD3.js @@ -0,0 +1,217 @@ +import{a as dt}from"./chunk-QP3MATMC.js";import{a as pt}from"./chunk-VNMAEQZK.js";import{a as At}from"./chunk-EQQJCVK6.js";import{b as ot,c as ct}from"./chunk-2AVNI7YL.js";import"./chunk-SNMBC6G5.js";import"./chunk-AKE2LJPJ.js";import"./chunk-NDMMOI35.js";import"./chunk-T4OFBIBR.js";import{h as ht}from"./chunk-L56KSVJM.js";import"./chunk-TEBTVNCH.js";import"./chunk-HVVAQLXH.js";import"./chunk-IVPOI5SM.js";import"./chunk-O46DUOKR.js";import"./chunk-C7YISUMK.js";import{b as rt,c as nt,d as lt,f as ut}from"./chunk-6NDAIVIK.js";import{p as be,s as at}from"./chunk-EUYVSIXP.js";import"./chunk-QSTT4QQC.js";import{$ as F,I as qe,K as P,O as v,U as Je,V as Ze,W as $e,X as et,Y as tt,Z as st,_ as it,g as He}from"./chunk-S4JILX6U.js";import{b as Ae,h as $}from"./chunk-XEQL7KGA.js";import{a as b}from"./chunk-YUSHYV7C.js";import"./chunk-3RNHDNP5.js";var Me=(function(){var t=b(function(O,c,d,p){for(d=d||{},p=O.length;p--;d[O[p]]=c);return d},"o"),i=[1,18],a=[1,19],r=[1,20],n=[1,41],o=[1,26],h=[1,42],u=[1,24],f=[1,25],k=[1,32],_=[1,33],U=[1,34],g=[1,45],ke=[1,35],me=[1,36],ge=[1,37],Ce=[1,38],Ee=[1,27],Te=[1,28],ye=[1,29],De=[1,30],Fe=[1,31],C=[1,44],E=[1,46],T=[1,43],y=[1,47],Be=[1,9],A=[1,8,9],ee=[1,58],te=[1,59],se=[1,60],ie=[1,61],ae=[1,62],_e=[1,63],Se=[1,64],S=[1,8,9,41],Ve=[1,77],R=[1,8,9,12,13,22,39,41,44,46,68,69,70,71,72,73,74,79,81],re=[1,8,9,12,13,18,20,22,39,41,44,46,47,60,68,69,70,71,72,73,74,79,81,86,100,102,103],ne=[13,60,86,100,102,103],z=[13,60,73,74,86,100,102,103],Re=[13,60,68,69,70,71,72,86,100,102,103],le=[1,103],Y=[1,121],K=[1,117],W=[1,113],Q=[1,119],j=[1,114],X=[1,115],H=[1,116],q=[1,118],J=[1,120],Ge=[22,50,60,61,82,86,87,88,89,90],Ue=[1,128],ue=[12,39],Ne=[1,8,9,39,41,44,46],oe=[1,8,9,22],ze=[1,153],Ye=[1,8,9,61],x=[1,8,9,22,50,60,61,82,86,87,88,89,90],Le={trace:b(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mermaidDoc:4,statements:5,graphConfig:6,CLASS_DIAGRAM:7,NEWLINE:8,EOF:9,statement:10,classLabel:11,SQS:12,STR:13,SQE:14,namespaceName:15,alphaNumToken:16,classLiteralName:17,DOT:18,className:19,GENERICTYPE:20,relationStatement:21,LABEL:22,namespaceStatement:23,classStatement:24,memberStatement:25,annotationStatement:26,clickStatement:27,styleStatement:28,cssClassStatement:29,noteStatement:30,classDefStatement:31,direction:32,acc_title:33,acc_title_value:34,acc_descr:35,acc_descr_value:36,acc_descr_multiline_value:37,namespaceIdentifier:38,STRUCT_START:39,classStatements:40,STRUCT_STOP:41,NAMESPACE:42,classIdentifier:43,STYLE_SEPARATOR:44,members:45,ANNOTATION_START:46,ANNOTATION_END:47,CLASS:48,emptyBody:49,SPACE:50,MEMBER:51,SEPARATOR:52,relation:53,NOTE_FOR:54,noteText:55,NOTE:56,CLASSDEF:57,classList:58,stylesOpt:59,ALPHA:60,COMMA:61,direction_tb:62,direction_bt:63,direction_rl:64,direction_lr:65,relationType:66,lineType:67,AGGREGATION:68,EXTENSION:69,COMPOSITION:70,DEPENDENCY:71,LOLLIPOP:72,LINE:73,DOTTED_LINE:74,CALLBACK:75,LINK:76,LINK_TARGET:77,CLICK:78,CALLBACK_NAME:79,CALLBACK_ARGS:80,HREF:81,STYLE:82,CSSCLASS:83,style:84,styleComponent:85,NUM:86,COLON:87,UNIT:88,BRKT:89,PCT:90,commentToken:91,textToken:92,graphCodeTokens:93,textNoTagsToken:94,TAGSTART:95,TAGEND:96,"==":97,"--":98,DEFAULT:99,MINUS:100,keywords:101,UNICODE_TEXT:102,BQUOTE_STR:103,$accept:0,$end:1},terminals_:{2:"error",7:"CLASS_DIAGRAM",8:"NEWLINE",9:"EOF",12:"SQS",13:"STR",14:"SQE",18:"DOT",20:"GENERICTYPE",22:"LABEL",33:"acc_title",34:"acc_title_value",35:"acc_descr",36:"acc_descr_value",37:"acc_descr_multiline_value",39:"STRUCT_START",41:"STRUCT_STOP",42:"NAMESPACE",44:"STYLE_SEPARATOR",46:"ANNOTATION_START",47:"ANNOTATION_END",48:"CLASS",50:"SPACE",51:"MEMBER",52:"SEPARATOR",54:"NOTE_FOR",56:"NOTE",57:"CLASSDEF",60:"ALPHA",61:"COMMA",62:"direction_tb",63:"direction_bt",64:"direction_rl",65:"direction_lr",68:"AGGREGATION",69:"EXTENSION",70:"COMPOSITION",71:"DEPENDENCY",72:"LOLLIPOP",73:"LINE",74:"DOTTED_LINE",75:"CALLBACK",76:"LINK",77:"LINK_TARGET",78:"CLICK",79:"CALLBACK_NAME",80:"CALLBACK_ARGS",81:"HREF",82:"STYLE",83:"CSSCLASS",86:"NUM",87:"COLON",88:"UNIT",89:"BRKT",90:"PCT",93:"graphCodeTokens",95:"TAGSTART",96:"TAGEND",97:"==",98:"--",99:"DEFAULT",100:"MINUS",101:"keywords",102:"UNICODE_TEXT",103:"BQUOTE_STR"},productions_:[0,[3,1],[3,1],[4,1],[6,4],[5,1],[5,2],[5,3],[11,3],[15,1],[15,1],[15,3],[15,2],[19,1],[19,3],[19,1],[19,2],[19,2],[19,2],[10,1],[10,2],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,2],[10,2],[10,1],[23,4],[23,5],[38,2],[38,3],[40,1],[40,2],[40,3],[40,1],[40,2],[40,3],[40,1],[40,2],[40,3],[24,1],[24,3],[24,4],[24,3],[24,6],[24,4],[24,7],[24,6],[43,2],[43,3],[49,0],[49,2],[49,2],[26,4],[45,1],[45,2],[25,1],[25,2],[25,1],[25,1],[21,3],[21,4],[21,4],[21,5],[30,3],[30,2],[31,3],[58,1],[58,3],[32,1],[32,1],[32,1],[32,1],[53,3],[53,2],[53,2],[53,1],[66,1],[66,1],[66,1],[66,1],[66,1],[67,1],[67,1],[27,3],[27,4],[27,3],[27,4],[27,4],[27,5],[27,3],[27,4],[27,4],[27,5],[27,4],[27,5],[27,5],[27,6],[28,3],[29,3],[59,1],[59,3],[84,1],[84,2],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[91,1],[91,1],[92,1],[92,1],[92,1],[92,1],[92,1],[92,1],[92,1],[94,1],[94,1],[94,1],[94,1],[16,1],[16,1],[16,1],[16,1],[17,1],[55,1]],performAction:b(function(c,d,p,l,m,e,Z){var s=e.length-1;switch(m){case 8:this.$=e[s-1];break;case 9:case 10:case 13:case 15:this.$=e[s];break;case 11:case 14:this.$=e[s-2]+"."+e[s];break;case 12:case 16:this.$=e[s-1]+e[s];break;case 17:case 18:this.$=e[s-1]+"~"+e[s]+"~";break;case 19:l.addRelation(e[s]);break;case 20:e[s-1].title=l.cleanupLabel(e[s]),l.addRelation(e[s-1]);break;case 31:this.$=e[s].trim(),l.setAccTitle(this.$);break;case 32:case 33:this.$=e[s].trim(),l.setAccDescription(this.$);break;case 34:l.addClassesToNamespace(e[s-3],e[s-1][0],e[s-1][1]),l.popNamespace();break;case 35:l.addClassesToNamespace(e[s-4],e[s-1][0],e[s-1][1]),l.popNamespace();break;case 36:this.$=l.addNamespace(e[s]);break;case 37:this.$=l.addNamespace(e[s-1],e[s]);break;case 38:this.$=[[e[s]],[]];break;case 39:this.$=[[e[s-1]],[]];break;case 40:e[s][0].unshift(e[s-2]),this.$=e[s];break;case 41:this.$=[[],[e[s]]];break;case 42:this.$=[[],[e[s-1]]];break;case 43:e[s][1].unshift(e[s-2]),this.$=e[s];break;case 44:case 45:this.$=[[],[]];break;case 46:this.$=e[s];break;case 48:l.setCssClass(e[s-2],e[s]);break;case 49:l.addMembers(e[s-3],e[s-1]);break;case 51:l.setCssClass(e[s-5],e[s-3]),l.addMembers(e[s-5],e[s-1]);break;case 52:l.addAnnotation(e[s-3],e[s-1]);break;case 53:l.addAnnotation(e[s-6],e[s-4]),l.addMembers(e[s-6],e[s-1]);break;case 54:l.addAnnotation(e[s-5],e[s-3]);break;case 55:this.$=e[s],l.addClass(e[s]);break;case 56:this.$=e[s-1],l.addClass(e[s-1]),l.setClassLabel(e[s-1],e[s]);break;case 60:l.addAnnotation(e[s],e[s-2]);break;case 61:case 74:this.$=[e[s]];break;case 62:e[s].push(e[s-1]),this.$=e[s];break;case 63:break;case 64:l.addMember(e[s-1],l.cleanupLabel(e[s]));break;case 65:break;case 66:break;case 67:this.$={id1:e[s-2],id2:e[s],relation:e[s-1],relationTitle1:"none",relationTitle2:"none"};break;case 68:this.$={id1:e[s-3],id2:e[s],relation:e[s-1],relationTitle1:e[s-2],relationTitle2:"none"};break;case 69:this.$={id1:e[s-3],id2:e[s],relation:e[s-2],relationTitle1:"none",relationTitle2:e[s-1]};break;case 70:this.$={id1:e[s-4],id2:e[s],relation:e[s-2],relationTitle1:e[s-3],relationTitle2:e[s-1]};break;case 71:this.$=l.addNote(e[s],e[s-1]);break;case 72:this.$=l.addNote(e[s]);break;case 73:this.$=e[s-2],l.defineClass(e[s-1],e[s]);break;case 75:this.$=e[s-2].concat([e[s]]);break;case 76:l.setDirection("TB");break;case 77:l.setDirection("BT");break;case 78:l.setDirection("RL");break;case 79:l.setDirection("LR");break;case 80:this.$={type1:e[s-2],type2:e[s],lineType:e[s-1]};break;case 81:this.$={type1:"none",type2:e[s],lineType:e[s-1]};break;case 82:this.$={type1:e[s-1],type2:"none",lineType:e[s]};break;case 83:this.$={type1:"none",type2:"none",lineType:e[s]};break;case 84:this.$=l.relationType.AGGREGATION;break;case 85:this.$=l.relationType.EXTENSION;break;case 86:this.$=l.relationType.COMPOSITION;break;case 87:this.$=l.relationType.DEPENDENCY;break;case 88:this.$=l.relationType.LOLLIPOP;break;case 89:this.$=l.lineType.LINE;break;case 90:this.$=l.lineType.DOTTED_LINE;break;case 91:case 97:this.$=e[s-2],l.setClickEvent(e[s-1],e[s]);break;case 92:case 98:this.$=e[s-3],l.setClickEvent(e[s-2],e[s-1]),l.setTooltip(e[s-2],e[s]);break;case 93:this.$=e[s-2],l.setLink(e[s-1],e[s]);break;case 94:this.$=e[s-3],l.setLink(e[s-2],e[s-1],e[s]);break;case 95:this.$=e[s-3],l.setLink(e[s-2],e[s-1]),l.setTooltip(e[s-2],e[s]);break;case 96:this.$=e[s-4],l.setLink(e[s-3],e[s-2],e[s]),l.setTooltip(e[s-3],e[s-1]);break;case 99:this.$=e[s-3],l.setClickEvent(e[s-2],e[s-1],e[s]);break;case 100:this.$=e[s-4],l.setClickEvent(e[s-3],e[s-2],e[s-1]),l.setTooltip(e[s-3],e[s]);break;case 101:this.$=e[s-3],l.setLink(e[s-2],e[s]);break;case 102:this.$=e[s-4],l.setLink(e[s-3],e[s-1],e[s]);break;case 103:this.$=e[s-4],l.setLink(e[s-3],e[s-1]),l.setTooltip(e[s-3],e[s]);break;case 104:this.$=e[s-5],l.setLink(e[s-4],e[s-2],e[s]),l.setTooltip(e[s-4],e[s-1]);break;case 105:this.$=e[s-2],l.setCssStyle(e[s-1],e[s]);break;case 106:l.setCssClass(e[s-1],e[s]);break;case 107:this.$=[e[s]];break;case 108:e[s-2].push(e[s]),this.$=e[s-2];break;case 110:this.$=e[s-1]+e[s];break}},"anonymous"),table:[{3:1,4:2,5:3,6:4,7:[1,6],10:5,16:39,17:40,19:21,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,33:i,35:a,37:r,38:22,42:n,43:23,46:o,48:h,51:u,52:f,54:k,56:_,57:U,60:g,62:ke,63:me,64:ge,65:Ce,75:Ee,76:Te,78:ye,82:De,83:Fe,86:C,100:E,102:T,103:y},{1:[3]},{1:[2,1]},{1:[2,2]},{1:[2,3]},t(Be,[2,5],{8:[1,48]}),{8:[1,49]},t(A,[2,19],{22:[1,50]}),t(A,[2,21]),t(A,[2,22]),t(A,[2,23]),t(A,[2,24]),t(A,[2,25]),t(A,[2,26]),t(A,[2,27]),t(A,[2,28]),t(A,[2,29]),t(A,[2,30]),{34:[1,51]},{36:[1,52]},t(A,[2,33]),t(A,[2,63],{53:53,66:56,67:57,13:[1,54],22:[1,55],68:ee,69:te,70:se,71:ie,72:ae,73:_e,74:Se}),{39:[1,65]},t(S,[2,47],{39:[1,67],44:[1,66],46:[1,68]}),t(A,[2,65]),t(A,[2,66]),{16:69,60:g,86:C,100:E,102:T},{16:39,17:40,19:70,60:g,86:C,100:E,102:T,103:y},{16:39,17:40,19:71,60:g,86:C,100:E,102:T,103:y},{16:39,17:40,19:72,60:g,86:C,100:E,102:T,103:y},{60:[1,73]},{13:[1,74]},{16:39,17:40,19:75,60:g,86:C,100:E,102:T,103:y},{13:Ve,55:76},{58:78,60:[1,79]},t(A,[2,76]),t(A,[2,77]),t(A,[2,78]),t(A,[2,79]),t(R,[2,13],{16:39,17:40,19:81,18:[1,80],20:[1,82],60:g,86:C,100:E,102:T,103:y}),t(R,[2,15],{20:[1,83]}),{15:84,16:85,17:86,60:g,86:C,100:E,102:T,103:y},{16:39,17:40,19:87,60:g,86:C,100:E,102:T,103:y},t(re,[2,133]),t(re,[2,134]),t(re,[2,135]),t(re,[2,136]),t([1,8,9,12,13,20,22,39,41,44,46,68,69,70,71,72,73,74,79,81],[2,137]),t(Be,[2,6],{10:5,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,19:21,38:22,43:23,16:39,17:40,5:88,33:i,35:a,37:r,42:n,46:o,48:h,51:u,52:f,54:k,56:_,57:U,60:g,62:ke,63:me,64:ge,65:Ce,75:Ee,76:Te,78:ye,82:De,83:Fe,86:C,100:E,102:T,103:y}),{5:89,10:5,16:39,17:40,19:21,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,33:i,35:a,37:r,38:22,42:n,43:23,46:o,48:h,51:u,52:f,54:k,56:_,57:U,60:g,62:ke,63:me,64:ge,65:Ce,75:Ee,76:Te,78:ye,82:De,83:Fe,86:C,100:E,102:T,103:y},t(A,[2,20]),t(A,[2,31]),t(A,[2,32]),{13:[1,91],16:39,17:40,19:90,60:g,86:C,100:E,102:T,103:y},{53:92,66:56,67:57,68:ee,69:te,70:se,71:ie,72:ae,73:_e,74:Se},t(A,[2,64]),{67:93,73:_e,74:Se},t(ne,[2,83],{66:94,68:ee,69:te,70:se,71:ie,72:ae}),t(z,[2,84]),t(z,[2,85]),t(z,[2,86]),t(z,[2,87]),t(z,[2,88]),t(Re,[2,89]),t(Re,[2,90]),{8:[1,96],23:99,24:97,30:98,38:22,40:95,42:n,43:23,48:h,54:k,56:_},{16:100,60:g,86:C,100:E,102:T},{41:[1,102],45:101,51:le},{16:104,60:g,86:C,100:E,102:T},{47:[1,105]},{13:[1,106]},{13:[1,107]},{79:[1,108],81:[1,109]},{22:Y,50:K,59:110,60:W,82:Q,84:111,85:112,86:j,87:X,88:H,89:q,90:J},{60:[1,122]},{13:Ve,55:123},t(S,[2,72]),t(S,[2,138]),{22:Y,50:K,59:124,60:W,61:[1,125],82:Q,84:111,85:112,86:j,87:X,88:H,89:q,90:J},t(Ge,[2,74]),{16:39,17:40,19:126,60:g,86:C,100:E,102:T,103:y},t(R,[2,16]),t(R,[2,17]),t(R,[2,18]),{11:127,12:Ue,39:[2,36]},t(ue,[2,9],{16:85,17:86,15:130,18:[1,129],60:g,86:C,100:E,102:T,103:y}),t(ue,[2,10]),t(Ne,[2,55],{11:131,12:Ue}),t(Be,[2,7]),{9:[1,132]},t(oe,[2,67]),{16:39,17:40,19:133,60:g,86:C,100:E,102:T,103:y},{13:[1,135],16:39,17:40,19:134,60:g,86:C,100:E,102:T,103:y},t(ne,[2,82],{66:136,68:ee,69:te,70:se,71:ie,72:ae}),t(ne,[2,81]),{41:[1,137]},{23:99,24:97,30:98,38:22,40:138,42:n,43:23,48:h,54:k,56:_},{8:[1,139],41:[2,38]},{8:[1,140],41:[2,41]},{8:[1,141],41:[2,44]},t(S,[2,48],{39:[1,142]}),{41:[1,143]},t(S,[2,50]),{41:[2,61],45:144,51:le},{47:[1,145]},{16:39,17:40,19:146,60:g,86:C,100:E,102:T,103:y},t(A,[2,91],{13:[1,147]}),t(A,[2,93],{13:[1,149],77:[1,148]}),t(A,[2,97],{13:[1,150],80:[1,151]}),{13:[1,152]},t(A,[2,105],{61:ze}),t(Ye,[2,107],{85:154,22:Y,50:K,60:W,82:Q,86:j,87:X,88:H,89:q,90:J}),t(x,[2,109]),t(x,[2,111]),t(x,[2,112]),t(x,[2,113]),t(x,[2,114]),t(x,[2,115]),t(x,[2,116]),t(x,[2,117]),t(x,[2,118]),t(x,[2,119]),t(A,[2,106]),t(S,[2,71]),t(A,[2,73],{61:ze}),{60:[1,155]},t(R,[2,14]),{39:[2,37]},{13:[1,156]},{15:157,16:85,17:86,60:g,86:C,100:E,102:T,103:y},t(ue,[2,12]),t(Ne,[2,56]),{1:[2,4]},t(oe,[2,69]),t(oe,[2,68]),{16:39,17:40,19:158,60:g,86:C,100:E,102:T,103:y},t(ne,[2,80]),t(S,[2,34]),{41:[1,159]},{23:99,24:97,30:98,38:22,40:160,41:[2,39],42:n,43:23,48:h,54:k,56:_},{23:99,24:97,30:98,38:22,40:161,41:[2,42],42:n,43:23,48:h,54:k,56:_},{23:99,24:97,30:98,38:22,40:162,41:[2,45],42:n,43:23,48:h,54:k,56:_},{45:163,51:le},t(S,[2,49]),{41:[2,62]},t(S,[2,52],{39:[1,164]}),t(A,[2,60]),t(A,[2,92]),t(A,[2,94]),t(A,[2,95],{77:[1,165]}),t(A,[2,98]),t(A,[2,99],{13:[1,166]}),t(A,[2,101],{13:[1,168],77:[1,167]}),{22:Y,50:K,60:W,82:Q,84:169,85:112,86:j,87:X,88:H,89:q,90:J},t(x,[2,110]),t(Ge,[2,75]),{14:[1,170]},t(ue,[2,11]),t(oe,[2,70]),t(S,[2,35]),{41:[2,40]},{41:[2,43]},{41:[2,46]},{41:[1,171]},{41:[1,173],45:172,51:le},t(A,[2,96]),t(A,[2,100]),t(A,[2,102]),t(A,[2,103],{77:[1,174]}),t(Ye,[2,108],{85:154,22:Y,50:K,60:W,82:Q,86:j,87:X,88:H,89:q,90:J}),t(Ne,[2,8]),t(S,[2,51]),{41:[1,175]},t(S,[2,54]),t(A,[2,104]),t(S,[2,53])],defaultActions:{2:[2,1],3:[2,2],4:[2,3],127:[2,37],132:[2,4],144:[2,62],160:[2,40],161:[2,43],162:[2,46]},parseError:b(function(c,d){if(d.recoverable)this.trace(c);else{var p=new Error(c);throw p.hash=d,p}},"parseError"),parse:b(function(c){var d=this,p=[0],l=[],m=[null],e=[],Z=this.table,s="",he=0,Ke=0,We=0,gt=2,Qe=1,Ct=e.slice.call(arguments,1),D=Object.create(this.lexer),w={yy:{}};for(var xe in this.yy)Object.prototype.hasOwnProperty.call(this.yy,xe)&&(w.yy[xe]=this.yy[xe]);D.setInput(c,w.yy),w.yy.lexer=D,w.yy.parser=this,typeof D.yylloc>"u"&&(D.yylloc={});var ve=D.yylloc;e.push(ve);var Et=D.options&&D.options.ranges;typeof w.yy.parseError=="function"?this.parseError=w.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Tt(N){p.length=p.length-2*N,m.length=m.length-N,e.length=e.length-N}b(Tt,"popStack");function je(){var N;return N=l.pop()||D.lex()||Qe,typeof N!="number"&&(N instanceof Array&&(l=N,N=l.pop()),N=d.symbols_[N]||N),N}b(je,"lex");for(var B,Ie,M,L,vt,Oe,G={},de,I,Xe,pe;;){if(M=p[p.length-1],this.defaultActions[M]?L=this.defaultActions[M]:((B===null||typeof B>"u")&&(B=je()),L=Z[M]&&Z[M][B]),typeof L>"u"||!L.length||!L[0]){var we="";pe=[];for(de in Z[M])this.terminals_[de]&&de>gt&&pe.push("'"+this.terminals_[de]+"'");D.showPosition?we="Parse error on line "+(he+1)+`: +`+D.showPosition()+` +Expecting `+pe.join(", ")+", got '"+(this.terminals_[B]||B)+"'":we="Parse error on line "+(he+1)+": Unexpected "+(B==Qe?"end of input":"'"+(this.terminals_[B]||B)+"'"),this.parseError(we,{text:D.match,token:this.terminals_[B]||B,line:D.yylineno,loc:ve,expected:pe})}if(L[0]instanceof Array&&L.length>1)throw new Error("Parse Error: multiple actions possible at state: "+M+", token: "+B);switch(L[0]){case 1:p.push(B),m.push(D.yytext),e.push(D.yylloc),p.push(L[1]),B=null,Ie?(B=Ie,Ie=null):(Ke=D.yyleng,s=D.yytext,he=D.yylineno,ve=D.yylloc,We>0&&We--);break;case 2:if(I=this.productions_[L[1]][1],G.$=m[m.length-I],G._$={first_line:e[e.length-(I||1)].first_line,last_line:e[e.length-1].last_line,first_column:e[e.length-(I||1)].first_column,last_column:e[e.length-1].last_column},Et&&(G._$.range=[e[e.length-(I||1)].range[0],e[e.length-1].range[1]]),Oe=this.performAction.apply(G,[s,Ke,he,w.yy,L[1],m,e].concat(Ct)),typeof Oe<"u")return Oe;I&&(p=p.slice(0,-1*I*2),m=m.slice(0,-1*I),e=e.slice(0,-1*I)),p.push(this.productions_[L[1]][0]),m.push(G.$),e.push(G._$),Xe=Z[p[p.length-2]][p[p.length-1]],p.push(Xe);break;case 3:return!0}}return!0},"parse")},mt=(function(){var O={EOF:1,parseError:b(function(d,p){if(this.yy.parser)this.yy.parser.parseError(d,p);else throw new Error(d)},"parseError"),setInput:b(function(c,d){return this.yy=d||this.yy||{},this._input=c,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:b(function(){var c=this._input[0];this.yytext+=c,this.yyleng++,this.offset++,this.match+=c,this.matched+=c;var d=c.match(/(?:\r\n?|\n).*/g);return d?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),c},"input"),unput:b(function(c){var d=c.length,p=c.split(/(?:\r\n?|\n)/g);this._input=c+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-d),this.offset-=d;var l=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),p.length-1&&(this.yylineno-=p.length-1);var m=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:p?(p.length===l.length?this.yylloc.first_column:0)+l[l.length-p.length].length-p[0].length:this.yylloc.first_column-d},this.options.ranges&&(this.yylloc.range=[m[0],m[0]+this.yyleng-d]),this.yyleng=this.yytext.length,this},"unput"),more:b(function(){return this._more=!0,this},"more"),reject:b(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). +`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:b(function(c){this.unput(this.match.slice(c))},"less"),pastInput:b(function(){var c=this.matched.substr(0,this.matched.length-this.match.length);return(c.length>20?"...":"")+c.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:b(function(){var c=this.match;return c.length<20&&(c+=this._input.substr(0,20-c.length)),(c.substr(0,20)+(c.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:b(function(){var c=this.pastInput(),d=new Array(c.length+1).join("-");return c+this.upcomingInput()+` +`+d+"^"},"showPosition"),test_match:b(function(c,d){var p,l,m;if(this.options.backtrack_lexer&&(m={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(m.yylloc.range=this.yylloc.range.slice(0))),l=c[0].match(/(?:\r\n?|\n).*/g),l&&(this.yylineno+=l.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:l?l[l.length-1].length-l[l.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+c[0].length},this.yytext+=c[0],this.match+=c[0],this.matches=c,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(c[0].length),this.matched+=c[0],p=this.performAction.call(this,this.yy,this,d,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),p)return p;if(this._backtrack){for(var e in m)this[e]=m[e];return!1}return!1},"test_match"),next:b(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var c,d,p,l;this._more||(this.yytext="",this.match="");for(var m=this._currentRules(),e=0;ed[0].length)){if(d=p,l=e,this.options.backtrack_lexer){if(c=this.test_match(p,m[e]),c!==!1)return c;if(this._backtrack){d=!1;continue}else return!1}else if(!this.options.flex)break}return d?(c=this.test_match(d,m[l]),c!==!1?c:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text. +`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:b(function(){var d=this.next();return d||this.lex()},"lex"),begin:b(function(d){this.conditionStack.push(d)},"begin"),popState:b(function(){var d=this.conditionStack.length-1;return d>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:b(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:b(function(d){return d=this.conditionStack.length-1-Math.abs(d||0),d>=0?this.conditionStack[d]:"INITIAL"},"topState"),pushState:b(function(d){this.begin(d)},"pushState"),stateStackSize:b(function(){return this.conditionStack.length},"stateStackSize"),options:{},performAction:b(function(d,p,l,m){var e=m;switch(l){case 0:return 62;case 1:return 63;case 2:return 64;case 3:return 65;case 4:break;case 5:break;case 6:return this.begin("acc_title"),33;break;case 7:return this.popState(),"acc_title_value";break;case 8:return this.begin("acc_descr"),35;break;case 9:return this.popState(),"acc_descr_value";break;case 10:this.begin("acc_descr_multiline");break;case 11:this.popState();break;case 12:return"acc_descr_multiline_value";case 13:return 8;case 14:break;case 15:return 7;case 16:return 7;case 17:return"EDGE_STATE";case 18:this.begin("callback_name");break;case 19:this.popState();break;case 20:this.popState(),this.begin("callback_args");break;case 21:return 79;case 22:this.popState();break;case 23:return 80;case 24:this.popState();break;case 25:return"STR";case 26:this.begin("string");break;case 27:return 82;case 28:return 57;case 29:return this.begin("namespace"),42;break;case 30:return this.popState(),8;break;case 31:break;case 32:return this.begin("namespace-body"),39;break;case 33:this.popState(),this.less(0);break;case 34:return this.popState(),41;break;case 35:return"EOF_IN_STRUCT";case 36:return 8;case 37:break;case 38:return"EDGE_STATE";case 39:return this.begin("class"),48;break;case 40:return this.popState(),8;break;case 41:break;case 42:return this.popState(),this.popState(),41;break;case 43:return this.begin("class-body"),39;break;case 44:return this.popState(),41;break;case 45:return"EOF_IN_STRUCT";case 46:return"EDGE_STATE";case 47:return"OPEN_IN_STRUCT";case 48:break;case 49:return"MEMBER";case 50:return 83;case 51:return 75;case 52:return 76;case 53:return 78;case 54:return 54;case 55:return 56;case 56:return 46;case 57:return 47;case 58:return 81;case 59:this.popState();break;case 60:return"GENERICTYPE";case 61:this.begin("generic");break;case 62:this.popState();break;case 63:return"BQUOTE_STR";case 64:this.begin("bqstring");break;case 65:return 77;case 66:return 77;case 67:return 77;case 68:return 77;case 69:return 69;case 70:return 69;case 71:return 71;case 72:return 71;case 73:return 70;case 74:return 68;case 75:return 72;case 76:return 73;case 77:return 74;case 78:return 22;case 79:return 44;case 80:return 100;case 81:return 18;case 82:return"PLUS";case 83:return 87;case 84:return 61;case 85:return 89;case 86:return 89;case 87:return 90;case 88:return"EQUALS";case 89:return"EQUALS";case 90:return 60;case 91:return 12;case 92:return 14;case 93:return"PUNCTUATION";case 94:return 86;case 95:return 102;case 96:return 50;case 97:return 50;case 98:return 9}},"anonymous"),rules:[/^(?:.*direction\s+TB[^\n]*)/,/^(?:.*direction\s+BT[^\n]*)/,/^(?:.*direction\s+RL[^\n]*)/,/^(?:.*direction\s+LR[^\n]*)/,/^(?:%%(?!\{)*[^\n]*(\r?\n?)+)/,/^(?:%%[^\n]*(\r?\n)*)/,/^(?:accTitle\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*\{\s*)/,/^(?:[\}])/,/^(?:[^\}]*)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:classDiagram-v2\b)/,/^(?:classDiagram\b)/,/^(?:\[\*\])/,/^(?:call[\s]+)/,/^(?:\([\s]*\))/,/^(?:\()/,/^(?:[^(]*)/,/^(?:\))/,/^(?:[^)]*)/,/^(?:["])/,/^(?:[^"]*)/,/^(?:["])/,/^(?:style\b)/,/^(?:classDef\b)/,/^(?:namespace\b)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:[{])/,/^(?:[}])/,/^(?:[}])/,/^(?:$)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:\[\*\])/,/^(?:class\b)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:[}])/,/^(?:[{])/,/^(?:[}])/,/^(?:$)/,/^(?:\[\*\])/,/^(?:[{])/,/^(?:[\n])/,/^(?:[^{}\n]*)/,/^(?:cssClass\b)/,/^(?:callback\b)/,/^(?:link\b)/,/^(?:click\b)/,/^(?:note for\b)/,/^(?:note\b)/,/^(?:<<)/,/^(?:>>)/,/^(?:href\b)/,/^(?:[~])/,/^(?:[^~]*)/,/^(?:~)/,/^(?:[`])/,/^(?:[^`]+)/,/^(?:[`])/,/^(?:_self\b)/,/^(?:_blank\b)/,/^(?:_parent\b)/,/^(?:_top\b)/,/^(?:\s*<\|)/,/^(?:\s*\|>)/,/^(?:\s*>)/,/^(?:\s*<)/,/^(?:\s*\*)/,/^(?:\s*o\b)/,/^(?:\s*\(\))/,/^(?:--)/,/^(?:\.\.)/,/^(?::{1}[^:\n;]+)/,/^(?::{3})/,/^(?:-)/,/^(?:\.)/,/^(?:\+)/,/^(?::)/,/^(?:,)/,/^(?:#)/,/^(?:#)/,/^(?:%)/,/^(?:=)/,/^(?:=)/,/^(?:\w+)/,/^(?:\[)/,/^(?:\])/,/^(?:[!"#$%&'*+,-.`?\\/])/,/^(?:[0-9]+)/,/^(?:[\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6]|[\u00F8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377]|[\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5]|[\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA]|[\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE]|[\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA]|[\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0]|[\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977]|[\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2]|[\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A]|[\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39]|[\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8]|[\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C]|[\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C]|[\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99]|[\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0]|[\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D]|[\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3]|[\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10]|[\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1]|[\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81]|[\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3]|[\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6]|[\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A]|[\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081]|[\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D]|[\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0]|[\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310]|[\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C]|[\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u1700-\u170C\u170E-\u1711]|[\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7]|[\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C]|[\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16]|[\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF]|[\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC]|[\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D]|[\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D]|[\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3]|[\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F]|[\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128]|[\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184]|[\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3]|[\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6]|[\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE]|[\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C]|[\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D]|[\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC]|[\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B]|[\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788]|[\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805]|[\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB]|[\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28]|[\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5]|[\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4]|[\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E]|[\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D]|[\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36]|[\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D]|[\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC]|[\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF]|[\uFFD2-\uFFD7\uFFDA-\uFFDC])/,/^(?:\s)/,/^(?:\s)/,/^(?:$)/],conditions:{"namespace-body":{rules:[26,29,34,35,36,37,38,39,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},namespace:{rules:[26,29,30,31,32,33,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},"class-body":{rules:[26,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},class:{rules:[26,40,41,42,43,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},acc_descr_multiline:{rules:[11,12,26,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},acc_descr:{rules:[9,26,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},acc_title:{rules:[7,26,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},callback_args:{rules:[22,23,26,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},callback_name:{rules:[19,20,21,26,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},href:{rules:[26,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},struct:{rules:[26,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},generic:{rules:[26,50,51,52,53,54,55,56,57,58,59,60,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},bqstring:{rules:[26,50,51,52,53,54,55,56,57,58,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},string:{rules:[24,25,26,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,8,10,13,14,15,16,17,18,26,27,28,29,39,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98],inclusive:!0}}};return O})();Le.lexer=mt;function ce(){this.yy={}}return b(ce,"Parser"),ce.prototype=Le,Le.Parser=ce,new ce})();Me.parser=Me;var yt=Me,bt=["#","+","~","-",""],ft=class{static{b(this,"ClassMember")}constructor(t,i){this.memberType=i,this.visibility="",this.classifier="",this.text="";let a=qe(t,F());this.parseMember(a)}getDisplayDetails(){let t=this.visibility+P(this.id);this.memberType==="method"&&(t+=`(${P(this.parameters.trim())})`,this.returnType&&(t+=" : "+P(this.returnType))),t=t.trim();let i=this.parseClassifier();return{displayText:t,cssStyle:i}}parseMember(t){let i="";if(this.memberType==="method"){let n=/([#+~-])?(.+)\((.*)\)([\s$*])?(.*)([$*])?/.exec(t);if(n){let o=n[1]?n[1].trim():"";if(bt.includes(o)&&(this.visibility=o),this.id=n[2],this.parameters=n[3]?n[3].trim():"",i=n[4]?n[4].trim():"",this.returnType=n[5]?n[5].trim():"",i===""){let h=this.returnType.substring(this.returnType.length-1);/[$*]/.exec(h)&&(i=h,this.returnType=this.returnType.substring(0,this.returnType.length-1))}}}else{let r=t.length,n=t.substring(0,1),o=t.substring(r-1);bt.includes(n)&&(this.visibility=n),/[$*]/.exec(o)&&(i=o),this.id=t.substring(this.visibility===""?0:1,i===""?r:r-1)}this.classifier=i,this.id=this.id.startsWith(" ")?" "+this.id.trim():this.id.trim();let a=`${this.visibility?"\\"+this.visibility:""}${P(this.id)}${this.memberType==="method"?`(${P(this.parameters)})${this.returnType?" : "+P(this.returnType):""}`:""}`;this.text=a.replaceAll("<","<").replaceAll(">",">"),this.text.startsWith("\\<")&&(this.text=this.text.replace("\\<","~"))}parseClassifier(){switch(this.classifier){case"*":return"font-style:italic;";case"$":return"text-decoration:underline;";default:return""}}},fe="classId-",kt=0,V=b(t=>v.sanitizeText(t,F()),"sanitizeText"),Dt=class Pe{constructor(){this.relations=[],this.classes=new Map,this.styleClasses=new Map,this.notes=new Map,this.interfaces=[],this.namespaces=new Map,this.namespaceCounter=0,this.namespaceStack=[],this.diagramId="",this.functions=[],this.lineType={LINE:0,DOTTED_LINE:1},this.relationType={AGGREGATION:0,EXTENSION:1,COMPOSITION:2,DEPENDENCY:3,LOLLIPOP:4},this.setupToolTips=b(i=>{let a=ht();$(i).select("svg").selectAll("g").filter(function(){return $(this).attr("title")!==null}).on("mouseover",o=>{let h=$(o.currentTarget),u=h.attr("title");if(!u)return;let f=o.currentTarget.getBoundingClientRect();a.transition().duration(200).style("opacity",".9"),a.html(He.sanitize(u)).style("left",`${window.scrollX+f.left+f.width/2}px`).style("top",`${window.scrollY+f.bottom+4}px`),h.classed("hover",!0)}).on("mouseout",o=>{a.transition().duration(500).style("opacity",0),$(o.currentTarget).classed("hover",!1)})},"setupToolTips"),this.direction="TB",this.setAccTitle=Ze,this.getAccTitle=$e,this.setAccDescription=et,this.getAccDescription=tt,this.setDiagramTitle=st,this.getDiagramTitle=it,this.getConfig=b(()=>F().class,"getConfig"),this.functions.push(this.setupToolTips.bind(this)),this.clear(),this.addRelation=this.addRelation.bind(this),this.addClassesToNamespace=this.addClassesToNamespace.bind(this),this.addNamespace=this.addNamespace.bind(this),this.popNamespace=this.popNamespace.bind(this),this.setCssClass=this.setCssClass.bind(this),this.addMembers=this.addMembers.bind(this),this.addClass=this.addClass.bind(this),this.setClassLabel=this.setClassLabel.bind(this),this.addAnnotation=this.addAnnotation.bind(this),this.addMember=this.addMember.bind(this),this.cleanupLabel=this.cleanupLabel.bind(this),this.addNote=this.addNote.bind(this),this.defineClass=this.defineClass.bind(this),this.setDirection=this.setDirection.bind(this),this.setLink=this.setLink.bind(this),this.bindFunctions=this.bindFunctions.bind(this),this.clear=this.clear.bind(this),this.setTooltip=this.setTooltip.bind(this),this.setClickEvent=this.setClickEvent.bind(this),this.setCssStyle=this.setCssStyle.bind(this)}static{b(this,"ClassDB")}splitClassNameAndType(i){let a=v.sanitizeText(i,F()),r="",n=a;if(a.indexOf("~")>0){let o=a.split("~");n=V(o[0]),r=V(o[1])}return{className:n,type:r}}setClassLabel(i,a){let r=v.sanitizeText(i,F());a&&(a=V(a));let{className:n}=this.splitClassNameAndType(r);this.classes.get(n).label=a,this.classes.get(n).text=`${a}${this.classes.get(n).type?`<${this.classes.get(n).type}>`:""}`}addClass(i){let a=v.sanitizeText(i,F()),{className:r,type:n}=this.splitClassNameAndType(a);if(this.classes.has(r))return;let o=v.sanitizeText(r,F());this.classes.set(o,{id:o,type:n,label:o,text:`${o}${n?`<${n}>`:""}`,shape:"classBox",cssClasses:"default",methods:[],members:[],annotations:[],styles:[],domId:fe+o+"-"+kt}),kt++}addInterface(i,a){let r={id:`interface${this.interfaces.length}`,label:i,classId:a};this.interfaces.push(r)}setDiagramId(i){this.diagramId=i}lookUpDomId(i){let a=v.sanitizeText(i,F());if(this.classes.has(a)){let r=this.classes.get(a).domId;return this.diagramId?`${this.diagramId}-${r}`:r}throw new Error("Class not found: "+a)}clear(){this.relations=[],this.classes=new Map,this.notes=new Map,this.interfaces=[],this.functions=[],this.functions.push(this.setupToolTips.bind(this)),this.namespaces=new Map,this.namespaceCounter=0,this.namespaceStack=[],this.diagramId="",this.direction="TB",Je()}getClass(i){return this.classes.get(i)}getClasses(){return this.classes}getRelations(){return this.relations}getNote(i){let a=typeof i=="number"?`note${i}`:i;return this.notes.get(a)}getNotes(){return this.notes}addRelation(i){Ae.debug("Adding relation: "+JSON.stringify(i));let a=[this.relationType.LOLLIPOP,this.relationType.AGGREGATION,this.relationType.COMPOSITION,this.relationType.DEPENDENCY,this.relationType.EXTENSION];i.relation.type1===this.relationType.LOLLIPOP&&!a.includes(i.relation.type2)?(this.addClass(i.id2),this.addInterface(i.id1,i.id2),i.id1=`interface${this.interfaces.length-1}`):i.relation.type2===this.relationType.LOLLIPOP&&!a.includes(i.relation.type1)?(this.addClass(i.id1),this.addInterface(i.id2,i.id1),i.id2=`interface${this.interfaces.length-1}`):(this.addClass(i.id1),this.addClass(i.id2)),i.id1=this.splitClassNameAndType(i.id1).className,i.id2=this.splitClassNameAndType(i.id2).className,i.relationTitle1=v.sanitizeText(i.relationTitle1.trim(),F()),i.relationTitle2=v.sanitizeText(i.relationTitle2.trim(),F()),this.relations.push(i)}addAnnotation(i,a){let r=this.splitClassNameAndType(i).className;this.classes.get(r).annotations.push(a)}addMember(i,a){this.addClass(i);let r=this.splitClassNameAndType(i).className,n=this.classes.get(r);if(typeof a=="string"){let o=a.trim();o.startsWith("<<")&&o.endsWith(">>")?n.annotations.push(V(o.substring(2,o.length-2))):o.indexOf(")")>0?n.methods.push(new ft(o,"method")):o&&n.members.push(new ft(o,"attribute"))}}addMembers(i,a){Array.isArray(a)&&(a.reverse(),a.forEach(r=>this.addMember(i,r)))}addNote(i,a){let r=this.notes.size,n={id:`note${r}`,class:a,text:i,index:r};return this.notes.set(n.id,n),n.id}cleanupLabel(i){return i.startsWith(":")&&(i=i.substring(1)),V(i.trim())}setCssClass(i,a){i.split(",").forEach(r=>{let n=r;/\d/.exec(r[0])&&(n=fe+n),n=this.splitClassNameAndType(n).className;let o=this.classes.get(n);o&&(o.cssClasses+=" "+a)})}defineClass(i,a){for(let r of i){let n=this.styleClasses.get(r);n===void 0&&(n={id:r,styles:[],textStyles:[]},this.styleClasses.set(r,n)),a&&a.forEach(o=>{if(/color/.exec(o)){let h=o.replace("fill","bgFill");n.textStyles.push(h)}n.styles.push(o)}),this.classes.forEach(o=>{o.cssClasses.includes(r)&&o.styles.push(...a.flatMap(h=>h.split(",")))})}}setTooltip(i,a){i.split(",").forEach(r=>{if(a!==void 0){let n=this.splitClassNameAndType(r).className,o=this.classes.get(n);o&&(o.tooltip=V(a))}})}getTooltip(i,a){return a&&this.namespaces.has(a)?this.namespaces.get(a).classes.get(i).tooltip:this.classes.get(i).tooltip}setLink(i,a,r){let n=F();i.split(",").forEach(o=>{let h=o;/\d/.exec(o[0])&&(h=fe+h),h=this.splitClassNameAndType(h).className;let u=this.classes.get(h);u&&(u.link=be.formatUrl(a,n),n.securityLevel==="sandbox"?u.linkTarget="_top":typeof r=="string"?u.linkTarget=V(r):u.linkTarget="_blank")}),this.setCssClass(i,"clickable")}setClickEvent(i,a,r){i.split(",").forEach(n=>{this.setClickFunc(n,a,r);let o=this.splitClassNameAndType(n).className,h=this.classes.get(o);h&&(h.haveCallback=!0)}),this.setCssClass(i,"clickable")}setClickFunc(i,a,r){let n=v.sanitizeText(i,F());if(F().securityLevel!=="loose"||a===void 0)return;let h=this.splitClassNameAndType(n).className;if(this.classes.has(h)){let u=[];if(typeof r=="string"){u=r.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(let f=0;f{let f=this.lookUpDomId(h),k=document.querySelector(`[id="${f}"]`);k!==null&&k.addEventListener("click",()=>{be.runFunc(a,...u)},!1)})}}bindFunctions(i){this.functions.forEach(a=>{a(i)})}escapeHtml(i){return i.replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'")}getDirection(){return this.direction}setDirection(i){this.direction=i}static resolveQualifiedId(i,a){let r=a.at(-1);return r?`${r}.${i}`:i}static getAncestorIds(i){let a=i.split("."),r=new Array(a.length);r[0]=a[0];for(let n=1;n0?o[h-1]:void 0,k=h===o.length-1,_=k&&a?a:n[h];this.namespaces.has(u)?k&&(this.namespaces.get(u).explicit=!0):this.namespaces.set(u,this.createNamespaceNode(u,_,f,k)),f&&this.linkParentChild(f,u)}return r}popNamespace(){this.namespaceStack.pop()}getNamespace(i){return this.namespaces.get(i)}getNamespaces(){return this.namespaces}addClassesToNamespace(i,a,r){if(this.namespaces.has(i)){for(let n of a){let{className:o}=this.splitClassNameAndType(n),h=this.getClass(o);h.parent=i,this.namespaces.get(i).classes.set(o,h)}for(let n of r){let o=this.getNote(n);o.parent=i,this.namespaces.get(i).notes.set(n,o)}}}setCssStyle(i,a){let r=this.classes.get(i);if(!(!a||!r))for(let n of a)n.includes(",")?r.styles.push(...n.split(",")):r.styles.push(n)}getArrowMarker(i){let a;switch(i){case 0:a="aggregation";break;case 1:a="extension";break;case 2:a="composition";break;case 3:a="dependency";break;case 4:a="lollipop";break;default:a="none"}return a}resolveExplicitAncestor(i){let a=i;for(;a;){let r=this.namespaces.get(a);if(!r)return;if(r.explicit)return a;a=r.parent}}getData(){let i=[],a=[],r=F(),n=r.class?.hierarchicalNamespaces??!0;for(let u of this.namespaces.values()){if(!n&&!u.explicit)continue;let f={id:u.id,label:n?u.label:u.id,isGroup:!0,padding:r.class.padding??16,shape:"rect",cssStyles:[],look:r.look,parentId:n?u.parent:void 0};i.push(f)}let o=0;for(let u of this.classes.values()){let f=n?u.parent:this.resolveExplicitAncestor(u.parent),k={...u,type:void 0,isGroup:!1,parentId:f,look:r.look,colorIndex:o++};i.push(k)}for(let u of this.notes.values()){let f=n?u.parent:this.resolveExplicitAncestor(u.parent),k={id:u.id,label:u.text,isGroup:!1,shape:"note",padding:r.class.padding??6,cssStyles:["text-align: left","white-space: nowrap",`fill: ${r.themeVariables.noteBkgColor}`,`stroke: ${r.themeVariables.noteBorderColor}`],look:r.look,parentId:f,labelType:"markdown"};i.push(k);let _=this.classes.get(u.class)?.id;if(_){let U={id:`edgeNote${u.index}`,start:u.id,end:_,type:"normal",thickness:"normal",classes:"relation",arrowTypeStart:"none",arrowTypeEnd:"none",arrowheadStyle:"",labelStyle:[""],style:["fill: none"],pattern:"dotted",look:r.look};a.push(U)}}for(let u of this.interfaces){let f={id:u.id,label:u.label,isGroup:!1,shape:"rect",cssStyles:["opacity: 0;"],look:r.look};i.push(f)}let h=0;for(let u of this.relations){h++;let f={id:at(u.id1,u.id2,{prefix:"id",counter:h}),start:u.id1,end:u.id2,type:"normal",label:u.title,labelpos:"c",thickness:"normal",classes:"relation",arrowTypeStart:this.getArrowMarker(u.relation.type1),arrowTypeEnd:this.getArrowMarker(u.relation.type2),startLabelRight:u.relationTitle1==="none"?"":u.relationTitle1,endLabelLeft:u.relationTitle2==="none"?"":u.relationTitle2,arrowheadStyle:"",labelStyle:["display: inline-block"],style:u.style||"",pattern:u.relation.lineType==1?"dashed":"solid",look:r.look,labelType:"markdown"};a.push(f)}return{nodes:i,edges:a,other:{},config:r,direction:this.getDirection()}}},Ft=b(t=>{let{theme:i,bkgColorArray:a,borderColorArray:r}=t;if(!nt(i,r))return"";let n=lt(t.look),o=rt(a),h="";for(let u=0;u`${Ft(t)} + g.classGroup text { + fill: ${t.nodeBorder||t.classText}; + stroke: none; + font-family: ${t.fontFamily}; + font-size: 10px; + + .title { + font-weight: bolder; + } + +} + + .cluster-label text { + fill: ${t.titleColor}; + } + .cluster-label span { + color: ${t.titleColor}; + } + .cluster-label span p { + background-color: transparent; + } + + .cluster rect { + fill: ${t.clusterBkg}; + stroke: ${t.clusterBorder}; + stroke-width: 1px; + } + + .cluster text { + fill: ${t.titleColor}; + } + + .cluster span { + color: ${t.titleColor}; + } + +.nodeLabel, .edgeLabel { + color: ${t.classText}; +} + +.noteLabel .nodeLabel, .noteLabel .edgeLabel { + color: ${t.noteTextColor}; +} +.edgeLabel .label rect { + fill: ${t.mainBkg}; +} +.label text { + fill: ${t.classText}; +} + +.labelBkg { + background: ${t.mainBkg}; +} +.edgeLabel .label span { + background: ${t.mainBkg}; +} + +.classTitle { + font-weight: bolder; +} +.node rect, + .node circle, + .node ellipse, + .node polygon, + .node path { + fill: ${t.mainBkg}; + stroke: ${t.nodeBorder}; + stroke-width: ${t.strokeWidth}; + } + + +.divider { + stroke: ${t.nodeBorder}; + stroke-width: 1; +} + +g.clickable { + cursor: pointer; +} + +g.classGroup rect { + fill: ${t.mainBkg}; + stroke: ${t.nodeBorder}; +} + +g.classGroup line { + stroke: ${t.nodeBorder}; + stroke-width: 1; +} + +.classLabel .box { + stroke: none; + stroke-width: 0; + fill: ${t.mainBkg}; + opacity: 0.5; +} + +.classLabel .label { + fill: ${t.nodeBorder}; + font-size: 10px; +} + +.relation { + stroke: ${t.lineColor}; + stroke-width: ${t.strokeWidth}; + fill: none; +} + +.dashed-line{ + stroke-dasharray: 3; +} + +.dotted-line{ + stroke-dasharray: 1 2; +} + +[id$="-compositionStart"], .composition { + fill: ${t.lineColor} !important; + stroke: ${t.lineColor} !important; + stroke-width: 1; +} + +[id$="-compositionEnd"], .composition { + fill: ${t.lineColor} !important; + stroke: ${t.lineColor} !important; + stroke-width: 1; +} + +[id$="-dependencyStart"], .dependency { + fill: ${t.lineColor} !important; + stroke: ${t.lineColor} !important; + stroke-width: 1; +} + +[id$="-dependencyEnd"], .dependency { + fill: ${t.lineColor} !important; + stroke: ${t.lineColor} !important; + stroke-width: 1; +} + +[id$="-extensionStart"], .extension { + fill: transparent !important; + stroke: ${t.lineColor} !important; + stroke-width: 1; +} + +[id$="-extensionEnd"], .extension { + fill: transparent !important; + stroke: ${t.lineColor} !important; + stroke-width: 1; +} + +[id$="-aggregationStart"], .aggregation { + fill: transparent !important; + stroke: ${t.lineColor} !important; + stroke-width: 1; +} + +[id$="-aggregationEnd"], .aggregation { + fill: transparent !important; + stroke: ${t.lineColor} !important; + stroke-width: 1; +} + +[id$="-lollipopStart"], .lollipop { + fill: ${t.mainBkg} !important; + stroke: ${t.lineColor} !important; + stroke-width: 1; +} + +[id$="-lollipopEnd"], .lollipop { + fill: ${t.mainBkg} !important; + stroke: ${t.lineColor} !important; + stroke-width: 1; +} + +.edgeTerminals { + font-size: 11px; + line-height: initial; +} + +.classTitleText { + text-anchor: middle; + font-size: 18px; + fill: ${t.textColor}; +} + +.edgeLabel[data-look="neo"] { + background-color: ${t.edgeLabelBackground}; + p { + background-color: ${t.edgeLabelBackground}; + } + rect { + opacity: 0.5; + background-color: ${t.edgeLabelBackground}; + fill: ${t.edgeLabelBackground}; + } + text-align: center; +} + ${dt()} +`,"getStyles"),_t=Bt,St=b((t,i="TB")=>{if(!t.doc)return i;let a=i;for(let r of t.doc)r.stmt==="dir"&&(a=r.value);return a},"getDir"),Nt=b(function(t,i){return i.db.getClasses()},"getClasses"),Lt=b(async function(t,i,a,r){Ae.info("REF0:"),Ae.info("Drawing class diagram (v3)",i);let{securityLevel:n,state:o,layout:h}=F();r.db.setDiagramId(i);let u=r.db.getData(),f=pt(i,n);u.type=r.type,u.layoutAlgorithm=ct(h),u.nodeSpacing=o?.nodeSpacing||50,u.rankSpacing=o?.rankSpacing||50,u.markers=["aggregation","extension","composition","dependency","lollipop"],u.diagramId=i,await ot(u,f);let k=8;be.insertTitle(f,"classDiagramTitleText",o?.titleTopMargin??25,r.db.getDiagramTitle()),At(f,k,"classDiagram",o?.useMaxWidth??!0)},"draw"),xt={getClasses:Nt,draw:Lt,getDir:St},$t={parser:yt,get db(){return new Dt},renderer:xt,styles:_t,init:b(t=>{t.class||(t.class={}),t.class.arrowMarkerAbsolute=t.arrowMarkerAbsolute},"init")};export{$t as diagram}; diff --git a/src/frontend/web/von_interface/static/vendor/conversation-visuals/cose-bilkent-JH36ORCC-BPB5GO4M.js b/src/frontend/web/von_interface/static/vendor/conversation-visuals/cose-bilkent-JH36ORCC-BPB5GO4M.js new file mode 100644 index 000000000..b22e304c9 --- /dev/null +++ b/src/frontend/web/von_interface/static/vendor/conversation-visuals/cose-bilkent-JH36ORCC-BPB5GO4M.js @@ -0,0 +1 @@ +import{a as j}from"./chunk-GKZGWO36.js";import{b as V,h as it}from"./chunk-XEQL7KGA.js";import{a as W}from"./chunk-YUSHYV7C.js";import{b as $,c as pt}from"./chunk-3RNHDNP5.js";var q=$((k,K)=>{(function(C,v){typeof k=="object"&&typeof K=="object"?K.exports=v():typeof define=="function"&&define.amd?define([],v):typeof k=="object"?k.layoutBase=v():C.layoutBase=v()})(k,function(){return(function(N){var C={};function v(n){if(C[n])return C[n].exports;var e=C[n]={i:n,l:!1,exports:{}};return N[n].call(e.exports,e,e.exports,v),e.l=!0,e.exports}return v.m=N,v.c=C,v.i=function(n){return n},v.d=function(n,e,t){v.o(n,e)||Object.defineProperty(n,e,{configurable:!1,enumerable:!0,get:t})},v.n=function(n){var e=n&&n.__esModule?function(){return n.default}:function(){return n};return v.d(e,"a",e),e},v.o=function(n,e){return Object.prototype.hasOwnProperty.call(n,e)},v.p="",v(v.s=26)})([(function(N,C,v){"use strict";function n(){}n.QUALITY=1,n.DEFAULT_CREATE_BENDS_AS_NEEDED=!1,n.DEFAULT_INCREMENTAL=!1,n.DEFAULT_ANIMATION_ON_LAYOUT=!0,n.DEFAULT_ANIMATION_DURING_LAYOUT=!1,n.DEFAULT_ANIMATION_PERIOD=50,n.DEFAULT_UNIFORM_LEAF_NODE_SIZES=!1,n.DEFAULT_GRAPH_MARGIN=15,n.NODE_DIMENSIONS_INCLUDE_LABELS=!1,n.SIMPLE_NODE_SIZE=40,n.SIMPLE_NODE_HALF_SIZE=n.SIMPLE_NODE_SIZE/2,n.EMPTY_COMPOUND_NODE_SIZE=40,n.MIN_EDGE_LENGTH=1,n.WORLD_BOUNDARY=1e6,n.INITIAL_WORLD_BOUNDARY=n.WORLD_BOUNDARY/1e3,n.WORLD_CENTER_X=1200,n.WORLD_CENTER_Y=900,N.exports=n}),(function(N,C,v){"use strict";var n=v(2),e=v(8),t=v(9);function r(u,s,p){n.call(this,p),this.isOverlapingSourceAndTarget=!1,this.vGraphObject=p,this.bendpoints=[],this.source=u,this.target=s}r.prototype=Object.create(n.prototype);for(var a in n)r[a]=n[a];r.prototype.getSource=function(){return this.source},r.prototype.getTarget=function(){return this.target},r.prototype.isInterGraph=function(){return this.isInterGraph},r.prototype.getLength=function(){return this.length},r.prototype.isOverlapingSourceAndTarget=function(){return this.isOverlapingSourceAndTarget},r.prototype.getBendpoints=function(){return this.bendpoints},r.prototype.getLca=function(){return this.lca},r.prototype.getSourceInLca=function(){return this.sourceInLca},r.prototype.getTargetInLca=function(){return this.targetInLca},r.prototype.getOtherEnd=function(u){if(this.source===u)return this.target;if(this.target===u)return this.source;throw"Node is not incident with this edge"},r.prototype.getOtherEndInGraph=function(u,s){for(var p=this.getOtherEnd(u),i=s.getGraphManager().getRoot();;){if(p.getOwner()==s)return p;if(p.getOwner()==i)break;p=p.getOwner().getParent()}return null},r.prototype.updateLength=function(){var u=new Array(4);this.isOverlapingSourceAndTarget=e.getIntersection(this.target.getRect(),this.source.getRect(),u),this.isOverlapingSourceAndTarget||(this.lengthX=u[0]-u[2],this.lengthY=u[1]-u[3],Math.abs(this.lengthX)<1&&(this.lengthX=t.sign(this.lengthX)),Math.abs(this.lengthY)<1&&(this.lengthY=t.sign(this.lengthY)),this.length=Math.sqrt(this.lengthX*this.lengthX+this.lengthY*this.lengthY))},r.prototype.updateLengthSimple=function(){this.lengthX=this.target.getCenterX()-this.source.getCenterX(),this.lengthY=this.target.getCenterY()-this.source.getCenterY(),Math.abs(this.lengthX)<1&&(this.lengthX=t.sign(this.lengthX)),Math.abs(this.lengthY)<1&&(this.lengthY=t.sign(this.lengthY)),this.length=Math.sqrt(this.lengthX*this.lengthX+this.lengthY*this.lengthY)},N.exports=r}),(function(N,C,v){"use strict";function n(e){this.vGraphObject=e}N.exports=n}),(function(N,C,v){"use strict";var n=v(2),e=v(10),t=v(13),r=v(0),a=v(16),u=v(4);function s(i,h,l,d){l==null&&d==null&&(d=h),n.call(this,d),i.graphManager!=null&&(i=i.graphManager),this.estimatedSize=e.MIN_VALUE,this.inclusionTreeDepth=e.MAX_VALUE,this.vGraphObject=d,this.edges=[],this.graphManager=i,l!=null&&h!=null?this.rect=new t(h.x,h.y,l.width,l.height):this.rect=new t}s.prototype=Object.create(n.prototype);for(var p in n)s[p]=n[p];s.prototype.getEdges=function(){return this.edges},s.prototype.getChild=function(){return this.child},s.prototype.getOwner=function(){return this.owner},s.prototype.getWidth=function(){return this.rect.width},s.prototype.setWidth=function(i){this.rect.width=i},s.prototype.getHeight=function(){return this.rect.height},s.prototype.setHeight=function(i){this.rect.height=i},s.prototype.getCenterX=function(){return this.rect.x+this.rect.width/2},s.prototype.getCenterY=function(){return this.rect.y+this.rect.height/2},s.prototype.getCenter=function(){return new u(this.rect.x+this.rect.width/2,this.rect.y+this.rect.height/2)},s.prototype.getLocation=function(){return new u(this.rect.x,this.rect.y)},s.prototype.getRect=function(){return this.rect},s.prototype.getDiagonal=function(){return Math.sqrt(this.rect.width*this.rect.width+this.rect.height*this.rect.height)},s.prototype.getHalfTheDiagonal=function(){return Math.sqrt(this.rect.height*this.rect.height+this.rect.width*this.rect.width)/2},s.prototype.setRect=function(i,h){this.rect.x=i.x,this.rect.y=i.y,this.rect.width=h.width,this.rect.height=h.height},s.prototype.setCenter=function(i,h){this.rect.x=i-this.rect.width/2,this.rect.y=h-this.rect.height/2},s.prototype.setLocation=function(i,h){this.rect.x=i,this.rect.y=h},s.prototype.moveBy=function(i,h){this.rect.x+=i,this.rect.y+=h},s.prototype.getEdgeListToNode=function(i){var h=[],l,d=this;return d.edges.forEach(function(y){if(y.target==i){if(y.source!=d)throw"Incorrect edge source!";h.push(y)}}),h},s.prototype.getEdgesBetween=function(i){var h=[],l,d=this;return d.edges.forEach(function(y){if(!(y.source==d||y.target==d))throw"Incorrect edge source and/or target";(y.target==i||y.source==i)&&h.push(y)}),h},s.prototype.getNeighborsList=function(){var i=new Set,h=this;return h.edges.forEach(function(l){if(l.source==h)i.add(l.target);else{if(l.target!=h)throw"Incorrect incidency!";i.add(l.source)}}),i},s.prototype.withChildren=function(){var i=new Set,h,l;if(i.add(this),this.child!=null)for(var d=this.child.getNodes(),y=0;yh&&(this.rect.x-=(this.labelWidth-h)/2,this.setWidth(this.labelWidth)),this.labelHeight>l&&(this.labelPos=="center"?this.rect.y-=(this.labelHeight-l)/2:this.labelPos=="top"&&(this.rect.y-=this.labelHeight-l),this.setHeight(this.labelHeight))}}},s.prototype.getInclusionTreeDepth=function(){if(this.inclusionTreeDepth==e.MAX_VALUE)throw"assert failed";return this.inclusionTreeDepth},s.prototype.transform=function(i){var h=this.rect.x;h>r.WORLD_BOUNDARY?h=r.WORLD_BOUNDARY:h<-r.WORLD_BOUNDARY&&(h=-r.WORLD_BOUNDARY);var l=this.rect.y;l>r.WORLD_BOUNDARY?l=r.WORLD_BOUNDARY:l<-r.WORLD_BOUNDARY&&(l=-r.WORLD_BOUNDARY);var d=new u(h,l),y=i.inverseTransformPoint(d);this.setLocation(y.x,y.y)},s.prototype.getLeft=function(){return this.rect.x},s.prototype.getRight=function(){return this.rect.x+this.rect.width},s.prototype.getTop=function(){return this.rect.y},s.prototype.getBottom=function(){return this.rect.y+this.rect.height},s.prototype.getParent=function(){return this.owner==null?null:this.owner.getParent()},N.exports=s}),(function(N,C,v){"use strict";function n(e,t){e==null&&t==null?(this.x=0,this.y=0):(this.x=e,this.y=t)}n.prototype.getX=function(){return this.x},n.prototype.getY=function(){return this.y},n.prototype.setX=function(e){this.x=e},n.prototype.setY=function(e){this.y=e},n.prototype.getDifference=function(e){return new DimensionD(this.x-e.x,this.y-e.y)},n.prototype.getCopy=function(){return new n(this.x,this.y)},n.prototype.translate=function(e){return this.x+=e.width,this.y+=e.height,this},N.exports=n}),(function(N,C,v){"use strict";var n=v(2),e=v(10),t=v(0),r=v(6),a=v(3),u=v(1),s=v(13),p=v(12),i=v(11);function h(d,y,T){n.call(this,T),this.estimatedSize=e.MIN_VALUE,this.margin=t.DEFAULT_GRAPH_MARGIN,this.edges=[],this.nodes=[],this.isConnected=!1,this.parent=d,y!=null&&y instanceof r?this.graphManager=y:y!=null&&y instanceof Layout&&(this.graphManager=y.graphManager)}h.prototype=Object.create(n.prototype);for(var l in n)h[l]=n[l];h.prototype.getNodes=function(){return this.nodes},h.prototype.getEdges=function(){return this.edges},h.prototype.getGraphManager=function(){return this.graphManager},h.prototype.getParent=function(){return this.parent},h.prototype.getLeft=function(){return this.left},h.prototype.getRight=function(){return this.right},h.prototype.getTop=function(){return this.top},h.prototype.getBottom=function(){return this.bottom},h.prototype.isConnected=function(){return this.isConnected},h.prototype.add=function(d,y,T){if(y==null&&T==null){var c=d;if(this.graphManager==null)throw"Graph has no graph mgr!";if(this.getNodes().indexOf(c)>-1)throw"Node already in graph!";return c.owner=this,this.getNodes().push(c),c}else{var D=d;if(!(this.getNodes().indexOf(y)>-1&&this.getNodes().indexOf(T)>-1))throw"Source or target not in graph!";if(!(y.owner==T.owner&&y.owner==this))throw"Both owners must be this graph!";return y.owner!=T.owner?null:(D.source=y,D.target=T,D.isInterGraph=!1,this.getEdges().push(D),y.edges.push(D),T!=y&&T.edges.push(D),D)}},h.prototype.remove=function(d){var y=d;if(d instanceof a){if(y==null)throw"Node is null!";if(!(y.owner!=null&&y.owner==this))throw"Owner graph is invalid!";if(this.graphManager==null)throw"Owner graph manager is invalid!";for(var T=y.edges.slice(),c,D=T.length,E=0;E-1&&g>-1))throw"Source and/or target doesn't know this edge!";c.source.edges.splice(o,1),c.target!=c.source&&c.target.edges.splice(g,1);var O=c.source.owner.getEdges().indexOf(c);if(O==-1)throw"Not in owner's edge list!";c.source.owner.getEdges().splice(O,1)}},h.prototype.updateLeftTop=function(){for(var d=e.MAX_VALUE,y=e.MAX_VALUE,T,c,D,E=this.getNodes(),O=E.length,o=0;oT&&(d=T),y>c&&(y=c)}return d==e.MAX_VALUE?null:(E[0].getParent().paddingLeft!=null?D=E[0].getParent().paddingLeft:D=this.margin,this.left=y-D,this.top=d-D,new p(this.left,this.top))},h.prototype.updateBounds=function(d){for(var y=e.MAX_VALUE,T=-e.MAX_VALUE,c=e.MAX_VALUE,D=-e.MAX_VALUE,E,O,o,g,f,L=this.nodes,A=L.length,I=0;IE&&(y=E),To&&(c=o),DE&&(y=E),To&&(c=o),D=this.nodes.length){var A=0;T.forEach(function(I){I.owner==d&&A++}),A==this.nodes.length&&(this.isConnected=!0)}},N.exports=h}),(function(N,C,v){"use strict";var n,e=v(1);function t(r){n=v(5),this.layout=r,this.graphs=[],this.edges=[]}t.prototype.addRoot=function(){var r=this.layout.newGraph(),a=this.layout.newNode(null),u=this.add(r,a);return this.setRootGraph(u),this.rootGraph},t.prototype.add=function(r,a,u,s,p){if(u==null&&s==null&&p==null){if(r==null)throw"Graph is null!";if(a==null)throw"Parent node is null!";if(this.graphs.indexOf(r)>-1)throw"Graph already in this graph mgr!";if(this.graphs.push(r),r.parent!=null)throw"Already has a parent!";if(a.child!=null)throw"Already has a child!";return r.parent=a,a.child=r,r}else{p=u,s=a,u=r;var i=s.getOwner(),h=p.getOwner();if(!(i!=null&&i.getGraphManager()==this))throw"Source not in this graph mgr!";if(!(h!=null&&h.getGraphManager()==this))throw"Target not in this graph mgr!";if(i==h)return u.isInterGraph=!1,i.add(u,s,p);if(u.isInterGraph=!0,u.source=s,u.target=p,this.edges.indexOf(u)>-1)throw"Edge already in inter-graph edge list!";if(this.edges.push(u),!(u.source!=null&&u.target!=null))throw"Edge source and/or target is null!";if(!(u.source.edges.indexOf(u)==-1&&u.target.edges.indexOf(u)==-1))throw"Edge already in source and/or target incidency list!";return u.source.edges.push(u),u.target.edges.push(u),u}},t.prototype.remove=function(r){if(r instanceof n){var a=r;if(a.getGraphManager()!=this)throw"Graph not in this graph mgr";if(!(a==this.rootGraph||a.parent!=null&&a.parent.graphManager==this))throw"Invalid parent node!";var u=[];u=u.concat(a.getEdges());for(var s,p=u.length,i=0;i=r.getRight()?a[0]+=Math.min(r.getX()-t.getX(),t.getRight()-r.getRight()):r.getX()<=t.getX()&&r.getRight()>=t.getRight()&&(a[0]+=Math.min(t.getX()-r.getX(),r.getRight()-t.getRight())),t.getY()<=r.getY()&&t.getBottom()>=r.getBottom()?a[1]+=Math.min(r.getY()-t.getY(),t.getBottom()-r.getBottom()):r.getY()<=t.getY()&&r.getBottom()>=t.getBottom()&&(a[1]+=Math.min(t.getY()-r.getY(),r.getBottom()-t.getBottom()));var p=Math.abs((r.getCenterY()-t.getCenterY())/(r.getCenterX()-t.getCenterX()));r.getCenterY()===t.getCenterY()&&r.getCenterX()===t.getCenterX()&&(p=1);var i=p*a[0],h=a[1]/p;a[0]i)return a[0]=u,a[1]=l,a[2]=p,a[3]=L,!1;if(sp)return a[0]=h,a[1]=s,a[2]=g,a[3]=i,!1;if(up?(a[0]=y,a[1]=T,R=!0):(a[0]=d,a[1]=l,R=!0):F===x&&(u>p?(a[0]=h,a[1]=l,R=!0):(a[0]=c,a[1]=T,R=!0)),-Y===x?p>u?(a[2]=f,a[3]=L,w=!0):(a[2]=g,a[3]=o,w=!0):Y===x&&(p>u?(a[2]=O,a[3]=o,w=!0):(a[2]=A,a[3]=L,w=!0)),R&&w)return!1;if(u>p?s>i?(M=this.getCardinalDirection(F,x,4),G=this.getCardinalDirection(Y,x,2)):(M=this.getCardinalDirection(-F,x,3),G=this.getCardinalDirection(-Y,x,1)):s>i?(M=this.getCardinalDirection(-F,x,1),G=this.getCardinalDirection(-Y,x,3)):(M=this.getCardinalDirection(F,x,2),G=this.getCardinalDirection(Y,x,4)),!R)switch(M){case 1:P=l,S=u+-E/x,a[0]=S,a[1]=P;break;case 2:S=c,P=s+D*x,a[0]=S,a[1]=P;break;case 3:P=T,S=u+E/x,a[0]=S,a[1]=P;break;case 4:S=y,P=s+-D*x,a[0]=S,a[1]=P;break}if(!w)switch(G){case 1:U=o,_=p+-m/x,a[2]=_,a[3]=U;break;case 2:_=A,U=i+I*x,a[2]=_,a[3]=U;break;case 3:U=L,_=p+m/x,a[2]=_,a[3]=U;break;case 4:_=f,U=i+-I*x,a[2]=_,a[3]=U;break}}return!1},e.getCardinalDirection=function(t,r,a){return t>r?a:1+a%4},e.getIntersection=function(t,r,a,u){if(u==null)return this.getIntersection2(t,r,a);var s=t.x,p=t.y,i=r.x,h=r.y,l=a.x,d=a.y,y=u.x,T=u.y,c=void 0,D=void 0,E=void 0,O=void 0,o=void 0,g=void 0,f=void 0,L=void 0,A=void 0;return E=h-p,o=s-i,f=i*p-s*h,O=T-d,g=l-y,L=y*d-l*T,A=E*g-O*o,A===0?null:(c=(o*L-g*f)/A,D=(O*f-E*L)/A,new n(c,D))},e.angleOfVector=function(t,r,a,u){var s=void 0;return t!==a?(s=Math.atan((u-r)/(a-t)),a0?1:e<0?-1:0},n.floor=function(e){return e<0?Math.ceil(e):Math.floor(e)},n.ceil=function(e){return e<0?Math.floor(e):Math.ceil(e)},N.exports=n}),(function(N,C,v){"use strict";function n(){}n.MAX_VALUE=2147483647,n.MIN_VALUE=-2147483648,N.exports=n}),(function(N,C,v){"use strict";var n=(function(){function s(p,i){for(var h=0;h"u"?"undefined":n(t);return t==null||r!="object"&&r!="function"},N.exports=e}),(function(N,C,v){"use strict";function n(l){if(Array.isArray(l)){for(var d=0,y=Array(l.length);d0&&d;){for(E.push(o[0]);E.length>0&&d;){var g=E[0];E.splice(0,1),D.add(g);for(var f=g.getEdges(),c=0;c-1&&o.splice(m,1)}D=new Set,O=new Map}}return l},h.prototype.createDummyNodesForBendpoints=function(l){for(var d=[],y=l.source,T=this.graphManager.calcLowestCommonAncestor(l.source,l.target),c=0;c0){for(var T=this.edgeToDummyNodes.get(y),c=0;c=0&&d.splice(L,1);var A=O.getNeighborsList();A.forEach(function(R){if(y.indexOf(R)<0){var w=T.get(R),F=w-1;F==1&&g.push(R),T.set(R,F)}})}y=y.concat(g),(d.length==1||d.length==2)&&(c=!0,D=d[0])}return D},h.prototype.setGraphManager=function(l){this.graphManager=l},N.exports=h}),(function(N,C,v){"use strict";function n(){}n.seed=1,n.x=0,n.nextDouble=function(){return n.x=Math.sin(n.seed++)*1e4,n.x-Math.floor(n.x)},N.exports=n}),(function(N,C,v){"use strict";var n=v(4);function e(t,r){this.lworldOrgX=0,this.lworldOrgY=0,this.ldeviceOrgX=0,this.ldeviceOrgY=0,this.lworldExtX=1,this.lworldExtY=1,this.ldeviceExtX=1,this.ldeviceExtY=1}e.prototype.getWorldOrgX=function(){return this.lworldOrgX},e.prototype.setWorldOrgX=function(t){this.lworldOrgX=t},e.prototype.getWorldOrgY=function(){return this.lworldOrgY},e.prototype.setWorldOrgY=function(t){this.lworldOrgY=t},e.prototype.getWorldExtX=function(){return this.lworldExtX},e.prototype.setWorldExtX=function(t){this.lworldExtX=t},e.prototype.getWorldExtY=function(){return this.lworldExtY},e.prototype.setWorldExtY=function(t){this.lworldExtY=t},e.prototype.getDeviceOrgX=function(){return this.ldeviceOrgX},e.prototype.setDeviceOrgX=function(t){this.ldeviceOrgX=t},e.prototype.getDeviceOrgY=function(){return this.ldeviceOrgY},e.prototype.setDeviceOrgY=function(t){this.ldeviceOrgY=t},e.prototype.getDeviceExtX=function(){return this.ldeviceExtX},e.prototype.setDeviceExtX=function(t){this.ldeviceExtX=t},e.prototype.getDeviceExtY=function(){return this.ldeviceExtY},e.prototype.setDeviceExtY=function(t){this.ldeviceExtY=t},e.prototype.transformX=function(t){var r=0,a=this.lworldExtX;return a!=0&&(r=this.ldeviceOrgX+(t-this.lworldOrgX)*this.ldeviceExtX/a),r},e.prototype.transformY=function(t){var r=0,a=this.lworldExtY;return a!=0&&(r=this.ldeviceOrgY+(t-this.lworldOrgY)*this.ldeviceExtY/a),r},e.prototype.inverseTransformX=function(t){var r=0,a=this.ldeviceExtX;return a!=0&&(r=this.lworldOrgX+(t-this.ldeviceOrgX)*this.lworldExtX/a),r},e.prototype.inverseTransformY=function(t){var r=0,a=this.ldeviceExtY;return a!=0&&(r=this.lworldOrgY+(t-this.ldeviceOrgY)*this.lworldExtY/a),r},e.prototype.inverseTransformPoint=function(t){var r=new n(this.inverseTransformX(t.x),this.inverseTransformY(t.y));return r},N.exports=e}),(function(N,C,v){"use strict";function n(i){if(Array.isArray(i)){for(var h=0,l=Array(i.length);ht.ADAPTATION_LOWER_NODE_LIMIT&&(this.coolingFactor=Math.max(this.coolingFactor*t.COOLING_ADAPTATION_FACTOR,this.coolingFactor-(i-t.ADAPTATION_LOWER_NODE_LIMIT)/(t.ADAPTATION_UPPER_NODE_LIMIT-t.ADAPTATION_LOWER_NODE_LIMIT)*this.coolingFactor*(1-t.COOLING_ADAPTATION_FACTOR))),this.maxNodeDisplacement=t.MAX_NODE_DISPLACEMENT_INCREMENTAL):(i>t.ADAPTATION_LOWER_NODE_LIMIT?this.coolingFactor=Math.max(t.COOLING_ADAPTATION_FACTOR,1-(i-t.ADAPTATION_LOWER_NODE_LIMIT)/(t.ADAPTATION_UPPER_NODE_LIMIT-t.ADAPTATION_LOWER_NODE_LIMIT)*(1-t.COOLING_ADAPTATION_FACTOR)):this.coolingFactor=1,this.initialCoolingFactor=this.coolingFactor,this.maxNodeDisplacement=t.MAX_NODE_DISPLACEMENT),this.maxIterations=Math.max(this.getAllNodes().length*5,this.maxIterations),this.totalDisplacementThreshold=this.displacementThresholdPerNode*this.getAllNodes().length,this.repulsionRange=this.calcRepulsionRange()},s.prototype.calcSpringForces=function(){for(var i=this.getAllEdges(),h,l=0;l0&&arguments[0]!==void 0?arguments[0]:!0,h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,l,d,y,T,c=this.getAllNodes(),D;if(this.useFRGridVariant)for(this.totalIterations%t.GRID_CALCULATION_CHECK_PERIOD==1&&i&&this.updateGrid(),D=new Set,l=0;lE||D>E)&&(i.gravitationForceX=-this.gravityConstant*y,i.gravitationForceY=-this.gravityConstant*T)):(E=h.getEstimatedSize()*this.compoundGravityRangeFactor,(c>E||D>E)&&(i.gravitationForceX=-this.gravityConstant*y*this.compoundGravityConstant,i.gravitationForceY=-this.gravityConstant*T*this.compoundGravityConstant))},s.prototype.isConverged=function(){var i,h=!1;return this.totalIterations>this.maxIterations/3&&(h=Math.abs(this.totalDisplacement-this.oldTotalDisplacement)<2),i=this.totalDisplacement=c.length||E>=c[0].length)){for(var O=0;Os}}]),a})();N.exports=r}),(function(N,C,v){"use strict";var n=(function(){function r(a,u){for(var s=0;s2&&arguments[2]!==void 0?arguments[2]:1,p=arguments.length>3&&arguments[3]!==void 0?arguments[3]:-1,i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:-1;e(this,r),this.sequence1=a,this.sequence2=u,this.match_score=s,this.mismatch_penalty=p,this.gap_penalty=i,this.iMax=a.length+1,this.jMax=u.length+1,this.grid=new Array(this.iMax);for(var h=0;h=0;a--){var u=this.listeners[a];u.event===t&&u.callback===r&&this.listeners.splice(a,1)}},e.emit=function(t,r){for(var a=0;a{(function(C,v){typeof Z=="object"&&typeof z=="object"?z.exports=v(q()):typeof define=="function"&&define.amd?define(["layout-base"],v):typeof Z=="object"?Z.coseBase=v(q()):C.coseBase=v(C.layoutBase)})(Z,function(N){return(function(C){var v={};function n(e){if(v[e])return v[e].exports;var t=v[e]={i:e,l:!1,exports:{}};return C[e].call(t.exports,t,t.exports,n),t.l=!0,t.exports}return n.m=C,n.c=v,n.i=function(e){return e},n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:r})},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=7)})([(function(C,v){C.exports=N}),(function(C,v,n){"use strict";var e=n(0).FDLayoutConstants;function t(){}for(var r in e)t[r]=e[r];t.DEFAULT_USE_MULTI_LEVEL_SCALING=!1,t.DEFAULT_RADIAL_SEPARATION=e.DEFAULT_EDGE_LENGTH,t.DEFAULT_COMPONENT_SEPERATION=60,t.TILE=!0,t.TILING_PADDING_VERTICAL=10,t.TILING_PADDING_HORIZONTAL=10,t.TREE_REDUCTION_ON_INCREMENTAL=!1,C.exports=t}),(function(C,v,n){"use strict";var e=n(0).FDLayoutEdge;function t(a,u,s){e.call(this,a,u,s)}t.prototype=Object.create(e.prototype);for(var r in e)t[r]=e[r];C.exports=t}),(function(C,v,n){"use strict";var e=n(0).LGraph;function t(a,u,s){e.call(this,a,u,s)}t.prototype=Object.create(e.prototype);for(var r in e)t[r]=e[r];C.exports=t}),(function(C,v,n){"use strict";var e=n(0).LGraphManager;function t(a){e.call(this,a)}t.prototype=Object.create(e.prototype);for(var r in e)t[r]=e[r];C.exports=t}),(function(C,v,n){"use strict";var e=n(0).FDLayoutNode,t=n(0).IMath;function r(u,s,p,i){e.call(this,u,s,p,i)}r.prototype=Object.create(e.prototype);for(var a in e)r[a]=e[a];r.prototype.move=function(){var u=this.graphManager.getLayout();this.displacementX=u.coolingFactor*(this.springForceX+this.repulsionForceX+this.gravitationForceX)/this.noOfChildren,this.displacementY=u.coolingFactor*(this.springForceY+this.repulsionForceY+this.gravitationForceY)/this.noOfChildren,Math.abs(this.displacementX)>u.coolingFactor*u.maxNodeDisplacement&&(this.displacementX=u.coolingFactor*u.maxNodeDisplacement*t.sign(this.displacementX)),Math.abs(this.displacementY)>u.coolingFactor*u.maxNodeDisplacement&&(this.displacementY=u.coolingFactor*u.maxNodeDisplacement*t.sign(this.displacementY)),this.child==null?this.moveBy(this.displacementX,this.displacementY):this.child.getNodes().length==0?this.moveBy(this.displacementX,this.displacementY):this.propogateDisplacementToChildren(this.displacementX,this.displacementY),u.totalDisplacement+=Math.abs(this.displacementX)+Math.abs(this.displacementY),this.springForceX=0,this.springForceY=0,this.repulsionForceX=0,this.repulsionForceY=0,this.gravitationForceX=0,this.gravitationForceY=0,this.displacementX=0,this.displacementY=0},r.prototype.propogateDisplacementToChildren=function(u,s){for(var p=this.getChild().getNodes(),i,h=0;h0)this.positionNodesRadially(o);else{this.reduceTrees(),this.graphManager.resetAllNodesToApplyGravitation();var g=new Set(this.getAllNodes()),f=this.nodesWithGravity.filter(function(L){return g.has(L)});this.graphManager.setAllNodesToApplyGravitation(f),this.positionNodesRandomly()}}return this.initSpringEmbedder(),this.runSpringEmbedder(),!0},E.prototype.tick=function(){if(this.totalIterations++,this.totalIterations===this.maxIterations&&!this.isTreeGrowing&&!this.isGrowthFinished)if(this.prunedNodesAll.length>0)this.isTreeGrowing=!0;else return!0;if(this.totalIterations%p.CONVERGENCE_CHECK_PERIOD==0&&!this.isTreeGrowing&&!this.isGrowthFinished){if(this.isConverged())if(this.prunedNodesAll.length>0)this.isTreeGrowing=!0;else return!0;this.coolingCycle++,this.layoutQuality==0?this.coolingAdjuster=this.coolingCycle:this.layoutQuality==1&&(this.coolingAdjuster=this.coolingCycle/3),this.coolingFactor=Math.max(this.initialCoolingFactor-Math.pow(this.coolingCycle,Math.log(100*(this.initialCoolingFactor-this.finalTemperature))/Math.log(this.maxCoolingCycle))/100*this.coolingAdjuster,this.finalTemperature),this.animationPeriod=Math.ceil(this.initialAnimationPeriod*Math.sqrt(this.coolingFactor))}if(this.isTreeGrowing){if(this.growTreeIterations%10==0)if(this.prunedNodesAll.length>0){this.graphManager.updateBounds(),this.updateGrid(),this.growTree(this.prunedNodesAll),this.graphManager.resetAllNodesToApplyGravitation();var o=new Set(this.getAllNodes()),g=this.nodesWithGravity.filter(function(A){return o.has(A)});this.graphManager.setAllNodesToApplyGravitation(g),this.graphManager.updateBounds(),this.updateGrid(),this.coolingFactor=p.DEFAULT_COOLING_FACTOR_INCREMENTAL}else this.isTreeGrowing=!1,this.isGrowthFinished=!0;this.growTreeIterations++}if(this.isGrowthFinished){if(this.isConverged())return!0;this.afterGrowthIterations%10==0&&(this.graphManager.updateBounds(),this.updateGrid()),this.coolingFactor=p.DEFAULT_COOLING_FACTOR_INCREMENTAL*((100-this.afterGrowthIterations)/100),this.afterGrowthIterations++}var f=!this.isTreeGrowing&&!this.isGrowthFinished,L=this.growTreeIterations%10==1&&this.isTreeGrowing||this.afterGrowthIterations%10==1&&this.isGrowthFinished;return this.totalDisplacement=0,this.graphManager.updateBounds(),this.calcSpringForces(),this.calcRepulsionForces(f,L),this.calcGravitationalForces(),this.moveNodes(),this.animate(),!1},E.prototype.getPositionsData=function(){for(var o=this.graphManager.getAllNodes(),g={},f=0;f1){var R;for(R=0;RL&&(L=Math.floor(m.y)),I=Math.floor(m.x+s.DEFAULT_COMPONENT_SEPERATION)}this.transform(new l(i.WORLD_CENTER_X-m.x/2,i.WORLD_CENTER_Y-m.y/2))},E.radialLayout=function(o,g,f){var L=Math.max(this.maxDiagonalInTree(o),s.DEFAULT_RADIAL_SEPARATION);E.branchRadialLayout(g,null,0,359,0,L);var A=c.calculateBounds(o),I=new D;I.setDeviceOrgX(A.getMinX()),I.setDeviceOrgY(A.getMinY()),I.setWorldOrgX(f.x),I.setWorldOrgY(f.y);for(var m=0;m1;){var X=U[0];U.splice(0,1);var B=M.indexOf(X);B>=0&&M.splice(B,1),P--,G--}g!=null?_=(M.indexOf(U[0])+1)%P:_=0;for(var b=Math.abs(L-f)/G,H=_;S!=G;H=++H%P){var et=M[H].getOtherEnd(o);if(et!=g){var rt=(f+S*b)%360,ct=(rt+b)%360;E.branchRadialLayout(et,o,rt,ct,A+I,I),S++}}},E.maxDiagonalInTree=function(o){for(var g=y.MIN_VALUE,f=0;fg&&(g=A)}return g},E.prototype.calcRepulsionRange=function(){return 2*(this.level+1)*this.idealEdgeLength},E.prototype.groupZeroDegreeMembers=function(){var o=this,g={};this.memberGroups={},this.idToDummyNode={};for(var f=[],L=this.graphManager.getAllNodes(),A=0;A"u"&&(g[R]=[]),g[R]=g[R].concat(I)}Object.keys(g).forEach(function(w){if(g[w].length>1){var F="DummyCompound_"+w;o.memberGroups[F]=g[w];var Y=g[w][0].getParent(),x=new a(o.graphManager);x.id=F,x.paddingLeft=Y.paddingLeft||0,x.paddingRight=Y.paddingRight||0,x.paddingBottom=Y.paddingBottom||0,x.paddingTop=Y.paddingTop||0,o.idToDummyNode[F]=x;var M=o.getGraphManager().add(o.newGraph(),x),G=Y.getChild();G.add(x);for(var S=0;S=0;o--){var g=this.compoundOrder[o],f=g.id,L=g.paddingLeft,A=g.paddingTop;this.adjustLocations(this.tiledMemberPack[f],g.rect.x,g.rect.y,L,A)}},E.prototype.repopulateZeroDegreeMembers=function(){var o=this,g=this.tiledZeroDegreePack;Object.keys(g).forEach(function(f){var L=o.idToDummyNode[f],A=L.paddingLeft,I=L.paddingTop;o.adjustLocations(g[f],L.rect.x,L.rect.y,A,I)})},E.prototype.getToBeTiled=function(o){var g=o.id;if(this.toBeTiled[g]!=null)return this.toBeTiled[g];var f=o.getChild();if(f==null)return this.toBeTiled[g]=!1,!1;for(var L=f.getNodes(),A=0;A0)return this.toBeTiled[g]=!1,!1;if(I.getChild()==null){this.toBeTiled[I.id]=!1;continue}if(!this.getToBeTiled(I))return this.toBeTiled[g]=!1,!1}return this.toBeTiled[g]=!0,!0},E.prototype.getNodeDegree=function(o){for(var g=o.id,f=o.getEdges(),L=0,A=0;Aw&&(w=Y.rect.height)}f+=w+o.verticalPadding}},E.prototype.tileCompoundMembers=function(o,g){var f=this;this.tiledMemberPack=[],Object.keys(o).forEach(function(L){var A=g[L];f.tiledMemberPack[L]=f.tileNodes(o[L],A.paddingLeft+A.paddingRight),A.rect.width=f.tiledMemberPack[L].width,A.rect.height=f.tiledMemberPack[L].height})},E.prototype.tileNodes=function(o,g){var f=s.TILING_PADDING_VERTICAL,L=s.TILING_PADDING_HORIZONTAL,A={rows:[],rowWidth:[],rowHeight:[],width:0,height:g,verticalPadding:f,horizontalPadding:L};o.sort(function(R,w){return R.rect.width*R.rect.height>w.rect.width*w.rect.height?-1:R.rect.width*R.rect.height0&&(m+=o.horizontalPadding),o.rowWidth[f]=m,o.width0&&(R+=o.verticalPadding);var w=0;R>o.rowHeight[f]&&(w=o.rowHeight[f],o.rowHeight[f]=R,w=o.rowHeight[f]-w),o.height+=w,o.rows[f].push(g)},E.prototype.getShortestRowIndex=function(o){for(var g=-1,f=Number.MAX_VALUE,L=0;Lf&&(g=L,f=o.rowWidth[L]);return g},E.prototype.canAddHorizontal=function(o,g,f){var L=this.getShortestRowIndex(o);if(L<0)return!0;var A=o.rowWidth[L];if(A+o.horizontalPadding+g<=o.width)return!0;var I=0;o.rowHeight[L]0&&(I=f+o.verticalPadding-o.rowHeight[L]);var m;o.width-A>=g+o.horizontalPadding?m=(o.height+I)/(A+g+o.horizontalPadding):m=(o.height+I)/o.width,I=f+o.verticalPadding;var R;return o.widthI&&g!=f){L.splice(-1,1),o.rows[f].push(A),o.rowWidth[g]=o.rowWidth[g]-I,o.rowWidth[f]=o.rowWidth[f]+I,o.width=o.rowWidth[instance.getLongestRowIndex(o)];for(var m=Number.MIN_VALUE,R=0;Rm&&(m=L[R].height);g>0&&(m+=o.verticalPadding);var w=o.rowHeight[g]+o.rowHeight[f];o.rowHeight[g]=m,o.rowHeight[f]0)for(var G=A;G<=I;G++)M[0]+=this.grid[G][m-1].length+this.grid[G][m].length-1;if(I0)for(var G=m;G<=R;G++)M[3]+=this.grid[A-1][G].length+this.grid[A][G].length-1;for(var S=y.MAX_VALUE,P,_,U=0;U{(function(C,v){typeof Q=="object"&&typeof tt=="object"?tt.exports=v(J()):typeof define=="function"&&define.amd?define(["cose-base"],v):typeof Q=="object"?Q.cytoscapeCoseBilkent=v(J()):C.cytoscapeCoseBilkent=v(C.coseBase)})(Q,function(N){return(function(C){var v={};function n(e){if(v[e])return v[e].exports;var t=v[e]={i:e,l:!1,exports:{}};return C[e].call(t.exports,t,t.exports,n),t.l=!0,t.exports}return n.m=C,n.c=v,n.i=function(e){return e},n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:r})},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=1)})([(function(C,v){C.exports=N}),(function(C,v,n){"use strict";var e=n(0).layoutBase.LayoutConstants,t=n(0).layoutBase.FDLayoutConstants,r=n(0).CoSEConstants,a=n(0).CoSELayout,u=n(0).CoSENode,s=n(0).layoutBase.PointD,p=n(0).layoutBase.DimensionD,i={ready:function(){},stop:function(){},quality:"default",nodeDimensionsIncludeLabels:!1,refresh:30,fit:!0,padding:10,randomize:!0,nodeRepulsion:4500,idealEdgeLength:50,edgeElasticity:.45,nestingFactor:.1,gravity:.25,numIter:2500,tile:!0,animate:"end",animationDuration:500,tilingPaddingVertical:10,tilingPaddingHorizontal:10,gravityRangeCompound:1.5,gravityCompound:1,gravityRange:3.8,initialEnergyOnIncremental:.5};function h(T,c){var D={};for(var E in T)D[E]=T[E];for(var E in c)D[E]=c[E];return D}function l(T){this.options=h(i,T),d(this.options)}var d=function(c){c.nodeRepulsion!=null&&(r.DEFAULT_REPULSION_STRENGTH=t.DEFAULT_REPULSION_STRENGTH=c.nodeRepulsion),c.idealEdgeLength!=null&&(r.DEFAULT_EDGE_LENGTH=t.DEFAULT_EDGE_LENGTH=c.idealEdgeLength),c.edgeElasticity!=null&&(r.DEFAULT_SPRING_STRENGTH=t.DEFAULT_SPRING_STRENGTH=c.edgeElasticity),c.nestingFactor!=null&&(r.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR=t.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR=c.nestingFactor),c.gravity!=null&&(r.DEFAULT_GRAVITY_STRENGTH=t.DEFAULT_GRAVITY_STRENGTH=c.gravity),c.numIter!=null&&(r.MAX_ITERATIONS=t.MAX_ITERATIONS=c.numIter),c.gravityRange!=null&&(r.DEFAULT_GRAVITY_RANGE_FACTOR=t.DEFAULT_GRAVITY_RANGE_FACTOR=c.gravityRange),c.gravityCompound!=null&&(r.DEFAULT_COMPOUND_GRAVITY_STRENGTH=t.DEFAULT_COMPOUND_GRAVITY_STRENGTH=c.gravityCompound),c.gravityRangeCompound!=null&&(r.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR=t.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR=c.gravityRangeCompound),c.initialEnergyOnIncremental!=null&&(r.DEFAULT_COOLING_FACTOR_INCREMENTAL=t.DEFAULT_COOLING_FACTOR_INCREMENTAL=c.initialEnergyOnIncremental),c.quality=="draft"?e.QUALITY=0:c.quality=="proof"?e.QUALITY=2:e.QUALITY=1,r.NODE_DIMENSIONS_INCLUDE_LABELS=t.NODE_DIMENSIONS_INCLUDE_LABELS=e.NODE_DIMENSIONS_INCLUDE_LABELS=c.nodeDimensionsIncludeLabels,r.DEFAULT_INCREMENTAL=t.DEFAULT_INCREMENTAL=e.DEFAULT_INCREMENTAL=!c.randomize,r.ANIMATE=t.ANIMATE=e.ANIMATE=c.animate,r.TILE=c.tile,r.TILING_PADDING_VERTICAL=typeof c.tilingPaddingVertical=="function"?c.tilingPaddingVertical.call():c.tilingPaddingVertical,r.TILING_PADDING_HORIZONTAL=typeof c.tilingPaddingHorizontal=="function"?c.tilingPaddingHorizontal.call():c.tilingPaddingHorizontal};l.prototype.run=function(){var T,c,D=this.options,E=this.idToLNode={},O=this.layout=new a,o=this;o.stopped=!1,this.cy=this.options.cy,this.cy.trigger({type:"layoutstart",layout:this});var g=O.newGraphManager();this.gm=g;var f=this.options.eles.nodes(),L=this.options.eles.edges();this.root=g.addRoot(),this.processChildrenList(this.root,this.getTopMostNodes(f),O);for(var A=0;A0){var R;R=D.getGraphManager().add(D.newGraph(),f),this.processChildrenList(R,g,D)}}},l.prototype.stop=function(){return this.stopped=!0,this};var y=function(c){c("layout","cose-bilkent",l)};typeof cytoscape<"u"&&y(cytoscape),C.exports=y})])})});var st=pt(nt(),1);j.use(st.default);function ot(N,C){N.forEach(v=>{let n={id:v.id,labelText:v.label,height:v.height,width:v.width,padding:v.padding??0};Object.keys(v).forEach(e=>{["id","label","height","width","padding","x","y"].includes(e)||(n[e]=v[e])}),C.add({group:"nodes",data:n,position:{x:v.x??0,y:v.y??0}})})}W(ot,"addNodes");function at(N,C){N.forEach(v=>{let n={id:v.id,source:v.start,target:v.end};Object.keys(v).forEach(e=>{["id","start","end"].includes(e)||(n[e]=v[e])}),C.add({group:"edges",data:n})})}W(at,"addEdges");function ht(N){return new Promise(C=>{let v=it("body").append("div").attr("id","cy").attr("style","display:none"),n=j({container:document.getElementById("cy"),style:[{selector:"edge",style:{"curve-style":"bezier"}}]});v.remove(),ot(N.nodes,n),at(N.edges,n),n.nodes().forEach(function(t){t.layoutDimensions=()=>{let r=t.data();return{w:r.width,h:r.height}}});let e={name:"cose-bilkent",quality:"proof",styleEnabled:!1,animate:!1};n.layout(e).run(),n.ready(t=>{V.info("Cytoscape ready",t),C(n)})})}W(ht,"createCytoscapeInstance");function lt(N){return N.nodes().map(C=>{let v=C.data(),n=C.position(),e={id:v.id,x:n.x,y:n.y};return Object.keys(v).forEach(t=>{t!=="id"&&(e[t]=v[t])}),e})}W(lt,"extractPositionedNodes");function ut(N){return N.edges().map(C=>{let v=C.data(),n=C._private.rscratch,e={id:v.id,source:v.source,target:v.target,startX:n.startX,startY:n.startY,midX:n.midX,midY:n.midY,endX:n.endX,endY:n.endY};return Object.keys(v).forEach(t=>{["id","source","target"].includes(t)||(e[t]=v[t])}),e})}W(ut,"extractPositionedEdges");async function gt(N,C){V.debug("Starting cose-bilkent layout algorithm");try{ft(N);let v=await ht(N),n=lt(v),e=ut(v);return V.debug(`Layout completed: ${n.length} nodes, ${e.length} edges`),{nodes:n,edges:e}}catch(v){throw V.error("Error in cose-bilkent layout algorithm:",v),v}}W(gt,"executeCoseBilkentLayout");function ft(N){if(!N)throw new Error("Layout data is required");if(!N.config)throw new Error("Configuration is required in layout data");if(!N.rootNode)throw new Error("Root node is required");if(!N.nodes||!Array.isArray(N.nodes))throw new Error("No nodes found in layout data");if(!Array.isArray(N.edges))throw new Error("Edges array is required in layout data");return!0}W(ft,"validateLayoutData");var dt=W(async(N,C,{insertCluster:v,insertEdge:n,insertEdgeLabel:e,insertMarkers:t,insertNode:r,log:a,positionEdgeLabel:u},{algorithm:s})=>{let p={},i={},h=C.select("g");t(h,N.markers,N.type,N.diagramId);let l=h.insert("g").attr("class","subgraphs"),d=h.insert("g").attr("class","edgePaths"),y=h.insert("g").attr("class","edgeLabels"),T=h.insert("g").attr("class","nodes");a.debug("Inserting nodes into DOM for dimension calculation"),await Promise.all(N.nodes.map(async E=>{if(E.isGroup){let O={...E};i[E.id]=O,p[E.id]=O,await v(l,E)}else{let O={...E};p[E.id]=O;let o=await r(T,E,{config:N.config,dir:N.direction||"TB"}),g=o.node().getBBox();O.width=g.width,O.height=g.height,O.domId=o,a.debug(`Node ${E.id} dimensions: ${g.width}x${g.height}`)}})),a.debug("Running cose-bilkent layout algorithm");let c={...N,nodes:N.nodes.map(E=>{let O=p[E.id];return{...E,width:O.width,height:O.height}})},D=await gt(c,N.config);a.debug("Positioning nodes based on layout results"),D.nodes.forEach(E=>{let O=p[E.id];O?.domId&&(O.domId.attr("transform",`translate(${E.x}, ${E.y})`),O.x=E.x,O.y=E.y,a.debug(`Positioned node ${O.id} at center (${E.x}, ${E.y})`))}),D.edges.forEach(E=>{let O=N.edges.find(o=>o.id===E.id);O&&(O.points=[{x:E.startX,y:E.startY},{x:E.midX,y:E.midY},{x:E.endX,y:E.endY}])}),a.debug("Inserting and positioning edges"),await Promise.all(N.edges.map(async E=>{let O=await e(y,E),o=p[E.start??""],g=p[E.end??""];if(o&&g){let f=D.edges.find(L=>L.id===E.id);if(f){a.debug("APA01 positionedEdge",f);let L={...E},A=n(d,L,i,N.type,o,g,N.diagramId);u(L,A)}else{let L={...E,points:[{x:o.x||0,y:o.y||0},{x:g.x||0,y:g.y||0}]},A=n(d,L,i,N.type,o,g,N.diagramId);u(L,A)}}})),a.debug("Cose-bilkent rendering completed")},"render"),Tt=dt;export{Tt as render}; diff --git a/src/frontend/web/von_interface/static/vendor/conversation-visuals/cynefin-OW5HDTMX-VODE6M35.js b/src/frontend/web/von_interface/static/vendor/conversation-visuals/cynefin-OW5HDTMX-VODE6M35.js new file mode 100644 index 000000000..db75cfb0d --- /dev/null +++ b/src/frontend/web/von_interface/static/vendor/conversation-visuals/cynefin-OW5HDTMX-VODE6M35.js @@ -0,0 +1 @@ +import{a as e,b as r}from"./chunk-X7BLBFFS.js";import"./chunk-RVPSGR2P.js";import"./chunk-3RNHDNP5.js";export{e as CynefinModule,r as createCynefinServices}; diff --git a/src/frontend/web/von_interface/static/vendor/conversation-visuals/cynefinDiagram-VND7K2PF-FCNRKY3Q.js b/src/frontend/web/von_interface/static/vendor/conversation-visuals/cynefinDiagram-VND7K2PF-FCNRKY3Q.js new file mode 100644 index 000000000..d51ba06b5 --- /dev/null +++ b/src/frontend/web/von_interface/static/vendor/conversation-visuals/cynefinDiagram-VND7K2PF-FCNRKY3Q.js @@ -0,0 +1,62 @@ +import{a as yt}from"./chunk-CDENLQJG.js";import{a as ut}from"./chunk-WBZZWDU5.js";import"./chunk-ZFFKTRVX.js";import"./chunk-DKYAF235.js";import"./chunk-X7BLBFFS.js";import"./chunk-YMFA7VWU.js";import"./chunk-C7GWRE6Z.js";import"./chunk-4DL6P2YZ.js";import"./chunk-KCWUFFIE.js";import"./chunk-RDO2S4TE.js";import"./chunk-XCFPDLUP.js";import"./chunk-RMEGOE55.js";import"./chunk-QNBXOM7U.js";import"./chunk-NMQHKCXS.js";import"./chunk-SEHHQ34Z.js";import"./chunk-K6AAXKM5.js";import"./chunk-KVFXNR4L.js";import"./chunk-RVPSGR2P.js";import{a as pt}from"./chunk-UED66XBH.js";import{o as X}from"./chunk-EUYVSIXP.js";import"./chunk-QSTT4QQC.js";import{C as O,P as rt,U as it,V as st,W as ct,X as lt,Y as dt,Z as ft,_ as mt,p as Q,r as at}from"./chunk-S4JILX6U.js";import{b as E}from"./chunk-XEQL7KGA.js";import{a as r}from"./chunk-YUSHYV7C.js";import"./chunk-3RNHDNP5.js";var xt=r(()=>({domains:new Map,transitions:[]}),"createDefaultData"),G=xt(),St=r(()=>G.domains,"getDomains"),Mt=r(()=>G.transitions,"getTransitions"),zt=r(t=>{if(t)for(let e of t){let n=e.domain,o=(e.items??[]).map(c=>({label:c.label}));G.domains.set(n,{name:n,items:o})}},"setDomains"),Lt=r(t=>{t&&(G.transitions=t.filter(e=>e.from===e.to?(E.warn(`Cynefin: self-loop transition on domain "${e.from}" is not meaningful and will be skipped.`),!1):!0).map(e=>({from:e.from,to:e.to,label:e.label||void 0})))},"setTransitions"),Nt=r(()=>X({...at.cynefin,...O().cynefin}),"getConfig"),Pt=r(()=>{it(),G=xt()},"clear"),j={getDomains:St,getTransitions:Mt,setDomains:zt,setTransitions:Lt,getConfig:Nt,clear:Pt,setAccTitle:st,getAccTitle:ct,setDiagramTitle:ft,getDiagramTitle:mt,getAccDescription:dt,setAccDescription:lt},It=r(t=>{yt(t,j),j.setDomains(t.domains),j.setTransitions(t.transitions)},"populate"),Wt={parse:r(async t=>{let e=await ut("cynefin",t);E.debug(e),It(e)},"parse")};function H(t){let e=t+1831565813|0;return e=Math.imul(e^e>>>15,e|1),e^=e+Math.imul(e^e>>>7,e|61),((e^e>>>14)>>>0)/4294967296}r(H,"seededRandom");function gt(t){let e=0;for(let n=0;n{let n=t/2,o=e/2;return{complex:{cx:n/2,cy:o/2,x:0,y:0,w:n,h:o},complicated:{cx:n+n/2,cy:o/2,x:n,y:0,w:n,h:o},chaotic:{cx:n/2,cy:o+o/2,x:0,y:o,w:n,h:o},clear:{cx:n+n/2,cy:o+o/2,x:n,y:o,w:n,h:o},confusion:{cx:n,cy:o,x:n*.7,y:o*.7,w:n*.6,h:o*.6}}},"getDomainLayouts"),Ft=r(()=>{let t=Q(),e=O();return X(t,e.themeVariables).cynefin},"getCynefinDomainColors"),Z=3,Vt=r((t,e,n,o)=>{let c=o.db,m=c.getDomains(),v=c.getTransitions(),W=c.getDiagramTitle(),d=c.getAccTitle(),D=c.getAccDescription(),a=c.getConfig(),p=Ft();E.debug("Rendering Cynefin diagram");let s=a.width,f=a.height,b=a.padding,h=a.showDomainDescriptions,R=a.boundaryAmplitude,F=s+b*2,V=f+b*2,z={complex:p.complexBg,complicated:p.complicatedBg,clear:p.clearBg,chaotic:p.chaoticBg,confusion:p.confusionBg},k=pt(e);rt(k,V,F,a.useMaxWidth??!0),k.attr("viewBox",`0 0 ${F} ${V}`),d&&k.append("title").text(d),D&&k.append("desc").text(D);let T=k.append("g").attr("transform",`translate(${b}, ${b})`),_=Rt(s,f),J=$t(a.seed,e),Dt=T.append("g").attr("class","cynefin-backgrounds"),q=["complex","complicated","chaotic","clear"];for(let l of q){let i=_[l];Dt.append("rect").attr("class","cynefinDomain").attr("x",i.x).attr("y",i.y).attr("width",i.w).attr("height",i.h).attr("fill",z[l]).attr("fill-opacity",.4).attr("stroke","none")}let U=T.append("g").attr("class","cynefin-boundaries");U.append("path").attr("class","cynefinBoundary").attr("d",bt(s,f,J,R)).attr("fill","none"),U.append("path").attr("class","cynefinBoundary").attr("d",wt(s,f,J+100,R)).attr("fill","none"),U.append("path").attr("class","cynefinCliff").attr("d",Ct(s,f)).attr("fill","none");let kt=s*.15,Tt=f*.15;T.append("path").attr("class","cynefinConfusion").attr("d",vt(s/2,f/2,kt,Tt)).attr("fill",z.confusion).attr("fill-opacity",.5);let K=T.append("g").attr("class","cynefin-labels");for(let l of q){let i=_[l];K.append("text").attr("class","cynefinDomainLabel").attr("x",i.cx).attr("y",h?i.cy-30:i.cy).attr("text-anchor","middle").attr("dominant-baseline","middle").text(l.charAt(0).toUpperCase()+l.slice(1))}if(K.append("text").attr("class","cynefinDomainLabel").attr("x",s/2).attr("y",h?f/2-10:f/2).attr("text-anchor","middle").attr("dominant-baseline","middle").text("Confusion"),h){let l=T.append("g").attr("class","cynefin-subtitles");for(let i of q){let u=_[i],y=ht[i];l.append("text").attr("class","cynefinSubtitle").attr("x",u.cx).attr("y",u.cy-10).attr("text-anchor","middle").attr("dominant-baseline","middle").text(y.model),l.append("text").attr("class","cynefinSubtitle").attr("x",u.cx).attr("y",u.cy+5).attr("text-anchor","middle").attr("dominant-baseline","middle").text(y.practice)}l.append("text").attr("class","cynefinSubtitle").attr("x",s/2).attr("y",f/2+8).attr("text-anchor","middle").attr("dominant-baseline","middle").text(ht.confusion.practice)}let tt=T.append("g").attr("class","cynefin-items"),A=26,et=10,At=["complex","complicated","chaotic","clear","confusion"];for(let l of At){let i=m.get(l);if(!i||i.items.length===0)continue;let u=_[l],y=l==="confusion",L=i.items,N=0;y&&i.items.length>Z&&(N=i.items.length-Z,L=i.items.slice(0,Z));let B;if(y){let g=h?22:14;B=u.cy+g}else B=u.cy+(h?25:15);if([...L].forEach((g,S)=>{let w=B+S*(A+4),M=tt.append("g"),P=M.append("text").attr("class","cynefinItemText").attr("x",0).attr("y",A/2).attr("text-anchor","middle").attr("dominant-baseline","central").text(g.label),$=g.label.length*7,x=P.node();if(x&&typeof x.getBBox=="function"){let Y=x.getBBox();Y.width>0&&($=Y.width)}let C=$+et*2,I=u.cx-C/2;M.attr("transform",`translate(${I}, ${w})`),M.insert("rect","text").attr("class","cynefinItem").attr("x",0).attr("y",0).attr("width",C).attr("height",A).attr("rx",4).attr("ry",4).attr("fill",z[l]).attr("fill-opacity",.95),P.attr("x",C/2).attr("y",A/2)}),N>0){let g=B+L.length*(A+4),S=`+${N} more`,w=tt.append("g"),M=w.append("text").attr("class","cynefinItemText").attr("x",0).attr("y",A/2).attr("text-anchor","middle").attr("dominant-baseline","central").text(S),P=S.length*7,$=M.node();if($&&typeof $.getBBox=="function"){let I=$.getBBox();I.width>0&&(P=I.width)}let x=P+et*2,C=u.cx-x/2;w.attr("transform",`translate(${C}, ${g})`),w.insert("rect","text").attr("class","cynefinItemOverflow").attr("x",0).attr("y",0).attr("width",x).attr("height",A).attr("rx",4).attr("ry",4).attr("fill",z[l]).attr("fill-opacity",.6),M.attr("x",x/2).attr("y",A/2)}}if(v.length>0){let l=k.select("defs").empty()?k.append("defs"):k.select("defs"),i=`cynefin-arrow-${e}`;l.append("marker").attr("id",i).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerWidth",6).attr("markerHeight",6).attr("orient","auto-start-reverse").append("path").attr("d","M 0 0 L 10 5 L 0 10 z").attr("class","cynefinArrowHead");let u=T.append("g").attr("class","cynefin-arrows");v.forEach(y=>{let L=_[y.from],N=_[y.to];if(!L||!N)return;if(y.from===y.to){E.warn(`Cynefin renderer: skipping self-loop on domain "${y.from}"`);return}let B=L.cx,g=L.cy,S=N.cx,w=N.cy,M=(B+S)/2,P=(g+w)/2,$=S-B,x=w-g,C=Math.sqrt($*$+x*x),I=C*.15,Y=-x/C,Bt=$/C,nt=M+Y*I,ot=P+Bt*I;u.append("path").attr("class","cynefinArrowLine").attr("d",`M${B},${g} Q${nt},${ot} ${S},${w}`).attr("fill","none").attr("marker-end",`url(#${i})`),y.label&&u.append("text").attr("class","cynefinArrowLabel").attr("x",nt).attr("y",ot-6).attr("text-anchor","middle").attr("dominant-baseline","auto").text(y.label)})}W&&T.append("text").attr("class","cynefinTitle").attr("x",s/2).attr("y",-b/2).attr("text-anchor","middle").attr("dominant-baseline","middle").text(W)},"draw"),_t={draw:Vt},Et=r(()=>{let t=Q(),e=O();return X(t,e.themeVariables).cynefin},"getCynefinTheme"),Ht=r(()=>{let t=Et();return` + .cynefinDomain { + stroke: none; + } + .cynefinDomainLabel { + font-size: ${t.domainFontSize}px; + font-weight: bold; + fill: ${t.labelColor}; + } + .cynefinSubtitle { + font-size: ${t.itemFontSize-1}px; + fill: ${t.textColor}; + font-style: italic; + } + .cynefinItem { + fill-opacity: 0.95; + stroke: ${t.boundaryColor}; + stroke-width: 1; + } + .cynefinItemText { + font-size: ${t.itemFontSize}px; + fill: ${t.textColor}; + } + .cynefinItemOverflow { + fill-opacity: 0.6; + stroke: ${t.boundaryColor}; + stroke-width: 1; + stroke-dasharray: 3 2; + } + .cynefinBoundary { + stroke: ${t.boundaryColor}; + stroke-width: ${t.boundaryWidth}; + stroke-dasharray: 6 3; + } + .cynefinCliff { + stroke: ${t.cliffColor}; + stroke-width: ${t.cliffWidth}; + } + .cynefinConfusion { + stroke: ${t.boundaryColor}; + stroke-width: 1.5; + stroke-dasharray: 4 2; + } + .cynefinArrowLine { + stroke: ${t.arrowColor}; + stroke-width: ${t.arrowWidth}; + fill: none; + } + .cynefinArrowHead { + fill: ${t.arrowColor}; + stroke: none; + } + .cynefinArrowLabel { + font-size: ${t.itemFontSize-1}px; + fill: ${t.textColor}; + } + .cynefinTitle { + font-size: ${t.domainFontSize+2}px; + font-weight: bold; + fill: ${t.labelColor}; + } + `},"styles"),Gt=Ht,Zt={parser:Wt,db:j,renderer:_t,styles:Gt};export{Zt as diagram}; diff --git a/src/frontend/web/von_interface/static/vendor/conversation-visuals/dagre-6A5THRUB-7EE7IEPG.js b/src/frontend/web/von_interface/static/vendor/conversation-visuals/dagre-6A5THRUB-7EE7IEPG.js new file mode 100644 index 000000000..dd6a2c066 --- /dev/null +++ b/src/frontend/web/von_interface/static/vendor/conversation-visuals/dagre-6A5THRUB-7EE7IEPG.js @@ -0,0 +1,4 @@ +import{a as Ge,b as Ae,c as C,d as ie,e as Fe,f as Q,g as Ve}from"./chunk-R6BKASFG.js";import{a as x}from"./chunk-E4FJ3GMM.js";import{A as Be,C as K,E as D,J as k,K as V,L,M as q,N as T,O as Y,Q as z,R as N,S as G,U as Xe,W as P,Z as U,_ as ae,a as De,f as F,i as O,k as Te,m as oe,n as Me,p as X,s as u,u as S,v as W,x as y,z as je}from"./chunk-JYJEQ7QO.js";import{b as Pe}from"./chunk-AKE2LJPJ.js";import{g as te,h as Ce,i as Re}from"./chunk-NDMMOI35.js";import{a as Oe,c as Se,e as ne}from"./chunk-T4OFBIBR.js";import{b as Ie}from"./chunk-TEBTVNCH.js";import"./chunk-HVVAQLXH.js";import"./chunk-IVPOI5SM.js";import"./chunk-O46DUOKR.js";import"./chunk-C7YISUMK.js";import"./chunk-6NDAIVIK.js";import"./chunk-EUYVSIXP.js";import"./chunk-QSTT4QQC.js";import{$ as Ne}from"./chunk-S4JILX6U.js";import{b as w}from"./chunk-XEQL7KGA.js";import{a as E}from"./chunk-YUSHYV7C.js";import"./chunk-3RNHDNP5.js";var Z=class{constructor(){var r={};r._next=r._prev=r,this._sentinel=r}dequeue(){var r=this._sentinel,n=r._prev;if(n!==r)return Ye(n),n}enqueue(r){var n=this._sentinel;r._prev&&r._next&&Ye(r),r._next=n._next,n._next._prev=r,n._next=r,r._prev=n}toString(){for(var r=[],n=this._sentinel,t=n._prev;t!==n;)r.push(JSON.stringify(t,Vr)),t=t._prev;return"["+r.join(", ")+"]"}};function Ye(e){e._prev._next=e._next,e._next._prev=e._prev,delete e._next,delete e._prev}function Vr(e,r){if(e!=="_next"&&e!=="_prev")return r}var Yr=F(1);function ze(e,r){if(e.nodeCount()<=1)return[];var n=Ur(e,r||Yr),t=zr(n.graph,n.buckets,n.zeroIdx);return O(y(t,function(o){return e.outEdges(o.v,o.w)}))}function zr(e,r,n){for(var t=[],o=r[r.length-1],a=r[0],i;e.nodeCount();){for(;i=a.dequeue();)se(e,r,n,i);for(;i=o.dequeue();)se(e,r,n,i);if(e.nodeCount()){for(var s=r.length-2;s>0;--s)if(i=r[s].dequeue(),i){t=t.concat(se(e,r,n,i,!0));break}}}return t}function se(e,r,n,t,o){var a=o?[]:void 0;return u(e.inEdges(t.v),function(i){var s=e.edge(i),d=e.node(i.v);o&&a.push({v:i.v,w:i.w}),d.out-=s,de(r,n,d)}),u(e.outEdges(t.v),function(i){var s=e.edge(i),d=i.w,f=e.node(d);f.in-=s,de(r,n,f)}),e.removeNode(t.v),a}function Ur(e,r){var n=new x,t=0,o=0;u(e.nodes(),function(s){n.setNode(s,{v:s,in:0,out:0})}),u(e.edges(),function(s){var d=n.edge(s.v,s.w)||0,f=r(s),c=d+f;n.setEdge(s.v,s.w,c),o=Math.max(o,n.node(s.v).out+=f),t=Math.max(t,n.node(s.w).in+=f)});var a=N(o+t+3).map(function(){return new Z}),i=t+1;return u(n.nodes(),function(s){de(a,i,n.node(s))}),{graph:n,buckets:a,zeroIdx:i}}function de(e,r,n){n.out?n.in?e[n.out-n.in+r].enqueue(n):e[e.length-1].enqueue(n):e[0].enqueue(n)}function Ue(e){var r=e.graph().acyclicer==="greedy"?ze(e,n(e)):Wr(e);u(r,function(t){var o=e.edge(t);e.removeEdge(t),o.forwardName=t.name,o.reversed=!0,e.setEdge(t.w,t.v,o,U("rev"))});function n(t){return function(o){return t.edge(o).weight}}}function Wr(e){var r=[],n={},t={};function o(a){Object.prototype.hasOwnProperty.call(t,a)||(t[a]=!0,n[a]=!0,u(e.outEdges(a),function(i){Object.prototype.hasOwnProperty.call(n,i.w)?r.push(i):o(i.w)}),delete n[a])}return u(e.nodes(),o),r}function We(e){u(e.edges(),function(r){var n=e.edge(r);if(n.reversed){e.removeEdge(r);var t=n.forwardName;delete n.reversed,delete n.forwardName,e.setEdge(r.w,r.v,n,t)}})}function I(e,r,n,t){var o;do o=U(t);while(e.hasNode(o));return n.dummy=r,e.setNode(o,n),o}function He(e){var r=new x().setGraph(e.graph());return u(e.nodes(),function(n){r.setNode(n,e.node(n))}),u(e.edges(),function(n){var t=r.edge(n.v,n.w)||{weight:0,minlen:1},o=e.edge(n);r.setEdge(n.v,n.w,{weight:t.weight+o.weight,minlen:Math.max(t.minlen,o.minlen)})}),r}function $(e){var r=new x({multigraph:e.isMultigraph()}).setGraph(e.graph());return u(e.nodes(),function(n){e.children(n).length||r.setNode(n,e.node(n))}),u(e.edges(),function(n){r.setEdge(n,e.edge(n))}),r}function fe(e,r){var n=e.x,t=e.y,o=r.x-n,a=r.y-t,i=e.width/2,s=e.height/2;if(!o&&!a)throw new Error("Not possible to find intersection inside of the rectangle");var d,f;return Math.abs(a)*i>Math.abs(o)*s?(a<0&&(s=-s),d=s*o/a,f=s):(o<0&&(i=-i),d=i,f=i*a/o),{x:n+d,y:t+f}}function M(e){var r=y(N(ue(e)+1),function(){return[]});return u(e.nodes(),function(n){var t=e.node(n),o=t.rank;k(o)||(r[o][t.order]=n)}),r}function Je(e){var r=T(y(e.nodes(),function(n){return e.node(n).rank}));u(e.nodes(),function(n){var t=e.node(n);K(t,"rank")&&(t.rank-=r)})}function Ke(e){var r=T(y(e.nodes(),function(a){return e.node(a).rank})),n=[];u(e.nodes(),function(a){var i=e.node(a).rank-r;n[i]||(n[i]=[]),n[i].push(a)});var t=0,o=e.graph().nodeRankFactor;u(n,function(a,i){k(a)&&i%o!==0?--t:t&&u(a,function(s){e.node(s).rank+=t})})}function ce(e,r,n,t){var o={width:0,height:0};return arguments.length>=4&&(o.rank=n,o.order=t),I(e,"border",o,r)}function ue(e){return L(y(e.nodes(),function(r){var n=e.node(r).rank;if(!k(n))return n}))}function Qe(e,r){var n={lhs:[],rhs:[]};return u(e,function(t){r(t)?n.lhs.push(t):n.rhs.push(t)}),n}function Ze(e,r){var n=oe();try{return r()}finally{console.log(e+" time: "+(oe()-n)+"ms")}}function $e(e,r){return r()}function rr(e){function r(n){var t=e.children(n),o=e.node(n);if(t.length&&u(t,r),Object.prototype.hasOwnProperty.call(o,"minRank")){o.borderLeft=[],o.borderRight=[];for(var a=o.minRank,i=o.maxRank+1;ai.lim&&(s=i,d=!0);var f=S(r.edges(),function(c){return d===cr(e,e.node(c.v),s)&&d!==cr(e,e.node(c.w),s)});return Y(f,function(c){return A(r,c)})}function mr(e,r,n,t){var o=n.v,a=n.w;e.removeEdge(o,a),e.setEdge(t.v,t.w,{}),_e(e),ge(e,r),an(e,r)}function an(e,r){var n=W(e.nodes(),function(o){return!r.node(o).parent}),t=ve(e,n);t=t.slice(1),u(t,function(o){var a=e.node(o).parent,i=r.edge(o,a),s=!1;i||(i=r.edge(a,o),s=!0),r.node(o).rank=r.node(a).rank+(s?i.minlen:-i.minlen)})}function sn(e,r,n){return e.hasEdge(r,n)}function cr(e,r,n){return n.low<=r.lim&&r.lim<=n.lim}function we(e){switch(e.graph().ranker){case"network-simplex":vr(e);break;case"tight-tree":fn(e);break;case"longest-path":dn(e);break;default:vr(e)}}var dn=H;function fn(e){H(e),ee(e)}function vr(e){B(e)}function gr(e){var r=I(e,"root",{},"_root"),n=cn(e),t=L(D(n))-1,o=2*t+1;e.graph().nestingRoot=r,u(e.edges(),function(i){e.edge(i).minlen*=o});var a=un(e)+1;u(e.children(),function(i){_r(e,r,o,a,t,n,i)}),e.graph().nodeRankFactor=o}function _r(e,r,n,t,o,a,i){var s=e.children(i);if(!s.length){i!==r&&e.setEdge(r,i,{weight:0,minlen:n});return}var d=ce(e,"_bt"),f=ce(e,"_bb"),c=e.node(i);e.setParent(d,i),c.borderTop=d,e.setParent(f,i),c.borderBottom=f,u(s,function(l){_r(e,r,n,t,o,a,l);var h=e.node(l),m=h.borderTop?h.borderTop:l,g=h.borderBottom?h.borderBottom:l,v=h.borderTop?t:2*t,p=m!==g?1:o-a[i]+1;e.setEdge(d,m,{weight:v,minlen:p,nestingEdge:!0}),e.setEdge(g,f,{weight:v,minlen:p,nestingEdge:!0})}),e.parent(i)||e.setEdge(r,d,{weight:0,minlen:o+a[i]})}function cn(e){var r={};function n(t,o){var a=e.children(t);a&&a.length&&u(a,function(i){n(i,o+1)}),r[t]=o}return u(e.children(),function(t){n(t,1)}),r}function un(e){return G(e.edges(),function(r,n){return r+e.edge(n).weight},0)}function wr(e){var r=e.graph();e.removeNode(r.nestingRoot),delete r.nestingRoot,u(e.edges(),function(n){var t=e.edge(n);t.nestingEdge&&e.removeEdge(n)})}function yr(e,r,n){var t={},o;u(n,function(a){for(var i=e.parent(a),s,d;i;){if(s=e.parent(i),s?(d=t[s],t[s]=i):(d=o,o=i),d&&d!==i){r.setEdge(d,i);return}i=s}})}function br(e,r,n){var t=hn(e),o=new x({compound:!0}).setGraph({root:t}).setDefaultNodeLabel(function(a){return e.node(a)});return u(e.nodes(),function(a){var i=e.node(a),s=e.parent(a);(i.rank===r||i.minRank<=r&&r<=i.maxRank)&&(o.setNode(a),o.setParent(a,s||t),u(e[n](a),function(d){var f=d.v===a?d.w:d.v,c=o.edge(f,a),l=k(c)?0:c.weight;o.setEdge(f,a,{weight:e.edge(d).weight+l})}),Object.prototype.hasOwnProperty.call(i,"minRank")&&o.setNode(a,{borderLeft:i.borderLeft[r],borderRight:i.borderRight[r]}))}),o}function hn(e){for(var r;e.hasNode(r=U("_root")););return r}function Er(e,r){for(var n=0,t=1;t0;)c%2&&(l+=s[c+1]),c=c-1>>1,s[c]+=f.weight;d+=f.weight*l})),d}function xr(e){var r={},n=S(e.nodes(),function(s){return!e.children(s).length}),t=L(y(n,function(s){return e.node(s).rank})),o=y(N(t+1),function(){return[]});function a(s){if(!K(r,s)){r[s]=!0;var d=e.node(s);o[d.rank].push(s),u(e.successors(s),a)}}var i=P(n,function(s){return e.node(s).rank});return u(i,a),o}function kr(e,r){return y(r,function(n){var t=e.inEdges(n);if(t.length){var o=G(t,function(a,i){var s=e.edge(i),d=e.node(i.v);return{sum:a.sum+s.weight*d.order,weight:a.weight+s.weight}},{sum:0,weight:0});return{v:n,barycenter:o.sum/o.weight,weight:o.weight}}else return{v:n}})}function Lr(e,r){var n={};u(e,function(o,a){var i=n[o.v]={indegree:0,in:[],out:[],vs:[o.v],i:a};k(o.barycenter)||(i.barycenter=o.barycenter,i.weight=o.weight)}),u(r.edges(),function(o){var a=n[o.v],i=n[o.w];!k(a)&&!k(i)&&(i.indegree++,a.out.push(n[o.w]))});var t=S(n,function(o){return!o.indegree});return mn(t)}function mn(e){var r=[];function n(a){return function(i){i.merged||(k(i.barycenter)||k(a.barycenter)||i.barycenter>=a.barycenter)&&vn(a,i)}}function t(a){return function(i){i.in.push(a),--i.indegree===0&&e.push(i)}}for(;e.length;){var o=e.pop();r.push(o),u(o.in.reverse(),n(o)),u(o.out,t(o))}return y(S(r,function(a){return!a.merged}),function(a){return z(a,["vs","i","barycenter","weight"])})}function vn(e,r){var n=0,t=0;e.weight&&(n+=e.barycenter*e.weight,t+=e.weight),r.weight&&(n+=r.barycenter*r.weight,t+=r.weight),e.vs=r.vs.concat(e.vs),e.barycenter=n/t,e.weight=t,e.i=Math.min(r.i,e.i),r.merged=!0}function Ir(e,r){var n=Qe(e,function(c){return Object.prototype.hasOwnProperty.call(c,"barycenter")}),t=n.lhs,o=P(n.rhs,function(c){return-c.i}),a=[],i=0,s=0,d=0;t.sort(gn(!!r)),d=Nr(a,o,d),u(t,function(c){d+=c.vs.length,a.push(c.vs),i+=c.barycenter*c.weight,s+=c.weight,d=Nr(a,o,d)});var f={vs:O(a)};return s&&(f.barycenter=i/s,f.weight=s),f}function Nr(e,r,n){for(var t;r.length&&(t=X(r)).i<=n;)r.pop(),e.push(t.vs),n++;return n}function gn(e){return function(r,n){return r.barycentern.barycenter?1:e?n.i-r.i:r.i-n.i}}function ye(e,r,n,t){var o=e.children(r),a=e.node(r),i=a?a.borderLeft:void 0,s=a?a.borderRight:void 0,d={};i&&(o=S(o,function(g){return g!==i&&g!==s}));var f=kr(e,o);u(f,function(g){if(e.children(g.v).length){var v=ye(e,g.v,n,t);d[g.v]=v,Object.prototype.hasOwnProperty.call(v,"barycenter")&&wn(g,v)}});var c=Lr(f,n);_n(c,d);var l=Ir(c,t);if(i&&(l.vs=O([i,l.vs,s]),e.predecessors(i).length)){var h=e.node(e.predecessors(i)[0]),m=e.node(e.predecessors(s)[0]);Object.prototype.hasOwnProperty.call(l,"barycenter")||(l.barycenter=0,l.weight=0),l.barycenter=(l.barycenter*l.weight+h.order+m.order)/(l.weight+2),l.weight+=2}return l}function _n(e,r){u(e,function(n){n.vs=O(n.vs.map(function(t){return r[t]?r[t].vs:t}))})}function wn(e,r){k(e.barycenter)?(e.barycenter=r.barycenter,e.weight=r.weight):(e.barycenter=(e.barycenter*e.weight+r.barycenter*r.weight)/(e.weight+r.weight),e.weight+=r.weight)}function Pr(e){var r=ue(e),n=Or(e,N(1,r+1),"inEdges"),t=Or(e,N(r-1,-1,-1),"outEdges"),o=xr(e);Sr(e,o);for(var a=Number.POSITIVE_INFINITY,i,s=0,d=0;d<4;++s,++d){yn(s%2?n:t,s%4>=2),o=M(e);var f=Er(e,o);fi||s>r[d].lim));for(f=d,d=t;(d=e.parent(d))!==f;)a.push(d);return{path:o.concat(a.reverse()),lca:f}}function En(e){var r={},n=0;function t(o){var a=n;u(e.children(o),t),r[o]={low:a,lim:n++}}return u(e.children(),t),r}function xn(e,r){var n={};function t(o,a){var i=0,s=0,d=o.length,f=X(a);return u(a,function(c,l){var h=Ln(e,c),m=h?e.node(h).order:d;(h||c===f)&&(u(a.slice(s,l+1),function(g){u(e.predecessors(g),function(v){var p=e.node(v),_=p.order;(_f)&&Rr(n,h,c)})})}function o(a,i){var s=-1,d,f=0;return u(i,function(c,l){if(e.node(c).dummy==="border"){var h=e.predecessors(c);h.length&&(d=e.node(h[0]).order,t(i,f,l,s,d),f=l,s=d)}t(i,f,i.length,d,a.length)}),i}return G(r,o),n}function Ln(e,r){if(e.node(r).dummy)return W(e.predecessors(r),function(n){return e.node(n).dummy})}function Rr(e,r,n){if(r>n){var t=r;r=n,n=t}Object.prototype.hasOwnProperty.call(e,r)||Object.defineProperty(e,r,{enumerable:!0,configurable:!0,value:{},writable:!0});var o=e[r];Object.defineProperty(o,n,{enumerable:!0,configurable:!0,value:!0,writable:!0})}function Nn(e,r,n){if(r>n){var t=r;r=n,n=t}return!!e[r]&&Object.prototype.hasOwnProperty.call(e[r],n)}function In(e,r,n,t){var o={},a={},i={};return u(r,function(s){u(s,function(d,f){o[d]=d,a[d]=d,i[d]=f})}),u(r,function(s){var d=-1;u(s,function(f){var c=t(f);if(c.length){c=P(c,function(v){return i[v]});for(var l=(c.length-1)/2,h=Math.floor(l),m=Math.ceil(l);h<=m;++h){var g=c[h];a[f]===f&&d{var t=n(" buildLayoutGraph",()=>Wn(e));n(" runLayout",()=>jn(t,n)),n(" updateInputGraph",()=>Bn(e,t))})}function jn(e,r){r(" makeSpaceForEdgeLabels",()=>qn(e)),r(" removeSelfEdges",()=>nt(e)),r(" acyclic",()=>Ue(e)),r(" nestingGraph.run",()=>gr(e)),r(" rank",()=>we($(e))),r(" injectEdgeLabelProxies",()=>Hn(e)),r(" removeEmptyRanks",()=>Ke(e)),r(" nestingGraph.cleanup",()=>wr(e)),r(" normalizeRanks",()=>Je(e)),r(" assignRankMinMax",()=>Jn(e)),r(" removeEdgeLabelProxies",()=>Kn(e)),r(" normalize.run",()=>ir(e)),r(" parentDummyChains",()=>Cr(e)),r(" addBorderSegments",()=>rr(e)),r(" order",()=>Pr(e)),r(" insertSelfEdges",()=>tt(e)),r(" adjustCoordinateSystem",()=>tr(e)),r(" position",()=>Tr(e)),r(" positionSelfEdges",()=>ot(e)),r(" removeBorderNodes",()=>rt(e)),r(" normalize.undo",()=>sr(e)),r(" fixupEdgeLabelCoords",()=>$n(e)),r(" undoCoordinateSystem",()=>or(e)),r(" translateGraph",()=>Qn(e)),r(" assignNodeIntersects",()=>Zn(e)),r(" reversePoints",()=>et(e)),r(" acyclic.undo",()=>We(e))}function Bn(e,r){u(e.nodes(),function(n){var t=e.node(n),o=r.node(n);t&&(t.x=o.x,t.y=o.y,r.children(n).length&&(t.width=o.width,t.height=o.height))}),u(e.edges(),function(n){var t=e.edge(n),o=r.edge(n);t.points=o.points,Object.prototype.hasOwnProperty.call(o,"x")&&(t.x=o.x,t.y=o.y)}),e.graph().width=r.graph().width,e.graph().height=r.graph().height}var Xn=["nodesep","edgesep","ranksep","marginx","marginy"],Gn={ranksep:50,edgesep:20,nodesep:50,rankdir:"tb"},An=["acyclicer","ranker","rankdir","align"],Fn=["width","height"],Vn={width:0,height:0},Yn=["minlen","weight","width","height","labeloffset"],zn={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:"r"},Un=["labelpos"];function Wn(e){var r=new x({multigraph:!0,compound:!0}),n=Ee(e.graph());return r.setGraph(q({},Gn,be(n,Xn),z(n,An))),u(e.nodes(),function(t){var o=Ee(e.node(t));r.setNode(t,Me(be(o,Fn),Vn)),r.setParent(t,e.parent(t))}),u(e.edges(),function(t){var o=Ee(e.edge(t));r.setEdge(t,q({},zn,be(o,Yn),z(o,Un)))}),r}function qn(e){var r=e.graph();r.ranksep/=2,u(e.edges(),function(n){var t=e.edge(n);t.minlen*=2,t.labelpos.toLowerCase()!=="c"&&(r.rankdir==="TB"||r.rankdir==="BT"?t.width+=t.labeloffset:t.height+=t.labeloffset)})}function Hn(e){u(e.edges(),function(r){var n=e.edge(r);if(n.width&&n.height){var t=e.node(r.v),o=e.node(r.w),a={rank:(o.rank-t.rank)/2+t.rank,e:r};I(e,"edge-proxy",a,"_ep")}})}function Jn(e){var r=0;u(e.nodes(),function(n){var t=e.node(n);t.borderTop&&(t.minRank=e.node(t.borderTop).rank,t.maxRank=e.node(t.borderBottom).rank,r=L(r,t.maxRank))}),e.graph().maxRank=r}function Kn(e){u(e.nodes(),function(r){var n=e.node(r);n.dummy==="edge-proxy"&&(e.edge(n.e).labelRank=n.rank,e.removeNode(r))})}function Qn(e){var r=Number.POSITIVE_INFINITY,n=0,t=Number.POSITIVE_INFINITY,o=0,a=e.graph(),i=a.marginx||0,s=a.marginy||0;function d(f){var c=f.x,l=f.y,h=f.width,m=f.height;r=Math.min(r,c-h/2),n=Math.max(n,c+h/2),t=Math.min(t,l-m/2),o=Math.max(o,l+m/2)}u(e.nodes(),function(f){d(e.node(f))}),u(e.edges(),function(f){var c=e.edge(f);Object.prototype.hasOwnProperty.call(c,"x")&&d(c)}),r-=i,t-=s,u(e.nodes(),function(f){var c=e.node(f);c.x-=r,c.y-=t}),u(e.edges(),function(f){var c=e.edge(f);u(c.points,function(l){l.x-=r,l.y-=t}),Object.prototype.hasOwnProperty.call(c,"x")&&(c.x-=r),Object.prototype.hasOwnProperty.call(c,"y")&&(c.y-=t)}),a.width=n-r+i,a.height=o-t+s}function Zn(e){u(e.edges(),function(r){var n=e.edge(r),t=e.node(r.v),o=e.node(r.w),a,i;n.points?(a=n.points[0],i=n.points[n.points.length-1]):(n.points=[],a=o,i=t),n.points.unshift(fe(t,a)),n.points.push(fe(o,i))})}function $n(e){u(e.edges(),function(r){var n=e.edge(r);if(Object.prototype.hasOwnProperty.call(n,"x"))switch((n.labelpos==="l"||n.labelpos==="r")&&(n.width-=n.labeloffset),n.labelpos){case"l":n.x-=n.width/2+n.labeloffset;break;case"r":n.x+=n.width/2+n.labeloffset;break}})}function et(e){u(e.edges(),function(r){var n=e.edge(r);n.reversed&&n.points.reverse()})}function rt(e){u(e.nodes(),function(r){if(e.children(r).length){var n=e.node(r),t=e.node(n.borderTop),o=e.node(n.borderBottom),a=e.node(X(n.borderLeft)),i=e.node(X(n.borderRight));n.width=Math.abs(i.x-a.x),n.height=Math.abs(o.y-t.y),n.x=a.x+n.width/2,n.y=t.y+n.height/2}}),u(e.nodes(),function(r){e.node(r).dummy==="border"&&e.removeNode(r)})}function nt(e){u(e.edges(),function(r){if(r.v===r.w){var n=e.node(r.v);n.selfEdges||(n.selfEdges=[]),n.selfEdges.push({e:r,label:e.edge(r)}),e.removeEdge(r)}})}function tt(e){var r=M(e);u(r,function(n){var t=0;u(n,function(o,a){var i=e.node(o);i.order=a+t,u(i.selfEdges,function(s){I(e,"selfedge",{width:s.label.width,height:s.label.height,rank:i.rank,order:a+ ++t,e:s.e,label:s.label},"_se")}),delete i.selfEdges})})}function ot(e){u(e.nodes(),function(r){var n=e.node(r);if(n.dummy==="selfedge"){var t=e.node(n.e.v),o=t.x+t.width/2,a=t.y,i=n.x-o,s=t.height/2;e.setEdge(n.e,n.label),e.removeNode(r),n.label.points=[{x:o+2*i/3,y:a-s},{x:o+5*i/6,y:a-s},{x:o+i,y:a},{x:o+5*i/6,y:a+s},{x:o+2*i/3,y:a+s}],n.label.x=n.x,n.label.y=n.y}})}function be(e,r){return V(z(e,r),Number)}function Ee(e){var r={};return u(e,function(n,t){r[t.toLowerCase()]=n}),r}var Mr=E((e,r,n)=>Math.max(r,Math.min(n,e)),"clamp"),jr=E((e="TB")=>{switch(e){case"BT":return"bottom";case"LR":return"right";case"RL":return"left";default:return"top"}},"getDefaultSelfLoopSide"),at=E(e=>e==="flowchart"||e==="flowchart-v2"||e==="stateDiagram"||e==="er"||e==="classDiagram","shouldMergeSelfLoopSegments"),it=["x","y","width","height","labelBBox","intersect","calcIntersect","diff","clusterNode"],st=E((e,r,n,t,o)=>{let a=[],i=new Set;if(n.forEach(({start:c,end:l})=>{c!==t&&i.add(c),l!==t&&i.add(l)}),i.forEach(c=>{let l=e.node(c);typeof l?.x=="number"&&typeof l?.y=="number"&&a.push(l)}),a.length===0&&n.forEach(({edge:c})=>{(c.points??[]).forEach(l=>{typeof l?.x=="number"&&typeof l?.y=="number"&&a.push(l)})}),a.length===0)return jr(o);let s=a.reduce((c,l)=>({x:c.x+l.x/a.length,y:c.y+l.y/a.length}),{x:0,y:0}),d=s.x-r.x,f=s.y-r.y;return Math.abs(d)>Math.abs(f)?d>0?"right":"left":Math.abs(f)>0?f>0?"bottom":"top":jr(o)},"getSelfLoopSide"),dt=E((e,r="top",n=0,t=0)=>{let o=e.x,a=e.y-n,i=e.width/2,s=e.height/2,d=Math.max(36,Math.min(100,e.width*.8)),f=Mr(Math.max(t,e.width*.35),36,d),c=Mr(Math.min(e.width,e.height)*.45,24,48);switch(r){case"bottom":{let l=a+s;return[{x:o-f/2,y:l},{x:o-f/2,y:l+c},{x:o+f/2,y:l+c},{x:o+f/2,y:l}]}case"right":{let l=o+i;return[{x:l,y:a-f/2},{x:l+c,y:a-f/2},{x:l+c,y:a+f/2},{x:l,y:a+f/2}]}case"left":{let l=o-i;return[{x:l,y:a-f/2},{x:l-c,y:a-f/2},{x:l-c,y:a+f/2},{x:l,y:a+f/2}]}default:{let l=a-s;return[{x:o-f/2,y:l},{x:o-f/2,y:l-c},{x:o+f/2,y:l-c},{x:o+f/2,y:l}]}}},"getSelfLoopPoints"),ft=E((e,r,n="top",t=0,o={})=>{let i=e.x,s=e.y-t,d=o.width??0,f=o.height??0;switch(n){case"bottom":return{x:i,y:Math.max(...r.map(c=>c.y))+f/2+4};case"right":return{x:Math.max(...r.map(c=>c.x))+d/2+4,y:s};case"left":return{x:Math.min(...r.map(c=>c.x))-d/2-4,y:s};default:return{x:i,y:Math.min(...r.map(c=>c.y))-f/2-4}}},"getSelfLoopLabelPosition"),Xr=E((e,r=0,{mergeSelfLoops:n=!0}={})=>{let t=new Map,o=[],a=e.graph()?.rankdir;return e.edges().forEach(i=>{let s=e.edge(i);if(n&&s.selfLoop){let d=s.selfLoop.id;t.has(d)||t.set(d,[]),t.get(d).push({edge:s,start:i.v,end:i.w})}else o.push({edge:s,start:i.v,end:i.w})}),t.forEach(i=>{if(i.length!==3){i.forEach(_=>o.push(_));return}i.sort((_,R)=>_.edge.selfLoop.order-R.edge.selfLoop.order);let[s,d,f]=i,c=s.edge.originalEdge??d.edge.originalEdge??f.edge.originalEdge??d.edge,l=e.node(c.start);if(!l){i.forEach(_=>o.push(_));return}let h={width:d.edge.width,height:d.edge.height},m=st(e,l,i,c.start,a),g=dt(l,m,r,h.width??0),v=ft(l,g,m,r,h),p={...d.edge,...c,id:c.id,points:g,start:c.start,end:c.end,x:v.x,y:v.y,width:h.width,height:h.height,labelStyle:d.edge.labelStyle,fromCluster:s.edge.fromCluster??d.edge.fromCluster??f.edge.fromCluster,toCluster:s.edge.toCluster??d.edge.toCluster??f.edge.toCluster};delete p.selfLoop,delete p.originalEdge,o.push({edge:p,start:p.start,end:p.end})}),o},"getEdgesToRender"),Gr=E(async({element:e,graph:r,diagramType:n,id:t,parentCluster:o,siteConfig:a})=>{let i=r.graph().rankdir;w.trace("Dir in recursive render - dir:",i);let{clusters:s,edgePaths:d,edgeLabels:f,nodes:c,rootGroups:l}=Ge(e,{edgePathsClass:"edgePaths"});r.nodes()?w.info("Recursive render XXX",r.nodes()):w.info("No nodes found for",r),r.edges().length>0&&w.info("Recursive edges",r.edge(r.edges()[0]));let h=at(n);await Promise.all(r.nodes().map(async function(v){let p=r.node(v);if(o!==void 0){let _=JSON.parse(JSON.stringify(o.clusterData));w.trace(`Setting data for parent cluster XXX + Node.id = `,v,` + data=`,_.height,` +Parent cluster`,o.height),r.setNode(o.id,_),r.parent(v)||(w.trace("Setting parent",v,o.id),r.setParent(v,o.id,_))}if(w.info("(Insert) Node XXX"+v+": "+JSON.stringify(r.node(v))),p?.clusterNode){w.info("Cluster identified XBX",v,p.width,r.node(v));let{ranksep:_,nodesep:R}=r.graph();p.graph.setGraph({...p.graph.graph(),ranksep:_+25,nodesep:R});let ke=await pt({element:c,graph:p.graph,diagramType:n,id:t,parentCluster:r.node(v),siteConfig:a}),Le=ke.elem;Ie(p,Le),p.diff=ke.diff||0,w.info("New compound node after recursive render XAX",v,"width",p.width,"height",p.height),Se(Le,p)}else r.children(v).length>0?(w.trace("Cluster - the non recursive path XBX",v,p.id,p,p.width,"Graph:",r),w.trace(ie(p.id,r)),C.set(p.id,{id:ie(p.id,r),node:p})):(w.trace("Node - the non recursive path XAX",v,c,r.node(v),i),await Ae(c,r.node(v),{config:a,dir:i}))})),await E(async()=>{let v=r.edges().map(async function(p){let _=r.edge(p.v,p.w,p.name);if(w.info("Edge "+p.v+" -> "+p.w+": "+JSON.stringify(p)),w.info("Edge "+p.v+" -> "+p.w+": ",p," ",JSON.stringify(r.edge(p))),w.info("Fix",C,"ids:",p.v,p.w,"Translating: ",C.get(p.v),C.get(p.w)),h&&_.selfLoop){if(_.selfLoop.order!==1)return;let R={..._.originalEdge,..._,id:_.selfLoop.id,startLabelLeft:_.originalEdge?.startLabelLeft??_.startLabelLeft,startLabelRight:_.originalEdge?.startLabelRight??_.startLabelRight,endLabelLeft:_.originalEdge?.endLabelLeft??_.endLabelLeft,endLabelRight:_.originalEdge?.endLabelRight??_.endLabelRight};await te(f,R),_.width=R.width,_.height=R.height,_.labelStyle=R.labelStyle;return}await te(f,_)});await Promise.all(v)},"processEdges")();let{subGraphTitleTotalMargin:g}=Oe(a);return{elem:l,graph:r,groups:{clusters:s,edgePaths:d,edgeLabels:f,nodes:c,rootGroups:l},diagramType:n,id:t,mergeSelfLoops:h,subGraphTitleTotalMargin:g}},"measureDagreGraph"),Ar=E(e=>{w.info("############################################# XXX"),w.info("### Layout ### XXX"),w.info("############################################# XXX"),xe(e)},"runDagreGraphLayout"),ct=E((e,r,n)=>{let t=e.node(r);if(!t)return;let o={...t};return t?.clusterNode?o.y=(t.y??0)+n:e.children(r).length>0?o.height=(t.height??0)+n:o.y=(t.y??0)+n/2,o},"normalizeDagreNode"),Br=E((e,r)=>{it.forEach(n=>{r[n]!==void 0&&(e[n]=r[n])})},"applyDagreNodeLayout"),ut=E((e,r,n,t)=>({...e,start:e.start??r,end:e.end??n,points:(e.points??[]).map(o=>({...o,y:typeof o.y=="number"?o.y+t:o.y}))}),"normalizeDagreEdge"),lt=E((e,r)=>{let{graph:n,mergeSelfLoops:t,subGraphTitleTotalMargin:o=0}=r,a=new Map(e.nodes.map(s=>[s.id,s]));Q(n).forEach(s=>{let d=ct(n,s,o);if(!d)return;Br(n.node(s),d);let f=a.get(s);f&&Br(f,d)});let i=o/2;return e.edges=Xr(n,i,{mergeSelfLoops:t}).map(({edge:s,start:d,end:f})=>ut(s,d,f,i)),e},"applyDagreLayoutResult"),ht=E(async({elem:e,graph:r,groups:{clusters:n,edgePaths:t},diagramType:o,id:a,mergeSelfLoops:i,subGraphTitleTotalMargin:s})=>{let d=0;await Promise.all(Q(r).map(async function(l){let h=r.node(l);if(w.info("Position XBX => "+l+": ("+h.x,","+h.y,") width: ",h.width," height: ",h.height),h?.clusterNode)h.y+=s,w.info("A tainted cluster node XBX1",l,h.id,h.width,h.height,h.x,h.y,r.parent(l)),C.get(h.id).node=h,ne(h);else if(r.children(l).length>0){w.info("A pure cluster node XBX1",l,h.id,h.x,h.y,h.width,h.height,r.parent(l)),h.height+=s,r.node(h.parentId);let m=h?.padding/2||0,g=h?.labelBBox?.height||0,v=g-m||0;w.debug("OffsetY",v,"labelHeight",g,"halfPadding",m),await Pe(n,h),C.get(h.id).node=h}else{let m=r.node(h.parentId);h.y+=s/2,w.info("A regular node XBX1 - using the padding",h.id,"parent",h.parentId,h.width,h.height,h.x,h.y,"offsetY",h.offsetY,"parent",m,m?.offsetY,h),ne(h)}}));let f=s/2;return Xr(r,f,{mergeSelfLoops:i}).forEach(function({edge:l,start:h,end:m}){w.info("Edge "+h+" -> "+m+": "+JSON.stringify(l),l),l.points.forEach(_=>_.y+=f);let g=r.node(h),v=r.node(m),p=Re(t,l,C,o,g,v,a);Ce(l,p)}),r.nodes().forEach(function(l){let h=r.node(l);w.info(l,h.type,h.diff),h.isGroup&&(d=h.diff)}),w.warn("Returning from recursive render XAX",e,d),{elem:e,diff:d}},"paintDagreLayoutCore"),pt=E(async e=>{let r=await Gr(e);return Ar(r.graph),await ht(r)},"renderDagreSubgraph"),Fr=E(e=>{let r=new x({multigraph:!0,compound:!0}).setGraph({rankdir:e.direction,nodesep:e.config?.nodeSpacing||e.nodeSpacing||e.config?.flowchart?.nodeSpacing,ranksep:e.config?.rankSpacing||e.rankSpacing||e.config?.flowchart?.rankSpacing,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}});return e.nodes.forEach(n=>{r.setNode(n.id,{...n}),n.parentId&&r.setParent(n.id,n.parentId)}),w.debug("Edges:",e.edges),e.edges.forEach(n=>{if(n.start===n.end){let t=n.start,o=t+"---"+t+"---1",a=t+"---"+t+"---2",i=r.node(t);r.setNode(o,{domId:o,id:o,parentId:i.parentId,labelStyle:"",label:"",padding:0,shape:"labelRect",style:"",width:10,height:10}),r.setParent(o,i.parentId),r.setNode(a,{domId:a,id:a,parentId:i.parentId,labelStyle:"",padding:0,shape:"labelRect",label:"",style:"",width:10,height:10}),r.setParent(a,i.parentId);let s=structuredClone(n),d=structuredClone(n),f=structuredClone(n),c=structuredClone(n);d.originalEdge=s,d.selfLoop={id:s.id,order:0},f.originalEdge=s,f.selfLoop={id:s.id,order:1},c.originalEdge=s,c.selfLoop={id:s.id,order:2},d.label="",d.arrowTypeEnd="none",d.endLabelLeft="",d.endLabelRight="",d.startLabelLeft="",d.id=t+"-cyclic-special-1",f.startLabelRight="",f.startLabelLeft="",f.endLabelLeft="",f.endLabelRight="",f.arrowTypeStart="none",f.arrowTypeEnd="none",f.id=t+"-cyclic-special-mid",c.label="",c.startLabelRight="",c.startLabelLeft="",c.arrowTypeStart="none",i.isGroup&&(d.fromCluster=t,c.toCluster=t),c.id=t+"-cyclic-special-2",c.arrowTypeStart="none",r.setEdge(t,o,d,t+"-cyclic-special-0"),r.setEdge(o,a,f,t+"-cyclic-special-1"),r.setEdge(a,t,c,t+"-cyclic-special-2")}else r.setEdge(n.start,n.end,{...n},n.id)}),Fe(r),{graph:r}},"prepareLayoutForDagre"),mt=E(async(e,{element:r,preparedLayout:n})=>{let t=n??Fr(e),o=Ne(),a=await Gr({element:r,graph:t.graph,diagramType:e.type,id:e.diagramId,parentCluster:void 0,siteConfig:o});return t.measuredLayout=a,a},"measureDagreLayout"),vt=E((e,r)=>{let n=r.preparedLayout?.measuredLayout;if(!n)throw new Error("runDagreLayoutCore requires measureDagreLayout to run first");return Ar(n.graph),lt(e,n),n},"runDagreLayoutCore"),gt=E((e,{measure:r})=>Q(r.graph).map(n=>r.graph.node(n)).filter(Boolean),"getDagrePaintNodes"),_t=E((e,r,{measure:n})=>e?n.graph.node(e):void 0,"getDagreEdgeNode"),ya=Ve({prepareLayout:Fr,measureLayout:mt,runLayoutCore:vt,paintOptions:{clusterDb:C,getNodes:gt,getEdgeNode:_t,skipNode:E((e,{measure:r})=>!r.graph.hasNode(e.id),"skipNode"),isCluster:E((e,{measure:r})=>r.graph.hasNode(e.id)&&(r.graph.children(e.id)??[]).length>0,"isCluster")}});export{lt as applyDagreLayoutResult,Xr as getEdgesToRender,mt as measureDagreLayout,Fr as prepareLayoutForDagre,ya as render,vt as runDagreLayoutCore}; diff --git a/src/frontend/web/von_interface/static/vendor/conversation-visuals/diagram-22UHCM2B-HFGCFOHX.js b/src/frontend/web/von_interface/static/vendor/conversation-visuals/diagram-22UHCM2B-HFGCFOHX.js new file mode 100644 index 000000000..9710b377c --- /dev/null +++ b/src/frontend/web/von_interface/static/vendor/conversation-visuals/diagram-22UHCM2B-HFGCFOHX.js @@ -0,0 +1,200 @@ +import{a as D1}from"./chunk-QP3MATMC.js";import{a as _1}from"./chunk-VNMAEQZK.js";import{a as v1}from"./chunk-EQQJCVK6.js";import{a as Ut,b as jt}from"./chunk-GDGZBOQC.js";import{b as S1,c as x1}from"./chunk-2AVNI7YL.js";import"./chunk-SNMBC6G5.js";import"./chunk-AKE2LJPJ.js";import"./chunk-NDMMOI35.js";import"./chunk-T4OFBIBR.js";import{h as T1}from"./chunk-L56KSVJM.js";import{h as C1}from"./chunk-TEBTVNCH.js";import"./chunk-HVVAQLXH.js";import"./chunk-IVPOI5SM.js";import"./chunk-O46DUOKR.js";import"./chunk-C7YISUMK.js";import{b as k1,c as m1,d as A1,f as E1}from"./chunk-6NDAIVIK.js";import{p as It,s as Lt}from"./chunk-EUYVSIXP.js";import"./chunk-QSTT4QQC.js";import{$ as ce,O as u1,U as l1,V as c1,W as d1,X as h1,Y as p1,Z as f1,_ as g1,a as n1,aa as Gt,b as a1,ba as b1,g as o1}from"./chunk-S4JILX6U.js";import{b as ie,h as Vt}from"./chunk-XEQL7KGA.js";import{a as A}from"./chunk-YUSHYV7C.js";import"./chunk-3RNHDNP5.js";var et={SHAPE_UNSUPPORTED:"SHAPE_UNSUPPORTED",SHAPE_REMOVED:"SHAPE_REMOVED",EDGE_OPERATOR_UNSUPPORTED:"EDGE_OPERATOR_UNSUPPORTED",REFERENCE_EDGE_LABEL_REJECTED:"REFERENCE_EDGE_LABEL_REJECTED",CONNECTOR_REF_UNRESOLVED:"CONNECTOR_REF_UNRESOLVED",CONNECTOR_REF_NOT_A_CONNECTOR:"CONNECTOR_REF_NOT_A_CONNECTOR",METADATA_KEY_MISAPPLIED:"METADATA_KEY_MISAPPLIED",DUPLICATE_ID_NODE:"DUPLICATE_ID_NODE",RESERVED_SYNTHETIC_ID:"RESERVED_SYNTHETIC_ID",CONTAINMENT_VIOLATION:"CONTAINMENT_VIOLATION",EDGE_SEMANTIC_CONTRADICTION:"EDGE_SEMANTIC_CONTRADICTION",FLOW_NO_INPUT:"FLOW_NO_INPUT"},z1=new Set([et.SHAPE_UNSUPPORTED,et.SHAPE_REMOVED,et.CONTAINMENT_VIOLATION]),vs=new Set(Object.values(et).filter(e=>!z1.has(e))),W1=new Map([["task","roundedRect"],["tool","subroutine"],["input","lean-right"],["decision","diamond"],["refdoc","lin-doc"],["action","hexagon"],["round","rect"]]),K1=new Set(["doc","stadium","terminal","circle","trapezoid","inv_trapezoid","inv-trapezoid","doublecircle","double-circle","typeDeclaration","procs","lean_left","lean-left","in-out","cylinder","ellipse","odd","tag-rect","tagged-rectangle","delay","half-rounded-rectangle","lin-rect","lined-rectangle","win-pane","window-pane","curv-trap","curved-trapezoid"]),H1=new Set(["roundedRect","subroutine","subprocess","subproc","framed-rectangle","lean-right","diamond","lin-doc","lined-document","hexagon","hex","connector","collapsedGroup"]),Ze="roundedRect";function $e(e){return e&&(W1.get(e)??e)}A($e,"resolveShapeAlias");function V1(e,i){for(let r of e)if(!r.isGroup){if((!r.shape||r.shape==="squareRect"||r.shape==="rect")&&(r.shape=Ze),K1.has(r.shape)){let n=`shape "${r.shape}" was removed in v0.8.1, using "${Ze}"`;i?.emitError?i.emitError("SHAPE_REMOVED",n,{nodeId:r.id}):ie.warn(`agentflow: ${n}`),r.shape=Ze;continue}if(!H1.has(r.shape)){let n=`shape "${r.shape}" is not supported, using "${Ze}"`;i?.emitWarning?i.emitWarning("SHAPE_UNSUPPORTED",n,{nodeId:r.id}):ie.warn(`agentflow: ${n}`),r.shape=Ze}}}A(V1,"normaliseNodeShapes");var Mt=new Map([["tool",0],["task",1],["decision",2],["input",3],["refdoc",4],["connector",5],["action",6]]),I1=Mt.size,L1=A(e=>`af-kind-${e}`,"kindClass"),Y1=[...Mt.keys()],B1=A(e=>Math.max(1,e-I1),"containerSlotCount"),M1=A((e,i)=>{let r=I1+e%B1(i);return i>0?r%i:r},"containerSlot");function y1(e,i,r){let n=ce().themeVariables?.borderColorArray,u=Array.isArray(n)?n.length:0,l=r.size;for(let a of e??[]){if(a.isGroup||a.shape==="collapsedGroup"){let f=r.get(String(a.id))??l++;a.colorIndex=M1(f,u);continue}let c=i(String(a.id));c&&Mt.has(c)&&(a.cssClasses=`${a.cssClasses??""} ${L1(c)}`.replace(/\s+/g," ").trim())}}A(y1,"assignColorSlots");var F1="agentflow-",zt=new Set(["shape","view","icon","img","form","pos","w","h","class","style","labelType"]),q1=new Set(["subroutine","subprocess","subproc","framed-rectangle","tool"]),X1={flow:"flowGroup"};function Bt(e){if(Array.isArray(e))return e.map(r=>Bt(r));if(e===null||typeof e!="object")return e;let i={};for(let r of Object.keys(e))r==="__proto__"||r==="constructor"||r==="prototype"||(i[r]=Bt(e[r]));return i}A(Bt,"stripPrototypeKeys");function w1(e){let i=!1,r=!1,n=0,u,l=[];for(let a of e.split(` +`)){if(u!==void 0){let g=a.length-a.trimStart().length;if(a.trim()===""||g>u){l.push(a);continue}u=void 0}let c=-1;for(let g=0;g0){l.push(a);continue}let f=c>=0?a.slice(0,c):a,p=c>=0?a.slice(c):"";if(/:\s*[>|][\d+-]*\s*$/.test(f)){u=a.length-a.trimStart().length,l.push(a);continue}l.push(f.replace(/,([\t ]*)$/,"$1")+p)}return l.join(` +`)}A(w1,"stripLineTrailingCommas");var Q1=class{constructor(){this.vertexCounter=0,this.config=ce(),this.vertices=new Map,this.edges=[],this.classes=new Map,this.subGraphs=[],this.subGraphLookup=new Map,this.globalNodes=new Set,this.connectors=new Map,this.tooltips=new Map,this.subCount=0,this.firstGraphFlag=!0,this.secCount=-1,this.posCrossRef=[],this.diagramId="",this.preserveCommentsWhenParsing=!0,this.frontmatterLineOffset=0,this.elementMappings=[],this.bareVertexMappings=new WeakSet,this.diagnostics=[],this.postParseValidationRun=!1,this.funs=[],this.setAccTitle=c1,this.setAccDescription=h1,this.setDiagramTitle=f1,this.getAccTitle=d1,this.getAccDescription=p1,this.getDiagramTitle=g1,this.funs.push(this.setupToolTips.bind(this)),this.addVertex=this.addVertex.bind(this),this.firstGraph=this.firstGraph.bind(this),this.setDirection=this.setDirection.bind(this),this.addSubGraph=this.addSubGraph.bind(this),this.addGlobal=this.addGlobal.bind(this),this.addConnector=this.addConnector.bind(this),this.addConnectorMapping=this.addConnectorMapping.bind(this),this.addLink=this.addLink.bind(this),this.setLink=this.setLink.bind(this),this.updateLink=this.updateLink.bind(this),this.addClass=this.addClass.bind(this),this.setClass=this.setClass.bind(this),this.destructLink=this.destructLink.bind(this),this.setClickEvent=this.setClickEvent.bind(this),this.setTooltip=this.setTooltip.bind(this),this.updateLinkInterpolate=this.updateLinkInterpolate.bind(this),this.setClickFun=this.setClickFun.bind(this),this.bindFunctions=this.bindFunctions.bind(this),this.setFrontmatterLineOffset=this.setFrontmatterLineOffset.bind(this),this.addVertexMapping=this.addVertexMapping.bind(this),this.extendVertexMapping=this.extendVertexMapping.bind(this),this.addEdgeMapping=this.addEdgeMapping.bind(this),this.addSubgraphMapping=this.addSubgraphMapping.bind(this),this.emitWarning=this.emitWarning.bind(this),this.emitError=this.emitError.bind(this),this.getDiagnostics=this.getDiagnostics.bind(this),this.lex={firstGraph:this.firstGraph.bind(this)},this.clear(),this.setGen("gen-2")}static{A(this,"AgentFlowDB")}sanitizeText(e){return u1.sanitizeText(e,this.config)}sanitizeNodeLabelType(e){switch(e){case"markdown":case"string":case"text":return e;default:return"markdown"}}setDiagramId(e){this.diagramId=e}lookUpDomId(e){for(let i of this.vertices.values())if(i.id===e)return this.diagramId?`${this.diagramId}-${i.domId}`:i.domId;return this.diagramId?`${this.diagramId}-${e}`:e}addVertex(e,i,r,n,u,l,a={},c,f){if(!e||e.trim().length===0)return;let p;if(c!==void 0){let b;c.includes(` +`)?b=c+` +`:b=`{ +`+c+` +}`;try{p=jt(b,{schema:Ut})??{}}catch(d){let h=c.includes(` +`)?w1(c):c;if(h!==c)try{p=jt(h+` +`,{schema:Ut})??{}}catch{this.rethrowMetadataYamlError(d,c,f)}else this.rethrowMetadataYamlError(d,c,f)}p=Bt(p)}let g;if(p&&typeof p.shape=="string"){let b=p;g=b.shape;let d=$e(g);d&&d!==g&&(b.shape=d)}let k=this.subGraphLookup.get(e);if(k&&p){k.metadata={...k.metadata,...p};return}let v=this.connectors.get(e);if(v&&p){v.metadata={...v.metadata,...p};return}if(e==="connectors")return;let S=this.edges.find(b=>b.id===e);if(S){let b=p;b?.animate!==void 0&&(S.animate=b.animate),b?.animation!==void 0&&(S.animation=b.animation),b?.curve!==void 0&&(S.interpolate=b.curve),p&&(S.metadata={...S.metadata,...p});return}let B,T=this.vertices.get(e);if(T===void 0&&(T={id:e,labelType:"text",domId:F1+e+"-"+this.vertexCounter,styles:[],classes:[]},this.vertices.set(e,T)),this.vertexCounter++,i!==void 0?(this.config=ce(),B=this.sanitizeText(i.text.trim()),T.labelType=i.type,B.startsWith('"')&&B.endsWith('"')&&(B=B.substring(1,B.length-1)),T.text=B):T.text===void 0&&(T.text=e),r!==void 0&&(T.type=r),n?.forEach(b=>{T.styles.push(b)}),u?.forEach(b=>{T.classes.push(b)}),l!==void 0&&(T.dir=l),T.props===void 0?T.props=a:a!==void 0&&Object.assign(T.props,a),p){if(T.metadata={...T.metadata,...p},p.shape){let b=g??p.shape;if(typeof b!="string")throw this.positionedShapeError(`No such shape: ${JSON.stringify(b)}.`,f);if(b!==b.toLowerCase()||b.includes("_"))throw this.positionedShapeError(`No such shape: ${b}. Shape names should be lowercase.`,f);if(!C1(p.shape))throw this.positionedShapeError(`No such shape: ${p.shape}.`,f);T.type=p?.shape}p?.label&&(T.text=this.sanitizeText(p.label),T.labelType=this.sanitizeNodeLabelType(p?.labelType))}}positionedShapeError(e,i){let r=new Error(e);if(!i)return r;let n=i.first_line+this.frontmatterLineOffset;return Object.assign(r,{hash:{text:"",token:null,line:n-1,loc:{first_line:n,last_line:i.last_line+this.frontmatterLineOffset,first_column:i.first_column,last_column:i.last_column},expected:[]}}),r}rethrowMetadataYamlError(e,i,r){let n=e;if(!n||n.name!=="YAMLException"||!n.mark||!r)throw e;let u;try{let l=!i.includes(` +`),a=l?`{ +`+i+` +}`:i+` +`,c=r.first_line+this.frontmatterLineOffset,f=r.first_column+2,p=A((b,d)=>l?{line:c,column:f+(b===1?d:0)}:{line:c+b,column:b===0?f+d:d},"toSource"),g=p(n.mark.line,n.mark.column),k=n.reason??(n.message??"").split(` +`)[0].replace(/\s*\(\d+:\d+\)\s*$/,""),v=a.split(` +`),S=[];if(l)S.push(1);else for(let b=n.mark.line-1;b<=n.mark.line+1;b++)b<0||b>=v.length||b===v.length-1&&v[b]===""&&b!==n.mark.line||S.push(b);let B=Math.max(...S.map(b=>String(p(b,0).line).length)),T=[];for(let b of S){let d=p(b,0).line,h=` ${String(d).padStart(B)} | `;T.push(h+v[b].replace(/\t/g,"\u2192")),b===n.mark.line&&T.push("-".repeat(h.length+n.mark.column)+"^")}u={message:`${k} (${g.line}:${g.column+1}) + +${T.join(` +`)}`,markLine:g.line-1,markColumn:g.column,hash:{text:"",token:null,line:g.line-1,loc:{first_line:g.line,last_line:g.line,first_column:g.column,last_column:g.column+1},expected:[]}}}catch{}throw u&&(n.message=u.message,n.mark.line=u.markLine,n.mark.column=u.markColumn,n.hash=u.hash),n}addSingleLink(e,i,r,n){let a={start:e,end:i,type:void 0,text:"",labelType:"text",classes:[],isUserDefinedId:!1,interpolate:this.edges.defaultInterpolate};ie.info("abc78 Got edge...",a);let c=r.text;if(c!==void 0&&(a.text=this.sanitizeText(c.text.trim()),a.text.startsWith('"')&&a.text.endsWith('"')&&(a.text=a.text.substring(1,a.text.length-1)),a.labelType=this.sanitizeNodeLabelType(c.type)),r!==void 0&&(a.type=r.type,a.stroke=r.stroke,a.length=r.length>10?10:r.length,r.edgeSemantic&&(a.edgeSemantic=r.edgeSemantic)),n&&!this.edges.some(f=>f.id===n))a.id=n,a.isUserDefinedId=!0;else{let f=this.edges.filter(p=>p.start===a.start&&p.end===a.end);f.length===0?a.id=Lt(a.start,a.end,{counter:0,prefix:"L"}):a.id=Lt(a.start,a.end,{counter:f.length+1,prefix:"L"})}if(this.edges.length<(this.config.maxEdges??500))ie.info("Pushing edge..."),this.edges.push(a);else throw new Error(`Edge limit exceeded. ${this.edges.length} edges found, but the limit is ${this.config.maxEdges}. + +Initialize mermaid with maxEdges set to a higher number to allow more edges. +You cannot set this config via configuration inside the diagram as it is a secure config. +You have to call mermaid.initialize.`)}isLinkData(e){return e!==null&&typeof e=="object"&&"id"in e&&typeof e.id=="string"}addLink(e,i,r){let n=this.isLinkData(r)?r.id.replace("@",""):void 0;ie.info("addLink",e,i,n);for(let u of e)for(let l of i){let a=u===e[e.length-1],c=l===i[0];a&&c?this.addSingleLink(u,l,r,n):this.addSingleLink(u,l,r,void 0)}}updateLinkInterpolate(e,i){e.forEach(r=>{if(r==="default"){this.edges.defaultInterpolate=i;return}if(typeof r=="number"&&r>=this.edges.length)throw new Error(`The index ${r} for linkStyle is out of bounds. Valid indices for linkStyle are between 0 and ${this.edges.length-1}. (Help: Ensure that the index is within the range of existing edges.)`);this.edges[r].interpolate=i})}updateLink(e,i){e.forEach(r=>{if(typeof r=="number"&&r>=this.edges.length)throw new Error(`The index ${r} for linkStyle is out of bounds. Valid indices for linkStyle are between 0 and ${this.edges.length-1}. (Help: Ensure that the index is within the range of existing edges.)`);r==="default"?this.edges.defaultStyle=i:(this.edges[r].style=i,(this.edges[r]?.style?.length??0)>0&&!this.edges[r]?.style?.some(n=>n?.startsWith("fill"))&&this.edges[r]?.style?.push("fill:none"))})}addClass(e,i){let r=i.join().replace(/\\,/g,"\xA7\xA7\xA7").replace(/,/g,";").replace(/§§§/g,",").split(";");e.split(",").forEach(n=>{let u=this.classes.get(n);u===void 0&&(u={id:n,styles:[],textStyles:[]},this.classes.set(n,u)),r?.forEach(l=>{if(/color/.exec(l)){let a=l.replace("fill","bgFill");u.textStyles.push(a)}u.styles.push(l)})})}setDirection(e){this.direction=e.trim(),/.*/.exec(this.direction)&&(this.direction="LR"),/.*v/.exec(this.direction)&&(this.direction="TB"),this.direction==="TD"&&(this.direction="TB")}setClass(e,i){for(let r of e.split(",")){let n=this.vertices.get(r);n&&n.classes.push(i);let u=this.edges.find(a=>a.id===r);u&&u.classes.push(i);let l=this.subGraphLookup.get(r);l&&l.classes.push(i)}}setTooltip(e,i){if(i!==void 0){i=this.sanitizeText(i);for(let r of e.split(","))this.tooltips.set(this.version==="gen-1"?this.lookUpDomId(r):r,i)}}setClickFun(e,i,r){if(ce().securityLevel!=="loose"||i===void 0)return;let n=[];if(typeof r=="string"){n=r.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(let l=0;l{let l=this.lookUpDomId(e),a=document.querySelector(`[id="${l}"]`);a!==null&&a.addEventListener("click",()=>{It.runFunc(i,...n)},!1)}))}setLink(e,i,r){e.split(",").forEach(n=>{let u=this.vertices.get(n);u!==void 0&&(u.link=It.formatUrl(i,this.config),u.linkTarget=r)}),this.setClass(e,"clickable")}getTooltip(e){return this.tooltips.get(e)}setClickEvent(e,i,r){e.split(",").forEach(n=>{this.setClickFun(n,i,r)}),this.setClass(e,"clickable")}bindFunctions(e){this.funs.forEach(i=>{i(e)})}getDirection(){return this.direction?.trim()}getVertices(){return this.vertices}getEdges(){return this.edges}isToolDefinition(e){return q1.has(e.type)}getTools(){let e=[];for(let i of this.vertices.values())this.isToolDefinition(i)&&e.push(i);return e}getClasses(){return this.classes}setupToolTips(e){let i=T1();Vt(e).select("svg").selectAll("g.node").on("mouseover",u=>{let l=Vt(u.currentTarget),a=l.attr("title");if(a===null)return;let c=u.currentTarget?.getBoundingClientRect();i.transition().duration(200).style("opacity",".9"),i.text(l.attr("title")).style("left",window.scrollX+c.left+(c.right-c.left)/2+"px").style("top",window.scrollY+c.bottom+"px"),i.html(o1.sanitize(a)),l.classed("hover",!0)}).on("mouseout",u=>{i.transition().duration(500).style("opacity",0),Vt(u.currentTarget).classed("hover",!1)})}clear(e="gen-2"){this.vertices=new Map,this.classes=new Map,this.edges=[],this.funs=[this.setupToolTips.bind(this)],this.subGraphs=[],this.subGraphLookup=new Map,this.globalNodes=new Set,this.connectors=new Map,this.subCount=0,this.tooltips=new Map,this.firstGraphFlag=!0,this.version=e,this.config=ce(),this.diagramId="",this.vertexCounter=0,this.direction=void 0,this.secCount=-1,this.posCrossRef=[],this.frontmatterLineOffset=0,this.elementMappings=[],this.bareVertexMappings=new WeakSet,this.diagnostics=[],this.postParseValidationRun=!1,l1()}setGen(e){this.version=e||"gen-2"}defaultStyle(){return"fill:#ffa;stroke: #f66; stroke-width: 3px; stroke-dasharray: 5, 5;fill:#ffa;stroke: #666;"}addSubGraph(e,i,r,n){let u=e?.text?.trim(),l=r?.text;e===r&&r?.text&&/\s/.exec(r.text)&&(u=void 0);let c=A(S=>{let B={boolean:{},number:{},string:{}},T=[],b;return{nodeList:S.filter(function(h){let x=typeof h;return h.stmt&&h.stmt==="dir"?(b=h.value,!1):h.trim()===""?!1:x in B?B[x].hasOwnProperty(h)?!1:B[x][h]=!0:T.includes(h)?!1:T.push(h)}),dir:b}},"uniq")(i.flat()),f=c.nodeList,p=c.dir,g=ce().flowchart??{};if(p=p??(g.inheritDir?this.getDirection()??ce().direction??void 0:void 0),this.version==="gen-1")for(let S=0;SS!==u&&!this.globalNodes.has(S)),title:l.trim(),classes:[],dir:p,labelType:this.sanitizeNodeLabelType(r?.type),type:n??"flow"};ie.info("Adding",k.id,k.nodes,k.dir),k.nodes=this.makeUniq(k,this.subGraphs).nodes;let v=this.getPosForId(u);if(v!==-1){let S=this.subGraphs[v];for(let B of k.nodes)S.nodes.includes(B)||S.nodes.push(B);k.title&&(S.title=k.title),k.dir&&(S.dir=k.dir),k.type&&(S.type=k.type),this.subGraphLookup.set(u,S)}else this.subGraphs.push(k),this.subGraphLookup.set(u,k);return u}addGlobal(e){for(let i of e.flat()){if(typeof i!="string")continue;let r=i.trim();r!==""&&this.globalNodes.add(r)}for(let i of this.subGraphs)i.nodes=i.nodes.filter(r=>!this.globalNodes.has(r))}getPosForId(e){for(let[i,r]of this.subGraphs.entries())if(r.id===e)return i;return-1}indexNodes2(e,i){let r=this.subGraphs[i].nodes;if(this.secCount=this.secCount+1,this.secCount>2e3)return{result:!1,count:0};if(this.posCrossRef[this.secCount]=i,this.subGraphs[i].id===e)return{result:!0,count:0};let n=0,u=1;for(;n=0){let a=this.indexNodes2(e,l);if(a.result)return{result:!0,count:u+a.count};u=u+a.count}n=n+1}return{result:!1,count:u}}getDepthFirstPos(e){return this.posCrossRef[e]}indexNodes(){this.secCount=-1,this.subGraphs.length>0&&this.indexNodes2("none",this.subGraphs.length-1)}addConnector(e,i){let r=e?.text?.trim();if(!r)return"";let n=i?.text?.trim()??"",u=n.length>0?this.sanitizeText(n):r,l=this.connectors.get(r);return l?n.length>0&&(l.text=u):(l={id:r,labelType:"text",domId:F1+r+"-"+this.vertexCounter,styles:[],classes:[],isConnector:!0,text:u},this.connectors.set(r,l),this.vertices.set(r,l),this.vertexCounter++),r}getSubGraphs(){return this.subGraphs}getConnectors(){return[...this.connectors.values()]}firstGraph(){return this.firstGraphFlag?(this.firstGraphFlag=!1,!0):!1}computeEdgeSemantic(e,i){if(e==="arrow_point"&&i==="normal")return"sequence";if(e==="arrow_cross"&&i==="normal")return"failure";if(e==="arrow_open"&&i==="dotted")return"reference"}destructStartLink(e){let i=e.trim(),r="arrow_open",n="normal";return i.includes(".")&&(n="dotted"),{type:r,stroke:n}}countChar(e,i){let r=i.length,n=0;for(let u=0;u":n="arrow_point";break;case"-":case".":n="arrow_open",r=i;break}let u="normal",l=r.length-1,a=this.countChar(".",r);return a>0&&(u="dotted",l=a),{type:n,stroke:u,length:l}}destructLink(e,i){let r=this.destructEndLink(e),n;return i?(n=this.destructStartLink(i),n.stroke!==r.stroke?{type:"INVALID",stroke:"INVALID"}:(n.type=r.type,n.length=r.length,{...n,edgeSemantic:this.computeEdgeSemantic(n.type,n.stroke)})):{...r,edgeSemantic:this.computeEdgeSemantic(r.type,r.stroke)}}exists(e,i){for(let r of e)if(r.nodes.includes(i))return!0;return!1}makeUniq(e,i){let r=[];return e.nodes.forEach((n,u)=>{this.exists(i,n)||r.push(e.nodes[u])}),{nodes:r}}getTypeFromVertex(e){let i=typeof e.type=="string"?$e(e.type):e.type;switch(i){case"square":case void 0:return"squareRect";case"round":return"roundedRect";case"ellipse":return"ellipse";default:return i}}findNode(e,i){return e.find(r=>r.id===i)}destructEdgeType(e){let i="none",r="arrow_point";switch(e){case"arrow_point":case"arrow_circle":case"arrow_cross":case"arrow_hierarchy":r=e;break;case"double_arrow_point":case"double_arrow_circle":case"double_arrow_cross":i=e.replace("double_",""),r=i;break}return{arrowTypeStart:i,arrowTypeEnd:r}}addNodeFromVertex(e,i,r,n,u,l){let a=r.get(e.id),c=n.get(e.id)??!1,f=this.findNode(i,e.id);if(f)f.cssStyles=e.styles,f.cssCompiledStyles=this.getCompiledStyles(e.classes),f.cssClasses=e.classes.join(" ");else{let p={id:e.id,label:e.text,labelType:e.labelType,labelStyle:"",parentId:a,padding:u.flowchart?.padding||8,cssStyles:e.styles,cssCompiledStyles:this.getCompiledStyles(["default","node",...e.classes]),cssClasses:"default "+e.classes.join(" "),dir:e.dir,domId:e.domId,look:l,link:e.link,linkTarget:e.linkTarget,tooltip:this.getTooltip(e.id),metadata:e.metadata};c?i.push({...p,isGroup:!0,shape:"rect"}):i.push({...p,isGroup:!1,shape:this.getTypeFromVertex(e),wrappingWidth:u.agentflow?.wrappingWidth,minWidth:u.agentflow?.minNodeWidth})}}getCompiledStyles(e){let i=[];for(let r of e){let n=this.classes.get(r);n?.styles&&(i=[...i,...n.styles??[]].map(u=>u.trim())),n?.textStyles&&(i=[...i,...n.textStyles??[]].map(u=>u.trim()))}return i}runPostParseValidators(){this.postParseValidationRun||(this.postParseValidationRun=!0)}getData(){this.runPostParseValidators();let e=ce(),i=[],r=[],n=this.getSubGraphs(),u=new Map,l=new Map,a=new Set,c=new Map,f=A((d,h,x=new Set)=>{if(x.has(d))return;x.add(d);let N=this.subGraphLookup.get(d);if(N)for(let te of N.nodes)te===h||x.has(te)||(a.add(te),c.set(te,h),f(te,h,x))},"collectDescendants");for(let d of n)d.metadata?.view==="collapsed"&&!a.has(d.id)&&f(d.id,d.id);let p=A((d,h)=>{let x=new Set,N=h;for(;N!==void 0&&!x.has(N);){if(N===d)return!0;x.add(N),N=u.get(N)}return!1},"wouldCloseContainmentCycle");for(let d=n.length-1;d>=0;d--){let h=n[d];if(!a.has(h.id)){h.nodes.length>0&&l.set(h.id,!0);for(let x of h.nodes){if(p(x,h.id)){this.emitWarning(et.CONTAINMENT_VIOLATION,`Container "${h.id}" cannot contain "${x}" because "${x}" already contains it. The nesting that would close the loop is dropped.`,{nodeId:x});continue}u.set(x,h.id)}}}for(let d=n.length-1;d>=0;d--){let h=n[d];if(a.has(h.id))continue;if(h.metadata?.view==="collapsed"){let N={...h.metadata,containerType:h.type};i.push({id:h.id,label:h.title,labelStyle:"",labelType:h.labelType,parentId:u.get(h.id),padding:8,cssCompiledStyles:this.getCompiledStyles(h.classes),cssClasses:h.classes.join(" "),shape:"collapsedGroup",dir:h.dir,isGroup:!1,look:e.look,metadata:N})}else i.push({id:h.id,label:h.title,labelStyle:"",labelType:h.labelType,parentId:u.get(h.id),padding:8,cssCompiledStyles:this.getCompiledStyles(h.classes),cssClasses:h.classes.join(" "),shape:X1[h.type??"flow"],dir:h.dir,isGroup:!0,look:e.look,metadata:h.metadata})}this.getVertices().forEach(d=>{a.has(d.id)||this.addNodeFromVertex(d,i,u,l,e,e.look||"classic")});let k=this.getEdges();k.forEach((d,h)=>{let x=c.get(d.start)??d.start,N=c.get(d.end)??d.end;if(x===N&&d.start!==d.end)return;let{arrowTypeStart:te,arrowTypeEnd:de}=this.destructEdgeType(d.type),ue=[...k.defaultStyle??[]];d.style&&ue.push(...d.style);let he={id:Lt(x,N,{counter:h,prefix:"L"},d.id),isUserDefinedId:d.isUserDefinedId,start:x,end:N,type:d.type??"normal",label:d.text,labelType:d.labelType,labelpos:"c",thickness:d.stroke,minlen:d.length,classes:d?.stroke==="invisible"?"":"edge-thickness-normal edge-pattern-solid flowchart-link",arrowTypeStart:d?.stroke==="invisible"||d?.type==="arrow_open"?"none":te,arrowTypeEnd:d?.stroke==="invisible"||d?.type==="arrow_open"?"none":de,arrowheadStyle:"fill: #333",cssCompiledStyles:this.getCompiledStyles(d.classes),labelStyle:ue,style:ue,pattern:d.stroke,look:e.look,animate:d.animate,animation:d.animation,curve:d.interpolate||this.edges.defaultInterpolate||e.flowchart?.curve,metadata:d.metadata};r.push(he)}),V1(i,this);let v=new Map,S=new Map;for(let d of n){let h=u.get(d.id);h!==void 0&&S.set(h,[...S.get(h)??[],d.id])}let B=0,T=A(d=>{if(!v.has(d)){v.set(d,B++);for(let h of S.get(d)??[])T(h)}},"walkContainers");for(let d of n)u.get(d.id)===void 0&&T(d.id);let b=new Set(this.getConnectors().map(d=>d.id));return y1(i,d=>{if(b.has(d))return"connector";let h=this.vertices.get(d);return h?this.deriveVertexKind(h,$e(h.type)):void 0},v),{nodes:i,edges:r,other:{},config:e,connectors:this.getConnectors()}}defaultConfig(){return b1.flowchart}deriveVertexKind(e,i){return this.isToolDefinition(e)?"tool":i==="hexagon"||i==="hex"?"action":i==="lean-right"||i==="lean_right"?"input":i==="lin-doc"||i==="lined-document"?"refdoc":i==="diamond"?"decision":"task"}getSemanticModel(){this.runPostParseValidators();let e=new Set(this.subGraphs.map(a=>a.id)),i=[],r=[];for(let[a,c]of this.vertices){if(e.has(a))continue;if(c.isConnector){let g={id:a};if(c.text!==void 0&&c.text!==a&&(g.title=c.text),c.metadata&&Object.keys(c.metadata).length>0){let k={};for(let[v,S]of Object.entries(c.metadata))zt.has(v)||(k[v]=S);Object.keys(k).length>0&&(g.metadata=k)}r.push(g);continue}let f={id:a};c.text!==void 0&&(f.label=c.text);let p=typeof c.type=="string"?$e(c.type):c.type;if(p!==void 0&&(f.shape=p),f.vertexKind=this.deriveVertexKind(c,p),c.metadata&&Object.keys(c.metadata).length>0){let g={};for(let[k,v]of Object.entries(c.metadata))zt.has(k)||(g[k]=v);Object.keys(g).length>0&&(f.metadata=g)}i.push(f)}let n=this.edges.map(a=>{let c={start:a.start,end:a.end};return a.id!==void 0&&(c.id=a.id),typeof a.text=="string"&&a.text.length>0&&(c.label=a.text),a.type!==void 0&&(c.type=a.type),a.stroke!==void 0&&(c.stroke=a.stroke),a.edgeSemantic!==void 0&&(c.edgeSemantic=a.edgeSemantic),a.length!==void 0&&(c.length=a.length),a.metadata&&Object.keys(a.metadata).length>0&&(c.metadata={...a.metadata}),c}),u=this.subGraphs.map(a=>{let c={id:a.id,nodes:[...a.nodes]};if(a.type!==void 0&&(c.type=a.type),a.title!==void 0&&(c.title=a.title),a.dir!==void 0&&(c.direction=a.dir),a.metadata&&Object.keys(a.metadata).length>0){let f={};for(let[p,g]of Object.entries(a.metadata))zt.has(p)||(f[p]=g);Object.keys(f).length>0&&(c.metadata=f)}return c}),l={vertices:i,edges:n,subGraphs:u,connectors:r,diagnostics:this.diagnostics};return this.direction!==void 0&&(l.direction=this.direction),l}setFrontmatterLineOffset(e){this.frontmatterLineOffset=e??0}toElementPosition(e){let i=e?.first_line??0,r=e?.first_column??0,n=e?.last_line??i,u=e?.last_column??r,[l,a]=e?.range??[0,0];return{startLine:i+this.frontmatterLineOffset,startColumn:r,endLine:n+this.frontmatterLineOffset,endColumn:u,startIndex:l,endIndex:a}}pushMapping(e,i,r){if(!e)return;let n={id:e,type:i,position:this.toElementPosition(r)};return this.elementMappings.push(n),n}addVertexMapping(e,i,r,n){let u=this.pushMapping(e,"vertex",n);u&&r==null&&this.bareVertexMappings.add(u)}extendVertexMapping(e,i){if(!e||!i)return;let r=this.toElementPosition(i);for(let n=this.elementMappings.length-1;n>=0;n--){let u=this.elementMappings[n];if(u.type==="vertex"&&u.id===e){this.bareVertexMappings.has(u)&&(u.type="attachment",this.bareVertexMappings.delete(u)),(r.endLine>u.position.endLine||r.endLine===u.position.endLine&&r.endColumn>u.position.endColumn)&&(u.position.endLine=r.endLine,u.position.endColumn=r.endColumn,u.position.endIndex=r.endIndex);return}}this.pushMapping(e,"attachment",i)}addEdgeMapping(e,i,r,n){let u=Array.isArray(i)?i.map(a=>typeof a=="string"?a:a?.id??"").filter(Boolean):[],l=u.length>0?u.join(">"):"edge";this.pushMapping(l,"edge",n)}addSubgraphMapping(e,i,r,n){let u=(typeof e=="string"?e:e?.text)??"",l=this.toElementPosition(r),a=n?this.toElementPosition(n):l;u&&this.elementMappings.push({id:u,type:"subgraph",position:{startLine:l.startLine,startColumn:l.startColumn,endLine:a.endLine,endColumn:a.endColumn,startIndex:l.startIndex,endIndex:a.endIndex}})}addConnectorMapping(e,i,r,n){let u=e?.text?.trim()??"";if(!u)return;let l=this.toElementPosition(r),a=n?this.toElementPosition(n):l;this.elementMappings.push({id:u,type:"connector",position:{startLine:l.startLine,startColumn:l.startColumn,endLine:a.endLine,endColumn:a.endColumn,startIndex:l.startIndex,endIndex:a.endIndex}})}getElementMappings(){return[...this.elementMappings]}getElementById(e){return this.elementMappings.find(i=>i.id===e)}getElementsOnLine(e){return this.elementMappings.filter(i=>e>=i.position.startLine&&e<=i.position.endLine)}getElementAtPosition(e,i){let r=this.elementMappings.filter(u=>{let{startLine:l,startColumn:a,endLine:c,endColumn:f}=u.position;return!(ec||e===l&&if)});if(r.length===0)return;let n=A(({position:u})=>[u.endLine-u.startLine,u.endColumn-u.startColumn],"span");return r.reduce((u,l)=>{let[a,c]=n(u),[f,p]=n(l);return f!==a?fp.id===a.id&&p.severity===a.severity&&p.message===a.message&&p.nodeId===a.nodeId&&p.edgeId===a.edgeId))return;this.diagnostics.push(a);let f=`agentflow[${e}]: ${r}`;i==="error"?ie.error(f):ie.warn(f)}emitWarning(e,i,r){this.emitDiagnostic(e,"warning",i,r)}emitError(e,i,r){this.emitDiagnostic(e,"error",i,r)}getDiagnostics(){return[...this.diagnostics]}},J1=A(function(e,i){return i.db.getClasses()},"getClasses"),Z1=A(async function(e,i,r,n){ie.debug("Drawing agentflow diagram",i);let{securityLevel:u,agentflow:l,layout:a}=ce();n.db.setDiagramId(i),ie.debug("Before getData: ");let c=n.db.getData();ie.debug("Data: ",c);let f=_1(i,u),p=n.db.getDirection();c.type=n.type,c.layoutAlgorithm=x1(a),c.layoutAlgorithm==="dagre"&&a==="elk"&&ie.warn("flowchart-elk was moved to an external package in Mermaid v11. Please refer [release notes](https://github.com/mermaid-js/mermaid/releases/tag/v11.0.0) for more details. This diagram will be rendered using `dagre` layout as a fallback."),c.direction=p,c.nodeSpacing=l?.nodeSpacing||50,c.rankSpacing=l?.rankSpacing||50,c.markers=["point","circle","cross","hierarchy"],c.diagramId=i,ie.debug("REF1:",c),await S1(c,f);let g=l?.diagramPadding??8;It.insertTitle(f,"agentflowTitleText",l?.titleTopMargin??0,n.db.getDiagramTitle()),v1(f,g,"agentflow",l?.useMaxWidth??!0)},"draw"),$1={getClasses:J1,draw:Z1},Wt=(function(){var e=A(function(Te,m,E,C){for(E=E||{},C=Te.length;C--;E[Te[C]]=m);return E},"o"),i=[1,5],r=[1,4],n=[1,3],u=[1,6],l=[1,8,9,10,11,12,28,35,36,38,40,42,47,63,87,88,89,90,91,92,105,108,109,112,114,117,118,119,124,125,126,127,128],a=[2,2],c=[1,15],f=[1,16],p=[1,17],g=[1,18],k=[1,19],v=[1,26],S=[1,27],B=[1,28],T=[1,30],b=[1,31],d=[1,32],h=[1,55],x=[1,54],N=[1,34],te=[1,35],de=[1,36],ue=[1,37],he=[1,38],O=[1,50],P=[1,52],G=[1,48],U=[1,53],j=[1,49],z=[1,56],W=[1,51],K=[1,57],H=[1,58],De=[1,39],_e=[1,40],ve=[1,41],Fe=[1,42],Ve=[1,43],Se=[1,64],D=[1,8,9,10,11,12,28,33,35,36,38,40,42,47,63,87,88,89,90,91,92,105,108,109,112,114,117,118,119,124,125,126,127,128],J=[1,70],Z=[1,68],$=[1,67],ee=[1,69],Me=[8,9,10,12,78,80,81],ye=[1,88],we=[1,101],Ne=[1,106],Re=[1,105],Oe=[1,102],Pe=[1,98],Ge=[1,104],Ue=[1,100],je=[1,107],ze=[1,103],We=[1,108],Ke=[1,99],Ie=[8,9,10,11,12,43,78,80,81],q=[8,9,10,11,12,43,49,78,80,81],re=[8,9,10,11,12,30,43,47,49,51,53,55,57,59,61,63,66,68,70,71,73,78,80,81,92,105,108,109,112,114,117,118,119],Kt=[8,9,10,12,47,63,78,80,81,92,105,108,109,112,114,117,118,119],He=[47,63,92,105,108,109,112,114,117,118,119],Ht=[1,131],Yt=[1,132],tt=[1,134],st=[1,133],qt=[47,63,65,77,92,105,108,109,112,114,117,118,119],it=[1,143],rt=[1,157],nt=[1,158],at=[1,159],ot=[1,162],ut=[1,161],lt=[1,160],ct=[1,145],dt=[1,147],ht=[1,151],Xt=[1,139],Qt=[1,140],pt=[1,152],ft=[1,153],gt=[1,154],bt=[1,155],kt=[1,156],mt=[1,163],At=[1,164],Et=[1,141],Ct=[1,142],St=[1,149],xt=[1,144],Tt=[1,148],Dt=[1,146],Ye=[8,9,10,11,12,28,33,35,36,38,40,42,47,63,87,88,89,90,91,92,105,108,109,112,114,117,118,119,124,125,126,127,128],Jt=[1,168],qe=[1,170],R=[8,9,10,12],ne=[8,9,10,11,12,15,47,63,92,108,109,112,114,117,118,119],F=[1,190],X=[1,186],Q=[1,187],V=[1,191],I=[1,188],L=[1,189],Xe=[80,119,122],M=[8,9,10,11,12,13,15,28,30,33,35,36,43,47,63,78,87,88,89,90,91,92,93,108,112,114,117,118,119],Zt=[11,109],xe=[32,52,54,56,58,60,65,67,69,70,72,74,119,120,121],pe=[1,269],fe=[1,267],ge=[1,271],be=[1,265],ke=[1,266],me=[1,268],Ae=[1,270],Ee=[1,272],Qe=[1,292],$t=[8,9,10,12,109],le=[8,9,10,11,12,63,87,108,109,112,113,114,115],yt={trace:A(function(){},"trace"),yy:{},symbols_:{error:2,start:3,graphConfig:4,document:5,line:6,statement:7,COMMENT:8,SEMI:9,NEWLINE:10,SPACE:11,EOF:12,GRAPH:13,NODIR:14,DIR:15,FirstStmtSeparator:16,ending:17,endToken:18,spaceList:19,spaceListNewline:20,vertexStatement:21,separator:22,styleStatement:23,linkStyleStatement:24,classDefStatement:25,classStatement:26,clickStatement:27,flow:28,textNoTags:29,SQS:30,text:31,SQE:32,end:33,shapeData:34,global:35,connector:36,direction:37,acc_title:38,acc_title_value:39,acc_descr:40,acc_descr_value:41,acc_descr_multiline_value:42,SHAPE_DATA:43,link:44,node:45,styledVertex:46,AMP:47,vertex:48,STYLE_SEPARATOR:49,idString:50,DOUBLECIRCLESTART:51,DOUBLECIRCLEEND:52,PS:53,PE:54,"(-":55,"-)":56,STADIUMSTART:57,STADIUMEND:58,SUBROUTINESTART:59,SUBROUTINEEND:60,VERTEX_WITH_PROPS_START:61,"NODE_STRING[field]":62,COLON:63,"NODE_STRING[value]":64,PIPE:65,CYLINDERSTART:66,CYLINDEREND:67,DIAMOND_START:68,DIAMOND_STOP:69,TAGEND:70,TRAPSTART:71,TRAPEND:72,INVTRAPSTART:73,INVTRAPEND:74,linkStatement:75,arrowText:76,TESTSTR:77,START_LINK:78,edgeText:79,LINK:80,LINK_ID:81,edgeTextToken:82,STR:83,MD_STR:84,textToken:85,keywords:86,STYLE:87,LINKSTYLE:88,CLASSDEF:89,CLASS:90,CLICK:91,DOWN:92,UP:93,textNoTagsToken:94,stylesOpt:95,"idString[vertex]":96,"idString[class]":97,CALLBACKNAME:98,CALLBACKARGS:99,HREF:100,LINK_TARGET:101,"STR[link]":102,"STR[tooltip]":103,alphaNum:104,DEFAULT:105,numList:106,INTERPOLATE:107,NUM:108,COMMA:109,style:110,styleComponent:111,NODE_STRING:112,UNIT:113,BRKT:114,PCT:115,idStringToken:116,MINUS:117,MULT:118,UNICODE_TEXT:119,TEXT:120,TAGSTART:121,EDGE_TEXT:122,alphaNumToken:123,direction_tb:124,direction_bt:125,direction_rl:126,direction_lr:127,direction_td:128,$accept:0,$end:1},terminals_:{2:"error",8:"COMMENT",9:"SEMI",10:"NEWLINE",11:"SPACE",12:"EOF",13:"GRAPH",14:"NODIR",15:"DIR",28:"flow",30:"SQS",32:"SQE",33:"end",35:"global",36:"connector",38:"acc_title",39:"acc_title_value",40:"acc_descr",41:"acc_descr_value",42:"acc_descr_multiline_value",43:"SHAPE_DATA",47:"AMP",49:"STYLE_SEPARATOR",51:"DOUBLECIRCLESTART",52:"DOUBLECIRCLEEND",53:"PS",54:"PE",55:"(-",56:"-)",57:"STADIUMSTART",58:"STADIUMEND",59:"SUBROUTINESTART",60:"SUBROUTINEEND",61:"VERTEX_WITH_PROPS_START",62:"NODE_STRING[field]",63:"COLON",64:"NODE_STRING[value]",65:"PIPE",66:"CYLINDERSTART",67:"CYLINDEREND",68:"DIAMOND_START",69:"DIAMOND_STOP",70:"TAGEND",71:"TRAPSTART",72:"TRAPEND",73:"INVTRAPSTART",74:"INVTRAPEND",77:"TESTSTR",78:"START_LINK",80:"LINK",81:"LINK_ID",83:"STR",84:"MD_STR",87:"STYLE",88:"LINKSTYLE",89:"CLASSDEF",90:"CLASS",91:"CLICK",92:"DOWN",93:"UP",96:"idString[vertex]",97:"idString[class]",98:"CALLBACKNAME",99:"CALLBACKARGS",100:"HREF",101:"LINK_TARGET",102:"STR[link]",103:"STR[tooltip]",105:"DEFAULT",107:"INTERPOLATE",108:"NUM",109:"COMMA",112:"NODE_STRING",113:"UNIT",114:"BRKT",115:"PCT",117:"MINUS",118:"MULT",119:"UNICODE_TEXT",120:"TEXT",121:"TAGSTART",122:"EDGE_TEXT",124:"direction_tb",125:"direction_bt",126:"direction_rl",127:"direction_lr",128:"direction_td"},productions_:[0,[3,2],[5,0],[5,2],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[4,2],[4,2],[4,2],[4,2],[4,3],[17,2],[17,1],[18,1],[18,1],[18,1],[16,1],[16,1],[16,2],[16,1],[20,2],[20,2],[20,2],[20,1],[20,1],[20,1],[19,2],[19,1],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[7,9],[7,10],[7,6],[7,7],[7,4],[7,4],[7,7],[7,8],[7,4],[7,5],[7,1],[7,2],[7,2],[7,1],[22,1],[22,1],[22,1],[22,1],[34,2],[34,1],[21,4],[21,3],[21,4],[21,2],[21,2],[21,1],[45,1],[45,6],[45,5],[46,1],[46,3],[48,4],[48,4],[48,6],[48,4],[48,4],[48,4],[48,8],[48,4],[48,4],[48,4],[48,6],[48,4],[48,4],[48,4],[48,4],[48,4],[48,1],[44,2],[44,3],[44,3],[44,1],[44,3],[44,4],[79,1],[79,2],[79,1],[79,1],[75,1],[75,2],[76,3],[31,1],[31,2],[31,1],[31,1],[86,1],[86,1],[86,1],[86,1],[86,1],[86,1],[86,1],[86,1],[86,1],[86,1],[86,1],[86,1],[86,1],[29,1],[29,2],[29,1],[29,1],[25,5],[26,5],[27,2],[27,4],[27,3],[27,5],[27,3],[27,5],[27,5],[27,7],[27,2],[27,4],[27,2],[27,4],[27,4],[27,6],[23,5],[24,5],[24,5],[24,9],[24,9],[24,7],[24,7],[106,1],[106,3],[95,1],[95,3],[110,1],[110,2],[111,1],[111,1],[111,1],[111,1],[111,1],[111,1],[111,1],[111,1],[116,1],[116,1],[116,1],[116,1],[116,1],[116,1],[116,1],[116,1],[116,1],[116,1],[116,1],[85,1],[85,1],[85,1],[85,1],[94,1],[94,1],[94,1],[94,1],[94,1],[94,1],[94,1],[94,1],[94,1],[94,1],[94,1],[82,1],[82,1],[123,1],[123,1],[123,1],[123,1],[123,1],[123,1],[123,1],[123,1],[123,1],[123,1],[123,1],[50,1],[50,2],[104,1],[104,2],[37,1],[37,1],[37,1],[37,1],[37,1]],performAction:A(function(m,E,C,o,y,t,_){var s=t.length-1;switch(y){case 2:this.$=[];break;case 3:(!Array.isArray(t[s])||t[s].length>0)&&t[s-1].push(t[s]),this.$=t[s-1];break;case 4:case 198:this.$=t[s];break;case 5:case 33:case 34:case 35:case 36:case 37:this.$=[];break;case 13:o.setDirection("TB"),this.$="TB";break;case 14:o.setDirection(t[s-1]),this.$=t[s-1];break;case 32:this.$=t[s-1].nodes;break;case 38:this.$=o.addSubGraph(t[s-6],t[s-1],t[s-4],"flow"),o.addSubgraphMapping&&o.addSubgraphMapping(t[s-6],t[s-4],_[s-8],_[s]);break;case 39:this.$=o.addSubGraph(t[s-7],t[s-1],t[s-5],"flow"),o.addVertex(this.$,void 0,void 0,void 0,void 0,void 0,void 0,t[s-3],_[s-3]),o.addSubgraphMapping&&o.addSubgraphMapping(t[s-7],t[s-5],_[s-9],_[s]);break;case 40:this.$=o.addSubGraph(t[s-3],t[s-1],{text:"",type:"text"},"flow"),o.addSubgraphMapping&&o.addSubgraphMapping(t[s-3],{text:"",type:"text"},_[s-5],_[s]);break;case 41:this.$=o.addSubGraph(t[s-4],t[s-1],{text:"",type:"text"},"flow"),o.addVertex(this.$,void 0,void 0,void 0,void 0,void 0,void 0,t[s-3],_[s-3]),o.addSubgraphMapping&&o.addSubgraphMapping(t[s-4],{text:"",type:"text"},_[s-6],_[s]);break;case 42:this.$=o.addSubGraph(void 0,t[s-1],void 0,"flow"),o.addSubgraphMapping&&o.addSubgraphMapping(void 0,void 0,_[s-3],_[s]);break;case 43:o.addGlobal(t[s-1]),this.$=[];break;case 44:this.$=o.addConnector(t[s-4],t[s-2]),o.addConnectorMapping&&o.addConnectorMapping(t[s-4],t[s-2],_[s-6],_[s]);break;case 45:this.$=o.addConnector(t[s-5],t[s-3]),o.addVertex(this.$,void 0,void 0,void 0,void 0,void 0,void 0,t[s-1],_[s-1]),o.addConnectorMapping&&o.addConnectorMapping(t[s-5],t[s-3],_[s-7],_[s]);break;case 46:this.$=o.addConnector(t[s-1],{text:"",type:"text"}),o.addConnectorMapping&&o.addConnectorMapping(t[s-1],{text:"",type:"text"},_[s-3],_[s]);break;case 47:this.$=o.addConnector(t[s-2],{text:"",type:"text"}),o.addVertex(this.$,void 0,void 0,void 0,void 0,void 0,void 0,t[s-1],_[s-1]),o.addConnectorMapping&&o.addConnectorMapping(t[s-2],{text:"",type:"text"},_[s-4],_[s]);break;case 49:this.$=t[s].trim(),o.setAccTitle(this.$);break;case 50:case 51:this.$=t[s].trim(),o.setAccDescription(this.$);break;case 56:this.$=t[s-1]+t[s];break;case 57:this.$=t[s];break;case 58:o.addVertex(t[s-1][t[s-1].length-1],void 0,void 0,void 0,void 0,void 0,void 0,t[s],_[s]),o.extendVertexMapping&&o.extendVertexMapping(t[s-1][t[s-1].length-1],_[s]),o.addLink(t[s-3].stmt,t[s-1],t[s-2]),o.addEdgeMapping&&o.addEdgeMapping(t[s-3].stmt,t[s-1],t[s-2],this._$),this.$={stmt:t[s-1],nodes:t[s-1].concat(t[s-3].nodes)};break;case 59:o.addLink(t[s-2].stmt,t[s],t[s-1]),o.addEdgeMapping&&o.addEdgeMapping(t[s-2].stmt,t[s],t[s-1],this._$),this.$={stmt:t[s],nodes:t[s].concat(t[s-2].nodes)};break;case 60:o.addLink(t[s-3].stmt,t[s-1],t[s-2]),o.addEdgeMapping&&o.addEdgeMapping(t[s-3].stmt,t[s-1],t[s-2],this._$),this.$={stmt:t[s-1],nodes:t[s-1].concat(t[s-3].nodes)};break;case 61:this.$={stmt:t[s-1],nodes:t[s-1]};break;case 62:o.addVertex(t[s-1][t[s-1].length-1],void 0,void 0,void 0,void 0,void 0,void 0,t[s],_[s]),o.extendVertexMapping&&o.extendVertexMapping(t[s-1][t[s-1].length-1],_[s]),this.$={stmt:t[s-1],nodes:t[s-1],shapeData:t[s]};break;case 63:this.$={stmt:t[s],nodes:t[s]};break;case 64:this.$=[t[s]];break;case 65:o.addVertex(t[s-5][t[s-5].length-1],void 0,void 0,void 0,void 0,void 0,void 0,t[s-4],_[s-4]),o.extendVertexMapping&&o.extendVertexMapping(t[s-5][t[s-5].length-1],_[s-4]),this.$=t[s-5].concat(t[s]);break;case 66:this.$=t[s-4].concat(t[s]);break;case 67:this.$=t[s];break;case 68:this.$=t[s-2],o.setClass(t[s-2],t[s]);break;case 69:this.$=t[s-3],o.addVertex(t[s-3],t[s-1],"square"),o.addVertexMapping&&o.addVertexMapping(t[s-3],t[s-1],"square",this._$);break;case 70:this.$=t[s-3],o.addVertex(t[s-3],t[s-1],"doublecircle"),o.addVertexMapping&&o.addVertexMapping(t[s-3],t[s-1],"doublecircle",this._$);break;case 71:this.$=t[s-5],o.addVertex(t[s-5],t[s-2],"circle"),o.addVertexMapping&&o.addVertexMapping(t[s-5],t[s-2],"circle",this._$);break;case 72:this.$=t[s-3],o.addVertex(t[s-3],t[s-1],"ellipse"),o.addVertexMapping&&o.addVertexMapping(t[s-3],t[s-1],"ellipse",this._$);break;case 73:this.$=t[s-3],o.addVertex(t[s-3],t[s-1],"stadium"),o.addVertexMapping&&o.addVertexMapping(t[s-3],t[s-1],"stadium",this._$);break;case 74:this.$=t[s-3],o.addVertex(t[s-3],t[s-1],"subroutine"),o.addVertexMapping&&o.addVertexMapping(t[s-3],t[s-1],"subroutine",this._$);break;case 75:this.$=t[s-7],o.addVertex(t[s-7],t[s-1],"rect",void 0,void 0,void 0,Object.fromEntries([[t[s-5],t[s-3]]])),o.addVertexMapping&&o.addVertexMapping(t[s-7],t[s-1],"rect",this._$);break;case 76:this.$=t[s-3],o.addVertex(t[s-3],t[s-1],"cylinder"),o.addVertexMapping&&o.addVertexMapping(t[s-3],t[s-1],"cylinder",this._$);break;case 77:this.$=t[s-3],o.addVertex(t[s-3],t[s-1],"round"),o.addVertexMapping&&o.addVertexMapping(t[s-3],t[s-1],"round",this._$);break;case 78:this.$=t[s-3],o.addVertex(t[s-3],t[s-1],"diamond"),o.addVertexMapping&&o.addVertexMapping(t[s-3],t[s-1],"diamond",this._$);break;case 79:this.$=t[s-5],o.addVertex(t[s-5],t[s-2],"hexagon"),o.addVertexMapping&&o.addVertexMapping(t[s-5],t[s-2],"hexagon",this._$);break;case 80:this.$=t[s-3],o.addVertex(t[s-3],t[s-1],"odd"),o.addVertexMapping&&o.addVertexMapping(t[s-3],t[s-1],"odd",this._$);break;case 81:this.$=t[s-3],o.addVertex(t[s-3],t[s-1],"trapezoid"),o.addVertexMapping&&o.addVertexMapping(t[s-3],t[s-1],"trapezoid",this._$);break;case 82:this.$=t[s-3],o.addVertex(t[s-3],t[s-1],"inv_trapezoid"),o.addVertexMapping&&o.addVertexMapping(t[s-3],t[s-1],"inv_trapezoid",this._$);break;case 83:this.$=t[s-3],o.addVertex(t[s-3],t[s-1],"lean_right"),o.addVertexMapping&&o.addVertexMapping(t[s-3],t[s-1],"lean_right",this._$);break;case 84:this.$=t[s-3],o.addVertex(t[s-3],t[s-1],"lean_left"),o.addVertexMapping&&o.addVertexMapping(t[s-3],t[s-1],"lean_left",this._$);break;case 85:this.$=t[s],o.addVertex(t[s]),o.addVertexMapping&&o.addVertexMapping(t[s],void 0,void 0,this._$);break;case 86:t[s-1].text=t[s],this.$=t[s-1];break;case 87:case 88:t[s-2].text=t[s-1],this.$=t[s-2];break;case 89:this.$=t[s];break;case 90:var w=o.destructLink(t[s],t[s-2]);this.$={type:w.type,stroke:w.stroke,length:w.length,edgeSemantic:w.edgeSemantic,text:t[s-1]};break;case 91:var w=o.destructLink(t[s],t[s-2]);this.$={type:w.type,stroke:w.stroke,length:w.length,edgeSemantic:w.edgeSemantic,text:t[s-1],id:t[s-3]};break;case 92:this.$={text:t[s],type:"text"};break;case 93:this.$={text:t[s-1].text+""+t[s],type:t[s-1].type};break;case 94:this.$={text:t[s],type:"string"};break;case 95:this.$={text:t[s],type:"markdown"};break;case 96:var w=o.destructLink(t[s]);this.$={type:w.type,stroke:w.stroke,length:w.length,edgeSemantic:w.edgeSemantic};break;case 97:var w=o.destructLink(t[s]);this.$={type:w.type,stroke:w.stroke,length:w.length,edgeSemantic:w.edgeSemantic,id:t[s-1]};break;case 98:this.$=t[s-1];break;case 99:this.$={text:t[s],type:"text"};break;case 100:this.$={text:t[s-1].text+""+t[s],type:t[s-1].type};break;case 101:this.$={text:t[s],type:"string"};break;case 102:case 119:this.$={text:t[s],type:"markdown"};break;case 116:this.$={text:t[s],type:"text"};break;case 117:this.$={text:t[s-1].text+""+t[s],type:t[s-1].type};break;case 118:this.$={text:t[s],type:"text"};break;case 120:this.$=t[s-4],o.addClass(t[s-2],t[s]);break;case 121:this.$=t[s-4],o.setClass(t[s-2],t[s]);break;case 122:case 130:this.$=t[s-1],o.setClickEvent(t[s-1],t[s]);break;case 123:case 131:this.$=t[s-3],o.setClickEvent(t[s-3],t[s-2]),o.setTooltip(t[s-3],t[s]);break;case 124:this.$=t[s-2],o.setClickEvent(t[s-2],t[s-1],t[s]);break;case 125:this.$=t[s-4],o.setClickEvent(t[s-4],t[s-3],t[s-2]),o.setTooltip(t[s-4],t[s]);break;case 126:this.$=t[s-2],o.setLink(t[s-2],t[s]);break;case 127:this.$=t[s-4],o.setLink(t[s-4],t[s-2]),o.setTooltip(t[s-4],t[s]);break;case 128:this.$=t[s-4],o.setLink(t[s-4],t[s-2],t[s]);break;case 129:this.$=t[s-6],o.setLink(t[s-6],t[s-4],t[s]),o.setTooltip(t[s-6],t[s-2]);break;case 132:this.$=t[s-1],o.setLink(t[s-1],t[s]);break;case 133:this.$=t[s-3],o.setLink(t[s-3],t[s-2]),o.setTooltip(t[s-3],t[s]);break;case 134:this.$=t[s-3],o.setLink(t[s-3],t[s-2],t[s]);break;case 135:this.$=t[s-5],o.setLink(t[s-5],t[s-4],t[s]),o.setTooltip(t[s-5],t[s-2]);break;case 136:this.$=t[s-4],o.addVertex(t[s-2],void 0,void 0,t[s]);break;case 137:this.$=t[s-4],o.updateLink([t[s-2]],t[s]);break;case 138:this.$=t[s-4],o.updateLink(t[s-2],t[s]);break;case 139:this.$=t[s-8],o.updateLinkInterpolate([t[s-6]],t[s-2]),o.updateLink([t[s-6]],t[s]);break;case 140:this.$=t[s-8],o.updateLinkInterpolate(t[s-6],t[s-2]),o.updateLink(t[s-6],t[s]);break;case 141:this.$=t[s-6],o.updateLinkInterpolate([t[s-4]],t[s]);break;case 142:this.$=t[s-6],o.updateLinkInterpolate(t[s-4],t[s]);break;case 143:case 145:this.$=[t[s]];break;case 144:case 146:t[s-2].push(t[s]),this.$=t[s-2];break;case 148:this.$=t[s-1]+t[s];break;case 196:this.$=t[s];break;case 197:this.$=t[s-1]+""+t[s];break;case 199:this.$=t[s-1]+""+t[s];break;case 200:this.$={stmt:"dir",value:"TB"};break;case 201:this.$={stmt:"dir",value:"BT"};break;case 202:this.$={stmt:"dir",value:"RL"};break;case 203:this.$={stmt:"dir",value:"LR"};break;case 204:this.$={stmt:"dir",value:"TD"};break}},"anonymous"),table:[{3:1,4:2,8:i,10:r,11:n,13:u},{1:[3]},e(l,a,{5:7}),{4:8,8:i,10:r,11:n,13:u},{4:9,8:i,10:r,11:n,13:u},{4:10,8:i,10:r,11:n,13:u},{14:[1,11],15:[1,12]},{1:[2,1],6:13,7:14,8:c,9:f,10:p,11:g,12:k,21:20,23:21,24:22,25:23,26:24,27:25,28:v,35:S,36:B,37:29,38:T,40:b,42:d,45:33,46:44,47:h,48:45,50:46,63:x,87:N,88:te,89:de,90:ue,91:he,92:O,105:P,108:G,109:U,112:j,114:z,116:47,117:W,118:K,119:H,124:De,125:_e,126:ve,127:Fe,128:Ve},e(l,[2,10]),e(l,[2,11]),e(l,[2,12]),e(l,[2,13]),{8:[1,63],9:[1,60],10:[1,61],11:Se,16:59,19:62},e(D,[2,3]),e(D,[2,4]),e(D,[2,5]),e(D,[2,6]),e(D,[2,7]),e(D,[2,8]),e(D,[2,9]),{8:J,9:Z,10:$,12:ee,22:65,44:66,75:71,78:[1,72],80:[1,74],81:[1,73]},{8:J,9:Z,10:$,12:ee,22:75},{8:J,9:Z,10:$,12:ee,22:76},{8:J,9:Z,10:$,12:ee,22:77},{8:J,9:Z,10:$,12:ee,22:78},{8:J,9:Z,10:$,12:ee,22:79},{8:J,9:Z,10:$,11:[1,80],12:ee,22:81},{8:J,9:Z,10:$,12:ee,22:82},{11:[1,83]},e(D,[2,48]),{39:[1,84]},{41:[1,85]},e(D,[2,51]),e(Me,[2,63],{19:86,34:87,11:Se,43:ye}),{11:[1,89]},{11:[1,90]},{11:[1,91]},{11:[1,92]},{15:we,47:Ne,63:Re,83:[1,96],92:Oe,98:[1,93],100:[1,94],104:95,108:Pe,109:Ge,112:Ue,114:je,117:ze,118:We,119:Ke,123:97},e(D,[2,200]),e(D,[2,201]),e(D,[2,202]),e(D,[2,203]),e(D,[2,204]),e(Ie,[2,64]),e(Ie,[2,67],{49:[1,109]}),e(q,[2,85],{116:122,30:[1,110],47:h,51:[1,111],53:[1,112],55:[1,113],57:[1,114],59:[1,115],61:[1,116],63:x,66:[1,117],68:[1,118],70:[1,119],71:[1,120],73:[1,121],92:O,105:P,108:G,109:U,112:j,114:z,117:W,118:K,119:H}),e(re,[2,196]),e(re,[2,157]),e(re,[2,158]),e(re,[2,159]),e(re,[2,160]),e(re,[2,161]),e(re,[2,162]),e(re,[2,163]),e(re,[2,164]),e(re,[2,165]),e(re,[2,166]),e(re,[2,167]),e(l,[2,14]),e(l,[2,20]),e(l,[2,21]),{10:[1,123]},e(l,[2,23]),e(Kt,[2,31],{19:124,11:Se}),e(D,[2,32]),{45:125,46:44,47:h,48:45,50:46,63:x,92:O,105:P,108:G,109:U,112:j,114:z,116:47,117:W,118:K,119:H},e(D,[2,52]),e(D,[2,53]),e(D,[2,54]),e(D,[2,55]),e(He,[2,89],{76:126,65:[1,128],77:[1,127]}),{79:129,82:130,83:Ht,84:Yt,119:tt,122:st},{78:[1,135],80:[1,136]},e(qt,[2,96]),e(D,[2,33]),e(D,[2,34]),e(D,[2,35]),e(D,[2,36]),e(D,[2,37]),{11:it,13:rt,15:nt,28:at,29:137,33:ot,35:ut,36:lt,47:ct,63:dt,78:ht,83:Xt,84:Qt,86:150,87:pt,88:ft,89:gt,90:bt,91:kt,92:mt,93:At,94:138,108:Et,112:Ct,114:St,117:xt,118:Tt,119:Dt},e(Ye,a,{5:165}),e(Ye,a,{5:166}),{11:it,13:rt,15:nt,28:at,29:167,33:ot,35:ut,36:lt,47:ct,63:dt,78:ht,83:Xt,84:Qt,86:150,87:pt,88:ft,89:gt,90:bt,91:kt,92:mt,93:At,94:138,108:Et,112:Ct,114:St,117:xt,118:Tt,119:Dt},e(D,[2,49]),e(D,[2,50]),e(Me,[2,61],{47:Jt}),e(Me,[2,62],{19:169,11:Se,43:qe}),e(Ie,[2,57]),{47:h,50:171,63:x,92:O,105:P,108:G,109:U,112:j,114:z,116:47,117:W,118:K,119:H},{105:[1,172],106:173,108:[1,174]},{47:h,50:175,63:x,92:O,105:P,108:G,109:U,112:j,114:z,116:47,117:W,118:K,119:H},{47:h,50:176,63:x,92:O,105:P,108:G,109:U,112:j,114:z,116:47,117:W,118:K,119:H},e(R,[2,122],{11:[1,177],99:[1,178]}),{83:[1,179]},e(R,[2,130],{123:181,11:[1,180],15:we,47:Ne,63:Re,92:Oe,108:Pe,109:Ge,112:Ue,114:je,117:ze,118:We,119:Ke}),e(R,[2,132],{11:[1,182]}),e(ne,[2,198]),e(ne,[2,185]),e(ne,[2,186]),e(ne,[2,187]),e(ne,[2,188]),e(ne,[2,189]),e(ne,[2,190]),e(ne,[2,191]),e(ne,[2,192]),e(ne,[2,193]),e(ne,[2,194]),e(ne,[2,195]),{47:h,50:183,63:x,92:O,105:P,108:G,109:U,112:j,114:z,116:47,117:W,118:K,119:H},{31:184,70:F,83:X,84:Q,85:185,119:V,120:I,121:L},{31:192,70:F,83:X,84:Q,85:185,119:V,120:I,121:L},{31:194,53:[1,193],70:F,83:X,84:Q,85:185,119:V,120:I,121:L},{31:195,70:F,83:X,84:Q,85:185,119:V,120:I,121:L},{31:196,70:F,83:X,84:Q,85:185,119:V,120:I,121:L},{31:197,70:F,83:X,84:Q,85:185,119:V,120:I,121:L},{112:[1,198]},{31:199,70:F,83:X,84:Q,85:185,119:V,120:I,121:L},{31:200,68:[1,201],70:F,83:X,84:Q,85:185,119:V,120:I,121:L},{31:202,70:F,83:X,84:Q,85:185,119:V,120:I,121:L},{31:203,70:F,83:X,84:Q,85:185,119:V,120:I,121:L},{31:204,70:F,83:X,84:Q,85:185,119:V,120:I,121:L},e(re,[2,197]),e(l,[2,22]),e(Kt,[2,30]),e(Me,[2,59],{34:205,19:206,11:Se,43:ye}),e(He,[2,86],{11:[1,207]}),{11:[1,208]},{31:209,70:F,83:X,84:Q,85:185,119:V,120:I,121:L},{80:[1,210],82:211,119:tt,122:st},e(Xe,[2,92]),e(Xe,[2,94]),e(Xe,[2,95]),e(Xe,[2,183]),e(Xe,[2,184]),{79:212,82:130,83:Ht,84:Yt,119:tt,122:st},e(qt,[2,97]),{8:J,9:Z,10:$,11:it,12:ee,13:rt,15:nt,22:214,28:at,30:[1,213],33:ot,34:215,35:ut,36:lt,43:ye,47:ct,63:dt,78:ht,86:150,87:pt,88:ft,89:gt,90:bt,91:kt,92:mt,93:At,94:216,108:Et,112:Ct,114:St,117:xt,118:Tt,119:Dt},e(M,[2,116]),e(M,[2,118]),e(M,[2,119]),e(M,[2,172]),e(M,[2,173]),e(M,[2,174]),e(M,[2,175]),e(M,[2,176]),e(M,[2,177]),e(M,[2,178]),e(M,[2,179]),e(M,[2,180]),e(M,[2,181]),e(M,[2,182]),e(M,[2,103]),e(M,[2,104]),e(M,[2,105]),e(M,[2,106]),e(M,[2,107]),e(M,[2,108]),e(M,[2,109]),e(M,[2,110]),e(M,[2,111]),e(M,[2,112]),e(M,[2,113]),e(M,[2,114]),e(M,[2,115]),{6:13,7:14,8:c,9:f,10:p,11:g,12:k,21:20,23:21,24:22,25:23,26:24,27:25,28:v,33:[1,217],35:S,36:B,37:29,38:T,40:b,42:d,45:33,46:44,47:h,48:45,50:46,63:x,87:N,88:te,89:de,90:ue,91:he,92:O,105:P,108:G,109:U,112:j,114:z,116:47,117:W,118:K,119:H,124:De,125:_e,126:ve,127:Fe,128:Ve},{6:13,7:14,8:c,9:f,10:p,11:g,12:k,21:20,23:21,24:22,25:23,26:24,27:25,28:v,33:[1,218],35:S,36:B,37:29,38:T,40:b,42:d,45:33,46:44,47:h,48:45,50:46,63:x,87:N,88:te,89:de,90:ue,91:he,92:O,105:P,108:G,109:U,112:j,114:z,116:47,117:W,118:K,119:H,124:De,125:_e,126:ve,127:Fe,128:Ve},{8:J,9:Z,10:$,11:it,12:ee,13:rt,15:nt,22:220,28:at,30:[1,219],33:ot,34:221,35:ut,36:lt,43:ye,47:ct,63:dt,78:ht,86:150,87:pt,88:ft,89:gt,90:bt,91:kt,92:mt,93:At,94:216,108:Et,112:Ct,114:St,117:xt,118:Tt,119:Dt},{11:Se,19:222},{47:[1,223]},e(Ie,[2,56]),{11:[1,224],47:h,63:x,92:O,105:P,108:G,109:U,112:j,114:z,116:122,117:W,118:K,119:H},{11:[1,225]},{11:[1,226],109:[1,227]},e(Zt,[2,143]),{11:[1,228],47:h,63:x,92:O,105:P,108:G,109:U,112:j,114:z,116:122,117:W,118:K,119:H},{11:[1,229],47:h,63:x,92:O,105:P,108:G,109:U,112:j,114:z,116:122,117:W,118:K,119:H},{83:[1,230]},e(R,[2,124],{11:[1,231]}),e(R,[2,126],{11:[1,232]}),{83:[1,233]},e(ne,[2,199]),{83:[1,234],101:[1,235]},e(Ie,[2,68],{116:122,47:h,63:x,92:O,105:P,108:G,109:U,112:j,114:z,117:W,118:K,119:H}),{32:[1,236],70:F,85:237,119:V,120:I,121:L},e(xe,[2,99]),e(xe,[2,101]),e(xe,[2,102]),e(xe,[2,168]),e(xe,[2,169]),e(xe,[2,170]),e(xe,[2,171]),{52:[1,238],70:F,85:237,119:V,120:I,121:L},{31:239,70:F,83:X,84:Q,85:185,119:V,120:I,121:L},{54:[1,240],70:F,85:237,119:V,120:I,121:L},{56:[1,241],70:F,85:237,119:V,120:I,121:L},{58:[1,242],70:F,85:237,119:V,120:I,121:L},{60:[1,243],70:F,85:237,119:V,120:I,121:L},{63:[1,244]},{67:[1,245],70:F,85:237,119:V,120:I,121:L},{69:[1,246],70:F,85:237,119:V,120:I,121:L},{31:247,70:F,83:X,84:Q,85:185,119:V,120:I,121:L},{32:[1,248],70:F,85:237,119:V,120:I,121:L},{70:F,72:[1,249],74:[1,250],85:237,119:V,120:I,121:L},{70:F,72:[1,252],74:[1,251],85:237,119:V,120:I,121:L},e(Me,[2,58],{19:169,11:Se,43:qe}),e(Me,[2,60],{47:Jt}),e(He,[2,88]),e(He,[2,87]),{65:[1,253],70:F,85:237,119:V,120:I,121:L},e(He,[2,90]),e(Xe,[2,93]),{80:[1,254],82:211,119:tt,122:st},{31:255,70:F,83:X,84:Q,85:185,119:V,120:I,121:L},e(Ye,a,{5:256}),{8:J,9:Z,10:$,12:ee,22:257,43:qe},e(M,[2,117]),e(D,[2,42]),e(D,[2,43]),{31:258,70:F,83:X,84:Q,85:185,119:V,120:I,121:L},e(D,[2,46]),{8:J,9:Z,10:$,12:ee,22:259,43:qe},{46:260,47:h,48:45,50:46,63:x,92:O,105:P,108:G,109:U,112:j,114:z,116:47,117:W,118:K,119:H},{11:Se,19:261},{11:pe,63:fe,87:ge,95:262,108:be,110:263,111:264,112:ke,113:me,114:Ae,115:Ee},{11:pe,63:fe,87:ge,95:273,107:[1,274],108:be,110:263,111:264,112:ke,113:me,114:Ae,115:Ee},{11:pe,63:fe,87:ge,95:275,107:[1,276],108:be,110:263,111:264,112:ke,113:me,114:Ae,115:Ee},{108:[1,277]},{11:pe,63:fe,87:ge,95:278,108:be,110:263,111:264,112:ke,113:me,114:Ae,115:Ee},{47:h,50:279,63:x,92:O,105:P,108:G,109:U,112:j,114:z,116:47,117:W,118:K,119:H},e(R,[2,123]),{83:[1,280]},{83:[1,281],101:[1,282]},e(R,[2,131]),e(R,[2,133],{11:[1,283]}),e(R,[2,134]),e(q,[2,69]),e(xe,[2,100]),e(q,[2,70]),{54:[1,284],70:F,85:237,119:V,120:I,121:L},e(q,[2,77]),e(q,[2,72]),e(q,[2,73]),e(q,[2,74]),{112:[1,285]},e(q,[2,76]),e(q,[2,78]),{69:[1,286],70:F,85:237,119:V,120:I,121:L},e(q,[2,80]),e(q,[2,81]),e(q,[2,83]),e(q,[2,82]),e(q,[2,84]),e([11,47,63,92,105,108,109,112,114,117,118,119],[2,98]),e(He,[2,91]),{32:[1,287],70:F,85:237,119:V,120:I,121:L},{6:13,7:14,8:c,9:f,10:p,11:g,12:k,21:20,23:21,24:22,25:23,26:24,27:25,28:v,33:[1,288],35:S,36:B,37:29,38:T,40:b,42:d,45:33,46:44,47:h,48:45,50:46,63:x,87:N,88:te,89:de,90:ue,91:he,92:O,105:P,108:G,109:U,112:j,114:z,116:47,117:W,118:K,119:H,124:De,125:_e,126:ve,127:Fe,128:Ve},e(Ye,a,{5:289}),{32:[1,290],70:F,85:237,119:V,120:I,121:L},e(D,[2,47]),e(Ie,[2,66]),{46:291,47:h,48:45,50:46,63:x,92:O,105:P,108:G,109:U,112:j,114:z,116:47,117:W,118:K,119:H},e(R,[2,136],{109:Qe}),e($t,[2,145],{111:293,11:pe,63:fe,87:ge,108:be,112:ke,113:me,114:Ae,115:Ee}),e(le,[2,147]),e(le,[2,149]),e(le,[2,150]),e(le,[2,151]),e(le,[2,152]),e(le,[2,153]),e(le,[2,154]),e(le,[2,155]),e(le,[2,156]),e(R,[2,137],{109:Qe}),{11:[1,294]},e(R,[2,138],{109:Qe}),{11:[1,295]},e(Zt,[2,144]),e(R,[2,120],{109:Qe}),e(R,[2,121],{116:122,47:h,63:x,92:O,105:P,108:G,109:U,112:j,114:z,117:W,118:K,119:H}),e(R,[2,125]),e(R,[2,127],{11:[1,296]}),e(R,[2,128]),{101:[1,297]},{54:[1,298]},{65:[1,299]},{69:[1,300]},{8:J,9:Z,10:$,12:ee,22:301,34:302,43:ye},e(D,[2,40]),{6:13,7:14,8:c,9:f,10:p,11:g,12:k,21:20,23:21,24:22,25:23,26:24,27:25,28:v,33:[1,303],35:S,36:B,37:29,38:T,40:b,42:d,45:33,46:44,47:h,48:45,50:46,63:x,87:N,88:te,89:de,90:ue,91:he,92:O,105:P,108:G,109:U,112:j,114:z,116:47,117:W,118:K,119:H,124:De,125:_e,126:ve,127:Fe,128:Ve},{8:J,9:Z,10:$,12:ee,22:304,34:305,43:ye},e(Ie,[2,65]),{11:pe,63:fe,87:ge,108:be,110:306,111:264,112:ke,113:me,114:Ae,115:Ee},e(le,[2,148]),{15:we,47:Ne,63:Re,92:Oe,104:307,108:Pe,109:Ge,112:Ue,114:je,117:ze,118:We,119:Ke,123:97},{15:we,47:Ne,63:Re,92:Oe,104:308,108:Pe,109:Ge,112:Ue,114:je,117:ze,118:We,119:Ke,123:97},{101:[1,309]},e(R,[2,135]),e(q,[2,71]),{31:310,70:F,83:X,84:Q,85:185,119:V,120:I,121:L},e(q,[2,79]),e(Ye,a,{5:311}),{8:J,9:Z,10:$,12:ee,22:312,43:qe},e(D,[2,41]),e(D,[2,44]),{8:J,9:Z,10:$,12:ee,22:313,43:qe},e($t,[2,146],{111:293,11:pe,63:fe,87:ge,108:be,112:ke,113:me,114:Ae,115:Ee}),e(R,[2,141],{123:181,11:[1,314],15:we,47:Ne,63:Re,92:Oe,108:Pe,109:Ge,112:Ue,114:je,117:ze,118:We,119:Ke}),e(R,[2,142],{123:181,11:[1,315],15:we,47:Ne,63:Re,92:Oe,108:Pe,109:Ge,112:Ue,114:je,117:ze,118:We,119:Ke}),e(R,[2,129]),{32:[1,316],70:F,85:237,119:V,120:I,121:L},{6:13,7:14,8:c,9:f,10:p,11:g,12:k,21:20,23:21,24:22,25:23,26:24,27:25,28:v,33:[1,317],35:S,36:B,37:29,38:T,40:b,42:d,45:33,46:44,47:h,48:45,50:46,63:x,87:N,88:te,89:de,90:ue,91:he,92:O,105:P,108:G,109:U,112:j,114:z,116:47,117:W,118:K,119:H,124:De,125:_e,126:ve,127:Fe,128:Ve},e(Ye,a,{5:318}),e(D,[2,45]),{11:pe,63:fe,87:ge,95:319,108:be,110:263,111:264,112:ke,113:me,114:Ae,115:Ee},{11:pe,63:fe,87:ge,95:320,108:be,110:263,111:264,112:ke,113:me,114:Ae,115:Ee},e(q,[2,75]),e(D,[2,38]),{6:13,7:14,8:c,9:f,10:p,11:g,12:k,21:20,23:21,24:22,25:23,26:24,27:25,28:v,33:[1,321],35:S,36:B,37:29,38:T,40:b,42:d,45:33,46:44,47:h,48:45,50:46,63:x,87:N,88:te,89:de,90:ue,91:he,92:O,105:P,108:G,109:U,112:j,114:z,116:47,117:W,118:K,119:H,124:De,125:_e,126:ve,127:Fe,128:Ve},e(R,[2,139],{109:Qe}),e(R,[2,140],{109:Qe}),e(D,[2,39])],defaultActions:{},parseError:A(function(m,E){if(E.recoverable)this.trace(m);else{var C=new Error(m);throw C.hash=E,C}},"parseError"),parse:A(function(m){var E=this,C=[0],o=[],y=[null],t=[],_=this.table,s="",w=0,e1=0,t1=0,P1=2,s1=1,G1=t.slice.call(arguments,1),Y=Object.create(this.lexer),Le={yy:{}};for(var wt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,wt)&&(Le.yy[wt]=this.yy[wt]);Y.setInput(m,Le.yy),Le.yy.lexer=Y,Le.yy.parser=this,typeof Y.yylloc>"u"&&(Y.yylloc={});var Nt=Y.yylloc;t.push(Nt);var U1=Y.options&&Y.options.ranges;typeof Le.yy.parseError=="function"?this.parseError=Le.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function j1(ae){C.length=C.length-2*ae,y.length=y.length-ae,t.length=t.length-ae}A(j1,"popStack");function i1(){var ae;return ae=o.pop()||Y.lex()||s1,typeof ae!="number"&&(ae instanceof Array&&(o=ae,ae=o.pop()),ae=E.symbols_[ae]||ae),ae}A(i1,"lex");for(var se,Rt,Be,oe,ns,Ot,Je={},vt,Ce,r1,Ft;;){if(Be=C[C.length-1],this.defaultActions[Be]?oe=this.defaultActions[Be]:((se===null||typeof se>"u")&&(se=i1()),oe=_[Be]&&_[Be][se]),typeof oe>"u"||!oe.length||!oe[0]){var Pt="";Ft=[];for(vt in _[Be])this.terminals_[vt]&&vt>P1&&Ft.push("'"+this.terminals_[vt]+"'");Y.showPosition?Pt="Parse error on line "+(w+1)+`: +`+Y.showPosition()+` +Expecting `+Ft.join(", ")+", got '"+(this.terminals_[se]||se)+"'":Pt="Parse error on line "+(w+1)+": Unexpected "+(se==s1?"end of input":"'"+(this.terminals_[se]||se)+"'"),this.parseError(Pt,{text:Y.match,token:this.terminals_[se]||se,line:Y.yylineno,loc:Nt,expected:Ft})}if(oe[0]instanceof Array&&oe.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Be+", token: "+se);switch(oe[0]){case 1:C.push(se),y.push(Y.yytext),t.push(Y.yylloc),C.push(oe[1]),se=null,Rt?(se=Rt,Rt=null):(e1=Y.yyleng,s=Y.yytext,w=Y.yylineno,Nt=Y.yylloc,t1>0&&t1--);break;case 2:if(Ce=this.productions_[oe[1]][1],Je.$=y[y.length-Ce],Je._$={first_line:t[t.length-(Ce||1)].first_line,last_line:t[t.length-1].last_line,first_column:t[t.length-(Ce||1)].first_column,last_column:t[t.length-1].last_column},U1&&(Je._$.range=[t[t.length-(Ce||1)].range[0],t[t.length-1].range[1]]),Ot=this.performAction.apply(Je,[s,e1,w,Le.yy,oe[1],y,t].concat(G1)),typeof Ot<"u")return Ot;Ce&&(C=C.slice(0,-1*Ce*2),y=y.slice(0,-1*Ce),t=t.slice(0,-1*Ce)),C.push(this.productions_[oe[1]][0]),y.push(Je.$),t.push(Je._$),r1=_[C[C.length-2]][C[C.length-1]],C.push(r1);break;case 3:return!0}}return!0},"parse")},O1=(function(){var Te={EOF:1,parseError:A(function(E,C){if(this.yy.parser)this.yy.parser.parseError(E,C);else throw new Error(E)},"parseError"),setInput:A(function(m,E){return this.yy=E||this.yy||{},this._input=m,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:A(function(){var m=this._input[0];this.yytext+=m,this.yyleng++,this.offset++,this.match+=m,this.matched+=m;var E=m.match(/(?:\r\n?|\n).*/g);return E?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),m},"input"),unput:A(function(m){var E=m.length,C=m.split(/(?:\r\n?|\n)/g);this._input=m+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-E),this.offset-=E;var o=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),C.length-1&&(this.yylineno-=C.length-1);var y=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:C?(C.length===o.length?this.yylloc.first_column:0)+o[o.length-C.length].length-C[0].length:this.yylloc.first_column-E},this.options.ranges&&(this.yylloc.range=[y[0],y[0]+this.yyleng-E]),this.yyleng=this.yytext.length,this},"unput"),more:A(function(){return this._more=!0,this},"more"),reject:A(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). +`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:A(function(m){this.unput(this.match.slice(m))},"less"),pastInput:A(function(){var m=this.matched.substr(0,this.matched.length-this.match.length);return(m.length>20?"...":"")+m.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:A(function(){var m=this.match;return m.length<20&&(m+=this._input.substr(0,20-m.length)),(m.substr(0,20)+(m.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:A(function(){var m=this.pastInput(),E=new Array(m.length+1).join("-");return m+this.upcomingInput()+` +`+E+"^"},"showPosition"),test_match:A(function(m,E){var C,o,y;if(this.options.backtrack_lexer&&(y={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(y.yylloc.range=this.yylloc.range.slice(0))),o=m[0].match(/(?:\r\n?|\n).*/g),o&&(this.yylineno+=o.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:o?o[o.length-1].length-o[o.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+m[0].length},this.yytext+=m[0],this.match+=m[0],this.matches=m,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(m[0].length),this.matched+=m[0],C=this.performAction.call(this,this.yy,this,E,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),C)return C;if(this._backtrack){for(var t in y)this[t]=y[t];return!1}return!1},"test_match"),next:A(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var m,E,C,o;this._more||(this.yytext="",this.match="");for(var y=this._currentRules(),t=0;tE[0].length)){if(E=C,o=t,this.options.backtrack_lexer){if(m=this.test_match(C,y[t]),m!==!1)return m;if(this._backtrack){E=!1;continue}else return!1}else if(!this.options.flex)break}return E?(m=this.test_match(E,y[o]),m!==!1?m:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text. +`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:A(function(){var E=this.next();return E||this.lex()},"lex"),begin:A(function(E){this.conditionStack.push(E)},"begin"),popState:A(function(){var E=this.conditionStack.length-1;return E>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:A(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:A(function(E){return E=this.conditionStack.length-1-Math.abs(E||0),E>=0?this.conditionStack[E]:"INITIAL"},"topState"),pushState:A(function(E){this.begin(E)},"pushState"),stateStackSize:A(function(){return this.conditionStack.length},"stateStackSize"),options:{},performAction:A(function(E,C,o,y){var t=y;switch(o){case 0:return this.begin("acc_title"),38;break;case 1:return this.popState(),"acc_title_value";break;case 2:return this.begin("acc_descr"),40;break;case 3:return this.popState(),"acc_descr_value";break;case 4:this.begin("acc_descr_multiline");break;case 5:this.popState();break;case 6:return"acc_descr_multiline_value";case 7:return this.pushState("shapeData"),C.yytext="",43;break;case 8:return this.pushState("shapeDataStr"),43;break;case 9:return this.popState(),43;break;case 10:let _=/\n\s*/g;return C.yytext=C.yytext.replace(_,"
    "),43;break;case 11:return 43;case 12:this.popState();break;case 13:this.begin("callbackname");break;case 14:this.popState();break;case 15:this.popState(),this.begin("callbackargs");break;case 16:return 98;case 17:this.popState();break;case 18:return 99;case 19:return"MD_STR";case 20:this.popState();break;case 21:this.begin("md_string");break;case 22:return"STR";case 23:this.popState();break;case 24:this.pushState("string");break;case 25:return 87;case 26:return 105;case 27:return 88;case 28:return 107;case 29:return 89;case 30:return 90;case 31:return 100;case 32:this.begin("click");break;case 33:this.popState();break;case 34:return 91;case 35:return E.lex.firstGraph()&&this.begin("dir"),13;break;case 36:return 28;case 37:return 36;case 38:return 35;case 39:return 33;case 40:return 101;case 41:return 101;case 42:return 101;case 43:return 101;case 44:return this.popState(),14;break;case 45:return this.popState(),15;break;case 46:return this.popState(),15;break;case 47:return this.popState(),15;break;case 48:return this.popState(),15;break;case 49:return this.popState(),15;break;case 50:return this.popState(),15;break;case 51:return this.popState(),15;break;case 52:return this.popState(),15;break;case 53:return this.popState(),15;break;case 54:return this.popState(),15;break;case 55:return 124;case 56:return 125;case 57:return 126;case 58:return 127;case 59:return 128;case 60:return 81;case 61:return 108;case 62:return 114;case 63:return 49;case 64:return 63;case 65:return 47;case 66:return 9;case 67:return 109;case 68:return 118;case 69:return this.popState(),80;break;case 70:return this.pushState("edgeText"),78;break;case 71:return 122;case 72:return 80;case 73:break;case 74:return this.popState(),56;break;case 75:return"TEXT";case 76:return this.pushState("ellipseText"),55;break;case 77:return this.popState(),58;break;case 78:return this.pushState("text"),57;break;case 79:return this.popState(),60;break;case 80:return this.pushState("text"),59;break;case 81:return 61;case 82:return this.pushState("text"),70;break;case 83:return this.popState(),67;break;case 84:return this.pushState("text"),66;break;case 85:return this.popState(),52;break;case 86:return this.pushState("text"),51;break;case 87:break;case 88:return this.popState(),72;break;case 89:return this.popState(),74;break;case 90:return 120;case 91:return this.pushState("trapText"),71;break;case 92:return this.pushState("trapText"),73;break;case 93:return 121;case 94:return 70;case 95:return 93;case 96:return"SEP";case 97:return 92;case 98:return 118;case 99:return 114;case 100:return 47;case 101:return 8;case 102:return 112;case 103:return 117;case 104:return 119;case 105:return this.popState(),65;break;case 106:return this.pushState("text"),65;break;case 107:return this.popState(),54;break;case 108:return this.pushState("text"),53;break;case 109:return this.popState(),32;break;case 110:return this.pushState("text"),30;break;case 111:return this.popState(),69;break;case 112:return this.pushState("text"),68;break;case 113:break;case 114:return"TEXT";case 115:return"QUOTE";case 116:return 10;case 117:return 11;case 118:return 12}},"anonymous"),rules:[/^(?:accTitle\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*\{\s*)/,/^(?:[\}])/,/^(?:[^\}]*)/,/^(?:@\{)/,/^(?:["])/,/^(?:["])/,/^(?:[^\"]+)/,/^(?:[^}^"]+)/,/^(?:\})/,/^(?:call[\s]+)/,/^(?:\([\s]*\))/,/^(?:\()/,/^(?:[^(]*)/,/^(?:\))/,/^(?:[^)]*)/,/^(?:[^`"]+)/,/^(?:[`]["])/,/^(?:["][`])/,/^(?:[^"]+)/,/^(?:["])/,/^(?:["])/,/^(?:style\b)/,/^(?:default\b)/,/^(?:linkStyle\b)/,/^(?:interpolate\b)/,/^(?:classDef\b)/,/^(?:class\b)/,/^(?:href[\s])/,/^(?:click[\s]+)/,/^(?:[\s\n])/,/^(?:[^\s\n]*)/,/^(?:agentflow-beta\b)/,/^(?:flow\b)/,/^(?:connector\b)/,/^(?:global\b[ \t]*)/,/^(?:end\b[ \t]*)/,/^(?:_self\b)/,/^(?:_blank\b)/,/^(?:_parent\b)/,/^(?:_top\b)/,/^(?:(\r?\n)*\s*\n)/,/^(?:\s*LR\b)/,/^(?:\s*RL\b)/,/^(?:\s*TB\b)/,/^(?:\s*BT\b)/,/^(?:\s*TD\b)/,/^(?:\s*BR\b)/,/^(?:\s*<)/,/^(?:\s*>)/,/^(?:\s*\^)/,/^(?:\s*v\b)/,/^(?:.*direction\s+TB[^\n]*)/,/^(?:.*direction\s+BT[^\n]*)/,/^(?:.*direction\s+RL[^\n]*)/,/^(?:.*direction\s+LR[^\n]*)/,/^(?:.*direction\s+TD[^\n]*)/,/^(?:[^\s\"]+@(?=[^\{\"]))/,/^(?:[0-9]+)/,/^(?:#)/,/^(?::::)/,/^(?::)/,/^(?:&)/,/^(?:;)/,/^(?:,)/,/^(?:\*)/,/^(?:\s*--+[x>]\s*)/,/^(?:\s*--\s*)/,/^(?:[^-]|-(?!-)+)/,/^(?:\s*-\.+-\s*)/,/^(?:%%(?!\{)[^\n]*)/,/^(?:[-/\)][\)])/,/^(?:[^\(\)\[\]\{\}]|!\)+)/,/^(?:\(-)/,/^(?:\]\))/,/^(?:\(\[)/,/^(?:\]\])/,/^(?:\[\[)/,/^(?:\[\|)/,/^(?:>)/,/^(?:\)\])/,/^(?:\[\()/,/^(?:\)\)\))/,/^(?:\(\(\()/,/^(?:%%(?!\{)[^\n]*)/,/^(?:[\\(?=\])][\]])/,/^(?:\/(?=\])\])/,/^(?:\/(?!\])|\\(?!\])|(?:[^\\\[\]\(\)\{\}\/%]+|(?!))+)/,/^(?:\[\/)/,/^(?:\[\\)/,/^(?:<)/,/^(?:>)/,/^(?:\^)/,/^(?:\\\|)/,/^(?:v\b)/,/^(?:\*)/,/^(?:#)/,/^(?:&)/,/^(?:[ \t]*%%(?!\{)[^\n]*)/,/^(?:([A-Za-z0-9!"\#$%&'*+\.`?\\_\/]|-(?=[^\>\-\.])|(?!))+)/,/^(?:-)/,/^(?:[\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6]|[\u00F8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377]|[\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5]|[\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA]|[\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE]|[\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA]|[\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0]|[\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977]|[\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2]|[\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A]|[\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39]|[\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8]|[\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C]|[\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C]|[\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99]|[\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0]|[\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D]|[\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3]|[\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10]|[\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1]|[\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81]|[\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3]|[\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6]|[\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A]|[\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081]|[\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D]|[\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0]|[\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310]|[\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C]|[\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u1700-\u170C\u170E-\u1711]|[\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7]|[\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C]|[\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16]|[\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF]|[\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC]|[\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D]|[\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D]|[\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3]|[\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F]|[\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128]|[\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184]|[\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3]|[\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6]|[\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE]|[\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C]|[\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D]|[\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC]|[\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B]|[\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788]|[\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805]|[\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB]|[\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28]|[\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5]|[\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4]|[\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E]|[\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D]|[\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36]|[\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D]|[\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC]|[\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF]|[\uFFD2-\uFFD7\uFFDA-\uFFDC])/,/^(?:\|)/,/^(?:\|)/,/^(?:\))/,/^(?:\()/,/^(?:\])/,/^(?:\[)/,/^(?:(\}))/,/^(?:\{)/,/^(?:%%(?!\{)[^\n]*)/,/^(?:(?:[^\[\]\(\)\{\}\|\"%]+|(?!))+)/,/^(?:")/,/^(?:(\r?\n)+)/,/^(?:\s)/,/^(?:$)/],conditions:{shapeDataEndBracket:{rules:[21,24,76,78,80,84,86,91,92,106,108,110,112],inclusive:!1},shapeDataStr:{rules:[9,10,21,24,76,78,80,84,86,91,92,106,108,110,112],inclusive:!1},shapeData:{rules:[8,11,12,21,24,76,78,80,84,86,91,92,106,108,110,112],inclusive:!1},callbackargs:{rules:[17,18,21,24,76,78,80,84,86,91,92,106,108,110,112],inclusive:!1},callbackname:{rules:[14,15,16,21,24,76,78,80,84,86,91,92,106,108,110,112],inclusive:!1},href:{rules:[21,24,76,78,80,84,86,91,92,106,108,110,112],inclusive:!1},click:{rules:[21,24,33,34,76,78,80,84,86,91,92,106,108,110,112],inclusive:!1},edgeText:{rules:[21,24,69,71,76,78,80,84,86,91,92,106,108,110,112],inclusive:!1},trapText:{rules:[21,24,76,78,80,84,86,87,88,89,90,91,92,106,108,110,112],inclusive:!1},ellipseText:{rules:[21,24,73,74,75,76,78,80,84,86,91,92,106,108,110,112],inclusive:!1},text:{rules:[21,24,76,77,78,79,80,83,84,85,86,91,92,105,106,107,108,109,110,111,112,113,114],inclusive:!1},vertex:{rules:[21,24,76,78,80,84,86,91,92,106,108,110,112],inclusive:!1},dir:{rules:[21,24,44,45,46,47,48,49,50,51,52,53,54,76,78,80,84,86,91,92,106,108,110,112],inclusive:!1},acc_descr_multiline:{rules:[5,6,21,24,76,78,80,84,86,91,92,106,108,110,112],inclusive:!1},acc_descr:{rules:[3,21,24,76,78,80,84,86,91,92,106,108,110,112],inclusive:!1},acc_title:{rules:[1,21,24,76,78,80,84,86,91,92,106,108,110,112],inclusive:!1},md_string:{rules:[19,20,21,24,76,78,80,84,86,91,92,106,108,110,112],inclusive:!1},string:{rules:[21,22,23,24,76,78,80,84,86,91,92,106,108,110,112],inclusive:!1},INITIAL:{rules:[0,2,4,7,13,21,24,25,26,27,28,29,30,31,32,35,36,37,38,39,40,41,42,43,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,72,76,78,80,81,82,84,86,91,92,93,94,95,96,97,98,99,100,101,102,103,104,106,108,110,112,115,116,117,118],inclusive:!0}}};return Te})();yt.lexer=O1;function _t(){this.yy={}}return A(_t,"Parser"),_t.prototype=yt,yt.Parser=_t,new _t})();Wt.parser=Wt;var N1=Wt,R1=Object.assign({},N1);R1.parse=e=>{let i=e.replace(/}[^\S\n]*\n/g,`} +`);return N1.parse(i)};var es=R1,ts=A(e=>{let{theme:i,bkgColorArray:r,borderColorArray:n}=e;if(!m1(i,n))return"";let u=A1(e.look),l=k1(r),a=E1(e.THEME_COLOR_LIMIT,n),c=A(g=>n[g%n.length],"border"),f=A(g=>l?`fill: ${r[g%r.length]};`:"","fill"),p="";for(let g of Y1){let k=Mt.get(g),v=`[data-look="${u}"].node.${L1(g)}`;p+=` + + ${v} rect, + ${v} path, + ${v} polygon { + stroke: ${c(k)}; + ${f(k)} + } +`}for(let g=0;g`${v} ${T}, ${S} ${T}`,"rule");p+=` + + ${B("rect")}, + ${B("path")} { + stroke: ${c(k)}; + ${f(k)} + } +`}return p},"genColor"),ss=A((e,i)=>{let r=a1,n=r(e,"r"),u=r(e,"g"),l=r(e,"b");return n1(n,u,l,i)},"fade"),is=A(e=>`${ts(e)} + .label { + font-family: ${e.fontFamily}; + color: ${e.nodeTextColor||e.textColor}; + } + .cluster-label text { + fill: ${e.titleColor}; + } + .cluster-label span { + color: ${e.titleColor}; + } + .cluster-label span p { + background-color: transparent; + } + + .label text,span { + fill: ${e.nodeTextColor||e.textColor}; + color: ${e.nodeTextColor||e.textColor}; + } + + .node rect, + .node circle, + .node ellipse, + .node polygon, + .node path { + fill: ${e.mainBkg}; + stroke: ${e.nodeBorder}; + stroke-width: ${e.strokeWidth??1}px; + } + .rough-node .label text , .node .label text, .image-shape .label, .icon-shape .label { + text-anchor: middle; + } + .node .katex path { + fill: ${e.nodeTextColor||e.textColor}; + stroke: ${e.nodeTextColor||e.textColor}; + stroke-width: 1px; + } + + .rough-node .label,.node .label, .image-shape .label, .icon-shape .label { + text-align: center; + } + .node.clickable { + cursor: pointer; + } + + + .root .anchor path { + fill: ${e.lineColor} !important; + stroke-width: 0; + stroke: ${e.lineColor}; + } + + .arrowheadPath { + fill: ${e.arrowheadColor}; + } + + .edgePaths .path { + stroke: ${e.lineColor}; + stroke-width: ${e.strokeWidth??2}px; + } + + .flowchart-link { + stroke: ${e.lineColor}; + fill: none; + } + + .edgeLabel { + background-color: ${e.edgeLabelBackground}; + p { + background-color: ${e.edgeLabelBackground}; + } + rect { + opacity: 0.5; + background-color: ${e.edgeLabelBackground}; + fill: ${e.edgeLabelBackground}; + } + text-align: center; + } + + /* For html labels only */ + .labelBkg { + background-color: ${ss(e.edgeLabelBackground,.5)}; + } + + .cluster rect { + fill: ${e.clusterBkg}; + stroke: ${e.clusterBorder}; + stroke-width: 1px; + } + + .flow-cluster rect { + fill: none; + stroke: ${e.clusterBorder}; + stroke-width: 0.75px; + } + + .node .collapsed-indicator { + fill: ${e.nodeBorder}; + stroke: none; + stroke-width: 0; + opacity: 0.5; + } + + .node .collapsed-separator { + stroke-width: 0.75px; + } + + .cluster text { + fill: ${e.titleColor}; + } + + .cluster span { + color: ${e.titleColor}; + } + /* .cluster div { + color: ${e.titleColor}; + } */ + + div.mermaidTooltip { + position: absolute; + text-align: center; + max-width: 200px; + padding: 2px; + font-family: ${e.fontFamily}; + font-size: 12px; + background: ${e.tertiaryColor}; + border: 1px solid ${e.border2}; + border-radius: 2px; + pointer-events: none; + z-index: 100; + } + + .agentflowTitleText { + text-anchor: middle; + font-size: 18px; + fill: ${e.textColor}; + } + + rect.text { + fill: none; + stroke-width: 0; + } + + .icon-shape, .image-shape { + background-color: ${e.edgeLabelBackground}; + p { + background-color: ${e.edgeLabelBackground}; + padding: 2px; + } + .label rect { + opacity: 0.5; + background-color: ${e.edgeLabelBackground}; + fill: ${e.edgeLabelBackground}; + } + text-align: center; + } + ${D1()} +`,"getStyles"),rs=is,Vs={parser:es,get db(){return new Q1},renderer:$1,styles:rs,init:A(e=>{e.agentflow??={},e.layout&&Gt({layout:e.layout}),e.flowchart??={},e.flowchart.arrowMarkerAbsolute=e.arrowMarkerAbsolute,Gt({flowchart:{arrowMarkerAbsolute:e.arrowMarkerAbsolute}})},"init")};export{Vs as diagram}; diff --git a/src/frontend/web/von_interface/static/vendor/conversation-visuals/diagram-3UASUU5V-BNHC2XWO.js b/src/frontend/web/von_interface/static/vendor/conversation-visuals/diagram-3UASUU5V-BNHC2XWO.js new file mode 100644 index 000000000..52eec516c --- /dev/null +++ b/src/frontend/web/von_interface/static/vendor/conversation-visuals/diagram-3UASUU5V-BNHC2XWO.js @@ -0,0 +1,24 @@ +import{a as ue}from"./chunk-CDENLQJG.js";import{a as ye}from"./chunk-WBZZWDU5.js";import"./chunk-ZFFKTRVX.js";import"./chunk-DKYAF235.js";import"./chunk-X7BLBFFS.js";import"./chunk-YMFA7VWU.js";import"./chunk-C7GWRE6Z.js";import"./chunk-4DL6P2YZ.js";import"./chunk-KCWUFFIE.js";import"./chunk-RDO2S4TE.js";import"./chunk-XCFPDLUP.js";import"./chunk-RMEGOE55.js";import"./chunk-QNBXOM7U.js";import{a as fe}from"./chunk-EQQJCVK6.js";import"./chunk-NMQHKCXS.js";import"./chunk-SEHHQ34Z.js";import"./chunk-K6AAXKM5.js";import"./chunk-KVFXNR4L.js";import"./chunk-RVPSGR2P.js";import{a as he}from"./chunk-UED66XBH.js";import{c as me,d as $}from"./chunk-IVPOI5SM.js";import{o as I}from"./chunk-EUYVSIXP.js";import"./chunk-QSTT4QQC.js";import{C as R,P as ae,U as le,V as se,W as re,X as ne,Y as oe,Z as ie,_ as ce,p as ee,r as te}from"./chunk-S4JILX6U.js";import{b as H,h as V,j as N,k as pe,l as de,m as B}from"./chunk-XEQL7KGA.js";import{a as h}from"./chunk-YUSHYV7C.js";import"./chunk-3RNHDNP5.js";var ge=class{constructor(){this.nodes=[],this.levels=new Map,this.outerNodes=[],this.classes=new Map,this.setAccTitle=se,this.getAccTitle=re,this.setDiagramTitle=ie,this.getDiagramTitle=ce,this.getAccDescription=oe,this.setAccDescription=ne}static{h(this,"TreeMapDB")}getNodes(){return this.nodes}getConfig(){let r=te,s=R();return I({...r.treemap,...s.treemap??{}})}addNode(r,s){this.nodes.push(r),this.levels.set(r,s),s===0&&(this.outerNodes.push(r),this.root??=r)}getRoot(){return{name:"",children:this.outerNodes}}addClass(r,s){let i=this.classes.get(r)??{id:r,styles:[],textStyles:[]},c=s.replace(/\\,/g,"\xA7\xA7\xA7").replace(/,/g,";").replace(/§§§/g,",").split(";");c&&c.forEach(l=>{me(l)&&(i?.textStyles?i.textStyles.push(l):i.textStyles=[l]),i?.styles?i.styles.push(l):i.styles=[l]}),this.classes.set(r,i)}getClasses(){return this.classes}getStylesForClass(r){return this.classes.get(r)?.styles??[]}clear(){le(),this.nodes=[],this.levels=new Map,this.outerNodes=[],this.classes=new Map,this.root=void 0}};function Se(r){if(!r.length)return[];let s=[],i=[];return r.forEach(c=>{let l={name:c.name,children:c.type==="Leaf"?void 0:[]};for(l.classSelector=c?.classSelector,c?.cssCompiledStyles&&(l.cssCompiledStyles=c.cssCompiledStyles),c.type==="Leaf"&&c.value!==void 0&&(l.value=c.value);i.length>0&&i[i.length-1].level>=c.level;)i.pop();if(i.length===0)s.push(l);else{let n=i[i.length-1].node;n.children?n.children.push(l):n.children=[l]}c.type!=="Leaf"&&i.push({node:l,level:c.level})}),s}h(Se,"buildHierarchy");var Fe=h((r,s)=>{ue(r,s);let i=[];for(let n of r.TreemapRows??[])n.$type==="ClassDefStatement"&&s.addClass(n.className??"",n.styleText??"");for(let n of r.TreemapRows??[]){let d=n.item;if(!d)continue;let m=n.indent?parseInt(n.indent):0,k=Ne(d),a=d.classSelector?s.getStylesForClass(d.classSelector):[],A=a.length>0?a:void 0,b={level:m,name:k,type:d.$type,value:d.value,classSelector:d.classSelector,cssCompiledStyles:A};i.push(b)}let c=Se(i),l=h((n,d)=>{for(let m of n)s.addNode(m,d),m.children&&m.children.length>0&&l(m.children,d+1)},"addNodesRecursively");l(c,0)},"populate"),Ne=h(r=>r.name?String(r.name):"","getItemName"),xe={parser:{yy:void 0},parse:h(async r=>{try{let i=await ye("treemap",r);H.debug("Treemap AST:",i);let c=xe.parser?.yy;if(!(c instanceof ge))throw new Error("parser.parser?.yy was not a TreemapDB. This is due to a bug within Mermaid, please report this issue at https://github.com/mermaid-js/mermaid/issues.");Fe(i,c)}catch(s){throw H.error("Error parsing treemap:",s),s}},"parse")},ze=10,z=10,M=25,Ae=h((r,s,i,c)=>{let l=c.db,n=l.getConfig(),d=n.padding??ze,m=l.getDiagramTitle(),k=l.getRoot(),{themeVariables:a}=R();if(!k)return;let A=m?30:0,b=he(s),Y=n.nodeWidth?n.nodeWidth*z:960,j=n.nodeHeight?n.nodeHeight*z:500,O=Y,U=j+A;b.attr("viewBox",`0 0 ${O} ${U}`),ae(b,U,O,n.useMaxWidth);let v;try{let e=n.valueFormat||",";if(e==="$0,0")v=h(t=>"$"+N(",")(t),"valueFormat");else if(e.startsWith("$")&&e.includes(",")){let t=/\.\d+/.exec(e),o=t?t[0]:"";v=h(f=>"$"+N(","+o)(f),"valueFormat")}else if(e.startsWith("$")){let t=e.substring(1);v=h(o=>"$"+N(t||"")(o),"valueFormat")}else v=N(e)}catch(e){H.error("Error creating format function:",e),v=N(",")}let P=B().range(["transparent",a.cScale0,a.cScale1,a.cScale2,a.cScale3,a.cScale4,a.cScale5,a.cScale6,a.cScale7,a.cScale8,a.cScale9,a.cScale10,a.cScale11]),be=B().range(["transparent",a.cScalePeer0,a.cScalePeer1,a.cScalePeer2,a.cScalePeer3,a.cScalePeer4,a.cScalePeer5,a.cScalePeer6,a.cScalePeer7,a.cScalePeer8,a.cScalePeer9,a.cScalePeer10,a.cScalePeer11]),W=B().range([a.cScaleLabel0,a.cScaleLabel1,a.cScaleLabel2,a.cScaleLabel3,a.cScaleLabel4,a.cScaleLabel5,a.cScaleLabel6,a.cScaleLabel7,a.cScaleLabel8,a.cScaleLabel9,a.cScaleLabel10,a.cScaleLabel11]);m&&b.append("text").attr("x",O/2).attr("y",A/2).attr("class","treemapTitle").attr("text-anchor","middle").attr("dominant-baseline","middle").text(m);let q=b.append("g").attr("transform",`translate(0, ${A})`).attr("class","treemapContainer"),ve=pe(k).sum(e=>e.value??0).sort((e,t)=>(t.value??0)-(e.value??0)),J=de().size([Y,j]).paddingTop(e=>e.children&&e.children.length>0?M+z:0).paddingInner(d).paddingLeft(e=>e.children&&e.children.length>0?z:0).paddingRight(e=>e.children&&e.children.length>0?z:0).paddingBottom(e=>e.children&&e.children.length>0?z:0).round(!0)(ve),Ce=J.descendants().filter(e=>e.children&&e.children.length>0),D=q.selectAll(".treemapSection").data(Ce).enter().append("g").attr("class","treemapSection").attr("transform",e=>`translate(${e.x0},${e.y0})`);D.append("rect").attr("width",e=>e.x1-e.x0).attr("height",M).attr("class","treemapSectionHeader").attr("fill","none").attr("fill-opacity",.6).attr("stroke-width",.6).attr("style",e=>e.depth===0?"display: none;":""),D.append("clipPath").attr("id",(e,t)=>`clip-section-${s}-${t}`).append("rect").attr("width",e=>Math.max(0,e.x1-e.x0-12)).attr("height",M),D.append("rect").attr("width",e=>e.x1-e.x0).attr("height",e=>e.y1-e.y0).attr("class",(e,t)=>`treemapSection section${t}`).attr("fill",e=>P(e.data.name)).attr("fill-opacity",.6).attr("stroke",e=>be(e.data.name)).attr("stroke-width",2).attr("stroke-opacity",.4).attr("style",e=>{if(e.depth===0)return"display: none;";let t=$({cssCompiledStyles:e.data.cssCompiledStyles});return t.nodeStyles+";"+t.borderStyles.join(";")}),D.append("text").attr("class","treemapSectionLabel").attr("x",6).attr("y",M/2).attr("dominant-baseline","middle").text(e=>e.depth===0?"":e.data.name).attr("font-weight","bold").attr("clip-path",(e,t)=>`url(#clip-section-${s}-${t})`).attr("style",e=>{if(e.depth===0)return"display: none;";let t="dominant-baseline: middle; font-size: 12px; fill:"+W(e.data.name)+"; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;",o=$({cssCompiledStyles:e.data.cssCompiledStyles});return t+o.labelStyles.replace("color:","fill:")}).each(function(e){if(e.depth===0)return;let t=V(this),o=e.data.name;t.text(o);let f=e.x1-e.x0,y=6,u;n.showValues!==!1&&e.value?u=f-10-30-10-y:u=f-y-6;let p=Math.max(15,u),w=t.node();if(w.getComputedTextLength()>p){let T=o;for(;T.length>0;){if(T=o.substring(0,T.length-1),T.length===0){t.text("..."),w.getComputedTextLength()>p&&t.text("");break}if(t.text(T+"..."),w.getComputedTextLength()<=p)break}}}),n.showValues!==!1&&D.append("text").attr("class","treemapSectionValue").attr("x",e=>e.x1-e.x0-10).attr("y",M/2).attr("text-anchor","end").attr("dominant-baseline","middle").text(e=>e.value?v(e.value):"").attr("font-style","italic").attr("style",e=>{if(e.depth===0)return"display: none;";let t="text-anchor: end; dominant-baseline: middle; font-size: 10px; fill:"+W(e.data.name)+"; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;",o=$({cssCompiledStyles:e.data.cssCompiledStyles});return t+o.labelStyles.replace("color:","fill:")});let K=J.leaves(),S=K.length>20,we=S?16:38,E=S?14:28,L=S?4:8,F=S?4:6,G=S?2:4,Q=S?8:10,X=S?1:2,_=q.selectAll(".treemapLeafGroup").data(K).enter().append("g").attr("class",(e,t)=>`treemapNode treemapLeafGroup leaf${t}${e.data.classSelector?` ${e.data.classSelector}`:""}x`).attr("transform",e=>`translate(${e.x0},${e.y0})`);_.append("rect").attr("width",e=>e.x1-e.x0).attr("height",e=>e.y1-e.y0).attr("class","treemapLeaf").attr("fill",e=>e.parent?P(e.parent.data.name):P(e.data.name)).attr("style",e=>$({cssCompiledStyles:e.data.cssCompiledStyles}).nodeStyles).attr("fill-opacity",.3).attr("stroke",e=>e.parent?P(e.parent.data.name):P(e.data.name)).attr("stroke-width",3),_.append("clipPath").attr("id",(e,t)=>`clip-${s}-${t}`).append("rect").attr("width",e=>Math.max(0,e.x1-e.x0-4)).attr("height",e=>Math.max(0,e.y1-e.y0-4)),_.append("text").attr("class","treemapLabel").attr("x",e=>(e.x1-e.x0)/2).attr("y",e=>(e.y1-e.y0)/2).attr("style",e=>{let t=`text-anchor: middle; dominant-baseline: middle; font-size: ${we}px;fill:`+W(e.data.name)+";",o=$({cssCompiledStyles:e.data.cssCompiledStyles});return t+o.labelStyles.replace("color:","fill:")}).attr("clip-path",(e,t)=>`url(#clip-${s}-${t})`).text(e=>e.data.name).each(function(e){let t=V(this),o=e.x1-e.x0,f=e.y1-e.y0,y=t.node(),u=o-2*G,C=f-2*G;if(uu&&p>L;)p--,t.style("font-size",`${p}px`);let g=Math.max(F,Math.min(E,Math.round(p*w))),x=p+X+g;for(;x>C&&p>L&&(p--,g=Math.max(F,Math.min(E,Math.round(p*w))),!(gC;t.style("font-size",`${p}px`),S?(pu||p(t.x1-t.x0)/2).attr("y",function(t){return(t.y1-t.y0)/2}).attr("style",t=>{let o=`text-anchor: middle; dominant-baseline: hanging; font-size: ${E}px;fill:`+W(t.data.name)+";",f=$({cssCompiledStyles:t.data.cssCompiledStyles});return o+f.labelStyles.replace("color:","fill:")}).attr("clip-path",(t,o)=>`url(#clip-${s}-${o})`).text(t=>t.value?v(t.value):"").each(function(t){let o=V(this),f=this.parentNode;if(!f){o.style("display","none");return}let y=V(f).select(".treemapLabel");if(y.empty()||y.style("display")==="none"){o.style("display","none");return}let u=parseFloat(y.style("font-size")),p=Math.max(F,Math.min(E,Math.round(u*.6)));o.style("font-size",`${p}px`);let g=(t.y1-t.y0)/2+u/2+X;o.attr("y",g);let x=t.x1-t.x0,Z=t.y1-t.y0-4,Le=x-2*G;o.node().getComputedTextLength()>Le||g+p>Z||p{let s=ee(),i=R(),c=I(s,i.themeVariables),l=I(Ve,r),n=l.titleColor??c.titleColor,d=l.labelColor??c.textColor,m=l.valueColor??c.textColor;return` + .treemapNode.section { + stroke: ${l.sectionStrokeColor}; + stroke-width: ${l.sectionStrokeWidth}; + fill: ${l.sectionFillColor}; + } + .treemapNode.leaf { + stroke: ${l.leafStrokeColor}; + stroke-width: ${l.leafStrokeWidth}; + fill: ${l.leafFillColor}; + } + .treemapLabel { + fill: ${d}; + font-size: ${l.labelFontSize}; + } + .treemapValue { + fill: ${m}; + font-size: ${l.valueFontSize}; + } + .treemapTitle { + fill: ${n}; + font-size: ${l.titleFontSize}; + } + `},"getStyles"),ke=Me,Ue={parser:xe,get db(){return new ge},renderer:De,styles:ke};export{Ue as diagram}; diff --git a/src/frontend/web/von_interface/static/vendor/conversation-visuals/diagram-ATOU4E4O-GYEJ73S3.js b/src/frontend/web/von_interface/static/vendor/conversation-visuals/diagram-ATOU4E4O-GYEJ73S3.js new file mode 100644 index 000000000..f819cb178 --- /dev/null +++ b/src/frontend/web/von_interface/static/vendor/conversation-visuals/diagram-ATOU4E4O-GYEJ73S3.js @@ -0,0 +1,3 @@ +import{a as V}from"./chunk-CDENLQJG.js";import{a as j}from"./chunk-WBZZWDU5.js";import"./chunk-ZFFKTRVX.js";import"./chunk-DKYAF235.js";import"./chunk-X7BLBFFS.js";import"./chunk-YMFA7VWU.js";import"./chunk-C7GWRE6Z.js";import"./chunk-4DL6P2YZ.js";import"./chunk-KCWUFFIE.js";import"./chunk-RDO2S4TE.js";import"./chunk-XCFPDLUP.js";import"./chunk-RMEGOE55.js";import"./chunk-QNBXOM7U.js";import"./chunk-NMQHKCXS.js";import"./chunk-SEHHQ34Z.js";import"./chunk-K6AAXKM5.js";import"./chunk-KVFXNR4L.js";import{f as X}from"./chunk-RVPSGR2P.js";import{i as w,l as G,o as L}from"./chunk-EUYVSIXP.js";import"./chunk-QSTT4QQC.js";import{$ as M,C as b,I as v,U as D,V as N,W as C,X as O,Y as I,Z as W,_ as H,da as U,r as $}from"./chunk-S4JILX6U.js";import{b as f,h as _}from"./chunk-XEQL7KGA.js";import{a as o}from"./chunk-YUSHYV7C.js";import"./chunk-3RNHDNP5.js";var Y="position frame",z="frame positioned",k="position relation",K="relation positioned",we=o(function(e){f.debug("options str",e)},"setOptions"),ye=o(function(){return{}},"getOptions"),Pe=o(function(){q(),D()},"clear");function q(){E={}}o(q,"reset");var Se=$.eventmodeling,Me=o(()=>L({...Se,...b().eventmodeling}),"getConfig"),E={};function J(){let e=ke,{ast:n}=E,t=A();if(!n)throw new Error("No data for EventModel");return n.frames.forEach((i,r)=>{let a=re(i,n.dataEntities,t);e=P(e,{$kind:Y,index:r,frame:i,textProps:a});let d;ce(i)?(f.debug("source frame",i.sourceFrames),d=n.frames.filter(l=>i.sourceFrames.some(c=>c.$refText===l.name)),d.forEach(l=>{e=P(e,{$kind:k,index:r,frame:i,sourceFrame:l})})):e=P(e,{$kind:k,index:r,frame:i})}),e={...e,sortedSwimlanesArray:R(e.swimlanes)},e}o(J,"getState");function Q(e){E.ast=e}o(Q,"setAst");var s={swimlaneMinHeight:70,swimlanePadding:15,swimlaneGap:10,boxPadding:10,boxOverlap:90,boxDefaultY:0,boxMinWidth:80,boxMaxWidth:450,boxMinHeight:80,boxMaxHeight:750,contentStartX:250,textMaxWidth:430,boxTextFontWeight:"bold",boxTextPadding:10,swimlaneTextFontWeight:"bold",labelUiAutomation:"UI/Automation",labelUiAutomationPrefix:"UI/A: ",labelCommandReadModel:"Command/Read Model",labelCommandReadModelPrefix:"C/RM: ",labelEvents:"Events",labelEventsPrefix:"Stream: "};function A(){return s}o(A,"getDiagramProps");var ke={boxes:[],swimlanes:{},relations:[],maxR:0,sortedSwimlanesArray:[]};function Z(e){let n=e.split(".");if(n.length===2)return n[0]}o(Z,"extractNamespace");function ee(e){let n=e.split(".");return n.length===2?n[1]:e}o(ee,"extractName");function te(e,n){if(!(!n||n.length===0))return Object.values(e).find(t=>t.namespace===n)}o(te,"findSwimlaneByNamespace");function y(e,n,t){return Math.max(n,...Object.keys(e).filter(i=>{let r=Number.parseInt(i);return r>n&&rNumber.parseInt(i)))+1}o(y,"findNextAvailableIndex");function ne(e,n){let t=Z(e.entityIdentifier),i=te(n,t);switch(e.modelEntityType){case"ui":case"pcr":case"processor":return i?{index:i.index,label:i.namespace||s.labelUiAutomation}:t?{index:y(n,0,100),label:s.labelUiAutomationPrefix+t}:{index:0,label:s.labelUiAutomation};case"rmo":case"readmodel":case"cmd":case"command":return i?{index:i.index,label:i.namespace||s.labelCommandReadModel}:t?{index:y(n,100,200),label:s.labelCommandReadModelPrefix+t}:{index:100,label:s.labelCommandReadModel};default:return i?{index:i.index,label:i.namespace||s.labelEvents}:t?{index:y(n,200,300),label:s.labelEventsPrefix+t}:{index:200,label:s.labelEvents}}}o(ne,"calculateSwimlaneProps");function ie(e){let{themeVariables:n}=b();switch(e.modelEntityType){case"ui":return{fill:n.emUiFill??"white",stroke:n.emUiStroke??"#dbdada"};case"pcr":case"processor":return{fill:n.emProcessorFill??"#edb3f6",stroke:n.emProcessorStroke??"#b88cbf"};case"rmo":case"readmodel":return{fill:n.emReadModelFill??"#d3f1a2",stroke:n.emReadModelStroke??"#a3b732"};case"cmd":case"command":return{fill:n.emCommandFill??"#bcd6fe",stroke:n.emCommandStroke??"#679ac3"};case"evt":case"event":return{fill:n.emEventFill??"#ffb778",stroke:n.emEventStroke??"#c19a0f"};default:return{fill:"red",stroke:"black"}}}o(ie,"calculateEntityVisualProps");function re(e,n,t){let i=b(),r=v(ee(e.entityIdentifier)??"",i),a,d={fontSize:16,fontWeight:700,fontFamily:'"trebuchet ms", verdana, arial, sans-serif',joinWith:"
    "},c=`${w(r,t.textMaxWidth,d)}`;if(e.dataInlineValue&&(a=e.dataInlineValue,a=a.substring(a.indexOf("{")+1),a=a.substring(0,a.lastIndexOf("}")-1),a=v(a,i),a=w(a,t.textMaxWidth,d),a=a.replaceAll(" "," ")),e.dataReference){let p=n.find(S=>S.name===e.dataReference?.$refText);p&&(a=p.dataBlockValue,a=a.substring(a.indexOf(`{ +`)+2),a=a.substring(0,a.lastIndexOf("}")-1),a=v(a,i),a=w(a,t.textMaxWidth,d),a=a.replaceAll(" "," "),a+="
    ")}let m=a!==void 0;m&&(c+=`

    ${a}`);let x={fontSize:d.fontSize,fontWeight:d.fontWeight,fontFamily:d.fontFamily},u=G(c,x),h=m?u.width/3:u.width,g={content:c,width:h,height:u.height};return f.debug(`[${e.name}] ${e.entityIdentifier} text`,g),g}o(re,"calculateTextProps");function ae(e,n){let t=n,i=ie(t.frame),r={width:t.textProps.width+2*s.boxTextPadding,height:t.textProps.height+2*s.boxTextPadding};return[{$kind:z,frame:t.frame,index:t.index,visual:i,dimension:r,textProps:t.textProps}]}o(ae,"decidePositionFrame");function oe(e,n,t){return n===void 0?s.contentStartX:n.index===e.index&&e.r?e.r+s.boxPadding:t===void 0?s.contentStartX:t.r-s.boxOverlap+s.boxPadding}o(oe,"calculateX");function se(e,n){let t=[...e.map(i=>i.r),n];return Math.max(...t)}o(se,"calculateMaxRight");function R(e){return Object.values(e).sort((n,t)=>n.index-t.index)}o(R,"sortedSwimlanesArray");function de(e,n){let t=n,i=ne(t.frame,e.swimlanes),r;i.index in e.swimlanes?r=e.swimlanes[i.index]:r={index:i.index,label:i.label,r:0,y:i.index*s.swimlaneMinHeight+s.swimlaneGap,height:s.swimlaneMinHeight,maxHeight:s.swimlaneMinHeight};let a=e.boxes.length>0?e.boxes[e.boxes.length-1]:void 0,d=e.previousSwimlaneNumber!==void 0?e.swimlanes[e.previousSwimlaneNumber]:void 0,l={width:Math.max(s.boxMinWidth,Math.min(s.boxMaxWidth,t.dimension.width))+2*s.boxPadding,height:Math.max(s.boxMinHeight,Math.min(s.boxMaxHeight,t.dimension.height))+2*s.boxPadding},c=oe(r,d,a),m=c+l.width+s.boxPadding,x=se(Object.values(e.swimlanes),m);r.r=c+l.width,r.maxHeight=Math.max(r.maxHeight,l.height),r.height=Math.max(s.swimlaneMinHeight,r.maxHeight)+2*s.swimlanePadding;let u={x:c,y:s.swimlanePadding+r.y,r:m,dimension:l,leftSibling:!1,swimlane:r,visual:t.visual,text:t.textProps.content,frame:t.frame,index:t.index},h={...e,boxes:[...e.boxes,u],swimlanes:{...e.swimlanes,[`${r.index}`]:r},previousSwimlaneNumber:i.index,previousFrame:t.frame,maxR:x},g=R(h.swimlanes);g.length>0&&(g[0].y=0);for(let p=1;p0}o(ce,"hasSourceFrame");function F(e,n){if(n!=null)return e.find(t=>t.frame.name===n.name)}o(F,"findBoxByFrame");function me(e,n,t){if(!(t<0))for(let i=t;i>=0;i--){let r=e[i];if(r.swimlane.index!==n)return r}}o(me,"findBoxByLineIndex");function ue(e,n){let t=n;if(X(t.frame)||le(t.index,t.frame))return[];let i=F(e.boxes,t.frame);if(i===void 0)throw new Error(`Target box not found for frame ${t.frame.name}`);let r;return t.sourceFrame?r=F(e.boxes,t.sourceFrame):r=me(e.boxes,i.swimlane.index,t.index-1),r===void 0?[]:[{$kind:K,frame:t.frame,index:t.index,sourceBox:r,targetBox:i}]}o(ue,"decidePositionRelation");function xe(e,n){let t=n,i={visual:{fill:"none",stroke:"#000"},source:{x:t.sourceBox.x,y:t.sourceBox.y},target:{x:t.targetBox.x,y:t.targetBox.y},sourceBox:t.sourceBox,targetBox:t.targetBox};return{...e,relations:[...e.relations,i]}}o(xe,"evolveRelationPositioned");var Fe={[Y]:ae,[k]:ue},Be={[z]:de,[K]:xe};function fe(e,n){let t=Fe[n.$kind];if(t==null)return[];let i=t(e,n);return f.debug("decided events",i),i}o(fe,"decide");function ge(e,n){let t=n.reduce((i,r)=>{let a=Be[r.$kind];return a==null?i:a(i,r)},e);return f.debug("evolve events",{state:e,newState:t,events:n}),t}o(ge,"evolve");function P(e,n){let t=fe(e,n);return ge(e,t)}o(P,"dispatch");var B={getConfig:Me,setOptions:we,getOptions:ye,clear:Pe,setAccTitle:N,getAccTitle:C,getAccDescription:I,setAccDescription:O,setDiagramTitle:W,getDiagramTitle:H,setAst:Q,getDiagramProps:A,getState:J},Ee={parse:o(async e=>{let n=await j("eventmodeling",e);f.debug(n),B.setAst(n),V(n,B)},"parse")},Ae=M(),Re=Ae?.eventmodeling;function he(e,n){return t=>{let i=t.swimlane.y+n.swimlanePadding,r=e.append("g").attr("class","em-box");r.append("rect").attr("x",t.x).attr("y",i).attr("rx","3").attr("width",t.dimension.width).attr("height",t.dimension.height).attr("stroke",t.visual.stroke).attr("fill",t.visual.fill),r.append("foreignObject").attr("x",t.x+n.boxPadding).attr("y",i+10).attr("width",t.dimension.width-2*n.boxPadding).attr("height",t.dimension.height-2*n.boxPadding).append("xhtml:div").style("display","table").style("height","100%").style("width","100%").append("span").style("display","table-cell").style("text-align","center").style("vertical-align","middle").html(t.text)}}o(he,"renderD3Box");function pe(e,n){return e>n}o(pe,"dirUpwards");function be(e,n,t,i){return r=>{let a=r.sourceBox.swimlane.y+n.swimlanePadding,d=r.targetBox.swimlane.y+n.swimlanePadding,l=pe(a,d),c=r.sourceBox.x+r.sourceBox.dimension.width*2/3,m=r.targetBox.x+r.targetBox.dimension.width/3,x,u;f.debug(`rendering relation up=${l} for `,{sourceBox:r.sourceBox,targetBox:r.targetBox}),l?(x=a,u=d+r.targetBox.dimension.height):(x=a+r.sourceBox.dimension.height,u=d);let h=i.emRelationStroke??r.visual.stroke;e.append("path").attr("class","em-relation").attr("fill",r.visual.fill).attr("stroke",h).attr("stroke-width","1").attr("marker-end",`url(#${t})`).attr("d",`M${c} ${x} L${m} ${u}`)}}o(be,"renderD3Relation");function ve(e,n,t,i){return r=>{let a=e.append("g").attr("class","em-swimlane"),d=i.emSwimlaneBackgroundOdd??"rgb(250,250,250)",l=i.emSwimlaneBackgroundStroke??"rgb(240,240,240)";a.append("rect").attr("x",0).attr("y",r.y).attr("rx","3").attr("width",n+t.swimlanePadding).attr("height",r.height).attr("fill",d).attr("stroke",l),a.append("text").attr("font-weight",t.swimlaneTextFontWeight).attr("x",30).attr("y",r.y+30).text(r.label)}}o(ve,"renderD3Swimlane");var Te=o(function(e,n,t,i){if(f.debug("in eventmodeling renderer",e+` +`,"id:",n,t),!Re)throw new Error("EventModeling config not found");let r=i.db,{themeVariables:a,eventmodeling:d}=M(),l=_(`[id="${n}"]`),c=r.getDiagramProps(),m=r.getState(),x=`em-arrowhead-${n}`,u=a.emArrowhead??"#000000";m.sortedSwimlanesArray.forEach(ve(l,m.maxR,c,a)),m.boxes.forEach(he(l,c)),m.relations.forEach(be(l,c,x,a)),l.append("defs").append("marker").attr("id",x).attr("markerWidth","10").attr("markerHeight","7").attr("refX","10").attr("refY","3.5").attr("orient","auto").append("polygon").attr("points","0 0, 10 3.5, 0 7").attr("fill",u),U(void 0,l,d?.padding??30,d?.useMaxWidth)},"draw"),$e={draw:Te},De=o(e=>"","getStyles"),Ne=De,Le={parser:Ee,db:B,renderer:$e,styles:Ne};export{Le as diagram}; diff --git a/src/frontend/web/von_interface/static/vendor/conversation-visuals/diagram-CDSNMT55-CW57YOQZ.js b/src/frontend/web/von_interface/static/vendor/conversation-visuals/diagram-CDSNMT55-CW57YOQZ.js new file mode 100644 index 000000000..bfad584b3 --- /dev/null +++ b/src/frontend/web/von_interface/static/vendor/conversation-visuals/diagram-CDSNMT55-CW57YOQZ.js @@ -0,0 +1,30 @@ +import{a as z}from"./chunk-HDKR6WI7.js";import{a as O}from"./chunk-CDENLQJG.js";import{a as G}from"./chunk-WBZZWDU5.js";import"./chunk-ZFFKTRVX.js";import"./chunk-DKYAF235.js";import"./chunk-X7BLBFFS.js";import"./chunk-YMFA7VWU.js";import"./chunk-C7GWRE6Z.js";import"./chunk-4DL6P2YZ.js";import"./chunk-KCWUFFIE.js";import"./chunk-RDO2S4TE.js";import"./chunk-XCFPDLUP.js";import"./chunk-RMEGOE55.js";import"./chunk-QNBXOM7U.js";import"./chunk-NMQHKCXS.js";import"./chunk-SEHHQ34Z.js";import"./chunk-K6AAXKM5.js";import"./chunk-KVFXNR4L.js";import"./chunk-RVPSGR2P.js";import{a as H}from"./chunk-UED66XBH.js";import{b as W,d as X}from"./chunk-C7YISUMK.js";import{o as y}from"./chunk-EUYVSIXP.js";import"./chunk-QSTT4QQC.js";import{C as I,I as N,P as A,U as E,V as L,W as D,X as _,Y as M,Z as S,_ as R,r as k}from"./chunk-S4JILX6U.js";import{b as C}from"./chunk-XEQL7KGA.js";import{a as f}from"./chunk-YUSHYV7C.js";import"./chunk-3RNHDNP5.js";var q=/[─━│┃└┗├┣]/,U=/[└┗├┣]/,re=/[─━]/,Y=/^[\s│┃]+$/,P=/^\s*(title[\t ]|accTitle[\t ]*:|accDescr[\t ]*[:{])/,F=/^\s*%%/,ne=" ";function j(r){return r.some(t=>q.test(t))}f(j,"isBoxDrawingFormat");function J(r){for(let t of r){let e=U.exec(t);if(e?.index&&e.index>0)return e.index}return 4}f(J,"inferSegmentWidth");function K(r,t){return r.replace(/\bline\s+(\d+)\b/gi,(e,n)=>{let s=parseInt(n,10),i=t.get(s);return i?`line ${i}`:e})}f(K,"remapErrorLines");function Q(r){let t=r.split(` +`),e=new Map,n=-1;for(let[p,c]of t.entries())if(c.trim()==="treeView-beta"){n=p;break}if(n===-1)return{text:r,lineMap:e};let s=[];for(let p=n+1;p({cnt:1,stack:[{id:0,level:-1,name:"/",nodeType:"directory",children:[]}]})),ie=f(()=>{x.reset(),E()},"clear"),oe=f(()=>x.records.stack[0],"getRoot"),se=f(()=>x.records.cnt,"getCount"),ae=k.treeView,ce=f(()=>y(ae,I().treeView),"getConfig"),le=f((r,t,e,n,s,i)=>{for(;r<=x.records.stack[x.records.stack.length-1].level;)x.records.stack.pop();let o={id:x.records.cnt++,level:r,name:t,nodeType:e,icon:s,cssClass:n,description:i,children:[]};x.records.stack[x.records.stack.length-1].children.push(o),x.records.stack.push(o)},"addNode"),de={clear:ie,addNode:le,getRoot:oe,getCount:se,getConfig:ce,getAccTitle:D,getAccDescription:M,getDiagramTitle:R,setAccDescription:_,setAccTitle:L,setDiagramTitle:S},B=de,he=f(r=>{O(r,B);for(let t of r.nodes){let e=typeof t.indent=="number"?t.indent:0,n=t.name,s=n.endsWith("/");s&&(n=n.slice(0,-1));let i=s?"directory":"file",o=t.classAnnotation||void 0,a=t.iconAnnotation,p=a!==void 0?a||"none":void 0,c=t.descAnnotation||void 0,d=c?N(c,I()):void 0;B.addNode(e,n,i,o,p,d)}},"populate"),pe={parse:f(async r=>{let{text:t,lineMap:e}=Q(r);try{let n=await G("treeView",t);C.debug(n),he(n)}catch(n){throw e.size>0&&n instanceof Error&&(n.message=K(n.message,e)),n}},"parse")},b={prefix:"mermaid-treeview",height:24,width:24,icons:{folder:{body:''},file:{body:''}}};function ee(r,t){let e=t?.filenameIcons?.[r];if(e)return e;let n=r.lastIndexOf(".");if(n>0){let s=r.substring(n).toLowerCase(),i=t?.extensionIcons;return i?.[s]??i?.[s.slice(1)]}}f(ee,"detectIcon");function T(r,t){return r.includes(":")?r:r in b.icons||!t?`${b.prefix}:${r}`:`${t}:${r}`}f(T,"qualifyIcon");function $(r,t){if(r.icon!=="none"){if(r.icon)return T(r.icon,t.defaultIconPack);if(t.showIcons){if(r.nodeType==="file"){let e=ee(r.name,t);if(e==="none")return;if(e)return T(e,t.defaultIconPack)}return`${b.prefix}:${r.nodeType==="directory"?"folder":"file"}`}}}f($,"getNodeIcon");W([{name:b.prefix,icons:b}]);var V=14,fe=4,ge=16,ue=f(async(r,t)=>{let e=[],n=f(i=>{let o=$(i,t);o&&e.push({icon:o,node:i}),i.children.forEach(n)},"collect");n(r);let s=await Promise.all(e.map(async({icon:i,node:o})=>({id:o.id,svg:await X(i,{height:V,width:V})})));return new Map(s.map(({id:i,svg:o})=>[i,o]))},"resolveNodeIcons"),me=f((r,t,e,n,s,i)=>{let o=n.append("g"),a="treeView-node-label";e.nodeType==="directory"&&(a+=" treeView-node-dir"),e.cssClass&&(a+=` ${e.cssClass}`);let p=V+fe,c=$(e,s),d=c!==void 0;c&&o.append("g").attr("class","treeView-node-icon").attr("transform",`translate(${r+s.paddingX}, ${t+s.paddingY})`).html(i.get(e.id)??"");let h=o.append("text").text(e.name).attr("dominant-baseline","middle").attr("class",a),{height:l,width:m}=h.node().getBBox(),g=l+s.paddingY*2,w=r+s.paddingX+(d?p:0);h.attr("x",w),h.attr("y",t+g/2);let u=w+m,v=m+s.paddingX*2+(d?p:0);return e.BBox={x:r,y:t,width:v,height:g},e.cssClass?.split(/\s+/).includes("highlight")&&o.insert("rect",":first-child").attr("x",r).attr("y",t+1).attr("width",0).attr("height",g-2).attr("rx",3).attr("class","treeView-highlight-bg"),{node:e,nodeGroup:o,labelRightEdge:u,centerY:t+g/2}},"positionLabel"),Z=f((r,t,e,n,s,i)=>r.append("line").attr("x1",t).attr("y1",e).attr("x2",n).attr("y2",s).attr("stroke-width",i).attr("class","treeView-node-line"),"positionLine"),we=f((r,t,e,n)=>{let s=0,i=0,o=[],a=f((d,h,l,m)=>{let g=m*(l.rowIndent+l.paddingX),w=me(g,s,h,d,l,n);o.push(w);let{height:u,width:v}=h.BBox;Z(d,g-l.rowIndent,s+u/2,g,s+u/2,l.lineThickness),i=Math.max(i,g+v),s+=u},"drawNode"),p=f((d,h=0)=>{a(r,d,e,h),d.children.forEach(w=>{p(w,h+1)});let{x:l,y:m,height:g}=d.BBox;if(d.children.length){let{y:w,height:u}=d.children[d.children.length-1].BBox;Z(r,l+e.paddingX,m+g,l+e.paddingX,w+u/2+e.lineThickness/2,e.lineThickness)}},"processNode");p(t);let c=o.filter(d=>d.node.description);if(c.length>0){let h=Math.max(...o.map(l=>l.labelRightEdge))+ge;for(let l of c){let g=l.nodeGroup.append("text").text(l.node.description).attr("dominant-baseline","middle").attr("class","treeView-node-description").attr("x",h).attr("y",l.centerY).node().getBBox();i=Math.max(i,h+g.width+e.paddingX)}}for(let d of o)if(d.node.cssClass?.split(/\s+/).includes("highlight")){let h=d.nodeGroup.select(".treeView-highlight-bg");if(!h.empty()){let l=i-d.node.BBox.x+8;h.attr("width",l),i=Math.max(i,d.node.BBox.x+l+2)}}return{totalHeight:s,totalWidth:i}},"drawTree"),xe=f(async(r,t,e,n)=>{C.debug(`Rendering treeView diagram +`+r);let s=n.db,i=s.getRoot(),o=s.getConfig(),a=H(t),p=a.append("g");p.attr("class","tree-view");let c=await ue(i,o),{totalHeight:d,totalWidth:h}=we(p,i,o,c);a.attr("viewBox",`-${o.lineThickness/2} 0 ${h} ${d}`),A(a,d,h,o.useMaxWidth)},"draw"),ve={draw:xe},be=ve,Ce={labelFontSize:"16px",labelColor:"black",lineColor:"black",iconColor:"#546e7a",descriptionColor:"#6a9955",highlightBg:"rgba(255, 193, 7, 0.15)",highlightStroke:"#ffc107"},Ie=f(({treeView:r})=>{let{labelFontSize:t,labelColor:e,lineColor:n,iconColor:s,descriptionColor:i,highlightBg:o,highlightStroke:a}=y(Ce,r);return` + .treeView-node-label { + font-size: ${t}; + fill: ${e}; + white-space: pre; + } + .treeView-node-dir { + font-weight: bold; + } + .treeView-node-line { + stroke: ${n}; + } + .treeView-node-icon { + color: ${s}; + } + .treeView-node-description { + font-size: ${t}; + fill: ${i}; + font-style: italic; + white-space: pre; + } + .treeView-highlight-bg { + fill: ${o}; + stroke: ${a}; + stroke-width: 1; + } + `},"styles"),ye=Ie,De={db:B,renderer:be,parser:pe,styles:ye};export{De as diagram}; diff --git a/src/frontend/web/von_interface/static/vendor/conversation-visuals/diagram-MLGK6HIB-VEW4G6KZ.js b/src/frontend/web/von_interface/static/vendor/conversation-visuals/diagram-MLGK6HIB-VEW4G6KZ.js new file mode 100644 index 000000000..14734ff94 --- /dev/null +++ b/src/frontend/web/von_interface/static/vendor/conversation-visuals/diagram-MLGK6HIB-VEW4G6KZ.js @@ -0,0 +1,24 @@ +import{a as z}from"./chunk-CDENLQJG.js";import{a as E}from"./chunk-WBZZWDU5.js";import"./chunk-ZFFKTRVX.js";import"./chunk-DKYAF235.js";import"./chunk-X7BLBFFS.js";import"./chunk-YMFA7VWU.js";import"./chunk-C7GWRE6Z.js";import"./chunk-4DL6P2YZ.js";import"./chunk-KCWUFFIE.js";import"./chunk-RDO2S4TE.js";import"./chunk-XCFPDLUP.js";import"./chunk-RMEGOE55.js";import"./chunk-QNBXOM7U.js";import"./chunk-NMQHKCXS.js";import"./chunk-SEHHQ34Z.js";import"./chunk-K6AAXKM5.js";import"./chunk-KVFXNR4L.js";import"./chunk-RVPSGR2P.js";import{a as P}from"./chunk-UED66XBH.js";import{o as u}from"./chunk-EUYVSIXP.js";import"./chunk-QSTT4QQC.js";import{C as v,P as x,U as y,V as $,W as B,X as C,Y as S,Z as D,_ as T,r as w}from"./chunk-S4JILX6U.js";import{b}from"./chunk-XEQL7KGA.js";import{a as h}from"./chunk-YUSHYV7C.js";import"./chunk-3RNHDNP5.js";var N=w.packet,F=class{constructor(){this.packet=[],this.setAccTitle=$,this.getAccTitle=B,this.setDiagramTitle=D,this.getDiagramTitle=T,this.getAccDescription=S,this.setAccDescription=C}static{h(this,"PacketDB")}getConfig(){let t=u({...N,...v().packet});return t.showBits&&(t.paddingY+=10),t}getPacket(){return this.packet}pushWord(t){t.length>0&&this.packet.push(t)}clear(){y(),this.packet=[]}},L=1e4,M=h((t,e)=>{z(t,e);let a=-1,o=[],n=1,{bitsPerRow:l}=e.getConfig();for(let{start:r,end:s,bits:d,label:c}of t.blocks){if(r!==void 0&&s!==void 0&&s{if(t.start===void 0)throw new Error("start should have been set during first phase");if(t.end===void 0)throw new Error("end should have been set during first phase");if(t.start>t.end)throw new Error(`Block start ${t.start} is greater than block end ${t.end}.`);if(t.end+1<=e*a)return[t,void 0];let o=e*a-1,n=e*a;return[{start:t.start,end:o,label:t.label,bits:o-t.start},{start:n,end:t.end,label:t.label,bits:t.end-n}]},"getNextFittingBlock"),A={parser:{yy:void 0},parse:h(async t=>{let e=await E("packet",t),a=A.parser?.yy;if(!(a instanceof F))throw new Error("parser.parser?.yy was not a PacketDB. This is due to a bug within Mermaid, please report this issue at https://github.com/mermaid-js/mermaid/issues.");b.debug(e),M(e,a)},"parse")},I=h((t,e,a,o)=>{let n=o.db,l=n.getConfig(),{rowHeight:r,paddingY:s,bitWidth:d,bitsPerRow:c}=l,p=n.getPacket(),i=n.getDiagramTitle(),f=r+s,g=f*(p.length+1)-(i?0:r),k=d*c+2,m=P(e);m.attr("viewBox",`0 0 ${k} ${g}`),x(m,g,k,l.useMaxWidth);for(let[W,_]of p.entries())O(m,_,W,l);m.append("text").text(i).attr("x",k/2).attr("y",g-f/2).attr("dominant-baseline","middle").attr("text-anchor","middle").attr("class","packetTitle")},"draw"),O=h((t,e,a,{rowHeight:o,paddingX:n,paddingY:l,bitWidth:r,bitsPerRow:s,showBits:d})=>{let c=t.append("g"),p=a*(o+l)+l;for(let i of e){let f=i.start%s*r+1,g=(i.end-i.start+1)*r-n;if(c.append("rect").attr("x",f).attr("y",p).attr("width",g).attr("height",o).attr("class","packetBlock"),c.append("text").attr("x",f+g/2).attr("y",p+o/2).attr("class","packetLabel").attr("dominant-baseline","middle").attr("text-anchor","middle").text(i.label),!d)continue;let k=i.end===i.start,m=p-2;c.append("text").attr("x",f+(k?g/2:0)).attr("y",m).attr("class","packetByte start").attr("dominant-baseline","auto").attr("text-anchor",k?"middle":"start").text(i.start),k||c.append("text").attr("x",f+g).attr("y",m).attr("class","packetByte end").attr("dominant-baseline","auto").attr("text-anchor","end").text(i.end)}},"drawWord"),j={draw:I},G={byteFontSize:"10px",startByteColor:"black",endByteColor:"black",labelColor:"black",labelFontSize:"12px",titleColor:"black",titleFontSize:"14px",blockStrokeColor:"black",blockStrokeWidth:"1",blockFillColor:"#efefef"},H=h(({packet:t}={})=>{let e=u(G,t);return` + .packetByte { + font-size: ${e.byteFontSize}; + } + .packetByte.start { + fill: ${e.startByteColor}; + } + .packetByte.end { + fill: ${e.endByteColor}; + } + .packetLabel { + fill: ${e.labelColor}; + font-size: ${e.labelFontSize}; + } + .packetTitle { + fill: ${e.titleColor}; + font-size: ${e.titleFontSize}; + } + .packetBlock { + stroke: ${e.blockStrokeColor}; + stroke-width: ${e.blockStrokeWidth}; + fill: ${e.blockFillColor}; + } + `},"styles"),V={parser:A,get db(){return new F},renderer:j,styles:H};export{V as diagram}; diff --git a/src/frontend/web/von_interface/static/vendor/conversation-visuals/diagram-MPIPVDR6-OWA4HOFF.js b/src/frontend/web/von_interface/static/vendor/conversation-visuals/diagram-MPIPVDR6-OWA4HOFF.js new file mode 100644 index 000000000..1270ccbbe --- /dev/null +++ b/src/frontend/web/von_interface/static/vendor/conversation-visuals/diagram-MPIPVDR6-OWA4HOFF.js @@ -0,0 +1,41 @@ +import{a as F}from"./chunk-CDENLQJG.js";import{a as D}from"./chunk-WBZZWDU5.js";import"./chunk-ZFFKTRVX.js";import"./chunk-DKYAF235.js";import"./chunk-X7BLBFFS.js";import"./chunk-YMFA7VWU.js";import"./chunk-C7GWRE6Z.js";import"./chunk-4DL6P2YZ.js";import"./chunk-KCWUFFIE.js";import"./chunk-RDO2S4TE.js";import"./chunk-XCFPDLUP.js";import"./chunk-RMEGOE55.js";import"./chunk-QNBXOM7U.js";import"./chunk-NMQHKCXS.js";import"./chunk-SEHHQ34Z.js";import"./chunk-K6AAXKM5.js";import"./chunk-KVFXNR4L.js";import"./chunk-RVPSGR2P.js";import{a as E}from"./chunk-UED66XBH.js";import{o as y}from"./chunk-EUYVSIXP.js";import"./chunk-QSTT4QQC.js";import{C as b,P as L,U as T,V as S,W as k,X as O,Y as R,Z as I,_,p as A,r as M}from"./chunk-S4JILX6U.js";import{b as C}from"./chunk-XEQL7KGA.js";import{a as i}from"./chunk-YUSHYV7C.js";import"./chunk-3RNHDNP5.js";var x={showLegend:!0,ticks:5,max:null,min:0,graticule:"circle"},w=32,P={axes:[],curves:[],options:x},g=structuredClone(P),U=M.radar,X=i(()=>y({...U,...b().radar}),"getConfig"),z=i(()=>g.axes,"getAxes"),K=i(()=>g.curves,"getCurves"),N=i(()=>g.options,"getOptions"),Y=i(a=>{g.axes=a.map(t=>({name:t.name,label:t.label??t.name}))},"setAxes"),Z=i(a=>{g.curves=a.map(t=>({name:t.name,label:t.label??t.name,entries:q(t.entries)}))},"setCurves"),q=i(a=>{if(a[0].axis==null)return a.map(e=>e.value);let t=z();if(t.length===0)throw new Error("Axes must be populated before curves for reference entries");return t.map(e=>{let r=a.find(n=>n.axis?.$refText===e.name);if(r===void 0)throw new Error("Missing entry for axis "+e.label);return r.value})},"computeCurveEntries"),J=i(a=>{let t=a.reduce((e,r)=>(e[r.name]=r,e),{});g.options={showLegend:t.showLegend?.value??x.showLegend,ticks:t.ticks?.value??x.ticks,max:t.max?.value??x.max,min:t.min?.value??x.min,graticule:t.graticule?.value??x.graticule},g.options.ticks>w&&(C.warn(`Radar diagram ticks (${g.options.ticks}) exceeds maximum allowed (${w}). Using ${w} instead.`),g.options.ticks=w)},"setOptions"),Q=i(()=>{T(),g=structuredClone(P)},"clear"),$={getAxes:z,getCurves:K,getOptions:N,setAxes:Y,setCurves:Z,setOptions:J,getConfig:X,clear:Q,setAccTitle:S,getAccTitle:k,setDiagramTitle:I,getDiagramTitle:_,getAccDescription:R,setAccDescription:O},tt=i(a=>{F(a,$);let{axes:t,curves:e,options:r}=a;$.setAxes(t),$.setCurves(e),$.setOptions(r)},"populate"),et={parse:i(async a=>{let t=await D("radar",a);C.debug(t),tt(t)},"parse")},at=i((a,t,e,r)=>{let n=r.db,l=n.getAxes(),c=n.getCurves(),s=n.getOptions(),o=n.getConfig(),d=n.getDiagramTitle(),p=E(t),u=rt(p,o),m=s.max??Math.max(...c.map(f=>Math.max(...f.entries))),h=s.min,v=Math.min(o.width,o.height)/2;nt(u,l,v,s.ticks,s.graticule),st(u,l,v,o),G(u,l,c,h,m,s.graticule,o),V(u,c,s.showLegend,o),u.append("text").attr("class","radarTitle").text(d).attr("x",0).attr("y",-o.height/2-o.marginTop)},"draw"),rt=i((a,t)=>{let e=t.width+t.marginLeft+t.marginRight,r=t.height+t.marginTop+t.marginBottom,n={x:t.marginLeft+t.width/2,y:t.marginTop+t.height/2};return L(a,r,e,t.useMaxWidth??!0),a.attr("viewBox",`0 0 ${e} ${r}`).attr("overflow","visible"),a.append("g").attr("transform",`translate(${n.x}, ${n.y})`)},"drawFrame"),nt=i((a,t,e,r,n)=>{if(n==="circle")for(let l=0;l{let u=2*p*Math.PI/l-Math.PI/2,m=s*Math.cos(u),h=s*Math.sin(u);return`${m},${h}`}).join(" ");a.append("polygon").attr("points",o).attr("class","radarGraticule")}}},"drawGraticule"),st=i((a,t,e,r)=>{let n=t.length;for(let l=0;l.01?"start":o<-.01?"end":"middle",u=d>.01?"hanging":d<-.01?"auto":"central",m=4;a.append("text").text(c).attr("x",e*r.axisLabelFactor*o+m*o).attr("y",e*r.axisLabelFactor*d+m*d).attr("text-anchor",p).attr("dominant-baseline",u).attr("class","radarAxisLabel")}},"drawAxes");function G(a,t,e,r,n,l,c){let s=t.length,o=Math.min(c.width,c.height)/2;e.forEach((d,p)=>{if(d.entries.length!==s)return;let u=d.entries.map((m,h)=>{let v=2*Math.PI*h/s-Math.PI/2,f=B(m,r,n,o),H=f*Math.cos(v),j=f*Math.sin(v);return{x:H,y:j}});l==="circle"?a.append("path").attr("d",W(u,c.curveTension)).attr("class",`radarCurve-${p}`):l==="polygon"&&a.append("polygon").attr("points",u.map(m=>`${m.x},${m.y}`).join(" ")).attr("class",`radarCurve-${p}`)})}i(G,"drawCurves");function B(a,t,e,r){let n=Math.min(Math.max(a,t),e);return r*(n-t)/(e-t)}i(B,"relativeRadius");function W(a,t){let e=a.length,r=`M${a[0].x},${a[0].y}`;for(let n=0;n{let d=a.append("g").attr("transform",`translate(${n}, ${l+o*c})`);d.append("rect").attr("width",12).attr("height",12).attr("class",`radarLegendBox-${o}`),d.append("text").attr("x",16).attr("y",0).attr("class","radarLegendText").text(s.label)})}i(V,"drawLegend");var ot={draw:at},it=i((a,t)=>{let e="";for(let r=0;r{let t=A(),e=b(),r=y(t,e.themeVariables),n=y(r.radar,a);return{themeVariables:r,radarOptions:n}},"buildRadarStyleOptions"),ct=i(({radar:a}={})=>{let{themeVariables:t,radarOptions:e}=lt(a);return` + .radarTitle { + font-size: ${t.fontSize}; + color: ${t.titleColor}; + dominant-baseline: hanging; + text-anchor: middle; + } + .radarAxisLine { + stroke: ${e.axisColor}; + stroke-width: ${e.axisStrokeWidth}; + } + .radarAxisLabel { + font-size: ${e.axisLabelFontSize}px; + color: ${e.axisColor}; + } + .radarGraticule { + fill: ${e.graticuleColor}; + fill-opacity: ${e.graticuleOpacity}; + stroke: ${e.graticuleColor}; + stroke-width: ${e.graticuleStrokeWidth}; + } + .radarLegendText { + text-anchor: start; + font-size: ${e.legendFontSize}px; + dominant-baseline: hanging; + } + ${it(t,e)} + `},"styles"),vt={parser:et,db:$,renderer:ot,styles:ct};export{vt as diagram}; diff --git a/src/frontend/web/von_interface/static/vendor/conversation-visuals/dompurify-LICENSE b/src/frontend/web/von_interface/static/vendor/conversation-visuals/dompurify-LICENSE new file mode 100644 index 000000000..d64569567 --- /dev/null +++ b/src/frontend/web/von_interface/static/vendor/conversation-visuals/dompurify-LICENSE @@ -0,0 +1,202 @@ + + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright [yyyy] [name of copyright owner] + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. diff --git a/src/frontend/web/von_interface/static/vendor/conversation-visuals/ebnfDiagram-ZINNZB2B-DRDBU7EY.js b/src/frontend/web/von_interface/static/vendor/conversation-visuals/ebnfDiagram-ZINNZB2B-DRDBU7EY.js new file mode 100644 index 000000000..4f56a91ff --- /dev/null +++ b/src/frontend/web/von_interface/static/vendor/conversation-visuals/ebnfDiagram-ZINNZB2B-DRDBU7EY.js @@ -0,0 +1 @@ +import{a as n,b as p,c as f}from"./chunk-53NJVRLX.js";import{a as i}from"./chunk-CDENLQJG.js";import{b as l}from"./chunk-WBZZWDU5.js";import"./chunk-ZFFKTRVX.js";import"./chunk-DKYAF235.js";import"./chunk-X7BLBFFS.js";import"./chunk-YMFA7VWU.js";import"./chunk-C7GWRE6Z.js";import"./chunk-4DL6P2YZ.js";import"./chunk-KCWUFFIE.js";import"./chunk-RDO2S4TE.js";import{b as m}from"./chunk-XCFPDLUP.js";import"./chunk-RMEGOE55.js";import"./chunk-QNBXOM7U.js";import"./chunk-NMQHKCXS.js";import"./chunk-SEHHQ34Z.js";import"./chunk-K6AAXKM5.js";import"./chunk-KVFXNR4L.js";import"./chunk-RVPSGR2P.js";import"./chunk-UED66XBH.js";import"./chunk-S4JILX6U.js";import{b as o}from"./chunk-XEQL7KGA.js";import{a as t}from"./chunk-YUSHYV7C.js";import"./chunk-3RNHDNP5.js";var c=m().RailroadEbnf.parser.LangiumParser,s=t(e=>{let r=e.alternatives.map(E);return r.length===1?r[0]:{type:"choice",alternatives:r}},"transformChoice"),E=t(e=>{let r=e.elements.map(y);return r.length===1?r[0]:{type:"sequence",elements:r}},"transformSequence"),u=t(e=>{switch(e.$type){case"EbnfTerminal":return{type:"terminal",value:e.value};case"EbnfNonTerminal":return{type:"nonterminal",name:e.name};case"EbnfSpecial":return{type:"special",text:e.text};case"EbnfGroup":return s(e.element);case"EbnfOptional":return{type:"optional",element:s(e.element)};case"EbnfRepetition":return{type:"repetition",element:s(e.element),min:0,max:1/0};default:throw new Error(`Unsupported EBNF primary node: ${e.$type}`)}},"transformPrimary"),b=t((e,r)=>{switch(r.$type){case"EbnfOptionalPostfix":return{type:"optional",element:e};case"EbnfZeroOrMorePostfix":return{type:"repetition",element:e,min:0,max:1/0};case"EbnfOneOrMorePostfix":return{type:"repetition",element:e,min:1,max:1/0};case"EbnfExceptionPostfix":return{type:"sequence",elements:[e,{type:"terminal",value:"-"},u(r.except)]};default:throw new Error(`Unsupported EBNF postfix node: ${r.$type}`)}},"transformPostfix"),y=t(e=>e.postfixes.reduce((r,a)=>b(r,a),u(e.base)),"transformTerm"),d=t(e=>({name:e.name,definition:s(e.definition)}),"transformRule"),v=t(e=>{i(e,n),e.title&&n.setTitle(e.title),e.rules.map(r=>n.addRule(d(r)))},"populateDb"),P={parse:t(e=>{n.clear(),o.debug("[EBNF Parser] Starting Langium parse");let r=c.parse(e);if(r.lexerErrors.length>0||r.parserErrors.length>0)throw new l(r);let a=r.value;o.debug("[EBNF Parser] Parsed rules:",a.rules.length),v(a),o.debug("[EBNF Parser] Parse complete")},"parse"),parser:{yy:n}},$={parser:P,db:n,renderer:f,styles:p};export{$ as diagram}; diff --git a/src/frontend/web/von_interface/static/vendor/conversation-visuals/elk-276RUBZZ-L2KW7QEV.js b/src/frontend/web/von_interface/static/vendor/conversation-visuals/elk-276RUBZZ-L2KW7QEV.js new file mode 100644 index 000000000..bd389031b --- /dev/null +++ b/src/frontend/web/von_interface/static/vendor/conversation-visuals/elk-276RUBZZ-L2KW7QEV.js @@ -0,0 +1,27 @@ +import{a as Ofe}from"./chunk-U7XT7CN7.js";import{g as Lfe,h as Dfe}from"./chunk-R6BKASFG.js";import"./chunk-E4FJ3GMM.js";import"./chunk-JYJEQ7QO.js";import{a as $0n}from"./chunk-AKE2LJPJ.js";import{a as Ife,b as Pfe}from"./chunk-NDMMOI35.js";import"./chunk-T4OFBIBR.js";import"./chunk-TEBTVNCH.js";import"./chunk-HVVAQLXH.js";import"./chunk-IVPOI5SM.js";import"./chunk-O46DUOKR.js";import"./chunk-C7YISUMK.js";import"./chunk-6NDAIVIK.js";import"./chunk-EUYVSIXP.js";import"./chunk-QSTT4QQC.js";import{aa as Afe}from"./chunk-S4JILX6U.js";import{G as Sfe}from"./chunk-XEQL7KGA.js";import{a as gt}from"./chunk-YUSHYV7C.js";import{a as NO,b as CFe,c as TFe}from"./chunk-3RNHDNP5.js";var xfe=CFe((Nfe,R0n)=>{(function(B){if(typeof Nfe=="object"&&typeof R0n<"u")R0n.exports=B();else if(typeof define=="function"&&define.amd)define([],B);else{var tn;typeof window<"u"?tn=window:typeof global<"u"?tn=global:typeof self<"u"?tn=self:tn=this,tn.ELK=B()}})(function(){var B,tn,sn;return(function(){function bn(on,Rn,Bn){function y(tt,Ue){if(!Rn[tt]){if(!on[tt]){var ae=typeof NO=="function"&&NO;if(!Ue&&ae)return ae(tt,!0);if(ke)return ke(tt,!0);var vt=new Error("Cannot find module '"+tt+"'");throw vt.code="MODULE_NOT_FOUND",vt}var ji=Rn[tt]={exports:{}};on[tt][0].call(ji.exports,function(Mc){var ci=on[tt][1][Mc];return y(ci||Mc)},ji,ji.exports,bn,on,Rn,Bn)}return Rn[tt].exports}for(var ke=typeof NO=="function"&&NO,Ie=0;Ie0&&arguments[0]!==void 0?arguments[0]:{},vt=ae.defaultLayoutOptions,ji=vt===void 0?{}:vt,Mc=ae.algorithms,ci=Mc===void 0?["layered","stress","mrtree","radial","force","disco","sporeOverlap","sporeCompaction","rectpacking"]:Mc,wr=ae.workerFactory,kr=ae.workerUrl;if(y(this,tt),this.defaultLayoutOptions=ji,this.initialized=!1,typeof kr>"u"&&typeof wr>"u")throw new Error("Cannot construct an ELK without both 'workerUrl' and 'workerFactory'.");var zn=wr;typeof kr<"u"&&typeof wr>"u"&&(zn=function(Uv){return new Worker(Uv)});var hf=zn(kr);if(typeof hf.postMessage!="function")throw new TypeError("Created worker does not provide the required 'postMessage' function.");this.worker=new Ie(hf),this.worker.postMessage({cmd:"register",algorithms:ci}).then(function(xc){return Ue.initialized=!0}).catch(console.err)}return Bn(tt,[{key:"layout",value:function(ae){var vt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},ji=vt.layoutOptions,Mc=ji===void 0?this.defaultLayoutOptions:ji,ci=vt.logging,wr=ci===void 0?!1:ci,kr=vt.measureExecutionTime,zn=kr===void 0?!1:kr;return ae?this.worker.postMessage({cmd:"layout",graph:ae,layoutOptions:Mc,options:{logging:wr,measureExecutionTime:zn}}):Promise.reject(new Error("Missing mandatory parameter 'graph'."))}},{key:"knownLayoutAlgorithms",value:function(){return this.worker.postMessage({cmd:"algorithms"})}},{key:"knownLayoutOptions",value:function(){return this.worker.postMessage({cmd:"options"})}},{key:"knownLayoutCategories",value:function(){return this.worker.postMessage({cmd:"categories"})}},{key:"terminateWorker",value:function(){this.worker&&this.worker.terminate()}}]),tt})();Rn.default=ke;var Ie=(function(){function tt(Ue){var ae=this;if(y(this,tt),Ue===void 0)throw new Error("Missing mandatory parameter 'worker'.");this.resolvers={},this.worker=Ue,this.worker.onmessage=function(vt){setTimeout(function(){ae.receive(ae,vt)},0)}}return Bn(tt,[{key:"postMessage",value:function(ae){var vt=this.id||0;this.id=vt+1,ae.id=vt;var ji=this;return new Promise(function(Mc,ci){ji.resolvers[vt]=function(wr,kr){wr?(ji.convertGwtStyleError(wr),ci(wr)):Mc(kr)},ji.worker.postMessage(ae)})}},{key:"receive",value:function(ae,vt){var ji=vt.data,Mc=ae.resolvers[ji.id];Mc&&(delete ae.resolvers[ji.id],ji.error?Mc(ji.error):Mc(null,ji.data))}},{key:"terminate",value:function(){this.worker&&this.worker.terminate()}},{key:"convertGwtStyleError",value:function(ae){if(ae){var vt=ae.__java$exception;vt&&(vt.cause&&vt.cause.backingJsObject&&(ae.cause=vt.cause.backingJsObject,this.convertGwtStyleError(ae.cause)),delete ae.__java$exception)}}}]),tt})()},{}],2:[function(bn,on,Rn){(function(Bn){(function(){"use strict";var y;typeof window<"u"?y=window:typeof Bn<"u"?y=Bn:typeof self<"u"&&(y=self);var ke,Ie,tt,Ue,ae;function vt(){}function ji(){}function Mc(){}function ci(){}function wr(){}function kr(){}function zn(){}function hf(){}function xc(){}function Uv(){}function X9(){}function Um(){}function kE(){}function yE(){}function W2(){}function sbn(){}function fbn(){}function hbn(){}function lbn(){}function abn(){}function V2(){}function $(){}function dbn(){}function jE(){}function bbn(){}function wbn(){}function gbn(){}function pbn(){}function vbn(){}function ZG(){}function mbn(){}function kbn(){}function ybn(){}function qO(){}function jbn(){}function Ebn(){}function Mbn(){}function GO(){}function Cbn(){}function Tbn(){}function nU(){}function Abn(){}function Sbn(){}function Au(){}function Su(){}function J2(){}function Q2(){}function Ibn(){}function Pbn(){}function Obn(){}function Lbn(){}function eU(){}function Iu(){}function Y2(){}function Z2(){}function Dbn(){}function Nbn(){}function UO(){}function xbn(){}function Fbn(){}function $bn(){}function Rbn(){}function Bbn(){}function Kbn(){}function _bn(){}function Hbn(){}function qbn(){}function Gbn(){}function Ubn(){}function zbn(){}function Xbn(){}function Wbn(){}function Vbn(){}function Jbn(){}function Qbn(){}function Ybn(){}function Zbn(){}function nwn(){}function ewn(){}function twn(){}function iwn(){}function rwn(){}function cwn(){}function uwn(){}function own(){}function swn(){}function fwn(){}function hwn(){}function lwn(){}function awn(){}function dwn(){}function tU(){}function bwn(){}function wwn(){}function gwn(){}function pwn(){}function zO(){}function XO(){}function EE(){}function vwn(){}function mwn(){}function WO(){}function kwn(){}function ywn(){}function jwn(){}function ME(){}function Ewn(){}function Mwn(){}function Cwn(){}function Twn(){}function Awn(){}function Swn(){}function Iwn(){}function Pwn(){}function Own(){}function iU(){}function Lwn(){}function Dwn(){}function rU(){}function Nwn(){}function xwn(){}function Fwn(){}function $wn(){}function Rwn(){}function Bwn(){}function Kwn(){}function _wn(){}function Hwn(){}function qwn(){}function Gwn(){}function Uwn(){}function zwn(){}function VO(){}function Xwn(){}function Wwn(){}function Vwn(){}function Jwn(){}function Qwn(){}function Ywn(){}function Zwn(){}function ngn(){}function egn(){}function cU(){}function uU(){}function tgn(){}function ign(){}function rgn(){}function cgn(){}function ugn(){}function ogn(){}function sgn(){}function fgn(){}function hgn(){}function lgn(){}function agn(){}function dgn(){}function bgn(){}function wgn(){}function ggn(){}function pgn(){}function vgn(){}function mgn(){}function kgn(){}function ygn(){}function jgn(){}function Egn(){}function Mgn(){}function Cgn(){}function Tgn(){}function Agn(){}function Sgn(){}function Ign(){}function Pgn(){}function Ogn(){}function Lgn(){}function Dgn(){}function Ngn(){}function xgn(){}function Fgn(){}function $gn(){}function Rgn(){}function Bgn(){}function Kgn(){}function _gn(){}function Hgn(){}function qgn(){}function Ggn(){}function Ugn(){}function zgn(){}function Xgn(){}function Wgn(){}function Vgn(){}function Jgn(){}function Qgn(){}function Ygn(){}function Zgn(){}function n2n(){}function e2n(){}function t2n(){}function i2n(){}function r2n(){}function c2n(){}function u2n(){}function o2n(){}function s2n(){}function f2n(){}function h2n(){}function l2n(){}function a2n(){}function d2n(){}function b2n(){}function w2n(){}function g2n(){}function p2n(){}function v2n(){}function m2n(){}function k2n(){}function y2n(){}function j2n(){}function E2n(){}function M2n(){}function C2n(){}function T2n(){}function A2n(){}function S2n(){}function I2n(){}function P2n(){}function O2n(){}function L2n(){}function D2n(){}function N2n(){}function x2n(){}function F2n(){}function $2n(){}function R2n(){}function B2n(){}function K2n(){}function _2n(){}function H2n(){}function q2n(){}function G2n(){}function U2n(){}function z2n(){}function X2n(){}function oU(){}function W2n(){}function V2n(){}function J2n(){}function Q2n(){}function Y2n(){}function Z2n(){}function npn(){}function epn(){}function tpn(){}function ipn(){}function rpn(){}function cpn(){}function upn(){}function opn(){}function spn(){}function fpn(){}function hpn(){}function lpn(){}function apn(){}function dpn(){}function bpn(){}function wpn(){}function gpn(){}function ppn(){}function vpn(){}function mpn(){}function kpn(){}function ypn(){}function jpn(){}function Epn(){}function Mpn(){}function Cpn(){}function Tpn(){}function Apn(){}function Spn(){}function Ipn(){}function Ppn(){}function Opn(){}function Lpn(){}function Dpn(){}function Npn(){}function xpn(){}function Fpn(){}function $pn(){}function Rpn(){}function Bpn(){}function Kpn(){}function _pn(){}function Hpn(){}function qpn(){}function Gpn(){}function Upn(){}function zpn(){}function Xpn(){}function Wpn(){}function Vpn(){}function Jpn(){}function Qpn(){}function Ypn(){}function Zpn(){}function nvn(){}function evn(){}function tvn(){}function ivn(){}function rvn(){}function cvn(){}function uvn(){}function ovn(){}function svn(){}function fvn(){}function hvn(){}function lvn(){}function avn(){}function sU(){}function dvn(){}function bvn(){}function wvn(){}function gvn(){}function pvn(){}function vvn(){}function mvn(){}function kvn(){}function yvn(){}function jvn(){}function fU(){}function Evn(){}function Mvn(){}function Cvn(){}function Tvn(){}function Avn(){}function Svn(){}function hU(){}function lU(){}function Ivn(){}function aU(){}function dU(){}function Pvn(){}function Ovn(){}function Lvn(){}function Dvn(){}function Nvn(){}function xvn(){}function Fvn(){}function $vn(){}function Rvn(){}function Bvn(){}function Kvn(){}function bU(){}function _vn(){}function Hvn(){}function qvn(){}function Gvn(){}function Uvn(){}function zvn(){}function Xvn(){}function Wvn(){}function Vvn(){}function Jvn(){}function Qvn(){}function Yvn(){}function Zvn(){}function n3n(){}function e3n(){}function t3n(){}function i3n(){}function r3n(){}function c3n(){}function u3n(){}function o3n(){}function s3n(){}function f3n(){}function h3n(){}function l3n(){}function a3n(){}function d3n(){}function b3n(){}function w3n(){}function g3n(){}function p3n(){}function v3n(){}function m3n(){}function k3n(){}function y3n(){}function j3n(){}function E3n(){}function M3n(){}function C3n(){}function T3n(){}function A3n(){}function S3n(){}function I3n(){}function P3n(){}function O3n(){}function L3n(){}function D3n(){}function N3n(){}function x3n(){}function F3n(){}function $3n(){}function R3n(){}function B3n(){}function K3n(){}function _3n(){}function H3n(){}function q3n(){}function G3n(){}function U3n(){}function z3n(){}function X3n(){}function W3n(){}function V3n(){}function J3n(){}function Q3n(){}function Y3n(){}function Z3n(){}function n4n(){}function e4n(){}function t4n(){}function i4n(){}function r4n(){}function c4n(){}function u4n(){}function o4n(){}function s4n(){}function f4n(){}function h4n(){}function l4n(){}function a4n(){}function d4n(){}function b4n(){}function w4n(){}function g4n(){}function p4n(){}function v4n(){}function m4n(){}function k4n(){}function y4n(){}function j4n(){}function E4n(){}function M4n(){}function C4n(){}function T4n(){}function A4n(){}function S4n(){}function I4n(){}function P4n(){}function O4n(){}function L4n(){}function D4n(){}function N4n(){}function x4n(){}function F4n(){}function $4n(){}function R4n(){}function B4n(){}function K4n(){}function _4n(){}function H4n(){}function q4n(){}function G4n(){}function U4n(){}function z4n(){}function JO(){}function QO(){}function X4n(){}function YO(){}function W4n(){}function V4n(){}function J4n(){}function Q4n(){}function Y4n(){}function Z4n(){}function nmn(){}function emn(){}function tmn(){}function imn(){}function wU(){}function rmn(){}function cmn(){}function umn(){}function omn(){}function smn(){}function fmn(){}function hmn(){}function lmn(){}function amn(){}function dmn(){}function bmn(){}function Ba(){}function wmn(){}function np(){}function gU(){}function gmn(){}function pmn(){}function vmn(){}function mmn(){}function kmn(){}function ymn(){}function jmn(){}function Emn(){}function Mmn(){}function Cmn(){}function Tmn(){}function Amn(){}function Smn(){}function Imn(){}function Pmn(){}function Omn(){}function Lmn(){}function Dmn(){}function Nmn(){}function wn(){}function xmn(){}function Fmn(){}function $mn(){}function Rmn(){}function Bmn(){}function Kmn(){}function _mn(){}function Hmn(){}function qmn(){}function Gmn(){}function Umn(){}function zmn(){}function Xmn(){}function ZO(){}function Wmn(){}function Vmn(){}function Jmn(){}function CE(){}function Qmn(){}function nL(){}function TE(){}function Ymn(){}function pU(){}function Zmn(){}function n6n(){}function e6n(){}function t6n(){}function i6n(){}function r6n(){}function AE(){}function c6n(){}function u6n(){}function SE(){}function o6n(){}function IE(){}function s6n(){}function vU(){}function f6n(){}function eL(){}function mU(){}function h6n(){}function l6n(){}function a6n(){}function d6n(){}function b6n(){}function w6n(){}function g6n(){}function p6n(){}function v6n(){}function m6n(){}function k6n(){}function y6n(){}function j6n(){}function E6n(){}function M6n(){}function zv(){}function tL(){}function C6n(){}function T6n(){}function A6n(){}function S6n(){}function I6n(){}function P6n(){}function O6n(){}function L6n(){}function D6n(){}function N6n(){}function x6n(){}function F6n(){}function $6n(){}function R6n(){}function B6n(){}function K6n(){}function _6n(){}function H6n(){}function q6n(){}function G6n(){}function U6n(){}function z6n(){}function X6n(){}function W6n(){}function V6n(){}function J6n(){}function Q6n(){}function Y6n(){}function Z6n(){}function n5n(){}function e5n(){}function t5n(){}function i5n(){}function r5n(){}function c5n(){}function u5n(){}function o5n(){}function s5n(){}function f5n(){}function h5n(){}function l5n(){}function a5n(){}function d5n(){}function b5n(){}function w5n(){}function g5n(){}function p5n(){}function v5n(){}function m5n(){}function k5n(){}function y5n(){}function j5n(){}function E5n(){}function M5n(){}function C5n(){}function T5n(){}function A5n(){}function S5n(){}function I5n(){}function P5n(){}function O5n(){}function L5n(){}function D5n(){}function N5n(){}function x5n(){}function F5n(){}function $5n(){}function R5n(){}function B5n(){}function K5n(){}function _5n(){}function H5n(){}function q5n(){}function G5n(){}function U5n(){}function z5n(){}function X5n(){}function W5n(){}function V5n(){}function J5n(){}function Q5n(){}function Y5n(){}function Z5n(){}function n8n(){}function e8n(){}function t8n(){}function i8n(){}function r8n(){}function c8n(){}function u8n(){}function o8n(){}function s8n(){}function f8n(){}function h8n(){}function l8n(){}function a8n(){}function d8n(){}function b8n(){}function w8n(){}function g8n(){}function p8n(){}function kU(){}function v8n(){}function m8n(){}function qFe(n){}function GFe(n){}function iL(){n6()}function k8n(){s7()}function y8n(){gA()}function j8n(){fF()}function E8n(){C5()}function M8n(){Snn()}function C8n(){Ws()}function T8n(){RZ()}function A8n(){Wk()}function S8n(){f7()}function I8n(){$7()}function P8n(){tCn()}function O8n(){Kp()}function L8n(){PNn()}function D8n(){$Q()}function N8n(){vLn()}function x8n(){RQ()}function F8n(){oxn()}function $8n(){pLn()}function R8n(){t4()}function B8n(){GFn()}function K8n(){qFn()}function _8n(){dDn()}function H8n(){UFn()}function q8n(){ua()}function G8n(){iM()}function U8n(){Atn()}function z8n(){fn()}function X8n(){zFn()}function W8n(){m$n()}function V8n(){mLn()}function J8n(){GKn()}function Q8n(){kLn()}function Y8n(){rUn()}function Z8n(){cen()}function n9n(){El()}function e9n(){cBn()}function t9n(){pc()}function i9n(){ILn()}function r9n(){Bp()}function c9n(){_en()}function u9n(){oa()}function o9n(){Hen()}function s9n(){qf()}function f9n(){Zk()}function h9n(){x$()}function l9n(){GF()}function lf(){cIn()}function a9n(){tT()}function d9n(){jA()}function yU(){et()}function b9n(){RT()}function w9n(){bZ()}function jU(){Gx()}function EU(){GA()}function g9n(){Zen()}function MU(n){ie(n)}function p9n(n){this.a=n}function PE(n){this.a=n}function v9n(n){this.a=n}function m9n(n){this.a=n}function k9n(n){this.a=n}function y9n(n){this.a=n}function j9n(n){this.a=n}function E9n(n){this.a=n}function CU(n){this.a=n}function TU(n){this.a=n}function M9n(n){this.a=n}function C9n(n){this.a=n}function rL(n){this.a=n}function T9n(n){this.a=n}function A9n(n){this.a=n}function cL(n){this.a=n}function uL(n){this.a=n}function S9n(n){this.a=n}function oL(n){this.a=n}function I9n(n){this.a=n}function P9n(n){this.a=n}function O9n(n){this.a=n}function AU(n){this.b=n}function L9n(n){this.c=n}function D9n(n){this.a=n}function N9n(n){this.a=n}function x9n(n){this.a=n}function F9n(n){this.a=n}function $9n(n){this.a=n}function R9n(n){this.a=n}function B9n(n){this.a=n}function K9n(n){this.a=n}function _9n(n){this.a=n}function H9n(n){this.a=n}function q9n(n){this.a=n}function G9n(n){this.a=n}function U9n(n){this.a=n}function SU(n){this.a=n}function IU(n){this.a=n}function OE(n){this.a=n}function W9(n){this.a=n}function Ka(){this.a=[]}function z9n(n,e){n.a=e}function Nhe(n,e){n.a=e}function xhe(n,e){n.b=e}function Fhe(n,e){n.b=e}function $he(n,e){n.b=e}function PU(n,e){n.j=e}function Rhe(n,e){n.g=e}function Bhe(n,e){n.i=e}function Khe(n,e){n.c=e}function _he(n,e){n.c=e}function Hhe(n,e){n.d=e}function qhe(n,e){n.d=e}function _a(n,e){n.k=e}function Ghe(n,e){n.c=e}function OU(n,e){n.c=e}function LU(n,e){n.a=e}function Uhe(n,e){n.a=e}function zhe(n,e){n.f=e}function Xhe(n,e){n.a=e}function Whe(n,e){n.b=e}function sL(n,e){n.d=e}function LE(n,e){n.i=e}function DU(n,e){n.o=e}function Vhe(n,e){n.r=e}function Jhe(n,e){n.a=e}function Qhe(n,e){n.b=e}function X9n(n,e){n.e=e}function Yhe(n,e){n.f=e}function NU(n,e){n.g=e}function Zhe(n,e){n.e=e}function nle(n,e){n.f=e}function ele(n,e){n.f=e}function fL(n,e){n.a=e}function hL(n,e){n.b=e}function tle(n,e){n.n=e}function ile(n,e){n.a=e}function rle(n,e){n.c=e}function cle(n,e){n.c=e}function ule(n,e){n.c=e}function ole(n,e){n.a=e}function sle(n,e){n.a=e}function fle(n,e){n.d=e}function hle(n,e){n.d=e}function lle(n,e){n.e=e}function ale(n,e){n.e=e}function dle(n,e){n.g=e}function ble(n,e){n.f=e}function wle(n,e){n.j=e}function gle(n,e){n.a=e}function ple(n,e){n.a=e}function vle(n,e){n.b=e}function W9n(n){n.b=n.a}function V9n(n){n.c=n.d.d}function xU(n){this.a=n}function FU(n){this.a=n}function $U(n){this.a=n}function Ha(n){this.a=n}function qa(n){this.a=n}function V9(n){this.a=n}function J9n(n){this.a=n}function RU(n){this.a=n}function J9(n){this.a=n}function DE(n){this.a=n}function hl(n){this.a=n}function Tb(n){this.a=n}function Q9n(n){this.a=n}function Y9n(n){this.a=n}function lL(n){this.b=n}function Xv(n){this.b=n}function Wv(n){this.b=n}function aL(n){this.a=n}function Z9n(n){this.a=n}function dL(n){this.c=n}function M(n){this.c=n}function n7n(n){this.c=n}function zm(n){this.d=n}function BU(n){this.a=n}function Fe(n){this.a=n}function e7n(n){this.a=n}function KU(n){this.a=n}function _U(n){this.a=n}function HU(n){this.a=n}function qU(n){this.a=n}function GU(n){this.a=n}function UU(n){this.a=n}function Vv(n){this.a=n}function t7n(n){this.a=n}function i7n(n){this.a=n}function Jv(n){this.a=n}function r7n(n){this.a=n}function c7n(n){this.a=n}function u7n(n){this.a=n}function o7n(n){this.a=n}function s7n(n){this.a=n}function f7n(n){this.a=n}function h7n(n){this.a=n}function l7n(n){this.a=n}function a7n(n){this.a=n}function d7n(n){this.a=n}function b7n(n){this.a=n}function w7n(n){this.a=n}function g7n(n){this.a=n}function p7n(n){this.a=n}function v7n(n){this.a=n}function Xm(n){this.a=n}function m7n(n){this.a=n}function k7n(n){this.a=n}function y7n(n){this.a=n}function j7n(n){this.a=n}function NE(n){this.a=n}function E7n(n){this.a=n}function M7n(n){this.a=n}function Qv(n){this.a=n}function zU(n){this.a=n}function C7n(n){this.a=n}function T7n(n){this.a=n}function A7n(n){this.a=n}function S7n(n){this.a=n}function I7n(n){this.a=n}function P7n(n){this.a=n}function XU(n){this.a=n}function WU(n){this.a=n}function VU(n){this.a=n}function Wm(n){this.a=n}function xE(n){this.e=n}function Yv(n){this.a=n}function O7n(n){this.a=n}function ep(n){this.a=n}function JU(n){this.a=n}function L7n(n){this.a=n}function D7n(n){this.a=n}function N7n(n){this.a=n}function x7n(n){this.a=n}function F7n(n){this.a=n}function $7n(n){this.a=n}function R7n(n){this.a=n}function B7n(n){this.a=n}function K7n(n){this.a=n}function _7n(n){this.a=n}function H7n(n){this.a=n}function QU(n){this.a=n}function q7n(n){this.a=n}function G7n(n){this.a=n}function U7n(n){this.a=n}function z7n(n){this.a=n}function X7n(n){this.a=n}function W7n(n){this.a=n}function V7n(n){this.a=n}function J7n(n){this.a=n}function Q7n(n){this.a=n}function Y7n(n){this.a=n}function Z7n(n){this.a=n}function nkn(n){this.a=n}function ekn(n){this.a=n}function tkn(n){this.a=n}function ikn(n){this.a=n}function rkn(n){this.a=n}function ckn(n){this.a=n}function ukn(n){this.a=n}function okn(n){this.a=n}function skn(n){this.a=n}function fkn(n){this.a=n}function hkn(n){this.a=n}function lkn(n){this.a=n}function akn(n){this.a=n}function dkn(n){this.a=n}function bkn(n){this.a=n}function wkn(n){this.a=n}function gkn(n){this.a=n}function pkn(n){this.a=n}function vkn(n){this.a=n}function mkn(n){this.a=n}function kkn(n){this.a=n}function ykn(n){this.a=n}function jkn(n){this.a=n}function Ekn(n){this.a=n}function Mkn(n){this.a=n}function Ckn(n){this.a=n}function Tkn(n){this.a=n}function Akn(n){this.c=n}function Skn(n){this.b=n}function Ikn(n){this.a=n}function Pkn(n){this.a=n}function Okn(n){this.a=n}function Lkn(n){this.a=n}function Dkn(n){this.a=n}function Nkn(n){this.a=n}function xkn(n){this.a=n}function Fkn(n){this.a=n}function $kn(n){this.a=n}function Rkn(n){this.a=n}function Bkn(n){this.a=n}function Kkn(n){this.a=n}function _kn(n){this.a=n}function Hkn(n){this.a=n}function qkn(n){this.a=n}function Gkn(n){this.a=n}function Ukn(n){this.a=n}function zkn(n){this.a=n}function Xkn(n){this.a=n}function Wkn(n){this.a=n}function Vkn(n){this.a=n}function Jkn(n){this.a=n}function Qkn(n){this.a=n}function Ykn(n){this.a=n}function Zkn(n){this.a=n}function nyn(n){this.a=n}function eyn(n){this.a=n}function ll(n){this.a=n}function cg(n){this.a=n}function tyn(n){this.a=n}function iyn(n){this.a=n}function ryn(n){this.a=n}function cyn(n){this.a=n}function uyn(n){this.a=n}function oyn(n){this.a=n}function syn(n){this.a=n}function fyn(n){this.a=n}function hyn(n){this.a=n}function lyn(n){this.a=n}function ayn(n){this.a=n}function dyn(n){this.a=n}function byn(n){this.a=n}function wyn(n){this.a=n}function gyn(n){this.a=n}function pyn(n){this.a=n}function vyn(n){this.a=n}function myn(n){this.a=n}function kyn(n){this.a=n}function yyn(n){this.a=n}function jyn(n){this.a=n}function Eyn(n){this.a=n}function Myn(n){this.a=n}function Cyn(n){this.a=n}function Tyn(n){this.a=n}function Ayn(n){this.a=n}function FE(n){this.a=n}function Syn(n){this.f=n}function Iyn(n){this.a=n}function Pyn(n){this.a=n}function Oyn(n){this.a=n}function Lyn(n){this.a=n}function Dyn(n){this.a=n}function Nyn(n){this.a=n}function xyn(n){this.a=n}function Fyn(n){this.a=n}function $yn(n){this.a=n}function Ryn(n){this.a=n}function Byn(n){this.a=n}function Kyn(n){this.a=n}function _yn(n){this.a=n}function Hyn(n){this.a=n}function qyn(n){this.a=n}function Gyn(n){this.a=n}function Uyn(n){this.a=n}function zyn(n){this.a=n}function Xyn(n){this.a=n}function Wyn(n){this.a=n}function Vyn(n){this.a=n}function Jyn(n){this.a=n}function Qyn(n){this.a=n}function Yyn(n){this.a=n}function Zyn(n){this.a=n}function njn(n){this.a=n}function ejn(n){this.a=n}function tjn(n){this.a=n}function bL(n){this.a=n}function YU(n){this.a=n}function mt(n){this.b=n}function ijn(n){this.a=n}function rjn(n){this.a=n}function cjn(n){this.a=n}function ujn(n){this.a=n}function ojn(n){this.a=n}function sjn(n){this.a=n}function fjn(n){this.a=n}function hjn(n){this.b=n}function ljn(n){this.a=n}function Q9(n){this.a=n}function ajn(n){this.a=n}function djn(n){this.a=n}function ZU(n){this.c=n}function $E(n){this.e=n}function RE(n){this.a=n}function BE(n){this.a=n}function wL(n){this.a=n}function bjn(n){this.d=n}function wjn(n){this.a=n}function nz(n){this.a=n}function ez(n){this.a=n}function Wd(n){this.e=n}function Vm(){this.a=0}function je(){zu(this)}function nn(){ID(this)}function gL(){YPn(this)}function gjn(){}function Vd(){this.c=u0n}function pjn(n,e){n.b+=e}function mle(n,e){e.Wb(n)}function kle(n){return n.a}function yle(n){return n.a}function jle(n){return n.a}function Ele(n){return n.a}function Mle(n){return n.a}function C(n){return n.e}function Cle(){return null}function Tle(){return null}function Ale(){Kz(),uxe()}function Sle(n){n.b.Of(n.e)}function vjn(n){n.b=new FL}function Jm(n,e){n.b=e-n.b}function Qm(n,e){n.a=e-n.a}function Xn(n,e){n.push(e)}function mjn(n,e){n.sort(e)}function kjn(n,e){e.jd(n.a)}function Ile(n,e){Ci(e,n)}function Ple(n,e,t){n.Yd(t,e)}function Y9(n,e){n.e=e,e.b=n}function tz(n){lh(),this.a=n}function yjn(n){lh(),this.a=n}function jjn(n){lh(),this.a=n}function pL(n){p0(),this.a=n}function Ejn(n){S3(),u_.le(n)}function iz(){iz=$,new je}function Ga(){HAn.call(this)}function rz(){HAn.call(this)}function cz(){Ga.call(this)}function vL(){Ga.call(this)}function Mjn(){Ga.call(this)}function Z9(){Ga.call(this)}function Pu(){Ga.call(this)}function tp(){Ga.call(this)}function Be(){Ga.call(this)}function Ho(){Ga.call(this)}function Cjn(){Ga.call(this)}function uc(){Ga.call(this)}function Tjn(){Ga.call(this)}function Ajn(){this.a=this}function KE(){this.Bb|=256}function Sjn(){this.b=new xTn}function Ab(n,e){n.length=e}function _E(n,e){en(n.a,e)}function Ole(n,e){Pnn(n.c,e)}function Lle(n,e){pi(n.b,e)}function Dle(n,e){hA(n.a,e)}function Nle(n,e){pF(n.a,e)}function Zv(n,e){bt(n.e,e)}function ip(n){TA(n.c,n.b)}function xle(n,e){n.kc().Nb(e)}function uz(n){this.a=A9e(n)}function si(){this.a=new je}function Ijn(){this.a=new je}function oz(){this.a=new WMn}function HE(){this.a=new nn}function mL(){this.a=new nn}function sz(){this.a=new nn}function bs(){this.a=new zbn}function Ua(){this.a=new MNn}function fz(){this.a=new iU}function hz(){this.a=new gLn}function lz(){this.a=new SSn}function Pjn(){this.a=new nn}function Ojn(){this.a=new nn}function Ljn(){this.a=new nn}function az(){this.a=new nn}function Djn(){this.d=new nn}function Njn(){this.a=new FLn}function xjn(){this.a=new si}function Fjn(){this.a=new je}function $jn(){this.b=new je}function Rjn(){this.b=new nn}function dz(){this.e=new nn}function Bjn(){this.a=new q8n}function Kjn(){this.d=new nn}function _jn(){_On.call(this)}function Hjn(){_On.call(this)}function qjn(){nn.call(this)}function bz(){cz.call(this)}function wz(){HE.call(this)}function Gjn(){XM.call(this)}function Ujn(){az.call(this)}function Ym(){gjn.call(this)}function kL(){Ym.call(this)}function rp(){gjn.call(this)}function gz(){rp.call(this)}function zjn(){kz.call(this)}function Xjn(){kz.call(this)}function Wjn(){kz.call(this)}function Vjn(){yz.call(this)}function Zm(){Qmn.call(this)}function pz(){Qmn.call(this)}function Ou(){xt.call(this)}function Jjn(){lEn.call(this)}function Qjn(){lEn.call(this)}function Yjn(){je.call(this)}function Zjn(){je.call(this)}function nEn(){je.call(this)}function yL(){VFn.call(this)}function eEn(){si.call(this)}function tEn(){KE.call(this)}function jL(){nW.call(this)}function vz(){je.call(this)}function EL(){nW.call(this)}function ML(){je.call(this)}function iEn(){je.call(this)}function mz(){IE.call(this)}function rEn(){mz.call(this)}function cEn(){IE.call(this)}function uEn(){kU.call(this)}function kz(){this.a=new si}function oEn(){this.a=new je}function sEn(){this.a=new nn}function yz(){this.a=new je}function cp(){this.a=new xt}function fEn(){this.j=new nn}function hEn(){this.a=new sMn}function lEn(){this.a=new o6n}function jz(){this.a=new _4n}function n6(){n6=$,YK=new ji}function CL(){CL=$,ZK=new dEn}function TL(){TL=$,n_=new aEn}function aEn(){cL.call(this,"")}function dEn(){cL.call(this,"")}function bEn(n){vFn.call(this,n)}function wEn(n){vFn.call(this,n)}function Ez(n){CU.call(this,n)}function Mz(n){$Mn.call(this,n)}function Fle(n){$Mn.call(this,n)}function $le(n){Mz.call(this,n)}function Rle(n){Mz.call(this,n)}function Ble(n){Mz.call(this,n)}function gEn(n){rx.call(this,n)}function pEn(n){rx.call(this,n)}function vEn(n){JSn.call(this,n)}function mEn(n){Xz.call(this,n)}function e6(n){ZE.call(this,n)}function Cz(n){ZE.call(this,n)}function kEn(n){ZE.call(this,n)}function Tz(n){oMe.call(this,n)}function Az(n){Tz.call(this,n)}function oc(n){pPn.call(this,n)}function yEn(n){oc.call(this,n)}function up(){W9.call(this,{})}function jEn(){jEn=$,rYn=new abn}function qE(){qE=$,i_=new vAn}function EEn(){EEn=$,Mun=new vt}function Sz(){Sz=$,Cun=new yE}function GE(){GE=$,I8=new fbn}function AL(n){l3(),this.a=n}function SL(n){eY(),this.a=n}function Jd(n){aN(),this.f=n}function IL(n){aN(),this.f=n}function MEn(n){rIn(),this.a=n}function CEn(n){n.b=null,n.c=0}function Kle(n,e){n.e=e,rGn(n,e)}function _le(n,e){n.a=e,WMe(n)}function PL(n,e,t){n.a[e.g]=t}function Hle(n,e,t){fje(t,n,e)}function qle(n,e){R0e(e.i,n.n)}function TEn(n,e){s8e(n).Cd(e)}function Gle(n,e){n.a.ec().Mc(e)}function AEn(n,e){return n.g-e.g}function Ule(n,e){return n*n/e}function ln(n){return ie(n),n}function x(n){return ie(n),n}function n7(n){return ie(n),n}function zle(n){return new OE(n)}function Xle(n){return new _b(n)}function Iz(n){return ie(n),n}function Wle(n){return ie(n),n}function UE(n){oc.call(this,n)}function Fr(n){oc.call(this,n)}function SEn(n){oc.call(this,n)}function OL(n){pPn.call(this,n)}function n3(n){oc.call(this,n)}function Yn(n){oc.call(this,n)}function $r(n){oc.call(this,n)}function IEn(n){oc.call(this,n)}function op(n){oc.call(this,n)}function ql(n){oc.call(this,n)}function Gl(n){oc.call(this,n)}function sp(n){oc.call(this,n)}function ch(n){oc.call(this,n)}function LL(n){oc.call(this,n)}function qe(n){oc.call(this,n)}function Gu(n){ie(n),this.a=n}function Pz(n){return hd(n),n}function t6(n){HV(n,n.length)}function i6(n){return n.b==n.c}function Sb(n){return!!n&&n.b}function Vle(n){return!!n&&n.k}function Jle(n){return!!n&&n.j}function Qle(n,e,t){n.c.Ef(e,t)}function PEn(n,e){n.be(e),e.ae(n)}function fp(n){lh(),this.a=Re(n)}function DL(){this.a=_e(Re(dr))}function OEn(){throw C(new Be)}function Yle(){throw C(new Be)}function Oz(){throw C(new Be)}function LEn(){throw C(new Be)}function Zle(){throw C(new Be)}function n1e(){throw C(new Be)}function zE(){zE=$,S3()}function Ul(){V9.call(this,"")}function r6(){V9.call(this,"")}function F1(){V9.call(this,"")}function ug(){V9.call(this,"")}function Lz(n){Fr.call(this,n)}function Dz(n){Fr.call(this,n)}function uh(n){Yn.call(this,n)}function e3(n){Wv.call(this,n)}function DEn(n){e3.call(this,n)}function NL(n){HM.call(this,n)}function xL(n){aW.call(this,n,0)}function FL(){MJ.call(this,12,3)}function T(n,e){return hLn(n,e)}function XE(n,e){return mx(n,e)}function e1e(n,e){return n.a-e.a}function t1e(n,e){return n.a-e.a}function i1e(n,e){return n.a-e.a}function r1e(n,e){return e in n.a}function NEn(n){return n.a?n.b:0}function c1e(n){return n.a?n.b:0}function u1e(n,e,t){e.Cd(n.a[t])}function o1e(n,e,t){e.Pe(n.a[t])}function s1e(n,e){n.b=new lr(e)}function f1e(n,e){return n.b=e,n}function xEn(n,e){return n.c=e,n}function FEn(n,e){return n.f=e,n}function h1e(n,e){return n.g=e,n}function Nz(n,e){return n.a=e,n}function xz(n,e){return n.f=e,n}function l1e(n,e){return n.k=e,n}function Fz(n,e){return n.a=e,n}function a1e(n,e){return n.e=e,n}function $z(n,e){return n.e=e,n}function d1e(n,e){return n.f=e,n}function b1e(n,e){n.b=!0,n.d=e}function w1e(n,e){return n.b-e.b}function g1e(n,e){return n.g-e.g}function p1e(n,e){return n?0:e-1}function $En(n,e){return n?0:e-1}function v1e(n,e){return n?e-1:0}function m1e(n,e){return n.s-e.s}function k1e(n,e){return e.rg(n)}function Qd(n,e){return n.b=e,n}function WE(n,e){return n.a=e,n}function Yd(n,e){return n.c=e,n}function Zd(n,e){return n.d=e,n}function n0(n,e){return n.e=e,n}function Rz(n,e){return n.f=e,n}function c6(n,e){return n.a=e,n}function t3(n,e){return n.b=e,n}function i3(n,e){return n.c=e,n}function pn(n,e){return n.c=e,n}function Ln(n,e){return n.b=e,n}function vn(n,e){return n.d=e,n}function mn(n,e){return n.e=e,n}function y1e(n,e){return n.f=e,n}function kn(n,e){return n.g=e,n}function yn(n,e){return n.a=e,n}function jn(n,e){return n.i=e,n}function En(n,e){return n.j=e,n}function j1e(n,e){ua(),fc(e,n)}function E1e(n,e,t){Bge(n.a,e,t)}function VE(n){XD.call(this,n)}function REn(n){H9e.call(this,n)}function BEn(n){vOn.call(this,n)}function Bz(n){vOn.call(this,n)}function $1(n){A0.call(this,n)}function KEn(n){FN.call(this,n)}function _En(n){FN.call(this,n)}function HEn(){WX.call(this,"")}function _i(){this.a=0,this.b=0}function qEn(){this.b=0,this.a=0}function GEn(n,e){n.b=0,Qb(n,e)}function UEn(n,e){return n.k=e,n}function M1e(n,e){return n.j=e,n}function C1e(n,e){n.c=e,n.b=!0}function zEn(){zEn=$,pYn=Fje()}function R1(){R1=$,lse=Xye()}function XEn(){XEn=$,xi=cEe()}function Kz(){Kz=$,La=q3()}function r3(){r3=$,c0n=Wye()}function WEn(){WEn=$,Jse=Vye()}function _z(){_z=$,Sc=UMe()}function af(n){return n.e&&n.e()}function VEn(n){return n.l|n.m<<22}function JEn(n,e){return n.c._b(e)}function QEn(n,e){return WRn(n.b,e)}function $L(n){return n?n.d:null}function T1e(n){return n?n.g:null}function A1e(n){return n?n.i:null}function za(n){return bl(n),n.o}function og(n,e){return n.a+=e,n}function RL(n,e){return n.a+=e,n}function zl(n,e){return n.a+=e,n}function e0(n,e){return n.a+=e,n}function Hz(n,e){for(;n.Bd(e););}function JE(n){this.a=new hp(n)}function YEn(){throw C(new Be)}function ZEn(){throw C(new Be)}function nMn(){throw C(new Be)}function eMn(){throw C(new Be)}function tMn(){throw C(new Be)}function iMn(){throw C(new Be)}function Xl(n){this.a=new wN(n)}function rMn(){this.a=new K5(n1n)}function cMn(){this.b=new K5(mln)}function uMn(){this.a=new K5(M1n)}function oMn(){this.b=new K5(Qq)}function sMn(){this.b=new K5(Qq)}function QE(n){this.a=0,this.b=n}function qz(n){Fzn(),mxe(this,n)}function c3(n){return X1(n),n.a}function e7(n){return n.b!=n.d.c}function Gz(n,e){return n.d[e.p]}function fMn(n,e){return FSe(n,e)}function Uz(n,e,t){n.splice(e,t)}function sg(n,e){for(;n.Re(e););}function hMn(n){n.c?jGn(n):EGn(n)}function lMn(){throw C(new Be)}function aMn(){throw C(new Be)}function dMn(){throw C(new Be)}function bMn(){throw C(new Be)}function wMn(){throw C(new Be)}function gMn(){throw C(new Be)}function pMn(){throw C(new Be)}function vMn(){throw C(new Be)}function mMn(){throw C(new Be)}function kMn(){throw C(new Be)}function S1e(){throw C(new uc)}function I1e(){throw C(new uc)}function t7(n){this.a=new yMn(n)}function yMn(n){D6e(this,n,lMe())}function i7(n){return!n||QPn(n)}function r7(n){return rh[n]!=-1}function P1e(){fI!=0&&(fI=0),hI=-1}function jMn(){QK==null&&(QK=[])}function c7(n,e){jg.call(this,n,e)}function u3(n,e){c7.call(this,n,e)}function EMn(n,e){this.a=n,this.b=e}function MMn(n,e){this.a=n,this.b=e}function CMn(n,e){this.a=n,this.b=e}function TMn(n,e){this.a=n,this.b=e}function AMn(n,e){this.a=n,this.b=e}function SMn(n,e){this.a=n,this.b=e}function IMn(n,e){this.a=n,this.b=e}function o3(n,e){this.e=n,this.d=e}function zz(n,e){this.b=n,this.c=e}function PMn(n,e){this.b=n,this.a=e}function OMn(n,e){this.b=n,this.a=e}function LMn(n,e){this.b=n,this.a=e}function DMn(n,e){this.b=n,this.a=e}function NMn(n,e){this.a=n,this.b=e}function BL(n,e){this.a=n,this.b=e}function xMn(n,e){this.a=n,this.f=e}function t0(n,e){this.g=n,this.i=e}function Le(n,e){this.f=n,this.g=e}function FMn(n,e){this.b=n,this.c=e}function $Mn(n){tW(n.dc()),this.c=n}function O1e(n,e){this.a=n,this.b=e}function RMn(n,e){this.a=n,this.b=e}function BMn(n){this.a=u(Re(n),15)}function Xz(n){this.a=u(Re(n),15)}function KMn(n){this.a=u(Re(n),85)}function YE(n){this.b=u(Re(n),85)}function ZE(n){this.b=u(Re(n),51)}function nM(){this.q=new y.Date}function KL(n,e){this.a=n,this.b=e}function _Mn(n,e){return uu(n.b,e)}function u7(n,e){return n.b.Hc(e)}function HMn(n,e){return n.b.Ic(e)}function qMn(n,e){return n.b.Qc(e)}function GMn(n,e){return n.b.Hc(e)}function UMn(n,e){return n.c.uc(e)}function zMn(n,e){return wt(n.c,e)}function df(n,e){return n.a._b(e)}function XMn(n,e){return n>e&&e0}function zL(n,e){return Pc(n,e)<0}function fCn(n,e){return sN(n.a,e)}function J1e(n,e){lLn.call(this,n,e)}function nX(n){AN(),JSn.call(this,n)}function eX(n,e){rPn(n,n.length,e)}function h7(n,e){LPn(n,n.length,e)}function d6(n,e){return n.a.get(e)}function hCn(n,e){return uu(n.e,e)}function tX(n){return ie(n),!1}function iX(n){this.a=u(Re(n),229)}function fM(n){Nn.call(this,n,21)}function hM(n,e){Le.call(this,n,e)}function XL(n,e){Le.call(this,n,e)}function lCn(n,e){this.b=n,this.a=e}function lM(n,e){this.d=n,this.e=e}function aCn(n,e){this.a=n,this.b=e}function dCn(n,e){this.a=n,this.b=e}function bCn(n,e){this.a=n,this.b=e}function wCn(n,e){this.a=n,this.b=e}function ap(n,e){this.a=n,this.b=e}function gCn(n,e){this.b=n,this.a=e}function rX(n,e){this.b=n,this.a=e}function cX(n,e){Le.call(this,n,e)}function uX(n,e){Le.call(this,n,e)}function fg(n,e){Le.call(this,n,e)}function WL(n,e){Le.call(this,n,e)}function VL(n,e){Le.call(this,n,e)}function JL(n,e){Le.call(this,n,e)}function aM(n,e){Le.call(this,n,e)}function oX(n,e){this.b=n,this.a=e}function dM(n,e){Le.call(this,n,e)}function sX(n,e){this.b=n,this.a=e}function bM(n,e){Le.call(this,n,e)}function pCn(n,e){this.b=n,this.a=e}function fX(n,e){Le.call(this,n,e)}function QL(n,e){Le.call(this,n,e)}function l7(n,e){Le.call(this,n,e)}function b6(n,e,t){n.splice(e,0,t)}function Q1e(n,e,t){n.Mb(t)&&e.Cd(t)}function Y1e(n,e,t){e.Pe(n.a.Ye(t))}function Z1e(n,e,t){e.Dd(n.a.Ze(t))}function nae(n,e,t){e.Cd(n.a.Kb(t))}function eae(n,e){return Du(n.c,e)}function tae(n,e){return Du(n.e,e)}function wM(n,e){Le.call(this,n,e)}function gM(n,e){Le.call(this,n,e)}function w6(n,e){Le.call(this,n,e)}function hX(n,e){Le.call(this,n,e)}function fi(n,e){Le.call(this,n,e)}function pM(n,e){Le.call(this,n,e)}function vCn(n,e){this.a=n,this.b=e}function mCn(n,e){this.a=n,this.b=e}function kCn(n,e){this.a=n,this.b=e}function yCn(n,e){this.a=n,this.b=e}function jCn(n,e){this.a=n,this.b=e}function ECn(n,e){this.a=n,this.b=e}function MCn(n,e){this.b=n,this.a=e}function CCn(n,e){this.b=n,this.a=e}function lX(n,e){this.b=n,this.a=e}function h3(n,e){this.c=n,this.d=e}function TCn(n,e){this.e=n,this.d=e}function ACn(n,e){this.a=n,this.b=e}function SCn(n,e){this.a=n,this.b=e}function ICn(n,e){this.a=n,this.b=e}function PCn(n,e){this.b=n,this.a=e}function OCn(n,e){this.b=e,this.c=n}function vM(n,e){Le.call(this,n,e)}function a7(n,e){Le.call(this,n,e)}function YL(n,e){Le.call(this,n,e)}function aX(n,e){Le.call(this,n,e)}function g6(n,e){Le.call(this,n,e)}function ZL(n,e){Le.call(this,n,e)}function nD(n,e){Le.call(this,n,e)}function d7(n,e){Le.call(this,n,e)}function dX(n,e){Le.call(this,n,e)}function eD(n,e){Le.call(this,n,e)}function p6(n,e){Le.call(this,n,e)}function bX(n,e){Le.call(this,n,e)}function v6(n,e){Le.call(this,n,e)}function m6(n,e){Le.call(this,n,e)}function Pb(n,e){Le.call(this,n,e)}function tD(n,e){Le.call(this,n,e)}function iD(n,e){Le.call(this,n,e)}function wX(n,e){Le.call(this,n,e)}function b7(n,e){Le.call(this,n,e)}function hg(n,e){Le.call(this,n,e)}function rD(n,e){Le.call(this,n,e)}function mM(n,e){Le.call(this,n,e)}function w7(n,e){Le.call(this,n,e)}function Ob(n,e){Le.call(this,n,e)}function kM(n,e){Le.call(this,n,e)}function gX(n,e){Le.call(this,n,e)}function cD(n,e){Le.call(this,n,e)}function uD(n,e){Le.call(this,n,e)}function oD(n,e){Le.call(this,n,e)}function sD(n,e){Le.call(this,n,e)}function fD(n,e){Le.call(this,n,e)}function hD(n,e){Le.call(this,n,e)}function lD(n,e){Le.call(this,n,e)}function LCn(n,e){this.b=n,this.a=e}function pX(n,e){Le.call(this,n,e)}function DCn(n,e){this.a=n,this.b=e}function NCn(n,e){this.a=n,this.b=e}function xCn(n,e){this.a=n,this.b=e}function vX(n,e){Le.call(this,n,e)}function mX(n,e){Le.call(this,n,e)}function FCn(n,e){this.a=n,this.b=e}function iae(n,e){return p3(),e!=n}function g7(n){return we(n.a),n.b}function aD(n){return hTe(n,n.c),n}function $Cn(){return zEn(),new pYn}function RCn(){YM(),this.a=new FW}function BCn(){xA(),this.a=new si}function KCn(){zN(),this.b=new si}function _Cn(n,e){this.b=n,this.d=e}function HCn(n,e){this.a=n,this.b=e}function qCn(n,e){this.a=n,this.b=e}function GCn(n,e){this.a=n,this.b=e}function UCn(n,e){this.b=n,this.a=e}function kX(n,e){Le.call(this,n,e)}function yX(n,e){Le.call(this,n,e)}function yM(n,e){Le.call(this,n,e)}function c0(n,e){Le.call(this,n,e)}function dD(n,e){Le.call(this,n,e)}function jM(n,e){Le.call(this,n,e)}function jX(n,e){Le.call(this,n,e)}function EX(n,e){Le.call(this,n,e)}function p7(n,e){Le.call(this,n,e)}function MX(n,e){Le.call(this,n,e)}function bD(n,e){Le.call(this,n,e)}function EM(n,e){Le.call(this,n,e)}function wD(n,e){Le.call(this,n,e)}function gD(n,e){Le.call(this,n,e)}function pD(n,e){Le.call(this,n,e)}function vD(n,e){Le.call(this,n,e)}function CX(n,e){Le.call(this,n,e)}function mD(n,e){Le.call(this,n,e)}function TX(n,e){Le.call(this,n,e)}function v7(n,e){Le.call(this,n,e)}function kD(n,e){Le.call(this,n,e)}function AX(n,e){Le.call(this,n,e)}function m7(n,e){Le.call(this,n,e)}function SX(n,e){Le.call(this,n,e)}function zCn(n,e){this.b=n,this.a=e}function XCn(n,e){this.b=n,this.a=e}function WCn(n,e){this.b=n,this.a=e}function VCn(n,e){this.b=n,this.a=e}function IX(n,e){this.a=n,this.b=e}function JCn(n,e){this.a=n,this.b=e}function QCn(n,e){this.a=n,this.b=e}function V(n,e){this.a=n,this.b=e}function k6(n,e){Le.call(this,n,e)}function k7(n,e){Le.call(this,n,e)}function dp(n,e){Le.call(this,n,e)}function y6(n,e){Le.call(this,n,e)}function y7(n,e){Le.call(this,n,e)}function yD(n,e){Le.call(this,n,e)}function MM(n,e){Le.call(this,n,e)}function j6(n,e){Le.call(this,n,e)}function jD(n,e){Le.call(this,n,e)}function CM(n,e){Le.call(this,n,e)}function lg(n,e){Le.call(this,n,e)}function j7(n,e){Le.call(this,n,e)}function E6(n,e){Le.call(this,n,e)}function M6(n,e){Le.call(this,n,e)}function E7(n,e){Le.call(this,n,e)}function TM(n,e){Le.call(this,n,e)}function ag(n,e){Le.call(this,n,e)}function ED(n,e){Le.call(this,n,e)}function YCn(n,e){Le.call(this,n,e)}function AM(n,e){Le.call(this,n,e)}function ZCn(n,e){this.a=n,this.b=e}function nTn(n,e){this.a=n,this.b=e}function eTn(n,e){this.a=n,this.b=e}function tTn(n,e){this.a=n,this.b=e}function iTn(n,e){this.a=n,this.b=e}function rTn(n,e){this.a=n,this.b=e}function Ei(n,e){this.a=n,this.b=e}function cTn(n,e){this.a=n,this.b=e}function uTn(n,e){this.a=n,this.b=e}function oTn(n,e){this.a=n,this.b=e}function sTn(n,e){this.a=n,this.b=e}function fTn(n,e){this.a=n,this.b=e}function hTn(n,e){this.a=n,this.b=e}function lTn(n,e){this.b=n,this.a=e}function aTn(n,e){this.b=n,this.a=e}function dTn(n,e){this.b=n,this.a=e}function bTn(n,e){this.b=n,this.a=e}function wTn(n,e){this.a=n,this.b=e}function gTn(n,e){this.a=n,this.b=e}function SM(n,e){Le.call(this,n,e)}function pTn(n,e){this.a=n,this.b=e}function vTn(n,e){this.a=n,this.b=e}function bp(n,e){Le.call(this,n,e)}function mTn(n,e){this.f=n,this.c=e}function PX(n,e){return Du(n.g,e)}function rae(n,e){return Du(e.b,n)}function kTn(n,e){return AF(n.a,e)}function cae(n,e){return-n.b.af(e)}function uae(n,e){n&&ct(aE,n,e)}function OX(n,e){n.i=null,MT(n,e)}function oae(n,e,t){l_n(e,m$(n,t))}function sae(n,e,t){l_n(e,m$(n,t))}function fae(n,e){$Ae(n.a,u(e,58))}function yTn(n,e){Dme(n.a,u(e,12))}function IM(n,e){this.a=n,this.b=e}function jTn(n,e){this.a=n,this.b=e}function ETn(n,e){this.a=n,this.b=e}function MTn(n,e){this.a=n,this.b=e}function CTn(n,e){this.a=n,this.b=e}function TTn(n,e){this.d=n,this.b=e}function ATn(n,e){this.e=n,this.a=e}function M7(n,e){this.b=n,this.c=e}function LX(n,e){this.i=n,this.g=e}function DX(n,e){this.d=n,this.e=e}function hae(n,e){Wme(new oe(n),e)}function PM(n){return _k(n.c,n.b)}function zr(n){return n?n.md():null}function F(n){return n??null}function Fi(n){return typeof n===aR}function Lb(n){return typeof n===ev}function Db(n){return typeof n===Itn}function u0(n,e){return Pc(n,e)==0}function OM(n,e){return Pc(n,e)>=0}function C6(n,e){return Pc(n,e)!=0}function LM(n,e){return l5e(n.Kc(),e)}function _1(n,e){return n.Rd().Xb(e)}function STn(n){return co(n),n.d.gc()}function DM(n){return $6(n==null),n}function T6(n,e){return n.a+=""+e,n}function Or(n,e){return n.a+=""+e,n}function A6(n,e){return n.a+=""+e,n}function Kc(n,e){return n.a+=""+e,n}function Je(n,e){return n.a+=""+e,n}function NX(n,e){return n.a+=""+e,n}function lae(n){return""+(ie(n),n)}function ITn(n){zu(this),f5(this,n)}function PTn(){EJ(),IV.call(this)}function OTn(n,e){NV.call(this,n,e)}function LTn(n,e){NV.call(this,n,e)}function NM(n,e){NV.call(this,n,e)}function hr(n,e){Xt(n,e,n.c.b,n.c)}function dg(n,e){Xt(n,e,n.a,n.a.a)}function xX(n){return $n(n,0),null}function DTn(){this.b=0,this.a=!1}function NTn(){this.b=0,this.a=!1}function xTn(){this.b=new hp(Vb(12))}function FTn(){FTn=$,lZn=Ne(NF())}function $Tn(){$Tn=$,Dne=Ne(Xqn())}function RTn(){RTn=$,tce=Ne(T$n())}function FX(){FX=$,iz(),Tun=new je}function bf(n){return n.a=0,n.b=0,n}function BTn(n,e){return n.a=e.g+1,n}function MD(n,e){Rb.call(this,n,e)}function In(n,e){qt.call(this,n,e)}function bg(n,e){LX.call(this,n,e)}function KTn(n,e){S7.call(this,n,e)}function CD(n,e){V3.call(this,n,e)}function it(n,e){oM(),ct(CO,n,e)}function _Tn(n,e){n.q.setTime(td(e))}function aae(n){y.clearTimeout(n)}function dae(n){return Re(n),new S6(n)}function HTn(n,e){return F(n)===F(e)}function qTn(n,e){return n.a.a.a.cc(e)}function TD(n,e){return Xo(n.a,0,e)}function $X(n){return g2e(u(n,74))}function wp(n){return Mi((ie(n),n))}function bae(n){return Mi((ie(n),n))}function GTn(n){return cu(n.l,n.m,n.h)}function RX(n,e){return Ic(n.a,e.a)}function wae(n,e){return PPn(n.a,e.a)}function gae(n,e){return Tt(n.a,e.a)}function oh(n,e){return n.indexOf(e)}function pae(n,e){return n.j[e.p]==2}function o0(n,e){return n==e?0:n?1:-1}function xM(n){return n<10?"0"+n:""+n}function nc(n){return typeof n===Itn}function vae(n){return n==ib||n==Sw}function mae(n){return n==ib||n==Aw}function UTn(n,e){return Ic(n.g,e.g)}function BX(n){return Vr(n.b.b,n,0)}function zTn(){sC.call(this,0,0,0,0)}function sh(){KU.call(this,new n1)}function KX(n,e){N3(n,0,n.length,e)}function kae(n,e){return en(n.a,e),e}function yae(n,e){return _s(),e.a+=n}function jae(n,e){return _s(),e.a+=n}function Eae(n,e){return _s(),e.c+=n}function Mae(n,e){return en(n.c,e),n}function _X(n,e){return Io(n.a,e),n}function XTn(n){this.a=$Cn(),this.b=n}function WTn(n){this.a=$Cn(),this.b=n}function lr(n){this.a=n.a,this.b=n.b}function S6(n){this.a=n,iL.call(this)}function VTn(n){this.a=n,iL.call(this)}function gp(){zo.call(this,0,0,0,0)}function FM(n){return Io(new li,n)}function JTn(n){return TC(u(n,123))}function bo(n){return n.vh()&&n.wh()}function wg(n){return n!=eh&&n!=Ia}function dl(n){return n==Gr||n==Zr}function gg(n){return n==hs||n==Zf}function QTn(n){return n==T2||n==C2}function Cae(n,e){return Ic(n.g,e.g)}function YTn(n,e){return new V3(e,n)}function Tae(n,e){return new V3(e,n)}function HX(n){return Xwe(n.b.Kc(),n.a)}function AD(n,e){i4(n,e),H3(n,n.D)}function SD(n,e,t){gT(n,e),wT(n,t)}function pg(n,e,t){I0(n,e),S0(n,t)}function qo(n,e,t){su(n,e),fu(n,t)}function C7(n,e,t){R3(n,e),K3(n,t)}function T7(n,e,t){B3(n,e),_3(n,t)}function ZTn(n,e,t){MW.call(this,n,e,t)}function qX(n){mTn.call(this,n,!0)}function nAn(){hM.call(this,"Tail",3)}function eAn(){hM.call(this,"Head",1)}function H1(n){ph(),o5e.call(this,n)}function s0(n){sC.call(this,n,n,n,n)}function ID(n){n.c=_(Ii,Gn,1,0,5,1)}function GX(n){return n.b&&W$(n),n.a}function UX(n){return n.b&&W$(n),n.c}function Aae(n,e){Wf||(n.b=e)}function Sae(n,e){return n[n.length]=e}function Iae(n,e){return n[n.length]=e}function Pae(n,e){return Jb(e,Lf(n))}function Oae(n,e){return Jb(e,Lf(n))}function Lae(n,e){return yT(CN(n.d),e)}function Dae(n,e){return yT(CN(n.g),e)}function Nae(n,e){return yT(CN(n.j),e)}function Hi(n,e){qt.call(this,n.b,e)}function xae(n,e){Se(Fc(n.a),jLn(e))}function Fae(n,e){Se(ro(n.a),ELn(e))}function $ae(n,e,t){qo(t,t.i+n,t.j+e)}function tAn(n,e,t){zt(n.c[e.g],e.g,t)}function Rae(n,e,t){u(n.c,71).Gi(e,t)}function PD(n,e,t){return zt(n,e,t),t}function iAn(n){ou(n.Sf(),new j7n(n))}function vg(n){return n!=null?It(n):0}function Bae(n){return n==null?0:It(n)}function I6(n){lt(),Wd.call(this,n)}function rAn(n){this.a=n,cV.call(this,n)}function Pf(){Pf=$,y.Math.log(2)}function Go(){Go=$,sl=(oCn(),pse)}function cAn(){cAn=$,aq=new j5(TG)}function Ke(){Ke=$,new uAn,new nn}function uAn(){new je,new je,new je}function Kae(){throw C(new ql(HQn))}function _ae(){throw C(new ql(HQn))}function Hae(){throw C(new ql(qQn))}function qae(){throw C(new ql(qQn))}function OD(n){this.a=n,YE.call(this,n)}function LD(n){this.a=n,YE.call(this,n)}function oAn(n,e){p0(),this.a=n,this.b=e}function Gae(n,e){Re(e),Mg(n).Jc(new Uv)}function ui(n,e){fN(n.c,n.c.length,e)}function sc(n){return n.ae?1:0}function XX(n,e){return Pc(n,e)>0?n:e}function cu(n,e,t){return{l:n,m:e,h:t}}function Uae(n,e){n.a!=null&&yTn(e,n.a)}function zae(n){ur(n,null),Bi(n,null)}function Xae(n,e,t){return ct(n.g,t,e)}function mg(n,e,t){return gZ(e,t,n.c)}function Wae(n,e,t){return ct(n.k,t,e)}function Vae(n,e,t){return NDe(n,e,t),t}function Jae(n,e){return Mo(),e.n.b+=n}function fAn(n){gJ.call(this),this.b=n}function WX(n){xW.call(this),this.a=n}function hAn(){hM.call(this,"Range",2)}function $M(n){this.b=n,this.a=new nn}function lAn(n){this.b=new jwn,this.a=n}function aAn(n){n.a=new qO,n.c=new qO}function dAn(n){n.a=new je,n.d=new je}function bAn(n){XN(n,null),WN(n,null)}function wAn(n,e){return FDe(n.a,e,null)}function Qae(n,e){return ct(n.a,e.a,e)}function Xi(n){return new V(n.a,n.b)}function VX(n){return new V(n.c,n.d)}function Yae(n){return new V(n.c,n.d)}function P6(n,e){return WLe(n.c,n.b,e)}function L(n,e){return n!=null&&RF(n,e)}function DD(n,e){return _5e(n.Kc(),e)!=-1}function RM(n){return n.Ob()?n.Pb():null}function Zae(n){this.b=(Fn(),new dL(n))}function JX(n){this.a=n,je.call(this)}function gAn(){S7.call(this,null,null)}function pAn(){UM.call(this,null,null)}function vAn(){Le.call(this,"INSTANCE",0)}function mAn(){VZ(),this.a=new K5(Xon)}function kAn(n){return ms(n,0,n.length)}function nde(n,e){return new RAn(n.Kc(),e)}function QX(n,e){return n.a.Bc(e)!=null}function yAn(n,e){Ae(n),n.Gc(u(e,15))}function ede(n,e,t){n.c.bd(e,u(t,136))}function tde(n,e,t){n.c.Ui(e,u(t,136))}function jAn(n,e){n.c&&(vV(e),WOn(e))}function ide(n,e){n.q.setHours(e),U5(n,e)}function rde(n,e){l0(e,n.a.a.a,n.a.a.b)}function cde(n,e,t,i){zt(n.a[e.g],t.g,i)}function ND(n,e,t){return n.a[e.g][t.g]}function ude(n,e){return n.e[e.c.p][e.p]}function ode(n,e){return n.c[e.c.p][e.p]}function Of(n,e){return n.a[e.c.p][e.p]}function sde(n,e){return n.j[e.p]=mAe(e)}function xD(n,e){return n.a.Bc(e)!=null}function fde(n,e){return x(K(e.a))<=n}function hde(n,e){return x(K(e.a))>=n}function lde(n,e){return eQ(n.f,e.Pg())}function pp(n,e){return n.a*e.a+n.b*e.b}function ade(n,e){return n.a0?e/(n*n):e*100}function $de(n,e){return n>0?e*e/n:e*e*100}function Nb(n,e){return u(Rf(n.a,e),34)}function Rde(n,e){return ua(),Dn(n,e.e,e)}function Bde(n,e,t){return rM(),t.Mg(n,e)}function Kde(n){return El(),n.e.a+n.f.a/2}function _de(n,e,t){return El(),t.e.a-n*e}function Hde(n){return El(),n.e.b+n.f.b/2}function qde(n,e,t){return El(),t.e.b-n*e}function YAn(n){n.d=new VAn(n),n.e=new je}function ZAn(){this.a=new E0,this.b=new E0}function nSn(n){this.c=n,this.a=1,this.b=1}function eSn(n){hR(),vjn(this),this.Ff(n)}function Gde(n,e,t){tT(),n.pf(e)&&t.Cd(n)}function Ude(n,e,t){return en(e,aBn(n,t))}function l0(n,e,t){return n.a+=e,n.b+=t,n}function zde(n,e,t){return n.a*=e,n.b*=t,n}function wW(n,e){return n.a=e.a,n.b=e.b,n}function zM(n){return n.a=-n.a,n.b=-n.b,n}function N6(n,e,t){return n.a-=e,n.b-=t,n}function tSn(n){xt.call(this),c5(this,n)}function iSn(){Le.call(this,"GROW_TREE",0)}function rSn(){Le.call(this,"POLYOMINO",0)}function go(n,e,t){Fu.call(this,n,e,t,2)}function Xde(n,e,t){k5(Fc(n.a),e,jLn(t))}function cSn(n,e){a6(),S7.call(this,n,e)}function gW(n,e){Wl(),UM.call(this,n,e)}function uSn(n,e){Wl(),gW.call(this,n,e)}function oSn(n,e){Wl(),UM.call(this,n,e)}function Wde(n,e){return n.c.Fc(u(e,136))}function Vde(n,e,t){k5(ro(n.a),e,ELn(t))}function sSn(n){this.c=n,su(n,0),fu(n,0)}function _D(n,e){Go(),lC.call(this,n,e)}function fSn(n,e){Go(),_D.call(this,n,e)}function pW(n,e){Go(),_D.call(this,n,e)}function vW(n,e){Go(),lC.call(this,n,e)}function hSn(n,e){Go(),pW.call(this,n,e)}function lSn(n,e){Go(),vW.call(this,n,e)}function aSn(n,e){Go(),lC.call(this,n,e)}function Jde(n,e,t){return e.zl(n.e,n.c,t)}function Qde(n,e,t){return e.Al(n.e,n.c,t)}function mW(n,e,t){return XA(bk(n,e),t)}function HD(n,e){return ea(n.e,u(e,54))}function Yde(n){return n==null?null:ENe(n)}function Zde(n){return n==null?null:gMe(n)}function n0e(n){return n==null?null:tc(n)}function e0e(n){return n==null?null:tc(n)}function hn(n){return $6(n==null||Lb(n)),n}function K(n){return $6(n==null||Db(n)),n}function _e(n){return $6(n==null||Fi(n)),n}function bl(n){n.o==null&&WTe(n)}function kW(n){if(!n)throw C(new Z9)}function t0e(n){if(!n)throw C(new vL)}function we(n){if(!n)throw C(new uc)}function xb(n){if(!n)throw C(new Pu)}function dSn(n){if(!n)throw C(new Ho)}function w3(){w3=$,bE=new Jjn,new Qjn}function Eg(){Eg=$,I2=new mt("root")}function yW(){VFn.call(this),this.Bb|=pr}function i0e(n,e){this.d=n,V9n(this),this.b=e}function jW(n,e){wx.call(this,n),this.a=e}function EW(n,e){wx.call(this,n),this.a=e}function MW(n,e,t){YC.call(this,n,e,t,null)}function bSn(n,e,t){YC.call(this,n,e,t,null)}function O7(n,e){this.c=n,o3.call(this,n,e)}function x6(n,e){this.a=n,O7.call(this,n,e)}function CW(n){this.q=new y.Date(td(n))}function wSn(n){return n>8?0:n+1}function gSn(n,e){Wf||en(n.a,e)}function r0e(n,e){return f7(),W3(e.d.i,n)}function c0e(n,e){return Kp(),new zGn(e,n)}function u0e(n,e,t){return n.Ne(e,t)<=0?t:e}function o0e(n,e,t){return n.Ne(e,t)<=0?e:t}function s0e(n,e){return u(Rf(n.b,e),143)}function f0e(n,e){return u(Rf(n.c,e),233)}function qD(n){return u(an(n.a,n.b),294)}function pSn(n){return new V(n.c,n.d+n.a)}function vSn(n){return ie(n),n?1231:1237}function mSn(n){return Mo(),QTn(u(n,203))}function Fb(){Fb=$,yon=Tn((ko(),Gd))}function h0e(n,e){e.a?bTe(n,e):xD(n.a,e.b)}function L7(n,e,t){++n.j,n.tj(),bx(n,e,t)}function kSn(n,e,t){++n.j,n.qj(e,n.Zi(e,t))}function ySn(n,e,t){var i;i=n.fd(e),i.Rb(t)}function TW(n,e,t){return t=Lo(n,e,6,t),t}function AW(n,e,t){return t=Lo(n,e,3,t),t}function SW(n,e,t){return t=Lo(n,e,9,t),t}function hh(n,e){return V7(e,Ytn),n.f=e,n}function IW(n,e){return(e&at)%n.d.length}function jSn(n,e,t){return stn(n.c,n.b,e,t)}function ESn(n,e){this.c=n,A0.call(this,e)}function MSn(n,e){this.a=n,hjn.call(this,e)}function D7(n,e){this.a=n,hjn.call(this,e)}function qt(n,e){mt.call(this,n),this.a=e}function PW(n,e){ZU.call(this,n),this.a=e}function GD(n,e){ZU.call(this,n),this.a=e}function l0e(n){hZ.call(this,0,0),this.f=n}function CSn(n,e,t){return n.a+=ms(e,0,t),n}function N7(n){return!n.a&&(n.a=new lbn),n.a}function OW(n,e){var t;return t=n.e,n.e=e,t}function LW(n,e){var t;return t=e,!!n.Fe(t)}function a0e(n,e){return Wn(),n==e?0:n?1:-1}function $b(n,e){n.a.bd(n.b,e),++n.b,n.c=-1}function x7(n){n.b?x7(n.b):n.f.c.zc(n.e,n.d)}function TSn(n){zu(n.e),n.d.b=n.d,n.d.a=n.d}function d0e(n,e,t){Xa(),z9n(n,e.Ve(n.a,t))}function DW(n,e,t){return Ap(n,u(e,22),t)}function Ks(n,e){return XE(new Array(e),n)}function b0e(n){return $e(G1(n,32))^$e(n)}function UD(n){return String.fromCharCode(n)}function w0e(n){return n==null?null:n.message}function g0e(n,e,t){return n.apply(e,t);var i}function p0e(n,e){var t;t=n[GR],t.call(n,e)}function v0e(n,e){var t;t=n[GR],t.call(n,e)}function m0e(n,e){return f7(),!W3(e.d.i,n)}function NW(n,e,t,i){sC.call(this,n,e,t,i)}function ASn(){XM.call(this),this.a=new _i}function xW(){this.n=new _i,this.o=new _i}function SSn(){this.b=new _i,this.c=new nn}function ISn(){this.a=new nn,this.b=new nn}function PSn(){this.a=new iU,this.b=new Sjn}function FW(){this.b=new n1,this.a=new n1}function OSn(){this.b=new si,this.a=new si}function LSn(){this.b=new je,this.a=new je}function DSn(){this.b=new cMn,this.a=new I3n}function NSn(){this.a=new G8n,this.b=new kvn}function xSn(){this.a=new nn,this.d=new nn}function XM(){this.n=new rp,this.i=new gp}function FSn(n){this.a=(So(n,gw),new Zc(n))}function $Sn(n){this.a=(So(n,gw),new Zc(n))}function k0e(n){return n<100?null:new $1(n)}function y0e(n,e){return n.n.a=(ie(e),e+10)}function j0e(n,e){return n.n.a=(ie(e),e+10)}function E0e(n,e){return e==n||p4(PA(e),n)}function RSn(n,e){return ct(n.a,e,"")==null}function M0e(n,e){var t;return t=e.qi(n.a),t}function dt(n,e){return n.a+=e.a,n.b+=e.b,n}function Ai(n,e){return n.a-=e.a,n.b-=e.b,n}function C0e(n){return Ab(n.j.c,0),n.a=-1,n}function $W(n,e,t){return t=Lo(n,e,11,t),t}function T0e(n,e,t){t!=null&&jT(e,VF(n,t))}function A0e(n,e,t){t!=null&&ET(e,VF(n,t))}function kp(n,e,t,i){G.call(this,n,e,t,i)}function RW(n,e,t,i){G.call(this,n,e,t,i)}function BSn(n,e,t,i){RW.call(this,n,e,t,i)}function KSn(n,e,t,i){vC.call(this,n,e,t,i)}function zD(n,e,t,i){vC.call(this,n,e,t,i)}function BW(n,e,t,i){vC.call(this,n,e,t,i)}function _Sn(n,e,t,i){zD.call(this,n,e,t,i)}function KW(n,e,t,i){zD.call(this,n,e,t,i)}function Kn(n,e,t,i){BW.call(this,n,e,t,i)}function HSn(n,e,t,i){KW.call(this,n,e,t,i)}function qSn(n,e,t,i){RV.call(this,n,e,t,i)}function Rb(n,e){Fr.call(this,k8+n+Cd+e)}function _W(n,e){return n.jk().wi().ri(n,e)}function HW(n,e){return n.jk().wi().ti(n,e)}function GSn(n,e){return ie(n),F(n)===F(e)}function On(n,e){return ie(n),F(n)===F(e)}function S0e(n,e){return n.b.Bd(new dCn(n,e))}function I0e(n,e){return n.b.Bd(new bCn(n,e))}function USn(n,e){return n.b.Bd(new wCn(n,e))}function P0e(n,e){return n.e=u(n.d.Kb(e),159)}function qW(n,e,t){return n.lastIndexOf(e,t)}function O0e(n,e,t){return Tt(n[e.a],n[t.a])}function L0e(n,e){return U(e,(fn(),Tj),n)}function D0e(n,e){return Ic(e.a.d.p,n.a.d.p)}function N0e(n,e){return Ic(n.a.d.p,e.a.d.p)}function x0e(n,e){return Tt(n.c-n.s,e.c-e.s)}function F0e(n,e){return Tt(n.b.e.a,e.b.e.a)}function $0e(n,e){return Tt(n.c.e.a,e.c.e.a)}function zSn(n){return n.c?Vr(n.c.a,n,0):-1}function yp(n){return n==qd||n==ul||n==Qc}function GW(n,e){this.c=n,mN.call(this,n,e)}function XSn(n,e,t){this.a=n,aW.call(this,e,t)}function WSn(n){this.c=n,NM.call(this,Cy,0)}function VSn(n,e,t){this.c=e,this.b=t,this.a=n}function F7(n){p3(),this.d=n,this.a=new yg}function JSn(n){lh(),this.a=(Fn(),new e3(n))}function R0e(n,e){dl(n.f)?KTe(n,e):pEe(n,e)}function QSn(n,e){Qwe.call(this,n,n.length,e)}function B0e(n,e){Wf||e&&(n.d=e)}function YSn(n,e){return L(e,15)&&TGn(n.c,e)}function K0e(n,e,t){return u(n.c,71).Wk(e,t)}function WM(n,e,t){return u(n.c,71).Xk(e,t)}function _0e(n,e,t){return Jde(n,u(e,343),t)}function UW(n,e,t){return Qde(n,u(e,343),t)}function H0e(n,e,t){return m_n(n,u(e,343),t)}function ZSn(n,e,t){return PEe(n,u(e,343),t)}function F6(n,e){return e==null?null:nw(n.b,e)}function zW(n){return Db(n)?(ie(n),n):n.ue()}function VM(n){return!isNaN(n)&&!isFinite(n)}function XD(n){aAn(this),Eo(this),zi(this,n)}function Uu(n){ID(this),sV(this.c,0,n.Pc())}function Uo(n,e,t){this.a=n,this.b=e,this.c=t}function nIn(n,e,t){this.a=n,this.b=e,this.c=t}function eIn(n,e,t){this.d=n,this.b=t,this.a=e}function tIn(n){this.a=n,al(),Tc(Date.now())}function iIn(n){vo(n.a),oQ(n.c,n.b),n.b=null}function WD(){WD=$,Wun=new jbn,vYn=new Ebn}function rIn(){rIn=$,Ese=_(Ii,Gn,1,0,5,1)}function cIn(){cIn=$,_se=_(Ii,Gn,1,0,5,1)}function XW(){XW=$,Hse=_(Ii,Gn,1,0,5,1)}function lh(){lh=$,new tz((Fn(),Fn(),rr))}function q0e(n){return x3(),De((lxn(),yYn),n)}function G0e(n){return Vu(),De((exn(),AYn),n)}function U0e(n){return tA(),De((KDn(),DYn),n)}function z0e(n){return fT(),De((_Dn(),NYn),n)}function X0e(n){return RA(),De((K$n(),xYn),n)}function W0e(n){return kf(),De((ZNn(),RYn),n)}function V0e(n){return Wu(),De((YNn(),KYn),n)}function J0e(n){return ku(),De((nxn(),HYn),n)}function Q0e(n){return YA(),De((FTn(),lZn),n)}function Y0e(n){return D0(),De((dxn(),dZn),n)}function Z0e(n){return zp(),De((wxn(),wZn),n)}function nbe(n){return A5(),De((bxn(),vZn),n)}function ebe(n){return tM(),De((aDn(),mZn),n)}function tbe(n){return hT(),De((HDn(),FZn),n)}function ibe(n){return i5(),De((txn(),sne),n)}function rbe(n){return er(),De((Jxn(),ane),n)}function cbe(n){return Q3(),De((pxn(),pne),n)}function ube(n){return ad(),De((gxn(),Ene),n)}function WW(n,e){if(!n)throw C(new Yn(e))}function g3(n){if(!n)throw C(new $r(Ptn))}function VD(n,e){if(n!=e)throw C(new Ho)}function uIn(n,e,t){this.a=n,this.b=e,this.c=t}function VW(n,e,t){this.a=n,this.b=e,this.c=t}function oIn(n,e,t){this.a=n,this.b=e,this.c=t}function JM(n,e,t){this.b=n,this.a=e,this.c=t}function JW(n,e,t){this.b=n,this.c=e,this.a=t}function QW(n,e,t){this.a=n,this.b=e,this.c=t}function QM(n,e,t){this.e=e,this.b=n,this.d=t}function sIn(n,e,t){this.b=n,this.a=e,this.c=t}function obe(n,e,t){return Xa(),n.a.Yd(e,t),e}function JD(n){var e;return e=new Xbn,e.e=n,e}function YW(n){var e;return e=new Djn,e.b=n,e}function $7(){$7=$,SI=new Vgn,II=new Jgn}function YM(){YM=$,Rne=new E2n,$ne=new M2n}function _s(){_s=$,qne=new Lpn,Gne=new Dpn}function sbe(n){return O0(),De((DNn(),nee),n)}function fbe(n){return fr(),De(($Tn(),Dne),n)}function hbe(n){return xT(),De((mxn(),Fne),n)}function lbe(n){return Kf(),De((vxn(),Xne),n)}function abe(n){return cw(),De((Qxn(),Vne),n)}function dbe(n){return FA(),De((C$n(),eee),n)}function bbe(n){return Jp(),De((jFn(),tee),n)}function wbe(n){return eT(),De((VDn(),iee),n)}function gbe(n){return u5(),De((ONn(),ree),n)}function pbe(n){return vT(),De((LNn(),cee),n)}function vbe(n){return h1(),De((Yxn(),uee),n)}function mbe(n){return mk(),De((UDn(),oee),n)}function kbe(n){return m4(),De((CFn(),dee),n)}function ybe(n){return Cr(),De((tRn(),bee),n)}function jbe(n){return J3(),De((xNn(),wee),n)}function Ebe(n){return jl(),De((FNn(),pee),n)}function Mbe(n){return GC(),De((GDn(),vee),n)}function Cbe(n){return Yk(),De((MFn(),aee),n)}function Tbe(n){return fd(),De((NNn(),fee),n)}function Abe(n){return EA(),De((EFn(),hee),n)}function Sbe(n){return ak(),De((zDn(),lee),n)}function Ibe(n){return ts(),De((nFn(),mee),n)}function Pbe(n){return w1(),De(($$n(),qie),n)}function Obe(n){return g5(),De(($Nn(),Gie),n)}function Lbe(n){return iw(),De((kxn(),Uie),n)}function Dbe(n){return T5(),De((Zxn(),zie),n)}function Nbe(n){return ys(),De((iRn(),Xie),n)}function xbe(n){return wh(),De((yxn(),Wie),n)}function Fbe(n){return pk(),De((XDn(),Vie),n)}function $be(n){return Mr(),De((KNn(),Qie),n)}function Rbe(n){return LT(),De((RNn(),Yie),n)}function Bbe(n){return d5(),De((BNn(),Zie),n)}function Kbe(n){return r4(),De((_Nn(),nre),n)}function _be(n){return pT(),De((HNn(),ere),n)}function Hbe(n){return FT(),De((qNn(),tre),n)}function qbe(n){return P0(),De((QNn(),vre),n)}function Gbe(n){return n5(),De((WDn(),Ere),n)}function Ube(n){return dh(),De((YDn(),Pre),n)}function zbe(n){return Df(),De((ZDn(),Lre),n)}function Xbe(n){return pf(),De((nNn(),Xre),n)}function Wbe(n){return M0(),De((eNn(),nce),n)}function Vbe(n){return Vp(),De((Sxn(),ece),n)}function Jbe(n){return q5(),De((RTn(),tce),n)}function Qbe(n){return b5(),De((GNn(),ice),n)}function Ybe(n){return w5(),De((Axn(),Tce),n)}function Zbe(n){return _C(),De((JDn(),Ace),n)}function nwe(n){return CT(),De((QDn(),Lce),n)}function ewe(n){return mA(),De((eFn(),Nce),n)}function twe(n){return Dk(),De((UNn(),Fce),n)}function iwe(n){return iT(),De((tNn(),xce),n)}function rwe(n){return aA(),De((Txn(),tue),n)}function cwe(n){return OT(),De((zNn(),iue),n)}function uwe(n){return QT(),De((XNn(),rue),n)}function owe(n){return sA(),De((WNn(),uue),n)}function swe(n){return UT(),De((VNn(),fue),n)}function fwe(n){return VC(),De((iNn(),Pue),n)}function hwe(n){return U3(),De((qDn(),Lne),n)}function lwe(n){return ee(),De((TFn(),Ane),n)}function awe(n){return rT(),De((JNn(),Oue),n)}function dwe(n){return zx(),De((rNn(),Lue),n)}function bwe(n){return B5(),De((tFn(),Nue),n)}function wwe(n){return cM(),De((kDn(),Fue),n)}function gwe(n){return Bk(),De((rxn(),xue),n)}function pwe(n){return uM(),De((yDn(),Rue),n)}function vwe(n){return ok(),De((cNn(),Bue),n)}function mwe(n){return ny(),De((iFn(),Kue),n)}function kwe(n){return f6(),De((jDn(),toe),n)}function ywe(n){return Ik(),De((uNn(),ioe),n)}function jwe(n){return jf(),De((cFn(),hoe),n)}function Ewe(n){return b1(),De((E$n(),aoe),n)}function Mwe(n){return qh(),De((AFn(),doe),n)}function Cwe(n){return bd(),De((SFn(),moe),n)}function Twe(n){return di(),De((rFn(),Roe),n)}function Awe(n){return Bf(),De((cxn(),Boe),n)}function Swe(n){return Tl(),De((Ixn(),Koe),n)}function Iwe(n){return yA(),De((IFn(),_oe),n)}function Pwe(n){return Cl(),De((ixn(),qoe),n)}function Owe(n){return Po(),De((Pxn(),Uoe),n)}function Lwe(n){return fw(),De((B$n(),zoe),n)}function Dwe(n){return xg(),De((uFn(),Xoe),n)}function Nwe(n){return Ki(),De((PFn(),Woe),n)}function xwe(n){return Ju(),De((OFn(),Voe),n)}function Fwe(n){return rn(),De((oFn(),Joe),n)}function $we(n){return ko(),De((Oxn(),ese),n)}function Rwe(n){return oo(),De((R$n(),tse),n)}function Bwe(n){return qp(),De((uxn(),ise),n)}function Kwe(n,e){return ie(n),n+(ie(e),e)}function _we(n){return QD(),De((oNn(),rse),n)}function Hwe(n){return XT(),De((Lxn(),cse),n)}function qwe(n){return $T(),De((Dxn(),sse),n)}function p3(){p3=$,pln=(rn(),te),NP=ue}function QD(){QD=$,Ndn=new RIn,xdn=new EPn}function Gwe(n){return!n.e&&(n.e=new nn),n.e}function YD(n,e){this.c=n,this.a=e,this.b=e-n}function fIn(n,e,t){this.a=n,this.b=e,this.c=t}function ZD(n,e,t){this.a=n,this.b=e,this.c=t}function ZW(n,e,t){this.a=n,this.b=e,this.c=t}function nV(n,e,t){this.a=n,this.b=e,this.c=t}function hIn(n,e,t){this.a=n,this.b=e,this.c=t}function lIn(n,e,t){this.a=n,this.b=e,this.c=t}function Jl(n,e,t){this.e=n,this.a=e,this.c=t}function aIn(n,e,t){Go(),vJ.call(this,n,e,t)}function nN(n,e,t){Go(),eJ.call(this,n,e,t)}function eV(n,e,t){Go(),eJ.call(this,n,e,t)}function tV(n,e,t){Go(),eJ.call(this,n,e,t)}function dIn(n,e,t){Go(),nN.call(this,n,e,t)}function iV(n,e,t){Go(),nN.call(this,n,e,t)}function bIn(n,e,t){Go(),iV.call(this,n,e,t)}function wIn(n,e,t){Go(),eV.call(this,n,e,t)}function gIn(n,e,t){Go(),tV.call(this,n,e,t)}function eN(n){sC.call(this,n.d,n.c,n.a,n.b)}function rV(n){sC.call(this,n.d,n.c,n.a,n.b)}function cV(n){this.d=n,V9n(this),this.b=qge(n.d)}function Uwe(n){return y4(),De((M$n(),jse),n)}function R7(n,e){return Re(n),Re(e),new MMn(n,e)}function jp(n,e){return Re(n),Re(e),new IIn(n,e)}function zwe(n,e){return Re(n),Re(e),new PIn(n,e)}function Xwe(n,e){return Re(n),Re(e),new DMn(n,e)}function tN(n){return we(n.b!=0),Qo(n,n.a.a)}function Wwe(n){return we(n.b!=0),Qo(n,n.c.b)}function Vwe(n){return!n.c&&(n.c=new zv),n.c}function v3(n){var e;return e=new nn,Tx(e,n),e}function Jwe(n){var e;return e=new si,Tx(e,n),e}function pIn(n){var e;return e=new oz,Bx(e,n),e}function B7(n){var e;return e=new xt,Bx(e,n),e}function u(n,e){return $6(n==null||RF(n,e)),n}function Qwe(n,e,t){gPn.call(this,e,t),this.a=n}function vIn(n,e){this.c=n,this.b=e,this.a=!1}function mIn(){this.a=";,;",this.b="",this.c=""}function kIn(n,e,t){this.b=n,OTn.call(this,e,t)}function uV(n,e,t){this.c=n,lM.call(this,e,t)}function oV(n,e,t){h3.call(this,n,e),this.b=t}function sV(n,e,t){nen(t,0,n,e,t.length,!1)}function $h(n,e,t,i,r){n.b=e,n.c=t,n.d=i,n.a=r}function fV(n,e,t,i,r){n.d=e,n.c=t,n.a=i,n.b=r}function Ywe(n,e){e&&(n.b=e,n.a=(X1(e),e.a))}function K7(n,e){if(!n)throw C(new Yn(e))}function Ep(n,e){if(!n)throw C(new $r(e))}function hV(n,e){if(!n)throw C(new SEn(e))}function Zwe(n,e){return iM(),Ic(n.d.p,e.d.p)}function nge(n,e){return El(),Tt(n.e.b,e.e.b)}function ege(n,e){return El(),Tt(n.e.a,e.e.a)}function tge(n,e){return Ic(xIn(n.d),xIn(e.d))}function ZM(n,e){return e&&EC(n,e.d)?e:null}function ige(n,e){return e==(rn(),te)?n.c:n.d}function lV(n){return Y1(t2e(nc(n)?ps(n):n))}function rge(n){return new V(n.c+n.b,n.d+n.a)}function yIn(n){return n!=null&&!EF(n,N9,x9)}function cge(n,e){return(ZRn(n)<<4|ZRn(e))&bi}function jIn(n,e,t,i,r){n.c=e,n.d=t,n.b=i,n.a=r}function aV(n){var e,t;e=n.b,t=n.c,n.b=t,n.c=e}function dV(n){var e,t;t=n.d,e=n.a,n.d=e,n.a=t}function uge(n,e){var t;return t=n.c,UQ(n,e),t}function bV(n,e){return e<0?n.g=-1:n.g=e,n}function nC(n,e){return b6e(n),n.a*=e,n.b*=e,n}function EIn(n,e,t){pFn.call(this,e,t),this.d=n}function _7(n,e,t){DX.call(this,n,e),this.c=t}function eC(n,e,t){DX.call(this,n,e),this.c=t}function wV(n){XW(),IE.call(this),this.ci(n)}function MIn(){L3(),A2e.call(this,(B1(),Ds))}function CIn(n){return lt(),++Vt,new Rh(0,n)}function TIn(){TIn=$,_G=(Fn(),new aL(HK))}function tC(){tC=$,new TZ((TL(),n_),(CL(),ZK))}function AIn(){AIn=$,Nun=_(Yi,Q,17,256,0,1)}function SIn(){this.b=x(K(un((Ws(),D_))))}function iN(n){this.b=n,this.a=Va(this.b.a).Od()}function IIn(n,e){this.b=n,this.a=e,iL.call(this)}function PIn(n,e){this.a=n,this.b=e,iL.call(this)}function OIn(n,e,t){this.a=n,bg.call(this,e,t)}function LIn(n,e,t){this.a=n,bg.call(this,e,t)}function m3(n,e,t){var i;i=new _b(t),mf(n,e,i)}function gV(n,e,t){var i;return i=n[e],n[e]=t,i}function iC(n){var e;return e=n.slice(),mx(e,n)}function rC(n){var e;return e=n.n,n.a.b+e.d+e.a}function DIn(n){var e;return e=n.n,n.e.b+e.d+e.a}function pV(n){var e;return e=n.n,n.e.a+e.b+e.c}function vV(n){n.a.b=n.b,n.b.a=n.a,n.a=n.b=null}function We(n,e){return Xt(n,e,n.c.b,n.c),!0}function oge(n){return n.a?n.a:ON(n)}function sge(n){return Op(),Gh(n)==Rt(ra(n))}function fge(n){return Op(),ra(n)==Rt(Gh(n))}function a0(n,e){return O5(n,new h3(e.a,e.b))}function hge(n,e){return CC(),zF(n,e),new eOn(n,e)}function lge(n,e){return n.c=e)throw C(new bz)}function Bb(n,e){return $k(n,(ie(e),new t7n(e)))}function Cp(n,e){return $k(n,(ie(e),new i7n(e)))}function vPn(n,e,t){return $xe(n,u(e,12),u(t,12))}function mPn(n){return $u(),u(n,12).g.c.length!=0}function kPn(n){return $u(),u(n,12).e.c.length!=0}function Vge(n,e){return Kp(),Tt(e.a.o.a,n.a.o.a)}function Jge(n,e){(e.Bb&Ac)!=0&&!n.a.o&&(n.a.o=e)}function Qge(n,e){e.Ug("General 'Rotator",1),lNe(n)}function Yge(n,e,t){e.qf(t,x(K(se(n.b,t)))*n.a)}function yPn(n,e,t){return Ug(),z3(n,e)&&z3(n,t)}function _6(n){return Ju(),!n.Hc(Kl)&&!n.Hc(Pa)}function Zge(n){return n.e?cQ(n.e):null}function H6(n){return nc(n)?""+n:CGn(n)}function $V(n){var e;for(e=n;e.f;)e=e.f;return e}function n2e(n,e,t){return zt(e,0,EV(e[0],t[0])),e}function Ql(n,e,t,i){var r;r=n.i,r.i=e,r.a=t,r.b=i}function G(n,e,t,i){hi.call(this,n,e,t),this.b=i}function Di(n,e,t,i,r){px.call(this,n,e,t,i,r,-1)}function q6(n,e,t,i,r){fk.call(this,n,e,t,i,r,-1)}function vC(n,e,t,i){_7.call(this,n,e,t),this.b=i}function jPn(n){mTn.call(this,n,!1),this.a=!1}function EPn(){YCn.call(this,"LOOKAHEAD_LAYOUT",1)}function MPn(n){this.b=n,vp.call(this,n),IAn(this)}function CPn(n){this.b=n,I7.call(this,n),PAn(this)}function Kb(n,e,t){this.a=n,kp.call(this,e,t,5,6)}function RV(n,e,t,i){this.b=n,hi.call(this,e,t,i)}function TPn(n,e){this.b=n,L9n.call(this,n.b),this.a=e}function APn(n){this.a=hKn(n.a),this.b=new Uu(n.b)}function BV(n,e){p0(),O1e.call(this,n,_T(new Gu(e)))}function mC(n,e){return lt(),++Vt,new nJ(n,e,0)}function gN(n,e){return lt(),++Vt,new nJ(6,n,e)}function Wi(n,e){for(ie(e);n.Ob();)e.Cd(n.Pb())}function uu(n,e){return Fi(e)?BN(n,e):!!Er(n.f,e)}function pN(n,e){return e.Vh()?ea(n.b,u(e,54)):e}function e2e(n,e){return On(n.substr(0,e.length),e)}function Bh(n){return new he(new uW(n.a.length,n.a))}function kC(n){return new V(n.c+n.b/2,n.d+n.a/2)}function t2e(n){return cu(~n.l&so,~n.m&so,~n.h&Dl)}function vN(n){return typeof n===yy||typeof n===dR}function zu(n){n.f=new XTn(n),n.i=new WTn(n),++n.g}function SPn(n){if(!n)throw C(new uc);return n.d}function Tp(n){var e;return e=a5(n),we(e!=null),e}function i2e(n){var e;return e=m9e(n),we(e!=null),e}function y3(n,e){var t;return t=n.a.gc(),nQ(e,t),t-e}function pi(n,e){var t;return t=n.a.zc(e,n),t==null}function q7(n,e){return n.a.zc(e,(Wn(),ga))==null}function KV(n){return new Pn(null,s2e(n,n.length))}function _V(n,e,t){return VUn(n,u(e,42),u(t,176))}function Ap(n,e,t){return Us(n.a,e),gV(n.b,e.g,t)}function r2e(n,e,t){k3(t,n.a.c.length),Vo(n.a,t,e)}function R(n,e,t,i){TRn(e,t,n.length),c2e(n,e,t,i)}function c2e(n,e,t,i){var r;for(r=e;r0?y.Math.log(n/e):-100}function PPn(n,e){return Pc(n,e)<0?-1:Pc(n,e)>0?1:0}function G7(n,e){yAn(n,L(e,160)?e:u(e,2036).Rl())}function UV(n,e){if(n==null)throw C(new op(e))}function s2e(n,e){return h6e(e,n.length),new $In(n,e)}function zV(n,e){return e?zi(n,e):!1}function f2e(){return qE(),S(T(QQn,1),z,549,0,[i_])}function U6(n){return n.e==0?n:new Qa(-n.e,n.d,n.a)}function h2e(n,e){return Tt(n.c.c+n.c.b,e.c.c+e.c.b)}function U7(n,e){Xt(n.d,e,n.b.b,n.b),++n.a,n.c=null}function OPn(n,e){return n.c?OPn(n.c,e):en(n.b,e),n}function l2e(n,e,t){var i;return i=Wb(n,e),ex(n,e,t),i}function LPn(n,e,t){var i;for(i=0;i=n.g}function zt(n,e,t){return t0e(t==null||JPe(n,t)),n[e]=t}function QV(n,e){return Zn(e,n.length+1),n.substr(e)}function SN(n,e){for(ie(e);n.c=n?new Wz:N6e(n-1)}function Vi(n){return!n.a&&n.c?n.c.b:n.a}function tJ(n){return L(n,616)?n:new QOn(n)}function X1(n){n.c?X1(n.c):(ta(n),n.d=!0)}function W6(n){n.c?n.c.$e():(n.d=!0,YAe(n))}function YPn(n){n.b=!1,n.c=!1,n.d=!1,n.a=!1}function ZPn(n){var e,t;return e=n.c.i.c,t=n.d.i.c,e==t}function P2e(n,e){var t;t=n.Ih(e),t>=0?n.ki(t):Unn(n,e)}function nOn(n,e){n.c<0||n.b.b0;)n=n<<1|(n<0?1:0);return n}function sOn(n,e){var t;return t=new _c(n),Xn(e.c,t),t}function fOn(n,e){n.u.Hc((Ju(),Kl))&&xCe(n,e),Z4e(n,e)}function Cc(n,e){return F(n)===F(e)||n!=null&&wt(n,e)}function Lr(n,e){return sN(n.a,e)?n.b[u(e,22).g]:null}function q2e(){return tM(),S(T(Mon,1),z,489,0,[T_])}function G2e(){return cM(),S(T(J1n,1),z,490,0,[Yq])}function U2e(){return uM(),S(T($ue,1),z,558,0,[Zq])}function z2e(){return f6(),S(T(pan,1),z,539,0,[Gj])}function TC(n){return!n.n&&(n.n=new G(xr,n,1,7)),n.n}function PN(n){return!n.c&&(n.c=new G(eo,n,9,9)),n.c}function uJ(n){return!n.c&&(n.c=new Kn(ve,n,5,8)),n.c}function X2e(n){return!n.b&&(n.b=new Kn(ve,n,4,7)),n.b}function z7(n){return n.j.c.length=0,sJ(n.c),C0e(n.a),n}function T3(n){return n.e==em&&ale(n,_7e(n.g,n.b)),n.e}function X7(n){return n.f==em&&ble(n,Lye(n.g,n.b)),n.f}function ut(n,e,t,i){return L$n(n,e,t,!1),HT(n,i),n}function hOn(n,e){this.b=n,mN.call(this,n,e),IAn(this)}function lOn(n,e){this.b=n,GW.call(this,n,e),PAn(this)}function V6(n){this.d=n,this.a=this.d.b,this.b=this.d.c}function oJ(n,e){this.b=n,this.c=e,this.a=new lp(this.b)}function nr(n,e){return Zn(e,n.length),n.charCodeAt(e)}function W2e(n,e){WY(n,x(Ml(e,"x")),x(Ml(e,"y")))}function V2e(n,e){WY(n,x(Ml(e,"x")),x(Ml(e,"y")))}function pt(n,e){return ta(n),new Pn(n,new vQ(e,n.a))}function Xr(n,e){return ta(n),new Pn(n,new iQ(e,n.a))}function Hb(n,e){return ta(n),new jW(n,new kNn(e,n.a))}function AC(n,e){return ta(n),new EW(n,new yNn(e,n.a))}function J2e(n,e){return new xOn(u(Re(n),50),u(Re(e),50))}function Q2e(n,e){return Tt(n.d.c+n.d.b/2,e.d.c+e.d.b/2)}function aOn(n,e,t){t.a?fu(n,e.b-n.f/2):su(n,e.a-n.g/2)}function Y2e(n,e){return Tt(n.g.c+n.g.b/2,e.g.c+e.g.b/2)}function Z2e(n,e){return Qz(),Tt((ie(n),n),(ie(e),e))}function npe(n){return n!=null&&u7(TO,n.toLowerCase())}function sJ(n){var e;for(e=n.Kc();e.Ob();)e.Pb(),e.Qb()}function Mg(n){var e;return e=n.b,!e&&(n.b=e=new M9n(n)),e}function ON(n){var e;return e=R6e(n),e||null}function dOn(n,e){var t,i;return t=n/e,i=Mi(t),t>i&&++i,i}function epe(n,e,t){var i;i=u(n.d.Kb(t),159),i&&i.Nb(e)}function tpe(n,e,t){rLe(n.a,t),x5e(t),CTe(n.b,t),MLe(e,t)}function SC(n,e,t,i){this.a=n,this.c=e,this.b=t,this.d=i}function fJ(n,e,t,i){this.c=n,this.b=e,this.a=t,this.d=i}function bOn(n,e,t,i){this.c=n,this.b=e,this.d=t,this.a=i}function zo(n,e,t,i){this.c=n,this.d=e,this.b=t,this.a=i}function wOn(n,e,t,i){this.a=n,this.d=e,this.c=t,this.b=i}function LN(n,e,t,i){this.a=n,this.e=e,this.d=t,this.c=i}function gOn(n,e,t,i){this.a=n,this.c=e,this.d=t,this.b=i}function DN(n,e,t){this.a=Ftn,this.d=n,this.b=e,this.c=t}function Ip(n,e,t,i){Le.call(this,n,e),this.a=t,this.b=i}function pOn(n,e){this.d=(ie(n),n),this.a=16449,this.c=e}function vOn(n){this.a=new nn,this.e=_(Oe,Q,53,n,0,2)}function ipe(n){n.Ug("No crossing minimization",1),n.Vg()}function mOn(){oc.call(this,"There is no more element.")}function kOn(n,e,t,i){this.a=n,this.b=e,this.c=t,this.d=i}function yOn(n,e,t,i){this.a=n,this.b=e,this.c=t,this.d=i}function Ya(n,e,t,i){this.e=n,this.a=e,this.c=t,this.d=i}function jOn(n,e,t,i){this.a=n,this.c=e,this.d=t,this.b=i}function EOn(n,e,t,i){Go(),jNn.call(this,e,t,i),this.a=n}function MOn(n,e,t,i){Go(),jNn.call(this,e,t,i),this.a=n}function NN(n,e,t){var i,r;return i=jtn(n),r=e.ti(t,i),r}function wl(n){var e,t;return t=(e=new Vd,e),$3(t,n),t}function xN(n){var e,t;return t=(e=new Vd,e),Cnn(t,n),t}function rpe(n,e){var t;return t=se(n.f,e),rY(e,t),null}function COn(n){return!n.b&&(n.b=new G(ii,n,12,3)),n.b}function TOn(n){return $6(n==null||vN(n)&&n.Tm!==V2),n}function IC(n){return n.n&&(n.e!==AXn&&n.je(),n.j=null),n}function A3(n){if(co(n.d),n.d.d!=n.c)throw C(new Ho)}function hJ(n){return we(n.b0&&r_n(this)}function AOn(n,e){this.a=n,i0e.call(this,n,u(n.d,15).fd(e))}function cpe(n,e){return Tt(Nu(n)*po(n),Nu(e)*po(e))}function upe(n,e){return Tt(Nu(n)*po(n),Nu(e)*po(e))}function ope(n){return K0(n)&&ln(hn(X(n,(fn(),Dd))))}function spe(n,e){return Dn(n,u(m(e,(fn(),ym)),17),e)}function fpe(n,e){return u(m(n,(J(),Mv)),15).Fc(e),e}function lJ(n,e){return n.b=e.b,n.c=e.c,n.d=e.d,n.a=e.a,n}function SOn(n,e,t,i){this.b=n,this.c=i,NM.call(this,e,t)}function hpe(n,e,t){n.i=0,n.e=0,e!=t&&lRn(n,e,t)}function lpe(n,e,t){n.i=0,n.e=0,e!=t&&aRn(n,e,t)}function ape(n,e,t){return s6(),B9e(u(se(n.e,e),529),t)}function Pp(n){var e;return e=n.f,e||(n.f=new o3(n,n.c))}function IOn(n,e){return Ng(n.j,e.s,e.c)+Ng(e.e,n.s,n.c)}function POn(n,e){n.e&&!n.e.a&&(pjn(n.e,e),POn(n.e,e))}function OOn(n,e){n.d&&!n.d.a&&(pjn(n.d,e),OOn(n.d,e))}function dpe(n,e){return-Tt(Nu(n)*po(n),Nu(e)*po(e))}function bpe(n){return u(n.ld(),149).Pg()+":"+tc(n.md())}function LOn(){b$(this,new EU),this.wb=(U1(),Vn),r3()}function DOn(n){this.b=new nn,vi(this.b,this.b),this.a=n}function aJ(n,e){new xt,this.a=new Ou,this.b=n,this.c=e}function y0(){y0=$,zun=new ZG,l_=new ZG,Xun=new mbn}function Fn(){Fn=$,rr=new bbn,Zh=new gbn,bI=new pbn}function dJ(){dJ=$,PYn=new _bn,LYn=new SV,OYn=new Hbn}function Op(){Op=$,jI=new nn,P_=new je,I_=new nn}function PC(n,e){if(n==null)throw C(new op(e));return n}function OC(n){return!n.a&&(n.a=new G(ft,n,10,11)),n.a}function jt(n){return!n.q&&(n.q=new G(Ls,n,11,10)),n.q}function q(n){return!n.s&&(n.s=new G(Tu,n,21,17)),n.s}function wpe(n){return Re(n),kKn(new he(de(n.a.Kc(),new zn)))}function gpe(n,e){return mo(n),mo(e),AEn(u(n,22),u(e,22))}function Za(n,e,t){var i,r;i=zW(t),r=new OE(i),mf(n,e,r)}function $N(n,e,t,i,r,c){fk.call(this,n,e,t,i,r,c?-2:-1)}function NOn(n,e,t,i){DX.call(this,e,t),this.b=n,this.a=i}function xOn(n,e){$le.call(this,new wN(n)),this.a=n,this.b=e}function bJ(n){this.b=n,this.c=n,n.e=null,n.c=null,this.a=1}function ppe(n){_s();var e;e=u(n.g,10),e.n.a=n.d.c+e.d.b}function S3(){S3=$;var n,e;e=!M7e(),n=new sbn,u_=e?new W2:n}function RN(n){return Fn(),L(n,59)?new NL(n):new HM(n)}function LC(n){return L(n,16)?new R6(u(n,16)):Jwe(n.Kc())}function vpe(n){return new LAn(n,n.e.Rd().gc()*n.c.Rd().gc())}function mpe(n){return new DAn(n,n.e.Rd().gc()*n.c.Rd().gc())}function wJ(n){return n&&n.hashCode?n.hashCode():h0(n)}function BN(n,e){return e==null?!!Er(n.f,null):xge(n.i,e)}function kpe(n,e){var t;return t=QX(n.a,e),t&&(e.d=null),t}function FOn(n,e,t){return n.f?n.f.ef(e,t):!1}function W7(n,e,t,i){zt(n.c[e.g],t.g,i),zt(n.c[t.g],e.g,i)}function KN(n,e,t,i){zt(n.c[e.g],e.g,t),zt(n.b[e.g],e.g,i)}function ype(n,e,t){return x(K(t.a))<=n&&x(K(t.b))>=e}function $On(n,e){this.g=n,this.d=S(T(el,1),p1,10,0,[e])}function ROn(n){this.c=n,this.b=new Xl(u(Re(new qbn),50))}function BOn(n){this.c=n,this.b=new Xl(u(Re(new Hwn),50))}function KOn(n){this.b=n,this.a=new Xl(u(Re(new ywn),50))}function _On(){this.b=new si,this.d=new xt,this.e=new wz}function gJ(){this.c=new _i,this.d=new _i,this.e=new _i}function j0(){this.a=new Ou,this.b=(So(3,gw),new Zc(3))}function Yl(n,e){this.e=n,this.a=Ii,this.b=_Gn(e),this.c=e}function DC(n){this.c=n.c,this.d=n.d,this.b=n.b,this.a=n.a}function HOn(n,e,t,i,r,c){this.a=n,Lx.call(this,e,t,i,r,c)}function qOn(n,e,t,i,r,c){this.a=n,Lx.call(this,e,t,i,r,c)}function W1(n,e,t,i,r,c,s){return new ix(n.e,e,t,i,r,c,s)}function jpe(n,e,t){return t>=0&&On(n.substr(t,e.length),e)}function GOn(n,e){return L(e,149)&&On(n.b,u(e,149).Pg())}function Epe(n,e){return n.a?e.Gh().Kc():u(e.Gh(),71).Ii()}function UOn(n,e){var t;return t=n.b.Qc(e),BDn(t,n.b.gc()),t}function V7(n,e){if(n==null)throw C(new op(e));return n}function Wr(n){return n.u||(io(n),n.u=new MSn(n,n)),n.u}function _N(n){this.a=(Fn(),L(n,59)?new NL(n):new HM(n))}function vu(n){var e;return e=u(Qn(n,16),29),e||n.ii()}function NC(n,e){var t;return t=za(n.Rm),e==null?t:t+": "+e}function Xo(n,e,t){return Ui(e,t,n.length),n.substr(e,t-e)}function zOn(n,e){XM.call(this),AQ(this),this.a=n,this.c=e}function Mpe(n){n&&NC(n,n.ie())}function Cpe(n){zE(),y.setTimeout(function(){throw n},0)}function Tpe(){return tA(),S(T(eon,1),z,436,0,[m_,non])}function Ape(){return fT(),S(T(ion,1),z,435,0,[ton,k_])}function Spe(){return hT(),S(T(Oon,1),z,432,0,[O_,EI])}function Ipe(){return U3(),S(T(One,1),z,517,0,[wj,X_])}function Ppe(){return GC(),S(T(afn,1),z,429,0,[EH,lfn])}function Ope(){return mk(),S(T(Jsn,1),z,428,0,[ZI,Vsn])}function Lpe(){return eT(),S(T(Hsn,1),z,431,0,[_sn,sH])}function Dpe(){return pk(),S(T(rln,1),z,430,0,[rq,cq])}function Npe(){return n5(),S(T(jre,1),z,531,0,[r9,i9])}function xpe(){return CT(),S(T(n1n,1),z,501,0,[qP,P2])}function Fpe(){return dh(),S(T(Ire,1),z,523,0,[pb,M1])}function $pe(){return Df(),S(T(Ore,1),z,522,0,[Rd,Qf])}function Rpe(){return pf(),S(T(zre,1),z,528,0,[Gw,Ea])}function Bpe(){return ak(),S(T(Zsn,1),z,488,0,[Ysn,eP])}function Kpe(){return VC(),S(T(q1n,1),z,491,0,[Vq,H1n])}function _pe(){return zx(),S(T(V1n,1),z,492,0,[X1n,W1n])}function Hpe(){return _C(),S(T(Zln,1),z,433,0,[Aq,Yln])}function qpe(){return iT(),S(T(t1n,1),z,434,0,[e1n,Dq])}function Gpe(){return M0(),S(T(Zre,1),z,465,0,[Ma,A2])}function Upe(){return ok(),S(T(Q1n,1),z,438,0,[nG,nO])}function zpe(){return Ik(),S(T(man,1),z,437,0,[tO,van])}function Xpe(){return QD(),S(T(pO,1),z,347,0,[Ndn,xdn])}function xC(n,e,t,i){return t>=0?n.Uh(e,t,i):n.Ch(null,t,i)}function J7(n){return n.b.b==0?n.a.sf():tN(n.b)}function Wpe(n){if(n.p!=5)throw C(new Pu);return $e(n.f)}function Vpe(n){if(n.p!=5)throw C(new Pu);return $e(n.k)}function pJ(n){return F(n.a)===F((Gx(),RG))&&XLe(n),n.a}function Jpe(n,e){n.b=e,n.c>0&&n.b>0&&(n.g=fC(n.c,n.b,n.a))}function Qpe(n,e){n.c=e,n.c>0&&n.b>0&&(n.g=fC(n.c,n.b,n.a))}function XOn(n,e){Jhe(this,new V(n.a,n.b)),Qhe(this,B7(e))}function E0(){Rle.call(this,new hp(Vb(12))),tW(!0),this.a=2}function HN(n,e,t){lt(),Wd.call(this,n),this.b=e,this.a=t}function vJ(n,e,t){Go(),$E.call(this,e),this.a=n,this.b=t}function WOn(n){var e;e=n.c.d.b,n.b=e,n.a=n.c.d,e.a=n.c.d.b=n}function Ype(n){return n.b==0?null:(we(n.b!=0),Qo(n,n.a.a))}function Hc(n,e){return e==null?zr(Er(n.f,null)):d6(n.i,e)}function VOn(n,e,t,i,r){return new g$(n,(x3(),w_),e,t,i,r)}function FC(n,e){return FDn(e),j6e(n,_(Oe,Ye,28,e,15,1),e)}function $C(n,e){return PC(n,"set1"),PC(e,"set2"),new RMn(n,e)}function Zpe(n,e){var t=c_[n.charCodeAt(0)];return t??n}function JOn(n,e){var t,i;return t=e,i=new GO,Ezn(n,t,i),i.d}function qN(n,e,t,i){var r;r=new ASn,e.a[t.g]=r,Ap(n.b,i,r)}function nve(n,e){var t;return t=m6e(n.f,e),dt(zM(t),n.f.d)}function Q7(n){var e;P6e(n.a),iAn(n.a),e=new NE(n.a),rZ(e)}function eve(n,e){OGn(n,!0),ou(n.e.Rf(),new JW(n,!0,e))}function tve(n,e){return Op(),n==Rt(Gh(e))||n==Rt(ra(e))}function ive(n,e){return El(),u(m(e,(pc(),Lh)),17).a==n}function Mi(n){return Math.max(Math.min(n,at),-2147483648)|0}function QOn(n){this.a=u(Re(n),277),this.b=(Fn(),new fW(n))}function YOn(n,e,t){this.i=new nn,this.b=n,this.g=e,this.a=t}function mJ(n,e,t){this.a=new nn,this.e=n,this.f=e,this.c=t}function RC(n,e,t){this.c=new nn,this.e=n,this.f=e,this.b=t}function ZOn(n){XM.call(this),AQ(this),this.a=n,this.c=!0}function rve(n){function e(){}return e.prototype=n||{},new e}function cve(n){if(n.Ae())return null;var e=n.n;return sI[e]}function Y7(n){return n.Db>>16!=3?null:u(n.Cb,27)}function Lf(n){return n.Db>>16!=9?null:u(n.Cb,27)}function nLn(n){return n.Db>>16!=6?null:u(n.Cb,74)}function M0(){M0=$,Ma=new yX(uv,0),A2=new yX(ov,1)}function dh(){dh=$,pb=new vX(ov,0),M1=new vX(uv,1)}function Df(){Df=$,Rd=new mX(ZR,0),Qf=new mX("UP",1)}function eLn(){eLn=$,YQn=Ne((qE(),S(T(QQn,1),z,549,0,[i_])))}function tLn(n){var e;return e=new JE(Vb(n.length)),pY(e,n),e}function iLn(n,e){return n.b+=e.b,n.c+=e.c,n.d+=e.d,n.a+=e.a,n}function uve(n,e){return q$n(n,e)?(BFn(n),!0):!1}function gl(n,e){if(e==null)throw C(new tp);return T7e(n,e)}function Z7(n,e){var t;t=n.q.getHours(),n.q.setDate(e),U5(n,t)}function kJ(n,e,t){var i;i=n.Ih(e),i>=0?n.bi(i,t):ven(n,e,t)}function rLn(n,e){var t;return t=n.Ih(e),t>=0?n.Wh(t):j$(n,e)}function cLn(n,e){var t;for(Re(e),t=n.a;t;t=t.c)e.Yd(t.g,t.i)}function GN(n,e,t){var i;i=fRn(n,e,t),n.b=new AT(i.c.length)}function Cg(n,e,t){BC(),n&&ct(xG,n,e),n&&ct(aE,n,t)}function ove(n,e){return YM(),Wn(),u(e.a,17).a0}function yJ(n){var e;return e=n.d,e=n.bj(n.f),Se(n,e),e.Ob()}function uLn(n,e){var t;return t=new CV(e),O_n(t,n),new Uu(t)}function hve(n){if(n.p!=0)throw C(new Pu);return C6(n.f,0)}function lve(n){if(n.p!=0)throw C(new Pu);return C6(n.k,0)}function oLn(n){return n.Db>>16!=7?null:u(n.Cb,241)}function I3(n){return n.Db>>16!=6?null:u(n.Cb,241)}function sLn(n){return n.Db>>16!=7?null:u(n.Cb,167)}function Rt(n){return n.Db>>16!=11?null:u(n.Cb,27)}function qb(n){return n.Db>>16!=17?null:u(n.Cb,29)}function fLn(n){return n.Db>>16!=3?null:u(n.Cb,155)}function jJ(n){var e;return ta(n),e=new si,pt(n,new w7n(e))}function hLn(n,e){var t=n.a=n.a||[];return t[e]||(t[e]=n.ve(e))}function ave(n,e){var t;t=n.q.getHours(),n.q.setMonth(e),U5(n,t)}function lLn(n,e){KM(this),this.f=e,this.g=n,IC(this),this.je()}function aLn(n,e){this.a=n,this.c=Xi(this.a),this.b=new DC(e)}function dLn(n,e,t){this.a=e,this.c=n,this.b=(Re(t),new Uu(t))}function bLn(n,e,t){this.a=e,this.c=n,this.b=(Re(t),new Uu(t))}function wLn(n){this.a=n,this.b=_(mre,Q,2043,n.e.length,0,2)}function gLn(){this.a=new sh,this.e=new si,this.g=0,this.i=0}function BC(){BC=$,xG=new je,aE=new je,uae(gYn,new r6n)}function pLn(){pLn=$,ire=xu(new li,(er(),Yr),(fr(),gj))}function EJ(){EJ=$,rre=xu(new li,(er(),Yr),(fr(),gj))}function vLn(){vLn=$,ure=xu(new li,(er(),Yr),(fr(),gj))}function mLn(){mLn=$,Mre=Qe(new li,(er(),Yr),(fr(),F8))}function Mo(){Mo=$,Are=Qe(new li,(er(),Yr),(fr(),F8))}function kLn(){kLn=$,Sre=Qe(new li,(er(),Yr),(fr(),F8))}function zN(){zN=$,Dre=Qe(new li,(er(),Yr),(fr(),F8))}function J6(n,e,t,i,r,c){return new yl(n.e,e,n.Lj(),t,i,r,c)}function Rr(n,e,t){return e==null?tu(n.f,null,t):N0(n.i,e,t)}function ur(n,e){n.c&&mu(n.c.g,n),n.c=e,n.c&&en(n.c.g,n)}function qi(n,e){n.c&&mu(n.c.a,n),n.c=e,n.c&&en(n.c.a,n)}function fc(n,e){n.i&&mu(n.i.j,n),n.i=e,n.i&&en(n.i.j,n)}function Bi(n,e){n.d&&mu(n.d.e,n),n.d=e,n.d&&en(n.d.e,n)}function XN(n,e){n.a&&mu(n.a.k,n),n.a=e,n.a&&en(n.a.k,n)}function WN(n,e){n.b&&mu(n.b.f,n),n.b=e,n.b&&en(n.b.f,n)}function yLn(n,e){M2e(n,n.b,n.c),u(n.b.b,68),e&&u(e.b,68).b}function dve(n,e){return Tt(u(n.c,65).c.e.b,u(e.c,65).c.e.b)}function bve(n,e){return Tt(u(n.c,65).c.e.a,u(e.c,65).c.e.a)}function wve(n){return hF(),Wn(),u(n.a,86).d.e!=0}function KC(n,e){L(n.Cb,184)&&(u(n.Cb,184).tb=null),nu(n,e)}function VN(n,e){L(n.Cb,90)&&sw(io(u(n.Cb,90)),4),nu(n,e)}function gve(n,e){VY(n,e),L(n.Cb,90)&&sw(io(u(n.Cb,90)),2)}function pve(n,e){var t,i;t=e.c,i=t!=null,i&&Sp(n,new _b(e.c))}function jLn(n){var e,t;return t=(r3(),e=new Vd,e),$3(t,n),t}function ELn(n){var e,t;return t=(r3(),e=new Vd,e),$3(t,n),t}function MLn(n){for(var e;;)if(e=n.Pb(),!n.Ob())return e}function vve(n,e,t){return en(n.a,(CC(),zF(e,t),new t0(e,t))),n}function qc(n,e){return yr(),Mx(e)?new cC(e,n):new M7(e,n)}function nk(n){return ph(),Pc(n,0)>=0?ia(n):U6(ia(i1(n)))}function mve(n){var e;return e=u(iC(n.b),9),new Uo(n.a,e,n.c)}function CLn(n,e){var t;return t=u(nw(Pp(n.a),e),16),t?t.gc():0}function TLn(n,e,t){var i;QRn(e,t,n.c.length),i=t-e,Uz(n.c,e,i)}function Zl(n,e,t){QRn(e,t,n.gc()),this.c=n,this.a=e,this.b=t-e}function Lp(n){this.c=new xt,this.b=n.b,this.d=n.c,this.a=n.a}function JN(n){this.a=y.Math.cos(n),this.b=y.Math.sin(n)}function nd(n,e,t,i){this.c=n,this.d=i,XN(this,e),WN(this,t)}function MJ(n,e){Fle.call(this,new hp(Vb(n))),So(e,yXn),this.a=e}function ALn(n,e,t){return new g$(n,(x3(),b_),null,!1,e,t)}function SLn(n,e,t){return new g$(n,(x3(),g_),e,t,null,!1)}function kve(){return Vu(),S(T(Hr,1),z,108,0,[Zun,rc,Cw])}function yve(){return ku(),S(T(_Yn,1),z,472,0,[Cf,va,Qs])}function jve(){return Wu(),S(T(BYn,1),z,471,0,[Ih,pa,Js])}function Eve(){return kf(),S(T(Tw,1),z,237,0,[kc,iu,yc])}function Mve(){return i5(),S(T(zon,1),z,391,0,[x_,N_,F_])}function Cve(){return O0(),S(T(Z_,1),z,372,0,[cb,ma,rb])}function Tve(){return u5(),S(T(Gsn,1),z,322,0,[R8,mj,qsn])}function Ave(){return vT(),S(T(zsn,1),z,351,0,[Usn,YI,fH])}function Sve(){return fd(),S(T(see,1),z,460,0,[aH,wm,w2])}function Ive(){return J3(),S(T(jH,1),z,299,0,[kH,yH,kj])}function Pve(){return jl(),S(T(gee,1),z,311,0,[yj,p2,yv])}function Ove(){return g5(),S(T(Whn,1),z,390,0,[QH,Xhn,IP])}function Lve(){return Mr(),S(T(Jie,1),z,463,0,[n9,Yu,ru])}function Dve(){return LT(),S(T(oln,1),z,387,0,[cln,uq,uln])}function Nve(){return d5(),S(T(sln,1),z,349,0,[sq,oq,Lj])}function xve(){return r4(),S(T(hln,1),z,350,0,[fq,fln,e9])}function Fve(){return pT(),S(T(dln,1),z,352,0,[aln,hq,lln])}function $ve(){return FT(),S(T(bln,1),z,388,0,[lq,Sm,qw])}function Rve(){return P0(),S(T(pre,1),z,464,0,[Dj,t9,DP])}function Nf(n){return lc(S(T(Li,1),Q,8,0,[n.i.n,n.n,n.a]))}function Bve(){return b5(),S(T(Oln,1),z,392,0,[Pln,bq,xj])}function ILn(){ILn=$,Sce=xu(new li,(Vp(),u9),(q5(),yln))}function _C(){_C=$,Aq=new jX("DFS",0),Yln=new jX("BFS",1)}function PLn(n,e,t){var i;i=new h3n,i.b=e,i.a=t,++e.b,en(n.d,i)}function Kve(n,e,t){var i;i=new lr(t.d),dt(i,n),WY(e,i.a,i.b)}function _ve(n,e){EAn(n,$e(Si(b0(e,24),tS)),$e(Si(e,tS)))}function Gb(n,e){if(n<0||n>e)throw C(new Fr(Utn+n+ztn+e))}function $n(n,e){if(n<0||n>=e)throw C(new Fr(Utn+n+ztn+e))}function Zn(n,e){if(n<0||n>=e)throw C(new Lz(Utn+n+ztn+e))}function Nn(n,e){this.b=(ie(n),n),this.a=(e&pw)==0?e|64|mh:e}function CJ(n){var e;return ta(n),e=(y0(),y0(),l_),dT(n,e)}function Hve(n,e,t){var i;return i=W5(n,e,!1),i.b<=e&&i.a<=t}function qve(){return rT(),S(T(z1n,1),z,439,0,[Jq,U1n,G1n])}function Gve(){return UT(),S(T(A1n,1),z,394,0,[T1n,Uq,C1n])}function Uve(){return QT(),S(T(M1n,1),z,445,0,[Kj,XP,Bq])}function zve(){return sA(),S(T(cue,1),z,456,0,[Kq,Hq,_q])}function Xve(){return Dk(),S(T(c1n,1),z,393,0,[GP,i1n,r1n])}function Wve(){return OT(),S(T(E1n,1),z,300,0,[Rq,j1n,y1n])}function Vve(){return Cl(),S(T(Tdn,1),z,346,0,[hO,S1,C9])}function Jve(){return Bk(),S(T(Qq,1),z,444,0,[QP,YP,ZP])}function Qve(){return Bf(),S(T(bdn,1),z,278,0,[xm,Ww,Fm])}function Yve(){return qp(),S(T(Ddn,1),z,280,0,[Ldn,Jw,gO])}function C0(n){return Re(n),L(n,16)?new Uu(u(n,16)):v3(n.Kc())}function TJ(n,e){return n&&n.equals?n.equals(e):F(n)===F(e)}function Si(n,e){return Y1(Gge(nc(n)?ps(n):n,nc(e)?ps(e):e))}function gf(n,e){return Y1(Uge(nc(n)?ps(n):n,nc(e)?ps(e):e))}function QN(n,e){return Y1(zge(nc(n)?ps(n):n,nc(e)?ps(e):e))}function Zve(n,e){var t;return t=(ie(n),n).g,kW(!!t),ie(e),t(e)}function OLn(n,e){var t,i;return i=y3(n,e),t=n.a.fd(i),new FMn(n,t)}function n3e(n){return n.Db>>16!=6?null:u(C$(n),241)}function e3e(n){if(n.p!=2)throw C(new Pu);return $e(n.f)&bi}function t3e(n){if(n.p!=2)throw C(new Pu);return $e(n.k)&bi}function E(n){return we(n.ai?1:0}function xLn(n,e){var t,i;return t=kx(e),i=t,u(se(n.c,i),17).a}function YN(n,e,t){var i;i=n.d[e.p],n.d[e.p]=n.d[t.p],n.d[t.p]=i}function d3e(n,e,t){var i;n.n&&e&&t&&(i=new Vmn,en(n.e,i))}function ZN(n,e){if(pi(n.a,e),e.d)throw C(new oc(GXn));e.d=n}function IJ(n,e){this.a=new nn,this.d=new nn,this.f=n,this.c=e}function FLn(){this.c=new mAn,this.a=new CNn,this.b=new $jn,eCn()}function $Ln(){_p(),this.b=new je,this.a=new je,this.c=new nn}function RLn(n,e,t){this.d=n,this.j=e,this.e=t,this.o=-1,this.p=3}function BLn(n,e,t){this.d=n,this.k=e,this.f=t,this.o=-1,this.p=5}function KLn(n,e,t,i,r,c){IQ.call(this,n,e,t,i,r),c&&(this.o=-2)}function _Ln(n,e,t,i,r,c){PQ.call(this,n,e,t,i,r),c&&(this.o=-2)}function HLn(n,e,t,i,r,c){XJ.call(this,n,e,t,i,r),c&&(this.o=-2)}function qLn(n,e,t,i,r,c){DQ.call(this,n,e,t,i,r),c&&(this.o=-2)}function GLn(n,e,t,i,r,c){WJ.call(this,n,e,t,i,r),c&&(this.o=-2)}function ULn(n,e,t,i,r,c){OQ.call(this,n,e,t,i,r),c&&(this.o=-2)}function zLn(n,e,t,i,r,c){LQ.call(this,n,e,t,i,r),c&&(this.o=-2)}function XLn(n,e,t,i,r,c){VJ.call(this,n,e,t,i,r),c&&(this.o=-2)}function WLn(n,e,t,i){$E.call(this,t),this.b=n,this.c=e,this.d=i}function VLn(n,e){this.f=n,this.a=(L3(),IO),this.c=IO,this.b=e}function JLn(n,e){this.g=n,this.d=(L3(),PO),this.a=PO,this.b=e}function PJ(n,e){!n.c&&(n.c=new Qt(n,0)),zA(n.c,(Mt(),$9),e)}function b3e(n,e){return JTe(n,e,L(e,102)&&(u(e,19).Bb&pr)!=0)}function w3e(n,e){return PPn(Tc(n.q.getTime()),Tc(e.q.getTime()))}function QLn(n){return cN(n.e.Rd().gc()*n.c.Rd().gc(),16,new y9n(n))}function g3e(n){return!!n.u&&Fc(n.u.a).i!=0&&!(n.n&&HF(n.n))}function p3e(n){return!!n.a&&ro(n.a.a).i!=0&&!(n.b&&qF(n.b))}function OJ(n,e){return e==0?!!n.o&&n.o.f!=0:FF(n,e)}function v3e(n,e,t){var i;return i=u(n.Zb().xc(e),16),!!i&&i.Hc(t)}function YLn(n,e,t){var i;return i=u(n.Zb().xc(e),16),!!i&&i.Mc(t)}function ZLn(n,e){var t;return t=1-e,n.a[t]=TT(n.a[t],t),TT(n,e)}function nDn(n,e){var t,i;return i=Si(n,Tr),t=Hs(e,32),gf(t,i)}function eDn(n,e,t){var i;i=(Re(n),new Uu(n)),kye(new dLn(i,e,t))}function ek(n,e,t){var i;i=(Re(n),new Uu(n)),yye(new bLn(i,e,t))}function wc(n,e,t,i,r,c){return L$n(n,e,t,c),KY(n,i),_Y(n,r),n}function tDn(n,e,t,i){return n.a+=""+Xo(e==null?ju:tc(e),t,i),n}function Gi(n,e){this.a=n,zm.call(this,n),Gb(e,n.gc()),this.b=e}function iDn(n){this.a=_(Ii,Gn,1,dY(y.Math.max(8,n))<<1,5,1)}function tk(n){return u(_f(n,_(el,p1,10,n.c.length,0,1)),199)}function bh(n){return u(_f(n,_(q_,gB,18,n.c.length,0,1)),483)}function rDn(n){return n.a?n.e.length==0?n.a.a:n.a.a+(""+n.e):n.c}function Q6(n){for(;n.d>0&&n.a[--n.d]==0;);n.a[n.d++]==0&&(n.e=0)}function cDn(n){return we(n.b.b!=n.d.a),n.c=n.b=n.b.b,--n.a,n.c.c}function m3e(n,e,t){n.a=e,n.c=t,n.b.a.$b(),Eo(n.d),Ab(n.e.a.c,0)}function uDn(n,e){var t;n.e=new jz,t=hw(e),ui(t,n.c),kGn(n,t,0)}function ai(n,e,t,i){var r;r=new gU,r.a=e,r.b=t,r.c=i,We(n.a,r)}function Y(n,e,t,i){var r;r=new gU,r.a=e,r.b=t,r.c=i,We(n.b,r)}function oDn(n,e,t){if(n<0||et)throw C(new Fr(LMe(n,e,t)))}function ik(n,e){if(n<0||n>=e)throw C(new Fr(fCe(n,e)));return n}function k3e(n){if(!("stack"in n))try{throw n}catch{}return n}function Tg(n){return s6(),L(n.g,10)?u(n.g,10):null}function y3e(n){return Mg(n).dc()?!1:(Gae(n,new X9),!0)}function td(n){var e;return nc(n)?(e=n,e==-0?0:e):Fme(n)}function sDn(n,e){return L(e,44)?WF(n.a,u(e,44)):!1}function fDn(n,e){return L(e,44)?WF(n.a,u(e,44)):!1}function hDn(n,e){return L(e,44)?WF(n.a,u(e,44)):!1}function LJ(n){var e;return X1(n),e=new kbn,sg(n.a,new a7n(e)),e}function DJ(){var n,e,t;return e=(t=(n=new Vd,n),t),en(w0n,e),e}function HC(n){var e;return X1(n),e=new ybn,sg(n.a,new d7n(e)),e}function j3e(n,e){return n.a<=n.b?(e.Dd(n.a++),!0):!1}function lDn(n){_x.call(this,n,(x3(),d_),null,!1,null,!1)}function aDn(){aDn=$,mZn=Ne((tM(),S(T(Mon,1),z,489,0,[T_])))}function dDn(){dDn=$,gln=cOn(Z(1),Z(4)),wln=cOn(Z(1),Z(2))}function E3e(n,e){return new ZD(e,N6(Xi(e.e),n,n),(Wn(),!0))}function qC(n){return new Zc((So(n,pR),lT(or(or(5,n),n/10|0))))}function M3e(n){return cN(n.e.Rd().gc()*n.c.Rd().gc(),273,new k9n(n))}function bDn(n){return u(_f(n,_(Sne,yWn,12,n.c.length,0,1)),2042)}function C3e(n){return Mo(),!gr(n)&&!(!gr(n)&&n.c.i.c==n.d.i.c)}function T3e(n,e){return Bp(),u(m(e,(pc(),S2)),17).a>=n.gc()}function Y6(n,e){sxe(e,n),aV(n.d),aV(u(m(n,(fn(),jP)),214))}function nx(n,e){fxe(e,n),dV(n.d),dV(u(m(n,(fn(),jP)),214))}function A3e(n,e,t){n.d&&mu(n.d.e,n),n.d=e,n.d&&d0(n.d.e,t,n)}function S3e(n,e,t){return t.f.c.length>0?_V(n.a,e,t):_V(n.b,e,t)}function I3e(n,e,t){var i;i=z7e();try{return g0e(n,e,t)}finally{y4e(i)}}function T0(n,e){var t,i;return t=gl(n,e),i=null,t&&(i=t.pe()),i}function Z6(n,e){var t,i;return t=gl(n,e),i=null,t&&(i=t.se()),i}function P3(n,e){var t,i;return t=Wb(n,e),i=null,t&&(i=t.se()),i}function pl(n,e){var t,i;return t=gl(n,e),i=null,t&&(i=Lnn(t)),i}function P3e(n,e,t){var i;return i=a4(t),_A(n.g,i,e),_A(n.i,e,t),e}function NJ(n,e,t){this.d=new Ckn(this),this.e=n,this.i=e,this.f=t}function wDn(n,e,t,i){this.e=null,this.c=n,this.d=e,this.a=t,this.b=i}function gDn(n,e,t,i){dAn(this),this.c=n,this.e=e,this.f=t,this.b=i}function xJ(n,e,t,i){this.d=n,this.n=e,this.g=t,this.o=i,this.p=-1}function pDn(n,e,t,i){return L(t,59)?new XAn(n,e,t,i):new xV(n,e,t,i)}function O3(n){return L(n,16)?u(n,16).dc():!n.Kc().Ob()}function vDn(n){if(n.e.g!=n.b)throw C(new Ho);return!!n.c&&n.d>0}function Ee(n){return we(n.b!=n.d.c),n.c=n.b,n.b=n.b.a,++n.a,n.c.c}function FJ(n,e){ie(e),zt(n.a,n.c,e),n.c=n.c+1&n.a.length-1,KKn(n)}function V1(n,e){ie(e),n.b=n.b-1&n.a.length-1,zt(n.a,n.b,e),KKn(n)}function mDn(n){var e;e=n.Gh(),this.a=L(e,71)?u(e,71).Ii():e.Kc()}function O3e(n){return new Nn(g6e(u(n.a.md(),16).gc(),n.a.ld()),16)}function kDn(){kDn=$,Fue=Ne((cM(),S(T(J1n,1),z,490,0,[Yq])))}function yDn(){yDn=$,Rue=Ne((uM(),S(T($ue,1),z,558,0,[Zq])))}function jDn(){jDn=$,toe=Ne((f6(),S(T(pan,1),z,539,0,[Gj])))}function L3e(){return ad(),S(T(Jon,1),z,389,0,[Iw,Von,__,H_])}function D3e(){return x3(),S(T(wI,1),z,304,0,[d_,b_,w_,g_])}function N3e(){return zp(),S(T(bZn,1),z,332,0,[sj,oj,fj,hj])}function x3e(){return A5(),S(T(pZn,1),z,406,0,[lj,mI,kI,aj])}function F3e(){return D0(),S(T(aZn,1),z,417,0,[uj,cj,M_,C_])}function $3e(){return Q3(),S(T(gne,1),z,416,0,[ib,Sw,Aw,h2])}function R3e(){return Kf(),S(T(zne,1),z,421,0,[kv,sm,fm,Y_])}function B3e(){return xT(),S(T(xne,1),z,371,0,[Q_,zI,XI,pj])}function K3e(){return iw(),S(T(ZH,1),z,203,0,[PP,YH,T2,C2])}function _3e(){return wh(),S(T(iln,1),z,284,0,[E1,tln,tq,iq])}function H3e(n){var e;return n.j==(rn(),ye)&&(e=sqn(n),Du(e,ue))}function q3e(n,e){var t;t=e.a,ur(t,e.c.d),Bi(t,e.d.d),Yb(t.a,n.n)}function $J(n,e){var t;return t=u(Rf(n.b,e),67),!t&&(t=new xt),t}function Np(n){return s6(),L(n.g,154)?u(n.g,154):null}function G3e(n){n.a=null,n.e=null,Ab(n.b.c,0),Ab(n.f.c,0),n.c=null}function GC(){GC=$,EH=new wX(K4,0),lfn=new wX("TOP_LEFT",1)}function n5(){n5=$,r9=new pX("UPPER",0),i9=new pX("LOWER",1)}function U3e(n,e){return pp(new V(e.e.a+e.f.a/2,e.e.b+e.f.b/2),n)}function EDn(n,e){return u(wo(Bb(u(kt(n.k,e),15).Oc(),a2)),113)}function MDn(n,e){return u(wo(Cp(u(kt(n.k,e),15).Oc(),a2)),113)}function z3e(){return Vp(),S(T(mln,1),z,405,0,[$P,c9,u9,o9])}function X3e(){return w5(),S(T(Qln,1),z,353,0,[Tq,HP,Cq,Mq])}function W3e(){return aA(),S(T(k1n,1),z,354,0,[$q,v1n,m1n,p1n])}function V3e(){return ko(),S(T(P9,1),z,386,0,[uE,Gd,cE,Vw])}function J3e(){return Po(),S(T(Goe,1),z,291,0,[tE,rl,Aa,eE])}function Q3e(){return Tl(),S(T(TG,1),z,223,0,[CG,nE,$m,xv])}function Y3e(){return XT(),S(T(Bdn,1),z,320,0,[IG,Fdn,Rdn,$dn])}function Z3e(){return $T(),S(T(ose,1),z,415,0,[PG,_dn,Kdn,Hdn])}function n4e(n){return BC(),uu(xG,n)?u(se(xG,n),341).Qg():null}function Wo(n,e,t){return e<0?j$(n,t):u(t,69).wk().Bk(n,n.hi(),e)}function e4e(n,e,t){var i;return i=a4(t),_A(n.j,i,e),ct(n.k,e,t),e}function t4e(n,e,t){var i;return i=a4(t),_A(n.d,i,e),ct(n.e,e,t),e}function CDn(n){var e,t;return e=(R1(),t=new nL,t),n&&OA(e,n),e}function RJ(n){var e;return e=n.aj(n.i),n.i>0&&Rc(n.g,0,e,0,n.i),e}function TDn(n,e){var t;for(t=n.j.c.length;t>24}function r4e(n){if(n.p!=1)throw C(new Pu);return $e(n.k)<<24>>24}function c4e(n){if(n.p!=7)throw C(new Pu);return $e(n.k)<<16>>16}function u4e(n){if(n.p!=7)throw C(new Pu);return $e(n.f)<<16>>16}function Ag(n,e){return e.e==0||n.e==0?O8:(M4(),O$(n,e))}function IDn(n,e){return F(e)===F(n)?"(this Map)":e==null?ju:tc(e)}function o4e(n,e,t){return bN(K(zr(Er(n.f,e))),K(zr(Er(n.f,t))))}function s4e(n,e,t){var i;i=u(se(n.g,t),60),en(n.a.c,new Ei(e,i))}function PDn(n,e,t){n.i=0,n.e=0,e!=t&&(aRn(n,e,t),lRn(n,e,t))}function f4e(n,e,t,i,r){var c;c=hAe(r,t,i),en(e,tCe(r,c)),XEe(n,r,e)}function BJ(n,e,t,i,r){this.i=n,this.a=e,this.e=t,this.j=i,this.f=r}function ODn(n,e){gJ.call(this),this.a=n,this.b=e,en(this.a.b,this)}function LDn(n){this.b=new je,this.c=new je,this.d=new je,this.a=n}function DDn(n,e){var t;return t=new ug,n.Gd(t),t.a+="..",e.Hd(t),t.a}function NDn(n,e){var t;for(t=e;t;)l0(n,t.i,t.j),t=Rt(t);return n}function xDn(n,e,t){var i;return i=a4(t),ct(n.b,i,e),ct(n.c,e,t),e}function vl(n){var e;for(e=0;n.Ob();)n.Pb(),e=or(e,1);return lT(e)}function _h(n,e){yr();var t;return t=u(n,69).vk(),fMe(t,e),t.xl(e)}function h4e(n,e,t){if(t){var i=t.oe();n.a[e]=i(t)}else delete n.a[e]}function KJ(n,e){var t;t=n.q.getHours(),n.q.setFullYear(e+ha),U5(n,t)}function l4e(n,e){return u(e==null?zr(Er(n.f,null)):d6(n.i,e),288)}function _J(n,e){return n==(ee(),ti)&&e==ti?4:n==ti||e==ti?8:32}function UC(n,e,t){return qA(n,e,t,L(e,102)&&(u(e,19).Bb&pr)!=0)}function a4e(n,e,t){return S4(n,e,t,L(e,102)&&(u(e,19).Bb&pr)!=0)}function d4e(n,e,t){return iAe(n,e,t,L(e,102)&&(u(e,19).Bb&pr)!=0)}function HJ(n){n.b!=n.c&&(n.a=_(Ii,Gn,1,8,5,1),n.b=0,n.c=0)}function e5(n){return we(n.a=0&&n.a[t]===e[t];t--);return t<0}function zC(n){var e;return n?new CV(n):(e=new sh,Bx(e,n),e)}function k4e(n,e){var t,i;i=!1;do t=eRn(n,e),i=i|t;while(t);return i}function y4e(n){n&&Xme((Sz(),Cun)),--fI,n&&hI!=-1&&(aae(hI),hI=-1)}function XC(n){gnn(),EAn(this,$e(Si(b0(n,24),tS)),$e(Si(n,tS)))}function KDn(){KDn=$,DYn=Ne((tA(),S(T(eon,1),z,436,0,[m_,non])))}function _Dn(){_Dn=$,NYn=Ne((fT(),S(T(ion,1),z,435,0,[ton,k_])))}function HDn(){HDn=$,FZn=Ne((hT(),S(T(Oon,1),z,432,0,[O_,EI])))}function qDn(){qDn=$,Lne=Ne((U3(),S(T(One,1),z,517,0,[wj,X_])))}function GDn(){GDn=$,vee=Ne((GC(),S(T(afn,1),z,429,0,[EH,lfn])))}function UDn(){UDn=$,oee=Ne((mk(),S(T(Jsn,1),z,428,0,[ZI,Vsn])))}function zDn(){zDn=$,lee=Ne((ak(),S(T(Zsn,1),z,488,0,[Ysn,eP])))}function XDn(){XDn=$,Vie=Ne((pk(),S(T(rln,1),z,430,0,[rq,cq])))}function WDn(){WDn=$,Ere=Ne((n5(),S(T(jre,1),z,531,0,[r9,i9])))}function VDn(){VDn=$,iee=Ne((eT(),S(T(Hsn,1),z,431,0,[_sn,sH])))}function JDn(){JDn=$,Ace=Ne((_C(),S(T(Zln,1),z,433,0,[Aq,Yln])))}function QDn(){QDn=$,Lce=Ne((CT(),S(T(n1n,1),z,501,0,[qP,P2])))}function YDn(){YDn=$,Pre=Ne((dh(),S(T(Ire,1),z,523,0,[pb,M1])))}function ZDn(){ZDn=$,Lre=Ne((Df(),S(T(Ore,1),z,522,0,[Rd,Qf])))}function nNn(){nNn=$,Xre=Ne((pf(),S(T(zre,1),z,528,0,[Gw,Ea])))}function eNn(){eNn=$,nce=Ne((M0(),S(T(Zre,1),z,465,0,[Ma,A2])))}function tNn(){tNn=$,xce=Ne((iT(),S(T(t1n,1),z,434,0,[e1n,Dq])))}function iNn(){iNn=$,Pue=Ne((VC(),S(T(q1n,1),z,491,0,[Vq,H1n])))}function rNn(){rNn=$,Lue=Ne((zx(),S(T(V1n,1),z,492,0,[X1n,W1n])))}function cNn(){cNn=$,Bue=Ne((ok(),S(T(Q1n,1),z,438,0,[nG,nO])))}function uNn(){uNn=$,ioe=Ne((Ik(),S(T(man,1),z,437,0,[tO,van])))}function oNn(){oNn=$,rse=Ne((QD(),S(T(pO,1),z,347,0,[Ndn,xdn])))}function j4e(){return di(),S(T(E9,1),z,88,0,[nh,Zr,Gr,Zf,hs])}function E4e(){return rn(),S(T(vr,1),Lc,64,0,[bc,ne,ue,ye,te])}function M4e(n,e,t){return u(e==null?tu(n.f,null,t):N0(n.i,e,t),288)}function C4e(n){return(n.k==(ee(),ti)||n.k==oi)&&Ot(n,(J(),H8))}function cx(n){return n.c&&n.d?SJ(n.c)+"->"+SJ(n.d):"e_"+h0(n)}function Ji(n,e){var t,i;for(ie(e),i=n.Kc();i.Ob();)t=i.Pb(),e.Cd(t)}function T4e(n,e){var t;t=new up,Za(t,"x",e.a),Za(t,"y",e.b),Sp(n,t)}function A4e(n,e){var t;t=new up,Za(t,"x",e.a),Za(t,"y",e.b),Sp(n,t)}function sNn(n,e){var t;for(t=e;t;)l0(n,-t.i,-t.j),t=Rt(t);return n}function GJ(n,e){var t,i;for(t=e,i=0;t>0;)i+=n.a[t],t-=t&-t;return i}function Vo(n,e,t){var i;return i=($n(e,n.c.length),n.c[e]),n.c[e]=t,i}function UJ(n,e,t){n.a.c.length=0,YLe(n,e,t),n.a.c.length==0||CPe(n,e)}function rk(n){n.i=0,h7(n.b,null),h7(n.c,null),n.a=null,n.e=null,++n.g}function WC(){WC=$,Wf=!0,EYn=!1,MYn=!1,TYn=!1,CYn=!1}function ux(n){WC(),!Wf&&(this.c=n,this.e=!0,this.a=new nn)}function fNn(n,e){this.c=0,this.b=e,LTn.call(this,n,17493),this.a=this.c}function hNn(n){aXn(),vjn(this),this.a=new xt,MY(this,n),We(this.a,n)}function lNn(){ID(this),this.b=new V(Bt,Bt),this.a=new V(mi,mi)}function VC(){VC=$,Vq=new CX(jin,0),H1n=new CX("TARGET_WIDTH",1)}function Sg(n,e){return(ta(n),c3(new Pn(n,new vQ(e,n.a)))).Bd(pv)}function S4e(){return er(),S(T(Xon,1),z,367,0,[Ys,nl,Bc,Wc,Yr])}function I4e(){return cw(),S(T(Wne,1),z,375,0,[vj,JI,QI,VI,WI])}function P4e(){return h1(),S(T(Wsn,1),z,348,0,[hH,Xsn,lH,bm,dm])}function O4e(){return T5(),S(T(Jhn,1),z,323,0,[Vhn,nq,eq,Y8,Z8])}function L4e(){return ts(),S(T(Cfn,1),z,171,0,[Cj,G8,ya,U8,Nw])}function D4e(){return mA(),S(T(Dce,1),z,368,0,[Oq,Sq,Lq,Iq,Pq])}function N4e(){return B5(),S(T(Due,1),z,373,0,[O2,Pv,g9,w9,qj])}function x4e(){return ny(),S(T(ean,1),z,324,0,[Y1n,eG,nan,tG,Z1n])}function F4e(){return jf(),S(T(il,1),z,170,0,[qn,Ti,Dh,Bd,T1])}function $4e(){return xg(),S(T(A9,1),z,256,0,[Sa,iE,Adn,T9,Sdn])}function R4e(n){return zE(),function(){return I3e(n,this,arguments);var e}}function gr(n){return!n.c||!n.d?!1:!!n.c.i&&n.c.i==n.d.i}function zJ(n,e){return L(e,143)?On(n.c,u(e,143).c):!1}function io(n){return n.t||(n.t=new sjn(n),k5(new MEn(n),0,n.t)),n.t}function aNn(n){this.b=n,oe.call(this,n),this.a=u(Qn(this.b.a,4),129)}function dNn(n){this.b=n,mp.call(this,n),this.a=u(Qn(this.b.a,4),129)}function qs(n,e,t,i,r){ENn.call(this,e,i,r),this.c=n,this.b=t}function XJ(n,e,t,i,r){RLn.call(this,e,i,r),this.c=n,this.a=t}function WJ(n,e,t,i,r){BLn.call(this,e,i,r),this.c=n,this.a=t}function VJ(n,e,t,i,r){ENn.call(this,e,i,r),this.c=n,this.a=t}function ox(n,e){var t;return t=u(Rf(n.d,e),23),t||u(Rf(n.e,e),23)}function bNn(n,e){var t,i;return t=e.ld(),i=n.Fe(t),!!i&&Cc(i.e,e.md())}function wNn(n,e){var t;return t=e.ld(),new t0(t,n.e.pc(t,u(e.md(),16)))}function B4e(n,e){var t;return t=n.a.get(e),t??_(Ii,Gn,1,0,5,1)}function gNn(n){var e;return e=n.length,On(ce.substr(ce.length-e,e),n)}function pe(n){if(Te(n))return n.c=n.a,n.a.Pb();throw C(new uc)}function JJ(n,e){return e==0||n.e==0?n:e>0?cGn(n,e):IBn(n,-e)}function xp(n,e){return e==0||n.e==0?n:e>0?IBn(n,e):cGn(n,-e)}function QJ(n){J1e.call(this,n==null?ju:tc(n),L(n,82)?u(n,82):null)}function pNn(n){var e;return n.c||(e=n.r,L(e,90)&&(n.c=u(e,29))),n.c}function sx(n){var e;return e=new j0,Jr(e,n),U(e,(fn(),qr),null),e}function vNn(n){var e,t;return e=n.c.i,t=n.d.i,e.k==(ee(),oi)&&t.k==oi}function fx(n){var e,t,i;return e=n&so,t=n>>22&so,i=n<0?Dl:0,cu(e,t,i)}function K4e(n){var e,t,i,r;for(t=n,i=0,r=t.length;i=0?n.Lh(i,t,!0):_0(n,e,t)}function H4e(n,e,t){return Tt(pp(b4(n),Xi(e.b)),pp(b4(n),Xi(t.b)))}function q4e(n,e,t){return Tt(pp(b4(n),Xi(e.e)),pp(b4(n),Xi(t.e)))}function G4e(n,e){return y.Math.min(J1(e.a,n.d.d.c),J1(e.b,n.d.d.c))}function ck(n,e){n._i(n.i+1),O6(n,n.i,n.Zi(n.i,e)),n.Mi(n.i++,e),n.Ni()}function t5(n){var e,t;++n.j,e=n.g,t=n.i,n.g=null,n.i=0,n.Oi(t,e),n.Ni()}function mNn(n,e,t){var i;i=new JX(n.a),f5(i,n.a.a),tu(i.f,e,t),n.a.a=i}function YJ(n,e,t,i){var r;for(r=0;re)throw C(new Fr(_nn(n,e,"index")));return n}function e1(n,e){var t;return t=($n(e,n.c.length),n.c[e]),Uz(n.c,e,1),t}function eQ(n,e){var t,i;return t=(ie(n),n),i=(ie(e),e),t==i?0:te.p?-1:0}function ANn(n){var e;return n.a||(e=n.r,L(e,156)&&(n.a=u(e,156))),n.a}function J4e(n,e,t){var i;return++n.e,--n.f,i=u(n.d[e].gd(t),136),i.md()}function Q4e(n){var e,t;return e=n.ld(),t=u(n.md(),16),R7(t.Nc(),new E9n(e))}function SNn(n,e){return uu(n.a,e)?(Fp(n.a,e),!0):!1}function $p(n,e,t){return ik(e,n.e.Rd().gc()),ik(t,n.c.Rd().gc()),n.a[e][t]}function QC(n,e,t){this.a=n,this.b=e,this.c=t,en(n.t,this),en(e.i,this)}function YC(n,e,t,i){this.f=n,this.e=e,this.d=t,this.b=i,this.c=i?i.d:null}function uk(){this.b=new xt,this.a=new xt,this.b=new xt,this.a=new xt}function L3(){L3=$;var n,e;IO=(r3(),e=new KE,e),PO=(n=new yL,n)}function Y4e(n){var e;return ta(n),e=new kIn(n,n.a.e,n.a.d|4),new jW(n,e)}function INn(n){var e;for(X1(n),e=0;n.a.Bd(new Fbn);)e=or(e,1);return e}function ZC(n,e){return ie(e),n.c=0,"Initial capacity must not be negative")}function nT(){nT=$,p9=new mt("org.eclipse.elk.labels.labelManager")}function PNn(){PNn=$,Fsn=new qt("separateLayerConnections",(xT(),Q_))}function pf(){pf=$,Gw=new kX("REGULAR",0),Ea=new kX("CRITICAL",1)}function ok(){ok=$,nG=new AX("FIXED",0),nO=new AX("CENTER_NODE",1)}function eT(){eT=$,_sn=new aX("QUADRATIC",0),sH=new aX("SCANLINE",1)}function ONn(){ONn=$,ree=Ne((u5(),S(T(Gsn,1),z,322,0,[R8,mj,qsn])))}function LNn(){LNn=$,cee=Ne((vT(),S(T(zsn,1),z,351,0,[Usn,YI,fH])))}function DNn(){DNn=$,nee=Ne((O0(),S(T(Z_,1),z,372,0,[cb,ma,rb])))}function NNn(){NNn=$,fee=Ne((fd(),S(T(see,1),z,460,0,[aH,wm,w2])))}function xNn(){xNn=$,wee=Ne((J3(),S(T(jH,1),z,299,0,[kH,yH,kj])))}function FNn(){FNn=$,pee=Ne((jl(),S(T(gee,1),z,311,0,[yj,p2,yv])))}function $Nn(){$Nn=$,Gie=Ne((g5(),S(T(Whn,1),z,390,0,[QH,Xhn,IP])))}function RNn(){RNn=$,Yie=Ne((LT(),S(T(oln,1),z,387,0,[cln,uq,uln])))}function BNn(){BNn=$,Zie=Ne((d5(),S(T(sln,1),z,349,0,[sq,oq,Lj])))}function KNn(){KNn=$,Qie=Ne((Mr(),S(T(Jie,1),z,463,0,[n9,Yu,ru])))}function _Nn(){_Nn=$,nre=Ne((r4(),S(T(hln,1),z,350,0,[fq,fln,e9])))}function HNn(){HNn=$,ere=Ne((pT(),S(T(dln,1),z,352,0,[aln,hq,lln])))}function qNn(){qNn=$,tre=Ne((FT(),S(T(bln,1),z,388,0,[lq,Sm,qw])))}function GNn(){GNn=$,ice=Ne((b5(),S(T(Oln,1),z,392,0,[Pln,bq,xj])))}function UNn(){UNn=$,Fce=Ne((Dk(),S(T(c1n,1),z,393,0,[GP,i1n,r1n])))}function zNn(){zNn=$,iue=Ne((OT(),S(T(E1n,1),z,300,0,[Rq,j1n,y1n])))}function XNn(){XNn=$,rue=Ne((QT(),S(T(M1n,1),z,445,0,[Kj,XP,Bq])))}function WNn(){WNn=$,uue=Ne((sA(),S(T(cue,1),z,456,0,[Kq,Hq,_q])))}function VNn(){VNn=$,fue=Ne((UT(),S(T(A1n,1),z,394,0,[T1n,Uq,C1n])))}function JNn(){JNn=$,Oue=Ne((rT(),S(T(z1n,1),z,439,0,[Jq,U1n,G1n])))}function QNn(){QNn=$,vre=Ne((P0(),S(T(pre,1),z,464,0,[Dj,t9,DP])))}function YNn(){YNn=$,KYn=Ne((Wu(),S(T(BYn,1),z,471,0,[Ih,pa,Js])))}function ZNn(){ZNn=$,RYn=Ne((kf(),S(T(Tw,1),z,237,0,[kc,iu,yc])))}function nxn(){nxn=$,HYn=Ne((ku(),S(T(_Yn,1),z,472,0,[Cf,va,Qs])))}function exn(){exn=$,AYn=Ne((Vu(),S(T(Hr,1),z,108,0,[Zun,rc,Cw])))}function txn(){txn=$,sne=Ne((i5(),S(T(zon,1),z,391,0,[x_,N_,F_])))}function ixn(){ixn=$,qoe=Ne((Cl(),S(T(Tdn,1),z,346,0,[hO,S1,C9])))}function rxn(){rxn=$,xue=Ne((Bk(),S(T(Qq,1),z,444,0,[QP,YP,ZP])))}function cxn(){cxn=$,Boe=Ne((Bf(),S(T(bdn,1),z,278,0,[xm,Ww,Fm])))}function uxn(){uxn=$,ise=Ne((qp(),S(T(Ddn,1),z,280,0,[Ldn,Jw,gO])))}function $f(n,e){return!n.o&&(n.o=new Fu((Oc(),ol),I1,n,0)),AF(n.o,e)}function Z4e(n,e){var t;n.C&&(t=u(Lr(n.b,e),127).n,t.d=n.C.d,t.a=n.C.a)}function uQ(n){var e,t,i,r;r=n.d,e=n.a,t=n.b,i=n.c,n.d=t,n.a=i,n.b=r,n.c=e}function nme(n){return!n.g&&(n.g=new SE),!n.g.b&&(n.g.b=new rjn(n)),n.g.b}function sk(n){return!n.g&&(n.g=new SE),!n.g.c&&(n.g.c=new ojn(n)),n.g.c}function eme(n){return!n.g&&(n.g=new SE),!n.g.d&&(n.g.d=new cjn(n)),n.g.d}function tme(n){return!n.g&&(n.g=new SE),!n.g.a&&(n.g.a=new ujn(n)),n.g.a}function ime(n,e,t,i){return t&&(i=t.Rh(e,Ht(t.Dh(),n.c.uk()),null,i)),i}function rme(n,e,t,i){return t&&(i=t.Th(e,Ht(t.Dh(),n.c.uk()),null,i)),i}function dx(n,e,t,i){var r;return r=_(Oe,Ye,28,e+1,15,1),sOe(r,n,e,t,i),r}function _(n,e,t,i,r,c){var s;return s=OKn(r,i),r!=10&&S(T(n,c),e,t,r,s),s}function cme(n,e,t){var i,r;for(r=new V3(e,n),i=0;it||e=0?n.Lh(t,!0,!0):_0(n,e,!0)}function jme(n,e,t){var i;return i=fRn(n,e,t),n.b=new AT(i.c.length),Ien(n,i)}function Eme(n){if(n.b<=0)throw C(new uc);return--n.b,n.a-=n.c.c,Z(n.a)}function Mme(n){var e;if(!n.a)throw C(new mOn);return e=n.a,n.a=Rt(n.a),e}function Cme(n){for(;!n.a;)if(!USn(n.c,new b7n(n)))return!1;return!0}function Rp(n){var e;return Re(n),L(n,204)?(e=u(n,204),e):new O9n(n)}function Tme(n){tT(),u(n.of((et(),Xw)),181).Fc((Ju(),rE)),n.qf(jG,null)}function tT(){tT=$,ooe=new amn,foe=new dmn,soe=b8e((et(),jG),ooe,Ta,foe)}function iT(){iT=$,e1n=new MX("LEAF_NUMBER",0),Dq=new MX("NODE_SIZE",1)}function vx(n){n.a=_(Oe,Ye,28,n.b+1,15,1),n.c=_(Oe,Ye,28,n.b,15,1),n.d=0}function Ame(n,e){n.a.Ne(e.d,n.b)>0&&(en(n.c,new oV(e.c,e.d,n.d)),n.b=e.d)}function gQ(n,e){if(n.g==null||e>=n.i)throw C(new MD(e,n.i));return n.g[e]}function hxn(n,e,t){if(e4(n,t),t!=null&&!n.fk(t))throw C(new vL);return t}function mx(n,e){return vk(e)!=10&&S(mo(e),e.Sm,e.__elementTypeId$,vk(e),n),n}function N3(n,e,t,i){var r;i=(y0(),i||zun),r=n.slice(e,t),Hnn(r,n,e,t,-e,i)}function Jo(n,e,t,i,r){return e<0?_0(n,t,i):u(t,69).wk().yk(n,n.hi(),e,i,r)}function Sme(n,e){return Tt(x(K(m(n,(J(),sb)))),x(K(m(e,sb))))}function lxn(){lxn=$,yYn=Ne((x3(),S(T(wI,1),z,304,0,[d_,b_,w_,g_])))}function x3(){x3=$,d_=new hM("All",0),b_=new eAn,w_=new hAn,g_=new nAn}function Wu(){Wu=$,Ih=new VL(uv,0),pa=new VL(K4,1),Js=new VL(ov,2)}function axn(){axn=$,GA(),E0n=Bt,lfe=mi,M0n=new J9(Bt),afe=new J9(mi)}function dxn(){dxn=$,dZn=Ne((D0(),S(T(aZn,1),z,417,0,[uj,cj,M_,C_])))}function bxn(){bxn=$,vZn=Ne((A5(),S(T(pZn,1),z,406,0,[lj,mI,kI,aj])))}function wxn(){wxn=$,wZn=Ne((zp(),S(T(bZn,1),z,332,0,[sj,oj,fj,hj])))}function gxn(){gxn=$,Ene=Ne((ad(),S(T(Jon,1),z,389,0,[Iw,Von,__,H_])))}function pxn(){pxn=$,pne=Ne((Q3(),S(T(gne,1),z,416,0,[ib,Sw,Aw,h2])))}function vxn(){vxn=$,Xne=Ne((Kf(),S(T(zne,1),z,421,0,[kv,sm,fm,Y_])))}function mxn(){mxn=$,Fne=Ne((xT(),S(T(xne,1),z,371,0,[Q_,zI,XI,pj])))}function kxn(){kxn=$,Uie=Ne((iw(),S(T(ZH,1),z,203,0,[PP,YH,T2,C2])))}function yxn(){yxn=$,Wie=Ne((wh(),S(T(iln,1),z,284,0,[E1,tln,tq,iq])))}function ak(){ak=$,Ysn=new bX(Mh,0),eP=new bX("IMPROVE_STRAIGHTNESS",1)}function jxn(n,e){var t,i;return i=e/n.c.Rd().gc()|0,t=e%n.c.Rd().gc(),$p(n,i,t)}function Exn(n){var e;if(n.nl())for(e=n.i-1;e>=0;--e)D(n,e);return RJ(n)}function pQ(n){var e,t;if(!n.b)return null;for(t=n.b;e=t.a[0];)t=e;return t}function Mxn(n){var e,t;if(!n.b)return null;for(t=n.b;e=t.a[1];)t=e;return t}function Ime(n){return L(n,180)?""+u(n,180).a:n==null?null:tc(n)}function Pme(n){return L(n,180)?""+u(n,180).a:n==null?null:tc(n)}function Cxn(n,e){if(e.a)throw C(new oc(GXn));pi(n.a,e),e.a=n,!n.j&&(n.j=e)}function vQ(n,e){NM.call(this,e.zd(),e.yd()&-16449),ie(n),this.a=n,this.c=e}function Ome(n,e){return new ZD(e,l0(Xi(e.e),e.f.a+n,e.f.b+n),(Wn(),!1))}function Lme(n,e){return p3(),en(n,new Ei(e,Z(e.e.c.length+e.g.c.length)))}function Dme(n,e){return p3(),en(n,new Ei(e,Z(e.e.c.length+e.g.c.length)))}function Txn(){Txn=$,tue=Ne((aA(),S(T(k1n,1),z,354,0,[$q,v1n,m1n,p1n])))}function Axn(){Axn=$,Tce=Ne((w5(),S(T(Qln,1),z,353,0,[Tq,HP,Cq,Mq])))}function Sxn(){Sxn=$,ece=Ne((Vp(),S(T(mln,1),z,405,0,[$P,c9,u9,o9])))}function Ixn(){Ixn=$,Koe=Ne((Tl(),S(T(TG,1),z,223,0,[CG,nE,$m,xv])))}function Pxn(){Pxn=$,Uoe=Ne((Po(),S(T(Goe,1),z,291,0,[tE,rl,Aa,eE])))}function Oxn(){Oxn=$,ese=Ne((ko(),S(T(P9,1),z,386,0,[uE,Gd,cE,Vw])))}function Lxn(){Lxn=$,cse=Ne((XT(),S(T(Bdn,1),z,320,0,[IG,Fdn,Rdn,$dn])))}function Dxn(){Dxn=$,sse=Ne(($T(),S(T(ose,1),z,415,0,[PG,_dn,Kdn,Hdn])))}function rT(){rT=$,Jq=new mD(oVn,0),U1n=new mD(_rn,1),G1n=new mD(Mh,2)}function Xb(n,e,t,i,r){return ie(n),ie(e),ie(t),ie(i),ie(r),new qV(n,e,i)}function Nxn(n,e){var t;return t=u(Fp(n.e,e),400),t?(vV(t),t.e):null}function mu(n,e){var t;return t=Vr(n,e,0),t==-1?!1:(e1(n,t),!0)}function xxn(n,e,t){var i;return X1(n),i=new UO,i.a=e,n.a.Nb(new gCn(i,t)),i.a}function Nme(n){var e;return X1(n),e=_(Ri,Nr,28,0,15,1),sg(n.a,new l7n(e)),e}function mQ(n){var e;if(!xx(n))throw C(new uc);return n.e=1,e=n.d,n.d=null,e}function i1(n){var e;return nc(n)&&(e=0-n,!isNaN(e))?e:Y1(Z3(n))}function Vr(n,e,t){for(;t=0?uA(n,t,!0,!0):_0(n,e,!0)}function yQ(n){var e;return e=rd(Qn(n,32)),e==null&&(hu(n),e=rd(Qn(n,32))),e}function jQ(n){var e;return n.Oh()||(e=ge(n.Dh())-n.ji(),n.$h().Mk(e)),n.zh()}function _xn(n,e){jon=new ME,gZn=e,D8=n,u(D8.b,68),fQ(D8,jon,null),tzn(D8)}function i5(){i5=$,x_=new QL("XY",0),N_=new QL("X",1),F_=new QL("Y",2)}function ku(){ku=$,Cf=new JL("TOP",0),va=new JL(K4,1),Qs=new JL(Ztn,2)}function jl(){jl=$,yj=new iD(Mh,0),p2=new iD("TOP",1),yv=new iD(Ztn,2)}function pk(){pk=$,rq=new gX("INPUT_ORDER",0),cq=new gX("PORT_DEGREE",1)}function F3(){F3=$,Aun=cu(so,so,524287),cYn=cu(0,0,Sy),Sun=fx(1),fx(2),Iun=fx(0)}function Mx(n){var e;return n.d!=n.r&&(e=ks(n),n.e=!!e&&e.lk()==cQn,n.d=e),n.e}function Cx(n,e,t){var i;return i=n.g[e],O6(n,e,n.Zi(e,t)),n.Ri(e,t,i),n.Ni(),i}function sT(n,e){var t;return t=n.dd(e),t>=0?(n.gd(t),!0):!1}function Tx(n,e){var t;for(Re(n),Re(e),t=!1;e.Ob();)t=t|n.Fc(e.Pb());return t}function Rf(n,e){var t;return t=u(se(n.e,e),400),t?(jAn(n,t),t.e):null}function Hxn(n){var e,t;return e=n/60|0,t=n%60,t==0?""+e:""+e+":"+(""+t)}function Wb(n,e){var t=n.a[e],i=(Yx(),o_)[typeof t];return i?i(t):OY(typeof t)}function hc(n,e){var t,i;return ta(n),i=new iQ(e,n.a),t=new WSn(i),new Pn(n,t)}function Ax(n){var e;return e=n.b.c.length==0?null:an(n.b,0),e!=null&&$x(n,0),e}function Rme(n,e){var t,i,r;r=e.c.i,t=u(se(n.f,r),60),i=t.d.c-t.e.c,nY(e.a,i,0)}function EQ(n,e){var t;for(++n.d,++n.c[e],t=e+1;t=0;)++e[0]}function Bme(n,e){su(n,e==null||VM((ie(e),e))||isNaN((ie(e),e))?0:(ie(e),e))}function Kme(n,e){fu(n,e==null||VM((ie(e),e))||isNaN((ie(e),e))?0:(ie(e),e))}function _me(n,e){I0(n,e==null||VM((ie(e),e))||isNaN((ie(e),e))?0:(ie(e),e))}function Hme(n,e){S0(n,e==null||VM((ie(e),e))||isNaN((ie(e),e))?0:(ie(e),e))}function qme(n,e,t){return pp(new V(t.e.a+t.f.a/2,t.e.b+t.f.b/2),n)==(ie(e),e)}function Gme(n,e){return L(e,102)&&(u(e,19).Bb&pr)!=0?new CD(e,n):new V3(e,n)}function Ume(n,e){return L(e,102)&&(u(e,19).Bb&pr)!=0?new CD(e,n):new V3(e,n)}function vk(n){return n.__elementTypeCategory$==null?10:n.__elementTypeCategory$}function Uxn(n,e){return e==(WD(),WD(),vYn)?n.toLocaleLowerCase():n.toLowerCase()}function zxn(n){if(!n.e)throw C(new uc);return n.c=n.a=n.e,n.e=n.e.e,--n.d,n.a.f}function MQ(n){if(!n.c)throw C(new uc);return n.e=n.a=n.c,n.c=n.c.c,++n.d,n.a.f}function Xxn(n){var e;for(++n.a,e=n.c.a.length;n.an.a[i]&&(i=t);return i}function Wxn(n){var e;return e=u(m(n,(J(),ub)),313),e?e.a==n:!1}function Vxn(n){var e;return e=u(m(n,(J(),ub)),313),e?e.i==n:!1}function Jxn(){Jxn=$,ane=Ne((er(),S(T(Xon,1),z,367,0,[Ys,nl,Bc,Wc,Yr])))}function Qxn(){Qxn=$,Vne=Ne((cw(),S(T(Wne,1),z,375,0,[vj,JI,QI,VI,WI])))}function Yxn(){Yxn=$,uee=Ne((h1(),S(T(Wsn,1),z,348,0,[hH,Xsn,lH,bm,dm])))}function Zxn(){Zxn=$,zie=Ne((T5(),S(T(Jhn,1),z,323,0,[Vhn,nq,eq,Y8,Z8])))}function nFn(){nFn=$,mee=Ne((ts(),S(T(Cfn,1),z,171,0,[Cj,G8,ya,U8,Nw])))}function eFn(){eFn=$,Nce=Ne((mA(),S(T(Dce,1),z,368,0,[Oq,Sq,Lq,Iq,Pq])))}function tFn(){tFn=$,Nue=Ne((B5(),S(T(Due,1),z,373,0,[O2,Pv,g9,w9,qj])))}function iFn(){iFn=$,Kue=Ne((ny(),S(T(ean,1),z,324,0,[Y1n,eG,nan,tG,Z1n])))}function rFn(){rFn=$,Roe=Ne((di(),S(T(E9,1),z,88,0,[nh,Zr,Gr,Zf,hs])))}function cFn(){cFn=$,hoe=Ne((jf(),S(T(il,1),z,170,0,[qn,Ti,Dh,Bd,T1])))}function uFn(){uFn=$,Xoe=Ne((xg(),S(T(A9,1),z,256,0,[Sa,iE,Adn,T9,Sdn])))}function oFn(){oFn=$,Joe=Ne((rn(),S(T(vr,1),Lc,64,0,[bc,ne,ue,ye,te])))}function fT(){fT=$,ton=new uX("BY_SIZE",0),k_=new uX("BY_SIZE_AND_SHAPE",1)}function hT(){hT=$,O_=new fX("EADES",0),EI=new fX("FRUCHTERMAN_REINGOLD",1)}function mk(){mk=$,ZI=new dX("READING_DIRECTION",0),Vsn=new dX("ROTATION",1)}function r5(){r5=$,kne=new Uwn,yne=new Wwn,vne=new Vwn,mne=new Xwn,jne=new Jwn}function sFn(n){this.b=new nn,this.a=new nn,this.c=new nn,this.d=new nn,this.e=n}function fFn(n){this.g=n,this.f=new nn,this.a=y.Math.min(this.g.c.c,this.g.d.c)}function hFn(n,e,t){XM.call(this),AQ(this),this.a=n,this.c=t,this.b=e.d,this.f=e.e}function Qme(n,e,t){var i,r;for(r=new M(t);r.a=0&&e0?e-1:e,UEn(M1e(NFn(bV(new cp,t),n.n),n.j),n.k)}function Kr(n){var e,t;t=(e=new jL,e),Se((!n.q&&(n.q=new G(Ls,n,11,10)),n.q),t)}function CQ(n){return((n.i&2)!=0?"interface ":(n.i&1)!=0?"":"class ")+(bl(n),n.o)}function lT(n){return Pc(n,at)>0?at:Pc(n,tr)<0?tr:$e(n)}function Vb(n){return n<3?(So(n,CXn),n+1):n=-.01&&n.a<=Uf&&(n.a=0),n.b>=-.01&&n.b<=Uf&&(n.b=0),n}function Ig(n){Ug();var e,t;for(t=Grn,e=0;et&&(t=n[e]);return t}function bFn(n,e){var t;if(t=fy(n.Dh(),e),!t)throw C(new Yn(ba+e+kK));return t}function Jb(n,e){var t;for(t=n;Rt(t);)if(t=Rt(t),t==e)return!0;return!1}function s6e(n,e){var t,i,r;for(i=e.a.ld(),t=u(e.a.md(),16).gc(),r=0;rn||n>e)throw C(new Dz("fromIndex: 0, toIndex: "+n+_tn+e))}function A0(n){if(n<0)throw C(new Yn("Illegal Capacity: "+n));this.g=this.aj(n)}function TQ(n,e){return Pf(),Gs(fa),y.Math.abs(n-e)<=fa||n==e||isNaN(n)&&isNaN(e)}function Px(n,e){var t,i,r,c;for(i=n.d,r=0,c=i.length;r0&&(n.a/=e,n.b/=e),n}function To(n){var e;return n.w?n.w:(e=n3e(n),e&&!e.Vh()&&(n.w=e),e)}function $3(n,e){var t,i;i=n.a,t=r9e(n,e,null),i!=e&&!n.e&&(t=O4(n,e,t)),t&&t.oj()}function mFn(n,e,t){var i,r;i=e;do r=x(n.p[i.p])+t,n.p[i.p]=r,i=n.a[i.p];while(i!=e)}function kFn(n,e,t){var i=function(){return n.apply(i,arguments)};return e.apply(i,t),i}function w6e(n){var e;return n==null?null:(e=u(n,195),AEe(e,e.length))}function D(n,e){if(n.g==null||e>=n.i)throw C(new MD(e,n.i));return n.Wi(e,n.g[e])}function g6e(n,e){Fn();var t,i;for(i=new nn,t=0;t=14&&e<=16))),n}function De(n,e){var t;return ie(e),t=n[":"+e],K7(!!t,"Enum constant undefined: "+e),t}function Me(n,e,t,i,r,c){var s;return s=TN(n,e),xFn(t,s),s.i=r?8:0,s.f=i,s.e=r,s.g=c,s}function IQ(n,e,t,i,r){this.d=e,this.k=i,this.f=r,this.o=-1,this.p=1,this.c=n,this.a=t}function PQ(n,e,t,i,r){this.d=e,this.k=i,this.f=r,this.o=-1,this.p=2,this.c=n,this.a=t}function OQ(n,e,t,i,r){this.d=e,this.k=i,this.f=r,this.o=-1,this.p=6,this.c=n,this.a=t}function LQ(n,e,t,i,r){this.d=e,this.k=i,this.f=r,this.o=-1,this.p=7,this.c=n,this.a=t}function DQ(n,e,t,i,r){this.d=e,this.j=i,this.e=r,this.o=-1,this.p=4,this.c=n,this.a=t}function FFn(n,e){var t,i,r,c;for(i=e,r=0,c=i.length;r=0))throw C(new Yn("tolerance ("+n+") must be >= 0"));return n}function RFn(n,e){var t;return L(e,44)?n.c.Mc(e):(t=AF(n,e),YT(n,e),t)}function Dr(n,e,t){return ld(n,e),nu(n,t),r1(n,0),Qb(n,1),f1(n,!0),s1(n,!0),n}function yk(n,e){var t;if(t=n.gc(),e<0||e>t)throw C(new Rb(e,t));return new GW(n,e)}function mT(n,e){n.b=y.Math.max(n.b,e.d),n.e+=e.r+(n.a.c.length==0?0:n.c),en(n.a,e)}function BFn(n){xb(n.c>=0),P7e(n.d,n.c)<0&&(n.a=n.a-1&n.d.a.length-1,n.b=n.d.c),n.c=-1}function kT(n){var e,t;for(t=n.c.Cc().Kc();t.Ob();)e=u(t.Pb(),16),e.$b();n.c.$b(),n.d=0}function T6e(n){var e,t,i,r;for(t=n.a,i=0,r=t.length;i=0}function KQ(n,e){n.r>0&&n.c0&&n.g!=0&&KQ(n.i,e/n.r*n.i.d))}function _Q(n,e){var t;t=n.c,n.c=e,(n.Db&4)!=0&&(n.Db&1)==0&&bt(n,new Di(n,1,1,t,n.c))}function Dx(n,e){var t;t=n.c,n.c=e,(n.Db&4)!=0&&(n.Db&1)==0&&bt(n,new Di(n,1,4,t,n.c))}function G3(n,e){var t;t=n.k,n.k=e,(n.Db&4)!=0&&(n.Db&1)==0&&bt(n,new Di(n,1,2,t,n.k))}function Nx(n,e){var t;t=n.D,n.D=e,(n.Db&4)!=0&&(n.Db&1)==0&&bt(n,new Di(n,1,2,t,n.D))}function jT(n,e){var t;t=n.f,n.f=e,(n.Db&4)!=0&&(n.Db&1)==0&&bt(n,new Di(n,1,8,t,n.f))}function ET(n,e){var t;t=n.i,n.i=e,(n.Db&4)!=0&&(n.Db&1)==0&&bt(n,new Di(n,1,7,t,n.i))}function HQ(n,e){var t;t=n.a,n.a=e,(n.Db&4)!=0&&(n.Db&1)==0&&bt(n,new Di(n,1,8,t,n.a))}function qQ(n,e){var t;t=n.b,n.b=e,(n.Db&4)!=0&&(n.Db&1)==0&&bt(n,new Di(n,1,0,t,n.b))}function GQ(n,e){var t;t=n.b,n.b=e,(n.Db&4)!=0&&(n.Db&1)==0&&bt(n,new Di(n,1,0,t,n.b))}function UQ(n,e){var t;t=n.c,n.c=e,(n.Db&4)!=0&&(n.Db&1)==0&&bt(n,new Di(n,1,1,t,n.c))}function zQ(n,e){var t;t=n.d,n.d=e,(n.Db&4)!=0&&(n.Db&1)==0&&bt(n,new Di(n,1,1,t,n.d))}function D6e(n,e,t){var i;n.b=e,n.a=t,i=(n.a&512)==512?new uEn:new kU,n.c=XSe(i,n.b,n.a)}function QFn(n,e){return Ol(n.e,e)?(yr(),Mx(e)?new cC(e,n):new M7(e,n)):new CTn(e,n)}function N6e(n){var e,t;return 0>n?new Wz:(e=n+1,t=new fNn(e,n),new EW(null,t))}function x6e(n,e){Fn();var t;return t=new hp(1),Fi(n)?Rr(t,n,e):tu(t.f,n,e),new dL(t)}function F6e(n,e){var t,i;return t=n.c,i=e.e[n.p],i>0?u(an(t.a,i-1),10):null}function $6e(n,e){var t,i;return t=n.o+n.p,i=e.o+e.p,te?(e<<=1,e>0?e:Y5):e}function xx(n){switch(iW(n.e!=3),n.e){case 2:return!1;case 0:return!0}return z4e(n)}function ZFn(n,e){var t;return L(e,8)?(t=u(e,8),n.a==t.a&&n.b==t.b):!1}function B6e(n,e){var t;t=new ME,u(e.b,68),u(e.b,68),u(e.b,68),ou(e.a,new nV(n,t,e))}function n$n(n,e){var t,i;for(i=e.vc().Kc();i.Ob();)t=u(i.Pb(),44),Jk(n,t.ld(),t.md())}function XQ(n,e){var t;t=n.d,n.d=e,(n.Db&4)!=0&&(n.Db&1)==0&&bt(n,new Di(n,1,11,t,n.d))}function MT(n,e){var t;t=n.j,n.j=e,(n.Db&4)!=0&&(n.Db&1)==0&&bt(n,new Di(n,1,13,t,n.j))}function WQ(n,e){var t;t=n.b,n.b=e,(n.Db&4)!=0&&(n.Db&1)==0&&bt(n,new Di(n,1,21,t,n.b))}function K6e(n,e){(WC(),Wf?null:e.c).length==0&&gSn(e,new nU),Rr(n.a,Wf?null:e.c,e)}function _6e(n,e){e.Ug("Hierarchical port constraint processing",1),cke(n),Cxe(n),e.Vg()}function O0(){O0=$,cb=new YL("START",0),ma=new YL("MIDDLE",1),rb=new YL("END",2)}function CT(){CT=$,qP=new EX("P1_NODE_PLACEMENT",0),P2=new EX("P2_EDGE_ROUTING",1)}function Q1(){Q1=$,mv=new mt(ain),TI=new mt(din),x8=new mt(wWn),dj=new mt(gWn)}function L0(n){var e;return VD(n.f.g,n.d),we(n.b),n.c=n.a,e=u(n.a.Pb(),44),n.b=oY(n),e}function VQ(n){var e;return n.b==null?(Wl(),Wl(),wE):(e=n.ul()?n.tl():n.sl(),e)}function e$n(n,e){var t;return t=e==null?-1:Vr(n.b,e,0),t<0?!1:($x(n,t),!0)}function Us(n,e){var t;return ie(e),t=e.g,n.b[t]?!1:(zt(n.b,t,e),++n.c,!0)}function TT(n,e){var t,i;return t=1-e,i=n.a[t],n.a[t]=i.a[e],i.a[e]=n,n.b=!0,i.b=!1,i}function H6e(n,e){var t,i;for(i=e.Kc();i.Ob();)t=u(i.Pb(),272),n.b=!0,pi(n.e,t),t.b=n}function q6e(n,e){var t,i;return t=u(m(n,(fn(),Kw)),8),i=u(m(e,Kw),8),Tt(t.b,i.b)}function Fx(n,e,t){var i,r,c;return c=e>>5,r=e&31,i=Si(G1(n.n[t][c],$e(Hs(r,1))),3),i}function t$n(n,e,t){var i,r,c;for(c=n.a.length-1,r=n.b,i=0;i0?1:0:(!n.c&&(n.c=nk(Tc(n.f))),n.c).e}function l$n(n,e){e?n.B==null&&(n.B=n.D,n.D=null):n.B!=null&&(n.D=n.B,n.B=null)}function X6e(n,e){return Q3(),n==ib&&e==Sw||n==Sw&&e==ib||n==h2&&e==Aw||n==Aw&&e==h2}function W6e(n,e){return Q3(),n==ib&&e==Aw||n==ib&&e==h2||n==Sw&&e==h2||n==Sw&&e==Aw}function a$n(n,e){return Pf(),Gs(Uf),y.Math.abs(0-e)<=Uf||e==0||isNaN(0)&&isNaN(e)?0:n/e}function d$n(n,e){return x(K(wo($k(Xr(new Pn(null,new Nn(n.c.b,16)),new kkn(n)),e))))}function ZQ(n,e){return x(K(wo($k(Xr(new Pn(null,new Nn(n.c.b,16)),new mkn(n)),e))))}function V6e(){return Cr(),S(T(mH,1),z,259,0,[iP,fs,K8,rP,vm,g2,_8,gm,pm,cP])}function J6e(){return ys(),S(T(eln,1),z,243,0,[OP,Pj,Oj,Yhn,Zhn,Qhn,nln,LP,gb,Hw])}function Q6e(n,e){var t;e.Ug("General Compactor",1),t=t7e(u(X(n,(oa(),xq)),393)),t.Cg(n)}function Y6e(n,e){var t,i;return t=u(X(n,(oa(),UP)),17),i=u(X(e,UP),17),Ic(t.a,i.a)}function nY(n,e,t){var i,r;for(r=Ce(n,0);r.b!=r.d.c;)i=u(Ee(r),8),i.a+=e,i.b+=t;return n}function o5(n,e,t){var i;for(i=n.b[t&n.f];i;i=i.b)if(t==i.a&&ah(e,i.g))return i;return null}function s5(n,e,t){var i;for(i=n.c[t&n.f];i;i=i.d)if(t==i.f&&ah(e,i.i))return i;return null}function Z6e(n,e,t){var i,r,c;for(i=0,r=0;r>>31;i!=0&&(n[t]=i)}function _x(n,e,t,i,r,c){var s;this.c=n,s=new nn,DZ(n,s,e,n.b,t,i,r,c),this.a=new Gi(s,0)}function b$n(){this.c=new QE(0),this.b=new QE(qrn),this.d=new QE(nVn),this.a=new QE(fB)}function Yo(n,e,t,i,r,c,s){Le.call(this,n,e),this.d=t,this.e=i,this.c=r,this.b=c,this.a=xf(s)}function ni(n,e,t,i,r,c,s,f,h,l,a,d,g){return mHn(n,e,t,i,r,c,s,f,h,l,a,d,g),kF(n,!1),n}function n5e(n){return n.b.c.i.k==(ee(),oi)?u(m(n.b.c.i,(J(),yt)),12):n.b.c}function w$n(n){return n.b.d.i.k==(ee(),oi)?u(m(n.b.d.i,(J(),yt)),12):n.b.d}function e5e(n){var e;return e=HC(n),u0(e.a,0)?(eM(),eM(),mYn):(eM(),new JAn(e.b))}function Hx(n){var e;return e=LJ(n),u0(e.a,0)?(Ib(),Ib(),a_):(Ib(),new BD(e.b))}function qx(n){var e;return e=LJ(n),u0(e.a,0)?(Ib(),Ib(),a_):(Ib(),new BD(e.c))}function g$n(n){switch(n.g){case 2:return rn(),te;case 4:return rn(),ue;default:return n}}function p$n(n){switch(n.g){case 1:return rn(),ye;case 3:return rn(),ne;default:return n}}function v$n(n){switch(n.g){case 0:return new Y4n;case 1:return new Z4n;default:return null}}function Kp(){Kp=$,J_=new qt("edgelabelcenterednessanalysis.includelabel",(Wn(),ga))}function eY(){eY=$,gre=gh(BTn(Qe(Qe(new li,(er(),Bc),(fr(),RI)),Wc,DI),Yr),$I)}function m$n(){m$n=$,kre=gh(BTn(Qe(Qe(new li,(er(),Bc),(fr(),RI)),Wc,DI),Yr),$I)}function Gx(){Gx=$,F9=new eEn,RG=S(T(Tu,1),u2,179,0,[]),qse=S(T(Ls,1),sun,62,0,[])}function U3(){U3=$,wj=new hX("TO_INTERNAL_LTR",0),X_=new hX("TO_INPUT_DIRECTION",1)}function $u(){$u=$,z_=new tgn,U_=new ign,nsn=new rgn,Zon=new cgn,esn=new ugn,tsn=new ogn}function t5e(n,e){e.Ug(OWn,1),rZ(K1e(new NE((o6(),new LN(n,!1,!1,new cU))))),e.Vg()}function i5e(n,e,t){t.Ug("DFS Treeifying phase",1),k7e(n,e),vSe(n,e),n.a=null,n.b=null,t.Vg()}function jk(n,e){return Wn(),Fi(n)?eQ(n,_e(e)):Db(n)?bN(n,K(e)):Lb(n)?Xge(n,hn(e)):n.Fd(e)}function f5(n,e){var t,i;for(ie(e),i=e.vc().Kc();i.Ob();)t=u(i.Pb(),44),n.zc(t.ld(),t.md())}function r5e(n,e,t){var i;for(i=t.Kc();i.Ob();)if(!UC(n,e,i.Pb()))return!1;return!0}function c5e(n,e,t,i,r){var c;return t&&(c=Ht(e.Dh(),n.c),r=t.Rh(e,-1-(c==-1?i:c),null,r)),r}function u5e(n,e,t,i,r){var c;return t&&(c=Ht(e.Dh(),n.c),r=t.Th(e,-1-(c==-1?i:c),null,r)),r}function k$n(n){var e;if(n.b==-2){if(n.e==0)e=-1;else for(e=0;n.a[e]==0;e++);n.b=e}return n.b}function o5e(n){if(ie(n),n.length==0)throw C(new uh("Zero length BigInteger"));aPe(this,n)}function tY(n){this.i=n.gc(),this.i>0&&(this.g=this.aj(this.i+(this.i/8|0)+1),n.Qc(this.g))}function y$n(n,e,t){this.g=n,this.d=e,this.e=t,this.a=new nn,mCe(this),Fn(),ui(this.a,null)}function iY(n,e){e.q=n,n.d=y.Math.max(n.d,e.r),n.b+=e.d+(n.a.c.length==0?0:n.c),en(n.a,e)}function z3(n,e){var t,i,r,c;return r=n.c,t=n.c+n.b,c=n.d,i=n.d+n.a,e.a>r&&e.ac&&e.br?t=r:Zn(e,t+1),n.a=Xo(n.a,0,e)+(""+i)+QV(n.a,t)}function P$n(n,e){n.a=or(n.a,1),n.c=y.Math.min(n.c,e),n.b=y.Math.max(n.b,e),n.d=or(n.d,e)}function b5e(n,e){return e1||n.Ob())return++n.a,n.g=0,e=n.i,n.Ob(),e;throw C(new uc)}function N$n(n){switch(n.a.g){case 1:return new BCn;case 3:return new BKn;default:return new Y8n}}function cY(n,e){switch(e){case 1:return!!n.n&&n.n.i!=0;case 2:return n.k!=null}return OJ(n,e)}function Tc(n){return Iy>22),r=n.h+e.h+(i>>22),cu(t&so,i&so,r&Dl)}function H$n(n,e){var t,i,r;return t=n.l-e.l,i=n.m-e.m+(t>>22),r=n.h-e.h+(i>>22),cu(t&so,i&so,r&Dl)}function x5e(n){var e,t;for(SNe(n),t=new M(n.d);t.ai)throw C(new Rb(e,i));return n.Si()&&(t=uLn(n,t)),n.Ei(e,t)}function Y3(n,e,t,i,r){var c,s;for(s=t;s<=r;s++)for(c=e;c<=i;c++)$g(n,c,s)||KA(n,c,s,!0,!1)}function V5e(n){Ug();var e,t,i;for(t=_(Li,Q,8,2,0,1),i=0,e=0;e<2;e++)i+=.5,t[e]=Hke(i,n);return t}function Z3(n){var e,t,i;return e=~n.l+1&so,t=~n.m+(e==0?1:0)&so,i=~n.h+(e==0&&t==0?1:0)&Dl,cu(e,t,i)}function dY(n){var e;if(n<0)return tr;if(n==0)return 0;for(e=Y5;(e&n)==0;e>>=1);return e}function Qx(n,e,t){return n>=128?!1:n<64?C6(Si(Hs(1,n),t),0):C6(Si(Hs(1,n-64),e),0)}function Ok(n,e,t){return t==null?(!n.q&&(n.q=new je),Fp(n.q,e)):(!n.q&&(n.q=new je),ct(n.q,e,t)),n}function U(n,e,t){return t==null?(!n.q&&(n.q=new je),Fp(n.q,e)):(!n.q&&(n.q=new je),ct(n.q,e,t)),n}function Z$n(n){var e,t;return t=new JC,Jr(t,n),U(t,(Q1(),mv),n),e=new je,MOe(n,t,e),YDe(n,t,e),t}function nRn(n){var e,t;return e=n.t-n.k[n.o.p]*n.d+n.j[n.o.p]>n.f,t=n.u+n.e[n.o.p]*n.d>n.f*n.s*n.d,e||t}function eRn(n,e){var t,i,r,c;for(t=!1,i=n.a[e].length,c=0;c=0,"Negative initial capacity"),K7(e>=0,"Non-positive load factor"),zu(this)}function Q5e(n,e,t,i,r){var c,s;if(s=n.length,c=t.length,e<0||i<0||r<0||e+r>s||i+r>c)throw C(new cz)}function pY(n,e){Fn();var t,i,r,c,s;for(s=!1,i=e,r=0,c=i.length;r1||e>=0&&n.b<3)}function nF(n){var e,t,i;e=~n.l+1&so,t=~n.m+(e==0?1:0)&so,i=~n.h+(e==0&&t==0?1:0)&Dl,n.l=e,n.m=t,n.h=i}function kY(n){Fn();var e,t,i;for(i=1,t=n.Kc();t.Ob();)e=t.Pb(),i=31*i+(e!=null?It(e):0),i=i|0;return i}function t8e(n,e,t,i,r){var c;return c=fen(n,e),t&&nF(c),r&&(n=Vke(n,e),i?wa=Z3(n):wa=cu(n.l,n.m,n.h)),c}function lRn(n,e,t){n.g=v$(n,e,(rn(),ue),n.b),n.d=v$(n,t,ue,n.b),!(n.g.c==0||n.d.c==0)&&H_n(n)}function aRn(n,e,t){n.g=v$(n,e,(rn(),te),n.j),n.d=v$(n,t,te,n.j),!(n.g.c==0||n.d.c==0)&&H_n(n)}function yY(n,e){switch(e){case 7:return!!n.e&&n.e.i!=0;case 8:return!!n.d&&n.d.i!=0}return cZ(n,e)}function i8e(n,e){switch(e.g){case 0:L(n.b,641)||(n.b=new I$n);break;case 1:L(n.b,642)||(n.b=new SIn)}}function dRn(n){if(n.g===0)return new rmn;throw C(new Yn(KS+(n.f!=null?n.f:""+n.g)))}function bRn(n){if(n.g===0)return new imn;throw C(new Yn(KS+(n.f!=null?n.f:""+n.g)))}function r8e(n,e,t){return!c3(pt(new Pn(null,new Nn(n.c,16)),new Jv(new nTn(e,t)))).Bd((Xa(),pv))}function wRn(n,e){return pp(b4(u(m(e,(pc(),vb)),88)),new V(n.c.e.a-n.b.e.a,n.c.e.b-n.b.e.b))<=0}function c8e(n,e){for(;n.g==null&&!n.c?yJ(n):n.g==null||n.i!=0&&u(n.g[n.i-1],51).Ob();)fae(e,SA(n))}function hd(n){var e,t;for(t=new M(n.a.b);t.ai?1:0}function s8e(n){return en(n.c,(_p(),coe)),TQ(n.a,x(K(un((TF(),AP)))))?new Umn:new Cyn(n)}function f8e(n){for(;!n.d||!n.d.Ob();)if(n.b&&!i6(n.b))n.d=u(Tp(n.b),51);else return null;return n.d}function EY(n){switch(n.g){case 1:return nVn;default:case 2:return 0;case 3:return fB;case 4:return qrn}}function h8e(){lt();var n;return GG||(n=Pde(sa("M",!0)),n=hC(sa("M",!1),n),GG=n,GG)}function $T(){$T=$,PG=new SM("ELK",0),_dn=new SM("JSON",1),Kdn=new SM("DOT",2),Hdn=new SM("SVG",3)}function d5(){d5=$,sq=new oD("STACKED",0),oq=new oD("REVERSE_STACKED",1),Lj=new oD("SEQUENCED",2)}function b5(){b5=$,Pln=new dD(Mh,0),bq=new dD("MIDDLE_TO_MIDDLE",1),xj=new dD("AVOID_OVERLAP",2)}function t4(){t4=$,Rsn=new B2n,Bsn=new K2n,_ne=new $2n,Kne=new _2n,Bne=new R2n,$sn=(ie(Bne),new vbn)}function RT(){RT=$,Cdn=new s0(15),Hoe=new Hi((et(),A1),Cdn),M9=Lv,ydn=yoe,jdn=_d,Mdn=R2,Edn=zw}function Og(n,e){var t,i,r,c,s;for(i=e,r=0,c=i.length;r=n.b.c.length||(CY(n,2*e+1),t=2*e+2,t0&&(e.Cd(t),t.i&&a9e(t))}function TY(n,e,t){var i;for(i=t-1;i>=0&&n[i]===e[i];i--);return i<0?0:zL(Si(n[i],Tr),Si(e[i],Tr))?-1:1}function vRn(n,e,t){var i,r;this.g=n,this.c=e,this.a=this,this.d=this,r=YFn(t),i=_(ZQn,Ty,227,r,0,1),this.b=i}function cF(n,e,t,i,r){var c,s;for(s=t;s<=r;s++)for(c=e;c<=i;c++)if($g(n,c,s))return!0;return!1}function g8e(n,e){var t,i;for(i=n.Zb().Cc().Kc();i.Ob();)if(t=u(i.Pb(),16),t.Hc(e))return!0;return!1}function mRn(n,e,t){var i,r,c,s;for(ie(t),s=!1,c=n.fd(e),r=t.Kc();r.Ob();)i=r.Pb(),c.Rb(i),s=!0;return s}function uF(n,e){var t,i;return i=u(Qn(n.a,4),129),t=_(FG,$K,424,e,0,1),i!=null&&Rc(i,0,t,0,i.length),t}function kRn(n,e){var t;return t=new N$((n.f&256)!=0,n.i,n.a,n.d,(n.f&16)!=0,n.j,n.g,e),n.e!=null||(t.c=n),t}function p8e(n,e){var t;return n===e?!0:L(e,85)?(t=u(e,85),Inn(Va(n),t.vc())):!1}function yRn(n,e,t){var i,r;for(r=t.Kc();r.Ob();)if(i=u(r.Pb(),44),n.Be(e,i.md()))return!0;return!1}function jRn(n,e,t){return n.d[e.p][t.p]||(kke(n,e,t),n.d[e.p][t.p]=!0,n.d[t.p][e.p]=!0),n.a[e.p][t.p]}function v8e(n,e){var t;return!n||n==e||!Ot(e,(J(),ob))?!1:(t=u(m(e,(J(),ob)),10),t!=n)}function oF(n){switch(n.i){case 2:return!0;case 1:return!1;case-1:++n.c;default:return n.$l()}}function ERn(n){switch(n.i){case-2:return!0;case-1:return!1;case 1:--n.c;default:return n._l()}}function MRn(n){lLn.call(this,"The given string does not match the expected format for individual spacings.",n)}function m8e(n,e){var t;e.Ug("Min Size Preprocessing",1),t=Rnn(n),Et(n,(Uh(),a9),t.a),Et(n,WP,t.b),e.Vg()}function k8e(n){var e,t,i;for(e=0,i=_(Li,Q,8,n.b,0,1),t=Ce(n,0);t.b!=t.d.c;)i[e++]=u(Ee(t),8);return i}function sF(n,e,t){var i,r,c;for(i=new xt,c=Ce(t,0);c.b!=c.d.c;)r=u(Ee(c),8),We(i,new lr(r));mRn(n,e,i)}function y8e(n,e){var t;return t=or(n,e),zL(QN(n,e),0)|OM(QN(n,t),0)?t:or(Cy,QN(G1(t,63),1))}function j8e(n,e){var t,i;return t=u(n.d.Bc(e),16),t?(i=n.e.hc(),i.Gc(t),n.e.d-=t.gc(),t.$b(),i):null}function CRn(n){var e;if(e=n.a.c.length,e>0)return k3(e-1,n.a.c.length),e1(n.a,e-1);throw C(new Cjn)}function TRn(n,e,t){if(n>e)throw C(new Yn(iS+n+_Xn+e));if(n<0||e>t)throw C(new Dz(iS+n+Gtn+e+_tn+t))}function i4(n,e){n.D==null&&n.B!=null&&(n.D=n.B,n.B=null),Nx(n,e==null?null:(ie(e),e)),n.C&&n.hl(null)}function E8e(n,e){var t;t=un((TF(),AP))!=null&&e.Sg()!=null?x(K(e.Sg()))/x(K(un(AP))):1,ct(n.b,e,t)}function AY(n,e){var t,i;if(i=n.c[e],i!=0)for(n.c[e]=0,n.d-=i,t=e+1;tDS?n-t>DS:t-n>DS}function $Rn(n,e){var t;for(t=0;tr&&(d_n(e.q,r),i=t!=e.q.d)),i}function RRn(n,e){var t,i,r,c,s,f,h,l;return h=e.i,l=e.j,i=n.f,r=i.i,c=i.j,s=h-r,f=l-c,t=y.Math.sqrt(s*s+f*f),t}function DY(n,e){var t,i;return i=ZT(n),i||(!mse&&(mse=new b6n),t=(tR(),Cqn(e)),i=new bjn(t),Se(i.El(),n)),i}function xk(n,e){var t,i;return t=u(n.c.Bc(e),16),t?(i=n.hc(),i.Gc(t),n.d-=t.gc(),t.$b(),n.mc(i)):n.jc()}function N8e(n,e){var t,i;for(i=uo(n.d,1)!=0,t=!0;t;)t=!1,t=e.c.mg(e.e,i),t=t|hy(n,e,i,!1),i=!i;QQ(n)}function BRn(n,e,t,i){var r,c;n.a=e,c=i?0:1,n.f=(r=new Y_n(n.c,n.a,t,c),new PGn(t,n.a,r,n.e,n.b,n.c==(P0(),t9)))}function KT(n){var e;return we(n.a!=n.b),e=n.d.a[n.a],dSn(n.b==n.d.c&&e!=null),n.c=n.a,n.a=n.a+1&n.d.a.length-1,e}function KRn(n){var e;if(n.c!=0)return n.c;for(e=0;e=n.c.b:n.a<=n.c.b))throw C(new uc);return e=n.a,n.a+=n.c.c,++n.b,Z(e)}function dF(n){var e;return e=new WX(n.a),Jr(e,n),U(e,(J(),yt),n),e.o.a=n.g,e.o.b=n.f,e.n.a=n.i,e.n.b=n.j,e}function bF(n){return(rn(),Mu).Hc(n.j)?x(K(m(n,(J(),mm)))):lc(S(T(Li,1),Q,8,0,[n.i.n,n.n,n.a])).b}function F8e(n){var e;return e=FM(wre),u(m(n,(J(),Jc)),21).Hc((Cr(),vm))&&Qe(e,(er(),Bc),(fr(),_I)),e}function $8e(n){var e,t,i,r;for(r=new si,i=new M(n);i.a=0?e:-e;i>0;)i%2==0?(t*=t,i=i/2|0):(r*=t,i-=1);return e<0?1/r:r}function H8e(n,e){var t,i,r;for(r=1,t=n,i=e>=0?e:-e;i>0;)i%2==0?(t*=t,i=i/2|0):(r*=t,i-=1);return e<0?1/r:r}function ea(n,e){var t,i,r,c;return c=(r=n?ZT(n):null,yHn((i=e,r&&r.Gl(),i))),c==e&&(t=ZT(n),t&&t.Gl()),c}function _Rn(n,e,t){var i,r;return r=n.f,n.f=e,(n.Db&4)!=0&&(n.Db&1)==0&&(i=new Di(n,1,0,r,e),t?t.nj(i):t=i),t}function HRn(n,e,t){var i,r;return r=n.b,n.b=e,(n.Db&4)!=0&&(n.Db&1)==0&&(i=new Di(n,1,3,r,e),t?t.nj(i):t=i),t}function xY(n,e,t){var i,r;return r=n.a,n.a=e,(n.Db&4)!=0&&(n.Db&1)==0&&(i=new Di(n,1,1,r,e),t?t.nj(i):t=i),t}function qRn(n){var e,t,i,r;if(n!=null){for(t=0;t=i||e-129&&n<128?(AIn(),e=n+128,t=Nun[e],!t&&(t=Nun[e]=new xU(n)),t):new xU(n)}function c4(n){var e,t;return n>-129&&n<128?(GIn(),e=n+128,t=Run[e],!t&&(t=Run[e]=new $U(n)),t):new $U(n)}function zRn(n,e){var t;n.a.c.length>0&&(t=u(an(n.a,n.a.c.length-1),579),MY(t,e))||en(n.a,new hNn(e))}function W8e(n){_s();var e,t;e=n.d.c-n.e.c,t=u(n.g,154),ou(t.b,new okn(e)),ou(t.c,new skn(e)),Ji(t.i,new fkn(e))}function XRn(n){var e;return e=new F1,e.a+="VerticalSegment ",Kc(e,n.e),e.a+=" ",Je(e,eW(new DL,new M(n.k))),e.a}function wF(n,e){var t,i,r;for(t=0,r=ac(n,e).Kc();r.Ob();)i=u(r.Pb(),12),t+=m(i,(J(),Qu))!=null?1:0;return t}function Ng(n,e,t){var i,r,c;for(i=0,c=Ce(n,0);c.b!=c.d.c&&(r=x(K(Ee(c))),!(r>t));)r>=e&&++i;return i}function WRn(n,e){Re(n);try{return n._b(e)}catch(t){if(t=_t(t),L(t,212)||L(t,169))return!1;throw C(t)}}function $Y(n,e){Re(n);try{return n.Hc(e)}catch(t){if(t=_t(t),L(t,212)||L(t,169))return!1;throw C(t)}}function V8e(n,e){Re(n);try{return n.Mc(e)}catch(t){if(t=_t(t),L(t,212)||L(t,169))return!1;throw C(t)}}function nw(n,e){Re(n);try{return n.xc(e)}catch(t){if(t=_t(t),L(t,212)||L(t,169))return null;throw C(t)}}function J8e(n,e){Re(n);try{return n.Bc(e)}catch(t){if(t=_t(t),L(t,212)||L(t,169))return null;throw C(t)}}function p5(n,e){switch(e.g){case 2:case 1:return ac(n,e);case 3:case 4:return es(ac(n,e))}return Fn(),Fn(),rr}function v5(n){var e;return(n.Db&64)!=0?zs(n):(e=new ws(zs(n)),e.a+=" (name: ",Or(e,n.zb),e.a+=")",e.a)}function Q8e(n){var e;return e=u(Rf(n.c.c,""),233),e||(e=new Lp(i3(t3(new np,""),"Other")),l1(n.c.c,"",e)),e}function RY(n,e,t){var i,r;return r=n.sb,n.sb=e,(n.Db&4)!=0&&(n.Db&1)==0&&(i=new Di(n,1,4,r,e),t?t.nj(i):t=i),t}function BY(n,e,t){var i,r;return r=n.r,n.r=e,(n.Db&4)!=0&&(n.Db&1)==0&&(i=new Di(n,1,8,r,n.r),t?t.nj(i):t=i),t}function Y8e(n,e,t){var i,r;return i=new yl(n.e,4,13,(r=e.c,r||(xn(),ih)),null,a1(n,e),!1),t?t.nj(i):t=i,t}function Z8e(n,e,t){var i,r;return i=new yl(n.e,3,13,null,(r=e.c,r||(xn(),ih)),a1(n,e),!1),t?t.nj(i):t=i,t}function o1(n,e){var t,i;return t=u(e,691),i=t.el(),!i&&t.fl(i=L(e,90)?new TTn(n,u(e,29)):new VLn(n,u(e,156))),i}function Fk(n,e,t){var i;n._i(n.i+1),i=n.Zi(e,t),e!=n.i&&Rc(n.g,e,n.g,e+1,n.i-e),zt(n.g,e,i),++n.i,n.Mi(e,t),n.Ni()}function n9e(n,e){var t;return e.a&&(t=e.a.a.length,n.a?Je(n.a,n.b):n.a=new jo(n.d),tDn(n.a,e.a,e.d.length,t)),n}function e9e(n,e){var t;n.c=e,n.a=u7e(e),n.a<54&&(n.f=(t=e.d>1?nDn(e.a[0],e.a[1]):nDn(e.a[0],0),td(e.e>0?t:i1(t))))}function $k(n,e){var t;return t=new UO,n.a.Bd(t)?(l3(),new AL(ie(xxn(n,t.a,e)))):(X1(n),l3(),l3(),Vun)}function VRn(n,e){var t;n.c.length!=0&&(t=u(_f(n,_(el,p1,10,n.c.length,0,1)),199),KX(t,new Ugn),HHn(t,e))}function JRn(n,e){var t;n.c.length!=0&&(t=u(_f(n,_(el,p1,10,n.c.length,0,1)),199),KX(t,new zgn),HHn(t,e))}function wt(n,e){return Fi(n)?On(n,e):Db(n)?GSn(n,e):Lb(n)?(ie(n),F(n)===F(e)):DV(n)?n.Fb(e):TV(n)?HTn(n,e):TJ(n,e)}function Zo(n,e,t){if(e<0)Unn(n,t);else{if(!t.rk())throw C(new Yn(ba+t.xe()+p8));u(t,69).wk().Ek(n,n.hi(),e)}}function QRn(n,e,t){if(n<0||e>t)throw C(new Fr(iS+n+Gtn+e+", size: "+t));if(n>e)throw C(new Yn(iS+n+_Xn+e))}function YRn(n){var e;return(n.Db&64)!=0?zs(n):(e=new ws(zs(n)),e.a+=" (source: ",Or(e,n.d),e.a+=")",e.a)}function ZRn(n){return n>=65&&n<=70?n-65+10:n>=97&&n<=102?n-97+10:n>=48&&n<=57?n-48:0}function t9e(n){YA();var e,t,i,r;for(t=NF(),i=0,r=t.length;i=0?ia(n):U6(ia(i1(n))))}function tBn(n,e,t,i,r,c){this.e=new nn,this.f=(Mr(),n9),en(this.e,n),this.d=e,this.a=t,this.b=i,this.f=r,this.c=c}function c9e(n,e,t){n.n=Wa($a,[Q,KR],[376,28],14,[t,Mi(y.Math.ceil(e/32))],2),n.o=e,n.p=t,n.j=e-1>>1,n.k=t-1>>1}function iBn(n){return n-=n>>1&1431655765,n=(n>>2&858993459)+(n&858993459),n=(n>>4)+n&252645135,n+=n>>8,n+=n>>16,n&63}function rBn(n,e){var t,i;for(i=new oe(n);i.e!=i.i.gc();)if(t=u(be(i),142),F(e)===F(t))return!0;return!1}function u9e(n,e,t){var i,r,c;return c=(r=j4(n.b,e),r),c&&(i=u(XA(bk(n,c),""),29),i)?den(n,i,e,t):null}function gF(n,e,t){var i,r,c;return c=(r=j4(n.b,e),r),c&&(i=u(XA(bk(n,c),""),29),i)?ben(n,i,e,t):null}function o9e(n,e){var t;if(t=Pg(n.i,e),t==null)throw C(new ch("Node did not exist in input."));return rY(e,t),null}function s9e(n,e){var t;if(t=fy(n,e),L(t,331))return u(t,35);throw C(new Yn(ba+e+"' is not a valid attribute"))}function k5(n,e,t){var i;if(i=n.gc(),e>i)throw C(new Rb(e,i));if(n.Si()&&n.Hc(t))throw C(new Yn(Jy));n.Gi(e,t)}function f9e(n,e){e.Ug("Sort end labels",1),Zt(pt(hc(new Pn(null,new Nn(n.b,16)),new Ign),new Pgn),new Ogn),e.Vg()}function di(){di=$,nh=new y7(i8,0),Zr=new y7(ov,1),Gr=new y7(uv,2),Zf=new y7(ZR,3),hs=new y7("UP",4)}function Bk(){Bk=$,QP=new kD("P1_STRUCTURE",0),YP=new kD("P2_PROCESSING_ORDER",1),ZP=new kD("P3_EXECUTION",2)}function cBn(){cBn=$,Pce=gh(gh(l6(gh(gh(l6(Qe(new li,(Vp(),c9),(q5(),dq)),u9),Tln),Sln),o9),jln),Iln)}function h9e(n){switch(u(m(n,(J(),Pd)),311).g){case 1:U(n,Pd,(jl(),yv));break;case 2:U(n,Pd,(jl(),p2))}}function l9e(n){switch(n){case 0:return new Wjn;case 1:return new zjn;case 2:return new Xjn;default:throw C(new Z9)}}function uBn(n){switch(n.g){case 2:return Zr;case 1:return Gr;case 4:return Zf;case 3:return hs;default:return nh}}function qY(n,e){switch(n.b.g){case 0:case 1:return e;case 2:case 3:return new zo(e.d,0,e.a,e.b);default:return null}}function GY(n){switch(n.g){case 1:return te;case 2:return ne;case 3:return ue;case 4:return ye;default:return bc}}function Kk(n){switch(n.g){case 1:return ye;case 2:return te;case 3:return ne;case 4:return ue;default:return bc}}function qT(n){switch(n.g){case 1:return ue;case 2:return ye;case 3:return te;case 4:return ne;default:return bc}}function UY(n,e,t,i){switch(e){case 1:return!n.n&&(n.n=new G(xr,n,1,7)),n.n;case 2:return n.k}return $Z(n,e,t,i)}function y5(n,e,t){var i,r;return n.Pj()?(r=n.Qj(),i=E$(n,e,t),n.Jj(n.Ij(7,Z(t),i,e,r)),i):E$(n,e,t)}function pF(n,e){var t,i,r;n.d==null?(++n.e,--n.f):(r=e.ld(),t=e.Bi(),i=(t&at)%n.d.length,J4e(n,i,Iqn(n,i,t,r)))}function u4(n,e){var t;t=(n.Bb&Vs)!=0,e?n.Bb|=Vs:n.Bb&=-1025,(n.Db&4)!=0&&(n.Db&1)==0&&bt(n,new qs(n,1,10,t,e))}function o4(n,e){var t;t=(n.Bb&pw)!=0,e?n.Bb|=pw:n.Bb&=-4097,(n.Db&4)!=0&&(n.Db&1)==0&&bt(n,new qs(n,1,12,t,e))}function s4(n,e){var t;t=(n.Bb&_u)!=0,e?n.Bb|=_u:n.Bb&=-8193,(n.Db&4)!=0&&(n.Db&1)==0&&bt(n,new qs(n,1,15,t,e))}function f4(n,e){var t;t=(n.Bb&Mw)!=0,e?n.Bb|=Mw:n.Bb&=-2049,(n.Db&4)!=0&&(n.Db&1)==0&&bt(n,new qs(n,1,11,t,e))}function a9e(n){var e;n.g&&(e=n.c.kg()?n.f:n.a,Aen(e.a,n.o,!0),Aen(e.a,n.o,!1),U(n.o,(fn(),Yt),(Ki(),qd)))}function d9e(n){var e;if(!n.a)throw C(new $r("Cannot offset an unassigned cut."));e=n.c-n.b,n.b+=e,OOn(n,e),POn(n,e)}function b9e(n,e){var t;if(t=se(n.k,e),t==null)throw C(new ch("Port did not exist in input."));return rY(e,t),null}function w9e(n){var e,t;for(t=Tqn(To(n)).Kc();t.Ob();)if(e=_e(t.Pb()),G5(n,e))return g4e((sCn(),Ose),e);return null}function oBn(n){var e,t;for(t=n.p.a.ec().Kc();t.Ob();)if(e=u(t.Pb(),218),e.f&&n.b[e.c]<-1e-10)return e;return null}function g9e(n){var e,t;for(t=z1(new F1,91),e=!0;n.Ob();)e||(t.a+=dr),e=!1,Kc(t,n.Pb());return(t.a+="]",t).a}function p9e(n){var e,t,i;for(e=new nn,i=new M(n.b);i.ae?1:n==e?n==0?Tt(1/n,1/e):0:isNaN(n)?isNaN(e)?0:1:-1}function m9e(n){var e;return e=n.a[n.c-1&n.a.length-1],e==null?null:(n.c=n.c-1&n.a.length-1,zt(n.a,n.c,null),e)}function k9e(n){var e,t,i;for(i=0,t=n.length,e=0;e=1?Zr:Zf):t}function M9e(n){switch(u(m(n,(fn(),Rl)),223).g){case 1:return new gvn;case 3:return new yvn;default:return new wvn}}function ta(n){if(n.c)ta(n.c);else if(n.d)throw C(new $r("Stream already terminated, can't be modified or used"))}function N0(n,e,t){var i;return i=n.a.get(e),n.a.set(e,t===void 0?null:t),i===void 0?(++n.c,++n.b.g):++n.d,i}function C9e(n,e,t){var i,r;for(r=n.a.ec().Kc();r.Ob();)if(i=u(r.Pb(),10),Ak(t,u(an(e,i.p),16)))return i;return null}function XY(n,e,t){var i;return i=0,e&&(gg(n.a)?i+=e.f.a/2:i+=e.f.b/2),t&&(gg(n.a)?i+=t.f.a/2:i+=t.f.b/2),i}function T9e(n,e,t){var i;i=t,!i&&(i=bV(new cp,0)),i.Ug(vWn,2),aKn(n.b,e,i.eh(1)),_Le(n,e,i.eh(1)),GNe(e,i.eh(1)),i.Vg()}function WY(n,e,t){var i,r;return i=(R1(),r=new CE,r),gT(i,e),wT(i,t),n&&Se((!n.a&&(n.a=new hi(Ko,n,5)),n.a),i),i}function mF(n){var e;return(n.Db&64)!=0?zs(n):(e=new ws(zs(n)),e.a+=" (identifier: ",Or(e,n.k),e.a+=")",e.a)}function kF(n,e){var t;t=(n.Bb&Ac)!=0,e?n.Bb|=Ac:n.Bb&=-32769,(n.Db&4)!=0&&(n.Db&1)==0&&bt(n,new qs(n,1,18,t,e))}function VY(n,e){var t;t=(n.Bb&Ac)!=0,e?n.Bb|=Ac:n.Bb&=-32769,(n.Db&4)!=0&&(n.Db&1)==0&&bt(n,new qs(n,1,18,t,e))}function h4(n,e){var t;t=(n.Bb&mh)!=0,e?n.Bb|=mh:n.Bb&=-16385,(n.Db&4)!=0&&(n.Db&1)==0&&bt(n,new qs(n,1,16,t,e))}function JY(n,e){var t;t=(n.Bb&pr)!=0,e?n.Bb|=pr:n.Bb&=-65537,(n.Db&4)!=0&&(n.Db&1)==0&&bt(n,new qs(n,1,20,t,e))}function QY(n){var e;return e=_(ds,kh,28,2,15,1),n-=pr,e[0]=(n>>10)+Py&bi,e[1]=(n&1023)+56320&bi,ms(e,0,e.length)}function A9e(n){var e;return e=uw(n),e>34028234663852886e22?Bt:e<-34028234663852886e22?mi:e}function or(n,e){var t;return nc(n)&&nc(e)&&(t=n+e,Iy"+ed(e.c):"e_"+It(e),n.b&&n.c?ed(n.b)+"->"+ed(n.c):"e_"+It(n))}function P9e(n,e){return On(e.b&&e.c?ed(e.b)+"->"+ed(e.c):"e_"+It(e),n.b&&n.c?ed(n.b)+"->"+ed(n.c):"e_"+It(n))}function x0(n,e){return Pf(),Gs(fa),y.Math.abs(n-e)<=fa||n==e||isNaN(n)&&isNaN(e)?0:ne?1:o0(isNaN(n),isNaN(e))}function Tl(){Tl=$,CG=new MM(i8,0),nE=new MM("POLYLINE",1),$m=new MM("ORTHOGONAL",2),xv=new MM("SPLINES",3)}function UT(){UT=$,T1n=new vD("ASPECT_RATIO_DRIVEN",0),Uq=new vD("MAX_SCALE_DRIVEN",1),C1n=new vD("AREA_DRIVEN",2)}function O9e(n,e,t){var i;try{n8e(n,e,t)}catch(r){throw r=_t(r),L(r,606)?(i=r,C(new QJ(i))):C(r)}return e}function L9e(n){var e,t,i;for(t=0,i=n.length;te&&i.Ne(n[c-1],n[c])>0;--c)s=n[c],zt(n,c,n[c-1]),zt(n,c-1,s)}function Mn(n,e){var t,i,r,c,s;if(t=e.f,l1(n.c.d,t,e),e.g!=null)for(r=e.g,c=0,s=r.length;ce){cDn(t);break}}U7(t,e)}function F9e(n,e){var t,i,r;i=Tg(e),r=x(K(tw(i,(fn(),Zs)))),t=y.Math.max(0,r/2-.5),P5(e,t,1),en(n,new MCn(e,t))}function $9e(n,e,t){var i;t.Ug("Straight Line Edge Routing",1),t.dh(e,Zrn),i=u(X(e,(Eg(),I2)),27),XUn(n,i),t.dh(e,FS)}function YY(n,e){n.n.c.length==0&&en(n.n,new RC(n.s,n.t,n.i)),en(n.b,e),LZ(u(an(n.n,n.n.c.length-1),209),e),IUn(n,e)}function j5(n){var e;this.a=(e=u(n.e&&n.e(),9),new Uo(e,u(Ks(e,e.length),9),0)),this.b=_(Ii,Gn,1,this.a.a.length,5,1)}function tc(n){var e;return Array.isArray(n)&&n.Tm===V2?za(mo(n))+"@"+(e=It(n)>>>0,e.toString(16)):n.toString()}function R9e(n,e){return n.h==Sy&&n.m==0&&n.l==0?(e&&(wa=cu(0,0,0)),GTn((F3(),Sun))):(e&&(wa=cu(n.l,n.m,n.h)),cu(0,0,0))}function B9e(n,e){switch(e.g){case 2:return n.b;case 1:return n.c;case 4:return n.d;case 3:return n.a;default:return!1}}function lBn(n,e){switch(e.g){case 2:return n.b;case 1:return n.c;case 4:return n.d;case 3:return n.a;default:return!1}}function ZY(n,e,t,i){switch(e){case 3:return n.f;case 4:return n.g;case 5:return n.i;case 6:return n.j}return UY(n,e,t,i)}function zT(n,e){if(e==n.d)return n.e;if(e==n.e)return n.d;throw C(new Yn("Node "+e+" not part of edge "+n))}function K9e(n,e){var t;if(t=fy(n.Dh(),e),L(t,102))return u(t,19);throw C(new Yn(ba+e+"' is not a valid reference"))}function ns(n,e,t,i){if(e<0)ven(n,t,i);else{if(!t.rk())throw C(new Yn(ba+t.xe()+p8));u(t,69).wk().Ck(n,n.hi(),e,i)}}function co(n){var e;if(n.b){if(co(n.b),n.b.d!=n.c)throw C(new Ho)}else n.d.dc()&&(e=u(n.f.c.xc(n.e),16),e&&(n.d=e))}function _9e(n){Fb();var e,t,i,r;for(e=n.o.b,i=u(u(kt(n.r,(rn(),ye)),21),87).Kc();i.Ob();)t=u(i.Pb(),117),r=t.e,r.b+=e}function H9e(n){var e,t,i;for(this.a=new sh,i=new M(n);i.a=r)return e.c+t;return e.c+e.b.gc()}function G9e(n,e){w3();var t,i,r,c;for(i=Exn(n),r=e,N3(i,0,i.length,r),t=0;t0&&(i+=r,++t);return t>1&&(i+=n.d*(t-1)),i}function z9e(n){var e,t,i,r,c;return c=pnn(n),t=i7(n.c),i=!t,i&&(r=new Ka,mf(c,"knownLayouters",r),e=new ejn(r),Ji(n.c,e)),c}function tZ(n){var e,t,i;for(i=new Ul,i.a+="[",e=0,t=n.gc();e0&&(Zn(e-1,n.length),n.charCodeAt(e-1)==58)&&!EF(n,N9,x9))}function iZ(n,e){var t;return F(n)===F(e)?!0:L(e,92)?(t=u(e,92),n.e==t.e&&n.d==t.d&&m4e(n,t.a)):!1}function Gp(n){switch(rn(),n.g){case 4:return ne;case 1:return ue;case 3:return ye;case 2:return te;default:return bc}}function J9e(n){var e,t;if(n.b)return n.b;for(t=Wf?null:n.d;t;){if(e=Wf?null:t.b,e)return e;t=Wf?null:t.d}return f3(),Yun}function rZ(n){var e,t,i;for(i=x(K(n.a.of((et(),oO)))),t=new M(n.a.Sf());t.a>5,e=n&31,i=_(Oe,Ye,28,t+1,15,1),i[t]=1<3;)r*=10,--c;n=(n+(r>>1))/r|0}return i.i=n,!0}function Ht(n,e){var t,i,r;if(t=(n.i==null&&vh(n),n.i),i=e.Lj(),i!=-1){for(r=t.length;i=0;--i)for(e=t[i],r=0;r>1,this.k=e-1>>1}function l7e(n){tT(),u(n.of((et(),Ta)),181).Hc((oo(),bO))&&(u(n.of(Xw),181).Fc((Ju(),Fv)),u(n.of(Ta),181).Mc(bO))}function vBn(n){var e,t;e=n.d==(Jp(),hm),t=onn(n),e&&!t||!e&&t?U(n.a,(fn(),Ph),(qh(),zj)):U(n.a,(fn(),Ph),(qh(),Uj))}function TF(){TF=$,rM(),AP=(fn(),wb),Hie=xf(S(T(oG,1),Krn,149,0,[Sj,Zs,E2,bb,_w,GH,Mm,Cm,UH,J8,j2,$d,M2]))}function a7e(n,e){var t;return t=u(ec(n,Xu(new Su,new Au,new Iu,S(T(Hr,1),z,108,0,[(Vu(),rc)]))),15),t.Qc(BIn(t.gc()))}function mBn(n,e){var t,i;if(i=new Vv(n.a.ad(e,!0)),i.a.gc()<=1)throw C(new tp);return t=i.a.ec().Kc(),t.Pb(),u(t.Pb(),40)}function d7e(n,e,t){var i,r;return i=x(n.p[e.i.p])+x(n.d[e.i.p])+e.n.b+e.a.b,r=x(n.p[t.i.p])+x(n.d[t.i.p])+t.n.b+t.a.b,r-i}function lZ(n,e){var t;return n.i>0&&(e.lengthn.i&&zt(e,n.i,null),e}function WT(n){var e;return(n.Db&64)!=0?v5(n):(e=new ws(v5(n)),e.a+=" (instanceClassName: ",Or(e,n.D),e.a+=")",e.a)}function VT(n){var e,t,i,r;for(r=0,t=0,i=n.length;t0?(n._j(),i=e==null?0:It(e),r=(i&at)%n.d.length,t=Iqn(n,r,i,e),t!=-1):!1}function kBn(n,e){var t,i;n.a=or(n.a,1),n.c=y.Math.min(n.c,e),n.b=y.Math.max(n.b,e),n.d+=e,t=e-n.f,i=n.e+t,n.f=i-n.e-t,n.e=i}function aZ(n,e){switch(e){case 3:S0(n,0);return;case 4:I0(n,0);return;case 5:su(n,0);return;case 6:fu(n,0);return}FY(n,e)}function F0(n,e){switch(e.g){case 1:return jp(n.j,($u(),U_));case 2:return jp(n.j,($u(),z_));default:return Fn(),Fn(),rr}}function dZ(n){p0();var e;switch(e=n.Pc(),e.length){case 0:return e_;case 1:return new uN(Re(e[0]));default:return new _N(L9e(e))}}function yBn(n,e){n.Xj();try{n.d.bd(n.e++,e),n.f=n.d.j,n.g=-1}catch(t){throw t=_t(t),L(t,77)?C(new Ho):C(t)}}function SF(){SF=$,KG=new g6n,o0n=new p6n,s0n=new v6n,f0n=new m6n,h0n=new k6n,l0n=new y6n,a0n=new j6n,d0n=new E6n,b0n=new M6n}function JT(n,e){FX();var t,i;return t=N7((GE(),GE(),I8)),i=null,e==t&&(i=u(Hc(Tun,n),624)),i||(i=new KPn(n),e==t&&Rr(Tun,n,i)),i}function jBn(n){iw();var e;return(n.q?n.q:(Fn(),Fn(),Zh))._b((fn(),ab))?e=u(m(n,ab),203):e=u(m(Vi(n),V8),203),e}function tw(n,e){var t,i;return i=null,Ot(n,(fn(),CP))&&(t=u(m(n,CP),96),t.pf(e)&&(i=t.of(e))),i==null&&(i=m(Vi(n),e)),i}function EBn(n,e){var t,i,r;return L(e,44)?(t=u(e,44),i=t.ld(),r=nw(n.Rc(),i),ah(r,t.md())&&(r!=null||n.Rc()._b(i))):!1}function yf(n,e){var t,i,r;return n.f>0&&(n._j(),i=e==null?0:It(e),r=(i&at)%n.d.length,t=Ynn(n,r,i,e),t)?t.md():null}function eu(n,e,t){var i,r,c;return n.Pj()?(i=n.i,c=n.Qj(),Fk(n,i,e),r=n.Ij(3,null,e,i,c),t?t.nj(r):t=r):Fk(n,n.i,e),t}function w7e(n,e,t){var i,r;return i=new yl(n.e,4,10,(r=e.c,L(r,90)?u(r,29):(xn(),Ns)),null,a1(n,e),!1),t?t.nj(i):t=i,t}function g7e(n,e,t){var i,r;return i=new yl(n.e,3,10,null,(r=e.c,L(r,90)?u(r,29):(xn(),Ns)),a1(n,e),!1),t?t.nj(i):t=i,t}function MBn(n){Fb();var e;return e=new lr(u(n.e.of((et(),R2)),8)),n.B.Hc((oo(),Bm))&&(e.a<=0&&(e.a=20),e.b<=0&&(e.b=20)),e}function ia(n){ph();var e,t;return t=$e(n),e=$e(G1(n,32)),e!=0?new LLn(t,e):t>10||t<0?new ml(1,t):lYn[t]}function Hk(n,e){var t;return nc(n)&&nc(e)&&(t=n%e,Iy=0?c=c.a[1]:(r=c,c=c.a[0])}return r}function Gk(n,e,t){var i,r,c;for(r=null,c=n.b;c;){if(i=n.a.Ne(e,c.d),t&&i==0)return c;i<=0?c=c.a[0]:(r=c,c=c.a[1])}return r}function j7e(n,e,t,i){var r,c,s;return r=!1,CDe(n.f,t,i)&&(G7e(n.f,n.a[e][t],n.a[e][i]),c=n.a[e],s=c[i],c[i]=c[t],c[t]=s,r=!0),r}function SBn(n,e,t){var i,r,c,s;for(r=u(se(n.b,t),183),i=0,s=new M(e.j);s.a>5,e&=31,r=n.d+t+(e==0?0:1),i=_(Oe,Ye,28,r,15,1),kEe(i,n.a,t,e),c=new Qa(n.e,r,i),Q6(c),c}function E7e(n,e){var t,i,r;for(i=new he(de(ri(n).a.Kc(),new zn));Te(i);)if(t=u(pe(i),18),r=t.d.i,r.c==e)return!1;return!0}function gZ(n,e,t){var i,r,c,s,f;return s=n.k,f=e.k,i=t[s.g][f.g],r=K(tw(n,i)),c=K(tw(e,i)),y.Math.max((ie(r),r),(ie(c),c))}function M7e(){return Error.stackTraceLimit>0?(y.Error.stackTraceLimit=Error.stackTraceLimit=64,!0):"stack"in new Error}function C7e(n,e){return Pf(),Pf(),Gs(fa),(y.Math.abs(n-e)<=fa||n==e||isNaN(n)&&isNaN(e)?0:ne?1:o0(isNaN(n),isNaN(e)))>0}function pZ(n,e){return Pf(),Pf(),Gs(fa),(y.Math.abs(n-e)<=fa||n==e||isNaN(n)&&isNaN(e)?0:ne?1:o0(isNaN(n),isNaN(e)))<0}function PBn(n,e){return Pf(),Pf(),Gs(fa),(y.Math.abs(n-e)<=fa||n==e||isNaN(n)&&isNaN(e)?0:ne?1:o0(isNaN(n),isNaN(e)))<=0}function PF(n,e){for(var t=0;!e[t]||e[t]=="";)t++;for(var i=e[t++];t0&&this.b>0&&(this.g=fC(this.c,this.b,this.a))}function T7e(n,e){var t=n.a,i;e=String(e),t.hasOwnProperty(e)&&(i=t[e]);var r=(Yx(),o_)[typeof i],c=r?r(i):OY(typeof i);return c}function a4(n){var e,t,i;if(i=null,e=Ah in n.a,t=!e,t)throw C(new ch("Every element must have an id."));return i=Qp(gl(n,Ah)),i}function $0(n){var e,t;for(t=tHn(n),e=null;n.c==2;)ht(n),e||(e=(lt(),lt(),++Vt,new I6(2)),gd(e,t),t=e),t.Jm(tHn(n));return t}function YT(n,e){var t,i,r;return n._j(),i=e==null?0:It(e),r=(i&at)%n.d.length,t=Ynn(n,r,i,e),t?(RFn(n,t),t.md()):null}function $Bn(n,e){return n.e>e.e?1:n.ee.d?n.e:n.d=48&&n<48+y.Math.min(10,10)?n-48:n>=97&&n<97?n-97+10:n>=65&&n<65?n-65+10:-1}function A7e(n,e){if(e.c==n)return e.d;if(e.d==n)return e.c;throw C(new Yn("Input edge is not connected to the input port."))}function S7e(n){if(nA(Q4,n))return Wn(),rm;if(nA(pK,n))return Wn(),ga;throw C(new Yn("Expecting true or false"))}function kZ(n){switch(typeof n){case aR:return c1(n);case Itn:return wp(n);case ev:return vSn(n);default:return n==null?0:h0(n)}}function gh(n,e){if(n.a<0)throw C(new $r("Did not call before(...) or after(...) before calling add(...)."));return bW(n,n.a,e),n}function yZ(n){return BC(),L(n,162)?u(se(aE,gYn),295).Rg(n):uu(aE,mo(n))?u(se(aE,mo(n)),295).Rg(n):null}function hu(n){var e,t;return(n.Db&32)==0&&(t=(e=u(Qn(n,16),29),ge(e||n.ii())-ge(n.ii())),t!=0&&Up(n,32,_(Ii,Gn,1,t,5,1))),n}function Up(n,e,t){var i;(n.Db&e)!=0?t==null?lTe(n,e):(i=QF(n,e),i==-1?n.Eb=t:zt(rd(n.Eb),i,t)):t!=null&&NSe(n,e,t)}function I7e(n,e,t,i){var r,c;e.c.length!=0&&(r=MAe(t,i),c=CCe(e),Zt(dT(new Pn(null,new Nn(c,1)),new k3n),new wOn(n,t,r,i)))}function P7e(n,e){var t,i,r,c;return i=n.a.length-1,t=e-n.b&i,c=n.c-e&i,r=n.c-n.b&i,dSn(t=c?(S8e(n,e),-1):(A8e(n,e),1)}function ZT(n){var e,t,i;if(i=n.Jh(),!i)for(e=0,t=n.Ph();t;t=t.Ph()){if(++e>_R)return t.Qh();if(i=t.Jh(),i||t==n)break}return i}function BBn(n,e){var t;return F(e)===F(n)?!0:!L(e,21)||(t=u(e,21),t.gc()!=n.gc())?!1:n.Ic(t)}function O7e(n,e){return n.ee.e?1:n.fe.f?1:It(n)-It(e)}function nA(n,e){return ie(n),e==null?!1:On(n,e)?!0:n.length==e.length&&On(n.toLowerCase(),e.toLowerCase())}function Sl(n){var e,t;return Pc(n,-129)>0&&Pc(n,128)<0?(qIn(),e=$e(n)+128,t=xun[e],!t&&(t=xun[e]=new FU(n)),t):new FU(n)}function ad(){ad=$,Iw=new gM(Mh,0),Von=new gM("INSIDE_PORT_SIDE_GROUPS",1),__=new gM("GROUP_MODEL_ORDER",2),H_=new gM(min,3)}function L7e(n){var e;return n.b||C1e(n,(e=M0e(n.e,n.a),!e||!On(pK,yf((!e.b&&(e.b=new go((xn(),mr),Ec,e)),e.b),"qualified")))),n.c}function D7e(n,e){var t,i;for(t=(Zn(e,n.length),n.charCodeAt(e)),i=e+1;i2e3&&(eYn=n,hI=y.setTimeout(P1e,10))),fI++==0?(zme((Sz(),Cun)),!0):!1}function X7e(n,e,t){var i;(EYn?(J9e(n),!0):MYn||TYn?(f3(),!0):CYn&&(f3(),!1))&&(i=new tIn(e),i.b=t,eMe(n,i))}function LF(n,e){var t;t=!n.A.Hc((ko(),Gd))||n.q==(Ki(),Qc),n.u.Hc((Ju(),Kl))?t?FNe(n,e):Nzn(n,e):n.u.Hc(Pa)&&(t?tNe(n,e):Vzn(n,e))}function UBn(n){var e;F(X(n,(et(),F2)))===F((Cl(),hO))&&(Rt(n)?(e=u(X(Rt(n),F2),346),Et(n,F2,e)):Et(n,F2,C9))}function W7e(n){var e,t;return Ot(n.d.i,(fn(),ym))?(e=u(m(n.c.i,ym),17),t=u(m(n.d.i,ym),17),Ic(e.a,t.a)>0):!1}function zBn(n,e,t){return new zo(y.Math.min(n.a,e.a)-t/2,y.Math.min(n.b,e.b)-t/2,y.Math.abs(n.a-e.a)+t,y.Math.abs(n.b-e.b)+t)}function XBn(n){var e;this.d=new nn,this.j=new _i,this.g=new _i,e=n.g.b,this.f=u(m(Vi(e),(fn(),Fo)),88),this.e=x(K(rA(e,_w)))}function WBn(n){this.d=new nn,this.e=new n1,this.c=_(Oe,Ye,28,(rn(),S(T(vr,1),Lc,64,0,[bc,ne,ue,ye,te])).length,15,1),this.b=n}function MZ(n,e,t){var i;switch(i=t[n.g][e],n.g){case 1:case 3:return new V(0,i);case 2:case 4:return new V(i,0);default:return null}}function VBn(n,e,t){var i,r;r=u(J7(e.f),205);try{r.rf(n,t),nOn(e.f,r)}catch(c){throw c=_t(c),L(c,103)?(i=c,C(i)):C(c)}}function JBn(n,e,t){var i,r,c,s,f,h;return i=null,f=wtn(q3(),e),c=null,f&&(r=null,h=dtn(f,t),s=null,h!=null&&(s=n.qf(f,h)),r=s,c=r),i=c,i}function DF(n,e,t,i){var r;if(r=n.length,e>=r)return r;for(e=e>0?e:0;ei&&zt(e,i,null),e}function QBn(n,e){var t,i;for(i=n.a.length,e.lengthi&&zt(e,i,null),e}function d4(n,e){var t,i;if(++n.j,e!=null&&(t=(i=n.a.Cb,L(i,99)?u(i,99).th():null),ZCe(e,t))){Up(n.a,4,t);return}Up(n.a,4,u(e,129))}function V7e(n){var e;if(n==null)return null;if(e=nAe(Uc(n,!0)),e==null)throw C(new LL("Invalid hexBinary value: '"+n+"'"));return e}function eA(n,e,t){var i;e.a.length>0&&(en(n.b,new vIn(e.a,t)),i=e.a.length,0i&&(e.a+=kAn(_(ds,kh,28,-i,15,1))))}function YBn(n,e,t){var i,r,c;if(!t[e.d])for(t[e.d]=!0,r=new M(Dg(e));r.a=n.b>>1)for(i=n.c,t=n.b;t>e;--t)i=i.b;else for(i=n.a.a,t=0;t=0?n.Wh(r):j$(n,i)):t<0?j$(n,i):u(i,69).wk().Bk(n,n.hi(),t)}function tKn(n){var e,t,i;for(i=(!n.o&&(n.o=new Fu((Oc(),ol),I1,n,0)),n.o),t=i.c.Kc();t.e!=t.i.gc();)e=u(t.Yj(),44),e.md();return sk(i)}function un(n){var e;if(L(n.a,4)){if(e=yZ(n.a),e==null)throw C(new $r(EVn+n.b+"'. "+jVn+(bl(dE),dE.k)+Ocn));return e}else return n.a}function ike(n,e){var t,i;if(n.j.length!=e.j.length)return!1;for(t=0,i=n.j.length;t=64&&e<128&&(r=gf(r,Hs(1,e-64)));return r}function rA(n,e){var t,i;return i=null,Ot(n,(et(),Dv))&&(t=u(m(n,Dv),96),t.pf(e)&&(i=t.of(e))),i==null&&Vi(n)&&(i=m(Vi(n),e)),i}function rke(n,e){var t;return t=u(m(n,(fn(),qr)),75),DD(e,Mne)?t?Eo(t):(t=new Ou,U(n,qr,t)):t&&U(n,qr,null),t}function C5(){C5=$,Ion=(et(),rdn),S_=Ran,EZn=D2,Son=A1,AZn=(gA(),oon),TZn=con,SZn=fon,CZn=ron,MZn=(fF(),Con),A_=kZn,Aon=yZn,yI=jZn}function cA(n){switch(Qz(),this.c=new nn,this.d=n,n.g){case 0:case 2:this.a=cJ(Won),this.b=Bt;break;case 3:case 1:this.a=Won,this.b=mi}}function cke(n){var e;yp(u(m(n,(fn(),Yt)),101))&&(e=n.b,GHn(($n(0,e.c.length),u(e.c[0],30))),GHn(u(an(e,e.c.length-1),30)))}function uke(n,e){e.Ug("Self-Loop post-processing",1),Zt(pt(pt(hc(new Pn(null,new Nn(n.b,16)),new V2n),new J2n),new Q2n),new Y2n),e.Vg()}function iKn(n,e,t){var i,r;if(n.c)su(n.c,n.c.i+e),fu(n.c,n.c.j+t);else for(r=new M(n.b);r.a=0&&(t.d=n.t);break;case 3:n.t>=0&&(t.a=n.t)}n.C&&(t.b=n.C.b,t.c=n.C.c)}function T5(){T5=$,Vhn=new w7(_rn,0),nq=new w7(kB,1),eq=new w7("LINEAR_SEGMENTS",2),Y8=new w7("BRANDES_KOEPF",3),Z8=new w7(QWn,4)}function A5(){A5=$,lj=new bM(cS,0),mI=new bM(nB,1),kI=new bM(eB,2),aj=new bM(tB,3),lj.a=!1,mI.a=!0,kI.a=!1,aj.a=!0}function zp(){zp=$,sj=new dM(cS,0),oj=new dM(nB,1),fj=new dM(eB,2),hj=new dM(tB,3),sj.a=!1,oj.a=!0,fj.a=!1,hj.a=!0}function Xp(n,e,t,i){var r;return t>=0?n.Sh(e,t,i):(n.Ph()&&(i=(r=n.Fh(),r>=0?n.Ah(i):n.Ph().Th(n,-1-r,null,i))),n.Ch(e,t,i))}function CZ(n,e){switch(e){case 7:!n.e&&(n.e=new Kn(ii,n,7,4)),Ae(n.e);return;case 8:!n.d&&(n.d=new Kn(ii,n,8,5)),Ae(n.d);return}aZ(n,e)}function Et(n,e,t){return t==null?(!n.o&&(n.o=new Fu((Oc(),ol),I1,n,0)),YT(n.o,e)):(!n.o&&(n.o=new Fu((Oc(),ol),I1,n,0)),Jk(n.o,e,t)),n}function oKn(n,e){Fn();var t,i,r,c;for(t=n,c=e,L(n,21)&&!L(e,21)&&(t=e,c=n),r=t.Kc();r.Ob();)if(i=r.Pb(),c.Hc(i))return!1;return!0}function lke(n,e,t,i){if(e.at.b)return!0}return!1}function RF(n,e){return Fi(n)?!!WQn[e]:n.Sm?!!n.Sm[e]:Db(n)?!!XQn[e]:Lb(n)?!!zQn[e]:!1}function ake(n){var e;e=n.a;do e=u(pe(new he(de(Oi(e).a.Kc(),new zn))),18).c.i,e.k==(ee(),Ni)&&n.b.Fc(e);while(e.k==(ee(),Ni));n.b=es(n.b)}function sKn(n,e){var t,i,r;for(r=n,i=new he(de(Oi(e).a.Kc(),new zn));Te(i);)t=u(pe(i),18),t.c.i.c&&(r=y.Math.max(r,t.c.i.c.p));return r}function dke(n,e){var t,i,r;for(r=0,i=u(u(kt(n.r,e),21),87).Kc();i.Ob();)t=u(i.Pb(),117),r+=t.d.d+t.b.Mf().b+t.d.a,i.Ob()&&(r+=n.w);return r}function bke(n,e){var t,i,r;for(r=0,i=u(u(kt(n.r,e),21),87).Kc();i.Ob();)t=u(i.Pb(),117),r+=t.d.b+t.b.Mf().a+t.d.c,i.Ob()&&(r+=n.w);return r}function fKn(n){var e,t,i,r;if(i=0,r=hw(n),r.c.length==0)return 1;for(t=new M(r);t.a=0?n.Lh(s,t,!0):_0(n,c,t)):u(c,69).wk().yk(n,n.hi(),r,t,i)}function vke(n,e,t,i){var r,c;c=e.pf((et(),$2))?u(e.of($2),21):n.j,r=t9e(c),r!=(YA(),E_)&&(t&&!vZ(r)||Pnn(eAe(n,r,i),e))}function mke(n){switch(n.g){case 1:return D0(),uj;case 3:return D0(),cj;case 2:return D0(),C_;case 4:return D0(),M_;default:return null}}function kke(n,e,t){if(n.e)switch(n.b){case 1:hpe(n.c,e,t);break;case 0:lpe(n.c,e,t)}else PDn(n.c,e,t);n.a[e.p][t.p]=n.c.i,n.a[t.p][e.p]=n.c.e}function hKn(n){var e,t;if(n==null)return null;for(t=_(el,Q,199,n.length,0,2),e=0;e=0)return r;if(n.ol()){for(i=0;i=r)throw C(new Rb(e,r));if(n.Si()&&(i=n.dd(t),i>=0&&i!=e))throw C(new Yn(Jy));return n.Xi(e,t)}function TZ(n,e){if(this.a=u(Re(n),253),this.b=u(Re(e),253),n.Ed(e)>0||n==(CL(),ZK)||e==(TL(),n_))throw C(new Yn("Invalid range: "+DDn(n,e)))}function lKn(n){var e,t;for(this.b=new nn,this.c=n,this.a=!1,t=new M(n.a);t.a0),(e&-e)==e)return Mi(e*uo(n,31)*4656612873077393e-25);do t=uo(n,31),i=t%e;while(t-i+(e-1)<0);return Mi(i)}function Tke(n,e,t){switch(t.g){case 1:n.a=e.a/2,n.b=0;break;case 2:n.a=e.a,n.b=e.b/2;break;case 3:n.a=e.a/2,n.b=e.b;break;case 4:n.a=0,n.b=e.b/2}}function Uk(n,e,t,i){var r,c;for(r=e;r1&&(c=jke(n,e)),c}function bKn(n){var e;return e=x(K(X(n,(et(),Zj))))*y.Math.sqrt((!n.a&&(n.a=new G(ft,n,10,11)),n.a).i),new V(e,e/x(K(X(n,sO))))}function KF(n){var e;return n.f&&n.f.Vh()&&(e=u(n.f,54),n.f=u(ea(n,e),84),n.f!=e&&(n.Db&4)!=0&&(n.Db&1)==0&&bt(n,new Di(n,9,8,e,n.f))),n.f}function _F(n){var e;return n.i&&n.i.Vh()&&(e=u(n.i,54),n.i=u(ea(n,e),84),n.i!=e&&(n.Db&4)!=0&&(n.Db&1)==0&&bt(n,new Di(n,9,7,e,n.i))),n.i}function jr(n){var e;return n.b&&(n.b.Db&64)!=0&&(e=n.b,n.b=u(ea(n,e),19),n.b!=e&&(n.Db&4)!=0&&(n.Db&1)==0&&bt(n,new Di(n,9,21,e,n.b))),n.b}function hA(n,e){var t,i,r;n.d==null?(++n.e,++n.f):(i=e.Bi(),VAe(n,n.f+1),r=(i&at)%n.d.length,t=n.d[r],!t&&(t=n.d[r]=n.dk()),t.Fc(e),++n.f)}function IZ(n,e,t){var i;return e.tk()?!1:e.Ik()!=-2?(i=e.ik(),i==null?t==null:wt(i,t)):e.qk()==n.e.Dh()&&t==null}function lA(){var n;So(16,CXn),n=YFn(16),this.b=_(t_,Ty,303,n,0,1),this.c=_(t_,Ty,303,n,0,1),this.a=null,this.e=null,this.i=0,this.f=n-1,this.g=0}function Il(n){xW.call(this),this.k=(ee(),ti),this.j=(So(6,gw),new Zc(6)),this.b=(So(2,gw),new Zc(2)),this.d=new kL,this.f=new gz,this.a=n}function Ske(n){var e,t;n.c.length<=1||(e=vGn(n,(rn(),ye)),cHn(n,u(e.a,17).a,u(e.b,17).a),t=vGn(n,te),cHn(n,u(t.a,17).a,u(t.b,17).a))}function Ike(n,e,t){var i,r;for(r=n.a.b,i=r.c.length;i102?-1:n<=57?n-48:n<65?-1:n<=70?n-65+10:n<97?-1:n-97+10}function zF(n,e){if(n==null)throw C(new op("null key in entry: null="+e));if(e==null)throw C(new op("null value in entry: "+n+"=null"))}function Lke(n,e){for(var t,i;n.Ob();)if(!e.Ob()||(t=n.Pb(),i=e.Pb(),!(F(t)===F(i)||t!=null&&wt(t,i))))return!1;return!e.Ob()}function pKn(n,e){var t;return t=S(T(Ri,1),Nr,28,15,[lF(n.a[0],e),lF(n.a[1],e),lF(n.a[2],e)]),n.d&&(t[0]=y.Math.max(t[0],t[2]),t[2]=t[0]),t}function vKn(n,e){var t;return t=S(T(Ri,1),Nr,28,15,[BT(n.a[0],e),BT(n.a[1],e),BT(n.a[2],e)]),n.d&&(t[0]=y.Math.max(t[0],t[2]),t[2]=t[0]),t}function OZ(n,e,t){yp(u(m(e,(fn(),Yt)),101))||(UJ(n,e,d1(e,t)),UJ(n,e,d1(e,(rn(),ye))),UJ(n,e,d1(e,ne)),Fn(),ui(e.j,new Mkn(n)))}function mKn(n){var e,t;for(n.c||QLe(n),t=new Ou,e=new M(n.a),E(e);e.a0&&(Zn(0,e.length),e.charCodeAt(0)==43)?(Zn(1,e.length+1),e.substr(1)):e))}function zke(n){var e;return n==null?null:new H1((e=Uc(n,!0),e.length>0&&(Zn(0,e.length),e.charCodeAt(0)==43)?(Zn(1,e.length+1),e.substr(1)):e))}function DZ(n,e,t,i,r,c,s,f){var h,l;i&&(h=i.a[0],h&&DZ(n,e,t,h,r,c,s,f),e$(n,t,i.d,r,c,s,f)&&e.Fc(i),l=i.a[1],l&&DZ(n,e,t,l,r,c,s,f))}function $g(n,e,t){try{return u0(Fx(n,e,t),1)}catch(i){throw i=_t(i),L(i,333)?C(new Fr(iB+n.o+"*"+n.p+rB+e+dr+t+cB)):C(i)}}function MKn(n,e,t){try{return u0(Fx(n,e,t),0)}catch(i){throw i=_t(i),L(i,333)?C(new Fr(iB+n.o+"*"+n.p+rB+e+dr+t+cB)):C(i)}}function CKn(n,e,t){try{return u0(Fx(n,e,t),2)}catch(i){throw i=_t(i),L(i,333)?C(new Fr(iB+n.o+"*"+n.p+rB+e+dr+t+cB)):C(i)}}function TKn(n,e){if(n.g==-1)throw C(new Pu);n.Xj();try{n.d.hd(n.g,e),n.f=n.d.j}catch(t){throw t=_t(t),L(t,77)?C(new Ho):C(t)}}function Xke(n){var e,t,i,r,c;for(i=new M(n.b);i.ac&&zt(e,c,null),e}function Wke(n,e){var t,i;if(i=n.gc(),e==null){for(t=0;t0&&(h+=r),l[a]=s,s+=f*(h+i)}function SKn(n){var e,t,i;for(i=n.f,n.n=_(Ri,Nr,28,i,15,1),n.d=_(Ri,Nr,28,i,15,1),e=0;e0?n.c:0),++r;n.b=i,n.d=c}function DKn(n,e){var t;return t=S(T(Ri,1),Nr,28,15,[SZ(n,(kf(),kc),e),SZ(n,iu,e),SZ(n,yc,e)]),n.f&&(t[0]=y.Math.max(t[0],t[2]),t[2]=t[0]),t}function tye(n,e,t){var i;try{KA(n,e+n.j,t+n.k,!1,!0)}catch(r){throw r=_t(r),L(r,77)?(i=r,C(new Fr(i.g+oS+e+dr+t+")."))):C(r)}}function iye(n,e,t){var i;try{KA(n,e+n.j,t+n.k,!0,!1)}catch(r){throw r=_t(r),L(r,77)?(i=r,C(new Fr(i.g+oS+e+dr+t+")."))):C(r)}}function NKn(n){var e;Ot(n,(fn(),lb))&&(e=u(m(n,lb),21),e.Hc((fw(),ef))?(e.Mc(ef),e.Fc(tf)):e.Hc(tf)&&(e.Mc(tf),e.Fc(ef)))}function xKn(n){var e;Ot(n,(fn(),lb))&&(e=u(m(n,lb),21),e.Hc((fw(),cf))?(e.Mc(cf),e.Fc(Is)):e.Hc(Is)&&(e.Mc(Is),e.Fc(cf)))}function YF(n,e,t,i){var r,c,s,f;return n.a==null&&cMe(n,e),s=e.b.j.c.length,c=t.d.p,f=i.d.p,r=f-1,r<0&&(r=s-1),c<=r?n.a[r]-n.a[c]:n.a[s-1]-n.a[c]+n.a[r]}function rye(n){var e,t;if(!n.b)for(n.b=qC(u(n.f,27).kh().i),t=new oe(u(n.f,27).kh());t.e!=t.i.gc();)e=u(be(t),135),en(n.b,new IL(e));return n.b}function cye(n){var e,t;if(!n.e)for(n.e=qC(PN(u(n.f,27)).i),t=new oe(PN(u(n.f,27)));t.e!=t.i.gc();)e=u(be(t),123),en(n.e,new Syn(e));return n.e}function FKn(n){var e,t;if(!n.a)for(n.a=qC(OC(u(n.f,27)).i),t=new oe(OC(u(n.f,27)));t.e!=t.i.gc();)e=u(be(t),27),en(n.a,new $D(n,e));return n.a}function B0(n){var e;if(!n.C&&(n.D!=null||n.B!=null))if(e=zDe(n),e)n.hl(e);else try{n.hl(null)}catch(t){if(t=_t(t),!L(t,63))throw C(t)}return n.C}function uye(n){switch(n.q.g){case 5:u_n(n,(rn(),ne)),u_n(n,ye);break;case 4:szn(n,(rn(),ne)),szn(n,ye);break;default:lHn(n,(rn(),ne)),lHn(n,ye)}}function oye(n){switch(n.q.g){case 5:o_n(n,(rn(),ue)),o_n(n,te);break;case 4:fzn(n,(rn(),ue)),fzn(n,te);break;default:aHn(n,(rn(),ue)),aHn(n,te)}}function Rg(n,e){var t,i,r;for(r=new _i,i=n.Kc();i.Ob();)t=u(i.Pb(),36),C4(t,r.a,0),r.a+=t.f.a+e,r.b=y.Math.max(r.b,t.f.b);return r.b>0&&(r.b+=e),r}function bA(n,e){var t,i,r;for(r=new _i,i=n.Kc();i.Ob();)t=u(i.Pb(),36),C4(t,0,r.b),r.b+=t.f.b+e,r.a=y.Math.max(r.a,t.f.a);return r.a>0&&(r.a+=e),r}function $Kn(n){var e,t,i;for(i=at,t=new M(n.a);t.a>16==6?n.Cb.Th(n,5,Sf,e):(i=jr(u(_n((t=u(Qn(n,16),29),t||n.ii()),n.Db>>16),19)),n.Cb.Th(n,i.n,i.f,e))}function sye(n){S3();var e=n.e;if(e&&e.stack){var t=e.stack,i=e+` +`;return t.substring(0,i.length)==i&&(t=t.substring(i.length)),t.split(` +`)}return[]}function fye(n){var e;return e=(_Fn(),uYn),e[n>>>28]|e[n>>24&15]<<4|e[n>>20&15]<<8|e[n>>16&15]<<12|e[n>>12&15]<<16|e[n>>8&15]<<20|e[n>>4&15]<<24|e[n&15]<<28}function KKn(n){var e,t,i;n.b==n.c&&(i=n.a.length,t=dY(y.Math.max(8,i))<<1,n.b!=0?(e=Ks(n.a,t),t$n(n,e,i),n.a=e,n.b=0):Ab(n.a,t),n.c=i)}function hye(n,e){var t;return t=n.b,t.pf((et(),lo))?t.ag()==(rn(),te)?-t.Mf().a-x(K(t.of(lo))):e+x(K(t.of(lo))):t.ag()==(rn(),te)?-t.Mf().a:e}function Xk(n){var e;return n.b.c.length!=0&&u(an(n.b,0),72).a?u(an(n.b,0),72).a:(e=ON(n),e??""+(n.c?Vr(n.c.a,n,0):-1))}function wA(n){var e;return n.f.c.length!=0&&u(an(n.f,0),72).a?u(an(n.f,0),72).a:(e=ON(n),e??""+(n.i?Vr(n.i.j,n,0):-1))}function lye(n,e){var t,i;if(e<0||e>=n.gc())return null;for(t=e;t0?n.c:0),r=y.Math.max(r,e.d),++i;n.e=c,n.b=r}function dye(n){var e,t;if(!n.b)for(n.b=qC(u(n.f,123).kh().i),t=new oe(u(n.f,123).kh());t.e!=t.i.gc();)e=u(be(t),135),en(n.b,new IL(e));return n.b}function bye(n,e){var t,i,r;if(e.dc())return w3(),w3(),bE;for(t=new ESn(n,e.gc()),r=new oe(n);r.e!=r.i.gc();)i=be(r),e.Hc(i)&&Se(t,i);return t}function $Z(n,e,t,i){return e==0?i?(!n.o&&(n.o=new Fu((Oc(),ol),I1,n,0)),n.o):(!n.o&&(n.o=new Fu((Oc(),ol),I1,n,0)),sk(n.o)):uA(n,e,t,i)}function n$(n){var e,t;if(n.rb)for(e=0,t=n.rb.i;e>22),r+=i>>22,r<0)?!1:(n.l=t&so,n.m=i&so,n.h=r&Dl,!0)}function e$(n,e,t,i,r,c,s){var f,h;return!(e.Te()&&(h=n.a.Ne(t,i),h<0||!r&&h==0)||e.Ue()&&(f=n.a.Ne(t,c),f>0||!s&&f==0))}function vye(n,e){t4();var t;if(t=n.j.g-e.j.g,t!=0)return 0;switch(n.j.g){case 2:return yF(e,Bsn)-yF(n,Bsn);case 4:return yF(n,Rsn)-yF(e,Rsn)}return 0}function mye(n){switch(n.g){case 0:return dH;case 1:return bH;case 2:return wH;case 3:return gH;case 4:return nP;case 5:return pH;default:return null}}function _r(n,e,t){var i,r;return i=(r=new EL,ld(r,e),nu(r,t),Se((!n.c&&(n.c=new G(kb,n,12,10)),n.c),r),r),r1(i,0),Qb(i,1),f1(i,!0),s1(i,!0),i}function Wp(n,e){var t,i;if(e>=n.i)throw C(new MD(e,n.i));return++n.j,t=n.g[e],i=n.i-e-1,i>0&&Rc(n.g,e+1,n.g,e,i),zt(n.g,--n.i,null),n.Qi(e,t),n.Ni(),t}function _Kn(n,e){var t,i;return n.Db>>16==17?n.Cb.Th(n,21,Os,e):(i=jr(u(_n((t=u(Qn(n,16),29),t||n.ii()),n.Db>>16),19)),n.Cb.Th(n,i.n,i.f,e))}function kye(n){var e,t,i,r;for(Fn(),ui(n.c,n.a),r=new M(n.c);r.at.a.c.length))throw C(new Yn("index must be >= 0 and <= layer node count"));n.c&&mu(n.c.a,n),n.c=t,t&&d0(t.a,e,n)}function zKn(n,e){var t,i,r;for(i=new he(de(Al(n).a.Kc(),new zn));Te(i);)return t=u(pe(i),18),r=u(e.Kb(t),10),new PE(Re(r.n.b+r.o.b/2));return n6(),n6(),YK}function XKn(n,e){this.c=new je,this.a=n,this.b=e,this.d=u(m(n,(J(),k2)),312),F(m(n,(fn(),Ehn)))===F((ak(),eP))?this.e=new Hjn:this.e=new _jn}function I5(n,e){var t,i;return i=null,n.pf((et(),Dv))&&(t=u(n.of(Dv),96),t.pf(e)&&(i=t.of(e))),i==null&&n.Tf()&&(i=n.Tf().of(e)),i==null&&(i=un(e)),i}function t$(n,e){var t,i;t=n.fd(e);try{return i=t.Pb(),t.Qb(),i}catch(r){throw r=_t(r),L(r,112)?C(new Fr("Can't remove element "+e)):C(r)}}function Sye(n,e){var t,i,r;if(i=new nM,r=new gY(i.q.getFullYear()-ha,i.q.getMonth(),i.q.getDate()),t=BOe(n,e,r),t==0||t0?e:0),++t;return new V(i,r)}function HZ(n,e){var t,i;return n.Db>>16==6?n.Cb.Th(n,6,ii,e):(i=jr(u(_n((t=u(Qn(n,16),29),t||(Oc(),vO)),n.Db>>16),19)),n.Cb.Th(n,i.n,i.f,e))}function qZ(n,e){var t,i;return n.Db>>16==7?n.Cb.Th(n,1,fE,e):(i=jr(u(_n((t=u(Qn(n,16),29),t||(Oc(),Gdn)),n.Db>>16),19)),n.Cb.Th(n,i.n,i.f,e))}function GZ(n,e){var t,i;return n.Db>>16==9?n.Cb.Th(n,9,ft,e):(i=jr(u(_n((t=u(Qn(n,16),29),t||(Oc(),zdn)),n.Db>>16),19)),n.Cb.Th(n,i.n,i.f,e))}function JKn(n,e){var t,i;return n.Db>>16==5?n.Cb.Th(n,9,AO,e):(i=jr(u(_n((t=u(Qn(n,16),29),t||(xn(),O1)),n.Db>>16),19)),n.Cb.Th(n,i.n,i.f,e))}function QKn(n,e){var t,i;return n.Db>>16==7?n.Cb.Th(n,6,Sf,e):(i=jr(u(_n((t=u(Qn(n,16),29),t||(xn(),D1)),n.Db>>16),19)),n.Cb.Th(n,i.n,i.f,e))}function UZ(n,e){var t,i;return n.Db>>16==3?n.Cb.Th(n,0,lE,e):(i=jr(u(_n((t=u(Qn(n,16),29),t||(xn(),P1)),n.Db>>16),19)),n.Cb.Th(n,i.n,i.f,e))}function YKn(){this.a=new t6n,this.g=new lA,this.j=new lA,this.b=new je,this.d=new lA,this.i=new lA,this.k=new je,this.c=new je,this.e=new je,this.f=new je}function Oye(n,e,t){var i,r,c;for(t<0&&(t=0),c=n.i,r=t;r_R)return w4(n,i);if(i==n)return!0}}return!1}function Dye(n){switch(GM(),n.q.g){case 5:NHn(n,(rn(),ne)),NHn(n,ye);break;case 4:xqn(n,(rn(),ne)),xqn(n,ye);break;default:Rzn(n,(rn(),ne)),Rzn(n,ye)}}function Nye(n){switch(GM(),n.q.g){case 5:ZHn(n,(rn(),ue)),ZHn(n,te);break;case 4:rKn(n,(rn(),ue)),rKn(n,te);break;default:Bzn(n,(rn(),ue)),Bzn(n,te)}}function xye(n){var e,t;e=u(m(n,(Ws(),UZn)),17),e?(t=e.a,t==0?U(n,(Q1(),TI),new CF):U(n,(Q1(),TI),new XC(t))):U(n,(Q1(),TI),new XC(1))}function Fye(n,e){var t;switch(t=n.i,e.g){case 1:return-(n.n.b+n.o.b);case 2:return n.n.a-t.o.a;case 3:return n.n.b-t.o.b;case 4:return-(n.n.a+n.o.a)}return 0}function $ye(n,e){switch(n.g){case 0:return e==(ts(),ya)?zI:XI;case 1:return e==(ts(),ya)?zI:pj;case 2:return e==(ts(),ya)?pj:XI;default:return pj}}function Vk(n,e){var t,i,r;for(mu(n.a,e),n.e-=e.r+(n.a.c.length==0?0:n.c),r=ncn,i=new M(n.a);i.a>16==3?n.Cb.Th(n,12,ft,e):(i=jr(u(_n((t=u(Qn(n,16),29),t||(Oc(),qdn)),n.Db>>16),19)),n.Cb.Th(n,i.n,i.f,e))}function XZ(n,e){var t,i;return n.Db>>16==11?n.Cb.Th(n,10,ft,e):(i=jr(u(_n((t=u(Qn(n,16),29),t||(Oc(),Udn)),n.Db>>16),19)),n.Cb.Th(n,i.n,i.f,e))}function ZKn(n,e){var t,i;return n.Db>>16==10?n.Cb.Th(n,11,Os,e):(i=jr(u(_n((t=u(Qn(n,16),29),t||(xn(),L1)),n.Db>>16),19)),n.Cb.Th(n,i.n,i.f,e))}function n_n(n,e){var t,i;return n.Db>>16==10?n.Cb.Th(n,12,Ls,e):(i=jr(u(_n((t=u(Qn(n,16),29),t||(xn(),eg)),n.Db>>16),19)),n.Cb.Th(n,i.n,i.f,e))}function ks(n){var e;return(n.Bb&1)==0&&n.r&&n.r.Vh()&&(e=u(n.r,54),n.r=u(ea(n,e),142),n.r!=e&&(n.Db&4)!=0&&(n.Db&1)==0&&bt(n,new Di(n,9,8,e,n.r))),n.r}function i$(n,e,t){var i;return i=S(T(Ri,1),Nr,28,15,[mnn(n,(kf(),kc),e,t),mnn(n,iu,e,t),mnn(n,yc,e,t)]),n.f&&(i[0]=y.Math.max(i[0],i[2]),i[2]=i[0]),i}function Rye(n,e){var t,i,r;if(r=ske(n,e),r.c.length!=0)for(ui(r,new g2n),t=r.c.length,i=0;i>19,l=e.h>>19,h!=l?l-h:(r=n.h,f=e.h,r!=f?r-f:(i=n.m,s=e.m,i!=s?i-s:(t=n.l,c=e.l,t-c)))}function gA(){gA=$,hon=(RA(),y_),fon=new In(Xtn,hon),son=(fT(),k_),oon=new In(Wtn,son),uon=(tA(),m_),con=new In(Vtn,uon),ron=new In(Jtn,(Wn(),!0))}function P5(n,e,t){var i,r;i=e*t,L(n.g,154)?(r=Np(n),r.f.d?r.f.a||(n.d.a+=i+Uf):(n.d.d-=i+Uf,n.d.a+=i+Uf)):L(n.g,10)&&(n.d.d-=i,n.d.a+=2*i)}function e_n(n,e,t){var i,r,c,s,f;for(r=n[t.g],f=new M(e.d);f.a0?n.b:0),++t;e.b=i,e.e=r}function t_n(n){var e,t,i;if(i=n.b,XMn(n.i,i.length)){for(t=i.length*2,n.b=_(t_,Ty,303,t,0,1),n.c=_(t_,Ty,303,t,0,1),n.f=t-1,n.i=0,e=n.a;e;e=e.c)ry(n,e,e);++n.g}}function Uye(n,e,t,i){var r,c,s,f;for(r=0;rs&&(f=s/i),r>c&&(h=c/r),fh(n,y.Math.min(f,h)),n}function Xye(){GA();var n,e;try{if(e=u(rnn((B1(),Ds),Z4),2113),e)return e}catch(t){if(t=_t(t),L(t,103))n=t,XV((Ke(),n));else throw C(t)}return new Ymn}function Wye(){GA();var n,e;try{if(e=u(rnn((B1(),Ds),Ms),2040),e)return e}catch(t){if(t=_t(t),L(t,103))n=t,XV((Ke(),n));else throw C(t)}return new C6n}function Vye(){axn();var n,e;try{if(e=u(rnn((B1(),Ds),Ad),2122),e)return e}catch(t){if(t=_t(t),L(t,103))n=t,XV((Ke(),n));else throw C(t)}return new v5n}function Jye(n,e,t){var i,r;return r=n.e,n.e=e,(n.Db&4)!=0&&(n.Db&1)==0&&(i=new Di(n,1,4,r,e),t?t.nj(i):t=i),r!=e&&(e?t=O4(n,IA(n,e),t):t=O4(n,n.a,t)),t}function i_n(){nM.call(this),this.e=-1,this.a=!1,this.p=tr,this.k=-1,this.c=-1,this.b=-1,this.g=!1,this.f=-1,this.j=-1,this.n=-1,this.i=-1,this.d=-1,this.o=tr}function Qye(n,e){var t,i,r;if(i=n.b.d.d,n.a||(i+=n.b.d.a),r=e.b.d.d,e.a||(r+=e.b.d.a),t=Tt(i,r),t==0){if(!n.a&&e.a)return-1;if(!e.a&&n.a)return 1}return t}function Yye(n,e){var t,i,r;if(i=n.b.b.d,n.a||(i+=n.b.b.a),r=e.b.b.d,e.a||(r+=e.b.b.a),t=Tt(i,r),t==0){if(!n.a&&e.a)return-1;if(!e.a&&n.a)return 1}return t}function Zye(n,e){var t,i,r;if(i=n.b.g.d,n.a||(i+=n.b.g.a),r=e.b.g.d,e.a||(r+=e.b.g.a),t=Tt(i,r),t==0){if(!n.a&&e.a)return-1;if(!e.a&&n.a)return 1}return t}function VZ(){VZ=$,fne=xu(Qe(Qe(Qe(new li,(er(),Wc),(fr(),Msn)),Wc,Csn),Yr,Tsn),Yr,dsn),lne=Qe(Qe(new li,Wc,usn),Wc,bsn),hne=xu(new li,Yr,gsn)}function nje(n){var e,t,i,r,c;for(e=u(m(n,(J(),H8)),85),c=n.n,i=e.Cc().Kc();i.Ob();)t=u(i.Pb(),314),r=t.i,r.c+=c.a,r.d+=c.b,t.c?jGn(t):EGn(t);U(n,H8,null)}function eje(n,e,t){var i,r;switch(r=n.b,i=r.d,e.g){case 1:return-i.d-t;case 2:return r.o.a+i.c+t;case 3:return r.o.b+i.a+t;case 4:return-i.b-t;default:return-1}}function tje(n,e,t){var i,r;for(t.Ug("Interactive node placement",1),n.a=u(m(e,(J(),k2)),312),r=new M(e.b);r.a0&&(s=(c&at)%n.d.length,r=Ynn(n,s,c,e),r)?(f=r.nd(t),f):(i=n.ck(c,e,t),n.c.Fc(i),null)}function YZ(n,e){var t,i,r,c;switch(o1(n,e).Kl()){case 3:case 2:{for(t=Xg(e),r=0,c=t.i;r=0;i--)if(On(n[i].d,e)||On(n[i].d,t)){n.length>=i+1&&n.splice(0,i+1);break}return n}function Qk(n,e){var t;return nc(n)&&nc(e)&&(t=n/e,Iy0&&(n.b+=2,n.a+=i):(n.b+=1,n.a+=y.Math.min(i,r))}function h_n(n){var e;e=u(m(u(is(n.b,0),40),(pc(),Uln)),107),U(n,(St(),Im),new V(0,0)),eUn(new uk,n,e.b+e.c-x(K(m(n,vq))),e.d+e.a-x(K(m(n,mq))))}function l_n(n,e){var t,i;if(i=!1,Fi(e)&&(i=!0,Sp(n,new _b(_e(e)))),i||L(e,242)&&(i=!0,Sp(n,(t=zW(u(e,242)),new OE(t)))),!i)throw C(new OL(Jcn))}function mje(n,e,t,i){var r,c,s;return r=new yl(n.e,1,10,(s=e.c,L(s,90)?u(s,29):(xn(),Ns)),(c=t.c,L(c,90)?u(c,29):(xn(),Ns)),a1(n,e),!1),i?i.nj(r):i=r,i}function enn(n){var e,t;switch(u(m(Vi(n),(fn(),ghn)),429).g){case 0:return e=n.n,t=n.o,new V(e.a+t.a/2,e.b+t.b/2);case 1:return new lr(n.n);default:return null}}function Yk(){Yk=$,tP=new v6(Mh,0),efn=new v6("LEFTUP",1),ifn=new v6("RIGHTUP",2),nfn=new v6("LEFTDOWN",3),tfn=new v6("RIGHTDOWN",4),vH=new v6("BALANCED",5)}function kje(n,e,t){var i,r,c;if(i=Tt(n.a[e.p],n.a[t.p]),i==0){if(r=u(m(e,(J(),Mv)),15),c=u(m(t,Mv),15),r.Hc(t))return-1;if(c.Hc(e))return 1}return i}function yje(n){switch(n.g){case 1:return new L4n;case 2:return new D4n;case 3:return new O4n;case 0:return null;default:throw C(new Yn(iK+(n.f!=null?n.f:""+n.g)))}}function tnn(n,e,t){switch(e){case 1:!n.n&&(n.n=new G(xr,n,1,7)),Ae(n.n),!n.n&&(n.n=new G(xr,n,1,7)),Jt(n.n,u(t,16));return;case 2:G3(n,_e(t));return}jY(n,e,t)}function inn(n,e,t){switch(e){case 3:S0(n,x(K(t)));return;case 4:I0(n,x(K(t)));return;case 5:su(n,x(K(t)));return;case 6:fu(n,x(K(t)));return}tnn(n,e,t)}function pA(n,e,t){var i,r,c;c=(i=new EL,i),r=Hf(c,e,null),r&&r.oj(),nu(c,t),Se((!n.c&&(n.c=new G(kb,n,12,10)),n.c),c),r1(c,0),Qb(c,1),f1(c,!0),s1(c,!0)}function rnn(n,e){var t,i,r;return t=d6(n.i,e),L(t,241)?(r=u(t,241),r.zi()==null,r.wi()):L(t,507)?(i=u(t,2037),r=i.b,r):null}function jje(n,e,t,i){var r,c;return Re(e),Re(t),c=u(F6(n.d,e),17),Rxn(!!c,"Row %s not in %s",e,n.e),r=u(F6(n.b,t),17),Rxn(!!r,"Column %s not in %s",t,n.c),V$n(n,c.a,r.a,i)}function a_n(n,e,t,i,r,c,s){var f,h,l,a,d;if(a=r[c],l=c==s-1,f=l?i:0,d=OKn(f,a),i!=10&&S(T(n,s-c),e[c],t[c],f,d),!l)for(++c,h=0;h1||f==-1?(c=u(h,15),r.Wb(c7e(n,c))):r.Wb(H$(n,u(h,58)))))}function Ije(n,e,t,i){jMn();var r=QK;ke=e,Ie=t,zxe=i;function c(){for(var s=0;s0)return!1;return!0}function Lje(n){var e,t,i,r,c;for(i=new od(new qa(n.b).a);i.b;)t=L0(i),e=u(t.ld(),10),c=u(u(t.md(),42).a,10),r=u(u(t.md(),42).b,8),dt(bf(e.n),dt(Xi(c.n),r))}function Dje(n){switch(u(m(n.b,(fn(),fhn)),387).g){case 1:Zt(Xr(hc(new Pn(null,new Nn(n.d,16)),new svn),new fvn),new hvn);break;case 2:SIe(n);break;case 0:uCe(n)}}function Nje(n,e,t){var i,r,c;for(i=t,!i&&(i=new cp),i.Ug("Layout",n.a.c.length),c=new M(n.a);c.aZB)return t;r>-1e-6&&++t}return t}function unn(n,e){var t;e!=n.b?(t=null,n.b&&(t=xC(n.b,n,-4,t)),e&&(t=Xp(e,n,-4,t)),t=HRn(n,e,t),t&&t.oj()):(n.Db&4)!=0&&(n.Db&1)==0&&bt(n,new Di(n,1,3,e,e))}function w_n(n,e){var t;e!=n.f?(t=null,n.f&&(t=xC(n.f,n,-1,t)),e&&(t=Xp(e,n,-1,t)),t=_Rn(n,e,t),t&&t.oj()):(n.Db&4)!=0&&(n.Db&1)==0&&bt(n,new Di(n,1,0,e,e))}function Rje(n,e,t,i){var r,c,s,f;return bo(n.e)&&(r=e.Lk(),f=e.md(),c=t.md(),s=W1(n,1,r,f,c,r.Jk()?S4(n,r,c,L(r,102)&&(u(r,19).Bb&pr)!=0):-1,!0),i?i.nj(s):i=s),i}function g_n(n){var e,t,i;if(n==null)return null;if(t=u(n,15),t.dc())return"";for(i=new Ul,e=t.Kc();e.Ob();)Or(i,(Mt(),_e(e.Pb()))),i.a+=" ";return TD(i,i.a.length-1)}function p_n(n){var e,t,i;if(n==null)return null;if(t=u(n,15),t.dc())return"";for(i=new Ul,e=t.Kc();e.Ob();)Or(i,(Mt(),_e(e.Pb()))),i.a+=" ";return TD(i,i.a.length-1)}function Bje(n,e,t){var i,r;return i=n.c[e.c.p][e.p],r=n.c[t.c.p][t.p],i.a!=null&&r.a!=null?bN(i.a,r.a):i.a!=null?-1:r.a!=null?1:0}function Kje(n,e,t){return t.Ug("Tree layout",1),z7(n.b),wf(n.b,(Vp(),$P),$P),wf(n.b,c9,c9),wf(n.b,u9,u9),wf(n.b,o9,o9),n.a=vy(n.b,e),Nje(n,e,t.eh(1)),t.Vg(),e}function _je(n,e){var t,i,r,c,s,f;if(e)for(c=e.a.length,t=new Ja(c),f=(t.b-t.a)*t.c<0?(K1(),Fa):new q1(t);f.Ob();)s=u(f.Pb(),17),r=P3(e,s.a),i=new Ryn(n),V2e(i.a,r)}function Hje(n,e){var t,i,r,c,s,f;if(e)for(c=e.a.length,t=new Ja(c),f=(t.b-t.a)*t.c<0?(K1(),Fa):new q1(t);f.Ob();)s=u(f.Pb(),17),r=P3(e,s.a),i=new Iyn(n),W2e(i.a,r)}function qje(n){var e;if(n!=null&&n.length>0&&nr(n,n.length-1)==33)try{return e=Cqn(Xo(n,0,n.length-1)),e.e==null}catch(t){if(t=_t(t),!L(t,33))throw C(t)}return!1}function Gje(n,e,t){var i,r,c;switch(i=Vi(e),r=GT(i),c=new $c,fc(c,e),t.g){case 1:Ci(c,Kk(Gp(r)));break;case 2:Ci(c,Gp(r))}return U(c,(fn(),Rw),K(m(n,Rw))),c}function onn(n){var e,t;return e=u(pe(new he(de(Oi(n.a).a.Kc(),new zn))),18),t=u(pe(new he(de(ri(n.a).a.Kc(),new zn))),18),ln(hn(m(e,(J(),Jf))))||ln(hn(m(t,Jf)))}function cw(){cw=$,vj=new a7("ONE_SIDE",0),JI=new a7("TWO_SIDES_CORNER",1),QI=new a7("TWO_SIDES_OPPOSING",2),VI=new a7("THREE_SIDES",3),WI=new a7("FOUR_SIDES",4)}function v_n(n,e){var t,i,r,c;for(c=new nn,r=0,i=e.Kc();i.Ob();){for(t=Z(u(i.Pb(),17).a+r);t.a=n.f)break;Xn(c.c,t)}return c}function Uje(n,e){var t,i,r,c,s;for(c=new M(e.a);c.a0&&HKn(this,this.c-1,(rn(),ue)),this.c0&&n[0].length>0&&(this.c=ln(hn(m(Vi(n[0][0]),(J(),vfn))))),this.a=_(dre,Q,2117,n.length,0,2),this.b=_(bre,Q,2118,n.length,0,2),this.d=new FRn}function Jje(n){return n.c.length==0?!1:($n(0,n.c.length),u(n.c[0],18)).c.i.k==(ee(),Ni)?!0:Sg(Xr(new Pn(null,new Nn(n,16)),new qvn),new Gvn)}function y_n(n,e){var t,i,r,c,s,f,h;for(f=hw(e),c=e.f,h=e.g,s=y.Math.sqrt(c*c+h*h),r=0,i=new M(f);i.a=0?(t=Qk(n,eS),i=Hk(n,eS)):(e=G1(n,1),t=Qk(e,5e8),i=Hk(e,5e8),i=or(Hs(i,1),Si(n,1))),gf(Hs(i,32),Si(t,Tr))}function M_n(n,e,t){var i,r;switch(i=(we(e.b!=0),u(Qo(e,e.a.a),8)),t.g){case 0:i.b=0;break;case 2:i.b=n.f;break;case 3:i.a=0;break;default:i.a=n.g}return r=Ce(e,0),U7(r,i),e}function C_n(n,e,t,i){var r,c,s,f,h;switch(h=n.b,c=e.d,s=c.j,f=MZ(s,h.d[s.g],t),r=dt(Xi(c.n),c.a),c.j.g){case 1:case 3:f.a+=r.a;break;case 2:case 4:f.b+=r.b}Xt(i,f,i.c.b,i.c)}function sEe(n,e,t){var i,r,c,s;for(s=Vr(n.e,e,0),c=new dz,c.b=t,i=new Gi(n.e,s);i.b1;e>>=1)(e&1)!=0&&(i=Ag(i,t)),t.d==1?t=Ag(t,t):t=new _Bn(oUn(t.a,t.d,_(Oe,Ye,28,t.d<<1,15,1)));return i=Ag(i,t),i}function gnn(){gnn=$;var n,e,t,i;for(Jun=_(Ri,Nr,28,25,15,1),Qun=_(Ri,Nr,28,33,15,1),i=152587890625e-16,e=32;e>=0;e--)Qun[e]=i,i*=.5;for(t=1,n=24;n>=0;n--)Jun[n]=t,t*=.5}function bEe(n){var e,t;if(ln(hn(X(n,(fn(),$w))))){for(t=new he(de(Pl(n).a.Kc(),new zn));Te(t);)if(e=u(pe(t),74),K0(e)&&ln(hn(X(e,Dd))))return!0}return!1}function T_n(n,e){var t,i,r;pi(n.f,e)&&(e.b=n,i=e.c,Vr(n.j,i,0)!=-1||en(n.j,i),r=e.d,Vr(n.j,r,0)!=-1||en(n.j,r),t=e.a.b,t.c.length!=0&&(!n.i&&(n.i=new XBn(n)),m5e(n.i,t)))}function wEe(n){var e,t,i,r,c;return t=n.c.d,i=t.j,r=n.d.d,c=r.j,i==c?t.p=0&&On(n.substr(e,3),"GMT")||e>=0&&On(n.substr(e,3),"UTC"))&&(t[0]=e+3),Ven(n,t,i)}function pEe(n,e){var t,i,r,c,s;for(c=n.g.a,s=n.g.b,i=new M(n.d);i.at;c--)n[c]|=e[c-t-1]>>>s,n[c-1]=e[c-t-1]<0&&Rc(n.g,e,n.g,e+i,f),s=t.Kc(),n.i+=i,r=0;r>4&15,c=n[i]&15,s[r++]=Xdn[t],s[r++]=Xdn[c];return ms(s,0,s.length)}function yu(n){var e,t;return n>=pr?(e=Py+(n-pr>>10&1023)&bi,t=56320+(n-pr&1023)&bi,String.fromCharCode(e)+(""+String.fromCharCode(t))):String.fromCharCode(n&bi)}function SEe(n,e){Fb();var t,i,r,c;return r=u(u(kt(n.r,e),21),87),r.gc()>=2?(i=u(r.Kc().Pb(),117),t=n.u.Hc((Ju(),I9)),c=n.u.Hc(Fv),!i.a&&!t&&(r.gc()==2||c)):!1}function I_n(n,e,t,i,r){var c,s,f;for(c=bGn(n,e,t,i,r),f=!1;!c;)AA(n,r,!0),f=!0,c=bGn(n,e,t,i,r);f&&AA(n,r,!1),s=Jx(r),s.c.length!=0&&(n.d&&n.d.Gg(s),I_n(n,r,t,i,s))}function yA(){yA=$,AG=new j6(Mh,0),pdn=new j6("DIRECTED",1),mdn=new j6("UNDIRECTED",2),wdn=new j6("ASSOCIATION",3),vdn=new j6("GENERALIZATION",4),gdn=new j6("DEPENDENCY",5)}function IEe(n,e){var t;if(!Lf(n))throw C(new $r(zVn));switch(t=Lf(n),e.g){case 1:return-(n.j+n.f);case 2:return n.i-t.g;case 3:return n.j-t.f;case 4:return-(n.i+n.g)}return 0}function PEe(n,e,t){var i,r,c;return i=e.Lk(),c=e.md(),r=i.Jk()?W1(n,4,i,c,null,S4(n,i,c,L(i,102)&&(u(i,19).Bb&pr)!=0),!0):W1(n,i.tk()?2:1,i,c,i.ik(),-1,!0),t?t.nj(r):t=r,t}function v4(n,e){var t,i;for(ie(e),i=n.b.c.length,en(n.b,e);i>0;){if(t=i,i=(i-1)/2|0,n.a.Ne(an(n.b,i),e)<=0)return Vo(n.b,t,e),!0;Vo(n.b,t,an(n.b,i))}return Vo(n.b,i,e),!0}function mnn(n,e,t,i){var r,c;if(r=0,t)r=BT(n.a[t.g][e.g],i);else for(c=0;c=f)}function P_n(n){switch(n.g){case 0:return new X4n;case 1:return new W4n;default:throw C(new Yn("No implementation is available for the width approximator "+(n.f!=null?n.f:""+n.g)))}}function knn(n,e,t,i){var r;if(r=!1,Fi(i)&&(r=!0,m3(e,t,_e(i))),r||Lb(i)&&(r=!0,knn(n,e,t,i)),r||L(i,242)&&(r=!0,Za(e,t,u(i,242))),!r)throw C(new OL(Jcn))}function LEe(n,e){var t,i,r;if(t=e.qi(n.a),t&&(r=yf((!t.b&&(t.b=new go((xn(),mr),Ec,t)),t.b),Es),r!=null)){for(i=1;i<(Ru(),p0n).length;++i)if(On(p0n[i],r))return i}return 0}function DEe(n,e){var t,i,r;if(t=e.qi(n.a),t&&(r=yf((!t.b&&(t.b=new go((xn(),mr),Ec,t)),t.b),Es),r!=null)){for(i=1;i<(Ru(),v0n).length;++i)if(On(v0n[i],r))return i}return 0}function O_n(n,e){var t,i,r,c;if(ie(e),c=n.a.gc(),c0?1:0;c.a[r]!=t;)c=c.a[r],r=n.a.Ne(t.d,c.d)>0?1:0;c.a[r]=i,i.b=t.b,i.a[0]=t.a[0],i.a[1]=t.a[1],t.a[0]=null,t.a[1]=null}function FEe(n){var e,t,i,r;for(e=new nn,t=_(ao,Qh,28,n.a.c.length,16,1),HV(t,t.length),r=new M(n.a);r.a0&&iUn(($n(0,t.c.length),u(t.c[0],30)),n),t.c.length>1&&iUn(u(an(t,t.c.length-1),30),n),e.Vg()}function REe(n){Ju();var e,t;return e=Lt(Kl,S(T(lO,1),z,279,0,[Pa])),!(Mk($C(e,n))>1||(t=Lt(I9,S(T(lO,1),z,279,0,[S9,Fv])),Mk($C(t,n))>1))}function jnn(n,e){var t;t=Hc((B1(),Ds),n),L(t,507)?Rr(Ds,n,new ETn(this,e)):Rr(Ds,n,this),b$(this,e),e==(r3(),c0n)?(this.wb=u(this,2038),u(e,2040)):this.wb=(U1(),Vn)}function BEe(n){var e,t,i;if(n==null)return null;for(e=null,t=0;t=g1?"error":i>=900?"warn":i>=800?"info":"log"),GPn(t,n.a),n.b&&Men(e,t,n.b,"Exception: ",!0))}function m(n,e){var t,i;return i=(!n.q&&(n.q=new je),se(n.q,e)),i??(t=e.Sg(),L(t,4)&&(t==null?(!n.q&&(n.q=new je),Fp(n.q,e)):(!n.q&&(n.q=new je),ct(n.q,e,t))),t)}function er(){er=$,Ys=new l7("P1_CYCLE_BREAKING",0),nl=new l7("P2_LAYERING",1),Bc=new l7("P3_NODE_ORDERING",2),Wc=new l7("P4_NODE_PLACEMENT",3),Yr=new l7("P5_EDGE_ROUTING",4)}function KEe(n,e){r5();var t;if(n.c==e.c){if(n.b==e.b||X6e(n.b,e.b)){if(t=vae(n.b)?1:-1,n.a&&!e.a)return t;if(!n.a&&e.a)return-t}return Ic(n.b.g,e.b.g)}else return Tt(n.c,e.c)}function F_n(n,e){var t,i,r;if(Mnn(n,e))return!0;for(i=new M(e);i.a=r||e<0)throw C(new Fr(OK+e+Cd+r));if(t>=r||t<0)throw C(new Fr(LK+t+Cd+r));return e!=t?i=(c=n.Cj(t),n.qj(e,c),c):i=n.xj(t),i}function B_n(n){var e,t,i;if(i=n,n)for(e=0,t=n.Eh();t;t=t.Eh()){if(++e>_R)return B_n(t);if(i=t,t==n)throw C(new $r("There is a cycle in the containment hierarchy of "+n))}return i}function ca(n){var e,t,i;for(i=new sd(dr,"[","]"),t=n.Kc();t.Ob();)e=t.Pb(),kl(i,F(e)===F(n)?"(this Collection)":e==null?ju:tc(e));return i.a?i.e.length==0?i.a.a:i.a.a+(""+i.e):i.c}function Mnn(n,e){var t,i;if(i=!1,e.gc()<2)return!1;for(t=0;t1&&(n.j.b+=n.e)):(n.j.a+=t.a,n.j.b=y.Math.max(n.j.b,t.b),n.d.c.length>1&&(n.j.a+=n.e))}function ua(){ua=$,Qne=S(T(vr,1),Lc,64,0,[(rn(),ne),ue,ye]),Jne=S(T(vr,1),Lc,64,0,[ue,ye,te]),Yne=S(T(vr,1),Lc,64,0,[ye,te,ne]),Zne=S(T(vr,1),Lc,64,0,[te,ne,ue])}function HEe(n,e,t,i){var r,c,s,f,h,l,a;if(s=n.c.d,f=n.d.d,s.j!=f.j)for(a=n.b,r=s.j,h=null;r!=f.j;)h=e==0?qT(r):GY(r),c=MZ(r,a.d[r.g],t),l=MZ(h,a.d[h.g],t),We(i,dt(c,l)),r=h}function qEe(n,e,t,i){var r,c,s,f,h;return s=qKn(n.a,e,t),f=u(s.a,17).a,c=u(s.b,17).a,i&&(h=u(m(e,(J(),Qu)),10),r=u(m(t,Qu),10),h&&r&&(PDn(n.b,h,r),f+=n.b.i,c+=n.b.e)),f>c}function __n(n){var e,t,i,r,c,s,f,h,l;for(this.a=hKn(n),this.b=new nn,t=n,i=0,r=t.length;iqD(n.d).c?(n.i+=n.g.c,IF(n.d)):qD(n.d).c>qD(n.g).c?(n.e+=n.d.c,IF(n.g)):(n.i+=YIn(n.g),n.e+=YIn(n.d),IF(n.g),IF(n.d))}function XEe(n,e,t){var i,r,c,s;for(c=e.q,s=e.r,new nd((pf(),Ea),e,c,1),new nd(Ea,c,s,1),r=new M(t);r.af&&(h=f/i),r>c&&(l=c/r),s=y.Math.min(h,l),n.a+=s*(e.a-n.a),n.b+=s*(e.b-n.b)}function QEe(n,e,t,i,r){var c,s;for(s=!1,c=u(an(t.b,0),27);TOe(n,e,c,i,r)&&(s=!0,Aje(t,c),t.b.c.length!=0);)c=u(an(t.b,0),27);return t.b.c.length==0&&Vk(t.j,t),s&&dA(e.q),s}function YEe(n,e){Ug();var t,i,r,c;if(e.b<2)return!1;for(c=Ce(e,0),t=u(Ee(c),8),i=t;c.b!=c.d.c;){if(r=u(Ee(c),8),P$(n,i,r))return!0;i=r}return!!P$(n,i,t)}function Tnn(n,e,t,i){var r,c;return t==0?(!n.o&&(n.o=new Fu((Oc(),ol),I1,n,0)),WM(n.o,e,i)):(c=u(_n((r=u(Qn(n,16),29),r||n.ii()),t),69),c.wk().Ak(n,hu(n),t-ge(n.ii()),e,i))}function b$(n,e){var t;e!=n.sb?(t=null,n.sb&&(t=u(n.sb,54).Th(n,1,L9,t)),e&&(t=u(e,54).Rh(n,1,L9,t)),t=RY(n,e,t),t&&t.oj()):(n.Db&4)!=0&&(n.Db&1)==0&&bt(n,new Di(n,1,4,e,e))}function ZEe(n,e){var t,i,r,c;if(e)r=Ml(e,"x"),t=new xyn(n),R3(t.a,(ie(r),r)),c=Ml(e,"y"),i=new Fyn(n),K3(i.a,(ie(c),c));else throw C(new ch("All edge sections need an end point."))}function nMe(n,e){var t,i,r,c;if(e)r=Ml(e,"x"),t=new Lyn(n),B3(t.a,(ie(r),r)),c=Ml(e,"y"),i=new Dyn(n),_3(i.a,(ie(c),c));else throw C(new ch("All edge sections need a start point."))}function eMe(n,e){var t,i,r,c,s,f,h;for(i=pRn(n),c=0,f=i.length;c>22-e,r=n.h<>22-e):e<44?(t=0,i=n.l<>44-e):(t=0,i=0,r=n.l<n)throw C(new Yn("k must be smaller than n"));return e==0||e==n?1:n==0?0:ZZ(n)/(ZZ(e)*ZZ(n-e))}function Ann(n,e){var t,i,r,c;for(t=new qX(n);t.g==null&&!t.c?yJ(t):t.g==null||t.i!=0&&u(t.g[t.i-1],51).Ob();)if(c=u(SA(t),58),L(c,167))for(i=u(c,167),r=0;r>4],e[t*2+1]=LO[c&15];return ms(e,0,e.length)}function pMe(n){CC();var e,t,i;switch(i=n.c.length,i){case 0:return VQn;case 1:return e=u(SHn(new M(n)),44),hge(e.ld(),e.md());default:return t=u(_f(n,_(Sd,ZA,44,n.c.length,0,1)),173),new Tz(t)}}function vMe(n){var e,t,i,r,c,s;for(e=new yg,t=new yg,V1(e,n),V1(t,n);t.b!=t.c;)for(r=u(Tp(t),36),s=new M(r.a);s.a0&&ay(n,t,e),r):uTe(n,e,t)}function oa(){oa=$,nue=(et(),Lv),eue=Hd,Jce=_d,Qce=R2,Yce=Ta,Vce=$2,l1n=Qj,Zce=Xw,Nq=(_en(),Rce),xq=Bce,d1n=qce,Fq=zce,b1n=Gce,w1n=Uce,a1n=Kce,UP=_ce,zP=Hce,Bj=Xce,g1n=Wce,h1n=$ce}function V_n(n,e){var t,i,r,c,s;if(n.e<=e||Hve(n,n.g,e))return n.g;for(c=n.r,i=n.g,s=n.r,r=(c-i)/2+i;i+11&&(n.e.b+=n.a)):(n.e.a+=t.a,n.e.b=y.Math.max(n.e.b,t.b),n.d.c.length>1&&(n.e.a+=n.a))}function EMe(n){var e,t,i,r;switch(r=n.i,e=r.b,i=r.j,t=r.g,r.a.g){case 0:t.a=(n.g.b.o.a-i.a)/2;break;case 1:t.a=e.d.n.a+e.d.a.a;break;case 2:t.a=e.d.n.a+e.d.a.a-i.a;break;case 3:t.b=e.d.n.b+e.d.a.b}}function MMe(n,e,t){var i,r,c;for(r=new he(de(Al(t).a.Kc(),new zn));Te(r);)i=u(pe(r),18),!gr(i)&&!(!gr(i)&&i.c.i.c==i.d.i.c)&&(c=Bqn(n,i,t,new qjn),c.c.length>1&&Xn(e.c,c))}function Q_n(n,e,t,i,r){if(ii&&(n.a=i),n.br&&(n.b=r),n}function CMe(n){if(L(n,143))return tSe(u(n,143));if(L(n,233))return z9e(u(n,233));if(L(n,23))return iMe(u(n,23));throw C(new Yn(Qcn+ca(new Gu(S(T(Ii,1),Gn,1,5,[n])))))}function TMe(n,e,t,i,r){var c,s,f;for(c=!0,s=0;s>>r|t[s+i+1]<>>r,++s}return c}function Onn(n,e,t,i){var r,c,s;if(e.k==(ee(),Ni)){for(c=new he(de(Oi(e).a.Kc(),new zn));Te(c);)if(r=u(pe(c),18),s=r.c.i.k,s==Ni&&n.c.a[r.c.i.c.p]==i&&n.c.a[e.c.p]==t)return!0}return!1}function AMe(n,e){var t,i,r,c;return e&=63,t=n.h&Dl,e<22?(c=t>>>e,r=n.m>>e|t<<22-e,i=n.l>>e|n.m<<22-e):e<44?(c=0,r=t>>>e-22,i=n.m>>e-22|n.h<<44-e):(c=0,r=0,i=t>>>e-44),cu(i&so,r&so,c&Dl)}function Y_n(n,e,t,i){var r;this.b=i,this.e=n==(P0(),t9),r=e[t],this.d=Wa(ao,[Q,Qh],[183,28],16,[r.length,r.length],2),this.a=Wa(Oe,[Q,Ye],[53,28],15,[r.length,r.length],2),this.c=new ann(e,t)}function SMe(n){var e,t,i;for(n.k=new MJ((rn(),S(T(vr,1),Lc,64,0,[bc,ne,ue,ye,te])).length,n.j.c.length),i=new M(n.j);i.a=t)return k4(n,e,i.p),!0;return!1}function _g(n,e,t,i){var r,c,s,f,h,l;for(s=t.length,c=0,r=-1,l=Uxn((Zn(e,n.length+1),n.substr(e)),(WD(),Wun)),f=0;fc&&e2e(l,Uxn(t[f],Wun))&&(r=f,c=h);return r>=0&&(i[0]=e+c),r}function nHn(n){var e;return(n.Db&64)!=0?w$(n):(e=new jo(Kcn),!n.a||Je(Je((e.a+=' "',e),n.a),'"'),Je(e0(Je(e0(Je(e0(Je(e0((e.a+=" (",e),n.i),","),n.j)," | "),n.g),","),n.f),")"),e.a)}function eHn(n,e,t){var i,r,c,s,f;for(f=lu(n.e.Dh(),e),r=u(n.g,124),i=0,s=0;st?_nn(n,t,"start index"):e<0||e>t?_nn(e,t,"end index"):H5("end index (%s) must not be less than start index (%s)",S(T(Ii,1),Gn,1,5,[Z(e),Z(n)]))}function iHn(n,e){var t,i,r,c;for(i=0,r=n.length;i0&&rHn(n,c,t));e.p=0}function gn(n){var e;this.c=new xt,this.f=n.e,this.e=n.d,this.i=n.g,this.d=n.c,this.b=n.b,this.k=n.j,this.a=n.a,n.i?this.j=n.i:this.j=(e=u(af(il),9),new Uo(e,u(Ks(e,e.length),9),0)),this.g=n.f}function NMe(n){var e,t,i,r;for(e=z1(Je(new jo("Predicates."),"and"),40),t=!0,r=new zm(n);r.b0?f[s-1]:_(el,p1,10,0,0,1),r=f[s],l=s=0?n.ki(r):Unn(n,i);else throw C(new Yn(ba+i.xe()+p8));else throw C(new Yn(iJn+e+rJn));else Zo(n,t,i)}function Lnn(n){var e,t;if(t=null,e=!1,L(n,211)&&(e=!0,t=u(n,211).a),e||L(n,263)&&(e=!0,t=""+u(n,263).a),e||L(n,493)&&(e=!0,t=""+u(n,493).a),!e)throw C(new OL(Jcn));return t}function Dnn(n,e,t){var i,r,c,s,f,h;for(h=lu(n.e.Dh(),e),i=0,f=n.i,r=u(n.g,124),s=0;s=n.d.b.c.length&&(e=new _c(n.d),e.p=i.p-1,en(n.d.b,e),t=new _c(n.d),t.p=i.p,en(n.d.b,t)),qi(i,u(an(n.d.b,i.p),30))}function Fnn(n,e,t){var i,r,c;if(!n.b[e.g]){for(n.b[e.g]=!0,i=t,!i&&(i=new uk),We(i.b,e),c=n.a[e.g].Kc();c.Ob();)r=u(c.Pb(),65),r.b!=e&&Fnn(n,r.b,i),r.c!=e&&Fnn(n,r.c,i),We(i.a,r);return i}return null}function RMe(n){switch(n.g){case 0:case 1:case 2:return rn(),ne;case 3:case 4:case 5:return rn(),ye;case 6:case 7:case 8:return rn(),te;case 9:case 10:case 11:return rn(),ue;default:return rn(),bc}}function BMe(n,e){var t;return n.c.length==0?!1:(t=jBn(($n(0,n.c.length),u(n.c[0],18)).c.i),Mo(),t==(iw(),T2)||t==C2?!0:Sg(Xr(new Pn(null,new Nn(n,16)),new Uvn),new Hkn(e)))}function m$(n,e){if(L(e,207))return Dae(n,u(e,27));if(L(e,193))return Nae(n,u(e,123));if(L(e,452))return Lae(n,u(e,166));throw C(new Yn(Qcn+ca(new Gu(S(T(Ii,1),Gn,1,5,[e])))))}function hHn(n,e,t){var i,r;if(this.f=n,i=u(se(n.b,e),260),r=i?i.a:0,nQ(t,r),t>=(r/2|0))for(this.e=i?i.c:null,this.d=r;t++0;)MQ(this);this.b=e,this.a=null}function KMe(n,e){var t,i;e.a?kSe(n,e):(t=u(HL(n.b,e.b),60),t&&t==n.a[e.b.f]&&t.a&&t.a!=e.b.a&&t.c.Fc(e.b),i=u(_L(n.b,e.b),60),i&&n.a[i.f]==e.b&&i.a&&i.a!=e.b.a&&e.b.c.Fc(i),xD(n.b,e.b))}function lHn(n,e){var t,i;if(t=u(Lr(n.b,e),127),u(u(kt(n.r,e),21),87).dc()){t.n.b=0,t.n.c=0;return}t.n.b=n.C.b,t.n.c=n.C.c,n.A.Hc((ko(),Gd))&&$Gn(n,e),i=bke(n,e),L$(n,e)==(xg(),Sa)&&(i+=2*n.w),t.a.a=i}function aHn(n,e){var t,i;if(t=u(Lr(n.b,e),127),u(u(kt(n.r,e),21),87).dc()){t.n.d=0,t.n.a=0;return}t.n.d=n.C.d,t.n.a=n.C.a,n.A.Hc((ko(),Gd))&&RGn(n,e),i=dke(n,e),L$(n,e)==(xg(),Sa)&&(i+=2*n.w),t.a.b=i}function _Me(n,e){var t,i,r,c;for(c=new nn,i=new M(e);i.ai&&(Zn(e-1,n.length),n.charCodeAt(e-1)<=32);)--e;return i>0||et.a&&(i.Hc((bd(),v9))?r=(e.a-t.a)/2:i.Hc(m9)&&(r=e.a-t.a)),e.b>t.b&&(i.Hc((bd(),y9))?c=(e.b-t.b)/2:i.Hc(k9)&&(c=e.b-t.b)),ynn(n,r,c)}function mHn(n,e,t,i,r,c,s,f,h,l,a,d,g){L(n.Cb,90)&&sw(io(u(n.Cb,90)),4),nu(n,t),n.f=s,o4(n,f),f4(n,h),u4(n,l),s4(n,a),f1(n,d),h4(n,g),s1(n,!0),r1(n,r),n.Zk(c),ld(n,e),i!=null&&(n.i=null,MT(n,i))}function _nn(n,e,t){if(n<0)return H5(gXn,S(T(Ii,1),Gn,1,5,[t,Z(n)]));if(e<0)throw C(new Yn(pXn+e));return H5("%s (%s) must not be greater than size (%s)",S(T(Ii,1),Gn,1,5,[t,Z(n),Z(e)]))}function Hnn(n,e,t,i,r,c){var s,f,h,l;if(s=i-t,s<7){x9e(e,t,i,c);return}if(h=t+r,f=i+r,l=h+(f-h>>1),Hnn(e,n,h,l,-r,c),Hnn(e,n,l,f,-r,c),c.Ne(n[l-1],n[l])<=0){for(;t=0?n.bi(c,t):ven(n,r,t);else throw C(new Yn(ba+r.xe()+p8));else throw C(new Yn(iJn+e+rJn));else ns(n,i,r,t)}function kHn(n){var e,t;if(n.f){for(;n.n>0;){if(e=u(n.k.Xb(n.n-1),76),t=e.Lk(),L(t,102)&&(u(t,19).Bb&Ac)!=0&&(!n.e||t.pk()!=Km||t.Lj()!=0)&&e.md()!=null)return!0;--n.n}return!1}else return n.n>0}function yHn(n){var e,t,i,r;if(t=u(n,54)._h(),t)try{if(i=null,e=j4((B1(),Ds),uUn(X9e(t))),e&&(r=e.ai(),r&&(i=r.Fl(Wle(t.e)))),i&&i!=n)return yHn(i)}catch(c){if(c=_t(c),!L(c,63))throw C(c)}return n}function iCe(n,e,t){var i,r,c;t.Ug("Remove overlaps",1),t.dh(e,Zrn),i=u(X(e,(Eg(),I2)),27),n.f=i,n.a=BF(u(X(e,(oa(),Bj)),300)),r=K(X(e,(et(),Hd))),NU(n,(ie(r),r)),c=hw(i),Szn(n,e,c,t),t.dh(e,FS)}function rCe(n){var e,t,i;if(ln(hn(X(n,(et(),Vj))))){for(i=new nn,t=new he(de(Pl(n).a.Kc(),new zn));Te(t);)e=u(pe(t),74),K0(e)&&ln(hn(X(e,wG)))&&Xn(i.c,e);return i}else return Fn(),Fn(),rr}function jHn(n){if(!n)return jEn(),rYn;var e=n.valueOf?n.valueOf():n;if(e!==n){var t=o_[typeof e];return t?t(e):OY(typeof e)}else return n instanceof Array||n instanceof y.Array?new SU(n):new W9(n)}function EHn(n,e,t){var i,r,c;switch(c=n.o,i=u(Lr(n.p,t),252),r=i.i,r.b=x5(i),r.a=N5(i),r.b=y.Math.max(r.b,c.a),r.b>c.a&&!e&&(r.b=c.a),r.c=-(r.b-c.a)/2,t.g){case 1:r.d=-r.a;break;case 3:r.d=c.b}U$(i),z$(i)}function MHn(n,e,t){var i,r,c;switch(c=n.o,i=u(Lr(n.p,t),252),r=i.i,r.b=x5(i),r.a=N5(i),r.a=y.Math.max(r.a,c.b),r.a>c.b&&!e&&(r.a=c.b),r.d=-(r.a-c.b)/2,t.g){case 4:r.c=-r.b;break;case 2:r.c=c.a}U$(i),z$(i)}function cCe(n,e){var t,i,r,c,s;if(!e.dc()){if(r=u(e.Xb(0),131),e.gc()==1){eGn(n,r,r,1,0,e);return}for(t=1;t0)try{r=Oo(e,tr,at)}catch(c){throw c=_t(c),L(c,130)?(i=c,C(new cT(i))):C(c)}return t=(!n.a&&(n.a=new wL(n)),n.a),r=0?u(D(t,r),58):null}function fCe(n,e){if(n<0)return H5(gXn,S(T(Ii,1),Gn,1,5,["index",Z(n)]));if(e<0)throw C(new Yn(pXn+e));return H5("%s (%s) must be less than size (%s)",S(T(Ii,1),Gn,1,5,["index",Z(n),Z(e)]))}function hCe(n){var e,t,i,r,c;if(n==null)return ju;for(c=new sd(dr,"[","]"),t=n,i=0,r=t.length;i=0?n.Lh(t,!0,!0):_0(n,r,!0),160)),u(i,220).Zl(e);else throw C(new Yn(ba+e.xe()+p8))}function znn(n){var e,t;return n>-0x800000000000&&n<0x800000000000?n==0?0:(e=n<0,e&&(n=-n),t=Mi(y.Math.floor(y.Math.log(n)/.6931471805599453)),(!e||n!=y.Math.pow(2,t))&&++t,t):_$n(Tc(n))}function CCe(n){var e,t,i,r,c,s,f;for(c=new sh,t=new M(n);t.a2&&f.e.b+f.j.b<=2&&(r=f,i=s),c.a.zc(r,c),r.q=i);return c}function TCe(n,e,t){t.Ug("Eades radial",1),t.dh(e,FS),n.d=u(X(e,(Eg(),I2)),27),n.c=x(K(X(e,(oa(),zP)))),n.e=BF(u(X(e,Bj),300)),n.a=e7e(u(X(e,g1n),434)),n.b=yje(u(X(e,a1n),354)),ije(n),t.dh(e,FS)}function ACe(n,e){if(e.Ug("Target Width Setter",1),$f(n,(qf(),Wq)))Et(n,(Uh(),Uw),K(X(n,Wq)));else throw C(new Gl("A target width has to be set if the TargetWidthWidthApproximator should be used."));e.Vg()}function IHn(n,e){var t,i,r;return i=new Il(n),Jr(i,e),U(i,(J(),fP),e),U(i,(fn(),Yt),(Ki(),Qc)),U(i,Ph,(qh(),rO)),_a(i,(ee(),oi)),t=new $c,fc(t,i),Ci(t,(rn(),te)),r=new $c,fc(r,i),Ci(r,ue),i}function PHn(n){switch(n.g){case 0:return new SL((P0(),Dj));case 1:return new X8n;case 2:return new W8n;default:throw C(new Yn("No implementation is available for the crossing minimizer "+(n.f!=null?n.f:""+n.g)))}}function OHn(n,e){var t,i,r,c,s;for(n.c[e.p]=!0,en(n.a,e),s=new M(e.j);s.a=c)s.$b();else for(r=s.Kc(),i=0;i0?Oz():s<0&&xHn(n,e,-s),!0):!1}function N5(n){var e,t,i,r,c,s,f;if(f=0,n.b==0){for(s=pKn(n,!0),e=0,i=s,r=0,c=i.length;r0&&(f+=t,++e);e>1&&(f+=n.c*(e-1))}else f=NEn(Hx(Hb(pt(KV(n.a),new Jbn),new Qbn)));return f>0?f+n.n.d+n.n.a:0}function x5(n){var e,t,i,r,c,s,f;if(f=0,n.b==0)f=NEn(Hx(Hb(pt(KV(n.a),new Wbn),new Vbn)));else{for(s=vKn(n,!0),e=0,i=s,r=0,c=i.length;r0&&(f+=t,++e);e>1&&(f+=n.c*(e-1))}return f>0?f+n.n.b+n.n.c:0}function NCe(n){var e,t;if(n.c.length!=2)throw C(new $r("Order only allowed for two paths."));e=($n(0,n.c.length),u(n.c[0],18)),t=($n(1,n.c.length),u(n.c[1],18)),e.d.i!=t.c.i&&(n.c.length=0,Xn(n.c,t),Xn(n.c,e))}function FHn(n,e,t){var i;for(pg(t,e.g,e.f),qo(t,e.i,e.j),i=0;i<(!e.a&&(e.a=new G(ft,e,10,11)),e.a).i;i++)FHn(n,u(D((!e.a&&(e.a=new G(ft,e,10,11)),e.a),i),27),u(D((!t.a&&(t.a=new G(ft,t,10,11)),t.a),i),27))}function xCe(n,e){var t,i,r,c;for(c=u(Lr(n.b,e),127),t=c.a,r=u(u(kt(n.r,e),21),87).Kc();r.Ob();)i=u(r.Pb(),117),i.c&&(t.a=y.Math.max(t.a,pV(i.c)));if(t.a>0)switch(e.g){case 2:c.n.c=n.s;break;case 4:c.n.b=n.s}}function FCe(n,e){var t,i,r;return t=u(m(e,(Ws(),vv)),17).a-u(m(n,vv),17).a,t==0?(i=Ai(Xi(u(m(n,(Q1(),dj)),8)),u(m(n,x8),8)),r=Ai(Xi(u(m(e,dj),8)),u(m(e,x8),8)),Tt(i.a*i.b,r.a*r.b)):t}function $Ce(n,e){var t,i,r;return t=u(m(e,(pc(),_P)),17).a-u(m(n,_P),17).a,t==0?(i=Ai(Xi(u(m(n,(St(),Fj)),8)),u(m(n,Im),8)),r=Ai(Xi(u(m(e,Fj),8)),u(m(e,Im),8)),Tt(i.a*i.b,r.a*r.b)):t}function $Hn(n){var e,t;return t=new F1,t.a+="e_",e=P5e(n),e!=null&&(t.a+=""+e),n.c&&n.d&&(Je((t.a+=" ",t),wA(n.c)),Je(Kc((t.a+="[",t),n.c.i),"]"),Je((t.a+=wB,t),wA(n.d)),Je(Kc((t.a+="[",t),n.d.i),"]")),t.a}function RHn(n){switch(n.g){case 0:return new i9n;case 1:return new r9n;case 2:return new e9n;case 3:return new n9n;default:throw C(new Yn("No implementation is available for the layout phase "+(n.f!=null?n.f:""+n.g)))}}function Vnn(n,e,t,i,r){var c;switch(c=0,r.g){case 1:c=y.Math.max(0,e.b+n.b-(t.b+i));break;case 3:c=y.Math.max(0,-n.b-i);break;case 2:c=y.Math.max(0,-n.a-i);break;case 4:c=y.Math.max(0,e.a+n.a-(t.a+i))}return c}function RCe(n,e,t){var i,r,c,s,f;if(t)for(r=t.a.length,i=new Ja(r),f=(i.b-i.a)*i.c<0?(K1(),Fa):new q1(i);f.Ob();)s=u(f.Pb(),17),c=P3(t,s.a),Gcn in c.a||IK in c.a?YIe(n,c,e):pxe(n,c,e),gde(u(se(n.b,a4(c)),74))}function Jnn(n){var e,t;switch(n.b){case-1:return!0;case 0:return t=n.t,t>1||t==-1?(n.b=-1,!0):(e=ks(n),e&&(yr(),e.lk()==cQn)?(n.b=-1,!0):(n.b=1,!1));default:case 1:return!1}}function Qnn(n,e){var t,i,r,c;if(ht(n),n.c!=0||n.a!=123)throw C(new qe(ze((Ke(),AJn))));if(c=e==112,i=n.d,t=a3(n.i,125,i),t<0)throw C(new qe(ze((Ke(),SJn))));return r=Xo(n.i,i,t),n.d=t+1,sxn(r,c,(n.e&512)==512)}function BHn(n){var e,t,i,r,c,s,f;if(i=n.a.c.length,i>0)for(s=n.c.d,f=n.d.d,r=fh(Ai(new V(f.a,f.b),s),1/(i+1)),c=new V(s.a,s.b),t=new M(n.a);t.a=0&&i=0?n.Lh(t,!0,!0):_0(n,r,!0),160)),u(i,220).Wl(e);throw C(new Yn(ba+e.xe()+kK))}function HCe(){Zz();var n;return Use?u(j4((B1(),Ds),Ms),2038):(it(Sd,new h5n),$De(),n=u(L(Hc((B1(),Ds),Ms),560)?Hc(Ds,Ms):new tOn,560),Use=!0,Rxe(n),Uxe(n),ct((Yz(),r0n),n,new T6n),Rr(Ds,Ms,n),n)}function qCe(n,e){var t,i,r,c;n.j=-1,bo(n.e)?(t=n.i,c=n.i!=0,ck(n,e),i=new yl(n.e,3,n.c,null,e,t,c),r=e.zl(n.e,n.c,null),r=m_n(n,e,r),r?(r.nj(i),r.oj()):bt(n.e,i)):(ck(n,e),r=e.zl(n.e,n.c,null),r&&r.oj())}function CA(n,e){var t,i,r;if(r=0,i=e[0],i>=n.length)return-1;for(t=(Zn(i,n.length),n.charCodeAt(i));t>=48&&t<=57&&(r=r*10+(t-48),++i,!(i>=n.length));)t=(Zn(i,n.length),n.charCodeAt(i));return i>e[0]?e[0]=i:r=-1,r}function GCe(n){var e,t,i,r,c;return r=u(n.a,17).a,c=u(n.b,17).a,t=r,i=c,e=y.Math.max(y.Math.abs(r),y.Math.abs(c)),r<=0&&r==c?(t=0,i=c-1):r==-e&&c!=e?(t=c,i=r,c>=0&&++t):(t=-c,i=r),new Ei(Z(t),Z(i))}function UCe(n,e,t,i){var r,c,s,f,h,l;for(r=0;r=0&&l>=0&&h=n.i)throw C(new Fr(OK+e+Cd+n.i));if(t>=n.i)throw C(new Fr(LK+t+Cd+n.i));return i=n.g[t],e!=t&&(e>16),e=i>>16&16,t=16-e,n=n>>e,i=n-256,e=i>>16&8,t+=e,n<<=e,i=n-pw,e=i>>16&4,t+=e,n<<=e,i=n-mh,e=i>>16&2,t+=e,n<<=e,i=n>>14,e=i&~(i>>1),t+2-e)}function XCe(n){Op();var e,t,i,r;for(jI=new nn,P_=new je,I_=new nn,e=(!n.a&&(n.a=new G(ft,n,10,11)),n.a),$Ne(e),r=new oe(e);r.e!=r.i.gc();)i=u(be(r),27),Vr(jI,i,0)==-1&&(t=new nn,en(I_,t),qBn(i,t));return I_}function WCe(n,e,t){var i,r,c,s;n.a=t.b.d,L(e,326)?(r=Gg(u(e,74),!1,!1),c=ey(r),i=new A7n(n),Ji(c,i),wy(c,r),e.of((et(),mb))!=null&&Ji(u(e.of(mb),75),i)):(s=u(e,422),s.rh(s.nh()+n.a.a),s.sh(s.oh()+n.a.b))}function VCe(n,e){var t,i,r;for(r=new nn,i=Ce(e.a,0);i.b!=i.d.c;)t=u(Ee(i),65),t.c.g==n.g&&F(m(t.b,(pc(),Lh)))!==F(m(t.c,Lh))&&!Sg(new Pn(null,new Nn(r,16)),new nyn(t))&&Xn(r.c,t);return ui(r,new O3n),r}function _Hn(n,e,t){var i,r,c,s;return L(e,153)&&L(t,153)?(c=u(e,153),s=u(t,153),n.a[c.a][s.a]+n.a[s.a][c.a]):L(e,250)&&L(t,250)&&(i=u(e,250),r=u(t,250),i.a==r.a)?u(m(r.a,(Ws(),vv)),17).a:0}function HHn(n,e){var t,i,r,c,s,f,h,l;for(l=x(K(m(e,(fn(),J8)))),h=n[0].n.a+n[0].o.a+n[0].d.c+l,f=1;f=0?t:(f=X6(Ai(new V(s.c+s.b/2,s.d+s.a/2),new V(c.c+c.b/2,c.d+c.a/2))),-(bUn(c,s)-1)*f)}function QCe(n,e,t){var i;Zt(new Pn(null,(!t.a&&(t.a=new G(Ft,t,6,6)),new Nn(t.a,16))),new iTn(n,e)),Zt(new Pn(null,(!t.n&&(t.n=new G(xr,t,1,7)),new Nn(t.n,16))),new rTn(n,e)),i=u(X(t,(et(),mb)),75),i&&nY(i,n,e)}function _0(n,e,t){var i,r,c;if(c=Wg((Ru(),Zi),n.Dh(),e),c)return yr(),u(c,69).xk()||(c=Dp(Br(Zi,c))),r=(i=n.Ih(c),u(i>=0?n.Lh(i,!0,!0):_0(n,c,!0),160)),u(r,220).Sl(e,t);throw C(new Yn(ba+e.xe()+kK))}function Ynn(n,e,t,i){var r,c,s,f,h;if(r=n.d[e],r){if(c=r.g,h=r.i,i!=null){for(f=0;f=t&&(i=e,l=(h.c+h.a)/2,s=l-t,h.c<=l-t&&(r=new YD(h.c,s),d0(n,i++,r)),f=l+t,f<=h.a&&(c=new YD(f,h.a),Gb(i,n.c.length),b6(n.c,i,c)))}function UHn(n,e,t){var i,r,c,s,f,h;if(!e.dc()){for(r=new xt,h=e.Kc();h.Ob();)for(f=u(h.Pb(),40),ct(n.a,Z(f.g),Z(t)),s=(i=Ce(new ll(f).a.d,0),new cg(i));e7(s.a);)c=u(Ee(s.a),65).c,Xt(r,c,r.c.b,r.c);UHn(n,r,t+1)}}function Znn(n){var e;if(!n.c&&n.g==null)n.d=n.bj(n.f),Se(n,n.d),e=n.d;else{if(n.g==null)return!0;if(n.i==0)return!1;e=u(n.g[n.i-1],51)}return e==n.b&&null.Vm>=null.Um()?(SA(n),Znn(n)):e.Ob()}function zHn(n){if(this.a=n,n.c.i.k==(ee(),oi))this.c=n.c,this.d=u(m(n.c.i,(J(),jc)),64);else if(n.d.i.k==oi)this.c=n.d,this.d=u(m(n.d.i,(J(),jc)),64);else throw C(new Yn("Edge "+n+" is not an external edge."))}function XHn(n,e){var t,i,r;r=n.b,n.b=e,(n.Db&4)!=0&&(n.Db&1)==0&&bt(n,new Di(n,1,3,r,n.b)),e?e!=n&&(nu(n,e.zb),Ox(n,e.d),t=(i=e.c,i??e.zb),Dx(n,t==null||On(t,e.zb)?null:t)):(nu(n,null),Ox(n,0),Dx(n,null))}function WHn(n,e){var t;this.e=(p0(),Re(n),p0(),dZ(n)),this.c=(Re(e),dZ(e)),tW(this.e.Rd().dc()==this.c.Rd().dc()),this.d=fBn(this.e),this.b=fBn(this.c),t=Wa(Ii,[Q,Gn],[5,1],5,[this.e.Rd().gc(),this.c.Rd().gc()],2),this.a=t,T6e(this)}function VHn(n){var e=(!c_&&(c_=VNe()),c_),t=n.replace(/[\x00-\x1f\xad\u0600-\u0603\u06dd\u070f\u17b4\u17b5\u200b-\u200f\u2028-\u202e\u2060-\u2064\u206a-\u206f\ufeff\ufff9-\ufffb"\\]/g,function(i){return Zpe(i,e)});return'"'+t+'"'}function nen(n,e,t,i,r,c){var s,f,h,l,a;if(r!=0)for(F(n)===F(t)&&(n=n.slice(e,e+r),e=0),h=t,f=e,l=e+r;f=s)throw C(new Rb(e,s));return r=t[e],s==1?i=null:(i=_(FG,$K,424,s-1,0,1),Rc(t,0,i,0,e),c=s-e-1,c>0&&Rc(t,e+1,i,e,c)),d4(n,i),vHn(n,e,r),r}function QHn(n){var e,t;if(n.f){for(;n.n0?c=Gp(t):c=Kk(Gp(t))),Et(e,jm,c)}function rTe(n,e){var t;e.Ug("Partition preprocessing",1),t=u(ec(pt(hc(pt(new Pn(null,new Nn(n.a,16)),new D2n),new N2n),new x2n),Xu(new Su,new Au,new Iu,S(T(Hr,1),z,108,0,[(Vu(),rc)]))),15),Zt(t.Oc(),new F2n),e.Vg()}function cTe(n,e){var t,i,r,c,s;for(s=n.j,e.a!=e.b&&ui(s,new avn),r=s.c.length/2|0,i=0;i0&&ay(n,t,e),c):i.a!=null?(ay(n,e,t),-1):r.a!=null?(ay(n,t,e),1):0}function oTe(n,e){var t,i,r,c,s;for(r=e.b.b,n.a=_(ss,vw,15,r,0,1),n.b=_(ao,Qh,28,r,16,1),s=Ce(e.b,0);s.b!=s.d.c;)c=u(Ee(s),40),n.a[c.g]=new xt;for(i=Ce(e.a,0);i.b!=i.d.c;)t=u(Ee(i),65),n.a[t.b.g].Fc(t),n.a[t.c.g].Fc(t)}function eqn(n,e){var t,i,r,c;n.Pj()?(t=n.Ej(),c=n.Qj(),++n.j,n.qj(t,n.Zi(t,e)),i=n.Ij(3,null,e,t,c),n.Mj()?(r=n.Nj(e,null),r?(r.nj(i),r.oj()):n.Jj(i)):n.Jj(i)):(UPn(n,e),n.Mj()&&(r=n.Nj(e,null),r&&r.oj()))}function een(n,e,t){var i,r,c;n.Pj()?(c=n.Qj(),Fk(n,e,t),i=n.Ij(3,null,t,e,c),n.Mj()?(r=n.Nj(t,null),n.Tj()&&(r=n.Uj(t,r)),r?(r.nj(i),r.oj()):n.Jj(i)):n.Jj(i)):(Fk(n,e,t),n.Mj()&&(r=n.Nj(t,null),r&&r.oj()))}function TA(n,e){var t,i,r,c,s;for(s=lu(n.e.Dh(),e),r=new AE,t=u(n.g,124),c=n.i;--c>=0;)i=t[c],s.am(i.Lk())&&Se(r,i);!Jzn(n,r)&&bo(n.e)&&Zv(n,e.Jk()?W1(n,6,e,(Fn(),rr),null,-1,!1):W1(n,e.tk()?2:1,e,null,null,-1,!1))}function sTe(n,e){var t,i,r,c,s;return n.a==(m4(),B8)?!0:(c=e.a.c,t=e.a.c+e.a.b,!(e.j&&(i=e.A,s=i.c.c.a-i.o.a/2,r=c-(i.n.a+i.o.a),r>s)||e.q&&(i=e.C,s=i.c.c.a-i.o.a/2,r=i.n.a-t,r>s)))}function tqn(n){zN();var e,t,i,r,c,s,f;for(t=new n1,r=new M(n.e.b);r.a1?n.e*=x(n.a):n.f/=x(n.a),P8e(n),F7e(n),DIe(n),U(n.b,(C5(),yI),n.g)}function uqn(n,e,t){var i,r,c,s,f,h;for(i=0,h=t,e||(i=t*(n.c.length-1),h*=-1),c=new M(n);c.a=0?n.Ah(null):n.Ph().Th(n,-1-e,null,null)),n.Bh(u(r,54),t),i&&i.oj(),n.vh()&&n.wh()&&t>-1&&bt(n,new Di(n,9,t,c,r)),r):c}function ren(n,e){var t,i,r,c,s;for(c=n.b.Ce(e),i=(t=n.a.get(c),t??_(Ii,Gn,1,0,5,1)),s=0;s>5,r>=n.d)return n.e<0;if(t=n.a[r],e=1<<(e&31),n.e<0){if(i=k$n(n),r>16)),15).dd(c),f0&&(!(dl(n.a.c)&&e.n.d)&&!(gg(n.a.c)&&e.n.b)&&(e.g.d+=y.Math.max(0,i/2-.5)),!(dl(n.a.c)&&e.n.a)&&!(gg(n.a.c)&&e.n.c)&&(e.g.a-=i-1))}function wqn(n){var e,t,i,r,c;if(r=new nn,c=hUn(n,r),e=u(m(n,(J(),Qu)),10),e)for(i=new M(e.j);i.a>e,c=n.m>>e|t<<22-e,r=n.l>>e|n.m<<22-e):e<44?(s=i?Dl:0,c=t>>e-22,r=n.m>>e-22|t<<44-e):(s=i?Dl:0,c=i?so:0,r=t>>e-44),cu(r&so,c&so,s&Dl)}function T$(n){var e,t,i,r,c,s;for(this.c=new nn,this.d=n,i=Bt,r=Bt,e=mi,t=mi,s=Ce(n,0);s.b!=s.d.c;)c=u(Ee(s),8),i=y.Math.min(i,c.a),r=y.Math.min(r,c.b),e=y.Math.max(e,c.a),t=y.Math.max(t,c.b);this.a=new zo(i,r,e-i,t-r)}function pqn(n,e){var t,i,r,c,s,f;for(c=new M(n.b);c.a0&&L(e,44)&&(n.a._j(),l=u(e,44),h=l.ld(),c=h==null?0:It(h),s=IW(n.a,c),t=n.a.d[s],t)){for(i=u(t.g,379),a=t.i,f=0;f=2)for(t=r.Kc(),e=K(t.Pb());t.Ob();)c=e,e=K(t.Pb()),i=y.Math.min(i,(ie(e),e-(ie(c),c)));return i}function PTe(n,e){var t,i,r;for(r=new nn,i=Ce(e.a,0);i.b!=i.d.c;)t=u(Ee(i),65),t.b.g==n.g&&!On(t.b.c,NS)&&F(m(t.b,(pc(),Lh)))!==F(m(t.c,Lh))&&!Sg(new Pn(null,new Nn(r,16)),new eyn(t))&&Xn(r.c,t);return ui(r,new x3n),r}function OTe(n,e){var t,i,r;if(F(e)===F(Re(n)))return!0;if(!L(e,15)||(i=u(e,15),r=n.gc(),r!=i.gc()))return!1;if(L(i,59)){for(t=0;t0&&(r=t),s=new M(n.f.e);s.a0?(e-=1,t-=1):i>=0&&r<0?(e+=1,t+=1):i>0&&r>=0?(e-=1,t+=1):(e+=1,t-=1),new Ei(Z(e),Z(t))}function UTe(n,e){return n.ce.c?1:n.be.b?1:n.a!=e.a?It(n.a)-It(e.a):n.d==(n5(),r9)&&e.d==i9?-1:n.d==i9&&e.d==r9?1:0}function Mqn(n,e){var t,i,r,c,s;return c=e.a,c.c.i==e.b?s=c.d:s=c.c,c.c.i==e.b?i=c.c:i=c.d,r=d7e(n.a,s,i),r>0&&r0):r<0&&-r0):!1}function zTe(n,e,t,i){var r,c,s,f,h,l,a,d;for(r=(e-n.d)/n.c.c.length,c=0,n.a+=t,n.d=e,d=new M(n.c);d.a>24;return s}function WTe(n){if(n.ze()){var e=n.c;e.Ae()?n.o="["+e.n:e.ze()?n.o="["+e.xe():n.o="[L"+e.xe()+";",n.b=e.we()+"[]",n.k=e.ye()+"[]";return}var t=n.j,i=n.d;i=i.split("/"),n.o=PF(".",[t,PF("$",i)]),n.b=PF(".",[t,PF(".",i)]),n.k=i[i.length-1]}function VTe(n,e){var t,i,r,c,s;for(s=null,c=new M(n.e.a);c.a=0;e-=2)for(t=0;t<=e;t+=2)(n.b[t]>n.b[t+2]||n.b[t]===n.b[t+2]&&n.b[t+1]>n.b[t+3])&&(i=n.b[t+2],n.b[t+2]=n.b[t],n.b[t]=i,i=n.b[t+3],n.b[t+3]=n.b[t+1],n.b[t+1]=i);n.c=!0}}function YTe(n,e){var t,i,r,c,s,f,h,l,a;for(l=-1,a=0,s=n,f=0,h=s.length;f0&&++a;++l}return a}function zs(n){var e,t;return t=new jo(za(n.Rm)),t.a+="@",Je(t,(e=It(n)>>>0,e.toString(16))),n.Vh()?(t.a+=" (eProxyURI: ",Kc(t,n._h()),n.Kh()&&(t.a+=" eClass: ",Kc(t,n.Kh())),t.a+=")"):n.Kh()&&(t.a+=" (eClass: ",Kc(t,n.Kh()),t.a+=")"),t.a}function R5(n){var e,t,i,r;if(n.e)throw C(new $r((bl(v_),VR+v_.k+JR)));for(n.d==(di(),nh)&&WA(n,Gr),t=new M(n.a.a);t.a>24}return t}function eAe(n,e,t){var i,r,c;if(r=u(Lr(n.i,e),314),!r)if(r=new hFn(n.d,e,t),Ap(n.i,e,r),vZ(e))cde(n.a,e.c,e.b,r);else switch(c=RMe(e),i=u(Lr(n.p,c),252),c.g){case 1:case 3:r.j=!0,PL(i,e.b,r);break;case 4:case 2:r.k=!0,PL(i,e.c,r)}return r}function tAe(n,e){var t,i,r,c,s,f,h,l,a;for(h=Fh(n.c-n.b&n.a.length-1),l=null,a=null,c=new V6(n);c.a!=c.b;)r=u(KT(c),10),t=(f=u(m(r,(J(),Tf)),12),f?f.i:null),i=(s=u(m(r,As),12),s?s.i:null),(l!=t||a!=i)&&(oqn(h,e),l=t,a=i),Xn(h.c,r);oqn(h,e)}function iAe(n,e,t,i){var r,c,s,f,h,l;if(f=new AE,h=lu(n.e.Dh(),e),r=u(n.g,124),yr(),u(e,69).xk())for(s=0;s=0)return r;for(c=1,f=new M(e.j);f.a=0)return r;for(c=1,f=new M(e.j);f.a0&&e.Ne(($n(r-1,n.c.length),u(n.c[r-1],10)),c)>0;)Vo(n,r,($n(r-1,n.c.length),u(n.c[r-1],10))),--r;$n(r,n.c.length),n.c[r]=c}t.a=new je,t.b=new je}function rAe(n,e,t){var i,r,c,s,f,h,l,a;for(a=(i=u(e.e&&e.e(),9),new Uo(i,u(Ks(i,i.length),9),0)),h=dw(t,"[\\[\\]\\s,]+"),c=h,s=0,f=c.length;s=0?(e||(e=new r6,i>0&&Or(e,(Ui(0,i,n.length),n.substr(0,i)))),e.a+="\\",E3(e,t&bi)):e&&E3(e,t&bi);return e?e.a:n}function uAe(n){var e,t,i;for(t=new M(n.a.a.b);t.a0&&(!(dl(n.a.c)&&e.n.d)&&!(gg(n.a.c)&&e.n.b)&&(e.g.d-=y.Math.max(0,i/2-.5)),!(dl(n.a.c)&&e.n.a)&&!(gg(n.a.c)&&e.n.c)&&(e.g.a+=y.Math.max(0,i-1)))}function Dqn(n,e,t){var i,r;if((n.c-n.b&n.a.length-1)==2)e==(rn(),ne)||e==ue?(aT(u(a5(n),15),(Po(),rl)),aT(u(a5(n),15),Aa)):(aT(u(a5(n),15),(Po(),Aa)),aT(u(a5(n),15),rl));else for(r=new V6(n);r.a!=r.b;)i=u(KT(r),15),aT(i,t)}function oAe(n,e){var t,i,r,c,s,f,h;for(r=v3(new YU(n)),f=new Gi(r,r.c.length),c=v3(new YU(e)),h=new Gi(c,c.c.length),s=null;f.b>0&&h.b>0&&(t=(we(f.b>0),u(f.a.Xb(f.c=--f.b),27)),i=(we(h.b>0),u(h.a.Xb(h.c=--h.b),27)),t==i);)s=t;return s}function Nqn(n,e,t){var i,r,c,s;xLn(n,e)>xLn(n,t)?(i=ac(t,(rn(),ue)),n.d=i.dc()?0:rN(u(i.Xb(0),12)),s=ac(e,te),n.b=s.dc()?0:rN(u(s.Xb(0),12))):(r=ac(t,(rn(),te)),n.d=r.dc()?0:rN(u(r.Xb(0),12)),c=ac(e,ue),n.b=c.dc()?0:rN(u(c.Xb(0),12)))}function xqn(n,e){var t,i,r,c;for(t=n.o.a,c=u(u(kt(n.r,e),21),87).Kc();c.Ob();)r=u(c.Pb(),117),r.e.a=t*x(K(r.b.of(vI))),r.e.b=(i=r.b,i.pf((et(),lo))?i.ag()==(rn(),ne)?-i.Mf().b-x(K(i.of(lo))):x(K(i.of(lo))):i.ag()==(rn(),ne)?-i.Mf().b:0)}function sAe(n,e){var t,i,r,c;for(e.Ug("Self-Loop pre-processing",1),i=new M(n.a);i.an.c));s++)r.a>=n.s&&(c<0&&(c=s),f=s);return h=(n.s+n.c)/2,c>=0&&(i=JIe(n,e,c,f),h=W1e(($n(i,e.c.length),u(e.c[i],339))),eTe(e,i,t)),h}function xe(n,e,t){var i,r,c,s,f,h,l;for(s=(c=new vU,c),zQ(s,(ie(e),e)),l=(!s.b&&(s.b=new go((xn(),mr),Ec,s)),s.b),h=1;h0&&zLe(this,r)}function wen(n,e,t,i,r,c){var s,f,h;if(!r[e.a]){for(r[e.a]=!0,s=i,!s&&(s=new JC),en(s.e,e),h=c[e.a].Kc();h.Ob();)f=u(h.Pb(),290),!(f.d==t||f.c==t)&&(f.c!=e&&wen(n,f.c,e,s,r,c),f.d!=e&&wen(n,f.d,e,s,r,c),en(s.c,f),vi(s.d,f.b));return s}return null}function lAe(n){var e,t,i,r,c,s,f;for(e=0,r=new M(n.e);r.a=2}function aAe(n,e,t,i,r){var c,s,f,h,l,a;for(c=n.c.d.j,s=u(is(t,0),8),a=1;a1||(e=Lt(ef,S(T(Ir,1),z,95,0,[Bl,tf])),Mk($C(e,n))>1)||(i=Lt(cf,S(T(Ir,1),z,95,0,[cl,Is])),Mk($C(i,n))>1))}function gen(n,e,t){var i,r,c;for(c=new M(n.t);c.a0&&(i.b.n-=i.c,i.b.n<=0&&i.b.u>0&&We(e,i.b));for(r=new M(n.i);r.a0&&(i.a.u-=i.c,i.a.u<=0&&i.a.n>0&&We(t,i.a))}function SA(n){var e,t,i,r,c;if(n.g==null&&(n.d=n.bj(n.f),Se(n,n.d),n.c))return c=n.f,c;if(e=u(n.g[n.i-1],51),r=e.Pb(),n.e=e,t=n.bj(r),t.Ob())n.d=t,Se(n,t);else for(n.d=null;!e.Ob()&&(zt(n.g,--n.i,null),n.i!=0);)i=u(n.g[n.i-1],51),e=i;return r}function bAe(n,e){var t,i,r,c,s,f;if(i=e,r=i.Lk(),Ol(n.e,r)){if(r.Si()&&UC(n,r,i.md()))return!1}else for(f=lu(n.e.Dh(),r),t=u(n.g,124),c=0;c1||t>1)return 2;return e+t==1?2:0}function uo(n,e){var t,i,r,c,s,f;return c=n.a*UR+n.b*1502,f=n.b*UR+11,t=y.Math.floor(f*Ly),c+=t,f-=t*Ktn,c%=Ktn,n.a=c,n.b=f,e<=24?y.Math.floor(n.a*Jun[e]):(r=n.a*(1<=2147483648&&(i-=4294967296),i)}function Kqn(n,e,t){var i,r,c,s,f,h,l;for(c=new nn,l=new xt,s=new xt,FOe(n,l,s,e),bDe(n,l,s,e,t),h=new M(n);h.ai.b.g&&Xn(c.c,i);return c}function kAe(n,e,t){var i,r,c,s,f,h;for(f=n.c,s=(t.q?t.q:(Fn(),Fn(),Zh)).vc().Kc();s.Ob();)c=u(s.Pb(),44),i=!c3(pt(new Pn(null,new Nn(f,16)),new Jv(new JCn(e,c)))).Bd((Xa(),pv)),i&&(h=c.md(),L(h,4)&&(r=yZ(h),r!=null&&(h=r)),e.qf(u(c.ld(),149),h))}function yAe(n,e,t){var i,r;if(z7(n.b),wf(n.b,(Bk(),QP),(f6(),Gj)),wf(n.b,YP,e.g),wf(n.b,ZP,e.a),n.a=vy(n.b,e),t.Ug("Compaction by shrinking a tree",n.a.c.length),e.i.c.length>1)for(r=new M(n.a);r.a=0?n.Lh(i,!0,!0):_0(n,c,!0),160)),u(r,220).Xl(e,t)}else throw C(new Yn(ba+e.xe()+p8))}function IA(n,e){var t,i,r,c,s;if(e){for(c=L(n.Cb,90)||L(n.Cb,102),s=!c&&L(n.Cb,331),i=new oe((!e.a&&(e.a=new B6(e,Pr,e)),e.a));i.e!=i.i.gc();)if(t=u(be(i),89),r=HA(t),c?L(r,90):s?L(r,156):r)return r;return c?(xn(),Ns):(xn(),ih)}else return null}function jAe(n,e){var t,i,r,c;for(e.Ug("Resize child graph to fit parent.",1),i=new M(n.b);i.a=2*e&&en(t,new YD(s[i-1]+e,s[i]-e));return t}function CAe(n,e,t){var i,r,c,s,f,h,l,a;if(t)for(c=t.a.length,i=new Ja(c),f=(i.b-i.a)*i.c<0?(K1(),Fa):new q1(i);f.Ob();)s=u(f.Pb(),17),r=P3(t,s.a),r&&(Ue=null,h=e4e(n,(l=(R1(),a=new pz,a),e&&men(l,e),l),r),G3(h,pl(r,Ah)),kA(r,h),qnn(r,h),Zx(n,r,h))}function PA(n){var e,t,i,r,c,s;if(!n.j){if(s=new d6n,e=F9,c=e.a.zc(n,e),c==null){for(i=new oe(Wr(n));i.e!=i.i.gc();)t=u(be(i),29),r=PA(t),Jt(s,r),Se(s,t);e.a.Bc(n)!=null}Zb(s),n.j=new bg((u(D(q((U1(),Vn).o),11),19),s.i),s.g),io(n).b&=-33}return n.j}function TAe(n){var e,t,i,r;if(n==null)return null;if(i=Uc(n,!0),r=tj.length,On(i.substr(i.length-r,r),tj)){if(t=i.length,t==4){if(e=(Zn(0,i.length),i.charCodeAt(0)),e==43)return M0n;if(e==45)return afe}else if(t==3)return M0n}return new uz(i)}function AAe(n){var e,t,i;return t=n.l,(t&t-1)!=0||(i=n.m,(i&i-1)!=0)||(e=n.h,(e&e-1)!=0)||e==0&&i==0&&t==0?-1:e==0&&i==0&&t!=0?FQ(t):e==0&&i!=0&&t==0?FQ(i)+22:e!=0&&i==0&&t==0?FQ(e)+44:-1}function qg(n,e){var t,i,r,c,s;for(r=e.a&n.f,c=null,i=n.b[r];;i=i.b){if(i==e){c?c.b=e.b:n.b[r]=e.b;break}c=i}for(s=e.f&n.f,c=null,t=n.c[s];;t=t.d){if(t==e){c?c.d=e.d:n.c[s]=e.d;break}c=t}e.e?e.e.c=e.c:n.a=e.c,e.c?e.c.e=e.e:n.e=e.e,--n.i,++n.g}function SAe(n,e){var t;e.d?e.d.b=e.b:n.a=e.b,e.b?e.b.d=e.d:n.e=e.d,!e.e&&!e.c?(t=u(gs(u(Fp(n.b,e.a),260)),260),t.a=0,++n.c):(t=u(gs(u(se(n.b,e.a),260)),260),--t.a,e.e?e.e.c=e.c:t.b=u(gs(e.c),511),e.c?e.c.e=e.e:t.c=u(gs(e.e),511)),--n.d}function IAe(n){var e,t,i,r,c,s,f,h,l,a;for(t=n.o,e=n.p,s=at,r=tr,f=at,c=tr,l=0;l0),c.a.Xb(c.c=--c.b),$b(c,r),we(c.b3&&Hh(n,0,e-3))}function OAe(n){var e,t,i,r;return F(m(n,(fn(),Fw)))===F((Cl(),S1))?!n.e&&F(m(n,Tj))!==F((J3(),kj)):(i=u(m(n,xH),299),r=ln(hn(m(n,FH)))||F(m(n,X8))===F((u5(),mj)),e=u(m(n,ihn),17).a,t=n.a.c.length,!r&&i!=(J3(),kj)&&(e==0||e>t))}function LAe(n){var e,t;for(t=0;t0);t++);if(t>0&&t0);e++);return e>0&&t>16!=6&&e){if(w4(n,e))throw C(new Yn(v8+iqn(n)));i=null,n.Cb&&(i=(t=n.Db>>16,t>=0?HZ(n,i):n.Cb.Th(n,-1-t,null,i))),e&&(i=Xp(e,n,6,i)),i=TW(n,e,i),i&&i.oj()}else(n.Db&4)!=0&&(n.Db&1)==0&&bt(n,new Di(n,1,6,e,e))}function OA(n,e){var t,i;if(e!=n.Cb||n.Db>>16!=3&&e){if(w4(n,e))throw C(new Yn(v8+GUn(n)));i=null,n.Cb&&(i=(t=n.Db>>16,t>=0?zZ(n,i):n.Cb.Th(n,-1-t,null,i))),e&&(i=Xp(e,n,12,i)),i=AW(n,e,i),i&&i.oj()}else(n.Db&4)!=0&&(n.Db&1)==0&&bt(n,new Di(n,1,3,e,e))}function men(n,e){var t,i;if(e!=n.Cb||n.Db>>16!=9&&e){if(w4(n,e))throw C(new Yn(v8+HGn(n)));i=null,n.Cb&&(i=(t=n.Db>>16,t>=0?GZ(n,i):n.Cb.Th(n,-1-t,null,i))),e&&(i=Xp(e,n,9,i)),i=SW(n,e,i),i&&i.oj()}else(n.Db&4)!=0&&(n.Db&1)==0&&bt(n,new Di(n,1,9,e,e))}function E4(n){var e,t,i,r,c;if(i=ks(n),c=n.j,c==null&&i)return n.Jk()?null:i.ik();if(L(i,156)){if(t=i.jk(),t&&(r=t.wi(),r!=n.i)){if(e=u(i,156),e.nk())try{n.g=r.ti(e,c)}catch(s){if(s=_t(s),L(s,82))n.g=null;else throw C(s)}n.i=r}return n.g}return null}function Gqn(n){var e;return e=new nn,en(e,new ap(new V(n.c,n.d),new V(n.c+n.b,n.d))),en(e,new ap(new V(n.c,n.d),new V(n.c,n.d+n.a))),en(e,new ap(new V(n.c+n.b,n.d+n.a),new V(n.c+n.b,n.d))),en(e,new ap(new V(n.c+n.b,n.d+n.a),new V(n.c,n.d+n.a))),e}function DAe(n){var e,t,i;if(n==null)return ju;try{return tc(n)}catch(r){if(r=_t(r),L(r,103))return e=r,i=za(mo(n))+"@"+(t=(al(),kZ(n)>>>0),t.toString(16)),X7e(L5e(),(f3(),"Exception during lenientFormat for "+i),e),"<"+i+" threw "+za(e.Rm)+">";throw C(r)}}function NAe(n,e,t){var i,r,c;for(c=e.a.ec().Kc();c.Ob();)r=u(c.Pb(),74),i=u(se(n.b,r),272),!i&&(Rt(Gh(r))==Rt(ra(r))?ySe(n,r,t):Gh(r)==Rt(ra(r))?se(n.c,r)==null&&se(n.b,ra(r))!=null&&jzn(n,r,t,!1):se(n.d,r)==null&&se(n.b,Gh(r))!=null&&jzn(n,r,t,!0))}function xAe(n,e){var t,i,r,c,s,f,h;for(r=n.Kc();r.Ob();)for(i=u(r.Pb(),10),f=new $c,fc(f,i),Ci(f,(rn(),ue)),U(f,(J(),hP),(Wn(),!0)),s=e.Kc();s.Ob();)c=u(s.Pb(),10),h=new $c,fc(h,c),Ci(h,te),U(h,hP,!0),t=new j0,U(t,hP,!0),ur(t,f),Bi(t,h)}function FAe(n,e,t,i){var r,c,s,f;r=SBn(n,e,t),c=SBn(n,t,e),s=u(se(n.c,e),118),f=u(se(n.c,t),118),r1)for(e=f0((t=new Ua,++n.b,t),n.d),f=Ce(c,0);f.b!=f.d.c;)s=u(Ee(f),125),Xs($s(Fs(Rs(xs(new bs,1),0),e),s))}function BAe(n,e,t){var i,r,c,s,f;for(t.Ug("Breaking Point Removing",1),n.a=u(m(e,(fn(),Rl)),223),c=new M(e.b);c.a>16!=11&&e){if(w4(n,e))throw C(new Yn(v8+Ben(n)));i=null,n.Cb&&(i=(t=n.Db>>16,t>=0?XZ(n,i):n.Cb.Th(n,-1-t,null,i))),e&&(i=Xp(e,n,10,i)),i=$W(n,e,i),i&&i.oj()}else(n.Db&4)!=0&&(n.Db&1)==0&&bt(n,new Di(n,1,11,e,e))}function KAe(n){var e,t,i,r;for(i=new od(new qa(n.b).a);i.b;)t=L0(i),r=u(t.ld(),12),e=u(t.md(),10),U(e,(J(),yt),r),U(r,Qu,e),U(r,Ej,(Wn(),!0)),Ci(r,u(m(e,jc),64)),m(e,jc),U(r.i,(fn(),Yt),(Ki(),Rm)),u(m(Vi(r.i),Jc),21).Fc((Cr(),vm))}function _Ae(n,e,t){var i,r,c,s,f,h;if(c=0,s=0,n.c)for(h=new M(n.d.i.j);h.ac.a?-1:r.ah){for(a=n.d,n.d=_(Vdn,uun,66,2*h+4,0,1),c=0;c=9223372036854776e3?(F3(),Aun):(r=!1,n<0&&(r=!0,n=-n),i=0,n>=vd&&(i=Mi(n/vd),n-=i*vd),t=0,n>=cv&&(t=Mi(n/cv),n-=t*cv),e=Mi(n),c=cu(e,t,i),r&&nF(c),c)}function YAe(n){var e,t,i,r,c;if(c=new nn,ou(n.b,new v7n(c)),n.b.c.length=0,c.c.length!=0){for(e=($n(0,c.c.length),u(c.c[0],82)),t=1,i=c.c.length;t=-e&&i==e?new Ei(Z(t-1),Z(i)):new Ei(Z(t),Z(i-1))}function Xqn(){return fr(),S(T(hFe,1),z,81,0,[asn,fsn,l2,W_,Osn,NI,GI,Ow,Isn,ksn,Asn,Pw,Psn,psn,Lsn,isn,RI,V_,LI,_I,Nsn,KI,rsn,Ssn,xsn,HI,Dsn,DI,bsn,Csn,Msn,UI,osn,OI,FI,usn,om,jsn,vsn,Tsn,F8,hsn,ssn,Esn,msn,$I,qI,csn,BI,ysn,xI,wsn,dsn,gj,PI,gsn,lsn])}function eSe(n,e,t){n.d=0,n.b=0,e.k==(ee(),Vc)&&t.k==Vc&&u(m(e,(J(),yt)),10)==u(m(t,yt),10)&&(kx(e).j==(rn(),ne)?Nqn(n,e,t):Nqn(n,t,e)),e.k==Vc&&t.k==Ni?kx(e).j==(rn(),ne)?n.d=1:n.b=1:t.k==Vc&&e.k==Ni&&(kx(t).j==(rn(),ne)?n.b=1:n.d=1),Bke(n,e,t)}function tSe(n){var e,t,i,r,c,s,f,h,l,a,d;return d=pnn(n),e=n.a,h=e!=null,h&&m3(d,"category",n.a),r=i7(new Ha(n.d)),s=!r,s&&(l=new Ka,mf(d,"knownOptions",l),t=new Zyn(l),Ji(new Ha(n.d),t)),c=i7(n.g),f=!c,f&&(a=new Ka,mf(d,"supportedFeatures",a),i=new njn(a),Ji(n.g,i)),d}function iSe(n){var e,t,i,r,c,s,f,h,l;for(i=!1,e=336,t=0,c=new FSn(n.length),f=n,h=0,l=f.length;h>16!=7&&e){if(w4(n,e))throw C(new Yn(v8+nHn(n)));i=null,n.Cb&&(i=(t=n.Db>>16,t>=0?qZ(n,i):n.Cb.Th(n,-1-t,null,i))),e&&(i=u(e,54).Rh(n,1,fE,i)),i=PV(n,e,i),i&&i.oj()}else(n.Db&4)!=0&&(n.Db&1)==0&&bt(n,new Di(n,1,7,e,e))}function Wqn(n,e){var t,i;if(e!=n.Cb||n.Db>>16!=3&&e){if(w4(n,e))throw C(new Yn(v8+YRn(n)));i=null,n.Cb&&(i=(t=n.Db>>16,t>=0?UZ(n,i):n.Cb.Th(n,-1-t,null,i))),e&&(i=u(e,54).Rh(n,0,lE,i)),i=OV(n,e,i),i&&i.oj()}else(n.Db&4)!=0&&(n.Db&1)==0&&bt(n,new Di(n,1,3,e,e))}function O$(n,e){M4();var t,i,r,c,s,f,h,l,a;return e.d>n.d&&(f=n,n=e,e=f),e.d<63?USe(n,e):(s=(n.d&-2)<<4,l=JJ(n,s),a=JJ(e,s),i=Q$(n,xp(l,s)),r=Q$(e,xp(a,s)),h=O$(l,a),t=O$(i,r),c=O$(Q$(l,i),Q$(r,a)),c=rR(rR(c,h),t),c=xp(c,s),h=xp(h,s<<1),rR(rR(h,c),t))}function w1(){w1=$,JH=new hg(QWn,0),qhn=new hg("LONGEST_PATH",1),Ghn=new hg("LONGEST_PATH_SOURCE",2),VH=new hg("COFFMAN_GRAHAM",3),Hhn=new hg(kB,4),Uhn=new hg("STRETCH_WIDTH",5),SP=new hg("MIN_WIDTH",6),Tm=new hg("BF_MODEL_ORDER",7),Am=new hg("DF_MODEL_ORDER",8)}function cSe(n,e,t){var i,r,c,s,f;for(s=p5(n,t),f=_(el,p1,10,e.length,0,1),i=0,c=s.Kc();c.Ob();)r=u(c.Pb(),12),ln(hn(m(r,(J(),Ej))))&&(f[i++]=u(m(r,Qu),10));if(i=0;c+=t?1:-1)s=s|e.c.lg(h,c,t,i&&!ln(hn(m(e.j,(J(),ka))))&&!ln(hn(m(e.j,(J(),m2))))),s=s|e.q.ug(h,c,t),s=s|xGn(n,h[c],t,i);return pi(n.c,e),s}function NA(n,e,t){var i,r,c,s,f,h,l,a,d,g;for(a=bDn(n.j),d=0,g=a.length;d1&&(n.a=!0),Rge(u(t.b,68),dt(Xi(u(e.b,68).c),fh(Ai(Xi(u(t.b,68).a),u(e.b,68).a),r))),yLn(n,e),Vqn(n,t)}function Jqn(n){var e,t,i,r,c,s,f;for(c=new M(n.a.a);c.a0&&c>0?s.p=e++:i>0?s.p=t++:c>0?s.p=r++:s.p=t++}Fn(),ui(n.j,new S2n)}function hSe(n){var e,t;t=null,e=u(an(n.g,0),18);do{if(t=e.d.i,Ot(t,(J(),As)))return u(m(t,As),12).i;if(t.k!=(ee(),ti)&&Te(new he(de(ri(t).a.Kc(),new zn))))e=u(pe(new he(de(ri(t).a.Kc(),new zn))),18);else if(t.k!=ti)return null}while(t&&t.k!=(ee(),ti));return t}function lSe(n,e){var t,i,r,c,s,f,h,l,a;for(f=e.j,s=e.g,h=u(an(f,f.c.length-1),113),a=($n(0,f.c.length),u(f.c[0],113)),l=YF(n,s,h,a),c=1;cl&&(h=t,a=r,l=i);e.a=a,e.c=h}function aSe(n,e,t){var i,r,c,s,f,h,l;for(l=new Xl(new $kn(n)),s=S(T(Sne,1),yWn,12,0,[e,t]),f=0,h=s.length;fh-n.b&&fh-n.a&&f0?c.a?(f=c.b.Mf().a,t>f&&(r=(t-f)/2,c.d.b=r,c.d.c=r)):c.d.c=n.s+t:_6(n.u)&&(i=vnn(c.b),i.c<0&&(c.d.b=-i.c),i.c+i.b>c.b.Mf().a&&(c.d.c=i.c+i.b-c.b.Mf().a))}function ISe(n,e){var t,i,r,c,s;s=new nn,t=e;do c=u(se(n.b,t),131),c.B=t.c,c.D=t.d,Xn(s.c,c),t=u(se(n.k,t),18);while(t);return i=($n(0,s.c.length),u(s.c[0],131)),i.j=!0,i.A=u(i.d.a.ec().Kc().Pb(),18).c.i,r=u(an(s,s.c.length-1),131),r.q=!0,r.C=u(r.d.a.ec().Kc().Pb(),18).d.i,s}function PSe(n){var e,t;if(e=u(n.a,17).a,t=u(n.b,17).a,e>=0){if(e==t)return new Ei(Z(-e-1),Z(-e-1));if(e==-t)return new Ei(Z(-e),Z(t+1))}return y.Math.abs(e)>y.Math.abs(t)?e<0?new Ei(Z(-e),Z(t)):new Ei(Z(-e),Z(t+1)):new Ei(Z(e+1),Z(t))}function OSe(n){var e,t;t=u(m(n,(fn(),bu)),171),e=u(m(n,(J(),Pd)),311),t==(ts(),ya)?(U(n,bu,Cj),U(n,Pd,(jl(),p2))):t==Nw?(U(n,bu,Cj),U(n,Pd,(jl(),yv))):e==(jl(),p2)?(U(n,bu,ya),U(n,Pd,yj)):e==yv&&(U(n,bu,Nw),U(n,Pd,yj))}function xA(){xA=$,Nj=new b3n,_re=Qe(new li,(er(),Bc),(fr(),LI)),Gre=xu(Qe(new li,Bc,KI),Yr,BI),Ure=gh(gh(l6(xu(Qe(new li,Ys,GI),Yr,qI),Wc),HI),UI),Hre=xu(Qe(Qe(Qe(new li,nl,NI),Wc,FI),Wc,om),Yr,xI),qre=xu(Qe(Qe(new li,Wc,om),Wc,OI),Yr,PI)}function _5(){_5=$,Wre=Qe(xu(new li,(er(),Yr),(fr(),wsn)),Bc,LI),Yre=gh(gh(l6(xu(Qe(new li,Ys,GI),Yr,qI),Wc),HI),UI),Vre=xu(Qe(Qe(Qe(new li,nl,NI),Wc,FI),Wc,om),Yr,xI),Qre=Qe(Qe(new li,Bc,KI),Yr,BI),Jre=xu(Qe(Qe(new li,Wc,om),Wc,OI),Yr,PI)}function LSe(n,e,t,i,r){var c,s;(!gr(e)&&e.c.i.c==e.d.i.c||!ZFn(lc(S(T(Li,1),Q,8,0,[r.i.n,r.n,r.a])),t))&&!gr(e)&&(e.c==r?d3(e.a,0,new lr(t)):We(e.a,new lr(t)),i&&!df(n.a,t)&&(s=u(m(e,(fn(),qr)),75),s||(s=new Ou,U(e,qr,s)),c=new lr(t),Xt(s,c,s.c.b,s.c),pi(n.a,c)))}function Zqn(n,e){var t,i,r,c;for(c=$e(sr(Wh,Kh($e(sr(e==null?0:It(e),Vh)),15))),t=c&n.b.length-1,r=null,i=n.b[t];i;r=i,i=i.a)if(i.d==c&&ah(i.i,e))return r?r.a=i.a:n.b[t]=i.a,PEn(u(gs(i.c),604),u(gs(i.f),604)),Y9(u(gs(i.b),227),u(gs(i.e),227)),--n.f,++n.e,!0;return!1}function DSe(n){var e,t;for(t=new he(de(Oi(n).a.Kc(),new zn));Te(t);)if(e=u(pe(t),18),e.c.i.k!=(ee(),Nc))throw C(new Gl(mB+Xk(n)+"' has its layer constraint set to FIRST, but has at least one incoming edge that does not come from a FIRST_SEPARATE node. That must not happen."))}function NSe(n,e,t){var i,r,c,s,f,h,l;if(r=iBn(n.Db&254),r==0)n.Eb=t;else{if(r==1)f=_(Ii,Gn,1,2,5,1),c=QF(n,e),c==0?(f[0]=t,f[1]=n.Eb):(f[0]=n.Eb,f[1]=t);else for(f=_(Ii,Gn,1,r+1,5,1),s=rd(n.Eb),i=2,h=0,l=0;i<=128;i<<=1)i==e?f[l++]=t:(n.Db&i)!=0&&(f[l++]=s[h++]);n.Eb=f}n.Db|=e}function nGn(n,e,t){var i,r,c,s;for(this.b=new nn,r=0,i=0,s=new M(n);s.a0&&(c=u(an(this.b,0),176),r+=c.o,i+=c.p),r*=2,i*=2,e>1?r=Mi(y.Math.ceil(r*e)):i=Mi(y.Math.ceil(i/e)),this.a=new hZ(r,i)}function eGn(n,e,t,i,r,c){var s,f,h,l,a,d,g,p,v,k,j,A;for(a=i,e.j&&e.o?(p=u(se(n.f,e.A),60),k=p.d.c+p.d.b,--a):k=e.a.c+e.a.b,d=r,t.q&&t.o?(p=u(se(n.f,t.C),60),l=p.d.c,++d):l=t.a.c,j=l-k,h=y.Math.max(2,d-a),f=j/h,v=k+f,g=a;g=0;s+=r?1:-1){for(f=e[s],h=i==(rn(),ue)?r?ac(f,i):es(ac(f,i)):r?es(ac(f,i)):ac(f,i),c&&(n.c[f.p]=h.gc()),d=h.Kc();d.Ob();)a=u(d.Pb(),12),n.d[a.p]=l++;vi(t,h)}}function iGn(n,e,t){var i,r,c,s,f,h,l,a;for(c=x(K(n.b.Kc().Pb())),l=x(K(O5e(e.b))),i=fh(Xi(n.a),l-t),r=fh(Xi(e.a),t-c),a=dt(i,r),fh(a,1/(l-c)),this.a=a,this.b=new nn,f=!0,s=n.b.Kc(),s.Pb();s.Ob();)h=x(K(s.Pb())),f&&h-t>ZB&&(this.b.Fc(t),f=!1),this.b.Fc(h);f&&this.b.Fc(t)}function xSe(n){var e,t,i,r;if(ZIe(n,n.n),n.d.c.length>0){for(t6(n.c);oen(n,u(E(new M(n.e.a)),125))>5,e&=31,i>=n.d)return n.e<0?(ph(),hYn):(ph(),O8);if(c=n.d-i,r=_(Oe,Ye,28,c+1,15,1),TMe(r,c,n.a,i,e),n.e<0){for(t=0;t0&&n.a[t]<<32-e!=0){for(t=0;t=0?!1:(t=Wg((Ru(),Zi),r,e),t?(i=t.Ik(),(i>1||i==-1)&&k0(Br(Zi,t))!=3):!0)):!1}function BSe(n,e,t,i){var r,c,s,f,h;return f=Qr(u(D((!e.b&&(e.b=new Kn(ve,e,4,7)),e.b),0),84)),h=Qr(u(D((!e.c&&(e.c=new Kn(ve,e,5,8)),e.c),0),84)),Rt(f)==Rt(h)||Jb(h,f)?null:(s=Y7(e),s==t?i:(c=u(se(n.a,s),10),c&&(r=c.e,r)?r:null))}function KSe(n,e,t){var i,r,c,s,f;for(t.Ug("Longest path to source layering",1),n.a=e,f=n.a.a,n.b=_(Oe,Ye,28,f.c.length,15,1),i=0,s=new M(f);s.a0&&(t[0]+=n.d,s-=t[0]),t[2]>0&&(t[2]+=n.d,s-=t[2]),c=y.Math.max(0,s),t[1]=y.Math.max(t[1],s),YJ(n,iu,r.c+i.b+t[0]-(t[1]-s)/2,t),e==iu&&(n.c.b=c,n.c.c=r.c+i.b+(c-s)/2)}function dGn(){this.c=_(Ri,Nr,28,(rn(),S(T(vr,1),Lc,64,0,[bc,ne,ue,ye,te])).length,15,1),this.b=_(Ri,Nr,28,S(T(vr,1),Lc,64,0,[bc,ne,ue,ye,te]).length,15,1),this.a=_(Ri,Nr,28,S(T(vr,1),Lc,64,0,[bc,ne,ue,ye,te]).length,15,1),eX(this.c,Bt),eX(this.b,mi),eX(this.a,mi)}function Gc(n,e,t){var i,r,c,s;if(e<=t?(r=e,c=t):(r=t,c=e),i=0,n.b==null)n.b=_(Oe,Ye,28,2,15,1),n.b[0]=r,n.b[1]=c,n.c=!0;else{if(i=n.b.length,n.b[i-1]+1==r){n.b[i-1]=c;return}s=_(Oe,Ye,28,i+2,15,1),Rc(n.b,0,s,0,i),n.b=s,n.b[i-1]>=r&&(n.c=!1,n.a=!1),n.b[i++]=r,n.b[i]=c,n.c||Hg(n)}}function zSe(n,e,t){var i,r,c,s,f,h,l;for(l=e.d,n.a=new Zc(l.c.length),n.c=new je,f=new M(l);f.a=0?n.Lh(l,!1,!0):_0(n,t,!1),61));n:for(c=d.Kc();c.Ob();){for(r=u(c.Pb(),58),a=0;a1;)lw(r,r.i-1);return i}function wGn(n,e){var t,i,r,c,s,f,h;for(t=new yg,c=new M(n.b);c.an.d[s.p]&&(t+=GJ(n.b,c),V1(n.a,Z(c)));for(;!i6(n.a);)EQ(n.b,u(Tp(n.a),17).a)}return t}function YSe(n){var e,t,i,r,c,s,f,h,l;for(n.a=new FW,l=0,r=0,i=new M(n.i.b);i.af.d&&(a=f.d+f.a+l));t.c.d=a,e.a.zc(t,e),h=y.Math.max(h,t.c.d+t.c.a)}return h}function Cr(){Cr=$,iP=new Pb("COMMENTS",0),fs=new Pb("EXTERNAL_PORTS",1),K8=new Pb("HYPEREDGES",2),rP=new Pb("HYPERNODES",3),vm=new Pb("NON_FREE_PORTS",4),g2=new Pb("NORTH_SOUTH_PORTS",5),_8=new Pb(BWn,6),gm=new Pb("CENTER_LABELS",7),pm=new Pb("END_LABELS",8),cP=new Pb("PARTITIONS",9)}function nIe(n,e,t,i,r){return i<0?(i=_g(n,r,S(T(dn,1),Q,2,6,[kR,yR,jR,ER,iv,MR,CR,TR,AR,SR,IR,PR]),e),i<0&&(i=_g(n,r,S(T(dn,1),Q,2,6,["Jan","Feb","Mar","Apr",iv,"Jun","Jul","Aug","Sep","Oct","Nov","Dec"]),e)),i<0?!1:(t.k=i,!0)):i>0?(t.k=i-1,!0):!1}function eIe(n,e,t,i,r){return i<0?(i=_g(n,r,S(T(dn,1),Q,2,6,[kR,yR,jR,ER,iv,MR,CR,TR,AR,SR,IR,PR]),e),i<0&&(i=_g(n,r,S(T(dn,1),Q,2,6,["Jan","Feb","Mar","Apr",iv,"Jun","Jul","Aug","Sep","Oct","Nov","Dec"]),e)),i<0?!1:(t.k=i,!0)):i>0?(t.k=i-1,!0):!1}function tIe(n,e,t,i,r,c){var s,f,h,l;if(f=32,i<0){if(e[0]>=n.length||(f=nr(n,e[0]),f!=43&&f!=45)||(++e[0],i=CA(n,e),i<0))return!1;f==45&&(i=-i)}return f==32&&e[0]-t==2&&r.b==2&&(h=new nM,l=h.q.getFullYear()-ha+ha-80,s=l%100,c.a=i==s,i+=(l/100|0)*100+(i=0?ia(n):U6(ia(i1(n)))),L8[e]=OM(Hs(n,e),0)?ia(Hs(n,e)):U6(ia(i1(Hs(n,e)))),n=sr(n,5);for(;e=l&&(h=i);h&&(a=y.Math.max(a,h.a.o.a)),a>g&&(d=l,g=a)}return d}function sIe(n){var e,t,i,r,c,s,f;for(c=new Xl(u(Re(new own),50)),f=mi,t=new M(n.d);t.alVn?ui(h,n.b):i<=lVn&&i>aVn?ui(h,n.d):i<=aVn&&i>dVn?ui(h,n.c):i<=dVn&&ui(h,n.a),c=kGn(n,h,c);return r}function yGn(n,e,t,i){var r,c,s,f,h,l;for(r=(i.c+i.a)/2,Eo(e.j),We(e.j,r),Eo(t.e),We(t.e,r),l=new qEn,f=new M(n.f);f.a1,f&&(i=new V(r,t.b),We(e.a,i)),c5(e.a,S(T(Li,1),Q,8,0,[g,d]))}function Pen(n,e,t){var i,r;for(e=48;t--)K9[t]=t-48<<24>>24;for(i=70;i>=65;i--)K9[i]=i-65+10<<24>>24;for(r=102;r>=97;r--)K9[r]=r-97+10<<24>>24;for(c=0;c<10;c++)LO[c]=48+c&bi;for(n=10;n<=15;n++)LO[n]=65+n-10&bi}function aIe(n,e){e.Ug("Process graph bounds",1),U(n,(St(),vq),g7(qx(Hb(new Pn(null,new Nn(n.b,16)),new U3n)))),U(n,mq,g7(qx(Hb(new Pn(null,new Nn(n.b,16)),new z3n)))),U(n,Nln,g7(Hx(Hb(new Pn(null,new Nn(n.b,16)),new X3n)))),U(n,xln,g7(Hx(Hb(new Pn(null,new Nn(n.b,16)),new W3n)))),e.Vg()}function dIe(n){var e,t,i,r,c;r=u(m(n,(fn(),xd)),21),c=u(m(n,MP),21),t=new V(n.f.a+n.d.b+n.d.c,n.f.b+n.d.d+n.d.a),e=new lr(t),r.Hc((ko(),Vw))&&(i=u(m(n,km),8),c.Hc((oo(),Bm))&&(i.a<=0&&(i.a=20),i.b<=0&&(i.b=20)),e.a=y.Math.max(t.a,i.a),e.b=y.Math.max(t.b,i.b)),ln(hn(m(n,HH)))||qOe(n,t,e)}function bIe(n,e){var t,i,r,c;for(c=ac(e,(rn(),ye)).Kc();c.Ob();)i=u(c.Pb(),12),t=u(m(i,(J(),Qu)),10),t&&Xs($s(Fs(Rs(xs(new bs,0),.1),n.i[e.p].d),n.i[t.p].a));for(r=ac(e,ne).Kc();r.Ob();)i=u(r.Pb(),12),t=u(m(i,(J(),Qu)),10),t&&Xs($s(Fs(Rs(xs(new bs,0),.1),n.i[t.p].d),n.i[e.p].a))}function D$(n){var e,t,i,r,c,s;if(!n.c){if(s=new f6n,e=F9,c=e.a.zc(n,e),c==null){for(i=new oe(Fc(n));i.e!=i.i.gc();)t=u(be(i),89),r=HA(t),L(r,90)&&Jt(s,D$(u(r,29))),Se(s,t);e.a.Bc(n)!=null,e.a.gc()==0}f7e(s),Zb(s),n.c=new bg((u(D(q((U1(),Vn).o),15),19),s.i),s.g),io(n).b&=-33}return n.c}function Len(n){var e;if(n.c!=10)throw C(new qe(ze((Ke(),XS))));switch(e=n.a,e){case 110:e=10;break;case 114:e=13;break;case 116:e=9;break;case 92:case 124:case 46:case 94:case 45:case 63:case 42:case 43:case 123:case 125:case 40:case 41:case 91:case 93:break;default:throw C(new qe(ze((Ke(),os))))}return e}function CGn(n){var e,t,i,r,c;if(n.l==0&&n.m==0&&n.h==0)return"0";if(n.h==Sy&&n.m==0&&n.l==0)return"-9223372036854775808";if(n.h>>19!=0)return"-"+CGn(Z3(n));for(t=n,i="";!(t.l==0&&t.m==0&&t.h==0);){if(r=fx(eS),t=atn(t,r,!0),e=""+VEn(wa),!(t.l==0&&t.m==0&&t.h==0))for(c=9-e.length;c>0;c--)e="0"+e;i=e+i}return i}function wIe(n){var e,t,i,r,c,s,f;for(e=!1,t=0,r=new M(n.d.b);r.a=n.a||!bnn(e,t))return-1;if(O3(u(i.Kb(e),20)))return 1;for(r=0,s=u(i.Kb(e),20).Kc();s.Ob();)if(c=u(s.Pb(),18),h=c.c.i==e?c.d.i:c.c.i,f=Den(n,h,t,i),f==-1||(r=y.Math.max(r,f),r>n.c-1))return-1;return r+1}function TGn(n,e){var t,i,r,c,s,f;if(F(e)===F(n))return!0;if(!L(e,15)||(i=u(e,15),f=n.gc(),i.gc()!=f))return!1;if(s=i.Kc(),n.Yi()){for(t=0;t0){if(n._j(),e!=null){for(c=0;c>24;case 97:case 98:case 99:case 100:case 101:case 102:return n-97+10<<24>>24;case 65:case 66:case 67:case 68:case 69:case 70:return n-65+10<<24>>24;default:throw C(new uh("Invalid hexadecimal"))}}function RA(){RA=$,von=new fg("SPIRAL",0),bon=new fg("LINE_BY_LINE",1),won=new fg("MANHATTAN",2),don=new fg("JITTER",3),y_=new fg("QUADRANTS_LINE_BY_LINE",4),pon=new fg("QUADRANTS_MANHATTAN",5),gon=new fg("QUADRANTS_JITTER",6),aon=new fg("COMBINE_LINE_BY_LINE_MANHATTAN",7),lon=new fg("COMBINE_JITTER_MANHATTAN",8)}function SGn(n,e,t,i){var r,c,s,f,h,l;for(h=r$(n,t),l=r$(e,t),r=!1;h&&l&&(i||aye(h,l,t));)s=r$(h,t),f=r$(l,t),dk(e),dk(n),c=h.c,cR(h,!1),cR(l,!1),t?(rw(e,l.p,c),e.p=l.p,rw(n,h.p+1,c),n.p=h.p):(rw(n,h.p,c),n.p=h.p,rw(e,l.p+1,c),e.p=l.p),qi(h,null),qi(l,null),h=s,l=f,r=!0;return r}function IGn(n){switch(n.g){case 0:return new H8n;case 1:return new K8n;case 3:return new iCn;case 4:return new Nvn;case 5:return new OSn;case 6:return new _8n;case 2:return new B8n;case 7:return new D8n;case 8:return new x8n;default:throw C(new Yn("No implementation is available for the layerer "+(n.f!=null?n.f:""+n.g)))}}function yIe(n,e,t,i){var r,c,s,f,h;for(r=!1,c=!1,f=new M(i.j);f.a=e.length)throw C(new Fr("Greedy SwitchDecider: Free layer not in graph."));this.c=e[n],this.e=new F7(i),Rx(this.e,this.c,(rn(),te)),this.i=new F7(i),Rx(this.i,this.c,ue),this.f=new WIn(this.c),this.a=!c&&r.i&&!r.s&&this.c[0].k==(ee(),oi),this.a&&xMe(this,n,e.length)}function OGn(n,e){var t,i,r,c,s,f;c=!n.B.Hc((oo(),oE)),s=n.B.Hc(SG),n.a=new pBn(s,c,n.c),n.n&&lJ(n.a.n,n.n),PL(n.g,(kf(),iu),n.a),e||(i=new M5(1,c,n.c),i.n.a=n.k,Ap(n.p,(rn(),ne),i),r=new M5(1,c,n.c),r.n.d=n.k,Ap(n.p,ye,r),f=new M5(0,c,n.c),f.n.c=n.k,Ap(n.p,te,f),t=new M5(0,c,n.c),t.n.b=n.k,Ap(n.p,ue,t))}function EIe(n){var e,t,i;switch(e=u(m(n.d,(fn(),Rl)),223),e.g){case 2:t=lxe(n);break;case 3:t=(i=new nn,Zt(pt(Xr(hc(hc(new Pn(null,new Nn(n.d.b,16)),new Gpn),new Upn),new zpn),new Opn),new dkn(i)),i);break;default:throw C(new $r("Compaction not supported for "+e+" edges."))}DLe(n,t),Ji(new Ha(n.g),new lkn(n))}function MIe(n,e){var t,i,r,c,s,f,h;if(e.Ug("Process directions",1),t=u(m(n,(pc(),vb)),88),t!=(di(),Zf))for(r=Ce(n.b,0);r.b!=r.d.c;){switch(i=u(Ee(r),40),f=u(m(i,(St(),$j)),17).a,h=u(m(i,Rj),17).a,t.g){case 4:h*=-1;break;case 1:c=f,f=h,h=c;break;case 2:s=f,f=-h,h=s}U(i,$j,Z(f)),U(i,Rj,Z(h))}e.Vg()}function CIe(n,e){var t;return t=new WO,e&&Jr(t,u(se(n.a,fE),96)),L(e,422)&&Jr(t,u(se(n.a,hE),96)),L(e,366)?(Jr(t,u(se(n.a,xr),96)),t):(L(e,84)&&Jr(t,u(se(n.a,ve),96)),L(e,207)?(Jr(t,u(se(n.a,ft),96)),t):L(e,193)?(Jr(t,u(se(n.a,eo),96)),t):(L(e,326)&&Jr(t,u(se(n.a,ii),96)),t))}function TIe(n){var e,t,i,r,c,s,f,h;for(h=new lNn,f=new M(n.a);f.a0&&e=0)return!1;if(e.p=t.b,en(t.e,e),r==(ee(),Ni)||r==Vc){for(s=new M(e.j);s.an.d[f.p]&&(t+=GJ(n.b,c),V1(n.a,Z(c)))):++s;for(t+=n.b.d*s;!i6(n.a);)EQ(n.b,u(Tp(n.a),17).a)}return t}function _Gn(n){var e,t,i,r,c,s;return c=0,e=ks(n),e.kk()&&(c|=4),(n.Bb&_u)!=0&&(c|=2),L(n,102)?(t=u(n,19),r=jr(t),(t.Bb&Ac)!=0&&(c|=32),r&&(ge(qb(r)),c|=8,s=r.t,(s>1||s==-1)&&(c|=16),(r.Bb&Ac)!=0&&(c|=64)),(t.Bb&pr)!=0&&(c|=Mw),c|=Vs):L(e,469)?c|=512:(i=e.kk(),i&&(i.i&1)!=0&&(c|=256)),(n.Bb&512)!=0&&(c|=128),c}function RIe(n,e){var t;return n.f==_G?(t=k0(Br((Ru(),Zi),e)),n.e?t==4&&e!=(Yp(),Bv)&&e!=(Yp(),Rv)&&e!=(Yp(),HG)&&e!=(Yp(),qG):t==2):n.d&&(n.d.Hc(e)||n.d.Hc(Dp(Br((Ru(),Zi),e)))||n.d.Hc(Wg((Ru(),Zi),n.b,e)))?!0:n.f&&ken((Ru(),n.f),X7(Br(Zi,e)))?(t=k0(Br(Zi,e)),n.e?t==4:t==2):!1}function BIe(n){var e,t,i,r,c,s,f,h,l,a,d,g,p;for(g=-1,p=0,l=n,a=0,d=l.length;a0&&++p;++g}return p}function KIe(n,e,t,i){var r,c,s,f,h,l,a,d;return s=u(X(t,(et(),Lv)),8),h=s.a,a=s.b+n,r=y.Math.atan2(a,h),r<0&&(r+=Ed),r+=e,r>Ed&&(r-=Ed),f=u(X(i,Lv),8),l=f.a,d=f.b+n,c=y.Math.atan2(d,l),c<0&&(c+=Ed),c+=e,c>Ed&&(c-=Ed),Pf(),Gs(1e-10),y.Math.abs(r-c)<=1e-10||r==c||isNaN(r)&&isNaN(c)?0:rc?1:o0(isNaN(r),isNaN(c))}function F$(n){var e,t,i,r,c,s,f;for(f=new je,i=new M(n.a.b);i.a=n.o)throw C(new bz);f=e>>5,s=e&31,c=Hs(1,$e(Hs(s,1))),r?n.n[t][f]=gf(n.n[t][f],c):n.n[t][f]=Si(n.n[t][f],lV(c)),c=Hs(c,1),i?n.n[t][f]=gf(n.n[t][f],c):n.n[t][f]=Si(n.n[t][f],lV(c))}catch(h){throw h=_t(h),L(h,333)?C(new Fr(iB+n.o+"*"+n.p+rB+e+dr+t+cB)):C(h)}}function qIe(n,e,t,i){var r,c,s,f,h,l,a,d,g;for(g=new Xl(new Fkn(n)),f=S(T(el,1),p1,10,0,[e,t]),h=0,l=f.length;h0&&(i=(!n.n&&(n.n=new G(xr,n,1,7)),u(D(n.n,0),135)).a,!i||Je(Je((e.a+=' "',e),i),'"'))),Je(e0(Je(e0(Je(e0(Je(e0((e.a+=" (",e),n.i),","),n.j)," | "),n.g),","),n.f),")"),e.a)}function HGn(n){var e,t,i;return(n.Db&64)!=0?w$(n):(e=new jo(Hcn),t=n.k,t?Je(Je((e.a+=' "',e),t),'"'):(!n.n&&(n.n=new G(xr,n,1,7)),n.n.i>0&&(i=(!n.n&&(n.n=new G(xr,n,1,7)),u(D(n.n,0),135)).a,!i||Je(Je((e.a+=' "',e),i),'"'))),Je(e0(Je(e0(Je(e0(Je(e0((e.a+=" (",e),n.i),","),n.j)," | "),n.g),","),n.f),")"),e.a)}function zIe(n,e){var t,i,r,c,s;for(e==(d5(),oq)&&ty(u(kt(n.a,(cw(),vj)),15)),r=u(kt(n.a,(cw(),vj)),15).Kc();r.Ob();)switch(i=u(r.Pb(),105),t=u(an(i.j,0),113).d.j,c=new Uu(i.j),ui(c,new Zpn),e.g){case 2:f$(n,c,t,(O0(),ma),1);break;case 1:case 0:s=LAe(c),f$(n,new Zl(c,0,s),t,(O0(),ma),0),f$(n,new Zl(c,s,c.c.length),t,ma,1)}}function R$(n,e){var t,i,r,c,s,f,h;if(e==null||e.length==0)return null;if(r=u(Hc(n.a,e),143),!r){for(i=(f=new hl(n.b).a.vc().Kc(),new Tb(f));i.a.Ob();)if(t=(c=u(i.a.Pb(),44),u(c.md(),143)),s=t.c,h=e.length,On(s.substr(s.length-h,h),e)&&(e.length==s.length||nr(s,s.length-e.length-1)==46)){if(r)return null;r=t}r&&Rr(n.a,e,r)}return r}function XIe(n,e){var t,i,r,c;return t=new dwn,i=u(ec(Xr(new Pn(null,new Nn(n.f,16)),t),Xb(new J2,new Q2,new Y2,new Z2,S(T(Hr,1),z,108,0,[(Vu(),Cw),rc]))),21),r=i.gc(),i=u(ec(Xr(new Pn(null,new Nn(e.f,16)),t),Xb(new J2,new Q2,new Y2,new Z2,S(T(Hr,1),z,108,0,[Cw,rc]))),21),c=i.gc(),rr.p?(Ci(c,ye),c.d&&(f=c.o.b,e=c.a.b,c.a.b=f-e)):c.j==ye&&r.p>n.p&&(Ci(c,ne),c.d&&(f=c.o.b,e=c.a.b,c.a.b=-(f-e)));break}return r}function ly(n,e,t,i,r){var c,s,f,h,l,a,d;if(!(L(e,207)||L(e,366)||L(e,193)))throw C(new Yn("Method only works for ElkNode-, ElkLabel and ElkPort-objects."));return s=n.a/2,h=e.i+i-s,a=e.j+r-s,l=h+e.g+n.a,d=a+e.f+n.a,c=new Ou,We(c,new V(h,a)),We(c,new V(h,d)),We(c,new V(l,d)),We(c,new V(l,a)),f=new T$(c),Jr(f,e),t&&ct(n.b,e,f),f}function C4(n,e,t){var i,r,c,s,f,h,l,a,d,g;for(c=new V(e,t),a=new M(n.a);a.a1,f&&(i=new V(r,t.b),We(e.a,i)),c5(e.a,S(T(Li,1),Q,8,0,[g,d]))}function ys(){ys=$,OP=new Ob(Mh,0),Pj=new Ob("NIKOLOV",1),Oj=new Ob("NIKOLOV_PIXEL",2),Yhn=new Ob("NIKOLOV_IMPROVED",3),Zhn=new Ob("NIKOLOV_IMPROVED_PIXEL",4),Qhn=new Ob("DUMMYNODE_PERCENTAGE",5),nln=new Ob("NODECOUNT_PERCENTAGE",6),LP=new Ob("NO_BOUNDARY",7),gb=new Ob("MODEL_ORDER_LEFT_TO_RIGHT",8),Hw=new Ob("MODEL_ORDER_RIGHT_TO_LEFT",9)}function iPe(n){var e,t,i,r,c;for(i=n.length,e=new r6,c=0;c=40,s&&rOe(n),aLe(n),xSe(n),t=oBn(n),i=0;t&&i0&&We(n.f,c)):(n.c[s]-=l+1,n.c[s]<=0&&n.a[s]>0&&We(n.e,c))))}function eUn(n,e,t,i){var r,c,s,f,h,l,a;for(h=new V(t,i),Ai(h,u(m(e,(St(),Im)),8)),a=Ce(e.b,0);a.b!=a.d.c;)l=u(Ee(a),40),dt(l.e,h),We(n.b,l);for(f=u(ec(jJ(new Pn(null,new Nn(e.a,16))),Xu(new Su,new Au,new Iu,S(T(Hr,1),z,108,0,[(Vu(),rc)]))),15).Kc();f.Ob();){for(s=u(f.Pb(),65),c=Ce(s.a,0);c.b!=c.d.c;)r=u(Ee(c),8),r.a+=h.a,r.b+=h.b;We(n.a,s)}}function Wen(n,e){var t,i,r,c;if(0<(L(n,16)?u(n,16).gc():vl(n.Kc()))){if(r=e,1=0&&hc*2?(a=new bT(d),l=Nu(s)/po(s),h=fR(a,e,new rp,t,i,r,l),dt(bf(a.e),h),d.c.length=0,c=0,Xn(d.c,a),Xn(d.c,s),c=Nu(a)*po(a)+Nu(s)*po(s)):(Xn(d.c,s),c+=Nu(s)*po(s));return d}function iUn(n,e){var t,i,r,c,s,f;if(f=u(m(e,(fn(),Yt)),101),f==(Ki(),ul)||f==Qc)for(r=new V(e.f.a+e.d.b+e.d.c,e.f.b+e.d.d+e.d.a).b,s=new M(n.a);s.at?e:t;l<=d;++l)l==t?f=i++:(c=r[l],a=v.am(c.Lk()),l==e&&(h=l==d&&!a?i-1:i),a&&++i);return g=u(y5(n,e,t),76),f!=h&&Zv(n,new fk(n.e,7,s,Z(f),p.md(),h)),g}}else return u(E$(n,e,t),76);return u(y5(n,e,t),76)}function jPe(n,e){var t,i,r,c,s,f,h;for(e.Ug("Port order processing",1),h=u(m(n,(fn(),Phn)),430),i=new M(n.b);i.a=0&&(f=pye(n,s),!(f&&(l<22?h.l|=1<>>1,s.m=a>>>1|(d&1)<<21,s.l=g>>>1|(a&1)<<21,--l;return t&&nF(h),c&&(i?(wa=Z3(n),r&&(wa=H$n(wa,(F3(),Sun)))):wa=cu(n.l,n.m,n.h)),h}function CPe(n,e){var t,i,r,c,s,f,h,l,a,d;for(l=n.e[e.c.p][e.p]+1,h=e.c.a.c.length+1,f=new M(n.a);f.a0&&(Zn(0,n.length),n.charCodeAt(0)==45||(Zn(0,n.length),n.charCodeAt(0)==43))?1:0,i=s;it)throw C(new uh(X0+n+'"'));return f}function TPe(n){var e,t,i,r,c,s,f;for(s=new xt,c=new M(n.a);c.a1)&&e==1&&u(n.a[n.b],10).k==(ee(),Nc)?nv(u(n.a[n.b],10),(Po(),rl)):i&&(!t||(n.c-n.b&n.a.length-1)>1)&&e==1&&u(n.a[n.c-1&n.a.length-1],10).k==(ee(),Nc)?nv(u(n.a[n.c-1&n.a.length-1],10),(Po(),Aa)):(n.c-n.b&n.a.length-1)==2?(nv(u(a5(n),10),(Po(),rl)),nv(u(a5(n),10),Aa)):tAe(n,r),HJ(n)}function IPe(n,e,t){var i,r,c,s,f;for(c=0,r=new oe((!n.a&&(n.a=new G(ft,n,10,11)),n.a));r.e!=r.i.gc();)i=u(be(r),27),s="",(!i.n&&(i.n=new G(xr,i,1,7)),i.n).i==0||(s=u(D((!i.n&&(i.n=new G(xr,i,1,7)),i.n),0),135).a),f=new eF(c++,e,s),Jr(f,i),U(f,(St(),f9),i),f.e.b=i.j+i.f/2,f.f.a=y.Math.max(i.g,1),f.e.a=i.i+i.g/2,f.f.b=y.Math.max(i.f,1),We(e.b,f),tu(t.f,i,f)}function PPe(n){var e,t,i,r,c;i=u(m(n,(J(),yt)),27),c=u(X(i,(fn(),xd)),181).Hc((ko(),Gd)),n.e||(r=u(m(n,Jc),21),e=new V(n.f.a+n.d.b+n.d.c,n.f.b+n.d.d+n.d.a),r.Hc((Cr(),fs))?(Et(i,Yt,(Ki(),Qc)),G0(i,e.a,e.b,!1,!0)):ln(hn(X(i,HH)))||G0(i,e.a,e.b,!0,!0)),c?Et(i,xd,Tn(Gd)):Et(i,xd,(t=u(af(P9),9),new Uo(t,u(Ks(t,t.length),9),0)))}function Ven(n,e,t){var i,r,c,s;if(e[0]>=n.length)return t.o=0,!0;switch(nr(n,e[0])){case 43:r=1;break;case 45:r=-1;break;default:return t.o=0,!0}if(++e[0],c=e[0],s=CA(n,e),s==0&&e[0]==c)return!1;if(e[0]f&&(f=r,a.c.length=0),r==f&&en(a,new Ei(t.c.i,t)));Fn(),ui(a,n.c),d0(n.b,h.p,a)}}function NPe(n,e){var t,i,r,c,s,f,h,l,a;for(s=new M(e.b);s.af&&(f=r,a.c.length=0),r==f&&en(a,new Ei(t.d.i,t)));Fn(),ui(a,n.c),d0(n.f,h.p,a)}}function xPe(n,e){var t,i,r,c,s,f,h,l;if(l=hn(m(e,(pc(),yce))),l==null||(ie(l),l)){for(oTe(n,e),r=new nn,h=Ce(e.b,0);h.b!=h.d.c;)s=u(Ee(h),40),t=Fnn(n,s,null),t&&(Jr(t,e),Xn(r.c,t));if(n.a=null,n.b=null,r.c.length>1)for(i=new M(r);i.a=0&&f!=t&&(c=new Di(n,1,f,s,null),i?i.nj(c):i=c),t>=0&&(c=new Di(n,1,t,f==t?s:null,e),i?i.nj(c):i=c)),i}function uUn(n){var e,t,i;if(n.b==null){if(i=new Ul,n.i!=null&&(Or(i,n.i),i.a+=":"),(n.f&256)!=0){for((n.f&256)!=0&&n.a!=null&&(npe(n.i)||(i.a+="//"),Or(i,n.a)),n.d!=null&&(i.a+="/",Or(i,n.d)),(n.f&16)!=0&&(i.a+="/"),e=0,t=n.j.length;eg?!1:(d=(h=W5(i,g,!1),h.a),a+f+d<=e.b&&(hk(t,c-t.s),t.c=!0,hk(i,c-t.s),zk(i,t.s,t.t+t.d+f),i.k=!0,iY(t.q,i),p=!0,r&&(mT(e,i),i.j=e,n.c.length>s&&(Vk(($n(s,n.c.length),u(n.c[s],186)),i),($n(s,n.c.length),u(n.c[s],186)).a.c.length==0&&e1(n,s)))),p)}function HPe(n,e){var t,i,r,c,s,f;if(e.Ug("Partition midprocessing",1),r=new E0,Zt(pt(new Pn(null,new Nn(n.a,16)),new P2n),new nkn(r)),r.d!=0){for(f=u(ec(CJ((c=r.i,new Pn(null,(c||(r.i=new jg(r,r.c))).Nc()))),Xu(new Su,new Au,new Iu,S(T(Hr,1),z,108,0,[(Vu(),rc)]))),15),i=f.Kc(),t=u(i.Pb(),17);i.Ob();)s=u(i.Pb(),17),xAe(u(kt(r,t),21),u(kt(r,s),21)),t=s;e.Vg()}}function fUn(n,e,t){var i,r,c,s,f,h,l,a;if(e.p==0){for(e.p=1,s=t,s||(r=new nn,c=(i=u(af(vr),9),new Uo(i,u(Ks(i,i.length),9),0)),s=new Ei(r,c)),u(s.a,15).Fc(e),e.k==(ee(),oi)&&u(s.b,21).Fc(u(m(e,(J(),jc)),64)),h=new M(e.j);h.a0){if(r=u(n.Ab.g,2033),e==null){for(c=0;ct.s&&fs)return rn(),ue;break;case 4:case 3:if(a<0)return rn(),ne;if(a+t>c)return rn(),ye}return h=(l+f/2)/s,i=(a+t/2)/c,h+i<=1&&h-i<=0?(rn(),te):h+i>=1&&h-i>=0?(rn(),ue):i<.5?(rn(),ne):(rn(),ye)}function XPe(n,e){var t,i,r,c,s,f,h,l,a,d,g,p,v,k;for(t=!1,a=x(K(m(e,(fn(),wb)))),v=fa*a,r=new M(e.b);r.ah+v&&(k=d.g+g.g,g.a=(g.g*g.a+d.g*d.a)/k,g.g=k,d.f=g,t=!0)),c=f,d=g;return t}function dUn(n,e,t,i,r,c,s){var f,h,l,a,d,g;for(g=new gp,l=e.Kc();l.Ob();)for(f=u(l.Pb(),853),d=new M(f.Rf());d.a0?f.a?(l=f.b.Mf().b,r>l&&(n.v||f.c.d.c.length==1?(s=(r-l)/2,f.d.d=s,f.d.a=s):(t=u(an(f.c.d,0),187).Mf().b,i=(t-l)/2,f.d.d=y.Math.max(0,i),f.d.a=r-i-l))):f.d.a=n.t+r:_6(n.u)&&(c=vnn(f.b),c.d<0&&(f.d.d=-c.d),c.d+c.a>f.b.Mf().b&&(f.d.a=c.d+c.a-f.b.Mf().b))}function Ws(){Ws=$,vv=new Hi((et(),Yj),Z(1)),CI=new Hi(Hd,80),XZn=new Hi(cdn,5),$Zn=new Hi(D2,H4),UZn=new Hi(EG,Z(1)),zZn=new Hi(MG,(Wn(),!0)),xon=new s0(50),qZn=new Hi(A1,xon),Lon=Jj,Fon=j9,RZn=new Hi(dG,!1),Non=Qj,_Zn=zw,HZn=Ta,KZn=_d,BZn=$2,GZn=Xw,Don=(Snn(),PZn),D_=NZn,MI=IZn,L_=OZn,$on=DZn,JZn=Nm,QZn=fO,VZn=Zj,WZn=sO,Ron=(qp(),Jw),new Hi(Nv,Ron)}function JPe(n,e){var t;switch(vk(n)){case 6:return Fi(e);case 7:return Db(e);case 8:return Lb(e);case 3:return Array.isArray(e)&&(t=vk(e),!(t>=14&&t<=16));case 11:return e!=null&&typeof e===dR;case 12:return e!=null&&(typeof e===yy||typeof e==dR);case 0:return RF(e,n.__elementTypeId$);case 2:return vN(e)&&e.Tm!==V2;case 1:return vN(e)&&e.Tm!==V2||RF(e,n.__elementTypeId$);default:return!0}}function QPe(n){var e,t,i,r;i=n.o,Fb(),n.A.dc()||wt(n.A,yon)?r=i.a:(n.D?r=y.Math.max(i.a,x5(n.f)):r=x5(n.f),n.A.Hc((ko(),cE))&&!n.B.Hc((oo(),O9))&&(r=y.Math.max(r,x5(u(Lr(n.p,(rn(),ne)),252))),r=y.Math.max(r,x5(u(Lr(n.p,ye),252)))),e=S$n(n),e&&(r=y.Math.max(r,e.a))),ln(hn(n.e.Tf().of((et(),zw))))?i.a=y.Math.max(i.a,r):i.a=r,t=n.f.i,t.c=0,t.b=r,U$(n.f)}function bUn(n,e){var t,i,r,c;return i=y.Math.min(y.Math.abs(n.c-(e.c+e.b)),y.Math.abs(n.c+n.b-e.c)),c=y.Math.min(y.Math.abs(n.d-(e.d+e.a)),y.Math.abs(n.d+n.a-e.d)),t=y.Math.abs(n.c+n.b/2-(e.c+e.b/2)),t>n.b/2+e.b/2||(r=y.Math.abs(n.d+n.a/2-(e.d+e.a/2)),r>n.a/2+e.a/2)?1:t==0&&r==0?0:t==0?c/r+1:r==0?i/t+1:y.Math.min(i/t,c/r)+1}function YPe(n,e){var t,i,r,c,s,f,h;for(c=0,f=0,h=0,r=new M(n.f.e);r.a0&&n.d!=(i5(),F_)&&(f+=s*(i.d.a+n.a[e.a][i.a]*(e.d.a-i.d.a)/t)),t>0&&n.d!=(i5(),N_)&&(h+=s*(i.d.b+n.a[e.a][i.a]*(e.d.b-i.d.b)/t)));switch(n.d.g){case 1:return new V(f/c,e.d.b);case 2:return new V(e.d.a,h/c);default:return new V(f/c,h/c)}}function wUn(n){var e,t,i,r,c,s;for(t=(!n.a&&(n.a=new hi(Ko,n,5)),n.a).i+2,s=new Zc(t),en(s,new V(n.j,n.k)),Zt(new Pn(null,(!n.a&&(n.a=new hi(Ko,n,5)),new Nn(n.a,16))),new Tyn(s)),en(s,new V(n.b,n.c)),e=1;e0&&(Pk(h,!1,(di(),Gr)),Pk(h,!0,Zr)),ou(e.g,new ICn(n,t)),ct(n.g,e,t)}function vUn(){vUn=$;var n;for(Fun=S(T(Oe,1),Ye,28,15,[-1,-1,30,19,15,13,11,11,10,9,9,8,8,8,8,7,7,7,7,7,7,7,6,6,6,6,6,6,6,6,6,6,6,6,6,6,5]),s_=_(Oe,Ye,28,37,15,1),oYn=S(T(Oe,1),Ye,28,15,[-1,-1,63,40,32,28,25,23,21,20,19,19,18,18,17,17,16,16,16,15,15,15,15,14,14,14,14,14,14,13,13,13,13,13,13,13,13]),$un=_($a,KR,28,37,14,1),n=2;n<=36;n++)s_[n]=Mi(y.Math.pow(n,Fun[n])),$un[n]=Qk(Cy,s_[n])}function ZPe(n){var e;if((!n.a&&(n.a=new G(Ft,n,6,6)),n.a).i!=1)throw C(new Yn(XVn+(!n.a&&(n.a=new G(Ft,n,6,6)),n.a).i));return e=new Ou,Sk(u(D((!n.b&&(n.b=new Kn(ve,n,4,7)),n.b),0),84))&&zi(e,uXn(n,Sk(u(D((!n.b&&(n.b=new Kn(ve,n,4,7)),n.b),0),84)),!1)),Sk(u(D((!n.c&&(n.c=new Kn(ve,n,5,8)),n.c),0),84))&&zi(e,uXn(n,Sk(u(D((!n.c&&(n.c=new Kn(ve,n,5,8)),n.c),0),84)),!0)),e}function mUn(n,e){var t,i,r,c,s;for(e.d?r=n.a.c==(dh(),pb)?Oi(e.b):ri(e.b):r=n.a.c==(dh(),M1)?Oi(e.b):ri(e.b),c=!1,i=new he(de(r.a.Kc(),new zn));Te(i);)if(t=u(pe(i),18),s=ln(n.a.f[n.a.g[e.b.p].p]),!(!s&&!gr(t)&&t.c.i.c==t.d.i.c)&&!(ln(n.a.n[n.a.g[e.b.p].p])||ln(n.a.n[n.a.g[e.b.p].p]))&&(c=!0,df(n.b,n.a.g[Zke(t,e.b).p])))return e.c=!0,e.a=t,e;return e.c=c,e.a=null,e}function Qen(n,e,t){var i,r,c,s,f,h,l;if(i=t.gc(),i==0)return!1;if(n.Pj())if(h=n.Qj(),uZ(n,e,t),s=i==1?n.Ij(3,null,t.Kc().Pb(),e,h):n.Ij(5,null,t,e,h),n.Mj()){for(f=i<100?null:new $1(i),c=e+i,r=e;r0){for(s=0;s>16==-15&&n.Cb.Yh()&&jx(new px(n.Cb,9,13,t,n.c,a1(ro(u(n.Cb,62)),n))):L(n.Cb,90)&&n.Db>>16==-23&&n.Cb.Yh()&&(e=n.c,L(e,90)||(e=(xn(),Ns)),L(t,90)||(t=(xn(),Ns)),jx(new px(n.Cb,9,10,t,e,a1(Fc(u(n.Cb,29)),n)))))),n.c}function tOe(n,e,t){var i,r,c,s,f,h,l,a,d;for(t.Ug("Hyperedge merging",1),TTe(n,e),h=new Gi(e.b,0);h.b0,f=zT(e,c),hW(t?f.b:f.g,e),Dg(f).c.length==1&&Xt(i,f,i.c.b,i.c),r=new Ei(c,e),V1(n.o,r),mu(n.e.a,c))}function TUn(n,e){var t,i,r,c,s,f,h;return i=y.Math.abs(kC(n.b).a-kC(e.b).a),f=y.Math.abs(kC(n.b).b-kC(e.b).b),r=0,h=0,t=1,s=1,i>n.b.b/2+e.b.b/2&&(r=y.Math.min(y.Math.abs(n.b.c-(e.b.c+e.b.b)),y.Math.abs(n.b.c+n.b.b-e.b.c)),t=1-r/i),f>n.b.a/2+e.b.a/2&&(h=y.Math.min(y.Math.abs(n.b.d-(e.b.d+e.b.a)),y.Math.abs(n.b.d+n.b.a-e.b.d)),s=1-h/f),c=y.Math.min(t,s),(1-c)*y.Math.sqrt(i*i+f*f)}function cOe(n){var e,t,i,r;for(sR(n,n.e,n.f,(M0(),Ma),!0,n.c,n.i),sR(n,n.e,n.f,Ma,!1,n.c,n.i),sR(n,n.e,n.f,A2,!0,n.c,n.i),sR(n,n.e,n.f,A2,!1,n.c,n.i),eOe(n,n.c,n.e,n.f,n.i),i=new Gi(n.i,0);i.b=65;t--)rh[t]=t-65<<24>>24;for(i=122;i>=97;i--)rh[i]=i-97+26<<24>>24;for(r=57;r>=48;r--)rh[r]=r-48+52<<24>>24;for(rh[43]=62,rh[47]=63,c=0;c<=25;c++)N1[c]=65+c&bi;for(s=26,h=0;s<=51;++s,h++)N1[s]=97+h&bi;for(n=52,f=0;n<=61;++n,f++)N1[n]=48+f&bi;N1[62]=43,N1[63]=47}function AUn(n,e){var t,i,r,c,s,f;return r=YQ(n),f=YQ(e),r==f?n.e==e.e&&n.a<54&&e.a<54?n.fe.f?1:0:(i=n.e-e.e,t=(n.d>0?n.d:y.Math.floor((n.a-1)*NXn)+1)-(e.d>0?e.d:y.Math.floor((e.a-1)*NXn)+1),t>i+1?r:t0&&(s=Ag(s,RUn(i))),$Bn(c,s))):rl&&(g=0,p+=h+e,h=0),C4(s,g,p),t=y.Math.max(t,g+a.a),h=y.Math.max(h,a.b),g+=a.a+e;return new V(t+e,p+h+e)}function etn(n,e){var t,i,r,c,s,f,h;if(!Lf(n))throw C(new $r(zVn));if(i=Lf(n),c=i.g,r=i.f,c<=0&&r<=0)return rn(),bc;switch(f=n.i,h=n.j,e.g){case 2:case 1:if(f<0)return rn(),te;if(f+n.g>c)return rn(),ue;break;case 4:case 3:if(h<0)return rn(),ne;if(h+n.f>r)return rn(),ye}return s=(f+n.g/2)/c,t=(h+n.f/2)/r,s+t<=1&&s-t<=0?(rn(),te):s+t>=1&&s-t>=0?(rn(),ue):t<.5?(rn(),ne):(rn(),ye)}function sOe(n,e,t,i,r){var c,s;if(c=or(Si(e[0],Tr),Si(i[0],Tr)),n[0]=$e(c),c=b0(c,32),t>=r){for(s=1;s0&&(r.b[s++]=0,r.b[s++]=c.b[0]-1),e=1;e0&&(sL(h,h.d-r.d),r.c==(pf(),Ea)&&Xhe(h,h.a-r.d),h.d<=0&&h.i>0&&Xt(e,h,e.c.b,e.c)));for(c=new M(n.f);c.a0&&(LE(f,f.i-r.d),r.c==(pf(),Ea)&&Whe(f,f.b-r.d),f.i<=0&&f.d>0&&Xt(t,f,t.c.b,t.c)))}function lOe(n,e,t,i,r){var c,s,f,h,l,a,d,g,p;for(Fn(),ui(n,new Bmn),s=B7(n),p=new nn,g=new nn,f=null,h=0;s.b!=0;)c=u(s.b==0?null:(we(s.b!=0),Qo(s,s.a.a)),163),!f||Nu(f)*po(f)/21&&(h>Nu(f)*po(f)/2||s.b==0)&&(d=new bT(g),a=Nu(f)/po(f),l=fR(d,e,new rp,t,i,r,a),dt(bf(d.e),l),f=d,Xn(p.c,d),h=0,g.c.length=0));return vi(p,g),p}function Rc(n,e,t,i,r){al();var c,s,f,h,l,a,d;if(UV(n,"src"),UV(t,"dest"),d=mo(n),h=mo(t),hV((d.i&4)!=0,"srcType is not an array"),hV((h.i&4)!=0,"destType is not an array"),a=d.c,s=h.c,hV((a.i&1)!=0?a==s:(s.i&1)==0,"Array types don't match"),Q5e(n,e,t,i,r),(a.i&1)==0&&d!=h)if(l=rd(n),c=rd(t),F(n)===F(t)&&ei;)zt(c,f,l[--e]);else for(f=i+r;i0),i.a.Xb(i.c=--i.b),d>g+h&&vo(i);for(s=new M(p);s.a0),i.a.Xb(i.c=--i.b)}}function dOe(){lt();var n,e,t,i,r,c;if(UG)return UG;for(n=(++Vt,new Co(4)),bw(n,sa(VK,!0)),Q5(n,sa("M",!0)),Q5(n,sa("C",!0)),c=(++Vt,new Co(4)),i=0;i<11;i++)Gc(c,i,i);return e=(++Vt,new Co(4)),bw(e,sa("M",!0)),Gc(e,4448,4607),Gc(e,65438,65439),r=(++Vt,new I6(2)),gd(r,n),gd(r,H9),t=(++Vt,new I6(2)),t.Jm(hC(c,sa("L",!0))),t.Jm(e),t=(++Vt,new Ub(3,t)),t=(++Vt,new GV(r,t)),UG=t,UG}function dw(n,e){var t,i,r,c,s,f,h,l;for(t=new RegExp(e,"g"),h=_(dn,Q,2,0,6,1),i=0,l=n,c=null;;)if(f=t.exec(l),f==null||l==""){h[i]=l;break}else s=f.index,h[i]=(Ui(0,s,l.length),l.substr(0,s)),l=Xo(l,s+f[0].length,l.length),t.lastIndex=0,c==l&&(h[i]=(Ui(0,1,l.length),l.substr(0,1)),l=(Zn(1,l.length+1),l.substr(1))),c=l,++i;if(n.length>0){for(r=h.length;r>0&&h[r-1]=="";)--r;r0&&(d-=i[0]+n.c,i[0]+=n.c),i[2]>0&&(d-=i[2]+n.c),i[1]=y.Math.max(i[1],d),bC(n.a[1],t.c+e.b+i[0]-(i[1]-d)/2,i[1]);for(c=n.a,f=0,l=c.length;f0?(n.n.c.length-1)*n.i:0,i=new M(n.n);i.a1)for(i=Ce(r,0);i.b!=i.d.c;)for(t=u(Ee(i),235),c=0,h=new M(t.e);h.a0&&(e[0]+=n.c,d-=e[0]),e[2]>0&&(d-=e[2]+n.c),e[1]=y.Math.max(e[1],d),wC(n.a[1],i.d+t.d+e[0]-(e[1]-d)/2,e[1]);else for(v=i.d+t.d,p=i.a-t.d-t.a,s=n.a,h=0,a=s.length;h0||x0(r.b.d,n.b.d+n.b.a)==0&&i.b<0||x0(r.b.d+r.b.a,n.b.d)==0&&i.b>0){f=0;break}}else f=y.Math.min(f,THn(n,r,i));f=y.Math.min(f,OUn(n,c,f,i))}return f}function wy(n,e){var t,i,r,c,s,f,h;if(n.b<2)throw C(new Yn("The vector chain must contain at least a source and a target point."));for(r=(we(n.b!=0),u(n.a.a.c,8)),T7(e,r.a,r.b),h=new vp((!e.a&&(e.a=new hi(Ko,e,5)),e.a)),s=Ce(n,1);s.a=0&&c!=t))throw C(new Yn(Jy));for(r=0,h=0;hx(Of(s.g,s.d[0]).a)?(we(h.b>0),h.a.Xb(h.c=--h.b),$b(h,s),r=!0):f.e&&f.e.gc()>0&&(c=(!f.e&&(f.e=new nn),f.e).Mc(e),l=(!f.e&&(f.e=new nn),f.e).Mc(t),(c||l)&&((!f.e&&(f.e=new nn),f.e).Fc(s),++s.c));r||Xn(i.c,s)}function kOe(n,e,t){var i,r,c,s,f,h,l,a,d,g,p,v,k,j,A;return d=n.a.i+n.a.g/2,g=n.a.i+n.a.g/2,v=e.i+e.g/2,j=e.j+e.f/2,f=new V(v,j),l=u(X(e,(et(),Lv)),8),l.a=l.a+d,l.b=l.b+g,c=(f.b-l.b)/(f.a-l.a),i=f.b-c*f.a,k=t.i+t.g/2,A=t.j+t.f/2,h=new V(k,A),a=u(X(t,Lv),8),a.a=a.a+d,a.b=a.b+g,s=(h.b-a.b)/(h.a-a.a),r=h.b-s*h.a,p=(i-r)/(s-c),l.a>>0,"0"+e.toString(16)),i="\\x"+Xo(t,t.length-2,t.length)):n>=pr?(t=(e=n>>>0,"0"+e.toString(16)),i="\\v"+Xo(t,t.length-6,t.length)):i=""+String.fromCharCode(n&bi)}return i}function xUn(n){var e,t,i;if(wg(u(m(n,(fn(),Yt)),101)))for(t=new M(n.j);t.a=e.o&&t.f<=e.f||e.a*.5<=t.f&&e.a*1.5>=t.f){if(s=u(an(e.n,e.n.c.length-1),209),s.e+s.d+t.g+r<=i&&(c=u(an(e.n,e.n.c.length-1),209),c.f-n.f+t.f<=n.b||n.a.c.length==1))return YY(e,t),!0;if(e.s+t.g<=i&&(e.t+e.d+t.f+r<=n.b||n.a.c.length==1))return en(e.b,t),f=u(an(e.n,e.n.c.length-1),209),en(e.n,new RC(e.s,f.f+f.a+e.i,e.i)),LZ(u(an(e.n,e.n.c.length-1),209),t),IUn(e,t),!0}return!1}function $Un(n,e,t){var i,r,c,s;return n.Pj()?(r=null,c=n.Qj(),i=n.Ij(1,s=Cx(n,e,t),t,e,c),n.Mj()&&!(n.Yi()&&s!=null?wt(s,t):F(s)===F(t))?(s!=null&&(r=n.Oj(s,r)),r=n.Nj(t,r),n.Tj()&&(r=n.Wj(s,t,r)),r?(r.nj(i),r.oj()):n.Jj(i)):(n.Tj()&&(r=n.Wj(s,t,r)),r?(r.nj(i),r.oj()):n.Jj(i)),s):(s=Cx(n,e,t),n.Mj()&&!(n.Yi()&&s!=null?wt(s,t):F(s)===F(t))&&(r=null,s!=null&&(r=n.Oj(s,null)),r=n.Nj(t,r),r&&r.oj()),s)}function AOe(n,e){var t,i,r,c,s;if(e.Ug("Path-Like Graph Wrapping",1),n.b.c.length==0){e.Vg();return}if(r=new sen(n),s=(r.i==null&&(r.i=ZQ(r,new hU)),x(r.i)*r.f),t=s/(r.i==null&&(r.i=ZQ(r,new hU)),x(r.i)),r.b>t){e.Vg();return}switch(u(m(n,(fn(),XH)),351).g){case 2:c=new aU;break;case 0:c=new fU;break;default:c=new dU}if(i=c.og(n,r),!c.pg())switch(u(m(n,TP),352).g){case 2:i=AHn(r,i);break;case 1:i=v_n(r,i)}jLe(n,r,i),e.Vg()}function U5(n,e){var t,i,r,c,s,f,h,l;e%=24,n.q.getHours()!=e&&(i=new y.Date(n.q.getTime()),i.setDate(i.getDate()+1),f=n.q.getTimezoneOffset()-i.getTimezoneOffset(),f>0&&(h=f/60|0,l=f%60,r=n.q.getDate(),t=n.q.getHours(),t+h>=24&&++r,c=new y.Date(n.q.getFullYear(),n.q.getMonth(),r,e+h,n.q.getMinutes()+l,n.q.getSeconds(),n.q.getMilliseconds()),n.q.setTime(c.getTime()))),s=n.q.getTime(),n.q.setTime(s+36e5),n.q.getHours()!=e&&n.q.setTime(s)}function SOe(n,e){var t,i,r,c;if(_ve(n.d,n.e),n.c.a.$b(),x(K(m(e.j,(fn(),bP))))!=0||x(K(m(e.j,bP)))!=0)for(t=n2,F(m(e.j,tl))!==F((wh(),E1))&&U(e.j,(J(),ka),(Wn(),!0)),c=u(m(e.j,Q8),17).a,r=0;rr&&++l,en(s,($n(f+l,e.c.length),u(e.c[f+l],17))),h+=($n(f+l,e.c.length),u(e.c[f+l],17)).a-i,++t;t=j&&n.e[h.p]>v*n.b||O>=t*j)&&(Xn(g.c,f),f=new nn,zi(s,c),c.a.$b(),l-=a,p=y.Math.max(p,l*n.b+k),l+=O,P=O,O=0,a=0,k=0);return new Ei(p,g)}function X$(n){var e,t,i,r,c,s,f;if(!n.d){if(f=new l6n,e=F9,c=e.a.zc(n,e),c==null){for(i=new oe(Wr(n));i.e!=i.i.gc();)t=u(be(i),29),Jt(f,X$(t));e.a.Bc(n)!=null,e.a.gc()==0}for(s=f.i,r=(!n.q&&(n.q=new G(Ls,n,11,10)),new oe(n.q));r.e!=r.i.gc();++s)u(be(r),411);Jt(f,(!n.q&&(n.q=new G(Ls,n,11,10)),n.q)),Zb(f),n.d=new bg((u(D(q((U1(),Vn).o),9),19),f.i),f.g),n.e=u(f.g,688),n.e==null&&(n.e=qse),io(n).b&=-17}return n.d}function S4(n,e,t,i){var r,c,s,f,h,l;if(l=lu(n.e.Dh(),e),h=0,r=u(n.g,124),yr(),u(e,69).xk()){for(s=0;s1||v==-1)if(d=u(k,71),g=u(a,71),d.dc())g.$b();else for(s=!!jr(e),c=0,f=n.a?d.Kc():d.Ii();f.Ob();)l=u(f.Pb(),58),r=u(Rf(n,l),58),r?(s?(h=g.dd(r),h==-1?g.Gi(c,r):c!=h&&g.Ui(c,r)):g.Gi(c,r),++c):n.b&&!s&&(g.Gi(c,l),++c);else k==null?a.Wb(null):(r=Rf(n,k),r==null?n.b&&!jr(e)&&a.Wb(k):a.Wb(r))}function DOe(n,e){var t,i,r,c,s,f,h,l;for(t=new Wgn,r=new he(de(Oi(e).a.Kc(),new zn));Te(r);)if(i=u(pe(r),18),!gr(i)&&(f=i.c.i,bnn(f,II))){if(l=Den(n,f,II,SI),l==-1)continue;t.b=y.Math.max(t.b,l),!t.a&&(t.a=new nn),en(t.a,f)}for(s=new he(de(ri(e).a.Kc(),new zn));Te(s);)if(c=u(pe(s),18),!gr(c)&&(h=c.d.i,bnn(h,SI))){if(l=Den(n,h,SI,II),l==-1)continue;t.d=y.Math.max(t.d,l),!t.c&&(t.c=new nn),en(t.c,h)}return t}function NOe(n,e,t,i){var r,c,s,f,h,l,a;if(t.d.i!=e.i){for(r=new Il(n),_a(r,(ee(),Ni)),U(r,(J(),yt),t),U(r,(fn(),Yt),(Ki(),Qc)),Xn(i.c,r),s=new $c,fc(s,r),Ci(s,(rn(),te)),f=new $c,fc(f,r),Ci(f,ue),a=t.d,Bi(t,s),c=new j0,Jr(c,t),U(c,qr,null),ur(c,f),Bi(c,a),l=new Gi(t.b,0);l.b1e6)throw C(new UE("power of ten too big"));if(n<=at)return xp(uy(gv[1],e),e);for(i=uy(gv[1],at),r=i,t=Tc(n-at),e=Mi(n%at);Pc(t,at)>0;)r=Ag(r,i),t=vs(t,at);for(r=Ag(r,uy(gv[1],e)),r=xp(r,at),t=Tc(n-at);Pc(t,at)>0;)r=xp(r,at),t=vs(t,at);return r=xp(r,e),r}function BUn(n){var e,t,i,r,c,s,f,h,l,a;for(h=new M(n.a);h.al&&i>l)a=f,l=x(e.p[f.p])+x(e.d[f.p])+f.o.b+f.d.a;else{r=!1,t._g()&&t.bh("bk node placement breaks on "+f+" which should have been after "+a);break}if(!r)break}return t._g()&&t.bh(e+" is feasible: "+r),r}function ctn(n,e,t,i){var r,c,s,f,h,l,a,d,g;if(c=new Il(n),_a(c,(ee(),Vc)),U(c,(fn(),Yt),(Ki(),Qc)),r=0,e){for(s=new $c,U(s,(J(),yt),e),U(c,yt,e.i),Ci(s,(rn(),te)),fc(s,c),g=bh(e.e),l=g,a=0,d=l.length;a0){if(r<0&&a.a&&(r=h,c=l[0],i=0),r>=0){if(f=a.b,h==r&&(f-=i++,f==0))return 0;if(!qzn(e,l,a,f,s)){h=r-1,l[0]=c;continue}}else if(r=-1,!qzn(e,l,a,0,s))return 0}else{if(r=-1,nr(a.c,0)==32){if(d=l[0],Gxn(e,l),l[0]>d)continue}else if(jpe(e,a.c,l[0])){l[0]+=a.c.length;continue}return 0}return MNe(s,t)?l[0]:0}function KOe(n,e,t){var i,r,c,s,f,h,l,a,d,g;for(a=new pC(new S7n(t)),f=_(ao,Qh,28,n.f.e.c.length,16,1),HV(f,f.length),t[e.a]=0,l=new M(n.f.e);l.a=0&&!$g(n,a,d);)--d;r[a]=d}for(p=0;p=0&&!$g(n,f,v);)--f;c[v]=f}for(h=0;he[g]&&gi[h]&&KA(n,h,g,!1,!0)}function utn(n){var e,t,i,r,c,s,f,h;t=ln(hn(m(n,(Ws(),RZn)))),c=n.a.c.d,f=n.a.d.d,t?(s=fh(Ai(new V(f.a,f.b),c),.5),h=fh(Xi(n.e),.5),e=Ai(dt(new V(c.a,c.b),s),h),wW(n.d,e)):(r=x(K(m(n.a,XZn))),i=n.d,c.a>=f.a?c.b>=f.b?(i.a=f.a+(c.a-f.a)/2+r,i.b=f.b+(c.b-f.b)/2-r-n.e.b):(i.a=f.a+(c.a-f.a)/2+r,i.b=c.b+(f.b-c.b)/2+r):c.b>=f.b?(i.a=c.a+(f.a-c.a)/2+r,i.b=f.b+(c.b-f.b)/2+r):(i.a=c.a+(f.a-c.a)/2+r,i.b=c.b+(f.b-c.b)/2-r-n.e.b))}function X5(n){var e,t,i,r,c,s,f,h;if(!n.f){if(h=new mU,f=new mU,e=F9,s=e.a.zc(n,e),s==null){for(c=new oe(Wr(n));c.e!=c.i.gc();)r=u(be(c),29),Jt(h,X5(r));e.a.Bc(n)!=null,e.a.gc()==0}for(i=(!n.s&&(n.s=new G(Tu,n,21,17)),new oe(n.s));i.e!=i.i.gc();)t=u(be(i),179),L(t,102)&&Se(f,u(t,19));Zb(f),n.r=new OIn(n,(u(D(q((U1(),Vn).o),6),19),f.i),f.g),Jt(h,n.r),Zb(h),n.f=new bg((u(D(q(Vn.o),5),19),h.i),h.g),io(n).b&=-3}return n.f}function _Un(n){i0(n,new wd(n0(Qd(Zd(Yd(new Ba,yd),"ELK DisCo"),"Layouter for arranging unconnected subgraphs. The subgraphs themselves are, by default, not laid out."),new Cwn))),Y(n,yd,oB,un(Ion)),Y(n,yd,sB,un(S_)),Y(n,yd,fv,un(EZn)),Y(n,yd,W0,un(Son)),Y(n,yd,Wtn,un(AZn)),Y(n,yd,Vtn,un(TZn)),Y(n,yd,Xtn,un(SZn)),Y(n,yd,Jtn,un(CZn)),Y(n,yd,iin,un(MZn)),Y(n,yd,rin,un(A_)),Y(n,yd,cin,un(Aon)),Y(n,yd,uin,un(yI))}function GA(){GA=$,Xdn=S(T(ds,1),kh,28,15,[48,49,50,51,52,53,54,55,56,57,65,66,67,68,69,70]),vse=new RegExp(`[ +\r\f]+`);try{D9=S(T(jFe,1),Gn,2114,0,[new Q9((FX(),JT("yyyy-MM-dd'T'HH:mm:ss'.'SSSZ",N7((GE(),GE(),I8))))),new Q9(JT("yyyy-MM-dd'T'HH:mm:ss'.'SSS",N7(I8))),new Q9(JT("yyyy-MM-dd'T'HH:mm:ss",N7(I8))),new Q9(JT("yyyy-MM-dd'T'HH:mm",N7(I8))),new Q9(JT("yyyy-MM-dd",N7(I8)))])}catch(n){if(n=_t(n),!L(n,82))throw C(n)}}function HOe(n,e){var t,i,r,c;if(r=uo(n.d,1)!=0,i=Ken(n,e),i==0&&ln(hn(m(e.j,(J(),ka)))))return 0;!ln(hn(m(e.j,(J(),ka))))&&!ln(hn(m(e.j,m2)))||F(m(e.j,(fn(),tl)))===F((wh(),E1))?e.c.mg(e.e,r):r=ln(hn(m(e.j,ka))),hy(n,e,r,!0),ln(hn(m(e.j,m2)))&&U(e.j,m2,(Wn(),!1)),ln(hn(m(e.j,ka)))&&(U(e.j,ka,(Wn(),!1)),U(e.j,m2,!0)),t=Ken(n,e);do{if(QQ(n),t==0)return 0;r=!r,c=t,hy(n,e,r,!1),t=Ken(n,e)}while(c>t);return c}function HUn(n,e){var t,i,r,c;if(r=uo(n.d,1)!=0,i=MA(n,e),i==0&&ln(hn(m(e.j,(J(),ka)))))return 0;!ln(hn(m(e.j,(J(),ka))))&&!ln(hn(m(e.j,m2)))||F(m(e.j,(fn(),tl)))===F((wh(),E1))?e.c.mg(e.e,r):r=ln(hn(m(e.j,ka))),hy(n,e,r,!0),ln(hn(m(e.j,m2)))&&U(e.j,m2,(Wn(),!1)),ln(hn(m(e.j,ka)))&&(U(e.j,ka,(Wn(),!1)),U(e.j,m2,!0)),t=MA(n,e);do{if(QQ(n),t==0)return 0;r=!r,c=t,hy(n,e,r,!1),t=MA(n,e)}while(c>t);return c}function otn(n,e,t,i){var r,c,s,f,h,l,a,d,g;return h=Ai(new V(t.a,t.b),n),l=h.a*e.b-h.b*e.a,a=e.a*i.b-e.b*i.a,d=(h.a*i.b-h.b*i.a)/a,g=l/a,a==0?l==0?(r=dt(new V(t.a,t.b),fh(new V(i.a,i.b),.5)),c=J1(n,r),s=J1(dt(new V(n.a,n.b),e),r),f=y.Math.sqrt(i.a*i.a+i.b*i.b)*.5,c=0&&d<=1&&g>=0&&g<=1?dt(new V(n.a,n.b),fh(new V(e.a,e.b),d)):null}function qOe(n,e,t){var i,r,c,s,f;if(i=u(m(n,(fn(),NH)),21),t.a>e.a&&(i.Hc((bd(),v9))?n.c.a+=(t.a-e.a)/2:i.Hc(m9)&&(n.c.a+=t.a-e.a)),t.b>e.b&&(i.Hc((bd(),y9))?n.c.b+=(t.b-e.b)/2:i.Hc(k9)&&(n.c.b+=t.b-e.b)),u(m(n,(J(),Jc)),21).Hc((Cr(),fs))&&(t.a>e.a||t.b>e.b))for(f=new M(n.a);f.ae.a&&(i.Hc((bd(),v9))?n.c.a+=(t.a-e.a)/2:i.Hc(m9)&&(n.c.a+=t.a-e.a)),t.b>e.b&&(i.Hc((bd(),y9))?n.c.b+=(t.b-e.b)/2:i.Hc(k9)&&(n.c.b+=t.b-e.b)),u(m(n,(J(),Jc)),21).Hc((Cr(),fs))&&(t.a>e.a||t.b>e.b))for(s=new M(n.a);s.a0?n.i:0)>e&&h>0&&(c=0,s+=h+n.i,r=y.Math.max(r,g),i+=h+n.i,h=0,g=0,t&&(++d,en(n.n,new RC(n.s,s,n.i))),f=0),g+=l.g+(f>0?n.i:0),h=y.Math.max(h,l.f),t&&LZ(u(an(n.n,d),209),l),c+=l.g+(f>0?n.i:0),++f;return r=y.Math.max(r,g),i+=h,t&&(n.r=r,n.d=i,FZ(n.j)),new zo(n.s,n.t,r,i)}function W$(n){var e,t,i,r,c,s,f,h,l,a,d,g;for(n.b=!1,d=Bt,h=mi,g=Bt,l=mi,i=n.e.a.ec().Kc();i.Ob();)for(t=u(i.Pb(),272),r=t.a,d=y.Math.min(d,r.c),h=y.Math.max(h,r.c+r.b),g=y.Math.min(g,r.d),l=y.Math.max(l,r.d+r.a),s=new M(t.c);s.an.o.a&&(a=(h-n.o.a)/2,f.b=y.Math.max(f.b,a),f.c=y.Math.max(f.c,a))}}function XOe(n){var e,t,i,r,c,s,f,h;for(c=new $Ln,Mae(c,(_p(),roe)),i=(r=Kx(n,_(dn,Q,2,0,6,1)),new zm(new Gu(new KL(n,r).b)));i.bf?1:-1:TY(n.a,e.a,c),r==-1)d=-h,a=s==h?lx(e.a,f,n.a,c):dx(e.a,f,n.a,c);else if(d=s,s==h){if(r==0)return ph(),O8;a=lx(n.a,c,e.a,f)}else a=dx(n.a,c,e.a,f);return l=new Qa(d,a.length,a),Q6(l),l}function WOe(n,e){var t,i,r,c;if(c=CUn(e),!e.c&&(e.c=new G(eo,e,9,9)),Zt(new Pn(null,(!e.c&&(e.c=new G(eo,e,9,9)),new Nn(e.c,16))),new L7n(c)),r=u(m(c,(J(),Jc)),21),KDe(e,r),r.Hc((Cr(),fs)))for(i=new oe((!e.c&&(e.c=new G(eo,e,9,9)),e.c));i.e!=i.i.gc();)t=u(be(i),123),wNe(n,e,c,t);return u(X(e,(fn(),xd)),181).gc()!=0&&pGn(e,c),ln(hn(m(c,Ahn)))&&r.Fc(cP),Ot(c,Aj)&&TEn(new fZ(x(K(m(c,Aj)))),c),F(X(e,Fw))===F((Cl(),S1))?Bxe(n,e,c):Exe(n,e,c),c}function VOe(n){var e,t,i,r,c,s,f,h;for(r=new M(n.b);r.a0?Xo(t.a,0,c-1):""):(Ui(0,c-1,n.length),n.substr(0,c-1)):t?t.a:n}function JOe(n,e){var t,i,r,c,s,f,h;for(e.Ug("Sort By Input Model "+m(n,(fn(),tl)),1),r=0,i=new M(n.b);i.a=n.b.length?(c[r++]=s.b[i++],c[r++]=s.b[i++]):i>=s.b.length?(c[r++]=n.b[t++],c[r++]=n.b[t++]):s.b[i]0?n.i:0)),++e;for(zY(n.n,h),n.d=t,n.r=i,n.g=0,n.f=0,n.e=0,n.o=Bt,n.p=Bt,c=new M(n.b);c.a0&&(r=(!n.n&&(n.n=new G(xr,n,1,7)),u(D(n.n,0),135)).a,!r||Je(Je((e.a+=' "',e),r),'"'))),t=(!n.b&&(n.b=new Kn(ve,n,4,7)),!(n.b.i<=1&&(!n.c&&(n.c=new Kn(ve,n,5,8)),n.c.i<=1))),t?e.a+=" [":e.a+=" ",Je(e,eW(new DL,new oe(n.b))),t&&(e.a+="]"),e.a+=wB,t&&(e.a+="["),Je(e,eW(new DL,new oe(n.c))),t&&(e.a+="]"),e.a)}function YOe(n,e){var t,i,r,c,s,f,h,l,a,d,g,p,v,k,j,A,P,O,N,H,W,cn,An,Cn,Un;for(H=n.c,W=e.c,t=Vr(H.a,n,0),i=Vr(W.a,e,0),O=u(F0(n,(Mr(),Yu)).Kc().Pb(),12),Cn=u(F0(n,ru).Kc().Pb(),12),N=u(F0(e,Yu).Kc().Pb(),12),Un=u(F0(e,ru).Kc().Pb(),12),A=bh(O.e),cn=bh(Cn.g),P=bh(N.e),An=bh(Un.g),rw(n,i,W),s=P,a=0,v=s.length;aa?new nd((pf(),Gw),t,e,l-a):l>0&&a>0&&(new nd((pf(),Gw),e,t,0),new nd(Gw,t,e,0))),s)}function eLe(n,e,t){var i,r,c;for(n.a=new nn,c=Ce(e.b,0);c.b!=c.d.c;){for(r=u(Ee(c),40);u(m(r,(pc(),Lh)),17).a>n.a.c.length-1;)en(n.a,new Ei(n2,Grn));i=u(m(r,Lh),17).a,t==(di(),Gr)||t==Zr?(r.e.ax(K(u(an(n.a,i),42).b))&&hL(u(an(n.a,i),42),r.e.a+r.f.a)):(r.e.bx(K(u(an(n.a,i),42).b))&&hL(u(an(n.a,i),42),r.e.b+r.f.b))}}function UUn(n,e,t,i){var r,c,s,f,h,l,a;if(c=GT(i),f=ln(hn(m(i,(fn(),yhn)))),(f||ln(hn(m(n,mP))))&&!wg(u(m(n,Yt),101)))r=Gp(c),h=Jen(n,t,t==(Mr(),ru)?r:Kk(r));else switch(h=new $c,fc(h,n),e?(a=h.n,a.a=e.a-n.n.a,a.b=e.b-n.n.b,Q_n(a,0,0,n.o.a,n.o.b),Ci(h,aUn(h,c))):(r=Gp(c),Ci(h,t==(Mr(),ru)?r:Kk(r))),s=u(m(i,(J(),Jc)),21),l=h.j,c.g){case 2:case 1:(l==(rn(),ne)||l==ye)&&s.Fc((Cr(),g2));break;case 4:case 3:(l==(rn(),ue)||l==te)&&s.Fc((Cr(),g2))}return h}function zUn(n,e){var t,i,r,c,s,f;for(s=new od(new qa(n.f.b).a);s.b;){if(c=L0(s),r=u(c.ld(),602),e==1){if(r.Af()!=(di(),hs)&&r.Af()!=Zf)continue}else if(r.Af()!=(di(),Gr)&&r.Af()!=Zr)continue;switch(i=u(u(c.md(),42).b,86),f=u(u(c.md(),42).a,194),t=f.c,r.Af().g){case 2:i.g.c=n.e.a,i.g.b=y.Math.max(1,i.g.b+t);break;case 1:i.g.c=i.g.c+t,i.g.b=y.Math.max(1,i.g.b-t);break;case 4:i.g.d=n.e.b,i.g.a=y.Math.max(1,i.g.a+t);break;case 3:i.g.d=i.g.d+t,i.g.a=y.Math.max(1,i.g.a-t)}}}function tLe(n,e){var t,i,r,c,s,f,h,l,a,d,g,p,v,k;for(f=_(Oe,Ye,28,e.b.c.length,15,1),l=_(G_,z,273,e.b.c.length,0,1),h=_(el,p1,10,e.b.c.length,0,1),d=n.a,g=0,p=d.length;g0&&h[i]&&(v=mg(n.b,h[i],r)),k=y.Math.max(k,r.c.c.b+v);for(c=new M(a.e);c.a1)throw C(new Yn(ej));h||(c=_h(e,i.Kc().Pb()),s.Fc(c))}return aY(n,Dnn(n,e,t),s)}function zA(n,e,t){var i,r,c,s,f,h,l,a;if(Ol(n.e,e))h=(yr(),u(e,69).xk()?new cC(e,n):new M7(e,n)),TA(h.c,h.b),P6(h,u(t,16));else{for(a=lu(n.e.Dh(),e),i=u(n.g,124),s=0;s"}h!=null&&(e.a+=""+h)}else n.e?(f=n.e.zb,f!=null&&(e.a+=""+f)):(e.a+="?",n.b?(e.a+=" super ",Z$(n.b,e)):n.f&&(e.a+=" extends ",Z$(n.f,e)))}function oLe(n){n.b=null,n.a=null,n.o=null,n.q=null,n.v=null,n.w=null,n.B=null,n.p=null,n.Q=null,n.R=null,n.S=null,n.T=null,n.U=null,n.V=null,n.W=null,n.bb=null,n.eb=null,n.ab=null,n.H=null,n.db=null,n.c=null,n.d=null,n.f=null,n.n=null,n.r=null,n.s=null,n.u=null,n.G=null,n.J=null,n.e=null,n.j=null,n.i=null,n.g=null,n.k=null,n.t=null,n.F=null,n.I=null,n.L=null,n.M=null,n.O=null,n.P=null,n.$=null,n.N=null,n.Z=null,n.cb=null,n.K=null,n.D=null,n.A=null,n.C=null,n._=null,n.fb=null,n.X=null,n.Y=null,n.gb=!1,n.hb=!1}function sLe(n){var e,t,i,r;if(i=lR((!n.c&&(n.c=nk(Tc(n.f))),n.c),0),n.e==0||n.a==0&&n.f!=-1&&n.e<0)return i;if(e=YQ(n)<0?1:0,t=n.e,r=(i.length+1+y.Math.abs(Mi(n.e)),new ug),e==1&&(r.a+="-"),n.e>0)if(t-=i.length-e,t>=0){for(r.a+="0.";t>Id.length;t-=Id.length)_In(r,Id);CSn(r,Id,Mi(t)),Je(r,(Zn(e,i.length+1),i.substr(e)))}else t=e-t,Je(r,Xo(i,e,Mi(t))),r.a+=".",Je(r,QV(i,Mi(t)));else{for(Je(r,(Zn(e,i.length+1),i.substr(e)));t<-Id.length;t+=Id.length)_In(r,Id);CSn(r,Id,Mi(-t))}return r.a}function nR(n){var e,t,i,r,c,s,f,h,l;return!(n.k!=(ee(),ti)||n.j.c.length<=1||(c=u(m(n,(fn(),Yt)),101),c==(Ki(),Qc))||(r=(iw(),(n.q?n.q:(Fn(),Fn(),Zh))._b(ab)?i=u(m(n,ab),203):i=u(m(Vi(n),V8),203),i),r==PP)||!(r==T2||r==C2)&&(s=x(K(tw(n,J8))),e=u(m(n,Ij),140),!e&&(e=new NW(s,s,s,s)),l=ac(n,(rn(),te)),h=e.d+e.a+(l.gc()-1)*s,h>n.o.b||(t=ac(n,ue),f=e.d+e.a+(t.gc()-1)*s,f>n.o.b)))}function fLe(n,e){var t,i,r,c,s,f,h,l,a,d,g,p,v,k,j;e.Ug("Orthogonal edge routing",1),l=x(K(m(n,(fn(),M2)))),t=x(K(m(n,j2))),i=x(K(m(n,$d))),g=new EN(0,t),j=0,s=new Gi(n.b,0),f=null,a=null,h=null,d=null;do a=s.b0?(p=(v-1)*t,f&&(p+=i),a&&(p+=i),pe||ln(hn(X(h,(qf(),Hj)))))&&(r=0,c+=a.b+t,Xn(d.c,a),a=new IJ(c,t),i=new tF(0,a.f,a,t),mT(a,i),r=0),i.b.c.length==0||!ln(hn(X(Rt(h),(qf(),Xq))))&&(h.f>=i.o&&h.f<=i.f||i.a*.5<=h.f&&i.a*1.5>=h.f)?YY(i,h):(s=new tF(i.s+i.r+t,a.f,a,t),mT(a,s),YY(s,h)),r=h.i+h.g;return Xn(d.c,a),d}function V5(n){var e,t,i,r;if(!(n.b==null||n.b.length<=2)&&!n.a){for(e=0,r=0;r=n.b[r+1])r+=2;else if(t0)for(i=new Uu(u(kt(n.a,c),21)),Fn(),ui(i,new VU(e)),r=new Gi(c.b,0);r.b0&&i>=-6?i>=0?A7(c,t-Mi(n.e),"."):(Ux(c,e-1,e-1,"0."),A7(c,e+1,ms(Id,0,-Mi(i)-1))):(t-e>=1&&(A7(c,e,"."),++t),A7(c,t,"E"),i>0&&A7(c,++t,"+"),A7(c,++t,""+H6(Tc(i)))),n.g=c.a,n.g))}function mLe(n,e){var t,i,r,c,s,f,h,l,a,d,g,p,v,k,j,A,P,O,N,H,W,cn;i=x(K(m(e,(fn(),Mhn)))),H=u(m(e,Q8),17).a,g=4,r=3,W=20/H,p=!1,h=0,s=at;do{for(c=h!=1,d=h!=0,cn=0,j=n.a,P=0,N=j.length;PH)?(h=2,s=at):h==0?(h=1,s=cn):(h=0,s=cn)):(p=cn>=s||s-cn0?1:o0(isNaN(i),isNaN(0)))>=0^(Gs(Th),(y.Math.abs(f)<=Th||f==0||isNaN(f)&&isNaN(0)?0:f<0?-1:f>0?1:o0(isNaN(f),isNaN(0)))>=0)?y.Math.max(f,i):(Gs(Th),(y.Math.abs(i)<=Th||i==0||isNaN(i)&&isNaN(0)?0:i<0?-1:i>0?1:o0(isNaN(i),isNaN(0)))>0?y.Math.sqrt(f*f+i*i):-y.Math.sqrt(f*f+i*i))}function gd(n,e){var t,i,r,c,s,f;if(e){if(!n.a&&(n.a=new HE),n.e==2){_E(n.a,e);return}if(e.e==1){for(r=0;r=pr?Or(t,QY(i)):E3(t,i&bi),s=(++Vt,new HN(10,null,0)),r2e(n.a,s,f-1)):(t=(s.Mm().length+c,new r6),Or(t,s.Mm())),e.e==0?(i=e.Km(),i>=pr?Or(t,QY(i)):E3(t,i&bi)):Or(t,e.Mm()),u(s,530).b=t.a}}function jLe(n,e,t){var i,r,c,s,f,h,l,a,d,g,p,v,k,j;if(!t.dc()){for(f=0,g=0,i=t.Kc(),v=u(i.Pb(),17).a;f1&&(h=l.Hg(h,n.a,f));return h.c.length==1?u(an(h,h.c.length-1),238):h.c.length==2?lLe(($n(0,h.c.length),u(h.c[0],238)),($n(1,h.c.length),u(h.c[1],238)),s,c):null}function ALe(n,e,t){var i,r,c,s,f,h,l;for(t.Ug("Find roots",1),n.a.c.length=0,r=Ce(e.b,0);r.b!=r.d.c;)i=u(Ee(r),40),i.b.b==0&&(U(i,(St(),Ca),(Wn(),!0)),en(n.a,i));switch(n.a.c.length){case 0:c=new eF(0,e,"DUMMY_ROOT"),U(c,(St(),Ca),(Wn(),!0)),U(c,gq,!0),We(e.b,c);break;case 1:break;default:for(s=new eF(0,e,NS),h=new M(n.a);h.a=y.Math.abs(i.b)?(i.b=0,c.d+c.a>s.d&&c.ds.c&&c.c0){if(e=new LX(n.i,n.g),t=n.i,c=t<100?null:new $1(t),n.Tj())for(i=0;i0){for(f=n.g,l=n.i,t5(n),c=l<100?null:new $1(l),i=0;i>13|(n.m&15)<<9,r=n.m>>4&8191,c=n.m>>17|(n.h&255)<<5,s=(n.h&1048320)>>8,f=e.l&8191,h=e.l>>13|(e.m&15)<<9,l=e.m>>4&8191,a=e.m>>17|(e.h&255)<<5,d=(e.h&1048320)>>8,An=t*f,Cn=i*f,Un=r*f,Hn=c*f,fe=s*f,h!=0&&(Cn+=t*h,Un+=i*h,Hn+=r*h,fe+=c*h),l!=0&&(Un+=t*l,Hn+=i*l,fe+=r*l),a!=0&&(Hn+=t*a,fe+=i*a),d!=0&&(fe+=t*d),p=An&so,v=(Cn&511)<<13,g=p+v,j=An>>22,A=Cn>>9,P=(Un&262143)<<4,O=(Hn&31)<<17,k=j+A+P+O,H=Un>>18,W=Hn>>5,cn=(fe&4095)<<8,N=H+W+cn,k+=g>>22,g&=so,N+=k>>22,k&=so,N&=Dl,cu(g,k,N)}function izn(n){var e,t,i,r,c,s,f;if(f=u(an(n.j,0),12),f.g.c.length!=0&&f.e.c.length!=0)throw C(new $r("Interactive layout does not support NORTH/SOUTH ports with incoming _and_ outgoing edges."));if(f.g.c.length!=0){for(c=Bt,t=new M(f.g);t.a4)if(n.fk(e)){if(n.al()){if(r=u(e,54),i=r.Eh(),h=i==n.e&&(n.ml()?r.yh(r.Fh(),n.il())==n.jl():-1-r.Fh()==n.Lj()),n.nl()&&!h&&!i&&r.Jh()){for(c=0;c0&&rHn(n,f,d);for(r=new M(d);r.an.d[s.p]&&(t+=GJ(n.b,c)*u(h.b,17).a,V1(n.a,Z(c)));for(;!i6(n.a);)EQ(n.b,u(Tp(n.a),17).a)}return t}function LLe(n,e){var t,i,r,c,s,f,h,l,a,d;if(a=u(m(n,(J(),jc)),64),i=u(an(n.j,0),12),a==(rn(),ne)?Ci(i,ye):a==ye&&Ci(i,ne),u(m(e,(fn(),xd)),181).Hc((ko(),Gd))){if(h=x(K(m(n,Mm))),l=x(K(m(n,Cm))),s=x(K(m(n,_w))),f=u(m(e,Bw),21),f.Hc((Ju(),Kl)))for(t=l,d=n.o.a/2-i.n.a,c=new M(i.f);c.a0&&(l=n.n.a/c);break;case 2:case 4:r=n.i.o.b,r>0&&(l=n.n.b/r)}U(n,(J(),sb),l)}if(h=n.o,s=n.a,i)s.a=i.a,s.b=i.b,n.d=!0;else if(e!=eh&&e!=Ia&&f!=bc)switch(f.g){case 1:s.a=h.a/2;break;case 2:s.a=h.a,s.b=h.b/2;break;case 3:s.a=h.a/2,s.b=h.b;break;case 4:s.b=h.b/2}else s.a=h.a/2,s.b=h.b/2}function J5(n){var e,t,i,r,c,s,f,h,l,a;if(n.Pj())if(a=n.Ej(),h=n.Qj(),a>0)if(e=new tY(n.pj()),t=a,c=t<100?null:new $1(t),L7(n,t,e.g),r=t==1?n.Ij(4,D(e,0),null,0,h):n.Ij(6,e,null,-1,h),n.Mj()){for(i=new oe(e);i.e!=i.i.gc();)c=n.Oj(be(i),c);c?(c.nj(r),c.oj()):n.Jj(r)}else c?(c.nj(r),c.oj()):n.Jj(r);else L7(n,n.Ej(),n.Fj()),n.Jj(n.Ij(6,(Fn(),rr),null,-1,h));else if(n.Mj())if(a=n.Ej(),a>0){for(f=n.Fj(),l=a,L7(n,a,f),c=l<100?null:new $1(l),i=0;i1&&Nu(s)*po(s)/2>f[0]){for(c=0;cf[c];)++c;v=new Zl(k,0,c+1),d=new bT(v),a=Nu(s)/po(s),h=fR(d,e,new rp,t,i,r,a),dt(bf(d.e),h),Ep(v4(g,d),R4),p=new Zl(k,c+1,k.c.length),KZ(g,p),k.c.length=0,l=0,rPn(f,f.length,0)}else j=g.b.c.length==0?null:an(g.b,0),j!=null&&$x(g,0),l>0&&(f[l]=f[l-1]),f[l]+=Nu(s)*po(s),++l,Xn(k.c,s);return k}function RLe(n,e){var t,i,r,c;t=e.b,c=new Uu(t.j),r=0,i=t.j,i.c.length=0,w0(u(ud(n.b,(rn(),ne),(O0(),cb)),15),t),r=Uk(c,r,new evn,i),w0(u(ud(n.b,ne,ma),15),t),r=Uk(c,r,new Wpn,i),w0(u(ud(n.b,ne,rb),15),t),w0(u(ud(n.b,ue,cb),15),t),w0(u(ud(n.b,ue,ma),15),t),r=Uk(c,r,new tvn,i),w0(u(ud(n.b,ue,rb),15),t),w0(u(ud(n.b,ye,cb),15),t),r=Uk(c,r,new ivn,i),w0(u(ud(n.b,ye,ma),15),t),r=Uk(c,r,new rvn,i),w0(u(ud(n.b,ye,rb),15),t),w0(u(ud(n.b,te,cb),15),t),r=Uk(c,r,new Qpn,i),w0(u(ud(n.b,te,ma),15),t),w0(u(ud(n.b,te,rb),15),t)}function BLe(n,e,t){var i,r,c,s,f,h,l,a,d,g,p;for(f=new M(e);f.a.5?A-=s*2*(v-.5):v<.5&&(A+=c*2*(.5-v)),r=f.d.b,Aj.a-k-a&&(A=j.a-k-a),f.n.a=e+A}}function qLe(n){var e,t,i,r,c;if(i=u(m(n,(fn(),bu)),171),i==(ts(),ya)){for(t=new he(de(Oi(n).a.Kc(),new zn));Te(t);)if(e=u(pe(t),18),!vNn(e))throw C(new Gl(mB+Xk(n)+"' has its layer constraint set to FIRST_SEPARATE, but has at least one incoming edge. FIRST_SEPARATE nodes must not have incoming edges."))}else if(i==Nw){for(c=new he(de(ri(n).a.Kc(),new zn));Te(c);)if(r=u(pe(c),18),!vNn(r))throw C(new Gl(mB+Xk(n)+"' has its layer constraint set to LAST_SEPARATE, but has at least one outgoing edge. LAST_SEPARATE nodes must not have outgoing edges."))}}function vy(n,e){var t,i,r,c,s,f,h,l,a,d,g,p,v;if(n.e&&n.c.c>19!=0&&(e=Z3(e),h=!h),s=AAe(e),c=!1,r=!1,i=!1,n.h==Sy&&n.m==0&&n.l==0)if(r=!0,c=!0,s==-1)n=GTn((F3(),Aun)),i=!0,h=!h;else return f=fen(n,s),h&&nF(f),t&&(wa=cu(0,0,0)),f;else n.h>>19!=0&&(c=!0,n=Z3(n),i=!0,h=!h);return s!=-1?t8e(n,s,h,c,t):WZ(n,e)<0?(t&&(c?wa=Z3(n):wa=cu(n.l,n.m,n.h)),cu(0,0,0)):MPe(i?n:cu(n.l,n.m,n.h),e,h,c,r,t)}function rR(n,e){var t,i,r,c,s,f,h,l,a,d,g,p,v;if(s=n.e,h=e.e,s==0)return e;if(h==0)return n;if(c=n.d,f=e.d,c+f==2)return t=Si(n.a[0],Tr),i=Si(e.a[0],Tr),s==h?(a=or(t,i),v=$e(a),p=$e(G1(a,32)),p==0?new ml(s,v):new Qa(s,2,S(T(Oe,1),Ye,28,15,[v,p]))):(ph(),OM(s<0?vs(i,t):vs(t,i),0)?ia(s<0?vs(i,t):vs(t,i)):U6(ia(i1(s<0?vs(i,t):vs(t,i)))));if(s==h)g=s,d=c>=f?dx(n.a,c,e.a,f):dx(e.a,f,n.a,c);else{if(r=c!=f?c>f?1:-1:TY(n.a,e.a,c),r==0)return ph(),O8;r==1?(g=s,d=lx(n.a,c,e.a,f)):(g=h,d=lx(e.a,f,n.a,c))}return l=new Qa(g,d.length,d),Q6(l),l}function ULe(n,e){var t,i,r,c,s,f,h;if(!(n.g>e.f||e.g>n.f)){for(t=0,i=0,s=n.w.a.ec().Kc();s.Ob();)r=u(s.Pb(),12),aF(lc(S(T(Li,1),Q,8,0,[r.i.n,r.n,r.a])).b,e.g,e.f)&&++t;for(f=n.r.a.ec().Kc();f.Ob();)r=u(f.Pb(),12),aF(lc(S(T(Li,1),Q,8,0,[r.i.n,r.n,r.a])).b,e.g,e.f)&&--t;for(h=e.w.a.ec().Kc();h.Ob();)r=u(h.Pb(),12),aF(lc(S(T(Li,1),Q,8,0,[r.i.n,r.n,r.a])).b,n.g,n.f)&&++i;for(c=e.r.a.ec().Kc();c.Ob();)r=u(c.Pb(),12),aF(lc(S(T(Li,1),Q,8,0,[r.i.n,r.n,r.a])).b,n.g,n.f)&&--i;t=0)return t;switch(k0(Br(n,t))){case 2:{if(On("",o1(n,t.qk()).xe())){if(h=X7(Br(n,t)),f=T3(Br(n,t)),a=den(n,e,h,f),a)return a;for(r=qen(n,e),s=0,d=r.gc();s1)throw C(new Yn(ej));for(a=lu(n.e.Dh(),e),i=u(n.g,124),s=0;s1,l=new Ff(g.b);sc(l.a)||sc(l.b);)h=u(sc(l.a)?E(l.a):E(l.b),18),d=h.c==g?h.d:h.c,y.Math.abs(lc(S(T(Li,1),Q,8,0,[d.i.n,d.n,d.a])).b-s.b)>1&&LSe(n,h,s,c,g)}}function QLe(n){var e,t,i,r,c,s;if(r=new Gi(n.e,0),i=new Gi(n.a,0),n.d)for(t=0;tZB;){for(c=e,s=0;y.Math.abs(e-c)0),r.a.Xb(r.c=--r.b),aOe(n,n.b-s,c,i,r),we(r.b0),i.a.Xb(i.c=--i.b)}if(!n.d)for(t=0;t0?(n.f[a.p]=p/(a.e.c.length+a.g.c.length),n.c=y.Math.min(n.c,n.f[a.p]),n.b=y.Math.max(n.b,n.f[a.p])):f&&(n.f[a.p]=p)}}function ZLe(n){n.b=null,n.bb=null,n.fb=null,n.qb=null,n.a=null,n.c=null,n.d=null,n.e=null,n.f=null,n.n=null,n.M=null,n.L=null,n.Q=null,n.R=null,n.K=null,n.db=null,n.eb=null,n.g=null,n.i=null,n.j=null,n.k=null,n.gb=null,n.o=null,n.p=null,n.q=null,n.r=null,n.$=null,n.ib=null,n.S=null,n.T=null,n.t=null,n.s=null,n.u=null,n.v=null,n.w=null,n.B=null,n.A=null,n.C=null,n.D=null,n.F=null,n.G=null,n.H=null,n.I=null,n.J=null,n.P=null,n.Z=null,n.U=null,n.V=null,n.W=null,n.X=null,n.Y=null,n._=null,n.ab=null,n.cb=null,n.hb=null,n.nb=null,n.lb=null,n.mb=null,n.ob=null,n.pb=null,n.jb=null,n.kb=null,n.N=!1,n.O=!1}function nDe(n,e,t){var i,r,c,s;for(t.Ug("Graph transformation ("+n.a+")",1),s=C0(e.a),c=new M(e.b);c.a=f.b.c)&&(f.b=e),(!f.c||e.c<=f.c.c)&&(f.d=f.c,f.c=e),(!f.e||e.d>=f.e.d)&&(f.e=e),(!f.f||e.d<=f.f.d)&&(f.f=e);return i=new cA((Q3(),ib)),ek(n,yne,new Gu(S(T(bj,1),Gn,382,0,[i]))),s=new cA(Sw),ek(n,kne,new Gu(S(T(bj,1),Gn,382,0,[s]))),r=new cA(Aw),ek(n,mne,new Gu(S(T(bj,1),Gn,382,0,[r]))),c=new cA(h2),ek(n,vne,new Gu(S(T(bj,1),Gn,382,0,[c]))),I$(i.c,ib),I$(r.c,Aw),I$(c.c,h2),I$(s.c,Sw),f.a.c.length=0,vi(f.a,i.c),vi(f.a,es(r.c)),vi(f.a,c.c),vi(f.a,es(s.c)),f}function iDe(n,e){var t,i,r,c,s,f,h,l,a,d,g,p,v;for(e.Ug(pVn,1),p=x(K(X(n,(Uh(),Uw)))),s=x(K(X(n,(qf(),b9)))),f=u(X(n,d9),107),JQ((!n.a&&(n.a=new G(ft,n,10,11)),n.a)),a=ZUn((!n.a&&(n.a=new G(ft,n,10,11)),n.a),p,s),!n.a&&(n.a=new G(ft,n,10,11)),l=new M(a);l.a0&&(n.a=h+(p-1)*c,e.c.b+=n.a,e.f.b+=n.a)),v.a.gc()!=0&&(g=new EN(1,c),p=gtn(g,e,v,k,e.f.b+h-e.c.b),p>0&&(e.f.b+=h+(p-1)*c))}function uzn(n,e,t){var i,r,c,s,f,h,l,a,d,g,p,v,k,j,A,P,O,N;for(a=x(K(m(n,(fn(),bb)))),i=x(K(m(n,Nhn))),g=new ZO,U(g,bb,a+i),l=e,A=l.d,k=l.c.i,P=l.d.i,j=BX(k.c),O=BX(P.c),r=new nn,d=j;d<=O;d++)f=new Il(n),_a(f,(ee(),Ni)),U(f,(J(),yt),l),U(f,Yt,(Ki(),Qc)),U(f,CP,g),p=u(an(n.b,d),30),d==j?rw(f,p.a.c.length-t,p):qi(f,p),N=x(K(m(l,y1))),N<0&&(N=0,U(l,y1,N)),f.o.b=N,v=y.Math.floor(N/2),s=new $c,Ci(s,(rn(),te)),fc(s,f),s.n.b=v,h=new $c,Ci(h,ue),fc(h,f),h.n.b=v,Bi(l,s),c=new j0,Jr(c,l),U(c,qr,null),ur(c,h),Bi(c,A),zye(f,l,c),Xn(r.c,c),l=c;return r}function cR(n,e){var t,i,r,c,s,f,h,l,a,d,g,p,v,k,j,A,P,O;for(h=u(d1(n,(rn(),te)).Kc().Pb(),12).e,p=u(d1(n,ue).Kc().Pb(),12).g,f=h.c.length,O=Nf(u(an(n.j,0),12));f-- >0;){for(k=($n(0,h.c.length),u(h.c[0],18)),r=($n(0,p.c.length),u(p.c[0],18)),P=r.d.e,c=Vr(P,r,0),A3e(k,r.d,c),ur(r,null),Bi(r,null),v=k.a,e&&We(v,new lr(O)),i=Ce(r.a,0);i.b!=i.d.c;)t=u(Ee(i),8),We(v,new lr(t));for(A=k.b,g=new M(r.b);g.as)&&pi(n.b,u(j.b,18));++f}c=s}}}function dtn(n,e){var t;if(e==null||On(e,ju)||e.length==0&&n.k!=(b1(),Ov))return null;switch(n.k.g){case 1:return nA(e,Q4)?(Wn(),rm):nA(e,pK)?(Wn(),ga):null;case 2:try{return Z(Oo(e,tr,at))}catch(i){if(i=_t(i),L(i,130))return null;throw C(i)}case 4:try{return uw(e)}catch(i){if(i=_t(i),L(i,130))return null;throw C(i)}case 3:return e;case 5:return ARn(n),KHn(n,e);case 6:return ARn(n),rAe(n,n.a,e);case 7:try{return t=wTe(n),t.cg(e),t}catch(i){if(i=_t(i),L(i,33))return null;throw C(i)}default:throw C(new $r("Invalid type set for this layout option."))}}function btn(n){var e;switch(n.d){case 1:{if(n.Sj())return n.o!=-2;break}case 2:{if(n.Sj())return n.o==-2;break}case 3:case 5:case 4:case 6:case 7:return n.o>-2;default:return!1}switch(e=n.Rj(),n.p){case 0:return e!=null&&ln(hn(e))!=C6(n.k,0);case 1:return e!=null&&u(e,222).a!=$e(n.k)<<24>>24;case 2:return e!=null&&u(e,180).a!=($e(n.k)&bi);case 6:return e!=null&&C6(u(e,168).a,n.k);case 5:return e!=null&&u(e,17).a!=$e(n.k);case 7:return e!=null&&u(e,191).a!=$e(n.k)<<16>>16;case 3:return e!=null&&x(K(e))!=n.j;case 4:return e!=null&&u(e,161).a!=n.j;default:return e==null?n.n!=null:!wt(e,n.n)}}function my(n,e,t){var i,r,c,s;return n.ol()&&n.nl()&&(s=pN(n,u(t,58)),F(s)!==F(t))?(n.xj(e),n.Dj(e,hxn(n,e,s)),n.al()&&(c=(r=u(t,54),n.ml()?n.kl()?r.Th(n.b,jr(u(_n(vu(n.b),n.Lj()),19)).n,u(_n(vu(n.b),n.Lj()).Hk(),29).kk(),null):r.Th(n.b,Ht(r.Dh(),jr(u(_n(vu(n.b),n.Lj()),19))),null,null):r.Th(n.b,-1-n.Lj(),null,null)),!u(s,54).Ph()&&(c=(i=u(s,54),n.ml()?n.kl()?i.Rh(n.b,jr(u(_n(vu(n.b),n.Lj()),19)).n,u(_n(vu(n.b),n.Lj()).Hk(),29).kk(),c):i.Rh(n.b,Ht(i.Dh(),jr(u(_n(vu(n.b),n.Lj()),19))),null,c):i.Rh(n.b,-1-n.Lj(),null,c))),c&&c.oj()),bo(n.b)&&n.Jj(n.Ij(9,t,s,e,!1)),s):t}function ozn(n){var e,t,i,r,c,s,f,h,l,a;for(i=new nn,s=new M(n.e.a);s.a0&&(s=y.Math.max(s,a$n(n.C.b+i.d.b,r))),a=i,d=r,g=c;n.C&&n.C.c>0&&(p=g+n.C.c,l&&(p+=a.d.c),s=y.Math.max(s,(Pf(),Gs(Uf),y.Math.abs(d-1)<=Uf||d==1||isNaN(d)&&isNaN(1)?0:p/(1-d)))),t.n.b=0,t.a.a=s}function fzn(n,e){var t,i,r,c,s,f,h,l,a,d,g,p;if(t=u(Lr(n.b,e),127),h=u(u(kt(n.r,e),21),87),h.dc()){t.n.d=0,t.n.a=0;return}for(l=n.u.Hc((Ju(),Kl)),s=0,n.A.Hc((ko(),Gd))&&RGn(n,e),f=h.Kc(),a=null,g=0,d=0;f.Ob();)i=u(f.Pb(),117),c=x(K(i.b.of((GM(),vI)))),r=i.b.Mf().b,a?(p=d+a.d.a+n.w+i.d.d,s=y.Math.max(s,(Pf(),Gs(Uf),y.Math.abs(g-c)<=Uf||g==c||isNaN(g)&&isNaN(c)?0:p/(c-g)))):n.C&&n.C.d>0&&(s=y.Math.max(s,a$n(n.C.d+i.d.d,c))),a=i,g=c,d=r;n.C&&n.C.a>0&&(p=d+n.C.a,l&&(p+=a.d.a),s=y.Math.max(s,(Pf(),Gs(Uf),y.Math.abs(g-1)<=Uf||g==1||isNaN(g)&&isNaN(1)?0:p/(1-g)))),t.n.d=0,t.a.b=s}function uDe(n,e,t,i,r,c,s,f){var h,l,a,d,g,p,v,k,j,A;if(v=!1,l=yen(t.q,e.f+e.b-t.q.f),p=i.f>e.b&&f,A=r-(t.q.e+l-s),d=(h=W5(i,A,!1),h.a),p&&d>i.f)return!1;if(p){for(g=0,j=new M(e.d);j.a=($n(c,n.c.length),u(n.c[c],186)).e,!p&&d>e.b&&!a)?!1:((a||p||d<=e.b)&&(a&&d>e.b?(t.d=d,hk(t,V_n(t,d))):(d_n(t.q,l),t.c=!0),hk(i,r-(t.s+t.r)),zk(i,t.q.e+t.q.d,e.f),mT(e,i),n.c.length>c&&(Vk(($n(c,n.c.length),u(n.c[c],186)),i),($n(c,n.c.length),u(n.c[c],186)).a.c.length==0&&e1(n,c)),v=!0),v)}function hzn(n,e,t){var i,r,c,s,f,h;for(this.g=n,f=e.d.length,h=t.d.length,this.d=_(el,p1,10,f+h,0,1),s=0;s0?Px(this,this.f/this.a):Of(e.g,e.d[0]).a!=null&&Of(t.g,t.d[0]).a!=null?Px(this,(x(Of(e.g,e.d[0]).a)+x(Of(t.g,t.d[0]).a))/2):Of(e.g,e.d[0]).a!=null?Px(this,Of(e.g,e.d[0]).a):Of(t.g,t.d[0]).a!=null&&Px(this,Of(t.g,t.d[0]).a)}function oDe(n,e){var t,i,r,c,s,f,h,l,a,d;for(n.a=new qPn(q5e(E9)),i=new M(e.a);i.a=1&&(j-s>0&&d>=0?(h.n.a+=k,h.n.b+=c*s):j-s<0&&a>=0&&(h.n.a+=k*j,h.n.b+=c));n.o.a=e.a,n.o.b=e.b,U(n,(fn(),xd),(ko(),i=u(af(P9),9),new Uo(i,u(Ks(i,i.length),9),0)))}function hDe(n,e,t,i,r,c){var s;if(!(e==null||!EF(e,e0n,t0n)))throw C(new Yn("invalid scheme: "+e));if(!n&&!(t!=null&&oh(t,yu(35))==-1&&t.length>0&&(Zn(0,t.length),t.charCodeAt(0)!=47)))throw C(new Yn("invalid opaquePart: "+t));if(n&&!(e!=null&&u7(TO,e.toLowerCase()))&&!(t==null||!EF(t,N9,x9)))throw C(new Yn(XJn+t));if(n&&e!=null&&u7(TO,e.toLowerCase())&&!qje(t))throw C(new Yn(XJn+t));if(!V9e(i))throw C(new Yn("invalid device: "+i));if(!D8e(r))throw s=r==null?"invalid segments: null":"invalid segment: "+I8e(r),C(new Yn(s));if(!(c==null||oh(c,yu(35))==-1))throw C(new Yn("invalid query: "+c))}function lDe(n,e,t){var i,r,c,s,f,h,l,a,d,g,p,v,k,j,A;if(t.Ug("Network simplex layering",1),n.b=e,A=u(m(e,(fn(),Q8)),17).a*4,j=n.b.a,j.c.length<1){t.Vg();return}for(c=sPe(n,j),k=null,r=Ce(c,0);r.b!=r.d.c;){for(i=u(Ee(r),15),f=A*Mi(y.Math.sqrt(i.gc())),s=EPe(i),_$(Nz(l1e(xz(JD(s),f),k),!0),t.eh(1)),g=n.b.b,v=new M(s.a);v.a1)for(k=_(Oe,Ye,28,n.b.b.c.length,15,1),d=0,l=new M(n.b.b);l.a0){eA(n,t,0),t.a+=String.fromCharCode(i),r=D7e(e,c),eA(n,t,r),c+=r-1;continue}i==39?c+10&&v.a<=0){h.c.length=0,Xn(h.c,v);break}p=v.i-v.d,p>=f&&(p>f&&(h.c.length=0,f=p),Xn(h.c,v))}h.c.length!=0&&(s=u(an(h,fA(r,h.c.length)),118),O.a.Bc(s)!=null,s.g=a++,ttn(s,e,t,i),h.c.length=0)}for(j=n.c.length+1,g=new M(n);g.ami||e.o==Rd&&a=f&&r<=h)f<=r&&c<=h?(t[a++]=r,t[a++]=c,i+=2):f<=r?(t[a++]=r,t[a++]=h,n.b[i]=h+1,s+=2):c<=h?(t[a++]=f,t[a++]=c,i+=2):(t[a++]=f,t[a++]=h,n.b[i]=h+1);else if(hfa)&&f<10);$z(n.c,new Bwn),bzn(n),u2e(n.c),eDe(n.f)}function kDe(n,e){var t,i,r,c,s,f,h,l,a,d,g,p,v,k;for(t=u(m(n,(fn(),Yt)),101),s=n.f,c=n.d,f=s.a+c.b+c.c,h=0-c.d-n.c.b,a=s.b+c.d+c.a-n.c.b,l=new nn,d=new nn,r=new M(e);r.a=2){for(h=Ce(t,0),s=u(Ee(h),8),f=u(Ee(h),8);f.a0&&Pk(l,!0,(di(),Zr)),f.k==(ee(),oi)&&YPn(l),ct(n.f,f,e)}}function EDe(n){var e,t,i,r,c,s,f,h,l,a,d,g,p,v,k,j,A,P,O,N;for(r=u(m(n,(St(),f9)),27),l=at,a=at,f=tr,h=tr,O=Ce(n.b,0);O.b!=O.d.c;)A=u(Ee(O),40),p=A.e,v=A.f,l=y.Math.min(l,p.a-v.a/2),a=y.Math.min(a,p.b-v.b/2),f=y.Math.max(f,p.a+v.a/2),h=y.Math.max(h,p.b+v.b/2);for(g=u(X(r,(pc(),Uln)),107),P=Ce(n.b,0);P.b!=P.d.c;)A=u(Ee(P),40),d=m(A,f9),L(d,207)&&(c=u(d,27),qo(c,A.e.a,A.e.b),sy(c,A));for(j=Ce(n.a,0);j.b!=j.d.c;)k=u(Ee(j),65),i=u(m(k,f9),74),i&&(e=k.a,t=Gg(i,!0,!0),wy(e,t));N=f-l+(g.b+g.c),s=h-a+(g.d+g.a),ln(hn(X(r,(et(),zw))))||G0(r,N,s,!1,!1),Et(r,x2,N-(g.b+g.c)),Et(r,N2,s-(g.d+g.a))}function gzn(n,e){var t,i,r,c,s,f,h,l,a,d;for(h=!0,r=0,l=n.g[e.p],a=e.o.b+n.o,t=n.d[e.p][2],Vo(n.b,l,Z(u(an(n.b,l),17).a-1+t)),Vo(n.c,l,x(K(an(n.c,l)))-a+t*n.f),++l,l>=n.j?(++n.j,en(n.b,Z(1)),en(n.c,a)):(i=n.d[e.p][1],Vo(n.b,l,Z(u(an(n.b,l),17).a+1-i)),Vo(n.c,l,x(K(an(n.c,l)))+a-i*n.f)),(n.r==(ys(),Pj)&&(u(an(n.b,l),17).a>n.k||u(an(n.b,l-1),17).a>n.k)||n.r==Oj&&(x(K(an(n.c,l)))>n.n||x(K(an(n.c,l-1)))>n.n))&&(h=!1),s=new he(de(Oi(e).a.Kc(),new zn));Te(s);)c=u(pe(s),18),f=c.c.i,n.g[f.p]==l&&(d=gzn(n,f),r=r+u(d.a,17).a,h=h&&ln(hn(d.b)));return n.g[e.p]=l,r=r+n.d[e.p][0],new Ei(Z(r),(Wn(),!!h))}function pzn(n,e){var t,i,r,c,s;t=x(K(m(e,(fn(),Zs)))),t<2&&U(e,Zs,2),i=u(m(e,Fo),88),i==(di(),nh)&&U(e,Fo,GT(e)),r=u(m(e,xie),17),r.a==0?U(e,(J(),Tv),new CF):U(e,(J(),Tv),new XC(r.a)),c=hn(m(e,W8)),c==null&&U(e,W8,(Wn(),F(m(e,Rl))===F((Tl(),$m)))),Zt(new Pn(null,new Nn(e.a,16)),new XU(n)),Zt(hc(new Pn(null,new Nn(e.b,16)),new rU),new WU(n)),s=new lzn(e),U(e,(J(),k2),s),z7(n.a),wf(n.a,(er(),Ys),u(m(e,Ld),188)),wf(n.a,nl,u(m(e,Nd),188)),wf(n.a,Bc,u(m(e,X8),188)),wf(n.a,Wc,u(m(e,EP),188)),wf(n.a,Yr,E5e(u(m(e,Rl),223))),_X(n.a,vxe(e)),U(e,IH,vy(n.a,e))}function gtn(n,e,t,i,r){var c,s,f,h,l,a,d,g,p,v,k,j,A;for(d=new je,s=new nn,gHn(n,t,n.d.Ag(),s,d),gHn(n,i,n.d.Bg(),s,d),n.b=.2*(k=yqn(hc(new Pn(null,new Nn(s,16)),new M3n)),j=yqn(hc(new Pn(null,new Nn(s,16)),new C3n)),y.Math.min(k,j)),c=0,f=0;f=2&&(A=Kqn(s,!0,g),!n.e&&(n.e=new Qkn(n)),I7e(n.e,A,s,n.b)),E_n(s,g),IDe(s),p=-1,a=new M(s);a.af)}function vzn(n,e){var t,i,r,c,s,f,h,l,a,d,g,p,v,k,j,A,P;for(l=Bt,a=Bt,f=mi,h=mi,g=new M(e.i);g.a-1){for(r=Ce(f,0);r.b!=r.d.c;)i=u(Ee(r),131),i.v=s;for(;f.b!=0;)for(i=u(t$(f,0),131),t=new M(i.i);t.a-1){for(c=new M(f);c.a0)&&(DU(h,y.Math.min(h.o,r.o-1)),LE(h,h.i-1),h.i==0&&Xn(f.c,h))}}function kzn(n,e,t,i,r){var c,s,f,h;return h=Bt,s=!1,f=otn(n,Ai(new V(e.a,e.b),n),dt(new V(t.a,t.b),r),Ai(new V(i.a,i.b),t)),c=!!f&&!(y.Math.abs(f.a-n.a)<=Q0&&y.Math.abs(f.b-n.b)<=Q0||y.Math.abs(f.a-e.a)<=Q0&&y.Math.abs(f.b-e.b)<=Q0),f=otn(n,Ai(new V(e.a,e.b),n),t,r),f&&((y.Math.abs(f.a-n.a)<=Q0&&y.Math.abs(f.b-n.b)<=Q0)==(y.Math.abs(f.a-e.a)<=Q0&&y.Math.abs(f.b-e.b)<=Q0)||c?h=y.Math.min(h,X6(Ai(f,t))):s=!0),f=otn(n,Ai(new V(e.a,e.b),n),i,r),f&&(s||(y.Math.abs(f.a-n.a)<=Q0&&y.Math.abs(f.b-n.b)<=Q0)==(y.Math.abs(f.a-e.a)<=Q0&&y.Math.abs(f.b-e.b)<=Q0)||c)&&(h=y.Math.min(h,X6(Ai(f,i)))),h}function yzn(n){i0(n,new wd(WE(n0(Qd(Zd(Yd(new Ba,la),pWn),"Minimizes the stress within a layout using stress majorization. Stress exists if the euclidean distance between a pair of nodes doesn't match their graph theoretic distance, that is, the shortest path between the two nodes. The method allows to specify individual edge lengths."),new Nwn),au))),Y(n,la,u8,un(qon)),Y(n,la,lS,(Wn(),!0)),Y(n,la,e2,un(rne)),Y(n,la,lv,un(cne)),Y(n,la,hv,un(une)),Y(n,la,G4,un(ine)),Y(n,la,o8,un(Uon)),Y(n,la,U4,un(one)),Y(n,la,bin,un(Hon)),Y(n,la,gin,un(Kon)),Y(n,la,pin,un(_on)),Y(n,la,vin,un(Gon)),Y(n,la,win,un(AI))}function PDe(n){var e,t,i,r,c,s,f,h;for(e=null,i=new M(n);i.a0&&t.c==0&&(!e&&(e=new nn),Xn(e.c,t));if(e)for(;e.c.length!=0;){if(t=u(e1(e,0),239),t.b&&t.b.c.length>0){for(c=(!t.b&&(t.b=new nn),new M(t.b));c.aVr(n,t,0))return new Ei(r,t)}else if(x(Of(r.g,r.d[0]).a)>x(Of(t.g,t.d[0]).a))return new Ei(r,t)}for(f=(!t.e&&(t.e=new nn),t.e).Kc();f.Ob();)s=u(f.Pb(),239),h=(!s.b&&(s.b=new nn),s.b),Gb(0,h.c.length),b6(h.c,0,t),s.c==h.c.length&&Xn(e.c,s)}return null}function ODe(n,e){var t,i,r,c,s,f,h,l,a,d,g,p,v,k,j,A;for(e.Ug("Interactive crossing minimization",1),s=0,c=new M(n.b);c.a0&&(t+=h.n.a+h.o.a/2,++d),v=new M(h.j);v.a0&&(t/=d),A=_(Ri,Nr,28,i.a.c.length,15,1),f=0,l=new M(i.a);l.a=f&&r<=h)f<=r&&c<=h?i+=2:f<=r?(n.b[i]=h+1,s+=2):c<=h?(t[a++]=r,t[a++]=f-1,i+=2):(t[a++]=r,t[a++]=f-1,n.b[i]=h+1,s+=2);else if(h2?(a=new nn,vi(a,new Zl(A,1,A.b)),c=sXn(a,O+n.a),P=new T$(c),Jr(P,e),Xn(t.c,P)):i?P=u(se(n.b,Gh(e)),272):P=u(se(n.b,ra(e)),272),h=Gh(e),i&&(h=ra(e)),s=PMe(j,h),l=O+n.a,s.a?(l+=y.Math.abs(j.b-d.b),k=new V(d.a,(d.b+j.b)/2)):(l+=y.Math.abs(j.a-d.a),k=new V((d.a+j.a)/2,d.b)),i?ct(n.d,e,new NZ(P,s,k,l)):ct(n.c,e,new NZ(P,s,k,l)),ct(n.b,e,P),v=(!e.n&&(e.n=new G(xr,e,1,7)),e.n),p=new oe(v);p.e!=p.i.gc();)g=u(be(p),135),r=ly(n,g,!0,0,0),Xn(t.c,r)}function LDe(n){var e,t,i,r,c,s,f;if(!n.A.dc()){if(n.A.Hc((ko(),uE))&&(u(Lr(n.b,(rn(),ne)),127).k=!0,u(Lr(n.b,ye),127).k=!0,e=n.q!=(Ki(),ul)&&n.q!=Qc,PU(u(Lr(n.b,ue),127),e),PU(u(Lr(n.b,te),127),e),PU(n.g,e),n.A.Hc(Gd)&&(u(Lr(n.b,ne),127).j=!0,u(Lr(n.b,ye),127).j=!0,u(Lr(n.b,ue),127).k=!0,u(Lr(n.b,te),127).k=!0,n.g.k=!0)),n.A.Hc(cE))for(n.a.j=!0,n.a.k=!0,n.g.j=!0,n.g.k=!0,f=n.B.Hc((oo(),O9)),r=NF(),c=0,s=r.length;c0),u(a.a.Xb(a.c=--a.b),18));c!=i&&a.b>0;)n.a[c.p]=!0,n.a[i.p]=!0,c=(we(a.b>0),u(a.a.Xb(a.c=--a.b),18));a.b>0&&vo(a)}}function Ezn(n,e,t){var i,r,c,s,f,h,l,a,d,g,p;if(!n.b)return!1;for(s=null,g=null,h=new gx(null,null),r=1,h.a[1]=n.b,d=h;d.a[r];)l=r,f=g,g=d,d=d.a[r],i=n.a.Ne(e,d.d),r=i<0?0:1,i==0&&(!t.c||Cc(d.e,t.d))&&(s=d),!(d&&d.b)&&!Sb(d.a[r])&&(Sb(d.a[1-r])?g=g.a[l]=TT(d,r):Sb(d.a[1-r])||(p=g.a[1-l],p&&(!Sb(p.a[1-l])&&!Sb(p.a[l])?(g.b=!1,p.b=!0,d.b=!0):(c=f.a[1]==g?1:0,Sb(p.a[l])?f.a[c]=ZLn(g,l):Sb(p.a[1-l])&&(f.a[c]=TT(g,l)),d.b=f.a[c].b=!0,f.a[c].a[0].b=!1,f.a[c].a[1].b=!1))));return s&&(t.b=!0,t.d=s.e,d!=s&&(a=new gx(d.d,d.e),xEe(n,h,s,a),g==s&&(g=a)),g.a[g.a[1]==d?1:0]=d.a[d.a[0]?0:1],--n.c),n.b=h.a[1],n.b&&(n.b.b=!1),t.b}function xDe(n){var e,t,i,r,c,s,f,h,l,a,d,g;for(r=new M(n.a.a.b);r.a0?r-=864e5:r+=864e5,h=new CW(or(Tc(e.q.getTime()),r))),a=new ug,l=n.a.length,c=0;c=97&&i<=122||i>=65&&i<=90){for(s=c+1;s=l)throw C(new Yn("Missing trailing '"));s+1=14&&a<=16))?e.a._b(i)?(t.a?Je(t.a,t.b):t.a=new jo(t.d),A6(t.a,"[...]")):(f=rd(i),l=new R6(e),kl(t,Czn(f,l))):L(i,183)?kl(t,dCe(u(i,183))):L(i,195)?kl(t,Yje(u(i,195))):L(i,201)?kl(t,sMe(u(i,201))):L(i,2111)?kl(t,Zje(u(i,2111))):L(i,53)?kl(t,aCe(u(i,53))):L(i,376)?kl(t,PCe(u(i,376))):L(i,846)?kl(t,lCe(u(i,846))):L(i,109)&&kl(t,hCe(u(i,109))):kl(t,i==null?ju:tc(i));return t.a?t.e.length==0?t.a.a:t.a.a+(""+t.e):t.c}function P4(n,e){var t,i,r,c;c=n.F,e==null?(n.F=null,i4(n,null)):(n.F=(ie(e),e),i=oh(e,yu(60)),i!=-1?(r=(Ui(0,i,e.length),e.substr(0,i)),oh(e,yu(46))==-1&&!On(r,ev)&&!On(r,y8)&&!On(r,VS)&&!On(r,j8)&&!On(r,E8)&&!On(r,M8)&&!On(r,C8)&&!On(r,T8)&&(r=uQn),t=_M(e,yu(62)),t!=-1&&(r+=""+(Zn(t+1,e.length+1),e.substr(t+1))),i4(n,r)):(r=e,oh(e,yu(46))==-1&&(i=oh(e,yu(91)),i!=-1&&(r=(Ui(0,i,e.length),e.substr(0,i))),!On(r,ev)&&!On(r,y8)&&!On(r,VS)&&!On(r,j8)&&!On(r,E8)&&!On(r,M8)&&!On(r,C8)&&!On(r,T8)?(r=uQn,i!=-1&&(r+=""+(Zn(i,e.length+1),e.substr(i)))):r=e),i4(n,r),r==e&&(n.F=n.D))),(n.Db&4)!=0&&(n.Db&1)==0&&bt(n,new Di(n,1,5,c,e))}function Tzn(n,e){var t,i,r,c,s,f,h,l,a,d;if(h=e.length-1,f=(Zn(h,e.length),e.charCodeAt(h)),f==93){if(s=oh(e,yu(91)),s>=0)return r=K9e(n,(Ui(1,s,e.length),e.substr(1,s-1))),a=(Ui(s+1,h,e.length),e.substr(s+1,h-(s+1))),axe(n,a,r)}else{if(t=-1,Lun==null&&(Lun=new RegExp("\\d")),Lun.test(String.fromCharCode(f))&&(t=qW(e,yu(46),h-1),t>=0)){i=u(hx(n,bFn(n,(Ui(1,t,e.length),e.substr(1,t-1))),!1),61),l=0;try{l=Oo((Zn(t+1,e.length+1),e.substr(t+1)),tr,at)}catch(g){throw g=_t(g),L(g,130)?(c=g,C(new cT(c))):C(g)}if(l>16==-10?t=u(n.Cb,292).Yk(e,t):n.Db>>16==-15&&(!e&&(e=(xn(),ih)),!l&&(l=(xn(),ih)),n.Cb.Yh()&&(h=new yl(n.Cb,1,13,l,e,a1(ro(u(n.Cb,62)),n),!1),t?t.nj(h):t=h));else if(L(n.Cb,90))n.Db>>16==-23&&(L(e,90)||(e=(xn(),Ns)),L(l,90)||(l=(xn(),Ns)),n.Cb.Yh()&&(h=new yl(n.Cb,1,10,l,e,a1(Fc(u(n.Cb,29)),n),!1),t?t.nj(h):t=h));else if(L(n.Cb,457))for(f=u(n.Cb,850),s=(!f.b&&(f.b=new RE(new ML)),f.b),c=(i=new od(new qa(s.a).a),new BE(i));c.a.b;)r=u(L0(c.a).ld(),89),t=O4(r,IA(r,f),t)}return t}function KDe(n,e){var t,i,r,c,s,f,h,l,a,d,g;for(s=ln(hn(X(n,(fn(),$w)))),g=u(X(n,Bw),21),h=!1,l=!1,d=new oe((!n.c&&(n.c=new G(eo,n,9,9)),n.c));d.e!=d.i.gc()&&(!h||!l);){for(c=u(be(d),123),f=0,r=Bh(Ao(S(T(xo,1),Gn,20,0,[(!c.d&&(c.d=new Kn(ii,c,8,5)),c.d),(!c.e&&(c.e=new Kn(ii,c,7,4)),c.e)])));Te(r)&&(i=u(pe(r),74),a=s&&K0(i)&&ln(hn(X(i,Dd))),t=rzn((!i.b&&(i.b=new Kn(ve,i,4,7)),i.b),c)?n==Rt(Qr(u(D((!i.c&&(i.c=new Kn(ve,i,5,8)),i.c),0),84))):n==Rt(Qr(u(D((!i.b&&(i.b=new Kn(ve,i,4,7)),i.b),0),84))),!((a||t)&&(++f,f>1))););(f>0||g.Hc((Ju(),Kl))&&(!c.n&&(c.n=new G(xr,c,1,7)),c.n).i>0)&&(h=!0),f>1&&(l=!0)}h&&e.Fc((Cr(),fs)),l&&e.Fc((Cr(),K8))}function Azn(n){var e,t,i,r,c,s,f,h,l,a,d,g;if(g=u(X(n,(et(),_d)),21),g.dc())return null;if(f=0,s=0,g.Hc((ko(),uE))){for(a=u(X(n,j9),101),i=2,t=2,r=2,c=2,e=Rt(n)?u(X(Rt(n),Kd),88):u(X(n,Kd),88),l=new oe((!n.c&&(n.c=new G(eo,n,9,9)),n.c));l.e!=l.i.gc();)if(h=u(be(l),123),d=u(X(h,B2),64),d==(rn(),bc)&&(d=etn(h,e),Et(h,B2,d)),a==(Ki(),Qc))switch(d.g){case 1:i=y.Math.max(i,h.i+h.g);break;case 2:t=y.Math.max(t,h.j+h.f);break;case 3:r=y.Math.max(r,h.i+h.g);break;case 4:c=y.Math.max(c,h.j+h.f)}else switch(d.g){case 1:i+=h.g+2;break;case 2:t+=h.f+2;break;case 3:r+=h.g+2;break;case 4:c+=h.f+2}f=y.Math.max(i,r),s=y.Math.max(t,c)}return G0(n,f,s,!0,!0)}function uR(n,e,t,i,r){var c,s,f,h,l,a,d,g,p,v,k,j,A,P,O,N;for(P=u(ec(dT(pt(new Pn(null,new Nn(e.d,16)),new pkn(t)),new vkn(t)),Xu(new Su,new Au,new Iu,S(T(Hr,1),z,108,0,[(Vu(),rc)]))),15),d=at,a=tr,h=new M(e.b.j);h.a0,l?l&&(g=A.p,s?++g:--g,d=u(an(A.c.a,g),10),i=Q$n(d),p=!(P$(i,W,t[0])||yPn(i,W,t[0]))):p=!0),v=!1,H=e.D.i,H&&H.c&&f.e&&(a=s&&H.p>0||!s&&H.p=0){for(h=null,f=new Gi(a.a,l+1);f.bs?1:o0(isNaN(0),isNaN(s)))<0&&(Gs(Th),(y.Math.abs(s-1)<=Th||s==1||isNaN(s)&&isNaN(1)?0:s<1?-1:s>1?1:o0(isNaN(s),isNaN(1)))<0)&&(Gs(Th),(y.Math.abs(0-f)<=Th||f==0||isNaN(0)&&isNaN(f)?0:0f?1:o0(isNaN(0),isNaN(f)))<0)&&(Gs(Th),(y.Math.abs(f-1)<=Th||f==1||isNaN(f)&&isNaN(1)?0:f<1?-1:f>1?1:o0(isNaN(f),isNaN(1)))<0)),c)}function zDe(n){var e,t,i,r;if(t=n.D!=null?n.D:n.B,e=oh(t,yu(91)),e!=-1){i=(Ui(0,e,t.length),t.substr(0,e)),r=new Ul;do r.a+="[";while((e=a3(t,91,++e))!=-1);On(i,ev)?r.a+="Z":On(i,y8)?r.a+="B":On(i,VS)?r.a+="C":On(i,j8)?r.a+="D":On(i,E8)?r.a+="F":On(i,M8)?r.a+="I":On(i,C8)?r.a+="J":On(i,T8)?r.a+="S":(r.a+="L",r.a+=""+i,r.a+=";");try{return null}catch(c){if(c=_t(c),!L(c,63))throw C(c)}}else if(oh(t,yu(46))==-1){if(On(t,ev))return ao;if(On(t,y8))return qu;if(On(t,VS))return ds;if(On(t,j8))return Ri;if(On(t,E8))return ig;if(On(t,M8))return Oe;if(On(t,C8))return $a;if(On(t,T8))return U2}return null}function XDe(n,e){var t,i,r,c,s,f,h,l,a,d,g,p,v,k,j,A,P,O,N,H,W,cn;for(n.e=e,f=XCe(e),W=new nn,i=new M(f);i.a=0&&k=l.c.c.length?a=_J((ee(),ti),Ni):a=_J((ee(),Ni),Ni),a*=2,c=t.a.g,t.a.g=y.Math.max(c,c+(a-c)),s=t.b.g,t.b.g=y.Math.max(s,s+(a-s)),r=e}}function QDe(n){var e,t,i,r;for(Zt(pt(new Pn(null,new Nn(n.a.b,16)),new Npn),new xpn),Lje(n),Zt(pt(new Pn(null,new Nn(n.a.b,16)),new Fpn),new $pn),n.c==(Tl(),xv)&&(Zt(pt(hc(new Pn(null,new Nn(new Ha(n.f),1)),new Rpn),new Bpn),new hkn(n)),Zt(pt(Xr(hc(hc(new Pn(null,new Nn(n.d.b,16)),new Kpn),new _pn),new Hpn),new qpn),new akn(n))),r=new V(Bt,Bt),e=new V(mi,mi),i=new M(n.a.b);i.a0&&(e.a+=dr),VA(u(be(f),167),e);for(e.a+=wB,h=new vp((!i.c&&(i.c=new Kn(ve,i,5,8)),i.c));h.e!=h.i.gc();)h.e>0&&(e.a+=dr),VA(u(be(h),167),e);e.a+=")"}}function YDe(n,e,t){var i,r,c,s,f,h,l,a;for(h=new oe((!n.a&&(n.a=new G(ft,n,10,11)),n.a));h.e!=h.i.gc();)for(f=u(be(h),27),r=new he(de(Pl(f).a.Kc(),new zn));Te(r);){if(i=u(pe(r),74),!i.b&&(i.b=new Kn(ve,i,4,7)),!(i.b.i<=1&&(!i.c&&(i.c=new Kn(ve,i,5,8)),i.c.i<=1)))throw C(new sp("Graph must not contain hyperedges."));if(!$5(i)&&f!=Qr(u(D((!i.c&&(i.c=new Kn(ve,i,5,8)),i.c),0),84)))for(l=new ISn,Jr(l,i),U(l,(Q1(),mv),i),Khe(l,u(zr(Er(t.f,f)),153)),qhe(l,u(se(t,Qr(u(D((!i.c&&(i.c=new Kn(ve,i,5,8)),i.c),0),84))),153)),en(e.c,l),s=new oe((!i.n&&(i.n=new G(xr,i,1,7)),i.n));s.e!=s.i.gc();)c=u(be(s),135),a=new ODn(l,c.a),Jr(a,c),U(a,mv,c),a.e.a=y.Math.max(c.g,1),a.e.b=y.Math.max(c.f,1),utn(a),en(e.d,a)}}function ZDe(n,e,t){var i,r,c,s,f,h,l,a,d,g;switch(t.Ug("Node promotion heuristic",1),n.i=e,n.r=u(m(e,(fn(),ja)),243),n.r!=(ys(),gb)&&n.r!=Hw?TNe(n):YSe(n),a=u(m(n.i,khn),17).a,c=new C2n,n.r.g){case 2:case 1:I4(n,c);break;case 3:for(n.r=LP,I4(n,c),h=0,f=new M(n.b);f.an.k&&(n.r=Pj,I4(n,c));break;case 4:for(n.r=LP,I4(n,c),l=0,r=new M(n.c);r.an.n&&(n.r=Oj,I4(n,c));break;case 6:g=Mi(y.Math.ceil(n.g.length*a/100)),I4(n,new Y7n(g));break;case 5:d=Mi(y.Math.ceil(n.e*a/100)),I4(n,new Z7n(d));break;case 8:lXn(n,!0);break;case 9:lXn(n,!1);break;default:I4(n,c)}n.r!=gb&&n.r!=Hw?jSe(n,e):HIe(n,e),t.Vg()}function nNe(n){var e,t,i,r,c,s,f,h,l,a,d,g,p,v,k,j,A,P,O;for(d=n.b,a=new Gi(d,0),$b(a,new _c(n)),P=!1,s=1;a.b0&&(g.d+=a.n.d,g.d+=a.d),g.a>0&&(g.a+=a.n.a,g.a+=a.d),g.b>0&&(g.b+=a.n.b,g.b+=a.d),g.c>0&&(g.c+=a.n.c,g.c+=a.d),g}function Izn(n,e,t){var i,r,c,s,f,h,l,a,d,g,p,v;for(g=t.d,d=t.c,c=new V(t.f.a+t.d.b+t.d.c,t.f.b+t.d.d+t.d.a),s=c.b,l=new M(n.a);l.a0&&(n.c[e.c.p][e.p].d+=uo(n.i,24)*Ly*.07000000029802322-.03500000014901161,n.c[e.c.p][e.p].a=n.c[e.c.p][e.p].d/n.c[e.c.p][e.p].b)}}function iNe(n){var e,t,i,r,c,s,f,h,l,a,d,g,p,v,k,j;for(v=new M(n);v.ai.d,i.d=y.Math.max(i.d,e),f&&t&&(i.d=y.Math.max(i.d,i.a),i.a=i.d+r);break;case 3:t=e>i.a,i.a=y.Math.max(i.a,e),f&&t&&(i.a=y.Math.max(i.a,i.d),i.d=i.a+r);break;case 2:t=e>i.c,i.c=y.Math.max(i.c,e),f&&t&&(i.c=y.Math.max(i.b,i.c),i.b=i.c+r);break;case 4:t=e>i.b,i.b=y.Math.max(i.b,e),f&&t&&(i.b=y.Math.max(i.b,i.c),i.c=i.b+r)}}}function Ozn(n,e){var t,i,r,c,s,f,h,l,a;return l="",e.length==0?n.ne(Ftn,vR,-1,-1):(a=ow(e),On(a.substr(0,3),"at ")&&(a=(Zn(3,a.length+1),a.substr(3))),a=a.replace(/\[.*?\]/g,""),s=a.indexOf("("),s==-1?(s=a.indexOf("@"),s==-1?(l=a,a=""):(l=ow((Zn(s+1,a.length+1),a.substr(s+1))),a=ow((Ui(0,s,a.length),a.substr(0,s))))):(t=a.indexOf(")",s),l=(Ui(s+1,t,a.length),a.substr(s+1,t-(s+1))),a=ow((Ui(0,s,a.length),a.substr(0,s)))),s=oh(a,yu(46)),s!=-1&&(a=(Zn(s+1,a.length+1),a.substr(s+1))),(a.length==0||On(a,"Anonymous function"))&&(a=vR),f=_M(l,yu(58)),r=qW(l,yu(58),f-1),h=-1,i=-1,c=Ftn,f!=-1&&r!=-1&&(c=(Ui(0,r,l.length),l.substr(0,r)),h=WAn((Ui(r+1,f,l.length),l.substr(r+1,f-(r+1)))),i=WAn((Zn(f+1,l.length+1),l.substr(f+1)))),n.ne(c,a,h,i))}function uNe(n){var e,t,i,r,c,s,f,h,l,a,d;for(l=new M(n);l.a0||a.j==te&&a.e.c.length-a.g.c.length<0)){e=!1;break}for(r=new M(a.g);r.a=l&&H>=j&&(g+=v.n.b+k.n.b+k.a.b-N,++f));if(t)for(s=new M(P.e);s.a=l&&H>=j&&(g+=v.n.b+k.n.b+k.a.b-N,++f))}f>0&&(W+=g/f,++p)}p>0?(e.a=r*W/p,e.g=p):(e.a=0,e.g=0)}function sNe(n){var e,t,i,r,c,s,f,h,l,a,d,g,p,v,k,j,A,P,O,N,H,W,cn;for(c=n.f.b,g=c.a,a=c.b,v=n.e.g,p=n.e.f,pg(n.e,c.a,c.b),W=g/v,cn=a/p,l=new oe(TC(n.e));l.e!=l.i.gc();)h=u(be(l),135),su(h,h.i*W),fu(h,h.j*cn);for(P=new oe(PN(n.e));P.e!=P.i.gc();)A=u(be(P),123),N=A.i,H=A.j,N>0&&su(A,N*W),H>0&&fu(A,H*cn);for(h5(n.b,new Own),e=new nn,f=new od(new qa(n.c).a);f.b;)s=L0(f),i=u(s.ld(),74),t=u(s.md(),407).a,r=Gg(i,!1,!1),d=M_n(Gh(i),ey(r),t),wy(d,r),O=$_n(i),O&&Vr(e,O,0)==-1&&(Xn(e.c,O),aOn(O,(we(d.b!=0),u(d.a.a.c,8)),t));for(j=new od(new qa(n.d).a);j.b;)k=L0(j),i=u(k.ld(),74),t=u(k.md(),407).a,r=Gg(i,!1,!1),d=M_n(ra(i),Lk(ey(r)),t),d=Lk(d),wy(d,r),O=R_n(i),O&&Vr(e,O,0)==-1&&(Xn(e.c,O),aOn(O,(we(d.b!=0),u(d.c.b.c,8)),t))}function Lzn(n,e,t,i){var r,c,s,f,h;return f=new ktn(e),ZAe(f,i),r=!0,n&&n.pf((et(),Kd))&&(c=u(n.of((et(),Kd)),88),r=c==(di(),nh)||c==Gr||c==Zr),OGn(f,!1),ou(f.e.Rf(),new JW(f,!1,r)),qN(f,f.f,(kf(),kc),(rn(),ne)),qN(f,f.f,yc,ye),qN(f,f.g,kc,te),qN(f,f.g,yc,ue),uKn(f,ne),uKn(f,ye),fOn(f,ue),fOn(f,te),Fb(),s=f.A.Hc((ko(),Vw))&&f.B.Hc((oo(),sE))?MBn(f):null,s&&s1e(f.a,s),cNe(f),uye(f),oye(f),LDe(f),QPe(f),Dye(f),LF(f,ne),LF(f,ye),$Ie(f),CLe(f),t&&(_9e(f),Nye(f),LF(f,ue),LF(f,te),h=f.B.Hc((oo(),O9)),EHn(f,h,ne),EHn(f,h,ye),MHn(f,h,ue),MHn(f,h,te),Zt(new Pn(null,new Nn(new hl(f.i),0)),new nwn),Zt(pt(new Pn(null,WV(f.r).a.oc()),new ewn),new twn),Wje(f),f.e.Pf(f.o),Zt(new Pn(null,WV(f.r).a.oc()),new iwn)),f.o}function fNe(n){var e,t,i,r,c,s,f,h,l,a,d,g,p,v,k;for(l=Bt,i=new M(n.a.b);i.a1)for(p=new htn(v,O,i),Ji(O,new HCn(n,p)),Xn(s.c,p),d=O.a.ec().Kc();d.Ob();)a=u(d.Pb(),42),mu(c,a.b);if(f.a.gc()>1)for(p=new htn(v,f,i),Ji(f,new qCn(n,p)),Xn(s.c,p),d=f.a.ec().Kc();d.Ob();)a=u(d.Pb(),42),mu(c,a.b)}}function dNe(n,e,t){var i,r,c,s,f,h,l,a,d,g,p,v,k,j,A;if(k=n.n,j=n.o,g=n.d,d=x(K(tw(n,(fn(),qH)))),e){for(a=d*(e.gc()-1),p=0,h=e.Kc();h.Ob();)s=u(h.Pb(),10),a+=s.o.a,p=y.Math.max(p,s.o.b);for(A=k.a-(a-j.a)/2,c=k.b-g.d+p,i=j.a/(e.gc()+1),r=i,f=e.Kc();f.Ob();)s=u(f.Pb(),10),s.n.a=A,s.n.b=c-s.o.b,A+=s.o.a+d,l=_qn(s),l.n.a=s.o.a/2-l.a.a,l.n.b=s.o.b,v=u(m(s,(J(),uP)),12),v.e.c.length+v.g.c.length==1&&(v.n.a=r-v.a.a,v.n.b=0,fc(v,n)),r+=i}if(t){for(a=d*(t.gc()-1),p=0,h=t.Kc();h.Ob();)s=u(h.Pb(),10),a+=s.o.a,p=y.Math.max(p,s.o.b);for(A=k.a-(a-j.a)/2,c=k.b+j.b+g.a-p,i=j.a/(t.gc()+1),r=i,f=t.Kc();f.Ob();)s=u(f.Pb(),10),s.n.a=A,s.n.b=c,A+=s.o.a+d,l=_qn(s),l.n.a=s.o.a/2-l.a.a,l.n.b=0,v=u(m(s,(J(),uP)),12),v.e.c.length+v.g.c.length==1&&(v.n.a=r-v.a.a,v.n.b=j.b,fc(v,n)),r+=i}}function bNe(n,e){var t,i,r,c,s,f;if(u(m(e,(J(),Jc)),21).Hc((Cr(),fs))){for(f=new M(e.a);f.a=0&&s0&&(u(Lr(n.b,e),127).a.b=t)}function mNe(n,e,t,i){var r,c,s,f,h,l,a,d,g,p,v,k;if(g=x(K(m(n,(fn(),Mm)))),p=x(K(m(n,Cm))),d=x(K(m(n,_w))),f=n.o,c=u(an(n.j,0),12),s=c.n,k=FMe(c,d),!!k){if(e.Hc((Ju(),Kl)))switch(u(m(n,(J(),jc)),64).g){case 1:k.c=(f.a-k.b)/2-s.a,k.d=p;break;case 3:k.c=(f.a-k.b)/2-s.a,k.d=-p-k.a;break;case 2:t&&c.e.c.length==0&&c.g.c.length==0?(a=i?k.a:u(an(c.f,0),72).o.b,k.d=(f.b-a)/2-s.b):k.d=f.b+p-s.b,k.c=-g-k.b;break;case 4:t&&c.e.c.length==0&&c.g.c.length==0?(a=i?k.a:u(an(c.f,0),72).o.b,k.d=(f.b-a)/2-s.b):k.d=f.b+p-s.b,k.c=g}else if(e.Hc(Pa))switch(u(m(n,(J(),jc)),64).g){case 1:case 3:k.c=s.a+g;break;case 2:case 4:t&&!c.c?(a=i?k.a:u(an(c.f,0),72).o.b,k.d=(f.b-a)/2-s.b):k.d=s.b+p}for(r=k.d,l=new M(c.f);l.a=e.length)return{done:!0};var r=e[i++];return{value:[r,t.get(r)],done:!1}}}},gIe()||(n.prototype.createObject=function(){return{}},n.prototype.get=function(e){return this.obj[":"+e]},n.prototype.set=function(e,t){this.obj[":"+e]=t},n.prototype[GR]=function(e){delete this.obj[":"+e]},n.prototype.keys=function(){var e=[];for(var t in this.obj)t.charCodeAt(0)==58&&e.push(t.substring(1));return e}),n}function St(){St=$,f9=new mt(ain),new mt(din),new qt("DEPTH",Z(0)),pq=new qt("FAN",Z(0)),Dln=new qt(iVn,Z(0)),Ca=new qt("ROOT",(Wn(),!1)),kq=new qt("LEFTNEIGHBOR",null),rce=new qt("RIGHTNEIGHBOR",null),BP=new qt("LEFTSIBLING",null),yq=new qt("RIGHTSIBLING",null),gq=new qt("DUMMY",!1),new qt("LEVEL",Z(0)),Fln=new qt("REMOVABLE_EDGES",new xt),$j=new qt("XCOOR",Z(0)),Rj=new qt("YCOOR",Z(0)),KP=new qt("LEVELHEIGHT",0),Af=new qt("LEVELMIN",0),nf=new qt("LEVELMAX",0),vq=new qt("GRAPH_XMIN",0),mq=new qt("GRAPH_YMIN",0),Nln=new qt("GRAPH_XMAX",0),xln=new qt("GRAPH_YMAX",0),Lln=new qt("COMPACT_LEVEL_ASCENSION",!1),wq=new qt("COMPACT_CONSTRAINTS",new nn),s9=new qt("ID",""),h9=new qt("POSITION",Z(0)),C1=new qt("PRELIM",0),Pm=new qt("MODIFIER",0),Im=new mt(wWn),Fj=new mt(gWn)}function ENe(n){ntn();var e,t,i,r,c,s,f,h,l,a,d,g,p,v,k,j;if(n==null)return null;if(d=n.length*8,d==0)return"";for(f=d%24,p=d/24|0,g=f!=0?p+1:p,c=null,c=_(ds,kh,28,g*4,15,1),l=0,a=0,e=0,t=0,i=0,s=0,r=0,h=0;h>24,l=(e&3)<<24>>24,v=(e&-128)==0?e>>2<<24>>24:(e>>2^192)<<24>>24,k=(t&-128)==0?t>>4<<24>>24:(t>>4^240)<<24>>24,j=(i&-128)==0?i>>6<<24>>24:(i>>6^252)<<24>>24,c[s++]=N1[v],c[s++]=N1[k|l<<4],c[s++]=N1[a<<2|j],c[s++]=N1[i&63];return f==8?(e=n[r],l=(e&3)<<24>>24,v=(e&-128)==0?e>>2<<24>>24:(e>>2^192)<<24>>24,c[s++]=N1[v],c[s++]=N1[l<<4],c[s++]=61,c[s++]=61):f==16&&(e=n[r],t=n[r+1],a=(t&15)<<24>>24,l=(e&3)<<24>>24,v=(e&-128)==0?e>>2<<24>>24:(e>>2^192)<<24>>24,k=(t&-128)==0?t>>4<<24>>24:(t>>4^240)<<24>>24,c[s++]=N1[v],c[s++]=N1[k|l<<4],c[s++]=N1[a<<2],c[s++]=61),ms(c,0,c.length)}function MNe(n,e){var t,i,r,c,s,f,h;if(n.e==0&&n.p>0&&(n.p=-(n.p-1)),n.p>tr&&KJ(e,n.p-ha),s=e.q.getDate(),Z7(e,1),n.k>=0&&ave(e,n.k),n.c>=0?Z7(e,n.c):n.k>=0?(h=new gY(e.q.getFullYear()-ha,e.q.getMonth(),35),i=35-h.q.getDate(),Z7(e,y.Math.min(i,s))):Z7(e,s),n.f<0&&(n.f=e.q.getHours()),n.b>0&&n.f<12&&(n.f+=12),ide(e,n.f==24&&n.g?0:n.f),n.j>=0&&W4e(e,n.j),n.n>=0&&ume(e,n.n),n.i>=0&&_Tn(e,or(sr(Qk(Tc(e.q.getTime()),g1),g1),n.i)),n.a&&(r=new nM,KJ(r,r.q.getFullYear()-ha-80),zL(Tc(e.q.getTime()),Tc(r.q.getTime()))&&KJ(e,r.q.getFullYear()-ha+100)),n.d>=0){if(n.c==-1)t=(7+n.d-e.q.getDay())%7,t>3&&(t-=7),f=e.q.getMonth(),Z7(e,e.q.getDate()+t),e.q.getMonth()!=f&&Z7(e,e.q.getDate()+(t>0?-7:7));else if(e.q.getDay()!=n.d)return!1}return n.o>tr&&(c=e.q.getTimezoneOffset(),_Tn(e,or(Tc(e.q.getTime()),(n.o-c)*60*g1))),!0}function $zn(n,e){var t,i,r,c,s,f,h,l,a,d,g,p,v,k,j,A,P,O,N;if(r=m(e,(J(),yt)),!!L(r,207)){for(v=u(r,27),k=e.e,g=new lr(e.c),c=e.d,g.a+=c.b,g.b+=c.d,N=u(X(v,(fn(),MP)),181),Du(N,(oo(),aO))&&(p=u(X(v,Chn),107),Nhe(p,c.a),Hhe(p,c.d),xhe(p,c.b),_he(p,c.c)),t=new nn,a=new M(e.a);a.ai.c.length-1;)en(i,new Ei(n2,Grn));t=u(m(r,Lh),17).a,dl(u(m(n,vb),88))?(r.e.ax(K(($n(t,i.c.length),u(i.c[t],42)).b))&&hL(($n(t,i.c.length),u(i.c[t],42)),r.e.a+r.f.a)):(r.e.bx(K(($n(t,i.c.length),u(i.c[t],42)).b))&&hL(($n(t,i.c.length),u(i.c[t],42)),r.e.b+r.f.b))}for(c=Ce(n.b,0);c.b!=c.d.c;)r=u(Ee(c),40),t=u(m(r,(pc(),Lh)),17).a,U(r,(St(),Af),K(($n(t,i.c.length),u(i.c[t],42)).a)),U(r,nf,K(($n(t,i.c.length),u(i.c[t],42)).b));e.Vg()}function TNe(n){var e,t,i,r,c,s,f,h,l,a,d,g,p,v,k;for(n.o=x(K(m(n.i,(fn(),wb)))),n.f=x(K(m(n.i,$d))),n.j=n.i.b.c.length,f=n.j-1,g=0,n.k=0,n.n=0,n.b=xf(_(Yi,Q,17,n.j,0,1)),n.c=xf(_(gi,Q,345,n.j,7,1)),s=new M(n.i.b);s.a0&&en(n.q,a),en(n.p,a);e-=i,p=h+e,l+=e*n.f,Vo(n.b,f,Z(p)),Vo(n.c,f,l),n.k=y.Math.max(n.k,p),n.n=y.Math.max(n.n,l),n.e+=e,e+=k}}function rn(){rn=$;var n;bc=new E7(i8,0),ne=new E7(cS,1),ue=new E7(nB,2),ye=new E7(eB,3),te=new E7(tB,4),th=(Fn(),new e3((n=u(af(vr),9),new Uo(n,u(Ks(n,n.length),9),0)))),uf=u1(Lt(ne,S(T(vr,1),Lc,64,0,[]))),ls=u1(Lt(ue,S(T(vr,1),Lc,64,0,[]))),Ro=u1(Lt(ye,S(T(vr,1),Lc,64,0,[]))),Ps=u1(Lt(te,S(T(vr,1),Lc,64,0,[]))),Mu=u1(Lt(ne,S(T(vr,1),Lc,64,0,[ye]))),wu=u1(Lt(ue,S(T(vr,1),Lc,64,0,[te]))),of=u1(Lt(ne,S(T(vr,1),Lc,64,0,[te]))),Zu=u1(Lt(ne,S(T(vr,1),Lc,64,0,[ue]))),Bo=u1(Lt(ye,S(T(vr,1),Lc,64,0,[te]))),as=u1(Lt(ue,S(T(vr,1),Lc,64,0,[ye]))),no=u1(Lt(ne,S(T(vr,1),Lc,64,0,[ue,te]))),Eu=u1(Lt(ue,S(T(vr,1),Lc,64,0,[ye,te]))),Cu=u1(Lt(ne,S(T(vr,1),Lc,64,0,[ye,te]))),Hu=u1(Lt(ne,S(T(vr,1),Lc,64,0,[ue,ye]))),Yc=u1(Lt(ne,S(T(vr,1),Lc,64,0,[ue,ye,te])))}function ANe(n,e){var t,i,r,c,s,f,h,l,a,d,g,p,v,k,j,A,P,O,N,H,W,cn;for(e.Ug(FWn,1),k=new nn,W=new nn,l=new M(n.b);l.a0&&(O-=p),ltn(s,O),a=0,g=new M(s.a);g.a0),f.a.Xb(f.c=--f.b)),h=.4*i*a,!c&&f.b0&&(h=(Zn(0,e.length),e.charCodeAt(0)),h!=64)){if(h==37&&(d=e.lastIndexOf("%"),l=!1,d!=0&&(d==g-1||(l=(Zn(d+1,e.length),e.charCodeAt(d+1)==46))))){if(s=(Ui(1,d,e.length),e.substr(1,d-1)),O=On("%",s)?null:jtn(s),i=0,l)try{i=Oo((Zn(d+2,e.length+1),e.substr(d+2)),tr,at)}catch(N){throw N=_t(N),L(N,130)?(f=N,C(new cT(f))):C(N)}for(j=VQ(n.Gh());j.Ob();)if(v=DT(j),L(v,519)&&(r=u(v,598),P=r.d,(O==null?P==null:On(O,P))&&i--==0))return r;return null}if(a=e.lastIndexOf("."),p=a==-1?e:(Ui(0,a,e.length),e.substr(0,a)),t=0,a!=-1)try{t=Oo((Zn(a+1,e.length+1),e.substr(a+1)),tr,at)}catch(N){if(N=_t(N),L(N,130))p=e;else throw C(N)}for(p=On("%",p)?null:jtn(p),k=VQ(n.Gh());k.Ob();)if(v=DT(k),L(v,197)&&(c=u(v,197),A=c.xe(),(p==null?A==null:On(p,A))&&t--==0))return c;return null}return Tzn(n,e)}function xNe(n){var e,t,i,r,c,s,f,h,l,a,d,g,p,v,k,j,A,P;for(a=new je,h=new E0,i=new M(n.a.a.b);i.ae.d.c){if(p=n.c[e.a.d],j=n.c[d.a.d],p==j)continue;Xs($s(Fs(Rs(xs(new bs,1),100),p),j))}}}}}function FNe(n,e){var t,i,r,c,s,f,h,l,a,d,g,p,v,k,j,A,P,O,N,H,W;if(g=u(u(kt(n.r,e),21),87),e==(rn(),ue)||e==te){Nzn(n,e);return}for(c=e==ne?(D0(),cj):(D0(),uj),N=e==ne?(ku(),Cf):(ku(),Qs),t=u(Lr(n.b,e),127),i=t.i,r=i.c+Ig(S(T(Ri,1),Nr,28,15,[t.n.b,n.C.b,n.k])),A=i.c+i.b-Ig(S(T(Ri,1),Nr,28,15,[t.n.c,n.C.c,n.k])),s=Fz(YW(c),n.t),P=e==ne?mi:Bt,d=g.Kc();d.Ob();)l=u(d.Pb(),117),!(!l.c||l.c.d.c.length<=0)&&(j=l.b.Mf(),k=l.e,p=l.c,v=p.i,v.b=(h=p.n,p.e.a+h.b+h.c),v.a=(f=p.n,p.e.b+f.d+f.a),V7(N,Ytn),p.f=N,vf(p,(Wu(),Js)),v.c=k.a-(v.b-j.a)/2,H=y.Math.min(r,k.a),W=y.Math.max(A,k.a+j.a),v.cW&&(v.c=W-v.b),en(s.d,new lN(v,qY(s,v))),P=e==ne?y.Math.max(P,k.b+l.b.Mf().b):y.Math.min(P,k.b));for(P+=e==ne?n.t:-n.t,O=sZ((s.e=P,s)),O>0&&(u(Lr(n.b,e),127).a.b=O),a=g.Kc();a.Ob();)l=u(a.Pb(),117),!(!l.c||l.c.d.c.length<=0)&&(v=l.c.i,v.c-=l.e.a,v.d-=l.e.b)}function $Ne(n){var e,t,i,r,c,s,f,h,l,a,d,g,p;for(e=new je,h=new oe(n);h.e!=h.i.gc();){for(f=u(be(h),27),t=new si,ct(P_,f,t),p=new Twn,r=u(ec(new Pn(null,new g0(new he(de(oy(f).a.Kc(),new zn)))),iPn(p,Xu(new Su,new Au,new Iu,S(T(Hr,1),z,108,0,[(Vu(),rc)])))),85),$Fn(t,u(r.xc((Wn(),!0)),16),new Awn),i=u(ec(pt(u(r.xc(!1),15).Lc(),new Swn),Xu(new Su,new Au,new Iu,S(T(Hr,1),z,108,0,[rc]))),15),s=i.Kc();s.Ob();)c=u(s.Pb(),74),g=$_n(c),g&&(l=u(zr(Er(e.f,g)),21),l||(l=uGn(g),tu(e.f,g,l)),zi(t,l));for(r=u(ec(new Pn(null,new g0(new he(de(Pl(f).a.Kc(),new zn)))),iPn(p,Xu(new Su,new Au,new Iu,S(T(Hr,1),z,108,0,[rc])))),85),$Fn(t,u(r.xc(!0),16),new Iwn),i=u(ec(pt(u(r.xc(!1),15).Lc(),new Pwn),Xu(new Su,new Au,new Iu,S(T(Hr,1),z,108,0,[rc]))),15),d=i.Kc();d.Ob();)a=u(d.Pb(),74),g=R_n(a),g&&(l=u(zr(Er(e.f,g)),21),l||(l=uGn(g),tu(e.f,g,l)),zi(t,l))}}function RNe(n,e){J$();var t,i,r,c,s,f,h,l,a,d,g,p,v,k;if(h=Pc(n,0)<0,h&&(n=i1(n)),Pc(n,0)==0)switch(e){case 0:return"0";case 1:return $4;case 2:return"0.00";case 3:return"0.000";case 4:return"0.0000";case 5:return"0.00000";case 6:return"0.000000";default:return p=new F1,e<0?p.a+="0E+":p.a+="0E",p.a+=e==tr?"2147483648":""+-e,p.a}a=18,d=_(ds,kh,28,a+1,15,1),t=a,k=n;do l=k,k=Qk(k,10),d[--t]=$e(or(48,vs(l,sr(k,10))))&bi;while(Pc(k,0)!=0);if(r=vs(vs(vs(a,t),e),1),e==0)return h&&(d[--t]=45),ms(d,t,a-t);if(e>0&&Pc(r,-6)>=0){if(Pc(r,0)>=0){for(c=t+$e(r),f=a-1;f>=c;f--)d[f+1]=d[f];return d[++c]=46,h&&(d[--t]=45),ms(d,t,a-t+1)}for(s=2;zL(s,or(i1(r),1));s++)d[--t]=48;return d[--t]=46,d[--t]=48,h&&(d[--t]=45),ms(d,t,a-t)}return v=t+1,i=a,g=new ug,h&&(g.a+="-"),i-v>=1?(z1(g,d[t]),g.a+=".",g.a+=ms(d,t+1,a-t-1)):g.a+=ms(d,t,a-t),g.a+="E",Pc(r,0)>0&&(g.a+="+"),g.a+=""+H6(r),g.a}function G0(n,e,t,i,r){var c,s,f,h,l,a,d,g,p,v,k,j,A,P,O,N,H,W;if(j=new V(n.g,n.f),k=Rnn(n),k.a=y.Math.max(k.a,e),k.b=y.Math.max(k.b,t),W=k.a/j.a,a=k.b/j.b,N=k.a-j.a,h=k.b-j.b,i)for(s=Rt(n)?u(X(Rt(n),(et(),Kd)),88):u(X(n,(et(),Kd)),88),f=F(X(n,(et(),j9)))===F((Ki(),Qc)),P=new oe((!n.c&&(n.c=new G(eo,n,9,9)),n.c));P.e!=P.i.gc();)switch(A=u(be(P),123),O=u(X(A,B2),64),O==(rn(),bc)&&(O=etn(A,s),Et(A,B2,O)),O.g){case 1:f||su(A,A.i*W);break;case 2:su(A,A.i+N),f||fu(A,A.j*a);break;case 3:f||su(A,A.i*W),fu(A,A.j+h);break;case 4:f||fu(A,A.j*a)}if(pg(n,k.a,k.b),r)for(g=new oe((!n.n&&(n.n=new G(xr,n,1,7)),n.n));g.e!=g.i.gc();)d=u(be(g),135),p=d.i+d.g/2,v=d.j+d.f/2,H=p/j.a,l=v/j.b,H+l>=1&&(H-l>0&&v>=0?(su(d,d.i+N),fu(d,d.j+h*l)):H-l<0&&p>=0&&(su(d,d.i+N*H),fu(d,d.j+h)));return Et(n,(et(),_d),(ko(),c=u(af(P9),9),new Uo(c,u(Ks(c,c.length),9),0))),new V(W,a)}function _zn(n){i0(n,new wd(WE(n0(Qd(Zd(Yd(new Ba,cs),"ELK Radial"),'A radial layout provider which is based on the algorithm of Peter Eades published in "Drawing free trees.", published by International Institute for Advanced Study of Social Information Science, Fujitsu Limited in 1991. The radial layouter takes a tree and places the nodes in radial order around the root. The nodes of the same tree level are placed on the same radius.'),new F4n),cs))),Y(n,cs,PS,un(nue)),Y(n,cs,mw,un(eue)),Y(n,cs,e2,un(Jce)),Y(n,cs,lv,un(Qce)),Y(n,cs,hv,un(Yce)),Y(n,cs,G4,un(Vce)),Y(n,cs,o8,un(l1n)),Y(n,cs,U4,un(Zce)),Y(n,cs,cK,un(Nq)),Y(n,cs,rK,un(xq)),Y(n,cs,$S,un(d1n)),Y(n,cs,uK,un(Fq)),Y(n,cs,oK,un(b1n)),Y(n,cs,fcn,un(w1n)),Y(n,cs,scn,un(a1n)),Y(n,cs,rcn,un(UP)),Y(n,cs,ccn,un(zP)),Y(n,cs,ucn,un(Bj)),Y(n,cs,ocn,un(g1n)),Y(n,cs,icn,un(h1n))}function JA(n){var e,t,i,r,c,s,f,h,l,a,d;if(n==null)throw C(new uh(ju));if(l=n,c=n.length,h=!1,c>0&&(e=(Zn(0,n.length),n.charCodeAt(0)),(e==45||e==43)&&(n=(Zn(1,n.length+1),n.substr(1)),--c,h=e==45)),c==0)throw C(new uh(X0+l+'"'));for(;n.length>0&&(Zn(0,n.length),n.charCodeAt(0)==48);)n=(Zn(1,n.length+1),n.substr(1)),--c;if(c>(vUn(),oYn)[10])throw C(new uh(X0+l+'"'));for(r=0;r0&&(d=-parseInt((Ui(0,i,n.length),n.substr(0,i)),10),n=(Zn(i,n.length+1),n.substr(i)),c-=i,t=!1);c>=s;){if(i=parseInt((Ui(0,s,n.length),n.substr(0,s)),10),n=(Zn(s,n.length+1),n.substr(s)),c-=s,t)t=!1;else{if(Pc(d,f)<0)throw C(new uh(X0+l+'"'));d=sr(d,a)}d=vs(d,i)}if(Pc(d,0)>0)throw C(new uh(X0+l+'"'));if(!h&&(d=i1(d),Pc(d,0)<0))throw C(new uh(X0+l+'"'));return d}function jtn(n){tR();var e,t,i,r,c,s,f,h;if(n==null)return null;if(r=oh(n,yu(37)),r<0)return n;for(h=new jo((Ui(0,r,n.length),n.substr(0,r))),e=_(qu,c2,28,4,15,1),f=0,i=0,s=n.length;rr+2&&Qx((Zn(r+1,n.length),n.charCodeAt(r+1)),Zdn,n0n)&&Qx((Zn(r+2,n.length),n.charCodeAt(r+2)),Zdn,n0n))if(t=cge((Zn(r+1,n.length),n.charCodeAt(r+1)),(Zn(r+2,n.length),n.charCodeAt(r+2))),r+=2,i>0?(t&192)==128?e[f++]=t<<24>>24:i=0:t>=128&&((t&224)==192?(e[f++]=t<<24>>24,i=2):(t&240)==224?(e[f++]=t<<24>>24,i=3):(t&248)==240&&(e[f++]=t<<24>>24,i=4)),i>0){if(f==i){switch(f){case 2:{z1(h,((e[0]&31)<<6|e[1]&63)&bi);break}case 3:{z1(h,((e[0]&15)<<12|(e[1]&63)<<6|e[2]&63)&bi);break}}f=0,i=0}}else{for(c=0;c=2){if((!n.a&&(n.a=new G(Ft,n,6,6)),n.a).i==0)t=(R1(),r=new TE,r),Se((!n.a&&(n.a=new G(Ft,n,6,6)),n.a),t);else if((!n.a&&(n.a=new G(Ft,n,6,6)),n.a).i>1)for(g=new vp((!n.a&&(n.a=new G(Ft,n,6,6)),n.a));g.e!=g.i.gc();)L5(g);wy(e,u(D((!n.a&&(n.a=new G(Ft,n,6,6)),n.a),0),166))}if(d)for(i=new oe((!n.a&&(n.a=new G(Ft,n,6,6)),n.a));i.e!=i.i.gc();)for(t=u(be(i),166),l=new oe((!t.a&&(t.a=new hi(Ko,t,5)),t.a));l.e!=l.i.gc();)h=u(be(l),377),f.a=y.Math.max(f.a,h.a),f.b=y.Math.max(f.b,h.b);for(s=new oe((!n.n&&(n.n=new G(xr,n,1,7)),n.n));s.e!=s.i.gc();)c=u(be(s),135),a=u(X(c,M9),8),a&&qo(c,a.a,a.b),d&&(f.a=y.Math.max(f.a,c.i+c.g),f.b=y.Math.max(f.b,c.j+c.f));return f}function qzn(n,e,t,i,r){var c,s,f;if(Gxn(n,e),s=e[0],c=nr(t.c,0),f=-1,mY(t))if(i>0){if(s+i>n.length)return!1;f=CA((Ui(0,s+i,n.length),n.substr(0,s+i)),e)}else f=CA(n,e);switch(c){case 71:return f=_g(n,s,S(T(dn,1),Q,2,6,[SXn,IXn]),e),r.e=f,!0;case 77:return nIe(n,e,r,f,s);case 76:return eIe(n,e,r,f,s);case 69:return zMe(n,e,s,r);case 99:return XMe(n,e,s,r);case 97:return f=_g(n,s,S(T(dn,1),Q,2,6,["AM","PM"]),e),r.b=f,!0;case 121:return tIe(n,e,s,f,t,r);case 100:return f<=0?!1:(r.c=f,!0);case 83:return f<0?!1:s7e(f,s,e[0],r);case 104:f==12&&(f=0);case 75:case 72:return f<0?!1:(r.f=f,r.g=!1,!0);case 107:return f<0?!1:(r.f=f,r.g=!0,!0);case 109:return f<0?!1:(r.j=f,!0);case 115:return f<0?!1:(r.n=f,!0);case 90:if(sAn[h]&&(j=h),d=new M(n.a.b);d.a1;){if(r=XAe(e),d=c.g,v=u(X(e,d9),107),k=x(K(X(e,JP))),(!e.a&&(e.a=new G(ft,e,10,11)),e.a).i>1&&x(K(X(e,(Uh(),Gq))))!=Bt&&(c.c+(v.b+v.c))/(c.b+(v.d+v.a))1&&x(K(X(e,(Uh(),qq))))!=Bt&&(c.c+(v.b+v.c))/(c.b+(v.d+v.a))>k&&Et(r,(Uh(),Uw),y.Math.max(x(K(X(e,a9))),x(K(X(r,Uw)))-x(K(X(e,qq))))),p=new IX(i,a),h=fXn(p,r,g),l=h.g,l>=d&&l==l){for(s=0;s<(!r.a&&(r.a=new G(ft,r,10,11)),r.a).i;s++)FHn(n,u(D((!r.a&&(r.a=new G(ft,r,10,11)),r.a),s),27),u(D((!e.a&&(e.a=new G(ft,e,10,11)),e.a),s),27));gFn(e,p),Qpe(c,h.c),Jpe(c,h.b)}--f}Et(e,(Uh(),Om),c.b),Et(e,Iv,c.c),t.Vg()}function HNe(n,e){var t,i,r,c,s,f,h,l,a,d,g,p,v,k,j,A,P;for(e.Ug("Interactive node layering",1),t=new nn,g=new M(n.a);g.a=f){we(P.b>0),P.a.Xb(P.c=--P.b);break}else j.a>h&&(i?(vi(i.b,j.b),i.a=y.Math.max(i.a,j.a),vo(P)):(en(j.b,a),j.c=y.Math.min(j.c,h),j.a=y.Math.max(j.a,f),i=j));i||(i=new Rjn,i.c=h,i.a=f,$b(P,i),en(i.b,a))}for(s=n.b,l=0,A=new M(t);A.ap&&(c&&(hr(W,g),hr(An,Z(l.b-1))),Xe=t.b,Gt+=g+e,g=0,a=y.Math.max(a,t.b+t.c+fe)),su(f,Xe),fu(f,Gt),a=y.Math.max(a,Xe+fe+t.c),g=y.Math.max(g,d),Xe+=fe+e;if(a=y.Math.max(a,i),Hn=Gt+g+t.a,HnEh,Cn=y.Math.abs(g.b-v.b)>Eh,(!t&&An&&Cn||t&&(An||Cn))&&We(j.a,N)),zi(j.a,i),i.b==0?g=N:g=(we(i.b!=0),u(i.c.b.c,8)),S5e(p,d,k),w$n(r)==cn&&(Vi(cn.i)!=r.a&&(k=new _i,Nnn(k,Vi(cn.i),P)),U(j,OH,k)),hMe(p,j,P),a.a.zc(p,a);ur(j,H),Bi(j,cn)}for(l=a.a.ec().Kc();l.Ob();)h=u(l.Pb(),18),ur(h,null),Bi(h,null);e.Vg()}function UNe(n,e){var t,i,r,c,s,f,h,l,a,d,g;for(r=u(m(n,(pc(),vb)),88),a=r==(di(),Gr)||r==Zr?Zf:Zr,t=u(ec(pt(new Pn(null,new Nn(n.b,16)),new _3n),Xu(new Su,new Au,new Iu,S(T(Hr,1),z,108,0,[(Vu(),rc)]))),15),h=u(ec(Xr(t.Oc(),new cyn(e)),Xu(new Su,new Au,new Iu,S(T(Hr,1),z,108,0,[rc]))),15),h.Gc(u(ec(Xr(t.Oc(),new uyn(e)),Xu(new Su,new Au,new Iu,S(T(Hr,1),z,108,0,[rc]))),16)),h.jd(new oyn(a)),g=new Xl(new syn(r)),i=new je,f=h.Kc();f.Ob();)s=u(f.Pb(),240),l=u(s.a,40),ln(hn(s.c))?(g.a.zc(l,(Wn(),ga))==null,new Vv(g.a.Zc(l,!1)).a.gc()>0&&ct(i,l,u(new Vv(g.a.Zc(l,!1)).a.Vc(),40)),new Vv(g.a.ad(l,!0)).a.gc()>1&&ct(i,mBn(g,l),l)):(new Vv(g.a.Zc(l,!1)).a.gc()>0&&(c=u(new Vv(g.a.Zc(l,!1)).a.Vc(),40),F(c)===F(zr(Er(i.f,l)))&&u(m(l,(St(),wq)),15).Fc(c)),new Vv(g.a.ad(l,!0)).a.gc()>1&&(d=mBn(g,l),F(zr(Er(i.f,d)))===F(l)&&u(m(d,(St(),wq)),15).Fc(l)),g.a.Bc(l)!=null)}function Gzn(n){var e,t,i,r,c,s,f,h,l,a,d,g,p,v,k,j,A,P,O,N;if(n.gc()==1)return u(n.Xb(0),235);if(n.gc()<=0)return new JC;for(r=n.Kc();r.Ob();){for(t=u(r.Pb(),235),v=0,a=at,d=at,h=tr,l=tr,p=new M(t.e);p.af&&(O=0,N+=s+A,s=0),pPe(k,t,O,N),e=y.Math.max(e,O+j.a),s=y.Math.max(s,j.b),O+=j.a+A;return k}function zNe(n){ntn();var e,t,i,r,c,s,f,h,l,a,d,g,p,v,k,j;if(n==null||(c=oT(n),v=k9e(c),v%4!=0))return null;if(k=v/4|0,k==0)return _(qu,c2,28,0,15,1);for(d=null,e=0,t=0,i=0,r=0,s=0,f=0,h=0,l=0,p=0,g=0,a=0,d=_(qu,c2,28,k*3,15,1);p>4)<<24>>24,d[g++]=((t&15)<<4|i>>2&15)<<24>>24,d[g++]=(i<<6|r)<<24>>24}return!r7(s=c[a++])||!r7(f=c[a++])?null:(e=rh[s],t=rh[f],h=c[a++],l=c[a++],rh[h]==-1||rh[l]==-1?h==61&&l==61?(t&15)!=0?null:(j=_(qu,c2,28,p*3+1,15,1),Rc(d,0,j,0,p*3),j[g]=(e<<2|t>>4)<<24>>24,j):h!=61&&l==61?(i=rh[h],(i&3)!=0?null:(j=_(qu,c2,28,p*3+2,15,1),Rc(d,0,j,0,p*3),j[g++]=(e<<2|t>>4)<<24>>24,j[g]=((t&15)<<4|i>>2&15)<<24>>24,j)):null:(i=rh[h],r=rh[l],d[g++]=(e<<2|t>>4)<<24>>24,d[g++]=((t&15)<<4|i>>2&15)<<24>>24,d[g++]=(i<<6|r)<<24>>24,d))}function XNe(n,e){var t,i,r,c,s,f,h,l,a,d,g,p,v,k,j,A,P,O,N,H;for(e.Ug(FWn,1),v=u(m(n,(fn(),Rl)),223),r=new M(n.b);r.a=2){for(k=!0,g=new M(c.j),t=u(E(g),12),p=null;g.a0)if(i=d.gc(),l=Mi(y.Math.floor((i+1)/2))-1,r=Mi(y.Math.ceil((i+1)/2))-1,e.o==Qf)for(a=r;a>=l;a--)e.a[N.p]==N&&(k=u(d.Xb(a),42),v=u(k.a,10),!df(t,k.b)&&p>n.b.e[v.p]&&(e.a[v.p]=N,e.g[N.p]=e.g[v.p],e.a[N.p]=e.g[N.p],e.f[e.g[N.p].p]=(Wn(),!!(ln(e.f[e.g[N.p].p])&N.k==(ee(),Ni))),p=n.b.e[v.p]));else for(a=l;a<=r;a++)e.a[N.p]==N&&(A=u(d.Xb(a),42),j=u(A.a,10),!df(t,A.b)&&p0&&(r=u(an(j.c.a,W-1),10),s=n.i[r.p],An=y.Math.ceil(mg(n.n,r,j)),c=H.a.e-j.d.d-(s.a.e+r.o.b+r.d.a)-An),l=Bt,W0&&cn.a.e.e-cn.a.a-(cn.b.e.e-cn.b.a)<0,v=O.a.e.e-O.a.a-(O.b.e.e-O.b.a)<0&&cn.a.e.e-cn.a.a-(cn.b.e.e-cn.b.a)>0,p=O.a.e.e+O.b.acn.b.e.e+cn.a.a,N=0,!k&&!v&&(g?c+d>0?N=d:l-i>0&&(N=i):p&&(c+f>0?N=f:l-P>0&&(N=P))),H.a.e+=N,H.b&&(H.d.e+=N),!1))}function zzn(n,e,t){var i,r,c,s,f,h,l,a,d,g;if(i=new zo(e.Lf().a,e.Lf().b,e.Mf().a,e.Mf().b),r=new gp,n.c)for(s=new M(e.Rf());s.al&&(i.a+=kAn(_(ds,kh,28,-l,15,1))),i.a+="Is",oh(h,yu(32))>=0)for(r=0;r=i.o.b/2}else P=!d;P?(A=u(m(i,(J(),Av)),15),A?g?c=A:(r=u(m(i,jv),15),r?A.gc()<=r.gc()?c=A:c=r:(c=new nn,U(i,jv,c))):(c=new nn,U(i,Av,c))):(r=u(m(i,(J(),jv)),15),r?d?c=r:(A=u(m(i,Av),15),A?r.gc()<=A.gc()?c=r:c=A:(c=new nn,U(i,Av,c))):(c=new nn,U(i,jv,c))),c.Fc(n),U(n,(J(),uP),t),e.d==t?(Bi(e,null),t.e.c.length+t.g.c.length==0&&fc(t,null),l8e(t)):(ur(e,null),t.e.c.length+t.g.c.length==0&&fc(t,null)),Eo(e.a)}function QNe(n,e,t){var i,r,c,s,f,h,l,a,d,g,p,v,k,j,A,P,O,N,H,W,cn,An,Cn,Un,Hn,fe,Xe,Gt;for(t.Ug("MinWidth layering",1),p=e.b,cn=e.a,Gt=u(m(e,(fn(),vhn)),17).a,f=u(m(e,mhn),17).a,n.b=x(K(m(e,Zs))),n.d=Bt,N=new M(cn);N.a0?(l=0,j&&(l+=f),l+=(Cn-1)*s,O&&(l+=f),An&&O&&(l=y.Math.max(l,pSe(O,s,P,cn))),l=n.a&&(i=DOe(n,P),a=y.Math.max(a,i.b),N=y.Math.max(N,i.d),en(f,new Ei(P,i)));for(An=new nn,l=0;l0),j.a.Xb(j.c=--j.b),Cn=new _c(n.b),$b(j,Cn),we(j.b0){for(g=a<100?null:new $1(a),l=new tY(e),v=l.g,A=_(Oe,Ye,28,a,15,1),i=0,N=new A0(a),r=0;r=0;)if(p!=null?wt(p,v[h]):F(p)===F(v[h])){A.length<=i&&(j=A,A=_(Oe,Ye,28,2*A.length,15,1),Rc(j,0,A,0,i)),A[i++]=r,Se(N,v[h]);break n}if(p=p,F(p)===F(f))break}}if(l=N,v=N.g,a=i,i>A.length&&(j=A,A=_(Oe,Ye,28,i,15,1),Rc(j,0,A,0,i)),i>0){for(O=!0,c=0;c=0;)Wp(n,A[s]);if(i!=a){for(r=a;--r>=i;)Wp(l,r);j=A,A=_(Oe,Ye,28,i,15,1),Rc(j,0,A,0,i)}e=l}}}else for(e=bye(n,e),r=n.i;--r>=0;)e.Hc(n.g[r])&&(Wp(n,r),O=!0);if(O){if(A!=null){for(t=e.gc(),d=t==1?J6(n,4,e.Kc().Pb(),null,A[0],k):J6(n,6,e,A,A[0],k),g=t<100?null:new $1(t),r=e.Kc();r.Ob();)p=r.Pb(),g=UW(n,u(p,76),g);g?(g.nj(d),g.oj()):bt(n.e,d)}else{for(g=k0e(e.gc()),r=e.Kc();r.Ob();)p=r.Pb(),g=UW(n,u(p,76),g);g&&g.oj()}return!0}else return!1}function nxe(n,e){var t,i,r,c,s,f,h,l,a,d,g,p,v,k,j,A,P,O;for(t=new lKn(e),t.a||SPe(e),l=TIe(e),h=new E0,j=new dGn,k=new M(e.a);k.a0||t.o==Qf&&r=t}function txe(n,e,t){var i,r,c,s,f,h,l,a,d,g,p,v,k,j,A,P,O,N,H,W,cn,An,Cn,Un,Hn,fe;for(O=e,P=new E0,N=new E0,a=T0(O,Ucn),i=new kOn(n,t,P,N),jMe(i.a,i.b,i.c,i.d,a),h=(cn=P.i,cn||(P.i=new jg(P,P.c))),Cn=h.Kc();Cn.Ob();)for(An=u(Cn.Pb(),166),r=u(kt(P,An),21),k=r.Kc();k.Ob();)if(v=k.Pb(),H=u(Pg(n.d,v),166),H)f=(!An.e&&(An.e=new Kn(Ft,An,10,9)),An.e),Se(f,H);else throw s=pl(O,Ah),g=lJn+v+aJn+s,p=g+nm,C(new ch(p));for(l=(W=N.i,W||(N.i=new jg(N,N.c))),Hn=l.Kc();Hn.Ob();)for(Un=u(Hn.Pb(),166),c=u(kt(N,Un),21),A=c.Kc();A.Ob();)if(j=A.Pb(),H=u(Pg(n.d,j),166),H)d=(!Un.g&&(Un.g=new Kn(Ft,Un,9,10)),Un.g),Se(d,H);else throw s=pl(O,Ah),g=lJn+j+aJn+s,p=g+nm,C(new ch(p));!t.b&&(t.b=new Kn(ve,t,4,7)),t.b.i!=0&&(!t.c&&(t.c=new Kn(ve,t,5,8)),t.c.i!=0)&&(!t.b&&(t.b=new Kn(ve,t,4,7)),t.b.i<=1&&(!t.c&&(t.c=new Kn(ve,t,5,8)),t.c.i<=1))&&(!t.a&&(t.a=new G(Ft,t,6,6)),t.a).i==1&&(fe=u(D((!t.a&&(t.a=new G(Ft,t,6,6)),t.a),0),166),!KF(fe)&&!_F(fe)&&(jT(fe,u(D((!t.b&&(t.b=new Kn(ve,t,4,7)),t.b),0),84)),ET(fe,u(D((!t.c&&(t.c=new Kn(ve,t,5,8)),t.c),0),84))))}function ixe(n){var e,t,i,r,c,s,f,h,l,a,d,g,p,v,k,j,A,P,O,N,H,W,cn,An,Cn,Un;for(O=n.a,N=0,H=O.length;N0?(d=u(an(g.c.a,s-1),10),An=mg(n.b,g,d),j=g.n.b-g.d.d-(d.n.b+d.o.b+d.d.a+An)):j=g.n.b-g.d.d,l=y.Math.min(j,l),s1&&(s=y.Math.min(s,y.Math.abs(u(is(f.a,1),8).b-a.b)))));else for(k=new M(e.j);k.ar&&(c=g.a-r,s=at,i.c.length=0,r=g.a),g.a>=r&&(Xn(i.c,f),f.a.b>1&&(s=y.Math.min(s,y.Math.abs(u(is(f.a,f.a.b-2),8).b-g.b)))));if(i.c.length!=0&&c>e.o.a/2&&s>e.o.b/2){for(p=new $c,fc(p,e),Ci(p,(rn(),ne)),p.n.a=e.o.a/2,A=new $c,fc(A,e),Ci(A,ye),A.n.a=e.o.a/2,A.n.b=e.o.b,h=new M(i);h.a=l.b?ur(f,A):ur(f,p)):(l=u(Wwe(f.a),8),j=f.a.b==0?Nf(f.c):u(Bs(f.a),8),j.b>=l.b?Bi(f,A):Bi(f,p)),d=u(m(f,(fn(),qr)),75),d&&ew(d,l,!0);e.n.a=r-e.o.a/2}}function cxe(n,e,t){var i,r,c,s,f,h,l,a,d,g;for(f=Ce(n.b,0);f.b!=f.d.c;)if(s=u(Ee(f),40),!On(s.c,NS))for(l=PTe(s,n),e==(di(),Gr)||e==Zr?ui(l,new a4n):ui(l,new d4n),h=l.c.length,i=0;i=0?p=Gp(f):p=Kk(Gp(f)),n.qf(jm,p)),l=new _i,g=!1,n.pf(db)?(wW(l,u(n.of(db),8)),g=!0):wde(l,s.a/2,s.b/2),p.g){case 4:U(a,bu,(ts(),ya)),U(a,sP,(fd(),w2)),a.o.b=s.b,k<0&&(a.o.a=-k),Ci(d,(rn(),ue)),g||(l.a=s.a),l.a-=s.a;break;case 2:U(a,bu,(ts(),Nw)),U(a,sP,(fd(),wm)),a.o.b=s.b,k<0&&(a.o.a=-k),Ci(d,(rn(),te)),g||(l.a=0);break;case 1:U(a,Pd,(jl(),p2)),a.o.a=s.a,k<0&&(a.o.b=-k),Ci(d,(rn(),ye)),g||(l.b=s.b),l.b-=s.b;break;case 3:U(a,Pd,(jl(),yv)),a.o.a=s.a,k<0&&(a.o.b=-k),Ci(d,(rn(),ne)),g||(l.b=0)}if(wW(d.n,l),U(a,db,l),e==qd||e==ul||e==Qc){if(v=0,e==qd&&n.pf(j1))switch(p.g){case 1:case 2:v=u(n.of(j1),17).a;break;case 3:case 4:v=-u(n.of(j1),17).a}else switch(p.g){case 4:case 2:v=c.b,e==ul&&(v/=r.b);break;case 1:case 3:v=c.a,e==ul&&(v/=r.a)}U(a,sb,v)}return U(a,jc,p),a}function uxe(){Kz();function n(i){var r=this;this.dispatch=function(c){var s=c.data;switch(s.cmd){case"algorithms":var f=oZ((Fn(),new Wv(new hl(La.b))));i.postMessage({id:s.id,data:f});break;case"categories":var h=oZ((Fn(),new Wv(new hl(La.c))));i.postMessage({id:s.id,data:h});break;case"options":var l=oZ((Fn(),new Wv(new hl(La.d))));i.postMessage({id:s.id,data:l});break;case"register":fDe(s.algorithms),i.postMessage({id:s.id});break;case"layout":ROe(s.graph,s.layoutOptions||{},s.options||{}),i.postMessage({id:s.id,data:s.graph});break}},this.saveDispatch=function(c){try{r.dispatch(c)}catch(s){i.postMessage({id:c.data.id,error:s})}}}function e(i){var r=this;this.dispatcher=new n({postMessage:function(c){r.onmessage({data:c})}}),this.postMessage=function(c){setTimeout(function(){r.dispatcher.saveDispatch({data:c})},0)}}if(typeof document===WR&&typeof self!==WR){var t=new n(self);self.onmessage=t.saveDispatch}else typeof on!==WR&&on.exports&&(Object.defineProperty(Rn,"__esModule",{value:!0}),on.exports={default:e,Worker:e})}function Yzn(n,e,t){var i,r,c,s,f,h,l,a,d,g;for(a=new Il(t),Jr(a,e),U(a,(J(),yt),e),a.o.a=e.g,a.o.b=e.f,a.n.a=e.i,a.n.b=e.j,en(t.a,a),ct(n.a,e,a),((!e.a&&(e.a=new G(ft,e,10,11)),e.a).i!=0||ln(hn(X(e,(fn(),$w)))))&&U(a,bfn,(Wn(),!0)),l=u(m(t,Jc),21),d=u(m(a,(fn(),Yt)),101),d==(Ki(),Ia)?U(a,Yt,eh):d!=eh&&l.Fc((Cr(),vm)),g=0,i=u(m(t,Fo),88),h=new oe((!e.c&&(e.c=new G(eo,e,9,9)),e.c));h.e!=h.i.gc();)f=u(be(h),123),r=Rt(e),(F(X(r,tl))!==F((wh(),E1))||F(X(r,Ld))===F((h1(),bm))||F(X(r,Ld))===F((h1(),dm))||ln(hn(X(r,hb)))||F(X(r,xw))!==F((ad(),Iw))||F(X(r,ja))===F((ys(),gb))||F(X(r,ja))===F((ys(),Hw))||F(X(r,Nd))===F((w1(),Tm))||F(X(r,Nd))===F((w1(),Am)))&&!ln(hn(X(e,wP)))&&Et(f,Ct,Z(g++)),ln(hn(X(f,Fd)))||gNe(n,f,a,l,i,d);for(s=new oe((!e.n&&(e.n=new G(xr,e,1,7)),e.n));s.e!=s.i.gc();)c=u(be(s),135),!ln(hn(X(c,Fd)))&&c.a&&en(a.b,dF(c));return ln(hn(m(a,z8)))&&l.Fc((Cr(),iP)),ln(hn(m(a,mP)))&&(l.Fc((Cr(),rP)),l.Fc(K8),U(a,Yt,eh)),a}function fR(n,e,t,i,r,c,s){var f,h,l,a,d,g,p,v,k,j,A,P,O,N,H,W,cn,An,Cn,Un,Hn,fe,Xe,Gt;for(k=0,Un=0,l=new M(n.b);l.ak&&(c&&(hr(W,p),hr(An,Z(a.b-1)),en(n.d,v),f.c.length=0),Xe=t.b,Gt+=p+e,p=0,d=y.Math.max(d,t.b+t.c+fe)),Xn(f.c,h),iKn(h,Xe,Gt),d=y.Math.max(d,Xe+fe+t.c),p=y.Math.max(p,g),Xe+=fe+e,v=h;if(vi(n.a,f),en(n.d,u(an(f,f.c.length-1),163)),d=y.Math.max(d,i),Hn=Gt+p+t.a,Hnr.d.d+r.d.a?a.f.d=!0:(a.f.d=!0,a.f.a=!0))),i.b!=i.d.c&&(e=t);a&&(c=u(se(n.f,s.d.i),60),e.bc.d.d+c.d.a?a.f.d=!0:(a.f.d=!0,a.f.a=!0))}for(f=new he(de(Oi(p).a.Kc(),new zn));Te(f);)s=u(pe(f),18),s.a.b!=0&&(e=u(Bs(s.a),8),s.d.j==(rn(),ne)&&(j=new z5(e,new V(e.a,r.d.d),r,s),j.f.a=!0,j.a=s.d,Xn(k.c,j)),s.d.j==ye&&(j=new z5(e,new V(e.a,r.d.d+r.d.a),r,s),j.f.d=!0,j.a=s.d,Xn(k.c,j)))}return k}function axe(n,e,t){var i,r,c,s,f,h,l,a,d,g;for(h=new nn,d=e.length,s=vY(t),l=0;l=v&&(P>v&&(p.c.length=0,v=P),Xn(p.c,s));p.c.length!=0&&(g=u(an(p,fA(e,p.c.length)),131),Hn.a.Bc(g)!=null,g.s=k++,gen(g,Cn,W),p.c.length=0)}for(N=n.c.length+1,f=new M(n);f.aUn.s&&(vo(t),mu(Un.i,i),i.c>0&&(i.a=Un,en(Un.t,i),i.b=cn,en(cn.i,i)))}function Zzn(n,e,t,i,r){var c,s,f,h,l,a,d,g,p,v,k,j,A,P,O,N,H,W,cn,An,Cn,Un,Hn;for(k=new Zc(e.b),N=new Zc(e.b),g=new Zc(e.b),An=new Zc(e.b),j=new Zc(e.b),cn=Ce(e,0);cn.b!=cn.d.c;)for(H=u(Ee(cn),12),f=new M(H.g);f.a0,A=H.g.c.length>0,l&&A?Xn(g.c,H):l?Xn(k.c,H):A&&Xn(N.c,H);for(v=new M(k);v.aP.nh()-l.b&&(g=P.nh()-l.b),p>P.oh()-l.d&&(p=P.oh()-l.d),a0){for(O=Ce(n.f,0);O.b!=O.d.c;)P=u(Ee(O),10),P.p+=g-n.e;xnn(n),Eo(n.f),Pen(n,i,p)}else{for(We(n.f,p),p.p=i,n.e=y.Math.max(n.e,i),c=new he(de(Oi(p).a.Kc(),new zn));Te(c);)r=u(pe(c),18),!r.c.i.c&&r.c.i.k==(ee(),Nc)&&(We(n.f,r.c.i),r.c.i.p=i-1);n.c=i}else xnn(n),Eo(n.f),i=0,Te(new he(de(Oi(p).a.Kc(),new zn)))?(g=0,g=sKn(g,p),i=g+2,Pen(n,i,p)):(We(n.f,p),p.p=0,n.e=y.Math.max(n.e,0),n.b=u(an(n.d.b,0),30),n.c=0);for(n.f.b==0||xnn(n),n.d.a.c.length=0,A=new nn,l=new M(n.d.b);l.a=48&&e<=57){for(i=e-48;r=48&&e<=57;)if(i=i*10+e-48,i<0)throw C(new qe(ze((Ke(),run))))}else throw C(new qe(ze((Ke(),RJn))));if(t=i,e==44){if(r>=n.j)throw C(new qe(ze((Ke(),KJn))));if((e=nr(n.i,r++))>=48&&e<=57){for(t=e-48;r=48&&e<=57;)if(t=t*10+e-48,t<0)throw C(new qe(ze((Ke(),run))));if(i>t)throw C(new qe(ze((Ke(),_Jn))))}else t=-1}if(e!=125)throw C(new qe(ze((Ke(),BJn))));n.bm(r)?(c=(lt(),lt(),++Vt,new Ub(9,c)),n.d=r+1):(c=(lt(),lt(),++Vt,new Ub(3,c)),n.d=r),c.Om(i),c.Nm(t),ht(n)}}return c}function vxe(n){var e,t,i,r,c;switch(t=u(m(n,(J(),Jc)),21),e=FM(fne),r=u(m(n,(fn(),Fw)),346),r==(Cl(),S1)&&Io(e,hne),ln(hn(m(n,KH)))?Qe(e,(er(),Ys),(fr(),V_)):Qe(e,(er(),Bc),(fr(),V_)),m(n,(nT(),p9))!=null&&Io(e,lne),(ln(hn(m(n,whn)))||ln(hn(m(n,lhn))))&&xu(e,(er(),Yr),(fr(),hsn)),u(m(n,Fo),88).g){case 2:case 3:case 4:xu(Qe(e,(er(),Ys),(fr(),asn)),Yr,lsn)}switch(t.Hc((Cr(),iP))&&xu(Qe(Qe(e,(er(),Ys),(fr(),fsn)),Wc,osn),Yr,ssn),F(m(n,ja))!==F((ys(),OP))&&Qe(e,(er(),Bc),(fr(),Asn)),t.Hc(cP)&&(Qe(e,(er(),Ys),(fr(),Osn)),Qe(e,nl,Isn),Qe(e,Bc,Psn)),F(m(n,dP))!==F((m4(),B8))&&F(m(n,Rl))!==F((Tl(),nE))&&xu(e,(er(),Yr),(fr(),ysn)),ln(hn(m(n,dhn)))&&Qe(e,(er(),Bc),(fr(),ksn)),ln(hn(m(n,FH)))&&Qe(e,(er(),Bc),(fr(),Lsn)),OAe(n)&&(F(m(n,Fw))===F(S1)?i=u(m(n,Tj),299):i=u(m(n,xH),299),c=i==(J3(),kH)?(fr(),Ssn):(fr(),xsn),Qe(e,(er(),Wc),c)),u(m(n,_hn),388).g){case 1:Qe(e,(er(),Wc),(fr(),Dsn));break;case 2:xu(Qe(Qe(e,(er(),Bc),(fr(),isn)),Wc,rsn),Yr,csn)}return F(m(n,tl))!==F((wh(),E1))&&Qe(e,(er(),Bc),(fr(),Nsn)),e}function iXn(n,e,t){var i,r,c,s,f,h,l,a,d,g,p,v,k,j,A,P,O;if(uu(n.a,e)){if(df(u(se(n.a,e),49),t))return 1}else ct(n.a,e,new si);if(uu(n.a,t)){if(df(u(se(n.a,t),49),e))return-1}else ct(n.a,t,new si);if(uu(n.e,e)){if(df(u(se(n.e,e),49),t))return-1}else ct(n.e,e,new si);if(uu(n.e,t)){if(df(u(se(n.a,t),49),e))return 1}else ct(n.e,t,new si);if(n.c==(wh(),tq)||!Ot(e,(J(),Ct))||!Ot(t,(J(),Ct))){for(d=null,l=new M(e.j);l.as?T4(n,e,t):T4(n,t,e),rs?1:0}return i=u(m(e,(J(),Ct)),17).a,c=u(m(t,Ct),17).a,i>c?T4(n,e,t):T4(n,t,e),ic?1:0}function U0(n,e,t){var i,r,c,s,f,h,l,a,d,g,p,v,k,j;if(t==null)return null;if(n.a!=e.jk())throw C(new Yn(Y4+e.xe()+Z0));if(L(e,469)){if(j=fIe(u(e,685),t),!j)throw C(new Yn(yK+t+"' is not a valid enumerator of '"+e.xe()+"'"));return j}switch(o1((Ru(),Zi),e).Nl()){case 2:{t=Uc(t,!1);break}case 3:{t=Uc(t,!0);break}}if(i=o1(Zi,e).Jl(),i)return i.jk().wi().ti(i,t);if(g=o1(Zi,e).Ll(),g){for(j=new nn,l=rF(t),a=0,d=l.length;a1)for(v=new vp((!n.a&&(n.a=new G(Ft,n,6,6)),n.a));v.e!=v.i.gc();)L5(v);for(s=u(D((!n.a&&(n.a=new G(Ft,n,6,6)),n.a),0),166),j=Xe,Xe>H+N?j=H+N:XeW+k?A=W+k:GtH-N&&jW-k&&AXe+fe?An=Xe+fe:HGt+cn?Cn=Gt+cn:WXe-fe&&AnGt-cn&&Cnt&&(g=t-1),p=x1+uo(e,24)*Ly*d-d/2,p<0?p=1:p>i&&(p=i-1),r=(R1(),h=new CE,h),gT(r,g),wT(r,p),Se((!s.a&&(s.a=new hi(Ko,s,5)),s.a),r)}function rXn(n){i0(n,new wd(n0(Qd(Zd(Yd(new Ba,fo),"ELK Rectangle Packing"),"Algorithm for packing of unconnected boxes, i.e. graphs without edges. The given order of the boxes is always preserved and the main reading direction of the boxes is left to right. The algorithm is divided into two phases. One phase approximates the width in which the rectangles can be placed. The next phase places the rectangles in rows using the previously calculated width as bounding width and bundles rectangles with a similar height in blocks. A compaction step reduces the size of the drawing. Finally, the rectangles are expanded to fill their bounding box and eliminate empty unused spaces."),new z4n))),Y(n,fo,fv,1.3),Y(n,fo,q4,(Wn(),!1)),Y(n,fo,W0,x1n),Y(n,fo,mw,15),Y(n,fo,IS,un(jue)),Y(n,fo,e2,un(Cue)),Y(n,fo,lv,un(Aue)),Y(n,fo,hv,un(Sue)),Y(n,fo,G4,un(Mue)),Y(n,fo,o8,un(zq)),Y(n,fo,U4,un(Iue)),Y(n,fo,vcn,un(B1n)),Y(n,fo,mcn,un(R1n)),Y(n,fo,pcn,un(Wq)),Y(n,fo,gcn,un(K1n)),Y(n,fo,kcn,un(N1n)),Y(n,fo,ycn,un(Xq)),Y(n,fo,jcn,un(D1n)),Y(n,fo,Ecn,un($1n)),Y(n,fo,u8,un(L1n)),Y(n,fo,OS,un(Eue)),Y(n,fo,bcn,un(_j)),Y(n,fo,dcn,un(O1n)),Y(n,fo,wcn,un(Hj)),Y(n,fo,acn,un(F1n))}function lR(n,e){J$();var t,i,r,c,s,f,h,l,a,d,g,p,v,k,j,A,P,O,N,H,W,cn,An,Cn,Un,Hn,fe,Xe;if(An=n.e,v=n.d,r=n.a,An==0)switch(e){case 0:return"0";case 1:return $4;case 2:return"0.00";case 3:return"0.000";case 4:return"0.0000";case 5:return"0.00000";case 6:return"0.000000";default:return W=new F1,e<0?W.a+="0E+":W.a+="0E",W.a+=-e,W.a}if(O=v*10+1+7,N=_(ds,kh,28,O+1,15,1),t=O,v==1)if(f=r[0],f<0){Xe=Si(f,Tr);do k=Xe,Xe=Qk(Xe,10),N[--t]=48+$e(vs(k,sr(Xe,10)))&bi;while(Pc(Xe,0)!=0)}else{Xe=f;do k=Xe,Xe=Xe/10|0,N[--t]=48+(k-Xe*10)&bi;while(Xe!=0)}else{Un=_(Oe,Ye,28,v,15,1),fe=v,Rc(r,0,Un,0,fe);n:for(;;){for(cn=0,l=fe-1;l>=0;l--)Hn=or(Hs(cn,32),Si(Un[l],Tr)),A=oEe(Hn),Un[l]=$e(A),cn=$e(b0(A,32));P=$e(cn),j=t;do N[--t]=48+P%10&bi;while((P=P/10|0)!=0&&t!=0);for(i=9-j+t,h=0;h0;h++)N[--t]=48;for(d=fe-1;Un[d]==0;d--)if(d==0)break n;fe=d+1}for(;N[t]==48;)++t}if(p=An<0,s=O-t-e-1,e==0)return p&&(N[--t]=45),ms(N,t,O-t);if(e>0&&s>=-6){if(s>=0){for(a=t+s,g=O-1;g>=a;g--)N[g+1]=N[g];return N[++a]=46,p&&(N[--t]=45),ms(N,t,O-t+1)}for(d=2;d<-s+1;d++)N[--t]=48;return N[--t]=46,N[--t]=48,p&&(N[--t]=45),ms(N,t,O-t)}return Cn=t+1,c=O,H=new ug,p&&(H.a+="-"),c-Cn>=1?(z1(H,N[t]),H.a+=".",H.a+=ms(N,t+1,O-t-1)):H.a+=ms(N,t,O-t),H.a+="E",s>0&&(H.a+="+"),H.a+=""+s,H.a}function cXn(n,e){var t,i,r,c,s,f,h,l,a,d,g,p,v,k,j,A,P,O,N,H,W;switch(n.c=e,n.g=new je,t=(r0(),new Jd(n.c)),i=new NE(t),rZ(i),O=_e(X(n.c,(Zk(),can))),h=u(X(n.c,rG),324),H=u(X(n.c,cG),437),s=u(X(n.c,tan),490),N=u(X(n.c,iG),438),n.j=x(K(X(n.c,que))),f=n.a,h.g){case 0:f=n.a;break;case 1:f=n.b;break;case 2:f=n.i;break;case 3:f=n.e;break;case 4:f=n.f;break;default:throw C(new Yn(KS+(h.f!=null?h.f:""+h.g)))}if(n.d=new YOn(f,H,s),U(n.d,(X3(),N8),hn(X(n.c,_ue))),n.d.c=ln(hn(X(n.c,ian))),OC(n.c).i==0)return n.d;for(d=new oe(OC(n.c));d.e!=d.i.gc();){for(a=u(be(d),27),p=a.g/2,g=a.f/2,W=new V(a.i+p,a.j+g);uu(n.g,W);)l0(W,(y.Math.random()-.5)*Eh,(y.Math.random()-.5)*Eh);k=u(X(a,(et(),Dm)),140),j=new aLn(W,new zo(W.a-p-n.j/2-k.b,W.b-g-n.j/2-k.d,a.g+n.j+(k.b+k.c),a.f+n.j+(k.d+k.a))),en(n.d.i,j),ct(n.g,W,new Ei(j,a))}switch(N.g){case 0:if(O==null)n.d.d=u(an(n.d.i,0),68);else for(P=new M(n.d.i);P.a0?fe+1:1);for(s=new M(W.g);s.a0?fe+1:1)}n.c[l]==0?We(n.e,k):n.a[l]==0&&We(n.f,k),++l}for(v=-1,p=1,d=new nn,n.d=u(m(e,(J(),Tv)),234);_o>0;){for(;n.e.b!=0;)Gt=u(tN(n.e),10),n.b[Gt.p]=v--,Xen(n,Gt),--_o;for(;n.f.b!=0;)to=u(tN(n.f),10),n.b[to.p]=p++,Xen(n,to),--_o;if(_o>0){for(g=tr,P=new M(O);P.a=g&&(N>g&&(d.c.length=0,g=N),Xn(d.c,k)));a=n.sg(d),n.b[a.p]=p++,Xen(n,a),--_o}}for(Xe=O.c.length+1,l=0;ln.b[Ur]&&(q0(i,!0),U(e,jj,(Wn(),!0)));n.a=null,n.c=null,n.b=null,Eo(n.f),Eo(n.e),t.Vg()}function uXn(n,e,t){var i,r,c,s,f,h,l,a,d,g,p,v,k,j,A,P,O,N,H,W;for(H=u(D((!n.a&&(n.a=new G(Ft,n,6,6)),n.a),0),166),a=new Ou,N=new je,W=wUn(H),tu(N.f,H,W),g=new je,i=new xt,v=Bh(Ao(S(T(xo,1),Gn,20,0,[(!e.d&&(e.d=new Kn(ii,e,8,5)),e.d),(!e.e&&(e.e=new Kn(ii,e,7,4)),e.e)])));Te(v);){if(p=u(pe(v),74),(!n.a&&(n.a=new G(Ft,n,6,6)),n.a).i!=1)throw C(new Yn(XVn+(!n.a&&(n.a=new G(Ft,n,6,6)),n.a).i));p!=n&&(j=u(D((!p.a&&(p.a=new G(Ft,p,6,6)),p.a),0),166),Xt(i,j,i.c.b,i.c),k=u(zr(Er(N.f,j)),13),k||(k=wUn(j),tu(N.f,j,k)),d=t?Ai(new lr(u(an(W,W.c.length-1),8)),u(an(k,k.c.length-1),8)):Ai(new lr(($n(0,W.c.length),u(W.c[0],8))),($n(0,k.c.length),u(k.c[0],8))),tu(g.f,j,d))}if(i.b!=0)for(A=u(an(W,t?W.c.length-1:0),8),l=1;l1&&Xt(a,A,a.c.b,a.c),Ix(r)));A=P}return a}function oXn(n,e,t){var i,r,c,s,f,h,l,a,d,g,p,v,k,j,A,P,O,N,H,W,cn,An,Cn,Un;for(t.Ug(uVn,1),Un=u(ec(pt(new Pn(null,new Nn(e,16)),new y4n),Xu(new Su,new Au,new Iu,S(T(Hr,1),z,108,0,[(Vu(),rc)]))),15),a=u(ec(pt(new Pn(null,new Nn(e,16)),new hyn(e)),Xu(new Su,new Au,new Iu,S(T(Hr,1),z,108,0,[rc]))),15),v=u(ec(pt(new Pn(null,new Nn(e,16)),new fyn(e)),Xu(new Su,new Au,new Iu,S(T(Hr,1),z,108,0,[rc]))),15),k=_(RP,xS,40,e.gc(),0,1),s=0;s=0&&Cn=0&&!k[p]){k[p]=r,a.gd(f),--f;break}if(p=Cn-g,p=0&&!k[p]){k[p]=r,a.gd(f),--f;break}}for(v.jd(new j4n),h=k.length-1;h>=0;h--)!k[h]&&!v.dc()&&(k[h]=u(v.Xb(0),40),v.gd(0));for(l=0;l=0;h--)We(t,($n(h,s.c.length),u(s.c[h],8)));return t}function fXn(n,e,t){var i,r,c,s,f,h,l,a,d,g,p,v,k,j,A,P,O,N;for(O=x(K(X(e,(Uh(),Uw)))),p=x(K(X(e,a9))),g=x(K(X(e,WP))),JQ((!e.a&&(e.a=new G(ft,e,10,11)),e.a)),A=ZUn((!e.a&&(e.a=new G(ft,e,10,11)),e.a),O,n.b),j=0;jg&&Vk(($n(g,e.c.length),u(e.c[g],186)),a),a=null;e.c.length>g&&($n(g,e.c.length),u(e.c[g],186)).a.c.length==0;)mu(e,($n(g,e.c.length),e.c[g]));if(!a){--s;continue}if(!ln(hn(u(an(a.b,0),27).of((qf(),Hj))))&&_Pe(e,v,c,a,j,t,g,i)){k=!0;continue}if(j){if(p=v.b,d=a.f,!ln(hn(u(an(a.b,0),27).of(Hj)))&&uDe(e,v,c,a,t,g,i,r)){if(k=!0,p=n.j){n.a=-1,n.c=1;return}if(e=nr(n.i,n.d++),n.a=e,n.b==1){switch(e){case 92:if(i=10,n.d>=n.j)throw C(new qe(ze((Ke(),XS))));n.a=nr(n.i,n.d++);break;case 45:(n.e&512)==512&&n.d=n.j||nr(n.i,n.d)!=63)break;if(++n.d>=n.j)throw C(new qe(ze((Ke(),NK))));switch(e=nr(n.i,n.d++),e){case 58:i=13;break;case 61:i=14;break;case 33:i=15;break;case 91:i=19;break;case 62:i=18;break;case 60:if(n.d>=n.j)throw C(new qe(ze((Ke(),NK))));if(e=nr(n.i,n.d++),e==61)i=16;else if(e==33)i=17;else throw C(new qe(ze((Ke(),kJn))));break;case 35:for(;n.d=n.j)throw C(new qe(ze((Ke(),XS))));n.a=nr(n.i,n.d++);break;default:i=0}n.c=i}function Sxe(n,e,t){var i,r,c,s,f,h,l,a,d,g,p,v,k,j;if(t.Ug("Process compaction",1),!!ln(hn(m(e,(pc(),Kln))))){for(r=u(m(e,vb),88),p=x(K(m(e,Eq))),eLe(n,e,r),UNe(e,p/2/2),v=e.b,cd(v,new tyn(r)),l=Ce(v,0);l.b!=l.d.c;)if(h=u(Ee(l),40),!ln(hn(m(h,(St(),Ca))))){if(i=AIe(h,r),k=jOe(h,e),d=0,g=0,i)switch(j=i.e,r.g){case 2:d=j.a-p-h.f.a,k.e.a-p-h.f.ad&&(d=k.e.a+k.f.a+p),g=d+h.f.a;break;case 4:d=j.b-p-h.f.b,k.e.b-p-h.f.bd&&(d=k.e.b+k.f.b+p),g=d+h.f.b}else if(k)switch(r.g){case 2:d=k.e.a-p-h.f.a,g=d+h.f.a;break;case 1:d=k.e.a+k.f.a+p,g=d+h.f.a;break;case 4:d=k.e.b-p-h.f.b,g=d+h.f.b;break;case 3:d=k.e.b+k.f.b+p,g=d+h.f.b}F(m(e,jq))===F((b5(),xj))?(c=d,s=g,f=n4(pt(new Pn(null,new Nn(n.a,16)),new UCn(c,s))),f.a!=null?r==(di(),Gr)||r==Zr?h.e.a=d:h.e.b=d:(r==(di(),Gr)||r==hs?f=n4(pt(yFn(new Pn(null,new Nn(n.a,16))),new iyn(c))):f=n4(pt(yFn(new Pn(null,new Nn(n.a,16))),new ryn(c))),f.a!=null&&(r==Gr||r==Zr?h.e.a=x(K((we(f.a!=null),u(f.a,42)).a)):h.e.b=x(K((we(f.a!=null),u(f.a,42)).a)))),f.a!=null&&(a=Vr(n.a,(we(f.a!=null),f.a),0),a>0&&a!=u(m(h,Lh),17).a&&(U(h,Lln,(Wn(),!0)),U(h,Lh,Z(a))))):r==(di(),Gr)||r==Zr?h.e.a=d:h.e.b=d}t.Vg()}}function hXn(n){var e,t,i,r,c,s,f,h,l;for(n.b=1,ht(n),e=null,n.c==0&&n.a==94?(ht(n),e=(lt(),lt(),++Vt,new Co(4)),Gc(e,0,tm),f=(++Vt,new Co(4))):f=(lt(),lt(),++Vt,new Co(4)),r=!0;(l=n.c)!=1;){if(l==0&&n.a==93&&!r){e&&(Q5(e,f),f=e);break}if(t=n.a,i=!1,l==10)switch(t){case 100:case 68:case 119:case 87:case 115:case 83:bw(f,A4(t)),i=!0;break;case 105:case 73:case 99:case 67:t=(bw(f,A4(t)),-1),t<0&&(i=!0);break;case 112:case 80:if(h=Qnn(n,t),!h)throw C(new qe(ze((Ke(),xK))));bw(f,h),i=!0;break;default:t=Len(n)}else if(l==24&&!r){if(e&&(Q5(e,f),f=e),c=hXn(n),Q5(f,c),n.c!=0||n.a!=93)throw C(new qe(ze((Ke(),PJn))));break}if(ht(n),!i){if(l==0){if(t==91)throw C(new qe(ze((Ke(),tun))));if(t==93)throw C(new qe(ze((Ke(),iun))));if(t==45&&!r&&n.a!=93)throw C(new qe(ze((Ke(),FK))))}if(n.c!=0||n.a!=45||t==45&&r)Gc(f,t,t);else{if(ht(n),(l=n.c)==1)throw C(new qe(ze((Ke(),WS))));if(l==0&&n.a==93)Gc(f,t,t),Gc(f,45,45);else{if(l==0&&n.a==93||l==24)throw C(new qe(ze((Ke(),FK))));if(s=n.a,l==0){if(s==91)throw C(new qe(ze((Ke(),tun))));if(s==93)throw C(new qe(ze((Ke(),iun))));if(s==45)throw C(new qe(ze((Ke(),FK))))}else l==10&&(s=Len(n));if(ht(n),t>s)throw C(new qe(ze((Ke(),DJn))));Gc(f,t,s)}}}r=!1}if(n.c==1)throw C(new qe(ze((Ke(),WS))));return Hg(f),V5(f),n.b=0,ht(n),f}function Ixe(n,e,t){var i,r,c,s,f,h,l,a,d,g,p,v,k,j,A,P,O,N,H;if(t.Ug("Coffman-Graham Layering",1),e.a.c.length==0){t.Vg();return}for(H=u(m(e,(fn(),phn)),17).a,h=0,s=0,g=new M(e.a);g.a=H||!E7e(A,i))&&(i=sOn(e,a)),qi(A,i),c=new he(de(Oi(A).a.Kc(),new zn));Te(c);)r=u(pe(c),18),!n.a[r.p]&&(k=r.c.i,--n.e[k.p],n.e[k.p]==0&&Ep(v4(p,k),R4));for(l=a.c.length-1;l>=0;--l)en(e.b,($n(l,a.c.length),u(a.c[l],30)));e.a.c.length=0,t.Vg()}function lXn(n,e){var t,i,r,c,s,f,h,l,a,d,g,p,v,k,j,A,P,O,N;N=!1;do for(N=!1,c=e?new Ha(n.a.b).a.gc()-2:1;e?c>=0:cu(m(j,Ct),17).a)&&(O=!1);if(O){for(h=e?c+1:c-1,f=$J(n.a,Z(h)),s=!1,P=!0,i=!1,a=Ce(f,0);a.b!=a.d.c;)l=u(Ee(a),10),Ot(l,Ct)?l.p!=d.p&&(s=s|(e?u(m(l,Ct),17).au(m(d,Ct),17).a),P=!1):!s&&P&&l.k==(ee(),Nc)&&(i=!0,e?g=u(pe(new he(de(Oi(l).a.Kc(),new zn))),18).c.i:g=u(pe(new he(de(ri(l).a.Kc(),new zn))),18).d.i,g==d&&(e?t=u(pe(new he(de(ri(l).a.Kc(),new zn))),18).d.i:t=u(pe(new he(de(Oi(l).a.Kc(),new zn))),18).c.i,(e?u(Nb(n.a,t),17).a-u(Nb(n.a,g),17).a:u(Nb(n.a,g),17).a-u(Nb(n.a,t),17).a)<=2&&(P=!1)));if(i&&P&&(e?t=u(pe(new he(de(ri(d).a.Kc(),new zn))),18).d.i:t=u(pe(new he(de(Oi(d).a.Kc(),new zn))),18).c.i,(e?u(Nb(n.a,t),17).a-u(Nb(n.a,d),17).a:u(Nb(n.a,d),17).a-u(Nb(n.a,t),17).a)<=2&&t.k==(ee(),ti)&&(P=!1)),s||P){for(k=Hqn(n,d,e);k.a.gc()!=0;)v=u(k.a.ec().Kc().Pb(),10),k.a.Bc(v)!=null,zi(k,Hqn(n,v,e));--p,N=!0}}}while(N)}function Pxe(n){xe(n.c,Ve,S(T(dn,1),Q,2,6,[ir,"http://www.w3.org/2001/XMLSchema#decimal"])),xe(n.d,Ve,S(T(dn,1),Q,2,6,[ir,"http://www.w3.org/2001/XMLSchema#integer"])),xe(n.e,Ve,S(T(dn,1),Q,2,6,[ir,"http://www.w3.org/2001/XMLSchema#boolean"])),xe(n.f,Ve,S(T(dn,1),Q,2,6,[ir,"EBoolean",st,"EBoolean:Object"])),xe(n.i,Ve,S(T(dn,1),Q,2,6,[ir,"http://www.w3.org/2001/XMLSchema#byte"])),xe(n.g,Ve,S(T(dn,1),Q,2,6,[ir,"http://www.w3.org/2001/XMLSchema#hexBinary"])),xe(n.j,Ve,S(T(dn,1),Q,2,6,[ir,"EByte",st,"EByte:Object"])),xe(n.n,Ve,S(T(dn,1),Q,2,6,[ir,"EChar",st,"EChar:Object"])),xe(n.t,Ve,S(T(dn,1),Q,2,6,[ir,"http://www.w3.org/2001/XMLSchema#double"])),xe(n.u,Ve,S(T(dn,1),Q,2,6,[ir,"EDouble",st,"EDouble:Object"])),xe(n.F,Ve,S(T(dn,1),Q,2,6,[ir,"http://www.w3.org/2001/XMLSchema#float"])),xe(n.G,Ve,S(T(dn,1),Q,2,6,[ir,"EFloat",st,"EFloat:Object"])),xe(n.I,Ve,S(T(dn,1),Q,2,6,[ir,"http://www.w3.org/2001/XMLSchema#int"])),xe(n.J,Ve,S(T(dn,1),Q,2,6,[ir,"EInt",st,"EInt:Object"])),xe(n.N,Ve,S(T(dn,1),Q,2,6,[ir,"http://www.w3.org/2001/XMLSchema#long"])),xe(n.O,Ve,S(T(dn,1),Q,2,6,[ir,"ELong",st,"ELong:Object"])),xe(n.Z,Ve,S(T(dn,1),Q,2,6,[ir,"http://www.w3.org/2001/XMLSchema#short"])),xe(n.$,Ve,S(T(dn,1),Q,2,6,[ir,"EShort",st,"EShort:Object"])),xe(n._,Ve,S(T(dn,1),Q,2,6,[ir,"http://www.w3.org/2001/XMLSchema#string"]))}function Oxe(n,e,t,i,r,c,s){var f,h,l,a,d,g,p,v;return g=u(i.a,17).a,p=u(i.b,17).a,d=n.b,v=n.c,f=0,a=0,e==(di(),Gr)||e==Zr?(a=g7(eBn(Hb(Xr(new Pn(null,new Nn(t.b,16)),new M4n),new c4n))),d.e.b+d.f.b/2>a?(l=++p,f=x(K(wo(Bb(Xr(new Pn(null,new Nn(t.b,16)),new WCn(r,l)),new u4n))))):(h=++g,f=x(K(wo(Cp(Xr(new Pn(null,new Nn(t.b,16)),new VCn(r,h)),new o4n)))))):(a=g7(eBn(Hb(Xr(new Pn(null,new Nn(t.b,16)),new l4n),new r4n))),d.e.a+d.f.a/2>a?(l=++p,f=x(K(wo(Bb(Xr(new Pn(null,new Nn(t.b,16)),new zCn(r,l)),new s4n))))):(h=++g,f=x(K(wo(Cp(Xr(new Pn(null,new Nn(t.b,16)),new XCn(r,h)),new f4n)))))),e==Gr?(hr(n.a,new V(x(K(m(d,(St(),Af))))-r,f)),hr(n.a,new V(v.e.a+v.f.a+r+c,f)),hr(n.a,new V(v.e.a+v.f.a+r+c,v.e.b+v.f.b/2)),hr(n.a,new V(v.e.a+v.f.a,v.e.b+v.f.b/2))):e==Zr?(hr(n.a,new V(x(K(m(d,(St(),nf))))+r,d.e.b+d.f.b/2)),hr(n.a,new V(d.e.a+d.f.a+r,f)),hr(n.a,new V(v.e.a-r-c,f)),hr(n.a,new V(v.e.a-r-c,v.e.b+v.f.b/2)),hr(n.a,new V(v.e.a,v.e.b+v.f.b/2))):e==hs?(hr(n.a,new V(f,x(K(m(d,(St(),Af))))-r)),hr(n.a,new V(f,v.e.b+v.f.b+r+c)),hr(n.a,new V(v.e.a+v.f.a/2,v.e.b+v.f.b+r+c)),hr(n.a,new V(v.e.a+v.f.a/2,v.e.b+v.f.b+r))):(n.a.b==0||(u(Bs(n.a),8).b=x(K(m(d,(St(),nf))))+r*u(s.b,17).a),hr(n.a,new V(f,x(K(m(d,(St(),nf))))+r*u(s.b,17).a)),hr(n.a,new V(f,v.e.b-r*u(s.a,17).a-c))),new Ei(Z(g),Z(p))}function Lxe(n){var e,t,i,r,c,s,f,h,l,a,d,g,p;if(s=!0,d=null,i=null,r=null,e=!1,p=Sse,l=null,c=null,f=0,h=DF(n,f,e0n,t0n),h=0&&On(n.substr(f,2),"//")?(f+=2,h=DF(n,f,N9,x9),i=(Ui(f,h,n.length),n.substr(f,h-f)),f=h):d!=null&&(f==n.length||(Zn(f,n.length),n.charCodeAt(f)!=47))&&(s=!1,h=oW(n,yu(35),f),h==-1&&(h=n.length),i=(Ui(f,h,n.length),n.substr(f,h-f)),f=h);if(!t&&f0&&nr(a,a.length-1)==58&&(r=a,f=h)),fS$(c))&&(d=c);for(!d&&(d=($n(0,j.c.length),u(j.c[0],185))),k=new M(e.b);k.ad&&(Hn=0,fe+=a+cn,a=0),eUn(H,s,Hn,fe),e=y.Math.max(e,Hn+W.a),a=y.Math.max(a,W.b),Hn+=W.a+cn;for(N=new je,t=new je,Cn=new M(n);Cn.a=-1900?1:0,t>=4?Je(n,S(T(dn,1),Q,2,6,[SXn,IXn])[f]):Je(n,S(T(dn,1),Q,2,6,["BC","AD"])[f]);break;case 121:Y7e(n,t,i);break;case 77:gPe(n,t,i);break;case 107:h=r.q.getHours(),h==0?Hh(n,24,t):Hh(n,h,t);break;case 83:PAe(n,t,r);break;case 69:a=i.q.getDay(),t==5?Je(n,S(T(dn,1),Q,2,6,["S","M","T","W","T","F","S"])[a]):t==4?Je(n,S(T(dn,1),Q,2,6,[OR,LR,DR,NR,xR,FR,$R])[a]):Je(n,S(T(dn,1),Q,2,6,["Sun","Mon","Tue","Wed","Thu","Fri","Sat"])[a]);break;case 97:r.q.getHours()>=12&&r.q.getHours()<24?Je(n,S(T(dn,1),Q,2,6,["AM","PM"])[1]):Je(n,S(T(dn,1),Q,2,6,["AM","PM"])[0]);break;case 104:d=r.q.getHours()%12,d==0?Hh(n,12,t):Hh(n,d,t);break;case 75:g=r.q.getHours()%12,Hh(n,g,t);break;case 72:p=r.q.getHours(),Hh(n,p,t);break;case 99:v=i.q.getDay(),t==5?Je(n,S(T(dn,1),Q,2,6,["S","M","T","W","T","F","S"])[v]):t==4?Je(n,S(T(dn,1),Q,2,6,[OR,LR,DR,NR,xR,FR,$R])[v]):t==3?Je(n,S(T(dn,1),Q,2,6,["Sun","Mon","Tue","Wed","Thu","Fri","Sat"])[v]):Hh(n,v,1);break;case 76:k=i.q.getMonth(),t==5?Je(n,S(T(dn,1),Q,2,6,["J","F","M","A","M","J","J","A","S","O","N","D"])[k]):t==4?Je(n,S(T(dn,1),Q,2,6,[kR,yR,jR,ER,iv,MR,CR,TR,AR,SR,IR,PR])[k]):t==3?Je(n,S(T(dn,1),Q,2,6,["Jan","Feb","Mar","Apr",iv,"Jun","Jul","Aug","Sep","Oct","Nov","Dec"])[k]):Hh(n,k+1,t);break;case 81:j=i.q.getMonth()/3|0,t<4?Je(n,S(T(dn,1),Q,2,6,["Q1","Q2","Q3","Q4"])[j]):Je(n,S(T(dn,1),Q,2,6,["1st quarter","2nd quarter","3rd quarter","4th quarter"])[j]);break;case 100:A=i.q.getDate(),Hh(n,A,t);break;case 109:l=r.q.getMinutes(),Hh(n,l,t);break;case 115:s=r.q.getSeconds(),Hh(n,s,t);break;case 122:t<4?Je(n,c.c[0]):Je(n,c.c[1]);break;case 118:Je(n,c.b);break;case 90:t<3?Je(n,ECe(c)):t==3?Je(n,SCe(c)):Je(n,ICe(c.a));break;default:return!1}return!0}function Ttn(n,e,t,i){var r,c,s,f,h,l,a,d,g,p,v,k,j,A,P,O,N,H,W,cn,An,Cn,Un,Hn,fe,Xe;if(GGn(e),h=u(D((!e.b&&(e.b=new Kn(ve,e,4,7)),e.b),0),84),a=u(D((!e.c&&(e.c=new Kn(ve,e,5,8)),e.c),0),84),f=Qr(h),l=Qr(a),s=(!e.a&&(e.a=new G(Ft,e,6,6)),e.a).i==0?null:u(D((!e.a&&(e.a=new G(Ft,e,6,6)),e.a),0),166),cn=u(se(n.a,f),10),Hn=u(se(n.a,l),10),An=null,fe=null,L(h,193)&&(W=u(se(n.a,h),305),L(W,12)?An=u(W,12):L(W,10)&&(cn=u(W,10),An=u(an(cn.j,0),12))),L(a,193)&&(Un=u(se(n.a,a),305),L(Un,12)?fe=u(Un,12):L(Un,10)&&(Hn=u(Un,10),fe=u(an(Hn.j,0),12))),!cn||!Hn)throw C(new sp("The source or the target of edge "+e+" could not be found. This usually happens when an edge connects a node laid out by ELK Layered to a node in another level of hierarchy laid out by either another instance of ELK Layered or another layout algorithm alltogether. The former can be solved by setting the hierarchyHandling option to INCLUDE_CHILDREN."));for(k=new j0,Jr(k,e),U(k,(J(),yt),e),U(k,(fn(),qr),null),p=u(m(i,Jc),21),cn==Hn&&p.Fc((Cr(),_8)),An||(H=(Mr(),ru),Cn=null,s&&wg(u(m(cn,Yt),101))&&(Cn=new V(s.j,s.k),NDn(Cn,Y7(e)),sNn(Cn,t),Jb(l,f)&&(H=Yu,dt(Cn,cn.n))),An=UUn(cn,Cn,H,i)),fe||(H=(Mr(),Yu),Xe=null,s&&wg(u(m(Hn,Yt),101))&&(Xe=new V(s.b,s.c),NDn(Xe,Y7(e)),sNn(Xe,t)),fe=UUn(Hn,Xe,H,Vi(Hn))),ur(k,An),Bi(k,fe),(An.e.c.length>1||An.g.c.length>1||fe.e.c.length>1||fe.g.c.length>1)&&p.Fc((Cr(),K8)),g=new oe((!e.n&&(e.n=new G(xr,e,1,7)),e.n));g.e!=g.i.gc();)if(d=u(be(g),135),!ln(hn(X(d,Fd)))&&d.a)switch(j=dF(d),en(k.b,j),u(m(j,Oh),278).g){case 1:case 2:p.Fc((Cr(),pm));break;case 0:p.Fc((Cr(),gm)),U(j,Oh,(Bf(),xm))}if(c=u(m(i,X8),322),A=u(m(i,EP),323),r=c==(u5(),mj)||A==(T5(),nq),s&&(!s.a&&(s.a=new hi(Ko,s,5)),s.a).i!=0&&r){for(P=ey(s),v=new Ou,N=Ce(P,0);N.b!=N.d.c;)O=u(Ee(N),8),We(v,new lr(O));U(k,mfn,v)}return k}function Fxe(n,e,t,i){var r,c,s,f,h,l,a,d,g,p,v,k,j,A,P,O,N,H,W,cn,An,Cn,Un,Hn,fe,Xe,Gt;for(Cn=0,Un=0,cn=new je,H=u(wo(Bb(Xr(new Pn(null,new Nn(n.b,16)),new h4n),new v4n)),17).a+1,An=_(Oe,Ye,28,H,15,1),j=_(Oe,Ye,28,H,15,1),k=0;k1)for(f=fe+1;fl.b.e.b*(1-A)+l.c.e.b*A));v++);if(W.gc()>0&&(Xe=l.a.b==0?Xi(l.b.e):u(Bs(l.a),8),O=dt(Xi(u(W.Xb(W.gc()-1),40).e),u(W.Xb(W.gc()-1),40).f),g=dt(Xi(u(W.Xb(0),40).e),u(W.Xb(0),40).f),v>=W.gc()-1&&Xe.b>O.b&&l.c.e.b>O.b||v<=0&&Xe.bl.b.e.a*(1-A)+l.c.e.a*A));v++);if(W.gc()>0&&(Xe=l.a.b==0?Xi(l.b.e):u(Bs(l.a),8),O=dt(Xi(u(W.Xb(W.gc()-1),40).e),u(W.Xb(W.gc()-1),40).f),g=dt(Xi(u(W.Xb(0),40).e),u(W.Xb(0),40).f),v>=W.gc()-1&&Xe.a>O.a&&l.c.e.a>O.a||v<=0&&Xe.a=x(K(m(n,(St(),xln))))&&++Un):(p.f&&p.d.e.a<=x(K(m(n,(St(),vq))))&&++Cn,p.g&&p.c.e.a+p.c.f.a>=x(K(m(n,(St(),Nln))))&&++Un)}else N==0?Wnn(l):N<0&&(++An[fe],++j[Gt],Hn=Oxe(l,e,n,new Ei(Z(Cn),Z(Un)),t,i,new Ei(Z(j[Gt]),Z(An[fe]))),Cn=u(Hn.a,17).a,Un=u(Hn.b,17).a)}function $xe(n,e,t){var i,r,c,s,f,h,l,a,d,g,p,v,k,j,A,P;if(i=e,h=t,n.b&&i.j==(rn(),te)&&h.j==(rn(),te)&&(P=i,i=h,h=P),uu(n.a,i)){if(df(u(se(n.a,i),49),h))return 1}else ct(n.a,i,new si);if(uu(n.a,h)){if(df(u(se(n.a,h),49),i))return-1}else ct(n.a,h,new si);if(uu(n.d,i)){if(df(u(se(n.d,i),49),h))return-1}else ct(n.d,i,new si);if(uu(n.d,h)){if(df(u(se(n.a,h),49),i))return 1}else ct(n.d,h,new si);if(i.j!=h.j)return A=Cae(i.j,h.j),A==-1?rs(n,h,i):rs(n,i,h),A;if(i.e.c.length!=0&&h.e.c.length!=0){if(n.b&&(A=IRn(i,h),A!=0))return A==-1?rs(n,h,i):A==1&&rs(n,i,h),A;if(c=u(an(i.e,0),18).c.i,a=u(an(h.e,0),18).c.i,c==a)return r=u(m(u(an(i.e,0),18),(J(),Ct)),17).a,l=u(m(u(an(h.e,0),18),Ct),17).a,r>l?rs(n,i,h):rs(n,h,i),rl?1:0;for(v=n.c,k=0,j=v.length;kl?rs(n,i,h):rs(n,h,i),rl?1:0):n.b&&(A=IRn(i,h),A!=0)?(A==-1?rs(n,h,i):A==1&&rs(n,i,h),A):(s=0,d=0,Ot(u(an(i.g,0),18),Ct)&&(s=u(m(u(an(i.g,0),18),Ct),17).a),Ot(u(an(h.g,0),18),Ct)&&(d=u(m(u(an(i.g,0),18),Ct),17).a),f&&f==g?ln(hn(m(u(an(i.g,0),18),Jf)))&&!ln(hn(m(u(an(h.g,0),18),Jf)))?(rs(n,i,h),1):!ln(hn(m(u(an(i.g,0),18),Jf)))&&ln(hn(m(u(an(h.g,0),18),Jf)))?(rs(n,h,i),-1):(s>d?rs(n,i,h):rs(n,h,i),sd?1:0):(n.f&&(n.f._b(f)&&(s=u(n.f.xc(f),17).a),n.f._b(g)&&(d=u(n.f.xc(g),17).a)),s>d?rs(n,i,h):rs(n,h,i),sd?1:0))):i.e.c.length!=0&&h.g.c.length!=0?(rs(n,i,h),1):i.g.c.length!=0&&h.e.c.length!=0?(rs(n,h,i),-1):Ot(i,(J(),Ct))&&Ot(h,Ct)?(r=u(m(i,Ct),17).a,l=u(m(h,Ct),17).a,r>l?rs(n,i,h):rs(n,h,i),rl?1:0):(rs(n,h,i),-1)}function Rxe(n){n.gb||(n.gb=!0,n.b=gc(n,0),Wt(n.b,18),Dt(n.b,19),n.a=gc(n,1),Wt(n.a,1),Dt(n.a,2),Dt(n.a,3),Dt(n.a,4),Dt(n.a,5),n.o=gc(n,2),Wt(n.o,8),Wt(n.o,9),Dt(n.o,10),Dt(n.o,11),Dt(n.o,12),Dt(n.o,13),Dt(n.o,14),Dt(n.o,15),Dt(n.o,16),Dt(n.o,17),Dt(n.o,18),Dt(n.o,19),Dt(n.o,20),Dt(n.o,21),Dt(n.o,22),Dt(n.o,23),Kr(n.o),Kr(n.o),Kr(n.o),Kr(n.o),Kr(n.o),Kr(n.o),Kr(n.o),Kr(n.o),Kr(n.o),Kr(n.o),n.p=gc(n,3),Wt(n.p,2),Wt(n.p,3),Wt(n.p,4),Wt(n.p,5),Dt(n.p,6),Dt(n.p,7),Kr(n.p),Kr(n.p),n.q=gc(n,4),Wt(n.q,8),n.v=gc(n,5),Dt(n.v,9),Kr(n.v),Kr(n.v),Kr(n.v),n.w=gc(n,6),Wt(n.w,2),Wt(n.w,3),Wt(n.w,4),Dt(n.w,5),n.B=gc(n,7),Dt(n.B,1),Kr(n.B),Kr(n.B),Kr(n.B),n.Q=gc(n,8),Dt(n.Q,0),Kr(n.Q),n.R=gc(n,9),Wt(n.R,1),n.S=gc(n,10),Kr(n.S),Kr(n.S),Kr(n.S),Kr(n.S),Kr(n.S),Kr(n.S),Kr(n.S),Kr(n.S),Kr(n.S),Kr(n.S),Kr(n.S),Kr(n.S),Kr(n.S),Kr(n.S),Kr(n.S),n.T=gc(n,11),Dt(n.T,10),Dt(n.T,11),Dt(n.T,12),Dt(n.T,13),Dt(n.T,14),Kr(n.T),Kr(n.T),n.U=gc(n,12),Wt(n.U,2),Wt(n.U,3),Dt(n.U,4),Dt(n.U,5),Dt(n.U,6),Dt(n.U,7),Kr(n.U),n.V=gc(n,13),Dt(n.V,10),n.W=gc(n,14),Wt(n.W,18),Wt(n.W,19),Wt(n.W,20),Dt(n.W,21),Dt(n.W,22),Dt(n.W,23),n.bb=gc(n,15),Wt(n.bb,10),Wt(n.bb,11),Wt(n.bb,12),Wt(n.bb,13),Wt(n.bb,14),Wt(n.bb,15),Wt(n.bb,16),Dt(n.bb,17),Kr(n.bb),Kr(n.bb),n.eb=gc(n,16),Wt(n.eb,2),Wt(n.eb,3),Wt(n.eb,4),Wt(n.eb,5),Wt(n.eb,6),Wt(n.eb,7),Dt(n.eb,8),Dt(n.eb,9),n.ab=gc(n,17),Wt(n.ab,0),Wt(n.ab,1),n.H=gc(n,18),Dt(n.H,0),Dt(n.H,1),Dt(n.H,2),Dt(n.H,3),Dt(n.H,4),Dt(n.H,5),Kr(n.H),n.db=gc(n,19),Dt(n.db,2),n.c=ot(n,20),n.d=ot(n,21),n.e=ot(n,22),n.f=ot(n,23),n.i=ot(n,24),n.g=ot(n,25),n.j=ot(n,26),n.k=ot(n,27),n.n=ot(n,28),n.r=ot(n,29),n.s=ot(n,30),n.t=ot(n,31),n.u=ot(n,32),n.fb=ot(n,33),n.A=ot(n,34),n.C=ot(n,35),n.D=ot(n,36),n.F=ot(n,37),n.G=ot(n,38),n.I=ot(n,39),n.J=ot(n,40),n.L=ot(n,41),n.M=ot(n,42),n.N=ot(n,43),n.O=ot(n,44),n.P=ot(n,45),n.X=ot(n,46),n.Y=ot(n,47),n.Z=ot(n,48),n.$=ot(n,49),n._=ot(n,50),n.cb=ot(n,51),n.K=ot(n,52))}function Bxe(n,e,t){var i,r,c,s,f,h,l,a,d,g,p,v,k,j,A,P,O,N,H,W,cn,An,Cn,Un,Hn,fe;for(s=new xt,W=u(m(t,(fn(),Fo)),88),k=0,zi(s,(!e.a&&(e.a=new G(ft,e,10,11)),e.a));s.b!=0;)a=u(s.b==0?null:(we(s.b!=0),Qo(s,s.a.a)),27),l=Rt(a),(F(X(l,tl))!==F((wh(),E1))||F(X(l,Ld))===F((h1(),bm))||F(X(l,Ld))===F((h1(),dm))||ln(hn(X(l,hb)))||F(X(l,xw))!==F((ad(),Iw))||F(X(l,ja))===F((ys(),gb))||F(X(l,ja))===F((ys(),Hw))||F(X(l,Nd))===F((w1(),Tm))||F(X(l,Nd))===F((w1(),Am)))&&!ln(hn(X(a,wP)))&&Et(a,(J(),Ct),Z(k++)),A=!ln(hn(X(a,Fd))),A&&(g=(!a.a&&(a.a=new G(ft,a,10,11)),a.a).i!=0,v=bEe(a),p=F(X(a,Fw))===F((Cl(),S1)),fe=!$f(a,(et(),Lm))||gNn(_e(X(a,Lm))),N=null,fe&&p&&(g||v)&&(N=CUn(a),U(N,Fo,W),Ot(N,Aj)&&TEn(new fZ(x(K(m(N,Aj)))),N),u(X(a,xd),181).gc()!=0&&(d=N,Zt(new Pn(null,(!a.c&&(a.c=new G(eo,a,9,9)),new Nn(a.c,16))),new D7n(d)),pGn(a,N))),cn=t,An=u(se(n.a,Rt(a)),10),An&&(cn=An.e),O=Yzn(n,a,cn),N&&(O.e=N,N.e=O,zi(s,(!a.a&&(a.a=new G(ft,a,10,11)),a.a))));for(k=0,Xt(s,e,s.c.b,s.c);s.b!=0;){for(c=u(s.b==0?null:(we(s.b!=0),Qo(s,s.a.a)),27),h=new oe((!c.b&&(c.b=new G(ii,c,12,3)),c.b));h.e!=h.i.gc();)f=u(be(h),74),GGn(f),(F(X(e,tl))!==F((wh(),E1))||F(X(e,Ld))===F((h1(),bm))||F(X(e,Ld))===F((h1(),dm))||ln(hn(X(e,hb)))||F(X(e,xw))!==F((ad(),Iw))||F(X(e,ja))===F((ys(),gb))||F(X(e,ja))===F((ys(),Hw))||F(X(e,Nd))===F((w1(),Tm))||F(X(e,Nd))===F((w1(),Am)))&&Et(f,(J(),Ct),Z(k++)),Un=Qr(u(D((!f.b&&(f.b=new Kn(ve,f,4,7)),f.b),0),84)),Hn=Qr(u(D((!f.c&&(f.c=new Kn(ve,f,5,8)),f.c),0),84)),!(ln(hn(X(f,Fd)))||ln(hn(X(Un,Fd)))||ln(hn(X(Hn,Fd))))&&(j=K0(f)&&ln(hn(X(Un,$w)))&&ln(hn(X(f,Dd))),H=c,j||Jb(Hn,Un)?H=Un:Jb(Un,Hn)&&(H=Hn),cn=t,An=u(se(n.a,H),10),An&&(cn=An.e),P=Ttn(n,f,H,cn),U(P,(J(),wfn),BSe(n,f,e,t)));if(p=F(X(c,Fw))===F((Cl(),S1)),p)for(r=new oe((!c.a&&(c.a=new G(ft,c,10,11)),c.a));r.e!=r.i.gc();)i=u(be(r),27),fe=!$f(i,(et(),Lm))||gNn(_e(X(i,Lm))),Cn=F(X(i,Fw))===F(S1),fe&&Cn&&Xt(s,i,s.c.b,s.c)}}function J(){J=$;var n,e;yt=new mt(ain),wfn=new mt("coordinateOrigin"),IH=new mt("processors"),bfn=new qt("compoundNode",(Wn(),!1)),Ej=new qt("insideConnections",!1),mfn=new mt("originalBendpoints"),kfn=new mt("originalDummyNodePosition"),yfn=new mt("originalLabelEdge"),q8=new mt("representedLabels"),H8=new mt("endLabels"),Ev=new mt("endLabel.origin"),Cv=new qt("labelSide",(Po(),tE)),v2=new qt("maxEdgeThickness",0),Jf=new qt("reversed",!1),Tv=new mt(din),Tf=new qt("longEdgeSource",null),As=new qt("longEdgeTarget",null),Dw=new qt("longEdgeHasLabelDummies",!1),Mj=new qt("longEdgeBeforeLabelDummy",!1),sP=new qt("edgeConstraint",(fd(),aH)),ob=new mt("inLayerLayoutUnit"),Pd=new qt("inLayerConstraint",(jl(),yj)),Mv=new qt("inLayerSuccessorConstraint",new nn),vfn=new qt("inLayerSuccessorConstraintBetweenNonDummies",!1),Qu=new mt("portDummy"),oP=new qt("crossingHint",Z(0)),Jc=new qt("graphProperties",(e=u(af(mH),9),new Uo(e,u(Ks(e,e.length),9),0))),jc=new qt("externalPortSide",(rn(),bc)),pfn=new qt("externalPortSize",new _i),MH=new mt("externalPortReplacedDummies"),fP=new mt("externalPortReplacedDummy"),$l=new qt("externalPortConnections",(n=u(af(vr),9),new Uo(n,u(Ks(n,n.length),9),0))),sb=new qt(uWn,0),dfn=new mt("barycenterAssociates"),Av=new mt("TopSideComments"),jv=new mt("BottomSideComments"),uP=new mt("CommentConnectionPort"),TH=new qt("inputCollect",!1),SH=new qt("outputCollect",!1),jj=new qt("cyclic",!1),gfn=new mt("crossHierarchyMap"),OH=new mt("targetOffset"),new qt("splineLabelSize",new _i),k2=new mt("spacings"),hP=new qt("partitionConstraint",!1),ub=new mt("breakingPoint.info"),Mfn=new mt("splines.survivingEdge"),Od=new mt("splines.route.start"),y2=new mt("splines.edgeChain"),Efn=new mt("originalPortConstraints"),fb=new mt("selfLoopHolder"),mm=new mt("splines.nsPortY"),Ct=new mt("modelOrder"),AH=new mt("longEdgeTargetNode"),ka=new qt(KWn,!1),m2=new qt(KWn,!1),CH=new mt("layerConstraints.hiddenNodes"),jfn=new mt("layerConstraints.opposidePort"),PH=new mt("targetNode.modelOrder")}function Kxe(n,e,t,i){var r,c,s,f,h,l,a,d,g,p,v;for(d=Ce(n.b,0);d.b!=d.d.c;)if(a=u(Ee(d),40),!On(a.c,NS))for(c=u(ec(new Pn(null,new Nn(VCe(a,n),16)),Xu(new Su,new Au,new Iu,S(T(Hr,1),z,108,0,[(Vu(),rc)]))),15),e==(di(),Gr)||e==Zr?c.jd(new b4n):c.jd(new w4n),v=c.gc(),r=0;r0&&(f=u(Bs(u(c.Xb(r),65).a),8).a,g=a.e.a+a.f.a/2,h=u(Bs(u(c.Xb(r),65).a),8).b,p=a.e.b+a.f.b/2,i>0&&y.Math.abs(h-p)/(y.Math.abs(f-g)/40)>50&&(p>h?hr(u(c.Xb(r),65).a,new V(a.e.a+a.f.a+i/5.3,a.e.b+a.f.b*s-i/2)):hr(u(c.Xb(r),65).a,new V(a.e.a+a.f.a+i/5.3,a.e.b+a.f.b*s+i/2)))),hr(u(c.Xb(r),65).a,new V(a.e.a+a.f.a,a.e.b+a.f.b*s))):e==Zr?(l=x(K(m(a,(St(),Af)))),a.e.a-i>l?hr(u(c.Xb(r),65).a,new V(l-t,a.e.b+a.f.b*s)):u(c.Xb(r),65).a.b>0&&(f=u(Bs(u(c.Xb(r),65).a),8).a,g=a.e.a+a.f.a/2,h=u(Bs(u(c.Xb(r),65).a),8).b,p=a.e.b+a.f.b/2,i>0&&y.Math.abs(h-p)/(y.Math.abs(f-g)/40)>50&&(p>h?hr(u(c.Xb(r),65).a,new V(a.e.a-i/5.3,a.e.b+a.f.b*s-i/2)):hr(u(c.Xb(r),65).a,new V(a.e.a-i/5.3,a.e.b+a.f.b*s+i/2)))),hr(u(c.Xb(r),65).a,new V(a.e.a,a.e.b+a.f.b*s))):e==hs?(l=x(K(m(a,(St(),nf)))),a.e.b+a.f.b+i0&&(f=u(Bs(u(c.Xb(r),65).a),8).a,g=a.e.a+a.f.a/2,h=u(Bs(u(c.Xb(r),65).a),8).b,p=a.e.b+a.f.b/2,i>0&&y.Math.abs(f-g)/(y.Math.abs(h-p)/40)>50&&(g>f?hr(u(c.Xb(r),65).a,new V(a.e.a+a.f.a*s-i/2,a.e.b+i/5.3+a.f.b)):hr(u(c.Xb(r),65).a,new V(a.e.a+a.f.a*s+i/2,a.e.b+i/5.3+a.f.b)))),hr(u(c.Xb(r),65).a,new V(a.e.a+a.f.a*s,a.e.b+a.f.b))):(l=x(K(m(a,(St(),Af)))),wRn(u(c.Xb(r),65),n)?hr(u(c.Xb(r),65).a,new V(a.e.a+a.f.a*s,u(Bs(u(c.Xb(r),65).a),8).b)):a.e.b-i>l?hr(u(c.Xb(r),65).a,new V(a.e.a+a.f.a*s,l-t)):u(c.Xb(r),65).a.b>0&&(f=u(Bs(u(c.Xb(r),65).a),8).a,g=a.e.a+a.f.a/2,h=u(Bs(u(c.Xb(r),65).a),8).b,p=a.e.b+a.f.b/2,i>0&&y.Math.abs(f-g)/(y.Math.abs(h-p)/40)>50&&(g>f?hr(u(c.Xb(r),65).a,new V(a.e.a+a.f.a*s-i/2,a.e.b-i/5.3)):hr(u(c.Xb(r),65).a,new V(a.e.a+a.f.a*s+i/2,a.e.b-i/5.3)))),hr(u(c.Xb(r),65).a,new V(a.e.a+a.f.a*s,a.e.b)))}function et(){et=$;var n,e;Lm=new mt(CVn),K2=new mt(TVn),Oan=(qh(),sG),koe=new In(yrn,Oan),new Vm,D2=new In(fv,null),yoe=new mt(Ncn),Dan=(bd(),Lt(lG,S(T(aG,1),z,298,0,[hG]))),Xj=new In(IS,Dan),Wj=new In(zy,(Wn(),!1)),Nan=(di(),nh),Kd=new In(WB,Nan),$an=(Tl(),CG),Fan=new In(Uy,$an),Moe=new In(Lcn,!1),Kan=(Cl(),hO),F2=new In(SS,Kan),Van=new s0(12),A1=new In(W0,Van),Jj=new In(u8,!1),gG=new In(OS,!1),Qj=new In(o8,!1),ndn=(Ki(),Ia),j9=new In(bB,ndn),Lv=new mt(PS),Yj=new mt(Fy),EG=new mt(hS),MG=new mt(c8),_an=new Ou,mb=new In(Lrn,_an),Eoe=new In(xrn,!1),Coe=new In(Frn,!1),new mt(AVn),Han=new Ym,Dm=new In(Rrn,Han),uO=new In(mrn,!1),new Vm,Ioe=new In(SVn,1),x2=new mt(IVn),N2=new mt(PVn),Nm=new In($y,!1),new In(OVn,!0),Z(0),new In(LVn,Z(100)),new In(DVn,!1),Z(0),new In(NVn,Z(4e3)),Z(0),new In(xVn,Z(400)),new In(FVn,!1),new In($Vn,!1),new In(RVn,!0),new In(BVn,!1),Lan=(XT(),IG),joe=new In(Dcn,Lan),Poe=new In(srn,10),Ooe=new In(frn,10),rdn=new In(oB,20),Loe=new In(hrn,10),cdn=new In(dB,2),udn=new In(XB,10),odn=new In(lrn,0),oO=new In(brn,5),sdn=new In(arn,1),fdn=new In(drn,1),Hd=new In(mw,20),Doe=new In(wrn,10),adn=new In(grn,10),Dv=new mt(prn),ldn=new zTn,hdn=new In(Brn,ldn),Aoe=new mt(JB),Jan=!1,Toe=new In(VB,Jan),Gan=new s0(5),qan=new In(Mrn,Gan),Uan=(fw(),e=u(af(Ir),9),new Uo(e,u(Ks(e,e.length),9),0)),$2=new In(G4,Uan),Yan=(xg(),Sa),Qan=new In(Arn,Yan),vG=new mt(Srn),mG=new mt(Irn),kG=new mt(Prn),pG=new mt(Orn),zan=(n=u(af(P9),9),new Uo(n,u(Ks(n,n.length),9),0)),_d=new In(e2,zan),Wan=Tn((oo(),Bm)),Ta=new In(hv,Wan),Xan=new V(0,0),R2=new In(lv,Xan),zw=new In(q4,!1),xan=(Bf(),xm),bG=new In(Drn,xan),dG=new In(lS,!1),new mt(KVn),Z(1),new In(_Vn,null),Zan=new mt($rn),yG=new mt(Nrn),idn=(rn(),bc),B2=new In(krn,idn),lo=new mt(vrn),edn=(Ju(),Tn(Pa)),Xw=new In(U4,edn),jG=new In(Crn,!1),tdn=new In(Trn,!0),new Vm,fO=new In(Ry,1),ddn=new In(xcn,null),Zj=new In(By,150),sO=new In(Ky,1.414),Nv=new In(V0,null),Noe=new In(Fcn,1),Vj=new In(jrn,!1),wG=new In(Ern,!1),Ran=new In(sB,1),Ban=(yA(),AG),new In(HVn,Ban),Soe=!0,Foe=(qp(),Jw),$oe=Jw,xoe=Jw}function fr(){fr=$,asn=new fi("DIRECTION_PREPROCESSOR",0),fsn=new fi("COMMENT_PREPROCESSOR",1),l2=new fi("EDGE_AND_LAYER_CONSTRAINT_EDGE_REVERSER",2),W_=new fi("INTERACTIVE_EXTERNAL_PORT_POSITIONER",3),Osn=new fi("PARTITION_PREPROCESSOR",4),NI=new fi("LABEL_DUMMY_INSERTER",5),GI=new fi("SELF_LOOP_PREPROCESSOR",6),Ow=new fi("LAYER_CONSTRAINT_PREPROCESSOR",7),Isn=new fi("PARTITION_MIDPROCESSOR",8),ksn=new fi("HIGH_DEGREE_NODE_LAYER_PROCESSOR",9),Asn=new fi("NODE_PROMOTION",10),Pw=new fi("LAYER_CONSTRAINT_POSTPROCESSOR",11),Psn=new fi("PARTITION_POSTPROCESSOR",12),psn=new fi("HIERARCHICAL_PORT_CONSTRAINT_PROCESSOR",13),Lsn=new fi("SEMI_INTERACTIVE_CROSSMIN_PROCESSOR",14),isn=new fi("BREAKING_POINT_INSERTER",15),RI=new fi("LONG_EDGE_SPLITTER",16),V_=new fi("PORT_SIDE_PROCESSOR",17),LI=new fi("INVERTED_PORT_PROCESSOR",18),_I=new fi("PORT_LIST_SORTER",19),Nsn=new fi("SORT_BY_INPUT_ORDER_OF_MODEL",20),KI=new fi("NORTH_SOUTH_PORT_PREPROCESSOR",21),rsn=new fi("BREAKING_POINT_PROCESSOR",22),Ssn=new fi(LWn,23),xsn=new fi(DWn,24),HI=new fi("SELF_LOOP_PORT_RESTORER",25),Dsn=new fi("SINGLE_EDGE_GRAPH_WRAPPER",26),DI=new fi("IN_LAYER_CONSTRAINT_PROCESSOR",27),bsn=new fi("END_NODE_PORT_LABEL_MANAGEMENT_PROCESSOR",28),Csn=new fi("LABEL_AND_NODE_SIZE_PROCESSOR",29),Msn=new fi("INNERMOST_NODE_MARGIN_CALCULATOR",30),UI=new fi("SELF_LOOP_ROUTER",31),osn=new fi("COMMENT_NODE_MARGIN_CALCULATOR",32),OI=new fi("END_LABEL_PREPROCESSOR",33),FI=new fi("LABEL_DUMMY_SWITCHER",34),usn=new fi("CENTER_LABEL_MANAGEMENT_PROCESSOR",35),om=new fi("LABEL_SIDE_SELECTOR",36),jsn=new fi("HYPEREDGE_DUMMY_MERGER",37),vsn=new fi("HIERARCHICAL_PORT_DUMMY_SIZE_PROCESSOR",38),Tsn=new fi("LAYER_SIZE_AND_GRAPH_HEIGHT_CALCULATOR",39),F8=new fi("HIERARCHICAL_PORT_POSITION_PROCESSOR",40),hsn=new fi("CONSTRAINTS_POSTPROCESSOR",41),ssn=new fi("COMMENT_POSTPROCESSOR",42),Esn=new fi("HYPERNODE_PROCESSOR",43),msn=new fi("HIERARCHICAL_PORT_ORTHOGONAL_EDGE_ROUTER",44),$I=new fi("LONG_EDGE_JOINER",45),qI=new fi("SELF_LOOP_POSTPROCESSOR",46),csn=new fi("BREAKING_POINT_REMOVER",47),BI=new fi("NORTH_SOUTH_PORT_POSTPROCESSOR",48),ysn=new fi("HORIZONTAL_COMPACTOR",49),xI=new fi("LABEL_DUMMY_REMOVER",50),wsn=new fi("FINAL_SPLINE_BENDPOINTS_CALCULATOR",51),dsn=new fi("END_LABEL_SORTER",52),gj=new fi("REVERSED_EDGE_RESTORER",53),PI=new fi("END_LABEL_POSTPROCESSOR",54),gsn=new fi("HIERARCHICAL_NODE_RESIZER",55),lsn=new fi("DIRECTION_POSTPROCESSOR",56)}function Atn(){Atn=$,xfn=(mk(),ZI),Wee=new In(Ein,xfn),ute=new In(Min,(Wn(),!1)),_fn=(GC(),EH),lte=new In(wS,_fn),Tte=new In(Cin,!1),Ate=new In(Tin,!0),kee=new In(Ain,!1),Vfn=(pk(),rq),Hte=new In(Sin,Vfn),Z(1),Jte=new In(Iin,Z(7)),Qte=new In(Pin,!1),ote=new In(Oin,!1),Nfn=(h1(),hH),Xee=new In(yB,Nfn),Gfn=(w1(),JH),Cte=new In(Gy,Gfn),Hfn=(ts(),Cj),pte=new In(Lin,Hfn),Z(-1),gte=new In(Din,null),Z(-1),vte=new In(Nin,Z(-1)),Z(-1),mte=new In(jB,Z(4)),Z(-1),yte=new In(EB,Z(2)),qfn=(ys(),OP),Mte=new In(MB,qfn),Z(0),Ete=new In(CB,Z(0)),bte=new In(TB,Z(at)),Dfn=(u5(),R8),zee=new In(h8,Dfn),Oee=new In(xin,!1),Ree=new In(AB,.1),Gee=new In(SB,!1),Kee=new In(Fin,null),_ee=new In($in,null),Z(-1),Hee=new In(Rin,null),Z(-1),qee=new In(Bin,Z(-1)),Z(0),Lee=new In(Kin,Z(40)),Lfn=(J3(),yH),Fee=new In(IB,Lfn),Ofn=kj,Dee=new In(gS,Ofn),Wfn=(T5(),Y8),_te=new In(t2,Wfn),Lte=new mt(pS),Ufn=(ak(),eP),Ste=new In(PB,Ufn),zfn=(Yk(),tP),Pte=new In(OB,zfn),new Vm,xte=new In(LB,.3),$te=new mt(DB),Xfn=(iw(),PP),Rte=new In(NB,Xfn),Rfn=(LT(),uq),Zee=new In(_in,Rfn),Bfn=(d5(),sq),nte=new In(Hin,Bfn),Kfn=(r4(),e9),ete=new In(vS,Kfn),ite=new In(mS,.2),Qee=new In(xB,2),zte=new In(qin,null),Wte=new In(Gin,10),Xte=new In(Uin,10),Vte=new In(zin,20),Z(0),qte=new In(Xin,Z(0)),Z(0),Gte=new In(Win,Z(0)),Z(0),Ute=new In(Vin,Z(0)),yee=new In(FB,!1),Afn=(m4(),B8),Eee=new In(Jin,Afn),Tfn=(eT(),sH),jee=new In(Qin,Tfn),fte=new In(kS,!1),Z(0),ste=new In($B,Z(16)),Z(0),hte=new In(RB,Z(5)),Yfn=(FT(),lq),pie=new In(Nl,Yfn),Yte=new In(yS,10),eie=new In(jS,1),Qfn=(vT(),YI),sie=new In(l8,Qfn),rie=new mt(BB),Jfn=Z(1),Z(0),uie=new In(KB,Jfn),Zfn=(pT(),hq),yie=new In(ES,Zfn),vie=new mt(MS),die=new In(CS,!0),lie=new In(TS,2),wie=new In(_B,!0),$fn=(EA(),nP),Jee=new In(Yin,$fn),Ffn=(Jp(),lm),Vee=new In(Zin,Ffn),Pfn=(wh(),E1),Pee=new In(AS,Pfn),Iee=new In(nrn,!1),See=new In(ern,!1),Sfn=(ad(),Iw),Mee=new In(HB,Sfn),Ifn=(g5(),QH),Aee=new In(trn,Ifn),Cee=new In(qB,0),Tee=new In(GB,0),dte=lH,ate=mj,kte=SP,jte=SP,wte=VH,Bee=(Cl(),S1),Uee=R8,$ee=R8,Nee=R8,xee=S1,Dte=Z8,Nte=Y8,Ite=Y8,Ote=Y8,Fte=eq,Kte=Z8,Bte=Z8,tte=(Tl(),xv),rte=xv,cte=e9,Yee=nE,Zte=Sm,nie=qw,tie=Sm,iie=qw,fie=Sm,hie=qw,cie=fH,oie=YI,jie=Sm,Eie=qw,mie=Sm,kie=qw,bie=qw,aie=qw,gie=qw}function _xe(n,e,t){var i,r,c,s,f,h,l,a,d,g,p,v,k,j,A,P,O,N,H,W,cn,An,Cn,Un,Hn,fe,Xe,Gt,to,Ur,_o,z2,x1,sf,ff,zd,_v,Ra,Hv,Nh,fl,Mb,qv,X2,xh,Xd,Hl,Cfe,F0n,Cb,q9,zG,Gv,G9,rg,U9,XG,Tfe;for(F0n=0,Xe=e,Ur=0,x1=Xe.length;Ur0&&(n.a[Nh.p]=F0n++)}for(G9=0,Gt=t,_o=0,sf=Gt.length;_o0;){for(Nh=(we(X2.b>0),u(X2.a.Xb(X2.c=--X2.b),12)),qv=0,f=new M(Nh.e);f.a0&&(Nh.j==(rn(),ne)?(n.a[Nh.p]=G9,++G9):(n.a[Nh.p]=G9+ff+_v,++_v))}G9+=_v}for(Mb=new je,v=new sh,fe=e,to=0,z2=fe.length;tol.b&&(l.b=xh)):Nh.i.c==Cfe&&(xhl.c&&(l.c=xh));for(N3(k,0,k.length,null),Gv=_(Oe,Ye,28,k.length,15,1),i=_(Oe,Ye,28,G9+1,15,1),A=0;A0;)cn%2>0&&(r+=XG[cn+1]),cn=(cn-1)/2|0,++XG[cn];for(Cn=_(yre,Gn,374,k.length*2,0,1),N=0;N0&&J7(to.f),X(A,ddn)!=null&&(f=u(X(A,ddn),347),Mb=f.Tg(A),pg(A,y.Math.max(A.g,Mb.a),y.Math.max(A.f,Mb.b)));if(sf=u(X(e,A1),107),p=e.g-(sf.b+sf.c),g=e.f-(sf.d+sf.a),xh.bh("Available Child Area: ("+p+"|"+g+")"),Et(e,D2,p/g),VBn(e,r,i.eh(z2)),u(X(e,Nv),280)==gO&&(Etn(e),pg(e,sf.b+x(K(X(e,x2)))+sf.c,sf.d+x(K(X(e,N2)))+sf.a)),xh.bh("Executed layout algorithm: "+_e(X(e,Lm))+" on node "+e.k),u(X(e,Nv),280)==Jw){if(p<0||g<0)throw C(new Gl("The size defined by the parent parallel node is too small for the space provided by the paddings of the child hierarchical node. "+e.k));for($f(e,x2)||$f(e,N2)||Etn(e),k=x(K(X(e,x2))),v=x(K(X(e,N2))),xh.bh("Desired Child Area: ("+k+"|"+v+")"),zd=p/k,_v=g/v,ff=y.Math.min(zd,y.Math.min(_v,x(K(X(e,Noe))))),Et(e,fO,ff),xh.bh(e.k+" -- Local Scale Factor (X|Y): ("+zd+"|"+_v+")"),N=u(X(e,Xj),21),c=0,s=0,ff'?":On(kJn,n)?"'(?<' or '(? toIndex: ",Gtn=", toIndex: ",Utn="Index: ",ztn=", Size: ",B4="org.eclipse.elk.alg.common",Ge={50:1},HXn="org.eclipse.elk.alg.common.compaction",qXn="Scanline/EventHandler",Jh="org.eclipse.elk.alg.common.compaction.oned",GXn="CNode belongs to another CGroup.",UXn="ISpacingsHandler/1",VR="The ",JR=" instance has been finished already.",zXn="The direction ",XXn=" is not supported by the CGraph instance.",WXn="OneDimensionalCompactor",VXn="OneDimensionalCompactor/lambda$0$Type",JXn="Quadruplet",QXn="ScanlineConstraintCalculator",YXn="ScanlineConstraintCalculator/ConstraintsScanlineHandler",ZXn="ScanlineConstraintCalculator/ConstraintsScanlineHandler/lambda$0$Type",nWn="ScanlineConstraintCalculator/Timestamp",eWn="ScanlineConstraintCalculator/lambda$0$Type",yh={178:1,46:1},QR="org.eclipse.elk.alg.common.compaction.options",dc="org.eclipse.elk.core.data",Xtn="org.eclipse.elk.polyomino.traversalStrategy",Wtn="org.eclipse.elk.polyomino.lowLevelSort",Vtn="org.eclipse.elk.polyomino.highLevelSort",Jtn="org.eclipse.elk.polyomino.fill",js={134:1},YR="polyomino",t8="org.eclipse.elk.alg.common.networksimplex",Qh={183:1,3:1,4:1},tWn="org.eclipse.elk.alg.common.nodespacing",md="org.eclipse.elk.alg.common.nodespacing.cellsystem",K4="CENTER",iWn={217:1,336:1},Qtn={3:1,4:1,5:1,603:1},uv="LEFT",ov="RIGHT",Ytn="Vertical alignment cannot be null",Ztn="BOTTOM",rS="org.eclipse.elk.alg.common.nodespacing.internal",i8="UNDEFINED",Uf=.01,Dy="org.eclipse.elk.alg.common.nodespacing.internal.algorithm",rWn="LabelPlacer/lambda$0$Type",cWn="LabelPlacer/lambda$1$Type",uWn="portRatioOrPosition",_4="org.eclipse.elk.alg.common.overlaps",ZR="DOWN",jh="org.eclipse.elk.alg.common.polyomino",cS="NORTH",nB="EAST",eB="SOUTH",tB="WEST",uS="org.eclipse.elk.alg.common.polyomino.structures",nin="Direction",iB="Grid is only of size ",rB=". Requested point (",cB=") is out of bounds.",oS=" Given center based coordinates were (",Ny="org.eclipse.elk.graph.properties",oWn="IPropertyHolder",ein={3:1,96:1,137:1},sv="org.eclipse.elk.alg.common.spore",sWn="org.eclipse.elk.alg.common.utils",kd={205:1},Yg="org.eclipse.elk.core",fWn="Connected Components Compaction",hWn="org.eclipse.elk.alg.disco",sS="org.eclipse.elk.alg.disco.graph",uB="org.eclipse.elk.alg.disco.options",tin="CompactionStrategy",iin="org.eclipse.elk.disco.componentCompaction.strategy",rin="org.eclipse.elk.disco.componentCompaction.componentLayoutAlgorithm",cin="org.eclipse.elk.disco.debug.discoGraph",uin="org.eclipse.elk.disco.debug.discoPolys",lWn="componentCompaction",yd="org.eclipse.elk.disco",oB="org.eclipse.elk.spacing.componentComponent",sB="org.eclipse.elk.edge.thickness",fv="org.eclipse.elk.aspectRatio",W0="org.eclipse.elk.padding",Zg="org.eclipse.elk.alg.disco.transform",fB=1.5707963267948966,n2=17976931348623157e292,vw={3:1,4:1,5:1,198:1},aWn={3:1,6:1,4:1,5:1,100:1,115:1},hB="org.eclipse.elk.alg.force",oin="ComponentsProcessor",dWn="ComponentsProcessor/1",sin="ElkGraphImporter/lambda$0$Type",xy="org.eclipse.elk.alg.force.graph",bWn="Component Layout",fin="org.eclipse.elk.alg.force.model",fS="org.eclipse.elk.force.model",hin="org.eclipse.elk.force.iterations",lin="org.eclipse.elk.force.repulsivePower",lB="org.eclipse.elk.force.temperature",Eh=.001,aB="org.eclipse.elk.force.repulsion",r8="org.eclipse.elk.alg.force.options",H4=1.600000023841858,au="org.eclipse.elk.force",Fy="org.eclipse.elk.priority",mw="org.eclipse.elk.spacing.nodeNode",dB="org.eclipse.elk.spacing.edgeLabel",hS="org.eclipse.elk.randomSeed",c8="org.eclipse.elk.separateConnectedComponents",u8="org.eclipse.elk.interactive",bB="org.eclipse.elk.portConstraints",lS="org.eclipse.elk.edgeLabels.inline",o8="org.eclipse.elk.omitNodeMicroLayout",q4="org.eclipse.elk.nodeSize.fixedGraphSize",hv="org.eclipse.elk.nodeSize.options",e2="org.eclipse.elk.nodeSize.constraints",G4="org.eclipse.elk.nodeLabels.placement",U4="org.eclipse.elk.portLabels.placement",$y="org.eclipse.elk.topdownLayout",Ry="org.eclipse.elk.topdown.scaleFactor",By="org.eclipse.elk.topdown.hierarchicalNodeWidth",Ky="org.eclipse.elk.topdown.hierarchicalNodeAspectRatio",V0="org.eclipse.elk.topdown.nodeType",ain="origin",din="random",wWn="boundingBox.upLeft",gWn="boundingBox.lowRight",bin="org.eclipse.elk.stress.fixed",win="org.eclipse.elk.stress.desiredEdgeLength",gin="org.eclipse.elk.stress.dimension",pin="org.eclipse.elk.stress.epsilon",vin="org.eclipse.elk.stress.iterationLimit",la="org.eclipse.elk.stress",pWn="ELK Stress",lv="org.eclipse.elk.nodeSize.minimum",aS="org.eclipse.elk.alg.force.stress",vWn="Layered layout",av="org.eclipse.elk.alg.layered",_y="org.eclipse.elk.alg.layered.compaction.components",s8="org.eclipse.elk.alg.layered.compaction.oned",dS="org.eclipse.elk.alg.layered.compaction.oned.algs",jd="org.eclipse.elk.alg.layered.compaction.recthull",zf="org.eclipse.elk.alg.layered.components",Mh="NONE",min="MODEL_ORDER",Lc={3:1,6:1,4:1,9:1,5:1,126:1},mWn={3:1,6:1,4:1,5:1,150:1,100:1,115:1},bS="org.eclipse.elk.alg.layered.compound",Pt={47:1},zc="org.eclipse.elk.alg.layered.graph",wB=" -> ",kWn="Not supported by LGraph",kin="Port side is undefined",gB={3:1,6:1,4:1,5:1,483:1,150:1,100:1,115:1},p1={3:1,6:1,4:1,5:1,150:1,199:1,210:1,100:1,115:1},yWn={3:1,6:1,4:1,5:1,150:1,2042:1,210:1,100:1,115:1},jWn=`([{"' \r +`,EWn=`)]}"' \r +`,MWn="The given string contains parts that cannot be parsed as numbers.",Hy="org.eclipse.elk.core.math",CWn={3:1,4:1,140:1,214:1,423:1},TWn={3:1,4:1,107:1,214:1,423:1},v1="org.eclipse.elk.alg.layered.graph.transform",AWn="ElkGraphImporter",SWn="ElkGraphImporter/lambda$1$Type",IWn="ElkGraphImporter/lambda$2$Type",PWn="ElkGraphImporter/lambda$4$Type",re="org.eclipse.elk.alg.layered.intermediate",OWn="Node margin calculation",LWn="ONE_SIDED_GREEDY_SWITCH",DWn="TWO_SIDED_GREEDY_SWITCH",pB="No implementation is available for the layout processor ",vB="IntermediateProcessorStrategy",mB="Node '",NWn="FIRST_SEPARATE",xWn="LAST_SEPARATE",FWn="Odd port side processing",yi="org.eclipse.elk.alg.layered.intermediate.compaction",f8="org.eclipse.elk.alg.layered.intermediate.greedyswitch",Yh="org.eclipse.elk.alg.layered.p3order.counting",qy={230:1},dv="org.eclipse.elk.alg.layered.intermediate.loops",No="org.eclipse.elk.alg.layered.intermediate.loops.ordering",aa="org.eclipse.elk.alg.layered.intermediate.loops.routing",yin="org.eclipse.elk.alg.layered.intermediate.preserveorder",Ch="org.eclipse.elk.alg.layered.intermediate.wrapping",Dc="org.eclipse.elk.alg.layered.options",kB="INTERACTIVE",jin="GREEDY",$Wn="DEPTH_FIRST",RWn="EDGE_LENGTH",BWn="SELF_LOOPS",KWn="firstTryWithInitialOrder",Ein="org.eclipse.elk.layered.directionCongruency",Min="org.eclipse.elk.layered.feedbackEdges",wS="org.eclipse.elk.layered.interactiveReferencePoint",Cin="org.eclipse.elk.layered.mergeEdges",Tin="org.eclipse.elk.layered.mergeHierarchyEdges",Ain="org.eclipse.elk.layered.allowNonFlowPortsToSwitchSides",Sin="org.eclipse.elk.layered.portSortingStrategy",Iin="org.eclipse.elk.layered.thoroughness",Pin="org.eclipse.elk.layered.unnecessaryBendpoints",Oin="org.eclipse.elk.layered.generatePositionAndLayerIds",yB="org.eclipse.elk.layered.cycleBreaking.strategy",Gy="org.eclipse.elk.layered.layering.strategy",Lin="org.eclipse.elk.layered.layering.layerConstraint",Din="org.eclipse.elk.layered.layering.layerChoiceConstraint",Nin="org.eclipse.elk.layered.layering.layerId",jB="org.eclipse.elk.layered.layering.minWidth.upperBoundOnWidth",EB="org.eclipse.elk.layered.layering.minWidth.upperLayerEstimationScalingFactor",MB="org.eclipse.elk.layered.layering.nodePromotion.strategy",CB="org.eclipse.elk.layered.layering.nodePromotion.maxIterations",TB="org.eclipse.elk.layered.layering.coffmanGraham.layerBound",h8="org.eclipse.elk.layered.crossingMinimization.strategy",xin="org.eclipse.elk.layered.crossingMinimization.forceNodeModelOrder",AB="org.eclipse.elk.layered.crossingMinimization.hierarchicalSweepiness",SB="org.eclipse.elk.layered.crossingMinimization.semiInteractive",Fin="org.eclipse.elk.layered.crossingMinimization.inLayerPredOf",$in="org.eclipse.elk.layered.crossingMinimization.inLayerSuccOf",Rin="org.eclipse.elk.layered.crossingMinimization.positionChoiceConstraint",Bin="org.eclipse.elk.layered.crossingMinimization.positionId",Kin="org.eclipse.elk.layered.crossingMinimization.greedySwitch.activationThreshold",IB="org.eclipse.elk.layered.crossingMinimization.greedySwitch.type",gS="org.eclipse.elk.layered.crossingMinimization.greedySwitchHierarchical.type",t2="org.eclipse.elk.layered.nodePlacement.strategy",pS="org.eclipse.elk.layered.nodePlacement.favorStraightEdges",PB="org.eclipse.elk.layered.nodePlacement.bk.edgeStraightening",OB="org.eclipse.elk.layered.nodePlacement.bk.fixedAlignment",LB="org.eclipse.elk.layered.nodePlacement.linearSegments.deflectionDampening",DB="org.eclipse.elk.layered.nodePlacement.networkSimplex.nodeFlexibility",NB="org.eclipse.elk.layered.nodePlacement.networkSimplex.nodeFlexibility.default",_in="org.eclipse.elk.layered.edgeRouting.selfLoopDistribution",Hin="org.eclipse.elk.layered.edgeRouting.selfLoopOrdering",vS="org.eclipse.elk.layered.edgeRouting.splines.mode",mS="org.eclipse.elk.layered.edgeRouting.splines.sloppy.layerSpacingFactor",xB="org.eclipse.elk.layered.edgeRouting.polyline.slopedEdgeZoneWidth",qin="org.eclipse.elk.layered.spacing.baseValue",Gin="org.eclipse.elk.layered.spacing.edgeNodeBetweenLayers",Uin="org.eclipse.elk.layered.spacing.edgeEdgeBetweenLayers",zin="org.eclipse.elk.layered.spacing.nodeNodeBetweenLayers",Xin="org.eclipse.elk.layered.priority.direction",Win="org.eclipse.elk.layered.priority.shortness",Vin="org.eclipse.elk.layered.priority.straightness",FB="org.eclipse.elk.layered.compaction.connectedComponents",Jin="org.eclipse.elk.layered.compaction.postCompaction.strategy",Qin="org.eclipse.elk.layered.compaction.postCompaction.constraints",kS="org.eclipse.elk.layered.highDegreeNodes.treatment",$B="org.eclipse.elk.layered.highDegreeNodes.threshold",RB="org.eclipse.elk.layered.highDegreeNodes.treeHeight",Nl="org.eclipse.elk.layered.wrapping.strategy",yS="org.eclipse.elk.layered.wrapping.additionalEdgeSpacing",jS="org.eclipse.elk.layered.wrapping.correctionFactor",l8="org.eclipse.elk.layered.wrapping.cutting.strategy",BB="org.eclipse.elk.layered.wrapping.cutting.cuts",KB="org.eclipse.elk.layered.wrapping.cutting.msd.freedom",ES="org.eclipse.elk.layered.wrapping.validify.strategy",MS="org.eclipse.elk.layered.wrapping.validify.forbiddenIndices",CS="org.eclipse.elk.layered.wrapping.multiEdge.improveCuts",TS="org.eclipse.elk.layered.wrapping.multiEdge.distancePenalty",_B="org.eclipse.elk.layered.wrapping.multiEdge.improveWrappedEdges",Yin="org.eclipse.elk.layered.edgeLabels.sideSelection",Zin="org.eclipse.elk.layered.edgeLabels.centerLabelPlacementStrategy",AS="org.eclipse.elk.layered.considerModelOrder.strategy",nrn="org.eclipse.elk.layered.considerModelOrder.portModelOrder",ern="org.eclipse.elk.layered.considerModelOrder.noModelOrder",HB="org.eclipse.elk.layered.considerModelOrder.components",trn="org.eclipse.elk.layered.considerModelOrder.longEdgeStrategy",qB="org.eclipse.elk.layered.considerModelOrder.crossingCounterNodeInfluence",GB="org.eclipse.elk.layered.considerModelOrder.crossingCounterPortInfluence",UB="layering",_Wn="layering.minWidth",HWn="layering.nodePromotion",z4="crossingMinimization",SS="org.eclipse.elk.hierarchyHandling",qWn="crossingMinimization.greedySwitch",GWn="nodePlacement",UWn="nodePlacement.bk",zWn="edgeRouting",Uy="org.eclipse.elk.edgeRouting",Xf="spacing",irn="priority",rrn="compaction",XWn="compaction.postCompaction",WWn="Specifies whether and how post-process compaction is applied.",crn="highDegreeNodes",urn="wrapping",VWn="wrapping.cutting",JWn="wrapping.validify",orn="wrapping.multiEdge",zB="edgeLabels",a8="considerModelOrder",srn="org.eclipse.elk.spacing.commentComment",frn="org.eclipse.elk.spacing.commentNode",hrn="org.eclipse.elk.spacing.edgeEdge",XB="org.eclipse.elk.spacing.edgeNode",lrn="org.eclipse.elk.spacing.labelLabel",arn="org.eclipse.elk.spacing.labelPortHorizontal",drn="org.eclipse.elk.spacing.labelPortVertical",brn="org.eclipse.elk.spacing.labelNode",wrn="org.eclipse.elk.spacing.nodeSelfLoop",grn="org.eclipse.elk.spacing.portPort",prn="org.eclipse.elk.spacing.individual",vrn="org.eclipse.elk.port.borderOffset",mrn="org.eclipse.elk.noLayout",krn="org.eclipse.elk.port.side",zy="org.eclipse.elk.debugMode",yrn="org.eclipse.elk.alignment",jrn="org.eclipse.elk.insideSelfLoops.activate",Ern="org.eclipse.elk.insideSelfLoops.yo",WB="org.eclipse.elk.direction",Mrn="org.eclipse.elk.nodeLabels.padding",Crn="org.eclipse.elk.portLabels.nextToPortIfPossible",Trn="org.eclipse.elk.portLabels.treatAsGroup",Arn="org.eclipse.elk.portAlignment.default",Srn="org.eclipse.elk.portAlignment.north",Irn="org.eclipse.elk.portAlignment.south",Prn="org.eclipse.elk.portAlignment.west",Orn="org.eclipse.elk.portAlignment.east",IS="org.eclipse.elk.contentAlignment",Lrn="org.eclipse.elk.junctionPoints",Drn="org.eclipse.elk.edgeLabels.placement",Nrn="org.eclipse.elk.port.index",xrn="org.eclipse.elk.commentBox",Frn="org.eclipse.elk.hypernode",$rn="org.eclipse.elk.port.anchor",VB="org.eclipse.elk.partitioning.activate",JB="org.eclipse.elk.partitioning.partition",PS="org.eclipse.elk.position",Rrn="org.eclipse.elk.margins",Brn="org.eclipse.elk.spacing.portsSurrounding",OS="org.eclipse.elk.interactiveLayout",mc="org.eclipse.elk.core.util",Krn={3:1,4:1,5:1,601:1},QWn="NETWORK_SIMPLEX",_rn="SIMPLE",Ar={106:1,47:1},LS="org.eclipse.elk.alg.layered.p1cycles",xl="org.eclipse.elk.alg.layered.p2layers",Hrn={413:1,230:1},YWn={846:1,3:1,4:1},Ku="org.eclipse.elk.alg.layered.p3order",Sr="org.eclipse.elk.alg.layered.p4nodes",ZWn={3:1,4:1,5:1,854:1},Th=1e-5,da="org.eclipse.elk.alg.layered.p4nodes.bk",QB="org.eclipse.elk.alg.layered.p5edges",Ef="org.eclipse.elk.alg.layered.p5edges.orthogonal",YB="org.eclipse.elk.alg.layered.p5edges.orthogonal.direction",ZB=1e-6,kw="org.eclipse.elk.alg.layered.p5edges.splines",nK=.09999999999999998,DS=1e-8,nVn=4.71238898038469,qrn=3.141592653589793,Fl="org.eclipse.elk.alg.mrtree",eK=.10000000149011612,NS="SUPER_ROOT",d8="org.eclipse.elk.alg.mrtree.graph",Grn=-17976931348623157e292,Xc="org.eclipse.elk.alg.mrtree.intermediate",eVn="Processor compute fanout",xS={3:1,6:1,4:1,5:1,534:1,100:1,115:1},tVn="Set neighbors in level",Xy="org.eclipse.elk.alg.mrtree.options",iVn="DESCENDANTS",Urn="org.eclipse.elk.mrtree.compaction",zrn="org.eclipse.elk.mrtree.edgeEndTextureLength",Xrn="org.eclipse.elk.mrtree.treeLevel",Wrn="org.eclipse.elk.mrtree.positionConstraint",Vrn="org.eclipse.elk.mrtree.weighting",Jrn="org.eclipse.elk.mrtree.edgeRoutingMode",Qrn="org.eclipse.elk.mrtree.searchOrder",rVn="Position Constraint",du="org.eclipse.elk.mrtree",cVn="org.eclipse.elk.tree",uVn="Processor arrange level",X4="org.eclipse.elk.alg.mrtree.p2order",yo="org.eclipse.elk.alg.mrtree.p4route",Yrn="org.eclipse.elk.alg.radial",Ed=6.283185307179586,Zrn="Before",ncn=5e-324,FS="After",ecn="org.eclipse.elk.alg.radial.intermediate",oVn="COMPACTION",tK="org.eclipse.elk.alg.radial.intermediate.compaction",sVn={3:1,4:1,5:1,100:1},tcn="org.eclipse.elk.alg.radial.intermediate.optimization",iK="No implementation is available for the layout option ",b8="org.eclipse.elk.alg.radial.options",icn="org.eclipse.elk.radial.centerOnRoot",rcn="org.eclipse.elk.radial.orderId",ccn="org.eclipse.elk.radial.radius",$S="org.eclipse.elk.radial.rotate",rK="org.eclipse.elk.radial.compactor",cK="org.eclipse.elk.radial.compactionStepSize",ucn="org.eclipse.elk.radial.sorter",ocn="org.eclipse.elk.radial.wedgeCriteria",scn="org.eclipse.elk.radial.optimizationCriteria",uK="org.eclipse.elk.radial.rotation.targetAngle",oK="org.eclipse.elk.radial.rotation.computeAdditionalWedgeSpace",fcn="org.eclipse.elk.radial.rotation.outgoingEdgeAngles",fVn="Compaction",hcn="rotation",cs="org.eclipse.elk.radial",hVn="org.eclipse.elk.alg.radial.p1position.wedge",lcn="org.eclipse.elk.alg.radial.sorting",lVn=5.497787143782138,aVn=3.9269908169872414,dVn=2.356194490192345,bVn="org.eclipse.elk.alg.rectpacking",RS="org.eclipse.elk.alg.rectpacking.intermediate",sK="org.eclipse.elk.alg.rectpacking.options",acn="org.eclipse.elk.rectpacking.trybox",dcn="org.eclipse.elk.rectpacking.currentPosition",bcn="org.eclipse.elk.rectpacking.desiredPosition",wcn="org.eclipse.elk.rectpacking.inNewRow",gcn="org.eclipse.elk.rectpacking.widthApproximation.strategy",pcn="org.eclipse.elk.rectpacking.widthApproximation.targetWidth",vcn="org.eclipse.elk.rectpacking.widthApproximation.optimizationGoal",mcn="org.eclipse.elk.rectpacking.widthApproximation.lastPlaceShift",kcn="org.eclipse.elk.rectpacking.packing.strategy",ycn="org.eclipse.elk.rectpacking.packing.compaction.rowHeightReevaluation",jcn="org.eclipse.elk.rectpacking.packing.compaction.iterations",Ecn="org.eclipse.elk.rectpacking.whiteSpaceElimination.strategy",fK="widthApproximation",wVn="Compaction Strategy",gVn="packing.compaction",fo="org.eclipse.elk.rectpacking",W4="org.eclipse.elk.alg.rectpacking.p1widthapproximation",BS="org.eclipse.elk.alg.rectpacking.p2packing",pVn="No Compaction",Mcn="org.eclipse.elk.alg.rectpacking.p3whitespaceelimination",Wy="org.eclipse.elk.alg.rectpacking.util",KS="No implementation available for ",yw="org.eclipse.elk.alg.spore",jw="org.eclipse.elk.alg.spore.options",J0="org.eclipse.elk.sporeCompaction",hK="org.eclipse.elk.underlyingLayoutAlgorithm",Ccn="org.eclipse.elk.processingOrder.treeConstruction",Tcn="org.eclipse.elk.processingOrder.spanningTreeCostFunction",lK="org.eclipse.elk.processingOrder.preferredRoot",aK="org.eclipse.elk.processingOrder.rootSelection",dK="org.eclipse.elk.structure.structureExtractionStrategy",Acn="org.eclipse.elk.compaction.compactionStrategy",Scn="org.eclipse.elk.compaction.orthogonal",Icn="org.eclipse.elk.overlapRemoval.maxIterations",Pcn="org.eclipse.elk.overlapRemoval.runScanline",bK="processingOrder",vVn="overlapRemoval",V4="org.eclipse.elk.sporeOverlap",mVn="org.eclipse.elk.alg.spore.p1structure",wK="org.eclipse.elk.alg.spore.p2processingorder",gK="org.eclipse.elk.alg.spore.p3execution",kVn="Topdown Layout",yVn="Invalid index: ",J4="org.eclipse.elk.core.alg",i2={341:1},Ew={295:1},jVn="Make sure its type is registered with the ",Ocn=" utility class.",Q4="true",pK="false",EVn="Couldn't clone property '",Q0=.05,ho="org.eclipse.elk.core.options",MVn=1.2999999523162842,Y0="org.eclipse.elk.box",Lcn="org.eclipse.elk.expandNodes",Dcn="org.eclipse.elk.box.packingMode",CVn="org.eclipse.elk.algorithm",TVn="org.eclipse.elk.resolvedAlgorithm",Ncn="org.eclipse.elk.bendPoints",AVn="org.eclipse.elk.labelManager",SVn="org.eclipse.elk.scaleFactor",IVn="org.eclipse.elk.childAreaWidth",PVn="org.eclipse.elk.childAreaHeight",OVn="org.eclipse.elk.animate",LVn="org.eclipse.elk.animTimeFactor",DVn="org.eclipse.elk.layoutAncestors",NVn="org.eclipse.elk.maxAnimTime",xVn="org.eclipse.elk.minAnimTime",FVn="org.eclipse.elk.progressBar",$Vn="org.eclipse.elk.validateGraph",RVn="org.eclipse.elk.validateOptions",BVn="org.eclipse.elk.zoomToFit",KVn="org.eclipse.elk.font.name",_Vn="org.eclipse.elk.font.size",xcn="org.eclipse.elk.topdown.sizeApproximator",Fcn="org.eclipse.elk.topdown.scaleCap",HVn="org.eclipse.elk.edge.type",qVn="partitioning",GVn="nodeLabels",_S="portAlignment",vK="nodeSize",mK="port",$cn="portLabels",Vy="topdown",UVn="insideSelfLoops",w8="org.eclipse.elk.fixed",HS="org.eclipse.elk.random",Rcn={3:1,34:1,22:1,347:1},zVn="port must have a parent node to calculate the port side",XVn="The edge needs to have exactly one edge section. Found: ",g8="org.eclipse.elk.core.util.adapters",us="org.eclipse.emf.ecore",r2="org.eclipse.elk.graph",WVn="EMapPropertyHolder",VVn="ElkBendPoint",JVn="ElkGraphElement",QVn="ElkConnectableShape",Bcn="ElkEdge",YVn="ElkEdgeSection",ZVn="EModelElement",nJn="ENamedElement",Kcn="ElkLabel",_cn="ElkNode",Hcn="ElkPort",eJn={94:1,93:1},bv="org.eclipse.emf.common.notify.impl",ba="The feature '",p8="' is not a valid changeable feature",tJn="Expecting null",kK="' is not a valid feature",iJn="The feature ID",rJn=" is not a valid feature ID",Ac=32768,cJn={110:1,94:1,93:1,58:1,54:1,99:1},Jn="org.eclipse.emf.ecore.impl",Md="org.eclipse.elk.graph.impl",v8="Recursive containment not allowed for ",Y4="The datatype '",Z0="' is not a valid classifier",yK="The value '",c2={195:1,3:1,4:1},jK="The class '",Z4="http://www.eclipse.org/elk/ElkGraph",qcn="property",m8="value",EK="source",uJn="properties",oJn="identifier",MK="height",CK="width",TK="parent",AK="text",SK="children",sJn="hierarchical",Gcn="sources",IK="targets",Ucn="sections",qS="bendPoints",zcn="outgoingShape",Xcn="incomingShape",Wcn="outgoingSections",Vcn="incomingSections",br="org.eclipse.emf.common.util",Jcn="Severe implementation error in the Json to ElkGraph importer.",Ah="id",Qi="org.eclipse.elk.graph.json",Qcn="Unhandled parameter types: ",fJn="startPoint",hJn="An edge must have at least one source and one target (edge id: '",nm="').",lJn="Referenced edge section does not exist: ",aJn=" (edge id: '",Ycn="target",dJn="sourcePoint",bJn="targetPoint",GS="group",st="name",wJn="connectableShape cannot be null",gJn="edge cannot be null",PK="Passed edge is not 'simple'.",US="org.eclipse.elk.graph.util",Jy="The 'no duplicates' constraint is violated",OK="targetIndex=",Cd=", size=",LK="sourceIndex=",Sh={3:1,4:1,20:1,31:1,56:1,16:1,15:1,59:1,70:1,66:1,61:1},DK={3:1,4:1,20:1,31:1,56:1,16:1,51:1,15:1,59:1,70:1,66:1,61:1,596:1},zS="logging",pJn="measureExecutionTime",vJn="parser.parse.1",mJn="parser.parse.2",XS="parser.next.1",NK="parser.next.2",kJn="parser.next.3",yJn="parser.next.4",Td="parser.factor.1",Zcn="parser.factor.2",jJn="parser.factor.3",EJn="parser.factor.4",MJn="parser.factor.5",CJn="parser.factor.6",TJn="parser.atom.1",AJn="parser.atom.2",SJn="parser.atom.3",nun="parser.atom.4",xK="parser.atom.5",eun="parser.cc.1",WS="parser.cc.2",IJn="parser.cc.3",PJn="parser.cc.5",tun="parser.cc.6",iun="parser.cc.7",FK="parser.cc.8",OJn="parser.ope.1",LJn="parser.ope.2",DJn="parser.ope.3",m1="parser.descape.1",NJn="parser.descape.2",xJn="parser.descape.3",FJn="parser.descape.4",$Jn="parser.descape.5",os="parser.process.1",RJn="parser.quantifier.1",BJn="parser.quantifier.2",KJn="parser.quantifier.3",_Jn="parser.quantifier.4",run="parser.quantifier.5",HJn="org.eclipse.emf.common.notify",cun={424:1,686:1},qJn={3:1,4:1,20:1,31:1,56:1,16:1,15:1,70:1,61:1},Qy={378:1,152:1},k8="index=",$K={3:1,4:1,5:1,129:1},GJn={3:1,4:1,20:1,31:1,56:1,16:1,15:1,59:1,70:1,61:1},uun={3:1,6:1,4:1,5:1,198:1},UJn={3:1,4:1,5:1,173:1,379:1},zJn=";/?:@&=+$,",XJn="invalid authority: ",WJn="EAnnotation",VJn="ETypedElement",JJn="EStructuralFeature",QJn="EAttribute",YJn="EClassifier",ZJn="EEnumLiteral",nQn="EGenericType",eQn="EOperation",tQn="EParameter",iQn="EReference",rQn="ETypeParameter",$t="org.eclipse.emf.ecore.util",RK={79:1},oun={3:1,20:1,16:1,15:1,61:1,597:1,79:1,71:1,97:1},cQn="org.eclipse.emf.ecore.util.FeatureMap$Entry",_u=8192,Mw=2048,y8="byte",VS="char",j8="double",E8="float",M8="int",C8="long",T8="short",uQn="java.lang.Object",u2={3:1,4:1,5:1,254:1},sun={3:1,4:1,5:1,688:1},oQn={3:1,4:1,20:1,31:1,56:1,16:1,15:1,59:1,70:1,66:1,61:1,71:1},ic={3:1,4:1,20:1,31:1,56:1,16:1,15:1,59:1,70:1,66:1,61:1,79:1,71:1,97:1},Yy="mixed",Ve="http:///org/eclipse/emf/ecore/util/ExtendedMetaData",Es="kind",sQn={3:1,4:1,5:1,689:1},fun={3:1,4:1,20:1,31:1,56:1,16:1,15:1,70:1,61:1,79:1,71:1,97:1},JS={20:1,31:1,56:1,16:1,15:1,61:1,71:1},QS={51:1,128:1,287:1},YS={76:1,343:1},ZS="The value of type '",nI="' must be of type '",o2=1352,Ms="http://www.eclipse.org/emf/2002/Ecore",eI=-32768,nb="constraints",ir="baseType",fQn="getEStructuralFeature",hQn="getFeatureID",A8="feature",lQn="getOperationID",hun="operation",aQn="defaultValue",dQn="eTypeParameters",bQn="isInstance",wQn="getEEnumLiteral",gQn="eContainingClass",rt={57:1},pQn={3:1,4:1,5:1,124:1},vQn="org.eclipse.emf.ecore.resource",mQn={94:1,93:1,599:1,2034:1},BK="org.eclipse.emf.ecore.resource.impl",lun="unspecified",Zy="simple",tI="attribute",kQn="attributeWildcard",iI="element",KK="elementWildcard",Mf="collapse",_K="itemType",rI="namespace",nj="##targetNamespace",Cs="whiteSpace",aun="wildcards",Ad="http://www.eclipse.org/emf/2003/XMLType",HK="##any",em="uninitialized",ej="The multiplicity constraint is violated",cI="org.eclipse.emf.ecore.xml.type",yQn="ProcessingInstruction",jQn="SimpleAnyType",EQn="XMLTypeDocumentRoot",wi="org.eclipse.emf.ecore.xml.type.impl",tj="INF",MQn="processing",CQn="ENTITIES_._base",dun="minLength",bun="ENTITY",uI="NCName",TQn="IDREFS_._base",wun="integer",qK="token",GK="pattern",AQn="[a-zA-Z]{1,8}(-[a-zA-Z0-9]{1,8})*",gun="\\i\\c*",SQn="[\\i-[:]][\\c-[:]]*",IQn="nonPositiveInteger",ij="maxInclusive",pun="NMTOKEN",PQn="NMTOKENS_._base",vun="nonNegativeInteger",rj="minInclusive",OQn="normalizedString",LQn="unsignedByte",DQn="unsignedInt",NQn="18446744073709551615",xQn="unsignedShort",FQn="processingInstruction",k1="org.eclipse.emf.ecore.xml.type.internal",tm=1114111,$Qn="Internal Error: shorthands: \\u",S8="xml:isDigit",UK="xml:isWord",zK="xml:isSpace",XK="xml:isNameChar",WK="xml:isInitialNameChar",RQn="09\u0660\u0669\u06F0\u06F9\u0966\u096F\u09E6\u09EF\u0A66\u0A6F\u0AE6\u0AEF\u0B66\u0B6F\u0BE7\u0BEF\u0C66\u0C6F\u0CE6\u0CEF\u0D66\u0D6F\u0E50\u0E59\u0ED0\u0ED9\u0F20\u0F29",BQn="AZaz\xC0\xD6\xD8\xF6\xF8\u0131\u0134\u013E\u0141\u0148\u014A\u017E\u0180\u01C3\u01CD\u01F0\u01F4\u01F5\u01FA\u0217\u0250\u02A8\u02BB\u02C1\u0386\u0386\u0388\u038A\u038C\u038C\u038E\u03A1\u03A3\u03CE\u03D0\u03D6\u03DA\u03DA\u03DC\u03DC\u03DE\u03DE\u03E0\u03E0\u03E2\u03F3\u0401\u040C\u040E\u044F\u0451\u045C\u045E\u0481\u0490\u04C4\u04C7\u04C8\u04CB\u04CC\u04D0\u04EB\u04EE\u04F5\u04F8\u04F9\u0531\u0556\u0559\u0559\u0561\u0586\u05D0\u05EA\u05F0\u05F2\u0621\u063A\u0641\u064A\u0671\u06B7\u06BA\u06BE\u06C0\u06CE\u06D0\u06D3\u06D5\u06D5\u06E5\u06E6\u0905\u0939\u093D\u093D\u0958\u0961\u0985\u098C\u098F\u0990\u0993\u09A8\u09AA\u09B0\u09B2\u09B2\u09B6\u09B9\u09DC\u09DD\u09DF\u09E1\u09F0\u09F1\u0A05\u0A0A\u0A0F\u0A10\u0A13\u0A28\u0A2A\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59\u0A5C\u0A5E\u0A5E\u0A72\u0A74\u0A85\u0A8B\u0A8D\u0A8D\u0A8F\u0A91\u0A93\u0AA8\u0AAA\u0AB0\u0AB2\u0AB3\u0AB5\u0AB9\u0ABD\u0ABD\u0AE0\u0AE0\u0B05\u0B0C\u0B0F\u0B10\u0B13\u0B28\u0B2A\u0B30\u0B32\u0B33\u0B36\u0B39\u0B3D\u0B3D\u0B5C\u0B5D\u0B5F\u0B61\u0B85\u0B8A\u0B8E\u0B90\u0B92\u0B95\u0B99\u0B9A\u0B9C\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8\u0BAA\u0BAE\u0BB5\u0BB7\u0BB9\u0C05\u0C0C\u0C0E\u0C10\u0C12\u0C28\u0C2A\u0C33\u0C35\u0C39\u0C60\u0C61\u0C85\u0C8C\u0C8E\u0C90\u0C92\u0CA8\u0CAA\u0CB3\u0CB5\u0CB9\u0CDE\u0CDE\u0CE0\u0CE1\u0D05\u0D0C\u0D0E\u0D10\u0D12\u0D28\u0D2A\u0D39\u0D60\u0D61\u0E01\u0E2E\u0E30\u0E30\u0E32\u0E33\u0E40\u0E45\u0E81\u0E82\u0E84\u0E84\u0E87\u0E88\u0E8A\u0E8A\u0E8D\u0E8D\u0E94\u0E97\u0E99\u0E9F\u0EA1\u0EA3\u0EA5\u0EA5\u0EA7\u0EA7\u0EAA\u0EAB\u0EAD\u0EAE\u0EB0\u0EB0\u0EB2\u0EB3\u0EBD\u0EBD\u0EC0\u0EC4\u0F40\u0F47\u0F49\u0F69\u10A0\u10C5\u10D0\u10F6\u1100\u1100\u1102\u1103\u1105\u1107\u1109\u1109\u110B\u110C\u110E\u1112\u113C\u113C\u113E\u113E\u1140\u1140\u114C\u114C\u114E\u114E\u1150\u1150\u1154\u1155\u1159\u1159\u115F\u1161\u1163\u1163\u1165\u1165\u1167\u1167\u1169\u1169\u116D\u116E\u1172\u1173\u1175\u1175\u119E\u119E\u11A8\u11A8\u11AB\u11AB\u11AE\u11AF\u11B7\u11B8\u11BA\u11BA\u11BC\u11C2\u11EB\u11EB\u11F0\u11F0\u11F9\u11F9\u1E00\u1E9B\u1EA0\u1EF9\u1F00\u1F15\u1F18\u1F1D\u1F20\u1F45\u1F48\u1F4D\u1F50\u1F57\u1F59\u1F59\u1F5B\u1F5B\u1F5D\u1F5D\u1F5F\u1F7D\u1F80\u1FB4\u1FB6\u1FBC\u1FBE\u1FBE\u1FC2\u1FC4\u1FC6\u1FCC\u1FD0\u1FD3\u1FD6\u1FDB\u1FE0\u1FEC\u1FF2\u1FF4\u1FF6\u1FFC\u2126\u2126\u212A\u212B\u212E\u212E\u2180\u2182\u3007\u3007\u3021\u3029\u3041\u3094\u30A1\u30FA\u3105\u312C\u4E00\u9FA5\uAC00\uD7A3",KQn="Private Use",VK="ASSIGNED",JK="\0\x7F\x80\xFF\u0100\u017F\u0180\u024F\u0250\u02AF\u02B0\u02FF\u0300\u036F\u0370\u03FF\u0400\u04FF\u0530\u058F\u0590\u05FF\u0600\u06FF\u0700\u074F\u0780\u07BF\u0900\u097F\u0980\u09FF\u0A00\u0A7F\u0A80\u0AFF\u0B00\u0B7F\u0B80\u0BFF\u0C00\u0C7F\u0C80\u0CFF\u0D00\u0D7F\u0D80\u0DFF\u0E00\u0E7F\u0E80\u0EFF\u0F00\u0FFF\u1000\u109F\u10A0\u10FF\u1100\u11FF\u1200\u137F\u13A0\u13FF\u1400\u167F\u1680\u169F\u16A0\u16FF\u1780\u17FF\u1800\u18AF\u1E00\u1EFF\u1F00\u1FFF\u2000\u206F\u2070\u209F\u20A0\u20CF\u20D0\u20FF\u2100\u214F\u2150\u218F\u2190\u21FF\u2200\u22FF\u2300\u23FF\u2400\u243F\u2440\u245F\u2460\u24FF\u2500\u257F\u2580\u259F\u25A0\u25FF\u2600\u26FF\u2700\u27BF\u2800\u28FF\u2E80\u2EFF\u2F00\u2FDF\u2FF0\u2FFF\u3000\u303F\u3040\u309F\u30A0\u30FF\u3100\u312F\u3130\u318F\u3190\u319F\u31A0\u31BF\u3200\u32FF\u3300\u33FF\u3400\u4DB5\u4E00\u9FFF\uA000\uA48F\uA490\uA4CF\uAC00\uD7A3\uE000\uF8FF\uF900\uFAFF\uFB00\uFB4F\uFB50\uFDFF\uFE20\uFE2F\uFE30\uFE4F\uFE50\uFE6F\uFE70\uFEFE\uFEFF\uFEFF\uFF00\uFFEF",mun="UNASSIGNED",im={3:1,122:1},_Qn="org.eclipse.emf.ecore.xml.type.util",oI={3:1,4:1,5:1,381:1},kun="org.eclipse.xtext.xbase.lib",HQn="Cannot add elements to a Range",qQn="Cannot set elements in a Range",GQn="Cannot remove elements from a Range",UQn="user.agent",o,sI,QK,zxe=-1;y.goog=y.goog||{},y.goog.global=y.goog.global||y,sI={},b(1,null,{},vt),o.Fb=function(e){return HTn(this,e)},o.Gb=function(){return this.Rm},o.Hb=function(){return h0(this)},o.Ib=function(){var e;return za(mo(this))+"@"+(e=It(this)>>>0,e.toString(16))},o.equals=function(n){return this.Fb(n)},o.hashCode=function(){return this.Hb()},o.toString=function(){return this.Ib()};var zQn,XQn,WQn;b(297,1,{297:1,2124:1},bY),o.ve=function(e){var t;return t=new bY,t.i=4,e>1?t.c=hLn(this,e-1):t.c=this,t},o.we=function(){return bl(this),this.b},o.xe=function(){return za(this)},o.ye=function(){return bl(this),this.k},o.ze=function(){return(this.i&4)!=0},o.Ae=function(){return(this.i&1)!=0},o.Ib=function(){return CQ(this)},o.i=0;var Xxe=1,Ii=w(vc,"Object",1),yun=w(vc,"Class",297);b(2096,1,jy);var UFe=w(Ey,"Optional",2096);b(1191,2096,jy,ji),o.Fb=function(e){return e===this},o.Hb=function(){return 2040732332},o.Ib=function(){return"Optional.absent()"},o.Jb=function(e){return Re(e),n6(),YK};var YK,zFe=w(Ey,"Absent",1191);b(636,1,{},DL);var XFe=w(Ey,"Joiner",636),Wxe=Ut(Ey,"Predicate");b(589,1,{178:1,589:1,3:1,46:1},p9n),o.Mb=function(e){return hRn(this,e)},o.Lb=function(e){return hRn(this,e)},o.Fb=function(e){var t;return L(e,589)?(t=u(e,589),len(this.a,t.a)):!1},o.Hb=function(){return kY(this.a)+306654252},o.Ib=function(){return NMe(this.a)};var WFe=w(Ey,"Predicates/AndPredicate",589);b(419,2096,{419:1,3:1},PE),o.Fb=function(e){var t;return L(e,419)?(t=u(e,419),wt(this.a,t.a)):!1},o.Hb=function(){return 1502476572+It(this.a)},o.Ib=function(){return vXn+this.a+")"},o.Jb=function(e){return new PE(PC(e.Kb(this.a),"the Function passed to Optional.transform() must not return null."))};var VFe=w(Ey,"Present",419);b(204,1,L4),o.Nb=function(e){Wi(this,e)},o.Qb=function(){OEn()};var JFe=w(Sn,"UnmodifiableIterator",204);b(2076,204,D4),o.Qb=function(){OEn()},o.Rb=function(e){throw C(new Be)},o.Wb=function(e){throw C(new Be)};var QFe=w(Sn,"UnmodifiableListIterator",2076);b(399,2076,D4),o.Ob=function(){return this.c0},o.Pb=function(){if(this.c>=this.d)throw C(new uc);return this.Xb(this.c++)},o.Tb=function(){return this.c},o.Ub=function(){if(this.c<=0)throw C(new uc);return this.Xb(--this.c)},o.Vb=function(){return this.c-1},o.c=0,o.d=0;var YFe=w(Sn,"AbstractIndexedListIterator",399);b(713,204,L4),o.Ob=function(){return xx(this)},o.Pb=function(){return mQ(this)},o.e=1;var ZFe=w(Sn,"AbstractIterator",713);b(2084,1,{229:1}),o.Zb=function(){var e;return e=this.f,e||(this.f=this.ac())},o.Fb=function(e){return iF(this,e)},o.Hb=function(){return It(this.Zb())},o.dc=function(){return this.gc()==0},o.ec=function(){return Mp(this)},o.Ib=function(){return tc(this.Zb())};var n$e=w(Sn,"AbstractMultimap",2084);b(742,2084,pd),o.$b=function(){kT(this)},o._b=function(e){return JEn(this,e)},o.ac=function(){return new o3(this,this.c)},o.ic=function(e){return this.hc()},o.bc=function(){return new jg(this,this.c)},o.jc=function(){return this.mc(this.hc())},o.kc=function(){return new wEn(this)},o.lc=function(){return a$(this.c.vc().Nc(),new ci,64,this.d)},o.cc=function(e){return kt(this,e)},o.fc=function(e){return xk(this,e)},o.gc=function(){return this.d},o.mc=function(e){return Fn(),new Wv(e)},o.nc=function(){return new bEn(this)},o.oc=function(){return a$(this.c.Cc().Nc(),new Mc,64,this.d)},o.pc=function(e,t){return new YC(this,e,t,null)},o.d=0;var e$e=w(Sn,"AbstractMapBasedMultimap",742);b(1696,742,pd),o.hc=function(){return new Zc(this.a)},o.jc=function(){return Fn(),Fn(),rr},o.cc=function(e){return u(kt(this,e),15)},o.fc=function(e){return u(xk(this,e),15)},o.Zb=function(){return Pp(this)},o.Fb=function(e){return iF(this,e)},o.qc=function(e){return u(kt(this,e),15)},o.rc=function(e){return u(xk(this,e),15)},o.mc=function(e){return RN(u(e,15))},o.pc=function(e,t){return pDn(this,e,u(t,15),null)};var t$e=w(Sn,"AbstractListMultimap",1696);b(748,1,$i),o.Nb=function(e){Wi(this,e)},o.Ob=function(){return this.c.Ob()||this.e.Ob()},o.Pb=function(){var e;return this.e.Ob()||(e=u(this.c.Pb(),44),this.b=e.ld(),this.a=u(e.md(),16),this.e=this.a.Kc()),this.sc(this.b,this.e.Pb())},o.Qb=function(){this.e.Qb(),u(gs(this.a),16).dc()&&this.c.Qb(),--this.d.d};var i$e=w(Sn,"AbstractMapBasedMultimap/Itr",748);b(1129,748,$i,bEn),o.sc=function(e,t){return t};var r$e=w(Sn,"AbstractMapBasedMultimap/1",1129);b(1130,1,{},Mc),o.Kb=function(e){return u(e,16).Nc()};var c$e=w(Sn,"AbstractMapBasedMultimap/1methodref$spliterator$Type",1130);b(1131,748,$i,wEn),o.sc=function(e,t){return new t0(e,t)};var u$e=w(Sn,"AbstractMapBasedMultimap/2",1131),jun=Ut(me,"Map");b(2065,1,z0),o.wc=function(e){h5(this,e)},o.yc=function(e,t,i){return jF(this,e,t,i)},o.$b=function(){this.vc().$b()},o.tc=function(e){return WF(this,e)},o._b=function(e){return!!fnn(this,e,!1)},o.uc=function(e){var t,i,r;for(i=this.vc().Kc();i.Ob();)if(t=u(i.Pb(),44),r=t.md(),F(e)===F(r)||e!=null&&wt(e,r))return!0;return!1},o.Fb=function(e){var t,i,r;if(e===this)return!0;if(!L(e,85)||(r=u(e,85),this.gc()!=r.gc()))return!1;for(i=r.vc().Kc();i.Ob();)if(t=u(i.Pb(),44),!this.tc(t))return!1;return!0},o.xc=function(e){return zr(fnn(this,e,!1))},o.Hb=function(){return hY(this.vc())},o.dc=function(){return this.gc()==0},o.ec=function(){return new Ha(this)},o.zc=function(e,t){throw C(new ql("Put not supported on this map"))},o.Ac=function(e){f5(this,e)},o.Bc=function(e){return zr(fnn(this,e,!0))},o.gc=function(){return this.vc().gc()},o.Ib=function(){return j_n(this)},o.Cc=function(){return new hl(this)};var o$e=w(me,"AbstractMap",2065);b(2085,2065,z0),o.bc=function(){return new YE(this)},o.vc=function(){return dPn(this)},o.ec=function(){var e;return e=this.g,e||(this.g=this.bc())},o.Cc=function(){var e;return e=this.i,e||(this.i=new KMn(this))};var s$e=w(Sn,"Maps/ViewCachingAbstractMap",2085);b(402,2085,z0,o3),o.xc=function(e){return Zme(this,e)},o.Bc=function(e){return j8e(this,e)},o.$b=function(){this.d==this.e.c?this.e.$b():oC(new jV(this))},o._b=function(e){return WRn(this.d,e)},o.Ec=function(){return new v9n(this)},o.Dc=function(){return this.Ec()},o.Fb=function(e){return this===e||wt(this.d,e)},o.Hb=function(){return It(this.d)},o.ec=function(){return this.e.ec()},o.gc=function(){return this.d.gc()},o.Ib=function(){return tc(this.d)};var f$e=w(Sn,"AbstractMapBasedMultimap/AsMap",402),xo=Ut(vc,"Iterable");b(31,1,ww),o.Jc=function(e){Ji(this,e)},o.Lc=function(){return this.Oc()},o.Nc=function(){return new Nn(this,0)},o.Oc=function(){return new Pn(null,this.Nc())},o.Fc=function(e){throw C(new ql("Add not supported on this collection"))},o.Gc=function(e){return zi(this,e)},o.$b=function(){sJ(this)},o.Hc=function(e){return ew(this,e,!1)},o.Ic=function(e){return Ak(this,e)},o.dc=function(){return this.gc()==0},o.Mc=function(e){return ew(this,e,!0)},o.Pc=function(){return LV(this)},o.Qc=function(e){return S5(this,e)},o.Ib=function(){return ca(this)};var h$e=w(me,"AbstractCollection",31),Ts=Ut(me,"Set");b(Gf,31,Bu),o.Nc=function(){return new Nn(this,1)},o.Fb=function(e){return BBn(this,e)},o.Hb=function(){return hY(this)};var l$e=w(me,"AbstractSet",Gf);b(2068,Gf,Bu);var a$e=w(Sn,"Sets/ImprovedAbstractSet",2068);b(2069,2068,Bu),o.$b=function(){this.Rc().$b()},o.Hc=function(e){return EBn(this,e)},o.dc=function(){return this.Rc().dc()},o.Mc=function(e){var t;return this.Hc(e)&&L(e,44)?(t=u(e,44),this.Rc().ec().Mc(t.ld())):!1},o.gc=function(){return this.Rc().gc()};var d$e=w(Sn,"Maps/EntrySet",2069);b(1127,2069,Bu,v9n),o.Hc=function(e){return $Y(this.a.d.vc(),e)},o.Kc=function(){return new jV(this.a)},o.Rc=function(){return this.a},o.Mc=function(e){var t;return $Y(this.a.d.vc(),e)?(t=u(gs(u(e,44)),44),_4e(this.a.e,t.ld()),!0):!1},o.Nc=function(){return R7(this.a.d.vc().Nc(),new m9n(this.a))};var b$e=w(Sn,"AbstractMapBasedMultimap/AsMap/AsMapEntries",1127);b(1128,1,{},m9n),o.Kb=function(e){return wNn(this.a,u(e,44))};var w$e=w(Sn,"AbstractMapBasedMultimap/AsMap/AsMapEntries/0methodref$wrapEntry$Type",1128);b(746,1,$i,jV),o.Nb=function(e){Wi(this,e)},o.Pb=function(){var e;return e=u(this.b.Pb(),44),this.a=u(e.md(),16),wNn(this.c,e)},o.Ob=function(){return this.b.Ob()},o.Qb=function(){g3(!!this.a),this.b.Qb(),this.c.e.d-=this.a.gc(),this.a.$b(),this.a=null};var g$e=w(Sn,"AbstractMapBasedMultimap/AsMap/AsMapIterator",746);b(542,2068,Bu,YE),o.$b=function(){this.b.$b()},o.Hc=function(e){return this.b._b(e)},o.Jc=function(e){Re(e),this.b.wc(new F9n(e))},o.dc=function(){return this.b.dc()},o.Kc=function(){return new e6(this.b.vc().Kc())},o.Mc=function(e){return this.b._b(e)?(this.b.Bc(e),!0):!1},o.gc=function(){return this.b.gc()};var p$e=w(Sn,"Maps/KeySet",542);b(327,542,Bu,jg),o.$b=function(){var e;oC((e=this.b.vc().Kc(),new zz(this,e)))},o.Ic=function(e){return this.b.ec().Ic(e)},o.Fb=function(e){return this===e||wt(this.b.ec(),e)},o.Hb=function(){return It(this.b.ec())},o.Kc=function(){var e;return e=this.b.vc().Kc(),new zz(this,e)},o.Mc=function(e){var t,i;return i=0,t=u(this.b.Bc(e),16),t&&(i=t.gc(),t.$b(),this.a.d-=i),i>0},o.Nc=function(){return this.b.ec().Nc()};var v$e=w(Sn,"AbstractMapBasedMultimap/KeySet",327);b(747,1,$i,zz),o.Nb=function(e){Wi(this,e)},o.Ob=function(){return this.c.Ob()},o.Pb=function(){return this.a=u(this.c.Pb(),44),this.a.ld()},o.Qb=function(){var e;g3(!!this.a),e=u(this.a.md(),16),this.c.Qb(),this.b.a.d-=e.gc(),e.$b(),this.a=null};var m$e=w(Sn,"AbstractMapBasedMultimap/KeySet/1",747);b(503,402,{85:1,133:1},O7),o.bc=function(){return this.Sc()},o.ec=function(){return this.Uc()},o.Sc=function(){return new c7(this.c,this.Wc())},o.Tc=function(){return this.Wc().Tc()},o.Uc=function(){var e;return e=this.b,e||(this.b=this.Sc())},o.Vc=function(){return this.Wc().Vc()},o.Wc=function(){return u(this.d,133)};var k$e=w(Sn,"AbstractMapBasedMultimap/SortedAsMap",503);b(446,503,Otn,x6),o.bc=function(){return new u3(this.a,u(u(this.d,133),139))},o.Sc=function(){return new u3(this.a,u(u(this.d,133),139))},o.ec=function(){var e;return e=this.b,u(e||(this.b=new u3(this.a,u(u(this.d,133),139))),277)},o.Uc=function(){var e;return e=this.b,u(e||(this.b=new u3(this.a,u(u(this.d,133),139))),277)},o.Wc=function(){return u(u(this.d,133),139)},o.Xc=function(e){return u(u(this.d,133),139).Xc(e)},o.Yc=function(e){return u(u(this.d,133),139).Yc(e)},o.Zc=function(e,t){return new x6(this.a,u(u(this.d,133),139).Zc(e,t))},o.$c=function(e){return u(u(this.d,133),139).$c(e)},o._c=function(e){return u(u(this.d,133),139)._c(e)},o.ad=function(e,t){return new x6(this.a,u(u(this.d,133),139).ad(e,t))};var y$e=w(Sn,"AbstractMapBasedMultimap/NavigableAsMap",446);b(502,327,mXn,c7),o.Nc=function(){return this.b.ec().Nc()};var j$e=w(Sn,"AbstractMapBasedMultimap/SortedKeySet",502);b(401,502,Ltn,u3);var E$e=w(Sn,"AbstractMapBasedMultimap/NavigableKeySet",401);b(551,31,ww,YC),o.Fc=function(e){var t,i;return co(this),i=this.d.dc(),t=this.d.Fc(e),t&&(++this.f.d,i&&x7(this)),t},o.Gc=function(e){var t,i,r;return e.dc()?!1:(r=(co(this),this.d.gc()),t=this.d.Gc(e),t&&(i=this.d.gc(),this.f.d+=i-r,r==0&&x7(this)),t)},o.$b=function(){var e;e=(co(this),this.d.gc()),e!=0&&(this.d.$b(),this.f.d-=e,dC(this))},o.Hc=function(e){return co(this),this.d.Hc(e)},o.Ic=function(e){return co(this),this.d.Ic(e)},o.Fb=function(e){return e===this?!0:(co(this),wt(this.d,e))},o.Hb=function(){return co(this),It(this.d)},o.Kc=function(){return co(this),new cV(this)},o.Mc=function(e){var t;return co(this),t=this.d.Mc(e),t&&(--this.f.d,dC(this)),t},o.gc=function(){return STn(this)},o.Nc=function(){return co(this),this.d.Nc()},o.Ib=function(){return co(this),tc(this.d)};var M$e=w(Sn,"AbstractMapBasedMultimap/WrappedCollection",551),ss=Ut(me,"List");b(744,551,{20:1,31:1,16:1,15:1},xV),o.jd=function(e){cd(this,e)},o.Nc=function(){return co(this),this.d.Nc()},o.bd=function(e,t){var i;co(this),i=this.d.dc(),u(this.d,15).bd(e,t),++this.a.d,i&&x7(this)},o.cd=function(e,t){var i,r,c;return t.dc()?!1:(c=(co(this),this.d.gc()),i=u(this.d,15).cd(e,t),i&&(r=this.d.gc(),this.a.d+=r-c,c==0&&x7(this)),i)},o.Xb=function(e){return co(this),u(this.d,15).Xb(e)},o.dd=function(e){return co(this),u(this.d,15).dd(e)},o.ed=function(){return co(this),new rAn(this)},o.fd=function(e){return co(this),new AOn(this,e)},o.gd=function(e){var t;return co(this),t=u(this.d,15).gd(e),--this.a.d,dC(this),t},o.hd=function(e,t){return co(this),u(this.d,15).hd(e,t)},o.kd=function(e,t){return co(this),pDn(this.a,this.e,u(this.d,15).kd(e,t),this.b?this.b:this)};var C$e=w(Sn,"AbstractMapBasedMultimap/WrappedList",744);b(1126,744,{20:1,31:1,16:1,15:1,59:1},XAn);var T$e=w(Sn,"AbstractMapBasedMultimap/RandomAccessWrappedList",1126);b(628,1,$i,cV),o.Nb=function(e){Wi(this,e)},o.Ob=function(){return A3(this),this.b.Ob()},o.Pb=function(){return A3(this),this.b.Pb()},o.Qb=function(){OAn(this)};var A$e=w(Sn,"AbstractMapBasedMultimap/WrappedCollection/WrappedIterator",628);b(745,628,zh,rAn,AOn),o.Qb=function(){OAn(this)},o.Rb=function(e){var t;t=STn(this.a)==0,(A3(this),u(this.b,128)).Rb(e),++this.a.a.d,t&&x7(this.a)},o.Sb=function(){return(A3(this),u(this.b,128)).Sb()},o.Tb=function(){return(A3(this),u(this.b,128)).Tb()},o.Ub=function(){return(A3(this),u(this.b,128)).Ub()},o.Vb=function(){return(A3(this),u(this.b,128)).Vb()},o.Wb=function(e){(A3(this),u(this.b,128)).Wb(e)};var S$e=w(Sn,"AbstractMapBasedMultimap/WrappedList/WrappedListIterator",745);b(743,551,mXn,MW),o.Nc=function(){return co(this),this.d.Nc()};var I$e=w(Sn,"AbstractMapBasedMultimap/WrappedSortedSet",743);b(1125,743,Ltn,ZTn);var P$e=w(Sn,"AbstractMapBasedMultimap/WrappedNavigableSet",1125);b(1124,551,Bu,bSn),o.Nc=function(){return co(this),this.d.Nc()};var O$e=w(Sn,"AbstractMapBasedMultimap/WrappedSet",1124);b(1133,1,{},ci),o.Kb=function(e){return Q4e(u(e,44))};var L$e=w(Sn,"AbstractMapBasedMultimap/lambda$1$Type",1133);b(1132,1,{},E9n),o.Kb=function(e){return new t0(this.a,e)};var D$e=w(Sn,"AbstractMapBasedMultimap/lambda$2$Type",1132),Sd=Ut(me,"Map/Entry");b(358,1,bR),o.Fb=function(e){var t;return L(e,44)?(t=u(e,44),ah(this.ld(),t.ld())&&ah(this.md(),t.md())):!1},o.Hb=function(){var e,t;return e=this.ld(),t=this.md(),(e==null?0:It(e))^(t==null?0:It(t))},o.nd=function(e){throw C(new Be)},o.Ib=function(){return this.ld()+"="+this.md()};var N$e=w(Sn,kXn,358);b(2086,31,ww),o.$b=function(){this.od().$b()},o.Hc=function(e){var t;return L(e,44)?(t=u(e,44),v3e(this.od(),t.ld(),t.md())):!1},o.Mc=function(e){var t;return L(e,44)?(t=u(e,44),YLn(this.od(),t.ld(),t.md())):!1},o.gc=function(){return this.od().d};var x$e=w(Sn,"Multimaps/Entries",2086);b(749,2086,ww,CU),o.Kc=function(){return this.a.kc()},o.od=function(){return this.a},o.Nc=function(){return this.a.lc()};var F$e=w(Sn,"AbstractMultimap/Entries",749);b(750,749,Bu,Ez),o.Nc=function(){return this.a.lc()},o.Fb=function(e){return Inn(this,e)},o.Hb=function(){return f$n(this)};var $$e=w(Sn,"AbstractMultimap/EntrySet",750);b(751,31,ww,TU),o.$b=function(){this.a.$b()},o.Hc=function(e){return g8e(this.a,e)},o.Kc=function(){return this.a.nc()},o.gc=function(){return this.a.d},o.Nc=function(){return this.a.oc()};var R$e=w(Sn,"AbstractMultimap/Values",751);b(2087,31,{849:1,20:1,31:1,16:1}),o.Jc=function(e){Re(e),Mg(this).Jc(new H9n(e))},o.Nc=function(){var e;return e=Mg(this).Nc(),a$(e,new Um,64|e.yd()&1296,this.a.d)},o.Fc=function(e){return Oz(),!0},o.Gc=function(e){return Re(this),Re(e),L(e,552)?y3e(u(e,849)):!e.dc()&&Tx(this,e.Kc())},o.Hc=function(e){var t;return t=u(nw(Pp(this.a),e),16),(t?t.gc():0)>0},o.Fb=function(e){return qTe(this,e)},o.Hb=function(){return It(Mg(this))},o.dc=function(){return Mg(this).dc()},o.Mc=function(e){return xHn(this,e,1)>0},o.Ib=function(){return tc(Mg(this))};var B$e=w(Sn,"AbstractMultiset",2087);b(2089,2068,Bu),o.$b=function(){kT(this.a.a)},o.Hc=function(e){var t,i;return L(e,504)?(i=u(e,425),u(i.a.md(),16).gc()<=0?!1:(t=CLn(this.a,i.a.ld()),t==u(i.a.md(),16).gc())):!1},o.Mc=function(e){var t,i,r,c;return L(e,504)&&(i=u(e,425),t=i.a.ld(),r=u(i.a.md(),16).gc(),r!=0)?(c=this.a,DCe(c,t,r)):!1};var K$e=w(Sn,"Multisets/EntrySet",2089);b(1139,2089,Bu,M9n),o.Kc=function(){return new kEn(dPn(Pp(this.a.a)).Kc())},o.gc=function(){return Pp(this.a.a).gc()};var _$e=w(Sn,"AbstractMultiset/EntrySet",1139);b(627,742,pd),o.hc=function(){return this.pd()},o.jc=function(){return this.qd()},o.cc=function(e){return this.rd(e)},o.fc=function(e){return this.sd(e)},o.Zb=function(){var e;return e=this.f,e||(this.f=this.ac())},o.qd=function(){return Fn(),Fn(),bI},o.Fb=function(e){return iF(this,e)},o.rd=function(e){return u(kt(this,e),21)},o.sd=function(e){return u(xk(this,e),21)},o.mc=function(e){return Fn(),new e3(u(e,21))},o.pc=function(e,t){return new bSn(this,e,u(t,21))};var H$e=w(Sn,"AbstractSetMultimap",627);b(1723,627,pd),o.hc=function(){return new Xl(this.b)},o.pd=function(){return new Xl(this.b)},o.jc=function(){return tJ(new Xl(this.b))},o.qd=function(){return tJ(new Xl(this.b))},o.cc=function(e){return u(u(kt(this,e),21),87)},o.rd=function(e){return u(u(kt(this,e),21),87)},o.fc=function(e){return u(u(xk(this,e),21),87)},o.sd=function(e){return u(u(xk(this,e),21),87)},o.mc=function(e){return L(e,277)?tJ(u(e,277)):(Fn(),new fW(u(e,87)))},o.Zb=function(){var e;return e=this.f,e||(this.f=L(this.c,139)?new x6(this,u(this.c,139)):L(this.c,133)?new O7(this,u(this.c,133)):new o3(this,this.c))},o.pc=function(e,t){return L(t,277)?new ZTn(this,e,u(t,277)):new MW(this,e,u(t,87))};var q$e=w(Sn,"AbstractSortedSetMultimap",1723);b(1724,1723,pd),o.Zb=function(){var e;return e=this.f,u(u(e||(this.f=L(this.c,139)?new x6(this,u(this.c,139)):L(this.c,133)?new O7(this,u(this.c,133)):new o3(this,this.c)),133),139)},o.ec=function(){var e;return e=this.i,u(u(e||(this.i=L(this.c,139)?new u3(this,u(this.c,139)):L(this.c,133)?new c7(this,u(this.c,133)):new jg(this,this.c)),87),277)},o.bc=function(){return L(this.c,139)?new u3(this,u(this.c,139)):L(this.c,133)?new c7(this,u(this.c,133)):new jg(this,this.c)};var G$e=w(Sn,"AbstractSortedKeySortedSetMultimap",1724);b(2109,1,{2046:1}),o.Fb=function(e){return bje(this,e)},o.Hb=function(){var e;return hY((e=this.g,e||(this.g=new rL(this))))},o.Ib=function(){var e;return j_n((e=this.f,e||(this.f=new cW(this))))};var U$e=w(Sn,"AbstractTable",2109);b(679,Gf,Bu,rL),o.$b=function(){LEn()},o.Hc=function(e){var t,i;return L(e,479)?(t=u(e,697),i=u(nw($Pn(this.a),_1(t.c.e,t.b)),85),!!i&&$Y(i.vc(),new t0(_1(t.c.c,t.a),$p(t.c,t.b,t.a)))):!1},o.Kc=function(){return vpe(this.a)},o.Mc=function(e){var t,i;return L(e,479)?(t=u(e,697),i=u(nw($Pn(this.a),_1(t.c.e,t.b)),85),!!i&&V8e(i.vc(),new t0(_1(t.c.c,t.a),$p(t.c,t.b,t.a)))):!1},o.gc=function(){return KIn(this.a)},o.Nc=function(){return M3e(this.a)};var z$e=w(Sn,"AbstractTable/CellSet",679);b(2025,31,ww,T9n),o.$b=function(){LEn()},o.Hc=function(e){return uEe(this.a,e)},o.Kc=function(){return mpe(this.a)},o.gc=function(){return KIn(this.a)},o.Nc=function(){return QLn(this.a)};var X$e=w(Sn,"AbstractTable/Values",2025);b(1697,1696,pd);var W$e=w(Sn,"ArrayListMultimapGwtSerializationDependencies",1697);b(520,1697,pd,FL,MJ),o.hc=function(){return new Zc(this.a)},o.a=0;var V$e=w(Sn,"ArrayListMultimap",520);b(678,2109,{678:1,2046:1,3:1},WHn);var J$e=w(Sn,"ArrayTable",678);b(2021,399,D4,LAn),o.Xb=function(e){return new wY(this.a,e)};var Q$e=w(Sn,"ArrayTable/1",2021);b(2022,1,{},k9n),o.td=function(e){return new wY(this.a,e)};var Y$e=w(Sn,"ArrayTable/1methodref$getCell$Type",2022);b(2110,1,{697:1}),o.Fb=function(e){var t;return e===this?!0:L(e,479)?(t=u(e,697),ah(_1(this.c.e,this.b),_1(t.c.e,t.b))&&ah(_1(this.c.c,this.a),_1(t.c.c,t.a))&&ah($p(this.c,this.b,this.a),$p(t.c,t.b,t.a))):!1},o.Hb=function(){return Nk(S(T(Ii,1),Gn,1,5,[_1(this.c.e,this.b),_1(this.c.c,this.a),$p(this.c,this.b,this.a)]))},o.Ib=function(){return"("+_1(this.c.e,this.b)+","+_1(this.c.c,this.a)+")="+$p(this.c,this.b,this.a)};var Z$e=w(Sn,"Tables/AbstractCell",2110);b(479,2110,{479:1,697:1},wY),o.a=0,o.b=0,o.d=0;var nRe=w(Sn,"ArrayTable/2",479);b(2024,1,{},y9n),o.td=function(e){return jxn(this.a,e)};var eRe=w(Sn,"ArrayTable/2methodref$getValue$Type",2024);b(2023,399,D4,DAn),o.Xb=function(e){return jxn(this.a,e)};var tRe=w(Sn,"ArrayTable/3",2023);b(2077,2065,z0),o.$b=function(){oC(this.kc())},o.vc=function(){return new x9n(this)},o.lc=function(){return new pOn(this.kc(),this.gc())};var iRe=w(Sn,"Maps/IteratorBasedAbstractMap",2077);b(842,2077,z0),o.$b=function(){throw C(new Be)},o._b=function(e){return QEn(this.c,e)},o.kc=function(){return new NAn(this,this.c.b.c.gc())},o.lc=function(){return cN(this.c.b.c.gc(),16,new j9n(this))},o.xc=function(e){var t;return t=u(F6(this.c,e),17),t?this.vd(t.a):null},o.dc=function(){return this.c.b.c.dc()},o.ec=function(){return dN(this.c)},o.zc=function(e,t){var i;if(i=u(F6(this.c,e),17),!i)throw C(new Yn(this.ud()+" "+e+" not in "+dN(this.c)));return this.wd(i.a,t)},o.Bc=function(e){throw C(new Be)},o.gc=function(){return this.c.b.c.gc()};var rRe=w(Sn,"ArrayTable/ArrayMap",842);b(2020,1,{},j9n),o.td=function(e){return BPn(this.a,e)};var cRe=w(Sn,"ArrayTable/ArrayMap/0methodref$getEntry$Type",2020);b(2018,358,bR,EMn),o.ld=function(){return Lde(this.a,this.b)},o.md=function(){return this.a.vd(this.b)},o.nd=function(e){return this.a.wd(this.b,e)},o.b=0;var uRe=w(Sn,"ArrayTable/ArrayMap/1",2018);b(2019,399,D4,NAn),o.Xb=function(e){return BPn(this.a,e)};var oRe=w(Sn,"ArrayTable/ArrayMap/2",2019);b(2017,842,z0,TPn),o.ud=function(){return"Column"},o.vd=function(e){return $p(this.b,this.a,e)},o.wd=function(e,t){return V$n(this.b,this.a,e,t)},o.a=0;var sRe=w(Sn,"ArrayTable/Row",2017);b(843,842,z0,cW),o.vd=function(e){return new TPn(this.a,e)},o.zc=function(e,t){return u(t,85),Zle()},o.wd=function(e,t){return u(t,85),n1e()},o.ud=function(){return"Row"};var fRe=w(Sn,"ArrayTable/RowMap",843);b(1157,1,Do,MMn),o.Ad=function(e){return(this.a.yd()&-262&e)!=0},o.yd=function(){return this.a.yd()&-262},o.zd=function(){return this.a.zd()},o.Nb=function(e){this.a.Nb(new TMn(e,this.b))},o.Bd=function(e){return this.a.Bd(new CMn(e,this.b))};var hRe=w(Sn,"CollectSpliterators/1",1157);b(1158,1,le,CMn),o.Cd=function(e){this.a.Cd(this.b.Kb(e))};var lRe=w(Sn,"CollectSpliterators/1/lambda$0$Type",1158);b(1159,1,le,TMn),o.Cd=function(e){this.a.Cd(this.b.Kb(e))};var aRe=w(Sn,"CollectSpliterators/1/lambda$1$Type",1159);b(1154,1,Do,VSn),o.Ad=function(e){return((16464|this.b)&e)!=0},o.yd=function(){return 16464|this.b},o.zd=function(){return this.a.zd()},o.Nb=function(e){this.a.Qe(new SMn(e,this.c))},o.Bd=function(e){return this.a.Re(new AMn(e,this.c))},o.b=0;var dRe=w(Sn,"CollectSpliterators/1WithCharacteristics",1154);b(1155,1,My,AMn),o.Dd=function(e){this.a.Cd(this.b.td(e))};var bRe=w(Sn,"CollectSpliterators/1WithCharacteristics/lambda$0$Type",1155);b(1156,1,My,SMn),o.Dd=function(e){this.a.Cd(this.b.td(e))};var wRe=w(Sn,"CollectSpliterators/1WithCharacteristics/lambda$1$Type",1156);b(1150,1,Do),o.Ad=function(e){return(this.a&e)!=0},o.yd=function(){return this.a},o.zd=function(){return this.e&&(this.b=XX(this.b,this.e.zd())),XX(this.b,0)},o.Nb=function(e){this.e&&(this.e.Nb(e),this.e=null),this.c.Nb(new IMn(this,e)),this.b=0},o.Bd=function(e){for(;;){if(this.e&&this.e.Bd(e))return C6(this.b,Cy)&&(this.b=vs(this.b,1)),!0;if(this.e=null,!this.c.Bd(new A9n(this)))return!1}},o.a=0,o.b=0;var gRe=w(Sn,"CollectSpliterators/FlatMapSpliterator",1150);b(1152,1,le,A9n),o.Cd=function(e){P0e(this.a,e)};var pRe=w(Sn,"CollectSpliterators/FlatMapSpliterator/lambda$0$Type",1152);b(1153,1,le,IMn),o.Cd=function(e){epe(this.a,this.b,e)};var vRe=w(Sn,"CollectSpliterators/FlatMapSpliterator/lambda$1$Type",1153);b(1151,1150,Do,wDn);var mRe=w(Sn,"CollectSpliterators/FlatMapSpliteratorOfObject",1151);b(253,1,wR),o.Fd=function(e){return this.Ed(u(e,253))},o.Ed=function(e){var t;return e==(TL(),n_)?1:e==(CL(),ZK)?-1:(t=(tC(),jk(this.a,e.a)),t!=0?t:L(this,526)==L(e,526)?0:L(this,526)?1:-1)},o.Id=function(){return this.a},o.Fb=function(e){return xZ(this,e)};var kRe=w(Sn,"Cut",253);b(1823,253,wR,dEn),o.Ed=function(e){return e==this?0:1},o.Gd=function(e){throw C(new rz)},o.Hd=function(e){e.a+="+\u221E)"},o.Id=function(){throw C(new $r(jXn))},o.Hb=function(){return al(),kZ(this)},o.Jd=function(e){return!1},o.Ib=function(){return"+\u221E"};var ZK,yRe=w(Sn,"Cut/AboveAll",1823);b(526,253,{253:1,526:1,3:1,34:1},KAn),o.Gd=function(e){Kc((e.a+="(",e),this.a)},o.Hd=function(e){z1(Kc(e,this.a),93)},o.Hb=function(){return~It(this.a)},o.Jd=function(e){return tC(),jk(this.a,e)<0},o.Ib=function(){return"/"+this.a+"\\"};var jRe=w(Sn,"Cut/AboveValue",526);b(1822,253,wR,aEn),o.Ed=function(e){return e==this?0:-1},o.Gd=function(e){e.a+="(-\u221E"},o.Hd=function(e){throw C(new rz)},o.Id=function(){throw C(new $r(jXn))},o.Hb=function(){return al(),kZ(this)},o.Jd=function(e){return!0},o.Ib=function(){return"-\u221E"};var n_,ERe=w(Sn,"Cut/BelowAll",1822);b(1824,253,wR,_An),o.Gd=function(e){Kc((e.a+="[",e),this.a)},o.Hd=function(e){z1(Kc(e,this.a),41)},o.Hb=function(){return It(this.a)},o.Jd=function(e){return tC(),jk(this.a,e)<=0},o.Ib=function(){return"\\"+this.a+"/"};var MRe=w(Sn,"Cut/BelowValue",1824);b(547,1,Xh),o.Jc=function(e){Ji(this,e)},o.Ib=function(){return g9e(u(PC(this,"use Optional.orNull() instead of Optional.or(null)"),20).Kc())};var CRe=w(Sn,"FluentIterable",547);b(442,547,Xh,S6),o.Kc=function(){return new he(de(this.a.Kc(),new zn))};var TRe=w(Sn,"FluentIterable/2",442);b(1059,547,Xh,VTn),o.Kc=function(){return Bh(this)};var ARe=w(Sn,"FluentIterable/3",1059);b(724,399,D4,uW),o.Xb=function(e){return this.a[e].Kc()};var SRe=w(Sn,"FluentIterable/3/1",724);b(2070,1,{}),o.Ib=function(){return tc(this.Kd().b)};var IRe=w(Sn,"ForwardingObject",2070);b(2071,2070,EXn),o.Kd=function(){return this.Ld()},o.Jc=function(e){Ji(this,e)},o.Lc=function(){return this.Oc()},o.Nc=function(){return new Nn(this,0)},o.Oc=function(){return new Pn(null,this.Nc())},o.Fc=function(e){return this.Ld(),ZEn()},o.Gc=function(e){return this.Ld(),nMn()},o.$b=function(){this.Ld(),eMn()},o.Hc=function(e){return this.Ld().Hc(e)},o.Ic=function(e){return this.Ld().Ic(e)},o.dc=function(){return this.Ld().b.dc()},o.Kc=function(){return this.Ld().Kc()},o.Mc=function(e){return this.Ld(),tMn()},o.gc=function(){return this.Ld().b.gc()},o.Pc=function(){return this.Ld().Pc()},o.Qc=function(e){return this.Ld().Qc(e)};var PRe=w(Sn,"ForwardingCollection",2071);b(2078,31,Dtn),o.Kc=function(){return this.Od()},o.Fc=function(e){throw C(new Be)},o.Gc=function(e){throw C(new Be)},o.Md=function(){var e;return e=this.c,e||(this.c=this.Nd())},o.$b=function(){throw C(new Be)},o.Hc=function(e){return e!=null&&ew(this,e,!1)},o.Nd=function(){switch(this.gc()){case 0:return p0(),p0(),e_;case 1:return p0(),new uN(Re(this.Od().Pb()));default:return new BV(this,this.Pc())}},o.Mc=function(e){throw C(new Be)};var ORe=w(Sn,"ImmutableCollection",2078);b(727,2078,Dtn,tz),o.Kc=function(){return Rp(this.a.Kc())},o.Hc=function(e){return e!=null&&this.a.Hc(e)},o.Ic=function(e){return this.a.Ic(e)},o.dc=function(){return this.a.dc()},o.Od=function(){return Rp(this.a.Kc())},o.gc=function(){return this.a.gc()},o.Pc=function(){return this.a.Pc()},o.Qc=function(e){return this.a.Qc(e)},o.Ib=function(){return tc(this.a)};var LRe=w(Sn,"ForwardingImmutableCollection",727);b(307,2078,N4),o.Kc=function(){return this.Od()},o.ed=function(){return this.Pd(0)},o.fd=function(e){return this.Pd(e)},o.jd=function(e){cd(this,e)},o.Nc=function(){return new Nn(this,16)},o.kd=function(e,t){return this.Qd(e,t)},o.bd=function(e,t){throw C(new Be)},o.cd=function(e,t){throw C(new Be)},o.Md=function(){return this},o.Fb=function(e){return OTe(this,e)},o.Hb=function(){return C5e(this)},o.dd=function(e){return e==null?-1:Wke(this,e)},o.Od=function(){return this.Pd(0)},o.Pd=function(e){return RD(this,e)},o.gd=function(e){throw C(new Be)},o.hd=function(e,t){throw C(new Be)},o.Qd=function(e,t){var i;return _T((i=new BMn(this),new Zl(i,e,t)))};var e_,DRe=w(Sn,"ImmutableList",307);b(2105,307,N4),o.Kc=function(){return Rp(this.Rd().Kc())},o.kd=function(e,t){return _T(this.Rd().kd(e,t))},o.Hc=function(e){return e!=null&&this.Rd().Hc(e)},o.Ic=function(e){return this.Rd().Ic(e)},o.Fb=function(e){return wt(this.Rd(),e)},o.Xb=function(e){return _1(this,e)},o.Hb=function(){return It(this.Rd())},o.dd=function(e){return this.Rd().dd(e)},o.dc=function(){return this.Rd().dc()},o.Od=function(){return Rp(this.Rd().Kc())},o.gc=function(){return this.Rd().gc()},o.Qd=function(e,t){return _T(this.Rd().kd(e,t))},o.Pc=function(){return this.Rd().Qc(_(Ii,Gn,1,this.Rd().gc(),5,1))},o.Qc=function(e){return this.Rd().Qc(e)},o.Ib=function(){return tc(this.Rd())};var NRe=w(Sn,"ForwardingImmutableList",2105);b(729,1,x4),o.vc=function(){return Va(this)},o.wc=function(e){h5(this,e)},o.ec=function(){return dN(this)},o.yc=function(e,t,i){return jF(this,e,t,i)},o.Cc=function(){return this.Vd()},o.$b=function(){throw C(new Be)},o._b=function(e){return this.xc(e)!=null},o.uc=function(e){return this.Vd().Hc(e)},o.Td=function(){return new yjn(this)},o.Ud=function(){return new jjn(this)},o.Fb=function(e){return p8e(this,e)},o.Hb=function(){return Va(this).Hb()},o.dc=function(){return this.gc()==0},o.zc=function(e,t){return Yle()},o.Bc=function(e){throw C(new Be)},o.Ib=function(){return rMe(this)},o.Vd=function(){return this.e?this.e:this.e=this.Ud()},o.c=null,o.d=null,o.e=null;var VQn,xRe=w(Sn,"ImmutableMap",729);b(730,729,x4),o._b=function(e){return QEn(this,e)},o.uc=function(e){return UMn(this.b,e)},o.Sd=function(){return URn(new C9n(this))},o.Td=function(){return URn(oOn(this.b))},o.Ud=function(){return lh(),new tz(uOn(this.b))},o.Fb=function(e){return zMn(this.b,e)},o.xc=function(e){return F6(this,e)},o.Hb=function(){return It(this.b.c)},o.dc=function(){return this.b.c.dc()},o.gc=function(){return this.b.c.gc()},o.Ib=function(){return tc(this.b.c)};var FRe=w(Sn,"ForwardingImmutableMap",730);b(2072,2071,gR),o.Kd=function(){return this.Wd()},o.Ld=function(){return this.Wd()},o.Nc=function(){return new Nn(this,1)},o.Fb=function(e){return e===this||this.Wd().Fb(e)},o.Hb=function(){return this.Wd().Hb()};var $Re=w(Sn,"ForwardingSet",2072);b(1085,2072,gR,C9n),o.Kd=function(){return C3(this.a.b)},o.Ld=function(){return C3(this.a.b)},o.Hc=function(e){if(L(e,44)&&u(e,44).ld()==null)return!1;try{return GMn(C3(this.a.b),e)}catch(t){if(t=_t(t),L(t,212))return!1;throw C(t)}},o.Wd=function(){return C3(this.a.b)},o.Qc=function(e){var t;return t=UOn(C3(this.a.b),e),C3(this.a.b).b.gc()=0?"+":"")+(i/60|0),t=xM(y.Math.abs(i)%60),(N_n(),bYn)[this.q.getDay()]+" "+wYn[this.q.getMonth()]+" "+xM(this.q.getDate())+" "+xM(this.q.getHours())+":"+xM(this.q.getMinutes())+":"+xM(this.q.getSeconds())+" GMT"+e+t+" "+this.q.getFullYear()};var lI=w(me,"Date",206);b(2015,206,LXn,i_n),o.a=!1,o.b=0,o.c=0,o.d=0,o.e=0,o.f=0,o.g=!1,o.i=0,o.j=0,o.k=0,o.n=0,o.o=0,o.p=0;var r_e=w("com.google.gwt.i18n.shared.impl","DateRecord",2015);b(2064,1,{}),o.pe=function(){return null},o.qe=function(){return null},o.re=function(){return null},o.se=function(){return null},o.te=function(){return null};var c_e=w(rv,"JSONValue",2064);b(221,2064,{221:1},Ka,SU),o.Fb=function(e){return L(e,221)?TJ(this.a,u(e,221).a):!1},o.oe=function(){return Ele},o.Hb=function(){return wJ(this.a)},o.pe=function(){return this},o.Ib=function(){var e,t,i;for(i=new jo("["),t=0,e=this.a.length;t0&&(i.a+=","),Kc(i,Wb(this,t));return i.a+="]",i.a};var u_e=w(rv,"JSONArray",221);b(493,2064,{493:1},IU),o.oe=function(){return Mle},o.qe=function(){return this},o.Ib=function(){return Wn(),""+this.a},o.a=!1;var tYn,iYn,o_e=w(rv,"JSONBoolean",493);b(997,63,Ll,yEn);var s_e=w(rv,"JSONException",997);b(1036,2064,{},abn),o.oe=function(){return Cle},o.Ib=function(){return ju};var rYn,f_e=w(rv,"JSONNull",1036);b(263,2064,{263:1},OE),o.Fb=function(e){return L(e,263)?this.a==u(e,263).a:!1},o.oe=function(){return yle},o.Hb=function(){return wp(this.a)},o.re=function(){return this},o.Ib=function(){return this.a+""},o.a=0;var h_e=w(rv,"JSONNumber",263);b(190,2064,{190:1},up,W9),o.Fb=function(e){return L(e,190)?TJ(this.a,u(e,190).a):!1},o.oe=function(){return jle},o.Hb=function(){return wJ(this.a)},o.se=function(){return this},o.Ib=function(){var e,t,i,r,c,s,f;for(f=new jo("{"),e=!0,s=Kx(this,_(dn,Q,2,0,6,1)),i=s,r=0,c=i.length;r=0?":"+this.c:"")+")"},o.c=0;var Bun=w(vc,"StackTraceElement",319);WQn={3:1,484:1,34:1,2:1};var dn=w(vc,Ntn,2);b(111,427,{484:1},Ul,r6,ws);var O_e=w(vc,"StringBuffer",111);b(104,427,{484:1},F1,ug,jo);var L_e=w(vc,"StringBuilder",104);b(702,77,BR,Lz);var D_e=w(vc,"StringIndexOutOfBoundsException",702);b(2145,1,{});var sYn;b(48,63,{3:1,103:1,63:1,82:1,48:1},Be,ql);var N_e=w(vc,"UnsupportedOperationException",48);b(247,242,{3:1,34:1,242:1,247:1},Rk,qz),o.Fd=function(e){return AUn(this,u(e,247))},o.ue=function(){return uw(ezn(this))},o.Fb=function(e){var t;return this===e?!0:L(e,247)?(t=u(e,247),this.e==t.e&&AUn(this,t)==0):!1},o.Hb=function(){var e;return this.b!=0?this.b:this.a<54?(e=Tc(this.f),this.b=$e(Si(e,-1)),this.b=33*this.b+$e(Si(b0(e,32),-1)),this.b=17*this.b+Mi(this.e),this.b):(this.b=17*KRn(this.c)+Mi(this.e),this.b)},o.Ib=function(){return ezn(this)},o.a=0,o.b=0,o.d=0,o.e=0,o.f=0;var fYn,Id,Kun,_un,Hun,qun,Gun,Uun,f_=w("java.math","BigDecimal",247);b(92,242,{3:1,34:1,242:1,92:1},ml,LLn,Qa,_Bn,H1),o.Fd=function(e){return $Bn(this,u(e,92))},o.ue=function(){return uw(lR(this,0))},o.Fb=function(e){return iZ(this,e)},o.Hb=function(){return KRn(this)},o.Ib=function(){return lR(this,0)},o.b=-2,o.c=0,o.d=0,o.e=0;var hYn,aI,lYn,h_,dI,O8,s2=w("java.math","BigInteger",92),aYn,dYn,gv,L8;b(498,2065,z0),o.$b=function(){zu(this)},o._b=function(e){return uu(this,e)},o.uc=function(e){return yRn(this,e,this.i)||yRn(this,e,this.f)},o.vc=function(){return new qa(this)},o.xc=function(e){return se(this,e)},o.zc=function(e,t){return ct(this,e,t)},o.Bc=function(e){return Fp(this,e)},o.gc=function(){return u6(this)},o.g=0;var x_e=w(me,"AbstractHashMap",498);b(267,Gf,Bu,qa),o.$b=function(){this.a.$b()},o.Hc=function(e){return sDn(this,e)},o.Kc=function(){return new od(this.a)},o.Mc=function(e){var t;return sDn(this,e)?(t=u(e,44).ld(),this.a.Bc(t),!0):!1},o.gc=function(){return this.a.gc()};var F_e=w(me,"AbstractHashMap/EntrySet",267);b(268,1,$i,od),o.Nb=function(e){Wi(this,e)},o.Pb=function(){return L0(this)},o.Ob=function(){return this.b},o.Qb=function(){$xn(this)},o.b=!1,o.d=0;var $_e=w(me,"AbstractHashMap/EntrySetIterator",268);b(426,1,$i,zm),o.Nb=function(e){Wi(this,e)},o.Ob=function(){return GL(this)},o.Pb=function(){return hJ(this)},o.Qb=function(){vo(this)},o.b=0,o.c=-1;var R_e=w(me,"AbstractList/IteratorImpl",426);b(98,426,zh,Gi),o.Qb=function(){vo(this)},o.Rb=function(e){$b(this,e)},o.Sb=function(){return this.b>0},o.Tb=function(){return this.b},o.Ub=function(){return we(this.b>0),this.a.Xb(this.c=--this.b)},o.Vb=function(){return this.b-1},o.Wb=function(e){xb(this.c!=-1),this.a.hd(this.c,e)};var B_e=w(me,"AbstractList/ListIteratorImpl",98);b(244,56,F4,Zl),o.bd=function(e,t){Gb(e,this.b),this.c.bd(this.a+e,t),++this.b},o.Xb=function(e){return $n(e,this.b),this.c.Xb(this.a+e)},o.gd=function(e){var t;return $n(e,this.b),t=this.c.gd(this.a+e),--this.b,t},o.hd=function(e,t){return $n(e,this.b),this.c.hd(this.a+e,t)},o.gc=function(){return this.b},o.a=0,o.b=0;var K_e=w(me,"AbstractList/SubList",244);b(266,Gf,Bu,Ha),o.$b=function(){this.a.$b()},o.Hc=function(e){return this.a._b(e)},o.Kc=function(){var e;return e=this.a.vc().Kc(),new DE(e)},o.Mc=function(e){return this.a._b(e)?(this.a.Bc(e),!0):!1},o.gc=function(){return this.a.gc()};var __e=w(me,"AbstractMap/1",266);b(541,1,$i,DE),o.Nb=function(e){Wi(this,e)},o.Ob=function(){return this.a.Ob()},o.Pb=function(){var e;return e=u(this.a.Pb(),44),e.ld()},o.Qb=function(){this.a.Qb()};var H_e=w(me,"AbstractMap/1/1",541);b(231,31,ww,hl),o.$b=function(){this.a.$b()},o.Hc=function(e){return this.a.uc(e)},o.Kc=function(){var e;return e=this.a.vc().Kc(),new Tb(e)},o.gc=function(){return this.a.gc()};var q_e=w(me,"AbstractMap/2",231);b(301,1,$i,Tb),o.Nb=function(e){Wi(this,e)},o.Ob=function(){return this.a.Ob()},o.Pb=function(){var e;return e=u(this.a.Pb(),44),e.md()},o.Qb=function(){this.a.Qb()};var G_e=w(me,"AbstractMap/2/1",301);b(494,1,{494:1,44:1}),o.Fb=function(e){var t;return L(e,44)?(t=u(e,44),Cc(this.d,t.ld())&&Cc(this.e,t.md())):!1},o.ld=function(){return this.d},o.md=function(){return this.e},o.Hb=function(){return vg(this.d)^vg(this.e)},o.nd=function(e){return OW(this,e)},o.Ib=function(){return this.d+"="+this.e};var U_e=w(me,"AbstractMap/AbstractEntry",494);b(397,494,{494:1,397:1,44:1},lM);var z_e=w(me,"AbstractMap/SimpleEntry",397);b(2082,1,HR),o.Fb=function(e){var t;return L(e,44)?(t=u(e,44),Cc(this.ld(),t.ld())&&Cc(this.md(),t.md())):!1},o.Hb=function(){return vg(this.ld())^vg(this.md())},o.Ib=function(){return this.ld()+"="+this.md()};var X_e=w(me,kXn,2082);b(2090,2065,Otn),o.Xc=function(e){return $L(this.Ee(e))},o.tc=function(e){return bNn(this,e)},o._b=function(e){return LW(this,e)},o.vc=function(){return new lL(this)},o.Tc=function(){return SPn(this.Ge())},o.Yc=function(e){return $L(this.He(e))},o.xc=function(e){var t;return t=e,zr(this.Fe(t))},o.$c=function(e){return $L(this.Ie(e))},o.ec=function(){return new Q9n(this)},o.Vc=function(){return SPn(this.Je())},o._c=function(e){return $L(this.Ke(e))};var W_e=w(me,"AbstractNavigableMap",2090);b(629,Gf,Bu,lL),o.Hc=function(e){return L(e,44)&&bNn(this.b,u(e,44))},o.Kc=function(){return this.b.De()},o.Mc=function(e){var t;return L(e,44)?(t=u(e,44),this.b.Le(t)):!1},o.gc=function(){return this.b.gc()};var V_e=w(me,"AbstractNavigableMap/EntrySet",629);b(1146,Gf,Ltn,Q9n),o.Nc=function(){return new fM(this)},o.$b=function(){this.a.$b()},o.Hc=function(e){return LW(this.a,e)},o.Kc=function(){var e;return e=this.a.vc().b.De(),new Y9n(e)},o.Mc=function(e){return LW(this.a,e)?(this.a.Bc(e),!0):!1},o.gc=function(){return this.a.gc()};var J_e=w(me,"AbstractNavigableMap/NavigableKeySet",1146);b(1147,1,$i,Y9n),o.Nb=function(e){Wi(this,e)},o.Ob=function(){return GL(this.a.a)},o.Pb=function(){var e;return e=QAn(this.a),e.ld()},o.Qb=function(){iIn(this.a)};var Q_e=w(me,"AbstractNavigableMap/NavigableKeySet/1",1147);b(2103,31,ww),o.Fc=function(e){return Ep(v4(this,e),R4),!0},o.Gc=function(e){return ie(e),K7(e!=this,"Can't add a queue to itself"),zi(this,e)},o.$b=function(){for(;Ax(this)!=null;);};var Y_e=w(me,"AbstractQueue",2103);b(310,31,{4:1,20:1,31:1,16:1},yg,iDn),o.Fc=function(e){return FJ(this,e),!0},o.$b=function(){HJ(this)},o.Hc=function(e){return q$n(new V6(this),e)},o.dc=function(){return i6(this)},o.Kc=function(){return new V6(this)},o.Mc=function(e){return uve(new V6(this),e)},o.gc=function(){return this.c-this.b&this.a.length-1},o.Nc=function(){return new Nn(this,272)},o.Qc=function(e){var t;return t=this.c-this.b&this.a.length-1,e.lengtht&&zt(e,t,null),e},o.b=0,o.c=0;var Z_e=w(me,"ArrayDeque",310);b(459,1,$i,V6),o.Nb=function(e){Wi(this,e)},o.Ob=function(){return this.a!=this.b},o.Pb=function(){return KT(this)},o.Qb=function(){BFn(this)},o.a=0,o.b=0,o.c=-1;var nHe=w(me,"ArrayDeque/IteratorImpl",459);b(13,56,xXn,nn,Zc,Uu),o.bd=function(e,t){d0(this,e,t)},o.Fc=function(e){return en(this,e)},o.cd=function(e,t){return IY(this,e,t)},o.Gc=function(e){return vi(this,e)},o.$b=function(){Ab(this.c,0)},o.Hc=function(e){return Vr(this,e,0)!=-1},o.Jc=function(e){ou(this,e)},o.Xb=function(e){return an(this,e)},o.dd=function(e){return Vr(this,e,0)},o.dc=function(){return this.c.length==0},o.Kc=function(){return new M(this)},o.gd=function(e){return e1(this,e)},o.Mc=function(e){return mu(this,e)},o.ce=function(e,t){TLn(this,e,t)},o.hd=function(e,t){return Vo(this,e,t)},o.gc=function(){return this.c.length},o.jd=function(e){ui(this,e)},o.Pc=function(){return iC(this.c)},o.Qc=function(e){return _f(this,e)};var Vxe=w(me,"ArrayList",13);b(7,1,$i,M),o.Nb=function(e){Wi(this,e)},o.Ob=function(){return sc(this)},o.Pb=function(){return E(this)},o.Qb=function(){G6(this)},o.a=0,o.b=-1;var eHe=w(me,"ArrayList/1",7);b(2112,y.Function,{},jE),o.Me=function(e,t){return Tt(e,t)},b(151,56,FXn,Gu),o.Hc=function(e){return KFn(this,e)!=-1},o.Jc=function(e){var t,i,r,c;for(ie(e),i=this.a,r=0,c=i.length;r0)throw C(new Yn(Htn+e+" greater than "+this.e));return this.f.Te()?VOn(this.c,this.b,this.a,e,t):ALn(this.c,e,t)},o.zc=function(e,t){if(!e$(this.c,this.f,e,this.b,this.a,this.e,this.d))throw C(new Yn(e+" outside the range "+this.b+" to "+this.e));return uRn(this.c,e,t)},o.Bc=function(e){var t;return t=e,e$(this.c,this.f,t,this.b,this.a,this.e,this.d)?JOn(this.c,t):null},o.Le=function(e){return EC(this,e.ld())&&oQ(this.c,e)},o.gc=function(){var e,t,i;if(this.f.Te()?this.a?t=l4(this.c,this.b,!0):t=l4(this.c,this.b,!1):t=pQ(this.c),!(t&&EC(this,t.d)&&t))return 0;for(e=0,i=new _x(this.c,this.f,this.b,this.a,this.e,this.d);GL(i.a);i.b=u(hJ(i.a),44))++e;return e},o.ad=function(e,t){if(this.f.Te()&&this.c.a.Ne(e,this.b)<0)throw C(new Yn(Htn+e+BXn+this.b));return this.f.Ue()?VOn(this.c,e,t,this.e,this.d):SLn(this.c,e,t)},o.a=!1,o.d=!1;var Eqe=w(me,"TreeMap/SubMap",631);b(304,22,zR,hM),o.Te=function(){return!1},o.Ue=function(){return!1};var d_,b_,w_,g_,wI=Me(me,"TreeMap/SubMapType",304,Pe,D3e,q0e);b(1143,304,zR,eAn),o.Ue=function(){return!0};var Mqe=Me(me,"TreeMap/SubMapType/1",1143,wI,null,null);b(1144,304,zR,hAn),o.Te=function(){return!0},o.Ue=function(){return!0};var Cqe=Me(me,"TreeMap/SubMapType/2",1144,wI,null,null);b(1145,304,zR,nAn),o.Te=function(){return!0};var Tqe=Me(me,"TreeMap/SubMapType/3",1145,wI,null,null),yYn;b(157,Gf,{3:1,20:1,31:1,16:1,277:1,21:1,87:1,157:1},oz,Xl,Vv),o.Nc=function(){return new fM(this)},o.Fc=function(e){return q7(this,e)},o.$b=function(){this.a.$b()},o.Hc=function(e){return this.a._b(e)},o.Kc=function(){return this.a.ec().Kc()},o.Mc=function(e){return xD(this,e)},o.gc=function(){return this.a.gc()};var eFe=w(me,"TreeSet",157);b(1082,1,{},t7n),o.Ve=function(e,t){return u0e(this.a,e,t)};var Aqe=w(XR,"BinaryOperator/lambda$0$Type",1082);b(1083,1,{},i7n),o.Ve=function(e,t){return o0e(this.a,e,t)};var Sqe=w(XR,"BinaryOperator/lambda$1$Type",1083);b(952,1,{},Cbn),o.Kb=function(e){return e};var Iqe=w(XR,"Function/lambda$0$Type",952);b(395,1,He,Jv),o.Mb=function(e){return!this.a.Mb(e)};var Pqe=w(XR,"Predicate/lambda$2$Type",395);b(581,1,{581:1});var jYn=w(e8,"Handler",581);b(2107,1,jy),o.xe=function(){return"DUMMY"},o.Ib=function(){return this.xe()};var Yun,Oqe=w(e8,"Level",2107);b(1706,2107,jy,Tbn),o.xe=function(){return"INFO"};var Lqe=w(e8,"Level/LevelInfo",1706);b(1843,1,{},Ijn);var p_,Dqe=w(e8,"LogManager",1843);b(1896,1,jy,tIn),o.b=null;var Nqe=w(e8,"LogRecord",1896);b(525,1,{525:1},ux),o.e=!1;var EYn=!1,MYn=!1,Wf=!1,CYn=!1,TYn=!1,xqe=w(e8,"Logger",525);b(835,581,{581:1},nU);var Fqe=w(e8,"SimpleConsoleLogHandler",835);b(108,22,{3:1,34:1,22:1,108:1},XL);var Zun,rc,Cw,Hr=Me(ki,"Collector/Characteristics",108,Pe,kve,G0e),AYn;b(758,1,{},qV);var $qe=w(ki,"CollectorImpl",758);b(1074,1,{},Abn),o.Ve=function(e,t){return n9e(u(e,213),u(t,213))};var Rqe=w(ki,"Collectors/10methodref$merge$Type",1074);b(1075,1,{},Sbn),o.Kb=function(e){return rDn(u(e,213))};var Bqe=w(ki,"Collectors/11methodref$toString$Type",1075);b(1076,1,{},r7n),o.Kb=function(e){return Wn(),!!$X(e)};var Kqe=w(ki,"Collectors/12methodref$test$Type",1076);b(144,1,{},Au),o.Yd=function(e,t){u(e,16).Fc(t)};var _qe=w(ki,"Collectors/20methodref$add$Type",144);b(146,1,{},Su),o.Xe=function(){return new nn};var Hqe=w(ki,"Collectors/21methodref$ctor$Type",146);b(359,1,{},J2),o.Xe=function(){return new si};var qqe=w(ki,"Collectors/23methodref$ctor$Type",359);b(360,1,{},Q2),o.Yd=function(e,t){pi(u(e,49),t)};var Gqe=w(ki,"Collectors/24methodref$add$Type",360);b(1069,1,{},Ibn),o.Ve=function(e,t){return VMn(u(e,15),u(t,16))};var Uqe=w(ki,"Collectors/4methodref$addAll$Type",1069);b(1073,1,{},Pbn),o.Yd=function(e,t){kl(u(e,213),u(t,484))};var zqe=w(ki,"Collectors/9methodref$add$Type",1073);b(1072,1,{},mIn),o.Xe=function(){return new sd(this.a,this.b,this.c)};var Xqe=w(ki,"Collectors/lambda$15$Type",1072);b(1077,1,{},Obn),o.Xe=function(){var e;return e=new n1,l1(e,(Wn(),!1),new nn),l1(e,!0,new nn),e};var Wqe=w(ki,"Collectors/lambda$22$Type",1077);b(1078,1,{},c7n),o.Xe=function(){return S(T(Ii,1),Gn,1,5,[this.a])};var Vqe=w(ki,"Collectors/lambda$25$Type",1078);b(1079,1,{},u7n),o.Yd=function(e,t){Tge(this.a,rd(e))};var Jqe=w(ki,"Collectors/lambda$26$Type",1079);b(1080,1,{},o7n),o.Ve=function(e,t){return n2e(this.a,rd(e),rd(t))};var Qqe=w(ki,"Collectors/lambda$27$Type",1080);b(1081,1,{},Lbn),o.Kb=function(e){return rd(e)[0]};var Yqe=w(ki,"Collectors/lambda$28$Type",1081);b(728,1,{},eU),o.Ve=function(e,t){return EV(e,t)};var Zqe=w(ki,"Collectors/lambda$4$Type",728);b(145,1,{},Iu),o.Ve=function(e,t){return x1e(u(e,16),u(t,16))};var nGe=w(ki,"Collectors/lambda$42$Type",145);b(361,1,{},Y2),o.Ve=function(e,t){return F1e(u(e,49),u(t,49))};var eGe=w(ki,"Collectors/lambda$50$Type",361);b(362,1,{},Z2),o.Kb=function(e){return u(e,49)};var tGe=w(ki,"Collectors/lambda$51$Type",362);b(1068,1,{},s7n),o.Yd=function(e,t){u8e(this.a,u(e,85),t)};var iGe=w(ki,"Collectors/lambda$7$Type",1068);b(1070,1,{},Dbn),o.Ve=function(e,t){return F5e(u(e,85),u(t,85),new Ibn)};var rGe=w(ki,"Collectors/lambda$8$Type",1070);b(1071,1,{},f7n),o.Kb=function(e){return D9e(this.a,u(e,85))};var cGe=w(ki,"Collectors/lambda$9$Type",1071);b(550,1,{}),o.$e=function(){W6(this)},o.d=!1;var uGe=w(ki,"TerminatableStream",550);b(827,550,qtn,jW),o.$e=function(){W6(this)};var oGe=w(ki,"DoubleStreamImpl",827);b(1847,736,Do,kIn),o.Re=function(e){return Fke(this,u(e,189))},o.a=null;var sGe=w(ki,"DoubleStreamImpl/2",1847);b(1848,1,Oy,h7n),o.Pe=function(e){Iae(this.a,e)};var fGe=w(ki,"DoubleStreamImpl/2/lambda$0$Type",1848);b(1845,1,Oy,l7n),o.Pe=function(e){Sae(this.a,e)};var hGe=w(ki,"DoubleStreamImpl/lambda$0$Type",1845);b(1846,1,Oy,a7n),o.Pe=function(e){kBn(this.a,e)};var lGe=w(ki,"DoubleStreamImpl/lambda$2$Type",1846);b(1397,735,Do,fNn),o.Re=function(e){return j3e(this,u(e,202))},o.a=0,o.b=0,o.c=0;var aGe=w(ki,"IntStream/5",1397);b(806,550,qtn,EW),o.$e=function(){W6(this)},o._e=function(){return X1(this),this.a};var dGe=w(ki,"IntStreamImpl",806);b(807,550,qtn,Wz),o.$e=function(){W6(this)},o._e=function(){return X1(this),rW(),kYn};var bGe=w(ki,"IntStreamImpl/Empty",807);b(1687,1,My,d7n),o.Dd=function(e){P$n(this.a,e)};var wGe=w(ki,"IntStreamImpl/lambda$4$Type",1687),tFe=Ut(ki,"Stream");b(26,550,{533:1,687:1,848:1},Pn),o.$e=function(){W6(this)};var pv,gGe=w(ki,"StreamImpl",26);b(1102,500,Do,WSn),o.Bd=function(e){for(;Cme(this);){if(this.a.Bd(e))return!0;W6(this.b),this.b=null,this.a=null}return!1};var pGe=w(ki,"StreamImpl/1",1102);b(1103,1,le,b7n),o.Cd=function(e){Ywe(this.a,u(e,848))};var vGe=w(ki,"StreamImpl/1/lambda$0$Type",1103);b(1104,1,He,w7n),o.Mb=function(e){return pi(this.a,e)};var mGe=w(ki,"StreamImpl/1methodref$add$Type",1104);b(1105,500,Do,SOn),o.Bd=function(e){var t;return this.a||(t=new nn,this.b.a.Nb(new g7n(t)),Fn(),ui(t,this.c),this.a=new Nn(t,16)),lFn(this.a,e)},o.a=null;var kGe=w(ki,"StreamImpl/5",1105);b(1106,1,le,g7n),o.Cd=function(e){en(this.a,e)};var yGe=w(ki,"StreamImpl/5/2methodref$add$Type",1106);b(737,500,Do,vQ),o.Bd=function(e){for(this.b=!1;!this.b&&this.c.Bd(new aCn(this,e)););return this.b},o.b=!1;var jGe=w(ki,"StreamImpl/FilterSpliterator",737);b(1096,1,le,aCn),o.Cd=function(e){Wge(this.a,this.b,e)};var EGe=w(ki,"StreamImpl/FilterSpliterator/lambda$0$Type",1096);b(1091,736,Do,kNn),o.Re=function(e){return S0e(this,u(e,189))};var MGe=w(ki,"StreamImpl/MapToDoubleSpliterator",1091);b(1095,1,le,dCn),o.Cd=function(e){Y1e(this.a,this.b,e)};var CGe=w(ki,"StreamImpl/MapToDoubleSpliterator/lambda$0$Type",1095);b(1090,735,Do,yNn),o.Re=function(e){return I0e(this,u(e,202))};var TGe=w(ki,"StreamImpl/MapToIntSpliterator",1090);b(1094,1,le,bCn),o.Cd=function(e){Z1e(this.a,this.b,e)};var AGe=w(ki,"StreamImpl/MapToIntSpliterator/lambda$0$Type",1094);b(734,500,Do,iQ),o.Bd=function(e){return USn(this,e)};var SGe=w(ki,"StreamImpl/MapToObjSpliterator",734);b(1093,1,le,wCn),o.Cd=function(e){nae(this.a,this.b,e)};var IGe=w(ki,"StreamImpl/MapToObjSpliterator/lambda$0$Type",1093);b(1092,500,Do,JFn),o.Bd=function(e){for(;UL(this.b,0);){if(!this.a.Bd(new Nbn))return!1;this.b=vs(this.b,1)}return this.a.Bd(e)},o.b=0;var PGe=w(ki,"StreamImpl/SkipSpliterator",1092);b(1097,1,le,Nbn),o.Cd=function(e){};var OGe=w(ki,"StreamImpl/SkipSpliterator/lambda$0$Type",1097);b(626,1,le,UO),o.Cd=function(e){z9n(this,e)};var LGe=w(ki,"StreamImpl/ValueConsumer",626);b(1098,1,le,xbn),o.Cd=function(e){Xa()};var DGe=w(ki,"StreamImpl/lambda$0$Type",1098);b(1099,1,le,Fbn),o.Cd=function(e){Xa()};var NGe=w(ki,"StreamImpl/lambda$1$Type",1099);b(1100,1,{},p7n),o.Ve=function(e,t){return obe(this.a,e,t)};var xGe=w(ki,"StreamImpl/lambda$4$Type",1100);b(1101,1,le,gCn),o.Cd=function(e){d0e(this.b,this.a,e)};var FGe=w(ki,"StreamImpl/lambda$5$Type",1101);b(1107,1,le,v7n),o.Cd=function(e){M5e(this.a,u(e,380))};var $Ge=w(ki,"TerminatableStream/lambda$0$Type",1107);b(2142,1,{}),b(2014,1,{},$bn);var RGe=w("javaemul.internal","ConsoleLogger",2014),iFe=0;b(2134,1,{}),b(1830,1,le,Rbn),o.Cd=function(e){u(e,317)};var BGe=w(B4,"BowyerWatsonTriangulation/lambda$0$Type",1830);b(1831,1,le,m7n),o.Cd=function(e){zi(this.a,u(e,317).e)};var KGe=w(B4,"BowyerWatsonTriangulation/lambda$1$Type",1831);b(1832,1,le,Bbn),o.Cd=function(e){u(e,177)};var _Ge=w(B4,"BowyerWatsonTriangulation/lambda$2$Type",1832);b(1827,1,Ge,k7n),o.Ne=function(e,t){return o4e(this.a,u(e,177),u(t,177))},o.Fb=function(e){return this===e},o.Oe=function(){return new Fe(this)};var HGe=w(B4,"NaiveMinST/lambda$0$Type",1827);b(449,1,{},Xm);var qGe=w(B4,"NodeMicroLayout",449);b(177,1,{177:1},ap),o.Fb=function(e){var t;return L(e,177)?(t=u(e,177),Cc(this.a,t.a)&&Cc(this.b,t.b)||Cc(this.a,t.b)&&Cc(this.b,t.a)):!1},o.Hb=function(){return vg(this.a)+vg(this.b)};var rFe=w(B4,"TEdge",177);b(317,1,{317:1},itn),o.Fb=function(e){var t;return L(e,317)?(t=u(e,317),uT(this,t.a)&&uT(this,t.b)&&uT(this,t.c)):!1},o.Hb=function(){return vg(this.a)+vg(this.b)+vg(this.c)};var GGe=w(B4,"TTriangle",317);b(225,1,{225:1},$M);var UGe=w(B4,"Tree",225);b(1218,1,{},dLn);var zGe=w(HXn,"Scanline",1218),SYn=Ut(HXn,qXn);b(1758,1,{},sFn);var XGe=w(Jh,"CGraph",1758);b(316,1,{316:1},gLn),o.b=0,o.c=0,o.d=0,o.g=0,o.i=0,o.k=mi;var WGe=w(Jh,"CGroup",316);b(830,1,{},hz);var VGe=w(Jh,"CGroup/CGroupBuilder",830);b(60,1,{60:1},SSn),o.Ib=function(){var e;return this.j?_e(this.j.Kb(this)):(bl(gI),gI.o+"@"+(e=h0(this)>>>0,e.toString(16)))},o.f=0,o.i=mi;var gI=w(Jh,"CNode",60);b(829,1,{},lz);var JGe=w(Jh,"CNode/CNodeBuilder",829),IYn;b(1590,1,{},Kbn),o.ff=function(e,t){return 0},o.gf=function(e,t){return 0};var QGe=w(Jh,UXn,1590);b(1853,1,{},_bn),o.cf=function(e){var t,i,r,c,s,f,h,l,a,d,g,p,v,k,j;for(a=Bt,r=new M(e.a.b);r.ar.d.c||r.d.c==s.d.c&&r.d.b0?e+this.n.d+this.n.a:0},o.kf=function(){var e,t,i,r,c;if(c=0,this.e)this.b?c=this.b.a:this.a[1][1]&&(c=this.a[1][1].kf());else if(this.g)c=eZ(this,i$(this,null,!0));else for(t=(kf(),S(T(Tw,1),z,237,0,[kc,iu,yc])),i=0,r=t.length;i0?c+this.n.b+this.n.c:0},o.lf=function(){var e,t,i,r,c;if(this.g)for(e=i$(this,null,!1),i=(kf(),S(T(Tw,1),z,237,0,[kc,iu,yc])),r=0,c=i.length;r0&&(r[0]+=this.d,i-=r[0]),r[2]>0&&(r[2]+=this.d,i-=r[2]),this.c.a=y.Math.max(0,i),this.c.d=t.d+e.d+(this.c.a-i)/2,r[1]=y.Math.max(r[1],i),ZJ(this,iu,t.d+e.d+r[0]-(r[1]-i)/2,r)},o.b=null,o.d=0,o.e=!1,o.f=!1,o.g=!1;var j_=0,pI=0,vUe=w(md,"GridContainerCell",1538);b(471,22,{3:1,34:1,22:1,471:1},VL);var pa,Ih,Js,BYn=Me(md,"HorizontalLabelAlignment",471,Pe,jve,V0e),KYn;b(314,217,{217:1,314:1},ZOn,hFn,zOn),o.jf=function(){return DIn(this)},o.kf=function(){return pV(this)},o.a=0,o.c=!1;var cFe=w(md,"LabelCell",314);b(252,336,{217:1,336:1,252:1},M5),o.jf=function(){return N5(this)},o.kf=function(){return x5(this)},o.lf=function(){U$(this)},o.mf=function(){z$(this)},o.b=0,o.c=0,o.d=!1;var mUe=w(md,"StripContainerCell",252);b(1691,1,He,Wbn),o.Mb=function(e){return Vle(u(e,217))};var kUe=w(md,"StripContainerCell/lambda$0$Type",1691);b(1692,1,{},Vbn),o.Ye=function(e){return u(e,217).kf()};var yUe=w(md,"StripContainerCell/lambda$1$Type",1692);b(1693,1,He,Jbn),o.Mb=function(e){return Jle(u(e,217))};var jUe=w(md,"StripContainerCell/lambda$2$Type",1693);b(1694,1,{},Qbn),o.Ye=function(e){return u(e,217).jf()};var EUe=w(md,"StripContainerCell/lambda$3$Type",1694);b(472,22,{3:1,34:1,22:1,472:1},JL);var Qs,va,Cf,_Yn=Me(md,"VerticalLabelAlignment",472,Pe,yve,J0e),HYn;b(800,1,{},ktn),o.c=0,o.d=0,o.k=0,o.s=0,o.t=0,o.v=!1,o.w=0,o.D=!1,o.F=!1;var MUe=w(rS,"NodeContext",800);b(1536,1,Ge,Ybn),o.Ne=function(e,t){return UTn(u(e,64),u(t,64))},o.Fb=function(e){return this===e},o.Oe=function(){return new Fe(this)};var CUe=w(rS,"NodeContext/0methodref$comparePortSides$Type",1536);b(1537,1,Ge,Zbn),o.Ne=function(e,t){return CEe(u(e,117),u(t,117))},o.Fb=function(e){return this===e},o.Oe=function(){return new Fe(this)};var TUe=w(rS,"NodeContext/1methodref$comparePortContexts$Type",1537);b(164,22,{3:1,34:1,22:1,164:1},Yo);var qYn,GYn,UYn,zYn,XYn,WYn,VYn,JYn,QYn,YYn,ZYn,nZn,eZn,tZn,iZn,rZn,cZn,uZn,oZn,sZn,fZn,E_,hZn=Me(rS,"NodeLabelLocation",164,Pe,NF,Q0e),lZn;b(117,1,{117:1},YHn),o.a=!1;var AUe=w(rS,"PortContext",117);b(1541,1,le,nwn),o.Cd=function(e){hMn(u(e,314))};var SUe=w(Dy,rWn,1541);b(1542,1,He,ewn),o.Mb=function(e){return!!u(e,117).c};var IUe=w(Dy,cWn,1542);b(1543,1,le,twn),o.Cd=function(e){hMn(u(e,117).c)};var PUe=w(Dy,"LabelPlacer/lambda$2$Type",1543),yon;b(1540,1,le,iwn),o.Cd=function(e){Fb(),Sle(u(e,117))};var OUe=w(Dy,"NodeLabelAndSizeUtilities/lambda$0$Type",1540);b(801,1,le,JW),o.Cd=function(e){H1e(this.b,this.c,this.a,u(e,187))},o.a=!1,o.c=!1;var LUe=w(Dy,"NodeLabelCellCreator/lambda$0$Type",801);b(1539,1,le,E7n),o.Cd=function(e){Ole(this.a,u(e,187))};var DUe=w(Dy,"PortContextCreator/lambda$0$Type",1539),vI;b(1902,1,{},rwn);var NUe=w(_4,"GreedyRectangleStripOverlapRemover",1902);b(1903,1,Ge,cwn),o.Ne=function(e,t){return kde(u(e,226),u(t,226))},o.Fb=function(e){return this===e},o.Oe=function(){return new Fe(this)};var xUe=w(_4,"GreedyRectangleStripOverlapRemover/0methodref$compareByYCoordinate$Type",1903);b(1849,1,{},Djn),o.a=5,o.e=0;var FUe=w(_4,"RectangleStripOverlapRemover",1849);b(1850,1,Ge,uwn),o.Ne=function(e,t){return yde(u(e,226),u(t,226))},o.Fb=function(e){return this===e},o.Oe=function(){return new Fe(this)};var $Ue=w(_4,"RectangleStripOverlapRemover/0methodref$compareLeftRectangleBorders$Type",1850);b(1852,1,Ge,own),o.Ne=function(e,t){return h2e(u(e,226),u(t,226))},o.Fb=function(e){return this===e},o.Oe=function(){return new Fe(this)};var RUe=w(_4,"RectangleStripOverlapRemover/1methodref$compareRightRectangleBorders$Type",1852);b(417,22,{3:1,34:1,22:1,417:1},aM);var cj,M_,C_,uj,aZn=Me(_4,"RectangleStripOverlapRemover/OverlapRemovalDirection",417,Pe,F3e,Y0e),dZn;b(226,1,{226:1},lN);var BUe=w(_4,"RectangleStripOverlapRemover/RectangleNode",226);b(1851,1,le,M7n),o.Cd=function(e){Qke(this.a,u(e,226))};var KUe=w(_4,"RectangleStripOverlapRemover/lambda$1$Type",1851);b(1323,1,Ge,swn),o.Ne=function(e,t){return gLe(u(e,176),u(t,176))},o.Fb=function(e){return this===e},o.Oe=function(){return new Fe(this)};var _Ue=w(jh,"PolyominoCompactor/CornerCasesGreaterThanRestComparator",1323);b(1326,1,{},fwn),o.Kb=function(e){return u(e,334).a};var HUe=w(jh,"PolyominoCompactor/CornerCasesGreaterThanRestComparator/lambda$0$Type",1326);b(1327,1,He,hwn),o.Mb=function(e){return u(e,332).a};var qUe=w(jh,"PolyominoCompactor/CornerCasesGreaterThanRestComparator/lambda$1$Type",1327);b(1328,1,He,lwn),o.Mb=function(e){return u(e,332).a};var GUe=w(jh,"PolyominoCompactor/CornerCasesGreaterThanRestComparator/lambda$2$Type",1328);b(1321,1,Ge,awn),o.Ne=function(e,t){return XIe(u(e,176),u(t,176))},o.Fb=function(e){return this===e},o.Oe=function(){return new Fe(this)};var UUe=w(jh,"PolyominoCompactor/MinNumOfExtensionDirectionsComparator",1321);b(1324,1,{},dwn),o.Kb=function(e){return u(e,334).a};var zUe=w(jh,"PolyominoCompactor/MinNumOfExtensionDirectionsComparator/lambda$0$Type",1324);b(781,1,Ge,tU),o.Ne=function(e,t){return I5e(u(e,176),u(t,176))},o.Fb=function(e){return this===e},o.Oe=function(){return new Fe(this)};var XUe=w(jh,"PolyominoCompactor/MinNumOfExtensionsComparator",781);b(1319,1,Ge,bwn),o.Ne=function(e,t){return $6e(u(e,330),u(t,330))},o.Fb=function(e){return this===e},o.Oe=function(){return new Fe(this)};var WUe=w(jh,"PolyominoCompactor/MinPerimeterComparator",1319);b(1320,1,Ge,wwn),o.Ne=function(e,t){return yke(u(e,330),u(t,330))},o.Fb=function(e){return this===e},o.Oe=function(){return new Fe(this)};var VUe=w(jh,"PolyominoCompactor/MinPerimeterComparatorWithShape",1320);b(1322,1,Ge,gwn),o.Ne=function(e,t){return dPe(u(e,176),u(t,176))},o.Fb=function(e){return this===e},o.Oe=function(){return new Fe(this)};var JUe=w(jh,"PolyominoCompactor/SingleExtensionSideGreaterThanRestComparator",1322);b(1325,1,{},pwn),o.Kb=function(e){return u(e,334).a};var QUe=w(jh,"PolyominoCompactor/SingleExtensionSideGreaterThanRestComparator/lambda$0$Type",1325);b(782,1,{},oX),o.Ve=function(e,t){return S3e(this,u(e,42),u(t,176))};var YUe=w(jh,"SuccessorCombination",782);b(649,1,{},zO),o.Ve=function(e,t){var i;return GCe((i=u(e,42),u(t,176),i))};var ZUe=w(jh,"SuccessorJitter",649);b(648,1,{},XO),o.Ve=function(e,t){var i;return PSe((i=u(e,42),u(t,176),i))};var nze=w(jh,"SuccessorLineByLine",648);b(573,1,{},EE),o.Ve=function(e,t){var i;return GTe((i=u(e,42),u(t,176),i))};var eze=w(jh,"SuccessorManhattan",573);b(1344,1,{},vwn),o.Ve=function(e,t){var i;return nSe((i=u(e,42),u(t,176),i))};var tze=w(jh,"SuccessorMaxNormWindingInMathPosSense",1344);b(409,1,{},Qv),o.Ve=function(e,t){return _V(this,e,t)},o.c=!1,o.d=!1,o.e=!1,o.f=!1;var ize=w(jh,"SuccessorQuadrantsGeneric",409);b(1345,1,{},mwn),o.Kb=function(e){return u(e,334).a};var rze=w(jh,"SuccessorQuadrantsGeneric/lambda$0$Type",1345);b(332,22,{3:1,34:1,22:1,332:1},dM),o.a=!1;var oj,sj,fj,hj,bZn=Me(uS,nin,332,Pe,N3e,Z0e),wZn;b(1317,1,{}),o.Ib=function(){var e,t,i,r,c,s;for(i=" ",e=Z(0),c=0;c=0?"b"+e+"["+cx(this.a)+"]":"b["+cx(this.a)+"]"):"b_"+h0(this)};var Xze=w(xy,"FBendpoint",250);b(290,137,{3:1,290:1,96:1,137:1},ISn),o.Ib=function(){return cx(this)};var Wze=w(xy,"FEdge",290);b(235,137,{3:1,235:1,96:1,137:1},JC);var oFe=w(xy,"FGraph",235);b(454,309,{3:1,454:1,309:1,96:1,137:1},ODn),o.Ib=function(){return this.b==null||this.b.length==0?"l["+cx(this.a)+"]":"l_"+this.b};var Vze=w(xy,"FLabel",454);b(153,309,{3:1,153:1,309:1,96:1,137:1},fAn),o.Ib=function(){return SJ(this)},o.a=0;var Jze=w(xy,"FNode",153);b(2100,1,{}),o.vf=function(e){Yen(this,e)},o.wf=function(){LKn(this)},o.d=0;var Qze=w(fin,"AbstractForceModel",2100);b(641,2100,{641:1},I$n),o.uf=function(e,t){var i,r,c,s,f;return czn(this.f,e,t),c=Ai(Xi(t.d),e.d),f=y.Math.sqrt(c.a*c.a+c.b*c.b),r=y.Math.max(0,f-X6(e.e)/2-X6(t.e)/2),i=_Hn(this.e,e,t),i>0?s=-o2e(r,this.c)*i:s=Fde(r,this.b)*u(m(e,(Ws(),vv)),17).a,fh(c,s/f),c},o.vf=function(e){Yen(this,e),this.a=u(m(e,(Ws(),MI)),17).a,this.c=x(K(m(e,CI))),this.b=x(K(m(e,L_)))},o.xf=function(e){return e0&&(s-=Ule(r,this.a)*i),fh(c,s*this.b/f),c},o.vf=function(e){var t,i,r,c,s,f,h;for(Yen(this,e),this.b=x(K(m(e,(Ws(),D_)))),this.c=this.b/u(m(e,MI),17).a,r=e.e.c.length,s=0,c=0,h=new M(e.e);h.a0},o.a=0,o.b=0,o.c=0;var Zze=w(fin,"FruchtermanReingoldModel",642);b(860,1,js,M8n),o.hf=function(e){Mn(e,new gn(jn(yn(En(Ln(pn(kn(vn(mn(new wn,fS),""),"Force Model"),"Determines the model for force calculation."),Pon),(b1(),Kt)),Oon),Tn((jf(),qn))))),Mn(e,new gn(jn(yn(En(Ln(pn(kn(vn(mn(new wn,hin),""),"Iterations"),"The number of iterations on the force model."),Z(300)),cc),Yi),Tn(qn)))),Mn(e,new gn(jn(yn(En(Ln(pn(kn(vn(mn(new wn,lin),""),"Repulsive Power"),"Determines how many bend points are added to the edge; such bend points are regarded as repelling particles in the force model"),Z(0)),cc),Yi),Tn(Dh)))),Mn(e,new gn(jn(yn(En(Ln(pn(kn(vn(mn(new wn,lB),""),"FR Temperature"),"The temperature is used as a scaling factor for particle displacements."),Eh),cr),gi),Tn(qn)))),ai(e,lB,fS,xZn),Mn(e,new gn(jn(yn(En(Ln(pn(kn(vn(mn(new wn,aB),""),"Eades Repulsion"),"Factor for repulsive forces in Eades' model."),5),cr),gi),Tn(qn)))),ai(e,aB,fS,LZn),Xzn((new C8n,e))};var IZn,PZn,Pon,OZn,LZn,DZn,NZn,xZn,nXe=w(r8,"ForceMetaDataProvider",860);b(432,22,{3:1,34:1,22:1,432:1},fX);var O_,EI,Oon=Me(r8,"ForceModelStrategy",432,Pe,Spe,tbe),FZn;b(g1,1,js,C8n),o.hf=function(e){Xzn(e)};var $Zn,RZn,Lon,MI,Don,BZn,KZn,_Zn,HZn,Non,qZn,xon,Fon,GZn,vv,UZn,L_,$on,zZn,XZn,CI,D_,WZn,VZn,JZn,Ron,QZn,eXe=w(r8,"ForceOptions",g1);b(1001,1,{},Fwn),o.sf=function(){var e;return e=new fz,e},o.tf=function(e){};var tXe=w(r8,"ForceOptions/ForceFactory",1001),dj,x8,mv,TI;b(861,1,js,T8n),o.hf=function(e){Mn(e,new gn(jn(yn(En(Ln(pn(kn(vn(mn(new wn,bin),""),"Fixed Position"),"Prevent that the node is moved by the layout algorithm."),(Wn(),!1)),(b1(),Pi)),ei),Tn((jf(),Ti))))),Mn(e,new gn(jn(yn(En(Ln(pn(kn(vn(mn(new wn,win),""),"Desired Edge Length"),"Either specified for parent nodes or for individual edges, where the latter takes higher precedence."),100),cr),gi),Lt(qn,S(T(il,1),z,170,0,[Dh]))))),Mn(e,new gn(jn(yn(En(Ln(pn(kn(vn(mn(new wn,gin),""),"Layout Dimension"),"Dimensions that are permitted to be altered during layout."),Bon),Kt),zon),Tn(qn)))),Mn(e,new gn(jn(yn(En(Ln(pn(kn(vn(mn(new wn,pin),""),"Stress Epsilon"),"Termination criterion for the iterative process."),Eh),cr),gi),Tn(qn)))),Mn(e,new gn(jn(yn(En(Ln(pn(kn(vn(mn(new wn,vin),""),"Iteration Limit"),"Maximum number of performed iterations. Takes higher precedence than 'epsilon'."),Z(at)),cc),Yi),Tn(qn)))),yzn((new A8n,e))};var YZn,ZZn,Bon,nne,ene,tne,iXe=w(r8,"StressMetaDataProvider",861);b(1004,1,js,A8n),o.hf=function(e){yzn(e)};var AI,Kon,_on,Hon,qon,Gon,ine,rne,cne,une,Uon,one,rXe=w(r8,"StressOptions",1004);b(1005,1,{},Nwn),o.sf=function(){var e;return e=new PSn,e},o.tf=function(e){};var cXe=w(r8,"StressOptions/StressFactory",1005);b(1110,205,kd,PSn),o.rf=function(e,t){var i,r,c,s,f;for(t.Ug(pWn,1),ln(hn(X(e,(Wk(),qon))))?ln(hn(X(e,Uon)))||Q7((i=new Xm((r0(),new Jd(e))),i)):Rqn(new fz,e,t.eh(1)),c=Z$n(e),r=PUn(this.a,c),f=r.Kc();f.Ob();)s=u(f.Pb(),235),!(s.e.c.length<=1)&&(dLe(this.b,s),BTe(this.b),ou(s.d,new xwn));c=Gzn(r),nXn(c),t.Vg()};var uXe=w(aS,"StressLayoutProvider",1110);b(1111,1,le,xwn),o.Cd=function(e){utn(u(e,454))};var oXe=w(aS,"StressLayoutProvider/lambda$0$Type",1111);b(1002,1,{},Sjn),o.c=0,o.e=0,o.g=0;var sXe=w(aS,"StressMajorization",1002);b(391,22,{3:1,34:1,22:1,391:1},QL);var N_,x_,F_,zon=Me(aS,"StressMajorization/Dimension",391,Pe,Mve,ibe),sne;b(1003,1,Ge,S7n),o.Ne=function(e,t){return O0e(this.a,u(e,153),u(t,153))},o.Fb=function(e){return this===e},o.Oe=function(){return new Fe(this)};var fXe=w(aS,"StressMajorization/lambda$0$Type",1003);b(1192,1,{},FLn);var hXe=w(av,"ElkLayered",1192);b(1193,1,le,I7n),o.Cd=function(e){bCe(this.a,u(e,36))};var lXe=w(av,"ElkLayered/lambda$0$Type",1193);b(1194,1,le,P7n),o.Cd=function(e){L0e(this.a,u(e,36))};var aXe=w(av,"ElkLayered/lambda$1$Type",1194);b(1281,1,{},mAn);var fne,hne,lne,dXe=w(av,"GraphConfigurator",1281);b(770,1,le,XU),o.Cd=function(e){U_n(this.a,u(e,10))};var bXe=w(av,"GraphConfigurator/lambda$0$Type",770);b(771,1,{},rU),o.Kb=function(e){return VZ(),new Pn(null,new Nn(u(e,30).a,16))};var wXe=w(av,"GraphConfigurator/lambda$1$Type",771);b(772,1,le,WU),o.Cd=function(e){U_n(this.a,u(e,10))};var gXe=w(av,"GraphConfigurator/lambda$2$Type",772);b(1109,205,kd,Njn),o.rf=function(e,t){var i;i=WOe(new Fjn,e),F(X(e,(fn(),Fw)))===F((Cl(),S1))?T9e(this.a,i,t):xTe(this.a,i,t),t.$g()||$zn(new S8n,i)};var pXe=w(av,"LayeredLayoutProvider",1109);b(367,22,{3:1,34:1,22:1,367:1},l7);var Ys,nl,Bc,Wc,Yr,Xon=Me(av,"LayeredPhases",367,Pe,S4e,rbe),ane;b(1717,1,{},XFn),o.i=0;var dne,vXe=w(_y,"ComponentsToCGraphTransformer",1717),bne;b(1718,1,{},Dwn),o.yf=function(e,t){return y.Math.min(e.a!=null?x(e.a):e.c.i,t.a!=null?x(t.a):t.c.i)},o.zf=function(e,t){return y.Math.min(e.a!=null?x(e.a):e.c.i,t.a!=null?x(t.a):t.c.i)};var mXe=w(_y,"ComponentsToCGraphTransformer/1",1718);b(86,1,{86:1}),o.i=0,o.k=!0,o.o=mi;var $_=w(s8,"CNode",86);b(470,86,{470:1,86:1},dW,EZ),o.Ib=function(){return""};var kXe=w(_y,"ComponentsToCGraphTransformer/CRectNode",470);b(1688,1,{},$wn);var R_,B_,yXe=w(_y,"OneDimensionalComponentsCompaction",1688);b(1689,1,{},Rwn),o.Kb=function(e){return wve(u(e,42))},o.Fb=function(e){return this===e};var jXe=w(_y,"OneDimensionalComponentsCompaction/lambda$0$Type",1689);b(1690,1,{},Bwn),o.Kb=function(e){return S9e(u(e,42))},o.Fb=function(e){return this===e};var EXe=w(_y,"OneDimensionalComponentsCompaction/lambda$1$Type",1690);b(1720,1,{},qPn);var MXe=w(s8,"CGraph",1720);b(194,1,{194:1},OF),o.b=0,o.c=0,o.e=0,o.g=!0,o.i=mi;var CXe=w(s8,"CGroup",194);b(1719,1,{},Kwn),o.yf=function(e,t){return y.Math.max(e.a!=null?x(e.a):e.c.i,t.a!=null?x(t.a):t.c.i)},o.zf=function(e,t){return y.Math.max(e.a!=null?x(e.a):e.c.i,t.a!=null?x(t.a):t.c.i)};var TXe=w(s8,UXn,1719);b(1721,1,{},qHn),o.d=!1;var wne,K_=w(s8,WXn,1721);b(1722,1,{},_wn),o.Kb=function(e){return Jz(),Wn(),u(u(e,42).a,86).d.e!=0},o.Fb=function(e){return this===e};var AXe=w(s8,VXn,1722);b(833,1,{},MV),o.a=!1,o.b=!1,o.c=!1,o.d=!1;var SXe=w(s8,JXn,833);b(1898,1,{},cPn);var IXe=w(dS,QXn,1898),bj=Ut(jd,qXn);b(1899,1,{382:1},BOn),o.bf=function(e){qSe(this,u(e,476))};var PXe=w(dS,YXn,1899);b(ha,1,Ge,Hwn),o.Ne=function(e,t){return Y2e(u(e,86),u(t,86))},o.Fb=function(e){return this===e},o.Oe=function(){return new Fe(this)};var OXe=w(dS,ZXn,ha);b(476,1,{476:1},lX),o.a=!1;var LXe=w(dS,nWn,476);b(1901,1,Ge,qwn),o.Ne=function(e,t){return Zye(u(e,476),u(t,476))},o.Fb=function(e){return this===e},o.Oe=function(){return new Fe(this)};var DXe=w(dS,eWn,1901);b(148,1,{148:1},h3,oV),o.Fb=function(e){var t;return e==null||sFe!=mo(e)?!1:(t=u(e,148),Cc(this.c,t.c)&&Cc(this.d,t.d))},o.Hb=function(){return Nk(S(T(Ii,1),Gn,1,5,[this.c,this.d]))},o.Ib=function(){return"("+this.c+dr+this.d+(this.a?"cx":"")+this.b+")"},o.a=!0,o.c=0,o.d=0;var sFe=w(jd,"Point",148);b(416,22,{3:1,34:1,22:1,416:1},wM);var ib,Aw,h2,Sw,gne=Me(jd,"Point/Quadrant",416,Pe,$3e,cbe),pne;b(1708,1,{},Ljn),o.b=null,o.c=null,o.d=null,o.e=null,o.f=null;var vne,mne,kne,yne,jne,NXe=w(jd,"RectilinearConvexHull",1708);b(583,1,{382:1},cA),o.bf=function(e){Ame(this,u(e,148))},o.b=0;var Won,xXe=w(jd,"RectilinearConvexHull/MaximalElementsEventHandler",583);b(1710,1,Ge,Gwn),o.Ne=function(e,t){return Z2e(K(e),K(t))},o.Fb=function(e){return this===e},o.Oe=function(){return new Fe(this)};var FXe=w(jd,"RectilinearConvexHull/MaximalElementsEventHandler/lambda$0$Type",1710);b(1709,1,{382:1},fFn),o.bf=function(e){rSe(this,u(e,148))},o.a=0,o.b=null,o.c=null,o.d=null,o.e=null;var $Xe=w(jd,"RectilinearConvexHull/RectangleEventHandler",1709);b(1711,1,Ge,Uwn),o.Ne=function(e,t){return o3e(u(e,148),u(t,148))},o.Fb=function(e){return this===e},o.Oe=function(){return new Fe(this)};var RXe=w(jd,"RectilinearConvexHull/lambda$0$Type",1711);b(1712,1,Ge,Wwn),o.Ne=function(e,t){return s3e(u(e,148),u(t,148))},o.Fb=function(e){return this===e},o.Oe=function(){return new Fe(this)};var BXe=w(jd,"RectilinearConvexHull/lambda$1$Type",1712);b(1713,1,Ge,Vwn),o.Ne=function(e,t){return u3e(u(e,148),u(t,148))},o.Fb=function(e){return this===e},o.Oe=function(){return new Fe(this)};var KXe=w(jd,"RectilinearConvexHull/lambda$2$Type",1713);b(1714,1,Ge,Xwn),o.Ne=function(e,t){return f3e(u(e,148),u(t,148))},o.Fb=function(e){return this===e},o.Oe=function(){return new Fe(this)};var _Xe=w(jd,"RectilinearConvexHull/lambda$3$Type",1714);b(1715,1,Ge,Jwn),o.Ne=function(e,t){return KEe(u(e,148),u(t,148))},o.Fb=function(e){return this===e},o.Oe=function(){return new Fe(this)};var HXe=w(jd,"RectilinearConvexHull/lambda$4$Type",1715);b(1716,1,{},bLn);var qXe=w(jd,"Scanline",1716);b(2104,1,{});var GXe=w(zf,"AbstractGraphPlacer",2104);b(335,1,{335:1},eSn),o.Ff=function(e){return this.Gf(e)?(Dn(this.b,u(m(e,(J(),$l)),21),e),!0):!1},o.Gf=function(e){var t,i,r,c;for(t=u(m(e,(J(),$l)),21),c=u(kt(At,t),21),r=c.Kc();r.Ob();)if(i=u(r.Pb(),21),!u(kt(this.b,i),15).dc())return!1;return!0};var At,UXe=w(zf,"ComponentGroup",335);b(779,2104,{},az),o.Hf=function(e){var t,i;for(i=new M(this.a);i.ai&&(d=0,g+=h+r,h=0),l=s.c,C4(s,d+l.a,g+l.b),bf(l),c=y.Math.max(c,d+a.a),h=y.Math.max(h,a.b),d+=a.a+r;t.f.a=c,t.f.b=g+h},o.Jf=function(e,t){var i,r,c,s,f;if(F(m(t,(fn(),xw)))===F((ad(),Iw))){for(r=e.Kc();r.Ob();){for(i=u(r.Pb(),36),f=0,s=new M(i.a);s.ai&&!u(m(s,(J(),$l)),21).Hc((rn(),ne))||l&&u(m(l,(J(),$l)),21).Hc((rn(),ue))||u(m(s,(J(),$l)),21).Hc((rn(),te)))&&(p=g,v+=h+r,h=0),a=s.c,u(m(s,(J(),$l)),21).Hc((rn(),ne))&&(p=c+r),C4(s,p+a.a,v+a.b),c=y.Math.max(c,p+d.a),u(m(s,$l),21).Hc(ye)&&(g=y.Math.max(g,p+d.a+r)),bf(a),h=y.Math.max(h,d.b),p+=d.a+r,l=s;t.f.a=c,t.f.b=v+h},o.Jf=function(e,t){};var uWe=w(zf,"ModelOrderRowGraphPlacer",1313);b(1311,1,Ge,Zwn),o.Ne=function(e,t){return T5e(u(e,36),u(t,36))},o.Fb=function(e){return this===e},o.Oe=function(){return new Fe(this)};var oWe=w(zf,"SimpleRowGraphPlacer/1",1311),Mne;b(1280,1,yh,ngn),o.Lb=function(e){var t;return t=u(m(u(e,249).b,(fn(),qr)),75),!!t&&t.b!=0},o.Fb=function(e){return this===e},o.Mb=function(e){var t;return t=u(m(u(e,249).b,(fn(),qr)),75),!!t&&t.b!=0};var sWe=w(bS,"CompoundGraphPostprocessor/1",1280);b(1279,1,Pt,$jn),o.Kf=function(e,t){aKn(this,u(e,36),t)};var fWe=w(bS,"CompoundGraphPreprocessor",1279);b(453,1,{453:1},tBn),o.c=!1;var hWe=w(bS,"CompoundGraphPreprocessor/ExternalPort",453);b(249,1,{249:1},JM),o.Ib=function(){return KD(this.c)+":"+$Hn(this.b)};var lWe=w(bS,"CrossHierarchyEdge",249);b(777,1,Ge,VU),o.Ne=function(e,t){return Aye(this,u(e,249),u(t,249))},o.Fb=function(e){return this===e},o.Oe=function(){return new Fe(this)};var aWe=w(bS,"CrossHierarchyEdgeComparator",777);b(305,137,{3:1,305:1,96:1,137:1}),o.p=0;var dWe=w(zc,"LGraphElement",305);b(18,305,{3:1,18:1,305:1,96:1,137:1},j0),o.Ib=function(){return $Hn(this)};var q_=w(zc,"LEdge",18);b(36,305,{3:1,20:1,36:1,305:1,96:1,137:1},BQ),o.Jc=function(e){Ji(this,e)},o.Kc=function(){return new M(this.b)},o.Ib=function(){return this.b.c.length==0?"G-unlayered"+ca(this.a):this.a.c.length==0?"G-layered"+ca(this.b):"G[layerless"+ca(this.a)+", layers"+ca(this.b)+"]"};var Cne=w(zc,"LGraph",36),Tne;b(666,1,{}),o.Lf=function(){return this.e.n},o.of=function(e){return m(this.e,e)},o.Mf=function(){return this.e.o},o.Nf=function(){return this.e.p},o.pf=function(e){return Ot(this.e,e)},o.Of=function(e){this.e.n.a=e.a,this.e.n.b=e.b},o.Pf=function(e){this.e.o.a=e.a,this.e.o.b=e.b},o.Qf=function(e){this.e.p=e};var bWe=w(zc,"LGraphAdapters/AbstractLShapeAdapter",666);b(474,1,{853:1},Wm),o.Rf=function(){var e,t;if(!this.b)for(this.b=Fh(this.a.b.c.length),t=new M(this.a.b);t.a0&&DRn((Zn(t-1,e.length),e.charCodeAt(t-1)),EWn);)--t;if(s> ",e),wA(i)),Je(Kc((e.a+="[",e),i.i),"]")),e.a},o.c=!0,o.d=!1;var Zon,U_,nsn,z_,esn,tsn,Sne=w(zc,"LPort",12);b(408,1,Xh,Yv),o.Jc=function(e){Ji(this,e)},o.Kc=function(){var e;return e=new M(this.a.e),new O7n(e)};var SWe=w(zc,"LPort/1",408);b(1309,1,$i,O7n),o.Nb=function(e){Wi(this,e)},o.Pb=function(){return u(E(this.a),18).c},o.Ob=function(){return sc(this.a)},o.Qb=function(){G6(this.a)};var IWe=w(zc,"LPort/1/1",1309);b(369,1,Xh,ep),o.Jc=function(e){Ji(this,e)},o.Kc=function(){var e;return e=new M(this.a.g),new JU(e)};var PWe=w(zc,"LPort/2",369);b(776,1,$i,JU),o.Nb=function(e){Wi(this,e)},o.Pb=function(){return u(E(this.a),18).d},o.Ob=function(){return sc(this.a)},o.Qb=function(){G6(this.a)};var OWe=w(zc,"LPort/2/1",776);b(1302,1,Xh,kCn),o.Jc=function(e){Ji(this,e)},o.Kc=function(){return new Ff(this)};var LWe=w(zc,"LPort/CombineIter",1302);b(208,1,$i,Ff),o.Nb=function(e){Wi(this,e)},o.Qb=function(){YEn()},o.Ob=function(){return D6(this)},o.Pb=function(){return sc(this.a)?E(this.a):E(this.b)};var DWe=w(zc,"LPort/CombineIter/1",208);b(1303,1,yh,tgn),o.Lb=function(e){return mPn(e)},o.Fb=function(e){return this===e},o.Mb=function(e){return $u(),u(e,12).g.c.length!=0};var NWe=w(zc,"LPort/lambda$0$Type",1303);b(1304,1,yh,ign),o.Lb=function(e){return kPn(e)},o.Fb=function(e){return this===e},o.Mb=function(e){return $u(),u(e,12).e.c.length!=0};var xWe=w(zc,"LPort/lambda$1$Type",1304);b(1305,1,yh,rgn),o.Lb=function(e){return $u(),u(e,12).j==(rn(),ne)},o.Fb=function(e){return this===e},o.Mb=function(e){return $u(),u(e,12).j==(rn(),ne)};var FWe=w(zc,"LPort/lambda$2$Type",1305);b(1306,1,yh,cgn),o.Lb=function(e){return $u(),u(e,12).j==(rn(),ue)},o.Fb=function(e){return this===e},o.Mb=function(e){return $u(),u(e,12).j==(rn(),ue)};var $We=w(zc,"LPort/lambda$3$Type",1306);b(1307,1,yh,ugn),o.Lb=function(e){return $u(),u(e,12).j==(rn(),ye)},o.Fb=function(e){return this===e},o.Mb=function(e){return $u(),u(e,12).j==(rn(),ye)};var RWe=w(zc,"LPort/lambda$4$Type",1307);b(1308,1,yh,ogn),o.Lb=function(e){return $u(),u(e,12).j==(rn(),te)},o.Fb=function(e){return this===e},o.Mb=function(e){return $u(),u(e,12).j==(rn(),te)};var BWe=w(zc,"LPort/lambda$5$Type",1308);b(30,305,{3:1,20:1,305:1,30:1,96:1,137:1},_c),o.Jc=function(e){Ji(this,e)},o.Kc=function(){return new M(this.a)},o.Ib=function(){return"L_"+Vr(this.b.b,this,0)+ca(this.a)};var KWe=w(zc,"Layer",30);b(1330,1,{},Fjn);var _We=w(v1,AWn,1330);b(1334,1,{},sgn),o.Kb=function(e){return Qr(u(e,84))};var HWe=w(v1,"ElkGraphImporter/0methodref$connectableShapeToNode$Type",1334);b(1337,1,{},fgn),o.Kb=function(e){return Qr(u(e,84))};var qWe=w(v1,"ElkGraphImporter/1methodref$connectableShapeToNode$Type",1337);b(1331,1,le,L7n),o.Cd=function(e){nqn(this.a,u(e,123))};var GWe=w(v1,sin,1331);b(1332,1,le,D7n),o.Cd=function(e){nqn(this.a,u(e,123))};var UWe=w(v1,SWn,1332);b(1333,1,{},hgn),o.Kb=function(e){return new Pn(null,new Nn(uJ(u(e,74)),16))};var zWe=w(v1,IWn,1333);b(1335,1,He,N7n),o.Mb=function(e){return Pae(this.a,u(e,27))};var XWe=w(v1,PWn,1335);b(1336,1,{},lgn),o.Kb=function(e){return new Pn(null,new Nn(X2e(u(e,74)),16))};var WWe=w(v1,"ElkGraphImporter/lambda$5$Type",1336);b(1338,1,He,x7n),o.Mb=function(e){return Oae(this.a,u(e,27))};var VWe=w(v1,"ElkGraphImporter/lambda$7$Type",1338);b(1339,1,He,agn),o.Mb=function(e){return ope(u(e,74))};var JWe=w(v1,"ElkGraphImporter/lambda$8$Type",1339);b(1297,1,{},S8n);var Ine,QWe=w(v1,"ElkGraphLayoutTransferrer",1297);b(1298,1,He,F7n),o.Mb=function(e){return m0e(this.a,u(e,18))};var YWe=w(v1,"ElkGraphLayoutTransferrer/lambda$0$Type",1298);b(1299,1,le,$7n),o.Cd=function(e){f7(),en(this.a,u(e,18))};var ZWe=w(v1,"ElkGraphLayoutTransferrer/lambda$1$Type",1299);b(1300,1,He,R7n),o.Mb=function(e){return r0e(this.a,u(e,18))};var nVe=w(v1,"ElkGraphLayoutTransferrer/lambda$2$Type",1300);b(1301,1,le,B7n),o.Cd=function(e){f7(),en(this.a,u(e,18))};var eVe=w(v1,"ElkGraphLayoutTransferrer/lambda$3$Type",1301);b(819,1,{},FW);var tVe=w(re,"BiLinkedHashMultiMap",819);b(1550,1,Pt,dgn),o.Kf=function(e,t){z6e(u(e,36),t)};var iVe=w(re,"CommentNodeMarginCalculator",1550);b(1551,1,{},bgn),o.Kb=function(e){return new Pn(null,new Nn(u(e,30).a,16))};var rVe=w(re,"CommentNodeMarginCalculator/lambda$0$Type",1551);b(1552,1,le,wgn),o.Cd=function(e){zOe(u(e,10))};var cVe=w(re,"CommentNodeMarginCalculator/lambda$1$Type",1552);b(1553,1,Pt,ggn),o.Kf=function(e,t){JSe(u(e,36),t)};var uVe=w(re,"CommentPostprocessor",1553);b(1554,1,Pt,pgn),o.Kf=function(e,t){vNe(u(e,36),t)};var oVe=w(re,"CommentPreprocessor",1554);b(1555,1,Pt,vgn),o.Kf=function(e,t){dSe(u(e,36),t)};var sVe=w(re,"ConstraintsPostprocessor",1555);b(1556,1,Pt,mgn),o.Kf=function(e,t){k5e(u(e,36),t)};var fVe=w(re,"EdgeAndLayerConstraintEdgeReverser",1556);b(1557,1,Pt,kgn),o.Kf=function(e,t){h7e(u(e,36),t)};var hVe=w(re,"EndLabelPostprocessor",1557);b(1558,1,{},ygn),o.Kb=function(e){return new Pn(null,new Nn(u(e,30).a,16))};var lVe=w(re,"EndLabelPostprocessor/lambda$0$Type",1558);b(1559,1,He,jgn),o.Mb=function(e){return C4e(u(e,10))};var aVe=w(re,"EndLabelPostprocessor/lambda$1$Type",1559);b(1560,1,le,Egn),o.Cd=function(e){nje(u(e,10))};var dVe=w(re,"EndLabelPostprocessor/lambda$2$Type",1560);b(1561,1,Pt,Mgn),o.Kf=function(e,t){HMe(u(e,36),t)};var bVe=w(re,"EndLabelPreprocessor",1561);b(1562,1,{},Cgn),o.Kb=function(e){return new Pn(null,new Nn(u(e,30).a,16))};var wVe=w(re,"EndLabelPreprocessor/lambda$0$Type",1562);b(1563,1,le,oIn),o.Cd=function(e){q1e(this.a,this.b,this.c,u(e,10))},o.a=0,o.b=0,o.c=!1;var gVe=w(re,"EndLabelPreprocessor/lambda$1$Type",1563);b(1564,1,He,Tgn),o.Mb=function(e){return F(m(u(e,72),(fn(),Oh)))===F((Bf(),Fm))};var pVe=w(re,"EndLabelPreprocessor/lambda$2$Type",1564);b(1565,1,le,K7n),o.Cd=function(e){We(this.a,u(e,72))};var vVe=w(re,"EndLabelPreprocessor/lambda$3$Type",1565);b(1566,1,He,Agn),o.Mb=function(e){return F(m(u(e,72),(fn(),Oh)))===F((Bf(),Ww))};var mVe=w(re,"EndLabelPreprocessor/lambda$4$Type",1566);b(1567,1,le,_7n),o.Cd=function(e){We(this.a,u(e,72))};var kVe=w(re,"EndLabelPreprocessor/lambda$5$Type",1567);b(1615,1,Pt,k8n),o.Kf=function(e,t){f9e(u(e,36),t)};var Pne,yVe=w(re,"EndLabelSorter",1615);b(1616,1,Ge,Sgn),o.Ne=function(e,t){return H7e(u(e,466),u(t,466))},o.Fb=function(e){return this===e},o.Oe=function(){return new Fe(this)};var jVe=w(re,"EndLabelSorter/1",1616);b(466,1,{466:1},DOn);var EVe=w(re,"EndLabelSorter/LabelGroup",466);b(1617,1,{},Ign),o.Kb=function(e){return s7(),new Pn(null,new Nn(u(e,30).a,16))};var MVe=w(re,"EndLabelSorter/lambda$0$Type",1617);b(1618,1,He,Pgn),o.Mb=function(e){return s7(),u(e,10).k==(ee(),ti)};var CVe=w(re,"EndLabelSorter/lambda$1$Type",1618);b(1619,1,le,Ogn),o.Cd=function(e){tMe(u(e,10))};var TVe=w(re,"EndLabelSorter/lambda$2$Type",1619);b(1620,1,He,Lgn),o.Mb=function(e){return s7(),F(m(u(e,72),(fn(),Oh)))===F((Bf(),Ww))};var AVe=w(re,"EndLabelSorter/lambda$3$Type",1620);b(1621,1,He,Dgn),o.Mb=function(e){return s7(),F(m(u(e,72),(fn(),Oh)))===F((Bf(),Fm))};var SVe=w(re,"EndLabelSorter/lambda$4$Type",1621);b(1568,1,Pt,Ngn),o.Kf=function(e,t){uLe(this,u(e,36))},o.b=0,o.c=0;var IVe=w(re,"FinalSplineBendpointsCalculator",1568);b(1569,1,{},xgn),o.Kb=function(e){return new Pn(null,new Nn(u(e,30).a,16))};var PVe=w(re,"FinalSplineBendpointsCalculator/lambda$0$Type",1569);b(1570,1,{},Fgn),o.Kb=function(e){return new Pn(null,new g0(new he(de(ri(u(e,10)).a.Kc(),new zn))))};var OVe=w(re,"FinalSplineBendpointsCalculator/lambda$1$Type",1570);b(1571,1,He,$gn),o.Mb=function(e){return!gr(u(e,18))};var LVe=w(re,"FinalSplineBendpointsCalculator/lambda$2$Type",1571);b(1572,1,He,Rgn),o.Mb=function(e){return Ot(u(e,18),(J(),Od))};var DVe=w(re,"FinalSplineBendpointsCalculator/lambda$3$Type",1572);b(1573,1,le,H7n),o.Cd=function(e){wPe(this.a,u(e,131))};var NVe=w(re,"FinalSplineBendpointsCalculator/lambda$4$Type",1573);b(1574,1,le,Bgn),o.Cd=function(e){ty(u(e,18).a)};var xVe=w(re,"FinalSplineBendpointsCalculator/lambda$5$Type",1574);b(803,1,Pt,QU),o.Kf=function(e,t){nDe(this,u(e,36),t)};var FVe=w(re,"GraphTransformer",803);b(517,22,{3:1,34:1,22:1,517:1},hX);var X_,wj,One=Me(re,"GraphTransformer/Mode",517,Pe,Ipe,hwe),Lne;b(1575,1,Pt,Kgn),o.Kf=function(e,t){jAe(u(e,36),t)};var $Ve=w(re,"HierarchicalNodeResizingProcessor",1575);b(1576,1,Pt,_gn),o.Kf=function(e,t){_6e(u(e,36),t)};var RVe=w(re,"HierarchicalPortConstraintProcessor",1576);b(1577,1,Ge,Hgn),o.Ne=function(e,t){return fke(u(e,10),u(t,10))},o.Fb=function(e){return this===e},o.Oe=function(){return new Fe(this)};var BVe=w(re,"HierarchicalPortConstraintProcessor/NodeComparator",1577);b(1578,1,Pt,qgn),o.Kf=function(e,t){hOe(u(e,36),t)};var KVe=w(re,"HierarchicalPortDummySizeProcessor",1578);b(1579,1,Pt,Ggn),o.Kf=function(e,t){kIe(this,u(e,36),t)},o.a=0;var _Ve=w(re,"HierarchicalPortOrthogonalEdgeRouter",1579);b(1580,1,Ge,Ugn),o.Ne=function(e,t){return jde(u(e,10),u(t,10))},o.Fb=function(e){return this===e},o.Oe=function(){return new Fe(this)};var HVe=w(re,"HierarchicalPortOrthogonalEdgeRouter/1",1580);b(1581,1,Ge,zgn),o.Ne=function(e,t){return Sme(u(e,10),u(t,10))},o.Fb=function(e){return this===e},o.Oe=function(){return new Fe(this)};var qVe=w(re,"HierarchicalPortOrthogonalEdgeRouter/2",1581);b(1582,1,Pt,Xgn),o.Kf=function(e,t){$Ee(u(e,36),t)};var GVe=w(re,"HierarchicalPortPositionProcessor",1582);b(1583,1,Pt,I8n),o.Kf=function(e,t){ZNe(this,u(e,36))},o.a=0,o.c=0;var SI,II,UVe=w(re,"HighDegreeNodeLayeringProcessor",1583);b(580,1,{580:1},Wgn),o.b=-1,o.d=-1;var zVe=w(re,"HighDegreeNodeLayeringProcessor/HighDegreeNodeInformation",580);b(1584,1,{},Vgn),o.Kb=function(e){return $7(),Oi(u(e,10))},o.Fb=function(e){return this===e};var XVe=w(re,"HighDegreeNodeLayeringProcessor/lambda$0$Type",1584);b(1585,1,{},Jgn),o.Kb=function(e){return $7(),ri(u(e,10))},o.Fb=function(e){return this===e};var WVe=w(re,"HighDegreeNodeLayeringProcessor/lambda$1$Type",1585);b(1591,1,Pt,Qgn),o.Kf=function(e,t){tOe(this,u(e,36),t)};var VVe=w(re,"HyperedgeDummyMerger",1591);b(804,1,{},QW),o.a=!1,o.b=!1,o.c=!1;var JVe=w(re,"HyperedgeDummyMerger/MergeState",804);b(1592,1,{},Ygn),o.Kb=function(e){return new Pn(null,new Nn(u(e,30).a,16))};var QVe=w(re,"HyperedgeDummyMerger/lambda$0$Type",1592);b(1593,1,{},Zgn),o.Kb=function(e){return new Pn(null,new Nn(u(e,10).j,16))};var YVe=w(re,"HyperedgeDummyMerger/lambda$1$Type",1593);b(1594,1,le,n2n),o.Cd=function(e){u(e,12).p=-1};var ZVe=w(re,"HyperedgeDummyMerger/lambda$2$Type",1594);b(1595,1,Pt,e2n),o.Kf=function(e,t){nOe(u(e,36),t)};var nJe=w(re,"HypernodesProcessor",1595);b(1596,1,Pt,t2n),o.Kf=function(e,t){fOe(u(e,36),t)};var eJe=w(re,"InLayerConstraintProcessor",1596);b(1597,1,Pt,i2n),o.Kf=function(e,t){t5e(u(e,36),t)};var tJe=w(re,"InnermostNodeMarginCalculator",1597);b(1598,1,Pt,r2n),o.Kf=function(e,t){bNe(this,u(e,36))},o.a=mi,o.b=mi,o.c=Bt,o.d=Bt;var fFe=w(re,"InteractiveExternalPortPositioner",1598);b(1599,1,{},c2n),o.Kb=function(e){return u(e,18).d.i},o.Fb=function(e){return this===e};var iJe=w(re,"InteractiveExternalPortPositioner/lambda$0$Type",1599);b(1600,1,{},q7n),o.Kb=function(e){return Ede(this.a,K(e))},o.Fb=function(e){return this===e};var rJe=w(re,"InteractiveExternalPortPositioner/lambda$1$Type",1600);b(1601,1,{},u2n),o.Kb=function(e){return u(e,18).c.i},o.Fb=function(e){return this===e};var cJe=w(re,"InteractiveExternalPortPositioner/lambda$2$Type",1601);b(1602,1,{},G7n),o.Kb=function(e){return Mde(this.a,K(e))},o.Fb=function(e){return this===e};var uJe=w(re,"InteractiveExternalPortPositioner/lambda$3$Type",1602);b(1603,1,{},U7n),o.Kb=function(e){return y0e(this.a,K(e))},o.Fb=function(e){return this===e};var oJe=w(re,"InteractiveExternalPortPositioner/lambda$4$Type",1603);b(1604,1,{},z7n),o.Kb=function(e){return j0e(this.a,K(e))},o.Fb=function(e){return this===e};var sJe=w(re,"InteractiveExternalPortPositioner/lambda$5$Type",1604);b(81,22,{3:1,34:1,22:1,81:1,196:1},fi),o.dg=function(){switch(this.g){case 15:return new Evn;case 22:return new Mvn;case 47:return new Avn;case 28:case 35:return new p2n;case 32:return new dgn;case 42:return new ggn;case 1:return new pgn;case 41:return new vgn;case 56:return new QU((U3(),wj));case 0:return new QU((U3(),X_));case 2:return new mgn;case 54:return new kgn;case 33:return new Mgn;case 51:return new Ngn;case 55:return new Kgn;case 13:return new _gn;case 38:return new qgn;case 44:return new Ggn;case 40:return new Xgn;case 9:return new I8n;case 49:return new zAn;case 37:return new Qgn;case 43:return new e2n;case 27:return new t2n;case 30:return new i2n;case 3:return new r2n;case 18:return new s2n;case 29:return new f2n;case 5:return new P8n;case 50:return new o2n;case 34:return new O8n;case 36:return new v2n;case 52:return new k8n;case 11:return new m2n;case 7:return new L8n;case 39:return new k2n;case 45:return new y2n;case 16:return new j2n;case 10:return new RCn;case 48:return new T2n;case 21:return new A2n;case 23:return new SL((P0(),t9));case 8:return new I2n;case 12:return new O2n;case 4:return new L2n;case 19:return new R8n;case 17:return new H2n;case 53:return new q2n;case 6:return new epn;case 25:return new Bjn;case 46:return new W2n;case 31:return new NSn;case 14:return new fpn;case 26:return new Pvn;case 20:return new bpn;case 24:return new SL((P0(),DP));default:throw C(new Yn(pB+(this.f!=null?this.f:""+this.g)))}};var isn,rsn,csn,usn,osn,ssn,fsn,hsn,lsn,asn,l2,PI,OI,dsn,bsn,wsn,gsn,psn,vsn,msn,F8,ksn,ysn,jsn,Esn,Msn,W_,LI,DI,Csn,NI,xI,FI,om,Pw,Ow,Tsn,$I,RI,Asn,BI,KI,Ssn,Isn,Psn,Osn,_I,V_,gj,HI,qI,GI,UI,Lsn,Dsn,Nsn,xsn,hFe=Me(re,vB,81,Pe,Xqn,fbe),Dne;b(1605,1,Pt,s2n),o.Kf=function(e,t){aNe(u(e,36),t)};var fJe=w(re,"InvertedPortProcessor",1605);b(1606,1,Pt,f2n),o.Kf=function(e,t){oPe(u(e,36),t)};var hJe=w(re,"LabelAndNodeSizeProcessor",1606);b(1607,1,He,h2n),o.Mb=function(e){return u(e,10).k==(ee(),ti)};var lJe=w(re,"LabelAndNodeSizeProcessor/lambda$0$Type",1607);b(1608,1,He,l2n),o.Mb=function(e){return u(e,10).k==(ee(),oi)};var aJe=w(re,"LabelAndNodeSizeProcessor/lambda$1$Type",1608);b(1609,1,le,sIn),o.Cd=function(e){G1e(this.b,this.a,this.c,u(e,10))},o.a=!1,o.c=!1;var dJe=w(re,"LabelAndNodeSizeProcessor/lambda$2$Type",1609);b(1610,1,Pt,P8n),o.Kf=function(e,t){RDe(u(e,36),t)};var Nne,bJe=w(re,"LabelDummyInserter",1610);b(1611,1,yh,a2n),o.Lb=function(e){return F(m(u(e,72),(fn(),Oh)))===F((Bf(),xm))},o.Fb=function(e){return this===e},o.Mb=function(e){return F(m(u(e,72),(fn(),Oh)))===F((Bf(),xm))};var wJe=w(re,"LabelDummyInserter/1",1611);b(1612,1,Pt,o2n),o.Kf=function(e,t){TDe(u(e,36),t)};var gJe=w(re,"LabelDummyRemover",1612);b(1613,1,He,d2n),o.Mb=function(e){return ln(hn(m(u(e,72),(fn(),$H))))};var pJe=w(re,"LabelDummyRemover/lambda$0$Type",1613);b(1378,1,Pt,O8n),o.Kf=function(e,t){vDe(this,u(e,36),t)},o.a=null;var J_,vJe=w(re,"LabelDummySwitcher",1378);b(293,1,{293:1},zGn),o.c=0,o.d=null,o.f=0;var mJe=w(re,"LabelDummySwitcher/LabelDummyInfo",293);b(1379,1,{},b2n),o.Kb=function(e){return Kp(),new Pn(null,new Nn(u(e,30).a,16))};var kJe=w(re,"LabelDummySwitcher/lambda$0$Type",1379);b(1380,1,He,w2n),o.Mb=function(e){return Kp(),u(e,10).k==(ee(),Nc)};var yJe=w(re,"LabelDummySwitcher/lambda$1$Type",1380);b(1381,1,{},X7n),o.Kb=function(e){return c0e(this.a,u(e,10))};var jJe=w(re,"LabelDummySwitcher/lambda$2$Type",1381);b(1382,1,le,W7n),o.Cd=function(e){C2e(this.a,u(e,293))};var EJe=w(re,"LabelDummySwitcher/lambda$3$Type",1382);b(1383,1,Ge,g2n),o.Ne=function(e,t){return Vge(u(e,293),u(t,293))},o.Fb=function(e){return this===e},o.Oe=function(){return new Fe(this)};var MJe=w(re,"LabelDummySwitcher/lambda$4$Type",1383);b(802,1,Pt,p2n),o.Kf=function(e,t){ome(u(e,36),t)};var CJe=w(re,"LabelManagementProcessor",802);b(1614,1,Pt,v2n),o.Kf=function(e,t){RSe(u(e,36),t)};var TJe=w(re,"LabelSideSelector",1614);b(1622,1,Pt,m2n),o.Kf=function(e,t){COe(u(e,36),t)};var AJe=w(re,"LayerConstraintPostprocessor",1622);b(1623,1,Pt,L8n),o.Kf=function(e,t){kTe(u(e,36),t)};var Fsn,SJe=w(re,"LayerConstraintPreprocessor",1623);b(371,22,{3:1,34:1,22:1,371:1},pM);var pj,zI,XI,Q_,xne=Me(re,"LayerConstraintPreprocessor/HiddenNodeConnections",371,Pe,B3e,hbe),Fne;b(1624,1,Pt,k2n),o.Kf=function(e,t){HLe(u(e,36),t)};var IJe=w(re,"LayerSizeAndGraphHeightCalculator",1624);b(1625,1,Pt,y2n),o.Kf=function(e,t){EAe(u(e,36),t)};var PJe=w(re,"LongEdgeJoiner",1625);b(1626,1,Pt,j2n),o.Kf=function(e,t){pLe(u(e,36),t)};var OJe=w(re,"LongEdgeSplitter",1626);b(1627,1,Pt,RCn),o.Kf=function(e,t){ZDe(this,u(e,36),t)},o.e=0,o.f=0,o.j=0,o.k=0,o.n=0,o.o=0;var $ne,Rne,LJe=w(re,"NodePromotion",1627);b(1628,1,Ge,E2n),o.Ne=function(e,t){return a8e(u(e,10),u(t,10))},o.Fb=function(e){return this===e},o.Oe=function(){return new Fe(this)};var DJe=w(re,"NodePromotion/1",1628);b(1629,1,Ge,M2n),o.Ne=function(e,t){return d8e(u(e,10),u(t,10))},o.Fb=function(e){return this===e},o.Oe=function(){return new Fe(this)};var NJe=w(re,"NodePromotion/2",1629);b(1630,1,{},C2n),o.Kb=function(e){return u(e,42),YM(),Wn(),!0},o.Fb=function(e){return this===e};var xJe=w(re,"NodePromotion/lambda$0$Type",1630);b(1631,1,{},Y7n),o.Kb=function(e){return sve(this.a,u(e,42))},o.Fb=function(e){return this===e},o.a=0;var FJe=w(re,"NodePromotion/lambda$1$Type",1631);b(1632,1,{},Z7n),o.Kb=function(e){return ove(this.a,u(e,42))},o.Fb=function(e){return this===e},o.a=0;var $Je=w(re,"NodePromotion/lambda$2$Type",1632);b(1633,1,Pt,T2n),o.Kf=function(e,t){XNe(u(e,36),t)};var RJe=w(re,"NorthSouthPortPostprocessor",1633);b(1634,1,Pt,A2n),o.Kf=function(e,t){ANe(u(e,36),t)};var BJe=w(re,"NorthSouthPortPreprocessor",1634);b(1635,1,Ge,S2n),o.Ne=function(e,t){return A5e(u(e,12),u(t,12))},o.Fb=function(e){return this===e},o.Oe=function(){return new Fe(this)};var KJe=w(re,"NorthSouthPortPreprocessor/lambda$0$Type",1635);b(1636,1,Pt,I2n),o.Kf=function(e,t){HPe(u(e,36),t)};var _Je=w(re,"PartitionMidprocessor",1636);b(1637,1,He,P2n),o.Mb=function(e){return Ot(u(e,10),(fn(),ym))};var HJe=w(re,"PartitionMidprocessor/lambda$0$Type",1637);b(1638,1,le,nkn),o.Cd=function(e){spe(this.a,u(e,10))};var qJe=w(re,"PartitionMidprocessor/lambda$1$Type",1638);b(1639,1,Pt,O2n),o.Kf=function(e,t){GAe(u(e,36),t)};var GJe=w(re,"PartitionPostprocessor",1639);b(1640,1,Pt,L2n),o.Kf=function(e,t){rTe(u(e,36),t)};var UJe=w(re,"PartitionPreprocessor",1640);b(1641,1,He,D2n),o.Mb=function(e){return Ot(u(e,10),(fn(),ym))};var zJe=w(re,"PartitionPreprocessor/lambda$0$Type",1641);b(1642,1,{},N2n),o.Kb=function(e){return new Pn(null,new g0(new he(de(ri(u(e,10)).a.Kc(),new zn))))};var XJe=w(re,"PartitionPreprocessor/lambda$1$Type",1642);b(1643,1,He,x2n),o.Mb=function(e){return W7e(u(e,18))};var WJe=w(re,"PartitionPreprocessor/lambda$2$Type",1643);b(1644,1,le,F2n),o.Cd=function(e){G5e(u(e,18))};var VJe=w(re,"PartitionPreprocessor/lambda$3$Type",1644);b(1645,1,Pt,R8n),o.Kf=function(e,t){jPe(u(e,36),t)};var $sn,Bne,Kne,_ne,Rsn,Bsn,JJe=w(re,"PortListSorter",1645);b(1648,1,Ge,$2n),o.Ne=function(e,t){return $Dn(u(e,12),u(t,12))},o.Fb=function(e){return this===e},o.Oe=function(){return new Fe(this)};var QJe=w(re,"PortListSorter/lambda$0$Type",1648);b(1650,1,Ge,R2n),o.Ne=function(e,t){return gUn(u(e,12),u(t,12))},o.Fb=function(e){return this===e},o.Oe=function(){return new Fe(this)};var YJe=w(re,"PortListSorter/lambda$1$Type",1650);b(1646,1,{},B2n),o.Kb=function(e){return t4(),u(e,12).e};var ZJe=w(re,"PortListSorter/lambda$2$Type",1646);b(1647,1,{},K2n),o.Kb=function(e){return t4(),u(e,12).g};var nQe=w(re,"PortListSorter/lambda$3$Type",1647);b(1649,1,Ge,_2n),o.Ne=function(e,t){return vye(u(e,12),u(t,12))},o.Fb=function(e){return this===e},o.Oe=function(){return new Fe(this)};var eQe=w(re,"PortListSorter/lambda$4$Type",1649);b(1651,1,Pt,H2n),o.Kf=function(e,t){DTe(u(e,36),t)};var tQe=w(re,"PortSideProcessor",1651);b(1652,1,Pt,q2n),o.Kf=function(e,t){NIe(u(e,36),t)};var iQe=w(re,"ReversedEdgeRestorer",1652);b(1657,1,Pt,Bjn),o.Kf=function(e,t){nye(this,u(e,36),t)};var rQe=w(re,"SelfLoopPortRestorer",1657);b(1658,1,{},G2n),o.Kb=function(e){return new Pn(null,new Nn(u(e,30).a,16))};var cQe=w(re,"SelfLoopPortRestorer/lambda$0$Type",1658);b(1659,1,He,U2n),o.Mb=function(e){return u(e,10).k==(ee(),ti)};var uQe=w(re,"SelfLoopPortRestorer/lambda$1$Type",1659);b(1660,1,He,z2n),o.Mb=function(e){return Ot(u(e,10),(J(),fb))};var oQe=w(re,"SelfLoopPortRestorer/lambda$2$Type",1660);b(1661,1,{},X2n),o.Kb=function(e){return u(m(u(e,10),(J(),fb)),337)};var sQe=w(re,"SelfLoopPortRestorer/lambda$3$Type",1661);b(1662,1,le,J7n),o.Cd=function(e){wMe(this.a,u(e,337))};var fQe=w(re,"SelfLoopPortRestorer/lambda$4$Type",1662);b(805,1,le,oU),o.Cd=function(e){SMe(u(e,105))};var hQe=w(re,"SelfLoopPortRestorer/lambda$5$Type",805);b(1663,1,Pt,W2n),o.Kf=function(e,t){uke(u(e,36),t)};var lQe=w(re,"SelfLoopPostProcessor",1663);b(1664,1,{},V2n),o.Kb=function(e){return new Pn(null,new Nn(u(e,30).a,16))};var aQe=w(re,"SelfLoopPostProcessor/lambda$0$Type",1664);b(1665,1,He,J2n),o.Mb=function(e){return u(e,10).k==(ee(),ti)};var dQe=w(re,"SelfLoopPostProcessor/lambda$1$Type",1665);b(1666,1,He,Q2n),o.Mb=function(e){return Ot(u(e,10),(J(),fb))};var bQe=w(re,"SelfLoopPostProcessor/lambda$2$Type",1666);b(1667,1,le,Y2n),o.Cd=function(e){pje(u(e,10))};var wQe=w(re,"SelfLoopPostProcessor/lambda$3$Type",1667);b(1668,1,{},Z2n),o.Kb=function(e){return new Pn(null,new Nn(u(e,105).f,1))};var gQe=w(re,"SelfLoopPostProcessor/lambda$4$Type",1668);b(1669,1,le,V7n),o.Cd=function(e){q3e(this.a,u(e,340))};var pQe=w(re,"SelfLoopPostProcessor/lambda$5$Type",1669);b(1670,1,He,npn),o.Mb=function(e){return!!u(e,105).i};var vQe=w(re,"SelfLoopPostProcessor/lambda$6$Type",1670);b(1671,1,le,Q7n),o.Cd=function(e){qle(this.a,u(e,105))};var mQe=w(re,"SelfLoopPostProcessor/lambda$7$Type",1671);b(1653,1,Pt,epn),o.Kf=function(e,t){sAe(u(e,36),t)};var kQe=w(re,"SelfLoopPreProcessor",1653);b(1654,1,{},tpn),o.Kb=function(e){return new Pn(null,new Nn(u(e,105).f,1))};var yQe=w(re,"SelfLoopPreProcessor/lambda$0$Type",1654);b(1655,1,{},ipn),o.Kb=function(e){return u(e,340).a};var jQe=w(re,"SelfLoopPreProcessor/lambda$1$Type",1655);b(1656,1,le,rpn),o.Cd=function(e){zae(u(e,18))};var EQe=w(re,"SelfLoopPreProcessor/lambda$2$Type",1656);b(1672,1,Pt,NSn),o.Kf=function(e,t){JEe(this,u(e,36),t)};var MQe=w(re,"SelfLoopRouter",1672);b(1673,1,{},cpn),o.Kb=function(e){return new Pn(null,new Nn(u(e,30).a,16))};var CQe=w(re,"SelfLoopRouter/lambda$0$Type",1673);b(1674,1,He,upn),o.Mb=function(e){return u(e,10).k==(ee(),ti)};var TQe=w(re,"SelfLoopRouter/lambda$1$Type",1674);b(1675,1,He,opn),o.Mb=function(e){return Ot(u(e,10),(J(),fb))};var AQe=w(re,"SelfLoopRouter/lambda$2$Type",1675);b(1676,1,{},spn),o.Kb=function(e){return u(m(u(e,10),(J(),fb)),337)};var SQe=w(re,"SelfLoopRouter/lambda$3$Type",1676);b(1677,1,le,vCn),o.Cd=function(e){tpe(this.a,this.b,u(e,337))};var IQe=w(re,"SelfLoopRouter/lambda$4$Type",1677);b(1678,1,Pt,fpn),o.Kf=function(e,t){TSe(u(e,36),t)};var PQe=w(re,"SemiInteractiveCrossMinProcessor",1678);b(1679,1,He,hpn),o.Mb=function(e){return u(e,10).k==(ee(),ti)};var OQe=w(re,"SemiInteractiveCrossMinProcessor/lambda$0$Type",1679);b(1680,1,He,lpn),o.Mb=function(e){return QIn(u(e,10))._b((fn(),Kw))};var LQe=w(re,"SemiInteractiveCrossMinProcessor/lambda$1$Type",1680);b(1681,1,Ge,apn),o.Ne=function(e,t){return q6e(u(e,10),u(t,10))},o.Fb=function(e){return this===e},o.Oe=function(){return new Fe(this)};var DQe=w(re,"SemiInteractiveCrossMinProcessor/lambda$2$Type",1681);b(1682,1,{},dpn),o.Ve=function(e,t){return fpe(u(e,10),u(t,10))};var NQe=w(re,"SemiInteractiveCrossMinProcessor/lambda$3$Type",1682);b(1684,1,Pt,bpn),o.Kf=function(e,t){JOe(u(e,36),t)};var xQe=w(re,"SortByInputModelProcessor",1684);b(1685,1,He,wpn),o.Mb=function(e){return u(e,12).g.c.length!=0};var FQe=w(re,"SortByInputModelProcessor/lambda$0$Type",1685);b(1686,1,le,ekn),o.Cd=function(e){DMe(this.a,u(e,12))};var $Qe=w(re,"SortByInputModelProcessor/lambda$1$Type",1686);b(1759,817,{},o$n),o.df=function(e){var t,i,r,c;switch(this.c=e,this.a.g){case 2:t=new nn,Zt(pt(new Pn(null,new Nn(this.c.a.b,16)),new Ipn),new ACn(this,t)),iy(this,new ppn),ou(t,new vpn),t.c.length=0,Zt(pt(new Pn(null,new Nn(this.c.a.b,16)),new mpn),new ikn(t)),iy(this,new kpn),ou(t,new ypn),t.c.length=0,i=sAn(qx(Hb(new Pn(null,new Nn(this.c.a.b,16)),new rkn(this))),new jpn),Zt(new Pn(null,new Nn(this.c.a.a,16)),new yCn(i,t)),iy(this,new Mpn),ou(t,new Cpn),t.c.length=0;break;case 3:r=new nn,iy(this,new gpn),c=sAn(qx(Hb(new Pn(null,new Nn(this.c.a.b,16)),new tkn(this))),new Epn),Zt(pt(new Pn(null,new Nn(this.c.a.b,16)),new Tpn),new ECn(c,r)),iy(this,new Apn),ou(r,new Spn),r.c.length=0;break;default:throw C(new Tjn)}},o.b=0;var RQe=w(yi,"EdgeAwareScanlineConstraintCalculation",1759);b(1760,1,yh,gpn),o.Lb=function(e){return L(u(e,60).g,154)},o.Fb=function(e){return this===e},o.Mb=function(e){return L(u(e,60).g,154)};var BQe=w(yi,"EdgeAwareScanlineConstraintCalculation/lambda$0$Type",1760);b(1761,1,{},tkn),o.Ye=function(e){return gCe(this.a,u(e,60))};var KQe=w(yi,"EdgeAwareScanlineConstraintCalculation/lambda$1$Type",1761);b(1769,1,nS,mCn),o.de=function(){P5(this.a,this.b,-1)},o.b=0;var _Qe=w(yi,"EdgeAwareScanlineConstraintCalculation/lambda$10$Type",1769);b(1771,1,yh,ppn),o.Lb=function(e){return L(u(e,60).g,154)},o.Fb=function(e){return this===e},o.Mb=function(e){return L(u(e,60).g,154)};var HQe=w(yi,"EdgeAwareScanlineConstraintCalculation/lambda$11$Type",1771);b(1772,1,le,vpn),o.Cd=function(e){u(e,380).de()};var qQe=w(yi,"EdgeAwareScanlineConstraintCalculation/lambda$12$Type",1772);b(1773,1,He,mpn),o.Mb=function(e){return L(u(e,60).g,10)};var GQe=w(yi,"EdgeAwareScanlineConstraintCalculation/lambda$13$Type",1773);b(1775,1,le,ikn),o.Cd=function(e){F9e(this.a,u(e,60))};var UQe=w(yi,"EdgeAwareScanlineConstraintCalculation/lambda$14$Type",1775);b(1774,1,nS,MCn),o.de=function(){P5(this.b,this.a,-1)},o.a=0;var zQe=w(yi,"EdgeAwareScanlineConstraintCalculation/lambda$15$Type",1774);b(1776,1,yh,kpn),o.Lb=function(e){return L(u(e,60).g,10)},o.Fb=function(e){return this===e},o.Mb=function(e){return L(u(e,60).g,10)};var XQe=w(yi,"EdgeAwareScanlineConstraintCalculation/lambda$16$Type",1776);b(1777,1,le,ypn),o.Cd=function(e){u(e,380).de()};var WQe=w(yi,"EdgeAwareScanlineConstraintCalculation/lambda$17$Type",1777);b(1778,1,{},rkn),o.Ye=function(e){return pCe(this.a,u(e,60))};var VQe=w(yi,"EdgeAwareScanlineConstraintCalculation/lambda$18$Type",1778);b(1779,1,{},jpn),o.We=function(){return 0};var JQe=w(yi,"EdgeAwareScanlineConstraintCalculation/lambda$19$Type",1779);b(1762,1,{},Epn),o.We=function(){return 0};var QQe=w(yi,"EdgeAwareScanlineConstraintCalculation/lambda$2$Type",1762);b(1781,1,le,yCn),o.Cd=function(e){_ge(this.a,this.b,u(e,316))},o.a=0;var YQe=w(yi,"EdgeAwareScanlineConstraintCalculation/lambda$20$Type",1781);b(1780,1,nS,jCn),o.de=function(){jqn(this.a,this.b,-1)},o.b=0;var ZQe=w(yi,"EdgeAwareScanlineConstraintCalculation/lambda$21$Type",1780);b(1782,1,yh,Mpn),o.Lb=function(e){return u(e,60),!0},o.Fb=function(e){return this===e},o.Mb=function(e){return u(e,60),!0};var nYe=w(yi,"EdgeAwareScanlineConstraintCalculation/lambda$22$Type",1782);b(1783,1,le,Cpn),o.Cd=function(e){u(e,380).de()};var eYe=w(yi,"EdgeAwareScanlineConstraintCalculation/lambda$23$Type",1783);b(1763,1,He,Tpn),o.Mb=function(e){return L(u(e,60).g,10)};var tYe=w(yi,"EdgeAwareScanlineConstraintCalculation/lambda$3$Type",1763);b(1765,1,le,ECn),o.Cd=function(e){Hge(this.a,this.b,u(e,60))},o.a=0;var iYe=w(yi,"EdgeAwareScanlineConstraintCalculation/lambda$4$Type",1765);b(1764,1,nS,CCn),o.de=function(){P5(this.b,this.a,-1)},o.a=0;var rYe=w(yi,"EdgeAwareScanlineConstraintCalculation/lambda$5$Type",1764);b(1766,1,yh,Apn),o.Lb=function(e){return u(e,60),!0},o.Fb=function(e){return this===e},o.Mb=function(e){return u(e,60),!0};var cYe=w(yi,"EdgeAwareScanlineConstraintCalculation/lambda$6$Type",1766);b(1767,1,le,Spn),o.Cd=function(e){u(e,380).de()};var uYe=w(yi,"EdgeAwareScanlineConstraintCalculation/lambda$7$Type",1767);b(1768,1,He,Ipn),o.Mb=function(e){return L(u(e,60).g,154)};var oYe=w(yi,"EdgeAwareScanlineConstraintCalculation/lambda$8$Type",1768);b(1770,1,le,ACn),o.Cd=function(e){u6e(this.a,this.b,u(e,60))};var sYe=w(yi,"EdgeAwareScanlineConstraintCalculation/lambda$9$Type",1770);b(1586,1,Pt,zAn),o.Kf=function(e,t){ELe(this,u(e,36),t)};var Hne,fYe=w(yi,"HorizontalGraphCompactor",1586);b(1587,1,{},ckn),o.ff=function(e,t){var i,r,c;return kQ(e,t)||(i=Tg(e),r=Tg(t),i&&i.k==(ee(),oi)||r&&r.k==(ee(),oi))?0:(c=u(m(this.a.a,(J(),k2)),312),Sde(c,i?i.k:(ee(),Ni),r?r.k:(ee(),Ni)))},o.gf=function(e,t){var i,r,c;return kQ(e,t)?1:(i=Tg(e),r=Tg(t),c=u(m(this.a.a,(J(),k2)),312),lW(c,i?i.k:(ee(),Ni),r?r.k:(ee(),Ni)))};var hYe=w(yi,"HorizontalGraphCompactor/1",1587);b(1588,1,{},Ppn),o.ef=function(e,t){return s6(),e.a.i==0};var lYe=w(yi,"HorizontalGraphCompactor/lambda$0$Type",1588);b(1589,1,{},ukn),o.ef=function(e,t){return ape(this.a,e,t)};var aYe=w(yi,"HorizontalGraphCompactor/lambda$1$Type",1589);b(1730,1,{},Fxn);var qne,Gne,dYe=w(yi,"LGraphToCGraphTransformer",1730);b(1738,1,He,Opn),o.Mb=function(e){return e!=null};var bYe=w(yi,"LGraphToCGraphTransformer/0methodref$nonNull$Type",1738);b(1731,1,{},Lpn),o.Kb=function(e){return _s(),tc(m(u(u(e,60).g,10),(J(),yt)))};var wYe=w(yi,"LGraphToCGraphTransformer/lambda$0$Type",1731);b(1732,1,{},Dpn),o.Kb=function(e){return _s(),XRn(u(u(e,60).g,154))};var gYe=w(yi,"LGraphToCGraphTransformer/lambda$1$Type",1732);b(1741,1,He,Npn),o.Mb=function(e){return _s(),L(u(e,60).g,10)};var pYe=w(yi,"LGraphToCGraphTransformer/lambda$10$Type",1741);b(1742,1,le,xpn),o.Cd=function(e){ppe(u(e,60))};var vYe=w(yi,"LGraphToCGraphTransformer/lambda$11$Type",1742);b(1743,1,He,Fpn),o.Mb=function(e){return _s(),L(u(e,60).g,154)};var mYe=w(yi,"LGraphToCGraphTransformer/lambda$12$Type",1743);b(1747,1,le,$pn),o.Cd=function(e){W8e(u(e,60))};var kYe=w(yi,"LGraphToCGraphTransformer/lambda$13$Type",1747);b(1744,1,le,okn),o.Cd=function(e){yae(this.a,u(e,8))},o.a=0;var yYe=w(yi,"LGraphToCGraphTransformer/lambda$14$Type",1744);b(1745,1,le,skn),o.Cd=function(e){Eae(this.a,u(e,116))},o.a=0;var jYe=w(yi,"LGraphToCGraphTransformer/lambda$15$Type",1745);b(1746,1,le,fkn),o.Cd=function(e){jae(this.a,u(e,8))},o.a=0;var EYe=w(yi,"LGraphToCGraphTransformer/lambda$16$Type",1746);b(1748,1,{},Rpn),o.Kb=function(e){return _s(),new Pn(null,new g0(new he(de(ri(u(e,10)).a.Kc(),new zn))))};var MYe=w(yi,"LGraphToCGraphTransformer/lambda$17$Type",1748);b(1749,1,He,Bpn),o.Mb=function(e){return _s(),gr(u(e,18))};var CYe=w(yi,"LGraphToCGraphTransformer/lambda$18$Type",1749);b(1750,1,le,hkn),o.Cd=function(e){Rme(this.a,u(e,18))};var TYe=w(yi,"LGraphToCGraphTransformer/lambda$19$Type",1750);b(1734,1,le,lkn),o.Cd=function(e){l3e(this.a,u(e,154))};var AYe=w(yi,"LGraphToCGraphTransformer/lambda$2$Type",1734);b(1751,1,{},Kpn),o.Kb=function(e){return _s(),new Pn(null,new Nn(u(e,30).a,16))};var SYe=w(yi,"LGraphToCGraphTransformer/lambda$20$Type",1751);b(1752,1,{},_pn),o.Kb=function(e){return _s(),new Pn(null,new g0(new he(de(ri(u(e,10)).a.Kc(),new zn))))};var IYe=w(yi,"LGraphToCGraphTransformer/lambda$21$Type",1752);b(1753,1,{},Hpn),o.Kb=function(e){return _s(),u(m(u(e,18),(J(),Od)),15)};var PYe=w(yi,"LGraphToCGraphTransformer/lambda$22$Type",1753);b(1754,1,He,qpn),o.Mb=function(e){return Ide(u(e,15))};var OYe=w(yi,"LGraphToCGraphTransformer/lambda$23$Type",1754);b(1755,1,le,akn),o.Cd=function(e){cCe(this.a,u(e,15))};var LYe=w(yi,"LGraphToCGraphTransformer/lambda$24$Type",1755);b(1733,1,le,SCn),o.Cd=function(e){s4e(this.a,this.b,u(e,154))};var DYe=w(yi,"LGraphToCGraphTransformer/lambda$3$Type",1733);b(1735,1,{},Gpn),o.Kb=function(e){return _s(),new Pn(null,new Nn(u(e,30).a,16))};var NYe=w(yi,"LGraphToCGraphTransformer/lambda$4$Type",1735);b(1736,1,{},Upn),o.Kb=function(e){return _s(),new Pn(null,new g0(new he(de(ri(u(e,10)).a.Kc(),new zn))))};var xYe=w(yi,"LGraphToCGraphTransformer/lambda$5$Type",1736);b(1737,1,{},zpn),o.Kb=function(e){return _s(),u(m(u(e,18),(J(),Od)),15)};var FYe=w(yi,"LGraphToCGraphTransformer/lambda$6$Type",1737);b(1739,1,le,dkn),o.Cd=function(e){vCe(this.a,u(e,15))};var $Ye=w(yi,"LGraphToCGraphTransformer/lambda$8$Type",1739);b(1740,1,le,ICn),o.Cd=function(e){Xae(this.a,this.b,u(e,154))};var RYe=w(yi,"LGraphToCGraphTransformer/lambda$9$Type",1740);b(1729,1,{},Xpn),o.cf=function(e){var t,i,r,c,s;for(this.a=e,this.d=new mL,this.c=_(kon,Gn,125,this.a.a.a.c.length,0,1),this.b=0,i=new M(this.a.a.a);i.a=j&&(en(s,Z(d)),O=y.Math.max(O,N[d-1]-g),h+=k,A+=N[d-1]-A,g=N[d-1],k=l[d]),k=y.Math.max(k,l[d]),++d;h+=k}v=y.Math.min(1/O,1/t.b/h),v>r&&(r=v,i=s)}return i},o.pg=function(){return!1};var tnt=w(Ch,"MSDCutIndexHeuristic",816);b(1683,1,Pt,Pvn),o.Kf=function(e,t){AOe(u(e,36),t)};var int=w(Ch,"SingleEdgeGraphWrapper",1683);b(232,22,{3:1,34:1,22:1,232:1},g6);var d2,hm,lm,Lw,$8,b2,am=Me(Dc,"CenterEdgeLabelPlacementStrategy",232,Pe,ame,bbe),tee;b(431,22,{3:1,34:1,22:1,431:1},aX);var _sn,sH,Hsn=Me(Dc,"ConstraintCalculationStrategy",431,Pe,Lpe,wbe),iee;b(322,22,{3:1,34:1,22:1,322:1,188:1,196:1},ZL),o.dg=function(){return PHn(this)},o.qg=function(){return PHn(this)};var mj,R8,qsn,Gsn=Me(Dc,"CrossingMinimizationStrategy",322,Pe,Tve,gbe),ree;b(351,22,{3:1,34:1,22:1,351:1},nD);var Usn,fH,YI,zsn=Me(Dc,"CuttingStrategy",351,Pe,Ave,pbe),cee;b(348,22,{3:1,34:1,22:1,348:1,188:1,196:1},d7),o.dg=function(){return kqn(this)},o.qg=function(){return kqn(this)};var Xsn,hH,dm,lH,bm,Wsn=Me(Dc,"CycleBreakingStrategy",348,Pe,P4e,vbe),uee;b(428,22,{3:1,34:1,22:1,428:1},dX);var ZI,Vsn,Jsn=Me(Dc,"DirectionCongruency",428,Pe,Ope,mbe),oee;b(460,22,{3:1,34:1,22:1,460:1},eD);var wm,aH,w2,see=Me(Dc,"EdgeConstraint",460,Pe,Sve,Tbe),fee;b(283,22,{3:1,34:1,22:1,283:1},p6);var dH,bH,wH,gH,nP,pH,Qsn=Me(Dc,"EdgeLabelSideSelection",283,Pe,fme,Abe),hee;b(488,22,{3:1,34:1,22:1,488:1},bX);var eP,Ysn,Zsn=Me(Dc,"EdgeStraighteningStrategy",488,Pe,Bpe,Sbe),lee;b(281,22,{3:1,34:1,22:1,281:1},v6);var vH,nfn,efn,tP,tfn,ifn,rfn=Me(Dc,"FixedAlignment",281,Pe,hme,Cbe),aee;b(282,22,{3:1,34:1,22:1,282:1},m6);var cfn,ufn,ofn,sfn,B8,ffn,hfn=Me(Dc,"GraphCompactionStrategy",282,Pe,lme,kbe),dee;b(259,22,{3:1,34:1,22:1,259:1},Pb);var gm,iP,pm,fs,K8,rP,vm,g2,cP,_8,mH=Me(Dc,"GraphProperties",259,Pe,V6e,ybe),bee;b(299,22,{3:1,34:1,22:1,299:1},tD);var kj,kH,yH,jH=Me(Dc,"GreedySwitchType",299,Pe,Ive,jbe),wee;b(311,22,{3:1,34:1,22:1,311:1},iD);var yv,yj,p2,gee=Me(Dc,"InLayerConstraint",311,Pe,Pve,Ebe),pee;b(429,22,{3:1,34:1,22:1,429:1},wX);var EH,lfn,afn=Me(Dc,"InteractiveReferencePoint",429,Pe,Ppe,Mbe),vee,dfn,jv,ub,uP,bfn,wfn,oP,gfn,jj,sP,H8,Ev,$l,MH,fP,jc,pfn,ka,Jc,CH,TH,Ej,Pd,ob,Mv,vfn,Cv,Mj,Dw,Tf,As,AH,v2,Ct,yt,mfn,kfn,yfn,jfn,Efn,SH,hP,Qu,sb,IH,Tv,q8,Jf,m2,fb,k2,y2,mm,Od,Mfn,PH,OH,Av;b(171,22,{3:1,34:1,22:1,171:1},b7);var G8,ya,U8,Nw,Cj,Cfn=Me(Dc,"LayerConstraint",171,Pe,L4e,Ibe),mee;b(859,1,js,U8n),o.hf=function(e){Mn(e,new gn(jn(yn(En(Ln(pn(kn(vn(mn(new wn,Ein),""),"Direction Congruency"),"Specifies how drawings of the same graph with different layout directions compare to each other: either a natural reading direction is preserved or the drawings are rotated versions of each other."),xfn),(b1(),Kt)),Jsn),Tn((jf(),qn))))),Mn(e,new gn(jn(yn(En(Ln(pn(kn(vn(mn(new wn,Min),""),"Feedback Edges"),"Whether feedback edges should be highlighted by routing around the nodes."),(Wn(),!1)),Pi),ei),Tn(qn)))),Mn(e,new gn(jn(yn(En(Ln(pn(kn(vn(mn(new wn,wS),""),"Interactive Reference Point"),"Determines which point of a node is considered by interactive layout phases."),_fn),Kt),afn),Tn(qn)))),ai(e,wS,yB,dte),ai(e,wS,h8,ate),Mn(e,new gn(jn(yn(En(Ln(pn(kn(vn(mn(new wn,Cin),""),"Merge Edges"),"Edges that have no ports are merged so they touch the connected nodes at the same points. When this option is disabled, one port is created for each edge directly connected to a node. When it is enabled, all such incoming edges share an input port, and all outgoing edges share an output port."),!1),Pi),ei),Tn(qn)))),Mn(e,new gn(jn(yn(En(Ln(pn(kn(vn(mn(new wn,Tin),""),"Merge Hierarchy-Crossing Edges"),"If hierarchical layout is active, hierarchy-crossing edges use as few hierarchical ports as possible. They are broken by the algorithm, with hierarchical ports inserted as required. Usually, one such port is created for each edge at each hierarchy crossing point. With this option set to true, we try to create as few hierarchical ports as possible in the process. In particular, all edges that form a hyperedge can share a port."),!0),Pi),ei),Tn(qn)))),Mn(e,new gn(y1e(jn(yn(En(Ln(pn(kn(vn(mn(new wn,Ain),""),"Allow Non-Flow Ports To Switch Sides"),"Specifies whether non-flow ports may switch sides if their node's port constraints are either FIXED_SIDE or FIXED_ORDER. A non-flow port is a port on a side that is not part of the currently configured layout flow. For instance, given a left-to-right layout direction, north and south ports would be considered non-flow ports. Further note that the underlying criterium whether to switch sides or not solely relies on the minimization of edge crossings. Hence, edge length and other aesthetics criteria are not addressed."),!1),Pi),ei),Tn(Bd)),S(T(dn,1),Q,2,6,["org.eclipse.elk.layered.northOrSouthPort"])))),Mn(e,new gn(jn(yn(En(Ln(pn(kn(vn(mn(new wn,Sin),""),"Port Sorting Strategy"),"Only relevant for nodes with FIXED_SIDE port constraints. Determines the way a node's ports are distributed on the sides of a node if their order is not prescribed. The option is set on parent nodes."),Vfn),Kt),rln),Tn(qn)))),Mn(e,new gn(jn(yn(En(Ln(pn(kn(vn(mn(new wn,Iin),""),"Thoroughness"),"How much effort should be spent to produce a nice layout."),Z(7)),cc),Yi),Tn(qn)))),Mn(e,new gn(jn(yn(En(Ln(pn(kn(vn(mn(new wn,Pin),""),"Add Unnecessary Bendpoints"),"Adds bend points even if an edge does not change direction. If true, each long edge dummy will contribute a bend point to its edges and hierarchy-crossing edges will always get a bend point where they cross hierarchy boundaries. By default, bend points are only added where an edge changes direction."),!1),Pi),ei),Tn(qn)))),Mn(e,new gn(jn(yn(En(Ln(pn(kn(vn(mn(new wn,Oin),""),"Generate Position and Layer IDs"),"If enabled position id and layer id are generated, which are usually only used internally when setting the interactiveLayout option. This option should be specified on the root node."),!1),Pi),ei),Tn(qn)))),Mn(e,new gn(jn(yn(En(Ln(pn(kn(vn(mn(new wn,yB),"cycleBreaking"),"Cycle Breaking Strategy"),"Strategy for cycle breaking. Cycle breaking looks for cycles in the graph and determines which edges to reverse to break the cycles. Reversed edges will end up pointing to the opposite direction of regular edges (that is, reversed edges will point left if edges usually point right)."),Nfn),Kt),Wsn),Tn(qn)))),Mn(e,new gn(jn(yn(En(Ln(pn(kn(vn(mn(new wn,Gy),UB),"Node Layering Strategy"),"Strategy for node layering."),Gfn),Kt),zhn),Tn(qn)))),Mn(e,new gn(jn(yn(En(Ln(pn(kn(vn(mn(new wn,Lin),UB),"Layer Constraint"),"Determines a constraint on the placement of the node regarding the layering."),Hfn),Kt),Cfn),Tn(Ti)))),Mn(e,new gn(jn(yn(En(Ln(pn(kn(vn(mn(new wn,Din),UB),"Layer Choice Constraint"),"Allows to set a constraint regarding the layer placement of a node. Let i be the value of teh constraint. Assumed the drawing has n layers and i < n. If set to i, it expresses that the node should be placed in i-th layer. Should i>=n be true then the node is placed in the last layer of the drawing. Note that this option is not part of any of ELK Layered's default configurations but is only evaluated as part of the `InteractiveLayeredGraphVisitor`, which must be applied manually or used via the `DiagramLayoutEngine."),null),cc),Yi),Tn(Ti)))),Mn(e,new gn(jn(yn(En(Ln(pn(kn(vn(mn(new wn,Nin),UB),"Layer ID"),"Layer identifier that was calculated by ELK Layered for a node. This is only generated if interactiveLayot or generatePositionAndLayerIds is set."),Z(-1)),cc),Yi),Tn(Ti)))),Mn(e,new gn(jn(yn(En(Ln(pn(kn(vn(mn(new wn,jB),_Wn),"Upper Bound On Width [MinWidth Layerer]"),"Defines a loose upper bound on the width of the MinWidth layerer. If set to '-1' multiple values are tested and the best result is selected."),Z(4)),cc),Yi),Tn(qn)))),ai(e,jB,Gy,kte),Mn(e,new gn(jn(yn(En(Ln(pn(kn(vn(mn(new wn,EB),_Wn),"Upper Layer Estimation Scaling Factor [MinWidth Layerer]"),"Multiplied with Upper Bound On Width for defining an upper bound on the width of layers which haven't been determined yet, but whose maximum width had been (roughly) estimated by the MinWidth algorithm. Compensates for too high estimations. If set to '-1' multiple values are tested and the best result is selected."),Z(2)),cc),Yi),Tn(qn)))),ai(e,EB,Gy,jte),Mn(e,new gn(jn(yn(En(Ln(pn(kn(vn(mn(new wn,MB),HWn),"Node Promotion Strategy"),"Reduces number of dummy nodes after layering phase (if possible)."),qfn),Kt),eln),Tn(qn)))),Mn(e,new gn(jn(yn(En(Ln(pn(kn(vn(mn(new wn,CB),HWn),"Max Node Promotion Iterations"),"Limits the number of iterations for node promotion."),Z(0)),cc),Yi),Tn(qn)))),ai(e,CB,MB,null),Mn(e,new gn(jn(yn(En(Ln(pn(kn(vn(mn(new wn,TB),"layering.coffmanGraham"),"Layer Bound"),"The maximum number of nodes allowed per layer."),Z(at)),cc),Yi),Tn(qn)))),ai(e,TB,Gy,wte),Mn(e,new gn(jn(yn(En(Ln(pn(kn(vn(mn(new wn,h8),z4),"Crossing Minimization Strategy"),"Strategy for crossing minimization."),Dfn),Kt),Gsn),Tn(qn)))),Mn(e,new gn(jn(yn(En(Ln(pn(kn(vn(mn(new wn,xin),z4),"Force Node Model Order"),"The node order given by the model does not change to produce a better layout. E.g. if node A is before node B in the model this is not changed during crossing minimization. This assumes that the node model order is already respected before crossing minimization. This can be achieved by setting considerModelOrder.strategy to NODES_AND_EDGES."),!1),Pi),ei),Tn(qn)))),Mn(e,new gn(jn(yn(En(Ln(pn(kn(vn(mn(new wn,AB),z4),"Hierarchical Sweepiness"),"How likely it is to use cross-hierarchy (1) vs bottom-up (-1)."),.1),cr),gi),Tn(qn)))),ai(e,AB,SS,Bee),Mn(e,new gn(jn(yn(En(Ln(pn(kn(vn(mn(new wn,SB),z4),"Semi-Interactive Crossing Minimization"),"Preserves the order of nodes within a layer but still minimizes crossings between edges connecting long edge dummies. Derives the desired order from positions specified by the 'org.eclipse.elk.position' layout option. Requires a crossing minimization strategy that is able to process 'in-layer' constraints."),!1),Pi),ei),Tn(qn)))),ai(e,SB,h8,Uee),Mn(e,new gn(jn(yn(En(Ln(pn(kn(vn(mn(new wn,Fin),z4),"In Layer Predecessor of"),"Allows to set a constraint which specifies of which node the current node is the predecessor. If set to 's' then the node is the predecessor of 's' and is in the same layer"),null),L2),dn),Tn(Ti)))),Mn(e,new gn(jn(yn(En(Ln(pn(kn(vn(mn(new wn,$in),z4),"In Layer Successor of"),"Allows to set a constraint which specifies of which node the current node is the successor. If set to 's' then the node is the successor of 's' and is in the same layer"),null),L2),dn),Tn(Ti)))),Mn(e,new gn(jn(yn(En(Ln(pn(kn(vn(mn(new wn,Rin),z4),"Position Choice Constraint"),"Allows to set a constraint regarding the position placement of a node in a layer. Assumed the layer in which the node placed includes n other nodes and i < n. If set to i, it expresses that the node should be placed at the i-th position. Should i>=n be true then the node is placed at the last position in the layer. Note that this option is not part of any of ELK Layered's default configurations but is only evaluated as part of the `InteractiveLayeredGraphVisitor`, which must be applied manually or used via the `DiagramLayoutEngine."),null),cc),Yi),Tn(Ti)))),Mn(e,new gn(jn(yn(En(Ln(pn(kn(vn(mn(new wn,Bin),z4),"Position ID"),"Position within a layer that was determined by ELK Layered for a node. This is only generated if interactiveLayot or generatePositionAndLayerIds is set."),Z(-1)),cc),Yi),Tn(Ti)))),Mn(e,new gn(jn(yn(En(Ln(pn(kn(vn(mn(new wn,Kin),qWn),"Greedy Switch Activation Threshold"),"By default it is decided automatically if the greedy switch is activated or not. The decision is based on whether the size of the input graph (without dummy nodes) is smaller than the value of this option. A '0' enforces the activation."),Z(40)),cc),Yi),Tn(qn)))),Mn(e,new gn(jn(yn(En(Ln(pn(kn(vn(mn(new wn,IB),qWn),"Greedy Switch Crossing Minimization"),"Greedy Switch strategy for crossing minimization. The greedy switch heuristic is executed after the regular crossing minimization as a post-processor. Note that if 'hierarchyHandling' is set to 'INCLUDE_CHILDREN', the 'greedySwitchHierarchical.type' option must be used."),Lfn),Kt),jH),Tn(qn)))),ai(e,IB,h8,$ee),Mn(e,new gn(jn(yn(En(Ln(pn(kn(vn(mn(new wn,gS),"crossingMinimization.greedySwitchHierarchical"),"Greedy Switch Crossing Minimization (hierarchical)"),"Activates the greedy switch heuristic in case hierarchical layout is used. The differences to the non-hierarchical case (see 'greedySwitch.type') are: 1) greedy switch is inactive by default, 3) only the option value set on the node at which hierarchical layout starts is relevant, and 2) if it's activated by the user, it properly addresses hierarchy-crossing edges."),Ofn),Kt),jH),Tn(qn)))),ai(e,gS,h8,Nee),ai(e,gS,SS,xee),Mn(e,new gn(jn(yn(En(Ln(pn(kn(vn(mn(new wn,t2),GWn),"Node Placement Strategy"),"Strategy for node placement."),Wfn),Kt),Jhn),Tn(qn)))),Mn(e,new gn(jn(yn(En(pn(kn(vn(mn(new wn,pS),GWn),"Favor Straight Edges Over Balancing"),"Favor straight edges over a balanced node placement. The default behavior is determined automatically based on the used 'edgeRouting'. For an orthogonal style it is set to true, for all other styles to false."),Pi),ei),Tn(qn)))),ai(e,pS,t2,Dte),ai(e,pS,t2,Nte),Mn(e,new gn(jn(yn(En(Ln(pn(kn(vn(mn(new wn,PB),UWn),"BK Edge Straightening"),"Specifies whether the Brandes Koepf node placer tries to increase the number of straight edges at the expense of diagram size. There is a subtle difference to the 'favorStraightEdges' option, which decides whether a balanced placement of the nodes is desired, or not. In bk terms this means combining the four alignments into a single balanced one, or not. This option on the other hand tries to straighten additional edges during the creation of each of the four alignments."),Ufn),Kt),Zsn),Tn(qn)))),ai(e,PB,t2,Ite),Mn(e,new gn(jn(yn(En(Ln(pn(kn(vn(mn(new wn,OB),UWn),"BK Fixed Alignment"),"Tells the BK node placer to use a certain alignment (out of its four) instead of the one producing the smallest height, or the combination of all four."),zfn),Kt),rfn),Tn(qn)))),ai(e,OB,t2,Ote),Mn(e,new gn(jn(yn(En(Ln(pn(kn(vn(mn(new wn,LB),"nodePlacement.linearSegments"),"Linear Segments Deflection Dampening"),"Dampens the movement of nodes to keep the diagram from getting too large."),.3),cr),gi),Tn(qn)))),ai(e,LB,t2,Fte),Mn(e,new gn(jn(yn(En(pn(kn(vn(mn(new wn,DB),"nodePlacement.networkSimplex"),"Node Flexibility"),"Aims at shorter and straighter edges. Two configurations are possible: (a) allow ports to move freely on the side they are assigned to (the order is always defined beforehand), (b) additionally allow to enlarge a node wherever it helps. If this option is not configured for a node, the 'nodeFlexibility.default' value is used, which is specified for the node's parent."),Kt),ZH),Tn(Ti)))),ai(e,DB,t2,Kte),Mn(e,new gn(jn(yn(En(Ln(pn(kn(vn(mn(new wn,NB),"nodePlacement.networkSimplex.nodeFlexibility"),"Node Flexibility Default"),"Default value of the 'nodeFlexibility' option for the children of a hierarchical node."),Xfn),Kt),ZH),Tn(qn)))),ai(e,NB,t2,Bte),Mn(e,new gn(jn(yn(En(Ln(pn(kn(vn(mn(new wn,_in),zWn),"Self-Loop Distribution"),"Alter the distribution of the loops around the node. It only takes effect for PortConstraints.FREE."),Rfn),Kt),oln),Tn(Ti)))),Mn(e,new gn(jn(yn(En(Ln(pn(kn(vn(mn(new wn,Hin),zWn),"Self-Loop Ordering"),"Alter the ordering of the loops they can either be stacked or sequenced. It only takes effect for PortConstraints.FREE."),Bfn),Kt),sln),Tn(Ti)))),Mn(e,new gn(jn(yn(En(Ln(pn(kn(vn(mn(new wn,vS),"edgeRouting.splines"),"Spline Routing Mode"),"Specifies the way control points are assembled for each individual edge. CONSERVATIVE ensures that edges are properly routed around the nodes but feels rather orthogonal at times. SLOPPY uses fewer control points to obtain curvier edge routes but may result in edges overlapping nodes."),Kfn),Kt),hln),Tn(qn)))),ai(e,vS,Uy,tte),Mn(e,new gn(jn(yn(En(Ln(pn(kn(vn(mn(new wn,mS),"edgeRouting.splines.sloppy"),"Sloppy Spline Layer Spacing Factor"),"Spacing factor for routing area between layers when using sloppy spline routing."),.2),cr),gi),Tn(qn)))),ai(e,mS,Uy,rte),ai(e,mS,vS,cte),Mn(e,new gn(jn(yn(En(Ln(pn(kn(vn(mn(new wn,xB),"edgeRouting.polyline"),"Sloped Edge Zone Width"),"Width of the strip to the left and to the right of each layer where the polyline edge router is allowed to refrain from ensuring that edges are routed horizontally. This prevents awkward bend points for nodes that extent almost to the edge of their layer."),2),cr),gi),Tn(qn)))),ai(e,xB,Uy,Yee),Mn(e,new gn(jn(yn(En(pn(kn(vn(mn(new wn,qin),Xf),"Spacing Base Value"),"An optional base value for all other layout options of the 'spacing' group. It can be used to conveniently alter the overall 'spaciousness' of the drawing. Whenever an explicit value is set for the other layout options, this base value will have no effect. The base value is not inherited, i.e. it must be set for each hierarchical node."),cr),gi),Tn(qn)))),Mn(e,new gn(jn(yn(En(Ln(pn(kn(vn(mn(new wn,Gin),Xf),"Edge Node Between Layers Spacing"),"The spacing to be preserved between nodes and edges that are routed next to the node's layer. For the spacing between nodes and edges that cross the node's layer 'spacing.edgeNode' is used."),10),cr),gi),Tn(qn)))),Mn(e,new gn(jn(yn(En(Ln(pn(kn(vn(mn(new wn,Uin),Xf),"Edge Edge Between Layer Spacing"),"Spacing to be preserved between pairs of edges that are routed between the same pair of layers. Note that 'spacing.edgeEdge' is used for the spacing between pairs of edges crossing the same layer."),10),cr),gi),Tn(qn)))),Mn(e,new gn(jn(yn(En(Ln(pn(kn(vn(mn(new wn,zin),Xf),"Node Node Between Layers Spacing"),"The spacing to be preserved between any pair of nodes of two adjacent layers. Note that 'spacing.nodeNode' is used for the spacing between nodes within the layer itself."),20),cr),gi),Tn(qn)))),Mn(e,new gn(jn(yn(En(Ln(pn(kn(vn(mn(new wn,Xin),irn),"Direction Priority"),"Defines how important it is to have a certain edge point into the direction of the overall layout. This option is evaluated during the cycle breaking phase."),Z(0)),cc),Yi),Tn(Dh)))),Mn(e,new gn(jn(yn(En(Ln(pn(kn(vn(mn(new wn,Win),irn),"Shortness Priority"),"Defines how important it is to keep an edge as short as possible. This option is evaluated during the layering phase."),Z(0)),cc),Yi),Tn(Dh)))),Mn(e,new gn(jn(yn(En(Ln(pn(kn(vn(mn(new wn,Vin),irn),"Straightness Priority"),"Defines how important it is to keep an edge straight, i.e. aligned with one of the two axes. This option is evaluated during node placement."),Z(0)),cc),Yi),Tn(Dh)))),Mn(e,new gn(jn(yn(En(Ln(pn(kn(vn(mn(new wn,FB),rrn),fWn),"Tries to further compact components (disconnected sub-graphs)."),!1),Pi),ei),Tn(qn)))),ai(e,FB,c8,!0),Mn(e,new gn(jn(yn(En(Ln(pn(kn(vn(mn(new wn,Jin),XWn),"Post Compaction Strategy"),WWn),Afn),Kt),hfn),Tn(qn)))),Mn(e,new gn(jn(yn(En(Ln(pn(kn(vn(mn(new wn,Qin),XWn),"Post Compaction Constraint Calculation"),WWn),Tfn),Kt),Hsn),Tn(qn)))),Mn(e,new gn(jn(yn(En(Ln(pn(kn(vn(mn(new wn,kS),crn),"High Degree Node Treatment"),"Makes room around high degree nodes to place leafs and trees."),!1),Pi),ei),Tn(qn)))),Mn(e,new gn(jn(yn(En(Ln(pn(kn(vn(mn(new wn,$B),crn),"High Degree Node Threshold"),"Whether a node is considered to have a high degree."),Z(16)),cc),Yi),Tn(qn)))),ai(e,$B,kS,!0),Mn(e,new gn(jn(yn(En(Ln(pn(kn(vn(mn(new wn,RB),crn),"High Degree Node Maximum Tree Height"),"Maximum height of a subtree connected to a high degree node to be moved to separate layers."),Z(5)),cc),Yi),Tn(qn)))),ai(e,RB,kS,!0),Mn(e,new gn(jn(yn(En(Ln(pn(kn(vn(mn(new wn,Nl),urn),"Graph Wrapping Strategy"),"For certain graphs and certain prescribed drawing areas it may be desirable to split the laid out graph into chunks that are placed side by side. The edges that connect different chunks are 'wrapped' around from the end of one chunk to the start of the other chunk. The points between the chunks are referred to as 'cuts'."),Yfn),Kt),bln),Tn(qn)))),Mn(e,new gn(jn(yn(En(Ln(pn(kn(vn(mn(new wn,yS),urn),"Additional Wrapped Edges Spacing"),"To visually separate edges that are wrapped from regularly routed edges an additional spacing value can be specified in form of this layout option. The spacing is added to the regular edgeNode spacing."),10),cr),gi),Tn(qn)))),ai(e,yS,Nl,Zte),ai(e,yS,Nl,nie),Mn(e,new gn(jn(yn(En(Ln(pn(kn(vn(mn(new wn,jS),urn),"Correction Factor for Wrapping"),"At times and for certain types of graphs the executed wrapping may produce results that are consistently biased in the same fashion: either wrapping to often or to rarely. This factor can be used to correct the bias. Internally, it is simply multiplied with the 'aspect ratio' layout option."),1),cr),gi),Tn(qn)))),ai(e,jS,Nl,tie),ai(e,jS,Nl,iie),Mn(e,new gn(jn(yn(En(Ln(pn(kn(vn(mn(new wn,l8),VWn),"Cutting Strategy"),"The strategy by which the layer indexes are determined at which the layering crumbles into chunks."),Qfn),Kt),zsn),Tn(qn)))),ai(e,l8,Nl,fie),ai(e,l8,Nl,hie),Mn(e,new gn(jn(yn(En(pn(kn(vn(mn(new wn,BB),VWn),"Manually Specified Cuts"),"Allows the user to specify her own cuts for a certain graph."),Yf),ss),Tn(qn)))),ai(e,BB,l8,cie),Mn(e,new gn(jn(yn(En(Ln(pn(kn(vn(mn(new wn,KB),"wrapping.cutting.msd"),"MSD Freedom"),"The MSD cutting strategy starts with an initial guess on the number of chunks the graph should be split into. The freedom specifies how much the strategy may deviate from this guess. E.g. if an initial number of 3 is computed, a freedom of 1 allows 2, 3, and 4 cuts."),Jfn),cc),Yi),Tn(qn)))),ai(e,KB,l8,oie),Mn(e,new gn(jn(yn(En(Ln(pn(kn(vn(mn(new wn,ES),JWn),"Validification Strategy"),"When wrapping graphs, one can specify indices that are not allowed as split points. The validification strategy makes sure every computed split point is allowed."),Zfn),Kt),dln),Tn(qn)))),ai(e,ES,Nl,jie),ai(e,ES,Nl,Eie),Mn(e,new gn(jn(yn(En(pn(kn(vn(mn(new wn,MS),JWn),"Valid Indices for Wrapping"),null),Yf),ss),Tn(qn)))),ai(e,MS,Nl,mie),ai(e,MS,Nl,kie),Mn(e,new gn(jn(yn(En(Ln(pn(kn(vn(mn(new wn,CS),orn),"Improve Cuts"),"For general graphs it is important that not too many edges wrap backwards. Thus a compromise between evenly-distributed cuts and the total number of cut edges is sought."),!0),Pi),ei),Tn(qn)))),ai(e,CS,Nl,bie),Mn(e,new gn(jn(yn(En(Ln(pn(kn(vn(mn(new wn,TS),orn),"Distance Penalty When Improving Cuts"),null),2),cr),gi),Tn(qn)))),ai(e,TS,Nl,aie),ai(e,TS,CS,!0),Mn(e,new gn(jn(yn(En(Ln(pn(kn(vn(mn(new wn,_B),orn),"Improve Wrapped Edges"),"The initial wrapping is performed in a very simple way. As a consequence, edges that wrap from one chunk to another may be unnecessarily long. Activating this option tries to shorten such edges."),!0),Pi),ei),Tn(qn)))),ai(e,_B,Nl,gie),Mn(e,new gn(jn(yn(En(Ln(pn(kn(vn(mn(new wn,Yin),zB),"Edge Label Side Selection"),"Method to decide on edge label sides."),$fn),Kt),Qsn),Tn(qn)))),Mn(e,new gn(jn(yn(En(Ln(pn(kn(vn(mn(new wn,Zin),zB),"Edge Center Label Placement Strategy"),"Determines in which layer center labels of long edges should be placed."),Ffn),Kt),am),Lt(qn,S(T(il,1),z,170,0,[T1]))))),Mn(e,new gn(jn(yn(En(Ln(pn(kn(vn(mn(new wn,AS),a8),"Consider Model Order"),"Preserves the order of nodes and edges in the model file if this does not lead to additional edge crossings. Depending on the strategy this is not always possible since the node and edge order might be conflicting."),Pfn),Kt),iln),Tn(qn)))),Mn(e,new gn(jn(yn(En(Ln(pn(kn(vn(mn(new wn,nrn),a8),"Consider Port Order"),"If disabled the port order of output ports is derived from the edge order and input ports are ordered by their incoming connections. If enabled all ports are ordered by the port model order."),!1),Pi),ei),Tn(qn)))),Mn(e,new gn(jn(yn(En(Ln(pn(kn(vn(mn(new wn,ern),a8),"No Model Order"),"Set on a node to not set a model order for this node even though it is a real node."),!1),Pi),ei),Tn(Ti)))),Mn(e,new gn(jn(yn(En(Ln(pn(kn(vn(mn(new wn,HB),a8),"Consider Model Order for Components"),"If set to NONE the usual ordering strategy (by cumulative node priority and size of nodes) is used. INSIDE_PORT_SIDES orders the components with external ports only inside the groups with the same port side. FORCE_MODEL_ORDER enforces the mode order on components. This option might produce bad alignments and sub optimal drawings in terms of used area since the ordering should be respected."),Sfn),Kt),Jon),Tn(qn)))),ai(e,HB,c8,null),Mn(e,new gn(jn(yn(En(Ln(pn(kn(vn(mn(new wn,trn),a8),"Long Edge Ordering Strategy"),"Indicates whether long edges are sorted under, over, or equal to nodes that have no connection to a previous layer in a left-to-right or right-to-left layout. Under and over changes to right and left in a vertical layout."),Ifn),Kt),Whn),Tn(qn)))),Mn(e,new gn(jn(yn(En(Ln(pn(kn(vn(mn(new wn,qB),a8),"Crossing Counter Node Order Influence"),"Indicates with what percentage (1 for 100%) violations of the node model order are weighted against the crossings e.g. a value of 0.5 means two model order violations are as important as on edge crossing. This allows some edge crossings in favor of preserving the model order. It is advised to set this value to a very small positive value (e.g. 0.001) to have minimal crossing and a optimal node order. Defaults to no influence (0)."),0),cr),gi),Tn(qn)))),ai(e,qB,AS,null),Mn(e,new gn(jn(yn(En(Ln(pn(kn(vn(mn(new wn,GB),a8),"Crossing Counter Port Order Influence"),"Indicates with what percentage (1 for 100%) violations of the port model order are weighted against the crossings e.g. a value of 0.5 means two model order violations are as important as on edge crossing. This allows some edge crossings in favor of preserving the model order. It is advised to set this value to a very small positive value (e.g. 0.001) to have minimal crossing and a optimal port order. Defaults to no influence (0)."),0),cr),gi),Tn(qn)))),ai(e,GB,AS,null),bXn((new z8n,e))};var kee,yee,jee,Tfn,Eee,Afn,Mee,Sfn,Cee,Tee,Aee,Ifn,See,Iee,Pee,Pfn,Oee,Lee,Dee,Ofn,Nee,xee,Fee,Lfn,$ee,Ree,Bee,Kee,_ee,Hee,qee,Gee,Uee,zee,Dfn,Xee,Nfn,Wee,xfn,Vee,Ffn,Jee,$fn,Qee,Yee,Zee,Rfn,nte,Bfn,ete,Kfn,tte,ite,rte,cte,ute,ote,ste,fte,hte,lte,_fn,ate,dte,bte,wte,gte,pte,Hfn,vte,mte,kte,yte,jte,Ete,Mte,qfn,Cte,Gfn,Tte,Ate,Ste,Ufn,Ite,Pte,zfn,Ote,Lte,Dte,Nte,xte,Fte,$te,Rte,Xfn,Bte,Kte,_te,Wfn,Hte,Vfn,qte,Gte,Ute,zte,Xte,Wte,Vte,Jte,Qte,Yte,Zte,nie,eie,tie,iie,rie,cie,uie,Jfn,oie,sie,Qfn,fie,hie,lie,aie,die,bie,wie,gie,pie,Yfn,vie,mie,kie,yie,Zfn,jie,Eie,rnt=w(Dc,"LayeredMetaDataProvider",859);b(998,1,js,z8n),o.hf=function(e){bXn(e)};var Ph,LH,lP,z8,aP,nhn,dP,xw,bP,ehn,thn,wP,DH,tl,NH,hb,ihn,Tj,xH,rhn,Mie,Cie,Tie,gP,FH,X8,Ld,Aie,Fo,chn,uhn,pP,$H,Oh,vP,Rl,ohn,shn,fhn,RH,BH,hhn,y1,KH,lhn,Fw,ahn,dhn,bhn,mP,$w,Dd,whn,ghn,qr,phn,Sie,bu,kP,vhn,mhn,khn,ja,Nd,yP,yhn,jhn,jP,lb,Ehn,_H,W8,Mhn,ab,V8,EP,xd,HH,km,MP,Fd,Chn,Thn,Ahn,ym,Shn,Iie,Pie,Oie,Lie,db,Rw,Yt,j1,Die,Bw,Ihn,jm,Phn,Kw,Nie,Em,Ohn,Sv,xie,Fie,Aj,qH,Lhn,Sj,Zs,j2,E2,bb,$d,CP,_w,GH,Mm,Cm,wb,M2,UH,Ij,J8,Q8,$ie,Rie,Bie,Dhn,Kie,zH,Nhn,xhn,Fhn,$hn,XH,Rhn,Bhn,Khn,_hn,WH,TP,cnt=w(Dc,"LayeredOptions",998);b(999,1,{},Ovn),o.sf=function(){var e;return e=new Njn,e},o.tf=function(e){};var unt=w(Dc,"LayeredOptions/LayeredFactory",999);b(1391,1,{}),o.a=0;var _ie,ont=w(mc,"ElkSpacings/AbstractSpacingsBuilder",1391);b(792,1391,{},fZ);var AP,Hie,snt=w(Dc,"LayeredSpacings/LayeredSpacingsBuilder",792);b(265,22,{3:1,34:1,22:1,265:1,188:1,196:1},hg),o.dg=function(){return IGn(this)},o.qg=function(){return IGn(this)};var Tm,VH,Am,Hhn,qhn,Ghn,SP,JH,Uhn,zhn=Me(Dc,"LayeringStrategy",265,Pe,C6e,Pbe),qie;b(390,22,{3:1,34:1,22:1,390:1},rD);var QH,Xhn,IP,Whn=Me(Dc,"LongEdgeOrderingStrategy",390,Pe,Ove,Obe),Gie;b(203,22,{3:1,34:1,22:1,203:1},mM);var C2,T2,PP,YH,ZH=Me(Dc,"NodeFlexibility",203,Pe,K3e,Lbe),Uie;b(323,22,{3:1,34:1,22:1,323:1,188:1,196:1},w7),o.dg=function(){return mqn(this)},o.qg=function(){return mqn(this)};var Y8,nq,eq,Z8,Vhn,Jhn=Me(Dc,"NodePlacementStrategy",323,Pe,O4e,Dbe),zie;b(243,22,{3:1,34:1,22:1,243:1},Ob);var Qhn,gb,Hw,Pj,Yhn,Zhn,Oj,nln,OP,LP,eln=Me(Dc,"NodePromotionStrategy",243,Pe,J6e,Nbe),Xie;b(284,22,{3:1,34:1,22:1,284:1},kM);var tln,E1,tq,iq,iln=Me(Dc,"OrderingStrategy",284,Pe,_3e,xbe),Wie;b(430,22,{3:1,34:1,22:1,430:1},gX);var rq,cq,rln=Me(Dc,"PortSortingStrategy",430,Pe,Dpe,Fbe),Vie;b(463,22,{3:1,34:1,22:1,463:1},cD);var Yu,ru,n9,Jie=Me(Dc,"PortType",463,Pe,Lve,$be),Qie;b(387,22,{3:1,34:1,22:1,387:1},uD);var cln,uq,uln,oln=Me(Dc,"SelfLoopDistributionStrategy",387,Pe,Dve,Rbe),Yie;b(349,22,{3:1,34:1,22:1,349:1},oD);var oq,Lj,sq,sln=Me(Dc,"SelfLoopOrderingStrategy",349,Pe,Nve,Bbe),Zie;b(312,1,{312:1},lzn);var fnt=w(Dc,"Spacings",312);b(350,22,{3:1,34:1,22:1,350:1},sD);var fq,fln,e9,hln=Me(Dc,"SplineRoutingMode",350,Pe,xve,Kbe),nre;b(352,22,{3:1,34:1,22:1,352:1},fD);var hq,lln,aln,dln=Me(Dc,"ValidifyStrategy",352,Pe,Fve,_be),ere;b(388,22,{3:1,34:1,22:1,388:1},hD);var qw,lq,Sm,bln=Me(Dc,"WrappingStrategy",388,Pe,$ve,Hbe),tre;b(1398,1,Ar,$8n),o.rg=function(e){return u(e,36),ire},o.Kf=function(e,t){kLe(this,u(e,36),t)};var ire,hnt=w(LS,"DepthFirstCycleBreaker",1398);b(793,1,Ar,IV),o.rg=function(e){return u(e,36),rre},o.Kf=function(e,t){Mxe(this,u(e,36),t)},o.sg=function(e){return u(an(e,fA(this.d,e.c.length)),10)};var rre,lnt=w(LS,"GreedyCycleBreaker",793);b(1401,793,Ar,PTn),o.sg=function(e){var t,i,r,c;for(c=null,t=at,r=new M(e);r.a1&&(ln(hn(m(Vi(($n(0,e.c.length),u(e.c[0],10))),(fn(),hb))))?Lqn(e,this.d,u(this,669)):(Fn(),ui(e,this.d)),D$n(this.e,e))},o.lg=function(e,t,i,r){var c,s,f,h,l,a,d;for(t!=JIn(i,e.length)&&(s=e[t-(i?1:-1)],rQ(this.f,s,i?(Mr(),ru):(Mr(),Yu))),c=e[t][0],d=!r||c.k==(ee(),oi),a=xf(e[t]),this.vg(a,d,!1,i),f=0,l=new M(a);l.a"),e0?GN(this.a,e[t-1],e[t]):!i&&t1&&(ln(hn(m(Vi(($n(0,e.c.length),u(e.c[0],10))),(fn(),hb))))?Lqn(e,this.d,this):(Fn(),ui(e,this.d)),ln(hn(m(Vi(($n(0,e.c.length),u(e.c[0],10))),hb)))||D$n(this.e,e))};var Jnt=w(Ku,"ModelOrderBarycenterHeuristic",669);b(1866,1,Ge,Dkn),o.Ne=function(e,t){return kMe(this.a,u(e,10),u(t,10))},o.Fb=function(e){return this===e},o.Oe=function(){return new Fe(this)};var Qnt=w(Ku,"ModelOrderBarycenterHeuristic/lambda$0$Type",1866);b(1423,1,Ar,W8n),o.rg=function(e){var t;return u(e,36),t=FM(kre),Qe(t,(er(),Bc),(fr(),_I)),t},o.Kf=function(e,t){ipe((u(e,36),t))};var kre,Ynt=w(Ku,"NoCrossingMinimizer",1423);b(809,413,Hrn,Bz),o.tg=function(e,t,i){var r,c,s,f,h,l,a,d,g,p,v;switch(g=this.g,i.g){case 1:{for(c=0,s=0,d=new M(e.j);d.a1&&(c.j==(rn(),ue)?this.b[e]=!0:c.j==te&&e>0&&(this.b[e-1]=!0))},o.f=0;var eet=w(Yh,"AllCrossingsCounter",1861);b(595,1,{},AT),o.b=0,o.d=0;var tet=w(Yh,"BinaryIndexedTree",595);b(532,1,{},F7);var pln,NP,iet=w(Yh,"CrossingsCounter",532);b(1950,1,Ge,Nkn),o.Ne=function(e,t){return Ige(this.a,u(e,12),u(t,12))},o.Fb=function(e){return this===e},o.Oe=function(){return new Fe(this)};var ret=w(Yh,"CrossingsCounter/lambda$0$Type",1950);b(1951,1,Ge,xkn),o.Ne=function(e,t){return Pge(this.a,u(e,12),u(t,12))},o.Fb=function(e){return this===e},o.Oe=function(){return new Fe(this)};var cet=w(Yh,"CrossingsCounter/lambda$1$Type",1951);b(1952,1,Ge,Fkn),o.Ne=function(e,t){return Oge(this.a,u(e,12),u(t,12))},o.Fb=function(e){return this===e},o.Oe=function(){return new Fe(this)};var uet=w(Yh,"CrossingsCounter/lambda$2$Type",1952);b(1953,1,Ge,$kn),o.Ne=function(e,t){return Lge(this.a,u(e,12),u(t,12))},o.Fb=function(e){return this===e},o.Oe=function(){return new Fe(this)};var oet=w(Yh,"CrossingsCounter/lambda$3$Type",1953);b(1954,1,le,Rkn),o.Cd=function(e){Lme(this.a,u(e,12))};var set=w(Yh,"CrossingsCounter/lambda$4$Type",1954);b(1955,1,He,Bkn),o.Mb=function(e){return iae(this.a,u(e,12))};var fet=w(Yh,"CrossingsCounter/lambda$5$Type",1955);b(1956,1,le,Kkn),o.Cd=function(e){yTn(this,e)};var het=w(Yh,"CrossingsCounter/lambda$6$Type",1956);b(1957,1,le,LCn),o.Cd=function(e){var t;p3(),V1(this.b,(t=this.a,u(e,12),t))};var aet=w(Yh,"CrossingsCounter/lambda$7$Type",1957);b(839,1,yh,bU),o.Lb=function(e){return p3(),Ot(u(e,12),(J(),Qu))},o.Fb=function(e){return this===e},o.Mb=function(e){return p3(),Ot(u(e,12),(J(),Qu))};var det=w(Yh,"CrossingsCounter/lambda$8$Type",839);b(1949,1,{},_kn);var bet=w(Yh,"HyperedgeCrossingsCounter",1949);b(478,1,{34:1,478:1},xSn),o.Fd=function(e){return O7e(this,u(e,478))},o.b=0,o.c=0,o.e=0,o.f=0;var lFe=w(Yh,"HyperedgeCrossingsCounter/Hyperedge",478);b(374,1,{34:1,374:1},SC),o.Fd=function(e){return UTe(this,u(e,374))},o.b=0,o.c=0;var yre=w(Yh,"HyperedgeCrossingsCounter/HyperedgeCorner",374);b(531,22,{3:1,34:1,22:1,531:1},pX);var i9,r9,jre=Me(Yh,"HyperedgeCrossingsCounter/HyperedgeCorner/Type",531,Pe,Npe,Gbe),Ere;b(1425,1,Ar,V8n),o.rg=function(e){return u(m(u(e,36),(J(),Jc)),21).Hc((Cr(),fs))?Mre:null},o.Kf=function(e,t){tje(this,u(e,36),t)};var Mre,wet=w(Sr,"InteractiveNodePlacer",1425);b(1426,1,Ar,J8n),o.rg=function(e){return u(m(u(e,36),(J(),Jc)),21).Hc((Cr(),fs))?Cre:null},o.Kf=function(e,t){Kke(this,u(e,36),t)};var Cre,xP,FP,get=w(Sr,"LinearSegmentsNodePlacer",1426);b(261,1,{34:1,261:1},dz),o.Fd=function(e){return w1e(this,u(e,261))},o.Fb=function(e){var t;return L(e,261)?(t=u(e,261),this.b==t.b):!1},o.Hb=function(){return this.b},o.Ib=function(){return"ls"+ca(this.e)},o.a=0,o.b=0,o.c=-1,o.d=-1,o.g=0;var Tre=w(Sr,"LinearSegmentsNodePlacer/LinearSegment",261);b(1428,1,Ar,uPn),o.rg=function(e){return u(m(u(e,36),(J(),Jc)),21).Hc((Cr(),fs))?Are:null},o.Kf=function(e,t){wxe(this,u(e,36),t)},o.b=0,o.g=0;var Are,pet=w(Sr,"NetworkSimplexPlacer",1428);b(1447,1,Ge,_vn),o.Ne=function(e,t){return Ic(u(e,17).a,u(t,17).a)},o.Fb=function(e){return this===e},o.Oe=function(){return new Fe(this)};var vet=w(Sr,"NetworkSimplexPlacer/0methodref$compare$Type",1447);b(1449,1,Ge,Hvn),o.Ne=function(e,t){return Ic(u(e,17).a,u(t,17).a)},o.Fb=function(e){return this===e},o.Oe=function(){return new Fe(this)};var met=w(Sr,"NetworkSimplexPlacer/1methodref$compare$Type",1449);b(655,1,{655:1},DCn);var aFe=w(Sr,"NetworkSimplexPlacer/EdgeRep",655);b(412,1,{412:1},fJ),o.b=!1;var dFe=w(Sr,"NetworkSimplexPlacer/NodeRep",412);b(515,13,{3:1,4:1,20:1,31:1,56:1,13:1,16:1,15:1,59:1,515:1},qjn);var ket=w(Sr,"NetworkSimplexPlacer/Path",515);b(1429,1,{},qvn),o.Kb=function(e){return u(e,18).d.i.k};var yet=w(Sr,"NetworkSimplexPlacer/Path/lambda$0$Type",1429);b(1430,1,He,Gvn),o.Mb=function(e){return u(e,273)==(ee(),Ni)};var jet=w(Sr,"NetworkSimplexPlacer/Path/lambda$1$Type",1430);b(1431,1,{},Uvn),o.Kb=function(e){return u(e,18).d.i};var Eet=w(Sr,"NetworkSimplexPlacer/Path/lambda$2$Type",1431);b(1432,1,He,Hkn),o.Mb=function(e){return mSn(jBn(u(e,10)))};var Met=w(Sr,"NetworkSimplexPlacer/Path/lambda$3$Type",1432);b(1433,1,He,zvn),o.Mb=function(e){return dge(u(e,12))};var Cet=w(Sr,"NetworkSimplexPlacer/lambda$0$Type",1433);b(1434,1,le,NCn),o.Cd=function(e){Wae(this.a,this.b,u(e,12))};var Tet=w(Sr,"NetworkSimplexPlacer/lambda$1$Type",1434);b(1443,1,le,qkn),o.Cd=function(e){kCe(this.a,u(e,18))};var Aet=w(Sr,"NetworkSimplexPlacer/lambda$10$Type",1443);b(1444,1,{},Xvn),o.Kb=function(e){return Mo(),new Pn(null,new Nn(u(e,30).a,16))};var Iet=w(Sr,"NetworkSimplexPlacer/lambda$11$Type",1444);b(1445,1,le,Gkn),o.Cd=function(e){bIe(this.a,u(e,10))};var Pet=w(Sr,"NetworkSimplexPlacer/lambda$12$Type",1445);b(1446,1,{},Wvn),o.Kb=function(e){return Mo(),Z(u(e,125).e)};var Oet=w(Sr,"NetworkSimplexPlacer/lambda$13$Type",1446);b(1448,1,{},Vvn),o.Kb=function(e){return Mo(),Z(u(e,125).e)};var Let=w(Sr,"NetworkSimplexPlacer/lambda$15$Type",1448);b(1450,1,He,Jvn),o.Mb=function(e){return Mo(),u(e,412).c.k==(ee(),ti)};var Det=w(Sr,"NetworkSimplexPlacer/lambda$17$Type",1450);b(1451,1,He,Qvn),o.Mb=function(e){return Mo(),u(e,412).c.j.c.length>1};var Net=w(Sr,"NetworkSimplexPlacer/lambda$18$Type",1451);b(1452,1,le,bOn),o.Cd=function(e){Z9e(this.c,this.b,this.d,this.a,u(e,412))},o.c=0,o.d=0;var xet=w(Sr,"NetworkSimplexPlacer/lambda$19$Type",1452);b(1435,1,{},Yvn),o.Kb=function(e){return Mo(),new Pn(null,new Nn(u(e,30).a,16))};var Fet=w(Sr,"NetworkSimplexPlacer/lambda$2$Type",1435);b(1453,1,le,Ukn),o.Cd=function(e){Jae(this.a,u(e,12))},o.a=0;var $et=w(Sr,"NetworkSimplexPlacer/lambda$20$Type",1453);b(1454,1,{},Zvn),o.Kb=function(e){return Mo(),new Pn(null,new Nn(u(e,30).a,16))};var Ret=w(Sr,"NetworkSimplexPlacer/lambda$21$Type",1454);b(1455,1,le,zkn),o.Cd=function(e){sde(this.a,u(e,10))};var Bet=w(Sr,"NetworkSimplexPlacer/lambda$22$Type",1455);b(1456,1,He,n3n),o.Mb=function(e){return mSn(e)};var Ket=w(Sr,"NetworkSimplexPlacer/lambda$23$Type",1456);b(1457,1,{},e3n),o.Kb=function(e){return Mo(),new Pn(null,new Nn(u(e,30).a,16))};var _et=w(Sr,"NetworkSimplexPlacer/lambda$24$Type",1457);b(1458,1,He,Xkn),o.Mb=function(e){return pae(this.a,u(e,10))};var Het=w(Sr,"NetworkSimplexPlacer/lambda$25$Type",1458);b(1459,1,le,xCn),o.Cd=function(e){MMe(this.a,this.b,u(e,10))};var qet=w(Sr,"NetworkSimplexPlacer/lambda$26$Type",1459);b(1460,1,He,t3n),o.Mb=function(e){return Mo(),!gr(u(e,18))};var Get=w(Sr,"NetworkSimplexPlacer/lambda$27$Type",1460);b(1461,1,He,i3n),o.Mb=function(e){return Mo(),!gr(u(e,18))};var Uet=w(Sr,"NetworkSimplexPlacer/lambda$28$Type",1461);b(1462,1,{},Wkn),o.Ve=function(e,t){return Vae(this.a,u(e,30),u(t,30))};var zet=w(Sr,"NetworkSimplexPlacer/lambda$29$Type",1462);b(1436,1,{},r3n),o.Kb=function(e){return Mo(),new Pn(null,new g0(new he(de(ri(u(e,10)).a.Kc(),new zn))))};var Xet=w(Sr,"NetworkSimplexPlacer/lambda$3$Type",1436);b(1437,1,He,c3n),o.Mb=function(e){return Mo(),C3e(u(e,18))};var Wet=w(Sr,"NetworkSimplexPlacer/lambda$4$Type",1437);b(1438,1,le,Vkn),o.Cd=function(e){EOe(this.a,u(e,18))};var Vet=w(Sr,"NetworkSimplexPlacer/lambda$5$Type",1438);b(1439,1,{},u3n),o.Kb=function(e){return Mo(),new Pn(null,new Nn(u(e,30).a,16))};var Jet=w(Sr,"NetworkSimplexPlacer/lambda$6$Type",1439);b(1440,1,He,o3n),o.Mb=function(e){return Mo(),u(e,10).k==(ee(),ti)};var Qet=w(Sr,"NetworkSimplexPlacer/lambda$7$Type",1440);b(1441,1,{},s3n),o.Kb=function(e){return Mo(),new Pn(null,new g0(new he(de(Al(u(e,10)).a.Kc(),new zn))))};var Yet=w(Sr,"NetworkSimplexPlacer/lambda$8$Type",1441);b(1442,1,He,f3n),o.Mb=function(e){return Mo(),age(u(e,18))};var Zet=w(Sr,"NetworkSimplexPlacer/lambda$9$Type",1442);b(1424,1,Ar,Q8n),o.rg=function(e){return u(m(u(e,36),(J(),Jc)),21).Hc((Cr(),fs))?Sre:null},o.Kf=function(e,t){iLe(u(e,36),t)};var Sre,ntt=w(Sr,"SimpleNodePlacer",1424);b(185,1,{185:1},zg),o.Ib=function(){var e;return e="",this.c==(dh(),pb)?e+=ov:this.c==M1&&(e+=uv),this.o==(Df(),Rd)?e+=ZR:this.o==Qf?e+="UP":e+="BALANCED",e};var ett=w(da,"BKAlignedLayout",185);b(523,22,{3:1,34:1,22:1,523:1},vX);var M1,pb,Ire=Me(da,"BKAlignedLayout/HDirection",523,Pe,Fpe,Ube),Pre;b(522,22,{3:1,34:1,22:1,522:1},mX);var Rd,Qf,Ore=Me(da,"BKAlignedLayout/VDirection",522,Pe,$pe,zbe),Lre;b(1699,1,{},FCn);var ttt=w(da,"BKAligner",1699);b(1702,1,{},XKn);var itt=w(da,"BKCompactor",1702);b(663,1,{663:1},h3n),o.a=0;var rtt=w(da,"BKCompactor/ClassEdge",663);b(467,1,{467:1},Kjn),o.a=null,o.b=0;var ctt=w(da,"BKCompactor/ClassNode",467);b(1427,1,Ar,KCn),o.rg=function(e){return u(m(u(e,36),(J(),Jc)),21).Hc((Cr(),fs))?Dre:null},o.Kf=function(e,t){Dxe(this,u(e,36),t)},o.d=!1;var Dre,utt=w(da,"BKNodePlacer",1427);b(1700,1,{},l3n),o.d=0;var ott=w(da,"NeighborhoodInformation",1700);b(1701,1,Ge,Jkn),o.Ne=function(e,t){return o6e(this,u(e,42),u(t,42))},o.Fb=function(e){return this===e},o.Oe=function(){return new Fe(this)};var stt=w(da,"NeighborhoodInformation/NeighborComparator",1701);b(823,1,{});var ftt=w(da,"ThresholdStrategy",823);b(1825,823,{},_jn),o.wg=function(e,t,i){return this.a.o==(Df(),Qf)?Bt:mi},o.xg=function(){};var htt=w(da,"ThresholdStrategy/NullThresholdStrategy",1825);b(587,1,{587:1},_Cn),o.c=!1,o.d=!1;var ltt=w(da,"ThresholdStrategy/Postprocessable",587);b(1826,823,{},Hjn),o.wg=function(e,t,i){var r,c,s;return c=t==i,r=this.a.a[i.p]==t,c||r?(s=e,this.a.c==(dh(),pb)?(c&&(s=Y$(this,t,!0)),!isNaN(s)&&!isFinite(s)&&r&&(s=Y$(this,i,!1))):(c&&(s=Y$(this,t,!0)),!isNaN(s)&&!isFinite(s)&&r&&(s=Y$(this,i,!1))),s):e},o.xg=function(){for(var e,t,i,r,c;this.d.b!=0;)c=u(Ype(this.d),587),r=mUn(this,c),r.a&&(e=r.a,i=ln(this.a.f[this.a.g[c.b.p].p]),!(!i&&!gr(e)&&e.c.i.c==e.d.i.c)&&(t=Mqn(this,c),t||kae(this.e,c)));for(;this.e.a.c.length!=0;)Mqn(this,u(CRn(this.e),587))};var att=w(da,"ThresholdStrategy/SimpleThresholdStrategy",1826);b(645,1,{645:1,188:1,196:1},a3n),o.dg=function(){return N$n(this)},o.qg=function(){return N$n(this)};var aq,dtt=w(QB,"EdgeRouterFactory",645);b(1485,1,Ar,Y8n),o.rg=function(e){return GSe(u(e,36))},o.Kf=function(e,t){fLe(u(e,36),t)};var Nre,xre,Fre,$re,Rre,vln,Bre,Kre,btt=w(QB,"OrthogonalEdgeRouter",1485);b(1478,1,Ar,BCn),o.rg=function(e){return aje(u(e,36))},o.Kf=function(e,t){DNe(this,u(e,36),t)};var _re,Hre,qre,Gre,Nj,Ure,wtt=w(QB,"PolylineEdgeRouter",1478);b(1479,1,yh,b3n),o.Lb=function(e){return uY(u(e,10))},o.Fb=function(e){return this===e},o.Mb=function(e){return uY(u(e,10))};var gtt=w(QB,"PolylineEdgeRouter/1",1479);b(1872,1,He,w3n),o.Mb=function(e){return u(e,132).c==(pf(),Ea)};var ptt=w(Ef,"HyperEdgeCycleDetector/lambda$0$Type",1872);b(1873,1,{},g3n),o.Ze=function(e){return u(e,132).d};var vtt=w(Ef,"HyperEdgeCycleDetector/lambda$1$Type",1873);b(1874,1,He,p3n),o.Mb=function(e){return u(e,132).c==(pf(),Ea)};var mtt=w(Ef,"HyperEdgeCycleDetector/lambda$2$Type",1874);b(1875,1,{},v3n),o.Ze=function(e){return u(e,132).d};var ktt=w(Ef,"HyperEdgeCycleDetector/lambda$3$Type",1875);b(1876,1,{},m3n),o.Ze=function(e){return u(e,132).d};var ytt=w(Ef,"HyperEdgeCycleDetector/lambda$4$Type",1876);b(1877,1,{},d3n),o.Ze=function(e){return u(e,132).d};var jtt=w(Ef,"HyperEdgeCycleDetector/lambda$5$Type",1877);b(118,1,{34:1,118:1},Ck),o.Fd=function(e){return g1e(this,u(e,118))},o.Fb=function(e){var t;return L(e,118)?(t=u(e,118),this.g==t.g):!1},o.Hb=function(){return this.g},o.Ib=function(){var e,t,i,r;for(e=new jo("{"),r=new M(this.n);r.a"+this.b+" ("+xde(this.c)+")"},o.d=0;var Mtt=w(Ef,"HyperEdgeSegmentDependency",132);b(528,22,{3:1,34:1,22:1,528:1},kX);var Ea,Gw,zre=Me(Ef,"HyperEdgeSegmentDependency/DependencyType",528,Pe,Rpe,Xbe),Xre;b(1878,1,{},Qkn);var Ctt=w(Ef,"HyperEdgeSegmentSplitter",1878);b(1879,1,{},qEn),o.a=0,o.b=0;var Ttt=w(Ef,"HyperEdgeSegmentSplitter/AreaRating",1879);b(339,1,{339:1},YD),o.a=0,o.b=0,o.c=0;var Att=w(Ef,"HyperEdgeSegmentSplitter/FreeArea",339);b(1880,1,Ge,k3n),o.Ne=function(e,t){return x0e(u(e,118),u(t,118))},o.Fb=function(e){return this===e},o.Oe=function(){return new Fe(this)};var Stt=w(Ef,"HyperEdgeSegmentSplitter/lambda$0$Type",1880);b(1881,1,le,wOn),o.Cd=function(e){f4e(this.a,this.d,this.c,this.b,u(e,118))},o.b=0;var Itt=w(Ef,"HyperEdgeSegmentSplitter/lambda$1$Type",1881);b(1882,1,{},y3n),o.Kb=function(e){return new Pn(null,new Nn(u(e,118).e,16))};var Ptt=w(Ef,"HyperEdgeSegmentSplitter/lambda$2$Type",1882);b(1883,1,{},j3n),o.Kb=function(e){return new Pn(null,new Nn(u(e,118).j,16))};var Ott=w(Ef,"HyperEdgeSegmentSplitter/lambda$3$Type",1883);b(1884,1,{},E3n),o.Ye=function(e){return x(K(e))};var Ltt=w(Ef,"HyperEdgeSegmentSplitter/lambda$4$Type",1884);b(664,1,{},EN),o.a=0,o.b=0,o.c=0;var Dtt=w(Ef,"OrthogonalRoutingGenerator",664);b(1703,1,{},M3n),o.Kb=function(e){return new Pn(null,new Nn(u(e,118).e,16))};var Ntt=w(Ef,"OrthogonalRoutingGenerator/lambda$0$Type",1703);b(1704,1,{},C3n),o.Kb=function(e){return new Pn(null,new Nn(u(e,118).j,16))};var xtt=w(Ef,"OrthogonalRoutingGenerator/lambda$1$Type",1704);b(670,1,{});var Ftt=w(YB,"BaseRoutingDirectionStrategy",670);b(1870,670,{},zjn),o.yg=function(e,t,i){var r,c,s,f,h,l,a,d,g,p,v,k,j;if(!(e.r&&!e.q))for(d=t+e.o*i,a=new M(e.n);a.aEh&&(s=d,c=e,r=new V(g,s),We(f.a,r),H0(this,f,c,r,!1),p=e.r,p&&(v=x(K(is(p.e,0))),r=new V(v,s),We(f.a,r),H0(this,f,c,r,!1),s=t+p.o*i,c=p,r=new V(v,s),We(f.a,r),H0(this,f,c,r,!1)),r=new V(j,s),We(f.a,r),H0(this,f,c,r,!1)))},o.zg=function(e){return e.i.n.a+e.n.a+e.a.a},o.Ag=function(){return rn(),ye},o.Bg=function(){return rn(),ne};var $tt=w(YB,"NorthToSouthRoutingStrategy",1870);b(1871,670,{},Xjn),o.yg=function(e,t,i){var r,c,s,f,h,l,a,d,g,p,v,k,j;if(!(e.r&&!e.q))for(d=t-e.o*i,a=new M(e.n);a.aEh&&(s=d,c=e,r=new V(g,s),We(f.a,r),H0(this,f,c,r,!1),p=e.r,p&&(v=x(K(is(p.e,0))),r=new V(v,s),We(f.a,r),H0(this,f,c,r,!1),s=t-p.o*i,c=p,r=new V(v,s),We(f.a,r),H0(this,f,c,r,!1)),r=new V(j,s),We(f.a,r),H0(this,f,c,r,!1)))},o.zg=function(e){return e.i.n.a+e.n.a+e.a.a},o.Ag=function(){return rn(),ne},o.Bg=function(){return rn(),ye};var Rtt=w(YB,"SouthToNorthRoutingStrategy",1871);b(1869,670,{},Wjn),o.yg=function(e,t,i){var r,c,s,f,h,l,a,d,g,p,v,k,j;if(!(e.r&&!e.q))for(d=t+e.o*i,a=new M(e.n);a.aEh&&(s=d,c=e,r=new V(s,g),We(f.a,r),H0(this,f,c,r,!0),p=e.r,p&&(v=x(K(is(p.e,0))),r=new V(s,v),We(f.a,r),H0(this,f,c,r,!0),s=t+p.o*i,c=p,r=new V(s,v),We(f.a,r),H0(this,f,c,r,!0)),r=new V(s,j),We(f.a,r),H0(this,f,c,r,!0)))},o.zg=function(e){return e.i.n.b+e.n.b+e.a.b},o.Ag=function(){return rn(),ue},o.Bg=function(){return rn(),te};var Btt=w(YB,"WestToEastRoutingStrategy",1869);b(828,1,{},rtn),o.Ib=function(){return ca(this.a)},o.b=0,o.c=!1,o.d=!1,o.f=0;var Ktt=w(kw,"NubSpline",828);b(418,1,{418:1},iGn,XOn);var _tt=w(kw,"NubSpline/PolarCP",418);b(1480,1,Ar,BKn),o.rg=function(e){return eEe(u(e,36))},o.Kf=function(e,t){YNe(this,u(e,36),t)};var Wre,Vre,Jre,Qre,Yre,Htt=w(kw,"SplineEdgeRouter",1480);b(274,1,{274:1},QC),o.Ib=function(){return this.a+" ->("+this.c+") "+this.b},o.c=0;var qtt=w(kw,"SplineEdgeRouter/Dependency",274);b(465,22,{3:1,34:1,22:1,465:1},yX);var Ma,A2,Zre=Me(kw,"SplineEdgeRouter/SideToProcess",465,Pe,Gpe,Wbe),nce;b(1481,1,He,T3n),o.Mb=function(e){return _5(),!u(e,131).o};var Gtt=w(kw,"SplineEdgeRouter/lambda$0$Type",1481);b(1482,1,{},A3n),o.Ze=function(e){return _5(),u(e,131).v+1};var Utt=w(kw,"SplineEdgeRouter/lambda$1$Type",1482);b(1483,1,le,HCn),o.Cd=function(e){gge(this.a,this.b,u(e,42))};var ztt=w(kw,"SplineEdgeRouter/lambda$2$Type",1483);b(1484,1,le,qCn),o.Cd=function(e){pge(this.a,this.b,u(e,42))};var Xtt=w(kw,"SplineEdgeRouter/lambda$3$Type",1484);b(131,1,{34:1,131:1},pHn,htn),o.Fd=function(e){return m1e(this,u(e,131))},o.b=0,o.e=!1,o.f=0,o.g=0,o.j=!1,o.k=!1,o.n=0,o.o=!1,o.p=!1,o.q=!1,o.s=0,o.u=0,o.v=0,o.F=0;var Wtt=w(kw,"SplineSegment",131);b(468,1,{468:1},S3n),o.a=0,o.b=!1,o.c=!1,o.d=!1,o.e=!1,o.f=0;var Vtt=w(kw,"SplineSegment/EdgeInformation",468);b(1198,1,{},I3n);var Jtt=w(Fl,oin,1198);b(1199,1,Ge,P3n),o.Ne=function(e,t){return $Ce(u(e,121),u(t,121))},o.Fb=function(e){return this===e},o.Oe=function(){return new Fe(this)};var Qtt=w(Fl,dWn,1199);b(1197,1,{},cMn);var Ytt=w(Fl,"MrTree",1197);b(405,22,{3:1,34:1,22:1,405:1,188:1,196:1},yM),o.dg=function(){return RHn(this)},o.qg=function(){return RHn(this)};var $P,c9,u9,o9,mln=Me(Fl,"TreeLayoutPhases",405,Pe,z3e,Vbe),ece;b(1112,205,kd,DSn),o.rf=function(e,t){var i,r,c,s,f,h,l,a;for(ln(hn(X(e,(pc(),Gln))))||Q7((i=new Xm((r0(),new Jd(e))),i)),f=t.eh(eK),f.Ug("build tGraph",1),h=(l=new uk,Jr(l,e),U(l,(St(),f9),e),a=new je,IPe(e,l,a),WPe(e,l,a),l),f.Vg(),f=t.eh(eK),f.Ug("Split graph",1),s=xPe(this.a,h),f.Vg(),c=new M(s);c.a"+ed(this.c):"e_"+It(this)};var ait=w(d8,"TEdge",65);b(121,137,{3:1,121:1,96:1,137:1},uk),o.Ib=function(){var e,t,i,r,c;for(c=null,r=Ce(this.b,0);r.b!=r.d.c;)i=u(Ee(r),40),c+=(i.c==null||i.c.length==0?"n_"+i.g:"n_"+i.c)+` +`;for(t=Ce(this.a,0);t.b!=t.d.c;)e=u(Ee(t),65),c+=(e.b&&e.c?ed(e.b)+"->"+ed(e.c):"e_"+It(e))+` +`;return c};var bFe=w(d8,"TGraph",121);b(643,508,{3:1,508:1,643:1,96:1,137:1});var dit=w(d8,"TShape",643);b(40,643,{3:1,508:1,40:1,643:1,96:1,137:1},eF),o.Ib=function(){return ed(this)};var RP=w(d8,"TNode",40);b(236,1,Xh,ll),o.Jc=function(e){Ji(this,e)},o.Kc=function(){var e;return e=Ce(this.a.d,0),new cg(e)};var bit=w(d8,"TNode/2",236);b(329,1,$i,cg),o.Nb=function(e){Wi(this,e)},o.Pb=function(){return u(Ee(this.a),65).c},o.Ob=function(){return e7(this.a)},o.Qb=function(){Ix(this.a)};var wit=w(d8,"TNode/2/1",329);b(1923,1,Pt,$3n),o.Kf=function(e,t){Sxe(this,u(e,121),t)};var git=w(Xc,"CompactionProcessor",1923);b(1924,1,Ge,tyn),o.Ne=function(e,t){return w5e(this.a,u(e,40),u(t,40))},o.Fb=function(e){return this===e},o.Oe=function(){return new Fe(this)};var pit=w(Xc,"CompactionProcessor/lambda$0$Type",1924);b(1925,1,He,UCn),o.Mb=function(e){return ype(this.b,this.a,u(e,42))},o.a=0,o.b=0;var vit=w(Xc,"CompactionProcessor/lambda$1$Type",1925);b(1934,1,Ge,R3n),o.Ne=function(e,t){return a2e(u(e,40),u(t,40))},o.Fb=function(e){return this===e},o.Oe=function(){return new Fe(this)};var mit=w(Xc,"CompactionProcessor/lambda$10$Type",1934);b(1935,1,Ge,B3n),o.Ne=function(e,t){return Tde(u(e,40),u(t,40))},o.Fb=function(e){return this===e},o.Oe=function(){return new Fe(this)};var kit=w(Xc,"CompactionProcessor/lambda$11$Type",1935);b(1936,1,Ge,K3n),o.Ne=function(e,t){return d2e(u(e,40),u(t,40))},o.Fb=function(e){return this===e},o.Oe=function(){return new Fe(this)};var yit=w(Xc,"CompactionProcessor/lambda$12$Type",1936);b(1926,1,He,iyn),o.Mb=function(e){return fde(this.a,u(e,42))},o.a=0;var jit=w(Xc,"CompactionProcessor/lambda$2$Type",1926);b(1927,1,He,ryn),o.Mb=function(e){return hde(this.a,u(e,42))},o.a=0;var Eit=w(Xc,"CompactionProcessor/lambda$3$Type",1927);b(1928,1,He,_3n),o.Mb=function(e){return u(e,40).c.indexOf(NS)==-1};var Mit=w(Xc,"CompactionProcessor/lambda$4$Type",1928);b(1929,1,{},cyn),o.Kb=function(e){return E3e(this.a,u(e,40))},o.a=0;var Cit=w(Xc,"CompactionProcessor/lambda$5$Type",1929);b(1930,1,{},uyn),o.Kb=function(e){return Ome(this.a,u(e,40))},o.a=0;var Tit=w(Xc,"CompactionProcessor/lambda$6$Type",1930);b(1931,1,Ge,oyn),o.Ne=function(e,t){return H4e(this.a,u(e,240),u(t,240))},o.Fb=function(e){return this===e},o.Oe=function(){return new Fe(this)};var Ait=w(Xc,"CompactionProcessor/lambda$7$Type",1931);b(1932,1,Ge,syn),o.Ne=function(e,t){return q4e(this.a,u(e,40),u(t,40))},o.Fb=function(e){return this===e},o.Oe=function(){return new Fe(this)};var Sit=w(Xc,"CompactionProcessor/lambda$8$Type",1932);b(1933,1,Ge,H3n),o.Ne=function(e,t){return Ade(u(e,40),u(t,40))},o.Fb=function(e){return this===e},o.Oe=function(){return new Fe(this)};var Iit=w(Xc,"CompactionProcessor/lambda$9$Type",1933);b(1921,1,Pt,q3n),o.Kf=function(e,t){MIe(u(e,121),t)};var Pit=w(Xc,"DirectionProcessor",1921);b(1913,1,Pt,LSn),o.Kf=function(e,t){zPe(this,u(e,121),t)};var Oit=w(Xc,"FanProcessor",1913);b(1937,1,Pt,G3n),o.Kf=function(e,t){aIe(u(e,121),t)};var Lit=w(Xc,"GraphBoundsProcessor",1937);b(1938,1,{},U3n),o.Ye=function(e){return u(e,40).e.a};var Dit=w(Xc,"GraphBoundsProcessor/lambda$0$Type",1938);b(1939,1,{},z3n),o.Ye=function(e){return u(e,40).e.b};var Nit=w(Xc,"GraphBoundsProcessor/lambda$1$Type",1939);b(1940,1,{},X3n),o.Ye=function(e){return z1e(u(e,40))};var xit=w(Xc,"GraphBoundsProcessor/lambda$2$Type",1940);b(1941,1,{},W3n),o.Ye=function(e){return U1e(u(e,40))};var Fit=w(Xc,"GraphBoundsProcessor/lambda$3$Type",1941);b(262,22,{3:1,34:1,22:1,262:1,196:1},c0),o.dg=function(){switch(this.g){case 0:return new sEn;case 1:return new LSn;case 2:return new oEn;case 3:return new Z3n;case 4:return new J3n;case 8:return new V3n;case 5:return new q3n;case 6:return new e4n;case 7:return new $3n;case 9:return new G3n;case 10:return new t4n;default:throw C(new Yn(pB+(this.f!=null?this.f:""+this.g)))}};var kln,yln,jln,Eln,Mln,Cln,Tln,Aln,Sln,Iln,dq,wFe=Me(Xc,vB,262,Pe,T$n,Jbe),tce;b(1920,1,Pt,V3n),o.Kf=function(e,t){CNe(u(e,121),t)};var $it=w(Xc,"LevelCoordinatesProcessor",1920);b(1918,1,Pt,J3n),o.Kf=function(e,t){zAe(this,u(e,121),t)},o.a=0;var Rit=w(Xc,"LevelHeightProcessor",1918);b(1919,1,Xh,Q3n),o.Jc=function(e){Ji(this,e)},o.Kc=function(){return Fn(),s3(),um};var Bit=w(Xc,"LevelHeightProcessor/1",1919);b(1914,1,Pt,oEn),o.Kf=function(e,t){uIe(this,u(e,121),t)};var Kit=w(Xc,"LevelProcessor",1914);b(1915,1,He,Y3n),o.Mb=function(e){return ln(hn(m(u(e,40),(St(),Ca))))};var _it=w(Xc,"LevelProcessor/lambda$0$Type",1915);b(1916,1,Pt,Z3n),o.Kf=function(e,t){qMe(this,u(e,121),t)},o.a=0;var Hit=w(Xc,"NeighborsProcessor",1916);b(1917,1,Xh,n4n),o.Jc=function(e){Ji(this,e)},o.Kc=function(){return Fn(),s3(),um};var qit=w(Xc,"NeighborsProcessor/1",1917);b(1922,1,Pt,e4n),o.Kf=function(e,t){UPe(this,u(e,121),t)},o.a=0;var Git=w(Xc,"NodePositionProcessor",1922);b(1912,1,Pt,sEn),o.Kf=function(e,t){ALe(this,u(e,121),t)};var Uit=w(Xc,"RootProcessor",1912);b(1942,1,Pt,t4n),o.Kf=function(e,t){Eke(u(e,121),t)};var zit=w(Xc,"Untreeifyer",1942);b(392,22,{3:1,34:1,22:1,392:1},dD);var xj,bq,Pln,Oln=Me(Xy,"EdgeRoutingMode",392,Pe,Bve,Qbe),ice,Fj,Im,wq,Lln,Dln,gq,pq,Nln,vq,xln,mq,s9,kq,BP,KP,nf,Af,Pm,f9,h9,C1,Fln,rce,yq,Ca,$j,Rj;b(862,1,js,Z8n),o.hf=function(e){Mn(e,new gn(jn(yn(En(Ln(pn(kn(vn(mn(new wn,Urn),""),rVn),"Turns on Tree compaction which decreases the size of the whole tree by placing nodes of multiple levels in one large level"),(Wn(),!1)),(b1(),Pi)),ei),Tn((jf(),qn))))),Mn(e,new gn(jn(yn(En(Ln(pn(kn(vn(mn(new wn,zrn),""),"Edge End Texture Length"),"Should be set to the length of the texture at the end of an edge. This value can be used to improve the Edge Routing."),7),cr),gi),Tn(qn)))),Mn(e,new gn(jn(yn(En(Ln(pn(kn(vn(mn(new wn,Xrn),""),"Tree Level"),"The index for the tree level the node is in"),Z(0)),cc),Yi),Tn(Ti)))),Mn(e,new gn(jn(yn(En(Ln(pn(kn(vn(mn(new wn,Wrn),""),rVn),"When set to a positive number this option will force the algorithm to place the node to the specified position within the trees layer if weighting is set to constraint"),Z(-1)),cc),Yi),Tn(Ti)))),Mn(e,new gn(jn(yn(En(Ln(pn(kn(vn(mn(new wn,Vrn),""),"Weighting of Nodes"),"Which weighting to use when computing a node order."),Bln),Kt),Qln),Tn(qn)))),Mn(e,new gn(jn(yn(En(Ln(pn(kn(vn(mn(new wn,Jrn),""),"Edge Routing Mode"),"Chooses an Edge Routing algorithm."),$ln),Kt),Oln),Tn(qn)))),Mn(e,new gn(jn(yn(En(Ln(pn(kn(vn(mn(new wn,Qrn),""),"Search Order"),"Which search order to use when computing a spanning tree."),Rln),Kt),Zln),Tn(qn)))),Wzn((new t9n,e))};var cce,uce,oce,$ln,sce,fce,Rln,hce,lce,Bln,Xit=w(Xy,"MrTreeMetaDataProvider",862);b(1006,1,js,t9n),o.hf=function(e){Wzn(e)};var ace,Kln,_ln,vb,Hln,qln,jq,dce,bce,wce,gce,pce,vce,mce,Gln,Uln,zln,kce,S2,_P,Xln,yce,Wln,Eq,jce,Ece,Mce,Vln,Cce,Lh,Jln,Wit=w(Xy,"MrTreeOptions",1006);b(1007,1,{},i4n),o.sf=function(){var e;return e=new DSn,e},o.tf=function(e){};var Vit=w(Xy,"MrTreeOptions/MrtreeFactory",1007);b(353,22,{3:1,34:1,22:1,353:1},jM);var Mq,HP,Cq,Tq,Qln=Me(Xy,"OrderWeighting",353,Pe,X3e,Ybe),Tce;b(433,22,{3:1,34:1,22:1,433:1},jX);var Yln,Aq,Zln=Me(Xy,"TreeifyingOrder",433,Pe,Hpe,Zbe),Ace;b(1486,1,Ar,i9n),o.rg=function(e){return u(e,121),Sce},o.Kf=function(e,t){i5e(this,u(e,121),t)};var Sce,Jit=w("org.eclipse.elk.alg.mrtree.p1treeify","DFSTreeifyer",1486);b(1487,1,Ar,r9n),o.rg=function(e){return u(e,121),Ice},o.Kf=function(e,t){hIe(this,u(e,121),t)};var Ice,Qit=w(X4,"NodeOrderer",1487);b(1494,1,{},m4n),o.td=function(e){return BIn(e)};var Yit=w(X4,"NodeOrderer/0methodref$lambda$6$Type",1494);b(1488,1,He,k4n),o.Mb=function(e){return Bp(),ln(hn(m(u(e,40),(St(),Ca))))};var Zit=w(X4,"NodeOrderer/lambda$0$Type",1488);b(1489,1,He,y4n),o.Mb=function(e){return Bp(),u(m(u(e,40),(pc(),S2)),17).a<0};var nrt=w(X4,"NodeOrderer/lambda$1$Type",1489);b(1490,1,He,hyn),o.Mb=function(e){return L6e(this.a,u(e,40))};var ert=w(X4,"NodeOrderer/lambda$2$Type",1490);b(1491,1,He,fyn),o.Mb=function(e){return T3e(this.a,u(e,40))};var trt=w(X4,"NodeOrderer/lambda$3$Type",1491);b(1492,1,Ge,j4n),o.Ne=function(e,t){return e6e(u(e,40),u(t,40))},o.Fb=function(e){return this===e},o.Oe=function(){return new Fe(this)};var irt=w(X4,"NodeOrderer/lambda$4$Type",1492);b(1493,1,He,E4n),o.Mb=function(e){return Bp(),u(m(u(e,40),(St(),pq)),17).a!=0};var rrt=w(X4,"NodeOrderer/lambda$5$Type",1493);b(1495,1,Ar,e9n),o.rg=function(e){return u(e,121),Pce},o.Kf=function(e,t){vPe(this,u(e,121),t)},o.b=0;var Pce,crt=w("org.eclipse.elk.alg.mrtree.p3place","NodePlacer",1495);b(1496,1,Ar,n9n),o.rg=function(e){return u(e,121),Oce},o.Kf=function(e,t){nPe(u(e,121),t)};var Oce,gFe=w(yo,"EdgeRouter",1496);b(1498,1,Ge,v4n),o.Ne=function(e,t){return Ic(u(e,17).a,u(t,17).a)},o.Fb=function(e){return this===e},o.Oe=function(){return new Fe(this)};var urt=w(yo,"EdgeRouter/0methodref$compare$Type",1498);b(1503,1,{},c4n),o.Ye=function(e){return x(K(e))};var ort=w(yo,"EdgeRouter/1methodref$doubleValue$Type",1503);b(1505,1,Ge,u4n),o.Ne=function(e,t){return Tt(x(K(e)),x(K(t)))},o.Fb=function(e){return this===e},o.Oe=function(){return new Fe(this)};var srt=w(yo,"EdgeRouter/2methodref$compare$Type",1505);b(1507,1,Ge,o4n),o.Ne=function(e,t){return Tt(x(K(e)),x(K(t)))},o.Fb=function(e){return this===e},o.Oe=function(){return new Fe(this)};var frt=w(yo,"EdgeRouter/3methodref$compare$Type",1507);b(1509,1,{},r4n),o.Ye=function(e){return x(K(e))};var hrt=w(yo,"EdgeRouter/4methodref$doubleValue$Type",1509);b(1511,1,Ge,s4n),o.Ne=function(e,t){return Tt(x(K(e)),x(K(t)))},o.Fb=function(e){return this===e},o.Oe=function(){return new Fe(this)};var lrt=w(yo,"EdgeRouter/5methodref$compare$Type",1511);b(1513,1,Ge,f4n),o.Ne=function(e,t){return Tt(x(K(e)),x(K(t)))},o.Fb=function(e){return this===e},o.Oe=function(){return new Fe(this)};var art=w(yo,"EdgeRouter/6methodref$compare$Type",1513);b(1497,1,{},h4n),o.Kb=function(e){return El(),u(m(u(e,40),(pc(),Lh)),17)};var drt=w(yo,"EdgeRouter/lambda$0$Type",1497);b(1508,1,{},l4n),o.Kb=function(e){return Kde(u(e,40))};var brt=w(yo,"EdgeRouter/lambda$11$Type",1508);b(1510,1,{},zCn),o.Kb=function(e){return bge(this.b,this.a,u(e,40))},o.a=0,o.b=0;var wrt=w(yo,"EdgeRouter/lambda$13$Type",1510);b(1512,1,{},XCn),o.Kb=function(e){return _de(this.b,this.a,u(e,40))},o.a=0,o.b=0;var grt=w(yo,"EdgeRouter/lambda$15$Type",1512);b(1514,1,Ge,a4n),o.Ne=function(e,t){return Z7e(u(e,65),u(t,65))},o.Fb=function(e){return this===e},o.Oe=function(){return new Fe(this)};var prt=w(yo,"EdgeRouter/lambda$17$Type",1514);b(1515,1,Ge,d4n),o.Ne=function(e,t){return nke(u(e,65),u(t,65))},o.Fb=function(e){return this===e},o.Oe=function(){return new Fe(this)};var vrt=w(yo,"EdgeRouter/lambda$18$Type",1515);b(1516,1,Ge,b4n),o.Ne=function(e,t){return tke(u(e,65),u(t,65))},o.Fb=function(e){return this===e},o.Oe=function(){return new Fe(this)};var mrt=w(yo,"EdgeRouter/lambda$19$Type",1516);b(1499,1,He,lyn),o.Mb=function(e){return ive(this.a,u(e,40))},o.a=0;var krt=w(yo,"EdgeRouter/lambda$2$Type",1499);b(1517,1,Ge,w4n),o.Ne=function(e,t){return eke(u(e,65),u(t,65))},o.Fb=function(e){return this===e},o.Oe=function(){return new Fe(this)};var yrt=w(yo,"EdgeRouter/lambda$20$Type",1517);b(1500,1,Ge,g4n),o.Ne=function(e,t){return nge(u(e,40),u(t,40))},o.Fb=function(e){return this===e},o.Oe=function(){return new Fe(this)};var jrt=w(yo,"EdgeRouter/lambda$3$Type",1500);b(1501,1,Ge,p4n),o.Ne=function(e,t){return ege(u(e,40),u(t,40))},o.Fb=function(e){return this===e},o.Oe=function(){return new Fe(this)};var Ert=w(yo,"EdgeRouter/lambda$4$Type",1501);b(1502,1,{},M4n),o.Kb=function(e){return Hde(u(e,40))};var Mrt=w(yo,"EdgeRouter/lambda$5$Type",1502);b(1504,1,{},WCn),o.Kb=function(e){return wge(this.b,this.a,u(e,40))},o.a=0,o.b=0;var Crt=w(yo,"EdgeRouter/lambda$7$Type",1504);b(1506,1,{},VCn),o.Kb=function(e){return qde(this.b,this.a,u(e,40))},o.a=0,o.b=0;var Trt=w(yo,"EdgeRouter/lambda$9$Type",1506);b(675,1,{675:1},AKn),o.e=0,o.f=!1,o.g=!1;var Art=w(yo,"MultiLevelEdgeNodeNodeGap",675);b(1943,1,Ge,C4n),o.Ne=function(e,t){return dve(u(e,240),u(t,240))},o.Fb=function(e){return this===e},o.Oe=function(){return new Fe(this)};var Srt=w(yo,"MultiLevelEdgeNodeNodeGap/lambda$0$Type",1943);b(1944,1,Ge,T4n),o.Ne=function(e,t){return bve(u(e,240),u(t,240))},o.Fb=function(e){return this===e},o.Oe=function(){return new Fe(this)};var Irt=w(yo,"MultiLevelEdgeNodeNodeGap/lambda$1$Type",1944),I2;b(501,22,{3:1,34:1,22:1,501:1,188:1,196:1},EX),o.dg=function(){return dBn(this)},o.qg=function(){return dBn(this)};var qP,P2,n1n=Me(Yrn,"RadialLayoutPhases",501,Pe,xpe,nwe),Lce;b(1113,205,kd,rMn),o.rf=function(e,t){var i,r,c,s,f,h;if(i=Yqn(this,e),t.Ug("Radial layout",i.c.length),ln(hn(X(e,(oa(),l1n))))||Q7((r=new Xm((r0(),new Jd(e))),r)),h=rEe(e),Et(e,(Eg(),I2),h),!h)throw C(new Yn("The given graph is not a tree!"));for(c=x(K(X(e,zP))),c==0&&(c=LHn(e)),Et(e,zP,c),f=new M(Yqn(this,e));f.a=3)for(W=u(D(N,0),27),cn=u(D(N,1),27),s=0;s+2=W.f+cn.f+d||cn.f>=H.f+W.f+d){Cn=!0;break}else++s;else Cn=!0;if(!Cn){for(p=N.i,h=new oe(N);h.e!=h.i.gc();)f=u(be(h),27),Et(f,(et(),Yj),Z(p)),--p;SUn(e,new cp),t.Vg();return}for(i=(z7(this.a),wf(this.a,(QT(),Kj),u(X(e,K1n),188)),wf(this.a,XP,u(X(e,N1n),188)),wf(this.a,Bq,u(X(e,$1n),188)),_X(this.a,(Hn=new li,Qe(Hn,Kj,(sA(),Hq)),Qe(Hn,XP,_q),ln(hn(X(e,L1n)))&&Qe(Hn,Kj,Kq),Hn)),vy(this.a,e)),a=1/i.c.length,An=0,k=new M(i);k.a0&&$Rn((Zn(t-1,e.length),e.charCodeAt(t-1)),EWn);)--t;if(r>=t)throw C(new Yn("The given string does not contain any numbers."));if(c=dw((Ui(r,t,e.length),e.substr(r,t-r)),`,|;|\r| +`),c.length!=2)throw C(new Yn("Exactly two numbers are expected, "+c.length+" were found."));try{this.a=uw(ow(c[0])),this.b=uw(ow(c[1]))}catch(s){throw s=_t(s),L(s,130)?(i=s,C(new Yn(MWn+i))):C(s)}},o.Ib=function(){return"("+this.a+","+this.b+")"},o.a=0,o.b=0;var Li=w(Hy,"KVector",8);b(75,67,{3:1,4:1,20:1,31:1,56:1,16:1,67:1,15:1,75:1,423:1},Ou,VE,tSn),o.Pc=function(){return k8e(this)},o.cg=function(e){var t,i,r,c,s,f;r=dw(e,`,|;|\\(|\\)|\\[|\\]|\\{|\\}| | | +`),Eo(this);try{for(i=0,s=0,c=0,f=0;i0&&(s%2==0?c=uw(r[i]):f=uw(r[i]),s>0&&s%2!=0&&We(this,new V(c,f)),++s),++i}catch(h){throw h=_t(h),L(h,130)?(t=h,C(new Yn("The given string does not match the expected format for vectors."+t))):C(h)}},o.Ib=function(){var e,t,i;for(e=new jo("("),t=Ce(this,0);t.b!=t.d.c;)i=u(Ee(t),8),Je(e,i.a+","+i.b),t.b!=t.d.c&&(e.a+="; ");return(e.a+=")",e).a};var Ean=w(Hy,"KVectorChain",75);b(255,22,{3:1,34:1,22:1,255:1},k6);var sG,iO,rO,Uj,zj,cO,Man=Me(ho,"Alignment",255,Pe,pme,Mwe),doe;b(991,1,js,d9n),o.hf=function(e){lUn(e)};var Can,fG,boe,Tan,Aan,woe,San,goe,poe,Ian,Pan,voe,zut=w(ho,"BoxLayouterOptions",991);b(992,1,{},xmn),o.sf=function(){var e;return e=new Rmn,e},o.tf=function(e){};var Xut=w(ho,"BoxLayouterOptions/BoxFactory",992);b(298,22,{3:1,34:1,22:1,298:1},y6);var v9,hG,m9,k9,y9,lG,aG=Me(ho,"ContentAlignment",298,Pe,vme,Cwe),moe;b(699,1,js,yU),o.hf=function(e){Mn(e,new gn(jn(yn(En(pn(kn(vn(mn(new wn,CVn),""),"Layout Algorithm"),"Select a specific layout algorithm."),(b1(),L2)),dn),Tn((jf(),qn))))),Mn(e,new gn(jn(yn(En(pn(kn(vn(mn(new wn,TVn),""),"Resolved Layout Algorithm"),"Meta data associated with the selected algorithm."),Yf),mFe),Tn(qn)))),Mn(e,new gn(jn(yn(En(Ln(pn(kn(vn(mn(new wn,yrn),""),"Alignment"),"Alignment of the selected node relative to other nodes; the exact meaning depends on the used algorithm."),Oan),Kt),Man),Tn(Ti)))),Mn(e,new gn(jn(yn(En(pn(kn(vn(mn(new wn,fv),""),"Aspect Ratio"),"The desired aspect ratio of the drawing, that is the quotient of width by height."),cr),gi),Tn(qn)))),Mn(e,new gn(jn(yn(En(pn(kn(vn(mn(new wn,Ncn),""),"Bend Points"),"A fixed list of bend points for the edge. This is used by the 'Fixed Layout' algorithm to specify a pre-defined routing for an edge. The vector chain must include the source point, any bend points, and the target point, so it must have at least two points."),Yf),Ean),Tn(Dh)))),Mn(e,new gn(jn(yn(En(Ln(pn(kn(vn(mn(new wn,IS),""),"Content Alignment"),"Specifies how the content of a node are aligned. Each node can individually control the alignment of its contents. I.e. if a node should be aligned top left in its parent node, the parent node should specify that option."),Dan),Ov),aG),Tn(qn)))),Mn(e,new gn(jn(yn(En(Ln(pn(kn(vn(mn(new wn,zy),""),"Debug Mode"),"Whether additional debug information shall be generated."),(Wn(),!1)),Pi),ei),Tn(qn)))),Mn(e,new gn(jn(yn(En(Ln(pn(kn(vn(mn(new wn,WB),""),nin),"Overall direction of edges: horizontal (right / left) or vertical (down / up)."),Nan),Kt),E9),Tn(qn)))),Mn(e,new gn(jn(yn(En(Ln(pn(kn(vn(mn(new wn,Uy),""),"Edge Routing"),"What kind of edge routing style should be applied for the content of a parent node. Algorithms may also set this option to single edges in order to mark them as splines. The bend point list of edges with this option set to SPLINES must be interpreted as control points for a piecewise cubic spline."),$an),Kt),TG),Tn(qn)))),Mn(e,new gn(jn(yn(En(Ln(pn(kn(vn(mn(new wn,Lcn),""),"Expand Nodes"),"If active, nodes are expanded to fill the area of their parent."),!1),Pi),ei),Tn(qn)))),Mn(e,new gn(jn(yn(En(Ln(pn(kn(vn(mn(new wn,SS),""),"Hierarchy Handling"),"Determines whether separate layout runs are triggered for different compound nodes in a hierarchical graph. Setting a node's hierarchy handling to `INCLUDE_CHILDREN` will lay out that node and all of its descendants in a single layout run, until a descendant is encountered which has its hierarchy handling set to `SEPARATE_CHILDREN`. In general, `SEPARATE_CHILDREN` will ensure that a new layout run is triggered for a node with that setting. Including multiple levels of hierarchy in a single layout run may allow cross-hierarchical edges to be laid out properly. If the root node is set to `INHERIT` (or not set at all), the default behavior is `SEPARATE_CHILDREN`."),Kan),Kt),Tdn),Lt(qn,S(T(il,1),z,170,0,[Ti]))))),Mn(e,new gn(jn(yn(En(Ln(pn(kn(vn(mn(new wn,W0),""),"Padding"),"The padding to be left to a parent element's border when placing child elements. This can also serve as an output option of a layout algorithm if node size calculation is setup appropriately."),Van),Yf),Yon),Lt(qn,S(T(il,1),z,170,0,[Ti]))))),Mn(e,new gn(jn(yn(En(Ln(pn(kn(vn(mn(new wn,u8),""),"Interactive"),"Whether the algorithm should be run in interactive mode for the content of a parent node. What this means exactly depends on how the specific algorithm interprets this option. Usually in the interactive mode algorithms try to modify the current layout as little as possible."),!1),Pi),ei),Tn(qn)))),Mn(e,new gn(jn(yn(En(Ln(pn(kn(vn(mn(new wn,OS),""),"interactive Layout"),"Whether the graph should be changeable interactively and by setting constraints"),!1),Pi),ei),Tn(qn)))),Mn(e,new gn(jn(yn(En(Ln(pn(kn(vn(mn(new wn,o8),""),"Omit Node Micro Layout"),"Node micro layout comprises the computation of node dimensions (if requested), the placement of ports and their labels, and the placement of node labels. The functionality is implemented independent of any specific layout algorithm and shouldn't have any negative impact on the layout algorithm's performance itself. Yet, if any unforeseen behavior occurs, this option allows to deactivate the micro layout."),!1),Pi),ei),Tn(qn)))),Mn(e,new gn(jn(yn(En(Ln(pn(kn(vn(mn(new wn,bB),""),"Port Constraints"),"Defines constraints of the position of the ports of a node."),ndn),Kt),Idn),Tn(Ti)))),Mn(e,new gn(jn(yn(En(pn(kn(vn(mn(new wn,PS),""),"Position"),"The position of a node, port, or label. This is used by the 'Fixed Layout' algorithm to specify a pre-defined position."),Yf),Li),Lt(Ti,S(T(il,1),z,170,0,[Bd,T1]))))),Mn(e,new gn(jn(yn(En(pn(kn(vn(mn(new wn,Fy),""),"Priority"),"Defines the priority of an object; its meaning depends on the specific layout algorithm and the context where it is used."),cc),Yi),Lt(Ti,S(T(il,1),z,170,0,[Dh]))))),Mn(e,new gn(jn(yn(En(pn(kn(vn(mn(new wn,hS),""),"Randomization Seed"),"Seed used for pseudo-random number generators to control the layout algorithm. If the value is 0, the seed shall be determined pseudo-randomly (e.g. from the system time)."),cc),Yi),Tn(qn)))),Mn(e,new gn(jn(yn(En(pn(kn(vn(mn(new wn,c8),""),"Separate Connected Components"),"Whether each connected component should be processed separately."),Pi),ei),Tn(qn)))),Mn(e,new gn(jn(yn(En(Ln(pn(kn(vn(mn(new wn,Lrn),""),"Junction Points"),"This option is not used as option, but as output of the layout algorithms. It is attached to edges and determines the points where junction symbols should be drawn in order to represent hyperedges with orthogonal routing. Whether such points are computed depends on the chosen layout algorithm and edge routing style. The points are put into the vector chain with no specific order."),_an),Yf),Ean),Tn(Dh)))),Mn(e,new gn(jn(yn(En(Ln(pn(kn(vn(mn(new wn,xrn),""),"Comment Box"),"Whether the node should be regarded as a comment box instead of a regular node. In that case its placement should be similar to how labels are handled. Any edges incident to a comment box specify to which graph elements the comment is related."),!1),Pi),ei),Tn(Ti)))),Mn(e,new gn(jn(yn(En(Ln(pn(kn(vn(mn(new wn,Frn),""),"Hypernode"),"Whether the node should be handled as a hypernode."),!1),Pi),ei),Tn(Ti)))),Mn(e,new gn(jn(yn(En(pn(kn(vn(mn(new wn,AVn),""),"Label Manager"),"Label managers can shorten labels upon a layout algorithm's request."),Yf),MFe),Lt(qn,S(T(il,1),z,170,0,[T1]))))),Mn(e,new gn(jn(yn(En(Ln(pn(kn(vn(mn(new wn,Rrn),""),"Margins"),"Margins define additional space around the actual bounds of a graph element. For instance, ports or labels being placed on the outside of a node's border might introduce such a margin. The margin is used to guarantee non-overlap of other graph elements with those ports or labels."),Han),Yf),Qon),Tn(Ti)))),Mn(e,new gn(jn(yn(En(Ln(pn(kn(vn(mn(new wn,mrn),""),"No Layout"),"No layout is done for the associated element. This is used to mark parts of a diagram to avoid their inclusion in the layout graph, or to mark parts of the layout graph to prevent layout engines from processing them. If you wish to exclude the contents of a compound node from automatic layout, while the node itself is still considered on its own layer, use the 'Fixed Layout' algorithm for that node."),!1),Pi),ei),Lt(Ti,S(T(il,1),z,170,0,[Dh,Bd,T1]))))),Mn(e,new gn(jn(yn(En(Ln(pn(kn(vn(mn(new wn,SVn),""),"Scale Factor"),"The scaling factor to be applied to the corresponding node in recursive layout. It causes the corresponding node's size to be adjusted, and its ports and labels to be sized and placed accordingly after the layout of that node has been determined (and before the node itself and its siblings are arranged). The scaling is not reverted afterwards, so the resulting layout graph contains the adjusted size and position data. This option is currently not supported if 'Layout Hierarchy' is set."),1),cr),gi),Tn(Ti)))),Mn(e,new gn(jn(yn(En(pn(kn(vn(mn(new wn,IVn),""),"Child Area Width"),"The width of the area occupied by the laid out children of a node."),cr),gi),Tn(qn)))),Mn(e,new gn(jn(yn(En(pn(kn(vn(mn(new wn,PVn),""),"Child Area Height"),"The height of the area occupied by the laid out children of a node."),cr),gi),Tn(qn)))),Mn(e,new gn(jn(yn(En(Ln(pn(kn(vn(mn(new wn,$y),""),kVn),"Turns topdown layout on and off. If this option is enabled, hierarchical layout will be computed first for the root node and then for its children recursively. Layouts are then scaled down to fit the area provided by their parents. Graphs must follow a certain structure for topdown layout to work properly. {@link TopdownNodeTypes.PARALLEL_NODE} nodes must have children of type {@link TopdownNodeTypes.HIERARCHICAL_NODE} and must define {@link topdown.hierarchicalNodeWidth} and {@link topdown.hierarchicalNodeAspectRatio} for their children. Furthermore they need to be laid out using an algorithm that is a {@link TopdownLayoutProvider}. Hierarchical nodes can also be parents of other hierarchical nodes and can optionally use a {@link TopdownSizeApproximator} to dynamically set sizes during topdown layout. In this case {@link topdown.hierarchicalNodeWidth} and {@link topdown.hierarchicalNodeAspectRatio} should be set on the node itself rather than the parent. The values are then used by the size approximator as base values. Hierarchical nodes require the layout option {@link nodeSize.fixedGraphSize} to be true to prevent the algorithm used there from resizing the hierarchical node. This option is not supported if 'Hierarchy Handling' is set to 'INCLUDE_CHILDREN'"),!1),Pi),ei),Tn(qn)))),ai(e,$y,V0,null),Mn(e,new gn(jn(yn(En(Ln(pn(kn(vn(mn(new wn,OVn),""),"Animate"),"Whether the shift from the old layout to the new computed layout shall be animated."),!0),Pi),ei),Tn(qn)))),Mn(e,new gn(jn(yn(En(Ln(pn(kn(vn(mn(new wn,LVn),""),"Animation Time Factor"),"Factor for computation of animation time. The higher the value, the longer the animation time. If the value is 0, the resulting time is always equal to the minimum defined by 'Minimal Animation Time'."),Z(100)),cc),Yi),Tn(qn)))),Mn(e,new gn(jn(yn(En(Ln(pn(kn(vn(mn(new wn,DVn),""),"Layout Ancestors"),"Whether the hierarchy levels on the path from the selected element to the root of the diagram shall be included in the layout process."),!1),Pi),ei),Tn(qn)))),Mn(e,new gn(jn(yn(En(Ln(pn(kn(vn(mn(new wn,NVn),""),"Maximal Animation Time"),"The maximal time for animations, in milliseconds."),Z(4e3)),cc),Yi),Tn(qn)))),Mn(e,new gn(jn(yn(En(Ln(pn(kn(vn(mn(new wn,xVn),""),"Minimal Animation Time"),"The minimal time for animations, in milliseconds."),Z(400)),cc),Yi),Tn(qn)))),Mn(e,new gn(jn(yn(En(Ln(pn(kn(vn(mn(new wn,FVn),""),"Progress Bar"),"Whether a progress bar shall be displayed during layout computations."),!1),Pi),ei),Tn(qn)))),Mn(e,new gn(jn(yn(En(Ln(pn(kn(vn(mn(new wn,$Vn),""),"Validate Graph"),"Whether the graph shall be validated before any layout algorithm is applied. If this option is enabled and at least one error is found, the layout process is aborted and a message is shown to the user."),!1),Pi),ei),Tn(qn)))),Mn(e,new gn(jn(yn(En(Ln(pn(kn(vn(mn(new wn,RVn),""),"Validate Options"),"Whether layout options shall be validated before any layout algorithm is applied. If this option is enabled and at least one error is found, the layout process is aborted and a message is shown to the user."),!0),Pi),ei),Tn(qn)))),Mn(e,new gn(jn(yn(En(Ln(pn(kn(vn(mn(new wn,BVn),""),"Zoom to Fit"),"Whether the zoom level shall be set to view the whole diagram after layout."),!1),Pi),ei),Tn(qn)))),Mn(e,new gn(jn(yn(En(Ln(pn(kn(vn(mn(new wn,Dcn),"box"),"Box Layout Mode"),"Configures the packing mode used by the {@link BoxLayoutProvider}. If SIMPLE is not required (neither priorities are used nor the interactive mode), GROUP_DEC can improve the packing and decrease the area. GROUP_MIXED and GROUP_INC may, in very specific scenarios, work better."),Lan),Kt),Bdn),Tn(qn)))),Mn(e,new gn(jn(yn(En(Ln(pn(kn(vn(mn(new wn,srn),Xf),"Comment Comment Spacing"),"Spacing to be preserved between a comment box and other comment boxes connected to the same node. The space left between comment boxes of different nodes is controlled by the node-node spacing."),10),cr),gi),Tn(qn)))),Mn(e,new gn(jn(yn(En(Ln(pn(kn(vn(mn(new wn,frn),Xf),"Comment Node Spacing"),"Spacing to be preserved between a node and its connected comment boxes. The space left between a node and the comments of another node is controlled by the node-node spacing."),10),cr),gi),Tn(qn)))),Mn(e,new gn(jn(yn(En(Ln(pn(kn(vn(mn(new wn,oB),Xf),"Components Spacing"),"Spacing to be preserved between pairs of connected components. This option is only relevant if 'separateConnectedComponents' is activated."),20),cr),gi),Tn(qn)))),Mn(e,new gn(jn(yn(En(Ln(pn(kn(vn(mn(new wn,hrn),Xf),"Edge Spacing"),"Spacing to be preserved between any two edges. Note that while this can somewhat easily be satisfied for the segments of orthogonally drawn edges, it is harder for general polylines or splines."),10),cr),gi),Tn(qn)))),Mn(e,new gn(jn(yn(En(Ln(pn(kn(vn(mn(new wn,dB),Xf),"Edge Label Spacing"),"The minimal distance to be preserved between a label and the edge it is associated with. Note that the placement of a label is influenced by the 'edgelabels.placement' option."),2),cr),gi),Tn(qn)))),Mn(e,new gn(jn(yn(En(Ln(pn(kn(vn(mn(new wn,XB),Xf),"Edge Node Spacing"),"Spacing to be preserved between nodes and edges."),10),cr),gi),Tn(qn)))),Mn(e,new gn(jn(yn(En(Ln(pn(kn(vn(mn(new wn,lrn),Xf),"Label Spacing"),"Determines the amount of space to be left between two labels of the same graph element."),0),cr),gi),Tn(qn)))),Mn(e,new gn(jn(yn(En(Ln(pn(kn(vn(mn(new wn,brn),Xf),"Label Node Spacing"),"Spacing to be preserved between labels and the border of node they are associated with. Note that the placement of a label is influenced by the 'nodelabels.placement' option."),5),cr),gi),Tn(qn)))),Mn(e,new gn(jn(yn(En(Ln(pn(kn(vn(mn(new wn,arn),Xf),"Horizontal spacing between Label and Port"),"Horizontal spacing to be preserved between labels and the ports they are associated with. Note that the placement of a label is influenced by the 'portlabels.placement' option."),1),cr),gi),Tn(qn)))),Mn(e,new gn(jn(yn(En(Ln(pn(kn(vn(mn(new wn,drn),Xf),"Vertical spacing between Label and Port"),"Vertical spacing to be preserved between labels and the ports they are associated with. Note that the placement of a label is influenced by the 'portlabels.placement' option."),1),cr),gi),Tn(qn)))),Mn(e,new gn(jn(yn(En(Ln(pn(kn(vn(mn(new wn,mw),Xf),"Node Spacing"),"The minimal distance to be preserved between each two nodes."),20),cr),gi),Tn(qn)))),Mn(e,new gn(jn(yn(En(Ln(pn(kn(vn(mn(new wn,wrn),Xf),"Node Self Loop Spacing"),"Spacing to be preserved between a node and its self loops."),10),cr),gi),Tn(qn)))),Mn(e,new gn(jn(yn(En(Ln(pn(kn(vn(mn(new wn,grn),Xf),"Port Spacing"),"Spacing between pairs of ports of the same node."),10),cr),gi),Lt(qn,S(T(il,1),z,170,0,[Ti]))))),Mn(e,new gn(jn(yn(En(pn(kn(vn(mn(new wn,prn),Xf),"Individual Spacing"),"Allows to specify individual spacing values for graph elements that shall be different from the value specified for the element's parent."),Yf),use),Lt(Ti,S(T(il,1),z,170,0,[Dh,Bd,T1]))))),Mn(e,new gn(jn(yn(En(Ln(pn(kn(vn(mn(new wn,Brn),Xf),"Additional Port Space"),"Additional space around the sets of ports on each node side. For each side of a node, this option can reserve additional space before and after the ports on each side. For example, a top spacing of 20 makes sure that the first port on the western and eastern side is 20 units away from the northern border."),ldn),Yf),Qon),Tn(qn)))),Mn(e,new gn(jn(yn(En(pn(kn(vn(mn(new wn,JB),qVn),"Layout Partition"),"Partition to which the node belongs. This requires Layout Partitioning to be active. Nodes with lower partition IDs will appear to the left of nodes with higher partition IDs (assuming a left-to-right layout direction)."),cc),Yi),Lt(qn,S(T(il,1),z,170,0,[Ti]))))),ai(e,JB,VB,Soe),Mn(e,new gn(jn(yn(En(Ln(pn(kn(vn(mn(new wn,VB),qVn),"Layout Partitioning"),"Whether to activate partitioned layout. This will allow to group nodes through the Layout Partition option. a pair of nodes with different partition indices is then placed such that the node with lower index is placed to the left of the other node (with left-to-right layout direction). Depending on the layout algorithm, this may only be guaranteed to work if all nodes have a layout partition configured, or at least if edges that cross partitions are not part of a partition-crossing cycle."),Jan),Pi),ei),Tn(qn)))),Mn(e,new gn(jn(yn(En(Ln(pn(kn(vn(mn(new wn,Mrn),GVn),"Node Label Padding"),"Define padding for node labels that are placed inside of a node."),Gan),Yf),Yon),Tn(qn)))),Mn(e,new gn(jn(yn(En(Ln(pn(kn(vn(mn(new wn,G4),GVn),"Node Label Placement"),"Hints for where node labels are to be placed; if empty, the node label's position is not modified."),Uan),Ov),Ir),Lt(Ti,S(T(il,1),z,170,0,[T1]))))),Mn(e,new gn(jn(yn(En(Ln(pn(kn(vn(mn(new wn,Arn),_S),"Port Alignment"),"Defines the default port distribution for a node. May be overridden for each side individually."),Yan),Kt),A9),Tn(Ti)))),Mn(e,new gn(jn(yn(En(pn(kn(vn(mn(new wn,Srn),_S),"Port Alignment (North)"),"Defines how ports on the northern side are placed, overriding the node's general port alignment."),Kt),A9),Tn(Ti)))),Mn(e,new gn(jn(yn(En(pn(kn(vn(mn(new wn,Irn),_S),"Port Alignment (South)"),"Defines how ports on the southern side are placed, overriding the node's general port alignment."),Kt),A9),Tn(Ti)))),Mn(e,new gn(jn(yn(En(pn(kn(vn(mn(new wn,Prn),_S),"Port Alignment (West)"),"Defines how ports on the western side are placed, overriding the node's general port alignment."),Kt),A9),Tn(Ti)))),Mn(e,new gn(jn(yn(En(pn(kn(vn(mn(new wn,Orn),_S),"Port Alignment (East)"),"Defines how ports on the eastern side are placed, overriding the node's general port alignment."),Kt),A9),Tn(Ti)))),Mn(e,new gn(jn(yn(En(Ln(pn(kn(vn(mn(new wn,e2),vK),"Node Size Constraints"),"What should be taken into account when calculating a node's size. Empty size constraints specify that a node's size is already fixed and should not be changed."),zan),Ov),P9),Tn(Ti)))),Mn(e,new gn(jn(yn(En(Ln(pn(kn(vn(mn(new wn,hv),vK),"Node Size Options"),"Options modifying the behavior of the size constraints set on a node. Each member of the set specifies something that should be taken into account when calculating node sizes. The empty set corresponds to no further modifications."),Wan),Ov),Odn),Tn(Ti)))),Mn(e,new gn(jn(yn(En(Ln(pn(kn(vn(mn(new wn,lv),vK),"Node Size Minimum"),"The minimal size to which a node can be reduced."),Xan),Yf),Li),Tn(Ti)))),Mn(e,new gn(jn(yn(En(Ln(pn(kn(vn(mn(new wn,q4),vK),"Fixed Graph Size"),"By default, the fixed layout provider will enlarge a graph until it is large enough to contain its children. If this option is set, it won't do so."),!1),Pi),ei),Tn(qn)))),Mn(e,new gn(jn(yn(En(Ln(pn(kn(vn(mn(new wn,Drn),zB),"Edge Label Placement"),"Gives a hint on where to put edge labels."),xan),Kt),bdn),Tn(T1)))),Mn(e,new gn(jn(yn(En(Ln(pn(kn(vn(mn(new wn,lS),zB),"Inline Edge Labels"),"If true, an edge label is placed directly on its edge. May only apply to center edge labels. This kind of label placement is only advisable if the label's rendering is such that it is not crossed by its edge and thus stays legible."),!1),Pi),ei),Tn(T1)))),Mn(e,new gn(jn(yn(En(pn(kn(vn(mn(new wn,KVn),"font"),"Font Name"),"Font name used for a label."),L2),dn),Tn(T1)))),Mn(e,new gn(jn(yn(En(pn(kn(vn(mn(new wn,_Vn),"font"),"Font Size"),"Font size used for a label."),cc),Yi),Tn(T1)))),Mn(e,new gn(jn(yn(En(pn(kn(vn(mn(new wn,$rn),mK),"Port Anchor Offset"),"The offset to the port position where connections shall be attached."),Yf),Li),Tn(Bd)))),Mn(e,new gn(jn(yn(En(pn(kn(vn(mn(new wn,Nrn),mK),"Port Index"),"The index of a port in the fixed order around a node. The order is assumed as clockwise, starting with the leftmost port on the top side. This option must be set if 'Port Constraints' is set to FIXED_ORDER and no specific positions are given for the ports. Additionally, the option 'Port Side' must be defined in this case."),cc),Yi),Tn(Bd)))),Mn(e,new gn(jn(yn(En(Ln(pn(kn(vn(mn(new wn,krn),mK),"Port Side"),"The side of a node on which a port is situated. This option must be set if 'Port Constraints' is set to FIXED_SIDE or FIXED_ORDER and no specific positions are given for the ports."),idn),Kt),vr),Tn(Bd)))),Mn(e,new gn(jn(yn(En(pn(kn(vn(mn(new wn,vrn),mK),"Port Border Offset"),"The offset of ports on the node border. With a positive offset the port is moved outside of the node, while with a negative offset the port is moved towards the inside. An offset of 0 means that the port is placed directly on the node border, i.e. if the port side is north, the port's south border touches the nodes's north border; if the port side is east, the port's west border touches the nodes's east border; if the port side is south, the port's north border touches the node's south border; if the port side is west, the port's east border touches the node's west border."),cr),gi),Tn(Bd)))),Mn(e,new gn(jn(yn(En(Ln(pn(kn(vn(mn(new wn,U4),$cn),"Port Label Placement"),"Decides on a placement method for port labels; if empty, the node label's position is not modified."),edn),Ov),lO),Tn(Ti)))),Mn(e,new gn(jn(yn(En(Ln(pn(kn(vn(mn(new wn,Crn),$cn),"Port Labels Next to Port"),"Use 'portLabels.placement': NEXT_TO_PORT_OF_POSSIBLE."),!1),Pi),ei),Tn(Ti)))),Mn(e,new gn(jn(yn(En(Ln(pn(kn(vn(mn(new wn,Trn),$cn),"Treat Port Labels as Group"),"If this option is true (default), the labels of a port will be treated as a group when it comes to centering them next to their port. If this option is false, only the first label will be centered next to the port, with the others being placed below. This only applies to labels of eastern and western ports and will have no effect if labels are not placed next to their port."),!0),Pi),ei),Tn(Ti)))),Mn(e,new gn(jn(yn(En(Ln(pn(kn(vn(mn(new wn,Ry),Vy),"Topdown Scale Factor"),"The scaling factor to be applied to the nodes laid out within the node in recursive topdown layout. The difference to 'Scale Factor' is that the node itself is not scaled. This value has to be set on hierarchical nodes."),1),cr),gi),Tn(qn)))),ai(e,Ry,V0,Foe),Mn(e,new gn(jn(yn(En(Ln(pn(kn(vn(mn(new wn,xcn),Vy),"Topdown Size Approximator"),"The size approximator to be used to set sizes of hierarchical nodes during topdown layout. The default value is null, which results in nodes keeping whatever size is defined for them e.g. through parent parallel node or by manually setting the size."),null),Kt),pO),Tn(Ti)))),ai(e,xcn,V0,$oe),Mn(e,new gn(jn(yn(En(Ln(pn(kn(vn(mn(new wn,By),Vy),"Topdown Hierarchical Node Width"),"The fixed size of a hierarchical node when using topdown layout. If this value is set on a parallel node it applies to its children, when set on a hierarchical node it applies to the node itself."),150),cr),gi),Lt(qn,S(T(il,1),z,170,0,[Ti]))))),ai(e,By,V0,null),Mn(e,new gn(jn(yn(En(Ln(pn(kn(vn(mn(new wn,Ky),Vy),"Topdown Hierarchical Node Aspect Ratio"),"The fixed aspect ratio of a hierarchical node when using topdown layout. Default is 1/sqrt(2). If this value is set on a parallel node it applies to its children, when set on a hierarchical node it applies to the node itself."),1.414),cr),gi),Lt(qn,S(T(il,1),z,170,0,[Ti]))))),ai(e,Ky,V0,null),Mn(e,new gn(jn(yn(En(Ln(pn(kn(vn(mn(new wn,V0),Vy),"Topdown Node Type"),"The different node types used for topdown layout. If the node type is set to {@link TopdownNodeTypes.PARALLEL_NODE} the algorithm must be set to a {@link TopdownLayoutProvider} such as {@link TopdownPacking}. The {@link nodeSize.fixedGraphSize} option is technically only required for hierarchical nodes."),null),Kt),Ddn),Tn(Ti)))),ai(e,V0,q4,null),Mn(e,new gn(jn(yn(En(Ln(pn(kn(vn(mn(new wn,Fcn),Vy),"Topdown Scale Cap"),"Determines the upper limit for the topdown scale factor. The default value is 1.0 which ensures that nested children never end up appearing larger than their parents in terms of unit sizes such as the font size. If the limit is larger, nodes will fully utilize the available space, but it is counteriniuitive for inner nodes to have a larger scale than outer nodes."),1),cr),gi),Tn(qn)))),ai(e,Fcn,V0,xoe),Mn(e,new gn(jn(yn(En(Ln(pn(kn(vn(mn(new wn,jrn),UVn),"Activate Inside Self Loops"),"Whether this node allows to route self loops inside of it instead of around it. If set to true, this will make the node a compound node if it isn't already, and will require the layout algorithm to support compound nodes with hierarchical ports."),!1),Pi),ei),Tn(Ti)))),Mn(e,new gn(jn(yn(En(Ln(pn(kn(vn(mn(new wn,Ern),UVn),"Inside Self Loop"),"Whether a self loop should be routed inside a node instead of around that node."),!1),Pi),ei),Tn(Dh)))),Mn(e,new gn(jn(yn(En(Ln(pn(kn(vn(mn(new wn,sB),"edge"),"Edge Thickness"),"The thickness of an edge. This is a hint on the line width used to draw an edge, possibly requiring more space to be reserved for it."),1),cr),gi),Tn(Dh)))),Mn(e,new gn(jn(yn(En(Ln(pn(kn(vn(mn(new wn,HVn),"edge"),"Edge Type"),"The type of an edge. This is usually used for UML class diagrams, where associations must be handled differently from generalizations."),Ban),Kt),kdn),Tn(Dh)))),h6(e,new Lp(c6(i3(t3(new np,ce),"Layered"),'The layer-based method was introduced by Sugiyama, Tagawa and Toda in 1981. It emphasizes the direction of edges by pointing as many edges as possible into the same direction. The nodes are arranged in layers, which are sometimes called "hierarchies", and then reordered such that the number of edge crossings is minimized. Afterwards, concrete coordinates are computed for the nodes and edge bend points.'))),h6(e,new Lp(c6(i3(t3(new np,"org.eclipse.elk.orthogonal"),"Orthogonal"),`Orthogonal methods that follow the "topology-shape-metrics" approach by Batini, Nardelli and Tamassia '86. The first phase determines the topology of the drawing by applying a planarization technique, which results in a planar representation of the graph. The orthogonal shape is computed in the second phase, which aims at minimizing the number of edge bends, and is called orthogonalization. The third phase leads to concrete coordinates for nodes and edge bend points by applying a compaction method, thus defining the metrics.`))),h6(e,new Lp(c6(i3(t3(new np,au),"Force"),"Layout algorithms that follow physical analogies by simulating a system of attractive and repulsive forces. The first successful method of this kind was proposed by Eades in 1984."))),h6(e,new Lp(c6(i3(t3(new np,"org.eclipse.elk.circle"),"Circle"),"Circular layout algorithms emphasize cycles or biconnected components of a graph by arranging them in circles. This is useful if a drawing is desired where such components are clearly grouped, or where cycles are shown as prominent OPTIONS of the graph."))),h6(e,new Lp(c6(i3(t3(new np,cVn),"Tree"),"Specialized layout methods for trees, i.e. acyclic graphs. The regular structure of graphs that have no undirected cycles can be emphasized using an algorithm of this type."))),h6(e,new Lp(c6(i3(t3(new np,"org.eclipse.elk.planar"),"Planar"),"Algorithms that require a planar or upward planar graph. Most of these algorithms are theoretically interesting, but not practically usable."))),h6(e,new Lp(c6(i3(t3(new np,cs),"Radial"),"Radial layout algorithms usually position the nodes of the graph on concentric circles."))),JGn((new b9n,e)),lUn((new d9n,e)),MGn((new w9n,e))};var Lm,koe,Oan,D2,yoe,joe,Lan,N2,x2,Eoe,Xj,Dan,Wj,Kd,Nan,dG,bG,xan,Fan,$an,Ran,Ban,Moe,F2,Kan,Coe,Vj,wG,Jj,gG,mb,_an,Dm,Han,qan,Gan,$2,Uan,_d,zan,zw,R2,Xan,Ta,Wan,uO,Qj,A1,Van,Toe,Jan,Aoe,Soe,Qan,Yan,pG,vG,mG,kG,Zan,lo,j9,ndn,yG,jG,Xw,edn,tdn,B2,idn,Lv,Yj,EG,K2,Ioe,MG,Poe,Ooe,rdn,Loe,cdn,udn,Dv,odn,oO,sdn,fdn,Hd,Doe,hdn,ldn,adn,sO,Zj,Nm,Nv,Noe,xoe,fO,Foe,ddn,$oe,Wut=w(ho,"CoreOptions",699);b(88,22,{3:1,34:1,22:1,88:1},y7);var Zf,Gr,Zr,nh,hs,E9=Me(ho,nin,88,Pe,j4e,Twe),Roe;b(278,22,{3:1,34:1,22:1,278:1},yD);var xm,Ww,Fm,bdn=Me(ho,"EdgeLabelPlacement",278,Pe,Qve,Awe),Boe;b(223,22,{3:1,34:1,22:1,223:1},MM);var $m,nE,xv,CG,TG=Me(ho,"EdgeRouting",223,Pe,Q3e,Swe),Koe;b(321,22,{3:1,34:1,22:1,321:1},j6);var wdn,gdn,pdn,vdn,AG,mdn,kdn=Me(ho,"EdgeType",321,Pe,gme,Iwe),_oe;b(989,1,js,b9n),o.hf=function(e){JGn(e)};var ydn,jdn,Edn,Mdn,Hoe,Cdn,M9,Vut=w(ho,"FixedLayouterOptions",989);b(990,1,{},Fmn),o.sf=function(){var e;return e=new Xmn,e},o.tf=function(e){};var Jut=w(ho,"FixedLayouterOptions/FixedFactory",990);b(346,22,{3:1,34:1,22:1,346:1},jD);var S1,hO,C9,Tdn=Me(ho,"HierarchyHandling",346,Pe,Vve,Pwe),qoe;b(291,22,{3:1,34:1,22:1,291:1},CM);var rl,Aa,eE,tE,Goe=Me(ho,"LabelSide",291,Pe,J3e,Owe),Uoe;b(95,22,{3:1,34:1,22:1,95:1},lg);var Bl,ef,Ss,tf,$o,rf,Is,cl,cf,Ir=Me(ho,"NodeLabelPlacement",95,Pe,p6e,Lwe),zoe;b(256,22,{3:1,34:1,22:1,256:1},j7);var Adn,T9,Sa,Sdn,iE,A9=Me(ho,"PortAlignment",256,Pe,$4e,Dwe),Xoe;b(101,22,{3:1,34:1,22:1,101:1},E6);var qd,Qc,ul,Rm,eh,Ia,Idn=Me(ho,"PortConstraints",101,Pe,wme,Nwe),Woe;b(279,22,{3:1,34:1,22:1,279:1},M6);var S9,I9,Kl,rE,Pa,Fv,lO=Me(ho,"PortLabelPlacement",279,Pe,bme,xwe),Voe;b(64,22,{3:1,34:1,22:1,64:1},E7);var ue,ne,ls,as,Eu,wu,th,uf,Zu,Hu,Yc,no,Mu,Cu,of,Ro,Bo,Ps,ye,bc,te,vr=Me(ho,"PortSide",64,Pe,E4e,Fwe),Joe;b(993,1,js,w9n),o.hf=function(e){MGn(e)};var Qoe,Yoe,Pdn,Zoe,nse,Qut=w(ho,"RandomLayouterOptions",993);b(994,1,{},$mn),o.sf=function(){var e;return e=new Gmn,e},o.tf=function(e){};var Yut=w(ho,"RandomLayouterOptions/RandomFactory",994);b(386,22,{3:1,34:1,22:1,386:1},TM);var Vw,cE,uE,Gd,P9=Me(ho,"SizeConstraint",386,Pe,V3e,$we),ese;b(264,22,{3:1,34:1,22:1,264:1},ag);var oE,aO,Bm,SG,sE,O9,dO,bO,wO,Odn=Me(ho,"SizeOptions",264,Pe,I6e,Rwe),tse;b(280,22,{3:1,34:1,22:1,280:1},ED);var Jw,Ldn,gO,Ddn=Me(ho,"TopdownNodeTypes",280,Pe,Yve,Bwe),ise;b(347,22,Rcn);var Ndn,xdn,pO=Me(ho,"TopdownSizeApproximator",347,Pe,Xpe,_we);b(987,347,Rcn,RIn),o.Tg=function(e){return bKn(e)};var Zut=Me(ho,"TopdownSizeApproximator/1",987,pO,null,null);b(988,347,Rcn,EPn),o.Tg=function(e){var t,i,r,c,s,f,h,l,a,d,g,p,v,k,j,A,P,O,N,H,W,cn,An,Cn,Un;for(t=u(X(e,(et(),K2)),143),cn=(R1(),v=new Zm,v),sy(cn,e),An=new je,s=new oe((!e.a&&(e.a=new G(ft,e,10,11)),e.a));s.e!=s.i.gc();)r=u(be(s),27),O=(p=new Zm,p),LA(O,cn),sy(O,r),Un=bKn(r),pg(O,y.Math.max(r.g,Un.a),y.Math.max(r.f,Un.b)),tu(An.f,r,O);for(c=new oe((!e.a&&(e.a=new G(ft,e,10,11)),e.a));c.e!=c.i.gc();)for(r=u(be(c),27),d=new oe((!r.e&&(r.e=new Kn(ii,r,7,4)),r.e));d.e!=d.i.gc();)a=u(be(d),74),H=u(zr(Er(An.f,r)),27),W=u(se(An,D((!a.c&&(a.c=new Kn(ve,a,5,8)),a.c),0)),27),N=(g=new nL,g),Se((!N.b&&(N.b=new Kn(ve,N,4,7)),N.b),H),Se((!N.c&&(N.c=new Kn(ve,N,5,8)),N.c),W),OA(N,Rt(H)),sy(N,a);j=u(J7(t.f),205);try{j.rf(cn,new Jmn),nOn(t.f,j)}catch(Hn){throw Hn=_t(Hn),L(Hn,103)?(k=Hn,C(k)):C(Hn)}return $f(cn,x2)||$f(cn,N2)||Etn(cn),l=x(K(X(cn,x2))),h=x(K(X(cn,N2))),f=l/h,i=x(K(X(cn,Zj)))*y.Math.sqrt((!cn.a&&(cn.a=new G(ft,cn,10,11)),cn.a).i),Cn=u(X(cn,A1),107),P=Cn.b+Cn.c+1,A=Cn.d+Cn.a+1,new V(y.Math.max(P,i),y.Math.max(A,i/f))};var not=Me(ho,"TopdownSizeApproximator/2",988,pO,null,null),rse;b(344,1,{871:1},cp),o.Ug=function(e,t){return A_n(this,e,t)},o.Vg=function(){J_n(this)},o.Wg=function(){return this.q},o.Xg=function(){return this.f?RN(this.f):null},o.Yg=function(){return RN(this.a)},o.Zg=function(){return this.p},o.$g=function(){return!1},o._g=function(){return this.n},o.ah=function(){return this.p!=null&&!this.b},o.bh=function(e){var t;this.n&&(t=e,en(this.f,t))},o.dh=function(e,t){var i,r;this.n&&e&&d3e(this,(i=new xPn,r=H$(i,e),WDe(i),r),($T(),PG))},o.eh=function(e){var t;return this.b?null:(t=Yme(this,this.g),We(this.a,t),t.i=this,this.d=e,t)},o.fh=function(e){e>0&&!this.b&&KQ(this,e)},o.b=!1,o.c=0,o.d=-1,o.e=null,o.f=null,o.g=-1,o.j=!1,o.k=!1,o.n=!1,o.o=0,o.q=0,o.r=0;var eot=w(mc,"BasicProgressMonitor",344);b(717,205,kd,Rmn),o.rf=function(e,t){SUn(e,t)};var tot=w(mc,"BoxLayoutProvider",717);b(983,1,Ge,Eyn),o.Ne=function(e,t){return WAe(this,u(e,27),u(t,27))},o.Fb=function(e){return this===e},o.Oe=function(){return new Fe(this)},o.a=!1;var iot=w(mc,"BoxLayoutProvider/1",983);b(163,1,{163:1},bT,sSn),o.Ib=function(){return this.c?Ben(this.c):ca(this.b)};var rot=w(mc,"BoxLayoutProvider/Group",163);b(320,22,{3:1,34:1,22:1,320:1},AM);var Fdn,$dn,Rdn,IG,Bdn=Me(mc,"BoxLayoutProvider/PackingMode",320,Pe,Y3e,Hwe),cse;b(984,1,Ge,Bmn),o.Ne=function(e,t){return dpe(u(e,163),u(t,163))},o.Fb=function(e){return this===e},o.Oe=function(){return new Fe(this)};var cot=w(mc,"BoxLayoutProvider/lambda$0$Type",984);b(985,1,Ge,Kmn),o.Ne=function(e,t){return cpe(u(e,163),u(t,163))},o.Fb=function(e){return this===e},o.Oe=function(){return new Fe(this)};var uot=w(mc,"BoxLayoutProvider/lambda$1$Type",985);b(986,1,Ge,_mn),o.Ne=function(e,t){return upe(u(e,163),u(t,163))},o.Fb=function(e){return this===e},o.Oe=function(){return new Fe(this)};var oot=w(mc,"BoxLayoutProvider/lambda$2$Type",986);b(1384,1,{845:1},Hmn),o.Mg=function(e,t){return rM(),!L(t,167)||fMn((_p(),u(e,167)),t)};var sot=w(mc,"ElkSpacings/AbstractSpacingsBuilder/lambda$0$Type",1384);b(1385,1,le,Myn),o.Cd=function(e){E8e(this.a,u(e,149))};var fot=w(mc,"ElkSpacings/AbstractSpacingsBuilder/lambda$1$Type",1385);b(1386,1,le,Umn),o.Cd=function(e){u(e,96),rM()};var hot=w(mc,"ElkSpacings/AbstractSpacingsBuilder/lambda$2$Type",1386);b(1390,1,le,Cyn),o.Cd=function(e){U6e(this.a,u(e,96))};var lot=w(mc,"ElkSpacings/AbstractSpacingsBuilder/lambda$3$Type",1390);b(1388,1,He,ZCn),o.Mb=function(e){return r8e(this.a,this.b,u(e,149))};var aot=w(mc,"ElkSpacings/AbstractSpacingsBuilder/lambda$4$Type",1388);b(1387,1,He,nTn),o.Mb=function(e){return Bde(this.a,this.b,u(e,845))};var dot=w(mc,"ElkSpacings/AbstractSpacingsBuilder/lambda$5$Type",1387);b(1389,1,le,eTn),o.Cd=function(e){Yge(this.a,this.b,u(e,149))};var bot=w(mc,"ElkSpacings/AbstractSpacingsBuilder/lambda$6$Type",1389);b(947,1,{},zmn),o.Kb=function(e){return JTn(e)},o.Fb=function(e){return this===e};var wot=w(mc,"ElkUtil/lambda$0$Type",947);b(948,1,le,tTn),o.Cd=function(e){QCe(this.a,this.b,u(e,74))},o.a=0,o.b=0;var got=w(mc,"ElkUtil/lambda$1$Type",948);b(949,1,le,iTn),o.Cd=function(e){Hle(this.a,this.b,u(e,166))},o.a=0,o.b=0;var pot=w(mc,"ElkUtil/lambda$2$Type",949);b(950,1,le,rTn),o.Cd=function(e){$ae(this.a,this.b,u(e,135))},o.a=0,o.b=0;var vot=w(mc,"ElkUtil/lambda$3$Type",950);b(951,1,le,Tyn),o.Cd=function(e){mge(this.a,u(e,377))};var mot=w(mc,"ElkUtil/lambda$4$Type",951);b(325,1,{34:1,325:1},Vm),o.Fd=function(e){return ade(this,u(e,242))},o.Fb=function(e){var t;return L(e,325)?(t=u(e,325),this.a==t.a):!1},o.Hb=function(){return Mi(this.a)},o.Ib=function(){return this.a+" (exclusive)"},o.a=0;var kot=w(mc,"ExclusiveBounds/ExclusiveLowerBound",325);b(1119,205,kd,Xmn),o.rf=function(e,t){var i,r,c,s,f,h,l,a,d,g,p,v,k,j,A,P,O,N,H,W,cn,An,Cn;for(t.Ug("Fixed Layout",1),s=u(X(e,(et(),Fan)),223),g=0,p=0,O=new oe((!e.a&&(e.a=new G(ft,e,10,11)),e.a));O.e!=O.i.gc();){for(A=u(be(O),27),Cn=u(X(A,(RT(),M9)),8),Cn&&(qo(A,Cn.a,Cn.b),u(X(A,jdn),181).Hc((ko(),Vw))&&(v=u(X(A,Mdn),8),v.a>0&&v.b>0&&G0(A,v.a,v.b,!0,!0))),g=y.Math.max(g,A.i+A.g),p=y.Math.max(p,A.j+A.f),a=new oe((!A.n&&(A.n=new G(xr,A,1,7)),A.n));a.e!=a.i.gc();)h=u(be(a),135),Cn=u(X(h,M9),8),Cn&&qo(h,Cn.a,Cn.b),g=y.Math.max(g,A.i+h.i+h.g),p=y.Math.max(p,A.j+h.j+h.f);for(W=new oe((!A.c&&(A.c=new G(eo,A,9,9)),A.c));W.e!=W.i.gc();)for(H=u(be(W),123),Cn=u(X(H,M9),8),Cn&&qo(H,Cn.a,Cn.b),cn=A.i+H.i,An=A.j+H.j,g=y.Math.max(g,cn+H.g),p=y.Math.max(p,An+H.f),l=new oe((!H.n&&(H.n=new G(xr,H,1,7)),H.n));l.e!=l.i.gc();)h=u(be(l),135),Cn=u(X(h,M9),8),Cn&&qo(h,Cn.a,Cn.b),g=y.Math.max(g,cn+h.i+h.g),p=y.Math.max(p,An+h.j+h.f);for(c=new he(de(Pl(A).a.Kc(),new zn));Te(c);)i=u(pe(c),74),d=Hzn(i),g=y.Math.max(g,d.a),p=y.Math.max(p,d.b);for(r=new he(de(oy(A).a.Kc(),new zn));Te(r);)i=u(pe(r),74),Rt(Gh(i))!=e&&(d=Hzn(i),g=y.Math.max(g,d.a),p=y.Math.max(p,d.b))}if(s==(Tl(),$m))for(P=new oe((!e.a&&(e.a=new G(ft,e,10,11)),e.a));P.e!=P.i.gc();)for(A=u(be(P),27),r=new he(de(Pl(A).a.Kc(),new zn));Te(r);)i=u(pe(r),74),f=ZPe(i),f.b==0?Et(i,mb,null):Et(i,mb,f);ln(hn(X(e,(RT(),Edn))))||(N=u(X(e,Hoe),107),j=g+N.b+N.c,k=p+N.d+N.a,G0(e,j,k,!0,!0)),t.Vg()};var yot=w(mc,"FixedLayoutProvider",1119);b(385,137,{3:1,423:1,385:1,96:1,137:1},ZO,Kxn),o.cg=function(e){var t,i,r,c,s,f,h,l,a;if(e)try{for(l=dw(e,";,;"),s=l,f=0,h=s.length;f>16&bi|t^r<<16},o.Kc=function(){return new Ayn(this)},o.Ib=function(){return this.a==null&&this.b==null?"pair(null,null)":this.a==null?"pair(null,"+tc(this.b)+")":this.b==null?"pair("+tc(this.a)+",null)":"pair("+tc(this.a)+","+tc(this.b)+")"};var Tot=w(mc,"Pair",42);b(995,1,$i,Ayn),o.Nb=function(e){Wi(this,e)},o.Ob=function(){return!this.c&&(!this.b&&this.a.a!=null||this.a.b!=null)},o.Pb=function(){if(!this.c&&!this.b&&this.a.a!=null)return this.b=!0,this.a.a;if(!this.c&&this.a.b!=null)return this.c=!0,this.a.b;throw C(new uc)},o.Qb=function(){throw this.c&&this.a.b!=null?this.a.b=null:this.b&&this.a.a!=null&&(this.a.a=null),C(new Pu)},o.b=!1,o.c=!1;var Aot=w(mc,"Pair/1",995);b(455,1,{455:1},gOn),o.Fb=function(e){return Cc(this.a,u(e,455).a)&&Cc(this.c,u(e,455).c)&&Cc(this.d,u(e,455).d)&&Cc(this.b,u(e,455).b)},o.Hb=function(){return Nk(S(T(Ii,1),Gn,1,5,[this.a,this.c,this.d,this.b]))},o.Ib=function(){return"("+this.a+dr+this.c+dr+this.d+dr+this.b+")"};var Sot=w(mc,"Quadruple",455);b(1108,205,kd,Gmn),o.rf=function(e,t){var i,r,c,s,f;if(t.Ug("Random Layout",1),(!e.a&&(e.a=new G(ft,e,10,11)),e.a).i==0){t.Vg();return}s=u(X(e,(bZ(),Zoe)),17),s&&s.a!=0?c=new XC(s.a):c=new CF,i=n7(K(X(e,Qoe))),f=n7(K(X(e,nse))),r=u(X(e,Yoe),107),pNe(e,c,i,f,r),t.Vg()};var Iot=w(mc,"RandomLayoutProvider",1108);b(240,1,{240:1},ZD),o.Fb=function(e){return Cc(this.a,u(e,240).a)&&Cc(this.b,u(e,240).b)&&Cc(this.c,u(e,240).c)},o.Hb=function(){return Nk(S(T(Ii,1),Gn,1,5,[this.a,this.b,this.c]))},o.Ib=function(){return"("+this.a+dr+this.b+dr+this.c+")"};var Pot=w(mc,"Triple",240),fse;b(562,1,{}),o.Lf=function(){return new V(this.f.i,this.f.j)},o.of=function(e){return GOn(e,(et(),lo))?X(this.f,hse):X(this.f,e)},o.Mf=function(){return new V(this.f.g,this.f.f)},o.Nf=function(){return this.g},o.pf=function(e){return $f(this.f,e)},o.Of=function(e){su(this.f,e.a),fu(this.f,e.b)},o.Pf=function(e){I0(this.f,e.a),S0(this.f,e.b)},o.Qf=function(e){this.g=e},o.g=0;var hse,Oot=w(g8,"ElkGraphAdapters/AbstractElkGraphElementAdapter",562);b(563,1,{853:1},FE),o.Rf=function(){var e,t;if(!this.b)for(this.b=qC(TC(this.a).i),t=new oe(TC(this.a));t.e!=t.i.gc();)e=u(be(t),135),en(this.b,new IL(e));return this.b},o.b=null;var Lot=w(g8,"ElkGraphAdapters/ElkEdgeAdapter",563);b(289,562,{},Jd),o.Sf=function(){return FKn(this)},o.a=null;var Dot=w(g8,"ElkGraphAdapters/ElkGraphAdapter",289);b(640,562,{187:1},IL);var Not=w(g8,"ElkGraphAdapters/ElkLabelAdapter",640);b(639,562,{695:1},$D),o.Rf=function(){return rye(this)},o.Vf=function(){var e;return e=u(X(this.f,(et(),Dm)),140),!e&&(e=new Ym),e},o.Xf=function(){return cye(this)},o.Zf=function(e){var t;t=new eN(e),Et(this.f,(et(),Dm),t)},o.$f=function(e){Et(this.f,(et(),A1),new rV(e))},o.Tf=function(){return this.d},o.Uf=function(){var e,t;if(!this.a)for(this.a=new nn,t=new he(de(oy(u(this.f,27)).a.Kc(),new zn));Te(t);)e=u(pe(t),74),en(this.a,new FE(e));return this.a},o.Wf=function(){var e,t;if(!this.c)for(this.c=new nn,t=new he(de(Pl(u(this.f,27)).a.Kc(),new zn));Te(t);)e=u(pe(t),74),en(this.c,new FE(e));return this.c},o.Yf=function(){return OC(u(this.f,27)).i!=0||ln(hn(u(this.f,27).of((et(),Vj))))},o._f=function(){$me(this,(r0(),fse))},o.a=null,o.b=null,o.c=null,o.d=null,o.e=null;var xot=w(g8,"ElkGraphAdapters/ElkNodeAdapter",639);b(1284,562,{852:1},Syn),o.Rf=function(){return dye(this)},o.Uf=function(){var e,t;if(!this.a)for(this.a=Fh(u(this.f,123).hh().i),t=new oe(u(this.f,123).hh());t.e!=t.i.gc();)e=u(be(t),74),en(this.a,new FE(e));return this.a},o.Wf=function(){var e,t;if(!this.c)for(this.c=Fh(u(this.f,123).ih().i),t=new oe(u(this.f,123).ih());t.e!=t.i.gc();)e=u(be(t),74),en(this.c,new FE(e));return this.c},o.ag=function(){return u(u(this.f,123).of((et(),B2)),64)},o.bg=function(){var e,t,i,r,c,s,f,h;for(r=Lf(u(this.f,123)),i=new oe(u(this.f,123).ih());i.e!=i.i.gc();)for(e=u(be(i),74),h=new oe((!e.c&&(e.c=new Kn(ve,e,5,8)),e.c));h.e!=h.i.gc();){if(f=u(be(h),84),Jb(Qr(f),r))return!0;if(Qr(f)==r&&ln(hn(X(e,(et(),wG)))))return!0}for(t=new oe(u(this.f,123).hh());t.e!=t.i.gc();)for(e=u(be(t),74),s=new oe((!e.b&&(e.b=new Kn(ve,e,4,7)),e.b));s.e!=s.i.gc();)if(c=u(be(s),84),Jb(Qr(c),r))return!0;return!1},o.a=null,o.b=null,o.c=null;var Fot=w(g8,"ElkGraphAdapters/ElkPortAdapter",1284);b(1285,1,Ge,qmn),o.Ne=function(e,t){return UIe(u(e,123),u(t,123))},o.Fb=function(e){return this===e},o.Oe=function(){return new Fe(this)};var $ot=w(g8,"ElkGraphAdapters/PortComparator",1285),Oa=Ut(us,"EObject"),Km=Ut(r2,WVn),Ko=Ut(r2,VVn),fE=Ut(r2,JVn),hE=Ut(r2,"ElkShape"),ve=Ut(r2,QVn),ii=Ut(r2,Bcn),Ft=Ut(r2,YVn),lE=Ut(us,ZVn),L9=Ut(us,"EFactory"),lse,OG=Ut(us,nJn),Sf=Ut(us,"EPackage"),xi,ase,dse,qdn,vO,bse,Gdn,Udn,zdn,ol,wse,gse,xr=Ut(r2,Kcn),ft=Ut(r2,_cn),eo=Ut(r2,Hcn);b(93,1,eJn),o.th=function(){return this.uh(),null},o.uh=function(){return null},o.vh=function(){return this.uh(),!1},o.wh=function(){return!1},o.xh=function(e){bt(this,e)};var Rot=w(bv,"BasicNotifierImpl",93);b(99,93,cJn),o.Yh=function(){return bo(this)},o.yh=function(e,t){return e},o.zh=function(){throw C(new Be)},o.Ah=function(e){var t;return t=jr(u(_n(this.Dh(),this.Fh()),19)),this.Ph().Th(this,t.n,t.f,e)},o.Bh=function(e,t){throw C(new Be)},o.Ch=function(e,t,i){return Lo(this,e,t,i)},o.Dh=function(){var e;return this.zh()&&(e=this.zh().Nk(),e)?e:this.ii()},o.Eh=function(){return C$(this)},o.Fh=function(){throw C(new Be)},o.Gh=function(){var e,t;return t=this.$h().Ok(),!t&&this.zh().Tk(t=(a6(),e=pJ(vh(this.Dh())),e==null?BG:new S7(this,e))),t},o.Hh=function(e,t){return e},o.Ih=function(e){var t;return t=e.pk(),t?e.Lj():Ht(this.Dh(),e)},o.Jh=function(){var e;return e=this.zh(),e?e.Qk():null},o.Kh=function(){return this.zh()?this.zh().Nk():null},o.Lh=function(e,t,i){return uA(this,e,t,i)},o.Mh=function(e){return D3(this,e)},o.Nh=function(e,t){return hx(this,e,t)},o.Oh=function(){var e;return e=this.zh(),!!e&&e.Rk()},o.Ph=function(){throw C(new Be)},o.Qh=function(){return ZT(this)},o.Rh=function(e,t,i,r){return Xp(this,e,t,r)},o.Sh=function(e,t,i){var r;return r=u(_n(this.Dh(),t),69),r.wk().zk(this,this.hi(),t-this.ji(),e,i)},o.Th=function(e,t,i,r){return xC(this,e,t,r)},o.Uh=function(e,t,i){var r;return r=u(_n(this.Dh(),t),69),r.wk().Ak(this,this.hi(),t-this.ji(),e,i)},o.Vh=function(){return!!this.zh()&&!!this.zh().Pk()},o.Wh=function(e){return FF(this,e)},o.Xh=function(e){return rLn(this,e)},o.Zh=function(e){return Tzn(this,e)},o.$h=function(){throw C(new Be)},o._h=function(){return this.zh()?this.zh().Pk():null},o.ai=function(){return ZT(this)},o.bi=function(e,t){k$(this,e,t)},o.ci=function(e){this.$h().Sk(e)},o.di=function(e){this.$h().Vk(e)},o.ei=function(e){this.$h().Uk(e)},o.fi=function(e,t){var i,r,c,s;return s=this.Jh(),s&&e&&(t=ar(s.El(),this,t),s.Il(this)),r=this.Ph(),r&&((B$(this,this.Ph(),this.Fh()).Bb&pr)!=0?(c=r.Qh(),c&&(e?!s&&c.Il(this):c.Hl(this))):(t=(i=this.Fh(),i>=0?this.Ah(t):this.Ph().Th(this,-1-i,null,t)),t=this.Ch(null,-1,t))),this.di(e),t},o.gi=function(e){var t,i,r,c,s,f,h,l;if(i=this.Dh(),s=Ht(i,e),t=this.ji(),s>=t)return u(e,69).wk().Dk(this,this.hi(),s-t);if(s<=-1)if(f=Wg((Ru(),Zi),i,e),f){if(yr(),u(f,69).xk()||(f=Dp(Br(Zi,f))),c=(r=this.Ih(f),u(r>=0?this.Lh(r,!0,!0):_0(this,f,!0),160)),l=f.Ik(),l>1||l==-1)return u(u(c,220).Sl(e,!1),79)}else throw C(new Yn(ba+e.xe()+kK));else if(e.Jk())return r=this.Ih(e),u(r>=0?this.Lh(r,!1,!0):_0(this,e,!1),79);return h=new jTn(this,e),h},o.hi=function(){return jQ(this)},o.ii=function(){return(U1(),Vn).S},o.ji=function(){return ge(this.ii())},o.ki=function(e){p$(this,e)},o.Ib=function(){return zs(this)};var Bot=w(Jn,"BasicEObjectImpl",99),pse;b(119,99,{110:1,94:1,93:1,58:1,114:1,54:1,99:1,119:1}),o.li=function(e){var t;return t=yQ(this),t[e]},o.mi=function(e,t){var i;i=yQ(this),zt(i,e,t)},o.ni=function(e){var t;t=yQ(this),zt(t,e,null)},o.th=function(){return u(Qn(this,4),129)},o.uh=function(){throw C(new Be)},o.vh=function(){return(this.Db&4)!=0},o.zh=function(){throw C(new Be)},o.oi=function(e){Up(this,2,e)},o.Bh=function(e,t){this.Db=t<<16|this.Db&255,this.oi(e)},o.Dh=function(){return vu(this)},o.Fh=function(){return this.Db>>16},o.Gh=function(){var e,t;return a6(),t=pJ(vh((e=u(Qn(this,16),29),e||this.ii()))),t==null?BG:new S7(this,t)},o.wh=function(){return(this.Db&1)==0},o.Jh=function(){return u(Qn(this,128),2034)},o.Kh=function(){return u(Qn(this,16),29)},o.Oh=function(){return(this.Db&32)!=0},o.Ph=function(){return u(Qn(this,2),54)},o.Vh=function(){return(this.Db&64)!=0},o.$h=function(){throw C(new Be)},o._h=function(){return u(Qn(this,64),288)},o.ci=function(e){Up(this,16,e)},o.di=function(e){Up(this,128,e)},o.ei=function(e){Up(this,64,e)},o.hi=function(){return hu(this)},o.Db=0;var Kot=w(Jn,"MinimalEObjectImpl",119);b(120,119,{110:1,94:1,93:1,58:1,114:1,54:1,99:1,119:1,120:1}),o.oi=function(e){this.Cb=e},o.Ph=function(){return this.Cb};var _ot=w(Jn,"MinimalEObjectImpl/Container",120);b(2083,120,{110:1,342:1,96:1,94:1,93:1,58:1,114:1,54:1,99:1,119:1,120:1}),o.Lh=function(e,t,i){return $Z(this,e,t,i)},o.Uh=function(e,t,i){return Tnn(this,e,t,i)},o.Wh=function(e){return OJ(this,e)},o.bi=function(e,t){jY(this,e,t)},o.ii=function(){return Oc(),gse},o.ki=function(e){lY(this,e)},o.nf=function(){return tKn(this)},o.gh=function(){return!this.o&&(this.o=new Fu((Oc(),ol),I1,this,0)),this.o},o.of=function(e){return X(this,e)},o.pf=function(e){return $f(this,e)},o.qf=function(e,t){return Et(this,e,t)};var Hot=w(Md,"EMapPropertyHolderImpl",2083);b(572,120,{110:1,377:1,94:1,93:1,58:1,114:1,54:1,99:1,119:1,120:1},CE),o.Lh=function(e,t,i){switch(e){case 0:return this.a;case 1:return this.b}return uA(this,e,t,i)},o.Wh=function(e){switch(e){case 0:return this.a!=0;case 1:return this.b!=0}return FF(this,e)},o.bi=function(e,t){switch(e){case 0:gT(this,x(K(t)));return;case 1:wT(this,x(K(t)));return}k$(this,e,t)},o.ii=function(){return Oc(),ase},o.ki=function(e){switch(e){case 0:gT(this,0);return;case 1:wT(this,0);return}p$(this,e)},o.Ib=function(){var e;return(this.Db&64)!=0?zs(this):(e=new ws(zs(this)),e.a+=" (x: ",og(e,this.a),e.a+=", y: ",og(e,this.b),e.a+=")",e.a)},o.a=0,o.b=0;var qot=w(Md,"ElkBendPointImpl",572);b(739,2083,{110:1,342:1,167:1,96:1,94:1,93:1,58:1,114:1,54:1,99:1,119:1,120:1}),o.Lh=function(e,t,i){return UY(this,e,t,i)},o.Sh=function(e,t,i){return h$(this,e,t,i)},o.Uh=function(e,t,i){return Xx(this,e,t,i)},o.Wh=function(e){return cY(this,e)},o.bi=function(e,t){tnn(this,e,t)},o.ii=function(){return Oc(),bse},o.ki=function(e){FY(this,e)},o.jh=function(){return this.k},o.kh=function(){return TC(this)},o.Ib=function(){return mF(this)},o.k=null;var Got=w(Md,"ElkGraphElementImpl",739);b(740,739,{110:1,342:1,167:1,422:1,96:1,94:1,93:1,58:1,114:1,54:1,99:1,119:1,120:1}),o.Lh=function(e,t,i){return ZY(this,e,t,i)},o.Wh=function(e){return cZ(this,e)},o.bi=function(e,t){inn(this,e,t)},o.ii=function(){return Oc(),wse},o.ki=function(e){aZ(this,e)},o.lh=function(){return this.f},o.mh=function(){return this.g},o.nh=function(){return this.i},o.oh=function(){return this.j},o.ph=function(e,t){pg(this,e,t)},o.qh=function(e,t){qo(this,e,t)},o.rh=function(e){su(this,e)},o.sh=function(e){fu(this,e)},o.Ib=function(){return w$(this)},o.f=0,o.g=0,o.i=0,o.j=0;var Uot=w(Md,"ElkShapeImpl",740);b(741,740,{110:1,342:1,84:1,167:1,422:1,96:1,94:1,93:1,58:1,114:1,54:1,99:1,119:1,120:1}),o.Lh=function(e,t,i){return PZ(this,e,t,i)},o.Sh=function(e,t,i){return JZ(this,e,t,i)},o.Uh=function(e,t,i){return QZ(this,e,t,i)},o.Wh=function(e){return yY(this,e)},o.bi=function(e,t){hen(this,e,t)},o.ii=function(){return Oc(),dse},o.ki=function(e){CZ(this,e)},o.hh=function(){return!this.d&&(this.d=new Kn(ii,this,8,5)),this.d},o.ih=function(){return!this.e&&(this.e=new Kn(ii,this,7,4)),this.e};var zot=w(Md,"ElkConnectableShapeImpl",741);b(326,739,{110:1,342:1,74:1,167:1,326:1,96:1,94:1,93:1,58:1,114:1,54:1,99:1,119:1,120:1},nL),o.Ah=function(e){return zZ(this,e)},o.Lh=function(e,t,i){switch(e){case 3:return Y7(this);case 4:return!this.b&&(this.b=new Kn(ve,this,4,7)),this.b;case 5:return!this.c&&(this.c=new Kn(ve,this,5,8)),this.c;case 6:return!this.a&&(this.a=new G(Ft,this,6,6)),this.a;case 7:return Wn(),!this.b&&(this.b=new Kn(ve,this,4,7)),!(this.b.i<=1&&(!this.c&&(this.c=new Kn(ve,this,5,8)),this.c.i<=1));case 8:return Wn(),!!$5(this);case 9:return Wn(),!!K0(this);case 10:return Wn(),!this.b&&(this.b=new Kn(ve,this,4,7)),this.b.i!=0&&(!this.c&&(this.c=new Kn(ve,this,5,8)),this.c.i!=0)}return UY(this,e,t,i)},o.Sh=function(e,t,i){var r;switch(t){case 3:return this.Cb&&(i=(r=this.Db>>16,r>=0?zZ(this,i):this.Cb.Th(this,-1-r,null,i))),AW(this,u(e,27),i);case 4:return!this.b&&(this.b=new Kn(ve,this,4,7)),eu(this.b,e,i);case 5:return!this.c&&(this.c=new Kn(ve,this,5,8)),eu(this.c,e,i);case 6:return!this.a&&(this.a=new G(Ft,this,6,6)),eu(this.a,e,i)}return h$(this,e,t,i)},o.Uh=function(e,t,i){switch(t){case 3:return AW(this,null,i);case 4:return!this.b&&(this.b=new Kn(ve,this,4,7)),ar(this.b,e,i);case 5:return!this.c&&(this.c=new Kn(ve,this,5,8)),ar(this.c,e,i);case 6:return!this.a&&(this.a=new G(Ft,this,6,6)),ar(this.a,e,i)}return Xx(this,e,t,i)},o.Wh=function(e){switch(e){case 3:return!!Y7(this);case 4:return!!this.b&&this.b.i!=0;case 5:return!!this.c&&this.c.i!=0;case 6:return!!this.a&&this.a.i!=0;case 7:return!this.b&&(this.b=new Kn(ve,this,4,7)),!(this.b.i<=1&&(!this.c&&(this.c=new Kn(ve,this,5,8)),this.c.i<=1));case 8:return $5(this);case 9:return K0(this);case 10:return!this.b&&(this.b=new Kn(ve,this,4,7)),this.b.i!=0&&(!this.c&&(this.c=new Kn(ve,this,5,8)),this.c.i!=0)}return cY(this,e)},o.bi=function(e,t){switch(e){case 3:OA(this,u(t,27));return;case 4:!this.b&&(this.b=new Kn(ve,this,4,7)),Ae(this.b),!this.b&&(this.b=new Kn(ve,this,4,7)),Jt(this.b,u(t,16));return;case 5:!this.c&&(this.c=new Kn(ve,this,5,8)),Ae(this.c),!this.c&&(this.c=new Kn(ve,this,5,8)),Jt(this.c,u(t,16));return;case 6:!this.a&&(this.a=new G(Ft,this,6,6)),Ae(this.a),!this.a&&(this.a=new G(Ft,this,6,6)),Jt(this.a,u(t,16));return}tnn(this,e,t)},o.ii=function(){return Oc(),qdn},o.ki=function(e){switch(e){case 3:OA(this,null);return;case 4:!this.b&&(this.b=new Kn(ve,this,4,7)),Ae(this.b);return;case 5:!this.c&&(this.c=new Kn(ve,this,5,8)),Ae(this.c);return;case 6:!this.a&&(this.a=new G(Ft,this,6,6)),Ae(this.a);return}FY(this,e)},o.Ib=function(){return GUn(this)};var Xot=w(Md,"ElkEdgeImpl",326);b(452,2083,{110:1,342:1,166:1,452:1,96:1,94:1,93:1,58:1,114:1,54:1,99:1,119:1,120:1},TE),o.Ah=function(e){return HZ(this,e)},o.Lh=function(e,t,i){switch(e){case 1:return this.j;case 2:return this.k;case 3:return this.b;case 4:return this.c;case 5:return!this.a&&(this.a=new hi(Ko,this,5)),this.a;case 6:return nLn(this);case 7:return t?_F(this):this.i;case 8:return t?KF(this):this.f;case 9:return!this.g&&(this.g=new Kn(Ft,this,9,10)),this.g;case 10:return!this.e&&(this.e=new Kn(Ft,this,10,9)),this.e;case 11:return this.d}return $Z(this,e,t,i)},o.Sh=function(e,t,i){var r,c,s;switch(t){case 6:return this.Cb&&(i=(c=this.Db>>16,c>=0?HZ(this,i):this.Cb.Th(this,-1-c,null,i))),TW(this,u(e,74),i);case 9:return!this.g&&(this.g=new Kn(Ft,this,9,10)),eu(this.g,e,i);case 10:return!this.e&&(this.e=new Kn(Ft,this,10,9)),eu(this.e,e,i)}return s=u(_n((r=u(Qn(this,16),29),r||(Oc(),vO)),t),69),s.wk().zk(this,hu(this),t-ge((Oc(),vO)),e,i)},o.Uh=function(e,t,i){switch(t){case 5:return!this.a&&(this.a=new hi(Ko,this,5)),ar(this.a,e,i);case 6:return TW(this,null,i);case 9:return!this.g&&(this.g=new Kn(Ft,this,9,10)),ar(this.g,e,i);case 10:return!this.e&&(this.e=new Kn(Ft,this,10,9)),ar(this.e,e,i)}return Tnn(this,e,t,i)},o.Wh=function(e){switch(e){case 1:return this.j!=0;case 2:return this.k!=0;case 3:return this.b!=0;case 4:return this.c!=0;case 5:return!!this.a&&this.a.i!=0;case 6:return!!nLn(this);case 7:return!!this.i;case 8:return!!this.f;case 9:return!!this.g&&this.g.i!=0;case 10:return!!this.e&&this.e.i!=0;case 11:return this.d!=null}return OJ(this,e)},o.bi=function(e,t){switch(e){case 1:B3(this,x(K(t)));return;case 2:_3(this,x(K(t)));return;case 3:R3(this,x(K(t)));return;case 4:K3(this,x(K(t)));return;case 5:!this.a&&(this.a=new hi(Ko,this,5)),Ae(this.a),!this.a&&(this.a=new hi(Ko,this,5)),Jt(this.a,u(t,16));return;case 6:qqn(this,u(t,74));return;case 7:ET(this,u(t,84));return;case 8:jT(this,u(t,84));return;case 9:!this.g&&(this.g=new Kn(Ft,this,9,10)),Ae(this.g),!this.g&&(this.g=new Kn(Ft,this,9,10)),Jt(this.g,u(t,16));return;case 10:!this.e&&(this.e=new Kn(Ft,this,10,9)),Ae(this.e),!this.e&&(this.e=new Kn(Ft,this,10,9)),Jt(this.e,u(t,16));return;case 11:XQ(this,_e(t));return}jY(this,e,t)},o.ii=function(){return Oc(),vO},o.ki=function(e){switch(e){case 1:B3(this,0);return;case 2:_3(this,0);return;case 3:R3(this,0);return;case 4:K3(this,0);return;case 5:!this.a&&(this.a=new hi(Ko,this,5)),Ae(this.a);return;case 6:qqn(this,null);return;case 7:ET(this,null);return;case 8:jT(this,null);return;case 9:!this.g&&(this.g=new Kn(Ft,this,9,10)),Ae(this.g);return;case 10:!this.e&&(this.e=new Kn(Ft,this,10,9)),Ae(this.e);return;case 11:XQ(this,null);return}lY(this,e)},o.Ib=function(){return iqn(this)},o.b=0,o.c=0,o.d=null,o.j=0,o.k=0;var Wot=w(Md,"ElkEdgeSectionImpl",452);b(158,120,{110:1,94:1,93:1,155:1,58:1,114:1,54:1,99:1,158:1,119:1,120:1}),o.Lh=function(e,t,i){var r;return e==0?(!this.Ab&&(this.Ab=new G(nt,this,0,3)),this.Ab):Jo(this,e-ge(this.ii()),_n((r=u(Qn(this,16),29),r||this.ii()),e),t,i)},o.Sh=function(e,t,i){var r,c;return t==0?(!this.Ab&&(this.Ab=new G(nt,this,0,3)),eu(this.Ab,e,i)):(c=u(_n((r=u(Qn(this,16),29),r||this.ii()),t),69),c.wk().zk(this,hu(this),t-ge(this.ii()),e,i))},o.Uh=function(e,t,i){var r,c;return t==0?(!this.Ab&&(this.Ab=new G(nt,this,0,3)),ar(this.Ab,e,i)):(c=u(_n((r=u(Qn(this,16),29),r||this.ii()),t),69),c.wk().Ak(this,hu(this),t-ge(this.ii()),e,i))},o.Wh=function(e){var t;return e==0?!!this.Ab&&this.Ab.i!=0:Wo(this,e-ge(this.ii()),_n((t=u(Qn(this,16),29),t||this.ii()),e))},o.Zh=function(e){return ytn(this,e)},o.bi=function(e,t){var i;if(e===0){!this.Ab&&(this.Ab=new G(nt,this,0,3)),Ae(this.Ab),!this.Ab&&(this.Ab=new G(nt,this,0,3)),Jt(this.Ab,u(t,16));return}ns(this,e-ge(this.ii()),_n((i=u(Qn(this,16),29),i||this.ii()),e),t)},o.di=function(e){Up(this,128,e)},o.ii=function(){return xn(),Fse},o.ki=function(e){var t;if(e===0){!this.Ab&&(this.Ab=new G(nt,this,0,3)),Ae(this.Ab);return}Zo(this,e-ge(this.ii()),_n((t=u(Qn(this,16),29),t||this.ii()),e))},o.pi=function(){this.Bb|=1},o.qi=function(e){return G5(this,e)},o.Bb=0;var Vot=w(Jn,"EModelElementImpl",158);b(720,158,{110:1,94:1,93:1,480:1,155:1,58:1,114:1,54:1,99:1,158:1,119:1,120:1},EU),o.ri=function(e,t){return mzn(this,e,t)},o.si=function(e){var t,i,r,c,s;if(this.a!=To(e)||(e.Bb&256)!=0)throw C(new Yn(jK+e.zb+Z0));for(r=Wr(e);Fc(r.a).i!=0;){if(i=u(my(r,0,(t=u(D(Fc(r.a),0),89),s=t.c,L(s,90)?u(s,29):(xn(),Ns))),29),B0(i))return c=To(i).wi().si(i),u(c,54).ci(e),c;r=Wr(i)}return(e.D!=null?e.D:e.B)=="java.util.Map$Entry"?new FIn(e):new wV(e)},o.ti=function(e,t){return U0(this,e,t)},o.Lh=function(e,t,i){var r;switch(e){case 0:return!this.Ab&&(this.Ab=new G(nt,this,0,3)),this.Ab;case 1:return this.a}return Jo(this,e-ge((xn(),xa)),_n((r=u(Qn(this,16),29),r||xa),e),t,i)},o.Sh=function(e,t,i){var r,c;switch(t){case 0:return!this.Ab&&(this.Ab=new G(nt,this,0,3)),eu(this.Ab,e,i);case 1:return this.a&&(i=u(this.a,54).Th(this,4,Sf,i)),xY(this,u(e,241),i)}return c=u(_n((r=u(Qn(this,16),29),r||(xn(),xa)),t),69),c.wk().zk(this,hu(this),t-ge((xn(),xa)),e,i)},o.Uh=function(e,t,i){var r,c;switch(t){case 0:return!this.Ab&&(this.Ab=new G(nt,this,0,3)),ar(this.Ab,e,i);case 1:return xY(this,null,i)}return c=u(_n((r=u(Qn(this,16),29),r||(xn(),xa)),t),69),c.wk().Ak(this,hu(this),t-ge((xn(),xa)),e,i)},o.Wh=function(e){var t;switch(e){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return!!this.a}return Wo(this,e-ge((xn(),xa)),_n((t=u(Qn(this,16),29),t||xa),e))},o.bi=function(e,t){var i;switch(e){case 0:!this.Ab&&(this.Ab=new G(nt,this,0,3)),Ae(this.Ab),!this.Ab&&(this.Ab=new G(nt,this,0,3)),Jt(this.Ab,u(t,16));return;case 1:K_n(this,u(t,241));return}ns(this,e-ge((xn(),xa)),_n((i=u(Qn(this,16),29),i||xa),e),t)},o.ii=function(){return xn(),xa},o.ki=function(e){var t;switch(e){case 0:!this.Ab&&(this.Ab=new G(nt,this,0,3)),Ae(this.Ab);return;case 1:K_n(this,null);return}Zo(this,e-ge((xn(),xa)),_n((t=u(Qn(this,16),29),t||xa),e))};var D9,Xdn,vse,Jot=w(Jn,"EFactoryImpl",720);b(1037,720,{110:1,2113:1,94:1,93:1,480:1,155:1,58:1,114:1,54:1,99:1,158:1,119:1,120:1},Ymn),o.ri=function(e,t){switch(e.hk()){case 12:return u(t,149).Pg();case 13:return tc(t);default:throw C(new Yn(Y4+e.xe()+Z0))}},o.si=function(e){var t,i,r,c,s,f,h,l;switch(e.G==-1&&(e.G=(t=To(e),t?a1(t.vi(),e):-1)),e.G){case 4:return s=new pU,s;case 6:return f=new Zm,f;case 7:return h=new pz,h;case 8:return r=new nL,r;case 9:return i=new CE,i;case 10:return c=new TE,c;case 11:return l=new Zmn,l;default:throw C(new Yn(jK+e.zb+Z0))}},o.ti=function(e,t){switch(e.hk()){case 13:case 12:return null;default:throw C(new Yn(Y4+e.xe()+Z0))}};var Qot=w(Md,"ElkGraphFactoryImpl",1037);b(448,158,{110:1,94:1,93:1,155:1,197:1,58:1,114:1,54:1,99:1,158:1,119:1,120:1}),o.Gh=function(){var e,t;return t=(e=u(Qn(this,16),29),pJ(vh(e||this.ii()))),t==null?(a6(),a6(),BG):new cSn(this,t)},o.Lh=function(e,t,i){var r;switch(e){case 0:return!this.Ab&&(this.Ab=new G(nt,this,0,3)),this.Ab;case 1:return this.xe()}return Jo(this,e-ge(this.ii()),_n((r=u(Qn(this,16),29),r||this.ii()),e),t,i)},o.Wh=function(e){var t;switch(e){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null}return Wo(this,e-ge(this.ii()),_n((t=u(Qn(this,16),29),t||this.ii()),e))},o.bi=function(e,t){var i;switch(e){case 0:!this.Ab&&(this.Ab=new G(nt,this,0,3)),Ae(this.Ab),!this.Ab&&(this.Ab=new G(nt,this,0,3)),Jt(this.Ab,u(t,16));return;case 1:this.ui(_e(t));return}ns(this,e-ge(this.ii()),_n((i=u(Qn(this,16),29),i||this.ii()),e),t)},o.ii=function(){return xn(),$se},o.ki=function(e){var t;switch(e){case 0:!this.Ab&&(this.Ab=new G(nt,this,0,3)),Ae(this.Ab);return;case 1:this.ui(null);return}Zo(this,e-ge(this.ii()),_n((t=u(Qn(this,16),29),t||this.ii()),e))},o.xe=function(){return this.zb},o.ui=function(e){nu(this,e)},o.Ib=function(){return v5(this)},o.zb=null;var Yot=w(Jn,"ENamedElementImpl",448);b(184,448,{110:1,94:1,93:1,155:1,197:1,58:1,241:1,114:1,54:1,99:1,158:1,184:1,119:1,120:1,690:1},LOn),o.Ah=function(e){return QKn(this,e)},o.Lh=function(e,t,i){var r;switch(e){case 0:return!this.Ab&&(this.Ab=new G(nt,this,0,3)),this.Ab;case 1:return this.zb;case 2:return this.yb;case 3:return this.xb;case 4:return this.sb;case 5:return!this.rb&&(this.rb=new Kb(this,If,this)),this.rb;case 6:return!this.vb&&(this.vb=new kp(Sf,this,6,7)),this.vb;case 7:return t?this.Db>>16==7?u(this.Cb,241):null:oLn(this)}return Jo(this,e-ge((xn(),D1)),_n((r=u(Qn(this,16),29),r||D1),e),t,i)},o.Sh=function(e,t,i){var r,c,s;switch(t){case 0:return!this.Ab&&(this.Ab=new G(nt,this,0,3)),eu(this.Ab,e,i);case 4:return this.sb&&(i=u(this.sb,54).Th(this,1,L9,i)),RY(this,u(e,480),i);case 5:return!this.rb&&(this.rb=new Kb(this,If,this)),eu(this.rb,e,i);case 6:return!this.vb&&(this.vb=new kp(Sf,this,6,7)),eu(this.vb,e,i);case 7:return this.Cb&&(i=(c=this.Db>>16,c>=0?QKn(this,i):this.Cb.Th(this,-1-c,null,i))),Lo(this,e,7,i)}return s=u(_n((r=u(Qn(this,16),29),r||(xn(),D1)),t),69),s.wk().zk(this,hu(this),t-ge((xn(),D1)),e,i)},o.Uh=function(e,t,i){var r,c;switch(t){case 0:return!this.Ab&&(this.Ab=new G(nt,this,0,3)),ar(this.Ab,e,i);case 4:return RY(this,null,i);case 5:return!this.rb&&(this.rb=new Kb(this,If,this)),ar(this.rb,e,i);case 6:return!this.vb&&(this.vb=new kp(Sf,this,6,7)),ar(this.vb,e,i);case 7:return Lo(this,null,7,i)}return c=u(_n((r=u(Qn(this,16),29),r||(xn(),D1)),t),69),c.wk().Ak(this,hu(this),t-ge((xn(),D1)),e,i)},o.Wh=function(e){var t;switch(e){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return this.yb!=null;case 3:return this.xb!=null;case 4:return!!this.sb;case 5:return!!this.rb&&this.rb.i!=0;case 6:return!!this.vb&&this.vb.i!=0;case 7:return!!oLn(this)}return Wo(this,e-ge((xn(),D1)),_n((t=u(Qn(this,16),29),t||D1),e))},o.Zh=function(e){var t;return t=uSe(this,e),t||ytn(this,e)},o.bi=function(e,t){var i;switch(e){case 0:!this.Ab&&(this.Ab=new G(nt,this,0,3)),Ae(this.Ab),!this.Ab&&(this.Ab=new G(nt,this,0,3)),Jt(this.Ab,u(t,16));return;case 1:nu(this,_e(t));return;case 2:IT(this,_e(t));return;case 3:ST(this,_e(t));return;case 4:b$(this,u(t,480));return;case 5:!this.rb&&(this.rb=new Kb(this,If,this)),Ae(this.rb),!this.rb&&(this.rb=new Kb(this,If,this)),Jt(this.rb,u(t,16));return;case 6:!this.vb&&(this.vb=new kp(Sf,this,6,7)),Ae(this.vb),!this.vb&&(this.vb=new kp(Sf,this,6,7)),Jt(this.vb,u(t,16));return}ns(this,e-ge((xn(),D1)),_n((i=u(Qn(this,16),29),i||D1),e),t)},o.ei=function(e){var t,i;if(e&&this.rb)for(i=new oe(this.rb);i.e!=i.i.gc();)t=be(i),L(t,364)&&(u(t,364).w=null);Up(this,64,e)},o.ii=function(){return xn(),D1},o.ki=function(e){var t;switch(e){case 0:!this.Ab&&(this.Ab=new G(nt,this,0,3)),Ae(this.Ab);return;case 1:nu(this,null);return;case 2:IT(this,null);return;case 3:ST(this,null);return;case 4:b$(this,null);return;case 5:!this.rb&&(this.rb=new Kb(this,If,this)),Ae(this.rb);return;case 6:!this.vb&&(this.vb=new kp(Sf,this,6,7)),Ae(this.vb);return}Zo(this,e-ge((xn(),D1)),_n((t=u(Qn(this,16),29),t||D1),e))},o.pi=function(){n$(this)},o.vi=function(){return!this.rb&&(this.rb=new Kb(this,If,this)),this.rb},o.wi=function(){return this.sb},o.xi=function(){return this.ub},o.yi=function(){return this.xb},o.zi=function(){return this.yb},o.Ai=function(e){this.ub=e},o.Ib=function(){var e;return(this.Db&64)!=0?v5(this):(e=new ws(v5(this)),e.a+=" (nsURI: ",Or(e,this.yb),e.a+=", nsPrefix: ",Or(e,this.xb),e.a+=")",e.a)},o.xb=null,o.yb=null;var mse,Zot=w(Jn,"EPackageImpl",184);b(569,184,{110:1,2115:1,569:1,94:1,93:1,155:1,197:1,58:1,241:1,114:1,54:1,99:1,158:1,184:1,119:1,120:1,690:1},aqn),o.q=!1,o.r=!1;var kse=!1,nst=w(Md,"ElkGraphPackageImpl",569);b(366,740,{110:1,342:1,167:1,135:1,422:1,366:1,96:1,94:1,93:1,58:1,114:1,54:1,99:1,119:1,120:1},pU),o.Ah=function(e){return qZ(this,e)},o.Lh=function(e,t,i){switch(e){case 7:return sLn(this);case 8:return this.a}return ZY(this,e,t,i)},o.Sh=function(e,t,i){var r;return t===7?(this.Cb&&(i=(r=this.Db>>16,r>=0?qZ(this,i):this.Cb.Th(this,-1-r,null,i))),PV(this,u(e,167),i)):h$(this,e,t,i)},o.Uh=function(e,t,i){return t==7?PV(this,null,i):Xx(this,e,t,i)},o.Wh=function(e){switch(e){case 7:return!!sLn(this);case 8:return!On("",this.a)}return cZ(this,e)},o.bi=function(e,t){switch(e){case 7:Een(this,u(t,167));return;case 8:HQ(this,_e(t));return}inn(this,e,t)},o.ii=function(){return Oc(),Gdn},o.ki=function(e){switch(e){case 7:Een(this,null);return;case 8:HQ(this,"");return}aZ(this,e)},o.Ib=function(){return nHn(this)},o.a="";var est=w(Md,"ElkLabelImpl",366);b(207,741,{110:1,342:1,84:1,167:1,27:1,422:1,207:1,96:1,94:1,93:1,58:1,114:1,54:1,99:1,119:1,120:1},Zm),o.Ah=function(e){return XZ(this,e)},o.Lh=function(e,t,i){switch(e){case 9:return!this.c&&(this.c=new G(eo,this,9,9)),this.c;case 10:return!this.a&&(this.a=new G(ft,this,10,11)),this.a;case 11:return Rt(this);case 12:return!this.b&&(this.b=new G(ii,this,12,3)),this.b;case 13:return Wn(),!this.a&&(this.a=new G(ft,this,10,11)),this.a.i>0}return PZ(this,e,t,i)},o.Sh=function(e,t,i){var r;switch(t){case 9:return!this.c&&(this.c=new G(eo,this,9,9)),eu(this.c,e,i);case 10:return!this.a&&(this.a=new G(ft,this,10,11)),eu(this.a,e,i);case 11:return this.Cb&&(i=(r=this.Db>>16,r>=0?XZ(this,i):this.Cb.Th(this,-1-r,null,i))),$W(this,u(e,27),i);case 12:return!this.b&&(this.b=new G(ii,this,12,3)),eu(this.b,e,i)}return JZ(this,e,t,i)},o.Uh=function(e,t,i){switch(t){case 9:return!this.c&&(this.c=new G(eo,this,9,9)),ar(this.c,e,i);case 10:return!this.a&&(this.a=new G(ft,this,10,11)),ar(this.a,e,i);case 11:return $W(this,null,i);case 12:return!this.b&&(this.b=new G(ii,this,12,3)),ar(this.b,e,i)}return QZ(this,e,t,i)},o.Wh=function(e){switch(e){case 9:return!!this.c&&this.c.i!=0;case 10:return!!this.a&&this.a.i!=0;case 11:return!!Rt(this);case 12:return!!this.b&&this.b.i!=0;case 13:return!this.a&&(this.a=new G(ft,this,10,11)),this.a.i>0}return yY(this,e)},o.bi=function(e,t){switch(e){case 9:!this.c&&(this.c=new G(eo,this,9,9)),Ae(this.c),!this.c&&(this.c=new G(eo,this,9,9)),Jt(this.c,u(t,16));return;case 10:!this.a&&(this.a=new G(ft,this,10,11)),Ae(this.a),!this.a&&(this.a=new G(ft,this,10,11)),Jt(this.a,u(t,16));return;case 11:LA(this,u(t,27));return;case 12:!this.b&&(this.b=new G(ii,this,12,3)),Ae(this.b),!this.b&&(this.b=new G(ii,this,12,3)),Jt(this.b,u(t,16));return}hen(this,e,t)},o.ii=function(){return Oc(),Udn},o.ki=function(e){switch(e){case 9:!this.c&&(this.c=new G(eo,this,9,9)),Ae(this.c);return;case 10:!this.a&&(this.a=new G(ft,this,10,11)),Ae(this.a);return;case 11:LA(this,null);return;case 12:!this.b&&(this.b=new G(ii,this,12,3)),Ae(this.b);return}CZ(this,e)},o.Ib=function(){return Ben(this)};var tst=w(Md,"ElkNodeImpl",207);b(193,741,{110:1,342:1,84:1,167:1,123:1,422:1,193:1,96:1,94:1,93:1,58:1,114:1,54:1,99:1,119:1,120:1},pz),o.Ah=function(e){return GZ(this,e)},o.Lh=function(e,t,i){return e==9?Lf(this):PZ(this,e,t,i)},o.Sh=function(e,t,i){var r;return t===9?(this.Cb&&(i=(r=this.Db>>16,r>=0?GZ(this,i):this.Cb.Th(this,-1-r,null,i))),SW(this,u(e,27),i)):JZ(this,e,t,i)},o.Uh=function(e,t,i){return t==9?SW(this,null,i):QZ(this,e,t,i)},o.Wh=function(e){return e==9?!!Lf(this):yY(this,e)},o.bi=function(e,t){if(e===9){men(this,u(t,27));return}hen(this,e,t)},o.ii=function(){return Oc(),zdn},o.ki=function(e){if(e===9){men(this,null);return}CZ(this,e)},o.Ib=function(){return HGn(this)};var ist=w(Md,"ElkPortImpl",193),yse=Ut(br,"BasicEMap/Entry");b(1122,120,{110:1,44:1,94:1,93:1,136:1,58:1,114:1,54:1,99:1,119:1,120:1},Zmn),o.Fb=function(e){return this===e},o.ld=function(){return this.b},o.Hb=function(){return h0(this)},o.Di=function(e){qQ(this,u(e,149))},o.Lh=function(e,t,i){switch(e){case 0:return this.b;case 1:return this.c}return uA(this,e,t,i)},o.Wh=function(e){switch(e){case 0:return!!this.b;case 1:return this.c!=null}return FF(this,e)},o.bi=function(e,t){switch(e){case 0:qQ(this,u(t,149));return;case 1:_Q(this,t);return}k$(this,e,t)},o.ii=function(){return Oc(),ol},o.ki=function(e){switch(e){case 0:qQ(this,null);return;case 1:_Q(this,null);return}p$(this,e)},o.Bi=function(){var e;return this.a==-1&&(e=this.b,this.a=e?It(e):0),this.a},o.md=function(){return this.c},o.Ci=function(e){this.a=e},o.nd=function(e){var t;return t=this.c,_Q(this,e),t},o.Ib=function(){var e;return(this.Db&64)!=0?zs(this):(e=new F1,Je(Je(Je(e,this.b?this.b.Pg():ju),wB),L6(this.c)),e.a)},o.a=-1,o.c=null;var I1=w(Md,"ElkPropertyToValueMapEntryImpl",1122);b(996,1,{},t6n);var rst=w(Qi,"JsonAdapter",996);b(216,63,Ll,ch);var cst=w(Qi,"JsonImportException",216);b(868,1,{},YKn);var ust=w(Qi,"JsonImporter",868);b(903,1,{},cTn);var ost=w(Qi,"JsonImporter/lambda$0$Type",903);b(904,1,{},uTn);var sst=w(Qi,"JsonImporter/lambda$1$Type",904);b(912,1,{},Iyn);var fst=w(Qi,"JsonImporter/lambda$10$Type",912);b(914,1,{},oTn);var hst=w(Qi,"JsonImporter/lambda$11$Type",914);b(915,1,{},sTn);var lst=w(Qi,"JsonImporter/lambda$12$Type",915);b(921,1,{},kOn);var ast=w(Qi,"JsonImporter/lambda$13$Type",921);b(920,1,{},yOn);var dst=w(Qi,"JsonImporter/lambda$14$Type",920);b(916,1,{},fTn);var bst=w(Qi,"JsonImporter/lambda$15$Type",916);b(917,1,{},hTn);var wst=w(Qi,"JsonImporter/lambda$16$Type",917);b(918,1,{},lTn);var gst=w(Qi,"JsonImporter/lambda$17$Type",918);b(919,1,{},aTn);var pst=w(Qi,"JsonImporter/lambda$18$Type",919);b(924,1,{},Pyn);var vst=w(Qi,"JsonImporter/lambda$19$Type",924);b(905,1,{},Oyn);var mst=w(Qi,"JsonImporter/lambda$2$Type",905);b(922,1,{},Lyn);var kst=w(Qi,"JsonImporter/lambda$20$Type",922);b(923,1,{},Dyn);var yst=w(Qi,"JsonImporter/lambda$21$Type",923);b(927,1,{},Nyn);var jst=w(Qi,"JsonImporter/lambda$22$Type",927);b(925,1,{},xyn);var Est=w(Qi,"JsonImporter/lambda$23$Type",925);b(926,1,{},Fyn);var Mst=w(Qi,"JsonImporter/lambda$24$Type",926);b(929,1,{},$yn);var Cst=w(Qi,"JsonImporter/lambda$25$Type",929);b(928,1,{},Ryn);var Tst=w(Qi,"JsonImporter/lambda$26$Type",928);b(930,1,le,dTn),o.Cd=function(e){kme(this.b,this.a,_e(e))};var Ast=w(Qi,"JsonImporter/lambda$27$Type",930);b(931,1,le,bTn),o.Cd=function(e){yme(this.b,this.a,_e(e))};var Sst=w(Qi,"JsonImporter/lambda$28$Type",931);b(932,1,{},wTn);var Ist=w(Qi,"JsonImporter/lambda$29$Type",932);b(908,1,{},Byn);var Pst=w(Qi,"JsonImporter/lambda$3$Type",908);b(933,1,{},gTn);var Ost=w(Qi,"JsonImporter/lambda$30$Type",933);b(934,1,{},Kyn);var Lst=w(Qi,"JsonImporter/lambda$31$Type",934);b(935,1,{},_yn);var Dst=w(Qi,"JsonImporter/lambda$32$Type",935);b(936,1,{},Hyn);var Nst=w(Qi,"JsonImporter/lambda$33$Type",936);b(937,1,{},qyn);var xst=w(Qi,"JsonImporter/lambda$34$Type",937);b(870,1,{},Gyn);var Fst=w(Qi,"JsonImporter/lambda$35$Type",870);b(941,1,{},hIn);var $st=w(Qi,"JsonImporter/lambda$36$Type",941);b(938,1,le,Uyn),o.Cd=function(e){T4e(this.a,u(e,377))};var Rst=w(Qi,"JsonImporter/lambda$37$Type",938);b(939,1,le,pTn),o.Cd=function(e){oae(this.a,this.b,u(e,166))};var Bst=w(Qi,"JsonImporter/lambda$38$Type",939);b(940,1,le,vTn),o.Cd=function(e){sae(this.a,this.b,u(e,166))};var Kst=w(Qi,"JsonImporter/lambda$39$Type",940);b(906,1,{},zyn);var _st=w(Qi,"JsonImporter/lambda$4$Type",906);b(942,1,le,Xyn),o.Cd=function(e){A4e(this.a,u(e,8))};var Hst=w(Qi,"JsonImporter/lambda$40$Type",942);b(907,1,{},Wyn);var qst=w(Qi,"JsonImporter/lambda$5$Type",907);b(911,1,{},Vyn);var Gst=w(Qi,"JsonImporter/lambda$6$Type",911);b(909,1,{},Jyn);var Ust=w(Qi,"JsonImporter/lambda$7$Type",909);b(910,1,{},Qyn);var zst=w(Qi,"JsonImporter/lambda$8$Type",910);b(913,1,{},Yyn);var Xst=w(Qi,"JsonImporter/lambda$9$Type",913);b(961,1,le,Zyn),o.Cd=function(e){Sp(this.a,new _b(_e(e)))};var Wst=w(Qi,"JsonMetaDataConverter/lambda$0$Type",961);b(962,1,le,njn),o.Cd=function(e){v2e(this.a,u(e,245))};var Vst=w(Qi,"JsonMetaDataConverter/lambda$1$Type",962);b(963,1,le,ejn),o.Cd=function(e){pve(this.a,u(e,143))};var Jst=w(Qi,"JsonMetaDataConverter/lambda$2$Type",963);b(964,1,le,tjn),o.Cd=function(e){m2e(this.a,u(e,170))};var Qst=w(Qi,"JsonMetaDataConverter/lambda$3$Type",964);b(245,22,{3:1,34:1,22:1,245:1},bp);var mO,kO,LG,yO,jO,EO,DG,NG,MO=Me(Ny,"GraphFeature",245,Pe,t6e,Uwe),jse;b(11,1,{34:1,149:1},mt,qt,In,Hi),o.Fd=function(e){return dde(this,u(e,149))},o.Fb=function(e){return GOn(this,e)},o.Sg=function(){return un(this)},o.Pg=function(){return this.b},o.Hb=function(){return c1(this.b)},o.Ib=function(){return this.b};var Yst=w(Ny,"Property",11);b(671,1,Ge,bL),o.Ne=function(e,t){return E9e(this,u(e,96),u(t,96))},o.Fb=function(e){return this===e},o.Oe=function(){return new Fe(this)};var Zst=w(Ny,"PropertyHolderComparator",671);b(709,1,$i,YU),o.Nb=function(e){Wi(this,e)},o.Pb=function(){return Mme(this)},o.Qb=function(){YEn()},o.Ob=function(){return!!this.a};var nft=w(US,"ElkGraphUtil/AncestorIterator",709),Wdn=Ut(br,"EList");b(70,56,{20:1,31:1,56:1,16:1,15:1,70:1,61:1}),o.bd=function(e,t){k5(this,e,t)},o.Fc=function(e){return Se(this,e)},o.cd=function(e,t){return aY(this,e,t)},o.Gc=function(e){return Jt(this,e)},o.Ii=function(){return new mp(this)},o.Ji=function(){return new I7(this)},o.Ki=function(e){return yk(this,e)},o.Li=function(){return!0},o.Mi=function(e,t){},o.Ni=function(){},o.Oi=function(e,t){bx(this,e,t)},o.Pi=function(e,t,i){},o.Qi=function(e,t){},o.Ri=function(e,t,i){},o.Fb=function(e){return TGn(this,e)},o.Hb=function(){return sY(this)},o.Si=function(){return!1},o.Kc=function(){return new oe(this)},o.ed=function(){return new vp(this)},o.fd=function(e){var t;if(t=this.gc(),e<0||e>t)throw C(new Rb(e,t));return new mN(this,e)},o.Ui=function(e,t){this.Ti(e,this.dd(t))},o.Mc=function(e){return sT(this,e)},o.Wi=function(e,t){return t},o.hd=function(e,t){return Fg(this,e,t)},o.Ib=function(){return tZ(this)},o.Yi=function(){return!0},o.Zi=function(e,t){return e4(this,t)};var eft=w(br,"AbstractEList",70);b(66,70,Sh,AE,A0,tY),o.Ei=function(e,t){return l$(this,e,t)},o.Fi=function(e){return EKn(this,e)},o.Gi=function(e,t){Fk(this,e,t)},o.Hi=function(e){ck(this,e)},o.$i=function(e){return gQ(this,e)},o.$b=function(){t5(this)},o.Hc=function(e){return p4(this,e)},o.Xb=function(e){return D(this,e)},o._i=function(e){var t,i,r;++this.j,i=this.g==null?0:this.g.length,e>i&&(r=this.g,t=i+(i/2|0)+4,t=0?(this.gd(t),!0):!1},o.Xi=function(e,t){return this.Dj(e,this.Zi(e,t))},o.gc=function(){return this.Ej()},o.Pc=function(){return this.Fj()},o.Qc=function(e){return this.Gj(e)},o.Ib=function(){return this.Hj()};var hft=w(br,"DelegatingEList",2093);b(2094,2093,qJn),o.Ei=function(e,t){return Qen(this,e,t)},o.Fi=function(e){return this.Ei(this.Ej(),e)},o.Gi=function(e,t){dqn(this,e,t)},o.Hi=function(e){eqn(this,e)},o.Li=function(){return!this.Mj()},o.$b=function(){J5(this)},o.Ij=function(e,t,i,r,c){return new qOn(this,e,t,i,r,c)},o.Jj=function(e){bt(this.jj(),e)},o.Kj=function(){return null},o.Lj=function(){return-1},o.jj=function(){return null},o.Mj=function(){return!1},o.Nj=function(e,t){return t},o.Oj=function(e,t){return t},o.Pj=function(){return!1},o.Qj=function(){return!this.Aj()},o.Ti=function(e,t){var i,r;return this.Pj()?(r=this.Qj(),i=Enn(this,e,t),this.Jj(this.Ij(7,Z(t),i,e,r)),i):Enn(this,e,t)},o.gd=function(e){var t,i,r,c;return this.Pj()?(i=null,r=this.Qj(),t=this.Ij(4,c=uC(this,e),null,e,r),this.Mj()&&c?(i=this.Oj(c,i),i?(i.nj(t),i.oj()):this.Jj(t)):i?(i.nj(t),i.oj()):this.Jj(t),c):(c=uC(this,e),this.Mj()&&c&&(i=this.Oj(c,null),i&&i.oj()),c)},o.Xi=function(e,t){return kUn(this,e,t)};var lft=w(bv,"DelegatingNotifyingListImpl",2094);b(152,1,Qy),o.nj=function(e){return snn(this,e)},o.oj=function(){jx(this)},o.gj=function(){return this.d},o.Kj=function(){return null},o.Rj=function(){return null},o.hj=function(e){return-1},o.ij=function(){return oGn(this)},o.jj=function(){return null},o.kj=function(){return Sen(this)},o.lj=function(){return this.o<0?this.o<-2?-2-this.o-1:-1:this.o},o.Sj=function(){return!1},o.mj=function(e){var t,i,r,c,s,f,h,l,a,d,g;switch(this.d){case 1:case 2:switch(c=e.gj(),c){case 1:case 2:if(s=e.jj(),F(s)===F(this.jj())&&this.hj(null)==e.hj(null))return this.g=e.ij(),e.gj()==1&&(this.d=1),!0}case 4:{switch(c=e.gj(),c){case 4:{if(s=e.jj(),F(s)===F(this.jj())&&this.hj(null)==e.hj(null))return a=btn(this),l=this.o<0?this.o<-2?-2-this.o-1:-1:this.o,f=e.lj(),this.d=6,g=new A0(2),l<=f?(Se(g,this.n),Se(g,e.kj()),this.g=S(T(Oe,1),Ye,28,15,[this.o=l,f+1])):(Se(g,e.kj()),Se(g,this.n),this.g=S(T(Oe,1),Ye,28,15,[this.o=f,l])),this.n=g,a||(this.o=-2-this.o-1),!0;break}}break}case 6:{switch(c=e.gj(),c){case 4:{if(s=e.jj(),F(s)===F(this.jj())&&this.hj(null)==e.hj(null)){for(a=btn(this),f=e.lj(),d=u(this.g,53),r=_(Oe,Ye,28,d.length+1,15,1),t=0;t>>0,t.toString(16))),r.a+=" (eventType: ",this.d){case 1:{r.a+="SET";break}case 2:{r.a+="UNSET";break}case 3:{r.a+="ADD";break}case 5:{r.a+="ADD_MANY";break}case 4:{r.a+="REMOVE";break}case 6:{r.a+="REMOVE_MANY";break}case 7:{r.a+="MOVE";break}case 8:{r.a+="REMOVING_ADAPTER";break}case 9:{r.a+="RESOLVE";break}default:{RL(r,this.d);break}}if(WGn(this)&&(r.a+=", touch: true"),r.a+=", position: ",RL(r,this.o<0?this.o<-2?-2-this.o-1:-1:this.o),r.a+=", notifier: ",T6(r,this.jj()),r.a+=", feature: ",T6(r,this.Kj()),r.a+=", oldValue: ",T6(r,Sen(this)),r.a+=", newValue: ",this.d==6&&L(this.g,53)){for(i=u(this.g,53),r.a+="[",e=0;e10?((!this.b||this.c.j!=this.a)&&(this.b=new R6(this),this.a=this.j),df(this.b,e)):p4(this,e)},o.Yi=function(){return!0},o.a=0;var vft=w(br,"AbstractEList/1",966);b(302,77,BR,Rb);var mft=w(br,"AbstractEList/BasicIndexOutOfBoundsException",302);b(37,1,$i,oe),o.Nb=function(e){Wi(this,e)},o.Xj=function(){if(this.i.j!=this.f)throw C(new Ho)},o.Yj=function(){return be(this)},o.Ob=function(){return this.e!=this.i.gc()},o.Pb=function(){return this.Yj()},o.Qb=function(){L5(this)},o.e=0,o.f=0,o.g=-1;var kft=w(br,"AbstractEList/EIterator",37);b(286,37,zh,vp,mN),o.Qb=function(){L5(this)},o.Rb=function(e){yBn(this,e)},o.Zj=function(){var e;try{return e=this.d.Xb(--this.e),this.Xj(),this.g=this.e,e}catch(t){throw t=_t(t),L(t,77)?(this.Xj(),C(new uc)):C(t)}},o.$j=function(e){TKn(this,e)},o.Sb=function(){return this.e!=0},o.Tb=function(){return this.e},o.Ub=function(){return this.Zj()},o.Vb=function(){return this.e-1},o.Wb=function(e){this.$j(e)};var yft=w(br,"AbstractEList/EListIterator",286);b(355,37,$i,mp),o.Yj=function(){return $F(this)},o.Qb=function(){throw C(new Be)};var jft=w(br,"AbstractEList/NonResolvingEIterator",355);b(398,286,zh,I7,GW),o.Rb=function(e){throw C(new Be)},o.Yj=function(){var e;try{return e=this.c.Vi(this.e),this.Xj(),this.g=this.e++,e}catch(t){throw t=_t(t),L(t,77)?(this.Xj(),C(new uc)):C(t)}},o.Zj=function(){var e;try{return e=this.c.Vi(--this.e),this.Xj(),this.g=this.e,e}catch(t){throw t=_t(t),L(t,77)?(this.Xj(),C(new uc)):C(t)}},o.Qb=function(){throw C(new Be)},o.Wb=function(e){throw C(new Be)};var Eft=w(br,"AbstractEList/NonResolvingEListIterator",398);b(2080,70,GJn),o.Ei=function(e,t){var i,r,c,s,f,h,l,a,d,g,p;if(c=t.gc(),c!=0){for(a=u(Qn(this.a,4),129),d=a==null?0:a.length,p=d+c,r=uF(this,p),g=d-e,g>0&&Rc(a,e,r,e+c,g),l=t.Kc(),f=0;fi)throw C(new Rb(e,i));return new lOn(this,e)},o.$b=function(){var e,t;++this.j,e=u(Qn(this.a,4),129),t=e==null?0:e.length,d4(this,null),bx(this,t,e)},o.Hc=function(e){var t,i,r,c,s;if(t=u(Qn(this.a,4),129),t!=null){if(e!=null){for(r=t,c=0,s=r.length;c=i)throw C(new Rb(e,i));return t[e]},o.dd=function(e){var t,i,r;if(t=u(Qn(this.a,4),129),t!=null){if(e!=null){for(i=0,r=t.length;ii)throw C(new Rb(e,i));return new hOn(this,e)},o.Ti=function(e,t){var i,r,c;if(i=OBn(this),c=i==null?0:i.length,e>=c)throw C(new Fr(OK+e+Cd+c));if(t>=c)throw C(new Fr(LK+t+Cd+c));return r=i[t],e!=t&&(e0&&Rc(e,0,t,0,i),t},o.Qc=function(e){var t,i,r;return t=u(Qn(this.a,4),129),r=t==null?0:t.length,r>0&&(e.lengthr&&zt(e,r,null),e};var Ese,Mft=w(br,"ArrayDelegatingEList",2080);b(1051,37,$i,aNn),o.Xj=function(){if(this.b.j!=this.f||F(u(Qn(this.b.a,4),129))!==F(this.a))throw C(new Ho)},o.Qb=function(){L5(this),this.a=u(Qn(this.b.a,4),129)};var Cft=w(br,"ArrayDelegatingEList/EIterator",1051);b(722,286,zh,MPn,hOn),o.Xj=function(){if(this.b.j!=this.f||F(u(Qn(this.b.a,4),129))!==F(this.a))throw C(new Ho)},o.$j=function(e){TKn(this,e),this.a=u(Qn(this.b.a,4),129)},o.Qb=function(){L5(this),this.a=u(Qn(this.b.a,4),129)};var Tft=w(br,"ArrayDelegatingEList/EListIterator",722);b(1052,355,$i,dNn),o.Xj=function(){if(this.b.j!=this.f||F(u(Qn(this.b.a,4),129))!==F(this.a))throw C(new Ho)};var Aft=w(br,"ArrayDelegatingEList/NonResolvingEIterator",1052);b(723,398,zh,CPn,lOn),o.Xj=function(){if(this.b.j!=this.f||F(u(Qn(this.b.a,4),129))!==F(this.a))throw C(new Ho)};var Sft=w(br,"ArrayDelegatingEList/NonResolvingEListIterator",723);b(615,302,BR,MD);var Ift=w(br,"BasicEList/BasicIndexOutOfBoundsException",615);b(710,66,Sh,LX),o.bd=function(e,t){throw C(new Be)},o.Fc=function(e){throw C(new Be)},o.cd=function(e,t){throw C(new Be)},o.Gc=function(e){throw C(new Be)},o.$b=function(){throw C(new Be)},o._i=function(e){throw C(new Be)},o.Kc=function(){return this.Ii()},o.ed=function(){return this.Ji()},o.fd=function(e){return this.Ki(e)},o.Ti=function(e,t){throw C(new Be)},o.Ui=function(e,t){throw C(new Be)},o.gd=function(e){throw C(new Be)},o.Mc=function(e){throw C(new Be)},o.hd=function(e,t){throw C(new Be)};var Pft=w(br,"BasicEList/UnmodifiableEList",710);b(721,1,{3:1,20:1,16:1,15:1,61:1,597:1}),o.bd=function(e,t){ede(this,e,u(t,44))},o.Fc=function(e){return Wde(this,u(e,44))},o.Jc=function(e){Ji(this,e)},o.Xb=function(e){return u(D(this.c,e),136)},o.Ti=function(e,t){return u(this.c.Ti(e,t),44)},o.Ui=function(e,t){tde(this,e,u(t,44))},o.Lc=function(){return new Pn(null,new Nn(this,16))},o.gd=function(e){return u(this.c.gd(e),44)},o.hd=function(e,t){return p2e(this,e,u(t,44))},o.jd=function(e){cd(this,e)},o.Nc=function(){return new Nn(this,16)},o.Oc=function(){return new Pn(null,new Nn(this,16))},o.cd=function(e,t){return this.c.cd(e,t)},o.Gc=function(e){return this.c.Gc(e)},o.$b=function(){this.c.$b()},o.Hc=function(e){return this.c.Hc(e)},o.Ic=function(e){return Ak(this.c,e)},o._j=function(){var e,t,i;if(this.d==null){for(this.d=_(Vdn,uun,66,2*this.f+1,0,1),i=this.e,this.f=0,t=this.c.Kc();t.e!=t.i.gc();)e=u(t.Yj(),136),hA(this,e);this.e=i}},o.Fb=function(e){return YSn(this,e)},o.Hb=function(){return sY(this.c)},o.dd=function(e){return this.c.dd(e)},o.ak=function(){this.c=new ijn(this)},o.dc=function(){return this.f==0},o.Kc=function(){return this.c.Kc()},o.ed=function(){return this.c.ed()},o.fd=function(e){return this.c.fd(e)},o.bk=function(){return sk(this)},o.ck=function(e,t,i){return new lIn(e,t,i)},o.dk=function(){return new u6n},o.Mc=function(e){return RFn(this,e)},o.gc=function(){return this.f},o.kd=function(e,t){return new Zl(this.c,e,t)},o.Pc=function(){return this.c.Pc()},o.Qc=function(e){return this.c.Qc(e)},o.Ib=function(){return tZ(this.c)},o.e=0,o.f=0;var Oft=w(br,"BasicEMap",721);b(1046,66,Sh,ijn),o.Mi=function(e,t){Dle(this,u(t,136))},o.Pi=function(e,t,i){var r;++(r=this,u(t,136),r).a.e},o.Qi=function(e,t){Nle(this,u(t,136))},o.Ri=function(e,t,i){Dde(this,u(t,136),u(i,136))},o.Oi=function(e,t){O$n(this.a)};var Lft=w(br,"BasicEMap/1",1046);b(1047,66,Sh,u6n),o.aj=function(e){return _(yFe,UJn,621,e,0,1)};var Dft=w(br,"BasicEMap/2",1047);b(1048,Gf,Bu,rjn),o.$b=function(){this.a.c.$b()},o.Hc=function(e){return AF(this.a,e)},o.Kc=function(){return this.a.f==0?(w3(),bE.a):new KEn(this.a)},o.Mc=function(e){var t;return t=this.a.f,YT(this.a,e),this.a.f!=t},o.gc=function(){return this.a.f};var Nft=w(br,"BasicEMap/3",1048);b(1049,31,ww,cjn),o.$b=function(){this.a.c.$b()},o.Hc=function(e){return AGn(this.a,e)},o.Kc=function(){return this.a.f==0?(w3(),bE.a):new _En(this.a)},o.gc=function(){return this.a.f};var xft=w(br,"BasicEMap/4",1049);b(1050,Gf,Bu,ujn),o.$b=function(){this.a.c.$b()},o.Hc=function(e){var t,i,r,c,s,f,h,l,a;if(this.a.f>0&&L(e,44)&&(this.a._j(),l=u(e,44),h=l.ld(),c=h==null?0:It(h),s=IW(this.a,c),t=this.a.d[s],t)){for(i=u(t.g,379),a=t.i,f=0;f"+this.c},o.a=0;var yFe=w(br,"BasicEMap/EntryImpl",621);b(546,1,{},SE);var _ft=w(br,"BasicEMap/View",546),bE;b(783,1,{}),o.Fb=function(e){return len((Fn(),rr),e)},o.Hb=function(){return kY((Fn(),rr))},o.Ib=function(){return ca((Fn(),rr))};var Hft=w(br,"ECollections/BasicEmptyUnmodifiableEList",783);b(1348,1,zh,o6n),o.Nb=function(e){Wi(this,e)},o.Rb=function(e){throw C(new Be)},o.Ob=function(){return!1},o.Sb=function(){return!1},o.Pb=function(){throw C(new uc)},o.Tb=function(){return 0},o.Ub=function(){throw C(new uc)},o.Vb=function(){return-1},o.Qb=function(){throw C(new Be)},o.Wb=function(e){throw C(new Be)};var qft=w(br,"ECollections/BasicEmptyUnmodifiableEList/1",1348);b(1346,783,{20:1,16:1,15:1,61:1},Jjn),o.bd=function(e,t){lMn()},o.Fc=function(e){return aMn()},o.cd=function(e,t){return dMn()},o.Gc=function(e){return bMn()},o.$b=function(){wMn()},o.Hc=function(e){return!1},o.Ic=function(e){return!1},o.Jc=function(e){Ji(this,e)},o.Xb=function(e){return xX((Fn(),e)),null},o.dd=function(e){return-1},o.dc=function(){return!0},o.Kc=function(){return this.a},o.ed=function(){return this.a},o.fd=function(e){return this.a},o.Ti=function(e,t){return gMn()},o.Ui=function(e,t){pMn()},o.Lc=function(){return new Pn(null,new Nn(this,16))},o.gd=function(e){return vMn()},o.Mc=function(e){return mMn()},o.hd=function(e,t){return kMn()},o.gc=function(){return 0},o.jd=function(e){cd(this,e)},o.Nc=function(){return new Nn(this,16)},o.Oc=function(){return new Pn(null,new Nn(this,16))},o.kd=function(e,t){return Fn(),new Zl(rr,e,t)},o.Pc=function(){return LV((Fn(),rr))},o.Qc=function(e){return Fn(),S5(rr,e)};var Gft=w(br,"ECollections/EmptyUnmodifiableEList",1346);b(1347,783,{20:1,16:1,15:1,61:1,597:1},Qjn),o.bd=function(e,t){lMn()},o.Fc=function(e){return aMn()},o.cd=function(e,t){return dMn()},o.Gc=function(e){return bMn()},o.$b=function(){wMn()},o.Hc=function(e){return!1},o.Ic=function(e){return!1},o.Jc=function(e){Ji(this,e)},o.Xb=function(e){return xX((Fn(),e)),null},o.dd=function(e){return-1},o.dc=function(){return!0},o.Kc=function(){return this.a},o.ed=function(){return this.a},o.fd=function(e){return this.a},o.Ti=function(e,t){return gMn()},o.Ui=function(e,t){pMn()},o.Lc=function(){return new Pn(null,new Nn(this,16))},o.gd=function(e){return vMn()},o.Mc=function(e){return mMn()},o.hd=function(e,t){return kMn()},o.gc=function(){return 0},o.jd=function(e){cd(this,e)},o.Nc=function(){return new Nn(this,16)},o.Oc=function(){return new Pn(null,new Nn(this,16))},o.kd=function(e,t){return Fn(),new Zl(rr,e,t)},o.Pc=function(){return LV((Fn(),rr))},o.Qc=function(e){return Fn(),S5(rr,e)},o.bk=function(){return Fn(),Fn(),Zh};var Uft=w(br,"ECollections/EmptyUnmodifiableEMap",1347),Qdn=Ut(br,"Enumerator"),CO;b(288,1,{288:1},N$),o.Fb=function(e){var t;return this===e?!0:L(e,288)?(t=u(e,288),this.f==t.f&&Dge(this.i,t.i)&&oN(this.a,(this.f&256)!=0?(t.f&256)!=0?t.a:null:(t.f&256)!=0?null:t.a)&&oN(this.d,t.d)&&oN(this.g,t.g)&&oN(this.e,t.e)&&ike(this,t)):!1},o.Hb=function(){return this.f},o.Ib=function(){return uUn(this)},o.f=0;var Mse=0,Cse=0,Tse=0,Ase=0,Ydn=0,Zdn=0,n0n=0,e0n=0,t0n=0,Sse,N9=0,x9=0,Ise=0,Pse=0,TO,i0n,zft=w(br,"URI",288);b(1121,45,Qg,Yjn),o.zc=function(e,t){return u(Rr(this,_e(e),u(t,288)),288)};var Xft=w(br,"URI/URICache",1121);b(506,66,Sh,e6n,aC),o.Si=function(){return!0};var Wft=w(br,"UniqueEList",506);b(590,63,Ll,cT);var Vft=w(br,"WrappedException",590),nt=Ut(us,WJn),Qw=Ut(us,VJn),Tu=Ut(us,JJn),Yw=Ut(us,QJn),If=Ut(us,YJn),Os=Ut(us,"EClass"),$G=Ut(us,"EDataType"),Ose;b(1233,45,Qg,Zjn),o.xc=function(e){return Fi(e)?Hc(this,e):zr(Er(this.f,e))};var Jft=w(us,"EDataType/Internal/ConversionDelegate/Factory/Registry/Impl",1233),AO=Ut(us,"EEnum"),_l=Ut(us,ZJn),Pr=Ut(us,nQn),Ls=Ut(us,eQn),Ds,kb=Ut(us,tQn),Zw=Ut(us,iQn);b(1042,1,{},n6n),o.Ib=function(){return"NIL"};var Qft=w(us,"EStructuralFeature/Internal/DynamicValueHolder/1",1042),Lse;b(1041,45,Qg,nEn),o.xc=function(e){return Fi(e)?Hc(this,e):zr(Er(this.f,e))};var Yft=w(us,"EStructuralFeature/Internal/SettingDelegate/Factory/Registry/Impl",1041),gu=Ut(us,rQn),$v=Ut(us,"EValidator/PatternMatcher"),r0n,c0n,Vn,P1,ng,Da,Dse,Nse,xse,Na,O1,xa,yb,ih,Fse,$se,Ns,L1,Rse,D1,eg,_2,mr,Bse,Kse,jb,SO=Ut($t,"FeatureMap/Entry");b(545,1,{76:1},IM),o.Lk=function(){return this.a},o.md=function(){return this.b};var Zft=w(Jn,"BasicEObjectImpl/1",545);b(1040,1,RK,jTn),o.Fk=function(e){return hx(this.a,this.b,e)},o.Qj=function(){return rLn(this.a,this.b)},o.Wb=function(e){kJ(this.a,this.b,e)},o.Gk=function(){P2e(this.a,this.b)};var nht=w(Jn,"BasicEObjectImpl/4",1040);b(2081,1,{114:1}),o.Mk=function(e){this.e=e==0?_se:_(Ii,Gn,1,e,5,1)},o.li=function(e){return this.e[e]},o.mi=function(e,t){this.e[e]=t},o.ni=function(e){this.e[e]=null},o.Nk=function(){return this.c},o.Ok=function(){throw C(new Be)},o.Pk=function(){throw C(new Be)},o.Qk=function(){return this.d},o.Rk=function(){return this.e!=null},o.Sk=function(e){this.c=e},o.Tk=function(e){throw C(new Be)},o.Uk=function(e){throw C(new Be)},o.Vk=function(e){this.d=e};var _se,eht=w(Jn,"BasicEObjectImpl/EPropertiesHolderBaseImpl",2081);b(192,2081,{114:1},lf),o.Ok=function(){return this.a},o.Pk=function(){return this.b},o.Tk=function(e){this.a=e},o.Uk=function(e){this.b=e};var tht=w(Jn,"BasicEObjectImpl/EPropertiesHolderImpl",192);b(516,99,cJn,IE),o.uh=function(){return this.f},o.zh=function(){return this.k},o.Bh=function(e,t){this.g=e,this.i=t},o.Dh=function(){return(this.j&2)==0?this.ii():this.$h().Nk()},o.Fh=function(){return this.i},o.wh=function(){return(this.j&1)!=0},o.Ph=function(){return this.g},o.Vh=function(){return(this.j&4)!=0},o.$h=function(){return!this.k&&(this.k=new lf),this.k},o.ci=function(e){this.$h().Sk(e),e?this.j|=2:this.j&=-3},o.ei=function(e){this.$h().Uk(e),e?this.j|=4:this.j&=-5},o.ii=function(){return(U1(),Vn).S},o.i=0,o.j=1;var iht=w(Jn,"EObjectImpl",516);b(798,516,{110:1,94:1,93:1,58:1,114:1,54:1,99:1},wV),o.li=function(e){return this.e[e]},o.mi=function(e,t){this.e[e]=t},o.ni=function(e){this.e[e]=null},o.Dh=function(){return this.d},o.Ih=function(e){return Ht(this.d,e)},o.Kh=function(){return this.d},o.Oh=function(){return this.e!=null},o.$h=function(){return!this.k&&(this.k=new s6n),this.k},o.ci=function(e){this.d=e},o.hi=function(){var e;return this.e==null&&(e=ge(this.d),this.e=e==0?Hse:_(Ii,Gn,1,e,5,1)),this},o.ji=function(){return 0};var Hse,rht=w(Jn,"DynamicEObjectImpl",798);b(1522,798,{110:1,44:1,94:1,93:1,136:1,58:1,114:1,54:1,99:1},FIn),o.Fb=function(e){return this===e},o.Hb=function(){return h0(this)},o.ci=function(e){this.d=e,this.b=fy(e,"key"),this.c=fy(e,m8)},o.Bi=function(){var e;return this.a==-1&&(e=Ex(this,this.b),this.a=e==null?0:It(e)),this.a},o.ld=function(){return Ex(this,this.b)},o.md=function(){return Ex(this,this.c)},o.Ci=function(e){this.a=e},o.Di=function(e){kJ(this,this.b,e)},o.nd=function(e){var t;return t=Ex(this,this.c),kJ(this,this.c,e),t},o.a=0;var cht=w(Jn,"DynamicEObjectImpl/BasicEMapEntry",1522);b(1523,1,{114:1},s6n),o.Mk=function(e){throw C(new Be)},o.li=function(e){throw C(new Be)},o.mi=function(e,t){throw C(new Be)},o.ni=function(e){throw C(new Be)},o.Nk=function(){throw C(new Be)},o.Ok=function(){return this.a},o.Pk=function(){return this.b},o.Qk=function(){return this.c},o.Rk=function(){throw C(new Be)},o.Sk=function(e){throw C(new Be)},o.Tk=function(e){this.a=e},o.Uk=function(e){this.b=e},o.Vk=function(e){this.c=e};var uht=w(Jn,"DynamicEObjectImpl/DynamicEPropertiesHolderImpl",1523);b(519,158,{110:1,94:1,93:1,598:1,155:1,58:1,114:1,54:1,99:1,519:1,158:1,119:1,120:1},vU),o.Ah=function(e){return UZ(this,e)},o.Lh=function(e,t,i){var r;switch(e){case 0:return!this.Ab&&(this.Ab=new G(nt,this,0,3)),this.Ab;case 1:return this.d;case 2:return i?(!this.b&&(this.b=new go((xn(),mr),Ec,this)),this.b):(!this.b&&(this.b=new go((xn(),mr),Ec,this)),sk(this.b));case 3:return fLn(this);case 4:return!this.a&&(this.a=new hi(Oa,this,4)),this.a;case 5:return!this.c&&(this.c=new kg(Oa,this,5)),this.c}return Jo(this,e-ge((xn(),P1)),_n((r=u(Qn(this,16),29),r||P1),e),t,i)},o.Sh=function(e,t,i){var r,c,s;switch(t){case 0:return!this.Ab&&(this.Ab=new G(nt,this,0,3)),eu(this.Ab,e,i);case 3:return this.Cb&&(i=(c=this.Db>>16,c>=0?UZ(this,i):this.Cb.Th(this,-1-c,null,i))),OV(this,u(e,155),i)}return s=u(_n((r=u(Qn(this,16),29),r||(xn(),P1)),t),69),s.wk().zk(this,hu(this),t-ge((xn(),P1)),e,i)},o.Uh=function(e,t,i){var r,c;switch(t){case 0:return!this.Ab&&(this.Ab=new G(nt,this,0,3)),ar(this.Ab,e,i);case 2:return!this.b&&(this.b=new go((xn(),mr),Ec,this)),WM(this.b,e,i);case 3:return OV(this,null,i);case 4:return!this.a&&(this.a=new hi(Oa,this,4)),ar(this.a,e,i)}return c=u(_n((r=u(Qn(this,16),29),r||(xn(),P1)),t),69),c.wk().Ak(this,hu(this),t-ge((xn(),P1)),e,i)},o.Wh=function(e){var t;switch(e){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.d!=null;case 2:return!!this.b&&this.b.f!=0;case 3:return!!fLn(this);case 4:return!!this.a&&this.a.i!=0;case 5:return!!this.c&&this.c.i!=0}return Wo(this,e-ge((xn(),P1)),_n((t=u(Qn(this,16),29),t||P1),e))},o.bi=function(e,t){var i;switch(e){case 0:!this.Ab&&(this.Ab=new G(nt,this,0,3)),Ae(this.Ab),!this.Ab&&(this.Ab=new G(nt,this,0,3)),Jt(this.Ab,u(t,16));return;case 1:kge(this,_e(t));return;case 2:!this.b&&(this.b=new go((xn(),mr),Ec,this)),PT(this.b,t);return;case 3:Wqn(this,u(t,155));return;case 4:!this.a&&(this.a=new hi(Oa,this,4)),Ae(this.a),!this.a&&(this.a=new hi(Oa,this,4)),Jt(this.a,u(t,16));return;case 5:!this.c&&(this.c=new kg(Oa,this,5)),Ae(this.c),!this.c&&(this.c=new kg(Oa,this,5)),Jt(this.c,u(t,16));return}ns(this,e-ge((xn(),P1)),_n((i=u(Qn(this,16),29),i||P1),e),t)},o.ii=function(){return xn(),P1},o.ki=function(e){var t;switch(e){case 0:!this.Ab&&(this.Ab=new G(nt,this,0,3)),Ae(this.Ab);return;case 1:zQ(this,null);return;case 2:!this.b&&(this.b=new go((xn(),mr),Ec,this)),this.b.c.$b();return;case 3:Wqn(this,null);return;case 4:!this.a&&(this.a=new hi(Oa,this,4)),Ae(this.a);return;case 5:!this.c&&(this.c=new kg(Oa,this,5)),Ae(this.c);return}Zo(this,e-ge((xn(),P1)),_n((t=u(Qn(this,16),29),t||P1),e))},o.Ib=function(){return YRn(this)},o.d=null;var oht=w(Jn,"EAnnotationImpl",519);b(141,721,oun,Fu),o.Gi=function(e,t){Rae(this,e,u(t,44))},o.Wk=function(e,t){return K0e(this,u(e,44),t)},o.$i=function(e){return u(u(this.c,71).$i(e),136)},o.Ii=function(){return u(this.c,71).Ii()},o.Ji=function(){return u(this.c,71).Ji()},o.Ki=function(e){return u(this.c,71).Ki(e)},o.Xk=function(e,t){return WM(this,e,t)},o.Fk=function(e){return u(this.c,79).Fk(e)},o.ak=function(){},o.Qj=function(){return u(this.c,79).Qj()},o.ck=function(e,t,i){var r;return r=u(To(this.b).wi().si(this.b),136),r.Ci(e),r.Di(t),r.nd(i),r},o.dk=function(){return new nz(this)},o.Wb=function(e){PT(this,e)},o.Gk=function(){u(this.c,79).Gk()};var sht=w($t,"EcoreEMap",141);b(165,141,oun,go),o._j=function(){var e,t,i,r,c,s;if(this.d==null){for(s=_(Vdn,uun,66,2*this.f+1,0,1),i=this.c.Kc();i.e!=i.i.gc();)t=u(i.Yj(),136),r=t.Bi(),c=(r&at)%s.length,e=s[c],!e&&(e=s[c]=new nz(this)),e.Fc(t);this.d=s}};var fht=w(Jn,"EAnnotationImpl/1",165);b(292,448,{110:1,94:1,93:1,155:1,197:1,58:1,114:1,481:1,54:1,99:1,158:1,292:1,119:1,120:1}),o.Lh=function(e,t,i){var r,c;switch(e){case 0:return!this.Ab&&(this.Ab=new G(nt,this,0,3)),this.Ab;case 1:return this.zb;case 2:return Wn(),(this.Bb&256)!=0;case 3:return Wn(),(this.Bb&512)!=0;case 4:return Z(this.s);case 5:return Z(this.t);case 6:return Wn(),!!this.Jk();case 7:return Wn(),c=this.s,c>=1;case 8:return t?ks(this):this.r;case 9:return this.q}return Jo(this,e-ge(this.ii()),_n((r=u(Qn(this,16),29),r||this.ii()),e),t,i)},o.Uh=function(e,t,i){var r,c;switch(t){case 0:return!this.Ab&&(this.Ab=new G(nt,this,0,3)),ar(this.Ab,e,i);case 9:return jN(this,i)}return c=u(_n((r=u(Qn(this,16),29),r||this.ii()),t),69),c.wk().Ak(this,hu(this),t-ge(this.ii()),e,i)},o.Wh=function(e){var t,i;switch(e){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return(this.Bb&256)==0;case 3:return(this.Bb&512)==0;case 4:return this.s!=0;case 5:return this.t!=1;case 6:return this.Jk();case 7:return i=this.s,i>=1;case 8:return!!this.r&&!this.q.e&&v0(this.q).i==0;case 9:return!!this.q&&!(this.r&&!this.q.e&&v0(this.q).i==0)}return Wo(this,e-ge(this.ii()),_n((t=u(Qn(this,16),29),t||this.ii()),e))},o.bi=function(e,t){var i,r;switch(e){case 0:!this.Ab&&(this.Ab=new G(nt,this,0,3)),Ae(this.Ab),!this.Ab&&(this.Ab=new G(nt,this,0,3)),Jt(this.Ab,u(t,16));return;case 1:this.ui(_e(t));return;case 2:s1(this,ln(hn(t)));return;case 3:f1(this,ln(hn(t)));return;case 4:r1(this,u(t,17).a);return;case 5:this.Zk(u(t,17).a);return;case 8:ld(this,u(t,142));return;case 9:r=Hf(this,u(t,89),null),r&&r.oj();return}ns(this,e-ge(this.ii()),_n((i=u(Qn(this,16),29),i||this.ii()),e),t)},o.ii=function(){return xn(),Kse},o.ki=function(e){var t,i;switch(e){case 0:!this.Ab&&(this.Ab=new G(nt,this,0,3)),Ae(this.Ab);return;case 1:this.ui(null);return;case 2:s1(this,!0);return;case 3:f1(this,!0);return;case 4:r1(this,0);return;case 5:this.Zk(1);return;case 8:ld(this,null);return;case 9:i=Hf(this,null,null),i&&i.oj();return}Zo(this,e-ge(this.ii()),_n((t=u(Qn(this,16),29),t||this.ii()),e))},o.pi=function(){ks(this),this.Bb|=1},o.Hk=function(){return ks(this)},o.Ik=function(){return this.t},o.Jk=function(){var e;return e=this.t,e>1||e==-1},o.Si=function(){return(this.Bb&512)!=0},o.Yk=function(e,t){return BY(this,e,t)},o.Zk=function(e){Qb(this,e)},o.Ib=function(){return ten(this)},o.s=0,o.t=1;var hht=w(Jn,"ETypedElementImpl",292);b(462,292,{110:1,94:1,93:1,155:1,197:1,58:1,179:1,69:1,114:1,481:1,54:1,99:1,158:1,462:1,292:1,119:1,120:1,692:1}),o.Ah=function(e){return _Kn(this,e)},o.Lh=function(e,t,i){var r,c;switch(e){case 0:return!this.Ab&&(this.Ab=new G(nt,this,0,3)),this.Ab;case 1:return this.zb;case 2:return Wn(),(this.Bb&256)!=0;case 3:return Wn(),(this.Bb&512)!=0;case 4:return Z(this.s);case 5:return Z(this.t);case 6:return Wn(),!!this.Jk();case 7:return Wn(),c=this.s,c>=1;case 8:return t?ks(this):this.r;case 9:return this.q;case 10:return Wn(),(this.Bb&Vs)!=0;case 11:return Wn(),(this.Bb&Mw)!=0;case 12:return Wn(),(this.Bb&pw)!=0;case 13:return this.j;case 14:return E4(this);case 15:return Wn(),(this.Bb&_u)!=0;case 16:return Wn(),(this.Bb&mh)!=0;case 17:return qb(this)}return Jo(this,e-ge(this.ii()),_n((r=u(Qn(this,16),29),r||this.ii()),e),t,i)},o.Sh=function(e,t,i){var r,c,s;switch(t){case 0:return!this.Ab&&(this.Ab=new G(nt,this,0,3)),eu(this.Ab,e,i);case 17:return this.Cb&&(i=(c=this.Db>>16,c>=0?_Kn(this,i):this.Cb.Th(this,-1-c,null,i))),Lo(this,e,17,i)}return s=u(_n((r=u(Qn(this,16),29),r||this.ii()),t),69),s.wk().zk(this,hu(this),t-ge(this.ii()),e,i)},o.Uh=function(e,t,i){var r,c;switch(t){case 0:return!this.Ab&&(this.Ab=new G(nt,this,0,3)),ar(this.Ab,e,i);case 9:return jN(this,i);case 17:return Lo(this,null,17,i)}return c=u(_n((r=u(Qn(this,16),29),r||this.ii()),t),69),c.wk().Ak(this,hu(this),t-ge(this.ii()),e,i)},o.Wh=function(e){var t,i;switch(e){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return(this.Bb&256)==0;case 3:return(this.Bb&512)==0;case 4:return this.s!=0;case 5:return this.t!=1;case 6:return this.Jk();case 7:return i=this.s,i>=1;case 8:return!!this.r&&!this.q.e&&v0(this.q).i==0;case 9:return!!this.q&&!(this.r&&!this.q.e&&v0(this.q).i==0);case 10:return(this.Bb&Vs)==0;case 11:return(this.Bb&Mw)!=0;case 12:return(this.Bb&pw)!=0;case 13:return this.j!=null;case 14:return E4(this)!=null;case 15:return(this.Bb&_u)!=0;case 16:return(this.Bb&mh)!=0;case 17:return!!qb(this)}return Wo(this,e-ge(this.ii()),_n((t=u(Qn(this,16),29),t||this.ii()),e))},o.bi=function(e,t){var i,r;switch(e){case 0:!this.Ab&&(this.Ab=new G(nt,this,0,3)),Ae(this.Ab),!this.Ab&&(this.Ab=new G(nt,this,0,3)),Jt(this.Ab,u(t,16));return;case 1:VN(this,_e(t));return;case 2:s1(this,ln(hn(t)));return;case 3:f1(this,ln(hn(t)));return;case 4:r1(this,u(t,17).a);return;case 5:this.Zk(u(t,17).a);return;case 8:ld(this,u(t,142));return;case 9:r=Hf(this,u(t,89),null),r&&r.oj();return;case 10:u4(this,ln(hn(t)));return;case 11:f4(this,ln(hn(t)));return;case 12:o4(this,ln(hn(t)));return;case 13:OX(this,_e(t));return;case 15:s4(this,ln(hn(t)));return;case 16:h4(this,ln(hn(t)));return}ns(this,e-ge(this.ii()),_n((i=u(Qn(this,16),29),i||this.ii()),e),t)},o.ii=function(){return xn(),Bse},o.ki=function(e){var t,i;switch(e){case 0:!this.Ab&&(this.Ab=new G(nt,this,0,3)),Ae(this.Ab);return;case 1:L(this.Cb,90)&&sw(io(u(this.Cb,90)),4),nu(this,null);return;case 2:s1(this,!0);return;case 3:f1(this,!0);return;case 4:r1(this,0);return;case 5:this.Zk(1);return;case 8:ld(this,null);return;case 9:i=Hf(this,null,null),i&&i.oj();return;case 10:u4(this,!0);return;case 11:f4(this,!1);return;case 12:o4(this,!1);return;case 13:this.i=null,MT(this,null);return;case 15:s4(this,!1);return;case 16:h4(this,!1);return}Zo(this,e-ge(this.ii()),_n((t=u(Qn(this,16),29),t||this.ii()),e))},o.pi=function(){T3(Br((Ru(),Zi),this)),ks(this),this.Bb|=1},o.pk=function(){return this.f},o.ik=function(){return E4(this)},o.qk=function(){return qb(this)},o.uk=function(){return null},o.$k=function(){return this.k},o.Lj=function(){return this.n},o.vk=function(){return vA(this)},o.wk=function(){var e,t,i,r,c,s,f,h,l;return this.p||(i=qb(this),(i.i==null&&vh(i),i.i).length,r=this.uk(),r&&ge(qb(r)),c=ks(this),f=c.kk(),e=f?(f.i&1)!=0?f==ao?ei:f==Oe?Yi:f==ig?cm:f==Ri?gi:f==$a?eb:f==U2?tb:f==qu?wv:P8:f:null,t=E4(this),h=c.ik(),N9e(this),(this.Bb&mh)!=0&&((s=YZ((Ru(),Zi),i))&&s!=this||(s=Dp(Br(Zi,this))))?this.p=new MTn(this,s):this.Jk()?this.al()?r?(this.Bb&_u)!=0?e?this.bl()?this.p=new Ya(47,e,this,r):this.p=new Ya(5,e,this,r):this.bl()?this.p=new id(46,this,r):this.p=new id(4,this,r):e?this.bl()?this.p=new Ya(49,e,this,r):this.p=new Ya(7,e,this,r):this.bl()?this.p=new id(48,this,r):this.p=new id(6,this,r):(this.Bb&_u)!=0?e?e==Sd?this.p=new Jl(50,yse,this):this.bl()?this.p=new Jl(43,e,this):this.p=new Jl(1,e,this):this.bl()?this.p=new Yl(42,this):this.p=new Yl(0,this):e?e==Sd?this.p=new Jl(41,yse,this):this.bl()?this.p=new Jl(45,e,this):this.p=new Jl(3,e,this):this.bl()?this.p=new Yl(44,this):this.p=new Yl(2,this):L(c,156)?e==SO?this.p=new Yl(40,this):(this.Bb&512)!=0?(this.Bb&_u)!=0?e?this.p=new Jl(9,e,this):this.p=new Yl(8,this):e?this.p=new Jl(11,e,this):this.p=new Yl(10,this):(this.Bb&_u)!=0?e?this.p=new Jl(13,e,this):this.p=new Yl(12,this):e?this.p=new Jl(15,e,this):this.p=new Yl(14,this):r?(l=r.t,l>1||l==-1?this.bl()?(this.Bb&_u)!=0?e?this.p=new Ya(25,e,this,r):this.p=new id(24,this,r):e?this.p=new Ya(27,e,this,r):this.p=new id(26,this,r):(this.Bb&_u)!=0?e?this.p=new Ya(29,e,this,r):this.p=new id(28,this,r):e?this.p=new Ya(31,e,this,r):this.p=new id(30,this,r):this.bl()?(this.Bb&_u)!=0?e?this.p=new Ya(33,e,this,r):this.p=new id(32,this,r):e?this.p=new Ya(35,e,this,r):this.p=new id(34,this,r):(this.Bb&_u)!=0?e?this.p=new Ya(37,e,this,r):this.p=new id(36,this,r):e?this.p=new Ya(39,e,this,r):this.p=new id(38,this,r)):this.bl()?(this.Bb&_u)!=0?e?this.p=new Jl(17,e,this):this.p=new Yl(16,this):e?this.p=new Jl(19,e,this):this.p=new Yl(18,this):(this.Bb&_u)!=0?e?this.p=new Jl(21,e,this):this.p=new Yl(20,this):e?this.p=new Jl(23,e,this):this.p=new Yl(22,this):this._k()?this.bl()?this.p=new aIn(u(c,29),this,r):this.p=new vJ(u(c,29),this,r):L(c,156)?e==SO?this.p=new Yl(40,this):(this.Bb&_u)!=0?e?this.p=new lPn(t,h,this,(SF(),f==Oe?a0n:f==ao?o0n:f==$a?d0n:f==ig?l0n:f==Ri?h0n:f==U2?b0n:f==qu?s0n:f==ds?f0n:KG)):this.p=new MOn(u(c,156),t,h,this):e?this.p=new hPn(t,h,this,(SF(),f==Oe?a0n:f==ao?o0n:f==$a?d0n:f==ig?l0n:f==Ri?h0n:f==U2?b0n:f==qu?s0n:f==ds?f0n:KG)):this.p=new EOn(u(c,156),t,h,this):this.al()?r?(this.Bb&_u)!=0?this.bl()?this.p=new bIn(u(c,29),this,r):this.p=new iV(u(c,29),this,r):this.bl()?this.p=new dIn(u(c,29),this,r):this.p=new nN(u(c,29),this,r):(this.Bb&_u)!=0?this.bl()?this.p=new hSn(u(c,29),this):this.p=new pW(u(c,29),this):this.bl()?this.p=new fSn(u(c,29),this):this.p=new _D(u(c,29),this):this.bl()?r?(this.Bb&_u)!=0?this.p=new wIn(u(c,29),this,r):this.p=new eV(u(c,29),this,r):(this.Bb&_u)!=0?this.p=new lSn(u(c,29),this):this.p=new vW(u(c,29),this):r?(this.Bb&_u)!=0?this.p=new gIn(u(c,29),this,r):this.p=new tV(u(c,29),this,r):(this.Bb&_u)!=0?this.p=new aSn(u(c,29),this):this.p=new lC(u(c,29),this)),this.p},o.rk=function(){return(this.Bb&Vs)!=0},o._k=function(){return!1},o.al=function(){return!1},o.sk=function(){return(this.Bb&mh)!=0},o.xk=function(){return Mx(this)},o.bl=function(){return!1},o.tk=function(){return(this.Bb&_u)!=0},o.cl=function(e){this.k=e},o.ui=function(e){VN(this,e)},o.Ib=function(){return BA(this)},o.e=!1,o.n=0;var lht=w(Jn,"EStructuralFeatureImpl",462);b(331,462,{110:1,94:1,93:1,35:1,155:1,197:1,58:1,179:1,69:1,114:1,481:1,54:1,99:1,331:1,158:1,462:1,292:1,119:1,120:1,692:1},yL),o.Lh=function(e,t,i){var r,c;switch(e){case 0:return!this.Ab&&(this.Ab=new G(nt,this,0,3)),this.Ab;case 1:return this.zb;case 2:return Wn(),(this.Bb&256)!=0;case 3:return Wn(),(this.Bb&512)!=0;case 4:return Z(this.s);case 5:return Z(this.t);case 6:return Wn(),!!Jnn(this);case 7:return Wn(),c=this.s,c>=1;case 8:return t?ks(this):this.r;case 9:return this.q;case 10:return Wn(),(this.Bb&Vs)!=0;case 11:return Wn(),(this.Bb&Mw)!=0;case 12:return Wn(),(this.Bb&pw)!=0;case 13:return this.j;case 14:return E4(this);case 15:return Wn(),(this.Bb&_u)!=0;case 16:return Wn(),(this.Bb&mh)!=0;case 17:return qb(this);case 18:return Wn(),(this.Bb&Ac)!=0;case 19:return t?Wx(this):ANn(this)}return Jo(this,e-ge((xn(),ng)),_n((r=u(Qn(this,16),29),r||ng),e),t,i)},o.Wh=function(e){var t,i;switch(e){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return(this.Bb&256)==0;case 3:return(this.Bb&512)==0;case 4:return this.s!=0;case 5:return this.t!=1;case 6:return Jnn(this);case 7:return i=this.s,i>=1;case 8:return!!this.r&&!this.q.e&&v0(this.q).i==0;case 9:return!!this.q&&!(this.r&&!this.q.e&&v0(this.q).i==0);case 10:return(this.Bb&Vs)==0;case 11:return(this.Bb&Mw)!=0;case 12:return(this.Bb&pw)!=0;case 13:return this.j!=null;case 14:return E4(this)!=null;case 15:return(this.Bb&_u)!=0;case 16:return(this.Bb&mh)!=0;case 17:return!!qb(this);case 18:return(this.Bb&Ac)!=0;case 19:return!!ANn(this)}return Wo(this,e-ge((xn(),ng)),_n((t=u(Qn(this,16),29),t||ng),e))},o.bi=function(e,t){var i,r;switch(e){case 0:!this.Ab&&(this.Ab=new G(nt,this,0,3)),Ae(this.Ab),!this.Ab&&(this.Ab=new G(nt,this,0,3)),Jt(this.Ab,u(t,16));return;case 1:VN(this,_e(t));return;case 2:s1(this,ln(hn(t)));return;case 3:f1(this,ln(hn(t)));return;case 4:r1(this,u(t,17).a);return;case 5:GEn(this,u(t,17).a);return;case 8:ld(this,u(t,142));return;case 9:r=Hf(this,u(t,89),null),r&&r.oj();return;case 10:u4(this,ln(hn(t)));return;case 11:f4(this,ln(hn(t)));return;case 12:o4(this,ln(hn(t)));return;case 13:OX(this,_e(t));return;case 15:s4(this,ln(hn(t)));return;case 16:h4(this,ln(hn(t)));return;case 18:kF(this,ln(hn(t)));return}ns(this,e-ge((xn(),ng)),_n((i=u(Qn(this,16),29),i||ng),e),t)},o.ii=function(){return xn(),ng},o.ki=function(e){var t,i;switch(e){case 0:!this.Ab&&(this.Ab=new G(nt,this,0,3)),Ae(this.Ab);return;case 1:L(this.Cb,90)&&sw(io(u(this.Cb,90)),4),nu(this,null);return;case 2:s1(this,!0);return;case 3:f1(this,!0);return;case 4:r1(this,0);return;case 5:this.b=0,Qb(this,1);return;case 8:ld(this,null);return;case 9:i=Hf(this,null,null),i&&i.oj();return;case 10:u4(this,!0);return;case 11:f4(this,!1);return;case 12:o4(this,!1);return;case 13:this.i=null,MT(this,null);return;case 15:s4(this,!1);return;case 16:h4(this,!1);return;case 18:kF(this,!1);return}Zo(this,e-ge((xn(),ng)),_n((t=u(Qn(this,16),29),t||ng),e))},o.pi=function(){Wx(this),T3(Br((Ru(),Zi),this)),ks(this),this.Bb|=1},o.Jk=function(){return Jnn(this)},o.Yk=function(e,t){return this.b=0,this.a=null,BY(this,e,t)},o.Zk=function(e){GEn(this,e)},o.Ib=function(){var e;return(this.Db&64)!=0?BA(this):(e=new ws(BA(this)),e.a+=" (iD: ",zl(e,(this.Bb&Ac)!=0),e.a+=")",e.a)},o.b=0;var aht=w(Jn,"EAttributeImpl",331);b(364,448,{110:1,94:1,93:1,142:1,155:1,197:1,58:1,114:1,54:1,99:1,364:1,158:1,119:1,120:1,691:1}),o.dl=function(e){return e.Dh()==this},o.Ah=function(e){return ZF(this,e)},o.Bh=function(e,t){this.w=null,this.Db=t<<16|this.Db&255,this.Cb=e},o.Lh=function(e,t,i){var r;switch(e){case 0:return!this.Ab&&(this.Ab=new G(nt,this,0,3)),this.Ab;case 1:return this.zb;case 2:return this.D!=null?this.D:this.B;case 3:return B0(this);case 4:return this.ik();case 5:return this.F;case 6:return t?To(this):I3(this);case 7:return!this.A&&(this.A=new Lu(gu,this,7)),this.A}return Jo(this,e-ge(this.ii()),_n((r=u(Qn(this,16),29),r||this.ii()),e),t,i)},o.Sh=function(e,t,i){var r,c,s;switch(t){case 0:return!this.Ab&&(this.Ab=new G(nt,this,0,3)),eu(this.Ab,e,i);case 6:return this.Cb&&(i=(c=this.Db>>16,c>=0?ZF(this,i):this.Cb.Th(this,-1-c,null,i))),Lo(this,e,6,i)}return s=u(_n((r=u(Qn(this,16),29),r||this.ii()),t),69),s.wk().zk(this,hu(this),t-ge(this.ii()),e,i)},o.Uh=function(e,t,i){var r,c;switch(t){case 0:return!this.Ab&&(this.Ab=new G(nt,this,0,3)),ar(this.Ab,e,i);case 6:return Lo(this,null,6,i);case 7:return!this.A&&(this.A=new Lu(gu,this,7)),ar(this.A,e,i)}return c=u(_n((r=u(Qn(this,16),29),r||this.ii()),t),69),c.wk().Ak(this,hu(this),t-ge(this.ii()),e,i)},o.Wh=function(e){var t;switch(e){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return this.D!=null&&this.D==this.F;case 3:return!!B0(this);case 4:return this.ik()!=null;case 5:return this.F!=null&&this.F!=this.D&&this.F!=this.B;case 6:return!!I3(this);case 7:return!!this.A&&this.A.i!=0}return Wo(this,e-ge(this.ii()),_n((t=u(Qn(this,16),29),t||this.ii()),e))},o.bi=function(e,t){var i;switch(e){case 0:!this.Ab&&(this.Ab=new G(nt,this,0,3)),Ae(this.Ab),!this.Ab&&(this.Ab=new G(nt,this,0,3)),Jt(this.Ab,u(t,16));return;case 1:KC(this,_e(t));return;case 2:AD(this,_e(t));return;case 5:P4(this,_e(t));return;case 7:!this.A&&(this.A=new Lu(gu,this,7)),Ae(this.A),!this.A&&(this.A=new Lu(gu,this,7)),Jt(this.A,u(t,16));return}ns(this,e-ge(this.ii()),_n((i=u(Qn(this,16),29),i||this.ii()),e),t)},o.ii=function(){return xn(),Dse},o.ki=function(e){var t;switch(e){case 0:!this.Ab&&(this.Ab=new G(nt,this,0,3)),Ae(this.Ab);return;case 1:L(this.Cb,184)&&(u(this.Cb,184).tb=null),nu(this,null);return;case 2:i4(this,null),H3(this,this.D);return;case 5:P4(this,null);return;case 7:!this.A&&(this.A=new Lu(gu,this,7)),Ae(this.A);return}Zo(this,e-ge(this.ii()),_n((t=u(Qn(this,16),29),t||this.ii()),e))},o.hk=function(){var e;return this.G==-1&&(this.G=(e=To(this),e?a1(e.vi(),this):-1)),this.G},o.ik=function(){return null},o.jk=function(){return To(this)},o.el=function(){return this.v},o.kk=function(){return B0(this)},o.lk=function(){return this.D!=null?this.D:this.B},o.mk=function(){return this.F},o.fk=function(e){return q$(this,e)},o.fl=function(e){this.v=e},o.gl=function(e){l$n(this,e)},o.hl=function(e){this.C=e},o.ui=function(e){KC(this,e)},o.Ib=function(){return WT(this)},o.C=null,o.D=null,o.G=-1;var dht=w(Jn,"EClassifierImpl",364);b(90,364,{110:1,94:1,93:1,29:1,142:1,155:1,197:1,58:1,114:1,54:1,99:1,90:1,364:1,158:1,482:1,119:1,120:1,691:1},jU),o.dl=function(e){return E0e(this,e.Dh())},o.Lh=function(e,t,i){var r;switch(e){case 0:return!this.Ab&&(this.Ab=new G(nt,this,0,3)),this.Ab;case 1:return this.zb;case 2:return this.D!=null?this.D:this.B;case 3:return B0(this);case 4:return null;case 5:return this.F;case 6:return t?To(this):I3(this);case 7:return!this.A&&(this.A=new Lu(gu,this,7)),this.A;case 8:return Wn(),(this.Bb&256)!=0;case 9:return Wn(),(this.Bb&512)!=0;case 10:return Wr(this);case 11:return!this.q&&(this.q=new G(Ls,this,11,10)),this.q;case 12:return Xg(this);case 13:return X5(this);case 14:return X5(this),this.r;case 15:return Xg(this),this.k;case 16:return Bnn(this);case 17:return X$(this);case 18:return vh(this);case 19:return PA(this);case 20:return Xg(this),this.o;case 21:return!this.s&&(this.s=new G(Tu,this,21,17)),this.s;case 22:return Fc(this);case 23:return D$(this)}return Jo(this,e-ge((xn(),Da)),_n((r=u(Qn(this,16),29),r||Da),e),t,i)},o.Sh=function(e,t,i){var r,c,s;switch(t){case 0:return!this.Ab&&(this.Ab=new G(nt,this,0,3)),eu(this.Ab,e,i);case 6:return this.Cb&&(i=(c=this.Db>>16,c>=0?ZF(this,i):this.Cb.Th(this,-1-c,null,i))),Lo(this,e,6,i);case 11:return!this.q&&(this.q=new G(Ls,this,11,10)),eu(this.q,e,i);case 21:return!this.s&&(this.s=new G(Tu,this,21,17)),eu(this.s,e,i)}return s=u(_n((r=u(Qn(this,16),29),r||(xn(),Da)),t),69),s.wk().zk(this,hu(this),t-ge((xn(),Da)),e,i)},o.Uh=function(e,t,i){var r,c;switch(t){case 0:return!this.Ab&&(this.Ab=new G(nt,this,0,3)),ar(this.Ab,e,i);case 6:return Lo(this,null,6,i);case 7:return!this.A&&(this.A=new Lu(gu,this,7)),ar(this.A,e,i);case 11:return!this.q&&(this.q=new G(Ls,this,11,10)),ar(this.q,e,i);case 21:return!this.s&&(this.s=new G(Tu,this,21,17)),ar(this.s,e,i);case 22:return ar(Fc(this),e,i)}return c=u(_n((r=u(Qn(this,16),29),r||(xn(),Da)),t),69),c.wk().Ak(this,hu(this),t-ge((xn(),Da)),e,i)},o.Wh=function(e){var t;switch(e){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return this.D!=null&&this.D==this.F;case 3:return!!B0(this);case 4:return!1;case 5:return this.F!=null&&this.F!=this.D&&this.F!=this.B;case 6:return!!I3(this);case 7:return!!this.A&&this.A.i!=0;case 8:return(this.Bb&256)!=0;case 9:return(this.Bb&512)!=0;case 10:return!!this.u&&Fc(this.u.a).i!=0&&!(this.n&&HF(this.n));case 11:return!!this.q&&this.q.i!=0;case 12:return Xg(this).i!=0;case 13:return X5(this).i!=0;case 14:return X5(this),this.r.i!=0;case 15:return Xg(this),this.k.i!=0;case 16:return Bnn(this).i!=0;case 17:return X$(this).i!=0;case 18:return vh(this).i!=0;case 19:return PA(this).i!=0;case 20:return Xg(this),!!this.o;case 21:return!!this.s&&this.s.i!=0;case 22:return!!this.n&&HF(this.n);case 23:return D$(this).i!=0}return Wo(this,e-ge((xn(),Da)),_n((t=u(Qn(this,16),29),t||Da),e))},o.Zh=function(e){var t;return t=this.i==null||this.q&&this.q.i!=0?null:fy(this,e),t||ytn(this,e)},o.bi=function(e,t){var i;switch(e){case 0:!this.Ab&&(this.Ab=new G(nt,this,0,3)),Ae(this.Ab),!this.Ab&&(this.Ab=new G(nt,this,0,3)),Jt(this.Ab,u(t,16));return;case 1:KC(this,_e(t));return;case 2:AD(this,_e(t));return;case 5:P4(this,_e(t));return;case 7:!this.A&&(this.A=new Lu(gu,this,7)),Ae(this.A),!this.A&&(this.A=new Lu(gu,this,7)),Jt(this.A,u(t,16));return;case 8:KY(this,ln(hn(t)));return;case 9:_Y(this,ln(hn(t)));return;case 10:J5(Wr(this)),Jt(Wr(this),u(t,16));return;case 11:!this.q&&(this.q=new G(Ls,this,11,10)),Ae(this.q),!this.q&&(this.q=new G(Ls,this,11,10)),Jt(this.q,u(t,16));return;case 21:!this.s&&(this.s=new G(Tu,this,21,17)),Ae(this.s),!this.s&&(this.s=new G(Tu,this,21,17)),Jt(this.s,u(t,16));return;case 22:Ae(Fc(this)),Jt(Fc(this),u(t,16));return}ns(this,e-ge((xn(),Da)),_n((i=u(Qn(this,16),29),i||Da),e),t)},o.ii=function(){return xn(),Da},o.ki=function(e){var t;switch(e){case 0:!this.Ab&&(this.Ab=new G(nt,this,0,3)),Ae(this.Ab);return;case 1:L(this.Cb,184)&&(u(this.Cb,184).tb=null),nu(this,null);return;case 2:i4(this,null),H3(this,this.D);return;case 5:P4(this,null);return;case 7:!this.A&&(this.A=new Lu(gu,this,7)),Ae(this.A);return;case 8:KY(this,!1);return;case 9:_Y(this,!1);return;case 10:this.u&&J5(this.u);return;case 11:!this.q&&(this.q=new G(Ls,this,11,10)),Ae(this.q);return;case 21:!this.s&&(this.s=new G(Tu,this,21,17)),Ae(this.s);return;case 22:this.n&&Ae(this.n);return}Zo(this,e-ge((xn(),Da)),_n((t=u(Qn(this,16),29),t||Da),e))},o.pi=function(){var e,t;if(Xg(this),X5(this),Bnn(this),X$(this),vh(this),PA(this),D$(this),t5(Vwe(io(this))),this.s)for(e=0,t=this.s.i;e=0;--t)D(this,t);return lZ(this,e)},o.Gk=function(){Ae(this)},o.Zi=function(e,t){return DFn(this,e,t)};var ght=w($t,"EcoreEList",632);b(505,632,ic,_7),o.Li=function(){return!1},o.Lj=function(){return this.c},o.Mj=function(){return!1},o.ol=function(){return!0},o.Si=function(){return!0},o.Wi=function(e,t){return t},o.Yi=function(){return!1},o.c=0;var pht=w($t,"EObjectEList",505);b(83,505,ic,hi),o.Mj=function(){return!0},o.ml=function(){return!1},o.al=function(){return!0};var vht=w($t,"EObjectContainmentEList",83);b(555,83,ic,BM),o.Ni=function(){this.b=!0},o.Qj=function(){return this.b},o.Gk=function(){var e;Ae(this),bo(this.e)?(e=this.b,this.b=!1,bt(this.e,new qs(this.e,2,this.c,e,!1))):this.b=!1},o.b=!1;var mht=w($t,"EObjectContainmentEList/Unsettable",555);b(1161,555,ic,sPn),o.Ti=function(e,t){var i,r;return i=u(y5(this,e,t),89),bo(this.e)&&Zv(this,new fk(this.a,7,(xn(),Nse),Z(t),(r=i.c,L(r,90)?u(r,29):Ns),e)),i},o.Uj=function(e,t){return g7e(this,u(e,89),t)},o.Vj=function(e,t){return w7e(this,u(e,89),t)},o.Wj=function(e,t,i){return mje(this,u(e,89),u(t,89),i)},o.Ij=function(e,t,i,r,c){switch(e){case 3:return J6(this,e,t,i,r,this.i>1);case 5:return J6(this,e,t,i,r,this.i-u(i,15).gc()>0);default:return new yl(this.e,e,this.c,t,i,r,!0)}},o.Tj=function(){return!0},o.Qj=function(){return HF(this)},o.Gk=function(){Ae(this)};var kht=w(Jn,"EClassImpl/1",1161);b(1175,1174,cun),o.dj=function(e){var t,i,r,c,s,f,h;if(i=e.gj(),i!=8){if(r=Q7e(e),r==0)switch(i){case 1:case 9:{h=e.kj(),h!=null&&(t=io(u(h,482)),!t.c&&(t.c=new zv),sT(t.c,e.jj())),f=e.ij(),f!=null&&(c=u(f,482),(c.Bb&1)==0&&(t=io(c),!t.c&&(t.c=new zv),Se(t.c,u(e.jj(),29))));break}case 3:{f=e.ij(),f!=null&&(c=u(f,482),(c.Bb&1)==0&&(t=io(c),!t.c&&(t.c=new zv),Se(t.c,u(e.jj(),29))));break}case 5:{if(f=e.ij(),f!=null)for(s=u(f,16).Kc();s.Ob();)c=u(s.Pb(),482),(c.Bb&1)==0&&(t=io(c),!t.c&&(t.c=new zv),Se(t.c,u(e.jj(),29)));break}case 4:{h=e.kj(),h!=null&&(c=u(h,482),(c.Bb&1)==0&&(t=io(c),!t.c&&(t.c=new zv),sT(t.c,e.jj())));break}case 6:{if(h=e.kj(),h!=null)for(s=u(h,16).Kc();s.Ob();)c=u(s.Pb(),482),(c.Bb&1)==0&&(t=io(c),!t.c&&(t.c=new zv),sT(t.c,e.jj()));break}}this.ql(r)}},o.ql=function(e){NGn(this,e)},o.b=63;var yht=w(Jn,"ESuperAdapter",1175);b(1176,1175,cun,sjn),o.ql=function(e){sw(this,e)};var jht=w(Jn,"EClassImpl/10",1176);b(1165,710,ic),o.Ei=function(e,t){return l$(this,e,t)},o.Fi=function(e){return EKn(this,e)},o.Gi=function(e,t){Fk(this,e,t)},o.Hi=function(e){ck(this,e)},o.$i=function(e){return gQ(this,e)},o.Xi=function(e,t){return Cx(this,e,t)},o.Wk=function(e,t){throw C(new Be)},o.Ii=function(){return new mp(this)},o.Ji=function(){return new I7(this)},o.Ki=function(e){return yk(this,e)},o.Xk=function(e,t){throw C(new Be)},o.Fk=function(e){return this},o.Qj=function(){return this.i!=0},o.Wb=function(e){throw C(new Be)},o.Gk=function(){throw C(new Be)};var Eht=w($t,"EcoreEList/UnmodifiableEList",1165);b(328,1165,ic,bg),o.Yi=function(){return!1};var Mht=w($t,"EcoreEList/UnmodifiableEList/FastCompare",328);b(1168,328,ic,rRn),o.dd=function(e){var t,i,r;if(L(e,179)&&(t=u(e,179),i=t.Lj(),i!=-1)){for(r=this.i;i4)if(this.fk(e)){if(this.al()){if(r=u(e,54),i=r.Eh(),h=i==this.b&&(this.ml()?r.yh(r.Fh(),u(_n(vu(this.b),this.Lj()).Hk(),29).kk())==jr(u(_n(vu(this.b),this.Lj()),19)).n:-1-r.Fh()==this.Lj()),this.nl()&&!h&&!i&&r.Jh()){for(c=0;c1||r==-1)):!1},o.ml=function(){var e,t,i;return t=_n(vu(this.b),this.Lj()),L(t,102)?(e=u(t,19),i=jr(e),!!i):!1},o.nl=function(){var e,t;return t=_n(vu(this.b),this.Lj()),L(t,102)?(e=u(t,19),(e.Bb&pr)!=0):!1},o.dd=function(e){var t,i,r,c;if(r=this.zj(e),r>=0)return r;if(this.ol()){for(i=0,c=this.Ej();i=0;--e)my(this,e,this.xj(e));return this.Fj()},o.Qc=function(e){var t;if(this.nl())for(t=this.Ej()-1;t>=0;--t)my(this,t,this.xj(t));return this.Gj(e)},o.Gk=function(){J5(this)},o.Zi=function(e,t){return hxn(this,e,t)};var Fht=w($t,"DelegatingEcoreEList",756);b(1171,756,fun,MSn),o.qj=function(e,t){Xde(this,e,u(t,29))},o.rj=function(e){xae(this,u(e,29))},o.xj=function(e){var t,i;return t=u(D(Fc(this.a),e),89),i=t.c,L(i,90)?u(i,29):(xn(),Ns)},o.Cj=function(e){var t,i;return t=u(lw(Fc(this.a),e),89),i=t.c,L(i,90)?u(i,29):(xn(),Ns)},o.Dj=function(e,t){return Gke(this,e,u(t,29))},o.Li=function(){return!1},o.Ij=function(e,t,i,r,c){return null},o.sj=function(){return new ljn(this)},o.tj=function(){Ae(Fc(this.a))},o.uj=function(e){return nBn(this,e)},o.vj=function(e){var t,i;for(i=e.Kc();i.Ob();)if(t=i.Pb(),!nBn(this,t))return!1;return!0},o.wj=function(e){var t,i,r;if(L(e,15)&&(r=u(e,15),r.gc()==Fc(this.a).i)){for(t=r.Kc(),i=new oe(this);t.Ob();)if(F(t.Pb())!==F(be(i)))return!1;return!0}return!1},o.yj=function(){var e,t,i,r,c;for(i=1,t=new oe(Fc(this.a));t.e!=t.i.gc();)e=u(be(t),89),r=(c=e.c,L(c,90)?u(c,29):(xn(),Ns)),i=31*i+(r?h0(r):0);return i},o.zj=function(e){var t,i,r,c;for(r=0,i=new oe(Fc(this.a));i.e!=i.i.gc();){if(t=u(be(i),89),F(e)===F((c=t.c,L(c,90)?u(c,29):(xn(),Ns))))return r;++r}return-1},o.Aj=function(){return Fc(this.a).i==0},o.Bj=function(){return null},o.Ej=function(){return Fc(this.a).i},o.Fj=function(){var e,t,i,r,c,s;for(s=Fc(this.a).i,c=_(Ii,Gn,1,s,5,1),i=0,t=new oe(Fc(this.a));t.e!=t.i.gc();)e=u(be(t),89),c[i++]=(r=e.c,L(r,90)?u(r,29):(xn(),Ns));return c},o.Gj=function(e){var t,i,r,c,s,f,h;for(h=Fc(this.a).i,e.lengthh&&zt(e,h,null),r=0,i=new oe(Fc(this.a));i.e!=i.i.gc();)t=u(be(i),89),s=(f=t.c,L(f,90)?u(f,29):(xn(),Ns)),zt(e,r++,s);return e},o.Hj=function(){var e,t,i,r,c;for(c=new Ul,c.a+="[",e=Fc(this.a),t=0,r=Fc(this.a).i;t>16,c>=0?ZF(this,i):this.Cb.Th(this,-1-c,null,i))),Lo(this,e,6,i);case 9:return!this.a&&(this.a=new G(_l,this,9,5)),eu(this.a,e,i)}return s=u(_n((r=u(Qn(this,16),29),r||(xn(),Na)),t),69),s.wk().zk(this,hu(this),t-ge((xn(),Na)),e,i)},o.Uh=function(e,t,i){var r,c;switch(t){case 0:return!this.Ab&&(this.Ab=new G(nt,this,0,3)),ar(this.Ab,e,i);case 6:return Lo(this,null,6,i);case 7:return!this.A&&(this.A=new Lu(gu,this,7)),ar(this.A,e,i);case 9:return!this.a&&(this.a=new G(_l,this,9,5)),ar(this.a,e,i)}return c=u(_n((r=u(Qn(this,16),29),r||(xn(),Na)),t),69),c.wk().Ak(this,hu(this),t-ge((xn(),Na)),e,i)},o.Wh=function(e){var t;switch(e){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return this.D!=null&&this.D==this.F;case 3:return!!B0(this);case 4:return!!SY(this);case 5:return this.F!=null&&this.F!=this.D&&this.F!=this.B;case 6:return!!I3(this);case 7:return!!this.A&&this.A.i!=0;case 8:return(this.Bb&256)==0;case 9:return!!this.a&&this.a.i!=0}return Wo(this,e-ge((xn(),Na)),_n((t=u(Qn(this,16),29),t||Na),e))},o.bi=function(e,t){var i;switch(e){case 0:!this.Ab&&(this.Ab=new G(nt,this,0,3)),Ae(this.Ab),!this.Ab&&(this.Ab=new G(nt,this,0,3)),Jt(this.Ab,u(t,16));return;case 1:KC(this,_e(t));return;case 2:AD(this,_e(t));return;case 5:P4(this,_e(t));return;case 7:!this.A&&(this.A=new Lu(gu,this,7)),Ae(this.A),!this.A&&(this.A=new Lu(gu,this,7)),Jt(this.A,u(t,16));return;case 8:HT(this,ln(hn(t)));return;case 9:!this.a&&(this.a=new G(_l,this,9,5)),Ae(this.a),!this.a&&(this.a=new G(_l,this,9,5)),Jt(this.a,u(t,16));return}ns(this,e-ge((xn(),Na)),_n((i=u(Qn(this,16),29),i||Na),e),t)},o.ii=function(){return xn(),Na},o.ki=function(e){var t;switch(e){case 0:!this.Ab&&(this.Ab=new G(nt,this,0,3)),Ae(this.Ab);return;case 1:L(this.Cb,184)&&(u(this.Cb,184).tb=null),nu(this,null);return;case 2:i4(this,null),H3(this,this.D);return;case 5:P4(this,null);return;case 7:!this.A&&(this.A=new Lu(gu,this,7)),Ae(this.A);return;case 8:HT(this,!0);return;case 9:!this.a&&(this.a=new G(_l,this,9,5)),Ae(this.a);return}Zo(this,e-ge((xn(),Na)),_n((t=u(Qn(this,16),29),t||Na),e))},o.pi=function(){var e,t;if(this.a)for(e=0,t=this.a.i;e>16==5?u(this.Cb,685):null}return Jo(this,e-ge((xn(),O1)),_n((r=u(Qn(this,16),29),r||O1),e),t,i)},o.Sh=function(e,t,i){var r,c,s;switch(t){case 0:return!this.Ab&&(this.Ab=new G(nt,this,0,3)),eu(this.Ab,e,i);case 5:return this.Cb&&(i=(c=this.Db>>16,c>=0?JKn(this,i):this.Cb.Th(this,-1-c,null,i))),Lo(this,e,5,i)}return s=u(_n((r=u(Qn(this,16),29),r||(xn(),O1)),t),69),s.wk().zk(this,hu(this),t-ge((xn(),O1)),e,i)},o.Uh=function(e,t,i){var r,c;switch(t){case 0:return!this.Ab&&(this.Ab=new G(nt,this,0,3)),ar(this.Ab,e,i);case 5:return Lo(this,null,5,i)}return c=u(_n((r=u(Qn(this,16),29),r||(xn(),O1)),t),69),c.wk().Ak(this,hu(this),t-ge((xn(),O1)),e,i)},o.Wh=function(e){var t;switch(e){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return this.d!=0;case 3:return!!this.b;case 4:return this.c!=null;case 5:return!!(this.Db>>16==5&&u(this.Cb,685))}return Wo(this,e-ge((xn(),O1)),_n((t=u(Qn(this,16),29),t||O1),e))},o.bi=function(e,t){var i;switch(e){case 0:!this.Ab&&(this.Ab=new G(nt,this,0,3)),Ae(this.Ab),!this.Ab&&(this.Ab=new G(nt,this,0,3)),Jt(this.Ab,u(t,16));return;case 1:nu(this,_e(t));return;case 2:Ox(this,u(t,17).a);return;case 3:XHn(this,u(t,2039));return;case 4:Dx(this,_e(t));return}ns(this,e-ge((xn(),O1)),_n((i=u(Qn(this,16),29),i||O1),e),t)},o.ii=function(){return xn(),O1},o.ki=function(e){var t;switch(e){case 0:!this.Ab&&(this.Ab=new G(nt,this,0,3)),Ae(this.Ab);return;case 1:nu(this,null);return;case 2:Ox(this,0);return;case 3:XHn(this,null);return;case 4:Dx(this,null);return}Zo(this,e-ge((xn(),O1)),_n((t=u(Qn(this,16),29),t||O1),e))},o.Ib=function(){var e;return e=this.c,e??this.zb},o.b=null,o.c=null,o.d=0;var qht=w(Jn,"EEnumLiteralImpl",582),jFe=Ut(Jn,"EFactoryImpl/InternalEDateTimeFormat");b(499,1,{2114:1},Q9);var Ght=w(Jn,"EFactoryImpl/1ClientInternalEDateTimeFormat",499);b(248,120,{110:1,94:1,93:1,89:1,58:1,114:1,54:1,99:1,248:1,119:1,120:1},Vd),o.Ch=function(e,t,i){var r;return i=Lo(this,e,t,i),this.e&&L(e,179)&&(r=IA(this,this.e),r!=this.c&&(i=O4(this,r,i))),i},o.Lh=function(e,t,i){var r;switch(e){case 0:return this.f;case 1:return!this.d&&(this.d=new hi(Pr,this,1)),this.d;case 2:return t?HA(this):this.c;case 3:return this.b;case 4:return this.e;case 5:return t?UF(this):this.a}return Jo(this,e-ge((xn(),yb)),_n((r=u(Qn(this,16),29),r||yb),e),t,i)},o.Uh=function(e,t,i){var r,c;switch(t){case 0:return _Rn(this,null,i);case 1:return!this.d&&(this.d=new hi(Pr,this,1)),ar(this.d,e,i);case 3:return HRn(this,null,i)}return c=u(_n((r=u(Qn(this,16),29),r||(xn(),yb)),t),69),c.wk().Ak(this,hu(this),t-ge((xn(),yb)),e,i)},o.Wh=function(e){var t;switch(e){case 0:return!!this.f;case 1:return!!this.d&&this.d.i!=0;case 2:return!!this.c;case 3:return!!this.b;case 4:return!!this.e;case 5:return!!this.a}return Wo(this,e-ge((xn(),yb)),_n((t=u(Qn(this,16),29),t||yb),e))},o.bi=function(e,t){var i;switch(e){case 0:w_n(this,u(t,89));return;case 1:!this.d&&(this.d=new hi(Pr,this,1)),Ae(this.d),!this.d&&(this.d=new hi(Pr,this,1)),Jt(this.d,u(t,16));return;case 3:unn(this,u(t,89));return;case 4:Cnn(this,u(t,850));return;case 5:$3(this,u(t,142));return}ns(this,e-ge((xn(),yb)),_n((i=u(Qn(this,16),29),i||yb),e),t)},o.ii=function(){return xn(),yb},o.ki=function(e){var t;switch(e){case 0:w_n(this,null);return;case 1:!this.d&&(this.d=new hi(Pr,this,1)),Ae(this.d);return;case 3:unn(this,null);return;case 4:Cnn(this,null);return;case 5:$3(this,null);return}Zo(this,e-ge((xn(),yb)),_n((t=u(Qn(this,16),29),t||yb),e))},o.Ib=function(){var e;return e=new jo(zs(this)),e.a+=" (expression: ",Z$(this,e),e.a+=")",e.a};var u0n,Uht=w(Jn,"EGenericTypeImpl",248);b(2067,2062,JS),o.Gi=function(e,t){ySn(this,e,t)},o.Wk=function(e,t){return ySn(this,this.gc(),e),t},o.$i=function(e){return is(this.pj(),e)},o.Ii=function(){return this.Ji()},o.pj=function(){return new wjn(this)},o.Ji=function(){return this.Ki(0)},o.Ki=function(e){return this.pj().fd(e)},o.Xk=function(e,t){return ew(this,e,!0),t},o.Ti=function(e,t){var i,r;return r=t$(this,t),i=this.fd(e),i.Rb(r),r},o.Ui=function(e,t){var i;ew(this,t,!0),i=this.fd(e),i.Rb(t)};var zht=w($t,"AbstractSequentialInternalEList",2067);b(496,2067,JS,S7),o.$i=function(e){return is(this.pj(),e)},o.Ii=function(){return this.b==null?(Wl(),Wl(),wE):this.sl()},o.pj=function(){return new KTn(this.a,this.b)},o.Ji=function(){return this.b==null?(Wl(),Wl(),wE):this.sl()},o.Ki=function(e){var t,i;if(this.b==null){if(e<0||e>1)throw C(new Fr(k8+e+", size=0"));return Wl(),Wl(),wE}for(i=this.sl(),t=0;t0;)if(t=this.c[--this.d],(!this.e||t.pk()!=Km||t.Lj()!=0)&&(!this.vl()||this.b.Xh(t))){if(s=this.b.Nh(t,this.ul()),this.f=(yr(),u(t,69).xk()),this.f||t.Jk()){if(this.ul()?(r=u(s,15),this.k=r):(r=u(s,71),this.k=this.j=r),L(this.k,59)?(this.o=this.k.gc(),this.n=this.o):this.p=this.j?this.j.Ki(this.k.gc()):this.k.fd(this.k.gc()),this.p?fHn(this,this.p):kHn(this))return c=this.p?this.p.Ub():this.j?this.j.$i(--this.n):this.k.Xb(--this.n),this.f?(e=u(c,76),e.Lk(),i=e.md(),this.i=i):(i=c,this.i=i),this.g=-3,!0}else if(s!=null)return this.k=null,this.p=null,i=s,this.i=i,this.g=-2,!0}return this.k=null,this.p=null,this.g=-1,!1}else return c=this.p?this.p.Ub():this.j?this.j.$i(--this.n):this.k.Xb(--this.n),this.f?(e=u(c,76),e.Lk(),i=e.md(),this.i=i):(i=c,this.i=i),this.g=-3,!0}},o.Pb=function(){return DT(this)},o.Tb=function(){return this.a},o.Ub=function(){var e;if(this.g<-1||this.Sb())return--this.a,this.g=0,e=this.i,this.Sb(),e;throw C(new uc)},o.Vb=function(){return this.a-1},o.Qb=function(){throw C(new Be)},o.ul=function(){return!1},o.Wb=function(e){throw C(new Be)},o.vl=function(){return!0},o.a=0,o.d=0,o.f=!1,o.g=0,o.n=0,o.o=0;var wE,Vht=w($t,"EContentsEList/FeatureIteratorImpl",287);b(711,287,QS,gW),o.ul=function(){return!0};var Jht=w($t,"EContentsEList/ResolvingFeatureIteratorImpl",711);b(1178,711,QS,uSn),o.vl=function(){return!1};var Qht=w(Jn,"ENamedElementImpl/1/1",1178);b(1179,287,QS,oSn),o.vl=function(){return!1};var Yht=w(Jn,"ENamedElementImpl/1/2",1179);b(39,152,Qy,zb,tx,Di,px,yl,qs,IQ,KLn,PQ,_Ln,XJ,HLn,DQ,qLn,WJ,GLn,OQ,ULn,q6,fk,$N,LQ,zLn,VJ,XLn),o.Kj=function(){return aQ(this)},o.Rj=function(){var e;return e=aQ(this),e?e.ik():null},o.hj=function(e){return this.b==-1&&this.a&&(this.b=this.c.Hh(this.a.Lj(),this.a.pk())),this.c.yh(this.b,e)},o.jj=function(){return this.c},o.Sj=function(){var e;return e=aQ(this),e?e.tk():!1},o.b=-1;var Zht=w(Jn,"ENotificationImpl",39);b(411,292,{110:1,94:1,93:1,155:1,197:1,58:1,62:1,114:1,481:1,54:1,99:1,158:1,411:1,292:1,119:1,120:1},jL),o.Ah=function(e){return ZKn(this,e)},o.Lh=function(e,t,i){var r,c,s;switch(e){case 0:return!this.Ab&&(this.Ab=new G(nt,this,0,3)),this.Ab;case 1:return this.zb;case 2:return Wn(),(this.Bb&256)!=0;case 3:return Wn(),(this.Bb&512)!=0;case 4:return Z(this.s);case 5:return Z(this.t);case 6:return Wn(),s=this.t,s>1||s==-1;case 7:return Wn(),c=this.s,c>=1;case 8:return t?ks(this):this.r;case 9:return this.q;case 10:return this.Db>>16==10?u(this.Cb,29):null;case 11:return!this.d&&(this.d=new Lu(gu,this,11)),this.d;case 12:return!this.c&&(this.c=new G(kb,this,12,10)),this.c;case 13:return!this.a&&(this.a=new D7(this,this)),this.a;case 14:return ro(this)}return Jo(this,e-ge((xn(),L1)),_n((r=u(Qn(this,16),29),r||L1),e),t,i)},o.Sh=function(e,t,i){var r,c,s;switch(t){case 0:return!this.Ab&&(this.Ab=new G(nt,this,0,3)),eu(this.Ab,e,i);case 10:return this.Cb&&(i=(c=this.Db>>16,c>=0?ZKn(this,i):this.Cb.Th(this,-1-c,null,i))),Lo(this,e,10,i);case 12:return!this.c&&(this.c=new G(kb,this,12,10)),eu(this.c,e,i)}return s=u(_n((r=u(Qn(this,16),29),r||(xn(),L1)),t),69),s.wk().zk(this,hu(this),t-ge((xn(),L1)),e,i)},o.Uh=function(e,t,i){var r,c;switch(t){case 0:return!this.Ab&&(this.Ab=new G(nt,this,0,3)),ar(this.Ab,e,i);case 9:return jN(this,i);case 10:return Lo(this,null,10,i);case 11:return!this.d&&(this.d=new Lu(gu,this,11)),ar(this.d,e,i);case 12:return!this.c&&(this.c=new G(kb,this,12,10)),ar(this.c,e,i);case 14:return ar(ro(this),e,i)}return c=u(_n((r=u(Qn(this,16),29),r||(xn(),L1)),t),69),c.wk().Ak(this,hu(this),t-ge((xn(),L1)),e,i)},o.Wh=function(e){var t,i,r;switch(e){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return(this.Bb&256)==0;case 3:return(this.Bb&512)==0;case 4:return this.s!=0;case 5:return this.t!=1;case 6:return r=this.t,r>1||r==-1;case 7:return i=this.s,i>=1;case 8:return!!this.r&&!this.q.e&&v0(this.q).i==0;case 9:return!!this.q&&!(this.r&&!this.q.e&&v0(this.q).i==0);case 10:return!!(this.Db>>16==10&&u(this.Cb,29));case 11:return!!this.d&&this.d.i!=0;case 12:return!!this.c&&this.c.i!=0;case 13:return!!this.a&&ro(this.a.a).i!=0&&!(this.b&&qF(this.b));case 14:return!!this.b&&qF(this.b)}return Wo(this,e-ge((xn(),L1)),_n((t=u(Qn(this,16),29),t||L1),e))},o.bi=function(e,t){var i,r;switch(e){case 0:!this.Ab&&(this.Ab=new G(nt,this,0,3)),Ae(this.Ab),!this.Ab&&(this.Ab=new G(nt,this,0,3)),Jt(this.Ab,u(t,16));return;case 1:nu(this,_e(t));return;case 2:s1(this,ln(hn(t)));return;case 3:f1(this,ln(hn(t)));return;case 4:r1(this,u(t,17).a);return;case 5:Qb(this,u(t,17).a);return;case 8:ld(this,u(t,142));return;case 9:r=Hf(this,u(t,89),null),r&&r.oj();return;case 11:!this.d&&(this.d=new Lu(gu,this,11)),Ae(this.d),!this.d&&(this.d=new Lu(gu,this,11)),Jt(this.d,u(t,16));return;case 12:!this.c&&(this.c=new G(kb,this,12,10)),Ae(this.c),!this.c&&(this.c=new G(kb,this,12,10)),Jt(this.c,u(t,16));return;case 13:!this.a&&(this.a=new D7(this,this)),J5(this.a),!this.a&&(this.a=new D7(this,this)),Jt(this.a,u(t,16));return;case 14:Ae(ro(this)),Jt(ro(this),u(t,16));return}ns(this,e-ge((xn(),L1)),_n((i=u(Qn(this,16),29),i||L1),e),t)},o.ii=function(){return xn(),L1},o.ki=function(e){var t,i;switch(e){case 0:!this.Ab&&(this.Ab=new G(nt,this,0,3)),Ae(this.Ab);return;case 1:nu(this,null);return;case 2:s1(this,!0);return;case 3:f1(this,!0);return;case 4:r1(this,0);return;case 5:Qb(this,1);return;case 8:ld(this,null);return;case 9:i=Hf(this,null,null),i&&i.oj();return;case 11:!this.d&&(this.d=new Lu(gu,this,11)),Ae(this.d);return;case 12:!this.c&&(this.c=new G(kb,this,12,10)),Ae(this.c);return;case 13:this.a&&J5(this.a);return;case 14:this.b&&Ae(this.b);return}Zo(this,e-ge((xn(),L1)),_n((t=u(Qn(this,16),29),t||L1),e))},o.pi=function(){var e,t;if(this.c)for(e=0,t=this.c.i;eh&&zt(e,h,null),r=0,i=new oe(ro(this.a));i.e!=i.i.gc();)t=u(be(i),89),s=(f=t.c,f||(xn(),ih)),zt(e,r++,s);return e},o.Hj=function(){var e,t,i,r,c;for(c=new Ul,c.a+="[",e=ro(this.a),t=0,r=ro(this.a).i;t1);case 5:return J6(this,e,t,i,r,this.i-u(i,15).gc()>0);default:return new yl(this.e,e,this.c,t,i,r,!0)}},o.Tj=function(){return!0},o.Qj=function(){return qF(this)},o.Gk=function(){Ae(this)};var ilt=w(Jn,"EOperationImpl/2",1377);b(507,1,{2037:1,507:1},ETn);var rlt=w(Jn,"EPackageImpl/1",507);b(14,83,ic,G),o.il=function(){return this.d},o.jl=function(){return this.b},o.ml=function(){return!0},o.b=0;var clt=w($t,"EObjectContainmentWithInverseEList",14);b(365,14,ic,kp),o.nl=function(){return!0},o.Wi=function(e,t){return Zp(this,e,u(t,58))};var ult=w($t,"EObjectContainmentWithInverseEList/Resolving",365);b(308,365,ic,Kb),o.Ni=function(){this.a.tb=null};var olt=w(Jn,"EPackageImpl/2",308);b(1278,1,{},b6n);var slt=w(Jn,"EPackageImpl/3",1278);b(733,45,Qg,vz),o._b=function(e){return Fi(e)?BN(this,e):!!Er(this.f,e)};var flt=w(Jn,"EPackageRegistryImpl",733);b(518,292,{110:1,94:1,93:1,155:1,197:1,58:1,2116:1,114:1,481:1,54:1,99:1,158:1,518:1,292:1,119:1,120:1},EL),o.Ah=function(e){return n_n(this,e)},o.Lh=function(e,t,i){var r,c,s;switch(e){case 0:return!this.Ab&&(this.Ab=new G(nt,this,0,3)),this.Ab;case 1:return this.zb;case 2:return Wn(),(this.Bb&256)!=0;case 3:return Wn(),(this.Bb&512)!=0;case 4:return Z(this.s);case 5:return Z(this.t);case 6:return Wn(),s=this.t,s>1||s==-1;case 7:return Wn(),c=this.s,c>=1;case 8:return t?ks(this):this.r;case 9:return this.q;case 10:return this.Db>>16==10?u(this.Cb,62):null}return Jo(this,e-ge((xn(),eg)),_n((r=u(Qn(this,16),29),r||eg),e),t,i)},o.Sh=function(e,t,i){var r,c,s;switch(t){case 0:return!this.Ab&&(this.Ab=new G(nt,this,0,3)),eu(this.Ab,e,i);case 10:return this.Cb&&(i=(c=this.Db>>16,c>=0?n_n(this,i):this.Cb.Th(this,-1-c,null,i))),Lo(this,e,10,i)}return s=u(_n((r=u(Qn(this,16),29),r||(xn(),eg)),t),69),s.wk().zk(this,hu(this),t-ge((xn(),eg)),e,i)},o.Uh=function(e,t,i){var r,c;switch(t){case 0:return!this.Ab&&(this.Ab=new G(nt,this,0,3)),ar(this.Ab,e,i);case 9:return jN(this,i);case 10:return Lo(this,null,10,i)}return c=u(_n((r=u(Qn(this,16),29),r||(xn(),eg)),t),69),c.wk().Ak(this,hu(this),t-ge((xn(),eg)),e,i)},o.Wh=function(e){var t,i,r;switch(e){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return(this.Bb&256)==0;case 3:return(this.Bb&512)==0;case 4:return this.s!=0;case 5:return this.t!=1;case 6:return r=this.t,r>1||r==-1;case 7:return i=this.s,i>=1;case 8:return!!this.r&&!this.q.e&&v0(this.q).i==0;case 9:return!!this.q&&!(this.r&&!this.q.e&&v0(this.q).i==0);case 10:return!!(this.Db>>16==10&&u(this.Cb,62))}return Wo(this,e-ge((xn(),eg)),_n((t=u(Qn(this,16),29),t||eg),e))},o.ii=function(){return xn(),eg};var hlt=w(Jn,"EParameterImpl",518);b(102,462,{110:1,94:1,93:1,155:1,197:1,58:1,19:1,179:1,69:1,114:1,481:1,54:1,99:1,158:1,102:1,462:1,292:1,119:1,120:1,692:1},yW),o.Lh=function(e,t,i){var r,c,s,f;switch(e){case 0:return!this.Ab&&(this.Ab=new G(nt,this,0,3)),this.Ab;case 1:return this.zb;case 2:return Wn(),(this.Bb&256)!=0;case 3:return Wn(),(this.Bb&512)!=0;case 4:return Z(this.s);case 5:return Z(this.t);case 6:return Wn(),f=this.t,f>1||f==-1;case 7:return Wn(),c=this.s,c>=1;case 8:return t?ks(this):this.r;case 9:return this.q;case 10:return Wn(),(this.Bb&Vs)!=0;case 11:return Wn(),(this.Bb&Mw)!=0;case 12:return Wn(),(this.Bb&pw)!=0;case 13:return this.j;case 14:return E4(this);case 15:return Wn(),(this.Bb&_u)!=0;case 16:return Wn(),(this.Bb&mh)!=0;case 17:return qb(this);case 18:return Wn(),(this.Bb&Ac)!=0;case 19:return Wn(),s=jr(this),!!(s&&(s.Bb&Ac)!=0);case 20:return Wn(),(this.Bb&pr)!=0;case 21:return t?jr(this):this.b;case 22:return t?vY(this):pNn(this);case 23:return!this.a&&(this.a=new kg(Yw,this,23)),this.a}return Jo(this,e-ge((xn(),_2)),_n((r=u(Qn(this,16),29),r||_2),e),t,i)},o.Wh=function(e){var t,i,r,c;switch(e){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return(this.Bb&256)==0;case 3:return(this.Bb&512)==0;case 4:return this.s!=0;case 5:return this.t!=1;case 6:return c=this.t,c>1||c==-1;case 7:return i=this.s,i>=1;case 8:return!!this.r&&!this.q.e&&v0(this.q).i==0;case 9:return!!this.q&&!(this.r&&!this.q.e&&v0(this.q).i==0);case 10:return(this.Bb&Vs)==0;case 11:return(this.Bb&Mw)!=0;case 12:return(this.Bb&pw)!=0;case 13:return this.j!=null;case 14:return E4(this)!=null;case 15:return(this.Bb&_u)!=0;case 16:return(this.Bb&mh)!=0;case 17:return!!qb(this);case 18:return(this.Bb&Ac)!=0;case 19:return r=jr(this),!!r&&(r.Bb&Ac)!=0;case 20:return(this.Bb&pr)==0;case 21:return!!this.b;case 22:return!!pNn(this);case 23:return!!this.a&&this.a.i!=0}return Wo(this,e-ge((xn(),_2)),_n((t=u(Qn(this,16),29),t||_2),e))},o.bi=function(e,t){var i,r;switch(e){case 0:!this.Ab&&(this.Ab=new G(nt,this,0,3)),Ae(this.Ab),!this.Ab&&(this.Ab=new G(nt,this,0,3)),Jt(this.Ab,u(t,16));return;case 1:VN(this,_e(t));return;case 2:s1(this,ln(hn(t)));return;case 3:f1(this,ln(hn(t)));return;case 4:r1(this,u(t,17).a);return;case 5:Qb(this,u(t,17).a);return;case 8:ld(this,u(t,142));return;case 9:r=Hf(this,u(t,89),null),r&&r.oj();return;case 10:u4(this,ln(hn(t)));return;case 11:f4(this,ln(hn(t)));return;case 12:o4(this,ln(hn(t)));return;case 13:OX(this,_e(t));return;case 15:s4(this,ln(hn(t)));return;case 16:h4(this,ln(hn(t)));return;case 18:gve(this,ln(hn(t)));return;case 20:JY(this,ln(hn(t)));return;case 21:WQ(this,u(t,19));return;case 23:!this.a&&(this.a=new kg(Yw,this,23)),Ae(this.a),!this.a&&(this.a=new kg(Yw,this,23)),Jt(this.a,u(t,16));return}ns(this,e-ge((xn(),_2)),_n((i=u(Qn(this,16),29),i||_2),e),t)},o.ii=function(){return xn(),_2},o.ki=function(e){var t,i;switch(e){case 0:!this.Ab&&(this.Ab=new G(nt,this,0,3)),Ae(this.Ab);return;case 1:L(this.Cb,90)&&sw(io(u(this.Cb,90)),4),nu(this,null);return;case 2:s1(this,!0);return;case 3:f1(this,!0);return;case 4:r1(this,0);return;case 5:Qb(this,1);return;case 8:ld(this,null);return;case 9:i=Hf(this,null,null),i&&i.oj();return;case 10:u4(this,!0);return;case 11:f4(this,!1);return;case 12:o4(this,!1);return;case 13:this.i=null,MT(this,null);return;case 15:s4(this,!1);return;case 16:h4(this,!1);return;case 18:VY(this,!1),L(this.Cb,90)&&sw(io(u(this.Cb,90)),2);return;case 20:JY(this,!0);return;case 21:WQ(this,null);return;case 23:!this.a&&(this.a=new kg(Yw,this,23)),Ae(this.a);return}Zo(this,e-ge((xn(),_2)),_n((t=u(Qn(this,16),29),t||_2),e))},o.pi=function(){vY(this),T3(Br((Ru(),Zi),this)),ks(this),this.Bb|=1},o.uk=function(){return jr(this)},o._k=function(){var e;return e=jr(this),!!e&&(e.Bb&Ac)!=0},o.al=function(){return(this.Bb&Ac)!=0},o.bl=function(){return(this.Bb&pr)!=0},o.Yk=function(e,t){return this.c=null,BY(this,e,t)},o.Ib=function(){var e;return(this.Db&64)!=0?BA(this):(e=new ws(BA(this)),e.a+=" (containment: ",zl(e,(this.Bb&Ac)!=0),e.a+=", resolveProxies: ",zl(e,(this.Bb&pr)!=0),e.a+=")",e.a)};var llt=w(Jn,"EReferenceImpl",102);b(561,120,{110:1,44:1,94:1,93:1,136:1,58:1,114:1,54:1,99:1,561:1,119:1,120:1},w6n),o.Fb=function(e){return this===e},o.ld=function(){return this.b},o.md=function(){return this.c},o.Hb=function(){return h0(this)},o.Di=function(e){yge(this,_e(e))},o.nd=function(e){return uge(this,_e(e))},o.Lh=function(e,t,i){var r;switch(e){case 0:return this.b;case 1:return this.c}return Jo(this,e-ge((xn(),mr)),_n((r=u(Qn(this,16),29),r||mr),e),t,i)},o.Wh=function(e){var t;switch(e){case 0:return this.b!=null;case 1:return this.c!=null}return Wo(this,e-ge((xn(),mr)),_n((t=u(Qn(this,16),29),t||mr),e))},o.bi=function(e,t){var i;switch(e){case 0:jge(this,_e(t));return;case 1:UQ(this,_e(t));return}ns(this,e-ge((xn(),mr)),_n((i=u(Qn(this,16),29),i||mr),e),t)},o.ii=function(){return xn(),mr},o.ki=function(e){var t;switch(e){case 0:GQ(this,null);return;case 1:UQ(this,null);return}Zo(this,e-ge((xn(),mr)),_n((t=u(Qn(this,16),29),t||mr),e))},o.Bi=function(){var e;return this.a==-1&&(e=this.b,this.a=e==null?0:c1(e)),this.a},o.Ci=function(e){this.a=e},o.Ib=function(){var e;return(this.Db&64)!=0?zs(this):(e=new ws(zs(this)),e.a+=" (key: ",Or(e,this.b),e.a+=", value: ",Or(e,this.c),e.a+=")",e.a)},o.a=-1,o.b=null,o.c=null;var Ec=w(Jn,"EStringToStringMapEntryImpl",561),Gse=Ut($t,"FeatureMap/Entry/Internal");b(576,1,YS),o.xl=function(e){return this.yl(u(e,54))},o.yl=function(e){return this.xl(e)},o.Fb=function(e){var t,i;return this===e?!0:L(e,76)?(t=u(e,76),t.Lk()==this.c?(i=this.md(),i==null?t.md()==null:wt(i,t.md())):!1):!1},o.Lk=function(){return this.c},o.Hb=function(){var e;return e=this.md(),It(this.c)^(e==null?0:It(e))},o.Ib=function(){var e,t;return e=this.c,t=To(e.qk()).yi(),e.xe(),(t!=null&&t.length!=0?t+":"+e.xe():e.xe())+"="+this.md()};var alt=w(Jn,"EStructuralFeatureImpl/BasicFeatureMapEntry",576);b(791,576,YS,PW),o.yl=function(e){return new PW(this.c,e)},o.md=function(){return this.a},o.zl=function(e,t,i){return c5e(this,e,this.a,t,i)},o.Al=function(e,t,i){return u5e(this,e,this.a,t,i)};var dlt=w(Jn,"EStructuralFeatureImpl/ContainmentUpdatingFeatureMapEntry",791);b(1350,1,{},MTn),o.yk=function(e,t,i,r,c){var s;return s=u(D3(e,this.b),220),s.Yl(this.a).Fk(r)},o.zk=function(e,t,i,r,c){var s;return s=u(D3(e,this.b),220),s.Pl(this.a,r,c)},o.Ak=function(e,t,i,r,c){var s;return s=u(D3(e,this.b),220),s.Ql(this.a,r,c)},o.Bk=function(e,t,i){var r;return r=u(D3(e,this.b),220),r.Yl(this.a).Qj()},o.Ck=function(e,t,i,r){var c;c=u(D3(e,this.b),220),c.Yl(this.a).Wb(r)},o.Dk=function(e,t,i){return u(D3(e,this.b),220).Yl(this.a)},o.Ek=function(e,t,i){var r;r=u(D3(e,this.b),220),r.Yl(this.a).Gk()};var blt=w(Jn,"EStructuralFeatureImpl/InternalSettingDelegateFeatureMapDelegator",1350);b(91,1,{},Jl,Ya,Yl,id),o.yk=function(e,t,i,r,c){var s;if(s=t.li(i),s==null&&t.mi(i,s=QA(this,e)),!c)switch(this.e){case 50:case 41:return u(s,597).bk();case 40:return u(s,220).Vl()}return s},o.zk=function(e,t,i,r,c){var s,f;return f=t.li(i),f==null&&t.mi(i,f=QA(this,e)),s=u(f,71).Wk(r,c),s},o.Ak=function(e,t,i,r,c){var s;return s=t.li(i),s!=null&&(c=u(s,71).Xk(r,c)),c},o.Bk=function(e,t,i){var r;return r=t.li(i),r!=null&&u(r,79).Qj()},o.Ck=function(e,t,i,r){var c;c=u(t.li(i),79),!c&&t.mi(i,c=QA(this,e)),c.Wb(r)},o.Dk=function(e,t,i){var r,c;return c=t.li(i),c==null&&t.mi(i,c=QA(this,e)),L(c,79)?u(c,79):(r=u(t.li(i),15),new djn(r))},o.Ek=function(e,t,i){var r;r=u(t.li(i),79),!r&&t.mi(i,r=QA(this,e)),r.Gk()},o.b=0,o.e=0;var wlt=w(Jn,"EStructuralFeatureImpl/InternalSettingDelegateMany",91);b(512,1,{}),o.zk=function(e,t,i,r,c){throw C(new Be)},o.Ak=function(e,t,i,r,c){throw C(new Be)},o.Dk=function(e,t,i){return new jOn(this,e,t,i)};var sl,glt=w(Jn,"EStructuralFeatureImpl/InternalSettingDelegateSingle",512);b(1367,1,RK,jOn),o.Fk=function(e){return this.a.yk(this.c,this.d,this.b,e,!0)},o.Qj=function(){return this.a.Bk(this.c,this.d,this.b)},o.Wb=function(e){this.a.Ck(this.c,this.d,this.b,e)},o.Gk=function(){this.a.Ek(this.c,this.d,this.b)},o.b=0;var plt=w(Jn,"EStructuralFeatureImpl/InternalSettingDelegateSingle/1",1367);b(784,512,{},vJ),o.yk=function(e,t,i,r,c){return B$(e,e.Ph(),e.Fh())==this.b?this.bl()&&r?C$(e):e.Ph():null},o.zk=function(e,t,i,r,c){var s,f;return e.Ph()&&(c=(s=e.Fh(),s>=0?e.Ah(c):e.Ph().Th(e,-1-s,null,c))),f=Ht(e.Dh(),this.e),e.Ch(r,f,c)},o.Ak=function(e,t,i,r,c){var s;return s=Ht(e.Dh(),this.e),e.Ch(null,s,c)},o.Bk=function(e,t,i){var r;return r=Ht(e.Dh(),this.e),!!e.Ph()&&e.Fh()==r},o.Ck=function(e,t,i,r){var c,s,f,h,l;if(r!=null&&!q$(this.a,r))throw C(new n3(ZS+(L(r,58)?cnn(u(r,58).Dh()):CQ(mo(r)))+nI+this.a+"'"));if(c=e.Ph(),f=Ht(e.Dh(),this.e),F(r)!==F(c)||e.Fh()!=f&&r!=null){if(w4(e,u(r,58)))throw C(new Yn(v8+e.Ib()));l=null,c&&(l=(s=e.Fh(),s>=0?e.Ah(l):e.Ph().Th(e,-1-s,null,l))),h=u(r,54),h&&(l=h.Rh(e,Ht(h.Dh(),this.b),null,l)),l=e.Ch(h,f,l),l&&l.oj()}else e.vh()&&e.wh()&&bt(e,new Di(e,1,f,r,r))},o.Ek=function(e,t,i){var r,c,s,f;r=e.Ph(),r?(f=(c=e.Fh(),c>=0?e.Ah(null):e.Ph().Th(e,-1-c,null,null)),s=Ht(e.Dh(),this.e),f=e.Ch(null,s,f),f&&f.oj()):e.vh()&&e.wh()&&bt(e,new q6(e,1,this.e,null,null))},o.bl=function(){return!1};var vlt=w(Jn,"EStructuralFeatureImpl/InternalSettingDelegateSingleContainer",784);b(1351,784,{},aIn),o.bl=function(){return!0};var mlt=w(Jn,"EStructuralFeatureImpl/InternalSettingDelegateSingleContainerResolving",1351);b(574,512,{}),o.yk=function(e,t,i,r,c){var s;return s=t.li(i),s==null?this.b:F(s)===F(sl)?null:s},o.Bk=function(e,t,i){var r;return r=t.li(i),r!=null&&(F(r)===F(sl)||!wt(r,this.b))},o.Ck=function(e,t,i,r){var c,s;e.vh()&&e.wh()?(c=(s=t.li(i),s==null?this.b:F(s)===F(sl)?null:s),r==null?this.c!=null?(t.mi(i,null),r=this.b):this.b!=null?t.mi(i,sl):t.mi(i,null):(this.Bl(r),t.mi(i,r)),bt(e,this.d.Cl(e,1,this.e,c,r))):r==null?this.c!=null?t.mi(i,null):this.b!=null?t.mi(i,sl):t.mi(i,null):(this.Bl(r),t.mi(i,r))},o.Ek=function(e,t,i){var r,c;e.vh()&&e.wh()?(r=(c=t.li(i),c==null?this.b:F(c)===F(sl)?null:c),t.ni(i),bt(e,this.d.Cl(e,1,this.e,r,this.b))):t.ni(i)},o.Bl=function(e){throw C(new Mjn)};var klt=w(Jn,"EStructuralFeatureImpl/InternalSettingDelegateSingleData",574);b(o2,1,{},g6n),o.Cl=function(e,t,i,r,c){return new q6(e,t,i,r,c)},o.Dl=function(e,t,i,r,c,s){return new $N(e,t,i,r,c,s)};var o0n,s0n,f0n,h0n,l0n,a0n,d0n,KG,b0n,ylt=w(Jn,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator",o2);b(1368,o2,{},p6n),o.Cl=function(e,t,i,r,c){return new VJ(e,t,i,ln(hn(r)),ln(hn(c)))},o.Dl=function(e,t,i,r,c,s){return new XLn(e,t,i,ln(hn(r)),ln(hn(c)),s)};var jlt=w(Jn,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/1",1368);b(1369,o2,{},v6n),o.Cl=function(e,t,i,r,c){return new IQ(e,t,i,u(r,222).a,u(c,222).a)},o.Dl=function(e,t,i,r,c,s){return new KLn(e,t,i,u(r,222).a,u(c,222).a,s)};var Elt=w(Jn,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/2",1369);b(1370,o2,{},m6n),o.Cl=function(e,t,i,r,c){return new PQ(e,t,i,u(r,180).a,u(c,180).a)},o.Dl=function(e,t,i,r,c,s){return new _Ln(e,t,i,u(r,180).a,u(c,180).a,s)};var Mlt=w(Jn,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/3",1370);b(1371,o2,{},k6n),o.Cl=function(e,t,i,r,c){return new XJ(e,t,i,x(K(r)),x(K(c)))},o.Dl=function(e,t,i,r,c,s){return new HLn(e,t,i,x(K(r)),x(K(c)),s)};var Clt=w(Jn,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/4",1371);b(1372,o2,{},y6n),o.Cl=function(e,t,i,r,c){return new DQ(e,t,i,u(r,161).a,u(c,161).a)},o.Dl=function(e,t,i,r,c,s){return new qLn(e,t,i,u(r,161).a,u(c,161).a,s)};var Tlt=w(Jn,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/5",1372);b(1373,o2,{},j6n),o.Cl=function(e,t,i,r,c){return new WJ(e,t,i,u(r,17).a,u(c,17).a)},o.Dl=function(e,t,i,r,c,s){return new GLn(e,t,i,u(r,17).a,u(c,17).a,s)};var Alt=w(Jn,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/6",1373);b(1374,o2,{},E6n),o.Cl=function(e,t,i,r,c){return new OQ(e,t,i,u(r,168).a,u(c,168).a)},o.Dl=function(e,t,i,r,c,s){return new ULn(e,t,i,u(r,168).a,u(c,168).a,s)};var Slt=w(Jn,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/7",1374);b(1375,o2,{},M6n),o.Cl=function(e,t,i,r,c){return new LQ(e,t,i,u(r,191).a,u(c,191).a)},o.Dl=function(e,t,i,r,c,s){return new zLn(e,t,i,u(r,191).a,u(c,191).a,s)};var Ilt=w(Jn,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/8",1375);b(1353,574,{},EOn),o.Bl=function(e){if(!this.a.fk(e))throw C(new n3(ZS+mo(e)+nI+this.a+"'"))};var Plt=w(Jn,"EStructuralFeatureImpl/InternalSettingDelegateSingleDataDynamic",1353);b(1354,574,{},hPn),o.Bl=function(e){};var Olt=w(Jn,"EStructuralFeatureImpl/InternalSettingDelegateSingleDataStatic",1354);b(785,574,{}),o.Bk=function(e,t,i){var r;return r=t.li(i),r!=null},o.Ck=function(e,t,i,r){var c,s;e.vh()&&e.wh()?(c=!0,s=t.li(i),s==null?(c=!1,s=this.b):F(s)===F(sl)&&(s=null),r==null?this.c!=null?(t.mi(i,null),r=this.b):t.mi(i,sl):(this.Bl(r),t.mi(i,r)),bt(e,this.d.Dl(e,1,this.e,s,r,!c))):r==null?this.c!=null?t.mi(i,null):t.mi(i,sl):(this.Bl(r),t.mi(i,r))},o.Ek=function(e,t,i){var r,c;e.vh()&&e.wh()?(r=!0,c=t.li(i),c==null?(r=!1,c=this.b):F(c)===F(sl)&&(c=null),t.ni(i),bt(e,this.d.Dl(e,2,this.e,c,this.b,r))):t.ni(i)};var Llt=w(Jn,"EStructuralFeatureImpl/InternalSettingDelegateSingleDataUnsettable",785);b(1355,785,{},MOn),o.Bl=function(e){if(!this.a.fk(e))throw C(new n3(ZS+mo(e)+nI+this.a+"'"))};var Dlt=w(Jn,"EStructuralFeatureImpl/InternalSettingDelegateSingleDataUnsettableDynamic",1355);b(1356,785,{},lPn),o.Bl=function(e){};var Nlt=w(Jn,"EStructuralFeatureImpl/InternalSettingDelegateSingleDataUnsettableStatic",1356);b(410,512,{},lC),o.yk=function(e,t,i,r,c){var s,f,h,l,a;if(a=t.li(i),this.tk()&&F(a)===F(sl))return null;if(this.bl()&&r&&a!=null){if(h=u(a,54),h.Vh()&&(l=ea(e,h),h!=l)){if(!q$(this.a,l))throw C(new n3(ZS+mo(l)+nI+this.a+"'"));t.mi(i,a=l),this.al()&&(s=u(l,54),f=h.Th(e,this.b?Ht(h.Dh(),this.b):-1-Ht(e.Dh(),this.e),null,null),!s.Ph()&&(f=s.Rh(e,this.b?Ht(s.Dh(),this.b):-1-Ht(e.Dh(),this.e),null,f)),f&&f.oj()),e.vh()&&e.wh()&&bt(e,new q6(e,9,this.e,h,l))}return a}else return a},o.zk=function(e,t,i,r,c){var s,f;return f=t.li(i),F(f)===F(sl)&&(f=null),t.mi(i,r),this.Mj()?F(f)!==F(r)&&f!=null&&(s=u(f,54),c=s.Th(e,Ht(s.Dh(),this.b),null,c)):this.al()&&f!=null&&(c=u(f,54).Th(e,-1-Ht(e.Dh(),this.e),null,c)),e.vh()&&e.wh()&&(!c&&(c=new $1(4)),c.nj(new q6(e,1,this.e,f,r))),c},o.Ak=function(e,t,i,r,c){var s;return s=t.li(i),F(s)===F(sl)&&(s=null),t.ni(i),e.vh()&&e.wh()&&(!c&&(c=new $1(4)),this.tk()?c.nj(new q6(e,2,this.e,s,null)):c.nj(new q6(e,1,this.e,s,null))),c},o.Bk=function(e,t,i){var r;return r=t.li(i),r!=null},o.Ck=function(e,t,i,r){var c,s,f,h,l;if(r!=null&&!q$(this.a,r))throw C(new n3(ZS+(L(r,58)?cnn(u(r,58).Dh()):CQ(mo(r)))+nI+this.a+"'"));l=t.li(i),h=l!=null,this.tk()&&F(l)===F(sl)&&(l=null),f=null,this.Mj()?F(l)!==F(r)&&(l!=null&&(c=u(l,54),f=c.Th(e,Ht(c.Dh(),this.b),null,f)),r!=null&&(c=u(r,54),f=c.Rh(e,Ht(c.Dh(),this.b),null,f))):this.al()&&F(l)!==F(r)&&(l!=null&&(f=u(l,54).Th(e,-1-Ht(e.Dh(),this.e),null,f)),r!=null&&(f=u(r,54).Rh(e,-1-Ht(e.Dh(),this.e),null,f))),r==null&&this.tk()?t.mi(i,sl):t.mi(i,r),e.vh()&&e.wh()?(s=new $N(e,1,this.e,l,r,this.tk()&&!h),f?(f.nj(s),f.oj()):bt(e,s)):f&&f.oj()},o.Ek=function(e,t,i){var r,c,s,f,h;h=t.li(i),f=h!=null,this.tk()&&F(h)===F(sl)&&(h=null),s=null,h!=null&&(this.Mj()?(r=u(h,54),s=r.Th(e,Ht(r.Dh(),this.b),null,s)):this.al()&&(s=u(h,54).Th(e,-1-Ht(e.Dh(),this.e),null,s))),t.ni(i),e.vh()&&e.wh()?(c=new $N(e,this.tk()?2:1,this.e,h,null,f),s?(s.nj(c),s.oj()):bt(e,c)):s&&s.oj()},o.Mj=function(){return!1},o.al=function(){return!1},o.bl=function(){return!1},o.tk=function(){return!1};var xlt=w(Jn,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObject",410);b(575,410,{},_D),o.al=function(){return!0};var Flt=w(Jn,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainment",575);b(1359,575,{},fSn),o.bl=function(){return!0};var $lt=w(Jn,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentResolving",1359);b(787,575,{},pW),o.tk=function(){return!0};var Rlt=w(Jn,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentUnsettable",787);b(1361,787,{},hSn),o.bl=function(){return!0};var Blt=w(Jn,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentUnsettableResolving",1361);b(650,575,{},nN),o.Mj=function(){return!0};var Klt=w(Jn,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentWithInverse",650);b(1360,650,{},dIn),o.bl=function(){return!0};var _lt=w(Jn,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentWithInverseResolving",1360);b(788,650,{},iV),o.tk=function(){return!0};var Hlt=w(Jn,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentWithInverseUnsettable",788);b(1362,788,{},bIn),o.bl=function(){return!0};var qlt=w(Jn,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentWithInverseUnsettableResolving",1362);b(651,410,{},vW),o.bl=function(){return!0};var Glt=w(Jn,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectResolving",651);b(1363,651,{},lSn),o.tk=function(){return!0};var Ult=w(Jn,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectResolvingUnsettable",1363);b(789,651,{},eV),o.Mj=function(){return!0};var zlt=w(Jn,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectResolvingWithInverse",789);b(1364,789,{},wIn),o.tk=function(){return!0};var Xlt=w(Jn,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectResolvingWithInverseUnsettable",1364);b(1357,410,{},aSn),o.tk=function(){return!0};var Wlt=w(Jn,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectUnsettable",1357);b(786,410,{},tV),o.Mj=function(){return!0};var Vlt=w(Jn,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectWithInverse",786);b(1358,786,{},gIn),o.tk=function(){return!0};var Jlt=w(Jn,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectWithInverseUnsettable",1358);b(790,576,YS,ZV),o.yl=function(e){return new ZV(this.a,this.c,e)},o.md=function(){return this.b},o.zl=function(e,t,i){return ime(this,e,this.b,i)},o.Al=function(e,t,i){return rme(this,e,this.b,i)};var Qlt=w(Jn,"EStructuralFeatureImpl/InverseUpdatingFeatureMapEntry",790);b(1365,1,RK,djn),o.Fk=function(e){return this.a},o.Qj=function(){return L(this.a,97)?u(this.a,97).Qj():!this.a.dc()},o.Wb=function(e){this.a.$b(),this.a.Gc(u(e,15))},o.Gk=function(){L(this.a,97)?u(this.a,97).Gk():this.a.$b()};var Ylt=w(Jn,"EStructuralFeatureImpl/SettingMany",1365);b(1366,576,YS,RDn),o.xl=function(e){return new GD((Mt(),B9),this.b.ri(this.a,e))},o.md=function(){return null},o.zl=function(e,t,i){return i},o.Al=function(e,t,i){return i};var Zlt=w(Jn,"EStructuralFeatureImpl/SimpleContentFeatureMapEntry",1366);b(652,576,YS,GD),o.xl=function(e){return new GD(this.c,e)},o.md=function(){return this.a},o.zl=function(e,t,i){return i},o.Al=function(e,t,i){return i};var n1t=w(Jn,"EStructuralFeatureImpl/SimpleFeatureMapEntry",652);b(403,506,Sh,zv),o.aj=function(e){return _(Os,Gn,29,e,0,1)},o.Yi=function(){return!1};var e1t=w(Jn,"ESuperAdapter/1",403);b(457,448,{110:1,94:1,93:1,155:1,197:1,58:1,114:1,850:1,54:1,99:1,158:1,457:1,119:1,120:1},tL),o.Lh=function(e,t,i){var r;switch(e){case 0:return!this.Ab&&(this.Ab=new G(nt,this,0,3)),this.Ab;case 1:return this.zb;case 2:return!this.a&&(this.a=new B6(this,Pr,this)),this.a}return Jo(this,e-ge((xn(),jb)),_n((r=u(Qn(this,16),29),r||jb),e),t,i)},o.Uh=function(e,t,i){var r,c;switch(t){case 0:return!this.Ab&&(this.Ab=new G(nt,this,0,3)),ar(this.Ab,e,i);case 2:return!this.a&&(this.a=new B6(this,Pr,this)),ar(this.a,e,i)}return c=u(_n((r=u(Qn(this,16),29),r||(xn(),jb)),t),69),c.wk().Ak(this,hu(this),t-ge((xn(),jb)),e,i)},o.Wh=function(e){var t;switch(e){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return!!this.a&&this.a.i!=0}return Wo(this,e-ge((xn(),jb)),_n((t=u(Qn(this,16),29),t||jb),e))},o.bi=function(e,t){var i;switch(e){case 0:!this.Ab&&(this.Ab=new G(nt,this,0,3)),Ae(this.Ab),!this.Ab&&(this.Ab=new G(nt,this,0,3)),Jt(this.Ab,u(t,16));return;case 1:nu(this,_e(t));return;case 2:!this.a&&(this.a=new B6(this,Pr,this)),Ae(this.a),!this.a&&(this.a=new B6(this,Pr,this)),Jt(this.a,u(t,16));return}ns(this,e-ge((xn(),jb)),_n((i=u(Qn(this,16),29),i||jb),e),t)},o.ii=function(){return xn(),jb},o.ki=function(e){var t;switch(e){case 0:!this.Ab&&(this.Ab=new G(nt,this,0,3)),Ae(this.Ab);return;case 1:nu(this,null);return;case 2:!this.a&&(this.a=new B6(this,Pr,this)),Ae(this.a);return}Zo(this,e-ge((xn(),jb)),_n((t=u(Qn(this,16),29),t||jb),e))};var t1t=w(Jn,"ETypeParameterImpl",457);b(458,83,ic,B6),o.Nj=function(e,t){return vEe(this,u(e,89),t)},o.Oj=function(e,t){return mEe(this,u(e,89),t)};var i1t=w(Jn,"ETypeParameterImpl/1",458);b(647,45,Qg,ML),o.ec=function(){return new RE(this)};var r1t=w(Jn,"ETypeParameterImpl/2",647);b(570,Gf,Bu,RE),o.Fc=function(e){return RSn(this,u(e,89))},o.Gc=function(e){var t,i,r;for(r=!1,i=e.Kc();i.Ob();)t=u(i.Pb(),89),ct(this.a,t,"")==null&&(r=!0);return r},o.$b=function(){zu(this.a)},o.Hc=function(e){return uu(this.a,e)},o.Kc=function(){var e;return e=new od(new qa(this.a).a),new BE(e)},o.Mc=function(e){return SNn(this,e)},o.gc=function(){return u6(this.a)};var c1t=w(Jn,"ETypeParameterImpl/2/1",570);b(571,1,$i,BE),o.Nb=function(e){Wi(this,e)},o.Pb=function(){return u(L0(this.a).ld(),89)},o.Ob=function(){return this.a.b},o.Qb=function(){$xn(this.a)};var u1t=w(Jn,"ETypeParameterImpl/2/1/1",571);b(1329,45,Qg,iEn),o._b=function(e){return Fi(e)?BN(this,e):!!Er(this.f,e)},o.xc=function(e){var t,i;return t=Fi(e)?Hc(this,e):zr(Er(this.f,e)),L(t,851)?(i=u(t,851),t=i.Kk(),ct(this,u(e,241),t),t):t??(e==null?(qL(),zse):null)};var o1t=w(Jn,"EValidatorRegistryImpl",1329);b(1349,720,{110:1,94:1,93:1,480:1,155:1,58:1,114:1,2040:1,54:1,99:1,158:1,119:1,120:1},C6n),o.ri=function(e,t){switch(e.hk()){case 21:case 22:case 23:case 24:case 26:case 31:case 32:case 37:case 38:case 39:case 40:case 43:case 44:case 48:case 49:case 20:return t==null?null:tc(t);case 25:return w6e(t);case 27:return Ime(t);case 28:return Pme(t);case 29:return t==null?null:wAn(D9[0],u(t,206));case 41:return t==null?"":za(u(t,297));case 42:return tc(t);case 50:return _e(t);default:throw C(new Yn(Y4+e.xe()+Z0))}},o.si=function(e){var t,i,r,c,s,f,h,l,a,d,g,p,v,k,j,A;switch(e.G==-1&&(e.G=(p=To(e),p?a1(p.vi(),e):-1)),e.G){case 0:return i=new yL,i;case 1:return t=new vU,t;case 2:return r=new jU,r;case 4:return c=new KE,c;case 5:return s=new tEn,s;case 6:return f=new Ajn,f;case 7:return h=new EU,h;case 10:return a=new IE,a;case 11:return d=new jL,d;case 12:return g=new LOn,g;case 13:return v=new EL,v;case 14:return k=new yW,k;case 17:return j=new w6n,j;case 18:return l=new Vd,l;case 19:return A=new tL,A;default:throw C(new Yn(jK+e.zb+Z0))}},o.ti=function(e,t){switch(e.hk()){case 20:return t==null?null:new qz(t);case 21:return t==null?null:new H1(t);case 23:case 22:return t==null?null:S7e(t);case 26:case 24:return t==null?null:gk(Oo(t,-128,127)<<24>>24);case 25:return XTe(t);case 27:return wye(t);case 28:return gye(t);case 29:return BEe(t);case 32:case 31:return t==null?null:uw(t);case 38:case 37:return t==null?null:new uz(t);case 40:case 39:return t==null?null:Z(Oo(t,tr,at));case 41:return null;case 42:return t==null,null;case 44:case 43:return t==null?null:Sl(JA(t));case 49:case 48:return t==null?null:c4(Oo(t,eI,32767)<<16>>16);case 50:return t;default:throw C(new Yn(Y4+e.xe()+Z0))}};var s1t=w(Jn,"EcoreFactoryImpl",1349);b(560,184,{110:1,94:1,93:1,155:1,197:1,58:1,241:1,114:1,2038:1,54:1,99:1,158:1,184:1,560:1,119:1,120:1,690:1},tOn),o.gb=!1,o.hb=!1;var w0n,Use=!1,f1t=w(Jn,"EcorePackageImpl",560);b(1234,1,{851:1},T6n),o.Kk=function(){return SAn(),Xse};var h1t=w(Jn,"EcorePackageImpl/1",1234);b(1243,1,rt,A6n),o.fk=function(e){return L(e,155)},o.gk=function(e){return _(lE,Gn,155,e,0,1)};var l1t=w(Jn,"EcorePackageImpl/10",1243);b(1244,1,rt,S6n),o.fk=function(e){return L(e,197)},o.gk=function(e){return _(OG,Gn,197,e,0,1)};var a1t=w(Jn,"EcorePackageImpl/11",1244);b(1245,1,rt,I6n),o.fk=function(e){return L(e,58)},o.gk=function(e){return _(Oa,Gn,58,e,0,1)};var d1t=w(Jn,"EcorePackageImpl/12",1245);b(1246,1,rt,P6n),o.fk=function(e){return L(e,411)},o.gk=function(e){return _(Ls,sun,62,e,0,1)};var b1t=w(Jn,"EcorePackageImpl/13",1246);b(1247,1,rt,O6n),o.fk=function(e){return L(e,241)},o.gk=function(e){return _(Sf,Gn,241,e,0,1)};var w1t=w(Jn,"EcorePackageImpl/14",1247);b(1248,1,rt,L6n),o.fk=function(e){return L(e,518)},o.gk=function(e){return _(kb,Gn,2116,e,0,1)};var g1t=w(Jn,"EcorePackageImpl/15",1248);b(1249,1,rt,D6n),o.fk=function(e){return L(e,102)},o.gk=function(e){return _(Zw,u2,19,e,0,1)};var p1t=w(Jn,"EcorePackageImpl/16",1249);b(1250,1,rt,N6n),o.fk=function(e){return L(e,179)},o.gk=function(e){return _(Tu,u2,179,e,0,1)};var v1t=w(Jn,"EcorePackageImpl/17",1250);b(1251,1,rt,x6n),o.fk=function(e){return L(e,481)},o.gk=function(e){return _(Qw,Gn,481,e,0,1)};var m1t=w(Jn,"EcorePackageImpl/18",1251);b(1252,1,rt,F6n),o.fk=function(e){return L(e,561)},o.gk=function(e){return _(Ec,UJn,561,e,0,1)};var k1t=w(Jn,"EcorePackageImpl/19",1252);b(1235,1,rt,$6n),o.fk=function(e){return L(e,331)},o.gk=function(e){return _(Yw,u2,35,e,0,1)};var y1t=w(Jn,"EcorePackageImpl/2",1235);b(1253,1,rt,R6n),o.fk=function(e){return L(e,248)},o.gk=function(e){return _(Pr,sQn,89,e,0,1)};var j1t=w(Jn,"EcorePackageImpl/20",1253);b(1254,1,rt,B6n),o.fk=function(e){return L(e,457)},o.gk=function(e){return _(gu,Gn,850,e,0,1)};var E1t=w(Jn,"EcorePackageImpl/21",1254);b(1255,1,rt,K6n),o.fk=function(e){return Lb(e)},o.gk=function(e){return _(ei,Q,485,e,8,1)};var M1t=w(Jn,"EcorePackageImpl/22",1255);b(1256,1,rt,_6n),o.fk=function(e){return L(e,195)},o.gk=function(e){return _(qu,Q,195,e,0,2)};var C1t=w(Jn,"EcorePackageImpl/23",1256);b(1257,1,rt,H6n),o.fk=function(e){return L(e,222)},o.gk=function(e){return _(wv,Q,222,e,0,1)};var T1t=w(Jn,"EcorePackageImpl/24",1257);b(1258,1,rt,q6n),o.fk=function(e){return L(e,180)},o.gk=function(e){return _(P8,Q,180,e,0,1)};var A1t=w(Jn,"EcorePackageImpl/25",1258);b(1259,1,rt,G6n),o.fk=function(e){return L(e,206)},o.gk=function(e){return _(lI,Q,206,e,0,1)};var S1t=w(Jn,"EcorePackageImpl/26",1259);b(1260,1,rt,U6n),o.fk=function(e){return!1},o.gk=function(e){return _(D0n,Gn,2215,e,0,1)};var I1t=w(Jn,"EcorePackageImpl/27",1260);b(1261,1,rt,z6n),o.fk=function(e){return Db(e)},o.gk=function(e){return _(gi,Q,345,e,7,1)};var P1t=w(Jn,"EcorePackageImpl/28",1261);b(1262,1,rt,X6n),o.fk=function(e){return L(e,61)},o.gk=function(e){return _(Wdn,vw,61,e,0,1)};var O1t=w(Jn,"EcorePackageImpl/29",1262);b(1236,1,rt,W6n),o.fk=function(e){return L(e,519)},o.gk=function(e){return _(nt,{3:1,4:1,5:1,2033:1},598,e,0,1)};var L1t=w(Jn,"EcorePackageImpl/3",1236);b(1263,1,rt,V6n),o.fk=function(e){return L(e,582)},o.gk=function(e){return _(Qdn,Gn,2039,e,0,1)};var D1t=w(Jn,"EcorePackageImpl/30",1263);b(1264,1,rt,J6n),o.fk=function(e){return L(e,160)},o.gk=function(e){return _(k0n,vw,160,e,0,1)};var N1t=w(Jn,"EcorePackageImpl/31",1264);b(1265,1,rt,Q6n),o.fk=function(e){return L(e,76)},o.gk=function(e){return _(SO,pQn,76,e,0,1)};var x1t=w(Jn,"EcorePackageImpl/32",1265);b(1266,1,rt,Y6n),o.fk=function(e){return L(e,161)},o.gk=function(e){return _(cm,Q,161,e,0,1)};var F1t=w(Jn,"EcorePackageImpl/33",1266);b(1267,1,rt,Z6n),o.fk=function(e){return L(e,17)},o.gk=function(e){return _(Yi,Q,17,e,0,1)};var $1t=w(Jn,"EcorePackageImpl/34",1267);b(1268,1,rt,n5n),o.fk=function(e){return L(e,297)},o.gk=function(e){return _(yun,Gn,297,e,0,1)};var R1t=w(Jn,"EcorePackageImpl/35",1268);b(1269,1,rt,e5n),o.fk=function(e){return L(e,168)},o.gk=function(e){return _(eb,Q,168,e,0,1)};var B1t=w(Jn,"EcorePackageImpl/36",1269);b(1270,1,rt,t5n),o.fk=function(e){return L(e,85)},o.gk=function(e){return _(jun,Gn,85,e,0,1)};var K1t=w(Jn,"EcorePackageImpl/37",1270);b(1271,1,rt,i5n),o.fk=function(e){return L(e,599)},o.gk=function(e){return _(g0n,Gn,599,e,0,1)};var _1t=w(Jn,"EcorePackageImpl/38",1271);b(1272,1,rt,r5n),o.fk=function(e){return!1},o.gk=function(e){return _(N0n,Gn,2216,e,0,1)};var H1t=w(Jn,"EcorePackageImpl/39",1272);b(1237,1,rt,c5n),o.fk=function(e){return L(e,90)},o.gk=function(e){return _(Os,Gn,29,e,0,1)};var q1t=w(Jn,"EcorePackageImpl/4",1237);b(1273,1,rt,u5n),o.fk=function(e){return L(e,191)},o.gk=function(e){return _(tb,Q,191,e,0,1)};var G1t=w(Jn,"EcorePackageImpl/40",1273);b(1274,1,rt,o5n),o.fk=function(e){return Fi(e)},o.gk=function(e){return _(dn,Q,2,e,6,1)};var U1t=w(Jn,"EcorePackageImpl/41",1274);b(1275,1,rt,s5n),o.fk=function(e){return L(e,596)},o.gk=function(e){return _(Jdn,Gn,596,e,0,1)};var z1t=w(Jn,"EcorePackageImpl/42",1275);b(1276,1,rt,f5n),o.fk=function(e){return!1},o.gk=function(e){return _(x0n,Q,2217,e,0,1)};var X1t=w(Jn,"EcorePackageImpl/43",1276);b(1277,1,rt,h5n),o.fk=function(e){return L(e,44)},o.gk=function(e){return _(Sd,ZA,44,e,0,1)};var W1t=w(Jn,"EcorePackageImpl/44",1277);b(1238,1,rt,l5n),o.fk=function(e){return L(e,142)},o.gk=function(e){return _(If,Gn,142,e,0,1)};var V1t=w(Jn,"EcorePackageImpl/5",1238);b(1239,1,rt,a5n),o.fk=function(e){return L(e,156)},o.gk=function(e){return _($G,Gn,156,e,0,1)};var J1t=w(Jn,"EcorePackageImpl/6",1239);b(1240,1,rt,d5n),o.fk=function(e){return L(e,469)},o.gk=function(e){return _(AO,Gn,685,e,0,1)};var Q1t=w(Jn,"EcorePackageImpl/7",1240);b(1241,1,rt,b5n),o.fk=function(e){return L(e,582)},o.gk=function(e){return _(_l,Gn,694,e,0,1)};var Y1t=w(Jn,"EcorePackageImpl/8",1241);b(1242,1,rt,w5n),o.fk=function(e){return L(e,480)},o.gk=function(e){return _(L9,Gn,480,e,0,1)};var Z1t=w(Jn,"EcorePackageImpl/9",1242);b(1038,2080,GJn,MEn),o.Mi=function(e,t){i9e(this,u(t,424))},o.Qi=function(e,t){vHn(this,e,u(t,424))};var nat=w(Jn,"MinimalEObjectImpl/1ArrayDelegatingAdapterList",1038);b(1039,152,Qy,zPn),o.jj=function(){return this.a.a};var eat=w(Jn,"MinimalEObjectImpl/1ArrayDelegatingAdapterList/1",1039);b(1067,1066,{},uAn);var tat=w("org.eclipse.emf.ecore.plugin","EcorePlugin",1067),g0n=Ut(vQn,"Resource");b(799,1524,mQn),o.Hl=function(e){},o.Il=function(e){},o.El=function(){return!this.a&&(this.a=new wL(this)),this.a},o.Fl=function(e){var t,i,r,c,s;if(r=e.length,r>0)if(Zn(0,e.length),e.charCodeAt(0)==47){for(s=new Zc(4),c=1,t=1;t0&&(e=(Ui(0,i,e.length),e.substr(0,i))));return LCe(this,e)},o.Gl=function(){return this.c},o.Ib=function(){var e;return za(this.Rm)+"@"+(e=It(this)>>>0,e.toString(16))+" uri='"+this.d+"'"},o.b=!1;var iat=w(BK,"ResourceImpl",799);b(1525,799,mQn,bjn);var rat=w(BK,"BinaryResourceImpl",1525);b(1190,708,DK),o.bj=function(e){return L(e,58)?Epe(this,u(e,58)):L(e,599)?new oe(u(e,599).El()):F(e)===F(this.f)?u(e,16).Kc():(w3(),bE.a)},o.Ob=function(){return Znn(this)},o.a=!1;var cat=w($t,"EcoreUtil/ContentTreeIterator",1190);b(1526,1190,DK,jPn),o.bj=function(e){return F(e)===F(this.f)?u(e,15).Kc():new mDn(u(e,58))};var uat=w(BK,"ResourceImpl/5",1526);b(658,2092,oQn,wL),o.Hc=function(e){return this.i<=4?p4(this,e):L(e,54)&&u(e,54).Jh()==this.a},o.Mi=function(e,t){e==this.i-1&&(this.a.b||(this.a.b=!0))},o.Oi=function(e,t){e==0?this.a.b||(this.a.b=!0):bx(this,e,t)},o.Qi=function(e,t){},o.Ri=function(e,t,i){},o.Lj=function(){return 2},o.jj=function(){return this.a},o.Mj=function(){return!0},o.Nj=function(e,t){var i;return i=u(e,54),t=i.fi(this.a,t),t},o.Oj=function(e,t){var i;return i=u(e,54),i.fi(null,t)},o.Pj=function(){return!1},o.Si=function(){return!0},o.aj=function(e){return _(Oa,Gn,58,e,0,1)},o.Yi=function(){return!1};var oat=w(BK,"ResourceImpl/ContentsEList",658);b(970,2062,F4,wjn),o.fd=function(e){return this.a.Ki(e)},o.gc=function(){return this.a.gc()};var sat=w($t,"AbstractSequentialInternalEList/1",970),p0n,v0n,Zi,m0n;b(634,1,{},MIn);var IO,PO,fat=w($t,"BasicExtendedMetaData",634);b(1181,1,{},TTn),o.Jl=function(){return null},o.Kl=function(){return this.a==-2&&ile(this,LEe(this.d,this.b)),this.a},o.Ll=function(){return null},o.Ml=function(){return Fn(),Fn(),rr},o.xe=function(){return this.c==em&&rle(this,HBn(this.d,this.b)),this.c},o.Nl=function(){return 0},o.a=-2,o.c=em;var hat=w($t,"BasicExtendedMetaData/EClassExtendedMetaDataImpl",1181);b(1182,1,{},VLn),o.Jl=function(){return this.a==(L3(),IO)&&ole(this,OIe(this.f,this.b)),this.a},o.Kl=function(){return 0},o.Ll=function(){return this.c==(L3(),IO)&&cle(this,LIe(this.f,this.b)),this.c},o.Ml=function(){return!this.d&&fle(this,gOe(this.f,this.b)),this.d},o.xe=function(){return this.e==em&&lle(this,HBn(this.f,this.b)),this.e},o.Nl=function(){return this.g==-2&&dle(this,Qje(this.f,this.b)),this.g},o.e=em,o.g=-2;var lat=w($t,"BasicExtendedMetaData/EDataTypeExtendedMetaDataImpl",1182);b(1180,1,{},ATn),o.b=!1,o.c=!1;var aat=w($t,"BasicExtendedMetaData/EPackageExtendedMetaDataImpl",1180);b(1183,1,{},JLn),o.c=-2,o.e=em,o.f=em;var dat=w($t,"BasicExtendedMetaData/EStructuralFeatureExtendedMetaDataImpl",1183);b(593,632,ic,eC),o.Lj=function(){return this.c},o.ol=function(){return!1},o.Wi=function(e,t){return t},o.c=0;var bat=w($t,"EDataTypeEList",593),k0n=Ut($t,"FeatureMap");b(78,593,{3:1,4:1,20:1,31:1,56:1,16:1,15:1,59:1,70:1,66:1,61:1,79:1,160:1,220:1,2036:1,71:1,97:1},Qt),o.bd=function(e,t){JAe(this,e,u(t,76))},o.Fc=function(e){return bAe(this,u(e,76))},o.Hi=function(e){k2e(this,u(e,76))},o.Nj=function(e,t){return _0e(this,u(e,76),t)},o.Oj=function(e,t){return UW(this,u(e,76),t)},o.Ti=function(e,t){return yPe(this,e,t)},o.Wi=function(e,t){return sDe(this,e,u(t,76))},o.hd=function(e,t){return $Se(this,e,u(t,76))},o.Uj=function(e,t){return H0e(this,u(e,76),t)},o.Vj=function(e,t){return ZSn(this,u(e,76),t)},o.Wj=function(e,t,i){return Rje(this,u(e,76),u(t,76),i)},o.Zi=function(e,t){return s$(this,e,u(t,76))},o.Ol=function(e,t){return Gen(this,e,t)},o.cd=function(e,t){var i,r,c,s,f,h,l,a,d;for(a=new A0(t.gc()),c=t.Kc();c.Ob();)if(r=u(c.Pb(),76),s=r.Lk(),Ol(this.e,s))(!s.Si()||!UC(this,s,r.md())&&!p4(a,r))&&Se(a,r);else{for(d=lu(this.e.Dh(),s),i=u(this.g,124),f=!0,h=0;h=0;)if(t=e[this.c],this.k.am(t.Lk()))return this.j=this.f?t:t.md(),this.i=-2,!0;return this.i=-1,this.g=-1,!1};var pat=w($t,"BasicFeatureMap/FeatureEIterator",420);b(676,420,zh,CD),o.ul=function(){return!0};var vat=w($t,"BasicFeatureMap/ResolvingFeatureEIterator",676);b(968,496,JS,gAn),o.pj=function(){return this};var mat=w($t,"EContentsEList/1",968);b(969,496,JS,KTn),o.ul=function(){return!1};var kat=w($t,"EContentsEList/2",969);b(967,287,QS,pAn),o.wl=function(e){},o.Ob=function(){return!1},o.Sb=function(){return!1};var yat=w($t,"EContentsEList/FeatureIteratorImpl/1",967);b(840,593,ic,YX),o.Ni=function(){this.a=!0},o.Qj=function(){return this.a},o.Gk=function(){var e;Ae(this),bo(this.e)?(e=this.a,this.a=!1,bt(this.e,new qs(this.e,2,this.c,e,!1))):this.a=!1},o.a=!1;var jat=w($t,"EDataTypeEList/Unsettable",840);b(1958,593,ic,MAn),o.Si=function(){return!0};var Eat=w($t,"EDataTypeUniqueEList",1958);b(1959,840,ic,CAn),o.Si=function(){return!0};var Mat=w($t,"EDataTypeUniqueEList/Unsettable",1959);b(147,83,ic,Lu),o.nl=function(){return!0},o.Wi=function(e,t){return Zp(this,e,u(t,58))};var Cat=w($t,"EObjectContainmentEList/Resolving",147);b(1184,555,ic,TAn),o.nl=function(){return!0},o.Wi=function(e,t){return Zp(this,e,u(t,58))};var Tat=w($t,"EObjectContainmentEList/Unsettable/Resolving",1184);b(766,14,ic,RW),o.Ni=function(){this.a=!0},o.Qj=function(){return this.a},o.Gk=function(){var e;Ae(this),bo(this.e)?(e=this.a,this.a=!1,bt(this.e,new qs(this.e,2,this.c,e,!1))):this.a=!1},o.a=!1;var Aat=w($t,"EObjectContainmentWithInverseEList/Unsettable",766);b(1222,766,ic,BSn),o.nl=function(){return!0},o.Wi=function(e,t){return Zp(this,e,u(t,58))};var Sat=w($t,"EObjectContainmentWithInverseEList/Unsettable/Resolving",1222);b(757,505,ic,ZX),o.Ni=function(){this.a=!0},o.Qj=function(){return this.a},o.Gk=function(){var e;Ae(this),bo(this.e)?(e=this.a,this.a=!1,bt(this.e,new qs(this.e,2,this.c,e,!1))):this.a=!1},o.a=!1;var Iat=w($t,"EObjectEList/Unsettable",757);b(338,505,ic,kg),o.nl=function(){return!0},o.Wi=function(e,t){return Zp(this,e,u(t,58))};var Pat=w($t,"EObjectResolvingEList",338);b(1844,757,ic,AAn),o.nl=function(){return!0},o.Wi=function(e,t){return Zp(this,e,u(t,58))};var Oat=w($t,"EObjectResolvingEList/Unsettable",1844);b(1527,1,{},g5n);var zse,Lat=w($t,"EObjectValidator",1527);b(559,505,ic,vC),o.il=function(){return this.d},o.jl=function(){return this.b},o.Mj=function(){return!0},o.ml=function(){return!0},o.b=0;var Dat=w($t,"EObjectWithInverseEList",559);b(1225,559,ic,KSn),o.ll=function(){return!0};var Nat=w($t,"EObjectWithInverseEList/ManyInverse",1225);b(635,559,ic,zD),o.Ni=function(){this.a=!0},o.Qj=function(){return this.a},o.Gk=function(){var e;Ae(this),bo(this.e)?(e=this.a,this.a=!1,bt(this.e,new qs(this.e,2,this.c,e,!1))):this.a=!1},o.a=!1;var xat=w($t,"EObjectWithInverseEList/Unsettable",635);b(1224,635,ic,_Sn),o.ll=function(){return!0};var Fat=w($t,"EObjectWithInverseEList/Unsettable/ManyInverse",1224);b(767,559,ic,BW),o.nl=function(){return!0},o.Wi=function(e,t){return Zp(this,e,u(t,58))};var $at=w($t,"EObjectWithInverseResolvingEList",767);b(32,767,ic,Kn),o.ll=function(){return!0};var Rat=w($t,"EObjectWithInverseResolvingEList/ManyInverse",32);b(768,635,ic,KW),o.nl=function(){return!0},o.Wi=function(e,t){return Zp(this,e,u(t,58))};var Bat=w($t,"EObjectWithInverseResolvingEList/Unsettable",768);b(1223,768,ic,HSn),o.ll=function(){return!0};var Kat=w($t,"EObjectWithInverseResolvingEList/Unsettable/ManyInverse",1223);b(1185,632,ic),o.Li=function(){return(this.b&1792)==0},o.Ni=function(){this.b|=1},o.kl=function(){return(this.b&4)!=0},o.Mj=function(){return(this.b&40)!=0},o.ll=function(){return(this.b&16)!=0},o.ml=function(){return(this.b&8)!=0},o.nl=function(){return(this.b&Mw)!=0},o.al=function(){return(this.b&32)!=0},o.ol=function(){return(this.b&Vs)!=0},o.fk=function(e){return this.d?SDn(this.d,e):this.Lk().Hk().fk(e)},o.Qj=function(){return(this.b&2)!=0?(this.b&1)!=0:this.i!=0},o.Si=function(){return(this.b&128)!=0},o.Gk=function(){var e;Ae(this),(this.b&2)!=0&&(bo(this.e)?(e=(this.b&1)!=0,this.b&=-2,Zv(this,new qs(this.e,2,Ht(this.e.Dh(),this.Lk()),e,!1))):this.b&=-2)},o.Yi=function(){return(this.b&1536)==0},o.b=0;var _at=w($t,"EcoreEList/Generic",1185);b(1186,1185,ic,NOn),o.Lk=function(){return this.a};var Hat=w($t,"EcoreEList/Dynamic",1186);b(765,66,Sh,nz),o.aj=function(e){return kk(this.a.a,e)};var qat=w($t,"EcoreEMap/1",765);b(764,83,ic,RV),o.Mi=function(e,t){hA(this.b,u(t,136))},o.Oi=function(e,t){O$n(this.b)},o.Pi=function(e,t,i){var r;++(r=this.b,u(t,136),r).e},o.Qi=function(e,t){pF(this.b,u(t,136))},o.Ri=function(e,t,i){pF(this.b,u(i,136)),F(i)===F(t)&&u(i,136).Ci(Bae(u(t,136).ld())),hA(this.b,u(t,136))};var Gat=w($t,"EcoreEMap/DelegateEObjectContainmentEList",764);b(1220,141,oun,WFn);var Uat=w($t,"EcoreEMap/Unsettable",1220);b(1221,764,ic,qSn),o.Ni=function(){this.a=!0},o.Qj=function(){return this.a},o.Gk=function(){var e;Ae(this),bo(this.e)?(e=this.a,this.a=!1,bt(this.e,new qs(this.e,2,this.c,e,!1))):this.a=!1},o.a=!1;var zat=w($t,"EcoreEMap/Unsettable/UnsettableDelegateEObjectContainmentEList",1221);b(1189,215,Qg,xPn),o.a=!1,o.b=!1;var Xat=w($t,"EcoreUtil/Copier",1189);b(759,1,$i,mDn),o.Nb=function(e){Wi(this,e)},o.Ob=function(){return ABn(this)},o.Pb=function(){var e;return ABn(this),e=this.b,this.b=null,e},o.Qb=function(){this.a.Qb()};var Wat=w($t,"EcoreUtil/ProperContentIterator",759);b(1528,1527,{},g9n);var Xse,Vat=w($t,"EcoreValidator",1528),Wse,Jat=Ut($t,"FeatureMapUtil/Validator");b(1295,1,{2041:1},p5n),o.am=function(e){return!0};var Qat=w($t,"FeatureMapUtil/1",1295);b(773,1,{2041:1},mtn),o.am=function(e){var t;return this.c==e?!0:(t=hn(se(this.a,e)),t==null?RIe(this,e)?(mNn(this.a,e,(Wn(),rm)),!0):(mNn(this.a,e,(Wn(),ga)),!1):t==(Wn(),rm))},o.e=!1;var _G,Yat=w($t,"FeatureMapUtil/BasicValidator",773);b(774,45,Qg,JX);var Zat=w($t,"FeatureMapUtil/BasicValidator/Cache",774);b(509,56,{20:1,31:1,56:1,16:1,15:1,61:1,79:1,71:1,97:1},M7),o.bd=function(e,t){sGn(this.c,this.b,e,t)},o.Fc=function(e){return Gen(this.c,this.b,e)},o.cd=function(e,t){return cLe(this.c,this.b,e,t)},o.Gc=function(e){return P6(this,e)},o.Gi=function(e,t){n6e(this.c,this.b,e,t)},o.Wk=function(e,t){return Fen(this.c,this.b,e,t)},o.$i=function(e){return UA(this.c,this.b,e,!1)},o.Ii=function(){return YTn(this.c,this.b)},o.Ji=function(){return Tae(this.c,this.b)},o.Ki=function(e){return cme(this.c,this.b,e)},o.Xk=function(e,t){return jSn(this,e,t)},o.$b=function(){ip(this)},o.Hc=function(e){return UC(this.c,this.b,e)},o.Ic=function(e){return r5e(this.c,this.b,e)},o.Xb=function(e){return UA(this.c,this.b,e,!0)},o.Fk=function(e){return this},o.dd=function(e){return a4e(this.c,this.b,e)},o.dc=function(){return PM(this)},o.Qj=function(){return!_k(this.c,this.b)},o.Kc=function(){return Gme(this.c,this.b)},o.ed=function(){return Ume(this.c,this.b)},o.fd=function(e){return j9e(this.c,this.b,e)},o.Ti=function(e,t){return EUn(this.c,this.b,e,t)},o.Ui=function(e,t){sme(this.c,this.b,e,t)},o.gd=function(e){return eHn(this.c,this.b,e)},o.Mc=function(e){return uPe(this.c,this.b,e)},o.hd=function(e,t){return LUn(this.c,this.b,e,t)},o.Wb=function(e){TA(this.c,this.b),P6(this,u(e,15))},o.gc=function(){return y9e(this.c,this.b)},o.Pc=function(){return b3e(this.c,this.b)},o.Qc=function(e){return d4e(this.c,this.b,e)},o.Ib=function(){var e,t;for(t=new Ul,t.a+="[",e=YTn(this.c,this.b);oF(e);)Or(t,L6(oA(e))),oF(e)&&(t.a+=dr);return t.a+="]",t.a},o.Gk=function(){TA(this.c,this.b)};var ndt=w($t,"FeatureMapUtil/FeatureEList",509);b(644,39,Qy,ix),o.hj=function(e){return m5(this,e)},o.mj=function(e){var t,i,r,c,s,f,h;switch(this.d){case 1:case 2:{if(s=e.jj(),F(s)===F(this.c)&&m5(this,null)==e.hj(null))return this.g=e.ij(),e.gj()==1&&(this.d=1),!0;break}case 3:{switch(c=e.gj(),c){case 3:{if(s=e.jj(),F(s)===F(this.c)&&m5(this,null)==e.hj(null))return this.d=5,t=new A0(2),Se(t,this.g),Se(t,e.ij()),this.g=t,!0;break}}break}case 5:{switch(c=e.gj(),c){case 3:{if(s=e.jj(),F(s)===F(this.c)&&m5(this,null)==e.hj(null))return i=u(this.g,16),i.Fc(e.ij()),!0;break}}break}case 4:{switch(c=e.gj(),c){case 3:{if(s=e.jj(),F(s)===F(this.c)&&m5(this,null)==e.hj(null))return this.d=1,this.g=e.ij(),!0;break}case 4:{if(s=e.jj(),F(s)===F(this.c)&&m5(this,null)==e.hj(null))return this.d=6,h=new A0(2),Se(h,this.n),Se(h,e.kj()),this.n=h,f=S(T(Oe,1),Ye,28,15,[this.o,e.lj()]),this.g=f,!0;break}}break}case 6:{switch(c=e.gj(),c){case 4:{if(s=e.jj(),F(s)===F(this.c)&&m5(this,null)==e.hj(null))return i=u(this.n,16),i.Fc(e.kj()),f=u(this.g,53),r=_(Oe,Ye,28,f.length+1,15,1),Rc(f,0,r,0,f.length),r[f.length]=e.lj(),this.g=r,!0;break}}break}}return!1};var edt=w($t,"FeatureMapUtil/FeatureENotificationImpl",644);b(564,509,{20:1,31:1,56:1,16:1,15:1,61:1,79:1,160:1,220:1,2036:1,71:1,97:1},cC),o.Ol=function(e,t){return Gen(this.c,e,t)},o.Pl=function(e,t,i){return Fen(this.c,e,t,i)},o.Ql=function(e,t,i){return stn(this.c,e,t,i)},o.Rl=function(){return this},o.Sl=function(e,t){return py(this.c,e,t)},o.Tl=function(e){return u(UA(this.c,this.b,e,!1),76).Lk()},o.Ul=function(e){return u(UA(this.c,this.b,e,!1),76).md()},o.Vl=function(){return this.a},o.Wl=function(e){return!_k(this.c,e)},o.Xl=function(e,t){zA(this.c,e,t)},o.Yl=function(e){return QFn(this.c,e)},o.Zl=function(e){IKn(this.c,e)};var tdt=w($t,"FeatureMapUtil/FeatureFeatureMap",564);b(1294,1,RK,CTn),o.Fk=function(e){return UA(this.b,this.a,-1,e)},o.Qj=function(){return!_k(this.b,this.a)},o.Wb=function(e){zA(this.b,this.a,e)},o.Gk=function(){TA(this.b,this.a)};var idt=w($t,"FeatureMapUtil/FeatureValue",1294),Rv,HG,qG,Bv,Vse,gE=Ut(cI,"AnyType");b(680,63,Ll,LL);var rdt=w(cI,"InvalidDatatypeValueException",680),OO=Ut(cI,yQn),pE=Ut(cI,jQn),y0n=Ut(cI,EQn),Jse,Sc,j0n,Ud,Qse,Yse,Zse,nfe,efe,tfe,ife,rfe,cfe,ufe,ofe,H2,sfe,q2,$9,ffe,Eb,vE,mE,hfe,R9,B9;b(844,516,{110:1,94:1,93:1,58:1,54:1,99:1,857:1},mz),o.Lh=function(e,t,i){switch(e){case 0:return i?(!this.c&&(this.c=new Qt(this,0)),this.c):(!this.c&&(this.c=new Qt(this,0)),this.c.b);case 1:return i?(!this.c&&(this.c=new Qt(this,0)),u(qc(this.c,(Mt(),Ud)),160)):(!this.c&&(this.c=new Qt(this,0)),u(u(qc(this.c,(Mt(),Ud)),160),220)).Vl();case 2:return i?(!this.b&&(this.b=new Qt(this,2)),this.b):(!this.b&&(this.b=new Qt(this,2)),this.b.b)}return Jo(this,e-ge(this.ii()),_n((this.j&2)==0?this.ii():(!this.k&&(this.k=new lf),this.k).Nk(),e),t,i)},o.Uh=function(e,t,i){var r;switch(t){case 0:return!this.c&&(this.c=new Qt(this,0)),dy(this.c,e,i);case 1:return(!this.c&&(this.c=new Qt(this,0)),u(u(qc(this.c,(Mt(),Ud)),160),71)).Xk(e,i);case 2:return!this.b&&(this.b=new Qt(this,2)),dy(this.b,e,i)}return r=u(_n((this.j&2)==0?this.ii():(!this.k&&(this.k=new lf),this.k).Nk(),t),69),r.wk().Ak(this,jQ(this),t-ge(this.ii()),e,i)},o.Wh=function(e){switch(e){case 0:return!!this.c&&this.c.i!=0;case 1:return!(!this.c&&(this.c=new Qt(this,0)),u(qc(this.c,(Mt(),Ud)),160)).dc();case 2:return!!this.b&&this.b.i!=0}return Wo(this,e-ge(this.ii()),_n((this.j&2)==0?this.ii():(!this.k&&(this.k=new lf),this.k).Nk(),e))},o.bi=function(e,t){switch(e){case 0:!this.c&&(this.c=new Qt(this,0)),G7(this.c,t);return;case 1:(!this.c&&(this.c=new Qt(this,0)),u(u(qc(this.c,(Mt(),Ud)),160),220)).Wb(t);return;case 2:!this.b&&(this.b=new Qt(this,2)),G7(this.b,t);return}ns(this,e-ge(this.ii()),_n((this.j&2)==0?this.ii():(!this.k&&(this.k=new lf),this.k).Nk(),e),t)},o.ii=function(){return Mt(),j0n},o.ki=function(e){switch(e){case 0:!this.c&&(this.c=new Qt(this,0)),Ae(this.c);return;case 1:(!this.c&&(this.c=new Qt(this,0)),u(qc(this.c,(Mt(),Ud)),160)).$b();return;case 2:!this.b&&(this.b=new Qt(this,2)),Ae(this.b);return}Zo(this,e-ge(this.ii()),_n((this.j&2)==0?this.ii():(!this.k&&(this.k=new lf),this.k).Nk(),e))},o.Ib=function(){var e;return(this.j&4)!=0?zs(this):(e=new ws(zs(this)),e.a+=" (mixed: ",T6(e,this.c),e.a+=", anyAttribute: ",T6(e,this.b),e.a+=")",e.a)};var cdt=w(wi,"AnyTypeImpl",844);b(681,516,{110:1,94:1,93:1,58:1,54:1,99:1,2119:1,681:1},S5n),o.Lh=function(e,t,i){switch(e){case 0:return this.a;case 1:return this.b}return Jo(this,e-ge((Mt(),H2)),_n((this.j&2)==0?H2:(!this.k&&(this.k=new lf),this.k).Nk(),e),t,i)},o.Wh=function(e){switch(e){case 0:return this.a!=null;case 1:return this.b!=null}return Wo(this,e-ge((Mt(),H2)),_n((this.j&2)==0?H2:(!this.k&&(this.k=new lf),this.k).Nk(),e))},o.bi=function(e,t){switch(e){case 0:gle(this,_e(t));return;case 1:vle(this,_e(t));return}ns(this,e-ge((Mt(),H2)),_n((this.j&2)==0?H2:(!this.k&&(this.k=new lf),this.k).Nk(),e),t)},o.ii=function(){return Mt(),H2},o.ki=function(e){switch(e){case 0:this.a=null;return;case 1:this.b=null;return}Zo(this,e-ge((Mt(),H2)),_n((this.j&2)==0?H2:(!this.k&&(this.k=new lf),this.k).Nk(),e))},o.Ib=function(){var e;return(this.j&4)!=0?zs(this):(e=new ws(zs(this)),e.a+=" (data: ",Or(e,this.a),e.a+=", target: ",Or(e,this.b),e.a+=")",e.a)},o.a=null,o.b=null;var udt=w(wi,"ProcessingInstructionImpl",681);b(682,844,{110:1,94:1,93:1,58:1,54:1,99:1,857:1,2120:1,682:1},rEn),o.Lh=function(e,t,i){switch(e){case 0:return i?(!this.c&&(this.c=new Qt(this,0)),this.c):(!this.c&&(this.c=new Qt(this,0)),this.c.b);case 1:return i?(!this.c&&(this.c=new Qt(this,0)),u(qc(this.c,(Mt(),Ud)),160)):(!this.c&&(this.c=new Qt(this,0)),u(u(qc(this.c,(Mt(),Ud)),160),220)).Vl();case 2:return i?(!this.b&&(this.b=new Qt(this,2)),this.b):(!this.b&&(this.b=new Qt(this,2)),this.b.b);case 3:return!this.c&&(this.c=new Qt(this,0)),_e(py(this.c,(Mt(),$9),!0));case 4:return HW(this.a,(!this.c&&(this.c=new Qt(this,0)),_e(py(this.c,(Mt(),$9),!0))));case 5:return this.a}return Jo(this,e-ge((Mt(),q2)),_n((this.j&2)==0?q2:(!this.k&&(this.k=new lf),this.k).Nk(),e),t,i)},o.Wh=function(e){switch(e){case 0:return!!this.c&&this.c.i!=0;case 1:return!(!this.c&&(this.c=new Qt(this,0)),u(qc(this.c,(Mt(),Ud)),160)).dc();case 2:return!!this.b&&this.b.i!=0;case 3:return!this.c&&(this.c=new Qt(this,0)),_e(py(this.c,(Mt(),$9),!0))!=null;case 4:return HW(this.a,(!this.c&&(this.c=new Qt(this,0)),_e(py(this.c,(Mt(),$9),!0))))!=null;case 5:return!!this.a}return Wo(this,e-ge((Mt(),q2)),_n((this.j&2)==0?q2:(!this.k&&(this.k=new lf),this.k).Nk(),e))},o.bi=function(e,t){switch(e){case 0:!this.c&&(this.c=new Qt(this,0)),G7(this.c,t);return;case 1:(!this.c&&(this.c=new Qt(this,0)),u(u(qc(this.c,(Mt(),Ud)),160),220)).Wb(t);return;case 2:!this.b&&(this.b=new Qt(this,2)),G7(this.b,t);return;case 3:PJ(this,_e(t));return;case 4:PJ(this,_W(this.a,t));return;case 5:ple(this,u(t,156));return}ns(this,e-ge((Mt(),q2)),_n((this.j&2)==0?q2:(!this.k&&(this.k=new lf),this.k).Nk(),e),t)},o.ii=function(){return Mt(),q2},o.ki=function(e){switch(e){case 0:!this.c&&(this.c=new Qt(this,0)),Ae(this.c);return;case 1:(!this.c&&(this.c=new Qt(this,0)),u(qc(this.c,(Mt(),Ud)),160)).$b();return;case 2:!this.b&&(this.b=new Qt(this,2)),Ae(this.b);return;case 3:!this.c&&(this.c=new Qt(this,0)),zA(this.c,(Mt(),$9),null);return;case 4:PJ(this,_W(this.a,null));return;case 5:this.a=null;return}Zo(this,e-ge((Mt(),q2)),_n((this.j&2)==0?q2:(!this.k&&(this.k=new lf),this.k).Nk(),e))};var odt=w(wi,"SimpleAnyTypeImpl",682);b(683,516,{110:1,94:1,93:1,58:1,54:1,99:1,2121:1,683:1},cEn),o.Lh=function(e,t,i){switch(e){case 0:return i?(!this.a&&(this.a=new Qt(this,0)),this.a):(!this.a&&(this.a=new Qt(this,0)),this.a.b);case 1:return i?(!this.b&&(this.b=new Fu((xn(),mr),Ec,this,1)),this.b):(!this.b&&(this.b=new Fu((xn(),mr),Ec,this,1)),sk(this.b));case 2:return i?(!this.c&&(this.c=new Fu((xn(),mr),Ec,this,2)),this.c):(!this.c&&(this.c=new Fu((xn(),mr),Ec,this,2)),sk(this.c));case 3:return!this.a&&(this.a=new Qt(this,0)),qc(this.a,(Mt(),vE));case 4:return!this.a&&(this.a=new Qt(this,0)),qc(this.a,(Mt(),mE));case 5:return!this.a&&(this.a=new Qt(this,0)),qc(this.a,(Mt(),R9));case 6:return!this.a&&(this.a=new Qt(this,0)),qc(this.a,(Mt(),B9))}return Jo(this,e-ge((Mt(),Eb)),_n((this.j&2)==0?Eb:(!this.k&&(this.k=new lf),this.k).Nk(),e),t,i)},o.Uh=function(e,t,i){var r;switch(t){case 0:return!this.a&&(this.a=new Qt(this,0)),dy(this.a,e,i);case 1:return!this.b&&(this.b=new Fu((xn(),mr),Ec,this,1)),WM(this.b,e,i);case 2:return!this.c&&(this.c=new Fu((xn(),mr),Ec,this,2)),WM(this.c,e,i);case 5:return!this.a&&(this.a=new Qt(this,0)),jSn(qc(this.a,(Mt(),R9)),e,i)}return r=u(_n((this.j&2)==0?(Mt(),Eb):(!this.k&&(this.k=new lf),this.k).Nk(),t),69),r.wk().Ak(this,jQ(this),t-ge((Mt(),Eb)),e,i)},o.Wh=function(e){switch(e){case 0:return!!this.a&&this.a.i!=0;case 1:return!!this.b&&this.b.f!=0;case 2:return!!this.c&&this.c.f!=0;case 3:return!this.a&&(this.a=new Qt(this,0)),!PM(qc(this.a,(Mt(),vE)));case 4:return!this.a&&(this.a=new Qt(this,0)),!PM(qc(this.a,(Mt(),mE)));case 5:return!this.a&&(this.a=new Qt(this,0)),!PM(qc(this.a,(Mt(),R9)));case 6:return!this.a&&(this.a=new Qt(this,0)),!PM(qc(this.a,(Mt(),B9)))}return Wo(this,e-ge((Mt(),Eb)),_n((this.j&2)==0?Eb:(!this.k&&(this.k=new lf),this.k).Nk(),e))},o.bi=function(e,t){switch(e){case 0:!this.a&&(this.a=new Qt(this,0)),G7(this.a,t);return;case 1:!this.b&&(this.b=new Fu((xn(),mr),Ec,this,1)),PT(this.b,t);return;case 2:!this.c&&(this.c=new Fu((xn(),mr),Ec,this,2)),PT(this.c,t);return;case 3:!this.a&&(this.a=new Qt(this,0)),ip(qc(this.a,(Mt(),vE))),!this.a&&(this.a=new Qt(this,0)),P6(qc(this.a,vE),u(t,16));return;case 4:!this.a&&(this.a=new Qt(this,0)),ip(qc(this.a,(Mt(),mE))),!this.a&&(this.a=new Qt(this,0)),P6(qc(this.a,mE),u(t,16));return;case 5:!this.a&&(this.a=new Qt(this,0)),ip(qc(this.a,(Mt(),R9))),!this.a&&(this.a=new Qt(this,0)),P6(qc(this.a,R9),u(t,16));return;case 6:!this.a&&(this.a=new Qt(this,0)),ip(qc(this.a,(Mt(),B9))),!this.a&&(this.a=new Qt(this,0)),P6(qc(this.a,B9),u(t,16));return}ns(this,e-ge((Mt(),Eb)),_n((this.j&2)==0?Eb:(!this.k&&(this.k=new lf),this.k).Nk(),e),t)},o.ii=function(){return Mt(),Eb},o.ki=function(e){switch(e){case 0:!this.a&&(this.a=new Qt(this,0)),Ae(this.a);return;case 1:!this.b&&(this.b=new Fu((xn(),mr),Ec,this,1)),this.b.c.$b();return;case 2:!this.c&&(this.c=new Fu((xn(),mr),Ec,this,2)),this.c.c.$b();return;case 3:!this.a&&(this.a=new Qt(this,0)),ip(qc(this.a,(Mt(),vE)));return;case 4:!this.a&&(this.a=new Qt(this,0)),ip(qc(this.a,(Mt(),mE)));return;case 5:!this.a&&(this.a=new Qt(this,0)),ip(qc(this.a,(Mt(),R9)));return;case 6:!this.a&&(this.a=new Qt(this,0)),ip(qc(this.a,(Mt(),B9)));return}Zo(this,e-ge((Mt(),Eb)),_n((this.j&2)==0?Eb:(!this.k&&(this.k=new lf),this.k).Nk(),e))},o.Ib=function(){var e;return(this.j&4)!=0?zs(this):(e=new ws(zs(this)),e.a+=" (mixed: ",T6(e,this.a),e.a+=")",e.a)};var sdt=w(wi,"XMLTypeDocumentRootImpl",683);b(2028,720,{110:1,94:1,93:1,480:1,155:1,58:1,114:1,54:1,99:1,158:1,119:1,120:1,2122:1},v5n),o.ri=function(e,t){switch(e.hk()){case 7:case 8:case 9:case 10:case 16:case 22:case 23:case 24:case 25:case 26:case 32:case 33:case 34:case 36:case 37:case 44:case 45:case 50:case 51:case 53:case 55:case 56:case 57:case 58:case 60:case 61:case 4:return t==null?null:tc(t);case 19:case 28:case 29:case 35:case 38:case 39:case 41:case 46:case 52:case 54:case 5:return _e(t);case 6:return Yde(u(t,195));case 12:case 47:case 49:case 11:return mzn(this,e,t);case 13:return t==null?null:sLe(u(t,247));case 15:case 14:return t==null?null:b2e(x(K(t)));case 17:return g_n((Mt(),t));case 18:return g_n(t);case 21:case 20:return t==null?null:w2e(u(t,161).a);case 27:return Zde(u(t,195));case 30:return PKn((Mt(),u(t,15)));case 31:return PKn(u(t,15));case 40:return e0e((Mt(),t));case 42:return p_n((Mt(),t));case 43:return p_n(t);case 59:case 48:return n0e((Mt(),t));default:throw C(new Yn(Y4+e.xe()+Z0))}},o.si=function(e){var t,i,r,c,s;switch(e.G==-1&&(e.G=(i=To(e),i?a1(i.vi(),e):-1)),e.G){case 0:return t=new mz,t;case 1:return r=new S5n,r;case 2:return c=new rEn,c;case 3:return s=new cEn,s;default:throw C(new Yn(jK+e.zb+Z0))}},o.ti=function(e,t){var i,r,c,s,f,h,l,a,d,g,p,v,k,j,A,P;switch(e.hk()){case 5:case 52:case 4:return t;case 6:return oke(t);case 8:case 7:return t==null?null:Xje(t);case 9:return t==null?null:gk(Oo((r=Uc(t,!0),r.length>0&&(Zn(0,r.length),r.charCodeAt(0)==43)?(Zn(1,r.length+1),r.substr(1)):r),-128,127)<<24>>24);case 10:return t==null?null:gk(Oo((c=Uc(t,!0),c.length>0&&(Zn(0,c.length),c.charCodeAt(0)==43)?(Zn(1,c.length+1),c.substr(1)):c),-128,127)<<24>>24);case 11:return _e(U0(this,(Mt(),Zse),t));case 12:return _e(U0(this,(Mt(),nfe),t));case 13:return t==null?null:new qz(Uc(t,!0));case 15:case 14:return gAe(t);case 16:return _e(U0(this,(Mt(),efe),t));case 17:return LBn((Mt(),t));case 18:return LBn(t);case 28:case 29:case 35:case 38:case 39:case 41:case 54:case 19:return Uc(t,!0);case 21:case 20:return TAe(t);case 22:return _e(U0(this,(Mt(),tfe),t));case 23:return _e(U0(this,(Mt(),ife),t));case 24:return _e(U0(this,(Mt(),rfe),t));case 25:return _e(U0(this,(Mt(),cfe),t));case 26:return _e(U0(this,(Mt(),ufe),t));case 27:return V7e(t);case 30:return DBn((Mt(),t));case 31:return DBn(t);case 32:return t==null?null:Z(Oo((d=Uc(t,!0),d.length>0&&(Zn(0,d.length),d.charCodeAt(0)==43)?(Zn(1,d.length+1),d.substr(1)):d),tr,at));case 33:return t==null?null:new H1((g=Uc(t,!0),g.length>0&&(Zn(0,g.length),g.charCodeAt(0)==43)?(Zn(1,g.length+1),g.substr(1)):g));case 34:return t==null?null:Z(Oo((p=Uc(t,!0),p.length>0&&(Zn(0,p.length),p.charCodeAt(0)==43)?(Zn(1,p.length+1),p.substr(1)):p),tr,at));case 36:return t==null?null:Sl(JA((v=Uc(t,!0),v.length>0&&(Zn(0,v.length),v.charCodeAt(0)==43)?(Zn(1,v.length+1),v.substr(1)):v)));case 37:return t==null?null:Sl(JA((k=Uc(t,!0),k.length>0&&(Zn(0,k.length),k.charCodeAt(0)==43)?(Zn(1,k.length+1),k.substr(1)):k)));case 40:return zke((Mt(),t));case 42:return NBn((Mt(),t));case 43:return NBn(t);case 44:return t==null?null:new H1((j=Uc(t,!0),j.length>0&&(Zn(0,j.length),j.charCodeAt(0)==43)?(Zn(1,j.length+1),j.substr(1)):j));case 45:return t==null?null:new H1((A=Uc(t,!0),A.length>0&&(Zn(0,A.length),A.charCodeAt(0)==43)?(Zn(1,A.length+1),A.substr(1)):A));case 46:return Uc(t,!1);case 47:return _e(U0(this,(Mt(),ofe),t));case 59:case 48:return Uke((Mt(),t));case 49:return _e(U0(this,(Mt(),sfe),t));case 50:return t==null?null:c4(Oo((P=Uc(t,!0),P.length>0&&(Zn(0,P.length),P.charCodeAt(0)==43)?(Zn(1,P.length+1),P.substr(1)):P),eI,32767)<<16>>16);case 51:return t==null?null:c4(Oo((s=Uc(t,!0),s.length>0&&(Zn(0,s.length),s.charCodeAt(0)==43)?(Zn(1,s.length+1),s.substr(1)):s),eI,32767)<<16>>16);case 53:return _e(U0(this,(Mt(),ffe),t));case 55:return t==null?null:c4(Oo((f=Uc(t,!0),f.length>0&&(Zn(0,f.length),f.charCodeAt(0)==43)?(Zn(1,f.length+1),f.substr(1)):f),eI,32767)<<16>>16);case 56:return t==null?null:c4(Oo((h=Uc(t,!0),h.length>0&&(Zn(0,h.length),h.charCodeAt(0)==43)?(Zn(1,h.length+1),h.substr(1)):h),eI,32767)<<16>>16);case 57:return t==null?null:Sl(JA((l=Uc(t,!0),l.length>0&&(Zn(0,l.length),l.charCodeAt(0)==43)?(Zn(1,l.length+1),l.substr(1)):l)));case 58:return t==null?null:Sl(JA((a=Uc(t,!0),a.length>0&&(Zn(0,a.length),a.charCodeAt(0)==43)?(Zn(1,a.length+1),a.substr(1)):a)));case 60:return t==null?null:Z(Oo((i=Uc(t,!0),i.length>0&&(Zn(0,i.length),i.charCodeAt(0)==43)?(Zn(1,i.length+1),i.substr(1)):i),tr,at));case 61:return t==null?null:Z(Oo(Uc(t,!0),tr,at));default:throw C(new Yn(Y4+e.xe()+Z0))}};var lfe,E0n,afe,M0n,fdt=w(wi,"XMLTypeFactoryImpl",2028);b(594,184,{110:1,94:1,93:1,155:1,197:1,58:1,241:1,114:1,54:1,99:1,158:1,184:1,119:1,120:1,690:1,2044:1,594:1},iOn),o.N=!1,o.O=!1;var dfe=!1,hdt=w(wi,"XMLTypePackageImpl",594);b(1961,1,{851:1},m5n),o.Kk=function(){return Zen(),jfe};var ldt=w(wi,"XMLTypePackageImpl/1",1961);b(1970,1,rt,k5n),o.fk=function(e){return Fi(e)},o.gk=function(e){return _(dn,Q,2,e,6,1)};var adt=w(wi,"XMLTypePackageImpl/10",1970);b(1971,1,rt,y5n),o.fk=function(e){return Fi(e)},o.gk=function(e){return _(dn,Q,2,e,6,1)};var ddt=w(wi,"XMLTypePackageImpl/11",1971);b(1972,1,rt,j5n),o.fk=function(e){return Fi(e)},o.gk=function(e){return _(dn,Q,2,e,6,1)};var bdt=w(wi,"XMLTypePackageImpl/12",1972);b(1973,1,rt,E5n),o.fk=function(e){return Db(e)},o.gk=function(e){return _(gi,Q,345,e,7,1)};var wdt=w(wi,"XMLTypePackageImpl/13",1973);b(1974,1,rt,M5n),o.fk=function(e){return Fi(e)},o.gk=function(e){return _(dn,Q,2,e,6,1)};var gdt=w(wi,"XMLTypePackageImpl/14",1974);b(1975,1,rt,C5n),o.fk=function(e){return L(e,15)},o.gk=function(e){return _(ss,vw,15,e,0,1)};var pdt=w(wi,"XMLTypePackageImpl/15",1975);b(1976,1,rt,T5n),o.fk=function(e){return L(e,15)},o.gk=function(e){return _(ss,vw,15,e,0,1)};var vdt=w(wi,"XMLTypePackageImpl/16",1976);b(1977,1,rt,A5n),o.fk=function(e){return Fi(e)},o.gk=function(e){return _(dn,Q,2,e,6,1)};var mdt=w(wi,"XMLTypePackageImpl/17",1977);b(1978,1,rt,I5n),o.fk=function(e){return L(e,161)},o.gk=function(e){return _(cm,Q,161,e,0,1)};var kdt=w(wi,"XMLTypePackageImpl/18",1978);b(1979,1,rt,P5n),o.fk=function(e){return Fi(e)},o.gk=function(e){return _(dn,Q,2,e,6,1)};var ydt=w(wi,"XMLTypePackageImpl/19",1979);b(1962,1,rt,O5n),o.fk=function(e){return L(e,857)},o.gk=function(e){return _(gE,Gn,857,e,0,1)};var jdt=w(wi,"XMLTypePackageImpl/2",1962);b(1980,1,rt,L5n),o.fk=function(e){return Fi(e)},o.gk=function(e){return _(dn,Q,2,e,6,1)};var Edt=w(wi,"XMLTypePackageImpl/20",1980);b(1981,1,rt,D5n),o.fk=function(e){return Fi(e)},o.gk=function(e){return _(dn,Q,2,e,6,1)};var Mdt=w(wi,"XMLTypePackageImpl/21",1981);b(1982,1,rt,N5n),o.fk=function(e){return Fi(e)},o.gk=function(e){return _(dn,Q,2,e,6,1)};var Cdt=w(wi,"XMLTypePackageImpl/22",1982);b(1983,1,rt,x5n),o.fk=function(e){return Fi(e)},o.gk=function(e){return _(dn,Q,2,e,6,1)};var Tdt=w(wi,"XMLTypePackageImpl/23",1983);b(1984,1,rt,F5n),o.fk=function(e){return L(e,195)},o.gk=function(e){return _(qu,Q,195,e,0,2)};var Adt=w(wi,"XMLTypePackageImpl/24",1984);b(1985,1,rt,$5n),o.fk=function(e){return Fi(e)},o.gk=function(e){return _(dn,Q,2,e,6,1)};var Sdt=w(wi,"XMLTypePackageImpl/25",1985);b(1986,1,rt,R5n),o.fk=function(e){return Fi(e)},o.gk=function(e){return _(dn,Q,2,e,6,1)};var Idt=w(wi,"XMLTypePackageImpl/26",1986);b(1987,1,rt,B5n),o.fk=function(e){return L(e,15)},o.gk=function(e){return _(ss,vw,15,e,0,1)};var Pdt=w(wi,"XMLTypePackageImpl/27",1987);b(1988,1,rt,K5n),o.fk=function(e){return L(e,15)},o.gk=function(e){return _(ss,vw,15,e,0,1)};var Odt=w(wi,"XMLTypePackageImpl/28",1988);b(1989,1,rt,_5n),o.fk=function(e){return Fi(e)},o.gk=function(e){return _(dn,Q,2,e,6,1)};var Ldt=w(wi,"XMLTypePackageImpl/29",1989);b(1963,1,rt,H5n),o.fk=function(e){return L(e,681)},o.gk=function(e){return _(OO,Gn,2119,e,0,1)};var Ddt=w(wi,"XMLTypePackageImpl/3",1963);b(1990,1,rt,q5n),o.fk=function(e){return L(e,17)},o.gk=function(e){return _(Yi,Q,17,e,0,1)};var Ndt=w(wi,"XMLTypePackageImpl/30",1990);b(1991,1,rt,G5n),o.fk=function(e){return Fi(e)},o.gk=function(e){return _(dn,Q,2,e,6,1)};var xdt=w(wi,"XMLTypePackageImpl/31",1991);b(1992,1,rt,U5n),o.fk=function(e){return L(e,168)},o.gk=function(e){return _(eb,Q,168,e,0,1)};var Fdt=w(wi,"XMLTypePackageImpl/32",1992);b(1993,1,rt,z5n),o.fk=function(e){return Fi(e)},o.gk=function(e){return _(dn,Q,2,e,6,1)};var $dt=w(wi,"XMLTypePackageImpl/33",1993);b(1994,1,rt,X5n),o.fk=function(e){return Fi(e)},o.gk=function(e){return _(dn,Q,2,e,6,1)};var Rdt=w(wi,"XMLTypePackageImpl/34",1994);b(1995,1,rt,W5n),o.fk=function(e){return Fi(e)},o.gk=function(e){return _(dn,Q,2,e,6,1)};var Bdt=w(wi,"XMLTypePackageImpl/35",1995);b(1996,1,rt,V5n),o.fk=function(e){return Fi(e)},o.gk=function(e){return _(dn,Q,2,e,6,1)};var Kdt=w(wi,"XMLTypePackageImpl/36",1996);b(1997,1,rt,J5n),o.fk=function(e){return L(e,15)},o.gk=function(e){return _(ss,vw,15,e,0,1)};var _dt=w(wi,"XMLTypePackageImpl/37",1997);b(1998,1,rt,Q5n),o.fk=function(e){return L(e,15)},o.gk=function(e){return _(ss,vw,15,e,0,1)};var Hdt=w(wi,"XMLTypePackageImpl/38",1998);b(1999,1,rt,Y5n),o.fk=function(e){return Fi(e)},o.gk=function(e){return _(dn,Q,2,e,6,1)};var qdt=w(wi,"XMLTypePackageImpl/39",1999);b(1964,1,rt,Z5n),o.fk=function(e){return L(e,682)},o.gk=function(e){return _(pE,Gn,2120,e,0,1)};var Gdt=w(wi,"XMLTypePackageImpl/4",1964);b(2e3,1,rt,n8n),o.fk=function(e){return Fi(e)},o.gk=function(e){return _(dn,Q,2,e,6,1)};var Udt=w(wi,"XMLTypePackageImpl/40",2e3);b(2001,1,rt,e8n),o.fk=function(e){return Fi(e)},o.gk=function(e){return _(dn,Q,2,e,6,1)};var zdt=w(wi,"XMLTypePackageImpl/41",2001);b(2002,1,rt,t8n),o.fk=function(e){return Fi(e)},o.gk=function(e){return _(dn,Q,2,e,6,1)};var Xdt=w(wi,"XMLTypePackageImpl/42",2002);b(2003,1,rt,i8n),o.fk=function(e){return Fi(e)},o.gk=function(e){return _(dn,Q,2,e,6,1)};var Wdt=w(wi,"XMLTypePackageImpl/43",2003);b(2004,1,rt,r8n),o.fk=function(e){return Fi(e)},o.gk=function(e){return _(dn,Q,2,e,6,1)};var Vdt=w(wi,"XMLTypePackageImpl/44",2004);b(2005,1,rt,c8n),o.fk=function(e){return L(e,191)},o.gk=function(e){return _(tb,Q,191,e,0,1)};var Jdt=w(wi,"XMLTypePackageImpl/45",2005);b(2006,1,rt,u8n),o.fk=function(e){return Fi(e)},o.gk=function(e){return _(dn,Q,2,e,6,1)};var Qdt=w(wi,"XMLTypePackageImpl/46",2006);b(2007,1,rt,o8n),o.fk=function(e){return Fi(e)},o.gk=function(e){return _(dn,Q,2,e,6,1)};var Ydt=w(wi,"XMLTypePackageImpl/47",2007);b(2008,1,rt,s8n),o.fk=function(e){return Fi(e)},o.gk=function(e){return _(dn,Q,2,e,6,1)};var Zdt=w(wi,"XMLTypePackageImpl/48",2008);b(2009,1,rt,f8n),o.fk=function(e){return L(e,191)},o.gk=function(e){return _(tb,Q,191,e,0,1)};var n0t=w(wi,"XMLTypePackageImpl/49",2009);b(1965,1,rt,h8n),o.fk=function(e){return L(e,683)},o.gk=function(e){return _(y0n,Gn,2121,e,0,1)};var e0t=w(wi,"XMLTypePackageImpl/5",1965);b(2010,1,rt,l8n),o.fk=function(e){return L(e,168)},o.gk=function(e){return _(eb,Q,168,e,0,1)};var t0t=w(wi,"XMLTypePackageImpl/50",2010);b(2011,1,rt,a8n),o.fk=function(e){return Fi(e)},o.gk=function(e){return _(dn,Q,2,e,6,1)};var i0t=w(wi,"XMLTypePackageImpl/51",2011);b(2012,1,rt,d8n),o.fk=function(e){return L(e,17)},o.gk=function(e){return _(Yi,Q,17,e,0,1)};var r0t=w(wi,"XMLTypePackageImpl/52",2012);b(1966,1,rt,b8n),o.fk=function(e){return Fi(e)},o.gk=function(e){return _(dn,Q,2,e,6,1)};var c0t=w(wi,"XMLTypePackageImpl/6",1966);b(1967,1,rt,w8n),o.fk=function(e){return L(e,195)},o.gk=function(e){return _(qu,Q,195,e,0,2)};var u0t=w(wi,"XMLTypePackageImpl/7",1967);b(1968,1,rt,g8n),o.fk=function(e){return Lb(e)},o.gk=function(e){return _(ei,Q,485,e,8,1)};var o0t=w(wi,"XMLTypePackageImpl/8",1968);b(1969,1,rt,p8n),o.fk=function(e){return L(e,222)},o.gk=function(e){return _(wv,Q,222,e,0,1)};var s0t=w(wi,"XMLTypePackageImpl/9",1969),rh,N1,K9,LO,I;b(55,63,Ll,qe);var f0t=w(k1,"RegEx/ParseException",55);b(836,1,{},kU),o.bm=function(e){return ei*16)throw C(new qe(ze((Ke(),NJn))));i=i*16+c}while(!0);if(this.a!=125)throw C(new qe(ze((Ke(),xJn))));if(i>tm)throw C(new qe(ze((Ke(),FJn))));e=i}else{if(c=0,this.c!=0||(c=dd(this.a))<0)throw C(new qe(ze((Ke(),m1))));if(i=c,ht(this),this.c!=0||(c=dd(this.a))<0)throw C(new qe(ze((Ke(),m1))));i=i*16+c,e=i}break;case 117:if(r=0,ht(this),this.c!=0||(r=dd(this.a))<0)throw C(new qe(ze((Ke(),m1))));if(t=r,ht(this),this.c!=0||(r=dd(this.a))<0)throw C(new qe(ze((Ke(),m1))));if(t=t*16+r,ht(this),this.c!=0||(r=dd(this.a))<0)throw C(new qe(ze((Ke(),m1))));if(t=t*16+r,ht(this),this.c!=0||(r=dd(this.a))<0)throw C(new qe(ze((Ke(),m1))));t=t*16+r,e=t;break;case 118:if(ht(this),this.c!=0||(r=dd(this.a))<0)throw C(new qe(ze((Ke(),m1))));if(t=r,ht(this),this.c!=0||(r=dd(this.a))<0)throw C(new qe(ze((Ke(),m1))));if(t=t*16+r,ht(this),this.c!=0||(r=dd(this.a))<0)throw C(new qe(ze((Ke(),m1))));if(t=t*16+r,ht(this),this.c!=0||(r=dd(this.a))<0)throw C(new qe(ze((Ke(),m1))));if(t=t*16+r,ht(this),this.c!=0||(r=dd(this.a))<0)throw C(new qe(ze((Ke(),m1))));if(t=t*16+r,ht(this),this.c!=0||(r=dd(this.a))<0)throw C(new qe(ze((Ke(),m1))));if(t=t*16+r,t>tm)throw C(new qe(ze((Ke(),"parser.descappe.4"))));e=t;break;case 65:case 90:case 122:throw C(new qe(ze((Ke(),$Jn))))}return e},o.dm=function(e){var t,i;switch(e){case 100:i=(this.e&32)==32?sa("Nd",!0):(lt(),DO);break;case 68:i=(this.e&32)==32?sa("Nd",!1):(lt(),P0n);break;case 119:i=(this.e&32)==32?sa("IsWord",!0):(lt(),qm);break;case 87:i=(this.e&32)==32?sa("IsWord",!1):(lt(),L0n);break;case 115:i=(this.e&32)==32?sa("IsSpace",!0):(lt(),Kv);break;case 83:i=(this.e&32)==32?sa("IsSpace",!1):(lt(),O0n);break;default:throw C(new oc((t=e,$Qn+t.toString(16))))}return i},o.em=function(e){var t,i,r,c,s,f,h,l,a,d,g,p;for(this.b=1,ht(this),t=null,this.c==0&&this.a==94?(ht(this),e?d=(lt(),lt(),++Vt,new Co(5)):(t=(lt(),lt(),++Vt,new Co(4)),Gc(t,0,tm),d=(++Vt,new Co(4)))):d=(lt(),lt(),++Vt,new Co(4)),c=!0;(p=this.c)!=1&&!(p==0&&this.a==93&&!c);){if(c=!1,i=this.a,r=!1,p==10)switch(i){case 100:case 68:case 119:case 87:case 115:case 83:bw(d,this.dm(i)),r=!0;break;case 105:case 73:case 99:case 67:i=this.um(d,i),i<0&&(r=!0);break;case 112:case 80:if(g=Qnn(this,i),!g)throw C(new qe(ze((Ke(),xK))));bw(d,g),r=!0;break;default:i=this.cm()}else if(p==20){if(f=a3(this.i,58,this.d),f<0)throw C(new qe(ze((Ke(),eun))));if(h=!0,nr(this.i,this.d)==94&&(++this.d,h=!1),s=Xo(this.i,this.d,f),l=sxn(s,h,(this.e&512)==512),!l)throw C(new qe(ze((Ke(),IJn))));if(bw(d,l),r=!0,f+1>=this.j||nr(this.i,f+1)!=93)throw C(new qe(ze((Ke(),eun))));this.d=f+2}if(ht(this),!r)if(this.c!=0||this.a!=45)Gc(d,i,i);else{if(ht(this),(p=this.c)==1)throw C(new qe(ze((Ke(),WS))));p==0&&this.a==93?(Gc(d,i,i),Gc(d,45,45)):(a=this.a,p==10&&(a=this.cm()),ht(this),Gc(d,i,a))}(this.e&Vs)==Vs&&this.c==0&&this.a==44&&ht(this)}if(this.c==1)throw C(new qe(ze((Ke(),WS))));return t&&(Q5(t,d),d=t),Hg(d),V5(d),this.b=0,ht(this),d},o.fm=function(){var e,t,i,r;for(i=this.em(!1);(r=this.c)!=7;)if(e=this.a,r==0&&(e==45||e==38)||r==4){if(ht(this),this.c!=9)throw C(new qe(ze((Ke(),OJn))));if(t=this.em(!1),r==4)bw(i,t);else if(e==45)Q5(i,t);else if(e==38)wzn(i,t);else throw C(new oc("ASSERT"))}else throw C(new qe(ze((Ke(),LJn))));return ht(this),i},o.gm=function(){var e,t;return e=this.a-48,t=(lt(),lt(),++Vt,new HN(12,null,e)),!this.g&&(this.g=new HE),_E(this.g,new ez(e)),ht(this),t},o.hm=function(){return ht(this),lt(),gfe},o.im=function(){return ht(this),lt(),wfe},o.jm=function(){throw C(new qe(ze((Ke(),os))))},o.km=function(){throw C(new qe(ze((Ke(),os))))},o.lm=function(){return ht(this),h8e()},o.mm=function(){return ht(this),lt(),vfe},o.nm=function(){return ht(this),lt(),kfe},o.om=function(){var e;if(this.d>=this.j||((e=nr(this.i,this.d++))&65504)!=64)throw C(new qe(ze((Ke(),TJn))));return ht(this),lt(),lt(),++Vt,new Rh(0,e-64)},o.pm=function(){return ht(this),dOe()},o.qm=function(){return ht(this),lt(),yfe},o.rm=function(){var e;return e=(lt(),lt(),++Vt,new Rh(0,105)),ht(this),e},o.sm=function(){return ht(this),lt(),mfe},o.tm=function(){return ht(this),lt(),pfe},o.um=function(e,t){return this.cm()},o.vm=function(){return ht(this),lt(),S0n},o.wm=function(){var e,t,i,r,c;if(this.d+1>=this.j)throw C(new qe(ze((Ke(),EJn))));if(r=-1,t=null,e=nr(this.i,this.d),49<=e&&e<=57){if(r=e-48,!this.g&&(this.g=new HE),_E(this.g,new ez(r)),++this.d,nr(this.i,this.d)!=41)throw C(new qe(ze((Ke(),Td))));++this.d}else switch(e==63&&--this.d,ht(this),t=Mtn(this),t.e){case 20:case 21:case 22:case 23:break;case 8:if(this.c!=7)throw C(new qe(ze((Ke(),Td))));break;default:throw C(new qe(ze((Ke(),MJn))))}if(ht(this),c=$0(this),i=null,c.e==2){if(c.Pm()!=2)throw C(new qe(ze((Ke(),CJn))));i=c.Lm(1),c=c.Lm(0)}if(this.c!=7)throw C(new qe(ze((Ke(),Td))));return ht(this),lt(),lt(),++Vt,new qxn(r,t,c,i)},o.xm=function(){return ht(this),lt(),I0n},o.ym=function(){var e;if(ht(this),e=mC(24,$0(this)),this.c!=7)throw C(new qe(ze((Ke(),Td))));return ht(this),e},o.zm=function(){var e;if(ht(this),e=mC(20,$0(this)),this.c!=7)throw C(new qe(ze((Ke(),Td))));return ht(this),e},o.Am=function(){var e;if(ht(this),e=mC(22,$0(this)),this.c!=7)throw C(new qe(ze((Ke(),Td))));return ht(this),e},o.Bm=function(){var e,t,i,r,c;for(e=0,i=0,t=-1;this.d=this.j)throw C(new qe(ze((Ke(),Zcn))));if(t==45){for(++this.d;this.d=this.j)throw C(new qe(ze((Ke(),Zcn))))}if(t==58){if(++this.d,ht(this),r=RPn($0(this),e,i),this.c!=7)throw C(new qe(ze((Ke(),Td))));ht(this)}else if(t==41)++this.d,ht(this),r=RPn($0(this),e,i);else throw C(new qe(ze((Ke(),jJn))));return r},o.Cm=function(){var e;if(ht(this),e=mC(21,$0(this)),this.c!=7)throw C(new qe(ze((Ke(),Td))));return ht(this),e},o.Dm=function(){var e;if(ht(this),e=mC(23,$0(this)),this.c!=7)throw C(new qe(ze((Ke(),Td))));return ht(this),e},o.Em=function(){var e,t;if(ht(this),e=this.f++,t=gN($0(this),e),this.c!=7)throw C(new qe(ze((Ke(),Td))));return ht(this),t},o.Fm=function(){var e;if(ht(this),e=gN($0(this),0),this.c!=7)throw C(new qe(ze((Ke(),Td))));return ht(this),e},o.Gm=function(e){return ht(this),this.c==5?(ht(this),hC(e,(lt(),lt(),++Vt,new Ub(9,e)))):hC(e,(lt(),lt(),++Vt,new Ub(3,e)))},o.Hm=function(e){var t;return ht(this),t=(lt(),lt(),++Vt,new I6(2)),this.c==5?(ht(this),gd(t,H9),gd(t,e)):(gd(t,e),gd(t,H9)),t},o.Im=function(e){return ht(this),this.c==5?(ht(this),lt(),lt(),++Vt,new Ub(9,e)):(lt(),lt(),++Vt,new Ub(3,e))},o.a=0,o.b=0,o.c=0,o.d=0,o.e=0,o.f=1,o.g=null,o.j=0;var h0t=w(k1,"RegEx/RegexParser",836);b(1947,836,{},uEn),o.bm=function(e){return!1},o.cm=function(){return Len(this)},o.dm=function(e){return A4(e)},o.em=function(e){return hXn(this)},o.fm=function(){throw C(new qe(ze((Ke(),os))))},o.gm=function(){throw C(new qe(ze((Ke(),os))))},o.hm=function(){throw C(new qe(ze((Ke(),os))))},o.im=function(){throw C(new qe(ze((Ke(),os))))},o.jm=function(){return ht(this),A4(67)},o.km=function(){return ht(this),A4(73)},o.lm=function(){throw C(new qe(ze((Ke(),os))))},o.mm=function(){throw C(new qe(ze((Ke(),os))))},o.nm=function(){throw C(new qe(ze((Ke(),os))))},o.om=function(){return ht(this),A4(99)},o.pm=function(){throw C(new qe(ze((Ke(),os))))},o.qm=function(){throw C(new qe(ze((Ke(),os))))},o.rm=function(){return ht(this),A4(105)},o.sm=function(){throw C(new qe(ze((Ke(),os))))},o.tm=function(){throw C(new qe(ze((Ke(),os))))},o.um=function(e,t){return bw(e,A4(t)),-1},o.vm=function(){return ht(this),lt(),lt(),++Vt,new Rh(0,94)},o.wm=function(){throw C(new qe(ze((Ke(),os))))},o.xm=function(){return ht(this),lt(),lt(),++Vt,new Rh(0,36)},o.ym=function(){throw C(new qe(ze((Ke(),os))))},o.zm=function(){throw C(new qe(ze((Ke(),os))))},o.Am=function(){throw C(new qe(ze((Ke(),os))))},o.Bm=function(){throw C(new qe(ze((Ke(),os))))},o.Cm=function(){throw C(new qe(ze((Ke(),os))))},o.Dm=function(){throw C(new qe(ze((Ke(),os))))},o.Em=function(){var e;if(ht(this),e=gN($0(this),0),this.c!=7)throw C(new qe(ze((Ke(),Td))));return ht(this),e},o.Fm=function(){throw C(new qe(ze((Ke(),os))))},o.Gm=function(e){return ht(this),hC(e,(lt(),lt(),++Vt,new Ub(3,e)))},o.Hm=function(e){var t;return ht(this),t=(lt(),lt(),++Vt,new I6(2)),gd(t,e),gd(t,H9),t},o.Im=function(e){return ht(this),lt(),lt(),++Vt,new Ub(3,e)};var G2=null,_m=null,l0t=w(k1,"RegEx/ParserForXMLSchema",1947);b(122,1,im,Wd),o.Jm=function(e){throw C(new oc("Not supported."))},o.Km=function(){return-1},o.Lm=function(e){return null},o.Mm=function(){return null},o.Nm=function(e){},o.Om=function(e){},o.Pm=function(){return 0},o.Ib=function(){return this.Qm(0)},o.Qm=function(e){return this.e==11?".":""},o.e=0;var C0n,Hm,_9,bfe,T0n,tg=null,DO,GG=null,A0n,H9,UG=null,S0n,I0n,P0n,O0n,L0n,wfe,Kv,gfe,pfe,vfe,mfe,qm,kfe,yfe,Vt=0,EFe=w(k1,"RegEx/Token",122);b(138,122,{3:1,138:1,122:1},Co),o.Qm=function(e){var t,i,r;if(this.e==4)if(this==A0n)i=".";else if(this==DO)i="\\d";else if(this==qm)i="\\w";else if(this==Kv)i="\\s";else{for(r=new Ul,r.a+="[",t=0;t0&&(r.a+=","),this.b[t]===this.b[t+1]?Or(r,gy(this.b[t])):(Or(r,gy(this.b[t])),r.a+="-",Or(r,gy(this.b[t+1])));r.a+="]",i=r.a}else if(this==P0n)i="\\D";else if(this==L0n)i="\\W";else if(this==O0n)i="\\S";else{for(r=new Ul,r.a+="[^",t=0;t0&&(r.a+=","),this.b[t]===this.b[t+1]?Or(r,gy(this.b[t])):(Or(r,gy(this.b[t])),r.a+="-",Or(r,gy(this.b[t+1])));r.a+="]",i=r.a}return i},o.a=!1,o.c=!1;var a0t=w(k1,"RegEx/RangeToken",138);b(592,1,{592:1},ez),o.a=0;var d0t=w(k1,"RegEx/RegexParser/ReferencePosition",592);b(591,1,{3:1,591:1},yMn),o.Fb=function(e){var t;return e==null||!L(e,591)?!1:(t=u(e,591),On(this.b,t.b)&&this.a==t.a)},o.Hb=function(){return c1(this.b+"/"+Cen(this.a))},o.Ib=function(){return this.c.Qm(this.a)},o.a=0;var b0t=w(k1,"RegEx/RegularExpression",591);b(228,122,im,Rh),o.Km=function(){return this.a},o.Qm=function(e){var t,i,r;switch(this.e){case 0:switch(this.a){case 124:case 42:case 43:case 63:case 40:case 41:case 46:case 91:case 123:case 92:r="\\"+UD(this.a&bi);break;case 12:r="\\f";break;case 10:r="\\n";break;case 13:r="\\r";break;case 9:r="\\t";break;case 27:r="\\e";break;default:this.a>=pr?(i=(t=this.a>>>0,"0"+t.toString(16)),r="\\v"+Xo(i,i.length-6,i.length)):r=""+UD(this.a&bi)}break;case 8:this==S0n||this==I0n?r=""+UD(this.a&bi):r="\\"+UD(this.a&bi);break;default:r=null}return r},o.a=0;var w0t=w(k1,"RegEx/Token/CharToken",228);b(318,122,im,Ub),o.Lm=function(e){return this.a},o.Nm=function(e){this.b=e},o.Om=function(e){this.c=e},o.Pm=function(){return 1},o.Qm=function(e){var t;if(this.e==3)if(this.c<0&&this.b<0)t=this.a.Qm(e)+"*";else if(this.c==this.b)t=this.a.Qm(e)+"{"+this.c+"}";else if(this.c>=0&&this.b>=0)t=this.a.Qm(e)+"{"+this.c+","+this.b+"}";else if(this.c>=0&&this.b<0)t=this.a.Qm(e)+"{"+this.c+",}";else throw C(new oc("Token#toString(): CLOSURE "+this.c+dr+this.b));else if(this.c<0&&this.b<0)t=this.a.Qm(e)+"*?";else if(this.c==this.b)t=this.a.Qm(e)+"{"+this.c+"}?";else if(this.c>=0&&this.b>=0)t=this.a.Qm(e)+"{"+this.c+","+this.b+"}?";else if(this.c>=0&&this.b<0)t=this.a.Qm(e)+"{"+this.c+",}?";else throw C(new oc("Token#toString(): NONGREEDYCLOSURE "+this.c+dr+this.b));return t},o.b=0,o.c=0;var g0t=w(k1,"RegEx/Token/ClosureToken",318);b(837,122,im,GV),o.Lm=function(e){return e==0?this.a:this.b},o.Pm=function(){return 2},o.Qm=function(e){var t;return this.b.e==3&&this.b.Lm(0)==this.a?t=this.a.Qm(e)+"+":this.b.e==9&&this.b.Lm(0)==this.a?t=this.a.Qm(e)+"+?":t=this.a.Qm(e)+(""+this.b.Qm(e)),t};var p0t=w(k1,"RegEx/Token/ConcatToken",837);b(1945,122,im,qxn),o.Lm=function(e){if(e==0)return this.d;if(e==1)return this.b;throw C(new oc("Internal Error: "+e))},o.Pm=function(){return this.b?2:1},o.Qm=function(e){var t;return this.c>0?t="(?("+this.c+")":this.a.e==8?t="(?("+this.a+")":t="(?"+this.a,this.b?t+=this.d+"|"+this.b+")":t+=this.d+")",t},o.c=0;var v0t=w(k1,"RegEx/Token/ConditionToken",1945);b(1946,122,im,DLn),o.Lm=function(e){return this.b},o.Pm=function(){return 1},o.Qm=function(e){return"(?"+(this.a==0?"":Cen(this.a))+(this.c==0?"":Cen(this.c))+":"+this.b.Qm(e)+")"},o.a=0,o.c=0;var m0t=w(k1,"RegEx/Token/ModifierToken",1946);b(838,122,im,nJ),o.Lm=function(e){return this.a},o.Pm=function(){return 1},o.Qm=function(e){var t;switch(t=null,this.e){case 6:this.b==0?t="(?:"+this.a.Qm(e)+")":t="("+this.a.Qm(e)+")";break;case 20:t="(?="+this.a.Qm(e)+")";break;case 21:t="(?!"+this.a.Qm(e)+")";break;case 22:t="(?<="+this.a.Qm(e)+")";break;case 23:t="(?"+this.a.Qm(e)+")"}return t},o.b=0;var k0t=w(k1,"RegEx/Token/ParenToken",838);b(530,122,{3:1,122:1,530:1},HN),o.Mm=function(){return this.b},o.Qm=function(e){return this.e==12?"\\"+this.a:cAe(this.b)},o.a=0;var y0t=w(k1,"RegEx/Token/StringToken",530);b(477,122,im,I6),o.Jm=function(e){gd(this,e)},o.Lm=function(e){return u(m0(this.a,e),122)},o.Pm=function(){return this.a?this.a.a.c.length:0},o.Qm=function(e){var t,i,r,c,s;if(this.e==1){if(this.a.a.c.length==2)t=u(m0(this.a,0),122),i=u(m0(this.a,1),122),i.e==3&&i.Lm(0)==t?c=t.Qm(e)+"+":i.e==9&&i.Lm(0)==t?c=t.Qm(e)+"+?":c=t.Qm(e)+(""+i.Qm(e));else{for(s=new Ul,r=0;r=this.c.b:this.a<=this.c.b},o.Sb=function(){return this.b>0},o.Tb=function(){return this.b},o.Vb=function(){return this.b-1},o.Qb=function(){throw C(new ql(GQn))},o.a=0,o.b=0;var A0t=w(kun,"ExclusiveRange/RangeIterator",258),ds=M3(VS,"C"),Oe=M3(M8,"I"),ao=M3(ev,"Z"),$a=M3(C8,"J"),qu=M3(y8,"B"),Ri=M3(j8,"D"),ig=M3(E8,"F"),U2=M3(T8,"S"),MFe=Ut("org.eclipse.elk.core.labels","ILabelManager"),D0n=Ut(br,"DiagnosticChain"),N0n=Ut(vQn,"ResourceSet"),x0n=w(br,"InvocationTargetException",null),Efe=(zE(),R4e),Mfe=Mfe=Ije;O6e(Ale),A6e("permProps",[[["locale","default"],[UQn,"gecko1_8"]],[["locale","default"],[UQn,"safari"]]]),Mfe(null,"elk",null)}).call(this)}).call(this,typeof global<"u"?global:typeof self<"u"?self:typeof window<"u"?window:{})},{}],3:[function(bn,on,Rn){"use strict";function Bn(Ue,ae){if(!(Ue instanceof ae))throw new TypeError("Cannot call a class as a function")}function y(Ue,ae){if(!Ue)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return ae&&(typeof ae=="object"||typeof ae=="function")?ae:Ue}function ke(Ue,ae){if(typeof ae!="function"&&ae!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof ae);Ue.prototype=Object.create(ae&&ae.prototype,{constructor:{value:Ue,enumerable:!1,writable:!0,configurable:!0}}),ae&&(Object.setPrototypeOf?Object.setPrototypeOf(Ue,ae):Ue.__proto__=ae)}var Ie=bn("./elk-api.js").default,tt=(function(Ue){ke(ae,Ue);function ae(){var vt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Bn(this,ae);var ji=Object.assign({},vt),Mc=!1;try{bn.resolve("web-worker"),Mc=!0}catch{}if(vt.workerUrl)if(Mc){var ci=bn("web-worker");ji.workerFactory=function(zn){return new ci(zn)}}else console.warn(`Web worker requested but 'web-worker' package not installed. +Consider installing the package or pass your own 'workerFactory' to ELK's constructor. +... Falling back to non-web worker version.`);if(!ji.workerFactory){var wr=bn("./elk-worker.min.js"),kr=wr.Worker;ji.workerFactory=function(zn){return new kr(zn)}}return y(this,(ae.__proto__||Object.getPrototypeOf(ae)).call(this,ji))}return ae})(Ie);Object.defineProperty(on.exports,"__esModule",{value:!0}),on.exports=tt,tt.default=tt},{"./elk-api.js":1,"./elk-worker.min.js":2,"web-worker":4}],4:[function(bn,on,Rn){on.exports=Worker},{}]},{},[3])(3)})});var Bfe=TFe(xfe(),1),Kfe=gt((B,tn,{parentById:sn})=>{let bn=new Set,on=B;if(B===tn)return sn[B]||"root";for(;on;){if(bn.add(on),on===tn)return on;on=sn[on]}for(on=tn;on;){if(bn.has(on))return on;on=sn[on]}return"root"},"findCommonAncestor"),AFe=6;function _fe(B,{measure:tn}){let sn=B.config?.elk?.lineHops;if(sn===!1)return;let bn=B.edges.filter(on=>Array.isArray(on.points)&&on.points.length>=2).map(on=>({id:on.id,points:on.points,curve:on.curve,arrowTypeStart:on.arrowTypeStart,arrowTypeEnd:on.arrowTypeEnd}));Ofe(tn.groups.edgePaths,bn,{enabled:!0,jumpRadius:AFe,jumpStyle:sn==="gap"?"gap":"arc"})}gt(_fe,"applyElkLineJumps");var SFe={},IFe={},PFe={},OFe={},_O=1,LFe=10,KO=gt((B,tn,sn=.5)=>{let bn=B.width/2,on=B.height/2,Rn=B.x-bn,Bn=B.x+bn,y=B.y-on,ke=B.y+on,Ie=Math.abs(tn.x-Rn)<=sn&&tn.y>=y-sn&&tn.y<=ke+sn,tt=Math.abs(tn.x-Bn)<=sn&&tn.y>=y-sn&&tn.y<=ke+sn,Ue=Math.abs(tn.y-y)<=sn&&tn.x>=Rn-sn&&tn.x<=Bn+sn,ae=Math.abs(tn.y-ke)<=sn&&tn.x>=Rn-sn&&tn.x<=Bn+sn;return Ie||tt||Ue||ae},"onBorder"),DFe=gt((B,tn,sn)=>{let bn=B.x,on=B.y,Rn=Math.abs(bn-sn.x),Bn=B.width/2,y=sn.xMath.abs(bn-tn.x)*ke){let Ue=sn.y{let sn=B.x,bn=B.y,on=Math.abs(tn.x-sn),Rn=Math.abs(tn.y-bn),Bn=B.width/2,y=B.height/2;return on>=Bn||Rn>=y},"outsideNode"),NFe=gt((B,tn,sn=LFe)=>{let bn=Math.abs(tn.x-B.x),on=Math.abs(tn.y-B.y),Rn=B.width/2,Bn=B.height/2;if(Math.abs(bn-Rn)<_O||Math.abs(on-Bn)<_O){let y=tn.x-B.x,ke=tn.y-B.y,Ie=Math.sqrt(y*y+ke*ke);if(Ie>0)return{x:B.x+y/Ie*(Ie+sn),y:B.y+ke/Ie*(Ie+sn)}}return tn},"ensureTrulyOutside"),xFe=gt((B,tn,sn)=>{let bn=Math.abs(tn.x-B.x)<_O,on=Math.abs(tn.y-B.y)<_O;return{x:bn?tn.x:tn.x{if(!B?.intersect)return null;let bn=B.intersect(sn);return!bn||sn.xtn.x||sn.x>tn.x&&bn.x{let bn=xFe(B,tn,sn);return DFe(B,tn,bn)},"fallbackIntersection"),RFe=20,Ffe=1e-6,B0n=gt((B,tn,sn)=>{let bn=B.intersect?.(sn);if(!bn)return!1;let on=Math.hypot(sn.x-tn.x,sn.y-tn.y),Rn=Math.hypot(bn.x-tn.x,bn.y-tn.y);return on<=Rn+1e-9},"insideOutline"),BFe=gt((B,tn,sn,bn)=>{if(!B?.intersect)return null;let on=bn.x-sn.x,Rn=bn.y-sn.y;if(on===0&&Rn===0||Math.abs(on)>Ffe&&Math.abs(Rn)>Ffe)return null;let Bn={x:tn.x,y:tn.y},y=Math.abs(on)>Math.abs(Rn),ke=gt(Ue=>y?{x:Ue,y:sn.y}:{x:sn.x,y:Ue},"along"),Ie=y?Bn.x:Bn.y,tt=y?sn.x:sn.y;if(!B0n(B,Bn,ke(Ie)))return null;if(B0n(B,Bn,ke(tt)))return{...sn};for(let Ue=0;Ue{let on=NFe(tn,sn);return FFe(B,tn,on)??$Fe(tn,on,bn)},"computeNodeIntersection"),VG=gt((B,tn,sn,bn=.1)=>{if(!(!sn||B.length===0))if(tn==="start")B.length>0&&Math.abs(B[0].x-sn.x)0&&Math.abs(B[on].x-sn.x)typeof B!="string"?0:Math.max(Ife[B]??0,Pfe[B]??0),"markerPathOffset"),$fe={arrow_open:["none","none"],arrow_cross:["none","arrow_cross"],double_arrow_cross:["arrow_cross","arrow_cross"],arrow_point:["none","arrow_point"],double_arrow_point:["arrow_point","arrow_point"],arrow_circle:["none","arrow_circle"],double_arrow_circle:["arrow_circle","arrow_circle"]},$O=12,Gfe=`[top=${$O},left=${$O},bottom=${$O},right=${$O}]`,z9=24,Ufe=24,zfe=50,xO=15,FO=10,Y0n={"spacing.baseValue":15,"spacing.nodeNode":15,"elk.aspectRatio":"1.6","elk.expandNodes":"true","elk.rectpacking.trybox":"true","elk.rectpacking.packing.compaction.rowHeightReevaluation":"true","elk.rectpacking.packing.compaction.iterations":10,"elk.rectpacking.whiteSpaceElimination.strategy":"EQUAL_BETWEEN_STRUCTURES","elk.rectpacking.widthApproximation.strategy":"SCANLINE"},KFe=["nodeSize.constraints","nodeSize.minimum","elk.algorithm","elk.aspectRatio","elk.contentAlignment","elk.expandNodes","elk.padding",...Object.keys(Y0n)];function Xfe(B){for(let tn of KFe)delete B[tn];B["spacing.baseValue"]=Ufe,B["spacing.nodeNode"]=zfe}gt(Xfe,"clearContainerAlgorithmOptions");var Rfe=new Set(["elk.layered","elk.box","elk.rectpacking","elk.stress","elk.force","elk.mrtree","elk.radial","elk.sporeOverlap"]);function Z0n(B,tn){if(typeof B=="string"){if(!Rfe.has(B)){tn?.warn(`Unknown container layout algorithm "${B}". Supported values: ${[...Rfe].join(", ")}. Falling back to the diagram's layout algorithm.`);return}return B}}gt(Z0n,"resolveContainerAlgorithm");function nbn(B){switch(B){case"LR":return"RIGHT";case"RL":return"LEFT";case"TB":case"TD":return"DOWN";case"BT":return"UP";default:return"DOWN"}}gt(nbn,"dir2ElkDirection");function YG(B){return $0n(B.shape)?(B.labelData?.width??B.labels?.[0]?.width??0)+(B.padding??0):0}gt(YG,"groupTitleWidth");function ebn(B){return $0n(B.shape)?{"nodeSize.constraints":"[MINIMUM_SIZE, NODE_LABELS]","nodeSize.minimum":`(${YG(B)}, 0)`}:{}}gt(ebn,"groupTitleSizeOptions");function Wfe(B,tn,sn,bn){let on=B.labelData?.width??0,Rn=B.padding??0,Bn=on+2*Rn,y=B.labelData?.height??0,ke=ibn(tn?.preset),Ie={...ebn(B),"spacing.baseValue":Ufe,"elk.layered.spacing.edgeNodeBetweenLayers":30,"elk.spacing.edgeEdge":20,"spacing.nodeNode":zfe,"elk.padding":`[top=${z9},left=${z9},bottom=${z9},right=${z9}]`,"nodeLabels.placement":"[H_CENTER V_TOP, INSIDE]","elk.layered.mergeEdges":tn?.mergeEdges,"elk.layered.nodePlacement.bk.fixedAlignment":tn?.nodePlacementAlignment??ke.alignment,"elk.layered.nodePlacement.strategy":tn?.nodePlacementStrategy??ke.containerPlacement,"elk.layered.cycleBreaking.strategy":tn?.cycleBreakingStrategy??ke.cycleBreaking,"elk.layered.nodePlacement.networkSimplex.nodeFlexibility":"PORT_POSITION","elk.spacing.portsSurrounding":Gfe},tt=Z0n(B.metadata?.algorithm,bn);if(tt){let Ue=y+xO;if(Ie["nodeSize.constraints"]="[MINIMUM_SIZE, NODE_LABELS]",Ie["nodeSize.minimum"]=`(${Bn}, ${Ue+xO})`,Ie["elk.algorithm"]=tt,Ie["elk.hierarchyHandling"]="SEPARATE_CHILDREN",Ie["elk.aspectRatio"]="2.0",Ie["elk.contentAlignment"]="H_CENTER V_TOP",Ie["elk.expandNodes"]="true",Ie["elk.padding"]=`[top=${Ue},left=${xO},bottom=${xO},right=${xO}]`,tt==="elk.rectpacking"){let ae=y+FO;Object.assign(Ie,Y0n,{"elk.padding":`[top=${ae},left=${FO},bottom=${FO},right=${FO}]`,"nodeSize.minimum":`(${Bn}, ${ae+FO})`})}}else B.dir&&(Ie["elk.algorithm"]=sn,Ie["elk.direction"]=nbn(B.dir),Ie["elk.hierarchyHandling"]="SEPARATE_CHILDREN");return Object.assign(Ie,OFe),Ie}gt(Wfe,"buildSubgraphLayoutOptions");function Vfe(B,tn){let sn=new Set,bn=new Map;for(let{id:on,parentId:Rn}of B){let Bn=bn.get(Rn);Bn?Bn.push(on):bn.set(Rn,[on])}for(let on of bn.values()){let Rn=new Set(on),Bn=new Map(on.map(ci=>[ci,0])),y=new Map(on.map(ci=>[ci,[]])),ke=[];for(let ci of tn){let wr=ci.source==null?void 0:String(ci.source),kr=ci.target==null?void 0:String(ci.target);!wr||!kr||wr===kr||!Rn.has(wr)||!Rn.has(kr)||(Bn.set(kr,(Bn.get(kr)??0)+1),y.get(wr).push(kr),y.get(kr).push(wr),ke.push([wr,kr]))}let Ie=new Map,tt=0;for(let ci of on){if(Ie.has(ci))continue;let wr=[ci];for(Ie.set(ci,tt);wr.length>0;){let kr=wr.pop();for(let zn of y.get(kr))Ie.has(zn)||(Ie.set(zn,tt),wr.push(zn))}tt++}let Ue=new Array(tt).fill(!1);for(let ci of on)(Bn.get(ci)??0)===0&&(Ue[Ie.get(ci)]=!0);if(!Ue.includes(!1))continue;let ae=new Map(on.map(ci=>[ci,[]])),vt=new Map(on.map(ci=>[ci,0])),ji=gt((ci,wr)=>{let kr=new Set([ci]),zn=[ci];for(;zn.length>0;){let hf=zn.pop();if(hf===wr)return!0;for(let xc of ae.get(hf))kr.has(xc)||(kr.add(xc),zn.push(xc))}return!1},"reaches");for(let[ci,wr]of ke)ji(wr,ci)||(ae.get(ci).push(wr),vt.set(wr,(vt.get(wr)??0)+1));let Mc=new Array(tt).fill(!1);for(let ci of on){let wr=Ie.get(ci);!Ue[wr]&&!Mc[wr]&&vt.get(ci)===0&&(sn.add(ci),Mc[wr]=!0)}}return sn}gt(Vfe,"findCyclicEntryNodes");function Jfe(B,tn){if(!B.config.elk?.keepEntryNodeOnTop)return;let sn=Vfe(B.nodes,B.edges.map(bn=>({source:bn.start,target:bn.end})));for(let bn of sn){let on=tn[bn];on&&(on.layoutOptions={...on.layoutOptions,"elk.layered.layering.layerConstraint":"FIRST"})}}gt(Jfe,"applyCyclicEntryConstraint");function Qfe(B,tn){let sn=tbn(tn);return nhe(sn),Che(B,sn),{algorithm:sn.algorithm}}gt(Qfe,"prepareLayoutForElk");async function Yfe(B,tn){let sn=tbn(tn),bn=Zfe(B,sn),on=new Bfe.default;sn.log.info("Drawing flowchart using v4 renderer",on);let Rn=await lhe(on,bn.elkGraph,sn.log);return ahe(B,Rn,bn,sn.log),ehe(B.nodes),Rn}gt(Yfe,"runElkLayoutCore");function Zfe(B,tn){let sn={},bn=the(B,tn.algorithm,tn.rootLayoutOptions),on=B.direction??"DOWN";bn.layoutOptions["elk.direction"]=nbn(on);let Rn=ihe(B.nodes,tn.log);return rbn(B.nodes,bn,sn,tn),ohe(B,bn,sn,tn),fhe(B,sn,Rn,tn),hhe(bn,sn,Rn,tn.log),Jfe(B,sn),{elkGraph:bn,nodeDb:sn,parentLookupDb:Rn}}gt(Zfe,"buildElkGraphFromLayoutData");var G0t=Lfe({afterPaint:_fe,prepareLayout:Qfe,measureLayout:gt((B,tn)=>Dfe(B,tn,{unwrapGroupLabels:!0}),"measureLayout"),runLayoutCore:Yfe,paintOptions:{skipIntersect:!0}});function nhe(B){Afe(B.getConfig())}gt(nhe,"syncHostConfig");function ehe(B){let tn=new Map(B.map(sn=>[sn.id,sn]));B.sort((sn,bn)=>sn.isGroup!==bn.isGroup?sn.isGroup?-1:1:sn.isGroup&&bn.isGroup?_0n(sn,tn)-_0n(bn,tn):0)}gt(ehe,"orderNodesForElkPaint");function _0n(B,tn){let sn=0,bn=new Set,on=B.parentId;for(;on&&!bn.has(on);){bn.add(on);let Rn=tn.get(on);if(!Rn?.isGroup)break;sn++,on=Rn.parentId}return sn}gt(_0n,"getGroupDepth");function tbn(B){let tn=B.helpers;if(!tn)throw new Error("ELK layout requires Mermaid internal helpers");return{algorithm:B.preparedLayout?.algorithm??B.options?.algorithm,rootLayoutOptions:B.options?.rootLayoutOptions,common:tn.common,getConfig:tn.getConfig,interpolateToCurve:tn.interpolateToCurve,log:tn.log}}gt(tbn,"getElkLayoutContext");var K0n={default:{layering:"NETWORK_SIMPLEX",placement:"BRANDES_KOEPF",containerPlacement:"BRANDES_KOEPF",alignment:"BALANCED",cycleBreaking:"DEPTH_FIRST"},legacy:{layering:"NETWORK_SIMPLEX",placement:"BRANDES_KOEPF",containerPlacement:"BRANDES_KOEPF",alignment:"NONE",cycleBreaking:"GREEDY"},modelOrder:{layering:"NETWORK_SIMPLEX",placement:"NETWORK_SIMPLEX",containerPlacement:"BRANDES_KOEPF",alignment:"NONE",cycleBreaking:"GREEDY_MODEL_ORDER"},depthFirst:{layering:"NETWORK_SIMPLEX",placement:"NETWORK_SIMPLEX",containerPlacement:"BRANDES_KOEPF",alignment:"NONE",cycleBreaking:"DEPTH_FIRST"}};function ibn(B){return B!==void 0&&Object.hasOwn(K0n,B)?K0n[B]:K0n.default}gt(ibn,"resolveElkPreset");function the(B,tn,sn){let bn=ibn(B.config.elk?.preset),on={id:"root",layoutOptions:{"elk.hierarchyHandling":"INCLUDE_CHILDREN","elk.algorithm":tn,"elk.layered.nodePlacement.strategy":B.config.elk?.nodePlacementStrategy??bn.placement,"elk.layered.nodePlacement.bk.fixedAlignment":B.config.elk?.nodePlacementAlignment??bn.alignment,"elk.layered.mergeEdges":B.config.elk?.mergeEdges,"elk.direction":"DOWN","spacing.baseValue":40,"elk.layered.crossingMinimization.forceNodeModelOrder":B.config.elk?.forceNodeModelOrder,"elk.layered.considerModelOrder.strategy":B.config.elk?.considerModelOrder,"elk.layered.unnecessaryBendpoints":!0,"elk.layered.cycleBreaking.strategy":B.config.elk?.cycleBreakingStrategy??bn.cycleBreaking,"elk.layered.layering.strategy":B.config.elk?.layeringStrategy??bn.layering,"elk.layered.layering.coffmanGraham.layerBound":B.config.elk?.layeringLayerBound,"elk.layered.wrapping.multiEdge.improveCuts":!0,"elk.layered.wrapping.multiEdge.improveWrappedEdges":!0,"elk.layered.edgeRouting.selfLoopDistribution":"EQUALLY","elk.layered.mergeHierarchyEdges":!0,"elk.spacing.portsSurrounding":Gfe},children:[],edges:[]};return tn==="elk.rectpacking"&&Object.assign(on.layoutOptions,Y0n,{"elk.contentAlignment":"H_CENTER V_TOP","elk.padding":"[top=15,left=15,bottom=15,right=15]"}),sn&&Object.assign(on.layoutOptions,sn),Object.assign(on.layoutOptions,SFe,IFe,PFe),on}gt(the,"createRootElkGraph");function ihe(B,tn){let sn={parentById:{},childrenById:{}},bn=B.filter(on=>on.isGroup);return tn.info("Subgraphs - ",bn),bn.forEach(on=>{B.filter(Bn=>Bn.parentId===on.id).forEach(Bn=>{sn.parentById[Bn.id]=on.id,sn.childrenById[on.id]??=[],sn.childrenById[on.id].push(Bn.id)})}),sn}gt(ihe,"addSubGraphs");function rbn(B,tn,sn,bn,on){let Rn=B.filter(Bn=>Bn?.parentId===on);return bn.log.info("addVertices APA12",Rn,on),Rn.forEach(Bn=>{rhe(tn,B,Bn,sn,bn)}),tn}gt(rbn,"addVertices");function rhe(B,tn,sn,bn,on){let Rn=che(sn);B.children.push(Rn),bn[sn.id]=Rn,sn.isGroup&&(Rn.children=[],rbn(tn,Rn,bn,on,sn.id),Rn.labelData=uhe(sn,on.getConfig()))}gt(rhe,"addVertex");function che(B){let tn={...B};return delete tn.domId,B.isGroup?tn.children=[]:(tn.width=B.width??0,tn.height=B.height??0,B.spreadPorts&&(tn.layoutOptions={...tn.layoutOptions,"elk.portAlignment.default":"CENTER"})),tn}gt(che,"createElkNode");function uhe(B,tn){let sn=B.labelData;return sn||(B.labelBBox?{width:B.labelBBox.width,height:Math.max(0,B.labelBBox.height-2),wrappingWidth:B.wrappingWidth??tn.flowchart?.wrappingWidth}:{width:0,height:0,wrappingWidth:B.wrappingWidth??tn.flowchart?.wrappingWidth})}gt(uhe,"getMeasuredLabelData");function ohe(B,tn,sn,bn){bn.log.info("abc78 DAGA edges = ",B);let on={};return B.edges.forEach(Rn=>{let Bn=Rn.id;on[Bn]=(on[Bn]??-1)+1;let y=Bn;Rn.id=y,bn.log.info("abc78 new link id to be used is",Bn,y,on[Bn]);let{source:ke,target:Ie,sourceId:tt,targetId:Ue}=she(Rn,sn);bn.log.debug("abc78 source and target",ke,Ie),tn.edges.push({...Rn,sources:[ke],targets:[Ie],sourceId:tt,targetId:Ue,labels:[{width:Rn.width??0,height:Rn.height??0,orgWidth:Rn.width??0,orgHeight:Rn.height??0,text:Rn.label??"",layoutOptions:{"edgeLabels.inline":"true","edgeLabels.placement":"CENTER"}}]})}),tn}gt(ohe,"addEdgesToElkGraph");function she(B,tn){let sn=B.start,bn=B.end,on=sn,Rn=bn,Bn=sn?tn[sn]:void 0,y=bn?tn[bn]:void 0;return!Bn||!y?{source:on,target:Rn}:{source:on,target:Rn,sourceId:sn,targetId:bn}}gt(she,"getEdgeStartEndPoint");function fhe(B,tn,sn,bn){B.nodes.forEach(on=>{let Rn=tn[on.id];!Rn||sn.childrenById[Rn.id]===void 0||(Rn.labels=[{text:Rn.label,width:Rn?.labelData?.width??50,height:Rn?.labelData?.height??50}],bn.log.debug("UIO node label",Rn?.labelData?.width,Rn.padding),Rn.layoutOptions=Wfe(Rn,B.config.elk,bn.algorithm,bn.log),delete Rn.x,delete Rn.y,delete Rn.width,delete Rn.height)})}gt(fhe,"configureSubgraphNodes");function hhe(B,tn,sn,bn){bn.debug("APA01 processing edges, count:",B.edges.length),B.edges.forEach((on,Rn)=>{bn.debug("APA01 processing edge",Rn,":",on);let Bn=on.sources[0],y=on.targets[0];if(bn.debug("APA01 source:",Bn,"target:",y),bn.debug("APA01 nodeDb[source]:",tn[Bn]),bn.debug("APA01 nodeDb[target]:",tn[y]),tn[Bn]&&tn[y]&&tn[Bn].parentId!==tn[y].parentId){let ke=Kfe(Bn,y,sn);JG(tn,Bn,ke,bn),JG(tn,y,ke,bn)}})}gt(hhe,"configureCrossHierarchyEdges");function JG(B,tn,sn,bn){let on=B[tn];on&&(on.layoutOptions??={},on.layoutOptions["elk.hierarchyHandling"]==="SEPARATE_CHILDREN"&&Z0n(on.metadata?.algorithm)&&(bn.debug("Dropping explicit algorithm for node",on.id,"due to cross-boundary edges"),Xfe(on.layoutOptions),Object.assign(on.layoutOptions,ebn(on))),on.layoutOptions["elk.hierarchyHandling"]="INCLUDE_CHILDREN",on.id!==sn&&on.parentId&&JG(B,on.parentId,sn,bn))}gt(JG,"setIncludeChildrenPolicy");async function lhe(B,tn,sn){let bn=globalThis.__mermaidProfiler;try{bn?.begin("layoutCore");let on;try{on=await B.layout(tn)}finally{bn?.end()}return sn.debug("APA01 after - success"),sn.debug("APA01 layout result:",on),on}catch(on){throw sn.error("ELK layout error:",on),on}}gt(lhe,"runElkLayout");function ahe(B,tn,sn,bn){let on=new Map(B.nodes.map(Rn=>[Rn.id,Rn]));obn(tn.children??[],sn,on,0,0,0,bn),ubn(tn.children??[],sn,on,tn),phe(B,tn,sn,bn)}gt(ahe,"applyElkLayoutResult");function cbn(B,tn=new Set){for(let sn of B.children??[])tn.add(sn.id),cbn(sn,tn);return tn}gt(cbn,"collectDescendantIds");function dhe(B,tn,sn,bn){let on=[];for(let Rn of B.edges??[]){let Bn=Rn.sources?.[0]??Rn.start,y=Rn.targets?.[0]??Rn.end,ke=tn.has(Bn)&&tn.has(y),Ie=Bn===bn,tt=y===bn;if(!ke&&!Ie&&!tt)continue;let Ue=QG(Bn,y,sn.parentLookupDb,sn.nodeDb);for(let ae of Rn.sections??[]){let vt=ke?[ae.startPoint,...ae.bendPoints??[],ae.endPoint]:[Ie?ae.startPoint:null,tt?ae.endPoint:null];for(let ji of vt)ji&&on.push({x:ji.x+Ue.x,y:ji.y+Ue.y})}}return on}gt(dhe,"internalEdgePoints");function ubn(B,tn,sn,bn={}){for(let on of B){if(!on?.isGroup)continue;let Rn=on.children??[];ubn(Rn,tn,sn,bn);let Bn=tn.nodeDb[on.id],y=Rn.map(xc=>tn.nodeDb[xc.id]).filter(xc=>xc?.offset&&xc.width&&xc.height);if(!Bn?.offset||y.length===0)continue;let ke=dhe(bn,cbn(on),tn,on.id),Ie=[...y.map(xc=>xc.offset.posX),...y.map(xc=>xc.offset.posX+xc.width),...ke.map(xc=>xc.x)],tt=[...y.map(xc=>xc.offset.posY),...y.map(xc=>xc.offset.posY+xc.height),...ke.map(xc=>xc.y)],Ue=Bn.offset,ae=Math.max(Ue.posX,Math.min(...Ie)-z9),vt=Math.min(Ue.posX+Bn.width,Math.max(...Ie)+z9),ji=Math.min(Ue.posY+Bn.height,Math.max(...tt)+z9),Mc=Ue.posY,ci=YG(on),wr=ae,kr=vt-ae;if(kr{if(!y)return;let ke=tn.nodeDb[y.id]??y,Ie=Math.max(y.width,y.labels&&y.labels[0]?.width||0),tt={posX:y.x+bn,posY:y.y+on,x:bn,y:on,depth:Rn,width:Ie,height:y.height};ke.offset=tt,ke.x=tt.posX+y.width/2,ke.y=tt.posY+y.height/2,ke.width=y.width,ke.height=y.height;let Ue=sn.get(y.id);if(Ue){Ue.x=ke.x,Ue.y=ke.y,Ue.width=y.isGroup?Math.max(y.width,y.labelData?.width??0):y.width,Ue.height=y.height;let ae=Ue;ae.labelData=y.labelData,ae.labels=y.labels}y.isGroup?(Bn.debug("Id abc88 subgraph = ",y.id,y.x,y.y,y.labelData),obn(y.children??[],tn,sn,tt.posX,tt.posY,Rn+1,Bn)):Bn.info("Id NODE = ",y.id,y.x,y.y,bn,on,`translate(${ke.x}, ${ke.y})`)})}gt(obn,"applyElkNodePositions");var _Fe=16,HFe=30,RO=.01;function BO(B,tn){let sn=Math.abs(tn.x-B.x),bn=Math.abs(tn.y-B.y);if(sn>RO&&bn<=RO)return"h";if(bn>RO&&sn<=RO)return"v"}gt(BO,"axisOf");function bhe(B){let tn=H0n(B)??B,sn=[...tn].reverse(),bn=H0n(sn);return bn&&(tn=bn.reverse()),tn}gt(bhe,"straightenTerminalJogs");function H0n(B){if(B.length<5)return null;let[tn,sn,bn,on]=B,Rn=BO(tn,sn);if(!Rn||BO(bn,on)!==Rn||BO(sn,bn)!==(Rn==="h"?"v":"h")||Math.hypot(sn.x-tn.x,sn.y-tn.y)>HFe)return null;let Bn=Math.abs(Rn==="h"?bn.y-sn.y:bn.x-sn.x);if(Bn_Fe||!(Rn==="h"?Math.sign(sn.x-tn.x)===Math.sign(on.x-bn.x):Math.sign(sn.y-tn.y)===Math.sign(on.y-bn.y)))return null;let ke=3;for(;ke+1(tt.x-Ie.x)*(Ue.y-Ie.y)-(tt.y-Ie.y)*(Ue.x-Ie.x),"side"),Rn=on(sn,bn,B),Bn=on(sn,bn,tn),y=on(B,tn,sn),ke=on(B,tn,bn);return(Rn>0&&Bn<0||Rn<0&&Bn>0)&&(y>0&&ke<0||y<0&&ke>0)}gt(whe,"segmentsCrossStrict");function q0n(B,tn){let sn=0;for(let bn=0;bnsn.points??[]);for(let[sn,bn]of B.entries()){let on=tn[sn];if(on.length<5)continue;let Rn=bhe(on);if(Rn===on)continue;let Bn=0,y=0;for(let[ke,Ie]of tn.entries())ke===sn||Ie.length<2||(Bn+=q0n(on,Ie),y+=q0n(Rn,Ie));y>Bn||(bn.points=Rn,tn[sn]=Rn)}}gt(ghe,"straightenEdgeTerminals");function phe(B,tn,sn,bn){let on=new Map(B.edges.map(ke=>[ke.id,ke])),Rn=B.config.elk?.straightenEdges!==!1,Bn=new Map(B.nodes.map(ke=>[ke.id,ke])),y=new Set;tn.edges?.forEach(ke=>{if(!ke.sections?.length)return;let Ie=sn.nodeDb[ke.sources?.[0]??ke.start],tt=sn.nodeDb[ke.targets?.[0]??ke.end];if(!Ie||!tt)return;let Ue=ke.start??ke.sourceId??ke.sources?.[0],ae=ke.end??ke.targetId??ke.targets?.[0],vt=QG(Ue,ae,sn.parentLookupDb,sn.nodeDb),ji=ke.sections[0];Ie.shape!=="rect33"&&G0n(Ie,{x:ji.startPoint.x+vt.x,y:ji.startPoint.y+vt.y},Bn,y),tt.shape!=="rect33"&&G0n(tt,{x:ji.endPoint.x+vt.x,y:ji.endPoint.y+vt.y},Bn,y)}),tn.edges?.forEach(ke=>{let Ie=on.get(ke.id);if(!Ie)return;let tt=ke.sources?.[0]??ke.start,Ue=ke.targets?.[0]??ke.end,ae=sn.nodeDb[tt],vt=sn.nodeDb[Ue];if(!ae||!vt)return;if(!ke.sections?.length){let xc=gt(W2=>({x:(W2.offset?.posX??W2.x??0)+(W2.width??0)/2,y:(W2.offset?.posY??W2.y??0)+(W2.height??0)/2}),"centre"),Uv=xc(ae),X9=xc(vt);ae.x=Uv.x,ae.y=Uv.y,vt.x=X9.x,vt.y=X9.y;let Um=U0n([Uv,X9],ae,vt,bn);Ie.points=Um,Ie.curve="linear";let kE=Um[0],yE=Um[Um.length-1];Ie.x=(kE.x+yE.x)/2,Ie.y=(kE.y+yE.y)/2,bn.debug("APA18 no edge sections, using a straight line",ke.id,Ie.points);return}let ji=ke.start??ke.sourceId??tt,Mc=ke.end??ke.targetId??Ue,ci=QG(ji,Mc,sn.parentLookupDb,sn.nodeDb);bn.debug("APA18 offset",ci,ji," ==> ",Mc,"edge:",ke,ae);let wr=ke.sections[0],kr=vhe(wr,ci);ae.x=ae.offset.posX+ae.width/2,ae.y=ae.offset.posY+ae.height/2,vt.x=vt.offset.posX+vt.width/2,vt.y=vt.offset.posY+vt.height/2,ae.shape!=="rect33"&&kr.unshift({x:ae.x,y:ae.y}),vt.shape!=="rect33"&&kr.push({x:vt.x,y:vt.y});let zn=U0n(kr,ae,vt,bn);Ie.points=Ehe(Mhe(zn,Gm(vt),yhe(Ie),bn),Gm(ae),jhe(Ie),bn),Ie.curve="rounded";let hf=ke.labels?.[0];hf&&(Ie.x=hf.x+ci.x+hf.width/2,Ie.y=hf.y+ci.y+hf.height/2)}),Rn&&ghe(B.edges)}gt(phe,"applyElkEdgeLayout");function G0n(B,tn,sn,bn){let on=B.width??0,Rn=B.height??0,Bn=B.offset.posY,y=Bn+Rn,ke=.5,Ie=Math.abs(tn.y-Bn)<=ke||Math.abs(tn.y-y)<=ke;if((Ie?on:Rn)>=2*$O||bn.has(B.id))return;bn.add(B.id);let tt=Ie?tn.x-(B.offset.posX+on/2):tn.y-(B.offset.posY+Rn/2);if(Math.abs(tt)<.01)return;Ie?(B.offset.posX+=tt,B.x=B.offset.posX+on/2):(B.offset.posY+=tt,B.y=B.offset.posY+Rn/2);let Ue=sn.get(B.id);Ue&&(Ue.x=B.offset.posX+on/2,Ue.y=B.offset.posY+Rn/2)}gt(G0n,"alignDegenerateNodeToAnchor");function vhe(B,tn){let sn=B.startPoint,bn=B.endPoint,Rn=(B.bendPoints?B.bendPoints:[]).map(Bn=>({x:Bn.x+tn.x,y:Bn.y+tn.y}));return[{x:sn.x+tn.x,y:sn.y+tn.y},...Rn,{x:bn.x+tn.x,y:bn.y+tn.y}]}gt(vhe,"createEdgePointsFromSection");function QG(B,tn,sn,bn){let on=Kfe(B,tn,sn);if(on===void 0||on==="root")return{x:0,y:0};let Rn=bn[on],Bn=Rn?.elkOrigin??Rn?.offset;return{x:Bn?.posX??0,y:Bn?.posY??0}}gt(QG,"calcOffset");function U0n(B,tn,sn,bn){let on=Array.isArray(B)?[...B]:[],Rn=Gm(sn);bn.debug("PPP cutter2: Points before cutter2:",JSON.stringify(B),"endBounds:",Rn,KO(Rn,B[B.length-1]));let Bn;{let y=Gm(tn),ke=Gm(sn),Ie=!!tn?.isGroup,tt=!!sn?.isGroup,{candidate:Ue,centerApprox:ae}=W0n(on,tn,"start"),{candidate:vt,centerApprox:ji}=W0n(on,sn,"end"),Mc=Ie&&KO(y,Ue),ci=tt&&KO(ke,vt);V0n(on,"start",Mc&&ae),V0n(on,"end",ci&&ji),Ie&&!Mc&&(Mc=J0n(on,y,"start")),tt&&!ci&&(ci=J0n(on,ke,"end")),Mc||ci?(Mc||Ohe(on,tn,y,bn),ci||Lhe(on,sn,ke,bn),bn.debug("PPP cutter2: skipping cutter2 due to on-border group endpoint(s)",{skipStart:Mc,skipEnd:ci,startCenterApprox:ae,endCenterApprox:ji,startCandidate:Ue,endCandidate:vt}),Bn=on):Bn=Dhe(tn,sn,on,bn)}if(bn.debug("PPP cutter2: Points after cutter2:",JSON.stringify(Bn)),!Array.isArray(Bn)||Bn.length<2||mhe(Bn)){bn.warn("POI cutter2: Invalid points from cutter2, falling back to prevPoints",Bn);let y=on.filter(ke=>Number.isFinite(ke?.x)&&Number.isFinite(ke?.y));Bn=y.length>=2?y:on}return bn.debug("UIO cutter2: Points after cutter2 (sanitized):",Bn),khe(Bn,bn)}gt(U0n,"sanitizeElkEdgePoints");function mhe(B){return B?.some(tn=>!Number.isFinite(tn?.x)||!Number.isFinite(tn?.y))}gt(mhe,"hasInvalidPoint");function khe(B,tn){let sn=B.filter((bn,on,Rn)=>{if(on===0)return!0;let Bn=Rn[on-1];return Math.abs(bn.x-Bn.x)>1e-6||Math.abs(bn.y-Bn.y)>1e-6});return sn.length!==B.length&&tn.debug("UIO cutter2: removed consecutive duplicate points",{before:B,after:sn}),sn}gt(khe,"dedupeConsecutivePoints");function yhe(B){return qfe(B.arrowTypeEnd)}gt(yhe,"getEndMarkerPathOffset");function jhe(B){return qfe(B.arrowTypeStart)}gt(jhe,"getStartMarkerPathOffset");function Ehe(B,tn,sn,bn){if(sn<=0||B.length<3)return B;let on=B[0],Rn=B[1],Bn=Math.hypot(Rn.x-on.x,Rn.y-on.y);if(Bn>=Math.max(Hfe,sn*2)||!KO(tn,Rn,1))return B;let y=[on,...B.slice(2)];return bn.debug("UIO cutter2: removed short start marker segment",{before:B,after:y,markerOffset:sn,segmentLength:Bn}),y}gt(Ehe,"ensureStartMarkerSegmentLength");function Mhe(B,tn,sn,bn){if(sn<=0||B.length<3)return B;let on=B[B.length-1],Rn=B[B.length-2],Bn=Math.hypot(on.x-Rn.x,on.y-Rn.y);if(Bn>=Math.max(Hfe,sn*2)||!KO(tn,Rn,1))return B;let y=[...B.slice(0,-2),on];return bn.debug("UIO cutter2: removed short end marker segment",{before:B,after:y,markerOffset:sn,segmentLength:Bn}),y}gt(Mhe,"ensureEndMarkerSegmentLength");function Che(B,tn){let sn=B.edges.defaultInterpolate,bn=B.edges.defaultStyle,on=tn.getConfig();B.edges.forEach(Rn=>{let Bn=Ihe(Rn,{defaultStyle:bn,defaultInterpolate:sn,confCurve:on.curve},tn);Object.assign(Rn,Bn)})}gt(Che,"applyElkEdgeRenderData");function The(B){if(B.classes!==void 0)return B.classes;if(B.start&&B.end)return`flowchart-link LS_${B.start} LE_${B.end}`}gt(The,"buildFallbackEdgeClasses");function Ahe(B,tn,sn){let bn="normal",on="solid",Rn=[],Bn=[];return B==="dotted"?(on="dotted",Rn=["fill:none","stroke-width:2px","stroke-dasharray:3"]):B==="thick"?(bn="thick",Rn=["stroke-width: 3.5px","fill:none"]):(Rn=tn??["fill:none"],sn!==void 0&&(Bn=sn)),{thickness:bn,pattern:on,style:Rn,labelStyle:Bn}}gt(Ahe,"computeStroke");function She(B,tn,sn){return B!==void 0?B:tn!==void 0?tn:sn}gt(She,"getCurve");function Ihe(B,tn,sn){let bn={};bn.minlen=B.minlen??B.length??1,bn.text=B.text??B.label,bn.arrowhead=B.arrowhead??(B.type==="arrow_open"?"none":"normal");let on=$fe[B.type??"arrow_open"]??$fe.arrow_open;bn.arrowTypeStart=B.arrowTypeStart??on[0],bn.arrowTypeEnd=B.arrowTypeEnd??on[1],bn.startLabelRight=B.startLabelRight,bn.endLabelLeft=B.endLabelLeft;let Rn=Ahe(B.stroke,tn.defaultStyle,tn.defaultLabelStyle);bn.thickness=B.thickness??Rn.thickness,bn.pattern=B.pattern??Rn.pattern,bn.style=B.style??Rn.style,bn.labelStyle=B.labelStyle??Rn.labelStyle,bn.classes=The(B),bn.curve=sn.interpolateToCurve(She(B.curve??B.interpolate,tn.defaultInterpolate,tn.confCurve),Sfe);let Bn=(bn.text??"")!=="";return B.arrowheadStyle!==void 0?bn.arrowheadStyle=B.arrowheadStyle:(Bn||B.style!==void 0)&&(bn.arrowheadStyle="fill: #333"),bn.labelpos=B.labelpos??(Bn?"c":void 0),bn.labelType=B.labelType,bn.label=(B.label??bn.text??"").replace(sn.common.lineBreakRegex,` +`),bn}gt(Ihe,"buildEdgeData");function Phe(B){return Math.max(B.width??0,YG(B))}gt(Phe,"getEffectiveGroupWidth");function Gm(B){let tn=B?.isGroup?Phe(B):B.width;return{x:B.offset.posX+B.width/2,y:B.offset.posY+B.height/2,width:tn??0,height:B.height??0,padding:B.padding}}gt(Gm,"boundsFor");function z0n(B,tn,sn=1e-6){return Math.abs(B-tn)1?B[1]:bn,centerApprox:on}}else{let bn=B[B.length-1],on=X0n(bn,tn);return{candidate:on&&B.length>1?B[B.length-2]:bn,centerApprox:on}}}gt(W0n,"getCandidateBorderPoint");function V0n(B,tn,sn){sn&&(tn==="start"?B.length>0&&B.shift():B.length>0&&B.pop())}gt(V0n,"dropAutoCenterPoint");function J0n(B,tn,sn){let bn=sn==="start"?1:-1,on=sn==="start"?0:B.length-1,Rn=on;for(;on>=0&&on=B.length)return!1;let Bn=B[on],y=B[on-bn],ke=Bn.x-y.x,Ie=Bn.y-y.y,tt=ke===0?1/0:(tn.x+Math.sign(ke)*tn.width/2-y.x)/ke,Ue=Ie===0?1/0:(tn.y+Math.sign(Ie)*tn.height/2-y.y)/Ie,ae=Math.min(tt,Ue),vt={x:y.x+ae*ke,y:y.y+ae*Ie};return sn==="start"?B.splice(0,on,vt):B.splice(on+1,B.length-on-1,vt),!0}gt(J0n,"clipGroupEndpoint");function Ohe(B,tn,sn,bn){let on=-1;for(let[Rn,Bn]of B.entries())if(HO(sn,Bn)){on=Rn;break}if(on!==-1){let Rn=B[on],Bn=B[0],y=WG(tn,sn,Rn,Bn);VG(B,"start",y),bn.debug("UIO cutter2: start-only intersection applied",{startIntersection:y})}}gt(Ohe,"applyStartIntersectionIfNeeded");function Lhe(B,tn,sn,bn){let on=-1;for(let Rn=B.length-1;Rn>=0;Rn--)if(HO(sn,B[Rn])){on=Rn;break}if(on!==-1){let Rn=B[on],Bn=B[B.length-1],y=WG(tn,sn,Rn,Bn);VG(B,"end",y),bn.debug("UIO cutter2: end-only intersection applied",{endIntersection:y})}}gt(Lhe,"applyEndIntersectionIfNeeded");function Q0n(B,tn,sn,bn,on){if(B?.isGroup)return null;let Rn=sn[bn],Bn=sn[bn+on];return!Rn||!Bn?null:BFe(B,tn,Rn,Bn)}gt(Q0n,"attachAlongDepartureAxis");function Dhe(B,tn,sn,bn){let on=Gm(B),Rn=Gm(tn);if(sn.length===0)return[];let Bn=[...sn],y=Bn[0],ke=Bn[Bn.length-1];bn.debug("PPP cutter2: bounds",{startBounds:on,endBounds:Rn}),bn.debug("PPP cutter2: original points",sn);let Ie=-1;for(let[ae,vt]of Bn.entries())Ie===-1&&HO(on,vt)&&(Ie=ae);if(Ie!==-1){let ae=Bn[Ie],vt=Q0n(B,on,Bn,Ie,1)??WG(B,on,ae,y);bn.debug("UIO cutter2: start intersection",vt),VG(Bn,"start",vt)}let tt=null,Ue=-1;for(let ae=Bn.length-1;ae>=0;ae--)if(HO(Rn,Bn[ae])){tt=Bn[ae],Ue=ae;break}if(!tt&&Bn.length>1&&(tt=Bn[Bn.length-2],Ue=Bn.length-2),tt){let ae=Q0n(tn,Rn,Bn,Ue,-1)??WG(tn,Rn,tt,ke);bn.debug("UIO cutter2: end intersection",{endIntersection:ae,outsideIndexForEnd:Ue}),VG(Bn,"end",ae)}if(Bn.length>1){let ae=Bn[Bn.length-1],vt=Bn[Bn.length-2],ji=Math.sqrt((ae.x-vt.x)**2+(ae.y-vt.y)**2);ji<2&&(bn.debug("UIO cutter2: trimming tail point (too close)",{distance:ji,lastPoint:ae,secondLastPoint:vt}),Bn.pop())}return bn.debug("UIO cutter2: final points",Bn),Bn}gt(Dhe,"cutter2");export{G0t as render}; diff --git a/src/frontend/web/von_interface/static/vendor/conversation-visuals/erDiagram-OPXOYQCR-6RMTL4DB.js b/src/frontend/web/von_interface/static/vendor/conversation-visuals/erDiagram-OPXOYQCR-6RMTL4DB.js new file mode 100644 index 000000000..21c9cdf2f --- /dev/null +++ b/src/frontend/web/von_interface/static/vendor/conversation-visuals/erDiagram-OPXOYQCR-6RMTL4DB.js @@ -0,0 +1,99 @@ +import{a as it}from"./chunk-VNMAEQZK.js";import{a as rt}from"./chunk-EQQJCVK6.js";import{b as tt,c as st}from"./chunk-2AVNI7YL.js";import"./chunk-SNMBC6G5.js";import"./chunk-AKE2LJPJ.js";import"./chunk-NDMMOI35.js";import"./chunk-T4OFBIBR.js";import"./chunk-TEBTVNCH.js";import"./chunk-HVVAQLXH.js";import"./chunk-IVPOI5SM.js";import"./chunk-O46DUOKR.js";import"./chunk-C7YISUMK.js";import{a as ue,b as Xe,c as Je,d as $e,e as et}from"./chunk-6NDAIVIK.js";import{p as He,s as Qe}from"./chunk-EUYVSIXP.js";import"./chunk-QSTT4QQC.js";import{$ as U,O as Ye,U as Pe,V as ze,W as Ue,X as Ke,Y as Ze,Z as je,_ as qe,a as Ge,b as Fe}from"./chunk-S4JILX6U.js";import{b as A,h as We}from"./chunk-XEQL7KGA.js";import{a as b,b as Be}from"./chunk-YUSHYV7C.js";import"./chunk-3RNHDNP5.js";var Ce=(function(){var t=b(function(M,a,o,u){for(o=o||{},u=M.length;u--;o[M[u]]=a);return o},"o"),n=[6,9,21,23,25,27,34,37,38,39,40,41,43,46,47,51,53,54,55],h=[2,2],r=[1,7],l=[1,9],p=[1,10],_=[1,11],f=[1,12],m=[1,30],d=[1,23],k=[1,24],O=[1,25],B=[1,26],Y=[1,27],E=[1,19],I=[1,28],K=[1,29],N=[1,20],R=[1,18],v=[1,21],D=[1,22],Oe=[2,6],c=[6,9,21,23,25,27,33,34,37,38,39,40,41,43,46,47,51,53,54,55],de=[1,36],be=[1,37],pe=[1,38],fe=[1,39],ke=[1,40],Z=[6,9,12,14,16,19,20,21,23,25,27,33,34,37,38,39,40,41,43,46,47,50,51,53,54,55,69,70,71,72,73],L=[1,46],w=[1,47],j=[1,57],q=[43,51,53,54,55,74,75],W=[1,70],H=[1,68],V=[1,65],Q=[1,69],X=[1,71],ee=[6,9,12,16,21,23,25,27,33,34,37,38,39,40,41,43,44,45,46,47,51,52,53,54,55,69,70,71,72,73],te=[1,78],se=[1,77],ie=[1,76],Ne=[69,70,71,72,73],xe=[1,91],Ae=[6,9,45,50],P=[6,9,12,44,45,50,51,52],re=[1,101],ae=[1,100],ne=[1,99],J=[18,61],Ie=[1,110],Re=[1,109],ve=[20,43,51,53,54,55],ge=[18,61,64,66],ye={trace:b(function(){},"trace"),yy:{},symbols_:{error:2,start:3,ER_DIAGRAM:4,document:5,EOF:6,line:7,statement:8,NEWLINE:9,entityName:10,relSpec:11,COLON:12,role:13,STYLE_SEPARATOR:14,idList:15,BLOCK_START:16,attributes:17,BLOCK_STOP:18,SQS:19,SQE:20,title:21,title_value:22,acc_title:23,acc_title_value:24,acc_descr:25,acc_descr_value:26,acc_descr_multiline_value:27,direction:28,classDefStatement:29,classStatement:30,styleStatement:31,subgraphHeader:32,END:33,SUBGRAPH:34,separator:35,subgraphTitle:36,direction_tb:37,direction_bt:38,direction_rl:39,direction_lr:40,CLASSDEF:41,stylesOpt:42,UNICODE_TEXT:43,STYLE_TEXT:44,COMMA:45,CLASS:46,STYLE:47,style:48,styleComponent:49,SEMI:50,NUM:51,BRKT:52,ENTITY_NAME:53,DECIMAL_NUM:54,ENTITY_ONE:55,attribute:56,attributeType:57,attributeName:58,attributeKeyTypeList:59,attributeComment:60,ATTRIBUTE_WORD:61,"?":62,attributeKeyType:63,",":64,ATTRIBUTE_KEY:65,COMMENT:66,cardinality:67,relType:68,ZERO_OR_ONE:69,ZERO_OR_MORE:70,ONE_OR_MORE:71,ONLY_ONE:72,MD_PARENT:73,NON_IDENTIFYING:74,IDENTIFYING:75,WORD:76,$accept:0,$end:1},terminals_:{2:"error",4:"ER_DIAGRAM",6:"EOF",9:"NEWLINE",12:"COLON",14:"STYLE_SEPARATOR",16:"BLOCK_START",18:"BLOCK_STOP",19:"SQS",20:"SQE",21:"title",22:"title_value",23:"acc_title",24:"acc_title_value",25:"acc_descr",26:"acc_descr_value",27:"acc_descr_multiline_value",33:"END",34:"SUBGRAPH",37:"direction_tb",38:"direction_bt",39:"direction_rl",40:"direction_lr",41:"CLASSDEF",43:"UNICODE_TEXT",44:"STYLE_TEXT",45:"COMMA",46:"CLASS",47:"STYLE",50:"SEMI",51:"NUM",52:"BRKT",53:"ENTITY_NAME",54:"DECIMAL_NUM",55:"ENTITY_ONE",61:"ATTRIBUTE_WORD",62:"?",64:",",65:"ATTRIBUTE_KEY",66:"COMMENT",69:"ZERO_OR_ONE",70:"ZERO_OR_MORE",71:"ONE_OR_MORE",72:"ONLY_ONE",73:"MD_PARENT",74:"NON_IDENTIFYING",75:"IDENTIFYING",76:"WORD"},productions_:[0,[3,3],[5,0],[5,2],[7,1],[7,1],[7,1],[8,5],[8,9],[8,7],[8,7],[8,4],[8,6],[8,3],[8,5],[8,1],[8,3],[8,7],[8,9],[8,6],[8,8],[8,4],[8,6],[8,2],[8,2],[8,2],[8,1],[8,1],[8,1],[8,1],[8,1],[8,3],[32,3],[32,6],[36,1],[36,2],[28,1],[28,1],[28,1],[28,1],[29,4],[15,1],[15,1],[15,3],[15,3],[30,3],[31,4],[42,1],[42,3],[48,1],[48,2],[35,1],[35,1],[35,1],[49,1],[49,1],[49,1],[49,1],[10,1],[10,1],[10,1],[10,1],[10,1],[17,1],[17,2],[56,2],[56,3],[56,3],[56,4],[57,1],[57,2],[58,1],[59,1],[59,3],[63,1],[60,1],[11,3],[67,1],[67,1],[67,1],[67,1],[67,1],[68,1],[68,1],[13,1],[13,1],[13,1]],performAction:b(function(a,o,u,i,g,e,$){var s=e.length-1;switch(g){case 1:break;case 2:this.$=[];break;case 3:this.$=e[s-1].concat(e[s]);break;case 4:this.$=e[s];break;case 5:case 6:this.$=[];break;case 7:i.addEntity(e[s-4]),i.addEntity(e[s-2]),i.addRelationship(e[s-4],e[s],e[s-2],e[s-3]),this.$=[e[s-4],e[s-2]];break;case 8:i.addEntity(e[s-8]),i.addEntity(e[s-4]),i.addRelationship(e[s-8],e[s],e[s-4],e[s-5]),i.setClass([e[s-8]],e[s-6]),i.setClass([e[s-4]],e[s-2]),this.$=[e[s-8],e[s-4]];break;case 9:i.addEntity(e[s-6]),i.addEntity(e[s-2]),i.addRelationship(e[s-6],e[s],e[s-2],e[s-3]),i.setClass([e[s-6]],e[s-4]),this.$=[e[s-6],e[s-2]];break;case 10:i.addEntity(e[s-6]),i.addEntity(e[s-4]),i.addRelationship(e[s-6],e[s],e[s-4],e[s-5]),i.setClass([e[s-4]],e[s-2]),this.$=[e[s-6],e[s-4]];break;case 11:i.addEntity(e[s-3]),i.addAttributes(e[s-3],e[s-1]),this.$=[e[s-3]];break;case 12:i.addEntity(e[s-5]),i.addAttributes(e[s-5],e[s-1]),i.setClass([e[s-5]],e[s-3]),this.$=[e[s-5]];break;case 13:i.addEntity(e[s-2]),this.$=[e[s-2]];break;case 14:i.addEntity(e[s-4]),i.setClass([e[s-4]],e[s-2]),this.$=[e[s-4]];break;case 15:i.addEntity(e[s]),this.$=[e[s]];break;case 16:i.addEntity(e[s-2]),i.setClass([e[s-2]],e[s]),this.$=[e[s-2]];break;case 17:i.addEntity(e[s-6],e[s-4]),i.addAttributes(e[s-6],e[s-1]),this.$=[e[s-6]];break;case 18:i.addEntity(e[s-8],e[s-6]),i.addAttributes(e[s-8],e[s-1]),i.setClass([e[s-8]],e[s-3]),this.$=[e[s-8]];break;case 19:i.addEntity(e[s-5],e[s-3]),this.$=[e[s-5]];break;case 20:i.addEntity(e[s-7],e[s-5]),i.setClass([e[s-7]],e[s-2]),this.$=[e[s-7]];break;case 21:i.addEntity(e[s-3],e[s-1]);break;case 22:i.addEntity(e[s-5],e[s-3]),i.setClass([e[s-5]],e[s]);break;case 23:case 24:this.$=e[s].trim(),i.setAccTitle(this.$);break;case 25:case 26:this.$=e[s].trim(),i.setAccDescription(this.$);break;case 27:i.subgraphDepth?this.$=e[s]:(i.setDirection(e[s].value),this.$=[]);break;case 31:i.subgraphDepth=(i.subgraphDepth||1)-1,this.$=i.addSubGraph({text:e[s-2].id},e[s-1],{text:e[s-2].text});break;case 32:i.subgraphDepth=(i.subgraphDepth||0)+1,this.$={id:e[s-1],text:e[s-1]};break;case 33:i.subgraphDepth=(i.subgraphDepth||0)+1,this.$={id:e[s-4],text:e[s-2]};break;case 34:case 59:case 60:case 61:case 62:case 86:this.$=e[s];break;case 35:this.$=e[s-1]+" "+e[s];break;case 36:this.$={stmt:"dir",value:"TB"};break;case 37:this.$={stmt:"dir",value:"BT"};break;case 38:this.$={stmt:"dir",value:"RL"};break;case 39:this.$={stmt:"dir",value:"LR"};break;case 40:this.$=e[s-3],i.addClass(e[s-2],e[s-1]);break;case 41:case 42:case 63:case 72:this.$=[e[s]];break;case 43:case 44:this.$=e[s-2].concat([e[s]]);break;case 45:this.$=e[s-2],i.setClass(e[s-1],e[s]);break;case 46:this.$=e[s-3],i.addCssStyles(e[s-2],e[s-1]);break;case 47:this.$=[e[s]];break;case 48:e[s-2].push(e[s]),this.$=e[s-2];break;case 50:this.$=e[s-1]+e[s];break;case 58:case 84:case 85:this.$=e[s].replace(/"/g,"");break;case 64:e[s].push(e[s-1]),this.$=e[s];break;case 65:this.$={type:e[s-1],name:e[s]};break;case 66:this.$={type:e[s-2],name:e[s-1],keys:e[s]};break;case 67:this.$={type:e[s-2],name:e[s-1],comment:e[s]};break;case 68:this.$={type:e[s-3],name:e[s-2],keys:e[s-1],comment:e[s]};break;case 69:case 71:case 74:this.$=e[s];break;case 70:this.$=e[s-1]+e[s];break;case 73:e[s-2].push(e[s]),this.$=e[s-2];break;case 75:this.$=e[s].replace(/"/g,"");break;case 76:this.$={cardA:e[s],relType:e[s-1],cardB:e[s-2]};break;case 77:this.$=i.Cardinality.ZERO_OR_ONE;break;case 78:this.$=i.Cardinality.ZERO_OR_MORE;break;case 79:this.$=i.Cardinality.ONE_OR_MORE;break;case 80:this.$=i.Cardinality.ONLY_ONE;break;case 81:this.$=i.Cardinality.MD_PARENT;break;case 82:this.$=i.Identification.NON_IDENTIFYING;break;case 83:this.$=i.Identification.IDENTIFYING;break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},t(n,h,{5:3}),{6:[1,4],7:5,8:6,9:r,10:8,21:l,23:p,25:_,27:f,28:13,29:14,30:15,31:16,32:17,34:m,37:d,38:k,39:O,40:B,41:Y,43:E,46:I,47:K,51:N,53:R,54:v,55:D},t(n,Oe,{1:[2,1]}),t(c,[2,3]),t(c,[2,4]),t(c,[2,5]),t(c,[2,15],{11:31,67:35,14:[1,32],16:[1,33],19:[1,34],69:de,70:be,71:pe,72:fe,73:ke}),{22:[1,41]},{24:[1,42]},{26:[1,43]},t(c,[2,26]),t(c,[2,27]),t(c,[2,28]),t(c,[2,29]),t(c,[2,30]),t(c,h,{5:44}),t(Z,[2,58]),t(Z,[2,59]),t(Z,[2,60]),t(Z,[2,61]),t(Z,[2,62]),t(c,[2,36]),t(c,[2,37]),t(c,[2,38]),t(c,[2,39]),{15:45,43:L,44:w},{15:48,43:L,44:w},{15:49,43:L,44:w},{10:50,43:E,51:N,53:R,54:v,55:D},{10:51,43:E,51:N,53:R,54:v,55:D},{15:52,43:L,44:w},{17:53,18:[1,54],56:55,57:56,61:j},{10:58,43:E,51:N,53:R,54:v,55:D},{68:59,74:[1,60],75:[1,61]},t(q,[2,77]),t(q,[2,78]),t(q,[2,79]),t(q,[2,80]),t(q,[2,81]),t(c,[2,23]),t(c,[2,24]),t(c,[2,25]),{6:[1,63],7:5,8:6,9:r,10:8,21:l,23:p,25:_,27:f,28:13,29:14,30:15,31:16,32:17,33:[1,62],34:m,37:d,38:k,39:O,40:B,41:Y,43:E,46:I,47:K,51:N,53:R,54:v,55:D},{12:W,42:64,44:H,45:V,48:66,49:67,51:Q,52:X},t(ee,[2,41]),t(ee,[2,42]),{15:72,43:L,44:w,45:V},{12:W,42:73,44:H,45:V,48:66,49:67,51:Q,52:X},{6:te,9:se,19:[1,75],35:74,50:ie},{12:[1,79],14:[1,80]},t(c,[2,16],{67:35,11:81,16:[1,82],45:V,69:de,70:be,71:pe,72:fe,73:ke}),{18:[1,83]},t(c,[2,13]),{17:84,18:[2,63],56:55,57:56,61:j},{58:85,61:[1,86]},{61:[2,69],62:[1,87]},{20:[1,88]},{67:89,69:de,70:be,71:pe,72:fe,73:ke},t(Ne,[2,82]),t(Ne,[2,83]),t(c,[2,31]),t(c,Oe),{6:te,9:se,35:90,45:xe,50:ie},{43:[1,92],44:[1,93]},t(Ae,[2,47],{49:94,12:W,44:H,51:Q,52:X}),t(P,[2,49]),t(P,[2,54]),t(P,[2,55]),t(P,[2,56]),t(P,[2,57]),t(c,[2,45],{45:V}),{6:te,9:se,35:95,45:xe,50:ie},t(c,[2,32]),{10:97,36:96,43:E,51:N,53:R,54:v,55:D},t(c,[2,51]),t(c,[2,52]),t(c,[2,53]),{13:98,43:re,53:ae,76:ne},{15:102,43:L,44:w},{10:103,43:E,51:N,53:R,54:v,55:D},{17:104,18:[1,105],56:55,57:56,61:j},t(c,[2,11]),{18:[2,64]},t(J,[2,65],{59:106,60:107,63:108,65:Ie,66:Re}),t([18,61,65,66],[2,71]),{61:[2,70]},t(c,[2,21],{14:[1,112],16:[1,111]}),t([43,51,53,54,55],[2,76]),t(c,[2,40]),{12:W,44:H,48:113,49:67,51:Q,52:X},t(ee,[2,43]),t(ee,[2,44]),t(P,[2,50]),t(c,[2,46]),{10:115,20:[1,114],43:E,51:N,53:R,54:v,55:D},t(ve,[2,34]),t(c,[2,7]),t(c,[2,84]),t(c,[2,85]),t(c,[2,86]),{12:[1,116],45:V},{12:[1,118],14:[1,117]},{18:[1,119]},t(c,[2,14]),t(J,[2,66],{60:120,64:[1,121],66:Re}),t(J,[2,67]),t(ge,[2,72]),t(J,[2,75]),t(ge,[2,74]),{17:122,18:[1,123],56:55,57:56,61:j},{15:124,43:L,44:w},t(Ae,[2,48],{49:94,12:W,44:H,51:Q,52:X}),{6:te,9:se,35:125,50:ie},t(ve,[2,35]),{13:126,43:re,53:ae,76:ne},{15:127,43:L,44:w},{13:128,43:re,53:ae,76:ne},t(c,[2,12]),t(J,[2,68]),{63:129,65:Ie},{18:[1,130]},t(c,[2,19]),t(c,[2,22],{16:[1,131],45:V}),t(c,[2,33]),t(c,[2,10]),{12:[1,132],45:V},t(c,[2,9]),t(ge,[2,73]),t(c,[2,17]),{17:133,18:[1,134],56:55,57:56,61:j},{13:135,43:re,53:ae,76:ne},{18:[1,136]},t(c,[2,20]),t(c,[2,8]),t(c,[2,18])],defaultActions:{84:[2,64],87:[2,70]},parseError:b(function(a,o){if(o.recoverable)this.trace(a);else{var u=new Error(a);throw u.hash=o,u}},"parseError"),parse:b(function(a){var o=this,u=[0],i=[],g=[null],e=[],$=this.table,s="",le=0,De=0,Le=0,lt=2,we=1,ct=e.slice.call(arguments,1),y=Object.create(this.lexer),G={yy:{}};for(var _e in this.yy)Object.prototype.hasOwnProperty.call(this.yy,_e)&&(G.yy[_e]=this.yy[_e]);y.setInput(a,G.yy),G.yy.lexer=y,G.yy.parser=this,typeof y.yylloc>"u"&&(y.yylloc={});var me=y.yylloc;e.push(me);var ht=y.options&&y.options.ranges;typeof G.yy.parseError=="function"?this.parseError=G.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function ut(T){u.length=u.length-2*T,g.length=g.length-T,e.length=e.length-T}b(ut,"popStack");function Ve(){var T;return T=i.pop()||y.lex()||we,typeof T!="number"&&(T instanceof Array&&(i=T,T=i.pop()),T=o.symbols_[T]||T),T}b(Ve,"lex");for(var S,Ee,F,C,yt,Se,z={},ce,x,Me,he;;){if(F=u[u.length-1],this.defaultActions[F]?C=this.defaultActions[F]:((S===null||typeof S>"u")&&(S=Ve()),C=$[F]&&$[F][S]),typeof C>"u"||!C.length||!C[0]){var Te="";he=[];for(ce in $[F])this.terminals_[ce]&&ce>lt&&he.push("'"+this.terminals_[ce]+"'");y.showPosition?Te="Parse error on line "+(le+1)+`: +`+y.showPosition()+` +Expecting `+he.join(", ")+", got '"+(this.terminals_[S]||S)+"'":Te="Parse error on line "+(le+1)+": Unexpected "+(S==we?"end of input":"'"+(this.terminals_[S]||S)+"'"),this.parseError(Te,{text:y.match,token:this.terminals_[S]||S,line:y.yylineno,loc:me,expected:he})}if(C[0]instanceof Array&&C.length>1)throw new Error("Parse Error: multiple actions possible at state: "+F+", token: "+S);switch(C[0]){case 1:u.push(S),g.push(y.yytext),e.push(y.yylloc),u.push(C[1]),S=null,Ee?(S=Ee,Ee=null):(De=y.yyleng,s=y.yytext,le=y.yylineno,me=y.yylloc,Le>0&&Le--);break;case 2:if(x=this.productions_[C[1]][1],z.$=g[g.length-x],z._$={first_line:e[e.length-(x||1)].first_line,last_line:e[e.length-1].last_line,first_column:e[e.length-(x||1)].first_column,last_column:e[e.length-1].last_column},ht&&(z._$.range=[e[e.length-(x||1)].range[0],e[e.length-1].range[1]]),Se=this.performAction.apply(z,[s,De,le,G.yy,C[1],g,e].concat(ct)),typeof Se<"u")return Se;x&&(u=u.slice(0,-1*x*2),g=g.slice(0,-1*x),e=e.slice(0,-1*x)),u.push(this.productions_[C[1]][0]),g.push(z.$),e.push(z._$),Me=$[u[u.length-2]][u[u.length-1]],u.push(Me);break;case 3:return!0}}return!0},"parse")},ot=(function(){var M={EOF:1,parseError:b(function(o,u){if(this.yy.parser)this.yy.parser.parseError(o,u);else throw new Error(o)},"parseError"),setInput:b(function(a,o){return this.yy=o||this.yy||{},this._input=a,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:b(function(){var a=this._input[0];this.yytext+=a,this.yyleng++,this.offset++,this.match+=a,this.matched+=a;var o=a.match(/(?:\r\n?|\n).*/g);return o?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),a},"input"),unput:b(function(a){var o=a.length,u=a.split(/(?:\r\n?|\n)/g);this._input=a+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-o),this.offset-=o;var i=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),u.length-1&&(this.yylineno-=u.length-1);var g=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:u?(u.length===i.length?this.yylloc.first_column:0)+i[i.length-u.length].length-u[0].length:this.yylloc.first_column-o},this.options.ranges&&(this.yylloc.range=[g[0],g[0]+this.yyleng-o]),this.yyleng=this.yytext.length,this},"unput"),more:b(function(){return this._more=!0,this},"more"),reject:b(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). +`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:b(function(a){this.unput(this.match.slice(a))},"less"),pastInput:b(function(){var a=this.matched.substr(0,this.matched.length-this.match.length);return(a.length>20?"...":"")+a.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:b(function(){var a=this.match;return a.length<20&&(a+=this._input.substr(0,20-a.length)),(a.substr(0,20)+(a.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:b(function(){var a=this.pastInput(),o=new Array(a.length+1).join("-");return a+this.upcomingInput()+` +`+o+"^"},"showPosition"),test_match:b(function(a,o){var u,i,g;if(this.options.backtrack_lexer&&(g={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&&(g.yylloc.range=this.yylloc.range.slice(0))),i=a[0].match(/(?:\r\n?|\n).*/g),i&&(this.yylineno+=i.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:i?i[i.length-1].length-i[i.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+a[0].length},this.yytext+=a[0],this.match+=a[0],this.matches=a,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(a[0].length),this.matched+=a[0],u=this.performAction.call(this,this.yy,this,o,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),u)return u;if(this._backtrack){for(var e in g)this[e]=g[e];return!1}return!1},"test_match"),next:b(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var a,o,u,i;this._more||(this.yytext="",this.match="");for(var g=this._currentRules(),e=0;eo[0].length)){if(o=u,i=e,this.options.backtrack_lexer){if(a=this.test_match(u,g[e]),a!==!1)return a;if(this._backtrack){o=!1;continue}else return!1}else if(!this.options.flex)break}return o?(a=this.test_match(o,g[i]),a!==!1?a:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text. +`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:b(function(){var o=this.next();return o||this.lex()},"lex"),begin:b(function(o){this.conditionStack.push(o)},"begin"),popState:b(function(){var o=this.conditionStack.length-1;return o>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:b(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:b(function(o){return o=this.conditionStack.length-1-Math.abs(o||0),o>=0?this.conditionStack[o]:"INITIAL"},"topState"),pushState:b(function(o){this.begin(o)},"pushState"),stateStackSize:b(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:b(function(o,u,i,g){var e=g;switch(i){case 0:return this.begin("acc_title"),23;break;case 1:return this.popState(),"acc_title_value";break;case 2:return this.begin("acc_descr"),25;break;case 3:return this.popState(),"acc_descr_value";break;case 4:this.begin("acc_descr_multiline");break;case 5:this.popState();break;case 6:return"acc_descr_multiline_value";case 7:return 37;case 8:return 38;case 9:return 39;case 10:return 40;case 11:break;case 12:return 9;case 13:return 53;case 14:return 76;case 15:return 4;case 16:return this.begin("block"),16;break;case 17:return 52;case 18:return 52;case 19:return 45;case 20:return 14;case 21:return 12;case 22:break;case 23:return 65;case 24:return 61;case 25:return 61;case 26:this.begin("block_bq");break;case 27:return 61;case 28:this.popState();break;case 29:return 66;case 30:break;case 31:return this.popState(),18;break;case 32:return u.yytext[0];case 33:return 19;case 34:return 20;case 35:return this.begin("style"),47;break;case 36:return this.popState(),9;break;case 37:break;case 38:return 12;case 39:return 45;case 40:return 52;case 41:return this.begin("style"),41;break;case 42:return 46;case 43:return 34;case 44:return 33;case 45:return 69;case 46:return 71;case 47:return 71;case 48:return 71;case 49:return 69;case 50:return 69;case 51:return 70;case 52:return 70;case 53:return 70;case 54:return 70;case 55:return 70;case 56:return 71;case 57:return 70;case 58:return 71;case 59:return 72;case 60:return 72;case 61:return 54;case 62:return 72;case 63:return 72;case 64:return 72;case 65:return 55;case 66:return 51;case 67:return 72;case 68:return 69;case 69:return 70;case 70:return 71;case 71:return 73;case 72:return 74;case 73:return 75;case 74:return 75;case 75:return 74;case 76:return 74;case 77:return 74;case 78:return 44;case 79:return 50;case 80:return 43;case 81:return u.yytext[0];case 82:return 6}},"anonymous"),rules:[/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:.*direction\s+TB[^\n]*)/i,/^(?:.*direction\s+BT[^\n]*)/i,/^(?:.*direction\s+RL[^\n]*)/i,/^(?:.*direction\s+LR[^\n]*)/i,/^(?:[ \t\r]+)/i,/^(?:[\n]+)/i,/^(?:"[^"%\r\n\v\b\\]+")/i,/^(?:"[^"]*")/i,/^(?:erDiagram\b)/i,/^(?:\{)/i,/^(?:#)/i,/^(?:#)/i,/^(?:,)/i,/^(?::::)/i,/^(?::)/i,/^(?:\s+)/i,/^(?:\b((?:PK)|(?:FK)|(?:UK))\b)/i,/^(?:([^\s]*)[~].*[~]([^\s]*))/i,/^(?:([\*A-Za-z_\u00C0-\uFFFF][A-Za-z0-9\-\_\[\]\(\)\.,\u00C0-\uFFFF\*]*))/i,/^(?:[`])/i,/^(?:[^`]+)/i,/^(?:[`])/i,/^(?:"[^"]*")/i,/^(?:[\n]+)/i,/^(?:\})/i,/^(?:.)/i,/^(?:\[)/i,/^(?:\])/i,/^(?:style\b)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?::)/i,/^(?:,)/i,/^(?:#)/i,/^(?:classDef\b)/i,/^(?:class\b)/i,/^(?:subgraph\b)/i,/^(?:end\b\s*)/i,/^(?:one or zero\b)/i,/^(?:one or more\b)/i,/^(?:one or many\b)/i,/^(?:1\+)/i,/^(?:\|o\b)/i,/^(?:zero or one\b)/i,/^(?:zero or more\b)/i,/^(?:zero or many\b)/i,/^(?:0\+)/i,/^(?:\}o\b)/i,/^(?:many\(0\))/i,/^(?:many\(1\))/i,/^(?:many\b)/i,/^(?:\}\|)/i,/^(?:one\b)/i,/^(?:only one\b)/i,/^(?:[0-9]+\.[0-9]+)/i,/^(?:1(?=\s+[A-Za-z_"']))/i,/^(?:1(?=\s+[0-9]))/i,/^(?:1(?=(--|\.\.|\.-|-\.)))/i,/^(?:1\b)/i,/^(?:[0-9]+)/i,/^(?:\|\|)/i,/^(?:o\|)/i,/^(?:o\{)/i,/^(?:\|\{)/i,/^(?:u(?=[\.\-\|]))/i,/^(?:\.\.)/i,/^(?:--)/i,/^(?:to\b)/i,/^(?:optionally to\b)/i,/^(?:\.-)/i,/^(?:-\.)/i,/^(?:([^\x00-\x7F]|\w|-|\*)+)/i,/^(?:;)/i,/^(?:([^\x00-\x7F]|\w|-|\*|\.)+)/i,/^(?:.)/i,/^(?:$)/i],conditions:{style:{rules:[36,37,38,39,40,78,79],inclusive:!1},acc_descr_multiline:{rules:[5,6],inclusive:!1},acc_descr:{rules:[3],inclusive:!1},acc_title:{rules:[1],inclusive:!1},block_bq:{rules:[27,28],inclusive:!1},block:{rules:[22,23,24,25,26,29,30,31,32],inclusive:!1},INITIAL:{rules:[0,2,4,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,33,34,35,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,80,81,82],inclusive:!0}}};return M})();ye.lexer=ot;function oe(){this.yy={}}return b(oe,"Parser"),oe.prototype=ye,ye.Parser=oe,new oe})();Ce.parser=Ce;var dt=Ce,bt=class{constructor(){this.entities=new Map,this.relationships=[],this.classes=new Map,this.subgraphDepth=0,this.subGraphs=[],this.subGraphLookup=new Map,this.subCount=0,this.direction="TB",this.Cardinality={ZERO_OR_ONE:"ZERO_OR_ONE",ZERO_OR_MORE:"ZERO_OR_MORE",ONE_OR_MORE:"ONE_OR_MORE",ONLY_ONE:"ONLY_ONE",MD_PARENT:"MD_PARENT"},this.Identification={NON_IDENTIFYING:"NON_IDENTIFYING",IDENTIFYING:"IDENTIFYING"},this.setAccTitle=ze,this.getAccTitle=Ue,this.setAccDescription=Ke,this.getAccDescription=Ze,this.setDiagramTitle=je,this.getDiagramTitle=qe,this.getConfig=b(()=>U().er,"getConfig"),this.clear(),this.addEntity=this.addEntity.bind(this),this.addAttributes=this.addAttributes.bind(this),this.addRelationship=this.addRelationship.bind(this),this.setDirection=this.setDirection.bind(this),this.addCssStyles=this.addCssStyles.bind(this),this.addClass=this.addClass.bind(this),this.setClass=this.setClass.bind(this),this.setAccTitle=this.setAccTitle.bind(this),this.setAccDescription=this.setAccDescription.bind(this),this.addSubGraph=this.addSubGraph.bind(this)}static{b(this,"ErDB")}addEntity(t,n=""){return this.entities.has(t)?!this.entities.get(t)?.alias&&n&&(this.entities.get(t).alias=n,A.info(`Add alias '${n}' to entity '${t}'`)):(this.entities.set(t,{id:`entity-${t}-${this.entities.size}`,label:t,attributes:[],alias:n,shape:"erBox",look:U().look??"default",cssClasses:"default",cssStyles:[],labelType:"markdown"}),A.info("Added new entity :",t)),this.entities.get(t)}getEntity(t){return this.entities.get(t)}getEntities(){return this.entities}getClasses(){return this.classes}addAttributes(t,n){let h=this.addEntity(t),r;for(r=n.length-1;r>=0;r--)n[r].keys||(n[r].keys=[]),n[r].comment||(n[r].comment=""),h.attributes.push(n[r]),A.debug("Added attribute ",n[r].name)}addRelationship(t,n,h,r){let l;if(this.subGraphLookup.has(t))l=t;else{let f=this.addEntity(t);if(!f)return;l=f.id}let p;if(this.subGraphLookup.has(h))p=h;else{let f=this.addEntity(h);if(!f)return;p=f.id}let _={entityA:l,roleA:n,entityB:p,relSpec:r};this.relationships.push(_),A.debug("Added new relationship :",_)}getRelationships(){return this.relationships}getDirection(){return this.direction}setDirection(t){this.direction=t}getCompiledStyles(t){let n=[];for(let h of t){let r=this.classes.get(h);r?.styles&&(n=[...n,...r.styles??[]].map(l=>l.trim())),r?.textStyles&&(n=[...n,...r.textStyles??[]].map(l=>l.trim()))}return n}addCssStyles(t,n){for(let h of t){let r=this.entities.get(h),l=this.subGraphLookup.get(h);if(n){if(r)for(let p of n)r.cssStyles.push(p);if(l){l.cssStyles||(l.cssStyles=[]);for(let p of n)l.cssStyles.push(p)}}}}addClass(t,n){t.forEach(h=>{let r=this.classes.get(h);r===void 0&&(r={id:h,styles:[],textStyles:[]},this.classes.set(h,r)),n&&n.forEach(function(l){if(/color/.exec(l)){let p=l.replace("fill","bgFill");r.textStyles.push(p)}r.styles.push(l)})})}addSubGraph(t,n,h){let r=t.text.trim(),l=h.text,_=b(k=>{let O=new Set,B;return{nodeList:k.filter(E=>{if(E?.stmt)return E.stmt==="dir"&&(B=E.value),!1;if(typeof E!="string")return!1;let I=E.trim();return!I||O.has(I)?!1:(O.add(I),!0)}),dir:B}},"uniq")(n.flat()),f=_.nodeList,m=_.dir;r=r??"subGraph"+this.subCount,l=l||"",l=this.sanitizeText(l),this.subCount=this.subCount+1;let d={id:r,nodes:f,title:l.trim(),classes:[],cssStyles:[],dir:m,labelType:this.sanitizeNodeLabelType(h?.type)};return A.info("Adding",d.id,d.nodes,d.dir),d.nodes=this.makeUniq(d,this.subGraphs).nodes,this.subGraphs.push(d),this.subGraphLookup.set(r,d),r}getSubGraphs(){return this.subGraphs}setClass(t,n){for(let h of t){let r=this.entities.get(h);if(r)for(let p of n)r.cssClasses+=" "+p;let l=this.subGraphLookup.get(h);if(l)for(let p of n)l.classes.push(p)}}subgraphNodeCache(t){let n=new Set;for(let h of t)for(let r of h.nodes)n.add(r);return n}makeUniq(t,n){let h=this.subgraphNodeCache(n),r=[];return t.nodes.forEach((l,p)=>{h.has(l)?A.warn(`Entity '${l}' already belongs to another subgraph and will be ignored`):r.push(t.nodes[p])}),{nodes:r}}sanitizeText(t){return Ye.sanitizeText(t,U())}sanitizeNodeLabelType(t){switch(t){case"markdown":case"string":case"text":return t;default:return"markdown"}}clear(){this.entities=new Map,this.classes=new Map,this.relationships=[],this.subGraphs=[],this.subGraphLookup=new Map,this.subCount=0,this.subgraphDepth=0,Pe()}getData(){let t=[],n=[],h=U(),r=this.getSubGraphs(),l=new Map,p=new Map;for(let d=r.length-1;d>=0;d--){let k=r[d];k.nodes.length>0&&p.set(k.id,!0);for(let O of k.nodes)l.set(O,k.id)}for(let d=r.length-1;d>=0;d--){let k=r[d];t.push({id:k.id,label:k.title,labelStyle:"",labelType:k.labelType,parentId:l.get(k.id),padding:8,cssCompiledStyles:this.getCompiledStyles(k.classes),cssStyles:k.cssStyles,cssClasses:k.classes.join(" "),shape:"rect",dir:k.dir,isGroup:!0,look:h.look})}let _=new Set(r.map(d=>d.id)),f=0;for(let d of this.entities.keys()){if(_.has(d))continue;let k=this.entities.get(d);k&&(k.cssCompiledStyles=this.getCompiledStyles(k.cssClasses.split(" ")),k.colorIndex=f++,t.push({...k,parentId:l.get(d),isGroup:!1}))}let m=0;for(let d of this.relationships){let k={id:Qe(d.entityA,d.entityB,{prefix:"id",counter:m++}),type:"normal",curve:"basis",start:d.entityA,end:d.entityB,label:d.roleA,labelpos:"c",thickness:"normal",classes:"relationshipLine",arrowTypeStart:d.relSpec.cardB.toLowerCase(),arrowTypeEnd:d.relSpec.cardA.toLowerCase(),pattern:d.relSpec.relType=="IDENTIFYING"?"solid":"dashed",look:h.look,labelType:"markdown"};n.push(k)}return{nodes:t,edges:n,other:{},config:h,direction:this.direction}}},nt={};Be(nt,{draw:()=>pt});var pt=b(async function(t,n,h,r){A.info("REF0:"),A.info("Drawing er diagram (unified)",n);let{securityLevel:l,er:p,layout:_}=U(),f=r.db.getData(),m=it(n,l);f.type=r.type,f.layoutAlgorithm=st(_),f.config.flowchart.nodeSpacing=p?.nodeSpacing||140,f.config.flowchart.rankSpacing=p?.rankSpacing||80,f.direction=r.db.getDirection();let{config:d}=f,{look:k}=d;k==="neo"?f.markers=["only_one_neo","zero_or_one_neo","one_or_more_neo","zero_or_more_neo"]:f.markers=["only_one","zero_or_one","one_or_more","zero_or_more"],f.diagramId=n,await tt(f,m);let O=m.selectAll('[id*="-background"]');Array.from(O).length>0&&O.each(function(){let Y=We(this),I=Y.attr("id").replace("-background",""),K=m.select(`#${CSS.escape(I)}`);if(!K.empty()){let N=K.attr("transform");Y.attr("transform",N)}});let B=8;He.insertTitle(m,"erDiagramTitleText",p?.titleTopMargin??25,r.db.getDiagramTitle()),rt(m,B,"erDiagram",p?.useMaxWidth??!0)},"draw"),at=b((t,n)=>{let h=Fe,r=h(t,"r"),l=h(t,"g"),p=h(t,"b");return Ge(r,l,p,n)},"fade"),ft=b(t=>{let{theme:n,bkgColorArray:h,borderColorArray:r}=t;if(!Je(n,r))return"";let l=$e(t.look),p=Xe(h),_="";for(let f=0;f{let{look:n,theme:h,erEdgeLabelBackground:r,strokeWidth:l}=t;return` + ${ft(t)} + .entityBox { + fill: ${t.mainBkg}; + stroke: ${t.nodeBorder}; + } + + .relationshipLabelBox { + fill: ${t.tertiaryColor}; + opacity: 0.7; + background-color: ${t.tertiaryColor}; + rect { + opacity: 0.5; + } + } + + .labelBkg { + background-color: ${ue.has(h)&&r?r:at(t.tertiaryColor,.5)}; + } + + .edgeLabel { + background-color: ${ue.has(h)&&r?r:t.edgeLabelBackground}; + } + .edgeLabel .label rect { + fill: ${ue.has(h)&&r?r:t.edgeLabelBackground}; + } + .edgeLabel .label text { + fill: ${t.textColor}; + } + + .edgeLabel .label { + fill: ${t.nodeBorder}; + font-size: 14px; + } + + .label { + font-family: ${t.fontFamily}; + color: ${t.nodeTextColor||t.textColor}; + } + + .edge-pattern-dashed { + stroke-dasharray: 8,8; + } + + .node rect, + .node circle, + .node ellipse, + .node polygon + { + fill: ${t.mainBkg}; + stroke: ${t.nodeBorder}; + stroke-width: ${n==="neo"?l:"1px"}; + } + + .relationshipLine { + stroke: ${t.lineColor}; + stroke-width: ${n==="neo"?l:"1px"}; + fill: none; + } + + .marker { + fill: none !important; + stroke: ${t.lineColor} !important; + stroke-width: 1; + } + [data-look=neo].labelBkg { + background-color: ${at(t.tertiaryColor,.5)}; + } + + .cluster rect { + fill: ${t.clusterBkg??t.mainBkg}; + stroke: ${t.clusterBorder??t.nodeBorder}; + stroke-width: 1px; + } + + .cluster text { + fill: ${t.titleColor??t.textColor}; + } + + .cluster-label text { + fill: ${t.titleColor??t.textColor}; + } +`},"getStyles"),gt=kt,Bt={parser:dt,get db(){return new bt},renderer:nt,styles:gt};export{Bt as diagram}; diff --git a/src/frontend/web/von_interface/static/vendor/conversation-visuals/eventmodeling-NTZA5JFV-3E47LXSE.js b/src/frontend/web/von_interface/static/vendor/conversation-visuals/eventmodeling-NTZA5JFV-3E47LXSE.js new file mode 100644 index 000000000..6b53af713 --- /dev/null +++ b/src/frontend/web/von_interface/static/vendor/conversation-visuals/eventmodeling-NTZA5JFV-3E47LXSE.js @@ -0,0 +1 @@ +import{a as e,b as o}from"./chunk-4DL6P2YZ.js";import"./chunk-RVPSGR2P.js";import"./chunk-3RNHDNP5.js";export{e as EventModelingModule,o as createEventModelingServices}; diff --git a/src/frontend/web/von_interface/static/vendor/conversation-visuals/flowDiagram-KWPJA3E3-R6HFL2JP.js b/src/frontend/web/von_interface/static/vendor/conversation-visuals/flowDiagram-KWPJA3E3-R6HFL2JP.js new file mode 100644 index 000000000..4610872b6 --- /dev/null +++ b/src/frontend/web/von_interface/static/vendor/conversation-visuals/flowDiagram-KWPJA3E3-R6HFL2JP.js @@ -0,0 +1 @@ +import{b as r,c as m}from"./chunk-7MD2P5DB.js";import"./chunk-QP3MATMC.js";import"./chunk-VNMAEQZK.js";import"./chunk-EQQJCVK6.js";import"./chunk-GDGZBOQC.js";import"./chunk-2AVNI7YL.js";import"./chunk-SNMBC6G5.js";import"./chunk-AKE2LJPJ.js";import"./chunk-NDMMOI35.js";import"./chunk-T4OFBIBR.js";import"./chunk-L56KSVJM.js";import"./chunk-TEBTVNCH.js";import"./chunk-HVVAQLXH.js";import"./chunk-IVPOI5SM.js";import"./chunk-O46DUOKR.js";import"./chunk-C7YISUMK.js";import"./chunk-6NDAIVIK.js";import"./chunk-EUYVSIXP.js";import"./chunk-QSTT4QQC.js";import"./chunk-S4JILX6U.js";import"./chunk-XEQL7KGA.js";import"./chunk-YUSHYV7C.js";import"./chunk-3RNHDNP5.js";export{r as createFlowDiagram,m as diagram}; diff --git a/src/frontend/web/von_interface/static/vendor/conversation-visuals/fonts/KaTeX_AMS-Regular.ttf b/src/frontend/web/von_interface/static/vendor/conversation-visuals/fonts/KaTeX_AMS-Regular.ttf new file mode 100644 index 000000000..c6f9a5e7c Binary files /dev/null and b/src/frontend/web/von_interface/static/vendor/conversation-visuals/fonts/KaTeX_AMS-Regular.ttf differ diff --git a/src/frontend/web/von_interface/static/vendor/conversation-visuals/fonts/KaTeX_AMS-Regular.woff b/src/frontend/web/von_interface/static/vendor/conversation-visuals/fonts/KaTeX_AMS-Regular.woff new file mode 100644 index 000000000..b804d7b33 Binary files /dev/null and b/src/frontend/web/von_interface/static/vendor/conversation-visuals/fonts/KaTeX_AMS-Regular.woff differ diff --git a/src/frontend/web/von_interface/static/vendor/conversation-visuals/fonts/KaTeX_AMS-Regular.woff2 b/src/frontend/web/von_interface/static/vendor/conversation-visuals/fonts/KaTeX_AMS-Regular.woff2 new file mode 100644 index 000000000..0acaaff03 Binary files /dev/null and b/src/frontend/web/von_interface/static/vendor/conversation-visuals/fonts/KaTeX_AMS-Regular.woff2 differ diff --git a/src/frontend/web/von_interface/static/vendor/conversation-visuals/fonts/KaTeX_Caligraphic-Bold.ttf b/src/frontend/web/von_interface/static/vendor/conversation-visuals/fonts/KaTeX_Caligraphic-Bold.ttf new file mode 100644 index 000000000..9ff4a5e04 Binary files /dev/null and b/src/frontend/web/von_interface/static/vendor/conversation-visuals/fonts/KaTeX_Caligraphic-Bold.ttf differ diff --git a/src/frontend/web/von_interface/static/vendor/conversation-visuals/fonts/KaTeX_Caligraphic-Bold.woff b/src/frontend/web/von_interface/static/vendor/conversation-visuals/fonts/KaTeX_Caligraphic-Bold.woff new file mode 100644 index 000000000..9759710d1 Binary files /dev/null and b/src/frontend/web/von_interface/static/vendor/conversation-visuals/fonts/KaTeX_Caligraphic-Bold.woff differ diff --git a/src/frontend/web/von_interface/static/vendor/conversation-visuals/fonts/KaTeX_Caligraphic-Bold.woff2 b/src/frontend/web/von_interface/static/vendor/conversation-visuals/fonts/KaTeX_Caligraphic-Bold.woff2 new file mode 100644 index 000000000..f390922ec Binary files /dev/null and b/src/frontend/web/von_interface/static/vendor/conversation-visuals/fonts/KaTeX_Caligraphic-Bold.woff2 differ diff --git a/src/frontend/web/von_interface/static/vendor/conversation-visuals/fonts/KaTeX_Caligraphic-Regular.ttf b/src/frontend/web/von_interface/static/vendor/conversation-visuals/fonts/KaTeX_Caligraphic-Regular.ttf new file mode 100644 index 000000000..f522294ff Binary files /dev/null and b/src/frontend/web/von_interface/static/vendor/conversation-visuals/fonts/KaTeX_Caligraphic-Regular.ttf differ diff --git a/src/frontend/web/von_interface/static/vendor/conversation-visuals/fonts/KaTeX_Caligraphic-Regular.woff b/src/frontend/web/von_interface/static/vendor/conversation-visuals/fonts/KaTeX_Caligraphic-Regular.woff new file mode 100644 index 000000000..9bdd534fd Binary files /dev/null and b/src/frontend/web/von_interface/static/vendor/conversation-visuals/fonts/KaTeX_Caligraphic-Regular.woff differ diff --git a/src/frontend/web/von_interface/static/vendor/conversation-visuals/fonts/KaTeX_Caligraphic-Regular.woff2 b/src/frontend/web/von_interface/static/vendor/conversation-visuals/fonts/KaTeX_Caligraphic-Regular.woff2 new file mode 100644 index 000000000..75344a1f9 Binary files /dev/null and b/src/frontend/web/von_interface/static/vendor/conversation-visuals/fonts/KaTeX_Caligraphic-Regular.woff2 differ diff --git a/src/frontend/web/von_interface/static/vendor/conversation-visuals/fonts/KaTeX_Fraktur-Bold.ttf b/src/frontend/web/von_interface/static/vendor/conversation-visuals/fonts/KaTeX_Fraktur-Bold.ttf new file mode 100644 index 000000000..4e98259c3 Binary files /dev/null and b/src/frontend/web/von_interface/static/vendor/conversation-visuals/fonts/KaTeX_Fraktur-Bold.ttf differ diff --git a/src/frontend/web/von_interface/static/vendor/conversation-visuals/fonts/KaTeX_Fraktur-Bold.woff b/src/frontend/web/von_interface/static/vendor/conversation-visuals/fonts/KaTeX_Fraktur-Bold.woff new file mode 100644 index 000000000..e7730f662 Binary files /dev/null and b/src/frontend/web/von_interface/static/vendor/conversation-visuals/fonts/KaTeX_Fraktur-Bold.woff differ diff --git a/src/frontend/web/von_interface/static/vendor/conversation-visuals/fonts/KaTeX_Fraktur-Bold.woff2 b/src/frontend/web/von_interface/static/vendor/conversation-visuals/fonts/KaTeX_Fraktur-Bold.woff2 new file mode 100644 index 000000000..395f28bea Binary files /dev/null and b/src/frontend/web/von_interface/static/vendor/conversation-visuals/fonts/KaTeX_Fraktur-Bold.woff2 differ diff --git a/src/frontend/web/von_interface/static/vendor/conversation-visuals/fonts/KaTeX_Fraktur-Regular.ttf b/src/frontend/web/von_interface/static/vendor/conversation-visuals/fonts/KaTeX_Fraktur-Regular.ttf new file mode 100644 index 000000000..b8461b275 Binary files /dev/null and b/src/frontend/web/von_interface/static/vendor/conversation-visuals/fonts/KaTeX_Fraktur-Regular.ttf differ diff --git a/src/frontend/web/von_interface/static/vendor/conversation-visuals/fonts/KaTeX_Fraktur-Regular.woff b/src/frontend/web/von_interface/static/vendor/conversation-visuals/fonts/KaTeX_Fraktur-Regular.woff new file mode 100644 index 000000000..acab069f9 Binary files /dev/null and b/src/frontend/web/von_interface/static/vendor/conversation-visuals/fonts/KaTeX_Fraktur-Regular.woff differ diff --git a/src/frontend/web/von_interface/static/vendor/conversation-visuals/fonts/KaTeX_Fraktur-Regular.woff2 b/src/frontend/web/von_interface/static/vendor/conversation-visuals/fonts/KaTeX_Fraktur-Regular.woff2 new file mode 100644 index 000000000..735f6948d Binary files /dev/null and b/src/frontend/web/von_interface/static/vendor/conversation-visuals/fonts/KaTeX_Fraktur-Regular.woff2 differ diff --git a/src/frontend/web/von_interface/static/vendor/conversation-visuals/fonts/KaTeX_Main-Bold.ttf b/src/frontend/web/von_interface/static/vendor/conversation-visuals/fonts/KaTeX_Main-Bold.ttf new file mode 100644 index 000000000..4060e627d Binary files /dev/null and b/src/frontend/web/von_interface/static/vendor/conversation-visuals/fonts/KaTeX_Main-Bold.ttf differ diff --git a/src/frontend/web/von_interface/static/vendor/conversation-visuals/fonts/KaTeX_Main-Bold.woff b/src/frontend/web/von_interface/static/vendor/conversation-visuals/fonts/KaTeX_Main-Bold.woff new file mode 100644 index 000000000..f38136ac1 Binary files /dev/null and b/src/frontend/web/von_interface/static/vendor/conversation-visuals/fonts/KaTeX_Main-Bold.woff differ diff --git a/src/frontend/web/von_interface/static/vendor/conversation-visuals/fonts/KaTeX_Main-Bold.woff2 b/src/frontend/web/von_interface/static/vendor/conversation-visuals/fonts/KaTeX_Main-Bold.woff2 new file mode 100644 index 000000000..ab2ad21da Binary files /dev/null and b/src/frontend/web/von_interface/static/vendor/conversation-visuals/fonts/KaTeX_Main-Bold.woff2 differ diff --git a/src/frontend/web/von_interface/static/vendor/conversation-visuals/fonts/KaTeX_Main-BoldItalic.ttf b/src/frontend/web/von_interface/static/vendor/conversation-visuals/fonts/KaTeX_Main-BoldItalic.ttf new file mode 100644 index 000000000..dc007977e Binary files /dev/null and b/src/frontend/web/von_interface/static/vendor/conversation-visuals/fonts/KaTeX_Main-BoldItalic.ttf differ diff --git a/src/frontend/web/von_interface/static/vendor/conversation-visuals/fonts/KaTeX_Main-BoldItalic.woff b/src/frontend/web/von_interface/static/vendor/conversation-visuals/fonts/KaTeX_Main-BoldItalic.woff new file mode 100644 index 000000000..67807b0bd Binary files /dev/null and b/src/frontend/web/von_interface/static/vendor/conversation-visuals/fonts/KaTeX_Main-BoldItalic.woff differ diff --git a/src/frontend/web/von_interface/static/vendor/conversation-visuals/fonts/KaTeX_Main-BoldItalic.woff2 b/src/frontend/web/von_interface/static/vendor/conversation-visuals/fonts/KaTeX_Main-BoldItalic.woff2 new file mode 100644 index 000000000..5931794de Binary files /dev/null and b/src/frontend/web/von_interface/static/vendor/conversation-visuals/fonts/KaTeX_Main-BoldItalic.woff2 differ diff --git a/src/frontend/web/von_interface/static/vendor/conversation-visuals/fonts/KaTeX_Main-Italic.ttf b/src/frontend/web/von_interface/static/vendor/conversation-visuals/fonts/KaTeX_Main-Italic.ttf new file mode 100644 index 000000000..0e9b0f354 Binary files /dev/null and b/src/frontend/web/von_interface/static/vendor/conversation-visuals/fonts/KaTeX_Main-Italic.ttf differ diff --git a/src/frontend/web/von_interface/static/vendor/conversation-visuals/fonts/KaTeX_Main-Italic.woff b/src/frontend/web/von_interface/static/vendor/conversation-visuals/fonts/KaTeX_Main-Italic.woff new file mode 100644 index 000000000..6f43b594b Binary files /dev/null and b/src/frontend/web/von_interface/static/vendor/conversation-visuals/fonts/KaTeX_Main-Italic.woff differ diff --git a/src/frontend/web/von_interface/static/vendor/conversation-visuals/fonts/KaTeX_Main-Italic.woff2 b/src/frontend/web/von_interface/static/vendor/conversation-visuals/fonts/KaTeX_Main-Italic.woff2 new file mode 100644 index 000000000..b50920e13 Binary files /dev/null and b/src/frontend/web/von_interface/static/vendor/conversation-visuals/fonts/KaTeX_Main-Italic.woff2 differ diff --git a/src/frontend/web/von_interface/static/vendor/conversation-visuals/fonts/KaTeX_Main-Regular.ttf b/src/frontend/web/von_interface/static/vendor/conversation-visuals/fonts/KaTeX_Main-Regular.ttf new file mode 100644 index 000000000..dd45e1ed2 Binary files /dev/null and b/src/frontend/web/von_interface/static/vendor/conversation-visuals/fonts/KaTeX_Main-Regular.ttf differ diff --git a/src/frontend/web/von_interface/static/vendor/conversation-visuals/fonts/KaTeX_Main-Regular.woff b/src/frontend/web/von_interface/static/vendor/conversation-visuals/fonts/KaTeX_Main-Regular.woff new file mode 100644 index 000000000..21f581296 Binary files /dev/null and b/src/frontend/web/von_interface/static/vendor/conversation-visuals/fonts/KaTeX_Main-Regular.woff differ diff --git a/src/frontend/web/von_interface/static/vendor/conversation-visuals/fonts/KaTeX_Main-Regular.woff2 b/src/frontend/web/von_interface/static/vendor/conversation-visuals/fonts/KaTeX_Main-Regular.woff2 new file mode 100644 index 000000000..eb24a7ba2 Binary files /dev/null and b/src/frontend/web/von_interface/static/vendor/conversation-visuals/fonts/KaTeX_Main-Regular.woff2 differ diff --git a/src/frontend/web/von_interface/static/vendor/conversation-visuals/fonts/KaTeX_Math-BoldItalic.ttf b/src/frontend/web/von_interface/static/vendor/conversation-visuals/fonts/KaTeX_Math-BoldItalic.ttf new file mode 100644 index 000000000..728ce7a1e Binary files /dev/null and b/src/frontend/web/von_interface/static/vendor/conversation-visuals/fonts/KaTeX_Math-BoldItalic.ttf differ diff --git a/src/frontend/web/von_interface/static/vendor/conversation-visuals/fonts/KaTeX_Math-BoldItalic.woff b/src/frontend/web/von_interface/static/vendor/conversation-visuals/fonts/KaTeX_Math-BoldItalic.woff new file mode 100644 index 000000000..0ae390d74 Binary files /dev/null and b/src/frontend/web/von_interface/static/vendor/conversation-visuals/fonts/KaTeX_Math-BoldItalic.woff differ diff --git a/src/frontend/web/von_interface/static/vendor/conversation-visuals/fonts/KaTeX_Math-BoldItalic.woff2 b/src/frontend/web/von_interface/static/vendor/conversation-visuals/fonts/KaTeX_Math-BoldItalic.woff2 new file mode 100644 index 000000000..29657023a Binary files /dev/null and b/src/frontend/web/von_interface/static/vendor/conversation-visuals/fonts/KaTeX_Math-BoldItalic.woff2 differ diff --git a/src/frontend/web/von_interface/static/vendor/conversation-visuals/fonts/KaTeX_Math-Italic.ttf b/src/frontend/web/von_interface/static/vendor/conversation-visuals/fonts/KaTeX_Math-Italic.ttf new file mode 100644 index 000000000..70d559b4e Binary files /dev/null and b/src/frontend/web/von_interface/static/vendor/conversation-visuals/fonts/KaTeX_Math-Italic.ttf differ diff --git a/src/frontend/web/von_interface/static/vendor/conversation-visuals/fonts/KaTeX_Math-Italic.woff b/src/frontend/web/von_interface/static/vendor/conversation-visuals/fonts/KaTeX_Math-Italic.woff new file mode 100644 index 000000000..eb5159d4c Binary files /dev/null and b/src/frontend/web/von_interface/static/vendor/conversation-visuals/fonts/KaTeX_Math-Italic.woff differ diff --git a/src/frontend/web/von_interface/static/vendor/conversation-visuals/fonts/KaTeX_Math-Italic.woff2 b/src/frontend/web/von_interface/static/vendor/conversation-visuals/fonts/KaTeX_Math-Italic.woff2 new file mode 100644 index 000000000..215c143fd Binary files /dev/null and b/src/frontend/web/von_interface/static/vendor/conversation-visuals/fonts/KaTeX_Math-Italic.woff2 differ diff --git a/src/frontend/web/von_interface/static/vendor/conversation-visuals/fonts/KaTeX_SansSerif-Bold.ttf b/src/frontend/web/von_interface/static/vendor/conversation-visuals/fonts/KaTeX_SansSerif-Bold.ttf new file mode 100644 index 000000000..2f65a8a3a Binary files /dev/null and b/src/frontend/web/von_interface/static/vendor/conversation-visuals/fonts/KaTeX_SansSerif-Bold.ttf differ diff --git a/src/frontend/web/von_interface/static/vendor/conversation-visuals/fonts/KaTeX_SansSerif-Bold.woff b/src/frontend/web/von_interface/static/vendor/conversation-visuals/fonts/KaTeX_SansSerif-Bold.woff new file mode 100644 index 000000000..8d47c02d9 Binary files /dev/null and b/src/frontend/web/von_interface/static/vendor/conversation-visuals/fonts/KaTeX_SansSerif-Bold.woff differ diff --git a/src/frontend/web/von_interface/static/vendor/conversation-visuals/fonts/KaTeX_SansSerif-Bold.woff2 b/src/frontend/web/von_interface/static/vendor/conversation-visuals/fonts/KaTeX_SansSerif-Bold.woff2 new file mode 100644 index 000000000..cfaa3bda5 Binary files /dev/null and b/src/frontend/web/von_interface/static/vendor/conversation-visuals/fonts/KaTeX_SansSerif-Bold.woff2 differ diff --git a/src/frontend/web/von_interface/static/vendor/conversation-visuals/fonts/KaTeX_SansSerif-Italic.ttf b/src/frontend/web/von_interface/static/vendor/conversation-visuals/fonts/KaTeX_SansSerif-Italic.ttf new file mode 100644 index 000000000..d5850df98 Binary files /dev/null and b/src/frontend/web/von_interface/static/vendor/conversation-visuals/fonts/KaTeX_SansSerif-Italic.ttf differ diff --git a/src/frontend/web/von_interface/static/vendor/conversation-visuals/fonts/KaTeX_SansSerif-Italic.woff b/src/frontend/web/von_interface/static/vendor/conversation-visuals/fonts/KaTeX_SansSerif-Italic.woff new file mode 100644 index 000000000..7e02df963 Binary files /dev/null and b/src/frontend/web/von_interface/static/vendor/conversation-visuals/fonts/KaTeX_SansSerif-Italic.woff differ diff --git a/src/frontend/web/von_interface/static/vendor/conversation-visuals/fonts/KaTeX_SansSerif-Italic.woff2 b/src/frontend/web/von_interface/static/vendor/conversation-visuals/fonts/KaTeX_SansSerif-Italic.woff2 new file mode 100644 index 000000000..349c06dc6 Binary files /dev/null and b/src/frontend/web/von_interface/static/vendor/conversation-visuals/fonts/KaTeX_SansSerif-Italic.woff2 differ diff --git a/src/frontend/web/von_interface/static/vendor/conversation-visuals/fonts/KaTeX_SansSerif-Regular.ttf b/src/frontend/web/von_interface/static/vendor/conversation-visuals/fonts/KaTeX_SansSerif-Regular.ttf new file mode 100644 index 000000000..537279f6b Binary files /dev/null and b/src/frontend/web/von_interface/static/vendor/conversation-visuals/fonts/KaTeX_SansSerif-Regular.ttf differ diff --git a/src/frontend/web/von_interface/static/vendor/conversation-visuals/fonts/KaTeX_SansSerif-Regular.woff b/src/frontend/web/von_interface/static/vendor/conversation-visuals/fonts/KaTeX_SansSerif-Regular.woff new file mode 100644 index 000000000..31b84829b Binary files /dev/null and b/src/frontend/web/von_interface/static/vendor/conversation-visuals/fonts/KaTeX_SansSerif-Regular.woff differ diff --git a/src/frontend/web/von_interface/static/vendor/conversation-visuals/fonts/KaTeX_SansSerif-Regular.woff2 b/src/frontend/web/von_interface/static/vendor/conversation-visuals/fonts/KaTeX_SansSerif-Regular.woff2 new file mode 100644 index 000000000..a90eea85f Binary files /dev/null and b/src/frontend/web/von_interface/static/vendor/conversation-visuals/fonts/KaTeX_SansSerif-Regular.woff2 differ diff --git a/src/frontend/web/von_interface/static/vendor/conversation-visuals/fonts/KaTeX_Script-Regular.ttf b/src/frontend/web/von_interface/static/vendor/conversation-visuals/fonts/KaTeX_Script-Regular.ttf new file mode 100644 index 000000000..fd679bf37 Binary files /dev/null and b/src/frontend/web/von_interface/static/vendor/conversation-visuals/fonts/KaTeX_Script-Regular.ttf differ diff --git a/src/frontend/web/von_interface/static/vendor/conversation-visuals/fonts/KaTeX_Script-Regular.woff b/src/frontend/web/von_interface/static/vendor/conversation-visuals/fonts/KaTeX_Script-Regular.woff new file mode 100644 index 000000000..0e7da821e Binary files /dev/null and b/src/frontend/web/von_interface/static/vendor/conversation-visuals/fonts/KaTeX_Script-Regular.woff differ diff --git a/src/frontend/web/von_interface/static/vendor/conversation-visuals/fonts/KaTeX_Script-Regular.woff2 b/src/frontend/web/von_interface/static/vendor/conversation-visuals/fonts/KaTeX_Script-Regular.woff2 new file mode 100644 index 000000000..b3048fc11 Binary files /dev/null and b/src/frontend/web/von_interface/static/vendor/conversation-visuals/fonts/KaTeX_Script-Regular.woff2 differ diff --git a/src/frontend/web/von_interface/static/vendor/conversation-visuals/fonts/KaTeX_Size1-Regular.ttf b/src/frontend/web/von_interface/static/vendor/conversation-visuals/fonts/KaTeX_Size1-Regular.ttf new file mode 100644 index 000000000..871fd7d19 Binary files /dev/null and b/src/frontend/web/von_interface/static/vendor/conversation-visuals/fonts/KaTeX_Size1-Regular.ttf differ diff --git a/src/frontend/web/von_interface/static/vendor/conversation-visuals/fonts/KaTeX_Size1-Regular.woff b/src/frontend/web/von_interface/static/vendor/conversation-visuals/fonts/KaTeX_Size1-Regular.woff new file mode 100644 index 000000000..7f292d911 Binary files /dev/null and b/src/frontend/web/von_interface/static/vendor/conversation-visuals/fonts/KaTeX_Size1-Regular.woff differ diff --git a/src/frontend/web/von_interface/static/vendor/conversation-visuals/fonts/KaTeX_Size1-Regular.woff2 b/src/frontend/web/von_interface/static/vendor/conversation-visuals/fonts/KaTeX_Size1-Regular.woff2 new file mode 100644 index 000000000..c5a8462fb Binary files /dev/null and b/src/frontend/web/von_interface/static/vendor/conversation-visuals/fonts/KaTeX_Size1-Regular.woff2 differ diff --git a/src/frontend/web/von_interface/static/vendor/conversation-visuals/fonts/KaTeX_Size2-Regular.ttf b/src/frontend/web/von_interface/static/vendor/conversation-visuals/fonts/KaTeX_Size2-Regular.ttf new file mode 100644 index 000000000..7a212caf9 Binary files /dev/null and b/src/frontend/web/von_interface/static/vendor/conversation-visuals/fonts/KaTeX_Size2-Regular.ttf differ diff --git a/src/frontend/web/von_interface/static/vendor/conversation-visuals/fonts/KaTeX_Size2-Regular.woff b/src/frontend/web/von_interface/static/vendor/conversation-visuals/fonts/KaTeX_Size2-Regular.woff new file mode 100644 index 000000000..d241d9be2 Binary files /dev/null and b/src/frontend/web/von_interface/static/vendor/conversation-visuals/fonts/KaTeX_Size2-Regular.woff differ diff --git a/src/frontend/web/von_interface/static/vendor/conversation-visuals/fonts/KaTeX_Size2-Regular.woff2 b/src/frontend/web/von_interface/static/vendor/conversation-visuals/fonts/KaTeX_Size2-Regular.woff2 new file mode 100644 index 000000000..e1bccfe24 Binary files /dev/null and b/src/frontend/web/von_interface/static/vendor/conversation-visuals/fonts/KaTeX_Size2-Regular.woff2 differ diff --git a/src/frontend/web/von_interface/static/vendor/conversation-visuals/fonts/KaTeX_Size3-Regular.ttf b/src/frontend/web/von_interface/static/vendor/conversation-visuals/fonts/KaTeX_Size3-Regular.ttf new file mode 100644 index 000000000..00bff3495 Binary files /dev/null and b/src/frontend/web/von_interface/static/vendor/conversation-visuals/fonts/KaTeX_Size3-Regular.ttf differ diff --git a/src/frontend/web/von_interface/static/vendor/conversation-visuals/fonts/KaTeX_Size3-Regular.woff b/src/frontend/web/von_interface/static/vendor/conversation-visuals/fonts/KaTeX_Size3-Regular.woff new file mode 100644 index 000000000..e6e9b658d Binary files /dev/null and b/src/frontend/web/von_interface/static/vendor/conversation-visuals/fonts/KaTeX_Size3-Regular.woff differ diff --git a/src/frontend/web/von_interface/static/vendor/conversation-visuals/fonts/KaTeX_Size3-Regular.woff2 b/src/frontend/web/von_interface/static/vendor/conversation-visuals/fonts/KaTeX_Size3-Regular.woff2 new file mode 100644 index 000000000..249a28662 Binary files /dev/null and b/src/frontend/web/von_interface/static/vendor/conversation-visuals/fonts/KaTeX_Size3-Regular.woff2 differ diff --git a/src/frontend/web/von_interface/static/vendor/conversation-visuals/fonts/KaTeX_Size4-Regular.ttf b/src/frontend/web/von_interface/static/vendor/conversation-visuals/fonts/KaTeX_Size4-Regular.ttf new file mode 100644 index 000000000..74f08921f Binary files /dev/null and b/src/frontend/web/von_interface/static/vendor/conversation-visuals/fonts/KaTeX_Size4-Regular.ttf differ diff --git a/src/frontend/web/von_interface/static/vendor/conversation-visuals/fonts/KaTeX_Size4-Regular.woff b/src/frontend/web/von_interface/static/vendor/conversation-visuals/fonts/KaTeX_Size4-Regular.woff new file mode 100644 index 000000000..e1ec54576 Binary files /dev/null and b/src/frontend/web/von_interface/static/vendor/conversation-visuals/fonts/KaTeX_Size4-Regular.woff differ diff --git a/src/frontend/web/von_interface/static/vendor/conversation-visuals/fonts/KaTeX_Size4-Regular.woff2 b/src/frontend/web/von_interface/static/vendor/conversation-visuals/fonts/KaTeX_Size4-Regular.woff2 new file mode 100644 index 000000000..680c13085 Binary files /dev/null and b/src/frontend/web/von_interface/static/vendor/conversation-visuals/fonts/KaTeX_Size4-Regular.woff2 differ diff --git a/src/frontend/web/von_interface/static/vendor/conversation-visuals/fonts/KaTeX_Typewriter-Regular.ttf b/src/frontend/web/von_interface/static/vendor/conversation-visuals/fonts/KaTeX_Typewriter-Regular.ttf new file mode 100644 index 000000000..c83252c57 Binary files /dev/null and b/src/frontend/web/von_interface/static/vendor/conversation-visuals/fonts/KaTeX_Typewriter-Regular.ttf differ diff --git a/src/frontend/web/von_interface/static/vendor/conversation-visuals/fonts/KaTeX_Typewriter-Regular.woff b/src/frontend/web/von_interface/static/vendor/conversation-visuals/fonts/KaTeX_Typewriter-Regular.woff new file mode 100644 index 000000000..2432419f2 Binary files /dev/null and b/src/frontend/web/von_interface/static/vendor/conversation-visuals/fonts/KaTeX_Typewriter-Regular.woff differ diff --git a/src/frontend/web/von_interface/static/vendor/conversation-visuals/fonts/KaTeX_Typewriter-Regular.woff2 b/src/frontend/web/von_interface/static/vendor/conversation-visuals/fonts/KaTeX_Typewriter-Regular.woff2 new file mode 100644 index 000000000..771f1af70 Binary files /dev/null and b/src/frontend/web/von_interface/static/vendor/conversation-visuals/fonts/KaTeX_Typewriter-Regular.woff2 differ diff --git a/src/frontend/web/von_interface/static/vendor/conversation-visuals/ganttDiagram-FUAMR5RP-K5SODDM6.js b/src/frontend/web/von_interface/static/vendor/conversation-visuals/ganttDiagram-FUAMR5RP-K5SODDM6.js new file mode 100644 index 000000000..79633d5a3 --- /dev/null +++ b/src/frontend/web/von_interface/static/vendor/conversation-visuals/ganttDiagram-FUAMR5RP-K5SODDM6.js @@ -0,0 +1,292 @@ +import{p as Ye}from"./chunk-EUYVSIXP.js";import{a as Je}from"./chunk-QSTT4QQC.js";import{$ as ot,O as ce,P as le,U as ue,V as de,W as fe,X as he,Y as me,Z as ke,_ as ye}from"./chunk-S4JILX6U.js";import{A as Ee,B as Ft,C as Ot,D as Ie,a as oe,b as rt,d as ge,e as pe,f as ve,g as Te,h as vt,i as be,o as xe,p as It,q as Yt,r as $t,s as Lt,t as At,u as we,v as _e,w as De,x as Se,y as Ce,z as Me}from"./chunk-XEQL7KGA.js";import{a as l}from"./chunk-YUSHYV7C.js";import{b as wt,c as at}from"./chunk-3RNHDNP5.js";var $e=wt((Wt,Vt)=>{(function(t,e){typeof Wt=="object"&&typeof Vt<"u"?Vt.exports=e():typeof define=="function"&&define.amd?define(e):(t=typeof globalThis<"u"?globalThis:t||self).dayjs_plugin_isoWeek=e()})(Wt,(function(){"use strict";var t="day";return function(e,n,s){var r=function(w){return w.add(4-w.isoWeekday(),t)},f=n.prototype;f.isoWeekYear=function(){return r(this).year()},f.isoWeek=function(w){if(!this.$utils().u(w))return this.add(7*(w-this.isoWeek()),t);var S,N,Y,z,R=r(this),H=(S=this.isoWeekYear(),N=this.$u,Y=(N?s.utc:s)().year(S).startOf("year"),z=4-Y.isoWeekday(),Y.isoWeekday()>4&&(z+=7),Y.add(z,t));return R.diff(H,"week")+1},f.isoWeekday=function(w){return this.$utils().u(w)?this.day()||7:this.day(this.day()%7?w:w-7)};var y=f.startOf;f.startOf=function(w,S){var N=this.$utils(),Y=!!N.u(S)||S;return N.p(w)==="isoweek"?Y?this.date(this.date()-(this.isoWeekday()-1)).startOf("day"):this.date(this.date()-1-(this.isoWeekday()-1)+7).endOf("day"):y.bind(this)(w,S)}}}))});var Le=wt((Pt,Nt)=>{(function(t,e){typeof Pt=="object"&&typeof Nt<"u"?Nt.exports=e():typeof define=="function"&&define.amd?define(e):(t=typeof globalThis<"u"?globalThis:t||self).dayjs_plugin_customParseFormat=e()})(Pt,(function(){"use strict";var t={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},e=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,n=/\d/,s=/\d\d/,r=/\d\d?/,f=/\d*[^-_:/,()\s\d]+/,y={},w=function(x){return(x=+x)+(x>68?1900:2e3)},S=function(x){return function(_){this[x]=+_}},N=[/[+-]\d\d:?(\d\d)?|Z/,function(x){(this.zone||(this.zone={})).offset=(function(_){if(!_||_==="Z")return 0;var b=_.match(/([+-]|\d\d)/g),A=60*b[1]+(+b[2]||0);return A===0?0:b[0]==="+"?-A:A})(x)}],Y=function(x){var _=y[x];return _&&(_.indexOf?_:_.s.concat(_.f))},z=function(x,_){var b,A=y.meridiem;if(A){for(var X=1;X<=24;X+=1)if(x.indexOf(A(X,0,_))>-1){b=X>12;break}}else b=x===(_?"pm":"PM");return b},R={A:[f,function(x){this.afternoon=z(x,!1)}],a:[f,function(x){this.afternoon=z(x,!0)}],Q:[n,function(x){this.month=3*(x-1)+1}],S:[n,function(x){this.milliseconds=100*+x}],SS:[s,function(x){this.milliseconds=10*+x}],SSS:[/\d{3}/,function(x){this.milliseconds=+x}],s:[r,S("seconds")],ss:[r,S("seconds")],m:[r,S("minutes")],mm:[r,S("minutes")],H:[r,S("hours")],h:[r,S("hours")],HH:[r,S("hours")],hh:[r,S("hours")],D:[r,S("day")],DD:[s,S("day")],Do:[f,function(x){var _=y.ordinal,b=x.match(/\d+/);if(this.day=b[0],_)for(var A=1;A<=31;A+=1)_(A).replace(/\[|\]/g,"")===x&&(this.day=A)}],w:[r,S("week")],ww:[s,S("week")],M:[r,S("month")],MM:[s,S("month")],MMM:[f,function(x){var _=Y("months"),b=(Y("monthsShort")||_.map((function(A){return A.slice(0,3)}))).indexOf(x)+1;if(b<1)throw new Error;this.month=b%12||b}],MMMM:[f,function(x){var _=Y("months").indexOf(x)+1;if(_<1)throw new Error;this.month=_%12||_}],Y:[/[+-]?\d+/,S("year")],YY:[s,function(x){this.year=w(x)}],YYYY:[/\d{4}/,S("year")],Z:N,ZZ:N};function H(x){var _,b;_=x,b=y&&y.formats;for(var A=(x=_.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(W,F,k){var p=k&&k.toUpperCase();return F||b[k]||t[k]||b[p].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(v,T,a){return T||a.slice(1)}))}))).match(e),X=A.length,U=0;U-1)return new Date((d==="X"?1e3:1)*h);var i=H(d)(h),M=i.year,c=i.month,B=i.day,o=i.hours,D=i.minutes,E=i.seconds,V=i.milliseconds,P=i.zone,L=i.week,O=new Date,tt=B||(M||c?1:O.getDate()),et=M||O.getFullYear(),lt=0;M&&!c||(lt=c>0?c-1:O.getMonth());var ut,dt=o||0,j=D||0,nt=E||0,K=V||0;return P?new Date(Date.UTC(et,lt,tt,dt,j,nt,K+60*P.offset*1e3)):u?new Date(Date.UTC(et,lt,tt,dt,j,nt,K)):(ut=new Date(et,lt,tt,dt,j,nt,K),L&&(ut=C(ut).week(L).toDate()),ut)}catch{return new Date("")}})($,I,g,b),this.init(),p&&p!==!0&&(this.$L=this.locale(p).$L),k&&$!=this.format(I)&&(this.$d=new Date("")),y={}}else if(I instanceof Array)for(var v=I.length,T=1;T<=v;T+=1){m[1]=I[T-1];var a=b.apply(this,m);if(a.isValid()){this.$d=a.$d,this.$L=a.$L,this.init();break}T===v&&(this.$d=new Date(""))}else X.call(this,U)}}}))});var Ae=wt((Rt,zt)=>{(function(t,e){typeof Rt=="object"&&typeof zt<"u"?zt.exports=e():typeof define=="function"&&define.amd?define(e):(t=typeof globalThis<"u"?globalThis:t||self).dayjs_plugin_advancedFormat=e()})(Rt,(function(){"use strict";return function(t,e){var n=e.prototype,s=n.format;n.format=function(r){var f=this,y=this.$locale();if(!this.isValid())return s.bind(this)(r);var w=this.$utils(),S=(r||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,(function(N){switch(N){case"Q":return Math.ceil((f.$M+1)/3);case"Do":return y.ordinal(f.$D);case"gggg":return f.weekYear();case"GGGG":return f.isoWeekYear();case"wo":return y.ordinal(f.week(),"W");case"w":case"ww":return w.s(f.week(),N==="w"?1:2,"0");case"W":case"WW":return w.s(f.isoWeek(),N==="W"?1:2,"0");case"k":case"kk":return w.s(String(f.$H===0?24:f.$H),N==="k"?1:2,"0");case"X":return Math.floor(f.$d.getTime()/1e3);case"x":return f.$d.getTime();case"z":return"["+f.offsetName()+"]";case"zzz":return"["+f.offsetName("long")+"]";default:return N}}));return s.bind(this)(S)}}}))});var Fe=wt((Ht,Bt)=>{(function(t,e){typeof Ht=="object"&&typeof Bt<"u"?Bt.exports=e():typeof define=="function"&&define.amd?define(e):(t=typeof globalThis<"u"?globalThis:t||self).dayjs_plugin_duration=e()})(Ht,(function(){"use strict";var t,e,n=1e3,s=6e4,r=36e5,f=864e5,y=31536e6,w=2628e6,S=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/,N=/\[([^\]]+)]|YYYY|YY|Y|M{1,2}|D{1,2}|H{1,2}|m{1,2}|s{1,2}|SSS/g,Y={years:y,months:w,days:f,hours:r,minutes:s,seconds:n,milliseconds:1,weeks:6048e5},z=function($){return $ instanceof X},R=function($,g,m){return new X($,m,g.$l)},H=function($){return e.p($)+"s"},x=function($){return $<0},_=function($){return x($)?Math.ceil($):Math.floor($)},b=function($){return Math.abs($)},A=function($,g){return $?x($)?{negative:!0,format:""+b($)+g}:{negative:!1,format:""+$+g}:{negative:!1,format:""}},X=(function(){function $(m,I,W){var F=this;if(this.$d={},this.$l=W,m===void 0&&(this.$ms=0,this.parseFromMilliseconds()),I)return R(m*Y[H(I)],this);if(typeof m=="number")return this.$ms=m,this.parseFromMilliseconds(),this;if(typeof m=="object")return Object.keys(m).forEach((function(v){F.$d[H(v)]=m[v]})),this.calMilliseconds(),this;if(typeof m=="string"){var k=m.match(S);if(k){var p=k.slice(2).map((function(v){return v!=null?Number(v):0}));return this.$d.years=p[0],this.$d.months=p[1],this.$d.weeks=p[2],this.$d.days=p[3],this.$d.hours=p[4],this.$d.minutes=p[5],this.$d.seconds=p[6],this.calMilliseconds(),this}}return this}var g=$.prototype;return g.calMilliseconds=function(){var m=this;this.$ms=Object.keys(this.$d).reduce((function(I,W){return I+(m.$d[W]||0)*Y[W]}),0)},g.parseFromMilliseconds=function(){var m=this.$ms;this.$d.years=_(m/y),m%=y,this.$d.months=_(m/w),m%=w,this.$d.days=_(m/f),m%=f,this.$d.hours=_(m/r),m%=r,this.$d.minutes=_(m/s),m%=s,this.$d.seconds=_(m/n),m%=n,this.$d.milliseconds=m},g.toISOString=function(){var m=A(this.$d.years,"Y"),I=A(this.$d.months,"M"),W=+this.$d.days||0;this.$d.weeks&&(W+=7*this.$d.weeks);var F=A(W,"D"),k=A(this.$d.hours,"H"),p=A(this.$d.minutes,"M"),v=this.$d.seconds||0;this.$d.milliseconds&&(v+=this.$d.milliseconds/1e3,v=Math.round(1e3*v)/1e3);var T=A(v,"S"),a=m.negative||I.negative||F.negative||k.negative||p.negative||T.negative,h=k.format||p.format||T.format?"T":"",d=(a?"-":"")+"P"+m.format+I.format+F.format+h+k.format+p.format+T.format;return d==="P"||d==="-P"?"P0D":d},g.toJSON=function(){return this.toISOString()},g.format=function(m){var I=m||"YYYY-MM-DDTHH:mm:ss",W={Y:this.$d.years,YY:e.s(this.$d.years,2,"0"),YYYY:e.s(this.$d.years,4,"0"),M:this.$d.months,MM:e.s(this.$d.months,2,"0"),D:this.$d.days,DD:e.s(this.$d.days,2,"0"),H:this.$d.hours,HH:e.s(this.$d.hours,2,"0"),m:this.$d.minutes,mm:e.s(this.$d.minutes,2,"0"),s:this.$d.seconds,ss:e.s(this.$d.seconds,2,"0"),SSS:e.s(this.$d.milliseconds,3,"0")};return I.replace(N,(function(F,k){return k||String(W[F])}))},g.as=function(m){return this.$ms/Y[H(m)]},g.get=function(m){var I=this.$ms,W=H(m);return W==="milliseconds"?I%=1e3:I=W==="weeks"?_(I/Y[W]):this.$d[W],I||0},g.add=function(m,I,W){var F;return F=I?m*Y[H(I)]:z(m)?m.$ms:R(m,this).$ms,R(this.$ms+F*(W?-1:1),this)},g.subtract=function(m,I){return this.add(m,I,!0)},g.locale=function(m){var I=this.clone();return I.$l=m,I},g.clone=function(){return R(this.$ms,this)},g.humanize=function(m){return t().add(this.$ms,"ms").locale(this.$l).fromNow(!m)},g.valueOf=function(){return this.asMilliseconds()},g.milliseconds=function(){return this.get("milliseconds")},g.asMilliseconds=function(){return this.as("milliseconds")},g.seconds=function(){return this.get("seconds")},g.asSeconds=function(){return this.as("seconds")},g.minutes=function(){return this.get("minutes")},g.asMinutes=function(){return this.as("minutes")},g.hours=function(){return this.get("hours")},g.asHours=function(){return this.as("hours")},g.days=function(){return this.get("days")},g.asDays=function(){return this.as("days")},g.weeks=function(){return this.get("weeks")},g.asWeeks=function(){return this.as("weeks")},g.months=function(){return this.get("months")},g.asMonths=function(){return this.as("months")},g.years=function(){return this.get("years")},g.asYears=function(){return this.as("years")},$})(),U=function($,g,m){return $.add(g.years()*m,"y").add(g.months()*m,"M").add(g.days()*m,"d").add(g.hours()*m,"h").add(g.minutes()*m,"m").add(g.seconds()*m,"s").add(g.milliseconds()*m,"ms")};return function($,g,m){t=m,e=m().$utils(),m.duration=function(F,k){var p=m.locale();return R(F,{$l:p},k)},m.isDuration=z;var I=g.prototype.add,W=g.prototype.subtract;g.prototype.add=function(F,k){return z(F)?U(this,F,1):I.bind(this)(F,k)},g.prototype.subtract=function(F,k){return z(F)?U(this,F,-1):W.bind(this)(F,k)}}}))});var Pe=at(Je(),1),Q=at(oe(),1),Ne=at($e(),1),Re=at(Le(),1),ze=at(Ae(),1),mt=at(oe(),1),Ke=at(Fe(),1);var Gt=(function(){var t=l(function(T,a,h,d){for(h=h||{},d=T.length;d--;h[T[d]]=a);return h},"o"),e=[6,8,10,12,13,14,15,16,17,18,20,21,22,23,24,25,26,27,28,29,30,31,33,35,36,38,40],n=[1,26],s=[1,27],r=[1,28],f=[1,29],y=[1,30],w=[1,31],S=[1,32],N=[1,33],Y=[1,34],z=[1,9],R=[1,10],H=[1,11],x=[1,12],_=[1,13],b=[1,14],A=[1,15],X=[1,16],U=[1,19],$=[1,20],g=[1,21],m=[1,22],I=[1,23],W=[1,25],F=[1,35],k={trace:l(function(){},"trace"),yy:{},symbols_:{error:2,start:3,gantt:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NL:10,weekday:11,weekday_monday:12,weekday_tuesday:13,weekday_wednesday:14,weekday_thursday:15,weekday_friday:16,weekday_saturday:17,weekday_sunday:18,weekend:19,weekend_friday:20,weekend_saturday:21,dateFormat:22,inclusiveEndDates:23,topAxis:24,axisFormat:25,tickInterval:26,excludes:27,includes:28,todayMarker:29,title:30,acc_title:31,acc_title_value:32,acc_descr:33,acc_descr_value:34,acc_descr_multiline_value:35,section:36,clickStatement:37,taskTxt:38,taskData:39,click:40,callbackname:41,callbackargs:42,href:43,clickStatementDebug:44,$accept:0,$end:1},terminals_:{2:"error",4:"gantt",6:"EOF",8:"SPACE",10:"NL",12:"weekday_monday",13:"weekday_tuesday",14:"weekday_wednesday",15:"weekday_thursday",16:"weekday_friday",17:"weekday_saturday",18:"weekday_sunday",20:"weekend_friday",21:"weekend_saturday",22:"dateFormat",23:"inclusiveEndDates",24:"topAxis",25:"axisFormat",26:"tickInterval",27:"excludes",28:"includes",29:"todayMarker",30:"title",31:"acc_title",32:"acc_title_value",33:"acc_descr",34:"acc_descr_value",35:"acc_descr_multiline_value",36:"section",38:"taskTxt",39:"taskData",40:"click",41:"callbackname",42:"callbackargs",43:"href"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[11,1],[11,1],[11,1],[11,1],[11,1],[11,1],[11,1],[19,1],[19,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,2],[9,2],[9,1],[9,1],[9,1],[9,2],[37,2],[37,3],[37,3],[37,4],[37,3],[37,4],[37,2],[44,2],[44,3],[44,3],[44,4],[44,3],[44,4],[44,2]],performAction:l(function(a,h,d,u,C,i,M){var c=i.length-1;switch(C){case 1:return i[c-1];case 2:this.$=[];break;case 3:i[c-1].push(i[c]),this.$=i[c-1];break;case 4:case 5:this.$=i[c];break;case 6:case 7:this.$=[];break;case 8:u.setWeekday("monday");break;case 9:u.setWeekday("tuesday");break;case 10:u.setWeekday("wednesday");break;case 11:u.setWeekday("thursday");break;case 12:u.setWeekday("friday");break;case 13:u.setWeekday("saturday");break;case 14:u.setWeekday("sunday");break;case 15:u.setWeekend("friday");break;case 16:u.setWeekend("saturday");break;case 17:u.setDateFormat(i[c].substr(11)),this.$=i[c].substr(11);break;case 18:u.enableInclusiveEndDates(),this.$=i[c].substr(18);break;case 19:u.TopAxis(),this.$=i[c].substr(8);break;case 20:u.setAxisFormat(i[c].substr(11)),this.$=i[c].substr(11);break;case 21:u.setTickInterval(i[c].substr(13)),this.$=i[c].substr(13);break;case 22:u.setExcludes(i[c].substr(9)),this.$=i[c].substr(9);break;case 23:u.setIncludes(i[c].substr(9)),this.$=i[c].substr(9);break;case 24:u.setTodayMarker(i[c].substr(12)),this.$=i[c].substr(12);break;case 27:u.setDiagramTitle(i[c].substr(6)),this.$=i[c].substr(6);break;case 28:this.$=i[c].trim(),u.setAccTitle(this.$);break;case 29:case 30:this.$=i[c].trim(),u.setAccDescription(this.$);break;case 31:u.addSection(i[c].substr(8)),this.$=i[c].substr(8);break;case 33:u.addTask(i[c-1],i[c]),this.$="task";break;case 34:this.$=i[c-1],u.setClickEvent(i[c-1],i[c],null);break;case 35:this.$=i[c-2],u.setClickEvent(i[c-2],i[c-1],i[c]);break;case 36:this.$=i[c-2],u.setClickEvent(i[c-2],i[c-1],null),u.setLink(i[c-2],i[c]);break;case 37:this.$=i[c-3],u.setClickEvent(i[c-3],i[c-2],i[c-1]),u.setLink(i[c-3],i[c]);break;case 38:this.$=i[c-2],u.setClickEvent(i[c-2],i[c],null),u.setLink(i[c-2],i[c-1]);break;case 39:this.$=i[c-3],u.setClickEvent(i[c-3],i[c-1],i[c]),u.setLink(i[c-3],i[c-2]);break;case 40:this.$=i[c-1],u.setLink(i[c-1],i[c]);break;case 41:case 47:this.$=i[c-1]+" "+i[c];break;case 42:case 43:case 45:this.$=i[c-2]+" "+i[c-1]+" "+i[c];break;case 44:case 46:this.$=i[c-3]+" "+i[c-2]+" "+i[c-1]+" "+i[c];break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},t(e,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:17,12:n,13:s,14:r,15:f,16:y,17:w,18:S,19:18,20:N,21:Y,22:z,23:R,24:H,25:x,26:_,27:b,28:A,29:X,30:U,31:$,33:g,35:m,36:I,37:24,38:W,40:F},t(e,[2,7],{1:[2,1]}),t(e,[2,3]),{9:36,11:17,12:n,13:s,14:r,15:f,16:y,17:w,18:S,19:18,20:N,21:Y,22:z,23:R,24:H,25:x,26:_,27:b,28:A,29:X,30:U,31:$,33:g,35:m,36:I,37:24,38:W,40:F},t(e,[2,5]),t(e,[2,6]),t(e,[2,17]),t(e,[2,18]),t(e,[2,19]),t(e,[2,20]),t(e,[2,21]),t(e,[2,22]),t(e,[2,23]),t(e,[2,24]),t(e,[2,25]),t(e,[2,26]),t(e,[2,27]),{32:[1,37]},{34:[1,38]},t(e,[2,30]),t(e,[2,31]),t(e,[2,32]),{39:[1,39]},t(e,[2,8]),t(e,[2,9]),t(e,[2,10]),t(e,[2,11]),t(e,[2,12]),t(e,[2,13]),t(e,[2,14]),t(e,[2,15]),t(e,[2,16]),{41:[1,40],43:[1,41]},t(e,[2,4]),t(e,[2,28]),t(e,[2,29]),t(e,[2,33]),t(e,[2,34],{42:[1,42],43:[1,43]}),t(e,[2,40],{41:[1,44]}),t(e,[2,35],{43:[1,45]}),t(e,[2,36]),t(e,[2,38],{42:[1,46]}),t(e,[2,37]),t(e,[2,39])],defaultActions:{},parseError:l(function(a,h){if(h.recoverable)this.trace(a);else{var d=new Error(a);throw d.hash=h,d}},"parseError"),parse:l(function(a){var h=this,d=[0],u=[],C=[null],i=[],M=this.table,c="",B=0,o=0,D=0,E=2,V=1,P=i.slice.call(arguments,1),L=Object.create(this.lexer),O={yy:{}};for(var tt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,tt)&&(O.yy[tt]=this.yy[tt]);L.setInput(a,O.yy),O.yy.lexer=L,O.yy.parser=this,typeof L.yylloc>"u"&&(L.yylloc={});var et=L.yylloc;i.push(et);var lt=L.options&&L.options.ranges;typeof O.yy.parseError=="function"?this.parseError=O.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function ut(Z){d.length=d.length-2*Z,C.length=C.length-Z,i.length=i.length-Z}l(ut,"popStack");function dt(){var Z;return Z=u.pop()||L.lex()||V,typeof Z!="number"&&(Z instanceof Array&&(u=Z,Z=u.pop()),Z=h.symbols_[Z]||Z),Z}l(dt,"lex");for(var j,nt,K,q,Bi,Mt,ft={},bt,it,ae,xt;;){if(K=d[d.length-1],this.defaultActions[K]?q=this.defaultActions[K]:((j===null||typeof j>"u")&&(j=dt()),q=M[K]&&M[K][j]),typeof q>"u"||!q.length||!q[0]){var Et="";xt=[];for(bt in M[K])this.terminals_[bt]&&bt>E&&xt.push("'"+this.terminals_[bt]+"'");L.showPosition?Et="Parse error on line "+(B+1)+`: +`+L.showPosition()+` +Expecting `+xt.join(", ")+", got '"+(this.terminals_[j]||j)+"'":Et="Parse error on line "+(B+1)+": Unexpected "+(j==V?"end of input":"'"+(this.terminals_[j]||j)+"'"),this.parseError(Et,{text:L.match,token:this.terminals_[j]||j,line:L.yylineno,loc:et,expected:xt})}if(q[0]instanceof Array&&q.length>1)throw new Error("Parse Error: multiple actions possible at state: "+K+", token: "+j);switch(q[0]){case 1:d.push(j),C.push(L.yytext),i.push(L.yylloc),d.push(q[1]),j=null,nt?(j=nt,nt=null):(o=L.yyleng,c=L.yytext,B=L.yylineno,et=L.yylloc,D>0&&D--);break;case 2:if(it=this.productions_[q[1]][1],ft.$=C[C.length-it],ft._$={first_line:i[i.length-(it||1)].first_line,last_line:i[i.length-1].last_line,first_column:i[i.length-(it||1)].first_column,last_column:i[i.length-1].last_column},lt&&(ft._$.range=[i[i.length-(it||1)].range[0],i[i.length-1].range[1]]),Mt=this.performAction.apply(ft,[c,o,B,O.yy,q[1],C,i].concat(P)),typeof Mt<"u")return Mt;it&&(d=d.slice(0,-1*it*2),C=C.slice(0,-1*it),i=i.slice(0,-1*it)),d.push(this.productions_[q[1]][0]),C.push(ft.$),i.push(ft._$),ae=M[d[d.length-2]][d[d.length-1]],d.push(ae);break;case 3:return!0}}return!0},"parse")},p=(function(){var T={EOF:1,parseError:l(function(h,d){if(this.yy.parser)this.yy.parser.parseError(h,d);else throw new Error(h)},"parseError"),setInput:l(function(a,h){return this.yy=h||this.yy||{},this._input=a,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:l(function(){var a=this._input[0];this.yytext+=a,this.yyleng++,this.offset++,this.match+=a,this.matched+=a;var h=a.match(/(?:\r\n?|\n).*/g);return h?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),a},"input"),unput:l(function(a){var h=a.length,d=a.split(/(?:\r\n?|\n)/g);this._input=a+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-h),this.offset-=h;var u=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),d.length-1&&(this.yylineno-=d.length-1);var C=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:d?(d.length===u.length?this.yylloc.first_column:0)+u[u.length-d.length].length-d[0].length:this.yylloc.first_column-h},this.options.ranges&&(this.yylloc.range=[C[0],C[0]+this.yyleng-h]),this.yyleng=this.yytext.length,this},"unput"),more:l(function(){return this._more=!0,this},"more"),reject:l(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). +`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:l(function(a){this.unput(this.match.slice(a))},"less"),pastInput:l(function(){var a=this.matched.substr(0,this.matched.length-this.match.length);return(a.length>20?"...":"")+a.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:l(function(){var a=this.match;return a.length<20&&(a+=this._input.substr(0,20-a.length)),(a.substr(0,20)+(a.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:l(function(){var a=this.pastInput(),h=new Array(a.length+1).join("-");return a+this.upcomingInput()+` +`+h+"^"},"showPosition"),test_match:l(function(a,h){var d,u,C;if(this.options.backtrack_lexer&&(C={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&&(C.yylloc.range=this.yylloc.range.slice(0))),u=a[0].match(/(?:\r\n?|\n).*/g),u&&(this.yylineno+=u.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:u?u[u.length-1].length-u[u.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+a[0].length},this.yytext+=a[0],this.match+=a[0],this.matches=a,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(a[0].length),this.matched+=a[0],d=this.performAction.call(this,this.yy,this,h,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),d)return d;if(this._backtrack){for(var i in C)this[i]=C[i];return!1}return!1},"test_match"),next:l(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var a,h,d,u;this._more||(this.yytext="",this.match="");for(var C=this._currentRules(),i=0;ih[0].length)){if(h=d,u=i,this.options.backtrack_lexer){if(a=this.test_match(d,C[i]),a!==!1)return a;if(this._backtrack){h=!1;continue}else return!1}else if(!this.options.flex)break}return h?(a=this.test_match(h,C[u]),a!==!1?a:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text. +`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:l(function(){var h=this.next();return h||this.lex()},"lex"),begin:l(function(h){this.conditionStack.push(h)},"begin"),popState:l(function(){var h=this.conditionStack.length-1;return h>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:l(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:l(function(h){return h=this.conditionStack.length-1-Math.abs(h||0),h>=0?this.conditionStack[h]:"INITIAL"},"topState"),pushState:l(function(h){this.begin(h)},"pushState"),stateStackSize:l(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:l(function(h,d,u,C){var i=C;switch(u){case 0:return this.begin("open_directive"),"open_directive";break;case 1:return this.begin("acc_title"),31;break;case 2:return this.popState(),"acc_title_value";break;case 3:return this.begin("acc_descr"),33;break;case 4:return this.popState(),"acc_descr_value";break;case 5:this.begin("acc_descr_multiline");break;case 6:this.popState();break;case 7:return"acc_descr_multiline_value";case 8:break;case 9:break;case 10:break;case 11:return 10;case 12:break;case 13:break;case 14:this.begin("href");break;case 15:this.popState();break;case 16:return 43;case 17:this.begin("callbackname");break;case 18:this.popState();break;case 19:this.popState(),this.begin("callbackargs");break;case 20:return 41;case 21:this.popState();break;case 22:return 42;case 23:this.begin("click");break;case 24:this.popState();break;case 25:return 40;case 26:return 4;case 27:return 22;case 28:return 23;case 29:return 24;case 30:return 25;case 31:return 26;case 32:return 28;case 33:return 27;case 34:return 29;case 35:return 12;case 36:return 13;case 37:return 14;case 38:return 15;case 39:return 16;case 40:return 17;case 41:return 18;case 42:return 20;case 43:return 21;case 44:return"date";case 45:return 30;case 46:return"accDescription";case 47:return 36;case 48:return 38;case 49:return 39;case 50:return":";case 51:return 6;case 52:return"INVALID"}},"anonymous"),rules:[/^(?:%%\{)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:%%(?!\{)*[^\n]*)/i,/^(?:[^\}]%%*[^\n]*)/i,/^(?:%%*[^\n]*[\n]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:%[^\n]*)/i,/^(?:href[\s]+["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:call[\s]+)/i,/^(?:\([\s]*\))/i,/^(?:\()/i,/^(?:[^(]*)/i,/^(?:\))/i,/^(?:[^)]*)/i,/^(?:click[\s]+)/i,/^(?:[\s\n])/i,/^(?:[^\s\n]*)/i,/^(?:gantt\b)/i,/^(?:dateFormat\s[^#\n;]+)/i,/^(?:inclusiveEndDates\b)/i,/^(?:topAxis\b)/i,/^(?:axisFormat\s[^#\n;]+)/i,/^(?:tickInterval\s[^#\n;]+)/i,/^(?:includes\s[^#\n;]+)/i,/^(?:excludes\s[^#\n;]+)/i,/^(?:todayMarker\s[^\n;]+)/i,/^(?:weekday\s+monday\b)/i,/^(?:weekday\s+tuesday\b)/i,/^(?:weekday\s+wednesday\b)/i,/^(?:weekday\s+thursday\b)/i,/^(?:weekday\s+friday\b)/i,/^(?:weekday\s+saturday\b)/i,/^(?:weekday\s+sunday\b)/i,/^(?:weekend\s+friday\b)/i,/^(?:weekend\s+saturday\b)/i,/^(?:\d\d\d\d-\d\d-\d\d\b)/i,/^(?:title\s[^\n]+)/i,/^(?:accDescription\s[^#\n;]+)/i,/^(?:section\s[^\n]+)/i,/^(?:[^:\n]+)/i,/^(?::[^#\n;]+)/i,/^(?::)/i,/^(?:$)/i,/^(?:.)/i],conditions:{acc_descr_multiline:{rules:[6,7],inclusive:!1},acc_descr:{rules:[4],inclusive:!1},acc_title:{rules:[2],inclusive:!1},callbackargs:{rules:[21,22],inclusive:!1},callbackname:{rules:[18,19,20],inclusive:!1},href:{rules:[15,16],inclusive:!1},click:{rules:[24,25],inclusive:!1},INITIAL:{rules:[0,1,3,5,8,9,10,11,12,13,14,17,23,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52],inclusive:!0}}};return T})();k.lexer=p;function v(){this.yy={}}return l(v,"Parser"),v.prototype=k,k.Parser=v,new v})();Gt.parser=Gt;var ti=Gt;Q.default.extend(Ne.default);Q.default.extend(Re.default);Q.default.extend(ze.default);var Oe={friday:5,saturday:6},J="",Zt="",Qt=void 0,Kt="",yt=[],gt=[],Jt=new Map,te=[],St=[],pt="",ee="",He=["active","done","crit","milestone","vert"],ie=[],ht="",Tt=!1,se=!1,re="sunday",Ct="saturday",Xt=0,ei=l(function(){te=[],St=[],pt="",ie=[],_t=0,qt=void 0,Dt=void 0,G=[],J="",Zt="",ee="",Qt=void 0,Kt="",yt=[],gt=[],Tt=!1,se=!1,Xt=0,Jt=new Map,ht="",ue(),re="sunday",Ct="saturday"},"clear"),ii=l(function(t){ht=t},"setDiagramId"),si=l(function(t){Zt=t},"setAxisFormat"),ri=l(function(){return Zt},"getAxisFormat"),ni=l(function(t){Qt=t},"setTickInterval"),ai=l(function(){return Qt},"getTickInterval"),oi=l(function(t){Kt=t},"setTodayMarker"),ci=l(function(){return Kt},"getTodayMarker"),li=l(function(t){J=t},"setDateFormat"),ui=l(function(){Tt=!0},"enableInclusiveEndDates"),di=l(function(){return Tt},"endDatesAreInclusive"),fi=l(function(){se=!0},"enableTopAxis"),hi=l(function(){return se},"topAxisEnabled"),mi=l(function(t){ee=t},"setDisplayMode"),ki=l(function(){return ee},"getDisplayMode"),yi=l(function(){return J},"getDateFormat"),Be=l((t,e)=>{let n=e.toLowerCase().split(/[\s,]+/).filter(s=>s!=="");return[...new Set([...t,...n])]},"mergeTokens"),gi=l(function(t){yt=Be(yt,t)},"setIncludes"),pi=l(function(){return yt},"getIncludes"),vi=l(function(t){gt=Be(gt,t)},"setExcludes"),Ti=l(function(){return gt},"getExcludes"),bi=l(function(){return Jt},"getLinks"),xi=l(function(t){pt=t,te.push(t)},"addSection"),wi=l(function(){return te},"getSections"),_i=l(function(){let t=We(),e=10,n=0;for(;!t&&nw))throw new Error("Failed to find a valid date that was not excluded by `excludes` after 10,000 iterations.");t=t.add(1,"d")}return[e,y]},"fixTaskDates"),Ut=l(function(t,e,n){if(n=n.trim(),l(w=>{let S=w.trim();return S==="x"||S==="X"},"isTimestampFormat")(e)&&/^\d+$/.test(n))return new Date(Number(n));let f=/^after\s+(?[\d\w- ]+)/.exec(n);if(f!==null){let w=null;for(let N of f.groups.ids.split(" ")){let Y=ct(N);Y!==void 0&&(!w||Y.endTime>w.endTime)&&(w=Y)}if(w)return w.endTime;let S=new Date;return S.setHours(0,0,0,0),S}let y=(0,Q.default)(n,e.trim(),!0);if(y.isValid())return y.toDate();{rt.debug("Invalid date:"+n),rt.debug("With date format:"+e.trim());let w=new Date(n);if(w===void 0||isNaN(w.getTime())||w.getFullYear()<-1e4||w.getFullYear()>1e4)throw new Error("Invalid date:"+n);return w}},"getStartDate"),Xe=l(function(t){let e=/^(\d+(?:\.\d+)?)([Mdhmswy]|ms)$/.exec(t.trim());return e!==null?[Number.parseFloat(e[1]),e[2]]:[NaN,"ms"]},"parseDuration"),Ue=l(function(t,e,n,s=!1){n=n.trim();let f=/^until\s+(?[\d\w- ]+)/.exec(n);if(f!==null){let Y=null;for(let R of f.groups.ids.split(" ")){let H=ct(R);H!==void 0&&(!Y||H.startTime{window.open(n,"_self")}),Jt.set(s,n))}),Ze(t,"clickable")},"setLink"),Ze=l(function(t,e){t.split(",").forEach(function(n){let s=ct(n);s!==void 0&&s.classes.push(e)})},"setClass"),Ai=l(function(t,e,n){if(ot().securityLevel!=="loose"||e===void 0)return;let s=[];if(typeof n=="string"){s=n.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(let f=0;f{Ye.runFunc(e,...s)})},"setClickFun"),Qe=l(function(t,e){ie.push(function(){let n=ht?`${ht}-${t}`:t,s=document.querySelector(`[id="${n}"]`);s!==null&&s.addEventListener("click",function(){e()})},function(){let n=ht?`${ht}-${t}`:t,s=document.querySelector(`[id="${n}-text"]`);s!==null&&s.addEventListener("click",function(){e()})})},"pushFun"),Fi=l(function(t,e,n){t.split(",").forEach(function(s){Ai(s,e,n)}),Ze(t,"clickable")},"setClickEvent"),Oi=l(function(t){ie.forEach(function(e){e(t)})},"bindFunctions"),Wi={getConfig:l(()=>ot().gantt,"getConfig"),clear:ei,setDateFormat:li,getDateFormat:yi,enableInclusiveEndDates:ui,endDatesAreInclusive:di,enableTopAxis:fi,topAxisEnabled:hi,setAxisFormat:si,getAxisFormat:ri,setTickInterval:ni,getTickInterval:ai,setTodayMarker:oi,getTodayMarker:ci,setAccTitle:de,getAccTitle:fe,setDiagramTitle:ke,getDiagramTitle:ye,setDiagramId:ii,setDisplayMode:mi,getDisplayMode:ki,setAccDescription:he,getAccDescription:me,addSection:xi,getSections:wi,getTasks:_i,addTask:Yi,findTaskById:ct,addTaskOrg:$i,setIncludes:gi,getIncludes:pi,setExcludes:vi,getExcludes:Ti,setClickEvent:Fi,setLink:Li,getLinks:bi,bindFunctions:Oi,parseDuration:Xe,isInvalidDate:je,setWeekday:Di,getWeekday:Si,setWeekend:Ci};function ne(t,e,n){let s=!0;for(;s;)s=!1,n.forEach(function(r){let f="^\\s*"+r+"\\s*$",y=new RegExp(f);t[0].match(y)&&(e[r]=!0,t.shift(1),s=!0)})}l(ne,"getTaskTags");mt.default.extend(Ke.default);var Vi=l(function(){rt.debug("Something is calling, setConf, remove the call")},"setConf"),Ve={monday:_e,tuesday:De,wednesday:Se,thursday:Ce,friday:Me,saturday:Ee,sunday:we},Pi=l((t,e)=>{let n=[...t].map(()=>-1/0),s=[...t].sort((f,y)=>f.startTime-y.startTime||f.order-y.order),r=0;for(let f of s)for(let y=0;y=n[y]){n[y]=f.endTime,f.order=y+e,y>r&&(r=y);break}return r},"getMaxIntersections"),st,jt=1e4,Ni=l(function(t,e,n,s){let r=ot().gantt;s.db.setDiagramId(e);let f=ot().securityLevel,y;f==="sandbox"&&(y=vt("#i"+e));let w=f==="sandbox"?vt(y.nodes()[0].contentDocument.body):vt("body"),S=f==="sandbox"?y.nodes()[0].contentDocument:document,N=S.getElementById(e);st=N.parentElement.offsetWidth,st===void 0&&(st=1200),r.useWidth!==void 0&&(st=r.useWidth);let Y=s.db.getTasks(),z=Y.filter(k=>!k.vert),R=[];for(let k of z)R.push(k.type);R=F(R);let H={},x=2*r.topPadding;if(s.db.getDisplayMode()==="compact"||r.displayMode==="compact"){let k={};for(let v of z)k[v.section]===void 0?k[v.section]=[v]:k[v.section].push(v);let p=0;for(let v of Object.keys(k)){let T=Pi(k[v],p)+1;p+=T,x+=T*(r.barHeight+r.barGap),H[v]=T}}else{x+=z.length*(r.barHeight+r.barGap);for(let k of R)H[k]=z.filter(p=>p.type===k).length}N.setAttribute("viewBox","0 0 "+st+" "+x);let _=w.select(`[id="${e}"]`),b=Ie().domain([pe(Y,function(k){return k.startTime}),ge(Y,function(k){return k.endTime})]).rangeRound([0,st-r.leftPadding-r.rightPadding]);function A(k,p){let v=k.startTime,T=p.startTime,a=0;return v>T?a=1:vo.vert===D.vert?0:o.vert?1:-1);let u=k.filter(o=>!o.vert),i=[...new Set(u.map(o=>o.order))].map(o=>u.find(D=>D.order===o));_.append("g").selectAll("rect").data(i).enter().append("rect").attr("x",0).attr("y",function(o,D){return D=o.order,D*p+v-2}).attr("width",function(){return d-r.rightPadding/2}).attr("height",p).attr("class",function(o){for(let[D,E]of R.entries())if(o.type===E)return"section section"+D%r.numberSectionStyles;return"section section0"}).enter();let M=_.append("g").selectAll("rect").data(k).enter(),c=s.db.getLinks();if(M.append("rect").attr("id",function(o){return e+"-"+o.id}).attr("rx",3).attr("ry",3).attr("x",function(o){return o.milestone?b(o.startTime)+T+.5*(b(o.endTime)-b(o.startTime))-.5*a:b(o.startTime)+T}).attr("y",function(o,D){return D=o.order,o.vert?r.gridLineStartPadding:D*p+v}).attr("width",function(o){return o.milestone?a:o.vert?.08*a:b(o.renderEndTime||o.endTime)-b(o.startTime)}).attr("height",function(o){return o.vert?u.length*(r.barHeight+r.barGap)+r.barHeight*2:a}).attr("transform-origin",function(o,D){return D=o.order,(b(o.startTime)+T+.5*(b(o.endTime)-b(o.startTime))).toString()+"px "+(D*p+v+.5*a).toString()+"px"}).attr("class",function(o){let D="task",E="";o.classes.length>0&&(E=o.classes.join(" "));let V=0;for(let[L,O]of R.entries())o.type===O&&(V=L%r.numberSectionStyles);let P="";return o.active?o.crit?P+=" activeCrit":P=" active":o.done?o.crit?P=" doneCrit":P=" done":o.crit&&(P+=" crit"),P.length===0&&(P=" task"),o.milestone&&(P=" milestone "+P),o.vert&&(P=" vert "+P),P+=V,P+=" "+E,D+P}),M.append("text").attr("id",function(o){return e+"-"+o.id+"-text"}).text(function(o){return o.task}).attr("font-size",r.fontSize).attr("x",function(o){let D=b(o.startTime),E=b(o.renderEndTime||o.endTime);if(o.milestone&&(D+=.5*(b(o.endTime)-b(o.startTime))-.5*a,E=D+a),o.vert)return b(o.startTime)+T;let V=this.getBBox().width;return V>E-D?E+V+1.5*r.leftPadding>d?D+T-5:E+T+5:(E-D)/2+D+T}).attr("y",function(o,D){return o.vert?r.gridLineStartPadding+u.length*(r.barHeight+r.barGap)+60:(D=o.order,D*p+r.barHeight/2+(r.fontSize/2-2)+v)}).attr("text-height",a).attr("class",function(o){let D=b(o.startTime),E=b(o.endTime);o.milestone&&(E=D+a);let V=this.getBBox().width,P="";o.classes.length>0&&(P=o.classes.join(" "));let L=0;for(let[tt,et]of R.entries())o.type===et&&(L=tt%r.numberSectionStyles);let O="";return o.active&&(o.crit?O="activeCritText"+L:O="activeText"+L),o.done?o.crit?O=O+" doneCritText"+L:O=O+" doneText"+L:o.crit&&(O=O+" critText"+L),o.milestone&&(O+=" milestoneText"),o.vert&&(O+=" vertText"),V>E-D?E+V+1.5*r.leftPadding>d?P+" taskTextOutsideLeft taskTextOutside"+L+" "+O:P+" taskTextOutsideRight taskTextOutside"+L+" "+O+" width-"+V:P+" taskText taskText"+L+" "+O+" width-"+V}),ot().securityLevel==="sandbox"){let o;o=vt("#i"+e);let D=o.nodes()[0].contentDocument;M.filter(function(E){return c.has(E.id)}).each(function(E){var V=D.querySelector("#"+CSS.escape(e+"-"+E.id)),P=D.querySelector("#"+CSS.escape(e+"-"+E.id+"-text"));let L=V.parentNode;var O=D.createElement("a");O.setAttribute("xlink:href",c.get(E.id)),O.setAttribute("target","_top"),L.appendChild(O),O.appendChild(V),O.appendChild(P)})}}l(U,"drawRects");function $(k,p,v,T,a,h,d,u){if(d.length===0&&u.length===0)return;let C,i;for(let{startTime:E,endTime:V}of h)(C===void 0||Ei)&&(i=V);if(!C||!i)return;if((0,mt.default)(i).diff((0,mt.default)(C),"year")>5){rt.warn("The difference between the min and max time is more than 5 years. This will cause performance issues. Skipping drawing exclude days.");return}let M=s.db.getDateFormat(),c=[],B=null,o=(0,mt.default)(C);for(;o.valueOf()<=i;)s.db.isInvalidDate(o,M,d,u)?B?B.end=o:B={start:o,end:o}:B&&(c.push(B),B=null),o=o.add(1,"d");_.append("g").selectAll("rect").data(c).enter().append("rect").attr("id",E=>e+"-exclude-"+E.start.format("YYYY-MM-DD")).attr("x",E=>b(E.start.startOf("day"))+v).attr("y",r.gridLineStartPadding).attr("width",E=>b(E.end.endOf("day"))-b(E.start.startOf("day"))).attr("height",a-p-r.gridLineStartPadding).attr("transform-origin",function(E,V){return(b(E.start)+v+.5*(b(E.end)-b(E.start))).toString()+"px "+(V*k+.5*a).toString()+"px"}).attr("class","exclude-range")}l($,"drawExcludeDays");function g(k,p,v,T){if(v<=0||k>p)return 1/0;let a=p-k,h=mt.default.duration({[T??"day"]:v}).asMilliseconds();return h<=0?1/0:Math.ceil(a/h)}l(g,"getEstimatedTickCount");function m(k,p,v,T){let a=s.db.getDateFormat(),h=s.db.getAxisFormat(),d;h?d=h:a==="D"?d="%d":d=r.axisFormat??"%Y-%m-%d";let u=Te(b).tickSize(-T+p+r.gridLineStartPadding).tickFormat(Ot(d)),i=/^([1-9]\d*)(millisecond|second|minute|hour|day|week|month)$/.exec(s.db.getTickInterval()||r.tickInterval);if(i!==null){let M=parseInt(i[1],10);if(isNaN(M)||M<=0)rt.warn(`Invalid tick interval value: "${i[1]}". Skipping custom tick interval.`);else{let c=i[2],B=s.db.getWeekday()||r.weekday,o=b.domain(),D=o[0],E=o[1],V=g(D,E,M,c);if(V>jt)rt.warn(`The tick interval "${M}${c}" would generate ${V} ticks, which exceeds the maximum allowed (${jt}). This may indicate an invalid date or time range. Skipping custom tick interval.`);else switch(c){case"millisecond":u.ticks(It.every(M));break;case"second":u.ticks(Yt.every(M));break;case"minute":u.ticks($t.every(M));break;case"hour":u.ticks(Lt.every(M));break;case"day":u.ticks(At.every(M));break;case"week":u.ticks(Ve[B].every(M));break;case"month":u.ticks(Ft.every(M));break}}}if(_.append("g").attr("class","grid").attr("transform","translate("+k+", "+(T-50)+")").call(u).selectAll("text").style("text-anchor","middle").attr("fill","#000").attr("stroke","none").attr("font-size",10).attr("dy","1em"),s.db.topAxisEnabled()||r.topAxis){let M=ve(b).tickSize(-T+p+r.gridLineStartPadding).tickFormat(Ot(d));if(i!==null){let c=parseInt(i[1],10);if(isNaN(c)||c<=0)rt.warn(`Invalid tick interval value: "${i[1]}". Skipping custom tick interval.`);else{let B=i[2],o=s.db.getWeekday()||r.weekday,D=b.domain(),E=D[0],V=D[1];if(g(E,V,c,B)<=jt)switch(B){case"millisecond":M.ticks(It.every(c));break;case"second":M.ticks(Yt.every(c));break;case"minute":M.ticks($t.every(c));break;case"hour":M.ticks(Lt.every(c));break;case"day":M.ticks(At.every(c));break;case"week":M.ticks(Ve[o].every(c));break;case"month":M.ticks(Ft.every(c));break}}}_.append("g").attr("class","grid").attr("transform","translate("+k+", "+p+")").call(M).selectAll("text").style("text-anchor","middle").attr("fill","#000").attr("stroke","none").attr("font-size",10)}}l(m,"makeGrid");function I(k,p){let v=0,T=Object.keys(H).map(a=>[a,H[a]]);_.append("g").selectAll("text").data(T).enter().append(function(a){let h=a[0].split(ce.lineBreakRegex),d=-(h.length-1)/2,u=S.createElementNS("http://www.w3.org/2000/svg","text");u.setAttribute("dy",d+"em");for(let[C,i]of h.entries()){let M=S.createElementNS("http://www.w3.org/2000/svg","tspan");M.setAttribute("alignment-baseline","central"),M.setAttribute("x","10"),C>0&&M.setAttribute("dy","1em"),M.textContent=i,u.appendChild(M)}return u}).attr("x",10).attr("y",function(a,h){if(h>0)for(let d=0;d` + .mermaid-main-font { + font-family: ${t.fontFamily}; + } + + .exclude-range { + fill: ${t.excludeBkgColor}; + } + + .section { + stroke: none; + opacity: 0.2; + } + + .section0 { + fill: ${t.sectionBkgColor}; + } + + .section2 { + fill: ${t.sectionBkgColor2}; + } + + .section1, + .section3 { + fill: ${t.altSectionBkgColor}; + opacity: 0.2; + } + + .sectionTitle0 { + fill: ${t.titleColor}; + } + + .sectionTitle1 { + fill: ${t.titleColor}; + } + + .sectionTitle2 { + fill: ${t.titleColor}; + } + + .sectionTitle3 { + fill: ${t.titleColor}; + } + + .sectionTitle { + text-anchor: start; + font-family: ${t.fontFamily}; + } + + + /* Grid and axis */ + + .grid .tick { + stroke: ${t.gridColor}; + opacity: 0.8; + shape-rendering: crispEdges; + } + + .grid .tick text { + font-family: ${t.fontFamily}; + fill: ${t.textColor}; + } + + .grid path { + stroke-width: 0; + } + + + /* Today line */ + + .today { + fill: none; + stroke: ${t.todayLineColor}; + stroke-width: 2px; + } + + + /* Task styling */ + + /* Default task */ + + .task { + stroke-width: 2; + } + + .taskText { + text-anchor: middle; + font-family: ${t.fontFamily}; + } + + .taskTextOutsideRight { + fill: ${t.taskTextDarkColor}; + text-anchor: start; + font-family: ${t.fontFamily}; + } + + .taskTextOutsideLeft { + fill: ${t.taskTextDarkColor}; + text-anchor: end; + } + + + /* Special case clickable */ + + .task.clickable { + cursor: pointer; + } + + .taskText.clickable { + cursor: pointer; + fill: ${t.taskTextClickableColor} !important; + font-weight: bold; + } + + .taskTextOutsideLeft.clickable { + cursor: pointer; + fill: ${t.taskTextClickableColor} !important; + font-weight: bold; + } + + .taskTextOutsideRight.clickable { + cursor: pointer; + fill: ${t.taskTextClickableColor} !important; + font-weight: bold; + } + + + /* Specific task settings for the sections*/ + + .taskText0, + .taskText1, + .taskText2, + .taskText3 { + fill: ${t.taskTextColor}; + } + + .task0, + .task1, + .task2, + .task3 { + fill: ${t.taskBkgColor}; + stroke: ${t.taskBorderColor}; + } + + .taskTextOutside0, + .taskTextOutside2 + { + fill: ${t.taskTextOutsideColor}; + } + + .taskTextOutside1, + .taskTextOutside3 { + fill: ${t.taskTextOutsideColor}; + } + + + /* Active task */ + + .active0, + .active1, + .active2, + .active3 { + fill: ${t.activeTaskBkgColor}; + stroke: ${t.activeTaskBorderColor}; + } + + .activeText0, + .activeText1, + .activeText2, + .activeText3 { + fill: ${t.taskTextDarkColor} !important; + } + + + /* Completed task */ + + .done0, + .done1, + .done2, + .done3 { + stroke: ${t.doneTaskBorderColor}; + fill: ${t.doneTaskBkgColor}; + stroke-width: 2; + } + + .doneText0, + .doneText1, + .doneText2, + .doneText3 { + fill: ${t.taskTextDarkColor} !important; + } + + /* Done task text displayed outside the bar sits against the diagram background, + not against the done-task bar, so it must use the outside/contrast color. */ + .doneText0.taskTextOutsideLeft, + .doneText0.taskTextOutsideRight, + .doneText1.taskTextOutsideLeft, + .doneText1.taskTextOutsideRight, + .doneText2.taskTextOutsideLeft, + .doneText2.taskTextOutsideRight, + .doneText3.taskTextOutsideLeft, + .doneText3.taskTextOutsideRight { + fill: ${t.taskTextOutsideColor} !important; + } + + + /* Tasks on the critical line */ + + .crit0, + .crit1, + .crit2, + .crit3 { + stroke: ${t.critBorderColor}; + fill: ${t.critBkgColor}; + stroke-width: 2; + } + + .activeCrit0, + .activeCrit1, + .activeCrit2, + .activeCrit3 { + stroke: ${t.critBorderColor}; + fill: ${t.activeTaskBkgColor}; + stroke-width: 2; + } + + .doneCrit0, + .doneCrit1, + .doneCrit2, + .doneCrit3 { + stroke: ${t.critBorderColor}; + fill: ${t.doneTaskBkgColor}; + stroke-width: 2; + cursor: pointer; + shape-rendering: crispEdges; + } + + .milestone { + transform: rotate(45deg) scale(0.8,0.8); + } + + .milestoneText { + font-style: italic; + } + .doneCritText0, + .doneCritText1, + .doneCritText2, + .doneCritText3 { + fill: ${t.taskTextDarkColor} !important; + } + + /* Done-crit task text outside the bar \u2014 same reasoning as doneText above. */ + .doneCritText0.taskTextOutsideLeft, + .doneCritText0.taskTextOutsideRight, + .doneCritText1.taskTextOutsideLeft, + .doneCritText1.taskTextOutsideRight, + .doneCritText2.taskTextOutsideLeft, + .doneCritText2.taskTextOutsideRight, + .doneCritText3.taskTextOutsideLeft, + .doneCritText3.taskTextOutsideRight { + fill: ${t.taskTextOutsideColor} !important; + } + + .vert { + stroke: ${t.vertLineColor}; + } + + .vertText { + font-size: 15px; + text-anchor: middle; + fill: ${t.vertLineColor} !important; + } + + .activeCritText0, + .activeCritText1, + .activeCritText2, + .activeCritText3 { + fill: ${t.taskTextDarkColor} !important; + } + + .titleText { + text-anchor: middle; + font-size: 18px; + fill: ${t.titleColor||t.textColor}; + font-family: ${t.fontFamily}; + } +`,"getStyles"),Hi=zi,Zi={parser:ti,db:Wi,renderer:Ri,styles:Hi};export{Zi as diagram}; diff --git a/src/frontend/web/von_interface/static/vendor/conversation-visuals/gitGraph-4MIJSDKK-CADN73NX.js b/src/frontend/web/von_interface/static/vendor/conversation-visuals/gitGraph-4MIJSDKK-CADN73NX.js new file mode 100644 index 000000000..62038ec90 --- /dev/null +++ b/src/frontend/web/von_interface/static/vendor/conversation-visuals/gitGraph-4MIJSDKK-CADN73NX.js @@ -0,0 +1 @@ +import{a as r,b as e}from"./chunk-C7GWRE6Z.js";import"./chunk-RVPSGR2P.js";import"./chunk-3RNHDNP5.js";export{r as GitGraphModule,e as createGitGraphServices}; diff --git a/src/frontend/web/von_interface/static/vendor/conversation-visuals/gitGraphDiagram-X574FWY7-YAJB45Z6.js b/src/frontend/web/von_interface/static/vendor/conversation-visuals/gitGraphDiagram-X574FWY7-YAJB45Z6.js new file mode 100644 index 000000000..c476fe4f1 --- /dev/null +++ b/src/frontend/web/von_interface/static/vendor/conversation-visuals/gitGraphDiagram-X574FWY7-YAJB45Z6.js @@ -0,0 +1,106 @@ +import{a as fe}from"./chunk-HDKR6WI7.js";import{a as $e}from"./chunk-CDENLQJG.js";import{a as pe}from"./chunk-WBZZWDU5.js";import"./chunk-ZFFKTRVX.js";import"./chunk-DKYAF235.js";import"./chunk-X7BLBFFS.js";import"./chunk-YMFA7VWU.js";import"./chunk-C7GWRE6Z.js";import"./chunk-4DL6P2YZ.js";import"./chunk-KCWUFFIE.js";import"./chunk-RDO2S4TE.js";import"./chunk-XCFPDLUP.js";import"./chunk-RMEGOE55.js";import"./chunk-QNBXOM7U.js";import"./chunk-NMQHKCXS.js";import"./chunk-SEHHQ34Z.js";import"./chunk-K6AAXKM5.js";import"./chunk-KVFXNR4L.js";import"./chunk-RVPSGR2P.js";import{h as le,o as me,p as ge}from"./chunk-EUYVSIXP.js";import"./chunk-QSTT4QQC.js";import{$ as q,C as F,O as E,U as re,V as ae,W as oe,X as se,Y as ne,Z as ce,_ as ie,da as de,r as te}from"./chunk-S4JILX6U.js";import{b as w,h as he}from"./chunk-XEQL7KGA.js";import{a as l}from"./chunk-YUSHYV7C.js";import"./chunk-3RNHDNP5.js";var x={NORMAL:0,REVERSE:1,HIGHLIGHT:2,MERGE:3,CHERRY_PICK:4},Ee=te.gitGraph,D=l(()=>me({...Ee,...F().gitGraph}),"getConfig"),d=new fe(()=>{let e=D(),t=e.mainBranchName,r=e.mainBranchOrder;return{mainBranchName:t,commits:new Map,head:null,branchConfig:new Map([[t,{name:t,order:r}]]),branches:new Map([[t,null]]),currBranch:t,direction:"LR",seq:0,options:{}}});function j(){return le({length:7})}l(j,"getID");function xe(e,t){let r=Object.create(null);return e.reduce((s,n)=>{let i=t(n);return r[i]||(r[i]=!0,s.push(n)),s},[])}l(xe,"uniqBy");var Te=l(function(e){d.records.direction=e},"setDirection"),Le=l(function(e){w.debug("options str",e),e=e?.trim(),e=e||"{}";try{d.records.options=JSON.parse(e)}catch(t){w.error("error while parsing gitGraph options",t.message)}},"setOptions"),Me=l(function(){return d.records.options},"getOptions"),Pe=l(function(e){let t=e.msg,r=e.id,s=e.type,n=e.tags;w.info("commit",t,r,s,n),w.debug("Entering commit:",t,r,s,n);let i=D();r=E.sanitizeText(r,i),t=E.sanitizeText(t,i),n=n?.map(a=>E.sanitizeText(a,i));let o={id:r||d.records.seq+"-"+j(),message:t,seq:d.records.seq++,type:s??x.NORMAL,tags:n??[],parents:d.records.head==null?[]:[d.records.head.id],branch:d.records.currBranch};d.records.head=o,w.info("main branch",i.mainBranchName),d.records.commits.has(o.id)&&w.warn(`Commit ID ${o.id} already exists`),d.records.commits.set(o.id,o),d.records.branches.set(d.records.currBranch,o.id),w.debug("in pushCommit "+o.id)},"commit"),Re=l(function(e){let t=e.name,r=e.order;if(t=E.sanitizeText(t,D()),d.records.branches.has(t))throw new Error(`Trying to create an existing branch. (Help: Either use a new name if you want create a new branch or try using "checkout ${t}")`);d.records.branches.set(t,d.records.head!=null?d.records.head.id:null),d.records.branchConfig.set(t,{name:t,order:r}),ue(t),w.debug("in createBranch")},"branch"),Oe=l(e=>{let t=e.branch,r=e.id,s=e.type,n=e.tags,i=D();t=E.sanitizeText(t,i),r&&(r=E.sanitizeText(r,i));let o=d.records.branches.get(d.records.currBranch),a=d.records.branches.get(t),h=o?d.records.commits.get(o):void 0,g=a?d.records.commits.get(a):void 0;if(h&&g&&h.branch===t)throw new Error(`Cannot merge branch '${t}' into itself.`);if(d.records.currBranch===t){let c=new Error('Incorrect usage of "merge". Cannot merge a branch to itself');throw c.hash={text:`merge ${t}`,token:`merge ${t}`,expected:["branch abc"]},c}if(h===void 0||!h){let c=new Error(`Incorrect usage of "merge". Current branch (${d.records.currBranch})has no commits`);throw c.hash={text:`merge ${t}`,token:`merge ${t}`,expected:["commit"]},c}if(!d.records.branches.has(t)){let c=new Error('Incorrect usage of "merge". Branch to be merged ('+t+") does not exist");throw c.hash={text:`merge ${t}`,token:`merge ${t}`,expected:[`branch ${t}`]},c}if(g===void 0||!g){let c=new Error('Incorrect usage of "merge". Branch to be merged ('+t+") has no commits");throw c.hash={text:`merge ${t}`,token:`merge ${t}`,expected:['"commit"']},c}if(h===g){let c=new Error('Incorrect usage of "merge". Both branches have same head');throw c.hash={text:`merge ${t}`,token:`merge ${t}`,expected:["branch abc"]},c}if(r&&d.records.commits.has(r)){let c=new Error('Incorrect usage of "merge". Commit with id:'+r+" already exists, use different custom id");throw c.hash={text:`merge ${t} ${r} ${s} ${n?.join(" ")}`,token:`merge ${t} ${r} ${s} ${n?.join(" ")}`,expected:[`merge ${t} ${r}_UNIQUE ${s} ${n?.join(" ")}`]},c}let f=a||"",m={id:r||`${d.records.seq}-${j()}`,message:`merged branch ${t} into ${d.records.currBranch}`,seq:d.records.seq++,parents:d.records.head==null?[]:[d.records.head.id,f],branch:d.records.currBranch,type:x.MERGE,customType:s,customId:!!r,tags:n??[]};d.records.head=m,d.records.commits.set(m.id,m),d.records.branches.set(d.records.currBranch,m.id),w.debug(d.records.branches),w.debug("in mergeBranch")},"merge"),Ie=l(function(e){let t=e.id,r=e.targetId,s=e.tags,n=e.parent;w.debug("Entering cherryPick:",t,r,s);let i=D();if(t=E.sanitizeText(t,i),r=E.sanitizeText(r,i),s=s?.map(h=>E.sanitizeText(h,i)),n=E.sanitizeText(n,i),!t||!d.records.commits.has(t)){let h=new Error('Incorrect usage of "cherryPick". Source commit id should exist and provided');throw h.hash={text:`cherryPick ${t} ${r}`,token:`cherryPick ${t} ${r}`,expected:["cherry-pick abc"]},h}let o=d.records.commits.get(t);if(o===void 0||!o)throw new Error('Incorrect usage of "cherryPick". Source commit id should exist and provided');if(n&&!(Array.isArray(o.parents)&&o.parents.includes(n)))throw new Error("Invalid operation: The specified parent commit is not an immediate parent of the cherry-picked commit.");let a=o.branch;if(o.type===x.MERGE&&!n)throw new Error("Incorrect usage of cherry-pick: If the source commit is a merge commit, an immediate parent commit must be specified.");if(!r||!d.records.commits.has(r)){if(a===d.records.currBranch){let m=new Error('Incorrect usage of "cherryPick". Source commit is already on current branch');throw m.hash={text:`cherryPick ${t} ${r}`,token:`cherryPick ${t} ${r}`,expected:["cherry-pick abc"]},m}let h=d.records.branches.get(d.records.currBranch);if(h===void 0||!h){let m=new Error(`Incorrect usage of "cherry-pick". Current branch (${d.records.currBranch})has no commits`);throw m.hash={text:`cherryPick ${t} ${r}`,token:`cherryPick ${t} ${r}`,expected:["cherry-pick abc"]},m}let g=d.records.commits.get(h);if(g===void 0||!g){let m=new Error(`Incorrect usage of "cherry-pick". Current branch (${d.records.currBranch})has no commits`);throw m.hash={text:`cherryPick ${t} ${r}`,token:`cherryPick ${t} ${r}`,expected:["cherry-pick abc"]},m}let f={id:d.records.seq+"-"+j(),message:`cherry-picked ${o?.message} into ${d.records.currBranch}`,seq:d.records.seq++,parents:d.records.head==null?[]:[d.records.head.id,o.id],branch:d.records.currBranch,type:x.CHERRY_PICK,tags:s?s.filter(Boolean):[`cherry-pick:${o.id}${o.type===x.MERGE?`|parent:${n}`:""}`]};d.records.head=f,d.records.commits.set(f.id,f),d.records.branches.set(d.records.currBranch,f.id),w.debug(d.records.branches),w.debug("in cherryPick")}},"cherryPick"),ue=l(function(e){if(e=E.sanitizeText(e,D()),d.records.branches.has(e)){d.records.currBranch=e;let t=d.records.branches.get(d.records.currBranch);t===void 0||!t?d.records.head=null:d.records.head=d.records.commits.get(t)??null}else{let t=new Error(`Trying to checkout branch which is not yet created. (Help try using "branch ${e}")`);throw t.hash={text:`checkout ${e}`,token:`checkout ${e}`,expected:[`branch ${e}`]},t}},"checkout");function Z(e,t,r){let s=e.indexOf(t);s===-1?e.push(r):e.splice(s,1,r)}l(Z,"upsert");function J(e){let t=e.reduce((n,i)=>n.seq>i.seq?n:i,e[0]),r="";e.forEach(function(n){n===t?r+=" *":r+=" |"});let s=[r,t.id,t.seq];for(let n in d.records.branches)d.records.branches.get(n)===t.id&&s.push(n);if(w.debug(s.join(" ")),t.parents&&t.parents.length==2&&t.parents[0]&&t.parents[1]){let n=d.records.commits.get(t.parents[0]);Z(e,t,n),t.parents[1]&&e.push(d.records.commits.get(t.parents[1]))}else{if(t.parents.length==0)return;if(t.parents[0]){let n=d.records.commits.get(t.parents[0]);Z(e,t,n)}}e=xe(e,n=>n.id),J(e)}l(J,"prettyPrintCommitHistory");var _e=l(function(){w.debug(d.records.commits);let e=be()[0];J([e])},"prettyPrint"),Ge=l(function(){d.reset(),re()},"clear"),De=l(function(){return[...d.records.branchConfig.values()].map((t,r)=>t.order!==null&&t.order!==void 0?t:{...t,order:parseFloat(`0.${r}`)}).sort((t,r)=>(t.order??0)-(r.order??0)).map(({name:t})=>({name:t}))},"getBranchesAsObjArray"),We=l(function(){return d.records.branches},"getBranches"),qe=l(function(){return d.records.commits},"getCommits"),be=l(function(){let e=[...d.records.commits.values()];return e.forEach(function(t){w.debug(t.id)}),e.sort((t,r)=>t.seq-r.seq),e},"getCommitsArray"),Ae=l(function(){return d.records.currBranch},"getCurrentBranch"),He=l(function(){return d.records.direction},"getDirection"),Se=l(function(){return d.records.head},"getHead"),we={commitType:x,getConfig:D,setDirection:Te,setOptions:Le,getOptions:Me,commit:Pe,branch:Re,merge:Oe,cherryPick:Ie,checkout:ue,prettyPrint:_e,clear:Ge,getBranchesAsObjArray:De,getBranches:We,getCommits:qe,getCommitsArray:be,getCurrentBranch:Ae,getDirection:He,getHead:Se,setAccTitle:ae,getAccTitle:oe,getAccDescription:ne,setAccDescription:se,setDiagramTitle:ce,getDiagramTitle:ie},Ne=l((e,t)=>{$e(e,t),e.dir&&t.setDirection(e.dir);for(let r of e.statements)Fe(r,t)},"populate"),Fe=l((e,t)=>{let s={Commit:l(n=>t.commit(ze(n)),"Commit"),Branch:l(n=>t.branch(Ye(n)),"Branch"),Merge:l(n=>t.merge(je(n)),"Merge"),Checkout:l(n=>t.checkout(Ke(n)),"Checkout"),CherryPicking:l(n=>t.cherryPick(Ue(n)),"CherryPicking")}[e.$type];s?s(e):w.error(`Unknown statement type: ${e.$type}`)},"parseStatement"),ze=l(e=>({id:e.id,msg:e.message??"",type:e.type!==void 0?x[e.type]:x.NORMAL,tags:e.tags??void 0}),"parseCommit"),Ye=l(e=>({name:e.name,order:e.order??0}),"parseBranch"),je=l(e=>({branch:e.branch,id:e.id??"",type:e.type!==void 0?x[e.type]:void 0,tags:e.tags??void 0}),"parseMerge"),Ke=l(e=>e.branch,"parseCheckout"),Ue=l(e=>({id:e.id,targetId:"",tags:e.tags?.length===0?void 0:e.tags,parent:e.parent}),"parseCherryPicking"),Ve={parse:l(async e=>{let t=await pe("gitGraph",e);w.debug(t),Ne(t,we)},"parse")},O=10,I=40,L=4,P=2,_=8,K=new Set(["redux","redux-dark","redux-color","redux-dark-color"]),X=12,Q=new Set(["redux-color","redux-dark-color"]),Ze=new Set(["dark","redux-dark","redux-dark-color","neo-dark"]),G=l((e,t,r=!1)=>r&&e>0?(e-1)%(t-1)+1:e%t,"calcColorIndex"),C=new Map,v=new Map,z=30,H=new Map,Y=[],R=0,p="LR",Xe=l(()=>{C.clear(),v.clear(),H.clear(),R=0,Y=[],p="LR"},"clear"),Be=l(e=>{let t=document.createElementNS("http://www.w3.org/2000/svg","text");return(typeof e=="string"?e.split(/\\n|\n|/gi):e).forEach(s=>{let n=document.createElementNS("http://www.w3.org/2000/svg","tspan");n.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),n.setAttribute("dy","1em"),n.setAttribute("x","0"),n.setAttribute("class","row"),n.textContent=s.trim(),t.appendChild(n)}),t},"drawText"),ke=l(e=>{let t,r,s;return p==="BT"?(r=l((n,i)=>n<=i,"comparisonFunc"),s=1/0):(r=l((n,i)=>n>=i,"comparisonFunc"),s=0),e.forEach(n=>{let i=p==="TB"||p=="BT"?v.get(n)?.y:v.get(n)?.x;i!==void 0&&r(i,s)&&(t=n,s=i)}),t},"findClosestParent"),Je=l(e=>{let t="",r=1/0;return e.forEach(s=>{let n=v.get(s).y;n<=r&&(t=s,r=n)}),t||void 0},"findClosestParentBT"),Qe=l((e,t,r)=>{let s=r,n=r,i=[];e.forEach(o=>{let a=t.get(o);if(!a)throw new Error(`Commit not found for key ${o}`);a.parents.length?(s=tt(a),n=Math.max(s,n)):i.push(a),rt(a,s)}),s=n,i.forEach(o=>{at(o,s,r)}),e.forEach(o=>{let a=t.get(o);if(a?.parents.length){let h=Je(a.parents);s=v.get(h).y-I,s<=n&&(n=s);let g=C.get(a.branch).pos,f=s-O;v.set(a.id,{x:g,y:f})}})},"setParallelBTPos"),et=l(e=>{let t=ke(e.parents.filter(s=>s!==null));if(!t)throw new Error(`Closest parent not found for commit ${e.id}`);let r=v.get(t)?.y;if(r===void 0)throw new Error(`Closest parent position not found for commit ${e.id}`);return r},"findClosestParentPos"),tt=l(e=>et(e)+I,"calculateCommitPosition"),rt=l((e,t)=>{let r=C.get(e.branch);if(!r)throw new Error(`Branch not found for commit ${e.id}`);let s=r.pos,n=t+O;return v.set(e.id,{x:s,y:n}),{x:s,y:n}},"setCommitPosition"),at=l((e,t,r)=>{let s=C.get(e.branch);if(!s)throw new Error(`Branch not found for commit ${e.id}`);let n=t+r,i=s.pos;v.set(e.id,{x:i,y:n})},"setRootPosition"),ot=l((e,t,r,s,n,i)=>{let{theme:o}=q(),a=K.has(o??""),h=Q.has(o??""),g=Ze.has(o??"");if(i===x.HIGHLIGHT)e.append("rect").attr("x",r.x-10+(a?3:0)).attr("y",r.y-10+(a?3:0)).attr("width",a?14:20).attr("height",a?14:20).attr("class",`commit ${t.id} commit-highlight${G(n,_,h)} ${s}-outer`),e.append("rect").attr("x",r.x-6+(a?2:0)).attr("y",r.y-6+(a?2:0)).attr("width",a?8:12).attr("height",a?8:12).attr("class",`commit ${t.id} commit${G(n,_,h)} ${s}-inner`);else if(i===x.CHERRY_PICK)e.append("circle").attr("cx",r.x).attr("cy",r.y).attr("r",a?7:10).attr("class",`commit ${t.id} ${s}`),e.append("circle").attr("cx",r.x-3).attr("cy",r.y+2).attr("r",a?2.5:2.75).attr("fill",g?"#000000":"#fff").attr("class",`commit ${t.id} ${s}`),e.append("circle").attr("cx",r.x+3).attr("cy",r.y+2).attr("r",a?2.5:2.75).attr("fill",g?"#000000":"#fff").attr("class",`commit ${t.id} ${s}`),e.append("line").attr("x1",r.x+3).attr("y1",r.y+1).attr("x2",r.x).attr("y2",r.y-5).attr("stroke",g?"#000000":"#fff").attr("class",`commit ${t.id} ${s}`),e.append("line").attr("x1",r.x-3).attr("y1",r.y+1).attr("x2",r.x).attr("y2",r.y-5).attr("stroke",g?"#000000":"#fff").attr("class",`commit ${t.id} ${s}`);else{let f=e.append("circle");if(f.attr("cx",r.x),f.attr("cy",r.y),f.attr("r",a?7:10),f.attr("class",`commit ${t.id} commit${G(n,_,h)}`),i===x.MERGE){let m=e.append("circle");m.attr("cx",r.x),m.attr("cy",r.y),m.attr("r",a?5:6),m.attr("class",`commit ${s} ${t.id} commit${G(n,_,h)}`)}if(i===x.REVERSE){let m=e.append("path"),c=a?4:5;m.attr("d",`M ${r.x-c},${r.y-c}L${r.x+c},${r.y+c}M${r.x-c},${r.y+c}L${r.x+c},${r.y-c}`).attr("class",`commit ${s} ${t.id} commit${G(n,_,h)}`)}}},"drawCommitBullet"),st=l((e,t,r,s,n)=>{if(t.type!==x.CHERRY_PICK&&(t.customId&&t.type===x.MERGE||t.type!==x.MERGE)&&n.showCommitLabel){let i=e.append("g"),o=i.insert("rect").attr("class","commit-label-bkg"),a=i.append("text").attr("x",s).attr("y",r.y+25).attr("class","commit-label").text(t.id),h=a.node()?.getBBox();if(h&&(o.attr("x",r.posWithOffset-h.width/2-P).attr("y",r.y+13.5).attr("width",h.width+2*P).attr("height",h.height+2*P),p==="TB"||p==="BT"?(o.attr("x",r.x-(h.width+4*L+5)).attr("y",r.y-12),a.attr("x",r.x-(h.width+4*L)).attr("y",r.y+h.height-12)):a.attr("x",r.posWithOffset-h.width/2),n.rotateCommitLabel))if(p==="TB"||p==="BT")a.attr("transform","rotate(-45, "+r.x+", "+r.y+")"),o.attr("transform","rotate(-45, "+r.x+", "+r.y+")");else{let g=-7.5-(h.width+10)/25*9.5,f=10+h.width/25*8.5;i.attr("transform","translate("+g+", "+f+") rotate(-45, "+s+", "+r.y+")")}}},"drawCommitLabel"),nt=l((e,t,r,s)=>{if(t.tags.length>0){let n=0,i=0,o=0,a=[];for(let h of t.tags.reverse()){let g=e.insert("polygon"),f=e.append("circle"),m=e.append("text").attr("y",r.y-16-n).attr("class","tag-label").text(h),c=m.node()?.getBBox();if(!c)throw new Error("Tag bbox not found");i=Math.max(i,c.width),o=Math.max(o,c.height),m.attr("x",r.posWithOffset-c.width/2),a.push({tag:m,hole:f,rect:g,yOffset:n}),n+=20}for(let{tag:h,hole:g,rect:f,yOffset:m}of a){let c=o/2,y=r.y-19.2-m;if(f.attr("class","tag-label-bkg").attr("points",` + ${s-i/2-L/2},${y+P} + ${s-i/2-L/2},${y-P} + ${r.posWithOffset-i/2-L},${y-c-P} + ${r.posWithOffset+i/2+L},${y-c-P} + ${r.posWithOffset+i/2+L},${y+c+P} + ${r.posWithOffset-i/2-L},${y+c+P}`),g.attr("cy",y).attr("cx",s-i/2+L/2).attr("r",1.5).attr("class","tag-hole"),p==="TB"||p==="BT"){let $=s+m;f.attr("class","tag-label-bkg").attr("points",` + ${r.x},${$+2} + ${r.x},${$-2} + ${r.x+O},${$-c-2} + ${r.x+O+i+4},${$-c-2} + ${r.x+O+i+4},${$+c+2} + ${r.x+O},${$+c+2}`).attr("transform","translate(12,12) rotate(45, "+r.x+","+s+")"),g.attr("cx",r.x+L/2).attr("cy",$).attr("transform","translate(12,12) rotate(45, "+r.x+","+s+")"),h.attr("x",r.x+5).attr("y",$+3).attr("transform","translate(14,14) rotate(45, "+r.x+","+s+")")}}}},"drawCommitTags"),ct=l(e=>{switch(e.customType??e.type){case x.NORMAL:return"commit-normal";case x.REVERSE:return"commit-reverse";case x.HIGHLIGHT:return"commit-highlight";case x.MERGE:return"commit-merge";case x.CHERRY_PICK:return"commit-cherry-pick";default:return"commit-normal"}},"getCommitClassType"),it=l((e,t,r,s)=>{let n={x:0,y:0};if(e.parents.length>0){let i=ke(e.parents);if(i){let o=s.get(i)??n;return t==="TB"?o.y+I:t==="BT"?(s.get(e.id)??n).y-I:o.x+I}}else return t==="TB"?z:t==="BT"?(s.get(e.id)??n).y-I:0;return 0},"calculatePosition"),dt=l((e,t,r)=>{let s=p==="BT"&&r?t:t+O,n=C.get(e.branch)?.pos,i=p==="TB"||p==="BT"?C.get(e.branch)?.pos:s;if(i===void 0||n===void 0)throw new Error(`Position were undefined for commit ${e.id}`);let o=K.has(q().theme??""),a=p==="TB"||p==="BT"?s:n+(o?X/2+1:-2);return{x:i,y:a,posWithOffset:s}},"getCommitPosition"),ye=l((e,t,r,s)=>{let n=e.append("g").attr("class","commit-bullets"),i=e.append("g").attr("class","commit-labels"),o=p==="TB"||p==="BT"?z:0,a=[...t.keys()],h=s.parallelCommits??!1,g=l((m,c)=>{let y=t.get(m)?.seq,$=t.get(c)?.seq;return y!==void 0&&$!==void 0?y-$:0},"sortKeys"),f=a.sort(g);p==="BT"&&(h&&Qe(f,t,o),f=f.reverse()),f.forEach(m=>{let c=t.get(m);if(!c)throw new Error(`Commit not found for key ${m}`);h&&(o=it(c,p,o,v));let y=dt(c,o,h);if(r){let $=ct(c),u=c.customType??c.type,b=C.get(c.branch)?.index??0;ot(n,c,y,$,b,u),st(i,c,y,o,s),nt(i,c,y,o)}p==="TB"||p==="BT"?v.set(c.id,{x:y.x,y:y.posWithOffset}):v.set(c.id,{x:y.posWithOffset,y:y.y}),o=p==="BT"&&h?o+I:o+I+O,o>R&&(R=o)})},"drawCommits"),ht=l((e,t,r,s,n)=>{let o=(p==="TB"||p==="BT"?r.xg.branch===o,"isOnBranchToGetCurve"),h=l(g=>g.seq>e.seq&&g.seqh(g)&&a(g))},"shouldRerouteArrow"),S=l((e,t,r=0)=>{let s=e+Math.abs(e-t)/2;if(r>5)return s;if(Y.every(o=>Math.abs(o-s)>=10))return Y.push(s),s;let i=Math.abs(e-t);return S(e,t-i/5,r+1)},"findLane"),lt=l((e,t,r,s)=>{let{theme:n}=q(),i=Q.has(n??""),o=v.get(t.id),a=v.get(r.id);if(o===void 0||a===void 0)throw new Error(`Commit positions not found for commits ${t.id} and ${r.id}`);let h=ht(t,r,o,a,s),g="",f="",m=0,c=0,y=C.get(r.branch)?.index;r.type===x.MERGE&&t.id!==r.parents[0]&&(y=C.get(t.branch)?.index);let $;if(h){g="A 10 10, 0, 0, 0,",f="A 10 10, 0, 0, 1,",m=10,c=10;let u=o.ya.x&&(g="A 20 20, 0, 0, 0,",f="A 20 20, 0, 0, 1,",m=20,c=20,r.type===x.MERGE&&t.id!==r.parents[0]?$=`M ${o.x} ${o.y} L ${o.x} ${a.y-m} ${f} ${o.x-c} ${a.y} L ${a.x} ${a.y}`:$=`M ${o.x} ${o.y} L ${a.x+m} ${o.y} ${g} ${a.x} ${o.y+c} L ${a.x} ${a.y}`),o.x===a.x&&($=`M ${o.x} ${o.y} L ${a.x} ${a.y}`)):p==="BT"?(o.xa.x&&(g="A 20 20, 0, 0, 0,",f="A 20 20, 0, 0, 1,",m=20,c=20,r.type===x.MERGE&&t.id!==r.parents[0]?$=`M ${o.x} ${o.y} L ${o.x} ${a.y+m} ${g} ${o.x-c} ${a.y} L ${a.x} ${a.y}`:$=`M ${o.x} ${o.y} L ${a.x+m} ${o.y} ${f} ${a.x} ${o.y-c} L ${a.x} ${a.y}`),o.x===a.x&&($=`M ${o.x} ${o.y} L ${a.x} ${a.y}`)):(o.ya.y&&(r.type===x.MERGE&&t.id!==r.parents[0]?$=`M ${o.x} ${o.y} L ${a.x-m} ${o.y} ${g} ${a.x} ${o.y-c} L ${a.x} ${a.y}`:$=`M ${o.x} ${o.y} L ${o.x} ${a.y+m} ${f} ${o.x+c} ${a.y} L ${a.x} ${a.y}`),o.y===a.y&&($=`M ${o.x} ${o.y} L ${a.x} ${a.y}`));if($===void 0)throw new Error("Line definition not found");e.append("path").attr("d",$).attr("class","arrow arrow"+G(y,_,i))},"drawArrow"),mt=l((e,t)=>{let r=e.append("g").attr("class","commit-arrows");[...t.keys()].forEach(s=>{let n=t.get(s);n.parents&&n.parents.length>0&&n.parents.forEach(i=>{lt(r,t.get(i),n,t)})})},"drawArrows"),gt=l((e,t,r,s)=>{let{look:n,theme:i,themeVariables:o}=q(),{dropShadow:a,THEME_COLOR_LIMIT:h}=o,g=K.has(i??""),f=Q.has(i??""),m=e.append("g");t.forEach((c,y)=>{let $=G(y,g?h:_,f),u=C.get(c.name)?.pos;if(u===void 0)throw new Error(`Position not found for branch ${c.name}`);let b=p==="TB"||p==="BT"?u:g?u+X/2+1:u-2,B=m.append("line");B.attr("x1",0),B.attr("y1",b),B.attr("x2",R),B.attr("y2",b),B.attr("class","branch branch"+$),p==="TB"?(B.attr("y1",z),B.attr("x1",u),B.attr("y2",R),B.attr("x2",u)):p==="BT"&&(B.attr("y1",R),B.attr("x1",u),B.attr("y2",z),B.attr("x2",u)),Y.push(b);let U=c.name,A=Be(U),T=m.insert("rect"),M=m.insert("g").attr("class","branchLabel").insert("g").attr("class","label branch-label"+$);M.node().appendChild(A);let k=A.getBBox(),ee=g?0:4,N=g?16:0,W=g?X:0;n==="neo"&&T.attr("data-look","neo"),T.attr("class","branchLabelBkg label"+$).attr("style",n==="neo"?`filter:${g?`url(#${s}-drop-shadow)`:a}`:"").attr("rx",ee).attr("ry",ee).attr("x",-k.width-4-(r.rotateCommitLabel===!0?30:0)).attr("y",-k.height/2+10).attr("width",k.width+18+N).attr("height",k.height+4+W),M.attr("transform","translate("+(-k.width-14-(r.rotateCommitLabel===!0?30:0)+N/2)+", "+(b-k.height/2-2)+")"),p==="TB"?(T.attr("x",u-k.width/2-10).attr("y",0),M.attr("transform","translate("+(u-k.width/2-5)+", 0)"),g&&(T.attr("transform",`translate(${-N/2-3}, ${-W-10})`),M.attr("transform","translate("+(u-k.width/2-5)+", "+(-W*2+7)+")"))):p==="BT"?(T.attr("x",u-k.width/2-10).attr("y",R),M.attr("transform","translate("+(u-k.width/2-5)+", "+R+")"),g&&(T.attr("transform",`translate(${-N/2-3}, ${W+10})`),M.attr("transform","translate("+(u-k.width/2-5)+", "+(R+W*2+4)+")"))):T.attr("transform","translate(-19, "+(b-12-W/2)+")")})},"drawBranches"),ft=l(function(e,t,r,s,n){return C.set(e,{pos:t,index:r}),t+=50+(n?40:0)+(p==="TB"||p==="BT"?s.width/2:0),t},"setBranchPosition"),$t=l(function(e,t,r,s){Xe(),w.debug("in gitgraph renderer",e+` +`,"id:",t,r);let n=s.db;if(!n.getConfig){w.error("getConfig method is not available on db");return}let i=n.getConfig(),o=i.rotateCommitLabel??!1;H=n.getCommits();let a=n.getBranchesAsObjArray();p=n.getDirection();let h=he(`[id="${t}"]`),{look:g,theme:f,themeVariables:m}=q(),{useGradient:c,gradientStart:y,gradientStop:$,filterColor:u}=m;if(c){let B=h.append("defs").append("linearGradient").attr("id",t+"-gradient").attr("gradientUnits","objectBoundingBox").attr("x1","0%").attr("y1","0%").attr("x2","100%").attr("y2","0%");B.append("stop").attr("offset","0%").attr("stop-color",y).attr("stop-opacity",1),B.append("stop").attr("offset","100%").attr("stop-color",$).attr("stop-opacity",1)}g==="neo"&&K.has(f??"")&&h.append("defs").append("filter").attr("id",t+"-drop-shadow").attr("height","130%").attr("width","130%").append("feDropShadow").attr("dx","4").attr("dy","4").attr("stdDeviation",0).attr("flood-opacity","0.06").attr("flood-color",u);let b=0;a.forEach((B,U)=>{let A=Be(B.name),T=h.append("g"),V=T.insert("g").attr("class","branchLabel"),M=V.insert("g").attr("class","label branch-label");M.node()?.appendChild(A);let k=A.getBBox();b=ft(B.name,b,U,k,o),M.remove(),V.remove(),T.remove()}),ye(h,H,!1,i),i.showBranches&>(h,a,i,t),mt(h,H),ye(h,H,!0,i),ge.insertTitle(h,"gitTitleText",i.titleTopMargin??0,n.getDiagramTitle()),de(void 0,h,i.diagramPadding,i.useMaxWidth)},"draw"),pt={draw:$t},Ce=8,ve=new Set(["redux","redux-dark","redux-color","redux-dark-color"]),yt=new Set(["redux-color","redux-dark-color"]),xt=new Set(["neo","neo-dark"]),ut=new Set(["dark","redux-dark","redux-dark-color","neo-dark"]),bt=new Set(["redux","redux-dark","redux-color","redux-dark-color","neo","neo-dark"]),wt=l(e=>{let{svgId:t}=e,r="";if(e.useGradient&&t)for(let s=0;s{let t=F(),{theme:r,themeVariables:s}=t,{borderColorArray:n}=s,i=ve.has(r);if(xt.has(r)){let o="";for(let a=0;a`${Array.from({length:e.THEME_COLOR_LIMIT},(t,r)=>r).map(t=>{let r=t%Ce;return` + .branch-label${t} { fill: ${e["gitBranchLabel"+r]}; } + .commit${t} { stroke: ${e["git"+r]}; fill: ${e["git"+r]}; } + .commit-highlight${t} { stroke: ${e["gitInv"+r]}; fill: ${e["gitInv"+r]}; } + .label${t} { fill: ${e["git"+r]}; } + .arrow${t} { stroke: ${e["git"+r]}; } + `}).join(` +`)}`,"normalTheme"),Ct=l(e=>{let t=F(),{theme:r}=t,s=bt.has(r);return` + .commit-id, + .commit-msg, + .branch-label { + fill: lightgrey; + color: lightgrey; + font-family: 'trebuchet ms', verdana, arial, sans-serif; + font-family: var(--mermaid-font-family); + } + + ${s?Bt(e):kt(e)} + + .branch { + stroke-width: ${e.strokeWidth}; + stroke: ${e.commitLineColor??e.lineColor}; + stroke-dasharray: ${s?"4 2":"2"}; + } + .commit-label { font-size: ${e.commitLabelFontSize}; fill: ${s?e.nodeBorder:e.commitLabelColor}; ${s?`font-weight:${e.noteFontWeight};`:""}} + .commit-label-bkg { font-size: ${e.commitLabelFontSize}; fill: ${s?"transparent":e.commitLabelBackground}; opacity: ${s?"":.5}; } + .tag-label { font-size: ${e.tagLabelFontSize}; fill: ${e.tagLabelColor};} + .tag-label-bkg { fill: ${s?e.mainBkg:e.tagLabelBackground}; stroke: ${s?e.nodeBorder:e.tagLabelBorder}; ${s?`filter:${e.dropShadow}`:""} } + .tag-hole { fill: ${e.textColor}; } + + .commit-merge { + stroke: ${s?e.mainBkg:e.primaryColor}; + fill: ${s?e.mainBkg:e.primaryColor}; + } + .commit-reverse { + stroke: ${s?e.mainBkg:e.primaryColor}; + fill: ${s?e.mainBkg:e.primaryColor}; + stroke-width: ${s?e.strokeWidth:3}; + } + .commit-highlight-outer { + } + .commit-highlight-inner { + stroke: ${s?e.mainBkg:e.primaryColor}; + fill: ${s?e.mainBkg:e.primaryColor}; + } + + .arrow { + /* Intentional: neo themes keep the bold 8px arrow (like classic themes); only redux-geometry themes use the thinner options.strokeWidth. */ + stroke-width: ${ve.has(r)?e.strokeWidth:8}; + stroke-linecap: round; + fill: none + } + .gitTitleText { + text-anchor: middle; + font-size: 18px; + fill: ${e.textColor}; + } +`},"getStyles"),vt=Ct,_t={parser:Ve,db:we,renderer:pt,styles:vt};export{_t as diagram}; diff --git a/src/frontend/web/von_interface/static/vendor/conversation-visuals/index.js b/src/frontend/web/von_interface/static/vendor/conversation-visuals/index.js new file mode 100644 index 000000000..4e44c69c2 --- /dev/null +++ b/src/frontend/web/von_interface/static/vendor/conversation-visuals/index.js @@ -0,0 +1,267 @@ +import{a as Sa}from"./chunk-UED66XBH.js";import{a as ka,b as Aa}from"./chunk-GDGZBOQC.js";import{a as Ba}from"./chunk-2AVNI7YL.js";import"./chunk-SNMBC6G5.js";import"./chunk-AKE2LJPJ.js";import"./chunk-NDMMOI35.js";import"./chunk-T4OFBIBR.js";import"./chunk-TEBTVNCH.js";import"./chunk-HVVAQLXH.js";import"./chunk-IVPOI5SM.js";import{a as Ea}from"./chunk-O46DUOKR.js";import{b as za}from"./chunk-C7YISUMK.js";import"./chunk-6NDAIVIK.js";import{b as Kt,d as Ta,m as Jt,o as Ma,p as fe,q as Da,r as Ca}from"./chunk-EUYVSIXP.js";import"./chunk-QSTT4QQC.js";import{A as Wt,B as ga,C as ie,D as ba,E as De,G as ya,P as xa,R as Zt,S as wa,ea as Ce,fa as it,g as Je,h as la,j as oa,k as Qe,l as _e,m as et,n as ua,o as ca,q as tt,r as ha,t as ma,u as rt,v as da,w as at,x as fa,y as pa,z as va}from"./chunk-S4JILX6U.js";import{b as Q,c as Xt,h as O0}from"./chunk-XEQL7KGA.js";import{a as w}from"./chunk-YUSHYV7C.js";import"./chunk-3RNHDNP5.js";var pe="comm",nt="rule",st="decl";var qa="@media",Ra="@import";var Ia="@supports";var Na="@namespace",Ee="@keyframes";var lt="@layer",Oa="@scope";var Fa=Math.abs,ne=String.fromCharCode;function ot(t){return t.trim()}function Be(t,e,r){return t.replace(e,r)}function F0(t,e){return t.charCodeAt(e)|0}function L0(t,e,r){return t.slice(e,r)}function g0(t){return t.length}function ut(t){return t.length}function ve(t,e){return e.push(t),t}var ct=1,ge=1,La=0,S0=0,i0=0,ye="";function ht(t,e,r,a,i,s,o,c){return{value:t,root:e,parent:r,type:a,props:i,children:s,line:ct,column:ge,length:o,return:"",siblings:c}}function Ha(){return i0}function Pa(){return i0=S0>0?F0(ye,--S0):0,ge--,i0===10&&(ge=1,ct--),i0}function k0(){return i0=S02||be(i0)>3?"":" "}function Va(t,e){for(;--e&&k0()&&!(i0<48||i0>102||i0>57&&i0<65||i0>70&&i0<97););return mt(t,qe()+(e<6&&H0()==32&&k0()==32))}function Qt(t){for(;k0();)switch(i0){case t:return S0;case 34:case 39:t!==34&&t!==39&&Qt(i0);break;case 40:t===41&&Qt(t);break;case 92:k0();break}return S0}function ja(t,e){for(;k0()&&t+i0!==57;)if(t+i0===84&&H0()===47)break;return"/*"+mt(e,S0-1)+"*"+ne(t===47?t:k0())}function Ya(t){for(;!be(H0());)k0();return mt(t,S0)}function Za(t){return Ua(ft("",null,null,null,[""],t=Ga(t),0,[0],t))}function ft(t,e,r,a,i,s,o,c,m){for(var d=0,v=0,b=o,y=0,x=0,k=0,M=1,D=1,E=1,q=0,N=0,F="",U=i,L=s,P=a,I=F;D;)switch(k=N,N=k0()){case 40:k!=108&&F0(I,b-1)==58?(q++,I+="("):I+=dt(N);break;case 41:q--,I+=")";break;case 34:case 39:case 91:I+=dt(N);break;case 9:case 10:case 13:case 32:if(q>0){I+=ne(N);break}I+=$a(k);break;case 92:I+=Va(qe()-1,7);continue;case 47:switch(H0()){case 42:case 47:ve(Fn(ja(k0(),qe()),e,r,m),m),(be(k||1)==5||be(H0()||1)==5)&&g0(I)&&L0(I,-1,void 0)!==" "&&(I+=" ");break;default:I+="/"}break;case 123*M:c[d++]=g0(I)*E;case 125*M:case 59:case 0:if(q>0&&N){I+=ne(N);break}switch(N){case 0:case 125:D=0;case 59+v:E==-1&&(I=Be(I,/\f/g,"")),x>0&&(g0(I)-b||M===0)&&ve(x>32?Wa(I+";",a,r,b-1,m):Wa(Be(I," ","")+";",a,r,b-2,m),m);break;case 59:I+=";";default:if(ve(P=Xa(I,e,r,d,v,i,c,F,U=[],L=[],b,s),s),N===123)if(v===0)ft(I,e,P,P,U,s,b,c,L);else{switch(y){case 99:if(F0(I,3)===110)break;case 108:if(F0(I,2)===97)break;default:v=0;case 100:case 109:case 115:}v?ft(t,P,P,a&&ve(Xa(t,P,P,0,0,i,c,F,i,U=[],b,L),L),i,L,b,c,a?U:L):ft(I,P,P,P,[""],L,0,c,L)}}d=v=x=0,M=E=1,F=I="",b=o;break;case 58:b=1+g0(I),x=k;default:if(M<1){if(N==123)--M;else if(N==125&&M++==0&&Pa()==125)continue}switch(I+=ne(N),N*M){case 38:E=v>0?1:(I+="\f",-1);break;case 44:if(q>0)break;c[d++]=(g0(I)-1)*E,E=1;break;case 64:H0()===45&&(I+=dt(k0())),y=H0(),v=b=g0(F=I+=Ya(qe())),N++;break;case 45:k===45&&g0(I)==2&&(M=0)}}return s}function Xa(t,e,r,a,i,s,o,c,m,d,v,b){for(var y=i-1,x=i===0?s:[""],k=ut(x),M=0,D=0,E=0;M0?x[q]+" "+N:Be(N,/&\f/g,x[q])))&&(m[E++]=F);return ht(t,e,r,i===0?nt:c,m,d,v,b)}function Fn(t,e,r,a){return ht(t,e,r,pe,ne(Ha()),L0(t,2,-2),0,a)}function Wa(t,e,r,a,i){return ht(t,e,r,st,L0(t,0,a),L0(t,a+1,-1),a,i)}function pt(t,e){for(var r="",a=0;a/^\s*C4Context|C4Container|C4Component|C4Dynamic|C4Deployment/.test(t),"detector"),Hn=w(async()=>{let{diagram:t}=await import("./c4Diagram-YGBWAQC7-S5OMHGDD.js");return{id:r1,diagram:t}},"loader"),Pn={id:r1,detector:Ln,loader:Hn},Gn=Pn,a1="flowchart-v2",Un=w(t=>/^\s*(graph|flowchart)/.test(t),"detector"),$n=w(async()=>{let{diagram:t}=await import("./flowDiagram-KWPJA3E3-R6HFL2JP.js");return{id:a1,diagram:t}},"loader"),Vn={id:a1,detector:Un,loader:$n},jn=Vn,i1="agentflow",Yn=w(t=>/^\s*agentflow-beta\b/.test(t),"detector"),Xn=w(async()=>{let{diagram:t}=await import("./diagram-22UHCM2B-HFGCFOHX.js");return{id:i1,diagram:t}},"loader"),Wn={id:i1,detector:Yn,loader:Xn},Zn=Wn,n1="swimlane",Kn=w(t=>/^\s*swimlane-beta\b/.test(t),"detector"),Jn=w(async()=>{let{diagram:t}=await import("./swimlanesDiagram-TC7HE7FX-6TNRXJ6X.js");return{id:n1,diagram:t}},"loader"),Qn={id:n1,detector:Kn,loader:Jn},_n=Qn,s1="er",es=w(t=>/^\s*erDiagram/.test(t),"detector"),ts=w(async()=>{let{diagram:t}=await import("./erDiagram-OPXOYQCR-6RMTL4DB.js");return{id:s1,diagram:t}},"loader"),rs={id:s1,detector:es,loader:ts},as=rs,l1="gitGraph",is=w(t=>/^\s*gitGraph/.test(t),"detector"),ns=w(async()=>{let{diagram:t}=await import("./gitGraphDiagram-X574FWY7-YAJB45Z6.js");return{id:l1,diagram:t}},"loader"),ss={id:l1,detector:is,loader:ns},ls=ss,o1="gantt",os=w(t=>/^\s*gantt/.test(t),"detector"),us=w(async()=>{let{diagram:t}=await import("./ganttDiagram-FUAMR5RP-K5SODDM6.js");return{id:o1,diagram:t}},"loader"),cs={id:o1,detector:os,loader:us},hs=cs,u1="info",ms=w(t=>/^\s*info/.test(t),"detector"),ds=w(async()=>{let{diagram:t}=await import("./infoDiagram-VRGFBTTK-4UG6AGDG.js");return{id:u1,diagram:t}},"loader"),fs={id:u1,detector:ms,loader:ds},c1="pie",ps=w(t=>/^\s*pie/.test(t),"detector"),vs=w(async()=>{let{diagram:t}=await import("./pieDiagram-5QR66LMP-BPQ3JXMG.js");return{id:c1,diagram:t}},"loader"),gs={id:c1,detector:ps,loader:vs},h1="quadrantChart",bs=w(t=>/^\s*quadrantChart/.test(t),"detector"),ys=w(async()=>{let{diagram:t}=await import("./quadrantDiagram-O4NWA36T-F56XSFWI.js");return{id:h1,diagram:t}},"loader"),xs={id:h1,detector:bs,loader:ys},ws=xs,m1="xychart",Ss=w(t=>/^\s*xychart(-beta)?/.test(t),"detector"),ks=w(async()=>{let{diagram:t}=await import("./xychartDiagram-PMCCYNJV-2AMIZGJR.js");return{id:m1,diagram:t}},"loader"),As={id:m1,detector:Ss,loader:ks},zs=As,d1="requirement",Ts=w(t=>/^\s*requirement(Diagram)?/.test(t),"detector"),Ms=w(async()=>{let{diagram:t}=await import("./requirementDiagram-PLB6GJNP-7YV7BDAD.js");return{id:d1,diagram:t}},"loader"),Ds={id:d1,detector:Ts,loader:Ms},Cs=Ds,f1="sequence",Es=w(t=>/^\s*sequenceDiagram/.test(t),"detector"),Bs=w(async()=>{let{diagram:t}=await import("./sequenceDiagram-PO4LG4MO-JCAY2BA6.js");return{id:f1,diagram:t}},"loader"),qs={id:f1,detector:Es,loader:Bs},Rs=qs,p1="classDiagram",Is=w(t=>/^\s*classDiagram/.test(t),"detector"),Ns=w(async()=>{let{diagram:t}=await import("./classDiagram-v2-NBCMYWYE-IUHYLZD3.js");return{id:p1,diagram:t}},"loader"),Os={id:p1,detector:Is,loader:Ns},Fs=Os,v1="stateDiagram",Ls=w(t=>/^\s*stateDiagram/.test(t),"detector"),Hs=w(async()=>{let{diagram:t}=await import("./stateDiagram-v2-GCMORJYK-ZHO57SZY.js");return{id:v1,diagram:t}},"loader"),Ps={id:v1,detector:Ls,loader:Hs},Gs=Ps,g1="journey",Us=w(t=>/^\s*journey/.test(t),"detector"),$s=w(async()=>{let{diagram:t}=await import("./journeyDiagram-ZHPQQLJL-E64MMAVE.js");return{id:g1,diagram:t}},"loader"),Vs={id:g1,detector:Us,loader:$s},js=Vs,Ys=w((t,e,r)=>{Q.debug(`rendering svg for syntax error +`);let a=Sa(e),i=a.append("g");a.attr("viewBox","0 0 2412 512"),xa(a,100,512,!0),i.append("path").attr("class","error-icon").attr("d","m411.313,123.313c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32-9.375,9.375-20.688-20.688c-12.484-12.5-32.766-12.5-45.25,0l-16,16c-1.261,1.261-2.304,2.648-3.31,4.051-21.739-8.561-45.324-13.426-70.065-13.426-105.867,0-192,86.133-192,192s86.133,192 192,192 192-86.133 192-192c0-24.741-4.864-48.327-13.426-70.065 1.402-1.007 2.79-2.049 4.051-3.31l16-16c12.5-12.492 12.5-32.758 0-45.25l-20.688-20.688 9.375-9.375 32.001-31.999zm-219.313,100.687c-52.938,0-96,43.063-96,96 0,8.836-7.164,16-16,16s-16-7.164-16-16c0-70.578 57.422-128 128-128 8.836,0 16,7.164 16,16s-7.164,16-16,16z"),i.append("path").attr("class","error-icon").attr("d","m459.02,148.98c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l16,16c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16.001-16z"),i.append("path").attr("class","error-icon").attr("d","m340.395,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16-16c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l15.999,16z"),i.append("path").attr("class","error-icon").attr("d","m400,64c8.844,0 16-7.164 16-16v-32c0-8.836-7.156-16-16-16-8.844,0-16,7.164-16,16v32c0,8.836 7.156,16 16,16z"),i.append("path").attr("class","error-icon").attr("d","m496,96.586h-32c-8.844,0-16,7.164-16,16 0,8.836 7.156,16 16,16h32c8.844,0 16-7.164 16-16 0-8.836-7.156-16-16-16z"),i.append("path").attr("class","error-icon").attr("d","m436.98,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688l32-32c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32c-6.251,6.25-6.251,16.375-0.001,22.625z"),i.append("text").attr("class","error-text").attr("x",1440).attr("y",250).attr("font-size","150px").style("text-anchor","middle").text("Syntax error in text"),i.append("text").attr("class","error-text").attr("x",1250).attr("y",400).attr("font-size","100px").style("text-anchor","middle").text(`mermaid version ${r}`)},"draw"),b1={draw:Ys},Xs=b1,Ws={db:{},renderer:b1,parser:{parse:w(()=>{},"parse")}},Zs=Ws,y1="flowchart-elk",Ks=w((t,e={})=>/^\s*flowchart-elk/.test(t)?(e.layout="elk",!0):!1,"detector"),Js=w(async()=>{let{diagram:t}=await import("./flowDiagram-KWPJA3E3-R6HFL2JP.js");return{id:y1,diagram:t}},"loader"),Qs={id:y1,detector:Ks,loader:Js},_s=Qs,x1="timeline",e4=w(t=>/^\s*timeline/.test(t),"detector"),t4=w(async()=>{let{diagram:t}=await import("./timeline-definition-EJHVYXUP-ONBKEVWJ.js");return{id:x1,diagram:t}},"loader"),r4={id:x1,detector:e4,loader:t4},a4=r4,w1="mindmap",i4=w(t=>/^\s*mindmap/.test(t),"detector"),n4=w(async()=>{let{diagram:t}=await import("./mindmap-definition-NLK3R4M7-75GZTIE6.js");return{id:w1,diagram:t}},"loader"),s4={id:w1,detector:i4,loader:n4},l4=s4,S1="kanban",o4=w(t=>/^\s*kanban/.test(t),"detector"),u4=w(async()=>{let{diagram:t}=await import("./kanban-definition-PNTS6WVX-LQ22K26G.js");return{id:S1,diagram:t}},"loader"),c4={id:S1,detector:o4,loader:u4},h4=c4,k1="sankey",m4=w(t=>/^\s*sankey(-beta)?/.test(t),"detector"),d4=w(async()=>{let{diagram:t}=await import("./sankeyDiagram-IPEJSGJF-FQ7JVLHN.js");return{id:k1,diagram:t}},"loader"),f4={id:k1,detector:m4,loader:d4},p4=f4,A1="packet",v4=w(t=>/^\s*packet(-beta)?/.test(t),"detector"),g4=w(async()=>{let{diagram:t}=await import("./diagram-MLGK6HIB-VEW4G6KZ.js");return{id:A1,diagram:t}},"loader"),b4={id:A1,detector:v4,loader:g4},z1="radar",y4=w(t=>/^\s*radar-beta/.test(t),"detector"),x4=w(async()=>{let{diagram:t}=await import("./diagram-MPIPVDR6-OWA4HOFF.js");return{id:z1,diagram:t}},"loader"),w4={id:z1,detector:y4,loader:x4},T1="block",S4=w(t=>/^\s*block(-beta)?/.test(t),"detector"),k4=w(async()=>{let{diagram:t}=await import("./blockDiagram-BEXU5L5S-NDPA2FID.js");return{id:T1,diagram:t}},"loader"),A4={id:T1,detector:S4,loader:k4},z4=A4,M1="treeView",T4=w(t=>/^\s*treeView-beta/.test(t),"detector"),M4=w(async()=>{let{diagram:t}=await import("./diagram-CDSNMT55-CW57YOQZ.js");return{id:M1,diagram:t}},"loader"),D4={id:M1,detector:T4,loader:M4},C4=D4,D1="architecture",E4=w(t=>/^\s*architecture/.test(t),"detector"),B4=w(async()=>{let{diagram:t}=await import("./architectureDiagram-NJMV4G6O-Q7P3KCEY.js");return{id:D1,diagram:t}},"loader"),q4={id:D1,detector:E4,loader:B4},R4=q4,C1="eventmodeling",I4=w(t=>/^\s*eventmodeling/.test(t),"detector"),N4=w(async()=>{let{diagram:t}=await import("./diagram-ATOU4E4O-GYEJ73S3.js");return{id:C1,diagram:t}},"loader"),O4={id:C1,detector:I4,loader:N4},F4=O4,E1="ishikawa",L4=w(t=>/^\s*ishikawa(-beta)?\b/i.test(t),"detector"),H4=w(async()=>{let{diagram:t}=await import("./ishikawaDiagram-OU5B5YK6-II2QGS6P.js");return{id:E1,diagram:t}},"loader"),P4={id:E1,detector:L4,loader:H4},B1="venn",G4=w(t=>/^\s*venn-beta/.test(t),"detector"),U4=w(async()=>{let{diagram:t}=await import("./vennDiagram-UO4OBE2U-FWCNYWTO.js");return{id:B1,diagram:t}},"loader"),$4={id:B1,detector:G4,loader:U4},V4=$4,q1="treemap",j4=w(t=>/^\s*treemap/.test(t),"detector"),Y4=w(async()=>{let{diagram:t}=await import("./diagram-3UASUU5V-BNHC2XWO.js");return{id:q1,diagram:t}},"loader"),X4={id:q1,detector:j4,loader:Y4},R1="usecase",W4=w(t=>/^\s*usecase-beta(?:\s|$)/.test(t),"detector"),Z4=w(async()=>{let{diagram:t}=await import("./usecaseDiagram-POWQR4AR-XGET4QMZ.js");return{id:R1,diagram:t}},"loader"),K4={id:R1,detector:W4,loader:Z4},I1="wardley",J4=w(t=>/^\s*wardley-beta/i.test(t),"detector"),Q4=w(async()=>{let{diagram:t}=await import("./wardleyDiagram-VNRHLVJA-N4DFHXIG.js");return{id:I1,diagram:t}},"loader"),_4={id:I1,detector:J4,loader:Q4},el=_4,N1="cynefin",tl=w(t=>/^\s*cynefin-beta(?:[\s:]|$)/.test(t),"detector"),rl=w(async()=>{let{diagram:t}=await import("./cynefinDiagram-VND7K2PF-FCNRKY3Q.js");return{id:N1,diagram:t}},"loader"),al={id:N1,detector:tl,loader:rl},O1="railroad",il=w(t=>/^\s*railroad-beta/i.test(t),"detector"),nl=w(async()=>{let{diagram:t}=await import("./railroadDiagram-XR7U4H2S-R66BN6A7.js");return{id:O1,diagram:t}},"loader"),sl={id:O1,detector:il,loader:nl},F1="railroadEbnf",ll=w(t=>/^\s*railroad-ebnf-beta/i.test(t),"detector"),ol=w(async()=>{let{diagram:t}=await import("./ebnfDiagram-ZINNZB2B-DRDBU7EY.js");return{id:F1,diagram:t}},"loader"),ul={id:F1,detector:ll,loader:ol},L1="railroadAbnf",cl=w(t=>/^\s*railroad-abnf-beta/i.test(t),"detector"),hl=w(async()=>{let{diagram:t}=await import("./abnfDiagram-O67JEVCF-J5H6EYVZ.js");return{id:L1,diagram:t}},"loader"),ml={id:L1,detector:cl,loader:hl},H1="railroadPeg",dl=w(t=>/^\s*railroad-peg-beta/i.test(t),"detector"),fl=w(async()=>{let{diagram:t}=await import("./pegDiagram-GJSIUBJH-B2QMA3KU.js");return{id:H1,diagram:t}},"loader"),pl={id:H1,detector:dl,loader:fl},Qa=!1,bt=w(()=>{Qa||(Qa=!0,Ce("error",Zs,t=>t.toLowerCase().trim()==="error"),Ce("---",{db:{clear:w(()=>{},"clear")},styles:{},renderer:{draw:w(()=>{},"draw")},parser:{parse:w(()=>{throw new Error("Diagrams beginning with --- are not valid. If you were trying to use a YAML front-matter, please ensure that you've correctly opened and closed the YAML front-matter with un-indented `---` blocks")},"parse")},init:w(()=>null,"init")},t=>t.toLowerCase().trimStart().startsWith("---")),et(_s,l4,R4),et(Zn,Gn,h4,Fs,as,hs,fs,gs,Cs,Rs,_n,jn,a4,ls,Gs,js,ws,p4,b4,zs,z4,F4,C4,w4,P4,X4,sl,ul,ml,pl,V4,el,al,K4))},"addDiagrams"),vl=w(async()=>{Q.debug("Loading registered diagrams");let e=(await Promise.allSettled(Object.entries(Qe).map(async([r,{detector:a,loader:i}])=>{if(i)try{it(r)}catch{try{let{diagram:s,id:o}=await i();Ce(o,s,a)}catch(s){throw Q.error(`Failed to load external diagram with key ${r}. Removing from detectors.`),delete Qe[r],s}}}))).filter(r=>r.status==="rejected");if(e.length>0){Q.error(`Failed to load ${e.length} external diagrams`);for(let r of e)Q.error(r);throw new Error(`Failed to load ${e.length} external diagrams`)}},"loadRegisteredDiagrams"),gl="graphics-document document";function P1(t,e){t.attr("role",gl),e!==""&&t.attr("aria-roledescription",e)}w(P1,"setA11yDiagramInfo");function G1(t,e,r,a){if(t.insert!==void 0){if(r){let i=`chart-desc-${a}`;t.attr("aria-describedby",i),t.insert("desc",":first-child").attr("id",i).text(r)}if(e){let i=`chart-title-${a}`;t.attr("aria-labelledby",i),t.insert("title",":first-child").attr("id",i).text(e)}}}w(G1,"addSVGa11yTitleDescription");var vt=class U1{constructor(e,r,a,i,s){this.type=e,this.text=r,this.db=a,this.parser=i,this.renderer=s}static{w(this,"Diagram")}static async fromText(e,r={}){let a=typeof e=="string"?{raw:e,cleaned:e}:e,i=ie(),s=_e(a.cleaned,i);try{it(s)}catch{let y=ua(s);if(!y)throw new oa(`Diagram ${s} not found.`);let{id:x,diagram:k}=await y();Ce(x,k)}let{db:o,parser:c,renderer:m,init:d}=it(s);c.parser&&(c.parser.yy=o),o.clear?.(),d?.(i),r.title&&o.setDiagramTitle?.(r.title);let v=a.cleaned;if(o.preserveCommentsWhenParsing&&a.withComments){let y=i.maxTextSize??ha.maxTextSize;a.withComments.length>y?Q.warn(`Comment-preserving source exceeds maxTextSize (${a.withComments.length} > ${y}); parsing the comment-stripped text instead. Reported source positions will not account for comment lines.`):v=a.withComments}let b=Da(v)+` +`;return a.frontmatterLineOffset&&o.setFrontmatterLineOffset?.(a.frontmatterLineOffset),await c.parse(b),new U1(s,b,o,c,m)}async render(e,r){await this.renderer.draw(this.text,e,r,this)}getParser(){return this.parser}getType(){return this.type}},_a=[],bl=w(()=>{_a.forEach(t=>{t()}),_a=[]},"attachFunctions"),yl=w(t=>t.replace(/^\s*%%(?!{)[^\n]+\n?/gm,"").trimStart(),"cleanupComments");function $1(t){let e=t.match(la);if(!e)return{text:t,metadata:{}};let r=e[1],a=r?e[2].split(` +`).map(o=>o.startsWith(r)?o.slice(r.length):o).join(` +`):e[2],i=Aa(a,{schema:ka})??{};i=typeof i=="object"&&!Array.isArray(i)?i:{};let s={};return i.displayMode&&(s.displayMode=i.displayMode.toString()),i.title&&(s.title=i.title.toString()),i.config&&(s.config=i.config),{text:t.slice(e[0].length),metadata:s}}w($1,"extractFrontMatter");var xl=w(t=>t.replace(/\r\n?/g,` +`).replace(/<(\w+)([^>]*)>/g,(e,r,a)=>"<"+r+a.replace(/="([^"]*)"/g,"='$1'")+">"),"cleanupText"),wl=w(t=>{let{text:e,metadata:r}=$1(t),{displayMode:a,title:i,config:s={}}=r;return a&&(s.gantt||(s.gantt={}),s.gantt.displayMode=a),{title:i,config:s,text:e}},"processFrontmatter"),Sl=w(t=>{let e=fe.detectInit(t)??{},r=fe.detectDirective(t,"wrap");return Array.isArray(r)?e.wrap=r.some(({type:a})=>a==="wrap"):r?.type==="wrap"&&(e.wrap=!0),{text:Ta(t),directive:e}},"processDirectives");function tr(t){let e=t,r=xl(t),a=wl(r),i=Sl(a.text),s=Ma(a.config,i.directive),o=i.text,c=yl(o),m=r.length>a.text.length?(r.substring(0,r.length-a.text.length).match(/\n/g)??[]).length:0;return{code:{raw:e,cleaned:c,withComments:o,frontmatterLineOffset:m},title:a.title,config:s}}w(tr,"preprocessDiagram");function V1(t){let e=new TextEncoder().encode(t),r=Array.from(e,a=>String.fromCodePoint(a)).join("");return btoa(r)}w(V1,"toBase64");var kl=5e4,Al="graph TB;a[Maximum text size in diagram exceeded];style a fill:#faa",zl="sandbox",Tl="loose",Ml="http://www.w3.org/2000/svg",Dl="http://www.w3.org/1999/xlink",Cl="http://www.w3.org/1999/xhtml",El="100%",Bl="100%",ql="border:0;margin:0;",Rl="margin:0",Il="allow-top-navigation-by-user-activation allow-popups",Nl='The "iframe" tag is not supported by your browser.',Ol=["foreignobject"],Fl=["dominant-baseline"];function rr(t){let e=tr(t);De();let r;try{r=_e(e.code.cleaned,ie())}catch{r=void 0}return at(r),ba(e.config??{}),e}w(rr,"processAndSetConfigs");async function j1(t,e){bt();try{let{code:r,config:a}=rr(t);return{diagramType:(await vt.fromText(r)).type,config:a}}catch(r){if(e?.suppressErrors)return!1;throw r}finally{at(void 0)}}w(j1,"parse");var e1=w((t,e,r=[])=>{let a=ma(`{ ${r.join(" !important; ")} !important; }`);return`.${t} ${e} ${a}`},"cssImportantStyles"),Ll=w((t,e=new Map)=>{let r=new CSSStyleSheet;if(t.fontFamily!==void 0&&r.insertRule(`:root { --mermaid-font-family: ${t.fontFamily}}`,r.cssRules.length),t.altFontFamily!==void 0&&r.insertRule(`:root { --mermaid-alt-font-family: ${t.altFontFamily}}`,r.cssRules.length),e instanceof Map){let c=ya(t)?["> *","span"]:["rect","polygon","ellipse","circle","path"];e.forEach(m=>{Kt(m.styles)||c.forEach(d=>{r.insertRule(e1(m.id,d,m.styles),r.cssRules.length)}),Kt(m.textStyles)||r.insertRule(e1(m.id,"tspan",(m?.textStyles||[]).map(d=>d.replace("color","fill"))),r.cssRules.length)})}let a="";if(t.themeCSS!==void 0)if(typeof r.replaceSync=="function"){let i=new CSSStyleSheet;i.replaceSync(t.themeCSS),a=Zt(i)+` +`}else a+=`${t.themeCSS} +`;return a+Zt(r)},"createCssStyles"),Hl=w((t,e)=>pt(Za(`${t}{${e}}`),Ja([w(function(a,i,s,o){if(a.type==="rule"&&Array.isArray(a.props)){if(a.parent&&a.parent.type===Ee)return;a.props=a.props.map(c=>c===t&&Array.isArray(a.children)&&a.children.every(d=>d.type!=="decl"?!1:new Set(["font-family","font-size","fill"]).has(d.props))||(c.startsWith(`${t} `)||c.startsWith(`${t}>`))&&!c.startsWith(`${t} ||`)?c:`${t} ${c}`)}else a.type.startsWith("@")&&([...[qa,Ia,lt,Oa,"@container","@starting-style"],Ee].includes(a.type)||(Q.warn(`Removing unsupported at-rule ${a.type} from CSS`),a.type=pe))},"addNamespace"),Ka])),"compileCSS"),Pl=w((t,e,r,a)=>{let i=Ll(t,r),s=wa(e,i,{...t.themeVariables,theme:t.theme,look:t.look},a);return Hl(a,s)},"createUserStyles"),Gl=w((t="",e,r)=>{let a=t;return!r&&!e&&(a=a.replace(/marker-end="url\([\d+./:=?A-Za-z-]*?#/g,'marker-end="url(#')),a=Ca(a),a=a.replace(/
    /g,"
    "),a},"cleanUpSvgCode"),Ul=w((t="",e)=>{let r=e?.viewBox?.baseVal?.height?e.viewBox.baseVal.height+"px":Bl,a=V1(`${t}`);return``},"putIntoIFrame"),t1=w((t,e,r,a,i)=>{let s=t.append("div");s.attr("id",r),a&&s.attr("style",a);let o=s.append("svg").attr("id",e).attr("width","100%").attr("xmlns",Ml);return i&&o.attr("xmlns:xlink",i),o.append("g"),t},"appendDivSvgG");function er(t,e){return t.append("iframe").attr("id",e).attr("style","width: 100%; height: 100%;").attr("sandbox","")}w(er,"sandboxedIframe");var $l=w((t,e,r,a)=>{t.getElementById(e)?.remove(),t.getElementById(r)?.remove(),t.getElementById(a)?.remove()},"removeExistingElements"),Vl=w(async function(t,e,r){bt();let a=rr(e),i=a.code;e=i.cleaned;let s=ie();Q.debug(s),e.length>(s?.maxTextSize??kl)&&(e=Al,i={raw:e,cleaned:e});let o=`#${t}`,c="i"+t,m="#"+c,d="d"+t,v="#"+d,b=w(()=>{let u0=O0(x?m:v).node();u0&&"remove"in u0&&u0.remove()},"removeTempElements"),y=O0(document.body),x=s.securityLevel===zl,k=s.securityLevel===Tl,M=s.fontFamily;if(r!==void 0){if(r&&(r.innerHTML=""),x){let X=er(O0(r),c);y=O0(X.nodes()[0].contentDocument.body),y.node().style.margin="0"}else y=O0(r);t1(y,t,d,`font-family: ${M}`,Dl)}else{if($l(document,t,d,c),x){let X=er(O0(document.body),c);y=O0(X.nodes()[0].contentDocument.body),y.node().style.margin="0"}else y=O0("body");t1(y,t,d)}let D,E;try{D=await vt.fromText(i,{title:a.title})}catch(X){if(s.suppressErrorRendering)throw b(),X;D=await vt.fromText("error"),E=X}let q=y.select(v).node(),N=D.type,F=q.firstChild,U=F.firstChild,L=D.renderer.getClasses?.(e,D),P=Pl(s,N,L,o),I=document.createElement("style");I.innerHTML=P,F.insertBefore(I,U);try{await D.renderer.draw(e,t,"12.0.0",D)}catch(X){throw s.suppressErrorRendering?b():Xs.draw(e,t,"12.0.0"),X}let Y=y.select(`${v} svg`),Z=D.db.getAccTitle?.(),m0=D.db.getAccDescription?.();X1(N,Y,Z,m0);let T0=w(()=>{y.select(`[id="${t}"]`).selectAll("foreignobject > *").attr("xmlns",Cl);let X=y.select(v).node().innerHTML;if(Q.debug("config.arrowMarkerAbsolute",s.arrowMarkerAbsolute),X=Gl(X,x,da(s.arrowMarkerAbsolute)),x){let u0=y.select(v+" svg").node();X=Ul(X,u0)}else k||(X=Je.sanitize(X,{ADD_TAGS:Ol,ADD_ATTR:Fl,HTML_INTEGRATION_POINTS:{foreignobject:!0}}));return bl(),X},"serializeSvg")();if(E)throw E;return b(),{diagramType:N,svg:T0,bindFunctions:D.db.bindFunctions}},"renderDiagram"),jl=w(async function(t,e,r){try{return await Vl(t,e,r)}finally{at(void 0)}},"render");function Y1(t={}){let e=ca({},t);e?.fontFamily&&!e.themeVariables?.fontFamily&&(e.themeVariables||(e.themeVariables={}),e.themeVariables.fontFamily=e.fontFamily),pa(e);let r=rt.theme;e?.theme&&Object.hasOwn(tt,e.theme)?e.themeVariables=tt[e.theme].getThemeVariables(e.themeVariables):e&&(e.theme!=null&&e.theme!=="null"&&(e.theme=r),e.themeVariables=tt[r].getThemeVariables(e.themeVariables));let a=typeof e=="object"?fa(e):Wt();Xt(a.logLevel),bt()}w(Y1,"initialize");var Yl=w((t,e={})=>{let{code:r}=tr(t);return vt.fromText(r,e)},"getDiagramFromText");function X1(t,e,r,a){P1(e,t),G1(e,r,a,e.attr("id"))}w(X1,"addA11yInfo");var se=Object.freeze({render:jl,parse:j1,getDiagramFromText:Yl,initialize:Y1,getConfig:ie,setConfig:ga,getSiteConfig:Wt,updateSiteConfig:va,reset:w(()=>{De()},"reset"),globalReset:w(()=>{De(rt)},"globalReset"),defaultConfig:rt});Xt(ie().logLevel);De(ie());var Xl=w((t,e,r)=>{Q.warn(t),Jt(t)?(r&&r(t.str,t.hash),e.push({...t,message:t.str,error:t})):(r&&r(t),t instanceof Error&&e.push({str:t.message,message:t.message,hash:t.name,error:t}))},"handleError"),W1=w(async function(t={querySelector:".mermaid"}){try{await Wl(t)}catch(e){if(Jt(e)&&Q.error(e.str),P0.parseError&&P0.parseError(e),!t.suppressErrors)throw Q.error("Use the suppressErrors option to suppress these errors"),e}},"run"),Wl=w(async function({postRenderCallback:t,querySelector:e,nodes:r}={querySelector:".mermaid"}){let a=se.getConfig();Q.debug(`${t?"":"No "}Callback function found`);let i;if(r)i=r;else if(e)i=document.querySelectorAll(e);else throw new Error("Nodes and querySelector are both undefined");Q.debug(`Found ${i.length} diagrams`),a?.startOnLoad!==void 0&&(Q.debug("Start On Load: "+a?.startOnLoad),se.updateSiteConfig({startOnLoad:a?.startOnLoad}));let s=new fe.InitIDGenerator(a.deterministicIds,a.deterministicIDSeed),o,c=[];for(let m of Array.from(i)){if(Q.info("Rendering diagram: "+m.id),m.getAttribute("data-processed"))continue;m.setAttribute("data-processed","true");let d=`mermaid-${s.next()}`;o=m.innerHTML,o=Ea(fe.entityDecode(o)).trim().replace(//gi,"
    ");let v=fe.detectInit(o);v&&Q.debug("Detected early reinit: ",v);try{let{svg:b,bindFunctions:y}=await Q1(d,o,m);m.innerHTML=b,t&&await t(d),y&&y(m)}catch(b){Xl(b,c,P0.parseError)}}if(c.length>0)throw c[0]},"runThrowsErrors"),Z1=w(function(t){se.initialize(t)},"initialize"),Zl=w(async function(t,e,r){Q.warn("mermaid.init is deprecated. Please use run instead."),t&&Z1(t);let a={postRenderCallback:r,querySelector:".mermaid"};typeof e=="string"?a.querySelector=e:e&&(e instanceof HTMLElement?a.nodes=[e]:a.nodes=e),await W1(a)},"init"),Kl=w(async(t,{lazyLoad:e=!0}={})=>{bt(),et(...t),e===!1&&await vl()},"registerExternalDiagrams"),K1=w(function(){if(P0.startOnLoad){let{startOnLoad:t}=se.getConfig();t&&P0.run().catch(e=>Q.error("Mermaid failed to initialize",e))}},"contentLoaded");typeof document<"u"&&window.addEventListener("load",K1,!1);var Jl=w(function(t){P0.parseError=t},"setParseErrorHandler"),gt=[],_t=!1,J1=w(async()=>{if(!_t){for(_t=!0;gt.length>0;){let t=gt.shift();if(t)try{await t()}catch(e){Q.error("Error executing queue",e)}}_t=!1}},"executeQueue"),Ql=w(async(t,e)=>new Promise((r,a)=>{let i=w(()=>new Promise((s,o)=>{se.parse(t,e).then(c=>{s(c),r(c)},c=>{Q.error("Error parsing",c),P0.parseError?.(c),o(c),a(c)})}),"performCall");gt.push(i),J1().catch(a)}),"parse"),Q1=w((t,e,r)=>new Promise((a,i)=>{let s=w(()=>new Promise((o,c)=>{se.render(t,e,r).then(m=>{o(m),a(m)},m=>{Q.error("Error parsing",m),P0.parseError?.(m),c(m),i(m)})}),"performCall");gt.push(s),J1().catch(i)}),"render"),_l=w(()=>Object.keys(Qe).map(t=>({id:t})),"getRegisteredDiagramsMetadata"),P0={startOnLoad:!0,mermaidAPI:se,parse:Ql,render:Q1,init:Zl,run:W1,registerExternalDiagrams:Kl,registerLayoutLoaders:Ba,initialize:Z1,parseError:void 0,contentLoaded:K1,setParseErrorHandler:Jl,detectType:_e,registerIconPacks:za,getRegisteredDiagramsMetadata:_l},eo=P0;var z=class t extends Error{constructor(e,r){var a="KaTeX parse error: "+e,i,s,o=r&&r.loc;if(o&&o.start<=o.end){var c=o.lexer.input;i=o.start,s=o.end,i===c.length?a+=" at end of input: ":a+=" at position "+(i+1)+": ";var m=c.slice(i,s).replace(/[^]/g,"$&\u0332"),d;i>15?d="\u2026"+c.slice(i-15,i):d=c.slice(0,i);var v;s+15t.replace(to,"-$1").toLowerCase(),ao={"&":"&",">":">","<":"<",'"':""","'":"'"},io=/[&><"']/g,h0=t=>String(t).replace(io,e=>ao[e]),Dt=t=>t.type==="ordgroup"||t.type==="color"?t.body.length===1?Dt(t.body[0]):t:t.type==="font"?Dt(t.body):t,no=new Set(["mathord","textord","atom"]),V0=t=>no.has(Dt(t).type),so=t=>{var e=/^[\x00-\x20]*([^\\/#?]*?)(:|�*58|�*3a|&colon)/i.exec(t);return e?e[2]!==":"||!/^[a-zA-Z][a-zA-Z0-9+\-.]*$/.test(e[1])?null:e[1].toLowerCase():"_relative"},vr={displayMode:{type:"boolean",description:"Render math in display mode, which puts the math in display style (so \\int and \\sum are large, for example), and centers the math on the page on its own line.",cli:"-d, --display-mode"},output:{type:{enum:["htmlAndMathml","html","mathml"]},description:"Determines the markup language of the output.",cli:"-F, --format "},leqno:{type:"boolean",description:"Render display math in leqno style (left-justified tags)."},fleqn:{type:"boolean",description:"Render display math flush left."},throwOnError:{type:"boolean",default:!0,cli:"-t, --no-throw-on-error",cliDescription:"Render errors (in the color given by --error-color) instead of throwing a ParseError exception when encountering an error."},errorColor:{type:"string",default:"#cc0000",cli:"-c, --error-color ",cliDescription:"A color string given in the format 'rgb' or 'rrggbb' (no #). This option determines the color of errors rendered by the -t option.",cliProcessor:t=>"#"+t},macros:{type:"object",cli:"-m, --macro ",cliDescription:"Define custom macro of the form '\\foo:expansion' (use multiple -m arguments for multiple macros).",cliDefault:[],cliProcessor:(t,e)=>(e.push(t),e)},minRuleThickness:{type:"number",description:"Specifies a minimum thickness, in ems, for fraction lines, `\\sqrt` top lines, `{array}` vertical lines, `\\hline`, `\\hdashline`, `\\underline`, `\\overline`, and the borders of `\\fbox`, `\\boxed`, and `\\fcolorbox`.",processor:t=>Math.max(0,t),cli:"--min-rule-thickness ",cliProcessor:parseFloat},colorIsTextColor:{type:"boolean",description:"Makes \\color behave like LaTeX's 2-argument \\textcolor, instead of LaTeX's one-argument \\color mode change.",cli:"-b, --color-is-text-color"},strict:{type:[{enum:["warn","ignore","error"]},"boolean","function"],description:"Turn on strict / LaTeX faithfulness mode, which throws an error if the input uses features that are not supported by LaTeX.",cli:"-S, --strict",cliDefault:!1},trust:{type:["boolean","function"],description:"Trust the input, enabling all HTML features such as \\url.",cli:"-T, --trust"},maxSize:{type:"number",default:1/0,description:"If non-zero, all user-specified sizes, e.g. in \\rule{500em}{500em}, will be capped to maxSize ems. Otherwise, elements and spaces can be arbitrarily large",processor:t=>Math.max(0,t),cli:"-s, --max-size ",cliProcessor:parseInt},maxExpand:{type:"number",default:1e3,description:"Limit the number of macro expansions to the specified number, to prevent e.g. infinite macro loops. If set to Infinity, the macro expander will try to fully expand as in LaTeX.",processor:t=>Math.max(0,t),cli:"-e, --max-expand ",cliProcessor:t=>t==="Infinity"?1/0:parseInt(t)},globalGroup:{type:"boolean",cli:!1}};function lo(t){if(typeof t!="string")return t.enum[0];switch(t){case"boolean":return!1;case"string":return"";case"number":return 0;case"object":return{};default:throw new Error("Unexpected schema type; settings must declare an explicit default.")}}function oo(t){if(Object.prototype.hasOwnProperty.call(t,"default")&&t.default!==void 0)return t.default;var e=Array.isArray(t.type)?t.type[0]:t.type;return lo(e)}function uo(t,e,r,a){var i=Object.prototype.hasOwnProperty.call(r,e)?r[e]:void 0,s=Object.prototype.hasOwnProperty.call(a,"processor")?a.processor:void 0;t[e]=i!==void 0?s?s(i):i:oo(a)}var Fe=class{constructor(e){e===void 0&&(e={}),this.displayMode=void 0,this.output=void 0,this.leqno=void 0,this.fleqn=void 0,this.throwOnError=void 0,this.errorColor=void 0,this.macros=void 0,this.minRuleThickness=void 0,this.colorIsTextColor=void 0,this.strict=void 0,this.trust=void 0,this.maxSize=void 0,this.maxExpand=void 0,this.globalGroup=void 0,e=e||{};for(var r of Object.keys(vr)){var a=vr[r];a&&uo(this,r,e,a)}}reportNonstrict(e,r,a){var i=this.strict;if(typeof i=="function"&&(i=i(e,r,a)),!(!i||i==="ignore")){if(i===!0||i==="error")throw new z("LaTeX-incompatible input and strict mode is set to 'error': "+(r+" ["+e+"]"),a);i==="warn"?typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(r+" ["+e+"]")):typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+i+"': "+r+" ["+e+"]"))}}useStrictBehavior(e,r,a){var i=this.strict;if(typeof i=="function")try{i=i(e,r,a)}catch{i="error"}return!i||i==="ignore"?!1:i===!0||i==="error"?!0:i==="warn"?(typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(r+" ["+e+"]")),!1):(typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+i+"': "+r+" ["+e+"]")),!1)}isTrusted(e){if("url"in e&&e.url&&!e.protocol){var r=so(e.url);if(r==null)return!1;e.protocol=r}var a=typeof this.trust=="function"?this.trust(e):this.trust;return!!a}},C0=class{constructor(e,r,a){this.id=void 0,this.size=void 0,this.cramped=void 0,this.id=e,this.size=r,this.cramped=a}sup(){return E0[co[this.id]]}sub(){return E0[ho[this.id]]}fracNum(){return E0[mo[this.id]]}fracDen(){return E0[fo[this.id]]}cramp(){return E0[po[this.id]]}text(){return E0[vo[this.id]]}isTight(){return this.size>=2}},Fr=0,Et=1,we=2,$0=3,Le=4,A0=5,Se=6,f0=7,E0=[new C0(Fr,0,!1),new C0(Et,0,!0),new C0(we,1,!1),new C0($0,1,!0),new C0(Le,2,!1),new C0(A0,2,!0),new C0(Se,3,!1),new C0(f0,3,!0)],co=[Le,A0,Le,A0,Se,f0,Se,f0],ho=[A0,A0,A0,A0,f0,f0,f0,f0],mo=[we,$0,Le,A0,Se,f0,Se,f0],fo=[$0,$0,A0,A0,f0,f0,f0,f0],po=[Et,Et,$0,$0,A0,A0,f0,f0],vo=[Fr,Et,we,$0,we,$0,we,$0],G={DISPLAY:E0[Fr],TEXT:E0[we],SCRIPT:E0[Le],SCRIPTSCRIPT:E0[Se]},gr=[{name:"latin",blocks:[[256,591],[768,879]]},{name:"cyrillic",blocks:[[1024,1279]]},{name:"armenian",blocks:[[1328,1423]]},{name:"brahmic",blocks:[[2304,4255]]},{name:"georgian",blocks:[[4256,4351]]},{name:"cjk",blocks:[[12288,12543],[19968,40879],[65280,65376]]},{name:"hangul",blocks:[[44032,55215]]}];function go(t){for(var e=0;e=i[0]&&t<=i[1])return r.name}return null}var Ct=[];gr.forEach(t=>t.blocks.forEach(e=>Ct.push(...e)));function Oi(t){for(var e=0;e=Ct[e]&&t<=Ct[e+1])return!0;return!1}var l0=t=>t+" "+t,xe=80,bo=function(e,r){return"M95,"+(622+e+r)+` +c-2.7,0,-7.17,-2.7,-13.5,-8c-5.8,-5.3,-9.5,-10,-9.5,-14 +c0,-2,0.3,-3.3,1,-4c1.3,-2.7,23.83,-20.7,67.5,-54 +c44.2,-33.3,65.8,-50.3,66.5,-51c1.3,-1.3,3,-2,5,-2c4.7,0,8.7,3.3,12,10 +s173,378,173,378c0.7,0,35.3,-71,104,-213c68.7,-142,137.5,-285,206.5,-429 +c69,-144,104.5,-217.7,106.5,-221 +l`+e/2.075+" -"+e+` +c5.3,-9.3,12,-14,20,-14 +H400000v`+(40+e)+`H845.2724 +s-225.272,467,-225.272,467s-235,486,-235,486c-2.7,4.7,-9,7,-19,7 +c-6,0,-10,-1,-12,-3s-194,-422,-194,-422s-65,47,-65,47z +M`+(834+e)+" "+r+"h400000v"+(40+e)+"h-400000z"},yo=function(e,r){return"M263,"+(601+e+r)+`c0.7,0,18,39.7,52,119 +c34,79.3,68.167,158.7,102.5,238c34.3,79.3,51.8,119.3,52.5,120 +c340,-704.7,510.7,-1060.3,512,-1067 +l`+e/2.084+" -"+e+` +c4.7,-7.3,11,-11,19,-11 +H40000v`+(40+e)+`H1012.3 +s-271.3,567,-271.3,567c-38.7,80.7,-84,175,-136,283c-52,108,-89.167,185.3,-111.5,232 +c-22.3,46.7,-33.8,70.3,-34.5,71c-4.7,4.7,-12.3,7,-23,7s-12,-1,-12,-1 +s-109,-253,-109,-253c-72.7,-168,-109.3,-252,-110,-252c-10.7,8,-22,16.7,-34,26 +c-22,17.3,-33.3,26,-34,26s-26,-26,-26,-26s76,-59,76,-59s76,-60,76,-60z +M`+(1001+e)+" "+r+"h400000v"+(40+e)+"h-400000z"},xo=function(e,r){return"M983 "+(10+e+r)+` +l`+e/3.13+" -"+e+` +c4,-6.7,10,-10,18,-10 H400000v`+(40+e)+` +H1013.1s-83.4,268,-264.1,840c-180.7,572,-277,876.3,-289,913c-4.7,4.7,-12.7,7,-24,7 +s-12,0,-12,0c-1.3,-3.3,-3.7,-11.7,-7,-25c-35.3,-125.3,-106.7,-373.3,-214,-744 +c-10,12,-21,25,-33,39s-32,39,-32,39c-6,-5.3,-15,-14,-27,-26s25,-30,25,-30 +c26.7,-32.7,52,-63,76,-91s52,-60,52,-60s208,722,208,722 +c56,-175.3,126.3,-397.3,211,-666c84.7,-268.7,153.8,-488.2,207.5,-658.5 +c53.7,-170.3,84.5,-266.8,92.5,-289.5z +M`+(1001+e)+" "+r+"h400000v"+(40+e)+"h-400000z"},wo=function(e,r){return"M424,"+(2398+e+r)+` +c-1.3,-0.7,-38.5,-172,-111.5,-514c-73,-342,-109.8,-513.3,-110.5,-514 +c0,-2,-10.7,14.3,-32,49c-4.7,7.3,-9.8,15.7,-15.5,25c-5.7,9.3,-9.8,16,-12.5,20 +s-5,7,-5,7c-4,-3.3,-8.3,-7.7,-13,-13s-13,-13,-13,-13s76,-122,76,-122s77,-121,77,-121 +s209,968,209,968c0,-2,84.7,-361.7,254,-1079c169.3,-717.3,254.7,-1077.7,256,-1081 +l`+e/4.223+" -"+e+`c4,-6.7,10,-10,18,-10 H400000 +v`+(40+e)+`H1014.6 +s-87.3,378.7,-272.6,1166c-185.3,787.3,-279.3,1182.3,-282,1185 +c-2,6,-10,9,-24,9 +c-8,0,-12,-0.7,-12,-2z M`+(1001+e)+" "+r+` +h400000v`+(40+e)+"h-400000z"},So=function(e,r){return"M473,"+(2713+e+r)+` +c339.3,-1799.3,509.3,-2700,510,-2702 l`+e/5.298+" -"+e+` +c3.3,-7.3,9.3,-11,18,-11 H400000v`+(40+e)+`H1017.7 +s-90.5,478,-276.2,1466c-185.7,988,-279.5,1483,-281.5,1485c-2,6,-10,9,-24,9 +c-8,0,-12,-0.7,-12,-2c0,-1.3,-5.3,-32,-16,-92c-50.7,-293.3,-119.7,-693.3,-207,-1200 +c0,-1.3,-5.3,8.7,-16,30c-10.7,21.3,-21.3,42.7,-32,64s-16,33,-16,33s-26,-26,-26,-26 +s76,-153,76,-153s77,-151,77,-151c0.7,0.7,35.7,202,105,604c67.3,400.7,102,602.7,104, +606zM`+(1001+e)+" "+r+"h400000v"+(40+e)+"H1017.7z"},ko=function(e){var r=e/2;return"M400000 "+e+" H0 L"+r+" 0 l65 45 L145 "+(e-80)+" H400000z"},Ao=function(e,r,a){var i=a-54-r-e;return"M702 "+(e+r)+"H400000"+(40+e)+` +H742v`+i+`l-4 4-4 4c-.667.7 -2 1.5-4 2.5s-4.167 1.833-6.5 2.5-5.5 1-9.5 1 +h-12l-28-84c-16.667-52-96.667 -294.333-240-727l-212 -643 -85 170 +c-4-3.333-8.333-7.667-13 -13l-13-13l77-155 77-156c66 199.333 139 419.667 +219 661 l218 661zM702 `+r+"H400000v"+(40+e)+"H742z"},zo=function(e,r,a){r=1e3*r;var i="";switch(e){case"sqrtMain":i=bo(r,xe);break;case"sqrtSize1":i=yo(r,xe);break;case"sqrtSize2":i=xo(r,xe);break;case"sqrtSize3":i=wo(r,xe);break;case"sqrtSize4":i=So(r,xe);break;case"sqrtTall":i=Ao(r,xe,a)}return i},To=function(e,r){switch(e){case"\u239C":return l0("M291 0 H417 V"+r+" H291z");case"\u2223":return l0("M145 0 H188 V"+r+" H145z");case"\u2225":return l0("M145 0 H188 V"+r+" H145z")+l0("M367 0 H410 V"+r+" H367z");case"\u239F":return l0("M457 0 H583 V"+r+" H457z");case"\u23A2":return l0("M319 0 H403 V"+r+" H319z");case"\u23A5":return l0("M263 0 H347 V"+r+" H263z");case"\u23AA":return l0("M384 0 H504 V"+r+" H384z");case"\u23D0":return l0("M312 0 H355 V"+r+" H312z");case"\u2016":return l0("M257 0 H300 V"+r+" H257z")+l0("M478 0 H521 V"+r+" H478z");default:return""}},_1={doubleleftarrow:`M262 157 +l10-10c34-36 62.7-77 86-123 3.3-8 5-13.3 5-16 0-5.3-6.7-8-20-8-7.3 + 0-12.2.5-14.5 1.5-2.3 1-4.8 4.5-7.5 10.5-49.3 97.3-121.7 169.3-217 216-28 + 14-57.3 25-88 33-6.7 2-11 3.8-13 5.5-2 1.7-3 4.2-3 7.5s1 5.8 3 7.5 +c2 1.7 6.3 3.5 13 5.5 68 17.3 128.2 47.8 180.5 91.5 52.3 43.7 93.8 96.2 124.5 + 157.5 9.3 8 15.3 12.3 18 13h6c12-.7 18-4 18-10 0-2-1.7-7-5-15-23.3-46-52-87 +-86-123l-10-10h399738v-40H218c328 0 0 0 0 0l-10-8c-26.7-20-65.7-43-117-69 2.7 +-2 6-3.7 10-5 36.7-16 72.3-37.3 107-64l10-8h399782v-40z +m8 0v40h399730v-40zm0 194v40h399730v-40z`,doublerightarrow:`M399738 392l +-10 10c-34 36-62.7 77-86 123-3.3 8-5 13.3-5 16 0 5.3 6.7 8 20 8 7.3 0 12.2-.5 + 14.5-1.5 2.3-1 4.8-4.5 7.5-10.5 49.3-97.3 121.7-169.3 217-216 28-14 57.3-25 88 +-33 6.7-2 11-3.8 13-5.5 2-1.7 3-4.2 3-7.5s-1-5.8-3-7.5c-2-1.7-6.3-3.5-13-5.5-68 +-17.3-128.2-47.8-180.5-91.5-52.3-43.7-93.8-96.2-124.5-157.5-9.3-8-15.3-12.3-18 +-13h-6c-12 .7-18 4-18 10 0 2 1.7 7 5 15 23.3 46 52 87 86 123l10 10H0v40h399782 +c-328 0 0 0 0 0l10 8c26.7 20 65.7 43 117 69-2.7 2-6 3.7-10 5-36.7 16-72.3 37.3 +-107 64l-10 8H0v40zM0 157v40h399730v-40zm0 194v40h399730v-40z`,leftarrow:`M400000 241H110l3-3c68.7-52.7 113.7-120 + 135-202 4-14.7 6-23 6-25 0-7.3-7-11-21-11-8 0-13.2.8-15.5 2.5-2.3 1.7-4.2 5.8 +-5.5 12.5-1.3 4.7-2.7 10.3-4 17-12 48.7-34.8 92-68.5 130S65.3 228.3 18 247 +c-10 4-16 7.7-18 11 0 8.7 6 14.3 18 17 47.3 18.7 87.8 47 121.5 85S196 441.3 208 + 490c.7 2 1.3 5 2 9s1.2 6.7 1.5 8c.3 1.3 1 3.3 2 6s2.2 4.5 3.5 5.5c1.3 1 3.3 + 1.8 6 2.5s6 1 10 1c14 0 21-3.7 21-11 0-2-2-10.3-6-25-20-79.3-65-146.7-135-202 + l-3-3h399890zM100 241v40h399900v-40z`,leftbrace:`M6 548l-6-6v-35l6-11c56-104 135.3-181.3 238-232 57.3-28.7 117 +-45 179-50h399577v120H403c-43.3 7-81 15-113 26-100.7 33-179.7 91-237 174-2.7 + 5-6 9-10 13-.7 1-7.3 1-20 1H6z`,leftbraceunder:`M0 6l6-6h17c12.688 0 19.313.3 20 1 4 4 7.313 8.3 10 13 + 35.313 51.3 80.813 93.8 136.5 127.5 55.688 33.7 117.188 55.8 184.5 66.5.688 + 0 2 .3 4 1 18.688 2.7 76 4.3 172 5h399450v120H429l-6-1c-124.688-8-235-61.7 +-331-161C60.687 138.7 32.312 99.3 7 54L0 41V6z`,leftgroup:`M400000 80 +H435C64 80 168.3 229.4 21 260c-5.9 1.2-18 0-18 0-2 0-3-1-3-3v-38C76 61 257 0 + 435 0h399565z`,leftgroupunder:`M400000 262 +H435C64 262 168.3 112.6 21 82c-5.9-1.2-18 0-18 0-2 0-3 1-3 3v38c76 158 257 219 + 435 219h399565z`,leftharpoon:`M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3 +-3.3 10.2-9.5 20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5 +-18.3 3-21-1.3-4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7 +-196 228-6.7 4.7-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40z`,leftharpoonplus:`M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3-3.3 10.2-9.5 + 20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5-18.3 3-21-1.3 +-4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7-196 228-6.7 4.7 +-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40zM0 435v40h400000v-40z +m0 0v40h400000v-40z`,leftharpoondown:`M7 241c-4 4-6.333 8.667-7 14 0 5.333.667 9 2 11s5.333 + 5.333 12 10c90.667 54 156 130 196 228 3.333 10.667 6.333 16.333 9 17 2 .667 5 + 1 9 1h5c10.667 0 16.667-2 18-6 2-2.667 1-9.667-3-21-32-87.333-82.667-157.667 +-152-211l-3-3h399907v-40zM93 281 H400000 v-40L7 241z`,leftharpoondownplus:`M7 435c-4 4-6.3 8.7-7 14 0 5.3.7 9 2 11s5.3 5.3 12 + 10c90.7 54 156 130 196 228 3.3 10.7 6.3 16.3 9 17 2 .7 5 1 9 1h5c10.7 0 16.7 +-2 18-6 2-2.7 1-9.7-3-21-32-87.3-82.7-157.7-152-211l-3-3h399907v-40H7zm93 0 +v40h399900v-40zM0 241v40h399900v-40zm0 0v40h399900v-40z`,lefthook:`M400000 281 H103s-33-11.2-61-33.5S0 197.3 0 164s14.2-61.2 42.5 +-83.5C70.8 58.2 104 47 142 47 c16.7 0 25 6.7 25 20 0 12-8.7 18.7-26 20-40 3.3 +-68.7 15.7-86 37-10 12-15 25.3-15 40 0 22.7 9.8 40.7 29.5 54 19.7 13.3 43.5 21 + 71.5 23h399859zM103 281v-40h399897v40z`,leftlinesegment:l0("M40 281 V428 H0 V94 H40 V241 H400000 v40z"),leftbracketunder:l0("M0 0 h120 V290 H399995 v120 H0z"),leftbracketover:l0("M0 440 h120 V150 H399995 v-120 H0z"),leftmapsto:l0("M40 281 V448H0V74H40V241H400000v40z"),leftToFrom:`M0 147h400000v40H0zm0 214c68 40 115.7 95.7 143 167h22c15.3 0 23 +-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69-70-101l-7-8h399905v-40H95l7-8 +c28.7-32 52-65.7 70-101 10.7-23.3 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 265.3 + 68 321 0 361zm0-174v-40h399900v40zm100 154v40h399900v-40z`,longequal:l0("M0 50 h400000 v40H0z m0 194h40000v40H0z"),midbrace:`M200428 334 +c-100.7-8.3-195.3-44-280-108-55.3-42-101.7-93-139-153l-9-14c-2.7 4-5.7 8.7-9 14 +-53.3 86.7-123.7 153-211 199-66.7 36-137.3 56.3-212 62H0V214h199568c178.3-11.7 + 311.7-78.3 403-201 6-8 9.7-12 11-12 .7-.7 6.7-1 18-1s17.3.3 18 1c1.3 0 5 4 11 + 12 44.7 59.3 101.3 106.3 170 141s145.3 54.3 229 60h199572v120z`,midbraceunder:`M199572 214 +c100.7 8.3 195.3 44 280 108 55.3 42 101.7 93 139 153l9 14c2.7-4 5.7-8.7 9-14 + 53.3-86.7 123.7-153 211-199 66.7-36 137.3-56.3 212-62h199568v120H200432c-178.3 + 11.7-311.7 78.3-403 201-6 8-9.7 12-11 12-.7.7-6.7 1-18 1s-17.3-.3-18-1c-1.3 0 +-5-4-11-12-44.7-59.3-101.3-106.3-170-141s-145.3-54.3-229-60H0V214z`,oiintSize1:`M512.6 71.6c272.6 0 320.3 106.8 320.3 178.2 0 70.8-47.7 177.6 +-320.3 177.6S193.1 320.6 193.1 249.8c0-71.4 46.9-178.2 319.5-178.2z +m368.1 178.2c0-86.4-60.9-215.4-368.1-215.4-306.4 0-367.3 129-367.3 215.4 0 85.8 +60.9 214.8 367.3 214.8 307.2 0 368.1-129 368.1-214.8z`,oiintSize2:`M757.8 100.1c384.7 0 451.1 137.6 451.1 230 0 91.3-66.4 228.8 +-451.1 228.8-386.3 0-452.7-137.5-452.7-228.8 0-92.4 66.4-230 452.7-230z +m502.4 230c0-111.2-82.4-277.2-502.4-277.2s-504 166-504 277.2 +c0 110 84 276 504 276s502.4-166 502.4-276z`,oiiintSize1:`M681.4 71.6c408.9 0 480.5 106.8 480.5 178.2 0 70.8-71.6 177.6 +-480.5 177.6S202.1 320.6 202.1 249.8c0-71.4 70.5-178.2 479.3-178.2z +m525.8 178.2c0-86.4-86.8-215.4-525.7-215.4-437.9 0-524.7 129-524.7 215.4 0 +85.8 86.8 214.8 524.7 214.8 438.9 0 525.7-129 525.7-214.8z`,oiiintSize2:`M1021.2 53c603.6 0 707.8 165.8 707.8 277.2 0 110-104.2 275.8 +-707.8 275.8-606 0-710.2-165.8-710.2-275.8C311 218.8 415.2 53 1021.2 53z +m770.4 277.1c0-131.2-126.4-327.6-770.5-327.6S248.4 198.9 248.4 330.1 +c0 130 128.8 326.4 772.7 326.4s770.5-196.4 770.5-326.4z`,rightarrow:`M0 241v40h399891c-47.3 35.3-84 78-110 128 +-16.7 32-27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20 + 11 8 0 13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7 + 39-84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85 +-40.5-119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5 +-12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67 + 151.7 139 205zm0 0v40h399900v-40z`,rightbrace:`M400000 542l +-6 6h-17c-12.7 0-19.3-.3-20-1-4-4-7.3-8.3-10-13-35.3-51.3-80.8-93.8-136.5-127.5 +s-117.2-55.8-184.5-66.5c-.7 0-2-.3-4-1-18.7-2.7-76-4.3-172-5H0V214h399571l6 1 +c124.7 8 235 61.7 331 161 31.3 33.3 59.7 72.7 85 118l7 13v35z`,rightbraceunder:`M399994 0l6 6v35l-6 11c-56 104-135.3 181.3-238 232-57.3 + 28.7-117 45-179 50H-300V214h399897c43.3-7 81-15 113-26 100.7-33 179.7-91 237 +-174 2.7-5 6-9 10-13 .7-1 7.3-1 20-1h17z`,rightgroup:`M0 80h399565c371 0 266.7 149.4 414 180 5.9 1.2 18 0 18 0 2 0 + 3-1 3-3v-38c-76-158-257-219-435-219H0z`,rightgroupunder:`M0 262h399565c371 0 266.7-149.4 414-180 5.9-1.2 18 0 18 + 0 2 0 3 1 3 3v38c-76 158-257 219-435 219H0z`,rightharpoon:`M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3 +-3.7-15.3-11-18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2 +-10.7 0-16.7 2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58 + 69.2 92 94.5zm0 0v40h399900v-40z`,rightharpoonplus:`M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3-3.7-15.3-11 +-18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2-10.7 0-16.7 + 2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58 69.2 92 94.5z +m0 0v40h399900v-40z m100 194v40h399900v-40zm0 0v40h399900v-40z`,rightharpoondown:`M399747 511c0 7.3 6.7 11 20 11 8 0 13-.8 15-2.5s4.7-6.8 + 8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3 8.5-5.8 9.5 +-7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3-64.7 57-92 95 +-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 241v40h399900v-40z`,rightharpoondownplus:`M399747 705c0 7.3 6.7 11 20 11 8 0 13-.8 + 15-2.5s4.7-6.8 8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3 + 8.5-5.8 9.5-7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3 +-64.7 57-92 95-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 435v40h399900v-40z +m0-194v40h400000v-40zm0 0v40h400000v-40z`,righthook:`M399859 241c-764 0 0 0 0 0 40-3.3 68.7-15.7 86-37 10-12 15-25.3 + 15-40 0-22.7-9.8-40.7-29.5-54-19.7-13.3-43.5-21-71.5-23-17.3-1.3-26-8-26-20 0 +-13.3 8.7-20 26-20 38 0 71 11.2 99 33.5 0 0 7 5.6 21 16.7 14 11.2 21 33.5 21 + 66.8s-14 61.2-42 83.5c-28 22.3-61 33.5-99 33.5L0 241z M0 281v-40h399859v40z`,rightlinesegment:l0("M399960 241 V94 h40 V428 h-40 V281 H0 v-40z"),rightbracketunder:l0("M399995 0 h-120 V290 H0 v120 H400000z"),rightbracketover:l0("M399995 440 h-120 V150 H0 v-120 H399995z"),rightToFrom:`M400000 167c-70.7-42-118-97.7-142-167h-23c-15.3 0-23 .3-23 + 1 0 1.3 5.3 13.7 16 37 18 35.3 41.3 69 70 101l7 8H0v40h399905l-7 8c-28.7 32 +-52 65.7-70 101-10.7 23.3-16 35.7-16 37 0 .7 7.7 1 23 1h23c24-69.3 71.3-125 142 +-167z M100 147v40h399900v-40zM0 341v40h399900v-40z`,twoheadleftarrow:`M0 167c68 40 + 115.7 95.7 143 167h22c15.3 0 23-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69 +-70-101l-7-8h125l9 7c50.7 39.3 85 86 103 140h46c0-4.7-6.3-18.7-19-42-18-35.3 +-40-67.3-66-96l-9-9h399716v-40H284l9-9c26-28.7 48-60.7 66-96 12.7-23.333 19 +-37.333 19-42h-46c-18 54-52.3 100.7-103 140l-9 7H95l7-8c28.7-32 52-65.7 70-101 + 10.7-23.333 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 71.3 68 127 0 167z`,twoheadrightarrow:`M400000 167 +c-68-40-115.7-95.7-143-167h-22c-15.3 0-23 .3-23 1 0 1.3 5.3 13.7 16 37 18 35.3 + 41.3 69 70 101l7 8h-125l-9-7c-50.7-39.3-85-86-103-140h-46c0 4.7 6.3 18.7 19 42 + 18 35.3 40 67.3 66 96l9 9H0v40h399716l-9 9c-26 28.7-48 60.7-66 96-12.7 23.333 +-19 37.333-19 42h46c18-54 52.3-100.7 103-140l9-7h125l-7 8c-28.7 32-52 65.7-70 + 101-10.7 23.333-16 35.7-16 37 0 .7 7.7 1 23 1h22c27.3-71.3 75-127 143-167z`,tilde1:`M200 55.538c-77 0-168 73.953-177 73.953-3 0-7 +-2.175-9-5.437L2 97c-1-2-2-4-2-6 0-4 2-7 5-9l20-12C116 12 171 0 207 0c86 0 + 114 68 191 68 78 0 168-68 177-68 4 0 7 2 9 5l12 19c1 2.175 2 4.35 2 6.525 0 + 4.35-2 7.613-5 9.788l-19 13.05c-92 63.077-116.937 75.308-183 76.128 +-68.267.847-113-73.952-191-73.952z`,tilde2:`M344 55.266c-142 0-300.638 81.316-311.5 86.418 +-8.01 3.762-22.5 10.91-23.5 5.562L1 120c-1-2-1-3-1-4 0-5 3-9 8-10l18.4-9C160.9 + 31.9 283 0 358 0c148 0 188 122 331 122s314-97 326-97c4 0 8 2 10 7l7 21.114 +c1 2.14 1 3.21 1 4.28 0 5.347-3 9.626-7 10.696l-22.3 12.622C852.6 158.372 751 + 181.476 676 181.476c-149 0-189-126.21-332-126.21z`,tilde3:`M786 59C457 59 32 175.242 13 175.242c-6 0-10-3.457 +-11-10.37L.15 138c-1-7 3-12 10-13l19.2-6.4C378.4 40.7 634.3 0 804.3 0c337 0 + 411.8 157 746.8 157 328 0 754-112 773-112 5 0 10 3 11 9l1 14.075c1 8.066-.697 + 16.595-6.697 17.492l-21.052 7.31c-367.9 98.146-609.15 122.696-778.15 122.696 + -338 0-409-156.573-744-156.573z`,tilde4:`M786 58C457 58 32 177.487 13 177.487c-6 0-10-3.345 +-11-10.035L.15 143c-1-7 3-12 10-13l22-6.7C381.2 35 637.15 0 807.15 0c337 0 409 + 177 744 177 328 0 754-127 773-127 5 0 10 3 11 9l1 14.794c1 7.805-3 13.38-9 + 14.495l-20.7 5.574c-366.85 99.79-607.3 139.372-776.3 139.372-338 0-409 + -175.236-744-175.236z`,vec:`M377 20c0-5.333 1.833-10 5.5-14S391 0 397 0c4.667 0 8.667 1.667 12 5 +3.333 2.667 6.667 9 10 19 6.667 24.667 20.333 43.667 41 57 7.333 4.667 11 +10.667 11 18 0 6-1 10-3 12s-6.667 5-14 9c-28.667 14.667-53.667 35.667-75 63 +-1.333 1.333-3.167 3.5-5.5 6.5s-4 4.833-5 5.5c-1 .667-2.5 1.333-4.5 2s-4.333 1 +-7 1c-4.667 0-9.167-1.833-13.5-5.5S337 184 337 178c0-12.667 15.667-32.333 47-59 +H213l-171-1c-8.667-6-13-12.333-13-19 0-4.667 4.333-11.333 13-20h359 +c-16-25.333-24-45-24-59z`,widehat1:`M529 0h5l519 115c5 1 9 5 9 10 0 1-1 2-1 3l-4 22 +c-1 5-5 9-11 9h-2L532 67 19 159h-2c-5 0-9-4-11-9l-5-22c-1-6 2-12 8-13z`,widehat2:`M1181 0h2l1171 176c6 0 10 5 10 11l-2 23c-1 6-5 10 +-11 10h-1L1182 67 15 220h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widehat3:`M1181 0h2l1171 236c6 0 10 5 10 11l-2 23c-1 6-5 10 +-11 10h-1L1182 67 15 280h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widehat4:`M1181 0h2l1171 296c6 0 10 5 10 11l-2 23c-1 6-5 10 +-11 10h-1L1182 67 15 340h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widecheck1:`M529,159h5l519,-115c5,-1,9,-5,9,-10c0,-1,-1,-2,-1,-3l-4,-22c-1, +-5,-5,-9,-11,-9h-2l-512,92l-513,-92h-2c-5,0,-9,4,-11,9l-5,22c-1,6,2,12,8,13z`,widecheck2:`M1181,220h2l1171,-176c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10, +-11,-10h-1l-1168,153l-1167,-153h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,widecheck3:`M1181,280h2l1171,-236c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10, +-11,-10h-1l-1168,213l-1167,-213h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,widecheck4:`M1181,340h2l1171,-296c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10, +-11,-10h-1l-1168,273l-1167,-273h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,baraboveleftarrow:`M400000 620h-399890l3 -3c68.7 -52.7 113.7 -120 135 -202 +c4 -14.7 6 -23 6 -25c0 -7.3 -7 -11 -21 -11c-8 0 -13.2 0.8 -15.5 2.5 +c-2.3 1.7 -4.2 5.8 -5.5 12.5c-1.3 4.7 -2.7 10.3 -4 17c-12 48.7 -34.8 92 -68.5 130 +s-74.2 66.3 -121.5 85c-10 4 -16 7.7 -18 11c0 8.7 6 14.3 18 17c47.3 18.7 87.8 47 +121.5 85s56.5 81.3 68.5 130c0.7 2 1.3 5 2 9s1.2 6.7 1.5 8c0.3 1.3 1 3.3 2 6 +s2.2 4.5 3.5 5.5c1.3 1 3.3 1.8 6 2.5s6 1 10 1c14 0 21 -3.7 21 -11 +c0 -2 -2 -10.3 -6 -25c-20 -79.3 -65 -146.7 -135 -202l-3 -3h399890z +M100 620v40h399900v-40z M0 241v40h399900v-40zM0 241v40h399900v-40z`,rightarrowabovebar:`M0 241v40h399891c-47.3 35.3-84 78-110 128-16.7 32 +-27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20 11 8 0 +13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7 39 +-84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85-40.5 +-119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5 +-12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67 +151.7 139 205zm96 379h399894v40H0zm0 0h399904v40H0z`,baraboveshortleftharpoon:`M507,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11 +c1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17 +c2,0.7,5,1,9,1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21 +c-32,-87.3,-82.7,-157.7,-152,-211c0,0,-3,-3,-3,-3l399351,0l0,-40 +c-398570,0,-399437,0,-399437,0z M593 435 v40 H399500 v-40z +M0 281 v-40 H399908 v40z M0 281 v-40 H399908 v40z`,rightharpoonaboveshortbar:`M0,241 l0,40c399126,0,399993,0,399993,0 +c4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199, +-231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6 +c-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z +M0 241 v40 H399908 v-40z M0 475 v-40 H399500 v40z M0 475 v-40 H399500 v40z`,shortbaraboveleftharpoon:`M7,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11 +c1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17c2,0.7,5,1,9, +1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21c-32,-87.3,-82.7,-157.7, +-152,-211c0,0,-3,-3,-3,-3l399907,0l0,-40c-399126,0,-399993,0,-399993,0z +M93 435 v40 H400000 v-40z M500 241 v40 H400000 v-40z M500 241 v40 H400000 v-40z`,shortrightharpoonabovebar:`M53,241l0,40c398570,0,399437,0,399437,0 +c4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199, +-231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6 +c-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z +M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`},Mo=function(e,r){switch(e){case"lbrack":return"M403 1759 V84 H666 V0 H319 V1759 v"+r+` v1759 v84 h347 v-84 +H403z M403 1759 V0 H319 V1759 v`+r+" v1759 v84 h84z";case"rbrack":return"M347 1759 V0 H0 V84 H263 V1759 v"+r+` v1759 H0 v84 H347z +M347 1759 V0 H263 V1759 v`+r+" v1759 h84z";case"vert":return"M145 15 v585 v"+r+` v585 c2.667,10,9.667,15,21,15 +c10,0,16.667,-5,20,-15 v-585 v`+-r+` v-585 c-2.667,-10,-9.667,-15,-21,-15 +c-10,0,-16.667,5,-20,15z M188 15 H145 v585 v`+r+" v585 h43z";case"doublevert":return"M145 15 v585 v"+r+` v585 c2.667,10,9.667,15,21,15 +c10,0,16.667,-5,20,-15 v-585 v`+-r+` v-585 c-2.667,-10,-9.667,-15,-21,-15 +c-10,0,-16.667,5,-20,15z M188 15 H145 v585 v`+r+` v585 h43z +M367 15 v585 v`+r+` v585 c2.667,10,9.667,15,21,15 +c10,0,16.667,-5,20,-15 v-585 v`+-r+` v-585 c-2.667,-10,-9.667,-15,-21,-15 +c-10,0,-16.667,5,-20,15z M410 15 H367 v585 v`+r+" v585 h43z";case"lfloor":return"M319 602 V0 H403 V602 v"+r+` v1715 h263 v84 H319z +MM319 602 V0 H403 V602 v`+r+" v1715 H319z";case"rfloor":return"M319 602 V0 H403 V602 v"+r+` v1799 H0 v-84 H319z +MM319 602 V0 H403 V602 v`+r+" v1715 H319z";case"lceil":return"M403 1759 V84 H666 V0 H319 V1759 v"+r+` v602 h84z +M403 1759 V0 H319 V1759 v`+r+" v602 h84z";case"rceil":return"M347 1759 V0 H0 V84 H263 V1759 v"+r+` v602 h84z +M347 1759 V0 h-84 V1759 v`+r+" v602 h84z";case"lparen":return`M863,9c0,-2,-2,-5,-6,-9c0,0,-17,0,-17,0c-12.7,0,-19.3,0.3,-20,1 +c-5.3,5.3,-10.3,11,-15,17c-242.7,294.7,-395.3,682,-458,1162c-21.3,163.3,-33.3,349, +-36,557 l0,`+(r+84)+`c0.2,6,0,26,0,60c2,159.3,10,310.7,24,454c53.3,528,210, +949.7,470,1265c4.7,6,9.7,11.7,15,17c0.7,0.7,7,1,19,1c0,0,18,0,18,0c4,-4,6,-7,6,-9 +c0,-2.7,-3.3,-8.7,-10,-18c-135.3,-192.7,-235.5,-414.3,-300.5,-665c-65,-250.7,-102.5, +-544.7,-112.5,-882c-2,-104,-3,-167,-3,-189 +l0,-`+(r+92)+`c0,-162.7,5.7,-314,17,-454c20.7,-272,63.7,-513,129,-723c65.3, +-210,155.3,-396.3,270,-559c6.7,-9.3,10,-15.3,10,-18z`;case"rparen":return`M76,0c-16.7,0,-25,3,-25,9c0,2,2,6.3,6,13c21.3,28.7,42.3,60.3, +63,95c96.7,156.7,172.8,332.5,228.5,527.5c55.7,195,92.8,416.5,111.5,664.5 +c11.3,139.3,17,290.7,17,454c0,28,1.7,43,3.3,45l0,`+(r+9)+` +c-3,4,-3.3,16.7,-3.3,38c0,162,-5.7,313.7,-17,455c-18.7,248,-55.8,469.3,-111.5,664 +c-55.7,194.7,-131.8,370.3,-228.5,527c-20.7,34.7,-41.7,66.3,-63,95c-2,3.3,-4,7,-6,11 +c0,7.3,5.7,11,17,11c0,0,11,0,11,0c9.3,0,14.3,-0.3,15,-1c5.3,-5.3,10.3,-11,15,-17 +c242.7,-294.7,395.3,-681.7,458,-1161c21.3,-164.7,33.3,-350.7,36,-558 +l0,-`+(r+144)+`c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7, +-470,-1265c-4.7,-6,-9.7,-11.7,-15,-17c-0.7,-0.7,-6.7,-1,-18,-1z`;default:throw new Error("Unknown stretchy delimiter.")}};function Do(t){return"toText"in t}var Q0=class{constructor(e){this.children=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.children=e,this.classes=[],this.height=0,this.depth=0,this.maxFontSize=0,this.style={}}hasClass(e){return this.classes.includes(e)}toNode(){for(var e=document.createDocumentFragment(),r=0;r{if(Do(e))return e.toText();throw new Error("Expected MathDomNode with toText, got "+e.constructor.name)}).join("")}},br={pt:1,mm:7227/2540,cm:7227/254,in:72.27,bp:803/800,pc:12,dd:1238/1157,cc:14856/1157,nd:685/642,nc:1370/107,sp:1/65536,px:803/800},Co={ex:!0,em:!0,mu:!0},Fi=function(e){return typeof e!="string"&&(e=e.unit),e in br||e in Co||e==="ex"},t0=function(e,r){var a;if(e.unit in br)a=br[e.unit]/r.fontMetrics().ptPerEm/r.sizeMultiplier;else if(e.unit==="mu")a=r.fontMetrics().cssEmPerMu;else{var i;if(r.style.isTight()?i=r.havingStyle(r.style.text()):i=r,e.unit==="ex")a=i.fontMetrics().xHeight;else if(e.unit==="em")a=i.fontMetrics().quad;else throw new z("Invalid unit: '"+e.unit+"'");i!==r&&(a*=i.sizeMultiplier/r.sizeMultiplier)}return Math.min(e.number*a,r.maxSize)},C=function(e){return+e.toFixed(4)+"em"},_0=function(e){return e.filter(r=>r).join(" ")},Lr=function(e){var r="";for(var a of Object.keys(e)){var i=e[a];i!==void 0&&(r+=ro(a)+":"+i+";")}return r},Li=function(e,r,a){if(this.classes=e||[],this.attributes={},this.height=0,this.depth=0,this.maxFontSize=0,this.style=a||{},r){r.style.isTight()&&this.classes.push("mtight");var i=r.getColor();i&&(this.style.color=i)}},Hi=function(e){var r=document.createElement(e);r.className=_0(this.classes),Object.assign(r.style,this.style);for(var a of Object.keys(this.attributes))r.setAttribute(a,this.attributes[a]);for(var i=0;i/=\x00-\x1f]/,Pi=function(e){var r="<"+e;this.classes.length&&(r+=' class="'+h0(_0(this.classes))+'"');var a=Lr(this.style);a&&(r+=' style="'+h0(a)+'"');for(var i of Object.keys(this.attributes)){if(Eo.test(i))throw new z("Invalid attribute name '"+i+"'");r+=" "+i+'="'+h0(this.attributes[i])+'"'}r+=">";for(var s=0;s",r},ee=class{constructor(e,r,a,i){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.width=void 0,this.maxFontSize=void 0,this.style=void 0,this.italic=void 0,Li.call(this,e,a,i),this.children=r||[]}setAttribute(e,r){this.attributes[e]=r}hasClass(e){return this.classes.includes(e)}toNode(){return Hi.call(this,"span")}toMarkup(){return Pi.call(this,"span")}},ke=class{constructor(e,r,a,i){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,Li.call(this,r,i),this.children=a||[],this.setAttribute("href",e)}setAttribute(e,r){this.attributes[e]=r}hasClass(e){return this.classes.includes(e)}toNode(){return Hi.call(this,"a")}toMarkup(){return Pi.call(this,"a")}},yr=class{constructor(e,r,a){this.src=void 0,this.alt=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.alt=r,this.src=e,this.classes=["mord"],this.height=0,this.depth=0,this.maxFontSize=0,this.style=a}hasClass(e){return this.classes.includes(e)}toNode(){var e=document.createElement("img");return e.src=this.src,e.alt=this.alt,e.className="mord",Object.assign(e.style,this.style),e}toMarkup(){var e=''+h0(this.alt)+'0&&(r=document.createElement("span"),r.style.marginRight=C(this.italic)),this.classes.length>0&&(r=r||document.createElement("span"),r.className=_0(this.classes)),Object.keys(this.style).length>0&&(r=r||document.createElement("span"),Object.assign(r.style,this.style)),r?(r.appendChild(e),r):e}toMarkup(){var e=!1,r="0&&(a+="margin-right:"+C(this.italic)+";"),a+=Lr(this.style),a&&(e=!0,r+=' style="'+h0(a)+'"');var i=h0(this.text);return e?(r+=">",r+=i,r+="",r):i}},D0=class{constructor(e,r){this.children=void 0,this.attributes=void 0,this.children=e||[],this.attributes=r||{}}toNode(){var e="http://www.w3.org/2000/svg",r=document.createElementNS(e,"svg");for(var a of Object.keys(this.attributes))r.setAttribute(a,this.attributes[a]);for(var i=0;i':''}},He=class{constructor(e){this.attributes=void 0,this.attributes=e||{}}toNode(){var e="http://www.w3.org/2000/svg",r=document.createElementNS(e,"line");for(var a of Object.keys(this.attributes))r.setAttribute(a,this.attributes[a]);return r}toMarkup(){var e=" but got "+String(t)+".")}var Io=t=>t instanceof ee||t instanceof ke||t instanceof Q0,B0={"AMS-Regular":{32:[0,0,0,0,.25],65:[0,.68889,0,0,.72222],66:[0,.68889,0,0,.66667],67:[0,.68889,0,0,.72222],68:[0,.68889,0,0,.72222],69:[0,.68889,0,0,.66667],70:[0,.68889,0,0,.61111],71:[0,.68889,0,0,.77778],72:[0,.68889,0,0,.77778],73:[0,.68889,0,0,.38889],74:[.16667,.68889,0,0,.5],75:[0,.68889,0,0,.77778],76:[0,.68889,0,0,.66667],77:[0,.68889,0,0,.94445],78:[0,.68889,0,0,.72222],79:[.16667,.68889,0,0,.77778],80:[0,.68889,0,0,.61111],81:[.16667,.68889,0,0,.77778],82:[0,.68889,0,0,.72222],83:[0,.68889,0,0,.55556],84:[0,.68889,0,0,.66667],85:[0,.68889,0,0,.72222],86:[0,.68889,0,0,.72222],87:[0,.68889,0,0,1],88:[0,.68889,0,0,.72222],89:[0,.68889,0,0,.72222],90:[0,.68889,0,0,.66667],107:[0,.68889,0,0,.55556],160:[0,0,0,0,.25],165:[0,.675,.025,0,.75],174:[.15559,.69224,0,0,.94666],240:[0,.68889,0,0,.55556],295:[0,.68889,0,0,.54028],710:[0,.825,0,0,2.33334],732:[0,.9,0,0,2.33334],770:[0,.825,0,0,2.33334],771:[0,.9,0,0,2.33334],989:[.08167,.58167,0,0,.77778],1008:[0,.43056,.04028,0,.66667],8245:[0,.54986,0,0,.275],8463:[0,.68889,0,0,.54028],8487:[0,.68889,0,0,.72222],8498:[0,.68889,0,0,.55556],8502:[0,.68889,0,0,.66667],8503:[0,.68889,0,0,.44445],8504:[0,.68889,0,0,.66667],8513:[0,.68889,0,0,.63889],8592:[-.03598,.46402,0,0,.5],8594:[-.03598,.46402,0,0,.5],8602:[-.13313,.36687,0,0,1],8603:[-.13313,.36687,0,0,1],8606:[.01354,.52239,0,0,1],8608:[.01354,.52239,0,0,1],8610:[.01354,.52239,0,0,1.11111],8611:[.01354,.52239,0,0,1.11111],8619:[0,.54986,0,0,1],8620:[0,.54986,0,0,1],8621:[-.13313,.37788,0,0,1.38889],8622:[-.13313,.36687,0,0,1],8624:[0,.69224,0,0,.5],8625:[0,.69224,0,0,.5],8630:[0,.43056,0,0,1],8631:[0,.43056,0,0,1],8634:[.08198,.58198,0,0,.77778],8635:[.08198,.58198,0,0,.77778],8638:[.19444,.69224,0,0,.41667],8639:[.19444,.69224,0,0,.41667],8642:[.19444,.69224,0,0,.41667],8643:[.19444,.69224,0,0,.41667],8644:[.1808,.675,0,0,1],8646:[.1808,.675,0,0,1],8647:[.1808,.675,0,0,1],8648:[.19444,.69224,0,0,.83334],8649:[.1808,.675,0,0,1],8650:[.19444,.69224,0,0,.83334],8651:[.01354,.52239,0,0,1],8652:[.01354,.52239,0,0,1],8653:[-.13313,.36687,0,0,1],8654:[-.13313,.36687,0,0,1],8655:[-.13313,.36687,0,0,1],8666:[.13667,.63667,0,0,1],8667:[.13667,.63667,0,0,1],8669:[-.13313,.37788,0,0,1],8672:[-.064,.437,0,0,1.334],8674:[-.064,.437,0,0,1.334],8705:[0,.825,0,0,.5],8708:[0,.68889,0,0,.55556],8709:[.08167,.58167,0,0,.77778],8717:[0,.43056,0,0,.42917],8722:[-.03598,.46402,0,0,.5],8724:[.08198,.69224,0,0,.77778],8726:[.08167,.58167,0,0,.77778],8733:[0,.69224,0,0,.77778],8736:[0,.69224,0,0,.72222],8737:[0,.69224,0,0,.72222],8738:[.03517,.52239,0,0,.72222],8739:[.08167,.58167,0,0,.22222],8740:[.25142,.74111,0,0,.27778],8741:[.08167,.58167,0,0,.38889],8742:[.25142,.74111,0,0,.5],8756:[0,.69224,0,0,.66667],8757:[0,.69224,0,0,.66667],8764:[-.13313,.36687,0,0,.77778],8765:[-.13313,.37788,0,0,.77778],8769:[-.13313,.36687,0,0,.77778],8770:[-.03625,.46375,0,0,.77778],8774:[.30274,.79383,0,0,.77778],8776:[-.01688,.48312,0,0,.77778],8778:[.08167,.58167,0,0,.77778],8782:[.06062,.54986,0,0,.77778],8783:[.06062,.54986,0,0,.77778],8785:[.08198,.58198,0,0,.77778],8786:[.08198,.58198,0,0,.77778],8787:[.08198,.58198,0,0,.77778],8790:[0,.69224,0,0,.77778],8791:[.22958,.72958,0,0,.77778],8796:[.08198,.91667,0,0,.77778],8806:[.25583,.75583,0,0,.77778],8807:[.25583,.75583,0,0,.77778],8808:[.25142,.75726,0,0,.77778],8809:[.25142,.75726,0,0,.77778],8812:[.25583,.75583,0,0,.5],8814:[.20576,.70576,0,0,.77778],8815:[.20576,.70576,0,0,.77778],8816:[.30274,.79383,0,0,.77778],8817:[.30274,.79383,0,0,.77778],8818:[.22958,.72958,0,0,.77778],8819:[.22958,.72958,0,0,.77778],8822:[.1808,.675,0,0,.77778],8823:[.1808,.675,0,0,.77778],8828:[.13667,.63667,0,0,.77778],8829:[.13667,.63667,0,0,.77778],8830:[.22958,.72958,0,0,.77778],8831:[.22958,.72958,0,0,.77778],8832:[.20576,.70576,0,0,.77778],8833:[.20576,.70576,0,0,.77778],8840:[.30274,.79383,0,0,.77778],8841:[.30274,.79383,0,0,.77778],8842:[.13597,.63597,0,0,.77778],8843:[.13597,.63597,0,0,.77778],8847:[.03517,.54986,0,0,.77778],8848:[.03517,.54986,0,0,.77778],8858:[.08198,.58198,0,0,.77778],8859:[.08198,.58198,0,0,.77778],8861:[.08198,.58198,0,0,.77778],8862:[0,.675,0,0,.77778],8863:[0,.675,0,0,.77778],8864:[0,.675,0,0,.77778],8865:[0,.675,0,0,.77778],8872:[0,.69224,0,0,.61111],8873:[0,.69224,0,0,.72222],8874:[0,.69224,0,0,.88889],8876:[0,.68889,0,0,.61111],8877:[0,.68889,0,0,.61111],8878:[0,.68889,0,0,.72222],8879:[0,.68889,0,0,.72222],8882:[.03517,.54986,0,0,.77778],8883:[.03517,.54986,0,0,.77778],8884:[.13667,.63667,0,0,.77778],8885:[.13667,.63667,0,0,.77778],8888:[0,.54986,0,0,1.11111],8890:[.19444,.43056,0,0,.55556],8891:[.19444,.69224,0,0,.61111],8892:[.19444,.69224,0,0,.61111],8901:[0,.54986,0,0,.27778],8903:[.08167,.58167,0,0,.77778],8905:[.08167,.58167,0,0,.77778],8906:[.08167,.58167,0,0,.77778],8907:[0,.69224,0,0,.77778],8908:[0,.69224,0,0,.77778],8909:[-.03598,.46402,0,0,.77778],8910:[0,.54986,0,0,.76042],8911:[0,.54986,0,0,.76042],8912:[.03517,.54986,0,0,.77778],8913:[.03517,.54986,0,0,.77778],8914:[0,.54986,0,0,.66667],8915:[0,.54986,0,0,.66667],8916:[0,.69224,0,0,.66667],8918:[.0391,.5391,0,0,.77778],8919:[.0391,.5391,0,0,.77778],8920:[.03517,.54986,0,0,1.33334],8921:[.03517,.54986,0,0,1.33334],8922:[.38569,.88569,0,0,.77778],8923:[.38569,.88569,0,0,.77778],8926:[.13667,.63667,0,0,.77778],8927:[.13667,.63667,0,0,.77778],8928:[.30274,.79383,0,0,.77778],8929:[.30274,.79383,0,0,.77778],8934:[.23222,.74111,0,0,.77778],8935:[.23222,.74111,0,0,.77778],8936:[.23222,.74111,0,0,.77778],8937:[.23222,.74111,0,0,.77778],8938:[.20576,.70576,0,0,.77778],8939:[.20576,.70576,0,0,.77778],8940:[.30274,.79383,0,0,.77778],8941:[.30274,.79383,0,0,.77778],8994:[.19444,.69224,0,0,.77778],8995:[.19444,.69224,0,0,.77778],9416:[.15559,.69224,0,0,.90222],9484:[0,.69224,0,0,.5],9488:[0,.69224,0,0,.5],9492:[0,.37788,0,0,.5],9496:[0,.37788,0,0,.5],9585:[.19444,.68889,0,0,.88889],9586:[.19444,.74111,0,0,.88889],9632:[0,.675,0,0,.77778],9633:[0,.675,0,0,.77778],9650:[0,.54986,0,0,.72222],9651:[0,.54986,0,0,.72222],9654:[.03517,.54986,0,0,.77778],9660:[0,.54986,0,0,.72222],9661:[0,.54986,0,0,.72222],9664:[.03517,.54986,0,0,.77778],9674:[.11111,.69224,0,0,.66667],9733:[.19444,.69224,0,0,.94445],10003:[0,.69224,0,0,.83334],10016:[0,.69224,0,0,.83334],10731:[.11111,.69224,0,0,.66667],10846:[.19444,.75583,0,0,.61111],10877:[.13667,.63667,0,0,.77778],10878:[.13667,.63667,0,0,.77778],10885:[.25583,.75583,0,0,.77778],10886:[.25583,.75583,0,0,.77778],10887:[.13597,.63597,0,0,.77778],10888:[.13597,.63597,0,0,.77778],10889:[.26167,.75726,0,0,.77778],10890:[.26167,.75726,0,0,.77778],10891:[.48256,.98256,0,0,.77778],10892:[.48256,.98256,0,0,.77778],10901:[.13667,.63667,0,0,.77778],10902:[.13667,.63667,0,0,.77778],10933:[.25142,.75726,0,0,.77778],10934:[.25142,.75726,0,0,.77778],10935:[.26167,.75726,0,0,.77778],10936:[.26167,.75726,0,0,.77778],10937:[.26167,.75726,0,0,.77778],10938:[.26167,.75726,0,0,.77778],10949:[.25583,.75583,0,0,.77778],10950:[.25583,.75583,0,0,.77778],10955:[.28481,.79383,0,0,.77778],10956:[.28481,.79383,0,0,.77778],57350:[.08167,.58167,0,0,.22222],57351:[.08167,.58167,0,0,.38889],57352:[.08167,.58167,0,0,.77778],57353:[0,.43056,.04028,0,.66667],57356:[.25142,.75726,0,0,.77778],57357:[.25142,.75726,0,0,.77778],57358:[.41951,.91951,0,0,.77778],57359:[.30274,.79383,0,0,.77778],57360:[.30274,.79383,0,0,.77778],57361:[.41951,.91951,0,0,.77778],57366:[.25142,.75726,0,0,.77778],57367:[.25142,.75726,0,0,.77778],57368:[.25142,.75726,0,0,.77778],57369:[.25142,.75726,0,0,.77778],57370:[.13597,.63597,0,0,.77778],57371:[.13597,.63597,0,0,.77778]},"Caligraphic-Regular":{32:[0,0,0,0,.25],65:[0,.68333,0,.19445,.79847],66:[0,.68333,.03041,.13889,.65681],67:[0,.68333,.05834,.13889,.52653],68:[0,.68333,.02778,.08334,.77139],69:[0,.68333,.08944,.11111,.52778],70:[0,.68333,.09931,.11111,.71875],71:[.09722,.68333,.0593,.11111,.59487],72:[0,.68333,.00965,.11111,.84452],73:[0,.68333,.07382,0,.54452],74:[.09722,.68333,.18472,.16667,.67778],75:[0,.68333,.01445,.05556,.76195],76:[0,.68333,0,.13889,.68972],77:[0,.68333,0,.13889,1.2009],78:[0,.68333,.14736,.08334,.82049],79:[0,.68333,.02778,.11111,.79611],80:[0,.68333,.08222,.08334,.69556],81:[.09722,.68333,0,.11111,.81667],82:[0,.68333,0,.08334,.8475],83:[0,.68333,.075,.13889,.60556],84:[0,.68333,.25417,0,.54464],85:[0,.68333,.09931,.08334,.62583],86:[0,.68333,.08222,0,.61278],87:[0,.68333,.08222,.08334,.98778],88:[0,.68333,.14643,.13889,.7133],89:[.09722,.68333,.08222,.08334,.66834],90:[0,.68333,.07944,.13889,.72473],160:[0,0,0,0,.25]},"Fraktur-Regular":{32:[0,0,0,0,.25],33:[0,.69141,0,0,.29574],34:[0,.69141,0,0,.21471],38:[0,.69141,0,0,.73786],39:[0,.69141,0,0,.21201],40:[.24982,.74947,0,0,.38865],41:[.24982,.74947,0,0,.38865],42:[0,.62119,0,0,.27764],43:[.08319,.58283,0,0,.75623],44:[0,.10803,0,0,.27764],45:[.08319,.58283,0,0,.75623],46:[0,.10803,0,0,.27764],47:[.24982,.74947,0,0,.50181],48:[0,.47534,0,0,.50181],49:[0,.47534,0,0,.50181],50:[0,.47534,0,0,.50181],51:[.18906,.47534,0,0,.50181],52:[.18906,.47534,0,0,.50181],53:[.18906,.47534,0,0,.50181],54:[0,.69141,0,0,.50181],55:[.18906,.47534,0,0,.50181],56:[0,.69141,0,0,.50181],57:[.18906,.47534,0,0,.50181],58:[0,.47534,0,0,.21606],59:[.12604,.47534,0,0,.21606],61:[-.13099,.36866,0,0,.75623],63:[0,.69141,0,0,.36245],65:[0,.69141,0,0,.7176],66:[0,.69141,0,0,.88397],67:[0,.69141,0,0,.61254],68:[0,.69141,0,0,.83158],69:[0,.69141,0,0,.66278],70:[.12604,.69141,0,0,.61119],71:[0,.69141,0,0,.78539],72:[.06302,.69141,0,0,.7203],73:[0,.69141,0,0,.55448],74:[.12604,.69141,0,0,.55231],75:[0,.69141,0,0,.66845],76:[0,.69141,0,0,.66602],77:[0,.69141,0,0,1.04953],78:[0,.69141,0,0,.83212],79:[0,.69141,0,0,.82699],80:[.18906,.69141,0,0,.82753],81:[.03781,.69141,0,0,.82699],82:[0,.69141,0,0,.82807],83:[0,.69141,0,0,.82861],84:[0,.69141,0,0,.66899],85:[0,.69141,0,0,.64576],86:[0,.69141,0,0,.83131],87:[0,.69141,0,0,1.04602],88:[0,.69141,0,0,.71922],89:[.18906,.69141,0,0,.83293],90:[.12604,.69141,0,0,.60201],91:[.24982,.74947,0,0,.27764],93:[.24982,.74947,0,0,.27764],94:[0,.69141,0,0,.49965],97:[0,.47534,0,0,.50046],98:[0,.69141,0,0,.51315],99:[0,.47534,0,0,.38946],100:[0,.62119,0,0,.49857],101:[0,.47534,0,0,.40053],102:[.18906,.69141,0,0,.32626],103:[.18906,.47534,0,0,.5037],104:[.18906,.69141,0,0,.52126],105:[0,.69141,0,0,.27899],106:[0,.69141,0,0,.28088],107:[0,.69141,0,0,.38946],108:[0,.69141,0,0,.27953],109:[0,.47534,0,0,.76676],110:[0,.47534,0,0,.52666],111:[0,.47534,0,0,.48885],112:[.18906,.52396,0,0,.50046],113:[.18906,.47534,0,0,.48912],114:[0,.47534,0,0,.38919],115:[0,.47534,0,0,.44266],116:[0,.62119,0,0,.33301],117:[0,.47534,0,0,.5172],118:[0,.52396,0,0,.5118],119:[0,.52396,0,0,.77351],120:[.18906,.47534,0,0,.38865],121:[.18906,.47534,0,0,.49884],122:[.18906,.47534,0,0,.39054],160:[0,0,0,0,.25],8216:[0,.69141,0,0,.21471],8217:[0,.69141,0,0,.21471],58112:[0,.62119,0,0,.49749],58113:[0,.62119,0,0,.4983],58114:[.18906,.69141,0,0,.33328],58115:[.18906,.69141,0,0,.32923],58116:[.18906,.47534,0,0,.50343],58117:[0,.69141,0,0,.33301],58118:[0,.62119,0,0,.33409],58119:[0,.47534,0,0,.50073]},"Main-Bold":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.35],34:[0,.69444,0,0,.60278],35:[.19444,.69444,0,0,.95833],36:[.05556,.75,0,0,.575],37:[.05556,.75,0,0,.95833],38:[0,.69444,0,0,.89444],39:[0,.69444,0,0,.31944],40:[.25,.75,0,0,.44722],41:[.25,.75,0,0,.44722],42:[0,.75,0,0,.575],43:[.13333,.63333,0,0,.89444],44:[.19444,.15556,0,0,.31944],45:[0,.44444,0,0,.38333],46:[0,.15556,0,0,.31944],47:[.25,.75,0,0,.575],48:[0,.64444,0,0,.575],49:[0,.64444,0,0,.575],50:[0,.64444,0,0,.575],51:[0,.64444,0,0,.575],52:[0,.64444,0,0,.575],53:[0,.64444,0,0,.575],54:[0,.64444,0,0,.575],55:[0,.64444,0,0,.575],56:[0,.64444,0,0,.575],57:[0,.64444,0,0,.575],58:[0,.44444,0,0,.31944],59:[.19444,.44444,0,0,.31944],60:[.08556,.58556,0,0,.89444],61:[-.10889,.39111,0,0,.89444],62:[.08556,.58556,0,0,.89444],63:[0,.69444,0,0,.54305],64:[0,.69444,0,0,.89444],65:[0,.68611,0,0,.86944],66:[0,.68611,0,0,.81805],67:[0,.68611,0,0,.83055],68:[0,.68611,0,0,.88194],69:[0,.68611,0,0,.75555],70:[0,.68611,0,0,.72361],71:[0,.68611,0,0,.90416],72:[0,.68611,0,0,.9],73:[0,.68611,0,0,.43611],74:[0,.68611,0,0,.59444],75:[0,.68611,0,0,.90138],76:[0,.68611,0,0,.69166],77:[0,.68611,0,0,1.09166],78:[0,.68611,0,0,.9],79:[0,.68611,0,0,.86388],80:[0,.68611,0,0,.78611],81:[.19444,.68611,0,0,.86388],82:[0,.68611,0,0,.8625],83:[0,.68611,0,0,.63889],84:[0,.68611,0,0,.8],85:[0,.68611,0,0,.88472],86:[0,.68611,.01597,0,.86944],87:[0,.68611,.01597,0,1.18888],88:[0,.68611,0,0,.86944],89:[0,.68611,.02875,0,.86944],90:[0,.68611,0,0,.70277],91:[.25,.75,0,0,.31944],92:[.25,.75,0,0,.575],93:[.25,.75,0,0,.31944],94:[0,.69444,0,0,.575],95:[.31,.13444,.03194,0,.575],97:[0,.44444,0,0,.55902],98:[0,.69444,0,0,.63889],99:[0,.44444,0,0,.51111],100:[0,.69444,0,0,.63889],101:[0,.44444,0,0,.52708],102:[0,.69444,.10903,0,.35139],103:[.19444,.44444,.01597,0,.575],104:[0,.69444,0,0,.63889],105:[0,.69444,0,0,.31944],106:[.19444,.69444,0,0,.35139],107:[0,.69444,0,0,.60694],108:[0,.69444,0,0,.31944],109:[0,.44444,0,0,.95833],110:[0,.44444,0,0,.63889],111:[0,.44444,0,0,.575],112:[.19444,.44444,0,0,.63889],113:[.19444,.44444,0,0,.60694],114:[0,.44444,0,0,.47361],115:[0,.44444,0,0,.45361],116:[0,.63492,0,0,.44722],117:[0,.44444,0,0,.63889],118:[0,.44444,.01597,0,.60694],119:[0,.44444,.01597,0,.83055],120:[0,.44444,0,0,.60694],121:[.19444,.44444,.01597,0,.60694],122:[0,.44444,0,0,.51111],123:[.25,.75,0,0,.575],124:[.25,.75,0,0,.31944],125:[.25,.75,0,0,.575],126:[.35,.34444,0,0,.575],160:[0,0,0,0,.25],163:[0,.69444,0,0,.86853],168:[0,.69444,0,0,.575],172:[0,.44444,0,0,.76666],176:[0,.69444,0,0,.86944],177:[.13333,.63333,0,0,.89444],184:[.17014,0,0,0,.51111],198:[0,.68611,0,0,1.04166],215:[.13333,.63333,0,0,.89444],216:[.04861,.73472,0,0,.89444],223:[0,.69444,0,0,.59722],230:[0,.44444,0,0,.83055],247:[.13333,.63333,0,0,.89444],248:[.09722,.54167,0,0,.575],305:[0,.44444,0,0,.31944],338:[0,.68611,0,0,1.16944],339:[0,.44444,0,0,.89444],567:[.19444,.44444,0,0,.35139],710:[0,.69444,0,0,.575],711:[0,.63194,0,0,.575],713:[0,.59611,0,0,.575],714:[0,.69444,0,0,.575],715:[0,.69444,0,0,.575],728:[0,.69444,0,0,.575],729:[0,.69444,0,0,.31944],730:[0,.69444,0,0,.86944],732:[0,.69444,0,0,.575],733:[0,.69444,0,0,.575],915:[0,.68611,0,0,.69166],916:[0,.68611,0,0,.95833],920:[0,.68611,0,0,.89444],923:[0,.68611,0,0,.80555],926:[0,.68611,0,0,.76666],928:[0,.68611,0,0,.9],931:[0,.68611,0,0,.83055],933:[0,.68611,0,0,.89444],934:[0,.68611,0,0,.83055],936:[0,.68611,0,0,.89444],937:[0,.68611,0,0,.83055],8211:[0,.44444,.03194,0,.575],8212:[0,.44444,.03194,0,1.14999],8216:[0,.69444,0,0,.31944],8217:[0,.69444,0,0,.31944],8220:[0,.69444,0,0,.60278],8221:[0,.69444,0,0,.60278],8224:[.19444,.69444,0,0,.51111],8225:[.19444,.69444,0,0,.51111],8242:[0,.55556,0,0,.34444],8407:[0,.72444,.15486,0,.575],8463:[0,.69444,0,0,.66759],8465:[0,.69444,0,0,.83055],8467:[0,.69444,0,0,.47361],8472:[.19444,.44444,0,0,.74027],8476:[0,.69444,0,0,.83055],8501:[0,.69444,0,0,.70277],8592:[-.10889,.39111,0,0,1.14999],8593:[.19444,.69444,0,0,.575],8594:[-.10889,.39111,0,0,1.14999],8595:[.19444,.69444,0,0,.575],8596:[-.10889,.39111,0,0,1.14999],8597:[.25,.75,0,0,.575],8598:[.19444,.69444,0,0,1.14999],8599:[.19444,.69444,0,0,1.14999],8600:[.19444,.69444,0,0,1.14999],8601:[.19444,.69444,0,0,1.14999],8636:[-.10889,.39111,0,0,1.14999],8637:[-.10889,.39111,0,0,1.14999],8640:[-.10889,.39111,0,0,1.14999],8641:[-.10889,.39111,0,0,1.14999],8656:[-.10889,.39111,0,0,1.14999],8657:[.19444,.69444,0,0,.70277],8658:[-.10889,.39111,0,0,1.14999],8659:[.19444,.69444,0,0,.70277],8660:[-.10889,.39111,0,0,1.14999],8661:[.25,.75,0,0,.70277],8704:[0,.69444,0,0,.63889],8706:[0,.69444,.06389,0,.62847],8707:[0,.69444,0,0,.63889],8709:[.05556,.75,0,0,.575],8711:[0,.68611,0,0,.95833],8712:[.08556,.58556,0,0,.76666],8715:[.08556,.58556,0,0,.76666],8722:[.13333,.63333,0,0,.89444],8723:[.13333,.63333,0,0,.89444],8725:[.25,.75,0,0,.575],8726:[.25,.75,0,0,.575],8727:[-.02778,.47222,0,0,.575],8728:[-.02639,.47361,0,0,.575],8729:[-.02639,.47361,0,0,.575],8730:[.18,.82,0,0,.95833],8733:[0,.44444,0,0,.89444],8734:[0,.44444,0,0,1.14999],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.31944],8741:[.25,.75,0,0,.575],8743:[0,.55556,0,0,.76666],8744:[0,.55556,0,0,.76666],8745:[0,.55556,0,0,.76666],8746:[0,.55556,0,0,.76666],8747:[.19444,.69444,.12778,0,.56875],8764:[-.10889,.39111,0,0,.89444],8768:[.19444,.69444,0,0,.31944],8771:[.00222,.50222,0,0,.89444],8773:[.027,.638,0,0,.894],8776:[.02444,.52444,0,0,.89444],8781:[.00222,.50222,0,0,.89444],8801:[.00222,.50222,0,0,.89444],8804:[.19667,.69667,0,0,.89444],8805:[.19667,.69667,0,0,.89444],8810:[.08556,.58556,0,0,1.14999],8811:[.08556,.58556,0,0,1.14999],8826:[.08556,.58556,0,0,.89444],8827:[.08556,.58556,0,0,.89444],8834:[.08556,.58556,0,0,.89444],8835:[.08556,.58556,0,0,.89444],8838:[.19667,.69667,0,0,.89444],8839:[.19667,.69667,0,0,.89444],8846:[0,.55556,0,0,.76666],8849:[.19667,.69667,0,0,.89444],8850:[.19667,.69667,0,0,.89444],8851:[0,.55556,0,0,.76666],8852:[0,.55556,0,0,.76666],8853:[.13333,.63333,0,0,.89444],8854:[.13333,.63333,0,0,.89444],8855:[.13333,.63333,0,0,.89444],8856:[.13333,.63333,0,0,.89444],8857:[.13333,.63333,0,0,.89444],8866:[0,.69444,0,0,.70277],8867:[0,.69444,0,0,.70277],8868:[0,.69444,0,0,.89444],8869:[0,.69444,0,0,.89444],8900:[-.02639,.47361,0,0,.575],8901:[-.02639,.47361,0,0,.31944],8902:[-.02778,.47222,0,0,.575],8968:[.25,.75,0,0,.51111],8969:[.25,.75,0,0,.51111],8970:[.25,.75,0,0,.51111],8971:[.25,.75,0,0,.51111],8994:[-.13889,.36111,0,0,1.14999],8995:[-.13889,.36111,0,0,1.14999],9651:[.19444,.69444,0,0,1.02222],9657:[-.02778,.47222,0,0,.575],9661:[.19444,.69444,0,0,1.02222],9667:[-.02778,.47222,0,0,.575],9711:[.19444,.69444,0,0,1.14999],9824:[.12963,.69444,0,0,.89444],9825:[.12963,.69444,0,0,.89444],9826:[.12963,.69444,0,0,.89444],9827:[.12963,.69444,0,0,.89444],9837:[0,.75,0,0,.44722],9838:[.19444,.69444,0,0,.44722],9839:[.19444,.69444,0,0,.44722],10216:[.25,.75,0,0,.44722],10217:[.25,.75,0,0,.44722],10815:[0,.68611,0,0,.9],10927:[.19667,.69667,0,0,.89444],10928:[.19667,.69667,0,0,.89444],57376:[.19444,.69444,0,0,0]},"Main-BoldItalic":{32:[0,0,0,0,.25],33:[0,.69444,.11417,0,.38611],34:[0,.69444,.07939,0,.62055],35:[.19444,.69444,.06833,0,.94444],37:[.05556,.75,.12861,0,.94444],38:[0,.69444,.08528,0,.88555],39:[0,.69444,.12945,0,.35555],40:[.25,.75,.15806,0,.47333],41:[.25,.75,.03306,0,.47333],42:[0,.75,.14333,0,.59111],43:[.10333,.60333,.03306,0,.88555],44:[.19444,.14722,0,0,.35555],45:[0,.44444,.02611,0,.41444],46:[0,.14722,0,0,.35555],47:[.25,.75,.15806,0,.59111],48:[0,.64444,.13167,0,.59111],49:[0,.64444,.13167,0,.59111],50:[0,.64444,.13167,0,.59111],51:[0,.64444,.13167,0,.59111],52:[.19444,.64444,.13167,0,.59111],53:[0,.64444,.13167,0,.59111],54:[0,.64444,.13167,0,.59111],55:[.19444,.64444,.13167,0,.59111],56:[0,.64444,.13167,0,.59111],57:[0,.64444,.13167,0,.59111],58:[0,.44444,.06695,0,.35555],59:[.19444,.44444,.06695,0,.35555],61:[-.10889,.39111,.06833,0,.88555],63:[0,.69444,.11472,0,.59111],64:[0,.69444,.09208,0,.88555],65:[0,.68611,0,0,.86555],66:[0,.68611,.0992,0,.81666],67:[0,.68611,.14208,0,.82666],68:[0,.68611,.09062,0,.87555],69:[0,.68611,.11431,0,.75666],70:[0,.68611,.12903,0,.72722],71:[0,.68611,.07347,0,.89527],72:[0,.68611,.17208,0,.8961],73:[0,.68611,.15681,0,.47166],74:[0,.68611,.145,0,.61055],75:[0,.68611,.14208,0,.89499],76:[0,.68611,0,0,.69777],77:[0,.68611,.17208,0,1.07277],78:[0,.68611,.17208,0,.8961],79:[0,.68611,.09062,0,.85499],80:[0,.68611,.0992,0,.78721],81:[.19444,.68611,.09062,0,.85499],82:[0,.68611,.02559,0,.85944],83:[0,.68611,.11264,0,.64999],84:[0,.68611,.12903,0,.7961],85:[0,.68611,.17208,0,.88083],86:[0,.68611,.18625,0,.86555],87:[0,.68611,.18625,0,1.15999],88:[0,.68611,.15681,0,.86555],89:[0,.68611,.19803,0,.86555],90:[0,.68611,.14208,0,.70888],91:[.25,.75,.1875,0,.35611],93:[.25,.75,.09972,0,.35611],94:[0,.69444,.06709,0,.59111],95:[.31,.13444,.09811,0,.59111],97:[0,.44444,.09426,0,.59111],98:[0,.69444,.07861,0,.53222],99:[0,.44444,.05222,0,.53222],100:[0,.69444,.10861,0,.59111],101:[0,.44444,.085,0,.53222],102:[.19444,.69444,.21778,0,.4],103:[.19444,.44444,.105,0,.53222],104:[0,.69444,.09426,0,.59111],105:[0,.69326,.11387,0,.35555],106:[.19444,.69326,.1672,0,.35555],107:[0,.69444,.11111,0,.53222],108:[0,.69444,.10861,0,.29666],109:[0,.44444,.09426,0,.94444],110:[0,.44444,.09426,0,.64999],111:[0,.44444,.07861,0,.59111],112:[.19444,.44444,.07861,0,.59111],113:[.19444,.44444,.105,0,.53222],114:[0,.44444,.11111,0,.50167],115:[0,.44444,.08167,0,.48694],116:[0,.63492,.09639,0,.385],117:[0,.44444,.09426,0,.62055],118:[0,.44444,.11111,0,.53222],119:[0,.44444,.11111,0,.76777],120:[0,.44444,.12583,0,.56055],121:[.19444,.44444,.105,0,.56166],122:[0,.44444,.13889,0,.49055],126:[.35,.34444,.11472,0,.59111],160:[0,0,0,0,.25],168:[0,.69444,.11473,0,.59111],176:[0,.69444,0,0,.94888],184:[.17014,0,0,0,.53222],198:[0,.68611,.11431,0,1.02277],216:[.04861,.73472,.09062,0,.88555],223:[.19444,.69444,.09736,0,.665],230:[0,.44444,.085,0,.82666],248:[.09722,.54167,.09458,0,.59111],305:[0,.44444,.09426,0,.35555],338:[0,.68611,.11431,0,1.14054],339:[0,.44444,.085,0,.82666],567:[.19444,.44444,.04611,0,.385],710:[0,.69444,.06709,0,.59111],711:[0,.63194,.08271,0,.59111],713:[0,.59444,.10444,0,.59111],714:[0,.69444,.08528,0,.59111],715:[0,.69444,0,0,.59111],728:[0,.69444,.10333,0,.59111],729:[0,.69444,.12945,0,.35555],730:[0,.69444,0,0,.94888],732:[0,.69444,.11472,0,.59111],733:[0,.69444,.11472,0,.59111],915:[0,.68611,.12903,0,.69777],916:[0,.68611,0,0,.94444],920:[0,.68611,.09062,0,.88555],923:[0,.68611,0,0,.80666],926:[0,.68611,.15092,0,.76777],928:[0,.68611,.17208,0,.8961],931:[0,.68611,.11431,0,.82666],933:[0,.68611,.10778,0,.88555],934:[0,.68611,.05632,0,.82666],936:[0,.68611,.10778,0,.88555],937:[0,.68611,.0992,0,.82666],8211:[0,.44444,.09811,0,.59111],8212:[0,.44444,.09811,0,1.18221],8216:[0,.69444,.12945,0,.35555],8217:[0,.69444,.12945,0,.35555],8220:[0,.69444,.16772,0,.62055],8221:[0,.69444,.07939,0,.62055]},"Main-Italic":{32:[0,0,0,0,.25],33:[0,.69444,.12417,0,.30667],34:[0,.69444,.06961,0,.51444],35:[.19444,.69444,.06616,0,.81777],37:[.05556,.75,.13639,0,.81777],38:[0,.69444,.09694,0,.76666],39:[0,.69444,.12417,0,.30667],40:[.25,.75,.16194,0,.40889],41:[.25,.75,.03694,0,.40889],42:[0,.75,.14917,0,.51111],43:[.05667,.56167,.03694,0,.76666],44:[.19444,.10556,0,0,.30667],45:[0,.43056,.02826,0,.35778],46:[0,.10556,0,0,.30667],47:[.25,.75,.16194,0,.51111],48:[0,.64444,.13556,0,.51111],49:[0,.64444,.13556,0,.51111],50:[0,.64444,.13556,0,.51111],51:[0,.64444,.13556,0,.51111],52:[.19444,.64444,.13556,0,.51111],53:[0,.64444,.13556,0,.51111],54:[0,.64444,.13556,0,.51111],55:[.19444,.64444,.13556,0,.51111],56:[0,.64444,.13556,0,.51111],57:[0,.64444,.13556,0,.51111],58:[0,.43056,.0582,0,.30667],59:[.19444,.43056,.0582,0,.30667],61:[-.13313,.36687,.06616,0,.76666],63:[0,.69444,.1225,0,.51111],64:[0,.69444,.09597,0,.76666],65:[0,.68333,0,0,.74333],66:[0,.68333,.10257,0,.70389],67:[0,.68333,.14528,0,.71555],68:[0,.68333,.09403,0,.755],69:[0,.68333,.12028,0,.67833],70:[0,.68333,.13305,0,.65277],71:[0,.68333,.08722,0,.77361],72:[0,.68333,.16389,0,.74333],73:[0,.68333,.15806,0,.38555],74:[0,.68333,.14028,0,.525],75:[0,.68333,.14528,0,.76888],76:[0,.68333,0,0,.62722],77:[0,.68333,.16389,0,.89666],78:[0,.68333,.16389,0,.74333],79:[0,.68333,.09403,0,.76666],80:[0,.68333,.10257,0,.67833],81:[.19444,.68333,.09403,0,.76666],82:[0,.68333,.03868,0,.72944],83:[0,.68333,.11972,0,.56222],84:[0,.68333,.13305,0,.71555],85:[0,.68333,.16389,0,.74333],86:[0,.68333,.18361,0,.74333],87:[0,.68333,.18361,0,.99888],88:[0,.68333,.15806,0,.74333],89:[0,.68333,.19383,0,.74333],90:[0,.68333,.14528,0,.61333],91:[.25,.75,.1875,0,.30667],93:[.25,.75,.10528,0,.30667],94:[0,.69444,.06646,0,.51111],95:[.31,.12056,.09208,0,.51111],97:[0,.43056,.07671,0,.51111],98:[0,.69444,.06312,0,.46],99:[0,.43056,.05653,0,.46],100:[0,.69444,.10333,0,.51111],101:[0,.43056,.07514,0,.46],102:[.19444,.69444,.21194,0,.30667],103:[.19444,.43056,.08847,0,.46],104:[0,.69444,.07671,0,.51111],105:[0,.65536,.1019,0,.30667],106:[.19444,.65536,.14467,0,.30667],107:[0,.69444,.10764,0,.46],108:[0,.69444,.10333,0,.25555],109:[0,.43056,.07671,0,.81777],110:[0,.43056,.07671,0,.56222],111:[0,.43056,.06312,0,.51111],112:[.19444,.43056,.06312,0,.51111],113:[.19444,.43056,.08847,0,.46],114:[0,.43056,.10764,0,.42166],115:[0,.43056,.08208,0,.40889],116:[0,.61508,.09486,0,.33222],117:[0,.43056,.07671,0,.53666],118:[0,.43056,.10764,0,.46],119:[0,.43056,.10764,0,.66444],120:[0,.43056,.12042,0,.46389],121:[.19444,.43056,.08847,0,.48555],122:[0,.43056,.12292,0,.40889],126:[.35,.31786,.11585,0,.51111],160:[0,0,0,0,.25],168:[0,.66786,.10474,0,.51111],176:[0,.69444,0,0,.83129],184:[.17014,0,0,0,.46],198:[0,.68333,.12028,0,.88277],216:[.04861,.73194,.09403,0,.76666],223:[.19444,.69444,.10514,0,.53666],230:[0,.43056,.07514,0,.71555],248:[.09722,.52778,.09194,0,.51111],338:[0,.68333,.12028,0,.98499],339:[0,.43056,.07514,0,.71555],710:[0,.69444,.06646,0,.51111],711:[0,.62847,.08295,0,.51111],713:[0,.56167,.10333,0,.51111],714:[0,.69444,.09694,0,.51111],715:[0,.69444,0,0,.51111],728:[0,.69444,.10806,0,.51111],729:[0,.66786,.11752,0,.30667],730:[0,.69444,0,0,.83129],732:[0,.66786,.11585,0,.51111],733:[0,.69444,.1225,0,.51111],915:[0,.68333,.13305,0,.62722],916:[0,.68333,0,0,.81777],920:[0,.68333,.09403,0,.76666],923:[0,.68333,0,0,.69222],926:[0,.68333,.15294,0,.66444],928:[0,.68333,.16389,0,.74333],931:[0,.68333,.12028,0,.71555],933:[0,.68333,.11111,0,.76666],934:[0,.68333,.05986,0,.71555],936:[0,.68333,.11111,0,.76666],937:[0,.68333,.10257,0,.71555],8211:[0,.43056,.09208,0,.51111],8212:[0,.43056,.09208,0,1.02222],8216:[0,.69444,.12417,0,.30667],8217:[0,.69444,.12417,0,.30667],8220:[0,.69444,.1685,0,.51444],8221:[0,.69444,.06961,0,.51444],8463:[0,.68889,0,0,.54028]},"Main-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.27778],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.77778],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.19444,.10556,0,0,.27778],45:[0,.43056,0,0,.33333],46:[0,.10556,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.64444,0,0,.5],49:[0,.64444,0,0,.5],50:[0,.64444,0,0,.5],51:[0,.64444,0,0,.5],52:[0,.64444,0,0,.5],53:[0,.64444,0,0,.5],54:[0,.64444,0,0,.5],55:[0,.64444,0,0,.5],56:[0,.64444,0,0,.5],57:[0,.64444,0,0,.5],58:[0,.43056,0,0,.27778],59:[.19444,.43056,0,0,.27778],60:[.0391,.5391,0,0,.77778],61:[-.13313,.36687,0,0,.77778],62:[.0391,.5391,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.77778],65:[0,.68333,0,0,.75],66:[0,.68333,0,0,.70834],67:[0,.68333,0,0,.72222],68:[0,.68333,0,0,.76389],69:[0,.68333,0,0,.68056],70:[0,.68333,0,0,.65278],71:[0,.68333,0,0,.78472],72:[0,.68333,0,0,.75],73:[0,.68333,0,0,.36111],74:[0,.68333,0,0,.51389],75:[0,.68333,0,0,.77778],76:[0,.68333,0,0,.625],77:[0,.68333,0,0,.91667],78:[0,.68333,0,0,.75],79:[0,.68333,0,0,.77778],80:[0,.68333,0,0,.68056],81:[.19444,.68333,0,0,.77778],82:[0,.68333,0,0,.73611],83:[0,.68333,0,0,.55556],84:[0,.68333,0,0,.72222],85:[0,.68333,0,0,.75],86:[0,.68333,.01389,0,.75],87:[0,.68333,.01389,0,1.02778],88:[0,.68333,0,0,.75],89:[0,.68333,.025,0,.75],90:[0,.68333,0,0,.61111],91:[.25,.75,0,0,.27778],92:[.25,.75,0,0,.5],93:[.25,.75,0,0,.27778],94:[0,.69444,0,0,.5],95:[.31,.12056,.02778,0,.5],97:[0,.43056,0,0,.5],98:[0,.69444,0,0,.55556],99:[0,.43056,0,0,.44445],100:[0,.69444,0,0,.55556],101:[0,.43056,0,0,.44445],102:[0,.69444,.07778,0,.30556],103:[.19444,.43056,.01389,0,.5],104:[0,.69444,0,0,.55556],105:[0,.66786,0,0,.27778],106:[.19444,.66786,0,0,.30556],107:[0,.69444,0,0,.52778],108:[0,.69444,0,0,.27778],109:[0,.43056,0,0,.83334],110:[0,.43056,0,0,.55556],111:[0,.43056,0,0,.5],112:[.19444,.43056,0,0,.55556],113:[.19444,.43056,0,0,.52778],114:[0,.43056,0,0,.39167],115:[0,.43056,0,0,.39445],116:[0,.61508,0,0,.38889],117:[0,.43056,0,0,.55556],118:[0,.43056,.01389,0,.52778],119:[0,.43056,.01389,0,.72222],120:[0,.43056,0,0,.52778],121:[.19444,.43056,.01389,0,.52778],122:[0,.43056,0,0,.44445],123:[.25,.75,0,0,.5],124:[.25,.75,0,0,.27778],125:[.25,.75,0,0,.5],126:[.35,.31786,0,0,.5],160:[0,0,0,0,.25],163:[0,.69444,0,0,.76909],167:[.19444,.69444,0,0,.44445],168:[0,.66786,0,0,.5],172:[0,.43056,0,0,.66667],176:[0,.69444,0,0,.75],177:[.08333,.58333,0,0,.77778],182:[.19444,.69444,0,0,.61111],184:[.17014,0,0,0,.44445],198:[0,.68333,0,0,.90278],215:[.08333,.58333,0,0,.77778],216:[.04861,.73194,0,0,.77778],223:[0,.69444,0,0,.5],230:[0,.43056,0,0,.72222],247:[.08333,.58333,0,0,.77778],248:[.09722,.52778,0,0,.5],305:[0,.43056,0,0,.27778],338:[0,.68333,0,0,1.01389],339:[0,.43056,0,0,.77778],567:[.19444,.43056,0,0,.30556],710:[0,.69444,0,0,.5],711:[0,.62847,0,0,.5],713:[0,.56778,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.66786,0,0,.27778],730:[0,.69444,0,0,.75],732:[0,.66786,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.68333,0,0,.625],916:[0,.68333,0,0,.83334],920:[0,.68333,0,0,.77778],923:[0,.68333,0,0,.69445],926:[0,.68333,0,0,.66667],928:[0,.68333,0,0,.75],931:[0,.68333,0,0,.72222],933:[0,.68333,0,0,.77778],934:[0,.68333,0,0,.72222],936:[0,.68333,0,0,.77778],937:[0,.68333,0,0,.72222],8211:[0,.43056,.02778,0,.5],8212:[0,.43056,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5],8224:[.19444,.69444,0,0,.44445],8225:[.19444,.69444,0,0,.44445],8230:[0,.123,0,0,1.172],8242:[0,.55556,0,0,.275],8407:[0,.71444,.15382,0,.5],8463:[0,.68889,0,0,.54028],8465:[0,.69444,0,0,.72222],8467:[0,.69444,0,.11111,.41667],8472:[.19444,.43056,0,.11111,.63646],8476:[0,.69444,0,0,.72222],8501:[0,.69444,0,0,.61111],8592:[-.13313,.36687,0,0,1],8593:[.19444,.69444,0,0,.5],8594:[-.13313,.36687,0,0,1],8595:[.19444,.69444,0,0,.5],8596:[-.13313,.36687,0,0,1],8597:[.25,.75,0,0,.5],8598:[.19444,.69444,0,0,1],8599:[.19444,.69444,0,0,1],8600:[.19444,.69444,0,0,1],8601:[.19444,.69444,0,0,1],8614:[.011,.511,0,0,1],8617:[.011,.511,0,0,1.126],8618:[.011,.511,0,0,1.126],8636:[-.13313,.36687,0,0,1],8637:[-.13313,.36687,0,0,1],8640:[-.13313,.36687,0,0,1],8641:[-.13313,.36687,0,0,1],8652:[.011,.671,0,0,1],8656:[-.13313,.36687,0,0,1],8657:[.19444,.69444,0,0,.61111],8658:[-.13313,.36687,0,0,1],8659:[.19444,.69444,0,0,.61111],8660:[-.13313,.36687,0,0,1],8661:[.25,.75,0,0,.61111],8704:[0,.69444,0,0,.55556],8706:[0,.69444,.05556,.08334,.5309],8707:[0,.69444,0,0,.55556],8709:[.05556,.75,0,0,.5],8711:[0,.68333,0,0,.83334],8712:[.0391,.5391,0,0,.66667],8715:[.0391,.5391,0,0,.66667],8722:[.08333,.58333,0,0,.77778],8723:[.08333,.58333,0,0,.77778],8725:[.25,.75,0,0,.5],8726:[.25,.75,0,0,.5],8727:[-.03472,.46528,0,0,.5],8728:[-.05555,.44445,0,0,.5],8729:[-.05555,.44445,0,0,.5],8730:[.2,.8,0,0,.83334],8733:[0,.43056,0,0,.77778],8734:[0,.43056,0,0,1],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.27778],8741:[.25,.75,0,0,.5],8743:[0,.55556,0,0,.66667],8744:[0,.55556,0,0,.66667],8745:[0,.55556,0,0,.66667],8746:[0,.55556,0,0,.66667],8747:[.19444,.69444,.11111,0,.41667],8764:[-.13313,.36687,0,0,.77778],8768:[.19444,.69444,0,0,.27778],8771:[-.03625,.46375,0,0,.77778],8773:[-.022,.589,0,0,.778],8776:[-.01688,.48312,0,0,.77778],8781:[-.03625,.46375,0,0,.77778],8784:[-.133,.673,0,0,.778],8801:[-.03625,.46375,0,0,.77778],8804:[.13597,.63597,0,0,.77778],8805:[.13597,.63597,0,0,.77778],8810:[.0391,.5391,0,0,1],8811:[.0391,.5391,0,0,1],8826:[.0391,.5391,0,0,.77778],8827:[.0391,.5391,0,0,.77778],8834:[.0391,.5391,0,0,.77778],8835:[.0391,.5391,0,0,.77778],8838:[.13597,.63597,0,0,.77778],8839:[.13597,.63597,0,0,.77778],8846:[0,.55556,0,0,.66667],8849:[.13597,.63597,0,0,.77778],8850:[.13597,.63597,0,0,.77778],8851:[0,.55556,0,0,.66667],8852:[0,.55556,0,0,.66667],8853:[.08333,.58333,0,0,.77778],8854:[.08333,.58333,0,0,.77778],8855:[.08333,.58333,0,0,.77778],8856:[.08333,.58333,0,0,.77778],8857:[.08333,.58333,0,0,.77778],8866:[0,.69444,0,0,.61111],8867:[0,.69444,0,0,.61111],8868:[0,.69444,0,0,.77778],8869:[0,.69444,0,0,.77778],8872:[.249,.75,0,0,.867],8900:[-.05555,.44445,0,0,.5],8901:[-.05555,.44445,0,0,.27778],8902:[-.03472,.46528,0,0,.5],8904:[.005,.505,0,0,.9],8942:[.03,.903,0,0,.278],8943:[-.19,.313,0,0,1.172],8945:[-.1,.823,0,0,1.282],8968:[.25,.75,0,0,.44445],8969:[.25,.75,0,0,.44445],8970:[.25,.75,0,0,.44445],8971:[.25,.75,0,0,.44445],8994:[-.14236,.35764,0,0,1],8995:[-.14236,.35764,0,0,1],9136:[.244,.744,0,0,.412],9137:[.244,.745,0,0,.412],9651:[.19444,.69444,0,0,.88889],9657:[-.03472,.46528,0,0,.5],9661:[.19444,.69444,0,0,.88889],9667:[-.03472,.46528,0,0,.5],9711:[.19444,.69444,0,0,1],9824:[.12963,.69444,0,0,.77778],9825:[.12963,.69444,0,0,.77778],9826:[.12963,.69444,0,0,.77778],9827:[.12963,.69444,0,0,.77778],9837:[0,.75,0,0,.38889],9838:[.19444,.69444,0,0,.38889],9839:[.19444,.69444,0,0,.38889],10216:[.25,.75,0,0,.38889],10217:[.25,.75,0,0,.38889],10222:[.244,.744,0,0,.412],10223:[.244,.745,0,0,.412],10229:[.011,.511,0,0,1.609],10230:[.011,.511,0,0,1.638],10231:[.011,.511,0,0,1.859],10232:[.024,.525,0,0,1.609],10233:[.024,.525,0,0,1.638],10234:[.024,.525,0,0,1.858],10236:[.011,.511,0,0,1.638],10815:[0,.68333,0,0,.75],10927:[.13597,.63597,0,0,.77778],10928:[.13597,.63597,0,0,.77778],57376:[.19444,.69444,0,0,0]},"Math-BoldItalic":{32:[0,0,0,0,.25],48:[0,.44444,0,0,.575],49:[0,.44444,0,0,.575],50:[0,.44444,0,0,.575],51:[.19444,.44444,0,0,.575],52:[.19444,.44444,0,0,.575],53:[.19444,.44444,0,0,.575],54:[0,.64444,0,0,.575],55:[.19444,.44444,0,0,.575],56:[0,.64444,0,0,.575],57:[.19444,.44444,0,0,.575],65:[0,.68611,0,0,.86944],66:[0,.68611,.04835,0,.8664],67:[0,.68611,.06979,0,.81694],68:[0,.68611,.03194,0,.93812],69:[0,.68611,.05451,0,.81007],70:[0,.68611,.15972,0,.68889],71:[0,.68611,0,0,.88673],72:[0,.68611,.08229,0,.98229],73:[0,.68611,.07778,0,.51111],74:[0,.68611,.10069,0,.63125],75:[0,.68611,.06979,0,.97118],76:[0,.68611,0,0,.75555],77:[0,.68611,.11424,0,1.14201],78:[0,.68611,.11424,0,.95034],79:[0,.68611,.03194,0,.83666],80:[0,.68611,.15972,0,.72309],81:[.19444,.68611,0,0,.86861],82:[0,.68611,.00421,0,.87235],83:[0,.68611,.05382,0,.69271],84:[0,.68611,.15972,0,.63663],85:[0,.68611,.11424,0,.80027],86:[0,.68611,.25555,0,.67778],87:[0,.68611,.15972,0,1.09305],88:[0,.68611,.07778,0,.94722],89:[0,.68611,.25555,0,.67458],90:[0,.68611,.06979,0,.77257],97:[0,.44444,0,0,.63287],98:[0,.69444,0,0,.52083],99:[0,.44444,0,0,.51342],100:[0,.69444,0,0,.60972],101:[0,.44444,0,0,.55361],102:[.19444,.69444,.11042,0,.56806],103:[.19444,.44444,.03704,0,.5449],104:[0,.69444,0,0,.66759],105:[0,.69326,0,0,.4048],106:[.19444,.69326,.0622,0,.47083],107:[0,.69444,.01852,0,.6037],108:[0,.69444,.0088,0,.34815],109:[0,.44444,0,0,1.0324],110:[0,.44444,0,0,.71296],111:[0,.44444,0,0,.58472],112:[.19444,.44444,0,0,.60092],113:[.19444,.44444,.03704,0,.54213],114:[0,.44444,.03194,0,.5287],115:[0,.44444,0,0,.53125],116:[0,.63492,0,0,.41528],117:[0,.44444,0,0,.68102],118:[0,.44444,.03704,0,.56666],119:[0,.44444,.02778,0,.83148],120:[0,.44444,0,0,.65903],121:[.19444,.44444,.03704,0,.59028],122:[0,.44444,.04213,0,.55509],160:[0,0,0,0,.25],915:[0,.68611,.15972,0,.65694],916:[0,.68611,0,0,.95833],920:[0,.68611,.03194,0,.86722],923:[0,.68611,0,0,.80555],926:[0,.68611,.07458,0,.84125],928:[0,.68611,.08229,0,.98229],931:[0,.68611,.05451,0,.88507],933:[0,.68611,.15972,0,.67083],934:[0,.68611,0,0,.76666],936:[0,.68611,.11653,0,.71402],937:[0,.68611,.04835,0,.8789],945:[0,.44444,0,0,.76064],946:[.19444,.69444,.03403,0,.65972],947:[.19444,.44444,.06389,0,.59003],948:[0,.69444,.03819,0,.52222],949:[0,.44444,0,0,.52882],950:[.19444,.69444,.06215,0,.50833],951:[.19444,.44444,.03704,0,.6],952:[0,.69444,.03194,0,.5618],953:[0,.44444,0,0,.41204],954:[0,.44444,0,0,.66759],955:[0,.69444,0,0,.67083],956:[.19444,.44444,0,0,.70787],957:[0,.44444,.06898,0,.57685],958:[.19444,.69444,.03021,0,.50833],959:[0,.44444,0,0,.58472],960:[0,.44444,.03704,0,.68241],961:[.19444,.44444,0,0,.6118],962:[.09722,.44444,.07917,0,.42361],963:[0,.44444,.03704,0,.68588],964:[0,.44444,.13472,0,.52083],965:[0,.44444,.03704,0,.63055],966:[.19444,.44444,0,0,.74722],967:[.19444,.44444,0,0,.71805],968:[.19444,.69444,.03704,0,.75833],969:[0,.44444,.03704,0,.71782],977:[0,.69444,0,0,.69155],981:[.19444,.69444,0,0,.7125],982:[0,.44444,.03194,0,.975],1009:[.19444,.44444,0,0,.6118],1013:[0,.44444,0,0,.48333],57649:[0,.44444,0,0,.39352],57911:[.19444,.44444,0,0,.43889]},"Math-Italic":{32:[0,0,0,0,.25],48:[0,.43056,0,0,.5],49:[0,.43056,0,0,.5],50:[0,.43056,0,0,.5],51:[.19444,.43056,0,0,.5],52:[.19444,.43056,0,0,.5],53:[.19444,.43056,0,0,.5],54:[0,.64444,0,0,.5],55:[.19444,.43056,0,0,.5],56:[0,.64444,0,0,.5],57:[.19444,.43056,0,0,.5],65:[0,.68333,0,.13889,.75],66:[0,.68333,.05017,.08334,.75851],67:[0,.68333,.07153,.08334,.71472],68:[0,.68333,.02778,.05556,.82792],69:[0,.68333,.05764,.08334,.7382],70:[0,.68333,.13889,.08334,.64306],71:[0,.68333,0,.08334,.78625],72:[0,.68333,.08125,.05556,.83125],73:[0,.68333,.07847,.11111,.43958],74:[0,.68333,.09618,.16667,.55451],75:[0,.68333,.07153,.05556,.84931],76:[0,.68333,0,.02778,.68056],77:[0,.68333,.10903,.08334,.97014],78:[0,.68333,.10903,.08334,.80347],79:[0,.68333,.02778,.08334,.76278],80:[0,.68333,.13889,.08334,.64201],81:[.19444,.68333,0,.08334,.79056],82:[0,.68333,.00773,.08334,.75929],83:[0,.68333,.05764,.08334,.6132],84:[0,.68333,.13889,.08334,.58438],85:[0,.68333,.10903,.02778,.68278],86:[0,.68333,.22222,0,.58333],87:[0,.68333,.13889,0,.94445],88:[0,.68333,.07847,.08334,.82847],89:[0,.68333,.22222,0,.58056],90:[0,.68333,.07153,.08334,.68264],97:[0,.43056,0,0,.52859],98:[0,.69444,0,0,.42917],99:[0,.43056,0,.05556,.43276],100:[0,.69444,0,.16667,.52049],101:[0,.43056,0,.05556,.46563],102:[.19444,.69444,.10764,.16667,.48959],103:[.19444,.43056,.03588,.02778,.47697],104:[0,.69444,0,0,.57616],105:[0,.65952,0,0,.34451],106:[.19444,.65952,.05724,0,.41181],107:[0,.69444,.03148,0,.5206],108:[0,.69444,.01968,.08334,.29838],109:[0,.43056,0,0,.87801],110:[0,.43056,0,0,.60023],111:[0,.43056,0,.05556,.48472],112:[.19444,.43056,0,.08334,.50313],113:[.19444,.43056,.03588,.08334,.44641],114:[0,.43056,.02778,.05556,.45116],115:[0,.43056,0,.05556,.46875],116:[0,.61508,0,.08334,.36111],117:[0,.43056,0,.02778,.57246],118:[0,.43056,.03588,.02778,.48472],119:[0,.43056,.02691,.08334,.71592],120:[0,.43056,0,.02778,.57153],121:[.19444,.43056,.03588,.05556,.49028],122:[0,.43056,.04398,.05556,.46505],160:[0,0,0,0,.25],915:[0,.68333,.13889,.08334,.61528],916:[0,.68333,0,.16667,.83334],920:[0,.68333,.02778,.08334,.76278],923:[0,.68333,0,.16667,.69445],926:[0,.68333,.07569,.08334,.74236],928:[0,.68333,.08125,.05556,.83125],931:[0,.68333,.05764,.08334,.77986],933:[0,.68333,.13889,.05556,.58333],934:[0,.68333,0,.08334,.66667],936:[0,.68333,.11,.05556,.61222],937:[0,.68333,.05017,.08334,.7724],945:[0,.43056,.0037,.02778,.6397],946:[.19444,.69444,.05278,.08334,.56563],947:[.19444,.43056,.05556,0,.51773],948:[0,.69444,.03785,.05556,.44444],949:[0,.43056,0,.08334,.46632],950:[.19444,.69444,.07378,.08334,.4375],951:[.19444,.43056,.03588,.05556,.49653],952:[0,.69444,.02778,.08334,.46944],953:[0,.43056,0,.05556,.35394],954:[0,.43056,0,0,.57616],955:[0,.69444,0,0,.58334],956:[.19444,.43056,0,.02778,.60255],957:[0,.43056,.06366,.02778,.49398],958:[.19444,.69444,.04601,.11111,.4375],959:[0,.43056,0,.05556,.48472],960:[0,.43056,.03588,0,.57003],961:[.19444,.43056,0,.08334,.51702],962:[.09722,.43056,.07986,.08334,.36285],963:[0,.43056,.03588,0,.57141],964:[0,.43056,.1132,.02778,.43715],965:[0,.43056,.03588,.02778,.54028],966:[.19444,.43056,0,.08334,.65417],967:[.19444,.43056,0,.05556,.62569],968:[.19444,.69444,.03588,.11111,.65139],969:[0,.43056,.03588,0,.62245],977:[0,.69444,0,.08334,.59144],981:[.19444,.69444,0,.08334,.59583],982:[0,.43056,.02778,0,.82813],1009:[.19444,.43056,0,.08334,.51702],1013:[0,.43056,0,.05556,.4059],57649:[0,.43056,0,.02778,.32246],57911:[.19444,.43056,0,.08334,.38403]},"SansSerif-Bold":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.36667],34:[0,.69444,0,0,.55834],35:[.19444,.69444,0,0,.91667],36:[.05556,.75,0,0,.55],37:[.05556,.75,0,0,1.02912],38:[0,.69444,0,0,.83056],39:[0,.69444,0,0,.30556],40:[.25,.75,0,0,.42778],41:[.25,.75,0,0,.42778],42:[0,.75,0,0,.55],43:[.11667,.61667,0,0,.85556],44:[.10556,.13056,0,0,.30556],45:[0,.45833,0,0,.36667],46:[0,.13056,0,0,.30556],47:[.25,.75,0,0,.55],48:[0,.69444,0,0,.55],49:[0,.69444,0,0,.55],50:[0,.69444,0,0,.55],51:[0,.69444,0,0,.55],52:[0,.69444,0,0,.55],53:[0,.69444,0,0,.55],54:[0,.69444,0,0,.55],55:[0,.69444,0,0,.55],56:[0,.69444,0,0,.55],57:[0,.69444,0,0,.55],58:[0,.45833,0,0,.30556],59:[.10556,.45833,0,0,.30556],61:[-.09375,.40625,0,0,.85556],63:[0,.69444,0,0,.51945],64:[0,.69444,0,0,.73334],65:[0,.69444,0,0,.73334],66:[0,.69444,0,0,.73334],67:[0,.69444,0,0,.70278],68:[0,.69444,0,0,.79445],69:[0,.69444,0,0,.64167],70:[0,.69444,0,0,.61111],71:[0,.69444,0,0,.73334],72:[0,.69444,0,0,.79445],73:[0,.69444,0,0,.33056],74:[0,.69444,0,0,.51945],75:[0,.69444,0,0,.76389],76:[0,.69444,0,0,.58056],77:[0,.69444,0,0,.97778],78:[0,.69444,0,0,.79445],79:[0,.69444,0,0,.79445],80:[0,.69444,0,0,.70278],81:[.10556,.69444,0,0,.79445],82:[0,.69444,0,0,.70278],83:[0,.69444,0,0,.61111],84:[0,.69444,0,0,.73334],85:[0,.69444,0,0,.76389],86:[0,.69444,.01528,0,.73334],87:[0,.69444,.01528,0,1.03889],88:[0,.69444,0,0,.73334],89:[0,.69444,.0275,0,.73334],90:[0,.69444,0,0,.67223],91:[.25,.75,0,0,.34306],93:[.25,.75,0,0,.34306],94:[0,.69444,0,0,.55],95:[.35,.10833,.03056,0,.55],97:[0,.45833,0,0,.525],98:[0,.69444,0,0,.56111],99:[0,.45833,0,0,.48889],100:[0,.69444,0,0,.56111],101:[0,.45833,0,0,.51111],102:[0,.69444,.07639,0,.33611],103:[.19444,.45833,.01528,0,.55],104:[0,.69444,0,0,.56111],105:[0,.69444,0,0,.25556],106:[.19444,.69444,0,0,.28611],107:[0,.69444,0,0,.53056],108:[0,.69444,0,0,.25556],109:[0,.45833,0,0,.86667],110:[0,.45833,0,0,.56111],111:[0,.45833,0,0,.55],112:[.19444,.45833,0,0,.56111],113:[.19444,.45833,0,0,.56111],114:[0,.45833,.01528,0,.37222],115:[0,.45833,0,0,.42167],116:[0,.58929,0,0,.40417],117:[0,.45833,0,0,.56111],118:[0,.45833,.01528,0,.5],119:[0,.45833,.01528,0,.74445],120:[0,.45833,0,0,.5],121:[.19444,.45833,.01528,0,.5],122:[0,.45833,0,0,.47639],126:[.35,.34444,0,0,.55],160:[0,0,0,0,.25],168:[0,.69444,0,0,.55],176:[0,.69444,0,0,.73334],180:[0,.69444,0,0,.55],184:[.17014,0,0,0,.48889],305:[0,.45833,0,0,.25556],567:[.19444,.45833,0,0,.28611],710:[0,.69444,0,0,.55],711:[0,.63542,0,0,.55],713:[0,.63778,0,0,.55],728:[0,.69444,0,0,.55],729:[0,.69444,0,0,.30556],730:[0,.69444,0,0,.73334],732:[0,.69444,0,0,.55],733:[0,.69444,0,0,.55],915:[0,.69444,0,0,.58056],916:[0,.69444,0,0,.91667],920:[0,.69444,0,0,.85556],923:[0,.69444,0,0,.67223],926:[0,.69444,0,0,.73334],928:[0,.69444,0,0,.79445],931:[0,.69444,0,0,.79445],933:[0,.69444,0,0,.85556],934:[0,.69444,0,0,.79445],936:[0,.69444,0,0,.85556],937:[0,.69444,0,0,.79445],8211:[0,.45833,.03056,0,.55],8212:[0,.45833,.03056,0,1.10001],8216:[0,.69444,0,0,.30556],8217:[0,.69444,0,0,.30556],8220:[0,.69444,0,0,.55834],8221:[0,.69444,0,0,.55834]},"SansSerif-Italic":{32:[0,0,0,0,.25],33:[0,.69444,.05733,0,.31945],34:[0,.69444,.00316,0,.5],35:[.19444,.69444,.05087,0,.83334],36:[.05556,.75,.11156,0,.5],37:[.05556,.75,.03126,0,.83334],38:[0,.69444,.03058,0,.75834],39:[0,.69444,.07816,0,.27778],40:[.25,.75,.13164,0,.38889],41:[.25,.75,.02536,0,.38889],42:[0,.75,.11775,0,.5],43:[.08333,.58333,.02536,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,.01946,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,.13164,0,.5],48:[0,.65556,.11156,0,.5],49:[0,.65556,.11156,0,.5],50:[0,.65556,.11156,0,.5],51:[0,.65556,.11156,0,.5],52:[0,.65556,.11156,0,.5],53:[0,.65556,.11156,0,.5],54:[0,.65556,.11156,0,.5],55:[0,.65556,.11156,0,.5],56:[0,.65556,.11156,0,.5],57:[0,.65556,.11156,0,.5],58:[0,.44444,.02502,0,.27778],59:[.125,.44444,.02502,0,.27778],61:[-.13,.37,.05087,0,.77778],63:[0,.69444,.11809,0,.47222],64:[0,.69444,.07555,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,.08293,0,.66667],67:[0,.69444,.11983,0,.63889],68:[0,.69444,.07555,0,.72223],69:[0,.69444,.11983,0,.59722],70:[0,.69444,.13372,0,.56945],71:[0,.69444,.11983,0,.66667],72:[0,.69444,.08094,0,.70834],73:[0,.69444,.13372,0,.27778],74:[0,.69444,.08094,0,.47222],75:[0,.69444,.11983,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,.08094,0,.875],78:[0,.69444,.08094,0,.70834],79:[0,.69444,.07555,0,.73611],80:[0,.69444,.08293,0,.63889],81:[.125,.69444,.07555,0,.73611],82:[0,.69444,.08293,0,.64584],83:[0,.69444,.09205,0,.55556],84:[0,.69444,.13372,0,.68056],85:[0,.69444,.08094,0,.6875],86:[0,.69444,.1615,0,.66667],87:[0,.69444,.1615,0,.94445],88:[0,.69444,.13372,0,.66667],89:[0,.69444,.17261,0,.66667],90:[0,.69444,.11983,0,.61111],91:[.25,.75,.15942,0,.28889],93:[.25,.75,.08719,0,.28889],94:[0,.69444,.0799,0,.5],95:[.35,.09444,.08616,0,.5],97:[0,.44444,.00981,0,.48056],98:[0,.69444,.03057,0,.51667],99:[0,.44444,.08336,0,.44445],100:[0,.69444,.09483,0,.51667],101:[0,.44444,.06778,0,.44445],102:[0,.69444,.21705,0,.30556],103:[.19444,.44444,.10836,0,.5],104:[0,.69444,.01778,0,.51667],105:[0,.67937,.09718,0,.23889],106:[.19444,.67937,.09162,0,.26667],107:[0,.69444,.08336,0,.48889],108:[0,.69444,.09483,0,.23889],109:[0,.44444,.01778,0,.79445],110:[0,.44444,.01778,0,.51667],111:[0,.44444,.06613,0,.5],112:[.19444,.44444,.0389,0,.51667],113:[.19444,.44444,.04169,0,.51667],114:[0,.44444,.10836,0,.34167],115:[0,.44444,.0778,0,.38333],116:[0,.57143,.07225,0,.36111],117:[0,.44444,.04169,0,.51667],118:[0,.44444,.10836,0,.46111],119:[0,.44444,.10836,0,.68334],120:[0,.44444,.09169,0,.46111],121:[.19444,.44444,.10836,0,.46111],122:[0,.44444,.08752,0,.43472],126:[.35,.32659,.08826,0,.5],160:[0,0,0,0,.25],168:[0,.67937,.06385,0,.5],176:[0,.69444,0,0,.73752],184:[.17014,0,0,0,.44445],305:[0,.44444,.04169,0,.23889],567:[.19444,.44444,.04169,0,.26667],710:[0,.69444,.0799,0,.5],711:[0,.63194,.08432,0,.5],713:[0,.60889,.08776,0,.5],714:[0,.69444,.09205,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,.09483,0,.5],729:[0,.67937,.07774,0,.27778],730:[0,.69444,0,0,.73752],732:[0,.67659,.08826,0,.5],733:[0,.69444,.09205,0,.5],915:[0,.69444,.13372,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,.07555,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,.12816,0,.66667],928:[0,.69444,.08094,0,.70834],931:[0,.69444,.11983,0,.72222],933:[0,.69444,.09031,0,.77778],934:[0,.69444,.04603,0,.72222],936:[0,.69444,.09031,0,.77778],937:[0,.69444,.08293,0,.72222],8211:[0,.44444,.08616,0,.5],8212:[0,.44444,.08616,0,1],8216:[0,.69444,.07816,0,.27778],8217:[0,.69444,.07816,0,.27778],8220:[0,.69444,.14205,0,.5],8221:[0,.69444,.00316,0,.5]},"SansSerif-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.31945],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.75834],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,0,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.65556,0,0,.5],49:[0,.65556,0,0,.5],50:[0,.65556,0,0,.5],51:[0,.65556,0,0,.5],52:[0,.65556,0,0,.5],53:[0,.65556,0,0,.5],54:[0,.65556,0,0,.5],55:[0,.65556,0,0,.5],56:[0,.65556,0,0,.5],57:[0,.65556,0,0,.5],58:[0,.44444,0,0,.27778],59:[.125,.44444,0,0,.27778],61:[-.13,.37,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,0,0,.66667],67:[0,.69444,0,0,.63889],68:[0,.69444,0,0,.72223],69:[0,.69444,0,0,.59722],70:[0,.69444,0,0,.56945],71:[0,.69444,0,0,.66667],72:[0,.69444,0,0,.70834],73:[0,.69444,0,0,.27778],74:[0,.69444,0,0,.47222],75:[0,.69444,0,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,0,0,.875],78:[0,.69444,0,0,.70834],79:[0,.69444,0,0,.73611],80:[0,.69444,0,0,.63889],81:[.125,.69444,0,0,.73611],82:[0,.69444,0,0,.64584],83:[0,.69444,0,0,.55556],84:[0,.69444,0,0,.68056],85:[0,.69444,0,0,.6875],86:[0,.69444,.01389,0,.66667],87:[0,.69444,.01389,0,.94445],88:[0,.69444,0,0,.66667],89:[0,.69444,.025,0,.66667],90:[0,.69444,0,0,.61111],91:[.25,.75,0,0,.28889],93:[.25,.75,0,0,.28889],94:[0,.69444,0,0,.5],95:[.35,.09444,.02778,0,.5],97:[0,.44444,0,0,.48056],98:[0,.69444,0,0,.51667],99:[0,.44444,0,0,.44445],100:[0,.69444,0,0,.51667],101:[0,.44444,0,0,.44445],102:[0,.69444,.06944,0,.30556],103:[.19444,.44444,.01389,0,.5],104:[0,.69444,0,0,.51667],105:[0,.67937,0,0,.23889],106:[.19444,.67937,0,0,.26667],107:[0,.69444,0,0,.48889],108:[0,.69444,0,0,.23889],109:[0,.44444,0,0,.79445],110:[0,.44444,0,0,.51667],111:[0,.44444,0,0,.5],112:[.19444,.44444,0,0,.51667],113:[.19444,.44444,0,0,.51667],114:[0,.44444,.01389,0,.34167],115:[0,.44444,0,0,.38333],116:[0,.57143,0,0,.36111],117:[0,.44444,0,0,.51667],118:[0,.44444,.01389,0,.46111],119:[0,.44444,.01389,0,.68334],120:[0,.44444,0,0,.46111],121:[.19444,.44444,.01389,0,.46111],122:[0,.44444,0,0,.43472],126:[.35,.32659,0,0,.5],160:[0,0,0,0,.25],168:[0,.67937,0,0,.5],176:[0,.69444,0,0,.66667],184:[.17014,0,0,0,.44445],305:[0,.44444,0,0,.23889],567:[.19444,.44444,0,0,.26667],710:[0,.69444,0,0,.5],711:[0,.63194,0,0,.5],713:[0,.60889,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.67937,0,0,.27778],730:[0,.69444,0,0,.66667],732:[0,.67659,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.69444,0,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,0,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,0,0,.66667],928:[0,.69444,0,0,.70834],931:[0,.69444,0,0,.72222],933:[0,.69444,0,0,.77778],934:[0,.69444,0,0,.72222],936:[0,.69444,0,0,.77778],937:[0,.69444,0,0,.72222],8211:[0,.44444,.02778,0,.5],8212:[0,.44444,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5]},"Script-Regular":{32:[0,0,0,0,.25],65:[0,.7,.22925,0,.80253],66:[0,.7,.04087,0,.90757],67:[0,.7,.1689,0,.66619],68:[0,.7,.09371,0,.77443],69:[0,.7,.18583,0,.56162],70:[0,.7,.13634,0,.89544],71:[0,.7,.17322,0,.60961],72:[0,.7,.29694,0,.96919],73:[0,.7,.19189,0,.80907],74:[.27778,.7,.19189,0,1.05159],75:[0,.7,.31259,0,.91364],76:[0,.7,.19189,0,.87373],77:[0,.7,.15981,0,1.08031],78:[0,.7,.3525,0,.9015],79:[0,.7,.08078,0,.73787],80:[0,.7,.08078,0,1.01262],81:[0,.7,.03305,0,.88282],82:[0,.7,.06259,0,.85],83:[0,.7,.19189,0,.86767],84:[0,.7,.29087,0,.74697],85:[0,.7,.25815,0,.79996],86:[0,.7,.27523,0,.62204],87:[0,.7,.27523,0,.80532],88:[0,.7,.26006,0,.94445],89:[0,.7,.2939,0,.70961],90:[0,.7,.24037,0,.8212],160:[0,0,0,0,.25]},"Size1-Regular":{32:[0,0,0,0,.25],40:[.35001,.85,0,0,.45834],41:[.35001,.85,0,0,.45834],47:[.35001,.85,0,0,.57778],91:[.35001,.85,0,0,.41667],92:[.35001,.85,0,0,.57778],93:[.35001,.85,0,0,.41667],123:[.35001,.85,0,0,.58334],125:[.35001,.85,0,0,.58334],160:[0,0,0,0,.25],710:[0,.72222,0,0,.55556],732:[0,.72222,0,0,.55556],770:[0,.72222,0,0,.55556],771:[0,.72222,0,0,.55556],8214:[-99e-5,.601,0,0,.77778],8593:[1e-5,.6,0,0,.66667],8595:[1e-5,.6,0,0,.66667],8657:[1e-5,.6,0,0,.77778],8659:[1e-5,.6,0,0,.77778],8719:[.25001,.75,0,0,.94445],8720:[.25001,.75,0,0,.94445],8721:[.25001,.75,0,0,1.05556],8730:[.35001,.85,0,0,1],8739:[-.00599,.606,0,0,.33333],8741:[-.00599,.606,0,0,.55556],8747:[.30612,.805,.19445,0,.47222],8748:[.306,.805,.19445,0,.47222],8749:[.306,.805,.19445,0,.47222],8750:[.30612,.805,.19445,0,.47222],8896:[.25001,.75,0,0,.83334],8897:[.25001,.75,0,0,.83334],8898:[.25001,.75,0,0,.83334],8899:[.25001,.75,0,0,.83334],8968:[.35001,.85,0,0,.47222],8969:[.35001,.85,0,0,.47222],8970:[.35001,.85,0,0,.47222],8971:[.35001,.85,0,0,.47222],9168:[-99e-5,.601,0,0,.66667],10216:[.35001,.85,0,0,.47222],10217:[.35001,.85,0,0,.47222],10752:[.25001,.75,0,0,1.11111],10753:[.25001,.75,0,0,1.11111],10754:[.25001,.75,0,0,1.11111],10756:[.25001,.75,0,0,.83334],10758:[.25001,.75,0,0,.83334]},"Size2-Regular":{32:[0,0,0,0,.25],40:[.65002,1.15,0,0,.59722],41:[.65002,1.15,0,0,.59722],47:[.65002,1.15,0,0,.81111],91:[.65002,1.15,0,0,.47222],92:[.65002,1.15,0,0,.81111],93:[.65002,1.15,0,0,.47222],123:[.65002,1.15,0,0,.66667],125:[.65002,1.15,0,0,.66667],160:[0,0,0,0,.25],710:[0,.75,0,0,1],732:[0,.75,0,0,1],770:[0,.75,0,0,1],771:[0,.75,0,0,1],8719:[.55001,1.05,0,0,1.27778],8720:[.55001,1.05,0,0,1.27778],8721:[.55001,1.05,0,0,1.44445],8730:[.65002,1.15,0,0,1],8747:[.86225,1.36,.44445,0,.55556],8748:[.862,1.36,.44445,0,.55556],8749:[.862,1.36,.44445,0,.55556],8750:[.86225,1.36,.44445,0,.55556],8896:[.55001,1.05,0,0,1.11111],8897:[.55001,1.05,0,0,1.11111],8898:[.55001,1.05,0,0,1.11111],8899:[.55001,1.05,0,0,1.11111],8968:[.65002,1.15,0,0,.52778],8969:[.65002,1.15,0,0,.52778],8970:[.65002,1.15,0,0,.52778],8971:[.65002,1.15,0,0,.52778],10216:[.65002,1.15,0,0,.61111],10217:[.65002,1.15,0,0,.61111],10752:[.55001,1.05,0,0,1.51112],10753:[.55001,1.05,0,0,1.51112],10754:[.55001,1.05,0,0,1.51112],10756:[.55001,1.05,0,0,1.11111],10758:[.55001,1.05,0,0,1.11111]},"Size3-Regular":{32:[0,0,0,0,.25],40:[.95003,1.45,0,0,.73611],41:[.95003,1.45,0,0,.73611],47:[.95003,1.45,0,0,1.04445],91:[.95003,1.45,0,0,.52778],92:[.95003,1.45,0,0,1.04445],93:[.95003,1.45,0,0,.52778],123:[.95003,1.45,0,0,.75],125:[.95003,1.45,0,0,.75],160:[0,0,0,0,.25],710:[0,.75,0,0,1.44445],732:[0,.75,0,0,1.44445],770:[0,.75,0,0,1.44445],771:[0,.75,0,0,1.44445],8730:[.95003,1.45,0,0,1],8968:[.95003,1.45,0,0,.58334],8969:[.95003,1.45,0,0,.58334],8970:[.95003,1.45,0,0,.58334],8971:[.95003,1.45,0,0,.58334],10216:[.95003,1.45,0,0,.75],10217:[.95003,1.45,0,0,.75]},"Size4-Regular":{32:[0,0,0,0,.25],40:[1.25003,1.75,0,0,.79167],41:[1.25003,1.75,0,0,.79167],47:[1.25003,1.75,0,0,1.27778],91:[1.25003,1.75,0,0,.58334],92:[1.25003,1.75,0,0,1.27778],93:[1.25003,1.75,0,0,.58334],123:[1.25003,1.75,0,0,.80556],125:[1.25003,1.75,0,0,.80556],160:[0,0,0,0,.25],710:[0,.825,0,0,1.8889],732:[0,.825,0,0,1.8889],770:[0,.825,0,0,1.8889],771:[0,.825,0,0,1.8889],8730:[1.25003,1.75,0,0,1],8968:[1.25003,1.75,0,0,.63889],8969:[1.25003,1.75,0,0,.63889],8970:[1.25003,1.75,0,0,.63889],8971:[1.25003,1.75,0,0,.63889],9115:[.64502,1.155,0,0,.875],9116:[1e-5,.6,0,0,.875],9117:[.64502,1.155,0,0,.875],9118:[.64502,1.155,0,0,.875],9119:[1e-5,.6,0,0,.875],9120:[.64502,1.155,0,0,.875],9121:[.64502,1.155,0,0,.66667],9122:[-99e-5,.601,0,0,.66667],9123:[.64502,1.155,0,0,.66667],9124:[.64502,1.155,0,0,.66667],9125:[-99e-5,.601,0,0,.66667],9126:[.64502,1.155,0,0,.66667],9127:[1e-5,.9,0,0,.88889],9128:[.65002,1.15,0,0,.88889],9129:[.90001,0,0,0,.88889],9130:[0,.3,0,0,.88889],9131:[1e-5,.9,0,0,.88889],9132:[.65002,1.15,0,0,.88889],9133:[.90001,0,0,0,.88889],9143:[.88502,.915,0,0,1.05556],10216:[1.25003,1.75,0,0,.80556],10217:[1.25003,1.75,0,0,.80556],57344:[-.00499,.605,0,0,1.05556],57345:[-.00499,.605,0,0,1.05556],57680:[0,.12,0,0,.45],57681:[0,.12,0,0,.45],57682:[0,.12,0,0,.45],57683:[0,.12,0,0,.45]},"Typewriter-Regular":{32:[0,0,0,0,.525],33:[0,.61111,0,0,.525],34:[0,.61111,0,0,.525],35:[0,.61111,0,0,.525],36:[.08333,.69444,0,0,.525],37:[.08333,.69444,0,0,.525],38:[0,.61111,0,0,.525],39:[0,.61111,0,0,.525],40:[.08333,.69444,0,0,.525],41:[.08333,.69444,0,0,.525],42:[0,.52083,0,0,.525],43:[-.08056,.53055,0,0,.525],44:[.13889,.125,0,0,.525],45:[-.08056,.53055,0,0,.525],46:[0,.125,0,0,.525],47:[.08333,.69444,0,0,.525],48:[0,.61111,0,0,.525],49:[0,.61111,0,0,.525],50:[0,.61111,0,0,.525],51:[0,.61111,0,0,.525],52:[0,.61111,0,0,.525],53:[0,.61111,0,0,.525],54:[0,.61111,0,0,.525],55:[0,.61111,0,0,.525],56:[0,.61111,0,0,.525],57:[0,.61111,0,0,.525],58:[0,.43056,0,0,.525],59:[.13889,.43056,0,0,.525],60:[-.05556,.55556,0,0,.525],61:[-.19549,.41562,0,0,.525],62:[-.05556,.55556,0,0,.525],63:[0,.61111,0,0,.525],64:[0,.61111,0,0,.525],65:[0,.61111,0,0,.525],66:[0,.61111,0,0,.525],67:[0,.61111,0,0,.525],68:[0,.61111,0,0,.525],69:[0,.61111,0,0,.525],70:[0,.61111,0,0,.525],71:[0,.61111,0,0,.525],72:[0,.61111,0,0,.525],73:[0,.61111,0,0,.525],74:[0,.61111,0,0,.525],75:[0,.61111,0,0,.525],76:[0,.61111,0,0,.525],77:[0,.61111,0,0,.525],78:[0,.61111,0,0,.525],79:[0,.61111,0,0,.525],80:[0,.61111,0,0,.525],81:[.13889,.61111,0,0,.525],82:[0,.61111,0,0,.525],83:[0,.61111,0,0,.525],84:[0,.61111,0,0,.525],85:[0,.61111,0,0,.525],86:[0,.61111,0,0,.525],87:[0,.61111,0,0,.525],88:[0,.61111,0,0,.525],89:[0,.61111,0,0,.525],90:[0,.61111,0,0,.525],91:[.08333,.69444,0,0,.525],92:[.08333,.69444,0,0,.525],93:[.08333,.69444,0,0,.525],94:[0,.61111,0,0,.525],95:[.09514,0,0,0,.525],96:[0,.61111,0,0,.525],97:[0,.43056,0,0,.525],98:[0,.61111,0,0,.525],99:[0,.43056,0,0,.525],100:[0,.61111,0,0,.525],101:[0,.43056,0,0,.525],102:[0,.61111,0,0,.525],103:[.22222,.43056,0,0,.525],104:[0,.61111,0,0,.525],105:[0,.61111,0,0,.525],106:[.22222,.61111,0,0,.525],107:[0,.61111,0,0,.525],108:[0,.61111,0,0,.525],109:[0,.43056,0,0,.525],110:[0,.43056,0,0,.525],111:[0,.43056,0,0,.525],112:[.22222,.43056,0,0,.525],113:[.22222,.43056,0,0,.525],114:[0,.43056,0,0,.525],115:[0,.43056,0,0,.525],116:[0,.55358,0,0,.525],117:[0,.43056,0,0,.525],118:[0,.43056,0,0,.525],119:[0,.43056,0,0,.525],120:[0,.43056,0,0,.525],121:[.22222,.43056,0,0,.525],122:[0,.43056,0,0,.525],123:[.08333,.69444,0,0,.525],124:[.08333,.69444,0,0,.525],125:[.08333,.69444,0,0,.525],126:[0,.61111,0,0,.525],127:[0,.61111,0,0,.525],160:[0,0,0,0,.525],176:[0,.61111,0,0,.525],184:[.19445,0,0,0,.525],305:[0,.43056,0,0,.525],567:[.22222,.43056,0,0,.525],711:[0,.56597,0,0,.525],713:[0,.56555,0,0,.525],714:[0,.61111,0,0,.525],715:[0,.61111,0,0,.525],728:[0,.61111,0,0,.525],730:[0,.61111,0,0,.525],770:[0,.61111,0,0,.525],771:[0,.61111,0,0,.525],776:[0,.61111,0,0,.525],915:[0,.61111,0,0,.525],916:[0,.61111,0,0,.525],920:[0,.61111,0,0,.525],923:[0,.61111,0,0,.525],926:[0,.61111,0,0,.525],928:[0,.61111,0,0,.525],931:[0,.61111,0,0,.525],933:[0,.61111,0,0,.525],934:[0,.61111,0,0,.525],936:[0,.61111,0,0,.525],937:[0,.61111,0,0,.525],8216:[0,.61111,0,0,.525],8217:[0,.61111,0,0,.525],8242:[0,.61111,0,0,.525],9251:[.11111,.21944,0,0,.525]}},ar={slant:[.25,.25,.25],space:[0,0,0],stretch:[0,0,0],shrink:[0,0,0],xHeight:[.431,.431,.431],quad:[1,1.171,1.472],extraSpace:[0,0,0],num1:[.677,.732,.925],num2:[.394,.384,.387],num3:[.444,.471,.504],denom1:[.686,.752,1.025],denom2:[.345,.344,.532],sup1:[.413,.503,.504],sup2:[.363,.431,.404],sup3:[.289,.286,.294],sub1:[.15,.143,.2],sub2:[.247,.286,.4],supDrop:[.386,.353,.494],subDrop:[.05,.071,.1],delim1:[2.39,1.7,1.98],delim2:[1.01,1.157,1.42],axisHeight:[.25,.25,.25],defaultRuleThickness:[.04,.049,.049],bigOpSpacing1:[.111,.111,.111],bigOpSpacing2:[.166,.166,.166],bigOpSpacing3:[.2,.2,.2],bigOpSpacing4:[.6,.611,.611],bigOpSpacing5:[.1,.143,.143],sqrtRuleThickness:[.04,.04,.04],ptPerEm:[10,10,10],doubleRuleSep:[.2,.2,.2],arrayRuleWidth:[.04,.04,.04],fboxsep:[.3,.3,.3],fboxrule:[.04,.04,.04]},ei={\u00C5:"A",\u00D0:"D",\u00DE:"o",\u00E5:"a",\u00F0:"d",\u00FE:"o",\u0410:"A",\u0411:"B",\u0412:"B",\u0413:"F",\u0414:"A",\u0415:"E",\u0416:"K",\u0417:"3",\u0418:"N",\u0419:"N",\u041A:"K",\u041B:"N",\u041C:"M",\u041D:"H",\u041E:"O",\u041F:"N",\u0420:"P",\u0421:"C",\u0422:"T",\u0423:"y",\u0424:"O",\u0425:"X",\u0426:"U",\u0427:"h",\u0428:"W",\u0429:"W",\u042A:"B",\u042B:"X",\u042C:"B",\u042D:"3",\u042E:"X",\u042F:"R",\u0430:"a",\u0431:"b",\u0432:"a",\u0433:"r",\u0434:"y",\u0435:"e",\u0436:"m",\u0437:"e",\u0438:"n",\u0439:"n",\u043A:"n",\u043B:"n",\u043C:"m",\u043D:"n",\u043E:"o",\u043F:"n",\u0440:"p",\u0441:"c",\u0442:"o",\u0443:"y",\u0444:"b",\u0445:"x",\u0446:"n",\u0447:"n",\u0448:"w",\u0449:"w",\u044A:"a",\u044B:"m",\u044C:"a",\u044D:"e",\u044E:"m",\u044F:"r"};function No(t,e){B0[t]=e}function Hr(t,e,r){if(!B0[e])throw new Error("Font metrics not found for font: "+e+".");var a=t.charCodeAt(0),i=B0[e][a];if(!i&&t[0]in ei&&(a=ei[t[0]].charCodeAt(0),i=B0[e][a]),!i&&r==="text"&&Oi(a)&&(i=B0[e][77]),i)return{depth:i[0],height:i[1],italic:i[2],skew:i[3],width:i[4]}}var ir={};function Oo(t){var e;if(t>=5?e=0:t>=3?e=1:e=2,!ir[e]){var r=ir[e]={cssEmPerMu:ar.quad[e]/18};for(var a of Object.keys(ar))r[a]=ar[a][e]}return ir[e]}var K={math:{},text:{}};function n(t,e,r,a,i,s){K[t][i]={font:e,group:r,replace:a},s&&a&&(K[t][a]=K[t][i])}var l="math",S="text",u="main",f="ams",J="accent-token",R="bin",v0="close",Te="inner",O="mathord",s0="op-token",x0="open",Ve="punct",p="rel",j0="spacing",g="textord";n(l,u,p,"\u2261","\\equiv",!0);n(l,u,p,"\u227A","\\prec",!0);n(l,u,p,"\u227B","\\succ",!0);n(l,u,p,"\u223C","\\sim",!0);n(l,u,p,"\u22A5","\\perp");n(l,u,p,"\u2AAF","\\preceq",!0);n(l,u,p,"\u2AB0","\\succeq",!0);n(l,u,p,"\u2243","\\simeq",!0);n(l,u,p,"\u2223","\\mid",!0);n(l,u,p,"\u226A","\\ll",!0);n(l,u,p,"\u226B","\\gg",!0);n(l,u,p,"\u224D","\\asymp",!0);n(l,u,p,"\u2225","\\parallel");n(l,u,p,"\u22C8","\\bowtie",!0);n(l,u,p,"\u2323","\\smile",!0);n(l,u,p,"\u2291","\\sqsubseteq",!0);n(l,u,p,"\u2292","\\sqsupseteq",!0);n(l,u,p,"\u2250","\\doteq",!0);n(l,u,p,"\u2322","\\frown",!0);n(l,u,p,"\u220B","\\ni",!0);n(l,u,p,"\u221D","\\propto",!0);n(l,u,p,"\u22A2","\\vdash",!0);n(l,u,p,"\u22A3","\\dashv",!0);n(l,u,p,"\u220B","\\owns");n(l,u,Ve,".","\\ldotp");n(l,u,Ve,"\u22C5","\\cdotp");n(l,u,Ve,"\u22C5","\xB7");n(S,u,g,"\u22C5","\xB7");n(l,u,g,"#","\\#");n(S,u,g,"#","\\#");n(l,u,g,"&","\\&");n(S,u,g,"&","\\&");n(l,u,g,"\u2135","\\aleph",!0);n(l,u,g,"\u2200","\\forall",!0);n(l,u,g,"\u210F","\\hbar",!0);n(l,u,g,"\u2203","\\exists",!0);n(l,u,g,"\u2207","\\nabla",!0);n(l,u,g,"\u266D","\\flat",!0);n(l,u,g,"\u2113","\\ell",!0);n(l,u,g,"\u266E","\\natural",!0);n(l,u,g,"\u2663","\\clubsuit",!0);n(l,u,g,"\u2118","\\wp",!0);n(l,u,g,"\u266F","\\sharp",!0);n(l,u,g,"\u2662","\\diamondsuit",!0);n(l,u,g,"\u211C","\\Re",!0);n(l,u,g,"\u2661","\\heartsuit",!0);n(l,u,g,"\u2111","\\Im",!0);n(l,u,g,"\u2660","\\spadesuit",!0);n(l,u,g,"\xA7","\\S",!0);n(S,u,g,"\xA7","\\S");n(l,u,g,"\xB6","\\P",!0);n(S,u,g,"\xB6","\\P");n(l,u,g,"\u2020","\\dag");n(S,u,g,"\u2020","\\dag");n(S,u,g,"\u2020","\\textdagger");n(l,u,g,"\u2021","\\ddag");n(S,u,g,"\u2021","\\ddag");n(S,u,g,"\u2021","\\textdaggerdbl");n(l,u,v0,"\u23B1","\\rmoustache",!0);n(l,u,x0,"\u23B0","\\lmoustache",!0);n(l,u,v0,"\u27EF","\\rgroup",!0);n(l,u,x0,"\u27EE","\\lgroup",!0);n(l,u,R,"\u2213","\\mp",!0);n(l,u,R,"\u2296","\\ominus",!0);n(l,u,R,"\u228E","\\uplus",!0);n(l,u,R,"\u2293","\\sqcap",!0);n(l,u,R,"\u2217","\\ast");n(l,u,R,"\u2294","\\sqcup",!0);n(l,u,R,"\u25EF","\\bigcirc",!0);n(l,u,R,"\u2219","\\bullet",!0);n(l,u,R,"\u2021","\\ddagger");n(l,u,R,"\u2240","\\wr",!0);n(l,u,R,"\u2A3F","\\amalg");n(l,u,R,"&","\\And");n(l,u,p,"\u27F5","\\longleftarrow",!0);n(l,u,p,"\u21D0","\\Leftarrow",!0);n(l,u,p,"\u27F8","\\Longleftarrow",!0);n(l,u,p,"\u27F6","\\longrightarrow",!0);n(l,u,p,"\u21D2","\\Rightarrow",!0);n(l,u,p,"\u27F9","\\Longrightarrow",!0);n(l,u,p,"\u2194","\\leftrightarrow",!0);n(l,u,p,"\u27F7","\\longleftrightarrow",!0);n(l,u,p,"\u21D4","\\Leftrightarrow",!0);n(l,u,p,"\u27FA","\\Longleftrightarrow",!0);n(l,u,p,"\u21A6","\\mapsto",!0);n(l,u,p,"\u27FC","\\longmapsto",!0);n(l,u,p,"\u2197","\\nearrow",!0);n(l,u,p,"\u21A9","\\hookleftarrow",!0);n(l,u,p,"\u21AA","\\hookrightarrow",!0);n(l,u,p,"\u2198","\\searrow",!0);n(l,u,p,"\u21BC","\\leftharpoonup",!0);n(l,u,p,"\u21C0","\\rightharpoonup",!0);n(l,u,p,"\u2199","\\swarrow",!0);n(l,u,p,"\u21BD","\\leftharpoondown",!0);n(l,u,p,"\u21C1","\\rightharpoondown",!0);n(l,u,p,"\u2196","\\nwarrow",!0);n(l,u,p,"\u21CC","\\rightleftharpoons",!0);n(l,f,p,"\u226E","\\nless",!0);n(l,f,p,"\uE010","\\@nleqslant");n(l,f,p,"\uE011","\\@nleqq");n(l,f,p,"\u2A87","\\lneq",!0);n(l,f,p,"\u2268","\\lneqq",!0);n(l,f,p,"\uE00C","\\@lvertneqq");n(l,f,p,"\u22E6","\\lnsim",!0);n(l,f,p,"\u2A89","\\lnapprox",!0);n(l,f,p,"\u2280","\\nprec",!0);n(l,f,p,"\u22E0","\\npreceq",!0);n(l,f,p,"\u22E8","\\precnsim",!0);n(l,f,p,"\u2AB9","\\precnapprox",!0);n(l,f,p,"\u2241","\\nsim",!0);n(l,f,p,"\uE006","\\@nshortmid");n(l,f,p,"\u2224","\\nmid",!0);n(l,f,p,"\u22AC","\\nvdash",!0);n(l,f,p,"\u22AD","\\nvDash",!0);n(l,f,p,"\u22EA","\\ntriangleleft");n(l,f,p,"\u22EC","\\ntrianglelefteq",!0);n(l,f,p,"\u228A","\\subsetneq",!0);n(l,f,p,"\uE01A","\\@varsubsetneq");n(l,f,p,"\u2ACB","\\subsetneqq",!0);n(l,f,p,"\uE017","\\@varsubsetneqq");n(l,f,p,"\u226F","\\ngtr",!0);n(l,f,p,"\uE00F","\\@ngeqslant");n(l,f,p,"\uE00E","\\@ngeqq");n(l,f,p,"\u2A88","\\gneq",!0);n(l,f,p,"\u2269","\\gneqq",!0);n(l,f,p,"\uE00D","\\@gvertneqq");n(l,f,p,"\u22E7","\\gnsim",!0);n(l,f,p,"\u2A8A","\\gnapprox",!0);n(l,f,p,"\u2281","\\nsucc",!0);n(l,f,p,"\u22E1","\\nsucceq",!0);n(l,f,p,"\u22E9","\\succnsim",!0);n(l,f,p,"\u2ABA","\\succnapprox",!0);n(l,f,p,"\u2246","\\ncong",!0);n(l,f,p,"\uE007","\\@nshortparallel");n(l,f,p,"\u2226","\\nparallel",!0);n(l,f,p,"\u22AF","\\nVDash",!0);n(l,f,p,"\u22EB","\\ntriangleright");n(l,f,p,"\u22ED","\\ntrianglerighteq",!0);n(l,f,p,"\uE018","\\@nsupseteqq");n(l,f,p,"\u228B","\\supsetneq",!0);n(l,f,p,"\uE01B","\\@varsupsetneq");n(l,f,p,"\u2ACC","\\supsetneqq",!0);n(l,f,p,"\uE019","\\@varsupsetneqq");n(l,f,p,"\u22AE","\\nVdash",!0);n(l,f,p,"\u2AB5","\\precneqq",!0);n(l,f,p,"\u2AB6","\\succneqq",!0);n(l,f,p,"\uE016","\\@nsubseteqq");n(l,f,R,"\u22B4","\\unlhd");n(l,f,R,"\u22B5","\\unrhd");n(l,f,p,"\u219A","\\nleftarrow",!0);n(l,f,p,"\u219B","\\nrightarrow",!0);n(l,f,p,"\u21CD","\\nLeftarrow",!0);n(l,f,p,"\u21CF","\\nRightarrow",!0);n(l,f,p,"\u21AE","\\nleftrightarrow",!0);n(l,f,p,"\u21CE","\\nLeftrightarrow",!0);n(l,f,p,"\u25B3","\\vartriangle");n(l,f,g,"\u210F","\\hslash");n(l,f,g,"\u25BD","\\triangledown");n(l,f,g,"\u25CA","\\lozenge");n(l,f,g,"\u24C8","\\circledS");n(l,f,g,"\xAE","\\circledR");n(S,f,g,"\xAE","\\circledR");n(l,f,g,"\u2221","\\measuredangle",!0);n(l,f,g,"\u2204","\\nexists");n(l,f,g,"\u2127","\\mho");n(l,f,g,"\u2132","\\Finv",!0);n(l,f,g,"\u2141","\\Game",!0);n(l,f,g,"\u2035","\\backprime");n(l,f,g,"\u25B2","\\blacktriangle");n(l,f,g,"\u25BC","\\blacktriangledown");n(l,f,g,"\u25A0","\\blacksquare");n(l,f,g,"\u29EB","\\blacklozenge");n(l,f,g,"\u2605","\\bigstar");n(l,f,g,"\u2222","\\sphericalangle",!0);n(l,f,g,"\u2201","\\complement",!0);n(l,f,g,"\xF0","\\eth",!0);n(S,u,g,"\xF0","\xF0");n(l,f,g,"\u2571","\\diagup");n(l,f,g,"\u2572","\\diagdown");n(l,f,g,"\u25A1","\\square");n(l,f,g,"\u25A1","\\Box");n(l,f,g,"\u25CA","\\Diamond");n(l,f,g,"\xA5","\\yen",!0);n(S,f,g,"\xA5","\\yen",!0);n(l,f,g,"\u2713","\\checkmark",!0);n(S,f,g,"\u2713","\\checkmark");n(l,f,g,"\u2136","\\beth",!0);n(l,f,g,"\u2138","\\daleth",!0);n(l,f,g,"\u2137","\\gimel",!0);n(l,f,g,"\u03DD","\\digamma",!0);n(l,f,g,"\u03F0","\\varkappa");n(l,f,x0,"\u250C","\\@ulcorner",!0);n(l,f,v0,"\u2510","\\@urcorner",!0);n(l,f,x0,"\u2514","\\@llcorner",!0);n(l,f,v0,"\u2518","\\@lrcorner",!0);n(l,f,p,"\u2266","\\leqq",!0);n(l,f,p,"\u2A7D","\\leqslant",!0);n(l,f,p,"\u2A95","\\eqslantless",!0);n(l,f,p,"\u2272","\\lesssim",!0);n(l,f,p,"\u2A85","\\lessapprox",!0);n(l,f,p,"\u224A","\\approxeq",!0);n(l,f,R,"\u22D6","\\lessdot");n(l,f,p,"\u22D8","\\lll",!0);n(l,f,p,"\u2276","\\lessgtr",!0);n(l,f,p,"\u22DA","\\lesseqgtr",!0);n(l,f,p,"\u2A8B","\\lesseqqgtr",!0);n(l,f,p,"\u2251","\\doteqdot");n(l,f,p,"\u2253","\\risingdotseq",!0);n(l,f,p,"\u2252","\\fallingdotseq",!0);n(l,f,p,"\u223D","\\backsim",!0);n(l,f,p,"\u22CD","\\backsimeq",!0);n(l,f,p,"\u2AC5","\\subseteqq",!0);n(l,f,p,"\u22D0","\\Subset",!0);n(l,f,p,"\u228F","\\sqsubset",!0);n(l,f,p,"\u227C","\\preccurlyeq",!0);n(l,f,p,"\u22DE","\\curlyeqprec",!0);n(l,f,p,"\u227E","\\precsim",!0);n(l,f,p,"\u2AB7","\\precapprox",!0);n(l,f,p,"\u22B2","\\vartriangleleft");n(l,f,p,"\u22B4","\\trianglelefteq");n(l,f,p,"\u22A8","\\vDash",!0);n(l,f,p,"\u22AA","\\Vvdash",!0);n(l,f,p,"\u2323","\\smallsmile");n(l,f,p,"\u2322","\\smallfrown");n(l,f,p,"\u224F","\\bumpeq",!0);n(l,f,p,"\u224E","\\Bumpeq",!0);n(l,f,p,"\u2267","\\geqq",!0);n(l,f,p,"\u2A7E","\\geqslant",!0);n(l,f,p,"\u2A96","\\eqslantgtr",!0);n(l,f,p,"\u2273","\\gtrsim",!0);n(l,f,p,"\u2A86","\\gtrapprox",!0);n(l,f,R,"\u22D7","\\gtrdot");n(l,f,p,"\u22D9","\\ggg",!0);n(l,f,p,"\u2277","\\gtrless",!0);n(l,f,p,"\u22DB","\\gtreqless",!0);n(l,f,p,"\u2A8C","\\gtreqqless",!0);n(l,f,p,"\u2256","\\eqcirc",!0);n(l,f,p,"\u2257","\\circeq",!0);n(l,f,p,"\u225C","\\triangleq",!0);n(l,f,p,"\u223C","\\thicksim");n(l,f,p,"\u2248","\\thickapprox");n(l,f,p,"\u2AC6","\\supseteqq",!0);n(l,f,p,"\u22D1","\\Supset",!0);n(l,f,p,"\u2290","\\sqsupset",!0);n(l,f,p,"\u227D","\\succcurlyeq",!0);n(l,f,p,"\u22DF","\\curlyeqsucc",!0);n(l,f,p,"\u227F","\\succsim",!0);n(l,f,p,"\u2AB8","\\succapprox",!0);n(l,f,p,"\u22B3","\\vartriangleright");n(l,f,p,"\u22B5","\\trianglerighteq");n(l,f,p,"\u22A9","\\Vdash",!0);n(l,f,p,"\u2223","\\shortmid");n(l,f,p,"\u2225","\\shortparallel");n(l,f,p,"\u226C","\\between",!0);n(l,f,p,"\u22D4","\\pitchfork",!0);n(l,f,p,"\u221D","\\varpropto");n(l,f,p,"\u25C0","\\blacktriangleleft");n(l,f,p,"\u2234","\\therefore",!0);n(l,f,p,"\u220D","\\backepsilon");n(l,f,p,"\u25B6","\\blacktriangleright");n(l,f,p,"\u2235","\\because",!0);n(l,f,p,"\u22D8","\\llless");n(l,f,p,"\u22D9","\\gggtr");n(l,f,R,"\u22B2","\\lhd");n(l,f,R,"\u22B3","\\rhd");n(l,f,p,"\u2242","\\eqsim",!0);n(l,u,p,"\u22C8","\\Join");n(l,f,p,"\u2251","\\Doteq",!0);n(l,f,R,"\u2214","\\dotplus",!0);n(l,f,R,"\u2216","\\smallsetminus");n(l,f,R,"\u22D2","\\Cap",!0);n(l,f,R,"\u22D3","\\Cup",!0);n(l,f,R,"\u2A5E","\\doublebarwedge",!0);n(l,f,R,"\u229F","\\boxminus",!0);n(l,f,R,"\u229E","\\boxplus",!0);n(l,f,R,"\u22C7","\\divideontimes",!0);n(l,f,R,"\u22C9","\\ltimes",!0);n(l,f,R,"\u22CA","\\rtimes",!0);n(l,f,R,"\u22CB","\\leftthreetimes",!0);n(l,f,R,"\u22CC","\\rightthreetimes",!0);n(l,f,R,"\u22CF","\\curlywedge",!0);n(l,f,R,"\u22CE","\\curlyvee",!0);n(l,f,R,"\u229D","\\circleddash",!0);n(l,f,R,"\u229B","\\circledast",!0);n(l,f,R,"\u22C5","\\centerdot");n(l,f,R,"\u22BA","\\intercal",!0);n(l,f,R,"\u22D2","\\doublecap");n(l,f,R,"\u22D3","\\doublecup");n(l,f,R,"\u22A0","\\boxtimes",!0);n(l,f,p,"\u21E2","\\dashrightarrow",!0);n(l,f,p,"\u21E0","\\dashleftarrow",!0);n(l,f,p,"\u21C7","\\leftleftarrows",!0);n(l,f,p,"\u21C6","\\leftrightarrows",!0);n(l,f,p,"\u21DA","\\Lleftarrow",!0);n(l,f,p,"\u219E","\\twoheadleftarrow",!0);n(l,f,p,"\u21A2","\\leftarrowtail",!0);n(l,f,p,"\u21AB","\\looparrowleft",!0);n(l,f,p,"\u21CB","\\leftrightharpoons",!0);n(l,f,p,"\u21B6","\\curvearrowleft",!0);n(l,f,p,"\u21BA","\\circlearrowleft",!0);n(l,f,p,"\u21B0","\\Lsh",!0);n(l,f,p,"\u21C8","\\upuparrows",!0);n(l,f,p,"\u21BF","\\upharpoonleft",!0);n(l,f,p,"\u21C3","\\downharpoonleft",!0);n(l,u,p,"\u22B6","\\origof",!0);n(l,u,p,"\u22B7","\\imageof",!0);n(l,f,p,"\u22B8","\\multimap",!0);n(l,f,p,"\u21AD","\\leftrightsquigarrow",!0);n(l,f,p,"\u21C9","\\rightrightarrows",!0);n(l,f,p,"\u21C4","\\rightleftarrows",!0);n(l,f,p,"\u21A0","\\twoheadrightarrow",!0);n(l,f,p,"\u21A3","\\rightarrowtail",!0);n(l,f,p,"\u21AC","\\looparrowright",!0);n(l,f,p,"\u21B7","\\curvearrowright",!0);n(l,f,p,"\u21BB","\\circlearrowright",!0);n(l,f,p,"\u21B1","\\Rsh",!0);n(l,f,p,"\u21CA","\\downdownarrows",!0);n(l,f,p,"\u21BE","\\upharpoonright",!0);n(l,f,p,"\u21C2","\\downharpoonright",!0);n(l,f,p,"\u21DD","\\rightsquigarrow",!0);n(l,f,p,"\u21DD","\\leadsto");n(l,f,p,"\u21DB","\\Rrightarrow",!0);n(l,f,p,"\u21BE","\\restriction");n(l,u,g,"\u2018","`");n(l,u,g,"$","\\$");n(S,u,g,"$","\\$");n(S,u,g,"$","\\textdollar");n(l,u,g,"%","\\%");n(S,u,g,"%","\\%");n(l,u,g,"_","\\_");n(S,u,g,"_","\\_");n(S,u,g,"_","\\textunderscore");n(l,u,g,"\u2220","\\angle",!0);n(l,u,g,"\u221E","\\infty",!0);n(l,u,g,"\u2032","\\prime");n(l,u,g,"\u25B3","\\triangle");n(l,u,g,"\u0393","\\Gamma",!0);n(l,u,g,"\u0394","\\Delta",!0);n(l,u,g,"\u0398","\\Theta",!0);n(l,u,g,"\u039B","\\Lambda",!0);n(l,u,g,"\u039E","\\Xi",!0);n(l,u,g,"\u03A0","\\Pi",!0);n(l,u,g,"\u03A3","\\Sigma",!0);n(l,u,g,"\u03A5","\\Upsilon",!0);n(l,u,g,"\u03A6","\\Phi",!0);n(l,u,g,"\u03A8","\\Psi",!0);n(l,u,g,"\u03A9","\\Omega",!0);n(l,u,g,"A","\u0391");n(l,u,g,"B","\u0392");n(l,u,g,"E","\u0395");n(l,u,g,"Z","\u0396");n(l,u,g,"H","\u0397");n(l,u,g,"I","\u0399");n(l,u,g,"K","\u039A");n(l,u,g,"M","\u039C");n(l,u,g,"N","\u039D");n(l,u,g,"O","\u039F");n(l,u,g,"P","\u03A1");n(l,u,g,"T","\u03A4");n(l,u,g,"X","\u03A7");n(l,u,g,"\xAC","\\neg",!0);n(l,u,g,"\xAC","\\lnot");n(l,u,g,"\u22A4","\\top");n(l,u,g,"\u22A5","\\bot");n(l,u,g,"\u2205","\\emptyset");n(l,f,g,"\u2205","\\varnothing");n(l,u,O,"\u03B1","\\alpha",!0);n(l,u,O,"\u03B2","\\beta",!0);n(l,u,O,"\u03B3","\\gamma",!0);n(l,u,O,"\u03B4","\\delta",!0);n(l,u,O,"\u03F5","\\epsilon",!0);n(l,u,O,"\u03B6","\\zeta",!0);n(l,u,O,"\u03B7","\\eta",!0);n(l,u,O,"\u03B8","\\theta",!0);n(l,u,O,"\u03B9","\\iota",!0);n(l,u,O,"\u03BA","\\kappa",!0);n(l,u,O,"\u03BB","\\lambda",!0);n(l,u,O,"\u03BC","\\mu",!0);n(l,u,O,"\u03BD","\\nu",!0);n(l,u,O,"\u03BE","\\xi",!0);n(l,u,O,"\u03BF","\\omicron",!0);n(l,u,O,"\u03C0","\\pi",!0);n(l,u,O,"\u03C1","\\rho",!0);n(l,u,O,"\u03C3","\\sigma",!0);n(l,u,O,"\u03C4","\\tau",!0);n(l,u,O,"\u03C5","\\upsilon",!0);n(l,u,O,"\u03D5","\\phi",!0);n(l,u,O,"\u03C7","\\chi",!0);n(l,u,O,"\u03C8","\\psi",!0);n(l,u,O,"\u03C9","\\omega",!0);n(l,u,O,"\u03B5","\\varepsilon",!0);n(l,u,O,"\u03D1","\\vartheta",!0);n(l,u,O,"\u03D6","\\varpi",!0);n(l,u,O,"\u03F1","\\varrho",!0);n(l,u,O,"\u03C2","\\varsigma",!0);n(l,u,O,"\u03C6","\\varphi",!0);n(l,u,R,"\u2217","*",!0);n(l,u,R,"+","+");n(l,u,R,"\u2212","-",!0);n(l,u,R,"\u22C5","\\cdot",!0);n(l,u,R,"\u2218","\\circ",!0);n(l,u,R,"\xF7","\\div",!0);n(l,u,R,"\xB1","\\pm",!0);n(l,u,R,"\xD7","\\times",!0);n(l,u,R,"\u2229","\\cap",!0);n(l,u,R,"\u222A","\\cup",!0);n(l,u,R,"\u2216","\\setminus",!0);n(l,u,R,"\u2227","\\land");n(l,u,R,"\u2228","\\lor");n(l,u,R,"\u2227","\\wedge",!0);n(l,u,R,"\u2228","\\vee",!0);n(l,u,g,"\u221A","\\surd");n(l,u,x0,"\u27E8","\\langle",!0);n(l,u,x0,"\u2223","\\lvert");n(l,u,x0,"\u2225","\\lVert");n(l,u,v0,"?","?");n(l,u,v0,"!","!");n(l,u,v0,"\u27E9","\\rangle",!0);n(l,u,v0,"\u2223","\\rvert");n(l,u,v0,"\u2225","\\rVert");n(l,u,p,"=","=");n(l,u,p,":",":");n(l,u,p,"\u2248","\\approx",!0);n(l,u,p,"\u2245","\\cong",!0);n(l,u,p,"\u2265","\\ge");n(l,u,p,"\u2265","\\geq",!0);n(l,u,p,"\u2190","\\gets");n(l,u,p,">","\\gt",!0);n(l,u,p,"\u2208","\\in",!0);n(l,u,p,"\uE020","\\@not");n(l,u,p,"\u2282","\\subset",!0);n(l,u,p,"\u2283","\\supset",!0);n(l,u,p,"\u2286","\\subseteq",!0);n(l,u,p,"\u2287","\\supseteq",!0);n(l,f,p,"\u2288","\\nsubseteq",!0);n(l,f,p,"\u2289","\\nsupseteq",!0);n(l,u,p,"\u22A8","\\models");n(l,u,p,"\u2190","\\leftarrow",!0);n(l,u,p,"\u2264","\\le");n(l,u,p,"\u2264","\\leq",!0);n(l,u,p,"<","\\lt",!0);n(l,u,p,"\u2192","\\rightarrow",!0);n(l,u,p,"\u2192","\\to");n(l,f,p,"\u2271","\\ngeq",!0);n(l,f,p,"\u2270","\\nleq",!0);n(l,u,j0,"\xA0","\\ ");n(l,u,j0,"\xA0","\\space");n(l,u,j0,"\xA0","\\nobreakspace");n(S,u,j0,"\xA0","\\ ");n(S,u,j0,"\xA0"," ");n(S,u,j0,"\xA0","\\space");n(S,u,j0,"\xA0","\\nobreakspace");n(l,u,j0,"","\\nobreak");n(l,u,j0,"","\\allowbreak");n(l,u,Ve,",",",");n(l,u,Ve,";",";");n(l,f,R,"\u22BC","\\barwedge",!0);n(l,f,R,"\u22BB","\\veebar",!0);n(l,u,R,"\u2299","\\odot",!0);n(l,u,R,"\u2295","\\oplus",!0);n(l,u,R,"\u2297","\\otimes",!0);n(l,u,g,"\u2202","\\partial",!0);n(l,u,R,"\u2298","\\oslash",!0);n(l,f,R,"\u229A","\\circledcirc",!0);n(l,f,R,"\u22A1","\\boxdot",!0);n(l,u,R,"\u25B3","\\bigtriangleup");n(l,u,R,"\u25BD","\\bigtriangledown");n(l,u,R,"\u2020","\\dagger");n(l,u,R,"\u22C4","\\diamond");n(l,u,R,"\u22C6","\\star");n(l,u,R,"\u25C3","\\triangleleft");n(l,u,R,"\u25B9","\\triangleright");n(l,u,x0,"{","\\{");n(S,u,g,"{","\\{");n(S,u,g,"{","\\textbraceleft");n(l,u,v0,"}","\\}");n(S,u,g,"}","\\}");n(S,u,g,"}","\\textbraceright");n(l,u,x0,"{","\\lbrace");n(l,u,v0,"}","\\rbrace");n(l,u,x0,"[","\\lbrack",!0);n(S,u,g,"[","\\lbrack",!0);n(l,u,v0,"]","\\rbrack",!0);n(S,u,g,"]","\\rbrack",!0);n(l,u,x0,"(","\\lparen",!0);n(l,u,v0,")","\\rparen",!0);n(S,u,g,"<","\\textless",!0);n(S,u,g,">","\\textgreater",!0);n(l,u,x0,"\u230A","\\lfloor",!0);n(l,u,v0,"\u230B","\\rfloor",!0);n(l,u,x0,"\u2308","\\lceil",!0);n(l,u,v0,"\u2309","\\rceil",!0);n(l,u,g,"\\","\\backslash");n(l,u,g,"\u2223","|");n(l,u,g,"\u2223","\\vert");n(S,u,g,"|","\\textbar",!0);n(l,u,g,"\u2225","\\|");n(l,u,g,"\u2225","\\Vert");n(S,u,g,"\u2225","\\textbardbl");n(S,u,g,"~","\\textasciitilde");n(S,u,g,"\\","\\textbackslash");n(S,u,g,"^","\\textasciicircum");n(l,u,p,"\u2191","\\uparrow",!0);n(l,u,p,"\u21D1","\\Uparrow",!0);n(l,u,p,"\u2193","\\downarrow",!0);n(l,u,p,"\u21D3","\\Downarrow",!0);n(l,u,p,"\u2195","\\updownarrow",!0);n(l,u,p,"\u21D5","\\Updownarrow",!0);n(l,u,s0,"\u2210","\\coprod");n(l,u,s0,"\u22C1","\\bigvee");n(l,u,s0,"\u22C0","\\bigwedge");n(l,u,s0,"\u2A04","\\biguplus");n(l,u,s0,"\u22C2","\\bigcap");n(l,u,s0,"\u22C3","\\bigcup");n(l,u,s0,"\u222B","\\int");n(l,u,s0,"\u222B","\\intop");n(l,u,s0,"\u222C","\\iint");n(l,u,s0,"\u222D","\\iiint");n(l,u,s0,"\u220F","\\prod");n(l,u,s0,"\u2211","\\sum");n(l,u,s0,"\u2A02","\\bigotimes");n(l,u,s0,"\u2A01","\\bigoplus");n(l,u,s0,"\u2A00","\\bigodot");n(l,u,s0,"\u222E","\\oint");n(l,u,s0,"\u222F","\\oiint");n(l,u,s0,"\u2230","\\oiiint");n(l,u,s0,"\u2A06","\\bigsqcup");n(l,u,s0,"\u222B","\\smallint");n(S,u,Te,"\u2026","\\textellipsis");n(l,u,Te,"\u2026","\\mathellipsis");n(S,u,Te,"\u2026","\\ldots",!0);n(l,u,Te,"\u2026","\\ldots",!0);n(l,u,Te,"\u22EF","\\@cdots",!0);n(l,u,Te,"\u22F1","\\ddots",!0);n(l,u,g,"\u22EE","\\varvdots");n(S,u,g,"\u22EE","\\varvdots");n(l,u,J,"\u02CA","\\acute");n(l,u,J,"\u02CB","\\grave");n(l,u,J,"\xA8","\\ddot");n(l,u,J,"~","\\tilde");n(l,u,J,"\u02C9","\\bar");n(l,u,J,"\u02D8","\\breve");n(l,u,J,"\u02C7","\\check");n(l,u,J,"^","\\hat");n(l,u,J,"\u20D7","\\vec");n(l,u,J,"\u02D9","\\dot");n(l,u,J,"\u02DA","\\mathring");n(l,u,O,"\uE131","\\@imath");n(l,u,O,"\uE237","\\@jmath");n(l,u,g,"\u0131","\u0131");n(l,u,g,"\u0237","\u0237");n(S,u,g,"\u0131","\\i",!0);n(S,u,g,"\u0237","\\j",!0);n(S,u,g,"\xDF","\\ss",!0);n(S,u,g,"\xE6","\\ae",!0);n(S,u,g,"\u0153","\\oe",!0);n(S,u,g,"\xF8","\\o",!0);n(S,u,g,"\xC6","\\AE",!0);n(S,u,g,"\u0152","\\OE",!0);n(S,u,g,"\xD8","\\O",!0);n(S,u,J,"\u02CA","\\'");n(S,u,J,"\u02CB","\\`");n(S,u,J,"\u02C6","\\^");n(S,u,J,"\u02DC","\\~");n(S,u,J,"\u02C9","\\=");n(S,u,J,"\u02D8","\\u");n(S,u,J,"\u02D9","\\.");n(S,u,J,"\xB8","\\c");n(S,u,J,"\u02DA","\\r");n(S,u,J,"\u02C7","\\v");n(S,u,J,"\xA8",'\\"');n(S,u,J,"\u02DD","\\H");n(S,u,J,"\u25EF","\\textcircled");var Gi={"--":!0,"---":!0,"``":!0,"''":!0};n(S,u,g,"\u2013","--",!0);n(S,u,g,"\u2013","\\textendash");n(S,u,g,"\u2014","---",!0);n(S,u,g,"\u2014","\\textemdash");n(S,u,g,"\u2018","`",!0);n(S,u,g,"\u2018","\\textquoteleft");n(S,u,g,"\u2019","'",!0);n(S,u,g,"\u2019","\\textquoteright");n(S,u,g,"\u201C","``",!0);n(S,u,g,"\u201C","\\textquotedblleft");n(S,u,g,"\u201D","''",!0);n(S,u,g,"\u201D","\\textquotedblright");n(l,u,g,"\xB0","\\degree",!0);n(S,u,g,"\xB0","\\degree");n(S,u,g,"\xB0","\\textdegree",!0);n(l,u,g,"\xA3","\\pounds");n(l,u,g,"\xA3","\\mathsterling",!0);n(S,u,g,"\xA3","\\pounds");n(S,u,g,"\xA3","\\textsterling",!0);n(l,f,g,"\u2720","\\maltese");n(S,f,g,"\u2720","\\maltese");var ti='0123456789/@."';for(yt=0;yt{var e=t.charCodeAt(0),r=t.charCodeAt(1),a=(e-55296)*1024+(r-56320)+65536;if(119808<=a&&a<120484){var i=Math.floor((a-119808)/26);return ui[i]}else if(120782<=a&&a<=120831){var s=Math.floor((a-120782)/10);return Lo[s]}else{if(a===120485||a===120486)return ui[0];if(120486{if(_0(t.classes)!==_0(e.classes)||t.skew!==e.skew||t.maxFontSize!==e.maxFontSize||t.italic!==0&&t.hasClass("mathnormal"))return!1;if(t.classes.length===1){var r=t.classes[0];if(r==="mbin"||r==="mord")return!1}for(var a of Object.keys(t.style))if(t.style[a]!==e.style[a])return!1;for(var i of Object.keys(e.style))if(t.style[i]!==e.style[i])return!1;return!0},Ui=t=>{for(var e=0;er&&(r=o.height),o.depth>a&&(a=o.depth),o.maxFontSize>i&&(i=o.maxFontSize)}e.height=r,e.depth=a,e.maxFontSize=i},A=function(e,r,a,i){var s=new ee(e,r,a,i);return Gr(s),s},te=(t,e,r,a)=>new ee(t,e,r,a),Ae=function(e,r,a){var i=A([e],[],r);return i.height=Math.max(a||r.fontMetrics().defaultRuleThickness,r.minRuleThickness),i.style.borderBottomWidth=C(i.height),i.maxFontSize=1,i},Uo=function(e,r,a,i){var s=new ke(e,r,a,i);return Gr(s),s},Y0=function(e){var r=new Q0(e);return Gr(r),r},ze=function(e,r){return e instanceof Q0?A([],[e],r):e},$o=function(e){if(e.positionType==="individualShift"){for(var r=e.children,a=[r[0]],i=-r[0].shift-r[0].elem.depth,s=i,o=1;o{var r=A(["mspace"],[],e),a=t0(t,e);return r.style.marginRight=C(a),r},kt=(t,e,r)=>{var a,i;switch(t){case"amsrm":a="AMS";break;case"textrm":a="Main";break;case"textsf":a="SansSerif";break;case"texttt":a="Typewriter";break;default:a=t}return e==="textbf"&&r==="textit"?i="BoldItalic":e==="textbf"?i="Bold":r==="textit"?i="Italic":i="Regular",a+"-"+i},zr={mathbf:{variant:"bold",fontName:"Main-Bold"},mathrm:{variant:"normal",fontName:"Main-Regular"},textit:{variant:"italic",fontName:"Main-Italic"},mathit:{variant:"italic",fontName:"Main-Italic"},mathnormal:{variant:"italic",fontName:"Math-Italic"},mathsfit:{variant:"sans-serif-italic",fontName:"SansSerif-Italic"},mathbb:{variant:"double-struck",fontName:"AMS-Regular"},mathcal:{variant:"script",fontName:"Caligraphic-Regular"},mathfrak:{variant:"fraktur",fontName:"Fraktur-Regular"},mathscr:{variant:"script",fontName:"Script-Regular"},mathsf:{variant:"sans-serif",fontName:"SansSerif-Regular"},mathtt:{variant:"monospace",fontName:"Typewriter-Regular"}},Vi={vec:["vec",.471,.714],oiintSize1:["oiintSize1",.957,.499],oiintSize2:["oiintSize2",1.472,.659],oiiintSize1:["oiiintSize1",1.304,.499],oiiintSize2:["oiiintSize2",1.98,.659]},ji=function(e,r){var a=Vi[e],i=a[0],s=a[1],o=a[2],c=new q0(i),m=new D0([c],{width:C(s),height:C(o),style:"width:"+C(s),viewBox:"0 0 "+1e3*s+" "+1e3*o,preserveAspectRatio:"xMinYMin"}),d=te(["katex-overlay"],[m],r);return d.height=o,d.style.height=C(o),d.style.width=C(s),d},e0={number:3,unit:"mu"},le={number:4,unit:"mu"},U0={number:5,unit:"mu"},Vo={mord:{mop:e0,mbin:le,mrel:U0,minner:e0},mop:{mord:e0,mop:e0,mrel:U0,minner:e0},mbin:{mord:le,mop:le,mopen:le,minner:le},mrel:{mord:U0,mop:U0,mopen:U0,minner:U0},mopen:{},mclose:{mop:e0,mbin:le,mrel:U0,minner:e0},mpunct:{mord:e0,mop:e0,mrel:U0,mopen:e0,mclose:e0,mpunct:e0,minner:e0},minner:{mord:e0,mop:e0,mbin:le,mrel:U0,mopen:e0,mpunct:e0,minner:e0}},jo={mord:{mop:e0},mop:{mord:e0,mop:e0},mbin:{},mrel:{},mopen:{},mclose:{mop:e0},mpunct:{},minner:{mop:e0}},Yi={},Pe={},Ge={};function B(t){for(var e=t.type,r=t.names,a=t.htmlBuilder,i=t.mathmlBuilder,s=0;s{var D=M.classes[0],E=k.classes[0];D==="mbin"&&Xo.has(E)?M.classes[0]="mord":E==="mbin"&&Yo.has(D)&&(k.classes[0]="mord")},{node:b},y,x),Tr(s,(k,M)=>{var D,E,q=Dr(M),N=Dr(k),F=q&&N?k.hasClass("mtight")?(D=jo[q])==null?void 0:D[N]:(E=Vo[q])==null?void 0:E[N]:null;if(F)return $i(F,d)},{node:b},y,x),s},Tr=function(e,r,a,i,s){i&&e.push(i);for(var o=0;oy=>{e.splice(b+1,0,y),o++})(o)}i&&e.pop()},Xi=function(e){return e instanceof Q0||e instanceof ke||e instanceof ee&&e.hasClass("enclosing")?e:null},Mr=function(e,r){var a=Xi(e);if(a){var i=a.children;if(i.length){if(r==="right")return Mr(i[i.length-1],"right");if(r==="left")return Mr(i[0],"left")}}return e},Dr=function(e,r){if(!e)return null;r&&(e=Mr(e,r));var a=e.classes[0];return Zo[a]||null},$e=function(e,r){var a=["nulldelimiter"].concat(e.baseSizingClasses());return A(r.concat(a))},V=function(e,r,a){if(!e)return A();if(Pe[e.type]){var i=Pe[e.type](e,r);if(a&&r.size!==a.size){i=A(r.sizingClasses(a),[i],r);var s=r.sizeMultiplier/a.sizeMultiplier;i.height*=s,i.depth*=s}return i}else throw new z("Got group of unknown type: '"+e.type+"'")};function At(t,e){var r=A(["katex-base"],t,e),a=A(["katex-strut"]);return a.style.height=C(r.height+r.depth),r.depth&&(a.style.verticalAlign=C(-r.depth)),r.children.unshift(a),r}function Cr(t,e){var r=null;t.length===1&&t[0].type==="tag"&&(r=t[0].tag,t=t[0].body);var a=o0(t,e,"root"),i;a.length===2&&a[1].hasClass("katex-tag")&&(i=a.pop());for(var s=[],o=[],c=0;c0&&(s.push(At(o,e)),o=[]),s.push(a[c]));o.length>0&&s.push(At(o,e));var d;r?(d=At(o0(r,e,!0),e),d.classes=["katex-tag"],s.push(d)):i&&s.push(i);var v=A(["katex-html"],s);if(v.setAttribute("aria-hidden","true"),d){var b=d.children[0];b.style.height=C(v.height+v.depth),v.depth&&(b.style.verticalAlign=C(-v.depth))}return v}function Wi(t){return new Q0(t)}var T=class{constructor(e,r,a){this.type=void 0,this.attributes=void 0,this.children=void 0,this.classes=void 0,this.type=e,this.attributes={},this.children=r||[],this.classes=a||[]}setAttribute(e,r){this.attributes[e]=r}getAttribute(e){return this.attributes[e]}toNode(){var e=document.createElementNS("http://www.w3.org/1998/Math/MathML",this.type);for(var r of Object.entries(this.attributes)){var a=r[0],i=r[1];e.setAttribute(a,i)}this.classes.length>0&&(e.className=_0(this.classes));for(var s=0;s0&&(e+=' class ="'+h0(_0(this.classes))+'"'),e+=">";for(var s=0;s",e}toText(){return this.children.map(e=>e.toText()).join("")}},r0=class{constructor(e){this.text=void 0,this.text=e}toNode(){return document.createTextNode(this.text)}toMarkup(){return h0(this.toText())}toText(){return this.text}},qt=class{constructor(e){this.width=void 0,this.character=void 0,this.width=e,e>=.05555&&e<=.05556?this.character="\u200A":e>=.1666&&e<=.1667?this.character="\u2009":e>=.2222&&e<=.2223?this.character="\u2005":e>=.2777&&e<=.2778?this.character="\u2005\u200A":e>=-.05556&&e<=-.05555?this.character="\u200A\u2063":e>=-.1667&&e<=-.1666?this.character="\u2009\u2063":e>=-.2223&&e<=-.2222?this.character="\u205F\u2063":e>=-.2778&&e<=-.2777?this.character="\u2005\u2063":this.character=null}toNode(){if(this.character)return document.createTextNode(this.character);var e=document.createElementNS("http://www.w3.org/1998/Math/MathML","mspace");return e.setAttribute("width",C(this.width)),e}toMarkup(){return this.character?""+this.character+"":''}toText(){return this.character?this.character:" "}},Ko=new Set(["\\imath","\\jmath"]),Jo=new Set(["mrow","mtable"]),z0=function(e,r,a){var i,s;return K[r][e]&&K[r][e].replace&&e.charCodeAt(0)!==55349&&!(Object.prototype.hasOwnProperty.call(Gi,e)&&((a==null||(i=a.fontFamily)==null?void 0:i.slice(4,6))==="tt"||(a==null||(s=a.font)==null?void 0:s.slice(4,6))==="tt"))&&(e=K[r][e].replace),new r0(e)},Ur=function(e){return e.length===1?e[0]:new T("mrow",e)},Qo={mathit:"italic",boldsymbol:t=>t.type==="textord"?"bold":"bold-italic",mathbf:"bold",mathbb:"double-struck",mathsfit:"sans-serif-italic",mathfrak:"fraktur",mathscr:"script",mathcal:"script",mathsf:"sans-serif",mathtt:"monospace"},$r=(t,e)=>{if(t.mode==="text"){if(e.fontFamily==="texttt")return"monospace";if(e.fontFamily==="textsf")return e.fontShape==="textit"&&e.fontWeight==="textbf"?"sans-serif-bold-italic":e.fontShape==="textit"?"sans-serif-italic":e.fontWeight==="textbf"?"bold-sans-serif":"sans-serif";if(e.fontShape==="textit"&&e.fontWeight==="textbf")return"bold-italic";if(e.fontShape==="textit")return"italic";if(e.fontWeight==="textbf")return"bold"}var r=e.font;if(!r||r==="mathnormal")return null;var a=t.mode,i=Qo[r];if(i)return typeof i=="function"?i(t):i;var s=t.text;if(Ko.has(s))return null;if(K[a][s]){var o=K[a][s].replace;o&&(s=o)}var c=zr[r].fontName;return Hr(s,c,a)?zr[r].variant:null};function lr(t){if(!t)return!1;if(t.type==="mi"&&t.children.length===1){var e=t.children[0];return e instanceof r0&&e.text==="."}else if(t.type==="mo"&&t.children.length===1&&t.getAttribute("separator")==="true"&&t.getAttribute("lspace")==="0em"&&t.getAttribute("rspace")==="0em"){var r=t.children[0];return r instanceof r0&&r.text===","}else return!1}var w0=function(e,r,a){if(e.length===1){var i=W(e[0],r);return a&&i instanceof T&&i.type==="mo"&&(i.setAttribute("lspace","0em"),i.setAttribute("rspace","0em")),[i]}for(var s=[],o,c=0;c=1&&(o.type==="mn"||lr(o))){var d=m.children[0];d instanceof T&&d.type==="mn"&&(d.children=[...o.children,...d.children],s.pop())}else if(o.type==="mi"&&o.children.length===1){var v=o.children[0];if(v instanceof r0&&v.text==="\u0338"&&(m.type==="mo"||m.type==="mi"||m.type==="mn")){var b=m.children[0];b instanceof r0&&b.text.length>0&&(b.text=b.text.slice(0,1)+"\u0338"+b.text.slice(1),s.pop())}}}s.push(m),o=m}return s},re=function(e,r,a){return Ur(w0(e,r,a))},W=function(e,r){if(!e)return new T("mrow");if(Ge[e.type])return Ge[e.type](e,r);throw new z("Got group of unknown type: '"+e.type+"'")};function ci(t,e,r,a,i){var s=w0(t,r),o;s.length===1&&s[0]instanceof T&&Jo.has(s[0].type)?o=s[0]:o=new T("mrow",s);var c=new T("annotation",[new r0(e)]);c.setAttribute("encoding","application/x-tex");var m=new T("semantics",[o,c]),d=new T("math",[m]);d.setAttribute("xmlns","http://www.w3.org/1998/Math/MathML"),a&&d.setAttribute("display","block");var v=i?"katex":"katex-mathml";return A([v],[d])}var _o=[[1,1,1],[2,1,1],[3,1,1],[4,2,1],[5,2,1],[6,3,1],[7,4,2],[8,6,3],[9,7,6],[10,8,7],[11,10,9]],hi=[.5,.6,.7,.8,.9,1,1.2,1.44,1.728,2.074,2.488],mi=function(e,r){return r.size<2?e:_o[e-1][r.size-1]},Rt=class t{constructor(e){this.style=void 0,this.color=void 0,this.size=void 0,this.textSize=void 0,this.phantom=void 0,this.font=void 0,this.fontFamily=void 0,this.fontWeight=void 0,this.fontShape=void 0,this.sizeMultiplier=void 0,this.maxSize=void 0,this.minRuleThickness=void 0,this._fontMetrics=void 0,this.style=e.style,this.color=e.color,this.size=e.size||t.BASESIZE,this.textSize=e.textSize||this.size,this.phantom=!!e.phantom,this.font=e.font||"",this.fontFamily=e.fontFamily||"",this.fontWeight=e.fontWeight||"",this.fontShape=e.fontShape||"",this.sizeMultiplier=hi[this.size-1],this.maxSize=e.maxSize,this.minRuleThickness=e.minRuleThickness,this._fontMetrics=void 0}extend(e){var r={style:this.style,size:this.size,textSize:this.textSize,color:this.color,phantom:this.phantom,font:this.font,fontFamily:this.fontFamily,fontWeight:this.fontWeight,fontShape:this.fontShape,maxSize:this.maxSize,minRuleThickness:this.minRuleThickness};return Object.assign(r,e),new t(r)}havingStyle(e){return this.style===e?this:this.extend({style:e,size:mi(this.textSize,e)})}havingCrampedStyle(){return this.havingStyle(this.style.cramp())}havingSize(e){return this.size===e&&this.textSize===e?this:this.extend({style:this.style.text(),size:e,textSize:e,sizeMultiplier:hi[e-1]})}havingBaseStyle(e){e=e||this.style.text();var r=mi(t.BASESIZE,e);return this.size===r&&this.textSize===t.BASESIZE&&this.style===e?this:this.extend({style:e,size:r})}havingBaseSizing(){var e;switch(this.style.id){case 4:case 5:e=3;break;case 6:case 7:e=1;break;default:e=6}return this.extend({style:this.style.text(),size:e})}withColor(e){return this.extend({color:e})}withPhantom(){return this.extend({phantom:!0})}withFont(e){return this.extend({font:e})}withTextFontFamily(e){return this.extend({fontFamily:e,font:""})}withTextFontWeight(e){return this.extend({fontWeight:e,font:""})}withTextFontShape(e){return this.extend({fontShape:e,font:""})}sizingClasses(e){return e.size!==this.size?["katex-sizing","reset-size"+e.size,"size"+this.size]:[]}baseSizingClasses(){return this.size!==t.BASESIZE?["katex-sizing","reset-size"+this.size,"size"+t.BASESIZE]:[]}fontMetrics(){return this._fontMetrics||(this._fontMetrics=Oo(this.size)),this._fontMetrics}getColor(){return this.phantom?"transparent":this.color}};Rt.BASESIZE=6;var Zi=function(e){return new Rt({style:e.displayMode?G.DISPLAY:G.TEXT,maxSize:e.maxSize,minRuleThickness:e.minRuleThickness})},Ki=function(e,r){if(r.displayMode){var a=["katex-display"];r.leqno&&a.push("leqno"),r.fleqn&&a.push("fleqn"),e=A(a,[e])}return e},e2=function(e,r,a){var i=Zi(a),s;if(a.output==="mathml")return ci(e,r,i,a.displayMode,!0);if(a.output==="html"){var o=Cr(e,i);s=A(["katex"],[o])}else{var c=ci(e,r,i,a.displayMode,!1),m=Cr(e,i);s=A(["katex"],[c,m])}return Ki(s,a)},t2=function(e,r,a){var i=Zi(a),s=Cr(e,i),o=A(["katex"],[s]);return Ki(o,a)},r2={widehat:"^",widecheck:"\u02C7",widetilde:"~",utilde:"~",overleftarrow:"\u2190",underleftarrow:"\u2190",xleftarrow:"\u2190",overrightarrow:"\u2192",underrightarrow:"\u2192",xrightarrow:"\u2192",underbrace:"\u23DF",overbrace:"\u23DE",underbracket:"\u23B5",overbracket:"\u23B4",overgroup:"\u23E0",undergroup:"\u23E1",overleftrightarrow:"\u2194",underleftrightarrow:"\u2194",xleftrightarrow:"\u2194",Overrightarrow:"\u21D2",xRightarrow:"\u21D2",overleftharpoon:"\u21BC",xleftharpoonup:"\u21BC",overrightharpoon:"\u21C0",xrightharpoonup:"\u21C0",xLeftarrow:"\u21D0",xLeftrightarrow:"\u21D4",xhookleftarrow:"\u21A9",xhookrightarrow:"\u21AA",xmapsto:"\u21A6",xrightharpoondown:"\u21C1",xleftharpoondown:"\u21BD",xrightleftharpoons:"\u21CC",xleftrightharpoons:"\u21CB",xtwoheadleftarrow:"\u219E",xtwoheadrightarrow:"\u21A0",xlongequal:"=",xtofrom:"\u21C4",xrightleftarrows:"\u21C4",xrightequilibrium:"\u21CC",xleftequilibrium:"\u21CB","\\cdrightarrow":"\u2192","\\cdleftarrow":"\u2190","\\cdlongequal":"="},Lt=function(e){var r=new T("mo",[new r0(r2[e.replace(/^\\/,"")])]);return r.setAttribute("stretchy","true"),r},a2={overrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],overleftarrow:[["leftarrow"],.888,522,"xMinYMin"],underrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],underleftarrow:[["leftarrow"],.888,522,"xMinYMin"],xrightarrow:[["rightarrow"],1.469,522,"xMaxYMin"],"\\cdrightarrow":[["rightarrow"],3,522,"xMaxYMin"],xleftarrow:[["leftarrow"],1.469,522,"xMinYMin"],"\\cdleftarrow":[["leftarrow"],3,522,"xMinYMin"],Overrightarrow:[["doublerightarrow"],.888,560,"xMaxYMin"],xRightarrow:[["doublerightarrow"],1.526,560,"xMaxYMin"],xLeftarrow:[["doubleleftarrow"],1.526,560,"xMinYMin"],overleftharpoon:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoonup:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoondown:[["leftharpoondown"],.888,522,"xMinYMin"],overrightharpoon:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoonup:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoondown:[["rightharpoondown"],.888,522,"xMaxYMin"],xlongequal:[["longequal"],.888,334,"xMinYMin"],"\\cdlongequal":[["longequal"],3,334,"xMinYMin"],xtwoheadleftarrow:[["twoheadleftarrow"],.888,334,"xMinYMin"],xtwoheadrightarrow:[["twoheadrightarrow"],.888,334,"xMaxYMin"],overleftrightarrow:[["leftarrow","rightarrow"],.888,522],overbrace:[["leftbrace","midbrace","rightbrace"],1.6,548],underbrace:[["leftbraceunder","midbraceunder","rightbraceunder"],1.6,548],underleftrightarrow:[["leftarrow","rightarrow"],.888,522],xleftrightarrow:[["leftarrow","rightarrow"],1.75,522],xLeftrightarrow:[["doubleleftarrow","doublerightarrow"],1.75,560],xrightleftharpoons:[["leftharpoondownplus","rightharpoonplus"],1.75,716],xleftrightharpoons:[["leftharpoonplus","rightharpoondownplus"],1.75,716],xhookleftarrow:[["leftarrow","righthook"],1.08,522],xhookrightarrow:[["lefthook","rightarrow"],1.08,522],overlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],underlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],overbracket:[["leftbracketover","rightbracketover"],1.6,440],underbracket:[["leftbracketunder","rightbracketunder"],1.6,410],overgroup:[["leftgroup","rightgroup"],.888,342],undergroup:[["leftgroupunder","rightgroupunder"],.888,342],xmapsto:[["leftmapsto","rightarrow"],1.5,522],xtofrom:[["leftToFrom","rightToFrom"],1.75,528],xrightleftarrows:[["baraboveleftarrow","rightarrowabovebar"],1.75,901],xrightequilibrium:[["baraboveshortleftharpoon","rightharpoonaboveshortbar"],1.75,716],xleftequilibrium:[["shortbaraboveleftharpoon","shortrightharpoonabovebar"],1.75,716]},i2=new Set(["widehat","widecheck","widetilde","utilde"]),Ht=function(e,r){function a(){var m=4e5,d=e.label.slice(1);if(i2.has(d)&&"base"in e){var v=e.base.type==="ordgroup"?e.base.body.length:1,b,y,x;if(v>5)d==="widehat"||d==="widecheck"?(b=420,m=2364,x=.42,y=d+"4"):(b=312,m=2340,x=.34,y="tilde4");else{var k=[1,1,2,2,3,3][v];d==="widehat"||d==="widecheck"?(m=[0,1062,2364,2364,2364][k],b=[0,239,300,360,420][k],x=[0,.24,.3,.3,.36,.42][k],y=d+k):(m=[0,600,1033,2339,2340][k],b=[0,260,286,306,312][k],x=[0,.26,.286,.3,.306,.34][k],y="tilde"+k)}var M=new q0(y),D=new D0([M],{width:"100%",height:C(x),viewBox:"0 0 "+m+" "+b,preserveAspectRatio:"none"});return{span:te([],[D],r),minWidth:0,height:x}}else{var E=[],q=a2[d];if(!q)throw new Error('No SVG data for "'+d+'".');var N=q[0],F=q[1],U=q[2],L=U/1e3,P=N.length,I,Y;if(P===1){if(q.length!==4)throw new Error('Expected 4-tuple for single-path SVG data "'+d+'".');I=["hide-tail"],Y=[q[3]]}else if(P===2)I=["halfarrow-left","halfarrow-right"],Y=["xMinYMin","xMaxYMin"];else if(P===3)I=["brace-left","brace-center","brace-right"],Y=["xMinYMin","xMidYMin","xMaxYMin"];else throw new Error(`Correct katexImagesData or update code here to support + `+P+" children.");for(var Z=0;Z0&&(s.style.minWidth=C(o)),s},n2=function(e,r,a,i,s){var o,c=e.height+e.depth+a+i;if(/fbox|color|angl/.test(r)){if(o=A(["katex-stretchy",r],[],s),r==="fbox"){var m=s.color&&s.getColor();m&&(o.style.borderColor=m)}}else{var d=[];/^[bx]cancel$/.test(r)&&d.push(new He({x1:"0",y1:"0",x2:"100%",y2:"100%","stroke-width":"0.046em"})),/^x?cancel$/.test(r)&&d.push(new He({x1:"0",y1:"100%",x2:"100%",y2:"0","stroke-width":"0.046em"}));var v=new D0(d,{width:"100%",height:C(c)});o=te([],[v],s)}return o.height=c,o.style.height=C(c),o},s2=["bin","close","inner","open","punct","rel"],l2=["accent-token","mathord","op-token","spacing","textord"],o2=new Set(s2),u2=new Set(l2);function c2(t){return o2.has(t)}function $(t,e){if(!t||t.type!==e)throw new Error("Expected node of type "+e+", but got "+(t?"node of type "+t.type:String(t)));return t}function Pt(t){var e=Gt(t);if(!e)throw new Error("Expected node of symbol group type, but got "+(t?"node of type "+t.type:String(t)));return e}function Gt(t){return t.type==="atom"||u2.has(t.type)?t:null}function Vr(t,e,r){var a="";for(var i of t.body)if(i.type==="textord")a+=i.text;else if(r&&i.type==="spacing"&&i.text===" ")a+=" ";else throw new z(e,t);return a}var Ji=t=>{if(t instanceof p0)return t;if(Io(t)&&t.children.length===1)return Ji(t.children[0])},Qi=(t,e)=>{var r,a,i;t&&t.type==="supsub"?(a=$(t.base,"accent"),r=a.base,t.base=r,i=Ro(V(t,e)),t.base=a):(a=$(t,"accent"),r=a.base);var s=V(r,e.havingCrampedStyle()),o=a.isShifty&&V0(r),c=0;if(o){var m,d;c=(m=(d=Ji(s))==null?void 0:d.skew)!=null?m:0}var v=a.label==="\\c",b=v?s.height+s.depth:Math.min(s.height,e.fontMetrics().xHeight),y;if(a.isStretchy)y=Ht(a,e),y=j({positionType:"firstBaseline",children:[{type:"elem",elem:s},{type:"elem",elem:y,wrapperClasses:["svg-align"],wrapperStyle:c>0?{width:"calc(100% - "+C(2*c)+")",marginLeft:C(2*c)}:void 0}]});else{var x,k;a.label==="\\vec"?(x=ji("vec",e),k=Vi.vec[1]):(x=Ft({type:"textord",mode:a.mode,text:a.label},e),x=qo(x),x.italic=0,k=x.width,v&&(b+=x.depth)),y=A(["accent-body"],[x]);var M=a.label==="\\textcircled";M&&(y.classes.push("accent-full"),b=s.height);var D=c;M||(D-=k/2),y.style.left=C(D),a.label==="\\textcircled"&&(y.style.top=".2em"),y=j({positionType:"firstBaseline",children:[{type:"elem",elem:s},{type:"kern",size:-b},{type:"elem",elem:y}]})}var E=A(["mord","katex-accent"],[y],e);return i?(i.children[0]=E,i.height=Math.max(E.height,i.height),i.classes[0]="mord",i):E},h2=(t,e)=>{var r=t.isStretchy?Lt(t.label):new T("mo",[z0(t.label,t.mode)]),a=new T("mover",[W(t.base,e),r]);return a.setAttribute("accent","true"),a},m2=new RegExp(["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring"].map(t=>"\\"+t).join("|"));B({type:"accent",names:["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring","\\widecheck","\\widehat","\\widetilde","\\overrightarrow","\\overleftarrow","\\Overrightarrow","\\overleftrightarrow","\\overgroup","\\overlinesegment","\\overleftharpoon","\\overrightharpoon"],numArgs:1,handler:(t,e)=>{var r=Ue(e[0]),a=!m2.test(t.funcName),i=!a||t.funcName==="\\widehat"||t.funcName==="\\widetilde"||t.funcName==="\\widecheck";return{type:"accent",mode:t.parser.mode,label:t.funcName,isStretchy:a,isShifty:i,base:r}},htmlBuilder:Qi,mathmlBuilder:h2});B({type:"accent",names:["\\'","\\`","\\^","\\~","\\=","\\u","\\.",'\\"',"\\c","\\r","\\H","\\v","\\textcircled"],numArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["primitive"],handler:(t,e)=>{var r=e[0],a=t.parser.mode;return a==="math"&&(t.parser.settings.reportNonstrict("mathVsTextAccents","LaTeX's accent "+t.funcName+" works only in text mode"),a="text"),{type:"accent",mode:a,label:t.funcName,isStretchy:!1,isShifty:!0,base:r}}});B({type:"accentUnder",names:["\\underleftarrow","\\underrightarrow","\\underleftrightarrow","\\undergroup","\\underlinesegment","\\utilde"],numArgs:1,handler:(t,e)=>{var r=t.parser,a=t.funcName,i=e[0];return{type:"accentUnder",mode:r.mode,label:a,base:i}},htmlBuilder:(t,e)=>{var r=V(t.base,e),a=Ht(t,e),i=t.label==="\\utilde"?.12:0,s=j({positionType:"top",positionData:r.height,children:[{type:"elem",elem:a,wrapperClasses:["svg-align"]},{type:"kern",size:i},{type:"elem",elem:r}]});return A(["mord","accentunder"],[s],e)},mathmlBuilder:(t,e)=>{var r=Lt(t.label),a=new T("munder",[W(t.base,e),r]);return a.setAttribute("accentunder","true"),a}});var zt=t=>{var e=new T("mpadded",t?[t]:[]);return e.setAttribute("width","+0.6em"),e.setAttribute("lspace","0.3em"),e};B({type:"xArrow",names:["\\xleftarrow","\\xrightarrow","\\xLeftarrow","\\xRightarrow","\\xleftrightarrow","\\xLeftrightarrow","\\xhookleftarrow","\\xhookrightarrow","\\xmapsto","\\xrightharpoondown","\\xrightharpoonup","\\xleftharpoondown","\\xleftharpoonup","\\xrightleftharpoons","\\xleftrightharpoons","\\xlongequal","\\xtwoheadrightarrow","\\xtwoheadleftarrow","\\xtofrom","\\xrightleftarrows","\\xrightequilibrium","\\xleftequilibrium","\\\\cdrightarrow","\\\\cdleftarrow","\\\\cdlongequal"],numArgs:1,numOptionalArgs:1,handler(t,e,r){var a=t.parser,i=t.funcName;return{type:"xArrow",mode:a.mode,label:i,body:e[0],below:r[0]}},htmlBuilder(t,e){var r=e.style,a=e.havingStyle(r.sup()),i=ze(V(t.body,a,e),e),s=t.label.slice(0,2)==="\\x"?"x":"cd";i.classes.push(s+"-arrow-pad");var o;t.below&&(a=e.havingStyle(r.sub()),o=ze(V(t.below,a,e),e),o.classes.push(s+"-arrow-pad"));var c=Ht(t,e),m=-e.fontMetrics().axisHeight+.5*c.height,d=-e.fontMetrics().axisHeight-.5*c.height-.111;(i.depth>.25||t.label==="\\xleftequilibrium")&&(d-=i.depth);var v;if(o){var b=-e.fontMetrics().axisHeight+o.height+.5*c.height+.111;v=j({positionType:"individualShift",children:[{type:"elem",elem:i,shift:d},{type:"elem",elem:c,shift:m,wrapperClasses:["svg-align"]},{type:"elem",elem:o,shift:b}]})}else v=j({positionType:"individualShift",children:[{type:"elem",elem:i,shift:d},{type:"elem",elem:c,shift:m,wrapperClasses:["svg-align"]}]});return A(["mrel","x-arrow"],[v],e)},mathmlBuilder(t,e){var r=Lt(t.label);r.setAttribute("minsize",t.label.charAt(0)==="x"?"1.75em":"3.0em");var a;if(t.body){var i=zt(W(t.body,e));if(t.below){var s=zt(W(t.below,e));a=new T("munderover",[r,s,i])}else a=new T("mover",[r,i])}else if(t.below){var o=zt(W(t.below,e));a=new T("munder",[r,o])}else a=zt(),a=new T("mover",[r,a]);return a}});function d2(t,e){var r=o0(t.body,e,!0);return A([t.mclass],r,e)}function f2(t,e){var r,a=w0(t.body,e);return t.mclass==="minner"?r=new T("mpadded",a):t.mclass==="mord"?t.isCharacterBox?(r=a[0],r.type="mi"):r=new T("mi",a):(t.isCharacterBox?(r=a[0],r.type="mo"):r=new T("mo",a),t.mclass==="mbin"?(r.attributes.lspace="0.22em",r.attributes.rspace="0.22em"):t.mclass==="mpunct"?(r.attributes.lspace="0em",r.attributes.rspace="0.17em"):(t.mclass==="mopen"||t.mclass==="mclose")&&(r.attributes.lspace="0em",r.attributes.rspace="0em")),r}B({type:"mclass",names:["\\mathord","\\mathbin","\\mathrel","\\mathopen","\\mathclose","\\mathpunct","\\mathinner"],numArgs:1,primitive:!0,handler(t,e){var r=t.parser,a=t.funcName,i=e[0];return{type:"mclass",mode:r.mode,mclass:"m"+a.slice(5),body:n0(i),isCharacterBox:V0(i)}},htmlBuilder:d2,mathmlBuilder:f2});var Ut=t=>{var e=t.type==="ordgroup"&&t.body.length?t.body[0]:t;return e.type==="atom"&&(e.family==="bin"||e.family==="rel")?"m"+e.family:"mord"};B({type:"mclass",names:["\\@binrel"],numArgs:2,handler(t,e){var r=t.parser;return{type:"mclass",mode:r.mode,mclass:Ut(e[0]),body:n0(e[1]),isCharacterBox:V0(e[1])}}});B({type:"mclass",names:["\\stackrel","\\overset","\\underset"],numArgs:2,handler(t,e){var r=t.parser,a=t.funcName,i=e[1],s=e[0],o;a!=="\\stackrel"?o=Ut(i):o="mrel";var c={type:"op",mode:i.mode,limits:!0,alwaysHandleSupSub:!0,parentIsSupSub:!1,symbol:!1,suppressBaseShift:a!=="\\stackrel",body:n0(i)},m=a==="\\underset"?{type:"supsub",mode:s.mode,base:c,sub:s}:{type:"supsub",mode:s.mode,base:c,sup:s};return{type:"mclass",mode:r.mode,mclass:o,body:[m],isCharacterBox:V0(m)}}});B({type:"pmb",names:["\\pmb"],numArgs:1,allowedInText:!0,handler(t,e){var r=t.parser;return{type:"pmb",mode:r.mode,mclass:Ut(e[0]),body:n0(e[0])}},htmlBuilder(t,e){var r=o0(t.body,e,!0),a=A([t.mclass],r,e);return a.style.textShadow="0.02em 0.01em 0.04px",a},mathmlBuilder(t,e){var r=w0(t.body,e),a=new T("mstyle",r);return a.setAttribute("style","text-shadow: 0.02em 0.01em 0.04px"),a}});var p2={">":"\\\\cdrightarrow","<":"\\\\cdleftarrow","=":"\\\\cdlongequal",A:"\\uparrow",V:"\\downarrow","|":"\\Vert",".":"no arrow"},di=()=>({type:"styling",body:[],mode:"math",style:"display",resetFont:!0}),fi=t=>t.type==="textord"&&t.text==="@",v2=(t,e)=>(t.type==="mathord"||t.type==="atom")&&t.text===e;function g2(t,e,r){var a=p2[t];switch(a){case"\\\\cdrightarrow":case"\\\\cdleftarrow":return r.callFunction(a,[e[0]],[e[1]]);case"\\uparrow":case"\\downarrow":{var i=r.callFunction("\\\\cdleft",[e[0]],[]),s={type:"atom",text:a,mode:"math",family:"rel"},o=r.callFunction("\\Big",[s],[]),c=r.callFunction("\\\\cdright",[e[1]],[]),m={type:"ordgroup",mode:"math",body:[i,o,c]};return r.callFunction("\\\\cdparent",[m],[])}case"\\\\cdlongequal":return r.callFunction("\\\\cdlongequal",[],[]);case"\\Vert":{var d={type:"textord",text:"\\Vert",mode:"math"};return r.callFunction("\\Big",[d],[])}default:return{type:"textord",text:" ",mode:"math"}}}function b2(t){var e=[];for(t.gullet.beginGroup(),t.gullet.macros.set("\\cr","\\\\\\relax"),t.gullet.beginGroup();;){e.push(t.parseExpression(!1,"\\\\")),t.gullet.endGroup(),t.gullet.beginGroup();var r=t.fetch().text;if(r==="&"||r==="\\\\")t.consume();else if(r==="\\end"){e[e.length-1].length===0&&e.pop();break}else throw new z("Expected \\\\ or \\cr or \\end",t.nextToken)}for(var a=[],i=[a],s=0;sAV".includes(d))for(var b=0;b<2;b++){for(var y=!0,x=m+1;xAV=|." after @',o[m]);var k=g2(d,v,t),M={type:"styling",body:[k],mode:"math",style:"display",resetFont:!0};a.push(M),c=di()}s%2===0?a.push(c):a.shift(),a=[],i.push(a)}t.gullet.endGroup(),t.gullet.endGroup();var D=new Array(i[0].length).fill({type:"align",align:"c",pregap:.25,postgap:.25});return{type:"array",mode:"math",body:i,arraystretch:1,addJot:!0,rowGaps:[null],cols:D,colSeparationType:"CD",hLinesBeforeRow:new Array(i.length+1).fill([])}}B({type:"cdlabel",names:["\\\\cdleft","\\\\cdright"],numArgs:1,handler(t,e){var r=t.parser,a=t.funcName;return{type:"cdlabel",mode:r.mode,side:a.slice(4),label:e[0]}},htmlBuilder(t,e){var r=e.havingStyle(e.style.sup()),a=ze(V(t.label,r,e),e);return a.classes.push("cd-label-"+t.side),a.style.bottom=C(.8-a.depth),a.height=0,a.depth=0,a},mathmlBuilder(t,e){var r=new T("mrow",[W(t.label,e)]);return r=new T("mpadded",[r]),r.setAttribute("width","0"),t.side==="left"&&r.setAttribute("lspace","-1width"),r.setAttribute("voffset","0.7em"),r=new T("mstyle",[r]),r.setAttribute("displaystyle","false"),r.setAttribute("scriptlevel","1"),r}});B({type:"cdlabelparent",names:["\\\\cdparent"],numArgs:1,handler(t,e){var r=t.parser;return{type:"cdlabelparent",mode:r.mode,fragment:e[0]}},htmlBuilder(t,e){var r=ze(V(t.fragment,e),e);return r.classes.push("cd-vert-arrow"),r},mathmlBuilder(t,e){return new T("mrow",[W(t.fragment,e)])}});B({type:"textord",names:["\\@char"],numArgs:1,allowedInText:!0,handler(t,e){var r=t.parser,a=$(e[0],"ordgroup"),i=Vr(a,"\\@char has non-numeric argument"),s=parseInt(i),o;if(isNaN(s))throw new z("\\@char has non-numeric argument "+i);if(s<0||s>1114111)throw new z("\\@char with invalid code point "+i);return s<=65535?o=String.fromCharCode(s):(s-=65536,o=String.fromCharCode((s>>10)+55296,(s&1023)+56320)),{type:"textord",mode:r.mode,text:o}}});var y2=(t,e)=>{var r=o0(t.body,e.withColor(t.color),!1);return Y0(r)},x2=(t,e)=>{var r=w0(t.body,e.withColor(t.color)),a=new T("mstyle",r);return a.setAttribute("mathcolor",t.color),a};B({type:"color",names:["\\textcolor"],numArgs:2,allowedInText:!0,argTypes:["color","original"],handler(t,e){var r=t.parser,a=$(e[0],"color-token").color,i=e[1];return{type:"color",mode:r.mode,color:a,body:n0(i)}},htmlBuilder:y2,mathmlBuilder:x2});B({type:"color",names:["\\color"],numArgs:1,allowedInText:!0,argTypes:["color"],handler(t,e){var r=t.parser,a=t.breakOnTokenText,i=$(e[0],"color-token").color;r.gullet.macros.set("\\current@color",i);var s=r.parseExpression(!0,a);return{type:"color",mode:r.mode,color:i,body:s}}});B({type:"cr",names:["\\\\"],numArgs:0,numOptionalArgs:0,allowedInText:!0,handler(t,e,r){var a=t.parser,i=a.gullet.future().text==="["?a.parseSizeGroup(!0):null,s=!a.settings.displayMode||!a.settings.useStrictBehavior("newLineInDisplayMode","In LaTeX, \\\\ or \\newline does nothing in display mode");return{type:"cr",mode:a.mode,newLine:s,size:i&&$(i,"size").value}},htmlBuilder(t,e){var r=A(["mspace"],[],e);return t.newLine&&(r.classes.push("katex-newline"),t.size&&(r.style.marginTop=C(t0(t.size,e)))),r},mathmlBuilder(t,e){var r=new T("mspace");return t.newLine&&(r.setAttribute("linebreak","newline"),t.size&&r.setAttribute("height",C(t0(t.size,e)))),r}});var Er={"\\global":"\\global","\\long":"\\\\globallong","\\\\globallong":"\\\\globallong","\\def":"\\gdef","\\gdef":"\\gdef","\\edef":"\\xdef","\\xdef":"\\xdef","\\let":"\\\\globallet","\\futurelet":"\\\\globalfuture"},_i=t=>{var e=t.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(e))throw new z("Expected a control sequence",t);return e},w2=t=>{var e=t.gullet.popToken();return e.text==="="&&(e=t.gullet.popToken(),e.text===" "&&(e=t.gullet.popToken())),e},en=(t,e,r,a)=>{var i=t.gullet.macros.get(r.text);i==null&&(r.noexpand=!0,i={tokens:[r],numArgs:0,unexpandable:!t.gullet.isExpandable(r.text)}),t.gullet.macros.set(e,i,a)};B({type:"internal",names:["\\global","\\long","\\\\globallong"],numArgs:0,allowedInText:!0,handler(t){var e=t.parser,r=t.funcName;e.consumeSpaces();var a=e.fetch();if(Er[a.text])return(r==="\\global"||r==="\\\\globallong")&&(a.text=Er[a.text]),$(e.parseFunction(),"internal");throw new z("Invalid token after macro prefix",a)}});B({type:"internal",names:["\\def","\\gdef","\\edef","\\xdef"],numArgs:0,allowedInText:!0,primitive:!0,handler(t){var e=t.parser,r=t.funcName,a=e.gullet.popToken(),i=a.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(i))throw new z("Expected a control sequence",a);for(var s=0,o,c=[[]];e.gullet.future().text!=="{";)if(a=e.gullet.popToken(),a.text==="#"){if(e.gullet.future().text==="{"){o=e.gullet.future(),c[s].push("{");break}if(a=e.gullet.popToken(),!/^[1-9]$/.test(a.text))throw new z('Invalid argument number "'+a.text+'"');if(parseInt(a.text)!==s+1)throw new z('Argument number "'+a.text+'" out of order');s++,c.push([])}else{if(a.text==="EOF")throw new z("Expected a macro definition");c[s].push(a.text)}var m=e.gullet.consumeArg(),d=m.tokens;return o&&d.unshift(o),(r==="\\edef"||r==="\\xdef")&&(d=e.gullet.expandTokens(d),d.reverse()),e.gullet.macros.set(i,{tokens:d,numArgs:s,delimiters:c},r===Er[r]),{type:"internal",mode:e.mode}}});B({type:"internal",names:["\\let","\\\\globallet"],numArgs:0,allowedInText:!0,primitive:!0,handler(t){var e=t.parser,r=t.funcName,a=_i(e.gullet.popToken());e.gullet.consumeSpaces();var i=w2(e);return en(e,a,i,r==="\\\\globallet"),{type:"internal",mode:e.mode}}});B({type:"internal",names:["\\futurelet","\\\\globalfuture"],numArgs:0,allowedInText:!0,primitive:!0,handler(t){var e=t.parser,r=t.funcName,a=_i(e.gullet.popToken()),i=e.gullet.popToken(),s=e.gullet.popToken();return en(e,a,s,r==="\\\\globalfuture"),e.gullet.pushToken(s),e.gullet.pushToken(i),{type:"internal",mode:e.mode}}});var Ne=function(e,r,a){var i=K.math[e]&&K.math[e].replace,s=Hr(i||e,r,a);if(!s)throw new Error("Unsupported symbol "+e+" and font size "+r+".");return s},jr=function(e,r,a,i){var s=a.havingBaseStyle(r),o=A(i.concat(s.sizingClasses(a)),[e],a),c=s.sizeMultiplier/a.sizeMultiplier;return o.height*=c,o.depth*=c,o.maxFontSize=s.sizeMultiplier,o},tn=function(e,r,a){var i=r.havingBaseStyle(a),s=(1-r.sizeMultiplier/i.sizeMultiplier)*r.fontMetrics().axisHeight;e.classes.push("delimcenter"),e.style.top=C(s),e.height-=s,e.depth+=s},S2=function(e,r,a,i,s,o){var c=d0(e,"Main-Regular",s,i),m=jr(c,r,i,o);return a&&tn(m,i,r),m},k2=function(e,r,a,i){return d0(e,"Size"+r+"-Regular",a,i)},rn=function(e,r,a,i,s,o){var c=k2(e,r,s,i),m=jr(A(["delimsizing","size"+r],[c],i),G.TEXT,i,o);return a&&tn(m,i,G.TEXT),m},or=function(e,r,a){var i;r==="Size1-Regular"?i="delim-size1":i="delim-size4";var s=A(["delimsizinginner",i],[A([],[d0(e,r,a)])]);return{type:"elem",elem:s}},ur=function(e,r,a){var i=B0["Size4-Regular"][e.charCodeAt(0)]?B0["Size4-Regular"][e.charCodeAt(0)][4]:B0["Size1-Regular"][e.charCodeAt(0)][4],s=new q0("inner",To(e,Math.round(1e3*r))),o=new D0([s],{width:C(i),height:C(r),style:"width:"+C(i),viewBox:"0 0 "+1e3*i+" "+Math.round(1e3*r),preserveAspectRatio:"xMinYMin"}),c=te([],[o],a);return c.height=r,c.style.height=C(r),c.style.width=C(i),{type:"elem",elem:c}},Br=.008,Tt={type:"kern",size:-1*Br},A2=new Set(["|","\\lvert","\\rvert","\\vert"]),z2=new Set(["\\|","\\lVert","\\rVert","\\Vert"]),an=function(e,r,a,i,s,o){var c,m,d,v,b="",y=0;c=d=v=e,m=null;var x="Size1-Regular";e==="\\uparrow"?d=v="\u23D0":e==="\\Uparrow"?d=v="\u2016":e==="\\downarrow"?c=d="\u23D0":e==="\\Downarrow"?c=d="\u2016":e==="\\updownarrow"?(c="\\uparrow",d="\u23D0",v="\\downarrow"):e==="\\Updownarrow"?(c="\\Uparrow",d="\u2016",v="\\Downarrow"):A2.has(e)?(d="\u2223",b="vert",y=333):z2.has(e)?(d="\u2225",b="doublevert",y=556):e==="["||e==="\\lbrack"?(c="\u23A1",d="\u23A2",v="\u23A3",x="Size4-Regular",b="lbrack",y=667):e==="]"||e==="\\rbrack"?(c="\u23A4",d="\u23A5",v="\u23A6",x="Size4-Regular",b="rbrack",y=667):e==="\\lfloor"||e==="\u230A"?(d=c="\u23A2",v="\u23A3",x="Size4-Regular",b="lfloor",y=667):e==="\\lceil"||e==="\u2308"?(c="\u23A1",d=v="\u23A2",x="Size4-Regular",b="lceil",y=667):e==="\\rfloor"||e==="\u230B"?(d=c="\u23A5",v="\u23A6",x="Size4-Regular",b="rfloor",y=667):e==="\\rceil"||e==="\u2309"?(c="\u23A4",d=v="\u23A5",x="Size4-Regular",b="rceil",y=667):e==="("||e==="\\lparen"?(c="\u239B",d="\u239C",v="\u239D",x="Size4-Regular",b="lparen",y=875):e===")"||e==="\\rparen"?(c="\u239E",d="\u239F",v="\u23A0",x="Size4-Regular",b="rparen",y=875):e==="\\{"||e==="\\lbrace"?(c="\u23A7",m="\u23A8",v="\u23A9",d="\u23AA",x="Size4-Regular"):e==="\\}"||e==="\\rbrace"?(c="\u23AB",m="\u23AC",v="\u23AD",d="\u23AA",x="Size4-Regular"):e==="\\lgroup"||e==="\u27EE"?(c="\u23A7",v="\u23A9",d="\u23AA",x="Size4-Regular"):e==="\\rgroup"||e==="\u27EF"?(c="\u23AB",v="\u23AD",d="\u23AA",x="Size4-Regular"):e==="\\lmoustache"||e==="\u23B0"?(c="\u23A7",v="\u23AD",d="\u23AA",x="Size4-Regular"):(e==="\\rmoustache"||e==="\u23B1")&&(c="\u23AB",v="\u23A9",d="\u23AA",x="Size4-Regular");var k=Ne(c,x,s),M=k.height+k.depth,D=Ne(d,x,s),E=D.height+D.depth,q=Ne(v,x,s),N=q.height+q.depth,F=0,U=1;if(m!==null){var L=Ne(m,x,s);F=L.height+L.depth,U=2}var P=M+N+F,I=Math.max(0,Math.ceil((r-P)/(U*E))),Y=P+I*U*E,Z=i.fontMetrics().axisHeight;a&&(Z*=i.sizeMultiplier);var m0=Y/2-Z,a0=[];if(b.length>0){var T0=Y-M-N,X=Math.round(Y*1e3),u0=Mo(b,Math.round(T0*1e3)),X0=new q0(b,u0),ce=C(y/1e3),he=C(X/1e3),jt=new D0([X0],{width:ce,height:he,viewBox:"0 0 "+y+" "+X}),W0=te([],[jt],i);W0.height=X/1e3,W0.style.width=ce,W0.style.height=he,a0.push({type:"elem",elem:W0})}else{if(a0.push(or(v,x,s)),a0.push(Tt),m===null){var Z0=Y-M-N+2*Br;a0.push(ur(d,Z0,i))}else{var Me=(Y-M-N-F)/2+2*Br;a0.push(ur(d,Me,i)),a0.push(Tt),a0.push(or(m,x,s)),a0.push(Tt),a0.push(ur(d,Me,i))}a0.push(Tt),a0.push(or(c,x,s))}var M0=i.havingBaseStyle(G.TEXT),je=j({positionType:"bottom",positionData:m0,children:a0});return jr(A(["delimsizing","mult"],[je],M0),G.TEXT,i,o)},cr=80,hr=.08,mr=function(e,r,a,i,s){var o=zo(e,i,a),c=new q0(e,o),m=new D0([c],{width:"400em",height:C(r),viewBox:"0 0 400000 "+a,preserveAspectRatio:"xMinYMin slice"});return te(["hide-tail"],[m],s)},T2=function(e,r){var a=r.havingBaseSizing(),i=un("\\surd",e*a.sizeMultiplier,on,a),s=a.sizeMultiplier,o=Math.max(0,r.minRuleThickness-r.fontMetrics().sqrtRuleThickness),c,m,d,v,b;return i.type==="small"?(v=1e3+1e3*o+cr,e<1?s=1:e<1.4&&(s=.7),m=(1+o+hr)/s,d=(1+o)/s,c=mr("sqrtMain",m,v,o,r),c.style.minWidth="0.853em",b=.833/s):i.type==="large"?(v=(1e3+cr)*Oe[i.size],d=(Oe[i.size]+o)/s,m=(Oe[i.size]+o+hr)/s,c=mr("sqrtSize"+i.size,m,v,o,r),c.style.minWidth="1.02em",b=1/s):(m=e+o+hr,d=e+o,v=Math.floor(1e3*e+o)+cr,c=mr("sqrtTall",m,v,o,r),c.style.minWidth="0.742em",b=1.056),c.height=d,c.style.height=C(m),{span:c,advanceWidth:b,ruleWidth:(r.fontMetrics().sqrtRuleThickness+o)*s}},nn=new Set(["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","\u230A","\u230B","\\lceil","\\rceil","\u2308","\u2309","\\surd"]),M2=new Set(["\\uparrow","\\downarrow","\\updownarrow","\\Uparrow","\\Downarrow","\\Updownarrow","|","\\|","\\vert","\\Vert","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","\u27EE","\u27EF","\\lmoustache","\\rmoustache","\u23B0","\u23B1"]),sn=new Set(["<",">","\\langle","\\rangle","/","\\backslash","\\lt","\\gt"]),Oe=[0,1.2,1.8,2.4,3],ln=function(e,r,a,i,s){if(e==="<"||e==="\\lt"||e==="\u27E8"?e="\\langle":(e===">"||e==="\\gt"||e==="\u27E9")&&(e="\\rangle"),nn.has(e)||sn.has(e))return rn(e,r,!1,a,i,s);if(M2.has(e))return an(e,Oe[r],!1,a,i,s);throw new z("Illegal delimiter: '"+e+"'")},D2=[{type:"small",style:G.SCRIPTSCRIPT},{type:"small",style:G.SCRIPT},{type:"small",style:G.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4}],C2=[{type:"small",style:G.SCRIPTSCRIPT},{type:"small",style:G.SCRIPT},{type:"small",style:G.TEXT},{type:"stack"}],on=[{type:"small",style:G.SCRIPTSCRIPT},{type:"small",style:G.SCRIPT},{type:"small",style:G.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4},{type:"stack"}],E2=function(e){if(e.type==="small")return"Main-Regular";if(e.type==="large")return"Size"+e.size+"-Regular";if(e.type==="stack")return"Size4-Regular";var r=e.type;throw new Error("Add support for delim type '"+r+"' here.")},un=function(e,r,a,i){for(var s=Math.min(2,3-i.style.size),o=s;or)return c}return a[a.length-1]},qr=function(e,r,a,i,s,o){e==="<"||e==="\\lt"||e==="\u27E8"?e="\\langle":(e===">"||e==="\\gt"||e==="\u27E9")&&(e="\\rangle");var c;sn.has(e)?c=D2:nn.has(e)?c=on:c=C2;var m=un(e,r,c,i);return m.type==="small"?S2(e,m.style,a,i,s,o):m.type==="large"?rn(e,m.size,a,i,s,o):an(e,r,a,i,s,o)},dr=function(e,r,a,i,s,o){var c=i.fontMetrics().axisHeight*i.sizeMultiplier,m=901,d=5/i.fontMetrics().ptPerEm,v=Math.max(r-c,a+c),b=Math.max(v/500*m,2*v-d);return qr(e,b,!0,i,s,o)},pi={"\\bigl":{mclass:"mopen",size:1},"\\Bigl":{mclass:"mopen",size:2},"\\biggl":{mclass:"mopen",size:3},"\\Biggl":{mclass:"mopen",size:4},"\\bigr":{mclass:"mclose",size:1},"\\Bigr":{mclass:"mclose",size:2},"\\biggr":{mclass:"mclose",size:3},"\\Biggr":{mclass:"mclose",size:4},"\\bigm":{mclass:"mrel",size:1},"\\Bigm":{mclass:"mrel",size:2},"\\biggm":{mclass:"mrel",size:3},"\\Biggm":{mclass:"mrel",size:4},"\\big":{mclass:"mord",size:1},"\\Big":{mclass:"mord",size:2},"\\bigg":{mclass:"mord",size:3},"\\Bigg":{mclass:"mord",size:4}},B2=new Set(["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","\u230A","\u230B","\\lceil","\\rceil","\u2308","\u2309","<",">","\\langle","\u27E8","\\rangle","\u27E9","\\lt","\\gt","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","\u27EE","\u27EF","\\lmoustache","\\rmoustache","\u23B0","\u23B1","/","\\backslash","|","\\vert","\\|","\\Vert","\\uparrow","\\Uparrow","\\downarrow","\\Downarrow","\\updownarrow","\\Updownarrow","."]);function vi(t){return"isMiddle"in t}function $t(t,e){var r=Gt(t);if(r&&B2.has(r.text))return r;throw r?new z("Invalid delimiter '"+r.text+"' after '"+e.funcName+"'",t):new z("Invalid delimiter type '"+t.type+"'",t)}B({type:"delimsizing",names:["\\bigl","\\Bigl","\\biggl","\\Biggl","\\bigr","\\Bigr","\\biggr","\\Biggr","\\bigm","\\Bigm","\\biggm","\\Biggm","\\big","\\Big","\\bigg","\\Bigg"],numArgs:1,argTypes:["primitive"],handler:(t,e)=>{var r=$t(Ue(e[0]),t);return{type:"delimsizing",mode:t.parser.mode,size:pi[t.funcName].size,mclass:pi[t.funcName].mclass,delim:r.text}},htmlBuilder:(t,e)=>t.delim==="."?A([t.mclass]):ln(t.delim,t.size,e,t.mode,[t.mclass]),mathmlBuilder:t=>{var e=[];t.delim!=="."&&e.push(z0(t.delim,t.mode));var r=new T("mo",e);t.mclass==="mopen"||t.mclass==="mclose"?r.setAttribute("fence","true"):r.setAttribute("fence","false"),r.setAttribute("stretchy","true");var a=C(Oe[t.size]);return r.setAttribute("minsize",a),r.setAttribute("maxsize",a),r}});function gi(t){if(!t.body)throw new Error("Bug: The leftright ParseNode wasn't fully parsed.")}B({type:"leftright-right",names:["\\right"],numArgs:1,primitive:!0,handler:(t,e)=>{var r=t.parser.gullet.macros.get("\\current@color");if(r&&typeof r!="string")throw new z("\\current@color set to non-string in \\right");return{type:"leftright-right",mode:t.parser.mode,delim:$t(e[0],t).text,color:r}}});B({type:"leftright",names:["\\left"],numArgs:1,primitive:!0,handler:(t,e)=>{var r=$t(e[0],t),a=t.parser;++a.leftrightDepth;var i=a.parseExpression(!1);--a.leftrightDepth,a.expect("\\right",!1);var s=$(a.parseFunction(),"leftright-right");return{type:"leftright",mode:a.mode,body:i,left:r.text,right:s.delim,rightColor:s.color}},htmlBuilder:(t,e)=>{gi(t);for(var r=o0(t.body,e,!0,["mopen","mclose"]),a=0,i=0,s=!1,o=0;o{gi(t);var r=w0(t.body,e);if(t.left!=="."){var a=new T("mo",[z0(t.left,t.mode)]);a.setAttribute("fence","true"),r.unshift(a)}if(t.right!=="."){var i=new T("mo",[z0(t.right,t.mode)]);i.setAttribute("fence","true"),t.rightColor&&i.setAttribute("mathcolor",t.rightColor),r.push(i)}return Ur(r)}});B({type:"middle",names:["\\middle"],numArgs:1,primitive:!0,handler:(t,e)=>{var r=$t(e[0],t);if(!t.parser.leftrightDepth)throw new z("\\middle without preceding \\left",r);return{type:"middle",mode:t.parser.mode,delim:r.text}},htmlBuilder:(t,e)=>{var r;return t.delim==="."?r=$e(e,[]):(r=ln(t.delim,1,e,t.mode,[]),r.isMiddle={delim:t.delim,options:e}),r},mathmlBuilder:(t,e)=>{var r=t.delim==="\\vert"||t.delim==="|"?z0("|","text"):z0(t.delim,t.mode),a=new T("mo",[r]);return a.setAttribute("fence","true"),a.setAttribute("lspace","0.05em"),a.setAttribute("rspace","0.05em"),a}});var q2=(t,e)=>{var r=ze(V(t.body,e),e),a=t.label.slice(1),i=e.sizeMultiplier,s,o,c=V0(t.body);if(a==="sout")s=A(["katex-stretchy","katex-sout"]),s.height=e.fontMetrics().defaultRuleThickness/i,o=-.5*e.fontMetrics().xHeight;else if(a==="phase"){var m=t0({number:.6,unit:"pt"},e),d=t0({number:.35,unit:"ex"},e),v=e.havingBaseSizing();i=i/v.sizeMultiplier;var b=r.height+r.depth+m+d;r.style.paddingLeft=C(b/2+m);var y=Math.floor(1e3*b*i),x=ko(y),k=new D0([new q0("phase",x)],{width:"400em",height:C(y/1e3),viewBox:"0 0 400000 "+y,preserveAspectRatio:"xMinYMin slice"});s=te(["hide-tail"],[k],e),s.style.height=C(b),o=r.depth+m+d}else{/cancel/.test(a)?c||r.classes.push("cancel-pad"):a==="angl"?r.classes.push("anglpad"):r.classes.push("boxpad");var M,D,E=0;/box/.test(a)?(E=Math.max(e.fontMetrics().fboxrule,e.minRuleThickness),M=e.fontMetrics().fboxsep+(a==="colorbox"?0:E),D=M):a==="angl"?(E=Math.max(e.fontMetrics().defaultRuleThickness,e.minRuleThickness),M=4*E,D=Math.max(0,.25-r.depth)):(M=c?.2:0,D=M),s=n2(r,a,M,D,e),/fbox|boxed|fcolorbox/.test(a)?(s.style.borderStyle="solid",s.style.borderWidth=C(E)):a==="angl"&&E!==.049&&(s.style.borderTopWidth=C(E),s.style.borderRightWidth=C(E)),o=r.depth+D,t.backgroundColor&&(s.style.backgroundColor=t.backgroundColor,t.borderColor&&(s.style.borderColor=t.borderColor))}var q;if(t.backgroundColor)q=j({positionType:"individualShift",children:[{type:"elem",elem:s,shift:o},{type:"elem",elem:r,shift:0}]});else{var N=/cancel|phase/.test(a)?["svg-align"]:[];q=j({positionType:"individualShift",children:[{type:"elem",elem:r,shift:0},{type:"elem",elem:s,shift:o,wrapperClasses:N}]})}return/cancel/.test(a)&&(q.height=r.height,q.depth=r.depth),/cancel/.test(a)&&!c?A(["mord","cancel-lap"],[q],e):A(["mord"],[q],e)},R2=(t,e)=>{var r,a=new T(t.label.includes("colorbox")?"mpadded":"menclose",[W(t.body,e)]);switch(t.label){case"\\cancel":a.setAttribute("notation","updiagonalstrike");break;case"\\bcancel":a.setAttribute("notation","downdiagonalstrike");break;case"\\phase":a.setAttribute("notation","phasorangle");break;case"\\sout":a.setAttribute("notation","horizontalstrike");break;case"\\fbox":a.setAttribute("notation","box");break;case"\\angl":a.setAttribute("notation","actuarial");break;case"\\fcolorbox":case"\\colorbox":if(r=e.fontMetrics().fboxsep*e.fontMetrics().ptPerEm,a.setAttribute("width","+"+2*r+"pt"),a.setAttribute("height","+"+2*r+"pt"),a.setAttribute("lspace",r+"pt"),a.setAttribute("voffset",r+"pt"),t.label==="\\fcolorbox"){var i=Math.max(e.fontMetrics().fboxrule,e.minRuleThickness);a.setAttribute("style","border: "+C(i)+" solid "+t.borderColor)}break;case"\\xcancel":a.setAttribute("notation","updiagonalstrike downdiagonalstrike");break}return t.backgroundColor&&a.setAttribute("mathbackground",t.backgroundColor),a};B({type:"enclose",names:["\\colorbox"],numArgs:2,allowedInText:!0,argTypes:["color","hbox"],handler(t,e,r){var a=t.parser,i=t.funcName,s=$(e[0],"color-token").color,o=e[1];return{type:"enclose",mode:a.mode,label:i,backgroundColor:s,body:o}},htmlBuilder:q2,mathmlBuilder:R2});B({type:"enclose",names:["\\fcolorbox"],numArgs:3,allowedInText:!0,argTypes:["color","color","hbox"],handler(t,e,r){var a=t.parser,i=t.funcName,s=$(e[0],"color-token").color,o=$(e[1],"color-token").color,c=e[2];return{type:"enclose",mode:a.mode,label:i,backgroundColor:o,borderColor:s,body:c}}});B({type:"enclose",names:["\\fbox"],numArgs:1,argTypes:["hbox"],allowedInText:!0,handler(t,e){var r=t.parser;return{type:"enclose",mode:r.mode,label:"\\fbox",body:e[0]}}});B({type:"enclose",names:["\\cancel","\\bcancel","\\xcancel","\\phase"],numArgs:1,handler(t,e){var r=t.parser,a=t.funcName,i=e[0];return{type:"enclose",mode:r.mode,label:a,body:i}}});B({type:"enclose",names:["\\sout"],numArgs:1,allowedInText:!0,handler(t,e){var r=t.parser,a=t.funcName;r.mode==="math"&&r.settings.reportNonstrict("mathVsSout","LaTeX's \\sout works only in text mode");var i=e[0];return{type:"enclose",mode:r.mode,label:a,body:i}}});B({type:"enclose",names:["\\angl"],numArgs:1,argTypes:["hbox"],allowedInText:!1,handler(t,e){var r=t.parser;return{type:"enclose",mode:r.mode,label:"\\angl",body:e[0]}}});var cn={};function R0(t){for(var e=t.type,r=t.names,a=t.props,i=t.handler,s=t.htmlBuilder,o=t.mathmlBuilder,c={type:e,numArgs:a.numArgs||0,allowedInText:!1,numOptionalArgs:0,handler:i},m=0;m{var e=t.parser.settings;if(!e.displayMode)throw new z("{"+t.envName+"} can be used only in display mode.")},I2=new Set(["gather","gather*"]);function Yr(t){if(!t.includes("ed"))return!t.includes("*")}function ae(t,e,r){var a=e.hskipBeforeAndAfter,i=e.addJot,s=e.cols,o=e.arraystretch,c=e.colSeparationType,m=e.autoTag,d=e.singleRow,v=e.emptySingleRow,b=e.maxNumCols,y=e.leqno;if(t.gullet.beginGroup(),d||t.gullet.macros.set("\\cr","\\\\\\relax"),!o){var x=t.gullet.expandMacroAsText("\\arraystretch");if(x==null)o=1;else if(o=parseFloat(x),!o||o<0)throw new z("Invalid \\arraystretch: "+x)}t.gullet.beginGroup();var k=[],M=[k],D=[],E=[],q=m!=null?[]:void 0;function N(){m&&t.gullet.macros.set("\\@eqnsw","1",!0)}function F(){q&&(t.gullet.macros.get("\\df@tag")?(q.push(t.subparse([new y0("\\df@tag")])),t.gullet.macros.set("\\df@tag",void 0,!0)):q.push(!!m&&t.gullet.macros.get("\\@eqnsw")==="1"))}for(N(),E.push(bi(t));;){var U=t.parseExpression(!1,d?"\\end":"\\\\");t.gullet.endGroup(),t.gullet.beginGroup();var L={type:"ordgroup",mode:t.mode,body:U};r&&(L={type:"styling",mode:t.mode,style:r,resetFont:!0,body:[L]}),k.push(L);var P=t.fetch().text;if(P==="&"){if(b&&k.length===b){if(d||c)throw new z("Too many tab characters: &",t.nextToken);t.settings.reportNonstrict("textEnv","Too few columns specified in the {array} column argument.")}t.consume()}else if(P==="\\end"){F(),k.length===1&&L.type==="styling"&&L.body.length===1&&L.body[0].type==="ordgroup"&&L.body[0].body.length===0&&(M.length>1||!v)&&!Array.isArray(q?.[q.length-1])&&M.pop(),E.length0&&(N+=.25),d.push({pos:N,isDashed:Ze[Ke]})}for(F(o[0]),a=0;a0&&(m0+=q,PZe))for(a=0;a=c)){var de=void 0;if(i>0||e.hskipBeforeAndAfter){var ea,ta;de=(ea=(ta=M0)==null?void 0:ta.pregap)!=null?ea:y,de!==0&&(u0=A(["arraycolsep"],[]),u0.style.width=C(de),X.push(u0))}var ra=[];for(a=0;a0){for(var qn=Ae("katex-hline",r,v),Rn=Ae("katex-hdashline",r,v),Yt=[{type:"elem",elem:We,shift:0}];d.length>0;){var na=d.pop(),sa=na.pos-a0;na.isDashed?Yt.push({type:"elem",elem:Rn,shift:sa}):Yt.push({type:"elem",elem:qn,shift:sa})}We=j({positionType:"individualShift",children:Yt})}if(ce.length===0)return A(["mord"],[We],r);var In=j({positionType:"individualShift",children:ce}),Nn=A(["katex-tag"],[In],r);return Y0([We,Nn])},N2={c:"center ",l:"left ",r:"right "},N0=function(e,r){for(var a=[],i=new T("mtd",[],["mtr-glue"]),s=new T("mtd",[],["mml-eqn-num"]),o=0;o0){var k=e.cols,M="",D=!1,E=0,q=k.length;k[0].type==="separator"&&(y+="top ",E=1),k[k.length-1].type==="separator"&&(y+="bottom ",q-=1);for(var N=E;N0?"left ":"",y+=Y[Y.length-1].length>0?"right ":"";for(var Z=1;Z0&&b&&(k=1),a[y]={type:"align",align:x,pregap:k,postgap:0}}return s.colSeparationType=b?"align":"alignat",s};R0({type:"array",names:["array","darray"],props:{numArgs:1},handler(t,e){var r=Gt(e[0]),a=r?[e[0]]:$(e[0],"ordgroup").body,i=a.map(function(o){var c=Pt(o),m=c.text;if("lcr".includes(m))return{type:"align",align:m};if(m==="|")return{type:"separator",separator:"|"};if(m===":")return{type:"separator",separator:":"};throw new z("Unknown column alignment: "+m,o)}),s={cols:i,hskipBeforeAndAfter:!0,maxNumCols:i.length};return ae(t.parser,s,Xr(t.envName))},htmlBuilder:I0,mathmlBuilder:N0});R0({type:"array",names:["matrix","pmatrix","bmatrix","Bmatrix","vmatrix","Vmatrix","matrix*","pmatrix*","bmatrix*","Bmatrix*","vmatrix*","Vmatrix*"],props:{numArgs:0},handler(t){var e={matrix:null,pmatrix:["(",")"],bmatrix:["[","]"],Bmatrix:["\\{","\\}"],vmatrix:["|","|"],Vmatrix:["\\Vert","\\Vert"]}[t.envName.replace("*","")],r="c",a={hskipBeforeAndAfter:!1,cols:[{type:"align",align:r}]};if(t.envName.charAt(t.envName.length-1)==="*"){var i=t.parser;if(i.consumeSpaces(),i.fetch().text==="["){if(i.consume(),i.consumeSpaces(),r=i.fetch().text,!"lcr".includes(r))throw new z("Expected l or c or r",i.nextToken);i.consume(),i.consumeSpaces(),i.expect("]"),i.consume(),a.cols=[{type:"align",align:r}]}}var s=ae(t.parser,a,Xr(t.envName)),o=Math.max(0,...s.body.map(c=>c.length));return s.cols=new Array(o).fill({type:"align",align:r}),e?{type:"leftright",mode:t.mode,body:[s],left:e[0],right:e[1],rightColor:void 0}:s},htmlBuilder:I0,mathmlBuilder:N0});R0({type:"array",names:["smallmatrix"],props:{numArgs:0},handler(t){var e={arraystretch:.5},r=ae(t.parser,e,"script");return r.colSeparationType="small",r},htmlBuilder:I0,mathmlBuilder:N0});R0({type:"array",names:["subarray"],props:{numArgs:1},handler(t,e){var r=Gt(e[0]),a=r?[e[0]]:$(e[0],"ordgroup").body,i=a.map(function(c){var m=Pt(c),d=m.text;if("lc".includes(d))return{type:"align",align:d};throw new z("Unknown column alignment: "+d,c)});if(i.length>1)throw new z("{subarray} can contain only one column");var s={cols:i,hskipBeforeAndAfter:!1,arraystretch:.5},o=ae(t.parser,s,"script");if(o.body.length>0&&o.body[0].length>1)throw new z("{subarray} can contain only one column");return o},htmlBuilder:I0,mathmlBuilder:N0});R0({type:"array",names:["cases","dcases","rcases","drcases"],props:{numArgs:0},handler(t){var e={arraystretch:1.2,cols:[{type:"align",align:"l",pregap:0,postgap:1},{type:"align",align:"l",pregap:0,postgap:0}]},r=ae(t.parser,e,Xr(t.envName));return{type:"leftright",mode:t.mode,body:[r],left:t.envName.includes("r")?".":"\\{",right:t.envName.includes("r")?"\\}":".",rightColor:void 0}},htmlBuilder:I0,mathmlBuilder:N0});R0({type:"array",names:["align","align*","aligned","split"],props:{numArgs:0},handler:mn,htmlBuilder:I0,mathmlBuilder:N0});R0({type:"array",names:["gathered","gather","gather*"],props:{numArgs:0},handler(t){I2.has(t.envName)&&Vt(t);var e={cols:[{type:"align",align:"c"}],addJot:!0,colSeparationType:"gather",autoTag:Yr(t.envName),emptySingleRow:!0,leqno:t.parser.settings.leqno};return ae(t.parser,e,"display")},htmlBuilder:I0,mathmlBuilder:N0});R0({type:"array",names:["alignat","alignat*","alignedat"],props:{numArgs:1},handler:mn,htmlBuilder:I0,mathmlBuilder:N0});R0({type:"array",names:["equation","equation*"],props:{numArgs:0},handler(t){Vt(t);var e={autoTag:Yr(t.envName),emptySingleRow:!0,singleRow:!0,maxNumCols:1,leqno:t.parser.settings.leqno};return ae(t.parser,e,"display")},htmlBuilder:I0,mathmlBuilder:N0});R0({type:"array",names:["CD"],props:{numArgs:0},handler(t){return Vt(t),b2(t.parser)},htmlBuilder:I0,mathmlBuilder:N0});h("\\nonumber","\\gdef\\@eqnsw{0}");h("\\notag","\\nonumber");B({type:"text",names:["\\hline","\\hdashline"],numArgs:0,allowedInText:!0,allowedInMath:!0,handler(t,e){throw new z(t.funcName+" valid only within array environment")}});var yi=cn;B({type:"environment",names:["\\begin","\\end"],numArgs:1,argTypes:["text"],handler(t,e){var r=t.parser,a=t.funcName,i=e[0];if(i.type!=="ordgroup")throw new z("Invalid environment name",i);var s=Vr(i,"Environment name should contain only text characters and spaces",!0);if(a==="\\begin"){if(!Object.prototype.hasOwnProperty.call(yi,s))throw new z("No such environment: "+s,i);var o=yi[s],c=r.parseArguments("\\begin{"+s+"}",o),m=c.args,d=c.optArgs,v={mode:r.mode,envName:s,parser:r},b=o.handler(v,m,d);r.expect("\\end",!1);var y=r.nextToken,x=$(r.parseFunction(),"environment");if(x.name!==s)throw new z("Mismatch: \\begin{"+s+"} matched by \\end{"+x.name+"}",y);return b}return{type:"environment",mode:r.mode,name:s,nameGroup:i}}});var O2=(t,e)=>{var r=t.font,a=e.withFont(r);return V(t.body,a)},F2=(t,e)=>{var r=t.font,a=e.withFont(r);return W(t.body,a)},xi={"\\Bbb":"\\mathbb","\\bold":"\\mathbf","\\frak":"\\mathfrak"};B({type:"font",names:["\\mathrm","\\mathit","\\mathbf","\\mathnormal","\\mathsfit","\\mathbb","\\mathcal","\\mathfrak","\\mathscr","\\mathsf","\\mathtt","\\Bbb","\\bold","\\frak"],numArgs:1,allowedInArgument:!0,handler:(t,e)=>{var r=t.parser,a=t.funcName,i=Ue(e[0]),s=a in xi?xi[a]:a;return{type:"font",mode:r.mode,font:s.slice(1),body:i}},htmlBuilder:O2,mathmlBuilder:F2});B({type:"mclass",names:["\\boldsymbol","\\bm"],numArgs:1,handler:(t,e)=>{var r=t.parser,a=e[0];return{type:"mclass",mode:r.mode,mclass:Ut(a),body:[{type:"font",mode:r.mode,font:"boldsymbol",body:a}],isCharacterBox:V0(a)}}});B({type:"font",names:["\\rm","\\sf","\\tt","\\bf","\\it","\\cal"],numArgs:0,allowedInText:!0,handler:(t,e)=>{var r=t.parser,a=t.funcName,i=t.breakOnTokenText,s=r.mode,o=r.parseExpression(!0,i);return{type:"font",mode:s,font:"math"+a.slice(1),body:{type:"ordgroup",mode:r.mode,body:o}}}});var L2=(t,e)=>{var r=e.style,a=r.fracNum(),i=r.fracDen(),s;s=e.havingStyle(a);var o=V(t.numer,s,e);if(t.continued){var c=8.5/e.fontMetrics().ptPerEm,m=3.5/e.fontMetrics().ptPerEm;o.height=o.height0?k=3*y:k=7*y,M=e.fontMetrics().denom1):(b>0?(x=e.fontMetrics().num2,k=y):(x=e.fontMetrics().num3,k=3*y),M=e.fontMetrics().denom2);var D;if(v){var q=e.fontMetrics().axisHeight;x-o.depth-(q+.5*b){var r=new T("mfrac",[W(t.numer,e),W(t.denom,e)]);if(!t.hasBarLine)r.setAttribute("linethickness","0px");else if(t.barSize){var a=t0(t.barSize,e);r.setAttribute("linethickness",C(a))}if(t.leftDelim!=null||t.rightDelim!=null){var i=[];if(t.leftDelim!=null){var s=new T("mo",[new r0(t.leftDelim.replace("\\",""))]);s.setAttribute("fence","true"),i.push(s)}if(i.push(r),t.rightDelim!=null){var o=new T("mo",[new r0(t.rightDelim.replace("\\",""))]);o.setAttribute("fence","true"),i.push(o)}return Ur(i)}return r},dn=(t,e)=>{if(!e)return t;var r={type:"styling",mode:t.mode,style:e,body:[t]};return r};B({type:"genfrac",names:["\\cfrac","\\dfrac","\\frac","\\tfrac","\\dbinom","\\binom","\\tbinom","\\\\atopfrac","\\\\bracefrac","\\\\brackfrac"],numArgs:2,allowedInArgument:!0,handler:(t,e)=>{var r=t.parser,a=t.funcName,i=e[0],s=e[1],o,c=null,m=null;switch(a){case"\\cfrac":case"\\dfrac":case"\\frac":case"\\tfrac":o=!0;break;case"\\\\atopfrac":o=!1;break;case"\\dbinom":case"\\binom":case"\\tbinom":o=!1,c="(",m=")";break;case"\\\\bracefrac":o=!1,c="\\{",m="\\}";break;case"\\\\brackfrac":o=!1,c="[",m="]";break;default:throw new Error("Unrecognized genfrac command")}var d=a==="\\cfrac",v=null;return d||a.startsWith("\\d")?v="display":a.startsWith("\\t")&&(v="text"),dn({type:"genfrac",mode:r.mode,numer:i,denom:s,continued:d,hasBarLine:o,leftDelim:c,rightDelim:m,barSize:null},v)},htmlBuilder:L2,mathmlBuilder:H2});B({type:"infix",names:["\\over","\\choose","\\atop","\\brace","\\brack"],numArgs:0,infix:!0,handler(t){var e=t.parser,r=t.funcName,a=t.token,i;switch(r){case"\\over":i="\\frac";break;case"\\choose":i="\\binom";break;case"\\atop":i="\\\\atopfrac";break;case"\\brace":i="\\\\bracefrac";break;case"\\brack":i="\\\\brackfrac";break;default:throw new Error("Unrecognized infix genfrac command")}return{type:"infix",mode:e.mode,replaceWith:i,token:a}}});var wi=["display","text","script","scriptscript"],Si=function(e){var r=null;return e.length>0&&(r=e,r=r==="."?null:r),r};B({type:"genfrac",names:["\\genfrac"],numArgs:6,allowedInArgument:!0,argTypes:["math","math","size","text","math","math"],handler(t,e){var r=t.parser,a=e[4],i=e[5],s=Ue(e[0]),o=s.type==="atom"&&s.family==="open"?Si(s.text):null,c=Ue(e[1]),m=c.type==="atom"&&c.family==="close"?Si(c.text):null,d=$(e[2],"size"),v,b=null;d.isBlank?v=!0:(b=d.value,v=b.number>0);var y=null,x=e[3];if(x.type==="ordgroup"){if(x.body.length>0){var k=$(x.body[0],"textord");y=wi[Number(k.text)]}}else x=$(x,"textord"),y=wi[Number(x.text)];return dn({type:"genfrac",mode:r.mode,numer:a,denom:i,continued:!1,hasBarLine:v,barSize:b,leftDelim:o,rightDelim:m},y)}});B({type:"infix",names:["\\above"],numArgs:1,argTypes:["size"],infix:!0,handler(t,e){var r=t.parser;t.funcName;var a=t.token;return{type:"infix",mode:r.mode,replaceWith:"\\\\abovefrac",size:$(e[0],"size").value,token:a}}});B({type:"genfrac",names:["\\\\abovefrac"],numArgs:3,argTypes:["math","size","math"],handler:(t,e)=>{var r=t.parser;t.funcName;var a=e[0],i=$(e[1],"infix").size;if(!i)throw new Error("\\\\abovefrac expected size, but got "+String(i));var s=e[2],o=i.number>0;return{type:"genfrac",mode:r.mode,numer:a,denom:s,continued:!1,hasBarLine:o,barSize:i,leftDelim:null,rightDelim:null}}});var fn=(t,e)=>{var r=e.style,a,i;t.type==="supsub"?(a=t.sup?V(t.sup,e.havingStyle(r.sup()),e):V(t.sub,e.havingStyle(r.sub()),e),i=$(t.base,"horizBrace")):i=$(t,"horizBrace");var s=V(i.base,e.havingBaseStyle(G.DISPLAY)),o=Ht(i,e),c;if(i.isOver?c=j({positionType:"firstBaseline",children:[{type:"elem",elem:s},{type:"kern",size:.1},{type:"elem",elem:o,wrapperClasses:["svg-align"]}]}):c=j({positionType:"bottom",positionData:s.depth+.1+o.height,children:[{type:"elem",elem:o,wrapperClasses:["svg-align"]},{type:"kern",size:.1},{type:"elem",elem:s}]}),a){var m=A(["minner",i.isOver?"mover":"munder"],[c],e);i.isOver?c=j({positionType:"firstBaseline",children:[{type:"elem",elem:m},{type:"kern",size:.2},{type:"elem",elem:a}]}):c=j({positionType:"bottom",positionData:m.depth+.2+a.height+a.depth,children:[{type:"elem",elem:a},{type:"kern",size:.2},{type:"elem",elem:m}]})}return A(["minner",i.isOver?"mover":"munder"],[c],e)},P2=(t,e)=>{var r=Lt(t.label);return new T(t.isOver?"mover":"munder",[W(t.base,e),r])};B({type:"horizBrace",names:["\\overbrace","\\underbrace","\\overbracket","\\underbracket"],numArgs:1,handler(t,e){var r=t.parser,a=t.funcName;return{type:"horizBrace",mode:r.mode,label:a,isOver:a.includes("\\over"),base:e[0]}},htmlBuilder:fn,mathmlBuilder:P2});B({type:"href",names:["\\href"],numArgs:2,argTypes:["url","original"],allowedInText:!0,handler:(t,e)=>{var r=t.parser,a=e[1],i=$(e[0],"url").url;return r.settings.isTrusted({command:"\\href",url:i})?{type:"href",mode:r.mode,href:i,body:n0(a)}:r.formatUnsupportedCmd("\\href")},htmlBuilder:(t,e)=>{var r=o0(t.body,e,!1);return Uo(t.href,[],r,e)},mathmlBuilder:(t,e)=>{var r=re(t.body,e);return r instanceof T||(r=new T("mrow",[r])),r.setAttribute("href",t.href),r}});B({type:"href",names:["\\url"],numArgs:1,argTypes:["url"],allowedInText:!0,handler:(t,e)=>{var r=t.parser,a=$(e[0],"url").url;if(!r.settings.isTrusted({command:"\\url",url:a}))return r.formatUnsupportedCmd("\\url");for(var i=[],s=0;s{var r=t.parser,a=t.funcName;t.token;var i=$(e[0],"raw").string,s=e[1];r.settings.strict&&r.settings.reportNonstrict("htmlExtension","HTML extension is disabled on strict mode");var o,c={};switch(a){case"\\htmlClass":c.class=i,o={command:"\\htmlClass",class:i};break;case"\\htmlId":c.id=i,o={command:"\\htmlId",id:i};break;case"\\htmlStyle":c.style=i,o={command:"\\htmlStyle",style:i};break;case"\\htmlData":{for(var m="{,}",d=[],v="",b=0;b{var r=o0(t.body,e,!1),a=["enclosing"];t.attributes.class&&a.push(...t.attributes.class.trim().split(/\s+/));var i=A(a,r,e);for(var s of Object.entries(t.attributes)){var o=s[0],c=s[1];o!=="class"&&i.setAttribute(o,c)}return i},mathmlBuilder:(t,e)=>re(t.body,e)});B({type:"htmlmathml",names:["\\html@mathml"],numArgs:2,allowedInArgument:!0,allowedInText:!0,handler:(t,e)=>{var r=t.parser;return{type:"htmlmathml",mode:r.mode,html:n0(e[0]),mathml:n0(e[1])}},htmlBuilder:(t,e)=>{var r=o0(t.html,e,!1);return Y0(r)},mathmlBuilder:(t,e)=>re(t.mathml,e)});var fr=function(e){if(/^[-+]? *(\d+(\.\d*)?|\.\d+)$/.test(e))return{number:+e,unit:"bp"};var r=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(e);if(!r)throw new z("Invalid size: '"+e+"' in \\includegraphics");var a={number:+(r[1]+r[2]),unit:r[3]};if(!Fi(a))throw new z("Invalid unit: '"+a.unit+"' in \\includegraphics.");return a};B({type:"includegraphics",names:["\\includegraphics"],numArgs:1,numOptionalArgs:1,argTypes:["raw","url"],allowedInText:!1,handler:(t,e,r)=>{var a=t.parser,i={number:0,unit:"em"},s={number:.9,unit:"em"},o={number:0,unit:"em"},c="";if(r[0])for(var m=$(r[0],"raw").string,d=m.split(","),v=0;v{var r=t0(t.height,e),a=0;t.totalheight.number>0&&(a=t0(t.totalheight,e)-r);var i=0;t.width.number>0&&(i=t0(t.width,e));var s={height:C(r+a)};i>0&&(s.width=C(i)),a>0&&(s.verticalAlign=C(-a));var o=new yr(t.src,t.alt,s);return o.height=r,o.depth=a,o},mathmlBuilder:(t,e)=>{var r=new T("mglyph",[]);r.setAttribute("alt",t.alt);var a=t0(t.height,e),i=0;if(t.totalheight.number>0&&(i=t0(t.totalheight,e)-a,r.setAttribute("valign",C(-i))),r.setAttribute("height",C(a+i)),t.width.number>0){var s=t0(t.width,e);r.setAttribute("width",C(s))}return r.setAttribute("src",t.src),r}});B({type:"kern",names:["\\kern","\\mkern","\\hskip","\\mskip"],numArgs:1,argTypes:["size"],primitive:!0,allowedInText:!0,handler(t,e){var r=t.parser,a=t.funcName,i=$(e[0],"size");if(r.settings.strict){var s=a[1]==="m",o=i.value.unit==="mu";s?(o||r.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+a+" supports only mu units, "+("not "+i.value.unit+" units")),r.mode!=="math"&&r.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+a+" works only in math mode")):o&&r.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+a+" doesn't support mu units")}return{type:"kern",mode:r.mode,dimension:i.value}},htmlBuilder(t,e){return $i(t.dimension,e)},mathmlBuilder(t,e){var r=t0(t.dimension,e);return new qt(r)}});B({type:"lap",names:["\\mathllap","\\mathrlap","\\mathclap"],numArgs:1,allowedInText:!0,handler:(t,e)=>{var r=t.parser,a=t.funcName,i=e[0];return{type:"lap",mode:r.mode,alignment:a.slice(5),body:i}},htmlBuilder:(t,e)=>{var r;t.alignment==="clap"?(r=A([],[V(t.body,e)]),r=A(["katex-inner"],[r],e)):r=A(["katex-inner"],[V(t.body,e)]);var a=A(["katex-fix"],[]),i=A([t.alignment],[r,a],e),s=A(["katex-strut"]);return s.style.height=C(i.height+i.depth),i.depth&&(s.style.verticalAlign=C(-i.depth)),i.children.unshift(s),i=A(["katex-thinbox"],[i],e),A(["mord","katex-vbox"],[i],e)},mathmlBuilder:(t,e)=>{var r=new T("mpadded",[W(t.body,e)]);if(t.alignment!=="rlap"){var a=t.alignment==="llap"?"-1":"-0.5";r.setAttribute("lspace",a+"width")}return r.setAttribute("width","0px"),r}});B({type:"styling",names:["\\(","$"],numArgs:0,allowedInText:!0,allowedInMath:!1,handler(t,e){var r=t.funcName,a=t.parser,i=a.mode;a.switchMode("math");var s=r==="\\("?"\\)":"$",o=a.parseExpression(!1,s);return a.expect(s),a.switchMode(i),{type:"styling",mode:a.mode,style:"text",resetFont:!0,body:o}}});B({type:"text",names:["\\)","\\]"],numArgs:0,allowedInText:!0,allowedInMath:!1,handler(t,e){throw new z("Mismatched "+t.funcName)}});var ki=(t,e)=>{switch(e.style.size){case G.DISPLAY.size:return t.display;case G.TEXT.size:return t.text;case G.SCRIPT.size:return t.script;case G.SCRIPTSCRIPT.size:return t.scriptscript;default:return t.text}};B({type:"mathchoice",names:["\\mathchoice"],numArgs:4,primitive:!0,handler:(t,e)=>{var r=t.parser;return{type:"mathchoice",mode:r.mode,display:n0(e[0]),text:n0(e[1]),script:n0(e[2]),scriptscript:n0(e[3])}},htmlBuilder:(t,e)=>{var r=ki(t,e),a=o0(r,e,!1);return Y0(a)},mathmlBuilder:(t,e)=>{var r=ki(t,e);return re(r,e)}});var pn=(t,e,r,a,i,s,o)=>{t=A([],[t]);var c=r&&V0(r),m,d;if(e){var v=V(e,a.havingStyle(i.sup()),a);d={elem:v,kern:Math.max(a.fontMetrics().bigOpSpacing1,a.fontMetrics().bigOpSpacing3-v.depth)}}if(r){var b=V(r,a.havingStyle(i.sub()),a);m={elem:b,kern:Math.max(a.fontMetrics().bigOpSpacing2,a.fontMetrics().bigOpSpacing4-b.height)}}var y;if(d&&m){var x=a.fontMetrics().bigOpSpacing5+m.elem.height+m.elem.depth+m.kern+t.depth+o;y=j({positionType:"bottom",positionData:x,children:[{type:"kern",size:a.fontMetrics().bigOpSpacing5},{type:"elem",elem:m.elem,marginLeft:C(-s)},{type:"kern",size:m.kern},{type:"elem",elem:t},{type:"kern",size:d.kern},{type:"elem",elem:d.elem,marginLeft:C(s)},{type:"kern",size:a.fontMetrics().bigOpSpacing5}]})}else if(m){var k=t.height-o;y=j({positionType:"top",positionData:k,children:[{type:"kern",size:a.fontMetrics().bigOpSpacing5},{type:"elem",elem:m.elem,marginLeft:C(-s)},{type:"kern",size:m.kern},{type:"elem",elem:t}]})}else if(d){var M=t.depth+o;y=j({positionType:"bottom",positionData:M,children:[{type:"elem",elem:t},{type:"kern",size:d.kern},{type:"elem",elem:d.elem,marginLeft:C(s)},{type:"kern",size:a.fontMetrics().bigOpSpacing5}]})}else return t;var D=[y];if(m&&s!==0&&!c){var E=A(["mspace"],[],a);E.style.marginRight=C(s),D.unshift(E)}return A(["mop","op-limits"],D,a)},vn=new Set(["\\smallint"]),gn=(t,e)=>{var r,a,i=!1,s;t.type==="supsub"?(r=t.sup,a=t.sub,s=$(t.base,"op"),i=!0):s=$(t,"op");var o=e.style,c=!1;o.size===G.DISPLAY.size&&s.symbol&&!vn.has(s.name)&&(c=!0);var m,d;if(s.symbol){var v=c?"Size2-Regular":"Size1-Regular",b="";if((s.name==="\\oiint"||s.name==="\\oiiint")&&(b=s.name.slice(1),s.name=b==="oiint"?"\\iint":"\\iiint"),m=d0(s.name,v,"math",e,["mop","op-symbol",c?"large-op":"small-op"]),d=m.italic,b.length>0){var y=ji(b+"Size"+(c?"2":"1"),e);m=j({positionType:"individualShift",children:[{type:"elem",elem:m,shift:0},{type:"elem",elem:y,shift:c?.08:0}]}),s.name="\\"+b,m.classes.unshift("mop"),m.italic=d}}else if(s.body){var x=o0(s.body,e,!0);x.length===1&&x[0]instanceof p0?(m=x[0],m.classes[0]="mop"):m=A(["mop"],x,e)}else{for(var k=[],M=1;M{var r;if(t.symbol)r=new T("mo",[z0(t.name,t.mode)]),vn.has(t.name)&&r.setAttribute("largeop","false");else if(t.body)r=new T("mo",w0(t.body,e));else{r=new T("mi",[new r0(t.name.slice(1))]);var a=new T("mo",[z0("\u2061","text")]);t.parentIsSupSub?r=new T("mrow",[r,a]):r=Wi([r,a])}return r},U2={"\u220F":"\\prod","\u2210":"\\coprod","\u2211":"\\sum","\u22C0":"\\bigwedge","\u22C1":"\\bigvee","\u22C2":"\\bigcap","\u22C3":"\\bigcup","\u2A00":"\\bigodot","\u2A01":"\\bigoplus","\u2A02":"\\bigotimes","\u2A04":"\\biguplus","\u2A06":"\\bigsqcup"};B({type:"op",names:["\\coprod","\\bigvee","\\bigwedge","\\biguplus","\\bigcap","\\bigcup","\\intop","\\prod","\\sum","\\bigotimes","\\bigoplus","\\bigodot","\\bigsqcup","\\smallint","\u220F","\u2210","\u2211","\u22C0","\u22C1","\u22C2","\u22C3","\u2A00","\u2A01","\u2A02","\u2A04","\u2A06"],numArgs:0,handler:(t,e)=>{var r=t.parser,a=t.funcName,i=a;return i.length===1&&(i=U2[i]),{type:"op",mode:r.mode,limits:!0,parentIsSupSub:!1,symbol:!0,name:i}},htmlBuilder:gn,mathmlBuilder:G2});B({type:"op",names:["\\mathop"],numArgs:1,primitive:!0,handler:(t,e)=>{var r=t.parser,a=e[0];return{type:"op",mode:r.mode,limits:!1,parentIsSupSub:!1,symbol:!1,body:n0(a)}}});var $2={"\u222B":"\\int","\u222C":"\\iint","\u222D":"\\iiint","\u222E":"\\oint","\u222F":"\\oiint","\u2230":"\\oiiint"};B({type:"op",names:["\\arcsin","\\arccos","\\arctan","\\arctg","\\arcctg","\\arg","\\ch","\\cos","\\cosec","\\cosh","\\cot","\\cotg","\\coth","\\csc","\\ctg","\\cth","\\deg","\\dim","\\exp","\\hom","\\ker","\\lg","\\ln","\\log","\\sec","\\sin","\\sinh","\\sh","\\tan","\\tanh","\\tg","\\th"],numArgs:0,handler(t){var e=t.parser,r=t.funcName;return{type:"op",mode:e.mode,limits:!1,parentIsSupSub:!1,symbol:!1,name:r}}});B({type:"op",names:["\\det","\\gcd","\\inf","\\lim","\\max","\\min","\\Pr","\\sup"],numArgs:0,handler(t){var e=t.parser,r=t.funcName;return{type:"op",mode:e.mode,limits:!0,parentIsSupSub:!1,symbol:!1,name:r}}});B({type:"op",names:["\\int","\\iint","\\iiint","\\oint","\\oiint","\\oiiint","\u222B","\u222C","\u222D","\u222E","\u222F","\u2230"],numArgs:0,allowedInArgument:!0,handler(t){var e=t.parser,r=t.funcName,a=r;return a.length===1&&(a=$2[a]),{type:"op",mode:e.mode,limits:!1,parentIsSupSub:!1,symbol:!0,name:a}}});var bn=(t,e)=>{var r,a,i=!1,s;t.type==="supsub"?(r=t.sup,a=t.sub,s=$(t.base,"operatorname"),i=!0):s=$(t,"operatorname");var o;if(s.body.length>0){for(var c=s.body.map(b=>{var y="text"in b?b.text:void 0;return typeof y=="string"?{type:"textord",mode:b.mode,text:y}:b}),m=o0(c,e.withFont("mathrm"),!0),d=0;d{for(var r=w0(t.body,e.withFont("mathrm")),a=!0,i=0;iv.toText()).join("");r=[new r0(c)]}var m=new T("mi",r);m.setAttribute("mathvariant","normal");var d=new T("mo",[z0("\u2061","text")]);return t.parentIsSupSub?new T("mrow",[m,d]):Wi([m,d])};B({type:"operatorname",names:["\\operatorname@","\\operatornamewithlimits"],numArgs:1,handler:(t,e)=>{var r=t.parser,a=t.funcName,i=e[0];return{type:"operatorname",mode:r.mode,body:n0(i),alwaysHandleSupSub:a==="\\operatornamewithlimits",limits:!1,parentIsSupSub:!1}},htmlBuilder:bn,mathmlBuilder:V2});h("\\operatorname","\\@ifstar\\operatornamewithlimits\\operatorname@");ue({type:"ordgroup",htmlBuilder(t,e){return t.semisimple?Y0(o0(t.body,e,!1)):A(["mord"],o0(t.body,e,!0),e)},mathmlBuilder(t,e){return re(t.body,e,!0)}});B({type:"overline",names:["\\overline"],numArgs:1,handler(t,e){var r=t.parser,a=e[0];return{type:"overline",mode:r.mode,body:a}},htmlBuilder(t,e){var r=V(t.body,e.havingCrampedStyle()),a=Ae("overline-line",e),i=e.fontMetrics().defaultRuleThickness,s=j({positionType:"firstBaseline",children:[{type:"elem",elem:r},{type:"kern",size:3*i},{type:"elem",elem:a},{type:"kern",size:i}]});return A(["mord","katex-overline"],[s],e)},mathmlBuilder(t,e){var r=new T("mo",[new r0("\u203E")]);r.setAttribute("stretchy","true");var a=new T("mover",[W(t.body,e),r]);return a.setAttribute("accent","true"),a}});B({type:"phantom",names:["\\phantom"],numArgs:1,allowedInText:!0,handler:(t,e)=>{var r=t.parser,a=e[0];return{type:"phantom",mode:r.mode,body:n0(a)}},htmlBuilder:(t,e)=>{var r=o0(t.body,e.withPhantom(),!1);return Y0(r)},mathmlBuilder:(t,e)=>{var r=w0(t.body,e);return new T("mphantom",r)}});h("\\hphantom","\\smash{\\phantom{#1}}");B({type:"vphantom",names:["\\vphantom"],numArgs:1,allowedInText:!0,handler:(t,e)=>{var r=t.parser,a=e[0];return{type:"vphantom",mode:r.mode,body:a}},htmlBuilder:(t,e)=>{var r=A(["katex-inner"],[V(t.body,e.withPhantom())]),a=A(["katex-fix"],[]);return A(["mord","rlap"],[r,a],e)},mathmlBuilder:(t,e)=>{var r=w0(n0(t.body),e),a=new T("mphantom",r),i=new T("mpadded",[a]);return i.setAttribute("width","0px"),i}});B({type:"raisebox",names:["\\raisebox"],numArgs:2,argTypes:["size","hbox"],allowedInText:!0,handler(t,e){var r=t.parser,a=$(e[0],"size").value,i=e[1];return{type:"raisebox",mode:r.mode,dy:a,body:i}},htmlBuilder(t,e){var r=V(t.body,e),a=t0(t.dy,e);return j({positionType:"shift",positionData:-a,children:[{type:"elem",elem:r}]})},mathmlBuilder(t,e){var r=new T("mpadded",[W(t.body,e)]),a=t.dy.number+t.dy.unit;return r.setAttribute("voffset",a),r}});var yn=(t,e)=>{var r=t.parser;return{type:"reflectbox",mode:r.mode,body:e[0]}};B({type:"reflectbox",names:["\\reflectbox"],numArgs:1,argTypes:["hbox"],allowedInText:!0,handler:yn,htmlBuilder(t,e){return A(["mord","reflectbox"],[V(t.body,e)],e)},mathmlBuilder(t,e){return W(t.body,e)}});B({type:"reflectbox",names:["\\mathreflectbox"],numArgs:1,argTypes:["math"],handler:yn});B({type:"internal",names:["\\relax"],numArgs:0,allowedInText:!0,allowedInArgument:!0,handler(t){var e=t.parser;return{type:"internal",mode:e.mode}}});B({type:"rule",names:["\\rule"],numArgs:2,numOptionalArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["size","size","size"],handler(t,e,r){var a=t.parser,i=r[0],s=$(e[0],"size"),o=$(e[1],"size");return{type:"rule",mode:a.mode,shift:i&&$(i,"size").value,width:s.value,height:o.value}},htmlBuilder(t,e){var r=A(["mord","katex-rule"],[],e),a=t0(t.width,e),i=t0(t.height,e),s=t.shift?t0(t.shift,e):0;return r.style.borderRightWidth=C(a),r.style.borderTopWidth=C(i),r.style.bottom=C(s),r.width=a,r.height=i+s,r.depth=-s,r.maxFontSize=i*1.125*e.sizeMultiplier,r},mathmlBuilder(t,e){var r=t0(t.width,e),a=t0(t.height,e),i=t.shift?t0(t.shift,e):0,s=e.color&&e.getColor()||"black",o=new T("mspace");o.setAttribute("mathbackground",s),o.setAttribute("width",C(r)),o.setAttribute("height",C(a));var c=new T("mpadded",[o]);return i>=0?c.setAttribute("height",C(i)):(c.setAttribute("height",C(i)),c.setAttribute("depth",C(-i))),c.setAttribute("voffset",C(i)),c}});function xn(t,e,r){for(var a=o0(t,e,!1),i=e.sizeMultiplier/r.sizeMultiplier,s=0;s{var r=e.havingSize(t.size);return xn(t.body,r,e)};B({type:"sizing",names:Ai,numArgs:0,allowedInText:!0,handler:(t,e)=>{var r=t.breakOnTokenText,a=t.funcName,i=t.parser,s=i.parseExpression(!1,r);return{type:"sizing",mode:i.mode,size:Ai.indexOf(a)+1,body:s}},htmlBuilder:j2,mathmlBuilder:(t,e)=>{var r=e.havingSize(t.size),a=w0(t.body,r),i=new T("mstyle",a);return i.setAttribute("mathsize",C(r.sizeMultiplier)),i}});B({type:"smash",names:["\\smash"],numArgs:1,numOptionalArgs:1,allowedInText:!0,handler:(t,e,r)=>{var a=t.parser,i=!1,s=!1,o=r[0]&&$(r[0],"ordgroup");if(o)for(var c,m=0;m{var r=A([],[V(t.body,e)]);if(!t.smashHeight&&!t.smashDepth)return r;if(t.smashHeight&&(r.height=0),t.smashDepth&&(r.depth=0),t.smashHeight&&t.smashDepth)return A(["mord","katex-smash"],[r],e);if(r.children)for(var a=0;a{var r=new T("mpadded",[W(t.body,e)]);return t.smashHeight&&r.setAttribute("height","0px"),t.smashDepth&&r.setAttribute("depth","0px"),r}});B({type:"sqrt",names:["\\sqrt"],numArgs:1,numOptionalArgs:1,handler(t,e,r){var a=t.parser,i=r[0],s=e[0];return{type:"sqrt",mode:a.mode,body:s,index:i}},htmlBuilder(t,e){var r=V(t.body,e.havingCrampedStyle());r.height===0&&(r.height=e.fontMetrics().xHeight),r=ze(r,e);var a=e.fontMetrics(),i=a.defaultRuleThickness,s=i;e.style.idr.height+r.depth+o&&(o=(o+y-r.height-r.depth)/2);var x=d.height-r.height-o-v;r.style.paddingLeft=C(b);var k=j({positionType:"firstBaseline",children:[{type:"elem",elem:r,wrapperClasses:["svg-align"]},{type:"kern",size:-(r.height+x)},{type:"elem",elem:d},{type:"kern",size:v}]});if(t.index){var M=e.havingStyle(G.SCRIPTSCRIPT),D=V(t.index,M,e),E=.6*(k.height-k.depth),q=j({positionType:"shift",positionData:-E,children:[{type:"elem",elem:D}]}),N=A(["katex-root"],[q]);return A(["mord","sqrt"],[N,k],e)}else return A(["mord","sqrt"],[k],e)},mathmlBuilder(t,e){var r=t.body,a=t.index;return a?new T("mroot",[W(r,e),W(a,e)]):new T("msqrt",[W(r,e)])}});var Rr={display:G.DISPLAY,text:G.TEXT,script:G.SCRIPT,scriptscript:G.SCRIPTSCRIPT};function Y2(t){return t in Rr}B({type:"styling",names:["\\displaystyle","\\textstyle","\\scriptstyle","\\scriptscriptstyle"],numArgs:0,allowedInText:!0,primitive:!0,handler(t,e){var r=t.breakOnTokenText,a=t.funcName,i=t.parser,s=i.parseExpression(!0,r),o=a.slice(1,a.length-5);if(!Y2(o))throw new Error("Unknown style: "+o);return{type:"styling",mode:i.mode,style:o,body:s}},htmlBuilder(t,e){var r=Rr[t.style],a=e.havingStyle(r);return t.resetFont&&(a=a.withFont("")),xn(t.body,a,e)},mathmlBuilder(t,e){var r=Rr[t.style],a=e.havingStyle(r);t.resetFont&&(a=a.withFont(""));var i=w0(t.body,a),s=new T("mstyle",i),o={display:["0","true"],text:["0","false"],script:["1","false"],scriptscript:["2","false"]},c=o[t.style];return s.setAttribute("scriptlevel",c[0]),s.setAttribute("displaystyle",c[1]),s}});var X2=function(e,r){var a=e.base;if(a)if(a.type==="op"){var i=a.limits&&(r.style.size===G.DISPLAY.size||a.alwaysHandleSupSub);return i?gn:null}else if(a.type==="operatorname"){var s=a.alwaysHandleSupSub&&(r.style.size===G.DISPLAY.size||a.limits);return s?bn:null}else{if(a.type==="accent")return V0(a.base)?Qi:null;if(a.type==="horizBrace"){var o=!e.sub;return o===a.isOver?fn:null}else return null}else return null};ue({type:"supsub",htmlBuilder(t,e){var r=X2(t,e);if(r)return r(t,e);var a=t.base,i=t.sup,s=t.sub,o=V(a,e),c,m,d=e.fontMetrics(),v=0,b=0,y=a&&V0(a);if(i){var x=e.havingStyle(e.style.sup());c=V(i,x,e),y||(v=o.height-x.fontMetrics().supDrop*x.sizeMultiplier/e.sizeMultiplier)}if(s){var k=e.havingStyle(e.style.sub());m=V(s,k,e),y||(b=o.depth+k.fontMetrics().subDrop*k.sizeMultiplier/e.sizeMultiplier)}var M;e.style===G.DISPLAY?M=d.sup1:e.style.cramped?M=d.sup3:M=d.sup2;var D=e.sizeMultiplier,E=C(.5/d.ptPerEm/D),q=null;if(m){var N=t.base&&t.base.type==="op"&&t.base.name&&(t.base.name==="\\oiint"||t.base.name==="\\oiiint");if(o instanceof p0||N){var F;q=C(-((F=o.italic)!=null?F:0))}}var U;if(c&&m){v=Math.max(v,M,c.depth+.25*d.xHeight),b=Math.max(b,d.sub2);var L=d.defaultRuleThickness,P=4*L;if(v-c.depth-(m.height-b)0&&(v+=I,b-=I)}var Y=[{type:"elem",elem:m,shift:b,marginRight:E,marginLeft:q},{type:"elem",elem:c,shift:-v,marginRight:E}];U=j({positionType:"individualShift",children:Y})}else if(m){b=Math.max(b,d.sub1,m.height-.8*d.xHeight);var Z=[{type:"elem",elem:m,marginLeft:q,marginRight:E}];U=j({positionType:"shift",positionData:b,children:Z})}else if(c)v=Math.max(v,M,c.depth+.25*d.xHeight),U=j({positionType:"shift",positionData:-v,children:[{type:"elem",elem:c,marginRight:E}]});else throw new Error("supsub must have either sup or sub.");var m0=Dr(o,"right")||"mord";return A([m0],[o,A(["msupsub"],[U])],e)},mathmlBuilder(t,e){var r=!1,a,i;t.base&&t.base.type==="horizBrace"&&(i=!!t.sup,i===t.base.isOver&&(r=!0,a=t.base.isOver)),t.base&&(t.base.type==="op"||t.base.type==="operatorname")&&(t.base.parentIsSupSub=!0);var s=[W(t.base,e)];t.sub&&s.push(W(t.sub,e)),t.sup&&s.push(W(t.sup,e));var o;if(r)o=a?"mover":"munder";else if(t.sub)if(t.sup){var d=t.base;d&&d.type==="op"&&d.limits&&e.style===G.DISPLAY||d&&d.type==="operatorname"&&d.alwaysHandleSupSub&&(e.style===G.DISPLAY||d.limits)?o="munderover":o="msubsup"}else{var m=t.base;m&&m.type==="op"&&m.limits&&(e.style===G.DISPLAY||m.alwaysHandleSupSub)||m&&m.type==="operatorname"&&m.alwaysHandleSupSub&&(m.limits||e.style===G.DISPLAY)?o="munder":o="msub"}else{var c=t.base;c&&c.type==="op"&&c.limits&&(e.style===G.DISPLAY||c.alwaysHandleSupSub)||c&&c.type==="operatorname"&&c.alwaysHandleSupSub&&(c.limits||e.style===G.DISPLAY)?o="mover":o="msup"}return new T(o,s)}});ue({type:"atom",htmlBuilder(t,e){return Pr(t.text,t.mode,e,["m"+t.family])},mathmlBuilder(t,e){var r=new T("mo",[z0(t.text,t.mode)]);if(t.family==="bin"){var a=$r(t,e);a==="bold-italic"&&r.setAttribute("mathvariant",a)}else t.family==="punct"?r.setAttribute("separator","true"):(t.family==="open"||t.family==="close")&&r.setAttribute("stretchy","false");return r}});var wn={mi:"italic",mn:"normal",mtext:"normal"};ue({type:"mathord",htmlBuilder(t,e){return Ft(t,e)},mathmlBuilder(t,e){var r=new T("mi",[z0(t.text,t.mode,e)]),a=$r(t,e)||"italic";return a!==wn[r.type]&&r.setAttribute("mathvariant",a),r}});ue({type:"textord",htmlBuilder(t,e){return Ft(t,e)},mathmlBuilder(t,e){var r=z0(t.text,t.mode,e),a=$r(t,e)||"normal",i;return t.mode==="text"?i=new T("mtext",[r]):/[0-9]/.test(t.text)?i=new T("mn",[r]):t.text==="\\prime"?i=new T("mo",[r]):i=new T("mi",[r]),a!==wn[i.type]&&i.setAttribute("mathvariant",a),i}});var zi=new Map([["\\nobreak","nobreak"],["\\allowbreak","allowbreak"]]),Ti=new Map([[" ",{}],["\\ ",{}],["~",{className:"nobreak"}],["\\space",{}],["\\nobreakspace",{className:"nobreak"}]]);ue({type:"spacing",htmlBuilder(t,e){var r=Ti.get(t.text),a=zi.get(t.text);if(r){var i=r.className||"";if(t.mode==="text"){var s=Ft(t,e);return s.classes.push(i),s}else return A(["mspace",i],[Pr(t.text,t.mode,e)],e)}else{if(a)return A(["mspace",a],[],e);throw new z('Unknown type of space "'+t.text+'"')}},mathmlBuilder(t,e){var r;if(Ti.has(t.text))r=new T("mtext",[new r0("\xA0")]);else{if(zi.has(t.text))return new T("mspace");throw new z('Unknown type of space "'+t.text+'"')}return r}});var Mi=()=>{var t=new T("mtd",[]);return t.setAttribute("width","50%"),t};ue({type:"tag",mathmlBuilder(t,e){var r=new T("mtable",[new T("mtr",[Mi(),new T("mtd",[re(t.body,e)]),Mi(),new T("mtd",[re(t.tag,e)])])]);return r.setAttribute("width","100%"),r}});var Di={"\\text":void 0,"\\textrm":"textrm","\\textsf":"textsf","\\texttt":"texttt","\\textnormal":"textrm"},Ci={"\\textbf":"textbf","\\textmd":"textmd"},W2={"\\textit":"textit","\\textup":"textup"},Ei=(t,e)=>{var r=t.font;if(r){if(Di[r])return e.withTextFontFamily(Di[r]);if(Ci[r])return e.withTextFontWeight(Ci[r]);if(r==="\\emph")return e.fontShape==="textit"?e.withTextFontShape("textup"):e.withTextFontShape("textit")}else return e;return e.withTextFontShape(W2[r])};B({type:"text",names:["\\text","\\textrm","\\textsf","\\texttt","\\textnormal","\\textbf","\\textmd","\\textit","\\textup","\\emph"],numArgs:1,argTypes:["text"],allowedInArgument:!0,allowedInText:!0,handler(t,e){var r=t.parser,a=t.funcName,i=e[0];return{type:"text",mode:r.mode,body:n0(i),font:a}},htmlBuilder(t,e){var r=Ei(t,e),a=o0(t.body,r,!0);return A(["mord","text"],a,r)},mathmlBuilder(t,e){var r=Ei(t,e);return re(t.body,r)}});B({type:"underline",names:["\\underline"],numArgs:1,allowedInText:!0,handler(t,e){var r=t.parser;return{type:"underline",mode:r.mode,body:e[0]}},htmlBuilder(t,e){var r=V(t.body,e),a=Ae("underline-line",e),i=e.fontMetrics().defaultRuleThickness,s=j({positionType:"top",positionData:r.height,children:[{type:"kern",size:i},{type:"elem",elem:a},{type:"kern",size:3*i},{type:"elem",elem:r}]});return A(["mord","katex-underline"],[s],e)},mathmlBuilder(t,e){var r=new T("mo",[new r0("\u203E")]);r.setAttribute("stretchy","true");var a=new T("munder",[W(t.body,e),r]);return a.setAttribute("accentunder","true"),a}});B({type:"vcenter",names:["\\vcenter"],numArgs:1,argTypes:["original"],allowedInText:!1,handler(t,e){var r=t.parser;return{type:"vcenter",mode:r.mode,body:e[0]}},htmlBuilder(t,e){var r=V(t.body,e),a=e.fontMetrics().axisHeight,i=.5*(r.height-a-(r.depth+a));return j({positionType:"shift",positionData:i,children:[{type:"elem",elem:r}]})},mathmlBuilder(t,e){var r=new T("mpadded",[W(t.body,e)],["vcenter"]);return new T("mrow",[r])}});B({type:"verb",names:["\\verb"],numArgs:0,allowedInText:!0,handler(t,e,r){throw new z("\\verb ended by end of line instead of matching delimiter")},htmlBuilder(t,e){for(var r=Bi(t),a=[],i=e.havingStyle(e.style.text()),s=0;st.body.replace(/ /g,t.star?"\u2423":"\xA0"),J0=Yi,Sn=`[ \r + ]`,Z2="\\\\[a-zA-Z@]+",K2="\\\\[^\uD800-\uDFFF]",J2="("+Z2+")"+Sn+"*",Q2=`\\\\( +|[ \r ]+ +?)[ \r ]*`,Ir="[\u0300-\u036F]",_2=new RegExp(Ir+"+$"),e5="("+Sn+"+)|"+(Q2+"|")+"([!-\\[\\]-\u2027\u202A-\uD7FF\uF900-\uFFFF]"+(Ir+"*")+"|[\uD800-\uDBFF][\uDC00-\uDFFF]"+(Ir+"*")+"|\\\\verb\\*([^]).*?\\4|\\\\verb([^*a-zA-Z]).*?\\5"+("|"+J2)+("|"+K2+")"),It=class{constructor(e,r){this.input=void 0,this.settings=void 0,this.tokenRegex=void 0,this.catcodes=void 0,this.input=e,this.settings=r,this.tokenRegex=new RegExp(e5,"g"),this.catcodes={"%":14,"~":13}}setCatcode(e,r){this.catcodes[e]=r}lex(){var e=this.input,r=this.tokenRegex.lastIndex;if(r===e.length)return new y0("EOF",new b0(this,r,r));var a=this.tokenRegex.exec(e);if(a===null||a.index!==r)throw new z("Unexpected character: '"+e[r]+"'",new y0(e[r],new b0(this,r,r+1)));var i=a[6]||a[3]||(a[2]?"\\ ":" ");if(this.catcodes[i]===14){var s=e.indexOf(` +`,this.tokenRegex.lastIndex);return s===-1?(this.tokenRegex.lastIndex=e.length,this.settings.reportNonstrict("commentAtEnd","% comment has no terminating newline; LaTeX would fail because of commenting the end of math mode (e.g. $)")):this.tokenRegex.lastIndex=s+1,this.lex()}return new y0(i,new b0(this,r,this.tokenRegex.lastIndex))}},Nr=class{constructor(e,r){e===void 0&&(e={}),r===void 0&&(r={}),this.current=void 0,this.builtins=void 0,this.undefStack=void 0,this.current=r,this.builtins=e,this.undefStack=[]}beginGroup(){this.undefStack.push({})}endGroup(){if(this.undefStack.length===0)throw new z("Unbalanced namespace destruction: attempt to pop global namespace; please report this as a bug");var e=this.undefStack.pop();for(var r of Object.keys(e))e[r]===void 0?delete this.current[r]:this.current[r]=e[r]}endGroups(){for(;this.undefStack.length>0;)this.endGroup()}has(e){return Object.prototype.hasOwnProperty.call(this.current,e)||Object.prototype.hasOwnProperty.call(this.builtins,e)}get(e){return Object.prototype.hasOwnProperty.call(this.current,e)?this.current[e]:Object.prototype.hasOwnProperty.call(this.builtins,e)?this.builtins[e]:void 0}set(e,r,a){if(a===void 0&&(a=!1),a){for(var i=0;i0&&(this.undefStack[this.undefStack.length-1][e]=r)}else{var s=this.undefStack[this.undefStack.length-1];s&&!Object.prototype.hasOwnProperty.call(s,e)&&(s[e]=Object.prototype.hasOwnProperty.call(this.current,e)?this.current[e]:void 0)}r==null?delete this.current[e]:this.current[e]=r}},t5=hn;h("\\noexpand",function(t){var e=t.popToken();return t.isExpandable(e.text)&&(e.noexpand=!0,e.treatAsRelax=!0),{tokens:[e],numArgs:0}});h("\\expandafter",function(t){var e=t.popToken();return t.expandOnce(!0),{tokens:[e],numArgs:0}});h("\\@firstoftwo",function(t){var e=t.consumeArgs(2);return{tokens:e[0],numArgs:0}});h("\\@secondoftwo",function(t){var e=t.consumeArgs(2);return{tokens:e[1],numArgs:0}});h("\\@ifnextchar",function(t){var e=t.consumeArgs(3);t.consumeSpaces();var r=t.future();return e[0].length===1&&e[0][0].text===r.text?{tokens:e[1],numArgs:0}:{tokens:e[2],numArgs:0}});h("\\@ifstar","\\@ifnextchar *{\\@firstoftwo{#1}}");h("\\TextOrMath",function(t){var e=t.consumeArgs(2);return t.mode==="text"?{tokens:e[0],numArgs:0}:{tokens:e[1],numArgs:0}});var qi={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,a:10,A:10,b:11,B:11,c:12,C:12,d:13,D:13,e:14,E:14,f:15,F:15};h("\\char",function(t){var e=t.popToken(),r,a=0;if(e.text==="'")r=8,e=t.popToken();else if(e.text==='"')r=16,e=t.popToken();else if(e.text==="`")if(e=t.popToken(),e.text[0]==="\\")a=e.text.charCodeAt(1);else{if(e.text==="EOF")throw new z("\\char` missing argument");a=e.text.charCodeAt(0)}else r=10;if(r){if(a=qi[e.text],a==null||a>=r)throw new z("Invalid base-"+r+" digit "+e.text);for(var i;(i=qi[t.future().text])!=null&&i{var i=t.consumeArg().tokens;if(i.length!==1)throw new z("\\newcommand's first argument must be a macro name");var s=i[0].text,o=t.isDefined(s);if(o&&!e)throw new z("\\newcommand{"+s+"} attempting to redefine "+(s+"; use \\renewcommand"));if(!o&&!r)throw new z("\\renewcommand{"+s+"} when command "+s+" does not yet exist; use \\newcommand");var c=0;if(i=t.consumeArg().tokens,i.length===1&&i[0].text==="["){for(var m="",d=t.expandNextToken();d.text!=="]"&&d.text!=="EOF";)m+=d.text,d=t.expandNextToken();if(!m.match(/^\s*[0-9]+\s*$/))throw new z("Invalid number of arguments: "+m);c=parseInt(m),i=t.consumeArg().tokens}return o&&a||t.macros.set(s,{tokens:i,numArgs:c}),""};h("\\newcommand",t=>Wr(t,!1,!0,!1));h("\\renewcommand",t=>Wr(t,!0,!1,!1));h("\\providecommand",t=>Wr(t,!0,!0,!0));h("\\message",t=>{var e=t.consumeArgs(1)[0];return console.log(e.reverse().map(r=>r.text).join("")),""});h("\\errmessage",t=>{var e=t.consumeArgs(1)[0];return console.error(e.reverse().map(r=>r.text).join("")),""});h("\\show",t=>{var e=t.popToken(),r=e.text;return console.log(e,t.macros.get(r),J0[r],K.math[r],K.text[r]),""});h("\\bgroup","{");h("\\egroup","}");h("~","\\nobreakspace");h("\\lq","`");h("\\rq","'");h("\\aa","\\r a");h("\\AA","\\r A");h("\\textcopyright","\\html@mathml{\\textcircled{c}}{\\char`\xA9}");h("\\copyright","\\TextOrMath{\\textcopyright}{\\text{\\textcopyright}}");h("\\textregistered","\\html@mathml{\\textcircled{\\scriptsize R}}{\\char`\xAE}");h("\u212C","\\mathscr{B}");h("\u2130","\\mathscr{E}");h("\u2131","\\mathscr{F}");h("\u210B","\\mathscr{H}");h("\u2110","\\mathscr{I}");h("\u2112","\\mathscr{L}");h("\u2133","\\mathscr{M}");h("\u211B","\\mathscr{R}");h("\u212D","\\mathfrak{C}");h("\u210C","\\mathfrak{H}");h("\u2128","\\mathfrak{Z}");h("\\Bbbk","\\Bbb{k}");h("\\llap","\\mathllap{\\textrm{#1}}");h("\\rlap","\\mathrlap{\\textrm{#1}}");h("\\clap","\\mathclap{\\textrm{#1}}");h("\\mathstrut","\\vphantom{(}");h("\\underbar","\\underline{\\text{#1}}");h("\\not",'\\html@mathml{\\mathrel{\\mathrlap\\@not}\\nobreak}{\\char"338}');h("\\neq","\\html@mathml{\\mathrel{\\not=}}{\\mathrel{\\char`\u2260}}");h("\\ne","\\neq");h("\u2260","\\neq");h("\\notin","\\html@mathml{\\mathrel{{\\in}\\mathllap{/\\mskip1mu}}}{\\mathrel{\\char`\u2209}}");h("\u2209","\\notin");h("\u2258","\\html@mathml{\\mathrel{=\\kern{-1em}\\raisebox{0.4em}{$\\scriptsize\\frown$}}}{\\mathrel{\\char`\u2258}}");h("\u2259","\\html@mathml{\\stackrel{\\tiny\\wedge}{=}}{\\mathrel{\\char`\u2258}}");h("\u225A","\\html@mathml{\\stackrel{\\tiny\\vee}{=}}{\\mathrel{\\char`\u225A}}");h("\u225B","\\html@mathml{\\stackrel{\\scriptsize\\star}{=}}{\\mathrel{\\char`\u225B}}");h("\u225D","\\html@mathml{\\stackrel{\\tiny\\mathrm{def}}{=}}{\\mathrel{\\char`\u225D}}");h("\u225E","\\html@mathml{\\stackrel{\\tiny\\mathrm{m}}{=}}{\\mathrel{\\char`\u225E}}");h("\u225F","\\html@mathml{\\stackrel{\\tiny?}{=}}{\\mathrel{\\char`\u225F}}");h("\u27C2","\\perp");h("\u203C","\\mathclose{!\\mkern-0.8mu!}");h("\u220C","\\notni");h("\u231C","\\ulcorner");h("\u231D","\\urcorner");h("\u231E","\\llcorner");h("\u231F","\\lrcorner");h("\xA9","\\copyright");h("\xAE","\\textregistered");h("\\ulcorner",'\\html@mathml{\\@ulcorner}{\\mathop{\\char"231c}}');h("\\urcorner",'\\html@mathml{\\@urcorner}{\\mathop{\\char"231d}}');h("\\llcorner",'\\html@mathml{\\@llcorner}{\\mathop{\\char"231e}}');h("\\lrcorner",'\\html@mathml{\\@lrcorner}{\\mathop{\\char"231f}}');h("\\vdots","{\\varvdots\\rule{0pt}{15pt}}");h("\u22EE","\\vdots");h("\\varGamma","\\mathit{\\Gamma}");h("\\varDelta","\\mathit{\\Delta}");h("\\varTheta","\\mathit{\\Theta}");h("\\varLambda","\\mathit{\\Lambda}");h("\\varXi","\\mathit{\\Xi}");h("\\varPi","\\mathit{\\Pi}");h("\\varSigma","\\mathit{\\Sigma}");h("\\varUpsilon","\\mathit{\\Upsilon}");h("\\varPhi","\\mathit{\\Phi}");h("\\varPsi","\\mathit{\\Psi}");h("\\varOmega","\\mathit{\\Omega}");h("\\substack","\\begin{subarray}{c}#1\\end{subarray}");h("\\colon","\\nobreak\\mskip2mu\\mathpunct{}\\mathchoice{\\mkern-3mu}{\\mkern-3mu}{}{}{:}\\mskip6mu\\relax");h("\\boxed","\\fbox{$\\displaystyle{#1}$}");h("\\iff","\\DOTSB\\;\\Longleftrightarrow\\;");h("\\implies","\\DOTSB\\;\\Longrightarrow\\;");h("\\impliedby","\\DOTSB\\;\\Longleftarrow\\;");h("\\dddot","{\\overset{\\raisebox{-0.1ex}{\\normalsize ...}}{#1}}");h("\\ddddot","{\\overset{\\raisebox{-0.1ex}{\\normalsize ....}}{#1}}");var Ri={",":"\\dotsc","\\not":"\\dotsb","+":"\\dotsb","=":"\\dotsb","<":"\\dotsb",">":"\\dotsb","-":"\\dotsb","*":"\\dotsb",":":"\\dotsb","\\DOTSB":"\\dotsb","\\coprod":"\\dotsb","\\bigvee":"\\dotsb","\\bigwedge":"\\dotsb","\\biguplus":"\\dotsb","\\bigcap":"\\dotsb","\\bigcup":"\\dotsb","\\prod":"\\dotsb","\\sum":"\\dotsb","\\bigotimes":"\\dotsb","\\bigoplus":"\\dotsb","\\bigodot":"\\dotsb","\\bigsqcup":"\\dotsb","\\And":"\\dotsb","\\longrightarrow":"\\dotsb","\\Longrightarrow":"\\dotsb","\\longleftarrow":"\\dotsb","\\Longleftarrow":"\\dotsb","\\longleftrightarrow":"\\dotsb","\\Longleftrightarrow":"\\dotsb","\\mapsto":"\\dotsb","\\longmapsto":"\\dotsb","\\hookrightarrow":"\\dotsb","\\doteq":"\\dotsb","\\mathbin":"\\dotsb","\\mathrel":"\\dotsb","\\relbar":"\\dotsb","\\Relbar":"\\dotsb","\\xrightarrow":"\\dotsb","\\xleftarrow":"\\dotsb","\\DOTSI":"\\dotsi","\\int":"\\dotsi","\\oint":"\\dotsi","\\iint":"\\dotsi","\\iiint":"\\dotsi","\\iiiint":"\\dotsi","\\idotsint":"\\dotsi","\\DOTSX":"\\dotsx"},r5=new Set(["bin","rel"]);h("\\dots",function(t){var e="\\dotso",r=t.expandAfterFuture().text;return r in Ri?e=Ri[r]:(r.slice(0,4)==="\\not"||r in K.math&&r5.has(K.math[r].group))&&(e="\\dotsb"),e});var Zr={")":!0,"]":!0,"\\rbrack":!0,"\\}":!0,"\\rbrace":!0,"\\rangle":!0,"\\rceil":!0,"\\rfloor":!0,"\\rgroup":!0,"\\rmoustache":!0,"\\right":!0,"\\bigr":!0,"\\biggr":!0,"\\Bigr":!0,"\\Biggr":!0,$:!0,";":!0,".":!0,",":!0};h("\\dotso",function(t){var e=t.future().text;return e in Zr?"\\ldots\\,":"\\ldots"});h("\\dotsc",function(t){var e=t.future().text;return e in Zr&&e!==","?"\\ldots\\,":"\\ldots"});h("\\cdots",function(t){var e=t.future().text;return e in Zr?"\\@cdots\\,":"\\@cdots"});h("\\dotsb","\\cdots");h("\\dotsm","\\cdots");h("\\dotsi","\\!\\cdots");h("\\dotsx","\\ldots\\,");h("\\DOTSI","\\relax");h("\\DOTSB","\\relax");h("\\DOTSX","\\relax");h("\\tmspace","\\TextOrMath{\\kern#1#3}{\\mskip#1#2}\\relax");h("\\,","\\tmspace+{3mu}{.1667em}");h("\\thinspace","\\,");h("\\>","\\mskip{4mu}");h("\\:","\\tmspace+{4mu}{.2222em}");h("\\medspace","\\:");h("\\;","\\tmspace+{5mu}{.2777em}");h("\\thickspace","\\;");h("\\!","\\tmspace-{3mu}{.1667em}");h("\\negthinspace","\\!");h("\\negmedspace","\\tmspace-{4mu}{.2222em}");h("\\negthickspace","\\tmspace-{5mu}{.277em}");h("\\enspace","\\kern.5em ");h("\\enskip","\\hskip.5em\\relax");h("\\quad","\\hskip1em\\relax");h("\\qquad","\\hskip2em\\relax");h("\\tag","\\@ifstar\\tag@literal\\tag@paren");h("\\tag@paren","\\tag@literal{({#1})}");h("\\tag@literal",t=>{if(t.macros.get("\\df@tag"))throw new z("Multiple \\tag");return"\\gdef\\df@tag{\\text{#1}}"});h("\\bmod","\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}\\mathbin{\\rm mod}\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}");h("\\pod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern8mu}{\\mkern8mu}{\\mkern8mu}(#1)");h("\\pmod","\\pod{{\\rm mod}\\mkern6mu#1}");h("\\mod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern12mu}{\\mkern12mu}{\\mkern12mu}{\\rm mod}\\,\\,#1");h("\\newline","\\\\\\relax");h("\\TeX","\\textrm{\\html@mathml{T\\kern-.1667em\\raisebox{-.5ex}{E}\\kern-.125emX}{TeX}}");var kn=C(B0["Main-Regular"][84][1]-.7*B0["Main-Regular"][65][1]);h("\\LaTeX","\\textrm{\\html@mathml{"+("L\\kern-.36em\\raisebox{"+kn+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{LaTeX}}");h("\\KaTeX","\\textrm{\\html@mathml{"+("K\\kern-.17em\\raisebox{"+kn+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{KaTeX}}");h("\\hspace","\\@ifstar\\@hspacer\\@hspace");h("\\@hspace","\\hskip #1\\relax");h("\\@hspacer","\\rule{0pt}{0pt}\\hskip #1\\relax");h("\\ordinarycolon",":");h("\\vcentcolon","\\mathrel{\\mathop\\ordinarycolon}");h("\\dblcolon",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-.9mu}\\vcentcolon}}{\\mathop{\\char"2237}}');h("\\coloneqq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2254}}');h("\\Coloneqq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2237\\char"3d}}');h("\\coloneq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"3a\\char"2212}}');h("\\Coloneq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"2237\\char"2212}}');h("\\eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2255}}');h("\\Eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"3d\\char"2237}}');h("\\eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2239}}');h("\\Eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"2212\\char"2237}}');h("\\colonapprox",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"3a\\char"2248}}');h("\\Colonapprox",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"2237\\char"2248}}');h("\\colonsim",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"3a\\char"223c}}');h("\\Colonsim",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"2237\\char"223c}}');h("\u2237","\\dblcolon");h("\u2239","\\eqcolon");h("\u2254","\\coloneqq");h("\u2255","\\eqqcolon");h("\u2A74","\\Coloneqq");h("\\ratio","\\vcentcolon");h("\\coloncolon","\\dblcolon");h("\\colonequals","\\coloneqq");h("\\coloncolonequals","\\Coloneqq");h("\\equalscolon","\\eqqcolon");h("\\equalscoloncolon","\\Eqqcolon");h("\\colonminus","\\coloneq");h("\\coloncolonminus","\\Coloneq");h("\\minuscolon","\\eqcolon");h("\\minuscoloncolon","\\Eqcolon");h("\\coloncolonapprox","\\Colonapprox");h("\\coloncolonsim","\\Colonsim");h("\\simcolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\vcentcolon}");h("\\simcoloncolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\dblcolon}");h("\\approxcolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\vcentcolon}");h("\\approxcoloncolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\dblcolon}");h("\\notni","\\html@mathml{\\not\\ni}{\\mathrel{\\char`\u220C}}");h("\\limsup","\\DOTSB\\operatorname*{lim\\,sup}");h("\\liminf","\\DOTSB\\operatorname*{lim\\,inf}");h("\\injlim","\\DOTSB\\operatorname*{inj\\,lim}");h("\\projlim","\\DOTSB\\operatorname*{proj\\,lim}");h("\\varlimsup","\\DOTSB\\operatorname*{\\overline{lim}}");h("\\varliminf","\\DOTSB\\operatorname*{\\underline{lim}}");h("\\varinjlim","\\DOTSB\\operatorname*{\\underrightarrow{lim}}");h("\\varprojlim","\\DOTSB\\operatorname*{\\underleftarrow{lim}}");h("\\gvertneqq","\\html@mathml{\\@gvertneqq}{\u2269}");h("\\lvertneqq","\\html@mathml{\\@lvertneqq}{\u2268}");h("\\ngeqq","\\html@mathml{\\@ngeqq}{\u2271}");h("\\ngeqslant","\\html@mathml{\\@ngeqslant}{\u2271}");h("\\nleqq","\\html@mathml{\\@nleqq}{\u2270}");h("\\nleqslant","\\html@mathml{\\@nleqslant}{\u2270}");h("\\nshortmid","\\html@mathml{\\@nshortmid}{\u2224}");h("\\nshortparallel","\\html@mathml{\\@nshortparallel}{\u2226}");h("\\nsubseteqq","\\html@mathml{\\@nsubseteqq}{\u2288}");h("\\nsupseteqq","\\html@mathml{\\@nsupseteqq}{\u2289}");h("\\varsubsetneq","\\html@mathml{\\@varsubsetneq}{\u228A}");h("\\varsubsetneqq","\\html@mathml{\\@varsubsetneqq}{\u2ACB}");h("\\varsupsetneq","\\html@mathml{\\@varsupsetneq}{\u228B}");h("\\varsupsetneqq","\\html@mathml{\\@varsupsetneqq}{\u2ACC}");h("\\imath","\\html@mathml{\\@imath}{\u0131}");h("\\jmath","\\html@mathml{\\@jmath}{\u0237}");h("\\llbracket","\\html@mathml{\\mathopen{[\\mkern-3.2mu[}}{\\mathopen{\\char`\u27E6}}");h("\\rrbracket","\\html@mathml{\\mathclose{]\\mkern-3.2mu]}}{\\mathclose{\\char`\u27E7}}");h("\u27E6","\\llbracket");h("\u27E7","\\rrbracket");h("\\lBrace","\\html@mathml{\\mathopen{\\{\\mkern-3.2mu[}}{\\mathopen{\\char`\u2983}}");h("\\rBrace","\\html@mathml{\\mathclose{]\\mkern-3.2mu\\}}}{\\mathclose{\\char`\u2984}}");h("\u21A4","\\mapsfrom");h("\\mapsfrom","\\html@mathml{\\mathrel{\\mathreflectbox{\\mapsto}}}{\\mathrel{\\char`\u21A4}}");h("\u2983","\\lBrace");h("\u2984","\\rBrace");h("\\minuso","\\mathbin{\\html@mathml{{\\mathrlap{\\mathchoice{\\kern{0.145em}}{\\kern{0.145em}}{\\kern{0.1015em}}{\\kern{0.0725em}}\\circ}{-}}}{\\char`\u29B5}}");h("\u29B5","\\minuso");h("\\darr","\\downarrow");h("\\dArr","\\Downarrow");h("\\Darr","\\Downarrow");h("\\lang","\\langle");h("\\rang","\\rangle");h("\\uarr","\\uparrow");h("\\uArr","\\Uparrow");h("\\Uarr","\\Uparrow");h("\\N","\\mathbb{N}");h("\\R","\\mathbb{R}");h("\\Z","\\mathbb{Z}");h("\\alef","\\aleph");h("\\alefsym","\\aleph");h("\\Alpha","\\mathrm{A}");h("\\Beta","\\mathrm{B}");h("\\bull","\\bullet");h("\\Chi","\\mathrm{X}");h("\\clubs","\\clubsuit");h("\\cnums","\\mathbb{C}");h("\\Complex","\\mathbb{C}");h("\\Dagger","\\ddagger");h("\\diamonds","\\diamondsuit");h("\\empty","\\emptyset");h("\\Epsilon","\\mathrm{E}");h("\\Eta","\\mathrm{H}");h("\\exist","\\exists");h("\\harr","\\leftrightarrow");h("\\hArr","\\Leftrightarrow");h("\\Harr","\\Leftrightarrow");h("\\hearts","\\heartsuit");h("\\image","\\Im");h("\\infin","\\infty");h("\\Iota","\\mathrm{I}");h("\\isin","\\in");h("\\Kappa","\\mathrm{K}");h("\\larr","\\leftarrow");h("\\lArr","\\Leftarrow");h("\\Larr","\\Leftarrow");h("\\lrarr","\\leftrightarrow");h("\\lrArr","\\Leftrightarrow");h("\\Lrarr","\\Leftrightarrow");h("\\Mu","\\mathrm{M}");h("\\natnums","\\mathbb{N}");h("\\Nu","\\mathrm{N}");h("\\Omicron","\\mathrm{O}");h("\\plusmn","\\pm");h("\\rarr","\\rightarrow");h("\\rArr","\\Rightarrow");h("\\Rarr","\\Rightarrow");h("\\real","\\Re");h("\\reals","\\mathbb{R}");h("\\Reals","\\mathbb{R}");h("\\Rho","\\mathrm{P}");h("\\sdot","\\cdot");h("\\sect","\\S");h("\\spades","\\spadesuit");h("\\sub","\\subset");h("\\sube","\\subseteq");h("\\supe","\\supseteq");h("\\Tau","\\mathrm{T}");h("\\thetasym","\\vartheta");h("\\weierp","\\wp");h("\\Zeta","\\mathrm{Z}");h("\\argmin","\\DOTSB\\operatorname*{arg\\,min}");h("\\argmax","\\DOTSB\\operatorname*{arg\\,max}");h("\\plim","\\DOTSB\\mathop{\\operatorname{plim}}\\limits");h("\\bra","\\mathinner{\\langle{#1}|}");h("\\ket","\\mathinner{|{#1}\\rangle}");h("\\braket","\\mathinner{\\langle{#1}\\rangle}");h("\\Bra","\\left\\langle#1\\right|");h("\\Ket","\\left|#1\\right\\rangle");var An=t=>e=>{var r=e.consumeArg().tokens,a=e.consumeArg().tokens,i=e.consumeArg().tokens,s=e.consumeArg().tokens,o=e.macros.get("|"),c=e.macros.get("\\|");e.macros.beginGroup();var m=b=>y=>{t&&(y.macros.set("|",o),i.length&&y.macros.set("\\|",c));var x=b;if(!b&&i.length){var k=y.future();k.text==="|"&&(y.popToken(),x=!0)}return{tokens:x?i:a,numArgs:0}};e.macros.set("|",m(!1)),i.length&&e.macros.set("\\|",m(!0));var d=e.consumeArg().tokens,v=e.expandTokens([...s,...d,...r]);return e.macros.endGroup(),{tokens:v.reverse(),numArgs:0}};h("\\bra@ket",An(!1));h("\\bra@set",An(!0));h("\\Braket","\\bra@ket{\\left\\langle}{\\,\\middle\\vert\\,}{\\,\\middle\\vert\\,}{\\right\\rangle}");h("\\Set","\\bra@set{\\left\\{\\:}{\\;\\middle\\vert\\;}{\\;\\middle\\Vert\\;}{\\:\\right\\}}");h("\\set","\\bra@set{\\{\\,}{\\mid}{}{\\,\\}}");h("\\angln","{\\angl n}");h("\\blue","\\textcolor{##6495ed}{#1}");h("\\orange","\\textcolor{##ffa500}{#1}");h("\\pink","\\textcolor{##ff00af}{#1}");h("\\red","\\textcolor{##df0030}{#1}");h("\\green","\\textcolor{##28ae7b}{#1}");h("\\gray","\\textcolor{gray}{#1}");h("\\purple","\\textcolor{##9d38bd}{#1}");h("\\blueA","\\textcolor{##ccfaff}{#1}");h("\\blueB","\\textcolor{##80f6ff}{#1}");h("\\blueC","\\textcolor{##63d9ea}{#1}");h("\\blueD","\\textcolor{##11accd}{#1}");h("\\blueE","\\textcolor{##0c7f99}{#1}");h("\\tealA","\\textcolor{##94fff5}{#1}");h("\\tealB","\\textcolor{##26edd5}{#1}");h("\\tealC","\\textcolor{##01d1c1}{#1}");h("\\tealD","\\textcolor{##01a995}{#1}");h("\\tealE","\\textcolor{##208170}{#1}");h("\\greenA","\\textcolor{##b6ffb0}{#1}");h("\\greenB","\\textcolor{##8af281}{#1}");h("\\greenC","\\textcolor{##74cf70}{#1}");h("\\greenD","\\textcolor{##1fab54}{#1}");h("\\greenE","\\textcolor{##0d923f}{#1}");h("\\goldA","\\textcolor{##ffd0a9}{#1}");h("\\goldB","\\textcolor{##ffbb71}{#1}");h("\\goldC","\\textcolor{##ff9c39}{#1}");h("\\goldD","\\textcolor{##e07d10}{#1}");h("\\goldE","\\textcolor{##a75a05}{#1}");h("\\redA","\\textcolor{##fca9a9}{#1}");h("\\redB","\\textcolor{##ff8482}{#1}");h("\\redC","\\textcolor{##f9685d}{#1}");h("\\redD","\\textcolor{##e84d39}{#1}");h("\\redE","\\textcolor{##bc2612}{#1}");h("\\maroonA","\\textcolor{##ffbde0}{#1}");h("\\maroonB","\\textcolor{##ff92c6}{#1}");h("\\maroonC","\\textcolor{##ed5fa6}{#1}");h("\\maroonD","\\textcolor{##ca337c}{#1}");h("\\maroonE","\\textcolor{##9e034e}{#1}");h("\\purpleA","\\textcolor{##ddd7ff}{#1}");h("\\purpleB","\\textcolor{##c6b9fc}{#1}");h("\\purpleC","\\textcolor{##aa87ff}{#1}");h("\\purpleD","\\textcolor{##7854ab}{#1}");h("\\purpleE","\\textcolor{##543b78}{#1}");h("\\mintA","\\textcolor{##f5f9e8}{#1}");h("\\mintB","\\textcolor{##edf2df}{#1}");h("\\mintC","\\textcolor{##e0e5cc}{#1}");h("\\grayA","\\textcolor{##f6f7f7}{#1}");h("\\grayB","\\textcolor{##f0f1f2}{#1}");h("\\grayC","\\textcolor{##e3e5e6}{#1}");h("\\grayD","\\textcolor{##d6d8da}{#1}");h("\\grayE","\\textcolor{##babec2}{#1}");h("\\grayF","\\textcolor{##888d93}{#1}");h("\\grayG","\\textcolor{##626569}{#1}");h("\\grayH","\\textcolor{##3b3e40}{#1}");h("\\grayI","\\textcolor{##21242c}{#1}");h("\\kaBlue","\\textcolor{##314453}{#1}");h("\\kaGreen","\\textcolor{##71B307}{#1}");var zn={"^":!0,_:!0,"\\limits":!0,"\\nolimits":!0},Or=class{constructor(e,r,a){this.settings=void 0,this.expansionCount=void 0,this.lexer=void 0,this.macros=void 0,this.stack=void 0,this.mode=void 0,this.settings=r,this.expansionCount=0,this.feed(e),this.macros=new Nr(t5,r.macros),this.mode=a,this.stack=[]}feed(e){this.lexer=new It(e,this.settings)}switchMode(e){this.mode=e}beginGroup(){this.macros.beginGroup()}endGroup(){this.macros.endGroup()}endGroups(){this.macros.endGroups()}future(){return this.stack.length===0&&this.pushToken(this.lexer.lex()),this.stack[this.stack.length-1]}popToken(){return this.future(),this.stack.pop()}pushToken(e){this.stack.push(e)}pushTokens(e){this.stack.push(...e)}scanArgument(e){var r,a,i;if(e){if(this.consumeSpaces(),this.future().text!=="[")return null;r=this.popToken();var s=this.consumeArg(["]"]);i=s.tokens,a=s.end}else{var o=this.consumeArg();i=o.tokens,r=o.start,a=o.end}return this.pushToken(new y0("EOF",a.loc)),this.pushTokens(i),new y0("",b0.range(r,a))}consumeSpaces(){for(;;){var e=this.future();if(e.text===" ")this.stack.pop();else break}}consumeArg(e){var r=[],a=e&&e.length>0;a||this.consumeSpaces();var i=this.future(),s,o=0,c=0;do{if(s=this.popToken(),r.push(s),s.text==="{")++o;else if(s.text==="}"){if(--o,o===-1)throw new z("Extra }",s)}else if(s.text==="EOF")throw new z("Unexpected end of input in a macro argument, expected '"+(e&&a?e[c]:"}")+"'",s);if(e&&a)if((o===0||o===1&&e[c]==="{")&&s.text===e[c]){if(++c,c===e.length){r.splice(-c,c);break}}else c=0}while(o!==0||a);return i.text==="{"&&r[r.length-1].text==="}"&&(r.pop(),r.shift()),r.reverse(),{tokens:r,start:i,end:s}}consumeArgs(e,r){if(r){if(r.length!==e+1)throw new z("The length of delimiters doesn't match the number of args!");for(var a=r[0],i=0;ithis.settings.maxExpand)throw new z("Too many expansions: infinite loop or need to increase maxExpand setting")}expandOnce(e){var r=this.popToken(),a=r.text,i=r.noexpand?null:this._getExpansion(a);if(i==null||e&&i.unexpandable){if(e&&i==null&&a[0]==="\\"&&!this.isDefined(a))throw new z("Undefined control sequence: "+a);return this.pushToken(r),!1}this.countExpansion(1);var s=i.tokens,o=this.consumeArgs(i.numArgs,i.delimiters);if(i.numArgs){s=s.slice();for(var c=s.length-1;c>=0;--c){var m=s[c];if(m.text==="#"){if(c===0)throw new z("Incomplete placeholder at end of macro body",m);if(m=s[--c],m.text==="#")s.splice(c+1,1);else if(/^[1-9]$/.test(m.text))s.splice(c,2,...o[+m.text-1]);else throw new z("Not a valid argument number",m)}}}return this.pushTokens(s),s.length}expandAfterFuture(){return this.expandOnce(),this.future()}expandNextToken(){for(;;)if(this.expandOnce()===!1){var e=this.stack.pop();return e.treatAsRelax&&(e.text="\\relax"),e}}expandMacro(e){return this.macros.has(e)?this.expandTokens([new y0(e)]):void 0}expandTokens(e){var r=[],a=this.stack.length;for(this.pushTokens(e);this.stack.length>a;)if(this.expandOnce(!0)===!1){var i=this.stack.pop();i.treatAsRelax&&(i.noexpand=!1,i.treatAsRelax=!1),r.push(i)}return this.countExpansion(r.length),r}expandMacroAsText(e){var r=this.expandMacro(e);return r&&r.map(a=>a.text).join("")}_getExpansion(e){var r=this.macros.get(e);if(r==null)return r;if(e.length===1){var a=this.lexer.catcodes[e];if(a!=null&&a!==13)return}var i=typeof r=="function"?r(this):r;if(typeof i=="string"){var s=0;if(i.includes("#"))for(var o=i.replace(/##/g,"");o.includes("#"+(s+1));)++s;for(var c=new It(i,this.settings),m=[],d=c.lex();d.text!=="EOF";)m.push(d),d=c.lex();m.reverse();var v={tokens:m,numArgs:s};return v}return i}isDefined(e){return this.macros.has(e)||Object.prototype.hasOwnProperty.call(J0,e)||Object.prototype.hasOwnProperty.call(K.math,e)||Object.prototype.hasOwnProperty.call(K.text,e)||Object.prototype.hasOwnProperty.call(zn,e)}isExpandable(e){var r=this.macros.get(e);return r!=null?typeof r=="string"||typeof r=="function"||!r.unexpandable:Object.prototype.hasOwnProperty.call(J0,e)&&!J0[e].primitive}},Ii=/^[₊₋₌₍₎₀₁₂₃₄₅₆₇₈₉ₐₑₕᵢⱼₖₗₘₙₒₚᵣₛₜᵤᵥₓᵦᵧᵨᵩᵪ]/,Mt=Object.freeze({"\u208A":"+","\u208B":"-","\u208C":"=","\u208D":"(","\u208E":")","\u2080":"0","\u2081":"1","\u2082":"2","\u2083":"3","\u2084":"4","\u2085":"5","\u2086":"6","\u2087":"7","\u2088":"8","\u2089":"9","\u2090":"a","\u2091":"e","\u2095":"h","\u1D62":"i","\u2C7C":"j","\u2096":"k","\u2097":"l","\u2098":"m","\u2099":"n","\u2092":"o","\u209A":"p","\u1D63":"r","\u209B":"s","\u209C":"t","\u1D64":"u","\u1D65":"v","\u2093":"x","\u1D66":"\u03B2","\u1D67":"\u03B3","\u1D68":"\u03C1","\u1D69":"\u03D5","\u1D6A":"\u03C7","\u207A":"+","\u207B":"-","\u207C":"=","\u207D":"(","\u207E":")","\u2070":"0","\xB9":"1","\xB2":"2","\xB3":"3","\u2074":"4","\u2075":"5","\u2076":"6","\u2077":"7","\u2078":"8","\u2079":"9","\u1D2C":"A","\u1D2E":"B","\u1D30":"D","\u1D31":"E","\u1D33":"G","\u1D34":"H","\u1D35":"I","\u1D36":"J","\u1D37":"K","\u1D38":"L","\u1D39":"M","\u1D3A":"N","\u1D3C":"O","\u1D3E":"P","\u1D3F":"R","\u1D40":"T","\u1D41":"U","\u2C7D":"V","\u1D42":"W","\u1D43":"a","\u1D47":"b","\u1D9C":"c","\u1D48":"d","\u1D49":"e","\u1DA0":"f","\u1D4D":"g",\u02B0:"h","\u2071":"i",\u02B2:"j","\u1D4F":"k",\u02E1:"l","\u1D50":"m",\u207F:"n","\u1D52":"o","\u1D56":"p",\u02B3:"r",\u02E2:"s","\u1D57":"t","\u1D58":"u","\u1D5B":"v",\u02B7:"w",\u02E3:"x",\u02B8:"y","\u1DBB":"z","\u1D5D":"\u03B2","\u1D5E":"\u03B3","\u1D5F":"\u03B4","\u1D60":"\u03D5","\u1D61":"\u03C7","\u1DBF":"\u03B8"}),pr={"\u0301":{text:"\\'",math:"\\acute"},"\u0300":{text:"\\`",math:"\\grave"},"\u0308":{text:'\\"',math:"\\ddot"},"\u0303":{text:"\\~",math:"\\tilde"},"\u0304":{text:"\\=",math:"\\bar"},"\u0306":{text:"\\u",math:"\\breve"},"\u030C":{text:"\\v",math:"\\check"},"\u0302":{text:"\\^",math:"\\hat"},"\u0307":{text:"\\.",math:"\\dot"},"\u030A":{text:"\\r",math:"\\mathring"},"\u030B":{text:"\\H"},"\u0327":{text:"\\c"}},Ni={\u00E1:"a\u0301",\u00E0:"a\u0300",\u00E4:"a\u0308",\u01DF:"a\u0308\u0304",\u00E3:"a\u0303",\u0101:"a\u0304",\u0103:"a\u0306",\u1EAF:"a\u0306\u0301",\u1EB1:"a\u0306\u0300",\u1EB5:"a\u0306\u0303",\u01CE:"a\u030C",\u00E2:"a\u0302",\u1EA5:"a\u0302\u0301",\u1EA7:"a\u0302\u0300",\u1EAB:"a\u0302\u0303",\u0227:"a\u0307",\u01E1:"a\u0307\u0304",\u00E5:"a\u030A",\u01FB:"a\u030A\u0301",\u1E03:"b\u0307",\u0107:"c\u0301",\u1E09:"c\u0327\u0301",\u010D:"c\u030C",\u0109:"c\u0302",\u010B:"c\u0307",\u00E7:"c\u0327",\u010F:"d\u030C",\u1E0B:"d\u0307",\u1E11:"d\u0327",\u00E9:"e\u0301",\u00E8:"e\u0300",\u00EB:"e\u0308",\u1EBD:"e\u0303",\u0113:"e\u0304",\u1E17:"e\u0304\u0301",\u1E15:"e\u0304\u0300",\u0115:"e\u0306",\u1E1D:"e\u0327\u0306",\u011B:"e\u030C",\u00EA:"e\u0302",\u1EBF:"e\u0302\u0301",\u1EC1:"e\u0302\u0300",\u1EC5:"e\u0302\u0303",\u0117:"e\u0307",\u0229:"e\u0327",\u1E1F:"f\u0307",\u01F5:"g\u0301",\u1E21:"g\u0304",\u011F:"g\u0306",\u01E7:"g\u030C",\u011D:"g\u0302",\u0121:"g\u0307",\u0123:"g\u0327",\u1E27:"h\u0308",\u021F:"h\u030C",\u0125:"h\u0302",\u1E23:"h\u0307",\u1E29:"h\u0327",\u00ED:"i\u0301",\u00EC:"i\u0300",\u00EF:"i\u0308",\u1E2F:"i\u0308\u0301",\u0129:"i\u0303",\u012B:"i\u0304",\u012D:"i\u0306",\u01D0:"i\u030C",\u00EE:"i\u0302",\u01F0:"j\u030C",\u0135:"j\u0302",\u1E31:"k\u0301",\u01E9:"k\u030C",\u0137:"k\u0327",\u013A:"l\u0301",\u013E:"l\u030C",\u013C:"l\u0327",\u1E3F:"m\u0301",\u1E41:"m\u0307",\u0144:"n\u0301",\u01F9:"n\u0300",\u00F1:"n\u0303",\u0148:"n\u030C",\u1E45:"n\u0307",\u0146:"n\u0327",\u00F3:"o\u0301",\u00F2:"o\u0300",\u00F6:"o\u0308",\u022B:"o\u0308\u0304",\u00F5:"o\u0303",\u1E4D:"o\u0303\u0301",\u1E4F:"o\u0303\u0308",\u022D:"o\u0303\u0304",\u014D:"o\u0304",\u1E53:"o\u0304\u0301",\u1E51:"o\u0304\u0300",\u014F:"o\u0306",\u01D2:"o\u030C",\u00F4:"o\u0302",\u1ED1:"o\u0302\u0301",\u1ED3:"o\u0302\u0300",\u1ED7:"o\u0302\u0303",\u022F:"o\u0307",\u0231:"o\u0307\u0304",\u0151:"o\u030B",\u1E55:"p\u0301",\u1E57:"p\u0307",\u0155:"r\u0301",\u0159:"r\u030C",\u1E59:"r\u0307",\u0157:"r\u0327",\u015B:"s\u0301",\u1E65:"s\u0301\u0307",\u0161:"s\u030C",\u1E67:"s\u030C\u0307",\u015D:"s\u0302",\u1E61:"s\u0307",\u015F:"s\u0327",\u1E97:"t\u0308",\u0165:"t\u030C",\u1E6B:"t\u0307",\u0163:"t\u0327",\u00FA:"u\u0301",\u00F9:"u\u0300",\u00FC:"u\u0308",\u01D8:"u\u0308\u0301",\u01DC:"u\u0308\u0300",\u01D6:"u\u0308\u0304",\u01DA:"u\u0308\u030C",\u0169:"u\u0303",\u1E79:"u\u0303\u0301",\u016B:"u\u0304",\u1E7B:"u\u0304\u0308",\u016D:"u\u0306",\u01D4:"u\u030C",\u00FB:"u\u0302",\u016F:"u\u030A",\u0171:"u\u030B",\u1E7D:"v\u0303",\u1E83:"w\u0301",\u1E81:"w\u0300",\u1E85:"w\u0308",\u0175:"w\u0302",\u1E87:"w\u0307",\u1E98:"w\u030A",\u1E8D:"x\u0308",\u1E8B:"x\u0307",\u00FD:"y\u0301",\u1EF3:"y\u0300",\u00FF:"y\u0308",\u1EF9:"y\u0303",\u0233:"y\u0304",\u0177:"y\u0302",\u1E8F:"y\u0307",\u1E99:"y\u030A",\u017A:"z\u0301",\u017E:"z\u030C",\u1E91:"z\u0302",\u017C:"z\u0307",\u00C1:"A\u0301",\u00C0:"A\u0300",\u00C4:"A\u0308",\u01DE:"A\u0308\u0304",\u00C3:"A\u0303",\u0100:"A\u0304",\u0102:"A\u0306",\u1EAE:"A\u0306\u0301",\u1EB0:"A\u0306\u0300",\u1EB4:"A\u0306\u0303",\u01CD:"A\u030C",\u00C2:"A\u0302",\u1EA4:"A\u0302\u0301",\u1EA6:"A\u0302\u0300",\u1EAA:"A\u0302\u0303",\u0226:"A\u0307",\u01E0:"A\u0307\u0304",\u00C5:"A\u030A",\u01FA:"A\u030A\u0301",\u1E02:"B\u0307",\u0106:"C\u0301",\u1E08:"C\u0327\u0301",\u010C:"C\u030C",\u0108:"C\u0302",\u010A:"C\u0307",\u00C7:"C\u0327",\u010E:"D\u030C",\u1E0A:"D\u0307",\u1E10:"D\u0327",\u00C9:"E\u0301",\u00C8:"E\u0300",\u00CB:"E\u0308",\u1EBC:"E\u0303",\u0112:"E\u0304",\u1E16:"E\u0304\u0301",\u1E14:"E\u0304\u0300",\u0114:"E\u0306",\u1E1C:"E\u0327\u0306",\u011A:"E\u030C",\u00CA:"E\u0302",\u1EBE:"E\u0302\u0301",\u1EC0:"E\u0302\u0300",\u1EC4:"E\u0302\u0303",\u0116:"E\u0307",\u0228:"E\u0327",\u1E1E:"F\u0307",\u01F4:"G\u0301",\u1E20:"G\u0304",\u011E:"G\u0306",\u01E6:"G\u030C",\u011C:"G\u0302",\u0120:"G\u0307",\u0122:"G\u0327",\u1E26:"H\u0308",\u021E:"H\u030C",\u0124:"H\u0302",\u1E22:"H\u0307",\u1E28:"H\u0327",\u00CD:"I\u0301",\u00CC:"I\u0300",\u00CF:"I\u0308",\u1E2E:"I\u0308\u0301",\u0128:"I\u0303",\u012A:"I\u0304",\u012C:"I\u0306",\u01CF:"I\u030C",\u00CE:"I\u0302",\u0130:"I\u0307",\u0134:"J\u0302",\u1E30:"K\u0301",\u01E8:"K\u030C",\u0136:"K\u0327",\u0139:"L\u0301",\u013D:"L\u030C",\u013B:"L\u0327",\u1E3E:"M\u0301",\u1E40:"M\u0307",\u0143:"N\u0301",\u01F8:"N\u0300",\u00D1:"N\u0303",\u0147:"N\u030C",\u1E44:"N\u0307",\u0145:"N\u0327",\u00D3:"O\u0301",\u00D2:"O\u0300",\u00D6:"O\u0308",\u022A:"O\u0308\u0304",\u00D5:"O\u0303",\u1E4C:"O\u0303\u0301",\u1E4E:"O\u0303\u0308",\u022C:"O\u0303\u0304",\u014C:"O\u0304",\u1E52:"O\u0304\u0301",\u1E50:"O\u0304\u0300",\u014E:"O\u0306",\u01D1:"O\u030C",\u00D4:"O\u0302",\u1ED0:"O\u0302\u0301",\u1ED2:"O\u0302\u0300",\u1ED6:"O\u0302\u0303",\u022E:"O\u0307",\u0230:"O\u0307\u0304",\u0150:"O\u030B",\u1E54:"P\u0301",\u1E56:"P\u0307",\u0154:"R\u0301",\u0158:"R\u030C",\u1E58:"R\u0307",\u0156:"R\u0327",\u015A:"S\u0301",\u1E64:"S\u0301\u0307",\u0160:"S\u030C",\u1E66:"S\u030C\u0307",\u015C:"S\u0302",\u1E60:"S\u0307",\u015E:"S\u0327",\u0164:"T\u030C",\u1E6A:"T\u0307",\u0162:"T\u0327",\u00DA:"U\u0301",\u00D9:"U\u0300",\u00DC:"U\u0308",\u01D7:"U\u0308\u0301",\u01DB:"U\u0308\u0300",\u01D5:"U\u0308\u0304",\u01D9:"U\u0308\u030C",\u0168:"U\u0303",\u1E78:"U\u0303\u0301",\u016A:"U\u0304",\u1E7A:"U\u0304\u0308",\u016C:"U\u0306",\u01D3:"U\u030C",\u00DB:"U\u0302",\u016E:"U\u030A",\u0170:"U\u030B",\u1E7C:"V\u0303",\u1E82:"W\u0301",\u1E80:"W\u0300",\u1E84:"W\u0308",\u0174:"W\u0302",\u1E86:"W\u0307",\u1E8C:"X\u0308",\u1E8A:"X\u0307",\u00DD:"Y\u0301",\u1EF2:"Y\u0300",\u0178:"Y\u0308",\u1EF8:"Y\u0303",\u0232:"Y\u0304",\u0176:"Y\u0302",\u1E8E:"Y\u0307",\u0179:"Z\u0301",\u017D:"Z\u030C",\u1E90:"Z\u0302",\u017B:"Z\u0307",\u03AC:"\u03B1\u0301",\u1F70:"\u03B1\u0300",\u1FB1:"\u03B1\u0304",\u1FB0:"\u03B1\u0306",\u03AD:"\u03B5\u0301",\u1F72:"\u03B5\u0300",\u03AE:"\u03B7\u0301",\u1F74:"\u03B7\u0300",\u03AF:"\u03B9\u0301",\u1F76:"\u03B9\u0300",\u03CA:"\u03B9\u0308",\u0390:"\u03B9\u0308\u0301",\u1FD2:"\u03B9\u0308\u0300",\u1FD1:"\u03B9\u0304",\u1FD0:"\u03B9\u0306",\u03CC:"\u03BF\u0301",\u1F78:"\u03BF\u0300",\u03CD:"\u03C5\u0301",\u1F7A:"\u03C5\u0300",\u03CB:"\u03C5\u0308",\u03B0:"\u03C5\u0308\u0301",\u1FE2:"\u03C5\u0308\u0300",\u1FE1:"\u03C5\u0304",\u1FE0:"\u03C5\u0306",\u03CE:"\u03C9\u0301",\u1F7C:"\u03C9\u0300",\u038E:"\u03A5\u0301",\u1FEA:"\u03A5\u0300",\u03AB:"\u03A5\u0308",\u1FE9:"\u03A5\u0304",\u1FE8:"\u03A5\u0306",\u038F:"\u03A9\u0301",\u1FFA:"\u03A9\u0300"},Nt=class t{constructor(e,r){this.mode=void 0,this.gullet=void 0,this.settings=void 0,this.leftrightDepth=void 0,this.nextToken=void 0,this.mode="math",this.gullet=new Or(e,r,this.mode),this.settings=r,this.leftrightDepth=0,this.nextToken=null}expect(e,r){if(r===void 0&&(r=!0),this.fetch().text!==e)throw new z("Expected '"+e+"', got '"+this.fetch().text+"'",this.fetch());r&&this.consume()}consume(){this.nextToken=null}fetch(){return this.nextToken==null&&(this.nextToken=this.gullet.expandNextToken()),this.nextToken}switchMode(e){this.mode=e,this.gullet.switchMode(e)}parse(){this.settings.globalGroup||this.gullet.beginGroup(),this.settings.colorIsTextColor&&this.gullet.macros.set("\\color","\\textcolor");try{var e=this.parseExpression(!1);return this.expect("EOF"),this.settings.globalGroup||this.gullet.endGroup(),e}finally{this.gullet.endGroups()}}subparse(e){var r=this.nextToken;this.consume(),this.gullet.pushToken(new y0("}")),this.gullet.pushTokens(e);var a=this.parseExpression(!1);return this.expect("}"),this.nextToken=r,a}parseExpression(e,r){for(var a=[];;){this.mode==="math"&&this.consumeSpaces();var i=this.fetch();if(t.endOfExpression.has(i.text)||r&&i.text===r||e&&J0[i.text]&&J0[i.text].infix)break;var s=this.parseAtom(r);if(s){if(s.type==="internal")continue}else break;a.push(s)}return this.mode==="text"&&this.formLigatures(a),this.handleInfixNodes(a)}handleInfixNodes(e){for(var r=-1,a,i=0;i=128)this.settings.strict&&(Oi(r.charCodeAt(0))?this.mode==="math"&&this.settings.reportNonstrict("unicodeTextInMathMode",'Unicode text character "'+r[0]+'" used in math mode',e):this.settings.reportNonstrict("unknownSymbol",'Unrecognized Unicode character "'+r[0]+'"'+(" ("+r.charCodeAt(0)+")"),e)),o={type:"textord",mode:"text",loc:b0.range(e),text:r};else return null;if(this.consume(),s)for(var v=0;v{let t=await s("info",e);a.debug(t)},"parse")},m={version:"12.0.0"},v=r(()=>m.version,"getVersion"),d={getVersion:v},f=r((e,t,p)=>{a.debug(`rendering info diagram +`+e);let o=i(t);n(o,100,400,!0),o.append("g").append("text").attr("x",100).attr("y",40).attr("class","version").attr("font-size",32).style("text-anchor","middle").text(`v${p}`)},"draw"),c={draw:f},w={parser:g,db:d,renderer:c};export{w as diagram}; diff --git a/src/frontend/web/von_interface/static/vendor/conversation-visuals/ishikawaDiagram-OU5B5YK6-II2QGS6P.js b/src/frontend/web/von_interface/static/vendor/conversation-visuals/ishikawaDiagram-OU5B5YK6-II2QGS6P.js new file mode 100644 index 000000000..9d4a3a308 --- /dev/null +++ b/src/frontend/web/von_interface/static/vendor/conversation-visuals/ishikawaDiagram-OU5B5YK6-II2QGS6P.js @@ -0,0 +1,70 @@ +import{a as dt}from"./chunk-UED66XBH.js";import{a as ft}from"./chunk-HVVAQLXH.js";import{n as yt}from"./chunk-EUYVSIXP.js";import"./chunk-QSTT4QQC.js";import{$ as J,O as nt,P as at,U as rt,V as lt,W as ot,X as ht,Y as ct,Z as Q,_ as ut}from"./chunk-S4JILX6U.js";import"./chunk-XEQL7KGA.js";import{a as l}from"./chunk-YUSHYV7C.js";import"./chunk-3RNHDNP5.js";var et=(function(){var t=l(function(M,e,s,i){for(s=s||{},i=M.length;i--;s[M[i]]=e);return s},"o"),d=[1,4],a=[1,14],r=[1,12],o=[1,13],y=[6,7,8],p=[1,20],u=[1,18],w=[1,19],c=[6,7,11],m=[1,6,13,14],k=[1,23],_=[1,24],x=[1,6,7,11,13,14],N={trace:l(function(){},"trace"),yy:{},symbols_:{error:2,start:3,ishikawa:4,spaceLines:5,SPACELINE:6,NL:7,ISHIKAWA:8,document:9,stop:10,EOF:11,statement:12,SPACELIST:13,TEXT:14,$accept:0,$end:1},terminals_:{2:"error",6:"SPACELINE",7:"NL",8:"ISHIKAWA",11:"EOF",13:"SPACELIST",14:"TEXT"},productions_:[0,[3,1],[3,2],[5,1],[5,2],[5,2],[4,2],[4,3],[10,1],[10,1],[10,1],[10,2],[10,2],[9,3],[9,2],[12,2],[12,1],[12,1],[12,1]],performAction:l(function(e,s,i,h,f,n,v){var b=n.length-1;switch(f){case 6:case 7:return h;case 15:h.addNode(n[b-1].length,n[b].trim());break;case 16:h.addNode(0,n[b].trim());break}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],8:d},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:d},{6:a,7:[1,10],9:9,12:11,13:r,14:o},t(y,[2,3]),{1:[2,2]},t(y,[2,4]),t(y,[2,5]),{1:[2,6],6:a,12:15,13:r,14:o},{6:a,9:16,12:11,13:r,14:o},{6:p,7:u,10:17,11:w},t(c,[2,18],{14:[1,21]}),t(c,[2,16]),t(c,[2,17]),{6:p,7:u,10:22,11:w},{1:[2,7],6:a,12:15,13:r,14:o},t(m,[2,14],{7:k,11:_}),t(x,[2,8]),t(x,[2,9]),t(x,[2,10]),t(c,[2,15]),t(m,[2,13],{7:k,11:_}),t(x,[2,11]),t(x,[2,12])],defaultActions:{2:[2,1],6:[2,2]},parseError:l(function(e,s){if(s.recoverable)this.trace(e);else{var i=new Error(e);throw i.hash=s,i}},"parseError"),parse:l(function(e){var s=this,i=[0],h=[],f=[null],n=[],v=this.table,b="",I=0,S=0,A=0,L=2,O=1,Z=n.slice.call(arguments,1),g=Object.create(this.lexer),E={yy:{}};for(var V in this.yy)Object.prototype.hasOwnProperty.call(this.yy,V)&&(E.yy[V]=this.yy[V]);g.setInput(e,E.yy),E.yy.lexer=g,E.yy.parser=this,typeof g.yylloc>"u"&&(g.yylloc={});var R=g.yylloc;n.push(R);var X=g.options&&g.options.ranges;typeof E.yy.parseError=="function"?this.parseError=E.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function xt(P){i.length=i.length-2*P,f.length=f.length-P,n.length=n.length-P}l(xt,"popStack");function it(){var P;return P=h.pop()||g.lex()||O,typeof P!="number"&&(P instanceof Array&&(h=P,P=h.pop()),P=s.symbols_[P]||P),P}l(it,"lex");for(var T,Y,W,B,Vt,K,F={},H,C,st,G;;){if(W=i[i.length-1],this.defaultActions[W]?B=this.defaultActions[W]:((T===null||typeof T>"u")&&(T=it()),B=v[W]&&v[W][T]),typeof B>"u"||!B.length||!B[0]){var q="";G=[];for(H in v[W])this.terminals_[H]&&H>L&&G.push("'"+this.terminals_[H]+"'");g.showPosition?q="Parse error on line "+(I+1)+`: +`+g.showPosition()+` +Expecting `+G.join(", ")+", got '"+(this.terminals_[T]||T)+"'":q="Parse error on line "+(I+1)+": Unexpected "+(T==O?"end of input":"'"+(this.terminals_[T]||T)+"'"),this.parseError(q,{text:g.match,token:this.terminals_[T]||T,line:g.yylineno,loc:R,expected:G})}if(B[0]instanceof Array&&B.length>1)throw new Error("Parse Error: multiple actions possible at state: "+W+", token: "+T);switch(B[0]){case 1:i.push(T),f.push(g.yytext),n.push(g.yylloc),i.push(B[1]),T=null,Y?(T=Y,Y=null):(S=g.yyleng,b=g.yytext,I=g.yylineno,R=g.yylloc,A>0&&A--);break;case 2:if(C=this.productions_[B[1]][1],F.$=f[f.length-C],F._$={first_line:n[n.length-(C||1)].first_line,last_line:n[n.length-1].last_line,first_column:n[n.length-(C||1)].first_column,last_column:n[n.length-1].last_column},X&&(F._$.range=[n[n.length-(C||1)].range[0],n[n.length-1].range[1]]),K=this.performAction.apply(F,[b,S,I,E.yy,B[1],f,n].concat(Z)),typeof K<"u")return K;C&&(i=i.slice(0,-1*C*2),f=f.slice(0,-1*C),n=n.slice(0,-1*C)),i.push(this.productions_[B[1]][0]),f.push(F.$),n.push(F._$),st=v[i[i.length-2]][i[i.length-1]],i.push(st);break;case 3:return!0}}return!0},"parse")},D=(function(){var M={EOF:1,parseError:l(function(s,i){if(this.yy.parser)this.yy.parser.parseError(s,i);else throw new Error(s)},"parseError"),setInput:l(function(e,s){return this.yy=s||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:l(function(){var e=this._input[0];this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e;var s=e.match(/(?:\r\n?|\n).*/g);return s?(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:l(function(e){var s=e.length,i=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-s),this.offset-=s;var h=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),i.length-1&&(this.yylineno-=i.length-1);var f=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:i?(i.length===h.length?this.yylloc.first_column:0)+h[h.length-i.length].length-i[0].length:this.yylloc.first_column-s},this.options.ranges&&(this.yylloc.range=[f[0],f[0]+this.yyleng-s]),this.yyleng=this.yytext.length,this},"unput"),more:l(function(){return this._more=!0,this},"more"),reject:l(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). +`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:l(function(e){this.unput(this.match.slice(e))},"less"),pastInput:l(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:l(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:l(function(){var e=this.pastInput(),s=new Array(e.length+1).join("-");return e+this.upcomingInput()+` +`+s+"^"},"showPosition"),test_match:l(function(e,s){var i,h,f;if(this.options.backtrack_lexer&&(f={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&&(f.yylloc.range=this.yylloc.range.slice(0))),h=e[0].match(/(?:\r\n?|\n).*/g),h&&(this.yylineno+=h.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:h?h[h.length-1].length-h[h.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],i=this.performAction.call(this,this.yy,this,s,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),i)return i;if(this._backtrack){for(var n in f)this[n]=f[n];return!1}return!1},"test_match"),next:l(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var e,s,i,h;this._more||(this.yytext="",this.match="");for(var f=this._currentRules(),n=0;ns[0].length)){if(s=i,h=n,this.options.backtrack_lexer){if(e=this.test_match(i,f[n]),e!==!1)return e;if(this._backtrack){s=!1;continue}else return!1}else if(!this.options.flex)break}return s?(e=this.test_match(s,f[h]),e!==!1?e:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text. +`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:l(function(){var s=this.next();return s||this.lex()},"lex"),begin:l(function(s){this.conditionStack.push(s)},"begin"),popState:l(function(){var s=this.conditionStack.length-1;return s>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:l(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:l(function(s){return s=this.conditionStack.length-1-Math.abs(s||0),s>=0?this.conditionStack[s]:"INITIAL"},"topState"),pushState:l(function(s){this.begin(s)},"pushState"),stateStackSize:l(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:l(function(s,i,h,f){var n=f;switch(h){case 0:return 6;case 1:return 8;case 2:return 8;case 3:return 6;case 4:return 7;case 5:return 13;case 6:return 14;case 7:return 11}},"anonymous"),rules:[/^(?:\s*%%.*)/i,/^(?:ishikawa-beta\b)/i,/^(?:ishikawa\b)/i,/^(?:[\s]+[\n])/i,/^(?:[\n]+)/i,/^(?:[\s]+)/i,/^(?:[^\n]+)/i,/^(?:$)/i],conditions:{INITIAL:{rules:[0,1,2,3,4,5,6,7],inclusive:!0}}};return M})();N.lexer=D;function $(){this.yy={}}return l($,"Parser"),$.prototype=N,N.Parser=$,new $})();et.parser=et;var vt=et,St=class{constructor(){this.stack=[],this.clear=this.clear.bind(this),this.addNode=this.addNode.bind(this),this.getRoot=this.getRoot.bind(this)}static{l(this,"IshikawaDB")}clear(){this.root=void 0,this.stack=[],this.baseLevel=void 0,rt()}getRoot(){return this.root}addNode(t,d){let a=nt.sanitizeText(d,J());if(!this.root){this.root={text:a,children:[]},this.stack=[{level:0,node:this.root}],Q(a);return}this.baseLevel??=t;let r=t-this.baseLevel+1;for(r<=0&&(r=1);this.stack.length>1&&this.stack[this.stack.length-1].level>=r;)this.stack.pop();let o=this.stack[this.stack.length-1].node,y={text:a,children:[]};o.children.push(y),this.stack.push({level:r,node:y})}getAccTitle(){return ot()}setAccTitle(t){lt(t)}getAccDescription(){return ct()}setAccDescription(t){ht(t)}getDiagramTitle(){return ut()}setDiagramTitle(t){Q(t)}},Et=14,j=250,$t=30,At=60,It=5,bt=82*Math.PI/180,pt=Math.cos(bt),gt=Math.sin(bt),kt=l((t,d,a)=>{let r=t.node().getBBox(),o=r.width+d*2,y=r.height+d*2;at(t,y,o,a),t.attr("viewBox",`${r.x-d} ${r.y-d} ${o} ${y}`)},"applyPaddedViewBox"),Lt=l((t,d,a,r)=>{let y=r.db.getRoot();if(!y)return;let p=J(),{look:u,handDrawnSeed:w,themeVariables:c}=p,m=yt(p.fontSize)[0]??Et,k=u==="handDrawn",_=y.children??[],x=p.ishikawa?.diagramPadding??20,N=p.ishikawa?.useMaxWidth??!1,D=dt(d),$=D.append("g").attr("class","ishikawa"),M=k?ft.svg(D.node()):void 0,e=M?{roughSvg:M,seed:w??0,lineColor:c?.lineColor??"#333",fillColor:c?.mainBkg??"#fff"}:void 0,s=`ishikawa-arrow-${d}`;k||$.append("defs").append("marker").attr("id",s).attr("viewBox","0 0 10 10").attr("refX",0).attr("refY",5).attr("markerWidth",6).attr("markerHeight",6).attr("orient","auto").append("path").attr("d","M 10 0 L 0 5 L 10 10 Z").attr("class","ishikawa-arrow");let i=0,h=j,f=k?void 0:z($,i,h,i,h,"ishikawa-spine");if(Tt($,i,h,y.text,m,e),!_.length){k&&z($,i,h,i,h,"ishikawa-spine",e),kt(D,x,N);return}i-=20;let n=_.filter((g,E)=>E%2===0),v=_.filter((g,E)=>E%2===1),b=mt(n),I=mt(v),S=b.total+I.total,A=j,L=j;if(S>0){let g=j*2,E=j*.3;A=Math.max(E,g*(b.total/S)),L=Math.max(E,g*(I.total/S))}let O=m*2;A=Math.max(A,b.max*O),L=Math.max(L,I.max*O),h=Math.max(A,j),f&&f.attr("y1",h).attr("y2",h),$.select(".ishikawa-head-group").attr("transform",`translate(0,${h})`);let Z=Math.ceil(_.length/2);for(let g=0;gMath.min(V,R.getBBox().x),1/0)}if(k)z($,i,h,0,h,"ishikawa-spine",e);else{f.attr("x1",i);let g=`url(#${s})`;$.selectAll("line.ishikawa-branch, line.ishikawa-sub-branch").attr("marker-start",g)}kt(D,x,N)},"draw"),mt=l(t=>{let d=l(a=>a.children.reduce((r,o)=>r+1+d(o),0),"countDescendants");return t.reduce((a,r)=>{let o=d(r);return a.total+=o,a.max=Math.max(a.max,o),a},{total:0,max:0})},"sideStats"),Tt=l((t,d,a,r,o,y)=>{let p=Math.max(6,Math.floor(110/(o*.6))),u=t.append("g").attr("class","ishikawa-head-group").attr("transform",`translate(${d},${a})`),w=U(u,_t(r,p),0,0,"ishikawa-head-label","start",o),c=w.node().getBBox(),m=Math.max(60,c.width+6),k=Math.max(40,c.height*2+40),_=`M 0 ${-k/2} L 0 ${k/2} Q ${m*2.4} 0 0 ${-k/2} Z`;if(y){let x=y.roughSvg.path(_,{roughness:1.5,seed:y.seed,fill:y.fillColor,fillStyle:"hachure",fillWeight:2.5,hachureGap:5,stroke:y.lineColor,strokeWidth:2});u.insert(()=>x,":first-child").attr("class","ishikawa-head")}else u.insert("path",":first-child").attr("class","ishikawa-head").attr("d",_);w.attr("transform",`translate(${(m-c.width)/2-c.x+3},${-c.y-c.height/2})`)},"drawHead"),Mt=l((t,d)=>{let a=[],r=[],o=l((y,p,u)=>{let w=d===-1?[...y].reverse():y;for(let c of w){let m=a.length,k=c.children??[];a.push({depth:u,text:_t(c.text,15),parentIndex:p,childCount:k.length}),u%2===0?(r.push(m),k.length&&o(k,m,u+1)):(k.length&&o(k,m,u+1),r.push(m))}},"walk");return o(t,-1,2),{entries:a,yOrder:r}},"flattenTree"),Pt=l((t,d,a,r,o,y,p)=>{let u=t.append("g").attr("class","ishikawa-label-group"),c=U(u,d,a,r+11*o,"ishikawa-label cause","middle",y).node().getBBox();if(p){let m=p.roughSvg.rectangle(c.x-20,c.y-2,c.width+40,c.height+4,{roughness:1.5,seed:p.seed,fill:p.fillColor,fillStyle:"hachure",fillWeight:2.5,hachureGap:5,stroke:p.lineColor,strokeWidth:2});u.insert(()=>m,":first-child").attr("class","ishikawa-label-box")}else u.insert("rect",":first-child").attr("class","ishikawa-label-box").attr("x",c.x-20).attr("y",c.y-2).attr("width",c.width+40).attr("height",c.height+4)},"drawCauseLabel"),tt=l((t,d,a,r,o,y)=>{let p=Math.sqrt(r*r+o*o);if(p===0)return;let u=r/p,w=o/p,c=6,m=-w*c,k=u*c,_=d,x=a,N=`M ${_} ${x} L ${_-u*c*2+m} ${x-w*c*2+k} L ${_-u*c*2-m} ${x-w*c*2-k} Z`,D=y.roughSvg.path(N,{roughness:1,seed:y.seed,fill:y.lineColor,fillStyle:"solid",stroke:y.lineColor,strokeWidth:1});t.append(()=>D)},"drawArrowMarker"),Bt=l((t,d,a,r,o,y,p,u)=>{let w=d.children??[],c=y*(w.length?1:.2),m=-pt*c,k=gt*c*o,_=a+m,x=r+k;if(z(t,a,r,_,x,"ishikawa-branch",u),u&&tt(t,a,r,a-_,r-x,u),Pt(t,d.text,_,x,o,p,u),!w.length)return;let{entries:N,yOrder:D}=Mt(w,o),$=N.length,M=new Array($);for(let[f,n]of D.entries())M[n]=r+k*((f+1)/($+1));let e=new Map;e.set(-1,{x0:a,y0:r,x1:_,y1:x,childCount:w.length,childrenDrawn:0});let s=-pt,i=gt*o,h=o<0?"ishikawa-label up":"ishikawa-label down";for(let[f,n]of N.entries()){let v=M[f],b=e.get(n.parentIndex),I=t.append("g").attr("class","ishikawa-sub-group"),S=0,A=0,L=0;if(n.depth%2===0){let O=b.y1-b.y0;S=wt(b.x0,b.x1,O?(v-b.y0)/O:.5),A=v,L=S-(n.childCount>0?At+n.childCount*It:$t),z(I,S,v,L,v,"ishikawa-sub-branch",u),u&&tt(I,S,v,1,0,u),U(I,n.text,L,v,"ishikawa-label align","end",p)}else{let O=b.childrenDrawn++;S=wt(b.x0,b.x1,(b.childCount-O)/(b.childCount+1)),A=b.y0,L=S+s*((v-A)/i),z(I,S,A,L,v,"ishikawa-sub-branch",u),u&&tt(I,S,A,S-L,A-v,u),U(I,n.text,L,v,h,"end",p)}n.childCount>0&&e.set(f,{x0:S,y0:A,x1:L,y1:v,childCount:n.childCount,childrenDrawn:0})}},"drawBranch"),Nt=l(t=>t.split(/|\n/),"splitLines"),_t=l((t,d)=>{if(t.length<=d)return t;let a=[];for(let r of t.split(/\s+/)){let o=a.length-1;o>=0&&a[o].length+1+r.length<=d?a[o]+=" "+r:a.push(r)}return a.join(` +`)},"wrapText"),U=l((t,d,a,r,o,y,p)=>{let u=Nt(d),w=p*1.05,c=t.append("text").attr("class",o).attr("text-anchor",y).attr("x",a).attr("y",r-(u.length-1)*w/2);for(let[m,k]of u.entries())c.append("tspan").attr("x",a).attr("dy",m===0?0:w).text(k);return c},"drawMultilineText"),wt=l((t,d,a)=>t+(d-t)*a,"lerp"),z=l((t,d,a,r,o,y,p)=>{if(p){let u=p.roughSvg.line(d,a,r,o,{roughness:1.5,seed:p.seed,stroke:p.lineColor,strokeWidth:2});t.append(()=>u).attr("class",y);return}return t.append("line").attr("class",y).attr("x1",d).attr("y1",a).attr("x2",r).attr("y2",o)},"drawLine"),Dt={draw:Lt},Ot=l(t=>` +.ishikawa .ishikawa-spine, +.ishikawa .ishikawa-branch, +.ishikawa .ishikawa-sub-branch { + stroke: ${t.lineColor}; + stroke-width: 2; + fill: none; +} + +.ishikawa .ishikawa-sub-branch { + stroke-width: 1; +} + +.ishikawa .ishikawa-arrow { + fill: ${t.lineColor}; +} + +.ishikawa .ishikawa-head { + fill: ${t.mainBkg}; + stroke: ${t.lineColor}; + stroke-width: 2; +} + +.ishikawa .ishikawa-label-box { + fill: ${t.mainBkg}; + stroke: ${t.lineColor}; + stroke-width: 2; +} + +.ishikawa text { + font-family: ${t.fontFamily}; + font-size: ${t.fontSize}; + fill: ${t.textColor}; +} + +.ishikawa .ishikawa-head-label { + font-weight: 600; + text-anchor: middle; + dominant-baseline: middle; + font-size: 14px; +} + +.ishikawa .ishikawa-label { + text-anchor: end; +} + +.ishikawa .ishikawa-label.cause { + text-anchor: middle; + dominant-baseline: middle; +} + +.ishikawa .ishikawa-label.align { + text-anchor: end; + dominant-baseline: middle; +} + +.ishikawa .ishikawa-label.up { + dominant-baseline: baseline; +} + +.ishikawa .ishikawa-label.down { + dominant-baseline: hanging; +} +`,"getStyles"),Ct=Ot,Gt={parser:vt,get db(){return new St},renderer:Dt,styles:Ct};export{Gt as diagram}; diff --git a/src/frontend/web/von_interface/static/vendor/conversation-visuals/journeyDiagram-ZHPQQLJL-E64MMAVE.js b/src/frontend/web/von_interface/static/vendor/conversation-visuals/journeyDiagram-ZHPQQLJL-E64MMAVE.js new file mode 100644 index 000000000..42a2e9f92 --- /dev/null +++ b/src/frontend/web/von_interface/static/vendor/conversation-visuals/journeyDiagram-ZHPQQLJL-E64MMAVE.js @@ -0,0 +1,139 @@ +import{a as mt}from"./chunk-QP3MATMC.js";import{a as ft,b as pt,c as gt,f as Z}from"./chunk-L56KSVJM.js";import"./chunk-QSTT4QQC.js";import{$ as F,P as at,U as lt,V as ot,W as ct,X as ht,Y as ut,Z as yt,_ as dt}from"./chunk-S4JILX6U.js";import{F as U,h as W}from"./chunk-XEQL7KGA.js";import{a as s}from"./chunk-YUSHYV7C.js";import"./chunk-3RNHDNP5.js";var K=(function(){var t=s(function(h,i,n,l){for(n=n||{},l=h.length;l--;n[h[l]]=i);return n},"o"),e=[6,8,10,11,12,14,16,17,18],a=[1,9],f=[1,10],r=[1,11],u=[1,12],p=[1,13],o=[1,14],g={trace:s(function(){},"trace"),yy:{},symbols_:{error:2,start:3,journey:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NEWLINE:10,title:11,acc_title:12,acc_title_value:13,acc_descr:14,acc_descr_value:15,acc_descr_multiline_value:16,section:17,taskName:18,taskData:19,$accept:0,$end:1},terminals_:{2:"error",4:"journey",6:"EOF",8:"SPACE",10:"NEWLINE",11:"title",12:"acc_title",13:"acc_title_value",14:"acc_descr",15:"acc_descr_value",16:"acc_descr_multiline_value",17:"section",18:"taskName",19:"taskData"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[9,1],[9,2],[9,2],[9,1],[9,1],[9,2]],performAction:s(function(i,n,l,y,d,c,_){var k=c.length-1;switch(d){case 1:return c[k-1];case 2:this.$=[];break;case 3:c[k-1].push(c[k]),this.$=c[k-1];break;case 4:case 5:this.$=c[k];break;case 6:case 7:this.$=[];break;case 8:y.setDiagramTitle(c[k].substr(6)),this.$=c[k].substr(6);break;case 9:this.$=c[k].trim(),y.setAccTitle(this.$);break;case 10:case 11:this.$=c[k].trim(),y.setAccDescription(this.$);break;case 12:y.addSection(c[k].substr(8)),this.$=c[k].substr(8);break;case 13:y.addTask(c[k-1],c[k]),this.$="task";break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},t(e,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:a,12:f,14:r,16:u,17:p,18:o},t(e,[2,7],{1:[2,1]}),t(e,[2,3]),{9:15,11:a,12:f,14:r,16:u,17:p,18:o},t(e,[2,5]),t(e,[2,6]),t(e,[2,8]),{13:[1,16]},{15:[1,17]},t(e,[2,11]),t(e,[2,12]),{19:[1,18]},t(e,[2,4]),t(e,[2,9]),t(e,[2,10]),t(e,[2,13])],defaultActions:{},parseError:s(function(i,n){if(n.recoverable)this.trace(i);else{var l=new Error(i);throw l.hash=n,l}},"parseError"),parse:s(function(i){var n=this,l=[0],y=[],d=[null],c=[],_=this.table,k="",C=0,et=0,rt=0,$t=2,it=1,Mt=c.slice.call(arguments,1),b=Object.create(this.lexer),I={yy:{}};for(var Y in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Y)&&(I.yy[Y]=this.yy[Y]);b.setInput(i,I.yy),I.yy.lexer=b,I.yy.parser=this,typeof b.yylloc>"u"&&(b.yylloc={});var q=b.yylloc;c.push(q);var Et=b.options&&b.options.ranges;typeof I.yy.parseError=="function"?this.parseError=I.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Ct(w){l.length=l.length-2*w,d.length=d.length-w,c.length=c.length-w}s(Ct,"popStack");function nt(){var w;return w=y.pop()||b.lex()||it,typeof w!="number"&&(w instanceof Array&&(y=w,w=y.pop()),w=n.symbols_[w]||w),w}s(nt,"lex");for(var v,H,A,T,Jt,X,V={},N,M,st,z;;){if(A=l[l.length-1],this.defaultActions[A]?T=this.defaultActions[A]:((v===null||typeof v>"u")&&(v=nt()),T=_[A]&&_[A][v]),typeof T>"u"||!T.length||!T[0]){var G="";z=[];for(N in _[A])this.terminals_[N]&&N>$t&&z.push("'"+this.terminals_[N]+"'");b.showPosition?G="Parse error on line "+(C+1)+`: +`+b.showPosition()+` +Expecting `+z.join(", ")+", got '"+(this.terminals_[v]||v)+"'":G="Parse error on line "+(C+1)+": Unexpected "+(v==it?"end of input":"'"+(this.terminals_[v]||v)+"'"),this.parseError(G,{text:b.match,token:this.terminals_[v]||v,line:b.yylineno,loc:q,expected:z})}if(T[0]instanceof Array&&T.length>1)throw new Error("Parse Error: multiple actions possible at state: "+A+", token: "+v);switch(T[0]){case 1:l.push(v),d.push(b.yytext),c.push(b.yylloc),l.push(T[1]),v=null,H?(v=H,H=null):(et=b.yyleng,k=b.yytext,C=b.yylineno,q=b.yylloc,rt>0&&rt--);break;case 2:if(M=this.productions_[T[1]][1],V.$=d[d.length-M],V._$={first_line:c[c.length-(M||1)].first_line,last_line:c[c.length-1].last_line,first_column:c[c.length-(M||1)].first_column,last_column:c[c.length-1].last_column},Et&&(V._$.range=[c[c.length-(M||1)].range[0],c[c.length-1].range[1]]),X=this.performAction.apply(V,[k,et,C,I.yy,T[1],d,c].concat(Mt)),typeof X<"u")return X;M&&(l=l.slice(0,-1*M*2),d=d.slice(0,-1*M),c=c.slice(0,-1*M)),l.push(this.productions_[T[1]][0]),d.push(V.$),c.push(V._$),st=_[l[l.length-2]][l[l.length-1]],l.push(st);break;case 3:return!0}}return!0},"parse")},m=(function(){var h={EOF:1,parseError:s(function(n,l){if(this.yy.parser)this.yy.parser.parseError(n,l);else throw new Error(n)},"parseError"),setInput:s(function(i,n){return this.yy=n||this.yy||{},this._input=i,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:s(function(){var i=this._input[0];this.yytext+=i,this.yyleng++,this.offset++,this.match+=i,this.matched+=i;var n=i.match(/(?:\r\n?|\n).*/g);return n?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),i},"input"),unput:s(function(i){var n=i.length,l=i.split(/(?:\r\n?|\n)/g);this._input=i+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-n),this.offset-=n;var y=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),l.length-1&&(this.yylineno-=l.length-1);var d=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:l?(l.length===y.length?this.yylloc.first_column:0)+y[y.length-l.length].length-l[0].length:this.yylloc.first_column-n},this.options.ranges&&(this.yylloc.range=[d[0],d[0]+this.yyleng-n]),this.yyleng=this.yytext.length,this},"unput"),more:s(function(){return this._more=!0,this},"more"),reject:s(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). +`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:s(function(i){this.unput(this.match.slice(i))},"less"),pastInput:s(function(){var i=this.matched.substr(0,this.matched.length-this.match.length);return(i.length>20?"...":"")+i.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:s(function(){var i=this.match;return i.length<20&&(i+=this._input.substr(0,20-i.length)),(i.substr(0,20)+(i.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:s(function(){var i=this.pastInput(),n=new Array(i.length+1).join("-");return i+this.upcomingInput()+` +`+n+"^"},"showPosition"),test_match:s(function(i,n){var l,y,d;if(this.options.backtrack_lexer&&(d={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&&(d.yylloc.range=this.yylloc.range.slice(0))),y=i[0].match(/(?:\r\n?|\n).*/g),y&&(this.yylineno+=y.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:y?y[y.length-1].length-y[y.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+i[0].length},this.yytext+=i[0],this.match+=i[0],this.matches=i,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(i[0].length),this.matched+=i[0],l=this.performAction.call(this,this.yy,this,n,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),l)return l;if(this._backtrack){for(var c in d)this[c]=d[c];return!1}return!1},"test_match"),next:s(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var i,n,l,y;this._more||(this.yytext="",this.match="");for(var d=this._currentRules(),c=0;cn[0].length)){if(n=l,y=c,this.options.backtrack_lexer){if(i=this.test_match(l,d[c]),i!==!1)return i;if(this._backtrack){n=!1;continue}else return!1}else if(!this.options.flex)break}return n?(i=this.test_match(n,d[y]),i!==!1?i:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text. +`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:s(function(){var n=this.next();return n||this.lex()},"lex"),begin:s(function(n){this.conditionStack.push(n)},"begin"),popState:s(function(){var n=this.conditionStack.length-1;return n>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:s(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:s(function(n){return n=this.conditionStack.length-1-Math.abs(n||0),n>=0?this.conditionStack[n]:"INITIAL"},"topState"),pushState:s(function(n){this.begin(n)},"pushState"),stateStackSize:s(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:s(function(n,l,y,d){var c=d;switch(y){case 0:break;case 1:break;case 2:return 10;case 3:break;case 4:break;case 5:return 4;case 6:return 11;case 7:return this.begin("acc_title"),12;break;case 8:return this.popState(),"acc_title_value";break;case 9:return this.begin("acc_descr"),14;break;case 10:return this.popState(),"acc_descr_value";break;case 11:this.begin("acc_descr_multiline");break;case 12:this.popState();break;case 13:return"acc_descr_multiline_value";case 14:return 17;case 15:return 18;case 16:return 19;case 17:return":";case 18:return 6;case 19:return"INVALID"}},"anonymous"),rules:[/^(?:%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:#[^\n]*)/i,/^(?:journey\b)/i,/^(?:title\s[^#\n;]+)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:section\s[^#:\n;]+)/i,/^(?:[^#:\n;]+)/i,/^(?::[^#\n;]+)/i,/^(?::)/i,/^(?:$)/i,/^(?:.)/i],conditions:{acc_descr_multiline:{rules:[12,13],inclusive:!1},acc_descr:{rules:[10],inclusive:!1},acc_title:{rules:[8],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7,9,11,14,15,16,17,18,19],inclusive:!0}}};return h})();g.lexer=m;function x(){this.yy={}}return s(x,"Parser"),x.prototype=g,g.Parser=x,new x})();K.parser=K;var Pt=K,R="",D=[],L=[],B=[],It=s(function(){D.length=0,L.length=0,R="",B.length=0,lt()},"clear"),At=s(function(t){R=t,D.push(t)},"addSection"),Ft=s(function(){return D},"getSections"),Vt=s(function(){let t=xt(),e=100,a=0;for(;!t&&a{a.people&&t.push(...a.people)}),[...new Set(t)].sort()},"updateActors"),Lt=s(function(t,e){let a=e.substr(1).split(":"),f=0,r=[];a.length===1?(f=Number(a[0]),r=[]):(f=Number(a[0]),r=a[1].split(","));let u=r.map(o=>o.trim()),p={section:R,type:R,people:u,task:t,score:f};B.push(p)},"addTask"),Bt=s(function(t){let e={section:R,type:R,description:t,task:t,classes:[]};L.push(e)},"addTaskOrg"),xt=s(function(){let t=s(function(a){return B[a].processed},"compileTask"),e=!0;for(let[a,f]of B.entries())t(a),e=e&&f.processed;return e},"compileTasks"),jt=s(function(){return Rt()},"getActors"),kt={getConfig:s(()=>F().journey,"getConfig"),clear:It,setDiagramTitle:yt,getDiagramTitle:dt,setAccTitle:ot,getAccTitle:ct,setAccDescription:ht,getAccDescription:ut,addSection:At,getSections:Ft,getTasks:Vt,addTask:Lt,addTaskOrg:Bt,getActors:jt},Nt=s(t=>`.label { + font-family: ${t.fontFamily}; + color: ${t.textColor}; + } + .mouth { + stroke: #666; + } + + line { + stroke: ${t.textColor} + } + + .legend { + fill: ${t.textColor}; + font-family: ${t.fontFamily}; + } + + .label text { + fill: #333; + } + .label { + color: ${t.textColor} + } + + .face { + ${t.faceColor?`fill: ${t.faceColor}`:"fill: #FFF8DC"}; + stroke: #999; + } + + .node rect, + .node circle, + .node ellipse, + .node polygon, + .node path { + fill: ${t.mainBkg}; + stroke: ${t.nodeBorder}; + stroke-width: 1px; + } + + .node .label { + text-align: center; + } + .node.clickable { + cursor: pointer; + } + + .arrowheadPath { + fill: ${t.arrowheadColor}; + } + + .edgePaths .path { + stroke: ${t.lineColor}; + stroke-width: 1.5px; + } + + .flowchart-link { + stroke: ${t.lineColor}; + fill: none; + } + + .edgeLabel { + background-color: ${t.edgeLabelBackground}; + rect { + opacity: 0.5; + } + text-align: center; + } + + .cluster rect { + } + + .cluster text { + fill: ${t.titleColor}; + } + + div.mermaidTooltip { + position: absolute; + text-align: center; + max-width: 200px; + padding: 2px; + font-family: ${t.fontFamily}; + font-size: 12px; + background: ${t.tertiaryColor}; + border: 1px solid ${t.border2}; + border-radius: 2px; + pointer-events: none; + z-index: 100; + } + + .task-type-0, .section-type-0 { + ${t.fillType0?`fill: ${t.fillType0}`:""}; + } + .task-type-1, .section-type-1 { + ${t.fillType0?`fill: ${t.fillType1}`:""}; + } + .task-type-2, .section-type-2 { + ${t.fillType0?`fill: ${t.fillType2}`:""}; + } + .task-type-3, .section-type-3 { + ${t.fillType0?`fill: ${t.fillType3}`:""}; + } + .task-type-4, .section-type-4 { + ${t.fillType0?`fill: ${t.fillType4}`:""}; + } + .task-type-5, .section-type-5 { + ${t.fillType0?`fill: ${t.fillType5}`:""}; + } + .task-type-6, .section-type-6 { + ${t.fillType0?`fill: ${t.fillType6}`:""}; + } + .task-type-7, .section-type-7 { + ${t.fillType0?`fill: ${t.fillType7}`:""}; + } + + .actor-0 { + ${t.actor0?`fill: ${t.actor0}`:""}; + } + .actor-1 { + ${t.actor1?`fill: ${t.actor1}`:""}; + } + .actor-2 { + ${t.actor2?`fill: ${t.actor2}`:""}; + } + .actor-3 { + ${t.actor3?`fill: ${t.actor3}`:""}; + } + .actor-4 { + ${t.actor4?`fill: ${t.actor4}`:""}; + } + .actor-5 { + ${t.actor5?`fill: ${t.actor5}`:""}; + } + ${mt()} +`,"getStyles"),zt=Nt,tt=s(function(t,e){return ft(t,e)},"drawRect"),Wt=s(function(t,e){let f=t.append("circle").attr("cx",e.cx).attr("cy",e.cy).attr("class","face").attr("r",15).attr("stroke-width",2).attr("overflow","visible"),r=t.append("g");r.append("circle").attr("cx",e.cx-15/3).attr("cy",e.cy-15/3).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666"),r.append("circle").attr("cx",e.cx+15/3).attr("cy",e.cy-15/3).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666");function u(g){let m=U().startAngle(Math.PI/2).endAngle(3*(Math.PI/2)).innerRadius(7.5).outerRadius(6.8181818181818175);g.append("path").attr("class","mouth").attr("d",m).attr("transform","translate("+e.cx+","+(e.cy+2)+")")}s(u,"smile");function p(g){let m=U().startAngle(3*Math.PI/2).endAngle(5*(Math.PI/2)).innerRadius(7.5).outerRadius(6.8181818181818175);g.append("path").attr("class","mouth").attr("d",m).attr("transform","translate("+e.cx+","+(e.cy+7)+")")}s(p,"sad");function o(g){g.append("line").attr("class","mouth").attr("stroke",2).attr("x1",e.cx-5).attr("y1",e.cy+7).attr("x2",e.cx+5).attr("y2",e.cy+7).attr("class","mouth").attr("stroke-width","1px").attr("stroke","#666")}return s(o,"ambivalent"),e.score>3?u(r):e.score<3?p(r):o(r),f},"drawFace"),vt=s(function(t,e){let a=t.append("circle");return a.attr("cx",e.cx),a.attr("cy",e.cy),a.attr("class","actor-"+e.pos),a.attr("fill",e.fill),a.attr("stroke",e.stroke),a.attr("r",e.r),a.class!==void 0&&a.attr("class",a.class),e.title!==void 0&&a.append("title").text(e.title),a},"drawCircle"),wt=s(function(t,e){return gt(t,e)},"drawText"),Ot=s(function(t,e){function a(r,u,p,o,g){return r+","+u+" "+(r+p)+","+u+" "+(r+p)+","+(u+o-g)+" "+(r+p-g*1.2)+","+(u+o)+" "+r+","+(u+o)}s(a,"genPoints");let f=t.append("polygon");f.attr("points",a(e.x,e.y,50,20,7)),f.attr("class","labelBox"),e.y=e.y+e.labelMargin,e.x=e.x+.5*e.labelMargin,wt(t,e)},"drawLabel"),Yt=s(function(t,e,a){let f=t.append("g"),r=Z();r.x=e.x,r.y=e.y,r.fill=e.fill,r.width=a.width*e.taskCount+a.diagramMarginX*(e.taskCount-1),r.height=a.height,r.class="journey-section section-type-"+e.num,r.rx=3,r.ry=3,tt(f,r),Tt(a)(e.text,f,r.x,r.y,r.width,r.height,{class:"journey-section section-type-"+e.num},a,e.colour)},"drawSection"),Q=-1,qt=s(function(t,e,a,f){let r=e.x+a.width/2,u=t.append("g");Q++,u.append("line").attr("id",f+"-task"+Q).attr("x1",r).attr("y1",e.y).attr("x2",r).attr("y2",450).attr("class","task-line").attr("stroke-width","1px").attr("stroke-dasharray","4 2").attr("stroke","#666"),Wt(u,{cx:r,cy:300+(5-e.score)*30,score:e.score});let o=Z();o.x=e.x,o.y=e.y,o.fill=e.fill,o.width=a.width,o.height=a.height,o.class="task task-type-"+e.num,o.rx=3,o.ry=3,tt(u,o);let g=e.x+14;e.people.forEach(m=>{let x=e.actors[m].color,h={cx:g,cy:e.y,r:7,fill:x,stroke:"#000",title:m,pos:e.actors[m].position};vt(u,h),g+=10}),Tt(a)(e.task,u,o.x,o.y,o.width,o.height,{class:"task"},a,e.colour)},"drawTask"),Ht=s(function(t,e){pt(t,e)},"drawBackgroundRect"),Tt=(function(){function t(r,u,p,o,g,m,x,h){let i=u.append("text").attr("x",p+g/2).attr("y",o+m/2+5).style("font-color",h).style("text-anchor","middle").text(r);f(i,x)}s(t,"byText");function e(r,u,p,o,g,m,x,h,i){let{taskFontSize:n,taskFontFamily:l}=h,y=r.split(//gi);for(let d=0;d{let u=E[r].color,p={cx:20,cy:f,r:7,fill:u,stroke:"#000",pos:E[r].position};j.drawCircle(t,p);let o=t.append("text").attr("visibility","hidden").text(r),g=o.node().getBoundingClientRect().width;o.remove();let m=[];if(g<=a)m=[r];else{let x=r.split(" "),h="";o=t.append("text").attr("visibility","hidden"),x.forEach(i=>{let n=h?`${h} ${i}`:i;if(o.text(n),o.node().getBoundingClientRect().width>a){if(h&&m.push(h),h=i,o.text(i),o.node().getBoundingClientRect().width>a){let y="";for(let d of i)y+=d,o.text(y+"-"),o.node().getBoundingClientRect().width>a&&(m.push(y.slice(0,-1)+"-"),y=d);h=y}}else h=n}),h&&m.push(h),o.remove()}m.forEach((x,h)=>{let i={x:40,y:f+7+h*20,fill:"#666",text:x,textMargin:e.boxTextMargin??5},l=j.drawText(t,i).node().getBoundingClientRect().width;l>O&&l>e.leftMargin-l&&(O=l)}),f+=Math.max(20,m.length*20)})}s(St,"drawActorLegend");var $=F().journey,P=0,Ut=s(function(t,e,a,f){let r=F(),u=r.journey.titleColor,p=r.journey.titleFontSize,o=r.journey.titleFontFamily,g=r.securityLevel,m;g==="sandbox"&&(m=W("#i"+e));let x=g==="sandbox"?W(m.nodes()[0].contentDocument.body):W("body");S.init();let h=x.select("#"+e);j.initGraphics(h,e);let i=f.db.getTasks(),n=f.db.getDiagramTitle(),l=f.db.getActors();for(let C in E)delete E[C];let y=0;l.forEach(C=>{E[C]={color:$.actorColours[y%$.actorColours.length],position:y},y++}),St(h),P=$.leftMargin+O,S.insert(0,0,P,Object.keys(E).length*50),Zt(h,i,0,e);let d=S.getBounds();n&&h.append("text").text(n).attr("x",P).attr("font-size",p).attr("font-weight","bold").attr("y",25).attr("fill",u).attr("font-family",o);let c=d.stopy-d.starty+2*$.diagramMarginY,_=P+d.stopx+2*$.diagramMarginX;at(h,c,_,$.useMaxWidth),h.append("line").attr("x1",P).attr("y1",$.height*4).attr("x2",_-P-4).attr("y2",$.height*4).attr("stroke-width",4).attr("stroke","black").attr("marker-end","url(#"+e+"-arrowhead)");let k=n?70:0;h.attr("viewBox",`${d.startx} -25 ${_} ${c+k}`),h.attr("preserveAspectRatio","xMinYMin meet"),h.attr("height",c+k+25)},"draw"),S={data:{startx:void 0,stopx:void 0,starty:void 0,stopy:void 0},verticalPos:0,sequenceItems:[],init:s(function(){this.sequenceItems=[],this.data={startx:void 0,stopx:void 0,starty:void 0,stopy:void 0},this.verticalPos=0},"init"),updateVal:s(function(t,e,a,f){t[e]===void 0?t[e]=a:t[e]=f(a,t[e])},"updateVal"),updateBounds:s(function(t,e,a,f){let r=F().journey,u=this,p=0;function o(g){return s(function(x){p++;let h=u.sequenceItems.length-p+1;u.updateVal(x,"starty",e-h*r.boxMargin,Math.min),u.updateVal(x,"stopy",f+h*r.boxMargin,Math.max),u.updateVal(S.data,"startx",t-h*r.boxMargin,Math.min),u.updateVal(S.data,"stopx",a+h*r.boxMargin,Math.max),g!=="activation"&&(u.updateVal(x,"startx",t-h*r.boxMargin,Math.min),u.updateVal(x,"stopx",a+h*r.boxMargin,Math.max),u.updateVal(S.data,"starty",e-h*r.boxMargin,Math.min),u.updateVal(S.data,"stopy",f+h*r.boxMargin,Math.max))},"updateItemBounds")}s(o,"updateFn"),this.sequenceItems.forEach(o())},"updateBounds"),insert:s(function(t,e,a,f){let r=Math.min(t,a),u=Math.max(t,a),p=Math.min(e,f),o=Math.max(e,f);this.updateVal(S.data,"startx",r,Math.min),this.updateVal(S.data,"starty",p,Math.min),this.updateVal(S.data,"stopx",u,Math.max),this.updateVal(S.data,"stopy",o,Math.max),this.updateBounds(r,p,u,o)},"insert"),bumpVerticalPos:s(function(t){this.verticalPos=this.verticalPos+t,this.data.stopy=this.verticalPos},"bumpVerticalPos"),getVerticalPos:s(function(){return this.verticalPos},"getVerticalPos"),getBounds:s(function(){return this.data},"getBounds")},J=$.sectionFills,bt=$.sectionColours,Zt=s(function(t,e,a,f){let r=F().journey,u="",p=r.height*2+r.diagramMarginY,o=a+p,g=0,m="#CCC",x="black",h=0;for(let[i,n]of e.entries()){if(u!==n.section){m=J[g%J.length],h=g%J.length,x=bt[g%bt.length];let y=0,d=n.section;for(let _=i;_(E[d]&&(y[d]=E[d]),y),{});n.x=i*r.taskMargin+i*r.width+P,n.y=o,n.width=r.diagramMarginX,n.height=r.diagramMarginY,n.colour=x,n.fill=m,n.num=h,n.actors=l,j.drawTask(t,n,r,f),S.insert(n.x,n.y,n.x+n.width+r.taskMargin,450)}},"drawTasks"),_t={setConf:Gt,draw:Ut},ne={parser:Pt,db:kt,renderer:_t,styles:zt,init:s(t=>{_t.setConf(t.journey),kt.clear()},"init")};export{ne as diagram}; diff --git a/src/frontend/web/von_interface/static/vendor/conversation-visuals/kanban-definition-PNTS6WVX-LQ22K26G.js b/src/frontend/web/von_interface/static/vendor/conversation-visuals/kanban-definition-PNTS6WVX-LQ22K26G.js new file mode 100644 index 000000000..3f230713b --- /dev/null +++ b/src/frontend/web/von_interface/static/vendor/conversation-visuals/kanban-definition-PNTS6WVX-LQ22K26G.js @@ -0,0 +1,89 @@ +import{a as Ee}from"./chunk-QP3MATMC.js";import{a as pe}from"./chunk-UED66XBH.js";import{a as fe,b as be}from"./chunk-GDGZBOQC.js";import{b as ke}from"./chunk-AKE2LJPJ.js";import{b as ye,e as me}from"./chunk-T4OFBIBR.js";import"./chunk-TEBTVNCH.js";import"./chunk-HVVAQLXH.js";import"./chunk-IVPOI5SM.js";import"./chunk-O46DUOKR.js";import"./chunk-C7YISUMK.js";import"./chunk-6NDAIVIK.js";import"./chunk-EUYVSIXP.js";import"./chunk-QSTT4QQC.js";import{$ as M,I as B,Q as de,c as ge,d as te,e as ne,r as W}from"./chunk-S4JILX6U.js";import{b as Y}from"./chunk-XEQL7KGA.js";import{a as o}from"./chunk-YUSHYV7C.js";import"./chunk-3RNHDNP5.js";var ie=(function(){var e=o(function(O,i,n,s){for(n=n||{},s=O.length;s--;n[O[s]]=i);return n},"o"),u=[1,4],p=[1,13],r=[1,12],d=[1,15],k=[1,16],m=[1,20],l=[1,19],D=[6,7,8],I=[1,26],g=[1,24],w=[1,25],E=[6,7,11],U=[1,31],N=[6,7,11,24],j=[1,6,13,16,17,20,23],f=[1,35],A=[1,36],L=[1,6,7,11,13,16,17,20,23],H=[1,38],T={trace:o(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mindMap:4,spaceLines:5,SPACELINE:6,NL:7,KANBAN:8,document:9,stop:10,EOF:11,statement:12,SPACELIST:13,node:14,shapeData:15,ICON:16,CLASS:17,nodeWithId:18,nodeWithoutId:19,NODE_DSTART:20,NODE_DESCR:21,NODE_DEND:22,NODE_ID:23,SHAPE_DATA:24,$accept:0,$end:1},terminals_:{2:"error",6:"SPACELINE",7:"NL",8:"KANBAN",11:"EOF",13:"SPACELIST",16:"ICON",17:"CLASS",20:"NODE_DSTART",21:"NODE_DESCR",22:"NODE_DEND",23:"NODE_ID",24:"SHAPE_DATA"},productions_:[0,[3,1],[3,2],[5,1],[5,2],[5,2],[4,2],[4,3],[10,1],[10,1],[10,1],[10,2],[10,2],[9,3],[9,2],[12,3],[12,2],[12,2],[12,2],[12,1],[12,2],[12,1],[12,1],[12,1],[12,1],[14,1],[14,1],[19,3],[18,1],[18,4],[15,2],[15,1]],performAction:o(function(i,n,s,a,h,t,R){var c=t.length-1;switch(h){case 6:case 7:return a;case 8:a.getLogger().trace("Stop NL ");break;case 9:a.getLogger().trace("Stop EOF ");break;case 11:a.getLogger().trace("Stop NL2 ");break;case 12:a.getLogger().trace("Stop EOF2 ");break;case 15:a.getLogger().info("Node: ",t[c-1].id),a.addNode(t[c-2].length,t[c-1].id,t[c-1].descr,t[c-1].type,t[c]);break;case 16:a.getLogger().info("Node: ",t[c].id),a.addNode(t[c-1].length,t[c].id,t[c].descr,t[c].type);break;case 17:a.getLogger().trace("Icon: ",t[c]),a.decorateNode({icon:t[c]});break;case 18:case 23:a.decorateNode({class:t[c]});break;case 19:a.getLogger().trace("SPACELIST");break;case 20:a.getLogger().trace("Node: ",t[c-1].id),a.addNode(0,t[c-1].id,t[c-1].descr,t[c-1].type,t[c]);break;case 21:a.getLogger().trace("Node: ",t[c].id),a.addNode(0,t[c].id,t[c].descr,t[c].type);break;case 22:a.decorateNode({icon:t[c]});break;case 27:a.getLogger().trace("node found ..",t[c-2]),this.$={id:t[c-1],descr:t[c-1],type:a.getType(t[c-2],t[c])};break;case 28:this.$={id:t[c],descr:t[c],type:0};break;case 29:a.getLogger().trace("node found ..",t[c-3]),this.$={id:t[c-3],descr:t[c-1],type:a.getType(t[c-2],t[c])};break;case 30:this.$=t[c-1]+t[c];break;case 31:this.$=t[c];break}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],8:u},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:u},{6:p,7:[1,10],9:9,12:11,13:r,14:14,16:d,17:k,18:17,19:18,20:m,23:l},e(D,[2,3]),{1:[2,2]},e(D,[2,4]),e(D,[2,5]),{1:[2,6],6:p,12:21,13:r,14:14,16:d,17:k,18:17,19:18,20:m,23:l},{6:p,9:22,12:11,13:r,14:14,16:d,17:k,18:17,19:18,20:m,23:l},{6:I,7:g,10:23,11:w},e(E,[2,24],{18:17,19:18,14:27,16:[1,28],17:[1,29],20:m,23:l}),e(E,[2,19]),e(E,[2,21],{15:30,24:U}),e(E,[2,22]),e(E,[2,23]),e(N,[2,25]),e(N,[2,26]),e(N,[2,28],{20:[1,32]}),{21:[1,33]},{6:I,7:g,10:34,11:w},{1:[2,7],6:p,12:21,13:r,14:14,16:d,17:k,18:17,19:18,20:m,23:l},e(j,[2,14],{7:f,11:A}),e(L,[2,8]),e(L,[2,9]),e(L,[2,10]),e(E,[2,16],{15:37,24:U}),e(E,[2,17]),e(E,[2,18]),e(E,[2,20],{24:H}),e(N,[2,31]),{21:[1,39]},{22:[1,40]},e(j,[2,13],{7:f,11:A}),e(L,[2,11]),e(L,[2,12]),e(E,[2,15],{24:H}),e(N,[2,30]),{22:[1,41]},e(N,[2,27]),e(N,[2,29])],defaultActions:{2:[2,1],6:[2,2]},parseError:o(function(i,n){if(n.recoverable)this.trace(i);else{var s=new Error(i);throw s.hash=n,s}},"parseError"),parse:o(function(i){var n=this,s=[0],a=[],h=[null],t=[],R=this.table,c="",z=0,oe=0,ce=0,Se=2,le=1,Ne=t.slice.call(arguments,1),y=Object.create(this.lexer),P={yy:{}};for(var q in this.yy)Object.prototype.hasOwnProperty.call(this.yy,q)&&(P.yy[q]=this.yy[q]);y.setInput(i,P.yy),P.yy.lexer=y,P.yy.parser=this,typeof y.yylloc>"u"&&(y.yylloc={});var Q=y.yylloc;t.push(Q);var xe=y.options&&y.options.ranges;typeof P.yy.parseError=="function"?this.parseError=P.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function ve(S){s.length=s.length-2*S,h.length=h.length-S,t.length=t.length-S}o(ve,"popStack");function he(){var S;return S=a.pop()||y.lex()||le,typeof S!="number"&&(S instanceof Array&&(a=S,S=a.pop()),S=n.symbols_[S]||S),S}o(he,"lex");for(var _,Z,V,x,We,$,G={},X,C,ue,K;;){if(V=s[s.length-1],this.defaultActions[V]?x=this.defaultActions[V]:((_===null||typeof _>"u")&&(_=he()),x=R[V]&&R[V][_]),typeof x>"u"||!x.length||!x[0]){var ee="";K=[];for(X in R[V])this.terminals_[X]&&X>Se&&K.push("'"+this.terminals_[X]+"'");y.showPosition?ee="Parse error on line "+(z+1)+`: +`+y.showPosition()+` +Expecting `+K.join(", ")+", got '"+(this.terminals_[_]||_)+"'":ee="Parse error on line "+(z+1)+": Unexpected "+(_==le?"end of input":"'"+(this.terminals_[_]||_)+"'"),this.parseError(ee,{text:y.match,token:this.terminals_[_]||_,line:y.yylineno,loc:Q,expected:K})}if(x[0]instanceof Array&&x.length>1)throw new Error("Parse Error: multiple actions possible at state: "+V+", token: "+_);switch(x[0]){case 1:s.push(_),h.push(y.yytext),t.push(y.yylloc),s.push(x[1]),_=null,Z?(_=Z,Z=null):(oe=y.yyleng,c=y.yytext,z=y.yylineno,Q=y.yylloc,ce>0&&ce--);break;case 2:if(C=this.productions_[x[1]][1],G.$=h[h.length-C],G._$={first_line:t[t.length-(C||1)].first_line,last_line:t[t.length-1].last_line,first_column:t[t.length-(C||1)].first_column,last_column:t[t.length-1].last_column},xe&&(G._$.range=[t[t.length-(C||1)].range[0],t[t.length-1].range[1]]),$=this.performAction.apply(G,[c,oe,z,P.yy,x[1],h,t].concat(Ne)),typeof $<"u")return $;C&&(s=s.slice(0,-1*C*2),h=h.slice(0,-1*C),t=t.slice(0,-1*C)),s.push(this.productions_[x[1]][0]),h.push(G.$),t.push(G._$),ue=R[s[s.length-2]][s[s.length-1]],s.push(ue);break;case 3:return!0}}return!0},"parse")},J=(function(){var O={EOF:1,parseError:o(function(n,s){if(this.yy.parser)this.yy.parser.parseError(n,s);else throw new Error(n)},"parseError"),setInput:o(function(i,n){return this.yy=n||this.yy||{},this._input=i,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:o(function(){var i=this._input[0];this.yytext+=i,this.yyleng++,this.offset++,this.match+=i,this.matched+=i;var n=i.match(/(?:\r\n?|\n).*/g);return n?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),i},"input"),unput:o(function(i){var n=i.length,s=i.split(/(?:\r\n?|\n)/g);this._input=i+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-n),this.offset-=n;var a=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),s.length-1&&(this.yylineno-=s.length-1);var h=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:s?(s.length===a.length?this.yylloc.first_column:0)+a[a.length-s.length].length-s[0].length:this.yylloc.first_column-n},this.options.ranges&&(this.yylloc.range=[h[0],h[0]+this.yyleng-n]),this.yyleng=this.yytext.length,this},"unput"),more:o(function(){return this._more=!0,this},"more"),reject:o(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). +`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:o(function(i){this.unput(this.match.slice(i))},"less"),pastInput:o(function(){var i=this.matched.substr(0,this.matched.length-this.match.length);return(i.length>20?"...":"")+i.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:o(function(){var i=this.match;return i.length<20&&(i+=this._input.substr(0,20-i.length)),(i.substr(0,20)+(i.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:o(function(){var i=this.pastInput(),n=new Array(i.length+1).join("-");return i+this.upcomingInput()+` +`+n+"^"},"showPosition"),test_match:o(function(i,n){var s,a,h;if(this.options.backtrack_lexer&&(h={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&&(h.yylloc.range=this.yylloc.range.slice(0))),a=i[0].match(/(?:\r\n?|\n).*/g),a&&(this.yylineno+=a.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:a?a[a.length-1].length-a[a.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+i[0].length},this.yytext+=i[0],this.match+=i[0],this.matches=i,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(i[0].length),this.matched+=i[0],s=this.performAction.call(this,this.yy,this,n,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),s)return s;if(this._backtrack){for(var t in h)this[t]=h[t];return!1}return!1},"test_match"),next:o(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var i,n,s,a;this._more||(this.yytext="",this.match="");for(var h=this._currentRules(),t=0;tn[0].length)){if(n=s,a=t,this.options.backtrack_lexer){if(i=this.test_match(s,h[t]),i!==!1)return i;if(this._backtrack){n=!1;continue}else return!1}else if(!this.options.flex)break}return n?(i=this.test_match(n,h[a]),i!==!1?i:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text. +`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:o(function(){var n=this.next();return n||this.lex()},"lex"),begin:o(function(n){this.conditionStack.push(n)},"begin"),popState:o(function(){var n=this.conditionStack.length-1;return n>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:o(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:o(function(n){return n=this.conditionStack.length-1-Math.abs(n||0),n>=0?this.conditionStack[n]:"INITIAL"},"topState"),pushState:o(function(n){this.begin(n)},"pushState"),stateStackSize:o(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:o(function(n,s,a,h){var t=h;switch(a){case 0:return this.pushState("shapeData"),s.yytext="",24;break;case 1:return this.pushState("shapeDataStr"),24;break;case 2:return this.popState(),24;break;case 3:let R=/\n\s*/g;return s.yytext=s.yytext.replace(R,"
    "),24;break;case 4:return 24;case 5:this.popState();break;case 6:return n.getLogger().trace("Found comment",s.yytext),6;break;case 7:return 8;case 8:this.begin("CLASS");break;case 9:return this.popState(),17;break;case 10:this.popState();break;case 11:n.getLogger().trace("Begin icon"),this.begin("ICON");break;case 12:return n.getLogger().trace("SPACELINE"),6;break;case 13:return 7;case 14:return 16;case 15:n.getLogger().trace("end icon"),this.popState();break;case 16:return n.getLogger().trace("Exploding node"),this.begin("NODE"),20;break;case 17:return n.getLogger().trace("Cloud"),this.begin("NODE"),20;break;case 18:return n.getLogger().trace("Explosion Bang"),this.begin("NODE"),20;break;case 19:return n.getLogger().trace("Cloud Bang"),this.begin("NODE"),20;break;case 20:return this.begin("NODE"),20;break;case 21:return this.begin("NODE"),20;break;case 22:return this.begin("NODE"),20;break;case 23:return this.begin("NODE"),20;break;case 24:return 13;case 25:return 23;case 26:return 11;case 27:this.begin("NSTR2");break;case 28:return"NODE_DESCR";case 29:this.popState();break;case 30:n.getLogger().trace("Starting NSTR"),this.begin("NSTR");break;case 31:return n.getLogger().trace("description:",s.yytext),"NODE_DESCR";break;case 32:this.popState();break;case 33:return this.popState(),n.getLogger().trace("node end ))"),"NODE_DEND";break;case 34:return this.popState(),n.getLogger().trace("node end )"),"NODE_DEND";break;case 35:return this.popState(),n.getLogger().trace("node end ...",s.yytext),"NODE_DEND";break;case 36:return this.popState(),n.getLogger().trace("node end (("),"NODE_DEND";break;case 37:return this.popState(),n.getLogger().trace("node end (-"),"NODE_DEND";break;case 38:return this.popState(),n.getLogger().trace("node end (-"),"NODE_DEND";break;case 39:return this.popState(),n.getLogger().trace("node end (("),"NODE_DEND";break;case 40:return this.popState(),n.getLogger().trace("node end (("),"NODE_DEND";break;case 41:return n.getLogger().trace("Long description:",s.yytext),21;break;case 42:return n.getLogger().trace("Long description:",s.yytext),21;break}},"anonymous"),rules:[/^(?:@\{)/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^\"]+)/i,/^(?:[^}^"]+)/i,/^(?:\})/i,/^(?:\s*%%.*)/i,/^(?:kanban\b)/i,/^(?::::)/i,/^(?:.+)/i,/^(?:\n)/i,/^(?:::icon\()/i,/^(?:[\s]+[\n])/i,/^(?:[\n]+)/i,/^(?:[^\)]+)/i,/^(?:\))/i,/^(?:-\))/i,/^(?:\(-)/i,/^(?:\)\))/i,/^(?:\))/i,/^(?:\(\()/i,/^(?:\{\{)/i,/^(?:\()/i,/^(?:\[)/i,/^(?:[\s]+)/i,/^(?:[^\(\[\n\)\{\}@]+)/i,/^(?:$)/i,/^(?:["][`])/i,/^(?:[^`"]+)/i,/^(?:[`]["])/i,/^(?:["])/i,/^(?:[^"]+)/i,/^(?:["])/i,/^(?:[\)]\))/i,/^(?:[\)])/i,/^(?:[\]])/i,/^(?:\}\})/i,/^(?:\(-)/i,/^(?:-\))/i,/^(?:\(\()/i,/^(?:\()/i,/^(?:[^\)\]\(\}]+)/i,/^(?:.+(?!\(\())/i],conditions:{shapeDataEndBracket:{rules:[],inclusive:!1},shapeDataStr:{rules:[2,3],inclusive:!1},shapeData:{rules:[1,4,5],inclusive:!1},CLASS:{rules:[9,10],inclusive:!1},ICON:{rules:[14,15],inclusive:!1},NSTR2:{rules:[28,29],inclusive:!1},NSTR:{rules:[31,32],inclusive:!1},NODE:{rules:[27,30,33,34,35,36,37,38,39,40,41,42],inclusive:!1},INITIAL:{rules:[0,6,7,8,11,12,13,16,17,18,19,20,21,22,23,24,25,26],inclusive:!0}}};return O})();T.lexer=J;function F(){this.yy={}}return o(F,"Parser"),F.prototype=T,T.Parser=F,new F})();ie.parser=ie;var De=ie,v=[],se=[],re=0,ae={},Le=o(()=>{v=[],se=[],re=0,ae={}},"clear"),Oe=o(e=>{if(v.length===0)return null;let u=v[0].level,p=null;for(let r=v.length-1;r>=0;r--)if(v[r].level===u&&!p&&(p=v[r]),v[r].levell.parentId===d.id);for(let l of m){let D={id:l.id,parentId:d.id,label:B(l.label??"",r),labelType:"markdown",isGroup:!1,ticket:l?.ticket,priority:l?.priority,assigned:l?.assigned,icon:l?.icon,shape:"kanbanItem",level:l.level,rx:5,ry:5,cssStyles:["text-align: left"]};u.push(D)}}return{nodes:u,edges:e,other:{},config:M()}},"getData"),Ce=o((e,u,p,r,d)=>{let k=M(),m=k.mindmap?.padding??W.mindmap.padding;switch(r){case b.ROUNDED_RECT:case b.RECT:case b.HEXAGON:m*=2}let l={id:B(u,k)||"kbn"+re++,level:e,label:B(p,k),width:k.mindmap?.maxNodeWidth??W.mindmap.maxNodeWidth,padding:m,isGroup:!1};if(d!==void 0){let I;d.includes(` +`)?I=d+` +`:I=`{ +`+d+` +}`;let g=be(I,{schema:fe});if(g.shape&&(g.shape!==g.shape.toLowerCase()||g.shape.includes("_")))throw new Error(`No such shape: ${g.shape}. Shape names should be lowercase.`);g?.shape&&g.shape==="kanbanItem"&&(l.shape=g?.shape),g?.label&&(l.label=g?.label),g?.icon&&(l.icon=g?.icon.toString()),g?.assigned&&(l.assigned=g?.assigned.toString()),g?.ticket&&(l.ticket=g?.ticket.toString()),g?.priority&&(l.priority=g?.priority)}let D=Oe(e);D?l.parentId=D.id||"kbn"+re++:se.push(l),v.push(l)},"addNode"),b={DEFAULT:0,NO_BORDER:0,ROUNDED_RECT:1,RECT:2,CIRCLE:3,CLOUD:4,BANG:5,HEXAGON:6},we=o((e,u)=>{switch(Y.debug("In get type",e,u),e){case"[":return b.RECT;case"(":return u===")"?b.ROUNDED_RECT:b.CLOUD;case"((":return b.CIRCLE;case")":return b.CLOUD;case"))":return b.BANG;case"{{":return b.HEXAGON;default:return b.DEFAULT}},"getType"),Ae=o((e,u)=>{ae[e]=u},"setElementForId"),Te=o(e=>{if(!e)return;let u=M(),p=v[v.length-1];e.icon&&(p.icon=B(e.icon,u)),e.class&&(p.cssClasses=B(e.class,u))},"decorateNode"),Re=o(e=>{switch(e){case b.DEFAULT:return"no-border";case b.RECT:return"rect";case b.ROUNDED_RECT:return"rounded-rect";case b.CIRCLE:return"circle";case b.CLOUD:return"cloud";case b.BANG:return"bang";case b.HEXAGON:return"hexgon";default:return"no-border"}},"type2Str"),Pe=o(()=>Y,"getLogger"),Ve=o(e=>ae[e],"getElementById"),Be={clear:Le,addNode:Ce,getSections:_e,getData:Ie,nodeType:b,getType:we,setElementForId:Ae,decorateNode:Te,type2Str:Re,getLogger:Pe,getElementById:Ve},je=Be,Fe=o(async(e,u,p,r)=>{Y.debug(`Rendering kanban diagram +`+e);let k=r.db.getData(),m=M();m.htmlLabels=!1;let l=pe(u);for(let f of k.nodes)f.domId=`${u}-${f.id}`;let D=l.append("g");D.attr("class","sections");let I=l.append("g");I.attr("class","items");let g=k.nodes.filter(f=>f.isGroup),w=0,E=10,U=[],N=25;for(let f of g){let A=m?.kanban?.sectionWidth||200;w=w+1,f.x=A*w+(w-1)*E/2,f.width=A,f.y=0,f.height=A*3,f.rx=5,f.ry=5,f.cssClasses=f.cssClasses+" section-"+w;let L=await ke(D,f);N=Math.max(N,L?.labelBBox?.height),U.push(L)}let j=0;for(let f of g){let A=U[j];j=j+1;let L=m?.kanban?.sectionWidth||200,H=-L*3/2+N,T=H,J=k.nodes.filter(i=>i.parentId===f.id);for(let i of J){if(i.isGroup)throw new Error("Groups within groups are not allowed in Kanban diagrams");i.x=f.x,i.width=L-1.5*E;let s=(await ye(I,i,{config:m})).node().getBBox();i.y=T+s.height/2,await me(i),T=i.y+s.height/2+E/2}let F=A.cluster.select("rect"),O=Math.max(T-H+3*E,50)+(N-25);F.attr("height",O)}de(void 0,l,m.mindmap?.padding??W.kanban.padding,m.mindmap?.useMaxWidth??W.kanban.useMaxWidth)},"draw"),Ge={draw:Fe},Me=o(e=>{let u="";for(let r=0;re.darkMode?ne(r,d):te(r,d),"adjuster");for(let r=0;r` + .edge { + stroke-width: 3; + } + ${Me(e)} + .section-root rect, .section-root path, .section-root circle, .section-root polygon { + fill: ${e.git0}; + } + .section-root text { + fill: ${e.gitBranchLabel0}; + } + .icon-container { + height:100%; + display: flex; + justify-content: center; + align-items: center; + } + .edge { + fill: none; + } + .cluster-label, .label { + color: ${e.textColor}; + fill: ${e.textColor}; + } + .kanban-label { + dy: 1em; + alignment-baseline: middle; + text-anchor: middle; + dominant-baseline: middle; + text-align: center; + } + ${Ee()} +`,"getStyles"),He=Ue,at={db:je,renderer:Ge,parser:De,styles:He};export{at as diagram}; diff --git a/src/frontend/web/von_interface/static/vendor/conversation-visuals/katex-LICENSE b/src/frontend/web/von_interface/static/vendor/conversation-visuals/katex-LICENSE new file mode 100644 index 000000000..37c6433e3 --- /dev/null +++ b/src/frontend/web/von_interface/static/vendor/conversation-visuals/katex-LICENSE @@ -0,0 +1,21 @@ +The MIT License (MIT) + +Copyright (c) 2013-2020 Khan Academy and other contributors + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/src/frontend/web/von_interface/static/vendor/conversation-visuals/katex-Q7NK5RSN.js b/src/frontend/web/von_interface/static/vendor/conversation-visuals/katex-Q7NK5RSN.js new file mode 100644 index 000000000..4b31be12a --- /dev/null +++ b/src/frontend/web/von_interface/static/vendor/conversation-visuals/katex-Q7NK5RSN.js @@ -0,0 +1,257 @@ +import"./chunk-3RNHDNP5.js";var z=class r extends Error{constructor(e,t){var a="KaTeX parse error: "+e,i,s,u=t&&t.loc;if(u&&u.start<=u.end){var h=u.lexer.input;i=u.start,s=u.end,i===h.length?a+=" at end of input: ":a+=" at position "+(i+1)+": ";var c=h.slice(i,s).replace(/[^]/g,"$&\u0332"),v;i>15?v="\u2026"+h.slice(i-15,i):v=h.slice(0,i);var p;s+15r.replace(j1,"-$1").toLowerCase(),K1={"&":"&",">":">","<":"<",'"':""","'":"'"},J1=/[&><"']/g,n0=r=>String(r).replace(J1,e=>K1[e]),Ne=r=>r.type==="ordgroup"||r.type==="color"?r.body.length===1?Ne(r.body[0]):r:r.type==="font"?Ne(r.body):r,Q1=new Set(["mathord","textord","atom"]),E0=r=>Q1.has(Ne(r).type),_1=r=>{var e=/^[\x00-\x20]*([^\\/#?]*?)(:|�*58|�*3a|&colon)/i.exec(r);return e?e[2]!==":"||!/^[a-zA-Z][a-zA-Z0-9+\-.]*$/.test(e[1])?null:e[1].toLowerCase():"_relative"},yt={displayMode:{type:"boolean",description:"Render math in display mode, which puts the math in display style (so \\int and \\sum are large, for example), and centers the math on the page on its own line.",cli:"-d, --display-mode"},output:{type:{enum:["htmlAndMathml","html","mathml"]},description:"Determines the markup language of the output.",cli:"-F, --format "},leqno:{type:"boolean",description:"Render display math in leqno style (left-justified tags)."},fleqn:{type:"boolean",description:"Render display math flush left."},throwOnError:{type:"boolean",default:!0,cli:"-t, --no-throw-on-error",cliDescription:"Render errors (in the color given by --error-color) instead of throwing a ParseError exception when encountering an error."},errorColor:{type:"string",default:"#cc0000",cli:"-c, --error-color ",cliDescription:"A color string given in the format 'rgb' or 'rrggbb' (no #). This option determines the color of errors rendered by the -t option.",cliProcessor:r=>"#"+r},macros:{type:"object",cli:"-m, --macro ",cliDescription:"Define custom macro of the form '\\foo:expansion' (use multiple -m arguments for multiple macros).",cliDefault:[],cliProcessor:(r,e)=>(e.push(r),e)},minRuleThickness:{type:"number",description:"Specifies a minimum thickness, in ems, for fraction lines, `\\sqrt` top lines, `{array}` vertical lines, `\\hline`, `\\hdashline`, `\\underline`, `\\overline`, and the borders of `\\fbox`, `\\boxed`, and `\\fcolorbox`.",processor:r=>Math.max(0,r),cli:"--min-rule-thickness ",cliProcessor:parseFloat},colorIsTextColor:{type:"boolean",description:"Makes \\color behave like LaTeX's 2-argument \\textcolor, instead of LaTeX's one-argument \\color mode change.",cli:"-b, --color-is-text-color"},strict:{type:[{enum:["warn","ignore","error"]},"boolean","function"],description:"Turn on strict / LaTeX faithfulness mode, which throws an error if the input uses features that are not supported by LaTeX.",cli:"-S, --strict",cliDefault:!1},trust:{type:["boolean","function"],description:"Trust the input, enabling all HTML features such as \\url.",cli:"-T, --trust"},maxSize:{type:"number",default:1/0,description:"If non-zero, all user-specified sizes, e.g. in \\rule{500em}{500em}, will be capped to maxSize ems. Otherwise, elements and spaces can be arbitrarily large",processor:r=>Math.max(0,r),cli:"-s, --max-size ",cliProcessor:parseInt},maxExpand:{type:"number",default:1e3,description:"Limit the number of macro expansions to the specified number, to prevent e.g. infinite macro loops. If set to Infinity, the macro expander will try to fully expand as in LaTeX.",processor:r=>Math.max(0,r),cli:"-e, --max-expand ",cliProcessor:r=>r==="Infinity"?1/0:parseInt(r)},globalGroup:{type:"boolean",cli:!1}};function ea(r){if(typeof r!="string")return r.enum[0];switch(r){case"boolean":return!1;case"string":return"";case"number":return 0;case"object":return{};default:throw new Error("Unexpected schema type; settings must declare an explicit default.")}}function ta(r){if(r.default!==void 0)return r.default;var e=Array.isArray(r.type)?r.type[0]:r.type;return ea(e)}function ra(r,e,t,a){var i=t[e];r[e]=i!==void 0?a.processor?a.processor(i):i:ta(a)}var de=class{constructor(e){e===void 0&&(e={}),this.displayMode=void 0,this.output=void 0,this.leqno=void 0,this.fleqn=void 0,this.throwOnError=void 0,this.errorColor=void 0,this.macros=void 0,this.minRuleThickness=void 0,this.colorIsTextColor=void 0,this.strict=void 0,this.trust=void 0,this.maxSize=void 0,this.maxExpand=void 0,this.globalGroup=void 0,e=e||{};for(var t of Object.keys(yt)){var a=yt[t];a&&ra(this,t,e,a)}}reportNonstrict(e,t,a){var i=this.strict;if(typeof i=="function"&&(i=i(e,t,a)),!(!i||i==="ignore")){if(i===!0||i==="error")throw new z("LaTeX-incompatible input and strict mode is set to 'error': "+(t+" ["+e+"]"),a);i==="warn"?typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(t+" ["+e+"]")):typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+i+"': "+t+" ["+e+"]"))}}useStrictBehavior(e,t,a){var i=this.strict;if(typeof i=="function")try{i=i(e,t,a)}catch{i="error"}return!i||i==="ignore"?!1:i===!0||i==="error"?!0:i==="warn"?(typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(t+" ["+e+"]")),!1):(typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+i+"': "+t+" ["+e+"]")),!1)}isTrusted(e){if("url"in e&&e.url&&!e.protocol){var t=_1(e.url);if(t==null)return!1;e.protocol=t}var a=typeof this.trust=="function"?this.trust(e):this.trust;return!!a}},k0=class{constructor(e,t,a){this.id=void 0,this.size=void 0,this.cramped=void 0,this.id=e,this.size=t,this.cramped=a}sup(){return S0[aa[this.id]]}sub(){return S0[ia[this.id]]}fracNum(){return S0[na[this.id]]}fracDen(){return S0[sa[this.id]]}cramp(){return S0[la[this.id]]}text(){return S0[ua[this.id]]}isTight(){return this.size>=2}},Pt=0,Oe=1,ee=2,q0=3,fe=4,p0=5,te=6,l0=7,S0=[new k0(Pt,0,!1),new k0(Oe,0,!0),new k0(ee,1,!1),new k0(q0,1,!0),new k0(fe,2,!1),new k0(p0,2,!0),new k0(te,3,!1),new k0(l0,3,!0)],aa=[fe,p0,fe,p0,te,l0,te,l0],ia=[p0,p0,p0,p0,l0,l0,l0,l0],na=[ee,q0,fe,p0,te,l0,te,l0],sa=[q0,q0,p0,p0,l0,l0,l0,l0],la=[Oe,Oe,q0,q0,p0,p0,l0,l0],ua=[Pt,Oe,ee,q0,ee,q0,ee,q0],N={DISPLAY:S0[Pt],TEXT:S0[ee],SCRIPT:S0[fe],SCRIPTSCRIPT:S0[te]},xt=[{name:"latin",blocks:[[256,591],[768,879]]},{name:"cyrillic",blocks:[[1024,1279]]},{name:"armenian",blocks:[[1328,1423]]},{name:"brahmic",blocks:[[2304,4255]]},{name:"georgian",blocks:[[4256,4351]]},{name:"cjk",blocks:[[12288,12543],[19968,40879],[65280,65376]]},{name:"hangul",blocks:[[44032,55215]]}];function oa(r){for(var e=0;e=i[0]&&r<=i[1])return t.name}return null}var Fe=[];xt.forEach(r=>r.blocks.forEach(e=>Fe.push(...e)));function Yr(r){for(var e=0;e=Fe[e]&&r<=Fe[e+1])return!0;return!1}var r0=r=>r+" "+r,_0=80,ha=function(e,t){return"M95,"+(622+e+t)+` +c-2.7,0,-7.17,-2.7,-13.5,-8c-5.8,-5.3,-9.5,-10,-9.5,-14 +c0,-2,0.3,-3.3,1,-4c1.3,-2.7,23.83,-20.7,67.5,-54 +c44.2,-33.3,65.8,-50.3,66.5,-51c1.3,-1.3,3,-2,5,-2c4.7,0,8.7,3.3,12,10 +s173,378,173,378c0.7,0,35.3,-71,104,-213c68.7,-142,137.5,-285,206.5,-429 +c69,-144,104.5,-217.7,106.5,-221 +l`+e/2.075+" -"+e+` +c5.3,-9.3,12,-14,20,-14 +H400000v`+(40+e)+`H845.2724 +s-225.272,467,-225.272,467s-235,486,-235,486c-2.7,4.7,-9,7,-19,7 +c-6,0,-10,-1,-12,-3s-194,-422,-194,-422s-65,47,-65,47z +M`+(834+e)+" "+t+"h400000v"+(40+e)+"h-400000z"},ma=function(e,t){return"M263,"+(601+e+t)+`c0.7,0,18,39.7,52,119 +c34,79.3,68.167,158.7,102.5,238c34.3,79.3,51.8,119.3,52.5,120 +c340,-704.7,510.7,-1060.3,512,-1067 +l`+e/2.084+" -"+e+` +c4.7,-7.3,11,-11,19,-11 +H40000v`+(40+e)+`H1012.3 +s-271.3,567,-271.3,567c-38.7,80.7,-84,175,-136,283c-52,108,-89.167,185.3,-111.5,232 +c-22.3,46.7,-33.8,70.3,-34.5,71c-4.7,4.7,-12.3,7,-23,7s-12,-1,-12,-1 +s-109,-253,-109,-253c-72.7,-168,-109.3,-252,-110,-252c-10.7,8,-22,16.7,-34,26 +c-22,17.3,-33.3,26,-34,26s-26,-26,-26,-26s76,-59,76,-59s76,-60,76,-60z +M`+(1001+e)+" "+t+"h400000v"+(40+e)+"h-400000z"},ca=function(e,t){return"M983 "+(10+e+t)+` +l`+e/3.13+" -"+e+` +c4,-6.7,10,-10,18,-10 H400000v`+(40+e)+` +H1013.1s-83.4,268,-264.1,840c-180.7,572,-277,876.3,-289,913c-4.7,4.7,-12.7,7,-24,7 +s-12,0,-12,0c-1.3,-3.3,-3.7,-11.7,-7,-25c-35.3,-125.3,-106.7,-373.3,-214,-744 +c-10,12,-21,25,-33,39s-32,39,-32,39c-6,-5.3,-15,-14,-27,-26s25,-30,25,-30 +c26.7,-32.7,52,-63,76,-91s52,-60,52,-60s208,722,208,722 +c56,-175.3,126.3,-397.3,211,-666c84.7,-268.7,153.8,-488.2,207.5,-658.5 +c53.7,-170.3,84.5,-266.8,92.5,-289.5z +M`+(1001+e)+" "+t+"h400000v"+(40+e)+"h-400000z"},da=function(e,t){return"M424,"+(2398+e+t)+` +c-1.3,-0.7,-38.5,-172,-111.5,-514c-73,-342,-109.8,-513.3,-110.5,-514 +c0,-2,-10.7,14.3,-32,49c-4.7,7.3,-9.8,15.7,-15.5,25c-5.7,9.3,-9.8,16,-12.5,20 +s-5,7,-5,7c-4,-3.3,-8.3,-7.7,-13,-13s-13,-13,-13,-13s76,-122,76,-122s77,-121,77,-121 +s209,968,209,968c0,-2,84.7,-361.7,254,-1079c169.3,-717.3,254.7,-1077.7,256,-1081 +l`+e/4.223+" -"+e+`c4,-6.7,10,-10,18,-10 H400000 +v`+(40+e)+`H1014.6 +s-87.3,378.7,-272.6,1166c-185.3,787.3,-279.3,1182.3,-282,1185 +c-2,6,-10,9,-24,9 +c-8,0,-12,-0.7,-12,-2z M`+(1001+e)+" "+t+` +h400000v`+(40+e)+"h-400000z"},fa=function(e,t){return"M473,"+(2713+e+t)+` +c339.3,-1799.3,509.3,-2700,510,-2702 l`+e/5.298+" -"+e+` +c3.3,-7.3,9.3,-11,18,-11 H400000v`+(40+e)+`H1017.7 +s-90.5,478,-276.2,1466c-185.7,988,-279.5,1483,-281.5,1485c-2,6,-10,9,-24,9 +c-8,0,-12,-0.7,-12,-2c0,-1.3,-5.3,-32,-16,-92c-50.7,-293.3,-119.7,-693.3,-207,-1200 +c0,-1.3,-5.3,8.7,-16,30c-10.7,21.3,-21.3,42.7,-32,64s-16,33,-16,33s-26,-26,-26,-26 +s76,-153,76,-153s77,-151,77,-151c0.7,0.7,35.7,202,105,604c67.3,400.7,102,602.7,104, +606zM`+(1001+e)+" "+t+"h400000v"+(40+e)+"H1017.7z"},va=function(e){var t=e/2;return"M400000 "+e+" H0 L"+t+" 0 l65 45 L145 "+(e-80)+" H400000z"},pa=function(e,t,a){var i=a-54-t-e;return"M702 "+(e+t)+"H400000"+(40+e)+` +H742v`+i+`l-4 4-4 4c-.667.7 -2 1.5-4 2.5s-4.167 1.833-6.5 2.5-5.5 1-9.5 1 +h-12l-28-84c-16.667-52-96.667 -294.333-240-727l-212 -643 -85 170 +c-4-3.333-8.333-7.667-13 -13l-13-13l77-155 77-156c66 199.333 139 419.667 +219 661 l218 661zM702 `+t+"H400000v"+(40+e)+"H742z"},ga=function(e,t,a){t=1e3*t;var i="";switch(e){case"sqrtMain":i=ha(t,_0);break;case"sqrtSize1":i=ma(t,_0);break;case"sqrtSize2":i=ca(t,_0);break;case"sqrtSize3":i=da(t,_0);break;case"sqrtSize4":i=fa(t,_0);break;case"sqrtTall":i=pa(t,_0,a)}return i},ba=function(e,t){switch(e){case"\u239C":return r0("M291 0 H417 V"+t+" H291z");case"\u2223":return r0("M145 0 H188 V"+t+" H145z");case"\u2225":return r0("M145 0 H188 V"+t+" H145z")+r0("M367 0 H410 V"+t+" H367z");case"\u239F":return r0("M457 0 H583 V"+t+" H457z");case"\u23A2":return r0("M319 0 H403 V"+t+" H319z");case"\u23A5":return r0("M263 0 H347 V"+t+" H263z");case"\u23AA":return r0("M384 0 H504 V"+t+" H384z");case"\u23D0":return r0("M312 0 H355 V"+t+" H312z");case"\u2016":return r0("M257 0 H300 V"+t+" H257z")+r0("M478 0 H521 V"+t+" H478z");default:return""}},hr={doubleleftarrow:`M262 157 +l10-10c34-36 62.7-77 86-123 3.3-8 5-13.3 5-16 0-5.3-6.7-8-20-8-7.3 + 0-12.2.5-14.5 1.5-2.3 1-4.8 4.5-7.5 10.5-49.3 97.3-121.7 169.3-217 216-28 + 14-57.3 25-88 33-6.7 2-11 3.8-13 5.5-2 1.7-3 4.2-3 7.5s1 5.8 3 7.5 +c2 1.7 6.3 3.5 13 5.5 68 17.3 128.2 47.8 180.5 91.5 52.3 43.7 93.8 96.2 124.5 + 157.5 9.3 8 15.3 12.3 18 13h6c12-.7 18-4 18-10 0-2-1.7-7-5-15-23.3-46-52-87 +-86-123l-10-10h399738v-40H218c328 0 0 0 0 0l-10-8c-26.7-20-65.7-43-117-69 2.7 +-2 6-3.7 10-5 36.7-16 72.3-37.3 107-64l10-8h399782v-40z +m8 0v40h399730v-40zm0 194v40h399730v-40z`,doublerightarrow:`M399738 392l +-10 10c-34 36-62.7 77-86 123-3.3 8-5 13.3-5 16 0 5.3 6.7 8 20 8 7.3 0 12.2-.5 + 14.5-1.5 2.3-1 4.8-4.5 7.5-10.5 49.3-97.3 121.7-169.3 217-216 28-14 57.3-25 88 +-33 6.7-2 11-3.8 13-5.5 2-1.7 3-4.2 3-7.5s-1-5.8-3-7.5c-2-1.7-6.3-3.5-13-5.5-68 +-17.3-128.2-47.8-180.5-91.5-52.3-43.7-93.8-96.2-124.5-157.5-9.3-8-15.3-12.3-18 +-13h-6c-12 .7-18 4-18 10 0 2 1.7 7 5 15 23.3 46 52 87 86 123l10 10H0v40h399782 +c-328 0 0 0 0 0l10 8c26.7 20 65.7 43 117 69-2.7 2-6 3.7-10 5-36.7 16-72.3 37.3 +-107 64l-10 8H0v40zM0 157v40h399730v-40zm0 194v40h399730v-40z`,leftarrow:`M400000 241H110l3-3c68.7-52.7 113.7-120 + 135-202 4-14.7 6-23 6-25 0-7.3-7-11-21-11-8 0-13.2.8-15.5 2.5-2.3 1.7-4.2 5.8 +-5.5 12.5-1.3 4.7-2.7 10.3-4 17-12 48.7-34.8 92-68.5 130S65.3 228.3 18 247 +c-10 4-16 7.7-18 11 0 8.7 6 14.3 18 17 47.3 18.7 87.8 47 121.5 85S196 441.3 208 + 490c.7 2 1.3 5 2 9s1.2 6.7 1.5 8c.3 1.3 1 3.3 2 6s2.2 4.5 3.5 5.5c1.3 1 3.3 + 1.8 6 2.5s6 1 10 1c14 0 21-3.7 21-11 0-2-2-10.3-6-25-20-79.3-65-146.7-135-202 + l-3-3h399890zM100 241v40h399900v-40z`,leftbrace:`M6 548l-6-6v-35l6-11c56-104 135.3-181.3 238-232 57.3-28.7 117 +-45 179-50h399577v120H403c-43.3 7-81 15-113 26-100.7 33-179.7 91-237 174-2.7 + 5-6 9-10 13-.7 1-7.3 1-20 1H6z`,leftbraceunder:`M0 6l6-6h17c12.688 0 19.313.3 20 1 4 4 7.313 8.3 10 13 + 35.313 51.3 80.813 93.8 136.5 127.5 55.688 33.7 117.188 55.8 184.5 66.5.688 + 0 2 .3 4 1 18.688 2.7 76 4.3 172 5h399450v120H429l-6-1c-124.688-8-235-61.7 +-331-161C60.687 138.7 32.312 99.3 7 54L0 41V6z`,leftgroup:`M400000 80 +H435C64 80 168.3 229.4 21 260c-5.9 1.2-18 0-18 0-2 0-3-1-3-3v-38C76 61 257 0 + 435 0h399565z`,leftgroupunder:`M400000 262 +H435C64 262 168.3 112.6 21 82c-5.9-1.2-18 0-18 0-2 0-3 1-3 3v38c76 158 257 219 + 435 219h399565z`,leftharpoon:`M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3 +-3.3 10.2-9.5 20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5 +-18.3 3-21-1.3-4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7 +-196 228-6.7 4.7-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40z`,leftharpoonplus:`M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3-3.3 10.2-9.5 + 20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5-18.3 3-21-1.3 +-4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7-196 228-6.7 4.7 +-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40zM0 435v40h400000v-40z +m0 0v40h400000v-40z`,leftharpoondown:`M7 241c-4 4-6.333 8.667-7 14 0 5.333.667 9 2 11s5.333 + 5.333 12 10c90.667 54 156 130 196 228 3.333 10.667 6.333 16.333 9 17 2 .667 5 + 1 9 1h5c10.667 0 16.667-2 18-6 2-2.667 1-9.667-3-21-32-87.333-82.667-157.667 +-152-211l-3-3h399907v-40zM93 281 H400000 v-40L7 241z`,leftharpoondownplus:`M7 435c-4 4-6.3 8.7-7 14 0 5.3.7 9 2 11s5.3 5.3 12 + 10c90.7 54 156 130 196 228 3.3 10.7 6.3 16.3 9 17 2 .7 5 1 9 1h5c10.7 0 16.7 +-2 18-6 2-2.7 1-9.7-3-21-32-87.3-82.7-157.7-152-211l-3-3h399907v-40H7zm93 0 +v40h399900v-40zM0 241v40h399900v-40zm0 0v40h399900v-40z`,lefthook:`M400000 281 H103s-33-11.2-61-33.5S0 197.3 0 164s14.2-61.2 42.5 +-83.5C70.8 58.2 104 47 142 47 c16.7 0 25 6.7 25 20 0 12-8.7 18.7-26 20-40 3.3 +-68.7 15.7-86 37-10 12-15 25.3-15 40 0 22.7 9.8 40.7 29.5 54 19.7 13.3 43.5 21 + 71.5 23h399859zM103 281v-40h399897v40z`,leftlinesegment:r0("M40 281 V428 H0 V94 H40 V241 H400000 v40z"),leftbracketunder:r0("M0 0 h120 V290 H399995 v120 H0z"),leftbracketover:r0("M0 440 h120 V150 H399995 v-120 H0z"),leftmapsto:r0("M40 281 V448H0V74H40V241H400000v40z"),leftToFrom:`M0 147h400000v40H0zm0 214c68 40 115.7 95.7 143 167h22c15.3 0 23 +-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69-70-101l-7-8h399905v-40H95l7-8 +c28.7-32 52-65.7 70-101 10.7-23.3 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 265.3 + 68 321 0 361zm0-174v-40h399900v40zm100 154v40h399900v-40z`,longequal:r0("M0 50 h400000 v40H0z m0 194h40000v40H0z"),midbrace:`M200428 334 +c-100.7-8.3-195.3-44-280-108-55.3-42-101.7-93-139-153l-9-14c-2.7 4-5.7 8.7-9 14 +-53.3 86.7-123.7 153-211 199-66.7 36-137.3 56.3-212 62H0V214h199568c178.3-11.7 + 311.7-78.3 403-201 6-8 9.7-12 11-12 .7-.7 6.7-1 18-1s17.3.3 18 1c1.3 0 5 4 11 + 12 44.7 59.3 101.3 106.3 170 141s145.3 54.3 229 60h199572v120z`,midbraceunder:`M199572 214 +c100.7 8.3 195.3 44 280 108 55.3 42 101.7 93 139 153l9 14c2.7-4 5.7-8.7 9-14 + 53.3-86.7 123.7-153 211-199 66.7-36 137.3-56.3 212-62h199568v120H200432c-178.3 + 11.7-311.7 78.3-403 201-6 8-9.7 12-11 12-.7.7-6.7 1-18 1s-17.3-.3-18-1c-1.3 0 +-5-4-11-12-44.7-59.3-101.3-106.3-170-141s-145.3-54.3-229-60H0V214z`,oiintSize1:`M512.6 71.6c272.6 0 320.3 106.8 320.3 178.2 0 70.8-47.7 177.6 +-320.3 177.6S193.1 320.6 193.1 249.8c0-71.4 46.9-178.2 319.5-178.2z +m368.1 178.2c0-86.4-60.9-215.4-368.1-215.4-306.4 0-367.3 129-367.3 215.4 0 85.8 +60.9 214.8 367.3 214.8 307.2 0 368.1-129 368.1-214.8z`,oiintSize2:`M757.8 100.1c384.7 0 451.1 137.6 451.1 230 0 91.3-66.4 228.8 +-451.1 228.8-386.3 0-452.7-137.5-452.7-228.8 0-92.4 66.4-230 452.7-230z +m502.4 230c0-111.2-82.4-277.2-502.4-277.2s-504 166-504 277.2 +c0 110 84 276 504 276s502.4-166 502.4-276z`,oiiintSize1:`M681.4 71.6c408.9 0 480.5 106.8 480.5 178.2 0 70.8-71.6 177.6 +-480.5 177.6S202.1 320.6 202.1 249.8c0-71.4 70.5-178.2 479.3-178.2z +m525.8 178.2c0-86.4-86.8-215.4-525.7-215.4-437.9 0-524.7 129-524.7 215.4 0 +85.8 86.8 214.8 524.7 214.8 438.9 0 525.7-129 525.7-214.8z`,oiiintSize2:`M1021.2 53c603.6 0 707.8 165.8 707.8 277.2 0 110-104.2 275.8 +-707.8 275.8-606 0-710.2-165.8-710.2-275.8C311 218.8 415.2 53 1021.2 53z +m770.4 277.1c0-131.2-126.4-327.6-770.5-327.6S248.4 198.9 248.4 330.1 +c0 130 128.8 326.4 772.7 326.4s770.5-196.4 770.5-326.4z`,rightarrow:`M0 241v40h399891c-47.3 35.3-84 78-110 128 +-16.7 32-27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20 + 11 8 0 13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7 + 39-84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85 +-40.5-119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5 +-12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67 + 151.7 139 205zm0 0v40h399900v-40z`,rightbrace:`M400000 542l +-6 6h-17c-12.7 0-19.3-.3-20-1-4-4-7.3-8.3-10-13-35.3-51.3-80.8-93.8-136.5-127.5 +s-117.2-55.8-184.5-66.5c-.7 0-2-.3-4-1-18.7-2.7-76-4.3-172-5H0V214h399571l6 1 +c124.7 8 235 61.7 331 161 31.3 33.3 59.7 72.7 85 118l7 13v35z`,rightbraceunder:`M399994 0l6 6v35l-6 11c-56 104-135.3 181.3-238 232-57.3 + 28.7-117 45-179 50H-300V214h399897c43.3-7 81-15 113-26 100.7-33 179.7-91 237 +-174 2.7-5 6-9 10-13 .7-1 7.3-1 20-1h17z`,rightgroup:`M0 80h399565c371 0 266.7 149.4 414 180 5.9 1.2 18 0 18 0 2 0 + 3-1 3-3v-38c-76-158-257-219-435-219H0z`,rightgroupunder:`M0 262h399565c371 0 266.7-149.4 414-180 5.9-1.2 18 0 18 + 0 2 0 3 1 3 3v38c-76 158-257 219-435 219H0z`,rightharpoon:`M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3 +-3.7-15.3-11-18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2 +-10.7 0-16.7 2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58 + 69.2 92 94.5zm0 0v40h399900v-40z`,rightharpoonplus:`M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3-3.7-15.3-11 +-18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2-10.7 0-16.7 + 2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58 69.2 92 94.5z +m0 0v40h399900v-40z m100 194v40h399900v-40zm0 0v40h399900v-40z`,rightharpoondown:`M399747 511c0 7.3 6.7 11 20 11 8 0 13-.8 15-2.5s4.7-6.8 + 8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3 8.5-5.8 9.5 +-7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3-64.7 57-92 95 +-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 241v40h399900v-40z`,rightharpoondownplus:`M399747 705c0 7.3 6.7 11 20 11 8 0 13-.8 + 15-2.5s4.7-6.8 8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3 + 8.5-5.8 9.5-7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3 +-64.7 57-92 95-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 435v40h399900v-40z +m0-194v40h400000v-40zm0 0v40h400000v-40z`,righthook:`M399859 241c-764 0 0 0 0 0 40-3.3 68.7-15.7 86-37 10-12 15-25.3 + 15-40 0-22.7-9.8-40.7-29.5-54-19.7-13.3-43.5-21-71.5-23-17.3-1.3-26-8-26-20 0 +-13.3 8.7-20 26-20 38 0 71 11.2 99 33.5 0 0 7 5.6 21 16.7 14 11.2 21 33.5 21 + 66.8s-14 61.2-42 83.5c-28 22.3-61 33.5-99 33.5L0 241z M0 281v-40h399859v40z`,rightlinesegment:r0("M399960 241 V94 h40 V428 h-40 V281 H0 v-40z"),rightbracketunder:r0("M399995 0 h-120 V290 H0 v120 H400000z"),rightbracketover:r0("M399995 440 h-120 V150 H0 v-120 H399995z"),rightToFrom:`M400000 167c-70.7-42-118-97.7-142-167h-23c-15.3 0-23 .3-23 + 1 0 1.3 5.3 13.7 16 37 18 35.3 41.3 69 70 101l7 8H0v40h399905l-7 8c-28.7 32 +-52 65.7-70 101-10.7 23.3-16 35.7-16 37 0 .7 7.7 1 23 1h23c24-69.3 71.3-125 142 +-167z M100 147v40h399900v-40zM0 341v40h399900v-40z`,twoheadleftarrow:`M0 167c68 40 + 115.7 95.7 143 167h22c15.3 0 23-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69 +-70-101l-7-8h125l9 7c50.7 39.3 85 86 103 140h46c0-4.7-6.3-18.7-19-42-18-35.3 +-40-67.3-66-96l-9-9h399716v-40H284l9-9c26-28.7 48-60.7 66-96 12.7-23.333 19 +-37.333 19-42h-46c-18 54-52.3 100.7-103 140l-9 7H95l7-8c28.7-32 52-65.7 70-101 + 10.7-23.333 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 71.3 68 127 0 167z`,twoheadrightarrow:`M400000 167 +c-68-40-115.7-95.7-143-167h-22c-15.3 0-23 .3-23 1 0 1.3 5.3 13.7 16 37 18 35.3 + 41.3 69 70 101l7 8h-125l-9-7c-50.7-39.3-85-86-103-140h-46c0 4.7 6.3 18.7 19 42 + 18 35.3 40 67.3 66 96l9 9H0v40h399716l-9 9c-26 28.7-48 60.7-66 96-12.7 23.333 +-19 37.333-19 42h46c18-54 52.3-100.7 103-140l9-7h125l-7 8c-28.7 32-52 65.7-70 + 101-10.7 23.333-16 35.7-16 37 0 .7 7.7 1 23 1h22c27.3-71.3 75-127 143-167z`,tilde1:`M200 55.538c-77 0-168 73.953-177 73.953-3 0-7 +-2.175-9-5.437L2 97c-1-2-2-4-2-6 0-4 2-7 5-9l20-12C116 12 171 0 207 0c86 0 + 114 68 191 68 78 0 168-68 177-68 4 0 7 2 9 5l12 19c1 2.175 2 4.35 2 6.525 0 + 4.35-2 7.613-5 9.788l-19 13.05c-92 63.077-116.937 75.308-183 76.128 +-68.267.847-113-73.952-191-73.952z`,tilde2:`M344 55.266c-142 0-300.638 81.316-311.5 86.418 +-8.01 3.762-22.5 10.91-23.5 5.562L1 120c-1-2-1-3-1-4 0-5 3-9 8-10l18.4-9C160.9 + 31.9 283 0 358 0c148 0 188 122 331 122s314-97 326-97c4 0 8 2 10 7l7 21.114 +c1 2.14 1 3.21 1 4.28 0 5.347-3 9.626-7 10.696l-22.3 12.622C852.6 158.372 751 + 181.476 676 181.476c-149 0-189-126.21-332-126.21z`,tilde3:`M786 59C457 59 32 175.242 13 175.242c-6 0-10-3.457 +-11-10.37L.15 138c-1-7 3-12 10-13l19.2-6.4C378.4 40.7 634.3 0 804.3 0c337 0 + 411.8 157 746.8 157 328 0 754-112 773-112 5 0 10 3 11 9l1 14.075c1 8.066-.697 + 16.595-6.697 17.492l-21.052 7.31c-367.9 98.146-609.15 122.696-778.15 122.696 + -338 0-409-156.573-744-156.573z`,tilde4:`M786 58C457 58 32 177.487 13 177.487c-6 0-10-3.345 +-11-10.035L.15 143c-1-7 3-12 10-13l22-6.7C381.2 35 637.15 0 807.15 0c337 0 409 + 177 744 177 328 0 754-127 773-127 5 0 10 3 11 9l1 14.794c1 7.805-3 13.38-9 + 14.495l-20.7 5.574c-366.85 99.79-607.3 139.372-776.3 139.372-338 0-409 + -175.236-744-175.236z`,vec:`M377 20c0-5.333 1.833-10 5.5-14S391 0 397 0c4.667 0 8.667 1.667 12 5 +3.333 2.667 6.667 9 10 19 6.667 24.667 20.333 43.667 41 57 7.333 4.667 11 +10.667 11 18 0 6-1 10-3 12s-6.667 5-14 9c-28.667 14.667-53.667 35.667-75 63 +-1.333 1.333-3.167 3.5-5.5 6.5s-4 4.833-5 5.5c-1 .667-2.5 1.333-4.5 2s-4.333 1 +-7 1c-4.667 0-9.167-1.833-13.5-5.5S337 184 337 178c0-12.667 15.667-32.333 47-59 +H213l-171-1c-8.667-6-13-12.333-13-19 0-4.667 4.333-11.333 13-20h359 +c-16-25.333-24-45-24-59z`,widehat1:`M529 0h5l519 115c5 1 9 5 9 10 0 1-1 2-1 3l-4 22 +c-1 5-5 9-11 9h-2L532 67 19 159h-2c-5 0-9-4-11-9l-5-22c-1-6 2-12 8-13z`,widehat2:`M1181 0h2l1171 176c6 0 10 5 10 11l-2 23c-1 6-5 10 +-11 10h-1L1182 67 15 220h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widehat3:`M1181 0h2l1171 236c6 0 10 5 10 11l-2 23c-1 6-5 10 +-11 10h-1L1182 67 15 280h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widehat4:`M1181 0h2l1171 296c6 0 10 5 10 11l-2 23c-1 6-5 10 +-11 10h-1L1182 67 15 340h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widecheck1:`M529,159h5l519,-115c5,-1,9,-5,9,-10c0,-1,-1,-2,-1,-3l-4,-22c-1, +-5,-5,-9,-11,-9h-2l-512,92l-513,-92h-2c-5,0,-9,4,-11,9l-5,22c-1,6,2,12,8,13z`,widecheck2:`M1181,220h2l1171,-176c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10, +-11,-10h-1l-1168,153l-1167,-153h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,widecheck3:`M1181,280h2l1171,-236c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10, +-11,-10h-1l-1168,213l-1167,-213h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,widecheck4:`M1181,340h2l1171,-296c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10, +-11,-10h-1l-1168,273l-1167,-273h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,baraboveleftarrow:`M400000 620h-399890l3 -3c68.7 -52.7 113.7 -120 135 -202 +c4 -14.7 6 -23 6 -25c0 -7.3 -7 -11 -21 -11c-8 0 -13.2 0.8 -15.5 2.5 +c-2.3 1.7 -4.2 5.8 -5.5 12.5c-1.3 4.7 -2.7 10.3 -4 17c-12 48.7 -34.8 92 -68.5 130 +s-74.2 66.3 -121.5 85c-10 4 -16 7.7 -18 11c0 8.7 6 14.3 18 17c47.3 18.7 87.8 47 +121.5 85s56.5 81.3 68.5 130c0.7 2 1.3 5 2 9s1.2 6.7 1.5 8c0.3 1.3 1 3.3 2 6 +s2.2 4.5 3.5 5.5c1.3 1 3.3 1.8 6 2.5s6 1 10 1c14 0 21 -3.7 21 -11 +c0 -2 -2 -10.3 -6 -25c-20 -79.3 -65 -146.7 -135 -202l-3 -3h399890z +M100 620v40h399900v-40z M0 241v40h399900v-40zM0 241v40h399900v-40z`,rightarrowabovebar:`M0 241v40h399891c-47.3 35.3-84 78-110 128-16.7 32 +-27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20 11 8 0 +13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7 39 +-84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85-40.5 +-119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5 +-12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67 +151.7 139 205zm96 379h399894v40H0zm0 0h399904v40H0z`,baraboveshortleftharpoon:`M507,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11 +c1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17 +c2,0.7,5,1,9,1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21 +c-32,-87.3,-82.7,-157.7,-152,-211c0,0,-3,-3,-3,-3l399351,0l0,-40 +c-398570,0,-399437,0,-399437,0z M593 435 v40 H399500 v-40z +M0 281 v-40 H399908 v40z M0 281 v-40 H399908 v40z`,rightharpoonaboveshortbar:`M0,241 l0,40c399126,0,399993,0,399993,0 +c4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199, +-231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6 +c-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z +M0 241 v40 H399908 v-40z M0 475 v-40 H399500 v40z M0 475 v-40 H399500 v40z`,shortbaraboveleftharpoon:`M7,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11 +c1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17c2,0.7,5,1,9, +1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21c-32,-87.3,-82.7,-157.7, +-152,-211c0,0,-3,-3,-3,-3l399907,0l0,-40c-399126,0,-399993,0,-399993,0z +M93 435 v40 H400000 v-40z M500 241 v40 H400000 v-40z M500 241 v40 H400000 v-40z`,shortrightharpoonabovebar:`M53,241l0,40c398570,0,399437,0,399437,0 +c4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199, +-231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6 +c-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z +M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`},ya=function(e,t){switch(e){case"lbrack":return"M403 1759 V84 H666 V0 H319 V1759 v"+t+` v1759 v84 h347 v-84 +H403z M403 1759 V0 H319 V1759 v`+t+" v1759 v84 h84z";case"rbrack":return"M347 1759 V0 H0 V84 H263 V1759 v"+t+` v1759 H0 v84 H347z +M347 1759 V0 H263 V1759 v`+t+" v1759 h84z";case"vert":return"M145 15 v585 v"+t+` v585 c2.667,10,9.667,15,21,15 +c10,0,16.667,-5,20,-15 v-585 v`+-t+` v-585 c-2.667,-10,-9.667,-15,-21,-15 +c-10,0,-16.667,5,-20,15z M188 15 H145 v585 v`+t+" v585 h43z";case"doublevert":return"M145 15 v585 v"+t+` v585 c2.667,10,9.667,15,21,15 +c10,0,16.667,-5,20,-15 v-585 v`+-t+` v-585 c-2.667,-10,-9.667,-15,-21,-15 +c-10,0,-16.667,5,-20,15z M188 15 H145 v585 v`+t+` v585 h43z +M367 15 v585 v`+t+` v585 c2.667,10,9.667,15,21,15 +c10,0,16.667,-5,20,-15 v-585 v`+-t+` v-585 c-2.667,-10,-9.667,-15,-21,-15 +c-10,0,-16.667,5,-20,15z M410 15 H367 v585 v`+t+" v585 h43z";case"lfloor":return"M319 602 V0 H403 V602 v"+t+` v1715 h263 v84 H319z +MM319 602 V0 H403 V602 v`+t+" v1715 H319z";case"rfloor":return"M319 602 V0 H403 V602 v"+t+` v1799 H0 v-84 H319z +MM319 602 V0 H403 V602 v`+t+" v1715 H319z";case"lceil":return"M403 1759 V84 H666 V0 H319 V1759 v"+t+` v602 h84z +M403 1759 V0 H319 V1759 v`+t+" v602 h84z";case"rceil":return"M347 1759 V0 H0 V84 H263 V1759 v"+t+` v602 h84z +M347 1759 V0 h-84 V1759 v`+t+" v602 h84z";case"lparen":return`M863,9c0,-2,-2,-5,-6,-9c0,0,-17,0,-17,0c-12.7,0,-19.3,0.3,-20,1 +c-5.3,5.3,-10.3,11,-15,17c-242.7,294.7,-395.3,682,-458,1162c-21.3,163.3,-33.3,349, +-36,557 l0,`+(t+84)+`c0.2,6,0,26,0,60c2,159.3,10,310.7,24,454c53.3,528,210, +949.7,470,1265c4.7,6,9.7,11.7,15,17c0.7,0.7,7,1,19,1c0,0,18,0,18,0c4,-4,6,-7,6,-9 +c0,-2.7,-3.3,-8.7,-10,-18c-135.3,-192.7,-235.5,-414.3,-300.5,-665c-65,-250.7,-102.5, +-544.7,-112.5,-882c-2,-104,-3,-167,-3,-189 +l0,-`+(t+92)+`c0,-162.7,5.7,-314,17,-454c20.7,-272,63.7,-513,129,-723c65.3, +-210,155.3,-396.3,270,-559c6.7,-9.3,10,-15.3,10,-18z`;case"rparen":return`M76,0c-16.7,0,-25,3,-25,9c0,2,2,6.3,6,13c21.3,28.7,42.3,60.3, +63,95c96.7,156.7,172.8,332.5,228.5,527.5c55.7,195,92.8,416.5,111.5,664.5 +c11.3,139.3,17,290.7,17,454c0,28,1.7,43,3.3,45l0,`+(t+9)+` +c-3,4,-3.3,16.7,-3.3,38c0,162,-5.7,313.7,-17,455c-18.7,248,-55.8,469.3,-111.5,664 +c-55.7,194.7,-131.8,370.3,-228.5,527c-20.7,34.7,-41.7,66.3,-63,95c-2,3.3,-4,7,-6,11 +c0,7.3,5.7,11,17,11c0,0,11,0,11,0c9.3,0,14.3,-0.3,15,-1c5.3,-5.3,10.3,-11,15,-17 +c242.7,-294.7,395.3,-681.7,458,-1161c21.3,-164.7,33.3,-350.7,36,-558 +l0,-`+(t+144)+`c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7, +-470,-1265c-4.7,-6,-9.7,-11.7,-15,-17c-0.7,-0.7,-6.7,-1,-18,-1z`;default:throw new Error("Unknown stretchy delimiter.")}};function xa(r){return"toText"in r}var P0=class{constructor(e){this.children=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.children=e,this.classes=[],this.height=0,this.depth=0,this.maxFontSize=0,this.style={}}hasClass(e){return this.classes.includes(e)}toNode(){for(var e=document.createDocumentFragment(),t=0;t{if(xa(e))return e.toText();throw new Error("Expected MathDomNode with toText, got "+e.constructor.name)}).join("")}},wt={pt:1,mm:7227/2540,cm:7227/254,in:72.27,bp:803/800,pc:12,dd:1238/1157,cc:14856/1157,nd:685/642,nc:1370/107,sp:1/65536,px:803/800},wa={ex:!0,em:!0,mu:!0},$r=function(e){return typeof e!="string"&&(e=e.unit),e in wt||e in wa||e==="ex"},J=function(e,t){var a;if(e.unit in wt)a=wt[e.unit]/t.fontMetrics().ptPerEm/t.sizeMultiplier;else if(e.unit==="mu")a=t.fontMetrics().cssEmPerMu;else{var i;if(t.style.isTight()?i=t.havingStyle(t.style.text()):i=t,e.unit==="ex")a=i.fontMetrics().xHeight;else if(e.unit==="em")a=i.fontMetrics().quad;else throw new z("Invalid unit: '"+e.unit+"'");i!==t&&(a*=i.sizeMultiplier/t.sizeMultiplier)}return Math.min(e.number*a,t.maxSize)},A=function(e){return+e.toFixed(4)+"em"},G0=function(e){return e.filter(t=>t).join(" ")},Gt=function(e){var t="";for(var a of Object.keys(e)){var i=e[a];i!==void 0&&(t+=Z1(a)+":"+i+";")}return t},Wr=function(e,t,a){if(this.classes=e||[],this.attributes={},this.height=0,this.depth=0,this.maxFontSize=0,this.style=a||{},t){t.style.isTight()&&this.classes.push("mtight");var i=t.getColor();i&&(this.style.color=i)}},jr=function(e){var t=document.createElement(e);t.className=G0(this.classes),Object.assign(t.style,this.style);for(var a of Object.keys(this.attributes))t.setAttribute(a,this.attributes[a]);for(var i=0;i/=\x00-\x1f]/,Zr=function(e){var t="<"+e;this.classes.length&&(t+=' class="'+n0(G0(this.classes))+'"');var a=Gt(this.style);a&&(t+=' style="'+n0(a)+'"');for(var i of Object.keys(this.attributes)){if(ka.test(i))throw new z("Invalid attribute name '"+i+"'");t+=" "+i+'="'+n0(this.attributes[i])+'"'}t+=">";for(var s=0;s",t},U0=class{constructor(e,t,a,i){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.width=void 0,this.maxFontSize=void 0,this.style=void 0,this.italic=void 0,Wr.call(this,e,a,i),this.children=t||[]}setAttribute(e,t){this.attributes[e]=t}hasClass(e){return this.classes.includes(e)}toNode(){return jr.call(this,"span")}toMarkup(){return Zr.call(this,"span")}},re=class{constructor(e,t,a,i){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,Wr.call(this,t,i),this.children=a||[],this.setAttribute("href",e)}setAttribute(e,t){this.attributes[e]=t}hasClass(e){return this.classes.includes(e)}toNode(){return jr.call(this,"a")}toMarkup(){return Zr.call(this,"a")}},kt=class{constructor(e,t,a){this.src=void 0,this.alt=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.alt=t,this.src=e,this.classes=["mord"],this.height=0,this.depth=0,this.maxFontSize=0,this.style=a}hasClass(e){return this.classes.includes(e)}toNode(){var e=document.createElement("img");return e.src=this.src,e.alt=this.alt,e.className="mord",Object.assign(e.style,this.style),e}toMarkup(){var e=''+n0(this.alt)+'0&&(t=document.createElement("span"),t.style.marginRight=A(this.italic)),this.classes.length>0&&(t=t||document.createElement("span"),t.className=G0(this.classes)),Object.keys(this.style).length>0&&(t=t||document.createElement("span"),Object.assign(t.style,this.style)),t?(t.appendChild(e),t):e}toMarkup(){var e=!1,t="0&&(a+="margin-right:"+A(this.italic)+";"),a+=Gt(this.style),a&&(e=!0,t+=' style="'+n0(a)+'"');var i=n0(this.text);return e?(t+=">",t+=i,t+="",t):i}},x0=class{constructor(e,t){this.children=void 0,this.attributes=void 0,this.children=e||[],this.attributes=t||{}}toNode(){var e="http://www.w3.org/2000/svg",t=document.createElementNS(e,"svg");for(var a of Object.keys(this.attributes))t.setAttribute(a,this.attributes[a]);for(var i=0;i':''}},ve=class{constructor(e){this.attributes=void 0,this.attributes=e||{}}toNode(){var e="http://www.w3.org/2000/svg",t=document.createElementNS(e,"line");for(var a of Object.keys(this.attributes))t.setAttribute(a,this.attributes[a]);return t}toMarkup(){var e=" but got "+String(r)+".")}var Ma=r=>r instanceof U0||r instanceof re||r instanceof P0,z0={"AMS-Regular":{32:[0,0,0,0,.25],65:[0,.68889,0,0,.72222],66:[0,.68889,0,0,.66667],67:[0,.68889,0,0,.72222],68:[0,.68889,0,0,.72222],69:[0,.68889,0,0,.66667],70:[0,.68889,0,0,.61111],71:[0,.68889,0,0,.77778],72:[0,.68889,0,0,.77778],73:[0,.68889,0,0,.38889],74:[.16667,.68889,0,0,.5],75:[0,.68889,0,0,.77778],76:[0,.68889,0,0,.66667],77:[0,.68889,0,0,.94445],78:[0,.68889,0,0,.72222],79:[.16667,.68889,0,0,.77778],80:[0,.68889,0,0,.61111],81:[.16667,.68889,0,0,.77778],82:[0,.68889,0,0,.72222],83:[0,.68889,0,0,.55556],84:[0,.68889,0,0,.66667],85:[0,.68889,0,0,.72222],86:[0,.68889,0,0,.72222],87:[0,.68889,0,0,1],88:[0,.68889,0,0,.72222],89:[0,.68889,0,0,.72222],90:[0,.68889,0,0,.66667],107:[0,.68889,0,0,.55556],160:[0,0,0,0,.25],165:[0,.675,.025,0,.75],174:[.15559,.69224,0,0,.94666],240:[0,.68889,0,0,.55556],295:[0,.68889,0,0,.54028],710:[0,.825,0,0,2.33334],732:[0,.9,0,0,2.33334],770:[0,.825,0,0,2.33334],771:[0,.9,0,0,2.33334],989:[.08167,.58167,0,0,.77778],1008:[0,.43056,.04028,0,.66667],8245:[0,.54986,0,0,.275],8463:[0,.68889,0,0,.54028],8487:[0,.68889,0,0,.72222],8498:[0,.68889,0,0,.55556],8502:[0,.68889,0,0,.66667],8503:[0,.68889,0,0,.44445],8504:[0,.68889,0,0,.66667],8513:[0,.68889,0,0,.63889],8592:[-.03598,.46402,0,0,.5],8594:[-.03598,.46402,0,0,.5],8602:[-.13313,.36687,0,0,1],8603:[-.13313,.36687,0,0,1],8606:[.01354,.52239,0,0,1],8608:[.01354,.52239,0,0,1],8610:[.01354,.52239,0,0,1.11111],8611:[.01354,.52239,0,0,1.11111],8619:[0,.54986,0,0,1],8620:[0,.54986,0,0,1],8621:[-.13313,.37788,0,0,1.38889],8622:[-.13313,.36687,0,0,1],8624:[0,.69224,0,0,.5],8625:[0,.69224,0,0,.5],8630:[0,.43056,0,0,1],8631:[0,.43056,0,0,1],8634:[.08198,.58198,0,0,.77778],8635:[.08198,.58198,0,0,.77778],8638:[.19444,.69224,0,0,.41667],8639:[.19444,.69224,0,0,.41667],8642:[.19444,.69224,0,0,.41667],8643:[.19444,.69224,0,0,.41667],8644:[.1808,.675,0,0,1],8646:[.1808,.675,0,0,1],8647:[.1808,.675,0,0,1],8648:[.19444,.69224,0,0,.83334],8649:[.1808,.675,0,0,1],8650:[.19444,.69224,0,0,.83334],8651:[.01354,.52239,0,0,1],8652:[.01354,.52239,0,0,1],8653:[-.13313,.36687,0,0,1],8654:[-.13313,.36687,0,0,1],8655:[-.13313,.36687,0,0,1],8666:[.13667,.63667,0,0,1],8667:[.13667,.63667,0,0,1],8669:[-.13313,.37788,0,0,1],8672:[-.064,.437,0,0,1.334],8674:[-.064,.437,0,0,1.334],8705:[0,.825,0,0,.5],8708:[0,.68889,0,0,.55556],8709:[.08167,.58167,0,0,.77778],8717:[0,.43056,0,0,.42917],8722:[-.03598,.46402,0,0,.5],8724:[.08198,.69224,0,0,.77778],8726:[.08167,.58167,0,0,.77778],8733:[0,.69224,0,0,.77778],8736:[0,.69224,0,0,.72222],8737:[0,.69224,0,0,.72222],8738:[.03517,.52239,0,0,.72222],8739:[.08167,.58167,0,0,.22222],8740:[.25142,.74111,0,0,.27778],8741:[.08167,.58167,0,0,.38889],8742:[.25142,.74111,0,0,.5],8756:[0,.69224,0,0,.66667],8757:[0,.69224,0,0,.66667],8764:[-.13313,.36687,0,0,.77778],8765:[-.13313,.37788,0,0,.77778],8769:[-.13313,.36687,0,0,.77778],8770:[-.03625,.46375,0,0,.77778],8774:[.30274,.79383,0,0,.77778],8776:[-.01688,.48312,0,0,.77778],8778:[.08167,.58167,0,0,.77778],8782:[.06062,.54986,0,0,.77778],8783:[.06062,.54986,0,0,.77778],8785:[.08198,.58198,0,0,.77778],8786:[.08198,.58198,0,0,.77778],8787:[.08198,.58198,0,0,.77778],8790:[0,.69224,0,0,.77778],8791:[.22958,.72958,0,0,.77778],8796:[.08198,.91667,0,0,.77778],8806:[.25583,.75583,0,0,.77778],8807:[.25583,.75583,0,0,.77778],8808:[.25142,.75726,0,0,.77778],8809:[.25142,.75726,0,0,.77778],8812:[.25583,.75583,0,0,.5],8814:[.20576,.70576,0,0,.77778],8815:[.20576,.70576,0,0,.77778],8816:[.30274,.79383,0,0,.77778],8817:[.30274,.79383,0,0,.77778],8818:[.22958,.72958,0,0,.77778],8819:[.22958,.72958,0,0,.77778],8822:[.1808,.675,0,0,.77778],8823:[.1808,.675,0,0,.77778],8828:[.13667,.63667,0,0,.77778],8829:[.13667,.63667,0,0,.77778],8830:[.22958,.72958,0,0,.77778],8831:[.22958,.72958,0,0,.77778],8832:[.20576,.70576,0,0,.77778],8833:[.20576,.70576,0,0,.77778],8840:[.30274,.79383,0,0,.77778],8841:[.30274,.79383,0,0,.77778],8842:[.13597,.63597,0,0,.77778],8843:[.13597,.63597,0,0,.77778],8847:[.03517,.54986,0,0,.77778],8848:[.03517,.54986,0,0,.77778],8858:[.08198,.58198,0,0,.77778],8859:[.08198,.58198,0,0,.77778],8861:[.08198,.58198,0,0,.77778],8862:[0,.675,0,0,.77778],8863:[0,.675,0,0,.77778],8864:[0,.675,0,0,.77778],8865:[0,.675,0,0,.77778],8872:[0,.69224,0,0,.61111],8873:[0,.69224,0,0,.72222],8874:[0,.69224,0,0,.88889],8876:[0,.68889,0,0,.61111],8877:[0,.68889,0,0,.61111],8878:[0,.68889,0,0,.72222],8879:[0,.68889,0,0,.72222],8882:[.03517,.54986,0,0,.77778],8883:[.03517,.54986,0,0,.77778],8884:[.13667,.63667,0,0,.77778],8885:[.13667,.63667,0,0,.77778],8888:[0,.54986,0,0,1.11111],8890:[.19444,.43056,0,0,.55556],8891:[.19444,.69224,0,0,.61111],8892:[.19444,.69224,0,0,.61111],8901:[0,.54986,0,0,.27778],8903:[.08167,.58167,0,0,.77778],8905:[.08167,.58167,0,0,.77778],8906:[.08167,.58167,0,0,.77778],8907:[0,.69224,0,0,.77778],8908:[0,.69224,0,0,.77778],8909:[-.03598,.46402,0,0,.77778],8910:[0,.54986,0,0,.76042],8911:[0,.54986,0,0,.76042],8912:[.03517,.54986,0,0,.77778],8913:[.03517,.54986,0,0,.77778],8914:[0,.54986,0,0,.66667],8915:[0,.54986,0,0,.66667],8916:[0,.69224,0,0,.66667],8918:[.0391,.5391,0,0,.77778],8919:[.0391,.5391,0,0,.77778],8920:[.03517,.54986,0,0,1.33334],8921:[.03517,.54986,0,0,1.33334],8922:[.38569,.88569,0,0,.77778],8923:[.38569,.88569,0,0,.77778],8926:[.13667,.63667,0,0,.77778],8927:[.13667,.63667,0,0,.77778],8928:[.30274,.79383,0,0,.77778],8929:[.30274,.79383,0,0,.77778],8934:[.23222,.74111,0,0,.77778],8935:[.23222,.74111,0,0,.77778],8936:[.23222,.74111,0,0,.77778],8937:[.23222,.74111,0,0,.77778],8938:[.20576,.70576,0,0,.77778],8939:[.20576,.70576,0,0,.77778],8940:[.30274,.79383,0,0,.77778],8941:[.30274,.79383,0,0,.77778],8994:[.19444,.69224,0,0,.77778],8995:[.19444,.69224,0,0,.77778],9416:[.15559,.69224,0,0,.90222],9484:[0,.69224,0,0,.5],9488:[0,.69224,0,0,.5],9492:[0,.37788,0,0,.5],9496:[0,.37788,0,0,.5],9585:[.19444,.68889,0,0,.88889],9586:[.19444,.74111,0,0,.88889],9632:[0,.675,0,0,.77778],9633:[0,.675,0,0,.77778],9650:[0,.54986,0,0,.72222],9651:[0,.54986,0,0,.72222],9654:[.03517,.54986,0,0,.77778],9660:[0,.54986,0,0,.72222],9661:[0,.54986,0,0,.72222],9664:[.03517,.54986,0,0,.77778],9674:[.11111,.69224,0,0,.66667],9733:[.19444,.69224,0,0,.94445],10003:[0,.69224,0,0,.83334],10016:[0,.69224,0,0,.83334],10731:[.11111,.69224,0,0,.66667],10846:[.19444,.75583,0,0,.61111],10877:[.13667,.63667,0,0,.77778],10878:[.13667,.63667,0,0,.77778],10885:[.25583,.75583,0,0,.77778],10886:[.25583,.75583,0,0,.77778],10887:[.13597,.63597,0,0,.77778],10888:[.13597,.63597,0,0,.77778],10889:[.26167,.75726,0,0,.77778],10890:[.26167,.75726,0,0,.77778],10891:[.48256,.98256,0,0,.77778],10892:[.48256,.98256,0,0,.77778],10901:[.13667,.63667,0,0,.77778],10902:[.13667,.63667,0,0,.77778],10933:[.25142,.75726,0,0,.77778],10934:[.25142,.75726,0,0,.77778],10935:[.26167,.75726,0,0,.77778],10936:[.26167,.75726,0,0,.77778],10937:[.26167,.75726,0,0,.77778],10938:[.26167,.75726,0,0,.77778],10949:[.25583,.75583,0,0,.77778],10950:[.25583,.75583,0,0,.77778],10955:[.28481,.79383,0,0,.77778],10956:[.28481,.79383,0,0,.77778],57350:[.08167,.58167,0,0,.22222],57351:[.08167,.58167,0,0,.38889],57352:[.08167,.58167,0,0,.77778],57353:[0,.43056,.04028,0,.66667],57356:[.25142,.75726,0,0,.77778],57357:[.25142,.75726,0,0,.77778],57358:[.41951,.91951,0,0,.77778],57359:[.30274,.79383,0,0,.77778],57360:[.30274,.79383,0,0,.77778],57361:[.41951,.91951,0,0,.77778],57366:[.25142,.75726,0,0,.77778],57367:[.25142,.75726,0,0,.77778],57368:[.25142,.75726,0,0,.77778],57369:[.25142,.75726,0,0,.77778],57370:[.13597,.63597,0,0,.77778],57371:[.13597,.63597,0,0,.77778]},"Caligraphic-Regular":{32:[0,0,0,0,.25],65:[0,.68333,0,.19445,.79847],66:[0,.68333,.03041,.13889,.65681],67:[0,.68333,.05834,.13889,.52653],68:[0,.68333,.02778,.08334,.77139],69:[0,.68333,.08944,.11111,.52778],70:[0,.68333,.09931,.11111,.71875],71:[.09722,.68333,.0593,.11111,.59487],72:[0,.68333,.00965,.11111,.84452],73:[0,.68333,.07382,0,.54452],74:[.09722,.68333,.18472,.16667,.67778],75:[0,.68333,.01445,.05556,.76195],76:[0,.68333,0,.13889,.68972],77:[0,.68333,0,.13889,1.2009],78:[0,.68333,.14736,.08334,.82049],79:[0,.68333,.02778,.11111,.79611],80:[0,.68333,.08222,.08334,.69556],81:[.09722,.68333,0,.11111,.81667],82:[0,.68333,0,.08334,.8475],83:[0,.68333,.075,.13889,.60556],84:[0,.68333,.25417,0,.54464],85:[0,.68333,.09931,.08334,.62583],86:[0,.68333,.08222,0,.61278],87:[0,.68333,.08222,.08334,.98778],88:[0,.68333,.14643,.13889,.7133],89:[.09722,.68333,.08222,.08334,.66834],90:[0,.68333,.07944,.13889,.72473],160:[0,0,0,0,.25]},"Fraktur-Regular":{32:[0,0,0,0,.25],33:[0,.69141,0,0,.29574],34:[0,.69141,0,0,.21471],38:[0,.69141,0,0,.73786],39:[0,.69141,0,0,.21201],40:[.24982,.74947,0,0,.38865],41:[.24982,.74947,0,0,.38865],42:[0,.62119,0,0,.27764],43:[.08319,.58283,0,0,.75623],44:[0,.10803,0,0,.27764],45:[.08319,.58283,0,0,.75623],46:[0,.10803,0,0,.27764],47:[.24982,.74947,0,0,.50181],48:[0,.47534,0,0,.50181],49:[0,.47534,0,0,.50181],50:[0,.47534,0,0,.50181],51:[.18906,.47534,0,0,.50181],52:[.18906,.47534,0,0,.50181],53:[.18906,.47534,0,0,.50181],54:[0,.69141,0,0,.50181],55:[.18906,.47534,0,0,.50181],56:[0,.69141,0,0,.50181],57:[.18906,.47534,0,0,.50181],58:[0,.47534,0,0,.21606],59:[.12604,.47534,0,0,.21606],61:[-.13099,.36866,0,0,.75623],63:[0,.69141,0,0,.36245],65:[0,.69141,0,0,.7176],66:[0,.69141,0,0,.88397],67:[0,.69141,0,0,.61254],68:[0,.69141,0,0,.83158],69:[0,.69141,0,0,.66278],70:[.12604,.69141,0,0,.61119],71:[0,.69141,0,0,.78539],72:[.06302,.69141,0,0,.7203],73:[0,.69141,0,0,.55448],74:[.12604,.69141,0,0,.55231],75:[0,.69141,0,0,.66845],76:[0,.69141,0,0,.66602],77:[0,.69141,0,0,1.04953],78:[0,.69141,0,0,.83212],79:[0,.69141,0,0,.82699],80:[.18906,.69141,0,0,.82753],81:[.03781,.69141,0,0,.82699],82:[0,.69141,0,0,.82807],83:[0,.69141,0,0,.82861],84:[0,.69141,0,0,.66899],85:[0,.69141,0,0,.64576],86:[0,.69141,0,0,.83131],87:[0,.69141,0,0,1.04602],88:[0,.69141,0,0,.71922],89:[.18906,.69141,0,0,.83293],90:[.12604,.69141,0,0,.60201],91:[.24982,.74947,0,0,.27764],93:[.24982,.74947,0,0,.27764],94:[0,.69141,0,0,.49965],97:[0,.47534,0,0,.50046],98:[0,.69141,0,0,.51315],99:[0,.47534,0,0,.38946],100:[0,.62119,0,0,.49857],101:[0,.47534,0,0,.40053],102:[.18906,.69141,0,0,.32626],103:[.18906,.47534,0,0,.5037],104:[.18906,.69141,0,0,.52126],105:[0,.69141,0,0,.27899],106:[0,.69141,0,0,.28088],107:[0,.69141,0,0,.38946],108:[0,.69141,0,0,.27953],109:[0,.47534,0,0,.76676],110:[0,.47534,0,0,.52666],111:[0,.47534,0,0,.48885],112:[.18906,.52396,0,0,.50046],113:[.18906,.47534,0,0,.48912],114:[0,.47534,0,0,.38919],115:[0,.47534,0,0,.44266],116:[0,.62119,0,0,.33301],117:[0,.47534,0,0,.5172],118:[0,.52396,0,0,.5118],119:[0,.52396,0,0,.77351],120:[.18906,.47534,0,0,.38865],121:[.18906,.47534,0,0,.49884],122:[.18906,.47534,0,0,.39054],160:[0,0,0,0,.25],8216:[0,.69141,0,0,.21471],8217:[0,.69141,0,0,.21471],58112:[0,.62119,0,0,.49749],58113:[0,.62119,0,0,.4983],58114:[.18906,.69141,0,0,.33328],58115:[.18906,.69141,0,0,.32923],58116:[.18906,.47534,0,0,.50343],58117:[0,.69141,0,0,.33301],58118:[0,.62119,0,0,.33409],58119:[0,.47534,0,0,.50073]},"Main-Bold":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.35],34:[0,.69444,0,0,.60278],35:[.19444,.69444,0,0,.95833],36:[.05556,.75,0,0,.575],37:[.05556,.75,0,0,.95833],38:[0,.69444,0,0,.89444],39:[0,.69444,0,0,.31944],40:[.25,.75,0,0,.44722],41:[.25,.75,0,0,.44722],42:[0,.75,0,0,.575],43:[.13333,.63333,0,0,.89444],44:[.19444,.15556,0,0,.31944],45:[0,.44444,0,0,.38333],46:[0,.15556,0,0,.31944],47:[.25,.75,0,0,.575],48:[0,.64444,0,0,.575],49:[0,.64444,0,0,.575],50:[0,.64444,0,0,.575],51:[0,.64444,0,0,.575],52:[0,.64444,0,0,.575],53:[0,.64444,0,0,.575],54:[0,.64444,0,0,.575],55:[0,.64444,0,0,.575],56:[0,.64444,0,0,.575],57:[0,.64444,0,0,.575],58:[0,.44444,0,0,.31944],59:[.19444,.44444,0,0,.31944],60:[.08556,.58556,0,0,.89444],61:[-.10889,.39111,0,0,.89444],62:[.08556,.58556,0,0,.89444],63:[0,.69444,0,0,.54305],64:[0,.69444,0,0,.89444],65:[0,.68611,0,0,.86944],66:[0,.68611,0,0,.81805],67:[0,.68611,0,0,.83055],68:[0,.68611,0,0,.88194],69:[0,.68611,0,0,.75555],70:[0,.68611,0,0,.72361],71:[0,.68611,0,0,.90416],72:[0,.68611,0,0,.9],73:[0,.68611,0,0,.43611],74:[0,.68611,0,0,.59444],75:[0,.68611,0,0,.90138],76:[0,.68611,0,0,.69166],77:[0,.68611,0,0,1.09166],78:[0,.68611,0,0,.9],79:[0,.68611,0,0,.86388],80:[0,.68611,0,0,.78611],81:[.19444,.68611,0,0,.86388],82:[0,.68611,0,0,.8625],83:[0,.68611,0,0,.63889],84:[0,.68611,0,0,.8],85:[0,.68611,0,0,.88472],86:[0,.68611,.01597,0,.86944],87:[0,.68611,.01597,0,1.18888],88:[0,.68611,0,0,.86944],89:[0,.68611,.02875,0,.86944],90:[0,.68611,0,0,.70277],91:[.25,.75,0,0,.31944],92:[.25,.75,0,0,.575],93:[.25,.75,0,0,.31944],94:[0,.69444,0,0,.575],95:[.31,.13444,.03194,0,.575],97:[0,.44444,0,0,.55902],98:[0,.69444,0,0,.63889],99:[0,.44444,0,0,.51111],100:[0,.69444,0,0,.63889],101:[0,.44444,0,0,.52708],102:[0,.69444,.10903,0,.35139],103:[.19444,.44444,.01597,0,.575],104:[0,.69444,0,0,.63889],105:[0,.69444,0,0,.31944],106:[.19444,.69444,0,0,.35139],107:[0,.69444,0,0,.60694],108:[0,.69444,0,0,.31944],109:[0,.44444,0,0,.95833],110:[0,.44444,0,0,.63889],111:[0,.44444,0,0,.575],112:[.19444,.44444,0,0,.63889],113:[.19444,.44444,0,0,.60694],114:[0,.44444,0,0,.47361],115:[0,.44444,0,0,.45361],116:[0,.63492,0,0,.44722],117:[0,.44444,0,0,.63889],118:[0,.44444,.01597,0,.60694],119:[0,.44444,.01597,0,.83055],120:[0,.44444,0,0,.60694],121:[.19444,.44444,.01597,0,.60694],122:[0,.44444,0,0,.51111],123:[.25,.75,0,0,.575],124:[.25,.75,0,0,.31944],125:[.25,.75,0,0,.575],126:[.35,.34444,0,0,.575],160:[0,0,0,0,.25],163:[0,.69444,0,0,.86853],168:[0,.69444,0,0,.575],172:[0,.44444,0,0,.76666],176:[0,.69444,0,0,.86944],177:[.13333,.63333,0,0,.89444],184:[.17014,0,0,0,.51111],198:[0,.68611,0,0,1.04166],215:[.13333,.63333,0,0,.89444],216:[.04861,.73472,0,0,.89444],223:[0,.69444,0,0,.59722],230:[0,.44444,0,0,.83055],247:[.13333,.63333,0,0,.89444],248:[.09722,.54167,0,0,.575],305:[0,.44444,0,0,.31944],338:[0,.68611,0,0,1.16944],339:[0,.44444,0,0,.89444],567:[.19444,.44444,0,0,.35139],710:[0,.69444,0,0,.575],711:[0,.63194,0,0,.575],713:[0,.59611,0,0,.575],714:[0,.69444,0,0,.575],715:[0,.69444,0,0,.575],728:[0,.69444,0,0,.575],729:[0,.69444,0,0,.31944],730:[0,.69444,0,0,.86944],732:[0,.69444,0,0,.575],733:[0,.69444,0,0,.575],915:[0,.68611,0,0,.69166],916:[0,.68611,0,0,.95833],920:[0,.68611,0,0,.89444],923:[0,.68611,0,0,.80555],926:[0,.68611,0,0,.76666],928:[0,.68611,0,0,.9],931:[0,.68611,0,0,.83055],933:[0,.68611,0,0,.89444],934:[0,.68611,0,0,.83055],936:[0,.68611,0,0,.89444],937:[0,.68611,0,0,.83055],8211:[0,.44444,.03194,0,.575],8212:[0,.44444,.03194,0,1.14999],8216:[0,.69444,0,0,.31944],8217:[0,.69444,0,0,.31944],8220:[0,.69444,0,0,.60278],8221:[0,.69444,0,0,.60278],8224:[.19444,.69444,0,0,.51111],8225:[.19444,.69444,0,0,.51111],8242:[0,.55556,0,0,.34444],8407:[0,.72444,.15486,0,.575],8463:[0,.69444,0,0,.66759],8465:[0,.69444,0,0,.83055],8467:[0,.69444,0,0,.47361],8472:[.19444,.44444,0,0,.74027],8476:[0,.69444,0,0,.83055],8501:[0,.69444,0,0,.70277],8592:[-.10889,.39111,0,0,1.14999],8593:[.19444,.69444,0,0,.575],8594:[-.10889,.39111,0,0,1.14999],8595:[.19444,.69444,0,0,.575],8596:[-.10889,.39111,0,0,1.14999],8597:[.25,.75,0,0,.575],8598:[.19444,.69444,0,0,1.14999],8599:[.19444,.69444,0,0,1.14999],8600:[.19444,.69444,0,0,1.14999],8601:[.19444,.69444,0,0,1.14999],8636:[-.10889,.39111,0,0,1.14999],8637:[-.10889,.39111,0,0,1.14999],8640:[-.10889,.39111,0,0,1.14999],8641:[-.10889,.39111,0,0,1.14999],8656:[-.10889,.39111,0,0,1.14999],8657:[.19444,.69444,0,0,.70277],8658:[-.10889,.39111,0,0,1.14999],8659:[.19444,.69444,0,0,.70277],8660:[-.10889,.39111,0,0,1.14999],8661:[.25,.75,0,0,.70277],8704:[0,.69444,0,0,.63889],8706:[0,.69444,.06389,0,.62847],8707:[0,.69444,0,0,.63889],8709:[.05556,.75,0,0,.575],8711:[0,.68611,0,0,.95833],8712:[.08556,.58556,0,0,.76666],8715:[.08556,.58556,0,0,.76666],8722:[.13333,.63333,0,0,.89444],8723:[.13333,.63333,0,0,.89444],8725:[.25,.75,0,0,.575],8726:[.25,.75,0,0,.575],8727:[-.02778,.47222,0,0,.575],8728:[-.02639,.47361,0,0,.575],8729:[-.02639,.47361,0,0,.575],8730:[.18,.82,0,0,.95833],8733:[0,.44444,0,0,.89444],8734:[0,.44444,0,0,1.14999],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.31944],8741:[.25,.75,0,0,.575],8743:[0,.55556,0,0,.76666],8744:[0,.55556,0,0,.76666],8745:[0,.55556,0,0,.76666],8746:[0,.55556,0,0,.76666],8747:[.19444,.69444,.12778,0,.56875],8764:[-.10889,.39111,0,0,.89444],8768:[.19444,.69444,0,0,.31944],8771:[.00222,.50222,0,0,.89444],8773:[.027,.638,0,0,.894],8776:[.02444,.52444,0,0,.89444],8781:[.00222,.50222,0,0,.89444],8801:[.00222,.50222,0,0,.89444],8804:[.19667,.69667,0,0,.89444],8805:[.19667,.69667,0,0,.89444],8810:[.08556,.58556,0,0,1.14999],8811:[.08556,.58556,0,0,1.14999],8826:[.08556,.58556,0,0,.89444],8827:[.08556,.58556,0,0,.89444],8834:[.08556,.58556,0,0,.89444],8835:[.08556,.58556,0,0,.89444],8838:[.19667,.69667,0,0,.89444],8839:[.19667,.69667,0,0,.89444],8846:[0,.55556,0,0,.76666],8849:[.19667,.69667,0,0,.89444],8850:[.19667,.69667,0,0,.89444],8851:[0,.55556,0,0,.76666],8852:[0,.55556,0,0,.76666],8853:[.13333,.63333,0,0,.89444],8854:[.13333,.63333,0,0,.89444],8855:[.13333,.63333,0,0,.89444],8856:[.13333,.63333,0,0,.89444],8857:[.13333,.63333,0,0,.89444],8866:[0,.69444,0,0,.70277],8867:[0,.69444,0,0,.70277],8868:[0,.69444,0,0,.89444],8869:[0,.69444,0,0,.89444],8900:[-.02639,.47361,0,0,.575],8901:[-.02639,.47361,0,0,.31944],8902:[-.02778,.47222,0,0,.575],8968:[.25,.75,0,0,.51111],8969:[.25,.75,0,0,.51111],8970:[.25,.75,0,0,.51111],8971:[.25,.75,0,0,.51111],8994:[-.13889,.36111,0,0,1.14999],8995:[-.13889,.36111,0,0,1.14999],9651:[.19444,.69444,0,0,1.02222],9657:[-.02778,.47222,0,0,.575],9661:[.19444,.69444,0,0,1.02222],9667:[-.02778,.47222,0,0,.575],9711:[.19444,.69444,0,0,1.14999],9824:[.12963,.69444,0,0,.89444],9825:[.12963,.69444,0,0,.89444],9826:[.12963,.69444,0,0,.89444],9827:[.12963,.69444,0,0,.89444],9837:[0,.75,0,0,.44722],9838:[.19444,.69444,0,0,.44722],9839:[.19444,.69444,0,0,.44722],10216:[.25,.75,0,0,.44722],10217:[.25,.75,0,0,.44722],10815:[0,.68611,0,0,.9],10927:[.19667,.69667,0,0,.89444],10928:[.19667,.69667,0,0,.89444],57376:[.19444,.69444,0,0,0]},"Main-BoldItalic":{32:[0,0,0,0,.25],33:[0,.69444,.11417,0,.38611],34:[0,.69444,.07939,0,.62055],35:[.19444,.69444,.06833,0,.94444],37:[.05556,.75,.12861,0,.94444],38:[0,.69444,.08528,0,.88555],39:[0,.69444,.12945,0,.35555],40:[.25,.75,.15806,0,.47333],41:[.25,.75,.03306,0,.47333],42:[0,.75,.14333,0,.59111],43:[.10333,.60333,.03306,0,.88555],44:[.19444,.14722,0,0,.35555],45:[0,.44444,.02611,0,.41444],46:[0,.14722,0,0,.35555],47:[.25,.75,.15806,0,.59111],48:[0,.64444,.13167,0,.59111],49:[0,.64444,.13167,0,.59111],50:[0,.64444,.13167,0,.59111],51:[0,.64444,.13167,0,.59111],52:[.19444,.64444,.13167,0,.59111],53:[0,.64444,.13167,0,.59111],54:[0,.64444,.13167,0,.59111],55:[.19444,.64444,.13167,0,.59111],56:[0,.64444,.13167,0,.59111],57:[0,.64444,.13167,0,.59111],58:[0,.44444,.06695,0,.35555],59:[.19444,.44444,.06695,0,.35555],61:[-.10889,.39111,.06833,0,.88555],63:[0,.69444,.11472,0,.59111],64:[0,.69444,.09208,0,.88555],65:[0,.68611,0,0,.86555],66:[0,.68611,.0992,0,.81666],67:[0,.68611,.14208,0,.82666],68:[0,.68611,.09062,0,.87555],69:[0,.68611,.11431,0,.75666],70:[0,.68611,.12903,0,.72722],71:[0,.68611,.07347,0,.89527],72:[0,.68611,.17208,0,.8961],73:[0,.68611,.15681,0,.47166],74:[0,.68611,.145,0,.61055],75:[0,.68611,.14208,0,.89499],76:[0,.68611,0,0,.69777],77:[0,.68611,.17208,0,1.07277],78:[0,.68611,.17208,0,.8961],79:[0,.68611,.09062,0,.85499],80:[0,.68611,.0992,0,.78721],81:[.19444,.68611,.09062,0,.85499],82:[0,.68611,.02559,0,.85944],83:[0,.68611,.11264,0,.64999],84:[0,.68611,.12903,0,.7961],85:[0,.68611,.17208,0,.88083],86:[0,.68611,.18625,0,.86555],87:[0,.68611,.18625,0,1.15999],88:[0,.68611,.15681,0,.86555],89:[0,.68611,.19803,0,.86555],90:[0,.68611,.14208,0,.70888],91:[.25,.75,.1875,0,.35611],93:[.25,.75,.09972,0,.35611],94:[0,.69444,.06709,0,.59111],95:[.31,.13444,.09811,0,.59111],97:[0,.44444,.09426,0,.59111],98:[0,.69444,.07861,0,.53222],99:[0,.44444,.05222,0,.53222],100:[0,.69444,.10861,0,.59111],101:[0,.44444,.085,0,.53222],102:[.19444,.69444,.21778,0,.4],103:[.19444,.44444,.105,0,.53222],104:[0,.69444,.09426,0,.59111],105:[0,.69326,.11387,0,.35555],106:[.19444,.69326,.1672,0,.35555],107:[0,.69444,.11111,0,.53222],108:[0,.69444,.10861,0,.29666],109:[0,.44444,.09426,0,.94444],110:[0,.44444,.09426,0,.64999],111:[0,.44444,.07861,0,.59111],112:[.19444,.44444,.07861,0,.59111],113:[.19444,.44444,.105,0,.53222],114:[0,.44444,.11111,0,.50167],115:[0,.44444,.08167,0,.48694],116:[0,.63492,.09639,0,.385],117:[0,.44444,.09426,0,.62055],118:[0,.44444,.11111,0,.53222],119:[0,.44444,.11111,0,.76777],120:[0,.44444,.12583,0,.56055],121:[.19444,.44444,.105,0,.56166],122:[0,.44444,.13889,0,.49055],126:[.35,.34444,.11472,0,.59111],160:[0,0,0,0,.25],168:[0,.69444,.11473,0,.59111],176:[0,.69444,0,0,.94888],184:[.17014,0,0,0,.53222],198:[0,.68611,.11431,0,1.02277],216:[.04861,.73472,.09062,0,.88555],223:[.19444,.69444,.09736,0,.665],230:[0,.44444,.085,0,.82666],248:[.09722,.54167,.09458,0,.59111],305:[0,.44444,.09426,0,.35555],338:[0,.68611,.11431,0,1.14054],339:[0,.44444,.085,0,.82666],567:[.19444,.44444,.04611,0,.385],710:[0,.69444,.06709,0,.59111],711:[0,.63194,.08271,0,.59111],713:[0,.59444,.10444,0,.59111],714:[0,.69444,.08528,0,.59111],715:[0,.69444,0,0,.59111],728:[0,.69444,.10333,0,.59111],729:[0,.69444,.12945,0,.35555],730:[0,.69444,0,0,.94888],732:[0,.69444,.11472,0,.59111],733:[0,.69444,.11472,0,.59111],915:[0,.68611,.12903,0,.69777],916:[0,.68611,0,0,.94444],920:[0,.68611,.09062,0,.88555],923:[0,.68611,0,0,.80666],926:[0,.68611,.15092,0,.76777],928:[0,.68611,.17208,0,.8961],931:[0,.68611,.11431,0,.82666],933:[0,.68611,.10778,0,.88555],934:[0,.68611,.05632,0,.82666],936:[0,.68611,.10778,0,.88555],937:[0,.68611,.0992,0,.82666],8211:[0,.44444,.09811,0,.59111],8212:[0,.44444,.09811,0,1.18221],8216:[0,.69444,.12945,0,.35555],8217:[0,.69444,.12945,0,.35555],8220:[0,.69444,.16772,0,.62055],8221:[0,.69444,.07939,0,.62055]},"Main-Italic":{32:[0,0,0,0,.25],33:[0,.69444,.12417,0,.30667],34:[0,.69444,.06961,0,.51444],35:[.19444,.69444,.06616,0,.81777],37:[.05556,.75,.13639,0,.81777],38:[0,.69444,.09694,0,.76666],39:[0,.69444,.12417,0,.30667],40:[.25,.75,.16194,0,.40889],41:[.25,.75,.03694,0,.40889],42:[0,.75,.14917,0,.51111],43:[.05667,.56167,.03694,0,.76666],44:[.19444,.10556,0,0,.30667],45:[0,.43056,.02826,0,.35778],46:[0,.10556,0,0,.30667],47:[.25,.75,.16194,0,.51111],48:[0,.64444,.13556,0,.51111],49:[0,.64444,.13556,0,.51111],50:[0,.64444,.13556,0,.51111],51:[0,.64444,.13556,0,.51111],52:[.19444,.64444,.13556,0,.51111],53:[0,.64444,.13556,0,.51111],54:[0,.64444,.13556,0,.51111],55:[.19444,.64444,.13556,0,.51111],56:[0,.64444,.13556,0,.51111],57:[0,.64444,.13556,0,.51111],58:[0,.43056,.0582,0,.30667],59:[.19444,.43056,.0582,0,.30667],61:[-.13313,.36687,.06616,0,.76666],63:[0,.69444,.1225,0,.51111],64:[0,.69444,.09597,0,.76666],65:[0,.68333,0,0,.74333],66:[0,.68333,.10257,0,.70389],67:[0,.68333,.14528,0,.71555],68:[0,.68333,.09403,0,.755],69:[0,.68333,.12028,0,.67833],70:[0,.68333,.13305,0,.65277],71:[0,.68333,.08722,0,.77361],72:[0,.68333,.16389,0,.74333],73:[0,.68333,.15806,0,.38555],74:[0,.68333,.14028,0,.525],75:[0,.68333,.14528,0,.76888],76:[0,.68333,0,0,.62722],77:[0,.68333,.16389,0,.89666],78:[0,.68333,.16389,0,.74333],79:[0,.68333,.09403,0,.76666],80:[0,.68333,.10257,0,.67833],81:[.19444,.68333,.09403,0,.76666],82:[0,.68333,.03868,0,.72944],83:[0,.68333,.11972,0,.56222],84:[0,.68333,.13305,0,.71555],85:[0,.68333,.16389,0,.74333],86:[0,.68333,.18361,0,.74333],87:[0,.68333,.18361,0,.99888],88:[0,.68333,.15806,0,.74333],89:[0,.68333,.19383,0,.74333],90:[0,.68333,.14528,0,.61333],91:[.25,.75,.1875,0,.30667],93:[.25,.75,.10528,0,.30667],94:[0,.69444,.06646,0,.51111],95:[.31,.12056,.09208,0,.51111],97:[0,.43056,.07671,0,.51111],98:[0,.69444,.06312,0,.46],99:[0,.43056,.05653,0,.46],100:[0,.69444,.10333,0,.51111],101:[0,.43056,.07514,0,.46],102:[.19444,.69444,.21194,0,.30667],103:[.19444,.43056,.08847,0,.46],104:[0,.69444,.07671,0,.51111],105:[0,.65536,.1019,0,.30667],106:[.19444,.65536,.14467,0,.30667],107:[0,.69444,.10764,0,.46],108:[0,.69444,.10333,0,.25555],109:[0,.43056,.07671,0,.81777],110:[0,.43056,.07671,0,.56222],111:[0,.43056,.06312,0,.51111],112:[.19444,.43056,.06312,0,.51111],113:[.19444,.43056,.08847,0,.46],114:[0,.43056,.10764,0,.42166],115:[0,.43056,.08208,0,.40889],116:[0,.61508,.09486,0,.33222],117:[0,.43056,.07671,0,.53666],118:[0,.43056,.10764,0,.46],119:[0,.43056,.10764,0,.66444],120:[0,.43056,.12042,0,.46389],121:[.19444,.43056,.08847,0,.48555],122:[0,.43056,.12292,0,.40889],126:[.35,.31786,.11585,0,.51111],160:[0,0,0,0,.25],168:[0,.66786,.10474,0,.51111],176:[0,.69444,0,0,.83129],184:[.17014,0,0,0,.46],198:[0,.68333,.12028,0,.88277],216:[.04861,.73194,.09403,0,.76666],223:[.19444,.69444,.10514,0,.53666],230:[0,.43056,.07514,0,.71555],248:[.09722,.52778,.09194,0,.51111],338:[0,.68333,.12028,0,.98499],339:[0,.43056,.07514,0,.71555],710:[0,.69444,.06646,0,.51111],711:[0,.62847,.08295,0,.51111],713:[0,.56167,.10333,0,.51111],714:[0,.69444,.09694,0,.51111],715:[0,.69444,0,0,.51111],728:[0,.69444,.10806,0,.51111],729:[0,.66786,.11752,0,.30667],730:[0,.69444,0,0,.83129],732:[0,.66786,.11585,0,.51111],733:[0,.69444,.1225,0,.51111],915:[0,.68333,.13305,0,.62722],916:[0,.68333,0,0,.81777],920:[0,.68333,.09403,0,.76666],923:[0,.68333,0,0,.69222],926:[0,.68333,.15294,0,.66444],928:[0,.68333,.16389,0,.74333],931:[0,.68333,.12028,0,.71555],933:[0,.68333,.11111,0,.76666],934:[0,.68333,.05986,0,.71555],936:[0,.68333,.11111,0,.76666],937:[0,.68333,.10257,0,.71555],8211:[0,.43056,.09208,0,.51111],8212:[0,.43056,.09208,0,1.02222],8216:[0,.69444,.12417,0,.30667],8217:[0,.69444,.12417,0,.30667],8220:[0,.69444,.1685,0,.51444],8221:[0,.69444,.06961,0,.51444],8463:[0,.68889,0,0,.54028]},"Main-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.27778],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.77778],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.19444,.10556,0,0,.27778],45:[0,.43056,0,0,.33333],46:[0,.10556,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.64444,0,0,.5],49:[0,.64444,0,0,.5],50:[0,.64444,0,0,.5],51:[0,.64444,0,0,.5],52:[0,.64444,0,0,.5],53:[0,.64444,0,0,.5],54:[0,.64444,0,0,.5],55:[0,.64444,0,0,.5],56:[0,.64444,0,0,.5],57:[0,.64444,0,0,.5],58:[0,.43056,0,0,.27778],59:[.19444,.43056,0,0,.27778],60:[.0391,.5391,0,0,.77778],61:[-.13313,.36687,0,0,.77778],62:[.0391,.5391,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.77778],65:[0,.68333,0,0,.75],66:[0,.68333,0,0,.70834],67:[0,.68333,0,0,.72222],68:[0,.68333,0,0,.76389],69:[0,.68333,0,0,.68056],70:[0,.68333,0,0,.65278],71:[0,.68333,0,0,.78472],72:[0,.68333,0,0,.75],73:[0,.68333,0,0,.36111],74:[0,.68333,0,0,.51389],75:[0,.68333,0,0,.77778],76:[0,.68333,0,0,.625],77:[0,.68333,0,0,.91667],78:[0,.68333,0,0,.75],79:[0,.68333,0,0,.77778],80:[0,.68333,0,0,.68056],81:[.19444,.68333,0,0,.77778],82:[0,.68333,0,0,.73611],83:[0,.68333,0,0,.55556],84:[0,.68333,0,0,.72222],85:[0,.68333,0,0,.75],86:[0,.68333,.01389,0,.75],87:[0,.68333,.01389,0,1.02778],88:[0,.68333,0,0,.75],89:[0,.68333,.025,0,.75],90:[0,.68333,0,0,.61111],91:[.25,.75,0,0,.27778],92:[.25,.75,0,0,.5],93:[.25,.75,0,0,.27778],94:[0,.69444,0,0,.5],95:[.31,.12056,.02778,0,.5],97:[0,.43056,0,0,.5],98:[0,.69444,0,0,.55556],99:[0,.43056,0,0,.44445],100:[0,.69444,0,0,.55556],101:[0,.43056,0,0,.44445],102:[0,.69444,.07778,0,.30556],103:[.19444,.43056,.01389,0,.5],104:[0,.69444,0,0,.55556],105:[0,.66786,0,0,.27778],106:[.19444,.66786,0,0,.30556],107:[0,.69444,0,0,.52778],108:[0,.69444,0,0,.27778],109:[0,.43056,0,0,.83334],110:[0,.43056,0,0,.55556],111:[0,.43056,0,0,.5],112:[.19444,.43056,0,0,.55556],113:[.19444,.43056,0,0,.52778],114:[0,.43056,0,0,.39167],115:[0,.43056,0,0,.39445],116:[0,.61508,0,0,.38889],117:[0,.43056,0,0,.55556],118:[0,.43056,.01389,0,.52778],119:[0,.43056,.01389,0,.72222],120:[0,.43056,0,0,.52778],121:[.19444,.43056,.01389,0,.52778],122:[0,.43056,0,0,.44445],123:[.25,.75,0,0,.5],124:[.25,.75,0,0,.27778],125:[.25,.75,0,0,.5],126:[.35,.31786,0,0,.5],160:[0,0,0,0,.25],163:[0,.69444,0,0,.76909],167:[.19444,.69444,0,0,.44445],168:[0,.66786,0,0,.5],172:[0,.43056,0,0,.66667],176:[0,.69444,0,0,.75],177:[.08333,.58333,0,0,.77778],182:[.19444,.69444,0,0,.61111],184:[.17014,0,0,0,.44445],198:[0,.68333,0,0,.90278],215:[.08333,.58333,0,0,.77778],216:[.04861,.73194,0,0,.77778],223:[0,.69444,0,0,.5],230:[0,.43056,0,0,.72222],247:[.08333,.58333,0,0,.77778],248:[.09722,.52778,0,0,.5],305:[0,.43056,0,0,.27778],338:[0,.68333,0,0,1.01389],339:[0,.43056,0,0,.77778],567:[.19444,.43056,0,0,.30556],710:[0,.69444,0,0,.5],711:[0,.62847,0,0,.5],713:[0,.56778,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.66786,0,0,.27778],730:[0,.69444,0,0,.75],732:[0,.66786,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.68333,0,0,.625],916:[0,.68333,0,0,.83334],920:[0,.68333,0,0,.77778],923:[0,.68333,0,0,.69445],926:[0,.68333,0,0,.66667],928:[0,.68333,0,0,.75],931:[0,.68333,0,0,.72222],933:[0,.68333,0,0,.77778],934:[0,.68333,0,0,.72222],936:[0,.68333,0,0,.77778],937:[0,.68333,0,0,.72222],8211:[0,.43056,.02778,0,.5],8212:[0,.43056,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5],8224:[.19444,.69444,0,0,.44445],8225:[.19444,.69444,0,0,.44445],8230:[0,.123,0,0,1.172],8242:[0,.55556,0,0,.275],8407:[0,.71444,.15382,0,.5],8463:[0,.68889,0,0,.54028],8465:[0,.69444,0,0,.72222],8467:[0,.69444,0,.11111,.41667],8472:[.19444,.43056,0,.11111,.63646],8476:[0,.69444,0,0,.72222],8501:[0,.69444,0,0,.61111],8592:[-.13313,.36687,0,0,1],8593:[.19444,.69444,0,0,.5],8594:[-.13313,.36687,0,0,1],8595:[.19444,.69444,0,0,.5],8596:[-.13313,.36687,0,0,1],8597:[.25,.75,0,0,.5],8598:[.19444,.69444,0,0,1],8599:[.19444,.69444,0,0,1],8600:[.19444,.69444,0,0,1],8601:[.19444,.69444,0,0,1],8614:[.011,.511,0,0,1],8617:[.011,.511,0,0,1.126],8618:[.011,.511,0,0,1.126],8636:[-.13313,.36687,0,0,1],8637:[-.13313,.36687,0,0,1],8640:[-.13313,.36687,0,0,1],8641:[-.13313,.36687,0,0,1],8652:[.011,.671,0,0,1],8656:[-.13313,.36687,0,0,1],8657:[.19444,.69444,0,0,.61111],8658:[-.13313,.36687,0,0,1],8659:[.19444,.69444,0,0,.61111],8660:[-.13313,.36687,0,0,1],8661:[.25,.75,0,0,.61111],8704:[0,.69444,0,0,.55556],8706:[0,.69444,.05556,.08334,.5309],8707:[0,.69444,0,0,.55556],8709:[.05556,.75,0,0,.5],8711:[0,.68333,0,0,.83334],8712:[.0391,.5391,0,0,.66667],8715:[.0391,.5391,0,0,.66667],8722:[.08333,.58333,0,0,.77778],8723:[.08333,.58333,0,0,.77778],8725:[.25,.75,0,0,.5],8726:[.25,.75,0,0,.5],8727:[-.03472,.46528,0,0,.5],8728:[-.05555,.44445,0,0,.5],8729:[-.05555,.44445,0,0,.5],8730:[.2,.8,0,0,.83334],8733:[0,.43056,0,0,.77778],8734:[0,.43056,0,0,1],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.27778],8741:[.25,.75,0,0,.5],8743:[0,.55556,0,0,.66667],8744:[0,.55556,0,0,.66667],8745:[0,.55556,0,0,.66667],8746:[0,.55556,0,0,.66667],8747:[.19444,.69444,.11111,0,.41667],8764:[-.13313,.36687,0,0,.77778],8768:[.19444,.69444,0,0,.27778],8771:[-.03625,.46375,0,0,.77778],8773:[-.022,.589,0,0,.778],8776:[-.01688,.48312,0,0,.77778],8781:[-.03625,.46375,0,0,.77778],8784:[-.133,.673,0,0,.778],8801:[-.03625,.46375,0,0,.77778],8804:[.13597,.63597,0,0,.77778],8805:[.13597,.63597,0,0,.77778],8810:[.0391,.5391,0,0,1],8811:[.0391,.5391,0,0,1],8826:[.0391,.5391,0,0,.77778],8827:[.0391,.5391,0,0,.77778],8834:[.0391,.5391,0,0,.77778],8835:[.0391,.5391,0,0,.77778],8838:[.13597,.63597,0,0,.77778],8839:[.13597,.63597,0,0,.77778],8846:[0,.55556,0,0,.66667],8849:[.13597,.63597,0,0,.77778],8850:[.13597,.63597,0,0,.77778],8851:[0,.55556,0,0,.66667],8852:[0,.55556,0,0,.66667],8853:[.08333,.58333,0,0,.77778],8854:[.08333,.58333,0,0,.77778],8855:[.08333,.58333,0,0,.77778],8856:[.08333,.58333,0,0,.77778],8857:[.08333,.58333,0,0,.77778],8866:[0,.69444,0,0,.61111],8867:[0,.69444,0,0,.61111],8868:[0,.69444,0,0,.77778],8869:[0,.69444,0,0,.77778],8872:[.249,.75,0,0,.867],8900:[-.05555,.44445,0,0,.5],8901:[-.05555,.44445,0,0,.27778],8902:[-.03472,.46528,0,0,.5],8904:[.005,.505,0,0,.9],8942:[.03,.903,0,0,.278],8943:[-.19,.313,0,0,1.172],8945:[-.1,.823,0,0,1.282],8968:[.25,.75,0,0,.44445],8969:[.25,.75,0,0,.44445],8970:[.25,.75,0,0,.44445],8971:[.25,.75,0,0,.44445],8994:[-.14236,.35764,0,0,1],8995:[-.14236,.35764,0,0,1],9136:[.244,.744,0,0,.412],9137:[.244,.745,0,0,.412],9651:[.19444,.69444,0,0,.88889],9657:[-.03472,.46528,0,0,.5],9661:[.19444,.69444,0,0,.88889],9667:[-.03472,.46528,0,0,.5],9711:[.19444,.69444,0,0,1],9824:[.12963,.69444,0,0,.77778],9825:[.12963,.69444,0,0,.77778],9826:[.12963,.69444,0,0,.77778],9827:[.12963,.69444,0,0,.77778],9837:[0,.75,0,0,.38889],9838:[.19444,.69444,0,0,.38889],9839:[.19444,.69444,0,0,.38889],10216:[.25,.75,0,0,.38889],10217:[.25,.75,0,0,.38889],10222:[.244,.744,0,0,.412],10223:[.244,.745,0,0,.412],10229:[.011,.511,0,0,1.609],10230:[.011,.511,0,0,1.638],10231:[.011,.511,0,0,1.859],10232:[.024,.525,0,0,1.609],10233:[.024,.525,0,0,1.638],10234:[.024,.525,0,0,1.858],10236:[.011,.511,0,0,1.638],10815:[0,.68333,0,0,.75],10927:[.13597,.63597,0,0,.77778],10928:[.13597,.63597,0,0,.77778],57376:[.19444,.69444,0,0,0]},"Math-BoldItalic":{32:[0,0,0,0,.25],48:[0,.44444,0,0,.575],49:[0,.44444,0,0,.575],50:[0,.44444,0,0,.575],51:[.19444,.44444,0,0,.575],52:[.19444,.44444,0,0,.575],53:[.19444,.44444,0,0,.575],54:[0,.64444,0,0,.575],55:[.19444,.44444,0,0,.575],56:[0,.64444,0,0,.575],57:[.19444,.44444,0,0,.575],65:[0,.68611,0,0,.86944],66:[0,.68611,.04835,0,.8664],67:[0,.68611,.06979,0,.81694],68:[0,.68611,.03194,0,.93812],69:[0,.68611,.05451,0,.81007],70:[0,.68611,.15972,0,.68889],71:[0,.68611,0,0,.88673],72:[0,.68611,.08229,0,.98229],73:[0,.68611,.07778,0,.51111],74:[0,.68611,.10069,0,.63125],75:[0,.68611,.06979,0,.97118],76:[0,.68611,0,0,.75555],77:[0,.68611,.11424,0,1.14201],78:[0,.68611,.11424,0,.95034],79:[0,.68611,.03194,0,.83666],80:[0,.68611,.15972,0,.72309],81:[.19444,.68611,0,0,.86861],82:[0,.68611,.00421,0,.87235],83:[0,.68611,.05382,0,.69271],84:[0,.68611,.15972,0,.63663],85:[0,.68611,.11424,0,.80027],86:[0,.68611,.25555,0,.67778],87:[0,.68611,.15972,0,1.09305],88:[0,.68611,.07778,0,.94722],89:[0,.68611,.25555,0,.67458],90:[0,.68611,.06979,0,.77257],97:[0,.44444,0,0,.63287],98:[0,.69444,0,0,.52083],99:[0,.44444,0,0,.51342],100:[0,.69444,0,0,.60972],101:[0,.44444,0,0,.55361],102:[.19444,.69444,.11042,0,.56806],103:[.19444,.44444,.03704,0,.5449],104:[0,.69444,0,0,.66759],105:[0,.69326,0,0,.4048],106:[.19444,.69326,.0622,0,.47083],107:[0,.69444,.01852,0,.6037],108:[0,.69444,.0088,0,.34815],109:[0,.44444,0,0,1.0324],110:[0,.44444,0,0,.71296],111:[0,.44444,0,0,.58472],112:[.19444,.44444,0,0,.60092],113:[.19444,.44444,.03704,0,.54213],114:[0,.44444,.03194,0,.5287],115:[0,.44444,0,0,.53125],116:[0,.63492,0,0,.41528],117:[0,.44444,0,0,.68102],118:[0,.44444,.03704,0,.56666],119:[0,.44444,.02778,0,.83148],120:[0,.44444,0,0,.65903],121:[.19444,.44444,.03704,0,.59028],122:[0,.44444,.04213,0,.55509],160:[0,0,0,0,.25],915:[0,.68611,.15972,0,.65694],916:[0,.68611,0,0,.95833],920:[0,.68611,.03194,0,.86722],923:[0,.68611,0,0,.80555],926:[0,.68611,.07458,0,.84125],928:[0,.68611,.08229,0,.98229],931:[0,.68611,.05451,0,.88507],933:[0,.68611,.15972,0,.67083],934:[0,.68611,0,0,.76666],936:[0,.68611,.11653,0,.71402],937:[0,.68611,.04835,0,.8789],945:[0,.44444,0,0,.76064],946:[.19444,.69444,.03403,0,.65972],947:[.19444,.44444,.06389,0,.59003],948:[0,.69444,.03819,0,.52222],949:[0,.44444,0,0,.52882],950:[.19444,.69444,.06215,0,.50833],951:[.19444,.44444,.03704,0,.6],952:[0,.69444,.03194,0,.5618],953:[0,.44444,0,0,.41204],954:[0,.44444,0,0,.66759],955:[0,.69444,0,0,.67083],956:[.19444,.44444,0,0,.70787],957:[0,.44444,.06898,0,.57685],958:[.19444,.69444,.03021,0,.50833],959:[0,.44444,0,0,.58472],960:[0,.44444,.03704,0,.68241],961:[.19444,.44444,0,0,.6118],962:[.09722,.44444,.07917,0,.42361],963:[0,.44444,.03704,0,.68588],964:[0,.44444,.13472,0,.52083],965:[0,.44444,.03704,0,.63055],966:[.19444,.44444,0,0,.74722],967:[.19444,.44444,0,0,.71805],968:[.19444,.69444,.03704,0,.75833],969:[0,.44444,.03704,0,.71782],977:[0,.69444,0,0,.69155],981:[.19444,.69444,0,0,.7125],982:[0,.44444,.03194,0,.975],1009:[.19444,.44444,0,0,.6118],1013:[0,.44444,0,0,.48333],57649:[0,.44444,0,0,.39352],57911:[.19444,.44444,0,0,.43889]},"Math-Italic":{32:[0,0,0,0,.25],48:[0,.43056,0,0,.5],49:[0,.43056,0,0,.5],50:[0,.43056,0,0,.5],51:[.19444,.43056,0,0,.5],52:[.19444,.43056,0,0,.5],53:[.19444,.43056,0,0,.5],54:[0,.64444,0,0,.5],55:[.19444,.43056,0,0,.5],56:[0,.64444,0,0,.5],57:[.19444,.43056,0,0,.5],65:[0,.68333,0,.13889,.75],66:[0,.68333,.05017,.08334,.75851],67:[0,.68333,.07153,.08334,.71472],68:[0,.68333,.02778,.05556,.82792],69:[0,.68333,.05764,.08334,.7382],70:[0,.68333,.13889,.08334,.64306],71:[0,.68333,0,.08334,.78625],72:[0,.68333,.08125,.05556,.83125],73:[0,.68333,.07847,.11111,.43958],74:[0,.68333,.09618,.16667,.55451],75:[0,.68333,.07153,.05556,.84931],76:[0,.68333,0,.02778,.68056],77:[0,.68333,.10903,.08334,.97014],78:[0,.68333,.10903,.08334,.80347],79:[0,.68333,.02778,.08334,.76278],80:[0,.68333,.13889,.08334,.64201],81:[.19444,.68333,0,.08334,.79056],82:[0,.68333,.00773,.08334,.75929],83:[0,.68333,.05764,.08334,.6132],84:[0,.68333,.13889,.08334,.58438],85:[0,.68333,.10903,.02778,.68278],86:[0,.68333,.22222,0,.58333],87:[0,.68333,.13889,0,.94445],88:[0,.68333,.07847,.08334,.82847],89:[0,.68333,.22222,0,.58056],90:[0,.68333,.07153,.08334,.68264],97:[0,.43056,0,0,.52859],98:[0,.69444,0,0,.42917],99:[0,.43056,0,.05556,.43276],100:[0,.69444,0,.16667,.52049],101:[0,.43056,0,.05556,.46563],102:[.19444,.69444,.10764,.16667,.48959],103:[.19444,.43056,.03588,.02778,.47697],104:[0,.69444,0,0,.57616],105:[0,.65952,0,0,.34451],106:[.19444,.65952,.05724,0,.41181],107:[0,.69444,.03148,0,.5206],108:[0,.69444,.01968,.08334,.29838],109:[0,.43056,0,0,.87801],110:[0,.43056,0,0,.60023],111:[0,.43056,0,.05556,.48472],112:[.19444,.43056,0,.08334,.50313],113:[.19444,.43056,.03588,.08334,.44641],114:[0,.43056,.02778,.05556,.45116],115:[0,.43056,0,.05556,.46875],116:[0,.61508,0,.08334,.36111],117:[0,.43056,0,.02778,.57246],118:[0,.43056,.03588,.02778,.48472],119:[0,.43056,.02691,.08334,.71592],120:[0,.43056,0,.02778,.57153],121:[.19444,.43056,.03588,.05556,.49028],122:[0,.43056,.04398,.05556,.46505],160:[0,0,0,0,.25],915:[0,.68333,.13889,.08334,.61528],916:[0,.68333,0,.16667,.83334],920:[0,.68333,.02778,.08334,.76278],923:[0,.68333,0,.16667,.69445],926:[0,.68333,.07569,.08334,.74236],928:[0,.68333,.08125,.05556,.83125],931:[0,.68333,.05764,.08334,.77986],933:[0,.68333,.13889,.05556,.58333],934:[0,.68333,0,.08334,.66667],936:[0,.68333,.11,.05556,.61222],937:[0,.68333,.05017,.08334,.7724],945:[0,.43056,.0037,.02778,.6397],946:[.19444,.69444,.05278,.08334,.56563],947:[.19444,.43056,.05556,0,.51773],948:[0,.69444,.03785,.05556,.44444],949:[0,.43056,0,.08334,.46632],950:[.19444,.69444,.07378,.08334,.4375],951:[.19444,.43056,.03588,.05556,.49653],952:[0,.69444,.02778,.08334,.46944],953:[0,.43056,0,.05556,.35394],954:[0,.43056,0,0,.57616],955:[0,.69444,0,0,.58334],956:[.19444,.43056,0,.02778,.60255],957:[0,.43056,.06366,.02778,.49398],958:[.19444,.69444,.04601,.11111,.4375],959:[0,.43056,0,.05556,.48472],960:[0,.43056,.03588,0,.57003],961:[.19444,.43056,0,.08334,.51702],962:[.09722,.43056,.07986,.08334,.36285],963:[0,.43056,.03588,0,.57141],964:[0,.43056,.1132,.02778,.43715],965:[0,.43056,.03588,.02778,.54028],966:[.19444,.43056,0,.08334,.65417],967:[.19444,.43056,0,.05556,.62569],968:[.19444,.69444,.03588,.11111,.65139],969:[0,.43056,.03588,0,.62245],977:[0,.69444,0,.08334,.59144],981:[.19444,.69444,0,.08334,.59583],982:[0,.43056,.02778,0,.82813],1009:[.19444,.43056,0,.08334,.51702],1013:[0,.43056,0,.05556,.4059],57649:[0,.43056,0,.02778,.32246],57911:[.19444,.43056,0,.08334,.38403]},"SansSerif-Bold":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.36667],34:[0,.69444,0,0,.55834],35:[.19444,.69444,0,0,.91667],36:[.05556,.75,0,0,.55],37:[.05556,.75,0,0,1.02912],38:[0,.69444,0,0,.83056],39:[0,.69444,0,0,.30556],40:[.25,.75,0,0,.42778],41:[.25,.75,0,0,.42778],42:[0,.75,0,0,.55],43:[.11667,.61667,0,0,.85556],44:[.10556,.13056,0,0,.30556],45:[0,.45833,0,0,.36667],46:[0,.13056,0,0,.30556],47:[.25,.75,0,0,.55],48:[0,.69444,0,0,.55],49:[0,.69444,0,0,.55],50:[0,.69444,0,0,.55],51:[0,.69444,0,0,.55],52:[0,.69444,0,0,.55],53:[0,.69444,0,0,.55],54:[0,.69444,0,0,.55],55:[0,.69444,0,0,.55],56:[0,.69444,0,0,.55],57:[0,.69444,0,0,.55],58:[0,.45833,0,0,.30556],59:[.10556,.45833,0,0,.30556],61:[-.09375,.40625,0,0,.85556],63:[0,.69444,0,0,.51945],64:[0,.69444,0,0,.73334],65:[0,.69444,0,0,.73334],66:[0,.69444,0,0,.73334],67:[0,.69444,0,0,.70278],68:[0,.69444,0,0,.79445],69:[0,.69444,0,0,.64167],70:[0,.69444,0,0,.61111],71:[0,.69444,0,0,.73334],72:[0,.69444,0,0,.79445],73:[0,.69444,0,0,.33056],74:[0,.69444,0,0,.51945],75:[0,.69444,0,0,.76389],76:[0,.69444,0,0,.58056],77:[0,.69444,0,0,.97778],78:[0,.69444,0,0,.79445],79:[0,.69444,0,0,.79445],80:[0,.69444,0,0,.70278],81:[.10556,.69444,0,0,.79445],82:[0,.69444,0,0,.70278],83:[0,.69444,0,0,.61111],84:[0,.69444,0,0,.73334],85:[0,.69444,0,0,.76389],86:[0,.69444,.01528,0,.73334],87:[0,.69444,.01528,0,1.03889],88:[0,.69444,0,0,.73334],89:[0,.69444,.0275,0,.73334],90:[0,.69444,0,0,.67223],91:[.25,.75,0,0,.34306],93:[.25,.75,0,0,.34306],94:[0,.69444,0,0,.55],95:[.35,.10833,.03056,0,.55],97:[0,.45833,0,0,.525],98:[0,.69444,0,0,.56111],99:[0,.45833,0,0,.48889],100:[0,.69444,0,0,.56111],101:[0,.45833,0,0,.51111],102:[0,.69444,.07639,0,.33611],103:[.19444,.45833,.01528,0,.55],104:[0,.69444,0,0,.56111],105:[0,.69444,0,0,.25556],106:[.19444,.69444,0,0,.28611],107:[0,.69444,0,0,.53056],108:[0,.69444,0,0,.25556],109:[0,.45833,0,0,.86667],110:[0,.45833,0,0,.56111],111:[0,.45833,0,0,.55],112:[.19444,.45833,0,0,.56111],113:[.19444,.45833,0,0,.56111],114:[0,.45833,.01528,0,.37222],115:[0,.45833,0,0,.42167],116:[0,.58929,0,0,.40417],117:[0,.45833,0,0,.56111],118:[0,.45833,.01528,0,.5],119:[0,.45833,.01528,0,.74445],120:[0,.45833,0,0,.5],121:[.19444,.45833,.01528,0,.5],122:[0,.45833,0,0,.47639],126:[.35,.34444,0,0,.55],160:[0,0,0,0,.25],168:[0,.69444,0,0,.55],176:[0,.69444,0,0,.73334],180:[0,.69444,0,0,.55],184:[.17014,0,0,0,.48889],305:[0,.45833,0,0,.25556],567:[.19444,.45833,0,0,.28611],710:[0,.69444,0,0,.55],711:[0,.63542,0,0,.55],713:[0,.63778,0,0,.55],728:[0,.69444,0,0,.55],729:[0,.69444,0,0,.30556],730:[0,.69444,0,0,.73334],732:[0,.69444,0,0,.55],733:[0,.69444,0,0,.55],915:[0,.69444,0,0,.58056],916:[0,.69444,0,0,.91667],920:[0,.69444,0,0,.85556],923:[0,.69444,0,0,.67223],926:[0,.69444,0,0,.73334],928:[0,.69444,0,0,.79445],931:[0,.69444,0,0,.79445],933:[0,.69444,0,0,.85556],934:[0,.69444,0,0,.79445],936:[0,.69444,0,0,.85556],937:[0,.69444,0,0,.79445],8211:[0,.45833,.03056,0,.55],8212:[0,.45833,.03056,0,1.10001],8216:[0,.69444,0,0,.30556],8217:[0,.69444,0,0,.30556],8220:[0,.69444,0,0,.55834],8221:[0,.69444,0,0,.55834]},"SansSerif-Italic":{32:[0,0,0,0,.25],33:[0,.69444,.05733,0,.31945],34:[0,.69444,.00316,0,.5],35:[.19444,.69444,.05087,0,.83334],36:[.05556,.75,.11156,0,.5],37:[.05556,.75,.03126,0,.83334],38:[0,.69444,.03058,0,.75834],39:[0,.69444,.07816,0,.27778],40:[.25,.75,.13164,0,.38889],41:[.25,.75,.02536,0,.38889],42:[0,.75,.11775,0,.5],43:[.08333,.58333,.02536,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,.01946,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,.13164,0,.5],48:[0,.65556,.11156,0,.5],49:[0,.65556,.11156,0,.5],50:[0,.65556,.11156,0,.5],51:[0,.65556,.11156,0,.5],52:[0,.65556,.11156,0,.5],53:[0,.65556,.11156,0,.5],54:[0,.65556,.11156,0,.5],55:[0,.65556,.11156,0,.5],56:[0,.65556,.11156,0,.5],57:[0,.65556,.11156,0,.5],58:[0,.44444,.02502,0,.27778],59:[.125,.44444,.02502,0,.27778],61:[-.13,.37,.05087,0,.77778],63:[0,.69444,.11809,0,.47222],64:[0,.69444,.07555,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,.08293,0,.66667],67:[0,.69444,.11983,0,.63889],68:[0,.69444,.07555,0,.72223],69:[0,.69444,.11983,0,.59722],70:[0,.69444,.13372,0,.56945],71:[0,.69444,.11983,0,.66667],72:[0,.69444,.08094,0,.70834],73:[0,.69444,.13372,0,.27778],74:[0,.69444,.08094,0,.47222],75:[0,.69444,.11983,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,.08094,0,.875],78:[0,.69444,.08094,0,.70834],79:[0,.69444,.07555,0,.73611],80:[0,.69444,.08293,0,.63889],81:[.125,.69444,.07555,0,.73611],82:[0,.69444,.08293,0,.64584],83:[0,.69444,.09205,0,.55556],84:[0,.69444,.13372,0,.68056],85:[0,.69444,.08094,0,.6875],86:[0,.69444,.1615,0,.66667],87:[0,.69444,.1615,0,.94445],88:[0,.69444,.13372,0,.66667],89:[0,.69444,.17261,0,.66667],90:[0,.69444,.11983,0,.61111],91:[.25,.75,.15942,0,.28889],93:[.25,.75,.08719,0,.28889],94:[0,.69444,.0799,0,.5],95:[.35,.09444,.08616,0,.5],97:[0,.44444,.00981,0,.48056],98:[0,.69444,.03057,0,.51667],99:[0,.44444,.08336,0,.44445],100:[0,.69444,.09483,0,.51667],101:[0,.44444,.06778,0,.44445],102:[0,.69444,.21705,0,.30556],103:[.19444,.44444,.10836,0,.5],104:[0,.69444,.01778,0,.51667],105:[0,.67937,.09718,0,.23889],106:[.19444,.67937,.09162,0,.26667],107:[0,.69444,.08336,0,.48889],108:[0,.69444,.09483,0,.23889],109:[0,.44444,.01778,0,.79445],110:[0,.44444,.01778,0,.51667],111:[0,.44444,.06613,0,.5],112:[.19444,.44444,.0389,0,.51667],113:[.19444,.44444,.04169,0,.51667],114:[0,.44444,.10836,0,.34167],115:[0,.44444,.0778,0,.38333],116:[0,.57143,.07225,0,.36111],117:[0,.44444,.04169,0,.51667],118:[0,.44444,.10836,0,.46111],119:[0,.44444,.10836,0,.68334],120:[0,.44444,.09169,0,.46111],121:[.19444,.44444,.10836,0,.46111],122:[0,.44444,.08752,0,.43472],126:[.35,.32659,.08826,0,.5],160:[0,0,0,0,.25],168:[0,.67937,.06385,0,.5],176:[0,.69444,0,0,.73752],184:[.17014,0,0,0,.44445],305:[0,.44444,.04169,0,.23889],567:[.19444,.44444,.04169,0,.26667],710:[0,.69444,.0799,0,.5],711:[0,.63194,.08432,0,.5],713:[0,.60889,.08776,0,.5],714:[0,.69444,.09205,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,.09483,0,.5],729:[0,.67937,.07774,0,.27778],730:[0,.69444,0,0,.73752],732:[0,.67659,.08826,0,.5],733:[0,.69444,.09205,0,.5],915:[0,.69444,.13372,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,.07555,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,.12816,0,.66667],928:[0,.69444,.08094,0,.70834],931:[0,.69444,.11983,0,.72222],933:[0,.69444,.09031,0,.77778],934:[0,.69444,.04603,0,.72222],936:[0,.69444,.09031,0,.77778],937:[0,.69444,.08293,0,.72222],8211:[0,.44444,.08616,0,.5],8212:[0,.44444,.08616,0,1],8216:[0,.69444,.07816,0,.27778],8217:[0,.69444,.07816,0,.27778],8220:[0,.69444,.14205,0,.5],8221:[0,.69444,.00316,0,.5]},"SansSerif-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.31945],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.75834],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,0,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.65556,0,0,.5],49:[0,.65556,0,0,.5],50:[0,.65556,0,0,.5],51:[0,.65556,0,0,.5],52:[0,.65556,0,0,.5],53:[0,.65556,0,0,.5],54:[0,.65556,0,0,.5],55:[0,.65556,0,0,.5],56:[0,.65556,0,0,.5],57:[0,.65556,0,0,.5],58:[0,.44444,0,0,.27778],59:[.125,.44444,0,0,.27778],61:[-.13,.37,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,0,0,.66667],67:[0,.69444,0,0,.63889],68:[0,.69444,0,0,.72223],69:[0,.69444,0,0,.59722],70:[0,.69444,0,0,.56945],71:[0,.69444,0,0,.66667],72:[0,.69444,0,0,.70834],73:[0,.69444,0,0,.27778],74:[0,.69444,0,0,.47222],75:[0,.69444,0,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,0,0,.875],78:[0,.69444,0,0,.70834],79:[0,.69444,0,0,.73611],80:[0,.69444,0,0,.63889],81:[.125,.69444,0,0,.73611],82:[0,.69444,0,0,.64584],83:[0,.69444,0,0,.55556],84:[0,.69444,0,0,.68056],85:[0,.69444,0,0,.6875],86:[0,.69444,.01389,0,.66667],87:[0,.69444,.01389,0,.94445],88:[0,.69444,0,0,.66667],89:[0,.69444,.025,0,.66667],90:[0,.69444,0,0,.61111],91:[.25,.75,0,0,.28889],93:[.25,.75,0,0,.28889],94:[0,.69444,0,0,.5],95:[.35,.09444,.02778,0,.5],97:[0,.44444,0,0,.48056],98:[0,.69444,0,0,.51667],99:[0,.44444,0,0,.44445],100:[0,.69444,0,0,.51667],101:[0,.44444,0,0,.44445],102:[0,.69444,.06944,0,.30556],103:[.19444,.44444,.01389,0,.5],104:[0,.69444,0,0,.51667],105:[0,.67937,0,0,.23889],106:[.19444,.67937,0,0,.26667],107:[0,.69444,0,0,.48889],108:[0,.69444,0,0,.23889],109:[0,.44444,0,0,.79445],110:[0,.44444,0,0,.51667],111:[0,.44444,0,0,.5],112:[.19444,.44444,0,0,.51667],113:[.19444,.44444,0,0,.51667],114:[0,.44444,.01389,0,.34167],115:[0,.44444,0,0,.38333],116:[0,.57143,0,0,.36111],117:[0,.44444,0,0,.51667],118:[0,.44444,.01389,0,.46111],119:[0,.44444,.01389,0,.68334],120:[0,.44444,0,0,.46111],121:[.19444,.44444,.01389,0,.46111],122:[0,.44444,0,0,.43472],126:[.35,.32659,0,0,.5],160:[0,0,0,0,.25],168:[0,.67937,0,0,.5],176:[0,.69444,0,0,.66667],184:[.17014,0,0,0,.44445],305:[0,.44444,0,0,.23889],567:[.19444,.44444,0,0,.26667],710:[0,.69444,0,0,.5],711:[0,.63194,0,0,.5],713:[0,.60889,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.67937,0,0,.27778],730:[0,.69444,0,0,.66667],732:[0,.67659,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.69444,0,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,0,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,0,0,.66667],928:[0,.69444,0,0,.70834],931:[0,.69444,0,0,.72222],933:[0,.69444,0,0,.77778],934:[0,.69444,0,0,.72222],936:[0,.69444,0,0,.77778],937:[0,.69444,0,0,.72222],8211:[0,.44444,.02778,0,.5],8212:[0,.44444,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5]},"Script-Regular":{32:[0,0,0,0,.25],65:[0,.7,.22925,0,.80253],66:[0,.7,.04087,0,.90757],67:[0,.7,.1689,0,.66619],68:[0,.7,.09371,0,.77443],69:[0,.7,.18583,0,.56162],70:[0,.7,.13634,0,.89544],71:[0,.7,.17322,0,.60961],72:[0,.7,.29694,0,.96919],73:[0,.7,.19189,0,.80907],74:[.27778,.7,.19189,0,1.05159],75:[0,.7,.31259,0,.91364],76:[0,.7,.19189,0,.87373],77:[0,.7,.15981,0,1.08031],78:[0,.7,.3525,0,.9015],79:[0,.7,.08078,0,.73787],80:[0,.7,.08078,0,1.01262],81:[0,.7,.03305,0,.88282],82:[0,.7,.06259,0,.85],83:[0,.7,.19189,0,.86767],84:[0,.7,.29087,0,.74697],85:[0,.7,.25815,0,.79996],86:[0,.7,.27523,0,.62204],87:[0,.7,.27523,0,.80532],88:[0,.7,.26006,0,.94445],89:[0,.7,.2939,0,.70961],90:[0,.7,.24037,0,.8212],160:[0,0,0,0,.25]},"Size1-Regular":{32:[0,0,0,0,.25],40:[.35001,.85,0,0,.45834],41:[.35001,.85,0,0,.45834],47:[.35001,.85,0,0,.57778],91:[.35001,.85,0,0,.41667],92:[.35001,.85,0,0,.57778],93:[.35001,.85,0,0,.41667],123:[.35001,.85,0,0,.58334],125:[.35001,.85,0,0,.58334],160:[0,0,0,0,.25],710:[0,.72222,0,0,.55556],732:[0,.72222,0,0,.55556],770:[0,.72222,0,0,.55556],771:[0,.72222,0,0,.55556],8214:[-99e-5,.601,0,0,.77778],8593:[1e-5,.6,0,0,.66667],8595:[1e-5,.6,0,0,.66667],8657:[1e-5,.6,0,0,.77778],8659:[1e-5,.6,0,0,.77778],8719:[.25001,.75,0,0,.94445],8720:[.25001,.75,0,0,.94445],8721:[.25001,.75,0,0,1.05556],8730:[.35001,.85,0,0,1],8739:[-.00599,.606,0,0,.33333],8741:[-.00599,.606,0,0,.55556],8747:[.30612,.805,.19445,0,.47222],8748:[.306,.805,.19445,0,.47222],8749:[.306,.805,.19445,0,.47222],8750:[.30612,.805,.19445,0,.47222],8896:[.25001,.75,0,0,.83334],8897:[.25001,.75,0,0,.83334],8898:[.25001,.75,0,0,.83334],8899:[.25001,.75,0,0,.83334],8968:[.35001,.85,0,0,.47222],8969:[.35001,.85,0,0,.47222],8970:[.35001,.85,0,0,.47222],8971:[.35001,.85,0,0,.47222],9168:[-99e-5,.601,0,0,.66667],10216:[.35001,.85,0,0,.47222],10217:[.35001,.85,0,0,.47222],10752:[.25001,.75,0,0,1.11111],10753:[.25001,.75,0,0,1.11111],10754:[.25001,.75,0,0,1.11111],10756:[.25001,.75,0,0,.83334],10758:[.25001,.75,0,0,.83334]},"Size2-Regular":{32:[0,0,0,0,.25],40:[.65002,1.15,0,0,.59722],41:[.65002,1.15,0,0,.59722],47:[.65002,1.15,0,0,.81111],91:[.65002,1.15,0,0,.47222],92:[.65002,1.15,0,0,.81111],93:[.65002,1.15,0,0,.47222],123:[.65002,1.15,0,0,.66667],125:[.65002,1.15,0,0,.66667],160:[0,0,0,0,.25],710:[0,.75,0,0,1],732:[0,.75,0,0,1],770:[0,.75,0,0,1],771:[0,.75,0,0,1],8719:[.55001,1.05,0,0,1.27778],8720:[.55001,1.05,0,0,1.27778],8721:[.55001,1.05,0,0,1.44445],8730:[.65002,1.15,0,0,1],8747:[.86225,1.36,.44445,0,.55556],8748:[.862,1.36,.44445,0,.55556],8749:[.862,1.36,.44445,0,.55556],8750:[.86225,1.36,.44445,0,.55556],8896:[.55001,1.05,0,0,1.11111],8897:[.55001,1.05,0,0,1.11111],8898:[.55001,1.05,0,0,1.11111],8899:[.55001,1.05,0,0,1.11111],8968:[.65002,1.15,0,0,.52778],8969:[.65002,1.15,0,0,.52778],8970:[.65002,1.15,0,0,.52778],8971:[.65002,1.15,0,0,.52778],10216:[.65002,1.15,0,0,.61111],10217:[.65002,1.15,0,0,.61111],10752:[.55001,1.05,0,0,1.51112],10753:[.55001,1.05,0,0,1.51112],10754:[.55001,1.05,0,0,1.51112],10756:[.55001,1.05,0,0,1.11111],10758:[.55001,1.05,0,0,1.11111]},"Size3-Regular":{32:[0,0,0,0,.25],40:[.95003,1.45,0,0,.73611],41:[.95003,1.45,0,0,.73611],47:[.95003,1.45,0,0,1.04445],91:[.95003,1.45,0,0,.52778],92:[.95003,1.45,0,0,1.04445],93:[.95003,1.45,0,0,.52778],123:[.95003,1.45,0,0,.75],125:[.95003,1.45,0,0,.75],160:[0,0,0,0,.25],710:[0,.75,0,0,1.44445],732:[0,.75,0,0,1.44445],770:[0,.75,0,0,1.44445],771:[0,.75,0,0,1.44445],8730:[.95003,1.45,0,0,1],8968:[.95003,1.45,0,0,.58334],8969:[.95003,1.45,0,0,.58334],8970:[.95003,1.45,0,0,.58334],8971:[.95003,1.45,0,0,.58334],10216:[.95003,1.45,0,0,.75],10217:[.95003,1.45,0,0,.75]},"Size4-Regular":{32:[0,0,0,0,.25],40:[1.25003,1.75,0,0,.79167],41:[1.25003,1.75,0,0,.79167],47:[1.25003,1.75,0,0,1.27778],91:[1.25003,1.75,0,0,.58334],92:[1.25003,1.75,0,0,1.27778],93:[1.25003,1.75,0,0,.58334],123:[1.25003,1.75,0,0,.80556],125:[1.25003,1.75,0,0,.80556],160:[0,0,0,0,.25],710:[0,.825,0,0,1.8889],732:[0,.825,0,0,1.8889],770:[0,.825,0,0,1.8889],771:[0,.825,0,0,1.8889],8730:[1.25003,1.75,0,0,1],8968:[1.25003,1.75,0,0,.63889],8969:[1.25003,1.75,0,0,.63889],8970:[1.25003,1.75,0,0,.63889],8971:[1.25003,1.75,0,0,.63889],9115:[.64502,1.155,0,0,.875],9116:[1e-5,.6,0,0,.875],9117:[.64502,1.155,0,0,.875],9118:[.64502,1.155,0,0,.875],9119:[1e-5,.6,0,0,.875],9120:[.64502,1.155,0,0,.875],9121:[.64502,1.155,0,0,.66667],9122:[-99e-5,.601,0,0,.66667],9123:[.64502,1.155,0,0,.66667],9124:[.64502,1.155,0,0,.66667],9125:[-99e-5,.601,0,0,.66667],9126:[.64502,1.155,0,0,.66667],9127:[1e-5,.9,0,0,.88889],9128:[.65002,1.15,0,0,.88889],9129:[.90001,0,0,0,.88889],9130:[0,.3,0,0,.88889],9131:[1e-5,.9,0,0,.88889],9132:[.65002,1.15,0,0,.88889],9133:[.90001,0,0,0,.88889],9143:[.88502,.915,0,0,1.05556],10216:[1.25003,1.75,0,0,.80556],10217:[1.25003,1.75,0,0,.80556],57344:[-.00499,.605,0,0,1.05556],57345:[-.00499,.605,0,0,1.05556],57680:[0,.12,0,0,.45],57681:[0,.12,0,0,.45],57682:[0,.12,0,0,.45],57683:[0,.12,0,0,.45]},"Typewriter-Regular":{32:[0,0,0,0,.525],33:[0,.61111,0,0,.525],34:[0,.61111,0,0,.525],35:[0,.61111,0,0,.525],36:[.08333,.69444,0,0,.525],37:[.08333,.69444,0,0,.525],38:[0,.61111,0,0,.525],39:[0,.61111,0,0,.525],40:[.08333,.69444,0,0,.525],41:[.08333,.69444,0,0,.525],42:[0,.52083,0,0,.525],43:[-.08056,.53055,0,0,.525],44:[.13889,.125,0,0,.525],45:[-.08056,.53055,0,0,.525],46:[0,.125,0,0,.525],47:[.08333,.69444,0,0,.525],48:[0,.61111,0,0,.525],49:[0,.61111,0,0,.525],50:[0,.61111,0,0,.525],51:[0,.61111,0,0,.525],52:[0,.61111,0,0,.525],53:[0,.61111,0,0,.525],54:[0,.61111,0,0,.525],55:[0,.61111,0,0,.525],56:[0,.61111,0,0,.525],57:[0,.61111,0,0,.525],58:[0,.43056,0,0,.525],59:[.13889,.43056,0,0,.525],60:[-.05556,.55556,0,0,.525],61:[-.19549,.41562,0,0,.525],62:[-.05556,.55556,0,0,.525],63:[0,.61111,0,0,.525],64:[0,.61111,0,0,.525],65:[0,.61111,0,0,.525],66:[0,.61111,0,0,.525],67:[0,.61111,0,0,.525],68:[0,.61111,0,0,.525],69:[0,.61111,0,0,.525],70:[0,.61111,0,0,.525],71:[0,.61111,0,0,.525],72:[0,.61111,0,0,.525],73:[0,.61111,0,0,.525],74:[0,.61111,0,0,.525],75:[0,.61111,0,0,.525],76:[0,.61111,0,0,.525],77:[0,.61111,0,0,.525],78:[0,.61111,0,0,.525],79:[0,.61111,0,0,.525],80:[0,.61111,0,0,.525],81:[.13889,.61111,0,0,.525],82:[0,.61111,0,0,.525],83:[0,.61111,0,0,.525],84:[0,.61111,0,0,.525],85:[0,.61111,0,0,.525],86:[0,.61111,0,0,.525],87:[0,.61111,0,0,.525],88:[0,.61111,0,0,.525],89:[0,.61111,0,0,.525],90:[0,.61111,0,0,.525],91:[.08333,.69444,0,0,.525],92:[.08333,.69444,0,0,.525],93:[.08333,.69444,0,0,.525],94:[0,.61111,0,0,.525],95:[.09514,0,0,0,.525],96:[0,.61111,0,0,.525],97:[0,.43056,0,0,.525],98:[0,.61111,0,0,.525],99:[0,.43056,0,0,.525],100:[0,.61111,0,0,.525],101:[0,.43056,0,0,.525],102:[0,.61111,0,0,.525],103:[.22222,.43056,0,0,.525],104:[0,.61111,0,0,.525],105:[0,.61111,0,0,.525],106:[.22222,.61111,0,0,.525],107:[0,.61111,0,0,.525],108:[0,.61111,0,0,.525],109:[0,.43056,0,0,.525],110:[0,.43056,0,0,.525],111:[0,.43056,0,0,.525],112:[.22222,.43056,0,0,.525],113:[.22222,.43056,0,0,.525],114:[0,.43056,0,0,.525],115:[0,.43056,0,0,.525],116:[0,.55358,0,0,.525],117:[0,.43056,0,0,.525],118:[0,.43056,0,0,.525],119:[0,.43056,0,0,.525],120:[0,.43056,0,0,.525],121:[.22222,.43056,0,0,.525],122:[0,.43056,0,0,.525],123:[.08333,.69444,0,0,.525],124:[.08333,.69444,0,0,.525],125:[.08333,.69444,0,0,.525],126:[0,.61111,0,0,.525],127:[0,.61111,0,0,.525],160:[0,0,0,0,.525],176:[0,.61111,0,0,.525],184:[.19445,0,0,0,.525],305:[0,.43056,0,0,.525],567:[.22222,.43056,0,0,.525],711:[0,.56597,0,0,.525],713:[0,.56555,0,0,.525],714:[0,.61111,0,0,.525],715:[0,.61111,0,0,.525],728:[0,.61111,0,0,.525],730:[0,.61111,0,0,.525],770:[0,.61111,0,0,.525],771:[0,.61111,0,0,.525],776:[0,.61111,0,0,.525],915:[0,.61111,0,0,.525],916:[0,.61111,0,0,.525],920:[0,.61111,0,0,.525],923:[0,.61111,0,0,.525],926:[0,.61111,0,0,.525],928:[0,.61111,0,0,.525],931:[0,.61111,0,0,.525],933:[0,.61111,0,0,.525],934:[0,.61111,0,0,.525],936:[0,.61111,0,0,.525],937:[0,.61111,0,0,.525],8216:[0,.61111,0,0,.525],8217:[0,.61111,0,0,.525],8242:[0,.61111,0,0,.525],9251:[.11111,.21944,0,0,.525]}},Ae={slant:[.25,.25,.25],space:[0,0,0],stretch:[0,0,0],shrink:[0,0,0],xHeight:[.431,.431,.431],quad:[1,1.171,1.472],extraSpace:[0,0,0],num1:[.677,.732,.925],num2:[.394,.384,.387],num3:[.444,.471,.504],denom1:[.686,.752,1.025],denom2:[.345,.344,.532],sup1:[.413,.503,.504],sup2:[.363,.431,.404],sup3:[.289,.286,.294],sub1:[.15,.143,.2],sub2:[.247,.286,.4],supDrop:[.386,.353,.494],subDrop:[.05,.071,.1],delim1:[2.39,1.7,1.98],delim2:[1.01,1.157,1.42],axisHeight:[.25,.25,.25],defaultRuleThickness:[.04,.049,.049],bigOpSpacing1:[.111,.111,.111],bigOpSpacing2:[.166,.166,.166],bigOpSpacing3:[.2,.2,.2],bigOpSpacing4:[.6,.611,.611],bigOpSpacing5:[.1,.143,.143],sqrtRuleThickness:[.04,.04,.04],ptPerEm:[10,10,10],doubleRuleSep:[.2,.2,.2],arrayRuleWidth:[.04,.04,.04],fboxsep:[.3,.3,.3],fboxrule:[.04,.04,.04]},mr={\u00C5:"A",\u00D0:"D",\u00DE:"o",\u00E5:"a",\u00F0:"d",\u00FE:"o",\u0410:"A",\u0411:"B",\u0412:"B",\u0413:"F",\u0414:"A",\u0415:"E",\u0416:"K",\u0417:"3",\u0418:"N",\u0419:"N",\u041A:"K",\u041B:"N",\u041C:"M",\u041D:"H",\u041E:"O",\u041F:"N",\u0420:"P",\u0421:"C",\u0422:"T",\u0423:"y",\u0424:"O",\u0425:"X",\u0426:"U",\u0427:"h",\u0428:"W",\u0429:"W",\u042A:"B",\u042B:"X",\u042C:"B",\u042D:"3",\u042E:"X",\u042F:"R",\u0430:"a",\u0431:"b",\u0432:"a",\u0433:"r",\u0434:"y",\u0435:"e",\u0436:"m",\u0437:"e",\u0438:"n",\u0439:"n",\u043A:"n",\u043B:"n",\u043C:"m",\u043D:"n",\u043E:"o",\u043F:"n",\u0440:"p",\u0441:"c",\u0442:"o",\u0443:"y",\u0444:"b",\u0445:"x",\u0446:"n",\u0447:"n",\u0448:"w",\u0449:"w",\u044A:"a",\u044B:"m",\u044C:"a",\u044D:"e",\u044E:"m",\u044F:"r"};function Ta(r,e){z0[r]=e}function Ut(r,e,t){if(!z0[e])throw new Error("Font metrics not found for font: "+e+".");var a=r.charCodeAt(0),i=z0[e][a];if(!i&&r[0]in mr&&(a=mr[r[0]].charCodeAt(0),i=z0[e][a]),!i&&t==="text"&&Yr(a)&&(i=z0[e][77]),i)return{depth:i[0],height:i[1],italic:i[2],skew:i[3],width:i[4]}}var nt={};function Ba(r){var e;if(r>=5?e=0:r>=3?e=1:e=2,!nt[e]){var t=nt[e]={cssEmPerMu:Ae.quad[e]/18};for(var a in Ae)Ae.hasOwnProperty(a)&&(t[a]=Ae[a][e])}return nt[e]}var W={math:{},text:{}};function n(r,e,t,a,i,s){W[r][i]={font:e,group:t,replace:a},s&&a&&(W[r][a]=W[r][i])}var l="math",w="text",o="main",d="ams",j="accent-token",D="bin",o0="close",ne="inner",E="mathord",t0="op-token",f0="open",ge="punct",f="rel",R0="spacing",g="textord";n(l,o,f,"\u2261","\\equiv",!0);n(l,o,f,"\u227A","\\prec",!0);n(l,o,f,"\u227B","\\succ",!0);n(l,o,f,"\u223C","\\sim",!0);n(l,o,f,"\u22A5","\\perp");n(l,o,f,"\u2AAF","\\preceq",!0);n(l,o,f,"\u2AB0","\\succeq",!0);n(l,o,f,"\u2243","\\simeq",!0);n(l,o,f,"\u2223","\\mid",!0);n(l,o,f,"\u226A","\\ll",!0);n(l,o,f,"\u226B","\\gg",!0);n(l,o,f,"\u224D","\\asymp",!0);n(l,o,f,"\u2225","\\parallel");n(l,o,f,"\u22C8","\\bowtie",!0);n(l,o,f,"\u2323","\\smile",!0);n(l,o,f,"\u2291","\\sqsubseteq",!0);n(l,o,f,"\u2292","\\sqsupseteq",!0);n(l,o,f,"\u2250","\\doteq",!0);n(l,o,f,"\u2322","\\frown",!0);n(l,o,f,"\u220B","\\ni",!0);n(l,o,f,"\u221D","\\propto",!0);n(l,o,f,"\u22A2","\\vdash",!0);n(l,o,f,"\u22A3","\\dashv",!0);n(l,o,f,"\u220B","\\owns");n(l,o,ge,".","\\ldotp");n(l,o,ge,"\u22C5","\\cdotp");n(l,o,ge,"\u22C5","\xB7");n(w,o,g,"\u22C5","\xB7");n(l,o,g,"#","\\#");n(w,o,g,"#","\\#");n(l,o,g,"&","\\&");n(w,o,g,"&","\\&");n(l,o,g,"\u2135","\\aleph",!0);n(l,o,g,"\u2200","\\forall",!0);n(l,o,g,"\u210F","\\hbar",!0);n(l,o,g,"\u2203","\\exists",!0);n(l,o,g,"\u2207","\\nabla",!0);n(l,o,g,"\u266D","\\flat",!0);n(l,o,g,"\u2113","\\ell",!0);n(l,o,g,"\u266E","\\natural",!0);n(l,o,g,"\u2663","\\clubsuit",!0);n(l,o,g,"\u2118","\\wp",!0);n(l,o,g,"\u266F","\\sharp",!0);n(l,o,g,"\u2662","\\diamondsuit",!0);n(l,o,g,"\u211C","\\Re",!0);n(l,o,g,"\u2661","\\heartsuit",!0);n(l,o,g,"\u2111","\\Im",!0);n(l,o,g,"\u2660","\\spadesuit",!0);n(l,o,g,"\xA7","\\S",!0);n(w,o,g,"\xA7","\\S");n(l,o,g,"\xB6","\\P",!0);n(w,o,g,"\xB6","\\P");n(l,o,g,"\u2020","\\dag");n(w,o,g,"\u2020","\\dag");n(w,o,g,"\u2020","\\textdagger");n(l,o,g,"\u2021","\\ddag");n(w,o,g,"\u2021","\\ddag");n(w,o,g,"\u2021","\\textdaggerdbl");n(l,o,o0,"\u23B1","\\rmoustache",!0);n(l,o,f0,"\u23B0","\\lmoustache",!0);n(l,o,o0,"\u27EF","\\rgroup",!0);n(l,o,f0,"\u27EE","\\lgroup",!0);n(l,o,D,"\u2213","\\mp",!0);n(l,o,D,"\u2296","\\ominus",!0);n(l,o,D,"\u228E","\\uplus",!0);n(l,o,D,"\u2293","\\sqcap",!0);n(l,o,D,"\u2217","\\ast");n(l,o,D,"\u2294","\\sqcup",!0);n(l,o,D,"\u25EF","\\bigcirc",!0);n(l,o,D,"\u2219","\\bullet",!0);n(l,o,D,"\u2021","\\ddagger");n(l,o,D,"\u2240","\\wr",!0);n(l,o,D,"\u2A3F","\\amalg");n(l,o,D,"&","\\And");n(l,o,f,"\u27F5","\\longleftarrow",!0);n(l,o,f,"\u21D0","\\Leftarrow",!0);n(l,o,f,"\u27F8","\\Longleftarrow",!0);n(l,o,f,"\u27F6","\\longrightarrow",!0);n(l,o,f,"\u21D2","\\Rightarrow",!0);n(l,o,f,"\u27F9","\\Longrightarrow",!0);n(l,o,f,"\u2194","\\leftrightarrow",!0);n(l,o,f,"\u27F7","\\longleftrightarrow",!0);n(l,o,f,"\u21D4","\\Leftrightarrow",!0);n(l,o,f,"\u27FA","\\Longleftrightarrow",!0);n(l,o,f,"\u21A6","\\mapsto",!0);n(l,o,f,"\u27FC","\\longmapsto",!0);n(l,o,f,"\u2197","\\nearrow",!0);n(l,o,f,"\u21A9","\\hookleftarrow",!0);n(l,o,f,"\u21AA","\\hookrightarrow",!0);n(l,o,f,"\u2198","\\searrow",!0);n(l,o,f,"\u21BC","\\leftharpoonup",!0);n(l,o,f,"\u21C0","\\rightharpoonup",!0);n(l,o,f,"\u2199","\\swarrow",!0);n(l,o,f,"\u21BD","\\leftharpoondown",!0);n(l,o,f,"\u21C1","\\rightharpoondown",!0);n(l,o,f,"\u2196","\\nwarrow",!0);n(l,o,f,"\u21CC","\\rightleftharpoons",!0);n(l,d,f,"\u226E","\\nless",!0);n(l,d,f,"\uE010","\\@nleqslant");n(l,d,f,"\uE011","\\@nleqq");n(l,d,f,"\u2A87","\\lneq",!0);n(l,d,f,"\u2268","\\lneqq",!0);n(l,d,f,"\uE00C","\\@lvertneqq");n(l,d,f,"\u22E6","\\lnsim",!0);n(l,d,f,"\u2A89","\\lnapprox",!0);n(l,d,f,"\u2280","\\nprec",!0);n(l,d,f,"\u22E0","\\npreceq",!0);n(l,d,f,"\u22E8","\\precnsim",!0);n(l,d,f,"\u2AB9","\\precnapprox",!0);n(l,d,f,"\u2241","\\nsim",!0);n(l,d,f,"\uE006","\\@nshortmid");n(l,d,f,"\u2224","\\nmid",!0);n(l,d,f,"\u22AC","\\nvdash",!0);n(l,d,f,"\u22AD","\\nvDash",!0);n(l,d,f,"\u22EA","\\ntriangleleft");n(l,d,f,"\u22EC","\\ntrianglelefteq",!0);n(l,d,f,"\u228A","\\subsetneq",!0);n(l,d,f,"\uE01A","\\@varsubsetneq");n(l,d,f,"\u2ACB","\\subsetneqq",!0);n(l,d,f,"\uE017","\\@varsubsetneqq");n(l,d,f,"\u226F","\\ngtr",!0);n(l,d,f,"\uE00F","\\@ngeqslant");n(l,d,f,"\uE00E","\\@ngeqq");n(l,d,f,"\u2A88","\\gneq",!0);n(l,d,f,"\u2269","\\gneqq",!0);n(l,d,f,"\uE00D","\\@gvertneqq");n(l,d,f,"\u22E7","\\gnsim",!0);n(l,d,f,"\u2A8A","\\gnapprox",!0);n(l,d,f,"\u2281","\\nsucc",!0);n(l,d,f,"\u22E1","\\nsucceq",!0);n(l,d,f,"\u22E9","\\succnsim",!0);n(l,d,f,"\u2ABA","\\succnapprox",!0);n(l,d,f,"\u2246","\\ncong",!0);n(l,d,f,"\uE007","\\@nshortparallel");n(l,d,f,"\u2226","\\nparallel",!0);n(l,d,f,"\u22AF","\\nVDash",!0);n(l,d,f,"\u22EB","\\ntriangleright");n(l,d,f,"\u22ED","\\ntrianglerighteq",!0);n(l,d,f,"\uE018","\\@nsupseteqq");n(l,d,f,"\u228B","\\supsetneq",!0);n(l,d,f,"\uE01B","\\@varsupsetneq");n(l,d,f,"\u2ACC","\\supsetneqq",!0);n(l,d,f,"\uE019","\\@varsupsetneqq");n(l,d,f,"\u22AE","\\nVdash",!0);n(l,d,f,"\u2AB5","\\precneqq",!0);n(l,d,f,"\u2AB6","\\succneqq",!0);n(l,d,f,"\uE016","\\@nsubseteqq");n(l,d,D,"\u22B4","\\unlhd");n(l,d,D,"\u22B5","\\unrhd");n(l,d,f,"\u219A","\\nleftarrow",!0);n(l,d,f,"\u219B","\\nrightarrow",!0);n(l,d,f,"\u21CD","\\nLeftarrow",!0);n(l,d,f,"\u21CF","\\nRightarrow",!0);n(l,d,f,"\u21AE","\\nleftrightarrow",!0);n(l,d,f,"\u21CE","\\nLeftrightarrow",!0);n(l,d,f,"\u25B3","\\vartriangle");n(l,d,g,"\u210F","\\hslash");n(l,d,g,"\u25BD","\\triangledown");n(l,d,g,"\u25CA","\\lozenge");n(l,d,g,"\u24C8","\\circledS");n(l,d,g,"\xAE","\\circledR");n(w,d,g,"\xAE","\\circledR");n(l,d,g,"\u2221","\\measuredangle",!0);n(l,d,g,"\u2204","\\nexists");n(l,d,g,"\u2127","\\mho");n(l,d,g,"\u2132","\\Finv",!0);n(l,d,g,"\u2141","\\Game",!0);n(l,d,g,"\u2035","\\backprime");n(l,d,g,"\u25B2","\\blacktriangle");n(l,d,g,"\u25BC","\\blacktriangledown");n(l,d,g,"\u25A0","\\blacksquare");n(l,d,g,"\u29EB","\\blacklozenge");n(l,d,g,"\u2605","\\bigstar");n(l,d,g,"\u2222","\\sphericalangle",!0);n(l,d,g,"\u2201","\\complement",!0);n(l,d,g,"\xF0","\\eth",!0);n(w,o,g,"\xF0","\xF0");n(l,d,g,"\u2571","\\diagup");n(l,d,g,"\u2572","\\diagdown");n(l,d,g,"\u25A1","\\square");n(l,d,g,"\u25A1","\\Box");n(l,d,g,"\u25CA","\\Diamond");n(l,d,g,"\xA5","\\yen",!0);n(w,d,g,"\xA5","\\yen",!0);n(l,d,g,"\u2713","\\checkmark",!0);n(w,d,g,"\u2713","\\checkmark");n(l,d,g,"\u2136","\\beth",!0);n(l,d,g,"\u2138","\\daleth",!0);n(l,d,g,"\u2137","\\gimel",!0);n(l,d,g,"\u03DD","\\digamma",!0);n(l,d,g,"\u03F0","\\varkappa");n(l,d,f0,"\u250C","\\@ulcorner",!0);n(l,d,o0,"\u2510","\\@urcorner",!0);n(l,d,f0,"\u2514","\\@llcorner",!0);n(l,d,o0,"\u2518","\\@lrcorner",!0);n(l,d,f,"\u2266","\\leqq",!0);n(l,d,f,"\u2A7D","\\leqslant",!0);n(l,d,f,"\u2A95","\\eqslantless",!0);n(l,d,f,"\u2272","\\lesssim",!0);n(l,d,f,"\u2A85","\\lessapprox",!0);n(l,d,f,"\u224A","\\approxeq",!0);n(l,d,D,"\u22D6","\\lessdot");n(l,d,f,"\u22D8","\\lll",!0);n(l,d,f,"\u2276","\\lessgtr",!0);n(l,d,f,"\u22DA","\\lesseqgtr",!0);n(l,d,f,"\u2A8B","\\lesseqqgtr",!0);n(l,d,f,"\u2251","\\doteqdot");n(l,d,f,"\u2253","\\risingdotseq",!0);n(l,d,f,"\u2252","\\fallingdotseq",!0);n(l,d,f,"\u223D","\\backsim",!0);n(l,d,f,"\u22CD","\\backsimeq",!0);n(l,d,f,"\u2AC5","\\subseteqq",!0);n(l,d,f,"\u22D0","\\Subset",!0);n(l,d,f,"\u228F","\\sqsubset",!0);n(l,d,f,"\u227C","\\preccurlyeq",!0);n(l,d,f,"\u22DE","\\curlyeqprec",!0);n(l,d,f,"\u227E","\\precsim",!0);n(l,d,f,"\u2AB7","\\precapprox",!0);n(l,d,f,"\u22B2","\\vartriangleleft");n(l,d,f,"\u22B4","\\trianglelefteq");n(l,d,f,"\u22A8","\\vDash",!0);n(l,d,f,"\u22AA","\\Vvdash",!0);n(l,d,f,"\u2323","\\smallsmile");n(l,d,f,"\u2322","\\smallfrown");n(l,d,f,"\u224F","\\bumpeq",!0);n(l,d,f,"\u224E","\\Bumpeq",!0);n(l,d,f,"\u2267","\\geqq",!0);n(l,d,f,"\u2A7E","\\geqslant",!0);n(l,d,f,"\u2A96","\\eqslantgtr",!0);n(l,d,f,"\u2273","\\gtrsim",!0);n(l,d,f,"\u2A86","\\gtrapprox",!0);n(l,d,D,"\u22D7","\\gtrdot");n(l,d,f,"\u22D9","\\ggg",!0);n(l,d,f,"\u2277","\\gtrless",!0);n(l,d,f,"\u22DB","\\gtreqless",!0);n(l,d,f,"\u2A8C","\\gtreqqless",!0);n(l,d,f,"\u2256","\\eqcirc",!0);n(l,d,f,"\u2257","\\circeq",!0);n(l,d,f,"\u225C","\\triangleq",!0);n(l,d,f,"\u223C","\\thicksim");n(l,d,f,"\u2248","\\thickapprox");n(l,d,f,"\u2AC6","\\supseteqq",!0);n(l,d,f,"\u22D1","\\Supset",!0);n(l,d,f,"\u2290","\\sqsupset",!0);n(l,d,f,"\u227D","\\succcurlyeq",!0);n(l,d,f,"\u22DF","\\curlyeqsucc",!0);n(l,d,f,"\u227F","\\succsim",!0);n(l,d,f,"\u2AB8","\\succapprox",!0);n(l,d,f,"\u22B3","\\vartriangleright");n(l,d,f,"\u22B5","\\trianglerighteq");n(l,d,f,"\u22A9","\\Vdash",!0);n(l,d,f,"\u2223","\\shortmid");n(l,d,f,"\u2225","\\shortparallel");n(l,d,f,"\u226C","\\between",!0);n(l,d,f,"\u22D4","\\pitchfork",!0);n(l,d,f,"\u221D","\\varpropto");n(l,d,f,"\u25C0","\\blacktriangleleft");n(l,d,f,"\u2234","\\therefore",!0);n(l,d,f,"\u220D","\\backepsilon");n(l,d,f,"\u25B6","\\blacktriangleright");n(l,d,f,"\u2235","\\because",!0);n(l,d,f,"\u22D8","\\llless");n(l,d,f,"\u22D9","\\gggtr");n(l,d,D,"\u22B2","\\lhd");n(l,d,D,"\u22B3","\\rhd");n(l,d,f,"\u2242","\\eqsim",!0);n(l,o,f,"\u22C8","\\Join");n(l,d,f,"\u2251","\\Doteq",!0);n(l,d,D,"\u2214","\\dotplus",!0);n(l,d,D,"\u2216","\\smallsetminus");n(l,d,D,"\u22D2","\\Cap",!0);n(l,d,D,"\u22D3","\\Cup",!0);n(l,d,D,"\u2A5E","\\doublebarwedge",!0);n(l,d,D,"\u229F","\\boxminus",!0);n(l,d,D,"\u229E","\\boxplus",!0);n(l,d,D,"\u22C7","\\divideontimes",!0);n(l,d,D,"\u22C9","\\ltimes",!0);n(l,d,D,"\u22CA","\\rtimes",!0);n(l,d,D,"\u22CB","\\leftthreetimes",!0);n(l,d,D,"\u22CC","\\rightthreetimes",!0);n(l,d,D,"\u22CF","\\curlywedge",!0);n(l,d,D,"\u22CE","\\curlyvee",!0);n(l,d,D,"\u229D","\\circleddash",!0);n(l,d,D,"\u229B","\\circledast",!0);n(l,d,D,"\u22C5","\\centerdot");n(l,d,D,"\u22BA","\\intercal",!0);n(l,d,D,"\u22D2","\\doublecap");n(l,d,D,"\u22D3","\\doublecup");n(l,d,D,"\u22A0","\\boxtimes",!0);n(l,d,f,"\u21E2","\\dashrightarrow",!0);n(l,d,f,"\u21E0","\\dashleftarrow",!0);n(l,d,f,"\u21C7","\\leftleftarrows",!0);n(l,d,f,"\u21C6","\\leftrightarrows",!0);n(l,d,f,"\u21DA","\\Lleftarrow",!0);n(l,d,f,"\u219E","\\twoheadleftarrow",!0);n(l,d,f,"\u21A2","\\leftarrowtail",!0);n(l,d,f,"\u21AB","\\looparrowleft",!0);n(l,d,f,"\u21CB","\\leftrightharpoons",!0);n(l,d,f,"\u21B6","\\curvearrowleft",!0);n(l,d,f,"\u21BA","\\circlearrowleft",!0);n(l,d,f,"\u21B0","\\Lsh",!0);n(l,d,f,"\u21C8","\\upuparrows",!0);n(l,d,f,"\u21BF","\\upharpoonleft",!0);n(l,d,f,"\u21C3","\\downharpoonleft",!0);n(l,o,f,"\u22B6","\\origof",!0);n(l,o,f,"\u22B7","\\imageof",!0);n(l,d,f,"\u22B8","\\multimap",!0);n(l,d,f,"\u21AD","\\leftrightsquigarrow",!0);n(l,d,f,"\u21C9","\\rightrightarrows",!0);n(l,d,f,"\u21C4","\\rightleftarrows",!0);n(l,d,f,"\u21A0","\\twoheadrightarrow",!0);n(l,d,f,"\u21A3","\\rightarrowtail",!0);n(l,d,f,"\u21AC","\\looparrowright",!0);n(l,d,f,"\u21B7","\\curvearrowright",!0);n(l,d,f,"\u21BB","\\circlearrowright",!0);n(l,d,f,"\u21B1","\\Rsh",!0);n(l,d,f,"\u21CA","\\downdownarrows",!0);n(l,d,f,"\u21BE","\\upharpoonright",!0);n(l,d,f,"\u21C2","\\downharpoonright",!0);n(l,d,f,"\u21DD","\\rightsquigarrow",!0);n(l,d,f,"\u21DD","\\leadsto");n(l,d,f,"\u21DB","\\Rrightarrow",!0);n(l,d,f,"\u21BE","\\restriction");n(l,o,g,"\u2018","`");n(l,o,g,"$","\\$");n(w,o,g,"$","\\$");n(w,o,g,"$","\\textdollar");n(l,o,g,"%","\\%");n(w,o,g,"%","\\%");n(l,o,g,"_","\\_");n(w,o,g,"_","\\_");n(w,o,g,"_","\\textunderscore");n(l,o,g,"\u2220","\\angle",!0);n(l,o,g,"\u221E","\\infty",!0);n(l,o,g,"\u2032","\\prime");n(l,o,g,"\u25B3","\\triangle");n(l,o,g,"\u0393","\\Gamma",!0);n(l,o,g,"\u0394","\\Delta",!0);n(l,o,g,"\u0398","\\Theta",!0);n(l,o,g,"\u039B","\\Lambda",!0);n(l,o,g,"\u039E","\\Xi",!0);n(l,o,g,"\u03A0","\\Pi",!0);n(l,o,g,"\u03A3","\\Sigma",!0);n(l,o,g,"\u03A5","\\Upsilon",!0);n(l,o,g,"\u03A6","\\Phi",!0);n(l,o,g,"\u03A8","\\Psi",!0);n(l,o,g,"\u03A9","\\Omega",!0);n(l,o,g,"A","\u0391");n(l,o,g,"B","\u0392");n(l,o,g,"E","\u0395");n(l,o,g,"Z","\u0396");n(l,o,g,"H","\u0397");n(l,o,g,"I","\u0399");n(l,o,g,"K","\u039A");n(l,o,g,"M","\u039C");n(l,o,g,"N","\u039D");n(l,o,g,"O","\u039F");n(l,o,g,"P","\u03A1");n(l,o,g,"T","\u03A4");n(l,o,g,"X","\u03A7");n(l,o,g,"\xAC","\\neg",!0);n(l,o,g,"\xAC","\\lnot");n(l,o,g,"\u22A4","\\top");n(l,o,g,"\u22A5","\\bot");n(l,o,g,"\u2205","\\emptyset");n(l,d,g,"\u2205","\\varnothing");n(l,o,E,"\u03B1","\\alpha",!0);n(l,o,E,"\u03B2","\\beta",!0);n(l,o,E,"\u03B3","\\gamma",!0);n(l,o,E,"\u03B4","\\delta",!0);n(l,o,E,"\u03F5","\\epsilon",!0);n(l,o,E,"\u03B6","\\zeta",!0);n(l,o,E,"\u03B7","\\eta",!0);n(l,o,E,"\u03B8","\\theta",!0);n(l,o,E,"\u03B9","\\iota",!0);n(l,o,E,"\u03BA","\\kappa",!0);n(l,o,E,"\u03BB","\\lambda",!0);n(l,o,E,"\u03BC","\\mu",!0);n(l,o,E,"\u03BD","\\nu",!0);n(l,o,E,"\u03BE","\\xi",!0);n(l,o,E,"\u03BF","\\omicron",!0);n(l,o,E,"\u03C0","\\pi",!0);n(l,o,E,"\u03C1","\\rho",!0);n(l,o,E,"\u03C3","\\sigma",!0);n(l,o,E,"\u03C4","\\tau",!0);n(l,o,E,"\u03C5","\\upsilon",!0);n(l,o,E,"\u03D5","\\phi",!0);n(l,o,E,"\u03C7","\\chi",!0);n(l,o,E,"\u03C8","\\psi",!0);n(l,o,E,"\u03C9","\\omega",!0);n(l,o,E,"\u03B5","\\varepsilon",!0);n(l,o,E,"\u03D1","\\vartheta",!0);n(l,o,E,"\u03D6","\\varpi",!0);n(l,o,E,"\u03F1","\\varrho",!0);n(l,o,E,"\u03C2","\\varsigma",!0);n(l,o,E,"\u03C6","\\varphi",!0);n(l,o,D,"\u2217","*",!0);n(l,o,D,"+","+");n(l,o,D,"\u2212","-",!0);n(l,o,D,"\u22C5","\\cdot",!0);n(l,o,D,"\u2218","\\circ",!0);n(l,o,D,"\xF7","\\div",!0);n(l,o,D,"\xB1","\\pm",!0);n(l,o,D,"\xD7","\\times",!0);n(l,o,D,"\u2229","\\cap",!0);n(l,o,D,"\u222A","\\cup",!0);n(l,o,D,"\u2216","\\setminus",!0);n(l,o,D,"\u2227","\\land");n(l,o,D,"\u2228","\\lor");n(l,o,D,"\u2227","\\wedge",!0);n(l,o,D,"\u2228","\\vee",!0);n(l,o,g,"\u221A","\\surd");n(l,o,f0,"\u27E8","\\langle",!0);n(l,o,f0,"\u2223","\\lvert");n(l,o,f0,"\u2225","\\lVert");n(l,o,o0,"?","?");n(l,o,o0,"!","!");n(l,o,o0,"\u27E9","\\rangle",!0);n(l,o,o0,"\u2223","\\rvert");n(l,o,o0,"\u2225","\\rVert");n(l,o,f,"=","=");n(l,o,f,":",":");n(l,o,f,"\u2248","\\approx",!0);n(l,o,f,"\u2245","\\cong",!0);n(l,o,f,"\u2265","\\ge");n(l,o,f,"\u2265","\\geq",!0);n(l,o,f,"\u2190","\\gets");n(l,o,f,">","\\gt",!0);n(l,o,f,"\u2208","\\in",!0);n(l,o,f,"\uE020","\\@not");n(l,o,f,"\u2282","\\subset",!0);n(l,o,f,"\u2283","\\supset",!0);n(l,o,f,"\u2286","\\subseteq",!0);n(l,o,f,"\u2287","\\supseteq",!0);n(l,d,f,"\u2288","\\nsubseteq",!0);n(l,d,f,"\u2289","\\nsupseteq",!0);n(l,o,f,"\u22A8","\\models");n(l,o,f,"\u2190","\\leftarrow",!0);n(l,o,f,"\u2264","\\le");n(l,o,f,"\u2264","\\leq",!0);n(l,o,f,"<","\\lt",!0);n(l,o,f,"\u2192","\\rightarrow",!0);n(l,o,f,"\u2192","\\to");n(l,d,f,"\u2271","\\ngeq",!0);n(l,d,f,"\u2270","\\nleq",!0);n(l,o,R0,"\xA0","\\ ");n(l,o,R0,"\xA0","\\space");n(l,o,R0,"\xA0","\\nobreakspace");n(w,o,R0,"\xA0","\\ ");n(w,o,R0,"\xA0"," ");n(w,o,R0,"\xA0","\\space");n(w,o,R0,"\xA0","\\nobreakspace");n(l,o,R0,"","\\nobreak");n(l,o,R0,"","\\allowbreak");n(l,o,ge,",",",");n(l,o,ge,";",";");n(l,d,D,"\u22BC","\\barwedge",!0);n(l,d,D,"\u22BB","\\veebar",!0);n(l,o,D,"\u2299","\\odot",!0);n(l,o,D,"\u2295","\\oplus",!0);n(l,o,D,"\u2297","\\otimes",!0);n(l,o,g,"\u2202","\\partial",!0);n(l,o,D,"\u2298","\\oslash",!0);n(l,d,D,"\u229A","\\circledcirc",!0);n(l,d,D,"\u22A1","\\boxdot",!0);n(l,o,D,"\u25B3","\\bigtriangleup");n(l,o,D,"\u25BD","\\bigtriangledown");n(l,o,D,"\u2020","\\dagger");n(l,o,D,"\u22C4","\\diamond");n(l,o,D,"\u22C6","\\star");n(l,o,D,"\u25C3","\\triangleleft");n(l,o,D,"\u25B9","\\triangleright");n(l,o,f0,"{","\\{");n(w,o,g,"{","\\{");n(w,o,g,"{","\\textbraceleft");n(l,o,o0,"}","\\}");n(w,o,g,"}","\\}");n(w,o,g,"}","\\textbraceright");n(l,o,f0,"{","\\lbrace");n(l,o,o0,"}","\\rbrace");n(l,o,f0,"[","\\lbrack",!0);n(w,o,g,"[","\\lbrack",!0);n(l,o,o0,"]","\\rbrack",!0);n(w,o,g,"]","\\rbrack",!0);n(l,o,f0,"(","\\lparen",!0);n(l,o,o0,")","\\rparen",!0);n(w,o,g,"<","\\textless",!0);n(w,o,g,">","\\textgreater",!0);n(l,o,f0,"\u230A","\\lfloor",!0);n(l,o,o0,"\u230B","\\rfloor",!0);n(l,o,f0,"\u2308","\\lceil",!0);n(l,o,o0,"\u2309","\\rceil",!0);n(l,o,g,"\\","\\backslash");n(l,o,g,"\u2223","|");n(l,o,g,"\u2223","\\vert");n(w,o,g,"|","\\textbar",!0);n(l,o,g,"\u2225","\\|");n(l,o,g,"\u2225","\\Vert");n(w,o,g,"\u2225","\\textbardbl");n(w,o,g,"~","\\textasciitilde");n(w,o,g,"\\","\\textbackslash");n(w,o,g,"^","\\textasciicircum");n(l,o,f,"\u2191","\\uparrow",!0);n(l,o,f,"\u21D1","\\Uparrow",!0);n(l,o,f,"\u2193","\\downarrow",!0);n(l,o,f,"\u21D3","\\Downarrow",!0);n(l,o,f,"\u2195","\\updownarrow",!0);n(l,o,f,"\u21D5","\\Updownarrow",!0);n(l,o,t0,"\u2210","\\coprod");n(l,o,t0,"\u22C1","\\bigvee");n(l,o,t0,"\u22C0","\\bigwedge");n(l,o,t0,"\u2A04","\\biguplus");n(l,o,t0,"\u22C2","\\bigcap");n(l,o,t0,"\u22C3","\\bigcup");n(l,o,t0,"\u222B","\\int");n(l,o,t0,"\u222B","\\intop");n(l,o,t0,"\u222C","\\iint");n(l,o,t0,"\u222D","\\iiint");n(l,o,t0,"\u220F","\\prod");n(l,o,t0,"\u2211","\\sum");n(l,o,t0,"\u2A02","\\bigotimes");n(l,o,t0,"\u2A01","\\bigoplus");n(l,o,t0,"\u2A00","\\bigodot");n(l,o,t0,"\u222E","\\oint");n(l,o,t0,"\u222F","\\oiint");n(l,o,t0,"\u2230","\\oiiint");n(l,o,t0,"\u2A06","\\bigsqcup");n(l,o,t0,"\u222B","\\smallint");n(w,o,ne,"\u2026","\\textellipsis");n(l,o,ne,"\u2026","\\mathellipsis");n(w,o,ne,"\u2026","\\ldots",!0);n(l,o,ne,"\u2026","\\ldots",!0);n(l,o,ne,"\u22EF","\\@cdots",!0);n(l,o,ne,"\u22F1","\\ddots",!0);n(l,o,g,"\u22EE","\\varvdots");n(w,o,g,"\u22EE","\\varvdots");n(l,o,j,"\u02CA","\\acute");n(l,o,j,"\u02CB","\\grave");n(l,o,j,"\xA8","\\ddot");n(l,o,j,"~","\\tilde");n(l,o,j,"\u02C9","\\bar");n(l,o,j,"\u02D8","\\breve");n(l,o,j,"\u02C7","\\check");n(l,o,j,"^","\\hat");n(l,o,j,"\u20D7","\\vec");n(l,o,j,"\u02D9","\\dot");n(l,o,j,"\u02DA","\\mathring");n(l,o,E,"\uE131","\\@imath");n(l,o,E,"\uE237","\\@jmath");n(l,o,g,"\u0131","\u0131");n(l,o,g,"\u0237","\u0237");n(w,o,g,"\u0131","\\i",!0);n(w,o,g,"\u0237","\\j",!0);n(w,o,g,"\xDF","\\ss",!0);n(w,o,g,"\xE6","\\ae",!0);n(w,o,g,"\u0153","\\oe",!0);n(w,o,g,"\xF8","\\o",!0);n(w,o,g,"\xC6","\\AE",!0);n(w,o,g,"\u0152","\\OE",!0);n(w,o,g,"\xD8","\\O",!0);n(w,o,j,"\u02CA","\\'");n(w,o,j,"\u02CB","\\`");n(w,o,j,"\u02C6","\\^");n(w,o,j,"\u02DC","\\~");n(w,o,j,"\u02C9","\\=");n(w,o,j,"\u02D8","\\u");n(w,o,j,"\u02D9","\\.");n(w,o,j,"\xB8","\\c");n(w,o,j,"\u02DA","\\r");n(w,o,j,"\u02C7","\\v");n(w,o,j,"\xA8",'\\"');n(w,o,j,"\u02DD","\\H");n(w,o,j,"\u25EF","\\textcircled");var Kr={"--":!0,"---":!0,"``":!0,"''":!0};n(w,o,g,"\u2013","--",!0);n(w,o,g,"\u2013","\\textendash");n(w,o,g,"\u2014","---",!0);n(w,o,g,"\u2014","\\textemdash");n(w,o,g,"\u2018","`",!0);n(w,o,g,"\u2018","\\textquoteleft");n(w,o,g,"\u2019","'",!0);n(w,o,g,"\u2019","\\textquoteright");n(w,o,g,"\u201C","``",!0);n(w,o,g,"\u201C","\\textquotedblleft");n(w,o,g,"\u201D","''",!0);n(w,o,g,"\u201D","\\textquotedblright");n(l,o,g,"\xB0","\\degree",!0);n(w,o,g,"\xB0","\\degree");n(w,o,g,"\xB0","\\textdegree",!0);n(l,o,g,"\xA3","\\pounds");n(l,o,g,"\xA3","\\mathsterling",!0);n(w,o,g,"\xA3","\\pounds");n(w,o,g,"\xA3","\\textsterling",!0);n(l,d,g,"\u2720","\\maltese");n(w,d,g,"\u2720","\\maltese");var cr='0123456789/@."';for(Me=0;Me{var e=r.charCodeAt(0),t=r.charCodeAt(1),a=(e-55296)*1024+(t-56320)+65536;if(119808<=a&&a<120484){var i=Math.floor((a-119808)/26);return xr[i]}else if(120782<=a&&a<=120831){var s=Math.floor((a-120782)/10);return Da[s]}else{if(a===120485||a===120486)return xr[0];if(120486{if(G0(r.classes)!==G0(e.classes)||r.skew!==e.skew||r.maxFontSize!==e.maxFontSize||r.italic!==0&&r.hasClass("mathnormal"))return!1;if(r.classes.length===1){var t=r.classes[0];if(t==="mbin"||t==="mord")return!1}for(var a of Object.keys(r.style))if(r.style[a]!==e.style[a])return!1;for(var i of Object.keys(e.style))if(r.style[i]!==e.style[i])return!1;return!0},Jr=r=>{for(var e=0;et&&(t=u.height),u.depth>a&&(a=u.depth),u.maxFontSize>i&&(i=u.maxFontSize)}e.height=t,e.depth=a,e.maxFontSize=i},k=function(e,t,a,i){var s=new U0(e,t,a,i);return Xt(s),s},V0=(r,e,t,a)=>new U0(r,e,t,a),ae=function(e,t,a){var i=k([e],[],t);return i.height=Math.max(a||t.fontMetrics().defaultRuleThickness,t.minRuleThickness),i.style.borderBottomWidth=A(i.height),i.maxFontSize=1,i},Ia=function(e,t,a,i){var s=new re(e,t,a,i);return Xt(s),s},I0=function(e){var t=new P0(e);return Xt(t),t},ie=function(e,t){return e instanceof P0?k([],[e],t):e},Na=function(e){if(e.positionType==="individualShift"){for(var t=e.children,a=[t[0]],i=-t[0].shift-t[0].elem.depth,s=i,u=1;u{var t=k(["mspace"],[],e),a=J(r,e);return t.style.marginRight=A(a),t},De=(r,e,t)=>{var a,i;switch(r){case"amsrm":a="AMS";break;case"textrm":a="Main";break;case"textsf":a="SansSerif";break;case"texttt":a="Typewriter";break;default:a=r}return e==="textbf"&&t==="textit"?i="BoldItalic":e==="textbf"?i="Bold":t==="textit"?i="Italic":i="Regular",a+"-"+i},Bt={mathbf:{variant:"bold",fontName:"Main-Bold"},mathrm:{variant:"normal",fontName:"Main-Regular"},textit:{variant:"italic",fontName:"Main-Italic"},mathit:{variant:"italic",fontName:"Main-Italic"},mathnormal:{variant:"italic",fontName:"Math-Italic"},mathsfit:{variant:"sans-serif-italic",fontName:"SansSerif-Italic"},mathbb:{variant:"double-struck",fontName:"AMS-Regular"},mathcal:{variant:"script",fontName:"Caligraphic-Regular"},mathfrak:{variant:"fraktur",fontName:"Fraktur-Regular"},mathscr:{variant:"script",fontName:"Script-Regular"},mathsf:{variant:"sans-serif",fontName:"SansSerif-Regular"},mathtt:{variant:"monospace",fontName:"Typewriter-Regular"}},_r={vec:["vec",.471,.714],oiintSize1:["oiintSize1",.957,.499],oiintSize2:["oiintSize2",1.472,.659],oiiintSize1:["oiiintSize1",1.304,.499],oiiintSize2:["oiiintSize2",1.98,.659]},e1=function(e,t){var[a,i,s]=_r[e],u=new A0(a),h=new x0([u],{width:A(i),height:A(s),style:"width:"+A(i),viewBox:"0 0 "+1e3*i+" "+1e3*s,preserveAspectRatio:"xMinYMin"}),c=V0(["overlay"],[h],t);return c.height=s,c.style.height=A(s),c.style.width=A(i),c},K={number:3,unit:"mu"},$0={number:4,unit:"mu"},D0={number:5,unit:"mu"},Fa={mord:{mop:K,mbin:$0,mrel:D0,minner:K},mop:{mord:K,mop:K,mrel:D0,minner:K},mbin:{mord:$0,mop:$0,mopen:$0,minner:$0},mrel:{mord:D0,mop:D0,mopen:D0,minner:D0},mopen:{},mclose:{mop:K,mbin:$0,mrel:D0,minner:K},mpunct:{mord:K,mop:K,mrel:D0,mopen:K,mclose:K,mpunct:K,minner:K},minner:{mord:K,mop:K,mbin:$0,mrel:D0,mopen:K,mpunct:K,minner:K}},Oa={mord:{mop:K},mop:{mord:K,mop:K},mbin:{},mrel:{},mopen:{},mclose:{mop:K},mpunct:{},minner:{mop:K}},t1={},Le={},Pe={};function B(r){for(var{type:e,names:t,props:a,handler:i,htmlBuilder:s,mathmlBuilder:u}=r,h={type:e,numArgs:a.numArgs,argTypes:a.argTypes,allowedInArgument:!!a.allowedInArgument,allowedInText:!!a.allowedInText,allowedInMath:a.allowedInMath===void 0?!0:a.allowedInMath,numOptionalArgs:a.numOptionalArgs||0,infix:!!a.infix,primitive:!!a.primitive,handler:i},c=0;c{var q=M.classes[0],C=T.classes[0];q==="mbin"&&La.has(C)?M.classes[0]="mord":C==="mbin"&&Ha.has(q)&&(T.classes[0]="mord")},{node:b},x,y),Ct(s,(T,M)=>{var q,C,R=qt(M),F=qt(T),L=R&&F?T.hasClass("mtight")?(q=Oa[R])==null?void 0:q[F]:(C=Fa[R])==null?void 0:C[F]:null;if(L)return Qr(L,v)},{node:b},x,y),s},Ct=function(e,t,a,i,s){i&&e.push(i);for(var u=0;ux=>{e.splice(b+1,0,x),u++})(u)}i&&e.pop()},r1=function(e){return e instanceof P0||e instanceof re||e instanceof U0&&e.hasClass("enclosing")?e:null},Dt=function(e,t){var a=r1(e);if(a){var i=a.children;if(i.length){if(t==="right")return Dt(i[i.length-1],"right");if(t==="left")return Dt(i[0],"left")}}return e},qt=function(e,t){if(!e)return null;t&&(e=Dt(e,t));var a=e.classes[0];return Ga[a]||null},pe=function(e,t){var a=["nulldelimiter"].concat(e.baseSizingClasses());return k(t.concat(a))},X=function(e,t,a){if(!e)return k();if(Le[e.type]){var i=Le[e.type](e,t);if(a&&t.size!==a.size){i=k(t.sizingClasses(a),[i],t);var s=t.sizeMultiplier/a.sizeMultiplier;i.height*=s,i.depth*=s}return i}else throw new z("Got group of unknown type: '"+e.type+"'")};function qe(r,e){var t=k(["base"],r,e),a=k(["strut"]);return a.style.height=A(t.height+t.depth),t.depth&&(a.style.verticalAlign=A(-t.depth)),t.children.unshift(a),t}function Et(r,e){var t=null;r.length===1&&r[0].type==="tag"&&(t=r[0].tag,r=r[0].body);var a=a0(r,e,"root"),i;a.length===2&&a[1].hasClass("tag")&&(i=a.pop());for(var s=[],u=[],h=0;h0&&(s.push(qe(u,e)),u=[]),s.push(a[h]));u.length>0&&s.push(qe(u,e));var v;t?(v=qe(a0(t,e,!0),e),v.classes=["tag"],s.push(v)):i&&s.push(i);var p=k(["katex-html"],s);if(p.setAttribute("aria-hidden","true"),v){var b=v.children[0];b.style.height=A(p.height+p.depth),p.depth&&(b.style.verticalAlign=A(-p.depth))}return p}function a1(r){return new P0(r)}var S=class{constructor(e,t,a){this.type=void 0,this.attributes=void 0,this.children=void 0,this.classes=void 0,this.type=e,this.attributes={},this.children=t||[],this.classes=a||[]}setAttribute(e,t){this.attributes[e]=t}getAttribute(e){return this.attributes[e]}toNode(){var e=document.createElementNS("http://www.w3.org/1998/Math/MathML",this.type);for(var t in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,t)&&e.setAttribute(t,this.attributes[t]);this.classes.length>0&&(e.className=G0(this.classes));for(var a=0;a0&&(e+=' class ="'+n0(G0(this.classes))+'"'),e+=">";for(var a=0;a",e}toText(){return this.children.map(e=>e.toText()).join("")}},Q=class{constructor(e){this.text=void 0,this.text=e}toNode(){return document.createTextNode(this.text)}toMarkup(){return n0(this.toText())}toText(){return this.text}},Ue=class{constructor(e){this.width=void 0,this.character=void 0,this.width=e,e>=.05555&&e<=.05556?this.character="\u200A":e>=.1666&&e<=.1667?this.character="\u2009":e>=.2222&&e<=.2223?this.character="\u2005":e>=.2777&&e<=.2778?this.character="\u2005\u200A":e>=-.05556&&e<=-.05555?this.character="\u200A\u2063":e>=-.1667&&e<=-.1666?this.character="\u2009\u2063":e>=-.2223&&e<=-.2222?this.character="\u205F\u2063":e>=-.2778&&e<=-.2777?this.character="\u2005\u2063":this.character=null}toNode(){if(this.character)return document.createTextNode(this.character);var e=document.createElementNS("http://www.w3.org/1998/Math/MathML","mspace");return e.setAttribute("width",A(this.width)),e}toMarkup(){return this.character?""+this.character+"":''}toText(){return this.character?this.character:" "}},Ua=new Set(["\\imath","\\jmath"]),Va=new Set(["mrow","mtable"]),g0=function(e,t,a){return W[t][e]&&W[t][e].replace&&e.charCodeAt(0)!==55349&&!(Kr.hasOwnProperty(e)&&a&&(a.fontFamily&&a.fontFamily.slice(4,6)==="tt"||a.font&&a.font.slice(4,6)==="tt"))&&(e=W[t][e].replace),new Q(e)},Yt=function(e){return e.length===1?e[0]:new S("mrow",e)},Xa={mathit:"italic",boldsymbol:r=>r.type==="textord"?"bold":"bold-italic",mathbf:"bold",mathbb:"double-struck",mathsfit:"sans-serif-italic",mathfrak:"fraktur",mathscr:"script",mathcal:"script",mathsf:"sans-serif",mathtt:"monospace"},$t=(r,e)=>{if(r.mode==="text"){if(e.fontFamily==="texttt")return"monospace";if(e.fontFamily==="textsf")return e.fontShape==="textit"&&e.fontWeight==="textbf"?"sans-serif-bold-italic":e.fontShape==="textit"?"sans-serif-italic":e.fontWeight==="textbf"?"bold-sans-serif":"sans-serif";if(e.fontShape==="textit"&&e.fontWeight==="textbf")return"bold-italic";if(e.fontShape==="textit")return"italic";if(e.fontWeight==="textbf")return"bold"}var t=e.font;if(!t||t==="mathnormal")return null;var a=r.mode,i=Xa[t];if(i)return typeof i=="function"?i(r):i;var s=r.text;if(Ua.has(s))return null;if(W[a][s]){var u=W[a][s].replace;u&&(s=u)}var h=Bt[t].fontName;return Ut(s,h,a)?Bt[t].variant:null};function ut(r){if(!r)return!1;if(r.type==="mi"&&r.children.length===1){var e=r.children[0];return e instanceof Q&&e.text==="."}else if(r.type==="mo"&&r.children.length===1&&r.getAttribute("separator")==="true"&&r.getAttribute("lspace")==="0em"&&r.getAttribute("rspace")==="0em"){var t=r.children[0];return t instanceof Q&&t.text===","}else return!1}var v0=function(e,t,a){if(e.length===1){var i=$(e[0],t);return a&&i instanceof S&&i.type==="mo"&&(i.setAttribute("lspace","0em"),i.setAttribute("rspace","0em")),[i]}for(var s=[],u,h=0;h=1&&(u.type==="mn"||ut(u))){var v=c.children[0];v instanceof S&&v.type==="mn"&&(v.children=[...u.children,...v.children],s.pop())}else if(u.type==="mi"&&u.children.length===1){var p=u.children[0];if(p instanceof Q&&p.text==="\u0338"&&(c.type==="mo"||c.type==="mi"||c.type==="mn")){var b=c.children[0];b instanceof Q&&b.text.length>0&&(b.text=b.text.slice(0,1)+"\u0338"+b.text.slice(1),s.pop())}}}s.push(c),u=c}return s},X0=function(e,t,a){return Yt(v0(e,t,a))},$=function(e,t){if(!e)return new S("mrow");if(Pe[e.type])return Pe[e.type](e,t);throw new z("Got group of unknown type: '"+e.type+"'")};function wr(r,e,t,a,i){var s=v0(r,t),u;s.length===1&&s[0]instanceof S&&Va.has(s[0].type)?u=s[0]:u=new S("mrow",s);var h=new S("annotation",[new Q(e)]);h.setAttribute("encoding","application/x-tex");var c=new S("semantics",[u,h]),v=new S("math",[c]);v.setAttribute("xmlns","http://www.w3.org/1998/Math/MathML"),a&&v.setAttribute("display","block");var p=i?"katex":"katex-mathml";return k([p],[v])}var Ya=[[1,1,1],[2,1,1],[3,1,1],[4,2,1],[5,2,1],[6,3,1],[7,4,2],[8,6,3],[9,7,6],[10,8,7],[11,10,9]],kr=[.5,.6,.7,.8,.9,1,1.2,1.44,1.728,2.074,2.488],Sr=function(e,t){return t.size<2?e:Ya[e-1][t.size-1]},Ve=class r{constructor(e){this.style=void 0,this.color=void 0,this.size=void 0,this.textSize=void 0,this.phantom=void 0,this.font=void 0,this.fontFamily=void 0,this.fontWeight=void 0,this.fontShape=void 0,this.sizeMultiplier=void 0,this.maxSize=void 0,this.minRuleThickness=void 0,this._fontMetrics=void 0,this.style=e.style,this.color=e.color,this.size=e.size||r.BASESIZE,this.textSize=e.textSize||this.size,this.phantom=!!e.phantom,this.font=e.font||"",this.fontFamily=e.fontFamily||"",this.fontWeight=e.fontWeight||"",this.fontShape=e.fontShape||"",this.sizeMultiplier=kr[this.size-1],this.maxSize=e.maxSize,this.minRuleThickness=e.minRuleThickness,this._fontMetrics=void 0}extend(e){var t={style:this.style,size:this.size,textSize:this.textSize,color:this.color,phantom:this.phantom,font:this.font,fontFamily:this.fontFamily,fontWeight:this.fontWeight,fontShape:this.fontShape,maxSize:this.maxSize,minRuleThickness:this.minRuleThickness};return Object.assign(t,e),new r(t)}havingStyle(e){return this.style===e?this:this.extend({style:e,size:Sr(this.textSize,e)})}havingCrampedStyle(){return this.havingStyle(this.style.cramp())}havingSize(e){return this.size===e&&this.textSize===e?this:this.extend({style:this.style.text(),size:e,textSize:e,sizeMultiplier:kr[e-1]})}havingBaseStyle(e){e=e||this.style.text();var t=Sr(r.BASESIZE,e);return this.size===t&&this.textSize===r.BASESIZE&&this.style===e?this:this.extend({style:e,size:t})}havingBaseSizing(){var e;switch(this.style.id){case 4:case 5:e=3;break;case 6:case 7:e=1;break;default:e=6}return this.extend({style:this.style.text(),size:e})}withColor(e){return this.extend({color:e})}withPhantom(){return this.extend({phantom:!0})}withFont(e){return this.extend({font:e})}withTextFontFamily(e){return this.extend({fontFamily:e,font:""})}withTextFontWeight(e){return this.extend({fontWeight:e,font:""})}withTextFontShape(e){return this.extend({fontShape:e,font:""})}sizingClasses(e){return e.size!==this.size?["sizing","reset-size"+e.size,"size"+this.size]:[]}baseSizingClasses(){return this.size!==r.BASESIZE?["sizing","reset-size"+this.size,"size"+r.BASESIZE]:[]}fontMetrics(){return this._fontMetrics||(this._fontMetrics=Ba(this.size)),this._fontMetrics}getColor(){return this.phantom?"transparent":this.color}};Ve.BASESIZE=6;var i1=function(e){return new Ve({style:e.displayMode?N.DISPLAY:N.TEXT,maxSize:e.maxSize,minRuleThickness:e.minRuleThickness})},n1=function(e,t){if(t.displayMode){var a=["katex-display"];t.leqno&&a.push("leqno"),t.fleqn&&a.push("fleqn"),e=k(a,[e])}return e},$a=function(e,t,a){var i=i1(a),s;if(a.output==="mathml")return wr(e,t,i,a.displayMode,!0);if(a.output==="html"){var u=Et(e,i);s=k(["katex"],[u])}else{var h=wr(e,t,i,a.displayMode,!1),c=Et(e,i);s=k(["katex"],[h,c])}return n1(s,a)},Wa=function(e,t,a){var i=i1(a),s=Et(e,i),u=k(["katex"],[s]);return n1(u,a)},ja={widehat:"^",widecheck:"\u02C7",widetilde:"~",utilde:"~",overleftarrow:"\u2190",underleftarrow:"\u2190",xleftarrow:"\u2190",overrightarrow:"\u2192",underrightarrow:"\u2192",xrightarrow:"\u2192",underbrace:"\u23DF",overbrace:"\u23DE",underbracket:"\u23B5",overbracket:"\u23B4",overgroup:"\u23E0",undergroup:"\u23E1",overleftrightarrow:"\u2194",underleftrightarrow:"\u2194",xleftrightarrow:"\u2194",Overrightarrow:"\u21D2",xRightarrow:"\u21D2",overleftharpoon:"\u21BC",xleftharpoonup:"\u21BC",overrightharpoon:"\u21C0",xrightharpoonup:"\u21C0",xLeftarrow:"\u21D0",xLeftrightarrow:"\u21D4",xhookleftarrow:"\u21A9",xhookrightarrow:"\u21AA",xmapsto:"\u21A6",xrightharpoondown:"\u21C1",xleftharpoondown:"\u21BD",xrightleftharpoons:"\u21CC",xleftrightharpoons:"\u21CB",xtwoheadleftarrow:"\u219E",xtwoheadrightarrow:"\u21A0",xlongequal:"=",xtofrom:"\u21C4",xrightleftarrows:"\u21C4",xrightequilibrium:"\u21CC",xleftequilibrium:"\u21CB","\\cdrightarrow":"\u2192","\\cdleftarrow":"\u2190","\\cdlongequal":"="},je=function(e){var t=new S("mo",[new Q(ja[e.replace(/^\\/,"")])]);return t.setAttribute("stretchy","true"),t},Za={overrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],overleftarrow:[["leftarrow"],.888,522,"xMinYMin"],underrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],underleftarrow:[["leftarrow"],.888,522,"xMinYMin"],xrightarrow:[["rightarrow"],1.469,522,"xMaxYMin"],"\\cdrightarrow":[["rightarrow"],3,522,"xMaxYMin"],xleftarrow:[["leftarrow"],1.469,522,"xMinYMin"],"\\cdleftarrow":[["leftarrow"],3,522,"xMinYMin"],Overrightarrow:[["doublerightarrow"],.888,560,"xMaxYMin"],xRightarrow:[["doublerightarrow"],1.526,560,"xMaxYMin"],xLeftarrow:[["doubleleftarrow"],1.526,560,"xMinYMin"],overleftharpoon:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoonup:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoondown:[["leftharpoondown"],.888,522,"xMinYMin"],overrightharpoon:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoonup:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoondown:[["rightharpoondown"],.888,522,"xMaxYMin"],xlongequal:[["longequal"],.888,334,"xMinYMin"],"\\cdlongequal":[["longequal"],3,334,"xMinYMin"],xtwoheadleftarrow:[["twoheadleftarrow"],.888,334,"xMinYMin"],xtwoheadrightarrow:[["twoheadrightarrow"],.888,334,"xMaxYMin"],overleftrightarrow:[["leftarrow","rightarrow"],.888,522],overbrace:[["leftbrace","midbrace","rightbrace"],1.6,548],underbrace:[["leftbraceunder","midbraceunder","rightbraceunder"],1.6,548],underleftrightarrow:[["leftarrow","rightarrow"],.888,522],xleftrightarrow:[["leftarrow","rightarrow"],1.75,522],xLeftrightarrow:[["doubleleftarrow","doublerightarrow"],1.75,560],xrightleftharpoons:[["leftharpoondownplus","rightharpoonplus"],1.75,716],xleftrightharpoons:[["leftharpoonplus","rightharpoondownplus"],1.75,716],xhookleftarrow:[["leftarrow","righthook"],1.08,522],xhookrightarrow:[["lefthook","rightarrow"],1.08,522],overlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],underlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],overbracket:[["leftbracketover","rightbracketover"],1.6,440],underbracket:[["leftbracketunder","rightbracketunder"],1.6,410],overgroup:[["leftgroup","rightgroup"],.888,342],undergroup:[["leftgroupunder","rightgroupunder"],.888,342],xmapsto:[["leftmapsto","rightarrow"],1.5,522],xtofrom:[["leftToFrom","rightToFrom"],1.75,528],xrightleftarrows:[["baraboveleftarrow","rightarrowabovebar"],1.75,901],xrightequilibrium:[["baraboveshortleftharpoon","rightharpoonaboveshortbar"],1.75,716],xleftequilibrium:[["shortbaraboveleftharpoon","shortrightharpoonabovebar"],1.75,716]},Ka=new Set(["widehat","widecheck","widetilde","utilde"]),Ze=function(e,t){function a(){var h=4e5,c=e.label.slice(1);if(Ka.has(c)&&"base"in e){var v=e.base.type==="ordgroup"?e.base.body.length:1,p,b,x;if(v>5)c==="widehat"||c==="widecheck"?(p=420,h=2364,x=.42,b=c+"4"):(p=312,h=2340,x=.34,b="tilde4");else{var y=[1,1,2,2,3,3][v];c==="widehat"||c==="widecheck"?(h=[0,1062,2364,2364,2364][y],p=[0,239,300,360,420][y],x=[0,.24,.3,.3,.36,.42][y],b=c+y):(h=[0,600,1033,2339,2340][y],p=[0,260,286,306,312][y],x=[0,.26,.286,.3,.306,.34][y],b="tilde"+y)}var T=new A0(b),M=new x0([T],{width:"100%",height:A(x),viewBox:"0 0 "+h+" "+p,preserveAspectRatio:"none"});return{span:V0([],[M],t),minWidth:0,height:x}}else{var q=[],C=Za[c];if(!C)throw new Error('No SVG data for "'+c+'".');var[R,F,L]=C,H=L/1e3,P=R.length,G,Y;if(P===1){if(C.length!==4)throw new Error('Expected 4-tuple for single-path SVG data "'+c+'".');G=["hide-tail"],Y=[C[3]]}else if(P===2)G=["halfarrow-left","halfarrow-right"],Y=["xMinYMin","xMaxYMin"];else if(P===3)G=["brace-left","brace-center","brace-right"],Y=["xMinYMin","xMidYMin","xMaxYMin"];else throw new Error(`Correct katexImagesData or update code here to support + `+P+" children.");for(var U=0;U0&&(i.style.minWidth=A(s)),i},Ja=function(e,t,a,i,s){var u,h=e.height+e.depth+a+i;if(/fbox|color|angl/.test(t)){if(u=k(["stretchy",t],[],s),t==="fbox"){var c=s.color&&s.getColor();c&&(u.style.borderColor=c)}}else{var v=[];/^[bx]cancel$/.test(t)&&v.push(new ve({x1:"0",y1:"0",x2:"100%",y2:"100%","stroke-width":"0.046em"})),/^x?cancel$/.test(t)&&v.push(new ve({x1:"0",y1:"100%",x2:"100%",y2:"0","stroke-width":"0.046em"}));var p=new x0(v,{width:"100%",height:A(h)});u=V0([],[p],s)}return u.height=h,u.style.height=A(h),u},Qa={bin:1,close:1,inner:1,open:1,punct:1,rel:1},_a={"accent-token":1,mathord:1,"op-token":1,spacing:1,textord:1};function e4(r){return r in Qa}function O(r,e){if(!r||r.type!==e)throw new Error("Expected node of type "+e+", but got "+(r?"node of type "+r.type:String(r)));return r}function Ke(r){var e=Je(r);if(!e)throw new Error("Expected node of symbol group type, but got "+(r?"node of type "+r.type:String(r)));return e}function Je(r){return r&&(r.type==="atom"||_a.hasOwnProperty(r.type))?r:null}var s1=r=>{if(r instanceof u0)return r;if(Ma(r)&&r.children.length===1)return s1(r.children[0])},Wt=(r,e)=>{var t,a,i;r&&r.type==="supsub"?(a=O(r.base,"accent"),t=a.base,r.base=t,i=Aa(X(r,e)),r.base=a):(a=O(r,"accent"),t=a.base);var s=X(t,e.havingCrampedStyle()),u=a.isShifty&&E0(t),h=0;if(u){var c,v;h=(c=(v=s1(s))==null?void 0:v.skew)!=null?c:0}var p=a.label==="\\c",b=p?s.height+s.depth:Math.min(s.height,e.fontMetrics().xHeight),x;if(a.isStretchy)x=Ze(a,e),x=V({positionType:"firstBaseline",children:[{type:"elem",elem:s},{type:"elem",elem:x,wrapperClasses:["svg-align"],wrapperStyle:h>0?{width:"calc(100% - "+A(2*h)+")",marginLeft:A(2*h)}:void 0}]});else{var y,T;a.label==="\\vec"?(y=e1("vec",e),T=_r.vec[1]):(y=We({type:"textord",mode:a.mode,text:a.label},e,"textord"),y=za(y),y.italic=0,T=y.width,p&&(b+=y.depth)),x=k(["accent-body"],[y]);var M=a.label==="\\textcircled";M&&(x.classes.push("accent-full"),b=s.height);var q=h;M||(q-=T/2),x.style.left=A(q),a.label==="\\textcircled"&&(x.style.top=".2em"),x=V({positionType:"firstBaseline",children:[{type:"elem",elem:s},{type:"kern",size:-b},{type:"elem",elem:x}]})}var C=k(["mord","accent"],[x],e);return i?(i.children[0]=C,i.height=Math.max(C.height,i.height),i.classes[0]="mord",i):C},l1=(r,e)=>{var t=r.isStretchy?je(r.label):new S("mo",[g0(r.label,r.mode)]),a=new S("mover",[$(r.base,e),t]);return a.setAttribute("accent","true"),a},t4=new RegExp(["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring"].map(r=>"\\"+r).join("|"));B({type:"accent",names:["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring","\\widecheck","\\widehat","\\widetilde","\\overrightarrow","\\overleftarrow","\\Overrightarrow","\\overleftrightarrow","\\overgroup","\\overlinesegment","\\overleftharpoon","\\overrightharpoon"],props:{numArgs:1},handler:(r,e)=>{var t=Ge(e[0]),a=!t4.test(r.funcName),i=!a||r.funcName==="\\widehat"||r.funcName==="\\widetilde"||r.funcName==="\\widecheck";return{type:"accent",mode:r.parser.mode,label:r.funcName,isStretchy:a,isShifty:i,base:t}},htmlBuilder:Wt,mathmlBuilder:l1});B({type:"accent",names:["\\'","\\`","\\^","\\~","\\=","\\u","\\.",'\\"',"\\c","\\r","\\H","\\v","\\textcircled"],props:{numArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["primitive"]},handler:(r,e)=>{var t=e[0],a=r.parser.mode;return a==="math"&&(r.parser.settings.reportNonstrict("mathVsTextAccents","LaTeX's accent "+r.funcName+" works only in text mode"),a="text"),{type:"accent",mode:a,label:r.funcName,isStretchy:!1,isShifty:!0,base:t}},htmlBuilder:Wt,mathmlBuilder:l1});B({type:"accentUnder",names:["\\underleftarrow","\\underrightarrow","\\underleftrightarrow","\\undergroup","\\underlinesegment","\\utilde"],props:{numArgs:1},handler:(r,e)=>{var{parser:t,funcName:a}=r,i=e[0];return{type:"accentUnder",mode:t.mode,label:a,base:i}},htmlBuilder:(r,e)=>{var t=X(r.base,e),a=Ze(r,e),i=r.label==="\\utilde"?.12:0,s=V({positionType:"top",positionData:t.height,children:[{type:"elem",elem:a,wrapperClasses:["svg-align"]},{type:"kern",size:i},{type:"elem",elem:t}]});return k(["mord","accentunder"],[s],e)},mathmlBuilder:(r,e)=>{var t=je(r.label),a=new S("munder",[$(r.base,e),t]);return a.setAttribute("accentunder","true"),a}});var Ee=r=>{var e=new S("mpadded",r?[r]:[]);return e.setAttribute("width","+0.6em"),e.setAttribute("lspace","0.3em"),e};B({type:"xArrow",names:["\\xleftarrow","\\xrightarrow","\\xLeftarrow","\\xRightarrow","\\xleftrightarrow","\\xLeftrightarrow","\\xhookleftarrow","\\xhookrightarrow","\\xmapsto","\\xrightharpoondown","\\xrightharpoonup","\\xleftharpoondown","\\xleftharpoonup","\\xrightleftharpoons","\\xleftrightharpoons","\\xlongequal","\\xtwoheadrightarrow","\\xtwoheadleftarrow","\\xtofrom","\\xrightleftarrows","\\xrightequilibrium","\\xleftequilibrium","\\\\cdrightarrow","\\\\cdleftarrow","\\\\cdlongequal"],props:{numArgs:1,numOptionalArgs:1},handler(r,e,t){var{parser:a,funcName:i}=r;return{type:"xArrow",mode:a.mode,label:i,body:e[0],below:t[0]}},htmlBuilder(r,e){var t=e.style,a=e.havingStyle(t.sup()),i=ie(X(r.body,a,e),e),s=r.label.slice(0,2)==="\\x"?"x":"cd";i.classes.push(s+"-arrow-pad");var u;r.below&&(a=e.havingStyle(t.sub()),u=ie(X(r.below,a,e),e),u.classes.push(s+"-arrow-pad"));var h=Ze(r,e),c=-e.fontMetrics().axisHeight+.5*h.height,v=-e.fontMetrics().axisHeight-.5*h.height-.111;(i.depth>.25||r.label==="\\xleftequilibrium")&&(v-=i.depth);var p;if(u){var b=-e.fontMetrics().axisHeight+u.height+.5*h.height+.111;p=V({positionType:"individualShift",children:[{type:"elem",elem:i,shift:v},{type:"elem",elem:h,shift:c,wrapperClasses:["svg-align"]},{type:"elem",elem:u,shift:b}]})}else p=V({positionType:"individualShift",children:[{type:"elem",elem:i,shift:v},{type:"elem",elem:h,shift:c,wrapperClasses:["svg-align"]}]});return k(["mrel","x-arrow"],[p],e)},mathmlBuilder(r,e){var t=je(r.label);t.setAttribute("minsize",r.label.charAt(0)==="x"?"1.75em":"3.0em");var a;if(r.body){var i=Ee($(r.body,e));if(r.below){var s=Ee($(r.below,e));a=new S("munderover",[t,s,i])}else a=new S("mover",[t,i])}else if(r.below){var u=Ee($(r.below,e));a=new S("munder",[t,u])}else a=Ee(),a=new S("mover",[t,a]);return a}});function u1(r,e){var t=a0(r.body,e,!0);return k([r.mclass],t,e)}function o1(r,e){var t,a=v0(r.body,e);return r.mclass==="minner"?t=new S("mpadded",a):r.mclass==="mord"?r.isCharacterBox?(t=a[0],t.type="mi"):t=new S("mi",a):(r.isCharacterBox?(t=a[0],t.type="mo"):t=new S("mo",a),r.mclass==="mbin"?(t.attributes.lspace="0.22em",t.attributes.rspace="0.22em"):r.mclass==="mpunct"?(t.attributes.lspace="0em",t.attributes.rspace="0.17em"):r.mclass==="mopen"||r.mclass==="mclose"?(t.attributes.lspace="0em",t.attributes.rspace="0em"):r.mclass==="minner"&&(t.attributes.lspace="0.0556em",t.attributes.width="+0.1111em")),t}B({type:"mclass",names:["\\mathord","\\mathbin","\\mathrel","\\mathopen","\\mathclose","\\mathpunct","\\mathinner"],props:{numArgs:1,primitive:!0},handler(r,e){var{parser:t,funcName:a}=r,i=e[0];return{type:"mclass",mode:t.mode,mclass:"m"+a.slice(5),body:e0(i),isCharacterBox:E0(i)}},htmlBuilder:u1,mathmlBuilder:o1});var Qe=r=>{var e=r.type==="ordgroup"&&r.body.length?r.body[0]:r;return e.type==="atom"&&(e.family==="bin"||e.family==="rel")?"m"+e.family:"mord"};B({type:"mclass",names:["\\@binrel"],props:{numArgs:2},handler(r,e){var{parser:t}=r;return{type:"mclass",mode:t.mode,mclass:Qe(e[0]),body:e0(e[1]),isCharacterBox:E0(e[1])}}});B({type:"mclass",names:["\\stackrel","\\overset","\\underset"],props:{numArgs:2},handler(r,e){var{parser:t,funcName:a}=r,i=e[1],s=e[0],u;a!=="\\stackrel"?u=Qe(i):u="mrel";var h={type:"op",mode:i.mode,limits:!0,alwaysHandleSupSub:!0,parentIsSupSub:!1,symbol:!1,suppressBaseShift:a!=="\\stackrel",body:e0(i)},c={type:"supsub",mode:s.mode,base:h,sup:a==="\\underset"?null:s,sub:a==="\\underset"?s:null};return{type:"mclass",mode:t.mode,mclass:u,body:[c],isCharacterBox:E0(c)}},htmlBuilder:u1,mathmlBuilder:o1});B({type:"pmb",names:["\\pmb"],props:{numArgs:1,allowedInText:!0},handler(r,e){var{parser:t}=r;return{type:"pmb",mode:t.mode,mclass:Qe(e[0]),body:e0(e[0])}},htmlBuilder(r,e){var t=a0(r.body,e,!0),a=k([r.mclass],t,e);return a.style.textShadow="0.02em 0.01em 0.04px",a},mathmlBuilder(r,e){var t=v0(r.body,e),a=new S("mstyle",t);return a.setAttribute("style","text-shadow: 0.02em 0.01em 0.04px"),a}});var r4={">":"\\\\cdrightarrow","<":"\\\\cdleftarrow","=":"\\\\cdlongequal",A:"\\uparrow",V:"\\downarrow","|":"\\Vert",".":"no arrow"},zr=()=>({type:"styling",body:[],mode:"math",style:"display",resetFont:!0}),Ar=r=>r.type==="textord"&&r.text==="@",a4=(r,e)=>(r.type==="mathord"||r.type==="atom")&&r.text===e;function i4(r,e,t){var a=r4[r];switch(a){case"\\\\cdrightarrow":case"\\\\cdleftarrow":return t.callFunction(a,[e[0]],[e[1]]);case"\\uparrow":case"\\downarrow":{var i=t.callFunction("\\\\cdleft",[e[0]],[]),s={type:"atom",text:a,mode:"math",family:"rel"},u=t.callFunction("\\Big",[s],[]),h=t.callFunction("\\\\cdright",[e[1]],[]),c={type:"ordgroup",mode:"math",body:[i,u,h]};return t.callFunction("\\\\cdparent",[c],[])}case"\\\\cdlongequal":return t.callFunction("\\\\cdlongequal",[],[]);case"\\Vert":{var v={type:"textord",text:"\\Vert",mode:"math"};return t.callFunction("\\Big",[v],[])}default:return{type:"textord",text:" ",mode:"math"}}}function n4(r){var e=[];for(r.gullet.beginGroup(),r.gullet.macros.set("\\cr","\\\\\\relax"),r.gullet.beginGroup();;){e.push(r.parseExpression(!1,"\\\\")),r.gullet.endGroup(),r.gullet.beginGroup();var t=r.fetch().text;if(t==="&"||t==="\\\\")r.consume();else if(t==="\\end"){e[e.length-1].length===0&&e.pop();break}else throw new z("Expected \\\\ or \\cr or \\end",r.nextToken)}for(var a=[],i=[a],s=0;sAV".includes(v))for(var b=0;b<2;b++){for(var x=!0,y=c+1;yAV=|." after @',u[c]);var T=i4(v,p,r),M={type:"styling",body:[T],mode:"math",style:"display",resetFont:!0};a.push(M),h=zr()}s%2===0?a.push(h):a.shift(),a=[],i.push(a)}r.gullet.endGroup(),r.gullet.endGroup();var q=new Array(i[0].length).fill({type:"align",align:"c",pregap:.25,postgap:.25});return{type:"array",mode:"math",body:i,arraystretch:1,addJot:!0,rowGaps:[null],cols:q,colSeparationType:"CD",hLinesBeforeRow:new Array(i.length+1).fill([])}}B({type:"cdlabel",names:["\\\\cdleft","\\\\cdright"],props:{numArgs:1},handler(r,e){var{parser:t,funcName:a}=r;return{type:"cdlabel",mode:t.mode,side:a.slice(4),label:e[0]}},htmlBuilder(r,e){var t=e.havingStyle(e.style.sup()),a=ie(X(r.label,t,e),e);return a.classes.push("cd-label-"+r.side),a.style.bottom=A(.8-a.depth),a.height=0,a.depth=0,a},mathmlBuilder(r,e){var t=new S("mrow",[$(r.label,e)]);return t=new S("mpadded",[t]),t.setAttribute("width","0"),r.side==="left"&&t.setAttribute("lspace","-1width"),t.setAttribute("voffset","0.7em"),t=new S("mstyle",[t]),t.setAttribute("displaystyle","false"),t.setAttribute("scriptlevel","1"),t}});B({type:"cdlabelparent",names:["\\\\cdparent"],props:{numArgs:1},handler(r,e){var{parser:t}=r;return{type:"cdlabelparent",mode:t.mode,fragment:e[0]}},htmlBuilder(r,e){var t=ie(X(r.fragment,e),e);return t.classes.push("cd-vert-arrow"),t},mathmlBuilder(r,e){return new S("mrow",[$(r.fragment,e)])}});B({type:"textord",names:["\\@char"],props:{numArgs:1,allowedInText:!0},handler(r,e){for(var{parser:t}=r,a=O(e[0],"ordgroup"),i=a.body,s="",u=0;u=1114111)throw new z("\\@char with invalid code point "+s);return c<=65535?v=String.fromCharCode(c):(c-=65536,v=String.fromCharCode((c>>10)+55296,(c&1023)+56320)),{type:"textord",mode:t.mode,text:v}}});var h1=(r,e)=>{var t=a0(r.body,e.withColor(r.color),!1);return I0(t)},m1=(r,e)=>{var t=v0(r.body,e.withColor(r.color)),a=new S("mstyle",t);return a.setAttribute("mathcolor",r.color),a};B({type:"color",names:["\\textcolor"],props:{numArgs:2,allowedInText:!0,argTypes:["color","original"]},handler(r,e){var{parser:t}=r,a=O(e[0],"color-token").color,i=e[1];return{type:"color",mode:t.mode,color:a,body:e0(i)}},htmlBuilder:h1,mathmlBuilder:m1});B({type:"color",names:["\\color"],props:{numArgs:1,allowedInText:!0,argTypes:["color"]},handler(r,e){var{parser:t,breakOnTokenText:a}=r,i=O(e[0],"color-token").color;t.gullet.macros.set("\\current@color",i);var s=t.parseExpression(!0,a);return{type:"color",mode:t.mode,color:i,body:s}},htmlBuilder:h1,mathmlBuilder:m1});B({type:"cr",names:["\\\\"],props:{numArgs:0,numOptionalArgs:0,allowedInText:!0},handler(r,e,t){var{parser:a}=r,i=a.gullet.future().text==="["?a.parseSizeGroup(!0):null,s=!a.settings.displayMode||!a.settings.useStrictBehavior("newLineInDisplayMode","In LaTeX, \\\\ or \\newline does nothing in display mode");return{type:"cr",mode:a.mode,newLine:s,size:i&&O(i,"size").value}},htmlBuilder(r,e){var t=k(["mspace"],[],e);return r.newLine&&(t.classes.push("newline"),r.size&&(t.style.marginTop=A(J(r.size,e)))),t},mathmlBuilder(r,e){var t=new S("mspace");return r.newLine&&(t.setAttribute("linebreak","newline"),r.size&&t.setAttribute("height",A(J(r.size,e)))),t}});var Rt={"\\global":"\\global","\\long":"\\\\globallong","\\\\globallong":"\\\\globallong","\\def":"\\gdef","\\gdef":"\\gdef","\\edef":"\\xdef","\\xdef":"\\xdef","\\let":"\\\\globallet","\\futurelet":"\\\\globalfuture"},c1=r=>{var e=r.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(e))throw new z("Expected a control sequence",r);return e},s4=r=>{var e=r.gullet.popToken();return e.text==="="&&(e=r.gullet.popToken(),e.text===" "&&(e=r.gullet.popToken())),e},d1=(r,e,t,a)=>{var i=r.gullet.macros.get(t.text);i==null&&(t.noexpand=!0,i={tokens:[t],numArgs:0,unexpandable:!r.gullet.isExpandable(t.text)}),r.gullet.macros.set(e,i,a)};B({type:"internal",names:["\\global","\\long","\\\\globallong"],props:{numArgs:0,allowedInText:!0},handler(r){var{parser:e,funcName:t}=r;e.consumeSpaces();var a=e.fetch();if(Rt[a.text])return(t==="\\global"||t==="\\\\globallong")&&(a.text=Rt[a.text]),O(e.parseFunction(),"internal");throw new z("Invalid token after macro prefix",a)}});B({type:"internal",names:["\\def","\\gdef","\\edef","\\xdef"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(r){var{parser:e,funcName:t}=r,a=e.gullet.popToken(),i=a.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(i))throw new z("Expected a control sequence",a);for(var s=0,u,h=[[]];e.gullet.future().text!=="{";)if(a=e.gullet.popToken(),a.text==="#"){if(e.gullet.future().text==="{"){u=e.gullet.future(),h[s].push("{");break}if(a=e.gullet.popToken(),!/^[1-9]$/.test(a.text))throw new z('Invalid argument number "'+a.text+'"');if(parseInt(a.text)!==s+1)throw new z('Argument number "'+a.text+'" out of order');s++,h.push([])}else{if(a.text==="EOF")throw new z("Expected a macro definition");h[s].push(a.text)}var{tokens:c}=e.gullet.consumeArg();return u&&c.unshift(u),(t==="\\edef"||t==="\\xdef")&&(c=e.gullet.expandTokens(c),c.reverse()),e.gullet.macros.set(i,{tokens:c,numArgs:s,delimiters:h},t===Rt[t]),{type:"internal",mode:e.mode}}});B({type:"internal",names:["\\let","\\\\globallet"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(r){var{parser:e,funcName:t}=r,a=c1(e.gullet.popToken());e.gullet.consumeSpaces();var i=s4(e);return d1(e,a,i,t==="\\\\globallet"),{type:"internal",mode:e.mode}}});B({type:"internal",names:["\\futurelet","\\\\globalfuture"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(r){var{parser:e,funcName:t}=r,a=c1(e.gullet.popToken()),i=e.gullet.popToken(),s=e.gullet.popToken();return d1(e,a,s,t==="\\\\globalfuture"),e.gullet.pushToken(s),e.gullet.pushToken(i),{type:"internal",mode:e.mode}}});var me=function(e,t,a){var i=W.math[e]&&W.math[e].replace,s=Ut(i||e,t,a);if(!s)throw new Error("Unsupported symbol "+e+" and font size "+t+".");return s},jt=function(e,t,a,i){var s=a.havingBaseStyle(t),u=k(i.concat(s.sizingClasses(a)),[e],a),h=s.sizeMultiplier/a.sizeMultiplier;return u.height*=h,u.depth*=h,u.maxFontSize=s.sizeMultiplier,u},f1=function(e,t,a){var i=t.havingBaseStyle(a),s=(1-t.sizeMultiplier/i.sizeMultiplier)*t.fontMetrics().axisHeight;e.classes.push("delimcenter"),e.style.top=A(s),e.height-=s,e.depth+=s},l4=function(e,t,a,i,s,u){var h=s0(e,"Main-Regular",s,i),c=jt(h,t,i,u);return a&&f1(c,i,t),c},u4=function(e,t,a,i){return s0(e,"Size"+t+"-Regular",a,i)},v1=function(e,t,a,i,s,u){var h=u4(e,t,s,i),c=jt(k(["delimsizing","size"+t],[h],i),N.TEXT,i,u);return a&&f1(c,i,N.TEXT),c},ot=function(e,t,a){var i;t==="Size1-Regular"?i="delim-size1":i="delim-size4";var s=k(["delimsizinginner",i],[k([],[s0(e,t,a)])]);return{type:"elem",elem:s}},ht=function(e,t,a){var i=z0["Size4-Regular"][e.charCodeAt(0)]?z0["Size4-Regular"][e.charCodeAt(0)][4]:z0["Size1-Regular"][e.charCodeAt(0)][4],s=new A0("inner",ba(e,Math.round(1e3*t))),u=new x0([s],{width:A(i),height:A(t),style:"width:"+A(i),viewBox:"0 0 "+1e3*i+" "+Math.round(1e3*t),preserveAspectRatio:"xMinYMin"}),h=V0([],[u],a);return h.height=t,h.style.height=A(t),h.style.width=A(i),{type:"elem",elem:h}},It=.008,Re={type:"kern",size:-1*It},o4=new Set(["|","\\lvert","\\rvert","\\vert"]),h4=new Set(["\\|","\\lVert","\\rVert","\\Vert"]),p1=function(e,t,a,i,s,u){var h,c,v,p,b="",x=0;h=v=p=e,c=null;var y="Size1-Regular";e==="\\uparrow"?v=p="\u23D0":e==="\\Uparrow"?v=p="\u2016":e==="\\downarrow"?h=v="\u23D0":e==="\\Downarrow"?h=v="\u2016":e==="\\updownarrow"?(h="\\uparrow",v="\u23D0",p="\\downarrow"):e==="\\Updownarrow"?(h="\\Uparrow",v="\u2016",p="\\Downarrow"):o4.has(e)?(v="\u2223",b="vert",x=333):h4.has(e)?(v="\u2225",b="doublevert",x=556):e==="["||e==="\\lbrack"?(h="\u23A1",v="\u23A2",p="\u23A3",y="Size4-Regular",b="lbrack",x=667):e==="]"||e==="\\rbrack"?(h="\u23A4",v="\u23A5",p="\u23A6",y="Size4-Regular",b="rbrack",x=667):e==="\\lfloor"||e==="\u230A"?(v=h="\u23A2",p="\u23A3",y="Size4-Regular",b="lfloor",x=667):e==="\\lceil"||e==="\u2308"?(h="\u23A1",v=p="\u23A2",y="Size4-Regular",b="lceil",x=667):e==="\\rfloor"||e==="\u230B"?(v=h="\u23A5",p="\u23A6",y="Size4-Regular",b="rfloor",x=667):e==="\\rceil"||e==="\u2309"?(h="\u23A4",v=p="\u23A5",y="Size4-Regular",b="rceil",x=667):e==="("||e==="\\lparen"?(h="\u239B",v="\u239C",p="\u239D",y="Size4-Regular",b="lparen",x=875):e===")"||e==="\\rparen"?(h="\u239E",v="\u239F",p="\u23A0",y="Size4-Regular",b="rparen",x=875):e==="\\{"||e==="\\lbrace"?(h="\u23A7",c="\u23A8",p="\u23A9",v="\u23AA",y="Size4-Regular"):e==="\\}"||e==="\\rbrace"?(h="\u23AB",c="\u23AC",p="\u23AD",v="\u23AA",y="Size4-Regular"):e==="\\lgroup"||e==="\u27EE"?(h="\u23A7",p="\u23A9",v="\u23AA",y="Size4-Regular"):e==="\\rgroup"||e==="\u27EF"?(h="\u23AB",p="\u23AD",v="\u23AA",y="Size4-Regular"):e==="\\lmoustache"||e==="\u23B0"?(h="\u23A7",p="\u23AD",v="\u23AA",y="Size4-Regular"):(e==="\\rmoustache"||e==="\u23B1")&&(h="\u23AB",p="\u23A9",v="\u23AA",y="Size4-Regular");var T=me(h,y,s),M=T.height+T.depth,q=me(v,y,s),C=q.height+q.depth,R=me(p,y,s),F=R.height+R.depth,L=0,H=1;if(c!==null){var P=me(c,y,s);L=P.height+P.depth,H=2}var G=M+F+L,Y=Math.max(0,Math.ceil((t-G)/(H*C))),U=G+Y*H*C,h0=i.fontMetrics().axisHeight;a&&(h0*=i.sizeMultiplier);var c0=U/2-h0,_=[];if(b.length>0){var le=U-M-F,w0=Math.round(U*1e3),b0=ya(b,Math.round(le*1e3)),N0=new A0(b,b0),Z0=A(x/1e3),K0=A(w0/1e3),at=new x0([N0],{width:Z0,height:K0,viewBox:"0 0 "+x+" "+w0}),F0=V0([],[at],i);F0.height=w0/1e3,F0.style.width=Z0,F0.style.height=K0,_.push({type:"elem",elem:F0})}else{if(_.push(ot(p,y,s)),_.push(Re),c===null){var O0=U-M-F+2*It;_.push(ht(v,O0,i))}else{var ue=(U-M-F-L)/2+2*It;_.push(ht(v,ue,i)),_.push(Re),_.push(ot(c,y,s)),_.push(Re),_.push(ht(v,ue,i))}_.push(Re),_.push(ot(h,y,s))}var y0=i.havingBaseStyle(N.TEXT),ye=V({positionType:"bottom",positionData:c0,children:_});return jt(k(["delimsizing","mult"],[ye],y0),N.TEXT,i,u)},mt=80,ct=.08,dt=function(e,t,a,i,s){var u=ga(e,i,a),h=new A0(e,u),c=new x0([h],{width:"400em",height:A(t),viewBox:"0 0 400000 "+a,preserveAspectRatio:"xMinYMin slice"});return V0(["hide-tail"],[c],s)},m4=function(e,t){var a=t.havingBaseSizing(),i=w1("\\surd",e*a.sizeMultiplier,x1,a),s=a.sizeMultiplier,u=Math.max(0,t.minRuleThickness-t.fontMetrics().sqrtRuleThickness),h,c,v,p,b;return i.type==="small"?(p=1e3+1e3*u+mt,e<1?s=1:e<1.4&&(s=.7),c=(1+u+ct)/s,v=(1+u)/s,h=dt("sqrtMain",c,p,u,t),h.style.minWidth="0.853em",b=.833/s):i.type==="large"?(p=(1e3+mt)*ce[i.size],v=(ce[i.size]+u)/s,c=(ce[i.size]+u+ct)/s,h=dt("sqrtSize"+i.size,c,p,u,t),h.style.minWidth="1.02em",b=1/s):(c=e+u+ct,v=e+u,p=Math.floor(1e3*e+u)+mt,h=dt("sqrtTall",c,p,u,t),h.style.minWidth="0.742em",b=1.056),h.height=v,h.style.height=A(c),{span:h,advanceWidth:b,ruleWidth:(t.fontMetrics().sqrtRuleThickness+u)*s}},g1=new Set(["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","\u230A","\u230B","\\lceil","\\rceil","\u2308","\u2309","\\surd"]),c4=new Set(["\\uparrow","\\downarrow","\\updownarrow","\\Uparrow","\\Downarrow","\\Updownarrow","|","\\|","\\vert","\\Vert","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","\u27EE","\u27EF","\\lmoustache","\\rmoustache","\u23B0","\u23B1"]),b1=new Set(["<",">","\\langle","\\rangle","/","\\backslash","\\lt","\\gt"]),ce=[0,1.2,1.8,2.4,3],y1=function(e,t,a,i,s){if(e==="<"||e==="\\lt"||e==="\u27E8"?e="\\langle":(e===">"||e==="\\gt"||e==="\u27E9")&&(e="\\rangle"),g1.has(e)||b1.has(e))return v1(e,t,!1,a,i,s);if(c4.has(e))return p1(e,ce[t],!1,a,i,s);throw new z("Illegal delimiter: '"+e+"'")},d4=[{type:"small",style:N.SCRIPTSCRIPT},{type:"small",style:N.SCRIPT},{type:"small",style:N.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4}],f4=[{type:"small",style:N.SCRIPTSCRIPT},{type:"small",style:N.SCRIPT},{type:"small",style:N.TEXT},{type:"stack"}],x1=[{type:"small",style:N.SCRIPTSCRIPT},{type:"small",style:N.SCRIPT},{type:"small",style:N.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4},{type:"stack"}],v4=function(e){if(e.type==="small")return"Main-Regular";if(e.type==="large")return"Size"+e.size+"-Regular";if(e.type==="stack")return"Size4-Regular";var t=e.type;throw new Error("Add support for delim type '"+t+"' here.")},w1=function(e,t,a,i){for(var s=Math.min(2,3-i.style.size),u=s;ut)return h}return a[a.length-1]},Nt=function(e,t,a,i,s,u){e==="<"||e==="\\lt"||e==="\u27E8"?e="\\langle":(e===">"||e==="\\gt"||e==="\u27E9")&&(e="\\rangle");var h;b1.has(e)?h=d4:g1.has(e)?h=x1:h=f4;var c=w1(e,t,h,i);return c.type==="small"?l4(e,c.style,a,i,s,u):c.type==="large"?v1(e,c.size,a,i,s,u):p1(e,t,a,i,s,u)},ft=function(e,t,a,i,s,u){var h=i.fontMetrics().axisHeight*i.sizeMultiplier,c=901,v=5/i.fontMetrics().ptPerEm,p=Math.max(t-h,a+h),b=Math.max(p/500*c,2*p-v);return Nt(e,b,!0,i,s,u)},Mr={"\\bigl":{mclass:"mopen",size:1},"\\Bigl":{mclass:"mopen",size:2},"\\biggl":{mclass:"mopen",size:3},"\\Biggl":{mclass:"mopen",size:4},"\\bigr":{mclass:"mclose",size:1},"\\Bigr":{mclass:"mclose",size:2},"\\biggr":{mclass:"mclose",size:3},"\\Biggr":{mclass:"mclose",size:4},"\\bigm":{mclass:"mrel",size:1},"\\Bigm":{mclass:"mrel",size:2},"\\biggm":{mclass:"mrel",size:3},"\\Biggm":{mclass:"mrel",size:4},"\\big":{mclass:"mord",size:1},"\\Big":{mclass:"mord",size:2},"\\bigg":{mclass:"mord",size:3},"\\Bigg":{mclass:"mord",size:4}},p4=new Set(["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","\u230A","\u230B","\\lceil","\\rceil","\u2308","\u2309","<",">","\\langle","\u27E8","\\rangle","\u27E9","\\lt","\\gt","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","\u27EE","\u27EF","\\lmoustache","\\rmoustache","\u23B0","\u23B1","/","\\backslash","|","\\vert","\\|","\\Vert","\\uparrow","\\Uparrow","\\downarrow","\\Downarrow","\\updownarrow","\\Updownarrow","."]);function Tr(r){return"isMiddle"in r}function _e(r,e){var t=Je(r);if(t&&p4.has(t.text))return t;throw t?new z("Invalid delimiter '"+t.text+"' after '"+e.funcName+"'",r):new z("Invalid delimiter type '"+r.type+"'",r)}B({type:"delimsizing",names:["\\bigl","\\Bigl","\\biggl","\\Biggl","\\bigr","\\Bigr","\\biggr","\\Biggr","\\bigm","\\Bigm","\\biggm","\\Biggm","\\big","\\Big","\\bigg","\\Bigg"],props:{numArgs:1,argTypes:["primitive"]},handler:(r,e)=>{var t=_e(e[0],r);return{type:"delimsizing",mode:r.parser.mode,size:Mr[r.funcName].size,mclass:Mr[r.funcName].mclass,delim:t.text}},htmlBuilder:(r,e)=>r.delim==="."?k([r.mclass]):y1(r.delim,r.size,e,r.mode,[r.mclass]),mathmlBuilder:r=>{var e=[];r.delim!=="."&&e.push(g0(r.delim,r.mode));var t=new S("mo",e);r.mclass==="mopen"||r.mclass==="mclose"?t.setAttribute("fence","true"):t.setAttribute("fence","false"),t.setAttribute("stretchy","true");var a=A(ce[r.size]);return t.setAttribute("minsize",a),t.setAttribute("maxsize",a),t}});function Br(r){if(!r.body)throw new Error("Bug: The leftright ParseNode wasn't fully parsed.")}B({type:"leftright-right",names:["\\right"],props:{numArgs:1,primitive:!0},handler:(r,e)=>{var t=r.parser.gullet.macros.get("\\current@color");if(t&&typeof t!="string")throw new z("\\current@color set to non-string in \\right");return{type:"leftright-right",mode:r.parser.mode,delim:_e(e[0],r).text,color:t}}});B({type:"leftright",names:["\\left"],props:{numArgs:1,primitive:!0},handler:(r,e)=>{var t=_e(e[0],r),a=r.parser;++a.leftrightDepth;var i=a.parseExpression(!1);--a.leftrightDepth,a.expect("\\right",!1);var s=O(a.parseFunction(),"leftright-right");return{type:"leftright",mode:a.mode,body:i,left:t.text,right:s.delim,rightColor:s.color}},htmlBuilder:(r,e)=>{Br(r);for(var t=a0(r.body,e,!0,["mopen","mclose"]),a=0,i=0,s=!1,u=0;u{Br(r);var t=v0(r.body,e);if(r.left!=="."){var a=new S("mo",[g0(r.left,r.mode)]);a.setAttribute("fence","true"),t.unshift(a)}if(r.right!=="."){var i=new S("mo",[g0(r.right,r.mode)]);i.setAttribute("fence","true"),r.rightColor&&i.setAttribute("mathcolor",r.rightColor),t.push(i)}return Yt(t)}});B({type:"middle",names:["\\middle"],props:{numArgs:1,primitive:!0},handler:(r,e)=>{var t=_e(e[0],r);if(!r.parser.leftrightDepth)throw new z("\\middle without preceding \\left",t);return{type:"middle",mode:r.parser.mode,delim:t.text}},htmlBuilder:(r,e)=>{var t;return r.delim==="."?t=pe(e,[]):(t=y1(r.delim,1,e,r.mode,[]),t.isMiddle={delim:r.delim,options:e}),t},mathmlBuilder:(r,e)=>{var t=r.delim==="\\vert"||r.delim==="|"?g0("|","text"):g0(r.delim,r.mode),a=new S("mo",[t]);return a.setAttribute("fence","true"),a.setAttribute("lspace","0.05em"),a.setAttribute("rspace","0.05em"),a}});var et=(r,e)=>{var t=ie(X(r.body,e),e),a=r.label.slice(1),i=e.sizeMultiplier,s,u,h=E0(r.body);if(a==="sout")s=k(["stretchy","sout"]),s.height=e.fontMetrics().defaultRuleThickness/i,u=-.5*e.fontMetrics().xHeight;else if(a==="phase"){var c=J({number:.6,unit:"pt"},e),v=J({number:.35,unit:"ex"},e),p=e.havingBaseSizing();i=i/p.sizeMultiplier;var b=t.height+t.depth+c+v;t.style.paddingLeft=A(b/2+c);var x=Math.floor(1e3*b*i),y=va(x),T=new x0([new A0("phase",y)],{width:"400em",height:A(x/1e3),viewBox:"0 0 400000 "+x,preserveAspectRatio:"xMinYMin slice"});s=V0(["hide-tail"],[T],e),s.style.height=A(b),u=t.depth+c+v}else{/cancel/.test(a)?h||t.classes.push("cancel-pad"):a==="angl"?t.classes.push("anglpad"):t.classes.push("boxpad");var M,q,C=0;/box/.test(a)?(C=Math.max(e.fontMetrics().fboxrule,e.minRuleThickness),M=e.fontMetrics().fboxsep+(a==="colorbox"?0:C),q=M):a==="angl"?(C=Math.max(e.fontMetrics().defaultRuleThickness,e.minRuleThickness),M=4*C,q=Math.max(0,.25-t.depth)):(M=h?.2:0,q=M),s=Ja(t,a,M,q,e),/fbox|boxed|fcolorbox/.test(a)?(s.style.borderStyle="solid",s.style.borderWidth=A(C)):a==="angl"&&C!==.049&&(s.style.borderTopWidth=A(C),s.style.borderRightWidth=A(C)),u=t.depth+q,r.backgroundColor&&(s.style.backgroundColor=r.backgroundColor,r.borderColor&&(s.style.borderColor=r.borderColor))}var R;if(r.backgroundColor)R=V({positionType:"individualShift",children:[{type:"elem",elem:s,shift:u},{type:"elem",elem:t,shift:0}]});else{var F=/cancel|phase/.test(a)?["svg-align"]:[];R=V({positionType:"individualShift",children:[{type:"elem",elem:t,shift:0},{type:"elem",elem:s,shift:u,wrapperClasses:F}]})}return/cancel/.test(a)&&(R.height=t.height,R.depth=t.depth),/cancel/.test(a)&&!h?k(["mord","cancel-lap"],[R],e):k(["mord"],[R],e)},tt=(r,e)=>{var t,a=new S(r.label.includes("colorbox")?"mpadded":"menclose",[$(r.body,e)]);switch(r.label){case"\\cancel":a.setAttribute("notation","updiagonalstrike");break;case"\\bcancel":a.setAttribute("notation","downdiagonalstrike");break;case"\\phase":a.setAttribute("notation","phasorangle");break;case"\\sout":a.setAttribute("notation","horizontalstrike");break;case"\\fbox":a.setAttribute("notation","box");break;case"\\angl":a.setAttribute("notation","actuarial");break;case"\\fcolorbox":case"\\colorbox":if(t=e.fontMetrics().fboxsep*e.fontMetrics().ptPerEm,a.setAttribute("width","+"+2*t+"pt"),a.setAttribute("height","+"+2*t+"pt"),a.setAttribute("lspace",t+"pt"),a.setAttribute("voffset",t+"pt"),r.label==="\\fcolorbox"){var i=Math.max(e.fontMetrics().fboxrule,e.minRuleThickness);a.setAttribute("style","border: "+A(i)+" solid "+r.borderColor)}break;case"\\xcancel":a.setAttribute("notation","updiagonalstrike downdiagonalstrike");break}return r.backgroundColor&&a.setAttribute("mathbackground",r.backgroundColor),a};B({type:"enclose",names:["\\colorbox"],props:{numArgs:2,allowedInText:!0,argTypes:["color","hbox"]},handler(r,e,t){var{parser:a,funcName:i}=r,s=O(e[0],"color-token").color,u=e[1];return{type:"enclose",mode:a.mode,label:i,backgroundColor:s,body:u}},htmlBuilder:et,mathmlBuilder:tt});B({type:"enclose",names:["\\fcolorbox"],props:{numArgs:3,allowedInText:!0,argTypes:["color","color","hbox"]},handler(r,e,t){var{parser:a,funcName:i}=r,s=O(e[0],"color-token").color,u=O(e[1],"color-token").color,h=e[2];return{type:"enclose",mode:a.mode,label:i,backgroundColor:u,borderColor:s,body:h}},htmlBuilder:et,mathmlBuilder:tt});B({type:"enclose",names:["\\fbox"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!0},handler(r,e){var{parser:t}=r;return{type:"enclose",mode:t.mode,label:"\\fbox",body:e[0]}}});B({type:"enclose",names:["\\cancel","\\bcancel","\\xcancel","\\phase"],props:{numArgs:1},handler(r,e){var{parser:t,funcName:a}=r,i=e[0];return{type:"enclose",mode:t.mode,label:a,body:i}},htmlBuilder:et,mathmlBuilder:tt});B({type:"enclose",names:["\\sout"],props:{numArgs:1,allowedInText:!0},handler(r,e){var{parser:t,funcName:a}=r;t.mode==="math"&&t.settings.reportNonstrict("mathVsSout","LaTeX's \\sout works only in text mode");var i=e[0];return{type:"enclose",mode:t.mode,label:a,body:i}},htmlBuilder:et,mathmlBuilder:tt});B({type:"enclose",names:["\\angl"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!1},handler(r,e){var{parser:t}=r;return{type:"enclose",mode:t.mode,label:"\\angl",body:e[0]}}});var k1={};function M0(r){for(var{type:e,names:t,props:a,handler:i,htmlBuilder:s,mathmlBuilder:u}=r,h={type:e,numArgs:a.numArgs||0,allowedInText:!1,numOptionalArgs:0,handler:i},c=0;c{var e=r.parser.settings;if(!e.displayMode)throw new z("{"+r.envName+"} can be used only in display mode.")},g4=new Set(["gather","gather*"]);function Zt(r){if(!r.includes("ed"))return!r.includes("*")}function Y0(r,e,t){var{hskipBeforeAndAfter:a,addJot:i,cols:s,arraystretch:u,colSeparationType:h,autoTag:c,singleRow:v,emptySingleRow:p,maxNumCols:b,leqno:x}=e;if(r.gullet.beginGroup(),v||r.gullet.macros.set("\\cr","\\\\\\relax"),!u){var y=r.gullet.expandMacroAsText("\\arraystretch");if(y==null)u=1;else if(u=parseFloat(y),!u||u<0)throw new z("Invalid \\arraystretch: "+y)}r.gullet.beginGroup();var T=[],M=[T],q=[],C=[],R=c!=null?[]:void 0;function F(){c&&r.gullet.macros.set("\\@eqnsw","1",!0)}function L(){R&&(r.gullet.macros.get("\\df@tag")?(R.push(r.subparse([new d0("\\df@tag")])),r.gullet.macros.set("\\df@tag",void 0,!0)):R.push(!!c&&r.gullet.macros.get("\\@eqnsw")==="1"))}for(F(),C.push(Cr(r));;){var H=r.parseExpression(!1,v?"\\end":"\\\\");r.gullet.endGroup(),r.gullet.beginGroup();var P={type:"ordgroup",mode:r.mode,body:H};t&&(P={type:"styling",mode:r.mode,style:t,resetFont:!0,body:[P]}),T.push(P);var G=r.fetch().text;if(G==="&"){if(b&&T.length===b){if(v||h)throw new z("Too many tab characters: &",r.nextToken);r.settings.reportNonstrict("textEnv","Too few columns specified in the {array} column argument.")}r.consume()}else if(G==="\\end"){L(),T.length===1&&P.type==="styling"&&P.body.length===1&&P.body[0].type==="ordgroup"&&P.body[0].body.length===0&&(M.length>1||!p)&&M.pop(),C.length0&&(F+=.25),v.push({pos:F,isDashed:Se[ze]})}for(L(u[0]),a=0;a0&&(c0+=R,GSe))for(a=0;a=h)){var Q0=void 0;if(i>0||e.hskipBeforeAndAfter){var ar,ir;Q0=(ar=(ir=y0)==null?void 0:ir.pregap)!=null?ar:x,Q0!==0&&(b0=k(["arraycolsep"],[]),b0.style.width=A(Q0),w0.push(b0))}var nr=[];for(a=0;a0){for(var X1=ae("hline",t,p),Y1=ae("hdashline",t,p),it=[{type:"elem",elem:ke,shift:0}];v.length>0;){var ur=v.pop(),or=ur.pos-_;ur.isDashed?it.push({type:"elem",elem:Y1,shift:or}):it.push({type:"elem",elem:X1,shift:or})}ke=V({positionType:"individualShift",children:it})}if(Z0.length===0)return k(["mord"],[ke],t);var $1=V({positionType:"individualShift",children:Z0}),W1=k(["tag"],[$1],t);return I0([ke,W1])},b4={c:"center ",l:"left ",r:"right "},B0=function(e,t){for(var a=[],i=new S("mtd",[],["mtr-glue"]),s=new S("mtd",[],["mml-eqn-num"]),u=0;u0){var T=e.cols,M="",q=!1,C=0,R=T.length;T[0].type==="separator"&&(x+="top ",C=1),T[T.length-1].type==="separator"&&(x+="bottom ",R-=1);for(var F=C;F0?"left ":"",x+=U[U.length-1].length>0?"right ":"";for(var h0=1;h00&&y&&(q=1),a[T]={type:"align",align:M,pregap:q,postgap:0}}return u.colSeparationType=y?"align":"alignat",u};M0({type:"array",names:["array","darray"],props:{numArgs:1},handler(r,e){var t=Je(e[0]),a=t?[e[0]]:O(e[0],"ordgroup").body,i=a.map(function(u){var h=Ke(u),c=h.text;if("lcr".includes(c))return{type:"align",align:c};if(c==="|")return{type:"separator",separator:"|"};if(c===":")return{type:"separator",separator:":"};throw new z("Unknown column alignment: "+c,u)}),s={cols:i,hskipBeforeAndAfter:!0,maxNumCols:i.length};return Y0(r.parser,s,Kt(r.envName))},htmlBuilder:T0,mathmlBuilder:B0});M0({type:"array",names:["matrix","pmatrix","bmatrix","Bmatrix","vmatrix","Vmatrix","matrix*","pmatrix*","bmatrix*","Bmatrix*","vmatrix*","Vmatrix*"],props:{numArgs:0},handler(r){var e={matrix:null,pmatrix:["(",")"],bmatrix:["[","]"],Bmatrix:["\\{","\\}"],vmatrix:["|","|"],Vmatrix:["\\Vert","\\Vert"]}[r.envName.replace("*","")],t="c",a={hskipBeforeAndAfter:!1,cols:[{type:"align",align:t}]};if(r.envName.charAt(r.envName.length-1)==="*"){var i=r.parser;if(i.consumeSpaces(),i.fetch().text==="["){if(i.consume(),i.consumeSpaces(),t=i.fetch().text,!"lcr".includes(t))throw new z("Expected l or c or r",i.nextToken);i.consume(),i.consumeSpaces(),i.expect("]"),i.consume(),a.cols=[{type:"align",align:t}]}}var s=Y0(r.parser,a,Kt(r.envName)),u=Math.max(0,...s.body.map(h=>h.length));return s.cols=new Array(u).fill({type:"align",align:t}),e?{type:"leftright",mode:r.mode,body:[s],left:e[0],right:e[1],rightColor:void 0}:s},htmlBuilder:T0,mathmlBuilder:B0});M0({type:"array",names:["smallmatrix"],props:{numArgs:0},handler(r){var e={arraystretch:.5},t=Y0(r.parser,e,"script");return t.colSeparationType="small",t},htmlBuilder:T0,mathmlBuilder:B0});M0({type:"array",names:["subarray"],props:{numArgs:1},handler(r,e){var t=Je(e[0]),a=t?[e[0]]:O(e[0],"ordgroup").body,i=a.map(function(h){var c=Ke(h),v=c.text;if("lc".includes(v))return{type:"align",align:v};throw new z("Unknown column alignment: "+v,h)});if(i.length>1)throw new z("{subarray} can contain only one column");var s={cols:i,hskipBeforeAndAfter:!1,arraystretch:.5},u=Y0(r.parser,s,"script");if(u.body.length>0&&u.body[0].length>1)throw new z("{subarray} can contain only one column");return u},htmlBuilder:T0,mathmlBuilder:B0});M0({type:"array",names:["cases","dcases","rcases","drcases"],props:{numArgs:0},handler(r){var e={arraystretch:1.2,cols:[{type:"align",align:"l",pregap:0,postgap:1},{type:"align",align:"l",pregap:0,postgap:0}]},t=Y0(r.parser,e,Kt(r.envName));return{type:"leftright",mode:r.mode,body:[t],left:r.envName.includes("r")?".":"\\{",right:r.envName.includes("r")?"\\}":".",rightColor:void 0}},htmlBuilder:T0,mathmlBuilder:B0});M0({type:"array",names:["align","align*","aligned","split"],props:{numArgs:0},handler:z1,htmlBuilder:T0,mathmlBuilder:B0});M0({type:"array",names:["gathered","gather","gather*"],props:{numArgs:0},handler(r){g4.has(r.envName)&&rt(r);var e={cols:[{type:"align",align:"c"}],addJot:!0,colSeparationType:"gather",autoTag:Zt(r.envName),emptySingleRow:!0,leqno:r.parser.settings.leqno};return Y0(r.parser,e,"display")},htmlBuilder:T0,mathmlBuilder:B0});M0({type:"array",names:["alignat","alignat*","alignedat"],props:{numArgs:1},handler:z1,htmlBuilder:T0,mathmlBuilder:B0});M0({type:"array",names:["equation","equation*"],props:{numArgs:0},handler(r){rt(r);var e={autoTag:Zt(r.envName),emptySingleRow:!0,singleRow:!0,maxNumCols:1,leqno:r.parser.settings.leqno};return Y0(r.parser,e,"display")},htmlBuilder:T0,mathmlBuilder:B0});M0({type:"array",names:["CD"],props:{numArgs:0},handler(r){return rt(r),n4(r.parser)},htmlBuilder:T0,mathmlBuilder:B0});m("\\nonumber","\\gdef\\@eqnsw{0}");m("\\notag","\\nonumber");B({type:"text",names:["\\hline","\\hdashline"],props:{numArgs:0,allowedInText:!0,allowedInMath:!0},handler(r,e){throw new z(r.funcName+" valid only within array environment")}});var Dr=k1;B({type:"environment",names:["\\begin","\\end"],props:{numArgs:1,argTypes:["text"]},handler(r,e){var{parser:t,funcName:a}=r,i=e[0];if(i.type!=="ordgroup")throw new z("Invalid environment name",i);for(var s="",u=0;u{var t=r.font,a=e.withFont(t);return X(r.body,a)},M1=(r,e)=>{var t=r.font,a=e.withFont(t);return $(r.body,a)},qr={"\\Bbb":"\\mathbb","\\bold":"\\mathbf","\\frak":"\\mathfrak"};B({type:"font",names:["\\mathrm","\\mathit","\\mathbf","\\mathnormal","\\mathsfit","\\mathbb","\\mathcal","\\mathfrak","\\mathscr","\\mathsf","\\mathtt","\\Bbb","\\bold","\\frak"],props:{numArgs:1,allowedInArgument:!0},handler:(r,e)=>{var{parser:t,funcName:a}=r,i=Ge(e[0]),s=a;return s in qr&&(s=qr[s]),{type:"font",mode:t.mode,font:s.slice(1),body:i}},htmlBuilder:A1,mathmlBuilder:M1});B({type:"mclass",names:["\\boldsymbol","\\bm"],props:{numArgs:1},handler:(r,e)=>{var{parser:t}=r,a=e[0];return{type:"mclass",mode:t.mode,mclass:Qe(a),body:[{type:"font",mode:t.mode,font:"boldsymbol",body:a}],isCharacterBox:E0(a)}}});B({type:"font",names:["\\rm","\\sf","\\tt","\\bf","\\it","\\cal"],props:{numArgs:0,allowedInText:!0},handler:(r,e)=>{var{parser:t,funcName:a,breakOnTokenText:i}=r,{mode:s}=t,u=t.parseExpression(!0,i);return{type:"font",mode:s,font:"math"+a.slice(1),body:{type:"ordgroup",mode:t.mode,body:u}}},htmlBuilder:A1,mathmlBuilder:M1});var y4=(r,e)=>{var t=e.style,a=t.fracNum(),i=t.fracDen(),s;s=e.havingStyle(a);var u=X(r.numer,s,e);if(r.continued){var h=8.5/e.fontMetrics().ptPerEm,c=3.5/e.fontMetrics().ptPerEm;u.height=u.height0?T=3*x:T=7*x,M=e.fontMetrics().denom1):(b>0?(y=e.fontMetrics().num2,T=x):(y=e.fontMetrics().num3,T=3*x),M=e.fontMetrics().denom2);var q;if(p){var R=e.fontMetrics().axisHeight;y-u.depth-(R+.5*b){var t=new S("mfrac",[$(r.numer,e),$(r.denom,e)]);if(!r.hasBarLine)t.setAttribute("linethickness","0px");else if(r.barSize){var a=J(r.barSize,e);t.setAttribute("linethickness",A(a))}if(r.leftDelim!=null||r.rightDelim!=null){var i=[];if(r.leftDelim!=null){var s=new S("mo",[new Q(r.leftDelim.replace("\\",""))]);s.setAttribute("fence","true"),i.push(s)}if(i.push(t),r.rightDelim!=null){var u=new S("mo",[new Q(r.rightDelim.replace("\\",""))]);u.setAttribute("fence","true"),i.push(u)}return Yt(i)}return t},T1=(r,e)=>{if(!e)return r;var t={type:"styling",mode:r.mode,style:e,body:[r]};return t};B({type:"genfrac",names:["\\cfrac","\\dfrac","\\frac","\\tfrac","\\dbinom","\\binom","\\tbinom","\\\\atopfrac","\\\\bracefrac","\\\\brackfrac"],props:{numArgs:2,allowedInArgument:!0},handler:(r,e)=>{var{parser:t,funcName:a}=r,i=e[0],s=e[1],u,h=null,c=null;switch(a){case"\\cfrac":case"\\dfrac":case"\\frac":case"\\tfrac":u=!0;break;case"\\\\atopfrac":u=!1;break;case"\\dbinom":case"\\binom":case"\\tbinom":u=!1,h="(",c=")";break;case"\\\\bracefrac":u=!1,h="\\{",c="\\}";break;case"\\\\brackfrac":u=!1,h="[",c="]";break;default:throw new Error("Unrecognized genfrac command")}var v=a==="\\cfrac",p=null;return v||a.startsWith("\\d")?p="display":a.startsWith("\\t")&&(p="text"),T1({type:"genfrac",mode:t.mode,numer:i,denom:s,continued:v,hasBarLine:u,leftDelim:h,rightDelim:c,barSize:null},p)},htmlBuilder:y4,mathmlBuilder:x4});B({type:"infix",names:["\\over","\\choose","\\atop","\\brace","\\brack"],props:{numArgs:0,infix:!0},handler(r){var{parser:e,funcName:t,token:a}=r,i;switch(t){case"\\over":i="\\frac";break;case"\\choose":i="\\binom";break;case"\\atop":i="\\\\atopfrac";break;case"\\brace":i="\\\\bracefrac";break;case"\\brack":i="\\\\brackfrac";break;default:throw new Error("Unrecognized infix genfrac command")}return{type:"infix",mode:e.mode,replaceWith:i,token:a}}});var Er=["display","text","script","scriptscript"],Rr=function(e){var t=null;return e.length>0&&(t=e,t=t==="."?null:t),t};B({type:"genfrac",names:["\\genfrac"],props:{numArgs:6,allowedInArgument:!0,argTypes:["math","math","size","text","math","math"]},handler(r,e){var{parser:t}=r,a=e[4],i=e[5],s=Ge(e[0]),u=s.type==="atom"&&s.family==="open"?Rr(s.text):null,h=Ge(e[1]),c=h.type==="atom"&&h.family==="close"?Rr(h.text):null,v=O(e[2],"size"),p,b=null;v.isBlank?p=!0:(b=v.value,p=b.number>0);var x=null,y=e[3];if(y.type==="ordgroup"){if(y.body.length>0){var T=O(y.body[0],"textord");x=Er[Number(T.text)]}}else y=O(y,"textord"),x=Er[Number(y.text)];return T1({type:"genfrac",mode:t.mode,numer:a,denom:i,continued:!1,hasBarLine:p,barSize:b,leftDelim:u,rightDelim:c},x)}});B({type:"infix",names:["\\above"],props:{numArgs:1,argTypes:["size"],infix:!0},handler(r,e){var{parser:t,funcName:a,token:i}=r;return{type:"infix",mode:t.mode,replaceWith:"\\\\abovefrac",size:O(e[0],"size").value,token:i}}});B({type:"genfrac",names:["\\\\abovefrac"],props:{numArgs:3,argTypes:["math","size","math"]},handler:(r,e)=>{var{parser:t,funcName:a}=r,i=e[0],s=O(e[1],"infix").size;if(!s)throw new Error("\\\\abovefrac expected size, but got "+String(s));var u=e[2],h=s.number>0;return{type:"genfrac",mode:t.mode,numer:i,denom:u,continued:!1,hasBarLine:h,barSize:s,leftDelim:null,rightDelim:null}}});var B1=(r,e)=>{var t=e.style,a,i;r.type==="supsub"?(a=r.sup?X(r.sup,e.havingStyle(t.sup()),e):X(r.sub,e.havingStyle(t.sub()),e),i=O(r.base,"horizBrace")):i=O(r,"horizBrace");var s=X(i.base,e.havingBaseStyle(N.DISPLAY)),u=Ze(i,e),h;if(i.isOver?h=V({positionType:"firstBaseline",children:[{type:"elem",elem:s},{type:"kern",size:.1},{type:"elem",elem:u,wrapperClasses:["svg-align"]}]}):h=V({positionType:"bottom",positionData:s.depth+.1+u.height,children:[{type:"elem",elem:u,wrapperClasses:["svg-align"]},{type:"kern",size:.1},{type:"elem",elem:s}]}),a){var c=k(["minner",i.isOver?"mover":"munder"],[h],e);i.isOver?h=V({positionType:"firstBaseline",children:[{type:"elem",elem:c},{type:"kern",size:.2},{type:"elem",elem:a}]}):h=V({positionType:"bottom",positionData:c.depth+.2+a.height+a.depth,children:[{type:"elem",elem:a},{type:"kern",size:.2},{type:"elem",elem:c}]})}return k(["minner",i.isOver?"mover":"munder"],[h],e)},w4=(r,e)=>{var t=je(r.label);return new S(r.isOver?"mover":"munder",[$(r.base,e),t])};B({type:"horizBrace",names:["\\overbrace","\\underbrace","\\overbracket","\\underbracket"],props:{numArgs:1},handler(r,e){var{parser:t,funcName:a}=r;return{type:"horizBrace",mode:t.mode,label:a,isOver:a.includes("\\over"),base:e[0]}},htmlBuilder:B1,mathmlBuilder:w4});B({type:"href",names:["\\href"],props:{numArgs:2,argTypes:["url","original"],allowedInText:!0},handler:(r,e)=>{var{parser:t}=r,a=e[1],i=O(e[0],"url").url;return t.settings.isTrusted({command:"\\href",url:i})?{type:"href",mode:t.mode,href:i,body:e0(a)}:t.formatUnsupportedCmd("\\href")},htmlBuilder:(r,e)=>{var t=a0(r.body,e,!1);return Ia(r.href,[],t,e)},mathmlBuilder:(r,e)=>{var t=X0(r.body,e);return t instanceof S||(t=new S("mrow",[t])),t.setAttribute("href",r.href),t}});B({type:"href",names:["\\url"],props:{numArgs:1,argTypes:["url"],allowedInText:!0},handler:(r,e)=>{var{parser:t}=r,a=O(e[0],"url").url;if(!t.settings.isTrusted({command:"\\url",url:a}))return t.formatUnsupportedCmd("\\url");for(var i=[],s=0;s{var{parser:t,funcName:a,token:i}=r,s=O(e[0],"raw").string,u=e[1];t.settings.strict&&t.settings.reportNonstrict("htmlExtension","HTML extension is disabled on strict mode");var h,c={};switch(a){case"\\htmlClass":c.class=s,h={command:"\\htmlClass",class:s};break;case"\\htmlId":c.id=s,h={command:"\\htmlId",id:s};break;case"\\htmlStyle":c.style=s,h={command:"\\htmlStyle",style:s};break;case"\\htmlData":{for(var v=s.split(","),p=0;p{var t=a0(r.body,e,!1),a=["enclosing"];r.attributes.class&&a.push(...r.attributes.class.trim().split(/\s+/));var i=k(a,t,e);for(var s in r.attributes)s!=="class"&&r.attributes.hasOwnProperty(s)&&i.setAttribute(s,r.attributes[s]);return i},mathmlBuilder:(r,e)=>X0(r.body,e)});B({type:"htmlmathml",names:["\\html@mathml"],props:{numArgs:2,allowedInArgument:!0,allowedInText:!0},handler:(r,e)=>{var{parser:t}=r;return{type:"htmlmathml",mode:t.mode,html:e0(e[0]),mathml:e0(e[1])}},htmlBuilder:(r,e)=>{var t=a0(r.html,e,!1);return I0(t)},mathmlBuilder:(r,e)=>X0(r.mathml,e)});var vt=function(e){if(/^[-+]? *(\d+(\.\d*)?|\.\d+)$/.test(e))return{number:+e,unit:"bp"};var t=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(e);if(!t)throw new z("Invalid size: '"+e+"' in \\includegraphics");var a={number:+(t[1]+t[2]),unit:t[3]};if(!$r(a))throw new z("Invalid unit: '"+a.unit+"' in \\includegraphics.");return a};B({type:"includegraphics",names:["\\includegraphics"],props:{numArgs:1,numOptionalArgs:1,argTypes:["raw","url"],allowedInText:!1},handler:(r,e,t)=>{var{parser:a}=r,i={number:0,unit:"em"},s={number:.9,unit:"em"},u={number:0,unit:"em"},h="";if(t[0])for(var c=O(t[0],"raw").string,v=c.split(","),p=0;p{var t=J(r.height,e),a=0;r.totalheight.number>0&&(a=J(r.totalheight,e)-t);var i=0;r.width.number>0&&(i=J(r.width,e));var s={height:A(t+a)};i>0&&(s.width=A(i)),a>0&&(s.verticalAlign=A(-a));var u=new kt(r.src,r.alt,s);return u.height=t,u.depth=a,u},mathmlBuilder:(r,e)=>{var t=new S("mglyph",[]);t.setAttribute("alt",r.alt);var a=J(r.height,e),i=0;if(r.totalheight.number>0&&(i=J(r.totalheight,e)-a,t.setAttribute("valign",A(-i))),t.setAttribute("height",A(a+i)),r.width.number>0){var s=J(r.width,e);t.setAttribute("width",A(s))}return t.setAttribute("src",r.src),t}});B({type:"kern",names:["\\kern","\\mkern","\\hskip","\\mskip"],props:{numArgs:1,argTypes:["size"],primitive:!0,allowedInText:!0},handler(r,e){var{parser:t,funcName:a}=r,i=O(e[0],"size");if(t.settings.strict){var s=a[1]==="m",u=i.value.unit==="mu";s?(u||t.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+a+" supports only mu units, "+("not "+i.value.unit+" units")),t.mode!=="math"&&t.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+a+" works only in math mode")):u&&t.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+a+" doesn't support mu units")}return{type:"kern",mode:t.mode,dimension:i.value}},htmlBuilder(r,e){return Qr(r.dimension,e)},mathmlBuilder(r,e){var t=J(r.dimension,e);return new Ue(t)}});B({type:"lap",names:["\\mathllap","\\mathrlap","\\mathclap"],props:{numArgs:1,allowedInText:!0},handler:(r,e)=>{var{parser:t,funcName:a}=r,i=e[0];return{type:"lap",mode:t.mode,alignment:a.slice(5),body:i}},htmlBuilder:(r,e)=>{var t;r.alignment==="clap"?(t=k([],[X(r.body,e)]),t=k(["inner"],[t],e)):t=k(["inner"],[X(r.body,e)]);var a=k(["fix"],[]),i=k([r.alignment],[t,a],e),s=k(["strut"]);return s.style.height=A(i.height+i.depth),i.depth&&(s.style.verticalAlign=A(-i.depth)),i.children.unshift(s),i=k(["thinbox"],[i],e),k(["mord","vbox"],[i],e)},mathmlBuilder:(r,e)=>{var t=new S("mpadded",[$(r.body,e)]);if(r.alignment!=="rlap"){var a=r.alignment==="llap"?"-1":"-0.5";t.setAttribute("lspace",a+"width")}return t.setAttribute("width","0px"),t}});B({type:"styling",names:["\\(","$"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(r,e){var{funcName:t,parser:a}=r,i=a.mode;a.switchMode("math");var s=t==="\\("?"\\)":"$",u=a.parseExpression(!1,s);return a.expect(s),a.switchMode(i),{type:"styling",mode:a.mode,style:"text",resetFont:!0,body:u}}});B({type:"text",names:["\\)","\\]"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(r,e){throw new z("Mismatched "+r.funcName)}});var Ir=(r,e)=>{switch(e.style.size){case N.DISPLAY.size:return r.display;case N.TEXT.size:return r.text;case N.SCRIPT.size:return r.script;case N.SCRIPTSCRIPT.size:return r.scriptscript;default:return r.text}};B({type:"mathchoice",names:["\\mathchoice"],props:{numArgs:4,primitive:!0},handler:(r,e)=>{var{parser:t}=r;return{type:"mathchoice",mode:t.mode,display:e0(e[0]),text:e0(e[1]),script:e0(e[2]),scriptscript:e0(e[3])}},htmlBuilder:(r,e)=>{var t=Ir(r,e),a=a0(t,e,!1);return I0(a)},mathmlBuilder:(r,e)=>{var t=Ir(r,e);return X0(t,e)}});var C1=(r,e,t,a,i,s,u)=>{r=k([],[r]);var h=t&&E0(t),c,v;if(e){var p=X(e,a.havingStyle(i.sup()),a);v={elem:p,kern:Math.max(a.fontMetrics().bigOpSpacing1,a.fontMetrics().bigOpSpacing3-p.depth)}}if(t){var b=X(t,a.havingStyle(i.sub()),a);c={elem:b,kern:Math.max(a.fontMetrics().bigOpSpacing2,a.fontMetrics().bigOpSpacing4-b.height)}}var x;if(v&&c){var y=a.fontMetrics().bigOpSpacing5+c.elem.height+c.elem.depth+c.kern+r.depth+u;x=V({positionType:"bottom",positionData:y,children:[{type:"kern",size:a.fontMetrics().bigOpSpacing5},{type:"elem",elem:c.elem,marginLeft:A(-s)},{type:"kern",size:c.kern},{type:"elem",elem:r},{type:"kern",size:v.kern},{type:"elem",elem:v.elem,marginLeft:A(s)},{type:"kern",size:a.fontMetrics().bigOpSpacing5}]})}else if(c){var T=r.height-u;x=V({positionType:"top",positionData:T,children:[{type:"kern",size:a.fontMetrics().bigOpSpacing5},{type:"elem",elem:c.elem,marginLeft:A(-s)},{type:"kern",size:c.kern},{type:"elem",elem:r}]})}else if(v){var M=r.depth+u;x=V({positionType:"bottom",positionData:M,children:[{type:"elem",elem:r},{type:"kern",size:v.kern},{type:"elem",elem:v.elem,marginLeft:A(s)},{type:"kern",size:a.fontMetrics().bigOpSpacing5}]})}else return r;var q=[x];if(c&&s!==0&&!h){var C=k(["mspace"],[],a);C.style.marginRight=A(s),q.unshift(C)}return k(["mop","op-limits"],q,a)},D1=new Set(["\\smallint"]),se=(r,e)=>{var t,a,i=!1,s;r.type==="supsub"?(t=r.sup,a=r.sub,s=O(r.base,"op"),i=!0):s=O(r,"op");var u=e.style,h=!1;u.size===N.DISPLAY.size&&s.symbol&&!D1.has(s.name)&&(h=!0);var c,v;if(s.symbol){var p=h?"Size2-Regular":"Size1-Regular",b="";if((s.name==="\\oiint"||s.name==="\\oiiint")&&(b=s.name.slice(1),s.name=b==="oiint"?"\\iint":"\\iiint"),c=s0(s.name,p,"math",e,["mop","op-symbol",h?"large-op":"small-op"]),v=c.italic,b.length>0){var x=e1(b+"Size"+(h?"2":"1"),e);c=V({positionType:"individualShift",children:[{type:"elem",elem:c,shift:0},{type:"elem",elem:x,shift:h?.08:0}]}),s.name="\\"+b,c.classes.unshift("mop"),c.italic=v}}else if(s.body){var y=a0(s.body,e,!0);y.length===1&&y[0]instanceof u0?(c=y[0],c.classes[0]="mop"):c=k(["mop"],y,e)}else{for(var T=[],M=1;M{var t;if(r.symbol)t=new S("mo",[g0(r.name,r.mode)]),D1.has(r.name)&&t.setAttribute("largeop","false");else if(r.body)t=new S("mo",v0(r.body,e));else{t=new S("mi",[new Q(r.name.slice(1))]);var a=new S("mo",[g0("\u2061","text")]);r.parentIsSupSub?t=new S("mrow",[t,a]):t=a1([t,a])}return t},k4={"\u220F":"\\prod","\u2210":"\\coprod","\u2211":"\\sum","\u22C0":"\\bigwedge","\u22C1":"\\bigvee","\u22C2":"\\bigcap","\u22C3":"\\bigcup","\u2A00":"\\bigodot","\u2A01":"\\bigoplus","\u2A02":"\\bigotimes","\u2A04":"\\biguplus","\u2A06":"\\bigsqcup"};B({type:"op",names:["\\coprod","\\bigvee","\\bigwedge","\\biguplus","\\bigcap","\\bigcup","\\intop","\\prod","\\sum","\\bigotimes","\\bigoplus","\\bigodot","\\bigsqcup","\\smallint","\u220F","\u2210","\u2211","\u22C0","\u22C1","\u22C2","\u22C3","\u2A00","\u2A01","\u2A02","\u2A04","\u2A06"],props:{numArgs:0},handler:(r,e)=>{var{parser:t,funcName:a}=r,i=a;return i.length===1&&(i=k4[i]),{type:"op",mode:t.mode,limits:!0,parentIsSupSub:!1,symbol:!0,name:i}},htmlBuilder:se,mathmlBuilder:be});B({type:"op",names:["\\mathop"],props:{numArgs:1,primitive:!0},handler:(r,e)=>{var{parser:t}=r,a=e[0];return{type:"op",mode:t.mode,limits:!1,parentIsSupSub:!1,symbol:!1,body:e0(a)}},htmlBuilder:se,mathmlBuilder:be});var S4={"\u222B":"\\int","\u222C":"\\iint","\u222D":"\\iiint","\u222E":"\\oint","\u222F":"\\oiint","\u2230":"\\oiiint"};B({type:"op",names:["\\arcsin","\\arccos","\\arctan","\\arctg","\\arcctg","\\arg","\\ch","\\cos","\\cosec","\\cosh","\\cot","\\cotg","\\coth","\\csc","\\ctg","\\cth","\\deg","\\dim","\\exp","\\hom","\\ker","\\lg","\\ln","\\log","\\sec","\\sin","\\sinh","\\sh","\\tan","\\tanh","\\tg","\\th"],props:{numArgs:0},handler(r){var{parser:e,funcName:t}=r;return{type:"op",mode:e.mode,limits:!1,parentIsSupSub:!1,symbol:!1,name:t}},htmlBuilder:se,mathmlBuilder:be});B({type:"op",names:["\\det","\\gcd","\\inf","\\lim","\\max","\\min","\\Pr","\\sup"],props:{numArgs:0},handler(r){var{parser:e,funcName:t}=r;return{type:"op",mode:e.mode,limits:!0,parentIsSupSub:!1,symbol:!1,name:t}},htmlBuilder:se,mathmlBuilder:be});B({type:"op",names:["\\int","\\iint","\\iiint","\\oint","\\oiint","\\oiiint","\u222B","\u222C","\u222D","\u222E","\u222F","\u2230"],props:{numArgs:0,allowedInArgument:!0},handler(r){var{parser:e,funcName:t}=r,a=t;return a.length===1&&(a=S4[a]),{type:"op",mode:e.mode,limits:!1,parentIsSupSub:!1,symbol:!0,name:a}},htmlBuilder:se,mathmlBuilder:be});var q1=(r,e)=>{var t,a,i=!1,s;r.type==="supsub"?(t=r.sup,a=r.sub,s=O(r.base,"operatorname"),i=!0):s=O(r,"operatorname");var u;if(s.body.length>0){for(var h=s.body.map(b=>{var x="text"in b?b.text:void 0;return typeof x=="string"?{type:"textord",mode:b.mode,text:x}:b}),c=a0(h,e.withFont("mathrm"),!0),v=0;v{for(var t=v0(r.body,e.withFont("mathrm")),a=!0,i=0;ip.toText()).join("");t=[new Q(h)]}var c=new S("mi",t);c.setAttribute("mathvariant","normal");var v=new S("mo",[g0("\u2061","text")]);return r.parentIsSupSub?new S("mrow",[c,v]):a1([c,v])};B({type:"operatorname",names:["\\operatorname@","\\operatornamewithlimits"],props:{numArgs:1},handler:(r,e)=>{var{parser:t,funcName:a}=r,i=e[0];return{type:"operatorname",mode:t.mode,body:e0(i),alwaysHandleSupSub:a==="\\operatornamewithlimits",limits:!1,parentIsSupSub:!1}},htmlBuilder:q1,mathmlBuilder:z4});m("\\operatorname","\\@ifstar\\operatornamewithlimits\\operatorname@");j0({type:"ordgroup",htmlBuilder(r,e){return r.semisimple?I0(a0(r.body,e,!1)):k(["mord"],a0(r.body,e,!0),e)},mathmlBuilder(r,e){return X0(r.body,e,!0)}});B({type:"overline",names:["\\overline"],props:{numArgs:1},handler(r,e){var{parser:t}=r,a=e[0];return{type:"overline",mode:t.mode,body:a}},htmlBuilder(r,e){var t=X(r.body,e.havingCrampedStyle()),a=ae("overline-line",e),i=e.fontMetrics().defaultRuleThickness,s=V({positionType:"firstBaseline",children:[{type:"elem",elem:t},{type:"kern",size:3*i},{type:"elem",elem:a},{type:"kern",size:i}]});return k(["mord","overline"],[s],e)},mathmlBuilder(r,e){var t=new S("mo",[new Q("\u203E")]);t.setAttribute("stretchy","true");var a=new S("mover",[$(r.body,e),t]);return a.setAttribute("accent","true"),a}});B({type:"phantom",names:["\\phantom"],props:{numArgs:1,allowedInText:!0},handler:(r,e)=>{var{parser:t}=r,a=e[0];return{type:"phantom",mode:t.mode,body:e0(a)}},htmlBuilder:(r,e)=>{var t=a0(r.body,e.withPhantom(),!1);return I0(t)},mathmlBuilder:(r,e)=>{var t=v0(r.body,e);return new S("mphantom",t)}});m("\\hphantom","\\smash{\\phantom{#1}}");B({type:"vphantom",names:["\\vphantom"],props:{numArgs:1,allowedInText:!0},handler:(r,e)=>{var{parser:t}=r,a=e[0];return{type:"vphantom",mode:t.mode,body:a}},htmlBuilder:(r,e)=>{var t=k(["inner"],[X(r.body,e.withPhantom())]),a=k(["fix"],[]);return k(["mord","rlap"],[t,a],e)},mathmlBuilder:(r,e)=>{var t=v0(e0(r.body),e),a=new S("mphantom",t),i=new S("mpadded",[a]);return i.setAttribute("width","0px"),i}});B({type:"raisebox",names:["\\raisebox"],props:{numArgs:2,argTypes:["size","hbox"],allowedInText:!0},handler(r,e){var{parser:t}=r,a=O(e[0],"size").value,i=e[1];return{type:"raisebox",mode:t.mode,dy:a,body:i}},htmlBuilder(r,e){var t=X(r.body,e),a=J(r.dy,e);return V({positionType:"shift",positionData:-a,children:[{type:"elem",elem:t}]})},mathmlBuilder(r,e){var t=new S("mpadded",[$(r.body,e)]),a=r.dy.number+r.dy.unit;return t.setAttribute("voffset",a),t}});B({type:"internal",names:["\\relax"],props:{numArgs:0,allowedInText:!0,allowedInArgument:!0},handler(r){var{parser:e}=r;return{type:"internal",mode:e.mode}}});B({type:"rule",names:["\\rule"],props:{numArgs:2,numOptionalArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["size","size","size"]},handler(r,e,t){var{parser:a}=r,i=t[0],s=O(e[0],"size"),u=O(e[1],"size");return{type:"rule",mode:a.mode,shift:i&&O(i,"size").value,width:s.value,height:u.value}},htmlBuilder(r,e){var t=k(["mord","rule"],[],e),a=J(r.width,e),i=J(r.height,e),s=r.shift?J(r.shift,e):0;return t.style.borderRightWidth=A(a),t.style.borderTopWidth=A(i),t.style.bottom=A(s),t.width=a,t.height=i+s,t.depth=-s,t.maxFontSize=i*1.125*e.sizeMultiplier,t},mathmlBuilder(r,e){var t=J(r.width,e),a=J(r.height,e),i=r.shift?J(r.shift,e):0,s=e.color&&e.getColor()||"black",u=new S("mspace");u.setAttribute("mathbackground",s),u.setAttribute("width",A(t)),u.setAttribute("height",A(a));var h=new S("mpadded",[u]);return i>=0?h.setAttribute("height",A(i)):(h.setAttribute("height",A(i)),h.setAttribute("depth",A(-i))),h.setAttribute("voffset",A(i)),h}});function E1(r,e,t){for(var a=a0(r,e,!1),i=e.sizeMultiplier/t.sizeMultiplier,s=0;s{var t=e.havingSize(r.size);return E1(r.body,t,e)};B({type:"sizing",names:Nr,props:{numArgs:0,allowedInText:!0},handler:(r,e)=>{var{breakOnTokenText:t,funcName:a,parser:i}=r,s=i.parseExpression(!1,t);return{type:"sizing",mode:i.mode,size:Nr.indexOf(a)+1,body:s}},htmlBuilder:A4,mathmlBuilder:(r,e)=>{var t=e.havingSize(r.size),a=v0(r.body,t),i=new S("mstyle",a);return i.setAttribute("mathsize",A(t.sizeMultiplier)),i}});B({type:"smash",names:["\\smash"],props:{numArgs:1,numOptionalArgs:1,allowedInText:!0},handler:(r,e,t)=>{var{parser:a}=r,i=!1,s=!1,u=t[0]&&O(t[0],"ordgroup");if(u)for(var h,c=0;c{var t=k([],[X(r.body,e)]);if(!r.smashHeight&&!r.smashDepth)return t;if(r.smashHeight&&(t.height=0),r.smashDepth&&(t.depth=0),r.smashHeight&&r.smashDepth)return k(["mord","smash"],[t],e);if(t.children)for(var a=0;a{var t=new S("mpadded",[$(r.body,e)]);return r.smashHeight&&t.setAttribute("height","0px"),r.smashDepth&&t.setAttribute("depth","0px"),t}});B({type:"sqrt",names:["\\sqrt"],props:{numArgs:1,numOptionalArgs:1},handler(r,e,t){var{parser:a}=r,i=t[0],s=e[0];return{type:"sqrt",mode:a.mode,body:s,index:i}},htmlBuilder(r,e){var t=X(r.body,e.havingCrampedStyle());t.height===0&&(t.height=e.fontMetrics().xHeight),t=ie(t,e);var a=e.fontMetrics(),i=a.defaultRuleThickness,s=i;e.style.idt.height+t.depth+u&&(u=(u+b-t.height-t.depth)/2);var x=c.height-t.height-u-v;t.style.paddingLeft=A(p);var y=V({positionType:"firstBaseline",children:[{type:"elem",elem:t,wrapperClasses:["svg-align"]},{type:"kern",size:-(t.height+x)},{type:"elem",elem:c},{type:"kern",size:v}]});if(r.index){var T=e.havingStyle(N.SCRIPTSCRIPT),M=X(r.index,T,e),q=.6*(y.height-y.depth),C=V({positionType:"shift",positionData:-q,children:[{type:"elem",elem:M}]}),R=k(["root"],[C]);return k(["mord","sqrt"],[R,y],e)}else return k(["mord","sqrt"],[y],e)},mathmlBuilder(r,e){var{body:t,index:a}=r;return a?new S("mroot",[$(t,e),$(a,e)]):new S("msqrt",[$(t,e)])}});var Ft={display:N.DISPLAY,text:N.TEXT,script:N.SCRIPT,scriptscript:N.SCRIPTSCRIPT};function M4(r){return r in Ft}B({type:"styling",names:["\\displaystyle","\\textstyle","\\scriptstyle","\\scriptscriptstyle"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(r,e){var{breakOnTokenText:t,funcName:a,parser:i}=r,s=i.parseExpression(!0,t),u=a.slice(1,a.length-5);if(!M4(u))throw new Error("Unknown style: "+u);return{type:"styling",mode:i.mode,style:u,body:s}},htmlBuilder(r,e){var t=Ft[r.style],a=e.havingStyle(t);return r.resetFont&&(a=a.withFont("")),E1(r.body,a,e)},mathmlBuilder(r,e){var t=Ft[r.style],a=e.havingStyle(t);r.resetFont&&(a=a.withFont(""));var i=v0(r.body,a),s=new S("mstyle",i),u={display:["0","true"],text:["0","false"],script:["1","false"],scriptscript:["2","false"]},h=u[r.style];return s.setAttribute("scriptlevel",h[0]),s.setAttribute("displaystyle",h[1]),s}});var T4=function(e,t){var a=e.base;if(a)if(a.type==="op"){var i=a.limits&&(t.style.size===N.DISPLAY.size||a.alwaysHandleSupSub);return i?se:null}else if(a.type==="operatorname"){var s=a.alwaysHandleSupSub&&(t.style.size===N.DISPLAY.size||a.limits);return s?q1:null}else{if(a.type==="accent")return E0(a.base)?Wt:null;if(a.type==="horizBrace"){var u=!e.sub;return u===a.isOver?B1:null}else return null}else return null};j0({type:"supsub",htmlBuilder(r,e){var t=T4(r,e);if(t)return t(r,e);var{base:a,sup:i,sub:s}=r,u=X(a,e),h,c,v=e.fontMetrics(),p=0,b=0,x=a&&E0(a);if(i){var y=e.havingStyle(e.style.sup());h=X(i,y,e),x||(p=u.height-y.fontMetrics().supDrop*y.sizeMultiplier/e.sizeMultiplier)}if(s){var T=e.havingStyle(e.style.sub());c=X(s,T,e),x||(b=u.depth+T.fontMetrics().subDrop*T.sizeMultiplier/e.sizeMultiplier)}var M;e.style===N.DISPLAY?M=v.sup1:e.style.cramped?M=v.sup3:M=v.sup2;var q=e.sizeMultiplier,C=A(.5/v.ptPerEm/q),R=null;if(c){var F=r.base&&r.base.type==="op"&&r.base.name&&(r.base.name==="\\oiint"||r.base.name==="\\oiiint");if(u instanceof u0||F){var L;R=A(-((L=u.italic)!=null?L:0))}}var H;if(h&&c){p=Math.max(p,M,h.depth+.25*v.xHeight),b=Math.max(b,v.sub2);var P=v.defaultRuleThickness,G=4*P;if(p-h.depth-(c.height-b)0&&(p+=Y,b-=Y)}var U=[{type:"elem",elem:c,shift:b,marginRight:C,marginLeft:R},{type:"elem",elem:h,shift:-p,marginRight:C}];H=V({positionType:"individualShift",children:U})}else if(c){b=Math.max(b,v.sub1,c.height-.8*v.xHeight);var h0=[{type:"elem",elem:c,marginLeft:R,marginRight:C}];H=V({positionType:"shift",positionData:b,children:h0})}else if(h)p=Math.max(p,M,h.depth+.25*v.xHeight),H=V({positionType:"shift",positionData:-p,children:[{type:"elem",elem:h,marginRight:C}]});else throw new Error("supsub must have either sup or sub.");var c0=qt(u,"right")||"mord";return k([c0],[u,k(["msupsub"],[H])],e)},mathmlBuilder(r,e){var t=!1,a,i;r.base&&r.base.type==="horizBrace"&&(i=!!r.sup,i===r.base.isOver&&(t=!0,a=r.base.isOver)),r.base&&(r.base.type==="op"||r.base.type==="operatorname")&&(r.base.parentIsSupSub=!0);var s=[$(r.base,e)];r.sub&&s.push($(r.sub,e)),r.sup&&s.push($(r.sup,e));var u;if(t)u=a?"mover":"munder";else if(r.sub)if(r.sup){var v=r.base;v&&v.type==="op"&&v.limits&&e.style===N.DISPLAY||v&&v.type==="operatorname"&&v.alwaysHandleSupSub&&(e.style===N.DISPLAY||v.limits)?u="munderover":u="msubsup"}else{var c=r.base;c&&c.type==="op"&&c.limits&&(e.style===N.DISPLAY||c.alwaysHandleSupSub)||c&&c.type==="operatorname"&&c.alwaysHandleSupSub&&(c.limits||e.style===N.DISPLAY)?u="munder":u="msub"}else{var h=r.base;h&&h.type==="op"&&h.limits&&(e.style===N.DISPLAY||h.alwaysHandleSupSub)||h&&h.type==="operatorname"&&h.alwaysHandleSupSub&&(h.limits||e.style===N.DISPLAY)?u="mover":u="msup"}return new S(u,s)}});j0({type:"atom",htmlBuilder(r,e){return Vt(r.text,r.mode,e,["m"+r.family])},mathmlBuilder(r,e){var t=new S("mo",[g0(r.text,r.mode)]);if(r.family==="bin"){var a=$t(r,e);a==="bold-italic"&&t.setAttribute("mathvariant",a)}else r.family==="punct"?t.setAttribute("separator","true"):(r.family==="open"||r.family==="close")&&t.setAttribute("stretchy","false");return t}});var R1={mi:"italic",mn:"normal",mtext:"normal"};j0({type:"mathord",htmlBuilder(r,e){return We(r,e,"mathord")},mathmlBuilder(r,e){var t=new S("mi",[g0(r.text,r.mode,e)]),a=$t(r,e)||"italic";return a!==R1[t.type]&&t.setAttribute("mathvariant",a),t}});j0({type:"textord",htmlBuilder(r,e){return We(r,e,"textord")},mathmlBuilder(r,e){var t=g0(r.text,r.mode,e),a=$t(r,e)||"normal",i;return r.mode==="text"?i=new S("mtext",[t]):/[0-9]/.test(r.text)?i=new S("mn",[t]):r.text==="\\prime"?i=new S("mo",[t]):i=new S("mi",[t]),a!==R1[i.type]&&i.setAttribute("mathvariant",a),i}});var pt={"\\nobreak":"nobreak","\\allowbreak":"allowbreak"},gt={" ":{},"\\ ":{},"~":{className:"nobreak"},"\\space":{},"\\nobreakspace":{className:"nobreak"}};j0({type:"spacing",htmlBuilder(r,e){if(gt.hasOwnProperty(r.text)){var t=gt[r.text].className||"";if(r.mode==="text"){var a=We(r,e,"textord");return a.classes.push(t),a}else return k(["mspace",t],[Vt(r.text,r.mode,e)],e)}else{if(pt.hasOwnProperty(r.text))return k(["mspace",pt[r.text]],[],e);throw new z('Unknown type of space "'+r.text+'"')}},mathmlBuilder(r,e){var t;if(gt.hasOwnProperty(r.text))t=new S("mtext",[new Q("\xA0")]);else{if(pt.hasOwnProperty(r.text))return new S("mspace");throw new z('Unknown type of space "'+r.text+'"')}return t}});var Fr=()=>{var r=new S("mtd",[]);return r.setAttribute("width","50%"),r};j0({type:"tag",mathmlBuilder(r,e){var t=new S("mtable",[new S("mtr",[Fr(),new S("mtd",[X0(r.body,e)]),Fr(),new S("mtd",[X0(r.tag,e)])])]);return t.setAttribute("width","100%"),t}});var Or={"\\text":void 0,"\\textrm":"textrm","\\textsf":"textsf","\\texttt":"texttt","\\textnormal":"textrm"},Hr={"\\textbf":"textbf","\\textmd":"textmd"},B4={"\\textit":"textit","\\textup":"textup"},Lr=(r,e)=>{var t=r.font;if(t){if(Or[t])return e.withTextFontFamily(Or[t]);if(Hr[t])return e.withTextFontWeight(Hr[t]);if(t==="\\emph")return e.fontShape==="textit"?e.withTextFontShape("textup"):e.withTextFontShape("textit")}else return e;return e.withTextFontShape(B4[t])};B({type:"text",names:["\\text","\\textrm","\\textsf","\\texttt","\\textnormal","\\textbf","\\textmd","\\textit","\\textup","\\emph"],props:{numArgs:1,argTypes:["text"],allowedInArgument:!0,allowedInText:!0},handler(r,e){var{parser:t,funcName:a}=r,i=e[0];return{type:"text",mode:t.mode,body:e0(i),font:a}},htmlBuilder(r,e){var t=Lr(r,e),a=a0(r.body,t,!0);return k(["mord","text"],a,t)},mathmlBuilder(r,e){var t=Lr(r,e);return X0(r.body,t)}});B({type:"underline",names:["\\underline"],props:{numArgs:1,allowedInText:!0},handler(r,e){var{parser:t}=r;return{type:"underline",mode:t.mode,body:e[0]}},htmlBuilder(r,e){var t=X(r.body,e),a=ae("underline-line",e),i=e.fontMetrics().defaultRuleThickness,s=V({positionType:"top",positionData:t.height,children:[{type:"kern",size:i},{type:"elem",elem:a},{type:"kern",size:3*i},{type:"elem",elem:t}]});return k(["mord","underline"],[s],e)},mathmlBuilder(r,e){var t=new S("mo",[new Q("\u203E")]);t.setAttribute("stretchy","true");var a=new S("munder",[$(r.body,e),t]);return a.setAttribute("accentunder","true"),a}});B({type:"vcenter",names:["\\vcenter"],props:{numArgs:1,argTypes:["original"],allowedInText:!1},handler(r,e){var{parser:t}=r;return{type:"vcenter",mode:t.mode,body:e[0]}},htmlBuilder(r,e){var t=X(r.body,e),a=e.fontMetrics().axisHeight,i=.5*(t.height-a-(t.depth+a));return V({positionType:"shift",positionData:i,children:[{type:"elem",elem:t}]})},mathmlBuilder(r,e){var t=new S("mpadded",[$(r.body,e)],["vcenter"]);return new S("mrow",[t])}});B({type:"verb",names:["\\verb"],props:{numArgs:0,allowedInText:!0},handler(r,e,t){throw new z("\\verb ended by end of line instead of matching delimiter")},htmlBuilder(r,e){for(var t=Pr(r),a=[],i=e.havingStyle(e.style.text()),s=0;sr.body.replace(/ /g,r.star?"\u2423":"\xA0"),L0=t1,I1=`[ \r + ]`,C4="\\\\[a-zA-Z@]+",D4="\\\\[^\uD800-\uDFFF]",q4="("+C4+")"+I1+"*",E4=`\\\\( +|[ \r ]+ +?)[ \r ]*`,Ot="[\u0300-\u036F]",R4=new RegExp(Ot+"+$"),I4="("+I1+"+)|"+(E4+"|")+"([!-\\[\\]-\u2027\u202A-\uD7FF\uF900-\uFFFF]"+(Ot+"*")+"|[\uD800-\uDBFF][\uDC00-\uDFFF]"+(Ot+"*")+"|\\\\verb\\*([^]).*?\\4|\\\\verb([^*a-zA-Z]).*?\\5"+("|"+q4)+("|"+D4+")"),Xe=class{constructor(e,t){this.input=void 0,this.settings=void 0,this.tokenRegex=void 0,this.catcodes=void 0,this.input=e,this.settings=t,this.tokenRegex=new RegExp(I4,"g"),this.catcodes={"%":14,"~":13}}setCatcode(e,t){this.catcodes[e]=t}lex(){var e=this.input,t=this.tokenRegex.lastIndex;if(t===e.length)return new d0("EOF",new m0(this,t,t));var a=this.tokenRegex.exec(e);if(a===null||a.index!==t)throw new z("Unexpected character: '"+e[t]+"'",new d0(e[t],new m0(this,t,t+1)));var i=a[6]||a[3]||(a[2]?"\\ ":" ");if(this.catcodes[i]===14){var s=e.indexOf(` +`,this.tokenRegex.lastIndex);return s===-1?(this.tokenRegex.lastIndex=e.length,this.settings.reportNonstrict("commentAtEnd","% comment has no terminating newline; LaTeX would fail because of commenting the end of math mode (e.g. $)")):this.tokenRegex.lastIndex=s+1,this.lex()}return new d0(i,new m0(this,t,this.tokenRegex.lastIndex))}},Ht=class{constructor(e,t){e===void 0&&(e={}),t===void 0&&(t={}),this.current=void 0,this.builtins=void 0,this.undefStack=void 0,this.current=t,this.builtins=e,this.undefStack=[]}beginGroup(){this.undefStack.push({})}endGroup(){if(this.undefStack.length===0)throw new z("Unbalanced namespace destruction: attempt to pop global namespace; please report this as a bug");var e=this.undefStack.pop();for(var t in e)e.hasOwnProperty(t)&&(e[t]==null?delete this.current[t]:this.current[t]=e[t])}endGroups(){for(;this.undefStack.length>0;)this.endGroup()}has(e){return this.current.hasOwnProperty(e)||this.builtins.hasOwnProperty(e)}get(e){return this.current.hasOwnProperty(e)?this.current[e]:this.builtins[e]}set(e,t,a){if(a===void 0&&(a=!1),a){for(var i=0;i0&&(this.undefStack[this.undefStack.length-1][e]=t)}else{var s=this.undefStack[this.undefStack.length-1];s&&!s.hasOwnProperty(e)&&(s[e]=this.current[e])}t==null?delete this.current[e]:this.current[e]=t}},N4=S1;m("\\noexpand",function(r){var e=r.popToken();return r.isExpandable(e.text)&&(e.noexpand=!0,e.treatAsRelax=!0),{tokens:[e],numArgs:0}});m("\\expandafter",function(r){var e=r.popToken();return r.expandOnce(!0),{tokens:[e],numArgs:0}});m("\\@firstoftwo",function(r){var e=r.consumeArgs(2);return{tokens:e[0],numArgs:0}});m("\\@secondoftwo",function(r){var e=r.consumeArgs(2);return{tokens:e[1],numArgs:0}});m("\\@ifnextchar",function(r){var e=r.consumeArgs(3);r.consumeSpaces();var t=r.future();return e[0].length===1&&e[0][0].text===t.text?{tokens:e[1],numArgs:0}:{tokens:e[2],numArgs:0}});m("\\@ifstar","\\@ifnextchar *{\\@firstoftwo{#1}}");m("\\TextOrMath",function(r){var e=r.consumeArgs(2);return r.mode==="text"?{tokens:e[0],numArgs:0}:{tokens:e[1],numArgs:0}});var Gr={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,a:10,A:10,b:11,B:11,c:12,C:12,d:13,D:13,e:14,E:14,f:15,F:15};m("\\char",function(r){var e=r.popToken(),t,a=0;if(e.text==="'")t=8,e=r.popToken();else if(e.text==='"')t=16,e=r.popToken();else if(e.text==="`")if(e=r.popToken(),e.text[0]==="\\")a=e.text.charCodeAt(1);else{if(e.text==="EOF")throw new z("\\char` missing argument");a=e.text.charCodeAt(0)}else t=10;if(t){if(a=Gr[e.text],a==null||a>=t)throw new z("Invalid base-"+t+" digit "+e.text);for(var i;(i=Gr[r.future().text])!=null&&i{var i=r.consumeArg().tokens;if(i.length!==1)throw new z("\\newcommand's first argument must be a macro name");var s=i[0].text,u=r.isDefined(s);if(u&&!e)throw new z("\\newcommand{"+s+"} attempting to redefine "+(s+"; use \\renewcommand"));if(!u&&!t)throw new z("\\renewcommand{"+s+"} when command "+s+" does not yet exist; use \\newcommand");var h=0;if(i=r.consumeArg().tokens,i.length===1&&i[0].text==="["){for(var c="",v=r.expandNextToken();v.text!=="]"&&v.text!=="EOF";)c+=v.text,v=r.expandNextToken();if(!c.match(/^\s*[0-9]+\s*$/))throw new z("Invalid number of arguments: "+c);h=parseInt(c),i=r.consumeArg().tokens}return u&&a||r.macros.set(s,{tokens:i,numArgs:h}),""};m("\\newcommand",r=>Jt(r,!1,!0,!1));m("\\renewcommand",r=>Jt(r,!0,!1,!1));m("\\providecommand",r=>Jt(r,!0,!0,!0));m("\\message",r=>{var e=r.consumeArgs(1)[0];return console.log(e.reverse().map(t=>t.text).join("")),""});m("\\errmessage",r=>{var e=r.consumeArgs(1)[0];return console.error(e.reverse().map(t=>t.text).join("")),""});m("\\show",r=>{var e=r.popToken(),t=e.text;return console.log(e,r.macros.get(t),L0[t],W.math[t],W.text[t]),""});m("\\bgroup","{");m("\\egroup","}");m("~","\\nobreakspace");m("\\lq","`");m("\\rq","'");m("\\aa","\\r a");m("\\AA","\\r A");m("\\textcopyright","\\html@mathml{\\textcircled{c}}{\\char`\xA9}");m("\\copyright","\\TextOrMath{\\textcopyright}{\\text{\\textcopyright}}");m("\\textregistered","\\html@mathml{\\textcircled{\\scriptsize R}}{\\char`\xAE}");m("\u212C","\\mathscr{B}");m("\u2130","\\mathscr{E}");m("\u2131","\\mathscr{F}");m("\u210B","\\mathscr{H}");m("\u2110","\\mathscr{I}");m("\u2112","\\mathscr{L}");m("\u2133","\\mathscr{M}");m("\u211B","\\mathscr{R}");m("\u212D","\\mathfrak{C}");m("\u210C","\\mathfrak{H}");m("\u2128","\\mathfrak{Z}");m("\\Bbbk","\\Bbb{k}");m("\\llap","\\mathllap{\\textrm{#1}}");m("\\rlap","\\mathrlap{\\textrm{#1}}");m("\\clap","\\mathclap{\\textrm{#1}}");m("\\mathstrut","\\vphantom{(}");m("\\underbar","\\underline{\\text{#1}}");m("\\not",'\\html@mathml{\\mathrel{\\mathrlap\\@not}\\nobreak}{\\char"338}');m("\\neq","\\html@mathml{\\mathrel{\\not=}}{\\mathrel{\\char`\u2260}}");m("\\ne","\\neq");m("\u2260","\\neq");m("\\notin","\\html@mathml{\\mathrel{{\\in}\\mathllap{/\\mskip1mu}}}{\\mathrel{\\char`\u2209}}");m("\u2209","\\notin");m("\u2258","\\html@mathml{\\mathrel{=\\kern{-1em}\\raisebox{0.4em}{$\\scriptsize\\frown$}}}{\\mathrel{\\char`\u2258}}");m("\u2259","\\html@mathml{\\stackrel{\\tiny\\wedge}{=}}{\\mathrel{\\char`\u2258}}");m("\u225A","\\html@mathml{\\stackrel{\\tiny\\vee}{=}}{\\mathrel{\\char`\u225A}}");m("\u225B","\\html@mathml{\\stackrel{\\scriptsize\\star}{=}}{\\mathrel{\\char`\u225B}}");m("\u225D","\\html@mathml{\\stackrel{\\tiny\\mathrm{def}}{=}}{\\mathrel{\\char`\u225D}}");m("\u225E","\\html@mathml{\\stackrel{\\tiny\\mathrm{m}}{=}}{\\mathrel{\\char`\u225E}}");m("\u225F","\\html@mathml{\\stackrel{\\tiny?}{=}}{\\mathrel{\\char`\u225F}}");m("\u27C2","\\perp");m("\u203C","\\mathclose{!\\mkern-0.8mu!}");m("\u220C","\\notni");m("\u231C","\\ulcorner");m("\u231D","\\urcorner");m("\u231E","\\llcorner");m("\u231F","\\lrcorner");m("\xA9","\\copyright");m("\xAE","\\textregistered");m("\\ulcorner",'\\html@mathml{\\@ulcorner}{\\mathop{\\char"231c}}');m("\\urcorner",'\\html@mathml{\\@urcorner}{\\mathop{\\char"231d}}');m("\\llcorner",'\\html@mathml{\\@llcorner}{\\mathop{\\char"231e}}');m("\\lrcorner",'\\html@mathml{\\@lrcorner}{\\mathop{\\char"231f}}');m("\\vdots","{\\varvdots\\rule{0pt}{15pt}}");m("\u22EE","\\vdots");m("\\varGamma","\\mathit{\\Gamma}");m("\\varDelta","\\mathit{\\Delta}");m("\\varTheta","\\mathit{\\Theta}");m("\\varLambda","\\mathit{\\Lambda}");m("\\varXi","\\mathit{\\Xi}");m("\\varPi","\\mathit{\\Pi}");m("\\varSigma","\\mathit{\\Sigma}");m("\\varUpsilon","\\mathit{\\Upsilon}");m("\\varPhi","\\mathit{\\Phi}");m("\\varPsi","\\mathit{\\Psi}");m("\\varOmega","\\mathit{\\Omega}");m("\\substack","\\begin{subarray}{c}#1\\end{subarray}");m("\\colon","\\nobreak\\mskip2mu\\mathpunct{}\\mathchoice{\\mkern-3mu}{\\mkern-3mu}{}{}{:}\\mskip6mu\\relax");m("\\boxed","\\fbox{$\\displaystyle{#1}$}");m("\\iff","\\DOTSB\\;\\Longleftrightarrow\\;");m("\\implies","\\DOTSB\\;\\Longrightarrow\\;");m("\\impliedby","\\DOTSB\\;\\Longleftarrow\\;");m("\\dddot","{\\overset{\\raisebox{-0.1ex}{\\normalsize ...}}{#1}}");m("\\ddddot","{\\overset{\\raisebox{-0.1ex}{\\normalsize ....}}{#1}}");var Ur={",":"\\dotsc","\\not":"\\dotsb","+":"\\dotsb","=":"\\dotsb","<":"\\dotsb",">":"\\dotsb","-":"\\dotsb","*":"\\dotsb",":":"\\dotsb","\\DOTSB":"\\dotsb","\\coprod":"\\dotsb","\\bigvee":"\\dotsb","\\bigwedge":"\\dotsb","\\biguplus":"\\dotsb","\\bigcap":"\\dotsb","\\bigcup":"\\dotsb","\\prod":"\\dotsb","\\sum":"\\dotsb","\\bigotimes":"\\dotsb","\\bigoplus":"\\dotsb","\\bigodot":"\\dotsb","\\bigsqcup":"\\dotsb","\\And":"\\dotsb","\\longrightarrow":"\\dotsb","\\Longrightarrow":"\\dotsb","\\longleftarrow":"\\dotsb","\\Longleftarrow":"\\dotsb","\\longleftrightarrow":"\\dotsb","\\Longleftrightarrow":"\\dotsb","\\mapsto":"\\dotsb","\\longmapsto":"\\dotsb","\\hookrightarrow":"\\dotsb","\\doteq":"\\dotsb","\\mathbin":"\\dotsb","\\mathrel":"\\dotsb","\\relbar":"\\dotsb","\\Relbar":"\\dotsb","\\xrightarrow":"\\dotsb","\\xleftarrow":"\\dotsb","\\DOTSI":"\\dotsi","\\int":"\\dotsi","\\oint":"\\dotsi","\\iint":"\\dotsi","\\iiint":"\\dotsi","\\iiiint":"\\dotsi","\\idotsint":"\\dotsi","\\DOTSX":"\\dotsx"},F4=new Set(["bin","rel"]);m("\\dots",function(r){var e="\\dotso",t=r.expandAfterFuture().text;return t in Ur?e=Ur[t]:(t.slice(0,4)==="\\not"||t in W.math&&F4.has(W.math[t].group))&&(e="\\dotsb"),e});var Qt={")":!0,"]":!0,"\\rbrack":!0,"\\}":!0,"\\rbrace":!0,"\\rangle":!0,"\\rceil":!0,"\\rfloor":!0,"\\rgroup":!0,"\\rmoustache":!0,"\\right":!0,"\\bigr":!0,"\\biggr":!0,"\\Bigr":!0,"\\Biggr":!0,$:!0,";":!0,".":!0,",":!0};m("\\dotso",function(r){var e=r.future().text;return e in Qt?"\\ldots\\,":"\\ldots"});m("\\dotsc",function(r){var e=r.future().text;return e in Qt&&e!==","?"\\ldots\\,":"\\ldots"});m("\\cdots",function(r){var e=r.future().text;return e in Qt?"\\@cdots\\,":"\\@cdots"});m("\\dotsb","\\cdots");m("\\dotsm","\\cdots");m("\\dotsi","\\!\\cdots");m("\\dotsx","\\ldots\\,");m("\\DOTSI","\\relax");m("\\DOTSB","\\relax");m("\\DOTSX","\\relax");m("\\tmspace","\\TextOrMath{\\kern#1#3}{\\mskip#1#2}\\relax");m("\\,","\\tmspace+{3mu}{.1667em}");m("\\thinspace","\\,");m("\\>","\\mskip{4mu}");m("\\:","\\tmspace+{4mu}{.2222em}");m("\\medspace","\\:");m("\\;","\\tmspace+{5mu}{.2777em}");m("\\thickspace","\\;");m("\\!","\\tmspace-{3mu}{.1667em}");m("\\negthinspace","\\!");m("\\negmedspace","\\tmspace-{4mu}{.2222em}");m("\\negthickspace","\\tmspace-{5mu}{.277em}");m("\\enspace","\\kern.5em ");m("\\enskip","\\hskip.5em\\relax");m("\\quad","\\hskip1em\\relax");m("\\qquad","\\hskip2em\\relax");m("\\tag","\\@ifstar\\tag@literal\\tag@paren");m("\\tag@paren","\\tag@literal{({#1})}");m("\\tag@literal",r=>{if(r.macros.get("\\df@tag"))throw new z("Multiple \\tag");return"\\gdef\\df@tag{\\text{#1}}"});m("\\bmod","\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}\\mathbin{\\rm mod}\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}");m("\\pod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern8mu}{\\mkern8mu}{\\mkern8mu}(#1)");m("\\pmod","\\pod{{\\rm mod}\\mkern6mu#1}");m("\\mod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern12mu}{\\mkern12mu}{\\mkern12mu}{\\rm mod}\\,\\,#1");m("\\newline","\\\\\\relax");m("\\TeX","\\textrm{\\html@mathml{T\\kern-.1667em\\raisebox{-.5ex}{E}\\kern-.125emX}{TeX}}");var N1=A(z0["Main-Regular"][84][1]-.7*z0["Main-Regular"][65][1]);m("\\LaTeX","\\textrm{\\html@mathml{"+("L\\kern-.36em\\raisebox{"+N1+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{LaTeX}}");m("\\KaTeX","\\textrm{\\html@mathml{"+("K\\kern-.17em\\raisebox{"+N1+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{KaTeX}}");m("\\hspace","\\@ifstar\\@hspacer\\@hspace");m("\\@hspace","\\hskip #1\\relax");m("\\@hspacer","\\rule{0pt}{0pt}\\hskip #1\\relax");m("\\ordinarycolon",":");m("\\vcentcolon","\\mathrel{\\mathop\\ordinarycolon}");m("\\dblcolon",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-.9mu}\\vcentcolon}}{\\mathop{\\char"2237}}');m("\\coloneqq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2254}}');m("\\Coloneqq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2237\\char"3d}}');m("\\coloneq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"3a\\char"2212}}');m("\\Coloneq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"2237\\char"2212}}');m("\\eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2255}}');m("\\Eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"3d\\char"2237}}');m("\\eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2239}}');m("\\Eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"2212\\char"2237}}');m("\\colonapprox",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"3a\\char"2248}}');m("\\Colonapprox",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"2237\\char"2248}}');m("\\colonsim",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"3a\\char"223c}}');m("\\Colonsim",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"2237\\char"223c}}');m("\u2237","\\dblcolon");m("\u2239","\\eqcolon");m("\u2254","\\coloneqq");m("\u2255","\\eqqcolon");m("\u2A74","\\Coloneqq");m("\\ratio","\\vcentcolon");m("\\coloncolon","\\dblcolon");m("\\colonequals","\\coloneqq");m("\\coloncolonequals","\\Coloneqq");m("\\equalscolon","\\eqqcolon");m("\\equalscoloncolon","\\Eqqcolon");m("\\colonminus","\\coloneq");m("\\coloncolonminus","\\Coloneq");m("\\minuscolon","\\eqcolon");m("\\minuscoloncolon","\\Eqcolon");m("\\coloncolonapprox","\\Colonapprox");m("\\coloncolonsim","\\Colonsim");m("\\simcolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\vcentcolon}");m("\\simcoloncolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\dblcolon}");m("\\approxcolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\vcentcolon}");m("\\approxcoloncolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\dblcolon}");m("\\notni","\\html@mathml{\\not\\ni}{\\mathrel{\\char`\u220C}}");m("\\limsup","\\DOTSB\\operatorname*{lim\\,sup}");m("\\liminf","\\DOTSB\\operatorname*{lim\\,inf}");m("\\injlim","\\DOTSB\\operatorname*{inj\\,lim}");m("\\projlim","\\DOTSB\\operatorname*{proj\\,lim}");m("\\varlimsup","\\DOTSB\\operatorname*{\\overline{lim}}");m("\\varliminf","\\DOTSB\\operatorname*{\\underline{lim}}");m("\\varinjlim","\\DOTSB\\operatorname*{\\underrightarrow{lim}}");m("\\varprojlim","\\DOTSB\\operatorname*{\\underleftarrow{lim}}");m("\\gvertneqq","\\html@mathml{\\@gvertneqq}{\u2269}");m("\\lvertneqq","\\html@mathml{\\@lvertneqq}{\u2268}");m("\\ngeqq","\\html@mathml{\\@ngeqq}{\u2271}");m("\\ngeqslant","\\html@mathml{\\@ngeqslant}{\u2271}");m("\\nleqq","\\html@mathml{\\@nleqq}{\u2270}");m("\\nleqslant","\\html@mathml{\\@nleqslant}{\u2270}");m("\\nshortmid","\\html@mathml{\\@nshortmid}{\u2224}");m("\\nshortparallel","\\html@mathml{\\@nshortparallel}{\u2226}");m("\\nsubseteqq","\\html@mathml{\\@nsubseteqq}{\u2288}");m("\\nsupseteqq","\\html@mathml{\\@nsupseteqq}{\u2289}");m("\\varsubsetneq","\\html@mathml{\\@varsubsetneq}{\u228A}");m("\\varsubsetneqq","\\html@mathml{\\@varsubsetneqq}{\u2ACB}");m("\\varsupsetneq","\\html@mathml{\\@varsupsetneq}{\u228B}");m("\\varsupsetneqq","\\html@mathml{\\@varsupsetneqq}{\u2ACC}");m("\\imath","\\html@mathml{\\@imath}{\u0131}");m("\\jmath","\\html@mathml{\\@jmath}{\u0237}");m("\\llbracket","\\html@mathml{\\mathopen{[\\mkern-3.2mu[}}{\\mathopen{\\char`\u27E6}}");m("\\rrbracket","\\html@mathml{\\mathclose{]\\mkern-3.2mu]}}{\\mathclose{\\char`\u27E7}}");m("\u27E6","\\llbracket");m("\u27E7","\\rrbracket");m("\\lBrace","\\html@mathml{\\mathopen{\\{\\mkern-3.2mu[}}{\\mathopen{\\char`\u2983}}");m("\\rBrace","\\html@mathml{\\mathclose{]\\mkern-3.2mu\\}}}{\\mathclose{\\char`\u2984}}");m("\u2983","\\lBrace");m("\u2984","\\rBrace");m("\\minuso","\\mathbin{\\html@mathml{{\\mathrlap{\\mathchoice{\\kern{0.145em}}{\\kern{0.145em}}{\\kern{0.1015em}}{\\kern{0.0725em}}\\circ}{-}}}{\\char`\u29B5}}");m("\u29B5","\\minuso");m("\\darr","\\downarrow");m("\\dArr","\\Downarrow");m("\\Darr","\\Downarrow");m("\\lang","\\langle");m("\\rang","\\rangle");m("\\uarr","\\uparrow");m("\\uArr","\\Uparrow");m("\\Uarr","\\Uparrow");m("\\N","\\mathbb{N}");m("\\R","\\mathbb{R}");m("\\Z","\\mathbb{Z}");m("\\alef","\\aleph");m("\\alefsym","\\aleph");m("\\Alpha","\\mathrm{A}");m("\\Beta","\\mathrm{B}");m("\\bull","\\bullet");m("\\Chi","\\mathrm{X}");m("\\clubs","\\clubsuit");m("\\cnums","\\mathbb{C}");m("\\Complex","\\mathbb{C}");m("\\Dagger","\\ddagger");m("\\diamonds","\\diamondsuit");m("\\empty","\\emptyset");m("\\Epsilon","\\mathrm{E}");m("\\Eta","\\mathrm{H}");m("\\exist","\\exists");m("\\harr","\\leftrightarrow");m("\\hArr","\\Leftrightarrow");m("\\Harr","\\Leftrightarrow");m("\\hearts","\\heartsuit");m("\\image","\\Im");m("\\infin","\\infty");m("\\Iota","\\mathrm{I}");m("\\isin","\\in");m("\\Kappa","\\mathrm{K}");m("\\larr","\\leftarrow");m("\\lArr","\\Leftarrow");m("\\Larr","\\Leftarrow");m("\\lrarr","\\leftrightarrow");m("\\lrArr","\\Leftrightarrow");m("\\Lrarr","\\Leftrightarrow");m("\\Mu","\\mathrm{M}");m("\\natnums","\\mathbb{N}");m("\\Nu","\\mathrm{N}");m("\\Omicron","\\mathrm{O}");m("\\plusmn","\\pm");m("\\rarr","\\rightarrow");m("\\rArr","\\Rightarrow");m("\\Rarr","\\Rightarrow");m("\\real","\\Re");m("\\reals","\\mathbb{R}");m("\\Reals","\\mathbb{R}");m("\\Rho","\\mathrm{P}");m("\\sdot","\\cdot");m("\\sect","\\S");m("\\spades","\\spadesuit");m("\\sub","\\subset");m("\\sube","\\subseteq");m("\\supe","\\supseteq");m("\\Tau","\\mathrm{T}");m("\\thetasym","\\vartheta");m("\\weierp","\\wp");m("\\Zeta","\\mathrm{Z}");m("\\argmin","\\DOTSB\\operatorname*{arg\\,min}");m("\\argmax","\\DOTSB\\operatorname*{arg\\,max}");m("\\plim","\\DOTSB\\mathop{\\operatorname{plim}}\\limits");m("\\bra","\\mathinner{\\langle{#1}|}");m("\\ket","\\mathinner{|{#1}\\rangle}");m("\\braket","\\mathinner{\\langle{#1}\\rangle}");m("\\Bra","\\left\\langle#1\\right|");m("\\Ket","\\left|#1\\right\\rangle");var F1=r=>e=>{var t=e.consumeArg().tokens,a=e.consumeArg().tokens,i=e.consumeArg().tokens,s=e.consumeArg().tokens,u=e.macros.get("|"),h=e.macros.get("\\|");e.macros.beginGroup();var c=b=>x=>{r&&(x.macros.set("|",u),i.length&&x.macros.set("\\|",h));var y=b;if(!b&&i.length){var T=x.future();T.text==="|"&&(x.popToken(),y=!0)}return{tokens:y?i:a,numArgs:0}};e.macros.set("|",c(!1)),i.length&&e.macros.set("\\|",c(!0));var v=e.consumeArg().tokens,p=e.expandTokens([...s,...v,...t]);return e.macros.endGroup(),{tokens:p.reverse(),numArgs:0}};m("\\bra@ket",F1(!1));m("\\bra@set",F1(!0));m("\\Braket","\\bra@ket{\\left\\langle}{\\,\\middle\\vert\\,}{\\,\\middle\\vert\\,}{\\right\\rangle}");m("\\Set","\\bra@set{\\left\\{\\:}{\\;\\middle\\vert\\;}{\\;\\middle\\Vert\\;}{\\:\\right\\}}");m("\\set","\\bra@set{\\{\\,}{\\mid}{}{\\,\\}}");m("\\angln","{\\angl n}");m("\\blue","\\textcolor{##6495ed}{#1}");m("\\orange","\\textcolor{##ffa500}{#1}");m("\\pink","\\textcolor{##ff00af}{#1}");m("\\red","\\textcolor{##df0030}{#1}");m("\\green","\\textcolor{##28ae7b}{#1}");m("\\gray","\\textcolor{gray}{#1}");m("\\purple","\\textcolor{##9d38bd}{#1}");m("\\blueA","\\textcolor{##ccfaff}{#1}");m("\\blueB","\\textcolor{##80f6ff}{#1}");m("\\blueC","\\textcolor{##63d9ea}{#1}");m("\\blueD","\\textcolor{##11accd}{#1}");m("\\blueE","\\textcolor{##0c7f99}{#1}");m("\\tealA","\\textcolor{##94fff5}{#1}");m("\\tealB","\\textcolor{##26edd5}{#1}");m("\\tealC","\\textcolor{##01d1c1}{#1}");m("\\tealD","\\textcolor{##01a995}{#1}");m("\\tealE","\\textcolor{##208170}{#1}");m("\\greenA","\\textcolor{##b6ffb0}{#1}");m("\\greenB","\\textcolor{##8af281}{#1}");m("\\greenC","\\textcolor{##74cf70}{#1}");m("\\greenD","\\textcolor{##1fab54}{#1}");m("\\greenE","\\textcolor{##0d923f}{#1}");m("\\goldA","\\textcolor{##ffd0a9}{#1}");m("\\goldB","\\textcolor{##ffbb71}{#1}");m("\\goldC","\\textcolor{##ff9c39}{#1}");m("\\goldD","\\textcolor{##e07d10}{#1}");m("\\goldE","\\textcolor{##a75a05}{#1}");m("\\redA","\\textcolor{##fca9a9}{#1}");m("\\redB","\\textcolor{##ff8482}{#1}");m("\\redC","\\textcolor{##f9685d}{#1}");m("\\redD","\\textcolor{##e84d39}{#1}");m("\\redE","\\textcolor{##bc2612}{#1}");m("\\maroonA","\\textcolor{##ffbde0}{#1}");m("\\maroonB","\\textcolor{##ff92c6}{#1}");m("\\maroonC","\\textcolor{##ed5fa6}{#1}");m("\\maroonD","\\textcolor{##ca337c}{#1}");m("\\maroonE","\\textcolor{##9e034e}{#1}");m("\\purpleA","\\textcolor{##ddd7ff}{#1}");m("\\purpleB","\\textcolor{##c6b9fc}{#1}");m("\\purpleC","\\textcolor{##aa87ff}{#1}");m("\\purpleD","\\textcolor{##7854ab}{#1}");m("\\purpleE","\\textcolor{##543b78}{#1}");m("\\mintA","\\textcolor{##f5f9e8}{#1}");m("\\mintB","\\textcolor{##edf2df}{#1}");m("\\mintC","\\textcolor{##e0e5cc}{#1}");m("\\grayA","\\textcolor{##f6f7f7}{#1}");m("\\grayB","\\textcolor{##f0f1f2}{#1}");m("\\grayC","\\textcolor{##e3e5e6}{#1}");m("\\grayD","\\textcolor{##d6d8da}{#1}");m("\\grayE","\\textcolor{##babec2}{#1}");m("\\grayF","\\textcolor{##888d93}{#1}");m("\\grayG","\\textcolor{##626569}{#1}");m("\\grayH","\\textcolor{##3b3e40}{#1}");m("\\grayI","\\textcolor{##21242c}{#1}");m("\\kaBlue","\\textcolor{##314453}{#1}");m("\\kaGreen","\\textcolor{##71B307}{#1}");var O1={"^":!0,_:!0,"\\limits":!0,"\\nolimits":!0},Lt=class{constructor(e,t,a){this.settings=void 0,this.expansionCount=void 0,this.lexer=void 0,this.macros=void 0,this.stack=void 0,this.mode=void 0,this.settings=t,this.expansionCount=0,this.feed(e),this.macros=new Ht(N4,t.macros),this.mode=a,this.stack=[]}feed(e){this.lexer=new Xe(e,this.settings)}switchMode(e){this.mode=e}beginGroup(){this.macros.beginGroup()}endGroup(){this.macros.endGroup()}endGroups(){this.macros.endGroups()}future(){return this.stack.length===0&&this.pushToken(this.lexer.lex()),this.stack[this.stack.length-1]}popToken(){return this.future(),this.stack.pop()}pushToken(e){this.stack.push(e)}pushTokens(e){this.stack.push(...e)}scanArgument(e){var t,a,i;if(e){if(this.consumeSpaces(),this.future().text!=="[")return null;t=this.popToken(),{tokens:i,end:a}=this.consumeArg(["]"])}else({tokens:i,start:t,end:a}=this.consumeArg());return this.pushToken(new d0("EOF",a.loc)),this.pushTokens(i),new d0("",m0.range(t,a))}consumeSpaces(){for(;;){var e=this.future();if(e.text===" ")this.stack.pop();else break}}consumeArg(e){var t=[],a=e&&e.length>0;a||this.consumeSpaces();var i=this.future(),s,u=0,h=0;do{if(s=this.popToken(),t.push(s),s.text==="{")++u;else if(s.text==="}"){if(--u,u===-1)throw new z("Extra }",s)}else if(s.text==="EOF")throw new z("Unexpected end of input in a macro argument, expected '"+(e&&a?e[h]:"}")+"'",s);if(e&&a)if((u===0||u===1&&e[h]==="{")&&s.text===e[h]){if(++h,h===e.length){t.splice(-h,h);break}}else h=0}while(u!==0||a);return i.text==="{"&&t[t.length-1].text==="}"&&(t.pop(),t.shift()),t.reverse(),{tokens:t,start:i,end:s}}consumeArgs(e,t){if(t){if(t.length!==e+1)throw new z("The length of delimiters doesn't match the number of args!");for(var a=t[0],i=0;ithis.settings.maxExpand)throw new z("Too many expansions: infinite loop or need to increase maxExpand setting")}expandOnce(e){var t=this.popToken(),a=t.text,i=t.noexpand?null:this._getExpansion(a);if(i==null||e&&i.unexpandable){if(e&&i==null&&a[0]==="\\"&&!this.isDefined(a))throw new z("Undefined control sequence: "+a);return this.pushToken(t),!1}this.countExpansion(1);var s=i.tokens,u=this.consumeArgs(i.numArgs,i.delimiters);if(i.numArgs){s=s.slice();for(var h=s.length-1;h>=0;--h){var c=s[h];if(c.text==="#"){if(h===0)throw new z("Incomplete placeholder at end of macro body",c);if(c=s[--h],c.text==="#")s.splice(h+1,1);else if(/^[1-9]$/.test(c.text))s.splice(h,2,...u[+c.text-1]);else throw new z("Not a valid argument number",c)}}}return this.pushTokens(s),s.length}expandAfterFuture(){return this.expandOnce(),this.future()}expandNextToken(){for(;;)if(this.expandOnce()===!1){var e=this.stack.pop();return e.treatAsRelax&&(e.text="\\relax"),e}}expandMacro(e){return this.macros.has(e)?this.expandTokens([new d0(e)]):void 0}expandTokens(e){var t=[],a=this.stack.length;for(this.pushTokens(e);this.stack.length>a;)if(this.expandOnce(!0)===!1){var i=this.stack.pop();i.treatAsRelax&&(i.noexpand=!1,i.treatAsRelax=!1),t.push(i)}return this.countExpansion(t.length),t}expandMacroAsText(e){var t=this.expandMacro(e);return t&&t.map(a=>a.text).join("")}_getExpansion(e){var t=this.macros.get(e);if(t==null)return t;if(e.length===1){var a=this.lexer.catcodes[e];if(a!=null&&a!==13)return}var i=typeof t=="function"?t(this):t;if(typeof i=="string"){var s=0;if(i.includes("#"))for(var u=i.replace(/##/g,"");u.includes("#"+(s+1));)++s;for(var h=new Xe(i,this.settings),c=[],v=h.lex();v.text!=="EOF";)c.push(v),v=h.lex();c.reverse();var p={tokens:c,numArgs:s};return p}return i}isDefined(e){return this.macros.has(e)||L0.hasOwnProperty(e)||W.math.hasOwnProperty(e)||W.text.hasOwnProperty(e)||O1.hasOwnProperty(e)}isExpandable(e){var t=this.macros.get(e);return t!=null?typeof t=="string"||typeof t=="function"||!t.unexpandable:L0.hasOwnProperty(e)&&!L0[e].primitive}},Vr=/^[₊₋₌₍₎₀₁₂₃₄₅₆₇₈₉ₐₑₕᵢⱼₖₗₘₙₒₚᵣₛₜᵤᵥₓᵦᵧᵨᵩᵪ]/,Ie=Object.freeze({"\u208A":"+","\u208B":"-","\u208C":"=","\u208D":"(","\u208E":")","\u2080":"0","\u2081":"1","\u2082":"2","\u2083":"3","\u2084":"4","\u2085":"5","\u2086":"6","\u2087":"7","\u2088":"8","\u2089":"9","\u2090":"a","\u2091":"e","\u2095":"h","\u1D62":"i","\u2C7C":"j","\u2096":"k","\u2097":"l","\u2098":"m","\u2099":"n","\u2092":"o","\u209A":"p","\u1D63":"r","\u209B":"s","\u209C":"t","\u1D64":"u","\u1D65":"v","\u2093":"x","\u1D66":"\u03B2","\u1D67":"\u03B3","\u1D68":"\u03C1","\u1D69":"\u03D5","\u1D6A":"\u03C7","\u207A":"+","\u207B":"-","\u207C":"=","\u207D":"(","\u207E":")","\u2070":"0","\xB9":"1","\xB2":"2","\xB3":"3","\u2074":"4","\u2075":"5","\u2076":"6","\u2077":"7","\u2078":"8","\u2079":"9","\u1D2C":"A","\u1D2E":"B","\u1D30":"D","\u1D31":"E","\u1D33":"G","\u1D34":"H","\u1D35":"I","\u1D36":"J","\u1D37":"K","\u1D38":"L","\u1D39":"M","\u1D3A":"N","\u1D3C":"O","\u1D3E":"P","\u1D3F":"R","\u1D40":"T","\u1D41":"U","\u2C7D":"V","\u1D42":"W","\u1D43":"a","\u1D47":"b","\u1D9C":"c","\u1D48":"d","\u1D49":"e","\u1DA0":"f","\u1D4D":"g",\u02B0:"h","\u2071":"i",\u02B2:"j","\u1D4F":"k",\u02E1:"l","\u1D50":"m",\u207F:"n","\u1D52":"o","\u1D56":"p",\u02B3:"r",\u02E2:"s","\u1D57":"t","\u1D58":"u","\u1D5B":"v",\u02B7:"w",\u02E3:"x",\u02B8:"y","\u1DBB":"z","\u1D5D":"\u03B2","\u1D5E":"\u03B3","\u1D5F":"\u03B4","\u1D60":"\u03D5","\u1D61":"\u03C7","\u1DBF":"\u03B8"}),bt={"\u0301":{text:"\\'",math:"\\acute"},"\u0300":{text:"\\`",math:"\\grave"},"\u0308":{text:'\\"',math:"\\ddot"},"\u0303":{text:"\\~",math:"\\tilde"},"\u0304":{text:"\\=",math:"\\bar"},"\u0306":{text:"\\u",math:"\\breve"},"\u030C":{text:"\\v",math:"\\check"},"\u0302":{text:"\\^",math:"\\hat"},"\u0307":{text:"\\.",math:"\\dot"},"\u030A":{text:"\\r",math:"\\mathring"},"\u030B":{text:"\\H"},"\u0327":{text:"\\c"}},Xr={\u00E1:"a\u0301",\u00E0:"a\u0300",\u00E4:"a\u0308",\u01DF:"a\u0308\u0304",\u00E3:"a\u0303",\u0101:"a\u0304",\u0103:"a\u0306",\u1EAF:"a\u0306\u0301",\u1EB1:"a\u0306\u0300",\u1EB5:"a\u0306\u0303",\u01CE:"a\u030C",\u00E2:"a\u0302",\u1EA5:"a\u0302\u0301",\u1EA7:"a\u0302\u0300",\u1EAB:"a\u0302\u0303",\u0227:"a\u0307",\u01E1:"a\u0307\u0304",\u00E5:"a\u030A",\u01FB:"a\u030A\u0301",\u1E03:"b\u0307",\u0107:"c\u0301",\u1E09:"c\u0327\u0301",\u010D:"c\u030C",\u0109:"c\u0302",\u010B:"c\u0307",\u00E7:"c\u0327",\u010F:"d\u030C",\u1E0B:"d\u0307",\u1E11:"d\u0327",\u00E9:"e\u0301",\u00E8:"e\u0300",\u00EB:"e\u0308",\u1EBD:"e\u0303",\u0113:"e\u0304",\u1E17:"e\u0304\u0301",\u1E15:"e\u0304\u0300",\u0115:"e\u0306",\u1E1D:"e\u0327\u0306",\u011B:"e\u030C",\u00EA:"e\u0302",\u1EBF:"e\u0302\u0301",\u1EC1:"e\u0302\u0300",\u1EC5:"e\u0302\u0303",\u0117:"e\u0307",\u0229:"e\u0327",\u1E1F:"f\u0307",\u01F5:"g\u0301",\u1E21:"g\u0304",\u011F:"g\u0306",\u01E7:"g\u030C",\u011D:"g\u0302",\u0121:"g\u0307",\u0123:"g\u0327",\u1E27:"h\u0308",\u021F:"h\u030C",\u0125:"h\u0302",\u1E23:"h\u0307",\u1E29:"h\u0327",\u00ED:"i\u0301",\u00EC:"i\u0300",\u00EF:"i\u0308",\u1E2F:"i\u0308\u0301",\u0129:"i\u0303",\u012B:"i\u0304",\u012D:"i\u0306",\u01D0:"i\u030C",\u00EE:"i\u0302",\u01F0:"j\u030C",\u0135:"j\u0302",\u1E31:"k\u0301",\u01E9:"k\u030C",\u0137:"k\u0327",\u013A:"l\u0301",\u013E:"l\u030C",\u013C:"l\u0327",\u1E3F:"m\u0301",\u1E41:"m\u0307",\u0144:"n\u0301",\u01F9:"n\u0300",\u00F1:"n\u0303",\u0148:"n\u030C",\u1E45:"n\u0307",\u0146:"n\u0327",\u00F3:"o\u0301",\u00F2:"o\u0300",\u00F6:"o\u0308",\u022B:"o\u0308\u0304",\u00F5:"o\u0303",\u1E4D:"o\u0303\u0301",\u1E4F:"o\u0303\u0308",\u022D:"o\u0303\u0304",\u014D:"o\u0304",\u1E53:"o\u0304\u0301",\u1E51:"o\u0304\u0300",\u014F:"o\u0306",\u01D2:"o\u030C",\u00F4:"o\u0302",\u1ED1:"o\u0302\u0301",\u1ED3:"o\u0302\u0300",\u1ED7:"o\u0302\u0303",\u022F:"o\u0307",\u0231:"o\u0307\u0304",\u0151:"o\u030B",\u1E55:"p\u0301",\u1E57:"p\u0307",\u0155:"r\u0301",\u0159:"r\u030C",\u1E59:"r\u0307",\u0157:"r\u0327",\u015B:"s\u0301",\u1E65:"s\u0301\u0307",\u0161:"s\u030C",\u1E67:"s\u030C\u0307",\u015D:"s\u0302",\u1E61:"s\u0307",\u015F:"s\u0327",\u1E97:"t\u0308",\u0165:"t\u030C",\u1E6B:"t\u0307",\u0163:"t\u0327",\u00FA:"u\u0301",\u00F9:"u\u0300",\u00FC:"u\u0308",\u01D8:"u\u0308\u0301",\u01DC:"u\u0308\u0300",\u01D6:"u\u0308\u0304",\u01DA:"u\u0308\u030C",\u0169:"u\u0303",\u1E79:"u\u0303\u0301",\u016B:"u\u0304",\u1E7B:"u\u0304\u0308",\u016D:"u\u0306",\u01D4:"u\u030C",\u00FB:"u\u0302",\u016F:"u\u030A",\u0171:"u\u030B",\u1E7D:"v\u0303",\u1E83:"w\u0301",\u1E81:"w\u0300",\u1E85:"w\u0308",\u0175:"w\u0302",\u1E87:"w\u0307",\u1E98:"w\u030A",\u1E8D:"x\u0308",\u1E8B:"x\u0307",\u00FD:"y\u0301",\u1EF3:"y\u0300",\u00FF:"y\u0308",\u1EF9:"y\u0303",\u0233:"y\u0304",\u0177:"y\u0302",\u1E8F:"y\u0307",\u1E99:"y\u030A",\u017A:"z\u0301",\u017E:"z\u030C",\u1E91:"z\u0302",\u017C:"z\u0307",\u00C1:"A\u0301",\u00C0:"A\u0300",\u00C4:"A\u0308",\u01DE:"A\u0308\u0304",\u00C3:"A\u0303",\u0100:"A\u0304",\u0102:"A\u0306",\u1EAE:"A\u0306\u0301",\u1EB0:"A\u0306\u0300",\u1EB4:"A\u0306\u0303",\u01CD:"A\u030C",\u00C2:"A\u0302",\u1EA4:"A\u0302\u0301",\u1EA6:"A\u0302\u0300",\u1EAA:"A\u0302\u0303",\u0226:"A\u0307",\u01E0:"A\u0307\u0304",\u00C5:"A\u030A",\u01FA:"A\u030A\u0301",\u1E02:"B\u0307",\u0106:"C\u0301",\u1E08:"C\u0327\u0301",\u010C:"C\u030C",\u0108:"C\u0302",\u010A:"C\u0307",\u00C7:"C\u0327",\u010E:"D\u030C",\u1E0A:"D\u0307",\u1E10:"D\u0327",\u00C9:"E\u0301",\u00C8:"E\u0300",\u00CB:"E\u0308",\u1EBC:"E\u0303",\u0112:"E\u0304",\u1E16:"E\u0304\u0301",\u1E14:"E\u0304\u0300",\u0114:"E\u0306",\u1E1C:"E\u0327\u0306",\u011A:"E\u030C",\u00CA:"E\u0302",\u1EBE:"E\u0302\u0301",\u1EC0:"E\u0302\u0300",\u1EC4:"E\u0302\u0303",\u0116:"E\u0307",\u0228:"E\u0327",\u1E1E:"F\u0307",\u01F4:"G\u0301",\u1E20:"G\u0304",\u011E:"G\u0306",\u01E6:"G\u030C",\u011C:"G\u0302",\u0120:"G\u0307",\u0122:"G\u0327",\u1E26:"H\u0308",\u021E:"H\u030C",\u0124:"H\u0302",\u1E22:"H\u0307",\u1E28:"H\u0327",\u00CD:"I\u0301",\u00CC:"I\u0300",\u00CF:"I\u0308",\u1E2E:"I\u0308\u0301",\u0128:"I\u0303",\u012A:"I\u0304",\u012C:"I\u0306",\u01CF:"I\u030C",\u00CE:"I\u0302",\u0130:"I\u0307",\u0134:"J\u0302",\u1E30:"K\u0301",\u01E8:"K\u030C",\u0136:"K\u0327",\u0139:"L\u0301",\u013D:"L\u030C",\u013B:"L\u0327",\u1E3E:"M\u0301",\u1E40:"M\u0307",\u0143:"N\u0301",\u01F8:"N\u0300",\u00D1:"N\u0303",\u0147:"N\u030C",\u1E44:"N\u0307",\u0145:"N\u0327",\u00D3:"O\u0301",\u00D2:"O\u0300",\u00D6:"O\u0308",\u022A:"O\u0308\u0304",\u00D5:"O\u0303",\u1E4C:"O\u0303\u0301",\u1E4E:"O\u0303\u0308",\u022C:"O\u0303\u0304",\u014C:"O\u0304",\u1E52:"O\u0304\u0301",\u1E50:"O\u0304\u0300",\u014E:"O\u0306",\u01D1:"O\u030C",\u00D4:"O\u0302",\u1ED0:"O\u0302\u0301",\u1ED2:"O\u0302\u0300",\u1ED6:"O\u0302\u0303",\u022E:"O\u0307",\u0230:"O\u0307\u0304",\u0150:"O\u030B",\u1E54:"P\u0301",\u1E56:"P\u0307",\u0154:"R\u0301",\u0158:"R\u030C",\u1E58:"R\u0307",\u0156:"R\u0327",\u015A:"S\u0301",\u1E64:"S\u0301\u0307",\u0160:"S\u030C",\u1E66:"S\u030C\u0307",\u015C:"S\u0302",\u1E60:"S\u0307",\u015E:"S\u0327",\u0164:"T\u030C",\u1E6A:"T\u0307",\u0162:"T\u0327",\u00DA:"U\u0301",\u00D9:"U\u0300",\u00DC:"U\u0308",\u01D7:"U\u0308\u0301",\u01DB:"U\u0308\u0300",\u01D5:"U\u0308\u0304",\u01D9:"U\u0308\u030C",\u0168:"U\u0303",\u1E78:"U\u0303\u0301",\u016A:"U\u0304",\u1E7A:"U\u0304\u0308",\u016C:"U\u0306",\u01D3:"U\u030C",\u00DB:"U\u0302",\u016E:"U\u030A",\u0170:"U\u030B",\u1E7C:"V\u0303",\u1E82:"W\u0301",\u1E80:"W\u0300",\u1E84:"W\u0308",\u0174:"W\u0302",\u1E86:"W\u0307",\u1E8C:"X\u0308",\u1E8A:"X\u0307",\u00DD:"Y\u0301",\u1EF2:"Y\u0300",\u0178:"Y\u0308",\u1EF8:"Y\u0303",\u0232:"Y\u0304",\u0176:"Y\u0302",\u1E8E:"Y\u0307",\u0179:"Z\u0301",\u017D:"Z\u030C",\u1E90:"Z\u0302",\u017B:"Z\u0307",\u03AC:"\u03B1\u0301",\u1F70:"\u03B1\u0300",\u1FB1:"\u03B1\u0304",\u1FB0:"\u03B1\u0306",\u03AD:"\u03B5\u0301",\u1F72:"\u03B5\u0300",\u03AE:"\u03B7\u0301",\u1F74:"\u03B7\u0300",\u03AF:"\u03B9\u0301",\u1F76:"\u03B9\u0300",\u03CA:"\u03B9\u0308",\u0390:"\u03B9\u0308\u0301",\u1FD2:"\u03B9\u0308\u0300",\u1FD1:"\u03B9\u0304",\u1FD0:"\u03B9\u0306",\u03CC:"\u03BF\u0301",\u1F78:"\u03BF\u0300",\u03CD:"\u03C5\u0301",\u1F7A:"\u03C5\u0300",\u03CB:"\u03C5\u0308",\u03B0:"\u03C5\u0308\u0301",\u1FE2:"\u03C5\u0308\u0300",\u1FE1:"\u03C5\u0304",\u1FE0:"\u03C5\u0306",\u03CE:"\u03C9\u0301",\u1F7C:"\u03C9\u0300",\u038E:"\u03A5\u0301",\u1FEA:"\u03A5\u0300",\u03AB:"\u03A5\u0308",\u1FE9:"\u03A5\u0304",\u1FE8:"\u03A5\u0306",\u038F:"\u03A9\u0301",\u1FFA:"\u03A9\u0300"},Ye=class r{constructor(e,t){this.mode=void 0,this.gullet=void 0,this.settings=void 0,this.leftrightDepth=void 0,this.nextToken=void 0,this.mode="math",this.gullet=new Lt(e,t,this.mode),this.settings=t,this.leftrightDepth=0,this.nextToken=null}expect(e,t){if(t===void 0&&(t=!0),this.fetch().text!==e)throw new z("Expected '"+e+"', got '"+this.fetch().text+"'",this.fetch());t&&this.consume()}consume(){this.nextToken=null}fetch(){return this.nextToken==null&&(this.nextToken=this.gullet.expandNextToken()),this.nextToken}switchMode(e){this.mode=e,this.gullet.switchMode(e)}parse(){this.settings.globalGroup||this.gullet.beginGroup(),this.settings.colorIsTextColor&&this.gullet.macros.set("\\color","\\textcolor");try{var e=this.parseExpression(!1);return this.expect("EOF"),this.settings.globalGroup||this.gullet.endGroup(),e}finally{this.gullet.endGroups()}}subparse(e){var t=this.nextToken;this.consume(),this.gullet.pushToken(new d0("}")),this.gullet.pushTokens(e);var a=this.parseExpression(!1);return this.expect("}"),this.nextToken=t,a}parseExpression(e,t){for(var a=[];;){this.mode==="math"&&this.consumeSpaces();var i=this.fetch();if(r.endOfExpression.has(i.text)||t&&i.text===t||e&&L0[i.text]&&L0[i.text].infix)break;var s=this.parseAtom(t);if(s){if(s.type==="internal")continue}else break;a.push(s)}return this.mode==="text"&&this.formLigatures(a),this.handleInfixNodes(a)}handleInfixNodes(e){for(var t=-1,a,i=0;i=128)this.settings.strict&&(Yr(t.charCodeAt(0))?this.mode==="math"&&this.settings.reportNonstrict("unicodeTextInMathMode",'Unicode text character "'+t[0]+'" used in math mode',e):this.settings.reportNonstrict("unknownSymbol",'Unrecognized Unicode character "'+t[0]+'"'+(" ("+t.charCodeAt(0)+")"),e)),u={type:"textord",mode:"text",loc:m0.range(e),text:t};else return null;if(this.consume(),s)for(var p=0;p.katex-newline{display:block}.katex .katex-base{position:relative;white-space:nowrap;width:-webkit-min-content;width:-moz-min-content;width:min-content}.katex .katex-base,.katex .katex-strut{display:inline-block}.katex .textbf{font-weight:700}.katex .textit{font-style:italic}.katex .textrm{font-family:KaTeX_Main}.katex .textsf{font-family:KaTeX_SansSerif}.katex .texttt{font-family:KaTeX_Typewriter}.katex .mathnormal{font-family:KaTeX_Math;font-style:italic}.katex .mathit{font-family:KaTeX_Main;font-style:italic}.katex .mathrm{font-style:normal}.katex .mathbf{font-family:KaTeX_Main;font-weight:700}.katex .boldsymbol{font-family:KaTeX_Math;font-style:italic;font-weight:700}.katex .amsrm,.katex .mathbb,.katex .textbb{font-family:KaTeX_AMS}.katex .mathcal{font-family:KaTeX_Caligraphic}.katex .mathfrak,.katex .textfrak{font-family:KaTeX_Fraktur}.katex .mathboldfrak,.katex .textboldfrak{font-family:KaTeX_Fraktur;font-weight:700}.katex .mathtt{font-family:KaTeX_Typewriter}.katex .mathscr,.katex .textscr{font-family:KaTeX_Script}.katex .mathsf,.katex .textsf{font-family:KaTeX_SansSerif}.katex .mathboldsf,.katex .textboldsf{font-family:KaTeX_SansSerif;font-weight:700}.katex .mathitsf,.katex .mathsfit,.katex .textitsf{font-family:KaTeX_SansSerif;font-style:italic}.katex .mainrm{font-family:KaTeX_Main;font-style:normal}.katex .vlist-t{border-collapse:collapse;display:inline-table;table-layout:fixed}.katex .vlist-r{display:table-row}.katex .vlist{display:table-cell;position:relative;vertical-align:bottom}.katex .vlist>span{display:block;height:0;position:relative}.katex .vlist>span>span{display:inline-block}.katex .vlist>span>.pstrut{overflow:hidden;width:0}.katex .vlist-t2{margin-right:-2px}.katex .vlist-s{display:table-cell;font-size:1px;min-width:2px;vertical-align:bottom;width:2px}.katex .katex-vbox{align-items:baseline;display:inline-flex;flex-direction:column}.katex .katex-thinbox{display:inline-flex;flex-direction:row;max-width:0;width:0}.katex .msupsub{text-align:left}.katex .mfrac>span>span{text-align:center}.katex .mfrac .frac-line{border-bottom-style:solid;display:inline-block;width:100%}.katex .katex-hdashline,.katex .katex-hline,.katex .katex-overline .overline-line,.katex .katex-rule,.katex .katex-underline .underline-line,.katex .mfrac .frac-line{min-height:1px}.katex .mspace{display:inline-block}.katex .katex-smash{display:inline;line-height:0}.katex .clap,.katex .llap,.katex .rlap{position:relative;width:0}.katex .clap>.katex-inner,.katex .llap>.katex-inner,.katex .rlap>.katex-inner{position:absolute}.katex .clap>.katex-fix,.katex .llap>.katex-fix,.katex .rlap>.katex-fix{display:inline-block}.katex .llap>.katex-inner{right:0}.katex .clap>.katex-inner,.katex .rlap>.katex-inner{left:0}.katex .clap>.katex-inner>span{margin-left:-50%;margin-right:50%}.katex .katex-rule{border:0 solid;display:inline-block;position:relative}.katex .katex-hline,.katex .katex-overline .overline-line,.katex .katex-underline .underline-line{border-bottom-style:solid;display:inline-block;width:100%}.katex .katex-hdashline{border-bottom-style:dashed;display:inline-block;width:100%}.katex .sqrt>.katex-root{margin-left:.2777777778em;margin-right:-.5555555556em}.katex .fontsize-ensurer.reset-size1.size1,.katex .katex-sizing.reset-size1.size1{font-size:1em}.katex .fontsize-ensurer.reset-size1.size2,.katex .katex-sizing.reset-size1.size2{font-size:1.2em}.katex .fontsize-ensurer.reset-size1.size3,.katex .katex-sizing.reset-size1.size3{font-size:1.4em}.katex .fontsize-ensurer.reset-size1.size4,.katex .katex-sizing.reset-size1.size4{font-size:1.6em}.katex .fontsize-ensurer.reset-size1.size5,.katex .katex-sizing.reset-size1.size5{font-size:1.8em}.katex .fontsize-ensurer.reset-size1.size6,.katex .katex-sizing.reset-size1.size6{font-size:2em}.katex .fontsize-ensurer.reset-size1.size7,.katex .katex-sizing.reset-size1.size7{font-size:2.4em}.katex .fontsize-ensurer.reset-size1.size8,.katex .katex-sizing.reset-size1.size8{font-size:2.88em}.katex .fontsize-ensurer.reset-size1.size9,.katex .katex-sizing.reset-size1.size9{font-size:3.456em}.katex .fontsize-ensurer.reset-size1.size10,.katex .katex-sizing.reset-size1.size10{font-size:4.148em}.katex .fontsize-ensurer.reset-size1.size11,.katex .katex-sizing.reset-size1.size11{font-size:4.976em}.katex .fontsize-ensurer.reset-size2.size1,.katex .katex-sizing.reset-size2.size1{font-size:.8333333333em}.katex .fontsize-ensurer.reset-size2.size2,.katex .katex-sizing.reset-size2.size2{font-size:1em}.katex .fontsize-ensurer.reset-size2.size3,.katex .katex-sizing.reset-size2.size3{font-size:1.1666666667em}.katex .fontsize-ensurer.reset-size2.size4,.katex .katex-sizing.reset-size2.size4{font-size:1.3333333333em}.katex .fontsize-ensurer.reset-size2.size5,.katex .katex-sizing.reset-size2.size5{font-size:1.5em}.katex .fontsize-ensurer.reset-size2.size6,.katex .katex-sizing.reset-size2.size6{font-size:1.6666666667em}.katex .fontsize-ensurer.reset-size2.size7,.katex .katex-sizing.reset-size2.size7{font-size:2em}.katex .fontsize-ensurer.reset-size2.size8,.katex .katex-sizing.reset-size2.size8{font-size:2.4em}.katex .fontsize-ensurer.reset-size2.size9,.katex .katex-sizing.reset-size2.size9{font-size:2.88em}.katex .fontsize-ensurer.reset-size2.size10,.katex .katex-sizing.reset-size2.size10{font-size:3.4566666667em}.katex .fontsize-ensurer.reset-size2.size11,.katex .katex-sizing.reset-size2.size11{font-size:4.1466666667em}.katex .fontsize-ensurer.reset-size3.size1,.katex .katex-sizing.reset-size3.size1{font-size:.7142857143em}.katex .fontsize-ensurer.reset-size3.size2,.katex .katex-sizing.reset-size3.size2{font-size:.8571428571em}.katex .fontsize-ensurer.reset-size3.size3,.katex .katex-sizing.reset-size3.size3{font-size:1em}.katex .fontsize-ensurer.reset-size3.size4,.katex .katex-sizing.reset-size3.size4{font-size:1.1428571429em}.katex .fontsize-ensurer.reset-size3.size5,.katex .katex-sizing.reset-size3.size5{font-size:1.2857142857em}.katex .fontsize-ensurer.reset-size3.size6,.katex .katex-sizing.reset-size3.size6{font-size:1.4285714286em}.katex .fontsize-ensurer.reset-size3.size7,.katex .katex-sizing.reset-size3.size7{font-size:1.7142857143em}.katex .fontsize-ensurer.reset-size3.size8,.katex .katex-sizing.reset-size3.size8{font-size:2.0571428571em}.katex .fontsize-ensurer.reset-size3.size9,.katex .katex-sizing.reset-size3.size9{font-size:2.4685714286em}.katex .fontsize-ensurer.reset-size3.size10,.katex .katex-sizing.reset-size3.size10{font-size:2.9628571429em}.katex .fontsize-ensurer.reset-size3.size11,.katex .katex-sizing.reset-size3.size11{font-size:3.5542857143em}.katex .fontsize-ensurer.reset-size4.size1,.katex .katex-sizing.reset-size4.size1{font-size:.625em}.katex .fontsize-ensurer.reset-size4.size2,.katex .katex-sizing.reset-size4.size2{font-size:.75em}.katex .fontsize-ensurer.reset-size4.size3,.katex .katex-sizing.reset-size4.size3{font-size:.875em}.katex .fontsize-ensurer.reset-size4.size4,.katex .katex-sizing.reset-size4.size4{font-size:1em}.katex .fontsize-ensurer.reset-size4.size5,.katex .katex-sizing.reset-size4.size5{font-size:1.125em}.katex .fontsize-ensurer.reset-size4.size6,.katex .katex-sizing.reset-size4.size6{font-size:1.25em}.katex .fontsize-ensurer.reset-size4.size7,.katex .katex-sizing.reset-size4.size7{font-size:1.5em}.katex .fontsize-ensurer.reset-size4.size8,.katex .katex-sizing.reset-size4.size8{font-size:1.8em}.katex .fontsize-ensurer.reset-size4.size9,.katex .katex-sizing.reset-size4.size9{font-size:2.16em}.katex .fontsize-ensurer.reset-size4.size10,.katex .katex-sizing.reset-size4.size10{font-size:2.5925em}.katex .fontsize-ensurer.reset-size4.size11,.katex .katex-sizing.reset-size4.size11{font-size:3.11em}.katex .fontsize-ensurer.reset-size5.size1,.katex .katex-sizing.reset-size5.size1{font-size:.5555555556em}.katex .fontsize-ensurer.reset-size5.size2,.katex .katex-sizing.reset-size5.size2{font-size:.6666666667em}.katex .fontsize-ensurer.reset-size5.size3,.katex .katex-sizing.reset-size5.size3{font-size:.7777777778em}.katex .fontsize-ensurer.reset-size5.size4,.katex .katex-sizing.reset-size5.size4{font-size:.8888888889em}.katex .fontsize-ensurer.reset-size5.size5,.katex .katex-sizing.reset-size5.size5{font-size:1em}.katex .fontsize-ensurer.reset-size5.size6,.katex .katex-sizing.reset-size5.size6{font-size:1.1111111111em}.katex .fontsize-ensurer.reset-size5.size7,.katex .katex-sizing.reset-size5.size7{font-size:1.3333333333em}.katex .fontsize-ensurer.reset-size5.size8,.katex .katex-sizing.reset-size5.size8{font-size:1.6em}.katex .fontsize-ensurer.reset-size5.size9,.katex .katex-sizing.reset-size5.size9{font-size:1.92em}.katex .fontsize-ensurer.reset-size5.size10,.katex .katex-sizing.reset-size5.size10{font-size:2.3044444444em}.katex .fontsize-ensurer.reset-size5.size11,.katex .katex-sizing.reset-size5.size11{font-size:2.7644444444em}.katex .fontsize-ensurer.reset-size6.size1,.katex .katex-sizing.reset-size6.size1{font-size:.5em}.katex .fontsize-ensurer.reset-size6.size2,.katex .katex-sizing.reset-size6.size2{font-size:.6em}.katex .fontsize-ensurer.reset-size6.size3,.katex .katex-sizing.reset-size6.size3{font-size:.7em}.katex .fontsize-ensurer.reset-size6.size4,.katex .katex-sizing.reset-size6.size4{font-size:.8em}.katex .fontsize-ensurer.reset-size6.size5,.katex .katex-sizing.reset-size6.size5{font-size:.9em}.katex .fontsize-ensurer.reset-size6.size6,.katex .katex-sizing.reset-size6.size6{font-size:1em}.katex .fontsize-ensurer.reset-size6.size7,.katex .katex-sizing.reset-size6.size7{font-size:1.2em}.katex .fontsize-ensurer.reset-size6.size8,.katex .katex-sizing.reset-size6.size8{font-size:1.44em}.katex .fontsize-ensurer.reset-size6.size9,.katex .katex-sizing.reset-size6.size9{font-size:1.728em}.katex .fontsize-ensurer.reset-size6.size10,.katex .katex-sizing.reset-size6.size10{font-size:2.074em}.katex .fontsize-ensurer.reset-size6.size11,.katex .katex-sizing.reset-size6.size11{font-size:2.488em}.katex .fontsize-ensurer.reset-size7.size1,.katex .katex-sizing.reset-size7.size1{font-size:.4166666667em}.katex .fontsize-ensurer.reset-size7.size2,.katex .katex-sizing.reset-size7.size2{font-size:.5em}.katex .fontsize-ensurer.reset-size7.size3,.katex .katex-sizing.reset-size7.size3{font-size:.5833333333em}.katex .fontsize-ensurer.reset-size7.size4,.katex .katex-sizing.reset-size7.size4{font-size:.6666666667em}.katex .fontsize-ensurer.reset-size7.size5,.katex .katex-sizing.reset-size7.size5{font-size:.75em}.katex .fontsize-ensurer.reset-size7.size6,.katex .katex-sizing.reset-size7.size6{font-size:.8333333333em}.katex .fontsize-ensurer.reset-size7.size7,.katex .katex-sizing.reset-size7.size7{font-size:1em}.katex .fontsize-ensurer.reset-size7.size8,.katex .katex-sizing.reset-size7.size8{font-size:1.2em}.katex .fontsize-ensurer.reset-size7.size9,.katex .katex-sizing.reset-size7.size9{font-size:1.44em}.katex .fontsize-ensurer.reset-size7.size10,.katex .katex-sizing.reset-size7.size10{font-size:1.7283333333em}.katex .fontsize-ensurer.reset-size7.size11,.katex .katex-sizing.reset-size7.size11{font-size:2.0733333333em}.katex .fontsize-ensurer.reset-size8.size1,.katex .katex-sizing.reset-size8.size1{font-size:.3472222222em}.katex .fontsize-ensurer.reset-size8.size2,.katex .katex-sizing.reset-size8.size2{font-size:.4166666667em}.katex .fontsize-ensurer.reset-size8.size3,.katex .katex-sizing.reset-size8.size3{font-size:.4861111111em}.katex .fontsize-ensurer.reset-size8.size4,.katex .katex-sizing.reset-size8.size4{font-size:.5555555556em}.katex .fontsize-ensurer.reset-size8.size5,.katex .katex-sizing.reset-size8.size5{font-size:.625em}.katex .fontsize-ensurer.reset-size8.size6,.katex .katex-sizing.reset-size8.size6{font-size:.6944444444em}.katex .fontsize-ensurer.reset-size8.size7,.katex .katex-sizing.reset-size8.size7{font-size:.8333333333em}.katex .fontsize-ensurer.reset-size8.size8,.katex .katex-sizing.reset-size8.size8{font-size:1em}.katex .fontsize-ensurer.reset-size8.size9,.katex .katex-sizing.reset-size8.size9{font-size:1.2em}.katex .fontsize-ensurer.reset-size8.size10,.katex .katex-sizing.reset-size8.size10{font-size:1.4402777778em}.katex .fontsize-ensurer.reset-size8.size11,.katex .katex-sizing.reset-size8.size11{font-size:1.7277777778em}.katex .fontsize-ensurer.reset-size9.size1,.katex .katex-sizing.reset-size9.size1{font-size:.2893518519em}.katex .fontsize-ensurer.reset-size9.size2,.katex .katex-sizing.reset-size9.size2{font-size:.3472222222em}.katex .fontsize-ensurer.reset-size9.size3,.katex .katex-sizing.reset-size9.size3{font-size:.4050925926em}.katex .fontsize-ensurer.reset-size9.size4,.katex .katex-sizing.reset-size9.size4{font-size:.462962963em}.katex .fontsize-ensurer.reset-size9.size5,.katex .katex-sizing.reset-size9.size5{font-size:.5208333333em}.katex .fontsize-ensurer.reset-size9.size6,.katex .katex-sizing.reset-size9.size6{font-size:.5787037037em}.katex .fontsize-ensurer.reset-size9.size7,.katex .katex-sizing.reset-size9.size7{font-size:.6944444444em}.katex .fontsize-ensurer.reset-size9.size8,.katex .katex-sizing.reset-size9.size8{font-size:.8333333333em}.katex .fontsize-ensurer.reset-size9.size9,.katex .katex-sizing.reset-size9.size9{font-size:1em}.katex .fontsize-ensurer.reset-size9.size10,.katex .katex-sizing.reset-size9.size10{font-size:1.2002314815em}.katex .fontsize-ensurer.reset-size9.size11,.katex .katex-sizing.reset-size9.size11{font-size:1.4398148148em}.katex .fontsize-ensurer.reset-size10.size1,.katex .katex-sizing.reset-size10.size1{font-size:.2410800386em}.katex .fontsize-ensurer.reset-size10.size2,.katex .katex-sizing.reset-size10.size2{font-size:.2892960463em}.katex .fontsize-ensurer.reset-size10.size3,.katex .katex-sizing.reset-size10.size3{font-size:.337512054em}.katex .fontsize-ensurer.reset-size10.size4,.katex .katex-sizing.reset-size10.size4{font-size:.3857280617em}.katex .fontsize-ensurer.reset-size10.size5,.katex .katex-sizing.reset-size10.size5{font-size:.4339440694em}.katex .fontsize-ensurer.reset-size10.size6,.katex .katex-sizing.reset-size10.size6{font-size:.4821600771em}.katex .fontsize-ensurer.reset-size10.size7,.katex .katex-sizing.reset-size10.size7{font-size:.5785920926em}.katex .fontsize-ensurer.reset-size10.size8,.katex .katex-sizing.reset-size10.size8{font-size:.6943105111em}.katex .fontsize-ensurer.reset-size10.size9,.katex .katex-sizing.reset-size10.size9{font-size:.8331726133em}.katex .fontsize-ensurer.reset-size10.size10,.katex .katex-sizing.reset-size10.size10{font-size:1em}.katex .fontsize-ensurer.reset-size10.size11,.katex .katex-sizing.reset-size10.size11{font-size:1.1996142719em}.katex .fontsize-ensurer.reset-size11.size1,.katex .katex-sizing.reset-size11.size1{font-size:.2009646302em}.katex .fontsize-ensurer.reset-size11.size2,.katex .katex-sizing.reset-size11.size2{font-size:.2411575563em}.katex .fontsize-ensurer.reset-size11.size3,.katex .katex-sizing.reset-size11.size3{font-size:.2813504823em}.katex .fontsize-ensurer.reset-size11.size4,.katex .katex-sizing.reset-size11.size4{font-size:.3215434084em}.katex .fontsize-ensurer.reset-size11.size5,.katex .katex-sizing.reset-size11.size5{font-size:.3617363344em}.katex .fontsize-ensurer.reset-size11.size6,.katex .katex-sizing.reset-size11.size6{font-size:.4019292605em}.katex .fontsize-ensurer.reset-size11.size7,.katex .katex-sizing.reset-size11.size7{font-size:.4823151125em}.katex .fontsize-ensurer.reset-size11.size8,.katex .katex-sizing.reset-size11.size8{font-size:.578778135em}.katex .fontsize-ensurer.reset-size11.size9,.katex .katex-sizing.reset-size11.size9{font-size:.6945337621em}.katex .fontsize-ensurer.reset-size11.size10,.katex .katex-sizing.reset-size11.size10{font-size:.8336012862em}.katex .fontsize-ensurer.reset-size11.size11,.katex .katex-sizing.reset-size11.size11{font-size:1em}.katex .delimsizing.size1{font-family:KaTeX_Size1}.katex .delimsizing.size2{font-family:KaTeX_Size2}.katex .delimsizing.size3{font-family:KaTeX_Size3}.katex .delimsizing.size4{font-family:KaTeX_Size4}.katex .delimsizing.mult .delim-size1>span{font-family:KaTeX_Size1}.katex .delimsizing.mult .delim-size4>span{font-family:KaTeX_Size4}.katex .nulldelimiter{display:inline-block;width:.12em}.katex .delimcenter,.katex .op-symbol{position:relative}.katex .op-symbol.small-op{font-family:KaTeX_Size1}.katex .op-symbol.large-op{font-family:KaTeX_Size2}.katex .katex-accent>.vlist-t,.katex .op-limits>.vlist-t{text-align:center}.katex .katex-accent .accent-body{position:relative}.katex .katex-accent .accent-body:not(.accent-full){width:0}.katex .katex-overlay{display:block}.katex .mtable .vertical-separator{display:inline-block;min-width:1px}.katex .mtable .arraycolsep{display:inline-block}.katex .mtable .col-align-c>.vlist-t{text-align:center}.katex .mtable .col-align-l>.vlist-t{text-align:left}.katex .mtable .col-align-r>.vlist-t{text-align:right}.katex .svg-align{text-align:left}.katex svg{fill:currentColor;stroke:currentColor;display:block;height:inherit;position:absolute;width:100%}.katex svg path{stroke:none}.katex svg{fill-rule:nonzero;fill-opacity:1;stroke-width:1;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1}.katex img{border-style:none;max-height:none;max-width:none;min-height:0;min-width:0}.katex .katex-stretchy{display:block;overflow:hidden;position:relative;width:100%}.katex .katex-stretchy:after,.katex .katex-stretchy:before{content:""}.katex .hide-tail{overflow:hidden;position:relative;width:100%}.katex .halfarrow-left{left:0;overflow:hidden;position:absolute;width:50.2%}.katex .halfarrow-right{overflow:hidden;position:absolute;right:0;width:50.2%}.katex .brace-left{left:0;overflow:hidden;position:absolute;width:25.1%}.katex .brace-center{left:25%;overflow:hidden;position:absolute;width:50%}.katex .brace-right{overflow:hidden;position:absolute;right:0;width:25.1%}.katex .x-arrow-pad{padding:0 .5em}.katex .cd-arrow-pad{padding:0 .55556em 0 .27778em}.katex .mover,.katex .munder,.katex .x-arrow{text-align:center}.katex .boxpad{padding:0 .3em}.katex .fbox,.katex .fcolorbox{border:.04em solid;box-sizing:border-box}.katex .cancel-pad{padding:0 .2em}.katex .cancel-lap{margin-left:-.2em;margin-right:-.2em}.katex .katex-sout{border-bottom-style:solid;border-bottom-width:.08em}.katex .angl{border-right:.049em solid;border-top:.049em solid;box-sizing:border-box;margin-right:.03889em}.katex .anglpad{padding:0 .03889em}.katex .reflectbox{display:inline-block;transform:scaleX(-1)}.katex .eqn-num:before{content:"(" counter(katexEqnNo) ")";counter-increment:katexEqnNo}.katex .mml-eqn-num:before{content:"(" counter(mmlEqnNo) ")";counter-increment:mmlEqnNo}.katex .mtr-glue{width:50%}.katex .cd-vert-arrow{display:inline-block;position:relative}.katex .cd-label-left{display:inline-block;position:absolute;right:calc(50% + .3em);text-align:left}.katex .cd-label-right{display:inline-block;left:calc(50% + .3em);position:absolute;text-align:right}.katex-display{display:block;margin:1em 0;text-align:center}.katex-display>.katex{display:block;text-align:center;white-space:nowrap}.katex-display>.katex>.katex-html{display:block;position:relative}.katex-display>.katex>.katex-html>.katex-tag{position:absolute;right:0}.katex-display.leqno>.katex>.katex-html>.katex-tag{left:0;right:auto}.katex-display.fleqn>.katex{padding-left:2em;text-align:left}body{counter-reset:katexEqnNo mmlEqnNo} diff --git a/src/frontend/web/von_interface/static/vendor/conversation-visuals/mermaid-LICENSE b/src/frontend/web/von_interface/static/vendor/conversation-visuals/mermaid-LICENSE new file mode 100644 index 000000000..2e5daebd2 --- /dev/null +++ b/src/frontend/web/von_interface/static/vendor/conversation-visuals/mermaid-LICENSE @@ -0,0 +1,21 @@ +The MIT License (MIT) + +Copyright (c) 2014 - 2022 Knut Sveidqvist + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/src/frontend/web/von_interface/static/vendor/conversation-visuals/mindmap-definition-NLK3R4M7-75GZTIE6.js b/src/frontend/web/von_interface/static/vendor/conversation-visuals/mindmap-definition-NLK3R4M7-75GZTIE6.js new file mode 100644 index 000000000..85be79df7 --- /dev/null +++ b/src/frontend/web/von_interface/static/vendor/conversation-visuals/mindmap-definition-NLK3R4M7-75GZTIE6.js @@ -0,0 +1,96 @@ +import{a as ge}from"./chunk-VNMAEQZK.js";import{a as ue}from"./chunk-EQQJCVK6.js";import{b as he,c as de}from"./chunk-2AVNI7YL.js";import"./chunk-SNMBC6G5.js";import"./chunk-AKE2LJPJ.js";import"./chunk-NDMMOI35.js";import"./chunk-T4OFBIBR.js";import"./chunk-TEBTVNCH.js";import"./chunk-HVVAQLXH.js";import"./chunk-IVPOI5SM.js";import"./chunk-O46DUOKR.js";import"./chunk-C7YISUMK.js";import"./chunk-6NDAIVIK.js";import"./chunk-EUYVSIXP.js";import"./chunk-QSTT4QQC.js";import{$ as C,C as ce,F as le,I as M,c as se,d as oe,e as ae,r as B}from"./chunk-S4JILX6U.js";import{b as T}from"./chunk-XEQL7KGA.js";import{a as h}from"./chunk-YUSHYV7C.js";import"./chunk-3RNHDNP5.js";var k=[];for(let e=0;e<256;++e)k.push((e+256).toString(16).slice(1));function pe(e,i=0){return(k[e[i+0]]+k[e[i+1]]+k[e[i+2]]+k[e[i+3]]+"-"+k[e[i+4]]+k[e[i+5]]+"-"+k[e[i+6]]+k[e[i+7]]+"-"+k[e[i+8]]+k[e[i+9]]+"-"+k[e[i+10]]+k[e[i+11]]+k[e[i+12]]+k[e[i+13]]+k[e[i+14]]+k[e[i+15]]).toLowerCase()}var Ee=new Uint8Array(16);function q(){return crypto.getRandomValues(Ee)}function _e(e,i,l){return!i&&!e&&crypto.randomUUID?crypto.randomUUID():Se(e,i,l)}function Se(e,i,l){e=e||{};let a=e.random??e.rng?.()??q();if(a.length<16)throw new Error("Random bytes length must be >= 16");if(a[6]=a[6]&15|64,a[8]=a[8]&63|128,i){if(l=l||0,l<0||l+16>i.length)throw new RangeError(`UUID byte range ${l}:${l+15} is out of buffer bounds`);for(let t=0;t<16;++t)i[l+t]=a[t];return i}return pe(a)}var J=_e;var K=(function(){var e=h(function(D,s,n,o){for(n=n||{},o=D.length;o--;n[D[o]]=s);return n},"o"),i=[1,4],l=[1,13],a=[1,12],t=[1,15],d=[1,16],f=[1,20],m=[1,19],b=[6,7,8],O=[1,26],w=[1,24],R=[1,25],g=[6,7,11],A=[1,6,13,15,16,19,22],Q=[1,33],Z=[1,34],$=[1,6,7,11,13,15,16,19,22],j={trace:h(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mindMap:4,spaceLines:5,SPACELINE:6,NL:7,MINDMAP:8,document:9,stop:10,EOF:11,statement:12,SPACELIST:13,node:14,ICON:15,CLASS:16,nodeWithId:17,nodeWithoutId:18,NODE_DSTART:19,NODE_DESCR:20,NODE_DEND:21,NODE_ID:22,$accept:0,$end:1},terminals_:{2:"error",6:"SPACELINE",7:"NL",8:"MINDMAP",11:"EOF",13:"SPACELIST",15:"ICON",16:"CLASS",19:"NODE_DSTART",20:"NODE_DESCR",21:"NODE_DEND",22:"NODE_ID"},productions_:[0,[3,1],[3,2],[5,1],[5,2],[5,2],[4,2],[4,3],[10,1],[10,1],[10,1],[10,2],[10,2],[9,3],[9,2],[12,2],[12,2],[12,2],[12,1],[12,1],[12,1],[12,1],[12,1],[14,1],[14,1],[18,3],[17,1],[17,4]],performAction:h(function(s,n,o,c,p,r,U){var u=r.length-1;switch(p){case 6:case 7:return c;case 8:c.getLogger().trace("Stop NL ");break;case 9:c.getLogger().trace("Stop EOF ");break;case 11:c.getLogger().trace("Stop NL2 ");break;case 12:c.getLogger().trace("Stop EOF2 ");break;case 15:c.getLogger().info("Node: ",r[u].id),c.addNode(r[u-1].length,r[u].id,r[u].descr,r[u].type);break;case 16:c.getLogger().trace("Icon: ",r[u]),c.decorateNode({icon:r[u]});break;case 17:case 21:c.decorateNode({class:r[u]});break;case 18:c.getLogger().trace("SPACELIST");break;case 19:c.getLogger().trace("Node: ",r[u].id),c.addNode(0,r[u].id,r[u].descr,r[u].type);break;case 20:c.decorateNode({icon:r[u]});break;case 25:c.getLogger().trace("node found ..",r[u-2]),this.$={id:r[u-1],descr:r[u-1],type:c.getType(r[u-2],r[u])};break;case 26:this.$={id:r[u],descr:r[u],type:c.nodeType.DEFAULT};break;case 27:c.getLogger().trace("node found ..",r[u-3]),this.$={id:r[u-3],descr:r[u-1],type:c.getType(r[u-2],r[u])};break}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],8:i},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:i},{6:l,7:[1,10],9:9,12:11,13:a,14:14,15:t,16:d,17:17,18:18,19:f,22:m},e(b,[2,3]),{1:[2,2]},e(b,[2,4]),e(b,[2,5]),{1:[2,6],6:l,12:21,13:a,14:14,15:t,16:d,17:17,18:18,19:f,22:m},{6:l,9:22,12:11,13:a,14:14,15:t,16:d,17:17,18:18,19:f,22:m},{6:O,7:w,10:23,11:R},e(g,[2,22],{17:17,18:18,14:27,15:[1,28],16:[1,29],19:f,22:m}),e(g,[2,18]),e(g,[2,19]),e(g,[2,20]),e(g,[2,21]),e(g,[2,23]),e(g,[2,24]),e(g,[2,26],{19:[1,30]}),{20:[1,31]},{6:O,7:w,10:32,11:R},{1:[2,7],6:l,12:21,13:a,14:14,15:t,16:d,17:17,18:18,19:f,22:m},e(A,[2,14],{7:Q,11:Z}),e($,[2,8]),e($,[2,9]),e($,[2,10]),e(g,[2,15]),e(g,[2,16]),e(g,[2,17]),{20:[1,35]},{21:[1,36]},e(A,[2,13],{7:Q,11:Z}),e($,[2,11]),e($,[2,12]),{21:[1,37]},e(g,[2,25]),e(g,[2,27])],defaultActions:{2:[2,1],6:[2,2]},parseError:h(function(s,n){if(n.recoverable)this.trace(s);else{var o=new Error(s);throw o.hash=n,o}},"parseError"),parse:h(function(s){var n=this,o=[0],c=[],p=[null],r=[],U=this.table,u="",V=0,ee=0,te=0,me=2,ie=1,ye=r.slice.call(arguments,1),y=Object.create(this.lexer),L={yy:{}};for(var H in this.yy)Object.prototype.hasOwnProperty.call(this.yy,H)&&(L.yy[H]=this.yy[H]);y.setInput(s,L.yy),L.yy.lexer=y,L.yy.parser=this,typeof y.yylloc>"u"&&(y.yylloc={});var W=y.yylloc;r.push(W);var ke=y.options&&y.options.ranges;typeof L.yy.parseError=="function"?this.parseError=L.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function be(_){o.length=o.length-2*_,p.length=p.length-_,r.length=r.length-_}h(be,"popStack");function ne(){var _;return _=c.pop()||y.lex()||ie,typeof _!="number"&&(_ instanceof Array&&(c=_,_=c.pop()),_=n.symbols_[_]||_),_}h(ne,"lex");for(var E,X,v,S,we,z,I={},F,x,re,G;;){if(v=o[o.length-1],this.defaultActions[v]?S=this.defaultActions[v]:((E===null||typeof E>"u")&&(E=ne()),S=U[v]&&U[v][E]),typeof S>"u"||!S.length||!S[0]){var Y="";G=[];for(F in U[v])this.terminals_[F]&&F>me&&G.push("'"+this.terminals_[F]+"'");y.showPosition?Y="Parse error on line "+(V+1)+`: +`+y.showPosition()+` +Expecting `+G.join(", ")+", got '"+(this.terminals_[E]||E)+"'":Y="Parse error on line "+(V+1)+": Unexpected "+(E==ie?"end of input":"'"+(this.terminals_[E]||E)+"'"),this.parseError(Y,{text:y.match,token:this.terminals_[E]||E,line:y.yylineno,loc:W,expected:G})}if(S[0]instanceof Array&&S.length>1)throw new Error("Parse Error: multiple actions possible at state: "+v+", token: "+E);switch(S[0]){case 1:o.push(E),p.push(y.yytext),r.push(y.yylloc),o.push(S[1]),E=null,X?(E=X,X=null):(ee=y.yyleng,u=y.yytext,V=y.yylineno,W=y.yylloc,te>0&&te--);break;case 2:if(x=this.productions_[S[1]][1],I.$=p[p.length-x],I._$={first_line:r[r.length-(x||1)].first_line,last_line:r[r.length-1].last_line,first_column:r[r.length-(x||1)].first_column,last_column:r[r.length-1].last_column},ke&&(I._$.range=[r[r.length-(x||1)].range[0],r[r.length-1].range[1]]),z=this.performAction.apply(I,[u,ee,V,L.yy,S[1],p,r].concat(ye)),typeof z<"u")return z;x&&(o=o.slice(0,-1*x*2),p=p.slice(0,-1*x),r=r.slice(0,-1*x)),o.push(this.productions_[S[1]][0]),p.push(I.$),r.push(I._$),re=U[o[o.length-2]][o[o.length-1]],o.push(re);break;case 3:return!0}}return!0},"parse")},fe=(function(){var D={EOF:1,parseError:h(function(n,o){if(this.yy.parser)this.yy.parser.parseError(n,o);else throw new Error(n)},"parseError"),setInput:h(function(s,n){return this.yy=n||this.yy||{},this._input=s,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:h(function(){var s=this._input[0];this.yytext+=s,this.yyleng++,this.offset++,this.match+=s,this.matched+=s;var n=s.match(/(?:\r\n?|\n).*/g);return n?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),s},"input"),unput:h(function(s){var n=s.length,o=s.split(/(?:\r\n?|\n)/g);this._input=s+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-n),this.offset-=n;var c=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),o.length-1&&(this.yylineno-=o.length-1);var p=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:o?(o.length===c.length?this.yylloc.first_column:0)+c[c.length-o.length].length-o[0].length:this.yylloc.first_column-n},this.options.ranges&&(this.yylloc.range=[p[0],p[0]+this.yyleng-n]),this.yyleng=this.yytext.length,this},"unput"),more:h(function(){return this._more=!0,this},"more"),reject:h(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). +`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:h(function(s){this.unput(this.match.slice(s))},"less"),pastInput:h(function(){var s=this.matched.substr(0,this.matched.length-this.match.length);return(s.length>20?"...":"")+s.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:h(function(){var s=this.match;return s.length<20&&(s+=this._input.substr(0,20-s.length)),(s.substr(0,20)+(s.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:h(function(){var s=this.pastInput(),n=new Array(s.length+1).join("-");return s+this.upcomingInput()+` +`+n+"^"},"showPosition"),test_match:h(function(s,n){var o,c,p;if(this.options.backtrack_lexer&&(p={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&&(p.yylloc.range=this.yylloc.range.slice(0))),c=s[0].match(/(?:\r\n?|\n).*/g),c&&(this.yylineno+=c.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:c?c[c.length-1].length-c[c.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+s[0].length},this.yytext+=s[0],this.match+=s[0],this.matches=s,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(s[0].length),this.matched+=s[0],o=this.performAction.call(this,this.yy,this,n,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),o)return o;if(this._backtrack){for(var r in p)this[r]=p[r];return!1}return!1},"test_match"),next:h(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var s,n,o,c;this._more||(this.yytext="",this.match="");for(var p=this._currentRules(),r=0;rn[0].length)){if(n=o,c=r,this.options.backtrack_lexer){if(s=this.test_match(o,p[r]),s!==!1)return s;if(this._backtrack){n=!1;continue}else return!1}else if(!this.options.flex)break}return n?(s=this.test_match(n,p[c]),s!==!1?s:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text. +`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:h(function(){var n=this.next();return n||this.lex()},"lex"),begin:h(function(n){this.conditionStack.push(n)},"begin"),popState:h(function(){var n=this.conditionStack.length-1;return n>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:h(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:h(function(n){return n=this.conditionStack.length-1-Math.abs(n||0),n>=0?this.conditionStack[n]:"INITIAL"},"topState"),pushState:h(function(n){this.begin(n)},"pushState"),stateStackSize:h(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:h(function(n,o,c,p){var r=p;switch(c){case 0:return n.getLogger().trace("Found comment",o.yytext),6;break;case 1:return 8;case 2:this.begin("CLASS");break;case 3:return this.popState(),16;break;case 4:this.popState();break;case 5:n.getLogger().trace("Begin icon"),this.begin("ICON");break;case 6:return n.getLogger().trace("SPACELINE"),6;break;case 7:return 7;case 8:return 15;case 9:n.getLogger().trace("end icon"),this.popState();break;case 10:return n.getLogger().trace("Exploding node"),this.begin("NODE"),19;break;case 11:return n.getLogger().trace("Cloud"),this.begin("NODE"),19;break;case 12:return n.getLogger().trace("Explosion Bang"),this.begin("NODE"),19;break;case 13:return n.getLogger().trace("Cloud Bang"),this.begin("NODE"),19;break;case 14:return this.begin("NODE"),19;break;case 15:return this.begin("NODE"),19;break;case 16:return this.begin("NODE"),19;break;case 17:return this.begin("NODE"),19;break;case 18:return 13;case 19:return 22;case 20:return 11;case 21:this.begin("NSTR2");break;case 22:return"NODE_DESCR";case 23:this.popState();break;case 24:n.getLogger().trace("Starting NSTR"),this.begin("NSTR");break;case 25:return n.getLogger().trace("description:",o.yytext),"NODE_DESCR";break;case 26:this.popState();break;case 27:return this.popState(),n.getLogger().trace("node end ))"),"NODE_DEND";break;case 28:return this.popState(),n.getLogger().trace("node end )"),"NODE_DEND";break;case 29:return this.popState(),n.getLogger().trace("node end ...",o.yytext),"NODE_DEND";break;case 30:return this.popState(),n.getLogger().trace("node end (("),"NODE_DEND";break;case 31:return this.popState(),n.getLogger().trace("node end (-"),"NODE_DEND";break;case 32:return this.popState(),n.getLogger().trace("node end (-"),"NODE_DEND";break;case 33:return this.popState(),n.getLogger().trace("node end (("),"NODE_DEND";break;case 34:return this.popState(),n.getLogger().trace("node end (("),"NODE_DEND";break;case 35:return n.getLogger().trace("Long description:",o.yytext),20;break;case 36:return n.getLogger().trace("Long description:",o.yytext),20;break}},"anonymous"),rules:[/^(?:\s*%%.*)/i,/^(?:mindmap\b)/i,/^(?::::)/i,/^(?:.+)/i,/^(?:\n)/i,/^(?:::icon\()/i,/^(?:[\s]+[\n])/i,/^(?:[\n]+)/i,/^(?:[^\)]+)/i,/^(?:\))/i,/^(?:-\))/i,/^(?:\(-)/i,/^(?:\)\))/i,/^(?:\))/i,/^(?:\(\()/i,/^(?:\{\{)/i,/^(?:\()/i,/^(?:\[)/i,/^(?:[\s]+)/i,/^(?:[^\(\[\n\)\{\}]+)/i,/^(?:$)/i,/^(?:["][`])/i,/^(?:[^`"]+)/i,/^(?:[`]["])/i,/^(?:["])/i,/^(?:[^"]+)/i,/^(?:["])/i,/^(?:[\)]\))/i,/^(?:[\)])/i,/^(?:[\]])/i,/^(?:\}\})/i,/^(?:\(-)/i,/^(?:-\))/i,/^(?:\(\()/i,/^(?:\()/i,/^(?:[^\)\]\(\}]+)/i,/^(?:.+(?!\(\())/i],conditions:{CLASS:{rules:[3,4],inclusive:!1},ICON:{rules:[8,9],inclusive:!1},NSTR2:{rules:[22,23],inclusive:!1},NSTR:{rules:[25,26],inclusive:!1},NODE:{rules:[21,24,27,28,29,30,31,32,33,34,35,36],inclusive:!1},INITIAL:{rules:[0,1,2,5,6,7,10,11,12,13,14,15,16,17,18,19,20],inclusive:!0}}};return D})();j.lexer=fe;function P(){this.yy={}}return h(P,"Parser"),P.prototype=j,j.Parser=P,new P})();K.parser=K;var xe=K,Ne=12,N={DEFAULT:0,NO_BORDER:0,ROUNDED_RECT:1,RECT:2,CIRCLE:3,CLOUD:4,BANG:5,HEXAGON:6},De=class{constructor(){this.nodes=[],this.count=0,this.elements={},this.getLogger=this.getLogger.bind(this),this.nodeType=N,this.clear(),this.getType=this.getType.bind(this),this.getElementById=this.getElementById.bind(this),this.getParent=this.getParent.bind(this),this.getMindmap=this.getMindmap.bind(this),this.addNode=this.addNode.bind(this),this.decorateNode=this.decorateNode.bind(this)}static{h(this,"MindmapDB")}clear(){this.nodes=[],this.count=0,this.elements={},this.baseLevel=void 0}getParent(e){for(let i=this.nodes.length-1;i>=0;i--)if(this.nodes[i].level0?this.nodes[0]:null}addNode(e,i,l,a){T.info("addNode",e,i,l,a);let t=!1;this.nodes.length===0?(this.baseLevel=e,e=0,t=!0):this.baseLevel!==void 0&&(e=e-this.baseLevel,t=!1);let d=C(),f=d.mindmap?.padding??B.mindmap.padding;switch(a){case this.nodeType.ROUNDED_RECT:case this.nodeType.RECT:case this.nodeType.HEXAGON:f*=2;break}let m={id:this.count++,nodeId:M(i,d),level:e,descr:M(l,d),type:a,children:[],width:d.mindmap?.maxNodeWidth??B.mindmap.maxNodeWidth,padding:f,isRoot:t},b=this.getParent(e);if(b)b.children.push(m),this.nodes.push(m);else if(t)this.nodes.push(m);else throw new Error(`There can be only one root. No parent could be found for ("${m.descr}")`)}getType(e,i){switch(T.debug("In get type",e,i),e){case"[":return this.nodeType.RECT;case"(":return i===")"?this.nodeType.ROUNDED_RECT:this.nodeType.CLOUD;case"((":return this.nodeType.CIRCLE;case")":return this.nodeType.CLOUD;case"))":return this.nodeType.BANG;case"{{":return this.nodeType.HEXAGON;default:return this.nodeType.DEFAULT}}setElementForId(e,i){this.elements[e]=i}getElementById(e){return this.elements[e]}decorateNode(e){if(!e)return;let i=C(),l=this.nodes[this.nodes.length-1];e.icon&&(l.icon=M(e.icon,i)),e.class&&(l.class=M(e.class,i))}type2Str(e){switch(e){case this.nodeType.DEFAULT:return"no-border";case this.nodeType.RECT:return"rect";case this.nodeType.ROUNDED_RECT:return"rounded-rect";case this.nodeType.CIRCLE:return"circle";case this.nodeType.CLOUD:return"cloud";case this.nodeType.BANG:return"bang";case this.nodeType.HEXAGON:return"hexgon";default:return"no-border"}}assignSections(e,i){if(e.level===0?e.section=void 0:e.section=i,e.children)for(let[l,a]of e.children.entries()){let t=e.level===0?l%(Ne-1):i;this.assignSections(a,t)}}flattenNodes(e,i){let l=C(),a=["mindmap-node"];e.isRoot===!0?a.push("section-root","section--1"):e.section!==void 0&&a.push(`section-${e.section}`),e.class&&a.push(e.class);let t=a.join(" "),d=h(m=>{let O=(l.theme?.toLowerCase()??"").includes("redux");switch(m){case N.CIRCLE:return"mindmapCircle";case N.RECT:return"rect";case N.ROUNDED_RECT:return"rounded";case N.CLOUD:return"cloud";case N.BANG:return"bang";case N.HEXAGON:return"hexagon";case N.DEFAULT:return O?"rounded":"defaultMindmapNode";case N.NO_BORDER:default:return"rect"}},"getShapeFromType"),f={id:e.id.toString(),domId:"node_"+e.id.toString(),label:e.descr,labelType:"markdown",isGroup:!1,shape:d(e.type),width:e.width,height:e.height??0,padding:e.padding,cssClasses:t,cssStyles:[],look:l.look,icon:e.icon,x:e.x,y:e.y,level:e.level,nodeId:e.nodeId,type:e.type,section:e.section};if(i.push(f),e.children)for(let m of e.children)this.flattenNodes(m,i)}generateEdges(e,i){if(!e.children)return;let l=C();for(let a of e.children){let t="edge";a.section!==void 0&&(t+=` section-edge-${a.section}`);let d=e.level+1;t+=` edge-depth-${d}`;let f={id:`edge_${e.id}_${a.id}`,start:e.id.toString(),end:a.id.toString(),type:"normal",curve:"basis",thickness:"normal",look:l.look,classes:t,depth:e.level,section:a.section};i.push(f),this.generateEdges(a,i)}}getData(){let e=this.getMindmap(),i=C(),a=le().layout!==void 0,t=i;if(a||(t.layout="cose-bilkent"),!e)return{nodes:[],edges:[],config:t};T.debug("getData: mindmapRoot",e,i),this.assignSections(e);let d=[],f=[];this.flattenNodes(e,d),this.generateEdges(e,f),T.debug(`getData: processed ${d.length} nodes and ${f.length} edges`);let m=new Map;for(let b of d)m.set(b.id,{shape:b.shape,width:b.width,height:b.height,padding:b.padding});return{nodes:d,edges:f,config:t,rootNode:e,markers:["point"],direction:"TB",nodeSpacing:50,rankSpacing:50,shapes:Object.fromEntries(m),type:"mindmap",diagramId:"mindmap-"+J()}}getLogger(){return T}},Le=h(async(e,i,l,a)=>{T.debug(`Rendering mindmap diagram +`+e);let t=a.db,d=t.getData(),f=ge(i,d.config.securityLevel);if(d.type=a.type,d.layoutAlgorithm=de(d.config.layout,{fallback:"cose-bilkent"}),d.diagramId=i,!t.getMindmap())return;d.nodes.forEach(g=>{g.shape==="rounded"?(g.radius=15,g.taper=15,g.stroke="none",g.width=0,g.padding=15):g.shape==="circle"?g.padding=10:g.shape==="rect"?(g.width=0,g.padding=10):g.shape==="hexagon"&&(g.width=0,g.height=0)}),await he(d,f);let{themeVariables:b}=ce(),{useGradient:O,gradientStart:w,gradientStop:R}=b;if(O&&w&&R){let g=f.attr("id"),A=f.append("defs").append("linearGradient").attr("id",`${g}-gradient`).attr("gradientUnits","objectBoundingBox").attr("x1","0%").attr("y1","0%").attr("x2","100%").attr("y2","0%");A.append("stop").attr("offset","0%").attr("stop-color",w).attr("stop-opacity",1),A.append("stop").attr("offset","100%").attr("stop-color",R).attr("stop-opacity",1)}ue(f,d.config.mindmap?.padding??B.mindmap.padding,"mindmapDiagram",d.config.mindmap?.useMaxWidth??B.mindmap.useMaxWidth)},"draw"),ve={draw:Le},Te=h(e=>{let{theme:i,look:l}=e,a="";for(let t=0;t{let a="";for(let t=0;t{let{theme:i}=e,l=e.svgId,a=e.dropShadow?e.dropShadow.replace("url(#drop-shadow)",`url(${l}-drop-shadow)`):"none";return` + .edge { + stroke-width: 3; + } + ${Te(e)} + .section-root rect, .section-root path, .section-root circle, .section-root polygon { + fill: ${e.git0}; + } + .section-root text { + fill: ${e.gitBranchLabel0}; + } + .section-root span { + color: ${i?.includes("redux")?e.nodeBorder:e.gitBranchLabel0}; + } + .icon-container { + height:100%; + display: flex; + justify-content: center; + align-items: center; + } + .edge { + fill: none; + } + .mindmap-node-label { + dy: 1em; + alignment-baseline: middle; + text-anchor: middle; + dominant-baseline: middle; + text-align: center; + } + [data-look="neo"].mindmap-node { + filter: ${a}; + } + [data-look="neo"].mindmap-node.section-root rect, [data-look="neo"].mindmap-node.section-root path, [data-look="neo"].mindmap-node.section-root circle, [data-look="neo"].mindmap-node.section-root polygon { + fill: ${i?.includes("redux")?e.mainBkg:e.git0}; + } + [data-look="neo"].mindmap-node.section-root .text-inner-tspan { + fill: ${i?.includes("redux")?e.nodeBorder:e["cScaleLabel"+(i==="neutral"?1:0)]}; + } + ${e.useGradient&&l&&e.mainBkg?Oe(e.THEME_COLOR_LIMIT,l,e.mainBkg):""} +`},"getStyles"),Ce=Ie,rt={get db(){return new De},renderer:ve,parser:xe,styles:Ce};export{rt as diagram}; diff --git a/src/frontend/web/von_interface/static/vendor/conversation-visuals/packet-AYTQ26CC-DUI67Q4V.js b/src/frontend/web/von_interface/static/vendor/conversation-visuals/packet-AYTQ26CC-DUI67Q4V.js new file mode 100644 index 000000000..b2e699ae2 --- /dev/null +++ b/src/frontend/web/von_interface/static/vendor/conversation-visuals/packet-AYTQ26CC-DUI67Q4V.js @@ -0,0 +1 @@ +import{a as e,b as r}from"./chunk-SEHHQ34Z.js";import"./chunk-RVPSGR2P.js";import"./chunk-3RNHDNP5.js";export{e as PacketModule,r as createPacketServices}; diff --git a/src/frontend/web/von_interface/static/vendor/conversation-visuals/pegDiagram-GJSIUBJH-B2QMA3KU.js b/src/frontend/web/von_interface/static/vendor/conversation-visuals/pegDiagram-GJSIUBJH-B2QMA3KU.js new file mode 100644 index 000000000..4f3bbb2f4 --- /dev/null +++ b/src/frontend/web/von_interface/static/vendor/conversation-visuals/pegDiagram-GJSIUBJH-B2QMA3KU.js @@ -0,0 +1 @@ +import{a,b as m,c as p}from"./chunk-53NJVRLX.js";import{a as s}from"./chunk-CDENLQJG.js";import{b as l}from"./chunk-WBZZWDU5.js";import"./chunk-ZFFKTRVX.js";import"./chunk-DKYAF235.js";import"./chunk-X7BLBFFS.js";import"./chunk-YMFA7VWU.js";import"./chunk-C7GWRE6Z.js";import"./chunk-4DL6P2YZ.js";import"./chunk-KCWUFFIE.js";import"./chunk-RDO2S4TE.js";import"./chunk-XCFPDLUP.js";import"./chunk-RMEGOE55.js";import{b as i}from"./chunk-QNBXOM7U.js";import"./chunk-NMQHKCXS.js";import"./chunk-SEHHQ34Z.js";import"./chunk-K6AAXKM5.js";import"./chunk-KVFXNR4L.js";import"./chunk-RVPSGR2P.js";import"./chunk-UED66XBH.js";import"./chunk-S4JILX6U.js";import{b as n}from"./chunk-XEQL7KGA.js";import{a as t}from"./chunk-YUSHYV7C.js";import"./chunk-3RNHDNP5.js";var f=i().RailroadPeg.parser.LangiumParser,c=t(e=>{let r=e.alternatives.map(d);return r.length===1?r[0]:{type:"choice",alternatives:r}},"transformOrderedChoice"),d=t(e=>{let r=e.elements.map(P);return r.length===1?r[0]:{type:"sequence",elements:r}},"transformSequence"),P=t(e=>{let r=g(e.suffix);return e.operator?{type:"special",text:e.operator==="&"?`&${u(r)}`:`!${u(r)}`}:r},"transformPrefix"),u=t(e=>{switch(e.type){case"terminal":return`"${e.value}"`;case"nonterminal":return e.name;case"special":return e.text;default:return"(...)"}},"nodeToLabel"),g=t(e=>{let r=v(e.primary);if(!e.operator)return r;switch(e.operator){case"?":return{type:"optional",element:r};case"*":return{type:"repetition",element:r,min:0,max:1/0};case"+":return{type:"repetition",element:r,min:1,max:1/0};default:throw new Error(`Unsupported PEG suffix operator: ${e.operator}`)}},"transformSuffix"),v=t(e=>{switch(e.$type){case"PegLiteral":return{type:"terminal",value:e.value};case"PegIdentifier":return{type:"nonterminal",name:e.name};case"PegGroup":return c(e.element);case"PegAny":return{type:"special",text:e.dot};default:throw new Error(`Unsupported PEG primary node: ${e.$type}`)}},"transformPrimary"),y=t(e=>({name:e.name,definition:c(e.definition)}),"transformRule"),h=t(e=>{s(e,a),e.title&&a.setTitle(e.title),e.rules.map(r=>a.addRule(y(r)))},"populateDb"),b={parse:t(e=>{a.clear(),n.debug("[PEG Parser] Starting Langium parse");let r=f.parse(e);if(r.lexerErrors.length>0||r.parserErrors.length>0)throw new l(r);let o=r.value;n.debug("[PEG Parser] Parsed rules:",o.rules.length),h(o),n.debug("[PEG Parser] Parse complete")},"parse"),parser:{yy:a}},R={parser:b,db:a,renderer:p,styles:m};export{R as diagram}; diff --git a/src/frontend/web/von_interface/static/vendor/conversation-visuals/pie-WAS4IAKB-3RNJT2BB.js b/src/frontend/web/von_interface/static/vendor/conversation-visuals/pie-WAS4IAKB-3RNJT2BB.js new file mode 100644 index 000000000..5d9dd15a0 --- /dev/null +++ b/src/frontend/web/von_interface/static/vendor/conversation-visuals/pie-WAS4IAKB-3RNJT2BB.js @@ -0,0 +1 @@ +import{a as e,b as r}from"./chunk-K6AAXKM5.js";import"./chunk-RVPSGR2P.js";import"./chunk-3RNHDNP5.js";export{e as PieModule,r as createPieServices}; diff --git a/src/frontend/web/von_interface/static/vendor/conversation-visuals/pieDiagram-5QR66LMP-BPQ3JXMG.js b/src/frontend/web/von_interface/static/vendor/conversation-visuals/pieDiagram-5QR66LMP-BPQ3JXMG.js new file mode 100644 index 000000000..855552187 --- /dev/null +++ b/src/frontend/web/von_interface/static/vendor/conversation-visuals/pieDiagram-5QR66LMP-BPQ3JXMG.js @@ -0,0 +1,39 @@ +import{a as ot}from"./chunk-CDENLQJG.js";import{a as nt}from"./chunk-WBZZWDU5.js";import"./chunk-ZFFKTRVX.js";import"./chunk-DKYAF235.js";import"./chunk-X7BLBFFS.js";import"./chunk-YMFA7VWU.js";import"./chunk-C7GWRE6Z.js";import"./chunk-4DL6P2YZ.js";import"./chunk-KCWUFFIE.js";import"./chunk-RDO2S4TE.js";import"./chunk-XCFPDLUP.js";import"./chunk-RMEGOE55.js";import"./chunk-QNBXOM7U.js";import"./chunk-NMQHKCXS.js";import"./chunk-SEHHQ34Z.js";import"./chunk-K6AAXKM5.js";import"./chunk-KVFXNR4L.js";import"./chunk-RVPSGR2P.js";import{a as at}from"./chunk-UED66XBH.js";import{n as rt,o as it}from"./chunk-EUYVSIXP.js";import"./chunk-QSTT4QQC.js";import{$ as Y,P as V,U as X,V as Z,W as j,X as q,Y as J,Z as K,_ as Q,r as U}from"./chunk-S4JILX6U.js";import{F as R,I as et,b as T,m as tt}from"./chunk-XEQL7KGA.js";import{a as l}from"./chunk-YUSHYV7C.js";import"./chunk-3RNHDNP5.js";var lt=U.pie,L={sections:new Map,showData:!1,config:lt},b=L.sections,O=L.showData,St=structuredClone(lt),xt=l(()=>structuredClone(St),"getConfig"),wt=l(()=>{b=new Map,O=L.showData,X()},"clear"),Ct=l(({label:t,value:a})=>{if(a<0)throw new Error(`"${t}" has invalid value: ${a}. Negative values are not allowed in pie charts. All slice values must be >= 0.`);b.has(t)||(b.set(t,a),T.debug(`added new section: ${t}, with value: ${a}`))},"addSection"),$t=l(()=>b,"getSections"),Dt=l(t=>{O=t},"setShowData"),yt=l(()=>O,"getShowData"),st={getConfig:xt,clear:wt,setDiagramTitle:K,getDiagramTitle:Q,setAccTitle:Z,getAccTitle:j,setAccDescription:q,getAccDescription:J,addSection:Ct,getSections:$t,setShowData:Dt,getShowData:yt},Tt=l((t,a)=>{ot(t,a),a.setShowData(t.showData),t.sections.map(a.addSection)},"populateDb"),bt={parse:l(async t=>{let a=await nt("pie",t);T.debug(a),Tt(a,st)},"parse")},At=l(t=>` + .pieCircle{ + stroke: ${t.pieStrokeColor}; + stroke-width : ${t.pieStrokeWidth}; + opacity : ${t.pieOpacity}; + } + .pieCircle.highlighted{ + scale: 1.05; + opacity: 1; + } + .pieCircle.highlightedOnHover:hover{ + transition-duration: 250ms; + scale: 1.05; + opacity: 1; + } + .pieOuterCircle{ + stroke: ${t.pieOuterStrokeColor}; + stroke-width: ${t.pieOuterStrokeWidth}; + fill: none; + } + .pieTitleText { + text-anchor: middle; + font-size: ${t.pieTitleTextSize}; + fill: ${t.pieTitleTextColor}; + font-family: ${t.fontFamily}; + } + .slice { + font-family: ${t.fontFamily}; + fill: ${t.pieSectionTextColor}; + font-size:${t.pieSectionTextSize}; + // fill: white; + } + .legend text { + fill: ${t.pieLegendTextColor}; + font-family: ${t.fontFamily}; + font-size: ${t.pieLegendTextSize}; + } +`,"getStyles"),kt=At,_t=l(t=>{let a=[...t.values()].reduce((n,m)=>n+m,0),W=[...t.entries()].map(([n,m])=>({label:n,value:m})).filter(n=>n.value/a*100>=1);return et().value(n=>n.value).sort(null)(W)},"createPieArcs"),zt=l((t,a,W,F)=>{T.debug(`rendering pie chart +`+t);let n=F.db,m=Y(),h=it(n.getConfig(),m.pie),H=40,i=18,c=4,S=450,x=S,A=at(a),$=A.append("g");$.attr("transform","translate("+x/2+","+S/2+")");let{themeVariables:o}=m,[M]=rt(o.pieOuterStrokeWidth);M??=2;let ct=h.legendPosition,P=h.textPosition,dt=h.donutHole>0&&h.donutHole<=.9?h.donutHole:0,f=Math.min(x,S)/2-H,gt=R().innerRadius(dt*f).outerRadius(f),pt=R().innerRadius(f*P).outerRadius(f*P),w=$.append("g");w.append("circle").attr("cx",0).attr("cy",0).attr("r",f+M/2).attr("class","pieOuterCircle");let D=n.getSections(),ht=_t(D),ft=[o.pie1,o.pie2,o.pie3,o.pie4,o.pie5,o.pie6,o.pie7,o.pie8,o.pie9,o.pie10,o.pie11,o.pie12],k=0;D.forEach(e=>{k+=e});let G=ht.filter(e=>(e.data.value/k*100).toFixed(0)!=="0"),_=tt(ft).domain([...D.keys()]);w.selectAll("mySlices").data(G).enter().append("path").attr("d",gt).attr("fill",e=>_(e.data.label)).attr("class",e=>{let r="pieCircle";return h.highlightSlice==="hover"?r+=" highlightedOnHover":h.highlightSlice===e.data.label&&(r+=" highlighted"),r}),w.selectAll("mySlices").data(G).enter().append("text").text(e=>(e.data.value/k*100).toFixed(0)+"%").attr("transform",e=>"translate("+pt.centroid(e)+")").style("text-anchor","middle").attr("class","slice");let ut=$.append("text").text(n.getDiagramTitle()).attr("x",0).attr("y",-(S-50)/2).attr("class","pieTitleText"),C=[...D.entries()].map(([e,r])=>({label:e,value:r})),u=$.selectAll(".legend").data(C).enter().append("g").attr("class","legend");u.append("rect").attr("width",i).attr("height",i).style("fill",e=>_(e.label)).style("stroke",e=>_(e.label)),u.append("text").attr("x",i+c).attr("y",i-c).text(e=>n.getShowData()?`${e.label} [${e.value}]`:e.label);let v=Math.max(...u.selectAll("text").nodes().map(e=>e?.getBoundingClientRect().width??0)),y=S,z=x+H,s=i+c,E=C.length*s;switch(ct){case"center":u.attr("transform",(e,r)=>{let d=s*C.length/2,g=-v/2-(i+c),p=r*s-d;return"translate("+g+","+p+")"});break;case"top":y+=E,u.attr("transform",(e,r)=>{let d=f,g=-v/2-(i+c),p=r*s-d;return`translate(${g}, ${p})`}),w.attr("transform",()=>`translate(0, ${E+s})`);break;case"bottom":y+=E,u.attr("transform",(e,r)=>{let d=-f-s,g=-v/2-(i+c),p=r*s-d;return"translate("+g+","+p+")"});break;case"left":z+=i+c+v,u.attr("transform",(e,r)=>{let d=s*C.length/2,g=-f-(i+c),p=r*s-d;return"translate("+g+","+p+")"}),w.attr("transform",()=>`translate(${v+i+c}, 0)`);break;default:z+=i+c+v,u.attr("transform",(e,r)=>{let d=s*C.length/2,g=12*i,p=r*s-d;return"translate("+g+","+p+")"});break}let B=ut.node()?.getBoundingClientRect().width??0,mt=x/2-B/2,vt=x/2+B/2,N=Math.min(0,mt),I=Math.max(z,vt)-N;A.attr("viewBox",`${N} 0 ${I} ${y}`),V(A,y,I,h.useMaxWidth)},"draw"),Et={draw:zt},Bt={parser:bt,db:st,renderer:Et,styles:kt};export{Bt as diagram}; diff --git a/src/frontend/web/von_interface/static/vendor/conversation-visuals/quadrantDiagram-O4NWA36T-F56XSFWI.js b/src/frontend/web/von_interface/static/vendor/conversation-visuals/quadrantDiagram-O4NWA36T-F56XSFWI.js new file mode 100644 index 000000000..f3611bba1 --- /dev/null +++ b/src/frontend/web/von_interface/static/vendor/conversation-visuals/quadrantDiagram-O4NWA36T-F56XSFWI.js @@ -0,0 +1,7 @@ +import{$ as Tt,I as re,P as se,U as oe,V as le,W as he,X as ce,Y as de,Z as ue,_ as Et,p as ne,r as D}from"./chunk-S4JILX6U.js";import{b as ct,h as mt,o as Dt}from"./chunk-XEQL7KGA.js";import{a as s}from"./chunk-YUSHYV7C.js";import"./chunk-3RNHDNP5.js";var zt=(function(){var t=s(function(Y,r,l,u){for(l=l||{},u=Y.length;u--;l[Y[u]]=r);return l},"o"),a=[1,3],p=[1,4],f=[1,5],o=[1,6],x=[1,7],_=[1,4,5,10,12,13,14,15,18,25,35,37,39,41,42,48,50,51,52,53,54,55,56,57,60,61,63,64,65,66,67],h=[1,4,5,10,12,13,14,15,18,25,28,35,37,39,41,42,48,50,51,52,53,54,55,56,57,60,61,63,64,65,66,67],c=[55,56,57],k=[2,36],m=[1,37],q=[1,36],y=[1,38],b=[1,35],T=[1,43],g=[1,41],A=[1,45],dt=[1,14],ut=[1,23],xt=[1,18],ft=[1,19],ot=[1,20],St=[1,21],lt=[1,22],i=[1,24],It=[1,25],wt=[1,26],Bt=[1,27],Rt=[1,28],Nt=[1,29],U=[1,32],Q=[1,33],F=[1,34],P=[1,39],v=[1,40],C=[1,42],L=[1,44],H=[1,63],X=[1,62],E=[4,5,8,10,12,13,14,15,18,44,47,49,55,56,57,63,64,65,66,67],Wt=[1,66],Ut=[1,67],Qt=[1,68],Ot=[1,69],Ht=[1,70],Xt=[1,71],Mt=[1,72],Yt=[1,73],jt=[1,74],Gt=[1,75],Kt=[1,76],Zt=[1,77],B=[4,5,6,7,8,9,10,11,12,13,14,15,18],K=[1,91],Z=[1,92],J=[1,93],$=[1,100],tt=[1,94],et=[1,97],it=[1,95],at=[1,96],nt=[1,98],rt=[1,99],_t=[1,103],Jt=[10,55,56,57],N=[4,5,6,8,10,11,13,17,18,19,20,55,56,57],At={trace:s(function(){},"trace"),yy:{},symbols_:{error:2,idStringToken:3,ALPHA:4,NUM:5,NODE_STRING:6,DOWN:7,MINUS:8,DEFAULT:9,COMMA:10,COLON:11,AMP:12,BRKT:13,MULT:14,UNICODE_TEXT:15,styleComponent:16,UNIT:17,SPACE:18,STYLE:19,PCT:20,idString:21,style:22,stylesOpt:23,classDefStatement:24,CLASSDEF:25,start:26,eol:27,QUADRANT:28,document:29,line:30,statement:31,axisDetails:32,quadrantDetails:33,points:34,title:35,title_value:36,acc_title:37,acc_title_value:38,acc_descr:39,acc_descr_value:40,acc_descr_multiline_value:41,section:42,text:43,point_start:44,point_x:45,point_y:46,class_name:47,"X-AXIS":48,"AXIS-TEXT-DELIMITER":49,"Y-AXIS":50,QUADRANT_1:51,QUADRANT_2:52,QUADRANT_3:53,QUADRANT_4:54,NEWLINE:55,SEMI:56,EOF:57,alphaNumToken:58,textNoTagsToken:59,STR:60,MD_STR:61,alphaNum:62,PUNCTUATION:63,PLUS:64,EQUALS:65,DOT:66,UNDERSCORE:67,$accept:0,$end:1},terminals_:{2:"error",4:"ALPHA",5:"NUM",6:"NODE_STRING",7:"DOWN",8:"MINUS",9:"DEFAULT",10:"COMMA",11:"COLON",12:"AMP",13:"BRKT",14:"MULT",15:"UNICODE_TEXT",17:"UNIT",18:"SPACE",19:"STYLE",20:"PCT",25:"CLASSDEF",28:"QUADRANT",35:"title",36:"title_value",37:"acc_title",38:"acc_title_value",39:"acc_descr",40:"acc_descr_value",41:"acc_descr_multiline_value",42:"section",44:"point_start",45:"point_x",46:"point_y",47:"class_name",48:"X-AXIS",49:"AXIS-TEXT-DELIMITER",50:"Y-AXIS",51:"QUADRANT_1",52:"QUADRANT_2",53:"QUADRANT_3",54:"QUADRANT_4",55:"NEWLINE",56:"SEMI",57:"EOF",60:"STR",61:"MD_STR",63:"PUNCTUATION",64:"PLUS",65:"EQUALS",66:"DOT",67:"UNDERSCORE"},productions_:[0,[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[21,1],[21,2],[22,1],[22,2],[23,1],[23,3],[24,5],[26,2],[26,2],[26,2],[29,0],[29,2],[30,2],[31,0],[31,1],[31,2],[31,1],[31,1],[31,1],[31,2],[31,2],[31,2],[31,1],[31,1],[34,4],[34,5],[34,5],[34,6],[32,4],[32,3],[32,2],[32,4],[32,3],[32,2],[33,2],[33,2],[33,2],[33,2],[27,1],[27,1],[27,1],[43,1],[43,2],[43,1],[43,1],[62,1],[62,2],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[59,1],[59,1],[59,1]],performAction:s(function(r,l,u,d,S,e,ht){var n=e.length-1;switch(S){case 23:this.$=e[n];break;case 24:this.$=e[n-1]+""+e[n];break;case 26:this.$=e[n-1]+e[n];break;case 27:this.$=[e[n].trim()];break;case 28:e[n-2].push(e[n].trim()),this.$=e[n-2];break;case 29:this.$=e[n-4],d.addClass(e[n-2],e[n]);break;case 37:this.$=[];break;case 42:this.$=e[n].trim(),d.setDiagramTitle(this.$);break;case 43:this.$=e[n].trim(),d.setAccTitle(this.$);break;case 44:case 45:this.$=e[n].trim(),d.setAccDescription(this.$);break;case 46:d.addSection(e[n].substr(8)),this.$=e[n].substr(8);break;case 47:d.addPoint(e[n-3],"",e[n-1],e[n],[]);break;case 48:d.addPoint(e[n-4],e[n-3],e[n-1],e[n],[]);break;case 49:d.addPoint(e[n-4],"",e[n-2],e[n-1],e[n]);break;case 50:d.addPoint(e[n-5],e[n-4],e[n-2],e[n-1],e[n]);break;case 51:d.setXAxisLeftText(e[n-2]),d.setXAxisRightText(e[n]);break;case 52:e[n-1].text+=" \u27F6 ",d.setXAxisLeftText(e[n-1]);break;case 53:d.setXAxisLeftText(e[n]);break;case 54:d.setYAxisBottomText(e[n-2]),d.setYAxisTopText(e[n]);break;case 55:e[n-1].text+=" \u27F6 ",d.setYAxisBottomText(e[n-1]);break;case 56:d.setYAxisBottomText(e[n]);break;case 57:d.setQuadrant1Text(e[n]);break;case 58:d.setQuadrant2Text(e[n]);break;case 59:d.setQuadrant3Text(e[n]);break;case 60:d.setQuadrant4Text(e[n]);break;case 64:this.$={text:e[n],type:"text"};break;case 65:this.$={text:e[n-1].text+""+e[n],type:e[n-1].type};break;case 66:this.$={text:e[n],type:"text"};break;case 67:this.$={text:e[n],type:"markdown"};break;case 68:this.$=e[n];break;case 69:this.$=e[n-1]+""+e[n];break}},"anonymous"),table:[{18:a,26:1,27:2,28:p,55:f,56:o,57:x},{1:[3]},{18:a,26:8,27:2,28:p,55:f,56:o,57:x},{18:a,26:9,27:2,28:p,55:f,56:o,57:x},t(_,[2,33],{29:10}),t(h,[2,61]),t(h,[2,62]),t(h,[2,63]),{1:[2,30]},{1:[2,31]},t(c,k,{30:11,31:12,24:13,32:15,33:16,34:17,43:30,58:31,1:[2,32],4:m,5:q,10:y,12:b,13:T,14:g,15:A,18:dt,25:ut,35:xt,37:ft,39:ot,41:St,42:lt,48:i,50:It,51:wt,52:Bt,53:Rt,54:Nt,60:U,61:Q,63:F,64:P,65:v,66:C,67:L}),t(_,[2,34]),{27:46,55:f,56:o,57:x},t(c,[2,37]),t(c,k,{24:13,32:15,33:16,34:17,43:30,58:31,31:47,4:m,5:q,10:y,12:b,13:T,14:g,15:A,18:dt,25:ut,35:xt,37:ft,39:ot,41:St,42:lt,48:i,50:It,51:wt,52:Bt,53:Rt,54:Nt,60:U,61:Q,63:F,64:P,65:v,66:C,67:L}),t(c,[2,39]),t(c,[2,40]),t(c,[2,41]),{36:[1,48]},{38:[1,49]},{40:[1,50]},t(c,[2,45]),t(c,[2,46]),{18:[1,51]},{4:m,5:q,10:y,12:b,13:T,14:g,15:A,43:52,58:31,60:U,61:Q,63:F,64:P,65:v,66:C,67:L},{4:m,5:q,10:y,12:b,13:T,14:g,15:A,43:53,58:31,60:U,61:Q,63:F,64:P,65:v,66:C,67:L},{4:m,5:q,10:y,12:b,13:T,14:g,15:A,43:54,58:31,60:U,61:Q,63:F,64:P,65:v,66:C,67:L},{4:m,5:q,10:y,12:b,13:T,14:g,15:A,43:55,58:31,60:U,61:Q,63:F,64:P,65:v,66:C,67:L},{4:m,5:q,10:y,12:b,13:T,14:g,15:A,43:56,58:31,60:U,61:Q,63:F,64:P,65:v,66:C,67:L},{4:m,5:q,10:y,12:b,13:T,14:g,15:A,43:57,58:31,60:U,61:Q,63:F,64:P,65:v,66:C,67:L},{4:m,5:q,8:H,10:y,12:b,13:T,14:g,15:A,18:X,44:[1,58],47:[1,59],58:61,59:60,63:F,64:P,65:v,66:C,67:L},t(E,[2,64]),t(E,[2,66]),t(E,[2,67]),t(E,[2,70]),t(E,[2,71]),t(E,[2,72]),t(E,[2,73]),t(E,[2,74]),t(E,[2,75]),t(E,[2,76]),t(E,[2,77]),t(E,[2,78]),t(E,[2,79]),t(E,[2,80]),t(E,[2,81]),t(_,[2,35]),t(c,[2,38]),t(c,[2,42]),t(c,[2,43]),t(c,[2,44]),{3:65,4:Wt,5:Ut,6:Qt,7:Ot,8:Ht,9:Xt,10:Mt,11:Yt,12:jt,13:Gt,14:Kt,15:Zt,21:64},t(c,[2,53],{59:60,58:61,4:m,5:q,8:H,10:y,12:b,13:T,14:g,15:A,18:X,49:[1,78],63:F,64:P,65:v,66:C,67:L}),t(c,[2,56],{59:60,58:61,4:m,5:q,8:H,10:y,12:b,13:T,14:g,15:A,18:X,49:[1,79],63:F,64:P,65:v,66:C,67:L}),t(c,[2,57],{59:60,58:61,4:m,5:q,8:H,10:y,12:b,13:T,14:g,15:A,18:X,63:F,64:P,65:v,66:C,67:L}),t(c,[2,58],{59:60,58:61,4:m,5:q,8:H,10:y,12:b,13:T,14:g,15:A,18:X,63:F,64:P,65:v,66:C,67:L}),t(c,[2,59],{59:60,58:61,4:m,5:q,8:H,10:y,12:b,13:T,14:g,15:A,18:X,63:F,64:P,65:v,66:C,67:L}),t(c,[2,60],{59:60,58:61,4:m,5:q,8:H,10:y,12:b,13:T,14:g,15:A,18:X,63:F,64:P,65:v,66:C,67:L}),{45:[1,80]},{44:[1,81]},t(E,[2,65]),t(E,[2,82]),t(E,[2,83]),t(E,[2,84]),{3:83,4:Wt,5:Ut,6:Qt,7:Ot,8:Ht,9:Xt,10:Mt,11:Yt,12:jt,13:Gt,14:Kt,15:Zt,18:[1,82]},t(B,[2,23]),t(B,[2,1]),t(B,[2,2]),t(B,[2,3]),t(B,[2,4]),t(B,[2,5]),t(B,[2,6]),t(B,[2,7]),t(B,[2,8]),t(B,[2,9]),t(B,[2,10]),t(B,[2,11]),t(B,[2,12]),t(c,[2,52],{58:31,43:84,4:m,5:q,10:y,12:b,13:T,14:g,15:A,60:U,61:Q,63:F,64:P,65:v,66:C,67:L}),t(c,[2,55],{58:31,43:85,4:m,5:q,10:y,12:b,13:T,14:g,15:A,60:U,61:Q,63:F,64:P,65:v,66:C,67:L}),{46:[1,86]},{45:[1,87]},{4:K,5:Z,6:J,8:$,11:tt,13:et,16:90,17:it,18:at,19:nt,20:rt,22:89,23:88},t(B,[2,24]),t(c,[2,51],{59:60,58:61,4:m,5:q,8:H,10:y,12:b,13:T,14:g,15:A,18:X,63:F,64:P,65:v,66:C,67:L}),t(c,[2,54],{59:60,58:61,4:m,5:q,8:H,10:y,12:b,13:T,14:g,15:A,18:X,63:F,64:P,65:v,66:C,67:L}),t(c,[2,47],{22:89,16:90,23:101,4:K,5:Z,6:J,8:$,11:tt,13:et,17:it,18:at,19:nt,20:rt}),{46:[1,102]},t(c,[2,29],{10:_t}),t(Jt,[2,27],{16:104,4:K,5:Z,6:J,8:$,11:tt,13:et,17:it,18:at,19:nt,20:rt}),t(N,[2,25]),t(N,[2,13]),t(N,[2,14]),t(N,[2,15]),t(N,[2,16]),t(N,[2,17]),t(N,[2,18]),t(N,[2,19]),t(N,[2,20]),t(N,[2,21]),t(N,[2,22]),t(c,[2,49],{10:_t}),t(c,[2,48],{22:89,16:90,23:105,4:K,5:Z,6:J,8:$,11:tt,13:et,17:it,18:at,19:nt,20:rt}),{4:K,5:Z,6:J,8:$,11:tt,13:et,16:90,17:it,18:at,19:nt,20:rt,22:106},t(N,[2,26]),t(c,[2,50],{10:_t}),t(Jt,[2,28],{16:104,4:K,5:Z,6:J,8:$,11:tt,13:et,17:it,18:at,19:nt,20:rt})],defaultActions:{8:[2,30],9:[2,31]},parseError:s(function(r,l){if(l.recoverable)this.trace(r);else{var u=new Error(r);throw u.hash=l,u}},"parseError"),parse:s(function(r){var l=this,u=[0],d=[],S=[null],e=[],ht=this.table,n="",pt=0,$t=0,te=0,Ce=2,ee=1,Le=e.slice.call(arguments,1),z=Object.create(this.lexer),j={yy:{}};for(var Ft in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Ft)&&(j.yy[Ft]=this.yy[Ft]);z.setInput(r,j.yy),j.yy.lexer=z,j.yy.parser=this,typeof z.yylloc>"u"&&(z.yylloc={});var Pt=z.yylloc;e.push(Pt);var Ee=z.options&&z.options.ranges;typeof j.yy.parseError=="function"?this.parseError=j.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function De(R){u.length=u.length-2*R,S.length=S.length-R,e.length=e.length-R}s(De,"popStack");function ie(){var R;return R=d.pop()||z.lex()||ee,typeof R!="number"&&(R instanceof Array&&(d=R,R=d.pop()),R=l.symbols_[R]||R),R}s(ie,"lex");for(var I,vt,G,W,Ne,Ct,st={},yt,M,ae,bt;;){if(G=u[u.length-1],this.defaultActions[G]?W=this.defaultActions[G]:((I===null||typeof I>"u")&&(I=ie()),W=ht[G]&&ht[G][I]),typeof W>"u"||!W.length||!W[0]){var Lt="";bt=[];for(yt in ht[G])this.terminals_[yt]&&yt>Ce&&bt.push("'"+this.terminals_[yt]+"'");z.showPosition?Lt="Parse error on line "+(pt+1)+`: +`+z.showPosition()+` +Expecting `+bt.join(", ")+", got '"+(this.terminals_[I]||I)+"'":Lt="Parse error on line "+(pt+1)+": Unexpected "+(I==ee?"end of input":"'"+(this.terminals_[I]||I)+"'"),this.parseError(Lt,{text:z.match,token:this.terminals_[I]||I,line:z.yylineno,loc:Pt,expected:bt})}if(W[0]instanceof Array&&W.length>1)throw new Error("Parse Error: multiple actions possible at state: "+G+", token: "+I);switch(W[0]){case 1:u.push(I),S.push(z.yytext),e.push(z.yylloc),u.push(W[1]),I=null,vt?(I=vt,vt=null):($t=z.yyleng,n=z.yytext,pt=z.yylineno,Pt=z.yylloc,te>0&&te--);break;case 2:if(M=this.productions_[W[1]][1],st.$=S[S.length-M],st._$={first_line:e[e.length-(M||1)].first_line,last_line:e[e.length-1].last_line,first_column:e[e.length-(M||1)].first_column,last_column:e[e.length-1].last_column},Ee&&(st._$.range=[e[e.length-(M||1)].range[0],e[e.length-1].range[1]]),Ct=this.performAction.apply(st,[n,$t,pt,j.yy,W[1],S,e].concat(Le)),typeof Ct<"u")return Ct;M&&(u=u.slice(0,-1*M*2),S=S.slice(0,-1*M),e=e.slice(0,-1*M)),u.push(this.productions_[W[1]][0]),S.push(st.$),e.push(st._$),ae=ht[u[u.length-2]][u[u.length-1]],u.push(ae);break;case 3:return!0}}return!0},"parse")},ve=(function(){var Y={EOF:1,parseError:s(function(l,u){if(this.yy.parser)this.yy.parser.parseError(l,u);else throw new Error(l)},"parseError"),setInput:s(function(r,l){return this.yy=l||this.yy||{},this._input=r,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:s(function(){var r=this._input[0];this.yytext+=r,this.yyleng++,this.offset++,this.match+=r,this.matched+=r;var l=r.match(/(?:\r\n?|\n).*/g);return l?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),r},"input"),unput:s(function(r){var l=r.length,u=r.split(/(?:\r\n?|\n)/g);this._input=r+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-l),this.offset-=l;var d=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),u.length-1&&(this.yylineno-=u.length-1);var S=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:u?(u.length===d.length?this.yylloc.first_column:0)+d[d.length-u.length].length-u[0].length:this.yylloc.first_column-l},this.options.ranges&&(this.yylloc.range=[S[0],S[0]+this.yyleng-l]),this.yyleng=this.yytext.length,this},"unput"),more:s(function(){return this._more=!0,this},"more"),reject:s(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). +`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:s(function(r){this.unput(this.match.slice(r))},"less"),pastInput:s(function(){var r=this.matched.substr(0,this.matched.length-this.match.length);return(r.length>20?"...":"")+r.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:s(function(){var r=this.match;return r.length<20&&(r+=this._input.substr(0,20-r.length)),(r.substr(0,20)+(r.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:s(function(){var r=this.pastInput(),l=new Array(r.length+1).join("-");return r+this.upcomingInput()+` +`+l+"^"},"showPosition"),test_match:s(function(r,l){var u,d,S;if(this.options.backtrack_lexer&&(S={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&&(S.yylloc.range=this.yylloc.range.slice(0))),d=r[0].match(/(?:\r\n?|\n).*/g),d&&(this.yylineno+=d.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:d?d[d.length-1].length-d[d.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+r[0].length},this.yytext+=r[0],this.match+=r[0],this.matches=r,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(r[0].length),this.matched+=r[0],u=this.performAction.call(this,this.yy,this,l,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),u)return u;if(this._backtrack){for(var e in S)this[e]=S[e];return!1}return!1},"test_match"),next:s(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var r,l,u,d;this._more||(this.yytext="",this.match="");for(var S=this._currentRules(),e=0;el[0].length)){if(l=u,d=e,this.options.backtrack_lexer){if(r=this.test_match(u,S[e]),r!==!1)return r;if(this._backtrack){l=!1;continue}else return!1}else if(!this.options.flex)break}return l?(r=this.test_match(l,S[d]),r!==!1?r:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text. +`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:s(function(){var l=this.next();return l||this.lex()},"lex"),begin:s(function(l){this.conditionStack.push(l)},"begin"),popState:s(function(){var l=this.conditionStack.length-1;return l>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:s(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:s(function(l){return l=this.conditionStack.length-1-Math.abs(l||0),l>=0?this.conditionStack[l]:"INITIAL"},"topState"),pushState:s(function(l){this.begin(l)},"pushState"),stateStackSize:s(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:s(function(l,u,d,S){var e=S;switch(d){case 0:break;case 1:break;case 2:return 55;case 3:break;case 4:return this.begin("title"),35;break;case 5:return this.popState(),"title_value";break;case 6:return this.begin("acc_title"),37;break;case 7:return this.popState(),"acc_title_value";break;case 8:return this.begin("acc_descr"),39;break;case 9:return this.popState(),"acc_descr_value";break;case 10:this.begin("acc_descr_multiline");break;case 11:this.popState();break;case 12:return"acc_descr_multiline_value";case 13:return 48;case 14:return 50;case 15:return 49;case 16:return 51;case 17:return 52;case 18:return 53;case 19:return 54;case 20:return 25;case 21:this.begin("md_string");break;case 22:return"MD_STR";case 23:this.popState();break;case 24:this.begin("string");break;case 25:this.popState();break;case 26:return"STR";case 27:this.begin("class_name");break;case 28:return this.popState(),47;break;case 29:return this.begin("point_start"),44;break;case 30:return this.begin("point_x"),45;break;case 31:this.popState();break;case 32:this.popState(),this.begin("point_y");break;case 33:return this.popState(),46;break;case 34:return 28;case 35:return 4;case 36:return 15;case 37:return 11;case 38:return 64;case 39:return 10;case 40:return 65;case 41:return 65;case 42:return 14;case 43:return 13;case 44:return 67;case 45:return 66;case 46:return 12;case 47:return 8;case 48:return 5;case 49:return 18;case 50:return 56;case 51:return 63;case 52:return 57}},"anonymous"),rules:[/^(?:%%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n\r]+)/i,/^(?:%%[^\n]*)/i,/^(?:title\b)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?: *x-axis *)/i,/^(?: *y-axis *)/i,/^(?: *--+> *)/i,/^(?: *quadrant-1 *)/i,/^(?: *quadrant-2 *)/i,/^(?: *quadrant-3 *)/i,/^(?: *quadrant-4 *)/i,/^(?:classDef\b)/i,/^(?:["][`])/i,/^(?:[^`"]+)/i,/^(?:[`]["])/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?::::)/i,/^(?:^\w+)/i,/^(?:\s*:\s*\[\s*)/i,/^(?:(1)|(0(.\d+)?))/i,/^(?:\s*\] *)/i,/^(?:\s*,\s*)/i,/^(?:(1)|(0(.\d+)?))/i,/^(?: *quadrantChart *)/i,/^(?:[A-Za-z]+)/i,/^(?:[^\x00-\x7F]+)/i,/^(?::)/i,/^(?:\+)/i,/^(?:,)/i,/^(?:=)/i,/^(?:=)/i,/^(?:\*)/i,/^(?:#)/i,/^(?:[\_])/i,/^(?:\.)/i,/^(?:&)/i,/^(?:-)/i,/^(?:[0-9]+)/i,/^(?:\s)/i,/^(?:;)/i,/^(?:[!"#$%&'*+,-.`?\\_/])/i,/^(?:$)/i],conditions:{class_name:{rules:[28],inclusive:!1},point_y:{rules:[33],inclusive:!1},point_x:{rules:[32],inclusive:!1},point_start:{rules:[30,31],inclusive:!1},acc_descr_multiline:{rules:[11,12],inclusive:!1},acc_descr:{rules:[9],inclusive:!1},acc_title:{rules:[7],inclusive:!1},title:{rules:[5],inclusive:!1},md_string:{rules:[22,23],inclusive:!1},string:{rules:[25,26],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,6,8,10,13,14,15,16,17,18,19,20,21,24,27,29,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52],inclusive:!0}}};return Y})();At.lexer=ve;function gt(){this.yy={}}return s(gt,"Parser"),gt.prototype=At,At.Parser=gt,new gt})();zt.parser=zt;var ze=zt,w=ne(),Ve=class{constructor(){this.classes=new Map,this.config=this.getDefaultConfig(),this.themeConfig=this.getDefaultThemeConfig(),this.data=this.getDefaultData()}static{s(this,"QuadrantBuilder")}getDefaultData(){return{titleText:"",quadrant1Text:"",quadrant2Text:"",quadrant3Text:"",quadrant4Text:"",xAxisLeftText:"",xAxisRightText:"",yAxisBottomText:"",yAxisTopText:"",points:[]}}getDefaultConfig(){return{showXAxis:!0,showYAxis:!0,showTitle:!0,chartHeight:D.quadrantChart?.chartWidth||500,chartWidth:D.quadrantChart?.chartHeight||500,titlePadding:D.quadrantChart?.titlePadding||10,titleFontSize:D.quadrantChart?.titleFontSize||20,quadrantPadding:D.quadrantChart?.quadrantPadding||5,xAxisLabelPadding:D.quadrantChart?.xAxisLabelPadding||5,yAxisLabelPadding:D.quadrantChart?.yAxisLabelPadding||5,xAxisLabelFontSize:D.quadrantChart?.xAxisLabelFontSize||16,yAxisLabelFontSize:D.quadrantChart?.yAxisLabelFontSize||16,quadrantLabelFontSize:D.quadrantChart?.quadrantLabelFontSize||16,quadrantTextTopPadding:D.quadrantChart?.quadrantTextTopPadding||5,pointTextPadding:D.quadrantChart?.pointTextPadding||5,pointLabelFontSize:D.quadrantChart?.pointLabelFontSize||12,pointRadius:D.quadrantChart?.pointRadius||5,xAxisPosition:D.quadrantChart?.xAxisPosition||"top",yAxisPosition:D.quadrantChart?.yAxisPosition||"left",quadrantInternalBorderStrokeWidth:D.quadrantChart?.quadrantInternalBorderStrokeWidth||1,quadrantExternalBorderStrokeWidth:D.quadrantChart?.quadrantExternalBorderStrokeWidth||2}}getDefaultThemeConfig(){return{quadrant1Fill:w.quadrant1Fill,quadrant2Fill:w.quadrant2Fill,quadrant3Fill:w.quadrant3Fill,quadrant4Fill:w.quadrant4Fill,quadrant1TextFill:w.quadrant1TextFill,quadrant2TextFill:w.quadrant2TextFill,quadrant3TextFill:w.quadrant3TextFill,quadrant4TextFill:w.quadrant4TextFill,quadrantPointFill:w.quadrantPointFill,quadrantPointTextFill:w.quadrantPointTextFill,quadrantXAxisTextFill:w.quadrantXAxisTextFill,quadrantYAxisTextFill:w.quadrantYAxisTextFill,quadrantTitleFill:w.quadrantTitleFill,quadrantInternalBorderStrokeFill:w.quadrantInternalBorderStrokeFill,quadrantExternalBorderStrokeFill:w.quadrantExternalBorderStrokeFill}}clear(){this.config=this.getDefaultConfig(),this.themeConfig=this.getDefaultThemeConfig(),this.data=this.getDefaultData(),this.classes=new Map,ct.info("clear called")}setData(t){this.data={...this.data,...t}}addPoints(t){this.data.points=[...t,...this.data.points]}addClass(t,a){this.classes.set(t,a)}setConfig(t){ct.trace("setConfig called with: ",t),this.config={...this.config,...t}}setThemeConfig(t){ct.trace("setThemeConfig called with: ",t),this.themeConfig={...this.themeConfig,...t}}calculateSpace(t,a,p,f){let o=this.config.xAxisLabelPadding*2+this.config.xAxisLabelFontSize,x={top:t==="top"&&a?o:0,bottom:t==="bottom"&&a?o:0},_=this.config.yAxisLabelPadding*2+this.config.yAxisLabelFontSize,h={left:this.config.yAxisPosition==="left"&&p?_:0,right:this.config.yAxisPosition==="right"&&p?_:0},c=this.config.titleFontSize+this.config.titlePadding*2,k={top:f?c:0},m=this.config.quadrantPadding+h.left,q=this.config.quadrantPadding+x.top+k.top,y=this.config.chartWidth-this.config.quadrantPadding*2-h.left-h.right,b=this.config.chartHeight-this.config.quadrantPadding*2-x.top-x.bottom-k.top,T=y/2,g=b/2;return{xAxisSpace:x,yAxisSpace:h,titleSpace:k,quadrantSpace:{quadrantLeft:m,quadrantTop:q,quadrantWidth:y,quadrantHalfWidth:T,quadrantHeight:b,quadrantHalfHeight:g}}}getAxisLabels(t,a,p,f){let{quadrantSpace:o,titleSpace:x}=f,{quadrantHalfHeight:_,quadrantHeight:h,quadrantLeft:c,quadrantHalfWidth:k,quadrantTop:m,quadrantWidth:q}=o,y=!!this.data.xAxisRightText,b=!!this.data.yAxisTopText,T=[];return this.data.xAxisLeftText&&a&&T.push({text:this.data.xAxisLeftText,fill:this.themeConfig.quadrantXAxisTextFill,x:c+(y?k/2:0),y:t==="top"?this.config.xAxisLabelPadding+x.top:this.config.xAxisLabelPadding+m+h+this.config.quadrantPadding,fontSize:this.config.xAxisLabelFontSize,verticalPos:y?"center":"left",horizontalPos:"top",rotation:0}),this.data.xAxisRightText&&a&&T.push({text:this.data.xAxisRightText,fill:this.themeConfig.quadrantXAxisTextFill,x:c+k+(y?k/2:0),y:t==="top"?this.config.xAxisLabelPadding+x.top:this.config.xAxisLabelPadding+m+h+this.config.quadrantPadding,fontSize:this.config.xAxisLabelFontSize,verticalPos:y?"center":"left",horizontalPos:"top",rotation:0}),this.data.yAxisBottomText&&p&&T.push({text:this.data.yAxisBottomText,fill:this.themeConfig.quadrantYAxisTextFill,x:this.config.yAxisPosition==="left"?this.config.yAxisLabelPadding:this.config.yAxisLabelPadding+c+q+this.config.quadrantPadding,y:m+h-(b?_/2:0),fontSize:this.config.yAxisLabelFontSize,verticalPos:b?"center":"left",horizontalPos:"top",rotation:-90}),this.data.yAxisTopText&&p&&T.push({text:this.data.yAxisTopText,fill:this.themeConfig.quadrantYAxisTextFill,x:this.config.yAxisPosition==="left"?this.config.yAxisLabelPadding:this.config.yAxisLabelPadding+c+q+this.config.quadrantPadding,y:m+_-(b?_/2:0),fontSize:this.config.yAxisLabelFontSize,verticalPos:b?"center":"left",horizontalPos:"top",rotation:-90}),T}getQuadrants(t){let{quadrantSpace:a}=t,{quadrantHalfHeight:p,quadrantLeft:f,quadrantHalfWidth:o,quadrantTop:x}=a,_=[{text:{text:this.data.quadrant1Text,fill:this.themeConfig.quadrant1TextFill,x:0,y:0,fontSize:this.config.quadrantLabelFontSize,verticalPos:"center",horizontalPos:"middle",rotation:0},x:f+o,y:x,width:o,height:p,fill:this.themeConfig.quadrant1Fill},{text:{text:this.data.quadrant2Text,fill:this.themeConfig.quadrant2TextFill,x:0,y:0,fontSize:this.config.quadrantLabelFontSize,verticalPos:"center",horizontalPos:"middle",rotation:0},x:f,y:x,width:o,height:p,fill:this.themeConfig.quadrant2Fill},{text:{text:this.data.quadrant3Text,fill:this.themeConfig.quadrant3TextFill,x:0,y:0,fontSize:this.config.quadrantLabelFontSize,verticalPos:"center",horizontalPos:"middle",rotation:0},x:f,y:x+p,width:o,height:p,fill:this.themeConfig.quadrant3Fill},{text:{text:this.data.quadrant4Text,fill:this.themeConfig.quadrant4TextFill,x:0,y:0,fontSize:this.config.quadrantLabelFontSize,verticalPos:"center",horizontalPos:"middle",rotation:0},x:f+o,y:x+p,width:o,height:p,fill:this.themeConfig.quadrant4Fill}];for(let h of _)h.text.x=h.x+h.width/2,this.data.points.length===0?(h.text.y=h.y+h.height/2,h.text.horizontalPos="middle"):(h.text.y=h.y+this.config.quadrantTextTopPadding,h.text.horizontalPos="top");return _}getQuadrantPoints(t){let{quadrantSpace:a}=t,{quadrantHeight:p,quadrantLeft:f,quadrantTop:o,quadrantWidth:x}=a,_=Dt().domain([0,1]).range([f,x+f]),h=Dt().domain([0,1]).range([p+o,o]);return this.data.points.map(k=>{let m=this.classes.get(k.className);return m&&(k={...m,...k}),{x:_(k.x),y:h(k.y),fill:k.color??this.themeConfig.quadrantPointFill,radius:k.radius??this.config.pointRadius,text:{text:k.text,fill:this.themeConfig.quadrantPointTextFill,x:_(k.x),y:h(k.y)+this.config.pointTextPadding,verticalPos:"center",horizontalPos:"top",fontSize:this.config.pointLabelFontSize,rotation:0},strokeColor:k.strokeColor??this.themeConfig.quadrantPointFill,strokeWidth:k.strokeWidth??"0px"}})}getBorders(t){let a=this.config.quadrantExternalBorderStrokeWidth/2,{quadrantSpace:p}=t,{quadrantHalfHeight:f,quadrantHeight:o,quadrantLeft:x,quadrantHalfWidth:_,quadrantTop:h,quadrantWidth:c}=p;return[{strokeFill:this.themeConfig.quadrantExternalBorderStrokeFill,strokeWidth:this.config.quadrantExternalBorderStrokeWidth,x1:x-a,y1:h,x2:x+c+a,y2:h},{strokeFill:this.themeConfig.quadrantExternalBorderStrokeFill,strokeWidth:this.config.quadrantExternalBorderStrokeWidth,x1:x+c,y1:h+a,x2:x+c,y2:h+o-a},{strokeFill:this.themeConfig.quadrantExternalBorderStrokeFill,strokeWidth:this.config.quadrantExternalBorderStrokeWidth,x1:x-a,y1:h+o,x2:x+c+a,y2:h+o},{strokeFill:this.themeConfig.quadrantExternalBorderStrokeFill,strokeWidth:this.config.quadrantExternalBorderStrokeWidth,x1:x,y1:h+a,x2:x,y2:h+o-a},{strokeFill:this.themeConfig.quadrantInternalBorderStrokeFill,strokeWidth:this.config.quadrantInternalBorderStrokeWidth,x1:x+_,y1:h+a,x2:x+_,y2:h+o-a},{strokeFill:this.themeConfig.quadrantInternalBorderStrokeFill,strokeWidth:this.config.quadrantInternalBorderStrokeWidth,x1:x+a,y1:h+f,x2:x+c-a,y2:h+f}]}getTitle(t){if(t)return{text:this.data.titleText,fill:this.themeConfig.quadrantTitleFill,fontSize:this.config.titleFontSize,horizontalPos:"top",verticalPos:"center",rotation:0,y:this.config.titlePadding,x:this.config.chartWidth/2}}build(){let t=this.config.showXAxis&&!!(this.data.xAxisLeftText||this.data.xAxisRightText),a=this.config.showYAxis&&!!(this.data.yAxisTopText||this.data.yAxisBottomText),p=this.config.showTitle&&!!this.data.titleText,f=this.data.points.length>0?"bottom":this.config.xAxisPosition,o=this.calculateSpace(f,t,a,p);return{points:this.getQuadrantPoints(o),quadrants:this.getQuadrants(o),axisLabels:this.getAxisLabels(f,t,a,o),borderLines:this.getBorders(o),title:this.getTitle(p)}}},qt=class extends Error{static{s(this,"InvalidStyleError")}constructor(t,a,p){super(`value for ${t} ${a} is invalid, please use a valid ${p}`),this.name="InvalidStyleError"}};function Vt(t){return!/^#?([\dA-Fa-f]{6}|[\dA-Fa-f]{3})$/.test(t)}s(Vt,"validateHexCode");function xe(t){return!/^\d+$/.test(t)}s(xe,"validateNumber");function fe(t){return!/^\d+px$/.test(t)}s(fe,"validateSizeInPixels");function O(t){return re(t.trim(),Tt())}s(O,"textSanitizer");var V=new Ve;function ge(t){V.setData({quadrant1Text:O(t.text)})}s(ge,"setQuadrant1Text");function pe(t){V.setData({quadrant2Text:O(t.text)})}s(pe,"setQuadrant2Text");function ye(t){V.setData({quadrant3Text:O(t.text)})}s(ye,"setQuadrant3Text");function be(t){V.setData({quadrant4Text:O(t.text)})}s(be,"setQuadrant4Text");function Te(t){V.setData({xAxisLeftText:O(t.text)})}s(Te,"setXAxisLeftText");function me(t){V.setData({xAxisRightText:O(t.text)})}s(me,"setXAxisRightText");function qe(t){V.setData({yAxisTopText:O(t.text)})}s(qe,"setYAxisTopText");function ke(t){V.setData({yAxisBottomText:O(t.text)})}s(ke,"setYAxisBottomText");function kt(t){let a={};for(let p of t){let[f,o]=p.trim().split(/\s*:\s*/);if(f==="radius"){if(xe(o))throw new qt(f,o,"number");a.radius=parseInt(o)}else if(f==="color"){if(Vt(o))throw new qt(f,o,"hex code");a.color=o}else if(f==="stroke-color"){if(Vt(o))throw new qt(f,o,"hex code");a.strokeColor=o}else if(f==="stroke-width"){if(fe(o))throw new qt(f,o,"number of pixels (eg. 10px)");a.strokeWidth=o}else throw new Error(`style named ${f} is not supported.`)}return a}s(kt,"parseStyles");function Se(t,a,p,f,o){let x=kt(o);V.addPoints([{x:p,y:f,text:O(t.text),className:a,...x}])}s(Se,"addPoint");function _e(t,a){V.addClass(t,kt(a))}s(_e,"addClass");function Ae(t){V.setConfig({chartWidth:t})}s(Ae,"setWidth");function Fe(t){V.setConfig({chartHeight:t})}s(Fe,"setHeight");function Pe(){let t=Tt(),{themeVariables:a,quadrantChart:p}=t;return p&&V.setConfig(p),V.setThemeConfig({quadrant1Fill:a.quadrant1Fill,quadrant2Fill:a.quadrant2Fill,quadrant3Fill:a.quadrant3Fill,quadrant4Fill:a.quadrant4Fill,quadrant1TextFill:a.quadrant1TextFill,quadrant2TextFill:a.quadrant2TextFill,quadrant3TextFill:a.quadrant3TextFill,quadrant4TextFill:a.quadrant4TextFill,quadrantPointFill:a.quadrantPointFill,quadrantPointTextFill:a.quadrantPointTextFill,quadrantXAxisTextFill:a.quadrantXAxisTextFill,quadrantYAxisTextFill:a.quadrantYAxisTextFill,quadrantExternalBorderStrokeFill:a.quadrantExternalBorderStrokeFill,quadrantInternalBorderStrokeFill:a.quadrantInternalBorderStrokeFill,quadrantTitleFill:a.quadrantTitleFill}),V.setData({titleText:Et()}),V.build()}s(Pe,"getQuadrantData");var Ie=s(function(){V.clear(),oe()},"clear"),we={setWidth:Ae,setHeight:Fe,setQuadrant1Text:ge,setQuadrant2Text:pe,setQuadrant3Text:ye,setQuadrant4Text:be,setXAxisLeftText:Te,setXAxisRightText:me,setYAxisTopText:qe,setYAxisBottomText:ke,parseStyles:kt,addPoint:Se,addClass:_e,getQuadrantData:Pe,clear:Ie,setAccTitle:le,getAccTitle:he,setDiagramTitle:ue,getDiagramTitle:Et,getAccDescription:de,setAccDescription:ce},Be=s((t,a,p,f)=>{function o(i){return i==="top"?"hanging":"middle"}s(o,"getDominantBaseLine");function x(i){return i==="left"?"start":"middle"}s(x,"getTextAnchor");function _(i){return`translate(${i.x}, ${i.y}) rotate(${i.rotation||0})`}s(_,"getTransformation");let h=Tt();ct.debug(`Rendering quadrant chart +`+t);let c=h.securityLevel,k;c==="sandbox"&&(k=mt("#i"+a));let q=(c==="sandbox"?mt(k.nodes()[0].contentDocument.body):mt("body")).select(`[id="${a}"]`),y=q.append("g").attr("class","main"),b=h.quadrantChart?.chartWidth??500,T=h.quadrantChart?.chartHeight??500;se(q,T,b,h.quadrantChart?.useMaxWidth??!0),q.attr("viewBox","0 0 "+b+" "+T),f.db.setHeight(T),f.db.setWidth(b);let g=f.db.getQuadrantData(),A=y.append("g").attr("class","quadrants"),dt=y.append("g").attr("class","border"),ut=y.append("g").attr("class","data-points"),xt=y.append("g").attr("class","labels"),ft=y.append("g").attr("class","title");g.title&&ft.append("text").attr("x",0).attr("y",0).attr("fill",g.title.fill).attr("font-size",g.title.fontSize).attr("dominant-baseline",o(g.title.horizontalPos)).attr("text-anchor",x(g.title.verticalPos)).attr("transform",_(g.title)).text(g.title.text),g.borderLines&&dt.selectAll("line").data(g.borderLines).enter().append("line").attr("x1",i=>i.x1).attr("y1",i=>i.y1).attr("x2",i=>i.x2).attr("y2",i=>i.y2).style("stroke",i=>i.strokeFill).style("stroke-width",i=>i.strokeWidth);let ot=A.selectAll("g.quadrant").data(g.quadrants).enter().append("g").attr("class","quadrant");ot.append("rect").attr("x",i=>i.x).attr("y",i=>i.y).attr("width",i=>i.width).attr("height",i=>i.height).attr("fill",i=>i.fill),ot.append("text").attr("x",0).attr("y",0).attr("fill",i=>i.text.fill).attr("font-size",i=>i.text.fontSize).attr("dominant-baseline",i=>o(i.text.horizontalPos)).attr("text-anchor",i=>x(i.text.verticalPos)).attr("transform",i=>_(i.text)).text(i=>i.text.text),xt.selectAll("g.label").data(g.axisLabels).enter().append("g").attr("class","label").append("text").attr("x",0).attr("y",0).text(i=>i.text).attr("fill",i=>i.fill).attr("font-size",i=>i.fontSize).attr("dominant-baseline",i=>o(i.horizontalPos)).attr("text-anchor",i=>x(i.verticalPos)).attr("transform",i=>_(i));let lt=ut.selectAll("g.data-point").data(g.points).enter().append("g").attr("class","data-point");lt.append("circle").attr("cx",i=>i.x).attr("cy",i=>i.y).attr("r",i=>i.radius).attr("fill",i=>i.fill).attr("stroke",i=>i.strokeColor).attr("stroke-width",i=>i.strokeWidth),lt.append("text").attr("x",0).attr("y",0).text(i=>i.text.text).attr("fill",i=>i.text.fill).attr("font-size",i=>i.text.fontSize).attr("dominant-baseline",i=>o(i.text.horizontalPos)).attr("text-anchor",i=>x(i.text.verticalPos)).attr("transform",i=>_(i.text))},"draw"),Re={draw:Be},Xe={parser:ze,db:we,renderer:Re,styles:s(()=>"","styles")};export{Xe as diagram}; diff --git a/src/frontend/web/von_interface/static/vendor/conversation-visuals/radar-RG4KPBEZ-I7HN7QDA.js b/src/frontend/web/von_interface/static/vendor/conversation-visuals/radar-RG4KPBEZ-I7HN7QDA.js new file mode 100644 index 000000000..02e10d6c4 --- /dev/null +++ b/src/frontend/web/von_interface/static/vendor/conversation-visuals/radar-RG4KPBEZ-I7HN7QDA.js @@ -0,0 +1 @@ +import{a as r,b as e}from"./chunk-KCWUFFIE.js";import"./chunk-RVPSGR2P.js";import"./chunk-3RNHDNP5.js";export{r as RadarModule,e as createRadarServices}; diff --git a/src/frontend/web/von_interface/static/vendor/conversation-visuals/railroad-74A4TZTK-RT54NDIZ.js b/src/frontend/web/von_interface/static/vendor/conversation-visuals/railroad-74A4TZTK-RT54NDIZ.js new file mode 100644 index 000000000..81eb90511 --- /dev/null +++ b/src/frontend/web/von_interface/static/vendor/conversation-visuals/railroad-74A4TZTK-RT54NDIZ.js @@ -0,0 +1 @@ +import{a as r,b as o}from"./chunk-RDO2S4TE.js";import"./chunk-RVPSGR2P.js";import"./chunk-3RNHDNP5.js";export{r as RailroadModule,o as createRailroadServices}; diff --git a/src/frontend/web/von_interface/static/vendor/conversation-visuals/railroad-abnf-HS5TGJTU-VS6QPZWU.js b/src/frontend/web/von_interface/static/vendor/conversation-visuals/railroad-abnf-HS5TGJTU-VS6QPZWU.js new file mode 100644 index 000000000..2040167c0 --- /dev/null +++ b/src/frontend/web/von_interface/static/vendor/conversation-visuals/railroad-abnf-HS5TGJTU-VS6QPZWU.js @@ -0,0 +1 @@ +import{a as r,b as o}from"./chunk-RMEGOE55.js";import"./chunk-RVPSGR2P.js";import"./chunk-3RNHDNP5.js";export{r as RailroadAbnfModule,o as createRailroadAbnfServices}; diff --git a/src/frontend/web/von_interface/static/vendor/conversation-visuals/railroad-ebnf-LZEXJU2U-3KRJ6MJ3.js b/src/frontend/web/von_interface/static/vendor/conversation-visuals/railroad-ebnf-LZEXJU2U-3KRJ6MJ3.js new file mode 100644 index 000000000..667009b1e --- /dev/null +++ b/src/frontend/web/von_interface/static/vendor/conversation-visuals/railroad-ebnf-LZEXJU2U-3KRJ6MJ3.js @@ -0,0 +1 @@ +import{a as r,b as o}from"./chunk-XCFPDLUP.js";import"./chunk-RVPSGR2P.js";import"./chunk-3RNHDNP5.js";export{r as RailroadEbnfModule,o as createRailroadEbnfServices}; diff --git a/src/frontend/web/von_interface/static/vendor/conversation-visuals/railroad-peg-WCYAUIDC-ERHUMI3I.js b/src/frontend/web/von_interface/static/vendor/conversation-visuals/railroad-peg-WCYAUIDC-ERHUMI3I.js new file mode 100644 index 000000000..5c056fe88 --- /dev/null +++ b/src/frontend/web/von_interface/static/vendor/conversation-visuals/railroad-peg-WCYAUIDC-ERHUMI3I.js @@ -0,0 +1 @@ +import{a as e,b as r}from"./chunk-QNBXOM7U.js";import"./chunk-RVPSGR2P.js";import"./chunk-3RNHDNP5.js";export{e as RailroadPegModule,r as createRailroadPegServices}; diff --git a/src/frontend/web/von_interface/static/vendor/conversation-visuals/railroadDiagram-XR7U4H2S-R66BN6A7.js b/src/frontend/web/von_interface/static/vendor/conversation-visuals/railroadDiagram-XR7U4H2S-R66BN6A7.js new file mode 100644 index 000000000..c89b75cb9 --- /dev/null +++ b/src/frontend/web/von_interface/static/vendor/conversation-visuals/railroadDiagram-XR7U4H2S-R66BN6A7.js @@ -0,0 +1 @@ +import{a,b as p,c as u}from"./chunk-53NJVRLX.js";import{a as l}from"./chunk-CDENLQJG.js";import{b as m}from"./chunk-WBZZWDU5.js";import"./chunk-ZFFKTRVX.js";import"./chunk-DKYAF235.js";import"./chunk-X7BLBFFS.js";import"./chunk-YMFA7VWU.js";import"./chunk-C7GWRE6Z.js";import"./chunk-4DL6P2YZ.js";import"./chunk-KCWUFFIE.js";import{b as s}from"./chunk-RDO2S4TE.js";import"./chunk-XCFPDLUP.js";import"./chunk-RMEGOE55.js";import"./chunk-QNBXOM7U.js";import"./chunk-NMQHKCXS.js";import"./chunk-SEHHQ34Z.js";import"./chunk-K6AAXKM5.js";import"./chunk-KVFXNR4L.js";import"./chunk-RVPSGR2P.js";import"./chunk-UED66XBH.js";import"./chunk-S4JILX6U.js";import{b as i}from"./chunk-XEQL7KGA.js";import{a as n}from"./chunk-YUSHYV7C.js";import"./chunk-3RNHDNP5.js";var d=s().Railroad.parser.LangiumParser,t=n(e=>{switch(e.$type){case"RailroadTerminalExpr":return{type:"terminal",value:e.value};case"RailroadNonTerminalExpr":return{type:"nonterminal",name:e.name};case"RailroadSpecialExpr":return{type:"special",text:e.text};case"RailroadSequenceExpr":{let r=e.elements.map(t);return r.length===1?r[0]:{type:"sequence",elements:r}}case"RailroadChoiceExpr":{let r=e.alternatives.map(t);return r.length===1?r[0]:{type:"choice",alternatives:r}}case"RailroadOptionalExpr":return{type:"optional",element:t(e.element)};case"RailroadOneOrMoreExpr":return{type:"repetition",element:t(e.element),min:1,max:1/0};case"RailroadZeroOrMoreExpr":return{type:"repetition",element:t(e.element),min:0,max:1/0};default:throw new Error(`Unsupported railroad expression: ${e.$type}`)}},"transformExpression"),c=n(e=>({name:e.name,definition:t(e.definition)}),"transformRule"),f=n(e=>{l(e,a),e.title&&a.setTitle(e.title),e.rules.map(r=>a.addRule(c(r)))},"populateDb"),g={parse:n(e=>{a.clear(),i.debug("[Railroad Parser] Starting Langium parse");let r=d.parse(e);if(r.lexerErrors.length>0||r.parserErrors.length>0)throw new m(r);let o=r.value;i.debug("[Railroad Parser] Parsed rules:",o.rules.length),f(o),i.debug("[Railroad Parser] Parse complete")},"parse"),parser:{yy:a}},y={parser:g,db:a,renderer:u,styles:p},w=y;export{w as default,y as diagram}; diff --git a/src/frontend/web/von_interface/static/vendor/conversation-visuals/requirementDiagram-PLB6GJNP-7YV7BDAD.js b/src/frontend/web/von_interface/static/vendor/conversation-visuals/requirementDiagram-PLB6GJNP-7YV7BDAD.js new file mode 100644 index 000000000..5fa89171c --- /dev/null +++ b/src/frontend/web/von_interface/static/vendor/conversation-visuals/requirementDiagram-PLB6GJNP-7YV7BDAD.js @@ -0,0 +1,84 @@ +import{a as at}from"./chunk-VNMAEQZK.js";import{a as lt}from"./chunk-EQQJCVK6.js";import{b as rt,c as nt}from"./chunk-2AVNI7YL.js";import"./chunk-SNMBC6G5.js";import"./chunk-AKE2LJPJ.js";import"./chunk-NDMMOI35.js";import"./chunk-T4OFBIBR.js";import"./chunk-TEBTVNCH.js";import"./chunk-HVVAQLXH.js";import"./chunk-IVPOI5SM.js";import"./chunk-O46DUOKR.js";import"./chunk-C7YISUMK.js";import{b as et,c as tt,d as st,e as it}from"./chunk-6NDAIVIK.js";import{p as Ze}from"./chunk-EUYVSIXP.js";import"./chunk-QSTT4QQC.js";import{$ as ye,C as Ce,U as Ke,V as We,W as je,X as Ge,Y as ze,Z as Xe,_ as Je}from"./chunk-S4JILX6U.js";import{b as ge}from"./chunk-XEQL7KGA.js";import{a as u,b as He}from"./chunk-YUSHYV7C.js";import"./chunk-3RNHDNP5.js";var Ae=(function(){var e=u(function($,r,n,l){for(n=n||{},l=$.length;l--;n[$[l]]=r);return n},"o"),m=[1,3],h=[1,4],c=[1,5],i=[1,6],o=[5,6,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,77,89,90],k=[1,22],S=[2,7],d=[1,26],g=[1,27],y=[1,28],q=[1,29],C=[1,33],A=[1,34],V=[1,35],v=[1,36],L=[1,37],x=[1,38],w=[1,24],D=[1,31],O=[1,32],M=[1,30],E=[1,39],b=[1,40],p=[5,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,77,89,90],P=[1,61],X=[89,90],Ve=[5,8,9,11,13,21,22,23,24,27,29,41,42,43,44,45,46,54,61,63,72,74,75,76,77,80,81,82,83,84,85,86,87,88,89,90],de=[27,29],ve=[1,70],Le=[1,71],xe=[1,72],we=[1,73],De=[1,74],Oe=[1,75],Me=[1,76],Z=[1,83],U=[1,80],ee=[1,84],te=[1,85],se=[1,86],ie=[1,87],re=[1,88],ne=[1,89],ae=[1,90],le=[1,91],oe=[1,92],pe=[5,8,9,11,13,21,22,23,24,27,41,42,43,44,45,46,54,72,74,75,76,77,80,81,82,83,84,85,86,87,88,89,90],Y=[63,64],Fe=[1,101],$e=[5,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,76,77,89,90],T=[5,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,75,76,77,80,81,82,83,84,85,86,87,88,89,90],B=[1,110],Q=[1,106],H=[1,107],K=[1,108],W=[1,109],j=[1,111],ce=[1,116],he=[1,117],ue=[1,114],me=[1,115],_e={trace:u(function(){},"trace"),yy:{},symbols_:{error:2,start:3,directive:4,NEWLINE:5,RD:6,diagram:7,EOF:8,acc_title:9,acc_title_value:10,acc_descr:11,acc_descr_value:12,acc_descr_multiline_value:13,requirementDef:14,elementDef:15,relationshipDef:16,direction:17,styleStatement:18,classDefStatement:19,classStatement:20,direction_tb:21,direction_bt:22,direction_rl:23,direction_lr:24,requirementType:25,requirementName:26,STRUCT_START:27,requirementBody:28,STYLE_SEPARATOR:29,idList:30,ID:31,COLONSEP:32,id:33,TEXT:34,text:35,RISK:36,riskLevel:37,VERIFYMTHD:38,verifyType:39,STRUCT_STOP:40,REQUIREMENT:41,FUNCTIONAL_REQUIREMENT:42,INTERFACE_REQUIREMENT:43,PERFORMANCE_REQUIREMENT:44,PHYSICAL_REQUIREMENT:45,DESIGN_CONSTRAINT:46,LOW_RISK:47,MED_RISK:48,HIGH_RISK:49,VERIFY_ANALYSIS:50,VERIFY_DEMONSTRATION:51,VERIFY_INSPECTION:52,VERIFY_TEST:53,ELEMENT:54,elementName:55,elementBody:56,TYPE:57,type:58,DOCREF:59,ref:60,END_ARROW_L:61,relationship:62,LINE:63,END_ARROW_R:64,CONTAINS:65,COPIES:66,DERIVES:67,SATISFIES:68,VERIFIES:69,REFINES:70,TRACES:71,CLASSDEF:72,stylesOpt:73,CLASS:74,ALPHA:75,COMMA:76,STYLE:77,style:78,styleComponent:79,NUM:80,COLON:81,UNIT:82,SPACE:83,BRKT:84,PCT:85,MINUS:86,LABEL:87,SEMICOLON:88,unqString:89,qString:90,$accept:0,$end:1},terminals_:{2:"error",5:"NEWLINE",6:"RD",8:"EOF",9:"acc_title",10:"acc_title_value",11:"acc_descr",12:"acc_descr_value",13:"acc_descr_multiline_value",21:"direction_tb",22:"direction_bt",23:"direction_rl",24:"direction_lr",27:"STRUCT_START",29:"STYLE_SEPARATOR",31:"ID",32:"COLONSEP",34:"TEXT",36:"RISK",38:"VERIFYMTHD",40:"STRUCT_STOP",41:"REQUIREMENT",42:"FUNCTIONAL_REQUIREMENT",43:"INTERFACE_REQUIREMENT",44:"PERFORMANCE_REQUIREMENT",45:"PHYSICAL_REQUIREMENT",46:"DESIGN_CONSTRAINT",47:"LOW_RISK",48:"MED_RISK",49:"HIGH_RISK",50:"VERIFY_ANALYSIS",51:"VERIFY_DEMONSTRATION",52:"VERIFY_INSPECTION",53:"VERIFY_TEST",54:"ELEMENT",57:"TYPE",59:"DOCREF",61:"END_ARROW_L",63:"LINE",64:"END_ARROW_R",65:"CONTAINS",66:"COPIES",67:"DERIVES",68:"SATISFIES",69:"VERIFIES",70:"REFINES",71:"TRACES",72:"CLASSDEF",74:"CLASS",75:"ALPHA",76:"COMMA",77:"STYLE",80:"NUM",81:"COLON",82:"UNIT",83:"SPACE",84:"BRKT",85:"PCT",86:"MINUS",87:"LABEL",88:"SEMICOLON",89:"unqString",90:"qString"},productions_:[0,[3,3],[3,2],[3,4],[4,2],[4,2],[4,1],[7,0],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[17,1],[17,1],[17,1],[17,1],[14,5],[14,7],[28,5],[28,5],[28,5],[28,5],[28,2],[28,1],[25,1],[25,1],[25,1],[25,1],[25,1],[25,1],[37,1],[37,1],[37,1],[39,1],[39,1],[39,1],[39,1],[15,5],[15,7],[56,5],[56,5],[56,2],[56,1],[16,5],[16,5],[62,1],[62,1],[62,1],[62,1],[62,1],[62,1],[62,1],[19,3],[20,3],[20,3],[30,1],[30,3],[30,1],[30,3],[18,3],[73,1],[73,3],[78,1],[78,2],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[26,1],[26,1],[33,1],[33,1],[35,1],[35,1],[55,1],[55,1],[58,1],[58,1],[60,1],[60,1]],performAction:u(function(r,n,l,s,f,t,fe){var a=t.length-1;switch(f){case 4:this.$=t[a].trim(),s.setAccTitle(this.$);break;case 5:case 6:this.$=t[a].trim(),s.setAccDescription(this.$);break;case 7:this.$=[];break;case 17:s.setDirection("TB");break;case 18:s.setDirection("BT");break;case 19:s.setDirection("RL");break;case 20:s.setDirection("LR");break;case 21:s.addRequirement(t[a-3],t[a-4]);break;case 22:s.addRequirement(t[a-5],t[a-6]),s.setClass([t[a-5]],t[a-3]);break;case 23:s.setNewReqId(t[a-2]);break;case 24:s.setNewReqText(t[a-2]);break;case 25:s.setNewReqRisk(t[a-2]);break;case 26:s.setNewReqVerifyMethod(t[a-2]);break;case 29:this.$=s.RequirementType.REQUIREMENT;break;case 30:this.$=s.RequirementType.FUNCTIONAL_REQUIREMENT;break;case 31:this.$=s.RequirementType.INTERFACE_REQUIREMENT;break;case 32:this.$=s.RequirementType.PERFORMANCE_REQUIREMENT;break;case 33:this.$=s.RequirementType.PHYSICAL_REQUIREMENT;break;case 34:this.$=s.RequirementType.DESIGN_CONSTRAINT;break;case 35:this.$=s.RiskLevel.LOW_RISK;break;case 36:this.$=s.RiskLevel.MED_RISK;break;case 37:this.$=s.RiskLevel.HIGH_RISK;break;case 38:this.$=s.VerifyType.VERIFY_ANALYSIS;break;case 39:this.$=s.VerifyType.VERIFY_DEMONSTRATION;break;case 40:this.$=s.VerifyType.VERIFY_INSPECTION;break;case 41:this.$=s.VerifyType.VERIFY_TEST;break;case 42:s.addElement(t[a-3]);break;case 43:s.addElement(t[a-5]),s.setClass([t[a-5]],t[a-3]);break;case 44:s.setNewElementType(t[a-2]);break;case 45:s.setNewElementDocRef(t[a-2]);break;case 48:s.addRelationship(t[a-2],t[a],t[a-4]);break;case 49:s.addRelationship(t[a-2],t[a-4],t[a]);break;case 50:this.$=s.Relationships.CONTAINS;break;case 51:this.$=s.Relationships.COPIES;break;case 52:this.$=s.Relationships.DERIVES;break;case 53:this.$=s.Relationships.SATISFIES;break;case 54:this.$=s.Relationships.VERIFIES;break;case 55:this.$=s.Relationships.REFINES;break;case 56:this.$=s.Relationships.TRACES;break;case 57:this.$=t[a-2],s.defineClass(t[a-1],t[a]);break;case 58:s.setClass(t[a-1],t[a]);break;case 59:s.setClass([t[a-2]],t[a]);break;case 60:case 62:this.$=[t[a]];break;case 61:case 63:this.$=t[a-2].concat([t[a]]);break;case 64:this.$=t[a-2],s.setCssStyle(t[a-1],t[a]);break;case 65:this.$=[t[a]];break;case 66:t[a-2].push(t[a]),this.$=t[a-2];break;case 68:this.$=t[a-1]+t[a];break}},"anonymous"),table:[{3:1,4:2,6:m,9:h,11:c,13:i},{1:[3]},{3:8,4:2,5:[1,7],6:m,9:h,11:c,13:i},{5:[1,9]},{10:[1,10]},{12:[1,11]},e(o,[2,6]),{3:12,4:2,6:m,9:h,11:c,13:i},{1:[2,2]},{4:17,5:k,7:13,8:S,9:h,11:c,13:i,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:d,22:g,23:y,24:q,25:23,33:25,41:C,42:A,43:V,44:v,45:L,46:x,54:w,72:D,74:O,77:M,89:E,90:b},e(o,[2,4]),e(o,[2,5]),{1:[2,1]},{8:[1,41]},{4:17,5:k,7:42,8:S,9:h,11:c,13:i,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:d,22:g,23:y,24:q,25:23,33:25,41:C,42:A,43:V,44:v,45:L,46:x,54:w,72:D,74:O,77:M,89:E,90:b},{4:17,5:k,7:43,8:S,9:h,11:c,13:i,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:d,22:g,23:y,24:q,25:23,33:25,41:C,42:A,43:V,44:v,45:L,46:x,54:w,72:D,74:O,77:M,89:E,90:b},{4:17,5:k,7:44,8:S,9:h,11:c,13:i,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:d,22:g,23:y,24:q,25:23,33:25,41:C,42:A,43:V,44:v,45:L,46:x,54:w,72:D,74:O,77:M,89:E,90:b},{4:17,5:k,7:45,8:S,9:h,11:c,13:i,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:d,22:g,23:y,24:q,25:23,33:25,41:C,42:A,43:V,44:v,45:L,46:x,54:w,72:D,74:O,77:M,89:E,90:b},{4:17,5:k,7:46,8:S,9:h,11:c,13:i,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:d,22:g,23:y,24:q,25:23,33:25,41:C,42:A,43:V,44:v,45:L,46:x,54:w,72:D,74:O,77:M,89:E,90:b},{4:17,5:k,7:47,8:S,9:h,11:c,13:i,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:d,22:g,23:y,24:q,25:23,33:25,41:C,42:A,43:V,44:v,45:L,46:x,54:w,72:D,74:O,77:M,89:E,90:b},{4:17,5:k,7:48,8:S,9:h,11:c,13:i,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:d,22:g,23:y,24:q,25:23,33:25,41:C,42:A,43:V,44:v,45:L,46:x,54:w,72:D,74:O,77:M,89:E,90:b},{4:17,5:k,7:49,8:S,9:h,11:c,13:i,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:d,22:g,23:y,24:q,25:23,33:25,41:C,42:A,43:V,44:v,45:L,46:x,54:w,72:D,74:O,77:M,89:E,90:b},{4:17,5:k,7:50,8:S,9:h,11:c,13:i,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:d,22:g,23:y,24:q,25:23,33:25,41:C,42:A,43:V,44:v,45:L,46:x,54:w,72:D,74:O,77:M,89:E,90:b},{26:51,89:[1,52],90:[1,53]},{55:54,89:[1,55],90:[1,56]},{29:[1,59],61:[1,57],63:[1,58]},e(p,[2,17]),e(p,[2,18]),e(p,[2,19]),e(p,[2,20]),{30:60,33:62,75:P,89:E,90:b},{30:63,33:62,75:P,89:E,90:b},{30:64,33:62,75:P,89:E,90:b},e(X,[2,29]),e(X,[2,30]),e(X,[2,31]),e(X,[2,32]),e(X,[2,33]),e(X,[2,34]),e(Ve,[2,81]),e(Ve,[2,82]),{1:[2,3]},{8:[2,8]},{8:[2,9]},{8:[2,10]},{8:[2,11]},{8:[2,12]},{8:[2,13]},{8:[2,14]},{8:[2,15]},{8:[2,16]},{27:[1,65],29:[1,66]},e(de,[2,79]),e(de,[2,80]),{27:[1,67],29:[1,68]},e(de,[2,85]),e(de,[2,86]),{62:69,65:ve,66:Le,67:xe,68:we,69:De,70:Oe,71:Me},{62:77,65:ve,66:Le,67:xe,68:we,69:De,70:Oe,71:Me},{30:78,33:62,75:P,89:E,90:b},{73:79,75:Z,76:U,78:81,79:82,80:ee,81:te,82:se,83:ie,84:re,85:ne,86:ae,87:le,88:oe},e(pe,[2,60]),e(pe,[2,62]),{73:93,75:Z,76:U,78:81,79:82,80:ee,81:te,82:se,83:ie,84:re,85:ne,86:ae,87:le,88:oe},{30:94,33:62,75:P,76:U,89:E,90:b},{5:[1,95]},{30:96,33:62,75:P,89:E,90:b},{5:[1,97]},{30:98,33:62,75:P,89:E,90:b},{63:[1,99]},e(Y,[2,50]),e(Y,[2,51]),e(Y,[2,52]),e(Y,[2,53]),e(Y,[2,54]),e(Y,[2,55]),e(Y,[2,56]),{64:[1,100]},e(p,[2,59],{76:U}),e(p,[2,64],{76:Fe}),{33:103,75:[1,102],89:E,90:b},e($e,[2,65],{79:104,75:Z,80:ee,81:te,82:se,83:ie,84:re,85:ne,86:ae,87:le,88:oe}),e(T,[2,67]),e(T,[2,69]),e(T,[2,70]),e(T,[2,71]),e(T,[2,72]),e(T,[2,73]),e(T,[2,74]),e(T,[2,75]),e(T,[2,76]),e(T,[2,77]),e(T,[2,78]),e(p,[2,57],{76:Fe}),e(p,[2,58],{76:U}),{5:B,28:105,31:Q,34:H,36:K,38:W,40:j},{27:[1,112],76:U},{5:ce,40:he,56:113,57:ue,59:me},{27:[1,118],76:U},{33:119,89:E,90:b},{33:120,89:E,90:b},{75:Z,78:121,79:82,80:ee,81:te,82:se,83:ie,84:re,85:ne,86:ae,87:le,88:oe},e(pe,[2,61]),e(pe,[2,63]),e(T,[2,68]),e(p,[2,21]),{32:[1,122]},{32:[1,123]},{32:[1,124]},{32:[1,125]},{5:B,28:126,31:Q,34:H,36:K,38:W,40:j},e(p,[2,28]),{5:[1,127]},e(p,[2,42]),{32:[1,128]},{32:[1,129]},{5:ce,40:he,56:130,57:ue,59:me},e(p,[2,47]),{5:[1,131]},e(p,[2,48]),e(p,[2,49]),e($e,[2,66],{79:104,75:Z,80:ee,81:te,82:se,83:ie,84:re,85:ne,86:ae,87:le,88:oe}),{33:132,89:E,90:b},{35:133,89:[1,134],90:[1,135]},{37:136,47:[1,137],48:[1,138],49:[1,139]},{39:140,50:[1,141],51:[1,142],52:[1,143],53:[1,144]},e(p,[2,27]),{5:B,28:145,31:Q,34:H,36:K,38:W,40:j},{58:146,89:[1,147],90:[1,148]},{60:149,89:[1,150],90:[1,151]},e(p,[2,46]),{5:ce,40:he,56:152,57:ue,59:me},{5:[1,153]},{5:[1,154]},{5:[2,83]},{5:[2,84]},{5:[1,155]},{5:[2,35]},{5:[2,36]},{5:[2,37]},{5:[1,156]},{5:[2,38]},{5:[2,39]},{5:[2,40]},{5:[2,41]},e(p,[2,22]),{5:[1,157]},{5:[2,87]},{5:[2,88]},{5:[1,158]},{5:[2,89]},{5:[2,90]},e(p,[2,43]),{5:B,28:159,31:Q,34:H,36:K,38:W,40:j},{5:B,28:160,31:Q,34:H,36:K,38:W,40:j},{5:B,28:161,31:Q,34:H,36:K,38:W,40:j},{5:B,28:162,31:Q,34:H,36:K,38:W,40:j},{5:ce,40:he,56:163,57:ue,59:me},{5:ce,40:he,56:164,57:ue,59:me},e(p,[2,23]),e(p,[2,24]),e(p,[2,25]),e(p,[2,26]),e(p,[2,44]),e(p,[2,45])],defaultActions:{8:[2,2],12:[2,1],41:[2,3],42:[2,8],43:[2,9],44:[2,10],45:[2,11],46:[2,12],47:[2,13],48:[2,14],49:[2,15],50:[2,16],134:[2,83],135:[2,84],137:[2,35],138:[2,36],139:[2,37],141:[2,38],142:[2,39],143:[2,40],144:[2,41],147:[2,87],148:[2,88],150:[2,89],151:[2,90]},parseError:u(function(r,n){if(n.recoverable)this.trace(r);else{var l=new Error(r);throw l.hash=n,l}},"parseError"),parse:u(function(r){var n=this,l=[0],s=[],f=[null],t=[],fe=this.table,a="",be=0,Pe=0,Ue=0,ht=2,Ye=1,ut=t.slice.call(arguments,1),R=Object.create(this.lexer),G={yy:{}};for(var Se in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Se)&&(G.yy[Se]=this.yy[Se]);R.setInput(r,G.yy),G.yy.lexer=R,G.yy.parser=this,typeof R.yylloc>"u"&&(R.yylloc={});var Ie=R.yylloc;t.push(Ie);var mt=R.options&&R.options.ranges;typeof G.yy.parseError=="function"?this.parseError=G.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function ft(I){l.length=l.length-2*I,f.length=f.length-I,t.length=t.length-I}u(ft,"popStack");function Be(){var I;return I=s.pop()||R.lex()||Ye,typeof I!="number"&&(I instanceof Array&&(s=I,I=s.pop()),I=n.symbols_[I]||I),I}u(Be,"lex");for(var _,Te,z,N,gt,Ne,J={},Re,F,Qe,ke;;){if(z=l[l.length-1],this.defaultActions[z]?N=this.defaultActions[z]:((_===null||typeof _>"u")&&(_=Be()),N=fe[z]&&fe[z][_]),typeof N>"u"||!N.length||!N[0]){var qe="";ke=[];for(Re in fe[z])this.terminals_[Re]&&Re>ht&&ke.push("'"+this.terminals_[Re]+"'");R.showPosition?qe="Parse error on line "+(be+1)+`: +`+R.showPosition()+` +Expecting `+ke.join(", ")+", got '"+(this.terminals_[_]||_)+"'":qe="Parse error on line "+(be+1)+": Unexpected "+(_==Ye?"end of input":"'"+(this.terminals_[_]||_)+"'"),this.parseError(qe,{text:R.match,token:this.terminals_[_]||_,line:R.yylineno,loc:Ie,expected:ke})}if(N[0]instanceof Array&&N.length>1)throw new Error("Parse Error: multiple actions possible at state: "+z+", token: "+_);switch(N[0]){case 1:l.push(_),f.push(R.yytext),t.push(R.yylloc),l.push(N[1]),_=null,Te?(_=Te,Te=null):(Pe=R.yyleng,a=R.yytext,be=R.yylineno,Ie=R.yylloc,Ue>0&&Ue--);break;case 2:if(F=this.productions_[N[1]][1],J.$=f[f.length-F],J._$={first_line:t[t.length-(F||1)].first_line,last_line:t[t.length-1].last_line,first_column:t[t.length-(F||1)].first_column,last_column:t[t.length-1].last_column},mt&&(J._$.range=[t[t.length-(F||1)].range[0],t[t.length-1].range[1]]),Ne=this.performAction.apply(J,[a,Pe,be,G.yy,N[1],f,t].concat(ut)),typeof Ne<"u")return Ne;F&&(l=l.slice(0,-1*F*2),f=f.slice(0,-1*F),t=t.slice(0,-1*F)),l.push(this.productions_[N[1]][0]),f.push(J.$),t.push(J._$),Qe=fe[l[l.length-2]][l[l.length-1]],l.push(Qe);break;case 3:return!0}}return!0},"parse")},ct=(function(){var $={EOF:1,parseError:u(function(n,l){if(this.yy.parser)this.yy.parser.parseError(n,l);else throw new Error(n)},"parseError"),setInput:u(function(r,n){return this.yy=n||this.yy||{},this._input=r,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:u(function(){var r=this._input[0];this.yytext+=r,this.yyleng++,this.offset++,this.match+=r,this.matched+=r;var n=r.match(/(?:\r\n?|\n).*/g);return n?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),r},"input"),unput:u(function(r){var n=r.length,l=r.split(/(?:\r\n?|\n)/g);this._input=r+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-n),this.offset-=n;var s=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),l.length-1&&(this.yylineno-=l.length-1);var f=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:l?(l.length===s.length?this.yylloc.first_column:0)+s[s.length-l.length].length-l[0].length:this.yylloc.first_column-n},this.options.ranges&&(this.yylloc.range=[f[0],f[0]+this.yyleng-n]),this.yyleng=this.yytext.length,this},"unput"),more:u(function(){return this._more=!0,this},"more"),reject:u(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). +`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:u(function(r){this.unput(this.match.slice(r))},"less"),pastInput:u(function(){var r=this.matched.substr(0,this.matched.length-this.match.length);return(r.length>20?"...":"")+r.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:u(function(){var r=this.match;return r.length<20&&(r+=this._input.substr(0,20-r.length)),(r.substr(0,20)+(r.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:u(function(){var r=this.pastInput(),n=new Array(r.length+1).join("-");return r+this.upcomingInput()+` +`+n+"^"},"showPosition"),test_match:u(function(r,n){var l,s,f;if(this.options.backtrack_lexer&&(f={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&&(f.yylloc.range=this.yylloc.range.slice(0))),s=r[0].match(/(?:\r\n?|\n).*/g),s&&(this.yylineno+=s.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:s?s[s.length-1].length-s[s.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+r[0].length},this.yytext+=r[0],this.match+=r[0],this.matches=r,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(r[0].length),this.matched+=r[0],l=this.performAction.call(this,this.yy,this,n,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),l)return l;if(this._backtrack){for(var t in f)this[t]=f[t];return!1}return!1},"test_match"),next:u(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var r,n,l,s;this._more||(this.yytext="",this.match="");for(var f=this._currentRules(),t=0;tn[0].length)){if(n=l,s=t,this.options.backtrack_lexer){if(r=this.test_match(l,f[t]),r!==!1)return r;if(this._backtrack){n=!1;continue}else return!1}else if(!this.options.flex)break}return n?(r=this.test_match(n,f[s]),r!==!1?r:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text. +`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:u(function(){var n=this.next();return n||this.lex()},"lex"),begin:u(function(n){this.conditionStack.push(n)},"begin"),popState:u(function(){var n=this.conditionStack.length-1;return n>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:u(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:u(function(n){return n=this.conditionStack.length-1-Math.abs(n||0),n>=0?this.conditionStack[n]:"INITIAL"},"topState"),pushState:u(function(n){this.begin(n)},"pushState"),stateStackSize:u(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:u(function(n,l,s,f){var t=f;switch(s){case 0:return"title";case 1:return this.begin("acc_title"),9;break;case 2:return this.popState(),"acc_title_value";break;case 3:return this.begin("acc_descr"),11;break;case 4:return this.popState(),"acc_descr_value";break;case 5:this.begin("acc_descr_multiline");break;case 6:this.popState();break;case 7:return"acc_descr_multiline_value";case 8:return 21;case 9:return 22;case 10:return 23;case 11:return 24;case 12:return 5;case 13:break;case 14:break;case 15:break;case 16:return 8;case 17:return 6;case 18:return 27;case 19:return 40;case 20:return 29;case 21:return 32;case 22:return 31;case 23:return 34;case 24:return 36;case 25:return 38;case 26:return 41;case 27:return 42;case 28:return 43;case 29:return 44;case 30:return 45;case 31:return 46;case 32:return 47;case 33:return 48;case 34:return 49;case 35:return 50;case 36:return 51;case 37:return 52;case 38:return 53;case 39:return 54;case 40:return 65;case 41:return 66;case 42:return 67;case 43:return 68;case 44:return 69;case 45:return 70;case 46:return 71;case 47:return 57;case 48:return 59;case 49:return this.begin("style"),77;break;case 50:return 75;case 51:return 81;case 52:return 88;case 53:return"PERCENT";case 54:return 86;case 55:return 84;case 56:break;case 57:this.begin("string");break;case 58:this.popState();break;case 59:return this.begin("style"),72;break;case 60:return this.begin("style"),74;break;case 61:return 61;case 62:return 64;case 63:return 63;case 64:this.begin("string");break;case 65:this.popState();break;case 66:return"qString";case 67:return l.yytext=l.yytext.trim(),89;break;case 68:return 75;case 69:return 80;case 70:return 76}},"anonymous"),rules:[/^(?:title\s[^#\n;]+)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:.*direction\s+TB[^\n]*)/i,/^(?:.*direction\s+BT[^\n]*)/i,/^(?:.*direction\s+RL[^\n]*)/i,/^(?:.*direction\s+LR[^\n]*)/i,/^(?:(\r?\n)+)/i,/^(?:\s+)/i,/^(?:#[^\n]*)/i,/^(?:%[^\n]*)/i,/^(?:$)/i,/^(?:requirementDiagram\b)/i,/^(?:\{)/i,/^(?:\})/i,/^(?::{3})/i,/^(?::)/i,/^(?:id\b)/i,/^(?:text\b)/i,/^(?:risk\b)/i,/^(?:verifyMethod\b)/i,/^(?:requirement\b)/i,/^(?:functionalRequirement\b)/i,/^(?:interfaceRequirement\b)/i,/^(?:performanceRequirement\b)/i,/^(?:physicalRequirement\b)/i,/^(?:designConstraint\b)/i,/^(?:low\b)/i,/^(?:medium\b)/i,/^(?:high\b)/i,/^(?:analysis\b)/i,/^(?:demonstration\b)/i,/^(?:inspection\b)/i,/^(?:test\b)/i,/^(?:element\b)/i,/^(?:contains\b)/i,/^(?:copies\b)/i,/^(?:derives\b)/i,/^(?:satisfies\b)/i,/^(?:verifies\b)/i,/^(?:refines\b)/i,/^(?:traces\b)/i,/^(?:type\b)/i,/^(?:docref\b)/i,/^(?:style\b)/i,/^(?:\w+)/i,/^(?::)/i,/^(?:;)/i,/^(?:%)/i,/^(?:-)/i,/^(?:#)/i,/^(?: )/i,/^(?:["])/i,/^(?:\n)/i,/^(?:classDef\b)/i,/^(?:class\b)/i,/^(?:<-)/i,/^(?:->)/i,/^(?:-)/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:[\w][^:,\r\n\{\<\>\-\=]*)/i,/^(?:\w+)/i,/^(?:[0-9]+)/i,/^(?:,)/i],conditions:{acc_descr_multiline:{rules:[6,7,68,69,70],inclusive:!1},acc_descr:{rules:[4,68,69,70],inclusive:!1},acc_title:{rules:[2,68,69,70],inclusive:!1},style:{rules:[50,51,52,53,54,55,56,57,58,68,69,70],inclusive:!1},unqString:{rules:[68,69,70],inclusive:!1},token:{rules:[68,69,70],inclusive:!1},string:{rules:[65,66,68,69,70],inclusive:!1},INITIAL:{rules:[0,1,3,5,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,59,60,61,62,63,64,67,68,69,70],inclusive:!0}}};return $})();_e.lexer=ct;function Ee(){this.yy={}}return u(Ee,"Parser"),Ee.prototype=_e,_e.Parser=Ee,new Ee})();Ae.parser=Ae;var dt=Ae,pt=class{constructor(){this.relations=[],this.latestRequirement=this.getInitialRequirement(),this.requirements=new Map,this.latestElement=this.getInitialElement(),this.elements=new Map,this.classes=new Map,this.direction="TB",this.RequirementType={REQUIREMENT:"Requirement",FUNCTIONAL_REQUIREMENT:"Functional Requirement",INTERFACE_REQUIREMENT:"Interface Requirement",PERFORMANCE_REQUIREMENT:"Performance Requirement",PHYSICAL_REQUIREMENT:"Physical Requirement",DESIGN_CONSTRAINT:"Design Constraint"},this.RiskLevel={LOW_RISK:"Low",MED_RISK:"Medium",HIGH_RISK:"High"},this.VerifyType={VERIFY_ANALYSIS:"Analysis",VERIFY_DEMONSTRATION:"Demonstration",VERIFY_INSPECTION:"Inspection",VERIFY_TEST:"Test"},this.Relationships={CONTAINS:"contains",COPIES:"copies",DERIVES:"derives",SATISFIES:"satisfies",VERIFIES:"verifies",REFINES:"refines",TRACES:"traces"},this.setAccTitle=We,this.getAccTitle=je,this.setAccDescription=Ge,this.getAccDescription=ze,this.setDiagramTitle=Xe,this.getDiagramTitle=Je,this.getConfig=u(()=>ye().requirement,"getConfig"),this.clear(),this.setDirection=this.setDirection.bind(this),this.addRequirement=this.addRequirement.bind(this),this.setNewReqId=this.setNewReqId.bind(this),this.setNewReqRisk=this.setNewReqRisk.bind(this),this.setNewReqText=this.setNewReqText.bind(this),this.setNewReqVerifyMethod=this.setNewReqVerifyMethod.bind(this),this.addElement=this.addElement.bind(this),this.setNewElementType=this.setNewElementType.bind(this),this.setNewElementDocRef=this.setNewElementDocRef.bind(this),this.addRelationship=this.addRelationship.bind(this),this.setCssStyle=this.setCssStyle.bind(this),this.setClass=this.setClass.bind(this),this.defineClass=this.defineClass.bind(this),this.setAccTitle=this.setAccTitle.bind(this),this.setAccDescription=this.setAccDescription.bind(this)}static{u(this,"RequirementDB")}getDirection(){return this.direction}setDirection(e){this.direction=e}resetLatestRequirement(){this.latestRequirement=this.getInitialRequirement()}resetLatestElement(){this.latestElement=this.getInitialElement()}getInitialRequirement(){return{requirementId:"",text:"",risk:"",verifyMethod:"",name:"",type:"",cssStyles:[],classes:["default"]}}getInitialElement(){return{name:"",type:"",docRef:"",cssStyles:[],classes:["default"]}}addRequirement(e,m){return this.requirements.has(e)||this.requirements.set(e,{name:e,type:m,requirementId:this.latestRequirement.requirementId,text:this.latestRequirement.text,risk:this.latestRequirement.risk,verifyMethod:this.latestRequirement.verifyMethod,cssStyles:[],classes:["default"]}),this.resetLatestRequirement(),this.requirements.get(e)}getRequirements(){return this.requirements}setNewReqId(e){this.latestRequirement!==void 0&&(this.latestRequirement.requirementId=e)}setNewReqText(e){this.latestRequirement!==void 0&&(this.latestRequirement.text=e)}setNewReqRisk(e){this.latestRequirement!==void 0&&(this.latestRequirement.risk=e)}setNewReqVerifyMethod(e){this.latestRequirement!==void 0&&(this.latestRequirement.verifyMethod=e)}addElement(e){return this.elements.has(e)||(this.elements.set(e,{name:e,type:this.latestElement.type,docRef:this.latestElement.docRef,cssStyles:[],classes:["default"]}),ge.info("Added new element: ",e)),this.resetLatestElement(),this.elements.get(e)}getElements(){return this.elements}setNewElementType(e){this.latestElement!==void 0&&(this.latestElement.type=e)}setNewElementDocRef(e){this.latestElement!==void 0&&(this.latestElement.docRef=e)}addRelationship(e,m,h){this.relations.push({type:e,src:m,dst:h})}getRelationships(){return this.relations}clear(){this.relations=[],this.resetLatestRequirement(),this.requirements=new Map,this.resetLatestElement(),this.elements=new Map,this.classes=new Map,Ke()}setCssStyle(e,m){for(let h of e){let c=this.requirements.get(h)??this.elements.get(h);if(!m||!c)return;for(let i of m)i.includes(",")?c.cssStyles.push(...i.split(",")):c.cssStyles.push(i)}}setClass(e,m){for(let h of e){let c=this.requirements.get(h)??this.elements.get(h);if(c)for(let i of m){c.classes.push(i);let o=this.classes.get(i)?.styles;o&&c.cssStyles.push(...o)}}}defineClass(e,m){for(let h of e){let c=this.classes.get(h);c===void 0&&(c={id:h,styles:[],textStyles:[]},this.classes.set(h,c)),m&&m.forEach(function(i){if(/color/.exec(i)){let o=i.replace("fill","bgFill");c.textStyles.push(o)}c.styles.push(i)}),this.requirements.forEach(i=>{i.classes.includes(h)&&i.cssStyles.push(...m.flatMap(o=>o.split(",")))}),this.elements.forEach(i=>{i.classes.includes(h)&&i.cssStyles.push(...m.flatMap(o=>o.split(",")))})}}getClasses(){return this.classes}getData(){let e=ye(),m=[],h=[];for(let i of this.requirements.values()){let o=i;o.id=i.name,o.cssStyles=i.cssStyles,o.cssClasses=i.classes.join(" "),o.shape="requirementBox",o.look=e.look,o.colorIndex=m.length,m.push(o)}for(let i of this.elements.values()){let o=i;o.shape="requirementBox",o.look=e.look,o.id=i.name,o.cssStyles=i.cssStyles,o.cssClasses=i.classes.join(" "),o.colorIndex=m.length,m.push(o)}let c=0;for(let i of this.relations){let o=i.type===this.Relationships.CONTAINS,k={id:`${i.src}-${i.dst}-${c++}`,start:this.requirements.get(i.src)?.name??this.elements.get(i.src)?.name,end:this.requirements.get(i.dst)?.name??this.elements.get(i.dst)?.name,label:`<<${i.type}>>`,classes:"relationshipLine",style:["fill:none",o?"":"stroke-dasharray: 10,7"],labelpos:"c",thickness:"normal",type:"normal",pattern:o?"normal":"dashed",arrowTypeStart:o?"requirement_contains":"",arrowTypeEnd:o?"":"requirement_arrow",look:e.look,labelType:"markdown"};h.push(k)}return{nodes:m,edges:h,other:{},config:e,direction:this.getDirection()}}},Et=u(()=>{let e=Ce(),{theme:m,themeVariables:h}=e,{bkgColorArray:c,borderColorArray:i}=h;if(!tt(m,i))return"";let o=st(e.look),k="",S=et(c);for(let d=0;d{let m=Ce(),{look:h,themeVariables:c}=m,{requirementEdgeLabelBackground:i}=c;return` + ${Et()} + marker { + fill: ${e.relationColor}; + stroke: ${e.relationColor}; + } + + marker.cross { + stroke: ${e.lineColor}; + } + + svg { + font-family: ${e.fontFamily}; + font-size: ${e.fontSize}; + } + + .reqBox { + fill: ${e.requirementBackground}; + fill-opacity: 1.0; + stroke: ${e.requirementBorderColor}; + stroke-width: ${e.requirementBorderSize}; + } + + .reqTitle, .reqLabel{ + fill: ${e.requirementTextColor}; + } + .reqLabelBox { + fill: ${e.relationLabelBackground}; + fill-opacity: 1.0; + } + + .req-title-line { + stroke: ${e.requirementBorderColor}; + stroke-width: ${e.requirementBorderSize}; + } + .relationshipLine { + stroke: ${e.relationColor}; + stroke-width: ${h==="neo"?e.strokeWidth:"1px"}; + } + .relationshipLabel { + fill: ${e.relationLabelColor}; + } + .edgeLabel { + background-color: ${e.edgeLabelBackground}; + } + .edgeLabel .label rect { + fill: ${e.edgeLabelBackground}; + } + .edgeLabel .label text { + fill: ${e.relationLabelColor}; + } + .divider { + stroke: ${e.nodeBorder}; + stroke-width: 1; + } + .label { + font-family: ${e.fontFamily}; + color: ${e.nodeTextColor||e.textColor}; + } + .label text,span { + fill: ${e.nodeTextColor||e.textColor}; + color: ${e.nodeTextColor||e.textColor}; + } + .labelBkg { + background-color: ${i??e.edgeLabelBackground}; + } + +`},"getStyles"),Rt=bt,ot={};He(ot,{draw:()=>kt});var kt=u(async function(e,m,h,c){ge.info("REF0:"),ge.info("Drawing requirement diagram (unified)",m);let{securityLevel:i,state:o,layout:k,look:S}=ye(),d=c.db.getData(),g=at(m,i);d.type=c.type,d.layoutAlgorithm=nt(k),d.nodeSpacing=o?.nodeSpacing??50,d.rankSpacing=o?.rankSpacing??50,d.markers=S==="neo"?["requirement_contains_neo","requirement_arrow_neo"]:["requirement_contains","requirement_arrow"],d.diagramId=m,await rt(d,g);let y=8;Ze.insertTitle(g,"requirementDiagramTitleText",o?.titleTopMargin??25,c.db.getDiagramTitle()),lt(g,y,"requirementDiagram",o?.useMaxWidth??!0)},"draw"),Mt={parser:dt,get db(){return new pt},renderer:ot,styles:Rt};export{Mt as diagram}; diff --git a/src/frontend/web/von_interface/static/vendor/conversation-visuals/sankeyDiagram-IPEJSGJF-FQ7JVLHN.js b/src/frontend/web/von_interface/static/vendor/conversation-visuals/sankeyDiagram-IPEJSGJF-FQ7JVLHN.js new file mode 100644 index 000000000..16bae592f --- /dev/null +++ b/src/frontend/web/von_interface/static/vendor/conversation-visuals/sankeyDiagram-IPEJSGJF-FQ7JVLHN.js @@ -0,0 +1,40 @@ +import{$ as Q,O as xt,Q as kt,U as _t,V as vt,W as bt,X as St,Y as Lt,Z as wt,_ as Et,ba as At}from"./chunk-S4JILX6U.js";import{E as Tt,h as G,m as Ct}from"./chunk-XEQL7KGA.js";import{a as d}from"./chunk-YUSHYV7C.js";import"./chunk-3RNHDNP5.js";function X(t,r){let s;if(r===void 0)for(let u of t)u!=null&&(s=u)&&(s=u);else{let u=-1;for(let f of t)(f=r(f,++u,t))!=null&&(s=f)&&(s=f)}return s}function U(t,r){let s;if(r===void 0)for(let u of t)u!=null&&(s>u||s===void 0&&u>=u)&&(s=u);else{let u=-1;for(let f of t)(f=r(f,++u,t))!=null&&(s>f||s===void 0&&f>=f)&&(s=f)}return s}function H(t,r){let s=0;if(r===void 0)for(let u of t)(u=+u)&&(s+=u);else{let u=-1;for(let f of t)(f=+r(f,++u,t))&&(s+=f)}return s}function Bt(t){return t.target.depth}function st(t){return t.depth}function it(t,r){return r-1-t.height}function J(t,r){return t.sourceLinks.length?t.depth:r-1}function at(t){return t.targetLinks.length?t.depth:t.sourceLinks.length?U(t.sourceLinks,Bt)-1:0}function Y(t){return function(){return t}}function Mt(t,r){return K(t.source,r.source)||t.index-r.index}function Ot(t,r){return K(t.target,r.target)||t.index-r.index}function K(t,r){return t.y0-r.y0}function lt(t){return t.value}function $t(t){return t.index}function Vt(t){return t.nodes}function Ft(t){return t.links}function Nt(t,r){let s=t.get(r);if(!s)throw new Error("missing: "+r);return s}function It({nodes:t}){for(let r of t){let s=r.y0,u=s;for(let f of r.sourceLinks)f.y0=s+f.width/2,s+=f.width;for(let f of r.targetLinks)f.y1=u+f.width/2,u+=f.width}}function Z(){let t=0,r=0,s=1,u=1,f=24,_=8,y,g=$t,i=J,a,c,x=Vt,k=Ft,p=6;function v(){let e={nodes:x.apply(null,arguments),links:k.apply(null,arguments)};return A(e),E(e),T(e),M(e),R(e),It(e),e}v.update=function(e){return It(e),e},v.nodeId=function(e){return arguments.length?(g=typeof e=="function"?e:Y(e),v):g},v.nodeAlign=function(e){return arguments.length?(i=typeof e=="function"?e:Y(e),v):i},v.nodeSort=function(e){return arguments.length?(a=e,v):a},v.nodeWidth=function(e){return arguments.length?(f=+e,v):f},v.nodePadding=function(e){return arguments.length?(_=y=+e,v):_},v.nodes=function(e){return arguments.length?(x=typeof e=="function"?e:Y(e),v):x},v.links=function(e){return arguments.length?(k=typeof e=="function"?e:Y(e),v):k},v.linkSort=function(e){return arguments.length?(c=e,v):c},v.size=function(e){return arguments.length?(t=r=0,s=+e[0],u=+e[1],v):[s-t,u-r]},v.extent=function(e){return arguments.length?(t=+e[0][0],s=+e[1][0],r=+e[0][1],u=+e[1][1],v):[[t,r],[s,u]]},v.iterations=function(e){return arguments.length?(p=+e,v):p};function A({nodes:e,links:l}){for(let[n,o]of e.entries())o.index=n,o.sourceLinks=[],o.targetLinks=[];let h=new Map(e.map((n,o)=>[g(n,o,e),n]));for(let[n,o]of l.entries()){o.index=n;let{source:m,target:b}=o;typeof m!="object"&&(m=o.source=Nt(h,m)),typeof b!="object"&&(b=o.target=Nt(h,b)),m.sourceLinks.push(o),b.targetLinks.push(o)}if(c!=null)for(let{sourceLinks:n,targetLinks:o}of e)n.sort(c),o.sort(c)}function E({nodes:e}){for(let l of e)l.value=l.fixedValue===void 0?Math.max(H(l.sourceLinks,lt),H(l.targetLinks,lt)):l.fixedValue}function T({nodes:e}){let l=e.length,h=new Set(e),n=new Set,o=0;for(;h.size;){for(let m of h){m.depth=o;for(let{target:b}of m.sourceLinks)n.add(b)}if(++o>l)throw new Error("circular link");h=n,n=new Set}}function M({nodes:e}){let l=e.length,h=new Set(e),n=new Set,o=0;for(;h.size;){for(let m of h){m.height=o;for(let{source:b}of m.targetLinks)n.add(b)}if(++o>l)throw new Error("circular link");h=n,n=new Set}}function O({nodes:e}){let l=X(e,o=>o.depth)+1,h=(s-t-f)/(l-1),n=new Array(l);for(let o of e){let m=Math.max(0,Math.min(l-1,Math.floor(i.call(null,o,l))));o.layer=m,o.x0=t+m*h,o.x1=o.x0+f,n[m]?n[m].push(o):n[m]=[o]}if(a)for(let o of n)o.sort(a);return n}function P(e){let l=U(e,h=>(u-r-(h.length-1)*y)/H(h,lt));for(let h of e){let n=r;for(let o of h){o.y0=n,o.y1=n+o.value*l,n=o.y1+y;for(let m of o.sourceLinks)m.width=m.value*l}n=(u-n+y)/(h.length+1);for(let o=0;oh.length)-1)),P(l);for(let h=0;h0))continue;let D=($/C-b.y0)*l;b.y0+=D,b.y1+=D,W(b)}a===void 0&&m.sort(K),j(m,h)}}function N(e,l,h){for(let n=e.length,o=n-2;o>=0;--o){let m=e[o];for(let b of m){let $=0,C=0;for(let{target:w,value:ot}of b.sourceLinks){let q=ot*(w.layer-b.layer);$+=z(b,w)*q,C+=q}if(!(C>0))continue;let D=($/C-b.y0)*l;b.y0+=D,b.y1+=D,W(b)}a===void 0&&m.sort(K),j(m,h)}}function j(e,l){let h=e.length>>1,n=e[h];I(e,n.y0-y,h-1,l),B(e,n.y1+y,h+1,l),I(e,u,e.length-1,l),B(e,r,0,l)}function B(e,l,h,n){for(;h1e-6&&(o.y0+=m,o.y1+=m),l=o.y1+y}}function I(e,l,h,n){for(;h>=0;--h){let o=e[h],m=(o.y1-l)*n;m>1e-6&&(o.y0-=m,o.y1-=m),l=o.y0-y}}function W({sourceLinks:e,targetLinks:l}){if(c===void 0){for(let{source:{sourceLinks:h}}of l)h.sort(Ot);for(let{target:{targetLinks:h}}of e)h.sort(Mt)}}function V(e){if(c===void 0)for(let{sourceLinks:l,targetLinks:h}of e)l.sort(Ot),h.sort(Mt)}function L(e,l){let h=e.y0-(e.sourceLinks.length-1)*y/2;for(let{target:n,width:o}of e.sourceLinks){if(n===l)break;h+=o+y}for(let{source:n,width:o}of l.targetLinks){if(n===e)break;h-=o}return h}function z(e,l){let h=l.y0-(l.targetLinks.length-1)*y/2;for(let{source:n,width:o}of l.targetLinks){if(n===e)break;h+=o+y}for(let{target:n,width:o}of e.sourceLinks){if(n===l)break;h-=o}return h}return v}var ut=Math.PI,ft=2*ut,F=1e-6,Wt=ft-F;function ct(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function Pt(){return new ct}ct.prototype=Pt.prototype={constructor:ct,moveTo:function(t,r){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+r)},closePath:function(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(t,r){this._+="L"+(this._x1=+t)+","+(this._y1=+r)},quadraticCurveTo:function(t,r,s,u){this._+="Q"+ +t+","+ +r+","+(this._x1=+s)+","+(this._y1=+u)},bezierCurveTo:function(t,r,s,u,f,_){this._+="C"+ +t+","+ +r+","+ +s+","+ +u+","+(this._x1=+f)+","+(this._y1=+_)},arcTo:function(t,r,s,u,f){t=+t,r=+r,s=+s,u=+u,f=+f;var _=this._x1,y=this._y1,g=s-t,i=u-r,a=_-t,c=y-r,x=a*a+c*c;if(f<0)throw new Error("negative radius: "+f);if(this._x1===null)this._+="M"+(this._x1=t)+","+(this._y1=r);else if(x>F)if(!(Math.abs(c*g-i*a)>F)||!f)this._+="L"+(this._x1=t)+","+(this._y1=r);else{var k=s-_,p=u-y,v=g*g+i*i,A=k*k+p*p,E=Math.sqrt(v),T=Math.sqrt(x),M=f*Math.tan((ut-Math.acos((v+x-A)/(2*E*T)))/2),O=M/T,P=M/E;Math.abs(O-1)>F&&(this._+="L"+(t+O*a)+","+(r+O*c)),this._+="A"+f+","+f+",0,0,"+ +(c*k>a*p)+","+(this._x1=t+P*g)+","+(this._y1=r+P*i)}},arc:function(t,r,s,u,f,_){t=+t,r=+r,s=+s,_=!!_;var y=s*Math.cos(u),g=s*Math.sin(u),i=t+y,a=r+g,c=1^_,x=_?u-f:f-u;if(s<0)throw new Error("negative radius: "+s);this._x1===null?this._+="M"+i+","+a:(Math.abs(this._x1-i)>F||Math.abs(this._y1-a)>F)&&(this._+="L"+i+","+a),s&&(x<0&&(x=x%ft+ft),x>Wt?this._+="A"+s+","+s+",0,1,"+c+","+(t-y)+","+(r-g)+"A"+s+","+s+",0,1,"+c+","+(this._x1=i)+","+(this._y1=a):x>F&&(this._+="A"+s+","+s+",0,"+ +(x>=ut)+","+c+","+(this._x1=t+s*Math.cos(f))+","+(this._y1=r+s*Math.sin(f))))},rect:function(t,r,s,u){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+r)+"h"+ +s+"v"+ +u+"h"+-s+"Z"},toString:function(){return this._}};var ht=Pt;function dt(t){return function(){return t}}function Rt(t){return t[0]}function zt(t){return t[1]}var Dt=Array.prototype.slice;function Ut(t){return t.source}function Ht(t){return t.target}function Yt(t){var r=Ut,s=Ht,u=Rt,f=zt,_=null;function y(){var g,i=Dt.call(arguments),a=r.apply(this,i),c=s.apply(this,i);if(_||(_=g=ht()),t(_,+u.apply(this,(i[0]=a,i)),+f.apply(this,i),+u.apply(this,(i[0]=c,i)),+f.apply(this,i)),g)return _=null,g+""||null}return y.source=function(g){return arguments.length?(r=g,y):r},y.target=function(g){return arguments.length?(s=g,y):s},y.x=function(g){return arguments.length?(u=typeof g=="function"?g:dt(+g),y):u},y.y=function(g){return arguments.length?(f=typeof g=="function"?g:dt(+g),y):f},y.context=function(g){return arguments.length?(_=g??null,y):_},y}function qt(t,r,s,u,f){t.moveTo(r,s),t.bezierCurveTo(r=(r+u)/2,s,r,f,u,f)}function pt(){return Yt(qt)}function Gt(t){return[t.source.x1,t.y0]}function Xt(t){return[t.target.x0,t.y1]}function yt(){return pt().source(Gt).target(Xt)}var mt=(function(){var t=d(function(g,i,a,c){for(a=a||{},c=g.length;c--;a[g[c]]=i);return a},"o"),r=[1,9],s=[1,10],u=[1,5,10,12],f={trace:d(function(){},"trace"),yy:{},symbols_:{error:2,start:3,SANKEY:4,NEWLINE:5,csv:6,opt_eof:7,record:8,csv_tail:9,EOF:10,"field[source]":11,COMMA:12,"field[target]":13,"field[value]":14,field:15,escaped:16,non_escaped:17,DQUOTE:18,ESCAPED_TEXT:19,NON_ESCAPED_TEXT:20,$accept:0,$end:1},terminals_:{2:"error",4:"SANKEY",5:"NEWLINE",10:"EOF",11:"field[source]",12:"COMMA",13:"field[target]",14:"field[value]",18:"DQUOTE",19:"ESCAPED_TEXT",20:"NON_ESCAPED_TEXT"},productions_:[0,[3,4],[6,2],[9,2],[9,0],[7,1],[7,0],[8,5],[15,1],[15,1],[16,3],[17,1]],performAction:d(function(i,a,c,x,k,p,v){var A=p.length-1;switch(k){case 7:let E=x.findOrCreateNode(p[A-4].trim().replaceAll('""','"')),T=x.findOrCreateNode(p[A-2].trim().replaceAll('""','"')),M=parseFloat(p[A].trim());x.addLink(E,T,M);break;case 8:case 9:case 11:this.$=p[A];break;case 10:this.$=p[A-1];break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},{5:[1,3]},{6:4,8:5,15:6,16:7,17:8,18:r,20:s},{1:[2,6],7:11,10:[1,12]},t(s,[2,4],{9:13,5:[1,14]}),{12:[1,15]},t(u,[2,8]),t(u,[2,9]),{19:[1,16]},t(u,[2,11]),{1:[2,1]},{1:[2,5]},t(s,[2,2]),{6:17,8:5,15:6,16:7,17:8,18:r,20:s},{15:18,16:7,17:8,18:r,20:s},{18:[1,19]},t(s,[2,3]),{12:[1,20]},t(u,[2,10]),{15:21,16:7,17:8,18:r,20:s},t([1,5,10],[2,7])],defaultActions:{11:[2,1],12:[2,5]},parseError:d(function(i,a){if(a.recoverable)this.trace(i);else{var c=new Error(i);throw c.hash=a,c}},"parseError"),parse:d(function(i){var a=this,c=[0],x=[],k=[null],p=[],v=this.table,A="",E=0,T=0,M=0,O=2,P=1,R=p.slice.call(arguments,1),S=Object.create(this.lexer),N={yy:{}};for(var j in this.yy)Object.prototype.hasOwnProperty.call(this.yy,j)&&(N.yy[j]=this.yy[j]);S.setInput(i,N.yy),N.yy.lexer=S,N.yy.parser=this,typeof S.yylloc>"u"&&(S.yylloc={});var B=S.yylloc;p.push(B);var I=S.options&&S.options.ranges;typeof N.yy.parseError=="function"?this.parseError=N.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function W(w){c.length=c.length-2*w,k.length=k.length-w,p.length=p.length-w}d(W,"popStack");function V(){var w;return w=x.pop()||S.lex()||P,typeof w!="number"&&(w instanceof Array&&(x=w,w=x.pop()),w=a.symbols_[w]||w),w}d(V,"lex");for(var L,z,e,l,h,n,o={},m,b,$,C;;){if(e=c[c.length-1],this.defaultActions[e]?l=this.defaultActions[e]:((L===null||typeof L>"u")&&(L=V()),l=v[e]&&v[e][L]),typeof l>"u"||!l.length||!l[0]){var D="";C=[];for(m in v[e])this.terminals_[m]&&m>O&&C.push("'"+this.terminals_[m]+"'");S.showPosition?D="Parse error on line "+(E+1)+`: +`+S.showPosition()+` +Expecting `+C.join(", ")+", got '"+(this.terminals_[L]||L)+"'":D="Parse error on line "+(E+1)+": Unexpected "+(L==P?"end of input":"'"+(this.terminals_[L]||L)+"'"),this.parseError(D,{text:S.match,token:this.terminals_[L]||L,line:S.yylineno,loc:B,expected:C})}if(l[0]instanceof Array&&l.length>1)throw new Error("Parse Error: multiple actions possible at state: "+e+", token: "+L);switch(l[0]){case 1:c.push(L),k.push(S.yytext),p.push(S.yylloc),c.push(l[1]),L=null,z?(L=z,z=null):(T=S.yyleng,A=S.yytext,E=S.yylineno,B=S.yylloc,M>0&&M--);break;case 2:if(b=this.productions_[l[1]][1],o.$=k[k.length-b],o._$={first_line:p[p.length-(b||1)].first_line,last_line:p[p.length-1].last_line,first_column:p[p.length-(b||1)].first_column,last_column:p[p.length-1].last_column},I&&(o._$.range=[p[p.length-(b||1)].range[0],p[p.length-1].range[1]]),n=this.performAction.apply(o,[A,T,E,N.yy,l[1],k,p].concat(R)),typeof n<"u")return n;b&&(c=c.slice(0,-1*b*2),k=k.slice(0,-1*b),p=p.slice(0,-1*b)),c.push(this.productions_[l[1]][0]),k.push(o.$),p.push(o._$),$=v[c[c.length-2]][c[c.length-1]],c.push($);break;case 3:return!0}}return!0},"parse")},_=(function(){var g={EOF:1,parseError:d(function(a,c){if(this.yy.parser)this.yy.parser.parseError(a,c);else throw new Error(a)},"parseError"),setInput:d(function(i,a){return this.yy=a||this.yy||{},this._input=i,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:d(function(){var i=this._input[0];this.yytext+=i,this.yyleng++,this.offset++,this.match+=i,this.matched+=i;var a=i.match(/(?:\r\n?|\n).*/g);return a?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),i},"input"),unput:d(function(i){var a=i.length,c=i.split(/(?:\r\n?|\n)/g);this._input=i+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-a),this.offset-=a;var x=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),c.length-1&&(this.yylineno-=c.length-1);var k=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:c?(c.length===x.length?this.yylloc.first_column:0)+x[x.length-c.length].length-c[0].length:this.yylloc.first_column-a},this.options.ranges&&(this.yylloc.range=[k[0],k[0]+this.yyleng-a]),this.yyleng=this.yytext.length,this},"unput"),more:d(function(){return this._more=!0,this},"more"),reject:d(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). +`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:d(function(i){this.unput(this.match.slice(i))},"less"),pastInput:d(function(){var i=this.matched.substr(0,this.matched.length-this.match.length);return(i.length>20?"...":"")+i.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:d(function(){var i=this.match;return i.length<20&&(i+=this._input.substr(0,20-i.length)),(i.substr(0,20)+(i.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:d(function(){var i=this.pastInput(),a=new Array(i.length+1).join("-");return i+this.upcomingInput()+` +`+a+"^"},"showPosition"),test_match:d(function(i,a){var c,x,k;if(this.options.backtrack_lexer&&(k={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&&(k.yylloc.range=this.yylloc.range.slice(0))),x=i[0].match(/(?:\r\n?|\n).*/g),x&&(this.yylineno+=x.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:x?x[x.length-1].length-x[x.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+i[0].length},this.yytext+=i[0],this.match+=i[0],this.matches=i,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(i[0].length),this.matched+=i[0],c=this.performAction.call(this,this.yy,this,a,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),c)return c;if(this._backtrack){for(var p in k)this[p]=k[p];return!1}return!1},"test_match"),next:d(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var i,a,c,x;this._more||(this.yytext="",this.match="");for(var k=this._currentRules(),p=0;pa[0].length)){if(a=c,x=p,this.options.backtrack_lexer){if(i=this.test_match(c,k[p]),i!==!1)return i;if(this._backtrack){a=!1;continue}else return!1}else if(!this.options.flex)break}return a?(i=this.test_match(a,k[x]),i!==!1?i:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text. +`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:d(function(){var a=this.next();return a||this.lex()},"lex"),begin:d(function(a){this.conditionStack.push(a)},"begin"),popState:d(function(){var a=this.conditionStack.length-1;return a>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:d(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:d(function(a){return a=this.conditionStack.length-1-Math.abs(a||0),a>=0?this.conditionStack[a]:"INITIAL"},"topState"),pushState:d(function(a){this.begin(a)},"pushState"),stateStackSize:d(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:d(function(a,c,x,k){var p=k;switch(x){case 0:return this.pushState("csv"),4;break;case 1:return this.pushState("csv"),4;break;case 2:return 10;case 3:return 5;case 4:return 12;case 5:return this.pushState("escaped_text"),18;break;case 6:return 20;case 7:return this.popState("escaped_text"),18;break;case 8:return 19}},"anonymous"),rules:[/^(?:sankey-beta\b)/i,/^(?:sankey\b)/i,/^(?:$)/i,/^(?:((\u000D\u000A)|(\u000A)))/i,/^(?:(\u002C))/i,/^(?:(\u0022))/i,/^(?:([\u0020-\u0021\u0023-\u002B\u002D-\u007E])*)/i,/^(?:(\u0022)(?!(\u0022)))/i,/^(?:(([\u0020-\u0021\u0023-\u002B\u002D-\u007E])|(\u002C)|(\u000D)|(\u000A)|(\u0022)(\u0022))*)/i],conditions:{csv:{rules:[2,3,4,5,6,7,8],inclusive:!1},escaped_text:{rules:[7,8],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7,8],inclusive:!0}}};return g})();f.lexer=_;function y(){this.yy={}}return d(y,"Parser"),y.prototype=f,f.Parser=y,new y})();mt.parser=mt;var tt=mt,nt=[],rt=[],et=new Map,Jt=d(()=>{nt=[],rt=[],et=new Map,_t()},"clear"),Qt=class{constructor(t,r,s=0){this.source=t,this.target=r,this.value=s}static{d(this,"SankeyLink")}},Kt=d((t,r,s)=>{nt.push(new Qt(t,r,s))},"addLink"),Zt=class{constructor(t){this.ID=t}static{d(this,"SankeyNode")}},te=d(t=>{t=xt.sanitizeText(t,Q());let r=et.get(t);return r===void 0&&(r=new Zt(t),et.set(t,r),rt.push(r)),r},"findOrCreateNode"),ee=d(()=>rt,"getNodes"),ne=d(()=>nt,"getLinks"),re=d(()=>({nodes:rt.map(t=>({id:t.ID})),links:nt.map(t=>({source:t.source.ID,target:t.target.ID,value:t.value}))}),"getGraph"),oe={nodesMap:et,getConfig:d(()=>Q().sankey,"getConfig"),getNodes:ee,getLinks:ne,getGraph:re,addLink:Kt,findOrCreateNode:te,getAccTitle:bt,setAccTitle:vt,getAccDescription:Lt,setAccDescription:St,getDiagramTitle:Et,setDiagramTitle:wt,clear:Jt},jt=class gt{static{d(this,"Uid")}static{this.count=0}static next(r){return new gt(r+ ++gt.count)}constructor(r){this.id=r,this.href=`#${r}`}toString(){return"url("+this.href+")"}},se={left:st,right:it,center:at,justify:J},ie=d(t=>{let r=0,s=0;for(let u of t){let f=u.value??0;f>r&&(r=f,s=u.layer??0)}return s},"findCentralNodeLayer"),ae=d(function(t,r,s,u){let{securityLevel:f,sankey:_}=Q(),y=At.sankey,g;f==="sandbox"&&(g=G("#i"+r));let i=f==="sandbox"?G(g.nodes()[0].contentDocument.body):G("body"),a=f==="sandbox"?i.select(`[id="${r}"]`):G(`[id="${r}"]`),c=_?.width??y.width,x=_?.height??y.width,k=_?.useMaxWidth??y.useMaxWidth,p=_?.nodeAlignment??y.nodeAlignment,v=_?.prefix??y.prefix,A=_?.suffix??y.suffix,E=_?.showValues??y.showValues,T=_?.nodeWidth??y.nodeWidth??10,M=_?.nodePadding??y.nodePadding??12,O=_?.labelStyle??y.labelStyle??"legacy",P=_?.nodeColors??{},R=u.db.getGraph(),S=se[p];Z().nodeId(n=>n.id).nodeWidth(T).nodePadding(M+(E?15:0)).nodeAlign(S).extent([[0,0],[c,x]])(R);let j=ie(R.nodes),B=Ct(Tt),I=d(n=>P[n]??B(n),"getNodeColor");a.append("g").attr("class","nodes").selectAll(".node").data(R.nodes).join("g").attr("class","node").attr("id",n=>(n.uid=jt.next("node-")).id).attr("transform",function(n){return"translate("+n.x0+","+n.y0+")"}).attr("x",n=>n.x0).attr("y",n=>n.y0).append("rect").attr("height",n=>n.y1-n.y0).attr("width",n=>n.x1-n.x0).attr("fill",n=>I(n.id));let W=d(({id:n,value:o})=>E?`${n} +${v}${Math.round(o*100)/100}${A}`:n,"getText"),V=d(n=>O==="outlined"?(n.layer??0)L.selectAll(n?`.${n}`:"text").data(R.nodes).join("text").attr("class",n??null).attr("x",o=>V(o).x).attr("y",o=>(o.y1+o.y0)/2).attr("dy",`${E?"0":"0.35"}em`).attr("text-anchor",o=>V(o).anchor).text(W),"appendLabel");O==="outlined"?(z("sankey-label-bg"),z("sankey-label-fg")):z();let e=a.append("g").attr("class","links").attr("fill","none").attr("stroke-opacity",.5).selectAll(".link").data(R.links).join("g").attr("class","link").style("mix-blend-mode","multiply"),l=_?.linkColor??"gradient";if(l==="gradient"){let n=e.append("linearGradient").attr("id",o=>(o.uid=jt.next("linearGradient-")).id).attr("gradientUnits","userSpaceOnUse").attr("x1",o=>o.source.x1).attr("x2",o=>o.target.x0);n.append("stop").attr("offset","0%").attr("stop-color",o=>I(o.source.id)),n.append("stop").attr("offset","100%").attr("stop-color",o=>I(o.target.id))}let h;switch(l){case"gradient":h=d(n=>n.uid,"coloring");break;case"source":h=d(n=>I(n.source.id),"coloring");break;case"target":h=d(n=>I(n.target.id),"coloring");break;default:h=l}e.append("path").attr("d",yt()).attr("stroke",h).attr("stroke-width",n=>Math.max(1,n.width)),kt(void 0,a,0,k)},"draw"),le={draw:ae},ue=d(t=>t.replaceAll(/^[^\S\n\r]+|[^\S\n\r]+$/g,"").replaceAll(/([\n\r])+/g,` +`).trim(),"prepareTextForParsing"),fe=d(t=>`.label { + font-family: ${t.fontFamily}; + } + + .node-labels { + font-family: ${t.fontFamily}; + } + + /* Outlined label style - background stroke for better readability */ + .sankey-label-bg { + stroke: ${t.mainBkg||t.background||"#fff"}; + stroke-width: 4px; + stroke-linejoin: round; + paint-order: stroke; + } + + /* Foreground label text */ + .sankey-label-fg { + fill: ${t.textColor}; + } + + /* Node styling */ + .node rect { + shape-rendering: crispEdges; + } + + /* Link styling */ + .link { + fill: none; + stroke-opacity: 0.5; + mix-blend-mode: multiply; + } +`,"getStyles"),ce=fe,he=tt.parse.bind(tt);tt.parse=t=>he(ue(t));var Ze={styles:ce,parser:tt,db:oe,renderer:le};export{Ze as diagram}; diff --git a/src/frontend/web/von_interface/static/vendor/conversation-visuals/sequenceDiagram-PO4LG4MO-JCAY2BA6.js b/src/frontend/web/von_interface/static/vendor/conversation-visuals/sequenceDiagram-PO4LG4MO-JCAY2BA6.js new file mode 100644 index 000000000..a820b9b83 --- /dev/null +++ b/src/frontend/web/von_interface/static/vendor/conversation-visuals/sequenceDiagram-PO4LG4MO-JCAY2BA6.js @@ -0,0 +1,169 @@ +import{a as ir}from"./chunk-HDKR6WI7.js";import{a as tr,b as er}from"./chunk-GDGZBOQC.js";import{a as ar,b as sr,d as qt,e as zt,f as dt,g as Ut}from"./chunk-L56KSVJM.js";import{c as rr,n as he,p as Q}from"./chunk-EUYVSIXP.js";import{a as Ar}from"./chunk-QSTT4QQC.js";import{$ as j,C as Dt,I as vt,J as ze,L as $,M as St,N as ce,O as N,P as Ue,U as Ge,V as le,W as Xe,X as Je,Y as Qe,Z as Ze,_ as $e,aa as je,o as qe}from"./chunk-S4JILX6U.js";import{b as et,h as Ct}from"./chunk-XEQL7KGA.js";import{a as f}from"./chunk-YUSHYV7C.js";import{c as Sr}from"./chunk-3RNHDNP5.js";var ue=Sr(Ar(),1),Te=(function(){var e=f(function(ft,k,C,D){for(C=C||{},D=ft.length;D--;C[ft[D]]=k);return C},"o"),t=[1,2],a=[1,3],r=[1,4],i=[2,4],c=[1,9],s=[1,11],n=[1,12],p=[1,14],d=[1,15],E=[1,17],u=[1,18],_=[1,19],O=[1,25],g=[1,26],y=[1,27],h=[1,28],R=[1,29],x=[1,30],m=[1,31],S=[1,32],L=[1,33],w=[1,34],P=[1,35],B=[1,36],V=[1,37],K=[1,38],U=[1,39],X=[1,40],rt=[1,42],at=[1,43],G=[1,44],nt=[1,45],st=[1,46],W=[1,47],M=[1,4,5,10,14,15,17,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,48,49,50,51,53,54,56,61,62,63,64,73],Nt=[1,74],Yt=[1,80],A=[1,81],v=[1,82],ht=[1,83],it=[1,84],H=[1,85],Lt=[1,86],_e=[1,87],ge=[1,88],xe=[1,89],be=[1,90],Ie=[1,91],ye=[1,92],Re=[1,93],Oe=[1,94],Le=[1,95],me=[1,96],Se=[1,97],Ae=[1,98],ke=[1,99],Ne=[1,100],we=[1,101],Pe=[1,102],De=[1,103],ve=[1,104],Ce=[1,105],Me=[2,78],wt=[4,5,17,51,53,54],Vt=[4,5,10,14,15,17,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,51,53,54,56,61,62,63,64,73],Be=[4,5,10,14,15,17,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,50,51,53,54,56,61,62,63,64,73],te=[4,5,10,14,15,17,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,49,51,53,54,56,61,62,63,64,73],Ye=[4,5,10,14,15,17,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,48,51,53,54,56,61,62,63,64,73],ee=[5,52],F=[70,71,72,73],ct=[1,151],re={trace:f(function(){},"trace"),yy:{},symbols_:{error:2,start:3,SPACE:4,NEWLINE:5,SD:6,document:7,line:8,statement:9,INVALID:10,box_section:11,box_line:12,participant_statement:13,create:14,box:15,restOfLine:16,end:17,signal:18,autonumber:19,NUM:20,off:21,activate:22,actor:23,deactivate:24,note_statement:25,links_statement:26,link_statement:27,properties_statement:28,details_statement:29,title:30,legacy_title:31,acc_title:32,acc_title_value:33,acc_descr:34,acc_descr_value:35,acc_descr_multiline_value:36,loop:37,rect:38,opt:39,alt:40,else_sections:41,par:42,par_sections:43,par_over:44,critical:45,option_sections:46,break:47,option:48,and:49,else:50,participant:51,AS:52,participant_actor:53,destroy:54,actor_with_config:55,note:56,placement:57,text2:58,over:59,actor_pair:60,links:61,link:62,properties:63,details:64,spaceList:65,",":66,left_of:67,right_of:68,signaltype:69,"+":70,"-":71,"()":72,ACTOR:73,config_object:74,CONFIG_START:75,CONFIG_CONTENT:76,CONFIG_END:77,SOLID_OPEN_ARROW:78,DOTTED_OPEN_ARROW:79,SOLID_ARROW:80,SOLID_ARROW_TOP:81,SOLID_ARROW_BOTTOM:82,STICK_ARROW_TOP:83,STICK_ARROW_BOTTOM:84,SOLID_ARROW_TOP_DOTTED:85,SOLID_ARROW_BOTTOM_DOTTED:86,STICK_ARROW_TOP_DOTTED:87,STICK_ARROW_BOTTOM_DOTTED:88,SOLID_ARROW_TOP_REVERSE:89,SOLID_ARROW_BOTTOM_REVERSE:90,STICK_ARROW_TOP_REVERSE:91,STICK_ARROW_BOTTOM_REVERSE:92,SOLID_ARROW_TOP_REVERSE_DOTTED:93,SOLID_ARROW_BOTTOM_REVERSE_DOTTED:94,STICK_ARROW_TOP_REVERSE_DOTTED:95,STICK_ARROW_BOTTOM_REVERSE_DOTTED:96,BIDIRECTIONAL_SOLID_ARROW:97,DOTTED_ARROW:98,BIDIRECTIONAL_DOTTED_ARROW:99,SOLID_CROSS:100,DOTTED_CROSS:101,SOLID_POINT:102,DOTTED_POINT:103,TXT:104,$accept:0,$end:1},terminals_:{2:"error",4:"SPACE",5:"NEWLINE",6:"SD",10:"INVALID",14:"create",15:"box",16:"restOfLine",17:"end",19:"autonumber",20:"NUM",21:"off",22:"activate",24:"deactivate",30:"title",31:"legacy_title",32:"acc_title",33:"acc_title_value",34:"acc_descr",35:"acc_descr_value",36:"acc_descr_multiline_value",37:"loop",38:"rect",39:"opt",40:"alt",42:"par",44:"par_over",45:"critical",47:"break",48:"option",49:"and",50:"else",51:"participant",52:"AS",53:"participant_actor",54:"destroy",56:"note",59:"over",61:"links",62:"link",63:"properties",64:"details",66:",",67:"left_of",68:"right_of",70:"+",71:"-",72:"()",73:"ACTOR",75:"CONFIG_START",76:"CONFIG_CONTENT",77:"CONFIG_END",78:"SOLID_OPEN_ARROW",79:"DOTTED_OPEN_ARROW",80:"SOLID_ARROW",81:"SOLID_ARROW_TOP",82:"SOLID_ARROW_BOTTOM",83:"STICK_ARROW_TOP",84:"STICK_ARROW_BOTTOM",85:"SOLID_ARROW_TOP_DOTTED",86:"SOLID_ARROW_BOTTOM_DOTTED",87:"STICK_ARROW_TOP_DOTTED",88:"STICK_ARROW_BOTTOM_DOTTED",89:"SOLID_ARROW_TOP_REVERSE",90:"SOLID_ARROW_BOTTOM_REVERSE",91:"STICK_ARROW_TOP_REVERSE",92:"STICK_ARROW_BOTTOM_REVERSE",93:"SOLID_ARROW_TOP_REVERSE_DOTTED",94:"SOLID_ARROW_BOTTOM_REVERSE_DOTTED",95:"STICK_ARROW_TOP_REVERSE_DOTTED",96:"STICK_ARROW_BOTTOM_REVERSE_DOTTED",97:"BIDIRECTIONAL_SOLID_ARROW",98:"DOTTED_ARROW",99:"BIDIRECTIONAL_DOTTED_ARROW",100:"SOLID_CROSS",101:"DOTTED_CROSS",102:"SOLID_POINT",103:"DOTTED_POINT",104:"TXT"},productions_:[0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[8,1],[8,1],[8,1],[11,0],[11,2],[12,2],[12,1],[12,1],[9,1],[9,2],[9,4],[9,2],[9,4],[9,3],[9,3],[9,2],[9,3],[9,3],[9,2],[9,2],[9,2],[9,2],[9,2],[9,1],[9,1],[9,2],[9,2],[9,1],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[46,1],[46,4],[43,1],[43,4],[41,1],[41,4],[13,5],[13,3],[13,5],[13,3],[13,3],[13,5],[13,3],[13,5],[13,3],[25,4],[25,4],[26,3],[27,3],[28,3],[29,3],[65,2],[65,1],[60,3],[60,1],[57,1],[57,1],[18,5],[18,5],[18,5],[18,5],[18,6],[18,4],[55,2],[74,3],[23,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[58,1]],performAction:f(function(k,C,D,b,q,o,Pt){var T=o.length-1;switch(q){case 3:return b.apply(o[T]),o[T];break;case 4:case 10:this.$=[];break;case 5:case 11:o[T-1].push(o[T]),this.$=o[T-1];break;case 6:case 7:case 12:case 13:this.$=o[T];break;case 8:case 9:case 14:this.$=[];break;case 16:o[T].type="createParticipant",this.$=o[T];break;case 17:o[T-1].unshift({type:"boxStart",boxData:b.parseBoxData(o[T-2])}),o[T-1].push({type:"boxEnd",boxText:o[T-2]}),this.$=o[T-1];break;case 19:this.$={type:"sequenceIndex",sequenceIndex:Number(o[T-2]),sequenceIndexStep:Number(o[T-1]),sequenceVisible:!0,signalType:b.LINETYPE.AUTONUMBER};break;case 20:this.$={type:"sequenceIndex",sequenceIndex:Number(o[T-1]),sequenceIndexStep:1,sequenceVisible:!0,signalType:b.LINETYPE.AUTONUMBER};break;case 21:this.$={type:"sequenceIndex",sequenceVisible:!1,signalType:b.LINETYPE.AUTONUMBER};break;case 22:this.$={type:"sequenceIndex",sequenceVisible:!0,signalType:b.LINETYPE.AUTONUMBER};break;case 23:this.$={type:"activeStart",signalType:b.LINETYPE.ACTIVE_START,actor:o[T-1].actor};break;case 24:this.$={type:"activeEnd",signalType:b.LINETYPE.ACTIVE_END,actor:o[T-1].actor};break;case 30:b.setDiagramTitle(o[T].substring(6)),this.$=o[T].substring(6);break;case 31:b.setDiagramTitle(o[T].substring(7)),this.$=o[T].substring(7);break;case 32:this.$=o[T].trim(),b.setAccTitle(this.$);break;case 33:case 34:this.$=o[T].trim(),b.setAccDescription(this.$);break;case 35:o[T-1].unshift({type:"loopStart",loopText:b.parseMessage(o[T-2]),signalType:b.LINETYPE.LOOP_START}),o[T-1].push({type:"loopEnd",loopText:o[T-2],signalType:b.LINETYPE.LOOP_END}),this.$=o[T-1];break;case 36:o[T-1].unshift({type:"rectStart",color:b.parseMessage(o[T-2]),signalType:b.LINETYPE.RECT_START}),o[T-1].push({type:"rectEnd",color:b.parseMessage(o[T-2]),signalType:b.LINETYPE.RECT_END}),this.$=o[T-1];break;case 37:o[T-1].unshift({type:"optStart",optText:b.parseMessage(o[T-2]),signalType:b.LINETYPE.OPT_START}),o[T-1].push({type:"optEnd",optText:b.parseMessage(o[T-2]),signalType:b.LINETYPE.OPT_END}),this.$=o[T-1];break;case 38:o[T-1].unshift({type:"altStart",altText:b.parseMessage(o[T-2]),signalType:b.LINETYPE.ALT_START}),o[T-1].push({type:"altEnd",signalType:b.LINETYPE.ALT_END}),this.$=o[T-1];break;case 39:o[T-1].unshift({type:"parStart",parText:b.parseMessage(o[T-2]),signalType:b.LINETYPE.PAR_START}),o[T-1].push({type:"parEnd",signalType:b.LINETYPE.PAR_END}),this.$=o[T-1];break;case 40:o[T-1].unshift({type:"parStart",parText:b.parseMessage(o[T-2]),signalType:b.LINETYPE.PAR_OVER_START}),o[T-1].push({type:"parEnd",signalType:b.LINETYPE.PAR_END}),this.$=o[T-1];break;case 41:o[T-1].unshift({type:"criticalStart",criticalText:b.parseMessage(o[T-2]),signalType:b.LINETYPE.CRITICAL_START}),o[T-1].push({type:"criticalEnd",signalType:b.LINETYPE.CRITICAL_END}),this.$=o[T-1];break;case 42:o[T-1].unshift({type:"breakStart",breakText:b.parseMessage(o[T-2]),signalType:b.LINETYPE.BREAK_START}),o[T-1].push({type:"breakEnd",optText:b.parseMessage(o[T-2]),signalType:b.LINETYPE.BREAK_END}),this.$=o[T-1];break;case 44:this.$=o[T-3].concat([{type:"option",optionText:b.parseMessage(o[T-1]),signalType:b.LINETYPE.CRITICAL_OPTION},o[T]]);break;case 46:this.$=o[T-3].concat([{type:"and",parText:b.parseMessage(o[T-1]),signalType:b.LINETYPE.PAR_AND},o[T]]);break;case 48:this.$=o[T-3].concat([{type:"else",altText:b.parseMessage(o[T-1]),signalType:b.LINETYPE.ALT_ELSE},o[T]]);break;case 49:o[T-3].draw="participant",o[T-3].type="addParticipant",o[T-3].description=b.parseMessage(o[T-1]),this.$=o[T-3];break;case 50:o[T-1].draw="participant",o[T-1].type="addParticipant",this.$=o[T-1];break;case 51:o[T-3].draw="actor",o[T-3].type="addParticipant",o[T-3].description=b.parseMessage(o[T-1]),this.$=o[T-3];break;case 52:case 57:o[T-1].draw="actor",o[T-1].type="addParticipant",this.$=o[T-1];break;case 53:o[T-1].type="destroyParticipant",this.$=o[T-1];break;case 54:o[T-3].draw="participant",o[T-3].type="addParticipant",o[T-3].description=b.parseMessage(o[T-1]),this.$=o[T-3];break;case 55:o[T-1].draw="participant",o[T-1].type="addParticipant",this.$=o[T-1];break;case 56:o[T-3].draw="actor",o[T-3].type="addParticipant",o[T-3].description=b.parseMessage(o[T-1]),this.$=o[T-3];break;case 58:this.$=[o[T-1],{type:"addNote",placement:o[T-2],actor:o[T-1].actor,text:o[T]}];break;case 59:o[T-2]=[].concat(o[T-1],o[T-1]).slice(0,2),o[T-2][0]=o[T-2][0].actor,o[T-2][1]=o[T-2][1].actor,this.$=[o[T-1],{type:"addNote",placement:b.PLACEMENT.OVER,actor:o[T-2].slice(0,2),text:o[T]}];break;case 60:this.$=[o[T-1],{type:"addLinks",actor:o[T-1].actor,text:o[T]}];break;case 61:this.$=[o[T-1],{type:"addALink",actor:o[T-1].actor,text:o[T]}];break;case 62:this.$=[o[T-1],{type:"addProperties",actor:o[T-1].actor,text:o[T]}];break;case 63:this.$=[o[T-1],{type:"addDetails",actor:o[T-1].actor,text:o[T]}];break;case 66:this.$=[o[T-2],o[T]];break;case 67:this.$=o[T];break;case 68:this.$=b.PLACEMENT.LEFTOF;break;case 69:this.$=b.PLACEMENT.RIGHTOF;break;case 70:this.$=[o[T-4],o[T-1],{type:"addMessage",from:o[T-4].actor,to:o[T-1].actor,signalType:o[T-3],msg:o[T],activate:!0},{type:"activeStart",signalType:b.LINETYPE.ACTIVE_START,actor:o[T-1].actor}];break;case 71:this.$=[o[T-4],o[T-1],{type:"addMessage",from:o[T-4].actor,to:o[T-1].actor,signalType:o[T-3],msg:o[T]},{type:"activeEnd",signalType:b.LINETYPE.ACTIVE_END,actor:o[T-4].actor}];break;case 72:this.$=[o[T-4],o[T-1],{type:"addMessage",from:o[T-4].actor,to:o[T-1].actor,signalType:o[T-3],msg:o[T],activate:!0,centralConnection:b.LINETYPE.CENTRAL_CONNECTION},{type:"centralConnection",signalType:b.LINETYPE.CENTRAL_CONNECTION,actor:o[T-1].actor}];break;case 73:this.$=[o[T-4],o[T-1],{type:"addMessage",from:o[T-4].actor,to:o[T-1].actor,signalType:o[T-2],msg:o[T],activate:!1,centralConnection:b.LINETYPE.CENTRAL_CONNECTION_REVERSE},{type:"centralConnectionReverse",signalType:b.LINETYPE.CENTRAL_CONNECTION_REVERSE,actor:o[T-4].actor}];break;case 74:this.$=[o[T-5],o[T-1],{type:"addMessage",from:o[T-5].actor,to:o[T-1].actor,signalType:o[T-3],msg:o[T],activate:!0,centralConnection:b.LINETYPE.CENTRAL_CONNECTION_DUAL},{type:"centralConnection",signalType:b.LINETYPE.CENTRAL_CONNECTION,actor:o[T-1].actor},{type:"centralConnectionReverse",signalType:b.LINETYPE.CENTRAL_CONNECTION_REVERSE,actor:o[T-5].actor}];break;case 75:this.$=[o[T-3],o[T-1],{type:"addMessage",from:o[T-3].actor,to:o[T-1].actor,signalType:o[T-2],msg:o[T]}];break;case 76:this.$={type:"addParticipant",actor:o[T-1],config:o[T]};break;case 77:this.$=o[T-1].trim();break;case 78:this.$={type:"addParticipant",actor:o[T]};break;case 79:this.$=b.LINETYPE.SOLID_OPEN;break;case 80:this.$=b.LINETYPE.DOTTED_OPEN;break;case 81:this.$=b.LINETYPE.SOLID;break;case 82:this.$=b.LINETYPE.SOLID_TOP;break;case 83:this.$=b.LINETYPE.SOLID_BOTTOM;break;case 84:this.$=b.LINETYPE.STICK_TOP;break;case 85:this.$=b.LINETYPE.STICK_BOTTOM;break;case 86:this.$=b.LINETYPE.SOLID_TOP_DOTTED;break;case 87:this.$=b.LINETYPE.SOLID_BOTTOM_DOTTED;break;case 88:this.$=b.LINETYPE.STICK_TOP_DOTTED;break;case 89:this.$=b.LINETYPE.STICK_BOTTOM_DOTTED;break;case 90:this.$=b.LINETYPE.SOLID_ARROW_TOP_REVERSE;break;case 91:this.$=b.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE;break;case 92:this.$=b.LINETYPE.STICK_ARROW_TOP_REVERSE;break;case 93:this.$=b.LINETYPE.STICK_ARROW_BOTTOM_REVERSE;break;case 94:this.$=b.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED;break;case 95:this.$=b.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED;break;case 96:this.$=b.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED;break;case 97:this.$=b.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED;break;case 98:this.$=b.LINETYPE.BIDIRECTIONAL_SOLID;break;case 99:this.$=b.LINETYPE.DOTTED;break;case 100:this.$=b.LINETYPE.BIDIRECTIONAL_DOTTED;break;case 101:this.$=b.LINETYPE.SOLID_CROSS;break;case 102:this.$=b.LINETYPE.DOTTED_CROSS;break;case 103:this.$=b.LINETYPE.SOLID_POINT;break;case 104:this.$=b.LINETYPE.DOTTED_POINT;break;case 105:this.$=b.parseMessage(o[T].trim().substring(1));break}},"anonymous"),table:[{3:1,4:t,5:a,6:r},{1:[3]},{3:5,4:t,5:a,6:r},{3:6,4:t,5:a,6:r},e([1,4,5,10,14,15,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,51,53,54,56,61,62,63,64,73],i,{7:7}),{1:[2,1]},{1:[2,2]},{1:[2,3],4:c,5:s,8:8,9:10,10:n,13:13,14:p,15:d,18:16,19:E,22:u,23:41,24:_,25:20,26:21,27:22,28:23,29:24,30:O,31:g,32:y,34:h,36:R,37:x,38:m,39:S,40:L,42:w,44:P,45:B,47:V,51:K,53:U,54:X,56:rt,61:at,62:G,63:nt,64:st,73:W},e(M,[2,5]),{9:48,13:13,14:p,15:d,18:16,19:E,22:u,23:41,24:_,25:20,26:21,27:22,28:23,29:24,30:O,31:g,32:y,34:h,36:R,37:x,38:m,39:S,40:L,42:w,44:P,45:B,47:V,51:K,53:U,54:X,56:rt,61:at,62:G,63:nt,64:st,73:W},e(M,[2,7]),e(M,[2,8]),e(M,[2,9]),e(M,[2,15]),{13:49,51:K,53:U,54:X},{16:[1,50]},{5:[1,51]},{5:[1,54],20:[1,52],21:[1,53]},{23:55,73:W},{23:56,73:W},{5:[1,57]},{5:[1,58]},{5:[1,59]},{5:[1,60]},{5:[1,61]},e(M,[2,30]),e(M,[2,31]),{33:[1,62]},{35:[1,63]},e(M,[2,34]),{16:[1,64]},{16:[1,65]},{16:[1,66]},{16:[1,67]},{16:[1,68]},{16:[1,69]},{16:[1,70]},{16:[1,71]},{23:72,55:73,73:Nt},{23:75,55:76,73:Nt},{23:77,73:W},{69:78,72:[1,79],78:Yt,79:A,80:v,81:ht,82:it,83:H,84:Lt,85:_e,86:ge,87:xe,88:be,89:Ie,90:ye,91:Re,92:Oe,93:Le,94:me,95:Se,96:Ae,97:ke,98:Ne,99:we,100:Pe,101:De,102:ve,103:Ce},{57:106,59:[1,107],67:[1,108],68:[1,109]},{23:110,73:W},{23:111,73:W},{23:112,73:W},{23:113,73:W},e([5,66,72,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104],Me),e(M,[2,6]),e(M,[2,16]),e(wt,[2,10],{11:114}),e(M,[2,18]),{5:[1,116],20:[1,115]},{5:[1,117]},e(M,[2,22]),{5:[1,118]},{5:[1,119]},e(M,[2,25]),e(M,[2,26]),e(M,[2,27]),e(M,[2,28]),e(M,[2,29]),e(M,[2,32]),e(M,[2,33]),e(Vt,i,{7:120}),e(Vt,i,{7:121}),e(Vt,i,{7:122}),e(Be,i,{41:123,7:124}),e(te,i,{43:125,7:126}),e(te,i,{7:126,43:127}),e(Ye,i,{46:128,7:129}),e(Vt,i,{7:130}),{5:[1,132],52:[1,131]},{5:[1,134],52:[1,133]},e(ee,Me,{74:135,75:[1,136]}),{5:[1,138],52:[1,137]},{5:[1,140],52:[1,139]},{5:[1,141]},{23:145,70:[1,142],71:[1,143],72:[1,144],73:W},{69:146,78:Yt,79:A,80:v,81:ht,82:it,83:H,84:Lt,85:_e,86:ge,87:xe,88:be,89:Ie,90:ye,91:Re,92:Oe,93:Le,94:me,95:Se,96:Ae,97:ke,98:Ne,99:we,100:Pe,101:De,102:ve,103:Ce},e(F,[2,79]),e(F,[2,80]),e(F,[2,81]),e(F,[2,82]),e(F,[2,83]),e(F,[2,84]),e(F,[2,85]),e(F,[2,86]),e(F,[2,87]),e(F,[2,88]),e(F,[2,89]),e(F,[2,90]),e(F,[2,91]),e(F,[2,92]),e(F,[2,93]),e(F,[2,94]),e(F,[2,95]),e(F,[2,96]),e(F,[2,97]),e(F,[2,98]),e(F,[2,99]),e(F,[2,100]),e(F,[2,101]),e(F,[2,102]),e(F,[2,103]),e(F,[2,104]),{23:147,73:W},{23:149,60:148,73:W},{73:[2,68]},{73:[2,69]},{58:150,104:ct},{58:152,104:ct},{58:153,104:ct},{58:154,104:ct},{4:[1,157],5:[1,159],12:156,13:158,17:[1,155],51:K,53:U,54:X},{5:[1,160]},e(M,[2,20]),e(M,[2,21]),e(M,[2,23]),e(M,[2,24]),{4:c,5:s,8:8,9:10,10:n,13:13,14:p,15:d,17:[1,161],18:16,19:E,22:u,23:41,24:_,25:20,26:21,27:22,28:23,29:24,30:O,31:g,32:y,34:h,36:R,37:x,38:m,39:S,40:L,42:w,44:P,45:B,47:V,51:K,53:U,54:X,56:rt,61:at,62:G,63:nt,64:st,73:W},{4:c,5:s,8:8,9:10,10:n,13:13,14:p,15:d,17:[1,162],18:16,19:E,22:u,23:41,24:_,25:20,26:21,27:22,28:23,29:24,30:O,31:g,32:y,34:h,36:R,37:x,38:m,39:S,40:L,42:w,44:P,45:B,47:V,51:K,53:U,54:X,56:rt,61:at,62:G,63:nt,64:st,73:W},{4:c,5:s,8:8,9:10,10:n,13:13,14:p,15:d,17:[1,163],18:16,19:E,22:u,23:41,24:_,25:20,26:21,27:22,28:23,29:24,30:O,31:g,32:y,34:h,36:R,37:x,38:m,39:S,40:L,42:w,44:P,45:B,47:V,51:K,53:U,54:X,56:rt,61:at,62:G,63:nt,64:st,73:W},{17:[1,164]},{4:c,5:s,8:8,9:10,10:n,13:13,14:p,15:d,17:[2,47],18:16,19:E,22:u,23:41,24:_,25:20,26:21,27:22,28:23,29:24,30:O,31:g,32:y,34:h,36:R,37:x,38:m,39:S,40:L,42:w,44:P,45:B,47:V,50:[1,165],51:K,53:U,54:X,56:rt,61:at,62:G,63:nt,64:st,73:W},{17:[1,166]},{4:c,5:s,8:8,9:10,10:n,13:13,14:p,15:d,17:[2,45],18:16,19:E,22:u,23:41,24:_,25:20,26:21,27:22,28:23,29:24,30:O,31:g,32:y,34:h,36:R,37:x,38:m,39:S,40:L,42:w,44:P,45:B,47:V,49:[1,167],51:K,53:U,54:X,56:rt,61:at,62:G,63:nt,64:st,73:W},{17:[1,168]},{17:[1,169]},{4:c,5:s,8:8,9:10,10:n,13:13,14:p,15:d,17:[2,43],18:16,19:E,22:u,23:41,24:_,25:20,26:21,27:22,28:23,29:24,30:O,31:g,32:y,34:h,36:R,37:x,38:m,39:S,40:L,42:w,44:P,45:B,47:V,48:[1,170],51:K,53:U,54:X,56:rt,61:at,62:G,63:nt,64:st,73:W},{4:c,5:s,8:8,9:10,10:n,13:13,14:p,15:d,17:[1,171],18:16,19:E,22:u,23:41,24:_,25:20,26:21,27:22,28:23,29:24,30:O,31:g,32:y,34:h,36:R,37:x,38:m,39:S,40:L,42:w,44:P,45:B,47:V,51:K,53:U,54:X,56:rt,61:at,62:G,63:nt,64:st,73:W},{16:[1,172]},e(M,[2,50]),{16:[1,173]},e(M,[2,55]),e(ee,[2,76]),{76:[1,174]},{16:[1,175]},e(M,[2,52]),{16:[1,176]},e(M,[2,57]),e(M,[2,53]),{23:177,73:W},{23:178,73:W},{23:179,73:W},{58:180,104:ct},{23:181,72:[1,182],73:W},{58:183,104:ct},{58:184,104:ct},{66:[1,185],104:[2,67]},{5:[2,60]},{5:[2,105]},{5:[2,61]},{5:[2,62]},{5:[2,63]},e(M,[2,17]),e(wt,[2,11]),{13:186,51:K,53:U,54:X},e(wt,[2,13]),e(wt,[2,14]),e(M,[2,19]),e(M,[2,35]),e(M,[2,36]),e(M,[2,37]),e(M,[2,38]),{16:[1,187]},e(M,[2,39]),{16:[1,188]},e(M,[2,40]),e(M,[2,41]),{16:[1,189]},e(M,[2,42]),{5:[1,190]},{5:[1,191]},{77:[1,192]},{5:[1,193]},{5:[1,194]},{58:195,104:ct},{58:196,104:ct},{58:197,104:ct},{5:[2,75]},{58:198,104:ct},{23:199,73:W},{5:[2,58]},{5:[2,59]},{23:200,73:W},e(wt,[2,12]),e(Be,i,{7:124,41:201}),e(te,i,{7:126,43:202}),e(Ye,i,{7:129,46:203}),e(M,[2,49]),e(M,[2,54]),e(ee,[2,77]),e(M,[2,51]),e(M,[2,56]),{5:[2,70]},{5:[2,71]},{5:[2,72]},{5:[2,73]},{58:204,104:ct},{104:[2,66]},{17:[2,48]},{17:[2,46]},{17:[2,44]},{5:[2,74]}],defaultActions:{5:[2,1],6:[2,2],108:[2,68],109:[2,69],150:[2,60],151:[2,105],152:[2,61],153:[2,62],154:[2,63],180:[2,75],183:[2,58],184:[2,59],195:[2,70],196:[2,71],197:[2,72],198:[2,73],200:[2,66],201:[2,48],202:[2,46],203:[2,44],204:[2,74]},parseError:f(function(k,C){if(C.recoverable)this.trace(k);else{var D=new Error(k);throw D.hash=C,D}},"parseError"),parse:f(function(k){var C=this,D=[0],b=[],q=[null],o=[],Pt=this.table,T="",Kt=0,Ve=0,We=0,Rr=2,Ke=1,Or=o.slice.call(arguments,1),Z=Object.create(this.lexer),bt={yy:{}};for(var ae in this.yy)Object.prototype.hasOwnProperty.call(this.yy,ae)&&(bt.yy[ae]=this.yy[ae]);Z.setInput(k,bt.yy),bt.yy.lexer=Z,bt.yy.parser=this,typeof Z.yylloc>"u"&&(Z.yylloc={});var se=Z.yylloc;o.push(se);var Lr=Z.options&&Z.options.ranges;typeof bt.yy.parseError=="function"?this.parseError=bt.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function mr(ot){D.length=D.length-2*ot,q.length=q.length-ot,o.length=o.length-ot}f(mr,"popStack");function He(){var ot;return ot=b.pop()||Z.lex()||Ke,typeof ot!="number"&&(ot instanceof Array&&(b=ot,ot=b.pop()),ot=C.symbols_[ot]||ot),ot}f(He,"lex");for(var tt,ie,It,lt,Sa,ne,mt={},Ht,pt,Fe,Ft;;){if(It=D[D.length-1],this.defaultActions[It]?lt=this.defaultActions[It]:((tt===null||typeof tt>"u")&&(tt=He()),lt=Pt[It]&&Pt[It][tt]),typeof lt>"u"||!lt.length||!lt[0]){var oe="";Ft=[];for(Ht in Pt[It])this.terminals_[Ht]&&Ht>Rr&&Ft.push("'"+this.terminals_[Ht]+"'");Z.showPosition?oe="Parse error on line "+(Kt+1)+`: +`+Z.showPosition()+` +Expecting `+Ft.join(", ")+", got '"+(this.terminals_[tt]||tt)+"'":oe="Parse error on line "+(Kt+1)+": Unexpected "+(tt==Ke?"end of input":"'"+(this.terminals_[tt]||tt)+"'"),this.parseError(oe,{text:Z.match,token:this.terminals_[tt]||tt,line:Z.yylineno,loc:se,expected:Ft})}if(lt[0]instanceof Array&<.length>1)throw new Error("Parse Error: multiple actions possible at state: "+It+", token: "+tt);switch(lt[0]){case 1:D.push(tt),q.push(Z.yytext),o.push(Z.yylloc),D.push(lt[1]),tt=null,ie?(tt=ie,ie=null):(Ve=Z.yyleng,T=Z.yytext,Kt=Z.yylineno,se=Z.yylloc,We>0&&We--);break;case 2:if(pt=this.productions_[lt[1]][1],mt.$=q[q.length-pt],mt._$={first_line:o[o.length-(pt||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(pt||1)].first_column,last_column:o[o.length-1].last_column},Lr&&(mt._$.range=[o[o.length-(pt||1)].range[0],o[o.length-1].range[1]]),ne=this.performAction.apply(mt,[T,Ve,Kt,bt.yy,lt[1],q,o].concat(Or)),typeof ne<"u")return ne;pt&&(D=D.slice(0,-1*pt*2),q=q.slice(0,-1*pt),o=o.slice(0,-1*pt)),D.push(this.productions_[lt[1]][0]),q.push(mt.$),o.push(mt._$),Fe=Pt[D[D.length-2]][D[D.length-1]],D.push(Fe);break;case 3:return!0}}return!0},"parse")},yr=(function(){var ft={EOF:1,parseError:f(function(C,D){if(this.yy.parser)this.yy.parser.parseError(C,D);else throw new Error(C)},"parseError"),setInput:f(function(k,C){return this.yy=C||this.yy||{},this._input=k,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:f(function(){var k=this._input[0];this.yytext+=k,this.yyleng++,this.offset++,this.match+=k,this.matched+=k;var C=k.match(/(?:\r\n?|\n).*/g);return C?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),k},"input"),unput:f(function(k){var C=k.length,D=k.split(/(?:\r\n?|\n)/g);this._input=k+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-C),this.offset-=C;var b=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),D.length-1&&(this.yylineno-=D.length-1);var q=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:D?(D.length===b.length?this.yylloc.first_column:0)+b[b.length-D.length].length-D[0].length:this.yylloc.first_column-C},this.options.ranges&&(this.yylloc.range=[q[0],q[0]+this.yyleng-C]),this.yyleng=this.yytext.length,this},"unput"),more:f(function(){return this._more=!0,this},"more"),reject:f(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). +`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:f(function(k){this.unput(this.match.slice(k))},"less"),pastInput:f(function(){var k=this.matched.substr(0,this.matched.length-this.match.length);return(k.length>20?"...":"")+k.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:f(function(){var k=this.match;return k.length<20&&(k+=this._input.substr(0,20-k.length)),(k.substr(0,20)+(k.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:f(function(){var k=this.pastInput(),C=new Array(k.length+1).join("-");return k+this.upcomingInput()+` +`+C+"^"},"showPosition"),test_match:f(function(k,C){var D,b,q;if(this.options.backtrack_lexer&&(q={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&&(q.yylloc.range=this.yylloc.range.slice(0))),b=k[0].match(/(?:\r\n?|\n).*/g),b&&(this.yylineno+=b.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:b?b[b.length-1].length-b[b.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+k[0].length},this.yytext+=k[0],this.match+=k[0],this.matches=k,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(k[0].length),this.matched+=k[0],D=this.performAction.call(this,this.yy,this,C,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),D)return D;if(this._backtrack){for(var o in q)this[o]=q[o];return!1}return!1},"test_match"),next:f(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var k,C,D,b;this._more||(this.yytext="",this.match="");for(var q=this._currentRules(),o=0;oC[0].length)){if(C=D,b=o,this.options.backtrack_lexer){if(k=this.test_match(D,q[o]),k!==!1)return k;if(this._backtrack){C=!1;continue}else return!1}else if(!this.options.flex)break}return C?(k=this.test_match(C,q[b]),k!==!1?k:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text. +`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:f(function(){var C=this.next();return C||this.lex()},"lex"),begin:f(function(C){this.conditionStack.push(C)},"begin"),popState:f(function(){var C=this.conditionStack.length-1;return C>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:f(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:f(function(C){return C=this.conditionStack.length-1-Math.abs(C||0),C>=0?this.conditionStack[C]:"INITIAL"},"topState"),pushState:f(function(C){this.begin(C)},"pushState"),stateStackSize:f(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:f(function(C,D,b,q){var o=q;switch(b){case 0:return 5;case 1:break;case 2:break;case 3:break;case 4:break;case 5:break;case 6:return 20;case 7:return this.begin("CONFIG"),75;break;case 8:return 76;case 9:return this.popState(),this.begin("ALIAS"),77;break;case 10:return this.popState(),this.popState(),77;break;case 11:return D.yytext=D.yytext.trim(),73;break;case 12:return D.yytext=D.yytext.trim(),this.begin("ALIAS"),73;break;case 13:return D.yytext=D.yytext.trim(),this.popState(),73;break;case 14:return this.popState(),10;break;case 15:return D.yytext=D.yytext.trim(),this.popState(),10;break;case 16:return this.begin("LINE"),15;break;case 17:return this.begin("ID"),51;break;case 18:return this.begin("ID"),53;break;case 19:return 14;case 20:return this.begin("ID"),54;break;case 21:return this.popState(),this.popState(),this.begin("LINE"),52;break;case 22:return this.popState(),this.popState(),5;break;case 23:return this.begin("LINE"),37;break;case 24:return this.begin("LINE"),38;break;case 25:return this.begin("LINE"),39;break;case 26:return this.begin("LINE"),40;break;case 27:return this.begin("LINE"),50;break;case 28:return this.begin("LINE"),42;break;case 29:return this.begin("LINE"),44;break;case 30:return this.begin("LINE"),49;break;case 31:return this.begin("LINE"),45;break;case 32:return this.begin("LINE"),48;break;case 33:return this.begin("LINE"),47;break;case 34:return this.popState(),16;break;case 35:return 17;case 36:return 67;case 37:return 68;case 38:return 61;case 39:return 62;case 40:return 63;case 41:return 64;case 42:return 59;case 43:return 56;case 44:return this.begin("ID"),22;break;case 45:return this.begin("ID"),24;break;case 46:return 30;case 47:return 31;case 48:return this.begin("acc_title"),32;break;case 49:return this.popState(),"acc_title_value";break;case 50:return this.begin("acc_descr"),34;break;case 51:return this.popState(),"acc_descr_value";break;case 52:this.begin("acc_descr_multiline");break;case 53:this.popState();break;case 54:return"acc_descr_multiline_value";case 55:return 6;case 56:return 19;case 57:return 21;case 58:return 66;case 59:return 5;case 60:return D.yytext=D.yytext.trim(),73;break;case 61:return 80;case 62:return 97;case 63:return 98;case 64:return 99;case 65:return 78;case 66:return 79;case 67:return 100;case 68:return 101;case 69:return 102;case 70:return 103;case 71:return 85;case 72:return 86;case 73:return 87;case 74:return 88;case 75:return 93;case 76:return 94;case 77:return 95;case 78:return 96;case 79:return 81;case 80:return 82;case 81:return 83;case 82:return 84;case 83:return 89;case 84:return 90;case 85:return 91;case 86:return 92;case 87:return 104;case 88:return 104;case 89:return 70;case 90:return 71;case 91:return 72;case 92:return 5;case 93:return 10}},"anonymous"),rules:[/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:((?!\n)\s)+)/i,/^(?:#[^\n]*)/i,/^(?:%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:([0-9]+(\.[0-9]{1,2})?|\.[0-9]{1,2})(?=[ \n]+))/i,/^(?:@\{)/i,/^(?:[^\}]+)/i,/^(?:\}(?=\s+as\s))/i,/^(?:\})/i,/^(?:[^\<->\->:\n,;@\s]+(?=@\{))/i,/^(?:[^<>:\n,;@\s]+(?=\s+as\s))/i,/^(?:[^<>:\n,;@]+(?=\s*[\n;#]|$))/i,/^(?:[^<>:\n,;@]*<[^\n]*)/i,/^(?:[^\n]+)/i,/^(?:box\b)/i,/^(?:participant\b)/i,/^(?:actor\b)/i,/^(?:create\b)/i,/^(?:destroy\b)/i,/^(?:as\b)/i,/^(?:(?:))/i,/^(?:loop\b)/i,/^(?:rect\b)/i,/^(?:opt\b)/i,/^(?:alt\b)/i,/^(?:else\b)/i,/^(?:par\b)/i,/^(?:par_over\b)/i,/^(?:and\b)/i,/^(?:critical\b)/i,/^(?:option\b)/i,/^(?:break\b)/i,/^(?:(?:[:]?(?:no)?wrap)?[^#\n;]*)/i,/^(?:end\b)/i,/^(?:left of\b)/i,/^(?:right of\b)/i,/^(?:links\b)/i,/^(?:link\b)/i,/^(?:properties\b)/i,/^(?:details\b)/i,/^(?:over\b)/i,/^(?:note\b)/i,/^(?:activate\b)/i,/^(?:deactivate\b)/i,/^(?:title\s[^#\n;]+)/i,/^(?:title:\s[^#\n;]+)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:sequenceDiagram\b)/i,/^(?:autonumber\b)/i,/^(?:off\b)/i,/^(?:,)/i,/^(?:;)/i,/^(?:[^\/\\\+\()\+<\->\->:\n,;]+((?!(-x|--x|-\)|--\)|-\|\\|-\\|-\/|-\/\/|-\|\/|\/\|-|\\\|-|\/\/-|\\\\-|\/\|-|--\|\\|--|\(\)))[\-]*[^\+<\->\->:\n,;]+)*)/i,/^(?:->>)/i,/^(?:<<->>)/i,/^(?:-->>)/i,/^(?:<<-->>)/i,/^(?:->)/i,/^(?:-->)/i,/^(?:-[x])/i,/^(?:--[x])/i,/^(?:-[\)])/i,/^(?:--[\)])/i,/^(?:--\|\\)/i,/^(?:--\|\/)/i,/^(?:--\\\\)/i,/^(?:--\/\/)/i,/^(?:\/\|--)/i,/^(?:\\\|--)/i,/^(?:\/\/--)/i,/^(?:\\\\--)/i,/^(?:-\|\\)/i,/^(?:-\|\/)/i,/^(?:-\\\\)/i,/^(?:-\/\/)/i,/^(?:\/\|-)/i,/^(?:\\\|-)/i,/^(?:\/\/-)/i,/^(?:\\\\-)/i,/^(?::(?:(?:no)?wrap)?[^#\n;]*)/i,/^(?::)/i,/^(?:\+)/i,/^(?:-)/i,/^(?:\(\))/i,/^(?:$)/i,/^(?:.)/i],conditions:{acc_descr_multiline:{rules:[53,54],inclusive:!1},acc_descr:{rules:[51],inclusive:!1},acc_title:{rules:[49],inclusive:!1},ID:{rules:[2,3,7,11,12,13,14,15],inclusive:!1},ALIAS:{rules:[2,3,21,22],inclusive:!1},LINE:{rules:[2,3,34],inclusive:!1},CONFIG:{rules:[8,9,10],inclusive:!1},CONFIG_DATA:{rules:[],inclusive:!1},INITIAL:{rules:[0,1,3,4,5,6,16,17,18,19,20,23,24,25,26,27,28,29,30,31,32,33,35,36,37,38,39,40,41,42,43,44,45,46,47,48,50,52,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93],inclusive:!0}}};return ft})();re.lexer=yr;function Wt(){this.yy={}}return f(Wt,"Parser"),Wt.prototype=re,re.Parser=Wt,new Wt})();Te.parser=Te;var kr=Te,Nr={SOLID:0,DOTTED:1,NOTE:2,SOLID_CROSS:3,DOTTED_CROSS:4,SOLID_OPEN:5,DOTTED_OPEN:6,LOOP_START:10,LOOP_END:11,ALT_START:12,ALT_ELSE:13,ALT_END:14,OPT_START:15,OPT_END:16,ACTIVE_START:17,ACTIVE_END:18,PAR_START:19,PAR_AND:20,PAR_END:21,RECT_START:22,RECT_END:23,SOLID_POINT:24,DOTTED_POINT:25,AUTONUMBER:26,CRITICAL_START:27,CRITICAL_OPTION:28,CRITICAL_END:29,BREAK_START:30,BREAK_END:31,PAR_OVER_START:32,BIDIRECTIONAL_SOLID:33,BIDIRECTIONAL_DOTTED:34,SOLID_TOP:41,SOLID_BOTTOM:42,STICK_TOP:43,STICK_BOTTOM:44,SOLID_ARROW_TOP_REVERSE:45,SOLID_ARROW_BOTTOM_REVERSE:46,STICK_ARROW_TOP_REVERSE:47,STICK_ARROW_BOTTOM_REVERSE:48,SOLID_TOP_DOTTED:51,SOLID_BOTTOM_DOTTED:52,STICK_TOP_DOTTED:53,STICK_BOTTOM_DOTTED:54,SOLID_ARROW_TOP_REVERSE_DOTTED:55,SOLID_ARROW_BOTTOM_REVERSE_DOTTED:56,STICK_ARROW_TOP_REVERSE_DOTTED:57,STICK_ARROW_BOTTOM_REVERSE_DOTTED:58,CENTRAL_CONNECTION:59,CENTRAL_CONNECTION_REVERSE:60,CENTRAL_CONNECTION_DUAL:61},wr={FILLED:0,OPEN:1},Pr={LEFTOF:0,RIGHTOF:1,OVER:2},Gt={ACTOR:"actor",BOUNDARY:"boundary",COLLECTIONS:"collections",CONTROL:"control",DATABASE:"database",ENTITY:"entity",PARTICIPANT:"participant",QUEUE:"queue"},Dr=class{constructor(){this.state=new ir(()=>({prevActor:void 0,actors:new Map,createdActors:new Map,destroyedActors:new Map,boxes:[],messages:[],notes:[],sequenceNumbersEnabled:!1,wrapEnabled:void 0,currentBox:void 0,lastCreated:void 0,lastDestroyed:void 0})),this.setAccTitle=le,this.setAccDescription=Je,this.setDiagramTitle=Ze,this.getAccTitle=Xe,this.getAccDescription=Qe,this.getDiagramTitle=$e,this.apply=this.apply.bind(this),this.parseBoxData=this.parseBoxData.bind(this),this.parseMessage=this.parseMessage.bind(this),this.clear(),this.setWrap(j().wrap),this.LINETYPE=Nr,this.ARROWTYPE=wr,this.PLACEMENT=Pr}static{f(this,"SequenceDB")}addBox(e){this.state.records.boxes.push({name:e.text,wrap:e.wrap??this.autoWrap(),fill:e.color,actorKeys:[]}),this.state.records.currentBox=this.state.records.boxes.slice(-1)[0]}addActor(e,t,a,r,i){let c=this.state.records.currentBox,s;if(i!==void 0){let p;i.includes(` +`)?p=i+` +`:p=`{ +`+i+` +}`,s=er(p,{schema:tr})}r=s?.type??r,s?.alias&&(!a||a.text===t)&&(a={text:s.alias,wrap:a?.wrap,type:r});let n=this.state.records.actors.get(e);if(n){if(this.state.records.currentBox&&n.box&&this.state.records.currentBox!==n.box)throw new Error(`A same participant should only be defined in one Box: ${n.name} can't be in '${n.box.name}' and in '${this.state.records.currentBox.name}' at the same time.`);if(c=n.box?n.box:this.state.records.currentBox,n.box=c,n&&t===n.name&&a==null)return}if(a?.text==null&&(a={text:t,type:r}),(r==null||a.text==null)&&(a={text:t,type:r}),this.state.records.actors.set(e,{box:c,name:t,description:a.text,wrap:a.wrap??this.autoWrap(),prevActor:this.state.records.prevActor,links:{},properties:{},actorCnt:null,rectData:null,type:r??"participant"}),this.state.records.prevActor){let p=this.state.records.actors.get(this.state.records.prevActor);p&&(p.nextActor=e)}this.state.records.currentBox&&this.state.records.currentBox.actorKeys.push(e),this.state.records.prevActor=e}activationCount(e){let t,a=0;if(!e)return 0;for(t=0;t>-",token:"->>-",line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["'ACTIVE_PARTICIPANT'"]},n}return this.state.records.messages.push({id:this.state.records.messages.length.toString(),from:e,to:t,message:a?.text??"",wrap:a?.wrap??this.autoWrap(),type:r,activate:i,centralConnection:c??0}),!0}hasAtLeastOneBox(){return this.state.records.boxes.length>0}hasAtLeastOneBoxWithTitle(){return this.state.records.boxes.some(e=>e.name)}getMessages(){return this.state.records.messages}getBoxes(){return this.state.records.boxes}getActors(){return this.state.records.actors}getCreatedActors(){return this.state.records.createdActors}getDestroyedActors(){return this.state.records.destroyedActors}getActor(e){return this.state.records.actors.get(e)}getActorKeys(){return[...this.state.records.actors.keys()]}enableSequenceNumbers(){this.state.records.sequenceNumbersEnabled=!0}disableSequenceNumbers(){this.state.records.sequenceNumbersEnabled=!1}showSequenceNumbers(){return this.state.records.sequenceNumbersEnabled}setWrap(e){this.state.records.wrapEnabled=e}extractWrap(e){if(e===void 0)return{};e=e.trim();let t=/^:?wrap:/.exec(e)!==null?!0:/^:?nowrap:/.exec(e)!==null?!1:void 0;return{cleanedText:(t===void 0?e:e.replace(/^:?(?:no)?wrap:/,"")).trim(),wrap:t}}autoWrap(){return this.state.records.wrapEnabled!==void 0?this.state.records.wrapEnabled:j().sequence?.wrap??!1}clear(){this.state.reset(),Ge()}parseMessage(e){let t=e.trim(),{wrap:a,cleanedText:r}=this.extractWrap(t),i={text:r,wrap:a};return et.debug(`parseMessage: ${JSON.stringify(i)}`),i}parseBoxData(e){let t=/^((?:rgba?|hsla?)\s*\(.*\)|\w*)(.*)$/.exec(e),a=t?.[1]?t[1].trim():"transparent",r=t?.[2]?t[2].trim():void 0;if(window?.CSS)window.CSS.supports("color",a)||(a="transparent",r=e.trim());else{let s=new Option().style;s.color=a,s.color!==a&&(a="transparent",r=e.trim())}let{wrap:i,cleanedText:c}=this.extractWrap(r);return{text:c?vt(c,j()):void 0,color:a,wrap:i}}addNote(e,t,a){let r={actor:e,placement:t,message:a.text,wrap:a.wrap??this.autoWrap()},i=[].concat(e,e);this.state.records.notes.push(r),this.state.records.messages.push({id:this.state.records.messages.length.toString(),from:i[0],to:i[1],message:a.text,wrap:a.wrap??this.autoWrap(),type:this.LINETYPE.NOTE,placement:t})}addLinks(e,t){let a=this.getActor(e);try{let r=vt(t.text,j());r=r.replace(/=/g,"="),r=r.replace(/&/g,"&");let i=JSON.parse(r);this.insertLinks(a,i)}catch(r){et.error("error while parsing actor link text",r)}}addALink(e,t){let a=this.getActor(e);try{let r={},i=vt(t.text,j()),c=i.indexOf("@");i=i.replace(/=/g,"="),i=i.replace(/&/g,"&");let s=i.slice(0,c-1).trim(),n=i.slice(c+1).trim();r[s]=n,this.insertLinks(a,r)}catch(r){et.error("error while parsing actor link text",r)}}insertLinks(e,t){if(e.links==null)e.links=t;else for(let a in t)e.links[a]=t[a]}addProperties(e,t){let a=this.getActor(e);try{let r=vt(t.text,j()),i=JSON.parse(r);this.insertProperties(a,i)}catch(r){et.error("error while parsing actor properties text",r)}}insertProperties(e,t){if(e.properties==null)e.properties=t;else for(let a in t)e.properties[a]=t[a]}boxEnd(){this.state.records.currentBox=void 0}addDetails(e,t){let a=this.getActor(e),r=document.getElementById(t.text);try{let i=r.innerHTML,c=JSON.parse(i);c.properties&&this.insertProperties(a,c.properties),c.links&&this.insertLinks(a,c.links)}catch(i){et.error("error while parsing actor details text",i)}}getActorProperty(e,t){if(e?.properties!==void 0)return e.properties[t]}apply(e){if(Array.isArray(e))e.forEach(t=>{this.apply(t)});else switch(e.type){case"sequenceIndex":this.state.records.messages.push({id:this.state.records.messages.length.toString(),from:void 0,to:void 0,message:{start:e.sequenceIndex,step:e.sequenceIndexStep,visible:e.sequenceVisible},wrap:!1,type:e.signalType});break;case"addParticipant":this.addActor(e.actor,e.actor,e.description,e.draw,e.config);break;case"createParticipant":if(this.state.records.actors.has(e.actor))throw new Error("It is not possible to have actors with the same id, even if one is destroyed before the next is created. Use 'AS' aliases to simulate the behavior");this.state.records.lastCreated=e.actor,this.addActor(e.actor,e.actor,e.description,e.draw,e.config),this.state.records.createdActors.set(e.actor,this.state.records.messages.length);break;case"destroyParticipant":this.state.records.lastDestroyed=e.actor,this.state.records.destroyedActors.set(e.actor,this.state.records.messages.length);break;case"activeStart":this.addSignal(e.actor,void 0,void 0,e.signalType);break;case"centralConnection":this.addSignal(e.actor,void 0,void 0,e.signalType);break;case"centralConnectionReverse":this.addSignal(e.actor,void 0,void 0,e.signalType);break;case"activeEnd":this.addSignal(e.actor,void 0,void 0,e.signalType);break;case"addNote":this.addNote(e.actor,e.placement,e.text);break;case"addLinks":this.addLinks(e.actor,e.text);break;case"addALink":this.addALink(e.actor,e.text);break;case"addProperties":this.addProperties(e.actor,e.text);break;case"addDetails":this.addDetails(e.actor,e.text);break;case"addMessage":if(this.state.records.lastCreated){if(e.to!==this.state.records.lastCreated)throw new Error("The created participant "+this.state.records.lastCreated.name+" does not have an associated creating message after its declaration. Please check the sequence diagram.");this.state.records.lastCreated=void 0}else if(this.state.records.lastDestroyed){if(e.to!==this.state.records.lastDestroyed&&e.from!==this.state.records.lastDestroyed)throw new Error("The destroyed participant "+this.state.records.lastDestroyed.name+" does not have an associated destroying message after its declaration. Please check the sequence diagram.");this.state.records.lastDestroyed=void 0}this.addSignal(e.from,e.to,e.msg,e.signalType,e.activate,e.centralConnection);break;case"boxStart":this.addBox(e.boxData);break;case"boxEnd":this.boxEnd();break;case"loopStart":this.addSignal(void 0,void 0,e.loopText,e.signalType);break;case"loopEnd":this.addSignal(void 0,void 0,void 0,e.signalType);break;case"rectStart":this.addSignal(void 0,void 0,e.color,e.signalType);break;case"rectEnd":this.addSignal(void 0,void 0,void 0,e.signalType);break;case"optStart":this.addSignal(void 0,void 0,e.optText,e.signalType);break;case"optEnd":this.addSignal(void 0,void 0,void 0,e.signalType);break;case"altStart":this.addSignal(void 0,void 0,e.altText,e.signalType);break;case"else":this.addSignal(void 0,void 0,e.altText,e.signalType);break;case"altEnd":this.addSignal(void 0,void 0,void 0,e.signalType);break;case"setAccTitle":le(e.text);break;case"parStart":this.addSignal(void 0,void 0,e.parText,e.signalType);break;case"and":this.addSignal(void 0,void 0,e.parText,e.signalType);break;case"parEnd":this.addSignal(void 0,void 0,void 0,e.signalType);break;case"criticalStart":this.addSignal(void 0,void 0,e.criticalText,e.signalType);break;case"option":this.addSignal(void 0,void 0,e.optionText,e.signalType);break;case"criticalEnd":this.addSignal(void 0,void 0,void 0,e.signalType);break;case"breakStart":this.addSignal(void 0,void 0,e.breakText,e.signalType);break;case"breakEnd":this.addSignal(void 0,void 0,void 0,e.signalType);break}}getConfig(){return j().sequence}},vr=f(e=>{let t=e.dropShadow??"none",{look:a}=j();return`.actor { + stroke: ${e.actorBorder}; + fill: ${e.actorBkg}; + stroke-width: ${e.strokeWidth??1}; + } + + rect.actor.outer-path[data-look="neo"] { + filter: ${t}; + } + + rect.note[data-look="neo"] { + stroke:${e.noteBorderColor}; + fill:${e.noteBkgColor}; + filter: ${t}; + } + + text.actor > tspan { + fill: ${e.actorTextColor}; + stroke: none; + } + + .actor-line { + stroke: ${e.actorLineColor}; + } + + .innerArc { + stroke-width: 1.5; + stroke-dasharray: none; + } + + .messageLine0 { + stroke-width: 1.5; + stroke-dasharray: none; + stroke: ${e.signalColor}; + } + + .messageLine1 { + stroke-width: 1.5; + stroke-dasharray: 2, 2; + stroke: ${e.signalColor}; + } + + [id$="-arrowhead"] path { + fill: ${e.signalColor}; + stroke: ${e.signalColor}; + } + + .sequenceNumber { + fill: ${e.sequenceNumberColor}; + } + + [id$="-sequencenumber"] { + fill: ${e.signalColor}; + } + + [id$="-crosshead"] path { + fill: ${e.signalColor}; + stroke: ${e.signalColor}; + } + + .messageText { + fill: ${e.signalTextColor}; + stroke: none; + } + + .labelBox { + stroke: ${e.labelBoxBorderColor}; + fill: ${e.labelBoxBkgColor}; + filter: ${a==="neo"?t:"none"}; + } + + .labelText, .labelText > tspan { + fill: ${e.labelTextColor}; + stroke: none; + } + + .loopText, .loopText > tspan { + fill: ${e.loopTextColor}; + stroke: none; + } + + .sectionTitle, .sectionTitle > tspan { + fill: ${e.loopTextColor}; + stroke: none; + } + + .loopLine { + stroke-width: 2px; + stroke-dasharray: 2, 2; + stroke: ${e.labelBoxBorderColor}; + fill: ${e.labelBoxBorderColor}; + } + + .note { + //stroke: #decc93; + stroke: ${e.noteBorderColor}; + fill: ${e.noteBkgColor}; + } + + /* + * No font-weight here, deliberately. Note text renders inside tspan elements, and a weight emitted at + * tspan level outranks the inline style drawText puts on the parent text element from the + * sequence.noteFontWeight config key -- so that documented key would never reach the glyphs. + * The theme variable formerly emitted here is a different value from that config key, and + * git/styles.js reads it as its own bold-label weight under redux and neo, so it cannot be + * lowered there either. + */ + .noteText, .noteText > tspan { + fill: ${e.noteTextColor}; + stroke: none; + } + + .activation0 { + fill: ${e.activationBkgColor}; + stroke: ${e.activationBorderColor}; + } + + .activation1 { + fill: ${e.activationBkgColor}; + stroke: ${e.activationBorderColor}; + } + + .activation2 { + fill: ${e.activationBkgColor}; + stroke: ${e.activationBorderColor}; + } + + .actorPopupMenu { + position: absolute; + } + + .actorPopupMenuPanel { + position: absolute; + fill: ${e.actorBkg}; + box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2); + filter: drop-shadow(3px 5px 2px rgb(0 0 0 / 0.4)); +} + .actor-man circle, line { + fill: ${e.actorBkg}; + stroke-width: 2px; + } + + g rect.rect { + filter: ${t}; + stroke: ${e.nodeBorder}; + } +`},"getStyles"),Cr=vr,Qt=44,fe=6,Xt=6,Mr=f((e,t)=>e.actorTextHeight??Q.calculateTextDimensions(e.description??"",{fontFamily:t.actorFontFamily,fontSize:t.actorFontSize,fontWeight:t.actorFontWeight}).height,"actorLabelHeight"),lr=f(e=>Qt+fe+e+Xt,"actorStackHeight"),Br=f((e,t,a)=>{let r=e+t,i=r-Xt-a/2;return{lifelineStartY:r,glyphBottomY:r-Xt-a-fe,labelCenterY:i}},"headerBands"),Yr=f((e,t)=>{let a=e+Xt,r=a+Qt;return{glyphTopY:a,glyphBottomY:r,labelCenterY:r+fe+t/2,stackHeight:lr(t)}},"footerBands"),yt=36,Vr=-5,hr=60,nr=hr-Vr,Bt=f((e,t,a,r)=>{if(t.look!=="neo")return null;let i=Mr(e,t);return a?Yr(r,i):Br(r,e.height,i)},"neoBands"),_t="actor-top",gt="actor-bottom",Zt="actor-box",Rt="actor-man",Et=new Set(["redux-color","redux-dark-color"]),J=f((e,t)=>e?.length?e[t%e.length]:void 0,"paletteColor"),Mt=f(function(e,t){let a=ar(e,t);return Dt().look==="neo"&&a.attr("data-look","neo"),a},"drawRect"),Wr=f(function(e,t,a,r,i){if(t.links===void 0||t.links===null||Object.keys(t.links).length===0)return{height:0,width:0};let c=t.links,s=t.actorCnt,n=t.rectData;var p="none";i&&(p="block !important");let d=e.append("g");d.attr("id","actor"+s+"_popup"),d.attr("class","actorPopupMenu"),d.attr("display",p);var E="";n.class!==void 0&&(E=" "+n.class);let u=n.width>a?n.width:a,_=d.append("rect");if(_.attr("class","actorPopupMenuPanel"+E),_.attr("x",n.x),_.attr("y",n.height),_.attr("fill",n.fill),_.attr("stroke",n.stroke),_.attr("width",u),_.attr("height",n.height),_.attr("rx",n.rx),_.attr("ry",n.ry),c!=null){var O=20;for(let h in c){var g=d.append("a"),y=(0,ue.sanitizeUrl)(c[h]);g.attr("xlink:href",y),g.attr("target","_blank"),la(r)(h,g,n.x+10,n.height+O,u,20,{class:"actor"},r),O+=30}}return _.attr("height",O),{height:n.height+O,width:u}},"drawPopup"),$t=f(function(e){return"var pu = document.getElementById('"+e+"'); if (pu != null) { pu.style.display = pu.style.display == 'block' ? 'none' : 'block'; }"},"popupMenuToggle"),Jt=f(async function(e,t,a=null){let r=e.append("foreignObject"),i=await ce(t.text,Dt()),s=r.append("xhtml:div").attr("style","width: fit-content;").attr("xmlns","http://www.w3.org/1999/xhtml").html(i).node().getBoundingClientRect();if(r.attr("height",Math.round(s.height)).attr("width",Math.round(s.width)),t.class==="noteText"){let n=e.node().firstChild;n.setAttribute("height",s.height+2*t.textMargin);let p=n.getBBox();r.attr("x",Math.round(p.x+p.width/2-s.width/2)).attr("y",Math.round(p.y+p.height/2-s.height/2))}else if(a){let{startx:n,stopx:p,starty:d}=a;if(n>p){let E=n;n=p,p=E}r.attr("x",Math.round(n+Math.abs(n-p)/2-s.width/2)),t.class==="loopText"?r.attr("y",Math.round(d)):r.attr("y",Math.round(d-s.height))}return[r]},"drawKatex"),kt=f(function(e,t){let a=0,r=0,i=t.text.split(N.lineBreakRegex),[c,s]=he(t.fontSize),n=[],p=0,d=f(()=>t.y,"yfunc");if(t.valign!==void 0&&t.textMargin!==void 0&&t.textMargin>0)switch(t.valign){case"top":case"start":d=f(()=>Math.round(t.y+t.textMargin),"yfunc");break;case"middle":case"center":d=f(()=>Math.round(t.y+(a+r+t.textMargin)/2),"yfunc");break;case"bottom":case"end":d=f(()=>Math.round(t.y+(a+r+2*t.textMargin)-t.textMargin),"yfunc");break}if(t.anchor!==void 0&&t.textMargin!==void 0&&t.width!==void 0)switch(t.anchor){case"left":case"start":t.x=Math.round(t.x+t.textMargin),t.anchor="start",t.dominantBaseline="middle",t.alignmentBaseline="middle";break;case"middle":case"center":t.x=Math.round(t.x+t.width/2),t.anchor="middle",t.dominantBaseline="middle",t.alignmentBaseline="middle";break;case"right":case"end":t.x=Math.round(t.x+t.width-t.textMargin),t.anchor="end",t.dominantBaseline="middle",t.alignmentBaseline="middle";break}for(let[E,u]of i.entries()){t.textMargin!==void 0&&t.textMargin===0&&c!==void 0&&(p=E*c);let _=e.append("text");_.attr("x",t.x),_.attr("y",d()),t.anchor!==void 0&&_.attr("text-anchor",t.anchor).attr("dominant-baseline",t.dominantBaseline).attr("alignment-baseline",t.alignmentBaseline),t.fontFamily!==void 0&&_.style("font-family",t.fontFamily),s!==void 0&&_.style("font-size",s),t.fontWeight!==void 0&&_.style("font-weight",t.fontWeight),t.fill!==void 0&&_.attr("fill",t.fill),t.class!==void 0&&_.attr("class",t.class),t.dy!==void 0?_.attr("dy",t.dy):p!==0&&_.attr("dy",p);let O=u||rr;if(t.tspan){let g=_.append("tspan");g.attr("x",t.x),t.fill!==void 0&&g.attr("fill",t.fill),g.text(O)}else _.text(O);t.valign!==void 0&&t.textMargin!==void 0&&t.textMargin>0&&(r+=(_._groups||_)[0][0].getBBox().height,a=r),n.push(_)}return n},"drawText"),dr=f(function(e,t){function a(i,c,s,n,p){return i+","+c+" "+(i+s)+","+c+" "+(i+s)+","+(c+n-p)+" "+(i+s-p*1.2)+","+(c+n)+" "+i+","+(c+n)}f(a,"genPoints");let r=e.append("polygon");return r.attr("points",a(t.x,t.y,t.width,t.height,7)),r.attr("class","labelBox"),t.y=t.y+t.height/2,kt(e,t),r},"drawLabel"),Y=-1,Tr=f((e,t,a,r)=>{e.select&&a.forEach(i=>{let c=t.get(i),s=e.select("#actor"+c.actorCnt);!r.mirrorActors&&c.stopy?s.attr("y2",c.stopy+c.height/2):r.mirrorActors&&s.attr("y2",c.stopy)})},"fixLifeLineHeights"),Kr=f(function(e,t,a,r,i,c){let s=r?t.stopy:t.starty,n=t.x+t.width/2,p=s+t.height,{look:d,theme:E,themeVariables:u}=a,{bkgColorArray:_,borderColorArray:O}=u,g=e.append("g").lower();var y=g;r||(Y++,Object.keys(t.links||{}).length&&!a.forceMenus&&y.attr("onclick",$t(`actor${Y}_popup`)).attr("cursor","pointer"),y.append("line").attr("id","actor"+Y).attr("x1",n).attr("y1",p).attr("x2",n).attr("y2",2e3).attr("class","actor-line 200").attr("stroke-width","0.5px").attr("stroke","#999").attr("name",t.name).attr("data-et","life-line").attr("data-id",t.name),y=g.append("g"),t.actorCnt=Y,t.links!=null&&y.attr("id","root-"+Y),d==="neo"&&y.attr("data-look","neo"));let h=dt();var R="actor";t.properties?.class?R=t.properties.class:h.fill="#eaeaea",r?R+=` ${gt}`:R+=` ${_t}`,h.x=t.x,h.y=s,h.width=t.width,h.height=t.height,h.class=R,h.rx=3,h.ry=3,h.name=t.name,d==="neo"&&(h.rx=6,h.ry=6);let x=Mt(y,h),m=c.get(t.name)??0;if(Et.has(E)&&(x.style("stroke",J(O,m)),x.style("fill",J(_,m))),d==="neo"&&x.attr("filter",`url(#${xt(i)})`),t.rectData=h,t.properties?.icon){let L=t.properties.icon.trim();L.charAt(0)==="@"?zt(y,h.x+h.width-20,h.y+10,L.substr(1)):qt(y,h.x+h.width-20,h.y+10,L)}r||(y.attr("data-et","participant"),y.attr("data-type","participant"),y.attr("data-id",t.name)),ut(a,$(t.description))(t.description,y,h.x,h.y,h.width,h.height,{class:`actor ${Zt}`},a);let S=t.height;if(x.node){let L=x.node().getBBox();a.look!=="neo"&&(t.height=L.height,S=L.height)}return S},"drawActorTypeParticipant"),Hr=f(function(e,t,a,r,i,c){let s=r?t.stopy:t.starty,n=t.x+t.width/2,p=s+t.height,{look:d,theme:E,themeVariables:u}=a,{bkgColorArray:_,borderColorArray:O}=u,g=e.append("g").lower();var y=g;r||(Y++,Object.keys(t.links||{}).length&&!a.forceMenus&&y.attr("onclick",$t(`actor${Y}_popup`)).attr("cursor","pointer"),y.append("line").attr("id","actor"+Y).attr("x1",n).attr("y1",p).attr("x2",n).attr("y2",2e3).attr("class","actor-line 200").attr("stroke-width","0.5px").attr("stroke","#999").attr("name",t.name).attr("data-et","life-line").attr("data-id",t.name),y=g.append("g"),t.actorCnt=Y,t.links!=null&&y.attr("id","root-"+Y),d==="neo"&&y.attr("data-look","neo"));let h=dt();var R="actor";t.properties?.class?R=t.properties.class:h.fill="#eaeaea",r?R+=` ${gt}`:R+=` ${_t}`,h.x=t.x,h.y=s,h.width=t.width,h.height=t.height,h.class=R,h.name=t.name;let x=6;a.look==="neo"&&(h.height=t.height-x);let m={...h,x:h.x+-x,y:h.y+ +x,class:"actor"},S=Mt(y,h),L=Mt(y,m);t.rectData=h,d==="neo"&&y.attr("filter",`url(#${xt(i)})`);let w=c.get(t.name)??0;if(Et.has(E)&&(S.style("stroke",J(O,w)),S.style("fill",J(_,w)),L.style("stroke",J(O,w)),L.style("fill",J(_,w))),t.properties?.icon){let B=t.properties.icon.trim();B.charAt(0)==="@"?zt(y,h.x+h.width-20,h.y+10,B.substr(1)):qt(y,h.x+h.width-20,h.y+10,B)}ut(a,$(t.description))(t.description,y,h.x-x,h.y+x,h.width,h.height,{class:`actor ${Zt}`},a);let P=t.height;if(S.node){let B=S.node().getBBox();a.look!=="neo"&&(t.height=B.height,P=B.height)}return r||(y.attr("data-et","participant"),y.attr("data-type","collections"),y.attr("data-id",t.name)),P},"drawActorTypeCollections"),Fr=f(function(e,t,a,r,i,c){let s=r?t.stopy:t.starty,n=t.x+t.width/2,p=s+t.height,{look:d,theme:E,themeVariables:u}=a,{bkgColorArray:_,borderColorArray:O}=u,g=e.append("g").lower(),y=g;r||(Y++,Object.keys(t.links||{}).length&&!a.forceMenus&&y.attr("onclick",$t(`actor${Y}_popup`)).attr("cursor","pointer"),y.append("line").attr("id","actor"+Y).attr("x1",n).attr("y1",p).attr("x2",n).attr("y2",2e3).attr("class","actor-line 200").attr("stroke-width","0.5px").attr("stroke","#999").attr("name",t.name).attr("data-et","life-line").attr("data-id",t.name),y=g.append("g"),t.actorCnt=Y,t.links!=null&&y.attr("id","root-"+Y),d==="neo"&&y.attr("data-look","neo"));let h=dt(),R="actor";t.properties?.class?R=t.properties.class:h.fill="#eaeaea",r?R+=` ${gt}`:R+=` ${_t}`,y.attr("class",R),h.x=t.x,h.y=s,h.width=t.width,h.height=t.height,h.name=t.name;let x=h.height/2,m=x/(2.5+h.height/50),S=y.append("g"),L=y.append("g"),w=`M ${h.x},${h.y+x} + a ${m},${x} 0 0 0 0,${h.height} + h ${h.width-2*m} + a ${m},${x} 0 0 0 0,-${h.height} + Z + `;S.append("path").attr("d",w),L.append("path").attr("d",`M ${h.x},${h.y+x} + a ${m},${x} 0 0 0 0,${h.height}`),S.attr("transform",`translate(${m}, ${-(h.height/2)})`),L.attr("transform",`translate(${h.width-m}, ${-h.height/2})`),t.rectData=h,d==="neo"&&S.attr("filter",`url(#${xt(i)})`);let P=c.get(t.name)??0;if(Et.has(E)&&(S.style("stroke",J(O,P)),S.style("fill",J(_,P)),L.style("stroke",J(O,P)),L.style("fill",J(_,P))),t.properties?.icon){let K=t.properties.icon.trim(),U=h.x+h.width-20,X=h.y+10;K.charAt(0)==="@"?zt(y,U,X,K.substr(1)):qt(y,U,X,K)}ut(a,$(t.description))(t.description,y,h.x,h.y,h.width,h.height,{class:`actor ${Zt}`},a);let B=t.height,V=S.select("path:last-child");if(V.node()){let K=V.node().getBBox();a.look!=="neo"&&(t.height=K.height,B=K.height)}return r||(y.attr("data-et","participant"),y.attr("data-type","queue"),y.attr("data-id",t.name)),B},"drawActorTypeQueue"),qr=f(function(e,t,a,r,i,c){let s=r?t.stopy:t.starty,n=t.x+t.width/2,p=Bt(t,a,r,s),d=p?p.lifelineStartY:s+75,{look:E,theme:u,themeVariables:_}=a,{bkgColorArray:O,borderColorArray:g,actorBorder:y,actorBkg:h}=_,R=e.append("g").lower();r||(Y++,R.append("line").attr("id","actor"+Y).attr("x1",n).attr("y1",d).attr("x2",n).attr("y2",2e3).attr("class","actor-line 200").attr("stroke-width","0.5px").attr("stroke","#999").attr("name",t.name).attr("data-et","life-line").attr("data-id",t.name),t.actorCnt=Y);let x=e.append("g"),m=Rt;r?m+=` ${gt}`:m+=` ${_t}`,x.attr("class",m),x.attr("name",t.name);let S=dt();S.x=t.x,S.y=s,S.fill="#eaeaea",S.width=t.width,S.height=t.height,S.class="actor";let L=t.x+t.width/2,w=p?p.glyphBottomY-22:s+32,P=22;x.append("defs").append("marker").attr("id",i+"-filled-head-control").attr("refX",11).attr("refY",5.8).attr("markerWidth",20).attr("markerHeight",28).attr("orient","172.5").attr("stroke-width",1.2).append("path").attr("d","M 14.4 5.6 L 7.2 10.4 L 8.8 5.6 L 7.2 0.8 Z"),x.append("circle").attr("cx",L).attr("cy",w).attr("r",P).attr("filter",`${E==="neo"?`url(#${xt(i)})`:""}`),x.append("line").attr("marker-end","url(#"+i+"-filled-head-control)").attr("transform",`translate(${L}, ${w-P})`);let B=c.get(t.name)??0;if(Et.has(u)?(x.style("stroke",J(g,B)),x.style("fill",J(O,B))):(x.style("stroke",y),x.style("fill",h)),!p){let V=x.node().getBBox();t.height=V.height+2*(a?.sequence?.labelBoxHeight??0)}return ut(a,$(t.description))(t.description,x,S.x,p?p.labelCenterY-S.height/2:S.y+P+(r?5:12),S.width,S.height,{class:`actor ${Rt}`},a),r||(x.attr("data-et","participant"),x.attr("data-type","control"),x.attr("data-id",t.name)),t.height},"drawActorTypeControl"),zr=f(function(e,t,a,r,i,c){let s=r?t.stopy:t.starty,n=t.x+t.width/2,p=Bt(t,a,r,s),d=p?p.lifelineStartY:s+75,{look:E,theme:u,themeVariables:_}=a,{bkgColorArray:O,borderColorArray:g}=_,y=e.append("g").lower(),h=e.append("g"),R="actor";r?R+=` ${gt}`:R+=` ${_t}`,h.attr("class",R),h.attr("name",t.name);let x=dt();x.x=t.x,x.y=s,x.fill="#eaeaea",x.width=t.width,x.height=t.height,x.class="actor";let m=t.x+t.width/2,S=p?p.glyphBottomY-22:s+(r?10:25),L=22;h.append("circle").attr("cx",m).attr("cy",S).attr("r",L).attr("width",t.width).attr("height",t.height),h.append("line").attr("x1",m-L).attr("x2",m+L).attr("y1",S+L).attr("y2",S+L).attr("stroke-width",2),E==="neo"&&h.attr("filter",`url(#${xt(i)})`);let w=c.get(t.name)??0;if(Et.has(u)&&(h.style("stroke",J(g,w)),h.style("fill",J(O,w))),!p){let P=h.node().getBBox();t.height=P.height+(a?.sequence?.labelBoxHeight??0)}return r||(Y++,y.append("line").attr("id","actor"+Y).attr("x1",n).attr("y1",d).attr("x2",n).attr("y2",2e3).attr("class","actor-line 200").attr("stroke-width","0.5px").attr("stroke","#999").attr("name",t.name).attr("data-et","life-line").attr("data-id",t.name),t.actorCnt=Y),ut(a,$(t.description))(t.description,h,x.x,p?p.labelCenterY-x.height/2:x.y+(r?15:30),x.width,x.height,{class:`actor ${Rt}`},a),p||h.attr("transform",`translate(0, ${r?L:L/2-5})`),r||(h.attr("data-et","participant"),h.attr("data-type","entity"),h.attr("data-id",t.name)),t.height},"drawActorTypeEntity"),Ur=f(function(e,t,a,r,i,c){let s=r?t.stopy:t.starty,n=t.x+t.width/2,p=Bt(t,a,r,s),d=p?p.lifelineStartY:s+t.height+2*a.boxTextMargin,{theme:E,themeVariables:u,look:_}=a,{bkgColorArray:O,borderColorArray:g,actorBorder:y}=u,h=e.append("g").lower(),R=h;r||(Y++,Object.keys(t.links||{}).length&&!a.forceMenus&&R.attr("onclick",$t(`actor${Y}_popup`)).attr("cursor","pointer"),R.append("line").attr("id","actor"+Y).attr("x1",n).attr("y1",d).attr("x2",n).attr("y2",2e3).attr("class","actor-line 200").attr("stroke-width","0.5px").attr("stroke","#999").attr("name",t.name).attr("data-et","life-line").attr("data-id",t.name),R=h.append("g"),t.actorCnt=Y,t.links!=null&&R.attr("id","root-"+Y),_==="neo"&&R.attr("data-look","neo"));let x=dt(),m="actor";t.properties?.class?m=t.properties.class:x.fill="#eaeaea",r?m+=` ${gt}`:m+=` ${_t}`,x.x=t.x,x.y=s,x.width=t.width,x.height=t.height,x.class=m,x.name=t.name,x.x=t.x,x.y=s;let S=x.width/3,L=S/2,w=L/(2.5+S/50),P=p?Qt:x.width/3,B=p?p.glyphBottomY-P-w:x.y,V=R.append("g");V.attr("class",m);let K=` + M ${x.x},${B+w} + a ${L},${w} 0 0 0 ${S},0 + a ${L},${w} 0 0 0 -${S},0 + l 0,${P-2*w} + a ${L},${w} 0 0 0 ${S},0 + l 0,-${P-2*w} +`;V.append("path").attr("d",K),_==="neo"&&V.attr("filter",`url(#${xt(i)})`);let U=c.get(t.name)??0;if(Et.has(E)?(V.style("stroke",J(g,U)),V.style("fill",J(O,U))):V.style("stroke",y),V.attr("transform",`translate(${S}, ${w})`),t.rectData=x,ut(a,$(t.description))(t.description,R,x.x,p?p.labelCenterY-x.height/2:x.y+35,x.width,x.height,{class:`actor ${Zt}`},a),!p){let X=V.select("path:last-child");if(X.node()){let rt=X.node().getBBox();t.height=rt.height+(a.sequence.labelBoxHeight??0)}}return r||(R.attr("data-et","participant"),R.attr("data-type","database"),R.attr("data-id",t.name)),t.height},"drawActorTypeDatabase"),Gr=f(function(e,t,a,r,i,c){let s=r?t.stopy:t.starty,n=t.x+t.width/2,p=Bt(t,a,r,s),d=p?p.lifelineStartY:s+80,E=22,u=p?p.glyphBottomY-E:s+12,_=e.append("g").lower(),{look:O,theme:g,themeVariables:y}=a,{bkgColorArray:h,borderColorArray:R,actorBorder:x}=y;r||(Y++,_.append("line").attr("id","actor"+Y).attr("x1",n).attr("y1",d).attr("x2",n).attr("y2",2e3).attr("class","actor-line 200").attr("stroke-width","0.5px").attr("stroke","#999").attr("name",t.name).attr("data-et","life-line").attr("data-id",t.name),t.actorCnt=Y);let m=e.append("g"),S=Rt;r?S+=` ${gt}`:S+=` ${_t}`,m.attr("class",S),m.attr("name",t.name);let L=dt();L.x=t.x,L.y=s,L.fill="#eaeaea",L.width=t.width,L.height=t.height,L.class="actor",m.append("line").attr("id","actor-man-torso"+Y).attr("x1",t.x+t.width/2-E*2.5).attr("y1",u).attr("x2",t.x+t.width/2-15).attr("y2",u),m.append("line").attr("id","actor-man-arms"+Y).attr("x1",t.x+t.width/2-E*2.5).attr("y1",u-10).attr("x2",t.x+t.width/2-E*2.5).attr("y2",u+10),m.append("circle").attr("cx",t.x+t.width/2).attr("cy",u).attr("r",E),O==="neo"&&m.attr("filter",`url(#${xt(i)})`);let w=c.get(t.name)??0;if(Et.has(g)?(m.style("stroke",J(R,w)),m.style("fill",J(h,w))):m.style("stroke",x),!p){let P=m.node().getBBox();t.height=P.height+(a.sequence.labelBoxHeight??0)}return ut(a,$(t.description))(t.description,m,L.x,p?p.labelCenterY-L.height/2:L.y+15,L.width,L.height,{class:`actor ${Rt}`},a),p||m.attr("transform",`translate(0,${E/2+10})`),r||(m.attr("data-et","participant"),m.attr("data-type","boundary"),m.attr("data-id",t.name)),t.height},"drawActorTypeBoundary"),Xr=f(function(e,t,a,r,i){let c=r?t.stopy:t.starty,s=t.x+t.width/2,n=Bt(t,a,r,c),p=n?n.lifelineStartY:c+80,{theme:d,themeVariables:E}=a,{bkgColorArray:u,borderColorArray:_,actorBorder:O}=E,g=e.append("g").lower();r||(Y++,g.append("line").attr("id","actor"+Y).attr("x1",s).attr("y1",p).attr("x2",s).attr("y2",2e3).attr("class","actor-line 200").attr("stroke-width","0.5px").attr("stroke","#999").attr("name",t.name).attr("data-et","life-line").attr("data-id",t.name),t.actorCnt=Y);let y=e.append("g"),h=Rt;r?h+=` ${gt}`:h+=` ${_t}`,y.attr("class",h),y.attr("name",t.name),r||y.attr("data-et","participant").attr("data-type","actor").attr("data-id",t.name);let R=n?Qt/nr:1,x=f(P=>n?n.glyphBottomY-(hr-P)*R:c+P,"gy"),m=f(P=>s+P*R,"gx");y.append("line").attr("id","actor-man-torso"+Y).attr("x1",s).attr("y1",x(25)).attr("x2",s).attr("y2",x(45)),y.append("line").attr("id","actor-man-arms"+Y).attr("x1",m(-yt/2)).attr("y1",x(33)).attr("x2",m(yt/2)).attr("y2",x(33)),y.append("line").attr("x1",m(-yt/2)).attr("y1",x(60)).attr("x2",s).attr("y2",x(45)),y.append("line").attr("x1",s).attr("y1",x(45)).attr("x2",m(yt/2-2)).attr("y2",x(60));let S=y.append("circle");S.attr("cx",t.x+t.width/2),S.attr("cy",x(10)),S.attr("r",15*R),S.attr("width",t.width),S.attr("height",t.height),n||(t.height=nr);let L=dt();L.x=t.x,L.y=c,L.fill="#eaeaea",L.width=t.width,L.height=t.height,L.class="actor",L.rx=3,L.ry=3;let w=i.get(t.name)??0;return Et.has(d)?(y.style("stroke",J(_,w)),y.style("fill",J(u,w))):y.style("stroke",O),ut(a,$(t.description))(t.description,y,L.x,n?n.labelCenterY-L.height/2:c+35,L.width,L.height,{class:`actor ${Rt}`},a),t.height},"drawActorTypeActor"),Jr=f(async function(e,t,a,r,i,c,s){let n=s??new Map([...c.db.getActors().values()].map((p,d)=>[p.name,d]));switch(t.type){case"actor":return await Xr(e,t,a,r,n);case"participant":return await Kr(e,t,a,r,i,n);case"boundary":return await Gr(e,t,a,r,i,n);case"control":return await qr(e,t,a,r,i,n);case"entity":return await zr(e,t,a,r,i,n);case"database":return await Ur(e,t,a,r,i,n);case"collections":return await Hr(e,t,a,r,i,n);case"queue":return await Fr(e,t,a,r,i,n)}},"drawActor"),Qr=f(function(e,t,a){let i=e.append("g");pr(i,t),t.name&&ut(a)(t.name,i,t.x,t.y+a.boxTextMargin+(t.textMaxHeight||0)/2,t.width,0,{class:"text"},a),i.lower()},"drawBox"),Zr=f(function(e){return e.append("g")},"anchorElement"),$r=f(function(e,t,a,r,i,c,s){let{theme:n,themeVariables:p}=r,{bkgColorArray:d,borderColorArray:E,mainBkg:u}=p,_=dt(),O=t.anchored,g=t.actor;_.x=t.startx,_.y=t.starty,_.class="activation"+i%3,_.width=t.stopx-t.startx,_.height=a-t.starty;let y=Mt(O,_),R=(s??new Map([...c.db.getActors().values()].map((x,m)=>[x.name,m]))).get(g)??0;Et.has(n)&&(y.style("stroke",J(E,R)),y.style("fill",J(d,R)??u))},"drawActivation"),jr=f(async function(e,t,a,r,i){let{boxMargin:c,boxTextMargin:s,labelBoxHeight:n,labelBoxWidth:p,messageFontFamily:d,messageFontSize:E,messageFontWeight:u}=r,_=e.append("g").attr("data-et","control-structure").attr("data-id","i"+i.id),O=f(function(h,R,x,m){return _.append("line").attr("x1",h).attr("y1",R).attr("x2",x).attr("y2",m).attr("class","loopLine")},"drawLoopLine");O(t.startx,t.starty,t.stopx,t.starty),O(t.stopx,t.starty,t.stopx,t.stopy),O(t.startx,t.stopy,t.stopx,t.stopy),O(t.startx,t.starty,t.startx,t.stopy),t.sections!==void 0&&t.sections.forEach(function(h){O(t.startx,h.y,t.stopx,h.y).style("stroke-dasharray","3, 3")});let g=Ut();g.text=a,g.x=t.startx,g.y=t.starty,g.fontFamily=d,g.fontSize=E,g.fontWeight=u,g.anchor="middle",g.valign="middle",g.tspan=!1,g.width=Math.max(p??0,50),g.height=n+(r.look==="neo"?15:0)||20,g.textMargin=s,g.class="labelText",dr(_,g),g=Er(),g.text=t.title,g.x=t.startx+p/2+(t.stopx-t.startx)/2,g.y=t.starty+c+s,g.anchor="middle",g.valign="middle",g.textMargin=s,g.class="loopText",g.fontFamily=d,g.fontSize=E,g.fontWeight=u,g.wrap=!0;let y=$(g.text)?await Jt(_,g,t):kt(_,g);if(t.sectionTitles!==void 0){for(let[h,R]of Object.entries(t.sectionTitles))if(R.message){g.text=R.message,g.x=t.startx+(t.stopx-t.startx)/2,g.y=t.sections[h].y+c+s,g.class="sectionTitle",g.anchor="middle",g.valign="middle",g.tspan=!1,g.fontFamily=d,g.fontSize=E,g.fontWeight=u,g.wrap=t.wrap,$(g.text)?(t.starty=t.sections[h].y,await Jt(_,g,t)):kt(_,g);let x=Math.round(y.map(m=>(m._groups||m)[0][0].getBBox().height).reduce((m,S)=>m+S));t.sections[h].height+=x-(c+s)}}return t.height=Math.round(t.stopy-t.starty),_},"drawLoop"),pr=f(function(e,t){sr(e,t)},"drawBackgroundRect"),ta=f(function(e,t){e.append("defs").append("symbol").attr("id",t+"-database").attr("fill-rule","evenodd").attr("clip-rule","evenodd").append("path").attr("transform","scale(.5)").attr("d","M12.258.001l.256.004.255.005.253.008.251.01.249.012.247.015.246.016.242.019.241.02.239.023.236.024.233.027.231.028.229.031.225.032.223.034.22.036.217.038.214.04.211.041.208.043.205.045.201.046.198.048.194.05.191.051.187.053.183.054.18.056.175.057.172.059.168.06.163.061.16.063.155.064.15.066.074.033.073.033.071.034.07.034.069.035.068.035.067.035.066.035.064.036.064.036.062.036.06.036.06.037.058.037.058.037.055.038.055.038.053.038.052.038.051.039.05.039.048.039.047.039.045.04.044.04.043.04.041.04.04.041.039.041.037.041.036.041.034.041.033.042.032.042.03.042.029.042.027.042.026.043.024.043.023.043.021.043.02.043.018.044.017.043.015.044.013.044.012.044.011.045.009.044.007.045.006.045.004.045.002.045.001.045v17l-.001.045-.002.045-.004.045-.006.045-.007.045-.009.044-.011.045-.012.044-.013.044-.015.044-.017.043-.018.044-.02.043-.021.043-.023.043-.024.043-.026.043-.027.042-.029.042-.03.042-.032.042-.033.042-.034.041-.036.041-.037.041-.039.041-.04.041-.041.04-.043.04-.044.04-.045.04-.047.039-.048.039-.05.039-.051.039-.052.038-.053.038-.055.038-.055.038-.058.037-.058.037-.06.037-.06.036-.062.036-.064.036-.064.036-.066.035-.067.035-.068.035-.069.035-.07.034-.071.034-.073.033-.074.033-.15.066-.155.064-.16.063-.163.061-.168.06-.172.059-.175.057-.18.056-.183.054-.187.053-.191.051-.194.05-.198.048-.201.046-.205.045-.208.043-.211.041-.214.04-.217.038-.22.036-.223.034-.225.032-.229.031-.231.028-.233.027-.236.024-.239.023-.241.02-.242.019-.246.016-.247.015-.249.012-.251.01-.253.008-.255.005-.256.004-.258.001-.258-.001-.256-.004-.255-.005-.253-.008-.251-.01-.249-.012-.247-.015-.245-.016-.243-.019-.241-.02-.238-.023-.236-.024-.234-.027-.231-.028-.228-.031-.226-.032-.223-.034-.22-.036-.217-.038-.214-.04-.211-.041-.208-.043-.204-.045-.201-.046-.198-.048-.195-.05-.19-.051-.187-.053-.184-.054-.179-.056-.176-.057-.172-.059-.167-.06-.164-.061-.159-.063-.155-.064-.151-.066-.074-.033-.072-.033-.072-.034-.07-.034-.069-.035-.068-.035-.067-.035-.066-.035-.064-.036-.063-.036-.062-.036-.061-.036-.06-.037-.058-.037-.057-.037-.056-.038-.055-.038-.053-.038-.052-.038-.051-.039-.049-.039-.049-.039-.046-.039-.046-.04-.044-.04-.043-.04-.041-.04-.04-.041-.039-.041-.037-.041-.036-.041-.034-.041-.033-.042-.032-.042-.03-.042-.029-.042-.027-.042-.026-.043-.024-.043-.023-.043-.021-.043-.02-.043-.018-.044-.017-.043-.015-.044-.013-.044-.012-.044-.011-.045-.009-.044-.007-.045-.006-.045-.004-.045-.002-.045-.001-.045v-17l.001-.045.002-.045.004-.045.006-.045.007-.045.009-.044.011-.045.012-.044.013-.044.015-.044.017-.043.018-.044.02-.043.021-.043.023-.043.024-.043.026-.043.027-.042.029-.042.03-.042.032-.042.033-.042.034-.041.036-.041.037-.041.039-.041.04-.041.041-.04.043-.04.044-.04.046-.04.046-.039.049-.039.049-.039.051-.039.052-.038.053-.038.055-.038.056-.038.057-.037.058-.037.06-.037.061-.036.062-.036.063-.036.064-.036.066-.035.067-.035.068-.035.069-.035.07-.034.072-.034.072-.033.074-.033.151-.066.155-.064.159-.063.164-.061.167-.06.172-.059.176-.057.179-.056.184-.054.187-.053.19-.051.195-.05.198-.048.201-.046.204-.045.208-.043.211-.041.214-.04.217-.038.22-.036.223-.034.226-.032.228-.031.231-.028.234-.027.236-.024.238-.023.241-.02.243-.019.245-.016.247-.015.249-.012.251-.01.253-.008.255-.005.256-.004.258-.001.258.001zm-9.258 20.499v.01l.001.021.003.021.004.022.005.021.006.022.007.022.009.023.01.022.011.023.012.023.013.023.015.023.016.024.017.023.018.024.019.024.021.024.022.025.023.024.024.025.052.049.056.05.061.051.066.051.07.051.075.051.079.052.084.052.088.052.092.052.097.052.102.051.105.052.11.052.114.051.119.051.123.051.127.05.131.05.135.05.139.048.144.049.147.047.152.047.155.047.16.045.163.045.167.043.171.043.176.041.178.041.183.039.187.039.19.037.194.035.197.035.202.033.204.031.209.03.212.029.216.027.219.025.222.024.226.021.23.02.233.018.236.016.24.015.243.012.246.01.249.008.253.005.256.004.259.001.26-.001.257-.004.254-.005.25-.008.247-.011.244-.012.241-.014.237-.016.233-.018.231-.021.226-.021.224-.024.22-.026.216-.027.212-.028.21-.031.205-.031.202-.034.198-.034.194-.036.191-.037.187-.039.183-.04.179-.04.175-.042.172-.043.168-.044.163-.045.16-.046.155-.046.152-.047.148-.048.143-.049.139-.049.136-.05.131-.05.126-.05.123-.051.118-.052.114-.051.11-.052.106-.052.101-.052.096-.052.092-.052.088-.053.083-.051.079-.052.074-.052.07-.051.065-.051.06-.051.056-.05.051-.05.023-.024.023-.025.021-.024.02-.024.019-.024.018-.024.017-.024.015-.023.014-.024.013-.023.012-.023.01-.023.01-.022.008-.022.006-.022.006-.022.004-.022.004-.021.001-.021.001-.021v-4.127l-.077.055-.08.053-.083.054-.085.053-.087.052-.09.052-.093.051-.095.05-.097.05-.1.049-.102.049-.105.048-.106.047-.109.047-.111.046-.114.045-.115.045-.118.044-.12.043-.122.042-.124.042-.126.041-.128.04-.13.04-.132.038-.134.038-.135.037-.138.037-.139.035-.142.035-.143.034-.144.033-.147.032-.148.031-.15.03-.151.03-.153.029-.154.027-.156.027-.158.026-.159.025-.161.024-.162.023-.163.022-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.011-.178.01-.179.008-.179.008-.181.006-.182.005-.182.004-.184.003-.184.002h-.37l-.184-.002-.184-.003-.182-.004-.182-.005-.181-.006-.179-.008-.179-.008-.178-.01-.176-.011-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.022-.162-.023-.161-.024-.159-.025-.157-.026-.156-.027-.155-.027-.153-.029-.151-.03-.15-.03-.148-.031-.146-.032-.145-.033-.143-.034-.141-.035-.14-.035-.137-.037-.136-.037-.134-.038-.132-.038-.13-.04-.128-.04-.126-.041-.124-.042-.122-.042-.12-.044-.117-.043-.116-.045-.113-.045-.112-.046-.109-.047-.106-.047-.105-.048-.102-.049-.1-.049-.097-.05-.095-.05-.093-.052-.09-.051-.087-.052-.085-.053-.083-.054-.08-.054-.077-.054v4.127zm0-5.654v.011l.001.021.003.021.004.021.005.022.006.022.007.022.009.022.01.022.011.023.012.023.013.023.015.024.016.023.017.024.018.024.019.024.021.024.022.024.023.025.024.024.052.05.056.05.061.05.066.051.07.051.075.052.079.051.084.052.088.052.092.052.097.052.102.052.105.052.11.051.114.051.119.052.123.05.127.051.131.05.135.049.139.049.144.048.147.048.152.047.155.046.16.045.163.045.167.044.171.042.176.042.178.04.183.04.187.038.19.037.194.036.197.034.202.033.204.032.209.03.212.028.216.027.219.025.222.024.226.022.23.02.233.018.236.016.24.014.243.012.246.01.249.008.253.006.256.003.259.001.26-.001.257-.003.254-.006.25-.008.247-.01.244-.012.241-.015.237-.016.233-.018.231-.02.226-.022.224-.024.22-.025.216-.027.212-.029.21-.03.205-.032.202-.033.198-.035.194-.036.191-.037.187-.039.183-.039.179-.041.175-.042.172-.043.168-.044.163-.045.16-.045.155-.047.152-.047.148-.048.143-.048.139-.05.136-.049.131-.05.126-.051.123-.051.118-.051.114-.052.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.051.07-.052.065-.051.06-.05.056-.051.051-.049.023-.025.023-.024.021-.025.02-.024.019-.024.018-.024.017-.024.015-.023.014-.023.013-.024.012-.022.01-.023.01-.023.008-.022.006-.022.006-.022.004-.021.004-.022.001-.021.001-.021v-4.139l-.077.054-.08.054-.083.054-.085.052-.087.053-.09.051-.093.051-.095.051-.097.05-.1.049-.102.049-.105.048-.106.047-.109.047-.111.046-.114.045-.115.044-.118.044-.12.044-.122.042-.124.042-.126.041-.128.04-.13.039-.132.039-.134.038-.135.037-.138.036-.139.036-.142.035-.143.033-.144.033-.147.033-.148.031-.15.03-.151.03-.153.028-.154.028-.156.027-.158.026-.159.025-.161.024-.162.023-.163.022-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.011-.178.009-.179.009-.179.007-.181.007-.182.005-.182.004-.184.003-.184.002h-.37l-.184-.002-.184-.003-.182-.004-.182-.005-.181-.007-.179-.007-.179-.009-.178-.009-.176-.011-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.022-.162-.023-.161-.024-.159-.025-.157-.026-.156-.027-.155-.028-.153-.028-.151-.03-.15-.03-.148-.031-.146-.033-.145-.033-.143-.033-.141-.035-.14-.036-.137-.036-.136-.037-.134-.038-.132-.039-.13-.039-.128-.04-.126-.041-.124-.042-.122-.043-.12-.043-.117-.044-.116-.044-.113-.046-.112-.046-.109-.046-.106-.047-.105-.048-.102-.049-.1-.049-.097-.05-.095-.051-.093-.051-.09-.051-.087-.053-.085-.052-.083-.054-.08-.054-.077-.054v4.139zm0-5.666v.011l.001.02.003.022.004.021.005.022.006.021.007.022.009.023.01.022.011.023.012.023.013.023.015.023.016.024.017.024.018.023.019.024.021.025.022.024.023.024.024.025.052.05.056.05.061.05.066.051.07.051.075.052.079.051.084.052.088.052.092.052.097.052.102.052.105.051.11.052.114.051.119.051.123.051.127.05.131.05.135.05.139.049.144.048.147.048.152.047.155.046.16.045.163.045.167.043.171.043.176.042.178.04.183.04.187.038.19.037.194.036.197.034.202.033.204.032.209.03.212.028.216.027.219.025.222.024.226.021.23.02.233.018.236.017.24.014.243.012.246.01.249.008.253.006.256.003.259.001.26-.001.257-.003.254-.006.25-.008.247-.01.244-.013.241-.014.237-.016.233-.018.231-.02.226-.022.224-.024.22-.025.216-.027.212-.029.21-.03.205-.032.202-.033.198-.035.194-.036.191-.037.187-.039.183-.039.179-.041.175-.042.172-.043.168-.044.163-.045.16-.045.155-.047.152-.047.148-.048.143-.049.139-.049.136-.049.131-.051.126-.05.123-.051.118-.052.114-.051.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.052.07-.051.065-.051.06-.051.056-.05.051-.049.023-.025.023-.025.021-.024.02-.024.019-.024.018-.024.017-.024.015-.023.014-.024.013-.023.012-.023.01-.022.01-.023.008-.022.006-.022.006-.022.004-.022.004-.021.001-.021.001-.021v-4.153l-.077.054-.08.054-.083.053-.085.053-.087.053-.09.051-.093.051-.095.051-.097.05-.1.049-.102.048-.105.048-.106.048-.109.046-.111.046-.114.046-.115.044-.118.044-.12.043-.122.043-.124.042-.126.041-.128.04-.13.039-.132.039-.134.038-.135.037-.138.036-.139.036-.142.034-.143.034-.144.033-.147.032-.148.032-.15.03-.151.03-.153.028-.154.028-.156.027-.158.026-.159.024-.161.024-.162.023-.163.023-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.01-.178.01-.179.009-.179.007-.181.006-.182.006-.182.004-.184.003-.184.001-.185.001-.185-.001-.184-.001-.184-.003-.182-.004-.182-.006-.181-.006-.179-.007-.179-.009-.178-.01-.176-.01-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.023-.162-.023-.161-.024-.159-.024-.157-.026-.156-.027-.155-.028-.153-.028-.151-.03-.15-.03-.148-.032-.146-.032-.145-.033-.143-.034-.141-.034-.14-.036-.137-.036-.136-.037-.134-.038-.132-.039-.13-.039-.128-.041-.126-.041-.124-.041-.122-.043-.12-.043-.117-.044-.116-.044-.113-.046-.112-.046-.109-.046-.106-.048-.105-.048-.102-.048-.1-.05-.097-.049-.095-.051-.093-.051-.09-.052-.087-.052-.085-.053-.083-.053-.08-.054-.077-.054v4.153zm8.74-8.179l-.257.004-.254.005-.25.008-.247.011-.244.012-.241.014-.237.016-.233.018-.231.021-.226.022-.224.023-.22.026-.216.027-.212.028-.21.031-.205.032-.202.033-.198.034-.194.036-.191.038-.187.038-.183.04-.179.041-.175.042-.172.043-.168.043-.163.045-.16.046-.155.046-.152.048-.148.048-.143.048-.139.049-.136.05-.131.05-.126.051-.123.051-.118.051-.114.052-.11.052-.106.052-.101.052-.096.052-.092.052-.088.052-.083.052-.079.052-.074.051-.07.052-.065.051-.06.05-.056.05-.051.05-.023.025-.023.024-.021.024-.02.025-.019.024-.018.024-.017.023-.015.024-.014.023-.013.023-.012.023-.01.023-.01.022-.008.022-.006.023-.006.021-.004.022-.004.021-.001.021-.001.021.001.021.001.021.004.021.004.022.006.021.006.023.008.022.01.022.01.023.012.023.013.023.014.023.015.024.017.023.018.024.019.024.02.025.021.024.023.024.023.025.051.05.056.05.06.05.065.051.07.052.074.051.079.052.083.052.088.052.092.052.096.052.101.052.106.052.11.052.114.052.118.051.123.051.126.051.131.05.136.05.139.049.143.048.148.048.152.048.155.046.16.046.163.045.168.043.172.043.175.042.179.041.183.04.187.038.191.038.194.036.198.034.202.033.205.032.21.031.212.028.216.027.22.026.224.023.226.022.231.021.233.018.237.016.241.014.244.012.247.011.25.008.254.005.257.004.26.001.26-.001.257-.004.254-.005.25-.008.247-.011.244-.012.241-.014.237-.016.233-.018.231-.021.226-.022.224-.023.22-.026.216-.027.212-.028.21-.031.205-.032.202-.033.198-.034.194-.036.191-.038.187-.038.183-.04.179-.041.175-.042.172-.043.168-.043.163-.045.16-.046.155-.046.152-.048.148-.048.143-.048.139-.049.136-.05.131-.05.126-.051.123-.051.118-.051.114-.052.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.051.07-.052.065-.051.06-.05.056-.05.051-.05.023-.025.023-.024.021-.024.02-.025.019-.024.018-.024.017-.023.015-.024.014-.023.013-.023.012-.023.01-.023.01-.022.008-.022.006-.023.006-.021.004-.022.004-.021.001-.021.001-.021-.001-.021-.001-.021-.004-.021-.004-.022-.006-.021-.006-.023-.008-.022-.01-.022-.01-.023-.012-.023-.013-.023-.014-.023-.015-.024-.017-.023-.018-.024-.019-.024-.02-.025-.021-.024-.023-.024-.023-.025-.051-.05-.056-.05-.06-.05-.065-.051-.07-.052-.074-.051-.079-.052-.083-.052-.088-.052-.092-.052-.096-.052-.101-.052-.106-.052-.11-.052-.114-.052-.118-.051-.123-.051-.126-.051-.131-.05-.136-.05-.139-.049-.143-.048-.148-.048-.152-.048-.155-.046-.16-.046-.163-.045-.168-.043-.172-.043-.175-.042-.179-.041-.183-.04-.187-.038-.191-.038-.194-.036-.198-.034-.202-.033-.205-.032-.21-.031-.212-.028-.216-.027-.22-.026-.224-.023-.226-.022-.231-.021-.233-.018-.237-.016-.241-.014-.244-.012-.247-.011-.25-.008-.254-.005-.257-.004-.26-.001-.26.001z")},"insertDatabaseIcon"),ea=f(function(e,t){e.append("defs").append("symbol").attr("id",t+"-computer").attr("width","24").attr("height","24").append("path").attr("transform","scale(.5)").attr("d","M2 2v13h20v-13h-20zm18 11h-16v-9h16v9zm-10.228 6l.466-1h3.524l.467 1h-4.457zm14.228 3h-24l2-6h2.104l-1.33 4h18.45l-1.297-4h2.073l2 6zm-5-10h-14v-7h14v7z")},"insertComputerIcon"),ra=f(function(e,t){e.append("defs").append("symbol").attr("id",t+"-clock").attr("width","24").attr("height","24").append("path").attr("transform","scale(.5)").attr("d","M12 2c5.514 0 10 4.486 10 10s-4.486 10-10 10-10-4.486-10-10 4.486-10 10-10zm0-2c-6.627 0-12 5.373-12 12s5.373 12 12 12 12-5.373 12-12-5.373-12-12-12zm5.848 12.459c.202.038.202.333.001.372-1.907.361-6.045 1.111-6.547 1.111-.719 0-1.301-.582-1.301-1.301 0-.512.77-5.447 1.125-7.445.034-.192.312-.181.343.014l.985 6.238 5.394 1.011z")},"insertClockIcon"),aa=f(function(e,t){e.append("defs").append("marker").attr("id",t+"-arrowhead").attr("refX",7.9).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto-start-reverse").append("path").attr("d","M -1 0 L 10 5 L 0 10 z")},"insertArrowHead"),sa=f(function(e,t){e.append("defs").append("marker").attr("id",t+"-filled-head").attr("refX",15.5).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L14,7 L9,1 Z")},"insertArrowFilledHead"),ia=f(function(e,t){e.append("defs").append("marker").attr("id",t+"-sequencenumber").attr("refX",15).attr("refY",15).attr("markerWidth",60).attr("markerHeight",40).attr("orient","auto").append("circle").attr("cx",15).attr("cy",15).attr("r",6)},"insertSequenceNumber"),na=f(function(e,t){e.append("defs").append("marker").attr("id",t+"-crosshead").attr("markerWidth",15).attr("markerHeight",8).attr("orient","auto").attr("refX",4).attr("refY",4.5).append("path").attr("fill","none").attr("stroke","#000000").style("stroke-dasharray","0, 0").attr("stroke-width","1pt").attr("d","M 1,2 L 6,7 M 6,2 L 1,7")},"insertArrowCrossHead"),xt=f(e=>e?`${e}-drop-shadow`:"drop-shadow","dropShadowId"),oa=f(function(e,t,a){let{theme:r}=t;e.append("defs").append("filter").attr("id",xt(a)).attr("height","130%").attr("width","130%").append("feDropShadow").attr("dx","4").attr("dy","4").attr("stdDeviation",0).attr("flood-opacity","0.06").attr("flood-color",`${r==="redux"||r==="redux-color"?"#000000":"#FFFFFF"}`)},"insertDropShadow"),Er=f(function(){return{x:0,y:0,fill:void 0,anchor:void 0,style:"#666",width:void 0,height:void 0,textMargin:0,rx:0,ry:0,tspan:!0,valign:void 0}},"getTextObj"),ca=f(function(){return{x:0,y:0,fill:"#EDF2AE",stroke:"#666",width:100,anchor:"start",height:100,rx:0,ry:0}},"getNoteRect"),ut=(function(){function e(c,s,n,p,d,E,u){let _=s.append("text").attr("x",n+d/2).attr("y",p+E/2+5).style("text-anchor","middle").text(c);i(_,u)}f(e,"byText");function t(c,s,n,p,d,E,u,_){let{actorFontSize:O,actorFontFamily:g,actorFontWeight:y}=_,[h,R]=he(O),x=c.split(N.lineBreakRegex);for(let m=0;me.height||0))+(this.loops.length===0?0:this.loops.map(e=>e.height||0).reduce((e,t)=>e+t))+(this.messages.length===0?0:this.messages.map(e=>e.height||0).reduce((e,t)=>e+t))+(this.notes.length===0?0:this.notes.map(e=>e.height||0).reduce((e,t)=>e+t))},"getHeight"),clear:f(function(){this.actors=[],this.boxes=[],this.loops=[],this.messages=[],this.notes=[]},"clear"),addBox:f(function(e){this.boxes.push(e)},"addBox"),addActor:f(function(e){this.actors.push(e)},"addActor"),addLoop:f(function(e){this.loops.push(e)},"addLoop"),addMessage:f(function(e){this.messages.push(e)},"addMessage"),addNote:f(function(e){this.notes.push(e)},"addNote"),lastActor:f(function(){return this.actors[this.actors.length-1]},"lastActor"),lastLoop:f(function(){return this.loops[this.loops.length-1]},"lastLoop"),lastMessage:f(function(){return this.messages[this.messages.length-1]},"lastMessage"),lastNote:f(function(){return this.notes[this.notes.length-1]},"lastNote"),actors:[],boxes:[],loops:[],messages:[],notes:[]},init:f(function(){this.sequenceItems=[],this.activations=[],this.models.clear(),this.data={startx:void 0,stopx:void 0,starty:void 0,stopy:void 0},this.verticalPos=0,_r(j())},"init"),updateVal:f(function(e,t,a,r){e[t]===void 0?e[t]=a:e[t]=r(a,e[t])},"updateVal"),updateBounds:f(function(e,t,a,r){let i=this,c=0;function s(n){return f(function(d){c++;let E=i.sequenceItems.length-c+1;i.updateVal(d,"starty",t-E*l.boxMargin,Math.min),i.updateVal(d,"stopy",r+E*l.boxMargin,Math.max),i.updateVal(I.data,"startx",e-E*l.boxMargin,Math.min),i.updateVal(I.data,"stopx",a+E*l.boxMargin,Math.max),n!=="activation"&&(i.updateVal(d,"startx",e-E*l.boxMargin,Math.min),i.updateVal(d,"stopx",a+E*l.boxMargin,Math.max),i.updateVal(I.data,"starty",t-E*l.boxMargin,Math.min),i.updateVal(I.data,"stopy",r+E*l.boxMargin,Math.max))},"updateItemBounds")}f(s,"updateFn"),this.sequenceItems.forEach(s()),this.activations.forEach(s("activation"))},"updateBounds"),insert:f(function(e,t,a,r){let i=N.getMin(e,a),c=N.getMax(e,a),s=N.getMin(t,r),n=N.getMax(t,r);this.updateVal(I.data,"startx",i,Math.min),this.updateVal(I.data,"starty",s,Math.min),this.updateVal(I.data,"stopx",c,Math.max),this.updateVal(I.data,"stopy",n,Math.max),this.updateBounds(i,s,c,n)},"insert"),newActivation:f(function(e,t,a){let r=a.get(e.from),i=jt(e.from).length||0,c=r.x+r.width/2+(i-1)*l.activationWidth/2;this.activations.push({startx:c,starty:this.verticalPos+2,stopx:c+l.activationWidth,stopy:void 0,actor:e.from,anchored:z.anchorElement(t)})},"newActivation"),endActivation:f(function(e){let t=this.activations.map(function(a){return a.actor}).lastIndexOf(e.from);return this.activations.splice(t,1)[0]},"endActivation"),createLoop:f(function(e={message:void 0,wrap:!1,width:void 0},t){return{startx:void 0,starty:this.verticalPos,stopx:void 0,stopy:void 0,title:e.message,wrap:e.wrap,width:e.width,height:0,fill:t}},"createLoop"),newLoop:f(function(e={message:void 0,wrap:!1,width:void 0},t){this.sequenceItems.push(this.createLoop(e,t))},"newLoop"),endLoop:f(function(){return this.sequenceItems.pop()},"endLoop"),isLoopOverlap:f(function(){return this.sequenceItems.length?this.sequenceItems[this.sequenceItems.length-1].overlap:!1},"isLoopOverlap"),addSectionToLoop:f(function(e){let t=this.sequenceItems.pop();t.sections=t.sections||[],t.sectionTitles=t.sectionTitles||[],t.sections.push({y:I.getVerticalPos(),height:0}),t.sectionTitles.push(e),this.sequenceItems.push(t)},"addSectionToLoop"),saveVerticalPos:f(function(){this.isLoopOverlap()&&(this.savedVerticalPos=this.verticalPos)},"saveVerticalPos"),resetVerticalPos:f(function(){this.isLoopOverlap()&&(this.verticalPos=this.savedVerticalPos)},"resetVerticalPos"),bumpVerticalPos:f(function(e){this.verticalPos=this.verticalPos+e,this.data.stopy=N.getMax(this.data.stopy,this.verticalPos)},"bumpVerticalPos"),getVerticalPos:f(function(){return this.verticalPos},"getVerticalPos"),getBounds:f(function(){return{bounds:this.data,models:this.models}},"getBounds")},Ea=f(async function(e,t,a){I.bumpVerticalPos(l.boxMargin),t.height=l.boxMargin,t.starty=I.getVerticalPos();let r=dt();r.x=t.startx,r.y=t.starty,r.width=t.width||l.width,r.class="note";let i=e.append("g");i.attr("data-et","note"),i.attr("data-id","i"+a);let c=z.drawRect(i,r),s=Ut();s.x=t.startx,s.y=t.starty,s.width=r.width,s.dy="1em",s.text=t.message,s.class="noteText",s.fontFamily=l.noteFontFamily,s.fontSize=l.noteFontSize,s.fontWeight=l.noteFontWeight,s.anchor=l.noteAlign,s.textMargin=l.noteMargin,s.valign="center";let n=$(s.text)?await Jt(i,s):kt(i,s),p=Math.round(n.map(d=>(d._groups||d)[0][0].getBBox().height).reduce((d,E)=>d+E));c.attr("height",p+2*l.noteMargin),t.height+=p+2*l.noteMargin,I.bumpVerticalPos(p+2*l.noteMargin),t.stopy=t.starty+p+2*l.noteMargin,t.stopx=t.startx+r.width,I.insert(t.startx,t.starty,t.stopx,t.stopy),I.models.addNote(t)},"drawNote"),or=f(function(e,t,a,r,i,c,s){let n=r.db.getActors(),p=n.get(t.from),d=n.get(t.to),E=a.sequenceVisible,u=p.x+p.width/2,_=d.x+d.width/2,O=u<=_,g=Ir(t,r),y=e.append("g"),h=16.5,R=f((w,P)=>{let B=w?h:-h;return P?-B:B},"getCircleOffset"),x=f(w=>{y.append("circle").attr("cx",w).attr("cy",s).attr("r",5).attr("width",10).attr("height",10)},"drawCircle"),{CENTRAL_CONNECTION:m,CENTRAL_CONNECTION_REVERSE:S,CENTRAL_CONNECTION_DUAL:L}=r.db.LINETYPE;if(E)switch(t.centralConnection){case m:g&&(_+=R(O,!0));break;case S:g||(u+=R(O,!1));break;case L:g?_+=R(O,!0):u+=R(O,!1);break}switch(t.centralConnection){case m:x(_);break;case S:x(u);break;case L:x(u),x(_);break}},"drawCentralConnection"),Ot=f(e=>({fontFamily:e.messageFontFamily,fontSize:e.messageFontSize,fontWeight:e.messageFontWeight}),"messageFont"),At=f(e=>({fontFamily:e.noteFontFamily,fontSize:e.noteFontSize,fontWeight:e.noteFontWeight}),"noteFont"),pe=f(e=>({fontFamily:e.actorFontFamily,fontSize:e.actorFontSize,fontWeight:e.actorFontWeight}),"actorFont");async function ur(e,t){I.bumpVerticalPos(10);let{startx:a,stopx:r,message:i}=t,c=N.splitBreaks(i).length,s=$(i),n=s?await St(i,j()):Q.calculateTextDimensions(i,Ot(l));if(!s){let u=n.height/c;t.height+=u,I.bumpVerticalPos(u)}let p,d=n.height-10,E=n.width;if(a===r){p=I.getVerticalPos()+d,l.rightAngles||(d+=l.boxMargin,p=I.getVerticalPos()+d),d+=30;let u=N.getMax(E/2,l.width/2);I.insert(a-u,I.getVerticalPos()-10+d,r+u,I.getVerticalPos()+30+d)}else d+=l.boxMargin,p=I.getVerticalPos()+d,I.insert(a,p-10,r,p);return I.bumpVerticalPos(d),t.height+=d,t.stopy=t.starty+t.height,I.insert(t.fromBounds,t.starty,t.toBounds,t.stopy),p}f(ur,"boundMessage");var ua=f(async function(e,t,a,r,i,c){let{startx:s,stopx:n,starty:p,message:d,type:E,sequenceIndex:u,sequenceVisible:_}=t,O=Q.calculateTextDimensions(d,Ot(l)),g=Ut();g.x=Math.min(s,n),g.y=p+10,g.width=Math.abs(n-s),g.class="messageText",g.dy="1em",g.text=d,g.fontFamily=l.messageFontFamily,g.fontSize=l.messageFontSize,g.fontWeight=l.messageFontWeight,g.anchor=l.messageAlign,g.valign="center",g.textMargin=l.wrapPadding,g.tspan=!1,$(g.text)?await Jt(e,g,{startx:s,stopx:n,starty:a}):kt(e,g);let y=O.width,h;if(s===n){let x=_||l.showSequenceNumbers,m=Ir(i,r),S=Ra(i,r),L=s+(x&&(m||S)?10:0);l.rightAngles?h=e.append("path").attr("d",`M ${L},${a} H ${s+N.getMax(l.width/2,y/2)} V ${a+25} H ${s}`):h=e.append("path").attr("d","M "+L+","+a+" C "+(L+60)+","+(a-10)+" "+(s+60)+","+(a+30)+" "+s+","+(a+20)),de(i,r)&&or(e,i,t,r,s,n,a)}else h=e.append("line"),h.attr("x1",s),h.attr("y1",a),h.attr("x2",n),h.attr("y2",a),de(i,r)&&or(e,i,t,r,s,n,a);E===r.db.LINETYPE.DOTTED||E===r.db.LINETYPE.DOTTED_CROSS||E===r.db.LINETYPE.DOTTED_POINT||E===r.db.LINETYPE.DOTTED_OPEN||E===r.db.LINETYPE.BIDIRECTIONAL_DOTTED||E===r.db.LINETYPE.SOLID_TOP_DOTTED||E===r.db.LINETYPE.SOLID_BOTTOM_DOTTED||E===r.db.LINETYPE.STICK_TOP_DOTTED||E===r.db.LINETYPE.STICK_BOTTOM_DOTTED||E===r.db.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED||E===r.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED||E===r.db.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED||E===r.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED?(h.style("stroke-dasharray","3, 3"),h.attr("class","messageLine1")):h.attr("class","messageLine0"),h.attr("data-et","message"),h.attr("data-id","i"+t.id),h.attr("data-from",t.from),h.attr("data-to",t.to);let R="";if(l.arrowMarkerAbsolute&&(R=ze(!0)),h.attr("stroke-width",2),h.attr("stroke","none"),h.style("fill","none"),(E===r.db.LINETYPE.SOLID_TOP||E===r.db.LINETYPE.SOLID_TOP_DOTTED)&&h.attr("marker-end","url("+R+"#"+c+"-solidTopArrowHead)"),(E===r.db.LINETYPE.SOLID_BOTTOM||E===r.db.LINETYPE.SOLID_BOTTOM_DOTTED)&&h.attr("marker-end","url("+R+"#"+c+"-solidBottomArrowHead)"),(E===r.db.LINETYPE.STICK_TOP||E===r.db.LINETYPE.STICK_TOP_DOTTED)&&h.attr("marker-end","url("+R+"#"+c+"-stickTopArrowHead)"),(E===r.db.LINETYPE.STICK_BOTTOM||E===r.db.LINETYPE.STICK_BOTTOM_DOTTED)&&h.attr("marker-end","url("+R+"#"+c+"-stickBottomArrowHead)"),(E===r.db.LINETYPE.SOLID_ARROW_TOP_REVERSE||E===r.db.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED)&&h.attr("marker-start","url("+R+"#"+c+"-solidBottomArrowHead)"),(E===r.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE||E===r.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED)&&h.attr("marker-start","url("+R+"#"+c+"-solidTopArrowHead)"),(E===r.db.LINETYPE.STICK_ARROW_TOP_REVERSE||E===r.db.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED)&&h.attr("marker-start","url("+R+"#"+c+"-stickBottomArrowHead)"),(E===r.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE||E===r.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED)&&h.attr("marker-start","url("+R+"#"+c+"-stickTopArrowHead)"),(E===r.db.LINETYPE.SOLID||E===r.db.LINETYPE.DOTTED)&&h.attr("marker-end","url("+R+"#"+c+"-arrowhead)"),(E===r.db.LINETYPE.BIDIRECTIONAL_SOLID||E===r.db.LINETYPE.BIDIRECTIONAL_DOTTED)&&(h.attr("marker-start","url("+R+"#"+c+"-arrowhead)"),h.attr("marker-end","url("+R+"#"+c+"-arrowhead)")),(E===r.db.LINETYPE.SOLID_POINT||E===r.db.LINETYPE.DOTTED_POINT)&&h.attr("marker-end","url("+R+"#"+c+"-filled-head)"),(E===r.db.LINETYPE.SOLID_CROSS||E===r.db.LINETYPE.DOTTED_CROSS)&&h.attr("marker-end","url("+R+"#"+c+"-crosshead)"),_||l.showSequenceNumbers){let x=E===r.db.LINETYPE.BIDIRECTIONAL_SOLID||E===r.db.LINETYPE.BIDIRECTIONAL_DOTTED,m=E===r.db.LINETYPE.SOLID_ARROW_TOP_REVERSE||E===r.db.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED||E===r.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE||E===r.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED||E===r.db.LINETYPE.STICK_ARROW_TOP_REVERSE||E===r.db.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED||E===r.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE||E===r.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED,S=6,L=de(i,r),w=s,P=n;x?(ss?P=n-2*S:(P=n-S,w+=i?.centralConnection===r.db.LINETYPE.CENTRAL_CONNECTION_DUAL||i?.centralConnection===r.db.LINETYPE.CENTRAL_CONNECTION_REVERSE?-7.5:0),P+=L?15:0,h.attr("x2",P),h.attr("x1",w)):h.attr("x1",s+S);let B=0,V=s===n,K=s<=n;V?B=t.fromBounds+1:m?B=K?t.toBounds-1:t.fromBounds+1:B=K?t.fromBounds+1:t.toBounds-1;let U="12px",X=u.toString().length;X>5?U="7px":X>3&&(U="9px"),e.append("line").attr("x1",B).attr("y1",a).attr("x2",B).attr("y2",a).attr("stroke-width",0).attr("marker-start","url("+R+"#"+c+"-sequencenumber)"),e.append("text").attr("x",B).attr("y",a+4).attr("font-family","sans-serif").attr("font-size",U).attr("text-anchor","middle").attr("class","sequenceNumber").text(u)}},"drawMessage"),fa=f(function(e,t,a,r,i,c,s){let n=0,p=0,d,E=0;for(let u of r){let _=t.get(u),O=_.box;d&&d!=O&&(s||I.models.addBox(d),p+=l.boxMargin+d.margin),O&&O!=d&&(s||(O.x=n+p,O.y=i),p+=O.margin),_.width=N.getMax(_.width||l.width,l.width),_.height=N.getMax(_.height||l.height,l.height),_.margin=_.margin||l.actorMargin,E=N.getMax(E,_.height),a.get(_.name)&&(p+=_.width/2),_.x=n+p,_.starty=I.getVerticalPos(),I.insert(_.x,i,_.x+_.width,_.height),n+=_.width+p,_.box&&(_.box.width=n+O.margin-_.box.x),p=_.margin,d=_.box,I.models.addActor(_)}d&&!s&&I.models.addBox(d),I.bumpVerticalPos(E)},"addActorRenderingData"),Ee=f(async function(e,t,a,r,i,c,s){if(r){let n=0;I.bumpVerticalPos(l.boxMargin*2);for(let p of a){let d=t.get(p);d.stopy||(d.stopy=I.getVerticalPos());let E=await z.drawActor(e,d,l,!0,i,c,s);n=N.getMax(n,E)}I.bumpVerticalPos(n+l.boxMargin)}else for(let n of a){let p=t.get(n);await z.drawActor(e,p,l,!1,i,c,s)}},"drawActors"),fr=f(function(e,t,a,r){let i=0,c=0;for(let s of a){let n=t.get(s),p=ga(n),d=z.drawPopup(e,n,p,l,l.forceMenus,r);d.height>i&&(i=d.height),d.width+n.x>c&&(c=d.width+n.x)}return{maxHeight:i,maxWidth:c}},"drawActorsPopup"),_r=f(function(e){qe(l,e),e.fontFamily&&(l.actorFontFamily=l.noteFontFamily=l.messageFontFamily=e.fontFamily),e.fontSize&&(l.actorFontSize=l.noteFontSize=l.messageFontSize=e.fontSize),e.fontWeight&&(l.actorFontWeight=l.noteFontWeight=l.messageFontWeight=e.fontWeight)},"setConf"),jt=f(function(e){return I.activations.filter(function(t){return t.actor===e})},"actorActivations"),cr=f(function(e,t){let a=t.get(e),r=jt(e),i=r.reduce(function(s,n){return N.getMin(s,n.startx)},a.x+a.width/2-1),c=r.reduce(function(s,n){return N.getMax(s,n.stopx)},a.x+a.width/2+1);return[i,c]},"activationBounds");function Tt(e,t,a,r,i){I.bumpVerticalPos(a);let c=r;if(t.id&&t.message&&e[t.id]){let s=e[t.id].width,n=Ot(l);t.message=Q.wrapLabel(`[${t.message}]`,s-2*l.wrapPadding,n),t.width=s,t.wrap=!0;let p=Q.calculateTextDimensions(t.message,n),d=N.getMax(p.height,l.labelBoxHeight);c=r+d,et.debug(`${d} - ${t.message}`)}i(t),I.bumpVerticalPos(c)}f(Tt,"adjustLoopHeightForWrap");function gr(e,t,a,r,i,c,s){function n(E,u){E.x{A.add(v.from),A.add(v.to)}),h=h.filter(v=>A.has(v))}let w=new Map(h.map((A,v)=>[_.get(A)?.name??A,v]));fa(u,_,O,h,0,R,!1);let P=await La(R,_,L,r);z.insertArrowHead(u,t),z.insertArrowCrossHead(u,t),z.insertArrowFilledHead(u,t),z.insertSequenceNumber(u,t),z.insertSolidTopArrowHead(u,t),z.insertSolidBottomArrowHead(u,t),z.insertStickTopArrowHead(u,t),z.insertStickBottomArrowHead(u,t),s==="neo"&&z.insertDropShadow(u,l,t);function B(A,v){let ht=I.endActivation(A);ht.starty+18>v&&(ht.starty=v-6,v+=12),z.drawActivation(u,ht,v,l,jt(A.from).length,r,w),I.insert(ht.startx,v-10,ht.stopx,v)}f(B,"activeEnd");let V=1,K=1,U=[],X=[],rt=0;for(let A of R){let v,ht,it;switch(A.type){case r.db.LINETYPE.NOTE:I.resetVerticalPos(),ht=A.noteModel,await Ea(u,ht,A.id);break;case r.db.LINETYPE.ACTIVE_START:I.newActivation(A,u,_);break;case r.db.LINETYPE.CENTRAL_CONNECTION:I.newActivation(A,u,_);break;case r.db.LINETYPE.CENTRAL_CONNECTION_REVERSE:I.newActivation(A,u,_);break;case r.db.LINETYPE.ACTIVE_END:B(A,I.getVerticalPos());break;case r.db.LINETYPE.LOOP_START:Tt(P,A,l.boxMargin,l.boxMargin+l.boxTextMargin,H=>I.newLoop(H));break;case r.db.LINETYPE.LOOP_END:v=I.endLoop(),await z.drawLoop(u,v,"loop",l,A),I.bumpVerticalPos(v.stopy-I.getVerticalPos()),I.models.addLoop(v);break;case r.db.LINETYPE.RECT_START:Tt(P,A,l.boxMargin,l.boxMargin,H=>{let Lt=H.message;Lt||(Lt=n?.rectBkgColor||n?.actorBkg||"rgba(128, 128, 128, 0.5)"),I.newLoop(void 0,Lt)});break;case r.db.LINETYPE.RECT_END:v=I.endLoop(),X.push(v),I.models.addLoop(v),I.bumpVerticalPos(v.stopy-I.getVerticalPos());break;case r.db.LINETYPE.OPT_START:Tt(P,A,l.boxMargin,l.boxMargin+l.boxTextMargin,H=>I.newLoop(H));break;case r.db.LINETYPE.OPT_END:v=I.endLoop(),await z.drawLoop(u,v,"opt",l,A),I.bumpVerticalPos(v.stopy-I.getVerticalPos()),I.models.addLoop(v);break;case r.db.LINETYPE.ALT_START:Tt(P,A,l.boxMargin,l.boxMargin+l.boxTextMargin,H=>I.newLoop(H));break;case r.db.LINETYPE.ALT_ELSE:Tt(P,A,l.boxMargin+l.boxTextMargin,l.boxMargin,H=>I.addSectionToLoop(H));break;case r.db.LINETYPE.ALT_END:v=I.endLoop(),await z.drawLoop(u,v,"alt",l,A),I.bumpVerticalPos(v.stopy-I.getVerticalPos()),I.models.addLoop(v);break;case r.db.LINETYPE.PAR_START:case r.db.LINETYPE.PAR_OVER_START:Tt(P,A,l.boxMargin,l.boxMargin+l.boxTextMargin,H=>I.newLoop(H)),I.saveVerticalPos();break;case r.db.LINETYPE.PAR_AND:Tt(P,A,l.boxMargin+l.boxTextMargin,l.boxMargin,H=>I.addSectionToLoop(H));break;case r.db.LINETYPE.PAR_END:v=I.endLoop(),await z.drawLoop(u,v,"par",l,A),I.bumpVerticalPos(v.stopy-I.getVerticalPos()),I.models.addLoop(v);break;case r.db.LINETYPE.AUTONUMBER:V=A.message.start||V,K=A.message.step||K,A.message.visible?r.db.enableSequenceNumbers():r.db.disableSequenceNumbers();break;case r.db.LINETYPE.CRITICAL_START:Tt(P,A,l.boxMargin,l.boxMargin+l.boxTextMargin,H=>I.newLoop(H));break;case r.db.LINETYPE.CRITICAL_OPTION:Tt(P,A,l.boxMargin+l.boxTextMargin,l.boxMargin,H=>I.addSectionToLoop(H));break;case r.db.LINETYPE.CRITICAL_END:v=I.endLoop(),await z.drawLoop(u,v,"critical",l,A),I.bumpVerticalPos(v.stopy-I.getVerticalPos()),I.models.addLoop(v);break;case r.db.LINETYPE.BREAK_START:Tt(P,A,l.boxMargin,l.boxMargin+l.boxTextMargin,H=>I.newLoop(H));break;case r.db.LINETYPE.BREAK_END:v=I.endLoop(),await z.drawLoop(u,v,"break",l,A),I.bumpVerticalPos(v.stopy-I.getVerticalPos()),I.models.addLoop(v);break;default:try{it=A.msgModel,it.starty=I.getVerticalPos(),it.sequenceIndex=V,it.sequenceVisible=r.db.showSequenceNumbers(),it.id=A.id,it.from=A.from,it.to=A.to;let H=await ur(u,it);gr(A,it,H,rt,_,O,g),U.push({messageModel:it,lineStartY:H,msg:A}),I.models.addMessage(it)}catch(H){et.error("error while drawing message",H)}}[r.db.LINETYPE.SOLID_OPEN,r.db.LINETYPE.DOTTED_OPEN,r.db.LINETYPE.SOLID,r.db.LINETYPE.SOLID_TOP,r.db.LINETYPE.SOLID_BOTTOM,r.db.LINETYPE.STICK_TOP,r.db.LINETYPE.STICK_BOTTOM,r.db.LINETYPE.SOLID_TOP_DOTTED,r.db.LINETYPE.SOLID_BOTTOM_DOTTED,r.db.LINETYPE.STICK_TOP_DOTTED,r.db.LINETYPE.STICK_BOTTOM_DOTTED,r.db.LINETYPE.SOLID_ARROW_TOP_REVERSE,r.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE,r.db.LINETYPE.STICK_ARROW_TOP_REVERSE,r.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE,r.db.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED,r.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED,r.db.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED,r.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED,r.db.LINETYPE.DOTTED,r.db.LINETYPE.SOLID_CROSS,r.db.LINETYPE.DOTTED_CROSS,r.db.LINETYPE.SOLID_POINT,r.db.LINETYPE.DOTTED_POINT,r.db.LINETYPE.BIDIRECTIONAL_SOLID,r.db.LINETYPE.BIDIRECTIONAL_DOTTED].includes(A.type)&&(V=Math.round((V+K)*100)/100),rt++}et.debug("createdActors",O),et.debug("destroyedActors",g),await Ee(u,_,h,!1,t,r,w);for(let A of U)await ua(u,A.messageModel,A.lineStartY,r,A.msg,t);l.mirrorActors&&await Ee(u,_,h,!0,t,r,w),X.forEach(A=>z.drawBackgroundRect(u,A)),Tr(u,_,h,l);for(let A of I.models.boxes){A.height=I.getVerticalPos()-A.y,I.insert(A.x,A.y,A.x+A.width,A.height);let v=l.boxMargin*2;A.startx=A.x-v,A.starty=A.y-v*.25,A.stopx=A.startx+A.width+2*v,A.stopy=A.starty+A.height+v*.75,A.stroke="rgb(0,0,0, 0.5)",z.drawBox(u,A,l)}m&&I.bumpVerticalPos(l.boxMargin);let at=fr(u,_,h,E),{bounds:G}=I.getBounds();G.startx===void 0&&(G.startx=0),G.starty===void 0&&(G.starty=0),G.stopx===void 0&&(G.stopx=0),G.stopy===void 0&&(G.stopy=0);let nt=G.stopy-G.starty;nt{let s=Ot(l),n=c.actorKeys.reduce((u,_)=>u+=e.get(_).width+(e.get(_).margin||0),0),p=l.boxMargin*8;n+=p,n-=2*l.boxTextMargin,c.wrap&&(c.name=Q.wrapLabel(c.name,n-2*l.wrapPadding,s));let d=Q.calculateTextDimensions(c.name,s);i=N.getMax(d.height,i);let E=N.getMax(n,d.width+2*l.wrapPadding);if(c.margin=l.boxTextMargin,nc.textMaxHeight=i),N.getMax(r,l.height)}f(br,"calculateActorMargins");var xa=f(async function(e,t,a){let r=t.get(e.from),i=t.get(e.to),c=r.x,s=i.x,n=e.wrap&&e.message,p=$(e.message)?await St(e.message,j()):Q.calculateTextDimensions(n?Q.wrapLabel(e.message,l.width,At(l)):e.message,At(l)),d={width:n?l.width:N.getMax(l.width,p.width+2*l.noteMargin),height:0,startx:r.x,stopx:0,starty:0,stopy:0,message:e.message};return e.placement===a.db.PLACEMENT.RIGHTOF?(d.width=n?N.getMax(l.width,p.width):N.getMax(r.width/2+i.width/2,p.width+2*l.noteMargin),d.startx=c+(r.width+l.actorMargin)/2):e.placement===a.db.PLACEMENT.LEFTOF?(d.width=n?N.getMax(l.width,p.width+2*l.noteMargin):N.getMax(r.width/2+i.width/2,p.width+2*l.noteMargin),d.startx=c-d.width+(r.width-l.actorMargin)/2):e.to===e.from?(p=Q.calculateTextDimensions(n?Q.wrapLabel(e.message,N.getMax(l.width,r.width),At(l)):e.message,At(l)),d.width=n?N.getMax(l.width,r.width):N.getMax(r.width,l.width,p.width+2*l.noteMargin),d.startx=c+(r.width-d.width)/2):(d.width=Math.abs(c+r.width/2-(s+i.width/2))+l.actorMargin,d.startx=c2,_=f(h=>p?-h:h,"adjustValue");e.from===e.to?E=d:(e.activate&&!u&&(E+=_(l.activationWidth/2-1)),[a.db.LINETYPE.SOLID_OPEN,a.db.LINETYPE.DOTTED_OPEN,a.db.LINETYPE.STICK_TOP,a.db.LINETYPE.STICK_BOTTOM,a.db.LINETYPE.STICK_TOP_DOTTED,a.db.LINETYPE.STICK_BOTTOM_DOTTED,a.db.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED,a.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED,a.db.LINETYPE.STICK_ARROW_TOP_REVERSE,a.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE,a.db.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED,a.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED,a.db.LINETYPE.SOLID_ARROW_TOP_REVERSE,a.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE].includes(e.type)||(E+=_(3)),[a.db.LINETYPE.BIDIRECTIONAL_SOLID,a.db.LINETYPE.BIDIRECTIONAL_DOTTED,a.db.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED,a.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED,a.db.LINETYPE.SOLID_ARROW_TOP_REVERSE,a.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE].includes(e.type)&&(d-=_(3)));let O=[i,c,s,n],g=Math.abs(d-E);e.wrap&&e.message&&(e.message=Q.wrapLabel(e.message,N.getMax(g+2*l.wrapPadding,l.width),Ot(l)));let y=Q.calculateTextDimensions(e.message,Ot(l));return{width:N.getMax(e.wrap?0:y.width+2*l.wrapPadding,g+2*l.wrapPadding,l.width),height:0,startx:d,stopx:E,starty:0,stopy:0,message:e.message,type:e.type,wrap:e.wrap,fromBounds:Math.min.apply(null,O),toBounds:Math.max.apply(null,O)}},"buildMessageModel"),La=f(async function(e,t,a,r){let i={},c=[],s,n,p;for(let d of e){switch(d.type){case r.db.LINETYPE.LOOP_START:case r.db.LINETYPE.ALT_START:case r.db.LINETYPE.OPT_START:case r.db.LINETYPE.PAR_START:case r.db.LINETYPE.PAR_OVER_START:case r.db.LINETYPE.CRITICAL_START:case r.db.LINETYPE.BREAK_START:c.push({id:d.id,msg:d.message,from:Number.MAX_SAFE_INTEGER,to:Number.MIN_SAFE_INTEGER,width:0});break;case r.db.LINETYPE.ALT_ELSE:case r.db.LINETYPE.PAR_AND:case r.db.LINETYPE.CRITICAL_OPTION:d.message&&(s=c.pop(),i[s.id]=s,i[d.id]=s,c.push(s));break;case r.db.LINETYPE.LOOP_END:case r.db.LINETYPE.ALT_END:case r.db.LINETYPE.OPT_END:case r.db.LINETYPE.PAR_END:case r.db.LINETYPE.CRITICAL_END:case r.db.LINETYPE.BREAK_END:s=c.pop(),i[s.id]=s;break;case r.db.LINETYPE.ACTIVE_START:{let u=t.get(d.from?d.from:d.to.actor),_=jt(d.from?d.from:d.to.actor).length,O=u.x+u.width/2+(_-1)*l.activationWidth/2,g={startx:O,stopx:O+l.activationWidth,actor:d.from,enabled:!0};I.activations.push(g)}break;case r.db.LINETYPE.ACTIVE_END:{let u=I.activations.map(_=>_.actor).lastIndexOf(d.from);I.activations.splice(u,1).splice(0,1)}break}d.placement!==void 0?(n=await xa(d,t,r),d.noteModel=n,c.forEach(u=>{s=u,s.from=N.getMin(s.from,n.startx),s.to=N.getMax(s.to,n.startx+n.width),s.width=N.getMax(s.width,Math.abs(s.from-s.to))-l.labelBoxWidth})):(p=Oa(d,t,r),d.msgModel=p,p.startx&&p.stopx&&c.length>0&&c.forEach(u=>{if(s=u,p.startx===p.stopx){let _=t.get(d.from),O=t.get(d.to);s.from=N.getMin(_.x-p.width/2,_.x-_.width/2,s.from),s.to=N.getMax(O.x+p.width/2,O.x+_.width/2,s.to),s.width=N.getMax(s.width,Math.abs(s.to-s.from))-l.labelBoxWidth}else s.from=N.getMin(p.startx,s.from),s.to=N.getMax(p.stopx,s.to),s.width=N.getMax(s.width,p.width)-l.labelBoxWidth}))}return I.activations=[],et.debug("Loop type widths:",i),i},"calculateLoopBounds"),ma={bounds:I,drawActors:Ee,drawActorsPopup:fr,setConf:_r,draw:_a},Ma={parser:kr,get db(){return new Dr},renderer:ma,styles:Cr,init:f(e=>{e.sequence||(e.sequence={}),e.wrap&&(e.sequence.wrap=e.wrap,je({sequence:{wrap:e.wrap}}))},"init")};export{Ma as diagram}; diff --git a/src/frontend/web/von_interface/static/vendor/conversation-visuals/sizeCapture-INFHLROL-IZ3DL65J.js b/src/frontend/web/von_interface/static/vendor/conversation-visuals/sizeCapture-INFHLROL-IZ3DL65J.js new file mode 100644 index 000000000..2f9948d15 --- /dev/null +++ b/src/frontend/web/von_interface/static/vendor/conversation-visuals/sizeCapture-INFHLROL-IZ3DL65J.js @@ -0,0 +1 @@ +import{a as o}from"./chunk-YUSHYV7C.js";import"./chunk-3RNHDNP5.js";var c=1;function i(){if(!(typeof globalThis>"u"))return globalThis}o(i,"getCaptureGlobal");function p(){return!!i()?.mermaidCaptureSizes}o(p,"shouldCaptureSizes");function u(){return typeof location>"u"?"browser-dev":`${location.pathname}${location.search}`}o(u,"capturedFromLocation");function d(n,r){let t=i();if(!t)return;let e=r.node(),s=((e&&"ownerSVGElement"in e?e.ownerSVGElement:null)??e)?.id??"(unknown)";t.mermaidCapturedSizes??=[];let a={svgId:s,sizes:n};t.mermaidCapturedSizes.push(a),t.mermaidLastCapturedSizes=a}o(d,"emitCapturedSizes");function m(n,r){let t=[];for(let e of r.nodes)e.isGroup||t.push({id:e.id,width:e.width??0,height:e.height??0});t.length!==0&&d({metadata:{captureVersion:c,capturedAt:new Date().toISOString(),capturedFrom:u()},nodes:t},n)}o(m,"captureNodeSizes");export{m as captureNodeSizes,p as shouldCaptureSizes}; diff --git a/src/frontend/web/von_interface/static/vendor/conversation-visuals/stateDiagram-v2-GCMORJYK-ZHO57SZY.js b/src/frontend/web/von_interface/static/vendor/conversation-visuals/stateDiagram-v2-GCMORJYK-ZHO57SZY.js new file mode 100644 index 000000000..89b1b3f1a --- /dev/null +++ b/src/frontend/web/von_interface/static/vendor/conversation-visuals/stateDiagram-v2-GCMORJYK-ZHO57SZY.js @@ -0,0 +1,291 @@ +import{a as qt}from"./chunk-VNMAEQZK.js";import{a as Qt}from"./chunk-EQQJCVK6.js";import{b as Kt,c as Xt}from"./chunk-2AVNI7YL.js";import"./chunk-SNMBC6G5.js";import"./chunk-AKE2LJPJ.js";import"./chunk-NDMMOI35.js";import"./chunk-T4OFBIBR.js";import{h as Jt}from"./chunk-L56KSVJM.js";import"./chunk-TEBTVNCH.js";import"./chunk-HVVAQLXH.js";import"./chunk-IVPOI5SM.js";import"./chunk-O46DUOKR.js";import"./chunk-C7YISUMK.js";import{b as jt,c as Ut,d as Ht,e as zt}from"./chunk-6NDAIVIK.js";import{g as Mt,p as Wt}from"./chunk-EUYVSIXP.js";import"./chunk-QSTT4QQC.js";import{$,O as M,U as $t,V as Ft,W as Pt,X as Bt,Y as Gt,Z as Yt,_ as Vt,g as Rt}from"./chunk-S4JILX6U.js";import{b as T,h as St}from"./chunk-XEQL7KGA.js";import{a as u}from"./chunk-YUSHYV7C.js";import"./chunk-3RNHDNP5.js";var At=(function(){var t=u(function(V,o,d,i){for(d=d||{},i=V.length;i--;d[V[i]]=o);return d},"o"),e=[1,2],n=[1,3],s=[1,4],c=[2,4],h=[1,9],p=[1,11],S=[1,16],a=[1,17],m=[1,18],b=[1,19],x=[1,33],L=[1,20],O=[1,21],v=[1,22],f=[1,23],w=[1,24],D=[1,26],F=[1,27],I=[1,28],P=[1,29],_=[1,30],H=[1,31],it=[1,32],at=[1,35],nt=[1,36],ot=[1,37],lt=[1,38],z=[1,34],g=[1,4,5,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,41,45,48,51,52,53,54,57],ct=[1,4,5,14,15,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,39,40,41,45,48,51,52,53,54,57],It=[4,5,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,41,45,48,51,52,53,54,57],bt={trace:u(function(){},"trace"),yy:{},symbols_:{error:2,start:3,SPACE:4,NL:5,SD:6,document:7,line:8,statement:9,classDefStatement:10,styleStatement:11,cssClassStatement:12,idStatement:13,DESCR:14,"-->":15,HIDE_EMPTY:16,scale:17,WIDTH:18,COMPOSIT_STATE:19,STRUCT_START:20,STRUCT_STOP:21,STATE_DESCR:22,AS:23,ID:24,FORK:25,JOIN:26,CHOICE:27,CONCURRENT:28,note:29,notePosition:30,NOTE_TEXT:31,direction:32,acc_title:33,acc_title_value:34,acc_descr:35,acc_descr_value:36,acc_descr_multiline_value:37,CLICK:38,STRING:39,HREF:40,classDef:41,CLASSDEF_ID:42,CLASSDEF_STYLEOPTS:43,DEFAULT:44,style:45,STYLE_IDS:46,STYLEDEF_STYLEOPTS:47,class:48,CLASSENTITY_IDS:49,STYLECLASS:50,direction_tb:51,direction_bt:52,direction_rl:53,direction_lr:54,eol:55,";":56,EDGE_STATE:57,STYLE_SEPARATOR:58,left_of:59,right_of:60,$accept:0,$end:1},terminals_:{2:"error",4:"SPACE",5:"NL",6:"SD",14:"DESCR",15:"-->",16:"HIDE_EMPTY",17:"scale",18:"WIDTH",19:"COMPOSIT_STATE",20:"STRUCT_START",21:"STRUCT_STOP",22:"STATE_DESCR",23:"AS",24:"ID",25:"FORK",26:"JOIN",27:"CHOICE",28:"CONCURRENT",29:"note",31:"NOTE_TEXT",33:"acc_title",34:"acc_title_value",35:"acc_descr",36:"acc_descr_value",37:"acc_descr_multiline_value",38:"CLICK",39:"STRING",40:"HREF",41:"classDef",42:"CLASSDEF_ID",43:"CLASSDEF_STYLEOPTS",44:"DEFAULT",45:"style",46:"STYLE_IDS",47:"STYLEDEF_STYLEOPTS",48:"class",49:"CLASSENTITY_IDS",50:"STYLECLASS",51:"direction_tb",52:"direction_bt",53:"direction_rl",54:"direction_lr",56:";",57:"EDGE_STATE",58:"STYLE_SEPARATOR",59:"left_of",60:"right_of"},productions_:[0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[8,1],[8,1],[9,1],[9,1],[9,1],[9,1],[9,2],[9,3],[9,4],[9,1],[9,2],[9,1],[9,4],[9,3],[9,6],[9,1],[9,1],[9,1],[9,1],[9,4],[9,4],[9,1],[9,2],[9,2],[9,1],[9,5],[9,5],[10,3],[10,3],[11,3],[12,3],[32,1],[32,1],[32,1],[32,1],[55,1],[55,1],[13,1],[13,1],[13,3],[13,3],[30,1],[30,1]],performAction:u(function(o,d,i,y,k,r,K){var l=r.length-1;switch(k){case 3:return y.setRootDoc(r[l]),r[l];break;case 4:this.$=[];break;case 5:r[l]!="nl"&&(r[l-1].push(r[l]),this.$=r[l-1]);break;case 6:case 7:this.$=r[l];break;case 8:this.$="nl";break;case 12:this.$=r[l];break;case 13:let dt=r[l-1];dt.description=y.trimColon(r[l]),this.$=dt;break;case 14:this.$={stmt:"relation",state1:r[l-2],state2:r[l]};break;case 15:let ut=y.trimColon(r[l]);this.$={stmt:"relation",state1:r[l-3],state2:r[l-1],description:ut};break;case 19:this.$={stmt:"state",id:r[l-3],type:"default",description:"",doc:r[l-1]};break;case 20:var B=r[l],G=r[l-2].trim();if(r[l].match(":")){var Q=r[l].split(":");B=Q[0],G=[G,Q[1]]}this.$={stmt:"state",id:B,type:"default",description:G};break;case 21:this.$={stmt:"state",id:r[l-3],type:"default",description:r[l-5],doc:r[l-1]};break;case 22:this.$={stmt:"state",id:r[l],type:"fork"};break;case 23:this.$={stmt:"state",id:r[l],type:"join"};break;case 24:this.$={stmt:"state",id:r[l],type:"choice"};break;case 25:this.$={stmt:"state",id:y.getDividerId(),type:"divider"};break;case 26:this.$={stmt:"state",id:r[l-1].trim(),note:{position:r[l-2].trim(),text:r[l].trim()}};break;case 29:this.$=r[l].trim(),y.setAccTitle(this.$);break;case 30:case 31:this.$=r[l].trim(),y.setAccDescription(this.$);break;case 32:this.$={stmt:"click",id:r[l-3],url:r[l-2],tooltip:r[l-1]};break;case 33:this.$={stmt:"click",id:r[l-3],url:r[l-1],tooltip:""};break;case 34:case 35:this.$={stmt:"classDef",id:r[l-1].trim(),classes:r[l].trim()};break;case 36:this.$={stmt:"style",id:r[l-1].trim(),styleClass:r[l].trim()};break;case 37:this.$={stmt:"applyClass",id:r[l-1].trim(),styleClass:r[l].trim()};break;case 38:y.setDirection("TB"),this.$={stmt:"dir",value:"TB"};break;case 39:y.setDirection("BT"),this.$={stmt:"dir",value:"BT"};break;case 40:y.setDirection("RL"),this.$={stmt:"dir",value:"RL"};break;case 41:y.setDirection("LR"),this.$={stmt:"dir",value:"LR"};break;case 44:case 45:this.$={stmt:"state",id:r[l].trim(),type:"default",description:""};break;case 46:this.$={stmt:"state",id:r[l-2].trim(),classes:[r[l].trim()],type:"default",description:""};break;case 47:this.$={stmt:"state",id:r[l-2].trim(),classes:[r[l].trim()],type:"default",description:""};break}},"anonymous"),table:[{3:1,4:e,5:n,6:s},{1:[3]},{3:5,4:e,5:n,6:s},{3:6,4:e,5:n,6:s},t([1,4,5,16,17,19,22,24,25,26,27,28,29,33,35,37,38,41,45,48,51,52,53,54,57],c,{7:7}),{1:[2,1]},{1:[2,2]},{1:[2,3],4:h,5:p,8:8,9:10,10:12,11:13,12:14,13:15,16:S,17:a,19:m,22:b,24:x,25:L,26:O,27:v,28:f,29:w,32:25,33:D,35:F,37:I,38:P,41:_,45:H,48:it,51:at,52:nt,53:ot,54:lt,57:z},t(g,[2,5]),{9:39,10:12,11:13,12:14,13:15,16:S,17:a,19:m,22:b,24:x,25:L,26:O,27:v,28:f,29:w,32:25,33:D,35:F,37:I,38:P,41:_,45:H,48:it,51:at,52:nt,53:ot,54:lt,57:z},t(g,[2,7]),t(g,[2,8]),t(g,[2,9]),t(g,[2,10]),t(g,[2,11]),t(g,[2,12],{14:[1,40],15:[1,41]}),t(g,[2,16]),{18:[1,42]},t(g,[2,18],{20:[1,43]}),{23:[1,44]},t(g,[2,22]),t(g,[2,23]),t(g,[2,24]),t(g,[2,25]),{30:45,31:[1,46],59:[1,47],60:[1,48]},t(g,[2,28]),{34:[1,49]},{36:[1,50]},t(g,[2,31]),{13:51,24:x,57:z},{42:[1,52],44:[1,53]},{46:[1,54]},{49:[1,55]},t(ct,[2,44],{58:[1,56]}),t(ct,[2,45],{58:[1,57]}),t(g,[2,38]),t(g,[2,39]),t(g,[2,40]),t(g,[2,41]),t(g,[2,6]),t(g,[2,13]),{13:58,24:x,57:z},t(g,[2,17]),t(It,c,{7:59}),{24:[1,60]},{24:[1,61]},{23:[1,62]},{24:[2,48]},{24:[2,49]},t(g,[2,29]),t(g,[2,30]),{39:[1,63],40:[1,64]},{43:[1,65]},{43:[1,66]},{47:[1,67]},{50:[1,68]},{24:[1,69]},{24:[1,70]},t(g,[2,14],{14:[1,71]}),{4:h,5:p,8:8,9:10,10:12,11:13,12:14,13:15,16:S,17:a,19:m,21:[1,72],22:b,24:x,25:L,26:O,27:v,28:f,29:w,32:25,33:D,35:F,37:I,38:P,41:_,45:H,48:it,51:at,52:nt,53:ot,54:lt,57:z},t(g,[2,20],{20:[1,73]}),{31:[1,74]},{24:[1,75]},{39:[1,76]},{39:[1,77]},t(g,[2,34]),t(g,[2,35]),t(g,[2,36]),t(g,[2,37]),t(ct,[2,46]),t(ct,[2,47]),t(g,[2,15]),t(g,[2,19]),t(It,c,{7:78}),t(g,[2,26]),t(g,[2,27]),{5:[1,79]},{5:[1,80]},{4:h,5:p,8:8,9:10,10:12,11:13,12:14,13:15,16:S,17:a,19:m,21:[1,81],22:b,24:x,25:L,26:O,27:v,28:f,29:w,32:25,33:D,35:F,37:I,38:P,41:_,45:H,48:it,51:at,52:nt,53:ot,54:lt,57:z},t(g,[2,32]),t(g,[2,33]),t(g,[2,21])],defaultActions:{5:[2,1],6:[2,2],47:[2,48],48:[2,49]},parseError:u(function(o,d){if(d.recoverable)this.trace(o);else{var i=new Error(o);throw i.hash=d,i}},"parseError"),parse:u(function(o){var d=this,i=[0],y=[],k=[null],r=[],K=this.table,l="",B=0,G=0,Q=0,dt=2,ut=1,ke=r.slice.call(arguments,1),E=Object.create(this.lexer),j={yy:{}};for(var kt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,kt)&&(j.yy[kt]=this.yy[kt]);E.setInput(o,j.yy),j.yy.lexer=E,j.yy.parser=this,typeof E.yylloc>"u"&&(E.yylloc={});var Tt=E.yylloc;r.push(Tt);var Te=E.options&&E.options.ranges;typeof j.yy.parseError=="function"?this.parseError=j.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Ee(N){i.length=i.length-2*N,k.length=k.length-N,r.length=r.length-N}u(Ee,"popStack");function Nt(){var N;return N=y.pop()||E.lex()||ut,typeof N!="number"&&(N instanceof Array&&(y=N,N=y.pop()),N=d.symbols_[N]||N),N}u(Nt,"lex");for(var C,Et,U,R,ts,_t,X={},ft,Y,Ot,pt;;){if(U=i[i.length-1],this.defaultActions[U]?R=this.defaultActions[U]:((C===null||typeof C>"u")&&(C=Nt()),R=K[U]&&K[U][C]),typeof R>"u"||!R.length||!R[0]){var vt="";pt=[];for(ft in K[U])this.terminals_[ft]&&ft>dt&&pt.push("'"+this.terminals_[ft]+"'");E.showPosition?vt="Parse error on line "+(B+1)+`: +`+E.showPosition()+` +Expecting `+pt.join(", ")+", got '"+(this.terminals_[C]||C)+"'":vt="Parse error on line "+(B+1)+": Unexpected "+(C==ut?"end of input":"'"+(this.terminals_[C]||C)+"'"),this.parseError(vt,{text:E.match,token:this.terminals_[C]||C,line:E.yylineno,loc:Tt,expected:pt})}if(R[0]instanceof Array&&R.length>1)throw new Error("Parse Error: multiple actions possible at state: "+U+", token: "+C);switch(R[0]){case 1:i.push(C),k.push(E.yytext),r.push(E.yylloc),i.push(R[1]),C=null,Et?(C=Et,Et=null):(G=E.yyleng,l=E.yytext,B=E.yylineno,Tt=E.yylloc,Q>0&&Q--);break;case 2:if(Y=this.productions_[R[1]][1],X.$=k[k.length-Y],X._$={first_line:r[r.length-(Y||1)].first_line,last_line:r[r.length-1].last_line,first_column:r[r.length-(Y||1)].first_column,last_column:r[r.length-1].last_column},Te&&(X._$.range=[r[r.length-(Y||1)].range[0],r[r.length-1].range[1]]),_t=this.performAction.apply(X,[l,G,B,j.yy,R[1],k,r].concat(ke)),typeof _t<"u")return _t;Y&&(i=i.slice(0,-1*Y*2),k=k.slice(0,-1*Y),r=r.slice(0,-1*Y)),i.push(this.productions_[R[1]][0]),k.push(X.$),r.push(X._$),Ot=K[i[i.length-2]][i[i.length-1]],i.push(Ot);break;case 3:return!0}}return!0},"parse")},be=(function(){var V={EOF:1,parseError:u(function(d,i){if(this.yy.parser)this.yy.parser.parseError(d,i);else throw new Error(d)},"parseError"),setInput:u(function(o,d){return this.yy=d||this.yy||{},this._input=o,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:u(function(){var o=this._input[0];this.yytext+=o,this.yyleng++,this.offset++,this.match+=o,this.matched+=o;var d=o.match(/(?:\r\n?|\n).*/g);return d?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),o},"input"),unput:u(function(o){var d=o.length,i=o.split(/(?:\r\n?|\n)/g);this._input=o+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-d),this.offset-=d;var y=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),i.length-1&&(this.yylineno-=i.length-1);var k=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:i?(i.length===y.length?this.yylloc.first_column:0)+y[y.length-i.length].length-i[0].length:this.yylloc.first_column-d},this.options.ranges&&(this.yylloc.range=[k[0],k[0]+this.yyleng-d]),this.yyleng=this.yytext.length,this},"unput"),more:u(function(){return this._more=!0,this},"more"),reject:u(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). +`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:u(function(o){this.unput(this.match.slice(o))},"less"),pastInput:u(function(){var o=this.matched.substr(0,this.matched.length-this.match.length);return(o.length>20?"...":"")+o.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:u(function(){var o=this.match;return o.length<20&&(o+=this._input.substr(0,20-o.length)),(o.substr(0,20)+(o.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:u(function(){var o=this.pastInput(),d=new Array(o.length+1).join("-");return o+this.upcomingInput()+` +`+d+"^"},"showPosition"),test_match:u(function(o,d){var i,y,k;if(this.options.backtrack_lexer&&(k={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&&(k.yylloc.range=this.yylloc.range.slice(0))),y=o[0].match(/(?:\r\n?|\n).*/g),y&&(this.yylineno+=y.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:y?y[y.length-1].length-y[y.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+o[0].length},this.yytext+=o[0],this.match+=o[0],this.matches=o,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(o[0].length),this.matched+=o[0],i=this.performAction.call(this,this.yy,this,d,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),i)return i;if(this._backtrack){for(var r in k)this[r]=k[r];return!1}return!1},"test_match"),next:u(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var o,d,i,y;this._more||(this.yytext="",this.match="");for(var k=this._currentRules(),r=0;rd[0].length)){if(d=i,y=r,this.options.backtrack_lexer){if(o=this.test_match(i,k[r]),o!==!1)return o;if(this._backtrack){d=!1;continue}else return!1}else if(!this.options.flex)break}return d?(o=this.test_match(d,k[y]),o!==!1?o:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text. +`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:u(function(){var d=this.next();return d||this.lex()},"lex"),begin:u(function(d){this.conditionStack.push(d)},"begin"),popState:u(function(){var d=this.conditionStack.length-1;return d>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:u(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:u(function(d){return d=this.conditionStack.length-1-Math.abs(d||0),d>=0?this.conditionStack[d]:"INITIAL"},"topState"),pushState:u(function(d){this.begin(d)},"pushState"),stateStackSize:u(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:u(function(d,i,y,k){function r(){let l=i.yytext.indexOf("%%");if(l===0)return!1;if(l>0){let B=i.yytext.slice(0,l),G=i.yytext.slice(l);G&&d.lexer.unput(G),i.yytext=B}return!0}u(r,"processId");var K=k;switch(y){case 0:return 38;case 1:return 40;case 2:return 39;case 3:return 44;case 4:return 51;case 5:return 52;case 6:return 53;case 7:return 54;case 8:return 5;case 9:break;case 10:break;case 11:break;case 12:break;case 13:return this.pushState("SCALE"),17;break;case 14:return 18;case 15:this.popState();break;case 16:return this.begin("acc_title"),33;break;case 17:return this.popState(),"acc_title_value";break;case 18:return this.begin("acc_descr"),35;break;case 19:return this.popState(),"acc_descr_value";break;case 20:this.begin("acc_descr_multiline");break;case 21:this.popState();break;case 22:return"acc_descr_multiline_value";case 23:return this.pushState("CLASSDEF"),41;break;case 24:return this.popState(),this.pushState("CLASSDEFID"),"DEFAULT_CLASSDEF_ID";break;case 25:return this.popState(),this.pushState("CLASSDEFID"),42;break;case 26:return this.popState(),43;break;case 27:return this.pushState("CLASS"),48;break;case 28:return this.popState(),this.pushState("CLASS_STYLE"),49;break;case 29:return this.popState(),50;break;case 30:return this.pushState("STYLE"),45;break;case 31:return this.popState(),this.pushState("STYLEDEF_STYLES"),46;break;case 32:return this.popState(),47;break;case 33:return this.pushState("SCALE"),17;break;case 34:return 18;case 35:this.popState();break;case 36:this.pushState("STATE");break;case 37:return this.popState(),i.yytext=i.yytext.slice(0,-8).trim(),25;break;case 38:return this.popState(),i.yytext=i.yytext.slice(0,-8).trim(),26;break;case 39:return this.popState(),i.yytext=i.yytext.slice(0,-10).trim(),27;break;case 40:return this.popState(),i.yytext=i.yytext.slice(0,-8).trim(),25;break;case 41:return this.popState(),i.yytext=i.yytext.slice(0,-8).trim(),26;break;case 42:return this.popState(),i.yytext=i.yytext.slice(0,-10).trim(),27;break;case 43:return 51;case 44:return 52;case 45:return 53;case 46:return 54;case 47:this.pushState("STATE_STRING");break;case 48:return this.pushState("STATE_ID"),"AS";break;case 49:if(!r())return;return this.popState(),"ID";break;case 50:this.popState();break;case 51:return"STATE_DESCR";case 52:throw new Error('Error: State name must be a single word. Found: "'+i.yytext.trim()+'"');case 53:return 19;case 54:this.popState();break;case 55:return this.popState(),this.pushState("struct"),20;break;case 56:return this.popState(),21;break;case 57:break;case 58:return this.begin("NOTE"),29;break;case 59:return this.popState(),this.pushState("NOTE_ID"),59;break;case 60:return this.popState(),this.pushState("NOTE_ID"),60;break;case 61:this.popState(),this.pushState("FLOATING_NOTE");break;case 62:return this.popState(),this.pushState("FLOATING_NOTE_ID"),"AS";break;case 63:break;case 64:return"NOTE_TEXT";case 65:if(!r())return;return this.popState(),"ID";break;case 66:if(!r())return;return this.popState(),this.pushState("NOTE_TEXT"),24;break;case 67:return this.popState(),i.yytext=i.yytext.substr(2).trim(),31;break;case 68:return this.popState(),i.yytext=i.yytext.slice(0,-8).trim(),31;break;case 69:return 6;case 70:return 6;case 71:return 16;case 72:return 57;case 73:return r()?24:void 0;case 74:return i.yytext=i.yytext.trim(),14;break;case 75:return 15;case 76:return 28;case 77:return 58;case 78:return 5;case 79:return"INVALID"}},"anonymous"),rules:[/^(?:click\b)/i,/^(?:href\b)/i,/^(?:"[^"]*")/i,/^(?:default\b)/i,/^(?:.*direction\s+TB[^\n]*)/i,/^(?:.*direction\s+BT[^\n]*)/i,/^(?:.*direction\s+RL[^\n]*)/i,/^(?:.*direction\s+LR[^\n]*)/i,/^(?:[\n]+)/i,/^(?:[\s]+)/i,/^(?:((?!\n)\s)+)/i,/^(?:#[^\n]*)/i,/^(?:%%(?!\{)[^\n]*)/i,/^(?:scale\s+)/i,/^(?:\d+)/i,/^(?:\s+width\b)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:classDef\s+)/i,/^(?:DEFAULT\s+)/i,/^(?:\w+\s+)/i,/^(?:[^\n]*)/i,/^(?:class\s+)/i,/^(?:(\w+)+((,\s*\w+)*))/i,/^(?:[^\n]*)/i,/^(?:style\s+)/i,/^(?:[\w,]+\s+)/i,/^(?:[^\n]*)/i,/^(?:scale\s+)/i,/^(?:\d+)/i,/^(?:\s+width\b)/i,/^(?:state\s+)/i,/^(?:.*<>)/i,/^(?:.*<>)/i,/^(?:.*<>)/i,/^(?:.*\[\[fork\]\])/i,/^(?:.*\[\[join\]\])/i,/^(?:.*\[\[choice\]\])/i,/^(?:.*direction\s+TB[^\n]*)/i,/^(?:.*direction\s+BT[^\n]*)/i,/^(?:.*direction\s+RL[^\n]*)/i,/^(?:.*direction\s+LR[^\n]*)/i,/^(?:["])/i,/^(?:\s*as\s+)/i,/^(?:[^\n\{]*)/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:\w+\s+\w+.*?\{)/i,/^(?:[^\n\s\{]+)/i,/^(?:\n)/i,/^(?:\{)/i,/^(?:\})/i,/^(?:[\n])/i,/^(?:note\s+)/i,/^(?:left of\b)/i,/^(?:right of\b)/i,/^(?:")/i,/^(?:\s*as\s*)/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:[^\n]*)/i,/^(?:\s*[^:\n\s\-]+)/i,/^(?:\s*:[^:\n;]+)/i,/^(?:[\s\S]*?\n\s*end note\b)/i,/^(?:stateDiagram\s+)/i,/^(?:stateDiagram-v2\s+)/i,/^(?:hide empty description\b)/i,/^(?:\[\*\])/i,/^(?:[^:\n\s\-\{]+)/i,/^(?:\s*:(?:[^:\n;]|:[^:\n;])+)/i,/^(?:-->)/i,/^(?:--)/i,/^(?::::)/i,/^(?:$)/i,/^(?:.)/i],conditions:{LINE:{rules:[10,11,12],inclusive:!1},struct:{rules:[10,11,12,23,27,30,36,43,44,45,46,56,57,58,72,73,74,75,76,77],inclusive:!1},FLOATING_NOTE_ID:{rules:[65],inclusive:!1},FLOATING_NOTE:{rules:[62,63,64],inclusive:!1},NOTE_TEXT:{rules:[67,68],inclusive:!1},NOTE_ID:{rules:[66],inclusive:!1},NOTE:{rules:[59,60,61],inclusive:!1},STYLEDEF_STYLEOPTS:{rules:[],inclusive:!1},STYLEDEF_STYLES:{rules:[32],inclusive:!1},STYLE_IDS:{rules:[],inclusive:!1},STYLE:{rules:[31],inclusive:!1},CLASS_STYLE:{rules:[29],inclusive:!1},CLASS:{rules:[28],inclusive:!1},CLASSDEFID:{rules:[26],inclusive:!1},CLASSDEF:{rules:[24,25],inclusive:!1},acc_descr_multiline:{rules:[21,22],inclusive:!1},acc_descr:{rules:[19],inclusive:!1},acc_title:{rules:[17],inclusive:!1},SCALE:{rules:[14,15,34,35],inclusive:!1},ALIAS:{rules:[],inclusive:!1},STATE_ID:{rules:[49],inclusive:!1},STATE_STRING:{rules:[50,51],inclusive:!1},FORK_STATE:{rules:[],inclusive:!1},STATE:{rules:[10,11,12,37,38,39,40,41,42,47,48,52,53,54,55],inclusive:!1},ID:{rules:[10,11,12],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7,8,9,11,12,13,16,18,20,23,27,30,33,36,55,58,69,70,71,72,73,74,75,77,78,79],inclusive:!0}}};return V})();bt.lexer=be;function ht(){this.yy={}}return u(ht,"Parser"),ht.prototype=bt,bt.Parser=ht,new ht})();At.parser=At;var _e=At,ve="TB",ae="TB",Zt="dir",q="state",J="root",xt="relation",De="classDef",Ce="style",Ae="applyClass",st="default",ne="divider",oe="fill:none",le="fill: #333",ce="c",he="markdown",de="normal",Dt="rect",Ct="rectWithTitle",xe="stateStart",Le="stateEnd",Lt="divider",te="roundedWithTitle",we="note",Ie="noteGroup",rt="statediagram",Ne="state",Oe=`${rt}-${Ne}`,ue="transition",Re="note",$e="note-edge",Fe=`${ue} ${$e}`,Pe=`${rt}-${Re}`,Be="cluster",Ge=`${rt}-${Be}`,Ye="cluster-alt",Ve=`${rt}-${Ye}`,fe="parent",pe="note",Me="state",wt="----",We=`${wt}${pe}`,ee=`${wt}${fe}`,yt=new Map,W=0,Se=0,Z=new Map,je=u((t,e,n,s)=>{if(t===Lt&&n?.id!==void 0&&Z.has(n.id)){let p=Z.get(n.id);return Z.set(e,p),p}let c=Se++,h=s?void 0:c;return Z.set(e,h),h},"colorSlotFor");function mt(t="",e=0,n="",s=wt){let c=n!==null&&n.length>0?`${s}${n}`:"";return`${Me}-${t}${c}-${e}`}u(mt,"stateDomId");var Ue=u((t,e,n,s,c,h,p,S)=>{T.trace("items",e),e.forEach(a=>{switch(a.stmt){case q:et(t,a,n,s,c,h,p,S);break;case st:et(t,a,n,s,c,h,p,S);break;case xt:{et(t,a.state1,n,s,c,h,p,S),et(t,a.state2,n,s,c,h,p,S);let m=p==="neo",b={id:"edge"+W,start:a.state1.id,end:a.state2.id,arrowhead:"normal",arrowTypeEnd:m?"arrow_barb_neo":"arrow_barb",style:oe,labelStyle:"",label:M.sanitizeText(a.description??"",$()),arrowheadStyle:le,labelpos:ce,labelType:he,thickness:de,classes:ue,look:p};c.push(b),W++}break}})},"setupDoc"),se=u((t,e=ae)=>{let n=e;if(t.doc)for(let s of t.doc)s.stmt==="dir"&&(n=s.value);return n},"getDir");function tt(t,e,n){if(!e.id||e.id===""||e.id==="")return;e.cssClasses&&(Array.isArray(e.cssCompiledStyles)||(e.cssCompiledStyles=[]),e.cssClasses.split(" ").forEach(c=>{let h=n.get(c);h&&(e.cssCompiledStyles=[...e.cssCompiledStyles??[],...h.styles])}));let s=t.find(c=>c.id===e.id);s?Object.assign(s,e):t.push(e)}u(tt,"insertOrUpdateNode");function ge(t){return t?.classes?.join(" ")??""}u(ge,"getClassesFromDbInfo");function ye(t){return t?.styles??[]}u(ye,"getStylesFromDbInfo");var et=u((t,e,n,s,c,h,p,S)=>{let a=e.id,m=n.get(a),b=ge(m),x=ye(m),L=$(),O=b.trim()!==""||x.length>0;if(T.info("dataFetcher parsedItem",e,m,x),a!=="root"){let v=Dt;e.start===!0?v=xe:e.start===!1&&(v=Le),e.type!==st&&(v=e.type),yt.get(a)||yt.set(a,{id:a,shape:v,description:M.sanitizeText(a,L),cssClasses:`${b} ${Oe}`,cssStyles:x});let f=yt.get(a);e.description&&(Array.isArray(f.description)?(f.shape=Ct,f.description.push(e.description)):f.description?.length&&f.description.length>0?(f.shape=Ct,f.description===a?f.description=[e.description]:f.description=[f.description,e.description]):(f.shape=Dt,f.description=e.description),f.description=M.sanitizeTextOrArray(f.description,L)),f.description?.length===1&&f.shape===Ct&&(f.type==="group"?f.shape=te:f.shape=Dt),!f.type&&e.doc&&(T.info("Setting cluster for XCX",a,se(e)),f.type="group",f.isGroup=!0,f.dir=se(e),f.shape=e.type===ne?Lt:te,f.colorIndex=je(f.shape,a,t,O),f.cssClasses=`${f.cssClasses} ${Ge} ${h?Ve:""}`);let w={labelStyle:"",shape:f.shape,label:f.description,cssClasses:f.cssClasses,cssCompiledStyles:[],cssStyles:f.cssStyles,id:a,dir:f.dir,domId:mt(a,W),type:f.type,isGroup:f.type==="group",colorIndex:f.colorIndex,padding:8,rx:10,ry:10,look:p,labelType:"markdown"};if(w.shape===Lt&&(w.label=""),t&&t.id!=="root"&&(T.trace("Setting node ",a," to be child of its parent ",t.id),w.parentId=t.id),w.centerLabel=!0,e.note){let D={labelStyle:"",shape:we,label:e.note.text,labelType:"markdown",cssClasses:Pe,cssStyles:[],cssCompiledStyles:[],id:a+We+"-"+W,domId:mt(a,W,pe),type:"node",isGroup:!1,padding:L.flowchart?.padding,look:p,position:e.note.position},F=a+ee,I={labelStyle:"",shape:Ie,label:e.note.text,cssClasses:f.cssClasses,cssStyles:[],id:a+ee,domId:mt(a,W,fe),type:"group",isGroup:!0,padding:16,look:p,position:e.note.position};W++,I.id=F,D.parentId=F,tt(s,I,S),tt(s,D,S),tt(s,w,S);let P=a,_=D.id;e.note.position==="left of"&&(P=D.id,_=a),c.push({id:P+"-"+_,start:P,end:_,arrowhead:"none",arrowTypeEnd:"",style:oe,labelStyle:"",classes:Fe,pattern:"dashed",arrowheadStyle:le,labelpos:ce,labelType:he,thickness:de,look:p})}else tt(s,w,S)}e.doc&&(T.trace("Adding nodes children "),Ue(e,e.doc,n,s,c,!h,p,S))},"dataFetcher"),He=u(()=>{yt.clear(),W=0,Se=0,Z.clear()},"reset"),me=u((t,e=ae)=>{if(!t.doc)return e;let n=e;for(let s of t.doc)s.stmt==="dir"&&(n=s.value);return n},"getDir"),ze=u(function(t,e){return e.db.getClasses()},"getClasses"),Ke=u(async function(t,e,n,s){T.info("REF0:"),T.info("Drawing state diagram (v2)",e);let{securityLevel:c,state:h,layout:p}=$();s.db.extract(s.db.getRootDocV2());let S=s.db.getData(),a=qt(e,c);S.type=s.type,S.layoutAlgorithm=Xt(p),S.nodeSpacing=h?.nodeSpacing||50,S.rankSpacing=h?.rankSpacing||50,$().look==="neo"?S.markers=["barbNeo"]:S.markers=["barb"],S.diagramId=e,await Kt(S,a);let b=8;try{(typeof s.db.getLinks=="function"?s.db.getLinks():new Map).forEach((L,O)=>{let v=typeof O=="string"?O:typeof O?.id=="string"?O.id:"",f=S.nodes.find(_=>_.id===v);if(!v){T.warn("\u26A0\uFE0F Invalid or missing stateId from key:",JSON.stringify(O));return}let w=a.node()?.querySelectorAll("g.node, g.rough-node"),D;if(w?.forEach(_=>{let H=_.textContent?.trim();(_.id===f?.domId||H===v)&&(D=_)}),!D){T.warn("\u26A0\uFE0F Could not find node matching text:",v);return}let F=D.parentNode;if(!F){T.warn("\u26A0\uFE0F Node has no parent, cannot wrap:",v);return}let I=document.createElementNS("http://www.w3.org/2000/svg","a"),P=L.url.replace(/^"+|"+$/g,"");if(I.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",P),I.setAttribute("target","_blank"),L.tooltip){let _=L.tooltip.replace(/^"+|"+$/g,"");I.setAttribute("title",_),D.setAttribute("title",_)}F.replaceChild(I,D),I.appendChild(D),T.info("\u{1F517} Wrapped node in
    tag for:",v,L.url)})}catch(x){T.error("\u274C Error injecting clickable links:",x)}Wt.insertTitle(a,"statediagramTitleText",h?.titleTopMargin??25,s.db.getDiagramTitle()),Qt(a,b,rt,h?.useMaxWidth??!0)},"draw"),Xe={getClasses:ze,draw:Ke,getDir:me},A={START_NODE:"[*]",START_TYPE:"start",END_NODE:"[*]",END_TYPE:"end",COLOR_KEYWORD:"color",FILL_KEYWORD:"fill",BG_FILL:"bgFill",STYLECLASS_SEP:","},re=u(()=>new Map,"newClassesList"),ie=u(()=>({relations:[],states:new Map,documents:{}}),"newDoc"),gt=u(t=>JSON.parse(JSON.stringify(t)),"clone"),Je=class{constructor(t){this.version=t,this.nodes=[],this.edges=[],this.rootDoc=[],this.classes=re(),this.documents={root:ie()},this.currentDocument=this.documents.root,this.startEndCount=0,this.dividerCnt=0,this.links=new Map,this.funs=[],this.getAccTitle=Pt,this.setAccTitle=Ft,this.getAccDescription=Gt,this.setAccDescription=Bt,this.setDiagramTitle=Yt,this.getDiagramTitle=Vt,this.clear(),this.setRootDoc=this.setRootDoc.bind(this),this.getDividerId=this.getDividerId.bind(this),this.setDirection=this.setDirection.bind(this),this.trimColon=this.trimColon.bind(this),this.bindFunctions=this.bindFunctions.bind(this)}static{u(this,"StateDB")}static{this.relationType={AGGREGATION:0,EXTENSION:1,COMPOSITION:2,DEPENDENCY:3}}extract(t){this.clear(!0);for(let s of Array.isArray(t)?t:t.doc)switch(s.stmt){case q:this.addState(s.id.trim(),s.type,s.doc,s.description,s.note);break;case xt:this.addRelation(s.state1,s.state2,s.description);break;case De:this.addStyleClass(s.id.trim(),s.classes);break;case Ce:this.handleStyleDef(s);break;case Ae:this.setCssClass(s.id.trim(),s.styleClass);break;case"click":this.addLink(s.id,s.url,s.tooltip);break}let e=this.getStates(),n=$();He(),et(void 0,this.getRootDocV2(),e,this.nodes,this.edges,!0,n.look,this.classes);for(let s of this.nodes)if(Array.isArray(s.label)){if(s.description=s.label.slice(1),s.isGroup&&s.description.length>0)throw new Error(`Group nodes can only have label. Remove the additional description for node [${s.id}]`);s.label=s.label[0]}}handleStyleDef(t){let e=t.id.trim().split(","),n=t.styleClass.split(",");for(let s of e){let c=this.getState(s);if(!c){let h=s.trim();this.addState(h),c=this.getState(h)}c&&(c.styles=n.map(h=>h.replace(/;/g,"")?.trim()))}}setRootDoc(t){T.info("Setting root doc",t),this.rootDoc=t,this.version===1?this.extract(t):this.extract(this.getRootDocV2())}docTranslator(t,e,n){if(e.stmt===xt){this.docTranslator(t,e.state1,!0),this.docTranslator(t,e.state2,!1);return}if(e.stmt===q&&(e.id===A.START_NODE?(e.id=t.id+(n?"_start":"_end"),e.start=n):e.id=e.id.trim()),e.stmt!==J&&e.stmt!==q||!e.doc)return;let s=[],c=[];for(let h of e.doc)if(h.type===ne){let p=gt(h);p.doc=gt(c),s.push(p),c=[]}else c.push(h);if(s.length>0&&c.length>0){let h={stmt:q,id:Mt(),type:"divider",doc:gt(c)};s.push(gt(h)),e.doc=s}e.doc.forEach(h=>this.docTranslator(e,h,!0))}getRootDocV2(){return this.docTranslator({id:J,stmt:J},{id:J,stmt:J,doc:this.rootDoc},!0),{id:J,doc:this.rootDoc}}addState(t,e=st,n=void 0,s=void 0,c=void 0,h=void 0,p=void 0,S=void 0){let a=t?.trim();if(!this.currentDocument.states.has(a))T.info("Adding state ",a,s),this.currentDocument.states.set(a,{stmt:q,id:a,descriptions:[],type:e,doc:n,note:c,classes:[],styles:[],textStyles:[]});else{let m=this.currentDocument.states.get(a);if(!m)throw new Error(`State not found: ${a}`);m.doc||(m.doc=n),m.type||(m.type=e)}if(s&&(T.info("Setting state description",a,s),(Array.isArray(s)?s:[s]).forEach(b=>this.addDescription(a,b.trim()))),c){let m=this.currentDocument.states.get(a);if(!m)throw new Error(`State not found: ${a}`);m.note=c,m.note.text=M.sanitizeText(m.note.text,$())}h&&(T.info("Setting state classes",a,h),(Array.isArray(h)?h:[h]).forEach(b=>this.setCssClass(a,b.trim()))),p&&(T.info("Setting state styles",a,p),(Array.isArray(p)?p:[p]).forEach(b=>this.setStyle(a,b.trim()))),S&&(T.info("Setting state styles",a,p),(Array.isArray(S)?S:[S]).forEach(b=>this.setTextStyle(a,b.trim())))}clear(t){this.nodes=[],this.edges=[],this.funs=[this.setupToolTips.bind(this)],this.documents={root:ie()},this.currentDocument=this.documents.root,this.startEndCount=0,this.classes=re(),t||(this.links=new Map,$t())}getState(t){return this.currentDocument.states.get(t)}getStates(){return this.currentDocument.states}logDocuments(){T.info("Documents = ",this.documents)}getRelations(){return this.currentDocument.relations}addLink(t,e,n){this.links.set(t,{url:e,tooltip:n}),T.warn("Adding link",t,e,n)}getLinks(){return this.links}startIdIfNeeded(t=""){return t===A.START_NODE?(this.startEndCount++,`${A.START_TYPE}${this.startEndCount}`):t}startTypeIfNeeded(t="",e=st){return t===A.START_NODE?A.START_TYPE:e}endIdIfNeeded(t=""){return t===A.END_NODE?(this.startEndCount++,`${A.END_TYPE}${this.startEndCount}`):t}endTypeIfNeeded(t="",e=st){return t===A.END_NODE?A.END_TYPE:e}addRelationObjs(t,e,n=""){let s=this.startIdIfNeeded(t.id.trim()),c=this.startTypeIfNeeded(t.id.trim(),t.type),h=this.startIdIfNeeded(e.id.trim()),p=this.startTypeIfNeeded(e.id.trim(),e.type);this.addState(s,c,t.doc,t.description,t.note,t.classes,t.styles,t.textStyles),this.addState(h,p,e.doc,e.description,e.note,e.classes,e.styles,e.textStyles),this.currentDocument.relations.push({id1:s,id2:h,relationTitle:M.sanitizeText(n,$())})}addRelation(t,e,n){if(typeof t=="object"&&typeof e=="object")this.addRelationObjs(t,e,n);else if(typeof t=="string"&&typeof e=="string"){let s=this.startIdIfNeeded(t.trim()),c=this.startTypeIfNeeded(t),h=this.endIdIfNeeded(e.trim()),p=this.endTypeIfNeeded(e);this.addState(s,c),this.addState(h,p),this.currentDocument.relations.push({id1:s,id2:h,relationTitle:n?M.sanitizeText(n,$()):void 0})}}addDescription(t,e){let n=this.currentDocument.states.get(t),s=e.startsWith(":")?e.replace(":","").trim():e;n?.descriptions?.push(M.sanitizeText(s,$()))}cleanupLabel(t){return t.startsWith(":")?t.slice(2).trim():t.trim()}getDividerId(){return this.dividerCnt++,`divider-id-${this.dividerCnt}`}addStyleClass(t,e=""){this.classes.has(t)||this.classes.set(t,{id:t,styles:[],textStyles:[]});let n=this.classes.get(t);e&&n&&e.split(A.STYLECLASS_SEP).forEach(s=>{let c=s.replace(/([^;]*);/,"$1").trim();if(RegExp(A.COLOR_KEYWORD).exec(s)){let p=c.replace(A.FILL_KEYWORD,A.BG_FILL).replace(A.COLOR_KEYWORD,A.FILL_KEYWORD);n.textStyles.push(p)}n.styles.push(c)})}getClasses(){return this.classes}setupToolTips(t){let e=Jt();St(t).select("svg").selectAll("g.node, g.rough-node").on("mouseover",c=>{let h=St(c.currentTarget),p=h.attr("title");if(p===null)return;let S=c.currentTarget?.getBoundingClientRect();e.transition().duration(200).style("opacity",".9"),e.style("left",window.scrollX+S.left+(S.right-S.left)/2+"px").style("top",window.scrollY+S.bottom+"px"),e.html(Rt.sanitize(p)),h.classed("hover",!0)}).on("mouseout",c=>{e.transition().duration(500).style("opacity",0),St(c.currentTarget).classed("hover",!1)})}setCssClass(t,e){t.split(",").forEach(n=>{let s=this.getState(n);if(!s){let c=n.trim();this.addState(c),s=this.getState(c)}s?.classes?.push(e)})}setStyle(t,e){this.getState(t)?.styles?.push(e)}setTextStyle(t,e){this.getState(t)?.textStyles?.push(e)}bindFunctions(t){this.funs.forEach(e=>{e(t)})}getDirectionStatement(){return this.rootDoc.find(t=>t.stmt===Zt)}getDirection(){return this.getDirectionStatement()?.value??ve}setDirection(t){let e=this.getDirectionStatement();e?e.value=t:this.rootDoc.unshift({stmt:Zt,value:t})}trimColon(t){return t.startsWith(":")?t.slice(1).trim():t.trim()}getData(){let t=$();for(let e of this.nodes)e.wrappingWidth??=t.state?.wrappingWidth,e.isGroup||(e.minWidth??=t.state?.minNodeWidth);return{nodes:this.nodes,edges:this.edges,other:{},config:t,direction:me(this.getRootDocV2())}}getConfig(){return $().state}},qe=u(t=>{let{theme:e,bkgColorArray:n,borderColorArray:s}=t;if(!Ut(e,s))return"";let c=Ht(t.look),h=jt(n),p="";for(let S=0;S` +${qe(t)} +defs [id$="-barbEnd"] { + fill: ${t.transitionColor}; + stroke: ${t.transitionColor}; + } +g.stateGroup text { + fill: ${t.nodeBorder}; + stroke: none; + font-size: 10px; +} +g.stateGroup text { + fill: ${t.textColor}; + stroke: none; + font-size: 10px; + +} +g.stateGroup .state-title { + font-weight: bolder; + fill: ${t.stateLabelColor}; +} + +g.stateGroup rect { + fill: ${t.mainBkg}; + stroke: ${t.nodeBorder}; +} + +g.stateGroup line { + stroke: ${t.lineColor}; + stroke-width: ${t.strokeWidth||1}; +} + +.transition { + stroke: ${t.transitionColor}; + stroke-width: ${t.strokeWidth||1}; + fill: none; +} + +.stateGroup .composit { + fill: ${t.background}; + border-bottom: 1px +} + +.stateGroup .alt-composit { + fill: #e0e0e0; + border-bottom: 1px +} + +.state-note { + stroke: ${t.noteBorderColor}; + fill: ${t.noteBkgColor}; + + text { + fill: ${t.noteTextColor}; + stroke: none; + font-size: 10px; + } +} + +.stateLabel .box { + stroke: none; + stroke-width: 0; + fill: ${t.mainBkg}; + opacity: 0.5; +} + +.edgeLabel .label rect { + fill: ${t.labelBackgroundColor}; + opacity: 0.5; +} +.edgeLabel { + background-color: ${t.edgeLabelBackground}; + p { + background-color: ${t.edgeLabelBackground}; + } + rect { + opacity: 0.5; + background-color: ${t.edgeLabelBackground}; + fill: ${t.edgeLabelBackground}; + } + text-align: center; +} +.edgeLabel .label text { + fill: ${t.transitionLabelColor||t.tertiaryTextColor}; +} +.label div .edgeLabel { + color: ${t.transitionLabelColor||t.tertiaryTextColor}; +} + +.stateLabel text { + fill: ${t.stateLabelColor}; + font-size: 10px; + font-weight: bold; +} + +.node circle.state-start { + fill: ${t.specialStateColor}; + stroke: ${t.specialStateColor}; +} + +.node .fork-join { + fill: ${t.specialStateColor}; + stroke: ${t.specialStateColor}; +} + +.node circle.state-end { + fill: ${t.innerEndBackground}; + stroke: ${t.background}; + stroke-width: 1.5 +} +.end-state-inner { + fill: ${t.compositeBackground||t.background}; + // stroke: ${t.background}; + stroke-width: 1.5 +} + +.node rect { + fill: ${t.stateBkg||t.mainBkg}; + stroke: ${t.stateBorder||t.nodeBorder}; + stroke-width: ${t.strokeWidth||1}px; +} +.node polygon { + fill: ${t.mainBkg}; + stroke: ${t.stateBorder||t.nodeBorder};; + stroke-width: ${t.strokeWidth||1}px; +} +[id$="-barbEnd"] { + fill: ${t.lineColor}; +} + +.statediagram-cluster rect { + fill: ${t.compositeTitleBackground}; + stroke: ${t.stateBorder||t.nodeBorder}; + stroke-width: ${t.strokeWidth||1}px; +} + +.cluster-label, .nodeLabel { + color: ${t.stateLabelColor}; + // line-height: 1; +} + +.statediagram-cluster rect.outer { + rx: 5px; + ry: 5px; +} +.statediagram-state .divider { + stroke: ${t.stateBorder||t.nodeBorder}; +} + +.statediagram-state .title-state { + rx: 5px; + ry: 5px; +} +.statediagram-cluster.statediagram-cluster .inner { + fill: ${t.compositeBackground||t.background}; +} +.statediagram-cluster.statediagram-cluster-alt .inner { + fill: ${t.altBackground?t.altBackground:"#efefef"}; +} + +.statediagram-cluster .inner { + rx:0; + ry:0; +} + +.statediagram-state rect.basic { + rx: 5px; + ry: 5px; +} +.statediagram-state rect.divider { + stroke-dasharray: 10,10; + fill: ${t.altBackground?t.altBackground:"#efefef"}; +} + +.note-edge { + stroke-dasharray: 5; +} + +.statediagram-note rect { + fill: ${t.noteBkgColor}; + stroke: ${t.noteBorderColor}; + stroke-width: 1px; + rx: 0; + ry: 0; +} +.statediagram-note rect { + fill: ${t.noteBkgColor}; + stroke: ${t.noteBorderColor}; + stroke-width: 1px; + rx: 0; + ry: 0; +} + +.statediagram-note text { + fill: ${t.noteTextColor}; +} + +.statediagram-note .nodeLabel { + color: ${t.noteTextColor}; +} +.statediagram .edgeLabel { + color: red; // ${t.noteTextColor}; +} + +[id$="-dependencyStart"], [id$="-dependencyEnd"] { + fill: ${t.lineColor}; + stroke: ${t.lineColor}; + stroke-width: ${t.strokeWidth||1}; +} + +.statediagramTitleText { + text-anchor: middle; + font-size: 18px; + fill: ${t.textColor}; +} + +[data-look="neo"].statediagram-cluster rect { + fill: ${t.mainBkg}; + stroke: ${t.useGradient?"url("+t.svgId+"-gradient)":t.stateBorder||t.nodeBorder}; + stroke-width: ${t.strokeWidth??1}; +} +[data-look="neo"].statediagram-cluster rect.outer { + rx: ${t.radius}px; + ry: ${t.radius}px; + filter: ${t.dropShadow?t.dropShadow.replace("url(#drop-shadow)",`url(${t.svgId}-drop-shadow)`):"none"} +} +`,"getStyles"),Ze=Qe,ks={parser:_e,get db(){return new Je(2)},renderer:Xe,styles:Ze,init:u(t=>{t.state||(t.state={}),t.state.arrowMarkerAbsolute=t.arrowMarkerAbsolute},"init")};export{ks as diagram}; diff --git a/src/frontend/web/von_interface/static/vendor/conversation-visuals/swimlanes-2SLR337P-76OBGSXS.js b/src/frontend/web/von_interface/static/vendor/conversation-visuals/swimlanes-2SLR337P-76OBGSXS.js new file mode 100644 index 000000000..c27dd80f1 --- /dev/null +++ b/src/frontend/web/von_interface/static/vendor/conversation-visuals/swimlanes-2SLR337P-76OBGSXS.js @@ -0,0 +1 @@ +import{a as Io}from"./chunk-U7XT7CN7.js";import{g as Mo}from"./chunk-R6BKASFG.js";import"./chunk-E4FJ3GMM.js";import"./chunk-JYJEQ7QO.js";import"./chunk-AKE2LJPJ.js";import"./chunk-NDMMOI35.js";import"./chunk-T4OFBIBR.js";import"./chunk-TEBTVNCH.js";import"./chunk-HVVAQLXH.js";import"./chunk-IVPOI5SM.js";import"./chunk-O46DUOKR.js";import"./chunk-C7YISUMK.js";import"./chunk-6NDAIVIK.js";import"./chunk-EUYVSIXP.js";import"./chunk-QSTT4QQC.js";import"./chunk-S4JILX6U.js";import{b as He}from"./chunk-XEQL7KGA.js";import{a as l}from"./chunk-YUSHYV7C.js";import"./chunk-3RNHDNP5.js";function Eo(t,{measure:e}){let n=t.config?.swimlane?.lineHops;if(n===!1)return;let o=n==="gap"?"gap":"arc",s=t.edges.filter(r=>Array.isArray(r.points)&&r.points.length>=2).map(r=>({id:r.id,points:r.points,curve:r.curve,arrowTypeStart:r.arrowTypeStart,arrowTypeEnd:r.arrowTypeEnd}));Io(e.groups.edgePaths,s,{enabled:!0,jumpRadius:6,jumpStyle:o})}l(Eo,"applySwimlaneLineJumps");var gn="__swimlane_default__",ir=21,So=20;function xn(t){return Math.max(t.padding??So,So)}l(xn,"topLaneHorizontalPadding");function Ro(t){let{x:e,y:n,width:o,height:s}=t,r=t.swimlaneContentTop;if(typeof e!="number"||typeof n!="number"||typeof o!="number"||typeof s!="number"||typeof r!="number"||!Number.isFinite(e)||!Number.isFinite(n)||!Number.isFinite(o)||!Number.isFinite(s)||!Number.isFinite(r)||o<=0||s<=0){delete t.groupTitleRect;return}let c=n-s/2,h=Math.min(r,n+s/2),f=Math.min(ir,Math.max(0,h-c)),u=c+f;if(u<=c){delete t.groupTitleRect;return}t.groupTitleRect={left:e-o/2,right:e+o/2,top:c,bottom:u}}l(Ro,"assignTopLaneTitleRect");function wo(t){let e=t.direction,n=t.nodes??=[];for(let r of t.nodes??[])r.isGroup&&!r.parentId&&(r.shape="swimlane",e&&(r.direction=e));let o=n.filter(r=>!r.isGroup&&!r.parentId);if(o.length===0)return;let s=n.find(r=>r.id===gn);s?s.isGroup&&(s.shape="swimlane",e&&(s.direction=e)):(s={id:gn,label:"",isGroup:!0,shape:"swimlane",padding:20,look:t.config?.look,colorIndex:n.reduce((r,c)=>Math.max(r,c.colorIndex??-1),-1)+1,...e?{direction:e}:{}},n.push(s));for(let r of o)r.parentId=gn}l(wo,"prepareLayoutForSwimlanes");function Ao(t){let e=new Map;for(let f of t.nodes??[])e.set(f.id,f);let n=[];for(let f of t.edges??[]){let u=typeof f.start=="string"?f.start:void 0,y=typeof f.end=="string"?f.end:void 0;!u||!y||f.labelNodeId||n.push({id:f.id,src:u,dst:y,ref:f})}let o=t.nodes??[],s=o.filter(f=>f.isGroup),r=o.filter(f=>!f.isGroup);return{nodes:[...[...s].reverse(),...r].map(f=>f.id),edges:n,layout:t,nodeById:e}}l(Ao,"toGraphView");function No(t,e,n,o){let{layout:s}=t,r=t.nodeById,c=o?.layerGap??100,h=o?.nodeGap??40,f=0;for(let L of e.layers){let m=0;for(let d of L){let i=r.get(d);if(!i){m++;continue}i.layer=f,i.order=m;let p=n.x[d]??m*h,C=n.y[d]??f*c;i.x=p,i.y=C,m++}f++}let u=s.nodes??[],y=new Map,g=[];for(let L of u){if(!L?.isGroup)continue;L.parentId||g.push(L);let m=u.filter(I=>I.parentId===L.id),d=1/0,i=-1/0,p=1/0,C=-1/0;for(let I of m){let T=I.x??n.x[I.id],O=I.y??n.y[I.id],S=I.width??0,b=I.height??0;T!=null&&O!=null&&(d=Math.min(d,T-S/2),i=Math.max(i,T+S/2),p=Math.min(p,O-b/2),C=Math.max(C,O+b/2))}if(d===1/0||p===1/0)L.x=L.x??0,L.y=L.y??0,L.width=L.width??0,L.height=L.height??0;else{let I=L.padding??20,T=L.parentId?I:2*xn(L),O=I,S=Math.max(0,i-d)+T,b=Math.max(0,C-p)+O,E=(d+i)/2,A=(p+C)/2;L.x=E,L.y=A,L.width=S,L.height=b,y.set(L.id,{minX:d,maxX:i,minY:p,maxY:C})}}if(g.length>0&&y.size>0){let L=1/0,m=-1/0,d=0;for(let i of g){let p=i.padding??20;p>d&&(d=p);let C=y.get(i.id);C&&(L=Math.min(L,C.minY),m=Math.max(m,C.maxY))}if(L!==1/0&&m!==-1/0){let i=Math.max(0,m-L),C=Math.max(d,36),I=i+2*C,T=(L+m)/2;for(let F of g)F.y=T,F.height=I,F.swimlaneContentTop=L;let O=[...g].sort((F,w)=>{let _=F.x??0,k=w.x??0;return _-k}),S=[],b=[],E=[];for(let F of O){let w=y.get(F.id);if(!w)continue;let _=Math.max(0,w.maxX-w.minX)+2*xn(F),k=(w.minX+w.maxX)/2;S.push(F.id),b.push(k),E.push(_)}let A=S.length;if(A>0){let F=new Map;if(A===1)F.set(S[0],E[0]);else{let w=[];for(let z=0;z0&&s>0?{cx:e,cy:n,rect:Ee(e,n,o,s)}:void 0}l(Kn,"measuredNodeRect");function qn(t){if(t.isGroup)return;let e=Kn(t);return e?{id:String(t.id??""),cx:e.cx,cy:e.cy,rect:e.rect}:void 0}l(qn,"nodeBoundsInfoFor");function oe(t,e,n=_t){return Math.abs(t.x-e.x)n}l(Et,"isHorizontalSegment");function Rt(t,e,n=_t){return dt(t,e,n)&&Math.abs(t.y-e.y)>n}l(Rt,"isVerticalSegment");function $t(t,e,n,o){return Math.max(0,Math.min(Math.max(t,e),Math.max(n,o))-Math.max(Math.min(t,e),Math.min(n,o)))}l($t,"overlapLength");function ie(t,e,n=_t){return t.horizontal&&e.horizontal&&ht(t.a,e.a,n)?$t(t.a.x,t.b.x,e.a.x,e.b.x):t.vertical&&e.vertical&&dt(t.a,e.a,n)?$t(t.a.y,t.b.y,e.a.y,e.b.y):0}l(ie,"sameAxisSegmentOverlapLength");function Re(t,e=_t){let n=[];for(let o=0;o0?n[n.length-1]:void 0;(!s||!oe(s,o,e))&&n.push({x:o.x,y:o.y})}return n}l(mt,"dedupeConsecutivePoints");function Zn(t,e=_t){if(!t||t.length!==4)return;let[n,o,s,r]=t;return Et(n,o,e)&&Rt(o,s,e)&&Et(s,r,e)?{kind:"HVH",p0:n,p1:o,p2:s,p3:r}:Rt(n,o,e)&&Et(o,s,e)&&Rt(s,r,e)?{kind:"VHV",p0:n,p1:o,p2:s,p3:r}:void 0}l(Zn,"classifyThreeSegmentRoute");function Qe(t,e,n,o=0){let s=Math.min(t.x,e.x),r=Math.max(t.x,e.x),c=Math.min(t.y,e.y),h=Math.max(t.y,e.y);return r>n.left-o&&sn.top-o&&ce.left+n&&t.xe.top+n&&t.y=e.right&&t.top<=e.top&&t.bottom>=e.bottom}l(Bo,"rectContainsRect");function $e(t,e){return t.lefte.left&&t.tope.top}l($e,"rectsOverlap");function bn(t,e){return{left:t.left-e,right:t.right+e,top:t.top-e,bottom:t.bottom+e}}l(bn,"inflateRect");function Ee(t,e,n,o){return{left:t-n/2,right:t+n/2,top:e-o/2,bottom:e+o/2}}l(Ee,"rectFromCenterSize");function qt(t){return Kn(t)?.rect}l(qt,"rectOfNodeBounds");function Ie(t,e){switch(e){case"top":return{x:t.cx,y:t.rect.top};case"bottom":return{x:t.cx,y:t.rect.bottom};case"left":return{x:t.rect.left,y:t.cy};case"right":return{x:t.rect.right,y:t.cy}}}l(Ie,"portForRectSide");function Qn(t,e,n,o,s,r=_t){let c=e==="left"||e==="right",h=o==="left"||o==="right";if(c&&h){if(e==="right"&&o==="left"&&t.xn.x){if(ht(t,n,r))return[t,n];let g=(t.x+n.x)/2;return[t,{x:g,y:t.y},{x:g,y:n.y},n]}if(e===o){if(ht(t,n,r))return;let g=e==="left"?Math.min(t.x,n.x)-s:Math.max(t.x,n.x)+s;return[t,{x:g,y:t.y},{x:g,y:n.y},n]}return}if(!c&&!h){if(e===o){if(dt(t,n,r))return;let L=e==="top"?Math.min(t.y,n.y)-s:Math.max(t.y,n.y)+s;return[t,{x:t.x,y:L},{x:n.x,y:L},n]}if(!(e==="bottom"&&o==="top"&&t.yn.y))return;if(dt(t,n,r))return[t,n];let g=(t.y+n.y)/2;return[t,{x:t.x,y:g},{x:n.x,y:g},n]}if(c&&!h){let y=e==="right"&&n.x>t.x||e==="left"&&n.xn.y;return y&&g?[t,{x:n.x,y:t.y},n]:void 0}let f=e==="bottom"&&n.y>t.y||e==="top"&&n.yn.x;return f&&u?[t,{x:t.x,y:n.y},n]:void 0}l(Qn,"buildOrthogonalPortPath");function to(t,e,n,o){return e==="left"||e==="right"?[t,{x:o,y:t.y},{x:o,y:n.y},n]:[t,{x:t.x,y:o},{x:n.x,y:o},n]}l(to,"buildSameSideTrackPath");function tn(t){let e=new Map,n=[];for(let o of t){if(o.isEdgeLabel)continue;let s=qn(o);s&&(e.set(s.id,s),n.push({id:s.id,rect:s.rect}))}return{nodeInfoById:e,realNodeRects:n}}l(tn,"collectRealNodeBounds");function me(t){let e=[],n=[];for(let o of t){let s=qn(o);if(!s)continue;let r={id:s.id,rect:s.rect};o.isEdgeLabel?n.push(r):e.push(r)}return{realNodeRects:e,labelNodeRects:n}}l(me,"collectNodeRectEntries");function Fo(t,{includeEdgeLabels:e=!0}={}){let n=[];for(let o of t){if(o.isGroup||!e&&o.isEdgeLabel)continue;let s=o.x??0,r=o.y??0,c=o.width??0,h=o.height??0;n.push({nodeId:o.id,...Ee(s,r,c,h)})}return n}l(Fo,"collectLayoutNodeRects");function eo(t,e,n=_t){let o=t.start,s=t.end;if(!o||!s)return;let r=e.get(o),c=e.get(s);if(!(!r||!c))return{srcId:o,dstId:s,srcInfo:r,dstInfo:c,collinearX:Math.abs(r.cx-c.cx)d||LC)return!1;let I=Math.abs(i-y.a.x)s:r&&h&&ht(t,n,s)?$t(t.x,e.x,n.x,o.x)>s:!1}l(Po,"sameAxisSegmentsOverlap");function Ve(t,e,n,o,{epsilon:s=_t,skipDegenerateOther:r=!1}={}){for(let c of n){if(c===o||c.isLayoutOnly)continue;let h=c.points;if(!(!h||h.length<2))for(let f=0;fL+s&&di+s&&go+_t&&t=2?e[e.length-2]:void 0,f=(c?dt(c,s):!1)?{x:s.x,y:r.y}:{x:r.x,y:s.y};e.push(f)}e.push(r)}let n=[];for(let o of e){let s=n[n.length-1];(!s||!oe(s,o))&&n.push(o)}return n}l(Ue,"orthogonalizePolyline");function ce(t){if(t.length<3)return t;let e=[...t];for(let n=0;n<32;n++){let o=_o(e);if(e=o.points,!o.changed)break}return e}l(ce,"simplifyPolyline");var nt=.001,ar=.5,Co=4;function oo(t,e,n){let o=t;if(o.isLayoutOnly||!o.points||o.points.length=0&&s=t.length)return t;let r=s-o;if(r<0||r>=t.length)return t;let c=Ho(t[s],t[r],e);return n?[c,...t.slice(s)]:[...t.slice(0,s+1),c]}l(Mn,"clipEndpoint");function Do(t,e){for(let n of t){let o=oo(n,e,2);if(!o)continue;let s=[...o.points];o.srcRect&&(s=Mn(s,o.srcRect,!0)),o.dstRect&&(s=Mn(s,o.dstRect,!1)),s=ce(Ue(s)),s=so(s,o.srcRect,o.dstRect),o.edge.points=ce(Ue(s))}}l(Do,"clipEdgeEndpointsToNodeBoundaries");function Sn(t,e,n,o=!1){if(ht(t,e,nt)){if(e.yn.bottom+nt)return e;if(o){if(t.xn.right+nt)return{x:n.right,y:t.y}}return{x:Math.abs(e.x-n.left)<=Math.abs(e.x-n.right)?n.left:n.right,y:t.y}}if(dt(t,e,nt)){if(e.xn.right+nt)return e;if(o){if(t.yn.bottom+nt)return{x:t.x,y:n.bottom}}let s=Math.abs(e.y-n.top)<=Math.abs(e.y-n.bottom);return{x:t.x,y:s?n.top:n.bottom}}return e}l(Sn,"snapEndpointToBoundary");function je(t,e,n){let o=t[e];for(let s=e+n;s>=0&&so.lo)),n=Math.min(...t.map(o=>o.hi));if(!(e>n))return{lo:e,hi:n}}l(Xo,"intersectRanges");function vn(t,e){return e==="left"||e==="right"?We(t.top,t.bottom):We(t.left,t.right)}l(vn,"clearanceRangeForSide");function Ke(t,e,n){let o=t.y>=n.top-nt&&t.y<=n.bottom+nt,s=t.x>=n.left-nt&&t.x<=n.right+nt;if(ht(t,e,nt)&&o){if(Math.abs(t.x-n.left)0?Xo(r):void 0}l(Yo,"straightClearanceRange");function Ln(t,e,n,o,s){let r=Yo(t,e,n,o,s);if(!r)return;let c=s?t.y:t.x,h=Math.min(r.hi,Math.max(r.lo,c));if(!(Math.abs(h-c)({...h}));for(let h=e;h>=0&&h=n.left-nt&&Math.max(t.x,e.x)<=n.right+nt,s=Math.min(t.y,e.y)>=n.top-nt&&Math.max(t.y,e.y)<=n.bottom+nt;if(Math.abs(t.y-n.top)o.bottom+nt;case"left":return ht(e,n,nt)&&n.xo.right+nt}}l(Rn,"leavesOutward");function wn(t,e,n){if(t.length<3)return t;if(n){let r=En(t[0],t[1],e);return r&&Rn(r,t[1],t[2],e)?t.slice(1):t}let o=t.length-1,s=En(t[o-1],t[o],e);return s&&Rn(s,t[o-1],t[o-2],e)?t.slice(0,o):t}l(wn,"collapseOwnBorderStub");function $o(t,e,n){let o=t;if(e){let r=je(o,0,1);if(r){let c=Sn(r,o[0],e);c!==o[0]&&(o=[c,...o.slice(1)])}o=wn(o,e,!0)}if(n){let r=o.length-1,c=je(o,r,-1);if(c){let h=Sn(c,o[r],n,!0);h!==o[r]&&(o=[...o.slice(0,r),h])}o=wn(o,n,!1)}let s=so(o,e,n);return s!==o||o.length===2?s:(e&&(o=Tn(o,e,!0)),n&&(o=Tn(o,n,!1)),o)}l($o,"snapAndCollapseEndpoints");function An(t,e){for(let n of t){let o=oo(n,e,2);if(!o)continue;let s=mt(o.points,nt),r=$o(s,o.srcRect,o.dstRect);if(r.length<3){o.edge.points=r;continue}let c=[r[0],{...r[0]},...r.slice(1,-1),r[r.length-1],{...r[r.length-1]}];o.edge.points=c}}l(An,"prepareEdgeEndpointsForRenderer");function ro(t){return new Map(t.map(e=>[e.id,e]))}l(ro,"buildNodeMap");function Vo(t,e){let n=t.parentId,o=null;for(;n;){let s=e.get(n);if(!s?.isGroup)break;o=s.id,n=s.parentId}return o}l(Vo,"resolveTopLevelGroupId");function Nn(t,e){let n=0,o=t.parentId;for(;o;){let s=e.get(o);if(!s?.isGroup)break;n++,o=s.parentId}return n}l(Nn,"groupDepth");function io(t){let e=1/0,n=-1/0,o=1/0,s=-1/0;for(let r of t){let c=r.x,h=r.y;if(typeof c!="number"||typeof h!="number")continue;let f=r.width??0,u=r.height??0;e=Math.min(e,c-f/2),n=Math.max(n,c+f/2),o=Math.min(o,h-u/2),s=Math.max(s,h+u/2)}return e===1/0||o===1/0?null:{minX:e,maxX:n,minY:o,maxY:s}}l(io,"boundsForChildren");function Uo(t,e){let n=t.padding??20;t.x=(e.minX+e.maxX)/2,t.y=(e.minY+e.maxY)/2,t.width=Math.max(0,e.maxX-e.minX)+n,t.height=Math.max(0,e.maxY-e.minY)+n}l(Uo,"applyGroupBounds");function jo(t){let e=ro(t),n=t.filter(o=>o.isGroup&&o.parentId).sort((o,s)=>Nn(s,e)-Nn(o,e));for(let o of n){let s=t.filter(c=>c.parentId===o.id),r=io(s);r&&Uo(o,r)}}l(jo,"recomputeNestedGroupBounds");function qe(t,e){let n=t.nodes??[],o=t.edges??[],s=n.filter(f=>!f.isGroup),r=1/0,c=-1/0;for(let f of s){let u=f[e];typeof u=="number"&&(r=Math.min(r,u),c=Math.max(c,u))}if(!Number.isFinite(r)||!Number.isFinite(c))return!1;let h=l(f=>r+c-f,"mirror");for(let f of n){let u=f[e];typeof u=="number"&&(f[e]=h(u));let y=f.groupTitleRect;y&&(f.groupTitleRect=e==="x"?{...y,left:h(y.right),right:h(y.left)}:{...y,top:h(y.bottom),bottom:h(y.top)})}for(let f of o)for(let u of f.points??[])u[e]=h(u[e]);return!0}l(qe,"mirrorAxis");function Wo(t){return(t.nodes??[]).some(n=>!n.isGroup)?qe(t,"y"):!0}l(Wo,"applyBtDirectionTransform");function Ko(t,e="LR"){let n=t.nodes??[],o=t.edges??[],s=n.filter(B=>!B.isGroup),r=1/0,c=1/0;for(let B of s){let X=B.x??0,z=B.y??0;X0?Math.max(1,y/g):1;for(let B of s){let X=B.x??0,K=((B.y??0)-c)*L+h,ct=X-r;B.x=K,B.y=ct}for(let B of o)if(B.points)for(let X of B.points){let z=X.x,ct=(X.y-c)*L+h,pt=z-r;X.x=ct,X.y=pt}jo(n);let m=n.filter(B=>B.isGroup&&!B.parentId);if(m.length===0)return e==="RL"&&qe(t,"x"),!0;let d=ro(n),i=new Map;for(let B of n){if(B.isGroup)continue;let X=Vo(B,d);if(!X)continue;let z=i.get(X)??[];z.push(B),i.set(X,z)}let p=0;for(let B of m){let X=B.padding??0;X>p&&(p=X)}let C=[],I=1/0,T=-1/0;for(let B of m){let X=i.get(B.id)??[],z=io(X);z&&(I=Math.min(I,z.minX),T=Math.max(T,z.maxX),C.push({lane:B,contentTop:z.minY,contentBottom:z.maxY,centerY:(z.minY+z.maxY)/2}))}if(I===1/0||T===-1/0)return!0;let O=Math.max(0,T-I),S=Math.max(p,10),b=O+2*S,E=h+b,w=(I+T)/2-b/2-h,_=w+E/2,k=Math.max(p,h);C.sort((B,X)=>B.centerY-X.centerY);for(let B=0;BL.cy?C.bottom:C.top,k=L.cx+I;if(k<=C.left+se||k>=C.right-se)continue;T={x:k,y:_},O={x:k,y:h.y},S={x:h.x,y:h.y}}else{let _=m.cx>L.cx?C.right:C.left,k=L.cy+I;if(k<=C.top+se||k>=C.bottom-se)continue;T={x:_,y:k},O={x:h.x,y:k},S={x:h.x,y:h.y}}let b=oe(T,O,se),E=oe(O,S,se);if(b&&E||!b&&wt(T,O,o,[y],1)||!E&&wt(O,S,o,[g],1))continue;let A=!b&&Ve(T,O,t,s,{epsilon:se,skipDegenerateOther:!0}),F=!E&&Ve(O,S,t,s,{epsilon:se,skipDegenerateOther:!0});if(!(A||F)){b?p=[O,S]:E?p=[T,O]:p=[T,O,S];break}}p&&(s.points=p)}}l(qo,"portSwapToLShape");function Zo(t,e){let{realNodeRects:r,labelNodeRects:c}=me(e.values());for(let h of t){if(h.isLayoutOnly)continue;let f=h.points;if(!f||f.length<4)continue;let u=mt(f,.001);if(u.length<4)continue;let y=u.length-1,g=u[y],L=u[y-1],m=u[y-2],d=g.x-L.x,i=g.y-L.y,p=Math.hypot(d,i);if(p>=10||p<.001)continue;let C=L.x-m.x,I=L.y-m.y;if(Math.hypot(C,I)<.001)continue;let O=Et(L,g,.001),S=Rt(L,g,.001),b=Et(m,L,.001),E=Rt(m,L,.001);if(!(O&&E||S&&b))continue;let A=h.end,F=h.start,w=A?e.get(A):void 0;if(!w)continue;let _=w.x??0,k=w.y??0,B=qt(w);if(!B)continue;let X,z;if(E){let W=I<0;X={x:_,y:m.y},z={x:_,y:W?B.bottom:B.top}}else{let W=C>0;X={x:m.x,y:k},z={x:W?B.right:B.left,y:k}}if(wt(X,z,r,A?[A]:[],-2)||wt(X,z,c,[],-2))continue;if(F){let W=e.get(F),et=W?qt(W):void 0;if(et&&Jn(X,et,2))continue}let K=l((W,et)=>`${W.x.toFixed(3)},${W.y.toFixed(3)}|${et.x.toFixed(3)},${et.y.toFixed(3)}`,"ownSegmentKey"),ct=new Set;for(let W=0;W{for(let lt of t){if(lt===h||lt.isLayoutOnly)continue;let gt=lt.points;if(!(!gt||gt.length<2))for(let xt=0;xt=0){let W=u[y-3],et=[F,A].filter(lt=>!!lt);if(wt(W,X,r,et,-2)||pt(W,X))continue}let Ft=[...u.slice(0,y-2),X,z];h.points=Ft;let Q=h.labelNodeId;if(Q){let W=e.get(Q);if(W){let et=W.width??0,lt=W.height??0;if(et>0&<>0){let gt,xt,vt=-1;for(let Vt=0;Vt=et+2||fe&&te>=lt+2)&&te>vt&&(vt=te,gt=(Ut.x+jt.x)/2,xt=(Ut.y+jt.y)/2)}gt!==void 0&&xt!==void 0&&(W.x=gt,W.y=xt)}}}}}l(Zo,"collapseShortTerminalStub");var J=.001,kt=8,it=Re,mn=l((t,e)=>dt(t,e,J)||ht(t,e,J),"orthogonallyAligned");function Jo(t,e){let s=l((m,d)=>{let i=m.x??0,p=m.y??0,C=d.x-i,I=d.y-p,T=(m.width??0)/2,O=(m.height??0)/2;return Math.abs(I)*T>Math.abs(C)*O?(I<0&&(O=-O),{x:i+(I===0?0:O*C/I),y:p+O}):(C<0&&(T=-T),{x:i+T,y:p+(C===0?0:T*I/C)})},"rectIntersect"),r=l((m,d)=>{let i=mt(m.points??[]);if(i.length<2)return;let p=d?m.start:m.end,C=p?e.get(p):void 0,I=C?qt(C):void 0;if(!C||!p||!I)return;let T=d?i[0]:i[i.length-1],O=d?i[1]:i[i.length-2],S=s(C,T),b=T;if(mn(O,S)&&(b=O),dt(S,b,J))return{edge:m,edgeId:String(m.id??""),nodeId:p,atStart:d,orientation:"V",coord:S.x,min:Math.min(S.y,b.y),max:Math.max(S.y,b.y),boundary:S,railEnd:b,rect:I};if(ht(S,b,J))return{edge:m,edgeId:String(m.id??""),nodeId:p,atStart:d,orientation:"H",coord:S.y,min:Math.min(S.x,b.x),max:Math.max(S.x,b.x),boundary:S,railEnd:b,rect:I}},"terminalLaneFor"),c=l((m,d)=>Math.max(0,Math.min(m.max,d.max)-Math.max(m.min,d.min)),"projectedOverlapLength"),h=l((m,d)=>m.nodeId!==d.nodeId||m.orientation!==d.orientation?!1:m.orientation==="H"?(Math.abs(m.boundary.x-m.rect.left)<1||Math.abs(m.boundary.x-m.rect.right)<1)&&dt(m.boundary,d.boundary,1):(Math.abs(m.boundary.y-m.rect.top)<1||Math.abs(m.boundary.y-m.rect.bottom)<1)&&ht(m.boundary,d.boundary,1),"sameTerminalFace"),f=l((m,d)=>m.nodeId!==d.nodeId||m.orientation!==d.orientation?!1:c(m,d)>=kt&&Math.abs(m.coord-d.coord)<.5,"exactTerminalLaneConflict"),u=l((m,d)=>{if(m.nodeId!==d.nodeId||m.orientation!==d.orientation||m.orientation!=="H"||m.atStart===d.atStart)return!1;let i=c(m,d);if(i2*p?!1:h(m,d)&&Math.abs(m.coord-d.coord)<16},"nearTerminalLaneConflict"),y=l((m,d)=>{let i=mt(m.edge.points??[]);if(i.length<2)return;let p=m.orientation==="V"?{x:m.boundary.x+d,y:m.boundary.y}:{x:m.boundary.x,y:m.boundary.y+d},C=m.orientation==="V"?{x:m.railEnd.x+d,y:m.railEnd.y}:{x:m.railEnd.x,y:m.railEnd.y+d};if(!l(()=>Math.abs(m.boundary.y-m.rect.top)<1||Math.abs(m.boundary.y-m.rect.bottom)<1?ht(p,m.boundary,J)&&p.x>=m.rect.left+1&&p.x<=m.rect.right-1:Math.abs(m.boundary.x-m.rect.left)<1||Math.abs(m.boundary.x-m.rect.right)<1?dt(p,m.boundary,J)&&p.y>=m.rect.top+1&&p.y<=m.rect.bottom-1:!1,"boundaryStaysOnSameFace")())return;if(m.atStart){let b=i.length>1&&oe(i[1],m.railEnd,J),E=i.slice(b?2:1),A=E[0];return A&&!mn(A,C)?void 0:[p,C,...E]}let T=i.length>1&&oe(i[i.length-2],m.railEnd,J),O=i.slice(0,T?-2:-1),S=O[O.length-1];if(!(S&&!mn(S,C)))return[...O,C,p]},"shiftedCandidate"),g=l(m=>{let d=m.edge,i=mt(d.points??[]);if(i.length!==2)return!1;let p=d.start,C=d.end,I=p?e.get(p):void 0,T=C?e.get(C):void 0;if(!I||!T)return!1;let O=I.x??0,S=I.y??0,b=T.x??0,E=T.y??0,[A,F]=i;return ht(A,F,J)&&Math.abs(S-E)<1&&Math.abs(O-b)>1||dt(A,F,J)&&Math.abs(O-b)<1&&Math.abs(S-E)>1},"laneIsStraightCollinearConnector"),L=[-7,7,-14,14,-21,21];for(let m=0;m<8;m++){let d=t.filter(p=>!p.isLayoutOnly).flatMap(p=>[r(p,!0),r(p,!1)]).filter(p=>!!p),i=!1;for(let p=0;p{let A=g(b),F=g(E);return A!==F?Number(A)-Number(F):+!E.atStart-+!b.atStart});for(let b of S){for(let E of L){let A=y(b,E);if(!A)continue;let F=r({...b.edge,points:A},b.atStart);if(!(!F||d.some(w=>w.edge!==b.edge&&(f(F,w)||O&&u(F,w))))){b.edge.points=A,i=!0;break}}if(i)break}}if(!i)return}}l(Jo,"separateSharedRenderedTerminalLanes");function Qo(t,e){let{realNodeRects:s,labelNodeRects:r}=me(e.values()),c=l((f,u)=>{let y=f.start,g=f.end,L=it(u);if(L.length!==u.length-1)return!1;let m=[y,g].filter(d=>!!d);for(let d of L)if(wt(d.a,d.b,s,m,-2)||wt(d.a,d.b,r,[],-2))return!1;for(let d of t){if(d===f||d.isLayoutOnly)continue;let i=d.points;if(!(!i||i.length<2)){for(let p of L)for(let C of it(mt(i)))if(ie(p,C,.5)>=kt||ae(p.a,p.b,C.a,C.b,J))return!1}}return!0},"candidateIsSafe"),h=l((f,u)=>{if(u+4>=f.length)return;let y=f[u],g=f[u+1],L=f[u+2],m=f[u+3],d=f[u+4],i=Et(y,g)&&Rt(g,L)&&Et(L,m)&&Rt(m,d)&&dt(y,m,J)&&dt(y,d,J)&&dt(g,L,J)&&(g.x-y.x)*(m.x-L.x)<0,p=Rt(y,g)&&Et(g,L)&&Rt(L,m)&&Et(m,d)&&ht(y,m,J)&&ht(y,d,J)&&ht(g,L,J)&&(g.y-y.y)*(m.y-L.y)<0;if(i||p)return mt([...f.slice(0,u+1),d,...f.slice(u+5)]);if(u+5>=f.length)return;let C=f[u+5],I=Rt(y,g)&&Et(g,L)&&Rt(L,m)&&Et(m,d)&&Rt(d,C)&&dt(y,d,J)&&dt(y,C,J)&&dt(L,m,J)&&(L.x-g.x)*(d.x-m.x)<0,T=Et(y,g)&&Rt(g,L)&&Et(L,m)&&Rt(m,d)&&Et(d,C)&&ht(y,d,J)&&ht(y,C,J)&&ht(L,m,J)&&(L.y-g.y)*(d.y-m.y)<0;if(!(!I&&!T))return mt([...f.slice(0,u+1),C,...f.slice(u+6)])},"withoutDogleg");for(let f=0;f<8;f++){let u=!1;for(let y of t){if(y.isLayoutOnly)continue;let g=mt(y.points??[]);for(let L=0;L<=g.length-5;L++){let m=h(g,L);if(!(!m||!c(y,m))){y.points=m,u=!0;break}}if(u)break}if(!u)return}}l(Qo,"collapseRedundantRectangularDoglegs");function On(t,e){let{realNodeRects:r,labelNodeRects:c}=me(e.values()),h=t.filter(d=>!d.isLayoutOnly),f=l((d,i,p)=>mt(d===i?p??[]:d.points??[]),"pointsFor"),u=l((d,i)=>{let p=0;for(let C=0;C{let i=it(d);if(i.length!==3)return;let p=i[1];if(!(i[0].horizontal===p.horizontal||i[2].horizontal===p.horizontal))return{index:p.index,horizontal:p.horizontal,vertical:p.vertical,segment:p}},"middleRail"),g=l((d,i)=>{let p=[d.start,d.end].filter(C=>!!C);return r.filter(C=>{if(p.includes(C.id))return!1;let I=C.rect;return i.horizontal?$t(i.a.x,i.b.x,I.left,I.right)>=kt&&i.a.y>=I.top-2&&i.a.y<=I.bottom+2:$t(i.a.y,i.b.y,I.top,I.bottom)>=kt&&i.a.x>=I.left-2&&i.a.x<=I.right+2})},"blockingRectsFor"),L=l((d,i,p)=>{let C=d.map(T=>({...T}));if(i.horizontal)C[i.index].y=p,C[i.index+1].y=p;else if(i.vertical)C[i.index].x=p,C[i.index+1].x=p;else return;let I=ce(mt(C));return it(I).length===I.length-1?I:void 0},"candidateByMovingRail"),m=l((d,i,p)=>{let C=[d.start,d.end].filter(T=>!!T),I=it(i);if(I.length!==i.length-1)return!1;for(let T of I)if(wt(T.a,T.b,r,C,-2)||wt(T.a,T.b,c,[],-2))return!1;for(let T of h)if(T!==d){for(let O of I)for(let S of it(f(T)))if(ie(O,S,.5)>=kt)return!1}return u(d,i)<=p},"candidateIsSafe");for(let d=0;d<8;d++){let i=u(),p=!1;for(let C of h){let I=f(C),T=y(I);if(!T)continue;let O=g(C,T.segment);if(O.length===0)continue;let S=T.horizontal?[Math.min(...O.map(b=>b.rect.top))-20,Math.max(...O.map(b=>b.rect.bottom))+20]:[Math.min(...O.map(b=>b.rect.left))-20,Math.max(...O.map(b=>b.rect.right))+20];for(let b of S){let E=L(I,T.segment,b);if(!(!E||!m(C,E,i))){C.points=E,p=!0;break}}if(p)break}if(!p)return}}l(On,"liftObstacleHuggingSameSideRails");function Bn(t,e){let o=l(f=>{let u=f.groupTitleRect;if(!(!u||typeof u.left!="number"||typeof u.right!="number"||typeof u.top!="number"||typeof u.bottom!="number"||!Number.isFinite(u.left)||!Number.isFinite(u.right)||!Number.isFinite(u.top)||!Number.isFinite(u.bottom)||u.right<=u.left||u.bottom<=u.top))return{left:u.left,right:u.right,top:u.top,bottom:u.bottom}},"validTitleRect"),s=l(f=>{if(!f.isGroup||f.parentId)return;let u=f.direction,y=typeof u=="string"?u.toUpperCase():"";if(y==="LR"||y==="RL"||y==="BT")return;let g=o(f),L=f.y,m=f.height;if(!g||typeof L!="number"||typeof m!="number"||!Number.isFinite(L)||!Number.isFinite(m)||m<=0)return;let d=g.right-g.left,i=g.bottom-g.top;if(!(i<=0||d{if(!f.horizontal)return!1;let y=f.a.y;return y<=u.top+J||y>=u.bottom-J?!1:$t(f.a.x,f.b.x,u.left,u.right)>=kt},"horizontalSegmentIntersectsTitle"),c=[...e.values()].map(s).filter(f=>!!f);if(c.length===0)return;let h=0;for(let f of t){if(f.isLayoutOnly)continue;let u=mt(f.points??[]);for(let y of it(u))for(let g of c)r(y,g.rect)&&(h=Math.max(h,g.rect.bottom-y.a.y+4))}if(!(h<=J))for(let f of c){let u=f.node.y,y=f.node.height;typeof u!="number"||typeof y!="number"||!Number.isFinite(u)||!Number.isFinite(y)||y<=0||(f.node.y=u-h/2,f.node.height=y+h,f.node.groupTitleRect={...f.rect,top:f.rect.top-h,bottom:f.rect.bottom-h})}}l(Bn,"liftTopLaneTitleBandsAboveRails");function Fn(t,e){let o=l(u=>{let y=u.groupTitleRect;if(!(!y||typeof y.left!="number"||typeof y.right!="number"||typeof y.top!="number"||typeof y.bottom!="number"||!Number.isFinite(y.left)||!Number.isFinite(y.right)||!Number.isFinite(y.top)||!Number.isFinite(y.bottom)||y.right<=y.left||y.bottom<=y.top))return{left:y.left,right:y.right,top:y.top,bottom:y.bottom}},"validTitleRect"),s=l(u=>{if(!u.isGroup||u.parentId||u.direction!=="LR")return;let g=o(u),L=u.x,m=u.width;if(!g||typeof L!="number"||typeof m!="number"||!Number.isFinite(L)||!Number.isFinite(m)||m<=0)return;let d=g.right-g.left,i=g.bottom-g.top;if(!(d<=0||i{if(!u.vertical)return!1;let g=u.a.x;return g<=y.left+J||g>=y.right-J?!1:$t(u.a.y,u.b.y,y.top,y.bottom)>=kt},"verticalSegmentIntersectsTitle"),c=l((u,y)=>{if(!u.horizontal)return!1;let g=u.a.y;return g<=y.top+J||g>=y.bottom-J?!1:$t(u.a.x,u.b.x,y.left,y.right)>=kt},"horizontalSegmentIntersectsTitle"),h=[...e.values()].map(s).filter(u=>!!u);if(h.length===0)return;let f=0;for(let u of t){if(u.isLayoutOnly)continue;let y=mt(u.points??[]);for(let g of it(y))for(let L of h)if(r(g,L.rect))f=Math.max(f,L.rect.right-g.a.x+4);else if(c(g,L.rect)){let m=Math.min(g.a.x,g.b.x);f=Math.max(f,L.rect.right-m+4)}}if(!(f<=J))for(let u of h){let y=u.node.x,g=u.node.width;typeof y!="number"||typeof g!="number"||!Number.isFinite(y)||!Number.isFinite(g)||g<=0||(u.node.x=y-f/2,u.node.width=g+f,u.node.groupTitleRect={...u.rect,left:u.rect.left-f,right:u.rect.right-f})}}l(Fn,"shiftLeftLaneTitleBandsLeftOfRails");function ts(t,e){let{realNodeRects:s}=me(e.values()),r=t.filter(i=>!i.isLayoutOnly),c=l((i,p=new Map)=>mt(p.get(i)??i.points??[]),"replacementPointsFor"),h=l((i=new Map)=>{let p=0;for(let C=0;Cr.reduce((p,C)=>p+Qt(c(C,i)),0),"totalBends"),u=l(i=>{let p=c(i);if(p.length<4)return;let C=p[p.length-2],I=p[p.length-1];if(!(!Et(C,I,J)&&!Rt(C,I,J)))return{tailStart:C,terminal:I}},"terminalTailFor"),y=l((i,p)=>{let C=c(i);if(C.length<3)return;let I=C[0],T=C[1],O;if(Et(I,T,J))O={x:T.x,y:p.tailStart.y};else if(Rt(I,T,J))O={x:p.tailStart.x,y:T.y};else return;let S=ce(mt([I,T,O,p.tailStart,p.terminal]));return it(S).length===S.length-1?S:void 0},"candidateWithDestinationTail"),g=l((i,p)=>{let C=[i.start,i.end].filter(I=>!!I);for(let I of it(p))if(wt(I.a,I.b,s,C,-2))return!0;return!1},"pathHasNodeHit"),L=l((i,p,C)=>{for(let I of r)if(I!==i){for(let T of it(p))for(let O of it(c(I,C)))if(ie(T,O,.5)>=kt)return!0}return!1},"pathHasSharedTrack"),m=l((i,p,C)=>!g(i,p)&&!L(i,p,C),"candidateIsSafe"),d=l(()=>{let i=new Map;for(let p of r){let C=p.end;if(!C||!e.has(C)||c(p).length<4)continue;let T=i.get(C)??[];T.push(p),i.set(C,T)}return i},"edgesByDestination");for(let i=0;i<4;i++){let p=h();if(p===0)return;let C=f(),I,T=p,O=C;for(let S of d().values())for(let b=0;b=p||z>T||z===T&&K>=O||(I=X,T=z,O=K)}if(!I)return;for(let[S,b]of I)S.points=b}}l(ts,"swapDestinationTerminalTailsToReduceCrossings");function es(t,e){let{realNodeRects:c,labelNodeRects:h}=me(e.values()),f=t.filter(S=>!S.isLayoutOnly),u=l((S,b=new Map)=>mt(b.get(S)??S.points??[]),"replacementPointsFor"),y=l((S=new Map)=>{let b=0;for(let E=0;Ef.reduce((b,E)=>b+Qt(u(E,S)),0),"totalBends"),L=l(S=>{let b=S.start,E=S.end,A=b?e.get(b):void 0,F=E?e.get(E):void 0,w=A?qt(A):void 0,_=F?qt(F):void 0;return w&&_?{src:w,dst:_}:void 0},"endpointRectsFor"),m=l((S,b,E)=>{if(E.index<=0||E.index+1>=b.length-1)return;let A=L(S);if(A){if(E.vertical){let F=E.a.x,w=Math.min(A.src.left,A.dst.left),_=Math.max(A.src.right,A.dst.right),k=F_+J?"right":void 0;return k?{edge:S,points:b,segmentIndex:E.index,axis:"vertical",side:k,coord:F,min:Math.min(E.a.y,E.b.y),max:Math.max(E.a.y,E.b.y)}:void 0}if(E.horizontal){let F=E.a.y,w=Math.min(A.src.top,A.dst.top),_=Math.max(A.src.bottom,A.dst.bottom),k=F_+J?"bottom":void 0;return k?{edge:S,points:b,segmentIndex:E.index,axis:"horizontal",side:k,coord:F,min:Math.min(E.a.x,E.b.x),max:Math.max(E.a.x,E.b.x)}:void 0}}},"externalRailForSegment"),d=l(()=>{let S=[];for(let b of f){let E=u(b);for(let A of it(E)){let F=m(b,E,A);F&&S.push(F)}}return S},"collectExternalRails"),i=l((S,b)=>S.edge!==b.edge&&S.axis===b.axis&&S.side===b.side&&$t(S.min,S.max,b.min,b.max)>=kt,"railsInteract"),p=l(S=>{let b=[],E=new Set;for(let A of S){if(E.has(A))continue;let F=[A],w=[];for(E.add(A);F.length>0;){let _=F.pop();w.push(_);for(let k of S)!E.has(k)&&i(_,k)&&(E.add(k),F.push(k))}w.length>1&&b.push(w)}return b},"connectedComponents"),C=l(S=>{let b=[];for(let E of S)b.some(A=>Math.abs(A-E.coord){let b=S.map(F=>F.coord),E=C(S),A=[];if(S.length<=6){let F=new Array(E.length).fill(!1),w=[],_=l(()=>{if(w.length===S.length){w.some((k,B)=>Math.abs(k-b[B])>=J)&&A.push([...w]);return}for(let[k,B]of E.entries())F[k]||(F[k]=!0,w.push(B),_(),w.pop(),F[k]=!1)},"visit");return _(),A}for(let F=0;F{let E=new Map;for(let[F,w]of S.entries()){let _=b[F],k=E.get(w.edge)??w.points.map(B=>({x:B.x,y:B.y}));w.axis==="vertical"?(k[w.segmentIndex].x=_,k[w.segmentIndex+1].x=_):(k[w.segmentIndex].y=_,k[w.segmentIndex+1].y=_),E.set(w.edge,k)}let A=new Map;for(let[F,w]of E){let _=ce(mt(w));if(it(_).length!==_.length-1)return;A.set(F,_)}return A},"replacementsForAssignment"),O=l(S=>{for(let[b,E]of S){let A=[b.start,b.end].filter(F=>!!F);for(let F of it(E))if(wt(F.a,F.b,c,A,-2)||wt(F.a,F.b,h,[],-2))return!1}for(let b=0;b=kt)return!1}}return!0},"candidateIsSafe");for(let S=0;S<4;S++){let b=y();if(b===0)return;let E,A=b,F=g(),w=Number.POSITIVE_INFINITY;for(let _ of p(d()))for(let k of I(_)){let B=T(_,k);if(!B||!O(B))continue;let X=y(B);if(X>=b)continue;let z=g(B),K=_.reduce((ct,pt,At)=>ct+Math.abs(k[At]-pt.coord),0);X>A||X===A&&(z>F||z===F&&K>=w)||(E=B,A=X,F=z,w=K)}if(!E)return;for(let[_,k]of E)_.points=k}}l(es,"reassignCrossingExternalRailChannels");function ns(t,e){let{realNodeRects:s,labelNodeRects:r}=me(e.values()),c=t.filter(d=>!d.isLayoutOnly),h=l((d,i,p)=>mt(d===i?p??[]:d.points??[]),"pointsFor"),f=l(d=>it(d).reduce((i,p)=>{let C=p.a.x-p.b.x,I=p.a.y-p.b.y;return i+Math.hypot(C,I)},0),"pathLength"),u=l((d,i)=>{let p=0;for(let C=0;C{if(d.horizontal){let p=d.a.y;return(Math.abs(p-i.top)<1||Math.abs(p-i.bottom)<1)&&$t(d.a.x,d.b.x,i.left,i.right)>=kt}if(d.vertical){let p=d.a.x;return(Math.abs(p-i.left)<1||Math.abs(p-i.right)<1)&&$t(d.a.y,d.b.y,i.top,i.bottom)>=kt}return!1},"segmentRunsAlongRectBorder"),g=l(d=>{let i=[d.start,d.end].filter(C=>!!C),p=[];for(let C of i){let I=e.get(C),T=I?qt(I):void 0;T&&p.push(T)}return p},"endpointRectsFor"),L=l((d,i)=>{if(i+3>=d.length)return[];let p=d[i],C=d[i+1],I=d[i+2],T=d[i+3],O=Et(p,C,J)&&Rt(C,I,J)&&Et(I,T,J),S=Rt(p,C,J)&&Et(C,I,J)&&Rt(I,T,J);if(!O&&!S)return[];if(!(O?Math.sign(C.x-p.x)!==Math.sign(T.x-I.x):Math.sign(C.y-p.y)!==Math.sign(T.y-I.y)))return[];let E=dt(p,T,J)||ht(p,T,J)?[]:[{x:p.x,y:T.y},{x:T.x,y:p.y}],A=E.length===0?[[...d.slice(0,i+1),...d.slice(i+3)]]:E.map(w=>[...d.slice(0,i+1),w,...d.slice(i+3)]),F=new Set;return A.map(w=>ce(mt(w))).filter(w=>{if(it(w).length!==w.length-1||!w.some(k=>oe(k,T,J)))return!1;let _=w.map(k=>`${k.x.toFixed(3)},${k.y.toFixed(3)}`).join("|");return F.has(_)?!1:(F.add(_),!0)})},"shortcutCandidatesAt"),m=l((d,i,p)=>{let C=[d.start,d.end].filter(T=>!!T),I=g(d);for(let T of it(i))if(wt(T.a,T.b,s,C,-2)||wt(T.a,T.b,r,[],-2)||I.some(O=>y(T,O)))return!1;for(let T of c)if(T!==d){for(let O of it(i))for(let S of it(h(T)))if(ie(O,S,.5)>=kt)return!1}return u(d,i)<=p},"candidateIsSafe");for(let d=0;d<8;d++){let i=u(),p,C,I=i,T=Number.POSITIVE_INFINITY,O=Number.POSITIVE_INFINITY;for(let S of c){let b=h(S),E=Qt(b,J),A=f(b);for(let F=0;F<=b.length-4;F++)for(let w of L(b,F)){let _=Qt(w,J),k=f(w);if(!(_I||X===I&&(_>T||_===T&&k>=O)||(p=S,C=w,I=X,T=_,O=k)}}if(!p||!C)return;p.points=C}}l(ns,"shortcutRedundantOrthogonalJogs");function os(t,e){let c=[];for(let N of e.values()){if(N.isGroup||N.isEdgeLabel)continue;let H=N.x??0,D=N.y??0,U=qt(N);U&&c.push({id:String(N.id??""),cx:H,cy:D,rect:U})}if(c.length===0)return;let h=new Map(c.map(N=>[N.id,N])),f=c.map(N=>({id:N.id,rect:N.rect})),u=["top","bottom","left","right"],y={top:Math.min(...c.map(N=>N.rect.top))-20,bottom:Math.max(...c.map(N=>N.rect.bottom))+20,left:Math.min(...c.map(N=>N.rect.left))-20,right:Math.max(...c.map(N=>N.rect.right))+20},g=t.filter(N=>!N.isLayoutOnly),L=new Map(g.map((N,H)=>[N,H])),m=l(N=>{let H=N==="left"||N==="top"?-1:1,D=[];for(let U=0;U<=2;U++)D.push(y[N]+H*20*U);return D},"outwardTracksForSide"),d=l((N,H=new Map)=>mt(H.get(N)??N.points??[]),"replacementPointsFor"),i=l((N,H)=>{let D=0;for(let U of N)for(let a of H)ae(U.a,U.b,a.a,a.b,J)&&D++;return D},"crossingCountBetweenSegments"),p=l((N,H)=>i(it(N),it(H)),"crossingCountBetweenPaths"),C=l((N=new Map)=>{let H=0,D=[],U=new Set,a=[],x=l(M=>{U.has(M)||(U.add(M),a.push(M))},"addEdge");for(let M=0;M0&&(H+=Z,D.push({first:v,second:j,count:Z}),x(v),x(j))}}return a.sort((M,v)=>(L.get(M)??0)-(L.get(v)??0)),{count:H,pairs:D,edgeSet:U,edges:a}},"crossingSnapshot"),I=l((N,H)=>{let D=new Set(H.keys());if(D.size===0)return N.count;let U=0;for(let x of N.pairs)(D.has(x.first)||D.has(x.second))&&(U+=x.count);let a=0;for(let x=0;x{let H=new Map;for(let a of N.pairs){let x=H.get(a.first)??new Set;x.add(a.second),H.set(a.first,x);let M=H.get(a.second)??new Set;M.add(a.first),H.set(a.second,M)}let D=[],U=new Set;for(let a of N.edges){if(U.has(a))continue;let x=[a],M=[];for(U.add(a);x.length>0;){let v=x.pop();M.push(v);for(let R of H.get(v)??[])U.has(R)||(U.add(R),x.push(R))}M.sort((v,R)=>(L.get(v)??0)-(L.get(R)??0)),M.length>1&&D.push(M)}return D},"crossingComponents"),O=l(N=>[N.start,N.end].filter(H=>!!H),"endpointIdsFor"),S=l(N=>{let H=[];for(let D of T(N)){let U=new Set(D),a=new Set(D.flatMap(M=>O(M))),x=[...D];for(let M of g)U.has(M)||O(M).some(v=>a.has(v))&&x.push(M);x.sort((M,v)=>(L.get(M)??0)-(L.get(v)??0)),H.push(x)}return H},"pairSearchGroups"),b=l((N,H,D)=>I(N,new Map([[H,D]])),"crossingCountWithSingleReplacement"),E=l(N=>{let H=new Map;for(let D of N.pairs)H.set(D.first,(H.get(D.first)??0)+D.count),H.set(D.second,(H.get(D.second)??0)+D.count);return H},"currentCrossingsByEdge"),A=l(N=>N.slice(1).reduce((H,D,U)=>{let a=N[U];return H+Math.abs(D.x-a.x)+Math.abs(D.y-a.y)},0),"pathLength"),F=l((N=new Map)=>g.reduce((H,D)=>H+Qt(d(D,N)),0),"totalBends"),w=l((N=new Map)=>g.reduce((H,D)=>H+A(d(D,N)),0),"totalLength"),_=l((N,H,D=new Map)=>{let U=it(H);for(let a of g)if(a!==N){for(let x of U)for(let M of it(d(a,D)))if(ie(x,M,.5)>=kt)return!0}return!1},"pathHasSegmentConflict"),k=l((N,H)=>{let D=[N.start,N.end].filter(U=>!!U);for(let U of it(H))if(wt(U.a,U.b,f,D,-2))return!0;return!1},"pathHitsNode"),B=l((N,H)=>{let D=ce(mt(H));it(D).length===D.length-1&&N.push(D)},"pushOrthogonalCandidate"),X=l(N=>N==="left"||N==="right","sideIsHorizontal"),z=l((N,H,D)=>{switch(H){case"left":return Math.min(N.x,D.x)-20;case"right":return Math.max(N.x,D.x)+20;case"top":return Math.min(N.y,D.y)-20;case"bottom":return Math.max(N.y,D.y)+20}},"localTrackForSameSide"),K=l((N,H,D,U)=>{let a=D==="left"||D==="top"?-1:1,x=[z(H,D,U),y[D]];for(let M of x)for(let v=0;v<=2;v++)B(N,to(H,D,U,M+a*20*v))},"addSameSideCandidates"),ct=l((N,H,D,U,a)=>{for(let x of m(D))for(let M of m(a))B(N,[H,{x,y:H.y},{x,y:M},{x:U.x,y:M},U])},"addHorizontalToVerticalCandidates"),pt=l((N,H,D,U,a)=>{for(let x of m(D))for(let M of m(a))B(N,[H,{x:H.x,y:x},{x:M,y:x},{x:M,y:U.y},U])},"addVerticalToHorizontalCandidates"),At=l((N,H,D,U,a)=>{let x=[...m("top"),...m("bottom")];for(let M of m(D))for(let v of m(a))for(let R of x)B(N,[H,{x:M,y:H.y},{x:M,y:R},{x:v,y:R},{x:v,y:U.y},U])},"addHorizontalPairCandidates"),Ft=l((N,H,D,U,a)=>{let x=[...m("left"),...m("right")];for(let M of m(D))for(let v of m(a))for(let R of x)B(N,[H,{x:H.x,y:M},{x:R,y:M},{x:R,y:v},{x:U.x,y:v},U])},"addVerticalPairCandidates"),Q=l(N=>{let H=new Set;return N.map(D=>mt(D)).filter(D=>{let U=D.map(a=>`${a.x.toFixed(3)},${a.y.toFixed(3)}`).join("|");return H.has(U)||D.length<2?!1:(H.add(U),!0)})},"dedupeCandidatePaths"),W=l((N,H,D,U)=>{let a=[],x=Qn(N,H,D,U,20,J);x&&B(a,x),H===U&&K(a,N,H,D);let M=X(H),v=X(U);return M&&!v?ct(a,N,H,D,U):!M&&v?pt(a,N,H,D,U):M?At(a,N,H,D,U):Ft(a,N,H,D,U),Q(a)},"buildCandidatesForSides"),et=l((N,H,D,U)=>{let a=[...m("left"),...m("right")],x=[...m("top"),...m("bottom")];for(let M of u){let v=Ie(U,M),R=M==="top"||M==="bottom"?m(M):x;for(let P of a){B(N,[H,D,{x:P,y:D.y},{x:P,y:v.y},v]);for(let j of R)B(N,[H,D,{x:P,y:D.y},{x:P,y:j},{x:v.x,y:j},v])}}},"addVerticalDepartureOuterTrackCandidates"),lt=l((N,H,D,U)=>{let a=[...m("left"),...m("right")],x=[...m("top"),...m("bottom")];for(let M of u){let v=Ie(U,M),R=M==="left"||M==="right"?m(M):a;for(let P of x){B(N,[H,D,{x:D.x,y:P},{x:v.x,y:P},v]);for(let j of R)B(N,[H,D,{x:D.x,y:P},{x:j,y:P},{x:j,y:v.y},v])}}},"addHorizontalDepartureOuterTrackCandidates"),gt=l(N=>{let H=N.start,D=N.end,U=D?h.get(D):void 0;if(!H||!U)return[];let a=mt(N.points??[]);if(a.length<4)return[];let x=a[0],M=a[1],v=[];return Rt(x,M,J)?et(v,x,M,U):Et(x,M,J)&<(v,x,M,U),v},"terminalPreservingOuterTrackCandidates"),xt=l(N=>{let H=N.start,D=N.end,U=H?h.get(H):void 0,a=D?h.get(D):void 0;if(!U||!a)return[];let x=[];for(let M of u){let v=Ie(U,M);for(let R of u)x.push(...W(v,M,Ie(a,R),R))}return x.push(...gt(N)),x},"candidatePathsFor"),vt=l(()=>new Map(g.map(N=>[N,it(d(N))])),"currentSegmentsByEdge"),Vt=l((N,H,D)=>{let U=new Set;for(let a of g){if(a===N)continue;let x=D.get(a)??it(d(a));H.some(M=>x.some(v=>ie(M,v,.5)>=kt))&&U.add(a)}return U},"sharedTrackConflictsFor"),Ut=l((N,H,D,U)=>{let a=new Set;return xt(N).map(M=>ce(mt(M))).filter(M=>{if(k(N,M))return!1;let v=M.map(R=>`${R.x.toFixed(3)},${R.y.toFixed(3)}`).join("|");return a.has(v)||M.length<2?!1:(a.add(v),!0)}).map(M=>{let v=it(M),R=0;for(let P of g)P!==N&&(R+=i(v,D.get(P)??it(d(P))));return{candidate:M,candidateSegments:v,crossings:H.count-(U.get(N)??0)+R,bends:Qt(M,J),totalBends:Qt(M),length:A(M)}}).filter(({crossings:M})=>M<=H.count).sort((M,v)=>M.crossings-v.crossings||M.bends-v.bends||M.length-v.length).slice(0,48).map(M=>({path:M.candidate,segments:M.candidateSegments,sharedTrackConflicts:Vt(N,M.candidateSegments,D),totalBends:M.totalBends,length:M.length}))},"pairCandidatesFor"),jt=l((N,H,D,U,a,x)=>{let M=0;for(let R of N.pairs)(R.first===H||R.second===H||R.first===U||R.second===U)&&(M+=R.count);let v=i(D.segments,a.segments);for(let R of g){if(R===H||R===U)continue;let P=x.get(R)??it(d(R));v+=i(D.segments,P)+i(a.segments,P)}return N.count-M+v},"pairCrossingCount"),te=l((N,H)=>{for(let D of N.sharedTrackConflicts)if(D!==H)return!1;return!0},"conflictsOnlyWith"),Me=l((N,H)=>N.segments.some(D=>H.segments.some(U=>ie(D,U,.5)>=kt)),"candidatesShareTrack"),fe=l((N,H,D,U)=>te(H,D.edge)&&te(U,N.edge)&&!Me(H,U),"pairCandidatesAreCompatible"),Se=l((N,H,D,U,a)=>{let x=jt(N.current,H.edge,D,U.edge,a,N.baseSegments);if(!(x>=N.current.count))return{replacements:new Map([[H.edge,D.path],[U.edge,a.path]]),crossings:x,bends:N.currentBends-(N.baseBendsByEdge.get(H.edge)??0)-(N.baseBendsByEdge.get(U.edge)??0)+D.totalBends+a.totalBends,length:N.currentLength-(N.baseLengthByEdge.get(H.edge)??0)-(N.baseLengthByEdge.get(U.edge)??0)+D.length+a.length}},"scorePairReplacement"),sn=l((N,H)=>N.crossings{let a=U;for(let x of H.candidates)for(let M of D.candidates){if(!fe(H,x,D,M))continue;let v=Se(N,H,x,D,M);v&&sn(v,a)&&(a=v)}return a},"bestScoreForOptionPair"),cn=l(N=>{let H=F(),D=w(),U=vt(),a=E(N),x=new Map(g.map(Z=>[Z,Qt(d(Z))])),M=new Map(g.map(Z=>[Z,A(d(Z))])),v=new Map,R=S(N);for(let Z of R)for(let V of Z){if(v.has(V))continue;let G=Ut(V,N,U,a);G.length>0&&v.set(V,{edge:V,candidates:G})}let P={replacements:new Map,crossings:N.count,bends:H,length:D},j={current:N,currentBends:H,currentLength:D,baseBendsByEdge:x,baseLengthByEdge:M,baseSegments:U};for(let Z of R){let V=new Set(Z.filter(ot=>N.edgeSet.has(ot))),G=Z.map(ot=>v.get(ot)).filter(ot=>!!ot);for(let ot=0;ot0?P.replacements:void 0},"bestPairedReplacement");for(let N=0;N<4;N++){let H=C(),D=H.count;if(D===0)return;let U,a,x=D,M=Number.POSITIVE_INFINITY;for(let R of H.edges){let P=Qt(d(R),J);for(let j of xt(R)){let Z=k(R,j),V=!Z&&_(R,j),G=b(H,R,j),ot=Qt(j,J);Z||V||!(Gx||G===x&&ot>=M||(U=R,a=j,x=G,M=ot)}}if(U&&a){U.points=a;continue}let v=cn(H);if(!v)return;for(let[R,P]of v)R.points=P}}l(os,"resolveRenderedOrthogonalCrossings");var ge=.001,dr=8;function ss(t,e){let{nodeInfoById:n,realNodeRects:o}=tn(e),s=["top","bottom","left","right"],r=20,c={top:Math.min(...o.map(i=>i.rect.top))-r,bottom:Math.max(...o.map(i=>i.rect.bottom))+r,left:Math.min(...o.map(i=>i.rect.left))-r,right:Math.max(...o.map(i=>i.rect.right))+r},h=l((i,p,C,I)=>{let T=[],O=Qn(i,p,C,I,r,ge);return O&&T.push(O),p===I&&T.push(to(i,p,C,c[p])),T},"buildOrthogonalPathCandidates"),f=l((i,p)=>{for(let C=0;C{let I=0,T=Re(i,ge),O=p.start,S=p.end;for(let b of t){if(b===p||b.isLayoutOnly)continue;let E=b.start,A=b.end;if(!C&&O&&S&&(E===O||E===S||A===O||A===S))continue;let F=b.points;if(!(!F||F.length<2))for(let w of T)for(let _ of Re(F,ge)){if(no(w.a,w.b,_.a,_.b,ge,ge)){I++;continue}ie(w,_,ge)>=dr&&I++}}return I},"pathConflictCount"),y=4,g=l((i,p)=>{let C=Math.abs(i.y-p.rect.top),I=Math.abs(i.y-p.rect.bottom),T=Math.abs(i.x-p.rect.left),O=Math.abs(i.x-p.rect.right),S="top",b=C;return I{let I=L.get(i)??[];I.push({side:p,edgeId:C}),L.set(i,I)},"addFaceClaim");for(let i of t){if(i.isLayoutOnly)continue;let p=i.points??[];if(p.length<1)continue;let C=i.id??"",I=i.start,T=i.end;if(I){let O=n.get(I);O&&m(I,g(p[0],O),C)}if(T){let O=n.get(T);O&&m(T,g(p[p.length-1],O),C)}}let d=l((i,p,C)=>L.get(i)?.some(I=>I.edgeId!==C&&I.side===p)??!1,"faceIsClaimed");for(let i of t){if(i.isLayoutOnly)continue;let p=i.points;if(!p||p.length<2)continue;let C=Qt(p,ge);if(C0){let pt=u(K,i,!0);if(pt>w||pt===w&&ct>=_)continue;w=pt,_=ct,F=K;continue}u(K,i)>A||ct<_&&(_=ct,F=K)}}}if(F){i.points=F;let k=L.get(I);k&&L.set(I,k.filter(X=>X.edgeId!==b));let B=L.get(T);B&&L.set(T,B.filter(X=>X.edgeId!==b)),m(I,g(F[0],O),b),m(T,g(F[F.length-1],S),b)}}}l(ss,"simplifyDetouredEdges");var Kt=.001,vo=10,Xe=7;function Pn(t,e){let n=e?0:t.length-1,o=e?1:-1,s=t[n],r=t[n+o];if(!s||!r)return;let c=r.x-s.x,h=r.y-s.y;if(!(Math.abs(c)+Math.abs(h)r&&$e(t,rs(r)))}l(kn,"labelOverlapsOwnMarker");function Ge(t,e){let n=[];for(let d of t){if(d.isLayoutOnly)continue;let i=d.points;if(!(!i||i.length<2))for(let p=0;p{let p=bn(i,r);for(let{nodeId:C,rect:I}of o)if(C!==d&&$e(p,I))return!0;return!1},"labelOverlapsForeignNode"),u=l((d,i)=>{let p=bn(i,r);for(let C of n)if(C.edgeId!==d&&Qe(C.p1,C.p2,p))return!0;return!1},"labelOverlapsForeignEdge"),y=l((d,i,p)=>f(d,p)||u(i,p),"labelOverlapsAnything"),g=[],L=l(d=>{for(let{id:i,rect:p}of s)if(Bo(p,d))return i},"findContainingLane"),m=l((d,i)=>g.some(p=>p.labelId!==d&&$e(i,p.rect)),"overlapsPlacedLabel");for(let d of t){if(d.isLayoutOnly)continue;let i=d.labelNodeId;if(!i)continue;let p=e.get(i);if(!p)continue;let C=d.points;if(!C||C.length<2)continue;let I=p.width??0,T=p.height??0;if(I<=0||T<=0)continue;let O=[];for(let Q=0;Q=Kt&>>=Kt||O.push({idx:Q,length:lt+gt,orientation:lt>=Kt?"horizontal":"vertical",midX:(W.x+et.x)/2,midY:(W.y+et.y)/2})}if(O.length===0)continue;let S=O.length>=3?O.filter(Q=>Q.idx>0&&Q.idx0?S:O,E=I>=T?"horizontal":"vertical",A=l(Q=>[...Q].sort((W,et)=>{let lt=W.orientation===E,gt=et.orientation===E;if(lt!==gt)return lt?-1:1;let xt=W.length>=(W.orientation==="horizontal"?I:T)+2,vt=et.length>=(et.orientation==="horizontal"?I:T)+2;return xt!==vt?xt?-1:1:et.length-W.length}),"rankSegments"),F=O[0],w=O[O.length-1],_=[.5,.25,.75,.05,.95,.15,.85,.1,.9],k=l((Q,W)=>{let et=C[Q.idx],lt=C[Q.idx+1];return{midX:et.x+(lt.x-et.x)*W,midY:et.y+(lt.y-et.y)*W}},"anchorAtT"),B=l((Q,W,et)=>Math.min(et,Math.max(W,Q)),"clamp"),X=l((Q,W)=>Q.midX>=W.left-Kt&&Q.midX<=W.right+Kt&&Q.midY>=W.top-Kt&&Q.midY<=W.bottom+Kt,"pointInsideRectInclusive"),z=l(Q=>{let W=Ee(Q.midX,Q.midY,I,T),et=L(W);if(et)return{laneId:et,anchor:Q,rect:W};let lt=s.find(({rect:te})=>X(Q,te));if(!lt)return;let gt=lt.rect.left+I/2+c,xt=lt.rect.right-I/2-c,vt=lt.rect.top+T/2+c,Vt=lt.rect.bottom-T/2-c;if(gt>xt||vt>Vt)return;let Ut={midX:B(Q.midX,gt,xt),midY:B(Q.midY,vt,Vt)},jt=Ee(Ut.midX,Ut.midY,I,T);return X(Q,jt)?{laneId:lt.id,anchor:Ut,rect:jt}:void 0},"placementForAnchor"),K=l((Q,W,et)=>Q.orientation==="horizontal"?Math.abs(W.midX-et.x):Math.abs(W.midY-et.y),"distanceAlongSegment"),ct=l((Q,W)=>{let lt=(Q.orientation==="horizontal"?I/2:T/2)+h;if(Q===F){let gt=C[Q.idx];if(K(Q,W,gt)+Kt{let W=A(Q);for(let et of W)for(let lt of _){let gt=k(et,lt);if(!ct(et,gt))continue;let xt=z(gt);if(xt&&!kn(xt.rect,C)&&!m(i,xt.rect)&&!y(i,d.id,xt.rect))return{laneId:xt.laneId,anchor:xt.anchor}}},"tryPool"),At=l((Q,W,et=!1)=>{let lt=A(Q);for(let gt of lt){let xt={midX:gt.midX,midY:gt.midY};if(W&&!ct(gt,xt))continue;let vt=z(xt);if(vt&&!kn(vt.rect,C)&&!m(i,vt.rect)&&!f(i,vt.rect)&&(et||!u(d.id,vt.rect)))return{laneId:vt.laneId,anchor:vt.anchor}}},"findLaneContainingFallback"),Ft=pt(b)??(b.lengthet.labelId===i);W>=0?g[W]={labelId:i,rect:Q}:g.push({labelId:i,rect:Q})}}}l(Ge,"anchorLabelsToPolyline");var pn=1e-6,ur=8,Lo=ur/2,hr=3;function _n(t,e){return t{let y=_n(h,f),g=0,L=l(m=>{if(!m)return;let d=s.get(m);if(!d)return;let i=u==="x"?d.w/2:d.h/2;i>g&&(g=i)},"consider");L(c.labelNodeId);for(let m of t){if(m===c||m.isLayoutOnly)continue;let d=m.start,i=m.end;!d||!i||_n(d,i)===y&&L(m.labelNodeId)}return g>0?g+hr:0},"labelClearanceFor");for(let c of t){if(c.isLayoutOnly)continue;let h=c.points;if(!Zn(h,pn))continue;let f=eo(c,n,pn);if(!f)continue;let{srcId:u,dstId:y,srcInfo:g,dstInfo:L,collinearX:m,collinearY:d}=f;if(m===d)continue;let i,p;if(m){let S=L.cy>g.cy;i={x:g.cx,y:S?g.rect.bottom:g.rect.top},p={x:L.cx,y:S?L.rect.top:L.rect.bottom}}else{let S=L.cx>g.cx;i={x:S?g.rect.right:g.rect.left,y:g.cy},p={x:S?L.rect.left:L.rect.right,y:L.cy}}if(wt(i,p,o,[u,y],1))continue;let I=r(c,u,y,m?"x":"y"),T=I>Lo?I:Lo,O=[0,T,-T];for(let S of O){let b={...i},E={...p};if(m){if(b.x+=S,E.x+=S,b.x<=g.rect.left||b.x>=g.rect.right||E.x<=L.rect.left||E.x>=L.rect.right)continue}else if(b.y+=S,E.y+=S,b.y<=g.rect.top||b.y>=g.rect.bottom||E.y<=L.rect.top||E.y>=L.rect.bottom)continue;if(!wt(b,E,o,[u,y],1)&&!Ve(b,E,t,c,{epsilon:pn})){c.points=[b,E];break}}}}l(is,"straightenCollinearSiblingDetours");function Hn(t,e){let{realNodeRects:u,labelNodeRects:y}=me(e.values()),g=l((b,E)=>Re(E,.001).map(A=>({...A,edge:b,interior:A.index>=1&&A.index<=E.length-3})),"segmentsFor"),L=l(()=>{let b=[];for(let E of t){if(E.isLayoutOnly)continue;let A=E.points;!A||A.length<2||b.push(...g(E,mt(A)))}return b},"allSegments"),m=l((b,E)=>b.horizontal&&E.horizontal?$t(b.a.x,b.b.x,E.a.x,E.b.x)>=8&&Math.abs(b.a.y-E.a.y)<7:b.vertical&&E.vertical?$t(b.a.y,b.b.y,E.a.y,E.b.y)>=8&&Math.abs(b.a.x-E.a.x)<7:!1,"hasCrowdedParallelTrack"),d=l((b,E)=>{let A=b.start,F=b.end,w=g(b,E);if(w.length!==E.length-1)return!1;let _=[A,F].filter(B=>!!B),k=b.labelNodeId?[b.labelNodeId]:[];for(let B of w)if(wt(B.a,B.b,u,_,-2)||wt(B.a,B.b,y,k,-2))return!1;for(let B of t){if(B===b||B.isLayoutOnly)continue;let X=B.points;if(!(!X||X.length<2)){for(let z of w)for(let K of g(B,mt(X)))if(m(z,K)||ae(z.a,z.b,K.a,K.b,.001))return!1}}return!0},"candidateIsSafe"),i=l((b,E)=>{let A=mt(b.edge.points??[]);if(A.length<4||b.index>=A.length-1)return;let F=A.map(w=>({...w}));if(b.horizontal)F[b.index].y+=E,F[b.index+1].y+=E;else if(b.vertical)F[b.index].x+=E,F[b.index+1].x+=E;else return;return g(b.edge,F).length===F.length-1?F:void 0},"shiftedCandidate"),p=l((b,E)=>({x:b.x??(E.left+E.right)/2,y:b.y??(E.top+E.bottom)/2}),"nodeCenter"),C=l(b=>{let E=b.edge,A=mt(E.points??[]);if(A.length!==4||b.index!==1)return;let F=E.start?e.get(E.start):void 0,w=E.end?e.get(E.end):void 0,_=F?qt(F):void 0,k=w?qt(w):void 0,B=A.slice(b.index+2);if(!(!F||!w||!_||!k||B.length===0))return{sourceCenter:p(F,_),targetCenter:p(w,k),sourceRect:_,tail:B}},"sourceDetourContextFor"),I=l((b,E,A,F,w,_)=>{let k=F.y>=A.y,B=k?w.bottom:w.top,X=B+(k?20:-20);if(k&&b.b.y<=X+.001||!k&&b.b.y>=X-.001)return;let z=b.a.x+E;return mt([{x:A.x,y:B},{x:A.x,y:X},{x:z,y:X},{x:z,y:b.b.y},..._],.001)},"verticalSourceDetour"),T=l((b,E,A,F,w,_)=>{let k=F.x>=A.x,B=k?w.right:w.left,X=B+(k?20:-20);if(k&&b.b.x<=X+.001||!k&&b.b.x>=X-.001)return;let z=b.a.y+E;return mt([{x:B,y:A.y},{x:X,y:A.y},{x:X,y:z},{x:b.b.x,y:z},..._],.001)},"horizontalSourceDetour"),O=l((b,E)=>{let A=C(b);if(A){if(b.vertical)return I(b,E,A.sourceCenter,A.targetCenter,A.sourceRect,A.tail);if(b.horizontal)return T(b,E,A.sourceCenter,A.targetCenter,A.sourceRect,A.tail)}},"sourceDetourCandidate"),S=[-7,7,-14,14,-21,21];for(let b=0;b<12;b++){let E=L(),A=!1;for(let F=0;FX.interior);for(let X of B){for(let z of S){let K=i(X,z);if(K&&d(X.edge,K)){X.edge.points=K,A=!0;break}let ct=O(X,z);if(ct&&d(X.edge,ct)){X.edge.points=ct,A=!0;break}}if(A)break}}if(!A)return}}l(Hn,"nudgeSharedInteriorSubpaths");function cs(t,e,n,o){let s=e.x-t.x,r=e.y-t.y,c=o.x-n.x,h=o.y-n.y,f=s*h-r*c;if(Math.abs(f)<1e-10)return!1;let u=n.x-t.x,y=n.y-t.y,g=(u*h-y*c)/f,L=(u*r-y*s)/f,m=.01;return g>m&&g<1-m&&L>m&&L<1-m}l(cs,"segmentsIntersect");function as(t){let e=t.nodes??[],n=t.edges??[],o=[];if(!n.length||!e.length)return o;let s=Fo(e),r=1,c=[];for(let f of n){if(f.isLayoutOnly)continue;let u=f.points;if(!u||u.length<2)continue;let y=f.start,g=f.end,L=f.labelNodeId,m=f.id??`${y}->${g}`;for(let d of s)if(!(d.nodeId===y||d.nodeId===g)&&!(L&&d.nodeId===L)){for(let i=0;i0){let f=o.filter(y=>y.type==="edge-node-overlap").length,u=o.filter(y=>y.type==="edge-edge-crossing").length;He.warn(`[SWIMLANE_VALIDATE] ${o.length} issue(s) detected: ${f} edge-node overlap(s), ${u} edge crossing(s)`);for(let y of o)He.warn(`[SWIMLANE_VALIDATE] ${y.type}: ${y.detail}`)}return o}l(as,"validateSwimlanesLayout");function ls(t,e){let n=t.nodes??[],o=t.edges??[],s=n.filter(h=>!h.isGroup);if((e==="LR"||e==="RL")&&s.length>0&&!Ko(t,e)||e==="BT"&&s.length>0&&!Wo(t))return;for(let h of o){if(h.isLayoutOnly)continue;let f=h.points;!f||f.length<2||(h.points=ce(Ue(f)))}ss(o,n),is(o,n),qo(o,n);let r=new Map;for(let h of n)r.set(String(h.id),h);Ge(o,r),Do(o,r),Zo(o,r),Hn(o,r),Jo(o,r),Qo(o,r),On(o,r),ts(o,r);let c=l(()=>{os(o,r),es(o,r),ns(o,r),Ge(o,r),An(o,r),On(o,r),Ge(o,r),An(o,r)},"finalizeRenderedEdges");c(),Hn(o,r),c(),Bn(o,r),Fn(o,r),Bn(o,r),Fn(o,r)}l(ls,"postProcessSwimlaneLayout");function pe(t){let e=new Map(t.nodeById),n=new Set,o=[];for(let r of t.edges){if(!e.has(r.src)||!e.has(r.dst))continue;let c=`${r.id}:${r.src}->${r.dst}`;n.has(c)||(n.add(c),o.push(r))}return{nodes:[...e.keys()],edges:o,layout:t.layout,nodeById:e}}l(pe,"normalizeGraph");function co(t,e){return t.edges.filter(n=>n.dst===e)}l(co,"incoming");function fs(t){let e=new Map;for(let n of t.nodes)e.set(n,[]);for(let n of t.edges)e.get(n.src).push(n.dst);return e}l(fs,"buildSuccessorMap");function ao(t){let e=fs(t);for(let n of e.values())n.sort((o,s)=>o.localeCompare(s));return e}l(ao,"buildSortedSuccessorMap");function en(t){let e=new Map;for(let n of t.nodes)e.set(n,0);for(let n of t.edges)e.set(n.dst,(e.get(n.dst)??0)+1);return e}l(en,"buildInDegreeMap");function lo(t){return[...t.entries()].filter(([,e])=>e===0).map(([e])=>e).sort((e,n)=>e.localeCompare(n))}l(lo,"sortedZeroInDegreeNodes");function nn(t,e=()=>!0){let n=new Map,o=new Map;for(let s of t.nodes)n.set(s,[]),o.set(s,[]);for(let s of t.edges)e(s)&&(o.get(s.src).push(s.dst),n.get(s.dst).push(s.src));return{preds:n,succs:o}}l(nn,"buildPredecessorSuccessorMaps");function fo(t,e,n,o){let s=0;for(let c of t.nodes)o?.skipGroups&&t.nodeById.get(c)?.isGroup||(s=Math.max(s,n[c]??0));let r=Array.from({length:s+1},()=>[]);for(let c of e)o?.skipGroups&&t.nodeById.get(c)?.isGroup||r[Math.max(0,n[c]??0)].push(c);return r}l(fo,"buildLayersFromRanks");function Ne(t){let e=en(t),n=lo(e),o=[],s=ao(t);for(;n.length;){let r=n.shift();o.push(r);for(let c of s.get(r)??[])if(e.set(c,(e.get(c)??0)-1),(e.get(c)??0)===0){let h=0;for(;h{if(s-o<=1)return 0;let r=o+s>>1,c=n(o,r)+n(r,s),h=o,f=r,u=o;for(;h=s||hL.dst===m.dst?L.id.localeCompare(m.id):L.dst.localeCompare(m.dst));let o=Object.create(null);for(let g of e.nodes)o[g]=0;let s=[],r=l(g=>{o[g]=1;for(let L of n.get(g)??[]){let m=L.dst;o[m]===0?r(m):o[m]===1&&s.push(L)}o[g]=2},"dfs"),c=en(e),h=[...e.nodes.filter(g=>(c.get(g)??0)===0),...e.nodes.filter(g=>(c.get(g)??0)!==0)];for(let g of h)o[g]===0&&r(g);let f=new Set(s.map(g=>`${g.id}:${g.src}->${g.dst}`)),u=e.edges.map(g=>f.has(`${g.id}:${g.src}->${g.dst}`)?{id:g.id,src:g.dst,dst:g.src,weight:g.weight,ref:g.ref}:g);return{acyclic:{nodes:[...e.nodes],edges:u,layout:e.layout,nodeById:new Map(e.nodeById)},reversed:s}}l(ds,"removeCycles_DFS");function us(t){let e=new Map,n=l(o=>{if(e.has(o))return e.get(o);let s=t.nodeById.get(o);if(!s)return e.set(o,null),null;let r=s.parentId;if(!r)return e.set(o,null),null;let h=n(r)??r;return e.set(o,h),h},"resolve");for(let o of t.nodes)n(o);return e}l(us,"buildTopLaneMap");function le(t){let e=us(t);return n=>e.get(n)??null}l(le,"createTopLaneResolver");function on(t){let e=[];for(let n of t.layout.nodes??[])n.isGroup&&!n.parentId&&e.push(n.id);return[...new Set(e)].reverse()}l(on,"buildTopLaneOrder");function ho(t,e){let n=on(t);if(!e||e.length===0)return n;let o=new Set(n),s=new Set,r=[];for(let c of e)!o.has(c)||s.has(c)||(s.add(c),r.push(c));for(let c of n)s.has(c)||r.push(c);return r}l(ho,"resolveTopLaneOrder");var gr={EPSILON:1e-6},Ze={GRAVITY_ITERATIONS:8,MAX_CROSSING_OPTIMIZATION_PASSES:4,DEFAULT_COMPACT_SINGLE_INPUT:!0},To={DEFAULT_LAYER_GAP:100,DEFAULT_NODE_GAP:40};function hs(t,e){let n=pe(t),o=e?.laneOf??(()=>null),s=e?.rankHint,{preds:r}=nn(n);for(let S of r.values())S.sort((b,E)=>b.localeCompare(E));let c=Ne(n)??[...n.nodes].sort((S,b)=>S.localeCompare(b)),h=new Map;for(let[S,b]of c.entries())h.set(b,S);let f=new Map,u=new Map;for(let S of n.nodes)u.set(S,[]);for(let S of c){let b=(r.get(S)??[]).filter(E=>f.has(E));if(b.length>0){let E=gs(S,b,{laneOf:o,rankHint:s,topoIndex:h});f.set(S,E),u.get(E).push(S)}else f.has(S)||f.set(S,null)}for(let S of n.nodes)f.has(S)||f.set(S,null);let y=new Set;for(let S of n.nodes)(f.get(S)??null)===null&&y.add(S);let g=[...y].sort((S,b)=>{let E=h.get(S)??0,A=h.get(b)??0;return E===A?S.localeCompare(b):E-A}),L=ms(n),m=new Map;for(let[S,b]of L.entries())m.set(S,[...b].sort((E,A)=>E.localeCompare(A)));let d=ps(m),i=ys(m),p=new Map;for(let S of n.nodes)p.set(S,[]);for(let S of i)for(let b of S.nodes){let E=p.get(b);E?E.push(S.id):p.set(b,[S.id])}let C=[],I=[],T=new Set,O=l(S=>{if(!T.has(S)){T.add(S),C.push(S);for(let b of u.get(S)??[])O(b);I.push(S)}},"walk");for(let S of g)O(S);for(let S of c)O(S);return{parent:f,children:u,roots:g,componentOf:d,blocks:i,nodeBlocks:p,adjacency:m,preorder:C,postorder:I,topologicalOrder:c}}l(hs,"buildDrivingTree");function gs(t,e,n){let o=n.laneOf(t);return[...e].sort((r,c)=>{let h=n.laneOf(r),f=n.laneOf(c),u=h!=null&&h===o,y=f!=null&&f===o;if(u!==y)return u?-1:1;let g=n.rankHint?.[r],L=n.rankHint?.[c];if(g!=null&&L!=null&&g!==L)return L-g;let m=n.topoIndex.get(r)??0,d=n.topoIndex.get(c)??0;return m!==d?m-d:r.localeCompare(c)})[0]}l(gs,"chooseParent");function ms(t){let e=new Map;for(let n of t.nodes)e.set(n,new Set);for(let n of t.edges)e.get(n.src).add(n.dst),e.get(n.dst).add(n.src);return e}l(ms,"buildAdjacency");function ps(t){let e=new Map,n=0;for(let o of t.keys()){if(e.has(o))continue;let s=[o];for(;s.length>0;){let r=s.pop();if(!e.has(r)){e.set(r,n);for(let c of t.get(r)??[])e.has(c)||s.push(c)}}n++}return e}l(ps,"assignComponents");function ys(t){let e=new Map,n=new Map,o=[],s=[],r=0,c=l((h,f)=>{e.set(h,++r),n.set(h,r);for(let u of t.get(h)??[])u!==f&&(e.has(u)?(e.get(u)??0)<(e.get(h)??0)&&(o.push([h,u]),n.set(h,Math.min(n.get(h)??r,e.get(u)??r))):(o.push([h,u]),c(u,h),n.set(h,Math.min(n.get(h)??r,n.get(u)??r)),(n.get(u)??0)>=(e.get(h)??0)&&s.push(xs(h,u,o,s.length))))},"visit");for(let h of t.keys())e.has(h)||c(h,null);return s}l(ys,"computeBlocks");function xs(t,e,n,o){let s=[],r=new Set;for(;n.length>0;){let c=n.pop();if(s.push(c),r.add(c[0]),r.add(c[1]),c[0]===t&&c[1]===e||c[0]===e&&c[1]===t)break}return{id:o,edges:s,nodes:[...r]}}l(xs,"popBlock");function bs(t,e,n){let o=[...t.nodes],s=new Map;for(let[I,T]of o.entries())s.set(T,I);let r=o.length,c=new Array(r).fill(-1),h=new Array(r).fill(0),f=[],u=new Set;for(let I of o){let T=n.parent.get(I)??null,O=s.get(I);O!=null&&T==null&&(c[O]=-1,h[O]=0,u.has(I)||(u.add(I),f.push(I)))}for(;f.length>0;){let I=f.shift(),T=s.get(I);if(T==null)continue;let O=n.children.get(I)??[];for(let S of O){if(u.has(S))continue;let b=s.get(S);b!=null&&(c[b]=T,h[b]=h[T]+1,u.add(S),f.push(S))}}for(let I of o){if(u.has(I))continue;let T=s.get(I);T!=null&&(c[T]=-1,h[T]=0,u.add(I))}let y=Math.max(1,Math.ceil(Math.log2(Math.max(1,r)))+1),g=Array.from({length:y},()=>new Array(r).fill(-1));for(let I=0;I{if(I===-1||T===-1)return-1;h[I]>S&1&&(I=g[S][I],I===-1))return-1;if(I===T)return I;for(let S=y-1;S>=0;S--){let b=g[S][I],E=g[S][T];b===-1||E===-1||b!==E&&(I=b,T=E)}return g[0][I]},"lcaIndex"),m=Array.from({length:r},()=>new Map);for(let I of t.edges){let T=I.src,O=I.dst,S=e[T],b=e[O];if(S==null||b==null||(S>b&&([T,O]=[O,T],[S,b]=[b,S]),S==null||b==null||S===b))continue;let E=s.get(T),A=s.get(O);if(E==null||A==null)continue;let F=L(E,A);if(F===-1)continue;let w=m[F];for(let _=S;_{if(T.size!==0)for(let[O,S]of T)I.set(O,(I.get(O)??0)+S)},"mergeInto"),p=new Set,C=l(I=>{let T=s.get(I);p.add(I);let O=T==null?void 0:m[T],S=O?new Map(O):new Map,b=n.children.get(I)??[];for(let E of b){let A=C(E),F=e[I];if(F!=null){let w=d.get(I);w||(w=new Map,d.set(I,w));let _=A.get(F)??0,k=e[E];k!=null&&k>F&&(_+=1),w.set(E,_)}i(S,A)}return S},"dfs");for(let I of n.roots)p.has(I)||C(I);for(let I of o)p.has(I)||C(I);return d}l(bs,"computeSubtreeCrossCounts");function Is(t,e,n){let o=new Map,s=l(r=>{let c=n[r]??0,h=[...e.get(r)??[]];h.sort(go(n));for(let f of h){s(f);let u=o.get(f);u!=null&&(c=Math.min(c,u))}o.set(r,c)},"annotate");for(let r of t)s(r);return o}l(Is,"annotateMinimumLayers");function go(t){return(e,n)=>{let o=t[e]??0,s=t[n]??0;return o===s?e.localeCompare(n):o-s}}l(go,"compareByRankThenId");function Ms(t,e,n,o){let s=0;for(let f of e){let u=n[f]??0;u>s&&(s=u)}let r=Array.from({length:s+1},()=>[]),c=new Set,h=l(f=>{if(c.has(f))return;c.add(f);let u=n[f]??0;r[u]||(r[u]=[]),r[u].push(f);for(let y of o(f))h(y)},"emit");for(let f of t)h(f);for(let f of e)if(!c.has(f)){let u=n[f]??0;r[u]||(r[u]=[]),r[u].push(f),c.add(f)}return r}l(Ms,"emitNodesInTreeOrder");function Ss(t){let e=[];for(let n of t){let o=new Set,s=[];for(let r of n)o.has(r)||(o.add(r),s.push(r));e.push(s)}return e}l(Ss,"deduplicateLayers");function Cs(t,e,n,o){return s=>{let r=t.get(s)??[];if(r.length===0)return[];let c=e[s]??0,h=[],f=[],u=n.get(s);for(let y of r){let g=o.get(y)??c;g>c?h.push({child:y,min:g}):f.push(y)}return h.sort((y,g)=>y.min===g.min?y.child.localeCompare(g.child):y.min-g.min),f.sort((y,g)=>{let L=u?.get(y)??0,m=u?.get(g)??0;if(L!==m)return L-m;let d=o.get(y)??c,i=o.get(g)??c;return d!==i?d-i:y.localeCompare(g)}),[...h.map(y=>y.child),...f]}}l(Cs,"createChildOrderer");function Je(t,e,n){let o=hs(t,{rankHint:e,laneOf:n}),{children:s,roots:r}=o;for(let g of t.nodes)s.has(g)||s.set(g,[]);let c=bs(t,e,o),h=[...r].sort(go(e)),f=Is(h,s,e),u=Cs(s,e,c,f),y=Ms(h,t.nodes,e,u);return y=Ss(y),y}l(Je,"buildMultitreeLayerOrder");function vs(t,e,n){let o=new Set(t),s=new Set(e),r=we(e),c=[];for(let h of n)o.has(h.src)&&s.has(h.dst)&&c.push(r.get(h.dst));return uo(c)}l(vs,"countCrossingsBetweenAdjacent");function Dn(t,e,n){let o=[];for(let r of e){let c=n[r.src],h=n[r.dst];if(c==null||h==null||c===h)continue;let f=r.src,u=r.dst,y=c,g=h;c>h&&(f=r.dst,u=r.src,y=h,g=c);for(let L=y;L(n[L]??0)-(n[g]??0));for(let g of y){let L=n[g]??0;if(L===0)continue;let m=0;for(let C of o.get(g)??[])m=Math.max(m,(n[C]??0)+1);if(m>=L)continue;let d=L;n[g]=m;let i=Je(t,n,s),p=Dn(i,t.edges,n);p(e[s]??0)-(e[r]??0)||s.localeCompare(r));for(let s of o){let r=n(s);if(!r)continue;let c=t.edges.filter(i=>i.src===s);if(c.length===0)continue;let h=!1,f=0;for(let i of c){let p=n(i.dst);p==null||p===r?h=!0:f++}if(f===0||h)continue;let u=0,y=!1;for(let i of t.edges){if(i.dst!==s)continue;let p=n(i.src);p&&(p===r?y=!0:u++)}if(u>0||!y)continue;let g=e[s]??0,L=g+f,m=0;for(let i of t.edges)i.dst===s&&(m=Math.max(m,(e[i.src]??0)+1));let d=Math.max(g,m,L);d!==g&&(e[s]=d)}}l(Ts,"adjustCrossLaneSources");function Es(t,e){let n=pe(t),o=Ne(n)??[...n.nodes].sort(),s=e?.compactSingleInput??!1,r=le(n),c=Object.create(null);for(let f of o){let u=co(n,f),y=e?.ignoreCrossLaneEdges?u.filter(g=>{let L=r(g.src),m=r(f);return!L||!m?!0:L===m}):u;if(y.length===0)c[f]=0;else if(s&&y.length===1){let g=y[0].src,L=r(g),m=r(f);L!==m?c[f]=c[g]??0:c[f]=(c[g]??0)+1}else{let g=-1/0;for(let L of y)g=Math.max(g,(c[L.src]??0)+1);c[f]=g===-1/0?0:g}}return(e?.optimizeRanksByCrossings??!1)&&(c=Ls(n,c)),e?.ignoreCrossLaneEdges&&Ts(n,c),{layers:Je(n,c,r),rankOf:c,dummy:new Set}}l(Es,"assignLayers_LongestPath");function Rs(t,e){let n=pe(t),s={...Es(n,{compactSingleInput:e?.compactSingleInput,ignoreCrossLaneEdges:e?.ignoreCrossLaneEdges,optimizeRanksByCrossings:e?.optimizeRanksByCrossings}).rankOf},r=le(n),{preds:c,succs:h}=nn(n,d=>{if(e?.ignoreCrossLaneEdges){let i=r(d.src),p=r(d.dst);if(i&&p&&i!==p)return!1}return!0}),f=Ne(n)??[...n.nodes],u=[...f].reverse(),y=l((d,i)=>{let p=0;for(let T of c.get(d)??[])p=Math.max(p,(s[T]??0)+1);let C=Number.POSITIVE_INFINITY,I=h.get(d)??[];return I.length>0&&(C=Math.min(...I.map(T=>(s[T]??0)-1))),Number.isFinite(C)||(C=Math.max(p,i)),Math.min(Math.max(i,p),C)},"clampFeasible"),g=Ze.GRAVITY_ITERATIONS,L=l(d=>{let i=!1;for(let p of d){let C=c.get(p)??[],I=h.get(p)??[];if(C.length===0&&I.length===0)continue;let T=C.length>0?C.reduce((E,A)=>E+(s[A]??0)+1,0)/C.length:s[p]??0,O=I.length>0?I.reduce((E,A)=>E+(s[A]??0)-1,0)/I.length:s[p]??0,S=Math.round((T+O)/2),b=y(p,S);b!==s[p]&&(s[p]=b,i=!0)}return i},"relaxOrder");for(let d=0;d0){let p=Math.min(...i.map(C=>(s[C]??0)-1));(s[d]??0)>p&&(s[d]=p)}}return{layers:fo(n,f,s),rankOf:s,dummy:new Set}}l(Rs,"assignLayers_Gravity");function ws(t){let e=en(t),n=ao(t),o=lo(e),s=[];for(;o.length>0;){let r=[];for(let c of o){s.push(c);for(let h of n.get(c)??[])e.set(h,(e.get(h)??0)-1),(e.get(h)??0)===0&&r.push(h)}o=r.sort((c,h)=>c.localeCompare(h))}return s.length===t.nodes.length?s:null}l(ws,"topoSortByGenerationIfAcyclic");function As(t,e){let n=pe(t),o=e?.direction==="LR"?ws(n)??[...n.nodes].sort():Ne(n)??[...n.nodes].sort(),s=le(n),r=l(y=>s(y)??y,"laneOf"),c=Object.create(null),h=new Map,f=l((y,g)=>e?.ignoreCrossLaneEdges??!0?r(y)===r(g)?1:0:1,"edgeWeight");for(let y of o){if(n.nodeById.get(y)?.isGroup)continue;let L=co(n,y),m=0;if(L.length>0)for(let C of L){let I=C.src,T=c[I]??0;m=Math.max(m,T+f(I,y))}let d=r(y),i=h.get(d)??0,p=Math.max(m,i);c[y]=p,h.set(d,p+1)}return{layers:fo(n,o,c,{skipGroups:!0}),rankOf:c,dummy:new Set}}l(As,"assignLayers_LaneAwareCompact");function Ns(t,e){let n=pe(e),{rankOf:o}=t,s=t.layers.map(m=>[...m]),r=new Set(t.dummy?[...t.dummy]:[]),c=0,h=new Map(n.nodeById),f=l(m=>{let d=`placeholder-${c++}`,i={id:d,isGroup:!1,isDummy:!0,width:0,height:0};for(h.set(d,i),r.add(d);s.length<=m;)s.push([]);return s[m].push(d),o[d]=m,d},"addDummyAt"),u=[...n.edges].sort((m,d)=>m.id===d.id?m.src===d.src?m.dst.localeCompare(d.dst):m.src.localeCompare(d.src):m.id.localeCompare(d.id)),y=[];for(let m of u){let d=o[m.src]??0,i=o[m.dst]??0;if(i-d<=1){y.push(m);continue}let p=m.src;for(let I=d+1,T=0;I!n.nodes.includes(m))],edges:y,layout:n.layout,nodeById:h};return{layering:{layers:s,rankOf:o,dummy:r},graphWithDummies:L}}l(Ns,"makeProperLayering");function Xn(t){let e=t.length;if(e===0)return Number.POSITIVE_INFINITY;let n=[...t].sort((o,s)=>o-s);return e%2===1?n[(e-1)/2]:.5*(n[e/2-1]+n[e/2])}l(Xn,"median");function Yn(t){return t.length===0?Number.POSITIVE_INFINITY:t.reduce((n,o)=>n+o,0)/t.length}l(Yn,"barycenter");function Os(t,e,n,o){let s=new Map;for(let r of t)s.set(r,[]);for(let r of n)o==="down"?e.has(r.src)&&s.has(r.dst)&&s.get(r.dst).push(e.get(r.src)):e.has(r.dst)&&s.has(r.src)&&s.get(r.src).push(e.get(r.dst));return s}l(Os,"neighborPositionsFor");function Bs(t,e,n){let o=n.get(t)??0,s=n.get(e)??0;return o!==s?o-s:t.localeCompare(e)}l(Bs,"currentOrderTieBreak");function Gn(t,e,n){let o=new Set(t),s=new Set(e),r=we(t),c=we(e),h=[];for(let u of n)o.has(u.src)&&s.has(u.dst)&&h.push({u:r.get(u.src),v:c.get(u.dst)});h.sort((u,y)=>u.u===y.u?u.v-y.v:u.u-y.u);let f=h.map(u=>u.v);return uo(f)}l(Gn,"countCrossingsBetweenAdjacent");function ze(t,e,n){return[...t].sort((o,s)=>{let r=Xn(e.get(o)??[]),c=Xn(e.get(s)??[]);return r===c?Bs(o,s,n):isFinite(r)?isFinite(c)?r-c:-1:1})}l(ze,"sortByHeuristic");function zn(t,e,n,o,s,r){let c=we(t),h=we(e),f=Os(e,c,n,o);if(!s||!r||r.length===0)return ze(e,f,h);let u=new Map;for(let L of e){let m=s(L),d=u.get(m)??[];d.push(L),u.set(m,d)}let y=[];for(let L of r){let m=u.get(L);if(!m||m.length===0)continue;let d=ze(m,f,h);y.push(...d)}let g=u.get(null);if(g&&g.length>0){let L=ze(g,f,h);for(let m of L){let d=Yn(f.get(m)??[]),i=y.length;if(isFinite(d))for(let[p,C]of y.entries()){let I=Yn(f.get(C)??[]);if(dc.has(i.src)&&h.has(i.dst)),y=f?n.filter(i=>h.has(i.src)&&f.has(i.dst)):void 0,g=l(i=>{let p=Gn(t,i,u);return y&&o&&(p+=Gn(i,o,y)),p},"crossingScore"),L=s?new Map:null;if(s&&L)for(let i of e)L.set(i,s(i));let m=!0,d=g(r);for(;m;){m=!1;for(let i=0;i+1[...h]),s=e.edges,r=le(e),c=ho(e,n?.laneOrder);for(let h=0;h<3;h++){for(let f=1;f=0;f--)o[f]=zn(o[f+1],o[f],s,"up",r,c),o[f]=$n(o[f+1],o[f],s,o[f-1],r)}return{layers:o}}l(Fs,"orderLayers");function Ps(t,e,n){let o=n?.layerGap??To.DEFAULT_LAYER_GAP,s=n?.nodeGap??To.DEFAULT_NODE_GAP,r=n?.laneGap??s*2,c=n?.direction??"TB",h=c==="LR"||c==="RL",f=t.layers,u=Object.create(null),y=Object.create(null),g=l(w=>e.nodeById.get(w),"getNode"),L=l(w=>g(w)?.width??0,"getWidth"),m=l(w=>g(w)?.height??0,"getHeight"),d=le(e),i=ho(e,n?.laneOrder),p=f.map(w=>w.reduce((_,k)=>Math.max(_,m(k)),0)),C=[];if(h)for(let w=0;w+1Math.max(pt,L(At)),0),k=f[w+1].reduce((pt,At)=>Math.max(pt,L(At)),0),B=p[w],X=p[w+1],z=B/2+X/2,K=(_+k)/2,ct=Math.max(0,K-z-o);C.push(ct)}let I=new Set;for(let w of f)for(let _ of w)I.add(d(_));let T=I.has(null),O=i.filter(w=>I.has(w)),S=[...T?[null]:[],...O],b=Object.create(null);for(let w of O)b[w]=0;T&&(b.null=0);for(let w of f){let _=Object.create(null),k=[];for(let B of w){let X=d(B);X===null?k.push(B):(_[X]||=[]).push(B)}for(let[B,X]of Object.entries(_)){let z=X.reduce((K,ct)=>K+L(ct),0)+s*Math.max(0,X.length-1);b[B]=Math.max(b[B]??0,z)}if(T&&k.length){let B=k.reduce((X,z)=>X+L(z),0)+s*Math.max(0,k.length-1);b.null=Math.max(b.null??0,B)}}let E=new Map;{let w=S.map(B=>(B===null?b.null:b[B])??0),k=-(w.reduce((B,X)=>B+X,0)+r*Math.max(0,S.length-1))/2;for(let B=0;BL(Q)),At=pt.reduce((Q,W)=>Q+W,0)+s*(K.length-1),Ft=ct-At/2;for(let[Q,W]of K.entries()){let et=pt[Q];u[W]=Ft+et/2,y[W]=A+k/2,Ft+=et+s}}}let X=C[w]??0;A+=k+o+X}let F=new Map;for(let w of e.edges){let _=w.ref.id;F.has(_)||F.set(_,[]),F.get(_).push(w)}for(let[,w]of F){if(w.length===0)continue;let _=w[0].ref,k=_.start,B=_.end;if(k==null||B==null)continue;let X=Math.round(((u[k]??0)+(u[B]??0))/2),z=new Set;for(let K of w)z.add(K.src),z.add(K.dst);for(let K of z){if(K===k||K===B)continue;e.nodeById.get(K)?.isDummy&&(u[K]=X)}}return{x:u,y}}l(Ps,"assignCoordinates");var ks=8;function _s(t){let e=2166136261;for(let n=0;n>>0}l(_s,"hashString");function Hs(t){let e=t>>>0;return()=>{e+=1831565813;let n=e;return n=Math.imul(n^n>>>15,n|1),n^=n+Math.imul(n^n>>>7,n|61),((n^n>>>14)>>>0)/4294967296}}l(Hs,"mulberry32");function Ds(t,e){let n=[...t],o=Hs(e);for(let s=n.length-1;s>0;s--){let r=Math.floor(o()*(s+1));[n[s],n[r]]=[n[r],n[s]]}return n}l(Ds,"deterministicShuffle");function Xs(t,e){let n=0;for(let[o,s]of t.entries())n+=Math.abs(o-(e.get(s)??o));return n}l(Xs,"sourceDistance");function Vn(t,e){let n=new Map;for(let[s,r]of t.entries())n.set(r,s);let o=0;for(let{a:s,b:r,weight:c}of e){let h=n.get(s),f=n.get(r);h==null||f==null||(o+=c*Math.abs(h-f))}return o}l(Vn,"laneArrangementCost");function Ys(t){let e=on(t);if(e.length<2)return[];let n=new Map(e.map((r,c)=>[r,c])),o=le(t),s=new Map;for(let r of t.layout.edges??[]){if(r.isLayoutOnly)continue;let c=typeof r.start=="string"?r.start:void 0,h=typeof r.end=="string"?r.end:void 0;if(!c||!h||!t.nodeById.has(c)||!t.nodeById.has(h))continue;let f=o(c),u=o(h);if(!f||!u||f===u)continue;let y=n.get(f),g=n.get(u);if(y==null||g==null)continue;let[L,m]=y<=g?[f,u]:[u,f],d=`${L}\0${m}`,i=s.get(d);i?i.weight++:s.set(d,{a:L,b:m,weight:1})}return[...s.values()]}l(Ys,"buildWeightedLaneEdges");function Un(t,e,n){let o=[...t],s=Vn(o,e),r=!0,c=0,h=Math.max(1,o.length);for(;r&&cs.a===r.a?s.b.localeCompare(r.b):s.a.localeCompare(r.a)).map(({a:s,b:r,weight:c})=>`${s}:${r}:${c}`).join("|");return _s(`${t.join("|")}#${o}#${n}`)}l(zs,"seedForRestart");function $s(t,e={}){let n=on(t);if(n.length<2)return n;let o=Ys(t);if(o.length===0)return n;let s=new Map(n.map((h,f)=>[h,f])),r=Un(n,o,s),c=Math.max(0,e.restarts??ks);for(let h=0;hat&&f*3>=h?c>0?"bottom":"top":h>at?r>0?"right":"left":n}l(jn,"chooseOrthogonalSide");function Wn(t,e){return Math.abs(t.to-e.from)a.isGroup&&!a.parentId);for(let a of u){let x={id:a.id},M=l(v=>{c.set(v.id,x),n.filter(R=>R.parentId===v.id).forEach(M)},"assignLane");M(a)}let y=n.filter(a=>!a.isGroup&&!a.isEdgeLabel).map(a=>{let x=a.width??10,M=a.height??10,v=a.x??0,R=a.y??0,P=mr;return{nodeId:a.id,minX:v-x/2-P,maxX:v+x/2+P,minY:R-M/2-P,maxY:R+M/2+P,visualXHalfExtent:f?M/2+P:x/2+P}}),g=l((a,x,M,v)=>{let R=h.find(P=>P.orientation===a&&Math.abs(P.coord-x)<1);return R||(R={id:`pipe-${a}-${x.toFixed(0)}`,orientation:a,coord:x,spanMin:M,spanMax:v,tracks:[]},h.push(R)),R.spanMin=Math.min(R.spanMin,M),R.spanMax=Math.max(R.spanMax,v),R},"getOrAddPipe"),L=l((a,x)=>{let M=a.width??10,v=a.height??10,R=a.x??0,P=a.y??0;switch(x){case"top":return{x:R,y:P-v/2};case"bottom":return{x:R,y:P+v/2};case"left":return{x:R-M/2,y:P};case"right":return{x:R+M/2,y:P}}},"portForSide"),m=l((a,x,M)=>L(a,jn(a,x,M?"bottom":"top")),"getOrthogonalPort"),d=[],i=[],p=new Set,C=1e3,I=l((a,x,M)=>{if(d.length===0)return 0;let v=Math.abs(x.y-M.y)V||G.from-at<=j&&G.to+at>=j&&(P+=C)}else if(R){let j=x.x,Z=Math.min(x.y,M.y)-at,V=Math.max(x.y,M.y)+at;if(V<=Z)return 0;for(let G of d)G.edgeIndex===a||G.orientation!=="horizontal"||G.pipe.coordV||G.from-at<=j&&G.to+at>=j&&(P+=C)}return P},"crossingPenalty"),T=s.map((a,x)=>{if(!a.start||!a.end)return{idx:x,crossLane:0,dx:0,dy:0};let M=r.get(a.start),v=r.get(a.end),R=c.get(a.start),P=c.get(a.end),j=R&&P&&R.id!==P.id?1:0,Z=M&&v?Math.abs((v.x??0)-(M.x??0)):0,V=M&&v?Math.abs((v.y??0)-(M.y??0)):0;return{idx:x,crossLane:j,dx:Z,dy:V}}).sort((a,x)=>{if(a.crossLane!==x.crossLane)return x.crossLane-a.crossLane;let M=a.dx+a.dy,v=x.dx+x.dy;return Math.abs(M-v)>1?M-v:a.idx-x.idx}).map(a=>a.idx),O=l((a,x,M,v)=>{let R=Math.min(a.x,x.x),P=Math.max(a.x,x.x),j=Math.min(a.y,x.y),Z=Math.max(a.y,x.y);return!!y.find(G=>M&&G.nodeId===M||v&&G.nodeId===v?!1:Math.abs(a.x-x.x)>at?G.minYa.y&&G.maxX>R&&G.minXa.x&&G.maxY>j&&G.minYjn(a,x,"bottom"),"determineSide"),A=new Map;for(let[a,x]of s.entries()){if(!x.start||!x.end||x.start===x.end||x.points&&x.points.length>0)continue;let M=r.get(x.start),v=r.get(x.end);if(!M||!v)continue;let R=(v.x??0)-(M.x??0),P=(v.y??0)-(M.y??0);A.set(a,{edgeIdx:a,srcId:x.start,dstId:x.end,srcSide:E(M,{x:v.x??0,y:v.y??0}),dstSide:E(v,{x:M.x??0,y:M.y??0}),absDx:Math.abs(R),absDy:Math.abs(P),dxSign:Math.sign(R),dySign:Math.sign(P)})}let F=l(a=>a.srcSide==="top"||a.srcSide==="bottom"?a.absDx===0?1/0:a.absDy/a.absDx:a.absDy===0?1/0:a.absDx/a.absDy,"preferenceStrength"),w=l(a=>a.srcSide==="top"||a.srcSide==="bottom"?a.dxSign>=0?"right":"left":a.dySign>=0?"bottom":"top","secondarySide"),_=new Map;for(let a of A.values()){let x=`${a.srcId}:${a.srcSide}`;_.has(x)||_.set(x,[]),_.get(x).push(a)}let k=new Map,B=l((a,x)=>`${a}:${x}`,"loadKey");for(let a of A.values())k.set(B(a.srcId,a.srcSide),(k.get(B(a.srcId,a.srcSide))??0)+1),k.set(B(a.dstId,a.dstSide),(k.get(B(a.dstId,a.dstSide))??0)+1);for(let a of _.values())if(!(a.length<2)){a.sort((x,M)=>{let v=F(x),R=F(M);return Math.abs(v-R)>1e-9?R-v:x.edgeIdx-M.edgeIdx});for(let x=1;x=R||(k.set(B(M.srcId,M.srcSide),R-1),k.set(B(M.srcId,v),P+1),M.srcSide=v)}}let X=l(a=>{let x=a?.shape;return x==="question"||x==="diamond"},"isDiamondNode"),z=new Map;for(let a of A.values())z.has(a.dstId)||z.set(a.dstId,new Set),z.get(a.dstId).add(a.dstSide);for(let a of A.values()){if(!X(r.get(a.srcId)))continue;let x=z.get(a.srcId);if(!x?.has(a.srcSide))continue;let M=w(a);if(x.has(M)||(k.get(B(a.srcId,M))??0)>0)continue;let v=k.get(B(a.srcId,a.srcSide))??0;k.set(B(a.srcId,a.srcSide),Math.max(0,v-1)),k.set(B(a.srcId,M),1),a.srcSide=M}for(let a of A.values()){let{edgeIdx:x,srcId:M,dstId:v,srcSide:R,dstSide:P}=a,j=r.get(M),Z=r.get(v),V=`${M}:${R}:src`,G=R==="top"||R==="bottom"?Z.x??0:Z.y??0;S.has(V)||S.set(V,[]),S.get(V).push({edgeIdx:x,oppositeCoord:G});let ot=`${v}:${P}:dst`,rt=P==="top"||P==="bottom"?j.x??0:j.y??0;S.has(ot)||S.set(ot,[]),S.get(ot).push({edgeIdx:x,oppositeCoord:rt})}let K=new Map,ct=8;for(let[a,x]of S){if(x.length<2)continue;x.sort((Lt,Ht)=>Lt.oppositeCoord-Ht.oppositeCoord);let M=a.split(":"),v=M.slice(0,-2).join(":"),R=M[M.length-2],P=M[M.length-1],j=r.get(v);if(!j)continue;let V=R==="left"||R==="right"?j.height??10:j.width??10,G=j.shape,rt=G==="question"||G==="diamond"?V*.3:V,tt=Math.min(20,Math.max(ct,rt/(x.length+1))),Nt=-(tt*(x.length-1))/2;for(let[Lt,Ht]of x.entries()){let Zt=Nt+Lt*tt,an=`${Ht.edgeIdx}:${P}`;K.set(an,Zt)}}let pt=l(a=>!!s[a]?.labelNodeId,"edgeHasLabelNode"),At=l((a,x)=>a?(S.get(`${a}:${x}:src`)??[]).some(({edgeIdx:M})=>pt(M))||(S.get(`${a}:${x}:dst`)??[]).some(({edgeIdx:M})=>pt(M)):!1,"faceHasLabelNode"),Ft=l((a,x,M)=>x==="top"||x==="bottom"?{x:a.x+M,y:a.y}:{x:a.x,y:a.y+M},"applyPortOffset"),Q=l((a,x,M)=>{let v=A.get(a),R={x:M.x??0,y:M.y??0},P={x:x.x??0,y:x.y??0},j=v?.srcSide??E(x,R),Z=v?.dstSide??E(M,P),V=v?L(x,v.srcSide):m(x,R,!0),G=v?L(M,v.dstSide):m(M,P,!1),ot=K.get(`${a}:src`),rt=K.get(`${a}:dst`);return ot!==void 0&&(V=Ft(V,j,ot)),rt!==void 0&&(G=Ft(G,Z,rt)),{pSrcPort:V,pDstPort:G,srcSide:j,dstSide:Z}},"portsForEdge");for(let a of T){let x=s[a];if(i[a]=[],!x.start||!x.end||x.points&&x.points.length>0||x.start===x.end)continue;let M=r.get(x.start),v=r.get(x.end);if(!M||!v)continue;let{pSrcPort:R,pDstPort:P,srcSide:j,dstSide:Z}=Q(a,M,v),V={...R},G={...P},ot=j==="top"||j==="bottom",rt=Z==="top"||Z==="bottom";if(ot){let Y=R.y>(M.y??0);V.y=Y?R.y+ne:R.y-ne}else{let Y=R.x>(M.x??0);V.x=Y?R.x+ne:R.x-ne}if(rt){let Y=P.y>(v.y??0);G.y=Y?P.y+ne:P.y-ne}else{let Y=P.x>(v.x??0);G.x=Y?P.x+ne:P.x-ne}let st=l((Y,$)=>{for(let q of y)if(!$.includes(q.nodeId)&&Y.x>q.minX&&Y.xq.minY&&Y.y{if(Ct){let Ot=Y.y>($.y??0);return{x:(q.x??0)>=Y.x?ft.maxX+xe:ft.minX-xe,y:Ot?ft.maxY+Te:ft.minY-Te,leavesPositiveSide:Ot}}let bt=Y.x>($.x??0),Tt=(q.y??0)>=Y.y;return{x:bt?ft.maxX+xe:ft.minX-xe,y:Tt?ft.maxY+Te:ft.minY-Te,leavesPositiveSide:bt}},"obstacleDetour"),yt=[],Nt=[x.start,x.end],Lt=st(V,Nt);if(Lt.inside&&Lt.obstacle){let Y=Lt.obstacle;if(ot){let $=tt(R,M,v,Y,!0);V.x=$.x,V.y=$.y;let q=$.leavesPositiveSide?Math.min(Y.minY-2,R.y+ne):Math.max(Y.maxY+2,R.y-ne);yt=[{x:R.x,y:q},{x:$.x,y:q},{x:$.x,y:$.y}]}else{let $=tt(R,M,v,Y,!1),q=$.leavesPositiveSide?Math.min(Y.minX-2,R.x+ne):Math.max(Y.maxX+2,R.x-ne);V.x=$.x,V.y=$.y,yt=[{x:q,y:R.y},{x:q,y:$.y},{x:$.x,y:$.y}]}}let Ht=[],Zt=st(G,Nt);if(Zt.inside&&Zt.obstacle){let Y=Zt.obstacle;if(rt){let $=tt(P,v,M,Y,!0);G.x=$.x,G.y=$.y,Ht=[{x:$.x,y:$.y},{x:P.x,y:$.y}]}else{let $=tt(P,v,M,Y,!1);G.x=$.x,G.y=$.y,Ht=[{x:$.x,y:$.y},{x:$.x,y:P.y}]}}if(yt.length===0&&Ht.length===0){let Y=xe,$=Math.abs(V.x-G.x)1||bt>1,Ot=b.get(x.start??"")??0,ut=b.get(x.end??"")??0,Yt=Ct>1&&At(x.start,j)||bt>1&&At(x.end,Z),ee=Ct<=1||Ot<=2,Pt=bt<=1||ut<=2;if(($||q)&&!ft&&(!Tt||Tt&&!Yt&&ee&&Pt)&&!O(R,P,x.start,x.end)){x.points=[{...R},{...V},{...G},{...P}],p.add(a);let It=q?"horizontal":"vertical",zt=q?R.y:R.x,Mt=q?Math.min(R.x,P.x):Math.min(R.y,P.y),St=q?Math.max(R.x,P.x):Math.max(R.y,P.y),Wt={id:`fast-path-${It}-${zt.toFixed(0)}-${a}`,orientation:It,coord:zt,spanMin:Mt,spanMax:St,tracks:[]};d.push({edgeIndex:a,segmentIndex:0,orientation:It,pipe:Wt,trackIndex:0,from:Mt,to:St});continue}}let an=g("vertical",V.x,V.y,V.y);V.x=an.coord;let qs=g("vertical",G.x,G.y,G.y);G.x=qs.coord;let de=Math.min(V.x,G.x)-50,ue=Math.max(V.x,G.x)+50,Ce=Math.min(V.y,G.y)-50,ve=Math.max(V.y,G.y)+50;for(let Y of y){let $=Math.min(V.x,G.x),q=Math.max(V.x,G.x),ft=Math.min(V.y,G.y),Ct=Math.max(V.y,G.y);Y.minX$&&Y.minYft&&(de=Math.min(de,Y.minX-Ye),ue=Math.max(ue,Y.maxX+Ye),Ce=Math.min(Ce,Y.minY-Ye),ve=Math.max(ve,Y.maxY+Ye))}for(let Y of y){if(Y.maxXue||Y.maxYve)continue;let $=xe;g("horizontal",Y.minY-$,de,ue),g("horizontal",Y.maxY+$,de,ue);let q=Te;g("vertical",Y.minX-q,Ce,ve),g("vertical",Y.maxX+q,Ce,ve)}g("horizontal",V.y,de,ue),g("horizontal",G.y,de,ue);let Zs=h.filter(Y=>Y.orientation==="horizontal"&&Y.coord>=Ce&&Y.coord<=ve),Js=h.filter(Y=>Y.orientation==="vertical"&&Y.coord>=de&&Y.coord<=ue),Oe=l((Y,$)=>`${Y.toFixed(1)},${$.toFixed(1)}`,"getKey"),Be=Oe(V.x,V.y),mo=Oe(G.x,G.y),Fe=new Map,ln=new Map,fn=new Map,Pe=new Set,ye=[];Fe.set(Be,0),fn.set(Be,"n"),ye.push({key:Be,f:Math.hypot(G.x-V.x,G.y-V.y),pt:V}),Pe.add(Be);let Dt=[],he=l((Y,$)=>O(Y,$,x.start,x.end),"checkSegmentBlocked"),dn={x:G.x,y:V.y},Qs=he(V,dn),tr=he(dn,G),er=Qs||tr,un={x:V.x,y:G.y},nr=he(V,un),or=he(un,G);if(er?nr||or||(Math.abs(V.x-G.x)0;){ye.sort((ut,Yt)=>ut.f-Yt.f);let Y=ye.shift();if(Pe.delete(Y.key),Y.key===mo){let ut=mo,Yt=G;for(Dt=[Yt];ln.has(ut);){let ee=ln.get(ut);Dt.unshift(ee),Yt=ee,ut=Oe(ee.x,ee.y)}break}let $=Y.pt.x,q=Y.pt.y,ft=Js.sort((ut,Yt)=>ut.coord-Yt.coord),Ct=ft.findIndex(ut=>Math.abs(ut.coord-$)<1),bt=Zs.sort((ut,Yt)=>ut.coord-Yt.coord),Tt=bt.findIndex(ut=>Math.abs(ut.coord-q)<1),Ot=[];Ct>0&&Ot.push({x:ft[Ct-1].coord,y:q}),Ct>=0&&Ct0&&Ot.push({x:$,y:bt[Tt-1].coord}),Tt>=0&&TtJt.nodeId===x.start||Jt.nodeId===x.end?!1:Yt!==ee?Jt.minYq&&Jt.maxX>Yt&&Jt.minX$&&Jt.maxY>Pt&&Jt.minY10&&hn<-5||Le<-10&&hn>5)&&(St=Math.abs(hn)*100),(Wt>10&&ke<-5||Wt<-10&&ke>5)&&(St+=Math.abs(ke)*50);let po=0,yo=fn.get(Y.key)??"n",xo=Math.abs(ke)>at?"h":"v";yo!=="n"&&yo!==xo&&(po=50);let sr=zt+Mt+St+po,_e=(Fe.get(Y.key)??1/0)+sr,bo=Math.abs(G.x-ut.x)+Math.abs(G.y-ut.y);if(_e<(Fe.get(It)??1/0))if(ln.set(It,Y.pt),Fe.set(It,_e),fn.set(It,xo),!Pe.has(It))ye.push({key:It,f:_e+bo,pt:ut}),Pe.add(It);else{let Jt=ye.findIndex(rr=>rr.key===It);Jt!==-1&&(ye[Jt].f=_e+bo)}}}if(Dt.length===0&&(Dt=[V,{x:V.x,y:G.y},G]),Dt.length>4){let Y=Dt[0],$=Dt[Dt.length-1],q=Math.min(Y.x,$.x),ft=Math.max(Y.x,$.x),Ct=Math.min(Y.y,$.y),bt=Math.max(Y.y,$.y);for(let Pt of Dt)q=Math.min(q,Pt.x),ft=Math.max(ft,Pt.x),Ct=Math.min(Ct,Pt.y),bt=Math.max(bt,Pt.y);let Tt=ft>Math.max(Y.x,$.x),Ot=qMt.minXGt&&Mt.minYBt);if(zt.length>0){let Mt=Math.max(Y.x,$.x);for(let St of zt){let Wt=(St.minX+St.maxX)/2;if(St.visualXHalfExtent===void 0||isNaN(St.visualXHalfExtent))continue;let Le=Wt+St.visualXHalfExtent+Pt;Mt=Math.max(Mt,Le)}isNaN(Mt)||(ft=Mt)}}if(Ot){let Gt=y.filter(Bt=>Bt.minXMath.min(Y.y,$.y));if(Gt.length>0){let Bt=Math.min(Y.x,$.x);for(let It of Gt){let Mt=(It.minX+It.maxX)/2-It.visualXHalfExtent-Pt;Bt=Math.min(Bt,Mt)}q=Bt}}}let ut=l(Pt=>{let Gt=$.y>Y.y,Bt=y.filter(Mt=>{let St=Math.min(Y.x,$.x)Mt.minX,Wt=Math.min(Y.y,$.y)Mt.minY;return St&&Wt}),It=Bt;if(f&&Bt.length>0){let Mt=Bt.filter(St=>St.minXPt);Mt.length>0&&(It=Mt)}if(It.length===0)return $.y;let zt=xe;if(Gt){let St=Math.max(...It.map(Wt=>Wt.maxY))+zt;if(St<$.y-at)return St}else{let St=Math.min(...It.map(Wt=>Wt.minY))-zt;if(St>$.y+at)return St}return $.y},"findBestReturnY"),Yt=l(Pt=>{let Gt=ut(Pt),Bt={x:Pt,y:Y.y},It={x:Pt,y:Gt},zt={x:$.x,y:Gt},Mt=he(Y,Bt),St=he(Bt,It),Wt=he(It,zt),Le=Gt!==$.y?he(zt,$):!1;return!Mt&&!St&&!Wt&&!Le?Math.abs(Gt-$.y)=3){let Y=Xt[Xt.length-1],$=Xt[Xt.length-2],q=Xt[Xt.length-3],ft=Math.abs(q.y-$.y)Math.abs(Y.x-q.x)&&Xt.splice(-2,1)}else if(Ct){let bt=Math.sign($.y-q.y),Tt=Math.sign(Y.y-q.y);bt!==0&&bt===Tt&&Math.abs($.y-q.y)>Math.abs(Y.y-q.y)&&Xt.splice(-2,1)}}let re=[Xt[0]];for(let Y=1;Y$.x,bt=ft.x>q.x;if(Ct!==bt){re.push(q);continue}continue}if(Math.abs($.x-q.x)$.y,bt=ft.y>q.y;if(Ct!==bt){re.push(q);continue}continue}re.push(q)}re.push(Xt[Xt.length-1]);for(let Y=0;Ya.from{let R=!v.segments.some(j=>(j.edgeIndex!==x.edgeIndex||j.segmentIndex!==x.segmentIndex)&&W(j,a)),P=!M.segments.some(j=>(j.edgeIndex!==a.edgeIndex||j.segmentIndex!==a.segmentIndex)&&W(j,x));return R&&P?(a.trackIndex=v.index,x.trackIndex=M.index,M.segments=[...M.segments.filter(j=>j.edgeIndex!==a.edgeIndex||j.segmentIndex!==a.segmentIndex),{edgeIndex:x.edgeIndex,segmentIndex:x.segmentIndex,from:x.from,to:x.to}],v.segments=[...v.segments.filter(j=>j.edgeIndex!==x.edgeIndex||j.segmentIndex!==x.segmentIndex),{edgeIndex:a.edgeIndex,segmentIndex:a.segmentIndex,from:a.from,to:a.to}],!0):!1},"trySwapSegmentsAcrossTracks"),lt=l(a=>{let x=a.tracks.length;return a.tracks[x]={index:x,coord:a.coord,segments:[]},x},"createNewTrack"),gt=l((a,x)=>{let M=a.pipe.tracks[a.trackIndex];M.segments=M.segments.filter(R=>R.edgeIndex!==a.edgeIndex||R.segmentIndex!==a.segmentIndex),a.trackIndex=x,a.pipe.tracks[x].segments.push({edgeIndex:a.edgeIndex,segmentIndex:a.segmentIndex,from:a.from,to:a.to})},"moveSegmentToTrack"),xt=l((a,x)=>{let M=i[a.edgeIndex];for(let v of M){let R=d[v];R.pipe===a.pipe&>(R,x)}},"moveSegmentChainToTrack"),vt=l(a=>{let x=i[a.edgeIndex],M=x.indexOf(d.indexOf(a)),v=[];return M>0&&v.push(d[x[M-1]]),M{if(a.orientation===x.orientation)return!1;let M=a.orientation==="horizontal"?a:x,v=a.orientation==="horizontal"?x:a;return v.pipe.coord>M.from&&v.pipe.coordv.from&&M.pipe.coord{for(let M of a.tracks)if(!M.segments.some(R=>(R.edgeIndex!==x.edgeIndex||R.segmentIndex!==x.segmentIndex)&&W(R,x)))return M.index;return-1},"findAvailableTrack"),jt=l((a,x)=>{if(a.trackIndex===x.trackIndex)return W(a,x);let M=vt(a),v=vt(x);return M.some(R=>v.some(P=>Vt(R,P)))},"segmentsConflict"),te=l((a,x,M)=>{if(et(a,x,a.pipe.tracks[a.trackIndex],x.pipe.tracks[x.trackIndex]))return;let v=Ut(a.pipe,x);M(x,v!==-1?v:lt(a.pipe))},"resolveTrackConflict"),Me=l(a=>{let x=0;for(let M=0;M{if(fe.has(a))return fe.get(a);let x=i[a];if(x.length===0){let Z={dest:0,deviation:0,base:0,delta:0};return fe.set(a,Z),Z}let v=d[x[0]].pipe.coord,R=v;for(let Z=1;ZMath.abs(ot-v)?G:ot;break}}let P=Math.abs(R-v),j={dest:R,deviation:P,base:v,delta:R-v};return fe.set(a,j),j},"getDestInfo"),sn=l(()=>{let a=0,x=new Map;for(let[v,R]of s.entries())i[v].length!==0&&R.start&&(x.has(R.start)||x.set(R.start,[]),x.get(R.start).push(v));let M=l(v=>{let R=s[v];if(!R.start||!R.end)return 0;let P=r.get(R.start),j=r.get(R.end);if(!P||!j)return 0;let Z=(j.x??0)-(P.x??0),V=(j.y??0)-(P.y??0);return Math.abs(Z)+Math.abs(V)},"getEdgeDistance");for(let v of x.values()){v.sort((P,j)=>{let Z=Se(P),V=Se(j);if(Math.abs(Z.deviation-V.deviation)>1)return Z.deviation-V.deviation;if(Math.abs(Z.dest-V.dest)>1)return Z.dest-V.dest;let G=M(P),ot=M(j);if(Math.abs(G-ot)>1)return ot-G;let rt=i[P].length,st=i[j].length;if(rt!==st)return rt-st;if(rt===1){let tt=i[P][0],yt=i[j][0];if(d[tt]&&d[yt]){let Nt=d[tt],Lt=d[yt],Ht=Math.abs(Nt.to-Nt.from),Zt=Math.abs(Lt.to-Lt.from);if(Math.abs(Ht-Zt)>1)return Ht-Zt}}return 0});let R=v.map(P=>d[i[P][0]]);a+=Me(R)}return a},"fixSourceHandleCrossings"),rn=l(()=>{let a=0,x=new Map;for(let[M,v]of s.entries())i[M].length!==0&&v.end&&(x.has(v.end)||x.set(v.end,[]),x.get(v.end).push(M));for(let M of x.values()){M.sort((R,P)=>{let j=l(G=>{let ot=i[G];if(ot.length<2)return 0;let rt=d[ot[ot.length-2]];return Math.abs(rt.to-rt.from)},"getDist"),Z=j(R),V=j(P);return Math.abs(Z-V)>.1?Z-V:R-P});let v=M.map(R=>d[i[R][i[R].length-1]]);a+=Me(v)}return a},"fixTargetHandleCrossings"),cn=l(()=>{let a=0;for(let x of h){let M=[];for(let v of x.tracks)for(let R of v.segments){let P=i[R.edgeIndex].find(j=>d[j].segmentIndex===R.segmentIndex);P!==void 0&&M.push(d[P])}M.sort((v,R)=>v.edgeIndex-R.edgeIndex||v.segmentIndex-R.segmentIndex);for(let v=0;v{v.segments.forEach(R=>{x.push({edgeIndex:R.edgeIndex,segmentIndex:R.segmentIndex,trackIndex:v.index,from:R.from,to:R.to})})}),x.sort((v,R)=>v.from-R.from);let M=[];if(x.length>0){let v=[x[0]],R=x[0].to;for(let P=1;PR.add(tt.trackIndex));let P=new Map;v.forEach(tt=>{let yt=Se(tt.edgeIndex);P.set(tt.trackIndex,(P.get(tt.trackIndex)??0)+yt.delta)});let j=[...R].filter(tt=>(P.get(tt)??0)<-1),Z=[...R].filter(tt=>(P.get(tt)??0)>1),V=[...R].filter(tt=>Math.abs(P.get(tt)??0)<=1);j.sort((tt,yt)=>(P.get(yt)??0)-(P.get(tt)??0)),Z.sort((tt,yt)=>(P.get(tt)??0)-(P.get(yt)??0));let G=l((tt,yt)=>{v.filter(Nt=>Nt.trackIndex===tt).forEach(Nt=>{let Lt=p.has(Nt.edgeIndex)?a.coord:yt;D.set(`${Nt.edgeIndex}-${Nt.segmentIndex}`,Lt)})},"assignCoord"),ot=0;for(let tt of j)ot++,G(tt,a.coord-ot*yn);if(V.length===0&&R.size>0){let tt=[...R].sort((Lt,Ht)=>Math.abs(P.get(Lt)??0)-Math.abs(P.get(Ht)??0))[0],yt=j.indexOf(tt);yt!==-1&&j.splice(yt,1);let Nt=Z.indexOf(tt);Nt!==-1&&Z.splice(Nt,1),V.push(tt)}let rt=0;for(let tt of V){if(rt===0)G(tt,a.coord);else{let yt=rt%2===1?1:-1,Nt=Math.ceil(rt/2);G(tt,a.coord+yt*Nt*yn*.5)}rt++}let st=0;for(let tt of Z)st++,G(tt,a.coord+st*yn)}}for(let[a,x]of s.entries()){let M=i[a]??[];if(M.length===0)continue;let v=[],R=r.get(x.start),P=r.get(x.end),{pSrcPort:j,pDstPort:Z}=Q(a,R,P),V=M.map(rt=>{let st=d[rt],tt=D.get(`${st.edgeIndex}-${st.segmentIndex}`)??st.pipe.coord;return{orient:st.orientation,coord:tt,from:st.from,to:st.to}});v.push(j);for(let rt=0;rtat&&v.push(be(st,yt)),Ht&&Lt.orient===st.orient)if(Math.abs(st.coord-Lt.coord)>at){let Zt=st.orient==="vertical"?(yt+Lt.from)/2:Wn(st,Lt);v.push(be(st,Zt),be(Lt,Zt))}else(rt===0||rt===V.length-2)&&v.push(be(st,Wn(st,Lt)));else if(Ht)v.push(be(st,Lt.coord));else{let Zt=Math.abs(st.from-yt)at||Math.abs(G.y-Z.y)>at)&&v.push(Z);let ot=[];v.length>0&&ot.push(v[0]);for(let rt=1;rtat||Math.abs(st.y-tt.y)>at)&&ot.push(st)}x.points=ot}for(let a of s){let x=a.__originalEdge;x&&a.points&&(x.points=a.points)}t.edges=(t.edges??[]).filter(a=>!a.isLayoutOnly);let U=l((a,x)=>{let M=x.x??0,v=x.y??0,R=x.width??0,P=x.height??0;if(R<=0||P<=0)return a;let j=M-R/2,Z=M+R/2,V=v-P/2,G=v+P/2;if(a.xZ||a.yG)return a;let ot=a.x-j,rt=Z-a.x,st=a.y-V,tt=G-a.y,yt=Math.min(ot,rt,st,tt);return yt===ot?{x:j,y:a.y}:yt===rt?{x:Z,y:a.y}:yt===st?{x:a.x,y:V}:{x:a.x,y:G}},"nodeBoundaryClamp");for(let a of t.edges){let x=a.points;if(!x||x.length<2)continue;let M=a.start,v=a.end,R=M?r.get(M):void 0,P=v?r.get(v):void 0;R&&(x[0]=U(x[0],R)),P&&(x[x.length-1]=U(x[x.length-1],P))}return t}l(Us,"routeEdgesOrthogonal");function js(t){return t.direction??"TB"}l(js,"getSwimlaneDirection");function Ws(t){let e=Ao(t),n=t.config.flowchart?.nodeSpacing??40,o=t.config.flowchart?.rankSpacing??100,s=t.config.swimlane?.ignoreCrossLaneEdges??!0,r=t.config.swimlane?.optimizeRanksByCrossings??!0,c=t.config.swimlane?.automaticLaneOrdering??!1,h=js(t),{ordered:f,coordinates:u}=Vs(e,{nodeGap:n,layerGap:o,ignoreCrossLaneEdges:s,optimizeRanksByCrossings:r,automaticLaneOrdering:c,direction:h});No(e,f,u,{nodeGap:n,layerGap:o});for(let y of t.edges??[])delete y.points;Us(t,h);for(let y of t.edges??[])(!y.curve||y.curve==="basis")&&(y.curve="rounded");return ls(t,h),as(t),h}l(Ws,"runSwimlaneLayoutCore");function Ks(t){wo(t);let e=Oo(t);t.nodes=e.nodes,t.edges=e.edges}l(Ks,"prepareSwimlaneLayout");var Nr=Mo({prepareLayout:Ks,runLayoutCore:Ws,afterPaint:Eo});export{Nr as render}; diff --git a/src/frontend/web/von_interface/static/vendor/conversation-visuals/swimlanesDiagram-TC7HE7FX-6TNRXJ6X.js b/src/frontend/web/von_interface/static/vendor/conversation-visuals/swimlanesDiagram-TC7HE7FX-6TNRXJ6X.js new file mode 100644 index 000000000..221e8f4b6 --- /dev/null +++ b/src/frontend/web/von_interface/static/vendor/conversation-visuals/swimlanesDiagram-TC7HE7FX-6TNRXJ6X.js @@ -0,0 +1,8 @@ +import{a as o,b as m}from"./chunk-7MD2P5DB.js";import"./chunk-QP3MATMC.js";import"./chunk-VNMAEQZK.js";import"./chunk-EQQJCVK6.js";import"./chunk-GDGZBOQC.js";import"./chunk-2AVNI7YL.js";import"./chunk-SNMBC6G5.js";import"./chunk-AKE2LJPJ.js";import"./chunk-NDMMOI35.js";import"./chunk-T4OFBIBR.js";import"./chunk-L56KSVJM.js";import"./chunk-TEBTVNCH.js";import"./chunk-HVVAQLXH.js";import"./chunk-IVPOI5SM.js";import"./chunk-O46DUOKR.js";import"./chunk-C7YISUMK.js";import"./chunk-6NDAIVIK.js";import"./chunk-EUYVSIXP.js";import"./chunk-QSTT4QQC.js";import"./chunk-S4JILX6U.js";import"./chunk-XEQL7KGA.js";import{a as r}from"./chunk-YUSHYV7C.js";import"./chunk-3RNHDNP5.js";var i=r(t=>`${o(t)} + .swimlane.cluster:not([data-color-id]) rect { + stroke: ${t.clusterBorder} !important; + } + [data-look="neo"].cluster rect { + filter: none; + } +`,"getStyles"),e=i,F=m({styles:e});export{F as diagram}; diff --git a/src/frontend/web/von_interface/static/vendor/conversation-visuals/timeline-definition-EJHVYXUP-ONBKEVWJ.js b/src/frontend/web/von_interface/static/vendor/conversation-visuals/timeline-definition-EJHVYXUP-ONBKEVWJ.js new file mode 100644 index 000000000..cd65a8651 --- /dev/null +++ b/src/frontend/web/von_interface/static/vendor/conversation-visuals/timeline-definition-EJHVYXUP-ONBKEVWJ.js @@ -0,0 +1,120 @@ +import{a as vt}from"./chunk-UED66XBH.js";import{c as wt,f as J}from"./chunk-6NDAIVIK.js";import{n as _t}from"./chunk-EUYVSIXP.js";import"./chunk-QSTT4QQC.js";import{$ as st,C as nt,Q as it,T as kt,U as bt,c as yt,d as mt,e as xt}from"./chunk-S4JILX6U.js";import{F as at,b as _,h as K}from"./chunk-XEQL7KGA.js";import{a as o,b as ft}from"./chunk-YUSHYV7C.js";import"./chunk-3RNHDNP5.js";var ot=(function(){var e=o(function(k,a,d,c){for(d=d||{},c=k.length;c--;d[k[c]]=a);return d},"o"),t=[6,11,13,14,15,17,19,20,23,24],i=[1,12],n=[1,13],r=[1,14],h=[1,15],l=[1,16],s=[1,19],y=[1,20],g={trace:o(function(){},"trace"),yy:{},symbols_:{error:2,start:3,timeline_header:4,document:5,EOF:6,timeline:7,timeline_lr:8,timeline_td:9,line:10,SPACE:11,statement:12,NEWLINE:13,title:14,acc_title:15,acc_title_value:16,acc_descr:17,acc_descr_value:18,acc_descr_multiline_value:19,section:20,period_statement:21,event_statement:22,period:23,event:24,$accept:0,$end:1},terminals_:{2:"error",6:"EOF",7:"timeline",8:"timeline_lr",9:"timeline_td",11:"SPACE",13:"NEWLINE",14:"title",15:"acc_title",16:"acc_title_value",17:"acc_descr",18:"acc_descr_value",19:"acc_descr_multiline_value",20:"section",23:"period",24:"event"},productions_:[0,[3,3],[4,1],[4,1],[4,1],[5,0],[5,2],[10,2],[10,1],[10,1],[10,1],[12,1],[12,2],[12,2],[12,1],[12,1],[12,1],[12,1],[21,1],[22,1]],performAction:o(function(a,d,c,p,m,u,w){var b=u.length-1;switch(m){case 1:return u[b-1];case 3:p.setDirection("LR");break;case 4:p.setDirection("TD");break;case 5:this.$=[];break;case 6:u[b-1].push(u[b]),this.$=u[b-1];break;case 7:case 8:this.$=u[b];break;case 9:case 10:this.$=[];break;case 11:p.getCommonDb().setDiagramTitle(u[b].substr(6)),this.$=u[b].substr(6);break;case 12:this.$=u[b].trim(),p.getCommonDb().setAccTitle(this.$);break;case 13:case 14:this.$=u[b].trim(),p.getCommonDb().setAccDescription(this.$);break;case 15:p.addSection(u[b].substr(8)),this.$=u[b].substr(8);break;case 18:p.addTask(u[b],0,""),this.$=u[b];break;case 19:p.addEvent(u[b].substr(2)),this.$=u[b];break}},"anonymous"),table:[{3:1,4:2,7:[1,3],8:[1,4],9:[1,5]},{1:[3]},e(t,[2,5],{5:6}),e(t,[2,2]),e(t,[2,3]),e(t,[2,4]),{6:[1,7],10:8,11:[1,9],12:10,13:[1,11],14:i,15:n,17:r,19:h,20:l,21:17,22:18,23:s,24:y},e(t,[2,10],{1:[2,1]}),e(t,[2,6]),{12:21,14:i,15:n,17:r,19:h,20:l,21:17,22:18,23:s,24:y},e(t,[2,8]),e(t,[2,9]),e(t,[2,11]),{16:[1,22]},{18:[1,23]},e(t,[2,14]),e(t,[2,15]),e(t,[2,16]),e(t,[2,17]),e(t,[2,18]),e(t,[2,19]),e(t,[2,7]),e(t,[2,12]),e(t,[2,13])],defaultActions:{},parseError:o(function(a,d){if(d.recoverable)this.trace(a);else{var c=new Error(a);throw c.hash=d,c}},"parseError"),parse:o(function(a){var d=this,c=[0],p=[],m=[null],u=[],w=this.table,b="",I=0,P=0,B=0,G=2,L=1,R=u.slice.call(arguments,1),E=Object.create(this.lexer),A={yy:{}};for(var V in this.yy)Object.prototype.hasOwnProperty.call(this.yy,V)&&(A.yy[V]=this.yy[V]);E.setInput(a,A.yy),A.yy.lexer=E,A.yy.parser=this,typeof E.yylloc>"u"&&(E.yylloc={});var D=E.yylloc;u.push(D);var $=E.options&&E.options.ranges;typeof A.yy.parseError=="function"?this.parseError=A.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function v(W){c.length=c.length-2*W,m.length=m.length-W,u.length=u.length-W}o(v,"popStack");function T(){var W;return W=p.pop()||E.lex()||L,typeof W!="number"&&(W instanceof Array&&(p=W,W=p.pop()),W=d.symbols_[W]||W),W}o(T,"lex");for(var S,H,M,N,et,Z,O={},j,F,gt,q;;){if(M=c[c.length-1],this.defaultActions[M]?N=this.defaultActions[M]:((S===null||typeof S>"u")&&(S=T()),N=w[M]&&w[M][S]),typeof N>"u"||!N.length||!N[0]){var rt="";q=[];for(j in w[M])this.terminals_[j]&&j>G&&q.push("'"+this.terminals_[j]+"'");E.showPosition?rt="Parse error on line "+(I+1)+`: +`+E.showPosition()+` +Expecting `+q.join(", ")+", got '"+(this.terminals_[S]||S)+"'":rt="Parse error on line "+(I+1)+": Unexpected "+(S==L?"end of input":"'"+(this.terminals_[S]||S)+"'"),this.parseError(rt,{text:E.match,token:this.terminals_[S]||S,line:E.yylineno,loc:D,expected:q})}if(N[0]instanceof Array&&N.length>1)throw new Error("Parse Error: multiple actions possible at state: "+M+", token: "+S);switch(N[0]){case 1:c.push(S),m.push(E.yytext),u.push(E.yylloc),c.push(N[1]),S=null,H?(S=H,H=null):(P=E.yyleng,b=E.yytext,I=E.yylineno,D=E.yylloc,B>0&&B--);break;case 2:if(F=this.productions_[N[1]][1],O.$=m[m.length-F],O._$={first_line:u[u.length-(F||1)].first_line,last_line:u[u.length-1].last_line,first_column:u[u.length-(F||1)].first_column,last_column:u[u.length-1].last_column},$&&(O._$.range=[u[u.length-(F||1)].range[0],u[u.length-1].range[1]]),Z=this.performAction.apply(O,[b,P,I,A.yy,N[1],m,u].concat(R)),typeof Z<"u")return Z;F&&(c=c.slice(0,-1*F*2),m=m.slice(0,-1*F),u=u.slice(0,-1*F)),c.push(this.productions_[N[1]][0]),m.push(O.$),u.push(O._$),gt=w[c[c.length-2]][c[c.length-1]],c.push(gt);break;case 3:return!0}}return!0},"parse")},x=(function(){var k={EOF:1,parseError:o(function(d,c){if(this.yy.parser)this.yy.parser.parseError(d,c);else throw new Error(d)},"parseError"),setInput:o(function(a,d){return this.yy=d||this.yy||{},this._input=a,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:o(function(){var a=this._input[0];this.yytext+=a,this.yyleng++,this.offset++,this.match+=a,this.matched+=a;var d=a.match(/(?:\r\n?|\n).*/g);return d?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),a},"input"),unput:o(function(a){var d=a.length,c=a.split(/(?:\r\n?|\n)/g);this._input=a+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-d),this.offset-=d;var p=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),c.length-1&&(this.yylineno-=c.length-1);var m=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:c?(c.length===p.length?this.yylloc.first_column:0)+p[p.length-c.length].length-c[0].length:this.yylloc.first_column-d},this.options.ranges&&(this.yylloc.range=[m[0],m[0]+this.yyleng-d]),this.yyleng=this.yytext.length,this},"unput"),more:o(function(){return this._more=!0,this},"more"),reject:o(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). +`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:o(function(a){this.unput(this.match.slice(a))},"less"),pastInput:o(function(){var a=this.matched.substr(0,this.matched.length-this.match.length);return(a.length>20?"...":"")+a.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:o(function(){var a=this.match;return a.length<20&&(a+=this._input.substr(0,20-a.length)),(a.substr(0,20)+(a.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:o(function(){var a=this.pastInput(),d=new Array(a.length+1).join("-");return a+this.upcomingInput()+` +`+d+"^"},"showPosition"),test_match:o(function(a,d){var c,p,m;if(this.options.backtrack_lexer&&(m={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(m.yylloc.range=this.yylloc.range.slice(0))),p=a[0].match(/(?:\r\n?|\n).*/g),p&&(this.yylineno+=p.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:p?p[p.length-1].length-p[p.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+a[0].length},this.yytext+=a[0],this.match+=a[0],this.matches=a,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(a[0].length),this.matched+=a[0],c=this.performAction.call(this,this.yy,this,d,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),c)return c;if(this._backtrack){for(var u in m)this[u]=m[u];return!1}return!1},"test_match"),next:o(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var a,d,c,p;this._more||(this.yytext="",this.match="");for(var m=this._currentRules(),u=0;ud[0].length)){if(d=c,p=u,this.options.backtrack_lexer){if(a=this.test_match(c,m[u]),a!==!1)return a;if(this._backtrack){d=!1;continue}else return!1}else if(!this.options.flex)break}return d?(a=this.test_match(d,m[p]),a!==!1?a:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text. +`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:o(function(){var d=this.next();return d||this.lex()},"lex"),begin:o(function(d){this.conditionStack.push(d)},"begin"),popState:o(function(){var d=this.conditionStack.length-1;return d>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:o(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:o(function(d){return d=this.conditionStack.length-1-Math.abs(d||0),d>=0?this.conditionStack[d]:"INITIAL"},"topState"),pushState:o(function(d){this.begin(d)},"pushState"),stateStackSize:o(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:o(function(d,c,p,m){var u=m;switch(p){case 0:break;case 1:break;case 2:return 13;case 3:break;case 4:break;case 5:return 8;case 6:return 9;case 7:return 7;case 8:return 14;case 9:return this.begin("acc_title"),15;break;case 10:return this.popState(),"acc_title_value";break;case 11:return this.begin("acc_descr"),17;break;case 12:return this.popState(),"acc_descr_value";break;case 13:this.begin("acc_descr_multiline");break;case 14:this.popState();break;case 15:return"acc_descr_multiline_value";case 16:return 20;case 17:return 24;case 18:return 23;case 19:return 6;case 20:return"INVALID"}},"anonymous"),rules:[/^(?:%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:#[^\n]*)/i,/^(?:timeline[ \t]+LR\b)/i,/^(?:timeline[ \t]+TD\b)/i,/^(?:timeline\b)/i,/^(?:title\s[^\n]+)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:section\s[^:\n]+)/i,/^(?::\s(?:[^:\n]|:(?!\s))+)/i,/^(?:[^#:\n]+)/i,/^(?:$)/i,/^(?:.)/i],conditions:{acc_descr_multiline:{rules:[14,15],inclusive:!1},acc_descr:{rules:[12],inclusive:!1},acc_title:{rules:[10],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7,8,9,11,13,16,17,18,19,20],inclusive:!0}}};return k})();g.lexer=x;function f(){this.yy={}}return o(f,"Parser"),f.prototype=g,g.Parser=f,new f})();ot.parser=ot;var Xt=ot,It={};ft(It,{addEvent:()=>Vt,addSection:()=>Rt,addTask:()=>Bt,addTaskOrg:()=>Ft,clear:()=>Mt,default:()=>Zt,getCommonDb:()=>Lt,getDirection:()=>Ct,getSections:()=>Wt,getTasks:()=>Pt,setDirection:()=>At});var U="",Ht=0,ct="LR",ht=[],Q=[],X=[],Lt=o(()=>kt,"getCommonDb"),Mt=o(function(){ht.length=0,Q.length=0,U="",X.length=0,ct="LR",bt()},"clear"),At=o(function(e){ct=e},"setDirection"),Ct=o(function(){return ct},"getDirection"),Rt=o(function(e){U=e,ht.push(e)},"addSection"),Wt=o(function(){return ht},"getSections"),Pt=o(function(){let e=St(),t=100,i=0;for(;!e&&ii.id===Ht-1).events.push(e)},"addEvent"),Ft=o(function(e){let t={section:U,type:U,description:e,task:e,classes:[]};Q.push(t)},"addTaskOrg"),St=o(function(){let e=o(function(i){return X[i].processed},"compileTask"),t=!0;for(let[i,n]of X.entries())e(i),t=t&&n.processed;return t},"compileTasks"),Zt={clear:Mt,getCommonDb:Lt,getDirection:Ct,setDirection:At,addSection:Rt,getSections:Wt,getTasks:Pt,addTask:Bt,addTaskOrg:Ft,addEvent:Vt},zt=0,Y=o(function(e,t){let i=e.append("rect");return i.attr("x",t.x),i.attr("y",t.y),i.attr("fill",t.fill),i.attr("stroke",t.stroke),i.attr("width",t.width),i.attr("height",t.height),i.attr("rx",t.rx),i.attr("ry",t.ry),t.class!==void 0&&i.attr("class",t.class),i},"drawRect"),jt=o(function(e,t){let n=e.append("circle").attr("cx",t.cx).attr("cy",t.cy).attr("class","face").attr("r",15).attr("stroke-width",2).attr("overflow","visible"),r=e.append("g");r.append("circle").attr("cx",t.cx-15/3).attr("cy",t.cy-15/3).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666"),r.append("circle").attr("cx",t.cx+15/3).attr("cy",t.cy-15/3).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666");function h(y){let g=at().startAngle(Math.PI/2).endAngle(3*(Math.PI/2)).innerRadius(7.5).outerRadius(6.8181818181818175);y.append("path").attr("class","mouth").attr("d",g).attr("transform","translate("+t.cx+","+(t.cy+2)+")")}o(h,"smile");function l(y){let g=at().startAngle(3*Math.PI/2).endAngle(5*(Math.PI/2)).innerRadius(7.5).outerRadius(6.8181818181818175);y.append("path").attr("class","mouth").attr("d",g).attr("transform","translate("+t.cx+","+(t.cy+7)+")")}o(l,"sad");function s(y){y.append("line").attr("class","mouth").attr("stroke",2).attr("x1",t.cx-5).attr("y1",t.cy+7).attr("x2",t.cx+5).attr("y2",t.cy+7).attr("class","mouth").attr("stroke-width","1px").attr("stroke","#666")}return o(s,"ambivalent"),t.score>3?h(r):t.score<3?l(r):s(r),n},"drawFace"),qt=o(function(e,t){let i=e.append("circle");return i.attr("cx",t.cx),i.attr("cy",t.cy),i.attr("class","actor-"+t.pos),i.attr("fill",t.fill),i.attr("stroke",t.stroke),i.attr("r",t.r),i.class!==void 0&&i.attr("class",i.class),t.title!==void 0&&i.append("title").text(t.title),i},"drawCircle"),Ot=o(function(e,t){let i=t.text.replace(//gi," "),n=e.append("text");n.attr("x",t.x),n.attr("y",t.y),n.attr("class","legend"),n.style("text-anchor",t.anchor),t.class!==void 0&&n.attr("class",t.class);let r=n.append("tspan");return r.attr("x",t.x+t.textMargin*2),r.text(i),n},"drawText"),Jt=o(function(e,t){function i(r,h,l,s,y){return r+","+h+" "+(r+l)+","+h+" "+(r+l)+","+(h+s-y)+" "+(r+l-y*1.2)+","+(h+s)+" "+r+","+(h+s)}o(i,"genPoints");let n=e.append("polygon");n.attr("points",i(t.x,t.y,50,20,7)),n.attr("class","labelBox"),t.y=t.y+t.labelMargin,t.x=t.x+.5*t.labelMargin,Ot(e,t)},"drawLabel"),Qt=o(function(e,t,i){let n=e.append("g"),r=dt();r.x=t.x,r.y=t.y,r.fill=t.fill,r.width=i.width,r.height=i.height,r.class="journey-section section-type-"+t.num,r.rx=3,r.ry=3,Y(n,r),Gt(i)(t.text,n,r.x,r.y,r.width,r.height,{class:"journey-section section-type-"+t.num},i,t.colour)},"drawSection"),lt=-1,Yt=o(function(e,t,i,n){let r=t.x+i.width/2,h=e.append("g");lt++,h.append("line").attr("id",n+"-task"+lt).attr("x1",r).attr("y1",t.y).attr("x2",r).attr("y2",450).attr("class","task-line").attr("stroke-width","1px").attr("stroke-dasharray","4 2").attr("stroke","#666"),jt(h,{cx:r,cy:300+(5-t.score)*30,score:t.score});let s=dt();s.x=t.x,s.y=t.y,s.fill=t.fill,s.width=i.width,s.height=i.height,s.class="task task-type-"+t.num,s.rx=3,s.ry=3,Y(h,s),Gt(i)(t.task,h,s.x,s.y,s.width,s.height,{class:"task"},i,t.colour)},"drawTask"),te=o(function(e,t){Y(e,{x:t.startx,y:t.starty,width:t.stopx-t.startx,height:t.stopy-t.starty,fill:t.fill,class:"rect"}).lower()},"drawBackgroundRect"),ee=o(function(){return{x:0,y:0,fill:void 0,"text-anchor":"start",width:100,height:100,textMargin:0,rx:0,ry:0}},"getTextObj"),dt=o(function(){return{x:0,y:0,width:100,anchor:"start",height:100,rx:0,ry:0}},"getNoteRect"),Gt=(function(){function e(r,h,l,s,y,g,x,f){let k=h.append("text").attr("x",l+y/2).attr("y",s+g/2+5).style("font-color",f).style("text-anchor","middle").text(r);n(k,x)}o(e,"byText");function t(r,h,l,s,y,g,x,f,k){let{taskFontSize:a,taskFontFamily:d}=f,c=r.split(//gi);for(let p=0;p)/).reverse(),r,h=[],l=1.1,s=i.attr("y"),y=parseFloat(i.attr("dy")),g=i.text(null).append("tspan").attr("x",0).attr("y",s).attr("dy",y+"em");for(let x=0;xt||r==="
    ")&&(h.pop(),g.text(h.join(" ").trim()),r==="
    "?h=[""]:h=[r],g=i.append("tspan").attr("x",0).attr("y",s).attr("dy",l+"em").text(r))})}o(ut,"wrap");var ne=o(function(e,t,i,n,r,h=!1){let{theme:l,look:s}=n,y=l?.includes("redux"),g=n?.themeVariables?.THEME_COLOR_LIMIT??12,x=i%g-1,f=e.append("g");t.section=x,f.attr("class",(t.class?t.class+" ":"")+"timeline-node "+("section-"+x));let k=f.append("g"),a=f.append("g"),c=a.append("text").text(t.descr).attr("dy","1em").attr("alignment-baseline","middle").attr("dominant-baseline","middle").attr("text-anchor","middle").call(ut,t.width).node().getBBox(),p=n.fontSize?.replace?n.fontSize.replace("px",""):n.fontSize;if(t.height=c.height+p*1.1*.5+t.padding,t.height=Math.max(t.height,t.maxHeight),t.width=t.width+2*t.padding,a.attr("transform","translate("+t.width/2+", "+t.padding/2+")"),y&&a.attr("transform",`translate(${t.width/2}, ${h?t.padding/2+3:t.padding})`),se(k,t,x,r,n),s==="neo"&&(f.attr("data-look","neo"),y)){let m=l.includes("dark"),u=e.node()?.ownerSVGElement??e.node(),w=K(u),b=w.attr("id")??"",I=b?`${b}-drop-shadow`:"drop-shadow";if(w.select(`#${I}`).empty()){let P=w.select("defs");(P.empty()?w.append("defs"):P).append("filter").attr("id",I).attr("height","130%").attr("width","130%").append("feDropShadow").attr("dx","4").attr("dy","4").attr("stdDeviation",0).attr("flood-opacity",m?"0.2":"0.06").attr("flood-color",m?"#FFFFFF":"#000000")}}return t},"drawNode"),ie=o(function(e,t,i){let n=e.append("g"),h=n.append("text").text(t.descr).attr("dy","1em").attr("alignment-baseline","middle").attr("dominant-baseline","middle").attr("text-anchor","middle").call(ut,t.width).node().getBBox(),l=i.fontSize?.replace?i.fontSize.replace("px",""):i.fontSize;return n.remove(),h.height+l*1.1*.5+t.padding},"getVirtualNodeHeight"),se=o(function(e,t,i,n,r){let{theme:h}=r,l=h?.includes("redux")?0:5,s=5,y=l>0?`M0 ${t.height-s} v${-t.height+2*s} q0,-${l},${l},-${l} h${t.width-2*s} q${l},0,${l},${l} v${t.height-s} H0 Z`:`M0 ${t.height-s} v${-(t.height-s)} h${t.width} v${t.height} H0 Z`;e.append("path").attr("id",n+"-node-"+zt++).attr("class","node-bkg node-"+t.type).attr("d",y),h?.includes("redux")||e.append("line").attr("class","node-line-"+i).attr("x1",0).attr("y1",t.height).attr("x2",t.width).attr("y2",t.height)},"defaultBkg"),C={drawRect:Y,drawCircle:qt,drawSection:Qt,drawText:Ot,drawLabel:Jt,drawTask:Yt,drawBackgroundRect:te,getTextObj:ee,getNoteRect:dt,initGraphics:re,drawNode:ne,getVirtualNodeHeight:ie},ae=o(function(e,t,i,n){let r=st(),{look:h,theme:l,themeVariables:s}=r,{useGradient:y,gradientStart:g,gradientStop:x}=s,f=r.timeline?.leftMargin??50;_.debug("timeline",n.db);let k=r.securityLevel,a;k==="sandbox"&&(a=K("#i"+t));let c=(k==="sandbox"?K(a.nodes()[0].contentDocument.body):K("body")).select("#"+t);c.append("g");let p=n.db.getTasks(),m=n.db.getCommonDb().getDiagramTitle();_.debug("task",p),C.initGraphics(c,t);let u=n.db.getSections();_.debug("sections",u);let w=0,b=0,I=0,P=0,B=50+f,G=50;P=50;let L=0,R=!0;u.forEach(function($){let v={number:L,descr:$,section:L,width:150,padding:20,maxHeight:w},T=C.getVirtualNodeHeight(c,v,r);_.debug("sectionHeight before draw",T),w=Math.max(w,T+20)});let E=0,A=0;_.debug("tasks.length",p.length);for(let[$,v]of p.entries()){let T={number:$,descr:v,section:v.section,width:150,padding:20,maxHeight:b},S=C.getVirtualNodeHeight(c,T,r);_.debug("taskHeight before draw",S),b=Math.max(b,S+20),E=Math.max(E,v.events.length);let H=0;for(let M of v.events){let N={descr:M,section:v.section,number:v.section,width:150,padding:20,maxHeight:50};H+=C.getVirtualNodeHeight(c,N,r)}v.events.length>0&&(H+=(v.events.length-1)*10),A=Math.max(A,H)}_.debug("maxSectionHeight before draw",w),_.debug("maxTaskHeight before draw",b),u&&u.length>0?u.forEach($=>{let v=p.filter(M=>M.section===$),T={number:L,descr:$,section:L,width:200*Math.max(v.length,1)-50,padding:20,maxHeight:w};_.debug("sectionNode",T);let S=c.append("g"),H=C.drawNode(S,T,L,r,t);_.debug("sectionNode output",H),S.attr("transform",`translate(${B}, ${P})`),G+=w+50,v.length>0&&Et(c,v,L,B,G,b,r,E,A,w,!1,t),B+=200*Math.max(v.length,1),G=P,L++}):(R=!1,Et(c,p,L,B,G,b,r,E,A,w,!0,t));let V=c.node().getBBox();if(_.debug("bounds",V),m&&c.append("text").text(m).attr("x",h==="neo"?V.x*2+f:V.width/2-f).attr("font-size","4ex").attr("font-weight","bold").attr("y",20),I=R?w+b+150:b+100,c.append("g").attr("class","lineWrapper").append("line").attr("x1",f).attr("y1",I).attr("x2",V.width+3*f).attr("y2",I).attr("stroke-width",4).attr("stroke","black").attr("marker-end",`url(#${t}-arrowhead)`),h==="neo"&&y&&l!=="neutral"){let $=c.select("defs"),T=($.empty()?c.append("defs"):$).append("linearGradient").attr("id",c.attr("id")+"-gradient").attr("gradientUnits","objectBoundingBox").attr("x1","0%").attr("y1","0%").attr("x2","100%").attr("y2","0%");T.append("stop").attr("offset","0%").attr("stop-color",g).attr("stop-opacity",1),T.append("stop").attr("offset","100%").attr("stop-color",x).attr("stop-opacity",1)}it(void 0,c,r.timeline?.padding??50,r.timeline?.useMaxWidth??!1)},"draw"),Et=o(function(e,t,i,n,r,h,l,s,y,g,x,f){for(let k of t){let a={descr:k.task,section:i,number:i,width:150,padding:20,maxHeight:h};_.debug("taskNode",a);let d=e.append("g").attr("class","taskWrapper"),p=C.drawNode(d,a,i,l,f).height;if(_.debug("taskHeight after draw",p),d.attr("transform",`translate(${n}, ${r})`),h=Math.max(h,p),k.events){let m=e.append("g").attr("class","lineWrapper"),u=h;r+=100,u=u+oe(e,k.events,i,n,r,l,f),r-=100,m.append("line").attr("x1",n+190/2).attr("y1",r+h).attr("x2",n+190/2).attr("y2",r+h+100+y+100).attr("stroke-width",2).attr("stroke","black").attr("marker-end",`url(#${f}-arrowhead)`).attr("stroke-dasharray","5,5")}n=n+200,x&&!l.timeline?.disableMulticolor&&i++}r=r-10},"drawTasks"),oe=o(function(e,t,i,n,r,h,l){let s=0,y=r;r=r+100;for(let g of t){let x={descr:g,section:i,number:i,width:150,padding:20,maxHeight:50};_.debug("eventNode",x);let f=e.append("g").attr("class","eventWrapper"),a=C.drawNode(f,x,i,h,l,!0).height;s=s+a,f.attr("transform",`translate(${n}, ${r})`),r=r+10+a}return r=y,s},"drawEvents"),le={setConf:o(()=>{},"setConf"),draw:ae},tt=200,z=5,ce=tt+z*2,pt=tt+100,he=pt+z*2,Dt=10,de=0,Tt=20,Kt=20,$t=30,Ut=50,ue=o(function(e,t,i,n){let r=st(),h=r.timeline?.leftMargin??50;_.debug("timeline",n.db);let l=vt(t);l.append("g");let s=n.db.getTasks(),y=n.db.getCommonDb().getDiagramTitle();_.debug("task",s),C.initGraphics(l);let g=n.db.getSections();_.debug("sections",g);let x=0,f=0,k=50+h,a=50,d=a,c=k,p=ce+Kt,m=he+Ut,u=c+p,w=0,b=g&&g.length>0,I=b?u:k+p,P=Math.max(50,p+m-z*2);g.forEach(function($){let v={number:w,descr:$,section:w,width:P,padding:z,maxHeight:x},T=C.getVirtualNodeHeight(l,v,r);_.debug("sectionHeight before draw",T),x=Math.max(x,T)});let B=0;_.debug("tasks.length",s.length);for(let[$,v]of s.entries()){let T={number:$,descr:v,section:v.section,width:tt,padding:z,maxHeight:f},S=C.getVirtualNodeHeight(l,T,r);_.debug("taskHeight before draw",S),f=Math.max(f,S);let H=0;for(let M of v.events){let N={descr:M,section:v.section,number:v.section,width:pt,padding:z,maxHeight:50};H+=C.getVirtualNodeHeight(l,N,r)}v.events.length>0&&(H+=(v.events.length-1)*Dt),B=Math.max(B,H)+de}_.debug("maxSectionHeight before draw",x),_.debug("maxTaskHeight before draw",f);let L=Math.max(f,B)+$t;b?g.forEach($=>{let v=s.filter(O=>O.section===$),T={number:w,descr:$,section:w,width:P,padding:z,maxHeight:x};_.debug("sectionNode",T);let S=l.append("g"),H=C.drawNode(S,T,w,r);_.debug("sectionNode output",H);let M=I-p;S.attr("transform",`translate(${M}, ${a})`);let N=a+H.height+Tt;v.length>0&&Nt(l,v,w,I,N,f,r,L,!1);let et=v.length,Z=H.height+Tt+L*Math.max(et,1)-(et>0?$t*2:0);a+=Z,w++}):Nt(l,s,w,I,a,f,r,L,!0);let R=l.node()?.getBBox();if(!R)throw new Error("bbox not found");if(_.debug("bounds",R),y){if(l.append("text").text(y).attr("x",R.width/2-h).attr("font-size","4ex").attr("font-weight","bold").attr("y",20),R=l.node()?.getBBox(),!R)throw new Error("bbox not found");_.debug("bounds after title",R)}let[E]=_t(r.fontSize),A=(E??16)*2,V=(E??16)*.5+20,D=l.append("g").attr("class","lineWrapper");D.append("line").attr("x1",I).attr("y1",d-A).attr("x2",I).attr("y2",R.y+R.height+V).attr("stroke-width",4).attr("stroke","black").attr("marker-end","url(#arrowhead)"),D.lower(),it(void 0,l,r.timeline?.padding??50,r.timeline?.useMaxWidth??!1)},"draw"),Nt=o(function(e,t,i,n,r,h,l,s,y){for(let g of t){let x={descr:g.task,section:i,number:i,width:tt,padding:z,maxHeight:h};_.debug("taskNode",x);let f=e.append("g").attr("class","taskWrapper"),k=C.drawNode(f,x,i,l),a=k.height;_.debug("taskHeight after draw",a);let d=n-Kt-k.width;if(f.attr("transform",`translate(${d}, ${r})`),h=Math.max(h,a),g.events&&g.events.length>0){let c=r,p=n+Ut;pe(e,g.events,i,n,p,c,l)}r=r+s,y&&!l.timeline?.disableMulticolor&&i++}},"drawTasks"),pe=o(function(e,t,i,n,r,h,l){let s=h;for(let y of t){let g={descr:y,section:i,number:i,width:pt,padding:z,maxHeight:0};_.debug("eventNode",g);let x=e.append("g").attr("class","eventWrapper"),k=C.drawNode(x,g,i,l).height;x.attr("transform",`translate(${r}, ${s})`);let a=e.append("g").attr("class","lineWrapper"),d=s+k/2;a.append("line").attr("x1",n).attr("y1",d).attr("x2",r).attr("y2",d).attr("stroke-width",2).attr("stroke","black").attr("marker-end","url(#arrowhead)").attr("stroke-dasharray","5,5"),s=s+k+Dt}return s-h},"drawEvents"),ge={setConf:o(()=>{},"setConf"),draw:ue},fe=o(e=>{let{theme:t}=nt(),i=t?.includes("dark"),n=wt(t,e.borderColorArray),r=e.svgId?.replace(/^#/,"")??"",h=r?`url(#${r}-drop-shadow)`:e.dropShadow??"none",l="";for(let s=0;s{let t="",i=J(e.THEME_COLOR_LIMIT);for(let n=0;n{let{theme:t}=nt(),i=t?.includes("redux"),n=t==="neutral",r=e.svgId?.replace(/^#/,"")??"",h="";if(e.useGradient&&r&&e.THEME_COLOR_LIMIT&&!n){let l=J(e.THEME_COLOR_LIMIT);for(let s=0;s{},"setConf"),draw:o((e,t,i,n)=>(n?.db?.getDirection?.()??"LR")==="TD"?ge.draw(e,t,i,n):le.draw(e,t,i,n),"draw")},Ie={db:It,renderer:ke,parser:Xt,styles:xe};export{Ie as diagram}; diff --git a/src/frontend/web/von_interface/static/vendor/conversation-visuals/treeView-Q6P3EWNA-RMEGL7WK.js b/src/frontend/web/von_interface/static/vendor/conversation-visuals/treeView-Q6P3EWNA-RMEGL7WK.js new file mode 100644 index 000000000..5075c66cb --- /dev/null +++ b/src/frontend/web/von_interface/static/vendor/conversation-visuals/treeView-Q6P3EWNA-RMEGL7WK.js @@ -0,0 +1 @@ +import{a as e,b as r}from"./chunk-KVFXNR4L.js";import"./chunk-RVPSGR2P.js";import"./chunk-3RNHDNP5.js";export{e as TreeViewModule,r as createTreeViewServices}; diff --git a/src/frontend/web/von_interface/static/vendor/conversation-visuals/treemap-WGGIJYW6-5QPLLXVN.js b/src/frontend/web/von_interface/static/vendor/conversation-visuals/treemap-WGGIJYW6-5QPLLXVN.js new file mode 100644 index 000000000..5b5f74495 --- /dev/null +++ b/src/frontend/web/von_interface/static/vendor/conversation-visuals/treemap-WGGIJYW6-5QPLLXVN.js @@ -0,0 +1 @@ +import{a as e,b as r}from"./chunk-ZFFKTRVX.js";import"./chunk-RVPSGR2P.js";import"./chunk-3RNHDNP5.js";export{e as TreemapModule,r as createTreemapServices}; diff --git a/src/frontend/web/von_interface/static/vendor/conversation-visuals/usecaseDiagram-POWQR4AR-XGET4QMZ.js b/src/frontend/web/von_interface/static/vendor/conversation-visuals/usecaseDiagram-POWQR4AR-XGET4QMZ.js new file mode 100644 index 000000000..981ed7f81 --- /dev/null +++ b/src/frontend/web/von_interface/static/vendor/conversation-visuals/usecaseDiagram-POWQR4AR-XGET4QMZ.js @@ -0,0 +1,370 @@ +import{a as fi}from"./chunk-VNMAEQZK.js";import{a as mi}from"./chunk-EQQJCVK6.js";import{b as di,c as pi}from"./chunk-2AVNI7YL.js";import"./chunk-SNMBC6G5.js";import{B as ui,C as T,D as ie,E as U,F,G as sn,H as O,I as Ie,J as ce,P as Te,S as q,T as Je,V as rs,Y as kt,a as X,b as ci,c as hi,d as xe,e as J,g as Me,h as se,i as Q,j as M,l as Ue,n as Ot,o as Xe,p as ve,q as H,r as Ve,s as E,t as oe,u as le,v as we,w as ne,x as m,y as fe}from"./chunk-JYJEQ7QO.js";import"./chunk-AKE2LJPJ.js";import"./chunk-NDMMOI35.js";import"./chunk-T4OFBIBR.js";import"./chunk-TEBTVNCH.js";import"./chunk-HVVAQLXH.js";import"./chunk-IVPOI5SM.js";import{b as ri}from"./chunk-O46DUOKR.js";import"./chunk-C7YISUMK.js";import{b as ai,c as oi,d as ot,e as li}from"./chunk-6NDAIVIK.js";import{p as ii}from"./chunk-EUYVSIXP.js";import"./chunk-QSTT4QQC.js";import{$ as tn,C as Zn,I as Qn,U as ei,V as ns,W as Qs,X as is,Y as en,Z as ti,_ as si,r as qn}from"./chunk-S4JILX6U.js";import{b as Jn,h as ni}from"./chunk-XEQL7KGA.js";import{a as c}from"./chunk-YUSHYV7C.js";import"./chunk-3RNHDNP5.js";function lt(t){console&&console.error&&console.error(`Error: ${t}`)}function Ct(t){console&&console.warn&&console.warn(`Warning: ${t}`)}function xt(t){let e=new Date().getTime(),s=t();return{time:new Date().getTime()-e,value:s}}function vt(t){function e(){}e.prototype=t;let s=new e;function n(){return typeof s.bar}return n(),n(),t;(0,eval)(t)}function Oa(t){return ka(t)?t.LABEL:t.name}function ka(t){return ie(t.LABEL)&&t.LABEL!==""}var ge=class{get definition(){return this._definition}set definition(e){this._definition=e}constructor(e){this._definition=e}accept(e){e.visit(this),E(this.definition,s=>{s.accept(e)})}},_=class extends ge{constructor(e){super([]),this.idx=1,se(this,Te(e,s=>s!==void 0))}set definition(e){}get definition(){return this.referencedRule!==void 0?this.referencedRule.definition:[]}accept(e){e.visit(this)}},he=class extends ge{constructor(e){super(e.definition),this.orgText="",se(this,Te(e,s=>s!==void 0))}},b=class extends ge{constructor(e){super(e.definition),this.ignoreAmbiguities=!1,se(this,Te(e,s=>s!==void 0))}},w=class extends ge{constructor(e){super(e.definition),this.idx=1,se(this,Te(e,s=>s!==void 0))}},j=class extends ge{constructor(e){super(e.definition),this.idx=1,se(this,Te(e,s=>s!==void 0))}},z=class extends ge{constructor(e){super(e.definition),this.idx=1,se(this,Te(e,s=>s!==void 0))}},v=class extends ge{constructor(e){super(e.definition),this.idx=1,se(this,Te(e,s=>s!==void 0))}},G=class extends ge{constructor(e){super(e.definition),this.idx=1,se(this,Te(e,s=>s!==void 0))}},W=class extends ge{get definition(){return this._definition}set definition(e){this._definition=e}constructor(e){super(e.definition),this.idx=1,this.ignoreAmbiguities=!1,this.hasPredicates=!1,se(this,Te(e,s=>s!==void 0))}},k=class{constructor(e){this.idx=1,se(this,Te(e,s=>s!==void 0))}accept(e){e.visit(this)}};function as(t){return m(t,ct)}function ct(t){function e(s){return m(s,ct)}if(t instanceof _){let s={type:"NonTerminal",name:t.nonTerminalName,idx:t.idx};return ie(t.label)&&(s.label=t.label),s}else{if(t instanceof b)return{type:"Alternative",definition:e(t.definition)};if(t instanceof w)return{type:"Option",idx:t.idx,definition:e(t.definition)};if(t instanceof j)return{type:"RepetitionMandatory",idx:t.idx,definition:e(t.definition)};if(t instanceof z)return{type:"RepetitionMandatoryWithSeparator",idx:t.idx,separator:ct(new k({terminalType:t.separator})),definition:e(t.definition)};if(t instanceof G)return{type:"RepetitionWithSeparator",idx:t.idx,separator:ct(new k({terminalType:t.separator})),definition:e(t.definition)};if(t instanceof v)return{type:"Repetition",idx:t.idx,definition:e(t.definition)};if(t instanceof W)return{type:"Alternation",idx:t.idx,definition:e(t.definition)};if(t instanceof k){let s={type:"Terminal",name:t.terminalType.name,label:Oa(t.terminalType),idx:t.idx};ie(t.label)&&(s.terminalLabel=t.label);let n=t.terminalType.PATTERN;return t.terminalType.PATTERN&&(s.pattern=Ie(n)?n.source:n),s}else{if(t instanceof he)return{type:"Rule",name:t.name,orgText:t.orgText,definition:e(t.definition)};throw Error("non exhaustive match")}}}var ue=class{visit(e){let s=e;switch(s.constructor){case _:return this.visitNonTerminal(s);case b:return this.visitAlternative(s);case w:return this.visitOption(s);case j:return this.visitRepetitionMandatory(s);case z:return this.visitRepetitionMandatoryWithSeparator(s);case G:return this.visitRepetitionWithSeparator(s);case v:return this.visitRepetition(s);case W:return this.visitAlternation(s);case k:return this.visitTerminal(s);case he:return this.visitRule(s);default:throw Error("non exhaustive match")}}visitNonTerminal(e){}visitAlternative(e){}visitOption(e){}visitRepetition(e){}visitRepetitionMandatory(e){}visitRepetitionMandatoryWithSeparator(e){}visitRepetitionWithSeparator(e){}visitAlternation(e){}visitTerminal(e){}visitRule(e){}};function nn(t){return t instanceof b||t instanceof w||t instanceof v||t instanceof j||t instanceof z||t instanceof G||t instanceof k||t instanceof he}function qe(t,e=[]){return t instanceof w||t instanceof v||t instanceof G?!0:t instanceof W?rs(t.definition,n=>qe(n,e)):t instanceof _&&F(e,t)?!1:t instanceof ge?(t instanceof _&&e.push(t),oe(t.definition,n=>qe(n,e))):!1}function rn(t){return t instanceof W}function me(t){if(t instanceof _)return"SUBRULE";if(t instanceof w)return"OPTION";if(t instanceof W)return"OR";if(t instanceof j)return"AT_LEAST_ONE";if(t instanceof z)return"AT_LEAST_ONE_SEP";if(t instanceof G)return"MANY_SEP";if(t instanceof v)return"MANY";if(t instanceof k)return"CONSUME";throw Error("non exhaustive match")}var Pe=class{walk(e,s=[]){E(e.definition,(n,i)=>{let r=H(e.definition,i+1);if(n instanceof _)this.walkProdRef(n,r,s);else if(n instanceof k)this.walkTerminal(n,r,s);else if(n instanceof b)this.walkFlat(n,r,s);else if(n instanceof w)this.walkOption(n,r,s);else if(n instanceof j)this.walkAtLeastOne(n,r,s);else if(n instanceof z)this.walkAtLeastOneSep(n,r,s);else if(n instanceof G)this.walkManySep(n,r,s);else if(n instanceof v)this.walkMany(n,r,s);else if(n instanceof W)this.walkOr(n,r,s);else throw Error("non exhaustive match")})}walkTerminal(e,s,n){}walkProdRef(e,s,n){}walkFlat(e,s,n){let i=s.concat(n);this.walk(e,i)}walkOption(e,s,n){let i=s.concat(n);this.walk(e,i)}walkAtLeastOne(e,s,n){let i=[new w({definition:e.definition})].concat(s,n);this.walk(e,i)}walkAtLeastOneSep(e,s,n){let i=Ei(e,s,n);this.walk(e,i)}walkMany(e,s,n){let i=[new w({definition:e.definition})].concat(s,n);this.walk(e,i)}walkManySep(e,s,n){let i=Ei(e,s,n);this.walk(e,i)}walkOr(e,s,n){let i=s.concat(n);E(e.definition,r=>{let o=new b({definition:[r]});this.walk(o,i)})}};function Ei(t,e,s){return[new w({definition:[new k({terminalType:t.separator})].concat(t.definition)})].concat(e,s)}function Ze(t){if(t instanceof _)return Ze(t.referencedRule);if(t instanceof k)return va(t);if(nn(t))return Ca(t);if(rn(t))return xa(t);throw Error("non exhaustive match")}function Ca(t){let e=[],s=t.definition,n=0,i=s.length>n,r,o=!0;for(;i&&o;)r=s[n],o=qe(r),e=e.concat(Ze(r)),n=n+1,i=s.length>n;return kt(e)}function xa(t){let e=m(t.definition,s=>Ze(s));return kt(Q(e))}function va(t){return[t.terminalType]}var os="_~IN~_";var an=class extends Pe{constructor(e){super(),this.topProd=e,this.follows={}}startWalking(){return this.walk(this.topProd),this.follows}walkTerminal(e,s,n){}walkProdRef(e,s,n){let i=_a(e.referencedRule,e.idx)+this.topProd.name,r=s.concat(n),o=new b({definition:r}),l=Ze(o);this.follows[i]=l}};function Ti(t){let e={};return E(t,s=>{let n=new an(s).startWalking();se(e,n)}),e}function _a(t,e){return t.name+e+os}function L(t){return t.charCodeAt(0)}function ls(t,e){Array.isArray(t)?t.forEach(function(s){e.push(s)}):e.push(t)}function ht(t,e){if(t[e]===!0)throw"duplicate flag "+e;let s=t[e];t[e]=!0}function Qe(t){if(t===void 0)throw Error("Internal Error - Should never get here!");return!0}function _t(){throw Error("Internal Error - Should never get here!")}function on(t){return t.type==="Character"}var bt=[];for(let t=L("0");t<=L("9");t++)bt.push(t);var Mt=[L("_")].concat(bt);for(let t=L("a");t<=L("z");t++)Mt.push(t);for(let t=L("A");t<=L("Z");t++)Mt.push(t);var ln=[L(" "),L("\f"),L(` +`),L("\r"),L(" "),L("\v"),L(" "),L("\xA0"),L("\u1680"),L("\u2000"),L("\u2001"),L("\u2002"),L("\u2003"),L("\u2004"),L("\u2005"),L("\u2006"),L("\u2007"),L("\u2008"),L("\u2009"),L("\u200A"),L("\u2028"),L("\u2029"),L("\u202F"),L("\u205F"),L("\u3000"),L("\uFEFF")];var ba=/[0-9a-fA-F]/,cs=/[0-9]/,Ma=/[1-9]/,Ut=class{constructor(){this.idx=0,this.input="",this.groupIdx=0}saveState(){return{idx:this.idx,input:this.input,groupIdx:this.groupIdx}}restoreState(e){this.idx=e.idx,this.input=e.input,this.groupIdx=e.groupIdx}pattern(e){this.idx=0,this.input=e,this.groupIdx=0,this.consumeChar("/");let s=this.disjunction();this.consumeChar("/");let n={type:"Flags",loc:{begin:this.idx,end:e.length},global:!1,ignoreCase:!1,multiLine:!1,unicode:!1,sticky:!1};for(;this.isRegExpFlag();)switch(this.popChar()){case"g":ht(n,"global");break;case"i":ht(n,"ignoreCase");break;case"m":ht(n,"multiLine");break;case"u":ht(n,"unicode");break;case"y":ht(n,"sticky");break}if(this.idx!==this.input.length)throw Error("Redundant input: "+this.input.substring(this.idx));return{type:"Pattern",flags:n,value:s,loc:this.loc(0)}}disjunction(){let e=[],s=this.idx;for(e.push(this.alternative());this.peekChar()==="|";)this.consumeChar("|"),e.push(this.alternative());return{type:"Disjunction",value:e,loc:this.loc(s)}}alternative(){let e=[],s=this.idx;for(;this.isTerm();)e.push(this.term());return{type:"Alternative",value:e,loc:this.loc(s)}}term(){return this.isAssertion()?this.assertion():this.atom()}assertion(){let e=this.idx;switch(this.popChar()){case"^":return{type:"StartAnchor",loc:this.loc(e)};case"$":return{type:"EndAnchor",loc:this.loc(e)};case"\\":switch(this.popChar()){case"b":return{type:"WordBoundary",loc:this.loc(e)};case"B":return{type:"NonWordBoundary",loc:this.loc(e)}}throw Error("Invalid Assertion Escape");case"(":this.consumeChar("?");let s;switch(this.popChar()){case"=":s="Lookahead";break;case"!":s="NegativeLookahead";break;case"<":{switch(this.popChar()){case"=":s="Lookbehind";break;case"!":s="NegativeLookbehind"}break}}Qe(s);let n=this.disjunction();return this.consumeChar(")"),{type:s,value:n,loc:this.loc(e)}}return _t()}quantifier(e=!1){let s,n=this.idx;switch(this.popChar()){case"*":s={atLeast:0,atMost:1/0};break;case"+":s={atLeast:1,atMost:1/0};break;case"?":s={atLeast:0,atMost:1};break;case"{":let i=this.integerIncludingZero();switch(this.popChar()){case"}":s={atLeast:i,atMost:i};break;case",":let r;this.isDigit()?(r=this.integerIncludingZero(),s={atLeast:i,atMost:r}):s={atLeast:i,atMost:1/0},this.consumeChar("}");break}if(e===!0&&s===void 0)return;Qe(s);break}if(!(e===!0&&s===void 0)&&Qe(s))return this.peekChar(0)==="?"?(this.consumeChar("?"),s.greedy=!1):s.greedy=!0,s.type="Quantifier",s.loc=this.loc(n),s}atom(){let e,s=this.idx;switch(this.peekChar()){case".":e=this.dotAll();break;case"\\":e=this.atomEscape();break;case"[":e=this.characterClass();break;case"(":e=this.group();break}return e===void 0&&this.isPatternCharacter()&&(e=this.patternCharacter()),Qe(e)?(e.loc=this.loc(s),this.isQuantifier()&&(e.quantifier=this.quantifier()),e):_t()}dotAll(){return this.consumeChar("."),{type:"Set",complement:!0,value:[L(` +`),L("\r"),L("\u2028"),L("\u2029")]}}atomEscape(){switch(this.consumeChar("\\"),this.peekChar()){case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":return this.decimalEscapeAtom();case"d":case"D":case"s":case"S":case"w":case"W":return this.characterClassEscape();case"f":case"n":case"r":case"t":case"v":return this.controlEscapeAtom();case"c":return this.controlLetterEscapeAtom();case"0":return this.nulCharacterAtom();case"x":return this.hexEscapeSequenceAtom();case"u":return this.regExpUnicodeEscapeSequenceAtom();default:return this.identityEscapeAtom()}}decimalEscapeAtom(){return{type:"GroupBackReference",value:this.positiveInteger()}}characterClassEscape(){let e,s=!1;switch(this.popChar()){case"d":e=bt;break;case"D":e=bt,s=!0;break;case"s":e=ln;break;case"S":e=ln,s=!0;break;case"w":e=Mt;break;case"W":e=Mt,s=!0;break}return Qe(e)?{type:"Set",value:e,complement:s}:_t()}controlEscapeAtom(){let e;switch(this.popChar()){case"f":e=L("\f");break;case"n":e=L(` +`);break;case"r":e=L("\r");break;case"t":e=L(" ");break;case"v":e=L("\v");break}return Qe(e)?{type:"Character",value:e}:_t()}controlLetterEscapeAtom(){this.consumeChar("c");let e=this.popChar();if(/[a-zA-Z]/.test(e)===!1)throw Error("Invalid ");return{type:"Character",value:e.toUpperCase().charCodeAt(0)-64}}nulCharacterAtom(){return this.consumeChar("0"),{type:"Character",value:L("\0")}}hexEscapeSequenceAtom(){return this.consumeChar("x"),this.parseHexDigits(2)}regExpUnicodeEscapeSequenceAtom(){return this.consumeChar("u"),this.parseHexDigits(4)}identityEscapeAtom(){let e=this.popChar();return{type:"Character",value:L(e)}}classPatternCharacterAtom(){switch(this.peekChar()){case` +`:case"\r":case"\u2028":case"\u2029":case"\\":case"]":throw Error("TBD");default:let e=this.popChar();return{type:"Character",value:L(e)}}}characterClass(){let e=[],s=!1;for(this.consumeChar("["),this.peekChar(0)==="^"&&(this.consumeChar("^"),s=!0);this.isClassAtom();){let n=this.classAtom(),i=n.type==="Character";if(on(n)&&this.isRangeDash()){this.consumeChar("-");let r=this.classAtom(),o=r.type==="Character";if(on(r)){if(r.value=this.input.length)throw Error("Unexpected end of input");this.idx++}loc(e){return{begin:e,end:this.idx}}};var je=class{visitChildren(e){for(let s in e){let n=e[s];e.hasOwnProperty(s)&&(n.type!==void 0?this.visit(n):Array.isArray(n)&&n.forEach(i=>{this.visit(i)},this))}}visit(e){switch(e.type){case"Pattern":this.visitPattern(e);break;case"Flags":this.visitFlags(e);break;case"Disjunction":this.visitDisjunction(e);break;case"Alternative":this.visitAlternative(e);break;case"StartAnchor":this.visitStartAnchor(e);break;case"EndAnchor":this.visitEndAnchor(e);break;case"WordBoundary":this.visitWordBoundary(e);break;case"NonWordBoundary":this.visitNonWordBoundary(e);break;case"Lookahead":this.visitLookahead(e);break;case"NegativeLookahead":this.visitNegativeLookahead(e);break;case"Lookbehind":this.visitLookbehind(e);break;case"NegativeLookbehind":this.visitNegativeLookbehind(e);break;case"Character":this.visitCharacter(e);break;case"Set":this.visitSet(e);break;case"Group":this.visitGroup(e);break;case"GroupBackReference":this.visitGroupBackReference(e);break;case"Quantifier":this.visitQuantifier(e);break}this.visitChildren(e)}visitPattern(e){}visitFlags(e){}visitDisjunction(e){}visitAlternative(e){}visitStartAnchor(e){}visitEndAnchor(e){}visitWordBoundary(e){}visitNonWordBoundary(e){}visitLookahead(e){}visitNegativeLookahead(e){}visitLookbehind(e){}visitNegativeLookbehind(e){}visitCharacter(e){}visitSet(e){}visitGroup(e){}visitGroupBackReference(e){}visitQuantifier(e){}};var hs={},Ua=new Ut;function ut(t){let e=t.toString();if(hs.hasOwnProperty(e))return hs[e];{let s=Ua.pattern(e);return hs[e]=s,s}}function gi(){hs={}}var Si="Complement Sets are not supported for first char optimization",wt=`Unable to use "first char" lexer optimizations: +`;function yi(t,e=!1){try{let s=ut(t);return cn(s.value,{},s.flags.ignoreCase)}catch(s){if(s.message===Si)e&&Ct(`${wt} Unable to optimize: < ${t.toString()} > + Complement Sets cannot be automatically optimized. + This will disable the lexer's first char optimizations. + See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#COMPLEMENT for details.`);else{let n="";e&&(n=` + This will disable the lexer's first char optimizations. + See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#REGEXP_PARSING for details.`),lt(`${wt} + Failed parsing: < ${t.toString()} > + Using the @chevrotain/regexp-to-ast library + Please open an issue at: https://github.com/chevrotain/chevrotain/issues`+n)}}return[]}function cn(t,e,s){switch(t.type){case"Disjunction":for(let i=0;i{if(typeof a=="number")us(a,e,s);else{let h=a;if(s===!0)for(let d=h.from;d<=h.to;d++)us(d,e,s);else{for(let d=h.from;d<=h.to&&d=dt){let d=h.from>=dt?h.from:dt,u=h.to,p=_e(d),S=_e(u);for(let N=p;N<=S;N++)e[N]=N}}}});break;case"Group":cn(o.value,e,s);break;default:throw Error("Non Exhaustive Match")}let l=o.quantifier!==void 0&&o.quantifier.atLeast===0;if(o.type==="Group"&&hn(o)===!1||o.type!=="Group"&&l===!1)break}break;default:throw Error("non exhaustive match!")}return U(e)}function us(t,e,s){let n=_e(t);e[n]=n,s===!0&&wa(t,e)}function wa(t,e){let s=String.fromCharCode(t),n=s.toUpperCase();if(n!==s){let i=_e(n.charCodeAt(0));e[i]=i}else{let i=s.toLowerCase();if(i!==s){let r=_e(i.charCodeAt(0));e[r]=r}}}function Ai(t,e){return we(t.value,s=>{if(typeof s=="number")return F(e,s);{let n=s;return we(e,i=>n.from<=i&&i<=n.to)!==void 0}})}function hn(t){let e=t.quantifier;return e&&e.atLeast===0?!0:t.value?X(t.value)?oe(t.value,hn):hn(t.value):!1}var un=class extends je{constructor(e){super(),this.targetCharCodes=e,this.found=!1}visitChildren(e){if(this.found!==!0){switch(e.type){case"Lookahead":this.visitLookahead(e);return;case"NegativeLookahead":this.visitNegativeLookahead(e);return;case"Lookbehind":this.visitLookbehind(e);return;case"NegativeLookbehind":this.visitNegativeLookbehind(e);return}super.visitChildren(e)}}visitCharacter(e){F(this.targetCharCodes,e.value)&&(this.found=!0)}visitSet(e){e.complement?Ai(e,this.targetCharCodes)===void 0&&(this.found=!0):Ai(e,this.targetCharCodes)!==void 0&&(this.found=!0)}};function ds(t,e){if(e instanceof RegExp){let s=ut(e),n=new un(t);return n.visit(s),n.found}else return we(e,s=>F(t,s.charCodeAt(0)))!==void 0}var et="PATTERN",pt="defaultMode",ps="modes";function Li(t,e){e=Ot(e,{debug:!1,safeMode:!1,positionTracking:"full",lineTerminatorCharacters:["\r",` +`],tracer:(A,f)=>f()});let s=e.tracer;s("initCharCodeToOptimizedIndexMap",()=>{eo()});let n;s("Reject Lexer.NA",()=>{n=Je(t,A=>A[et]===D.NA)});let i=!1,r;s("Transform Patterns",()=>{i=!1,r=m(n,A=>{let f=A[et];if(Ie(f)){let g=f.source;return g.length===1&&g!=="^"&&g!=="$"&&g!=="."&&!f.ignoreCase?g:g.length===2&&g[0]==="\\"&&!F(["d","D","s","S","t","r","n","t","0","c","b","B","f","v","w","W"],g[1])?g[1]:Ri(f)}else{if(xe(f))return i=!0,{exec:f};if(typeof f=="object")return i=!0,f;if(typeof f=="string"){if(f.length===1)return f;{let g=f.replace(/[\\^$.*+?()[\]{}|]/g,"\\$&"),V=new RegExp(g);return Ri(V)}}else throw Error("non exhaustive match")}})});let o,l,a,h,d;s("misc mapping",()=>{o=m(n,A=>A.tokenTypeIdx),l=m(n,A=>{let f=A.GROUP;if(f!==D.SKIPPED){if(ie(f))return f;if(ce(f))return!1;throw Error("non exhaustive match")}}),a=m(n,A=>{let f=A.LONGER_ALT;if(f)return X(f)?m(f,V=>sn(n,V)):[sn(n,f)]}),h=m(n,A=>A.PUSH_MODE),d=m(n,A=>T(A,"POP_MODE"))});let u;s("Line Terminator Handling",()=>{let A=_i(e.lineTerminatorCharacters);u=m(n,f=>!1),e.positionTracking!=="onlyOffset"&&(u=m(n,f=>T(f,"LINE_BREAKS")?!!f.LINE_BREAKS:vi(f,A)===!1&&ds(A,f.PATTERN)))});let p,S,N,I;s("Misc Mapping #2",()=>{p=m(n,Ci),S=m(r,Za),N=q(n,(A,f)=>{let g=f.GROUP;return ie(g)&&g!==D.SKIPPED&&(A[g]=[]),A},{}),I=m(r,(A,f)=>({pattern:r[f],longerAlt:a[f],canLineTerminator:u[f],isCustom:p[f],short:S[f],group:l[f],push:h[f],pop:d[f],tokenTypeIdx:o[f],tokenType:n[f]}))});let x=!0,R=[];return e.safeMode||s("First Char Optimization",()=>{R=q(n,(A,f,g)=>{if(typeof f.PATTERN=="string"){let V=f.PATTERN.charCodeAt(0),Le=_e(V);dn(A,Le,I[g])}else if(X(f.START_CHARS_HINT)){let V;E(f.START_CHARS_HINT,Le=>{let Ge=typeof Le=="string"?Le.charCodeAt(0):Le,He=_e(Ge);V!==He&&(V=He,dn(A,He,I[g]))})}else if(Ie(f.PATTERN))if(f.PATTERN.unicode)x=!1,e.ensureOptimizations&<(`${wt} Unable to analyze < ${f.PATTERN.toString()} > pattern. + The regexp unicode flag is not currently supported by the regexp-to-ast library. + This will disable the lexer's first char optimizations. + For details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#UNICODE_OPTIMIZE`);else{let V=yi(f.PATTERN,e.ensureOptimizations);O(V)&&(x=!1),E(V,Le=>{dn(A,Le,I[g])})}else e.ensureOptimizations&<(`${wt} TokenType: <${f.name}> is using a custom token pattern without providing parameter. + This will disable the lexer's first char optimizations. + For details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#CUSTOM_OPTIMIZE`),x=!1;return A},[])}),{emptyGroups:N,patternIdxToConfig:I,charCodeToPatternIdxToConfig:R,hasCustom:i,canBeOptimized:x}}function Ni(t,e){let s=[],n=Da(t);s=s.concat(n.errors);let i=Fa(n.valid),r=i.valid;return s=s.concat(i.errors),s=s.concat(Pa(r)),s=s.concat(za(r)),s=s.concat(Ha(r,e)),s=s.concat(Ya(r)),s}function Pa(t){let e=[],s=le(t,n=>Ie(n[et]));return e=e.concat($a(s)),e=e.concat(Ka(s)),e=e.concat(Va(s)),e=e.concat(ja(s)),e=e.concat(Ga(s)),e}function Da(t){let e=le(t,i=>!T(i,et)),s=m(e,i=>({message:"Token Type: ->"+i.name+"<- missing static 'PATTERN' property",type:P.MISSING_PATTERN,tokenTypes:[i]})),n=Xe(t,e);return{errors:s,valid:n}}function Fa(t){let e=le(t,i=>{let r=i[et];return!Ie(r)&&!xe(r)&&!T(r,"exec")&&!ie(r)}),s=m(e,i=>({message:"Token Type: ->"+i.name+"<- static 'PATTERN' can only be a RegExp, a Function matching the {CustomPatternMatcherFunc} type or an Object matching the {ICustomPattern} interface.",type:P.INVALID_PATTERN,tokenTypes:[i]})),n=Xe(t,e);return{errors:s,valid:n}}var Ba=/[^\\][$]/;function $a(t){class e extends je{constructor(){super(...arguments),this.found=!1}visitEndAnchor(r){this.found=!0}}let s=le(t,i=>{let r=i.PATTERN;try{let o=ut(r),l=new e;return l.visit(o),l.found}catch{return Ba.test(r.source)}});return m(s,i=>({message:`Unexpected RegExp Anchor Error: + Token Type: ->`+i.name+`<- static 'PATTERN' cannot contain end of input anchor '$' + See chevrotain.io/docs/guide/resolving_lexer_errors.html#ANCHORS for details.`,type:P.EOI_ANCHOR_FOUND,tokenTypes:[i]}))}function Ga(t){let e=le(t,n=>n.PATTERN.test(""));return m(e,n=>({message:"Token Type: ->"+n.name+"<- static 'PATTERN' must not match an empty string",type:P.EMPTY_MATCH_PATTERN,tokenTypes:[n]}))}var Wa=/[^\\[][\^]|^\^/;function Ka(t){class e extends je{constructor(){super(...arguments),this.found=!1}visitStartAnchor(r){this.found=!0}}let s=le(t,i=>{let r=i.PATTERN;try{let o=ut(r),l=new e;return l.visit(o),l.found}catch{return Wa.test(r.source)}});return m(s,i=>({message:`Unexpected RegExp Anchor Error: + Token Type: ->`+i.name+`<- static 'PATTERN' cannot contain start of input anchor '^' + See https://chevrotain.io/docs/guide/resolving_lexer_errors.html#ANCHORS for details.`,type:P.SOI_ANCHOR_FOUND,tokenTypes:[i]}))}function Va(t){let e=le(t,n=>{let i=n[et];return i instanceof RegExp&&(i.multiline||i.global)});return m(e,n=>({message:"Token Type: ->"+n.name+"<- static 'PATTERN' may NOT contain global('g') or multiline('m')",type:P.UNSUPPORTED_FLAGS_FOUND,tokenTypes:[n]}))}function ja(t){let e=[],s=m(t,r=>q(t,(o,l)=>(r.PATTERN.source===l.PATTERN.source&&!F(e,l)&&l.PATTERN!==D.NA&&(e.push(l),o.push(l)),o),[]));s=Ue(s);let n=le(s,r=>r.length>1);return m(n,r=>{let o=m(r,a=>a.name);return{message:`The same RegExp pattern ->${ne(r).PATTERN}<-has been used in all of the following Token Types: ${o.join(", ")} <-`,type:P.DUPLICATE_PATTERNS_FOUND,tokenTypes:r}})}function za(t){let e=le(t,n=>{if(!T(n,"GROUP"))return!1;let i=n.GROUP;return i!==D.SKIPPED&&i!==D.NA&&!ie(i)});return m(e,n=>({message:"Token Type: ->"+n.name+"<- static 'GROUP' can only be Lexer.SKIPPED/Lexer.NA/A String",type:P.INVALID_GROUP_TYPE_FOUND,tokenTypes:[n]}))}function Ha(t,e){let s=le(t,i=>i.PUSH_MODE!==void 0&&!F(e,i.PUSH_MODE));return m(s,i=>({message:`Token Type: ->${i.name}<- static 'PUSH_MODE' value cannot refer to a Lexer Mode ->${i.PUSH_MODE}<-which does not exist`,type:P.PUSH_MODE_DOES_NOT_EXIST,tokenTypes:[i]}))}function Ya(t){let e=[],s=q(t,(n,i,r)=>{let o=i.PATTERN;return o===D.NA||(ie(o)?n.push({str:o,idx:r,tokenType:i}):Ie(o)&&Ja(o)&&n.push({str:o.source,idx:r,tokenType:i})),n},[]);return E(t,(n,i)=>{E(s,({str:r,idx:o,tokenType:l})=>{if(i${l.name}<- can never be matched. +Because it appears AFTER the Token Type ->${n.name}<-in the lexer's definition. +See https://chevrotain.io/docs/guide/resolving_lexer_errors.html#UNREACHABLE`;e.push({message:a,type:P.UNREACHABLE_PATTERN,tokenTypes:[n,l]})}})}),e}function Xa(t,e){if(Ie(e)){if(qa(e))return!1;let s=e.exec(t);return s!==null&&s.index===0}else{if(xe(e))return e(t,0,[],{});if(T(e,"exec"))return e.exec(t,0,[],{});if(typeof e=="string")return e===t;throw Error("non exhaustive match")}}function Ja(t){return we([".","\\","[","]","|","^","$","(",")","?","*","+","{"],s=>t.source.indexOf(s)!==-1)===void 0}function qa(t){return/(\(\?=)|(\(\?!)|(\(\?<=)|(\(\? property in its definition +`,type:P.MULTI_MODE_LEXER_WITHOUT_DEFAULT_MODE}),T(t,ps)||n.push({message:"A MultiMode Lexer cannot be initialized without a <"+ps+`> property in its definition +`,type:P.MULTI_MODE_LEXER_WITHOUT_MODES_PROPERTY}),T(t,ps)&&T(t,pt)&&!T(t.modes,t.defaultMode)&&n.push({message:`A MultiMode Lexer cannot be initialized with a ${pt}: <${t.defaultMode}>which does not exist +`,type:P.MULTI_MODE_LEXER_DEFAULT_MODE_VALUE_DOES_NOT_EXIST}),T(t,ps)&&E(t.modes,(i,r)=>{E(i,(o,l)=>{if(ce(o))n.push({message:`A Lexer cannot be initialized using an undefined Token Type. Mode:<${r}> at index: <${l}> +`,type:P.LEXER_DEFINITION_CANNOT_CONTAIN_UNDEFINED});else if(T(o,"LONGER_ALT")){let a=X(o.LONGER_ALT)?o.LONGER_ALT:[o.LONGER_ALT];E(a,h=>{!ce(h)&&!F(i,h)&&n.push({message:`A MultiMode Lexer cannot be initialized with a longer_alt <${h.name}> on token <${o.name}> outside of mode <${r}> +`,type:P.MULTI_MODE_LEXER_LONGER_ALT_NOT_IN_CURRENT_MODE})})}})}),n}function Oi(t,e,s){let n=[],i=!1,r=Ue(Q(U(t.modes))),o=Je(r,a=>a[et]===D.NA),l=_i(s);return e&&E(o,a=>{let h=vi(a,l);if(h!==!1){let u={message:Qa(a,h),type:h.issue,tokenType:a};n.push(u)}else T(a,"LINE_BREAKS")?a.LINE_BREAKS===!0&&(i=!0):ds(l,a.PATTERN)&&(i=!0)}),e&&!i&&n.push({message:`Warning: No LINE_BREAKS Found. + This Lexer has been defined to track line and column information, + But none of the Token Types can be identified as matching a line terminator. + See https://chevrotain.io/docs/guide/resolving_lexer_errors.html#LINE_BREAKS + for details.`,type:P.NO_LINE_BREAKS_FLAGS}),n}function ki(t){let e={},s=Me(t);return E(s,n=>{let i=t[n];if(X(i))e[n]=[];else throw Error("non exhaustive match")}),e}function Ci(t){let e=t.PATTERN;if(Ie(e))return!1;if(xe(e))return!0;if(T(e,"exec"))return!0;if(ie(e))return!1;throw Error("non exhaustive match")}function Za(t){return ie(t)&&t.length===1?t.charCodeAt(0):!1}var xi={test:function(t){let e=t.length;for(let s=this.lastIndex;s Token Type + Root cause: ${e.errMsg}. + For details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#IDENTIFY_TERMINATOR`;if(e.issue===P.CUSTOM_LINE_BREAK)return`Warning: A Custom Token Pattern should specify the option. + The problem is in the <${t.name}> Token Type + For details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#CUSTOM_LINE_BREAK`;throw Error("non exhaustive match")}function _i(t){return m(t,s=>ie(s)?s.charCodeAt(0):s)}function dn(t,e,s){t[e]===void 0?t[e]=[s]:t[e].push(s)}var dt=256,fs=[];function _e(t){return t255?255+~~(t/255):t}}function De(t,e){let s=t.tokenTypeIdx;return s===e.tokenTypeIdx?!0:e.isParent===!0&&e.categoryMatchesMap[s]===!0}function ft(t,e){return t.tokenTypeIdx===e.tokenTypeIdx}var bi=1,Ui={};function Fe(t){let e=to(t);so(e),io(e),no(e),E(e,s=>{s.isParent=s.categoryMatches.length>0})}function to(t){let e=M(t),s=t,n=!0;for(;n;){s=Ue(Q(m(s,r=>r.CATEGORIES)));let i=Xe(s,e);e=e.concat(i),O(i)?n=!1:s=i}return e}function so(t){E(t,e=>{pn(e)||(Ui[bi]=e,e.tokenTypeIdx=bi++),Mi(e)&&!X(e.CATEGORIES)&&(e.CATEGORIES=[e.CATEGORIES]),Mi(e)||(e.CATEGORIES=[]),ro(e)||(e.categoryMatches=[]),ao(e)||(e.categoryMatchesMap={})})}function no(t){E(t,e=>{e.categoryMatches=[],E(e.categoryMatchesMap,(s,n)=>{e.categoryMatches.push(Ui[n].tokenTypeIdx)})})}function io(t){E(t,e=>{wi([],e)})}function wi(t,e){E(t,s=>{e.categoryMatchesMap[s.tokenTypeIdx]=!0}),E(e.CATEGORIES,s=>{let n=t.concat(e);F(n,s)||wi(n,s)})}function pn(t){return T(t,"tokenTypeIdx")}function Mi(t){return T(t,"CATEGORIES")}function ro(t){return T(t,"categoryMatches")}function ao(t){return T(t,"categoryMatchesMap")}function Pi(t){return T(t,"tokenTypeIdx")}var fn={buildUnableToPopLexerModeMessage(t){return`Unable to pop Lexer Mode after encountering Token ->${t.image}<- The Mode Stack is empty`},buildUnexpectedCharactersMessage(t,e,s,n,i,r){return`unexpected character: ->${t.charAt(e)}<- at offset: ${e}, skipped ${s} characters.`}};var P;(function(t){t[t.MISSING_PATTERN=0]="MISSING_PATTERN",t[t.INVALID_PATTERN=1]="INVALID_PATTERN",t[t.EOI_ANCHOR_FOUND=2]="EOI_ANCHOR_FOUND",t[t.UNSUPPORTED_FLAGS_FOUND=3]="UNSUPPORTED_FLAGS_FOUND",t[t.DUPLICATE_PATTERNS_FOUND=4]="DUPLICATE_PATTERNS_FOUND",t[t.INVALID_GROUP_TYPE_FOUND=5]="INVALID_GROUP_TYPE_FOUND",t[t.PUSH_MODE_DOES_NOT_EXIST=6]="PUSH_MODE_DOES_NOT_EXIST",t[t.MULTI_MODE_LEXER_WITHOUT_DEFAULT_MODE=7]="MULTI_MODE_LEXER_WITHOUT_DEFAULT_MODE",t[t.MULTI_MODE_LEXER_WITHOUT_MODES_PROPERTY=8]="MULTI_MODE_LEXER_WITHOUT_MODES_PROPERTY",t[t.MULTI_MODE_LEXER_DEFAULT_MODE_VALUE_DOES_NOT_EXIST=9]="MULTI_MODE_LEXER_DEFAULT_MODE_VALUE_DOES_NOT_EXIST",t[t.LEXER_DEFINITION_CANNOT_CONTAIN_UNDEFINED=10]="LEXER_DEFINITION_CANNOT_CONTAIN_UNDEFINED",t[t.SOI_ANCHOR_FOUND=11]="SOI_ANCHOR_FOUND",t[t.EMPTY_MATCH_PATTERN=12]="EMPTY_MATCH_PATTERN",t[t.NO_LINE_BREAKS_FLAGS=13]="NO_LINE_BREAKS_FLAGS",t[t.UNREACHABLE_PATTERN=14]="UNREACHABLE_PATTERN",t[t.IDENTIFY_TERMINATOR=15]="IDENTIFY_TERMINATOR",t[t.CUSTOM_LINE_BREAK=16]="CUSTOM_LINE_BREAK",t[t.MULTI_MODE_LEXER_LONGER_ALT_NOT_IN_CURRENT_MODE=17]="MULTI_MODE_LEXER_LONGER_ALT_NOT_IN_CURRENT_MODE"})(P||(P={}));var Pt={deferDefinitionErrorsHandling:!1,positionTracking:"full",lineTerminatorsPattern:/\n|\r\n?/g,lineTerminatorCharacters:[` +`,"\r"],ensureOptimizations:!1,safeMode:!1,errorMessageProvider:fn,traceInitPerf:!1,skipValidations:!1,recoveryEnabled:!0};Object.freeze(Pt);var D=class{constructor(e,s=Pt){if(this.lexerDefinition=e,this.lexerDefinitionErrors=[],this.lexerDefinitionWarning=[],this.patternIdxToConfig={},this.charCodeToPatternIdxToConfig={},this.modes=[],this.emptyGroups={},this.trackStartLines=!0,this.trackEndLines=!0,this.hasCustom=!1,this.canModeBeOptimized={},this.TRACE_INIT=(i,r)=>{if(this.traceInitPerf===!0){this.traceInitIndent++;let o=new Array(this.traceInitIndent+1).join(" ");this.traceInitIndent <${i}>`);let{time:l,value:a}=xt(r),h=l>10?console.warn:console.log;return this.traceInitIndent time: ${l}ms`),this.traceInitIndent--,a}else return r()},typeof s=="boolean")throw Error(`The second argument to the Lexer constructor is now an ILexerConfig Object. +a boolean 2nd argument is no longer supported`);this.config=se({},Pt,s);let n=this.config.traceInitPerf;n===!0?(this.traceInitMaxIdent=1/0,this.traceInitPerf=!0):typeof n=="number"&&(this.traceInitMaxIdent=n,this.traceInitPerf=!0),this.traceInitIndent=-1,this.TRACE_INIT("Lexer Constructor",()=>{let i,r=!0;this.TRACE_INIT("Lexer Config handling",()=>{if(this.config.lineTerminatorsPattern===Pt.lineTerminatorsPattern)this.config.lineTerminatorsPattern=xi;else if(this.config.lineTerminatorCharacters===Pt.lineTerminatorCharacters)throw Error(`Error: Missing property on the Lexer config. + For details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#MISSING_LINE_TERM_CHARS`);if(s.safeMode&&s.ensureOptimizations)throw Error('"safeMode" and "ensureOptimizations" flags are mutually exclusive.');this.trackStartLines=/full|onlyStart/i.test(this.config.positionTracking),this.trackEndLines=/full/i.test(this.config.positionTracking),X(e)?i={modes:{defaultMode:M(e)},defaultMode:pt}:(r=!1,i=M(e))}),this.config.skipValidations===!1&&(this.TRACE_INIT("performRuntimeChecks",()=>{this.lexerDefinitionErrors=this.lexerDefinitionErrors.concat(Ii(i,this.trackStartLines,this.config.lineTerminatorCharacters))}),this.TRACE_INIT("performWarningRuntimeChecks",()=>{this.lexerDefinitionWarning=this.lexerDefinitionWarning.concat(Oi(i,this.trackStartLines,this.config.lineTerminatorCharacters))})),i.modes=i.modes?i.modes:{},E(i.modes,(l,a)=>{i.modes[a]=Je(l,h=>ce(h))});let o=Me(i.modes);if(E(i.modes,(l,a)=>{this.TRACE_INIT(`Mode: <${a}> processing`,()=>{if(this.modes.push(a),this.config.skipValidations===!1&&this.TRACE_INIT("validatePatterns",()=>{this.lexerDefinitionErrors=this.lexerDefinitionErrors.concat(Ni(l,o))}),O(this.lexerDefinitionErrors)){Fe(l);let h;this.TRACE_INIT("analyzeTokenTypes",()=>{h=Li(l,{lineTerminatorCharacters:this.config.lineTerminatorCharacters,positionTracking:s.positionTracking,ensureOptimizations:s.ensureOptimizations,safeMode:s.safeMode,tracer:this.TRACE_INIT})}),this.patternIdxToConfig[a]=h.patternIdxToConfig,this.charCodeToPatternIdxToConfig[a]=h.charCodeToPatternIdxToConfig,this.emptyGroups=se({},this.emptyGroups,h.emptyGroups),this.hasCustom=h.hasCustom||this.hasCustom,this.canModeBeOptimized[a]=h.canBeOptimized}})}),this.defaultMode=i.defaultMode,!O(this.lexerDefinitionErrors)&&!this.config.deferDefinitionErrorsHandling){let a=m(this.lexerDefinitionErrors,h=>h.message).join(`----------------------- +`);throw new Error(`Errors detected in definition of Lexer: +`+a)}E(this.lexerDefinitionWarning,l=>{Ct(l.message)}),this.TRACE_INIT("Choosing sub-methods implementations",()=>{if(r&&(this.handleModes=J),this.trackStartLines===!1&&(this.computeNewColumn=hi),this.trackEndLines===!1&&(this.updateTokenEndLineColumnLocation=J),/full/i.test(this.config.positionTracking))this.createTokenInstance=this.createFullToken;else if(/onlyStart/i.test(this.config.positionTracking))this.createTokenInstance=this.createStartOnlyToken;else if(/onlyOffset/i.test(this.config.positionTracking))this.createTokenInstance=this.createOffsetOnlyToken;else throw Error(`Invalid config option: "${this.config.positionTracking}"`);this.hasCustom?(this.addToken=this.addTokenUsingPush,this.handlePayload=this.handlePayloadWithCustom):(this.addToken=this.addTokenUsingMemberAccess,this.handlePayload=this.handlePayloadNoCustom)}),this.TRACE_INIT("Failed Optimization Warnings",()=>{let l=q(this.canModeBeOptimized,(a,h,d)=>(h===!1&&a.push(d),a),[]);if(s.ensureOptimizations&&!O(l))throw Error(`Lexer Modes: < ${l.join(", ")} > cannot be optimized. + Disable the "ensureOptimizations" lexer config flag to silently ignore this and run the lexer in an un-optimized mode. + Or inspect the console log for details on how to resolve these issues.`)}),this.TRACE_INIT("clearRegExpParserCache",()=>{gi()}),this.TRACE_INIT("toFastProperties",()=>{vt(this)})})}tokenize(e,s=this.defaultMode){if(!O(this.lexerDefinitionErrors)){let i=m(this.lexerDefinitionErrors,r=>r.message).join(`----------------------- +`);throw new Error(`Unable to Tokenize because Errors detected in definition of Lexer: +`+i)}return this.tokenizeInternal(e,s)}tokenizeInternal(e,s){let n,i,r,o,l,a,h,d,u,p,S,N,I,x,R,A=e,f=A.length,g=0,V=0,Le=this.hasCustom?0:Math.floor(e.length/10),Ge=new Array(Le),He=[],yt=this.trackStartLines?1:void 0,Ce=this.trackStartLines?1:void 0,Rt=ki(this.emptyGroups),Na=this.trackStartLines,Js=this.config.lineTerminatorsPattern,ss=0,We=[],Lt=[],Nt=[],zn=[];Object.freeze(zn);let It=!1,Ia=pe=>{if(Nt.length===1&&pe.tokenType.PUSH_MODE===void 0){let Ae=this.config.errorMessageProvider.buildUnableToPopLexerModeMessage(pe);He.push({offset:pe.startOffset,line:pe.startLine,column:pe.startColumn,length:pe.image.length,message:Ae})}else{Nt.pop();let Ae=ve(Nt);We=this.patternIdxToConfig[Ae],Lt=this.charCodeToPatternIdxToConfig[Ae],ss=We.length;let qs=this.canModeBeOptimized[Ae]&&this.config.safeMode===!1;Lt&&qs?It=!0:It=!1}};function Hn(pe){Nt.push(pe),Lt=this.charCodeToPatternIdxToConfig[pe],We=this.patternIdxToConfig[pe],ss=We.length,ss=We.length;let Ae=this.canModeBeOptimized[pe]&&this.config.safeMode===!1;Lt&&Ae?It=!0:It=!1}Hn.call(this,s);let Ne,Yn=this.config.recoveryEnabled;for(;ga.length){a=o,u=o.length,h=d,Ne=be;break}}}break}}if(u!==-1){if(p=Ne.group,p!==void 0&&(a=a!==null?a:e.substring(g,g+u),S=Ne.tokenTypeIdx,N=this.createTokenInstance(a,g,S,Ne.tokenType,yt,Ce,u),this.handlePayload(N,h),p===!1?V=this.addToken(Ge,V,N):Rt[p].push(N)),Na===!0&&Ne.canLineTerminator===!0){let ae=0,Se,Ke;Js.lastIndex=0;do a=a!==null?a:e.substring(g,g+u),Se=Js.test(a),Se===!0&&(Ke=Js.lastIndex-1,ae++);while(Se===!0);ae!==0?(yt=yt+ae,Ce=u-Ke,this.updateTokenEndLineColumnLocation(N,p,Ke,ae,yt,Ce,u)):Ce=this.computeNewColumn(Ce,u)}else Ce=this.computeNewColumn(Ce,u);g=g+u,this.handleModes(Ne,Ia,Hn,N)}else{let ae=g,Se=yt,Ke=Ce,be=Yn===!1;for(;be===!1&&g ${tt(t)} <--`:`token of type --> ${t.name} <--`} but found --> '${e.image}' <--`},buildNotAllInputParsedMessage({firstRedundant:t,ruleName:e}){return"Redundant input, expecting EOF but found: "+t.image},buildNoViableAltMessage({expectedPathsPerAlt:t,actual:e,previous:s,customUserDescription:n,ruleName:i}){let r="Expecting: ",l=` +but found: '`+ne(e).image+"'";if(n)return r+n+l;{let a=q(t,(p,S)=>p.concat(S),[]),h=m(a,p=>`[${m(p,S=>tt(S)).join(", ")}]`),u=`one of these possible Token sequences: +${m(h,(p,S)=>` ${S+1}. ${p}`).join(` +`)}`;return r+u+l}},buildEarlyExitMessage({expectedIterationPaths:t,actual:e,customUserDescription:s,ruleName:n}){let i="Expecting: ",o=` +but found: '`+ne(e).image+"'";if(s)return i+s+o;{let a=`expecting at least one iteration which starts with one of these possible Token sequences:: + <${m(t,h=>`[${m(h,d=>tt(d)).join(",")}]`).join(" ,")}>`;return i+a+o}}};Object.freeze(ms);var ji={buildRuleNotFoundError(t,e){return"Invalid grammar, reference to a rule which is not defined: ->"+e.nonTerminalName+`<- +inside top level rule: ->`+t.name+"<-"}},Oe={buildDuplicateFoundError(t,e){function s(d){return d instanceof k?d.terminalType.name:d instanceof _?d.nonTerminalName:""}let n=t.name,i=ne(e),r=i.idx,o=me(i),l=s(i),a=r>0,h=`->${o}${a?r:""}<- ${l?`with argument: ->${l}<-`:""} + appears more than once (${e.length} times) in the top level rule: ->${n}<-. + For further details see: https://chevrotain.io/docs/FAQ.html#NUMERICAL_SUFFIXES + `;return h=h.replace(/[ \t]+/g," "),h=h.replace(/\s\s+/g,` +`),h},buildNamespaceConflictError(t){return`Namespace conflict found in grammar. +The grammar has both a Terminal(Token) and a Non-Terminal(Rule) named: <${t.name}>. +To resolve this make sure each Terminal and Non-Terminal names are unique +This is easy to accomplish by using the convention that Terminal names start with an uppercase letter +and Non-Terminal names start with a lower case letter.`},buildAlternationPrefixAmbiguityError(t){let e=m(t.prefixPath,i=>tt(i)).join(", "),s=t.alternation.idx===0?"":t.alternation.idx;return`Ambiguous alternatives: <${t.ambiguityIndices.join(" ,")}> due to common lookahead prefix +in inside <${t.topLevelRule.name}> Rule, +<${e}> may appears as a prefix path in all these alternatives. +See: https://chevrotain.io/docs/guide/resolving_grammar_errors.html#COMMON_PREFIX +For Further details.`},buildAlternationAmbiguityError(t){let e=t.alternation.idx===0?"":t.alternation.idx,s=t.prefixPath.length===0,n=`Ambiguous Alternatives Detected: <${t.ambiguityIndices.join(" ,")}> in inside <${t.topLevelRule.name}> Rule, +`;if(s)n+=`These alternatives are all empty (match no tokens), making them indistinguishable. +Only the last alternative may be empty. +`;else{let i=m(t.prefixPath,r=>tt(r)).join(", ");n+=`<${i}> may appears as a prefix path in all these alternatives. +`}return n+=`See: https://chevrotain.io/docs/guide/resolving_grammar_errors.html#AMBIGUOUS_ALTERNATIVES +For Further details.`,n},buildEmptyRepetitionError(t){let e=me(t.repetition);return t.repetition.idx!==0&&(e+=t.repetition.idx),`The repetition <${e}> within Rule <${t.topLevelRule.name}> can never consume any tokens. +This could lead to an infinite loop.`},buildTokenNameError(t){return"deprecated"},buildEmptyAlternationError(t){return`Ambiguous empty alternative: <${t.emptyChoiceIdx+1}> in inside <${t.topLevelRule.name}> Rule. +Only the last alternative may be an empty alternative.`},buildTooManyAlternativesError(t){return`An Alternation cannot have more than 256 alternatives: + inside <${t.topLevelRule.name}> Rule. + has ${t.alternation.definition.length+1} alternatives.`},buildLeftRecursionError(t){let e=t.topLevelRule.name,s=m(t.leftRecursionPath,r=>r.name),n=`${e} --> ${s.concat([e]).join(" --> ")}`;return`Left Recursion found in grammar. +rule: <${e}> can be invoked from itself (directly or indirectly) +without consuming any Tokens. The grammar path that causes this is: + ${n} + To fix this refactor your grammar to remove the left recursion. +see: https://en.wikipedia.org/wiki/LL_parser#Left_factoring.`},buildInvalidRuleNameError(t){return"deprecated"},buildDuplicateRuleNameError(t){let e;return t.topLevelRule instanceof he?e=t.topLevelRule.name:e=t.topLevelRule,`Duplicate definition, rule: ->${e}<- is already defined in the grammar: ->${t.grammarName}<-`}};function zi(t,e){let s=new En(t,e);return s.resolveRefs(),s.errors}var En=class extends ue{constructor(e,s){super(),this.nameToTopRule=e,this.errMsgProvider=s,this.errors=[]}resolveRefs(){E(U(this.nameToTopRule),e=>{this.currTopLevel=e,e.accept(this)})}visitNonTerminal(e){let s=this.nameToTopRule[e.nonTerminalName];if(s)e.referencedRule=s;else{let n=this.errMsgProvider.buildRuleNotFoundError(this.currTopLevel,e);this.errors.push({message:n,type:Z.UNRESOLVED_SUBRULE_REF,ruleName:this.currTopLevel.name,unresolvedRefName:e.nonTerminalName})}}};var Tn=class extends Pe{constructor(e,s){super(),this.topProd=e,this.path=s,this.possibleTokTypes=[],this.nextProductionName="",this.nextProductionOccurrence=0,this.found=!1,this.isAtEndOfPath=!1}startWalking(){if(this.found=!1,this.path.ruleStack[0]!==this.topProd.name)throw Error("The path does not start with the walker's top Rule!");return this.ruleStack=M(this.path.ruleStack).reverse(),this.occurrenceStack=M(this.path.occurrenceStack).reverse(),this.ruleStack.pop(),this.occurrenceStack.pop(),this.updateExpectedNext(),this.walk(this.topProd),this.possibleTokTypes}walk(e,s=[]){this.found||super.walk(e,s)}walkProdRef(e,s,n){if(e.referencedRule.name===this.nextProductionName&&e.idx===this.nextProductionOccurrence){let i=s.concat(n);this.updateExpectedNext(),this.walk(e.referencedRule,i)}}updateExpectedNext(){O(this.ruleStack)?(this.nextProductionName="",this.nextProductionOccurrence=0,this.isAtEndOfPath=!0):(this.nextProductionName=this.ruleStack.pop(),this.nextProductionOccurrence=this.occurrenceStack.pop())}},Es=class extends Tn{constructor(e,s){super(e,s),this.path=s,this.nextTerminalName="",this.nextTerminalOccurrence=0,this.nextTerminalName=this.path.lastTok.name,this.nextTerminalOccurrence=this.path.lastTokOccurrence}walkTerminal(e,s,n){if(this.isAtEndOfPath&&e.terminalType.name===this.nextTerminalName&&e.idx===this.nextTerminalOccurrence&&!this.found){let i=s.concat(n),r=new b({definition:i});this.possibleTokTypes=Ze(r),this.found=!0}}},mt=class extends Pe{constructor(e,s){super(),this.topRule=e,this.occurrence=s,this.result={token:void 0,occurrence:void 0,isEndOfRule:void 0}}startWalking(){return this.walk(this.topRule),this.result}},Ts=class extends mt{walkMany(e,s,n){if(e.idx===this.occurrence){let i=ne(s.concat(n));this.result.isEndOfRule=i===void 0,i instanceof k&&(this.result.token=i.terminalType,this.result.occurrence=i.idx)}else super.walkMany(e,s,n)}},Ft=class extends mt{walkManySep(e,s,n){if(e.idx===this.occurrence){let i=ne(s.concat(n));this.result.isEndOfRule=i===void 0,i instanceof k&&(this.result.token=i.terminalType,this.result.occurrence=i.idx)}else super.walkManySep(e,s,n)}},gs=class extends mt{walkAtLeastOne(e,s,n){if(e.idx===this.occurrence){let i=ne(s.concat(n));this.result.isEndOfRule=i===void 0,i instanceof k&&(this.result.token=i.terminalType,this.result.occurrence=i.idx)}else super.walkAtLeastOne(e,s,n)}},Bt=class extends mt{walkAtLeastOneSep(e,s,n){if(e.idx===this.occurrence){let i=ne(s.concat(n));this.result.isEndOfRule=i===void 0,i instanceof k&&(this.result.token=i.terminalType,this.result.occurrence=i.idx)}else super.walkAtLeastOneSep(e,s,n)}};function As(t,e,s=[]){s=M(s);let n=[],i=0;function r(l){return l.concat(H(t,i+1))}function o(l){let a=As(r(l),e,s);return n.concat(a)}for(;s.length{O(a.definition)===!1&&(n=o(a.definition))}),n;if(l instanceof k)s.push(l.terminalType);else throw Error("non exhaustive match")}i++}return n.push({partialPath:s,suffixDef:H(t,i)}),n}function Ss(t,e,s,n){let i="EXIT_NONE_TERMINAL",r=[i],o="EXIT_ALTERNATIVE",l=!1,a=e.length,h=a-n-1,d=[],u=[];for(u.push({idx:-1,def:t,ruleStack:[],occurrenceStack:[]});!O(u);){let p=u.pop();if(p===o){l&&ve(u).idx<=h&&u.pop();continue}let S=p.def,N=p.idx,I=p.ruleStack,x=p.occurrenceStack;if(O(S))continue;let R=S[0];if(R===i){let A={idx:N,def:H(S),ruleStack:Ve(I),occurrenceStack:Ve(x)};u.push(A)}else if(R instanceof k)if(N=0;A--){let f=R.definition[A],g={idx:N,def:f.definition.concat(H(S)),ruleStack:I,occurrenceStack:x};u.push(g),u.push(o)}else if(R instanceof b)u.push({idx:N,def:R.definition.concat(H(S)),ruleStack:I,occurrenceStack:x});else if(R instanceof he)u.push(co(R,N,I,x));else throw Error("non exhaustive match")}return d}function co(t,e,s,n){let i=M(s);i.push(t.name);let r=M(n);return r.push(1),{idx:e,def:t.definition,ruleStack:i,occurrenceStack:r}}var B;(function(t){t[t.OPTION=0]="OPTION",t[t.REPETITION=1]="REPETITION",t[t.REPETITION_MANDATORY=2]="REPETITION_MANDATORY",t[t.REPETITION_MANDATORY_WITH_SEPARATOR=3]="REPETITION_MANDATORY_WITH_SEPARATOR",t[t.REPETITION_WITH_SEPARATOR=4]="REPETITION_WITH_SEPARATOR",t[t.ALTERNATION=5]="ALTERNATION"})(B||(B={}));function Rs(t){if(t instanceof w||t==="Option")return B.OPTION;if(t instanceof v||t==="Repetition")return B.REPETITION;if(t instanceof j||t==="RepetitionMandatory")return B.REPETITION_MANDATORY;if(t instanceof z||t==="RepetitionMandatoryWithSeparator")return B.REPETITION_MANDATORY_WITH_SEPARATOR;if(t instanceof G||t==="RepetitionWithSeparator")return B.REPETITION_WITH_SEPARATOR;if(t instanceof W||t==="Alternation")return B.ALTERNATION;throw Error("non exhaustive match")}function Yi(t,e,s,n,i,r){let o=$t(t,e,s),l=er(o)?ft:De;return r(o,n,l,i)}function Xi(t,e,s,n,i,r){let o=Gt(t,e,i,s),l=er(o)?ft:De;return r(o[0],l,n)}function Ji(t,e,s,n){let i=t.length,r=oe(t,o=>oe(o,l=>l.length===1));if(e)return function(o){let l=m(o,a=>a.GATE);for(let a=0;aQ(a)),l=q(o,(a,h,d)=>(E(h,u=>{T(a,u.tokenTypeIdx)||(a[u.tokenTypeIdx]=d),E(u.categoryMatches,p=>{T(a,p)||(a[p]=d)})}),a),{});return function(){let a=this.LA(1);return l[a.tokenTypeIdx]}}else return function(){for(let o=0;or.length===1),i=t.length;if(n&&!s){let r=Q(t);if(r.length===1&&O(r[0].categoryMatches)){let l=r[0].tokenTypeIdx;return function(){return this.LA(1).tokenTypeIdx===l}}else{let o=q(r,(l,a,h)=>(l[a.tokenTypeIdx]=!0,E(a.categoryMatches,d=>{l[d]=!0}),l),[]);return function(){let l=this.LA(1);return o[l.tokenTypeIdx]===!0}}}else return function(){e:for(let r=0;rAs([o],1)),n=Hi(s.length),i=m(s,o=>{let l={};return E(o,a=>{let h=gn(a.partialPath);E(h,d=>{l[d]=!0})}),l}),r=s;for(let o=1;o<=e;o++){let l=r;r=Hi(l.length);for(let a=0;a{let R=gn(x.partialPath);E(R,A=>{i[a][A]=!0})})}}}}return n}function $t(t,e,s,n){let i=new ys(t,B.ALTERNATION,n);return e.accept(i),Zi(i.result,s)}function Gt(t,e,s,n){let i=new ys(t,s);e.accept(i);let r=i.result,l=new An(e,t,s).startWalking(),a=new b({definition:r}),h=new b({definition:l});return Zi([a,h],n)}function Ls(t,e){e:for(let s=0;s{let i=e[n];return s===i||i.categoryMatchesMap[s.tokenTypeIdx]})}function er(t){return oe(t,e=>oe(e,s=>oe(s,n=>O(n.categoryMatches))))}function tr(t){let e=t.lookaheadStrategy.validate({rules:t.rules,tokenTypes:t.tokenTypes,grammarName:t.grammarName});return m(e,s=>Object.assign({type:Z.CUSTOM_LOOKAHEAD_VALIDATION},s))}function sr(t,e,s,n){let i=fe(t,a=>uo(a,s)),r=go(t,e,s),o=fe(t,a=>mo(a,s)),l=fe(t,a=>fo(a,t,n,s));return i.concat(r,o,l)}function uo(t,e){let s=new Sn;t.accept(s);let n=s.allProductions,i=ui(n,po),r=Te(i,l=>l.length>1);return m(U(r),l=>{let a=ne(l),h=e.buildDuplicateFoundError(t,l),d=me(a),u={message:h,type:Z.DUPLICATE_PRODUCTIONS,ruleName:t.name,dslName:d,occurrence:a.idx},p=nr(a);return p&&(u.parameter=p),u})}function po(t){return`${me(t)}_#_${t.idx}_#_${nr(t)}`}function nr(t){return t instanceof k?t.terminalType.name:t instanceof _?t.nonTerminalName:""}var Sn=class extends ue{constructor(){super(...arguments),this.allProductions=[]}visitNonTerminal(e){this.allProductions.push(e)}visitOption(e){this.allProductions.push(e)}visitRepetitionWithSeparator(e){this.allProductions.push(e)}visitRepetitionMandatory(e){this.allProductions.push(e)}visitRepetitionMandatoryWithSeparator(e){this.allProductions.push(e)}visitRepetition(e){this.allProductions.push(e)}visitAlternation(e){this.allProductions.push(e)}visitTerminal(e){this.allProductions.push(e)}};function fo(t,e,s,n){let i=[];if(q(e,(o,l)=>l.name===t.name?o+1:o,0)>1){let o=n.buildDuplicateRuleNameError({topLevelRule:t,grammarName:s});i.push({message:o,type:Z.DUPLICATE_RULE_NAME,ruleName:t.name})}return i}function ir(t,e,s){let n=[],i;return F(e,t)||(i=`Invalid rule override, rule: ->${t}<- cannot be overridden in the grammar: ->${s}<-as it is not defined in any of the super grammars `,n.push({message:i,type:Z.INVALID_RULE_OVERRIDE,ruleName:t})),n}function Rn(t,e,s,n=[]){let i=[],r=Ns(e.definition);if(O(r))return[];{let o=t.name;F(r,t)&&i.push({message:s.buildLeftRecursionError({topLevelRule:t,leftRecursionPath:n}),type:Z.LEFT_RECURSION,ruleName:o});let a=Xe(r,n.concat([t])),h=fe(a,d=>{let u=M(n);return u.push(d),Rn(t,d,s,u)});return i.concat(h)}}function Ns(t){let e=[];if(O(t))return e;let s=ne(t);if(s instanceof _)e.push(s.referencedRule);else if(s instanceof b||s instanceof w||s instanceof j||s instanceof z||s instanceof G||s instanceof v)e=e.concat(Ns(s.definition));else if(s instanceof W)e=Q(m(s.definition,r=>Ns(r.definition)));else if(!(s instanceof k))throw Error("non exhaustive match");let n=qe(s),i=t.length>1;if(n&&i){let r=H(t);return e.concat(Ns(r))}else return e}var Wt=class extends ue{constructor(){super(...arguments),this.alternations=[]}visitAlternation(e){this.alternations.push(e)}};function rr(t,e){let s=new Wt;t.accept(s);let n=s.alternations;return fe(n,r=>{let o=Ve(r.definition);return fe(o,(l,a)=>{let h=Ss([l],[],De,1);return O(h)?[{message:e.buildEmptyAlternationError({topLevelRule:t,alternation:r,emptyChoiceIdx:a}),type:Z.NONE_LAST_EMPTY_ALT,ruleName:t.name,occurrence:r.idx,alternative:a+1}]:[]})})}function ar(t,e,s){let n=new Wt;t.accept(n);let i=n.alternations;return i=Je(i,o=>o.ignoreAmbiguities===!0),fe(i,o=>{let l=o.idx,a=o.maxLookahead||e,h=$t(l,t,a,o),d=Eo(h,o,t,s),u=To(h,o,t,s);return d.concat(u)})}var yn=class extends ue{constructor(){super(...arguments),this.allProductions=[]}visitRepetitionWithSeparator(e){this.allProductions.push(e)}visitRepetitionMandatory(e){this.allProductions.push(e)}visitRepetitionMandatoryWithSeparator(e){this.allProductions.push(e)}visitRepetition(e){this.allProductions.push(e)}};function mo(t,e){let s=new Wt;t.accept(s);let n=s.alternations;return fe(n,r=>r.definition.length>255?[{message:e.buildTooManyAlternativesError({topLevelRule:t,alternation:r}),type:Z.TOO_MANY_ALTS,ruleName:t.name,occurrence:r.idx}]:[])}function or(t,e,s){let n=[];return E(t,i=>{let r=new yn;i.accept(r);let o=r.allProductions;E(o,l=>{let a=Rs(l),h=l.maxLookahead||e,d=l.idx,p=Gt(d,i,a,h)[0];if(O(Q(p))){let S=s.buildEmptyRepetitionError({topLevelRule:i,repetition:l});n.push({message:S,type:Z.NO_NON_EMPTY_LOOKAHEAD,ruleName:i.name})}})}),n}function Eo(t,e,s,n){let i=[],r=q(t,(l,a,h)=>(e.definition[h].ignoreAmbiguities===!0||E(a,d=>{let u=[h];E(t,(p,S)=>{h!==S&&Ls(p,d)&&e.definition[S].ignoreAmbiguities!==!0&&u.push(S)}),u.length>1&&!Ls(i,d)&&(i.push(d),l.push({alts:u,path:d}))}),l),[]);return m(r,l=>{let a=m(l.alts,d=>d+1);return{message:n.buildAlternationAmbiguityError({topLevelRule:s,alternation:e,ambiguityIndices:a,prefixPath:l.path}),type:Z.AMBIGUOUS_ALTS,ruleName:s.name,occurrence:e.idx,alternatives:l.alts}})}function To(t,e,s,n){let i=q(t,(o,l,a)=>{let h=m(l,d=>({idx:a,path:d}));return o.concat(h)},[]);return Ue(fe(i,o=>{if(e.definition[o.idx].ignoreAmbiguities===!0)return[];let a=o.idx,h=o.path,d=le(i,p=>e.definition[p.idx].ignoreAmbiguities!==!0&&p.idx{let S=[p.idx+1,a+1],N=e.idx===0?"":e.idx;return{message:n.buildAlternationPrefixAmbiguityError({topLevelRule:s,alternation:e,ambiguityIndices:S,prefixPath:p.path}),type:Z.AMBIGUOUS_PREFIX_ALTS,ruleName:s.name,occurrence:N,alternatives:S}})}))}function go(t,e,s){let n=[],i=m(e,r=>r.name);return E(t,r=>{let o=r.name;if(F(i,o)){let l=s.buildNamespaceConflictError(r);n.push({message:l,type:Z.CONFLICT_TOKENS_RULES_NAMESPACE,ruleName:o})}}),n}function lr(t){let e=Ot(t,{errMsgProvider:ji}),s={};return E(t.rules,n=>{s[n.name]=n}),zi(s,e.errMsgProvider)}function cr(t){return t=Ot(t,{errMsgProvider:Oe}),sr(t.rules,t.tokenTypes,t.errMsgProvider,t.grammarName)}var hr="MismatchedTokenException",ur="NoViableAltException",dr="EarlyExitException",pr="NotAllInputParsedException",fr=[hr,ur,dr,pr];Object.freeze(fr);function ze(t){return F(fr,t.name)}var Et=class extends Error{constructor(e,s){super(e),this.token=s,this.resyncedTokens=[],Object.setPrototypeOf(this,new.target.prototype),Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)}},nt=class extends Et{constructor(e,s,n){super(e,s),this.previousToken=n,this.name=hr}},Kt=class extends Et{constructor(e,s,n){super(e,s),this.previousToken=n,this.name=ur}},Vt=class extends Et{constructor(e,s){super(e,s),this.name=pr}},jt=class extends Et{constructor(e,s,n){super(e,s),this.previousToken=n,this.name=dr}};var Ln={},In="InRuleRecoveryException",Nn=class extends Error{constructor(e){super(e),this.name=In}},Is=class{initRecoverable(e){this.firstAfterRepMap={},this.resyncFollows={},this.recoveryEnabled=T(e,"recoveryEnabled")?e.recoveryEnabled:de.recoveryEnabled,this.recoveryEnabled&&(this.attemptInRepetitionRecovery=Ao)}getTokenToInsert(e){let s=st(e,"",NaN,NaN,NaN,NaN,NaN,NaN);return s.isInsertedInRecovery=!0,s}canTokenTypeBeInsertedInRecovery(e){return!0}canTokenTypeBeDeletedInRecovery(e){return!0}tryInRepetitionRecovery(e,s,n,i){let r=this.findReSyncTokenType(),o=this.exportLexerState(),l=[],a=!1,h=this.LA(1),d=this.LA(1),u=()=>{let p=this.LA(0),S=this.errorMessageProvider.buildMismatchTokenMessage({expected:i,actual:h,previous:p,ruleName:this.getCurrRuleFullName()}),N=new nt(S,h,this.LA(0));N.resyncedTokens=Ve(l),this.SAVE_ERROR(N)};for(;!a;)if(this.tokenMatcher(d,i)){u();return}else if(n.call(this)){u(),e.apply(this,s);return}else this.tokenMatcher(d,r)?a=!0:(d=this.SKIP_TOKEN(),this.addToResyncTokens(d,l));this.importLexerState(o)}shouldInRepetitionRecoveryBeTried(e,s,n){return!(n===!1||this.tokenMatcher(this.LA(1),e)||this.isBackTracking()||this.canPerformInRuleRecovery(e,this.getFollowsForInRuleRecovery(e,s)))}getFollowsForInRuleRecovery(e,s){let n=this.getCurrentGrammarPath(e,s);return this.getNextPossibleTokenTypes(n)}tryInRuleRecovery(e,s){if(this.canRecoverWithSingleTokenInsertion(e,s))return this.getTokenToInsert(e);if(this.canRecoverWithSingleTokenDeletion(e)){let n=this.SKIP_TOKEN();return this.consumeToken(),n}throw new Nn("sad sad panda")}canPerformInRuleRecovery(e,s){return this.canRecoverWithSingleTokenInsertion(e,s)||this.canRecoverWithSingleTokenDeletion(e)}canRecoverWithSingleTokenInsertion(e,s){if(!this.canTokenTypeBeInsertedInRecovery(e)||O(s))return!1;let n=this.LA(1);return we(s,r=>this.tokenMatcher(n,r))!==void 0}canRecoverWithSingleTokenDeletion(e){return this.canTokenTypeBeDeletedInRecovery(e)?this.tokenMatcher(this.LA(2),e):!1}isInCurrentRuleReSyncSet(e){let s=this.getCurrFollowKey(),n=this.getFollowSetFromFollowKey(s);return F(n,e)}findReSyncTokenType(){let e=this.flattenFollowSet(),s=this.LA(1),n=2;for(;;){let i=we(e,r=>Dt(s,r));if(i!==void 0)return i;s=this.LA(n),n++}}getCurrFollowKey(){if(this.RULE_STACK.length===1)return Ln;let e=this.getLastExplicitRuleShortName(),s=this.getLastExplicitRuleOccurrenceIndex(),n=this.getPreviousExplicitRuleShortName();return{ruleName:this.shortRuleNameToFullName(e),idxInCallingRule:s,inRule:this.shortRuleNameToFullName(n)}}buildFullFollowKeyStack(){let e=this.RULE_STACK,s=this.RULE_OCCURRENCE_STACK;return m(e,(n,i)=>i===0?Ln:{ruleName:this.shortRuleNameToFullName(n),idxInCallingRule:s[i],inRule:this.shortRuleNameToFullName(e[i-1])})}flattenFollowSet(){let e=m(this.buildFullFollowKeyStack(),s=>this.getFollowSetFromFollowKey(s));return Q(e)}getFollowSetFromFollowKey(e){if(e===Ln)return[Ee];let s=e.ruleName+e.idxInCallingRule+os+e.inRule;return this.resyncFollows[s]}addToResyncTokens(e,s){return this.tokenMatcher(e,Ee)||s.push(e),s}reSyncTo(e){let s=[],n=this.LA(1);for(;this.tokenMatcher(n,e)===!1;)n=this.SKIP_TOKEN(),this.addToResyncTokens(n,s);return Ve(s)}attemptInRepetitionRecovery(e,s,n,i,r,o,l){}getCurrentGrammarPath(e,s){let n=this.getHumanReadableRuleStack(),i=M(this.RULE_OCCURRENCE_STACK);return{ruleStack:n,occurrenceStack:i,lastTok:e,lastTokOccurrence:s}}getHumanReadableRuleStack(){return m(this.RULE_STACK,e=>this.shortRuleNameToFullName(e))}};function Ao(t,e,s,n,i,r,o){let l=this.getKeyForAutomaticLookahead(n,i),a=this.firstAfterRepMap[l];if(a===void 0){let p=this.getCurrRuleFullName(),S=this.getGAstProductions()[p];a=new r(S,i).startWalking(),this.firstAfterRepMap[l]=a}let h=a.token,d=a.occurrence,u=a.isEndOfRule;this.RULE_STACK.length===1&&u&&h===void 0&&(h=Ee,d=1),!(h===void 0||d===void 0)&&this.shouldInRepetitionRecoveryBeTried(h,d,o)&&this.tryInRepetitionRecovery(t,e,s,h)}function Os(t,e,s){return s|e|t}var zt=class{constructor(e){var s;this.maxLookahead=(s=e?.maxLookahead)!==null&&s!==void 0?s:de.maxLookahead}validate(e){let s=this.validateNoLeftRecursion(e.rules);if(O(s)){let n=this.validateEmptyOrAlternatives(e.rules),i=this.validateAmbiguousAlternationAlternatives(e.rules,this.maxLookahead),r=this.validateSomeNonEmptyLookaheadPath(e.rules,this.maxLookahead);return[...s,...n,...i,...r]}return s}validateNoLeftRecursion(e){return fe(e,s=>Rn(s,s,Oe))}validateEmptyOrAlternatives(e){return fe(e,s=>rr(s,Oe))}validateAmbiguousAlternationAlternatives(e,s){return fe(e,n=>ar(n,s,Oe))}validateSomeNonEmptyLookaheadPath(e,s){return or(e,s,Oe)}buildLookaheadForAlternation(e){return Yi(e.prodOccurrence,e.rule,e.maxLookahead,e.hasPredicates,e.dynamicTokensEnabled,Ji)}buildLookaheadForOptional(e){return Xi(e.prodOccurrence,e.rule,e.maxLookahead,e.dynamicTokensEnabled,Rs(e.prodType),qi)}};var Cs=class{initLooksAhead(e){this.dynamicTokensEnabled=T(e,"dynamicTokensEnabled")?e.dynamicTokensEnabled:de.dynamicTokensEnabled,this.maxLookahead=T(e,"maxLookahead")?e.maxLookahead:de.maxLookahead,this.lookaheadStrategy=T(e,"lookaheadStrategy")?e.lookaheadStrategy:new zt({maxLookahead:this.maxLookahead}),this.lookAheadFuncsCache=new Map}preComputeLookaheadFunctions(e){E(e,s=>{this.TRACE_INIT(`${s.name} Rule Lookahead`,()=>{let{alternation:n,repetition:i,option:r,repetitionMandatory:o,repetitionMandatoryWithSeparator:l,repetitionWithSeparator:a}=So(s);E(n,h=>{let d=h.idx===0?"":h.idx;this.TRACE_INIT(`${me(h)}${d}`,()=>{let u=this.lookaheadStrategy.buildLookaheadForAlternation({prodOccurrence:h.idx,rule:s,maxLookahead:h.maxLookahead||this.maxLookahead,hasPredicates:h.hasPredicates,dynamicTokensEnabled:this.dynamicTokensEnabled}),p=Os(this.fullRuleNameToShort[s.name],256,h.idx);this.setLaFuncCache(p,u)})}),E(i,h=>{this.computeLookaheadFunc(s,h.idx,768,"Repetition",h.maxLookahead,me(h))}),E(r,h=>{this.computeLookaheadFunc(s,h.idx,512,"Option",h.maxLookahead,me(h))}),E(o,h=>{this.computeLookaheadFunc(s,h.idx,1024,"RepetitionMandatory",h.maxLookahead,me(h))}),E(l,h=>{this.computeLookaheadFunc(s,h.idx,1536,"RepetitionMandatoryWithSeparator",h.maxLookahead,me(h))}),E(a,h=>{this.computeLookaheadFunc(s,h.idx,1280,"RepetitionWithSeparator",h.maxLookahead,me(h))})})})}computeLookaheadFunc(e,s,n,i,r,o){this.TRACE_INIT(`${o}${s===0?"":s}`,()=>{let l=this.lookaheadStrategy.buildLookaheadForOptional({prodOccurrence:s,rule:e,maxLookahead:r||this.maxLookahead,dynamicTokensEnabled:this.dynamicTokensEnabled,prodType:i}),a=Os(this.fullRuleNameToShort[e.name],n,s);this.setLaFuncCache(a,l)})}getKeyForAutomaticLookahead(e,s){let n=this.getLastExplicitRuleShortName();return Os(n,e,s)}getLaFuncFromCache(e){return this.lookAheadFuncsCache.get(e)}setLaFuncCache(e,s){this.lookAheadFuncsCache.set(e,s)}},On=class extends ue{constructor(){super(...arguments),this.dslMethods={option:[],alternation:[],repetition:[],repetitionWithSeparator:[],repetitionMandatory:[],repetitionMandatoryWithSeparator:[]}}reset(){this.dslMethods={option:[],alternation:[],repetition:[],repetitionWithSeparator:[],repetitionMandatory:[],repetitionMandatoryWithSeparator:[]}}visitOption(e){this.dslMethods.option.push(e)}visitRepetitionWithSeparator(e){this.dslMethods.repetitionWithSeparator.push(e)}visitRepetitionMandatory(e){this.dslMethods.repetitionMandatory.push(e)}visitRepetitionMandatoryWithSeparator(e){this.dslMethods.repetitionMandatoryWithSeparator.push(e)}visitRepetition(e){this.dslMethods.repetition.push(e)}visitAlternation(e){this.dslMethods.alternation.push(e)}},ks=new On;function So(t){ks.reset(),t.accept(ks);let e=ks.dslMethods;return ks.reset(),e}function xn(t,e){isNaN(t.startOffset)===!0?(t.startOffset=e.startOffset,t.endOffset=e.endOffset):t.endOffseto.msg);throw Error(`Errors Detected in CST Visitor <${this.constructor.name}>: + ${r.join(` + +`).replace(/\n/g,` + `)}`)}}};return s.prototype=n,s.prototype.constructor=s,s._RULE_NAMES=e,s}function gr(t,e,s){let n=function(){};_n(n,t+"BaseSemanticsWithDefaults");let i=Object.create(s.prototype);return E(e,r=>{i[r]=Ro}),n.prototype=i,n.prototype.constructor=n,n}var bn;(function(t){t[t.REDUNDANT_METHOD=0]="REDUNDANT_METHOD",t[t.MISSING_METHOD=1]="MISSING_METHOD"})(bn||(bn={}));function Lo(t,e){return No(t,e)}function No(t,e){let s=le(e,i=>xe(t[i])===!1),n=m(s,i=>({msg:`Missing visitor method: <${i}> on ${t.constructor.name} CST Visitor.`,type:bn.MISSING_METHOD,methodName:i}));return Ue(n)}var bs=class{initTreeBuilder(e){if(this.CST_STACK=[],this.outputCst=e.outputCst,this.nodeLocationTracking=T(e,"nodeLocationTracking")?e.nodeLocationTracking:de.nodeLocationTracking,!this.outputCst)this.cstInvocationStateUpdate=J,this.cstFinallyStateUpdate=J,this.cstPostTerminal=J,this.cstPostNonTerminal=J,this.cstPostRule=J;else if(/full/i.test(this.nodeLocationTracking))this.recoveryEnabled?(this.setNodeLocationFromToken=vn,this.setNodeLocationFromNode=vn,this.cstPostRule=J,this.setInitialNodeLocation=this.setInitialNodeLocationFullRecovery):(this.setNodeLocationFromToken=J,this.setNodeLocationFromNode=J,this.cstPostRule=this.cstPostRuleFull,this.setInitialNodeLocation=this.setInitialNodeLocationFullRegular);else if(/onlyOffset/i.test(this.nodeLocationTracking))this.recoveryEnabled?(this.setNodeLocationFromToken=xn,this.setNodeLocationFromNode=xn,this.cstPostRule=J,this.setInitialNodeLocation=this.setInitialNodeLocationOnlyOffsetRecovery):(this.setNodeLocationFromToken=J,this.setNodeLocationFromNode=J,this.cstPostRule=this.cstPostRuleOnlyOffset,this.setInitialNodeLocation=this.setInitialNodeLocationOnlyOffsetRegular);else if(/none/i.test(this.nodeLocationTracking))this.setNodeLocationFromToken=J,this.setNodeLocationFromNode=J,this.cstPostRule=J,this.setInitialNodeLocation=J;else throw Error(`Invalid config option: "${e.nodeLocationTracking}"`)}setInitialNodeLocationOnlyOffsetRecovery(e){e.location={startOffset:NaN,endOffset:NaN}}setInitialNodeLocationOnlyOffsetRegular(e){e.location={startOffset:this.LA(1).startOffset,endOffset:NaN}}setInitialNodeLocationFullRecovery(e){e.location={startOffset:NaN,startLine:NaN,startColumn:NaN,endOffset:NaN,endLine:NaN,endColumn:NaN}}setInitialNodeLocationFullRegular(e){let s=this.LA(1);e.location={startOffset:s.startOffset,startLine:s.startLine,startColumn:s.startColumn,endOffset:NaN,endLine:NaN,endColumn:NaN}}cstInvocationStateUpdate(e){let s={name:e,children:Object.create(null)};this.setInitialNodeLocation(s),this.CST_STACK.push(s)}cstFinallyStateUpdate(){this.CST_STACK.pop()}cstPostRuleFull(e){let s=this.LA(0),n=e.location;n.startOffset<=s.startOffset?(n.endOffset=s.endOffset,n.endLine=s.endLine,n.endColumn=s.endColumn):(n.startOffset=NaN,n.startLine=NaN,n.startColumn=NaN)}cstPostRuleOnlyOffset(e){let s=this.LA(0),n=e.location;n.startOffset<=s.startOffset?n.endOffset=s.endOffset:n.startOffset=NaN}cstPostTerminal(e,s){let n=this.CST_STACK[this.CST_STACK.length-1];mr(n,s,e),this.setNodeLocationFromToken(n.location,s)}cstPostNonTerminal(e,s){let n=this.CST_STACK[this.CST_STACK.length-1];Er(n,s,e),this.setNodeLocationFromNode(n.location,e.location)}getBaseCstVisitorConstructor(){if(ce(this.baseCstVisitorConstructor)){let e=Tr(this.className,Me(this.gastProductionsCache));return this.baseCstVisitorConstructor=e,e}return this.baseCstVisitorConstructor}getBaseCstVisitorConstructorWithDefaults(){if(ce(this.baseCstVisitorWithDefaultsConstructor)){let e=gr(this.className,Me(this.gastProductionsCache),this.getBaseCstVisitorConstructor());return this.baseCstVisitorWithDefaultsConstructor=e,e}return this.baseCstVisitorWithDefaultsConstructor}getLastExplicitRuleShortName(){let e=this.RULE_STACK;return e[e.length-1]}getPreviousExplicitRuleShortName(){let e=this.RULE_STACK;return e[e.length-2]}getLastExplicitRuleOccurrenceIndex(){let e=this.RULE_OCCURRENCE_STACK;return e[e.length-1]}};var Ms=class{initLexerAdapter(){this.tokVector=[],this.tokVectorLength=0,this.currIdx=-1}set input(e){if(this.selfAnalysisDone!==!0)throw Error("Missing invocation at the end of the Parser's constructor.");this.reset(),this.tokVector=e,this.tokVectorLength=e.length}get input(){return this.tokVector}SKIP_TOKEN(){return this.currIdx<=this.tokVector.length-2?(this.consumeToken(),this.LA(1)):Tt}LA(e){let s=this.currIdx+e;return s<0||this.tokVectorLength<=s?Tt:this.tokVector[s]}consumeToken(){this.currIdx++}exportLexerState(){return this.currIdx}importLexerState(e){this.currIdx=e}resetLexerState(){this.currIdx=-1}moveToTerminatedState(){this.currIdx=this.tokVector.length-1}getLexerPosition(){return this.exportLexerState()}};var Us=class{ACTION(e){return e.call(this)}consume(e,s,n){return this.consumeInternal(s,e,n)}subrule(e,s,n){return this.subruleInternal(s,e,n)}option(e,s){return this.optionInternal(s,e)}or(e,s){return this.orInternal(s,e)}many(e,s){return this.manyInternal(e,s)}atLeastOne(e,s){return this.atLeastOneInternal(e,s)}CONSUME(e,s){return this.consumeInternal(e,0,s)}CONSUME1(e,s){return this.consumeInternal(e,1,s)}CONSUME2(e,s){return this.consumeInternal(e,2,s)}CONSUME3(e,s){return this.consumeInternal(e,3,s)}CONSUME4(e,s){return this.consumeInternal(e,4,s)}CONSUME5(e,s){return this.consumeInternal(e,5,s)}CONSUME6(e,s){return this.consumeInternal(e,6,s)}CONSUME7(e,s){return this.consumeInternal(e,7,s)}CONSUME8(e,s){return this.consumeInternal(e,8,s)}CONSUME9(e,s){return this.consumeInternal(e,9,s)}SUBRULE(e,s){return this.subruleInternal(e,0,s)}SUBRULE1(e,s){return this.subruleInternal(e,1,s)}SUBRULE2(e,s){return this.subruleInternal(e,2,s)}SUBRULE3(e,s){return this.subruleInternal(e,3,s)}SUBRULE4(e,s){return this.subruleInternal(e,4,s)}SUBRULE5(e,s){return this.subruleInternal(e,5,s)}SUBRULE6(e,s){return this.subruleInternal(e,6,s)}SUBRULE7(e,s){return this.subruleInternal(e,7,s)}SUBRULE8(e,s){return this.subruleInternal(e,8,s)}SUBRULE9(e,s){return this.subruleInternal(e,9,s)}OPTION(e){return this.optionInternal(e,0)}OPTION1(e){return this.optionInternal(e,1)}OPTION2(e){return this.optionInternal(e,2)}OPTION3(e){return this.optionInternal(e,3)}OPTION4(e){return this.optionInternal(e,4)}OPTION5(e){return this.optionInternal(e,5)}OPTION6(e){return this.optionInternal(e,6)}OPTION7(e){return this.optionInternal(e,7)}OPTION8(e){return this.optionInternal(e,8)}OPTION9(e){return this.optionInternal(e,9)}OR(e){return this.orInternal(e,0)}OR1(e){return this.orInternal(e,1)}OR2(e){return this.orInternal(e,2)}OR3(e){return this.orInternal(e,3)}OR4(e){return this.orInternal(e,4)}OR5(e){return this.orInternal(e,5)}OR6(e){return this.orInternal(e,6)}OR7(e){return this.orInternal(e,7)}OR8(e){return this.orInternal(e,8)}OR9(e){return this.orInternal(e,9)}MANY(e){this.manyInternal(0,e)}MANY1(e){this.manyInternal(1,e)}MANY2(e){this.manyInternal(2,e)}MANY3(e){this.manyInternal(3,e)}MANY4(e){this.manyInternal(4,e)}MANY5(e){this.manyInternal(5,e)}MANY6(e){this.manyInternal(6,e)}MANY7(e){this.manyInternal(7,e)}MANY8(e){this.manyInternal(8,e)}MANY9(e){this.manyInternal(9,e)}MANY_SEP(e){this.manySepFirstInternal(0,e)}MANY_SEP1(e){this.manySepFirstInternal(1,e)}MANY_SEP2(e){this.manySepFirstInternal(2,e)}MANY_SEP3(e){this.manySepFirstInternal(3,e)}MANY_SEP4(e){this.manySepFirstInternal(4,e)}MANY_SEP5(e){this.manySepFirstInternal(5,e)}MANY_SEP6(e){this.manySepFirstInternal(6,e)}MANY_SEP7(e){this.manySepFirstInternal(7,e)}MANY_SEP8(e){this.manySepFirstInternal(8,e)}MANY_SEP9(e){this.manySepFirstInternal(9,e)}AT_LEAST_ONE(e){this.atLeastOneInternal(0,e)}AT_LEAST_ONE1(e){return this.atLeastOneInternal(1,e)}AT_LEAST_ONE2(e){this.atLeastOneInternal(2,e)}AT_LEAST_ONE3(e){this.atLeastOneInternal(3,e)}AT_LEAST_ONE4(e){this.atLeastOneInternal(4,e)}AT_LEAST_ONE5(e){this.atLeastOneInternal(5,e)}AT_LEAST_ONE6(e){this.atLeastOneInternal(6,e)}AT_LEAST_ONE7(e){this.atLeastOneInternal(7,e)}AT_LEAST_ONE8(e){this.atLeastOneInternal(8,e)}AT_LEAST_ONE9(e){this.atLeastOneInternal(9,e)}AT_LEAST_ONE_SEP(e){this.atLeastOneSepFirstInternal(0,e)}AT_LEAST_ONE_SEP1(e){this.atLeastOneSepFirstInternal(1,e)}AT_LEAST_ONE_SEP2(e){this.atLeastOneSepFirstInternal(2,e)}AT_LEAST_ONE_SEP3(e){this.atLeastOneSepFirstInternal(3,e)}AT_LEAST_ONE_SEP4(e){this.atLeastOneSepFirstInternal(4,e)}AT_LEAST_ONE_SEP5(e){this.atLeastOneSepFirstInternal(5,e)}AT_LEAST_ONE_SEP6(e){this.atLeastOneSepFirstInternal(6,e)}AT_LEAST_ONE_SEP7(e){this.atLeastOneSepFirstInternal(7,e)}AT_LEAST_ONE_SEP8(e){this.atLeastOneSepFirstInternal(8,e)}AT_LEAST_ONE_SEP9(e){this.atLeastOneSepFirstInternal(9,e)}RULE(e,s,n=gt){if(F(this.definedRulesNames,e)){let o={message:Oe.buildDuplicateRuleNameError({topLevelRule:e,grammarName:this.className}),type:Z.DUPLICATE_RULE_NAME,ruleName:e};this.definitionErrors.push(o)}this.definedRulesNames.push(e);let i=this.defineRule(e,s,n);return this[e]=i,i}OVERRIDE_RULE(e,s,n=gt){let i=ir(e,this.definedRulesNames,this.className);this.definitionErrors=this.definitionErrors.concat(i);let r=this.defineRule(e,s,n);return this[e]=r,r}BACKTRACK(e,s){return function(){this.isBackTrackingStack.push(1);let n=this.saveRecogState();try{return e.apply(this,s),!0}catch(i){if(ze(i))return!1;throw i}finally{this.reloadRecogState(n),this.isBackTrackingStack.pop()}}}getGAstProductions(){return this.gastProductionsCache}getSerializedGastProductions(){return as(U(this.gastProductionsCache))}};var ws=class{initRecognizerEngine(e,s){if(this.className=this.constructor.name,this.shortRuleNameToFull={},this.fullRuleNameToShort={},this.ruleShortNameIdx=256,this.tokenMatcher=ft,this.subruleIdx=0,this.definedRulesNames=[],this.tokensMap={},this.isBackTrackingStack=[],this.RULE_STACK=[],this.RULE_OCCURRENCE_STACK=[],this.gastProductionsCache={},T(s,"serializedGrammar"))throw Error(`The Parser's configuration can no longer contain a property. + See: https://chevrotain.io/docs/changes/BREAKING_CHANGES.html#_6-0-0 + For Further details.`);if(X(e)){if(O(e))throw Error(`A Token Vocabulary cannot be empty. + Note that the first argument for the parser constructor + is no longer a Token vector (since v4.0).`);if(typeof e[0].startOffset=="number")throw Error(`The Parser constructor no longer accepts a token vector as the first argument. + See: https://chevrotain.io/docs/changes/BREAKING_CHANGES.html#_4-0-0 + For Further details.`)}if(X(e))this.tokensMap=q(e,(r,o)=>(r[o.name]=o,r),{});else if(T(e,"modes")&&oe(Q(U(e.modes)),Pi)){let r=Q(U(e.modes)),o=kt(r);this.tokensMap=q(o,(l,a)=>(l[a.name]=a,l),{})}else if(ci(e))this.tokensMap=M(e);else throw new Error(" argument must be An Array of Token constructors, A dictionary of Token constructors or an IMultiModeLexerDefinition");this.tokensMap.EOF=Ee;let n=T(e,"modes")?Q(U(e.modes)):U(e),i=oe(n,r=>O(r.categoryMatches));this.tokenMatcher=i?ft:De,Fe(U(this.tokensMap))}defineRule(e,s,n){if(this.selfAnalysisDone)throw Error(`Grammar rule <${e}> may not be defined after the 'performSelfAnalysis' method has been called' +Make sure that all grammar rule definitions are done before 'performSelfAnalysis' is called.`);let i=T(n,"resyncEnabled")?n.resyncEnabled:gt.resyncEnabled,r=T(n,"recoveryValueFunc")?n.recoveryValueFunc:gt.recoveryValueFunc,o=this.ruleShortNameIdx<<12;this.ruleShortNameIdx++,this.shortRuleNameToFull[o]=e,this.fullRuleNameToShort[e]=o;let l;return this.outputCst===!0?l=function(...d){try{this.ruleInvocationStateUpdate(o,e,this.subruleIdx),s.apply(this,d);let u=this.CST_STACK[this.CST_STACK.length-1];return this.cstPostRule(u),u}catch(u){return this.invokeRuleCatch(u,i,r)}finally{this.ruleFinallyStateUpdate()}}:l=function(...d){try{return this.ruleInvocationStateUpdate(o,e,this.subruleIdx),s.apply(this,d)}catch(u){return this.invokeRuleCatch(u,i,r)}finally{this.ruleFinallyStateUpdate()}},Object.assign(l,{ruleName:e,originalGrammarAction:s})}invokeRuleCatch(e,s,n){let i=this.RULE_STACK.length===1,r=s&&!this.isBackTracking()&&this.recoveryEnabled;if(ze(e)){let o=e;if(r){let l=this.findReSyncTokenType();if(this.isInCurrentRuleReSyncSet(l))if(o.resyncedTokens=this.reSyncTo(l),this.outputCst){let a=this.CST_STACK[this.CST_STACK.length-1];return a.recoveredNode=!0,a}else return n(e);else{if(this.outputCst){let a=this.CST_STACK[this.CST_STACK.length-1];a.recoveredNode=!0,o.partialCstResult=a}throw o}}else{if(i)return this.moveToTerminatedState(),n(e);throw o}}else throw e}optionInternal(e,s){let n=this.getKeyForAutomaticLookahead(512,s);return this.optionInternalLogic(e,s,n)}optionInternalLogic(e,s,n){let i=this.getLaFuncFromCache(n),r;if(typeof e!="function"){r=e.DEF;let o=e.GATE;if(o!==void 0){let l=i;i=()=>o.call(this)&&l.call(this)}}else r=e;if(i.call(this)===!0)return r.call(this)}atLeastOneInternal(e,s){let n=this.getKeyForAutomaticLookahead(1024,e);return this.atLeastOneInternalLogic(e,s,n)}atLeastOneInternalLogic(e,s,n){let i=this.getLaFuncFromCache(n),r;if(typeof s!="function"){r=s.DEF;let o=s.GATE;if(o!==void 0){let l=i;i=()=>o.call(this)&&l.call(this)}}else r=s;if(i.call(this)===!0){let o=this.doSingleRepetition(r);for(;i.call(this)===!0&&o===!0;)o=this.doSingleRepetition(r)}else throw this.raiseEarlyExitException(e,B.REPETITION_MANDATORY,s.ERR_MSG);this.attemptInRepetitionRecovery(this.atLeastOneInternal,[e,s],i,1024,e,gs)}atLeastOneSepFirstInternal(e,s){let n=this.getKeyForAutomaticLookahead(1536,e);this.atLeastOneSepFirstInternalLogic(e,s,n)}atLeastOneSepFirstInternalLogic(e,s,n){let i=s.DEF,r=s.SEP;if(this.getLaFuncFromCache(n).call(this)===!0){i.call(this);let l=()=>this.tokenMatcher(this.LA(1),r);for(;this.tokenMatcher(this.LA(1),r)===!0;)this.CONSUME(r),i.call(this);this.attemptInRepetitionRecovery(this.repetitionSepSecondInternal,[e,r,l,i,Bt],l,1536,e,Bt)}else throw this.raiseEarlyExitException(e,B.REPETITION_MANDATORY_WITH_SEPARATOR,s.ERR_MSG)}manyInternal(e,s){let n=this.getKeyForAutomaticLookahead(768,e);return this.manyInternalLogic(e,s,n)}manyInternalLogic(e,s,n){let i=this.getLaFuncFromCache(n),r;if(typeof s!="function"){r=s.DEF;let l=s.GATE;if(l!==void 0){let a=i;i=()=>l.call(this)&&a.call(this)}}else r=s;let o=!0;for(;i.call(this)===!0&&o===!0;)o=this.doSingleRepetition(r);this.attemptInRepetitionRecovery(this.manyInternal,[e,s],i,768,e,Ts,o)}manySepFirstInternal(e,s){let n=this.getKeyForAutomaticLookahead(1280,e);this.manySepFirstInternalLogic(e,s,n)}manySepFirstInternalLogic(e,s,n){let i=s.DEF,r=s.SEP;if(this.getLaFuncFromCache(n).call(this)===!0){i.call(this);let l=()=>this.tokenMatcher(this.LA(1),r);for(;this.tokenMatcher(this.LA(1),r)===!0;)this.CONSUME(r),i.call(this);this.attemptInRepetitionRecovery(this.repetitionSepSecondInternal,[e,r,l,i,Ft],l,1280,e,Ft)}}repetitionSepSecondInternal(e,s,n,i,r){for(;n();)this.CONSUME(s),i.call(this);this.attemptInRepetitionRecovery(this.repetitionSepSecondInternal,[e,s,n,i,r],n,1536,e,r)}doSingleRepetition(e){let s=this.getLexerPosition();return e.call(this),this.getLexerPosition()>s}orInternal(e,s){let n=this.getKeyForAutomaticLookahead(256,s),i=X(e)?e:e.DEF,o=this.getLaFuncFromCache(n).call(this,i);if(o!==void 0)return i[o].ALT.call(this);this.raiseNoAltException(s,e.ERR_MSG)}ruleFinallyStateUpdate(){if(this.RULE_STACK.pop(),this.RULE_OCCURRENCE_STACK.pop(),this.cstFinallyStateUpdate(),this.RULE_STACK.length===0&&this.isAtEndOfInput()===!1){let e=this.LA(1),s=this.errorMessageProvider.buildNotAllInputParsedMessage({firstRedundant:e,ruleName:this.getCurrRuleFullName()});this.SAVE_ERROR(new Vt(s,e))}}subruleInternal(e,s,n){let i;try{let r=n!==void 0?n.ARGS:void 0;return this.subruleIdx=s,i=e.apply(this,r),this.cstPostNonTerminal(i,n!==void 0&&n.LABEL!==void 0?n.LABEL:e.ruleName),i}catch(r){throw this.subruleInternalError(r,n,e.ruleName)}}subruleInternalError(e,s,n){throw ze(e)&&e.partialCstResult!==void 0&&(this.cstPostNonTerminal(e.partialCstResult,s!==void 0&&s.LABEL!==void 0?s.LABEL:n),delete e.partialCstResult),e}consumeInternal(e,s,n){let i;try{let r=this.LA(1);this.tokenMatcher(r,e)===!0?(this.consumeToken(),i=r):this.consumeInternalError(e,r,n)}catch(r){i=this.consumeInternalRecovery(e,s,r)}return this.cstPostTerminal(n!==void 0&&n.LABEL!==void 0?n.LABEL:e.name,i),i}consumeInternalError(e,s,n){let i,r=this.LA(0);throw n!==void 0&&n.ERR_MSG?i=n.ERR_MSG:i=this.errorMessageProvider.buildMismatchTokenMessage({expected:e,actual:s,previous:r,ruleName:this.getCurrRuleFullName()}),this.SAVE_ERROR(new nt(i,s,r))}consumeInternalRecovery(e,s,n){if(this.recoveryEnabled&&n.name==="MismatchedTokenException"&&!this.isBackTracking()){let i=this.getFollowsForInRuleRecovery(e,s);try{return this.tryInRuleRecovery(e,i)}catch(r){throw r.name===In?n:r}}else throw n}saveRecogState(){let e=this.errors,s=M(this.RULE_STACK);return{errors:e,lexerState:this.exportLexerState(),RULE_STACK:s,CST_STACK:this.CST_STACK}}reloadRecogState(e){this.errors=e.errors,this.importLexerState(e.lexerState),this.RULE_STACK=e.RULE_STACK}ruleInvocationStateUpdate(e,s,n){this.RULE_OCCURRENCE_STACK.push(n),this.RULE_STACK.push(e),this.cstInvocationStateUpdate(s)}isBackTracking(){return this.isBackTrackingStack.length!==0}getCurrRuleFullName(){let e=this.getLastExplicitRuleShortName();return this.shortRuleNameToFull[e]}shortRuleNameToFullName(e){return this.shortRuleNameToFull[e]}isAtEndOfInput(){return this.tokenMatcher(this.LA(1),Ee)}reset(){this.resetLexerState(),this.subruleIdx=0,this.isBackTrackingStack=[],this.errors=[],this.RULE_STACK=[],this.CST_STACK=[],this.RULE_OCCURRENCE_STACK=[]}};var Ps=class{initErrorHandler(e){this._errors=[],this.errorMessageProvider=T(e,"errorMessageProvider")?e.errorMessageProvider:de.errorMessageProvider}SAVE_ERROR(e){if(ze(e))return e.context={ruleStack:this.getHumanReadableRuleStack(),ruleOccurrenceStack:M(this.RULE_OCCURRENCE_STACK)},this._errors.push(e),e;throw Error("Trying to save an Error which is not a RecognitionException")}get errors(){return M(this._errors)}set errors(e){this._errors=e}raiseEarlyExitException(e,s,n){let i=this.getCurrRuleFullName(),r=this.getGAstProductions()[i],l=Gt(e,r,s,this.maxLookahead)[0],a=[];for(let d=1;d<=this.maxLookahead;d++)a.push(this.LA(d));let h=this.errorMessageProvider.buildEarlyExitMessage({expectedIterationPaths:l,actual:a,previous:this.LA(0),customUserDescription:n,ruleName:i});throw this.SAVE_ERROR(new jt(h,this.LA(1),this.LA(0)))}raiseNoAltException(e,s){let n=this.getCurrRuleFullName(),i=this.getGAstProductions()[n],r=$t(e,i,this.maxLookahead),o=[];for(let h=1;h<=this.maxLookahead;h++)o.push(this.LA(h));let l=this.LA(0),a=this.errorMessageProvider.buildNoViableAltMessage({expectedPathsPerAlt:r,actual:o,previous:l,customUserDescription:s,ruleName:this.getCurrRuleFullName()});throw this.SAVE_ERROR(new Kt(a,this.LA(1),l))}};var Ds=class{initContentAssist(){}computeContentAssist(e,s){let n=this.gastProductionsCache[e];if(ce(n))throw Error(`Rule ->${e}<- does not exist in this grammar.`);return Ss([n],s,this.tokenMatcher,this.maxLookahead)}getNextPossibleTokenTypes(e){let s=ne(e.ruleStack),i=this.getGAstProductions()[s];return new Es(i,e).startWalking()}};var $s={description:"This Object indicates the Parser is during Recording Phase"};Object.freeze($s);var Ar=!0,Sr=Math.pow(2,8)-1,Rr=y({name:"RECORDING_PHASE_TOKEN",pattern:D.NA});Fe([Rr]);var Lr=st(Rr,`This IToken indicates the Parser is in Recording Phase + See: https://chevrotain.io/docs/guide/internals.html#grammar-recording for details`,-1,-1,-1,-1,-1,-1);Object.freeze(Lr);var Oo={name:`This CSTNode indicates the Parser is in Recording Phase + See: https://chevrotain.io/docs/guide/internals.html#grammar-recording for details`,children:{}},Fs=class{initGastRecorder(e){this.recordingProdStack=[],this.RECORDING_PHASE=!1}enableRecording(){this.RECORDING_PHASE=!0,this.TRACE_INIT("Enable Recording",()=>{for(let e=0;e<10;e++){let s=e>0?e:"";this[`CONSUME${s}`]=function(n,i){return this.consumeInternalRecord(n,e,i)},this[`SUBRULE${s}`]=function(n,i){return this.subruleInternalRecord(n,e,i)},this[`OPTION${s}`]=function(n){return this.optionInternalRecord(n,e)},this[`OR${s}`]=function(n){return this.orInternalRecord(n,e)},this[`MANY${s}`]=function(n){this.manyInternalRecord(e,n)},this[`MANY_SEP${s}`]=function(n){this.manySepFirstInternalRecord(e,n)},this[`AT_LEAST_ONE${s}`]=function(n){this.atLeastOneInternalRecord(e,n)},this[`AT_LEAST_ONE_SEP${s}`]=function(n){this.atLeastOneSepFirstInternalRecord(e,n)}}this.consume=function(e,s,n){return this.consumeInternalRecord(s,e,n)},this.subrule=function(e,s,n){return this.subruleInternalRecord(s,e,n)},this.option=function(e,s){return this.optionInternalRecord(s,e)},this.or=function(e,s){return this.orInternalRecord(s,e)},this.many=function(e,s){this.manyInternalRecord(e,s)},this.atLeastOne=function(e,s){this.atLeastOneInternalRecord(e,s)},this.ACTION=this.ACTION_RECORD,this.BACKTRACK=this.BACKTRACK_RECORD,this.LA=this.LA_RECORD})}disableRecording(){this.RECORDING_PHASE=!1,this.TRACE_INIT("Deleting Recording methods",()=>{let e=this;for(let s=0;s<10;s++){let n=s>0?s:"";delete e[`CONSUME${n}`],delete e[`SUBRULE${n}`],delete e[`OPTION${n}`],delete e[`OR${n}`],delete e[`MANY${n}`],delete e[`MANY_SEP${n}`],delete e[`AT_LEAST_ONE${n}`],delete e[`AT_LEAST_ONE_SEP${n}`]}delete e.consume,delete e.subrule,delete e.option,delete e.or,delete e.many,delete e.atLeastOne,delete e.ACTION,delete e.BACKTRACK,delete e.LA})}ACTION_RECORD(e){}BACKTRACK_RECORD(e,s){return()=>!0}LA_RECORD(e){return Tt}topLevelRuleRecord(e,s){try{let n=new he({definition:[],name:e});return n.name=e,this.recordingProdStack.push(n),s.call(this),this.recordingProdStack.pop(),n}catch(n){if(n.KNOWN_RECORDER_ERROR!==!0)try{n.message=n.message+` + This error was thrown during the "grammar recording phase" For more info see: + https://chevrotain.io/docs/guide/internals.html#grammar-recording`}catch{throw n}throw n}}optionInternalRecord(e,s){return Yt.call(this,w,e,s)}atLeastOneInternalRecord(e,s){Yt.call(this,j,s,e)}atLeastOneSepFirstInternalRecord(e,s){Yt.call(this,z,s,e,Ar)}manyInternalRecord(e,s){Yt.call(this,v,s,e)}manySepFirstInternalRecord(e,s){Yt.call(this,G,s,e,Ar)}orInternalRecord(e,s){return ko.call(this,e,s)}subruleInternalRecord(e,s,n){if(Bs(s),!e||T(e,"ruleName")===!1){let l=new Error(` argument is invalid expecting a Parser method reference but got: <${JSON.stringify(e)}> + inside top level rule: <${this.recordingProdStack[0].name}>`);throw l.KNOWN_RECORDER_ERROR=!0,l}let i=ve(this.recordingProdStack),r=e.ruleName,o=new _({idx:s,nonTerminalName:r,label:n?.LABEL,referencedRule:void 0});return i.definition.push(o),this.outputCst?Oo:$s}consumeInternalRecord(e,s,n){if(Bs(s),!pn(e)){let o=new Error(` argument is invalid expecting a TokenType reference but got: <${JSON.stringify(e)}> + inside top level rule: <${this.recordingProdStack[0].name}>`);throw o.KNOWN_RECORDER_ERROR=!0,o}let i=ve(this.recordingProdStack),r=new k({idx:s,terminalType:e,label:n?.LABEL});return i.definition.push(r),Lr}};function Yt(t,e,s,n=!1){Bs(s);let i=ve(this.recordingProdStack),r=xe(e)?e:e.DEF,o=new t({definition:[],idx:s});return n&&(o.separator=e.SEP),T(e,"MAX_LOOKAHEAD")&&(o.maxLookahead=e.MAX_LOOKAHEAD),this.recordingProdStack.push(o),r.call(this),i.definition.push(o),this.recordingProdStack.pop(),$s}function ko(t,e){Bs(e);let s=ve(this.recordingProdStack),n=X(t)===!1,i=n===!1?t:t.DEF,r=new W({definition:[],idx:e,ignoreAmbiguities:n&&t.IGNORE_AMBIGUITIES===!0});T(t,"MAX_LOOKAHEAD")&&(r.maxLookahead=t.MAX_LOOKAHEAD);let o=rs(i,l=>xe(l.GATE));return r.hasPredicates=o,s.definition.push(r),E(i,l=>{let a=new b({definition:[]});r.definition.push(a),T(l,"IGNORE_AMBIGUITIES")?a.ignoreAmbiguities=l.IGNORE_AMBIGUITIES:T(l,"GATE")&&(a.ignoreAmbiguities=!0),this.recordingProdStack.push(a),l.ALT.call(this),this.recordingProdStack.pop()}),$s}function yr(t){return t===0?"":`${t}`}function Bs(t){if(t<0||t>Sr){let e=new Error(`Invalid DSL Method idx value: <${t}> + Idx value must be a none negative value smaller than ${Sr+1}`);throw e.KNOWN_RECORDER_ERROR=!0,e}}var Gs=class{initPerformanceTracer(e){if(T(e,"traceInitPerf")){let s=e.traceInitPerf,n=typeof s=="number";this.traceInitMaxIdent=n?s:1/0,this.traceInitPerf=n?s>0:s}else this.traceInitMaxIdent=0,this.traceInitPerf=de.traceInitPerf;this.traceInitIndent=-1}TRACE_INIT(e,s){if(this.traceInitPerf===!0){this.traceInitIndent++;let n=new Array(this.traceInitIndent+1).join(" ");this.traceInitIndent <${e}>`);let{time:i,value:r}=xt(s),o=i>10?console.warn:console.log;return this.traceInitIndent time: ${i}ms`),this.traceInitIndent--,r}else return s()}};function Nr(t,e){e.forEach(s=>{let n=s.prototype;Object.getOwnPropertyNames(n).forEach(i=>{if(i==="constructor")return;let r=Object.getOwnPropertyDescriptor(n,i);r&&(r.get||r.set)?Object.defineProperty(t.prototype,i,r):t.prototype[i]=s.prototype[i]})})}var Tt=st(Ee,"",NaN,NaN,NaN,NaN,NaN,NaN);Object.freeze(Tt);var de=Object.freeze({recoveryEnabled:!1,maxLookahead:3,dynamicTokensEnabled:!1,outputCst:!0,errorMessageProvider:ms,nodeLocationTracking:"none",traceInitPerf:!1,skipValidations:!1}),gt=Object.freeze({recoveryValueFunc:()=>{},resyncEnabled:!0}),Z;(function(t){t[t.INVALID_RULE_NAME=0]="INVALID_RULE_NAME",t[t.DUPLICATE_RULE_NAME=1]="DUPLICATE_RULE_NAME",t[t.INVALID_RULE_OVERRIDE=2]="INVALID_RULE_OVERRIDE",t[t.DUPLICATE_PRODUCTIONS=3]="DUPLICATE_PRODUCTIONS",t[t.UNRESOLVED_SUBRULE_REF=4]="UNRESOLVED_SUBRULE_REF",t[t.LEFT_RECURSION=5]="LEFT_RECURSION",t[t.NONE_LAST_EMPTY_ALT=6]="NONE_LAST_EMPTY_ALT",t[t.AMBIGUOUS_ALTS=7]="AMBIGUOUS_ALTS",t[t.CONFLICT_TOKENS_RULES_NAMESPACE=8]="CONFLICT_TOKENS_RULES_NAMESPACE",t[t.INVALID_TOKEN_NAME=9]="INVALID_TOKEN_NAME",t[t.NO_NON_EMPTY_LOOKAHEAD=10]="NO_NON_EMPTY_LOOKAHEAD",t[t.AMBIGUOUS_PREFIX_ALTS=11]="AMBIGUOUS_PREFIX_ALTS",t[t.TOO_MANY_ALTS=12]="TOO_MANY_ALTS",t[t.CUSTOM_LOOKAHEAD_VALIDATION=13]="CUSTOM_LOOKAHEAD_VALIDATION"})(Z||(Z={}));var Xt=class t{static performSelfAnalysis(e){throw Error("The **static** `performSelfAnalysis` method has been deprecated. \nUse the **instance** method with the same name instead.")}performSelfAnalysis(){this.TRACE_INIT("performSelfAnalysis",()=>{let e;this.selfAnalysisDone=!0;let s=this.className;this.TRACE_INIT("toFastProps",()=>{vt(this)}),this.TRACE_INIT("Grammar Recording",()=>{try{this.enableRecording(),E(this.definedRulesNames,i=>{let o=this[i].originalGrammarAction,l;this.TRACE_INIT(`${i} Rule`,()=>{l=this.topLevelRuleRecord(i,o)}),this.gastProductionsCache[i]=l})}finally{this.disableRecording()}});let n=[];if(this.TRACE_INIT("Grammar Resolving",()=>{n=lr({rules:U(this.gastProductionsCache)}),this.definitionErrors=this.definitionErrors.concat(n)}),this.TRACE_INIT("Grammar Validations",()=>{if(O(n)&&this.skipValidations===!1){let i=cr({rules:U(this.gastProductionsCache),tokenTypes:U(this.tokensMap),errMsgProvider:Oe,grammarName:s}),r=tr({lookaheadStrategy:this.lookaheadStrategy,rules:U(this.gastProductionsCache),tokenTypes:U(this.tokensMap),grammarName:s});this.definitionErrors=this.definitionErrors.concat(i,r)}}),O(this.definitionErrors)&&(this.recoveryEnabled&&this.TRACE_INIT("computeAllProdsFollows",()=>{let i=Ti(U(this.gastProductionsCache));this.resyncFollows=i}),this.TRACE_INIT("ComputeLookaheadFunctions",()=>{var i,r;(r=(i=this.lookaheadStrategy).initialize)===null||r===void 0||r.call(i,{rules:U(this.gastProductionsCache)}),this.preComputeLookaheadFunctions(U(this.gastProductionsCache))})),!t.DEFER_DEFINITION_ERRORS_HANDLING&&!O(this.definitionErrors))throw e=m(this.definitionErrors,i=>i.message),new Error(`Parser Definition Errors detected: + ${e.join(` +------------------------------- +`)}`)})}constructor(e,s){this.definitionErrors=[],this.selfAnalysisDone=!1;let n=this;if(n.initErrorHandler(s),n.initLexerAdapter(),n.initLooksAhead(s),n.initRecognizerEngine(e,s),n.initRecoverable(s),n.initTreeBuilder(s),n.initContentAssist(),n.initGastRecorder(s),n.initPerformanceTracer(s),T(s,"ignoredIssues"))throw new Error(`The IParserConfig property has been deprecated. + Please use the flag on the relevant DSL method instead. + See: https://chevrotain.io/docs/guide/resolving_grammar_errors.html#IGNORING_AMBIGUITIES + For further details.`);this.skipValidations=T(s,"skipValidations")?s.skipValidations:de.skipValidations}};Xt.DEFER_DEFINITION_ERRORS_HANDLING=!1;Nr(Xt,[Is,Cs,bs,Ms,ws,Us,Ps,Ds,Fs,Gs]);var Jt=class extends Xt{constructor(e,s=de){let n=M(s);n.outputCst=!0,super(e,n)}};function Mr(t,e){let s=t.lexer.tokenize(e);if(s.errors.length>0){let i=s.errors[0],r=Number.isFinite(i.offset)?i.offset:e.length,o=r+(Number.isFinite(i.length)?i.length:0);throw new Error(`Error lexing ${t.diagramType} diagram: ${i.message} at line ${i.line??1}, column ${i.column??1} [${r},${o})`)}t.parser.input=s.tokens;let n=t.entry();if(t.parser.errors.length>0)throw new Error(`Error parsing ${t.diagramType} diagram: ${t.parser.errors[0].message}`);t.visit(n)}c(Mr,"runChevrotainParse");var $={SOLID_ARROW:0,BACK_ARROW:1,LINE_SOLID:2,CIRCLE_ARROW:3,CROSS_ARROW:4,CIRCLE_ARROW_REVERSED:5,CROSS_ARROW_REVERSED:6},xo="LR",vo=qn.usecase,Gn=c(()=>({actors:new Map,useCases:new Map,systemBoundaries:new Map,relationships:[],notes:new Map,jsonNodes:new Map,classDefs:new Map,symbols:new Map,direction:xo,relationshipCounter:0,noteCounter:0,accTitle:"",accDescription:"",ast:void 0,config:structuredClone(vo)}),"createModel"),_o=c(t=>{if(!(t.actors instanceof Map)||!(t.useCases instanceof Map)||!(t.systemBoundaries instanceof Map)||!Array.isArray(t.relationships)||!(t.notes instanceof Map)||!(t.jsonNodes instanceof Map)||!(t.classDefs instanceof Map)||!(t.symbols instanceof Map)||!["TB","TD","BT","RL","LR"].includes(t.direction)||!Number.isSafeInteger(t.relationshipCounter)||t.relationshipCounter<0||!Number.isSafeInteger(t.noteCounter)||t.noteCounter<0||typeof t.accTitle!="string"||typeof t.accDescription!="string"||!t.config)throw new Error("Cannot commit an incomplete usecase model")},"assertCompleteModel"),C=Gn(),bo=c(()=>structuredClone(C.config),"getConfig"),Mo=c(()=>C.ast,"getAST"),Uo=c(t=>{let e=structuredClone(t);_o(e);let s=Qs(),n=en();try{ns(e.accTitle),is(e.accDescription),C=e}catch(i){throw ns(s),is(n),i}},"commit"),wo=c(()=>{C=Gn(),ei()},"clear"),Po=c(()=>C.actors,"getActors"),Do=c(t=>C.actors.get(t),"getActor"),Fo=c(()=>C.useCases,"getUseCases"),Bo=c(t=>C.useCases.get(t),"getUseCase"),$o=c(()=>C.systemBoundaries,"getSystemBoundaries"),Go=c(t=>C.systemBoundaries.get(t),"getSystemBoundary"),Wo=c(()=>C.relationships,"getRelationships"),Ko=c(()=>C.notes,"getNotes"),Vo=c(t=>C.notes.get(t),"getNote"),jo=c(()=>C.jsonNodes,"getJsonNodes"),zo=c(t=>C.jsonNodes.get(t),"getJsonNode"),Ho=c(()=>C.classDefs,"getClassDefs"),Yo=c(t=>C.classDefs.get(t),"getClassDef"),Ur=c(()=>C.direction,"getDirection"),it=c(t=>{let e=new Map;for(let s of["default",...t]){let n=C.classDefs.get(s);if(n)for(let i of n.styles){let r=i.trim(),o=r.indexOf(":"),l=(o===-1?r:r.slice(0,o)).trim();l&&e.set(l,r)}}return[...e.values()]},"getCompiledStyles"),Xo=c(t=>t.replaceAll("~","~0").replaceAll("/","~1"),"escapeJsonPointerPart"),Ir=c(t=>typeof t=="string"?t:t===null?"null":String(t),"displayJsonScalar"),Jo=c((t,e,s=n=>n)=>{let n=[],i=c((o,l,a)=>{n.push({key:s(o),accessibleKey:s(l),value:s(a)})},"append"),r=c((o,l,a)=>{if(Array.isArray(o)){if(o.length===0){i(l,l,"[]");return}if(o.every(d=>d===null||["string","number","boolean"].includes(typeof d))){for(let[d,u]of o.entries())i(d===0?l:"",l,Ir(u));return}for(let[d,u]of o.entries())r(u,`${l}[${d}]`,`${a}/${d}`);return}if(o!==null&&typeof o=="object"){let h=o,d=e[a]??Object.keys(h);if(d.length===0){i(l,l,"{}");return}for(let u of d){let p=l?`${l}.${u}`:u;r(h[u],p,`${a}/${Xo(u)}`)}return}i(l,l,Ir(o))},"visit");return r(t,"",""),n},"flattenJsonRows"),qo=c(t=>{switch(t.type){case"hollow":return"usecaseActorHollow";case"awesome":return"usecaseActorAwesome";case"icon":return"usecaseActorIcon";case"normal":return"usecaseActor"}},"actorShape"),Zo=c(t=>t.shape==="ellipse"?t.business?"usecaseBusiness":"usecaseEllipse":t.shape,"useCaseShape"),Qo=c(t=>{switch(t){case $.SOLID_ARROW:return{arrowTypeStart:"none",arrowTypeEnd:"arrow_point"};case $.BACK_ARROW:return{arrowTypeStart:"arrow_point",arrowTypeEnd:"none"};case $.CIRCLE_ARROW:return{arrowTypeStart:"none",arrowTypeEnd:"arrow_circle"};case $.CROSS_ARROW:return{arrowTypeStart:"none",arrowTypeEnd:"arrow_cross"};case $.CIRCLE_ARROW_REVERSED:return{arrowTypeStart:"arrow_circle",arrowTypeEnd:"none"};case $.CROSS_ARROW_REVERSED:return{arrowTypeStart:"arrow_cross",arrowTypeEnd:"none"};case $.LINE_SOLID:return{arrowTypeStart:"none",arrowTypeEnd:"none"}}},"associationMarkers"),el=c(t=>{switch(t.type){case"include":case"extend":return{arrowTypeStart:"none",arrowTypeEnd:"arrow_point",pattern:"dotted",label:t.type,labelType:"text"};case"generalization":return{arrowTypeStart:"none",arrowTypeEnd:"extension",pattern:"solid"};case"association":return{...Qo(t.arrowType),pattern:"solid",...t.label?{label:t.label}:{},...t.labelType?{labelType:t.labelType}:{}}}},"relationshipVisuals"),tl=c(t=>t.animate||t.animation?[`edge-animation-${t.animation??"fast"}`]:[],"animationClasses"),qt=c((...t)=>t.filter(e=>!!e).join(" "),"classNames"),sl=c(()=>{let t=tn(),e={...C.config,...t.usecase},s=c(a=>Qn(a,t),"sanitize"),n=c(a=>s(C.actors.get(a)?.label??C.useCases.get(a)?.label??C.jsonNodes.get(a)?.id??C.notes.get(a)?.label??a),"endpointLabel"),i=[],r=[],o=0,l=0;for(let a of C.actors.values())i.push({id:a.id,label:s(a.label),labelType:a.labelType,shape:qo(a),isGroup:!1,padding:10,look:t.look,colorIndex:o++,cssClasses:qt("default","usecase-actor",`usecase-actor-${a.type}`,a.business&&"usecase-business",...a.classes),cssStyles:[...a.styles],cssCompiledStyles:it(a.classes),actorType:a.type,business:a.business,...a.icon?{icon:a.icon}:{},...a.stereotype?{stereotype:s(a.stereotype)}:{},...a.parentId?{parentId:a.parentId}:{}});for(let a of C.useCases.values())i.push({id:a.id,label:s(a.label),labelType:a.labelType,shape:Zo(a),isGroup:!1,padding:a.shape==="ellipse"?20:10,look:t.look,colorIndex:o++,cssClasses:qt("default","usecase-element",`usecase-${a.shape}`,a.business&&"usecase-business",...a.classes),cssStyles:[...a.styles],cssCompiledStyles:it(a.classes),business:a.business,...a.stereotype?{stereotype:s(a.stereotype)}:{},...a.parentId?{parentId:a.parentId}:{}});for(let a of C.notes.values())i.push({id:a.id,label:s(a.label),labelType:a.labelType,shape:"note",isGroup:!1,padding:10,look:t.look,cssClasses:"default usecase-note",cssStyles:[],cssCompiledStyles:it([]),noteTarget:a.target,noteTargetLabel:s(C.actors.get(a.target)?.label??C.useCases.get(a.target)?.label??C.jsonNodes.get(a.target)?.id??a.target)});for(let a of C.jsonNodes.values())i.push({id:a.id,label:s(a.id),labelType:"text",shape:"usecaseJsonTable",isGroup:!1,padding:10,look:t.look,cssClasses:qt("default","usecase-json-table",...a.classes),cssStyles:[...a.styles],cssCompiledStyles:it(a.classes),jsonRows:Jo(a.value,a.propertyOrder,s)});for(let a of C.systemBoundaries.values())i.push({id:a.id,label:s(a.label),labelType:a.labelType,shape:"usecaseSystemBoundary",isGroup:!0,padding:20,look:t.look,colorIndex:l++,cssClasses:qt("default","system-boundary",`system-boundary-${a.type}`,...a.classes),cssStyles:[...a.styles],cssCompiledStyles:it(a.classes),boundaryType:a.type});for(let a of C.relationships){let{label:h,...d}=el(a);r.push({id:a.id,start:a.source,end:a.target,source:a.source,target:a.target,sourceLabel:n(a.source),targetLabel:n(a.target),type:"edge",relationshipType:a.type,internal:!1,...d,...h!==void 0?{label:s(h)}:{},labelpos:"c",classes:qt("default","relationship",`relationship-${a.type}`,...a.classes,...tl(a)),style:[...a.styles],cssCompiledStyles:it(a.classes),animate:a.animate,...a.animation?{animation:a.animation}:{},look:t.look,thickness:"normal",minlen:a.minlen,isUserDefinedId:a.explicitId})}for(let a of C.notes.values())r.push({id:`${a.id}-edge`,start:a.id,end:a.target,source:a.id,target:a.target,type:"edge",relationshipType:"note",sourceLabel:n(a.id),targetLabel:n(a.target),internal:!0,pattern:"dotted",arrowTypeStart:"none",arrowTypeEnd:"none",labelpos:"c",classes:"default relationship relationship-note",style:[],cssCompiledStyles:it([]),animate:!1,look:t.look,thickness:"normal",minlen:1,isUserDefinedId:!1});for(let a of i)a.wrappingWidth??=e.wrappingWidth,!a.isGroup&&!a.shape.startsWith("usecaseActor")&&(a.minWidth??=e.minNodeWidth),(a.shape==="usecaseEllipse"||a.shape==="usecaseBusiness")&&(a.spreadPorts=!0);return{nodes:i,edges:r,config:t,type:"usecase",layoutAlgorithm:"dagre",direction:Ur(),nodeSpacing:e.nodeSpacing,rankSpacing:e.rankSpacing,actorFontSize:e.actorFontSize,actorFontFamily:e.actorFontFamily,actorFontWeight:e.actorFontWeight,usecaseFontSize:e.usecaseFontSize,usecaseFontFamily:e.usecaseFontFamily,usecaseFontWeight:e.usecaseFontWeight,diagramPadding:e.diagramPadding,useMaxWidth:e.useMaxWidth,markers:["point","circle","cross","extension"]}},"getData"),Ys={getConfig:bo,createModel:Gn,commit:Uo,getAST:Mo,clear:wo,setDiagramTitle:ti,getDiagramTitle:si,setAccTitle:ns,getAccTitle:Qs,setAccDescription:is,getAccDescription:en,getActors:Po,getActor:Do,getUseCases:Fo,getUseCase:Bo,getSystemBoundaries:$o,getSystemBoundary:Go,getRelationships:Wo,getNotes:Ko,getNote:Vo,getJsonNodes:jo,getJsonNode:zo,getClassDefs:Ho,getClassDef:Yo,getDirection:Ur,getData:sl};function at(t,e,s){let n=[s];return n.index=e,n.input=t,n}c(at,"customMatch");var nl=c((t,e)=>{if(t[e]!=='"'||t[e+1]!=="`")return null;for(let s=e+2;s{if(t[e]!=="%"||t[e+1]!=="%")return null;for(let n=e-1;n>=0;n--){let i=t[n];if(i===` +`||i==="\r")break;if(i!==" "&&i!==" ")return null}let s=e+2;for(;s{for(let s=e-1;s>=0;s--){let n=t[s];if(n===` +`||n==="\r")return!0;if(n!==" "&&n!==" ")return!1}return!0},"isIndentedLineStart"),Pr=c((t,e,s)=>{if(!wr(t,e))return null;let n=s.exec(t.slice(e));return n?at(t,e,n[0]):null},"matchAccessibilityLine"),rl=c((t,e)=>{if(!wr(t,e))return null;let s=/^accDescr[\t ]*{/.exec(t.slice(e));if(!s)return null;let n=t.indexOf("}",e+s[0].length);return n===-1?null:at(t,e,t.slice(e,n+1))},"matchAccDescrBlock"),al=c((t,e)=>{if(t[e]!=="{")return null;let s=0,n=!1,i=!1;for(let r=e;r{let s=t.indexOf(">>",e);if(s===-1||/[\n\r]/.test(t.slice(e,s)))return null;let n=t.slice(e,s);return n.trim()?at(t,e,n):null},"matchStereotypeText"),ee=y({name:"LABEL_TEXT",pattern:D.NA}),St=y({name:"WORD",pattern:D.NA,categories:ee}),Wn=y({name:"NUMBER",pattern:/(?:\d+\.\d+|\d+|\.\d+)(?:[A-Za-z]+)?/,categories:ee}),K=y({name:"IDENTIFIER",pattern:/\w+/,longer_alt:Wn,categories:St}),ll=y({name:"HWS",pattern:/[\t ]+/,group:D.SKIPPED}),$e=y({name:"MARKDOWN_STRING",pattern:nl,start_chars_hint:['"'],line_breaks:!0}),cl=y({name:"UNCLOSED_MARKDOWN_STRING",pattern:/"`[^]*/,line_breaks:!0}),wn=y({name:"COMMENT",pattern:il,start_chars_hint:["%"],line_breaks:!1}),Be=y({name:"NEWLINE",pattern:/\r\n|\n|\r/,line_breaks:!0}),Dr=y({name:"ACC_DESCR_BLOCK",pattern:rl,start_chars_hint:["a"],line_breaks:!0}),hl=/^accTitle[\t ]*:[^\n\r]*/,ul=/^accDescr[\t ]*:[^\n\r]*/,Fr=y({name:"ACC_TITLE_LINE",pattern:c((t,e)=>Pr(t,e,hl),"pattern"),start_chars_hint:["a"],line_breaks:!1}),Br=y({name:"ACC_DESCR_LINE",pattern:c((t,e)=>Pr(t,e,ul),"pattern"),start_chars_hint:["a"],line_breaks:!1}),$r=y({name:"JSON_DECLARATION_START",pattern:/json[\t ]+\w+[\t ]*@[\t ]*(?={)/,push_mode:"jsonBody"}),Kn=y({name:"JSON_OBJECT_LITERAL",pattern:al,start_chars_hint:["{"],line_breaks:!0,pop_mode:!0}),Gr=y({name:"UNCLOSED_JSON_OBJECT_LITERAL",pattern:/{[^]*/,line_breaks:!0,pop_mode:!0}),Y=c((t,e)=>y({name:t,pattern:e,longer_alt:K,categories:St}),"keyword"),Wr=Y("USECASE",/usecase-beta/),Pn=Y("ACTOR",/actor/),Kr=Y("SYSTEM_BOUNDARY",/systemBoundary/),Vr=Y("END",/end/),jr=Y("DIRECTION",/direction/),zr=Y("TD",/TD/),Hr=Y("TB",/TB/),Yr=Y("BT",/BT/),Xr=Y("LR",/LR/),Jr=Y("RL",/RL/),qr=Y("NOTE",/note/),Zr=Y("FOR",/for/),dl=Y("JSON",/json/),Qr=Y("CLASS_DEF",/classDef/),ea=Y("CLASS",/class/),ta=Y("STYLE",/style/),sa=Y("INCLUDE",/include/i),na=Y("EXTEND",/extend/i),ia=Y("TRUE",/true/),ra=Y("FALSE",/false/),aa=y({name:"GENERALIZATION",pattern:/--\|>/}),oa=y({name:"DEPENDENCY_ARROW",pattern:/\.\.>/}),la=y({name:"STEREOTYPE_START",pattern:/<>/,pop_mode:!0}),jn=y({name:"STEREOTYPE_TEXT",pattern:ol,line_breaks:!1}),ca=y({name:"UNCLOSED_STEREOTYPE_TEXT",pattern:/[^\n\r]+/,line_breaks:!1,pop_mode:!0}),ha=y({name:"CLASS_SEPARATOR",pattern:/:::/}),Ws=y({name:"FORWARD_SOLID",pattern:/--+>/}),ua=y({name:"BACKWARD_SOLID",pattern:/<--+/}),Ks=y({name:"FORWARD_CIRCLE",pattern:/--o/}),da=y({name:"BACKWARD_CIRCLE",pattern:/o--/}),Vs=y({name:"FORWARD_CROSS",pattern:/--x/}),pa=y({name:"BACKWARD_CROSS",pattern:/x--/}),ye=y({name:"MARKERLESS_SOLID",pattern:/--+/}),Dn=y({name:"METADATA_START",pattern:/@{/}),js=y({name:"AT",pattern:/@/,categories:ee}),fa=y({name:"LBRACE",pattern:/{/}),Fn=y({name:"RBRACE",pattern:/}/}),zs=y({name:"LBRACKET",pattern:/\[/}),Hs=y({name:"RBRACKET",pattern:/]/}),Zt=y({name:"LPAREN",pattern:/\(/}),Qt=y({name:"RPAREN",pattern:/\)/}),ke=y({name:"COMMA",pattern:/,/,categories:ee}),es=y({name:"COLON",pattern:/:/,categories:ee}),ma=y({name:"HASH_COLOR",pattern:/#[\dA-Fa-f]+/,categories:ee}),Re=y({name:"PLAIN_STRING",pattern:/"[^\n\r"]*"|'[^\n\r']*'/}),Bn=y({name:"CSS_IDENTIFIER",pattern:/--[A-Z_a-z][\w-]*|[A-Z_a-z]\w*(?:-\w+)+/,categories:ee}),Ea=y({name:"CSS_ESCAPED_COMMA",pattern:/\\,/,categories:ee}),Ta=y({name:"DASH",pattern:/-/,categories:ee}),ga=y({name:"DOT",pattern:/\./,categories:ee}),Aa=y({name:"PERCENT",pattern:/%/,categories:ee}),Sa=y({name:"CSS_PUNCTUATION",pattern:/[!#$&*+/=?^_|~]/,categories:ee}),pl=y({name:"LABEL_PUNCTUATION",pattern:/[;<>\\`]/,categories:ee}),fl=y({name:"LABEL_SYMBOL",pattern:/[^\t\n\r !-~]+/,categories:ee}),ya=[ee,St,ll,$e,cl,wn,Be,Dr,Fr,Br,$r,Wr,Pn,Kr,Vr,jr,zr,Hr,Yr,Xr,Jr,qr,Zr,dl,Qr,ea,ta,sa,na,ia,ra,aa,oa,la,ha,Ws,ua,Ks,da,Vs,pa,ye,Dn,js,fa,Fn,zs,Hs,Zt,Qt,ke,es,ma,Re,Bn,K,Wn,Ea,Ta,ga,Aa,Sa,pl,fl],ml={defaultMode:"defaultMode",modes:{defaultMode:[...ya],jsonBody:[Kn,Gr],stereotype:[Vn,jn,ca]}},El=[...ya,Kn,Gr,Vn,jn,ca],Tl=new D(ml),Or=c(t=>Dt(t,ee)||t.tokenType===Re||t.tokenType===$e,"isLabelToken"),gl={allowmixing:!0,newpage:!0,package:!0,rectangle:!0,skinparam:!0},Al=class extends Jt{static{c(this,"UsecaseParser")}constructor(){super(El,{nodeLocationTracking:"full"}),this.RULE("start",()=>{this.CONSUME(Wr),this.SUBRULE(this.lineEnd),this.MANY(()=>this.SUBRULE(this.line))}),this.RULE("line",()=>{this.OR([{ALT:c(()=>this.SUBRULE(this.blankLine),"ALT")},{ALT:c(()=>this.SUBRULE(this.commentLine),"ALT")},{GATE:c(()=>this.isStatementStart(),"GATE"),ALT:c(()=>this.SUBRULE(this.statement),"ALT")}])}),this.RULE("statement",()=>{this.OR([{ALT:c(()=>this.SUBRULE(this.accTitleStatement),"ALT")},{ALT:c(()=>this.SUBRULE(this.accDescrStatement),"ALT")},{ALT:c(()=>this.SUBRULE(this.directionStatement),"ALT")},{ALT:c(()=>this.SUBRULE(this.actorStatement),"ALT")},{ALT:c(()=>this.SUBRULE(this.systemBoundaryStatement),"ALT")},{ALT:c(()=>this.SUBRULE(this.noteStatement),"ALT")},{ALT:c(()=>this.SUBRULE(this.jsonStatement),"ALT")},{ALT:c(()=>this.SUBRULE(this.classDefStatement),"ALT")},{ALT:c(()=>this.SUBRULE(this.classStatement),"ALT")},{ALT:c(()=>this.SUBRULE(this.styleStatement),"ALT")},{GATE:c(()=>this.isMetadataAssignment(),"GATE"),ALT:c(()=>this.SUBRULE(this.metadataAssignmentStatement),"ALT")},{GATE:c(()=>!this.isForbiddenPlantUmlStatement(),"GATE"),ALT:c(()=>this.SUBRULE(this.entityStatement),"ALT")}])}),this.RULE("lineEnd",()=>{this.OR([{ALT:c(()=>this.CONSUME(Be),"ALT")},{ALT:c(()=>this.CONSUME(Ee),"ALT")}])}),this.RULE("blankLine",()=>{this.CONSUME(Be)}),this.RULE("commentLine",()=>{this.CONSUME(wn),this.SUBRULE(this.lineEnd)}),this.RULE("accTitleStatement",()=>{this.CONSUME(Fr),this.SUBRULE(this.lineEnd)}),this.RULE("accDescrStatement",()=>{this.OR([{ALT:c(()=>this.CONSUME(Br),"ALT")},{ALT:c(()=>this.CONSUME(Dr),"ALT")}]),this.SUBRULE(this.lineEnd)}),this.RULE("actorStatement",()=>{this.CONSUME(Pn),this.SUBRULE(this.actorItem),this.OPTION(()=>{this.OR([{ALT:c(()=>this.AT_LEAST_ONE(()=>{this.CONSUME(ke),this.SUBRULE2(this.actorItem)}),"ALT")},{ALT:c(()=>this.SUBRULE(this.relationTail),"ALT")}])}),this.SUBRULE(this.lineEnd)}),this.RULE("actorItem",()=>{this.SUBRULE(this.actorName),this.OPTION(()=>this.SUBRULE(this.metadata)),this.OPTION2(()=>this.SUBRULE(this.stereotype)),this.OPTION3(()=>this.SUBRULE(this.classSuffix))}),this.RULE("actorName",()=>{this.OR([{ALT:c(()=>{this.CONSUME(K),this.OPTION(()=>{this.CONSUME(Zt),this.SUBRULE(this.nodeLabel),this.CONSUME(Qt)})},"ALT")},{ALT:c(()=>this.CONSUME(Re),"ALT")},{ALT:c(()=>this.CONSUME($e),"ALT")}])}),this.RULE("actorDeclarationOnly",()=>{this.CONSUME(Pn),this.SUBRULE(this.actorItem),this.MANY(()=>{this.CONSUME(ke),this.SUBRULE2(this.actorItem)}),this.SUBRULE(this.lineEnd)}),this.RULE("entityStatement",()=>{this.SUBRULE(this.entityName),this.OPTION(()=>this.SUBRULE(this.relationTail)),this.SUBRULE(this.lineEnd)}),this.RULE("entityName",()=>{this.OR([{ALT:c(()=>{this.CONSUME(K),this.OPTION(()=>{this.OR2([{ALT:c(()=>{this.CONSUME(Zt),this.SUBRULE(this.nodeLabel),this.CONSUME(Qt)},"ALT")},{ALT:c(()=>{this.CONSUME(zs),this.SUBRULE2(this.nodeLabel),this.CONSUME(Hs)},"ALT")}])})},"ALT")},{ALT:c(()=>this.CONSUME(Re),"ALT")},{ALT:c(()=>this.CONSUME($e),"ALT")}]),this.OPTION2(()=>this.SUBRULE(this.useCaseMetadata)),this.OPTION3(()=>this.SUBRULE(this.stereotype)),this.OPTION4(()=>this.SUBRULE(this.classSuffix))}),this.RULE("nodeLabel",()=>{this.OR([{ALT:c(()=>this.CONSUME(Re),"ALT")},{ALT:c(()=>this.CONSUME($e),"ALT")},{ALT:c(()=>this.AT_LEAST_ONE(()=>this.CONSUME(ee)),"ALT")}])}),this.RULE("useCaseMetadata",()=>{this.SUBRULE(this.metadata)}),this.RULE("relationTail",()=>{this.OPTION({GATE:c(()=>this.LA(1).tokenType===K&&this.LA(2).tokenType===js,"GATE"),DEF:c(()=>{this.CONSUME(K),this.CONSUME(js)},"DEF")}),this.SUBRULE(this.arrow),this.SUBRULE(this.entityName)}),this.RULE("arrow",()=>{this.OR([{ALT:c(()=>this.SUBRULE(this.semanticRelation),"ALT")},{ALT:c(()=>this.SUBRULE(this.forwardSolidOperator),"ALT")},{ALT:c(()=>this.SUBRULE(this.backwardSolidOperator),"ALT")},{ALT:c(()=>this.SUBRULE(this.markerlessSolidOperator),"ALT")},{ALT:c(()=>this.SUBRULE(this.forwardCircleOperator),"ALT")},{ALT:c(()=>this.SUBRULE(this.backwardCircleOperator),"ALT")},{ALT:c(()=>this.SUBRULE(this.forwardCrossOperator),"ALT")},{ALT:c(()=>this.SUBRULE(this.backwardCrossOperator),"ALT")}])}),this.RULE("forwardSolidOperator",()=>{this.CONSUME(Ws)}),this.RULE("backwardSolidOperator",()=>{this.CONSUME(ua),this.OPTION({GATE:c(()=>this.LA(0).image==="<--"&&this.hasLabeledRight([ye]),"GATE"),DEF:c(()=>{this.SUBRULE(this.edgeLabel),this.CONSUME(ye)},"DEF")})}),this.RULE("markerlessSolidOperator",()=>{this.CONSUME(ye),this.OPTION({GATE:c(()=>this.LA(0).image==="--"&&this.hasLabeledRight([Ws,ye,Ks,Vs]),"GATE"),DEF:c(()=>{this.SUBRULE(this.edgeLabel),this.OR([{ALT:c(()=>this.CONSUME(Ws),"ALT")},{ALT:c(()=>this.CONSUME2(ye),"ALT")},{ALT:c(()=>this.CONSUME(Ks),"ALT")},{ALT:c(()=>this.CONSUME(Vs),"ALT")}])},"DEF")})}),this.RULE("forwardCircleOperator",()=>{this.CONSUME(Ks)}),this.RULE("backwardCircleOperator",()=>{this.CONSUME(da),this.OPTION({GATE:c(()=>this.hasLabeledRight([ye]),"GATE"),DEF:c(()=>{this.SUBRULE(this.edgeLabel),this.CONSUME(ye)},"DEF")})}),this.RULE("forwardCrossOperator",()=>{this.CONSUME(Vs)}),this.RULE("backwardCrossOperator",()=>{this.CONSUME(pa),this.OPTION({GATE:c(()=>this.hasLabeledRight([ye]),"GATE"),DEF:c(()=>{this.SUBRULE(this.edgeLabel),this.CONSUME(ye)},"DEF")})}),this.RULE("edgeLabel",()=>{this.OR([{ALT:c(()=>this.CONSUME(Re),"ALT")},{ALT:c(()=>this.CONSUME($e),"ALT")},{ALT:c(()=>this.AT_LEAST_ONE(()=>this.CONSUME(ee)),"ALT")}])}),this.RULE("semanticRelation",()=>{this.OR([{ALT:c(()=>{this.CONSUME(oa),this.CONSUME(es),this.OR2([{ALT:c(()=>this.CONSUME(sa),"ALT")},{ALT:c(()=>this.CONSUME(na),"ALT")}])},"ALT")},{ALT:c(()=>this.CONSUME(aa),"ALT")}])}),this.RULE("metadata",()=>{this.CONSUME(Dn),this.MANY(()=>this.CONSUME(Be)),this.OPTION(()=>{this.SUBRULE(this.metadataProperty),this.MANY2(()=>{this.SUBRULE(this.metadataSeparator),this.SUBRULE2(this.metadataProperty)}),this.OPTION2(()=>this.CONSUME(ke)),this.MANY3(()=>this.CONSUME2(Be))}),this.CONSUME(Fn)}),this.RULE("metadataProperty",()=>{this.OR([{ALT:c(()=>this.CONSUME(K),"ALT")},{ALT:c(()=>this.CONSUME(Re),"ALT")}]),this.CONSUME(es),this.OR2([{ALT:c(()=>this.CONSUME2(K),"ALT")},{ALT:c(()=>this.CONSUME2(Re),"ALT")},{ALT:c(()=>this.CONSUME(ia),"ALT")},{ALT:c(()=>this.CONSUME(ra),"ALT")}])}),this.RULE("metadataSeparator",()=>{this.OR([{ALT:c(()=>{this.CONSUME(ke),this.MANY(()=>this.CONSUME(Be))},"ALT")},{ALT:c(()=>{this.AT_LEAST_ONE(()=>this.CONSUME2(Be)),this.OPTION(()=>this.CONSUME2(ke)),this.MANY2(()=>this.CONSUME3(Be))},"ALT")}])}),this.RULE("systemBoundaryStatement",()=>{this.CONSUME(Kr),this.SUBRULE(this.systemBoundaryName),this.OPTION(()=>this.SUBRULE(this.metadata)),this.OPTION2(()=>this.SUBRULE(this.classSuffix)),this.SUBRULE(this.lineEnd),this.SUBRULE(this.systemBoundaryContent),this.CONSUME(Vr),this.SUBRULE2(this.lineEnd)}),this.RULE("systemBoundaryName",()=>{this.OR([{ALT:c(()=>{this.CONSUME(K),this.OPTION(()=>{this.OR2([{ALT:c(()=>{this.CONSUME(Zt),this.SUBRULE(this.nodeLabel),this.CONSUME(Qt)},"ALT")},{ALT:c(()=>{this.CONSUME(zs),this.SUBRULE2(this.nodeLabel),this.CONSUME(Hs)},"ALT")}])})},"ALT")},{ALT:c(()=>this.CONSUME(Re),"ALT")},{ALT:c(()=>this.CONSUME($e),"ALT")}])}),this.RULE("systemBoundaryContent",()=>{this.MANY(()=>{this.OR([{ALT:c(()=>this.SUBRULE(this.blankLine),"ALT")},{ALT:c(()=>this.SUBRULE(this.commentLine),"ALT")},{ALT:c(()=>this.SUBRULE(this.boundaryElement),"ALT")}])})}),this.RULE("boundaryElement",()=>{this.OR([{ALT:c(()=>this.SUBRULE(this.actorDeclarationOnly),"ALT")},{ALT:c(()=>{this.SUBRULE(this.entityName),this.SUBRULE(this.lineEnd)},"ALT")}])}),this.RULE("metadataAssignmentStatement",()=>{this.SUBRULE(this.metadataAssignmentTarget),this.SUBRULE(this.metadata),this.SUBRULE(this.lineEnd)}),this.RULE("metadataAssignmentTarget",()=>{this.OR([{ALT:c(()=>this.CONSUME(K),"ALT")},{ALT:c(()=>this.CONSUME(Re),"ALT")},{ALT:c(()=>this.CONSUME($e),"ALT")}])}),this.RULE("noteStatement",()=>{this.CONSUME(qr),this.CONSUME(Zr),this.CONSUME(K),this.SUBRULE(this.nodeLabel),this.SUBRULE(this.lineEnd)}),this.RULE("stereotype",()=>{this.CONSUME(la),this.CONSUME(jn),this.CONSUME(Vn)}),this.RULE("classSuffix",()=>{this.CONSUME(ha),this.CONSUME(K),this.MANY(()=>{this.CONSUME(ke),this.CONSUME2(K)})}),this.RULE("jsonStatement",()=>{this.CONSUME($r),this.CONSUME(Kn),this.OPTION(()=>this.SUBRULE(this.classSuffix)),this.SUBRULE(this.lineEnd)}),this.RULE("directionStatement",()=>{this.CONSUME(jr),this.OR([{ALT:c(()=>this.CONSUME(zr),"ALT")},{ALT:c(()=>this.CONSUME(Hr),"ALT")},{ALT:c(()=>this.CONSUME(Yr),"ALT")},{ALT:c(()=>this.CONSUME(Xr),"ALT")},{ALT:c(()=>this.CONSUME(Jr),"ALT")}]),this.SUBRULE(this.lineEnd)}),this.RULE("classDefStatement",()=>{this.CONSUME(Qr),this.CONSUME(K),this.MANY(()=>{this.CONSUME(ke),this.CONSUME2(K)}),this.SUBRULE(this.styles),this.SUBRULE(this.lineEnd)}),this.RULE("classStatement",()=>{this.CONSUME(ea),this.CONSUME(K),this.MANY(()=>{this.CONSUME(ke),this.CONSUME2(K)}),this.CONSUME3(K),this.MANY2(()=>{this.CONSUME2(ke),this.CONSUME4(K)}),this.SUBRULE(this.lineEnd)}),this.RULE("styleStatement",()=>{this.CONSUME(ta),this.CONSUME(K),this.SUBRULE(this.styles),this.SUBRULE(this.lineEnd)}),this.RULE("styles",()=>{this.SUBRULE(this.styleValue),this.MANY(()=>{this.CONSUME(ke),this.SUBRULE2(this.styleValue)})}),this.RULE("styleValue",()=>{this.OR([{ALT:c(()=>this.CONSUME(St),"ALT")},{ALT:c(()=>this.CONSUME(Bn),"ALT")},{ALT:c(()=>{this.CONSUME(ye),this.CONSUME2(St)},"ALT")}]),this.CONSUME(es),this.AT_LEAST_ONE(()=>this.SUBRULE(this.styleComponent))}),this.RULE("styleComponent",()=>{this.OR([{ALT:c(()=>this.CONSUME(St),"ALT")},{ALT:c(()=>this.CONSUME(Re),"ALT")},{ALT:c(()=>this.CONSUME(Wn),"ALT")},{ALT:c(()=>this.CONSUME(ma),"ALT")},{ALT:c(()=>this.CONSUME(Bn),"ALT")},{ALT:c(()=>this.CONSUME(Ea),"ALT")},{ALT:c(()=>this.CONSUME(Ta),"ALT")},{ALT:c(()=>this.CONSUME(ga),"ALT")},{ALT:c(()=>this.CONSUME(Aa),"ALT")},{ALT:c(()=>this.CONSUME(Sa),"ALT")},{ALT:c(()=>this.CONSUME(es),"ALT")},{ALT:c(()=>this.CONSUME(Zt),"ALT")},{ALT:c(()=>this.CONSUME(Qt),"ALT")},{ALT:c(()=>this.CONSUME(zs),"ALT")},{ALT:c(()=>this.CONSUME(Hs),"ALT")},{ALT:c(()=>this.CONSUME(fa),"ALT")},{ALT:c(()=>this.CONSUME(Fn),"ALT")},{ALT:c(()=>this.CONSUME(js),"ALT")},{ALT:c(()=>this.CONSUME(ye),"ALT")}])}),this.performSelfAnalysis()}isMetadataAssignment(){let t=this.LA(1).tokenType;return(t===K||t===Re||t===$e)&&this.LA(2).tokenType===Dn}isStatementStart(){let t=this.LA(1).tokenType;return t!==Ee&&t!==Be&&t!==wn}isForbiddenPlantUmlStatement(){return this.LA(1).tokenType===K&&gl[this.LA(1).image.toLowerCase()]===!0}hasLabeledRight(t){if(!Or(this.LA(1)))return!1;for(let e=2;;e++){let s=this.LA(e);if(t.includes(s.tokenType))return!0;if(!Or(s))return!1}}},ts=new Al,kr=class extends Error{constructor(t,e,s){super(`${t} (line ${e}, column ${s})`),this.line=e,this.column=s,this.name="UsecaseJsonError"}static{c(this,"UsecaseJsonError")}},$n=c((t,e,s,n)=>{let i=s,r=n,o=Math.min(Math.max(e,0),t.length);for(let l=0;l{let i=/\bposition (\d+)\b/u.exec(t);if(i)return $n(e,Number.parseInt(i[1],10),s,n);let r=/\bline (\d+) column (\d+)\b/u.exec(t);if(r){let o=Number.parseInt(r[1],10),l=Number.parseInt(r[2],10);return{line:s+o-1,column:o===1?n+l-1:l}}if(/unexpected end|end of json input/iu.test(t))return $n(e,e.length,s,n)},"locationFromErrorMessage"),te=class extends Error{constructor(t){super("Invalid JSON token"),this.offset=t}static{c(this,"JsonWalkError")}},Cr=class{constructor(t){this.text=t,this.offset=0,this.propertyOrder={}}static{c(this,"PropertyOrderCollector")}collect(){if(this.skipWhitespace(),this.collectValue(""),this.skipWhitespace(),this.offset!==this.text.length)throw new te(this.offset);return this.propertyOrder}collectValue(t){this.skipWhitespace();let e=this.text[this.offset];if(e==="{")this.collectObject(t);else if(e==="[")this.collectArray(t);else if(e==='"')this.readString(!1);else if(e==="t")this.consumeLiteral("true");else if(e==="f")this.consumeLiteral("false");else if(e==="n")this.consumeLiteral("null");else if(e==="-"||e>="0"&&e<="9")this.consumeNumber();else throw new te(this.offset)}collectObject(t){this.offset++;let e=[],s=new Set;if(this.propertyOrder[t]=e,this.skipWhitespace(),this.text[this.offset]==="}"){this.offset++;return}for(;this.offset="1"&&this.text[this.offset]<="9")for(;this.text[this.offset]>="0"&&this.text[this.offset]<="9";)this.offset++;else throw new te(this.offset);if(this.text[this.offset]==="."){if(this.offset++,this.text[this.offset]<"0"||this.text[this.offset]>"9")throw new te(this.offset);for(;this.text[this.offset]>="0"&&this.text[this.offset]<="9";)this.offset++}if(this.text[this.offset]==="e"||this.text[this.offset]==="E"){if(this.offset++,(this.text[this.offset]==="+"||this.text[this.offset]==="-")&&this.offset++,this.text[this.offset]<"0"||this.text[this.offset]>"9")throw new te(this.offset);for(;this.text[this.offset]>="0"&&this.text[this.offset]<="9";)this.offset++}}skipWhitespace(){for(;this.offset({shape:t.type==="normal"?"actor":t.type==="hollow"?"actor-hollow":t.type==="awesome"?"actor-awesome":"actor-icon",...t.label===t.id?{}:{label:t.label},...t.classes.length?{classes:[...t.classes]}:{},...t.styles.length?{styles:[...t.styles]}:{},attrs:{kind:"actor",actorType:t.type,business:t.business,labelType:t.labelType,...t.icon?{icon:t.icon}:{},...t.stereotype?{stereotype:t.stereotype}:{},...t.parentId?{parentId:t.parentId}:{}}}),"actorNode"),Rl=c(t=>({shape:t.shape,...t.label===t.id?{}:{label:t.label},...t.classes.length?{classes:[...t.classes]}:{},...t.styles.length?{styles:[...t.styles]}:{},attrs:{kind:"usecase",useCaseShape:t.shape,business:t.business,labelType:t.labelType,...t.stereotype?{stereotype:t.stereotype}:{},...t.parentId?{parentId:t.parentId}:{}}}),"useCaseNode"),Ll=c(t=>({label:t.label,shape:"note",attrs:{kind:"note",target:t.target,labelType:t.labelType}}),"noteNode"),Nl=c(t=>({label:t.id,shape:"json-table",...t.classes.length?{classes:[...t.classes]}:{},...t.styles.length?{styles:[...t.styles]}:{},attrs:{kind:"json",value:t.value,propertyOrder:t.propertyOrder,labelType:"text"}}),"jsonNode"),Il=c(t=>({id:t.id,source:t.source,target:t.target,...t.label?{label:t.label}:{},...t.classes.length?{classes:[...t.classes]}:{},...t.styles.length?{styles:[...t.styles]}:{},attrs:{relationshipType:t.type,arrowType:t.arrowType,minlen:t.minlen,explicitId:t.explicitId,animate:t.animate,...t.animation?{animation:t.animation}:{},...t.labelType?{labelType:t.labelType}:{}}}),"relationshipEdge"),Ol=c(t=>({id:`${t.id}-edge`,source:t.id,target:t.target,attrs:{relationshipType:"note",arrowType:$.LINE_SOLID,pattern:"dotted",minlen:1,explicitId:!1,animate:!1,internal:!0}}),"noteEdge"),kl=c((t,e,s,n)=>{let i={};for(let a of t.getActors().values())i[a.id]=yl(a);for(let a of t.getUseCases().values())i[a.id]=Rl(a);for(let a of t.getNotes().values())i[a.id]=Ll(a);for(let a of t.getJsonNodes().values())i[a.id]=Nl(a);let r={};for(let a of t.getSystemBoundaries().values())r[a.id]={...a.label===a.id?{}:{title:a.label},nodes:[...a.members],...a.classes.length?{classes:[...a.classes]}:{},...a.styles.length?{styles:[...a.styles]}:{},attrs:{kind:"systemBoundary",boundaryType:a.type,labelType:a.labelType}};let o={};for(let a of t.getClassDefs().values())o[a.id]={styles:[...a.styles]};let l=t.getDirection();return{version:1,diagramType:"usecase",source:e,header:{keyword:"usecase",direction:l==="TD"?"TB":l,span:s},...t.getAccTitle()?{accTitle:t.getAccTitle()}:{},...t.getAccDescription()?{accDescr:t.getAccDescription()}:{},nodes:i,edges:[...t.getRelationships().map(Il),...[...t.getNotes().values()].map(Ol)],groups:r,classDefs:o,statements:n}},"buildUsecaseGraphAST"),re=c(t=>`line ${t.line}, column ${t.column} [${t.span[0]},${t.span[1]})`,"locationText"),xr=c(t=>t===void 0?"":` (label "${t}")`,"labelSuffix"),rt=c(t=>t.generated?t.label:void 0,"generatedFrom"),Un=c((t,e)=>{for(let s of e)t.includes(s)||t.push(s)},"pushUnique"),Cl=class{constructor(t){this.db=t,this.source="",this.statements=[],this.elements=[],this.boundaries=[],this.jsonDrafts=[],this.relationshipDrafts=[],this.noteDrafts=[],this.metadataAssignments=[],this.classAssignments=[],this.styleAssignments=[],this.classDefinitions=[],this.directions=[],this.model=t.createModel()}static{c(this,"UsecaseModelBuilder")}reset(t){this.model=this.db.createModel(),this.source=t,this.statements=[],this.elements.length=0,this.boundaries.length=0,this.jsonDrafts.length=0,this.relationshipDrafts.length=0,this.noteDrafts.length=0,this.metadataAssignments.length=0,this.classAssignments.length=0,this.styleAssignments.length=0,this.classDefinitions.length=0,this.directions.length=0}addElement(t){this.elements.push(t)}addBoundary(t){this.boundaries.push(t)}addJson(t){this.jsonDrafts.push(t)}addRelationship(t){this.relationshipDrafts.push(t)}addNote(t){this.noteDrafts.push(t)}addMetadataAssignment(t,e,s,n){this.metadataAssignments.push({target:t,targetLocation:e,metadata:s,statement:n})}addClassDef(t,e){this.classDefinitions.push({ids:t,styles:e})}addClassAssignment(t,e){this.classAssignments.push({targets:t,classes:e})}addStyleAssignment(t,e,s){this.styleAssignments.push({target:t,location:e,styles:s})}setDirection(t){this.directions.push(t==="TD"?"TB":t)}setAccTitle(t){this.model.accTitle=t}setAccDescription(t){this.model.accDescription=t}setStatements(t){this.statements=t}getActors(){return this.model.actors}getUseCases(){return this.model.useCases}getSystemBoundaries(){return this.model.systemBoundaries}getRelationships(){return this.model.relationships}getNotes(){return this.model.notes}getJsonNodes(){return this.model.jsonNodes}getClassDefs(){return this.model.classDefs}getDirection(){return this.model.direction}getAccTitle(){return this.model.accTitle}getAccDescription(){return this.model.accDescription}finalize(t){let e=new Map,s=new Map,n=new Map,i=new Map;for(let a of this.relationshipDrafts)this.recordFirst(i,a.source.id,a.source.location.span[0]),this.recordFirst(i,a.target.id,a.target.location.span[0]);for(let a of this.elements)this.recordFirst(i,a.id,a.location.span[0]);for(let a of this.boundaries)this.recordFirst(i,a.id,a.location.span[0]);for(let a of this.jsonDrafts)this.recordFirst(i,a.id,a.location.span[0]);let r=[...this.elements.map(a=>({offset:a.location.span[0],type:"element",value:a})),...this.boundaries.map(a=>({offset:a.location.span[0],type:"boundary",value:a})),...this.jsonDrafts.map(a=>({offset:a.location.span[0],type:"json",value:a})),...this.relationshipDrafts.filter(a=>a.explicitId).map(a=>({offset:a.explicitIdLocation.span[0],type:"edge",value:a}))].sort((a,h)=>a.offset-h.offset);for(let a of r)a.type==="element"?this.collectElement(a.value,e,s):a.type==="boundary"?this.collectBoundary(a.value,e,n):a.type==="json"?this.registerUnique(e,a.value.id,"json",a.value.location,!1):this.registerUnique(e,a.value.explicitId,"edge",a.value.explicitIdLocation,!1);this.materializeElements(s,i),this.materializeBoundaries(n,i),this.materializeJson(i);let o=this.materializeRelationships(e,s,i);this.reorderElements(s,i),this.applyMetadataAssignments(e,s,n,o),this.validateAndRefreshElements(s),this.refreshBoundaries(n,s),this.materializeNotes(e),this.applyClassDefinitions(),this.applyClassesAndStyles(e,o),this.model.direction=this.directions.at(-1)??this.model.direction,this.model.symbols=new Map([...e].map(([a,h])=>[a,h.kind]));let l=kl(this,this.source,t,this.statements);return this.model.ast=l,this.db.commit(this.model),l}collectElement(t,e,s){let n=e.get(t.id),i=rt({generated:t.generated,label:t.label.text});n&&n.kind!==t.kind&&this.conflict(`ID '${t.id}' is declared as both ${n.kind} and ${t.kind}`,t.location,n.location,i,rt(n)),n&&(n.generated||t.generated)&&this.conflict(`Generated ID '${t.id}' collides with another declaration`,t.location,n.location,i,rt(n));let r=s.get(t.id);if(!r){let o={kind:t.kind,id:t.id,label:t.label,location:t.location,generated:t.generated,classes:[...t.classes],...t.parentId?{parentId:t.parentId,parentLocation:t.parentLocation}:{},...t.shape?{shape:t.shape}:{},...t.stereotype?{stereotype:t.stereotype,stereotypeLocation:t.location}:{}};this.applyDeclarationMetadata(o,t.metadata),s.set(t.id,o),e.set(t.id,{kind:t.kind,location:t.location,generated:t.generated,label:t.label.text});return}(r.label.text!==t.label.text||r.label.type!==t.label.type)&&this.conflict(`ID '${t.id}' has conflicting labels`,t.location,r.location),t.shape&&r.shape&&t.shape!==r.shape&&this.conflict(`Use case '${t.id}' has conflicting shapes`,t.location,r.location),t.parentId&&r.parentId&&t.parentId!==r.parentId&&this.conflict(`Element '${t.id}' belongs to more than one system boundary`,t.parentLocation??t.location,r.parentLocation??r.location),t.stereotype&&r.stereotype&&t.stereotype!==r.stereotype&&this.conflict(`Element '${t.id}' has conflicting stereotypes`,t.location,r.stereotypeLocation??r.location),r.shape??=t.shape,r.parentId??=t.parentId,r.parentLocation??=t.parentLocation,r.stereotype??=t.stereotype,r.stereotypeLocation??=t.stereotype?t.location:void 0,Un(r.classes,t.classes),this.applyDeclarationMetadata(r,t.metadata)}collectBoundary(t,e,s){let n=e.get(t.id),i=rt({generated:t.generated,label:t.label.text});n&&n.kind!=="boundary"&&this.conflict(`ID '${t.id}' is declared as both ${n.kind} and boundary`,t.location,n.location,i,rt(n)),n&&(n.generated||t.generated)&&this.conflict(`Generated ID '${t.id}' collides with another declaration`,t.location,n.location,i,rt(n));let r=s.get(t.id);if(r){(r.label.text!==t.label.text||r.label.type!==t.label.type)&&this.conflict(`Boundary '${t.id}' has conflicting titles`,t.location,r.location),Un(r.classes,t.classes);return}s.set(t.id,{id:t.id,label:t.label,location:t.location,generated:t.generated,classes:[...t.classes],styles:[],members:[]}),e.set(t.id,{kind:"boundary",location:t.location,generated:t.generated,label:t.label.text})}materializeElements(t,e){for(let s of[...t.values()].sort((n,i)=>(e.get(n.id)??0)-(e.get(i.id)??0)))this.setElementModel(s)}materializeBoundaries(t,e){for(let s of[...t.values()].sort((n,i)=>(e.get(n.id)??0)-(e.get(i.id)??0)))this.model.systemBoundaries.set(s.id,{id:s.id,label:s.label.text,labelType:s.label.type,type:s.type??"rect",members:[],classes:[...s.classes],styles:[...s.styles]})}materializeJson(t){for(let e of[...this.jsonDrafts].sort((s,n)=>(t.get(s.id)??0)-(t.get(n.id)??0)))this.model.jsonNodes.set(e.id,{id:e.id,value:e.value,propertyOrder:e.propertyOrder,classes:[...e.classes],styles:[]})}materializeRelationships(t,e,s){let n=new Map,i=0;for(let r of this.relationshipDrafts){let o=this.resolveEndpoint(r.source,t,e,s),l=this.resolveEndpoint(r.target,t,e,s);this.validateRelationship(r,o,l,t);let a=r.explicitId??`edge-${i++}`,h={id:a,explicitId:!!r.explicitId,source:r.source.id,target:r.target.id,type:r.type,arrowType:r.arrowType,...r.label?{label:r.label.text,labelType:r.label.type}:{},minlen:r.minlen,classes:[],styles:[],animate:!1};this.model.relationships.push(h),n.set(a,{draft:r,relationship:h})}return this.model.relationshipCounter=i,n}resolveEndpoint(t,e,s,n){if(t.classesOnReference&&!t.declaration)throw new Error(`Relationship endpoint '${t.id}' uses ::: without declaring the node at ${re(t.location)}`);let i=e.get(t.id);return i?i.kind:(s.set(t.id,{kind:"usecase",id:t.id,label:t.label,location:t.location,generated:t.generated,shape:"ellipse",classes:[]}),e.set(t.id,{kind:"usecase",location:t.location,generated:t.generated,label:t.label.text}),this.recordFirst(n,t.id,t.location.span[0]),"usecase")}reorderElements(t,e){let s=new Map(this.model.actors),n=new Map(this.model.useCases);this.model.actors.clear(),this.model.useCases.clear();for(let i of[...t.values()].sort((r,o)=>(e.get(r.id)??0)-(e.get(o.id)??0))){!s.has(i.id)&&!n.has(i.id)&&this.setElementModel(i);let r=s.get(i.id)??this.model.actors.get(i.id),o=n.get(i.id)??this.model.useCases.get(i.id);r?this.model.actors.set(i.id,r):o&&this.model.useCases.set(i.id,o)}}applyMetadataAssignments(t,e,s,n){for(let i of this.metadataAssignments){let r=t.get(i.target);if(!r){let o=this.inferMetadataKind(i.metadata);throw new Error(`Metadata target '${i.target}' is unresolved${o?` (metadata implies ${o})`:""} at ${re(i.targetLocation)}`)}if(r.kind==="actor"||r.kind==="usecase")this.applyStandaloneElementMetadata(e.get(i.target),i.metadata);else if(r.kind==="boundary"){let o=s.get(i.target);for(let l of i.metadata.properties)(l.key!=="type"||l.value!=="rect"&&l.value!=="package")&&this.invalidMetadata(i.target,r.kind,l),o.type=l.value}else if(r.kind==="edge"){let o=n.get(i.target);if(!o)throw new Error(`Metadata target '${i.target}' is not an explicit edge at ${re(i.targetLocation)}`);i.statement.kind="edgeMetadata",i.statement.edges=[{id:i.target,span:i.statement.span,idSpan:i.targetLocation.span,...i.statement.metadata?{metadata:i.statement.metadata}:{}}],delete i.statement.nodes;for(let l of i.metadata.properties)l.key==="animate"&&typeof l.value=="boolean"?o.relationship.animate=l.value:l.key==="animation"&&(l.value==="fast"||l.value==="slow")?(o.relationship.animation=l.value,o.relationship.animate=!0):this.invalidMetadata(i.target,r.kind,l)}else for(let o of i.metadata.properties)this.invalidMetadata(i.target,r.kind,o)}for(let{relationship:i}of n.values())i.animation&&(i.animate=!0)}applyStandaloneElementMetadata(t,e){for(let s of e.properties)t.kind==="actor"?this.applyActorProperty(t,s,!0):s.key==="business"&&typeof s.value=="boolean"?t.business=s.value:this.invalidMetadata(t.id,t.kind,s)}applyDeclarationMetadata(t,e){if(e)for(let s of e.properties)t.kind==="actor"?this.applyActorProperty(t,s,!1):s.key==="business"&&typeof s.value=="boolean"?(t.business!==void 0&&t.business!==s.value&&this.conflict(`Use case '${t.id}' has conflicting business metadata`,s.location,t.location),t.business=s.value):this.invalidMetadata(t.id,t.kind,s)}applyActorProperty(t,e,s){e.key==="type"&&(e.value==="normal"||e.value==="hollow"||e.value==="awesome")?(!s&&t.actorType!==void 0&&t.actorType!==e.value&&this.conflict(`Actor '${t.id}' has conflicting type metadata`,e.location,t.location),t.actorType=e.value):e.key==="icon"&&typeof e.value=="string"?(!s&&t.icon!==void 0&&t.icon!==e.value&&this.conflict(`Actor '${t.id}' has conflicting icon metadata`,e.location,t.location),t.icon=e.value):e.key==="business"&&typeof e.value=="boolean"?(!s&&t.business!==void 0&&t.business!==e.value&&this.conflict(`Actor '${t.id}' has conflicting business metadata`,e.location,t.location),t.business=e.value):this.invalidMetadata(t.id,t.kind,e)}validateAndRefreshElements(t){for(let e of t.values()){let s=e.icon?"icon":e.actorType??"normal";if(e.kind==="actor"){if(e.icon&&e.actorType&&e.actorType!=="normal")throw new Error(`Actor '${e.id}' cannot combine icon with type '${e.actorType}' at ${re(e.location)}`);if(e.business&&(s==="icon"||s==="awesome"))throw new Error(`Business actor '${e.id}' must use normal or hollow geometry at ${re(e.location)}`)}else if((e.shape??"ellipse")==="rect"&&e.business)throw new Error(`Rectangular use case '${e.id}' cannot be a business use case at ${re(e.location)}`);this.setElementModel(e)}}refreshBoundaries(t,e){for(let s of t.values())s.members.length=0;for(let s of[...this.elements].sort((n,i)=>n.location.span[0]-i.location.span[0])){if(!s.parentId)continue;let n=t.get(s.parentId);if(!n)throw new Error(`Parent boundary '${s.parentId}' for '${s.id}' is unresolved at ${re(s.parentLocation??s.location)}`);n.members.includes(s.id)||n.members.push(s.id)}for(let s of e.values())if(s.parentId&&!t.has(s.parentId))throw new Error(`Parent boundary '${s.parentId}' for '${s.id}' is unresolved at ${re(s.parentLocation??s.location)}`);for(let s of t.values()){let n=this.model.systemBoundaries.get(s.id);n.type=s.type??"rect",n.members=[...s.members],n.classes=[...s.classes],n.styles=[...s.styles]}}materializeNotes(t){let e=0;for(let s of this.noteDrafts){let n=t.get(s.target);if(!n)throw new Error(`Note target '${s.target}' is unresolved at ${re(s.targetLocation)}`);n.kind!=="actor"&&n.kind!=="usecase"&&this.conflict(`Note target '${s.target}' must be an actor or use case, not ${n.kind}`,s.targetLocation,n.location);let i=`note-${e++}`;this.model.notes.set(i,{id:i,target:s.target,label:s.label.text,labelType:s.label.type})}this.model.noteCounter=e}applyClassDefinitions(){for(let t of this.classDefinitions)for(let e of t.ids)this.model.classDefs.set(e,{id:e,styles:[...t.styles]})}applyClassesAndStyles(t,e){for(let s of this.classAssignments)for(let n of s.targets)Un(this.getStylable(n.id,t,e,n.location).classes,s.classes);for(let s of this.styleAssignments)this.getStylable(s.target,t,e,s.location).styles.push(...s.styles)}getStylable(t,e,s,n){let i=e.get(t)?.kind,r=i==="actor"?this.model.actors.get(t):i==="usecase"?this.model.useCases.get(t):i==="boundary"?this.model.systemBoundaries.get(t):i==="json"?this.model.jsonNodes.get(t):i==="edge"?s.get(t)?.relationship:void 0;if(!r)throw new Error(`Class/style target '${t}' is unresolved or anonymous at ${re(n)}`);return r}validateRelationship(t,e,s,n){let i=c(r=>r==="actor"||r==="usecase"||r==="json","allowed");if(i(e)||this.conflict(`Relationship source '${t.source.id}' cannot be ${e}`,t.source.location,n.get(t.source.id).location),i(s)||this.conflict(`Relationship target '${t.target.id}' cannot be ${s}`,t.target.location,n.get(t.target.id).location),(t.type==="include"||t.type==="extend")&&(e!=="usecase"||s!=="usecase"))throw new Error(`${t.type} relationship requires use-case endpoints at ${re(t.location)}`);if(t.type==="generalization"&&(e!=="actor"&&e!=="usecase"||e!==s))throw new Error(`Generalization requires actor-to-actor or use-case-to-use-case endpoints at ${re(t.location)}`);if(t.type==="association"&&(e==="json"||s==="json")&&![0,1,2].includes(t.arrowType))throw new Error(`JSON relationship '${t.source.id}' to '${t.target.id}' permits only point, reversed-point, or markerless solid association at ${re(t.location)}`)}setElementModel(t){if(t.kind==="actor"){let e=t.icon?"icon":t.actorType??"normal";this.model.useCases.delete(t.id),this.model.actors.set(t.id,{id:t.id,label:t.label.text,labelType:t.label.type,type:e,...t.icon?{icon:t.icon}:{},business:t.business??!1,...t.stereotype?{stereotype:t.stereotype}:{},...t.parentId?{parentId:t.parentId}:{},classes:[...t.classes],styles:this.model.actors.get(t.id)?.styles??[]})}else this.model.actors.delete(t.id),this.model.useCases.set(t.id,{id:t.id,label:t.label.text,labelType:t.label.type,shape:t.shape??"ellipse",business:t.business??!1,...t.stereotype?{stereotype:t.stereotype}:{},...t.parentId?{parentId:t.parentId}:{},classes:[...t.classes],styles:this.model.useCases.get(t.id)?.styles??[]})}inferMetadataKind(t){let e=new Set(["actor","usecase","boundary","edge"]);for(let s of t.properties)if(s.key==="icon")e.clear(),e.add("actor");else if(s.key==="animate"||s.key==="animation")e.clear(),e.add("edge");else if(s.key==="type")e.clear(),s.value==="rect"||s.value==="package"?e.add("boundary"):(s.value==="normal"||s.value==="hollow"||s.value==="awesome")&&e.add("actor");else if(s.key==="business")e.delete("boundary"),e.delete("edge");else return;return e.size===1?[...e][0]:void 0}invalidMetadata(t,e,s){throw new Error(`Metadata property '${s.key}' is invalid for ${e} '${t}' at ${re(s.location)}`)}registerUnique(t,e,s,n,i){let r=t.get(e);r&&this.conflict(`ID '${e}' is declared more than once (${r.kind} and ${s})`,n,r.location,void 0,rt(r)),t.set(e,{kind:s,location:n,generated:i})}recordFirst(t,e,s){let n=t.get(e);(n===void 0||sthis.visit(a)),n=this.nodes(t,"relationTail")[0],i=s.map((a,h)=>this.actorOccurrence(e[h],a,!0));for(let a of s)this.builder.addElement(this.actorDraft(a));if(!n)return{kind:"node",span:[0,0],nodes:i};let r=this.visit(n);r.target.explicitDeclaration&&this.builder.addElement(this.entityDraft(r.target));let o=this.relationshipDraft(s[0],r,this.nodeLocation(n));this.builder.addRelationship(o);let l=o.explicitId??`edge-${this.anonymousEdge++}`;return i.push(this.entityOccurrence(this.nodes(n.children,"entityName")[0],r.target,r.target.explicitDeclaration)),{kind:"edge",span:[0,0],nodes:i,edges:[{id:l,span:[0,0],...o.explicitIdLocation?{idSpan:o.explicitIdLocation.span}:{},...o.label?{labelSpan:o.label.span}:{}}]}}actorItem(t){let e=this.visit(this.nodes(t,"actorName")[0]),s=this.nodes(t,"metadata")[0],n=this.nodes(t,"stereotype")[0],i=this.nodes(t,"classSuffix")[0],r=i?this.visit(i):{classes:[],spans:[]};return{...e,...s?{metadata:this.visit(s)}:{},...n?{stereotype:this.visit(n)}:{},classes:r.classes,classSpans:r.spans}}actorName(t){let e=this.tokens(t,"IDENTIFIER")[0],s=this.tokens(t,"PLAIN_STRING")[0]??this.tokens(t,"MARKDOWN_STRING")[0];if(e){let i=this.nodes(t,"nodeLabel")[0],r=i?this.visit(i):this.tokenLabel(e);return{id:e.image,label:r,location:this.tokenLocation(e),generated:!1,classes:[],classSpans:[]}}let n=this.tokenLabel(s);return{id:this.generateId(n.text),label:n,location:this.tokenLocation(s),generated:!0,classes:[],classSpans:[]}}actorDeclarationOnly(t){let e=this.nodes(t,"actorItem"),s=e.map(n=>this.visit(n));for(let n of s)this.builder.addElement(this.actorDraft(n));return{kind:"node",span:[0,0],nodes:s.map((n,i)=>this.actorOccurrence(e[i],n,!0))}}entityStatement(t){let e=this.nodes(t,"entityName"),s=this.visit(e[0]),n=this.nodes(t,"relationTail")[0];if(!n)return s.explicitDeclaration=!0,s.shape??="ellipse",this.builder.addElement(this.entityDraft(s)),{kind:"node",span:[0,0],nodes:[this.entityOccurrence(e[0],s,!0)]};s.explicitDeclaration&&this.builder.addElement(this.entityDraft(s));let i=this.visit(n);i.target.explicitDeclaration&&this.builder.addElement(this.entityDraft(i.target));let r={source:this.endpoint(s),target:this.endpoint(i.target),location:this.nodeLocation(n),...i.explicitId?{explicitId:i.explicitId,explicitIdLocation:i.explicitIdLocation}:{},...i.arrow};this.builder.addRelationship(r);let o=r.explicitId??`edge-${this.anonymousEdge++}`;return{kind:"edge",span:[0,0],nodes:[this.entityOccurrence(e[0],s,s.explicitDeclaration),this.entityOccurrence(this.nodes(n.children,"entityName")[0],i.target,i.target.explicitDeclaration)],edges:[{id:o,span:[0,0],...r.explicitIdLocation?{idSpan:r.explicitIdLocation.span}:{},...r.label?{labelSpan:r.label.span}:{}}]}}entityName(t){let e=this.tokens(t,"IDENTIFIER")[0],s=this.tokens(t,"PLAIN_STRING")[0]??this.tokens(t,"MARKDOWN_STRING")[0],n=this.nodes(t,"nodeLabel")[0],i=this.nodes(t,"useCaseMetadata")[0],r=this.nodes(t,"stereotype")[0],o=this.nodes(t,"classSuffix")[0],l=o?this.visit(o):{classes:[],spans:[]};if(e){let h=n?this.visit(n):this.tokenLabel(e),d=n?this.tokens(t,"LBRACKET").length?"rect":"ellipse":void 0;return{id:e.image,label:h,location:this.tokenLocation(e),generated:!1,...d?{shape:d}:{},...i?{metadata:this.visit(i)}:{},...r?{stereotype:this.visit(r)}:{},classes:l.classes,classSpans:l.spans,explicitDeclaration:!!(d||i||r)}}let a=this.tokenLabel(s);return{id:this.generateId(a.text),label:a,location:this.tokenLocation(s),generated:!0,...i?{metadata:this.visit(i)}:{},...r?{stereotype:this.visit(r)}:{},classes:l.classes,classSpans:l.spans,explicitDeclaration:!!(i||r)}}nodeLabel(t){let e=this.allTokens(t);if(e.length===1&&(e[0].tokenType.name==="PLAIN_STRING"||e[0].tokenType.name==="MARKDOWN_STRING"))return this.tokenLabel(e[0]);let s=[e[0].startOffset,(e.at(-1).endOffset??e.at(-1).startOffset)+1];return{text:this.source.slice(s[0],s[1]),type:"text",span:s}}useCaseMetadata(t){return this.visit(this.nodes(t,"metadata")[0])}relationTail(t){let e=this.tokens(t,"IDENTIFIER")[0];return{...e?{explicitId:e.image,explicitIdLocation:this.tokenLocation(e)}:{},arrow:this.visit(this.nodes(t,"arrow")[0]),target:this.visit(this.nodes(t,"entityName")[0])}}arrow(t){return this.visit(this.firstNode(t,"semanticRelation","forwardSolidOperator","backwardSolidOperator","markerlessSolidOperator","forwardCircleOperator","backwardCircleOperator","forwardCrossOperator","backwardCrossOperator"))}edgeLabel(t){return this.nodeLabel(t)}semanticRelation(t){if(this.tokens(t,"GENERALIZATION").length)return{type:"generalization",arrowType:$.SOLID_ARROW,minlen:1};let e=this.tokens(t,"INCLUDE").length?"include":"extend",s=this.tokens(t,e==="include"?"INCLUDE":"EXTEND")[0];return{type:e,arrowType:$.SOLID_ARROW,label:{text:e,type:"text",span:this.tokenSpan(s)},minlen:1}}metadata(t){return{properties:this.nodes(t,"metadataProperty").map(e=>this.visit(e)),location:this.ctxLocation(t)}}metadataProperty(t){let e=this.allTokens(t).filter(o=>o.tokenType.name!=="COLON"),s=e[0],n=e[1],i=n.tokenType.name==="TRUE"?!0:n.tokenType.name==="FALSE"?!1:this.decodePlain(n),r=[s.startOffset,(n.endOffset??n.startOffset)+1];return{key:this.decodePlain(s),value:i,span:r,keySpan:this.contentSpan(s),valueSpan:this.contentSpan(n),location:this.tokenLocation(s)}}metadataSeparator(t){}systemBoundaryStatement(t){let e=this.visit(this.nodes(t,"systemBoundaryName")[0]),s=this.nodes(t,"classSuffix")[0],n=s?this.visit(s):{classes:[],spans:[]};e.classes=n.classes,this.builder.addBoundary(e);let i=this.parentBoundary;this.parentBoundary={id:e.id,location:e.location};let r=this.nodes(t,"systemBoundaryContent")[0],o=r?this.visit(r):[];this.parentBoundary=i;let l=this.tokens(t,"END")[0],a=this.nodes(t,"metadata")[0],h=a?this.visit(a):void 0,d={kind:"group",span:[0,0],group:e.id,idSpan:e.location.span,titleSpan:e.label.span,endSpan:this.tokenSpan(l),classSpans:n.spans,...h?{metadata:h.properties.map(({key:u,span:p,keySpan:S,valueSpan:N})=>({key:u,span:p,keySpan:S,valueSpan:N}))}:{},...o.length?{children:o}:{}};return h&&this.builder.addMetadataAssignment(e.id,e.location,h,d),d}systemBoundaryName(t){let e=this.tokens(t,"IDENTIFIER")[0];if(e){let i=this.nodes(t,"nodeLabel")[0];return{id:e.image,label:i?this.visit(i):this.tokenLabel(e),location:this.tokenLocation(e),generated:!1,classes:[]}}let s=this.tokens(t,"PLAIN_STRING")[0]??this.tokens(t,"MARKDOWN_STRING")[0],n=this.tokenLabel(s);return{id:this.generateId(n.text),label:n,location:this.tokenLocation(s),generated:!0,classes:[]}}systemBoundaryContent(t){return[...this.nodes(t,"blankLine"),...this.nodes(t,"commentLine"),...this.nodes(t,"boundaryElement")].sort((s,n)=>(s.location?.startOffset??0)-(n.location?.startOffset??0)).map(s=>this.wrap(s,this.visit(s)))}boundaryElement(t){let e=this.nodes(t,"actorDeclarationOnly")[0];if(e)return this.visit(e);let s=this.nodes(t,"entityName")[0],n=this.visit(s);return n.explicitDeclaration=!0,n.shape??="ellipse",this.builder.addElement(this.entityDraft(n)),{kind:"node",span:[0,0],nodes:[this.entityOccurrence(s,n,!0)]}}metadataAssignmentStatement(t){let e=this.visit(this.nodes(t,"metadataAssignmentTarget")[0]),s=this.visit(this.nodes(t,"metadata")[0]),n={kind:"metadata",span:[0,0],nodes:[{id:e.id,span:e.location.span,idSpan:e.location.span}],metadata:s.properties.map(({key:i,span:r,keySpan:o,valueSpan:l})=>({key:i,span:r,keySpan:o,valueSpan:l}))};return this.builder.addMetadataAssignment(e.id,e.location,s,n),n}metadataAssignmentTarget(t){let e=this.allTokens(t)[0],s=this.tokenLabel(e);return{id:e.tokenType.name==="IDENTIFIER"?e.image:this.generateId(s.text),location:this.tokenLocation(e)}}noteStatement(t){let e=this.tokens(t,"IDENTIFIER")[0],s=this.visit(this.nodes(t,"nodeLabel")[0]);return this.builder.addNote({target:e.image,targetLocation:this.tokenLocation(e),label:s,location:this.ctxLocation(t)}),{kind:"note",span:[0,0],ref:`note-${this.anonymousNote++}`,refSpan:s.span,nodes:[{id:e.image,span:this.tokenSpan(e),idSpan:this.tokenSpan(e)}]}}stereotype(t){let e=this.tokens(t,"STEREOTYPE_TEXT")[0];return{value:e.image.trim(),span:this.tokenSpan(e)}}classSuffix(t){let e=this.tokens(t,"IDENTIFIER");return{classes:e.map(s=>s.image),spans:e.map(s=>this.tokenSpan(s))}}jsonStatement(t){let e=this.tokens(t,"JSON_DECLARATION_START")[0],s=this.tokens(t,"JSON_OBJECT_LITERAL")[0],n=/^json[\t ]+(\w+)/.exec(e.image),i=n[1],r=n[0].length-i.length,o={span:[e.startOffset+r,e.startOffset+r+i.length],line:e.startLine??1,column:(e.startColumn??1)+r},l=Ra(s.image,s.startLine??1,s.startColumn??1),a=this.nodes(t,"classSuffix")[0],h=a?this.visit(a):{classes:[],spans:[]},d={id:i,value:l.value,propertyOrder:l.propertyOrder,location:o,classes:h.classes};return this.builder.addJson(d),{kind:"json",span:[0,0],nodes:[{id:i,span:o.span,idSpan:o.span,defines:!0,classSpans:h.spans}],classSpans:h.spans}}directionStatement(t){let e=this.allTokens(t).find(s=>["TD","TB","BT","RL","LR"].includes(s.tokenType.name));return this.builder.setDirection(e.image),{kind:"direction",span:[0,0]}}classDefStatement(t){let e=this.tokens(t,"IDENTIFIER"),s=this.visit(this.nodes(t,"styles")[0]);return this.builder.addClassDef(e.map(n=>n.image),s),{kind:"classDef",span:[0,0],ref:e[0].image,refSpan:this.tokenSpan(e[0])}}classStatement(t){let e=this.tokens(t,"IDENTIFIER"),s=1;for(;s({id:r.image,location:this.tokenLocation(r)})),i=e.slice(s).map(r=>r.image);return this.builder.addClassAssignment(n,i),{kind:"classAssign",span:[0,0],ref:i[0],refSpan:this.tokenSpan(e[s]),nodes:n.map(({id:r,location:o})=>({id:r,span:o.span,idSpan:o.span}))}}styleStatement(t){let e=this.tokens(t,"IDENTIFIER")[0],s=this.visit(this.nodes(t,"styles")[0]);return this.builder.addStyleAssignment(e.image,this.tokenLocation(e),s),{kind:"style",span:[0,0],nodes:[{id:e.image,span:this.tokenSpan(e),idSpan:this.tokenSpan(e)}]}}styles(t){return this.nodes(t,"styleValue").map(e=>this.visit(e))}styleValue(t){let e=this.allTokens(t),s=[e[0].startOffset,(e.at(-1).endOffset??e.at(-1).startOffset)+1];return this.source.slice(s[0],s[1]).replaceAll("\\,",",")}styleComponent(t){return this.allTokens(t).map(e=>e.image).join("")}forwardSolidOperator(t){let e=this.tokens(t,"FORWARD_SOLID")[0];return{type:"association",arrowType:$.SOLID_ARROW,minlen:this.solidMinlen(e)}}backwardSolidOperator(t){let e=this.tokens(t,"BACKWARD_SOLID")[0],s=this.nodes(t,"edgeLabel")[0],n=s?this.tokens(t,"MARKERLESS_SOLID").at(-1):e;return{type:"association",arrowType:$.BACK_ARROW,minlen:this.solidMinlen(n),...s?{label:this.visit(s)}:{}}}markerlessSolidOperator(t){let e=this.nodes(t,"edgeLabel")[0],s=this.allTokens(t);if(!e)return{type:"association",arrowType:$.LINE_SOLID,minlen:this.solidMinlen(this.tokens(t,"MARKERLESS_SOLID")[0])};let n=s.at(-1),i=n.tokenType.name==="FORWARD_SOLID"?$.SOLID_ARROW:n.tokenType.name==="FORWARD_CIRCLE"?$.CIRCLE_ARROW:n.tokenType.name==="FORWARD_CROSS"?$.CROSS_ARROW:$.LINE_SOLID;return{type:"association",arrowType:i,label:this.visit(e),minlen:i===$.SOLID_ARROW||i===$.LINE_SOLID?this.solidMinlen(n):1}}forwardCircleOperator(t){return{type:"association",arrowType:$.CIRCLE_ARROW,minlen:1}}backwardCircleOperator(t){let e=this.nodes(t,"edgeLabel")[0];return{type:"association",arrowType:$.CIRCLE_ARROW_REVERSED,minlen:1,...e?{label:this.visit(e)}:{}}}forwardCrossOperator(t){return{type:"association",arrowType:$.CROSS_ARROW,minlen:1}}backwardCrossOperator(t){let e=this.nodes(t,"edgeLabel")[0];return{type:"association",arrowType:$.CROSS_ARROW_REVERSED,minlen:1,...e?{label:this.visit(e)}:{}}}actorDraft(t){return{id:t.id,kind:"actor",label:t.label,location:t.location,generated:t.generated,...this.parentBoundary?{parentId:this.parentBoundary.id,parentLocation:this.parentBoundary.location}:{},...t.metadata?{metadata:t.metadata}:{},...t.stereotype?{stereotype:t.stereotype.value,stereotypeSpan:t.stereotype.span}:{},classes:t.classes}}entityDraft(t){return{id:t.id,kind:"usecase",label:t.label,location:t.location,generated:t.generated,...this.parentBoundary?{parentId:this.parentBoundary.id,parentLocation:this.parentBoundary.location}:{},...t.shape?{shape:t.shape}:{},...t.metadata?{metadata:t.metadata}:{},...t.stereotype?{stereotype:t.stereotype.value,stereotypeSpan:t.stereotype.span}:{},classes:t.classes}}endpoint(t,e=t.explicitDeclaration??!0){return{id:t.id,label:t.label,location:t.location,generated:t.generated,declaration:e,classesOnReference:t.classes.length>0}}relationshipDraft(t,e,s){return{source:this.endpoint(t,!0),target:this.endpoint(e.target),location:s,...e.explicitId?{explicitId:e.explicitId,explicitIdLocation:e.explicitIdLocation}:{},...e.arrow}}actorOccurrence(t,e,s){return{id:e.id,span:this.nodeSpan(t),idSpan:e.location.span,labelSpan:e.label.span,...s?{defines:!0}:{},...e.stereotype?{stereotypeSpan:e.stereotype.span}:{},...e.metadata?{metadata:e.metadata.properties.map(({key:n,span:i,keySpan:r,valueSpan:o})=>({key:n,span:i,keySpan:r,valueSpan:o}))}:{},...e.classSpans.length?{classSpans:e.classSpans}:{}}}entityOccurrence(t,e,s){return this.actorOccurrence(t,e,s)}wrap(t,e){if(e.kind==="blank"||e.kind==="comment")return e;e.span=this.nodeSpan(t);for(let s of e.edges??[])s.span=e.span;return e}tokenLabel(t){let e=t.tokenType.name==="MARKDOWN_STRING"?"markdown":"text",s=e==="markdown"?2:t.tokenType.name==="PLAIN_STRING"?1:0,n=this.tokenSpan(t,s);return{text:this.source.slice(n[0],n[1]),type:e,span:n}}decodePlain(t){return t.tokenType.name==="PLAIN_STRING"?t.image.slice(1,-1):t.image}contentSpan(t){return this.tokenSpan(t,t.tokenType.name==="PLAIN_STRING"?1:t.tokenType.name==="MARKDOWN_STRING"?2:0)}generateId(t){return t.replace(/\W/g,"_")}solidMinlen(t){return Math.max(1,(t.image.match(/-/g)?.length??2)-1)}nodeLocation(t){let e=this.allTokens(t.children)[0];return{span:this.nodeSpan(t),line:e.startLine??1,column:e.startColumn??1}}ctxLocation(t){let e=this.allTokens(t).filter(i=>i.tokenType.name!=="NEWLINE"&&i.tokenType.name!=="EOF"),s=e[0],n=e.at(-1);return{span:[s.startOffset,Math.min(this.source.length,(n.endOffset??n.startOffset+n.image.length-1)+1)],line:s.startLine??1,column:s.startColumn??1}}tokenLocation(t){let e=t.tokenType.name==="PLAIN_STRING"?1:t.tokenType.name==="MARKDOWN_STRING"?2:0;return{span:this.tokenSpan(t,e),line:t.startLine??1,column:(t.startColumn??1)+e}}nodeSpan(t){let e=this.allTokens(t.children).filter(i=>i.tokenType.name!=="NEWLINE"&&i.tokenType.name!=="EOF"),s=e[0],n=e.at(-1);if(!s||!n)throw new Error("Usecase CST node has no source token");return[s.startOffset,Math.min(this.source.length,(n.endOffset??n.startOffset+n.image.length-1)+1)]}tokenSpan(t,e=0){return[t.startOffset+e,Math.min(this.source.length,(t.endOffset??t.startOffset+t.image.length-1)+1-e)]}nodes(t,e){return(t[e]??[]).filter(s=>"children"in s)}tokens(t,e){return(t[e]??[]).filter(s=>"tokenTypeIdx"in s)}firstNode(t,...e){for(let s of e){let n=this.nodes(t,s)[0];if(n)return n}throw new Error(`Usecase CST is missing one of: ${e.join(", ")}`)}allTokens(t){let e=[];for(let s of Object.values(t))for(let n of s)"tokenTypeIdx"in n?e.push(n):e.push(...this.allTokens(n.children));return e.sort((s,n)=>s.startOffset-n.startOffset)}},_l=new vl,bl={parse:c(async t=>{Ys.clear(),ts.input=[];try{Mr({diagramType:"usecase",lexer:Tl,parser:ts,entry:c(()=>ts.start(),"entry"),visit:c(e=>_l.build(e,t),"visit")},t)}catch(e){Ys.clear();let s=ts.errors[0];if(s){let{token:n}=s,i=Number.isFinite(n.startOffset)?n.startOffset:t.length,r=typeof n.endOffset=="number"&&Number.isFinite(n.endOffset)?n.endOffset+1:i,o=n.startLine??t.slice(0,i).split(/\r\n|\r|\n/).length,l=Math.max(t.lastIndexOf(` +`,i-1),t.lastIndexOf("\r",i-1)),a=n.startColumn??i-l,h=e instanceof Error?e.message:String(e);throw new Error(`${h} at line ${o}, column ${a} [${i},${r})`)}throw e}},"parse")},Ml=["point","circle","cross","extension"],La={usecaseActor:!0,usecaseActorHollow:!0,usecaseActorAwesome:!0,usecaseActorIcon:!0},vr=c((t,e)=>{let[s,n]=[t,e].map(i=>i.replace(/[^\w-]+/g,"_").replace(/^_+|_+$/g,"")||"element");return`usecase-${s}-${n}`},"usecaseDomId"),Ul=c(t=>`usecase-${t.replace(/[^\w-]+/g,"_").replace(/^_+|_+$/g,"")||"element"}`,"usecaseNodeDomId"),Xs=c((t,e)=>e!=="markdown"?t:ri(t).map(s=>s.map(n=>n.content).join(" ")).join(` +`),"getAccessibleLabel"),wl=c(t=>{let e=Xs(t.label??t.id,t.labelType);if(La[t.shape]){let n=t.actorType&&t.actorType!=="normal"?`${t.actorType} `:"",i=t.business?"business ":"",r=t.stereotype?`, stereotype ${t.stereotype}`:"";return`${i}${n}actor ${e}${r}`}if(t.shape==="note")return`Note for ${t.noteTargetLabel??t.noteTarget??""}: ${e}`;if(t.shape==="usecaseJsonTable"){let n=(t.jsonRows??[]).map(i=>`${i.accessibleKey}: ${i.value}`).join("; ");return n?`${e}: ${n}`:e}let s=t.stereotype?`, stereotype ${t.stereotype}`:"";return`${t.business?"business ":""}use case ${e}${s}`},"getUsecaseNodeAccessibleName"),Pl=c(t=>`${t.boundaryType} system boundary ${Xs(t.label??t.id,t.labelType)}`,"getUsecaseBoundaryAccessibleName"),Dl=c(t=>t.relationshipType==="note"?"":`${t.relationshipType==="association"&&t.label?`association ${Xs(t.label,t.labelType)}`:t.relationshipType} from ${t.sourceLabel} to ${t.targetLabel}`,"getUsecaseEdgeAccessibleName"),At=c(t=>t.replace(/&/g,"&").replace(//g,">"),"escapePlainLabel"),_r=c(t=>t.replace(/([*[\\\]_`])/g,"\\$1"),"escapeMarkdownMarkers"),Fl=c((t,e)=>{t.diagramId=e,t.markers=[...Ml];for(let s of t.nodes){let n=s;if(n.domId=Ul(s.id),s.label!==void 0&&s.labelType==="text"&&(s.label=At(s.label)),s.stereotype&&(s.stereotype=At(s.stereotype)),!s.isGroup&&s.shape==="usecaseJsonTable"&&(s.jsonRows=s.jsonRows?.map(i=>({...i,key:At(i.key),value:At(i.value)}))),!s.isGroup&&(s.shape==="usecaseEllipse"||s.shape==="rect")&&s.stereotype){let i=s.label??At(s.id);s.label=`\xAB${_r(s.stereotype)}\xBB
    ${s.labelType==="text"?_r(i):i}`,s.labelType="markdown",n.hasFoldedStereotype=!0,delete s.stereotype}}for(let s of t.edges)s.label!==void 0&&s.labelType==="text"&&(s.label=At(s.label));return t},"prepareUsecaseLayoutData"),Bl=c((t,e,s)=>{for(let i of e.nodes){let r=typeof i.domId=="string"?i.domId:vr(e.diagramId,i.id),o=t.select(`#${r}`),l=i.isGroup?"boundary":La[i.shape]?"actor":i.shape==="note"?"note":i.shape==="usecaseJsonTable"?"json":"usecase",a=s.nodes.get(i.id)??i.id;if(o.attr("data-usecase-id",i.id).attr("data-usecase-kind",l).attr("role","img").attr("aria-label",a),!i.isGroup&&(i.shape==="usecaseEllipse"||i.shape==="rect")&&"hasFoldedStereotype"in i&&i.hasFoldedStereotype===!0){let h=o.node(),d=h?.querySelector(".nodeLabel"),u=d?.querySelector("p")??d,p=u?.firstChild;if(u&&p?.nodeType===3){let S=u.ownerDocument.createElement("span");S.className="usecase-stereotype",u.insertBefore(S,p),S.appendChild(p)}else h?.querySelector(".label tspan tspan, .label tspan")?.classList.add("usecase-stereotype")}}let n=new Map(e.edges.map(i=>[i.id,i]));t.selectAll('path[data-et="edge"]').each(function(){let i=n.get(this.getAttribute("data-id")??"");if(!i)return;let r=ni(this);r.attr("id",vr(e.diagramId,i.id)).attr("data-usecase-id",i.id).attr("data-usecase-kind",i.internal?"note-connector":"relationship"),i.internal?r.attr("aria-hidden","true"):r.attr("role","img").attr("aria-label",s.edges.get(i.id)??i.id)})},"annotateUsecaseElements"),br=c((t,e)=>{t.style("--mermaid-usecase-actor-font-size",`${e.actorFontSize}px`).style("--mermaid-usecase-actor-font-family",e.actorFontFamily).style("--mermaid-usecase-actor-font-weight",e.actorFontWeight).style("--mermaid-usecase-font-size",`${e.usecaseFontSize}px`).style("--mermaid-usecase-font-family",e.usecaseFontFamily).style("--mermaid-usecase-font-weight",e.usecaseFontWeight)},"applyUsecaseFonts"),$l=c(async(t,e,s,n)=>{Jn.info("Drawing usecase diagram (unified)",e);let{layout:i}=tn(),r=n.db,o=r.getData(),l=new Map(o.nodes.map(u=>[u.id,Xs(u.label??u.id,u.labelType)])),a={nodes:new Map(o.nodes.map(u=>[u.id,u.isGroup?Pl(u):wl(u.shape==="note"?{...u,noteTargetLabel:l.get(u.noteTarget??"")}:u)])),edges:new Map(o.edges.map(u=>[u.id,Dl({...u,sourceLabel:l.get(u.source)??u.sourceLabel,targetLabel:l.get(u.target)??u.targetLabel})]))},h=fi(e,o.config.securityLevel);o.layoutAlgorithm=pi(i),Fl(o,e),br(h,o),await di(o,h),Bl(h,o,a);let d=o.diagramPadding;ii.insertTitle(h,"usecaseDiagramTitleText",0,r.getDiagramTitle?.()??""),mi(h,d,"usecaseDiagram",o.useMaxWidth),br(h,o)},"draw"),Gl={draw:$l},Wl=c(t=>({actorBkg:t.usecaseActorBkg??t.actorBkg??t.mainBkg,actorBorder:t.usecaseActorBorder??t.actorBorder??t.primaryColor,bkg:t.usecaseBkg??t.mainBkg,border:t.usecaseBorder??t.nodeBorder??t.primaryColor,boundaryBkg:t.usecaseBoundaryBkg??t.clusterBkg,boundaryBorder:t.usecaseBoundaryBorder??t.clusterBorder,includeLine:t.usecaseIncludeLine??t.lineColor,extendLine:t.usecaseExtendLine??t.lineColor}),"roleColors"),Kl=c(t=>{let{theme:e,bkgColorArray:s,borderColorArray:n}=t;if(!oi(e,n))return"";let i=Zn().usecase?.colorScheme==="rotate",r=ot(t.look),o=r==="handDrawn",l=ai(s),a="";for(let h=0;h{let e=Wl(t),s=ot(t.look)==="handDrawn";return` + ${Kl(t)} + & .usecase-actor { + color: ${t.actorTextColor??t.primaryTextColor}; + } + + & .usecase-actor-shape, + & .usecase-actor-hollow, + & .usecase-actor-awesome, + & .usecase-actor-icon { + fill: ${e.actorBkg}; + stroke: ${e.actorBorder}; + stroke-width: 2px; + } +${s?"":` + /* The rule above colours the glyph group and lets its children inherit, which the neo + look breaks: it ships a \`[data-look="neo"].node path { stroke }\` rule that lands on + the glyph's own paths, and a value set directly on a child always beats one inherited + from its parent, whatever the parent rule's specificity. Since neo is the default look, + without this every actor renders in the node border colour rather than the actor + colour the rule above asks for. + + \`.node\` is in the selector to outrank that neo rule rather than tie with it: both + would otherwise be one attribute plus one class plus one element, leaving the winner to + depend on which stylesheet is concatenated last. + + Stroke only: the hollow variant's own \`fill="none"\` has to keep winning. */ + & .node.usecase-actor .usecase-actor-glyph path, + & .node.usecase-actor .usecase-actor-glyph circle { + stroke: ${e.actorBorder}; + } +`} + & .usecase-actor .nodeLabel, + & .actor-label { + color: ${t.actorTextColor??t.primaryTextColor}; + fill: ${t.actorTextColor??t.primaryTextColor}; + font-family: var(--mermaid-usecase-actor-font-family, ${t.fontFamily}); + font-size: var(--mermaid-usecase-actor-font-size, 14px); + font-weight: var(--mermaid-usecase-actor-font-weight, normal); + } + + & .usecase-element ellipse, + & .usecase-element rect, + & .usecase-business ellipse, + & .usecase-business rect { + fill: ${e.bkg}; + stroke: ${e.border}; + stroke-width: 2px; + } +${s?"":` + /* The same interception the actor glyph hits, one element down: neo ships + \`[data-look="neo"].node rect { stroke: nodeBorder }\`, which outranks the plain + \`.usecase-element rect\` above, so a use case written in the \`[Rect]\` form kept the node + border colour while its ellipse siblings took the role colour. An \`\` has no + equivalent neo rule and is already correct; restating it here costs nothing and means + the two forms cannot drift apart again. + + Qualified with \`[data-look]\` *and* \`.node\` to land strictly above that rule rather than + tie with it -- on a tie the later stylesheet would win, which is how neo took this in + the first place. Skipped under handDrawn, where roughjs draws paths and neither element + exists. */ + & [data-look="${ot(t.look)}"].node.usecase-element ellipse, + & [data-look="${ot(t.look)}"].node.usecase-element rect { + fill: ${e.bkg}; + stroke: ${e.border}; + } + + /* The business marker is a \`\`, so it loses to \`[data-look="neo"].node path\` the same + way. No \`fill\`: the marker is drawn with \`fill="none"\` and has to stay that way. */ + & [data-look="${ot(t.look)}"].node.usecase-element .usecase-business-marker { + stroke: ${e.border}; + } +`} + & .usecase-element .nodeLabel, + & .usecase-label { + color: ${t.primaryTextColor}; + fill: ${t.primaryTextColor}; + font-family: var(--mermaid-usecase-font-family, ${t.fontFamily}); + font-size: var(--mermaid-usecase-font-size, 12px); + font-weight: var(--mermaid-usecase-font-weight, normal); + } + + & .usecase-stereotype, + & .usecase-business-marker { + color: ${t.primaryTextColor}; + fill: ${t.primaryTextColor}; + stroke: ${e.border}; + } + + & .system-boundary rect.boundary-body, + & .system-boundary rect.boundary-tab, + & .system-boundary-package-tab { + fill: ${e.boundaryBkg}; + stroke: ${e.boundaryBorder}; + stroke-width: 1px; + } + + & .system-boundary-title text { + fill: ${t.titleColor??t.primaryTextColor}; + } + + /* Only the span, never the

    inside it: the renderer puts a user-supplied + 'color' on the span, and that has to stay inheritable by its children. */ + & .system-boundary-title span { + color: ${t.titleColor??t.primaryTextColor}; + } + + & .usecase-note { + fill: ${t.noteBkgColor}; + stroke: ${t.noteBorderColor}; + color: ${t.noteTextColor}; + } + + & .usecase-note .nodeLabel { + color: ${t.noteTextColor}; + fill: ${t.noteTextColor}; + } + + & .usecase-json-table, + & .usecase-json-table rect, + & .usecase-json-cell { + fill: ${t.mainBkg}; + stroke: ${t.nodeBorder??t.primaryColor}; + } + + & .usecase-json-title, + & .usecase-json-key, + & .usecase-json-value { + color: ${t.primaryTextColor}; + fill: ${t.primaryTextColor}; + } + + & .relationship { + fill: none; + stroke: ${t.lineColor}; + } + + & .relationship-include, + & .relationship-extend, + & .relationship-note { + stroke-dasharray: 3; + } + + /* Include and extend are both dashed, which is a weak distinction at small sizes. The + tokens default to \`lineColor\`, so a theme that does not set them is unchanged. */ + & .relationship-include { + stroke: ${e.includeLine}; + } + + & .relationship-extend { + stroke: ${e.extendLine}; + } + + & .relationship.edge-animation-fast, + & .relationship.edge-animation-slow { + stroke-linecap: round; + } + + & .edgeLabel, + & .edgeLabel p { + background-color: ${t.edgeLabelBackground}; + } + + & .labelBkg { + background-color: ${t.edgeLabelBackground}; + padding: 0 2px; + } + + & .edgeLabel .label rect { + fill: ${t.edgeLabelBackground}; + } + + & .relationship-label, + & .edgeLabel { + color: ${t.primaryTextColor}; + fill: ${t.primaryTextColor}; + font-family: ${t.fontFamily}; + font-size: 10px; + font-weight: normal; + } + + & .marker, + & .marker.point, + & .marker.circle, + & .marker.cross { + fill: ${t.lineColor}; + stroke: ${t.lineColor}; + } + + & .marker.extension { + fill: ${t.mainBkg}; + stroke: ${t.lineColor}; + } +`},"getStyles"),jl=Vl,gp={parser:bl,db:Ys,renderer:Gl,styles:jl};export{gp as diagram}; diff --git a/src/frontend/web/von_interface/static/vendor/conversation-visuals/vennDiagram-UO4OBE2U-FWCNYWTO.js b/src/frontend/web/von_interface/static/vendor/conversation-visuals/vennDiagram-UO4OBE2U-FWCNYWTO.js new file mode 100644 index 000000000..f5661c320 --- /dev/null +++ b/src/frontend/web/von_interface/static/vendor/conversation-visuals/vennDiagram-UO4OBE2U-FWCNYWTO.js @@ -0,0 +1,34 @@ +import{a as Pt}from"./chunk-UED66XBH.js";import{a as Bt}from"./chunk-HVVAQLXH.js";import{o as Vt}from"./chunk-EUYVSIXP.js";import"./chunk-QSTT4QQC.js";import{C as ct,P as Dt,U as Rt,V as Ct,W as Nt,X as Ot,Y as Lt,Z as Ft,_ as jt,c as Et,d as Tt,e as zt,f as lt,r as At}from"./chunk-S4JILX6U.js";import{h as it}from"./chunk-XEQL7KGA.js";import{a as w}from"./chunk-YUSHYV7C.js";import"./chunk-3RNHDNP5.js";function rt(t,n){let s=fe(t),e=s.filter(l=>ue(l,t)),i=0,r=0,o=[];if(e.length>1){let l=Wt(e);for(let u=0;ua.angle-u.angle);let f=e[e.length-1];for(let u=0;up.radius*2&&(g=p.radius*2),(d==null||d.width>g)&&(d={circle:p,width:g,p1:a,p2:f,large:g>p.radius,sweep:!0})}d!=null&&(o.push(d),i+=ht(d.circle.radius,d.width),f=a)}}else{let l=t[0];for(let u=1;uMath.abs(l.radius-t[u].radius)){f=!0;break}f?i=r=0:(i=l.radius*l.radius*Math.PI,o.push({circle:l,p1:{x:l.x,y:l.y+l.radius},p2:{x:l.x-1e-10,y:l.y+l.radius},width:l.radius*2,large:!0,sweep:!0}))}return r/=2,n&&(n.area=i+r,n.arcArea=i,n.polygonArea=r,n.arcs=o,n.innerPoints=e,n.intersectionPoints=s),i+r}function ue(t,n){return n.every(s=>U(t,s)=t+n)return 0;if(s<=Math.abs(t-n))return Math.PI*Math.min(t,n)*Math.min(t,n);let e=t-(s*s-n*n+t*t)/(2*s),i=n-(s*s-t*t+n*n)/(2*s);return ht(t,e)+ht(n,i)}function Gt(t,n){let s=U(t,n),e=t.radius,i=n.radius;if(s>=e+i||s<=Math.abs(e-i))return[];let r=(e*e-i*i+s*s)/(2*s),o=Math.sqrt(e*e-r*r),l=t.x+r*(n.x-t.x)/s,f=t.y+r*(n.y-t.y)/s,u=-(n.y-t.y)*(o/s),a=-(n.x-t.x)*(o/s);return[{x:l+u,y:f-a},{x:l-u,y:f+a}]}function Wt(t){let n={x:0,y:0};for(let s of t)n.x+=s.x,n.y+=s.y;return n.x/=t.length,n.y/=t.length,n}function he(t,n,s,e){e=e||{};let i=e.maxIterations||100,r=e.tolerance||1e-10,o=t(n),l=t(s),f=s-n;if(o*l>0)throw"Initial bisect points must have opposite signs";if(o===0)return n;if(l===0)return s;for(let u=0;u=0&&(n=a),Math.abs(f)dt(n))}function tt(t,n){let s=0;for(let e=0;ev.fx-c.fx,_=n.slice(),S=n.slice(),g=n.slice(),m=n.slice();for(let v=0;v{let D=h.slice();return D.fx=h.fx,D.id=h.id,D});x.sort((h,D)=>h.id-D.id),s.history.push({x:p[0].slice(),fx:p[0].fx,simplex:x})}d=0;for(let x=0;x=p[b-1].fx){let x=!1;if(S.fx>c.fx?(J(g,1+a,_,-a,c),g.fx=t(g),g.fx=1)break;for(let h=1;hl+r*i*f||u>=T)M=i;else{if(Math.abs(y)<=-o*f)return i;y*(M-p)>=0&&(M=p),p=i,T=u}return 0}for(let p=0;p<10;++p){if(J(e.x,1,s.x,i,n),u=e.fx=t(e.x,e.fxprime),y=tt(e.fxprime,n),u>l+r*i*f||p&&u>=a)return b(d,i,a);if(Math.abs(y)<=-o*f)return i;if(y>=0)return b(i,d,u);a=u,d=i,i*=2}return i}function ge(t,n,s){let e={x:n.slice(),fx:0,fxprime:n.slice()},i={x:n.slice(),fx:0,fxprime:n.slice()},r=n.slice(),o,l,f=1,u;s=s||{},u=s.maxIterations||n.length*20,e.fx=t(e.x,e.fxprime),o=e.fxprime.slice(),xt(o,e.fxprime,-1);for(let a=0;a{let y={};for(let d=0;dmt(t,n,e)-s,0,t+n)}function xe(t,n={}){let s=n.distinct,e=t.map(l=>Object.assign({},l));function i(l){return l.join(";")}if(s){let l=new Map;for(let f of e)for(let u=0;ul===f?0:lr.sets.length===2).forEach(r=>{let o=s[r.sets[0]],l=s[r.sets[1]],f=Math.sqrt(n[o].size/Math.PI),u=Math.sqrt(n[l].size/Math.PI),a=yt(f,u,r.size);e[o][l]=e[l][o]=a;let y=0;r.size+1e-10>=Math.min(n[o].size,n[l].size)?y=1:r.size<=1e-10&&(y=-1),i[o][l]=i[l][o]=y}),{distances:e,constraints:i}}function pe(t,n,s,e){for(let r=0;r0&&p<=y||d<0&&p>=y||(i+=2*M*M,n[2*r]+=4*M*(o-u),n[2*r+1]+=4*M*(l-a),n[2*f]+=4*M*(u-o),n[2*f+1]+=4*M*(a-l))}}return i}function me(t,n={}){let s=ve(t,n),e=n.lossFunction||et;if(t.length>=8){let i=be(t,n),r=e(i,t),o=e(s,t);r+1e-8d.map(b=>b/l));let f=(d,b)=>pe(d,b,r,o),u=null;for(let d=0;dy.sets.length===2);for(let y of t){let d=y.weight!=null?y.weight:1,b=y.sets[0],p=y.sets[1];y.size+Yt>=Math.min(e[b].size,e[p].size)&&(d=0),i[b].push({set:p,size:y.size,weight:d}),i[p].push({set:b,size:y.size,weight:d})}let r=[];Object.keys(i).forEach(y=>{let d=0;for(let b=0;bt[o]));let r=e.weight!=null?e.weight:1;s+=r*(i-e.size)*(i-e.size)}return s}function Xt(t,n){let s=0;for(let e of n){if(e.sets.length===1)continue;let i;if(e.sets.length===2){let l=t[e.sets[0]],f=t[e.sets[1]];i=mt(l.radius,f.radius,U(l,f))}else i=rt(e.sets.map(l=>t[l]));let r=e.weight!=null?e.weight:1,o=Math.log((i+1)/(e.size+1));s+=r*o*o}return s}function ke(t,n,s){if(s==null?t.sort((i,r)=>r.radius-i.radius):t.sort(s),t.length>0){let i=t[0].x,r=t[0].y;for(let o of t)o.x-=i,o.y-=r}if(t.length===2&&U(t[0],t[1])1){let i=Math.atan2(t[1].x,t[1].y)-n,r=Math.cos(i),o=Math.sin(i);for(let l of t){let f=l.x,u=l.y;l.x=r*f-o*u,l.y=o*f+r*u}}if(t.length>2){let i=Math.atan2(t[2].x,t[2].y)-n;for(;i<0;)i+=2*Math.PI;for(;i>2*Math.PI;)i-=2*Math.PI;if(i>Math.PI){let r=t[1].y/(1e-10+t[1].x);for(let o of t){var e=(o.x+r*o.y)/(1+r*r);o.x=2*e-o.x,o.y=2*e*r-o.y}}}}function Ie(t){t.forEach(i=>{i.parent=i});function n(i){return i.parent!==i&&(i.parent=n(i.parent)),i.parent}function s(i,r){let o=n(i),l=n(r);o.parent=l}for(let i=0;i{delete i.parent}),Array.from(e.values())}function pt(t){let n=s=>{let e=t.reduce((r,o)=>Math.max(r,o[s]+o.radius),Number.NEGATIVE_INFINITY),i=t.reduce((r,o)=>Math.min(r,o[s]-o.radius),Number.POSITIVE_INFINITY);return{max:e,min:i}};return{xRange:n("x"),yRange:n("y")}}function Zt(t,n,s){n==null&&(n=Math.PI/2);let e=$t(t).map(u=>Object.assign({},u)),i=Ie(e);for(let u of i){ke(u,n,s);let a=pt(u);u.size=(a.xRange.max-a.xRange.min)*(a.yRange.max-a.yRange.min),u.bounds=a}i.sort((u,a)=>a.size-u.size),e=i[0];let r=e.bounds,o=(r.xRange.max-r.xRange.min)/50;function l(u,a,y){if(!u)return;let d=u.bounds,b,p;if(a)b=r.xRange.max-d.xRange.min+o;else{b=r.xRange.max-d.xRange.max;let M=(d.xRange.max-d.xRange.min)/2-(r.xRange.max-r.xRange.min)/2;M<0&&(b+=M)}if(y)p=r.yRange.max-d.yRange.min+o;else{p=r.yRange.max-d.yRange.max;let M=(d.yRange.max-d.yRange.min)/2-(r.yRange.max-r.yRange.min)/2;M<0&&(p+=M)}for(let M of u)M.x+=b,M.y+=p,e.push(M)}let f=1;for(;f({radius:a*b.radius,x:e+y+(b.x-o.min)*a,y:e+d+(b.y-l.min)*a,setid:b.setid})))}function Qt(t){let n={};for(let s of t)n[s.setid]=s;return n}function $t(t){return Object.keys(t).map(s=>Object.assign(t[s],{setid:s}))}function te(t={}){let n=!1,s=600,e=350,i=15,r=1e3,o=Math.PI/2,l=!0,f=null,u=!0,a=!0,y=null,d=null,b=!1,p=null,M=t&&t.symmetricalTextCentre?t.symmetricalTextCentre:!1,T={},_=t&&t.colourScheme?t.colourScheme:t&&t.colorScheme?t.colorScheme:["#1f77b4","#ff7f0e","#2ca02c","#d62728","#9467bd","#8c564b","#e377c2","#7f7f7f","#bcbd22","#17becf"],S=0,g=function(x){if(x in T)return T[x];var h=T[x]=_[S];return S+=1,S>=_.length&&(S=0),h},m=Ht,v=et;function c(x){let h=x.datum(),D=new Set;h.forEach(k=>{k.size==0&&k.sets.length==1&&D.add(k.sets[0])}),h=h.filter(k=>!k.sets.some(O=>D.has(O)));let I={},R={};if(h.length>0){let k=m(h,{lossFunction:v,distinct:b});l&&(k=Zt(k,o,d)),I=Jt(k,s,e,i,f),R=ne(I,h,M)}let G={};h.forEach(k=>{k.label&&(G[k.sets]=k.label)});function P(k){if(k.sets in G)return G[k.sets];if(k.sets.length==1)return""+k.sets[0]}x.selectAll("svg").data([I]).enter().append("svg");let N=x.select("svg");n?N.attr("viewBox",`0 0 ${s} ${e}`):N.attr("width",s).attr("height",e);let A={},C=!1;N.selectAll(".venn-area path").each(function(k){let O=this.getAttribute("d");k.sets.length==1&&O&&!b&&(C=!0,A[k.sets[0]]=we(O))});function E(k){return O=>{let $=k.sets.map(Z=>{let X=A[Z],q=I[Z];return X||(X={x:s/2,y:e/2,radius:1}),q||(q={x:s/2,y:e/2,radius:1}),{x:X.x*(1-O)+q.x*O,y:X.y*(1-O)+q.y*O,radius:X.radius*(1-O)+q.radius*O}});return Ut($,p)}}let L=N.selectAll(".venn-area").data(h,k=>k.sets),V=L.enter().append("g").attr("class",k=>`venn-area venn-${k.sets.length==1?"circle":"intersection"}${k.colour||k.color?" venn-coloured":""}`).attr("data-venn-sets",k=>k.sets.join("_")),F=V.append("path"),W=V.append("text").attr("class","label").text(k=>P(k)).attr("text-anchor","middle").attr("dy",".35em").attr("x",s/2).attr("y",e/2);a&&(F.style("fill-opacity","0").filter(k=>k.sets.length==1).style("fill",k=>k.colour?k.colour:k.color?k.color:g(k.sets)).style("fill-opacity",".25"),W.style("fill",k=>k.colour||k.color?"#FFF":t.textFill?t.textFill:k.sets.length==1?g(k.sets):"#444"));function B(k){return typeof k.transition=="function"?k.transition("venn").duration(r):k}let j=x;C&&typeof j.transition=="function"?(j=B(x),j.selectAll("path").attrTween("d",E)):j.selectAll("path").attr("d",k=>Ut(k.sets.map(O=>I[O])),p);let z=j.selectAll("text").filter(k=>k.sets in R).text(k=>P(k)).attr("x",k=>Math.floor(R[k.sets].x)).attr("y",k=>Math.floor(R[k.sets].y));u&&(C?"on"in z?z.on("end",ut(I,P)):z.each("end",ut(I,P)):z.each(ut(I,P)));let Y=B(L.exit()).remove();typeof L.transition=="function"&&Y.selectAll("path").attrTween("d",E);let H=Y.selectAll("text").attr("x",s/2).attr("y",e/2);return y!==null&&(W.style("font-size","0px"),z.style("font-size",y),H.style("font-size","0px")),{circles:I,textCentres:R,nodes:L,enter:V,update:j,exit:Y}}return c.wrap=function(x){return arguments.length?(u=x,c):u},c.useViewBox=function(){return n=!0,c},c.width=function(x){return arguments.length?(s=x,c):s},c.height=function(x){return arguments.length?(e=x,c):e},c.padding=function(x){return arguments.length?(i=x,c):i},c.distinct=function(x){return arguments.length?(b=x,c):b},c.colours=function(x){return arguments.length?(g=x,c):g},c.colors=function(x){return arguments.length?(g=x,c):g},c.fontSize=function(x){return arguments.length?(y=x,c):y},c.round=function(x){return arguments.length?(p=x,c):p},c.duration=function(x){return arguments.length?(r=x,c):r},c.layoutFunction=function(x){return arguments.length?(m=x,c):m},c.normalize=function(x){return arguments.length?(l=x,c):l},c.scaleToFit=function(x){return arguments.length?(f=x,c):f},c.styled=function(x){return arguments.length?(a=x,c):a},c.orientation=function(x){return arguments.length?(o=x,c):o},c.orientationOrder=function(x){return arguments.length?(d=x,c):d},c.lossFunction=function(x){return arguments.length?(v=x==="default"?et:x==="logRatio"?Xt:x,c):v},c}function ut(t,n){return function(s){let e=this,i=t[s.sets[0]].radius||50,r=n(s)||"",o=r.split(/\s+/).reverse(),f=(r.length+o.length)/3,u=o.pop(),a=[u],y=0,d=1.1;e.textContent=null;let b=[];function p(g){let m=e.ownerDocument.createElementNS(e.namespaceURI,"tspan");return m.textContent=g,b.push(m),e.append(m),m}let M=p(u);for(;u=o.pop(),!!u;){a.push(u);let g=a.join(" ");M.textContent=g,g.length>f&&M.getComputedTextLength()>i&&(a.pop(),M.textContent=a.join(" "),a=[u],M=p(u),y++)}let T=.35-y*d/2,_=e.getAttribute("x"),S=e.getAttribute("y");b.forEach((g,m)=>{g.setAttribute("x",_),g.setAttribute("y",S),g.setAttribute("dy",`${T+m*d}em`)})}}function ft(t,n,s){let e=n[0].radius-U(n[0],t);for(let i=1;i=r&&(i=e[a],r=y)}let o=Kt(a=>-1*ft({x:a[0],y:a[1]},t,n),[i.x,i.y],{maxIterations:500,minErrorDelta:1e-10}).x,l={x:s?0:o[0],y:o[1]},f=!0;for(let a of t)if(U(l,a)>a.radius){f=!1;break}for(let a of n)if(U(l,a)a.p1))}function Me(t){let n={},s=Object.keys(t);for(let e of s)n[e]=[];for(let e=0;e0&&console.log("WARNING: area "+o+" not represented on screen")}return e}function Se(t,n,s){let e=[];return e.push(` +M`,t,n),e.push(` +m`,-s,0),e.push(` +a`,s,s,0,1,0,s*2,0),e.push(` +a`,s,s,0,1,0,-s*2,0),e.join(" ")}function we(t){let n=t.split(" ");return{x:Number.parseFloat(n[1]),y:Number.parseFloat(n[2]),radius:-Number.parseFloat(n[4])}}function se(t){if(t.length===0)return[];let n={};return rt(t,n),n.arcs}function ie(t,n){if(t.length===0)return"M 0 0";let s=Math.pow(10,n||0),e=n!=null?r=>Math.round(r*s)/s:r=>r;if(t.length==1){let r=t[0].circle;return Se(e(r.x),e(r.y),e(r.radius))}let i=[` +M`,e(t[0].p2.x),e(t[0].p2.y)];for(let r of t){let o=e(r.circle.radius);i.push(` +A`,o,o,0,r.large?1:0,r.sweep?1:0,e(r.p1.x),e(r.p1.y))}return i.join(" ")}function Ut(t,n){return ie(se(t),n)}function re(t,n={}){let{lossFunction:s,layoutFunction:e=Ht,normalize:i=!0,orientation:r=Math.PI/2,orientationOrder:o,width:l=600,height:f=350,padding:u=15,scaleToFit:a=!1,symmetricalTextCentre:y=!1,distinct:d,round:b=2}=n,p=e(t,{lossFunction:s==="default"||!s?et:s==="logRatio"?Xt:s,distinct:d});i&&(p=Zt(p,r,o));let M=Jt(p,l,f,u,a),T=ne(M,t,y),_=new Map(Object.keys(M).map(m=>[m,{set:m,x:M[m].x,y:M[m].y,radius:M[m].radius}])),S=t.map(m=>{let v=m.sets.map(h=>_.get(h)),c=se(v),x=ie(c,b);return{circles:v,arcs:c,path:x,area:m,has:new Set(m.sets)}});function g(m){let v="";for(let c of S)c.has.size>m.length&&m.every(x=>c.has.has(x))&&(v+=" "+c.path);return v}return S.map(({circles:m,arcs:v,path:c,area:x})=>({data:x,text:T[x.sets],circles:m,arcs:v,path:c,distinctPath:c+g(x.sets)}))}var bt=(function(){var t=w(function(S,g,m,v){for(m=m||{},v=S.length;v--;m[S[v]]=g);return m},"o"),n=[5,8],s=[7,8,11,12,17,19,22,24],e=[1,17],i=[1,18],r=[7,8,11,12,14,15,16,17,19,20,21,22,24,27],o=[1,31],l=[1,39],f=[7,8,11,12,17,19,22,24,27],u=[1,57],a=[1,56],y=[1,58],d=[1,59],b=[1,60],p=[7,8,11,12,16,17,19,20,22,24,27,31,32,33],M={trace:w(function(){},"trace"),yy:{},symbols_:{error:2,start:3,optNewlines:4,VENN:5,document:6,EOF:7,NEWLINE:8,line:9,statement:10,TITLE:11,SET:12,identifier:13,BRACKET_LABEL:14,COLON:15,NUMERIC:16,UNION:17,identifierList:18,TEXT:19,IDENTIFIER:20,STRING:21,INDENT_TEXT:22,indentedTextTail:23,STYLE:24,stylesOpt:25,styleField:26,COMMA:27,styleValue:28,valueTokens:29,valueToken:30,HEXCOLOR:31,RGBCOLOR:32,RGBACOLOR:33,$accept:0,$end:1},terminals_:{2:"error",5:"VENN",7:"EOF",8:"NEWLINE",11:"TITLE",12:"SET",14:"BRACKET_LABEL",15:"COLON",16:"NUMERIC",17:"UNION",19:"TEXT",20:"IDENTIFIER",21:"STRING",22:"INDENT_TEXT",24:"STYLE",27:"COMMA",31:"HEXCOLOR",32:"RGBCOLOR",33:"RGBACOLOR"},productions_:[0,[3,4],[4,0],[4,2],[6,0],[6,2],[9,1],[9,1],[10,1],[10,2],[10,3],[10,4],[10,5],[10,2],[10,3],[10,4],[10,5],[10,3],[10,3],[10,3],[10,4],[10,4],[10,2],[10,3],[23,1],[23,1],[23,1],[23,2],[23,2],[25,1],[25,3],[26,3],[28,1],[28,1],[29,1],[29,2],[30,1],[30,1],[30,1],[30,1],[30,1],[18,1],[18,3],[13,1],[13,1]],performAction:w(function(g,m,v,c,x,h,D){var I=h.length-1;switch(x){case 1:return h[I-1];case 2:case 3:case 4:this.$=[];break;case 5:h[I-1].push(h[I]),this.$=h[I-1];break;case 6:this.$=[];break;case 7:case 22:case 32:case 36:case 37:case 38:case 39:case 40:this.$=h[I];break;case 8:c.setDiagramTitle(h[I].substr(6)),this.$=h[I].substr(6);break;case 9:c.addSubsetData([h[I]],void 0,void 0),c.setIndentMode&&c.setIndentMode(!0);break;case 10:c.addSubsetData([h[I-1]],h[I],void 0),c.setIndentMode&&c.setIndentMode(!0);break;case 11:c.addSubsetData([h[I-2]],void 0,parseFloat(h[I])),c.setIndentMode&&c.setIndentMode(!0);break;case 12:c.addSubsetData([h[I-3]],h[I-2],parseFloat(h[I])),c.setIndentMode&&c.setIndentMode(!0);break;case 13:if(h[I].length<2)throw new Error("union requires multiple identifiers");c.validateUnionIdentifiers&&c.validateUnionIdentifiers(h[I]),c.addSubsetData(h[I],void 0,void 0),c.setIndentMode&&c.setIndentMode(!0);break;case 14:if(h[I-1].length<2)throw new Error("union requires multiple identifiers");c.validateUnionIdentifiers&&c.validateUnionIdentifiers(h[I-1]),c.addSubsetData(h[I-1],h[I],void 0),c.setIndentMode&&c.setIndentMode(!0);break;case 15:if(h[I-2].length<2)throw new Error("union requires multiple identifiers");c.validateUnionIdentifiers&&c.validateUnionIdentifiers(h[I-2]),c.addSubsetData(h[I-2],void 0,parseFloat(h[I])),c.setIndentMode&&c.setIndentMode(!0);break;case 16:if(h[I-3].length<2)throw new Error("union requires multiple identifiers");c.validateUnionIdentifiers&&c.validateUnionIdentifiers(h[I-3]),c.addSubsetData(h[I-3],h[I-2],parseFloat(h[I])),c.setIndentMode&&c.setIndentMode(!0);break;case 17:case 18:case 19:c.addTextData(h[I-1],h[I],void 0);break;case 20:case 21:c.addTextData(h[I-2],h[I-1],h[I]);break;case 23:c.addStyleData(h[I-1],h[I]);break;case 24:case 25:case 26:var R=c.getCurrentSets();if(!R)throw new Error("text requires set");c.addTextData(R,h[I],void 0);break;case 27:case 28:var R=c.getCurrentSets();if(!R)throw new Error("text requires set");c.addTextData(R,h[I-1],h[I]);break;case 29:case 41:this.$=[h[I]];break;case 30:case 42:this.$=[...h[I-2],h[I]];break;case 31:this.$=[h[I-2],h[I]];break;case 33:this.$=h[I].join(" ");break;case 34:this.$=[h[I]];break;case 35:h[I-1].push(h[I]),this.$=h[I-1];break;case 43:case 44:this.$=h[I];break}},"anonymous"),table:[t(n,[2,2],{3:1,4:2}),{1:[3]},{5:[1,3],8:[1,4]},t(s,[2,4],{6:5}),t(n,[2,3]),{7:[1,6],8:[1,8],9:7,10:9,11:[1,10],12:[1,11],17:[1,12],19:[1,13],22:[1,14],24:[1,15]},{1:[2,1]},t(s,[2,5]),t(s,[2,6]),t(s,[2,7]),t(s,[2,8]),{13:16,20:e,21:i},{13:20,18:19,20:e,21:i},{13:20,18:21,20:e,21:i},{16:[1,25],20:[1,23],21:[1,24],23:22},{13:20,18:26,20:e,21:i},t(s,[2,9],{14:[1,27],15:[1,28]}),t(r,[2,43]),t(r,[2,44]),t(s,[2,13],{14:[1,29],15:[1,30],27:o}),t(r,[2,41]),{16:[1,34],20:[1,32],21:[1,33],27:o},t(s,[2,22]),t(s,[2,24],{14:[1,35]}),t(s,[2,25],{14:[1,36]}),t(s,[2,26]),{20:l,25:37,26:38,27:o},t(s,[2,10],{15:[1,40]}),{16:[1,41]},t(s,[2,14],{15:[1,42]}),{16:[1,43]},{13:44,20:e,21:i},t(s,[2,17],{14:[1,45]}),t(s,[2,18],{14:[1,46]}),t(s,[2,19]),t(s,[2,27]),t(s,[2,28]),t(s,[2,23],{27:[1,47]}),t(f,[2,29]),{15:[1,48]},{16:[1,49]},t(s,[2,11]),{16:[1,50]},t(s,[2,15]),t(r,[2,42]),t(s,[2,20]),t(s,[2,21]),{20:l,26:51},{16:u,20:a,21:[1,53],28:52,29:54,30:55,31:y,32:d,33:b},t(s,[2,12]),t(s,[2,16]),t(f,[2,30]),t(f,[2,31]),t(f,[2,32]),t(f,[2,33],{30:61,16:u,20:a,31:y,32:d,33:b}),t(p,[2,34]),t(p,[2,36]),t(p,[2,37]),t(p,[2,38]),t(p,[2,39]),t(p,[2,40]),t(p,[2,35])],defaultActions:{6:[2,1]},parseError:w(function(g,m){if(m.recoverable)this.trace(g);else{var v=new Error(g);throw v.hash=m,v}},"parseError"),parse:w(function(g){var m=this,v=[0],c=[],x=[null],h=[],D=this.table,I="",R=0,G=0,P=0,N=2,A=1,C=h.slice.call(arguments,1),E=Object.create(this.lexer),L={yy:{}};for(var V in this.yy)Object.prototype.hasOwnProperty.call(this.yy,V)&&(L.yy[V]=this.yy[V]);E.setInput(g,L.yy),L.yy.lexer=E,L.yy.parser=this,typeof E.yylloc>"u"&&(E.yylloc={});var F=E.yylloc;h.push(F);var W=E.options&&E.options.ranges;typeof L.yy.parseError=="function"?this.parseError=L.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function B(K){v.length=v.length-2*K,x.length=x.length-K,h.length=h.length-K}w(B,"popStack");function j(){var K;return K=c.pop()||E.lex()||A,typeof K!="number"&&(K instanceof Array&&(c=K,K=c.pop()),K=m.symbols_[K]||K),K}w(j,"lex");for(var z,Y,H,k,O,$,Z={},X,q,_t,st;;){if(H=v[v.length-1],this.defaultActions[H]?k=this.defaultActions[H]:((z===null||typeof z>"u")&&(z=j()),k=D[H]&&D[H][z]),typeof k>"u"||!k.length||!k[0]){var at="";st=[];for(X in D[H])this.terminals_[X]&&X>N&&st.push("'"+this.terminals_[X]+"'");E.showPosition?at="Parse error on line "+(R+1)+`: +`+E.showPosition()+` +Expecting `+st.join(", ")+", got '"+(this.terminals_[z]||z)+"'":at="Parse error on line "+(R+1)+": Unexpected "+(z==A?"end of input":"'"+(this.terminals_[z]||z)+"'"),this.parseError(at,{text:E.match,token:this.terminals_[z]||z,line:E.yylineno,loc:F,expected:st})}if(k[0]instanceof Array&&k.length>1)throw new Error("Parse Error: multiple actions possible at state: "+H+", token: "+z);switch(k[0]){case 1:v.push(z),x.push(E.yytext),h.push(E.yylloc),v.push(k[1]),z=null,Y?(z=Y,Y=null):(G=E.yyleng,I=E.yytext,R=E.yylineno,F=E.yylloc,P>0&&P--);break;case 2:if(q=this.productions_[k[1]][1],Z.$=x[x.length-q],Z._$={first_line:h[h.length-(q||1)].first_line,last_line:h[h.length-1].last_line,first_column:h[h.length-(q||1)].first_column,last_column:h[h.length-1].last_column},W&&(Z._$.range=[h[h.length-(q||1)].range[0],h[h.length-1].range[1]]),$=this.performAction.apply(Z,[I,G,R,L.yy,k[1],x,h].concat(C)),typeof $<"u")return $;q&&(v=v.slice(0,-1*q*2),x=x.slice(0,-1*q),h=h.slice(0,-1*q)),v.push(this.productions_[k[1]][0]),x.push(Z.$),h.push(Z._$),_t=D[v[v.length-2]][v[v.length-1]],v.push(_t);break;case 3:return!0}}return!0},"parse")},T=(function(){var S={EOF:1,parseError:w(function(m,v){if(this.yy.parser)this.yy.parser.parseError(m,v);else throw new Error(m)},"parseError"),setInput:w(function(g,m){return this.yy=m||this.yy||{},this._input=g,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:w(function(){var g=this._input[0];this.yytext+=g,this.yyleng++,this.offset++,this.match+=g,this.matched+=g;var m=g.match(/(?:\r\n?|\n).*/g);return m?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),g},"input"),unput:w(function(g){var m=g.length,v=g.split(/(?:\r\n?|\n)/g);this._input=g+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-m),this.offset-=m;var c=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),v.length-1&&(this.yylineno-=v.length-1);var x=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:v?(v.length===c.length?this.yylloc.first_column:0)+c[c.length-v.length].length-v[0].length:this.yylloc.first_column-m},this.options.ranges&&(this.yylloc.range=[x[0],x[0]+this.yyleng-m]),this.yyleng=this.yytext.length,this},"unput"),more:w(function(){return this._more=!0,this},"more"),reject:w(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). +`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:w(function(g){this.unput(this.match.slice(g))},"less"),pastInput:w(function(){var g=this.matched.substr(0,this.matched.length-this.match.length);return(g.length>20?"...":"")+g.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:w(function(){var g=this.match;return g.length<20&&(g+=this._input.substr(0,20-g.length)),(g.substr(0,20)+(g.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:w(function(){var g=this.pastInput(),m=new Array(g.length+1).join("-");return g+this.upcomingInput()+` +`+m+"^"},"showPosition"),test_match:w(function(g,m){var v,c,x;if(this.options.backtrack_lexer&&(x={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&&(x.yylloc.range=this.yylloc.range.slice(0))),c=g[0].match(/(?:\r\n?|\n).*/g),c&&(this.yylineno+=c.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:c?c[c.length-1].length-c[c.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+g[0].length},this.yytext+=g[0],this.match+=g[0],this.matches=g,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(g[0].length),this.matched+=g[0],v=this.performAction.call(this,this.yy,this,m,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),v)return v;if(this._backtrack){for(var h in x)this[h]=x[h];return!1}return!1},"test_match"),next:w(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var g,m,v,c;this._more||(this.yytext="",this.match="");for(var x=this._currentRules(),h=0;hm[0].length)){if(m=v,c=h,this.options.backtrack_lexer){if(g=this.test_match(v,x[h]),g!==!1)return g;if(this._backtrack){m=!1;continue}else return!1}else if(!this.options.flex)break}return m?(g=this.test_match(m,x[c]),g!==!1?g:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text. +`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:w(function(){var m=this.next();return m||this.lex()},"lex"),begin:w(function(m){this.conditionStack.push(m)},"begin"),popState:w(function(){var m=this.conditionStack.length-1;return m>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:w(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:w(function(m){return m=this.conditionStack.length-1-Math.abs(m||0),m>=0?this.conditionStack[m]:"INITIAL"},"topState"),pushState:w(function(m){this.begin(m)},"pushState"),stateStackSize:w(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:w(function(m,v,c,x){var h=x;switch(c){case 0:break;case 1:break;case 2:break;case 3:if(m.getIndentMode&&m.getIndentMode())return m.consumeIndentText=!0,this.begin("INITIAL"),22;break;case 4:break;case 5:m.setIndentMode&&m.setIndentMode(!1),this.begin("INITIAL"),this.unput(v.yytext);break;case 6:return this.begin("bol"),8;break;case 7:break;case 8:break;case 9:return 7;case 10:return 11;case 11:return 5;case 12:return 12;case 13:return 17;case 14:if(m.consumeIndentText)m.consumeIndentText=!1;else return 19;break;case 15:return 24;case 16:return v.yytext=v.yytext.slice(2,-2),14;break;case 17:return v.yytext=v.yytext.slice(1,-1).trim(),14;break;case 18:return 16;case 19:return 31;case 20:return 33;case 21:return 32;case 22:return 20;case 23:return 21;case 24:return 27;case 25:return 15}},"anonymous"),rules:[/^(?:%%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[ \t]+(?=[\n\r]))/i,/^(?:[ \t]+(?=text\b))/i,/^(?:[ \t]+)/i,/^(?:[^ \t\n\r])/i,/^(?:[\n\r]+)/i,/^(?:%%[^\n]*)/i,/^(?:[ \t]+)/i,/^(?:$)/i,/^(?:title\s[^#\n;]+)/i,/^(?:venn-beta\b)/i,/^(?:set\b)/i,/^(?:union\b)/i,/^(?:text\b)/i,/^(?:style\b)/i,/^(?:\["[^\"]*"\])/i,/^(?:\[[^\]\"]+\])/i,/^(?:[+-]?(\d+(\.\d+)?|\.\d+))/i,/^(?:#[0-9a-fA-F]{3,8})/i,/^(?:rgba\(\s*[0-9.]+\s*[,]\s*[0-9.]+\s*[,]\s*[0-9.]+\s*[,]\s*[0-9.]+\s*\))/i,/^(?:rgb\(\s*[0-9.]+\s*[,]\s*[0-9.]+\s*[,]\s*[0-9.]+\s*\))/i,/^(?:[A-Za-z_][A-Za-z0-9\-_]*)/i,/^(?:"[^\"]*")/i,/^(?:,)/i,/^(?::)/i],conditions:{bol:{rules:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25],inclusive:!0},INITIAL:{rules:[0,1,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25],inclusive:!0}}};return S})();M.lexer=T;function _(){this.yy={}}return w(_,"Parser"),_.prototype=M,M.Parser=_,new _})();bt.parser=bt;var Ee=bt,vt=[],kt=[],It=[],Mt=new Set,St,wt=!1,Te=w((t,n,s)=>{let e=ot(t).sort(),i=s??10/Math.pow(t.length,2);St=e,e.length===1&&Mt.add(e[0]),vt.push({sets:e,size:i,label:n?nt(n):void 0})},"addSubsetData"),ze=w(()=>vt,"getSubsetData"),nt=w(t=>{let n=t.trim();return n.length>=2&&n.startsWith('"')&&n.endsWith('"')?n.slice(1,-1):n},"normalizeText"),Ae=w(t=>t&&nt(t),"normalizeStyleValue"),De=w((t,n,s)=>{let e=nt(n);kt.push({sets:ot(t).sort(),id:e,label:s?nt(s):void 0})},"addTextData"),Re=w((t,n)=>{let s=ot(t).sort(),e={};for(let[i,r]of n)e[i]=Ae(r)??r;It.push({targets:s,styles:e})},"addStyleData"),Ce=w(()=>It,"getStyleData"),ot=w(t=>t.map(n=>nt(n)),"normalizeIdentifierList"),Ne=w(t=>{let s=ot(t).filter(e=>!Mt.has(e));if(s.length>0)throw new Error(`unknown set identifier: ${s.join(", ")}`)},"validateUnionIdentifiers"),Oe=w(()=>kt,"getTextData"),Le=w(()=>St,"getCurrentSets"),Fe=w(()=>wt,"getIndentMode"),je=w(t=>{wt=t},"setIndentMode"),Pe=At.venn;function oe(){return Vt(Pe,ct().venn)}w(oe,"getConfig");var Ve=w(()=>{Rt(),vt.length=0,kt.length=0,It.length=0,Mt.clear(),St=void 0,wt=!1},"customClear"),Be={getConfig:oe,clear:Ve,setAccTitle:Ct,getAccTitle:Nt,setDiagramTitle:Ft,getDiagramTitle:jt,getAccDescription:Lt,setAccDescription:Ot,addSubsetData:Te,getSubsetData:ze,addTextData:De,addStyleData:Re,validateUnionIdentifiers:Ne,getTextData:Oe,getStyleData:Ce,getCurrentSets:Le,getIndentMode:Fe,setIndentMode:je},qe=w(t=>` + .venn-title { + font-size: 32px; + fill: ${t.vennTitleTextColor}; + font-family: ${t.fontFamily}; + } + + .venn-circle text { + font-size: 48px; + font-family: ${t.fontFamily}; + } + + .venn-intersection text { + font-size: 48px; + fill: ${t.vennSetTextColor}; + font-family: ${t.fontFamily}; + } + + .venn-text-node { + font-family: ${t.fontFamily}; + color: ${t.vennSetTextColor}; + } +`,"getStyles"),Ue=qe;function ae(t){let n=new Map;for(let s of t){let e=s.targets.join("|"),i=n.get(e);i?Object.assign(i,s.styles):n.set(e,{...s.styles})}return n}w(ae,"buildStyleByKey");var Ge=w((t,n,s,e)=>{let i=e.db,r=i.getConfig?.(),{themeVariables:o,look:l,handDrawnSeed:f}=ct(),u=l==="handDrawn",a=[o.venn1,o.venn2,o.venn3,o.venn4,o.venn5,o.venn6,o.venn7,o.venn8].filter(Boolean),y=i.getDiagramTitle?.(),d=i.getSubsetData(),b=i.getTextData(),p=ae(i.getStyleData()),M=ce(d),T=r?.width??800,_=r?.height??450,g=T/1600,m=y?48*g:0,v=o.primaryTextColor??o.textColor,c=Pt(n);c.attr("viewBox",`0 0 ${T} ${_}`),y&&c.append("text").text(y).attr("class","venn-title").attr("font-size",`${32*g}px`).attr("text-anchor","middle").attr("dominant-baseline","middle").attr("x","50%").attr("y",32*g).style("fill",o.vennTitleTextColor||o.titleColor);let x=it(document.createElement("div")),h=te().width(T).height(_-m);x.datum(M).call(h);let D=u?Bt.svg(x.select("svg").node()):void 0,I=re(M,{width:T,height:_-m,padding:r?.padding??15}),R=new Map;for(let A of I){let C=Q([...A.data.sets].sort());R.set(C,A)}b.length>0&&le(r,R,x,b,g,p);let G=Et(o.background||"#f4f4f4");x.selectAll(".venn-circle").each(function(A,C){let E=it(this),V=Q([...A.sets].sort()),F=p.get(V),W=a.length>0?a[C%a.length]:void 0,B=F?.fill||W||o.primaryColor;E.classed(`venn-set-${C%8}`,!0);let j=F?.["fill-opacity"]??.1,z=F?.stroke||B,Y=F?.["stroke-width"]||`${5*g}`;if(u&&D){let k=R.get(V);if(k&&k.circles.length>0){let O=k.circles[0],$=D.circle(O.x,O.y,O.radius*2,{roughness:.7,seed:f,fill:lt(B,.7),fillStyle:"hachure",fillWeight:2,hachureGap:8,hachureAngle:-41+C*60,stroke:z,strokeWidth:parseFloat(String(Y))});E.select("path").remove(),E.node()?.insertBefore($,E.select("text").node())}}else E.select("path").style("fill",B).style("fill-opacity",j).style("stroke",z).style("stroke-width",Y).style("stroke-opacity",.95);let H=F?.color||(G?Tt(B,30):zt(B,30));E.select("text").style("font-size",`${48*g}px`).style("fill",H)}),u&&D?x.selectAll(".venn-intersection").each(function(A){let C=it(this),L=Q([...A.sets].sort()),V=p.get(L),F=V?.fill;if(F){let W=C.select("path"),B=W.attr("d");if(B){let j=D.path(B,{roughness:.7,seed:f,fill:lt(F,.3),fillStyle:"cross-hatch",fillWeight:2,hachureGap:6,hachureAngle:60,stroke:"none"}),z=W.node();z?.parentNode?.insertBefore(j,z),W.remove()}}else C.select("path").style("fill-opacity",0);C.select("text").style("font-size",`${48*g}px`).style("fill",V?.color??o.vennSetTextColor??v)}):(x.selectAll(".venn-intersection text").style("font-size",`${48*g}px`).style("fill",A=>{let E=Q([...A.sets].sort());return p.get(E)?.color??o.vennSetTextColor??v}),x.selectAll(".venn-intersection path").style("fill-opacity",A=>{let E=Q([...A.sets].sort());return p.get(E)?.fill?1:0}).style("fill",A=>{let E=Q([...A.sets].sort());return p.get(E)?.fill??"transparent"}));let P=c.append("g").attr("transform",`translate(0, ${m})`),N=x.select("svg").node();if(N&&"childNodes"in N)for(let A of[...N.childNodes])P.node()?.appendChild(A);Dt(c,_,T,r?.useMaxWidth??!0)},"draw");function Q(t){return t.join("|")}w(Q,"stableSetsKey");function le(t,n,s,e,i,r){let o=t?.useDebugLayout??!1,f=s.select("svg").append("g").attr("class","venn-text-nodes"),u=new Map;for(let a of e){let y=Q(a.sets),d=u.get(y);d?d.push(a):u.set(y,[a])}for(let[a,y]of u.entries()){let d=n.get(a);if(!d?.text)continue;let b=d.text.x,p=d.text.y,M=Math.min(...d.circles.map(N=>N.radius)),T=Math.min(...d.circles.map(N=>N.radius-Math.hypot(b-N.x,p-N.y))),_=Number.isFinite(T)?Math.max(0,T):0;_===0&&Number.isFinite(M)&&(_=M*.6);let S=f.append("g").attr("class","venn-text-area").attr("font-size",`${40*i}px`);o&&S.append("circle").attr("class","venn-text-debug-circle").attr("cx",b).attr("cy",p).attr("r",_).attr("fill","none").attr("stroke","purple").attr("stroke-width",1.5*i).attr("stroke-dasharray",`${6*i} ${4*i}`);let g=Math.max(80*i,_*2*.95),m=Math.max(60*i,_*2*.95),x=(d.data.label&&d.data.label.length>0?Math.min(32*i,_*.25):0)+(y.length<=2?30*i:0),h=b-g/2,D=p-m/2+x,I=Math.max(1,Math.ceil(Math.sqrt(y.length))),R=Math.max(1,Math.ceil(y.length/I)),G=g/I,P=m/R;for(let[N,A]of y.entries()){let C=N%I,E=Math.floor(N/I),L=h+G*(C+.5),V=D+P*(E+.5);o&&S.append("rect").attr("class","venn-text-debug-cell").attr("x",h+G*C).attr("y",D+P*E).attr("width",G).attr("height",P).attr("fill","none").attr("stroke","teal").attr("stroke-width",1*i).attr("stroke-dasharray",`${4*i} ${3*i}`);let F=G*.9,W=P*.9,B=S.append("foreignObject").attr("class","venn-text-node-fo").attr("width",F).attr("height",W).attr("x",L-F/2).attr("y",V-W/2).attr("overflow","visible"),j=r.get(A.id)?.color,z=B.append("xhtml:span").attr("class","venn-text-node").style("display","flex").style("width","100%").style("height","100%").style("white-space","normal").style("align-items","center").style("justify-content","center").style("text-align","center").style("overflow-wrap","normal").style("word-break","normal").text(A.label??A.id);j&&z.style("color",j)}}}w(le,"renderTextNodes");function ce(t){let n=new Set(t.map(i=>[...i.sets].sort().join("|"))),s=new Map(t.filter(i=>i.sets.length===1&&i.size!==void 0).map(i=>[i.sets[0],i.size])),e=[];for(let i of t){if(i.sets.length<3)continue;let r=[...i.sets].sort();for(let o=0;o0?[...t,...e]:t}w(ce,"ensurePairwiseSubsets");var We={draw:Ge},tn={parser:Ee,db:Be,renderer:We,styles:Ue};export{tn as diagram}; diff --git a/src/frontend/web/von_interface/static/vendor/conversation-visuals/wardley-WFR3VGLG-6Q663OXW.js b/src/frontend/web/von_interface/static/vendor/conversation-visuals/wardley-WFR3VGLG-6Q663OXW.js new file mode 100644 index 000000000..c6098fc08 --- /dev/null +++ b/src/frontend/web/von_interface/static/vendor/conversation-visuals/wardley-WFR3VGLG-6Q663OXW.js @@ -0,0 +1 @@ +import{a as e,b as r}from"./chunk-DKYAF235.js";import"./chunk-RVPSGR2P.js";import"./chunk-3RNHDNP5.js";export{e as WardleyModule,r as createWardleyServices}; diff --git a/src/frontend/web/von_interface/static/vendor/conversation-visuals/wardleyDiagram-VNRHLVJA-N4DFHXIG.js b/src/frontend/web/von_interface/static/vendor/conversation-visuals/wardleyDiagram-VNRHLVJA-N4DFHXIG.js new file mode 100644 index 000000000..e7b01e045 --- /dev/null +++ b/src/frontend/web/von_interface/static/vendor/conversation-visuals/wardleyDiagram-VNRHLVJA-N4DFHXIG.js @@ -0,0 +1,78 @@ +import{a as lt}from"./chunk-CDENLQJG.js";import{a as ct}from"./chunk-WBZZWDU5.js";import"./chunk-ZFFKTRVX.js";import"./chunk-DKYAF235.js";import"./chunk-X7BLBFFS.js";import"./chunk-YMFA7VWU.js";import"./chunk-C7GWRE6Z.js";import"./chunk-4DL6P2YZ.js";import"./chunk-KCWUFFIE.js";import"./chunk-RDO2S4TE.js";import"./chunk-XCFPDLUP.js";import"./chunk-RMEGOE55.js";import"./chunk-QNBXOM7U.js";import"./chunk-NMQHKCXS.js";import"./chunk-SEHHQ34Z.js";import"./chunk-K6AAXKM5.js";import"./chunk-KVFXNR4L.js";import"./chunk-RVPSGR2P.js";import{a as dt}from"./chunk-UED66XBH.js";import{o as _}from"./chunk-EUYVSIXP.js";import"./chunk-QSTT4QQC.js";import{$ as D,C as Q,P as tt,U as et,V as at,W as rt,X as ot,Y as nt,Z as st,_ as it,p as K}from"./chunk-S4JILX6U.js";import{b as V}from"./chunk-XEQL7KGA.js";import{a as u}from"./chunk-YUSHYV7C.js";import"./chunk-3RNHDNP5.js";var G=u((e,n)=>{let r=e<=1?e*100:e;if(r<0||r>100)throw new Error(`${n} must be between 0-1 (decimal) or 0-100 (percentage). Received: ${e}`);return r},"toPercent"),A=u((e,n,r)=>({x:G(n,`${r} evolution`),y:G(e,`${r} visibility`)}),"toCoordinates"),pt=u(e=>{if(e){if(e==="+<>")return"bidirectional";if(e==="+<")return"backward";if(e==="+>")return"forward"}},"getFlowFromPort"),Rt=u(e=>{if(!e?.startsWith("+"))return{};let r=/^\+'([^']*)'/.exec(e)?.[1];return e.includes("<>")?{flow:"bidirectional",label:r}:e.includes("<")?{flow:"backward",label:r}:e.includes(">")?{flow:"forward",label:r}:{label:r}},"extractFlowFromArrow"),Ot=u((e,n)=>{if(lt(e,n),e.size&&n.setSize(e.size.width,e.size.height),e.evolution){let r=e.evolution.stages.map(a=>a.secondName?`${a.name.trim()} / ${a.secondName.trim()}`:a.name.trim()),x=e.evolution.stages.filter(a=>a.boundary!==void 0).map(a=>a.boundary);n.updateAxes({stages:r,stageBoundaries:x})}if(e.anchors.forEach(r=>{let x=A(r.visibility,r.evolution,`Anchor "${r.name}"`);n.addNode(r.name,r.name,x.x,x.y,"anchor")}),e.components.forEach(r=>{let x=A(r.visibility,r.evolution,`Component "${r.name}"`),a=r.label?(r.label.negX?-1:1)*r.label.offsetX:void 0,d=r.label?(r.label.negY?-1:1)*r.label.offsetY:void 0,m=r.decorator?.strategy;n.addNode(r.name,r.name,x.x,x.y,"component",a,d,r.inertia,m)}),e.notes.forEach(r=>{let x=A(r.visibility,r.evolution,`Note "${r.text}"`);n.addNote(r.text,x.x,x.y)}),e.pipelines.forEach(r=>{let x=n.getNode(r.parent);if(!x||typeof x.y!="number")throw new Error(`Pipeline "${r.parent}" must reference an existing component with coordinates.`);let a=x.y;n.startPipeline(r.parent),r.components.forEach(d=>{let m=`${r.parent}_${d.name}`,C=d.label?(d.label.negX?-1:1)*d.label.offsetX:void 0,g=d.label?(d.label.negY?-1:1)*d.label.offsetY:void 0,F=G(d.evolution,`Pipeline component "${d.name}" evolution`);n.addNode(m,d.name,F,a,"pipeline-component",C,g),n.addPipelineComponent(r.parent,m)})}),e.links.forEach(r=>{let x=!!r.arrow&&(r.arrow.includes("-.->")||r.arrow.includes(".-.")),a=pt(r.fromPort)??pt(r.toPort),{flow:d,label:m}=Rt(r.arrow);!a&&d&&(a=d);let C=r.linkLabel,g=m??C;n.addLink(n.resolveNodeId(r.from),n.resolveNodeId(r.to),x,g,a)}),e.evolves.forEach(r=>{let x=n.getNode(r.component);if(x?.y!==void 0){let a=G(r.target,`Evolve target for "${r.component}"`);n.addTrend(r.component,a,x.y)}}),e.annotations.length>0){let r=e.annotations[0],x=A(r.x,r.y,"Annotations box");n.setAnnotationsBox(x.x,x.y)}e.annotation.forEach(r=>{let x=A(r.x,r.y,`Annotation ${r.number}`);n.addAnnotation(r.number,[{x:x.x,y:x.y}],r.text)}),e.accelerators.forEach(r=>{let x=A(r.x,r.y,`Accelerator "${r.name}"`);n.addAccelerator(r.name,x.x,x.y)}),e.deaccelerators.forEach(r=>{let x=A(r.x,r.y,`Deaccelerator "${r.name}"`);n.addDeaccelerator(r.name,x.x,x.y)})},"populateDb"),ft={parser:{yy:void 0},parse:u(async e=>{let n=await ct("wardley",e);V.debug(n);let r=ft.parser?.yy;if(!r||typeof r.addNode!="function")throw new Error("parser.parser?.yy was not a WardleyDB. This is due to a bug within Mermaid, please report this issue at https://github.com/mermaid-js/mermaid/issues.");Ot(n,r)},"parse")},Wt=class{constructor(){this.nodes=new Map,this.links=[],this.trends=new Map,this.pipelines=new Map,this.annotations=[],this.notes=[],this.accelerators=[],this.deaccelerators=[],this.axes={}}static{u(this,"WardleyBuilder")}addNode(e){let n=this.nodes.get(e.id)??{id:e.id,label:e.label},r={...n,...e,className:e.className??n.className,labelOffsetX:e.labelOffsetX??n.labelOffsetX,labelOffsetY:e.labelOffsetY??n.labelOffsetY};this.nodes.set(e.id,r)}addLink(e){this.links.push(e)}addTrend(e){this.trends.set(e.nodeId,e)}startPipeline(e){this.pipelines.set(e,{nodeId:e,componentIds:[]});let n=this.nodes.get(e);n&&(n.isPipelineParent=!0)}addPipelineComponent(e,n){let r=this.pipelines.get(e);r&&r.componentIds.push(n);let x=this.nodes.get(n);x&&(x.inPipeline=!0)}addAnnotation(e){this.annotations.push(e)}addNote(e){this.notes.push(e)}addAccelerator(e){this.accelerators.push(e)}addDeaccelerator(e){this.deaccelerators.push(e)}setAnnotationsBox(e,n){this.annotationsBox={x:e,y:n}}setAxes(e){this.axes={...this.axes,...e}}setSize(e,n){this.size={width:e,height:n}}getNode(e){return this.nodes.get(e)}resolveNodeId(e){if(this.nodes.has(e))return e;for(let[n,r]of this.nodes)if(r.label===e)return n;return e}build(){let e=[];for(let n of this.nodes.values()){if(typeof n.x!="number"||typeof n.y!="number")throw new Error(`Node "${n.label}" is missing coordinates`);e.push(n)}return{nodes:e,links:[...this.links],trends:[...this.trends.values()],pipelines:[...this.pipelines.values()],annotations:[...this.annotations],notes:[...this.notes],accelerators:[...this.accelerators],deaccelerators:[...this.deaccelerators],annotationsBox:this.annotationsBox,axes:{...this.axes},size:this.size}}clear(){this.nodes.clear(),this.links=[],this.trends.clear(),this.pipelines.clear(),this.annotations=[],this.notes=[],this.accelerators=[],this.deaccelerators=[],this.annotationsBox=void 0,this.axes={},this.size=void 0}},k=new Wt;function ht(){return D()["wardley-beta"]}u(ht,"getConfig");function xt(e,n,r,x,a,d,m,C,g){k.addNode({id:e,label:n,x:r,y:x,className:a,labelOffsetX:d,labelOffsetY:m,inertia:C,sourceStrategy:g})}u(xt,"addNode");function gt(e,n,r=!1,x,a){k.addLink({source:e,target:n,dashed:r,label:x,flow:a})}u(gt,"addLink");function yt(e,n,r){k.addTrend({nodeId:e,targetX:n,targetY:r})}u(yt,"addTrend");function ut(e,n,r){k.addAnnotation({number:e,coordinates:n,text:r})}u(ut,"addAnnotation");function mt(e,n,r){k.addNote({text:e,x:n,y:r})}u(mt,"addNote");function wt(e,n,r){k.addAccelerator({name:e,x:n,y:r})}u(wt,"addAccelerator");function kt(e,n,r){k.addDeaccelerator({name:e,x:n,y:r})}u(kt,"addDeaccelerator");function bt(e,n){k.setAnnotationsBox(e,n)}u(bt,"setAnnotationsBox");function $t(e,n){k.setSize(e,n)}u($t,"setSize");function vt(e){k.startPipeline(e)}u(vt,"startPipeline");function Pt(e,n){k.addPipelineComponent(e,n)}u(Pt,"addPipelineComponent");function Ct(e){k.setAxes(e)}u(Ct,"updateAxes");function St(e){return k.getNode(e)}u(St,"getNode");function Mt(e){return k.resolveNodeId(e)}u(Mt,"resolveNodeId");function Nt(){return k.build()}u(Nt,"getWardleyData");function zt(){k.clear(),et()}u(zt,"clear");var Dt={getConfig:ht,addNode:xt,addLink:gt,addTrend:yt,addAnnotation:ut,addNote:mt,addAccelerator:wt,addDeaccelerator:kt,setAnnotationsBox:bt,setSize:$t,startPipeline:vt,addPipelineComponent:Pt,updateAxes:Ct,getNode:St,resolveNodeId:Mt,getWardleyData:Nt,clear:zt,setAccTitle:at,getAccTitle:rt,setDiagramTitle:st,getDiagramTitle:it,getAccDescription:nt,setAccDescription:ot},Gt=["Genesis","Custom Built","Product","Commodity"],qt=u(()=>{let{themeVariables:e}=D();return{backgroundColor:e.wardley?.backgroundColor??e.background??"#fff",axisColor:e.wardley?.axisColor??"#000",axisTextColor:e.wardley?.axisTextColor??e.primaryTextColor??"#222",gridColor:e.wardley?.gridColor??"rgba(100, 100, 100, 0.2)",componentFill:e.wardley?.componentFill??"#fff",componentStroke:e.wardley?.componentStroke??"#000",componentLabelColor:e.wardley?.componentLabelColor??e.primaryTextColor??"#222",linkStroke:e.wardley?.linkStroke??"#000",evolutionStroke:e.wardley?.evolutionStroke??"#dc3545",annotationStroke:e.wardley?.annotationStroke??"#000",annotationTextColor:e.wardley?.annotationTextColor??e.primaryTextColor??"#222",annotationFill:e.wardley?.annotationFill??e.background??"#fff"}},"getTheme"),Ht=u(()=>{let e=D()["wardley-beta"];return{width:e?.width??900,height:e?.height??600,padding:e?.padding??48,nodeRadius:e?.nodeRadius??6,nodeLabelOffset:e?.nodeLabelOffset??8,axisFontSize:e?.axisFontSize??12,labelFontSize:e?.labelFontSize??10,showGrid:e?.showGrid??!1,useMaxWidth:e?.useMaxWidth??!0}},"getConfigValues"),jt=u((e,n,r,x)=>{V.debug(`Rendering Wardley map +`+e);let a=Ht(),d=qt(),m=a.nodeRadius*1.6,C=x.db,g=C.getWardleyData(),F=C.getDiagramTitle(),S=g.size?.width??a.width,b=g.size?.height??a.height,E=dt(n);E.selectAll("*").remove(),tt(E,b,S,a.useMaxWidth),E.attr("viewBox",`0 0 ${S} ${b}`);let v=E.append("g").attr("class","wardley-map"),q=E.append("defs");q.append("marker").attr("id",`arrow-${n}`).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerWidth",6).attr("markerHeight",6).attr("orient","auto-start-reverse").append("path").attr("d","M 0 0 L 10 5 L 0 10 z").attr("fill",d.evolutionStroke).attr("stroke","none"),q.append("marker").attr("id",`link-arrow-end-${n}`).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerWidth",5).attr("markerHeight",5).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 z").attr("fill",d.linkStroke).attr("stroke","none"),q.append("marker").attr("id",`link-arrow-start-${n}`).attr("viewBox","0 0 10 10").attr("refX",1).attr("refY",5).attr("markerWidth",5).attr("markerHeight",5).attr("orient","auto").append("path").attr("d","M 10 0 L 0 5 L 10 10 z").attr("fill",d.linkStroke).attr("stroke","none"),v.append("rect").attr("class","wardley-background").attr("width",S).attr("height",b).attr("fill",d.backgroundColor);let Y=S-a.padding*2,I=b-a.padding*2;F&&v.append("text").attr("class","wardley-title").attr("x",S/2).attr("y",a.padding/2).attr("fill",d.axisTextColor).attr("font-size",a.axisFontSize*1.05).attr("font-weight","bold").attr("text-anchor","middle").attr("dominant-baseline","middle").text(F);let z=u(t=>a.padding+t/100*Y,"projectX"),L=u(t=>b-a.padding-t/100*I,"projectY"),R=v.append("g").attr("class","wardley-axes");R.append("line").attr("x1",a.padding).attr("x2",S-a.padding).attr("y1",b-a.padding).attr("y2",b-a.padding).attr("stroke",d.axisColor).attr("stroke-width",1),R.append("line").attr("x1",a.padding).attr("x2",a.padding).attr("y1",a.padding).attr("y2",b-a.padding).attr("stroke",d.axisColor).attr("stroke-width",1);let Lt=g.axes.xLabel??"Evolution",Tt=g.axes.yLabel??"Visibility";R.append("text").attr("class","wardley-axis-label wardley-axis-label-x").attr("x",a.padding+Y/2).attr("y",b-a.padding/4).attr("fill",d.axisTextColor).attr("font-size",a.axisFontSize).attr("font-weight","bold").attr("text-anchor","middle").text(Lt),R.append("text").attr("class","wardley-axis-label wardley-axis-label-y").attr("x",a.padding/3).attr("y",a.padding+I/2).attr("fill",d.axisTextColor).attr("font-size",a.axisFontSize).attr("font-weight","bold").attr("text-anchor","middle").attr("transform",`rotate(-90 ${a.padding/3} ${a.padding+I/2})`).text(Tt);let B=g.axes.stages&&g.axes.stages.length>0?g.axes.stages:Gt;if(B.length>0){let t=v.append("g").attr("class","wardley-stages"),s=g.axes.stageBoundaries,o=[];if(s&&s.length===B.length){let i=0;s.forEach(p=>{o.push({start:i,end:p}),i=p})}else{let i=1/B.length;B.forEach((p,l)=>{o.push({start:l*i,end:(l+1)*i})})}B.forEach((i,p)=>{let l=o[p],f=a.padding+l.start*Y,h=a.padding+l.end*Y,y=(f+h)/2;p>0&&t.append("line").attr("x1",f).attr("x2",f).attr("y1",a.padding).attr("y2",b-a.padding).attr("stroke","#000").attr("stroke-width",1).attr("stroke-dasharray","5 5").attr("opacity",.8),t.append("text").attr("class","wardley-stage-label").attr("x",y).attr("y",b-a.padding/1.5).attr("fill",d.axisTextColor).attr("font-size",a.axisFontSize-2).attr("text-anchor","middle").text(i)})}if(a.showGrid){let t=v.append("g").attr("class","wardley-grid");for(let s=1;s<4;s++){let o=s/4,i=a.padding+Y*o;t.append("line").attr("x1",i).attr("x2",i).attr("y1",a.padding).attr("y2",b-a.padding).attr("stroke",d.gridColor).attr("stroke-dasharray","2 6"),t.append("line").attr("x1",a.padding).attr("x2",S-a.padding).attr("y1",b-a.padding-I*o).attr("y2",b-a.padding-I*o).attr("stroke",d.gridColor).attr("stroke-dasharray","2 6")}}let c=new Map;if(g.nodes.forEach(t=>{c.set(t.id,{x:z(t.x),y:L(t.y),node:t})}),g.pipelines.length>0){let t=v.append("g").attr("class","wardley-pipelines"),s=v.append("g").attr("class","wardley-pipeline-links");g.pipelines.forEach(o=>{if(o.componentIds.length===0)return;let i=o.componentIds.map(h=>({id:h,pos:c.get(h),node:g.nodes.find(y=>y.id===h)})).filter(h=>h.pos&&h.node).sort((h,y)=>h.node.x-y.node.x);for(let h=0;h{let y=c.get(h);y&&(p=Math.min(p,y.x),l=Math.max(l,y.x),f=y.y)}),p!==1/0&&l!==-1/0){let y=a.nodeRadius*4,w=f-y/2,P=c.get(o.nodeId);if(P){let N=(p+l)/2;P.x=N,P.y=w-m/6}t.append("rect").attr("class","wardley-pipeline-box").attr("x",p-15).attr("y",w).attr("width",l-p+30).attr("height",y).attr("fill","none").attr("stroke",d.axisColor).attr("stroke-width",1.5).attr("rx",4).attr("ry",4)}})}let Z=v.append("g").attr("class","wardley-links"),U=new Map;g.pipelines.forEach(t=>{U.set(t.nodeId,new Set(t.componentIds))});let J=g.links.filter(t=>!(!c.has(t.source)||!c.has(t.target)||U.get(t.target)?.has(t.source)));Z.selectAll("line").data(J).enter().append("line").attr("class",t=>`wardley-link${t.dashed?" wardley-link--dashed":""}`).attr("x1",t=>{let s=c.get(t.source),o=c.get(t.target),p=g.nodes.find(y=>y.id===t.source).isPipelineParent?m/Math.sqrt(2):a.nodeRadius,l=o.x-s.x,f=o.y-s.y,h=Math.sqrt(l*l+f*f);return s.x+l/h*p}).attr("y1",t=>{let s=c.get(t.source),o=c.get(t.target),p=g.nodes.find(y=>y.id===t.source).isPipelineParent?m/Math.sqrt(2):a.nodeRadius,l=o.x-s.x,f=o.y-s.y,h=Math.sqrt(l*l+f*f);return s.y+f/h*p}).attr("x2",t=>{let s=c.get(t.source),o=c.get(t.target),p=g.nodes.find(y=>y.id===t.target).isPipelineParent?m/Math.sqrt(2):a.nodeRadius,l=s.x-o.x,f=s.y-o.y,h=Math.sqrt(l*l+f*f);return o.x+l/h*p}).attr("y2",t=>{let s=c.get(t.source),o=c.get(t.target),p=g.nodes.find(y=>y.id===t.target).isPipelineParent?m/Math.sqrt(2):a.nodeRadius,l=s.x-o.x,f=s.y-o.y,h=Math.sqrt(l*l+f*f);return o.y+f/h*p}).attr("stroke",d.linkStroke).attr("stroke-width",1).attr("stroke-dasharray",t=>t.dashed?"6 6":null).attr("marker-end",t=>t.flow==="forward"||t.flow==="bidirectional"?`url(#link-arrow-end-${n})`:null).attr("marker-start",t=>t.flow==="backward"||t.flow==="bidirectional"?`url(#link-arrow-start-${n})`:null),Z.selectAll("text").data(J.filter(t=>t.label)).enter().append("text").attr("class","wardley-link-label").attr("x",t=>{let s=c.get(t.source),o=c.get(t.target),i=(s.x+o.x)/2,p=o.y-s.y,l=o.x-s.x,f=Math.sqrt(l*l+p*p),h=8,y=p/f;return i+y*h}).attr("y",t=>{let s=c.get(t.source),o=c.get(t.target),i=(s.y+o.y)/2,p=o.x-s.x,l=o.y-s.y,f=Math.sqrt(p*p+l*l),h=8,y=-p/f;return i+y*h}).attr("fill",d.axisTextColor).attr("font-size",a.labelFontSize).attr("text-anchor","middle").attr("dominant-baseline","middle").attr("transform",t=>{let s=c.get(t.source),o=c.get(t.target),i=(s.x+o.x)/2,p=(s.y+o.y)/2,l=o.x-s.x,f=o.y-s.y,h=Math.sqrt(l*l+f*f),y=8,w=f/h,P=-l/h,N=i+w*y,O=p+P*y,X=Math.atan2(f,l)*180/Math.PI;return(X>90||X<-90)&&(X+=180),`rotate(${X} ${N} ${O})`}).text(t=>t.label);let At=v.append("g").attr("class","wardley-trends"),Xt=g.trends.map(t=>{let s=c.get(t.nodeId);if(!s)return null;let o=z(t.targetX),i=L(t.targetY),p=o-s.x,l=i-s.y,f=Math.sqrt(p*p+l*l),h=a.nodeRadius+2,y=f>h?o-p/f*h:o,w=f>h?i-l/f*h:i;return{origin:s,targetX:o,targetY:i,adjustedX2:y,adjustedY2:w}}).filter(t=>t!==null);At.selectAll("line").data(Xt).enter().append("line").attr("class","wardley-trend").attr("x1",t=>t.origin.x).attr("y1",t=>t.origin.y).attr("x2",t=>t.adjustedX2).attr("y2",t=>t.adjustedY2).attr("stroke",d.evolutionStroke).attr("stroke-width",1).attr("stroke-dasharray","4 4").attr("marker-end",`url(#arrow-${n})`);let M=v.append("g").attr("class","wardley-nodes").selectAll("g").data(g.nodes).enter().append("g").attr("class",t=>["wardley-node",t.className?`wardley-node--${t.className}`:""].filter(Boolean).join(" "));M.filter(t=>t.sourceStrategy==="outsource").append("circle").attr("class","wardley-outsource-overlay").attr("cx",t=>c.get(t.id).x).attr("cy",t=>c.get(t.id).y).attr("r",a.nodeRadius*2).attr("fill","#666").attr("stroke",d.componentStroke).attr("stroke-width",1),M.filter(t=>t.sourceStrategy==="buy").append("circle").attr("class","wardley-buy-overlay").attr("cx",t=>c.get(t.id).x).attr("cy",t=>c.get(t.id).y).attr("r",a.nodeRadius*2).attr("fill","#ccc").attr("stroke",d.componentStroke).attr("stroke-width",1),M.filter(t=>t.sourceStrategy==="build").append("circle").attr("class","wardley-build-overlay").attr("cx",t=>c.get(t.id).x).attr("cy",t=>c.get(t.id).y).attr("r",a.nodeRadius*2).attr("fill","#eee").attr("stroke","#000").attr("stroke-width",1);let T=M.filter(t=>t.sourceStrategy==="market");T.append("circle").attr("class","wardley-market-overlay").attr("cx",t=>c.get(t.id).x).attr("cy",t=>c.get(t.id).y).attr("r",a.nodeRadius*2).attr("fill","white").attr("stroke",d.componentStroke).attr("stroke-width",1),M.filter(t=>!t.isPipelineParent&&t.sourceStrategy!=="market"&&t.className!=="anchor").append("circle").attr("cx",t=>c.get(t.id).x).attr("cy",t=>c.get(t.id).y).attr("r",a.nodeRadius).attr("fill",d.componentFill).attr("stroke",d.componentStroke).attr("stroke-width",1);let H=a.nodeRadius*.7,$=a.nodeRadius*1.2;if(T.append("line").attr("class","wardley-market-line").attr("x1",t=>c.get(t.id).x).attr("y1",t=>c.get(t.id).y-$).attr("x2",t=>c.get(t.id).x-$*Math.cos(Math.PI/6)).attr("y2",t=>c.get(t.id).y+$*Math.sin(Math.PI/6)).attr("stroke",d.componentStroke).attr("stroke-width",1),T.append("line").attr("class","wardley-market-line").attr("x1",t=>c.get(t.id).x-$*Math.cos(Math.PI/6)).attr("y1",t=>c.get(t.id).y+$*Math.sin(Math.PI/6)).attr("x2",t=>c.get(t.id).x+$*Math.cos(Math.PI/6)).attr("y2",t=>c.get(t.id).y+$*Math.sin(Math.PI/6)).attr("stroke",d.componentStroke).attr("stroke-width",1),T.append("line").attr("class","wardley-market-line").attr("x1",t=>c.get(t.id).x+$*Math.cos(Math.PI/6)).attr("y1",t=>c.get(t.id).y+$*Math.sin(Math.PI/6)).attr("x2",t=>c.get(t.id).x).attr("y2",t=>c.get(t.id).y-$).attr("stroke",d.componentStroke).attr("stroke-width",1),T.append("circle").attr("class","wardley-market-dot").attr("cx",t=>c.get(t.id).x).attr("cy",t=>c.get(t.id).y-$).attr("r",H).attr("fill","white").attr("stroke",d.componentStroke).attr("stroke-width",2),T.append("circle").attr("class","wardley-market-dot").attr("cx",t=>c.get(t.id).x-$*Math.cos(Math.PI/6)).attr("cy",t=>c.get(t.id).y+$*Math.sin(Math.PI/6)).attr("r",H).attr("fill","white").attr("stroke",d.componentStroke).attr("stroke-width",2),T.append("circle").attr("class","wardley-market-dot").attr("cx",t=>c.get(t.id).x+$*Math.cos(Math.PI/6)).attr("cy",t=>c.get(t.id).y+$*Math.sin(Math.PI/6)).attr("r",H).attr("fill","white").attr("stroke",d.componentStroke).attr("stroke-width",2),M.filter(t=>t.isPipelineParent===!0).append("rect").attr("x",t=>c.get(t.id).x-m/2).attr("y",t=>c.get(t.id).y-m/2).attr("width",m).attr("height",m).attr("fill",d.componentFill).attr("stroke",d.componentStroke).attr("stroke-width",1),M.filter(t=>t.inertia===!0).append("line").attr("class","wardley-inertia").attr("x1",t=>{let s=c.get(t.id),o=t.isPipelineParent?m/2+15:a.nodeRadius+15;return t.sourceStrategy&&(o+=a.nodeRadius+10),s.x+o}).attr("y1",t=>{let s=c.get(t.id),o=t.isPipelineParent?m:a.nodeRadius*2;return s.y-o/2}).attr("x2",t=>{let s=c.get(t.id),o=t.isPipelineParent?m/2+15:a.nodeRadius+15;return t.sourceStrategy&&(o+=a.nodeRadius+10),s.x+o}).attr("y2",t=>{let s=c.get(t.id),o=t.isPipelineParent?m:a.nodeRadius*2;return s.y+o/2}).attr("stroke",d.componentStroke).attr("stroke-width",6),M.append("text").attr("x",t=>{let s=c.get(t.id);if(t.className==="anchor")return t.labelOffsetX!==void 0?s.x+t.labelOffsetX:s.x;let o=a.nodeLabelOffset;t.sourceStrategy&&t.labelOffsetX===void 0&&(o+=10);let i=t.labelOffsetX??o;return s.x+i}).attr("y",t=>{let s=c.get(t.id);if(t.className==="anchor")return t.labelOffsetY!==void 0?s.y+t.labelOffsetY:s.y-3;let o=-a.nodeLabelOffset;t.sourceStrategy&&t.labelOffsetY===void 0&&(o-=10);let i=t.labelOffsetY??o;return s.y+i}).attr("class","wardley-node-label").attr("fill",t=>t.className==="evolved"?d.evolutionStroke:t.className==="anchor"?"#000":d.componentLabelColor).attr("font-size",a.labelFontSize).attr("font-weight",t=>t.className==="anchor"?"bold":"normal").attr("text-anchor",t=>t.className==="anchor"?"middle":"start").attr("dominant-baseline",t=>t.className==="anchor"?"middle":"auto").text(t=>t.label),g.annotations.length>0){let t=v.append("g").attr("class","wardley-annotations");if(g.annotations.forEach(s=>{let o=s.coordinates.map(i=>({x:z(i.x),y:L(i.y)}));if(o.length>1)for(let i=0;i{let p=t.append("g").attr("class","wardley-annotation");p.append("circle").attr("cx",i.x).attr("cy",i.y).attr("r",10).attr("fill","white").attr("stroke",d.axisColor).attr("stroke-width",1.5),p.append("text").attr("x",i.x).attr("y",i.y).attr("text-anchor","middle").attr("dominant-baseline","central").attr("font-size",10).attr("fill",d.axisTextColor).attr("font-weight","bold").text(s.number)})}),g.annotationsBox){let s=z(g.annotationsBox.x),o=L(g.annotationsBox.y),i=10,p=16,l=11,f=t.append("g").attr("class","wardley-annotations-box"),h=[...g.annotations].filter(w=>w.text).sort((w,P)=>w.number-P.number),y=[];if(h.forEach((w,P)=>{let N=f.append("text").attr("x",s+i).attr("y",o+i+(P+1)*p).attr("font-size",l).attr("fill",d.axisTextColor).attr("text-anchor","start").attr("dominant-baseline","middle").text(`${w.number}. ${w.text}`);y.push(N)}),y.length>0){let w=0,P=0;y.forEach(j=>{let W=j.node(),Bt=W.getComputedTextLength();w=Math.max(w,Bt);let Ft=W.getBBox();P=Math.max(P,Ft.height)});let N=w+i*2+105,O=h.length*p+i*2+P/2,X=a.padding,Et=S-a.padding-N,Yt=a.padding,It=b-a.padding-O;s=Math.max(X,Math.min(s,Et)),o=Math.max(Yt,Math.min(o,It)),y.forEach((j,W)=>{j.attr("x",s+i).attr("y",o+i+(W+1)*p)}),f.insert("rect","text").attr("x",s).attr("y",o).attr("width",N).attr("height",O).attr("fill","white").attr("stroke",d.axisColor).attr("stroke-width",1.5).attr("rx",4).attr("ry",4)}}}if(g.notes.length>0){let t=v.append("g").attr("class","wardley-notes");g.notes.forEach(s=>{let o=z(s.x),i=L(s.y);t.append("text").attr("x",o).attr("y",i).attr("text-anchor","start").attr("font-size",11).attr("fill",d.axisTextColor).attr("font-weight","bold").text(s.text)})}if(g.accelerators.length>0){let t=v.append("g").attr("class","wardley-accelerators");g.accelerators.forEach(s=>{let o=z(s.x),i=L(s.y),p=60,l=30,f=20,h=` + M ${o} ${i-l/2} + L ${o+p-f} ${i-l/2} + L ${o+p-f} ${i-l/2-8} + L ${o+p} ${i} + L ${o+p-f} ${i+l/2+8} + L ${o+p-f} ${i+l/2} + L ${o} ${i+l/2} + Z + `;t.append("path").attr("d",h).attr("fill","white").attr("stroke",d.componentStroke).attr("stroke-width",1),t.append("text").attr("x",o+p/2).attr("y",i+l/2+15).attr("text-anchor","middle").attr("font-size",10).attr("fill",d.axisTextColor).attr("font-weight","bold").text(s.name)})}if(g.deaccelerators.length>0){let t=v.append("g").attr("class","wardley-deaccelerators");g.deaccelerators.forEach(s=>{let o=z(s.x),i=L(s.y),p=60,l=30,f=20,h=` + M ${o+p} ${i-l/2} + L ${o+f} ${i-l/2} + L ${o+f} ${i-l/2-8} + L ${o} ${i} + L ${o+f} ${i+l/2+8} + L ${o+f} ${i+l/2} + L ${o+p} ${i+l/2} + Z + `;t.append("path").attr("d",h).attr("fill","white").attr("stroke",d.componentStroke).attr("stroke-width",1),t.append("text").attr("x",o+p/2).attr("y",i+l/2+15).attr("text-anchor","middle").attr("font-size",10).attr("fill",d.axisTextColor).attr("font-weight","bold").text(s.name)})}},"draw"),Vt={draw:jt},_t=u(({wardley:e}={})=>{let n=K(),r=Q(),x=_(n,r.themeVariables),a=_(x.wardley,e);return` + .wardley-background { + fill: ${a.backgroundColor}; + } + .wardley-axes line, .wardley-axes path { + stroke: ${a.axisColor}; + } + .wardley-axis-label { + fill: ${a.axisTextColor}; + } + .wardley-stage-label { + fill: ${a.axisTextColor}; + } + .wardley-grid line { + stroke: ${a.gridColor}; + } + .wardley-node circle { + fill: ${a.componentFill}; + stroke: ${a.componentStroke}; + } + .wardley-node-label { + fill: ${a.componentLabelColor}; + } + .wardley-link { + stroke: ${a.linkStroke}; + } + .wardley-link--dashed { + stroke-dasharray: 4 4; + } + .wardley-link-label { + fill: ${a.axisTextColor}; + } + .wardley-trend line { + stroke: ${a.evolutionStroke}; + } + .wardley-annotation-line { + stroke: ${a.annotationStroke}; + } + .wardley-annotation circle { + fill: ${a.annotationFill}; + stroke: ${a.annotationStroke}; + } + .wardley-annotation text { + fill: ${a.annotationTextColor}; + } + .wardley-annotations-box rect { + fill: ${a.annotationFill}; + stroke: ${a.annotationStroke}; + } + .wardley-annotations-box text { + fill: ${a.annotationTextColor}; + } + .wardley-pipeline-box { + stroke: ${a.componentStroke}; + } + .wardley-notes text { + fill: ${a.axisTextColor}; + } + `},"styles"),re={parser:ft,db:Dt,renderer:Vt,styles:_t};export{re as diagram}; diff --git a/src/frontend/web/von_interface/static/vendor/conversation-visuals/xychartDiagram-PMCCYNJV-2AMIZGJR.js b/src/frontend/web/von_interface/static/vendor/conversation-visuals/xychartDiagram-PMCCYNJV-2AMIZGJR.js new file mode 100644 index 000000000..02e8e993c --- /dev/null +++ b/src/frontend/web/von_interface/static/vendor/conversation-visuals/xychartDiagram-PMCCYNJV-2AMIZGJR.js @@ -0,0 +1,7 @@ +import{a as Gt}from"./chunk-UED66XBH.js";import{d as qt}from"./chunk-O46DUOKR.js";import"./chunk-C7YISUMK.js";import{o as yt}from"./chunk-EUYVSIXP.js";import"./chunk-QSTT4QQC.js";import{C as nt,I as Ft,P as Wt,U as Xt,V as Nt,W as Yt,X as Ht,Y as $t,Z as Ut,_ as ft,p as Ot,r as Vt}from"./chunk-S4JILX6U.js";import{H as bt,b as dt,n as pt,o as mt}from"./chunk-XEQL7KGA.js";import{a}from"./chunk-YUSHYV7C.js";import"./chunk-3RNHDNP5.js";var At=(function(){var t=a(function(z,r,h,g){for(h=h||{},g=z.length;g--;h[z[g]]=r);return h},"o"),e=[1,10,12,14,16,18,19,21,23],i=[2,6],s=[1,3],n=[1,5],u=[1,6],l=[1,7],d=[1,5,10,12,14,16,18,19,21,23,36,37,38],p=[1,25],S=[1,26],R=[1,28],T=[1,29],B=[1,30],W=[1,31],X=[1,32],v=[1,33],V=[1,34],N=[1,35],Y=[1,36],b=[1,37],E=[1,43],c=[1,42],L=[1,47],I=[1,50],A=[1,10,12,14,16,18,19,21,23,36,37,38],$=[1,10,12,14,16,18,19,21,23,24,26,28,29,36,37,38],D=[1,10,12,14,16,18,19,21,23,24,26,28,29,36,37,38,42,43,44,45,46,47,48,49,50,51],Q=[1,65],C=[26,28],y={trace:a(function(){},"trace"),yy:{},symbols_:{error:2,start:3,eol:4,XYCHART:5,chartConfig:6,document:7,CHART_ORIENTATION:8,statement:9,title:10,text:11,X_AXIS:12,parseXAxis:13,Y_AXIS:14,parseYAxis:15,LINE:16,plotData:17,BAR:18,acc_title:19,acc_title_value:20,acc_descr:21,acc_descr_value:22,acc_descr_multiline_value:23,SQUARE_BRACES_START:24,dataPoints:25,SQUARE_BRACES_END:26,dataPoint:27,COMMA:28,NUMBER_WITH_DECIMAL:29,STR:30,xAxisData:31,bandData:32,ARROW_DELIMITER:33,commaSeparatedTexts:34,yAxisData:35,NEWLINE:36,SEMI:37,EOF:38,alphaNum:39,MD_STR:40,alphaNumToken:41,AMP:42,NUM:43,ALPHA:44,PLUS:45,EQUALS:46,MULT:47,DOT:48,BRKT:49,MINUS:50,UNDERSCORE:51,$accept:0,$end:1},terminals_:{2:"error",5:"XYCHART",8:"CHART_ORIENTATION",10:"title",12:"X_AXIS",14:"Y_AXIS",16:"LINE",18:"BAR",19:"acc_title",20:"acc_title_value",21:"acc_descr",22:"acc_descr_value",23:"acc_descr_multiline_value",24:"SQUARE_BRACES_START",26:"SQUARE_BRACES_END",28:"COMMA",29:"NUMBER_WITH_DECIMAL",30:"STR",33:"ARROW_DELIMITER",36:"NEWLINE",37:"SEMI",38:"EOF",40:"MD_STR",42:"AMP",43:"NUM",44:"ALPHA",45:"PLUS",46:"EQUALS",47:"MULT",48:"DOT",49:"BRKT",50:"MINUS",51:"UNDERSCORE"},productions_:[0,[3,2],[3,3],[3,2],[3,1],[6,1],[7,0],[7,2],[9,2],[9,2],[9,2],[9,2],[9,2],[9,3],[9,2],[9,3],[9,2],[9,2],[9,1],[17,3],[25,3],[25,1],[27,2],[27,1],[13,1],[13,2],[13,1],[31,1],[31,3],[32,3],[34,3],[34,1],[15,1],[15,2],[15,1],[35,3],[4,1],[4,1],[4,1],[11,1],[11,1],[11,1],[39,1],[39,2],[41,1],[41,1],[41,1],[41,1],[41,1],[41,1],[41,1],[41,1],[41,1],[41,1]],performAction:a(function(r,h,g,x,k,o,U){var f=o.length-1;switch(k){case 5:x.setOrientation(o[f]);break;case 9:x.setDiagramTitle(o[f].text.trim());break;case 12:x.setLineData({text:"",type:"text"},o[f]);break;case 13:x.setLineData(o[f-1],o[f]);break;case 14:x.setBarData({text:"",type:"text"},o[f]);break;case 15:x.setBarData(o[f-1],o[f]);break;case 16:this.$=o[f].trim(),x.setAccTitle(this.$);break;case 17:case 18:this.$=o[f].trim(),x.setAccDescription(this.$);break;case 19:this.$=o[f-1];break;case 20:case 30:this.$=[o[f-2],...o[f]];break;case 21:case 31:this.$=[o[f]];break;case 22:this.$={value:Number(o[f-1]),label:o[f]};break;case 23:this.$={value:Number(o[f]),label:""};break;case 24:x.setXAxisTitle(o[f]);break;case 25:x.setXAxisTitle(o[f-1]);break;case 26:x.setXAxisTitle({type:"text",text:""});break;case 27:x.setXAxisBand(o[f]);break;case 28:x.setXAxisRangeData(Number(o[f-2]),Number(o[f]));break;case 29:this.$=o[f-1];break;case 32:x.setYAxisTitle(o[f]);break;case 33:x.setYAxisTitle(o[f-1]);break;case 34:x.setYAxisTitle({type:"text",text:""});break;case 35:x.setYAxisRangeData(Number(o[f-2]),Number(o[f]));break;case 39:this.$={text:o[f],type:"text"};break;case 40:this.$={text:o[f],type:"text"};break;case 41:this.$={text:o[f],type:"markdown"};break;case 42:this.$=o[f];break;case 43:this.$=o[f-1]+""+o[f];break}},"anonymous"),table:[t(e,i,{3:1,4:2,7:4,5:s,36:n,37:u,38:l}),{1:[3]},t(e,i,{4:2,7:4,3:8,5:s,36:n,37:u,38:l}),t(e,i,{4:2,7:4,6:9,3:10,5:s,8:[1,11],36:n,37:u,38:l}),{1:[2,4],9:12,10:[1,13],12:[1,14],14:[1,15],16:[1,16],18:[1,17],19:[1,18],21:[1,19],23:[1,20]},t(d,[2,36]),t(d,[2,37]),t(d,[2,38]),{1:[2,1]},t(e,i,{4:2,7:4,3:21,5:s,36:n,37:u,38:l}),{1:[2,3]},t(d,[2,5]),t(e,[2,7],{4:22,36:n,37:u,38:l}),{11:23,30:p,39:24,40:S,41:27,42:R,43:T,44:B,45:W,46:X,47:v,48:V,49:N,50:Y,51:b},{11:39,13:38,24:E,29:c,30:p,31:40,32:41,39:24,40:S,41:27,42:R,43:T,44:B,45:W,46:X,47:v,48:V,49:N,50:Y,51:b},{11:45,15:44,29:L,30:p,35:46,39:24,40:S,41:27,42:R,43:T,44:B,45:W,46:X,47:v,48:V,49:N,50:Y,51:b},{11:49,17:48,24:I,30:p,39:24,40:S,41:27,42:R,43:T,44:B,45:W,46:X,47:v,48:V,49:N,50:Y,51:b},{11:52,17:51,24:I,30:p,39:24,40:S,41:27,42:R,43:T,44:B,45:W,46:X,47:v,48:V,49:N,50:Y,51:b},{20:[1,53]},{22:[1,54]},t(A,[2,18]),{1:[2,2]},t(A,[2,8]),t(A,[2,9]),t($,[2,39],{41:55,42:R,43:T,44:B,45:W,46:X,47:v,48:V,49:N,50:Y,51:b}),t($,[2,40]),t($,[2,41]),t(D,[2,42]),t(D,[2,44]),t(D,[2,45]),t(D,[2,46]),t(D,[2,47]),t(D,[2,48]),t(D,[2,49]),t(D,[2,50]),t(D,[2,51]),t(D,[2,52]),t(D,[2,53]),t(A,[2,10]),t(A,[2,24],{32:41,31:56,24:E,29:c}),t(A,[2,26]),t(A,[2,27]),{33:[1,57]},{11:59,30:p,34:58,39:24,40:S,41:27,42:R,43:T,44:B,45:W,46:X,47:v,48:V,49:N,50:Y,51:b},t(A,[2,11]),t(A,[2,32],{35:60,29:L}),t(A,[2,34]),{33:[1,61]},t(A,[2,12]),{17:62,24:I},{25:63,27:64,29:Q},t(A,[2,14]),{17:66,24:I},t(A,[2,16]),t(A,[2,17]),t(D,[2,43]),t(A,[2,25]),{29:[1,67]},{26:[1,68]},{26:[2,31],28:[1,69]},t(A,[2,33]),{29:[1,70]},t(A,[2,13]),{26:[1,71]},{26:[2,21],28:[1,72]},t(C,[2,23],{30:[1,73]}),t(A,[2,15]),t(A,[2,28]),t(A,[2,29]),{11:59,30:p,34:74,39:24,40:S,41:27,42:R,43:T,44:B,45:W,46:X,47:v,48:V,49:N,50:Y,51:b},t(A,[2,35]),t(A,[2,19]),{25:75,27:64,29:Q},t(C,[2,22]),{26:[2,30]},{26:[2,20]}],defaultActions:{8:[2,1],10:[2,3],21:[2,2],74:[2,30],75:[2,20]},parseError:a(function(r,h){if(h.recoverable)this.trace(r);else{var g=new Error(r);throw g.hash=h,g}},"parseError"),parse:a(function(r){var h=this,g=[0],x=[],k=[null],o=[],U=this.table,f="",it=0,Et=0,It=0,fe=2,Mt=1,pe=o.slice.call(arguments,1),_=Object.create(this.lexer),G={yy:{}};for(var lt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,lt)&&(G.yy[lt]=this.yy[lt]);_.setInput(r,G.yy),G.yy.lexer=_,G.yy.parser=this,typeof _.yylloc>"u"&&(_.yylloc={});var ct=_.yylloc;o.push(ct);var me=_.options&&_.options.ranges;typeof G.yy.parseError=="function"?this.parseError=G.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function be(M){g.length=g.length-2*M,k.length=k.length-M,o.length=o.length-M}a(be,"popStack");function Bt(){var M;return M=x.pop()||_.lex()||Mt,typeof M!="number"&&(M instanceof Array&&(x=M,M=x.pop()),M=h.symbols_[M]||M),M}a(Bt,"lex");for(var P,gt,q,O,ze,ut,K={},st,H,zt,at;;){if(q=g[g.length-1],this.defaultActions[q]?O=this.defaultActions[q]:((P===null||typeof P>"u")&&(P=Bt()),O=U[q]&&U[q][P]),typeof O>"u"||!O.length||!O[0]){var xt="";at=[];for(st in U[q])this.terminals_[st]&&st>fe&&at.push("'"+this.terminals_[st]+"'");_.showPosition?xt="Parse error on line "+(it+1)+`: +`+_.showPosition()+` +Expecting `+at.join(", ")+", got '"+(this.terminals_[P]||P)+"'":xt="Parse error on line "+(it+1)+": Unexpected "+(P==Mt?"end of input":"'"+(this.terminals_[P]||P)+"'"),this.parseError(xt,{text:_.match,token:this.terminals_[P]||P,line:_.yylineno,loc:ct,expected:at})}if(O[0]instanceof Array&&O.length>1)throw new Error("Parse Error: multiple actions possible at state: "+q+", token: "+P);switch(O[0]){case 1:g.push(P),k.push(_.yytext),o.push(_.yylloc),g.push(O[1]),P=null,gt?(P=gt,gt=null):(Et=_.yyleng,f=_.yytext,it=_.yylineno,ct=_.yylloc,It>0&&It--);break;case 2:if(H=this.productions_[O[1]][1],K.$=k[k.length-H],K._$={first_line:o[o.length-(H||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(H||1)].first_column,last_column:o[o.length-1].last_column},me&&(K._$.range=[o[o.length-(H||1)].range[0],o[o.length-1].range[1]]),ut=this.performAction.apply(K,[f,Et,it,G.yy,O[1],k,o].concat(pe)),typeof ut<"u")return ut;H&&(g=g.slice(0,-1*H*2),k=k.slice(0,-1*H),o=o.slice(0,-1*H)),g.push(this.productions_[O[1]][0]),k.push(K.$),o.push(K._$),zt=U[g[g.length-2]][g[g.length-1]],g.push(zt);break;case 3:return!0}}return!0},"parse")},F=(function(){var z={EOF:1,parseError:a(function(h,g){if(this.yy.parser)this.yy.parser.parseError(h,g);else throw new Error(h)},"parseError"),setInput:a(function(r,h){return this.yy=h||this.yy||{},this._input=r,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:a(function(){var r=this._input[0];this.yytext+=r,this.yyleng++,this.offset++,this.match+=r,this.matched+=r;var h=r.match(/(?:\r\n?|\n).*/g);return h?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),r},"input"),unput:a(function(r){var h=r.length,g=r.split(/(?:\r\n?|\n)/g);this._input=r+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-h),this.offset-=h;var x=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),g.length-1&&(this.yylineno-=g.length-1);var k=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:g?(g.length===x.length?this.yylloc.first_column:0)+x[x.length-g.length].length-g[0].length:this.yylloc.first_column-h},this.options.ranges&&(this.yylloc.range=[k[0],k[0]+this.yyleng-h]),this.yyleng=this.yytext.length,this},"unput"),more:a(function(){return this._more=!0,this},"more"),reject:a(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). +`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:a(function(r){this.unput(this.match.slice(r))},"less"),pastInput:a(function(){var r=this.matched.substr(0,this.matched.length-this.match.length);return(r.length>20?"...":"")+r.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:a(function(){var r=this.match;return r.length<20&&(r+=this._input.substr(0,20-r.length)),(r.substr(0,20)+(r.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:a(function(){var r=this.pastInput(),h=new Array(r.length+1).join("-");return r+this.upcomingInput()+` +`+h+"^"},"showPosition"),test_match:a(function(r,h){var g,x,k;if(this.options.backtrack_lexer&&(k={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&&(k.yylloc.range=this.yylloc.range.slice(0))),x=r[0].match(/(?:\r\n?|\n).*/g),x&&(this.yylineno+=x.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:x?x[x.length-1].length-x[x.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+r[0].length},this.yytext+=r[0],this.match+=r[0],this.matches=r,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(r[0].length),this.matched+=r[0],g=this.performAction.call(this,this.yy,this,h,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),g)return g;if(this._backtrack){for(var o in k)this[o]=k[o];return!1}return!1},"test_match"),next:a(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var r,h,g,x;this._more||(this.yytext="",this.match="");for(var k=this._currentRules(),o=0;oh[0].length)){if(h=g,x=o,this.options.backtrack_lexer){if(r=this.test_match(g,k[o]),r!==!1)return r;if(this._backtrack){h=!1;continue}else return!1}else if(!this.options.flex)break}return h?(r=this.test_match(h,k[x]),r!==!1?r:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text. +`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:a(function(){var h=this.next();return h||this.lex()},"lex"),begin:a(function(h){this.conditionStack.push(h)},"begin"),popState:a(function(){var h=this.conditionStack.length-1;return h>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:a(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:a(function(h){return h=this.conditionStack.length-1-Math.abs(h||0),h>=0?this.conditionStack[h]:"INITIAL"},"topState"),pushState:a(function(h){this.begin(h)},"pushState"),stateStackSize:a(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:a(function(h,g,x,k){var o=k;switch(x){case 0:break;case 1:break;case 2:return this.popState(),36;break;case 3:return this.popState(),36;break;case 4:return 36;case 5:break;case 6:return 10;case 7:return this.pushState("acc_title"),19;break;case 8:return this.popState(),"acc_title_value";break;case 9:return this.pushState("acc_descr"),21;break;case 10:return this.popState(),"acc_descr_value";break;case 11:this.pushState("acc_descr_multiline");break;case 12:this.popState();break;case 13:return"acc_descr_multiline_value";case 14:return 5;case 15:return 5;case 16:return 8;case 17:return this.pushState("axis_data"),"X_AXIS";break;case 18:return this.pushState("axis_data"),"Y_AXIS";break;case 19:return this.pushState("axis_band_data"),24;break;case 20:return 33;case 21:return this.pushState("data"),16;break;case 22:return this.pushState("data"),18;break;case 23:return this.pushState("data_inner"),24;break;case 24:return 29;case 25:return this.popState(),26;break;case 26:this.popState();break;case 27:this.pushState("string");break;case 28:this.popState();break;case 29:return"STR";case 30:return 24;case 31:return 26;case 32:return 44;case 33:return"COLON";case 34:return 45;case 35:return 28;case 36:return 46;case 37:return 47;case 38:return 49;case 39:return 51;case 40:return 48;case 41:return 42;case 42:return 50;case 43:return 43;case 44:break;case 45:return 37;case 46:return 38}},"anonymous"),rules:[/^(?:%%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:(\r?\n))/i,/^(?:(\r?\n))/i,/^(?:[\n\r]+)/i,/^(?:%%[^\n]*)/i,/^(?:title\b)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:\})/i,/^(?:[^\}]*)/i,/^(?:xychart-beta\b)/i,/^(?:xychart\b)/i,/^(?:(?:vertical|horizontal))/i,/^(?:x-axis\b)/i,/^(?:y-axis\b)/i,/^(?:\[)/i,/^(?:-->)/i,/^(?:line\b)/i,/^(?:bar\b)/i,/^(?:\[)/i,/^(?:[+-]?(?:\d+(?:\.\d+)?|\.\d+))/i,/^(?:\])/i,/^(?:(?:`\) \{ this\.pushState\(md_string\); \}\n\(\?:\(\?!`"\)\.\)\+ \{ return MD_STR; \}\n\(\?:`))/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:\[)/i,/^(?:\])/i,/^(?:[A-Za-z]+)/i,/^(?::)/i,/^(?:\+)/i,/^(?:,)/i,/^(?:=)/i,/^(?:\*)/i,/^(?:#)/i,/^(?:[\_])/i,/^(?:\.)/i,/^(?:&)/i,/^(?:-)/i,/^(?:[0-9]+)/i,/^(?:\s+)/i,/^(?:;)/i,/^(?:$)/i],conditions:{data_inner:{rules:[0,1,4,5,6,7,9,11,14,15,16,17,18,21,22,24,25,26,27,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46],inclusive:!0},data:{rules:[0,1,3,4,5,6,7,9,11,14,15,16,17,18,21,22,23,26,27,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46],inclusive:!0},axis_band_data:{rules:[0,1,4,5,6,7,9,11,14,15,16,17,18,21,22,25,26,27,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46],inclusive:!0},axis_data:{rules:[0,1,2,4,5,6,7,9,11,14,15,16,17,18,19,20,21,22,24,26,27,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46],inclusive:!0},acc_descr_multiline:{rules:[12,13],inclusive:!1},acc_descr:{rules:[10],inclusive:!1},acc_title:{rules:[8],inclusive:!1},title:{rules:[],inclusive:!1},md_string:{rules:[],inclusive:!1},string:{rules:[28,29],inclusive:!1},INITIAL:{rules:[0,1,4,5,6,7,9,11,14,15,16,17,18,21,22,26,27,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46],inclusive:!0}}};return z})();y.lexer=F;function w(){this.yy={}}return a(w,"Parser"),w.prototype=y,y.Parser=w,new w})();At.parser=At;var ye=At;function ot(t){return t.type==="bar"}a(ot,"isBarPlot");function rt(t){return t.type==="band"}a(rt,"isBandAxisData");function Z(t){return t.type==="linear"}a(Z,"isLinearAxisData");var St=class{constructor(t){this.parentGroup=t}static{a(this,"TextDimensionCalculatorWithFont")}getMaxDimension(t,e){if(!this.parentGroup)return{width:t.reduce((n,u)=>Math.max(u.length,n),0)*e,height:e};let i={width:0,height:0},s=this.parentGroup.append("g").attr("visibility","hidden").attr("font-size",e);for(let n of t){let u=qt(s,1,n),l=u?u.width:n.length*e,d=u?u.height:e;i.width=Math.max(i.width,l),i.height=Math.max(i.height,d)}return s.remove(),i}},jt=.7,Qt=.2,Kt=class{constructor(t,e,i,s){this.axisConfig=t,this.title=e,this.textDimensionCalculator=i,this.axisThemeConfig=s,this.boundingRect={x:0,y:0,width:0,height:0},this.axisPosition="left",this.showTitle=!1,this.showLabel=!1,this.showTick=!1,this.showAxisLine=!1,this.outerPadding=0,this.titleTextHeight=0,this.labelTextHeight=0,this.normalizedLabelRotationInRad=0,this.range=[0,10],this.boundingRect={x:0,y:0,width:0,height:0},this.axisPosition="left",this.normalizedLabelRotationInRad=this.axisConfig.labelRotation>=-90&&this.axisConfig.labelRotation<=90?this.axisConfig.labelRotation*Math.PI/180:0}static{a(this,"BaseAxis")}setRange(t){this.range=t,this.axisPosition==="left"||this.axisPosition==="right"?this.boundingRect.height=t[1]-t[0]:this.boundingRect.width=t[1]-t[0],this.recalculateScale()}getRange(){return[this.range[0]+this.outerPadding,this.range[1]-this.outerPadding]}setAxisPosition(t){this.axisPosition=t,this.setRange(this.range)}getTickDistance(){let t=this.getRange();return Math.abs(t[0]-t[1])/this.getTickValues().length}getAxisOuterPadding(){return this.outerPadding}getLabelDimension(){return this.textDimensionCalculator.getMaxDimension(this.getTickValues().map(t=>t.toString()),this.axisConfig.labelFontSize)}recalculateOuterPaddingToDrawBar(){jt*this.getTickDistance()>this.outerPadding*2&&(this.outerPadding=Math.floor(jt*this.getTickDistance()/2)),this.recalculateScale()}calculateSpaceIfDrawnHorizontally(t){let e=t.height;if(this.axisConfig.showAxisLine&&e>this.axisConfig.axisLineWidth&&(e-=this.axisConfig.axisLineWidth,this.showAxisLine=!0),this.axisConfig.showLabel){let i=this.getLabelDimension(),s=Qt*t.width;this.outerPadding=Math.min(i.width/2,s);let n=i.height;this.axisPosition==="bottom"&&this.normalizedLabelRotationInRad!==0&&(n=Math.max(n,Math.abs(Math.sin(this.normalizedLabelRotationInRad)*i.width)+Math.abs(Math.cos(this.normalizedLabelRotationInRad)*i.height))),n+=this.axisConfig.labelPadding*2,this.labelTextHeight=i.height,n<=e&&(e-=n,this.showLabel=!0)}if(this.axisConfig.showTick&&e>=this.axisConfig.tickLength&&(this.showTick=!0,e-=this.axisConfig.tickLength),this.axisConfig.showTitle&&this.title){let i=this.textDimensionCalculator.getMaxDimension([this.title],this.axisConfig.titleFontSize),s=i.height+this.axisConfig.titlePadding*2;this.titleTextHeight=i.height,s<=e&&(e-=s,this.showTitle=!0)}this.boundingRect.width=t.width,this.boundingRect.height=t.height-e}calculateSpaceIfDrawnVertical(t){let e=t.width;if(this.axisConfig.showAxisLine&&e>this.axisConfig.axisLineWidth&&(e-=this.axisConfig.axisLineWidth,this.showAxisLine=!0),this.axisConfig.showLabel){let i=this.getLabelDimension(),s=Qt*t.height;this.outerPadding=Math.min(i.height/2,s);let n=i.width+this.axisConfig.labelPadding*2;n<=e&&(e-=n,this.showLabel=!0)}if(this.axisConfig.showTick&&e>=this.axisConfig.tickLength&&(this.showTick=!0,e-=this.axisConfig.tickLength),this.axisConfig.showTitle&&this.title){let i=this.textDimensionCalculator.getMaxDimension([this.title],this.axisConfig.titleFontSize),s=i.height+this.axisConfig.titlePadding*2;this.titleTextHeight=i.height,s<=e&&(e-=s,this.showTitle=!0)}this.boundingRect.width=t.width-e,this.boundingRect.height=t.height}calculateSpace(t){return this.axisPosition==="left"||this.axisPosition==="right"?this.calculateSpaceIfDrawnVertical(t):this.calculateSpaceIfDrawnHorizontally(t),this.recalculateScale(),{width:this.boundingRect.width,height:this.boundingRect.height}}setBoundingBoxXY(t){this.boundingRect.x=t.x,this.boundingRect.y=t.y}calculateOffsetByRotation(t){let e=this.normalizedLabelRotationInRad;return e===0?0:Math.sin(e)*this.getLabelDimension()[t]/2}getDrawableElementsForLeftAxis(){let t=[];if(this.showAxisLine){let e=this.boundingRect.x+this.boundingRect.width-this.axisConfig.axisLineWidth/2;t.push({type:"path",groupTexts:["left-axis","axisl-line"],data:[{path:`M ${e},${this.boundingRect.y} L ${e},${this.boundingRect.y+this.boundingRect.height} `,strokeFill:this.axisThemeConfig.axisLineColor,strokeWidth:this.axisConfig.axisLineWidth}]})}if(this.showLabel&&t.push({type:"text",groupTexts:["left-axis","label"],data:this.getTickValues().map(e=>({text:e.toString(),x:this.boundingRect.x+this.boundingRect.width-(this.showLabel?this.axisConfig.labelPadding:0)-(this.showTick?this.axisConfig.tickLength:0)-(this.showAxisLine?this.axisConfig.axisLineWidth:0),y:this.getScaleValue(e),fill:this.axisThemeConfig.labelColor,fontSize:this.axisConfig.labelFontSize,rotation:0,verticalPos:"middle",horizontalPos:"right"}))}),this.showTick){let e=this.boundingRect.x+this.boundingRect.width-(this.showAxisLine?this.axisConfig.axisLineWidth:0);t.push({type:"path",groupTexts:["left-axis","ticks"],data:this.getTickValues().map(i=>({path:`M ${e},${this.getScaleValue(i)} L ${e-this.axisConfig.tickLength},${this.getScaleValue(i)}`,strokeFill:this.axisThemeConfig.tickColor,strokeWidth:this.axisConfig.tickWidth}))})}return this.showTitle&&t.push({type:"text",groupTexts:["left-axis","title"],data:[{text:this.title,x:this.boundingRect.x+this.axisConfig.titlePadding,y:this.boundingRect.y+this.boundingRect.height/2,fill:this.axisThemeConfig.titleColor,fontSize:this.axisConfig.titleFontSize,rotation:270,verticalPos:"top",horizontalPos:"center"}]}),t}getDrawableElementsForBottomAxis(){let t=[];if(this.showAxisLine){let e=this.boundingRect.y+this.axisConfig.axisLineWidth/2;t.push({type:"path",groupTexts:["bottom-axis","axis-line"],data:[{path:`M ${this.boundingRect.x},${e} L ${this.boundingRect.x+this.boundingRect.width},${e}`,strokeFill:this.axisThemeConfig.axisLineColor,strokeWidth:this.axisConfig.axisLineWidth}]})}if(this.showLabel&&t.push({type:"text",groupTexts:["bottom-axis","label"],data:this.getTickValues().map(e=>({text:e.toString(),x:this.getScaleValue(e)+this.calculateOffsetByRotation("height"),y:this.boundingRect.y+this.axisConfig.labelPadding+(this.showTick?this.axisConfig.tickLength:0)+(this.showAxisLine?this.axisConfig.axisLineWidth:0)+Math.abs(this.calculateOffsetByRotation("width")),fill:this.axisThemeConfig.labelColor,fontSize:this.axisConfig.labelFontSize,rotation:this.normalizedLabelRotationInRad*180/Math.PI,verticalPos:"top",horizontalPos:"center"}))}),this.showTick){let e=this.boundingRect.y+(this.showAxisLine?this.axisConfig.axisLineWidth:0);t.push({type:"path",groupTexts:["bottom-axis","ticks"],data:this.getTickValues().map(i=>({path:`M ${this.getScaleValue(i)},${e} L ${this.getScaleValue(i)},${e+this.axisConfig.tickLength}`,strokeFill:this.axisThemeConfig.tickColor,strokeWidth:this.axisConfig.tickWidth}))})}return this.showTitle&&t.push({type:"text",groupTexts:["bottom-axis","title"],data:[{text:this.title,x:this.range[0]+(this.range[1]-this.range[0])/2,y:this.boundingRect.y+this.boundingRect.height-this.axisConfig.titlePadding-this.titleTextHeight,fill:this.axisThemeConfig.titleColor,fontSize:this.axisConfig.titleFontSize,rotation:0,verticalPos:"top",horizontalPos:"center"}]}),t}getDrawableElementsForTopAxis(){let t=[];if(this.showAxisLine){let e=this.boundingRect.y+this.boundingRect.height-this.axisConfig.axisLineWidth/2;t.push({type:"path",groupTexts:["top-axis","axis-line"],data:[{path:`M ${this.boundingRect.x},${e} L ${this.boundingRect.x+this.boundingRect.width},${e}`,strokeFill:this.axisThemeConfig.axisLineColor,strokeWidth:this.axisConfig.axisLineWidth}]})}if(this.showLabel&&t.push({type:"text",groupTexts:["top-axis","label"],data:this.getTickValues().map(e=>({text:e.toString(),x:this.getScaleValue(e),y:this.boundingRect.y+(this.showTitle?this.titleTextHeight+this.axisConfig.titlePadding*2:0)+this.axisConfig.labelPadding,fill:this.axisThemeConfig.labelColor,fontSize:this.axisConfig.labelFontSize,rotation:0,verticalPos:"top",horizontalPos:"center"}))}),this.showTick){let e=this.boundingRect.y;t.push({type:"path",groupTexts:["top-axis","ticks"],data:this.getTickValues().map(i=>({path:`M ${this.getScaleValue(i)},${e+this.boundingRect.height-(this.showAxisLine?this.axisConfig.axisLineWidth:0)} L ${this.getScaleValue(i)},${e+this.boundingRect.height-this.axisConfig.tickLength-(this.showAxisLine?this.axisConfig.axisLineWidth:0)}`,strokeFill:this.axisThemeConfig.tickColor,strokeWidth:this.axisConfig.tickWidth}))})}return this.showTitle&&t.push({type:"text",groupTexts:["top-axis","title"],data:[{text:this.title,x:this.boundingRect.x+this.boundingRect.width/2,y:this.boundingRect.y+this.axisConfig.titlePadding,fill:this.axisThemeConfig.titleColor,fontSize:this.axisConfig.titleFontSize,rotation:0,verticalPos:"top",horizontalPos:"center"}]}),t}getDrawableElements(){if(this.axisPosition==="left")return this.getDrawableElementsForLeftAxis();if(this.axisPosition==="right")throw Error("Drawing of right axis is not implemented");return this.axisPosition==="bottom"?this.getDrawableElementsForBottomAxis():this.axisPosition==="top"?this.getDrawableElementsForTopAxis():[]}},Ae=class extends Kt{static{a(this,"BandAxis")}constructor(t,e,i,s,n){super(t,s,n,e),this.categories=i,this.scale=pt().domain(this.categories).range(this.getRange())}setRange(t){super.setRange(t)}recalculateScale(){this.scale=pt().domain(this.categories).range(this.getRange()).paddingInner(1).paddingOuter(0).align(.5),dt.trace("BandAxis axis final categories, range: ",this.categories,this.getRange())}getTickValues(){return this.categories}getScaleValue(t){return this.scale(t)??this.getRange()[0]}},ke=class extends Kt{static{a(this,"LinearAxis")}constructor(t,e,i,s,n){super(t,s,n,e),this.domain=i,this.scale=mt().domain(this.domain).range(this.getRange())}getTickValues(){return this.scale.ticks()}recalculateScale(){let t=[...this.domain];this.axisPosition==="left"&&t.reverse(),this.scale=mt().domain(t).range(this.getRange())}getScaleValue(t){return this.scale(t)}};function kt(t,e,i,s){let n=new St(s);return rt(t)?new Ae(e,i,t.categories,t.title,n):new ke(e,i,[t.min,t.max],t.title,n)}a(kt,"getAxis");var we=class{constructor(t,e,i,s){this.textDimensionCalculator=t,this.chartConfig=e,this.chartData=i,this.chartThemeConfig=s,this.boundingRect={x:0,y:0,width:0,height:0},this.showChartTitle=!1}static{a(this,"ChartTitle")}setBoundingBoxXY(t){this.boundingRect.x=t.x,this.boundingRect.y=t.y}calculateSpace(t){let e=this.textDimensionCalculator.getMaxDimension([this.chartData.title],this.chartConfig.titleFontSize),i=Math.max(e.width,t.width),s=e.height+2*this.chartConfig.titlePadding;return e.width<=i&&e.height<=s&&this.chartConfig.showTitle&&this.chartData.title&&(this.boundingRect.width=i,this.boundingRect.height=s,this.showChartTitle=!0),{width:this.boundingRect.width,height:this.boundingRect.height}}getDrawableElements(){let t=[];return this.showChartTitle&&t.push({groupTexts:["chart-title"],type:"text",data:[{fontSize:this.chartConfig.titleFontSize,text:this.chartData.title,verticalPos:"middle",horizontalPos:"center",x:this.boundingRect.x+this.boundingRect.width/2,y:this.boundingRect.y+this.boundingRect.height/2,fill:this.chartThemeConfig.titleColor,rotation:0}]}),t}};function Zt(t,e,i,s){let n=new St(s);return new we(n,t,e,i)}a(Zt,"getChartTitleComponent");var Ce=.75,Se=.5,Re=.35;function wt(t){return{fontSize:t,markerSize:t*Ce,markerSpacing:t*Re,itemSpacing:t*Se}}a(wt,"getLegendLayout");var _e=class{constructor(t,e,i,s){this.textDimensionCalculator=t,this.chartConfig=e,this.chartData=i,this.chartThemeConfig=s,this.boundingRect={x:0,y:0,width:0,height:0},this.visiblePlots=[]}static{a(this,"ChartLegend")}setBoundingBoxXY(t){this.boundingRect.x=t.x,this.boundingRect.y=t.y}calculateSpace(t){if(this.visiblePlots=this.chartConfig.showLegend?this.chartData.plots.filter(p=>p.title):[],this.visiblePlots.length===0)return this.boundingRect.width=0,this.boundingRect.height=0,{width:0,height:0};let{fontSize:e,markerSize:i,markerSpacing:s,itemSpacing:n}=wt(this.chartConfig.legendFontSize),u=this.textDimensionCalculator.getMaxDimension(this.visiblePlots.map(p=>p.title),e),l=this.chartConfig.legendPadding*2+i+s+u.width,d=this.chartConfig.legendPadding*2+this.visiblePlots.length*e+(this.visiblePlots.length-1)*n;return l<=t.width&&d<=t.height?(this.boundingRect.width=l,this.boundingRect.height=d):(this.visiblePlots=[],this.boundingRect.width=0,this.boundingRect.height=0),{width:this.boundingRect.width,height:this.boundingRect.height}}getDrawableElements(){if(this.visiblePlots.length===0)return[];let{fontSize:t,markerSize:e,markerSpacing:i,itemSpacing:s}=wt(this.chartConfig.legendFontSize),n=t+s,u=this.boundingRect.x+this.chartConfig.legendPadding,l=this.boundingRect.y+this.chartConfig.legendPadding,d=[],p=[];for(let[S,R]of this.visiblePlots.entries())if(ot(R))d.push({x:u,y:l+S*n,width:e,height:e,fill:R.fill,strokeFill:R.fill,strokeWidth:0});else{let T=l+S*n+e/2;p.push({path:`M ${u},${T} L ${u+e},${T}`,strokeFill:R.strokeFill,strokeWidth:R.strokeWidth})}return[{groupTexts:["legend","markers"],type:"rect",data:d},{groupTexts:["legend","markers"],type:"path",data:p},{groupTexts:["legend","label"],type:"text",data:this.visiblePlots.map((S,R)=>({text:S.title,x:u+e+i,y:l+R*n+e/2,fill:this.chartThemeConfig.legendTextColor,fontSize:t,rotation:0,verticalPos:"middle",horizontalPos:"left"}))}]}};function Jt(t,e,i,s){let n=new St(s);return new _e(n,t,e,i)}a(Jt,"getChartLegendComponent");var Te=class{constructor(t,e,i,s,n){this.plotData=t,this.xAxis=e,this.yAxis=i,this.orientation=s,this.plotIndex=n}static{a(this,"LinePlot")}getDrawableElement(){let t=this.plotData.data.map(s=>[this.xAxis.getScaleValue(s[0]),this.yAxis.getScaleValue(s[1])]),e;if(this.orientation==="horizontal"?e=bt().y(s=>s[0]).x(s=>s[1])(t):e=bt().x(s=>s[0]).y(s=>s[1])(t),!e)return[];let i=[{groupTexts:["plot",`line-plot-${this.plotIndex}`],type:"path",data:[{path:e,strokeFill:this.plotData.strokeFill,strokeWidth:this.plotData.strokeWidth}]}];if(this.plotData.pointLabels&&this.plotData.pointLabels.length>0){let u=[];for(let[l,[d,p]]of t.entries()){let S=this.plotData.pointLabels[l];S&&(this.orientation==="horizontal"?u.push({x:p+10,y:d,text:S,fill:this.plotData.strokeFill,verticalPos:"middle",horizontalPos:"left",fontSize:12,rotation:0}):u.push({x:d,y:p-10,text:S,fill:this.plotData.strokeFill,verticalPos:"middle",horizontalPos:"center",fontSize:12,rotation:0}))}u.length>0&&i.push({groupTexts:["plot",`line-plot-${this.plotIndex}`,"labels"],type:"text",data:u})}return i}},De=class{constructor(t,e,i,s,n,u){this.barData=t,this.boundingRect=e,this.xAxis=i,this.yAxis=s,this.orientation=n,this.plotIndex=u}static{a(this,"BarPlot")}getDrawableElement(){let t=this.barData.data.map(n=>[this.xAxis.getScaleValue(n[0]),this.yAxis.getScaleValue(n[1])]),i=Math.min(this.xAxis.getAxisOuterPadding()*2,this.xAxis.getTickDistance())*(1-.05),s=i/2;return this.orientation==="horizontal"?[{groupTexts:["plot",`bar-plot-${this.plotIndex}`],type:"rect",data:t.map(n=>({x:this.boundingRect.x,y:n[0]-s,height:i,width:n[1]-this.boundingRect.x,fill:this.barData.fill,strokeWidth:0,strokeFill:this.barData.fill}))}]:[{groupTexts:["plot",`bar-plot-${this.plotIndex}`],type:"rect",data:t.map(n=>({x:n[0]-s,y:n[1],width:i,height:this.boundingRect.y+this.boundingRect.height-n[1],fill:this.barData.fill,strokeWidth:0,strokeFill:this.barData.fill}))}]}},Pe=class{constructor(t,e,i){this.chartConfig=t,this.chartData=e,this.chartThemeConfig=i,this.boundingRect={x:0,y:0,width:0,height:0}}static{a(this,"BasePlot")}setAxes(t,e){this.xAxis=t,this.yAxis=e}setBoundingBoxXY(t){this.boundingRect.x=t.x,this.boundingRect.y=t.y}calculateSpace(t){return this.boundingRect.width=t.width,this.boundingRect.height=t.height,{width:this.boundingRect.width,height:this.boundingRect.height}}getDrawableElements(){if(!(this.xAxis&&this.yAxis))throw Error("Axes must be passed to render Plots");let t=[];for(let[e,i]of this.chartData.plots.entries())switch(i.type){case"line":{let s=new Te(i,this.xAxis,this.yAxis,this.chartConfig.chartOrientation,e);t.push(...s.getDrawableElement())}break;case"bar":{let s=new De(i,this.boundingRect,this.xAxis,this.yAxis,this.chartConfig.chartOrientation,e);t.push(...s.getDrawableElement())}break}return t}};function te(t,e,i){return new Pe(t,e,i)}a(te,"getPlotComponent");var Le=class{constructor(t,e,i,s){this.chartConfig=t,this.chartData=e,this.componentStore={title:Zt(t,e,i,s),plot:te(t,e,i),legend:Jt(t,e,i,s),xAxis:kt(e.xAxis,t.xAxis,{titleColor:i.xAxisTitleColor,labelColor:i.xAxisLabelColor,tickColor:i.xAxisTickColor,axisLineColor:i.xAxisLineColor},s),yAxis:kt(e.yAxis,t.yAxis,{titleColor:i.yAxisTitleColor,labelColor:i.yAxisLabelColor,tickColor:i.yAxisTickColor,axisLineColor:i.yAxisLineColor},s)}}static{a(this,"Orchestrator")}calculateVerticalSpace(){let t=this.chartConfig.width,e=this.chartConfig.height,i=0,s=0,n={width:0,height:0},u=Math.floor(t*this.chartConfig.plotReservedSpacePercent/100),l=Math.floor(e*this.chartConfig.plotReservedSpacePercent/100),d=this.componentStore.plot.calculateSpace({width:u,height:l});t-=d.width,e-=d.height,d=this.componentStore.title.calculateSpace({width:this.chartConfig.width,height:e}),s=d.height,e-=d.height,this.componentStore.xAxis.setAxisPosition("bottom"),d=this.componentStore.xAxis.calculateSpace({width:t,height:e}),e-=d.height,this.componentStore.yAxis.setAxisPosition("left"),d=this.componentStore.yAxis.calculateSpace({width:t,height:e}),i=d.width,t-=d.width,n=this.componentStore.legend.calculateSpace({width:t,height:l}),t-=n.width,t>0&&(u+=t,t=0),e>0&&(l+=e,e=0),this.componentStore.plot.calculateSpace({width:u,height:l}),this.componentStore.plot.setBoundingBoxXY({x:i,y:s}),this.componentStore.legend.setBoundingBoxXY({x:i+u,y:s+Math.max((l-n.height)/2,0)}),this.componentStore.xAxis.setRange([i,i+u]),this.componentStore.xAxis.setBoundingBoxXY({x:i,y:s+l}),this.componentStore.yAxis.setRange([s,s+l]),this.componentStore.yAxis.setBoundingBoxXY({x:0,y:s}),this.chartData.plots.some(p=>ot(p))&&this.componentStore.xAxis.recalculateOuterPaddingToDrawBar()}calculateHorizontalSpace(){let t=this.chartConfig.width,e=this.chartConfig.height,i=0,s=0,n=0,u={width:0,height:0},l=Math.floor(t*this.chartConfig.plotReservedSpacePercent/100),d=Math.floor(e*this.chartConfig.plotReservedSpacePercent/100),p=this.componentStore.plot.calculateSpace({width:l,height:d});t-=p.width,e-=p.height,p=this.componentStore.title.calculateSpace({width:this.chartConfig.width,height:e}),i=p.height,e-=p.height,this.componentStore.xAxis.setAxisPosition("left"),p=this.componentStore.xAxis.calculateSpace({width:t,height:e}),t-=p.width,s=p.width,this.componentStore.yAxis.setAxisPosition("top"),p=this.componentStore.yAxis.calculateSpace({width:t,height:e}),e-=p.height,n=i+p.height,u=this.componentStore.legend.calculateSpace({width:t,height:d}),t-=u.width,t>0&&(l+=t,t=0),e>0&&(d+=e,e=0),this.componentStore.plot.calculateSpace({width:l,height:d}),this.componentStore.plot.setBoundingBoxXY({x:s,y:n}),this.componentStore.legend.setBoundingBoxXY({x:s+l,y:n+Math.max((d-u.height)/2,0)}),this.componentStore.yAxis.setRange([s,s+l]),this.componentStore.yAxis.setBoundingBoxXY({x:s,y:i}),this.componentStore.xAxis.setRange([n,n+d]),this.componentStore.xAxis.setBoundingBoxXY({x:0,y:n}),this.chartData.plots.some(S=>ot(S))&&this.componentStore.xAxis.recalculateOuterPaddingToDrawBar()}calculateSpace(){this.chartConfig.chartOrientation==="horizontal"?this.calculateHorizontalSpace():this.calculateVerticalSpace()}getDrawableElement(){this.calculateSpace();let t=[];this.componentStore.plot.setAxes(this.componentStore.xAxis,this.componentStore.yAxis);for(let e of Object.values(this.componentStore))t.push(...e.getDrawableElements());return t}},ve=class{static{a(this,"XYChartBuilder")}static build(t,e,i,s){return new Le(t,e,i,s).getDrawableElement()}},J=0,ee,tt=Tt(),et=_t(),m=Dt(),Ct=et.plotColorPalette.split(",").map(t=>t.trim()),ht=!1,Rt=!1;function _t(){let t=Ot(),e=nt();return yt(t.xyChart,e.themeVariables.xyChart)}a(_t,"getChartDefaultThemeConfig");function Tt(){let t=nt();return yt(Vt.xyChart,t.xyChart)}a(Tt,"getChartDefaultConfig");function Dt(){return{yAxis:{type:"linear",title:"",min:1/0,max:-1/0},xAxis:{type:"band",title:"",categories:[]},title:"",plots:[]}}a(Dt,"getChartDefaultData");function j(t){let e=nt();return Ft(t.trim(),e)}a(j,"textSanitizer");function ie(t){ee=t}a(ie,"setTmpSVGG");function se(t){t==="horizontal"?tt.chartOrientation="horizontal":tt.chartOrientation="vertical"}a(se,"setOrientation");function ae(t){m.xAxis.title=j(t.text)}a(ae,"setXAxisTitle");function Pt(t,e){m.xAxis={type:"linear",title:m.xAxis.title,min:t,max:e},ht=!0}a(Pt,"setXAxisRangeData");function ne(t){m.xAxis={type:"band",title:m.xAxis.title,categories:t.map(e=>j(e.text))},ht=!0}a(ne,"setXAxisBand");function oe(t){m.yAxis.title=j(t.text)}a(oe,"setYAxisTitle");function re(t,e){m.yAxis={type:"linear",title:m.yAxis.title,min:t,max:e},Rt=!0}a(re,"setYAxisRangeData");function he(t){let e=Math.min(...t),i=Math.max(...t),s=Z(m.yAxis)?m.yAxis.min:1/0,n=Z(m.yAxis)?m.yAxis.max:-1/0;m.yAxis={type:"linear",title:m.yAxis.title,min:Math.min(s,e),max:Math.max(n,i)}}a(he,"setYAxisRangeFromPlotData");function Lt(t){let e=[];if(t.length===0)return e;if(!ht){let i=Z(m.xAxis)?m.xAxis.min:1/0,s=Z(m.xAxis)?m.xAxis.max:-1/0;Pt(Math.min(i,1),Math.max(s,t.length))}if(rt(m.xAxis)&&t.length>m.xAxis.categories.length&&(t=t.slice(0,m.xAxis.categories.length)),Rt||he(t),rt(m.xAxis)&&(e=m.xAxis.categories.map((i,s)=>[i,t[s]])),Z(m.xAxis)){let i=m.xAxis.min,s=m.xAxis.max;if(t.length===1)e=[[`${i}`,t[0]]];else{let n=(s-i)/(t.length-1);e=t.map((u,l)=>[`${i+l*n}`,u])}}return e}a(Lt,"transformDataWithoutCategory");function vt(t){return Ct[t===0?0:t%Ct.length]}a(vt,"getPlotColorFromPalette");function le(t,e){let i=e.map(l=>l.value),s=e.map(l=>l.label?j(l.label):""),n=Lt(i),u=s.some(l=>l!=="");m.plots.push({type:"line",title:j(t.text),strokeFill:vt(J),strokeWidth:2,data:n,...u?{pointLabels:s}:{}}),J++}a(le,"setLineData");function ce(t,e){let i=e.map(n=>n.value),s=Lt(i);m.plots.push({type:"bar",title:j(t.text),fill:vt(J),data:s}),J++}a(ce,"setBarData");function ge(){if(m.plots.length===0)throw Error("No Plot to render, please provide a plot with some data");return m.title=ft(),ve.build(tt,m,et,ee)}a(ge,"getDrawableElem");function ue(){return et}a(ue,"getChartThemeConfig");function xe(){return tt}a(xe,"getChartConfig");function de(){return m}a(de,"getXYChartData");var Ee=a(function(){Xt(),J=0,tt=Tt(),m=Dt(),et=_t(),Ct=et.plotColorPalette.split(",").map(t=>t.trim()),ht=!1,Rt=!1},"clear"),Ie={getDrawableElem:ge,clear:Ee,setAccTitle:Nt,getAccTitle:Yt,setDiagramTitle:Ut,getDiagramTitle:ft,getAccDescription:$t,setAccDescription:Ht,setOrientation:se,setXAxisTitle:ae,setXAxisRangeData:Pt,setXAxisBand:ne,setYAxisTitle:oe,setYAxisRangeData:re,setLineData:le,setBarData:ce,setTmpSVGG:ie,getChartThemeConfig:ue,getChartConfig:xe,getXYChartData:de},Me=a((t,e,i,s)=>{let n=s.db,u=n.getChartThemeConfig(),l=n.getChartConfig(),d=n.getXYChartData().plots[0].data.map(b=>b[1]);function p(b){return b==="top"?"text-before-edge":"middle"}a(p,"getDominantBaseLine");function S(b){return b==="left"?"start":b==="right"?"end":"middle"}a(S,"getTextAnchor");function R(b){return`translate(${b.x}, ${b.y}) rotate(${b.rotation||0})`}a(R,"getTextTransformation"),dt.debug(`Rendering xychart chart +`+t);let T=Gt(e),B=T.append("g").attr("class","main"),W=B.append("rect").attr("width",l.width).attr("height",l.height).attr("class","background");Wt(T,l.height,l.width,!0),T.attr("viewBox",`0 0 ${l.width} ${l.height}`),W.attr("fill",u.backgroundColor),n.setTmpSVGG(T.append("g").attr("class","mermaid-tmp-group"));let X=n.getDrawableElem(),v={};function V(b){let E=B,c="";for(let[L]of b.entries()){let I=B;L>0&&v[c]&&(I=v[c]),c+=b[L],E=v[c],E||(E=v[c]=I.append("g").attr("class",b[L]))}return E}a(V,"getGroup");for(let b of X){if(b.data.length===0)continue;let E=V(b.groupTexts);switch(b.type){case"rect":if(E.selectAll("rect").data(b.data).enter().append("rect").attr("x",c=>c.x).attr("y",c=>c.y).attr("width",c=>c.width).attr("height",c=>c.height).attr("fill",c=>c.fill).attr("stroke",c=>c.strokeFill).attr("stroke-width",c=>c.strokeWidth),l.showDataLabel){let c=l.showDataLabelOutsideBar;if(l.chartOrientation==="horizontal"){let L=function(y,F){let{data:w,label:z}=y;return F*z.length*I<=w.width-A};var N=L;a(L,"fitsHorizontally");let I=.7,A=10,$=b.data.map((y,F)=>({data:y,label:d[F].toString()})).filter(y=>y.data.width>0&&y.data.height>0),D=$.map(y=>{let{data:F}=y,w=F.height*.7;for(;!L(y,w)&&w>0;)w-=1;return w}),Q=Math.floor(Math.min(...D)),C=a(y=>c?y.data.x+y.data.width+A:y.data.x+y.data.width-A,"determineLabelXPosition");E.selectAll("text").data($).enter().append("text").attr("x",C).attr("y",y=>y.data.y+y.data.height/2).attr("text-anchor",c?"start":"end").attr("dominant-baseline","middle").attr("fill",u.dataLabelColor).attr("font-size",`${Q}px`).text(y=>y.label)}else{let L=function(C,y,F){let{data:w,label:z}=C,h=y*z.length*.7,g=w.x+w.width/2,x=g-h/2,k=g+h/2,o=x>=w.x&&k<=w.x+w.width,U=w.y+F+y<=w.y+w.height;return o&&U};var Y=L;a(L,"fitsInBar");let I=10,A=b.data.map((C,y)=>({data:C,label:d[y].toString()})).filter(C=>C.data.width>0&&C.data.height>0),$=A.map(C=>{let{data:y,label:F}=C,w=y.width/(F.length*.7);for(;!L(C,w,I)&&w>0;)w-=1;return w}),D=Math.floor(Math.min(...$)),Q=a(C=>c?C.data.y-I:C.data.y+I,"determineLabelYPosition");E.selectAll("text").data(A).enter().append("text").attr("x",C=>C.data.x+C.data.width/2).attr("y",Q).attr("text-anchor","middle").attr("dominant-baseline",c?"auto":"hanging").attr("fill",u.dataLabelColor).attr("font-size",`${D}px`).text(C=>C.label)}}break;case"text":E.selectAll("text").data(b.data).enter().append("text").attr("x",0).attr("y",0).attr("fill",c=>c.fill).attr("font-size",c=>c.fontSize).attr("dominant-baseline",c=>p(c.verticalPos)).attr("text-anchor",c=>S(c.horizontalPos)).attr("transform",c=>R(c)).text(c=>c.text);break;case"path":E.selectAll("path").data(b.data).enter().append("path").attr("d",c=>c.path).attr("fill",c=>c.fill?c.fill:"none").attr("stroke",c=>c.strokeFill).attr("stroke-width",c=>c.strokeWidth);break}}},"draw"),Be={draw:Me},Ge={parser:ye,db:Ie,renderer:Be};export{Ge as diagram}; diff --git a/src/frontend/web/von_interface/templates/von_interface.html b/src/frontend/web/von_interface/templates/von_interface.html index cdcfafb33..364603f95 100644 --- a/src/frontend/web/von_interface/templates/von_interface.html +++ b/src/frontend/web/von_interface/templates/von_interface.html @@ -6,6 +6,7 @@ Von + diff --git a/tests/backend/test_adaptive_turn_service.py b/tests/backend/test_adaptive_turn_service.py index 0ca21d911..b9ef54b3e 100644 --- a/tests/backend/test_adaptive_turn_service.py +++ b/tests/backend/test_adaptive_turn_service.py @@ -16704,3 +16704,46 @@ def test_task_create_reconciliation_requires_matching_verified_requested_object( difference == "none" ) assert "recovery_status" not in snapshot["failed"] + + +def test_image_only_native_output_is_a_completed_answer_and_is_retained(monkeypatch): + from src.backend.services import conversation_image_service as images + from src.backend.languagemodels.structured_tool_calling.types import LLMContentPart + import io + from PIL import Image + buffer = io.BytesIO() + Image.new('RGB', (16, 12), 'navy').save(buffer, 'PNG') + data = buffer.getvalue() + seen = [] + def store(**kw): + seen.append(kw) + return {'concept_id': '#V#generated-fixture', **images.inspect_image(data), 'provenance': kw['provenance']} + monkeypatch.setattr(images, 'store_image', store) + client = _SequenceClient(LLMResponse(text_response='', content_parts=[ + LLMContentPart('image', 'ig-1', image_data=data, provenance={'kind': 'generated'})])) + result = execute_adaptive_turn(gateway=_gateway(lambda **kw: {'success': True}), + prompt='Illustrate diffusion.', context=[], llm_client=client, model='test-model', + user_concept_id='#V#person', org_concept_id='#V#org', turn_id='visual-turn') + assert result.terminal_status == 'completed' + assert len(client.calls) == 1 + assert result.content_parts[0]['asset']['concept_id'] == '#V#generated-fixture' + assert seen[0]['user_concept_id'] == '#V#person' + assert 'image_data' not in str(result) + + +def test_generated_image_storage_failure_preserves_text_without_another_model_call(monkeypatch): + from src.backend.services import conversation_image_service as images + from src.backend.languagemodels.structured_tool_calling.types import LLMContentPart + monkeypatch.setattr(images, 'inspect_image', lambda b: {'content_type': 'image/png', 'sha256': 'a' * 64}) + def fail(**kw): raise OSError('unavailable') + monkeypatch.setattr(images, 'store_image', fail) + client = _SequenceClient(LLMResponse(text_response='Useful explanation.', content_parts=[ + LLMContentPart('text', 'text1', text='Useful explanation.'), + LLMContentPart('image', 'ig-1', image_data=b'fixture', provenance={'kind': 'generated'})])) + result = execute_adaptive_turn(gateway=_gateway(lambda **kw: {'success': True}), + prompt='Illustrate diffusion.', context=[], llm_client=client, model='test-model', + user_concept_id='#V#person', turn_id='visual-turn') + assert result.terminal_status == 'answer_partially_completed' + assert result.response_text == 'Useful explanation.' + assert result.content_parts[1]['kind'] == 'media_error' + assert len(client.calls) == 1 diff --git a/tests/backend/test_conversation_output.py b/tests/backend/test_conversation_output.py new file mode 100644 index 000000000..d1f2bc23b --- /dev/null +++ b/tests/backend/test_conversation_output.py @@ -0,0 +1,369 @@ +"""Deterministic transport, retention, ordering, and private output boundaries.""" + +import base64 +import io +import json + +import pytest +from PIL import Image + +from src.backend.services import conversation_image_service as images +from src.backend.services import conversation_output_service as output +from src.backend.services.display_elements_service import ( + build_turn_display_elements, + validate_turn_display_elements, +) + + +def png(colour="navy"): + stream = io.BytesIO() + Image.new("RGB", (96, 64), colour).save(stream, "PNG") + return stream.getvalue() + + +def response(*, mixed=False, status="completed", result=None): + image = { + "type": "image_generation_call", + "id": "ig_fixture", + "status": status, + "result": result if result is not None else base64.b64encode(png()).decode(), + "revised_prompt": "private provider prompt", + "output_format": "png", + } + message = lambda ident, text: { + "type": "message", + "id": ident, + "content": [{"type": "output_text", "text": text}], + } + return { + "id": "resp_fixture", + "model": "test-vision-model", + "output": [message("before", "Before"), image, message("after", "After")] + if mixed + else [image], + } + + +@pytest.fixture +def retained_store(monkeypatch): + stored = {} + + def store(**kwargs): + assert kwargs["user_concept_id"] == "#V#owner" + info = images.inspect_image(kwargs["data"]) + identity = json.dumps([info["sha256"], kwargs["provenance"]], sort_keys=True) + if identity not in stored: + stored[identity] = { + **info, + "concept_id": f"#V#retained-{len(stored)}", + "filename": kwargs["filename"], + "provenance": kwargs["provenance"], + } + return stored[identity] + + monkeypatch.setattr(images, "store_image", store) + return stored + + +def test_mixed_output_retains_order_pixels_identity_and_private_provenance( + retained_store, +): + parts = output.openai_visible_parts(response(mixed=True)) + assert [p.kind for p in parts] == ["text", "image", "text"] + assert parts[1].image_data == png() + assert "image_data" not in repr(parts[1]) + retained = output.retain_parts(parts, actor="#V#owner", turn_id="turn1") + repeated = output.retain_parts(parts, actor="#V#owner", turn_id="turn1") + assert retained == repeated + assert len(retained_store) == 1 + contract = build_turn_display_elements( + response_text="BeforeAfter", + presenter_channels={"screen": "A paraphrase"}, + content_parts=retained, + ) + assert validate_turn_display_elements(contract) == (True, []) + visible = [ + e + for e in contract["elements"] + if e["provenance"].get("source") == "retained_content" + ] + assert [e["element_type"] for e in visible] == ["text_block", "image", "text_block"] + assert ( + visible[1]["payload"]["asset"]["sha256"] + == images.inspect_image(png())["sha256"] + ) + serialised = json.dumps( + [retained, contract, output.without_image_bytes(response())] + ) + assert base64.b64encode(png()).decode() not in serialised + assert "private provider prompt" not in json.dumps(contract) + assert ( + next(iter(retained_store.values()))["provenance"]["response_id"] + == "resp_fixture" + ) + + +@pytest.mark.parametrize("mixed", [False, True]) +def test_empty_provider_text_does_not_invalidate_retained_image_display( + retained_store, mixed +): + parts = output.retain_parts( + output.openai_visible_parts(response(mixed=mixed)), + actor="#V#owner", turn_id="with-empty-text", + ) + parts.extend([ + {"kind": "text", "part_id": "empty", "version": 1, "text": ""}, + {"kind": "text", "part_id": "whitespace", "version": 1, "text": " \n"}, + ]) + contract = build_turn_display_elements( + response_text="BeforeAfter" if mixed else "", + presenter_channels=None, content_parts=parts, + ) + + assert validate_turn_display_elements(contract) == (True, []) + visible = [e for e in contract["elements"] if e["channel"] == "screen"] + assert [e["element_type"] for e in visible] == ( + ["text_block", "image", "text_block"] if mixed else ["image"] + ) + assert len(parts) == (5 if mixed else 3) # Canonical source is unchanged. + + +@pytest.mark.parametrize( + "item", + [ + response(status="generating"), + response(status="failed"), + response(result="bad-data"), + ], +) +def test_incomplete_or_invalid_image_is_local_failure(item): + parts = output.openai_visible_parts(item) + assert parts[0].kind == "media_error" + assert parts[0].image_data is None + + +def test_storage_failure_keeps_useful_text_and_never_reissues_generation(monkeypatch): + calls = [] + + def fail(**kw): + calls.append(kw) + raise OSError("private storage details") + + monkeypatch.setattr(images, "store_image", fail) + parts = output.retain_parts( + output.openai_visible_parts(response(mixed=True)), + actor="#V#owner", + turn_id="failed", + ) + assert [p["kind"] for p in parts] == ["text", "media_error", "text"] + assert len(calls) == 1 + assert parts[1]["error_code"] == "image_storage_failed" + assert "private storage details" not in str(parts) + + +@pytest.mark.parametrize("embedded", [False, True]) +def test_tool_content_reuses_retention_and_removes_bytes(retained_store, embedded): + encoded = base64.b64encode(png()).decode() + media = ( + { + "type": "resource", + "resource": { + "uri": "resource://fixture", + "mimeType": "image/png", + "blob": encoded, + }, + } + if embedded + else {"type": "image", "mimeType": "image/png", "data": encoded} + ) + result = output.retain_tool_images( + {"content": [{"type": "text", "text": "Source"}, media]}, + actor="#V#owner", + turn_id="tool-turn", + tool_name="fixture", + call_id="call1", + ) + assert ( + result["image_attachments"][0]["sha256"] + == images.inspect_image(png())["sha256"] + ) + assert encoded not in json.dumps(result) + assert [p["kind"] for p in result["content_parts"]] == ["text", "image"] + + +def test_mime_mismatch_and_non_image_resource_do_not_fetch(): + with pytest.raises(ValueError, match="declared"): + output.decode_image(base64.b64encode(png()).decode(), "image/jpeg") + payload = { + "content": [ + { + "type": "resource_link", + "uri": "http://internal.invalid/private", + "mimeType": "image/png", + } + ] + } + assert ( + output.retain_tool_images( + payload, actor="#V#owner", turn_id="t", tool_name="x", call_id="c" + ) + is payload + ) + + +def test_unknown_format_retains_identifiable_fallback(): + contract = build_turn_display_elements( + response_text="", + presenter_channels=None, + content_parts=[{"kind": "future_canvas", "part_id": "x", "version": 8}], + ) + assert validate_turn_display_elements(contract) == (True, []) + assert "future_canvas" in contract["elements"][0]["payload"]["text"] + + +def test_repeated_element_id_emits_one_image(retained_store): + parts = output.retain_parts( + output.openai_visible_parts(response()), actor="#V#owner", turn_id="turn1" + ) + contract = build_turn_display_elements( + response_text="", presenter_channels=None, content_parts=parts + parts + ) + assert len([e for e in contract["elements"] if e["element_type"] == "image"]) == 1 + + +def test_history_restores_mixed_output_without_private_debug_and_edit_receives_pixels( + retained_store, monkeypatch +): + from src.backend.security.access_control import override_current_actor + from src.backend.server.routes.generate_route_support import ( + _persist_generate_turn_messages, + ) + from src.backend.services.chat_history_service import ( + _split_history_into_segments_with_locations, + ) + + parts = output.retain_parts( + output.openai_visible_parts(response(mixed=True)), + actor="#V#owner", + turn_id="turn1", + ) + history = [] + _persist_generate_turn_messages( + history_user_id="#V#owner", + user_message_persisted_early=True, + prompt_text="Draw a scene", + user_concept_id="#V#owner", + session_id="visual-session", + tool_messages=[], + response_text="Before\nAfter", + llm_debug_info={"request_id": "turn1"}, + user_namespace="#V#owner", + org_concept_id=None, + role_in_org=None, + current_context=[], + truncate_large_tool_results_fn=lambda messages, **kw: messages, + add_chat_history_message_fn=lambda **kw: history.append(kw["message"]), + limit_context_size_fn=lambda messages, **kw: messages, + assistant_content_parts=parts, + ) + restored = _split_history_into_segments_with_locations( + history, session_id="visual-session", include_debug=False + )[0][0] + assert restored["content_parts"] == parts + assert [e["element_type"] for e in restored["display_elements"]["elements"]] == [ + "text_block", + "image", + "text_block", + ] + assert "llm_debug_data" not in restored + assert base64.b64encode(png()).decode() not in json.dumps(history) + + asset = restored["image_attachments"][0] + loads = [] + + def load(cid, actor): + loads.append((cid, actor)) + return asset, png() + + monkeypatch.setattr(images, "load_image", load) + with override_current_actor("#V#owner", None): + sent = images.provider_image_messages( + [restored, {"role": "user", "content": "Make the background green"}], + surface="responses", + ) + encoded = sent[0]["content"][1]["image_url"].split(",", 1)[1] + assert base64.b64decode(encoded) == png() + assert loads == [(asset["concept_id"], "#V#owner")] + + edit_response = response(result=base64.b64encode(png("green")).decode()) + edit_response["id"] = "resp-edit" + edit_response["output"][0].update(id="ig-edit", action="edit") + edited = output.retain_parts( + output.openai_visible_parts(edit_response), + actor="#V#owner", + turn_id="turn2", + parent_ids=[asset["concept_id"]], + ) + assert edited[0]["asset"]["concept_id"] != asset["concept_id"] + assert edited[0]["asset"]["provenance"]["parent_concept_ids"] == [ + asset["concept_id"] + ] + assert restored["image_attachments"][0] == asset + assert len(retained_store) == 2 + + +def test_non_edit_output_records_inputs_without_claiming_a_revision(retained_store): + parts = output.retain_parts( + output.openai_visible_parts(response()), + actor="#V#owner", + turn_id="turn", + parent_ids=["#V#source"], + ) + provenance = parts[0]["asset"]["provenance"] + assert provenance["input_concept_ids"] == ["#V#source"] + assert "parent_concept_ids" not in provenance + + +def test_mcp_client_preserves_media_after_leading_text(retained_store): + from mcp import types + + from src.backend.integrations.internal_mcp.mcp_proxy_base import MCPStdIOClient + + result = types.CallToolResult( + content=[ + types.TextContent(type="text", text="A tool-created image."), + types.ImageContent( + type="image", + mimeType="image/png", + data=base64.b64encode(png()).decode(), + ), + ] + ) + client = object.__new__(MCPStdIOClient) + payload, parse_method = client._parse_result_with_telemetry(result) + assert parse_method == "media_content" + retained = output.retain_tool_images( + payload, + actor="#V#owner", + turn_id="mcp", + tool_name="fixture", + call_id="mcp-image", + ) + assert ( + retained["image_attachments"][0]["sha256"] + == images.inspect_image(png())["sha256"] + ) + assert base64.b64encode(png()).decode() not in json.dumps(retained) + + +def test_invalid_mcp_image_type_is_a_local_failure_without_base64_leakage(): + encoded = base64.b64encode(png()).decode() + result = output.retain_tool_images( + {"content": [{"type": "image", "mimeType": "text/html", "data": encoded}]}, + actor="#V#owner", + turn_id="t", + tool_name="fixture", + call_id="mcp-invalid", + ) + assert result["content_parts"][0]["kind"] == "media_error" + assert encoded not in json.dumps(result) diff --git a/tests/backend/test_model_registry_service.py b/tests/backend/test_model_registry_service.py index f3473aff9..e379ee6e1 100644 --- a/tests/backend/test_model_registry_service.py +++ b/tests/backend/test_model_registry_service.py @@ -51,6 +51,9 @@ def test_batched_graph_loader_preserves_registry_semantics_with_bounded_reads( ("#V#test_registry_entry", mod.PRED_HAS_MODEL_ID): ["test-model"], ("#V#test_profile", mod.PRED_HAS_API_SURFACE): ["responses"], ("#V#test_profile", mod.PRED_HAS_STRUCTURED_TOOL_CALLING): ["required"], + ("#V#test_profile", mod.PRED_HAS_MODEL_CAPABILITIES_JSON): [ + '{"image_generation":{"enabled":true,"model":"fixture-image-model"}}' + ], ("#V#test_constraint", mod.PRED_HAS_PARAMETER_ACTION): ["omit"], } concept_read_batches: list[tuple[str, ...]] = [] @@ -110,6 +113,7 @@ def _bulk_text(subject_ids, *, predicates, **_kwargs): "response_storage_policy": None, "connection_id": None, "deployment_id": None, + "image_generation": {"enabled": True, "model": "fixture-image-model"}, "parameter_constraints": [ { "constraint_concept_id": "#V#test_constraint", diff --git a/tests/backend/test_openai_structured_tool_transport.py b/tests/backend/test_openai_structured_tool_transport.py index 12a6d6b1f..39dc628b1 100644 --- a/tests/backend/test_openai_structured_tool_transport.py +++ b/tests/backend/test_openai_structured_tool_transport.py @@ -3159,3 +3159,121 @@ def test_image_bytes_reach_sdk_with_source_reference_and_no_retained_base64( assert descriptor["sha256"] in image_message["content"][0]["text"] assert base64.b64encode(data).decode() not in str(context) assert base64.b64encode(data).decode() not in str(result.continuation) + + +def test_completed_native_image_is_visible_not_a_function_call(monkeypatch): + import base64, io + from PIL import Image + buffer = io.BytesIO() + Image.new('RGB', (16, 12), 'navy').save(buffer, 'PNG') + data = buffer.getvalue() + provider_response = {'id': 'resp-image', 'model': 'test-model', 'output': [ + {'type': 'image_generation_call', 'id': 'ig-fixture', 'status': 'completed', + 'result': base64.b64encode(data).decode()}]} + _install_profiles(monkeypatch, _registry_profiles(_responses_profile())) + calls = _install_fake_openai(monkeypatch, responses=[provider_response]) + client = OpenAIClient(LLMClientConfig(model='test-model', provider='openai', api_key='test-key', temperature=None)) + result = asyncio.run(client.generate_with_tools(prompt='Image please', available_tools=[_tool()])) + assert result.text_response == '' + assert result.has_visible_content() + assert result.tool_calls == [] + assert result.content_parts[0].image_data == data + assert result.continuation is None + assert len(calls['responses']) == 1 + + +@pytest.mark.parametrize("with_image", [False, True]) +def test_sdk_response_with_union_tool_schema_preserves_completed_output( + monkeypatch, with_image +): + import base64 + import io + + from openai.types.responses import Response + from PIL import Image + + buffer = io.BytesIO() + Image.new("RGB", (16, 12), "navy").save(buffer, "PNG") + data = buffer.getvalue() + payload = _text_response(model="test-model") + if with_image: + payload["output"] = [{ + "type": "image_generation_call", "id": "ig-fixture", + "status": "completed", "result": base64.b64encode(data).decode(), + }] + # Responses echoes tool definitions. Ordinary adaptive evidence tools use + # union-valued JSON Schema types; these are not media discriminators. + payload["tools"] = [{ + "type": "function", "name": "lookup", "parameters": { + "type": "object", "properties": { + "field_equals": {"type": "object", "additionalProperties": { + "type": ["string", "number", "boolean", "null"], + }}, + }, + }, + }] + response = Response.model_construct(**payload) + _install_profiles(monkeypatch, _registry_profiles(_responses_profile())) + calls = _install_fake_openai(monkeypatch, responses=[response]) + client = OpenAIClient(LLMClientConfig( + model="test-model", provider="openai", api_key="test-key", temperature=None, + )) + + result = asyncio.run(client.generate_with_tools( + prompt="Useful reply", available_tools=[_tool()], + )) + + assert result.has_visible_content() + assert result.raw_response["tools"][0]["parameters"] == payload["tools"][0]["parameters"] + assert result.transport_metadata["response_id"] == "resp_1" + assert result.usage["total_tokens"] == 6 + assert len(calls["responses"]) == 1 + if with_image: + assert result.content_parts[0].image_data == data + assert result.raw_response["output"][0]["result"] == "[image bytes omitted]" + assert base64.b64encode(data).decode() not in json.dumps(result.raw_response) + else: + assert result.text_response == "ok" + + +def test_profile_enabled_native_tool_is_separate_and_does_not_retry(monkeypatch): + from src.backend.services import model_registry_service + profile = {**_responses_profile(), 'image_generation': {'enabled': True, 'model': 'fixture-image-model', 'output_format': 'png'}} + registry = _registry_profiles(profile) + _install_profiles(monkeypatch, registry) + monkeypatch.setattr(model_registry_service, 'resolve_model_api_profiles', lambda **kw: registry) + calls = _install_fake_openai(monkeypatch, responses=[_text_response(model='test-model')]) + client = OpenAIClient(LLMClientConfig(model='test-model', provider='openai', api_key='test-key', temperature=None)) + asyncio.run(client.generate_with_tools(prompt='Useful visual', available_tools=[_tool()])) + assert calls['responses'][0]['tools'][-1] == {'type': 'image_generation', 'model': 'fixture-image-model', 'output_format': 'png'} + assert {'max_retries': 0} in calls['client_options'] + + +def test_native_generation_disconnect_is_not_retried_or_sent_to_fallback(monkeypatch): + import httpx + import openai + from src.backend.services import model_registry_service + from src.backend.languagemodels.structured_tool_calling.types import ImageGenerationOutcomeUnknownError + + profile = {**_responses_profile(), 'image_generation': {'enabled': True, 'model': 'fixture-image-model'}} + registry = _registry_profiles(profile) + _install_profiles(monkeypatch, registry) + monkeypatch.setattr(model_registry_service, 'resolve_model_api_profiles', lambda **kw: registry) + failure = openai.APIConnectionError(request=httpx.Request('POST', 'https://fixture.invalid/responses')) + calls = _install_fake_openai(monkeypatch, responses=[failure]) + client = OpenAIClient(LLMClientConfig(model='test-model', provider='openai', api_key='test-key', temperature=None)) + with pytest.raises(ImageGenerationOutcomeUnknownError): + asyncio.run(client.generate_with_tools(prompt='Useful visual', available_tools=[_tool()])) + assert len(calls['responses']) == 1 + assert calls['chat'] == [] + + +def test_unconfigured_profile_does_not_enable_paid_image_generation(monkeypatch): + from src.backend.services import model_registry_service + registry = _registry_profiles(_responses_profile()) + _install_profiles(monkeypatch, registry) + monkeypatch.setattr(model_registry_service, 'resolve_model_api_profiles', lambda **kw: registry) + calls = _install_fake_openai(monkeypatch, responses=[_text_response(model='test-model')]) + client = OpenAIClient(LLMClientConfig(model='test-model', provider='openai', api_key='test-key', temperature=None)) + asyncio.run(client.generate_with_tools(prompt='Answer', available_tools=[_tool()])) + assert all(tool['type'] == 'function' for tool in calls['responses'][0]['tools']) diff --git a/tests/backend/test_renderer_applicability_vontology_service.py b/tests/backend/test_renderer_applicability_vontology_service.py index bbedb62ca..0ddafddba 100644 --- a/tests/backend/test_renderer_applicability_vontology_service.py +++ b/tests/backend/test_renderer_applicability_vontology_service.py @@ -4,6 +4,7 @@ def test_canonical_renderer_profile_concept_ids_are_deterministic() -> None: concept_ids = service.canonical_renderer_profile_concept_ids() assert concept_ids == ( + "#V#conversation_image_renderer", "#V#timeline_renderer", "#V#workflow_renderer", "#V#table_renderer", diff --git a/tests/backend/test_von_generate_early_user_message_persist.py b/tests/backend/test_von_generate_early_user_message_persist.py index d8defe10e..8c600a932 100644 --- a/tests/backend/test_von_generate_early_user_message_persist.py +++ b/tests/backend/test_von_generate_early_user_message_persist.py @@ -128,6 +128,56 @@ def test_user_message_persisted_exactly_once(app, recorder): assert user_calls[0]["message"]["role"] == "user" +@pytest.mark.parametrize("mixed", [False, True]) +def test_generate_retains_native_image_only_and_mixed_output(app, recorder, monkeypatch, mixed, isolated_window_session_db): + import base64 + import io + from PIL import Image + from src.backend.services import conversation_image_service as images + from src.backend.services.conversation_output_service import openai_visible_parts + from src.backend.languagemodels.structured_tool_calling.types import LLMResponse + + stream = io.BytesIO() + Image.new("RGB", (16, 12), "navy").save(stream, "PNG") + data = stream.getvalue() + provider_items = [{"type": "image_generation_call", "id": "ig-route", "status": "completed", + "result": base64.b64encode(data).decode()}] + if mixed: + def text(ident, value): + return {"type": "message", "id": ident, "content": [{"type": "output_text", "text": value}]} + provider_items = [text("before", "Before."), *provider_items, text("after", "After.")] + provider_items.append({"type": "message", "id": "empty-final", "content": [ + {"type": "output_text", "text": ""}, + ]}) + parts = openai_visible_parts({"id": "resp-route", "model": "fixture", "output": provider_items}) + monkeypatch.setattr(images, "store_image", lambda **kw: { + "concept_id": "#V#route-image", **images.inspect_image(data), "provenance": kw["provenance"]}) + calls = [] + def generate_with_tools(*args, **kwargs): + calls.append(kwargs) + return LLMResponse(text_response="Before.\nAfter." if mixed else "", content_parts=parts) + monkeypatch.setattr(app.config["TEST_LLM"], "generate_with_tools", generate_with_tools, raising=False) + with app.test_client() as client: + with client.session_transaction() as sess: + sess["user_concept_id"] = "#V#test_user" + sess["namespace"] = "#V#test_user" + response = client.post("/von/generate", json={"prompt": "Draw a useful scene."}) + assert response.status_code == 200 + body = response.get_json() + assert body["success"] is True + assert len(calls) == 1 + assert len(body["image_attachments"]) == 1 + expected = ["text_block", "image", "text_block"] if mixed else ["image"] + visible = [e for e in body["display_elements"]["elements"] if e["channel"] == "screen"] + assert [e["element_type"] for e in visible] == expected + assert not any(issue["category"] == "display_elements" + for issue in body["turn_output_health"]["issues"]) + saved = recorder.assistant_message_calls[-1]["message"] + assert saved["content_parts"] == body["content_parts"] + assert saved["image_attachments"][0]["sha256"] == images.inspect_image(data)["sha256"] + assert base64.b64encode(data).decode() not in str(body) + + def test_user_message_persisted_before_assistant(app, recorder): """User message must be persisted before the assistant response.""" client = app.test_client() diff --git a/tests/browser/conversationVisuals.cjs b/tests/browser/conversationVisuals.cjs new file mode 100644 index 000000000..d71510857 --- /dev/null +++ b/tests/browser/conversationVisuals.cjs @@ -0,0 +1,97 @@ +// Real Chromium, actual chat renderer; the credential-free fixture is explicitly labelled. +const { chromium } = require('playwright'); +const fs = require('node:fs/promises'); +const path = require('node:path'); +const assert = require('node:assert/strict'); + +(async () => { + const [url = 'http://127.0.0.1:5037', evidenceDir = '.run/conversation-visuals'] = process.argv.slice(2); + await fs.mkdir(evidenceDir, { recursive: true }); + const browser = await chromium.launch({ headless: true }); + const receipt = { environment: 'credential-free presentation fixture', runs: [] }; + try { + for (const [name, width, scheme] of [['desktop', 1360, 'light'], ['mobile', 390, 'light'], ['dark', 1360, 'dark']]) { + const page = await browser.newPage({ viewport: { width, height: 1000 }, colorScheme: scheme }); + const errors = []; + page.on('pageerror', e => errors.push(e.message)); + await page.goto(url); + await page.waitForFunction(() => window.fixtureReady); + if (scheme === 'dark') await page.evaluate(() => document.documentElement.dataset.theme = 'dark'); + await page.waitForSelector('[data-turn-id="a-source"] .diagram svg'); + await page.waitForSelector('[data-turn-id="a-source"] .katex'); + await page.waitForFunction(() => [...document.querySelectorAll('[data-image-id] img')].length === 2 + && [...document.querySelectorAll('[data-image-id] img')].every(img => img.complete && img.naturalWidth === 320)); + const observed = await page.evaluate(() => { + const source = document.querySelector('[data-turn-id="a-source"]'); + const mixed = document.querySelector('[data-turn-id="a-mixed"] .chat-retained-content'); + return { diagramLabels: [...source.querySelectorAll('.diagram svg text')].map(e => e.textContent).join(' '), + mathCount: source.querySelectorAll('.katex').length, + localErrors: source.querySelectorAll('.visual-error').length, + imageCount: document.querySelectorAll('[data-image-id] img').length, + imageAspectPreserved: [...document.querySelectorAll('[data-image-id] img')].every(img => + Math.abs(img.getBoundingClientRect().width / img.getBoundingClientRect().height - img.naturalWidth / img.naturalHeight) < .02), + orderedParts: [...mixed.children].map(e => e.querySelector('img') ? 'image' : e.textContent.trim()), + codePreserved: source.querySelector('pre > code.language-python')?.textContent, + currencyPreserved: source.textContent.includes('$25 and $10'), + tableCount: source.querySelectorAll('table').length, + attack: Boolean(window.visualAttack), + pageOverflow: document.documentElement.scrollWidth > innerWidth + 2 }; + }); + const labelText = observed.diagramLabels.replace(/\s+/g, ''); + assert(labelText.includes('Organisationhome—initiallyDGXforSAIL')); + assert(labelText.includes('Objectstorage:packagesandevidence')); + assert.equal(observed.mathCount, 2); + assert.equal(observed.localErrors, 2); + assert.deepEqual(observed.orderedParts, ['Text before the image.', 'image', 'Text after the image.']); + assert(observed.currencyPreserved && observed.codePreserved.includes('cost')); + assert.equal(observed.tableCount, 1); + assert.equal(observed.attack, false); + assert.equal(observed.pageOverflow, false); + assert.equal(observed.imageAspectPreserved, true); + assert.deepEqual(errors, []); + await page.evaluate(() => window.replayFixture()); + assert.equal(await page.locator('[data-image-id] img').count(), 2); + await page.locator('[data-turn-id="a-source"] .diagram .visual-source summary').first().click(); + await page.locator('[data-turn-id="a-source"] .diagram .visual-source button').first().focus(); + const exactSource = (await (await page.request.get(`${url}/fixture/messages`)).json())[0].content.split('```mermaid\n')[1].split('\n```')[0] + '\n'; + assert.equal(await page.locator('[data-turn-id="a-source"] .diagram .visual-source code').first().textContent(), exactSource); + if (scheme === 'dark') { + const sourceColours = await page.locator('[data-turn-id="a-source"] .diagram .visual-source code').first().evaluate(el => { + const style = getComputedStyle(el); return [style.color, style.backgroundColor]; + }); + assert.deepEqual(sourceColours, ['rgb(229, 231, 235)', 'rgb(21, 32, 44)']); + } + await page.context().grantPermissions(['clipboard-read', 'clipboard-write']); + await page.locator('[data-turn-id="a-source"] .diagram .visual-source button').first().click(); + assert.equal(await page.evaluate(() => navigator.clipboard.readText()), exactSource); + await page.screenshot({ path: path.join(evidenceDir, `${name}.png`), fullPage: true }); + await page.evaluate(() => window.reviseDiagramFixture()); + await page.waitForSelector('[data-turn-id="a-revised-source"] .diagram svg'); + assert.equal(await page.locator('[data-turn-id="a-revised-source"] .diagram .visual-source code').first().textContent(), + exactSource.replace('Organisation home — initially DGX for SAIL', 'Organisation home — research hub')); + assert.equal(await page.locator('[data-turn-id="a-revised-source"] .diagram svg .node').count(), 7); + assert.equal(await page.locator('[data-turn-id="a-source"] .diagram .visual-source code').first().textContent(), exactSource); + const security = await page.evaluate(async () => { + const { renderConversationVisuals } = await import('/static/js/conversationVisuals.js'); + const holder = document.createElement('div'); + holder.innerHTML = '

    '; + holder.querySelector('code').textContent = '%%{init: {"securityLevel":"loose","flowchart":{"htmlLabels":true}}}%%\nflowchart LR\n A[""] --> B[Safe]\n click A "javascript:window.visualAttack=true"'; + document.body.appendChild(holder); + await renderConversationVisuals(holder); + const result = { executed: Boolean(window.visualAttack), svg: Boolean(holder.querySelector('svg')), + active: Boolean(holder.querySelector('.visual-output script, .visual-output foreignObject, .visual-output a, .visual-output [onerror], .visual-output [onclick]')) }; + holder.remove(); + return result; + }); + assert.deepEqual(security, { executed: false, svg: true, active: false }); + await page.reload(); + await page.waitForSelector('[data-turn-id="a-source"] .diagram svg'); + await page.waitForFunction(() => document.querySelectorAll('[data-image-id] img').length === 2); + receipt.runs.push({ name, width, scheme, ...observed, errors }); + await page.close(); + } + const response = await fetch(`${url}/health`); receipt.candidate = await response.json(); + await fs.writeFile(path.join(evidenceDir, 'receipt.json'), JSON.stringify(receipt, null, 2)); + console.log(JSON.stringify(receipt)); + } finally { await browser.close(); } +})().catch(error => { console.error(error); process.exitCode = 1; }); diff --git a/tests/browser/conversation_visuals_fixture.py b/tests/browser/conversation_visuals_fixture.py new file mode 100644 index 000000000..73c40ed32 --- /dev/null +++ b/tests/browser/conversation_visuals_fixture.py @@ -0,0 +1,180 @@ +"""Local, credential-free presentation fixture; never connects to Von's database. + +Exercises the actual chatTab append/render pipeline and server Markdown renderer. +This is deterministic browser evidence, not authenticated/live-provider acceptance. +""" + +import io +import subprocess +import sys +from pathlib import Path + +from flask import Flask, jsonify, request, send_file +from PIL import Image + +ROOT = Path(__file__).resolve().parents[2] +sys.path.insert(0, str(ROOT)) +from src.backend.services.conversation_image_service import inspect_image +from src.backend.services.display_elements_service import build_turn_display_elements +from src.backend.services.markdown_render_service import render_markdown_to_safe_html + +app = Flask(__name__, static_folder=str(ROOT / "src/frontend/web/von_interface/static")) +stream = io.BytesIO() +Image.new("RGB", (320, 192), "#246f8c").save(stream, "PNG") +PIXELS = stream.getvalue() +ASSET = { + "concept_id": "#V#browser-image", + "filename": "fixture.png", + **inspect_image(PIXELS), + "provenance": {"kind": "generated"}, +} +DIAGRAM = """flowchart BT + L[Local Vons and working databases] <-->|Selected knowledge| O[Organisation home — initially DGX for SAIL] + O <-->|Authorised contributions and subscriptions| R[Durable reference service] + X[Another organisation — local or hosted] <-->|Selected shared knowledge| R + P[Independent personal Von] <-->|Optional subscription| R + R --- D[Transactional catalogue and revisions] + R --- B[Object storage: packages and evidence]""" +SOURCE = ( + r"""A source-based architecture and scientific notation. + +```mermaid +""" + + DIAGRAM + + r""" +``` + +Inline \(p(x\mid y)\) and display: + +\[p(x\mid y)=\frac{p(y\mid x)p(x)}{p(y)} + \alpha_i^2\] + +Currency $25 and $10 stays text. Escaped \\(not maths\\). + +```python +cost = '$25'; source = '\(x_i\)' +``` + +| Term | Value | +| --- | --- | +| Example | 3 | + +Malformed \(\notASupportedCommand{x}\) leaves this prose usable. + +```mermaid +this is not a valid diagram +``` + +Final ordinary text and [citation](https://example.org/paper). +""" +) + + +@app.get("/health") +def health(): + return jsonify( + fixture="conversation_visuals", + revision=subprocess.check_output( + ["git", "rev-parse", "HEAD"], cwd=ROOT, text=True + ).strip(), + dirty=bool( + subprocess.check_output( + ["git", "status", "--porcelain"], cwd=ROOT, text=True + ).strip() + ), + ) + + +@app.get("/") +def page(): + return """ + + + +
    + """ + + +@app.get("/fixture/messages") +def messages(): + parts = [ + { + "kind": "text", + "part_id": "before", + "version": 1, + "text": "Text before the image.", + }, + {"kind": "image", "part_id": "image", "version": 1, "asset": ASSET}, + { + "kind": "text", + "part_id": "after", + "version": 1, + "text": "Text after the image.", + }, + ] + return jsonify( + [ + {"id": "a-source", "content": SOURCE, "display_elements": None}, + { + "id": "a-mixed", + "content": "Text before the image.\n\nText after the image.", + "display_elements": build_turn_display_elements( + response_text="", presenter_channels=None, content_parts=parts + ), + }, + { + "id": "a-image-only", + "content": "", + "display_elements": build_turn_display_elements( + response_text="", presenter_channels=None, content_parts=[parts[1]] + ), + }, + ] + ) + + +@app.post("/von/api/render_markdown") +def markdown(): + return jsonify(html=render_markdown_to_safe_html(request.get_json()["text"])) + + +@app.get("/von/api/images//original") +def image(concept_id): + if concept_id != ASSET["concept_id"]: + return jsonify(error="unavailable"), 404 + return send_file(io.BytesIO(PIXELS), mimetype="image/png") + + +@app.route("/von/", methods=["GET", "POST"]) +def unused_route(unused): + # Optional app hydration reads have no authority/data in this local fixture. + return jsonify(success=True, concepts=[], authenticated=False, sessions=[]) + + +if __name__ == "__main__": + import threading + + from werkzeug.serving import make_server + + server = make_server( + "127.0.0.1", int(sys.argv[1]) if len(sys.argv) > 1 else 5037, app, threaded=True + ) + + @app.post("/fixture/shutdown") + def shutdown(): + threading.Thread(target=server.shutdown, daemon=True).start() + return jsonify(stopping=True) + + # Fixture resource cleanup remains bounded if a browser driver crashes. + expiry = threading.Timer(1800, server.shutdown) + expiry.daemon = True + expiry.start() + server.serve_forever() diff --git a/tests/frontend/conversationVisuals.test.js b/tests/frontend/conversationVisuals.test.js new file mode 100644 index 000000000..ee0f02fd2 --- /dev/null +++ b/tests/frontend/conversationVisuals.test.js @@ -0,0 +1,100 @@ +/** @jest-environment jsdom */ +const { protectMathSources } = require('../../src/frontend/web/von_interface/static/js/conversationVisuals.js'); +const { simpleMarkdownToHtml } = require('../../src/frontend/web/von_interface/static/js/markdownUtils.js'); + +test('math delimiters preserve exact source and exclude currency, escapes and code', () => { + const untouched = String.raw`$25 and \$30, \\(escaped\\), ` + '`\\(code\\)`'; + const fence = '\n```tex\n\\[x_i\\]\n```\n'; + const math = String.raw`\(p(x\mid y)\) and \[\alpha_i^2=\frac{1}{2}\]`; + const protectedText = protectMathSources(untouched + fence + math); + expect(protectedText.text).toContain(untouched + fence); + const holder = document.createElement('div'); + holder.innerHTML = protectedText.restore(simpleMarkdownToHtml(protectedText.text)); + expect([...holder.querySelectorAll('.von-math-source')].map(e => e.textContent)) + .toEqual([String.raw`\(p(x\mid y)\)`, String.raw`\[\alpha_i^2=\frac{1}{2}\]`]); +}); + +test('incomplete source can complete on a later render without sticky parse state', () => { + const incomplete = String.raw`Before \(p(x`; + expect(protectMathSources(incomplete).text).toBe(incomplete); + expect(protectMathSources(incomplete + String.raw`\mid y)\)`).text).not.toContain(String.raw`\(p`); +}); + +test.each([true, false])('math source and bare links coexist with server available=%s', async (serverAvailable) => { + const { renderMarkdownViaServer } = require('../../src/frontend/web/von_interface/static/js/markdownUtils.js'); + const previousFetch = global.fetch; + const warning = jest.spyOn(console, 'warn').mockImplementation(() => {}); + global.fetch = jest.fn(async (_url, options) => ({ + ok: serverAvailable, + status: serverAvailable ? 200 : 503, + json: async () => ({ html: `

    ${JSON.parse(options.body).text}

    ` }) + })); + try { + const maths = String.raw`\(\text{https://example.org/formula}\)`; + const holder = document.createElement('div'); + holder.innerHTML = await renderMarkdownViaServer(`${maths} See https://example.org/paper.`); + expect(holder.querySelector('.von-math-source').textContent).toBe(maths); + expect(holder.querySelectorAll('a')).toHaveLength(1); + expect(holder.querySelector('a').getAttribute('href')).toBe('https://example.org/paper'); + expect(holder.textContent).toContain('See https://example.org/paper.'); + } finally { + global.fetch = previousFetch; + warning.mockRestore(); + } +}); + +test('fallback Mermaid fence keeps exact body and cannot inject HTML', () => { + const source = 'flowchart LR\n A[""] --> B[Safe]\n'; + const holder = document.createElement('div'); + holder.innerHTML = simpleMarkdownToHtml('```mermaid\n' + source + '```'); + expect(holder.querySelector('code.language-mermaid').textContent).toBe(source); + expect(holder.querySelector('script')).toBeNull(); +}); + +test('an unavailable original has a local notice and duplicate events keep one image', () => { + const { renderImageAttachments } = require('../../src/frontend/web/von_interface/static/js/utils/conversationImages.js'); + const holder = document.createElement('div'); + const image = { concept_id: '#V#expired-image', provenance: { kind: 'generated' } }; + renderImageAttachments(holder, [image]); + renderImageAttachments(holder, [image]); + holder.querySelector('img').dispatchEvent(new Event('error')); + holder.querySelector('img').dispatchEvent(new Event('error')); + expect(holder.querySelectorAll('img')).toHaveLength(1); + expect(holder.querySelectorAll('.image-unavailable')).toHaveLength(1); + expect(holder.textContent).toContain('Image unavailable or access denied'); + expect(holder.querySelector('a').getAttribute('href')).toBe('/von/api/images/%23V%23expired-image/original'); +}); + +test('message images keep the recipient route, caption and retained source reference', () => { + const { renderImageAttachments } = require('../../src/frontend/web/von_interface/static/js/utils/conversationImages.js'); + const holder = document.createElement('div'); + const image = { + concept_id: '#V#revised-image', message_id: '#V#shared-message', + content_type: 'image/png', caption: 'Revised architecture', + provenance: { kind: 'generated', parent_concept_ids: ['#V#original-image'] } + }; + renderImageAttachments(holder, [image]); + renderImageAttachments(holder, [image]); + const link = holder.querySelector('figure > a'); + expect(link.getAttribute('href')).toBe('/api/messages/%23V%23shared-message/attachments/%23V%23revised-image'); + expect(link.getAttribute('aria-label')).toBe('Open original: Revised architecture'); + expect(link.querySelector('img').getAttribute('src')).toBe(link.getAttribute('href')); + expect(holder.querySelector('figcaption').textContent).toContain('Revised architecture'); + expect(holder.querySelector('figcaption a').getAttribute('href')).toBe('/von/api/images/%23V%23original-image/original'); + expect(holder.querySelectorAll('img')).toHaveLength(1); +}); + +test('message files remain downloadable without being rendered as images on reload', () => { + const { renderImageAttachments } = require('../../src/frontend/web/von_interface/static/js/utils/conversationImages.js'); + const holder = document.createElement('div'); + const file = { + concept_id: '#V#notes', message_id: '#V#shared-message', + content_type: 'text/plain', filename: 'Research notes.txt', size_bytes: 42 + }; + renderImageAttachments(holder, [file]); + renderImageAttachments(holder, [file]); + expect(holder.querySelector('img')).toBeNull(); + expect(holder.querySelectorAll('a')).toHaveLength(1); + expect(holder.querySelector('a').getAttribute('href')).toBe('/api/messages/%23V%23shared-message/attachments/%23V%23notes'); + expect(holder.textContent).toBe('Research notes.txt · text/plain · 42 bytes'); +});